@useparagon/connect 2.3.2-experimental.20500.2 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/ConnectSDK.js +1 -1
- package/dist/src/file-picker/helpers/microsoftPicker.d.ts +0 -2
- package/dist/src/index.js +1 -1
- package/package.json +4 -5
- package/dist/src/bundledMode.d.ts +0 -1
- package/dist/src/file-picker/vendor/box/runtime.d.ts +0 -2
- package/dist/src/file-picker/vendor/box/runtime.stub.d.ts +0 -1
- package/dist/src/file-picker/vendor/google/runtime.d.ts +0 -2
- package/dist/src/file-picker/vendor/google/runtime.stub.d.ts +0 -1
- package/dist/src/index.bundled.d.ts +0 -5
- package/dist/src/report.bundled.html +0 -39
- package/dist/src/with-third-party-scripts.js +0 -2
- package/dist/src/with-third-party-scripts.js.LICENSE.txt +0 -179
- package/src/types/assets.d.ts +0 -12
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see with-third-party-scripts.js.LICENSE.txt */
|
|
2
|
-
(()=>{var __webpack_modules__={773:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InstallFlow=t.ExternalFilePicker=t.PARAGON_OVERFLOW_EMPTY_VALUE=void 0;const n=r(655),o=n.__importDefault(r(6245)),i=r(3931),a=r(4059),s=r(745),l=r(7343),c=r(7050);Object.defineProperty(t,"ExternalFilePicker",{enumerable:!0,get:function(){return c.ExternalFilePicker}});const u=r(2643),d=r(4429),h=r(9636),p=n.__importDefault(r(9892)),f=r(3821),g=r(2460),m=r(3158),b=r(4846),y=r(5349),v=r(572),_=r(8321),w=r(3035),E="paragon-connect-frame",C=`${E}-container`,S="paragon-connect-user-state";t.PARAGON_OVERFLOW_EMPTY_VALUE="PARAGON_OVERFLOW_EMPTY_VALUE";class k extends p.default{constructor(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(super(),this.sdkVersion="2.3.2-experimental.20500.2",this.rootLoaded=!1,this.isHeadless=!1,this.rootElementCreated=!1,this.modalState={integration:null,onClose:this.onClose.bind(this),overlayStyle:{overflow:"auto"},onOpen:this.onOpen.bind(this),apiInstallationOptions:{isApiInstallation:!1,showPortalAfterInstall:!1}},this.userState={authenticated:!1},this.loadedConfigs={},this.loadedIntegrations={},this.endUserIntegrationConfig={},this.metadata={},this.cachedApiResponse=new w.CacheThrottle({ttl:5e3}),this.keyToRequestPromiseMap={},this.originalBodyOverflow=t.PARAGON_OVERFLOW_EMPTY_VALUE,this.dynamicFieldMappingLoaders={},this.globalDropdownOptions={},this.globalMapObjectFields={},this.integrationSpecificDropdownOptions={},this.integrationSpecificMapObjectFields={},this.customDropdownOptionsLoaders={},"undefined"==typeof window)return void console.warn("connect sdk can only be used on browser");const n=(0,m.getAssetUrl)({CDN_PUBLIC_URL:"https://cdn.useparagon.com",DASHBOARD_PUBLIC_URL:"https://dashboard.useparagon.com",NODE_ENV:"production",PLATFORM_ENV:"production",VERSION:"latest"});if(this.environments={CDN_PUBLIC_URL:n,CONNECT_PUBLIC_URL:"https://connect.useparagon.com",DASHBOARD_PUBLIC_URL:"https://dashboard.useparagon.com",HERMES_PUBLIC_URL:"https://hermes.useparagon.com",NODE_ENV:"production",PASSPORT_PRODUCTION_URL:"https://passport.useparagon.com",PASSPORT_PUBLIC_URL:"https://passport.useparagon.com",PLATFORM_ENV:"production",VERSION:"latest",WORKER_PROXY_PUBLIC_URL:"https://proxy.useparagon.com",ZEUS_PUBLIC_URL:"https://zeus.useparagon.com"},this.userState={authenticated:!1},"string"==typeof e?this.configureGlobal({host:e}):this.environments={...this.environments,...e},!this.environments.CONNECT_PUBLIC_URL)throw new Error("Paragon SDK error! No `CONNECT_PUBLIC_URL` configured.");if(!this.environments.DASHBOARD_PUBLIC_URL)throw new Error("Paragon SDK error! No `DASHBOARD_PUBLIC_URL` configured.");if(!this.environments.PASSPORT_PUBLIC_URL)throw new Error("Paragon SDK error! No `PASSPORT_PUBLIC_URL` configured.");if(!this.environments.WORKER_PROXY_PUBLIC_URL)throw new Error("Paragon SDK error! No `WORKER_PROXY_PUBLIC_URL` configured.");if(!this.environments.ZEUS_PUBLIC_URL)throw new Error("Paragon SDK error! No `ZEUS_PUBLIC_URL` configured.");r.skipBootstrapWithLastKnownState||this.loadState(),window.addEventListener("message",this.eventMessageHandler.bind(this)),window.document.readyState===f.DocumentLoadingState.LOADING?window.document.addEventListener("DOMContentLoaded",(()=>{this.createReactRoot()})):this.createReactRoot(),this.installFlow=new I(this)}setHeadless(e){this.isHeadless=e}getAssetUrl(e){return`${this.environments.DASHBOARD_PUBLIC_URL}/images/${e}.png`}getVersion(){return this.sdkVersion}async eventMessageHandler(e){switch(e.data.type){case"oauth_success_callback":await this._oauthCallback(e.data.credential);break;case"oauth_error_callback":await this._oauthErrorCallback(e.data.error,e);break;default:await this.functionInvocationHandler(e)}}async functionInvocationHandler(e){if("SDK_FUNCTION_INVOCATION"!==e.data.messageType)return;const{type:t,id:r,parameters:n}=e.data;let o;try{o={messageType:"SDK_FUNCTION_RESPONSE",id:r,type:t,result:await this[t](...n)}}catch(e){o={messageType:"SDK_FUNCTION_ERROR",error:!0,message:e.message,id:r}}e.source.postMessage(o,this.environments.CONNECT_PUBLIC_URL)}createReactRoot(){var e;if(this.rootElementCreated)return;this.rootElementCreated=!0,this.root=document.createElement("iframe"),this.root.onload=()=>{this.rootLoaded=!0,this.render()};const t=!!document.querySelector(`#${C}`);this.root.id=E,this.root.src=`${this.environments.CONNECT_PUBLIC_URL}/ui${this.projectId?`?projectId=${this.projectId}`:""}`,this.root.style.position=t?"absolute":"fixed",this.root.style.top="0",this.root.style.left="0",this.root.style.width=t?"100%":"100vw",this.root.style.height=t?"100%":"100vh",this.root.style.zIndex="2147483647",this.root.style.display="none",null===(e=document.querySelector(`#${C}`)||document.body)||void 0===e||e.appendChild(this.root)}validateAction(e){var t;if(!this.loadedIntegrations[e]&&!(0,l.isCustomIntegrationTypeName)(e))throw new Error(`"${e}" is not a valid integration type. The integrations you have configured for this Paragon project are:\n\n${Object.keys(this.loadedConfigs).map((e=>`- "${e}"`)).join("\n")}\n`);if(!this.loadedConfigs[e]||!this.userState.integrations[e])throw new Error(`integration "${e}" has not been set up in your Paragon project yet.\n\n${Object.keys(this.loadedConfigs).map((e=>`- "${e}"`)).join("\n")}`);if(!(null===(t=this.loadedIntegrations[e])||void 0===t?void 0:t.isActive))throw new Error(`integration "${e}" is not active in your Paragon project yet.`)}validateExternalIdOptions(e,t){let{externalId:r,selectedCredentialId:n}=t;var o,i;if(void 0===r)return;const a=(0,m.sanitizeExternalConfigId)(r);if(""===a)throw new Error("`externalId` must not be an empty or whitespace-only string.");if(n)throw new Error("`externalId` cannot be used together with `selectedCredentialId`. `externalId` labels a new credential at install time; `selectedCredentialId` (UUID, externalId, or `ext:<value>`) targets an existing credential for re-authentication.");if(null===(i=null===(o=this.userState.integrations[e])||void 0===o?void 0:o.allCredentials)||void 0===i?void 0:i.find((e=>e.externalId===a)))throw new Error(`A credential with externalId "${a}" already exists for integration "${e}". Use \`selectedCredentialId: "ext:${a}"\` to re-authenticate it.`)}isAlreadyInstalled(e,t,r){var n,o;if(r){const e=this.getCredentialAndConfig({selectedCredentialId:r});return(null===(n=null==e?void 0:e.selectedCredential)||void 0===n?void 0:n.status)===a.CredentialStatus.VALID}return Boolean(null===(o=t.integrations[e])||void 0===o?void 0:o.enabled)}hasCredential(e,t,r){var n,o;if(!r)return Boolean(null===(n=t.integrations[e])||void 0===n?void 0:n.credentialId);try{const e=this.getCredentialAndConfig({selectedCredentialId:r});return Boolean(null===(o=null==e?void 0:e.selectedCredential)||void 0===o?void 0:o.id)}catch(e){return console.error(e),!1}}async bootstrapSDKState(e){this.projectId&&this.userState.authenticated&&await this.updateLocalState(e)}setModalState(e){this.modalState={config:void 0,...this.modalState,...e},this.render()}loadState(){if("undefined"!=typeof window)try{const e=window.localStorage.getItem(S)?JSON.parse(window.localStorage.getItem(S)):{};if(e.projectId&&(this.projectId=e.projectId),e.userState){const{userState:t}=e;if(!("authenticated"in t&&t.authenticated&&"token"in t))throw new Error("Malformatted or unauthenticated user was persisted into localStorage. Refusing to load.");e.environments&&Object.keys(e.environments).length>0&&(this.environments={...this.environments,...e.environments}),this.updateAuthenticatedUser(t),this.bootstrapSDKState().catch((()=>{this.clearState()}))}}catch{this.clearState()}}getIntegrationId(e){const t=this.loadedIntegrations[e];if(!t)throw new Error(`Integration "${e}" not found`);return t.id}saveState(){"undefined"!=typeof window&&this.userState.authenticated&&window.localStorage.setItem(S,JSON.stringify({projectId:this.projectId,userState:this.userState,environments:this.environments}))}clearState(){"undefined"!=typeof window&&window.localStorage.removeItem(S)}render(){if(!this.isHeadless&&this.root&&this.rootLoaded){const{onClose:e,onOpen:t,...r}=this.modalState,n={messageType:"UI_UPDATE",nextContext:{user:this.userState,projectId:this.projectId,environments:this.environments,project:this.project,endUserIntegrationConfig:this.modalState.integration?this.endUserIntegrationConfig[(0,l.getIntegrationTypeName)(this.modalState.integration)||""]:void 0},nextModalState:r};if(!this.root.contentWindow)throw new Error("Browser not supported");this.root.contentWindow.postMessage(n,this.environments.CONNECT_PUBLIC_URL)}}updateContainerStyle(e){let{isModalShown:t}=e;this.root&&(this.root.style.display=t?"block":"none")}async authenticate(e,t,r){var n;if(!e||!t)throw new Error("projectId or token not specified to paragon.authenticate()");let i={};try{i=(0,o.default)(t)}catch(e){throw new Error("A well-formed JWT was not provided to paragon.authenticate()")}this.projectId=e,this.userState={authenticated:!0,token:t,userId:i.sub||i.id,integrations:{},meta:null!==(n=null==r?void 0:r.metadata)&&void 0!==n?n:{},resources:[]};try{if(Date.now()>=1e3*(i.exp||0))throw new Error("JWT token provided has expired.");await this.bootstrapSDKState(null==r?void 0:r.metadata)}catch(e){throw console.warn("paragon.authenticate() could not login user",e),this.logout(),new Error(`Failed to authenticate user with Paragon: ${e.message}`)}this.render()}getUser(){return(0,h.cloneDeep)(Object.fromEntries(Object.entries(this.userState).filter((e=>{let[t]=e;return"token"!==t}))))}updateAuthenticatedUser(e){this.userState.authenticated?this.userState={...this.userState,...e}:e.authenticated&&(this.userState=e),this.render()}logout(){this.userState={authenticated:!1},this.clearState(),this.render()}removeOptionDuplicates(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!e)return;const t=new Set,r=[];for(const n of e)t.has(n.value)?console.warn(`Duplicated key: "${n.value}", Ignored: "${n.label}"`):(r.push(n),t.add(n.value));return r}startOAuthFlow(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n,o,i;const a=this.getIntegrationByName(e),l=(0,u.findSelectedAccountType)(null===(n=null==a?void 0:a.sdkIntegrationConfig)||void 0===n?void 0:n.accountTypes,this.getAccountName(t.accountType),this.getSelectedMultipleAccountTypes(t.accountType)),c={context:{user:this.userState,projectId:this.projectId,environments:this.environments,endUserIntegrationConfig:null!==(o=t.userProvidedIntegrationConfig)&&void 0!==o?o:this.endUserIntegrationConfig[e]},integration:a,endUserSuppliedValues:t.endUserSuppliedValues},h=Boolean(a.needPreOauthInputs&&l&&!(null===(i=l.endUserSuppliedValues)||void 0===i?void 0:i.length)&&l.scheme===s.AuthenticationScheme.OAUTH);if(this.isHeadless||h||!a.needPreOauthInputs){c.authParams=null==l?void 0:l.oauthParameters,c.installOptions=t;const n=Math.random().toString(36).substring(2,15),o=(0,d.startOAuthFlow)(c,n);if(!o)throw new g.OAuthBlockedError;const i=()=>{clearInterval(m)},a=Date.now(),s=new AbortController,u=500;let h=!1;const p={abortSignal:s.signal,onSuccess:e=>{var t;h||(h=!0,i(),null===(t=r.onSuccess)||void 0===t||t.call(r,e))},onError:e=>{var t;h||(h=!0,i(),s.abort(),null===(t=r.onError)||void 0===t||t.call(r,e))}},f=setInterval((()=>{try{!this.isHeadless&&o.opener||(clearInterval(f),this.pollForCredential(e,n,p))}catch(t){clearInterval(f),this.pollForCredential(e,n,p)}}),u),m=setInterval((()=>{try{if(!h&&r.oauthTimeout&&Date.now()-a>r.oauthTimeout)return o.close(),void p.onError(new g.OAuthTimeoutError)}catch(e){p.onError(e)}}),u)}}getIntegrationByName(e){const t=Object.values(this.loadedIntegrations).find((t=>(0,l.getIntegrationTypeName)(t)===e));if(!t)throw new Error(`Integration "${e}" not found.`);return t}getSelectedMultipleAccountTypes(e){if(Array.isArray(e))return e}getAccountName(e){return"string"==typeof e?e.trim():""}setDynamicFieldMappingLoaders(e,t){var r,n;if(this.dynamicFieldMappingLoaders[e]={},t)for(const[o,i]of Object.entries(t))if("object"==typeof i&&"objectTypes"in i&&"integrationFields"in i&&"applicationFields"in i){const a=i;this.dynamicFieldMappingLoaders[e][o]={objectTypes:null===(r=a.objectTypes)||void 0===r?void 0:r.get,integrationFields:null===(n=a.integrationFields)||void 0===n?void 0:n.get},a.applicationFields&&(t[o]={...a.applicationFields,useBYOFieldMappingOption:!0})}}async connect(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{mapObjectFields:r,overrideRedirectUrl:n,isApiInstallation:o=!1,showPortalAfterInstall:i,bypassPostOAuthPrompt:s,allowMultipleCredentials:l,selectedCredentialId:c,selectedConfigurationId:d,accountType:h,externalId:p,...m}=t;return this.integrationToBeEnabled=e,new Promise(((b,y)=>{var v,w;if(!this.userState.authenticated)throw new g.UserNotAuthenticatedError;const E=this.getIntegrationByName(e),C=this.getSelectedMultipleAccountTypes(h);this.subscribeToIntegration(e,{...m,onInstall:(t,r)=>{var n;const o=r.integrations[e];t.credentialId=null==o?void 0:o.credentialId,t.credential=null==o?void 0:o.allCredentials.find((e=>e.id===o.credentialId)),b(t),(null==m?void 0:m.onInstall)?m.onInstall(t,r):null===(n=null==m?void 0:m.onSuccess)||void 0===n||n.call(m,t,r)},onError:e=>{var t;y(e),null===(t=null==m?void 0:m.onError)||void 0===t||t.call(m,e)}});try{if(r&&!this.project.accessibleFeatures.includes(f.ConnectAddOn.DynamicFieldMapper))throw new Error("Dynamic Field Mapping is available on our Enterprise plan. Contact sales@useparagon.com to learn more or upgrade.");if(this.validateExternalIdOptions(e,{externalId:p,selectedCredentialId:c}),this.validateAction(e),n&&!(0,_.isValidUrl)(n))throw new Error(`${n} is not valid url.`);this.setDynamicFieldMappingLoaders(e,r),this.endUserIntegrationConfig[e]={mapObjectFields:r,overrideRedirectUrl:n?(0,_.sanitizeUrl)(n):void 0};const g=this.getAccountName(h),m=Array.isArray(h)?h.filter((e=>{var t,r;return!(null===(r=null===(t=null==E?void 0:E.sdkIntegrationConfig)||void 0===t?void 0:t.accountTypes)||void 0===r?void 0:r.some((t=>t.id===e)))})):[],S=(0,u.findSelectedAccountType)(null===(v=null==E?void 0:E.sdkIntegrationConfig)||void 0===v?void 0:v.accountTypes,g,C),k={isApiInstallation:o,showPortalAfterInstall:i,bypassPostOAuthPrompt:s,allowMultipleCredentials:l,selectedCredentialId:c,selectedConfigurationId:d,accountType:h,externalId:p};if(this.setCredentialConfigForUserState(e,c,d),t.isApiInstallation&&(null===(w=this.userState.integrations[e])||void 0===w?void 0:w.credentialStatus)!==a.CredentialStatus.PENDING){const r=this.isHeadless?{onSuccess:e=>{b({integrationId:e.integrationId,integrationType:e.integrationType,credentialId:e.credentialId})},onError:e=>{y(e)},oauthTimeout:t.oauthTimeout}:void 0;this.startOAuthFlow(e,k,r)}(h&&!S&&"string"==typeof h||m.length)&&console.warn(`Account type "${m.length?m:h}" is not valid for integration "${null==E?void 0:E.type}"`);const I=JSON.parse(JSON.stringify(this.loadedConfigs[e]));if(t.dropdowns){const r=t.dropdowns,n=[],o=new Set;for(const e in r){const t=r[e];"loadOptions"in t&&(this.customDropdownOptionsLoaders[e]=t.loadOptions,n.push(e),t.refreshOnOpen&&o.add(e))}if(I.sharedMeta&&Array.isArray(I.sharedMeta.inputs))for(const e of I.sharedMeta.inputs){if(n.includes(e.key)){e.customDropdownOptions=[],e.refreshOnOpen=o.has(e.key);continue}const t=this.removeOptionDuplicates(r[e.key]);t&&e.customDropdownOptions&&(e.customDropdownOptions=t)}if(I.workflowMeta)for(const e in I.workflowMeta){const t=I.workflowMeta[e];for(const e of t.inputs){if(n.includes(e.key)){e.customDropdownOptions=[],e.refreshOnOpen=o.has(e.key);continue}const t=this.removeOptionDuplicates(r[e.key]);t&&e.customDropdownOptions&&(e.customDropdownOptions=t)}}this.loadedConfigs[e]=I}this.setModalState({integration:E,config:this.loadedConfigs[e],apiInstallationOptions:{...k,selectedMultipleAccountTypes:C,selectedAccountConfig:S},selectedCredentialId:c,connectionError:void 0,shouldShowPortalAfterInstall:!1})}catch(t){this.emitError(t,e)}}))}setCredentialConfigForUserState(e,t,r){var n,o,i;if(!this.userState.authenticated||!(null===(n=this.userState.integrations[e])||void 0===n?void 0:n.allCredentials.length))return;const s=this.userState.integrations[e],l=null!==(o=null==s?void 0:s.credentialId)&&void 0!==o?o:null==s?void 0:s.allCredentials[0].id,c=this.getCredentialAndConfig(t||r?{selectedCredentialId:t,selectedConfigurationId:r}:{selectedCredentialId:l},s);if(!(null===(i=null==s?void 0:s.allCredentials)||void 0===i?void 0:i.some((e=>{let{id:t}=e;return t===(null==c?void 0:c.selectedCredential.id)})))||!c)throw new Error(`Credential with ID "${t}" is not a valid ${e} account.`);const{selectedConfig:u,selectedCredential:d}=c,h={...s,allConfigurations:(null==s?void 0:s.allConfigurations)||[],allCredentials:(null==s?void 0:s.allCredentials)||[],enabled:d.status===a.CredentialStatus.VALID,credentialId:d.id,credentialStatus:d.status,providerData:d.providerData,providerId:d.providerId,configMeta:null==u?void 0:u.configMeta,credentialConfigId:null==u?void 0:u.id,externalId:null==u?void 0:u.externalId,sharedSettings:null==u?void 0:u.sharedSettings,workflowSettings:null==u?void 0:u.workflowSettings,configuredWorkflows:null==u?void 0:u.workflowSettings};this.userState.integrations={...this.userState.integrations,[e]:h}}getCredentialAndConfig(e,t,r){var n;const{selectedCredentialId:o,selectedConfigurationId:i}=e;let a=null==o?void 0:o.trim();const s=null==i?void 0:i.trim(),l=!!a&&(a.startsWith("ext:")||!(0,v.isUUID)(a));if(!this.userState.authenticated||!a&&!s)return;let c,u;const d=null!==(n=null==t?void 0:t.allCredentials)&&void 0!==n?n:Object.values(this.userState.integrations).flatMap((e=>(null==e?void 0:e.allCredentials)||[])),h=d.flatMap((e=>{let{configurations:t}=e;return t}));if(l){const e=(0,m.sanitizeExternalConfigId)(a),t=d.find((t=>t.externalId===e));if(!t)throw new Error(`Credential with externalId "${e}" not found.`);a=t.id}if(s){const e=s.startsWith("ext:")||!(0,v.isUUID)(s),t=(0,m.sanitizeExternalConfigId)(s),n=r=>(e?r.externalId===t:r.id===t)&&(!a||r.connectCredentialId===a);if(null==r?void 0:r.throwIfMultipleConfigsFound){const e=h.filter(n);if(e.length>1)throw new Error(`Multiple credential configurations found for provided id: ${s}.`);u=e[0]}else u=h.find(n);if(!u)throw new Error(`Credential configuration not found for provided id: ${s}.`)}if(c=d.find((e=>{let{id:t}=e;return t===((null==u?void 0:u.connectCredentialId)||a)})),u=null!=u?u:null==c?void 0:c.configurations.find((e=>{let{isDefault:t}=e;return t})),!c)throw new Error("Unable to find credential for provided options.");if(!u)throw new Error(`Credential configuration not found for credential: ${c.id}.`);if(u&&u.connectCredentialId!==(null==c?void 0:c.id))throw new Error('Provided "selectedCredentialId" does not belongs to provided "selectedConfigurationId".');return{selectedCredential:c,selectedConfig:u}}_getIntegration(e){return Object.values(this.loadedIntegrations).find((t=>t.id===e))}getIntegrationBySlug(e){const t=this.loadedIntegrations[e];if(!t)throw new g.IntegrationNotFoundError(e);return t}async _oauthCallback(e,t,r){var n,o,i;const{integrationId:s,payload:c}=e,u=this._getIntegration(s);if(!u)return;const d=(0,b.hash)(JSON.stringify({oauthResponse:e,credentialId:t}));if(await this.cachedApiResponse.get(d))return;await this.cachedApiResponse.set(d,!0);const h=(0,l.getIntegrationTypeName)(u),p=null!==(n=null==r?void 0:r.installOptions)&&void 0!==n?n:(null===(o=this.modalState.apiInstallationOptions)||void 0===o?void 0:o.isApiInstallation)?this.modalState.apiInstallationOptions:{};try{const e=t?`/sdk/credentials/${t}/complete-setup`:"/sdk/credentials",r=await this.sendConnectRequest(e,{method:"POST",body:JSON.stringify({integrationId:u.id,config:{},payload:c,installOptions:p})});if(!r)throw new Error("Unable to save oauth credentials");return this.updateCredentialData(r,u),r.status===a.CredentialStatus.VALID&&this.triggerSDKEvent({type:f.SDK_EVENT.ON_INTEGRATION_INSTALL,integrationId:u.id,integrationType:h}),this.setModalState({...this.modalState,...(null===(i=this.modalState.apiInstallationOptions)||void 0===i?void 0:i.showPortalAfterInstall)?{shouldShowPortalAfterInstall:!0}:{},connectionError:void 0}),{integrationId:u.id,integrationType:h,credentialId:r.id,credential:r}}catch(e){if(this.isHeadless)throw e;this.setModalState({...this.modalState,connectionError:e}),this.emitError(e,h),await this._oauthErrorCallback(e.message)}}async _oauthErrorCallback(e,t){var r;const n=e;let o;o=this.integrationToBeEnabled?this.loadedIntegrations[this.integrationToBeEnabled].id:null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.integrationId,t&&(this.emitError(t.data.errorResponse,(0,l.getIntegrationTypeName)(this._getIntegration(o))),this.setModalState({...this.modalState,connectionError:t.data})),console.error("Failed to connect account to Paragon over OAuth",n)}async _loadCustomDropdownOptions(e,t,r){return(0,h.cloneDeep)(this.customDropdownOptionsLoaders[e](t,r))}setDataSources(e){this.globalDropdownOptions={},this.globalMapObjectFields={},this.integrationSpecificDropdownOptions={},this.integrationSpecificMapObjectFields={};const t=Object.keys(this.customDropdownOptionsLoaders);for(const e of t)delete this.customDropdownOptionsLoaders[e];if(this.processDropdownSources(e.dropdowns,this.globalDropdownOptions),this.processMapObjectFieldSources(e.mapObjectFields),e.integrationSpecificSources)for(const[t,r]of Object.entries(e.integrationSpecificSources))r&&"object"==typeof r?(this.integrationSpecificDropdownOptions[t]={},this.processDropdownSources(r.dropdowns,this.integrationSpecificDropdownOptions[t]),this.processMapObjectFieldSources(r.mapObjectFields,t)):console.error(`Could not load data source for integration "${t}" because a valid source object was not provided`)}processDropdownSources(e,t){if(e)for(const[r,n]of Object.entries(e))Array.isArray(n)?t[r]=n:n&&"object"==typeof n&&"loadOptions"in n?this.customDropdownOptionsLoaders[r]=n.loadOptions:console.error(`Could not load data source "${r}" because a valid source object was not provided`)}processMapObjectFieldSources(e,t){var r,n,o,i,a;if(!e)return;const s=t?null!==(r=(a=this.integrationSpecificMapObjectFields)[t])&&void 0!==r?r:a[t]={}:null!==(n=this.globalMapObjectFields)&&void 0!==n?n:this.globalMapObjectFields={};for(const[r,n]of Object.entries(e))if(n&&"object"==typeof n){if(s[r]=n,"objectTypes"in n&&"integrationFields"in n&&"applicationFields"in n){const e=n,a=null!=t?t:"__global__";this.dynamicFieldMappingLoaders[a]||(this.dynamicFieldMappingLoaders[a]={}),this.dynamicFieldMappingLoaders[a][r]={objectTypes:null===(o=e.objectTypes)||void 0===o?void 0:o.get,integrationFields:null===(i=e.integrationFields)||void 0===i?void 0:i.get},e.applicationFields&&(s[r]={...e.applicationFields,useBYOFieldMappingOption:!0})}}else console.error(`Could not load data source "${r}" because a valid source object was not provided`)}resolveCustomDropdownSource(e,t){var r;if(!e)return null;const n=null===(r=this.integrationSpecificDropdownOptions[t])||void 0===r?void 0:r[e];if(n)return n;const o=this.globalDropdownOptions[e];return o||null}resolveMapObjectFieldSource(e,t){var r,n;if(!e)return null;const o=null===(r=this.integrationSpecificMapObjectFields[t])||void 0===r?void 0:r[e];if(o&&!this.isDynamicFieldMappingConfig(o))return o;const i=null===(n=this.globalMapObjectFields)||void 0===n?void 0:n[e];return i&&!this.isDynamicFieldMappingConfig(i)?i:null}isDynamicFieldMappingConfig(e){return"object"==typeof e&&!Array.isArray(e)&&"objectTypes"in e&&"integrationFields"in e}hasCustomDropdownLoader(e){return!!e&&!!this.customDropdownOptionsLoaders[e]}async sendConnectRequest(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];var n;if(!this.userState.authenticated||!this.projectId)throw new Error("Connect SDK attempted to make an API request, but no user was authenticated.\nCall paragon.authenticate(<projectId>, <user token>) before using the SDK.");const o=`${null!==(n=null==t?void 0:t.baseURLOverride)&&void 0!==n?n:this.environments.ZEUS_PUBLIC_URL}${r?`/projects/${this.projectId}`:""}${e}`,i=(0,b.hash)(JSON.stringify({url:o,payload:{...t}})),a=await this.cachedApiResponse.get(i,!0);if((null==t?void 0:t.cacheResult)&&a)return a;const s=Boolean(!t||"GET"===t.method||t.cacheResult);if(s&&"object"==typeof this.keyToRequestPromiseMap[i])return this.keyToRequestPromiseMap[i];const l=this.userState.token,c=this.modalState.integration&&this.integrationToBeEnabled?this.userState.integrations[this.integrationToBeEnabled]:void 0,u=new Promise(((e,r)=>{(async()=>{try{const r=await this.sendRequest(o,{...t,headers:{Accept:"application/json","Content-Type":"application/json",[f.SDK_VERSION_HEADER]:this.sdkVersion,...!(null==t?void 0:t.skipDefaultCredentialIdHeader)&&(null==c?void 0:c.credentialId)?{[f.SELECTED_CREDENTIAL_ID_HEADER]:null==c?void 0:c.credentialId}:{},...null==t?void 0:t.headers,Authorization:`Bearer ${l}`}},s?i:void 0);e(r)}catch(e){r(e)}})()}));return s&&(this.keyToRequestPromiseMap[i]=u),u}async sendRequest(e,t,r){var n;let o,a,s;try{o=await fetch(e,t)}catch(e){s=e}const l=e.includes("proxy");if(o&&!o.ok||s){const e=o?await(0,_.getErrorMessage)(o,!0):null==s?void 0:s.message,t="string"==typeof e?e:null==e?void 0:e.message,a=(0,_.errorMessageParser)(t),c="object"==typeof e&&e.response.code===i.INSUFFICIENT_PERMISSION,u="object"==typeof e&&[i.BYO_CREDENTIAL_VERIFICATION_ERROR,i.BYO_USER_PROFILE_ERROR_CODE].includes(e.response.code),d=401===(null==o?void 0:o.status)||403===(null==o?void 0:o.status),h=!a&&!c&&!u&&d;if(h&&!l)this.logout();else if(h&&l){const e=await this.fetchUserData();this.updateAuthenticatedUser({integrations:e.integrations,meta:e.meta,resources:e.resources})}if(r&&(await this.cachedApiResponse.del(r),delete this.keyToRequestPromiseMap[r]),"string"!=typeof e&&l)throw null===(n=e.response)||void 0===n||delete n.headers,new _.ProxyRequestError(e.message,e.response);throw new Error("string"==typeof e?t:JSON.stringify(e.response))}if(l)return r&&delete this.keyToRequestPromiseMap[r],o;try{a=await(null==o?void 0:o.json())}catch{a=void 0}return r&&(await this.cachedApiResponse.set(r,a),delete this.keyToRequestPromiseMap[r]),a}async request(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n,o;const i=`/sdk/proxy/${e}`,a=t.startsWith("/")?t:`/${t}`,s=r.selectedCredentialId,l=await this.sendConnectRequest(`${i}${a}`,{method:r.method,body:"object"==typeof r.body?JSON.stringify(r.body):r.body,headers:{"Content-Type":f.INFER_CONTENT_TYPE_FROM_CONNECT_OPTIONS,...s?{[f.SELECTED_CREDENTIAL_ID_HEADER]:s}:{},...r.headers},baseURLOverride:this.environments.WORKER_PROXY_PUBLIC_URL,skipDefaultCredentialIdHeader:!0});let c=l;if(l instanceof Response){const e=await l.text();if(!e)return;if((null!==(o=null===(n=l.headers)||void 0===n?void 0:n.get("content-type"))&&void 0!==o?o:"").includes("application/json"))try{c=JSON.parse(e)}catch{c=e}else c=e}return c&&"object"==typeof c&&"output"in c?c.output:c}async event(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{selectedConfigurationId:n,selectedCredentialId:o}=r;if(n&&!o)throw new Error("Configuration ID cannot be used without a corresponding Credential ID. Please provide both if using Configuration ID.");await this.sendConnectRequest(`/v2/projects/${this.projectId}/sdk/events/trigger`,{method:"POST",headers:{...o?{[f.SELECTED_CREDENTIAL_ID_HEADER]:o}:{},...n?{[f.SELECTED_CREDENTIAL_CONFIG_ID_HEADER]:n}:{}},body:JSON.stringify({name:e,payload:t}),skipDefaultCredentialIdHeader:!0,baseURLOverride:this.environments.HERMES_PUBLIC_URL},!1)}onClose(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{integration:r,apiInstallationOptions:n}=this.modalState;r&&(this.triggerSDKEvent({type:f.SDK_EVENT.ON_PORTAL_CLOSE,integrationId:r.id,integrationType:(0,l.getIntegrationTypeName)(r)}),this.originalBodyOverflow!==t.PARAGON_OVERFLOW_EMPTY_VALUE&&(window.document.body.style.overflow=this.originalBodyOverflow,this.originalBodyOverflow=t.PARAGON_OVERFLOW_EMPTY_VALUE),!e&&(null==n?void 0:n.isApiInstallation)||(this.setModalState({integration:null}),this.integrationToBeEnabled=void 0))}onOpen(){const{integration:e}=this.modalState;if(e&&(this.triggerSDKEvent({type:f.SDK_EVENT.ON_PORTAL_OPEN,integrationId:e.id,integrationType:(0,l.getIntegrationTypeName)(e)}),this.root&&this.originalBodyOverflow===t.PARAGON_OVERFLOW_EMPTY_VALUE)){const e=this.root.getBoundingClientRect();window.innerHeight<=e.height&&window.innerWidth<=e.width&&(this.originalBodyOverflow=window.document.body.style.overflow,window.document.body.style.overflow="hidden")}}triggerSDKEvent(e){this.triggerEvent(e,this.userState)}getIntegrationMetadata(e){const t=e=>{return{...e,icon:(t=e.icon,t.includes(".svg")?(null===(r=t.split(".svg"))||void 0===r?void 0:r[0])+".svg":t)};var t,r};if(e){const r=this.metadata[e];if(!r)throw new Error(`${e} is not a valid integration name`);return t(r)}return(0,h.cloneDeep)(Object.values(this.metadata).map(t))}closePortal(){this.onClose(!0)}workflow(e){let{selectedCredentialId:t,selectedConfigurationId:r,body:n={},query:o={},headers:i={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var a;if(!e)throw new Error("workflowId is required.");const s=new URLSearchParams(o).toString(),{integrationState:l}=this.getIntegrationForWorkflow(e);let c;if((t||r)&&(c=this.getCredentialAndConfig({selectedCredentialId:t,selectedConfigurationId:r},l,{throwIfMultipleConfigsFound:!0}),!c||!(null===(a=c.selectedConfig.workflowSettings[e])||void 0===a?void 0:a.enabled)))throw new Error(`Workflow ${e} is not enabled for this user.`);return this.sendConnectRequest(`/sdk/triggers/${e}?${s}`,{method:"POST",body:JSON.stringify(n),headers:{...c?{[f.SELECTED_CREDENTIAL_ID_HEADER]:c.selectedCredential.id,[f.SELECTED_CREDENTIAL_CONFIG_ID_HEADER]:c.selectedConfig.id}:{},...i},skipDefaultCredentialIdHeader:!0,baseURLOverride:this.environments.HERMES_PUBLIC_URL},!0)}installIntegration(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.userState.authenticated)throw new g.UserNotAuthenticatedError;this.closePortal();const r={showPortalAfterInstall:!1,bypassPostOAuthPrompt:!1,allowMultipleCredentials:!1,...t,isApiInstallation:!0};if(r.bypassPostOAuthPrompt&&r.showPortalAfterInstall)throw new Error("Could not use both `bypassPostOAuthPrompt` and `showPortalAfterInstall` as true at the same time.");if(this.validateExternalIdOptions(e,{externalId:t.externalId,selectedCredentialId:t.selectedCredentialId}),this.ensureHeadlessIsSupported(),this.validateAction(e),!r.allowMultipleCredentials&&this.isAlreadyInstalled(e,this.userState))throw new Error(`Integration "${e}" is already installed.`);if(t.showPortalAfterInstall){const t=Object.values(this.loadedIntegrations).find((t=>(0,l.getIntegrationTypeName)(t)===e));this.setModalState({integration:t,config:this.loadedConfigs[e],apiInstallationOptions:r,shouldShowPortalAfterInstall:!1})}else this.setModalState({integration:null});return this.connect(e,r)}ensureHeadlessIsSupported(){if(!this.project.accessibleFeatures.includes(f.ConnectAddOn.HeadlessConnectPortal))throw new Error("Headless Connect Portal is available on our Pro plan and above. Contact sales@useparagon.com to learn more or upgrade.")}async uninstallIntegration(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r;const n=null==t?void 0:t.selectedCredentialId;if(!this.userState.authenticated)throw new g.UserNotAuthenticatedError;if(this.ensureHeadlessIsSupported(),this.validateAction(e),!this.hasCredential(e,this.userState,t.selectedCredentialId))throw new g.IntegrationNotInstalledError(e);const o=this.loadedIntegrations[e].id,i=this.userState.integrations[e],a=n?null===(r=this.getCredentialAndConfig({selectedCredentialId:n},i))||void 0===r?void 0:r.selectedCredential.id:void 0,s=null!=a?a:null==i?void 0:i.credentialId;if(!s||!i)throw new Error("No credential found for uninstall");await this.sendConnectRequest(`/sdk/integrations/${o}`,{method:"DELETE",headers:{...s?{[f.SELECTED_CREDENTIAL_ID_HEADER]:s}:{}}}),this.updateAuthenticatedUser({integrations:{...this.userState.integrations,[e]:(0,u.getActionStateForCredentialDelete)(s,i)}}),n===this.modalState.selectedCredentialId&&this.setModalState({integration:null,selectedCredentialId:void 0}),this.saveState(),this.triggerSDKEvent({type:f.SDK_EVENT.ON_INTEGRATION_UNINSTALL,integrationId:o,integrationType:e})}async disableWorkflow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r;const{selectedCredentialId:n,selectedConfigurationId:o}=t,{integration:i,integrationState:a}=this.getIntegrationForWorkflow(e),s=this.getCredentialAndConfig(n||o?{selectedCredentialId:n,selectedConfigurationId:o}:{selectedCredentialId:a.credentialId},a);if(!s||!(null===(r=s.selectedConfig.workflowSettings[e])||void 0===r?void 0:r.enabled))throw new Error(`Workflow ${e} cannot be disabled for this user.`);const{selectedConfig:l,selectedCredential:c}=s;await this.sendConnectRequest(`/sdk/workflows/${e}`,{method:"DELETE",headers:{[f.SELECTED_CREDENTIAL_ID_HEADER]:c.id,[f.SELECTED_CREDENTIAL_CONFIG_ID_HEADER]:l.id}});const u={...l,workflowSettings:{...l.workflowSettings,[e]:{settings:{},...l.workflowSettings[e],enabled:!1}}},d={...c,configurations:c.configurations.filter((e=>e.id!==l.id)).concat(u)};this.updateCredentialData(d,i)}async enableWorkflow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r;const{selectedCredentialId:n,selectedConfigurationId:o}=t,{integration:i,integrationState:s}=this.getIntegrationForWorkflow(e),l=this.getCredentialAndConfig(n||o?{selectedCredentialId:n,selectedConfigurationId:o}:{selectedCredentialId:s.credentialId},s);if(!l||(null==l?void 0:l.selectedCredential.status)!==a.CredentialStatus.VALID)throw new Error("Valid credential not found for provided options.");const{selectedConfig:c,selectedCredential:u}=l;if(null===(r=c.workflowSettings[e])||void 0===r?void 0:r.enabled)throw new Error(`Workflow ${e} is already enabled for this user.`);await this.sendConnectRequest(`/sdk/workflows/${e}`,{method:"POST",headers:{[f.SELECTED_CREDENTIAL_ID_HEADER]:u.id,[f.SELECTED_CREDENTIAL_CONFIG_ID_HEADER]:c.id}});const d={...c,workflowSettings:{...c.workflowSettings,[e]:{settings:{},...c.workflowSettings[e],enabled:!0}}},h={...u,configurations:u.configurations.filter((e=>e.id!==c.id)).concat(d)};this.updateCredentialData(h,i)}async getIntegrationAccount(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r;this.validateAction(e);const n=null===(r=this.userState.integrations[e])||void 0===r?void 0:r.allCredentials;if(!(null==n?void 0:n.length))throw new Error("Connect credential not found");const o=await this.sendConnectRequest(`/sdk/credentials?integration=${e}&includeAccountAuth=${t.includeAccountAuth}`,{method:"GET",headers:t.selectedCredentialId?{[f.SELECTED_CREDENTIAL_ID_HEADER]:t.selectedCredentialId}:{}});if(!o)throw new Error("Integration not connected");return o}getIntegrationForWorkflow(e){if(!this.userState.authenticated)throw new g.UserNotAuthenticatedError;const t=Object.values(this.loadedIntegrations).find((t=>{const r=t.configs[0].values;return e in(r.workflowMeta||{})}));if(!t)throw new Error("Workflow not found in the configured integrations in your Paragon project.");const r=(0,l.getIntegrationTypeName)(t)?this.userState.integrations[(0,l.getIntegrationTypeName)(t)]:void 0;if(!r||!r.allCredentials.some((e=>{let{status:t}=e;return t===a.CredentialStatus.VALID})))throw new Error(`Integration "${(0,l.getIntegrationTypeName)(t)}" not enabled for workflow."`);return{integration:t,integrationState:r}}async updateLocalState(e){var t,r;const[n,o]=await Promise.all([this.fetchUserData(),this.fetchIntegrations()]);this.project=n.project;let i={...n.integrations};if(this.modalState.integration&&this.integrationToBeEnabled){const e=this.userState.integrations[this.integrationToBeEnabled],n=null==e?void 0:e.credentialConfigId,o=null==e?void 0:e.credentialId;let a;if(n)a=null===(t=i[this.integrationToBeEnabled])||void 0===t?void 0:t.allConfigurations.find((e=>{let{id:t}=e;return t===n}));else if(o){const e=null===(r=i[this.integrationToBeEnabled])||void 0===r?void 0:r.allCredentials.find((e=>{let{id:t}=e;return t===o}));a=e?e.configurations.find((e=>e.isDefault)):void 0}a&&(i={...i,[this.integrationToBeEnabled]:{enabled:!1,allConfigurations:[],allCredentials:[],...i[this.integrationToBeEnabled],credentialId:a.connectCredentialId,credentialConfigId:a.id,workflowSettings:a.workflowSettings,configuredWorkflows:a.workflowSettings,sharedSettings:a.sharedSettings,configMeta:a.configMeta}})}this.updateAuthenticatedUser({integrations:i,meta:n.meta,resources:n.resources}),this.updateIntegrations(o),this.saveState();if(null!=e&&Object.keys(e).length>0&&(0,m.hasPersonaMetaChanged)(e,n.meta)){const t=(0,m.normalizePersonaMeta)(e);await this.patchUserMetadata(t),this.updateAuthenticatedUser({meta:{...n.meta,...t}})}}async patchUserMetadata(e){await this.sendConnectRequest("/sdk/me",{method:"PATCH",body:JSON.stringify({meta:e})})}async fetchUserData(){const e=await this.sendConnectRequest("/sdk/me",{});if(!e)throw new Error("Unable to get user Data");return{...e,integrations:Object.fromEntries(Object.entries(e.integrations).map((e=>{let[t,r]=e;const n=r.allCredentials.flatMap((e=>{let{configurations:t}=e;return t}));return[t,{...r,allConfigurations:n}]})))}}async fetchIntegrations(){const e=await this.sendConnectRequest("/sdk/integrations");if(!e)throw new Error("Unable to fetch integrations");return e}getIntegrationIcon(e){if(!e.customIntegration){const t=f.overrideActionAlias[e.type]||e.type;return`${this.environments.CDN_PUBLIC_URL}/integrations/${t}.svg`}return e.customIntegration.icon?e.customIntegration.icon:`${this.environments.CDN_PUBLIC_URL}/images/icons/byo-placeholder.svg`}updateIntegrations(e){e.forEach((e=>{var t;if(e.configs.length)try{const r=(0,l.getIntegrationTypeName)(e);this.loadedConfigs[r]=e.configs[0].values,this.loadedIntegrations[r]={...e,type:e.type.startsWith("custom.")?i.ACTION_CUSTOM:e.type},Boolean(e.isActive)&&(this.metadata[r]={type:r,name:e.name,brandColor:e.brandColor,icon:this.getIntegrationIcon(e)}),(null===(t=this.modalState.integration)||void 0===t?void 0:t.id)===e.id&&this.setModalState({integration:{...e,type:e.type.startsWith("custom.")?i.ACTION_CUSTOM:e.type}})}catch(e){console.warn(e)}}))}async setUserMetadata(e){return await this.patchUserMetadata((0,m.normalizePersonaMeta)(e)),await this.updateLocalState(),this.render(),this.userState}configureGlobal(e,t){var r,n,o,i,a,s,l,c;if(!e||!e.host)throw new Error("host not specified");const u=e.host.indexOf("http")>-1?new URL(e.host).hostname:e.host;this.environments.CONNECT_PUBLIC_URL=null!==(r=null==t?void 0:t.CONNECT_PUBLIC_URL)&&void 0!==r?r:(0,_.getServiceUrl)("connect",u),this.environments.DASHBOARD_PUBLIC_URL=null!==(n=null==t?void 0:t.DASHBOARD_PUBLIC_URL)&&void 0!==n?n:(0,_.getServiceUrl)("dashboard",u),this.environments.HERMES_PUBLIC_URL=null!==(o=null==t?void 0:t.HERMES_PUBLIC_URL)&&void 0!==o?o:(0,_.getServiceUrl)("hermes",u),this.environments.PASSPORT_PRODUCTION_URL=null!==(i=null==t?void 0:t.PASSPORT_PRODUCTION_URL)&&void 0!==i?i:(0,_.getServiceUrl)("passport",u),this.environments.PASSPORT_PUBLIC_URL=null!==(a=null==t?void 0:t.PASSPORT_PUBLIC_URL)&&void 0!==a?a:(0,_.getServiceUrl)("passport",u),this.environments.ZEUS_PUBLIC_URL=null!==(s=null==t?void 0:t.ZEUS_PUBLIC_URL)&&void 0!==s?s:(0,_.getServiceUrl)("zeus",u),this.environments.CDN_PUBLIC_URL=null!==(l=null==t?void 0:t.CDN_PUBLIC_URL)&&void 0!==l?l:(0,_.getServiceUrl)("dashboard",u),this.environments.WORKER_PROXY_PUBLIC_URL=null!==(c=null==t?void 0:t.WORKER_PROXY_PUBLIC_URL)&&void 0!==c?c:(0,_.getServiceUrl)("worker-proxy",u),this.userState.authenticated=!1,this.root?this.root.src=`${this.environments.CONNECT_PUBLIC_URL}/ui${this.projectId?`?projectId=${this.projectId}`:""}`:console.error("Root element not defined")}async completeInstall(e,t){var r;if(!this.userState.authenticated)throw new Error("Authentication is required");if(!t||!t.authorizationCode)throw new Error("authorizationCode is required");if(t.redirectUrl&&!(0,_.isValidUrl)(t.redirectUrl))throw new Error(`${t.redirectUrl} is not valid url`);this.validateAction(e);const n=Object.values(this.loadedIntegrations).find((t=>(0,l.getIntegrationTypeName)(t)===e)),o=null===(r=t.showPortalAfterInstall)||void 0===r||r,i=await this.sendConnectRequest("/sdk/credentials",{method:"POST",body:JSON.stringify({code:t.authorizationCode,integrationId:n.id,redirectUrl:t.redirectUrl?(0,_.sanitizeUrl)(t.redirectUrl):void 0,integrationOptions:t.integrationOptions||{}})});if(!i)throw new Error("Unable to create credential");this.updateCredentialData(i,n),o&&this.setModalState({integration:n,config:this.loadedConfigs[e],apiInstallationOptions:{}})}updateCredentialData(e,t){var r;const n=this.userState,o=(0,l.getIntegrationTypeName)(t),i=n.integrations[o],s=i.allCredentials.findIndex((t=>{let{id:r}=t;return r===e.id}));s>-1?i.allCredentials[s]=e:i.allCredentials.push(e);const c=Object.values(null!==(r=i.allConfigurations)&&void 0!==r?r:[]).filter((t=>{let{connectCredentialId:r}=t;return r!==e.id})).concat(e.configurations);if(!(-1===s||e.id===i.credentialId||!(!i.credentialConfigId||!e.configurations.some((e=>e.id===i.credentialConfigId)))))return this.updateAuthenticatedUser({integrations:{...n.integrations,[o]:{...i,allConfigurations:c}}}),void this.saveState();const u=i.credentialConfigId?e.configurations.find((e=>i.credentialConfigId===e.id)):e.configurations[0];this.updateAuthenticatedUser({integrations:{...n.integrations,[o]:{...i,allConfigurations:c,credentialStatus:e.status,enabled:e.status===a.CredentialStatus.VALID,credentialId:e.id,providerId:e.providerId,providerData:e.providerData,configMeta:null==u?void 0:u.configMeta,credentialConfigId:null==u?void 0:u.id,externalId:null==u?void 0:u.externalId,sharedSettings:null==u?void 0:u.sharedSettings,workflowSettings:null==u?void 0:u.workflowSettings,configuredWorkflows:null==u?void 0:u.workflowSettings}}}),this.saveState()}async connectAction(e,t){var r;if(!this.userState.authenticated)throw new g.UserNotAuthenticatedError;const n=null===(r=this.userState.resources.find((t=>e===t.slug)))||void 0===r?void 0:r.id;if(!n)throw new Error(`No resource found with name "${e}".`);if(!t||"object"!=typeof t)throw new Error("payload must be of type object.");const o=await this.sendConnectRequest(`/sdk/resources/${n}/connect`,{method:"POST",body:JSON.stringify(t)});if(!o)throw new Error(`Unable to connect to "${e}".`);return o}async createConfiguration(e){let{credentialId:t,externalId:r}=e;var n,o;if(!this.userState.authenticated)throw new g.UserNotAuthenticatedError;if(!t)throw new Error('Required options not provided: "credentialId"');if(void 0!==r&&""===(0,m.sanitizeExternalConfigId)(r))throw new Error("`externalId` must not be an empty or whitespace-only string.");const i=this.getCredentialAndConfig({selectedCredentialId:t});if(!i||(null==i?void 0:i.selectedCredential.status)!==a.CredentialStatus.VALID)throw new Error("Valid credential not found for provided options.");const s=await this.sendConnectRequest(`/sdk/credentials/${t}/configurations`,{method:"POST",body:JSON.stringify(r?{externalId:r}:{})});if(!s)throw new Error("Unable to create a configuration for credential.");const l=Object.keys(this.userState.integrations).find((e=>{var t;return null===(t=this.userState.integrations[e])||void 0===t?void 0:t.allCredentials.find((e=>{let{id:t}=e;return t===s.id}))}));if(l){const e=null===(n=this.userState.integrations[l])||void 0===n?void 0:n.allConfigurations.filter((e=>{let{connectCredentialId:t}=e;return t!==s.id})).concat(s.configurations),t=null===(o=this.userState.integrations[l])||void 0===o?void 0:o.allCredentials.map((e=>e.id===s.id?s:e)),r={...this.userState.integrations,[l]:{enabled:!1,...this.userState.integrations[l],allConfigurations:e||[],allCredentials:t||[]}};this.updateAuthenticatedUser({integrations:r})}return[...s.configurations].sort(((e,t)=>new Date(t.dateCreated).getTime()-new Date(e.dateCreated).getTime()))[0]}async destroyConfiguration(e){let{id:t,credentialId:r}=e;var n,o,i,a;if(!this.userState.authenticated)throw new g.UserNotAuthenticatedError;if(!(null==t?void 0:t.trim())||!(null==r?void 0:r.trim()))throw new Error("One or more required options not provided.");const s=this.getCredentialAndConfig({selectedConfigurationId:t,selectedCredentialId:r});if(!s)throw new Error(`Unable to find credential for configuration: ${t}.`);if(s.selectedConfig.isDefault)throw new Error("Cannot delete default configuration.");await this.sendConnectRequest(`/sdk/credentials/${s.selectedCredential.id}/configurations`,{method:"DELETE",headers:{[f.SELECTED_CREDENTIAL_ID_HEADER]:null==s?void 0:s.selectedCredential.id,[f.SELECTED_CREDENTIAL_CONFIG_ID_HEADER]:null==s?void 0:s.selectedConfig.id}});const l=Object.keys(this.userState.integrations).find((e=>{var t;return null===(t=this.userState.integrations[e])||void 0===t?void 0:t.allCredentials.find((e=>{let{id:t}=e;return t===s.selectedCredential.id}))}));if(l){const{selectedConfig:e,selectedCredential:t}=s,r=null===(n=this.userState.integrations[l])||void 0===n?void 0:n.allConfigurations.filter((t=>{let{id:r}=t;return r!==e.id})),c=null===(o=this.userState.integrations[l])||void 0===o?void 0:o.allCredentials.map((r=>r.id!==t.id?r:{...r,configurations:r.configurations.filter((t=>{let{id:r}=t;return r!==e.id}))})),u={...this.userState.integrations,[l]:{enabled:!1,...this.userState.integrations[l],allConfigurations:r||[],allCredentials:c||[]}};this.updateAuthenticatedUser({integrations:u}),(null===(i=this.userState.integrations[l])||void 0===i?void 0:i.credentialId)===t.id&&(null===(a=this.userState.integrations[l])||void 0===a?void 0:a.credentialConfigId)===e.id&&this.closePortal()}}async updateConfiguration(e){let{id:t,credentialId:r,meta:n={}}=e;var o,i;if(!this.userState.authenticated)throw new g.UserNotAuthenticatedError;if(!(null==t?void 0:t.trim())||!(null==r?void 0:r.trim()))throw new Error("One or more required options not provided.");const a=this.getCredentialAndConfig({selectedConfigurationId:t,selectedCredentialId:r});if(!(null==a?void 0:a.selectedConfig))throw new Error(`Cannot find credential configuration with given id: "${t}"`);const s=await this.sendConnectRequest(`/sdk/credentials/${a.selectedConfig.connectCredentialId}/configurations`,{method:"PATCH",body:JSON.stringify({meta:n}),headers:{[f.SELECTED_CREDENTIAL_ID_HEADER]:a.selectedCredential.id,[f.SELECTED_CREDENTIAL_CONFIG_ID_HEADER]:a.selectedConfig.id}});if(!s)throw new Error("Unable to update configuration.");const l=Object.keys(this.userState.integrations).find((e=>{var t;return null===(t=this.userState.integrations[e])||void 0===t?void 0:t.allCredentials.find((e=>{let{id:t}=e;return t===s.id}))}));if(l){const e=null===(o=this.userState.integrations[l])||void 0===o?void 0:o.allConfigurations.filter((e=>{let{connectCredentialId:t}=e;return t!==s.id})).concat(s.configurations),t=null===(i=this.userState.integrations[l])||void 0===i?void 0:i.allCredentials.map((e=>e.id===s.id?s:e)),r={...this.userState.integrations,[l]:{enabled:!1,...this.userState.integrations[l],allConfigurations:e||[],allCredentials:t||[]}};this.updateAuthenticatedUser({integrations:r})}const c=s.configurations.find((e=>{let{id:t}=e;return t===a.selectedConfig.id}));return c}async pollForCredential(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n,o,i;const s=Date.now(),l=async()=>{try{return await this.sendConnectRequest(`/sdk/actions/session-id/${t}`,{method:"GET"})}catch(e){return console.error("error",e),null}};try{const t=await(0,v.tryUntil)(l,((e,t)=>{var n;return!(null===(n=r.abortSignal)||void 0===n?void 0:n.aborted)&&!(Date.now()-s>=d.MAX_POLL_DURATION||(null==e?void 0:e.connectCredentialId))}),1e3);if(!t||!t.connectCredentialId)return;const c=null===(n=this.userState.integrations[e])||void 0===n?void 0:n.allCredentials.find((e=>e.id===t.connectCredentialId)),u=this.getIntegrationByName(e);if(c&&c.status===a.CredentialStatus.VALID)return this.triggerSDKEvent({type:f.SDK_EVENT.ON_INTEGRATION_INSTALL,integrationId:u.id,integrationType:e}),void(null===(o=r.onSuccess)||void 0===o||o.call(r,{integrationId:u.id,integrationType:e,credentialId:t.connectCredentialId,credential:c}));const h=await this.sendConnectRequest(`/sdk/credentials/${t.connectCredentialId}`,{method:"GET"});if(!h)return;this.updateCredentialData(h,this.loadedIntegrations[e]),h.status===a.CredentialStatus.VALID&&this.triggerSDKEvent({type:f.SDK_EVENT.ON_INTEGRATION_INSTALL,integrationId:u.id,integrationType:e}),null===(i=r.onSuccess)||void 0===i||i.call(r,{integrationId:u.id,integrationType:e,credentialId:t.connectCredentialId,credential:h})}catch(e){r.onError&&r.onError(e)}finally{await this.sendConnectRequest(`/sdk/actions/session-id/${t}`,{method:"DELETE"})}}async getCustomWebhookUserManualUrl(e,t){var r;const n=this.userState;if(!n.authenticated)throw new g.UserNotAuthenticatedError;const{workflow:o,type:i}=Object.values(this.loadedIntegrations).reduce(((t,r)=>{if(t.workflow)return t;const n=r.workflows.find((t=>t.id===e));return n?{workflow:n,type:r.type}:t}),{workflow:void 0,type:void 0});if(!o)throw new Error(`Unable to get workflow for "${e}".`);if(!i)throw new Error(`Unable to get integration type for "${e}".`);let a=o.integrationId,s=null!=t?t:null===(r=n.integrations[i])||void 0===r?void 0:r.credentialId;if(o.resourceId){const e=n.resources.find((e=>e.id===o.resourceId));a=null==e?void 0:e.integrationId,s=null==e?void 0:e.credentialId}if(!a)throw new Error(`Unable to find integrationId for "${e}".`);if(!s)throw new Error(`Unable to find credentialId for "${e}".`);return`${this.environments.HERMES_PUBLIC_URL}/triggers/connect/${this.projectId}/${a}/custom-triggers/${o.customWebhookTriggerId}?id=${s}`}getIntegrationConfig(e){var t,r;if(!e)throw new Error("Integration is required.");const n=this.loadedIntegrations[e],o=(0,h.cloneDeep)(n.configs[0].values),i=[],a=[],s=new Map(n.workflows.map((e=>[e.id,e]))),l=null!==(t=n.noPermissionWorkflows)&&void 0!==t?t:[];return Object.values(o.workflowMeta||{}).map((e=>{var t;if(!s.has(e.id)&&!l.includes(e.id))return;const r=null===(t=s.get(e.id))||void 0===t?void 0:t.description;e.hidden||e.permissions&&l.includes(e.id)?i.push({...e,description:r}):a.push({...e,description:r})})),{shortDescription:o.description,longDescription:o.overview,availableUserSettings:null===(r=o.sharedMeta)||void 0===r?void 0:r.inputs,availableWorkflows:a,hiddenWorkflows:i}}getCredentialPair(e,t){const r=this.userState;if(!r.authenticated)throw new g.UserNotAuthenticatedError;const n=r.integrations[e];if(!n)throw new g.IntegrationNotFoundError(e);const o=(null==t?void 0:t.selectedCredentialId)||n.credentialId;if(!o)throw new Error("Credential not found");const i=n.allCredentials.find((e=>e.id===o));if(!i)throw new Error("Credential not found");if(i.status!==a.CredentialStatus.VALID)throw new Error("Valid credential not found for provided options.");const s=i.configurations.find((e=>(null==t?void 0:t.selectedConfigurationId)?e.id===t.selectedConfigurationId:e.isDefault));if(!s)throw new Error("Configuration not found");return{selectedCredential:i,selectedConfiguration:s}}async updateConfig(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.userState.authenticated)throw new g.UserNotAuthenticatedError;this.validateAction(e);const{selectedConfiguration:n,selectedCredential:o}=this.getCredentialPair(e,r),i=this.userState.token,a=await this.sendConnectRequest(`/sdk/credentials/${o.id}`,{method:"PATCH",headers:{Authorization:`Bearer ${i}`,[f.SELECTED_CREDENTIAL_ID_HEADER]:o.id,[f.SELECTED_CREDENTIAL_CONFIG_ID_HEADER]:n.id},body:JSON.stringify({config:t})});if(!a)throw new Error(`Failed to update settings for ${e}.`);const s=this.loadedIntegrations[e];return this.updateCredentialData(a,s),a}async updateIntegrationUserSettings(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.userState.authenticated)throw new g.UserNotAuthenticatedError;const{selectedConfiguration:n}=this.getCredentialPair(e,r),o=n.sharedSettings,i=await this.updateConfig(e,{sharedSettings:{...o,...t}},r);return{userState:this.userState,errors:"errors"in i?i.errors:[]}}async updateWorkflowUserSettings(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!this.userState.authenticated)throw new g.UserNotAuthenticatedError;const{selectedConfiguration:o}=this.getCredentialPair(e,n),i=(0,h.cloneDeep)(o.workflowSettings),a=null==i?void 0:i[t];if(!a)throw new Error(`Workflow with ID "${t}" was not found in the current configuration.`);for(const e in r)a.settings[e]=r[e];const s=await this.updateConfig(e,{workflowSettings:i},n);return{userState:this.userState,errors:"errors"in s?s.errors:[]}}async updateWorkflowState(e,t){const r=[];for(const[n,o]of Object.entries(e))try{o?await this.enableWorkflow(n,t):await this.disableWorkflow(n,t)}catch(e){r.push({workflowId:n,message:e.message})}return{user:this.getUser(),errors:r}}async getFieldOptions(e){let{integration:t,action:r,source:n,search:o,cursor:i,parameters:a=[],selectedCredentialId:s}=e;var l;this.validateAction(t);const c=null!=r?r:null==n?void 0:n.cacheKey;if(!c)throw new Error('Either "action" or a "source" with a cacheKey must be provided.');if(this.hasCustomDropdownLoader(c)){const e=await this._loadCustomDropdownOptions(c,"string"==typeof i?i:void 0,o);return{data:e.options,nestedData:[],nextPageCursor:e.nextPageCursor}}if(n&&"dynamicFieldMappingKey"in n){const{dynamicFieldMappingKey:e,dynamicFieldMappingType:r}=n,s=null===(l=a.find((e=>"value"in e.source&&e.source.value)))||void 0===l?void 0:l.source,c=null==s?void 0:s.value,u=await this._fetchBYOFieldMappingOptions(t,r,e,{objectType:c,cursor:"string"==typeof i?i:void 0,search:o});return{data:u.options,nestedData:[],nextPageCursor:u.nextPageCursor}}const u=await this.sendConnectRequest("/sdk/actions",{method:"POST",body:JSON.stringify({action:t,sourceKey:c,parameters:a,paginationParameters:{pageCursor:null!=i?i:0,search:o}}),headers:{...s?{[f.SELECTED_CREDENTIAL_ID_HEADER]:s}:{}}});let d=[],h=[];const p=u.output.records||u.output;return p[0]&&"id"in p[0]?h=p:d=p,{data:d,nestedData:h,nextPageCursor:u.output.nextPageCursor||null}}async getDataSourceOptions(e,t){var r;const n=this.getIntegrationByName(e);return(0,h.cloneDeep)(null===(r=n.sdkIntegrationConfig)||void 0===r?void 0:r.dataSources[t])}getSourcesForInput(e,t){var r,n;if(t.type===f.SidebarInputType.CustomDropdown){const{customDropdownOptions:r,title:n,key:o}=t,i=this.resolveCustomDropdownSource(o,e);return i?{kind:"single",source:{type:f.DataSourceType.STATIC_ENUM,title:null!=n?n:"",id:null!=o?o:"",values:i}}:this.hasCustomDropdownLoader(o)?{kind:"single",source:{type:f.DataSourceType.DYNAMIC,title:null!=n?n:"",cacheKey:null!=o?o:"",refreshDependencies:[],mapRefreshToValues:e=>e,getRefreshActionParameters:()=>({})}}:(null==r?void 0:r.length)?{kind:"single",source:{type:f.DataSourceType.STATIC_ENUM,title:null!=n?n:"",id:null!=o?o:"",values:r}}:(o&&console.error(`No dynamic fields were provided for dropdown key "${o}" for the input "${n}"`),null)}if(!("sourceType"in t)||!t.sourceType)return null;let o;try{o=this.getIntegrationByName(e)}catch{return null}const i=null===(r=o.sdkIntegrationConfig)||void 0===r?void 0:r.dataSources[t.sourceType];if(!i)return null;if(i.type===f.DataSourceType.DYNAMIC)return{kind:"single",source:i};if(i.type===f.DataSourceType.FIELD_MAPPER){const{recordSource:r,fieldSource:o,dependentInputSource:a,dependentFieldInputSource:s}=i,l=t,c=this.resolveMapObjectFieldSource(l.dynamicObjectName,e);l.dynamicObjectName&&!c&&console.error(`No dynamic fields were provided by Object Name key "${l.dynamicObjectName}" for the input "${null!==(n=t.title)&&void 0!==n?n:"Field Mapping"}"`);const u=c&&!Array.isArray(c)&&c.useBYOFieldMappingOption,d=l.dynamicObjectName;return{kind:"fieldMapper",recordSource:u&&d?{...r,dynamicFieldMappingKey:d,dynamicFieldMappingType:f.DynamicFieldMappingLoaderType.OBJECT_TYPES}:r,fieldSource:u&&d?{...o,dynamicFieldMappingKey:d,dynamicFieldMappingType:f.DynamicFieldMappingLoaderType.INTEGRATION_FIELDS}:o,...!u&&a&&{dependentInputSource:a},...!u&&s&&{dependentFieldInputSource:s},...c&&{mapObjectFieldOptions:c}}}if(i.type===f.DataSourceType.COMBO_INPUT){const{mainInputSource:e,dependentInputSource:t}=i;return{kind:"combo",mainInputSource:e,dependentInputSource:t}}if(i.type===f.DataSourceType.DYNAMIC_COMBO_INPUT){const{mainInputSource:e,dependentInputSource:t,variableInputSource:r}=i;return{kind:"defaultFieldValue",mainInputSource:e,dependentInputSource:t,...r&&{variableInputSource:r}}}return null}getAccountTypeOptions(e){var t,r,n;const o=this.getIntegrationBySlug(e);return null!==(n=(0,h.cloneDeep)(null!==(r=null===(t=o.sdkIntegrationConfig)||void 0===t?void 0:t.accountTypes)&&void 0!==r?r:[]))&&void 0!==n?n:[]}getPreOptions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";var r,n,o,i;const a=(0,h.cloneDeep)(this.getIntegrationBySlug(e));if(a.customIntegration)return a.authenticationType===s.AuthenticationScheme.OAUTH_CLIENT_CREDENTIAL?(0,h.cloneDeep)(O):null!==(r=a.customIntegration.inputFields)&&void 0!==r?r:[];const l=this.getAccountTypeOptions(e);if(null==l?void 0:l.length){const e=null==l?void 0:l.find((e=>e.id===t));if(null===(n=null==e?void 0:e.endUserSuppliedValues)||void 0===n?void 0:n.length)return(0,h.cloneDeep)(e.endUserSuppliedValues)}return(null===(i=null===(o=a.sdkIntegrationConfig)||void 0===o?void 0:o.authConfigInputs)||void 0===i?void 0:i.length)?a.sdkIntegrationConfig.authConfigInputs:[]}getPostOptions(e){var t,r;const n=this.getIntegrationBySlug(e);return null!==(r=(0,h.cloneDeep)(null===(t=n.sdkIntegrationConfig)||void 0===t?void 0:t.postOauthInputs))&&void 0!==r?r:[]}async _fetchBYOFieldMappingOptions(e,t,r,n){var o,i,a;const s=null!==(i=null===(o=this.dynamicFieldMappingLoaders[e])||void 0===o?void 0:o[r])&&void 0!==i?i:null===(a=this.dynamicFieldMappingLoaders.__global__)||void 0===a?void 0:a[r];if(!s)throw new Error(`No dynamic field mapping loader found for key: ${r}`);if(t===f.DynamicFieldMappingLoaderType.OBJECT_TYPES)return await s.objectTypes(null==n?void 0:n.cursor,null==n?void 0:n.search);if(t===f.DynamicFieldMappingLoaderType.INTEGRATION_FIELDS){if(!(null==n?void 0:n.objectType))throw new Error("objectType is required for integrationFields");return await s.integrationFields({objectType:n.objectType},n.cursor,n.search)}throw new Error(`Invalid type: ${t}. Must be 'objectTypes' or 'integrationFields'`)}}t.default=k;class I{constructor(e){this.paragon=e,this.startOptions=null,this.integrationName=null,this.accountTypeValue=null,this.preOptionsValue=null,this.postOptionsValue=null,this.credentialId=null,this.hasFinishedInstruction=!1}start(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.asyncStart(e,t).catch((e=>{this.handleError(e)}))}async cancel(){this.startOptions=null,this.accountTypeValue=null,this.preOptionsValue=null,this.postOptionsValue=null,this.hasFinishedInstruction=!1;try{if(this.credentialId&&this.integrationName&&await this.paragon.uninstallIntegration(this.integrationName,{selectedCredentialId:this.credentialId}),!this.credentialId&&!this.integrationName){const e=new g.NoActiveInstallFlowError;console.warn(e.message)}}catch(e){console.error("Error cancelling the current install flow",{credentialId:this.credentialId,integration:this.integrationName},e)}finally{this.integrationName=null,this.credentialId=null}}getInstallOptions(){var e,t,r,n,o,i,a,s;return{allowMultipleCredentials:null!==(t=null===(e=this.startOptions)||void 0===e?void 0:e.allowMultipleCredentials)&&void 0!==t&&t,overrideRedirectUrl:null!==(n=null===(r=this.startOptions)||void 0===r?void 0:r.overrideRedirectUrl)&&void 0!==n?n:void 0,selectedCredentialId:null!==(i=null===(o=this.startOptions)||void 0===o?void 0:o.selectedCredentialId)&&void 0!==i?i:void 0,externalId:null!==(s=null===(a=this.startOptions)||void 0===a?void 0:a.externalId)&&void 0!==s?s:void 0}}async asyncStart(e,t){if(this.startOptions=t,this.integrationName=e,this.accountTypeValue=null,this.preOptionsValue=null,this.postOptionsValue=null,this.credentialId=null,!this.paragon.isHeadless)throw new g.HeadlessModeNotEnabledError;const r=this.next();if("oauth"===r.stage)return this.handleNext(r),this.handleOAuth();this.handleNext(r)}handleError(e,t){var r,n;const o=(0,g.getConnectSDKError)(e);null===(n=null===(r=this.startOptions)||void 0===r?void 0:r.onError)||void 0===n||n.call(r,o,null!=t?t:null)}handleNext(e){var t,r;null===(r=null===(t=this.startOptions)||void 0===t?void 0:t.onNext)||void 0===r||r.call(t,e)}handleComplete(e){var t,r;null===(r=null===(t=this.startOptions)||void 0===t?void 0:t.onComplete)||void 0===r||r.call(t,e)}getScheme(){var e,t;if(null===this.integrationName)return null;if(!this.accountTypeValue)return null!==(e=this.paragon.getIntegrationBySlug(this.integrationName).authenticationType)&&void 0!==e?e:null;const r=this.getSelectedAccountTypeOption();return null!==(t=null==r?void 0:r.scheme)&&void 0!==t?t:null}getIntegrationName(){if(!this.integrationName)throw new g.NoActiveInstallFlowError;return this.integrationName}getSelectedAccountTypeOption(){var e;return null===(e=this.paragon.getAccountTypeOptions(this.getIntegrationName()))||void 0===e?void 0:e.find((e=>e.id===this.accountTypeValue))}requiresAccountType(){const e=this.paragon.getAccountTypeOptions(this.getIntegrationName());return!(!e||0===e.length)&&!this.accountTypeValue}getIntegrationInstructionMetadata(){var e,t;if(null===this.integrationName)return null;if(!this.accountTypeValue||"user-configured-oauth"===this.accountTypeValue)return null;const r=this.paragon.getIntegrationBySlug(this.integrationName);if("salesforce"!==r.type)return null;let n=null===(t=null===(e=r.sdkIntegrationConfig)||void 0===e?void 0:e.authSchemeOptions)||void 0===t?void 0:t.packageInstallUrl;if(!n)return null;const o="login.salesforce.com/packaging/installPackage.apexp",i="https://"+o,a="appexchange.salesforce.com/appxListingDetail",s="https://"+a,l=n.startsWith(i)||n.startsWith(o),c=n.startsWith(s)||n.startsWith(a);if(!l&&!c)return null;"sandbox"!==this.accountTypeValue||c||(n=n.replace("login.salesforce.com","test.salesforce.com"));const u=this.getSalesforceInstructionMetadata(this.accountTypeValue,c,n);if(!u)return null;return{...u,packageInstallUrl:n}}getSalesforceInstructionMetadata(e,t,r){const n="sandbox"===e,o=t?"Install App":"Install Package",i=t?"You'll need an admin to add this app from AppExchange to your Salesforce org to continue authorizing your account.":"You'll need an admin to install a package to your Salesforce org to continue authorizing your account.",a=t?`From AppExchange, click ${n?"Try It":"Get It Now"} and follow the prompts to add the app to your ${n?"Sandbox":"Production"} environment.`:'In the install prompt, choose "Install for All Users" if Salesforce users in your org other than your admin will also connect their accounts to this integration.',s=t?n?"salesforce-install-app-sandbox":"salesforce-install-app-default":"salesforce-install-package",l=t?"Go to AppExchange":"Install";return{content:(0,y.dedent)(`\n ## ${o}\n\n ${i}\n\n } "Install Image")\n\n ${a}\n `),ctas:[{type:"link",label:l,href:r},{type:"copyButton",label:"Copy link",copyText:r}],finish:{type:"finishButton",label:"I've installed the package",onClick:()=>{this.setHasFinishedInstruction()}}}}requiresInstruction(){if(this.hasFinishedInstruction)return[!1,null];const e=this.getIntegrationInstructionMetadata();return null===e?[!1,null]:[!0,e]}requiresPreOptions(){var e;const t=this.paragon.getPreOptions(this.getIntegrationName(),null!==(e=this.accountTypeValue)&&void 0!==e?e:void 0);return!(!t||0===t.length)&&!this.preOptionsValue}requiresPostOptions(){var e,t;if(null!==(t=null===(e=this.getSelectedAccountTypeOption())||void 0===e?void 0:e.skipPostOAuthInputs)&&void 0!==t&&t)return!1;const r=this.paragon.getPostOptions(this.getIntegrationName());return!(!r||0===r.length)&&!this.postOptionsValue}requiresOAuth(){return this.getScheme()===s.AuthenticationScheme.OAUTH&&!this.credentialId}async handleOAuth(){let{accountType:e,endUserSuppliedValues:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=null!=e?e:this.accountTypeValue,n=this.getInstallOptions();try{const e=await new Promise(((e,o)=>{var i;this.paragon.startOAuthFlow(this.getIntegrationName(),{accountType:null!=r?r:void 0,endUserSuppliedValues:t,allowMultipleCredentials:n.allowMultipleCredentials,selectedCredentialId:n.selectedCredentialId,externalId:n.externalId,userProvidedIntegrationConfig:{overrideRedirectUrl:n.overrideRedirectUrl?(0,_.sanitizeUrl)(n.overrideRedirectUrl):void 0}},{onSuccess:t=>e(t),onError:e=>o(e),oauthTimeout:null===(i=this.startOptions)||void 0===i?void 0:i.oauthTimeout})}));if(!e||!e.credentialId)throw new Error("Could not find a credential ID");this.credentialId=e.credentialId;const o=this.next();"done"===o.stage?this.handleComplete(e):this.handleNext(o)}catch(e){this.handleError(e,{stage:"oauth"})}}async setAccountType(e){try{this.accountTypeValue=e;const t=this.next();if("oauth"===t.stage)return this.handleNext(t),void await this.handleOAuth();this.handleNext(t)}catch(e){this.handleError(e,{stage:"accountType"})}}async setPreOptions(e){var t,r;try{if(!e)throw new Error("Pre options are not set");this.preOptionsValue=e;const n=this.next();if("oauth"===n.stage)return this.handleNext(n),void await this.handleOAuth({endUserSuppliedValues:{...e}});const o="done"===n.stage,i=null!==(r=null===(t=this.getSelectedAccountTypeOption())||void 0===t?void 0:t.skipPostOAuthInputs)&&void 0!==r&&r,a=await this.paragon._oauthCallback({payload:{...e,skipPostOAuthInputs:i},integrationId:this.paragon.getIntegrationId(this.getIntegrationName())},void 0,{installOptions:this.getInstallOptions()});if(!o)return void this.handleNext(n);if(!a)return void console.warn("Could not find a credential ID");this.handleComplete(a)}catch(e){this.handleError(e,{stage:"preOptions"})}}async setPostOptions(e){var t,r;try{if(!e)throw new Error("Post options are not set");if(!this.credentialId)throw new Error("Credential ID is not set");this.postOptionsValue=e;const n=null!==(r=null===(t=this.getSelectedAccountTypeOption())||void 0===t?void 0:t.skipPostOAuthInputs)&&void 0!==r&&r,o=await this.paragon._oauthCallback({payload:{...e,skipPostOAuthInputs:n},integrationId:this.paragon.getIntegrationId(this.getIntegrationName())},this.credentialId,{installOptions:this.getInstallOptions()}),i=this.next();if(!("done"===i.stage))return void this.handleNext(i);if(!o)return void console.warn("Could not find a credential ID");this.handleComplete(o)}catch(e){this.handleError(e,{stage:"postOptions"})}}async setHasFinishedInstruction(){try{this.hasFinishedInstruction=!0;const e=this.next();if("oauth"===e.stage)return this.handleNext(e),void await this.handleOAuth();this.handleNext(e)}catch(e){this.handleError(e,{stage:"instruction"})}}getAccountTypeValue(){return this.accountTypeValue}getPreOptionsValue(){return this.preOptionsValue}getPostOptionsValue(){return this.postOptionsValue}next(){var e;const t=this.getIntegrationName();if(this.requiresAccountType())return{stage:"accountType",options:this.paragon.getAccountTypeOptions(t),done:!1};const[r,n]=this.requiresInstruction();return r?{stage:"instruction",content:n.content,ctas:n.ctas,finish:n.finish,packageInstallUrl:n.packageInstallUrl,done:!1}:this.requiresPreOptions()?{stage:"preOptions",options:this.paragon.getPreOptions(t,null!==(e=this.accountTypeValue)&&void 0!==e?e:void 0),done:!1}:this.requiresOAuth()?{stage:"oauth",done:!1}:this.requiresPostOptions()?{stage:"postOptions",options:this.paragon.getPostOptions(t),done:!1}:{stage:"done",done:!0}}}t.InstallFlow=I;const O=[{id:"clientId",title:"Client ID",type:f.SidebarInputType.ValueText,required:!0},{id:"clientSecret",title:"Client Secret",type:f.SidebarInputType.Password,required:!0}]},9892:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3821);t.default=class{constructor(){this.eventListenersMap={},this.integrationStateCallbacks={}}subscribe(e,t){var r;if(this.assertEventType(e),"function"!=typeof t)throw new Error(`no listener is provided for ${e}`);return this.eventListenersMap={...this.eventListenersMap,[e]:[...null!==(r=this.eventListenersMap[e])&&void 0!==r?r:[],t]},()=>this.unsubscribe(e,t)}subscribeToIntegration(e,t){this.integrationStateCallbacks[e]={...t}}unsubscribe(e,t){var r,n;if(this.assertEventType(e),"function"!=typeof t)throw new Error("listener is required for unsubscription");const o=(null!==(r=this.eventListenersMap[e])&&void 0!==r?r:[]).length;return this.eventListenersMap={...this.eventListenersMap,[e]:(null!==(n=this.eventListenersMap[e])&&void 0!==n?n:[]).filter((e=>e!==t))},o>this.eventListenersMap[e].length}assertEventType(e){if(!Object.values(n.SDK_EVENT).includes(e))throw new Error(`${e} is not valid paragon event`)}emitSafe(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o;(null!==(o=this.eventListenersMap[e])&&void 0!==o?o:[]).forEach((e=>{try{e(...r)}catch(e){console.error(e)}}))}emitError(e,t){this.invokeCallbackSafe(t,"onError",e)}invokeCallbackSafe(e,t){var r,n,o;try{for(var i=arguments.length,a=new Array(i>2?i-2:0),s=2;s<i;s++)a[s-2]=arguments[s];null===(n=null===(r=this.integrationStateCallbacks[e])||void 0===r?void 0:r[t])||void 0===n||n.call(r,...a)}catch(e){console.error(e)}finally{null===(o=this.integrationStateCallbacks[e])||void 0===o||delete o[t]}}triggerEvent(e,t){let{type:r,integrationId:o,integrationType:i,workflowId:a,workflowStateChange:s}=e;if(o&&i)switch(r){case n.SDK_EVENT.ON_INTEGRATION_INSTALL:{const e=[{integrationId:o,integrationType:i},t];this.invokeCallbackSafe(i,"onInstall",...e),this.emitSafe(n.SDK_EVENT.ON_INTEGRATION_INSTALL,...e);break}case n.SDK_EVENT.ON_INTEGRATION_UNINSTALL:{const e=[{integrationId:o,integrationType:i},t];this.invokeCallbackSafe(i,"onUninstall",...e),this.emitSafe(n.SDK_EVENT.ON_INTEGRATION_UNINSTALL,...e);break}case n.SDK_EVENT.ON_PORTAL_OPEN:{const e=[{integrationId:o,integrationType:i},t];this.invokeCallbackSafe(i,"onOpen",...e),this.emitSafe(n.SDK_EVENT.ON_PORTAL_OPEN,...e);break}case n.SDK_EVENT.ON_PORTAL_CLOSE:{const e=[{integrationId:o,integrationType:i},t];this.invokeCallbackSafe(i,"onClose",...e),this.emitSafe(n.SDK_EVENT.ON_PORTAL_CLOSE,...e);break}case n.SDK_EVENT.ON_WORKFLOW_CHANGE:{const e=[{integrationId:o,workflowId:a,workflowStateChange:s||{}},t];this.invokeCallbackSafe(i,"onWorkflowChange",...e),this.emitSafe(n.SDK_EVENT.ON_WORKFLOW_CHANGE,...e);break}default:throw new Error(`${r} is not valid event.`)}}}},5486:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBundledBuild=void 0;t.isBundledBuild=()=>!0},3931:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PERSONA_META_HEADER=t.BYO_USER_PROFILE_ERROR_CODE=t.BYO_CREDENTIAL_VERIFICATION_ERROR=t.INSUFFICIENT_PERMISSION=t.ACTION_CUSTOM=void 0,t.ACTION_CUSTOM="custom",t.INSUFFICIENT_PERMISSION="7210",t.BYO_CREDENTIAL_VERIFICATION_ERROR="7003",t.BYO_USER_PROFILE_ERROR_CODE="0704",t.PERSONA_META_HEADER="X-Paragon-User-Metadata"},4059:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CredentialStatus=void 0,function(e){e.PENDING="PENDING",e.INVALID="INVALID",e.VALID="VALID"}(t.CredentialStatus||(t.CredentialStatus={}))},745:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationScheme=void 0,function(e){e.BASIC="basic",e.OAUTH="oauth",e.OAUTH_CLIENT_CREDENTIAL="oauth_client_credential",e.SERVICE_ACCOUNT="service_account",e.OAUTH_APP="oauth_app",e.IMPERSONATED_APP="impersonated_app"}(t.AuthenticationScheme||(t.AuthenticationScheme={}))},1663:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateSlugForIntegration=void 0,t.generateSlugForIntegration=function(e){if(!e.name)return;return`custom.${e.name?e.name.replace(/[\W_]+/g,"").trim().toLowerCase():void 0}`}},7343:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCustomIntegrationTypeName=t.getIntegrationTypeName=void 0;const n=r(3931),o=r(1663);t.getIntegrationTypeName=function(e){var t;if(e.type===n.ACTION_CUSTOM){if(e.customIntegration)return null!==(t=e.customIntegration.slug)&&void 0!==t?t:(0,o.generateSlugForIntegration)(e.customIntegration);throw new Error(`Custom integration details are missing from this integration: ${e.id}`)}return e.type},t.isCustomIntegrationTypeName=function(e){return e.startsWith("custom.")}},9845:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MicrosoftPicker=void 0;const n=r(3821),o=r(5486),i=r(7473);class a extends i.BaseFilePicker{constructor(e,t){super(e,t),this.options=e,this.connectSDKInstance=t,this.accessToken="",this.baseUrl=""}getInstance(){return null}open(){var e,t;return this.dependencyStatus===n.FilePickerStatus.LOADED&&(null===(t=(e=this.options).onOpen)||void 0===t||t.call(e),this.launchPicker(this.getPickerOptions()),!0)}async initPicker(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"https://alcdn.msauth.net/browser/2.19.0/js/msal-browser.min.js";var i;this.dependencyStatus=n.FilePickerStatus.LOADING;const{selectedCredentialId:a,...s}=e||{};this.initOptions=s,this.selectedCredentialId=a;const l=await this.connectSDKInstance.getIntegrationAccount(t,{includeAccountAuth:!0,selectedCredentialId:a});return this.accessToken=l.accountAuth[(null===(i=n.AUTH_TOKEN_ALLOWED_INTEGRATIONS[t])||void 0===i?void 0:i.accessTokenPath)||""],this.baseUrl=this.getUrl(l,t),this.initialiseDependencyPromise(),(0,o.isBundledBuild)()?this.onScriptLoaded():this.injectScript(r),this.dependenciesPromise}onScriptLoaded(){this.dependencyStatus=n.FilePickerStatus.LOADED,this.dependenciesPromise.resolve(!0)}onScriptError(){this.dependencyStatus=n.FilePickerStatus.FAILED,this.dependenciesPromise.reject(new Error("Failed to load dependencies"))}combinePaths(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.map((e=>e.replace(/^[/\\]+|[/\\]+$/g,""))).join("/").replace(/\\/g,"/")}async launchPicker(e){if(!this.accessToken)throw new Error("Access Token is not set! Please re-authenticate your account.");const t={sdk:"8.0",entry:e.entry,search:{enabled:!0},messaging:{origin:window.location.origin,channelId:`X-PARAGON-CHANNEL-${Date.now()}`},selection:{mode:this.options.allowMultiSelect?"multiple":"single"},typesAndSources:{mode:"boolean"==typeof this.options.allowFolderSelect?this.options.allowFolderSelect?"folders":"files":"all",filters:this.options.allowedTypes,pivots:e.pivots}},r=new URLSearchParams({filePicker:JSON.stringify(t)}).toString(),n=`${this.getPickerUrl(this.baseUrl)}?${r}`,o=window.open("","Picker","width=800,height=600,left=100,top=150");if(!o)throw new Error("Failed to open picker window.");const i=o.document.createElement("form");i.setAttribute("action",n),i.setAttribute("method","POST");const a=o.document.createElement("input");a.setAttribute("type","hidden"),a.setAttribute("name","access_token"),a.setAttribute("value",this.accessToken),i.appendChild(a),o.document.body.appendChild(i),i.submit(),this.setupMessageListener(o,t.messaging.channelId)}initializePort(e,t){e.addEventListener("message",(async r=>{const{type:n,data:o,id:i}=r.data;if("command"===n){const{command:r}=o;this.handlePickerCommand({command:r,id:i,items:o.items},t,e)}})),e.start(),e.postMessage({type:"activate"})}setupMessageListener(e,t){window.addEventListener("message",(r=>{var n;if(r.source===e&&(null===(n=r.data)||void 0===n?void 0:n.channelId)===t){const{type:t,data:n}=r.data;switch(t){case"initialize":const o=r.ports[0];this.initializePort(o,e);break;case"command":this.handlePickerCommand(n,e);break;default:console.warn("Unknown message type:",t)}}}))}handlePickerCommand(e,t,r){var n,o,i,a,s,l;const{command:c,id:u,items:d}=e;switch(c){case"authenticate":if(!r)break;r.postMessage({type:"acknowledge",id:u}),this.respondToAuthenticateCommand(u,r);break;case"close":null===(o=(n=this.options).onClose)||void 0===o||o.call(n),t.close();break;case"pick":null==r||r.postMessage({type:"result",id:u,data:{result:"success"}}),null===(a=(i=this.options).onFileSelect)||void 0===a||a.call(i,d),null===(l=(s=this.options).onClose)||void 0===l||l.call(s),t.close();break;default:null==r||r.postMessage({type:"error",id:u,data:{message:"Unsupported command",command:c}})}}async respondToAuthenticateCommand(e,t){var r,o;try{const i=this.getIntegrationName(),a=await this.connectSDKInstance.getIntegrationAccount(i,{includeAccountAuth:!0,selectedCredentialId:this.selectedCredentialId}),s=(null===(r=n.AUTH_TOKEN_ALLOWED_INTEGRATIONS[i])||void 0===r?void 0:r.accessTokenPath)||"",l=null===(o=a.accountAuth)||void 0===o?void 0:o[s];if(!l)throw new Error("Failed to refresh access token");this.accessToken=l,this.baseUrl=this.getUrl(a,i),t.postMessage({type:"result",id:e,data:{result:"token",token:l}})}catch(r){t.postMessage({type:"error",id:e,data:{message:r instanceof Error?r.message:"Failed to refresh access token",command:"authenticate"}})}}}t.MicrosoftPicker=a},9008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BoxFilePicker=void 0;const n=r(3821),o=r(6917),i=r(5486),a=r(7473),s={version:"21.0.0",scriptUrl:"https://cdn01.boxcdn.net/platform/elements/21.0.0/en-US/picker.js",cssUrl:"https://cdn01.boxcdn.net/platform/elements/21.0.0/en-US/picker.css",containerClass:"picker",containerStyles:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",height:"80%",zIndex:"2147483647",display:"flex",alignItems:"center",justifyContent:"center"},pickerOptions:{maxSelectable:1,canUpload:!0,canCreateNewFolder:!0,canSetShareAccess:!0,canDownload:!0,canDelete:!1,canRename:!1,canPreview:!0,canComment:!1,canShare:!0,canMove:!1,canCopy:!0}};class l extends a.BaseFilePicker{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(e,t),this.accessToken="",this.iframe=null,this.config={...s,...r}}isScopedMode(){var e,t;return Boolean(null===(t=null===(e=this.options.integrationOptions)||void 0===e?void 0:e.box)||void 0===t?void 0:t.scopeCSS)}getInstance(){var e,t,r;if(!this.instance){const n=this.isScopedMode()?null===(e=this.iframe)||void 0===e?void 0:e.contentWindow:window;if(!n)throw new Error("Box script is not loaded yet. Please wait for initialization to complete.");if(!this.options.allowFolderSelect&&!(null===(t=n.Box)||void 0===t?void 0:t.FilePicker)||this.options.allowFolderSelect&&!(null===(r=n.Box)||void 0===r?void 0:r.FolderPicker))throw new Error("Box script is not loaded yet. Please wait for initialization to complete.");const o=new n.Box[this.options.allowFolderSelect?"FolderPicker":"FilePicker"]({container:`.${this.config.containerClass}`});if(!o)throw new Error(`Failed to create Box ${this.options.allowFolderSelect?"Folder":"File"}Picker instance`);this.instance=o,this.setupEventListeners()}return this.instance}setupEventListeners(){var e=this;if(!this.instance)return;const t={choose:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];var r,n;null===(n=(r=e.options).onFileSelect)||void 0===n||n.call(r,t),e.cleanup()},cancel:()=>{var e,t;null===(t=(e=this.options).onCancel)||void 0===t||t.call(e),this.cleanup()},close:()=>{var e,t;null===(t=(e=this.options).onClose)||void 0===t||t.call(e),this.cleanup()}};Object.entries(t).forEach((e=>{let[t,r]=e;var n;null===(n=this.instance)||void 0===n||n.addListener(t,r)}))}cleanup(){var e,t;if(this.instance){if(this.instance.removeAllListeners(),this.isScopedMode()&&this.iframe){const t=null===(e=this.iframe.contentDocument)||void 0===e?void 0:e.querySelector(`.${this.config.containerClass}`);t&&t.remove(),this.iframe.style.display="none"}else null===(t=document.querySelector(`.${this.config.containerClass}`))||void 0===t||t.remove();this.instance=void 0}}createPickerContainer(){if(this.isScopedMode()&&this.iframe){if("none"!==this.iframe.style.display)return;Object.entries(this.config.containerStyles).forEach((e=>{let[t,r]=e;var n;(null===(n=this.iframe)||void 0===n?void 0:n.style)[t]=r})),this.iframe.style.border="0",this.iframe.style.display="block";const e=this.iframe.contentDocument;if(e&&!e.querySelector(`.${this.config.containerClass}`)){const t=e.createElement("div");t.className=this.config.containerClass,e.body.appendChild(t)}return}if(document.querySelector(`.${this.config.containerClass}`))return;const e=document.createElement("div");e.className=this.config.containerClass,Object.entries(this.config.containerStyles).forEach((t=>{let[r,n]=t;e.style[r]=n})),document.body.appendChild(e)}injectCSS(e){const t=document.createElement("link");t.rel="stylesheet",t.href=e,document.head.appendChild(t)}injectGlobalBtnContentCSS(){if(document.getElementById("global-btn-content-style"))return;const e=document.createElement("style");e.id="global-btn-content-style",e.innerHTML="\n .btn-content {\n display: flex !important;\n justify-content: center !important;\n }\n ",document.head.appendChild(e)}open(){var e,t,r;if(this.dependencyStatus===n.FilePickerStatus.LOADED)try{this.instance=void 0;const{scopeCSS:n,...o}=(null===(e=this.options.integrationOptions)||void 0===e?void 0:e.box)||{},i=this.getInstance();if(i){const e={...this.config.pickerOptions,container:`.${this.config.containerClass}`,maxSelectable:this.options.allowMultiSelect?void 0:1,extensions:this.options.allowedTypes,canSelectFolder:this.options.allowFolderSelect,...o};if(this.createPickerContainer(),this.initOptions.folderId)return i.show(this.initOptions.folderId,this.accessToken,e),null===(r=(t=this.options).onOpen)||void 0===r||r.call(t),!0}}catch(e){return!1}return!1}async init(e){this.dependencyStatus=n.FilePickerStatus.LOADING;const{selectedCredentialId:t,...r}=e||{};await this.validateInitOptions(r,[["folderId","Folder ID"]]),this.initOptions={...r};const a=await this.connectSDKInstance.getIntegrationAccount("box",{includeAccountAuth:!0,selectedCredentialId:t}),{accessTokenPath:s=""}=n.AUTH_TOKEN_ALLOWED_INTEGRATIONS.box;if(this.accessToken=a.accountAuth[s],this.initialiseDependencyPromise(),(0,i.isBundledBuild)()){if(this.isScopedMode())throw new Error("Bundled Box picker does not support scopeCSS mode.");return(0,o.ensureBundledBoxStyles)(),this.injectGlobalBtnContentCSS(),this.onScriptLoaded(),this.dependenciesPromise}return this.isScopedMode()?this.createScopedIframe():(this.injectCSS(this.config.cssUrl),this.injectGlobalBtnContentCSS(),this.injectScript(this.config.scriptUrl)),this.dependenciesPromise}createScopedIframe(){if(this.iframe)return void this.onScriptLoaded();const e=this.config.containerClass,t=document.createElement("iframe");t.onload=this.onScriptLoaded.bind(this),t.onerror=this.onScriptError.bind(this),t.style.display="none",t.srcdoc=`<!doctype html>\n <html><head>\n <link rel="stylesheet" href="${this.config.cssUrl}">\n <style>\n html, body, .${e} { height: 100%; margin: 0; padding: 0; }\n .${e} { display: flex; align-items: center; justify-content: center; }\n </style>\n </head><body>\n <div class="${e}"></div>\n <script src="${this.config.scriptUrl}"><\/script>\n </body></html>`,this.iframe=t,document.body.appendChild(t)}async launch(){this.dependencyStatus!==n.FilePickerStatus.LOADED&&await this.init(this.initOptions),this.open()}onScriptLoaded(){this.dependencyStatus=n.FilePickerStatus.LOADED,this.instance=void 0,this.dependenciesPromise.resolve(!0)}onScriptError(){this.dependencyStatus=n.FilePickerStatus.FAILED,this.dependenciesPromise.reject(new Error("Failed to load Box script"))}}t.BoxFilePicker=l},9950:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleDriveFilePicker=void 0;const n=r(3821),o=r(6218),i=r(5486),a=r(7473);class s extends a.BaseFilePicker{constructor(e,t){super(e,t),this.accessToken=""}get google(){return window.google}getInstance(){var e;return null!==(e=this.instance)&&void 0!==e?e:null}open(){var e,t;return!(this.dependencyStatus!==n.FilePickerStatus.LOADED||!this.instance)&&(this.instance.setVisible(!0),null===(t=(e=this.options).onOpen)||void 0===t||t.call(e),!0)}async init(e){this.dependencyStatus=n.FilePickerStatus.LOADING;const{selectedCredentialId:t,...r}=e||{};await this.validateInitOptions(r,[["developerKey","developer key"]]),this.initOptions={...r};const a=await this.connectSDKInstance.getIntegrationAccount("googledrive",{includeAccountAuth:!0,selectedCredentialId:t}),{accessTokenPath:s=""}=n.AUTH_TOKEN_ALLOWED_INTEGRATIONS.googledrive;return this.accessToken=a.accountAuth[s],this.initialiseDependencyPromise(),(0,i.isBundledBuild)()?((0,o.installBundledGoogleScriptInterceptors)(),this.onScriptLoaded(),this.dependenciesPromise):(this.injectScript("https://apis.google.com/js/api.js"),this.dependenciesPromise)}onScriptLoaded(){this.dependencyStatus=n.FilePickerStatus.LOADED,window.gapi.load("picker",this.onPickerLoaded.bind(this))}onScriptError(){this.dependencyStatus=n.FilePickerStatus.FAILED,this.dependenciesPromise.reject(new Error("Not able to load dependencies"))}onPickerLoaded(){var e,t,r;const n=new this.google.picker.PickerBuilder;(null===(e=this.initOptions)||void 0===e?void 0:e.appId)&&n.setAppId(this.initOptions.appId),this.options.allowMultiSelect&&n.enableFeature(this.google.picker.Feature.MULTISELECT_ENABLED),this.options.allowedTypes&&this.options.allowedTypes.length>0&&n.setSelectableMimeTypes(this.options.allowedTypes.join(","));const o=this.createDocsView();if(n.addView(o),null===(r=null===(t=this.options.integrationOptions)||void 0===t?void 0:t.googledrive)||void 0===r?void 0:r.enableSharedDrives){const e=this.createDocsView();e.setEnableDrives(!0),n.addView(e)}if(!this.initOptions.developerKey)throw new Error("Please provide a valid developer key");const i=n.setOAuthToken(this.accessToken).setDeveloperKey(this.initOptions.developerKey).setCallback(this.pickerCallback.bind(this));this.initOptions.appId&&i.setAppId(this.initOptions.appId),this.instance=i.build(),this.dependenciesPromise.resolve(!0)}createDocsView(){var e,t,r,n;const o=new this.google.picker.DocsView;return this.options.allowFolderSelect&&(o.setIncludeFolders(!0),o.setSelectFolderEnabled(!0)),(null===(t=null===(e=this.options.integrationOptions)||void 0===e?void 0:e.googledrive)||void 0===t?void 0:t.viewMode)&&o.setMode(this.options.integrationOptions.googledrive.viewMode),(null===(n=null===(r=this.options.integrationOptions)||void 0===r?void 0:r.googledrive)||void 0===n?void 0:n.includeFolders)&&o.setIncludeFolders(!0),o}pickerCallback(e){var t,r,n,o,i,a;const{action:s,...l}=e;switch(s){case this.google.picker.Action.PICKED:null===(r=(t=this.options).onFileSelect)||void 0===r||r.call(t,l),null===(o=(n=this.options).onClose)||void 0===o||o.call(n);break;case this.google.picker.Action.CANCEL:null===(a=(i=this.options).onCancel)||void 0===a||a.call(i)}}}t.GoogleDriveFilePicker=s},1698:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9008),o=r(9950),i=r(6128),a=r(8737);t.default={BoxFilePicker:n.BoxFilePicker,GoogleDriveFilePicker:o.GoogleDriveFilePicker,OneDriveFilePicker:i.OneDriveFilePicker,SharepointFilePicker:a.SharepointFilePicker}},6128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OneDriveFilePicker=void 0;const n=r(3821),o=r(9845);class i extends o.MicrosoftPicker{constructor(){super(...arguments),this.integrationName="onedrive",this.personalAccountUrl="https://onedrive.live.com"}async init(e){return super.initPicker(e,this.integrationName)}getPickerUrl(e){return e?e.includes(this.personalAccountUrl)?`${e}/picker`:this.combinePaths(e,"_layouts/15/FilePicker.aspx"):`${this.personalAccountUrl}/picker`}getIntegrationName(){return this.integrationName}getUrl(e,t){return e.accountAuth[n.AUTH_TOKEN_ALLOWED_INTEGRATIONS[t].domain||""]}getPickerOptions(){return{entry:{oneDrive:{files:{fallbackToRoot:!0}}},pivots:{oneDrive:!0,recent:!0,shared:!0}}}}t.OneDriveFilePicker=i},8737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SharepointFilePicker=void 0;const n=r(8321),o=r(9845);class i extends o.MicrosoftPicker{constructor(){super(...arguments),this.integrationName="sharepoint"}async init(e){return super.initPicker(e,this.integrationName)}getIntegrationName(){return this.integrationName}getPickerUrl(e){return this.combinePaths(e,"_layouts/15/FilePicker.aspx")}getUrl(e){var t;return(0,n.sanitizeUrl)(null===(t=e.providerData)||void 0===t?void 0:t.webUrl)}getPickerOptions(){return{entry:{sharePoint:{byPath:{list:`${this.baseUrl}/Shared Documents`,fallbackToRoot:!0}}},pivots:{shared:!0,oneDrive:!1,sharedLibraries:!0,site:!0}}}}t.SharepointFilePicker=i},7473:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseFilePicker=void 0;const n=r(2643),o=r(572);t.BaseFilePicker=class{constructor(e,t){this.options=e,this.connectSDKInstance=t}initialiseDependencyPromise(){this.dependenciesPromise=new o.DeferredPromise}getInstance(){return this.instance}injectScript(e){if(this.checkIfScriptLoaded(e))this.onScriptLoaded();else{const t=document.createElement("script");t.src=e,t.async=!0,t.id=e,t.onload=this.onScriptLoaded.bind(this),t.onerror=this.onScriptError.bind(this),document.body.appendChild(t)}}checkIfScriptLoaded(e){const t=document.getElementsByTagName("script");for(let r=0;r<t.length;r++)if(t[r].getAttribute("src")==e)return!0;return!1}async validateInitOptions(e,t){for(const[r,o]of t)if(!e||(0,n.isStringEmpty)(e[r]))throw new Error(`Please provide a valid ${o}`);return!0}}},4731:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildExternalFilePickerInstance=void 0;const n=r(655).__importDefault(r(1698));class o{constructor(e,t,r){const n=this.createFilePicker(e,t,r);this.open=this.open.bind(n),this.init=this.init.bind(n),this.getInstance=this.getInstance.bind(n)}createFilePicker(e,t,r){const o={box:n.default.BoxFilePicker,googledrive:n.default.GoogleDriveFilePicker,onedrive:n.default.OneDriveFilePicker,sharepoint:n.default.SharepointFilePicker}[e];if(!o)throw new Error(`${e}'s file picker is not supported`);return new o(t,r)}open(){return this.open()}init(e){return this.init(e)}getInstance(){return this.getInstance()}}t.default=o;t.buildExternalFilePickerInstance=e=>function(t,r){if(!e.getUser().authenticated)throw new Error("Authentication is required");if(!t)throw new Error("Missing argument: Integration type is required");return e.validateAction(t),new o(t,r,e)}},7050:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.buildExternalFilePickerInstance=t.ExternalFilePicker=void 0;var o=r(4731);Object.defineProperty(t,"ExternalFilePicker",{enumerable:!0,get:function(){return n(o).default}}),Object.defineProperty(t,"buildExternalFilePickerInstance",{enumerable:!0,get:function(){return o.buildExternalFilePickerInstance}})},6917:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ensureBundledBoxStyles=void 0;const n=r(655);r(3387);const o=n.__importDefault(r(287)),i="paragon-bundled-box-picker-css";t.ensureBundledBoxStyles=()=>{if(document.getElementById(i))return;const e=document.createElement("style");e.id=i,e.textContent=o.default,document.head.appendChild(e)}},6218:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.installBundledGoogleScriptInterceptors=void 0,r(8775);let n=!1,o=!1,i=!1;const a=e=>{window.setTimeout((()=>{var t;null===(t=e.onload)||void 0===t||t.call(e,new Event("load"))}),0)},s=e=>!!(e=>e instanceof HTMLScriptElement&&"string"==typeof e.src&&e.src.length>0)(e)&&(e.src.includes("/m=picker/")?(o||(o=!0,r(5327)),a(e),!0):!!e.src.includes("/m=gapi_iframes/")&&(i||(i=!0,r(5361)),a(e),!0));t.installBundledGoogleScriptInterceptors=()=>{if(n)return;n=!0;const e=Node.prototype.appendChild,t=Node.prototype.insertBefore;Node.prototype.appendChild=function(t){return s(t)?t:e.call(this,t)},Node.prototype.insertBefore=function(e,r){return s(e)?e:t.call(this,e,r)}}},2643:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findSelectedAccountType=t.isStringEmpty=t.getActionStateForCredentialDelete=t.stripUndefinedAndNull=t.parseKeyedSource=void 0;const n=r(4059);t.parseKeyedSource=function(e){return e&&(null==e?void 0:e.length)?Object.fromEntries(e.map((e=>[e.key,"VALUE"===e.source.type?e.source.value:void 0]))):{}},t.stripUndefinedAndNull=function e(t){const r={};return Object.keys(t).forEach((n=>{var o;(o=t[n])&&"object"==typeof o&&!Array.isArray(o)?r[n]=e(t[n]):void 0!==t[n]&&null!==t[n]&&(r[n]=t[n])})),r};t.getActionStateForCredentialDelete=(e,t)=>{var r,o;const i=(null!==(r=null==t?void 0:t.allCredentials)&&void 0!==r?r:[]).filter((t=>t.id!==e)),a=(null!==(o=null==t?void 0:t.allConfigurations)&&void 0!==o?o:[]).filter((t=>t.connectCredentialId!==e));if(0===i.length)return{enabled:!1,workflowSettings:{},allCredentials:[],allConfigurations:[]};{const e=i[0];return{...t,credentialStatus:e.status,enabled:e.status===n.CredentialStatus.VALID,credentialId:e.id,providerId:e.providerId,providerData:e.providerData,allCredentials:i,allConfigurations:a}}};t.isStringEmpty=e=>!e||"string"==typeof e&&!e.trim();t.findSelectedAccountType=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t)return e.find((e=>{let{id:r}=e;return r===t}));if(1===r.length)return e.find((e=>{let{id:t}=e;return r.includes(t)}));if(!t&&!r.length&&Array.isArray(e)&&2===e.length){const[t,r]=e;return"default"===t.id&&"user-configured-oauth"===r.id?t:void 0}}},4429:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startOAuthFlow=t.MAX_POLL_DURATION=t.CREDENTIAL_POLL_INTERVAL=void 0;const n=r(3931),o=r(7343),i=r(1935),a=r(2643);t.CREDENTIAL_POLL_INTERVAL=3e3,t.MAX_POLL_DURATION=18e4;t.startOAuthFlow=(e,t)=>{let{context:r,integration:s,endUserSuppliedValues:l={},authParams:c,isPreviewMode:u=!1,installOptions:d={}}=e;var h;const p=(0,o.getIntegrationTypeName)(s);if(!p)return;const f=c?(0,a.parseKeyedSource)(c):{};if(!r.user.authenticated)throw new i.UserNotAuthenticatedError;const g=(0,a.stripUndefinedAndNull)({action:p&&(0,o.isCustomIntegrationTypeName)(p)?n.ACTION_CUSTOM:p,endUserSuppliedValues:JSON.stringify(l),parameters:JSON.stringify(f),userToken:r.user.token,integrationId:s.id,redirectUrl:null===(h=r.endUserIntegrationConfig)||void 0===h?void 0:h.overrideRedirectUrl,originForPostMessage:window.location.origin,isPreviewMode:u,installOptions:JSON.stringify(d),oauthMetaKeyId:t}),m=`${r.environments.ZEUS_PUBLIC_URL}/projects/${r.projectId}/sdk/actions/oauth-nonce?action=${p}&integrationId=${s.id}&originForPostMessage=${window.location.origin}${r.user.token?`&userToken=${r.user.token}`:""}`,b=(async(e,t)=>e.user.authenticated?fetch(`${e.environments.ZEUS_PUBLIC_URL}/v2/projects/${e.projectId}/sdk/actions/build-oauth?${t}`,{method:"GET",headers:{"Content-Type":"application/json",...e.user.token?{Authorization:`Bearer ${e.user.token}`}:{}}}):Promise.reject("User is not authenticated"))(r,new URLSearchParams(g).toString()),y=window.open(m,void 0,"width=500,height=600,left=100,top=150"),v=function(e,t){return function r(n){"oauth-nonce-loaded"===n.data.type&&e.then((async e=>{if(!e.ok){const t=await e.json();return Promise.reject(new Error(t.message))}return e.json()})).then((e=>{if(!t)throw new i.OAuthBlockedError;t.location.href=e.redirectUrl,window.removeEventListener("message",r)})).catch((e=>{console.error("Build Oauth URL fetch failure",e.message)}))}}(b,y);return window.addEventListener("message",v),y}},1838:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(655);r(6917),r(6218),r(5431),n.__exportStar(r(3056),t);var o=r(3056);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.__importDefault(o).default}})},3056:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.paragon=t.connectSingleton=void 0;const n=r(655),o=n.__importDefault(r(773)),i=r(7050);n.__exportStar(r(3821),t),t.connectSingleton=new o.default,t.paragon={_loadCustomDropdownOptions:t.connectSingleton._loadCustomDropdownOptions.bind(t.connectSingleton),_oauthCallback:t.connectSingleton._oauthCallback.bind(t.connectSingleton),_oauthErrorCallback:t.connectSingleton._oauthErrorCallback.bind(t.connectSingleton),authenticate:t.connectSingleton.authenticate.bind(t.connectSingleton),closePortal:t.connectSingleton.closePortal.bind(t.connectSingleton),completeInstall:t.connectSingleton.completeInstall.bind(t.connectSingleton),configureGlobal:t.connectSingleton.configureGlobal.bind(t.connectSingleton),getVersion:t.connectSingleton.getVersion.bind(t.connectSingleton),connect:t.connectSingleton.connect.bind(t.connectSingleton),connectAction:t.connectSingleton.connectAction.bind(t.connectSingleton),getCustomWebhookUserManualUrl:t.connectSingleton.getCustomWebhookUserManualUrl.bind(t.connectSingleton),createConfiguration:t.connectSingleton.createConfiguration.bind(t.connectSingleton),destroyConfiguration:t.connectSingleton.destroyConfiguration.bind(t.connectSingleton),disableWorkflow:t.connectSingleton.disableWorkflow.bind(t.connectSingleton),enableWorkflow:t.connectSingleton.enableWorkflow.bind(t.connectSingleton),event:t.connectSingleton.event.bind(t.connectSingleton),getIntegrationAccount:t.connectSingleton.getIntegrationAccount.bind(t.connectSingleton),getIntegrationMetadata:t.connectSingleton.getIntegrationMetadata.bind(t.connectSingleton),getUser:t.connectSingleton.getUser.bind(t.connectSingleton),installIntegration:t.connectSingleton.installIntegration.bind(t.connectSingleton),request:t.connectSingleton.request.bind(t.connectSingleton),setUserMetadata:t.connectSingleton.setUserMetadata.bind(t.connectSingleton),subscribe:t.connectSingleton.subscribe.bind(t.connectSingleton),uninstallIntegration:t.connectSingleton.uninstallIntegration.bind(t.connectSingleton),unsubscribe:t.connectSingleton.unsubscribe.bind(t.connectSingleton),updateConfiguration:t.connectSingleton.updateConfiguration.bind(t.connectSingleton),workflow:t.connectSingleton.workflow.bind(t.connectSingleton),ExternalFilePicker:(0,i.buildExternalFilePickerInstance)(t.connectSingleton),getIntegrationConfig:t.connectSingleton.getIntegrationConfig.bind(t.connectSingleton),updateIntegrationUserSettings:t.connectSingleton.updateIntegrationUserSettings.bind(t.connectSingleton),updateWorkflowUserSettings:t.connectSingleton.updateWorkflowUserSettings.bind(t.connectSingleton),updateWorkflowState:t.connectSingleton.updateWorkflowState.bind(t.connectSingleton),setHeadless:t.connectSingleton.setHeadless.bind(t.connectSingleton),setDataSources:t.connectSingleton.setDataSources.bind(t.connectSingleton),getIntegrationId:t.connectSingleton.getIntegrationId.bind(t.connectSingleton),getAccountTypeOptions:t.connectSingleton.getAccountTypeOptions.bind(t.connectSingleton),getPreOptions:t.connectSingleton.getPreOptions.bind(t.connectSingleton),getPostOptions:t.connectSingleton.getPostOptions.bind(t.connectSingleton),startOAuthFlow:t.connectSingleton.startOAuthFlow.bind(t.connectSingleton),getAssetUrl:t.connectSingleton.getAssetUrl.bind(t.connectSingleton),installFlow:t.connectSingleton.installFlow,getFieldOptions:t.connectSingleton.getFieldOptions.bind(t.connectSingleton),getDataSourceOptions:t.connectSingleton.getDataSourceOptions.bind(t.connectSingleton),getSourcesForInput:t.connectSingleton.getSourcesForInput.bind(t.connectSingleton)},t.default=o.default},9636:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cloneDeep=void 0;const n=r(655).__importDefault(r(738));t.cloneDeep=function(e){return(0,n.default)(e)}},2992:(e,t)=>{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.AUTH_TOKEN_ALLOWED_INTEGRATIONS=t.overrideActionAlias=t.DataSourceType=t.TokenType=t.VariableInputType=t.SidebarInputType=void 0,function(e){e.Auth="AUTH",e.Enum="ENUM",e.DynamicEnum="DYNAMIC_ENUM",e.Intent="INTENT",e.Text="TEXT",e.TextArea="TEXTAREA",e.ValueText="TEXT_NO_VARS",e.ValueTextArea="TEXTAREA_NO_VARS",e.Code="CODE",e.ActionButton="ACTION_BUTTON",e.Conditional="CONDITIONAL",e.CustomDropdown="CUSTOM_DROPDOWN",e.DynamicConditional="DYNAMIC_CONDITIONAL",e.NestedList="NESTED_LIST",e.File="FILE",e.EditableDynamicEnum="EDITABLE_DYNAMIC_ENUM",e.EditableEnum="EDITABLE_ENUM",e.BooleanInput="BOOLEAN_INPUT",e.UserSuppliedCredential="USER_SUPPLIED_CREDENTIAL",e.NativeDynamicEnumInput="NATIVE_DYNAMIC_INPUT",e.TimeConstraintInput="TIME_CONSTRAINT_INPUT",e.LinesListInput="LinesListInput",e.LinesListDynamicInput="LinesListDynamicInput",e.Number="NUMBER",e.Email="EMAIL",e.URL="URL",e.EnumTextAreaPairInput="EnumTextAreaPairInput",e.FieldMapper="FIELD_MAPPER",e.ComboInput="COMBO_INPUT",e.Password="PASSWORD",e.Switch="SWITCH",e.DynamicComboInput="DYNAMIC_COMBO_INPUT",e.CopyableButtonInput="COPYABLE_BUTTON_INPUT",e.Permission="PERMISSION"}(t.SidebarInputType||(t.SidebarInputType={})),function(e){e.MultiSelect="multi",e.String="string",e.Dropdown="dropdown",e.MultiSelectCheckbox="multiCheckbox",e.Number="number"}(t.VariableInputType||(t.VariableInputType={})),function(e){e.ACCESS_TOKEN="ACCESS_TOKEN",e.REFRESH_TOKEN="REFRESH_TOKEN",e.BOT_TOKEN="BOT_TOKEN",e.KLAVIYO_API_KEY="KLAVIYO_API_KEY",e.MARKETO_CLIENT_ID="MARKETO_CLIENT_ID",e.MARKETO_CLIENT_SECRET="MARKETO_CLIENT_SECRETI",e.MARKETO_ENDPOINT="MARKETO_ENDPOINT",e.MARKETO_IDENTITY="MARKETO_IDENTITY",e.MONDAY_API_TOKEN="MONDAY_API_TOKEN",e.ORACLE_CLOUD_URL="ORACLE_CLOUD_URL",e.ORACLE_PASSWORD="ORACLE_PASSWORD",e.ORACLE_USERNAME="ORACLE_USERNAME",e.SAGE_INTACCT_COMPANY_ID="SAGE_INTACCT_COMPANY_ID",e.SAGE_INTACCT_USER_ID="SAGE_INTACCT_USER_ID",e.SAGE_INTACCT_USER_PASSWORD="SAGE_INTACCT_USER_PASSWORD",e.SAILTHRU_COMPANY_KEY="SAILTHRU_COMPANY_KEY",e.SAILTHRU_COMPANY_SECRET="SAILTHRU_COMPANY_SECRET",e.SERVICENOW_PASSWORD="SERVICENOW_PASSWORD",e.SERVICENOW_SUBDOMAIN="SERVICENOW_SUBDOMAIN",e.SERVICENOW_USERNAME="SERVICENOW_USERNAME",e.TABLEAU_PERSONAL_ACCESS_TOKEN_NAME="TABLEAU_PERSONAL_ACCESS_TOKEN_NAME",e.TABLEAU_PERSONAL_ACCESS_TOKEN_SECRET="TABLEAU_PERSONAL_ACCESS_TOKEN_SECRET",e.TABLEAU_SERVER_NAME="TABLEAU_SERVER_NAME",e.TABLEAU_SITE_ID="TABLEAU_SITE_ID",e.TRELLO_API_KEY="TRELLO_API_KEY",e.TRELLO_API_TOKEN="TRELLO_API_TOKEN",e.WOOCOMMERCE_CONSUMER_KEY="WOOCOMMERCE_CONSUMER_KEY",e.WOOCOMMERCE_CONSUMER_SECRET="WOOCOMMERCE_CONSUMER_SECRET",e.WOOCOMMERCE_STORE_DOMAIN="WOOCOMMERCE_STORE_DOMAIN",e.WORKABLE_API_ACCESS_TOKEN="WORKABLE_API_ACCESS_TOKEN",e.WORKABLE_ACCOUNT_SUBDOMAIN="WORKABLE_ACCOUNT_SUBDOMAIN",e.ZOHO_CRM_ACCOUNTS_SERVER="ZOHO_CRM_ACCOUNTS_SERVER",e.ZOHO_CRM_API_DOMAIN="ZOHO_CRM_API_DOMAIN"}(t.TokenType||(t.TokenType={})),function(e){e.INFO="INFO",e.ERROR="ERROR",e.SUCCESS="SUCCESS"}(r||(r={})),function(e){e.NONE="NONE",e.RE_AUTHENTICATE="RE_AUTHENTICATE",e.ALERT="ALERT",e.DISPATCH="DISPATCH"}(n||(n={})),function(e){e.DYNAMIC="DYNAMIC_DATA_SOURCE",e.STATIC_ENUM="STATIC_ENUM_DATA_SOURCE",e.FIELD_MAPPER="FIELD_MAPPER_DATA_SOURCE",e.COMBO_INPUT="COMBO_INPUT_DATA_SOURCE",e.DYNAMIC_COMBO_INPUT="DYNAMIC_COMBO_INPUT_DATA_SOURCE"}(t.DataSourceType||(t.DataSourceType={})),t.overrideActionAlias={"monday.com":"monday","wordpress.com":"wordpress"},t.AUTH_TOKEN_ALLOWED_INTEGRATIONS={box:{accessTokenPath:"OAUTH_ACCESS_TOKEN"},googledrive:{accessTokenPath:"OAUTH_ACCESS_TOKEN"},onedrive:{accessTokenPath:"OAUTH_ACCESS_TOKEN",domain:"DOMAIN"},sharepoint:{accessTokenPath:"OAUTH_ACCESS_TOKEN"}}},9034:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONNECT_PLAN_FEATURE_MAP=void 0;const n=r(471);t.CONNECT_PLAN_FEATURE_MAP={[n.BillingPlan.ConnectBasic]:[],[n.BillingPlan.ConnectPro]:[n.ConnectAddOn.CustomIntegrationBuilder,n.ConnectAddOn.HeadlessConnectPortal,n.ConnectAddOn.Monitoring,n.ConnectAddOn.UserMetadata,n.ConnectAddOn.WhiteLabeling],[n.BillingPlan.ConnectEnterprise]:[n.ConnectAddOn.CustomIntegrationBuilder,n.ConnectAddOn.DynamicFieldMapper,n.ConnectAddOn.HeadlessConnectPortal,n.ConnectAddOn.TaskHistoryAPI,n.ConnectAddOn.Monitoring,n.ConnectAddOn.RoleBasedAccessControl,n.ConnectAddOn.UserMetadata,n.ConnectAddOn.WhiteLabeling,n.ConnectAddOn.WorkflowPermission]}},1935:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SDK_VERSION_HEADER=t.SELECTED_CREDENTIAL_CONFIG_ID_HEADER=t.SELECTED_CREDENTIAL_ID_HEADER=t.INFER_CONTENT_TYPE_FROM_CONNECT_OPTIONS=t.CredentialStatus=void 0;const n=r(655),o=r(2992);var i=r(4059);Object.defineProperty(t,"CredentialStatus",{enumerable:!0,get:function(){return i.CredentialStatus}}),n.__exportStar(r(2460),t);o.SidebarInputType.ValueText,o.SidebarInputType.DynamicEnum,o.SidebarInputType.Enum,o.SidebarInputType.Number,o.SidebarInputType.Email,o.SidebarInputType.URL,o.SidebarInputType.FieldMapper,o.SidebarInputType.BooleanInput,o.SidebarInputType.ComboInput,o.SidebarInputType.Password,o.SidebarInputType.Switch,o.SidebarInputType.ValueTextArea,o.SidebarInputType.CustomDropdown,o.SidebarInputType.DynamicComboInput,o.SidebarInputType.FieldMapper,o.SidebarInputType.CopyableButtonInput,o.SidebarInputType.Permission,o.SidebarInputType.File;t.INFER_CONTENT_TYPE_FROM_CONNECT_OPTIONS="auto",t.SELECTED_CREDENTIAL_ID_HEADER="X-Paragon-Credential",t.SELECTED_CREDENTIAL_CONFIG_ID_HEADER="X-Paragon-Configuration-Id",t.SDK_VERSION_HEADER="X-Paragon-SDK-Version"},9977:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PLATFORM_ENV=t.NODE_ENV=void 0,function(e){e.PRODUCTION="production",e.DEVELOPMENT="development",e.TEST="test"}(t.NODE_ENV||(t.NODE_ENV={})),function(e){e.PRODUCTION="production",e.PRODUCTION_MIRROR_1="p-m1",e.STAGING="staging",e.STAGING_MIRROR_1="s-m1",e.DEVELOPMENT="dev",e.TEST="test",e.SANDBOX="sandbox",e.RELEASE="release",e.ENTERPRISE="enterprise"}(t.PLATFORM_ENV||(t.PLATFORM_ENV={}))},2460:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getConnectSDKError=t.OAuthTimeoutError=t.OAuthBlockedError=t.HeadlessModeNotEnabledError=t.IntegrationNotInstalledError=t.IntegrationNotFoundError=t.NoActiveInstallFlowError=t.UserNotAuthenticatedError=t.BaseSDKError=void 0;class r extends Error{constructor(e){super(e.message),this.name=e.name,this.meta="meta"in e?e.meta:null}}t.BaseSDKError=r;t.UserNotAuthenticatedError=class extends r{constructor(){super({name:"UserNotAuthenticatedError",message:"User not authenticated, Call paragon.authenticate(<projectId>, <user token>) before using the SDK."})}};t.NoActiveInstallFlowError=class extends r{constructor(){super({name:"NoActiveInstallFlowError",message:"No active install flow, make sure you call installFlow.start(<integrationName>, ...args) before calling any other method"})}};t.IntegrationNotFoundError=class extends r{constructor(e){super({name:"IntegrationNotFoundError",message:`Integration with name ${e} not found`,meta:{integrationName:e}})}};t.IntegrationNotInstalledError=class extends r{constructor(e){super({name:"IntegrationNotInstalledError",message:`Integration "${e}" is not installed.`,meta:{integrationName:e}}),this.integrationName=e}};t.HeadlessModeNotEnabledError=class extends r{constructor(){super({name:"HeadlessModeNotEnabledError",message:"Headless mode is not enabled. Make sure you call `paragon.setHeadless(true)` as early as possible in your code."})}};t.OAuthBlockedError=class extends r{constructor(){super({name:"OAuthBlockedError",message:"Popup was blocked by the browser."})}};t.OAuthTimeoutError=class extends r{constructor(){super({name:"OAuthTimeoutError",message:"OAuth timeout"})}},t.getConnectSDKError=function(e){return e instanceof r?{name:e.name,message:e.message,meta:e.meta}:{name:"UnknownError",message:e instanceof Error?e.message:"An unknown error occurred",originalError:e}}},8065:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3821:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);n.__exportStar(r(2992),t),n.__exportStar(r(9034),t),n.__exportStar(r(1935),t),n.__exportStar(r(9977),t),n.__exportStar(r(914),t),n.__exportStar(r(8065),t),n.__exportStar(r(9835),t),n.__exportStar(r(7750),t),n.__exportStar(r(471),t)},9835:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.DataType=void 0,function(e){e.STRING="STRING",e.NUMBER="NUMBER",e.DATE="DATE",e.BOOLEAN="BOOLEAN",e.EMAIL="EMAIL",e.OBJECT="OBJECT",e.ARRAY="ARRAY",e.ANY="ANY",e.FILE="FILE",e.NON_DECIMAL="NON_DECIMAL"}(t.DataType||(t.DataType={})),function(e){e.None="$none",e.StringContains="$stringContains",e.StringDoesNotContain="$stringDoesNotContain",e.StringExactlyMatches="$stringExactlyMatches",e.StringDoesNotExactlyMatch="$stringDoesNotExactlyMatch",e.StringIsIn="$stringIsIn",e.StringIsNotIn="$stringIsNotIn",e.StringStartsWith="$stringStartsWith",e.StringDoesNotStartWith="$stringDoesNotStartWith",e.StringEndsWith="$stringEndsWith",e.StringDoesNotEndWith="$stringDoesNotEndWith",e.NumberGreaterThan="$numberGreaterThan",e.NumberLessThan="$numberLessThan",e.NumberEquals="$numberEquals",e.NumberDoesNotEqual="$numberDoesNotEqual",e.NumberLessThanOrEqualTo="$numberLessThanOrEqualTo",e.NumberGreaterThanOrEqualTo="$numberGreaterThanOrEqualTo",e.DateTimeAfter="$dateTimeAfter",e.DateTimeBefore="$dateTimeBefore",e.DateTimeEquals="$dateTimeEquals",e.BooleanTrue="$booleanTrue",e.BooleanFalse="$booleanFalse",e.IsNotNull="$exists",e.IsNull="$doesNotExist",e.Exists="$isNotUndefinedOrNull",e.DoesNotExist="$isUndefinedOrNull",e.ArrayIsIn="$arrayIsIn",e.ArrayIsNotIn="$arrayIsNotIn",e.ArrayIsEmpty="$arrayIsEmpty",e.ArrayIsNotEmpty="$arrayIsNotEmpty",e.StringGreaterThan="$stringGreaterThan",e.StringLessThan="$stringLessThan"}(r||(r={}))},7750:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilePickerStatus=t.DocumentLoadingState=t.SDK_EVENT=t.ModalView=t.DynamicFieldMappingLoaderType=void 0,function(e){e.OBJECT_TYPES="objectTypes",e.INTEGRATION_FIELDS="integrationFields"}(t.DynamicFieldMappingLoaderType||(t.DynamicFieldMappingLoaderType={})),function(e){e.OVERVIEW="overview",e.CONFIGURATION="configuration"}(t.ModalView||(t.ModalView={})),function(e){e.ON_INTEGRATION_INSTALL="onIntegrationInstall",e.ON_INTEGRATION_UNINSTALL="onIntegrationUninstall",e.ON_WORKFLOW_CHANGE="onWorkflowChange",e.ON_PORTAL_OPEN="onPortalOpen",e.ON_PORTAL_CLOSE="onPortalClose"}(t.SDK_EVENT||(t.SDK_EVENT={})),function(e){e.LOADING="loading",e.INTERACTIVE="interactive",e.COMPLETE="complete"}(t.DocumentLoadingState||(t.DocumentLoadingState={})),function(e){e.LOADING="loading",e.FAILED="failed",e.LOADED="loaded"}(t.FilePickerStatus||(t.FilePickerStatus={}))},471:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectAddOn=t.BillingPlan=void 0,function(e){e.ClassicFree="free",e.ClassicStarter="starter",e.ClassicBusiness="business",e.ClassicPremium="premium",e.ClassicEnterprise="enterprise",e.ConnectTrial="connect_trial",e.ConnectBasic="basic",e.ConnectPro="pro",e.ConnectEnterprise="connect_enterprise"}(t.BillingPlan||(t.BillingPlan={})),function(e){e.CustomIntegrationBuilder="byo",e.DynamicFieldMapper="dfm",e.HeadlessConnectPortal="headless-cp",e.TaskHistoryAPI="th-api",e.Monitoring="monitoring",e.RoleBasedAccessControl="rbac",e.UserMetadata="user-metadata",e.WhiteLabeling="whitelabel",e.WorkflowPermission="workflow-permissions"}(t.ConnectAddOn||(t.ConnectAddOn={}))},3158:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasPersonaMetaChanged=t.normalizePersonaMeta=t.getHeadersForUserMeta=t.sanitizeExternalConfigId=t.getAssetUrl=void 0;const n=r(655),o=n.__importDefault(r(8446)),i=n.__importDefault(r(3857)),a=r(3931),s=r(3821);t.getAssetUrl=e=>{let{CDN_PUBLIC_URL:t,DASHBOARD_PUBLIC_URL:r,VERSION:n,PLATFORM_ENV:o,NODE_ENV:i}=e;return t&&i===s.NODE_ENV.PRODUCTION&&o!==s.PLATFORM_ENV.ENTERPRISE?`${t}/${n}/dashboard/public`:r},t.sanitizeExternalConfigId=function(e){if(e.startsWith("ext:")){return(e.split("ext:").pop()||"").trim()}return e.trim()};function l(e){const t={};for(const r of Object.keys(null!=e?e:{})){const n=r.trim().toLowerCase();"name"===n?t.Name=e[r]:"email"===n?t.Email=e[r]:t[r.trim()]=e[r]}return t}t.getHeadersForUserMeta=e=>({...e?{[a.PERSONA_META_HEADER]:JSON.stringify(e)}:{}}),t.normalizePersonaMeta=l,t.hasPersonaMetaChanged=function(e,t){const r=l(e),n=(0,i.default)({},null!=t?t:{},r);return!(0,o.default)(n,null!=t?t:{})}},4846:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hash=void 0;const n=r(3715);t.hash=function(e){return null==e?e:(0,n.sha256)().update(e).digest("hex").substr(0,10)}},5349:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dedent=void 0,t.dedent=function(e){const t=(e=e.replace(/^\n+|\n+$/g,"")).split("\n"),r=t.filter((e=>e.trim().length>0)).map((e=>e.match(/^(\s*)/)[1].length)),n=r.length>0?Math.min(...r):0;return t.map((e=>e.slice(n))).join("\n")}},572:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tryUntil=t.isUUID=t.uuidPattern=t.sleep=t.generateMatrix=t.DeferredPromise=void 0;function r(e){return new Promise((t=>setTimeout(t,e)))}t.DeferredPromise=class{get state(){return this._state}constructor(){this._state="pending",this._promise=new Promise(((e,t)=>{this._resolve=e,this._reject=t}))}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}resolve(e){this._resolve(e),this._state="fulfilled"}reject(e){this._reject(e),this._state="rejected"}finally(e){return null==e||e(),this._promise}},Symbol.toStringTag,t.generateMatrix=function(e,t){const r=Object.keys(e);if(r.reduce(((t,r)=>t+e[r].length),0)&&r.length)for(const t of r)e[t].length||e[t].push(void 0);const n=Object.entries(e).reduce(((e,t)=>{let[,r]=t;return e.length?e.reduce(((e,t)=>(r.forEach((r=>{const n=t.slice();n.push(r),e.push(n)}),[]),e)),[]):r.map((e=>[e]))}),[]).reduce(((e,t)=>{const n=t.reduce(((e,t,n)=>({...e,[r[n]]:t})),{});return[...e,n]}),[]);return t?n.slice(-1*t):n},t.sleep=r,t.uuidPattern=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i,t.isUUID=function(e){return"string"==typeof e&&t.uuidPattern.test(e)},t.tryUntil=async function(e,t,n){let o=0,i=!0;for(;i;){o+=1;let a=null,s=null;try{a=await e()}catch(e){s=e}if(i=await t(a,s,o),!i){if(s)throw s;return a}{const e="number"==typeof n?n:n(o);await r(e)}}throw new Error("Method unable to run: invalid retries.")}},8321:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessageParser=t.isIntegrationError=t.ProxyRequestError=t.getErrorMessage=t.getServiceUrl=t.sanitizeUrl=t.isValidUrl=void 0;function r(e){return e?e.match(/^[a-zA-Z]+:\/\//)?e:`https://${e}`:e}function n(e){return Array.isArray(e)?e.flatMap((e=>[e,n(e.children||[])].flatMap((e=>"string"==typeof e?e:n(e))))).filter((e=>e)).join(", "):Object.values(e.constraints||{}).join(", ")}t.isValidUrl=e=>{const t=r(e);try{return new globalThis.URL(t),!0}catch(e){return!1}},t.sanitizeUrl=r,t.getServiceUrl=function(e,t){return`https://${e}${`.${t}`}`},t.getErrorMessage=async function(e,r){var o,i;const a=null===(o=e.headers)||void 0===o?void 0:o.get("content-type"),s=a&&a.includes("application/json")?await e.json():null;let l;return l=s&&(0,t.isIntegrationError)(s.meta)?JSON.stringify(s.meta):s&&"string"==typeof s.message?s.message:s&&400===e.status&&Array.isArray(s.message)?n(s.message):s?JSON.stringify(s):await(null===(i=e.text)||void 0===i?void 0:i.call(e)),r?{message:l,response:s||e}:l};class o extends Error{constructor(e,t){super(e),this.name="Error",this.response=t,Object.setPrototypeOf(this,o.prototype)}}t.ProxyRequestError=o;t.isIntegrationError=e=>!("object"!=typeof e||!e)&&e.isIntegrationError,t.errorMessageParser=function(e){e="string"==typeof e?e:e.message;try{const r=JSON.parse(e);return!!(0,t.isIntegrationError)(r)}catch(e){return!1}}},3035:(e,t,r)=>{"use strict";var n,o,i,a,s=r(4155);Object.defineProperty(t,"__esModule",{value:!0}),t.CacheThrottle=t.CacheMode=void 0;const l=r(655),c=r(572);var u,d,h;!function(e){e.Debounce="debounce",e.Throttle="throttle"}(u=t.CacheMode||(t.CacheMode={})),function(e){e.Closed="closed",e.Idle="idle",e.Processing="processing"}(d||(d={})),function(e){e[e.Get=0]="Get",e[e.Set=1]="Set",e[e.GetOrSet=2]="GetOrSet",e[e.Del=3]="Del",e[e.Do=4]="Do"}(h||(h={}));t.CacheThrottle=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.set(this,d.Idle),o.set(this,{}),i.set(this,void 0),a.set(this,[]),l.__classPrivateFieldSet(this,i,{mode:u.Debounce,ttl:0,...e},"f")}async get(e,t){const r=this.serializeKey(e),n=async()=>{const t=l.__classPrivateFieldGet(this,o,"f")[r],{mode:n,ttl:a,value:s}=null!=t?t:{};return!t||!a||n&&n!==u.Debounce||this.refreshTimeout(e,r,a),l.__classPrivateFieldGet(this,i,"f").clearPendingDeletes&&this.clearPendingDeletesOnKey(r,s),s};return t?n():this.enqueue(r,h.Get,n)}async set(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.__classPrivateFieldGet(this,i,"f").ttl,n=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;const s=this.serializeKey(e),c=async()=>{const a=l.__classPrivateFieldGet(this,o,"f")[s],c=!!a;return l.__classPrivateFieldGet(this,o,"f")[s]={...a,mode:n,ttl:r,value:t},c&&n===u.Throttle||this.refreshTimeout(e,s,r),l.__classPrivateFieldGet(this,i,"f").clearPendingDeletes&&this.clearPendingDeletesOnKey(s,t),t};return a?c():this.enqueue(s,h.Set,c)}async getOrSet(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.__classPrivateFieldGet(this,i,"f").ttl,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l.__classPrivateFieldGet(this,i,"f").mode,a=arguments.length>4?arguments[4]:void 0;const s=this.serializeKey(e),c=async()=>{if(l.__classPrivateFieldGet(this,o,"f")[s])return l.__classPrivateFieldGet(this,o,"f")[s].value;const a=await t();return await this.set(e,a,r,n,!0),l.__classPrivateFieldGet(this,i,"f").clearPendingDeletes&&this.clearPendingDeletesOnKey(s,a),a};return a?c():this.enqueue(s,h.GetOrSet,c)}async del(e){let t=arguments.length>2?arguments[2]:void 0;const r=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e:this.serializeKey(e),n=async()=>{const e=l.__classPrivateFieldGet(this,o,"f")[r];let t;return(null==e?void 0:e.timeout)&&clearTimeout(e.timeout),e&&(t=e.value,delete l.__classPrivateFieldGet(this,o,"f")[r],await(async()=>{var e,r;return null===(r=(e=l.__classPrivateFieldGet(this,i,"f")).onDeregister)||void 0===r?void 0:r.call(e,t)})().catch((e=>{}))),t};return t?n():this.enqueue(r,h.Del,n)}keys(){return Object.keys(l.__classPrivateFieldGet(this,o,"f"))}async do(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.__classPrivateFieldGet(this,i,"f").ttl,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l.__classPrivateFieldGet(this,i,"f").mode;const a=this.serializeKey(e);return this.enqueue(a,h.Do,(async()=>{if(l.__classPrivateFieldGet(this,o,"f")[a])return l.__classPrivateFieldGet(this,o,"f")[a].value;const i=await t();return await this.set(e,i,r,n,!0)}))}async close(){l.__classPrivateFieldSet(this,n,d.Closed,"f"),await Promise.all(Object.keys(l.__classPrivateFieldGet(this,o,"f")).map((e=>this.del(e,!0,!0))))}refreshTimeout(e,t,r){if(l.__classPrivateFieldGet(this,n,"f")===d.Closed)return;const i=l.__classPrivateFieldGet(this,o,"f")[t];return r&&void 0!==(null==i?void 0:i.timeout)&&clearTimeout(i.timeout),r?(i.timeout=setTimeout((()=>this.del(e)),r),i.timeout):void 0}clearPendingDeletesOnKey(e,t){l.__classPrivateFieldSet(this,a,l.__classPrivateFieldGet(this,a,"f").filter((r=>{let[n,o,i,a]=r;return e!==n||o!==h.Del||(a.resolve(t),!1)})),"f")}serializeKey(e){var t,r,n;return null!==(n=null===(r=(t=l.__classPrivateFieldGet(this,i,"f")).serializeKey)||void 0===r?void 0:r.call(t,e))&&void 0!==n?n:e}async enqueue(e,t,r){const o=new c.DeferredPromise;return l.__classPrivateFieldGet(this,a,"f").push([e,t,r,o]),l.__classPrivateFieldGet(this,n,"f")===d.Idle&&this.flush(),o}flush(){l.__classPrivateFieldSet(this,n,d.Processing,"f"),s.nextTick((async()=>{for(;l.__classPrivateFieldGet(this,a,"f").length&&l.__classPrivateFieldGet(this,n,"f")!==d.Closed;){const e=l.__classPrivateFieldGet(this,a,"f").shift();if(e){const[,,t,r]=e;try{const e=await t();r.resolve(e)}catch(e){r.reject(e)}}}l.__classPrivateFieldSet(this,n,d.Idle,"f")}))}},n=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap},9742:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,i=l(e),a=i[0],s=i[1],c=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,s)),u=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[u++]=255&t);1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=16383,s=0,l=n-o;s<l;s+=a)i.push(c(e,s,s+a>l?l:s+a));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var o,i,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},8764:(e,t,r)=>{"use strict";var n=r(9742),o=r(645),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=l,t.h2=50;var a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|g(e,t),n=s(r),o=n.write(e,t);o!==r&&(n=n.slice(0,o));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(B(e,Uint8Array)){var t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer))return p(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return p(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return l.from(n,t,r);var o=function(e){if(l.isBuffer(e)){var t=0|f(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||z(e.length)?s(0):h(e);if("Buffer"===e.type&&Array.isArray(e.data))return h(e.data)}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|f(e))}function h(e){for(var t=e.length<0?0:0|f(e.length),r=s(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function p(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,l.prototype),n}function f(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return j(e).length;default:if(o)return n?-1:F(e).length;t=(""+t).toLowerCase(),o=!0}}function m(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return x(this,t,r);case"utf8":case"utf-8":return I(this,t,r);case"ascii":return T(this,t,r);case"latin1":case"binary":return A(this,t,r);case"base64":return k(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function b(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),z(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,o){var i,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=r;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(r+l>s&&(r=s-l),i=r;i>=0;i--){for(var d=!0,h=0;h<l;h++)if(c(e,i+h)!==c(t,h)){d=!1;break}if(d)return i}return-1}function _(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(z(s))return a;e[r+a]=s}return a}function w(e,t,r,n){return H(F(t,e.length-r),e,r,n)}function E(e,t,r,n){return H(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function C(e,t,r,n){return H(j(t),e,r,n)}function S(e,t,r,n){return H(function(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function k(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function I(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,l,c=e[o],u=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=r)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=d}return function(e){var t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=O));return r}(n)}l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,r){return function(e,t,r){return u(e),e<=0?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)}(e,t,r)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(B(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),B(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=l.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(B(i,Uint8Array))o+i.length>n.length?l.from(i).copy(n,o):Uint8Array.prototype.set.call(n,i,o);else{if(!l.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o)}o+=i.length}return n},l.byteLength=g,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)b(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},l.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?I(this,0,e):m.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",r=t.h2;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,r,n,o){if(B(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(n,o),u=e.slice(t,r),d=0;d<s;++d)if(c[d]!==u[d]){i=c[d],a=u[d];break}return i<a?-1:a<i?1:0},l.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},l.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return _(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":case"latin1":case"binary":return E(this,e,t,r);case"base64":return C(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function T(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function A(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function x(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=q[e[i]];return o}function P(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function R(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,r,n,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function L(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(e,t,r,n,i){return t=+t,r>>>=0,i||L(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function D(e,t,r,n,i){return t=+t,r>>>=0,i||L(e,0,r,8),o.write(e,t,r,n,52,8),r+8}l.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,l.prototype),n},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||N(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||N(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);N(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);N(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return D(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return D(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),o},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=l.isBuffer(e)?e:l.from(e,n),s=a.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var U=/[^+/0-9A-Za-z-_]/g;function F(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function j(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function B(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function z(e){return e!=e}var q=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}()},738:(e,t,r)=>{"use strict";const n=r(3341),o=r(6401),i=r(5299);function a(e,t){switch(o(e)){case"object":return function(e,t){if("function"==typeof t)return t(e);if(t||i(e)){const r=new e.constructor;for(let n in e)r[n]=a(e[n],t);return r}return e}(e,t);case"array":return function(e,t){const r=new e.constructor(e.length);for(let n=0;n<e.length;n++)r[n]=a(e[n],t);return r}(e,t);default:return n(e)}}e.exports=a},3715:(e,t,r)=>{var n=t;n.utils=r(6436),n.common=r(5772),n.sha=r(9041),n.ripemd=r(2949),n.hmac=r(2344),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},5772:(e,t,r)=>{"use strict";var n=r(6436),o=r(9746);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=i,i.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var o=0;o<e.length;o+=this._delta32)this._update(e,o,o+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var o=1;o<r;o++)n[o]=0;if(e<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)n[o++]=0;n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=e>>>24&255,n[o++]=e>>>16&255,n[o++]=e>>>8&255,n[o++]=255&e}else for(n[o++]=255&e,n[o++]=e>>>8&255,n[o++]=e>>>16&255,n[o++]=e>>>24&255,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,i=8;i<this.padLength;i++)n[o++]=0;return n}},2344:(e,t,r)=>{"use strict";var n=r(6436),o=r(9746);function i(e,t,r){if(!(this instanceof i))return new i(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=i,i.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),o(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},i.prototype.update=function(e,t){return this.inner.update(e,t),this},i.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},2949:(e,t,r)=>{"use strict";var n=r(6436),o=r(5772),i=n.rotl32,a=n.sum32,s=n.sum32_3,l=n.sum32_4,c=o.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function h(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function p(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(u,c),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],o=this.h[2],c=this.h[3],u=this.h[4],y=r,v=n,_=o,w=c,E=u,C=0;C<80;C++){var S=a(i(l(r,d(C,n,o,c),e[f[C]+t],h(C)),m[C]),u);r=u,u=c,c=i(o,10),o=n,n=S,S=a(i(l(y,d(79-C,v,_,w),e[g[C]+t],p(C)),b[C]),E),y=E,E=w,w=i(_,10),_=v,v=S}S=s(this.h[1],o,w),this.h[1]=s(this.h[2],c,E),this.h[2]=s(this.h[3],u,y),this.h[3]=s(this.h[4],r,v),this.h[4]=s(this.h[0],n,_),this.h[0]=S},u.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var f=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],g=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],m=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],b=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},9041:(e,t,r)=>{"use strict";t.sha1=r(4761),t.sha224=r(799),t.sha256=r(9344),t.sha384=r(772),t.sha512=r(5900)},4761:(e,t,r)=>{"use strict";var n=r(6436),o=r(5772),i=r(7038),a=n.rotl32,s=n.sum32,l=n.sum32_5,c=i.ft_1,u=o.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(h,u),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var o=this.h[0],i=this.h[1],u=this.h[2],h=this.h[3],p=this.h[4];for(n=0;n<r.length;n++){var f=~~(n/20),g=l(a(o,5),c(f,i,u,h),p,r[n],d[f]);p=h,h=u,u=a(i,30),i=o,o=g}this.h[0]=s(this.h[0],o),this.h[1]=s(this.h[1],i),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],h),this.h[4]=s(this.h[4],p)},h.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},799:(e,t,r)=>{"use strict";var n=r(6436),o=r(9344);function i(){if(!(this instanceof i))return new i;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(i,o),e.exports=i,i.blockSize=512,i.outSize=224,i.hmacStrength=192,i.padLength=64,i.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},9344:(e,t,r)=>{"use strict";var n=r(6436),o=r(5772),i=r(7038),a=r(9746),s=n.sum32,l=n.sum32_4,c=n.sum32_5,u=i.ch32,d=i.maj32,h=i.s0_256,p=i.s1_256,f=i.g0_256,g=i.g1_256,m=o.BlockHash,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}n.inherits(y,m),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=l(g(r[n-2]),r[n-7],f(r[n-15]),r[n-16]);var o=this.h[0],i=this.h[1],m=this.h[2],b=this.h[3],y=this.h[4],v=this.h[5],_=this.h[6],w=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var E=c(w,p(y),u(y,v,_),this.k[n],r[n]),C=s(h(o),d(o,i,m));w=_,_=v,v=y,y=s(b,E),b=m,m=i,i=o,o=s(E,C)}this.h[0]=s(this.h[0],o),this.h[1]=s(this.h[1],i),this.h[2]=s(this.h[2],m),this.h[3]=s(this.h[3],b),this.h[4]=s(this.h[4],y),this.h[5]=s(this.h[5],v),this.h[6]=s(this.h[6],_),this.h[7]=s(this.h[7],w)},y.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},772:(e,t,r)=>{"use strict";var n=r(6436),o=r(5900);function i(){if(!(this instanceof i))return new i;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(i,o),e.exports=i,i.blockSize=1024,i.outSize=384,i.hmacStrength=192,i.padLength=128,i.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},5900:(e,t,r)=>{"use strict";var n=r(6436),o=r(5772),i=r(9746),a=n.rotr64_hi,s=n.rotr64_lo,l=n.shr64_hi,c=n.shr64_lo,u=n.sum64,d=n.sum64_hi,h=n.sum64_lo,p=n.sum64_4_hi,f=n.sum64_4_lo,g=n.sum64_5_hi,m=n.sum64_5_lo,b=o.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function _(e,t,r,n,o){var i=e&r^~e&o;return i<0&&(i+=4294967296),i}function w(e,t,r,n,o,i){var a=t&n^~t&i;return a<0&&(a+=4294967296),a}function E(e,t,r,n,o){var i=e&r^e&o^r&o;return i<0&&(i+=4294967296),i}function C(e,t,r,n,o,i){var a=t&n^t&i^n&i;return a<0&&(a+=4294967296),a}function S(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function k(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function I(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function O(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function T(e,t){var r=a(e,t,1)^a(e,t,8)^l(e,t,7);return r<0&&(r+=4294967296),r}function A(e,t){var r=s(e,t,1)^s(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function x(e,t){var r=a(e,t,19)^a(t,e,29)^l(e,t,6);return r<0&&(r+=4294967296),r}function P(e,t){var r=s(e,t,19)^s(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(v,b),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var o=x(r[n-4],r[n-3]),i=P(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],l=T(r[n-30],r[n-29]),c=A(r[n-30],r[n-29]),u=r[n-32],d=r[n-31];r[n]=p(o,i,a,s,l,c,u,d),r[n+1]=f(o,i,a,s,l,c,u,d)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],o=this.h[1],a=this.h[2],s=this.h[3],l=this.h[4],c=this.h[5],p=this.h[6],f=this.h[7],b=this.h[8],y=this.h[9],v=this.h[10],T=this.h[11],A=this.h[12],x=this.h[13],P=this.h[14],R=this.h[15];i(this.k.length===r.length);for(var N=0;N<r.length;N+=2){var L=P,M=R,D=I(b,y),U=O(b,y),F=_(b,y,v,T,A),j=w(b,y,v,T,A,x),H=this.k[N],B=this.k[N+1],z=r[N],q=r[N+1],K=g(L,M,D,U,F,j,H,B,z,q),V=m(L,M,D,U,F,j,H,B,z,q);L=S(n,o),M=k(n,o),D=E(n,o,a,s,l),U=C(n,o,a,s,l,c);var G=d(L,M,D,U),W=h(L,M,D,U);P=A,R=x,A=v,x=T,v=b,T=y,b=d(p,f,K,V),y=h(f,f,K,V),p=l,f=c,l=a,c=s,a=n,s=o,n=d(K,V,G,W),o=h(K,V,G,W)}u(this.h,0,n,o),u(this.h,2,a,s),u(this.h,4,l,c),u(this.h,6,p,f),u(this.h,8,b,y),u(this.h,10,v,T),u(this.h,12,A,x),u(this.h,14,P,R)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},7038:(e,t,r)=>{"use strict";var n=r(6436).rotr32;function o(e,t,r){return e&t^~e&r}function i(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?o(t,r,n):1===e||3===e?a(t,r,n):2===e?i(t,r,n):void 0},t.ch32=o,t.maj32=i,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},6436:(e,t,r)=>{"use strict";var n=r(9746),o=r(5717);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function l(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)r.push(parseInt(e[o]+e[o+1],16))}else for(var n=0,o=0;o<e.length;o++){var a=e.charCodeAt(o);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):i(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(o=0;o<e.length;o++)r[o]=0|e[o];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=s(e[r].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e[n];"little"===t&&(o=a(o)),r+=l(o.toString(16))}return r},t.zero2=s,t.zero8=l,t.join32=function(e,t,r,o){var i=r-t;n(i%4==0);for(var a=new Array(i/4),s=0,l=t;s<a.length;s++,l+=4){var c;c="big"===o?e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3]:e[l+3]<<24|e[l+2]<<16|e[l+1]<<8|e[l],a[s]=c>>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,o=0;n<e.length;n++,o+=4){var i=e[n];"big"===t?(r[o]=i>>>24,r[o+1]=i>>>16&255,r[o+2]=i>>>8&255,r[o+3]=255&i):(r[o+3]=i>>>24,r[o+2]=i>>>16&255,r[o+1]=i>>>8&255,r[o]=255&i)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,o){return e+t+r+n+o>>>0},t.sum64=function(e,t,r,n){var o=e[t],i=n+e[t+1]>>>0,a=(i<n?1:0)+r+o;e[t]=a>>>0,e[t+1]=i},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,o,i,a,s){var l=0,c=t;return l+=(c=c+n>>>0)<t?1:0,l+=(c=c+i>>>0)<i?1:0,e+r+o+a+(l+=(c=c+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,o,i,a,s){return t+n+i+s>>>0},t.sum64_5_hi=function(e,t,r,n,o,i,a,s,l,c){var u=0,d=t;return u+=(d=d+n>>>0)<t?1:0,u+=(d=d+i>>>0)<i?1:0,u+=(d=d+s>>>0)<s?1:0,e+r+o+a+l+(u+=(d=d+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,o,i,a,s,l,c){return t+n+i+s+c>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},645:(e,t)=>{t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,l=(1<<s)-1,c=l>>1,u=-7,d=r?o-1:0,h=r?-1:1,p=e[t+d];for(d+=h,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=h,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=c}return(p?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,d=u>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,f=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[r+p]=255&s,p+=f,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[r+p]=255&a,p+=f,a/=256,c-=8);e[r+p-f]|=128*g}},5717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},5299:(e,t,r)=>{"use strict";var n=r(7798);function o(e){return!0===n(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,r;return!1!==o(e)&&("function"==typeof(t=e.constructor)&&(!1!==o(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")))}},7798:e=>{"use strict";e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},6245:(e,t,r)=>{"use strict";function n(e){this.message=e}r.r(t),r.d(t,{InvalidTokenError:()=>a,default:()=>s}),n.prototype=new Error,n.prototype.name="InvalidCharacterError";var o="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,i=0,a=0,s="";o=t.charAt(a++);~o&&(r=i%4?64*r+o:o,i++%4)?s+=String.fromCharCode(255&r>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return s};function i(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(o(e).replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(e){return o(t)}}function a(e){this.message=e}a.prototype=new Error,a.prototype.name="InvalidTokenError";const s=function(e,t){if("string"!=typeof e)throw new a("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(i(e.split(".")[r]))}catch(e){throw new a("Invalid token specified: "+e.message)}}},6401:e=>{var t=Object.prototype.toString;function r(e){return"function"==typeof e.constructor?e.constructor.name:null}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var n=typeof e;if("boolean"===n)return"boolean";if("string"===n)return"string";if("number"===n)return"number";if("symbol"===n)return"symbol";if("function"===n)return"GeneratorFunction"===r(e)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(e))return"array";if(function(e){if(e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(e))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(e))return"regexp";switch(r(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(e))return"generator";switch(n=t.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return n.slice(8,-1).toLowerCase().replace(/\s/g,"")}},8552:(e,t,r)=>{var n=r(852)(r(5639),"DataView");e.exports=n},1989:(e,t,r)=>{var n=r(1789),o=r(401),i=r(7667),a=r(1327),s=r(1866);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},8407:(e,t,r)=>{var n=r(7040),o=r(4125),i=r(2117),a=r(7518),s=r(4705);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},7071:(e,t,r)=>{var n=r(852)(r(5639),"Map");e.exports=n},3369:(e,t,r)=>{var n=r(4785),o=r(1285),i=r(6e3),a=r(9916),s=r(5265);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},3818:(e,t,r)=>{var n=r(852)(r(5639),"Promise");e.exports=n},8525:(e,t,r)=>{var n=r(852)(r(5639),"Set");e.exports=n},8668:(e,t,r)=>{var n=r(3369),o=r(619),i=r(2385);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},6384:(e,t,r)=>{var n=r(8407),o=r(7465),i=r(3779),a=r(7599),s=r(4758),l=r(4309);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},2705:(e,t,r)=>{var n=r(5639).Symbol;e.exports=n},1149:(e,t,r)=>{var n=r(5639).Uint8Array;e.exports=n},577:(e,t,r)=>{var n=r(852)(r(5639),"WeakMap");e.exports=n},6874:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},4963:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}},4636:(e,t,r)=>{var n=r(2545),o=r(5694),i=r(1469),a=r(4144),s=r(5776),l=r(6719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),u=!r&&o(e),d=!r&&!u&&a(e),h=!r&&!u&&!d&&l(e),p=r||u||d||h,f=p?n(e.length,String):[],g=f.length;for(var m in e)!t&&!c.call(e,m)||p&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||f.push(m);return f}},2488:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},2908:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},6556:(e,t,r)=>{var n=r(9465),o=r(7813);e.exports=function(e,t,r){(void 0!==r&&!o(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},4865:(e,t,r)=>{var n=r(9465),o=r(7813),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},8470:(e,t,r)=>{var n=r(7813);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},9465:(e,t,r)=>{var n=r(8777);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},3118:(e,t,r)=>{var n=r(3218),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},8483:(e,t,r)=>{var n=r(5063)();e.exports=n},8866:(e,t,r)=>{var n=r(2488),o=r(1469);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},4239:(e,t,r)=>{var n=r(2705),o=r(9607),i=r(2333),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},9454:(e,t,r)=>{var n=r(4239),o=r(7005);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},939:(e,t,r)=>{var n=r(2492),o=r(7005);e.exports=function e(t,r,i,a,s){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,i,a,e,s))}},2492:(e,t,r)=>{var n=r(6384),o=r(7114),i=r(8351),a=r(6096),s=r(4160),l=r(1469),c=r(4144),u=r(6719),d="[object Arguments]",h="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,g,m,b){var y=l(e),v=l(t),_=y?h:s(e),w=v?h:s(t),E=(_=_==d?p:_)==p,C=(w=w==d?p:w)==p,S=_==w;if(S&&c(e)){if(!c(t))return!1;y=!0,E=!1}if(S&&!E)return b||(b=new n),y||u(e)?o(e,t,r,g,m,b):i(e,t,_,r,g,m,b);if(!(1&r)){var k=E&&f.call(e,"__wrapped__"),I=C&&f.call(t,"__wrapped__");if(k||I){var O=k?e.value():e,T=I?t.value():t;return b||(b=new n),m(O,T,r,g,b)}}return!!S&&(b||(b=new n),a(e,t,r,g,m,b))}},8458:(e,t,r)=>{var n=r(3560),o=r(5346),i=r(3218),a=r(346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?h:s).test(a(e))}},8749:(e,t,r)=>{var n=r(4239),o=r(1780),i=r(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},280:(e,t,r)=>{var n=r(5726),o=r(6916),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},313:(e,t,r)=>{var n=r(3218),o=r(5726),i=r(3498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=o(e),r=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&r.push(s);return r}},2980:(e,t,r)=>{var n=r(6384),o=r(6556),i=r(8483),a=r(9783),s=r(3218),l=r(1704),c=r(6390);e.exports=function e(t,r,u,d,h){t!==r&&i(r,(function(i,l){if(h||(h=new n),s(i))a(t,r,l,u,e,d,h);else{var p=d?d(c(t,l),i,l+"",t,r,h):void 0;void 0===p&&(p=i),o(t,l,p)}}),l)}},9783:(e,t,r)=>{var n=r(6556),o=r(4626),i=r(7133),a=r(278),s=r(8517),l=r(5694),c=r(1469),u=r(9246),d=r(4144),h=r(3560),p=r(3218),f=r(8630),g=r(6719),m=r(6390),b=r(9881);e.exports=function(e,t,r,y,v,_,w){var E=m(e,r),C=m(t,r),S=w.get(C);if(S)n(e,r,S);else{var k=_?_(E,C,r+"",e,t,w):void 0,I=void 0===k;if(I){var O=c(C),T=!O&&d(C),A=!O&&!T&&g(C);k=C,O||T||A?c(E)?k=E:u(E)?k=a(E):T?(I=!1,k=o(C,!0)):A?(I=!1,k=i(C,!0)):k=[]:f(C)||l(C)?(k=E,l(E)?k=b(E):p(E)&&!h(E)||(k=s(C))):I=!1}I&&(w.set(C,k),v(k,C,y,_,w),w.delete(C)),n(e,r,k)}}},5976:(e,t,r)=>{var n=r(6557),o=r(5357),i=r(61);e.exports=function(e,t){return i(o(e,t,n),e+"")}},6560:(e,t,r)=>{var n=r(5703),o=r(8777),i=r(6557),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},2545:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},1717:e=>{e.exports=function(e){return function(t){return e(t)}}},4757:e=>{e.exports=function(e,t){return e.has(t)}},4318:(e,t,r)=>{var n=r(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},4626:(e,t,r)=>{e=r.nmd(e);var n=r(5639),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},7133:(e,t,r)=>{var n=r(4318);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},278:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},8363:(e,t,r)=>{var n=r(4865),o=r(9465);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(r[c],e[c],c,r,e):void 0;void 0===u&&(u=e[c]),a?o(r,c,u):n(r,c,u)}return r}},4852:(e,t,r)=>{var n=r(5639)["__core-js_shared__"];e.exports=n},1463:(e,t,r)=>{var n=r(5976),o=r(6612);e.exports=function(e){return n((function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var l=r[n];l&&e(t,l,n,a)}return t}))}},5063:e=>{e.exports=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===r(i[l],l,i))break}return t}}},8777:(e,t,r)=>{var n=r(852),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},7114:(e,t,r)=>{var n=r(8668),o=r(2908),i=r(4757);e.exports=function(e,t,r,a,s,l){var c=1&r,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var f=-1,g=!0,m=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var b=e[f],y=t[f];if(a)var v=c?a(y,b,f,t,e,l):a(b,y,f,e,t,l);if(void 0!==v){if(v)continue;g=!1;break}if(m){if(!o(t,(function(e,t){if(!i(m,t)&&(b===e||s(b,e,r,a,l)))return m.push(t)}))){g=!1;break}}else if(b!==y&&!s(b,y,r,a,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},8351:(e,t,r)=>{var n=r(2705),o=r(1149),i=r(7813),a=r(7114),s=r(8776),l=r(1814),c=n?n.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,r,n,c,d,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var f=1&n;if(p||(p=l),e.size!=t.size&&!f)return!1;var g=h.get(e);if(g)return g==t;n|=2,h.set(e,t);var m=a(p(e),p(t),n,c,d,h);return h.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},6096:(e,t,r)=>{var n=r(8234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,a,s){var l=1&r,c=n(e),u=c.length;if(u!=n(t).length&&!l)return!1;for(var d=u;d--;){var h=c[d];if(!(l?h in t:o.call(t,h)))return!1}var p=s.get(e),f=s.get(t);if(p&&f)return p==t&&f==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d<u;){var b=e[h=c[d]],y=t[h];if(i)var v=l?i(y,b,h,t,e,s):i(b,y,h,e,t,s);if(!(void 0===v?b===y||a(b,y,r,i,s):v)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var _=e.constructor,w=t.constructor;_==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(g=!1)}return s.delete(e),s.delete(t),g}},1957:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},8234:(e,t,r)=>{var n=r(8866),o=r(9551),i=r(3674);e.exports=function(e){return n(e,i,o)}},5050:(e,t,r)=>{var n=r(7019);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},852:(e,t,r)=>{var n=r(8458),o=r(7801);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},5924:(e,t,r)=>{var n=r(5569)(Object.getPrototypeOf,Object);e.exports=n},9607:(e,t,r)=>{var n=r(2705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},9551:(e,t,r)=>{var n=r(4963),o=r(479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},4160:(e,t,r)=>{var n=r(8552),o=r(7071),i=r(3818),a=r(8525),s=r(577),l=r(4239),c=r(346),u="[object Map]",d="[object Promise]",h="[object Set]",p="[object WeakMap]",f="[object DataView]",g=c(n),m=c(o),b=c(i),y=c(a),v=c(s),_=l;(n&&_(new n(new ArrayBuffer(1)))!=f||o&&_(new o)!=u||i&&_(i.resolve())!=d||a&&_(new a)!=h||s&&_(new s)!=p)&&(_=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case g:return f;case m:return u;case b:return d;case y:return h;case v:return p}return t}),e.exports=_},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1789:(e,t,r)=>{var n=r(4536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},1327:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},1866:(e,t,r)=>{var n=r(4536);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},8517:(e,t,r)=>{var n=r(3118),o=r(5924),i=r(5726);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},6612:(e,t,r)=>{var n=r(7813),o=r(8612),i=r(5776),a=r(3218);e.exports=function(e,t,r){if(!a(r))return!1;var s=typeof t;return!!("number"==s?o(r)&&i(t,r.length):"string"==s&&t in r)&&n(r[t],e)}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,r)=>{var n,o=r(4852),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,r)=>{var n=r(8470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},2117:(e,t,r)=>{var n=r(8470);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7518:(e,t,r)=>{var n=r(8470);e.exports=function(e){return n(this.__data__,e)>-1}},4705:(e,t,r)=>{var n=r(8470);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},4785:(e,t,r)=>{var n=r(1989),o=r(8407),i=r(7071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},1285:(e,t,r)=>{var n=r(5050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).get(e)}},9916:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).has(e)}},5265:(e,t,r)=>{var n=r(5050);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},4536:(e,t,r)=>{var n=r(852)(Object,"create");e.exports=n},6916:(e,t,r)=>{var n=r(5569)(Object.keys,Object);e.exports=n},3498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},1167:(e,t,r)=>{e=r.nmd(e);var n=r(1957),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},5357:(e,t,r)=>{var n=r(6874),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=r(l),n(e,this,c)}}},5639:(e,t,r)=>{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},6390:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},61:(e,t,r)=>{var n=r(6560),o=r(1275)(n);e.exports=o},1275:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},7465:(e,t,r)=>{var n=r(8407);e.exports=function(){this.__data__=new n,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,r)=>{var n=r(8407),o=r(7071),i=r(3369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5703:e=>{e.exports=function(e){return function(){return e}}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6557:e=>{e.exports=function(e){return e}},5694:(e,t,r)=>{var n=r(9454),o=r(7005),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,r)=>{var n=r(3560),o=r(1780);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},9246:(e,t,r)=>{var n=r(8612),o=r(7005);e.exports=function(e){return o(e)&&n(e)}},4144:(e,t,r)=>{e=r.nmd(e);var n=r(5639),o=r(5062),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},8446:(e,t,r)=>{var n=r(939);e.exports=function(e,t){return n(e,t)}},3560:(e,t,r)=>{var n=r(4239),o=r(3218);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8630:(e,t,r)=>{var n=r(4239),o=r(5924),i=r(7005),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==u}},6719:(e,t,r)=>{var n=r(8749),o=r(1717),i=r(1167),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},3674:(e,t,r)=>{var n=r(4636),o=r(280),i=r(8612);e.exports=function(e){return i(e)?n(e):o(e)}},1704:(e,t,r)=>{var n=r(4636),o=r(313),i=r(8612);e.exports=function(e){return i(e)?n(e,!0):o(e)}},3857:(e,t,r)=>{var n=r(2980),o=r(1463)((function(e,t,r){n(e,t,r)}));e.exports=o},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},9881:(e,t,r)=>{var n=r(8363),o=r(1704);e.exports=function(e){return n(e,o(e))}},9746:e=>{function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},4155:e=>{var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&h())}function h(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u<t;)s&&s[u].run();u=-1,t=l.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new p(e,t)),1!==l.length||c||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=f,n.addListener=f,n.once=f,n.off=f,n.removeListener=f,n.removeAllListeners=f,n.emit=f,n.prependListener=f,n.prependOnceListener=f,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},3341:(e,t,r)=>{"use strict";var n=r(8764).lW;const o=Symbol.prototype.valueOf,i=r(6401);e.exports=function(e,t){switch(i(e)){case"array":return e.slice();case"object":return Object.assign({},e);case"date":return new e.constructor(Number(e));case"map":return new Map(e);case"set":return new Set(e);case"buffer":return function(e){const t=e.length,r=n.allocUnsafe?n.allocUnsafe(t):n.from(t);return e.copy(r),r}(e);case"symbol":return function(e){return o?Object(o.call(e)):{}}(e);case"arraybuffer":return function(e){const t=new e.constructor(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}(e);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function(e,t){return new e.constructor(e.buffer,e.byteOffset,e.length)}(e);case"regexp":return function(e){const t=void 0!==e.flags?e.flags:/\w+$/.exec(e)||void 0,r=new e.constructor(e.source,t);return r.lastIndex=e.lastIndex,r}(e);case"error":return Object.create(e);default:return e}}},655:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>i,__asyncDelegator:()=>w,__asyncGenerator:()=>_,__asyncValues:()=>E,__await:()=>v,__awaiter:()=>u,__classPrivateFieldGet:()=>O,__classPrivateFieldSet:()=>T,__createBinding:()=>h,__decorate:()=>s,__exportStar:()=>p,__extends:()=>o,__generator:()=>d,__importDefault:()=>I,__importStar:()=>k,__makeTemplateObject:()=>C,__metadata:()=>c,__param:()=>l,__read:()=>g,__rest:()=>a,__spread:()=>m,__spreadArray:()=>y,__spreadArrays:()=>b,__values:()=>f});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function s(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function l(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function d(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var h=Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function p(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||h(t,e,r)}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function b(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}function y(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function _(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||s(e,t)}))})}function s(e,t){try{(r=o[e](t)).value instanceof v?Promise.resolve(r.value.v).then(l,c):u(i[0][2],r)}catch(e){u(i[0][3],e)}var r}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function w(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:v(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=f(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var S=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&h(t,e,r);return S(t,e),t}function I(e){return e&&e.__esModule?e:{default:e}}function O(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function T(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}},3387:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{var process=__webpack_require__(4155);(()=>{var __webpack_modules__={53095:(e,t,r)=>{e.exports=r(44569)},85846:(e,t,r)=>{"use strict";var n=r(40898),o=r(7184),i=r(50310),a=r(81036),s=r(42629),l=r(30902),c=r(27004),u=r(35449),d=r(47345),h=r(20918);e.exports=function(e){return new Promise((function(t,r){var p,f=e.data,g=e.headers,m=e.responseType;function b(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}n.isFormData(f)&&delete g["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var v=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(v+":"+_)}var w=s(e.baseURL,e.url);function E(){if(y){var n="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:e,request:y};o((function(e){t(e),b()}),(function(e){r(e),b()}),i),y=null}}if(y.open(e.method.toUpperCase(),a(w,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=E:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(E)},y.onabort=function(){y&&(r(u("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){r(u("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(u(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},n.isStandardBrowserEnv()){var C=(e.withCredentials||c(w))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;C&&(g[e.xsrfHeaderName]=C)}"setRequestHeader"in y&&n.forEach(g,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete g[t]:y.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),m&&"json"!==m&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){y&&(r(!e||e&&e.type?new h("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),f||(f=null),y.send(f)}))}},44569:(e,t,r)=>{"use strict";var n=r(40898),o=r(6654),i=r(28905),a=r(1441);var s=function e(t){var r=new i(t),s=o(i.prototype.request,r);return n.extend(s,i.prototype,r),n.extend(s,r),s.create=function(r){return e(a(t,r))},s}(r(47345));s.Axios=i,s.Cancel=r(20918),s.CancelToken=r(87709),s.isCancel=r(7770),s.VERSION=r(78219).version,s.all=function(e){return Promise.all(e)},s.spread=r(27238),s.isAxiosError=r(75657),e.exports=s,e.exports.default=s},20918:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},87709:(e,t,r)=>{"use strict";var n=r(20918);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},7770:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},28905:(e,t,r)=>{"use strict";var n=r(40898),o=r(81036),i=r(761),a=r(68768),s=r(1441),l=r(89419),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e,t){if("string"==typeof e?(t=t||{}).url=e:t=e||{},!t.url)throw new Error("Provided config url is not valid");(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&l.assertOptions(r,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!o){var d=[a,void 0];for(Array.prototype.unshift.apply(d,n),d=d.concat(u),i=Promise.resolve(t);d.length;)i=i.then(d.shift(),d.shift());return i}for(var h=t;n.length;){var p=n.shift(),f=n.shift();try{h=p(h)}catch(e){f(e);break}}try{i=a(h)}catch(e){return Promise.reject(e)}for(;u.length;)i=i.then(u.shift(),u.shift());return i},u.prototype.getUri=function(e){if(!e.url)throw new Error("Provided config url is not valid");return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,r,n){return this.request(s(n||{},{method:e,url:t,data:r}))}})),e.exports=u},761:(e,t,r)=>{"use strict";var n=r(40898);function o(){this.handlers=[]}o.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},42629:(e,t,r)=>{"use strict";var n=r(97571),o=r(51190);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},35449:(e,t,r)=>{"use strict";var n=r(9703);e.exports=function(e,t,r,o,i){var a=new Error(e);return n(a,t,r,o,i)}},68768:(e,t,r)=>{"use strict";var n=r(40898),o=r(35871),i=r(7770),a=r(47345),s=r(20918);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},9703:e=>{"use strict";e.exports=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},1441:(e,t,r)=>{"use strict";var n=r(40898);e.exports=function(e,t){t=t||{};var r={};function o(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function i(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(e[r],t[r])}function a(e){if(!n.isUndefined(t[e]))return o(void 0,t[e])}function s(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(void 0,t[r])}function l(r){return r in t?o(e[r],t[r]):r in e?o(void 0,e[r]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,o=t(e);n.isUndefined(o)&&t!==l||(r[e]=o)})),r}},7184:(e,t,r)=>{"use strict";var n=r(35449);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},35871:(e,t,r)=>{"use strict";var n=r(40898),o=r(47345);e.exports=function(e,t,r){var i=this||o;return n.forEach(r,(function(r){e=r.call(i,e,t)})),e}},47345:(e,t,r)=>{"use strict";var n=r(40898),o=r(41752),i=r(9703),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==process&&"[object process]"===Object.prototype.toString.call(process))&&(l=r(85846)),l),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,r){if(n.isString(e))try{return(t||JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,r=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!r&&"json"===this.responseType;if(a||o&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){c.headers[e]=n.merge(a)})),e.exports=c},78219:e=>{e.exports={version:"0.25.0"}},6654:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},81036:(e,t,r)=>{"use strict";var n=r(40898);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},51190:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},50310:(e,t,r)=>{"use strict";var n=r(40898);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},97571:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},75657:(e,t,r)=>{"use strict";var n=r(40898);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},27004:(e,t,r)=>{"use strict";var n=r(40898);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},41752:(e,t,r)=>{"use strict";var n=r(40898);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},30902:(e,t,r)=>{"use strict";var n=r(40898),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,a={};return e?(n.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}})),a):a}},27238:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},89419:(e,t,r)=>{"use strict";var n=r(78219).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,r){function o(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,a){if(!1===e)throw new Error(o(n," has been removed"+(t?" in "+t:"")));return t&&!i[n]&&(i[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,a)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],a=t[i];if(a){var s=e[i],l=void 0===s||a(s,i,e);if(!0!==l)throw new TypeError("option "+i+" must be "+l)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:o}},40898:(e,t,r)=>{"use strict";var n=r(6654),o=Object.prototype.toString;function i(e){return Array.isArray(e)}function a(e){return void 0===e}function s(e){return"[object ArrayBuffer]"===o.call(e)}function l(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function d(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:s,isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===o.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&s(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===o.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:d,merge:function e(){var t={};function r(r,n){c(t[n])&&c(r)?t[n]=e(t[n],r):c(r)?t[n]=e({},r):i(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)d(arguments[n],r);return t},extend:function(e,t,r){return d(t,(function(t,o){e[o]=r&&"function"==typeof t?n(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},6224:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),n=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],o(r),o(n))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=o(t,n).join("")).match(r)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=n.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var o=i(r[0]);o!==r[0]&&(t[r[0]]=o)}r=n.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var l=a[s];e=e.replace(new RegExp(l,"g"),t[l])}return e}(e)}}},57825:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(r,n){function o(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}g(e,t,i,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&g(e,"error",t,r)}(e,o,{once:!0})}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var o,i,a,c;if(s(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=l(e))>0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=u.bind(n);return o.listener=r,n.wrapFn=o,o}function h(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):f(o,o.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function f(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){n.once&&e.removeEventListener(t,o),r(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else{var c=l.length,u=f(l,c);for(r=0;r<c;++r)n(u[r],this,t)}return!0},i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,o,i,a;if(s(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return h(this,e,!0)},i.prototype.rawListeners=function(e){return h(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},47241:(e,t,r)=>{var n;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(n=function(){return i}.call(t,r,t,e))||(e.exports=n)}()},57160:(e,t,r)=>{"use strict";var n=r(52305),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(f){var o=p(r);o&&o!==f&&e(t,o,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=l(t),g=l(r),m=0;m<a.length;++m){var b=a[m];if(!(i[b]||n&&n[b]||g&&g[b]||s&&s[b])){var y=h(r,b);try{c(t,b,y)}catch(e){}}}}return t}},5026:(module,exports,__nested_webpack_require_73465__)=>{var __WEBPACK_AMD_DEFINE_RESULT__;(function(){"use strict";var root="object"==typeof window?window:{},NODE_JS=!root.JS_SHA1_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS&&(root=__nested_webpack_require_73465__.g);var COMMON_JS=!root.JS_SHA1_NO_COMMON_JS&&module.exports,AMD=__nested_webpack_require_73465__.amdO,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[],createOutputMethod=function(e){return function(t){return new Sha1(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Sha1},e.update=function(t){return e.create().update(t)};for(var t=0;t<OUTPUT_TYPES.length;++t){var r=OUTPUT_TYPES[t];e[r]=createOutputMethod(r)}return e},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){if("string"==typeof e)return crypto.createHash("sha1").update(e,"utf8").digest("hex");if(e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(void 0===e.length)return method(e);return crypto.createHash("sha1").update(new Buffer(e)).digest("hex")};return nodeMethod};function Sha1(e){e?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Sha1.prototype.update=function(e){if(!this.finalized){var t="string"!=typeof e;t&&e.constructor===root.ArrayBuffer&&(e=new Uint8Array(e));for(var r,n,o=0,i=e.length||0,a=this.blocks;o<i;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),t)for(n=this.start;o<i&&n<64;++o)a[n>>2]|=e[o]<<SHIFT[3&n++];else for(n=this.start;o<i&&n<64;++o)(r=e.charCodeAt(o))<128?a[n>>2]|=r<<SHIFT[3&n++]:r<2048?(a[n>>2]|=(192|r>>6)<<SHIFT[3&n++],a[n>>2]|=(128|63&r)<<SHIFT[3&n++]):r<55296||r>=57344?(a[n>>2]|=(224|r>>12)<<SHIFT[3&n++],a[n>>2]|=(128|r>>6&63)<<SHIFT[3&n++],a[n>>2]|=(128|63&r)<<SHIFT[3&n++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++o)),a[n>>2]|=(240|r>>18)<<SHIFT[3&n++],a[n>>2]|=(128|r>>12&63)<<SHIFT[3&n++],a[n>>2]|=(128|r>>6&63)<<SHIFT[3&n++],a[n>>2]|=(128|63&r)<<SHIFT[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,n>=64?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha1.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha1.prototype.hash=function(){var e,t,r=this.h0,n=this.h1,o=this.h2,i=this.h3,a=this.h4,s=this.blocks;for(e=16;e<80;++e)t=s[e-3]^s[e-8]^s[e-14]^s[e-16],s[e]=t<<1|t>>>31;for(e=0;e<20;e+=5)r=(t=(n=(t=(o=(t=(i=(t=(a=(t=r<<5|r>>>27)+(n&o|~n&i)+a+1518500249+s[e]<<0)<<5|a>>>27)+(r&(n=n<<30|n>>>2)|~r&o)+i+1518500249+s[e+1]<<0)<<5|i>>>27)+(a&(r=r<<30|r>>>2)|~a&n)+o+1518500249+s[e+2]<<0)<<5|o>>>27)+(i&(a=a<<30|a>>>2)|~i&r)+n+1518500249+s[e+3]<<0)<<5|n>>>27)+(o&(i=i<<30|i>>>2)|~o&a)+r+1518500249+s[e+4]<<0,o=o<<30|o>>>2;for(;e<40;e+=5)r=(t=(n=(t=(o=(t=(i=(t=(a=(t=r<<5|r>>>27)+(n^o^i)+a+1859775393+s[e]<<0)<<5|a>>>27)+(r^(n=n<<30|n>>>2)^o)+i+1859775393+s[e+1]<<0)<<5|i>>>27)+(a^(r=r<<30|r>>>2)^n)+o+1859775393+s[e+2]<<0)<<5|o>>>27)+(i^(a=a<<30|a>>>2)^r)+n+1859775393+s[e+3]<<0)<<5|n>>>27)+(o^(i=i<<30|i>>>2)^a)+r+1859775393+s[e+4]<<0,o=o<<30|o>>>2;for(;e<60;e+=5)r=(t=(n=(t=(o=(t=(i=(t=(a=(t=r<<5|r>>>27)+(n&o|n&i|o&i)+a-1894007588+s[e]<<0)<<5|a>>>27)+(r&(n=n<<30|n>>>2)|r&o|n&o)+i-1894007588+s[e+1]<<0)<<5|i>>>27)+(a&(r=r<<30|r>>>2)|a&n|r&n)+o-1894007588+s[e+2]<<0)<<5|o>>>27)+(i&(a=a<<30|a>>>2)|i&r|a&r)+n-1894007588+s[e+3]<<0)<<5|n>>>27)+(o&(i=i<<30|i>>>2)|o&a|i&a)+r-1894007588+s[e+4]<<0,o=o<<30|o>>>2;for(;e<80;e+=5)r=(t=(n=(t=(o=(t=(i=(t=(a=(t=r<<5|r>>>27)+(n^o^i)+a-899497514+s[e]<<0)<<5|a>>>27)+(r^(n=n<<30|n>>>2)^o)+i-899497514+s[e+1]<<0)<<5|i>>>27)+(a^(r=r<<30|r>>>2)^n)+o-899497514+s[e+2]<<0)<<5|o>>>27)+(i^(a=a<<30|a>>>2)^r)+n-899497514+s[e+3]<<0)<<5|n>>>27)+(o^(i=i<<30|i>>>2)^a)+r-899497514+s[e+4]<<0,o=o<<30|o>>>2;this.h0=this.h0+r<<0,this.h1=this.h1+n<<0,this.h2=this.h2+o<<0,this.h3=this.h3+i<<0,this.h4=this.h4+a<<0},Sha1.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,o=this.h4;return HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]},Sha1.prototype.toString=Sha1.prototype.hex,Sha1.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,o=this.h4;return[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,r>>24&255,r>>16&255,r>>8&255,255&r,n>>24&255,n>>16&255,n>>8&255,255&n,o>>24&255,o>>16&255,o>>8&255,255&o]},Sha1.prototype.array=Sha1.prototype.digest,Sha1.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(20),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),e};var exports=createMethod();COMMON_JS?module.exports=exports:(root.sha1=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__nested_webpack_require_73465__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},84708:function(e,t,r){var n;!function(o){var i={starts_with_slashes:/^\/+/,ends_with_slashes:/\/+$/,pluses:/\+/g,query_separator:/[&;]/,uri_parser:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*)(?::([^:@]*))?)?@)?(\[[0-9a-fA-F:.]+\]|[^:\/?#]*)(?::(\d+|(?=:)))?(:)?)((((?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/};function a(e){return e&&(e=e.toString().replace(i.pluses,"%20"),e=decodeURIComponent(e)),e}function s(e){var t,r,n,o,s,l,c,u=[];if(null==e||""===e)return u;for(0===e.indexOf("?")&&(e=e.substring(1)),t=0,c=(r=e.toString().split(i.query_separator)).length;t<c;t++)0!==(o=(n=r[t]).indexOf("="))&&(s=a(n.substring(0,o)),l=a(n.substring(o+1)),u.push(-1===o?[n,null]:[s,l]));return u}function l(e){this.uriParts=function(e){var t=i.uri_parser.exec(e||""),r={};return["source","protocol","authority","userInfo","user","password","host","port","isColonUri","relative","path","directory","file","query","anchor"].forEach((function(e,n){r[e]=t[n]||""})),r}(e),this.queryPairs=s(this.uriParts.query),this.hasAuthorityPrefixUserPref=null}Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var r,n;if(null==this)throw new TypeError(" this is null or not defined");var o=Object(this),i=o.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(r=t),n=0;n<i;){var a;n in o&&(a=o[n],e.call(r,a,n,o)),n++}}),["protocol","userInfo","host","port","path","anchor"].forEach((function(e){l.prototype[e]=function(t){return void 0!==t&&(this.uriParts[e]=t),this.uriParts[e]}})),l.prototype.hasAuthorityPrefix=function(e){return void 0!==e&&(this.hasAuthorityPrefixUserPref=e),null===this.hasAuthorityPrefixUserPref?-1!==this.uriParts.source.indexOf("//"):this.hasAuthorityPrefixUserPref},l.prototype.isColonUri=function(e){if(void 0===e)return!!this.uriParts.isColonUri;this.uriParts.isColonUri=!!e},l.prototype.query=function(e){var t,r,n,o="";for(void 0!==e&&(this.queryPairs=s(e)),t=0,n=this.queryPairs.length;t<n;t++)r=this.queryPairs[t],o.length>0&&(o+="&"),null===r[1]?o+=r[0]:(o+=r[0],o+="=",void 0!==r[1]&&(o+=encodeURIComponent(r[1])));return o.length>0?"?"+o:o},l.prototype.getQueryParamValue=function(e){var t,r,n;for(r=0,n=this.queryPairs.length;r<n;r++)if(e===(t=this.queryPairs[r])[0])return t[1]},l.prototype.getQueryParamValues=function(e){var t,r,n,o=[];for(t=0,n=this.queryPairs.length;t<n;t++)e===(r=this.queryPairs[t])[0]&&o.push(r[1]);return o},l.prototype.deleteQueryParam=function(e,t){var r,n,o,i,s,l=[];for(r=0,s=this.queryPairs.length;r<s;r++)o=a((n=this.queryPairs[r])[0])===a(e),i=n[1]===t,(1!==arguments.length||o)&&(2!==arguments.length||o&&i)||l.push(n);return this.queryPairs=l,this},l.prototype.addQueryParam=function(e,t,r){return 3===arguments.length&&-1!==r?(r=Math.min(r,this.queryPairs.length),this.queryPairs.splice(r,0,[e,t])):arguments.length>0&&this.queryPairs.push([e,t]),this},l.prototype.hasQueryParam=function(e){var t,r=this.queryPairs.length;for(t=0;t<r;t++)if(this.queryPairs[t][0]==e)return!0;return!1},l.prototype.replaceQueryParam=function(e,t,r){var n,o,i=-1,s=this.queryPairs.length;if(3===arguments.length){for(n=0;n<s;n++)if(a((o=this.queryPairs[n])[0])===a(e)&&decodeURIComponent(o[1])===a(r)){i=n;break}i>=0&&this.deleteQueryParam(e,a(r)).addQueryParam(e,t,i)}else{for(n=0;n<s;n++)if(a((o=this.queryPairs[n])[0])===a(e)){i=n;break}this.deleteQueryParam(e),this.addQueryParam(e,t,i)}return this},["protocol","hasAuthorityPrefix","isColonUri","userInfo","host","port","path","query","anchor"].forEach((function(e){var t="set"+e.charAt(0).toUpperCase()+e.slice(1);l.prototype[t]=function(t){return this[e](t),this}})),l.prototype.scheme=function(){var e="";return this.protocol()?(e+=this.protocol(),this.protocol().indexOf(":")!==this.protocol().length-1&&(e+=":"),e+="//"):this.hasAuthorityPrefix()&&this.host()&&(e+="//"),e},l.prototype.origin=function(){var e=this.scheme();return this.userInfo()&&this.host()&&(e+=this.userInfo(),this.userInfo().indexOf("@")!==this.userInfo().length-1&&(e+="@")),this.host()&&(e+=this.host(),(this.port()||this.path()&&this.path().substr(0,1).match(/[0-9]/))&&(e+=":"+this.port())),e},l.prototype.addTrailingSlash=function(){var e=this.path()||"";return"/"!==e.substr(-1)&&this.path(e+"/"),this},l.prototype.toString=function(){var e,t=this.origin();return this.isColonUri()?this.path()&&(t+=":"+this.path()):this.path()?(e=this.path(),i.ends_with_slashes.test(t)||i.starts_with_slashes.test(e)?(t&&t.replace(i.ends_with_slashes,"/"),e=e.replace(i.starts_with_slashes,"/")):t+="/",t+=e):this.host()&&(this.query().toString()||this.anchor())&&(t+="/"),this.query().toString()&&(t+=this.query().toString()),this.anchor()&&(0!==this.anchor().indexOf("#")&&(t+="#"),t+=this.anchor()),t},l.prototype.clone=function(){return new l(this.toString())},void 0===(n=function(){return l}.call(t,r,t,e))||(e.exports=n)}()},9438:(e,t,r)=>{var n=r(5264)(r(75619),"DataView");e.exports=n},22139:(e,t,r)=>{var n=r(45850),o=r(56988),i=r(71631),a=r(27699),s=r(76491);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},11649:(e,t,r)=>{var n=r(28924),o=r(48122),i=r(31381),a=r(14489),s=r(48721);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},56285:(e,t,r)=>{var n=r(5264)(r(75619),"Map");e.exports=n},22583:(e,t,r)=>{var n=r(40126),o=r(85464),i=r(45755),a=r(12343),s=r(55071);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},86974:(e,t,r)=>{var n=r(5264)(r(75619),"Promise");e.exports=n},75867:(e,t,r)=>{var n=r(5264)(r(75619),"Set");e.exports=n},66787:(e,t,r)=>{var n=r(11649),o=r(73634),i=r(91636),a=r(19719),s=r(98971),l=r(89987);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},75799:(e,t,r)=>{var n=r(75619).Symbol;e.exports=n},86882:(e,t,r)=>{var n=r(75619).Uint8Array;e.exports=n},53173:(e,t,r)=>{var n=r(5264)(r(75619),"WeakMap");e.exports=n},44375:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},7515:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},18472:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}},74113:(e,t,r)=>{var n=r(41458),o=r(24254),i=r(37603),a=r(23470),s=r(68327),l=r(24373),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),u=!r&&o(e),d=!r&&!u&&a(e),h=!r&&!u&&!d&&l(e),p=r||u||d||h,f=p?n(e.length,String):[],g=f.length;for(var m in e)!t&&!c.call(e,m)||p&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||f.push(m);return f}},22654:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},81026:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},70104:e=>{e.exports=function(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}},25983:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},43379:(e,t,r)=>{var n=r(52162),o=r(91114);e.exports=function(e,t,r){(void 0!==r&&!o(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},40581:(e,t,r)=>{var n=r(52162),o=r(91114),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},98639:(e,t,r)=>{var n=r(91114);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},96239:(e,t,r)=>{var n=r(96945),o=r(45e3);e.exports=function(e,t){return e&&n(t,o(t),e)}},51412:(e,t,r)=>{var n=r(96945),o=r(83735);e.exports=function(e,t){return e&&n(t,o(t),e)}},52162:(e,t,r)=>{var n=r(72097);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},71649:(e,t,r)=>{var n=r(66787),o=r(7515),i=r(40581),a=r(96239),s=r(51412),l=r(71204),c=r(57861),u=r(47605),d=r(97478),h=r(23280),p=r(65279),f=r(42711),g=r(14503),m=r(9961),b=r(42631),y=r(37603),v=r(23470),_=r(31204),w=r(3715),E=r(13558),C=r(45e3),S=r(83735),k="[object Arguments]",I="[object Function]",O="[object Object]",T={};T[k]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[O]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[I]=T["[object WeakMap]"]=!1,e.exports=function e(t,r,A,x,P,R){var N,L=1&r,M=2&r,D=4&r;if(A&&(N=P?A(t,x,P,R):A(t)),void 0!==N)return N;if(!w(t))return t;var U=y(t);if(U){if(N=g(t),!L)return c(t,N)}else{var F=f(t),j=F==I||"[object GeneratorFunction]"==F;if(v(t))return l(t,L);if(F==O||F==k||j&&!P){if(N=M||j?{}:b(t),!L)return M?d(t,s(N,t)):u(t,a(N,t))}else{if(!T[F])return P?t:{};N=m(t,F,L)}}R||(R=new n);var H=R.get(t);if(H)return H;R.set(t,N),E(t)?t.forEach((function(n){N.add(e(n,r,A,n,t,R))})):_(t)&&t.forEach((function(n,o){N.set(o,e(n,r,A,o,t,R))}));var B=U?void 0:(D?M?p:h:M?S:C)(t);return o(B||t,(function(n,o){B&&(n=t[o=n]),i(N,o,e(n,r,A,o,t,R))})),N}},90938:(e,t,r)=>{var n=r(3715),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},17621:e=>{e.exports=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},18142:(e,t,r)=>{var n=r(81026),o=r(46609);e.exports=function e(t,r,i,a,s){var l=-1,c=t.length;for(i||(i=o),s||(s=[]);++l<c;){var u=t[l];r>0&&i(u)?r>1?e(u,r-1,i,a,s):n(s,u):a||(s[s.length]=u)}return s}},6043:(e,t,r)=>{var n=r(68119)();e.exports=n},99216:(e,t,r)=>{var n=r(62323),o=r(60299);e.exports=function(e,t){for(var r=0,i=(t=n(t,e)).length;null!=e&&r<i;)e=e[o(t[r++])];return r&&r==i?e:void 0}},51141:(e,t,r)=>{var n=r(81026),o=r(37603);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},33754:(e,t,r)=>{var n=r(75799),o=r(36969),i=r(11916),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},38868:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,r){return null!=e&&t.call(e,r)}},73989:(e,t,r)=>{var n=r(17621),o=r(5641),i=r(5749);e.exports=function(e,t,r){return t==t?i(e,t,r):n(e,o,r)}},59720:(e,t,r)=>{var n=r(33754),o=r(34140);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},70422:(e,t,r)=>{var n=r(42711),o=r(34140);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},5641:e=>{e.exports=function(e){return e!=e}},12185:(e,t,r)=>{var n=r(51028),o=r(33014),i=r(3715),a=r(10839),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?h:s).test(a(e))}},12068:(e,t,r)=>{var n=r(42711),o=r(34140);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},42875:(e,t,r)=>{var n=r(33754),o=r(25404),i=r(34140),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},27914:(e,t,r)=>{var n=r(50469),o=r(64756),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},28141:(e,t,r)=>{var n=r(3715),o=r(50469),i=r(83163),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=o(e),r=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&r.push(s);return r}},59584:(e,t,r)=>{var n=r(66787),o=r(43379),i=r(6043),a=r(58686),s=r(3715),l=r(83735),c=r(47400);e.exports=function e(t,r,u,d,h){t!==r&&i(r,(function(i,l){if(h||(h=new n),s(i))a(t,r,l,u,e,d,h);else{var p=d?d(c(t,l),i,l+"",t,r,h):void 0;void 0===p&&(p=i),o(t,l,p)}}),l)}},58686:(e,t,r)=>{var n=r(43379),o=r(71204),i=r(90467),a=r(57861),s=r(42631),l=r(24254),c=r(37603),u=r(53739),d=r(23470),h=r(51028),p=r(3715),f=r(19961),g=r(24373),m=r(47400),b=r(43082);e.exports=function(e,t,r,y,v,_,w){var E=m(e,r),C=m(t,r),S=w.get(C);if(S)n(e,r,S);else{var k=_?_(E,C,r+"",e,t,w):void 0,I=void 0===k;if(I){var O=c(C),T=!O&&d(C),A=!O&&!T&&g(C);k=C,O||T||A?c(E)?k=E:u(E)?k=a(E):T?(I=!1,k=o(C,!0)):A?(I=!1,k=i(C,!0)):k=[]:f(C)||l(C)?(k=E,l(E)?k=b(E):p(E)&&!h(E)||(k=s(C))):I=!1}I&&(w.set(C,k),v(k,C,y,_,w),w.delete(C)),n(e,r,k)}}},35022:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},80561:e=>{var t=Math.ceil,r=Math.max;e.exports=function(e,n,o,i){for(var a=-1,s=r(t((n-e)/(o||1)),0),l=Array(s);s--;)l[i?s:++a]=e,e+=o;return l}},84016:(e,t,r)=>{var n=r(97286),o=r(7539),i=r(81239);e.exports=function(e,t){return i(o(e,t,n),e+"")}},42612:(e,t,r)=>{var n=r(40581),o=r(62323),i=r(68327),a=r(3715),s=r(60299);e.exports=function(e,t,r,l){if(!a(e))return e;for(var c=-1,u=(t=o(t,e)).length,d=u-1,h=e;null!=h&&++c<u;){var p=s(t[c]),f=r;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=d){var g=h[p];void 0===(f=l?l(g,p,h):void 0)&&(f=a(g)?g:i(t[c+1])?[]:{})}n(h,p,f),h=h[p]}return e}},60280:(e,t,r)=>{var n=r(18620),o=r(72097),i=r(97286),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},82982:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}},41458:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},12258:(e,t,r)=>{var n=r(75799),o=r(22654),i=r(37603),a=r(9924),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r}},17406:(e,t,r)=>{var n=r(45362),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},45083:e=>{e.exports=function(e){return function(t){return e(t)}}},2937:(e,t,r)=>{var n=r(62323),o=r(85272),i=r(75019),a=r(60299);e.exports=function(e,t){return t=n(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},73292:(e,t,r)=>{var n=r(22654);e.exports=function(e,t){return n(t,(function(t){return e[t]}))}},62323:(e,t,r)=>{var n=r(37603),o=r(688),i=r(16648),a=r(96004);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}},86451:(e,t,r)=>{var n=r(86882);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},71204:(e,t,r)=>{e=r.nmd(e);var n=r(75619),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},99915:(e,t,r)=>{var n=r(86451);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},90923:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},61310:(e,t,r)=>{var n=r(75799),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},90467:(e,t,r)=>{var n=r(86451);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},57861:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},96945:(e,t,r)=>{var n=r(40581),o=r(52162);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(r[c],e[c],c,r,e):void 0;void 0===u&&(u=e[c]),a?o(r,c,u):n(r,c,u)}return r}},47605:(e,t,r)=>{var n=r(96945),o=r(83270);e.exports=function(e,t){return n(e,o(e),t)}},97478:(e,t,r)=>{var n=r(96945),o=r(48145);e.exports=function(e,t){return n(e,o(e),t)}},80591:(e,t,r)=>{var n=r(75619)["__core-js_shared__"];e.exports=n},12317:(e,t,r)=>{var n=r(84016),o=r(14494);e.exports=function(e){return n((function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var l=r[n];l&&e(t,l,n,a)}return t}))}},68119:e=>{e.exports=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===r(i[l],l,i))break}return t}}},78073:(e,t,r)=>{var n=r(70104),o=r(70794),i=r(43243),a=RegExp("['’]","g");e.exports=function(e){return function(t){return n(i(o(t).replace(a,"")),e,"")}}},52286:(e,t,r)=>{var n=r(80561),o=r(14494),i=r(95134);e.exports=function(e){return function(t,r,a){return a&&"number"!=typeof a&&o(t,r,a)&&(r=a=void 0),t=i(t),void 0===r?(r=t,t=0):r=i(r),a=void 0===a?t<r?1:-1:i(a),n(t,r,a,e)}}},77292:(e,t,r)=>{var n=r(19961);e.exports=function(e){return n(e)?void 0:e}},46177:(e,t,r)=>{var n=r(35022)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=n},72097:(e,t,r)=>{var n=r(5264),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},63126:(e,t,r)=>{var n=r(11616),o=r(7539),i=r(81239);e.exports=function(e){return i(o(e,void 0,n),e+"")}},57326:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},23280:(e,t,r)=>{var n=r(51141),o=r(83270),i=r(45e3);e.exports=function(e){return n(e,i,o)}},65279:(e,t,r)=>{var n=r(51141),o=r(48145),i=r(83735);e.exports=function(e){return n(e,i,o)}},60113:(e,t,r)=>{var n=r(63492);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},5264:(e,t,r)=>{var n=r(12185),o=r(28050);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},86065:(e,t,r)=>{var n=r(38233)(Object.getPrototypeOf,Object);e.exports=n},36969:(e,t,r)=>{var n=r(75799),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},83270:(e,t,r)=>{var n=r(18472),o=r(94759),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},48145:(e,t,r)=>{var n=r(81026),o=r(86065),i=r(83270),a=r(94759),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=o(e);return t}:a;e.exports=s},42711:(e,t,r)=>{var n=r(9438),o=r(56285),i=r(86974),a=r(75867),s=r(53173),l=r(33754),c=r(10839),u="[object Map]",d="[object Promise]",h="[object Set]",p="[object WeakMap]",f="[object DataView]",g=c(n),m=c(o),b=c(i),y=c(a),v=c(s),_=l;(n&&_(new n(new ArrayBuffer(1)))!=f||o&&_(new o)!=u||i&&_(i.resolve())!=d||a&&_(new a)!=h||s&&_(new s)!=p)&&(_=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case g:return f;case m:return u;case b:return d;case y:return h;case v:return p}return t}),e.exports=_},28050:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},5256:(e,t,r)=>{var n=r(62323),o=r(24254),i=r(37603),a=r(68327),s=r(25404),l=r(60299);e.exports=function(e,t,r){for(var c=-1,u=(t=n(t,e)).length,d=!1;++c<u;){var h=l(t[c]);if(!(d=null!=e&&r(e,h)))break;e=e[h]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(h,u)&&(i(e)||o(e))}},51856:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},45850:(e,t,r)=>{var n=r(73180);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},56988:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},71631:(e,t,r)=>{var n=r(73180),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},27699:(e,t,r)=>{var n=r(73180),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},76491:(e,t,r)=>{var n=r(73180);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},14503:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},9961:(e,t,r)=>{var n=r(86451),o=r(99915),i=r(90923),a=r(61310),s=r(90467);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},42631:(e,t,r)=>{var n=r(90938),o=r(86065),i=r(50469);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}},46609:(e,t,r)=>{var n=r(75799),o=r(24254),i=r(37603),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},68327:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},14494:(e,t,r)=>{var n=r(91114),o=r(52284),i=r(68327),a=r(3715);e.exports=function(e,t,r){if(!a(r))return!1;var s=typeof t;return!!("number"==s?o(r)&&i(t,r.length):"string"==s&&t in r)&&n(r[t],e)}},688:(e,t,r)=>{var n=r(37603),o=r(9924),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},63492:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},33014:(e,t,r)=>{var n,o=r(80591),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},50469:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},28924:e=>{e.exports=function(){this.__data__=[],this.size=0}},48122:(e,t,r)=>{var n=r(98639),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},31381:(e,t,r)=>{var n=r(98639);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},14489:(e,t,r)=>{var n=r(98639);e.exports=function(e){return n(this.__data__,e)>-1}},48721:(e,t,r)=>{var n=r(98639);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},40126:(e,t,r)=>{var n=r(22139),o=r(11649),i=r(56285);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},85464:(e,t,r)=>{var n=r(60113);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},45755:(e,t,r)=>{var n=r(60113);e.exports=function(e){return n(this,e).get(e)}},12343:(e,t,r)=>{var n=r(60113);e.exports=function(e){return n(this,e).has(e)}},55071:(e,t,r)=>{var n=r(60113);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},27722:(e,t,r)=>{var n=r(35446);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},73180:(e,t,r)=>{var n=r(5264)(Object,"create");e.exports=n},64756:(e,t,r)=>{var n=r(38233)(Object.keys,Object);e.exports=n},83163:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},4187:(e,t,r)=>{e=r.nmd(e);var n=r(57326),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},11916:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},38233:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},7539:(e,t,r)=>{var n=r(44375),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=r(l),n(e,this,c)}}},75019:(e,t,r)=>{var n=r(99216),o=r(82982);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},75619:(e,t,r)=>{var n=r(57326),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},47400:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},81239:(e,t,r)=>{var n=r(60280),o=r(84909)(n);e.exports=o},84909:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},73634:(e,t,r)=>{var n=r(11649);e.exports=function(){this.__data__=new n,this.size=0}},91636:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},19719:e=>{e.exports=function(e){return this.__data__.get(e)}},98971:e=>{e.exports=function(e){return this.__data__.has(e)}},89987:(e,t,r)=>{var n=r(11649),o=r(56285),i=r(22583);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},5749:e=>{e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}},16648:(e,t,r)=>{var n=r(27722),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)})),t}));e.exports=a},60299:(e,t,r)=>{var n=r(9924);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},10839:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},45362:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},51095:e=>{var t="\\ud800-\\udfff",r="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+i+"]",s="\\d+",l="["+r+"]",c="["+n+"]",u="[^"+t+i+s+r+n+o+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+o+"]",f="(?:"+c+"|"+u+")",g="(?:"+p+"|"+u+")",m="(?:['’](?:d|ll|m|re|s|t|ve))?",b="(?:['’](?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",v="[\\ufe0e\\ufe0f]?",_=v+y+("(?:\\u200d(?:"+["[^"+t+"]",d,h].join("|")+")"+v+y+")*"),w="(?:"+[l,d,h].join("|")+")"+_,E=RegExp([p+"?"+c+"+"+m+"(?="+[a,p,"$"].join("|")+")",g+"+"+b+"(?="+[a,p+f,"$"].join("|")+")",p+"?"+f+"+"+m,p+"+"+b,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,w].join("|"),"g");e.exports=function(e){return e.match(E)||[]}},47217:(e,t,r)=>{var n=r(71649);e.exports=function(e){return n(e,5)}},18620:e=>{e.exports=function(e){return function(){return e}}},24551:(e,t,r)=>{var n=r(3715),o=r(99518),i=r(41888),a=Math.max,s=Math.min;e.exports=function(e,t,r){var l,c,u,d,h,p,f=0,g=!1,m=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var r=l,n=c;return l=c=void 0,f=t,d=e.apply(n,r)}function v(e){var r=e-p;return void 0===p||r>=t||r<0||m&&e-f>=u}function _(){var e=o();if(v(e))return w(e);h=setTimeout(_,function(e){var r=t-(e-p);return m?s(r,u-(e-f)):r}(e))}function w(e){return h=void 0,b&&l?y(e):(l=c=void 0,d)}function E(){var e=o(),r=v(e);if(l=arguments,c=this,p=e,r){if(void 0===h)return function(e){return f=e,h=setTimeout(_,t),g?y(e):d}(p);if(m)return clearTimeout(h),h=setTimeout(_,t),y(p)}return void 0===h&&(h=setTimeout(_,t)),d}return t=i(t)||0,n(r)&&(g=!!r.leading,u=(m="maxWait"in r)?a(i(r.maxWait)||0,t):u,b="trailing"in r?!!r.trailing:b),E.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=c=h=void 0},E.flush=function(){return void 0===h?d:w(o())},E}},70794:(e,t,r)=>{var n=r(46177),o=r(96004),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,n).replace(a,"")}},91114:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},11616:(e,t,r)=>{var n=r(18142);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},25358:(e,t,r)=>{var n=r(99216);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},75322:(e,t,r)=>{var n=r(38868),o=r(5256);e.exports=function(e,t){return null!=e&&o(e,t,n)}},97286:e=>{e.exports=function(e){return e}},69849:(e,t,r)=>{var n=r(73989),o=r(52284),i=r(67373),a=r(20263),s=r(5570),l=Math.max;e.exports=function(e,t,r,c){e=o(e)?e:s(e),r=r&&!c?a(r):0;var u=e.length;return r<0&&(r=l(u+r,0)),i(e)?r<=u&&e.indexOf(t,r)>-1:!!u&&n(e,t,r)>-1}},24254:(e,t,r)=>{var n=r(59720),o=r(34140),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},37603:e=>{var t=Array.isArray;e.exports=t},52284:(e,t,r)=>{var n=r(51028),o=r(25404);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},53739:(e,t,r)=>{var n=r(52284),o=r(34140);e.exports=function(e){return o(e)&&n(e)}},23470:(e,t,r)=>{e=r.nmd(e);var n=r(75619),o=r(55597),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},51028:(e,t,r)=>{var n=r(33754),o=r(3715);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},25404:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},31204:(e,t,r)=>{var n=r(70422),o=r(45083),i=r(4187),a=i&&i.isMap,s=a?o(a):n;e.exports=s},76519:(e,t,r)=>{var n=r(91553);e.exports=function(e){return n(e)&&e!=+e}},91553:(e,t,r)=>{var n=r(33754),o=r(34140);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==n(e)}},3715:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},34140:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},19961:(e,t,r)=>{var n=r(33754),o=r(86065),i=r(34140),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==u}},13558:(e,t,r)=>{var n=r(12068),o=r(45083),i=r(4187),a=i&&i.isSet,s=a?o(a):n;e.exports=s},67373:(e,t,r)=>{var n=r(33754),o=r(37603),i=r(34140);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==n(e)}},9924:(e,t,r)=>{var n=r(33754),o=r(34140);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},24373:(e,t,r)=>{var n=r(42875),o=r(45083),i=r(4187),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},45e3:(e,t,r)=>{var n=r(74113),o=r(27914),i=r(52284);e.exports=function(e){return i(e)?n(e):o(e)}},83735:(e,t,r)=>{var n=r(74113),o=r(28141),i=r(52284);e.exports=function(e){return i(e)?n(e,!0):o(e)}},85272:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},59315:(e,t,r)=>{var n=r(78073)((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}));e.exports=n},35446:(e,t,r)=>{var n=r(22583);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},19474:(e,t,r)=>{var n=r(59584),o=r(12317)((function(e,t,r){n(e,t,r)}));e.exports=o},18564:e=>{e.exports=function(){}},99518:(e,t,r)=>{var n=r(75619);e.exports=function(){return n.Date.now()}},64633:(e,t,r)=>{var n=r(22654),o=r(71649),i=r(2937),a=r(62323),s=r(96945),l=r(77292),c=r(63126),u=r(65279),d=c((function(e,t){var r={};if(null==e)return r;var c=!1;t=n(t,(function(t){return t=a(t,e),c||(c=t.length>1),t})),s(e,u(e),r),c&&(r=o(r,7,l));for(var d=t.length;d--;)i(r,t[d]);return r}));e.exports=d},99351:(e,t,r)=>{var n=r(52286)();e.exports=n},19170:(e,t,r)=>{var n=r(42612);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},94759:e=>{e.exports=function(){return[]}},55597:e=>{e.exports=function(){return!1}},95134:(e,t,r)=>{var n=r(41888),o=1/0;e.exports=function(e){return e?(e=n(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},20263:(e,t,r)=>{var n=r(95134);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},41888:(e,t,r)=>{var n=r(17406),o=r(3715),i=r(9924),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||l.test(e)?c(e.slice(2),r?2:8):a.test(e)?NaN:+e}},43082:(e,t,r)=>{var n=r(96945),o=r(83735);e.exports=function(e){return n(e,o(e))}},96004:(e,t,r)=>{var n=r(12258);e.exports=function(e){return null==e?"":n(e)}},70406:(e,t,r)=>{var n=r(96004),o=0;e.exports=function(e){var t=++o;return n(e)+t}},5570:(e,t,r)=>{var n=r(73292),o=r(45e3);e.exports=function(e){return null==e?[]:n(e,o(e))}},43243:(e,t,r)=>{var n=r(25983),o=r(51856),i=r(96004),a=r(51095);e.exports=function(e,t,r){return e=i(e),void 0===(t=r?void 0:t)?o(e)?a(e):n(e):e.match(t)||[]}},17466:e=>{"use strict";function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(null,arguments)}var r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},n=0;n<10;n++)r["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(t({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))n.call(i,c)&&(s[c]=i[c]);if(r){a=r(i);for(var u=0;u<a.length;u++)o.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s}},74836:(e,t,r)=>{"use strict";var n=r(25059);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},39970:(e,t,r)=>{e.exports=r(74836)()},25059:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},43165:(e,t,r)=>{"use strict";var n=r(12010),o=r(17466),i=r(6224);function a(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function s(e){return Array.isArray(e)?e.sort():"object"==typeof e?s(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function l(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function c(e,t){var r=function(e){var t;switch(e.arrayFormat){case"index":return function(e,r,n){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return function(e,r,n){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};default:return function(e,t,r){void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t=o({arrayFormat:"none"},t)),n=Object.create(null);return"string"!=typeof e?n:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),o=t.shift(),a=t.length>0?t.join("="):void 0;a=void 0===a?null:i(a),r(i(o),a,n)})),Object.keys(n).sort().reduce((function(e,t){var r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=s(r):e[t]=r,e}),Object.create(null))):n}t.extract=l,t.parse=c,t.stringify=function(e,t){!1===(t=o({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=function(){});var r=function(e){switch(e.arrayFormat){case"index":return function(t,r,n){return null===r?[a(t,e),"[",n,"]"].join(""):[a(t,e),"[",a(n,e),"]=",a(r,e)].join("")};case"bracket":return function(t,r){return null===r?a(t,e):[a(t,e),"[]=",a(r,e)].join("")};default:return function(t,r){return null===r?a(t,e):[a(t,e),"=",a(r,e)].join("")}}}(t);return e?Object.keys(e).sort(t.sort).map((function(n){var o=e[n];if(void 0===o)return"";if(null===o)return a(n,t);if(Array.isArray(o)){var i=[];return o.slice().forEach((function(e){void 0!==e&&i.push(r(n,e,i.length))})),i.join("&")}return a(n,t)+"="+a(o,t)})).filter((function(e){return e.length>0})).join("&"):""},t.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:c(l(e),t)}}},50213:(e,t,r)=>{"use strict";var n=r(1986),o=r(46304);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},f={};function g(e,t,r,n,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function v(e,t,r,n){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0!==o.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,o,n)&&(r=null),n||null===o?function(e){return!!d.call(f,e)||!d.call(p,e)&&(h.test(e)?f[e]=!0:(p[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,y);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),E=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),O=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var N=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var D,U=Object.assign;function F(e){if(void 0===D)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var j=!1;function H(e,t){if(!e||j)return"";j=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=n.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{j=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?F(e):""}function B(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=H(e.type,!1);case 11:return e=H(e.type.render,!1);case 1:return e=H(e.type,!0);default:return""}}function z(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case C:return"Fragment";case E:return"Portal";case k:return"Profiler";case S:return"StrictMode";case A:return"Suspense";case x:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case I:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return z(e(t))}catch(e){}}return null}function q(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function K(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function W(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=V(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function $(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var r=t.checked;return U({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function Y(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=K(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function X(e,t){Q(e,t);var r=K(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,r):t.hasOwnProperty("defaultValue")&&ee(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ee(e,t,r){"number"===t&&$(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var te=Array.isArray;function re(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+K(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return U({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(i(92));if(te(r)){if(1<r.length)throw Error(i(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:K(r)}}function ie(e,t){var r=K(t.value),n=K(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function he(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function ge(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function me(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=ge(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(pe).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var be=U({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(be[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _e=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,Ce=null,Se=null;function ke(e){if(e=_o(e)){if("function"!=typeof Ee)throw Error(i(280));var t=e.stateNode;t&&(t=Eo(t),Ee(e.stateNode,e.type,t))}}function Ie(e){Ce?Se?Se.push(e):Se=[e]:Ce=e}function Oe(){if(Ce){var e=Ce,t=Se;if(Se=Ce=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function Te(e,t){return e(t)}function Ae(){}var xe=!1;function Pe(e,t,r){if(xe)return e(t,r);xe=!0;try{return Te(e,t,r)}finally{xe=!1,(null!==Ce||null!==Se)&&(Ae(),Oe())}}function Re(e,t){var r=e.stateNode;if(null===r)return null;var n=Eo(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(i(231,t,typeof r));return r}var Ne=!1;if(u)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(ue){Ne=!1}function Me(e,t,r,n,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(e){this.onError(e)}}var De=!1,Ue=null,Fe=!1,je=null,He={onError:function(e){De=!0,Ue=e}};function Be(e,t,r,n,o,i,a,s,l){De=!1,Ue=null,Me.apply(He,arguments)}function ze(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ke(e){if(ze(e)!==e)throw Error(i(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(i(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(n=o.return)){r=n;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return Ke(o),e;if(a===n)return Ke(o),t;a=a.sibling}throw Error(i(188))}if(r.return!==n.return)r=o,n=a;else{for(var s=!1,l=o.child;l;){if(l===r){s=!0,r=o,n=a;break}if(l===n){s=!0,n=o,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,n=o;break}if(l===n){s=!0,n=a,r=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(r.alternate!==n)throw Error(i(190))}if(3!==r.tag)throw Error(i(188));return r.stateNode.current===r?e:t}(e))?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var We=o.unstable_scheduleCallback,$e=o.unstable_cancelCallback,Je=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Qe=o.unstable_now,Xe=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,rt=o.unstable_LowPriority,nt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&r;if(0!==a){var s=a&~o;0!==s?n=dt(s):0!==(i&=a)&&(n=dt(i))}else 0!==(a=r&~o)?n=dt(a):0!==i&&(n=dt(i));if(0===n)return 0;if(0!==t&&t!==n&&0==(t&o)&&((o=n&-n)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)o=1<<(r=31-at(t)),n|=e[r],t&=~o;return n}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function mt(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function bt(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=r}function yt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-at(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var vt=0;function _t(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,Et,Ct,St,kt,It=!1,Ot=[],Tt=null,At=null,xt=null,Pt=new Map,Rt=new Map,Nt=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":xt=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Dt(e,t,r,n,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=_o(t))&&Et(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Ut(e){var t=vo(e.target);if(null!==t){var r=ze(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=qe(r)))return e.blockedOn=t,void kt(e.priority,(function(){Ct(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=_o(r))&&Et(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);_e=n,r.target.dispatchEvent(n),_e=null,t.shift()}return!0}function jt(e,t,r){Ft(e)&&r.delete(t)}function Ht(){It=!1,null!==Tt&&Ft(Tt)&&(Tt=null),null!==At&&Ft(At)&&(At=null),null!==xt&&Ft(xt)&&(xt=null),Pt.forEach(jt),Rt.forEach(jt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,It||(It=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ht)))}function zt(e){function t(t){return Bt(t,e)}if(0<Ot.length){Bt(Ot[0],e);for(var r=1;r<Ot.length;r++){var n=Ot[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==Tt&&Bt(Tt,e),null!==At&&Bt(At,e),null!==xt&&Bt(xt,e),Pt.forEach(t),Rt.forEach(t),r=0;r<Nt.length;r++)(n=Nt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Nt.length&&null===(r=Nt[0]).blockedOn;)Ut(r),null===r.blockedOn&&Nt.shift()}var qt=_.ReactCurrentBatchConfig,Kt=!0;function Vt(e,t,r,n){var o=vt,i=qt.transition;qt.transition=null;try{vt=1,Wt(e,t,r,n)}finally{vt=o,qt.transition=i}}function Gt(e,t,r,n){var o=vt,i=qt.transition;qt.transition=null;try{vt=4,Wt(e,t,r,n)}finally{vt=o,qt.transition=i}}function Wt(e,t,r,n){if(Kt){var o=Jt(e,t,r,n);if(null===o)Kn(e,t,n,$t,r),Mt(e,n);else if(function(e,t,r,n,o){switch(t){case"focusin":return Tt=Dt(Tt,e,t,r,n,o),!0;case"dragenter":return At=Dt(At,e,t,r,n,o),!0;case"mouseover":return xt=Dt(xt,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return Pt.set(i,Dt(Pt.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,Rt.set(i,Dt(Rt.get(i)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n))n.stopPropagation();else if(Mt(e,n),4&t&&-1<Lt.indexOf(e)){for(;null!==o;){var i=_o(o);if(null!==i&&wt(i),null===(i=Jt(e,t,r,n))&&Kn(e,t,n,$t,r),i===o)break;o=i}null!==o&&n.stopPropagation()}else Kn(e,t,n,null,r)}}var $t=null;function Jt(e,t,r,n){if($t=null,null!==(e=vo(e=we(n))))if(null===(t=ze(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=qe(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $t=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Ze:return 1;case et:return 4;case tt:case rt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Qt=null,Xt=null,Zt=null;function er(){if(Zt)return Zt;var e,t,r=Xt,n=r.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<n&&r[e]===o[e];e++);var a=n-e;for(t=1;t<=a&&r[n-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rr(){return!0}function nr(){return!1}function or(e){function t(t,r,n,o,i){for(var a in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?rr:nr,this.isPropagationStopped=nr,this}return U(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var ir,ar,sr,lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cr=or(lr),ur=U({},lr,{view:0,detail:0}),dr=or(ur),hr=U({},ur,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sr&&(sr&&"mousemove"===e.type?(ir=e.screenX-sr.screenX,ar=e.screenY-sr.screenY):ar=ir=0,sr=e),ir)},movementY:function(e){return"movementY"in e?e.movementY:ar}}),pr=or(hr),fr=or(U({},hr,{dataTransfer:0})),gr=or(U({},ur,{relatedTarget:0})),mr=or(U({},lr,{animationName:0,elapsedTime:0,pseudoElement:0})),br=U({},lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yr=or(br),vr=or(U({},lr,{data:0})),_r={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Er={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Er[e])&&!!t[e]}function Sr(){return Cr}var kr=U({},ur,{key:function(e){if(e.key){var t=_r[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sr,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ir=or(kr),Or=or(U({},hr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tr=or(U({},ur,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sr})),Ar=or(U({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0})),xr=U({},hr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pr=or(xr),Rr=[9,13,27,32],Nr=u&&"CompositionEvent"in window,Lr=null;u&&"documentMode"in document&&(Lr=document.documentMode);var Mr=u&&"TextEvent"in window&&!Lr,Dr=u&&(!Nr||Lr&&8<Lr&&11>=Lr),Ur=String.fromCharCode(32),Fr=!1;function jr(e,t){switch(e){case"keyup":return-1!==Rr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Br=!1;var zr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zr[e.type]:"textarea"===t}function Kr(e,t,r,n){Ie(n),0<(t=Gn(t,"onChange")).length&&(r=new cr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Vr=null,Gr=null;function Wr(e){Fn(e,0)}function $r(e){if(W(wo(e)))return e}function Jr(e,t){if("change"===e)return t}var Yr=!1;if(u){var Qr;if(u){var Xr="oninput"in document;if(!Xr){var Zr=document.createElement("div");Zr.setAttribute("oninput","return;"),Xr="function"==typeof Zr.oninput}Qr=Xr}else Qr=!1;Yr=Qr&&(!document.documentMode||9<document.documentMode)}function en(){Vr&&(Vr.detachEvent("onpropertychange",tn),Gr=Vr=null)}function tn(e){if("value"===e.propertyName&&$r(Gr)){var t=[];Kr(t,Gr,e,we(e)),Pe(Wr,t)}}function rn(e,t,r){"focusin"===e?(en(),Gr=r,(Vr=t).attachEvent("onpropertychange",tn)):"focusout"===e&&en()}function nn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $r(Gr)}function on(e,t){if("click"===e)return $r(t)}function an(e,t){if("input"===e||"change"===e)return $r(t)}var sn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ln(e,t){if(sn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!d.call(t,o)||!sn(e[o],t[o]))return!1}return!0}function cn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function un(e,t){var r,n=cn(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cn(n)}}function dn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hn(){for(var e=window,t=$();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=$((e=t.contentWindow).document)}return t}function pn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fn(e){var t=hn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&dn(r.ownerDocument.documentElement,r)){if(null!==n&&pn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=void 0===n.end?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=un(r,i);var a=un(r,n);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gn=u&&"documentMode"in document&&11>=document.documentMode,mn=null,bn=null,yn=null,vn=!1;function _n(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;vn||null==mn||mn!==$(n)||("selectionStart"in(n=mn)&&pn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},yn&&ln(yn,n)||(yn=n,0<(n=Gn(bn,"onSelect")).length&&(t=new cr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=mn)))}function wn(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var En={animationend:wn("Animation","AnimationEnd"),animationiteration:wn("Animation","AnimationIteration"),animationstart:wn("Animation","AnimationStart"),transitionend:wn("Transition","TransitionEnd")},Cn={},Sn={};function kn(e){if(Cn[e])return Cn[e];if(!En[e])return e;var t,r=En[e];for(t in r)if(r.hasOwnProperty(t)&&t in Sn)return Cn[e]=r[t];return e}u&&(Sn=document.createElement("div").style,"AnimationEvent"in window||(delete En.animationend.animation,delete En.animationiteration.animation,delete En.animationstart.animation),"TransitionEvent"in window||delete En.transitionend.transition);var In=kn("animationend"),On=kn("animationiteration"),Tn=kn("animationstart"),An=kn("transitionend"),xn=new Map,Pn="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rn(e,t){xn.set(e,t),l(t,[e])}for(var Nn=0;Nn<Pn.length;Nn++){var Ln=Pn[Nn];Rn(Ln.toLowerCase(),"on"+(Ln[0].toUpperCase()+Ln.slice(1)))}Rn(In,"onAnimationEnd"),Rn(On,"onAnimationIteration"),Rn(Tn,"onAnimationStart"),Rn("dblclick","onDoubleClick"),Rn("focusin","onFocus"),Rn("focusout","onBlur"),Rn(An,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dn=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mn));function Un(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,o,a,s,l,c){if(Be.apply(this,arguments),De){if(!De)throw Error(i(198));var u=Ue;De=!1,Ue=null,Fe||(Fe=!0,je=u)}}(n,t,void 0,e),e.currentTarget=null}function Fn(e,t){t=0!=(4&t);for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Un(o,s,c),i=l}else for(a=0;a<n.length;a++){if(l=(s=n[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Un(o,s,c),i=l}}}if(Fe)throw e=je,Fe=!1,je=null,e}function jn(e,t){var r=t[mo];void 0===r&&(r=t[mo]=new Set);var n=e+"__bubble";r.has(n)||(qn(t,e,2,!1),r.add(n))}function Hn(e,t,r){var n=0;t&&(n|=4),qn(r,e,n,t)}var Bn="_reactListening"+Math.random().toString(36).slice(2);function zn(e){if(!e[Bn]){e[Bn]=!0,a.forEach((function(t){"selectionchange"!==t&&(Dn.has(t)||Hn(t,!1,e),Hn(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Bn]||(t[Bn]=!0,Hn("selectionchange",!1,t))}}function qn(e,t,r,n){switch(Yt(t)){case 1:var o=Vt;break;case 4:o=Gt;break;default:o=Wt}r=o.bind(null,t,r,e),o=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),n?void 0!==o?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):void 0!==o?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Kn(e,t,r,n,o){var i=n;if(0==(1&t)&&0==(2&t)&&null!==n)e:for(;;){if(null===n)return;var a=n.tag;if(3===a||4===a){var s=n.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=n.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=vo(s)))return;if(5===(l=a.tag)||6===l){n=i=a;continue e}s=s.parentNode}}n=n.return}Pe((function(){var n=i,o=we(r),a=[];e:{var s=xn.get(e);if(void 0!==s){var l=cr,c=e;switch(e){case"keypress":if(0===tr(r))break e;case"keydown":case"keyup":l=Ir;break;case"focusin":c="focus",l=gr;break;case"focusout":c="blur",l=gr;break;case"beforeblur":case"afterblur":l=gr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=fr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tr;break;case In:case On:case Tn:l=mr;break;case An:l=Ar;break;case"scroll":l=dr;break;case"wheel":l=Pr;break;case"copy":case"cut":case"paste":l=yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Or}var u=0!=(4&t),d=!u&&"scroll"===e,h=u?null!==s?s+"Capture":null:s;u=[];for(var p,f=n;null!==f;){var g=(p=f).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==h&&(null!=(g=Re(f,h))&&u.push(Vn(f,g,p)))),d)break;f=f.return}0<u.length&&(s=new l(s,c,null,r,o),a.push({event:s,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===_e||!(c=r.relatedTarget||r.fromElement)||!vo(c)&&!c[go])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(c=(c=r.relatedTarget||r.toElement)?vo(c):null)&&(c!==(d=ze(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=n),l!==c)){if(u=pr,g="onMouseLeave",h="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=Or,g="onPointerLeave",h="onPointerEnter",f="pointer"),d=null==l?s:wo(l),p=null==c?s:wo(c),(s=new u(g,f+"leave",l,r,o)).target=d,s.relatedTarget=p,g=null,vo(o)===n&&((u=new u(h,f+"enter",c,r,o)).target=p,u.relatedTarget=d,g=u),d=g,l&&c)e:{for(h=c,f=0,p=u=l;p;p=Wn(p))f++;for(p=0,g=h;g;g=Wn(g))p++;for(;0<f-p;)u=Wn(u),f--;for(;0<p-f;)h=Wn(h),p--;for(;f--;){if(u===h||null!==h&&u===h.alternate)break e;u=Wn(u),h=Wn(h)}u=null}else u=null;null!==l&&$n(a,s,l,u,!1),null!==c&&null!==d&&$n(a,d,c,u,!0)}if("select"===(l=(s=n?wo(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Jr;else if(qr(s))if(Yr)m=an;else{m=nn;var b=rn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=on);switch(m&&(m=m(e,n))?Kr(a,m,r,o):(b&&b(e,s,n),"focusout"===e&&(b=s._wrapperState)&&b.controlled&&"number"===s.type&&ee(s,"number",s.value)),b=n?wo(n):window,e){case"focusin":(qr(b)||"true"===b.contentEditable)&&(mn=b,bn=n,yn=null);break;case"focusout":yn=bn=mn=null;break;case"mousedown":vn=!0;break;case"contextmenu":case"mouseup":case"dragend":vn=!1,_n(a,r,o);break;case"selectionchange":if(gn)break;case"keydown":case"keyup":_n(a,r,o)}var y;if(Nr)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Br?jr(e,r)&&(v="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(v="onCompositionStart");v&&(Dr&&"ko"!==r.locale&&(Br||"onCompositionStart"!==v?"onCompositionEnd"===v&&Br&&(y=er()):(Xt="value"in(Qt=o)?Qt.value:Qt.textContent,Br=!0)),0<(b=Gn(n,v)).length&&(v=new vr(v,e,null,r,o),a.push({event:v,listeners:b}),y?v.data=y:null!==(y=Hr(r))&&(v.data=y))),(y=Mr?function(e,t){switch(e){case"compositionend":return Hr(t);case"keypress":return 32!==t.which?null:(Fr=!0,Ur);case"textInput":return(e=t.data)===Ur&&Fr?null:e;default:return null}}(e,r):function(e,t){if(Br)return"compositionend"===e||!Nr&&jr(e,t)?(e=er(),Zt=Xt=Qt=null,Br=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dr&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=Gn(n,"onBeforeInput")).length&&(o=new vr("onBeforeInput","beforeinput",null,r,o),a.push({event:o,listeners:n}),o.data=y))}Fn(a,t)}))}function Vn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Gn(e,t){for(var r=t+"Capture",n=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Re(e,r))&&n.unshift(Vn(e,i,o)),null!=(i=Re(e,t))&&n.push(Vn(e,i,o))),e=e.return}return n}function Wn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function $n(e,t,r,n,o){for(var i=t._reactName,a=[];null!==r&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Re(r,i))&&a.unshift(Vn(r,l,s)):o||null!=(l=Re(r,i))&&a.push(Vn(r,l,s))),r=r.return}0!==a.length&&e.push({event:t,listeners:a})}var Jn=/\r\n?/g,Yn=/\u0000|\uFFFD/g;function Qn(e){return("string"==typeof e?e:""+e).replace(Jn,"\n").replace(Yn,"")}function Xn(e,t,r){if(t=Qn(t),Qn(e)!==t&&r)throw Error(i(425))}function Zn(){}var eo=null,to=null;function ro(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var no="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(so)}:no;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&8===o.nodeType)if("/$"===(r=o.data)){if(0===n)return e.removeChild(o),void zt(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=o}while(r);zt(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var ho=Math.random().toString(36).slice(2),po="__reactFiber$"+ho,fo="__reactProps$"+ho,go="__reactContainer$"+ho,mo="__reactEvents$"+ho,bo="__reactListeners$"+ho,yo="__reactHandles$"+ho;function vo(e){var t=e[po];if(t)return t;for(var r=e.parentNode;r;){if(t=r[go]||r[po]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=uo(e);null!==e;){if(r=e[po])return r;e=uo(e)}return t}r=(e=r).parentNode}return null}function _o(e){return!(e=e[po]||e[go])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Eo(e){return e[fo]||null}var Co=[],So=-1;function ko(e){return{current:e}}function Io(e){0>So||(e.current=Co[So],Co[So]=null,So--)}function Oo(e,t){So++,Co[So]=e.current,e.current=t}var To={},Ao=ko(To),xo=ko(!1),Po=To;function Ro(e,t){var r=e.type.contextTypes;if(!r)return To;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in r)i[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function No(e){return null!=(e=e.childContextTypes)}function Lo(){Io(xo),Io(Ao)}function Mo(e,t,r){if(Ao.current!==To)throw Error(i(168));Oo(Ao,t),Oo(xo,r)}function Do(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in t))throw Error(i(108,q(e)||"Unknown",o));return U({},r,n)}function Uo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,Po=Ao.current,Oo(Ao,e),Oo(xo,xo.current),!0}function Fo(e,t,r){var n=e.stateNode;if(!n)throw Error(i(169));r?(e=Do(e,t,Po),n.__reactInternalMemoizedMergedChildContext=e,Io(xo),Io(Ao),Oo(Ao,e)):Io(xo),Oo(xo,r)}var jo=null,Ho=!1,Bo=!1;function zo(e){null===jo?jo=[e]:jo.push(e)}function qo(){if(!Bo&&null!==jo){Bo=!0;var e=0,t=vt;try{var r=jo;for(vt=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}jo=null,Ho=!1}catch(t){throw null!==jo&&(jo=jo.slice(e+1)),We(Ze,qo),t}finally{vt=t,Bo=!1}}return null}var Ko=[],Vo=0,Go=null,Wo=0,$o=[],Jo=0,Yo=null,Qo=1,Xo="";function Zo(e,t){Ko[Vo++]=Wo,Ko[Vo++]=Go,Go=e,Wo=t}function ei(e,t,r){$o[Jo++]=Qo,$o[Jo++]=Xo,$o[Jo++]=Yo,Yo=e;var n=Qo;e=Xo;var o=32-at(n)-1;n&=~(1<<o),r+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,Qo=1<<32-at(t)+o|r<<o|n,Xo=i+e}else Qo=1<<i|r<<o|n,Xo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ri(e){for(;e===Go;)Go=Ko[--Vo],Ko[Vo]=null,Wo=Ko[--Vo],Ko[Vo]=null;for(;e===Yo;)Yo=$o[--Jo],$o[Jo]=null,Xo=$o[--Jo],$o[Jo]=null,Qo=$o[--Jo],$o[Jo]=null}var ni=null,oi=null,ii=!1,ai=null;function si(e,t){var r=Pc(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function li(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ni=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ni=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Yo?{id:Qo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=Pc(18,null,null,0)).stateNode=t,r.return=e,e.child=r,ni=e,oi=null,!0);default:return!1}}function ci(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var r=t;if(!li(e,t)){if(ci(e))throw Error(i(418));t=co(r.nextSibling);var n=ni;t&&li(e,t)?si(n,r):(e.flags=-4097&e.flags|2,ii=!1,ni=e)}}else{if(ci(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ni=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ni=e}function hi(e){if(e!==ni)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ro(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw pi(),Error(i(418));for(;t;)si(e,t),t=co(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oi=null}}else oi=ni?co(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=co(e.nextSibling)}function fi(){oi=ni=null,ii=!1}function gi(e){null===ai?ai=[e]:ai.push(e)}var mi=_.ReactCurrentBatchConfig;function bi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(i(309));var n=r.stateNode}if(!n)throw Error(i(147,e));var o=n,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!r._owner)throw Error(i(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vi(e){return(0,e._init)(e._payload)}function _i(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Nc(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,r,n){return null===t||6!==t.tag?((t=Uc(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function c(e,t,r,n){var i=r.type;return i===C?d(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===R&&vi(i)===t.type)?((n=o(t,r.props)).ref=bi(e,t,r),n.return=e,n):((n=Lc(r.type,r.key,r.props,null,e.mode,n)).ref=bi(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Fc(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function d(e,t,r,n,i){return null===t||7!==t.tag?((t=Mc(r,e.mode,n,i)).return=e,t):((t=o(t,r)).return=e,t)}function h(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Uc(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(r=Lc(t.type,t.key,t.props,null,e.mode,r)).ref=bi(e,null,t),r.return=e,r;case E:return(t=Fc(t,e.mode,r)).return=e,t;case R:return h(e,(0,t._init)(t._payload),r)}if(te(t)||M(t))return(t=Mc(t,e.mode,r,null)).return=e,t;yi(e,t)}return null}function p(e,t,r,n){var o=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==o?null:l(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return r.key===o?c(e,t,r,n):null;case E:return r.key===o?u(e,t,r,n):null;case R:return p(e,t,(o=r._init)(r._payload),n)}if(te(r)||M(r))return null!==o?null:d(e,t,r,n,null);yi(e,r)}return null}function f(e,t,r,n,o){if("string"==typeof n&&""!==n||"number"==typeof n)return l(t,e=e.get(r)||null,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return c(t,e=e.get(null===n.key?r:n.key)||null,n,o);case E:return u(t,e=e.get(null===n.key?r:n.key)||null,n,o);case R:return f(e,t,r,(0,n._init)(n._payload),o)}if(te(n)||M(n))return d(t,e=e.get(r)||null,n,o,null);yi(t,n)}return null}function g(o,i,s,l){for(var c=null,u=null,d=i,g=i=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var b=p(o,d,s[g],l);if(null===b){null===d&&(d=m);break}e&&d&&null===b.alternate&&t(o,d),i=a(b,i,g),null===u?c=b:u.sibling=b,u=b,d=m}if(g===s.length)return r(o,d),ii&&Zo(o,g),c;if(null===d){for(;g<s.length;g++)null!==(d=h(o,s[g],l))&&(i=a(d,i,g),null===u?c=d:u.sibling=d,u=d);return ii&&Zo(o,g),c}for(d=n(o,d);g<s.length;g++)null!==(m=f(d,o,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),i=a(m,i,g),null===u?c=m:u.sibling=m,u=m);return e&&d.forEach((function(e){return t(o,e)})),ii&&Zo(o,g),c}function m(o,s,l,c){var u=M(l);if("function"!=typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var d=u=null,g=s,m=s=0,b=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(b=g,g=null):b=g.sibling;var v=p(o,g,y.value,c);if(null===v){null===g&&(g=b);break}e&&g&&null===v.alternate&&t(o,g),s=a(v,s,m),null===d?u=v:d.sibling=v,d=v,g=b}if(y.done)return r(o,g),ii&&Zo(o,m),u;if(null===g){for(;!y.done;m++,y=l.next())null!==(y=h(o,y.value,c))&&(s=a(y,s,m),null===d?u=y:d.sibling=y,d=y);return ii&&Zo(o,m),u}for(g=n(o,g);!y.done;m++,y=l.next())null!==(y=f(g,o,m,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),s=a(y,s,m),null===d?u=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(o,e)})),ii&&Zo(o,m),u}return function e(n,i,a,l){if("object"==typeof a&&null!==a&&a.type===C&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var c=a.key,u=i;null!==u;){if(u.key===c){if((c=a.type)===C){if(7===u.tag){r(n,u.sibling),(i=o(u,a.props.children)).return=n,n=i;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===R&&vi(c)===u.type){r(n,u.sibling),(i=o(u,a.props)).ref=bi(n,u,a),i.return=n,n=i;break e}r(n,u);break}t(n,u),u=u.sibling}a.type===C?((i=Mc(a.props.children,n.mode,l,a.key)).return=n,n=i):((l=Lc(a.type,a.key,a.props,null,n.mode,l)).ref=bi(n,i,a),l.return=n,n=l)}return s(n);case E:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){r(n,i.sibling),(i=o(i,a.children||[])).return=n,n=i;break e}r(n,i);break}t(n,i),i=i.sibling}(i=Fc(a,n.mode,l)).return=n,n=i}return s(n);case R:return e(n,i,(u=a._init)(a._payload),l)}if(te(a))return g(n,i,a,l);if(M(a))return m(n,i,a,l);yi(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(r(n,i.sibling),(i=o(i,a)).return=n,n=i):(r(n,i),(i=Uc(a,n.mode,l)).return=n,n=i),s(n)):r(n,i)}}var wi=_i(!0),Ei=_i(!1),Ci=ko(null),Si=null,ki=null,Ii=null;function Oi(){Ii=ki=Si=null}function Ti(e){var t=Ci.current;Io(Ci),e._currentValue=t}function Ai(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function xi(e,t){Si=e,Ii=ki=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(vs=!0),e.firstContext=null)}function Pi(e){var t=e._currentValue;if(Ii!==e)if(e={context:e,memoizedValue:t,next:null},null===ki){if(null===Si)throw Error(i(308));ki=e,Si.dependencies={lanes:0,firstContext:e}}else ki=ki.next=e;return t}var Ri=null;function Ni(e){null===Ri?Ri=[e]:Ri.push(e)}function Li(e,t,r,n){var o=t.interleaved;return null===o?(r.next=r,Ni(t)):(r.next=o.next,o.next=r),t.interleaved=r,Mi(e,n)}function Mi(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var Di=!1;function Ui(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ji(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Hi(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,0!=(2&Tl)){var o=n.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),n.pending=t,Mi(e,r)}return null===(o=n.interleaved)?(t.next=t,Ni(n)):(t.next=o.next,o.next=t),n.interleaved=t,Mi(e,r)}function Bi(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&r))){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}function zi(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,i=null;if(null!==(r=r.firstBaseUpdate)){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===i?o=i=a:i=i.next=a,r=r.next}while(null!==r);null===i?o=i=t:i=i.next=t}else o=i=t;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function qi(e,t,r,n){var o=e.updateQueue;Di=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var h=s.lane,p=s.eventTime;if((n&h)===h){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,g=s;switch(h=t,p=r,g.tag){case 1:if("function"==typeof(f=g.payload)){d=f.call(p,d,h);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(h="function"==typeof(f=g.payload)?f.call(p,d,h):f))break e;d=U({},d,h);break e;case 2:Di=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=o.effects)?o.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,a|=h;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(h=s).next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Dl|=a,e.lanes=a,e.memoizedState=d}}function Ki(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!=typeof o)throw Error(i(191,o));o.call(n)}}}var Vi={},Gi=ko(Vi),Wi=ko(Vi),$i=ko(Vi);function Ji(e){if(e===Vi)throw Error(i(174));return e}function Yi(e,t){switch(Oo($i,t),Oo(Wi,e),Oo(Gi,Vi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Io(Gi),Oo(Gi,t)}function Qi(){Io(Gi),Io(Wi),Io($i)}function Xi(e){Ji($i.current);var t=Ji(Gi.current),r=le(t,e.type);t!==r&&(Oo(Wi,e),Oo(Gi,r))}function Zi(e){Wi.current===e&&(Io(Gi),Io(Wi))}var ea=ko(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ra=[];function na(){for(var e=0;e<ra.length;e++)ra[e]._workInProgressVersionPrimary=null;ra.length=0}var oa=_.ReactCurrentDispatcher,ia=_.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,ha=0,pa=0;function fa(){throw Error(i(321))}function ga(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!sn(e[r],t[r]))return!1;return!0}function ma(e,t,r,n,o,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Za:es,e=r(n,o),da){a=0;do{if(da=!1,ha=0,25<=a)throw Error(i(301));a+=1,ca=la=null,t.updateQueue=null,oa.current=ts,e=r(n,o)}while(da)}if(oa.current=Xa,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(i(300));return e}function ba(){var e=0!==ha;return ha=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function va(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(i(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function _a(e,t){return"function"==typeof t?t(e):t}function wa(e){var t=va(),r=t.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=e;var n=la,o=n.baseQueue,a=r.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}n.baseQueue=o=a,r.pending=null}if(null!==o){a=o.next,n=n.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=h,s=n):c=c.next=h,sa.lanes|=d,Dl|=d}u=u.next}while(null!==u&&u!==a);null===c?s=n:c.next=l,sn(n,t.memoizedState)||(vs=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=c,r.lastRenderedState=n}if(null!==(e=r.interleaved)){o=e;do{a=o.lane,sa.lanes|=a,Dl|=a,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ea(e){var t=va(),r=t.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,a=t.memoizedState;if(null!==o){r.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sn(a,t.memoizedState)||(vs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function Ca(){}function Sa(e,t){var r=sa,n=va(),o=t(),a=!sn(n.memoizedState,o);if(a&&(n.memoizedState=o,vs=!0),n=n.queue,Da(Oa.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(r.flags|=2048,Pa(9,Ia.bind(null,r,n,o,t),void 0,null),null===Al)throw Error(i(349));0!=(30&aa)||ka(r,t,o)}return o}function ka(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function Ia(e,t,r,n){t.value=r,t.getSnapshot=n,Ta(t)&&Aa(e)}function Oa(e,t,r){return r((function(){Ta(t)&&Aa(e)}))}function Ta(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!sn(e,r)}catch(e){return!0}}function Aa(e){var t=Mi(e,1);null!==t&&rc(t,e,1,-1)}function xa(e){var t=ya();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:e},t.queue=e,e=e.dispatch=$a.bind(null,sa,e),[t.memoizedState,e]}function Pa(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Ra(){return va().memoizedState}function Na(e,t,r,n){var o=ya();sa.flags|=e,o.memoizedState=Pa(1|t,r,void 0,void 0===n?null:n)}function La(e,t,r,n){var o=va();n=void 0===n?null:n;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==n&&ga(n,a.deps))return void(o.memoizedState=Pa(t,r,i,n))}sa.flags|=e,o.memoizedState=Pa(1|t,r,i,n)}function Ma(e,t){return Na(8390656,8,e,t)}function Da(e,t){return La(2048,8,e,t)}function Ua(e,t){return La(4,2,e,t)}function Fa(e,t){return La(4,4,e,t)}function ja(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ha(e,t,r){return r=null!=r?r.concat([e]):null,La(4,4,ja.bind(null,t,e),r)}function Ba(){}function za(e,t){var r=va();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ga(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function qa(e,t){var r=va();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ga(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Ka(e,t,r){return 0==(21&aa)?(e.baseState&&(e.baseState=!1,vs=!0),e.memoizedState=r):(sn(r,t)||(r=gt(),sa.lanes|=r,Dl|=r,e.baseState=!0),t)}function Va(e,t){var r=vt;vt=0!==r&&4>r?r:4,e(!0);var n=ia.transition;ia.transition={};try{e(!1),t()}finally{vt=r,ia.transition=n}}function Ga(){return va().memoizedState}function Wa(e,t,r){var n=tc(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Ja(e))Ya(t,r);else if(null!==(r=Li(e,t,r,n))){rc(r,e,n,ec()),Qa(r,t,n)}}function $a(e,t,r){var n=tc(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ja(e))Ya(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,sn(s,a)){var l=t.interleaved;return null===l?(o.next=o,Ni(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(r=Li(e,t,o,n))&&(rc(r,e,n,o=ec()),Qa(r,t,n))}}function Ja(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ya(e,t){da=ua=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Qa(e,t,r){if(0!=(4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}var Xa={readContext:Pi,useCallback:fa,useContext:fa,useEffect:fa,useImperativeHandle:fa,useInsertionEffect:fa,useLayoutEffect:fa,useMemo:fa,useReducer:fa,useRef:fa,useState:fa,useDebugValue:fa,useDeferredValue:fa,useTransition:fa,useMutableSource:fa,useSyncExternalStore:fa,useId:fa,unstable_isNewReconciler:!1},Za={readContext:Pi,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Pi,useEffect:Ma,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Na(4194308,4,ja.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Na(4194308,4,e,t)},useInsertionEffect:function(e,t){return Na(4,2,e,t)},useMemo:function(e,t){var r=ya();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ya();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Wa.bind(null,sa,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:xa,useDebugValue:Ba,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=xa(!1),t=e[0];return e=Va.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=sa,o=ya();if(ii){if(void 0===r)throw Error(i(407));r=r()}else{if(r=t(),null===Al)throw Error(i(349));0!=(30&aa)||ka(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,Ma(Oa.bind(null,n,a,e),[e]),n.flags|=2048,Pa(9,Ia.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=ya(),t=Al.identifierPrefix;if(ii){var r=Xo;t=":"+t+"R"+(r=(Qo&~(1<<32-at(Qo)-1)).toString(32)+r),0<(r=ha++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Pi,useCallback:za,useContext:Pi,useEffect:Da,useImperativeHandle:Ha,useInsertionEffect:Ua,useLayoutEffect:Fa,useMemo:qa,useReducer:wa,useRef:Ra,useState:function(){return wa(_a)},useDebugValue:Ba,useDeferredValue:function(e){return Ka(va(),la.memoizedState,e)},useTransition:function(){return[wa(_a)[0],va().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Sa,useId:Ga,unstable_isNewReconciler:!1},ts={readContext:Pi,useCallback:za,useContext:Pi,useEffect:Da,useImperativeHandle:Ha,useInsertionEffect:Ua,useLayoutEffect:Fa,useMemo:qa,useReducer:Ea,useRef:Ra,useState:function(){return Ea(_a)},useDebugValue:Ba,useDeferredValue:function(e){var t=va();return null===la?t.memoizedState=e:Ka(t,la.memoizedState,e)},useTransition:function(){return[Ea(_a)[0],va().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Sa,useId:Ga,unstable_isNewReconciler:!1};function rs(e,t){if(e&&e.defaultProps){for(var r in t=U({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}function ns(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:U({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=ec(),o=tc(e),i=ji(n,o);i.payload=t,null!=r&&(i.callback=r),null!==(t=Hi(e,i,o))&&(rc(t,e,o,n),Bi(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=ec(),o=tc(e),i=ji(n,o);i.tag=1,i.payload=t,null!=r&&(i.callback=r),null!==(t=Hi(e,i,o))&&(rc(t,e,o,n),Bi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ec(),n=tc(e),o=ji(r,n);o.tag=2,null!=t&&(o.callback=t),null!==(t=Hi(e,o,n))&&(rc(t,e,n,r),Bi(t,e,n))}};function is(e,t,r,n,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!ln(r,n)||!ln(o,i))}function as(e,t,r){var n=!1,o=To,i=t.contextType;return"object"==typeof i&&null!==i?i=Pi(i):(o=No(t)?Po:Ao.current,i=(n=null!=(n=t.contextTypes))?Ro(e,o):To),t=new t(r,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},Ui(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Pi(i):(i=No(t)?Po:Ao.current,o.context=Ro(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ns(e,t,i,r),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),qi(e,r,o,n),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var r="",n=t;do{r+=B(n),n=n.return}while(n);var o=r}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function us(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var hs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,r){(r=ji(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Kl||(Kl=!0,Vl=n),ds(0,t)},r}function fs(e,t,r){(r=ji(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(r.callback=function(){ds(0,t),"function"!=typeof n&&(null===Gl?Gl=new Set([this]):Gl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function gs(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new hs;var o=new Set;n.set(t,o)}else void 0===(o=n.get(t))&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=kc.bind(null,e,t,r),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bs(e,t,r,n,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=ji(-1,1)).tag=2,Hi(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var ys=_.ReactCurrentOwner,vs=!1;function _s(e,t,r,n){t.child=null===e?Ei(t,null,r,n):wi(t,e.child,r,n)}function ws(e,t,r,n,o){r=r.render;var i=t.ref;return xi(t,o),n=ma(e,t,r,n,i,o),r=ba(),null===e||vs?(ii&&r&&ti(t),t.flags|=1,_s(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ks(e,t,o))}function Es(e,t,r,n,o){if(null===e){var i=r.type;return"function"!=typeof i||Rc(i)||void 0!==i.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Lc(r.type,null,n,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Cs(e,t,i,n,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((r=null!==(r=r.compare)?r:ln)(a,n)&&e.ref===t.ref)return Ks(e,t,o)}return t.flags|=1,(e=Nc(i,n)).ref=t.ref,e.return=t,t.child=e}function Cs(e,t,r,n,o){if(null!==e){var i=e.memoizedProps;if(ln(i,n)&&e.ref===t.ref){if(vs=!1,t.pendingProps=n=i,0==(e.lanes&o))return t.lanes=e.lanes,Ks(e,t,o);0!=(131072&e.flags)&&(vs=!0)}}return Is(e,t,r,n,o)}function Ss(e,t,r){var n=t.pendingProps,o=n.children,i=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oo(Nl,Rl),Rl|=r;else{if(0==(1073741824&r))return e=null!==i?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Oo(Nl,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==i?i.baseLanes:r,Oo(Nl,Rl),Rl|=n}else null!==i?(n=i.baseLanes|r,t.memoizedState=null):n=r,Oo(Nl,Rl),Rl|=n;return _s(e,t,o,r),t.child}function ks(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Is(e,t,r,n,o){var i=No(r)?Po:Ao.current;return i=Ro(t,i),xi(t,o),r=ma(e,t,r,n,i,o),n=ba(),null===e||vs?(ii&&n&&ti(t),t.flags|=1,_s(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ks(e,t,o))}function Os(e,t,r,n,o){if(No(r)){var i=!0;Uo(t)}else i=!1;if(xi(t,o),null===t.stateNode)qs(e,t),as(t,r,n),ls(t,r,n,o),n=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=r.contextType;"object"==typeof c&&null!==c?c=Pi(c):c=Ro(t,c=No(r)?Po:Ao.current);var u=r.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||l!==c)&&ss(t,a,n,c),Di=!1;var h=t.memoizedState;a.state=h,qi(t,n,a,o),l=t.memoizedState,s!==n||h!==l||xo.current||Di?("function"==typeof u&&(ns(t,r,u,n),l=t.memoizedState),(s=Di||is(t,r,s,n,h,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=c,n=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,Fi(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:rs(t.type,s),a.props=c,d=t.pendingProps,h=a.context,"object"==typeof(l=r.contextType)&&null!==l?l=Pi(l):l=Ro(t,l=No(r)?Po:Ao.current);var p=r.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||h!==l)&&ss(t,a,n,l),Di=!1,h=t.memoizedState,a.state=h,qi(t,n,a,o);var f=t.memoizedState;s!==d||h!==f||xo.current||Di?("function"==typeof p&&(ns(t,r,p,n),f=t.memoizedState),(c=Di||is(t,r,c,n,h,f,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(n,f,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,f,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=f),a.props=n,a.state=f,a.context=l,n=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return Ts(e,t,r,n,i,o)}function Ts(e,t,r,n,o,i){ks(e,t);var a=0!=(128&t.flags);if(!n&&!a)return o&&Fo(t,r,!1),Ks(e,t,i);n=t.stateNode,ys.current=t;var s=a&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&a?(t.child=wi(t,e.child,null,i),t.child=wi(t,null,s,i)):_s(e,t,s,i),t.memoizedState=n.state,o&&Fo(t,r,!0),t.child}function As(e){var t=e.stateNode;t.pendingContext?Mo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mo(0,t.context,!1),Yi(e,t.containerInfo)}function xs(e,t,r,n,o){return fi(),gi(o),t.flags|=256,_s(e,t,r,n),t.child}var Ps,Rs,Ns,Ls,Ms={dehydrated:null,treeContext:null,retryLane:0};function Ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function Us(e,t,r){var n,o=t.pendingProps,a=ea.current,s=!1,l=0!=(128&t.flags);if((n=l)||(n=(null===e||null!==e.memoizedState)&&0!=(2&a)),n?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Oo(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Dc(l,o,0,null),e=Mc(e,o,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ds(r),t.memoizedState=Ms,e):Fs(t,l));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,o,a,s){if(r)return 256&t.flags?(t.flags&=-257,js(e,t,s,n=us(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,o=t.mode,n=Dc({mode:"visible",children:n.children},o,0,null),(a=Mc(a,o,s,null)).flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,0!=(1&t.mode)&&wi(t,e.child,null,s),t.child.memoizedState=Ds(s),t.memoizedState=Ms,a);if(0==(1&t.mode))return js(e,t,s,null);if("$!"===o.data){if(n=o.nextSibling&&o.nextSibling.dataset)var l=n.dgst;return n=l,js(e,t,s,n=us(a=Error(i(419)),n,void 0))}if(l=0!=(s&e.childLanes),vs||l){if(null!==(n=Al)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(n.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Mi(e,o),rc(n,e,o,-1))}return gc(),js(e,t,s,n=us(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Oc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=co(o.nextSibling),ni=t,ii=!0,ai=null,null!==e&&($o[Jo++]=Qo,$o[Jo++]=Xo,$o[Jo++]=Yo,Qo=e.id,Xo=e.overflow,Yo=t),t=Fs(t,n.children),t.flags|=4096,t)}(e,t,l,o,n,a,r);if(s){s=o.fallback,l=t.mode,n=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Nc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==n?s=Nc(n,s):(s=Mc(s,l,r,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Ds(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Ms,o}return e=(s=e.child).sibling,o=Nc(s,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Fs(e,t){return(t=Dc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function js(e,t,r,n){return null!==n&&gi(n),wi(t,e.child,null,r),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Hs(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Ai(e.return,t,r)}function Bs(e,t,r,n,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function zs(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(_s(e,t,n.children,r),0!=(2&(n=ea.current)))n=1&n|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Hs(e,r,t);else if(19===e.tag)Hs(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Oo(ea,n),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===ta(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Bs(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Bs(t,!0,r,null,i);break;case"together":Bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qs(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ks(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Dl|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(r=Nc(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Nc(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Vs(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Gs(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=14680064&o.subtreeFlags,n|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Ws(e,t,r){var n=t.pendingProps;switch(ri(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gs(t),null;case 1:case 17:return No(t.type)&&Lo(),Gs(t),null;case 3:return n=t.stateNode,Qi(),Io(xo),Io(Ao),na(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(hi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ai&&(ac(ai),ai=null))),Rs(e,t),Gs(t),null;case 5:Zi(t);var o=Ji($i.current);if(r=t.type,null!==e&&null!=t.stateNode)Ns(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(i(166));return Gs(t),null}if(e=Ji(Gi.current),hi(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[po]=t,n[fo]=a,e=0!=(1&t.mode),r){case"dialog":jn("cancel",n),jn("close",n);break;case"iframe":case"object":case"embed":jn("load",n);break;case"video":case"audio":for(o=0;o<Mn.length;o++)jn(Mn[o],n);break;case"source":jn("error",n);break;case"img":case"image":case"link":jn("error",n),jn("load",n);break;case"details":jn("toggle",n);break;case"input":Y(n,a),jn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},jn("invalid",n);break;case"textarea":oe(n,a),jn("invalid",n)}for(var l in ye(r,a),o=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"==typeof c?n.textContent!==c&&(!0!==a.suppressHydrationWarning&&Xn(n.textContent,c,e),o=["children",c]):"number"==typeof c&&n.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Xn(n.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&jn("scroll",n)}switch(r){case"input":G(n),Z(n,a,!0);break;case"textarea":G(n),ae(n);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(n.onclick=Zn)}n=o,t.updateQueue=n,null!==n&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),"select"===r&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[po]=t,e[fo]=n,Ps(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(r,n),r){case"dialog":jn("cancel",e),jn("close",e),o=n;break;case"iframe":case"object":case"embed":jn("load",e),o=n;break;case"video":case"audio":for(o=0;o<Mn.length;o++)jn(Mn[o],e);o=n;break;case"source":jn("error",e),o=n;break;case"img":case"image":case"link":jn("error",e),jn("load",e),o=n;break;case"details":jn("toggle",e),o=n;break;case"input":Y(e,n),o=J(e,n),jn("invalid",e);break;case"option":default:o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=U({},n,{value:void 0}),jn("invalid",e);break;case"textarea":oe(e,n),o=ne(e,n),jn("invalid",e)}for(a in ye(r,o),c=o)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?me(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"==typeof u?("textarea"!==r||""!==u)&&he(e,u):"number"==typeof u&&he(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&jn("scroll",e):null!=u&&v(e,a,u,l))}switch(r){case"input":G(e),Z(e,n,!1);break;case"textarea":G(e),ae(e);break;case"option":null!=n.value&&e.setAttribute("value",""+K(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?re(e,!!n.multiple,a,!1):null!=n.defaultValue&&re(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zn)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gs(t),null;case 6:if(e&&null!=t.stateNode)Ls(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(i(166));if(r=Ji($i.current),Ji(Gi.current),hi(t)){if(n=t.stateNode,r=t.memoizedProps,n[po]=t,(a=n.nodeValue!==r)&&null!==(e=ni))switch(e.tag){case 3:Xn(n.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xn(n.nodeValue,r,0!=(1&e.mode))}a&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[po]=t,t.stateNode=n}return Gs(t),null;case 13:if(Io(ea),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!=(1&t.mode)&&0==(128&t.flags))pi(),fi(),t.flags|=98560,a=!1;else if(a=hi(t),null!==n&&null!==n.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else fi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gs(t),a=!1}else null!==ai&&(ac(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=r,t):((n=null!==n)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ea.current)?0===Ll&&(Ll=3):gc())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return Qi(),Rs(e,t),null===e&&zn(t.stateNode.containerInfo),Gs(t),null;case 10:return Ti(t.type._context),Gs(t),null;case 19:if(Io(ea),null===(a=t.memoizedState))return Gs(t),null;if(n=0!=(128&t.flags),null===(l=a.rendering))if(n)Vs(a,!1);else{if(0!==Ll||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Vs(a,!1),null!==(n=l.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Oo(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>zl&&(t.flags|=128,n=!0,Vs(a,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=ta(l))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Vs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return Gs(t),null}else 2*Qe()-a.renderingStartTime>zl&&1073741824!==r&&(t.flags|=128,n=!0,Vs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=a.last)?r.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,r=ea.current,Oo(ea,n?1&r|2:1&r),t):(Gs(t),null);case 22:case 23:return dc(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!=(1&t.mode)?0!=(1073741824&Rl)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function $s(e,t){switch(ri(t),t.tag){case 1:return No(t.type)&&Lo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Io(xo),Io(Ao),na(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(Io(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));fi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Io(ea),null;case 4:return Qi(),null;case 10:return Ti(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Ps=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Rs=function(){},Ns=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Ji(Gi.current);var i,a=null;switch(r){case"input":o=J(e,o),n=J(e,n),a=[];break;case"select":o=U({},o,{value:void 0}),n=U({},n,{value:void 0}),a=[];break;case"textarea":o=ne(e,o),n=ne(e,n),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof n.onClick&&(e.onclick=Zn)}for(u in ye(r,n),r=null,o)if(!n.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in n){var c=n[u];if(l=null!=o?o[u]:void 0,n.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(r||(r={}),r[i]=c[i])}else r||(a||(a=[]),a.push(u,r)),r=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&jn("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ls=function(e,t,r,n){r!==n&&(t.flags|=4)};var Js=!1,Ys=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Xs=null;function Zs(e,t){var r=e.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(r){Sc(e,t,r)}else r.current=null}function el(e,t,r){try{r()}catch(r){Sc(e,t,r)}}var tl=!1;function rl(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,r,i)}o=o.next}while(o!==n)}}function nl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ol(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[fo],delete t[mo],delete t[bo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Zn));else if(4!==n&&null!==(e=e.child))for(ll(e,t,r),e=e.sibling;null!==e;)ll(e,t,r),e=e.sibling}function cl(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(cl(e,t,r),e=e.sibling;null!==e;)cl(e,t,r),e=e.sibling}var ul=null,dl=!1;function hl(e,t,r){for(r=r.child;null!==r;)pl(e,t,r),r=r.sibling}function pl(e,t,r){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,r)}catch(e){}switch(r.tag){case 5:Ys||Zs(r,t);case 6:var n=ul,o=dl;ul=null,hl(e,t,r),dl=o,null!==(ul=n)&&(dl?(e=ul,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):ul.removeChild(r.stateNode));break;case 18:null!==ul&&(dl?(e=ul,r=r.stateNode,8===e.nodeType?lo(e.parentNode,r):1===e.nodeType&&lo(e,r),zt(e)):lo(ul,r.stateNode));break;case 4:n=ul,o=dl,ul=r.stateNode.containerInfo,dl=!0,hl(e,t,r),ul=n,dl=o;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&el(r,t,a),o=o.next}while(o!==n)}hl(e,t,r);break;case 1:if(!Ys&&(Zs(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(e){Sc(r,t,e)}hl(e,t,r);break;case 21:hl(e,t,r);break;case 22:1&r.mode?(Ys=(n=Ys)||null!==r.memoizedState,hl(e,t,r),Ys=n):hl(e,t,r);break;default:hl(e,t,r)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Qs),t.forEach((function(t){var n=Tc.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function gl(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var o=r[n];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(i(160));pl(a,s,o),ul=null,dl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(e){Sc(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),bl(e),4&n){try{rl(3,e,e.return),nl(3,e)}catch(t){Sc(e,e.return,t)}try{rl(5,e,e.return)}catch(t){Sc(e,e.return,t)}}break;case 1:gl(t,e),bl(e),512&n&&null!==r&&Zs(r,r.return);break;case 5:if(gl(t,e),bl(e),512&n&&null!==r&&Zs(r,r.return),32&e.flags){var o=e.stateNode;try{he(o,"")}catch(t){Sc(e,e.return,t)}}if(4&n&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Q(o,a),ve(l,s);var u=ve(l,a);for(s=0;s<c.length;s+=2){var d=c[s],h=c[s+1];"style"===d?me(o,h):"dangerouslySetInnerHTML"===d?de(o,h):"children"===d?he(o,h):v(o,d,h,u)}switch(l){case"input":X(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?re(o,!!a.multiple,f,!1):p!==!!a.multiple&&(null!=a.defaultValue?re(o,!!a.multiple,a.defaultValue,!0):re(o,!!a.multiple,a.multiple?[]:"",!1))}o[fo]=a}catch(t){Sc(e,e.return,t)}}break;case 6:if(gl(t,e),bl(e),4&n){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Sc(e,e.return,t)}}break;case 3:if(gl(t,e),bl(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(t){Sc(e,e.return,t)}break;case 4:default:gl(t,e),bl(e);break;case 13:gl(t,e),bl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Bl=Qe())),4&n&&fl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Ys=(u=Ys)||d,gl(t,e),Ys=u):gl(t,e),bl(e),8192&n){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Xs=e,d=e.child;null!==d;){for(h=Xs=d;null!==Xs;){switch(f=(p=Xs).child,p.tag){case 0:case 11:case 14:case 15:rl(4,p,p.return);break;case 1:Zs(p,p.return);var g=p.stateNode;if("function"==typeof g.componentWillUnmount){n=p,r=p.return;try{t=n,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(e){Sc(n,r,e)}}break;case 5:Zs(p,p.return);break;case 22:if(null!==p.memoizedState){wl(h);continue}}null!==f?(f.return=p,Xs=f):wl(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{o=h.stateNode,u?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=h.stateNode,s=null!=(c=h.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=ge("display",s))}catch(t){Sc(e,e.return,t)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(t){Sc(e,e.return,t)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:gl(t,e),bl(e),4&n&&fl(e);case 21:}}function bl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(al(r)){var n=r;break e}r=r.return}throw Error(i(160))}switch(n.tag){case 5:var o=n.stateNode;32&n.flags&&(he(o,""),n.flags&=-33),cl(e,sl(e),o);break;case 3:case 4:var a=n.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(i(161))}}catch(t){Sc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,r){Xs=e,vl(e,t,r)}function vl(e,t,r){for(var n=0!=(1&e.mode);null!==Xs;){var o=Xs,i=o.child;if(22===o.tag&&n){var a=null!==o.memoizedState||Js;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ys;s=Js;var c=Ys;if(Js=a,(Ys=l)&&!c)for(Xs=o;null!==Xs;)l=(a=Xs).child,22===a.tag&&null!==a.memoizedState?El(o):null!==l?(l.return=a,Xs=l):El(o);for(;null!==i;)Xs=i,vl(i,t,r),i=i.sibling;Xs=o,Js=s,Ys=c}_l(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Xs=i):_l(e)}}function _l(e){for(;null!==Xs;){var t=Xs;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ys||nl(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Ys)if(null===r)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:rs(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ki(t,a,n);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ki(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&zt(h)}}}break;default:throw Error(i(163))}Ys||512&t.flags&&ol(t)}catch(e){Sc(t,t.return,e)}}if(t===e){Xs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Xs=r;break}Xs=t.return}}function wl(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var r=t.sibling;if(null!==r){r.return=t.return,Xs=r;break}Xs=t.return}}function El(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{nl(4,t)}catch(e){Sc(t,r,e)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var o=t.return;try{n.componentDidMount()}catch(e){Sc(t,o,e)}}var i=t.return;try{ol(t)}catch(e){Sc(t,i,e)}break;case 5:var a=t.return;try{ol(t)}catch(e){Sc(t,a,e)}}}catch(e){Sc(t,t.return,e)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var Cl,Sl=Math.ceil,kl=_.ReactCurrentDispatcher,Il=_.ReactCurrentOwner,Ol=_.ReactCurrentBatchConfig,Tl=0,Al=null,xl=null,Pl=0,Rl=0,Nl=ko(0),Ll=0,Ml=null,Dl=0,Ul=0,Fl=0,jl=null,Hl=null,Bl=0,zl=1/0,ql=null,Kl=!1,Vl=null,Gl=null,Wl=!1,$l=null,Jl=0,Yl=0,Ql=null,Xl=-1,Zl=0;function ec(){return 0!=(6&Tl)?Qe():-1!==Xl?Xl:Xl=Qe()}function tc(e){return 0==(1&e.mode)?1:0!=(2&Tl)&&0!==Pl?Pl&-Pl:null!==mi.transition?(0===Zl&&(Zl=gt()),Zl):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function rc(e,t,r,n){if(50<Yl)throw Yl=0,Ql=null,Error(i(185));bt(e,r,n),0!=(2&Tl)&&e===Al||(e===Al&&(0==(2&Tl)&&(Ul|=r),4===Ll&&sc(e,Pl)),nc(e,n),1===r&&0===Tl&&0==(1&t.mode)&&(zl=Qe()+500,Ho&&qo()))}function nc(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!=(s&r)&&0==(s&n)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var n=ht(e,e===Al?Pl:0);if(0===n)null!==r&&$e(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&$e(r),1===t)0===e.tag?function(e){Ho=!0,zo(e)}(lc.bind(null,e)):zo(lc.bind(null,e)),ao((function(){0==(6&Tl)&&qo()})),r=null;else{switch(_t(n)){case 1:r=Ze;break;case 4:r=et;break;case 16:default:r=tt;break;case 536870912:r=nt}r=Ac(r,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function oc(e,t){if(Xl=-1,Zl=0,0!=(6&Tl))throw Error(i(327));var r=e.callbackNode;if(Ec()&&e.callbackNode!==r)return null;var n=ht(e,e===Al?Pl:0);if(0===n)return null;if(0!=(30&n)||0!=(n&e.expiredLanes)||t)t=mc(e,n);else{t=n;var o=Tl;Tl|=2;var a=fc();for(Al===e&&Pl===t||(ql=null,zl=Qe()+500,hc(e,t));;)try{yc();break}catch(t){pc(e,t)}Oi(),kl.current=a,Tl=o,null!==xl?t=0:(Al=null,Pl=0,t=Ll)}if(0!==t){if(2===t&&(0!==(o=ft(e))&&(n=o,t=ic(e,o))),1===t)throw r=Ml,hc(e,0),sc(e,n),nc(e,Qe()),r;if(6===t)sc(e,n);else{if(o=e.current.alternate,0==(30&n)&&!function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var o=r[n],i=o.getSnapshot;o=o.value;try{if(!sn(i(),o))return!1}catch(e){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=mc(e,n))&&(0!==(a=ft(e))&&(n=a,t=ic(e,a))),1===t))throw r=Ml,hc(e,0),sc(e,n),nc(e,Qe()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(i(345));case 2:case 5:wc(e,Hl,ql);break;case 3:if(sc(e,n),(130023424&n)===n&&10<(t=Bl+500-Qe())){if(0!==ht(e,0))break;if(((o=e.suspendedLanes)&n)!==n){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=no(wc.bind(null,e,Hl,ql),t);break}wc(e,Hl,ql);break;case 4:if(sc(e,n),(4194240&n)===n)break;for(t=e.eventTimes,o=-1;0<n;){var s=31-at(n);a=1<<s,(s=t[s])>o&&(o=s),n&=~a}if(n=o,10<(n=(120>(n=Qe()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Sl(n/1960))-n)){e.timeoutHandle=no(wc.bind(null,e,Hl,ql),n);break}wc(e,Hl,ql);break;default:throw Error(i(329))}}}return nc(e,Qe()),e.callbackNode===r?oc.bind(null,e):null}function ic(e,t){var r=jl;return e.current.memoizedState.isDehydrated&&(hc(e,t).flags|=256),2!==(e=mc(e,t))&&(t=Hl,Hl=r,null!==t&&ac(t)),e}function ac(e){null===Hl?Hl=e:Hl.push.apply(Hl,e)}function sc(e,t){for(t&=~Fl,t&=~Ul,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-at(t),n=1<<r;e[r]=-1,t&=~n}}function lc(e){if(0!=(6&Tl))throw Error(i(327));Ec();var t=ht(e,0);if(0==(1&t))return nc(e,Qe()),null;var r=mc(e,t);if(0!==e.tag&&2===r){var n=ft(e);0!==n&&(t=n,r=ic(e,n))}if(1===r)throw r=Ml,hc(e,0),sc(e,t),nc(e,Qe()),r;if(6===r)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wc(e,Hl,ql),nc(e,Qe()),null}function cc(e,t){var r=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=r)&&(zl=Qe()+500,Ho&&qo())}}function uc(e){null!==$l&&0===$l.tag&&0==(6&Tl)&&Ec();var t=Tl;Tl|=1;var r=Ol.transition,n=vt;try{if(Ol.transition=null,vt=1,e)return e()}finally{vt=n,Ol.transition=r,0==(6&(Tl=t))&&qo()}}function dc(){Rl=Nl.current,Io(Nl)}function hc(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,oo(r)),null!==xl)for(r=xl.return;null!==r;){var n=r;switch(ri(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&Lo();break;case 3:Qi(),Io(xo),Io(Ao),na();break;case 5:Zi(n);break;case 4:Qi();break;case 13:case 19:Io(ea);break;case 10:Ti(n.type._context);break;case 22:case 23:dc()}r=r.return}if(Al=e,xl=e=Nc(e.current,null),Pl=Rl=t,Ll=0,Ml=null,Fl=Ul=Dl=0,Hl=jl=null,null!==Ri){for(t=0;t<Ri.length;t++)if(null!==(n=(r=Ri[t]).interleaved)){r.interleaved=null;var o=n.next,i=r.pending;if(null!==i){var a=i.next;i.next=o,n.next=a}r.pending=n}Ri=null}return e}function pc(e,t){for(;;){var r=xl;try{if(Oi(),oa.current=Xa,ua){for(var n=sa.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,ha=0,Il.current=null,null===r||null===r.return){Ll=1,Ml=t,xl=null;break}e:{var a=e,s=r.return,l=r,c=t;if(t=Pl,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,h=d.tag;if(0==(1&d.mode)&&(0===h||11===h||15===h)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=ms(s);if(null!==f){f.flags&=-257,bs(f,s,l,0,t),1&f.mode&&gs(a,u,t),c=u;var g=(t=f).updateQueue;if(null===g){var m=new Set;m.add(c),t.updateQueue=m}else g.add(c);break e}if(0==(1&t)){gs(a,u,t),gc();break e}c=Error(i(426))}else if(ii&&1&l.mode){var b=ms(s);if(null!==b){0==(65536&b.flags)&&(b.flags|=256),bs(b,s,l,0,t),gi(cs(c,l));break e}}a=c=cs(c,l),4!==Ll&&(Ll=2),null===jl?jl=[a]:jl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,zi(a,ps(0,c,t));break e;case 1:l=c;var y=a.type,v=a.stateNode;if(0==(128&a.flags)&&("function"==typeof y.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===Gl||!Gl.has(v)))){a.flags|=65536,t&=-t,a.lanes|=t,zi(a,fs(a,l,t));break e}}a=a.return}while(null!==a)}_c(r)}catch(e){t=e,xl===r&&null!==r&&(xl=r=r.return);continue}break}}function fc(){var e=kl.current;return kl.current=Xa,null===e?Xa:e}function gc(){0!==Ll&&3!==Ll&&2!==Ll||(Ll=4),null===Al||0==(268435455&Dl)&&0==(268435455&Ul)||sc(Al,Pl)}function mc(e,t){var r=Tl;Tl|=2;var n=fc();for(Al===e&&Pl===t||(ql=null,hc(e,t));;)try{bc();break}catch(t){pc(e,t)}if(Oi(),Tl=r,kl.current=n,null!==xl)throw Error(i(261));return Al=null,Pl=0,Ll}function bc(){for(;null!==xl;)vc(xl)}function yc(){for(;null!==xl&&!Je();)vc(xl)}function vc(e){var t=Cl(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?_c(e):xl=t,Il.current=null}function _c(e){var t=e;do{var r=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(r=Ws(r,t,Rl)))return void(xl=r)}else{if(null!==(r=$s(r,t)))return r.flags&=32767,void(xl=r);if(null===e)return Ll=6,void(xl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(xl=t);xl=t=e}while(null!==t);0===Ll&&(Ll=5)}function wc(e,t,r){var n=vt,o=Ol.transition;try{Ol.transition=null,vt=1,function(e,t,r,n){do{Ec()}while(null!==$l);if(0!=(6&Tl))throw Error(i(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-at(r),i=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~i}}(e,a),e===Al&&(xl=Al=null,Pl=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Wl||(Wl=!0,Ac(tt,(function(){return Ec(),null}))),a=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||a){a=Ol.transition,Ol.transition=null;var s=vt;vt=1;var l=Tl;Tl|=4,Il.current=null,function(e,t){if(eo=Kt,pn(e=hn())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var s=0,l=-1,c=-1,u=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==r||0!==o&&3!==h.nodeType||(l=s+o),h!==a||0!==n&&3!==h.nodeType||(c=s+n),3===h.nodeType&&(s+=h.nodeValue.length),null!==(f=h.firstChild);)p=h,h=f;for(;;){if(h===e)break t;if(p===r&&++u===o&&(l=s),p===a&&++d===n&&(c=s),null!==(f=h.nextSibling))break;p=(h=p).parentNode}h=f}r=-1===l||-1===c?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Kt=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var g=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,b=g.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:rs(t.type,m),b);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(i(163))}}catch(e){Sc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}g=tl,tl=!1}(e,r),ml(r,e),fn(to),Kt=!!eo,to=eo=null,e.current=r,yl(r,e,o),Ye(),Tl=l,vt=s,Ol.transition=a}else e.current=r;if(Wl&&(Wl=!1,$l=e,Jl=o),a=e.pendingLanes,0===a&&(Gl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),nc(e,Qe()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(Kl)throw Kl=!1,e=Vl,Vl=null,e;0!=(1&Jl)&&0!==e.tag&&Ec(),a=e.pendingLanes,0!=(1&a)?e===Ql?Yl++:(Yl=0,Ql=e):Yl=0,qo()}(e,t,r,n)}finally{Ol.transition=o,vt=n}return null}function Ec(){if(null!==$l){var e=_t(Jl),t=Ol.transition,r=vt;try{if(Ol.transition=null,vt=16>e?16:e,null===$l)var n=!1;else{if(e=$l,$l=null,Jl=0,0!=(6&Tl))throw Error(i(331));var o=Tl;for(Tl|=4,Xs=e.current;null!==Xs;){var a=Xs,s=a.child;if(0!=(16&Xs.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Xs=u;null!==Xs;){var d=Xs;switch(d.tag){case 0:case 11:case 15:rl(8,d,a)}var h=d.child;if(null!==h)h.return=d,Xs=h;else for(;null!==Xs;){var p=(d=Xs).sibling,f=d.return;if(il(d),d===u){Xs=null;break}if(null!==p){p.return=f,Xs=p;break}Xs=f}}}var g=a.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var b=m.sibling;m.sibling=null,m=b}while(null!==m)}}Xs=a}}if(0!=(2064&a.subtreeFlags)&&null!==s)s.return=a,Xs=s;else e:for(;null!==Xs;){if(0!=(2048&(a=Xs).flags))switch(a.tag){case 0:case 11:case 15:rl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Xs=y;break e}Xs=a.return}}var v=e.current;for(Xs=v;null!==Xs;){var _=(s=Xs).child;if(0!=(2064&s.subtreeFlags)&&null!==_)_.return=s,Xs=_;else e:for(s=v;null!==Xs;){if(0!=(2048&(l=Xs).flags))try{switch(l.tag){case 0:case 11:case 15:nl(9,l)}}catch(e){Sc(l,l.return,e)}if(l===s){Xs=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Xs=w;break e}Xs=l.return}}if(Tl=o,qo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}n=!0}return n}finally{vt=r,Ol.transition=t}}return!1}function Cc(e,t,r){e=Hi(e,t=ps(0,t=cs(r,t),1),1),t=ec(),null!==e&&(bt(e,1,t),nc(e,t))}function Sc(e,t,r){if(3===e.tag)Cc(e,e,r);else for(;null!==t;){if(3===t.tag){Cc(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Gl||!Gl.has(n))){t=Hi(t,e=fs(t,e=cs(r,e),1),1),e=ec(),null!==t&&(bt(t,1,e),nc(t,e));break}}t=t.return}}function kc(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&r,Al===e&&(Pl&r)===r&&(4===Ll||3===Ll&&(130023424&Pl)===Pl&&500>Qe()-Bl?hc(e,0):Fl|=r),nc(e,t)}function Ic(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var r=ec();null!==(e=Mi(e,t))&&(bt(e,t,r),nc(e,r))}function Oc(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),Ic(e,r)}function Tc(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(i(314))}null!==n&&n.delete(t),Ic(e,r)}function Ac(e,t){return We(e,t)}function xc(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pc(e,t,r,n){return new xc(e,t,r,n)}function Rc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Nc(e,t){var r=e.alternate;return null===r?((r=Pc(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Lc(e,t,r,n,o,a){var s=2;if(n=e,"function"==typeof e)Rc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case C:return Mc(r.children,o,a,t);case S:s=8,o|=8;break;case k:return(e=Pc(12,r,t,2|o)).elementType=k,e.lanes=a,e;case A:return(e=Pc(13,r,t,o)).elementType=A,e.lanes=a,e;case x:return(e=Pc(19,r,t,o)).elementType=x,e.lanes=a,e;case N:return Dc(r,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case I:s=10;break e;case O:s=9;break e;case T:s=11;break e;case P:s=14;break e;case R:s=16,n=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Pc(s,r,t,o)).elementType=e,t.type=n,t.lanes=a,t}function Mc(e,t,r,n){return(e=Pc(7,e,n,t)).lanes=r,e}function Dc(e,t,r,n){return(e=Pc(22,e,n,t)).elementType=N,e.lanes=r,e.stateNode={isHidden:!1},e}function Uc(e,t,r){return(e=Pc(6,e,null,t)).lanes=r,e}function Fc(e,t,r){return(t=Pc(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jc(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hc(e,t,r,n,o,i,a,s,l){return e=new jc(e,t,r,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Pc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ui(i),e}function Bc(e){if(!e)return To;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(No(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var r=e.type;if(No(r))return Do(e,r,t)}return t}function zc(e,t,r,n,o,i,a,s,l){return(e=Hc(r,n,!0,e,0,i,0,s,l)).context=Bc(null),r=e.current,(i=ji(n=ec(),o=tc(r))).callback=null!=t?t:null,Hi(r,i,o),e.current.lanes=o,bt(e,o,n),nc(e,n),e}function qc(e,t,r,n){var o=t.current,i=ec(),a=tc(o);return r=Bc(r),null===t.context?t.context=r:t.pendingContext=r,(t=ji(i,a)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Hi(o,t,a))&&(rc(e,o,a,i),Bi(e,o,a)),a}function Kc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Gc(e,t){Vc(e,t),(e=e.alternate)&&Vc(e,t)}Cl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||xo.current)vs=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return vs=!1,function(e,t,r){switch(t.tag){case 3:As(t),fi();break;case 5:Xi(t);break;case 1:No(t.type)&&Uo(t);break;case 4:Yi(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;Oo(Ci,n._currentValue),n._currentValue=o;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(Oo(ea,1&ea.current),t.flags|=128,null):0!=(r&t.child.childLanes)?Us(e,t,r):(Oo(ea,1&ea.current),null!==(e=Ks(e,t,r))?e.sibling:null);Oo(ea,1&ea.current);break;case 19:if(n=0!=(r&t.childLanes),0!=(128&e.flags)){if(n)return zs(e,t,r);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Oo(ea,ea.current),n)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,r)}return Ks(e,t,r)}(e,t,r);vs=0!=(131072&e.flags)}else vs=!1,ii&&0!=(1048576&t.flags)&&ei(t,Wo,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;qs(e,t),e=t.pendingProps;var o=Ro(t,Ao.current);xi(t,r),o=ma(null,t,n,e,o,r);var a=ba();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,No(n)?(a=!0,Uo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ui(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ls(t,n,e,r),t=Ts(null,t,n,!0,a,r)):(t.tag=0,ii&&a&&ti(t),_s(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(qs(e,t),e=t.pendingProps,n=(o=n._init)(n._payload),t.type=n,o=t.tag=function(e){if("function"==typeof e)return Rc(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===P)return 14}return 2}(n),e=rs(n,e),o){case 0:t=Is(null,t,n,e,r);break e;case 1:t=Os(null,t,n,e,r);break e;case 11:t=ws(null,t,n,e,r);break e;case 14:t=Es(null,t,n,rs(n.type,e),r);break e}throw Error(i(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,Is(e,t,n,o=t.elementType===n?o:rs(n,o),r);case 1:return n=t.type,o=t.pendingProps,Os(e,t,n,o=t.elementType===n?o:rs(n,o),r);case 3:e:{if(As(t),null===e)throw Error(i(387));n=t.pendingProps,o=(a=t.memoizedState).element,Fi(e,t),qi(t,n,null,r);var s=t.memoizedState;if(n=s.element,a.isDehydrated){if(a={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=xs(e,t,n,r,o=cs(Error(i(423)),t));break e}if(n!==o){t=xs(e,t,n,r,o=cs(Error(i(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ni=t,ii=!0,ai=null,r=Ei(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(fi(),n===o){t=Ks(e,t,r);break e}_s(e,t,n,r)}t=t.child}return t;case 5:return Xi(t),null===e&&ui(t),n=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,ro(n,o)?s=null:null!==a&&ro(n,a)&&(t.flags|=32),ks(e,t),_s(e,t,s,r),t.child;case 6:return null===e&&ui(t),null;case 13:return Us(e,t,r);case 4:return Yi(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=wi(t,null,n,r):_s(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,ws(e,t,n,o=t.elementType===n?o:rs(n,o),r);case 7:return _s(e,t,t.pendingProps,r),t.child;case 8:case 12:return _s(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Oo(Ci,n._currentValue),n._currentValue=s,null!==a)if(sn(a.value,s)){if(a.children===o.children&&!xo.current){t=Ks(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===n){if(1===a.tag){(c=ji(-1,r&-r)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=r,null!==(c=a.alternate)&&(c.lanes|=r),Ai(a.return,r,t),l.lanes|=r;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Ai(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}_s(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,xi(t,r),n=n(o=Pi(o)),t.flags|=1,_s(e,t,n,r),t.child;case 14:return o=rs(n=t.type,t.pendingProps),Es(e,t,n,o=rs(n.type,o),r);case 15:return Cs(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:rs(n,o),qs(e,t),t.tag=1,No(n)?(e=!0,Uo(t)):e=!1,xi(t,r),as(t,n,o),ls(t,n,o,r),Ts(null,t,n,!0,e,r);case 19:return zs(e,t,r);case 22:return Ss(e,t,r)}throw Error(i(156,t.tag))};var Wc="function"==typeof reportError?reportError:function(e){console.error(e)};function $c(e){this._internalRoot=e}function Jc(e){this._internalRoot=e}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xc(){}function Zc(e,t,r,n,o){var i=r._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Kc(a);s.call(e)}}qc(t,a,e,o)}else a=function(e,t,r,n,o){if(o){if("function"==typeof n){var i=n;n=function(){var e=Kc(a);i.call(e)}}var a=zc(t,n,e,0,null,!1,0,"",Xc);return e._reactRootContainer=a,e[go]=a.current,zn(8===e.nodeType?e.parentNode:e),uc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof n){var s=n;n=function(){var e=Kc(l);s.call(e)}}var l=Hc(e,0,!1,null,0,!1,0,"",Xc);return e._reactRootContainer=l,e[go]=l.current,zn(8===e.nodeType?e.parentNode:e),uc((function(){qc(t,l,r,n)})),l}(r,t,e,o,n);return Kc(a)}Jc.prototype.render=$c.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));qc(e,t,null,null)},Jc.prototype.unmount=$c.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){qc(null,e,null,null)})),t[go]=null}},Jc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Nt.length&&0!==t&&t<Nt[r].priority;r++);Nt.splice(r,0,e),0===r&&Ut(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=dt(t.pendingLanes);0!==r&&(yt(t,1|r),nc(t,Qe()),0==(6&Tl)&&(zl=Qe()+500,qo()))}break;case 13:uc((function(){var t=Mi(e,1);if(null!==t){var r=ec();rc(t,e,1,r)}})),Gc(e,1)}},Et=function(e){if(13===e.tag){var t=Mi(e,134217728);if(null!==t)rc(t,e,134217728,ec());Gc(e,134217728)}},Ct=function(e){if(13===e.tag){var t=tc(e),r=Mi(e,t);if(null!==r)rc(r,e,t,ec());Gc(e,t)}},St=function(){return vt},kt=function(e,t){var r=vt;try{return vt=e,t()}finally{vt=r}},Ee=function(e,t,r){switch(t){case"input":if(X(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=Eo(n);if(!o)throw Error(i(90));W(n),X(n,o)}}}break;case"textarea":ie(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Te=cc,Ae=uc;var eu={usingClientEntryPoint:!1,Events:[_o,wo,Eo,Ie,Oe,cc]},tu={findFiberByHostInstance:vo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ru={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nu.isDisabled&&nu.supportsFiber)try{ot=nu.inject(ru),it=nu}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yc(t))throw Error(i(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.createRoot=function(e,t){if(!Yc(e))throw Error(i(299));var r=!1,n="",o=Wc;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Hc(e,1,!1,null,0,r,0,n,o),e[go]=t.current,zn(8===e.nodeType?e.parentNode:e),new $c(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,r){if(!Qc(t))throw Error(i(200));return Zc(null,e,t,!0,r)},t.hydrateRoot=function(e,t,r){if(!Yc(e))throw Error(i(405));var n=null!=r&&r.hydratedSources||null,o=!1,a="",s=Wc;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=zc(t,null,e,1,null!=r?r:null,o,0,a,s),e[go]=t.current,zn(e),n)for(e=0;e<n.length;e++)o=(o=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Jc(t)},t.render=function(e,t,r){if(!Qc(t))throw Error(i(200));return Zc(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Qc(e))throw Error(i(40));return!!e._reactRootContainer&&(uc((function(){Zc(null,null,e,!1,(function(){e._reactRootContainer=null,e[go]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Qc(r))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Zc(e,t,r,!1,n)},t.version="18.3.1-next-f1338f8080-20240426"},62275:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(50213)},26341:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,o=e[n];if(!(0<i(o,t)))break e;e[n]=t,e[r]=o,r=n}}function n(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length,a=o>>>1;n<a;){var s=2*(n+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,r))c<o&&0>i(u,l)?(e[n]=u,e[c]=r,n=c):(e[n]=l,e[s]=r,n=s);else{if(!(c<o&&0>i(u,r)))break e;e[n]=u,e[c]=r,n=c}}}return t}function i(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,h=null,p=3,f=!1,g=!1,m=!1,b="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function _(e){for(var t=n(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,r(c,t)}t=n(u)}}function w(e){if(m=!1,_(e),!g)if(null!==n(c))g=!0,N(E);else{var t=n(u);null!==t&&L(w,t.startTime-e)}}function E(e,r){g=!1,m&&(m=!1,y(I),I=-1),f=!0;var i=p;try{for(_(r),h=n(c);null!==h&&(!(h.expirationTime>r)||e&&!A());){var a=h.callback;if("function"==typeof a){h.callback=null,p=h.priorityLevel;var s=a(h.expirationTime<=r);r=t.unstable_now(),"function"==typeof s?h.callback=s:h===n(c)&&o(c),_(r)}else o(c);h=n(c)}if(null!==h)var l=!0;else{var d=n(u);null!==d&&L(w,d.startTime-r),l=!1}return l}finally{h=null,p=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,S=!1,k=null,I=-1,O=5,T=-1;function A(){return!(t.unstable_now()-T<O)}function x(){if(null!==k){var e=t.unstable_now();T=e;var r=!0;try{r=k(!0,e)}finally{r?C():(S=!1,k=null)}}else S=!1}if("function"==typeof v)C=function(){v(x)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,R=P.port2;P.port1.onmessage=x,C=function(){R.postMessage(null)}}else C=function(){b(x,0)};function N(e){k=e,S||(S=!0,C())}function L(e,r){I=b((function(){e(t.unstable_now())}),r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||f||(g=!0,N(E))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var r=p;p=t;try{return e()}finally{p=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=p;p=e;try{return t()}finally{p=r}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,r(u,e),null===n(c)&&e===n(u)&&(m?(y(I),I=-1):m=!0,L(w,i-a))):(e.sortIndex=s,r(c,e),g||f||(g=!0,N(E))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=p;return function(){var r=p;p=t;try{return e.apply(this,arguments)}finally{p=r}}}},46304:(e,t,r)=>{"use strict";e.exports=r(26341)},10173:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case m:case g:case l:return e;default:return t}}case o:return t}}}function E(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||w(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===h},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===y||e.$$typeof===v||e.$$typeof===_||e.$$typeof===b)},t.typeOf=w},52305:(e,t,r)=>{"use strict";e.exports=r(10173)},62135:(e,t,r)=>{"use strict";function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!=r?r:null}.bind(this))}function i(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var r=null,a=null,s=null;if("function"==typeof t.componentWillMount?r="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==r||null!==a||null!==s){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=n,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;u.call(this,e,t,n)}}return e}r.r(t),r.d(t,{polyfill:()=>a}),n.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},69770:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(1986),a=f(i),s=f(r(62275)),l=f(r(39970)),c=f(r(27044)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(19188)),d=r(37080),h=f(d),p=r(62135);function f(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=t.portalClassName="ReactModalPortal",b=t.bodyOpenClassName="ReactModal__Body--open",y=d.canUseDOM&&void 0!==s.default.createPortal,v=function(e){return document.createElement(e)},_=function(){return y?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function w(e){return e()}var E=function(e){function t(){var e,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,l=Array(i),u=0;u<i;u++)l[u]=arguments[u];return r=o=g(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),o.removePortal=function(){!y&&s.default.unmountComponentAtNode(o.node);var e=w(o.props.parentSelector);e&&e.contains(o.node)?e.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(e){o.portal=e},o.renderPortal=function(e){var r=_()(o,a.default.createElement(c.default,n({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(r)},g(o,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(y||(this.node=v("div")),this.node.className=this.props.portalClassName,w(this.props.parentSelector).appendChild(this.node),!y&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:w(e.parentSelector),nextParent:w(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,r){if(d.canUseDOM){var n=this.props,o=n.isOpen,i=n.portalClassName;e.portalClassName!==i&&(this.node.className=i);var a=r.prevParent,s=r.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||o)&&!y&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),r=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);r?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,r-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&y?(!this.node&&y&&(this.node=v("div")),_()(a.default.createElement(c.default,n({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){u.setElement(e)}}]),t}(i.Component);E.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.oneOfType([l.default.instanceOf(h.default),l.default.instanceOf(d.SafeHTMLCollection),l.default.instanceOf(d.SafeNodeList),l.default.arrayOf(l.default.instanceOf(h.default))]),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func},E.defaultProps={isOpen:!1,portalClassName:m,bodyOpenClassName:b,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return a.default.createElement("div",e,t)},contentElement:function(e,t){return a.default.createElement("div",e,t)}},E.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(E),t.default=E},27044:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=r(1986),s=m(r(39970)),l=g(r(66177)),c=m(r(48401)),u=g(r(19188)),d=g(r(17536)),h=r(37080),p=m(h),f=m(r(27858));function g(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function m(e){return e&&e.__esModule?e:{default:e}}r(36145);var b={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=0,v=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.setOverlayRef=function(e){r.overlay=e,r.props.overlayRef&&r.props.overlayRef(e)},r.setContentRef=function(e){r.content=e,r.props.contentRef&&r.props.contentRef(e)},r.afterClose=function(){var e=r.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName,a=e.parentSelector,s=a&&a().ownerDocument||document;i&&d.remove(s.body,i),o&&d.remove(s.getElementsByTagName("html")[0],o),n&&y>0&&0===(y-=1)&&u.show(t),r.props.shouldFocusAfterRender&&(r.props.shouldReturnFocusAfterClose?(l.returnFocus(r.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),r.props.onAfterClose&&r.props.onAfterClose(),f.default.deregister(r)},r.open=function(){r.beforeOpen(),r.state.afterOpen&&r.state.beforeClose?(clearTimeout(r.closeTimer),r.setState({beforeClose:!1})):(r.props.shouldFocusAfterRender&&(l.setupScopedFocus(r.node),l.markForFocusLater()),r.setState({isOpen:!0},(function(){r.openAnimationFrame=requestAnimationFrame((function(){r.setState({afterOpen:!0}),r.props.isOpen&&r.props.onAfterOpen&&r.props.onAfterOpen({overlayEl:r.overlay,contentEl:r.content})}))})))},r.close=function(){r.props.closeTimeoutMS>0?r.closeWithTimeout():r.closeWithoutTimeout()},r.focusContent=function(){return r.content&&!r.contentHasFocus()&&r.content.focus({preventScroll:!0})},r.closeWithTimeout=function(){var e=Date.now()+r.props.closeTimeoutMS;r.setState({beforeClose:!0,closesAt:e},(function(){r.closeTimer=setTimeout(r.closeWithoutTimeout,r.state.closesAt-Date.now())}))},r.closeWithoutTimeout=function(){r.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},r.afterClose)},r.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(r.content,e),r.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),r.requestClose(e))},r.handleOverlayOnClick=function(e){null===r.shouldClose&&(r.shouldClose=!0),r.shouldClose&&r.props.shouldCloseOnOverlayClick&&(r.ownerHandlesClose()?r.requestClose(e):r.focusContent()),r.shouldClose=null},r.handleContentOnMouseUp=function(){r.shouldClose=!1},r.handleOverlayOnMouseDown=function(e){r.props.shouldCloseOnOverlayClick||e.target!=r.overlay||e.preventDefault()},r.handleContentOnClick=function(){r.shouldClose=!1},r.handleContentOnMouseDown=function(){r.shouldClose=!1},r.requestClose=function(e){return r.ownerHandlesClose()&&r.props.onRequestClose(e)},r.ownerHandlesClose=function(){return r.props.onRequestClose},r.shouldBeClosed=function(){return!r.state.isOpen&&!r.state.beforeClose},r.contentHasFocus=function(){return document.activeElement===r.content||r.content.contains(document.activeElement)},r.buildClassName=function(e,t){var n="object"===(void 0===t?"undefined":o(t))?t:{base:b[e],afterOpen:b[e]+"--after-open",beforeClose:b[e]+"--before-close"},i=n.base;return r.state.afterOpen&&(i=i+" "+n.afterOpen),r.state.beforeClose&&(i=i+" "+n.beforeClose),"string"==typeof t&&t?i+" "+t:i},r.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(r,n){return r[e+"-"+n]=t[n],r}),{})},r.state={afterOpen:!1,beforeClose:!1},r.shouldClose=null,r.moveFromContentToOverlay=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,r=e.ariaHideApp,n=e.htmlOpenClassName,o=e.bodyOpenClassName,i=e.parentSelector,a=i&&i().ownerDocument||document;o&&d.add(a.body,o),n&&d.add(a.getElementsByTagName("html")[0],n),r&&(y+=1,u.hide(t)),f.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,r=e.className,o=e.overlayClassName,i=e.defaultStyles,a=e.children,s=r?{}:i.content,l=o?{}:i.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:n({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=n({id:t,ref:this.setContentRef,style:n({},s,this.props.style.content),className:this.buildClassName("content",r),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,a);return this.props.overlayElement(c,d)}}]),t}(a.Component);v.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},v.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(p.default),s.default.instanceOf(h.SafeHTMLCollection),s.default.instanceOf(h.SafeNodeList),s.default.arrayOf(s.default.instanceOf(p.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=v,e.exports=t.default},19188:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")})));s=null},t.log=function(){0},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var r=document.querySelectorAll(t);l(r,t),t=r}return s=t||s},t.validateElement=c,t.hide=function(e){var t=!0,r=!1,n=void 0;try{for(var o,i=c(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.setAttribute("aria-hidden","true")}}catch(e){r=!0,n=e}finally{try{!t&&i.return&&i.return()}finally{if(r)throw n}}},t.show=function(e){var t=!0,r=!1,n=void 0;try{for(var o,i=c(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.removeAttribute("aria-hidden")}}catch(e){r=!0,n=e}finally{try{!t&&i.return&&i.return()}finally{if(r)throw n}}},t.documentNotReadyOrSSRTesting=function(){s=null};var n,o=r(73389),i=(n=o)&&n.__esModule?n:{default:n},a=r(37080);var s=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function c(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,i.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},36145:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[a,s],t=0;t<e.length;t++){var r=e[t];r&&(r.parentNode&&r.parentNode.removeChild(r))}a=s=null,l=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(l.length);for(var e=[a,s],t=0;t<e.length;t++){var r=e[t]||{};console.log(r.nodeName,r.className,r.id)}console.log("edn bodyTrap ----------")};var n,o=r(27858),i=(n=o)&&n.__esModule?n:{default:n};var a=void 0,s=void 0,l=[];function c(){0!==l.length&&l[l.length-1].focusContent()}i.default.subscribe((function(e,t){a||s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",c),(s=a.cloneNode()).addEventListener("focus",c)),(l=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))}))},17536:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in r)o(e,r[t]);var i=document.body;for(var a in n)o(i,n[a]);r={},n={}},t.log=function(){0};var r={},n={};function o(e,t){e.classList.remove(t)}t.add=function(e,t){return o=e.classList,i="html"==e.nodeName.toLowerCase()?r:n,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),o.add(e)}));var o,i},t.remove=function(e,t){return o=e.classList,i="html"==e.nodeName.toLowerCase()?r:n,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&o.remove(e)}));var o,i}},66177:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a=[]},t.log=function(){0},t.handleBlur=c,t.handleFocus=u,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==a.length&&(t=a.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",c,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",c),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",c),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",c),document.detachEvent("onFocus",u))};var n,o=r(69333),i=(n=o)&&n.__esModule?n:{default:n};var a=[],s=null,l=!1;function c(){l=!0}function u(){if(l){if(l=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,i.default)(s)[0]||s).focus()}),0)}}},27858:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(n.openInstances.length),n.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){n=new r};var r=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var r=t.openInstances.indexOf(e);-1!==r&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(r){return r(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},n=new r;t.default=n},37080:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var n,o=r(47241);var i=((n=o)&&n.__esModule?n:{default:n}).default,a=i.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=i.canUseDOM?window.NodeList:{},t.canUseDOM=i.canUseDOM;t.default=a},48401:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=(0,i.default)(e);if(!r.length)return void t.preventDefault();var n=void 0,o=t.shiftKey,s=r[0],l=r[r.length-1],c=a();if(e===c){if(!o)return;n=l}l!==c||o||(n=s);s===c&&o&&(n=l);if(n)return t.preventDefault(),void n.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==u||"Chrome"==u[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var d=r.indexOf(c);d>-1&&(d+=o?-1:1);if(void 0===(n=r[d]))return t.preventDefault(),void(n=o?l:s).focus();t.preventDefault(),n.focus()};var n,o=r(69333),i=(n=o)&&n.__esModule?n:{default:n};function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?a(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},69333:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,r){return t.concat(r.shadowRoot?e(r.shadowRoot):[r])}),[]);return r.filter(s)};var r="none",n="contents",o=/input|select|textarea|button|object|iframe/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var o=window.getComputedStyle(e),i=o.getPropertyValue("display");return t?i!==n&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,o):i===r}catch(e){return console.warn("Failed to inspect element style"),!1}}function a(e,t){var r=e.nodeName.toLowerCase();return(o.test(r)&&!e.disabled||"a"===r&&e.href||t)&&function(e){for(var t=e,r=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(r&&t===r&&(t=r.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}function s(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var r=isNaN(t);return(r||t>=0)&&a(e,!r)}e.exports=t.default},24082:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=r(69770),i=(n=o)&&n.__esModule?n:{default:n};t.default=i.default,e.exports=t.default},86742:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(1986)),o=s(r(39970)),i=s(r(62275)),a=s(r(88072));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function u(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}a.default||console.error("It looks like Tether has not been included. Please load this dependency first https://github.com/HubSpot/tether");var m=void 0!==i.default.createPortal,b=[o.default.string,o.default.shape({appendChild:o.default.func.isRequired})],y=["auto auto","top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],v=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?f(e):t}(this,h(t).call(this,e)),g(f(f(r)),"_targetNode",null),g(f(f(r)),"_elementParentNode",null),g(f(f(r)),"_tether",null),g(f(f(r)),"_elementComponent",null),g(f(f(r)),"_targetComponent",null),r.updateChildrenComponents(r.props),r}var r,o,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),r=t,o=[{key:"updateChildrenComponents",value:function(e){var t=n.Children.toArray(e.children);if(this._targetComponent=t[0],this._elementComponent=t[1],this._targetComponent&&this._elementComponent&&this._createContainer(),this._elementParentNode&&this.props.className!==e.className){var r,o,i=(this.props.className||"").split(" ").filter((function(e){return e.length>0})),a=(e.className||"").split(" ").filter((function(e){return e.length>0}));(r=this._elementParentNode.classList).remove.apply(r,u(i)),(o=this._elementParentNode.classList).add.apply(o,u(a))}}},{key:"componentDidMount",value:function(){this._update()}},{key:"componentDidUpdate",value:function(){this._update()}},{key:"componentWillUnmount",value:function(){this._destroy()}},{key:"getTetherInstance",value:function(){return this._tether}},{key:"disable",value:function(){this._tether.disable()}},{key:"enable",value:function(){this._tether.enable()}},{key:"on",value:function(e,t,r){this._tether.on(e,t,r)}},{key:"once",value:function(e,t,r){this._tether.once(e,t,r)}},{key:"off",value:function(e,t){this._tether.off(e,t)}},{key:"position",value:function(){this._tether.position()}},{key:"_registerEventListeners",value:function(){var e=this;this.on("update",(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.props.onUpdate&&e.props.onUpdate.apply(e,r)})),this.on("repositioned",(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.props.onRepositioned&&e.props.onRepositioned.apply(e,r)}))}},{key:"_destroy",value:function(){this._elementParentNode&&(m||i.default.unmountComponentAtNode(this._elementParentNode),this._elementParentNode.parentNode.removeChild(this._elementParentNode)),this._tether&&this._tether.destroy(),this._elementParentNode=null,this._tether=null,this._targetNode=null,this._targetComponent=null,this._elementComponent=null}},{key:"_createContainer",value:function(){if(!this._elementParentNode){var e=this.props,t=e.renderElementTag,r=e.className;this._elementParentNode=document.createElement(t),this._elementParentNode.className=r||"",this._renderNode.appendChild(this._elementParentNode)}}},{key:"_update",value:function(){var e=this,t=!this._elementComponent||!this._targetComponent;t||(this._targetNode=i.default.findDOMNode(this),t=!this._targetNode),t?this._destroy():m?this._updateTether():i.default.unstable_renderSubtreeIntoContainer(this,this._elementComponent,this._elementParentNode,(function(){e._elementParentNode&&e._updateTether()}))}},{key:"_updateTether",value:function(){var e=this.props,t=(e.children,e.renderElementTag,e.renderElementTo,e.id),r=(e.className,e.style),n=c(e,["children","renderElementTag","renderElementTo","id","className","style"]),o=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){g(e,t,r[t])}))}return e}({target:this._targetNode,element:this._elementParentNode},n),i=t||"";if(this._elementParentNode.id!==i&&(this._elementParentNode.id=i),r){var s=this._elementParentNode.style;Object.keys(r).forEach((function(e){s[e]!==r[e]&&(s[e]=r[e])}))}this._tether?this._tether.setOptions(o):(this._tether=new a.default(o),this._registerEventListeners()),this._tether.position()}},{key:"render",value:function(){return this._targetComponent?m&&this._elementComponent?[this._targetComponent,i.default.createPortal(this._elementComponent,this._elementParentNode)]:this._targetComponent:null}},{key:"_renderNode",get:function(){var e=this.props.renderElementTo;return"string"==typeof e?document.querySelector(e):e||document.body}}],o&&d(r.prototype,o),s&&d(r,s),t}(n.Component);function _(e){this.updateChildrenComponents(e)}g(v,"propTypes",{renderElementTag:o.default.string,renderElementTo:o.default.oneOfType(b),attachment:o.default.oneOf(y).isRequired,targetAttachment:o.default.oneOf(y),offset:o.default.string,targetOffset:o.default.string,targetModifier:o.default.string,enabled:o.default.bool,classes:o.default.object,classPrefix:o.default.string,optimizations:o.default.object,constraints:o.default.array,id:o.default.string,className:o.default.string,style:o.default.object,onUpdate:o.default.func,onRepositioned:o.default.func,children:function(e,t,r){var o=e.children,i=n.Children.count(o);return i<=0?new Error("".concat(r," expects at least one child to use as the target element.")):i>2?new Error("Only a max of two children allowed in ".concat(r,".")):void 0}}),g(v,"defaultProps",{renderElementTag:"div",renderElementTo:null});var w,E,C=n.default.version.split(".").map(Number),S=(E=2,function(e){if(Array.isArray(e))return e}(w=C)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(w,E)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),k=S[0],I=S[1];k<16||16===k&&I<9?v.prototype.componentWillUpdate=_:v.prototype.UNSAFE_componentWillUpdate=_;var O=v;t.default=O},91695:(e,t,r)=>{"use strict";Object.defineProperty(t,"A",{enumerable:!0,get:function(){return o.default}});var n,o=(n=r(86742))&&n.__esModule?n:{default:n}},16109:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function b(e,t,r){this.props=e,this.context=t,this.refs=m,this.updater=r||f}function y(){}function v(e,t,r){this.props=e,this.context=t,this.refs=m,this.updater=r||f}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=b.prototype;var _=v.prototype=new y;_.constructor=v,g(_,b.prototype),_.isPureReactComponent=!0;var w=Array.isArray,E=Object.prototype.hasOwnProperty,C={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,n){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:r,type:e,key:a,ref:s,props:i,_owner:C.current}}function I(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var O=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case r:case n:l=!0}}if(l)return a=a(l=e),e=""===i?"."+T(l,0):i,w(a)?(o="",null!=e&&(o=e.replace(O,"$&/")+"/"),A(a,t,o,"",(function(e){return e}))):null!=a&&(I(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",w(e))for(var c=0;c<e.length;c++){var u=i+T(s=e[c],c);l+=A(s,t,o,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=A(s=s.value,t,o,u=i+T(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function x(e,t,r){if(null==e)return e;var n=[],o=0;return A(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},N={transition:null},L={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:N,ReactCurrentOwner:C};function M(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:x,forEach:function(e,t,r){x(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return x(e,(function(){t++})),t},toArray:function(e){return x(e,(function(e){return e}))||[]},only:function(e){if(!I(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=o,t.Profiler=a,t.PureComponent=v,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.act=M,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=g({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=C.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)E.call(t,c)&&!S.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:r,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=I,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=M,t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,r){return R.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,r){return R.current.useReducer(e,t,r)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return R.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return R.current.useTransition()},t.version="18.3.1"},1986:(e,t,r)=>{"use strict";e.exports=r(16109)},46414:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),s=new x(n||[]);return o(a,"_invoke",{value:I(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var h="suspendedStart",p="suspendedYield",f="executing",g="completed",m={};function b(){}function y(){}function v(){}var _={};c(_,a,(function(){return this}));var w=Object.getPrototypeOf,E=w&&w(w(P([])));E&&E!==r&&n.call(E,a)&&(_=E);var C=v.prototype=b.prototype=Object.create(_);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function I(e,t,r){var n=h;return function(o,i){if(n===f)throw new Error("Generator is already running");if(n===g){if("throw"===o)throw i;return R()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var l=d(e,t,r);if("normal"===l.type){if(n=r.done?g:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n=g,r.method="throw",r.arg=l.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=d(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(e){if(e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:R}}function R(){return{value:t,done:!0}}return y.prototype=v,o(C,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},S(k.prototype),c(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new k(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(C),c(C,l,"Generator"),c(C,a,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=P,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},12010:e=>{"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},88072:function(e,t){var r,n,o;n=[],r=function(){"use strict";var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=void 0;void 0===r&&(r={modules:[]});var n=null;function o(e){var t=e.getBoundingClientRect(),r={};for(var n in t)r[n]=t[n];try{if(e.ownerDocument!==document){var i=e.ownerDocument.defaultView.frameElement;if(i){var a=o(i);r.top+=a.top,r.bottom+=a.top,r.left+=a.left,r.right+=a.left}}}catch(e){}return r}function i(e){var t=(getComputedStyle(e)||{}).position,r=[];if("fixed"===t)return[e];for(var n=e;(n=n.parentNode)&&n&&1===n.nodeType;){var o=void 0;try{o=getComputedStyle(n)}catch(e){}if(null==o)return r.push(n),r;var i=o,a=i.overflow,s=i.overflowX,l=i.overflowY;/(auto|scroll|overlay)/.test(a+l+s)&&("absolute"!==t||["relative","absolute","fixed"].indexOf(o.position)>=0)&&r.push(n)}return r.push(e.ownerDocument.body),e.ownerDocument!==document&&r.push(e.ownerDocument.defaultView),r}var a,s=(a=0,function(){return++a}),l={},c=function(){var e=n;e&&document.body.contains(e)||((e=document.createElement("div")).setAttribute("data-tether-id",s()),g(e.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(e),n=e);var t=e.getAttribute("data-tether-id");return void 0===l[t]&&(l[t]=o(e),C((function(){delete l[t]}))),l[t]};function u(){n&&document.body.removeChild(n),n=null}function d(e){var t=void 0;e===document?(t=document,e=document.documentElement):t=e.ownerDocument;var r=t.documentElement,n=o(e),i=c();return n.top-=i.top,n.left-=i.left,void 0===n.width&&(n.width=document.body.scrollWidth-n.left-n.right),void 0===n.height&&(n.height=document.body.scrollHeight-n.top-n.bottom),n.top=n.top-r.clientTop,n.left=n.left-r.clientLeft,n.right=t.body.clientWidth-n.width-n.left,n.bottom=t.body.clientHeight-n.height-n.top,n}function h(e){return e.offsetParent||document.documentElement}var p=null;function f(){if(p)return p;var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");g(t.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);var r=e.offsetWidth;t.style.overflow="scroll";var n=e.offsetWidth;r===n&&(n=t.clientWidth),document.body.removeChild(t);var o=r-n;return p={width:o,height:o}}function g(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=[];return Array.prototype.push.apply(t,arguments),t.slice(1).forEach((function(t){if(t)for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])})),e}function m(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.remove(t)}));else{var r=new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi"),n=v(e).replace(r," ");_(e,n)}}function b(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.add(t)}));else{m(e,t);var r=v(e)+" "+t;_(e,r)}}function y(e,t){if(void 0!==e.classList)return e.classList.contains(t);var r=v(e);return new RegExp("(^| )"+t+"( |$)","gi").test(r)}function v(e){return e.className instanceof e.ownerDocument.defaultView.SVGAnimatedString?e.className.baseVal:e.className}function _(e,t){e.setAttribute("class",t)}function w(e,t,r){r.forEach((function(r){-1===t.indexOf(r)&&y(e,r)&&m(e,r)})),t.forEach((function(t){y(e,t)||b(e,t)}))}var E=[],C=function(e){E.push(e)},S=function(){for(var e=void 0;e=E.pop();)e()},k=function(){function r(){t(this,r)}return e(r,[{key:"on",value:function(e,t,r){var n=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[e]&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:r,once:n})}},{key:"once",value:function(e,t,r){this.on(e,t,r,!0)}},{key:"off",value:function(e,t){if(void 0!==this.bindings&&void 0!==this.bindings[e])if(void 0===t)delete this.bindings[e];else for(var r=0;r<this.bindings[e].length;)this.bindings[e][r].handler===t?this.bindings[e].splice(r,1):++r}},{key:"trigger",value:function(e){if(void 0!==this.bindings&&this.bindings[e]){for(var t=0,r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];for(;t<this.bindings[e].length;){var i=this.bindings[e][t],a=i.handler,s=i.ctx,l=i.once,c=s;void 0===c&&(c=this),a.apply(c,n),l?this.bindings[e].splice(t,1):++t}}}}]),r}();r.Utils={getActualBoundingClientRect:o,getScrollParents:i,getBounds:d,getOffsetParent:h,extend:g,addClass:b,removeClass:m,hasClass:y,updateClasses:w,defer:C,flush:S,uniqueId:s,Evented:k,getScrollBarSize:f,removeUtilElements:u};var I=function(){function e(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=(e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),function(e,t,r){for(var n=!0;n;){var o=e,i=t,a=r;n=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,i);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(a)}var c=Object.getPrototypeOf(o);if(null===c)return;e=c,t=i,r=a,n=!0,s=c=void 0}});function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}if(void 0===r)throw new Error("You must include the utils.js file before tether.js");var i=(Q=r.Utils).getScrollParents,h=(d=Q.getBounds,Q.getOffsetParent),b=(g=Q.extend,Q.addClass),m=Q.removeClass,f=(w=Q.updateClasses,C=Q.defer,S=Q.flush,Q.getScrollBarSize),u=Q.removeUtilElements;function A(e,t){var r=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return e+r>=t&&t>=e-r}var x,P,R,N,L=function(){if("undefined"==typeof document)return"";for(var e=document.createElement("div"),t=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],r=0;r<t.length;++r){var n=t[r];if(void 0!==e.style[n])return n}}(),M=[],D=function(){M.forEach((function(e){e.position(!1)})),S()};function U(){return"object"==typeof performance&&"function"==typeof performance.now?performance.now():+new Date}x=null,P=null,R=null,N=function e(){if(void 0!==P&&P>16)return P=Math.min(P-16,250),void(R=setTimeout(e,250));void 0!==x&&U()-x<10||(null!=R&&(clearTimeout(R),R=null),x=U(),D(),P=U()-x)},"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach((function(e){window.addEventListener(e,N)}));var F={center:"center",left:"right",right:"left"},j={middle:"middle",top:"bottom",bottom:"top"},H={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},B=function(e,t){var r=e.left,n=e.top;return"auto"===r&&(r=F[t.left]),"auto"===n&&(n=j[t.top]),{left:r,top:n}},z=function(e){var t=e.left,r=e.top;return void 0!==H[e.left]&&(t=H[e.left]),void 0!==H[e.top]&&(r=H[e.top]),{left:t,top:r}};function q(){for(var e={top:0,left:0},t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){var r=t.top,n=t.left;"string"==typeof r&&(r=parseFloat(r,10)),"string"==typeof n&&(n=parseFloat(n,10)),e.top+=r,e.left+=n})),e}function K(e,t){return"string"==typeof e.left&&-1!==e.left.indexOf("%")&&(e.left=parseFloat(e.left,10)/100*t.width),"string"==typeof e.top&&-1!==e.top.indexOf("%")&&(e.top=parseFloat(e.top,10)/100*t.height),e}var V=function(e){var t=e.split(" "),r=I(t,2);return{top:r[0],left:r[1]}},G=V,W=function(n){function o(e){var n=this;t(this,o),O(Object.getPrototypeOf(o.prototype),"constructor",this).call(this),this.position=this.position.bind(this),M.push(this),this.history=[],this.setOptions(e,!1),r.modules.forEach((function(e){void 0!==e.initialize&&e.initialize.call(n)})),this.position()}return T(o,n),e(o,[{key:"getClass",value:function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0],t=this.options.classes;return void 0!==t&&t[e]?this.options.classes[e]:this.options.classPrefix?this.options.classPrefix+"-"+e:e}},{key:"setOptions",value:function(e){var t=this,r=arguments.length<=1||void 0===arguments[1]||arguments[1],n={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=g(n,e);var o=this.options,a=o.element,s=o.target,l=o.targetModifier;if(this.element=a,this.target=s,this.targetModifier=l,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach((function(e){if(void 0===t[e])throw new Error("Tether Error: Both element and target must be defined");void 0!==t[e].jquery?t[e]=t[e][0]:"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),b(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&b(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=G(this.options.targetAttachment),this.attachment=G(this.options.attachment),this.offset=V(this.options.offset),this.targetOffset=V(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=i(this.target),!1!==this.options.enabled&&this.enable(r)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return d(this.target);if("visible"===this.targetModifier)return this.target===document.body?{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}:((i={height:(e=d(this.target)).height,width:e.width,top:e.top,left:e.left}).height=Math.min(i.height,e.height-(pageYOffset-e.top)),i.height=Math.min(i.height,e.height-(e.top+e.height-(pageYOffset+innerHeight))),i.height=Math.min(innerHeight,i.height),i.height-=2,i.width=Math.min(i.width,e.width-(pageXOffset-e.left)),i.width=Math.min(i.width,e.width-(e.left+e.width-(pageXOffset+innerWidth))),i.width=Math.min(innerWidth,i.width),i.width-=2,i.top<pageYOffset&&(i.top=pageYOffset),i.left<pageXOffset&&(i.left=pageXOffset),i);if("scroll-handle"===this.targetModifier){var e=void 0,t=this.target;t===document.body?(t=document.documentElement,e={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):e=d(t);var r=getComputedStyle(t),n=0;(t.scrollWidth>t.clientWidth||[r.overflow,r.overflowX].indexOf("scroll")>=0||this.target!==document.body)&&(n=15);var o=e.height-parseFloat(r.borderTopWidth)-parseFloat(r.borderBottomWidth)-n,i={width:15,height:.975*o*(o/t.scrollHeight),left:e.left+e.width-parseFloat(r.borderLeftWidth)-15},a=0;o<408&&this.target===document.body&&(a=-11e-5*Math.pow(o,2)-.00727*o+22.58),this.target!==document.body&&(i.height=Math.max(i.height,24));var s=this.target.scrollTop/(t.scrollHeight-o);return i.top=s*(o-i.height-a)+e.top+parseFloat(r.borderTopWidth),this.target===document.body&&(i.height=Math.max(i.height,24)),i}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(e,t){return void 0===this._cache&&(this._cache={}),void 0===this._cache[e]&&(this._cache[e]=t.call(this)),this._cache[e]}},{key:"enable",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&b(this.target,this.getClass("enabled")),b(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach((function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)})),t&&this.position()}},{key:"disable",value:function(){var e=this;m(this.target,this.getClass("enabled")),m(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.position)}))}},{key:"destroy",value:function(){var e=this;this.disable(),M.forEach((function(t,r){t===e&&M.splice(r,1)})),0===M.length&&u()}},{key:"updateAttachClasses",value:function(e,t){var r=this;e=e||this.attachment,t=t||this.targetAttachment;var n=["left","top","bottom","right","middle","center"];void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var o=this._addAttachClasses;e.top&&o.push(this.getClass("element-attached")+"-"+e.top),e.left&&o.push(this.getClass("element-attached")+"-"+e.left),t.top&&o.push(this.getClass("target-attached")+"-"+t.top),t.left&&o.push(this.getClass("target-attached")+"-"+t.left);var i=[];n.forEach((function(e){i.push(r.getClass("element-attached")+"-"+e),i.push(r.getClass("target-attached")+"-"+e)})),C((function(){void 0!==r._addAttachClasses&&(w(r.element,r._addAttachClasses,i),!1!==r.options.addTargetClasses&&w(r.target,r._addAttachClasses,i),delete r._addAttachClasses)}))}},{key:"position",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var n=B(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,n);var o=this.cache("element-bounds",(function(){return d(e.element)})),i=o.width,a=o.height;if(0===i&&0===a&&void 0!==this.lastSize){var s=this.lastSize;i=s.width,a=s.height}else this.lastSize={width:i,height:a};var l=this.cache("target-bounds",(function(){return e.getTargetBounds()})),c=l,u=K(z(this.attachment),{width:i,height:a}),p=K(z(n),c),g=K(this.offset,{width:i,height:a}),m=K(this.targetOffset,c);u=q(u,g),p=q(p,m);for(var b=l.left+p.left-u.left,y=l.top+p.top-u.top,v=0;v<r.modules.length;++v){var _=r.modules[v].position.call(this,{left:b,top:y,targetAttachment:n,targetPos:l,elementPos:o,offset:u,targetOffset:p,manualOffset:g,manualTargetOffset:m,scrollbarSize:k,attachment:this.attachment});if(!1===_)return!1;void 0!==_&&"object"==typeof _&&(y=_.top,b=_.left)}var w={page:{top:y,left:b},viewport:{top:y-pageYOffset,bottom:pageYOffset-y-a+innerHeight,left:b-pageXOffset,right:pageXOffset-b-i+innerWidth}},E=this.target.ownerDocument,C=E.defaultView,k=void 0;return C.innerHeight>E.documentElement.clientHeight&&(k=this.cache("scrollbar-size",f),w.viewport.bottom-=k.height),C.innerWidth>E.documentElement.clientWidth&&(k=this.cache("scrollbar-size",f),w.viewport.right-=k.width),-1!==["","static"].indexOf(E.body.style.position)&&-1!==["","static"].indexOf(E.body.parentElement.style.position)||(w.page.bottom=E.body.scrollHeight-y-a,w.page.right=E.body.scrollWidth-b-i),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var t=e.cache("target-offsetparent",(function(){return h(e.target)})),r=e.cache("target-offsetparent-bounds",(function(){return d(t)})),n=getComputedStyle(t),o=r,i={};if(["Top","Left","Bottom","Right"].forEach((function(e){i[e.toLowerCase()]=parseFloat(n["border"+e+"Width"])})),r.right=E.body.scrollWidth-r.left-o.width+i.right,r.bottom=E.body.scrollHeight-r.top-o.height+i.bottom,w.page.top>=r.top+i.top&&w.page.bottom>=r.bottom&&w.page.left>=r.left+i.left&&w.page.right>=r.right){var a=t.scrollTop,s=t.scrollLeft;w.offset={top:w.page.top-r.top+a-i.top,left:w.page.left-r.left+s-i.left}}}(),this.move(w),this.history.unshift(w),this.history.length>3&&this.history.pop(),t&&S(),!0}}},{key:"move",value:function(e){var t=this;if(void 0!==this.element.parentNode){var r={};for(var n in e)for(var o in r[n]={},e[n]){for(var i=!1,a=0;a<this.history.length;++a){var s=this.history[a];if(void 0!==s[n]&&!A(s[n][o],e[n][o])){i=!0;break}}i||(r[n][o]=!0)}var l={top:"",left:"",right:"",bottom:""},c=function(e,r){if(!1!==(void 0!==t.options.optimizations?t.options.optimizations.gpu:null)){var n=void 0,o=void 0;e.top?(l.top=0,n=r.top):(l.bottom=0,n=-r.bottom),e.left?(l.left=0,o=r.left):(l.right=0,o=-r.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(o=Math.round(o*devicePixelRatio)/devicePixelRatio,n=Math.round(n*devicePixelRatio)/devicePixelRatio),l[L]="translateX("+o+"px) translateY("+n+"px)","msTransform"!==L&&(l[L]+=" translateZ(0)")}else e.top?l.top=r.top+"px":l.bottom=r.bottom+"px",e.left?l.left=r.left+"px":l.right=r.right+"px"},u=!1;if((r.page.top||r.page.bottom)&&(r.page.left||r.page.right)?(l.position="absolute",c(r.page,e.page)):(r.viewport.top||r.viewport.bottom)&&(r.viewport.left||r.viewport.right)?(l.position="fixed",c(r.viewport,e.viewport)):void 0!==r.offset&&r.offset.top&&r.offset.left?function(){l.position="absolute";var n=t.cache("target-offsetparent",(function(){return h(t.target)}));h(t.element)!==n&&C((function(){t.element.parentNode.removeChild(t.element),n.appendChild(t.element)})),c(r.offset,e.offset),u=!0}():(l.position="absolute",c({top:!0,left:!0},e.page)),!u)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var d=function(e){var t=e.ownerDocument;return(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)===e},p=!0,f=this.element.parentNode;f&&1===f.nodeType&&"BODY"!==f.tagName&&!d(f);){if("static"!==getComputedStyle(f).position){p=!1;break}f=f.parentNode}p||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var m={},b=!1;for(var o in l){var y=l[o];this.element.style[o]!==y&&(b=!0,m[o]=y)}b&&C((function(){g(t.element.style,m),t.trigger("repositioned")}))}}}]),o}(k);W.modules=[],r.position=D;var $=g(W,r);I=function(){function e(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=(Q=r.Utils).getBounds;var g=Q.extend,J=(w=Q.updateClasses,C=Q.defer,["left","top","right","bottom"]);function Y(e,t){return"scrollParent"===t?t=e.scrollParents[0]:"window"===t&&(t=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),t===document&&(t=t.documentElement),void 0!==t.nodeType&&function(){var e=t,r=d(t),n=r,o=getComputedStyle(t);if(t=[n.left,n.top,r.width+n.left,r.height+n.top],e.ownerDocument!==document){var i=e.ownerDocument.defaultView;t[0]+=i.pageXOffset,t[1]+=i.pageYOffset,t[2]+=i.pageXOffset,t[3]+=i.pageYOffset}J.forEach((function(e,r){"Top"===(e=e[0].toUpperCase()+e.substr(1))||"Left"===e?t[r]+=parseFloat(o["border"+e+"Width"]):t[r]-=parseFloat(o["border"+e+"Width"])}))}(),t}r.modules.push({position:function(e){var t=this,r=e.top,n=e.left,o=e.targetAttachment;if(!this.options.constraints)return!0;var i=this.cache("element-bounds",(function(){return d(t.element)})),a=i.height,s=i.width;if(0===s&&0===a&&void 0!==this.lastSize){var l=this.lastSize;s=l.width,a=l.height}var c=this.cache("target-bounds",(function(){return t.getTargetBounds()})),u=c.height,h=c.width,p=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach((function(e){var t=e.outOfBoundsClass,r=e.pinnedClass;t&&p.push(t),r&&p.push(r)})),p.forEach((function(e){["left","top","right","bottom"].forEach((function(t){p.push(e+"-"+t)}))}));var f=[],m=g({},o),b=g({},this.attachment);return this.options.constraints.forEach((function(e){var i=e.to,l=e.attachment,c=e.pin;void 0===l&&(l="");var d=void 0,p=void 0;if(l.indexOf(" ")>=0){var g=l.split(" "),y=I(g,2);p=y[0],d=y[1]}else d=p=l;var v=Y(t,i);"target"!==p&&"both"!==p||(r<v[1]&&"top"===m.top&&(r+=u,m.top="bottom"),r+a>v[3]&&"bottom"===m.top&&(r-=u,m.top="top")),"together"===p&&("top"===m.top&&("bottom"===b.top&&r<v[1]?(r+=u,m.top="bottom",r+=a,b.top="top"):"top"===b.top&&r+a>v[3]&&r-(a-u)>=v[1]&&(r-=a-u,m.top="bottom",b.top="bottom")),"bottom"===m.top&&("top"===b.top&&r+a>v[3]?(r-=u,m.top="top",r-=a,b.top="bottom"):"bottom"===b.top&&r<v[1]&&r+(2*a-u)<=v[3]&&(r+=a-u,m.top="top",b.top="top")),"middle"===m.top&&(r+a>v[3]&&"top"===b.top?(r-=a,b.top="bottom"):r<v[1]&&"bottom"===b.top&&(r+=a,b.top="top"))),"target"!==d&&"both"!==d||(n<v[0]&&"left"===m.left&&(n+=h,m.left="right"),n+s>v[2]&&"right"===m.left&&(n-=h,m.left="left")),"together"===d&&(n<v[0]&&"left"===m.left?"right"===b.left?(n+=h,m.left="right",n+=s,b.left="left"):"left"===b.left&&(n+=h,m.left="right",n-=s,b.left="right"):n+s>v[2]&&"right"===m.left?"left"===b.left?(n-=h,m.left="left",n-=s,b.left="right"):"right"===b.left&&(n-=h,m.left="left",n+=s,b.left="left"):"center"===m.left&&(n+s>v[2]&&"left"===b.left?(n-=s,b.left="right"):n<v[0]&&"right"===b.left&&(n+=s,b.left="left"))),"element"!==p&&"both"!==p||(r<v[1]&&"bottom"===b.top&&(r+=a,b.top="top"),r+a>v[3]&&"top"===b.top&&(r-=a,b.top="bottom")),"element"!==d&&"both"!==d||(n<v[0]&&("right"===b.left?(n+=s,b.left="left"):"center"===b.left&&(n+=s/2,b.left="left")),n+s>v[2]&&("left"===b.left?(n-=s,b.left="right"):"center"===b.left&&(n-=s/2,b.left="right"))),"string"==typeof c?c=c.split(",").map((function(e){return e.trim()})):!0===c&&(c=["top","left","right","bottom"]),c=c||[];var _,w,E=[],C=[];r<v[1]&&(c.indexOf("top")>=0?(r=v[1],E.push("top")):C.push("top")),r+a>v[3]&&(c.indexOf("bottom")>=0?(r=v[3]-a,E.push("bottom")):C.push("bottom")),n<v[0]&&(c.indexOf("left")>=0?(n=v[0],E.push("left")):C.push("left")),n+s>v[2]&&(c.indexOf("right")>=0?(n=v[2]-s,E.push("right")):C.push("right")),E.length&&(_=void 0,_=void 0!==t.options.pinnedClass?t.options.pinnedClass:t.getClass("pinned"),f.push(_),E.forEach((function(e){f.push(_+"-"+e)}))),C.length&&(w=void 0,w=void 0!==t.options.outOfBoundsClass?t.options.outOfBoundsClass:t.getClass("out-of-bounds"),f.push(w),C.forEach((function(e){f.push(w+"-"+e)}))),(E.indexOf("left")>=0||E.indexOf("right")>=0)&&(b.left=m.left=!1),(E.indexOf("top")>=0||E.indexOf("bottom")>=0)&&(b.top=m.top=!1),m.top===o.top&&m.left===o.left&&b.top===t.attachment.top&&b.left===t.attachment.left||(t.updateAttachClasses(b,m),t.trigger("update",{attachment:b,targetAttachment:m}))})),C((function(){!1!==t.options.addTargetClasses&&w(t.target,f,p),w(t.element,f,p)})),{top:r,left:n}}});var Q,d=(Q=r.Utils).getBounds,w=Q.updateClasses;return C=Q.defer,r.modules.push({position:function(e){var t=this,r=e.top,n=e.left,o=this.cache("element-bounds",(function(){return d(t.element)})),i=o.height,a=o.width,s=this.getTargetBounds(),l=r+i,c=n+a,u=[];r<=s.bottom&&l>=s.top&&["left","right"].forEach((function(e){var t=s[e];t!==n&&t!==c||u.push(e)})),n<=s.right&&c>=s.left&&["top","bottom"].forEach((function(e){var t=s[e];t!==r&&t!==l||u.push(e)}));var h=[],p=[],f=["left","top","right","bottom"];return h.push(this.getClass("abutted")),f.forEach((function(e){h.push(t.getClass("abutted")+"-"+e)})),u.length&&p.push(this.getClass("abutted")),u.forEach((function(e){p.push(t.getClass("abutted")+"-"+e)})),C((function(){!1!==t.options.addTargetClasses&&w(t.target,p,h),w(t.element,p,h)})),!0}}),I=function(){function e(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r.modules.push({position:function(e){var t=e.top,r=e.left;if(this.options.shift){var n=this.options.shift;"function"==typeof this.options.shift&&(n=this.options.shift.call(this,{top:t,left:r}));var o=void 0,i=void 0;if("string"==typeof n){(n=n.split(" "))[1]=n[1]||n[0];var a=I(n,2);o=a[0],i=a[1],o=parseFloat(o,10),i=parseFloat(i,10)}else o=n.top,i=n.left;return{top:t+=o,left:r+=i}}}}),$},void 0===(o="function"==typeof r?r.apply(t,n):r)||(e.exports=o)},73389:e=>{"use strict";var t=function(){};e.exports=t},58631:()=>{window.Element.prototype.closest=function(e){window.Element.prototype.matches||(window.Element.prototype.matches=window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector);let t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}},78444:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,i(r)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()}},__webpack_module_cache__={};function __nested_webpack_require_646968__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__nested_webpack_require_646968__),r.loaded=!0,r.exports}__nested_webpack_require_646968__.amdO={},__nested_webpack_require_646968__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __nested_webpack_require_646968__.d(t,{a:t}),t},__nested_webpack_require_646968__.d=(e,t)=>{for(var r in t)__nested_webpack_require_646968__.o(t,r)&&!__nested_webpack_require_646968__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__nested_webpack_require_646968__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__nested_webpack_require_646968__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__nested_webpack_require_646968__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__nested_webpack_require_646968__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__={};(()=>{"use strict";var e=__nested_webpack_require_646968__(1986),t=__nested_webpack_require_646968__(62275),r=__nested_webpack_require_646968__(57825),n=__nested_webpack_require_646968__.n(r);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},{"be.accessStatsPermissionsError":"Sorry, you do not have permission to see the access stats for this file.","be.activityFeed.fullDateTime":"{time, date, full} at {time, time, short}","be.activityFeedItemApiError":"There was a problem loading the activity feed. Please refresh the page or try again later.","be.activitySidebar.activityFeed.annotationMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.commentMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.feedInlineErrorTitle":"Error","be.activitySidebar.activityFeed.hideReplies":"Hide replies","be.activitySidebar.activityFeed.reply":"Reply","be.activitySidebar.activityFeed.replyInThread":"Reply in thread","be.activitySidebar.activityFeed.showReplies":"See {repliesToLoadCount, plural, one {# reply} other {# replies}}","be.activitySidebar.activityFeed.taskMissingError":"This task no longer exists","be.activitySidebarFilter.status.allActivity":"All Activity","be.activitySidebarFilter.status.allComments":"All Comments","be.activitySidebarFilter.status.open":"Unresolved Comments","be.activitySidebarFilter.status.resolved":"Resolved Comments","be.activitySidebarFilter.status.tasks":"Tasks","be.add":"Add","be.additionalTab.blockedByShieldAccessPolicy":"Use of this app is blocked due to a security policy.","be.annotationThread.errorDeleteAnnotation":"There was an error deleting this item.","be.annotationThread.errorEditAnnotation":"This annotation could not be modified.","be.annotattionThread.errorFetchAnnotation":"The annotation could not be fetched.","be.api.appActivityDeleteErrorMessage":"There was an error deleting this item.","be.api.commentCreateConflictMessage":"This comment already exists.","be.api.commentCreateErrorMessage":"There was an error creating this comment.","be.api.commentDeleteErrorMessage":"There was an error deleting this comment.","be.api.commentUpdateErrorMessage":"This comment could not be modified.","be.api.repliesFetchErrorMessage":"The replies to this comment could not be loaded.","be.api.taskActionErrorTitle":"Error","be.api.taskApproveErrorMessage":"An error has occurred while approving this task. Please refresh the page and try again.","be.api.taskCompleteErrorMessage":"An error has occurred while completing this task. Please refresh the page and try again.","be.api.taskCreateErrorMessage":"An error occurred while creating this task. Please try again.","be.api.taskDeleteErrorMessage":"There was an error while deleting this task. Please refresh the page and try again.","be.api.taskGroupExceedsWarningTitle":"One or more groups can not receive this task as a group size cannot exceed the limit of {max} assignees per group.","be.api.taskRejectErrorMessage":"An error has occurred while rejecting this task. Please refresh the page and try again.","be.appActivity.altIcon":"{appActivityName} Icon","be.appActivity.deleteMenuItem":"Delete","be.appActivity.deletePrompt":"Are you sure you want to permanently delete this app activity?","be.back":"Back","be.bookmark":"Bookmark","be.boxEditBlacklistedError":"This file cannot be opened locally","be.boxEditErrorBlockedByPolicy":"Local editing of this content has been disabled based on an access policy","be.boxToolsInstallMessage":"Install {boxTools} to open this file on your desktop","be.cancel":"Cancel","be.choose":"Choose","be.close":"Close","be.collaboratedFolder":"Collaborated Folder","be.collapse":"Collapse","be.contentInsights.contentAnalyticsErrorText":"There was a problem loading content insights. Please try again.","be.contentInsights.contentAnalyticsPermissionError":"Oops! You no longer have access to view content insights.","be.contentInsights.contentInsightsTitle":"Content Insights","be.contentInsights.downloadGraphLabel":"Chart displaying the number of downloads over the selected time period","be.contentInsights.downloadGraphType":"DOWNLOADS","be.contentInsights.openContentInsightsButton":"See Details","be.contentInsights.peopleGraphLabel":"Chart displaying the number of users over the selected time period","be.contentInsights.peopleTitle":"PEOPLE","be.contentInsights.previewGraphLabel":"Chart displaying the number of previews over the selected time period","be.contentInsights.previewGraphType":"PREVIEWS","be.contentInsights.trendDown":"Trending down","be.contentInsights.trendMonth":"PAST MONTH","be.contentInsights.trendThreeMonths":"PAST 3 MONTHS","be.contentInsights.trendUp":"Trending up","be.contentInsights.trendWeek":"PAST WEEK","be.contentInsights.trendYear":"PAST YEAR","be.contentSharing.badRequestError":"The request for this item was malformed.","be.contentSharing.collaboratorsLoadingError":"Could not retrieve collaborators for this item.","be.contentSharing.getContactsError":"Could not retrieve contacts.","be.contentSharing.loadingError":"Could not load shared link for this item.","be.contentSharing.noAccessError":"You do not have access to this item.","be.contentSharing.notFoundError":"Could not find shared link for this item.","be.contentSharing.sendInvitesError":"Could not send invites.","be.contentSharing.sendInvitesSuccess":"Successfully invited collaborators.","be.contentSharing.sharedLinkRemovalSuccess":"The shared link for this item was removed.","be.contentSharing.sharedLinkSettingsUpdateSuccess":"The shared link for this item was successfully updated.","be.contentSharing.sharedLinkUpdateError":"Could not update the shared link for this item.","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.annotationActivity.annotationActivityEditMenuItem":"Modify","be.contentSidebar.activityFeed.annotationActivity.annotationActivityPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.annotationActivity.annotationActivityResolveMenuItem":"Resolve","be.contentSidebar.activityFeed.annotationActivity.annotationActivityUnresolveMenuItem":"Unresolve","be.contentSidebar.activityFeed.annotationActivityPageItem":"Page {number}","be.contentSidebar.activityFeed.annotationActivityVersionLink":"Version {number}","be.contentSidebar.activityFeed.annotationActivityVersionUnavailable":"Version Unavailable","be.contentSidebar.activityFeed.comment.commentDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.comment.commentDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.comment.commentEditMenuItem":"Modify","be.contentSidebar.activityFeed.comment.commentPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.comment.commentResolveMenuItem":"Resolve","be.contentSidebar.activityFeed.comment.commentUnresolveMenuItem":"Unresolve","be.contentSidebar.activityFeed.comment.hideReplies":"Hide replies","be.contentSidebar.activityFeed.comment.inlineCommentAnnotationIconTitle":"Inline Comment","be.contentSidebar.activityFeed.comment.reply":"Reply","be.contentSidebar.activityFeed.comment.replyInThread":"Reply in thread","be.contentSidebar.activityFeed.comment.showReplies":"See {repliesToLoadCount, plural, one {# reply} other {# replies}}","be.contentSidebar.activityFeed.commentForm.approvalAddAssignee":"Add an assignee","be.contentSidebar.activityFeed.commentForm.approvalAddTask":"Add Task","be.contentSidebar.activityFeed.commentForm.approvalAddTaskTooltip":"Assigning a task to someone will send them a notification with the message in the comment box and allow them to approve or deny.","be.contentSidebar.activityFeed.commentForm.approvalAssignees":"Assignees","be.contentSidebar.activityFeed.commentForm.approvalDueDate":"Due Date","be.contentSidebar.activityFeed.commentForm.approvalSelectDate":"Select a date","be.contentSidebar.activityFeed.commentForm.atMentionTip":"@mention users to notify them.","be.contentSidebar.activityFeed.commentForm.atMentionTipDescription":"Use the @ symbol to mention users and use the up and down arrow keys to scroll through autocomplete suggestions.","be.contentSidebar.activityFeed.commentForm.commentCancel":"Cancel","be.contentSidebar.activityFeed.commentForm.commentLabel":"Write a comment","be.contentSidebar.activityFeed.commentForm.commentPost":"Post","be.contentSidebar.activityFeed.commentForm.commentWrite":"Write a comment","be.contentSidebar.activityFeed.commmon.showOriginalMessage":"Show Original","be.contentSidebar.activityFeed.common.activityStatusResolved":"RESOLVED","be.contentSidebar.activityFeed.common.editedMessage":" (edited)","be.contentSidebar.activityFeed.common.seeLessMessage":"See less","be.contentSidebar.activityFeed.common.seeMoreMessage":"See more","be.contentSidebar.activityFeed.common.translateMessage":"Translate","be.contentSidebar.activityFeed.task.approvalTaskAnnotationIconTitle":"Approval Task","be.contentSidebar.activityFeed.task.generalTaskAnnotationIconTitle":"General Task","be.contentSidebar.activityFeed.task.taskAnyAffordanceTooltip":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.task.taskDeleteMenuItem":"Delete task","be.contentSidebar.activityFeed.task.taskDeletePrompt":"Are you sure you want to permanently delete this task?","be.contentSidebar.activityFeed.task.taskEditMenuItem":"Modify task","be.contentSidebar.activityFeed.task.taskMultipleFilesAffordanceTooltip":"There are multiple files associated with this task","be.contentSidebar.activityFeed.taskForm.taskAnyCheckboxLabel":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.taskForm.taskAnyInfoGroupTooltip":"Selecting this option will require only one assignee to complete this task. This will include assignees across all groups.","be.contentSidebar.activityFeed.taskForm.taskAnyInfoTooltip":"By default, all assignees are required to take action before a task is complete. Selecting this option will require only one assignee to complete this task.","be.contentSidebar.activityFeed.taskForm.taskApprovalAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now approved.","be.contentSidebar.activityFeed.taskForm.taskCreateErrorTitle":"Error","be.contentSidebar.activityFeed.taskForm.taskCreateGroupLabel":"Group","be.contentSidebar.activityFeed.taskForm.taskEditWarningTitle":"Task Updated with Errors","be.contentSidebar.activityFeed.taskForm.taskGeneralAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now completed.","be.contentSidebar.activityFeed.taskForm.taskGroupExceedsWarningTitle":"Exceeded max assignees per group","be.contentSidebar.activityFeed.taskForm.taskUpdateErrorMessage":"An error occurred while modifying this task. Please try again.","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormCancelLabel":"Cancel","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormDueDateLabel":"Due Date","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormMessageLabel":"Message","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSelectAssigneesLabel":"Select Assignees","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSubmitLabel":"Create","be.contentSidebar.activityFeed.taskForm.tasksEditTaskFormSubmitLabel":"Update","be.contentSidebar.activityFeed.taskNew.taskAssignmentCompleted":"Completed","be.contentSidebar.activityFeed.taskNew.taskCollaboratorLoadErrorMessage":"An error has occurred while loading collaborators for this task. Please try again.","be.contentSidebar.activityFeed.taskNew.taskDueDateLabel":"Due: {date}","be.contentSidebar.activityFeed.taskNew.taskFeedStatusDue":"DUE {dateTime}","be.contentSidebar.activityFeed.taskNew.taskShowLessAssignees":"Show Less","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssignees":"Show {additionalAssigneeCount} More","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssigneesOverflow":"{additionalAssigneeCount, plural, one {Show #+ More} other {Show #+ More}}","be.contentSidebar.activityFeed.taskNew.tasksFeedApproveAction":"Approve","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedLabel":"Approved","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedUppercaseLabel":"APPROVED","be.contentSidebar.activityFeed.taskNew.tasksFeedAssigneeListTitle":"Assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedCompleteAction":"Mark as Complete","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedLabel":"Completed","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedUppercaseLabel":"COMPLETED","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApproval":"{user} assigned an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApprovalCurrentUser":"{user} assigned you an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneral":"{user} assigned a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneralCurrentUser":"{user} assigned you a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressLabel":"In Progress","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressUppercaseLabel":"IN PROGRESS","be.contentSidebar.activityFeed.taskNew.tasksFeedMoreAssigneesLabel":"See all assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectAction":"Reject","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedLabel":"Rejected","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedUppercaseLabel":"REJECTED","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusApproved":"Approved {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusCompleted":"Completed {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusRejected":"Rejected {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedViewDetailsAction":"View Task Details","be.contentSidebar.addTask":"Add Task","be.contentSidebar.addTask.approval":"Approval Task","be.contentSidebar.addTask.approval.description":"Assignees will be responsible for approving or rejecting tasks","be.contentSidebar.addTask.approval.title":"Create Approval Task","be.contentSidebar.addTask.general":"General Task","be.contentSidebar.addTask.general.description":"Assignees will be responsible for marking tasks as complete","be.contentSidebar.addTask.general.title":"Create General Task","be.contentSidebar.boxSignFtuxBody":"Sign documents or send signature requests, right from where your content lives","be.contentSidebar.boxSignFtuxTitle":"Box Sign - Secure, seamless e-signatures in Box","be.contentSidebar.boxSignRequest":"Request Signature","be.contentSidebar.boxSignRequestSignature":"Request Signature","be.contentSidebar.boxSignSecurityBlockedTooltip":"This action is unavailable due to a security policy.","be.contentSidebar.boxSignSignMyself":"Sign Myself","be.contentSidebar.boxSignSignature":"Sign","be.contentSidebar.boxSignWatermarkBlockedTooltip":"This action is unavailable, because the file is watermarked.","be.contentSidebar.editTask.approval.title":"Modify Approval Task","be.contentSidebar.editTask.general.title":"Modify General Task","be.copy":"Copy","be.create":"Create","be.createDialogErrorInUse":"A folder with the same name already exists.","be.createDialogErrorInvalid":"This is an invalid folder name.","be.createDialogErrorTooLong":"This folder name is too long.","be.createDialogLabel":"New Folder","be.createDialogText":"Please enter a name.","be.currentUserErrorHeaderMessage":"Something went wrong when fetching the current user.","be.dateASC":"Date: Oldest → Newest","be.dateDESC":"Date: Newest → Oldest","be.defaultErrorMaskHeaderMessage":"We’re sorry, something went wrong.","be.defaultErrorMaskSubHeaderMessage":"Please refresh the page or try again later.","be.defaultInlineErrorContentMessage":"Please try again later.","be.defaultOpenWithDescription":"Open this file with a partner service","be.defaultSkill":"Skill Card","be.delete":"Delete","be.deleteDialogFileText":"Are you sure you want to delete {name}?","be.deleteDialogFolderText":"Are you sure you want to delete {name} and all its contents?","be.deleteDialogLabel":"Confirm Delete","be.description":"Description","be.descriptionPlaceholder":"Enter a description","be.docGenSidebar.docGenTags":"Doc Gen Tags","be.docGenSidebar.emptyTags":"This document has no tags","be.docGenSidebar.errorTags":"We couldn't load the tags","be.docGenSidebar.imageTags":"Image tags","be.docGenSidebar.refreshButton":"Refresh","be.docGenSidebar.refreshPrompt":"Please refresh the list.","be.docGenSidebar.textTags":"Text tags","be.download":"Download","be.drawAnnotation":"Drawing annotation mode","be.editLabel":"Edit","be.emptyOpenWithDescription":"No integrations are available for this file","be.error":"Error","be.errorBreadcrumb":"Error","be.errorOccured":"An error occurred","be.errorOpenWithDescription":"Opening this file with other services is currently unavailable","be.errorState":"A network error has occurred while trying to load.","be.executeIntegrationOpenWithErrorHeader":"We’re sorry, this integration is currently unavailable.","be.executeIntegrationOpenWithErrorSubHeader":"Please try again later.","be.expand":"Expand","be.externalFolder":"External Folder","be.faceSkill":"Faces","be.feedbackCtaText":"Click to provide feedback","be.feedbackFormDescription":"Beta Feedback Form","be.file":"File","be.fileAccessStatsErrorHeaderMessage":"Something went wrong when fetching the access stats.","be.fileClassificationErrorHeaderMessage":"Something went wrong when fetching classification.","be.fileDescriptionInlineErrorTitleMessage":"Something went wrong when saving the description.","be.fileRequestDisplayName":"File Request","be.folderState":"There are no items in this folder.","be.getVersionInfo":"Get version information","be.gridView":"Switch to Grid View","be.gridView.columnSize":"Column size","be.gridView.decreaseColumnSize":"Decrease column size","be.gridView.increaseColumnSize":"Increase column size","be.in":"In","be.interactedDate":"Last accessed on {date}","be.itemCreated":"Created","be.itemInteracted":"Last Accessed","be.itemModified":"Modified","be.itemName":"Name","be.itemOwner":"Owner","be.itemSize":"Size","be.itemUploader":"Uploader","be.keywordSkill":"Topics","be.keywordsAppliedList":"Keywords were applied","be.keywordsList":"Keywords: {words}","be.listView":"Switch to List View","be.loadingState":"Please wait while the items load...","be.logo":"Logo","be.max":"max","be.messageCenter.all":"All","be.messageCenter.boxEducation":"Box Education","be.messageCenter.errorFetchingPosts":"Sorry, we are having trouble showing posts at the moment. It may help to refresh the page.","be.messageCenter.events":"Events","be.messageCenter.noPosts":"There are no posts for this category at the moment.","be.messageCenter.previewError":"Sorry, we're having trouble showing this image. ","be.messageCenter.product":"Product","be.messageCenter.title":"What's New","be.metadataState":"There are no items in this folder.","be.modifiedDate":"Modified {date}","be.modifiedDateBy":"Modified {date} by {name}","be.moreOptions":"More options","be.nameASC":"Name: A → Z","be.nameDESC":"Name: Z → A","be.nameDate":"{date} by {name}","be.newFolder":"New Folder","be.nextFile":"Next File","be.nextSegment":"Next Segment","be.noActivity":"No activity to show","be.noActivityAnnotationPrompt":"Hover over the preview and use the controls at the bottom to annotate the file.","be.noActivityCommentPrompt":"Comment and @mention people to notify them.","be.open":"Open","be.pagination.nextPage":"Next Page","be.pagination.pageStatus":"{pageNumber} of {pageCount}","be.pagination.previousPage":"Previous Page","be.personalFolder":"Personal Folder","be.pointAnnotation":"Point annotation mode","be.preview":"Preview","be.previewError":"This preview didn’t load. Please try to open or download the file to view.","be.previewErrorBlockedByPolicy":"Your access to this content is restricted due to a security policy.","be.previewUpdate":"A new version of this file is available.","be.previousFile":"Previous File","be.previousSegment":"Previous Segment","be.print":"Print","be.priorCollaborator":"A Prior Collaborator","be.recentsBreadcrumb":"Recents","be.recentsState":"There are no recent items yet.","be.reload":"Reload","be.remove":"Remove","be.rename":"Rename","be.renameDialogErrorInUse":"An item with the same name already exists.","be.renameDialogErrorInvalid":"This name is invalid.","be.renameDialogErrorTooLong":"This name is too long.","be.renameDialogLabel":"Rename","be.renameDialogText":"Please enter a new name for {name}:","be.resume":"Resume","be.resumeAll":"Resume All","be.retry":"Retry","be.rootBreadcrumb":"All Files","be.save":"Save","be.searchBreadcrumb":"Search Results","be.searchPlaceholder":"Search files and folders","be.searchState":"Sorry, we couldn’t find what you’re looking for.","be.selected":"{count} Selected","be.selectedBreadcrumb":"Selected Items","be.selectedState":"You haven’t selected any items yet.","be.share":"Share","be.shareAccessCollab":"Access: People in this folder","be.shareAccessCompany":"People in this company","be.shareAccessNone":"No shared link","be.shareAccessOpen":"Access: People with the link","be.shareAccessRemove":"Remove shared link","be.shareDialogLabel":"Share","be.shareDialogNone":"None","be.shareDialogText":"Shared Link:","be.sidebarAccessStats":"Access Stats","be.sidebarActivityTitle":"Activity","be.sidebarContentInsights":"Content Insights","be.sidebarDetailsTitle":"Details","be.sidebarDocGenTitle":"Doc Gen Tags","be.sidebarDocGenTooltip":"Box Doc Gen","be.sidebarFileFetchingErrorContent":"An error has occurred while fetching your Box file. Please refresh the page and try again.","be.sidebarHide":"Hide Sidebar","be.sidebarMetadataEditingErrorContent":"An error has occurred while updating metadata. Please refresh the page and try again.","be.sidebarMetadataFetchingErrorContent":"An error has occurred while fetching metadata. Please refresh the page and try again.","be.sidebarMetadataTitle":"Metadata","be.sidebarNavLabel":"Sidebar","be.sidebarProperties":"File Properties","be.sidebarShow":"Show Sidebar","be.sidebarSkillsErrorContent":"An error has occurred while updating skills. Please refresh the page and try again.","be.sidebarSkillsErrorTitle":"Skills Error","be.sidebarSkillsTitle":"Skills","be.sidebarVersions.current":"Current Version","be.sidebarVersions.delete":"Delete","be.sidebarVersions.deleteError":"File version could not be deleted.","be.sidebarVersions.deletedBy":"Deleted by {name}","be.sidebarVersions.disabledByRetention":"Disabled by retention policy","be.sidebarVersions.download":"Download","be.sidebarVersions.downloadError":"File version could not be downloaded.","be.sidebarVersions.empty":"No prior versions are available for this file.","be.sidebarVersions.fetchError":"File versions could not be retrieved.","be.sidebarVersions.fileRequestDisplayName":"File Request","be.sidebarVersions.notAvailable":"Sorry, version history is not available with your current account plan. To access versioning, select from one of our paid plans.","be.sidebarVersions.preview":"Preview","be.sidebarVersions.priorWeek":"Last Week","be.sidebarVersions.promote":"Make Current","be.sidebarVersions.promoteError":"File version could not be made current.","be.sidebarVersions.promotedBy":"Promoted from v{versionPromoted} by {name}","be.sidebarVersions.restore":"Restore","be.sidebarVersions.restoreError":"File version could not be restored.","be.sidebarVersions.restoredBy":"Restored by {name}","be.sidebarVersions.serverError":"Server Error","be.sidebarVersions.thisMonth":"This Month","be.sidebarVersions.title":"Version History","be.sidebarVersions.today":"Today","be.sidebarVersions.toggle":"Toggle Actions Menu","be.sidebarVersions.upgradeButton":"Upgrade","be.sidebarVersions.upgradeLink":"Upgrade Now","be.sidebarVersions.uploadedBy":"Uploaded by {name}","be.sidebarVersions.versionLimitExceeded":"You are limited to the last {versionLimit, number} {versionLimit, plural, one {version} other {versions}}.","be.sidebarVersions.versionMaxEntries":"Version history is limited to the last {maxVersions} entries.","be.sidebarVersions.versionNumberBadge":"V{versionNumber}","be.sidebarVersions.versionNumberLabel":"Version number {versionNumber}","be.sidebarVersions.versionRetentionDelete":"Will be deleted {time} by retention policy.","be.sidebarVersions.versionRetentionIndefinite":"Retained indefinitely by retention policy.","be.sidebarVersions.versionRetentionRemove":"Retention policy expires on {time}.","be.sidebarVersions.versionUpsell":"Sorry, version history is not available with your current account plan. To access versioning, select from one of our paid plans.","be.sidebarVersions.versionUserUnknown":"Unknown","be.sidebarVersions.yesterday":"Yesterday","be.sizeASC":"Size: Smallest → Largest","be.sizeDESC":"Size: Largest → Smallest","be.skillFileProcessingError":"We’re sorry, something went wrong with processing the file.","be.skillInvalidFileExtensionError":"We’re sorry, no skills information was found. This file extension is currently not supported.","be.skillInvalidFileSizeError":"We’re sorry, no skills information was found. This file size is currently not supported.","be.skillInvokedStatus":"We’re preparing to process your file - please hold!","be.skillNoInfoFoundError":"We’re sorry, no skills information was found.","be.skillPendingStatus":"We’re working on processing your file - please hold!","be.skillUnknownError":"Something went wrong with running this skill or fetching its data.","be.sort":"Sort","be.statusSkill":"Status","be.today":"today","be.topicsSkill":"Topics","be.transcriptEdit":"Click any section to edit.","be.transcriptSkill":"Transcript","be.upload":"Upload","be.uploadEmptyFileInput":"Browse your device","be.uploadEmptyFolderInput":"Select Folders","be.uploadEmptyWithFolderUploadDisabled":"Drag and drop files","be.uploadEmptyWithFolderUploadEnabled":"Drag and drop files and folders","be.uploadError":"A network error has occurred while trying to upload.","be.uploadErrorTooManyFiles":"You can only upload up to {fileLimit} file(s) at a time.","be.uploadInProgress":"Drag and drop to add additional files","be.uploadNoDragDrop":"Select files from your device","be.uploadOptions":"{option1} or {option2}","be.uploadSuccess":"Success! Your files have been uploaded.","be.uploadSuccessFileInput":"Select More Files","be.uploadSuccessFolderInput":"Select More Folders","be.uploadsCancelButtonTooltip":"Cancel this upload","be.uploadsDefaultErrorMessage":"Something went wrong with the upload. Please try again.","be.uploadsFileSizeLimitExceededErrorMessage":"File size exceeds the folder owner’s file size limit","be.uploadsFileSizeLimitExceededErrorMessageForUpgradeCta":"This file exceeds your plan’s upload limit. Upgrade now to store larger files.","be.uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta":"Upgrade","be.uploadsItemNameInUseErrorMessage":"A file with this name already exists.","be.uploadsManagerUploadComplete":"Completed","be.uploadsManagerUploadFailed":"Some Uploads Failed","be.uploadsManagerUploadInProgress":"Uploading","be.uploadsManagerUploadPrompt":"Drop files on this page to upload them into this folder.","be.uploadsOneOrMoreChildFoldersFailedToUploadMessage":"One or more child folders failed to upload.","be.uploadsPackageUploadErrorMessage":"Failed to upload package file. Please retry by saving as a single file.","be.uploadsPendingFolderSizeLimitErrorMessage":"Pending app folder size limit exceeded","be.uploadsProvidedFolderNameInvalidMessage":"Provided folder name, {name}, could not be used to create a folder.","be.uploadsRetryButtonTooltip":"Retry upload","be.uploadsStorageLimitErrorMessage":"Account storage limit reached","be.versionDeleted":"{name} deleted v{version_number}","be.versionMultipleUsersUploaded":"{numberOfCollaborators} collaborators uploaded v{versions}","be.versionPromoted":"{name} promoted v{version_promoted} to v{version_number}","be.versionRestored":"{name} restored v{version_number}","be.versionUploadCollapsed":"{name} uploaded v{versions}","be.versionUploaded":"{name} uploaded v{version_number}","be.yesterday":"yesterday","boxui.accessStats.accessStatsComments":"Comments","boxui.accessStats.accessStatsDownloads":"Downloads","boxui.accessStats.accessStatsEdits":"Edits","boxui.accessStats.accessStatsPreviews":"Previews","boxui.accessStats.accessStatsViewDetails":"View Details","boxui.accessStats.accessStatsViews":"Views","boxui.advancedContentInsights.advancedContentInsightsDescription":"Get actionable insights into how viewers are engaging with this content. Measure average time spent, page-by-page engagement, per person and per visit details.","boxui.advancedContentInsights.advancedContentInsightsTitleDisabled":"Activate Engagement Insights","boxui.advancedContentInsights.advancedContentInsightsTitleEnabled":"Engagement Insights is activated","boxui.avatar.externalUser":"External user","boxui.badges.beta":"BETA","boxui.badges.trial":"TRIAL","boxui.badges.upgrade":"UPGRADE","boxui.base.nextMonth":"Next Month","boxui.base.previousMonth":"Previous Month","boxui.breadcrumb.breadcrumbLabel":"Breadcrumb","boxui.categorySelector.label.more":"More","boxui.checkboxTooltip.iconInfoText":"Info","boxui.classification.add":"Add","boxui.classification.classification":"Classification","boxui.classification.classificationDarkBlue":"Dark Blue","boxui.classification.classificationGreen":"Green","boxui.classification.classificationGrey":"Grey","boxui.classification.classificationLightBlue":"Light Blue","boxui.classification.classificationOrange":"Orange","boxui.classification.classificationPurple":"Purple","boxui.classification.classificationRed":"Red","boxui.classification.classificationYellow":"Yellow","boxui.classification.definition":"Definition","boxui.classification.edit":"Edit","boxui.classification.importedBy":"Imported from {modifiedBy} on {modifiedAt}","boxui.classification.missing":"Not classified","boxui.classification.modifiedBy":"Applied by {modifiedBy} on {modifiedAt}","boxui.classification.modifiedByLabel":"Classification Label","boxui.collaboratorAvatars.collaboration.pendingCollabText":"Pending","boxui.collaboratorAvatars.collaboratorAvatarsLabel":"Shared with","boxui.collaboratorAvatars.collaborators.expirationTooltipText":"Access expires on {date}","boxui.collaboratorAvatars.collaborators.externalCollabTooltipText":"{email} is from outside of your company","boxui.collaboratorAvatars.manageAllLinkText":"Manage All","boxui.collaboratorAvatars.viewAdditionalPeopleText":"View additional people","boxui.collapsiblesidebar.collapseBtnLabel":"Collapse","boxui.collapsiblesidebar.expandBtnLabel":"Expand","boxui.contentAnswers.ask":"Ask","boxui.contentAnswers.askDisabledTooltip":"You can submit another question once Box AI has finished responding","boxui.contentAnswers.askQuestionPlaceholder":"Ask anything about this document","boxui.contentAnswers.contentAnswersTitle":"Box AI","boxui.contentAnswers.defaultTooltip":"Get instant answers about this document using Box AI","boxui.contentAnswers.disabledTooltipFileNotCompatible":"Box AI is not currently supported for this file type","boxui.contentAnswers.hasQuestionsTooltip":"Return to Box AI","boxui.contentAnswers.inlineErrorText":"The Box AI service was unavailable.","boxui.contentAnswers.intelligenceUnavailableDescription":"The Box AI service is not responding.","boxui.contentAnswers.intelligenceUnavailableHeading":"Box AI is unavailable","boxui.contentAnswers.intelligenceUnavailableTryAgain":"Please try again later.","boxui.contentAnswers.maxCharactersReachedError":"Maximum of {characterLimit} characters reached","boxui.contentAnswers.retryResponse":"Retry","boxui.contentAnswers.welcomeAskQuestionText":"Ask questions about {name}","boxui.contentAnswers.welcomeClearChatText":"This chat will be cleared when you close this document","boxui.contentAnswers.welcomeMessageTitle":"Welcome to Box AI","boxui.contentExplorer.breadcrumb":"Breadcrumb","boxui.contentExplorer.cancel":"Cancel","boxui.contentExplorer.choose":"Choose","boxui.contentExplorer.clickToGoBack":"Click to go back","boxui.contentExplorer.clickToViewPath":"Click to view path","boxui.contentExplorer.copy":"Copy","boxui.contentExplorer.emptyFolder":"There are no subfolders in this folder.","boxui.contentExplorer.emptySearch":"Sorry, we couldn't find what you're looking for.","boxui.contentExplorer.filepath":"File path","boxui.contentExplorer.folderTreeBreadcrumbsText":"{folderName} ({totalItems})","boxui.contentExplorer.includeSubfolders":"Include Subfolders","boxui.contentExplorer.move":"Move","boxui.contentExplorer.name":"Name","boxui.contentExplorer.newFolder":"New Folder","boxui.contentExplorer.numFoldersSelected":"{numSelected, plural, =0 {0 folders selected} one {1 folder selected} other {# folders selected} } ","boxui.contentExplorer.numItemsSelected":"{numSelected, plural, =0 {0 items selected} one {1 item selected} other {# items selected} } ","boxui.contentExplorer.numSelected":"{numSelected} Selected","boxui.contentExplorer.result":"{itemsCount} result","boxui.contentExplorer.results":"{itemsCount} results","boxui.contentExplorer.searchPlaceholder":"Search","boxui.contentExplorer.searchResults":"Search Results","boxui.contentExplorer.selectAll":"Select All","boxui.contentExplorer.selectItem":"Select {name}","boxui.contentexplorer.newFolder.forbidden":"You do not have permission to create a folder here.","boxui.core.cancel":"Cancel","boxui.core.close":"Close","boxui.core.copied":"Copied","boxui.core.copy":"Copy","boxui.core.done":"Done","boxui.core.guidetooltip.navigation":"{currentStepIndex} of {totalNumSteps}","boxui.core.hotkeys.altKey":"Alt","boxui.core.hotkeys.ctrlKey":"Ctrl","boxui.core.hotkeys.enterKey":"Enter","boxui.core.hotkeys.escKey":"Esc","boxui.core.hotkeys.hotkeyModalTitle":"Keyboard Shortcuts","boxui.core.hotkeys.hotkeySequence":"{key1} then {key2}","boxui.core.hotkeys.shiftKey":"Shift","boxui.core.hotkeys.spacebarKey":"Spacebar","boxui.core.okay":"Okay","boxui.core.optional":"optional","boxui.core.save":"Save","boxui.core.selection.deselectAllDescription":"Deselect all items","boxui.core.selection.downDescription":"Select next item","boxui.core.selection.selectAllDescription":"Select all items","boxui.core.selection.shiftDownDescription":"Add next item to current selection","boxui.core.selection.shiftUpDescription":"Add previous item to current selection","boxui.core.selection.shiftXDescription":"Select current item","boxui.core.selection.upDescription":"Select previous item","boxui.core.send":"Send","boxui.datePicker.chooseDate":"Choose Date","boxui.datePicker.dateClearButton":"Clear Date","boxui.datePicker.dateInputMaxError":"Please enter a date before {maxLocaleDate}","boxui.datePicker.dateInputMinError":"Please enter a date after {minLocaleDate}","boxui.datePicker.dateInputRangeError":"Please enter a date between {minLocaleDate} and {maxLocaleDate}","boxui.datePicker.iconAlertText":"Invalid Date","boxui.draftjs.mentionSelector.noUsersFound":"No users found","boxui.draftjs.mentionSelector.startMention":"Mention someone to notify them","boxui.draftjs.mentionSelector.usersFound":"{usersCount, plural, one {one user found} other {{usersCount} users found}}","boxui.errorMask.iconSadCloudText":"Sad Box Cloud","boxui.features.VirtualizedTableRenderers.allFiles":"All Files","boxui.features.VirtualizedTableRenderers.anonymousUser":"Anonymous User","boxui.features.VirtualizedTableRenderers.externalFile":"External File","boxui.features.VirtualizedTableRenderers.externalFolder":"External Folder","boxui.features.VirtualizedTableRenderers.lastModifiedBy":"{lastModified} by {user}","boxui.features.VirtualizedTableRenderers.unknownUser":"Unknown User","boxui.itemDetails.bookmarkExpiration":"This bookmark will be deleted on {expiration}.","boxui.itemDetails.created":"Created","boxui.itemDetails.deleted":"Deleted","boxui.itemDetails.description":"Description","boxui.itemDetails.descriptionPlaceholder":"Enter a description","boxui.itemDetails.enterpriseOwner":"Enterprise Owner","boxui.itemDetails.fileExpiration":"This file will be deleted on {expiration}.","boxui.itemDetails.folderExpiration":"This folder will be deleted on {expiration}.","boxui.itemDetails.modified":"Modified","boxui.itemDetails.owner":"Owner","boxui.itemDetails.retentionPolicyDescription":"Policy","boxui.itemDetails.retentionPolicyExpiration":"Policy Expiration","boxui.itemDetails.retentionPolicyExtend":"Extend","boxui.itemDetails.savedVersions":"{versionCount, number} Saved Versions","boxui.itemDetails.sharedLinkExpiration":"This shared link will be disabled on {expiration}.","boxui.itemDetails.size":"Size","boxui.itemDetails.uploader":"Uploader","boxui.itemDetails.url":"URL","boxui.itemDetails.urlPlaceholder":"Enter a valid url","boxui.media.menuButtonArialLabel":"Options","boxui.metadataInstanceEditor.allAttributesAreHidden":"All attributes in this template have been hidden.","boxui.metadataInstanceEditor.applyCascadePolicyText":"Apply template and its values to all new and existing items in this folder and its subfolders.","boxui.metadataInstanceEditor.cannotApplyCascadePolicyText":"Cascade policy cannot be applied to custom metadata at this time.","boxui.metadataInstanceEditor.cascadePolicyLearnMore":"Learn more","boxui.metadataInstanceEditor.cascadePolicyModeQuestion":"In the case of conflicts when applying this template and its values to existing items, what would you like to do? This is a one time action.","boxui.metadataInstanceEditor.cascadePolicyOverwriteMode":"Overwrite all existing template values","boxui.metadataInstanceEditor.cascadePolicySkipMode":"Skip and keep all existing template values","boxui.metadataInstanceEditor.customAdd":"Add","boxui.metadataInstanceEditor.customErrorDuplicateKey":"A field with that key already exists.","boxui.metadataInstanceEditor.customErrorInternalKey":"Keys cannot begin with a $.","boxui.metadataInstanceEditor.customErrorRequired":"A key is required.","boxui.metadataInstanceEditor.customKey":"Key","boxui.metadataInstanceEditor.customKeyPlaceholder":"e.g. Order Number","boxui.metadataInstanceEditor.customNewField":"New Field","boxui.metadataInstanceEditor.customNewFieldMessage":"Add a custom metadata field. Other people will be able to see and search for this field.","boxui.metadataInstanceEditor.customRemove":"Remove","boxui.metadataInstanceEditor.customTitle":"Custom Metadata","boxui.metadataInstanceEditor.customValue":"Value","boxui.metadataInstanceEditor.customValuePlaceholder":"e.g. 42","boxui.metadataInstanceEditor.editTooltip":"Edit Metadata","boxui.metadataInstanceEditor.enableCascadePolicy":"Enable Cascade Policy","boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values from this file?","boxui.metadataInstanceEditor.fileMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values from this file?',"boxui.metadataInstanceEditor.folderMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values? Any metadata template values already applied to files in this folder will not be deleted.","boxui.metadataInstanceEditor.folderMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values? Any metadata template values already applied to files in this folder will not be deleted.',"boxui.metadataInstanceEditor.invalidValue":"Invalid Input!","boxui.metadataInstanceEditor.metadataCancel":"Cancel","boxui.metadataInstanceEditor.metadataCascadePolicyEnabledInfo":"This template and its values are being cascaded to all items in this folder and its subfolders.","boxui.metadataInstanceEditor.metadataSave":"Save","boxui.metadataInstanceEditor.noAttributesForTemplate":"There are no attributes in this template.","boxui.metadataInstanceEditor.noMetadata":"No Metadata Applied","boxui.metadataInstanceEditor.noMetadataAddTemplate":"Click 'Add' in the top right to add metadata to this item","boxui.metadataInstanceEditor.operationNotImmediate":"This operation is not immediate and may take some time.","boxui.metadataInstanceEditor.removeTemplate":"Remove","boxui.metadataInstanceEditor.templateAdd":"Add","boxui.metadataInstanceEditor.templateSearchPlaceholder":"Search all templates","boxui.metadataInstanceEditor.templatesFetchFailed":"Sorry! We could not fetch templates. Please contact your administrator","boxui.metadataInstanceEditor.templatesNoRemainingTemplates":"All templates have been added","boxui.metadataInstanceEditor.templatesNoResults":"No Results","boxui.metadataInstanceEditor.templatesServerHasNoTemplates":"Zero templates","boxui.metadataInstanceEditor.templatesTitle":"Templates","boxui.metadataInstanceFields.customAdd":"Add","boxui.metadataInstanceFields.customRemove":"Remove","boxui.metadataInstanceFields.fieldMultiSelectValue":"Select Values","boxui.metadataInstanceFields.fieldNoValue":"No Value","boxui.metadataInstanceFields.fieldSelectValue":"Select Value","boxui.metadataInstanceFields.fieldSetDate":"Set Date","boxui.metadataInstanceFields.fieldSetValue":"Set Value","boxui.metadataInstanceFields.invalidMetadataFieldType":"Invalid metadata field type!","boxui.modalDialog.backModalText":"Back","boxui.modalDialog.closeModalText":"Close Modal","boxui.newFolderModal.cancel":"Cancel","boxui.newFolderModal.create":"Create","boxui.newFolderModal.folderName.label":"Folder Name","boxui.newFolderModal.folderName.placeholder":"My New Folder","boxui.newFolderModal.title":'Create a New Folder in "{parentFolderName}"',"boxui.notification.clearNotification":"Clear Notification","boxui.presence.accessedInTheLastMinute":"Viewed less than a minute ago","boxui.presence.activeNow":"Active now","boxui.presence.commentedIntheLastMinute":"Commented less than a minute ago","boxui.presence.getLinkButton":"Get Link","boxui.presence.inviteButton":"Invite People","boxui.presence.modifiedIntheLastMinute":"Edited less than a minute ago","boxui.presence.previewPresenceFlyoutAccessStatsLink":"See all activity","boxui.presence.previewPresenceFlyoutActivityCTA":"View Recent Activity","boxui.presence.previewPresenceFlyoutCopy":"Quickly see who has commented on, edited, or viewed this file.","boxui.presence.previewedIntheLastMinute":"Previewed less than a minute ago","boxui.presence.recentActivity":"Recent Activity","boxui.presence.timeSinceLastAccessed":"Viewed {timeAgo}","boxui.presence.timeSinceLastCommented":"Commented {timeAgo}","boxui.presence.timeSinceLastModified":"Edited {timeAgo}","boxui.presence.timeSinceLastPreviewed":"Previewed {timeAgo}","boxui.presence.toggleButtonLabel":"Recent Activity","boxui.queryBar.addFilterButtonText":"+ Add Filter","boxui.queryBar.applyFiltersButtonText":"Apply","boxui.queryBar.columnsButtonText":"Columns","boxui.queryBar.columnsHiddenButtonText":"{count, plural, one {1 Column Hidden} other {{count} Columns Hidden}}","boxui.queryBar.connectorAndText":"AND","boxui.queryBar.connectorOrText":"OR","boxui.queryBar.connectorWhereText":"WHERE","boxui.queryBar.filtersButtonText":"Modify Filters","boxui.queryBar.metadataViewTemplateListHeaderTitle":"METADATA TEMPLATES","boxui.queryBar.multipleFiltersButtonText":"{number} Filters","boxui.queryBar.noFiltersAppliedText":"No Filters Applied","boxui.queryBar.noTemplatesText":"No Templates Available","boxui.queryBar.selectValuePlaceholderText":"Select value","boxui.queryBar.templatesButtonText":"Select Metadata","boxui.queryBar.templatesLoadingButtonText":"Template Name","boxui.queryBar.tooltipEnterValueError":"Please Enter a Value","boxui.queryBar.tooltipInvalidFloatError":"Please Enter a Decimal Number","boxui.queryBar.tooltipInvalidNumberError":"Please Enter an Integer","boxui.queryBar.tooltipSelectDateError":"Please Select a Date","boxui.queryBar.tooltipSelectValueError":"Please Select a Value","boxui.quickSearch.bookmark":"Bookmark","boxui.quickSearch.collaboratedFolder":"Collaborated Folder","boxui.quickSearch.externalFolder":"External Folder","boxui.quickSearch.file":"File","boxui.quickSearch.parentFolder":"Parent Folder","boxui.quickSearch.personalFolder":"Personal Folder","boxui.quickSearch.updatedText":"{date, date, medium} by {user}","boxui.quickSearch.updatedTextToday":"Today by {user}","boxui.quickSearch.updatedTextYesterday":"Yesterday by {user}","boxui.readableTime.eventTime":"{time, date, medium}","boxui.readableTime.eventTimeDate":"{time, date, medium} at {time, time, short}","boxui.readableTime.eventTimeDateShort":"{date} at {time, time, short}","boxui.readableTime.eventTimeToday":"Today at {time, time, short}","boxui.readableTime.eventTimeWeekdayLong":"{weekday}, {time, date, medium}","boxui.readableTime.eventTimeYesterday":"Yesterday at {time, time, short}","boxui.searchForm.clearButtonTitle":"Clear","boxui.searchForm.searchButtonTitle":"Search","boxui.searchForm.searchLabel":"Search query","boxui.securityCloudGame.accessibilityInstructions":"For security purposes, please drag the cloud object onto the target. You are on a {row} by {column} grid with a movable cloud object and a target area. Press spacebar to grab the cloud object, arrow keys to move, and spacebar to drop on the target.","boxui.securityCloudGame.cloudDropped":"Cloud object dropped.","boxui.securityCloudGame.cloudGrabbed":"Cloud object grabbed.","boxui.securityCloudGame.cloudObject":"Cloud object","boxui.securityCloudGame.currentPosition":"Current position: Row {row}, Column {column}.","boxui.securityCloudGame.instructions":"For security purposes, please drag the white cloud onto the dark cloud. Keyboard users: Press spacebar to grab the cloud, arrow keys to move, and spacebar to drop.","boxui.securityCloudGame.reachBottomEdge":"Reached bottom edge of grid.","boxui.securityCloudGame.reachLeftEdge":"Reached left edge of grid.","boxui.securityCloudGame.reachRightEdge":"Reached right edge of grid.","boxui.securityCloudGame.reachTopEdge":"Reached top edge of grid.","boxui.securityCloudGame.success":"Success!","boxui.securityCloudGame.target":"Target","boxui.securityCloudGame.targetInRange":"Target in range, you can drop the cloud object.","boxui.securityCloudGame.targetPosition":"Target position: Row {row}, Column {column}.","boxui.securityControls.allAppNames":"All applications: {appsList}","boxui.securityControls.appDownloadBlacklist":"Download restricted for some applications: {appNames}","boxui.securityControls.appDownloadBlacklistOverflow":"Download restricted for some applications: {appNames} +{remainingAppCount} more","boxui.securityControls.appDownloadRestricted":"Download restricted for some applications.","boxui.securityControls.appDownloadWhitelist":"Only select applications are allowed: {appNames}","boxui.securityControls.appDownloadWhitelistOverflow":"Only select applications are allowed: {appNames} +{remainingAppCount} more","boxui.securityControls.boxSignRequestRestricted":"Sign restrictions apply.","boxui.securityControls.desktopDownloadExternalOwners":"Download restricted on Box Drive, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.desktopDownloadExternalOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.desktopDownloadOwners":"Download restricted on Box Drive, except Owners/Co-Owners.","boxui.securityControls.desktopDownloadOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors.","boxui.securityControls.downloadExternal":"Download restricted on Box Drive for external users.","boxui.securityControls.externalCollabBlock":"External collaboration restricted.","boxui.securityControls.externalCollabDomainList":"External collaboration limited to approved domains.","boxui.securityControls.mobileDownloadExternal":"Download restricted on mobile for external users.","boxui.securityControls.mobileDownloadExternalOwners":"Download restricted on mobile, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.mobileDownloadExternalOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.mobileDownloadOwners":"Download restricted on mobile, except Owners/Co-Owners.","boxui.securityControls.mobileDownloadOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors.","boxui.securityControls.modalDescription":"Classification labels defined by your administrator can be used to label content and apply security policies.","boxui.securityControls.modalTitle":"View Classification for “{itemName}”","boxui.securityControls.securityControlsLabel":"Restrictions","boxui.securityControls.sharingCollabAndCompanyOnly":"Shared links cannot be made publicly accessible.","boxui.securityControls.sharingCollabOnly":"Shared links allowed for collaborators only.","boxui.securityControls.shortApp":"Application restrictions apply","boxui.securityControls.shortAppSign":"App and Sign restrictions apply","boxui.securityControls.shortDownload":"Download restrictions apply","boxui.securityControls.shortDownloadApp":"Download and app restrictions apply","boxui.securityControls.shortDownloadAppSign":"Download, app and Sign restrictions apply","boxui.securityControls.shortDownloadSign":"Download and Sign restrictions apply","boxui.securityControls.shortSharing":"Sharing restriction applies","boxui.securityControls.shortSharingApp":"Sharing and app restrictions apply","boxui.securityControls.shortSharingAppSign":"Sharing, app and Sign restrictions apply","boxui.securityControls.shortSharingDownload":"Sharing and download restrictions apply","boxui.securityControls.shortSharingDownloadApp":"Sharing, download and app restrictions apply","boxui.securityControls.shortSharingDownloadAppSign":"Sharing, download, app and Sign restrictions apply","boxui.securityControls.shortSharingDownloadSign":"Sharing, download and Sign restrictions apply","boxui.securityControls.shortSharingSign":"Sharing and Sign restrictions apply","boxui.securityControls.shortSign":"Sign restrictions apply","boxui.securityControls.shortWatermarking":"Watermarking applies","boxui.securityControls.viewAll":"View All","boxui.securityControls.watermarkingApplied":"Watermarking will be applied.","boxui.securityControls.webDownloadExternal":"Download restricted on web for external users.","boxui.securityControls.webDownloadExternalOwners":"Download restricted on web, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.webDownloadExternalOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.webDownloadOwners":"Download restricted on web, except Owners/Co-Owners.","boxui.securityControls.webDownloadOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors.","boxui.select.moreInfo":"More Info","boxui.selectField.clearAll":"Clear All","boxui.selectField.noResults":"No Results","boxui.selectField.searchPlaceholder":"Search","boxui.share.accessType":"ACCESS TYPE","boxui.share.canEdit":"Can edit","boxui.share.canView":"Can view","boxui.share.coownerLevelText":"Co-owner","boxui.share.deleteTableHeaderText":"Delete","boxui.share.downloadTableHeaderText":"Download","boxui.share.editTableHeaderText":"Edit","boxui.share.editorLevelText":"Editor","boxui.share.emailSharedLink":"Email Shared Link","boxui.share.enterAtLeastOneEmail":"Enter at least one valid email","boxui.share.getLinkTableHeaderText":"Get Link","boxui.share.groupLabel":"Group","boxui.share.inviteCollaboratorsModalCancelButton":"Cancel","boxui.share.inviteCollaboratorsModalSendInvites":"Send Invites","boxui.share.inviteCollaboratorsModalTitle":"Invite to {itemName}","boxui.share.inviteFieldLabel":"Invite","boxui.share.inviteFileEditorsLabel":"Invite people to become editors of this file.","boxui.share.inviteePermissionsFieldLabel":"Invitee Permissions","boxui.share.inviteePermissionsLearnMore":"Learn More","boxui.share.message":"Message","boxui.share.messageSelectorPlaceholder":"Add a message","boxui.share.ownerTableHeaderText":"Owner","boxui.share.peopleInCompanyCanDownloadFile":"Anyone in your company with the link can view and download this file.","boxui.share.peopleInCompanyCanDownloadFolder":"Anyone in your company with the link can view this folder and download its contents.","boxui.share.peopleInCompanyCanEditFile":"Anyone in your company with the link can edit and download this file.","boxui.share.peopleInCompanyCanViewFile":"Anyone in your company with the link can view this file.","boxui.share.peopleInCompanyCanViewFolder":"Anyone in your company with the link can view this folder.","boxui.share.peopleInEnterprise":"People in {enterpriseName}","boxui.share.peopleInItemCanAccessFile":"Any collaborator on the file with the link can access this file.","boxui.share.peopleInItemCanAccessFolder":"Any collaborator on the folder with the link can access this folder.","boxui.share.peopleInItemCanDownloadFile":"Any collaborator on this file with the link can download this file.","boxui.share.peopleInItemCanDownloadFolder":"Any collaborator on this folder with the link can download this folder.","boxui.share.peopleInItemCanEditFile":"Any collaborator on this file with the link can edit this file and download its contents.","boxui.share.peopleInItemCanPreviewAndDownloadFile":"Any collaborator on this file with the link can view this file and download its contents.","boxui.share.peopleInItemCanPreviewAndDownloadFolder":"Any collaborator on this folder with the link can view this folder and download its contents.","boxui.share.peopleInItemCanPreviewFile":"Any collaborator on this file with the link can view this file.","boxui.share.peopleInItemCanPreviewFolder":"Any collaborator on this folder with the link can view this folder.","boxui.share.peopleInSpecifiedCompanyCanDownloadFile":"Anyone in {company} with the link can view and download this file.","boxui.share.peopleInSpecifiedCompanyCanDownloadFolder":"Anyone in {company} with the link can view this folder and download its contents.","boxui.share.peopleInSpecifiedCompanyCanEditFile":"Anyone in {company} with the link can edit and download this file.","boxui.share.peopleInSpecifiedCompanyCanViewFile":"Anyone in {company} with the link can view this file.","boxui.share.peopleInSpecifiedCompanyCanViewFolder":"Anyone in {company} with the link can view this folder.","boxui.share.peopleInThisFile":"People in this file","boxui.share.peopleInThisFolder":"People in this folder","boxui.share.peopleInYourCompany":"People in your company","boxui.share.peopleWithLinkCanDownloadFile":"Anyone with the link can view and download this file.","boxui.share.peopleWithLinkCanDownloadFolder":"Anyone with the link can view this folder and download its contents.","boxui.share.peopleWithLinkCanEditFile":"Anyone with the link can edit and download this file.","boxui.share.peopleWithLinkCanViewFile":"Anyone with the link can view this file.","boxui.share.peopleWithLinkCanViewFolder":"Anyone with the link can view this folder.","boxui.share.peopleWithTheLink":"People with the link","boxui.share.permissionLevelsTableHeaderText":"Permission Levels","boxui.share.personalMessageLabel":"Personal Message","boxui.share.pillSelectorPlaceholder":"Add names or email addresses","boxui.share.previewTableHeaderText":"Preview","boxui.share.previewerLevelText":"Previewer","boxui.share.previewerUploaderLevelText":"Previewer Uploader","boxui.share.referAFriendBadgeText":"REFER","boxui.share.referAFriendRewardCenterLinkText":"Click Here","boxui.share.referAFriendText":"Want a free month of Box? Refer your friend!","boxui.share.removeLink":"Remove Link","boxui.share.removeLinkConfirmationDescription":"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?","boxui.share.removeLinkConfirmationTitle":"Remove Shared Link","boxui.share.settingsButtonLabel":"Open shared link settings popup","boxui.share.sharedLinkExpirationTooltip":"This link will expire on {expiration, date, long}","boxui.share.sharedLinkLabel":"Shared Link","boxui.share.sharedLinkModalTitle":"Shared Link for {itemName}","boxui.share.sharedLinkSettings.accessLevel.inCompanyView":"This content is available to anyone within your company with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.inCompanyViewDownload":"This content is available to anyone within your company with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.accessLevel.inItem":"This content is available to invited collaborators with the link.","boxui.share.sharedLinkSettings.accessLevel.withLinkView":"This content is publicly available to anyone with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.withLinkViewDownload":"This content is publicly available to anyone with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.allowDownloadLabel":"Allow users with the shared link to download this item","boxui.share.sharedLinkSettings.allowDownloadTitle":"Allow Download","boxui.share.sharedLinkSettings.customURLLabel":"Non-private custom URL","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithClassification":"Download has been disabled for content due to the classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithoutClassification":"Download has been disabled for content without classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByMaliciousContent":"Download for this content has been disabled due to a security policy.","boxui.share.sharedLinkSettings.directLinkLabel":"Direct Link","boxui.share.sharedLinkSettings.expirationLabel":"Disable Shared Link on","boxui.share.sharedLinkSettings.expirationTitle":"Link Expiration","boxui.share.sharedLinkSettings.inaccessibleSettingsNotice":"Certain settings may not be available for this item due to permissions.","boxui.share.sharedLinkSettings.modalTitle":"Shared Link Settings","boxui.share.sharedLinkSettings.passwordLabel":"Require password","boxui.share.sharedLinkSettings.passwordPlaceholder":"Enter a password","boxui.share.sharedLinkSettings.passwordTitle":"Password Protect","boxui.share.sharedLinkSettings.sharedLinkSettingWarningLinkText":"Learn more about shared link settings.","boxui.share.sharedLinkSettings.sharedLinkWarningText":"This content is publicly available to anyone with the link.","boxui.share.sharedLinkSettings.vanityNameNotSet":"The custom URL has not been set","boxui.share.sharedLinkSettings.vanityNamePlaceholder":"Enter a custom path (12 or more characters)","boxui.share.sharedLinkSettings.vanityURLWarning":"Custom URLs should not be used when sharing sensitive content.","boxui.share.sharedLinkURLLabel":"URL","boxui.share.upgradeGetMoreAccessControls":"Get More Access Controls","boxui.share.uploadTableHeaderText":"Upload","boxui.share.uploaderLevelText":"Uploader","boxui.share.vanityURLEnableText":"Publish content broadly with a custom, non-private URL","boxui.share.viewerLevelText":"Viewer","boxui.share.viewerUploaderLevelText":"Viewer Uploader","boxui.shareMenu.downloadOnly":"Download Only","boxui.shareMenu.editAndComment":"Edit and Comment","boxui.shareMenu.getSharedLink":"Get Shared Link","boxui.shareMenu.insufficientPermissionsMenuOption":"Insufficient sharing permissions. Please contact the folder owner.","boxui.shareMenu.insufficientPermissionsTooltip":"You have insufficient permissions to invite collaborators.","boxui.shareMenu.inviteCollabs":"Invite Collaborators","boxui.shareMenu.ownerCoownerOnlyTooltip":"You have insufficient permissions to invite collaborators. Only the owner and co-owners can invite collaborators.","boxui.shareMenu.shortcutOnly":"Shortcut Only","boxui.shareMenu.viewAndDownload":"View and Download","boxui.shareMenu.viewOnly":"View Only","boxui.timeInput.emptyTimeError":"Required field. Enter a time in the format HH:MM A.","boxui.timeInput.invalidTimeError":"Invalid time format. Enter a time in the format HH:MM A.","boxui.unifiedShare.collabAccess":"collaborator access","boxui.unifiedShare.collaboration.groupCollabText":"Group","boxui.unifiedShare.collaboration.userCollabText":"User","boxui.unifiedShare.collaboratorListTitle":"People in ‘{itemName}’","boxui.unifiedShare.collaborators.expirationTooltipClickableText":"Access expires on {date}. Click for details.","boxui.unifiedShare.contactEmailsTooltipText":"{emails}, and {remainingEmailsCount} more","boxui.unifiedShare.contactRestrictionNotice":"{count, plural, one {{count} invitation} other {{count} invitations}} cannot be sent because external collaboration is restricted due to the applied security policy.","boxui.unifiedShare.contactRestrictionNoticeInformationBarrier":"{count, plural, one {{count} invitation} other {{count} invitations}} cannot be sent due to a security policy.","boxui.unifiedShare.contactRestrictionNoticeInformationBarrierSingular":"Invitations cannot be sent to {email} due to a security policy.","boxui.unifiedShare.contactRestrictionNoticeInformationBarrierSingularGroup":'Invitations cannot be sent to "{groupName}" due to a security policy.',"boxui.unifiedShare.contactRestrictionNoticeSingular":"Invitations cannot be sent to {email} because external collaboration is restricted due to the applied security policy.","boxui.unifiedShare.contactRestrictionRemoveButtonLabel":"Remove to continue","boxui.unifiedShare.contactsExceedLimitError":"Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.","boxui.unifiedShare.contentSharedWithExternalCollaborators":"This content will be shared with external collaborators.","boxui.unifiedShare.coownerLevelButtonLabel":"Invite as Co-owner","boxui.unifiedShare.coownerLevelDescription":"Manage security, upload, download, preview, share, edit, and delete","boxui.unifiedShare.coownerLevelText":"Co-owner","boxui.unifiedShare.disabledCreateLinkTooltip":"You do not have permission to create the link.","boxui.unifiedShare.disabledMaliciousContentShareLinkPermission":"This option isn’t available for this item due to a security policy.","boxui.unifiedShare.disabledShareLinkPermission":"This option is not available due to a security policy.","boxui.unifiedShare.editorLevelButtonLabel":"Invite as Editor","boxui.unifiedShare.editorLevelDescription":"Upload, download, preview, share, edit, and delete","boxui.unifiedShare.editorLevelFileDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.editorLevelText":"Editor","boxui.unifiedShare.emailModalTitle":"Send Link to ‘{itemName}’","boxui.unifiedShare.enterAtLeastOneEmail":"Enter at least one valid email","boxui.unifiedShare.enterEmailAddressesCalloutText":"Share this item with coworkers by entering their email addresses","boxui.unifiedShare.expiresMessage":"Expires","boxui.unifiedShare.ftuxConfirmLabel":"Got it","boxui.unifiedShare.ftuxEditPermissionTooltipBody":"Select the new edit option to easily share your file with people or groups.","boxui.unifiedShare.ftuxEditPermissionTooltipTitle":"Collaboration made easy","boxui.unifiedShare.ftuxLinkText":"Read more about shared link security here.","boxui.unifiedShare.ftuxNewUSMUserBody":"We’ve simplified the sharing experience when you click 'Share'. Invite people to this item here and toggle the link on or off below for easy sharing.","boxui.unifiedShare.ftuxNewUsmUserTitle":"Simplified sharing for files and folders","boxui.unifiedShare.ftuxSharedLinkPermissionsEditTag":"NEW","boxui.unifiedShare.groupLabel":"Group","boxui.unifiedShare.inviteDisabledTooltip":"You do not have permission to invite collaborators.","boxui.unifiedShare.inviteDisabledWeblinkTooltip":"Collaborators cannot be added to bookmarks.","boxui.unifiedShare.inviteFieldLabel":"Invite People","boxui.unifiedShare.justifiableContactRestrictionNotice":"This content requires a business justification for {count, plural, one {{count} invitation} other {{count} invitations}}. Please select a business justification below.","boxui.unifiedShare.justifiableContactRestrictionNoticeSingular":"This content requires a business justification to invite {email}. Please select a business justification below.","boxui.unifiedShare.justifiableContactRestrictionRemoveButtonLabel":"Alternatively, remove to continue","boxui.unifiedShare.justificationRequiredError":"Select a justification or remove to continue","boxui.unifiedShare.justificationSelectPlaceholder":"Select Justification","boxui.unifiedShare.levelOfCollabAccess":"Set the level of {collaboratorAccess} and increase security through one of our paid plans. {upgradeLink}","boxui.unifiedShare.linkShareOff":"Create shared link","boxui.unifiedShare.linkShareOn":"Shared link is created","boxui.unifiedShare.message":"Message","boxui.unifiedShare.modalTitle":"Share ‘{itemName}’","boxui.unifiedShare.peopleInCompanyCanAccessFile":"Anyone in your company with the link or people invited to this file can access","boxui.unifiedShare.peopleInCompanyCanAccessFolder":"Anyone in your company with the link or people invited to this folder can access","boxui.unifiedShare.peopleInCompanyCanAccessHub":"Anyone in your company with the link or people invited to this hub can access","boxui.unifiedShare.peopleInEnterpriseName":"People in {enterpriseName}","boxui.unifiedShare.peopleInItemCanAccessFile":"Only invited people can access this file","boxui.unifiedShare.peopleInItemCanAccessFolder":"Only invited people can access this folder","boxui.unifiedShare.peopleInItemCanAccessHub":"Only invited people can access this hub","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFile":"Anyone at {company} with the link or people invited to this file can access","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFolder":"Anyone at {company} with the link or people invited to this folder can access","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessHub":"Anyone at {company} with the link or people invited to this hub can access","boxui.unifiedShare.peopleInThisFile":"Invited people only","boxui.unifiedShare.peopleInThisFolder":"Invited people only","boxui.unifiedShare.peopleInYourCompany":"People in your company","boxui.unifiedShare.peopleWithLinkDescription":"Publicly accessible and no sign-in required","boxui.unifiedShare.peopleWithLinkSignedInRequiredDescription":"Publicly accessible, sign-in required","boxui.unifiedShare.peopleWithTheLinkText":"People with the link","boxui.unifiedShare.previewerLevelButtonLabel":"Invite as Previewer","boxui.unifiedShare.previewerLevelDescription":"Preview only","boxui.unifiedShare.previewerLevelText":"Previewer","boxui.unifiedShare.previewerUploaderLevelButtonLabel":"Invite as Previewer Uploader","boxui.unifiedShare.previewerUploaderLevelDescription":"Upload and preview","boxui.unifiedShare.previewerUploaderLevelText":"Previewer Uploader","boxui.unifiedShare.recommendedSharingTooltipCalloutText":"Based on your usage, we think {fullName} would be interested in this file.","boxui.unifiedShare.removeLinkConfirmationDescription":"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?","boxui.unifiedShare.removeLinkConfirmationTitle":"Remove Shared Link","boxui.unifiedShare.removeLinkTooltip":"You do not have permission to remove the link.","boxui.unifiedShare.restrictedContactsError":"Remove to continue","boxui.unifiedShare.sendSharedLink":"Send Shared Link","boxui.unifiedShare.sendSharedLinkFieldLabel":"Email Shared Link","boxui.unifiedShare.sharedLinkDisabledTooltipCopy":"Create and copy link for sharing","boxui.unifiedShare.sharedLinkEditablePubliclyAvailable":"Publicly available for anyone to view and download. Any logged in users with the link can edit.","boxui.unifiedShare.sharedLinkElevatedEditableCompanyAvailable":"People who have access to this link can edit.","boxui.unifiedShare.sharedLinkExpirationTooltip":"This link will expire and be inaccessible on {expiration, date, long}.","boxui.unifiedShare.sharedLinkPermissionsEdit":"Can edit","boxui.unifiedShare.sharedLinkPermissionsEditTooltip":"This permission can only be changed in Box Notes","boxui.unifiedShare.sharedLinkPermissionsViewDownload":"Can view and download","boxui.unifiedShare.sharedLinkPermissionsViewOnly":"Can view only","boxui.unifiedShare.sharedLinkPubliclyAvailable":"This content is publicly available to anyone with the link.","boxui.unifiedShare.sharedLinkSectionLabel":"Share Link","boxui.unifiedShare.sharedLinkSettings":"Link Settings","boxui.unifiedShare.sharedLinkSettingsCalloutText":"Create a custom URL, enable password protection, enable link expiration, and much more","boxui.unifiedShare.suggestedCollabsTitle":"Suggested","boxui.unifiedShare.upgradeGetMoreAccessControlsDescription":"62% of customers on your plan {upgradeGetMoreAccessControlsLink} to manage collaborators’ access and permission settings","boxui.unifiedShare.upgradeGetMoreAccessControlsLink":"upgrade","boxui.unifiedShare.upgradeInlineNoticeTitle":"Upgrade Your Plan","boxui.unifiedShare.upgradeLink":"Upgrade now","boxui.unifiedShare.uploaderLevelButtonLabel":"Invite as Uploader","boxui.unifiedShare.uploaderLevelDescription":"Upload only","boxui.unifiedShare.uploaderLevelText":"Uploader","boxui.unifiedShare.viewerLevelButtonLabel":"Invite as Viewer","boxui.unifiedShare.viewerLevelDescription":"Download, preview, and share","boxui.unifiedShare.viewerLevelText":"Viewer","boxui.unifiedShare.viewerUploaderLevelButtonLabel":"Invite as Viewer Uploader","boxui.unifiedShare.viewerUploaderLevelDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.viewerUploaderLevelText":"Viewer Uploader","boxui.validation.URLError":"Invalid URL","boxui.validation.emailError":"Invalid Email Address","boxui.validation.genericError":"Invalid Input","boxui.validation.invalidDateError":"Invalid Date","boxui.validation.invalidUserError":"Invalid User","boxui.validation.requiredError":"Required Field","boxui.validation.tooLongError":"Input cannot exceed {max} characters","boxui.validation.tooShortError":"Input must be at least {min} characters"}),s={language:"en-US",messages:a};let l;class c{static getUserAgent(){return __nested_webpack_require_646968__.g.navigator.userAgent}static isMobile(){const e=c.getUserAgent();return/iphone|ipad|ipod|android|blackberry|bb10|mini|windows\sce|palm/i.test(e)||/Mobi/i.test(e)}static isIE(){return/Trident/i.test(c.getUserAgent())}static isFirefox(){const e=c.getUserAgent();return/Firefox/i.test(e)&&!/Seamonkey\//i.test(e)}static isSafari(){const e=c.getUserAgent();return/AppleWebKit/i.test(e)&&!/Chrome\//i.test(e)}static isMobileSafari(){return c.isMobile()&&c.isSafari()&&!c.isMobileChromeOniOS()}static isMobileChromeOniOS(){const e=c.getUserAgent();return c.isMobile()&&/AppleWebKit/i.test(e)&&/CriOS\//i.test(e)}static canDownload(){return!c.isMobile()||!window.externalHost&&"download"in document.createElement("a")}static canPlayDash(e=!1){if(void 0===l||e){const e=__nested_webpack_require_646968__.g.MediaSource;l=!!e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.64001E"')}return l}static canWriteToClipboard(){return!(!__nested_webpack_require_646968__.g.navigator.clipboard||!__nested_webpack_require_646968__.g.navigator.clipboard.writeText)}static canReadFromClipboard(){return!(!__nested_webpack_require_646968__.g.navigator.clipboard||!__nested_webpack_require_646968__.g.navigator.clipboard.readText)}}const u=c,d="large",h="medium",p="small",f="very_large",g="folder",m="search",b="selected",y="recents",v="error",_="upload-empty",w="upload-inprogress",E="upload-success",C="list",S="grid",k="folder",I="file",O="web_link",T="annotation",A="comment",x="folder_",P="file_",R=x,N=P,L="search_",M="ASC",D="DESC",U="none",F="open",j="collaborators",H="company",B="Content-Type",z="Accept-Language",q="securityClassification-6VMVochwUWo",K="boxSkillsCards",V="properties",G="global",W="enterprise",$="id",J="date",Y="name",Q="size",X="extension",Z="permissions",ee=`${Z}.can_share`,te="modified_at",re="restored_at",ne="created_at",oe="shared_link",ie="is_externally_owned",ae="created_by",se="modified_by",le="promoted_by",ce="restored_by",ue="trashed_by",de="representations",he="authenticated_download_url",pe="is_download_available",fe="version_number",ge=`metadata.${G}.${K}`,me="message",be="trashed_at",ye="uploader_display_name",ve="can_comment",_e="can_create_annotations",we="can_delete",Ee="can_edit",Ce="can_resolve",Se="can_upload",ke="can_view_annotations",Ie="slash",Oe="caret",Te="https://api.box.com",Ae="https://upload.box.com",xe="https://upload.app.box.com",Pe="0",Re="ContentPicker",Ne="ContentUploader",Le="pending",Me="inprogress",De="staged",Ue="complete",Fe="error",je="be-modal-dialog-overlay",He="be-modal",Be="item_name_invalid",ze="item_name_too_long",qe="item_name_in_use",Ke="upload_file_limit",Ve="child_folder_failed_upload",Ge="storage_limit_exceeded",We="file_size_limit_exceeded",$e="failed_package_upload",Je="fetch_comments_error",Ye="fetch_replies_error",Qe="fetch_tasks_error",Xe="fetch_metadata_error",Ze="create_comment_error",et="create_reply_error",tt="create_task_error",rt="create_task_collaborator_error",nt="delete_comment_error",ot="group_exceeds_limit",it="update_task_error",at="update_comment_error",st="share_item_error",lt=`[3d][pdf][text][mp3][json][jpg?dimensions=1024x1024&paged=false][jpg?dimensions=2048x2048,png?dimensions=2048x2048]${u.canPlayDash()?"[dash,mp4][filmstrip]":"[mp4]"}`,ct=3e3,ut=1e3,dt="[jpg?dimensions=1024x1024&paged=false,png?dimensions=1024x1024][pdf][text]",ht="GET",pt="POST",ft="PUT",gt="DELETE",mt="OPTIONS",bt=409,yt=429,vt="NOT_STARTED",_t="annotation",wt="app_activity",Et="comment",Ct="task",St="versions",kt="ArrowDown",It="ArrowUp",Ot="Enter",Tt="Escape",At=" ";function xt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Pt extends(n()){constructor(...e){super(...e),xt(this,"language",s.language),xt(this,"messages",s.messages),xt(this,"setComponent",(e=>{this.component=e})),xt(this,"onInteraction",(e=>{this.emit("interaction",e)}))}show(e,t,r={}){this.id=e,this.token=t,this.options=r,this.options.version="0.0.0-semantically-released",this.emit=this.emit.bind(this);const n=r.container||"body";this.container=n instanceof HTMLElement?n:document.querySelector(n),this.render()}hide(){this.removeAllListeners(),t.unmountComponentAtNode(this.container),this.container&&(this.container.innerHTML="")}render(){throw new Error("Unimplemented!")}getComponent(){return this.component}clearCache(){const e=this.getComponent();e&&"function"==typeof e.clearCache&&e.clearCache()}emit(e,t){try{return super.emit(e,t)}catch(e){}return!1}}const Rt=Pt;var Nt=__nested_webpack_require_646968__(24082),Lt=__nested_webpack_require_646968__.n(Nt),Mt=__nested_webpack_require_646968__(18564),Dt=__nested_webpack_require_646968__.n(Mt),Ut=__nested_webpack_require_646968__(64633),Ft=__nested_webpack_require_646968__.n(Ut);const jt=["modal"];function Ht(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Bt=t=>r=>class extends e.PureComponent{constructor(e){super(e),Ht(this,"onClick",(e=>{const{onClick:t=Dt()}=this.props;this.close(t,e)})),Ht(this,"onClose",(e=>{const{onClose:t=Dt()}=this.props;this.close(t,e)})),Ht(this,"onCancel",(e=>{const{onCancel:t=Dt()}=this.props;this.close(t,e)})),Ht(this,"onChoose",(e=>{const{onChoose:t=Dt()}=this.props;this.close(t,e)})),Ht(this,"onButtonClick",(()=>{this.setState({isOpen:!0})})),this.state={isOpen:!1}}close(e,t){this.setState({isOpen:!1},(()=>e(t)))}render(){const{isOpen:n}=this.state,o=this.props,{modal:i}=o,a=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(o,jt),s=Ft()(a,["onCancel","onChoose","onClose","modal"]),{buttonLabel:l="Missing modal.buttonLabel in options",buttonClassName:c="btn btn-primary",modalClassName:u="be-modal-wrapper-content",overlayClassName:d="be-modal-wrapper-overlay"}=i;switch(t){case Re:s.onCancel=this.onCancel,s.onChoose=this.onChoose;break;case Ne:s.onClose=this.onClose;break;default:throw new Error("Unknown kit type")}return e.createElement("div",null,e.createElement("button",{className:c,onClick:this.onButtonClick,type:"button"},l),e.createElement(Lt(),{className:u,contentLabel:t,isOpen:n,overlayClassName:d},e.createElement(r,s)))}};__nested_webpack_require_646968__(46414);var zt=__nested_webpack_require_646968__(78444),qt=__nested_webpack_require_646968__.n(zt),Kt=__nested_webpack_require_646968__(24551),Vt=__nested_webpack_require_646968__.n(Kt),Gt=__nested_webpack_require_646968__(25358),Wt=__nested_webpack_require_646968__.n(Gt),$t=__nested_webpack_require_646968__(70406),Jt=__nested_webpack_require_646968__.n($t),Yt=function(e,t){return Yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Yt(e,t)};function Qt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Yt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Xt=function(){return Xt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xt.apply(this,arguments)};function Zt(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}Object.create;function er(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var tr=__nested_webpack_require_646968__(57160),rr=__nested_webpack_require_646968__.n(tr);var nr,or,ir;function ar(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function sr(e){return e.type===or.literal}function lr(e){return e.type===or.argument}function cr(e){return e.type===or.number}function ur(e){return e.type===or.date}function dr(e){return e.type===or.time}function hr(e){return e.type===or.select}function pr(e){return e.type===or.plural}function fr(e){return e.type===or.pound}function gr(e){return e.type===or.tag}function mr(e){return!(!e||"object"!=typeof e||e.type!==ir.number)}function br(e){return!(!e||"object"!=typeof e||e.type!==ir.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(nr||(nr={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(or||(or={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(ir||(ir={}));var yr=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,vr=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function _r(e){var t={};return e.replace(vr,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var wr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Er=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Cr=/^(@+)?(\+|#+)?[rs]?$/g,Sr=/(\*)(0+)|(#+)(0+)|(0+)/g,kr=/^(0+)$/;function Ir(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Cr,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function Or(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Tr(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!kr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ar(e){var t=Or(e);return t||{}}function xr(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=Xt(Xt(Xt({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return Xt(Xt({},e),Ar(t))}),{}));continue;case"engineering":t=Xt(Xt(Xt({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return Xt(Xt({},e),Ar(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Sr,(function(e,r,n,o,i,a){if(r)t.minimumIntegerDigits=n.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(kr.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(Er.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Er,(function(e,r,n,o,i,a){return"*"===n?t.minimumFractionDigits=r.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var i=o.options[0];"w"===i?t=Xt(Xt({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=Xt(Xt({},t),Ir(i)))}else if(Cr.test(o.stem))t=Xt(Xt({},t),Ir(o.stem));else{var a=Or(o.stem);a&&(t=Xt(Xt({},t),a));var s=Tr(o.stem);s&&(t=Xt(Xt({},t),s))}}return t}var Pr,Rr={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Nr(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(Rr[r||""]||Rr[n||""]||Rr["".concat(n,"-001")]||Rr["001"])[0]}var Lr=new RegExp("^".concat(yr.source,"*")),Mr=new RegExp("".concat(yr.source,"*$"));function Dr(e,t){return{start:e,end:t}}var Ur=!!String.prototype.startsWith&&"_a".startsWith("a",1),Fr=!!String.fromCodePoint,jr=!!Object.fromEntries,Hr=!!String.prototype.codePointAt,Br=!!String.prototype.trimStart,zr=!!String.prototype.trimEnd,qr=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Kr=!0;try{Kr="a"===(null===(Pr=Xr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Pr?void 0:Pr[0])}catch(e){Kr=!1}var Vr,Gr=Ur?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Wr=Fr?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;o>i;){if((r=e[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},$r=jr?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],a=o[1];t[i]=a}return t},Jr=Hr?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,o=e.charCodeAt(t);return o<55296||o>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},Yr=Br?function(e){return e.trimStart()}:function(e){return e.replace(Lr,"")},Qr=zr?function(e){return e.trimEnd()}:function(e){return e.replace(Mr,"")};function Xr(e,t){return new RegExp(e,t)}if(Kr){var Zr=Xr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Vr=function(e,t){var r;return Zr.lastIndex=t,null!==(r=Zr.exec(e)[1])&&void 0!==r?r:""}}else Vr=function(e,t){for(var r=[];;){var n=Jr(e,t);if(void 0===n||rn(n)||nn(n))break;r.push(n),t+=n>=65536?2:1}return Wr.apply(void 0,r)};var en=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(nr.UNMATCHED_CLOSING_TAG,Dr(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&tn(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:or.pound,location:Dr(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:or.literal,value:"<".concat(n,"/>"),location:Dr(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!tn(this.char()))return this.error(nr.INVALID_TAG,Dr(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(nr.UNMATCHED_CLOSING_TAG,Dr(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:or.tag,value:n,children:i,location:Dr(r,this.clonePosition())},err:null}:this.error(nr.INVALID_TAG,Dr(a,this.clonePosition())))}return this.error(nr.UNCLOSED_TAG,Dr(r,this.clonePosition()))}return this.error(nr.INVALID_TAG,Dr(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{var i=this.tryParseUnquoted(e,t);if(i)n+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=Dr(r,this.clonePosition());return{val:{type:or.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(tn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Wr.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),Wr(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(nr.EXPECT_ARGUMENT_CLOSING_BRACE,Dr(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(nr.EMPTY_ARGUMENT,Dr(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(nr.MALFORMED_ARGUMENT,Dr(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(nr.EXPECT_ARGUMENT_CLOSING_BRACE,Dr(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:or.argument,value:n,location:Dr(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(nr.EXPECT_ARGUMENT_CLOSING_BRACE,Dr(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(nr.MALFORMED_ARGUMENT,Dr(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Vr(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:Dr(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(nr.EXPECT_ARGUMENT_TYPE,Dr(i,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(p=Qr(b.val)).length)return this.error(nr.EXPECT_ARGUMENT_STYLE,Dr(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:Dr(c,this.clonePosition())}}if((y=this.tryParseArgumentClose(n)).err)return y;var u=Dr(n,this.clonePosition());if(l&&Gr(null==l?void 0:l.style,"::",0)){var d=Yr(l.style.slice(2));if("number"===a)return(b=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?b:{val:{type:or.number,value:r,location:u,style:b.val},err:null};if(0===d.length)return this.error(nr.EXPECT_DATE_TIME_SKELETON,u);var h=d;this.locale&&(h=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if("j"===o){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var a=1+(1&i),s=i<2?1:3+(i>>1),l=Nr(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=l+r}else r+="J"===o?"H":o}return r}(d,this.locale));var p={type:ir.dateTime,pattern:h,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?_r(h):{}};return{val:{type:"date"===a?or.date:or.time,value:r,location:u,style:p},err:null}}return{val:{type:"number"===a?or.number:"date"===a?or.date:or.time,value:r,location:u,style:null!==(o=null==l?void 0:l.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(nr.EXPECT_SELECT_ARGUMENT_OPTIONS,Dr(f,Xt({},f)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),m=0;if("select"!==a&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(nr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Dr(this.clonePosition(),this.clonePosition()));var b;if(this.bumpSpace(),(b=this.tryParseDecimalInteger(nr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,nr.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return b;this.bumpSpace(),g=this.parseIdentifierIfPossible(),m=b.val}var y,v=this.tryParsePluralOrSelectOptions(e,a,t,g);if(v.err)return v;if((y=this.tryParseArgumentClose(n)).err)return y;var _=Dr(n,this.clonePosition());return"select"===a?{val:{type:or.select,value:r,options:$r(v.val),location:_},err:null}:{val:{type:or.plural,value:r,options:$r(v.val),offset:m,pluralType:"plural"===a?"cardinal":"ordinal",location:_},err:null};default:return this.error(nr.INVALID_ARGUMENT_TYPE,Dr(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(nr.EXPECT_ARGUMENT_CLOSING_BRACE,Dr(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(nr.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Dr(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(wr).filter((function(e){return e.length>0}));r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],a=o.slice(1),s=0,l=a;s<l.length;s++)if(0===l[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:a})}return t}(e)}catch(e){return this.error(nr.INVALID_NUMBER_SKELETON,t)}return{val:{type:ir.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?xr(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o,i=!1,a=[],s=new Set,l=n.value,c=n.location;;){if(0===l.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(nr.EXPECT_PLURAL_ARGUMENT_SELECTOR,nr.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=Dr(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}if(s.has(l))return this.error("select"===t?nr.DUPLICATE_SELECT_ARGUMENT_SELECTOR:nr.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(i=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?nr.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:nr.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Dr(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var f=this.tryParseArgumentClose(h);if(f.err)return f;a.push([l,{value:p.val,location:Dr(h,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===a.length?this.error("select"===t?nr.EXPECT_SELECT_ARGUMENT_SELECTOR:nr.EXPECT_PLURAL_ARGUMENT_SELECTOR,Dr(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(nr.MISSING_OTHER_CLAUSE,Dr(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=Dr(n,this.clonePosition());return o?qr(i*=r)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Jr(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Gr(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&rn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function tn(e){return e>=97&&e<=122||e>=65&&e<=90}function rn(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function nn(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function on(e){e.forEach((function(e){if(delete e.location,hr(e)||pr(e))for(var t in e.options)delete e.options[t].location,on(e.options[t].value);else cr(e)&&mr(e.style)||(ur(e)||dr(e))&&br(e.style)?delete e.style.location:gr(e)&&on(e.children)}))}function an(e,t){void 0===t&&(t={}),t=Xt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new en(e,t).parse();if(r.err){var n=SyntaxError(nr[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||on(r.val),r.val}function sn(e,t){var r=t&&t.cache?t.cache:gn,n=t&&t.serializer?t.serializer:hn;return(t&&t.strategy?t.strategy:dn)(e,{cache:r,serializer:n})}function ln(e,t,r,n){var o,i=null==(o=n)||"number"==typeof o||"boolean"==typeof o?n:r(n),a=t.get(i);return void 0===a&&(a=e.call(this,n),t.set(i,a)),a}function cn(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return void 0===i&&(i=e.apply(this,n),t.set(o,i)),i}function un(e,t,r,n,o){return r.bind(t,e,n,o)}function dn(e,t){return un(e,this,1===e.length?ln:cn,t.cache.create(),t.serializer)}var hn=function(){return JSON.stringify(arguments)};function pn(){this.cache=Object.create(null)}pn.prototype.get=function(e){return this.cache[e]},pn.prototype.set=function(e,t){this.cache[e]=t};var fn,gn={create:function(){return new pn}},mn={variadic:function(e,t){return un(e,this,cn,t.cache.create(),t.serializer)},monadic:function(e,t){return un(e,this,ln,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(fn||(fn={}));var bn,yn=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.code=r,o.originalMessage=n,o}return Qt(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),vn=function(e){function t(t,r,n,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),fn.INVALID_VALUE,o)||this}return Qt(t,e),t}(yn),_n=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),fn.INVALID_VALUE,n)||this}return Qt(t,e),t}(yn),wn=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),fn.MISSING_VALUE,r)||this}return Qt(t,e),t}(yn);function En(e){return"function"==typeof e}function Cn(e,t,r,n,o,i,a){if(1===e.length&&sr(e[0]))return[{type:bn.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(sr(u))s.push({type:bn.literal,value:u.value});else if(fr(u))"number"==typeof i&&s.push({type:bn.literal,value:r.getNumberFormat(t).format(i)});else{var d=u.value;if(!o||!(d in o))throw new wn(d,a);var h=o[d];if(lr(u))h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?bn.literal:bn.object,value:h});else if(ur(u)){var p="string"==typeof u.style?n.date[u.style]:br(u.style)?u.style.parsedOptions:void 0;s.push({type:bn.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(dr(u)){p="string"==typeof u.style?n.time[u.style]:br(u.style)?u.style.parsedOptions:n.time.medium;s.push({type:bn.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(cr(u)){(p="string"==typeof u.style?n.number[u.style]:mr(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),s.push({type:bn.literal,value:r.getNumberFormat(t,p).format(h)})}else{if(gr(u)){var f=u.children,g=u.value,m=o[g];if(!En(m))throw new _n(g,"function",a);var b=m(Cn(f,t,r,n,o,i).map((function(e){return e.value})));Array.isArray(b)||(b=[b]),s.push.apply(s,b.map((function(e){return{type:"string"==typeof e?bn.literal:bn.object,value:e}})))}if(hr(u)){if(!(y=u.options[h]||u.options.other))throw new vn(u.value,h,Object.keys(u.options),a);s.push.apply(s,Cn(y.value,t,r,n,o))}else if(pr(u)){var y;if(!(y=u.options["=".concat(h)])){if(!Intl.PluralRules)throw new yn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',fn.MISSING_INTL_API,a);var v=r.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0));y=u.options[v]||u.options.other}if(!y)throw new vn(u.value,h,Object.keys(u.options),a);s.push.apply(s,Cn(y.value,t,r,n,o,h-(u.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===bn.literal&&t.type===bn.literal?r.value+=t.value:e.push(t),e}),[])}(s)}function Sn(e,t){return t?Object.keys(e).reduce((function(r,n){var o,i;return r[n]=(o=e[n],(i=t[n])?Xt(Xt(Xt({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=Xt(Xt({},o[t]),i[t]||{}),e}),{})):o),r}),Xt({},e)):e}function kn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(bn||(bn={}));var In,On=function(){function e(t,r,n,o){var i,a=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===bn.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return Cn(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=a.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{},l=(s.formatters,Zt(s,["formatters"]));this.ast=e.__parse(t,Xt(Xt({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Sn(e.formats,n),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:sn((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,er([void 0],t,!1)))}),{cache:kn(i.number),strategy:mn.variadic}),getDateTimeFormat:sn((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,er([void 0],t,!1)))}),{cache:kn(i.dateTime),strategy:mn.variadic}),getPluralRules:sn((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,er([void 0],t,!1)))}),{cache:kn(i.pluralRules),strategy:mn.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=an,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(In||(In={}));var Tn=function(e){function t(r,n,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return(i=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return Qt(t,e),t}(Error),An=function(e){function t(t,r){return e.call(this,In.UNSUPPORTED_FORMATTER,t,r)||this}return Qt(t,e),t}(Tn),xn=function(e){function t(t,r){return e.call(this,In.INVALID_CONFIG,t,r)||this}return Qt(t,e),t}(Tn),Pn=function(e){function t(t,r){return e.call(this,In.MISSING_DATA,t,r)||this}return Qt(t,e),t}(Tn),Rn=function(e){function t(t,r,n){var o=e.call(this,In.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(r,"\n"),n)||this;return o.locale=r,o}return Qt(t,e),t}(Tn),Nn=function(e){function t(t,r,n,o){var i=e.call(this,"".concat(t,"\nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description,"\n"),r,o)||this;return i.descriptor=n,i.locale=r,i}return Qt(t,e),t}(Rn),Ln=function(e){function t(t,r){var n=e.call(this,In.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return n.descriptor=t,n}return Qt(t,e),t}(Tn);function Mn(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var Dn={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0},onWarn:function(e){0}};function Un(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Fn(e,t,r,n){var o,i=e&&e[t];if(i&&(o=i[r]),o)return o;n(new An("No ".concat(t," format named: ").concat(r)))}function jn(e){ar(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Hn=Xt(Xt({},Dn),{textComponent:e.Fragment});function Bn(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var i=0;i<o;i++){var a=r[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}var zn="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?e.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=e.createContext(null)),qn=zn.Consumer,Kn=zn.Provider,Vn=zn;function Gn(t,r){var n,o=r||{},i=o.intlPropName,a=void 0===i?"intl":i,s=o.forwardRef,l=void 0!==s&&s,c=o.enforceContext,u=void 0===c||c,d=function(r){return e.createElement(qn,null,(function(n){var o;u&&jn(n);var i=((o={})[a]=n,o);return e.createElement(t,Xt({},r,i,{ref:l?r.forwardedRef:null}))}))};return d.displayName="injectIntl(".concat((n=t).displayName||n.name||"Component",")"),d.WrappedComponent=t,l?rr()(e.forwardRef((function(t,r){return e.createElement(d,Xt({},t,{forwardedRef:r}))})),t):rr()(d,t)}function Wn(){var t=e.useContext(Vn);return jn(t),t}function $n(e,t){var r=e.values,n=Zt(e,["values"]),o=t.values,i=Zt(t,["values"]);return Bn(o,r)&&Bn(n,i)}function Jn(t){var r=Wn(),n=r.formatMessage,o=r.textComponent,i=void 0===o?e.Fragment:o,a=t.id,s=t.description,l=t.defaultMessage,c=t.values,u=t.children,d=t.tagName,h=void 0===d?i:d,p=n({id:a,description:s,defaultMessage:l},c,{ignoreTag:t.ignoreTag});return"function"==typeof u?u(Array.isArray(p)?p:[p]):h?e.createElement(h,null,e.Children.toArray(p)):e.createElement(e.Fragment,null,p)}Jn.displayName="FormattedMessage";var Yn=e.memo(Jn,$n);Yn.displayName="MemoizedFormattedMessage";const Qn=Yn,Xn=["children","title"];function Zn(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class eo extends e.Component{constructor(...e){super(...e),Zn(this,"id",Jt()("icon"))}render(){const t=this.props,{children:r,title:n}=t,o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,Xn),i=`${this.id}-title`,a=Ft()(o,["role","aria-labelledby"]);return a.focusable="false",n?(a["aria-labelledby"]=i,a.role="img"):(a["aria-hidden"]="true",a.role="presentation"),e.createElement("svg",a,n?e.createElement("title",{id:i},n):null,r)}}const to=eo,ro="#fff",no="#0061d5",oo="#6f6f6f",io="#909090",ao="#d3d3d3",so=({className:t="",color:r=no,height:n=25,title:o,width:i=45})=>e.createElement(to,{className:`icon-logo ${t}`,height:n,title:o,viewBox:"0 0 98 52",width:i},e.createElement("path",{className:"fill-color",d:"M95.34 44.7c1.1 1.53.8 3.66-.75 4.8-1.56 1.13-3.74.84-4.93-.64l-7.8-10.23-7.82 10.23c-1.2 1.48-3.36 1.77-4.9.63-1.55-1.15-1.87-3.28-.75-4.8l9.06-11.86L68.4 21c-1.1-1.54-.8-3.67.75-4.8 1.55-1.14 3.72-.85 4.9.63l7.82 10.23 7.8-10.23c1.2-1.48 3.38-1.77 4.92-.63 1.52 1.13 1.84 3.26.73 4.8L86.3 32.84l9.04 11.85zM53.9 43.22c-5.86 0-10.6-4.65-10.6-10.4 0-5.72 4.74-10.37 10.6-10.37 5.85 0 10.6 4.65 10.6 10.38 0 5.74-4.75 10.4-10.6 10.4zm-31.23 0c-5.85 0-10.6-4.65-10.6-10.4 0-5.72 4.75-10.37 10.6-10.37 5.86 0 10.6 4.65 10.6 10.38 0 5.74-4.74 10.4-10.6 10.4zm31.22-27.7c-6.78 0-12.66 3.73-15.63 9.2-2.97-5.47-8.84-9.2-15.6-9.2-4 0-7.66 1.3-10.6 3.46V4.38C12.02 2.52 10.45 1 8.53 1 6.6 1 5.03 2.5 5 4.4v28.7c.16 9.43 8 17.03 17.67 17.03 6.77 0 12.64-3.73 15.6-9.2 2.98 5.47 8.86 9.2 15.62 9.2 9.74 0 17.66-7.75 17.66-17.32 0-9.55-7.92-17.3-17.68-17.3z",fill:r,fillRule:"evenodd"}));var lo,co;!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(lo||(lo={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(co||(co={}));var uo=function(e){var t=Wn(),r=e.value,n=e.children,o=Zt(e,["value","children"]);return n(t.formatNumberToParts(r,o))};uo.displayName="FormattedNumberParts";function ho(e){var t=function(t){var r=Wn(),n=t.value,o=t.children,i=Zt(t,["value","children"]),a="string"==typeof n?new Date(n||0):n;return o("formatDate"===e?r.formatDateToParts(a,i):r.formatTimeToParts(a,i))};return t.displayName=co[e],t}function po(t){var r=function(r){var n=Wn(),o=r.value,i=r.children,a=Zt(r,["value","children"]),s=n[t](o,a);if("function"==typeof i)return i(s);var l=n.textComponent||e.Fragment;return e.createElement(l,null,s)};return r.displayName=lo[t],r}uo.displayName="FormattedNumberParts";po("formatDate"),po("formatTime"),po("formatNumber"),po("formatList"),po("formatDisplayName"),ho("formatDate"),ho("formatTime");const fo={today:{id:"be.today",defaultMessage:"today"},yesterday:{id:"be.yesterday",defaultMessage:"yesterday"},logo:{id:"be.logo",defaultMessage:"Logo"},error:{id:"be.error",defaultMessage:"Error"},preview:{id:"be.preview",defaultMessage:"Preview"},previewError:{id:"be.previewError",defaultMessage:"This preview didn’t load. Please try to open or download the file to view."},previewErrorBlockedByPolicy:{id:"be.previewErrorBlockedByPolicy",defaultMessage:"Your access to this content is restricted due to a security policy."},boxEditErrorBlockedByPolicy:{id:"be.boxEditErrorBlockedByPolicy",defaultMessage:"Local editing of this content has been disabled based on an access policy"},previewUpdate:{id:"be.previewUpdate",defaultMessage:"A new version of this file is available."},reload:{id:"be.reload",defaultMessage:"Reload"},open:{id:"be.open",defaultMessage:"Open"},close:{id:"be.close",defaultMessage:"Close"},copy:{id:"be.copy",defaultMessage:"Copy"},delete:{id:"be.delete",defaultMessage:"Delete"},rename:{id:"be.rename",defaultMessage:"Rename"},remove:{id:"be.remove",defaultMessage:"Remove"},resume:{id:"be.resume",defaultMessage:"Resume"},resumeAll:{id:"be.resumeAll",defaultMessage:"Resume All"},retry:{id:"be.retry",defaultMessage:"Retry"},share:{id:"be.share",defaultMessage:"Share"},download:{id:"be.download",defaultMessage:"Download"},save:{id:"be.save",defaultMessage:"Save"},cancel:{id:"be.cancel",defaultMessage:"Cancel"},create:{id:"be.create",defaultMessage:"Create"},choose:{id:"be.choose",defaultMessage:"Choose"},upload:{id:"be.upload",defaultMessage:"Upload"},add:{id:"be.add",defaultMessage:"Add"},gridView:{id:"be.gridView",defaultMessage:"Switch to Grid View"},gridViewColumnSize:{id:"be.gridView.columnSize",defaultMessage:"Column size"},gridViewIncreaseColumnSize:{id:"be.gridView.increaseColumnSize",defaultMessage:"Increase column size"},gridViewDecreaseColumnSize:{id:"be.gridView.decreaseColumnSize",defaultMessage:"Decrease column size"},listView:{id:"be.listView",defaultMessage:"Switch to List View"},sort:{id:"be.sort",defaultMessage:"Sort"},newFolder:{id:"be.newFolder",defaultMessage:"New Folder"},in:{id:"be.in",defaultMessage:"In"},print:{id:"be.print",defaultMessage:"Print"},selected:{id:"be.selected",defaultMessage:"{count} Selected"},max:{id:"be.max",defaultMessage:"max"},nameDate:{id:"be.nameDate",defaultMessage:"{date} by {name}"},modified:{id:"be.itemModified",defaultMessage:"Modified"},modifiedDateBy:{id:"be.modifiedDateBy",defaultMessage:"Modified {date} by {name}"},modifiedDate:{id:"be.modifiedDate",defaultMessage:"Modified {date}"},created:{id:"be.itemCreated",defaultMessage:"Created"},owner:{id:"be.itemOwner",defaultMessage:"Owner"},uploader:{id:"be.itemUploader",defaultMessage:"Uploader"},interacted:{id:"be.itemInteracted",defaultMessage:"Last Accessed"},interactedDate:{id:"be.interactedDate",defaultMessage:"Last accessed on {date}"},name:{id:"be.itemName",defaultMessage:"Name"},size:{id:"be.itemSize",defaultMessage:"Size"},deleteDialogLabel:{id:"be.deleteDialogLabel",defaultMessage:"Confirm Delete"},deleteDialogFileText:{id:"be.deleteDialogFileText",defaultMessage:"Are you sure you want to delete {name}?"},deleteDialogFolderText:{id:"be.deleteDialogFolderText",defaultMessage:"Are you sure you want to delete {name} and all its contents?"},renameDialogLabel:{id:"be.renameDialogLabel",defaultMessage:"Rename"},renameDialogText:{id:"be.renameDialogText",defaultMessage:"Please enter a new name for {name}:"},renameDialogErrorInvalid:{id:"be.renameDialogErrorInvalid",defaultMessage:"This name is invalid."},renameDialogErrorInUse:{id:"be.renameDialogErrorInUse",defaultMessage:"An item with the same name already exists."},renameDialogErrorTooLong:{id:"be.renameDialogErrorTooLong",defaultMessage:"This name is too long."},createDialogLabel:{id:"be.createDialogLabel",defaultMessage:"New Folder"},createDialogText:{id:"be.createDialogText",defaultMessage:"Please enter a name."},createDialogErrorInvalid:{id:"be.createDialogErrorInvalid",defaultMessage:"This is an invalid folder name."},createDialogErrorTooLong:{id:"be.createDialogErrorTooLong",defaultMessage:"This folder name is too long."},createDialogErrorInUse:{id:"be.createDialogErrorInUse",defaultMessage:"A folder with the same name already exists."},shareDialogLabel:{id:"be.shareDialogLabel",defaultMessage:"Share"},shareDialogText:{id:"be.shareDialogText",defaultMessage:"Shared Link:"},shareDialogNone:{id:"be.shareDialogNone",defaultMessage:"None"},shareAccessOpen:{id:"be.shareAccessOpen",defaultMessage:"Access: People with the link"},shareAccessCollab:{id:"be.shareAccessCollab",defaultMessage:"Access: People in this folder"},shareAccessCompany:{id:"be.shareAccessCompany",defaultMessage:"People in this company"},shareAccessNone:{id:"be.shareAccessNone",defaultMessage:"No shared link"},shareAccessRemove:{id:"be.shareAccessRemove",defaultMessage:"Remove shared link"},searchPlaceholder:{id:"be.searchPlaceholder",defaultMessage:"Search files and folders"},sidebarAccessStats:{id:"be.sidebarAccessStats",defaultMessage:"Access Stats"},sidebarContentInsights:{id:"be.sidebarContentInsights",defaultMessage:"Content Insights"},sidebarShow:{id:"be.sidebarShow",defaultMessage:"Show Sidebar"},sidebarHide:{id:"be.sidebarHide",defaultMessage:"Hide Sidebar"},description:{id:"be.description",defaultMessage:"Description"},descriptionPlaceholder:{id:"be.descriptionPlaceholder",defaultMessage:"Enter a description"},sidebarDetailsTitle:{id:"be.sidebarDetailsTitle",defaultMessage:"Details"},sidebarSkillsTitle:{id:"be.sidebarSkillsTitle",defaultMessage:"Skills"},sidebarSkillsErrorTitle:{id:"be.sidebarSkillsErrorTitle",defaultMessage:"Skills Error"},sidebarSkillsErrorContent:{id:"be.sidebarSkillsErrorContent",defaultMessage:"An error has occurred while updating skills. Please refresh the page and try again."},sidebarActivityTitle:{id:"be.sidebarActivityTitle",defaultMessage:"Activity"},sidebarDocGenTitle:{id:"be.sidebarDocGenTitle",defaultMessage:"Doc Gen Tags"},sidebarMetadataTitle:{id:"be.sidebarMetadataTitle",defaultMessage:"Metadata"},sidebarMetadataEditingErrorContent:{id:"be.sidebarMetadataEditingErrorContent",defaultMessage:"An error has occurred while updating metadata. Please refresh the page and try again."},sidebarMetadataFetchingErrorContent:{id:"be.sidebarMetadataFetchingErrorContent",defaultMessage:"An error has occurred while fetching metadata. Please refresh the page and try again."},sidebarFileFetchingErrorContent:{id:"be.sidebarFileFetchingErrorContent",defaultMessage:"An error has occurred while fetching your Box file. Please refresh the page and try again."},sidebarProperties:{id:"be.sidebarProperties",defaultMessage:"File Properties"},sidebarNavLabel:{id:"be.sidebarNavLabel",defaultMessage:"Sidebar"},defaultSkill:{id:"be.defaultSkill",defaultMessage:"Skill Card"},statusSkill:{id:"be.statusSkill",defaultMessage:"Status"},topicsSkill:{id:"be.topicsSkill",defaultMessage:"Topics"},keywordSkill:{id:"be.keywordSkill",defaultMessage:"Topics"},faceSkill:{id:"be.faceSkill",defaultMessage:"Faces"},transcriptSkill:{id:"be.transcriptSkill",defaultMessage:"Transcript"},skillPendingStatus:{id:"be.skillPendingStatus",defaultMessage:"We’re working on processing your file - please hold!"},skillInvokedStatus:{id:"be.skillInvokedStatus",defaultMessage:"We’re preparing to process your file - please hold!"},skillUnknownError:{id:"be.skillUnknownError",defaultMessage:"Something went wrong with running this skill or fetching its data."},skillInvalidFileSizeError:{id:"be.skillInvalidFileSizeError",defaultMessage:"We’re sorry, no skills information was found. This file size is currently not supported."},skillInvalidFileExtensionError:{id:"be.skillInvalidFileExtensionError",defaultMessage:"We’re sorry, no skills information was found. This file extension is currently not supported."},skillNoInfoFoundError:{id:"be.skillNoInfoFoundError",defaultMessage:"We’re sorry, no skills information was found."},skillFileProcessingError:{id:"be.skillFileProcessingError",defaultMessage:"We’re sorry, something went wrong with processing the file."},uploadErrorTooManyFiles:{id:"be.uploadErrorTooManyFiles",defaultMessage:"You can only upload up to {fileLimit} file(s) at a time."},uploadError:{id:"be.uploadError",defaultMessage:"A network error has occurred while trying to upload."},uploadEmptyWithFolderUploadEnabled:{id:"be.uploadEmptyWithFolderUploadEnabled",defaultMessage:"Drag and drop files and folders"},uploadEmptyWithFolderUploadDisabled:{id:"be.uploadEmptyWithFolderUploadDisabled",defaultMessage:"Drag and drop files"},uploadEmptyFileInput:{id:"be.uploadEmptyFileInput",defaultMessage:"Browse your device"},uploadEmptyFolderInput:{id:"be.uploadEmptyFolderInput",defaultMessage:"Select Folders"},uploadNoDragDrop:{id:"be.uploadNoDragDrop",defaultMessage:"Select files from your device"},uploadInProgress:{id:"be.uploadInProgress",defaultMessage:"Drag and drop to add additional files"},uploadSuccess:{id:"be.uploadSuccess",defaultMessage:"Success! Your files have been uploaded."},uploadSuccessFileInput:{id:"be.uploadSuccessFileInput",defaultMessage:"Select More Files"},uploadSuccessFolderInput:{id:"be.uploadSuccessFolderInput",defaultMessage:"Select More Folders"},uploadOptions:{id:"be.uploadOptions",defaultMessage:"{option1} or {option2}"},nameASC:{id:"be.nameASC",defaultMessage:"Name: A → Z"},nameDESC:{id:"be.nameDESC",defaultMessage:"Name: Z → A"},dateASC:{id:"be.dateASC",defaultMessage:"Date: Oldest → Newest"},dateDESC:{id:"be.dateDESC",defaultMessage:"Date: Newest → Oldest"},sizeASC:{id:"be.sizeASC",defaultMessage:"Size: Smallest → Largest"},sizeDESC:{id:"be.sizeDESC",defaultMessage:"Size: Largest → Smallest"},searchState:{id:"be.searchState",defaultMessage:"Sorry, we couldn’t find what you’re looking for."},selectedState:{id:"be.selectedState",defaultMessage:"You haven’t selected any items yet."},errorState:{id:"be.errorState",defaultMessage:"A network error has occurred while trying to load."},folderState:{id:"be.folderState",defaultMessage:"There are no items in this folder."},metadataState:{id:"be.metadataState",defaultMessage:"There are no items in this folder."},recentsState:{id:"be.recentsState",defaultMessage:"There are no recent items yet."},loadingState:{id:"be.loadingState",defaultMessage:"Please wait while the items load..."},errorBreadcrumb:{id:"be.errorBreadcrumb",defaultMessage:"Error"},rootBreadcrumb:{id:"be.rootBreadcrumb",defaultMessage:"All Files"},searchBreadcrumb:{id:"be.searchBreadcrumb",defaultMessage:"Search Results"},recentsBreadcrumb:{id:"be.recentsBreadcrumb",defaultMessage:"Recents"},selectedBreadcrumb:{id:"be.selectedBreadcrumb",defaultMessage:"Selected Items"},uploadsManagerUploadInProgress:{id:"be.uploadsManagerUploadInProgress",defaultMessage:"Uploading"},uploadsManagerUploadPrompt:{id:"be.uploadsManagerUploadPrompt",defaultMessage:"Drop files on this page to upload them into this folder."},uploadsManagerUploadComplete:{id:"be.uploadsManagerUploadComplete",defaultMessage:"Completed"},uploadsManagerUploadFailed:{id:"be.uploadsManagerUploadFailed",defaultMessage:"Some Uploads Failed"},uploadsCancelButtonTooltip:{id:"be.uploadsCancelButtonTooltip",defaultMessage:"Cancel this upload"},uploadsRetryButtonTooltip:{id:"be.uploadsRetryButtonTooltip",defaultMessage:"Retry upload"},uploadsFileSizeLimitExceededErrorMessage:{id:"be.uploadsFileSizeLimitExceededErrorMessage",defaultMessage:"File size exceeds the folder owner’s file size limit"},uploadsFileSizeLimitExceededErrorMessageForUpgradeCta:{id:"be.uploadsFileSizeLimitExceededErrorMessageForUpgradeCta",defaultMessage:"This file exceeds your plan’s upload limit. Upgrade now to store larger files."},uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta:{id:"be.uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta",defaultMessage:"Upgrade"},uploadsStorageLimitErrorMessage:{id:"be.uploadsStorageLimitErrorMessage",defaultMessage:"Account storage limit reached"},uploadsPendingFolderSizeLimitErrorMessage:{id:"be.uploadsPendingFolderSizeLimitErrorMessage",defaultMessage:"Pending app folder size limit exceeded"},uploadsItemNameInUseErrorMessage:{id:"be.uploadsItemNameInUseErrorMessage",defaultMessage:"A file with this name already exists."},uploadsProvidedFolderNameInvalidMessage:{id:"be.uploadsProvidedFolderNameInvalidMessage",defaultMessage:"Provided folder name, {name}, could not be used to create a folder."},uploadsOneOrMoreChildFoldersFailedToUploadMessage:{id:"be.uploadsOneOrMoreChildFoldersFailedToUploadMessage",defaultMessage:"One or more child folders failed to upload."},uploadsPackageUploadErrorMessage:{id:"be.uploadsPackageUploadErrorMessage",defaultMessage:"Failed to upload package file. Please retry by saving as a single file."},uploadsDefaultErrorMessage:{id:"be.uploadsDefaultErrorMessage",defaultMessage:"Something went wrong with the upload. Please try again."},errorOccured:{id:"be.errorOccured",defaultMessage:"An error occurred"},editLabel:{id:"be.editLabel",defaultMessage:"Edit"},getVersionInfo:{id:"be.getVersionInfo",defaultMessage:"Get version information"},keywordsApplied:{id:"be.keywordsAppliedList",defaultMessage:"Keywords were applied"},keywordsList:{id:"be.keywordsList",defaultMessage:"Keywords: {words}"},noActivity:{id:"be.noActivity",defaultMessage:"No activity to show"},noActivityAnnotationPrompt:{id:"be.noActivityAnnotationPrompt",defaultMessage:"Hover over the preview and use the controls at the bottom to annotate the file."},noActivityCommentPrompt:{id:"be.noActivityCommentPrompt",defaultMessage:"Comment and @mention people to notify them."},versionDeleted:{id:"be.versionDeleted",defaultMessage:"{name} deleted v{version_number}"},versionPromoted:{id:"be.versionPromoted",defaultMessage:"{name} promoted v{version_promoted} to v{version_number}"},versionRestored:{id:"be.versionRestored",defaultMessage:"{name} restored v{version_number}"},versionMultipleUsersUploaded:{id:"be.versionMultipleUsersUploaded",defaultMessage:"{numberOfCollaborators} collaborators uploaded v{versions}"},versionUploadCollapsed:{id:"be.versionUploadCollapsed",defaultMessage:"{name} uploaded v{versions}"},versionUploaded:{id:"be.versionUploaded",defaultMessage:"{name} uploaded v{version_number}"},fileRequestDisplayName:{id:"be.fileRequestDisplayName",defaultMessage:"File Request"},defaultInlineErrorContentMessage:{id:"be.defaultInlineErrorContentMessage",defaultMessage:"Please try again later."},fileDescriptionInlineErrorTitleMessage:{id:"be.fileDescriptionInlineErrorTitleMessage",defaultMessage:"Something went wrong when saving the description."},defaultErrorMaskHeaderMessage:{id:"be.defaultErrorMaskHeaderMessage",defaultMessage:"We’re sorry, something went wrong."},defaultErrorMaskSubHeaderMessage:{id:"be.defaultErrorMaskSubHeaderMessage",defaultMessage:"Please refresh the page or try again later."},fileAccessStatsErrorHeaderMessage:{id:"be.fileAccessStatsErrorHeaderMessage",defaultMessage:"Something went wrong when fetching the access stats."},fileAccessStatsPermissionsError:{id:"be.accessStatsPermissionsError",defaultMessage:"Sorry, you do not have permission to see the access stats for this file."},fileClassificationErrorHeaderMessage:{id:"be.fileClassificationErrorHeaderMessage",defaultMessage:"Something went wrong when fetching classification."},currentUserErrorHeaderMessage:{id:"be.currentUserErrorHeaderMessage",defaultMessage:"Something went wrong when fetching the current user."},activityFeedItemApiError:{id:"be.activityFeedItemApiError",defaultMessage:"There was a problem loading the activity feed. Please refresh the page or try again later."},nextFile:{id:"be.nextFile",defaultMessage:"Next File"},nextPage:{id:"be.pagination.nextPage",defaultMessage:"Next Page"},pageStatus:{id:"be.pagination.pageStatus",defaultMessage:"{pageNumber} of {pageCount}"},previousFile:{id:"be.previousFile",defaultMessage:"Previous File"},previousPage:{id:"be.pagination.previousPage",defaultMessage:"Previous Page"},previousSegment:{id:"be.previousSegment",defaultMessage:"Previous Segment"},nextSegment:{id:"be.nextSegment",defaultMessage:"Next Segment"},transcriptEdit:{id:"be.transcriptEdit",defaultMessage:"Click any section to edit."},emptyOpenWithDescription:{id:"be.emptyOpenWithDescription",defaultMessage:"No integrations are available for this file"},errorOpenWithDescription:{id:"be.errorOpenWithDescription",defaultMessage:"Opening this file with other services is currently unavailable"},defaultOpenWithDescription:{id:"be.defaultOpenWithDescription",defaultMessage:"Open this file with a partner service"},executeIntegrationOpenWithErrorHeader:{id:"be.executeIntegrationOpenWithErrorHeader",defaultMessage:"We’re sorry, this integration is currently unavailable."},executeIntegrationOpenWithErrorSubHeader:{id:"be.executeIntegrationOpenWithErrorSubHeader",defaultMessage:"Please try again later."},boxToolsInstallMessage:{id:"be.boxToolsInstallMessage",defaultMessage:"Install {boxTools} to open this file on your desktop"},boxToolsBlacklistedError:{id:"be.boxEditBlacklistedError",defaultMessage:"This file cannot be opened locally"},drawAnnotation:{id:"be.drawAnnotation",defaultMessage:"Drawing annotation mode"},pointAnnotation:{id:"be.pointAnnotation",defaultMessage:"Point annotation mode"},expand:{id:"be.expand",defaultMessage:"Expand"},collapse:{id:"be.collapse",defaultMessage:"Collapse"},back:{id:"be.back",defaultMessage:"Back"},priorCollaborator:{id:"be.priorCollaborator",defaultMessage:"A Prior Collaborator"},moreOptions:{id:"be.moreOptions",defaultMessage:"More options"},bookmark:{id:"be.bookmark",defaultMessage:"Bookmark"},collaboratedFolder:{id:"be.collaboratedFolder",defaultMessage:"Collaborated Folder"},externalFolder:{id:"be.externalFolder",defaultMessage:"External Folder"},file:{id:"be.file",defaultMessage:"File"},personalFolder:{id:"be.personalFolder",defaultMessage:"Personal Folder"},sidebarDocGenTooltip:{id:"be.sidebarDocGenTooltip",defaultMessage:"Box Doc Gen"}};const go=({url:t})=>e.createElement("div",{className:"be-logo","data-testid":"be-Logo"},function(t){return"box"===t?e.createElement(so,null):"string"==typeof t?e.createElement("img",{alt:"",className:"be-logo-custom",src:t}):e.createElement("div",{className:"be-logo-placeholder"},e.createElement(Qn,fo.logo))}(t)),mo=Gn((({isHeaderLogoVisible:t=!0,view:r,isSmall:n,searchQuery:o,onSearch:i,logoUrl:a,intl:s})=>{const{formatMessage:l}=s,c=l(fo.searchPlaceholder),u=r===g,d=r===m;return e.createElement("div",{className:"be-header"},t&&e.createElement(go,{isSmall:n,url:a}),e.createElement("div",{className:"be-search"},e.createElement("input",{"aria-label":c,"data-testid":"be-Header-searchInput",disabled:!u&&!d,onChange:({currentTarget:e})=>i(e.value),placeholder:c,type:"search",value:o})))}));let bo=function(e){return e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.DEFAULT="default",e}({});const yo=({className:t="",size:r=bo.DEFAULT})=>e.createElement("div",{className:`crawler ${t} is-${r}`},e.createElement("div",null),e.createElement("div",null),e.createElement("div",null));var vo=__nested_webpack_require_646968__(91695);const _o=["children","className","constrainToScrollParent","constrainToWindow","position","isShown","offset","tetherElementClassName"];function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wo.apply(null,arguments)}function Eo(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Co=function(e){return e.BOTTOM_CENTER="bottom-center",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.MIDDLE_CENTER="middle-center",e.MIDDLE_LEFT="middle-left",e.MIDDLE_RIGHT="middle-right",e.TOP_CENTER="top-center",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right",e}({});const So={[Co.BOTTOM_CENTER]:{attachment:"top center",targetAttachment:"bottom center"},[Co.BOTTOM_LEFT]:{attachment:"top left",targetAttachment:"bottom left"},[Co.BOTTOM_RIGHT]:{attachment:"top right",targetAttachment:"bottom right"},[Co.MIDDLE_CENTER]:{attachment:"middle center",targetAttachment:"middle center"},[Co.MIDDLE_LEFT]:{attachment:"middle right",targetAttachment:"middle left"},[Co.MIDDLE_RIGHT]:{attachment:"middle left",targetAttachment:"middle right"},[Co.TOP_CENTER]:{attachment:"bottom center",targetAttachment:"top center"},[Co.TOP_LEFT]:{attachment:"bottom left",targetAttachment:"top left"},[Co.TOP_RIGHT]:{attachment:"bottom right",targetAttachment:"top right"}};class ko extends e.Component{constructor(...t){super(...t),Eo(this,"tetherRef",e.createRef()),Eo(this,"radarAnimationID",Jt()("radarAnimation")),Eo(this,"position",(()=>{const{isShown:e}=this.props;this.tetherRef.current&&e&&this.tetherRef.current.position()}))}render(){const t=this.props,{children:r,className:n="",constrainToScrollParent:o,constrainToWindow:i,position:a,isShown:s,offset:l,tetherElementClassName:c}=t,u=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,_o),d=[];o&&d.push({to:"scrollParent",attachment:"together"}),i&&d.push({to:"window",attachment:"together"});const{attachment:h,targetAttachment:p}=So[a],f=e.Children.only(r),g=e.cloneElement(f,{"aria-describedby":this.radarAnimationID}),m={attachment:h,classPrefix:"radar-animation",constraints:d,targetAttachment:p};return c&&(m.className=c),l&&(m.offset=l),e.createElement(vo.A,wo({ref:this.tetherRef},m),g,s&&e.createElement("div",wo({className:`radar ${n}`,id:this.radarAnimationID},u),e.createElement("div",{className:"radar-dot"}),e.createElement("div",{className:"radar-circle"})))}}Eo(ko,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!0,isShown:!0,position:Co.MIDDLE_RIGHT});const Io=ko,Oo=["children","className","icon","isDisabled","isLoading","isSelected","setRef","size","type","showRadar"];function To(){return To=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},To.apply(null,arguments)}function Ao(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let xo=function(e){return e.BUTTON="button",e.RESET="reset",e.SUBMIT="submit",e}({});class Po extends e.Component{constructor(...e){super(...e),Ao(this,"btnElement",null),Ao(this,"handleClick",(e=>{const{isDisabled:t,onClick:r}=this.props;if(t||this.btnElement&&this.btnElement.classList.contains("is-disabled"))return e.preventDefault(),void e.stopPropagation();r&&r(e)}))}render(){const t=this.props,{children:r,className:n,icon:o,isDisabled:i,isLoading:a,isSelected:s,setRef:l,size:c,type:u,showRadar:d}=t,h=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,Oo),p=Ft()(h,["onClick"]);i&&(p["aria-disabled"]=!0);const f=qt()("btn",{"is-disabled":i,"is-loading":a,"is-selected":s,"bdl-is-disabled":i,"bdl-btn--large":"large"===c,"bdl-has-icon":!!o},n);let g=e.createElement("button",To({ref:e=>{this.btnElement=e,l&&l(e)},className:f,onClick:this.handleClick,type:u},p),r?e.createElement("span",{className:"btn-content"},r):null,o?e.createElement("span",{className:"bdl-btn-icon"},e.cloneElement(o,{width:o&&r?16:20,height:o&&r?16:20})):null,a&&e.createElement(yo,{className:"btn-loading-indicator"}));return d&&(g=e.createElement(Io,null,g)),g}}Ao(Po,"defaultProps",{className:"",isLoading:!1,showRadar:!1,type:xo.SUBMIT});const Ro=Po,No=["children","className","getDOMRef","isDisabled","type"];function Lo(){return Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lo.apply(null,arguments)}const Mo=t=>{let{children:r,className:n="",getDOMRef:o=Dt(),isDisabled:i=!1,type:a=xo.SUBMIT}=t,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,No);const l={};return i&&(l["aria-disabled"]=!0,l.onClick=e=>{e.preventDefault(),e.stopPropagation()}),e.createElement("button",Lo({className:`btn-plain ${n}`,ref:o,type:a},s,l),r)};let Do=function(e){return e.DOWN="down",e.LEFT="left",e.RIGHT="right",e.UP="up",e}({});const Uo={[Do.DOWN]:135,[Do.LEFT]:225,[Do.RIGHT]:45,[Do.UP]:315},Fo=({className:t="",color:r="#000",direction:n=Do.UP,size:o="9px",thickness:i="2px"})=>e.createElement("span",{className:`icon-chevron icon-chevron-${n} ${t}`,style:{borderColor:r,borderStyle:"solid solid none none",borderWidth:i,display:"inline-block",height:o,transform:`rotate(${Uo[n]}deg)`,width:o}}),jo=({delimiter:t})=>t===Oe?e.createElement(Fo,{className:"be-breadcrumb-seperator",color:"#999",direction:"right",size:"7px"}):e.createElement("span",null,"/"),Ho=({name:t="",onClick:r,isLast:n,delimiter:o})=>{const i=r?e.createElement(Mo,{onClick:r,type:"button",className:"bdl-Breadcrumb-title"},t):e.createElement("div",{className:"bdl-Breadcrumb-title"},t);return e.createElement("span",{className:"be-breadcrumb"},i,n?null:e.createElement(jo,{delimiter:o}))};function Bo(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class zo extends e.Component{constructor(...e){super(...e),Bo(this,"menuID",Jt()("menu")),Bo(this,"menuButtonID",Jt()("menubutton")),Bo(this,"state",{initialFocusIndex:null,isOpen:!1}),Bo(this,"openMenuAndSetFocusIndex",(e=>{this.setState({initialFocusIndex:e,isOpen:!0})})),Bo(this,"closeMenu",(e=>{const{onMenuClose:t=Dt()}=this.props;this.setState({isOpen:!1},(()=>t(e)))})),Bo(this,"focusButton",(()=>{const e=document.getElementById(this.menuButtonID);e&&e.focus()})),Bo(this,"handleButtonClick",(e=>{const{isOpen:t}=this.state;e.stopPropagation(),e.preventDefault(),t?this.closeMenu(e):this.openMenuAndSetFocusIndex(null)})),Bo(this,"handleButtonKeyDown",(e=>{const{isOpen:t}=this.state;switch(e.key){case At:case Ot:case kt:e.stopPropagation(),e.preventDefault(),this.openMenuAndSetFocusIndex(0);break;case It:e.stopPropagation(),e.preventDefault(),this.openMenuAndSetFocusIndex(-1);break;case Tt:t&&e.stopPropagation(),e.preventDefault(),this.closeMenu(e)}})),Bo(this,"handleMenuClose",((e,t)=>{this.closeMenu(t),this.focusButton()})),Bo(this,"handleDocumentClick",(e=>{const t=document.getElementById(this.menuID),r=document.getElementById(this.menuButtonID);t&&r&&e.target instanceof Node&&!t.contains(e.target)&&!r.contains(e.target)&&this.closeMenu(e)}))}componentDidUpdate(e,t){const{useBubble:r}=this.props;if(!t.isOpen&&this.state.isOpen){document.addEventListener("click",this.handleDocumentClick,!r),document.addEventListener("contextmenu",this.handleDocumentClick,!r);const{onMenuOpen:e}=this.props;e&&e()}else t.isOpen&&!this.state.isOpen&&(document.removeEventListener("contextmenu",this.handleDocumentClick,!r),document.removeEventListener("click",this.handleDocumentClick,!r))}componentWillUnmount(){const{useBubble:e}=this.props;this.state.isOpen&&(document.removeEventListener("contextmenu",this.handleDocumentClick,!e),document.removeEventListener("click",this.handleDocumentClick,!e))}render(){const{bodyElement:t,children:r,className:n,constrainToScrollParent:o,constrainToWindow:i,constrainToWindowWithPin:a,isResponsive:s,isRightAligned:l,tetherAttachment:c,tetherTargetAttachment:u}=this.props,{isOpen:d,initialFocusIndex:h}=this.state,p=e.Children.toArray(r);if(2!==p.length)throw new Error("DropdownMenu must have exactly two children: A button component and a <Menu>");const f=p[0],g=p[1],m={id:this.menuButtonID,key:this.menuButtonID,onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,"aria-expanded":d?"true":"false"};void 0===f.props["aria-haspopup"]&&(m["aria-haspopup"]="true"),d&&(m["aria-controls"]=this.menuID);const b={id:this.menuID,key:this.menuID,initialFocusIndex:h,onClose:this.handleMenuClose,"aria-labelledby":this.menuButtonID};let y="top left",v="bottom left";l&&(y="top right",v="bottom right");const _=[];o&&_.push({to:"scrollParent",attachment:"together"}),i&&_.push({to:"window",attachment:"together"}),a&&_.push({to:"window",attachment:"together",pin:!0});const w=t instanceof HTMLElement?t:document.body;return e.createElement(vo.A,{attachment:c||y,bodyElement:w,className:qt()({"bdl-DropdownMenu--responsive":s},n),classPrefix:"dropdown-menu",constraints:_,enabled:d,targetAttachment:u||v},e.cloneElement(f,m),d&&e.cloneElement(g,b))}}Bo(zo,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!1,isResponsive:!1,isRightAligned:!1});const qo=zo,Ko=e.createContext({closeMenu:Dt()}),Vo=["children","className","isHidden","setRef","shouldOutlineFocus"];function Go(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Wo=".menu-item:not([aria-disabled])",$o=`ul:not(.submenu) > ${Wo}, ul:not(.submenu) > li > ${Wo}, ul:not(.submenu) > span > ${Wo}`,Jo=`ul.submenu > ${Wo}, ul.submenu > li > ${Wo}, ul.submenu > span > ${Wo}`;function Yo(e){e.stopPropagation(),e.preventDefault()}class Qo extends e.Component{constructor(e){super(e),Go(this,"setInitialFocusIndex",((e=this.props)=>{const{initialFocusIndex:t,isHidden:r}=e;r||void 0===t||("number"==typeof t?setTimeout((()=>{this.setFocus(t)}),0):null===t&&setTimeout((()=>{this.menuEl&&this.menuEl.focus()}),0))})),Go(this,"setMenuItemEls",(()=>{const{isSubmenu:e,menuItemSelector:t}=this.props,r=t||(e?Jo:$o);this.menuItemEls=this.menuEl?[].slice.call(this.menuEl.querySelectorAll(r)):[]})),Go(this,"getMenuItemElFromEventTarget",(e=>{let t=null,r=-1;for(let n=0;n<this.menuItemEls.length;n+=1)if(this.menuItemEls[n].contains(e)){t=this.menuItemEls[n],r=n;break}return{menuItemEl:t,menuIndex:r}})),Go(this,"setFocus",(e=>{if(!this.menuItemEls.length)return;const t=this.menuItemEls.length;this.focusIndex=e>=t?0:e<0?t-1:e,this.menuItemEls[this.focusIndex].focus()})),Go(this,"focusFirstItem",(()=>{this.setFocus(0)})),Go(this,"focusLastItem",(()=>{this.setFocus(-1)})),Go(this,"focusNextItem",(()=>{this.setFocus(this.focusIndex+1)})),Go(this,"focusPreviousItem",(()=>{this.setFocus(this.focusIndex-1)})),Go(this,"fireOnCloseHandler",((e,t)=>{const{onClose:r}=this.props;r&&r(e,t)})),Go(this,"handleClick",(e=>{const{menuItemEl:t}=e.target instanceof Node?this.getMenuItemElFromEventTarget(e.target):{};t&&this.fireOnCloseHandler(!1,e)})),Go(this,"handleKeyDown",(e=>{const{isSubmenu:t,initialFocusIndex:r}=this.props;switch(e.key){case"ArrowDown":Yo(e),null!==r||this.keyboardPressed?this.focusNextItem():this.focusFirstItem();break;case"ArrowUp":Yo(e),this.focusPreviousItem();break;case"ArrowLeft":if(!t)return;Yo(e),this.fireOnCloseHandler(!0,e);break;case"Home":case"PageUp":Yo(e),this.focusFirstItem();break;case"End":case"PageDown":Yo(e),this.focusLastItem();break;case"Escape":Yo(e),this.fireOnCloseHandler(!0,e);break;case"Tab":this.fireOnCloseHandler(!0,e);break;case" ":case"Enter":Yo(e),e.target instanceof HTMLElement&&e.target.click()}this.keyboardPressed=!0})),this.focusIndex=0,this.menuEl=null,this.menuItemEls=[]}componentDidMount(){this.setMenuItemEls(),this.setInitialFocusIndex()}componentDidUpdate({isHidden:t,children:r}){const{children:n,isHidden:o,isSubmenu:i}=this.props;if(i&&t&&!o&&(this.setMenuItemEls(),this.setInitialFocusIndex(this.props)),e.Children.toArray(r).length!==e.Children.toArray(n).length){const e=this.menuItemEls[this.focusIndex];this.setMenuItemEls();const{menuIndex:t}=this.getMenuItemElFromEventTarget(e),r=-1===t,n=this.focusIndex>=this.menuItemEls.length;this.setFocus(r&&!n?this.focusIndex:t)}}render(){const t=this.props,{children:r,className:n,isHidden:o,setRef:i,shouldOutlineFocus:a}=t,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,Vo),l=Ft()(s,["onClose","initialFocusIndex","isSubmenu","menuItemSelector"]);return l.className=qt()("aria-menu",n,{"is-hidden":o,"should-outline-focus":a}),l.ref=e=>{this.menuEl=e,i&&i(e)},void 0===l.role&&(l.role="menu"),l.tabIndex=-1,l.onClick=this.handleClick,l.onKeyDown=this.handleKeyDown,e.createElement("ul",l,e.createElement(Ko.Provider,{value:{closeMenu:this.fireOnCloseHandler}},r))}}Go(Qo,"defaultProps",{className:"",isSubmenu:!1,isHidden:!1});const Xo=Qo,Zo=["children","className","isDisabled","isSelectItem","isSelected","showRadar"];function ei(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class ti extends e.Component{constructor(...e){super(...e),ei(this,"onClickHandler",(e=>{const{isDisabled:t,onClick:r}=this.props;if(t)return e.stopPropagation(),void e.preventDefault();r&&r(e)}))}render(){const t=this.props,{children:r,className:n,isDisabled:o,isSelectItem:i,isSelected:a,showRadar:s}=t,l=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,Zo),c=Ft()(l,["role","tabIndex","onClick"]);c.className=qt()("menu-item",n,{"is-select-item":i,"is-selected":a}),c.role=i?"menuitemradio":"menuitem",c.tabIndex=-1,c.onClick=this.onClickHandler,i&&(c["aria-checked"]=a),o&&(c["aria-disabled"]="true");let u=e.createElement("li",c,r);return s&&(u=e.createElement(Io,null,u)),u}}const ri=ti,ni=({crumbs:t,onCrumbClick:r,className:n=""})=>e.createElement(qo,{constrainToScrollParent:!0},e.createElement(Mo,{className:`be-breadcrumbs-drop-down ${n}`,type:"button"},"···"),e.createElement(Xo,null,t.map((({id:t,name:n})=>e.createElement(ri,{key:t,onClick:()=>r(t)},n)))));function oi(t,r,n,o){if(Array.isArray(t)){const r=o!==Oe;return e.createElement("span",{className:"be-breadcrumb-more"},e.createElement(ni,{className:r?"be-breadcrumbs-condensed":"",crumbs:t,onCrumbClick:n}),e.createElement(jo,{delimiter:r?Ie:Oe}))}const{id:i,name:a}=t;return e.createElement(Ho,{delimiter:o,isLast:r,name:a,onClick:()=>n(i)})}const ii=Gn((({rootId:t,crumbs:r,onCrumbClick:n,delimiter:o,isSmall:i=!1,intl:a})=>{if(!t||0===r.length)return e.createElement("span",null);const s=function(e,t){const r=t.findIndex((t=>t.id===e));return-1===r?t:t.slice(r)}(t,r),l=s.find((({id:e})=>e===Pe));l&&(l.name=a.formatMessage(fo.rootBreadcrumb));const{length:c}=s,u=s[c-1],d=u.id?()=>n(u.id):void 0,h=e.createElement(Ho,{isLast:!0,name:u.name,onClick:d}),p=c>1?oi(s[c-2],!1,n,o):null,f=c>3?oi(s.slice(1,c-2),!1,n,o):null,g=c>2?oi(s[0],!1,n,o):null;return e.createElement("div",{className:"be-breadcrumbs"},i?null:g,i?null:f,p,h)})),ai=({item:t,onItemClick:r,rootId:n})=>{const{path_collection:o}=t,{entries:i=[]}=o||{};return e.createElement("span",{className:"be-inline-breadcrumbs"},e.createElement(Qn,fo.in)," ",e.createElement(ii,{crumbs:i,delimiter:Ie,onCrumbClick:r,rootId:n}))},si=Gn((({view:t,isSmall:r,rootId:n,rootName:o,currentCollection:i,onItemClick:a,intl:s})=>{let l;if(t===g||t===m){const{id:e,name:r="",breadcrumbs:n=[]}=i;l=n.concat({id:e,name:r}),t===m&&(l=l.concat({id:void 0,name:s.formatMessage(fo.searchBreadcrumb)}))}else l=[{id:void 0,name:s.formatMessage(fo[`${t}Breadcrumb`])}],t!==y&&l.unshift({id:n,name:o||s.formatMessage(fo.rootBreadcrumb)});return e.createElement(ii,{crumbs:l,delimiter:Oe,isSmall:r,onCrumbClick:a,rootId:n})}));function li(){return li=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},li.apply(null,arguments)}const ci=t=>e.createElement(ri,li({isSelectItem:!0},t)),ui=({className:t="",color:r="#222222",height:n=13,title:o,width:i=17})=>e.createElement(to,{className:`icon-sort ${t}`,height:n,title:o,viewBox:"0 0 17.49 13.49",width:i},e.createElement("path",{className:"fill-color",d:"M8.48 4.24L4.74.5V.24h-.25L4.24 0 4 .24h-.26V.5L0 4.24l.71.71 3.03-3.04v11.33h1V1.91l3.04 3.04.7-.71m.52 5l3.74 3.74v.26H13l.24.24.24-.24h.26v-.26l3.74-3.74-.7-.7-3.04 3.03V.24h-1v11.33L9.71 8.54l-.71.7",fill:r}));var di=function(e){return e.TOP_LEFT="top left",e.TOP_CENTER="top center",e.TOP_RIGHT="top right",e.MIDDLE_LEFT="middle left",e.MIDDLE_CENTER="middle center",e.MIDDLE_RIGHT="middle right",e.BOTTOM_LEFT="bottom left",e.BOTTOM_CENTER="bottom center",e.BOTTOM_RIGHT="bottom right",e}(di||{});const hi=di,pi=["children","title"];function fi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class gi extends e.Component{constructor(...e){super(...e),fi(this,"id",Jt()("icon"))}render(){const t=this.props,{children:r,title:n}=t,o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,pi),i=`${this.id}-title`,a=Ft()(o,["role","aria-labelledby"]);return a.focusable="false",n?(a["aria-labelledby"]=i,a.role="img"):(a["aria-hidden"]="true",a.role="presentation"),e.createElement("svg",a,n?e.createElement("title",{id:i},n):null,r)}}const mi=gi;function bi(){return bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bi.apply(null,arguments)}const yi=t=>e.createElement(mi,bi({width:16,height:16,viewBox:"0 0 16 16"},t),e.createElement("path",{fill:io,fillRule:"evenodd",d:"M8 6.586l4.182-4.182a.5.5 0 01.707 0l.707.707a.5.5 0 010 .707L9.414 8l4.182 4.182a.5.5 0 010 .707l-.707.707a.5.5 0 01-.707 0L8 9.414l-4.182 4.182a.5.5 0 01-.707 0l-.707-.707a.5.5 0 010-.707L6.586 8 2.404 3.818a.5.5 0 010-.707l.707-.707a.5.5 0 01.707 0L8 6.586z"})),vi={cancel:{id:"boxui.core.cancel",defaultMessage:"Cancel"},close:{id:"boxui.core.close",defaultMessage:"Close"},copy:{id:"boxui.core.copy",defaultMessage:"Copy"},copied:{id:"boxui.core.copied",defaultMessage:"Copied"},done:{id:"boxui.core.done",defaultMessage:"Done"},okay:{id:"boxui.core.okay",defaultMessage:"Okay"},save:{id:"boxui.core.save",defaultMessage:"Save"},send:{id:"boxui.core.send",defaultMessage:"Send"},optional:{id:"boxui.core.optional",defaultMessage:"optional"},pillSelectorPlaceholder:{id:"boxui.share.pillSelectorPlaceholder",defaultMessage:"Add names or email addresses"},messageSelectorPlaceholder:{id:"boxui.share.messageSelectorPlaceholder",defaultMessage:"Add a message"},invalidInputError:{id:"boxui.validation.genericError",defaultMessage:"Invalid Input"},minLengthError:{id:"boxui.validation.tooShortError",defaultMessage:"Input must be at least {min} characters"},maxLengthError:{id:"boxui.validation.tooLongError",defaultMessage:"Input cannot exceed {max} characters"},invalidEmailError:{id:"boxui.validation.emailError",defaultMessage:"Invalid Email Address"},invalidURLError:{id:"boxui.validation.URLError",defaultMessage:"Invalid URL"},invalidUserError:{id:"boxui.validation.invalidUserError",defaultMessage:"Invalid User"},requiredFieldError:{id:"boxui.validation.requiredError",defaultMessage:"Required Field"},invalidDateError:{id:"boxui.validation.invalidDateError",defaultMessage:"Invalid Date"}},_i=Gn((({intl:t,onClick:r})=>e.createElement(Mo,{"aria-label":t.formatMessage(vi.close),className:"tooltip-close-button",onClick:r},e.createElement(yi,{className:"bdl-Tooltip-iconClose",width:14,height:14}))));function wi(){return wi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wi.apply(null,arguments)}function Ei(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Ci=function(e){return e.CALLOUT="callout",e.DEFAULT="default",e.ERROR="error",e}({}),Si=function(e){return e.BOTTOM_CENTER="bottom-center",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.MIDDLE_LEFT="middle-left",e.MIDDLE_RIGHT="middle-right",e.TOP_CENTER="top-center",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right",e}({});const ki={[Si.BOTTOM_CENTER]:{attachment:hi.TOP_CENTER,targetAttachment:hi.BOTTOM_CENTER},[Si.BOTTOM_LEFT]:{attachment:hi.TOP_RIGHT,targetAttachment:hi.BOTTOM_RIGHT},[Si.BOTTOM_RIGHT]:{attachment:hi.TOP_LEFT,targetAttachment:hi.BOTTOM_LEFT},[Si.MIDDLE_LEFT]:{attachment:hi.MIDDLE_RIGHT,targetAttachment:hi.MIDDLE_LEFT},[Si.MIDDLE_RIGHT]:{attachment:hi.MIDDLE_LEFT,targetAttachment:hi.MIDDLE_RIGHT},[Si.TOP_CENTER]:{attachment:hi.BOTTOM_CENTER,targetAttachment:hi.TOP_CENTER},[Si.TOP_LEFT]:{attachment:hi.BOTTOM_RIGHT,targetAttachment:hi.TOP_RIGHT},[Si.TOP_RIGHT]:{attachment:hi.BOTTOM_LEFT,targetAttachment:hi.TOP_LEFT}};class Ii extends e.Component{constructor(t){super(t),Ei(this,"tooltipID",Jt()("tooltip")),Ei(this,"tetherRef",e.createRef()),Ei(this,"position",(()=>{this.tetherRef.current&&this.isShown()&&this.tetherRef.current.position()})),Ei(this,"closeTooltip",(()=>{const{onDismiss:e}=this.props;this.setState({wasClosedByUser:!0}),e&&e()})),Ei(this,"fireChildEvent",((e,t)=>{const{children:r}=this.props,n=r.props[e];n&&n(t)})),Ei(this,"handleTooltipEvent",(e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()})),Ei(this,"handleMouseEnter",(e=>{this.setState({isShown:!0}),this.fireChildEvent("onMouseEnter",e)})),Ei(this,"handleMouseLeave",(e=>{this.setState({isShown:!1}),this.fireChildEvent("onMouseLeave",e)})),Ei(this,"handleFocus",(e=>{this.setState({isShown:!0}),this.fireChildEvent("onFocus",e)})),Ei(this,"handleBlur",(e=>{this.setState({isShown:!1}),this.fireChildEvent("onBlur",e)})),Ei(this,"isControlled",(()=>{const{isShown:e}=this.props;return void 0!==e})),Ei(this,"handleKeyDown",(e=>{"Escape"===e.key&&(e.stopPropagation(),this.setState({isShown:!1})),this.fireChildEvent("onKeyDown",e)})),Ei(this,"isShown",(()=>{const{isShown:e}=this.props;return(this.isControlled()?e:this.state.isShown)&&!this.state.wasClosedByUser&&this.state.hasRendered})),this.state={isShown:!!t.isShown,hasRendered:!1,wasClosedByUser:!1}}componentDidMount(){this.setState({hasRendered:!0})}componentDidUpdate(e,t){this.isControlled()?!e.isShown&&this.props.isShown&&this.setState({wasClosedByUser:!1}):(!t.isShown&&this.state.isShown&&document.addEventListener("keydown",this.handleKeyDown,!0),t.isShown&&!this.state.isShown&&document.removeEventListener("keydown",this.handleKeyDown,!0))}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown,!0)}render(){const{ariaHidden:t,bodyElement:r,children:n,className:o,constrainToScrollParent:i,constrainToWindow:a,isDisabled:s,isTabbable:l=!0,offset:c,position:u=Si.TOP_CENTER,showCloseButton:d,stopBubble:h,tetherElementClassName:p,text:f,theme:g}=this.props,m=Wt()(n,"props.aria-label"),b=!!m&&m===f;if(s)return e.Children.only(n);const y=this.isControlled(),v=this.isShown(),_=d&&y,w="string"==typeof u?ki[u]:u,E=[],C={};i&&E.push({to:"scrollParent",attachment:"together"}),a&&E.push({to:"window",attachment:"together"}),v&&!t&&(b&&void 0!==m||(C["aria-describedby"]=this.tooltipID),g===Ci.ERROR&&(C["aria-errormessage"]=this.tooltipID)),y||(C.onBlur=this.handleBlur,C.onFocus=this.handleFocus,C.onMouseEnter=this.handleMouseEnter,C.onMouseLeave=this.handleMouseLeave,l&&(C.tabIndex="0"));const S=r instanceof HTMLElement?r:document.body,k=qt()("tooltip","bdl-Tooltip",o,{"is-callout":g===Ci.CALLOUT,"is-error":g===Ci.ERROR,"with-close-button":_}),I={attachment:w.attachment,bodyElement:S,classPrefix:"tooltip",constraints:E,enabled:v,targetAttachment:w.targetAttachment};p&&(I.className=p),c&&(I.offset=c);const O=e.createElement(e.Fragment,null,f,_&&e.createElement(_i,{onClick:this.closeTooltip})),T=h?e.createElement("div",{className:k,id:this.tooltipID,onClick:this.handleTooltipEvent,onContextMenu:this.handleTooltipEvent,onKeyPress:this.handleTooltipEvent,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,role:"presentation"},e.createElement("div",{role:g===Ci.ERROR?void 0:"tooltip","aria-live":"polite","aria-hidden":t||b,"data-testid":"bdl-Tooltip"},O)):e.createElement("div",{"aria-live":"polite","aria-hidden":t||b,className:k,"data-testid":"bdl-Tooltip",id:this.tooltipID,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,role:g===Ci.ERROR?void 0:"tooltip"},O);return e.createElement(vo.A,wi({ref:this.tetherRef},I),e.cloneElement(e.Children.only(n),C),v&&T)}}Ei(Ii,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!0,isDisabled:!1,position:Si.TOP_CENTER,theme:Ci.DEFAULT});const Oi=Ii,Ti=["children","isDisabled","text"];function Ai(){return Ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ai.apply(null,arguments)}const xi=t=>{let{children:r,isDisabled:n,text:o}=t,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,Ti);return n||!o?r:e.createElement(Oi,Ai({text:o},i),r)},Pi=["intl"];function Ri(){return Ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ri.apply(null,arguments)}const Ni=Gn((t=>{let{intl:r}=t,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,Pi);const o=r.formatMessage(fo.sort);return e.createElement(xi,{text:o},e.createElement(Ro,Ri({"aria-label":o,className:"be-btn-sort",type:"button"},n),e.createElement(ui,{color:oo})))})),Li=[[Y,M],[Y,D],[J,M],[J,D],[Q,M],[Q,D]],Mi=({sortBy:t,sortDirection:r,onSortChange:n})=>e.createElement(qo,{isRightAligned:!0},e.createElement(Ni,null),e.createElement(Xo,null,Li.map((([o,i])=>{const a=o===t&&i===r,s=`${o}${i}`;return e.createElement(ci,{key:s,isSelected:a,onClick:()=>n(o,i)},e.createElement(Qn,fo[s]))})))),Di=({className:t="",color:r="#222222",height:n=17,title:o,width:i=17})=>e.createElement(to,{className:`icon-add-thin ${t}`,height:n,title:o,viewBox:"0 0 17 17",width:i},e.createElement("path",{className:"fill-color",d:"M8 0h1v17H8z",fill:r}),e.createElement("path",{className:"fill-color",d:"M17 8v1H0V8z",fill:r}));function Ui(){return Ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ui.apply(null,arguments)}const Fi=t=>e.createElement(xi,{text:e.createElement(Qn,fo.add)},e.createElement(Ro,Ui({className:"be-btn-add","aria-label":fo.add.defaultMessage,type:"button"},t),e.createElement(Di,{color:oo}))),ji=({onUpload:t,onCreate:r,showUpload:n=!0,showCreate:o=!0})=>e.createElement(qo,{isRightAligned:!0},e.createElement(Fi,null),e.createElement(Xo,null,n&&e.createElement(ri,{onClick:t},e.createElement(Qn,fo.upload)),o&&e.createElement(ri,{onClick:r},e.createElement(Qn,fo.newFolder)))),Hi=({className:t="",color:r="#222",height:n=9,title:o,width:i=9})=>e.createElement(to,{className:`icon-plus-thin ${t}`,height:n,title:o,viewBox:"0 0 9 9",width:i},e.createElement("path",{className:"fill-color",d:"M5 4V0H4v4H0v1h4v4h1V5h4V4H5z",fill:r,fillRule:"evenodd"})),Bi=({className:t="",color:r="#222",height:n=1,title:o,width:i=9})=>e.createElement(to,{className:`icon-minus-thin ${t}`,height:n,title:o,viewBox:"0 0 9 1",width:i},e.createElement("path",{className:"fill-color",d:"M0 0h9v1H0z",fill:r,fillRule:"evenodd"})),zi=Gn((({columnCount:t,gridMaxColumns:r,gridMinColumns:n,intl:o,maxColumnCount:i,onChange:a})=>{const{formatMessage:s}=o,l=r-i+1,c=r-n+1,u=c-t+1;return n<i&&e.createElement("div",{className:"bdl-GridViewSlider"},e.createElement(Mo,{className:"bdl-GridViewSlider-button",onClick:()=>{a(Math.max(l,u-1))},type:"button","aria-label":s(fo.gridViewDecreaseColumnSize)},e.createElement(Bi,{color:io,width:14,height:14})),e.createElement("input",{"aria-label":s(fo.gridViewColumnSize),className:"bdl-GridViewSlider-range",max:c,min:l,onChange:e=>{a(e.currentTarget.valueAsNumber)},step:1,type:"range",value:u}),e.createElement(Mo,{className:"bdl-GridViewSlider-button",onClick:()=>{a(Math.min(c,u+1))},type:"button","aria-label":s(fo.gridViewIncreaseColumnSize)},e.createElement(Hi,{color:io,width:14,height:14})))})),qi=({className:t="",color:r=io,height:n=16,title:o,width:i=16})=>e.createElement(to,{className:`icon-grid-view-inverted ${t}`,title:o,width:i,height:n,viewBox:"0 0 16 16"},e.createElement("path",{d:"M2.5 2h4a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5zm7 0h4a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5zm-7 7h4a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5zm7 0h4a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5z",fill:r,fillRule:"nonzero"})),Ki=({className:t="",color:r="#222",height:n=9,opacity:o=1,title:i,width:a=9})=>e.createElement(to,{className:`icon-list-view ${t}`,height:n,title:i,viewBox:"0 0 9 9",width:a},e.createElement("path",{className:"fill-color",d:"M0 5h9V4H0v1zm0 4h9V8H0v1zm0-9v1h9V0H0z",fill:r,fillOpacity:o,fillRule:"evenodd"})),Vi=["className","onViewModeChange","intl","viewMode"];function Gi(){return Gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gi.apply(null,arguments)}const Wi=Gn((t=>{let{className:r="",onViewModeChange:n=Dt(),intl:o,viewMode:i}=t,a=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,Vi);const s=i===S,l=s?o.formatMessage(fo.listView):o.formatMessage(fo.gridView);return e.createElement(xi,{text:l},e.createElement(Ro,Gi({"aria-label":l,"data-testid":"view-mode-change-button",className:qt()("bdl-ViewModeChangeButton",r),type:"button",onClick:()=>{n(s?C:S)}},a),s?e.createElement(Ki,{color:oo,width:17,height:17}):e.createElement(qi,{color:oo,width:17,height:17})))})),$i=({canCreateNewFolder:t,canUpload:r,currentCollection:n,gridColumnCount:o,gridMaxColumns:i,gridMinColumns:a,maxGridColumnCountForWidth:s,onCreate:l,onGridViewSliderChange:c,onSortChange:u,onUpload:d,onViewModeChange:h,view:p,viewMode:f})=>{const{sortBy:m,sortDirection:b,items:y=[]}=n,v=!!o,_=y.length>0,w=p===g,E=w&&_,C=(!!r||!!t)&&w;return e.createElement("div",{className:"be-sub-header-right"},_&&f===S&&e.createElement(zi,{columnCount:o,gridMaxColumns:i,gridMinColumns:a,maxColumnCount:s,onChange:c}),_&&v&&e.createElement(Wi,{viewMode:f,onViewModeChange:h}),E&&!!m&&!!b&&e.createElement(Mi,{onSortChange:u,sortBy:m,sortDirection:b}),C&&e.createElement(ji,{isDisabled:!w,onCreate:l,onUpload:d,showCreate:t,showUpload:r}))},Ji=({canCreateNewFolder:t,canUpload:r,currentCollection:n,gridColumnCount:o=0,gridMaxColumns:i=0,gridMinColumns:a=0,maxGridColumnCountForWidth:s=0,onGridViewSliderChange:l=Dt(),isSmall:c,onCreate:u,onItemClick:d,onSortChange:h,onUpload:p,onViewModeChange:f,rootId:g,rootName:m,view:b,viewMode:y=C})=>e.createElement("div",{className:"be-sub-header","data-testid":"be-sub-header"},e.createElement(si,{currentCollection:n,isSmall:c,onItemClick:d,rootId:g,rootName:m,view:b}),e.createElement($i,{canCreateNewFolder:t,canUpload:r,currentCollection:n,gridColumnCount:o,gridMaxColumns:i,gridMinColumns:a,maxGridColumnCountForWidth:s,onCreate:u,onGridViewSliderChange:l,onSortChange:h,onUpload:p,onViewModeChange:f,view:b,viewMode:y}));var Yi=__nested_webpack_require_646968__(47217),Qi=__nested_webpack_require_646968__.n(Yi);function Xi(e){return`${P}${e}`}function Zi(){return Zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zi.apply(null,arguments)}function ea(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function ta(e,t){return ta=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ta(e,t)}var ra=__nested_webpack_require_646968__(39970),na=__nested_webpack_require_646968__.n(ra),oa=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var r=-1;return e.some((function(e,n){return e[0]===t&&(r=n,!0)})),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),n=this.__entries__[r];return n&&n[1]},t.prototype.set=function(t,r){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,n=e(r,t);~n&&r.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,n=this.__entries__;r<n.length;r++){var o=n[r];e.call(t,o[1],o[0])}},t}()}(),ia="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,aa=void 0!==__nested_webpack_require_646968__.g&&__nested_webpack_require_646968__.g.Math===Math?__nested_webpack_require_646968__.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),sa="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(aa):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var la=["top","right","bottom","left","width","height","size","weight"],ca="undefined"!=typeof MutationObserver,ua=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var r=!1,n=!1,o=0;function i(){r&&(r=!1,e()),n&&s()}function a(){sa(i)}function s(){var e=Date.now();if(r){if(e-o<2)return;n=!0}else r=!0,n=!1,setTimeout(a,t);o=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,r=t.indexOf(e);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){ia&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ca?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){ia&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=void 0===t?"":t;la.some((function(e){return!!~r.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),da=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},ha=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||aa},pa=va(0,0,0,0);function fa(e){return parseFloat(e)||0}function ga(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce((function(t,r){return t+fa(e["border-"+r+"-width"])}),0)}function ma(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return pa;var n=ha(e).getComputedStyle(e),o=function(e){for(var t={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var o=n[r],i=e["padding-"+o];t[o]=fa(i)}return t}(n),i=o.left+o.right,a=o.top+o.bottom,s=fa(n.width),l=fa(n.height);if("border-box"===n.boxSizing&&(Math.round(s+i)!==t&&(s-=ga(n,"left","right")+i),Math.round(l+a)!==r&&(l-=ga(n,"top","bottom")+a)),!function(e){return e===ha(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-r;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return va(o.left,o.top,s,l)}var ba="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof ha(e).SVGGraphicsElement}:function(e){return e instanceof ha(e).SVGElement&&"function"==typeof e.getBBox};function ya(e){return ia?ba(e)?function(e){var t=e.getBBox();return va(0,0,t.width,t.height)}(e):ma(e):pa}function va(e,t,r,n){return{x:e,y:t,width:r,height:n}}var _a=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=va(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ya(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),wa=function(e,t){var r=function(e){var t=e.x,r=e.y,n=e.width,o=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return da(a,{x:t,y:r,width:n,height:o,top:r,right:t+n,bottom:o+r,left:t}),a}(t);da(this,{target:e,contentRect:r})},Ea=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new oa,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof ha(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _a(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof ha(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new wa(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Ca="undefined"!=typeof WeakMap?new WeakMap:new oa,Sa=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=ua.getInstance(),n=new Ea(t,r,this);Ca.set(this,n)};["observe","unobserve","disconnect"].forEach((function(e){Sa.prototype[e]=function(){var t;return(t=Ca.get(this))[e].apply(t,arguments)}}));const ka=void 0!==aa.ResizeObserver?aa.ResizeObserver:Sa;var Ia=["client","offset","scroll","bounds","margin"];function Oa(e){var t=[];return Ia.forEach((function(r){e[r]&&t.push(r)})),t}function Ta(e,t){var r={};if(t.indexOf("client")>-1&&(r.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(r.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(r.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var n=e.getBoundingClientRect();r.bounds={top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height}}if(t.indexOf("margin")>-1){var o=getComputedStyle(e);r.margin={top:o?parseInt(o.marginTop):0,right:o?parseInt(o.marginRight):0,bottom:o?parseInt(o.marginBottom):0,left:o?parseInt(o.marginLeft):0}}return r}var Aa=function(t){return function(r){var n,o;return o=n=function(n){var o,i;function a(){for(var e,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=n.call.apply(n,[this].concat(o))||this).state={contentRect:{entry:{},client:{},offset:{},scroll:{},bounds:{},margin:{}}},e._animationFrameID=null,e._resizeObserver=null,e._node=null,e._window=null,e.measure=function(r){var n=Ta(e._node,t||Oa(e.props));r&&(n.entry=r[0].contentRect),e._animationFrameID=e._window.requestAnimationFrame((function(){null!==e._resizeObserver&&(e.setState({contentRect:n}),"function"==typeof e.props.onResize&&e.props.onResize(n))}))},e._handleRef=function(t){var r;null!==e._resizeObserver&&null!==e._node&&e._resizeObserver.unobserve(e._node),e._node=t,e._window=(r=e._node)&&r.ownerDocument&&r.ownerDocument.defaultView||window;var n=e.props.innerRef;n&&("function"==typeof n?n(e._node):n.current=e._node),null!==e._resizeObserver&&null!==e._node&&e._resizeObserver.observe(e._node)},e}i=n,(o=a).prototype=Object.create(i.prototype),o.prototype.constructor=o,ta(o,i);var s=a.prototype;return s.componentDidMount=function(){this._resizeObserver=null!==this._window&&this._window.ResizeObserver?new this._window.ResizeObserver(this.measure):new ka(this.measure),null!==this._node&&(this._resizeObserver.observe(this._node),"function"==typeof this.props.onResize&&this.props.onResize(Ta(this._node,t||Oa(this.props))))},s.componentWillUnmount=function(){null!==this._window&&this._window.cancelAnimationFrame(this._animationFrameID),null!==this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)},s.render=function(){var t=this.props,n=(t.innerRef,t.onResize,ea(t,["innerRef","onResize"]));return(0,e.createElement)(r,Zi({},n,{measureRef:this._handleRef,measure:this.measure,contentRect:this.state.contentRect}))},a}(e.Component),n.propTypes={client:na().bool,offset:na().bool,scroll:na().bool,bounds:na().bool,margin:na().bool,innerRef:na().oneOfType([na().object,na().func]),onResize:na().func},o}}()((function(e){var t=e.measure,r=e.measureRef,n=e.contentRect;return(0,e.children)({measure:t,measureRef:r,contentRect:n})}));Aa.displayName="Measure",Aa.propTypes.children=na().func;const xa=Aa,Pa=["isTouch","size","className","componentRef"];function Ra(){return Ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ra.apply(null,arguments)}function Na(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const La=!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch);const Ma=function(t){var r;return r=class extends e.PureComponent{constructor(e){super(e),Na(this,"onResize",Vt()((({bounds:{width:e}})=>{this.setState({size:this.getSize(e)})}),500)),Na(this,"innerRef",(e=>{this.innerElement=e})),Na(this,"getInnerElement",(()=>this.innerElement)),this.state={size:e.size||this.getSize(window.innerWidth)}}getSize(e){let t=f;return e<=700?t=p:e<=1e3?t=h:e<=1500&&(t=d),t}render(){const r=this.props,{isTouch:n,size:o,className:i,componentRef:a}=r,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(r,Pa);let l=o===d,c=o===h,u=o===p,g=o===f;const m=!(u||l||c||g);if([u,c,l,g].filter((e=>e)).length>1)throw new Error("Box UI Element cannot be small or medium or large or very large at the same time");if(!m)return e.createElement(t,Ra({ref:a,className:i,isLarge:l,isMedium:c,isSmall:u,isTouch:n,isVeryLarge:g},s));const{size:b}=this.state;u=b===p,c=b===h,l=b===d,g=b===f;const y=qt()({"be-is-small":u,"be-is-medium":c,"be-is-touch":n},i);return e.createElement(xa,{bounds:!0,innerRef:this.innerRef,onResize:this.onResize},(({measureRef:r})=>e.createElement(t,Ra({ref:a,className:y,getInnerRef:this.getInnerElement,isLarge:l,isMedium:c,isSmall:u,isTouch:n,isVeryLarge:g,measureRef:r},s))))}},Na(r,"defaultProps",{className:"",isTouch:La}),r};function Da(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=Xt({timeZone:t},e[n]),r}),{})}function Ua(e,t){return Object.keys(Xt(Xt({},e),t)).reduce((function(r,n){return r[n]=Xt(Xt({},e[n]||{}),t[n]||{}),r}),{})}function Fa(e,t){if(!t)return e;var r=On.formats;return Xt(Xt(Xt({},r),e),{date:Ua(Da(r.date,t),Da(e.date||{},t)),time:Ua(Da(r.time,t),Da(e.time||{},t))})}var ja=function(e,t,r,n,o){var i=e.locale,a=e.formats,s=e.messages,l=e.defaultLocale,c=e.defaultFormats,u=e.fallbackOnEmptyString,d=e.onError,h=e.timeZone,p=e.defaultRichTextElements;void 0===r&&(r={id:""});var f=r.id,g=r.defaultMessage;ar(!!f,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var m=String(f),b=s&&Object.prototype.hasOwnProperty.call(s,m)&&s[m];if(Array.isArray(b)&&1===b.length&&b[0].type===or.literal)return b[0].value;if(!n&&b&&"string"==typeof b&&!p)return b.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=Xt(Xt({},p),n||{}),a=Fa(a,h),c=Fa(c,h),!b){if(!1===u&&""===b)return b;if((!g||i&&i.toLowerCase()!==l.toLowerCase())&&d(new Ln(r,i)),g)try{return t.getMessageFormat(g,l,c,o).format(n)}catch(e){return d(new Nn('Error formatting default message for: "'.concat(m,'", rendering default message verbatim'),i,r,e)),"string"==typeof g?g:m}return m}try{return t.getMessageFormat(b,i,a,Xt({formatters:t},o||{})).format(n)}catch(e){d(new Nn('Error formatting message: "'.concat(m,'", using ').concat(g?"default message":"id"," as fallback."),i,r,e))}if(g)try{return t.getMessageFormat(g,l,c,o).format(n)}catch(e){d(new Nn('Error formatting the default message for: "'.concat(m,'", rendering message verbatim'),i,r,e))}return"string"==typeof b?b:"string"==typeof g?g:m},Ha=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function Ba(e,t,r){var n=e.locale,o=e.formats,i=e.onError;void 0===r&&(r={});var a=r.format,s=a&&Fn(o,"number",a,i)||{};return t(n,Mn(r,Ha,s))}function za(e,t,r,n){void 0===n&&(n={});try{return Ba(e,t,n).format(r)}catch(t){e.onError(new Rn("Error formatting number.",e.locale,t))}return String(r)}function qa(e,t,r,n){void 0===n&&(n={});try{return Ba(e,t,n).formatToParts(r)}catch(t){e.onError(new Rn("Error formatting number.",e.locale,t))}return[]}var Ka=["numeric","style"];function Va(e,t,r,n,o){void 0===o&&(o={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new yn('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',fn.MISSING_INTL_API));try{return function(e,t,r){var n=e.locale,o=e.formats,i=e.onError;void 0===r&&(r={});var a=r.format,s=!!a&&Fn(o,"relative",a,i)||{};return t(n,Mn(r,Ka,s))}(e,t,o).format(r,n)}catch(t){e.onError(new Rn("Error formatting relative time.",e.locale,t))}return String(r)}var Ga=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Wa(e,t,r,n){var o=e.locale,i=e.formats,a=e.onError,s=e.timeZone;void 0===n&&(n={});var l=n.format,c=Xt(Xt({},s&&{timeZone:s}),l&&Fn(i,t,l,a)),u=Mn(n,Ga,c);return"time"!==t||u.hour||u.minute||u.second||u.timeStyle||u.dateStyle||(u=Xt(Xt({},u),{hour:"numeric",minute:"numeric"})),r(o,u)}function $a(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Wa(e,"date",t,a).format(s)}catch(t){e.onError(new Rn("Error formatting date.",e.locale,t))}return String(s)}function Ja(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Wa(e,"time",t,a).format(s)}catch(t){e.onError(new Rn("Error formatting time.",e.locale,t))}return String(s)}function Ya(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=r[2],s=void 0===a?{}:a,l=e.timeZone,c=e.locale,u=e.onError,d=Mn(s,Ga,l?{timeZone:l}:{});try{return t(c,d).formatRange(o,i)}catch(t){u(new Rn("Error formatting date time range.",e.locale,t))}return String(o)}function Qa(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Wa(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new Rn("Error formatting date.",e.locale,t))}return[]}function Xa(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Wa(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new Rn("Error formatting time.",e.locale,t))}return[]}var Za=["type"];function es(e,t,r,n){var o=e.locale,i=e.onError;void 0===n&&(n={}),Intl.PluralRules||i(new yn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',fn.MISSING_INTL_API));var a=Mn(n,Za);try{return t(o,a).select(r)}catch(e){i(new Rn("Error formatting plural.",o,e))}return"other"}var ts=["type","style"],rs=Date.now();function ns(e,t,r,n){void 0===n&&(n={});var o=os(e,t,r,n).reduce((function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]);return 1===o.length?o[0]:0===o.length?"":o}function os(e,t,r,n){var o=e.locale,i=e.onError;void 0===n&&(n={}),Intl.ListFormat||i(new yn('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',fn.MISSING_INTL_API));var a=Mn(n,ts);try{var s={},l=r.map((function(e,t){if("object"==typeof e){var r=function(e){return"".concat(rs,"_").concat(e,"_").concat(rs)}(t);return s[r]=e,r}return String(e)}));return t(o,a).formatToParts(l).map((function(e){return"literal"===e.type?e:Xt(Xt({},e),{value:s[e.value]||e.value})}))}catch(e){i(new Rn("Error formatting list.",o,e))}return r}var is,as=["style","type","fallback","languageDisplay"];function ss(e,t,r,n){var o=e.locale,i=e.onError;Intl.DisplayNames||i(new yn('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',fn.MISSING_INTL_API));var a=Mn(n,as);try{return t(o,a).of(r)}catch(e){i(new Rn("Error formatting display name.",o,e))}}function ls(e){e.onWarn&&e.defaultRichTextElements&&function(e){return"string"==typeof(e?e[Object.keys(e)[0]]:void 0)}(e.messages||{})&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}function cs(e,t){var r=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,o=sn((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,er([void 0],t,!1)))}),{cache:Un(e.dateTime),strategy:mn.variadic}),i=sn((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,er([void 0],t,!1)))}),{cache:Un(e.number),strategy:mn.variadic}),a=sn((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,er([void 0],t,!1)))}),{cache:Un(e.pluralRules),strategy:mn.variadic});return{getDateTimeFormat:o,getNumberFormat:i,getMessageFormat:sn((function(e,t,r,n){return new On(e,t,r,Xt({formatters:{getNumberFormat:i,getDateTimeFormat:o,getPluralRules:a}},n||{}))}),{cache:Un(e.message),strategy:mn.variadic}),getRelativeTimeFormat:sn((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,er([void 0],e,!1)))}),{cache:Un(e.relativeTime),strategy:mn.variadic}),getPluralRules:a,getListFormat:sn((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,er([void 0],e,!1)))}),{cache:Un(e.list),strategy:mn.variadic}),getDisplayNames:sn((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,er([void 0],e,!1)))}),{cache:Un(e.displayNames),strategy:mn.variadic})}}(t),n=Xt(Xt({},Dn),e),o=n.locale,i=n.defaultLocale,a=n.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(new Pn('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&a&&a(new Pn('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new xn('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),ls(n),Xt(Xt({},n),{formatters:r,formatNumber:za.bind(null,n,r.getNumberFormat),formatNumberToParts:qa.bind(null,n,r.getNumberFormat),formatRelativeTime:Va.bind(null,n,r.getRelativeTimeFormat),formatDate:$a.bind(null,n,r.getDateTimeFormat),formatDateToParts:Qa.bind(null,n,r.getDateTimeFormat),formatTime:Ja.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:Ya.bind(null,n,r.getDateTimeFormat),formatTimeToParts:Xa.bind(null,n,r.getDateTimeFormat),formatPlural:es.bind(null,n,r.getPluralRules),formatMessage:ja.bind(null,n,r),$t:ja.bind(null,n,r),formatList:ns.bind(null,n,r.getListFormat),formatListToParts:os.bind(null,n,r.getListFormat),formatDisplayName:ss.bind(null,n,r.getDisplayNames)})}function us(e){return"function"==typeof e}function ds(t){return t?Object.keys(t).reduce((function(r,n){var o,i=t[n];return r[n]=us(i)?(o=i,function(t){return o(e.Children.toArray(t))}):i,r}),{}):t}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(is||(is={}));var hs=function(t,r,n,o){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];var s=ds(o),l=ja.apply(void 0,er([t,r,n,s],i,!1));return Array.isArray(l)?e.Children.toArray(l):l},ps=function(e,t){var r=e.defaultRichTextElements,n=Zt(e,["defaultRichTextElements"]),o=ds(r),i=cs(Xt(Xt(Xt({},Hn),n),{defaultRichTextElements:o}),t),a={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:o};return Xt(Xt({},i),{formatMessage:hs.bind(null,a,i.formatters),$t:hs.bind(null,a,i.formatters)})};function fs(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var gs=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},e.state={cache:e.cache,intl:ps(fs(e.props),e.cache),prevConfig:fs(e.props)},e}return Qt(r,t),r.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,o=fs(e);return Bn(r,o)?null:{intl:ps(o,n),prevConfig:o}},r.prototype.render=function(){return jn(this.state.intl),e.createElement(Kn,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=Hn,r}(e.PureComponent);const ms=gs,bs=({language:t,messages:r,children:n})=>!!t&&!!r?e.createElement(ms,{locale:t,messages:r},n):e.Children.only(n),ys={};function vs(e){return!(!e.options||!e.file)}function _s(e){return!(!e.options||!e.item)}function ws(e){return vs(e)?e.file:e}function Es(e){return _s(e)?e.item:e}function Cs(e){return vs(e)&&e.options||ys}function Ss(e){return _s(e)&&e.options||ys}function ks(e){const t=e.lastModified||e.lastModifiedDate;if(t&&("string"==typeof t||"number"==typeof t||t instanceof Date)){const e=new Date(t);if(r=e,"[object Date]"===Object.prototype.toString.call(r)&&!Number.isNaN(r.getTime()))return function(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}(e)}var r;return null}function Is(e,t,r){const n=e*r**2;return n>t?t:n}function Os(e){return(e.webkitGetAsEntry||e.mozGetAsEntry||e.getAsEntry).call(e)}function Ts(e){const t=Os(Es(e));return!!t&&t.isDirectory}function As(e){return new Promise((t=>{e.file((e=>{t(e)}))}))}function xs(e,t){if(!vs(e))return e.name;const r=e,n=Wt()(r,"options.folderId",t),o=Wt()(r,"options.uploadInitTimestamp",Date.now());return`${r.file.webkitRelativePath||r.file.name}_${n}_${o}`}function Ps(e,t){const r=Es(e),{name:n}=Os(r);if(!_s(e))return n;const{folderId:o=t,uploadInitTimestamp:i=Date.now()}=Ss(e);return`${n}_${o}_${i}`}function Rs(){const e=window.crypto||window.msCrypto;return!u.isMobileSafari()&&("https:"===window.location.protocol&&e&&e.subtle)}function Ns(){return new Error("Bad box item!")}function Ls(){return new Error("Insufficient Permissions!")}function Ms(){return new Error("Bad box user!")}function Ds(){return new Error("Missing text or status!")}function Us(e){return e===yt||401===e||e===bt||e>=500}function Fs(e,t,r,n){const o=[];return e.forEach((e=>{const{id:i,type:a}=e;if(!i||!a)throw Ns();let s;switch(a){case k:s=t;break;case I:s=r;break;case O:s=n;break;default:throw new Error("Unknown Type!")}const l=s.getCache(),c=s.getCacheKey(i);l.has(c)?l.merge(c,e):l.set(c,e),o.push(c)})),o}var js=__nested_webpack_require_646968__(75322),Hs=__nested_webpack_require_646968__.n(js),Bs=__nested_webpack_require_646968__(19170),zs=__nested_webpack_require_646968__.n(Bs);function qs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ks(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qs(Object(r),!0).forEach((function(t){Vs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Vs(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Gs=[$,Y,"type",Q,"parent",X,Z,"path_collection",te,ne,se,"has_collaborations",ie,"item_collection",he,pe,de,"url"],Ws=[ne,X,pe,te,se,Y,re,ce,Q,be,ue,ye,fe],$s=[he,ne,X,pe,te,se,Y,Z,le,re,ce,"retention",Q,be,ue,ye,fe],Js=["allowed_shared_link_access_levels",oe],Ys=["tagged_message",me,ne,ae,te,Z],Qs=["activity_template","app",ae,"occurred_at","rendered_text"];function Xs(e,t=[]){return e&&"object"==typeof e&&0!==Object.keys(e).length?t.filter((t=>!Hs()(e,t))):t}function Zs(e={},t){if(!Array.isArray(t)||0===t.length)return e;const r=Ks({},e);return Xs(e,t).forEach((e=>{zs()(r,e,null)})),r}var el=__nested_webpack_require_646968__(53095),tl=__nested_webpack_require_646968__.n(el),rl=__nested_webpack_require_646968__(69849),nl=__nested_webpack_require_646968__.n(rl),ol=__nested_webpack_require_646968__(59315),il=__nested_webpack_require_646968__.n(ol);const al=new Error("Bad id or auth token. ID should be typed id like file_123 or folder_123! Token should be a string or function.");class sl{static async getToken(e,t){if(null!=t&&"string"!=typeof t&&"function"!=typeof t||!e.startsWith(x)&&!e.startsWith(P))throw al;if(!t||"string"==typeof t)return t;const r=await t(e);if(!r||"string"==typeof r||"object"==typeof r&&(r.read||r.write))return r;throw al}static async getReadToken(e,t){const r=await sl.getToken(e,t);return r&&"object"==typeof r?r.read:r}static async getReadTokens(e,t){const r=Array.isArray(e)?e:[e],n=r.map((e=>sl.getReadToken(e,t))),o=await Promise.all(n),i={};return o.forEach(((e,t)=>{i[r[t]]=e})),Promise.resolve(i)}static async getWriteToken(e,t){const r=await sl.getToken(e,t);return r&&"object"==typeof r?r.write||r.read:r}static async cacheTokens(e,t){if(null!=t&&"string"!=typeof t&&"function"!=typeof t||!e.every((e=>e.startsWith(x)||e.startsWith(P))))throw al;return"function"==typeof t&&await t(e),Promise.resolve()}}const ll=sl;function cl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ul(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const dl=[ht,mt,"HEAD"].map(il());const hl=class{constructor({id:e,clientName:t,language:r,token:n,version:o,sharedLink:i,sharedLinkPassword:a,responseInterceptor:s,requestInterceptor:l,retryableStatusCodes:c=[yt],shouldRetry:u=!0}={}){ul(this,"retryCount",0),ul(this,"errorInterceptor",(e=>{if(this.shouldRetryRequest(e)){this.retryCount+=1;const t=this.getExponentialRetryTimeoutInMs(this.retryCount);return new Promise(((r,n)=>{this.retryTimeout=setTimeout((()=>{this.axios(e.config).then(r,n)}),t)}))}const t=Wt()(e,"response.data")||e;return this.responseInterceptor(t),Promise.reject(e)})),this.clientName=t,this.id=e,this.language=r,this.responseInterceptor=s||this.defaultResponseInterceptor,this.retryableStatusCodes=c,this.sharedLink=i,this.sharedLinkPassword=a,this.shouldRetry=u,this.token=n,this.version=o,this.axios=tl().create(),this.axiosSource=tl().CancelToken.source(),this.axios.interceptors.response.use(this.responseInterceptor,this.errorInterceptor),"function"==typeof l&&this.axios.interceptors.request.use(l)}defaultResponseInterceptor(e){return e}shouldRetryRequest(e){if(!this.shouldRetry||this.retryCount>=3)return!1;const{response:t,request:r,config:n}=e,o=Wt()(t,"status"),i=Wt()(n,"method"),a=r&&!t,s=o===yt,l=nl()(this.retryableStatusCodes,o)&&nl()(dl,i);return a||s||l}getExponentialRetryTimeoutInMs(e){return 2**(e-1)*1e3+Math.ceil(1e3*Math.random())}getParsedUrl(e){const t=document.createElement("a");return t.href=e,{api:e.replace(`${t.origin}/2.0`,""),host:t.host,hostname:t.hostname,pathname:t.pathname,origin:t.origin,protocol:t.protocol,hash:t.hash,port:t.port}}async getHeaders(e,t={}){const r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cl(Object(r),!0).forEach((function(t){ul(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({Accept:"application/json",[B]:"application/json"},t);this.language&&!r[z]&&(r[z]=this.language),this.sharedLink&&(r.BoxApi=`shared_link=${this.sharedLink}`,this.sharedLinkPassword&&(r.BoxApi=`${r.BoxApi}&shared_link_password=${this.sharedLinkPassword}`)),this.clientName&&(r["X-Box-Client-Name"]=this.clientName),this.version&&(r["X-Box-Client-Version"]=this.version);const n=e||this.id||"",o=await ll.getWriteToken(n,this.token);return o&&(r.Authorization=`Bearer ${o}`),r}get({url:e,id:t,params:r={},headers:n={}}){return this.getHeaders(t,n).then((t=>this.axios.get(e,{cancelToken:this.axiosSource.token,params:r,headers:t,parsedUrl:this.getParsedUrl(e)})))}post({url:e,id:t,data:r,params:n,headers:o={},method:i=pt}){return this.getHeaders(t,o).then((t=>this.axios({url:e,data:r,params:n,method:i,parsedUrl:this.getParsedUrl(e),headers:t})))}put({url:e,id:t,data:r,params:n,headers:o={}}){return this.post({id:t,url:e,data:r,params:n,headers:o,method:ft})}delete({url:e,id:t,data:r={},headers:n={}}){return this.post({id:t,url:e,data:r,headers:n,method:gt})}options({id:e,url:t,data:r,headers:n={},successHandler:o,errorHandler:i}){return this.getHeaders(e,n).then((e=>this.axios({url:t,data:r,method:mt,headers:e}).then(o).catch(i))).catch(i)}uploadFile({id:e,url:t,data:r,headers:n={},method:o=pt,successHandler:i,errorHandler:a,progressHandler:s,withIdleTimeout:l=!1,idleTimeoutDuration:c=12e4,idleTimeoutHandler:u}){return this.getHeaders(e,n).then((e=>{let d,h=s;if(l){const e=()=>{this.abort(),u&&u()};d=setTimeout(e,c),h=t=>{clearTimeout(d),d=setTimeout(e,c),s(t)}}this.axios({url:t,data:r,transformRequest:(e,t)=>{if(delete t.Accept,delete t[B],n[B]&&(t[B]=n[B]),e&&!(e instanceof Blob)&&e.attributes){const t=new FormData;return Object.keys(e).forEach((r=>{t.append(r,e[r])})),t}return e},method:o,headers:e,onUploadProgress:h,cancelToken:this.axiosSource.token}).then((e=>{clearTimeout(d),i(e)})).catch((e=>{clearTimeout(d),a(e)}))})).catch(a)}abort(){this.retryTimeout&&clearTimeout(this.retryTimeout),this.axiosSource&&(this.axiosSource.cancel(),this.axiosSource=tl().CancelToken.source())}};var pl=__nested_webpack_require_646968__(19474),fl=__nested_webpack_require_646968__.n(pl);const gl=class{constructor(){this.cache={}}set(e,t){this.cache[e]=t}merge(e,t){if(!this.has(e))throw new Error(`Key ${e} not in cache!`);this.set(e,fl()({},this.get(e),t))}unset(e){delete this.cache[e]}unsetAll(e){Object.keys(this.cache).forEach((t=>{t.startsWith(e)&&delete this.cache[t]}))}has(e){return{}.hasOwnProperty.call(this.cache,e)}get(e){if(this.has(e))return this.cache[e]}};const ml=class{constructor(){this.memoryStore=new gl;try{this.localStorage=window.localStorage,this.isLocalStorageAvailable=this.canUseLocalStorage()}catch(e){this.isLocalStorageAvailable=!1}}buildKey(e){return`localStore/0/${e}`}canUseLocalStorage(){if(!this.localStorage)return!1;try{return this.localStorage.setItem(this.buildKey("TestKey"),"testValue"),this.localStorage.removeItem(this.buildKey("TestKey")),!0}catch(e){return!1}}setItem(e,t){if(this.isLocalStorageAvailable)try{this.localStorage.setItem(this.buildKey(e),JSON.stringify(t))}catch(e){}else this.memoryStore.set(e,t)}getItem(e){if(!this.isLocalStorageAvailable)return this.memoryStore.get(e);try{const t=this.localStorage.getItem(this.buildKey(e));return t?JSON.parse(t):null}catch(e){return null}}removeItem(e){if(this.isLocalStorageAvailable)try{this.localStorage.removeItem(this.buildKey(e))}catch(e){}else this.memoryStore.unset(e)}},bl="bcu-uploads-reachability-cached-results";const yl=class{constructor(){this.localStore=new ml,this.cachedResults={},this.populateCachedResultsWithValidLocalStoreValues(),this.saveCachedResultsToLocalStore()}getCachedResultsFromLocalStore(){return this.localStore.getItem(bl)}saveCachedResultsToLocalStore(){this.localStore.setItem(bl,this.cachedResults)}isCachedHostValid(e){return e.expirationTimestampMS>Date.now()}getCachedResult(e){if(e in this.cachedResults){const t=this.cachedResults[e];if(this.isCachedHostValid(t))return t}return null}updateCachedResult(e,t){this.cachedResults[e]={isReachable:t,expirationTimestampMS:Date.now()+864e5},this.saveCachedResultsToLocalStore()}populateCachedResultsWithValidLocalStoreValues(){const e=this.getCachedResultsFromLocalStore();e&&Object.keys(e).forEach((t=>{const r=e[t];this.isCachedHostValid(r)&&(this.cachedResults[t]=r)}))}getUnreachableHostsUrls(){const e=[];return this.cachedResults?(Object.keys(this.cachedResults).forEach((t=>{const r=this.cachedResults[t];this.isCachedHostValid(r)&&!r.isReachable&&e.push(t)})),e):e}async isReachable(e){if(e===`${Ae}/`||e===`${xe}/`)return!0;const t=this.getCachedResult(e);if(t)return t.isReachable;const r=await this.makeReachabilityRequest(e);return this.updateCachedResult(e,r),r}async makeReachabilityRequest(e){const t=`${e}html5?reachability_test=run`,r={[B]:"application/x-www-form-urlencoded; charset=UTF-8","X-File-Name":"reachability_pseudofile.txt","X-File-Size":"1234"};try{await tl().post(t,"reachability_file=test_file_data",{headers:r})}catch(e){return!1}return!0}};function vl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vl(Object(r),!0).forEach((function(t){wl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const El=class{constructor(e){wl(this,"successHandler",(e=>{this.isDestroyed()||"function"!=typeof this.successCallback||this.successCallback(e)})),wl(this,"errorHandler",(e=>{if(!this.isDestroyed()&&"function"==typeof this.errorCallback){const{response:t}=e;t&&t.data?this.errorCallback(t.data,this.errorCode):this.errorCallback(e,this.errorCode)}})),this.cache=e.cache||new gl,this.apiHost=e.apiHost||Te,this.uploadHost=e.uploadHost||Ae,this.options=_l(_l({},e),{},{apiHost:this.apiHost,uploadHost:this.uploadHost,cache:this.cache}),this.xhr=new hl(this.options),this.destroyed=!1,this.consoleLog=e.consoleLog&&window.console&&window.console.log||Dt(),this.consoleError=e.consoleError&&window.console&&window.console.error||Dt(),this.uploadsReachability=new yl}destroy(){this.xhr.abort(),this.destroyed=!0}isDestroyed(){return this.destroyed}checkApiCallValidity(e,t,r){if(!r||!t)throw Ns();if(!t[e])throw Ls()}getBaseApiUrl(){const e=this.apiHost.endsWith("/")?"2.0":"/2.0";return`${this.apiHost}${e}`}getBaseUploadUrl(){const e=this.uploadHost.endsWith("/")?"api/2.0":"/api/2.0";return`${this.uploadHost}${e}`}getCache(){return this.cache}getUrl(e){throw new Error("Implement me!")}format(e){throw new Error("Implement me!")}get({id:e,successCallback:t,errorCallback:r,requestData:n,url:o}){const i=o||this.getUrl(e);return this.makeRequest(ht,e,i,t,r,n)}post({id:e,url:t,data:r,successCallback:n,errorCallback:o}){return this.makeRequest(pt,e,t,n,o,r)}put({id:e,url:t,data:r,successCallback:n,errorCallback:o}){return this.makeRequest(ft,e,t,n,o,r)}delete({id:e,url:t,data:r,successCallback:n,errorCallback:o}){return this.makeRequest(gt,e,t,n,o,r)}async makeRequest(e,t,r,n,o,i={}){if(this.isDestroyed())return;this.successCallback=n,this.errorCallback=o;const a=this.xhr[e.toLowerCase()].bind(this.xhr);try{const{data:e}=await a(_l({id:Xi(t),url:r},i));this.successHandler(e)}catch(e){this.errorHandler(e)}}};function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cl.apply(null,arguments)}function Sl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kl=class extends El{constructor(...e){super(...e),Sl(this,"deleteSuccessHandler",(()=>{if(this.isDestroyed())return;const e=this.getParentCacheKey(this.parentId),t=this.getCache().get(e);if(!t)return void this.postDeleteCleanup();const{item_collection:r}=t;if(!r)return void this.postDeleteCleanup();const{entries:n,total_count:o}=r;if(!Array.isArray(n)||"number"!=typeof o)throw Ns();const i=this.getCacheKey(this.id),a=n.length,s=n.filter((e=>e!==i)),l=s.length,c=this.merge(e,"item_collection",Cl(r,{entries:s,total_count:o-(a-l)}));this.successCallback(c),this.postDeleteCleanup()})),Sl(this,"renameSuccessHandler",(({data:e})=>{if(!this.isDestroyed()){this.getCache().unsetAll(L);const t=this.merge(this.getCacheKey(this.id),"name",e.name);this.successCallback(t)}})),Sl(this,"shareSuccessHandler",((e,t)=>{if(!this.isDestroyed()){const r=t?Zs(e,t):e,n=this.getCache(),o=this.getCacheKey(this.id);n.has(o)?n.merge(o,r):n.set(o,r),this.successCallback(n.get(o))}}))}getParentCacheKey(e){return`${R}${e}`}getCacheKey(e){return`getCacheKey(${e}) should be overriden`}getUrl(e){return`getUrl(${e}) should be overriden`}merge(e,t,r){const n=this.getCache();return n.merge(e,zs()({},t,r)),n.get(e)}postDeleteCleanup(){this.isDestroyed()||(this.getCache().unsetAll(L),this.successCallback())}deleteItem(e,t,r=Dt()){if(this.isDestroyed())return Promise.reject();this.errorCode="delete_item_error";const{id:n,permissions:o,parent:i,type:a}=e;if(!(n&&o&&i&&a))return r(Ns(),this.errorCode),Promise.reject();const{id:s}=i,{can_delete:l}=o;if(!l||!s)return r(Ls(),this.errorCode),Promise.reject();this.id=n,this.parentId=s,this.successCallback=t,this.errorCallback=r;const c=`${this.getUrl(n)}${a===k?"?recursive=true":""}`;return this.xhr.delete({url:c}).then(this.deleteSuccessHandler).catch((e=>{this.errorHandler(e)}))}rename(e,t,r,n=Dt()){if(this.isDestroyed())return Promise.reject();this.errorCode="rename_item_error";const{id:o,permissions:i}=e;if(!o||!i)return n(Ns(),this.errorCode),Promise.reject();const{can_rename:a}=i;return a?(this.id=o,this.successCallback=r,this.errorCallback=n,this.xhr.put({url:`${this.getUrl(o)}`,data:{name:t}}).then(this.renameSuccessHandler).catch((e=>{this.errorHandler(e)}))):(n(Ls(),this.errorCode),Promise.reject())}validateSharedLinkRequest(e,t,r=!1){if(!e||!t)throw this.errorCode=st,Ns();const{can_share:n,can_set_share_access:o}=t;if(!n||!r&&!o)throw this.errorCode=st,Ls()}async share(e,t,r,n=Dt(),o={}){if(this.isDestroyed())return Promise.reject();try{const{id:i,permissions:a,shared_link:s}=e;this.id=i,this.successCallback=r,this.errorCallback=n;const l=!s&&void 0===t;this.validateSharedLinkRequest(i,a,l);const{fields:c}=o,u={url:this.getUrl(this.id),data:{shared_link:t===U?null:{access:t}}};c&&(u.params={fields:c.toString()});const{data:d}=await this.xhr.put(u);return this.shareSuccessHandler(d,c)}catch(e){return this.errorHandler(e)}}async updateSharedLink(e,t,r,n=Dt(),o={}){if(this.isDestroyed())return Promise.reject();try{const{id:i,permissions:a}=e;this.id=i,this.successCallback=r,this.errorCallback=n,this.validateSharedLinkRequest(i,a);const{fields:s}=o,l={url:this.getUrl(this.id),data:{shared_link:t}};s&&(l.params={fields:s.toString()});const{data:c}=await this.xhr.put(l);return this.shareSuccessHandler(c,s)}catch(e){return this.errorHandler(e)}}};var Il=__nested_webpack_require_646968__(43165);function Ol(e,t,r=0,n=1){let o=0,i=r;return new Promise(((r,a)=>{function s(l){setTimeout((()=>{o+=1,new Promise(((t,r)=>{e(t,r,a)})).then(r).catch((e=>{if(o<t)return i*=n,void s(i);a(e)}))}),l)}s(i)}))}function Tl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Al(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tl(Object(r),!0).forEach((function(t){xl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Pl=class extends kl{getCacheKey(e){return`${N}${e}`}getUrl(e){const t=e?`/${e}`:"";return`${this.getBaseApiUrl()}/files${t}`}async getDownloadUrl(e,t,r,n){this.errorCode="get_download_url_error",this.errorCallback=n,this.successCallback=r;const o=t[pe],i=t[he],a=await ll.getReadToken(Xi(e),this.options.token);if(!o||!i||!a)return void this.errorHandler(new Error("Download is missing required fields or token."));const{query:s,url:l}=Il.parseUrl(i),c=Al(Al({},s),{},{access_token:a}),u=Il.stringify(c);this.successHandler(`${l}?${u}`)}isRepresentationsCallComplete(e){const t=Wt()(e,"data.status.state");return!t||"error"===t||"success"===t||"viewable"===t}async generateRepresentation(e){const t=Wt()(e,"info.url");return t?Ol(((e,r)=>this.xhr.get({successCallback:e,errorCallback:r,url:t}).then((t=>this.isRepresentationsCallComplete(t)?e(t.data):r(t.data))).catch((e=>{r(e)}))),4,2e3,2):e}async getThumbnailUrl(e){const t=Wt()(e,"representations.entries[0]"),r=Wt()(t,"representation"),n=Wt()(t,"content.url_template"),o=await ll.getReadToken(Xi(e.id),this.options.token);if(!r||!n||!o)return null;const i=n.replace("{+asset_path}","jpg"===r?"":"1.png"),{query:a,url:s}=Il.parseUrl(i),l=Al(Al({},a),{},{access_token:o});return`${s}?${Il.stringify(l)}`}setFileDescription(e,t,r,n){const{id:o,permissions:i}=e;return o&&i?i.can_rename?this.xhr.put({id:Xi(o),url:this.getUrl(o),data:{description:t}}).then((({data:e})=>{if(!this.isDestroyed()){const t=this.merge(this.getCacheKey(o),"description",e.description);r(t)}})).catch((()=>{if(!this.isDestroyed()){const t=this.merge(this.getCacheKey(o),"description",e.description);n(t)}})):(n(Ls()),Promise.reject()):(n(Ns()),Promise.reject())}async getFile(e,t,r,n={}){if(this.isDestroyed())return;const o=this.getCache(),i=this.getCacheKey(e),a=!n.forceFetch&&o.has(i),s=a?o.get(i):{id:e};let l=Xs(s,n.fields);const c={id:Xi(e),url:this.getUrl(e),headers:{"X-Rep-Hints":lt}};if(this.errorCode="fetch_file_error",this.successCallback=t,this.errorCallback=r,!a||0!==l.length||(t(s),l=n.fields||[],n.refreshCache)){l.length>0&&(c.params={fields:l.toString()});try{const{data:e}=await this.xhr.get(c);if(this.isDestroyed())return;const t=Zs(e,l);o.has(i)?o.merge(i,t):o.set(i,t),this.successHandler(o.get(i))}catch(e){this.errorHandler(e)}}}getFileExtension(e,t,r){this.isDestroyed()||this.getFile(e,t,r,{fields:[X]})}};const Rl=class extends kl{getCacheKey(e){return`web_link_${e}`}getUrl(e){const t=e?`/${e}`:"";return`${this.getBaseApiUrl()}/web_links${t}`}async getWeblink(e,t,r,{fields:n}={}){if(this.isDestroyed())return;const o=this.getCache(),i=this.getCacheKey(e);if(this.errorCode="fetch_weblink_error",this.successCallback=t,this.errorCallback=r,o.has(i)){if(0===Xs(o.get(i),n).length)return void t(o.get(i))}const a={url:this.getUrl(e)};n&&(a.params={fields:n.toString()});try{const{data:e}=await this.xhr.get(a);if(this.isDestroyed())return;o.has(i)?o.merge(i,e):o.set(i,e),this.successHandler(o.get(i))}catch(e){this.errorHandler(e)}}};function Nl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ll(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nl(Object(r),!0).forEach((function(t){Ml(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ml(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Dl extends kl{constructor(...e){super(...e),Ml(this,"folderSuccessHandler",(({data:e})=>{if(this.isDestroyed())return;const{item_collection:t}=e;if(!t)throw Ns();const{entries:r,total_count:n,limit:o,offset:i}=t;if(!Array.isArray(r)||"number"!=typeof n||"number"!=typeof o||"number"!=typeof i)throw Ns();const a=Fs(r,new Dl(this.options),new Pl(this.options),new Rl(this.options));this.itemCache=(this.itemCache||[]).concat(a),this.getCache().set(this.key,Ll(Ll({},e),{},{item_collection:Ll(Ll({},t),{},{entries:this.itemCache})})),this.finish()})),Ml(this,"folderDetailsSuccessHandler",(({data:e})=>{if(this.isDestroyed())return;const t=Ll(Ll({},this.getCache().get(this.key)),e);this.getCache().set(this.key,t),this.successCallback(t)})),Ml(this,"createSuccessHandler",(({data:e})=>{const{id:t}=e;if(this.isDestroyed()||!t)return;const r=this.getCacheKey(t),n=this.getCache(),o=n.get(this.key);if(!o)return void this.successCallback(e);const{item_collection:i}=o;if(!i)throw Ns();const{total_count:a,entries:s}=i;if(!Array.isArray(s)||"number"!=typeof a)throw Ns();n.set(r,e),i.entries=[r].concat(s),i.total_count=a+1,this.successCallback(e)}))}getCacheKey(e){return`${R}${e}`}getUrl(e){const t=e?`/${e}`:"";return`${this.getBaseApiUrl()}/folders${t}`}isLoaded(){return this.getCache().has(this.key)}finish(){if(this.isDestroyed())return;const e=this.getCache(),t=e.get(this.key),{id:r,name:n,permissions:o,path_collection:i,item_collection:a}=t;if(!a||!i)throw Ns();const{entries:s,offset:l,total_count:c}=a;if(!Array.isArray(s)||"number"!=typeof c)throw Ns();const u={id:r,name:n,offset:l,percentLoaded:100,permissions:o,boxItem:t,breadcrumbs:i.entries,items:s.map((t=>e.get(t))),sortBy:this.sortBy,sortDirection:this.sortDirection,totalCount:c};this.successCallback(u)}folderRequest({fields:e,noPagination:t}={},r=this.folderSuccessHandler){if(this.isDestroyed())return Promise.reject();const n=e||Gs;this.errorCode="fetch_folder_error";let o={fields:n.toString()};return t||(o=Ll(Ll({},o),{},{direction:this.sortDirection.toLowerCase(),limit:this.limit,offset:this.offset,fields:n.toString(),sort:this.sortBy.toLowerCase()})),this.xhr.get({url:this.getUrl(this.id),params:o,headers:n.includes(de)?{"X-Rep-Hints":dt}:{}}).then(r).catch(this.errorHandler)}getFolderFields(e,t,r,n={}){this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.successCallback=t,this.errorCallback=r,this.folderRequest(Ll(Ll({},n),{},{noPagination:!0}),this.folderDetailsSuccessHandler))}getFolder(e,t,r,n,o,i,a,s={}){this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.limit=t,this.offset=r,this.sortBy=n,this.sortDirection=o,this.successCallback=i,this.errorCallback=a,s.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.folderRequest(s))}folderCreateRequest(e){if(this.isDestroyed())return Promise.reject();this.errorCode="create_folder_error";const t=`${this.getUrl()}?fields=${Gs.toString()}`;return this.xhr.post({url:t,data:{name:e,parent:{id:this.id}}}).then(this.createSuccessHandler).catch(this.errorHandler)}create(e,t,r,n=Dt()){this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.successCallback=r,this.errorCallback=n,this.folderCreateRequest(t))}}const Ul=Dl;function Fl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function jl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fl(Object(r),!0).forEach((function(t){Hl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Hl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Bl{constructor(e,t,r,n,o,i){Hl(this,"files",[]),Hl(this,"folders",{}),Hl(this,"uploadChildFolders",(async e=>{const t=Object.values(this.folders).map((t=>t.upload(this.folderId,e)));await Promise.all(t)})),Hl(this,"createAndUploadFolder",(async(e,t)=>{await this.buildCurrentFolderFromEntry();let r=!1,n="";try{const e=await this.createFolder();this.folderId=e.id}catch(o){o.code===qe?this.folderId=o.context_info.conflicts[0].id:t?e(o):(r=!0,n=o.code,e({code:Ve}))}if(t)return;const o={extension:"",name:this.name,status:Ue,isFolder:!0,size:1,progress:100};r&&(o.status=Fe,o.error={code:n}),this.addFolderToUploadQueue(o)})),Hl(this,"getFormattedFiles",(()=>this.files.map((e=>({file:e,options:jl(jl({},this.fileAPIOptions),{},{folderId:this.folderId,uploadInitTimestamp:Date.now()})}))))),Hl(this,"createFolderUploadNodesFromEntries",(async e=>{await Promise.all(e.map((async e=>{const{isFile:t,name:r}=e;if(t){const t=await As(e);this.files.push(t)}else this.folders[r]=new Bl(r,this.addFilesToUploadQueue,this.addFolderToUploadQueue,this.fileAPIOptions,jl(jl({},this.baseAPIOptions),this.fileAPIOptions),e)})))})),Hl(this,"readEntry",((e,t)=>{e.readEntries((async r=>{r.length?(await this.createFolderUploadNodesFromEntries(r),this.readEntry(e,t)):t()}),Dt())})),Hl(this,"buildCurrentFolderFromEntry",(()=>this.entry?new Promise((e=>{const t=this.entry.createReader();this.readEntry(t,e)})):Promise.resolve())),Hl(this,"getFolderId",(()=>this.folderId)),this.name=e,this.addFilesToUploadQueue=t,this.addFolderToUploadQueue=r,this.fileAPIOptions=n,this.baseAPIOptions=o,this.entry=i}async upload(e,t,r=!1){this.parentFolderId=e,await this.createAndUploadFolder(t,r),this.getFolderId()&&(this.addFilesToUploadQueue(this.getFormattedFiles(),Dt(),!0),await this.uploadChildFolders(t))}createFolder(){const e=new Ul(jl(jl({},this.baseAPIOptions),{},{id:`folder_${this.parentFolderId}`}));return new Promise(((t,r)=>{e.create(this.parentFolderId,this.name,t,r)}))}}const zl=Bl;function ql(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Kl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ql(Object(r),!0).forEach((function(t){Vl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ql(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Vl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Gl=class{constructor(e,t,r,n){Vl(this,"files",[]),this.addFilesToUploadQueue=e,this.destinationFolderId=t,this.addFolderToUploadQueue=r,this.baseAPIOptions=n}buildFolderTreeFromWebkitRelativePath(e){Array.from(e).forEach((e=>{const t=ws(e),{webkitRelativePath:r}=t;if(!r)return;const n=Cs(e),o=r.split("/").slice(0,-1);if(o.length<=0)return;if(!this.folder){const e=o[0];this.folder=this.createFolderUploadNode(e,n)}1===o.length&&this.folder.files.push(t);let i=this.folder.folders;const a=o.slice(1);a.forEach(((e,r)=>{i[e]||(i[e]=this.createFolderUploadNode(e,n)),r===a.length-1?i[e].files.push(t):i=i[e].folders}))}))}async buildFolderTreeFromDataTransferItem(e){const t=Es(e),r=Ss(e),n=Os(t),{name:o}=n;this.folder=this.createFolderUploadNode(o,r,n)}createFolderUploadNode(e,t,r){return new zl(e,this.addFilesToUploadQueue,this.addFolderToUploadQueue,t,Kl(Kl({},this.baseAPIOptions),t),r)}async upload({errorCallback:e,successCallback:t}){await this.folder.upload(this.destinationFolderId,e,!0);const r=this.folder.getFolderId();r&&t([{id:r}])}cancel(){}};var Wl=__nested_webpack_require_646968__(76519),$l=__nested_webpack_require_646968__.n(Wl),Jl=__nested_webpack_require_646968__(5026),Yl=__nested_webpack_require_646968__.n(Jl);function Ql(){return window.crypto||window.msCrypto}function Xl(e,t){const r=Ql();return r!==window.msCrypto?r.subtle.digest(e,t):new Promise(((n,o)=>{if("SHA-1"===e)try{const e=Yl().arrayBuffer(t);n(e)}catch(e){o(e)}else{const i=r.subtle.digest({name:e},t);i.oncomplete=e=>{n(e.target.result)},i.onerror=o}}))}function Zl(e,t,r){"use asm";var n=new e.Int32Array(r);function o(e,t){e=e|0;t=t|0;var r=0,o=0,i=0,a=0,s=0,l=0,c=0,u=0,d=0,h=0,p=0,f=0,g=0,m=0;i=n[t+320>>2]|0;s=n[t+324>>2]|0;c=n[t+328>>2]|0;d=n[t+332>>2]|0;p=n[t+336>>2]|0;for(r=0;(r|0)<(e|0);r=r+64|0){a=i;l=s;u=c;h=d;f=p;for(o=0;(o|0)<64;o=o+4|0){m=n[r+o>>2]|0;g=((i<<5|i>>>27)+(s&c|~s&d)|0)+((m+p|0)+1518500249|0)|0;p=d;d=c;c=s<<30|s>>>2;s=i;i=g;n[e+o>>2]=m}for(o=e+64|0;(o|0)<(e+80|0);o=o+4|0){m=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;g=((i<<5|i>>>27)+(s&c|~s&d)|0)+((m+p|0)+1518500249|0)|0;p=d;d=c;c=s<<30|s>>>2;s=i;i=g;n[o>>2]=m}for(o=e+80|0;(o|0)<(e+160|0);o=o+4|0){m=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;g=((i<<5|i>>>27)+(s^c^d)|0)+((m+p|0)+1859775393|0)|0;p=d;d=c;c=s<<30|s>>>2;s=i;i=g;n[o>>2]=m}for(o=e+160|0;(o|0)<(e+240|0);o=o+4|0){m=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;g=((i<<5|i>>>27)+(s&c|s&d|c&d)|0)+((m+p|0)-1894007588|0)|0;p=d;d=c;c=s<<30|s>>>2;s=i;i=g;n[o>>2]=m}for(o=e+240|0;(o|0)<(e+320|0);o=o+4|0){m=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;g=((i<<5|i>>>27)+(s^c^d)|0)+((m+p|0)-899497514|0)|0;p=d;d=c;c=s<<30|s>>>2;s=i;i=g;n[o>>2]=m}i=i+a|0;s=s+l|0;c=c+u|0;d=d+h|0;p=p+f|0}n[t+320>>2]=i;n[t+324>>2]=s;n[t+328>>2]=c;n[t+332>>2]=d;n[t+336>>2]=p}return{hash:o}}const ec=()=>{const e=new Blob([`const RushaCore = ${Zl.toString()}`,";\n",'function Rusha(e){for(var r=function(e){if("string"==typeof e)return"string";if(e instanceof Array)return"array";if("undefined"!=typeof global&&global.Buffer&&global.Buffer.isBuffer(e))return"buffer";if(e instanceof ArrayBuffer)return"arraybuffer";if(e.buffer instanceof ArrayBuffer)return"view";if(e instanceof Blob)return"blob";throw new Error("Unsupported data type.")},n={fill:0},t=function(e){for(e+=9;e%64>0;e+=1);return e},a=function(e,r,n,t,a){var f,s=this,i=a%4,h=(t+i)%4,u=t-h;switch(i){case 0:e[a]=s[n+3];case 1:e[a+1-(i<<1)|0]=s[n+2];case 2:e[a+2-(i<<1)|0]=s[n+1];case 3:e[a+3-(i<<1)|0]=s[n]}if(!(t<h+i)){for(f=4-i;f<u;f=f+4|0)r[a+f>>2|0]=s[n+f]<<24|s[n+f+1]<<16|s[n+f+2]<<8|s[n+f+3];switch(h){case 3:e[a+u+1|0]=s[n+u+2];case 2:e[a+u+2|0]=s[n+u+1];case 1:e[a+u+3|0]=s[n+u]}}},f=function(e){switch(r(e)){case"string":return function(e,r,n,t,a){var f,s=this,i=a%4,h=(t+i)%4,u=t-h;switch(i){case 0:e[a]=s.charCodeAt(n+3);case 1:e[a+1-(i<<1)|0]=s.charCodeAt(n+2);case 2:e[a+2-(i<<1)|0]=s.charCodeAt(n+1);case 3:e[a+3-(i<<1)|0]=s.charCodeAt(n)}if(!(t<h+i)){for(f=4-i;f<u;f=f+4|0)r[a+f>>2]=s.charCodeAt(n+f)<<24|s.charCodeAt(n+f+1)<<16|s.charCodeAt(n+f+2)<<8|s.charCodeAt(n+f+3);switch(h){case 3:e[a+u+1|0]=s.charCodeAt(n+u+2);case 2:e[a+u+2|0]=s.charCodeAt(n+u+1);case 1:e[a+u+3|0]=s.charCodeAt(n+u)}}}.bind(e);case"array":case"buffer":return a.bind(e);case"arraybuffer":return a.bind(new Uint8Array(e));case"view":return a.bind(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));case"blob":return function(e,r,n,t,a){var f,s=a%4,i=(t+s)%4,h=t-i,u=new Uint8Array(reader.readAsArrayBuffer(this.slice(n,n+t)));switch(s){case 0:e[a]=u[3];case 1:e[a+1-(s<<1)|0]=u[2];case 2:e[a+2-(s<<1)|0]=u[1];case 3:e[a+3-(s<<1)|0]=u[0]}if(!(t<i+s)){for(f=4-s;f<h;f=f+4|0)r[a+f>>2|0]=u[f]<<24|u[f+1]<<16|u[f+2]<<8|u[f+3];switch(i){case 3:e[a+h+1|0]=u[h+2];case 2:e[a+h+2|0]=u[h+1];case 1:e[a+h+3|0]=u[h]}}}.bind(e)}},s=new Array(256),i=0;i<256;i++)s[i]=(i<16?"0":"")+i.toString(16);var h=function(e){for(var r=new Uint8Array(e),n=new Array(e.byteLength),t=0;t<n.length;t++)n[t]=s[r[t]];return n.join("")};!function(e){if(e%64>0)throw new Error("Chunk size must be a multiple of 128 bit");n.offset=0,n.maxChunkLen=e,n.padMaxChunkLen=t(e),n.heap=new ArrayBuffer(function(e){var r;if(e<=65536)return 65536;if(e<16777216)for(r=1;r<e;r<<=1);else for(r=16777216;r<e;r+=16777216);return r}(n.padMaxChunkLen+320+20)),n.h32=new Int32Array(n.heap),n.h8=new Int8Array(n.heap),n.core=new RushaCore({Int32Array:Int32Array,DataView:DataView},{},n.heap),n.buffer=null}(e||65536);var u=function(e,r){n.offset=0;var t=new Int32Array(e,r+320,5);t[0]=1732584193,t[1]=-271733879,t[2]=-1732584194,t[3]=271733878,t[4]=-1009589776},c=function(e,r){var a,f,s,i=t(e),h=new Int32Array(n.heap,0,i>>2);return function(e,r){var n=new Uint8Array(e.buffer),t=r%4,a=r-t;switch(t){case 0:n[a+3]=0;case 1:n[a+2]=0;case 2:n[a+1]=0;case 3:n[a+0]=0}for(var f=1+(r>>2);f<e.length;f++)e[f]=0}(h,e),s=r,(a=h)[(f=e)>>2]|=128<<24-(f%4<<3),a[14+(2+(f>>2)&-16)]=s/(1<<29)|0,a[15+(2+(f>>2)&-16)]=s<<3,i},o=function(e,r,t,a){f(e)(n.h8,n.h32,r,t,a||0)},d=function(e,r,t,a,f){var s=t;o(e,r,t),f&&(s=c(t,a)),n.core.hash(s,n.padMaxChunkLen)},y=function(e,r){var n=new Int32Array(e,r+320,5),t=new Int32Array(5),a=new DataView(t.buffer);return a.setInt32(0,n[0],!1),a.setInt32(4,n[1],!1),a.setInt32(8,n[2],!1),a.setInt32(12,n[3],!1),a.setInt32(16,n[4],!1),t},w=this.rawDigest=function(e){var r=e.byteLength||e.length||e.size||0;u(n.heap,n.padMaxChunkLen);var t=0,a=n.maxChunkLen;for(t=0;r>t+a;t+=a)d(e,t,a,r,!1);return d(e,t,r-t,r,!0),y(n.heap,n.padMaxChunkLen)};this.digest=this.digestFromString=this.digestFromBuffer=this.digestFromArrayBuffer=function(e){return h(w(e).buffer)},this.resetState=function(){return u(n.heap,n.padMaxChunkLen),this},this.append=function(e){var r,t=0,a=e.byteLength||e.length||e.size||0,f=n.offset%n.maxChunkLen;for(n.offset+=a;t<a;)r=Math.min(a-t,n.maxChunkLen-f),o(e,t,r,f),t+=r,(f+=r)===n.maxChunkLen&&(n.core.hash(n.maxChunkLen,n.padMaxChunkLen),f=0);return this},this.getState=function(){var e;if(n.offset%n.maxChunkLen)e=n.heap.slice(0);else{var r=new Int32Array(n.heap,n.padMaxChunkLen+320,5);e=r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}return{offset:n.offset,heap:e}},this.setState=function(e){(n.offset=e.offset,20===e.heap.byteLength)?new Int32Array(n.heap,n.padMaxChunkLen+320,5).set(new Int32Array(e.heap)):n.h32.set(new Int32Array(e.heap));return this};var p=this.rawEnd=function(){var e=n.offset,r=e%n.maxChunkLen,t=c(r,e);n.core.hash(t,n.padMaxChunkLen);var a=y(n.heap,n.padMaxChunkLen);return u(n.heap,n.padMaxChunkLen),a};this.end=function(){return h(p().buffer)}}',";\n","var setupWorker = ",function(){const e=new Rusha;e.resetState();let t=0;self.onmessage=r=>{const{data:n}=r,{part:o,fileSize:i,partContents:a}=n,s=Date.now();try{if(o.offset!==t)throw new Error("Out of order parts given to worker");if(e.append(a),self.postMessage({type:"partDone",part:n.part,duration:Date.now()-s,partContents:a},[a]),t+=o.size,o.offset+o.size===i){const t=e.end();self.postMessage({type:"done",sha1:t})}}catch(e){const t={type:"error",name:e.name,message:e.message,part:o};self.postMessage(t)}}}.toString(),";\n","setupWorker();"],{type:"text/javascript"}),t=(window.URL||window.webkitURL).createObjectURL(e),r=new Worker(t);return r.oldTerminate=r.terminate,r.terminate=()=>{(window.URL||window.webkitURL).revokeObjectURL(t),r.oldTerminate()},r};var tc=__nested_webpack_require_646968__(84708),rc=__nested_webpack_require_646968__.n(tc);function nc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const oc=class extends El{constructor(...e){super(...e),nc(this,"retryCount",0),nc(this,"reachabilityRetryCount",0),nc(this,"isUploadFallbackLogicEnabled",!1),nc(this,"makePreflightRequest",(()=>{if(this.isDestroyed())return;let e=`${this.getBaseApiUrl()}/files/content`;if(this.fileId&&(e=e.replace("content",`${this.fileId}/content`)),this.isUploadFallbackLogicEnabled){const t=this.uploadsReachability.getUnreachableHostsUrls();0!==t.length&&(e+=`?unreachable_hosts=${t.join(",")}`)}const{size:t,name:r}=this.file,n={name:this.fileName||r,parent:{id:this.folderId},description:this.fileDescription,size:t};this.xhr.options({url:e,data:n,successHandler:e=>{this.isUploadFallbackLogicEnabled?this.preflightSuccessReachabilityHandler(e):this.preflightSuccessHandler(e)},errorHandler:this.preflightErrorHandler})})),nc(this,"preflightSuccessReachabilityHandler",(async({data:e})=>{if(this.isDestroyed())return;const{upload_url:t}=e;if(!t)return void this.preflightSuccessHandler({data:e});const r=this.getUploadHostFromUrl(t);if(r===`${Ae}/`||r===`${xe}/`||"https://upload.app.box-gov.com/"===r)return void this.preflightSuccessHandler({data:e});await this.uploadsReachability.isReachable(r)?this.preflightSuccessHandler({data:e}):this.reachabilityRetryCount>=10?this.preflightSuccessHandler({data:{}}):(this.reachabilityRetryCount+=1,this.makePreflightRequest())})),nc(this,"preflightErrorHandler",(e=>{if(this.isDestroyed())return;this.fileName=this.file?this.file.name:"";let t=e;const{response:r}=e;if(r&&r.data&&(t=r.data),this.retryCount>=5)this.errorCallback(t);else if(t&&409===t.status){if(this.overwrite){const e=t.context_info.conflicts.id;!this.fileId&&e&&(this.fileId=e)}else if(this.conflictCallback)this.fileName=this.conflictCallback(this.fileName);else{const e=this.fileName.substr(this.fileName.lastIndexOf("."))||"";this.fileName=`${this.fileName.substr(0,this.fileName.lastIndexOf("."))}-${Date.now()}${e}`}this.makePreflightRequest(),this.retryCount+=1}else if(!t||429!==t.status&&"too_many_requests"!==t.code)t&&(t.status||"Failed to fetch"===t.message)&&"function"==typeof this.errorCallback?this.errorCallback(t):(this.retryTimeout=setTimeout(this.makePreflightRequest,2**this.retryCount*ut),this.retryCount+=1);else{let e=ct;if(t.headers){const r=parseInt(t.headers["retry-after"]||t.headers.get("Retry-After"),10);Number.isNaN(r)||(e=r*ut)}this.retryTimeout=setTimeout(this.makePreflightRequest,e),this.retryCount+=1}}))}readFile(e,t){return new Promise(((r,n)=>{e.readAsArrayBuffer(t),e.onload=()=>{r({buffer:e.result,readCompleteTimestamp:Date.now()})},e.onerror=n}))}getUploadHostFromUrl(e){const t=e.split("/");return`${t[0]}//${t[2]}/`}};function ic(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ac(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ic(Object(r),!0).forEach((function(t){sc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ic(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function sc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const lc={digestReadahead:5,initialRetryDelayMs:5e3,maxRetryDelayMs:6e4,parallelism:4,requestTimeoutMs:12e4,retries:5};const cc=class extends oc{constructor(e,t,r){super(ac(ac({},e),{},{shouldRetry:!1})),sc(this,"logEvent",((e,t)=>{const r={event_type:e};return t&&(r.event_info=t),this.xhr.post({url:this.sessionEndpoints.logEvent,data:r})})),this.config=r||lc,this.sessionEndpoints=t}};function uc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const dc=class extends cc{constructor(e,t,r,n,o,i,a,s,l,c,u,d){super(e,a,s),uc(this,"toJSON",(()=>JSON.stringify({index:this.index,offset:this.offset,partSize:this.partSize,state:this.state,uploadedBytes:this.uploadedBytes,numUploadRetriesPerformed:this.numUploadRetriesPerformed,numDigestRetriesPerformed:this.numDigestRetriesPerformed,sha1:this.sha1,timing:this.timing}))),uc(this,"getPart",(()=>this.data.part||{})),uc(this,"upload",(()=>{if(this.isDestroyedOrPaused())return;if(!this.sha1)throw new Error("Part SHA-1 unavailable");if(!this.blob)throw new Error("Part blob unavailable");const e={documentHidden:document.hidden,digest_retries:this.numDigestRetriesPerformed,timing:this.timing,parts_uploading:this.getNumPartsUploading()},t={"Content-Type":"application/octet-stream",Digest:`sha=${this.sha1}`,"Content-Range":`bytes ${this.offset}-${this.rangeEnd}/${this.fileSize}`,"X-Box-Client-Event-Info":JSON.stringify(e)};this.state=2,this.startTimestamp=Date.now(),this.xhr.uploadFile({url:this.sessionEndpoints.uploadPart,data:this.blob,headers:t,method:ft,successHandler:this.uploadSuccessHandler,errorHandler:this.uploadErrorHandler,progressHandler:this.uploadProgressHandler,withIdleTimeout:!0,idleTimeoutDuration:this.config.requestTimeoutMs})})),uc(this,"uploadSuccessHandler",(({data:e})=>{this.isDestroyedOrPaused()||(this.state=3,this.consoleLog(`Upload completed: ${this.toJSON()}.`),this.data=e,this.blob=null,this.timing.uploadTime=Date.now()-this.startTimestamp,this.onSuccess(this),this.uploadedBytes=this.partSize)})),uc(this,"uploadProgressHandler",(e=>{if(this.isDestroyedOrPaused())return;const t=parseInt(e.loaded,10),r=this.uploadedBytes;this.uploadedBytes=t,this.onProgress(r,t)})),uc(this,"uploadErrorHandler",(async e=>{if(this.isDestroyedOrPaused())return;const t=Wt()(this.xhr,"xhr.readyState",null),r=Wt()(this.xhr,"xhr.statusText","");this.consoleLog(`Upload failure ${e.message} for part ${this.toJSON()}. XHR state: ${t}.`);const n={message:e.message,part:{uploadedBytes:this.uploadedBytes,id:this.id,index:this.index,offset:this.offset},xhr_ready_state:t,xhr_status_text:r},o=JSON.stringify(n);if(this.sessionEndpoints.logEvent?Ol(((e,t)=>{this.logEvent("part_failure",o).then(e).catch(t)}),this.config.retries,this.config.initialRetryDelayMs).catch((e=>this.consoleLog(`Failure in logEvent: ${e.message}`))):this.consoleLog("logEvent endpoint not found"),this.numUploadRetriesPerformed>=this.config.retries)return void this.onError(e,o);const i=Is(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,this.numUploadRetriesPerformed);this.numUploadRetriesPerformed+=1,this.consoleLog(`Retrying uploading part ${this.toJSON()} in ${i} ms`),this.retryTimeout=setTimeout(this.retryUpload,i)})),uc(this,"retryUpload",(async()=>{if(!this.isDestroyedOrPaused())try{const e=await this.listParts(this.index,1);if(e&&1===e.length&&e[0].offset===this.offset&&e[0].part_id)return this.consoleLog(`Part ${this.toJSON()} is available on server. Not re-uploading.`),this.id=e[0].part_id,void this.uploadSuccessHandler({data:{part:e[0]}});throw this.consoleLog(`Part ${this.toJSON()} is not available on server. Re-uploading.`),new Error("Part not found on the server")}catch(e){const{response:t}=e;t&&t.status&&this.consoleLog(`Error ${t.status} while listing part ${this.toJSON()}. Re-uploading.`),this.numUploadRetriesPerformed+=1,this.upload()}})),uc(this,"listParts",(async(e,t)=>{const r={offset:e,limit:t},n=function(e,t){if(!t)return e;const r=new(rc())(e);return Object.keys(t).forEach((e=>{const n=t[e];n&&(r.hasQueryParam(e)?r.replaceQueryParam(e,n):r.addQueryParam(e,n))})),r.toString()}(this.sessionEndpoints.listParts,r);return(await this.xhr.get({url:n})).data.entries})),this.index=t,this.numDigestRetriesPerformed=0,this.numUploadRetriesPerformed=0,this.offset=r,this.partSize=n,this.fileSize=o,this.state=0,this.timing={},this.uploadedBytes=0,this.data={},this.config=s,this.rangeEnd=r+n-1,this.rangeEnd>o-1&&(this.rangeEnd=o-1),this.isPaused=!1,this.onSuccess=c||Dt(),this.onError=d||Dt(),this.onProgress=u||Dt(),this.getNumPartsUploading=l}cancel(){clearTimeout(this.retryTimeout),this.blob=null,this.data={},this.destroy()}pause(){clearTimeout(this.retryTimeout),this.isPaused=!0,this.state=1,this.xhr.abort()}unpause(){this.isPaused=!1,this.state=2,this.retryUpload()}reset(){this.numUploadRetriesPerformed=0,this.timing={},this.uploadedBytes=0}isDestroyedOrPaused(){return this.isDestroyed()||this.isPaused}};function hc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hc(Object(r),!0).forEach((function(t){fc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function fc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const gc=class extends cc{constructor(e,t){super(e,{createSession:null,uploadPart:null,listParts:null,commit:null,abort:null,logEvent:null},t),fc(this,"getBaseUploadUrlFromPreflightResponse",(({data:e})=>{if(!e||!e.upload_url)return this.getBaseUploadUrl();const t=e.upload_url.split("/");return this.uploadHost=`${t[0]}//${t[2]}`,this.getBaseUploadUrl()})),fc(this,"preflightSuccessHandler",(async e=>{if(this.isDestroyed())return;let t=`${this.getBaseUploadUrlFromPreflightResponse(e)}/files/upload_sessions`;t.includes("fupload-ec2")&&(this.config.parallelism=1);const r={file_size:this.file.size,file_name:this.fileName};this.fileId?t=t.replace("upload_sessions",`${this.fileId}/upload_sessions`):r.folder_id=this.folderId;try{const e=await this.xhr.post({url:t,data:r});this.createSessionSuccessHandler(e.data)}catch(e){const t=this.getErrorResponse(e);if(t&&t.status>=500&&t.status<600)return void this.createSessionErrorHandler(e);if(t&&409===t.status&&"session_conflict"===t.code)return void this.createSessionSuccessHandler(t.context_info.session);if(t&&403===t.status&&t.code===Ge||403===t.status&&"access_denied_insufficient_permissions"===t.code)return void this.errorCallback(t);if(t&&409===t.status)return this.resolveConflict(t),void this.createSessionRetry();this.sessionErrorHandler(e,"create_session_misc_error",JSON.stringify(e))}})),fc(this,"createSessionErrorHandler",(e=>{this.isDestroyed()||(this.createSessionNumRetriesPerformed<this.config.retries?this.createSessionRetry():(this.consoleLog("Too many create session failures, failing upload"),this.sessionErrorHandler(e,"create_session_retries_exceeded",JSON.stringify(e))))})),fc(this,"getSessionInfo",(async()=>{const e=`${this.getBaseUploadUrl()}/files/upload_sessions/${this.sessionId}`;try{const t=await this.xhr.get({url:e});this.getSessionSuccessHandler(t.data)}catch(e){this.getSessionErrorHandler(e)}})),fc(this,"partUploadSuccessHandler",(e=>{this.numPartsUploading-=1,this.numPartsUploaded+=1,this.updateProgress(e.uploadedBytes,this.partSize),this.processNextParts()})),fc(this,"partUploadErrorHandler",((e,t)=>{if(this.sessionErrorHandler(e,"part_upload_retries_exceeded",t),this.isResumableUploadsEnabled){let e=this.firstUnuploadedPartIndex;for(;this.numPartsUploading>0;){const t=this.parts[e];t&&2===t.state&&(t.reset(),t.pause(),this.numPartsUploading-=1,this.numPartsDigestReady+=1),e+=1}}})),fc(this,"updateProgress",((e,t)=>{this.isDestroyed()||(this.totalUploadedBytes+=t-e,this.progressCallback({loaded:this.totalUploadedBytes,total:this.file.size}))})),fc(this,"processNextParts",(()=>{if(!this.failSessionIfFileChangeDetected())if(this.numPartsUploaded===this.parts.length&&this.fileSha1)this.commitSession();else{for(this.updateFirstUnuploadedPartIndex();this.canStartMorePartUploads();)this.uploadNextPart();this.shouldComputeDigestForNextPart()&&this.computeDigestForNextPart()}})),fc(this,"onWorkerMessage",(e=>{if(this.isDestroyed())return;const{data:t}=e;if("partDone"===t.type){const{part:e}=t;this.parts[e.index].timing.fileDigestTime=t.duration,this.processNextParts()}else"done"===t.type?(this.fileSha1=(r=t.sha1,btoa(String.fromCharCode.apply(null,r.replace(/\r|\n/g,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")))),this.sha1Worker.terminate(),this.processNextParts()):"error"===t.type&&this.sessionErrorHandler(null,"web_worker_error",JSON.stringify(t));var r})),fc(this,"sendPartToWorker",((e,t)=>{if(this.isDestroyed())return;const r={index:e.index,offset:e.offset,size:e.partSize};this.sha1Worker.postMessage({part:r,fileSize:this.file.size,partContents:t},[t]),this.consoleLog(`Part sent to worker: ${JSON.stringify(e)}.}`)})),fc(this,"onPartDigestError",((e,t)=>{if(this.consoleLog(`Error computing digest for part ${JSON.stringify(t)}: ${JSON.stringify(e)}`),"NotFoundError"===e.name||"NOT_FOUND_ERR"===e.name)return void this.sessionErrorHandler(null,"file_reader_received_not_found_error",JSON.stringify(e));if(this.failSessionIfFileChangeDetected())return;if(t.numDigestRetriesPerformed>=this.config.retries)return void this.sessionErrorHandler(null,"part_digest_retries_exceeded",JSON.stringify(e));const r=Is(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,t.numDigestRetriesPerformed);t.numDigestRetriesPerformed+=1,this.consoleLog(`Retrying digest work for part ${JSON.stringify(t)} in ${r} ms`),setTimeout((()=>{this.computeDigestForPart(t)}),r)})),fc(this,"commitSession",(()=>{if(this.isDestroyed())return;const e={totalPartReadTime:0,totalPartDigestTime:0,totalFileDigestTime:0,totalPartUploadTime:0},t={parts:this.parts.map((t=>(e.totalPartReadTime+=t.timing.readTime,e.totalPartDigestTime+=t.timing.subtleCryptoTime,e.totalFileDigestTime+=t.timing.fileDigestTime,e.totalPartUploadTime+=t.timing.uploadTime,t.getPart()))).sort(((e,t)=>e.offset-t.offset)),attributes:{}},r=ks(this.file);r&&(t.attributes.content_modified_at=r),this.fileDescription&&(t.attributes.description=this.fileDescription);const n={avg_part_read_time:Math.round(e.totalPartReadTime/this.parts.length),avg_part_digest_time:Math.round(e.totalPartDigestTime/this.parts.length),avg_file_digest_time:Math.round(e.totalFileDigestTime/this.parts.length),avg_part_upload_time:Math.round(e.totalPartUploadTime/this.parts.length)},o={Digest:`sha=${this.fileSha1}`,"X-Box-Client-Event-Info":JSON.stringify(n)};this.xhr.post({url:this.sessionEndpoints.commit,data:t,headers:o}).then(this.commitSessionSuccessHandler).catch(this.commitSessionErrorHandler)})),fc(this,"commitSessionSuccessHandler",(e=>{if(this.isDestroyed())return;const{status:t,data:r}=e;if(202===t)return void this.commitSessionRetry(e);let{entries:n}=r;!n&&r.id&&(n=[r]),this.destroy(),this.successCallback&&n&&this.successCallback(n)})),fc(this,"commitSessionErrorHandler",(e=>{if(this.isDestroyed())return;const{response:t}=e;if(t)return this.commitRetryCount>=this.config.retries?(this.consoleLog("Too many commit failures, failing upload"),void this.sessionErrorHandler(e,"commit_retries_exceeded",JSON.stringify(e))):void this.commitSessionRetry(t);this.consoleError(e)})),fc(this,"getNumPartsUploading",(()=>this.numPartsUploading)),this.parts=[],this.options=e,this.fileSha1=null,this.totalUploadedBytes=0,this.numPartsNotStarted=0,this.numPartsDigestComputing=0,this.numPartsDigestReady=0,this.numPartsUploading=0,this.numPartsUploaded=0,this.firstUnuploadedPartIndex=0,this.createSessionNumRetriesPerformed=0,this.partSize=0,this.commitRetryCount=0,this.clientId=null,this.isResumableUploadsEnabled=!1,this.numResumeRetries=0}reset(){this.parts=[],this.fileSha1=null,this.totalUploadedBytes=0,this.numPartsNotStarted=0,this.numPartsDigestComputing=0,this.numPartsDigestReady=0,this.numPartsUploading=0,this.numPartsUploaded=0,this.firstUnuploadedPartIndex=0,this.createSessionNumRetriesPerformed=0,this.partSize=0,this.commitRetryCount=0,this.numResumeRetries=0}setFileInfo({file:e,folderId:t,errorCallback:r,progressCallback:n,successCallback:o,overwrite:i=!0,conflictCallback:a,fileId:s}){this.file=e,this.fileName=this.file.name,this.folderId=t,this.errorCallback=r||Dt(),this.progressCallback=n||Dt(),this.successCallback=o||Dt(),this.overwrite=i,this.conflictCallback=a,this.fileId=s}upload({file:e,fileDescription:t,folderId:r,errorCallback:n,progressCallback:o,successCallback:i,overwrite:a=!0,conflictCallback:s,fileId:l}){this.file=e,this.fileName=this.file.name,this.initialFileSize=this.file.size,this.initialFileLastModified=ks(this.file),this.folderId=r,this.errorCallback=n||Dt(),this.progressCallback=o||Dt(),this.successCallback=i||Dt(),this.sha1Worker=ec(),this.sha1Worker.addEventListener("message",this.onWorkerMessage),this.conflictCallback=s,this.overwrite=a,this.fileId=l,this.fileDescription=t,this.makePreflightRequest()}createSessionRetry(){const e=Is(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,this.createSessionNumRetriesPerformed);this.createSessionNumRetriesPerformed+=1,this.consoleLog(`Retrying create session in ${e} ms`),this.createSessionTimeout=setTimeout(this.makePreflightRequest,e)}createSessionSuccessHandler(e){if(this.isDestroyed())return;const{id:t,part_size:r,session_endpoints:n}=e;this.sessionId=t,this.partSize=r,this.sessionEndpoints=pc(pc({},this.sessionEndpoints),{},{uploadPart:n.upload_part,listParts:n.list_parts,commit:n.commit,abort:n.abort,logEvent:n.log_event}),this.populateParts(),this.processNextParts()}resume({file:e,folderId:t,errorCallback:r,progressCallback:n,sessionId:o,successCallback:i,overwrite:a=!0,conflictCallback:s,fileId:l}){this.setFileInfo({file:e,folderId:t,errorCallback:r,progressCallback:n,successCallback:i,conflictCallback:s,overwrite:a,fileId:l}),this.sessionId=o,this.sha1Worker||(this.sha1Worker=ec()),this.sha1Worker.addEventListener("message",this.onWorkerMessage),this.getSessionInfo()}getSessionSuccessHandler(e){const{part_size:t,session_endpoints:r}=e;this.partSize=t,this.sessionEndpoints=pc(pc({},this.sessionEndpoints),{},{uploadPart:r.upload_part,listParts:r.list_parts,commit:r.commit,abort:r.abort,logEvent:r.log_event}),this.processNextParts()}getSessionErrorHandler(e){if(this.isDestroyed())return;const t=this.getErrorResponse(e);if(this.numResumeRetries>this.config.retries)this.errorCallback(t);else if(t&&429===t.status){let e=ct;if(t.headers){const r=parseInt(t.headers["retry-after"]||t.headers.get("Retry-After"),10);$l()(r)||(e=r*ut)}this.retryTimeout=setTimeout(this.getSessionInfo,e),this.numResumeRetries+=1}else if(t&&t.status>=400&&t.status<500){this.parts.forEach((e=>{e.cancel()})),this.reset(),clearTimeout(this.createSessionTimeout),clearTimeout(this.commitSessionTimeout),this.abortSession();const e={file:this.file,folderId:this.folderId,errorCallback:this.errorCallback,progressCallback:this.progressCallback,successCallback:this.successCallback,overwrite:this.overwrite,fileId:this.fileId};this.upload(e)}else this.retryTimeout=setTimeout(this.getSessionInfo,2**this.numResumeRetries*ut),this.numResumeRetries+=1}async sessionErrorHandler(e,t,r){this.isResumableUploadsEnabled||this.destroy();const n=this.getErrorResponse(e);this.errorCallback(n);try{if(!this.sessionEndpoints.logEvent)throw new Error("logEvent endpoint not found");await Ol(((e,n)=>{this.logEvent(t,r).then(e).catch(n)}),this.config.retries,this.config.initialRetryDelayMs),this.isResumableUploadsEnabled||this.abortSession()}catch(e){this.isResumableUploadsEnabled||this.abortSession()}}abortSession(){this.sha1Worker&&this.sha1Worker.terminate(),this.sessionEndpoints.abort&&this.sessionId&&this.xhr.delete({url:this.sessionEndpoints.abort}).then((()=>{this.sessionId=""}))}shouldComputeDigestForNextPart(){return!this.isDestroyed()&&0===this.numPartsDigestComputing&&this.numPartsNotStarted>0&&this.numPartsDigestReady<this.config.digestReadahead}computeDigestForNextPart(){for(let e=this.firstUnuploadedPartIndex;e<this.parts.length;e+=1){const t=this.parts[e];if(0===t.state)return this.numPartsNotStarted-=1,this.numPartsDigestComputing+=1,void this.computeDigestForPart(t)}}async computeDigestForPart(e){const t=this.file.slice(e.offset,e.offset+this.partSize),r=new window.FileReader,n=Date.now();try{const{buffer:o,readCompleteTimestamp:i}=await this.readFile(r,t),a=await Xl("SHA-1",o),s=btoa([].reduce.call(new Uint8Array(a),((e,t)=>e+String.fromCharCode(t)),""));this.sendPartToWorker(e,o),e.sha1=s,e.state=1,e.blob=t,this.numPartsDigestReady+=1,this.numPartsDigestComputing-=1;const l=Date.now();e.timing={partDigestTime:l-n,readTime:i-n,subtleCryptoTime:l-i},this.processNextParts()}catch(t){this.onPartDigestError(t,e)}}commitSessionRetry(e){const{status:t,headers:r}=e;let n=ct;if(r){const e=parseInt(r["retry-after"],10);Number.isNaN(e)||(n=1e3*e)}const o=Is(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,this.commitRetryCount);202!==t&&(this.commitRetryCount+=1);const i=n||o;this.consoleLog(`Retrying commit in ${i} ms`),this.commitSessionTimeout=setTimeout(this.commitSession,i)}uploadNextPart(){for(let e=this.firstUnuploadedPartIndex;e<this.parts.length;e+=1){const t=this.parts[e];if(1===t.state){this.numPartsDigestReady-=1,this.numPartsUploading+=1,t.isPaused?t.unpause():t.upload();break}}}canStartMorePartUploads(){return!this.isDestroyed()&&this.numPartsUploading<this.config.parallelism&&this.numPartsDigestReady>0}updateFirstUnuploadedPartIndex(){let e=this.parts[this.firstUnuploadedPartIndex];for(;e&&3===e.state;)this.firstUnuploadedPartIndex+=1,e=this.parts[this.firstUnuploadedPartIndex]}populateParts(){this.numPartsNotStarted=Math.ceil(this.file.size/this.partSize);for(let e=0;e<this.numPartsNotStarted;e+=1){const t=e*this.partSize,r=Math.min(t+this.partSize,this.file.size)-t,n=new dc(this.options,e,t,r,this.file.size,this.sessionId,this.sessionEndpoints,this.config,this.getNumPartsUploading,this.partUploadSuccessHandler,this.updateProgress,this.partUploadErrorHandler);this.parts.push(n)}}failSessionIfFileChangeDetected(){const e=this.file.size,t=ks(this.file);if(e!==this.initialFileSize||t!==this.initialFileLastModified){const r=JSON.stringify({oldSize:this.initialFileSize,newSize:e,oldLastModified:this.initialFileLastModified,newLastModified:t});return u.isIE()?(this.sessionErrorHandler(null,"file_changed_during_upload",r),!0):(this.consoleLog(`file properties changed during upload: ${r}`),!1)}return!1}cancel(){this.isDestroyed()||(this.parts.forEach((e=>{e.cancel()})),this.parts=[],clearTimeout(this.createSessionTimeout),clearTimeout(this.commitSessionTimeout),this.abortSession(),this.destroy())}async resolveConflict(e){if(this.overwrite&&e.context_info)return void(this.fileId=e.context_info.conflicts.id);if(this.conflictCallback)return void(this.fileName=this.conflictCallback(this.fileName));const t=this.fileName.substr(this.fileName.lastIndexOf("."))||"";this.fileName=`${this.fileName.substr(0,this.fileName.lastIndexOf("."))}-${Date.now()}${t}`}getErrorResponse(e){if(!e)return{};const{response:t}=e;return t?401===t.status?t:t.data:{}}};function mc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const bc=class extends oc{constructor(...e){super(...e),mc(this,"uploadSuccessHandler",(({data:e})=>{const{entries:t}=e;this.isDestroyed()||"function"==typeof this.successCallback&&this.successCallback(t)})),mc(this,"uploadProgressHandler",(e=>{this.isDestroyed()||"function"==typeof this.progressCallback&&this.progressCallback(e)})),mc(this,"preflightSuccessHandler",(async({data:e})=>{if(this.isDestroyed())return;let t=e.upload_url;t||(t=`${this.getBaseUploadUrl()}/files/content`,this.fileId&&(t=t.replace("content",`${this.fileId}/content`)));const r={url:t,data:{attributes:JSON.stringify({name:this.fileName,parent:{id:this.folderId},description:this.fileDescription,content_modified_at:ks(this.file)}),file:this.file},headers:{},successHandler:this.uploadSuccessHandler,errorHandler:this.preflightErrorHandler,progressHandler:this.uploadProgressHandler},n=await this.computeSHA1(this.file);n&&(r.headers={"Content-MD5":n}),this.xhr.uploadFile(r)}))}upload({folderId:e,fileId:t,file:r,fileDescription:n,successCallback:o=Dt(),errorCallback:i=Dt(),progressCallback:a=Dt(),conflictCallback:s,overwrite:l=!0}){this.isDestroyed()||(this.folderId=e,this.fileId=t,this.file=r,this.fileDescription=n,this.fileName=this.file.name,this.successCallback=o,this.errorCallback=i,this.progressCallback=a,this.overwrite=l,this.conflictCallback=s,this.makePreflightRequest())}cancel(){this.isDestroyed()||(clearTimeout(this.retryTimeout),this.destroy())}async computeSHA1(e){let t="";try{const r=new window.FileReader,{buffer:n}=await this.readFile(r,e),o=await Xl("SHA-1",n);t=Array.from(new Uint8Array(o)).map((e=>`00${e.toString(16)}`.slice(-2))).join("")}catch(e){}return t}};function yc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yc(Object(r),!0).forEach((function(t){_c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const wc=class extends El{constructor(...e){super(...e),_c(this,"searchSuccessHandler",(({data:e})=>{if(this.isDestroyed())return;const{entries:t,total_count:r,limit:n,offset:o}=e;if(!Array.isArray(t)||"number"!=typeof r||"number"!=typeof n||"number"!=typeof o)throw Ns();const i=Fs(t,new Ul(this.options),new Pl(this.options),new Rl(this.options));this.itemCache=(this.itemCache||[]).concat(i),this.getCache().set(this.key,{item_collection:vc(vc({},e),{},{entries:this.itemCache})}),this.finish()})),_c(this,"searchErrorHandler",(e=>{this.isDestroyed()||this.errorCallback(e,this.errorCode)}))}getEncodedQuery(e){return encodeURIComponent(e)}getCacheKey(e,t){return`${L}${e}|${t}`}getUrl(){return`${this.getBaseApiUrl()}/search`}isLoaded(){return this.getCache().has(this.key)}finish(){if(this.isDestroyed())return;const e=this.getCache(),t=e.get(this.key),{item_collection:r}=t;if(!r)throw Ns();const{entries:n,total_count:o}=r;if(!Array.isArray(n)||"number"!=typeof o)throw Ns();const i={id:this.id,items:n.map((t=>e.get(t))),offset:this.offset,percentLoaded:100,sortBy:"",sortDirection:D,totalCount:o};this.successCallback(i)}searchRequest(e={}){if(this.isDestroyed())return Promise.reject();const{fields:t}=e,r=t||Gs;return this.errorCode="search_error",this.xhr.get({url:this.getUrl(),params:{offset:this.offset,query:this.query,ancestor_folder_ids:this.id,limit:this.limit,fields:r.toString()},headers:r.includes(de)?{"X-Rep-Hints":dt}:{}}).then(this.searchSuccessHandler).catch(this.searchErrorHandler)}search(e,t,r,n,o,i,a={}){this.isDestroyed()||(this.limit=r,this.offset=n,this.query=t,this.id=e,this.key=this.getCacheKey(e,this.getEncodedQuery(this.query)),this.successCallback=o,this.errorCallback=i,a.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.searchRequest(a))}};function Ec(){return Ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ec.apply(null,arguments)}function Cc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Sc=class extends El{constructor(...e){super(...e),Cc(this,"recentsSuccessHandler",(({data:e})=>{if(this.isDestroyed())return;const{entries:t,order:{by:r,direction:n}}=e,o=[];t.forEach((({item:e,interacted_at:t})=>{const{path_collection:r}=e;(this.id===Pe||!!r&&-1!==r.entries.findIndex((e=>e.id===this.id)))&&o.push(Ec(e,{interacted_at:t}))}));const i=Fs(o,new Ul(this.options),new Pl(this.options),new Rl(this.options));this.getCache().set(this.key,{item_collection:{entries:i,order:[{by:r,direction:n}]}}),this.finish()})),Cc(this,"recentsErrorHandler",(e=>{this.isDestroyed()||this.errorCallback(e,this.errorCode)}))}getCacheKey(e){return`recents_${e}`}getUrl(){return`${this.getBaseApiUrl()}/recent_items`}finish(){if(this.isDestroyed())return;const e=this.getCache(),t=e.get(this.key),{item_collection:r}=t;if(!r)throw Ns();const{entries:n}=r;if(!Array.isArray(n))throw Ns();const o={id:this.id,items:n.map((t=>e.get(t))),percentLoaded:100,sortBy:J,sortDirection:D};this.successCallback(o)}recentsRequest(e={}){if(this.isDestroyed())return Promise.reject();const{fields:t}=e,r=t||Gs;return this.errorCode="fetch_recents_error",this.xhr.get({url:this.getUrl(),params:{fields:r.toString()},headers:r.includes(de)?{"X-Rep-Hints":dt}:{}}).then(this.recentsSuccessHandler).catch(this.recentsErrorHandler)}recents(e,t,r,n={}){if(this.isDestroyed())return;this.id=e,this.successCallback=t,this.errorCallback=r;const o=this.getCache();this.key=this.getCacheKey(this.id),n.forceFetch&&o.unset(this.key),o.has(this.key)?this.finish():this.recentsRequest(n)}};function kc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ic(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kc(Object(r),!0).forEach((function(t){Oc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Oc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Tc=class extends El{getQueryParameters(e,t,r){const n={offset:e,limit:t};return r&&r.length>0&&(n.fields=r.toString()),n}hasMoreItems(e,t){return void 0===t||e<t}async offsetGetRequest(e,t,r,n,o){if(!this.isDestroyed())try{const i=this.getQueryParameters(t,r,o),a=this.getUrl(e),{data:s}=await this.xhr.get({url:a,id:Xi(e),params:i}),l=this.data?this.data.entries:[];this.data=Ic(Ic({},s),{},{entries:l.concat(s.entries)});const c=s.total_count,u=t+r;if(n&&this.hasMoreItems(u,c))return void this.offsetGetRequest(e,u,r,n,o);this.successHandler(this.data)}catch(e){this.errorHandler(e)}}async offsetGet(e,t,r,n=0,o=1e3,i,a=!0){return this.successCallback=t,this.errorCallback=r,this.offsetGetRequest(e,n,o,a,i)}},Ac=["permissions"];function xc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xc(Object(r),!0).forEach((function(t){Rc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Rc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Nc=class extends Tc{constructor(...e){super(...e),Rc(this,"successHandler",(e=>{this.isDestroyed()||"function"!=typeof this.successCallback||this.successCallback(e)}))}getUrl(e){if(!e)throw new Error("Missing file id!");return`${this.getBaseApiUrl()}/files/${e}/versions`}getVersionUrl(e,t){if(!t)throw new Error("Missing version id!");return`${this.getUrl(e)}/${t}`}addPermissions(e,t){if(!e)return e;const{entries:r,total_count:n}=e,o=Wt()(t,["permissions",Se],!1);return{entries:r.map((e=>{let{permissions:t}=e,r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Ac);return Pc(Pc({},r),{},{permissions:Pc({can_upload:o},t)})})),total_count:n}}deleteVersion({errorCallback:e,fileId:t,permissions:r,successCallback:n,versionId:o}){this.errorCode="delete_version_error";try{this.checkApiCallValidity(we,r,t)}catch(t){return void e(t,this.errorCode)}this.delete({id:t,url:this.getVersionUrl(t,o),successCallback:n,errorCallback:e})}getVersions(e,t,r,n=0,o=1e3,i=$s,a=!0){this.errorCode="fetch_versions_error",this.offsetGet(e,t,r,n,o,i,a)}getVersion(e,t,r,n){this.errorCode="fetch_version_error",this.get({id:e,successCallback:r,errorCallback:n,url:this.getVersionUrl(e,t),requestData:{params:{fields:$s.toString()}}})}addCurrentVersion(e,t,r){if(!e)return t||{entries:[],total_count:0};if(!t)return{entries:[e],total_count:1};const n=Wt()(r,"restored_from.id"),o=t.entries.find((e=>e.id===n));return o&&(e.version_promoted=o.version_number),{entries:[...t.entries,e],total_count:t.total_count+1}}promoteVersion({errorCallback:e,fileId:t,permissions:r,successCallback:n,versionId:o}){this.errorCode="promote_version_error";try{this.checkApiCallValidity(Se,r,t)}catch(t){return void e(t,this.errorCode)}this.post({id:t,data:{data:{id:o,type:"file_version"}},url:this.getVersionUrl(t,"current"),successCallback:n,errorCallback:e})}restoreVersion({errorCallback:e,fileId:t,permissions:r,successCallback:n,versionId:o}){this.errorCode="restore_version_error";try{this.checkApiCallValidity(we,r,t)}catch(t){return void e(t,this.errorCode)}this.put({id:t,data:{data:{trashed_at:null}},url:this.getVersionUrl(t,o),successCallback:n,errorCallback:e})}};function Lc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lc(Object(r),!0).forEach((function(t){Dc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Dc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Uc=class extends Tc{constructor(...e){super(...e),Dc(this,"successHandler",(e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;if(!e)return void this.successCallback();if(!e.entries)return void this.successCallback(this.format(e));const t=e.entries.map(this.format);this.successCallback(Mc(Mc({},e),{},{entries:t}))}))}getUrl(e){if(!e)throw new Error("Missing file id!");return`${this.getBaseApiUrl()}/files/${e}/comments`}commentsUrl(e){const t=`${this.getBaseApiUrl()}/comments`;return e?`${t}/${e}`:t}format(e){return Mc(Mc({},e),{},{tagged_message:""!==e.tagged_message?e.tagged_message:e.message})}createComment({file:e,message:t,taggedMessage:r,successCallback:n,errorCallback:o}){this.errorCode=Ze;const{id:i="",permissions:a}=e;try{this.checkApiCallValidity(ve,a,i)}catch(e){return void o(e,this.errorCode)}const s={data:{item:{id:i,type:"file"},message:t,tagged_message:r},params:{fields:Ys.toString()}};this.post({id:i,url:this.commentsUrl(),data:s,successCallback:n,errorCallback:o})}updateComment({file:e,commentId:t,message:r,tagged_message:n,permissions:o,successCallback:i,errorCallback:a}){this.errorCode=at;const{id:s=""}=e;try{this.checkApiCallValidity(Ee,o,s)}catch(e){return void a(e,this.errorCode)}const l={data:{message:r,tagged_message:n}};this.put({id:s,url:this.commentsUrl(t),data:l,successCallback:i,errorCallback:a})}deleteComment({file:e,commentId:t,permissions:r,successCallback:n,errorCallback:o}){this.errorCode=nt;const{id:i=""}=e;try{this.checkApiCallValidity(we,r,i)}catch(e){return void o(e,this.errorCode)}this.delete({id:i,url:this.commentsUrl(t),successCallback:n,errorCallback:o})}getComments(e,t,r,n,o=Ys,i,a,s){this.errorCode=Je;try{this.checkApiCallValidity(ve,t,e)}catch(e){return void n(e,this.errorCode)}this.offsetGet(e,r,n,i,a,o,s)}},Fc=["retryableStatusCodes"];function jc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Hc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jc(Object(r),!0).forEach((function(t){Bc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Bc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const zc=[yt,500,501,502,503,504];const qc=class extends El{constructor(e){let{retryableStatusCodes:t=zc}=e,r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Fc);super(Hc(Hc({},r),{},{retryableStatusCodes:t}))}},Kc=["id","addedAssignees","removedAssignees"];function Vc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vc(Object(r),!0).forEach((function(t){Wc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const $c=class extends qc{getUrlForFileTasks(e){return`${this.getBaseApiUrl()}/undoc/files/${e}/linked_tasks?limit=1000`}getUrlForTaskCreateWithDeps(){return`${this.getBaseApiUrl()}/undoc/tasks/with_dependencies`}getUrlForTask(e){return`${this.getBaseApiUrl()}/undoc/tasks/${e}`}getUrlForTaskWithDeps(e){return`${this.getBaseApiUrl()}/undoc/tasks/${e}/with_dependencies`}updateTaskWithDeps({errorCallback:e,file:t,successCallback:r,task:n}){this.errorCode=it;const o=n.addedAssignees.map((e=>({op:e.item&&"group"===e.item.type?"add_task_collaborators_expand_group":"add_task_collaborator",payload:{target:{type:e.item&&"group"===e.item.type?"group":"user",id:e.id}}}))),i=n.removedAssignees.map((e=>({op:"delete_task_collaborator",id:e.id}))),{id:a,addedAssignees:s,removedAssignees:l}=n,c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(n,Kc);this.put({id:t.id,url:this.getUrlForTaskWithDeps(n.id),data:{data:[{op:"update_task",payload:Gc({},c)},...o,...i]},successCallback:r,errorCallback:e})}deleteTask({errorCallback:e,file:t,successCallback:r,task:n}){this.errorCode="delete_task_error",this.delete({id:t.id,url:this.getUrlForTask(n.id),successCallback:r,errorCallback:e})}getTasksForFile({errorCallback:e,file:t,successCallback:r}){this.errorCode=Qe,this.get({id:t.id,url:this.getUrlForFileTasks(t.id),successCallback:r,errorCallback:e})}getTask({errorCallback:e,file:t,id:r,successCallback:n}){this.errorCode=Qe,this.get({id:t.id,url:this.getUrlForTask(r),successCallback:n,errorCallback:e})}createTaskWithDeps({errorCallback:e,file:t,successCallback:r,task:n,assignees:o}){this.errorCode=tt;const i=o.map((e=>({target:{type:e.item&&"group"===e.item.type?"group":"user",id:e.id}}))),a=[{target:{id:t.id,type:"file"}}],s={task:Gc({},n),assigned_to:i,task_links:a};this.post({id:t.id,url:this.getUrlForTaskCreateWithDeps(),data:{data:Gc({},s)},successCallback:r,errorCallback:e})}};function Jc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jc(Object(r),!0).forEach((function(t){Qc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Qc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Xc=class extends qc{getUrlForTaskCollaborators(e){return`${this.getBaseApiUrl()}/undoc/tasks/${e}/task_collaborators?role=ASSIGNEE&limit=1000`}getUrlForTaskCollaboratorCreate(){return`${this.getBaseApiUrl()}/undoc/task_collaborators`}getUrlForTaskCollaborator(e){return`${this.getBaseApiUrl()}/undoc/task_collaborators/${e}`}getUrlForTaskGroupCreate(){return`${this.getBaseApiUrl()}/undoc/task_collaborators/expand_group`}createTaskCollaborator({errorCallback:e,file:t,successCallback:r,task:n,user:o}){this.errorCode=rt;const i={data:{task:{type:"task",id:n.id},target:{type:"user",id:o.id}}};this.post({id:t.id,url:this.getUrlForTaskCollaboratorCreate(),data:Yc({},i),successCallback:r,errorCallback:e})}createTaskCollaboratorsforGroup({errorCallback:e,file:t,successCallback:r,task:n,group:o}){this.errorCode=rt;const i={data:{task:{type:"task",id:n.id},target:{type:"group",id:o.id}}};this.post({id:t.id,url:this.getUrlForTaskGroupCreate(),data:Yc({},i),successCallback:r,errorCallback:e})}getTaskCollaborators({errorCallback:e,file:t,successCallback:r,task:n}){this.errorCode="fetch_task_collaborator_error";const o=this.getUrlForTaskCollaborators(n.id);this.get({id:t.id,successCallback:r,errorCallback:e,url:o})}updateTaskCollaborator({errorCallback:e,file:t,successCallback:r,taskCollaborator:n}){this.errorCode="update_task_collaborator_error";const o={data:Ft()(n,"id")};this.put({id:t.id,url:this.getUrlForTaskCollaborator(n.id),data:Yc({},o),successCallback:r,errorCallback:e})}deleteTaskCollaborator({errorCallback:e,file:t,successCallback:r,taskCollaborator:n}){this.errorCode="delete_task_collaborator_error",this.delete({id:t.id,url:this.getUrlForTaskCollaborator(n.id),successCallback:r,errorCallback:e})}};function Zc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function eu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zc(Object(r),!0).forEach((function(t){tu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function tu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ru=class extends qc{getUrlForTaskLinkCreate(){return`${this.getBaseApiUrl()}/undoc/task_links`}createTaskLink({errorCallback:e,file:t,successCallback:r,task:n}){this.errorCode="create_task_link_error";const o={data:{target:{id:t.id,type:"file"},task:{id:n.id,type:"task"}}};this.post({id:t.id,url:this.getUrlForTaskLinkCreate(),data:eu({},o),successCallback:r,errorCallback:e})}};function nu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ou(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nu(Object(r),!0).forEach((function(t){iu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function iu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const au=class extends El{hasMoreItems(e){return null!==e&&""!==e}async markerGetRequest(e,t,r,n,o={}){if(!this.isDestroyed())try{const i=this.getUrl(e),a=ou(ou({},o),{},{marker:t,limit:r}),{data:s}=await this.xhr.get({url:i,id:Xi(e),params:a}),l=this.data?this.data.entries:[];this.data=ou(ou({},s),{},{entries:l.concat(s.entries)});const c=s.next_marker;if(n&&this.hasMoreItems(c))return void this.markerGetRequest(e,c,r,n,o);this.successHandler(this.data)}catch(e){this.errorHandler(e)}}async markerGet({id:e,successCallback:t,errorCallback:r,marker:n="",limit:o=1e3,requestData:i,shouldFetchAll:a=!0}){return this.successCallback=t,this.errorCallback=r,this.markerGetRequest(e,n,o,a,i)}};function su(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?su(Object(r),!0).forEach((function(t){cu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):su(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function cu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uu=e=>{const t=lu(lu({},e),{},{tagged_message:e.message});return e.replies&&e.replies.length&&(t.replies=e.replies.map(uu)),t};function du(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?du(Object(r),!0).forEach((function(t){pu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):du(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function pu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fu=class extends au{constructor(...e){super(...e),pu(this,"successHandler",(e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;if(!e)return void this.successCallback();if(!e.entries)return void this.successCallback(uu(e));const t=e.entries.map(uu);this.successCallback(hu(hu({},e),{},{entries:t}))}))}getUrl(e){return`${this.getBaseApiUrl()}/undoc/comments${e?`?file_id=${e}`:""}`}getUrlForId(e){return`${this.getUrl()}/${e}`}getUrlWithRepliesForId(e,t){return`${this.getUrlForId(e)}/replies${t?`?file_id=${t}`:""}`}createComment({file:e,message:t,successCallback:r,errorCallback:n}){this.errorCode=Ze;const{id:o,permissions:i}=e;try{this.checkApiCallValidity(ve,i,o)}catch(e){return void n(e,this.errorCode)}this.post({id:o,url:this.getUrl(o),data:{data:{message:t}},successCallback:r,errorCallback:n})}updateComment({fileId:e,commentId:t,status:r,message:n,permissions:o,successCallback:i,errorCallback:a}){if(this.errorCode=at,n)try{this.checkApiCallValidity(Ee,o,e)}catch(e){return void a(e,this.errorCode)}if(r)try{this.checkApiCallValidity(Ce,o,e)}catch(e){return void a(e,this.errorCode)}const s={data:{status:r,message:n}};this.put({id:e,url:this.getUrlForId(t),data:s,successCallback:i,errorCallback:a})}deleteComment({fileId:e,commentId:t,permissions:r,successCallback:n,errorCallback:o}){this.errorCode=nt;try{this.checkApiCallValidity(we,r,e)}catch(e){return void o(e,this.errorCode)}this.delete({id:e,url:this.getUrlForId(t),successCallback:n,errorCallback:o})}getComment({commentId:e,errorCallback:t,fileId:r,permissions:n,successCallback:o}){this.errorCode="fetch_comment_error";try{this.checkApiCallValidity(ve,n,r)}catch(e){return void t(e,this.errorCode)}this.get({id:r,errorCallback:t,successCallback:o,url:this.getUrlForId(e)})}getComments({fileId:e,permissions:t,successCallback:r,errorCallback:n,marker:o,limit:i,shouldFetchAll:a,repliesCount:s}){this.errorCode=Je;try{this.checkApiCallValidity(ve,t,e)}catch(e){return void n(e,this.errorCode)}this.markerGet({id:e,successCallback:r,errorCallback:n,marker:o,limit:i,requestData:hu({},s?{replies_count:s}:null),shouldFetchAll:a})}getCommentReplies({fileId:e,commentId:t,permissions:r,successCallback:n,errorCallback:o}){this.errorCode=Ye;try{this.checkApiCallValidity(ve,r,e)}catch(e){return void o(e,this.errorCode)}this.get({id:e,errorCallback:o,successCallback:n,url:this.getUrlWithRepliesForId(t)})}createCommentReply({fileId:e,commentId:t,permissions:r,successCallback:n,errorCallback:o,message:i}){this.errorCode=et;try{this.checkApiCallValidity(ve,r,e)}catch(e){return void o(e,this.errorCode)}this.post({id:e,data:{data:{message:i}},errorCallback:o,successCallback:n,url:this.getUrlWithRepliesForId(t,e)})}};const gu=class extends El{getUrl(e){if(!e)throw new Error("Missing file id!");return`${this.getBaseApiUrl()}/file_access_stats/${e}`}getFileAccessStats(e,t,r){this.errorCode="fetch_access_stats_error",this.get({id:e,successCallback:t,errorCallback:r})}};function mu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mu(Object(r),!0).forEach((function(t){yu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function yu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const vu=class extends El{getFilteredUrl(e,t,r){return`${this.getBaseApiUrl()}${((e,t=[],r=!1)=>{const n=`&enable_replies=${r?"true":"false"}&reply_limit=1`;return`/file_activities?file_id=${e}${t&&t.length?`&activity_types=${t.join()}`:""}${n}`})(e,t,r)}`}getActivities({activityTypes:e,errorCallback:t,fileID:r,permissions:n,repliesCount:o,shouldShowReplies:i,successCallback:a}){this.errorCode="fetch_activity_error";try{if(!r)throw new Error("Missing file id!");e.includes(Et)&&this.checkApiCallValidity(ve,n,r),e.includes(_t)&&this.checkApiCallValidity(ke,n,r)}catch(e){return void t(e,this.errorCode)}this.get({id:r,successCallback:a,errorCallback:t,requestData:bu({},o?{replies_count:o}:null),url:this.getFilteredUrl(r,e,i)})}};function _u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_u(Object(r),!0).forEach((function(t){Eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Eu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Cu=class extends au{getUrl(){return`${this.getBaseApiUrl()}/groups`}getGroupsInEnterprise(e,t,r,n,o=50){this.errorCode="fetch_enterprise_groups_error",this.markerGet({id:e,limit:o,successCallback:t,errorCallback:r,requestData:wu({usemarker:!0},n),shouldFetchAll:!1})}};function Su(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ku(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Su(Object(r),!0).forEach((function(t){Iu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Su(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Iu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ou=class extends au{getUrl(){return`${this.getBaseApiUrl()}/users`}getUsersInEnterprise(e,t,r,n,o=50){this.errorCode="fetch_enterprise_users_error",this.markerGet({id:e,limit:o,successCallback:t,errorCallback:r,requestData:ku({usemarker:!0},n),shouldFetchAll:!1})}};const Tu=class extends El{getUrlForGroupCount(e){return`${this.getBaseApiUrl()}/groups/${e}/memberships`}getGroupCount({errorCallback:e=Dt(),successCallback:t=Dt(),group:r,file:n}){return new Promise(((o,i)=>this.get({id:n.id,url:this.getUrlForGroupCount(r.id),successCallback:(...e)=>{t(...e),o(...e)},errorCallback:(...t)=>{e(...t),i()},requestData:{params:{limit:1}}})))}};const Au=class extends El{getUrl(){return`${this.getBaseApiUrl()}/users/me`}getAvatarUrl(e){if(!e)throw new Error("Missing user id");return`${this.getBaseApiUrl()}/users/${e}/avatar`}async getAvatarUrlWithAccessToken(e,t){if(!e)return null;const r=this.getCache();if(r.has(e))return r.get(e);const n=await ll.getReadToken(Xi(t),this.options.token);if("string"==typeof n){const t={access_token:n,pic_type:"large"},o=Il.stringify(t),i=`${this.getAvatarUrl(e)}?${o}`;return r.set(e,i),i}return null}getUser(e,t,r,n={}){this.errorCode="fetch_current_user_error",this.get({id:e,successCallback:t,errorCallback:r,requestData:n})}};const xu=class extends Pl{getMetadataCacheKey(e){return`metadata_${e}`}getSkillsCacheKey(e){return`${this.getMetadataCacheKey(e)}_skills`}getClassificationCacheKey(e){return`${this.getMetadataCacheKey(e)}_classification`}getMetadataUrl(e,t,r){const n=`${this.getUrl(e)}/metadata`;return t&&r?`${n}/${t}/${r}`:n}getMetadataTemplateUrl(){return`${this.getBaseApiUrl()}/metadata_templates`}getMetadataTemplateUrlForInstance(e){return`${this.getMetadataTemplateUrl()}?metadata_instance_id=${e}`}getMetadataTemplateSchemaUrl(e){return`${this.getMetadataTemplateUrl()}/enterprise/${e}/schema`}getMetadataTemplateUrlForScope(e){return`${this.getMetadataTemplateUrl()}/${e}`}getCustomPropertiesTemplate(){return{id:Jt()("metadata_template_"),scope:G,templateKey:V,hidden:!1}}createEditor(e,t,r){const n={};return Object.keys(e).forEach((t=>{t.startsWith("$")||(n[t]=e[t])})),{template:t,instance:{id:e.$id,canEdit:e.$canEdit&&r,data:n}}}async getTemplates(e,t,r){this.errorCode="fetch_metadata_templates_error";let n={};const o=r?this.getMetadataTemplateUrlForInstance(r):this.getMetadataTemplateUrlForScope(t);try{n=await this.xhr.get({url:o,id:Xi(e),params:{limit:1e3}})}catch(e){const{status:t}=e;if(Us(t))throw e}return Wt()(n,"data.entries",[])}getSchemaByTemplateKey(e){const t=this.getMetadataTemplateSchemaUrl(e);return this.xhr.get({url:t})}async getInstances(e){this.errorCode=Xe;let t={};try{t=await this.xhr.get({url:this.getMetadataUrl(e),id:Xi(e)})}catch(e){const{status:t}=e;if(Us(t))throw e}return Wt()(t,"data.entries",[])}getUserAddableTemplates(e,t,r,n){let o=[];return r&&(o=n?[e]:[e].concat(t)),o.filter((e=>!e.hidden&&e.templateKey!==q))}extractClassification(e,t){const r=t.find((e=>e.$template===q));if(r){t.splice(t.indexOf(r),1);const n=this.getCache(),o=this.getClassificationCacheKey(e);n.set(o,r)}return t}async getTemplateForInstance(e,t,r){const n=t.$id,o=t.$template,i=t.$scope;let a=r.find((e=>e.templateKey===o&&e.scope===i));if(!a&&i.startsWith(W)){a=(await this.getTemplates(e,i,n))[0]}return a}async getEditors(e,t,r,n,o,i){const a=[r].concat(n,o),s=this.extractClassification(e,t),l=[];return await Promise.all(s.map((async t=>{const r=await this.getTemplateForInstance(e,t,a);r&&l.push(this.createEditor(t,r,i))}))),l}async getMetadata(e,t,r,n,o={}){const{id:i,permissions:a,is_externally_owned:s}=e;if(this.errorCode=Xe,this.successCallback=t,this.errorCallback=r,!i||!a)return void this.errorHandler(Ns());const l=this.getCache(),c=this.getMetadataCacheKey(i);if(o.forceFetch&&l.unset(c),!l.has(c)||(this.successHandler(l.get(c)),o.refreshCache))try{const e=this.getCustomPropertiesTemplate(),[t,r,o]=await Promise.all([this.getInstances(i),this.getTemplates(i,G),n?this.getTemplates(i,W):Promise.resolve([])]),u={editors:await this.getEditors(i,t,e,o,r,!!a.can_upload),templates:this.getUserAddableTemplates(e,o,n,s)};l.set(c,u),this.isDestroyed()||this.successHandler(u)}catch(e){this.errorHandler(e)}}async getSkills(e,t,r,n=!1){this.errorCode="fetch_skills_error";const{id:o}=e;if(!o)return void r(Ns(),this.errorCode);const i=this.getCache(),a=this.getSkillsCacheKey(o);if(this.successCallback=t,this.errorCallback=r,n&&i.unset(a),i.has(a))return void this.successHandler(i.get(a));let s={data:Wt()(e,ge)};try{if(s.data||(s=await this.xhr.get({url:this.getMetadataUrl(o,G,K),id:Xi(o)})),!this.isDestroyed()){const e=s.data.cards||[];i.set(a,e),this.successHandler(e)}}catch(e){this.errorHandler(e)}}async updateSkills(e,t,r,n){this.errorCode="update_skills_error";const{id:o,permissions:i}=e;if(o&&i)if(i.can_upload){this.successCallback=r,this.errorCallback=n;try{const e=await this.xhr.put({url:this.getMetadataUrl(o,G,K),headers:{[B]:"application/json-patch+json"},id:Xi(o),data:t});if(!this.isDestroyed()){const t=e.data.cards||[];this.merge(this.getCacheKey(o),ge,e.data),this.getCache().set(this.getSkillsCacheKey(o),t),this.successHandler(t)}}catch(e){this.errorHandler(e)}}else n(Ls(),this.errorCode);else n(Ns(),this.errorCode)}async updateMetadata(e,t,r,n,o){this.errorCode="update_metadata_error",this.successCallback=n,this.errorCallback=o;const{id:i,permissions:a}=e;if(!i||!a)return void this.errorHandler(Ns());const s=!!a.can_upload;if(s)try{const e=await this.xhr.put({url:this.getMetadataUrl(i,t.scope,t.templateKey),headers:{[B]:"application/json-patch+json"},id:Xi(i),data:r});if(!this.isDestroyed()){const r=this.getCache(),n=this.getMetadataCacheKey(i),o=r.get(n),a=this.createEditor(e.data,t,s);o&&o.editors&&o.editors.splice(o.editors.findIndex((({instance:e})=>e.id===a.instance.id)),1,a),this.successHandler(a)}}catch(e){this.errorHandler(e)}else this.errorHandler(Ls())}async createMetadata(e,t,r,n){if(this.errorCode="create_metadata_error",!e||!t)return void n(Ns(),this.errorCode);const{id:o,permissions:i,is_externally_owned:a}=e;if(!o||!i)return void n(Ns(),this.errorCode);const s=!!i.can_upload,l=t.templateKey===V&&t.scope===G;if(!s||a&&!l)n(Ls(),this.errorCode);else{this.successCallback=r,this.errorCallback=n;try{const e=await this.xhr.post({url:this.getMetadataUrl(o,t.scope,t.templateKey),id:Xi(o),data:{}});if(!this.isDestroyed()){const r=this.getCache(),n=this.getMetadataCacheKey(o),i=r.get(n),a=this.createEditor(e.data,t,s);i.editors.push(a),this.successHandler(a)}}catch(e){this.errorHandler(e)}}}async deleteMetadata(e,t,r,n){if(this.errorCode="delete_metadata_error",!e||!t)return void n(Ns(),this.errorCode);const{scope:o,templateKey:i}=t,{id:a,permissions:s}=e;if(a&&s)if(s.can_upload){this.successCallback=r,this.errorCallback=n;try{if(await this.xhr.delete({url:this.getMetadataUrl(a,o,i),id:Xi(a)}),!this.isDestroyed()){const e=this.getCache(),t=this.getMetadataCacheKey(a),r=e.get(t);r.editors.splice(r.editors.findIndex((e=>e.template.scope===o&&e.template.templateKey===i)),1),this.successHandler()}}catch(e){this.errorHandler(e)}}else n(Ls(),this.errorCode);else n(Ns(),this.errorCode)}};function Pu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ru(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pu(Object(r),!0).forEach((function(t){Nu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Nu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Lu=class extends au{constructor(...e){super(...e),Nu(this,"successHandler",(e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;const t=e.entries.map((e=>{let t;return"group"===e.type?t=e:(t=e,t.email=t.login),{id:e.id,name:e.name,item:t}}));this.successCallback(Ru(Ru({},e),{},{entries:t}))})),Nu(this,"getCollaboratorsWithQuery",((e,t,r,n,{includeGroups:o=!1}={})=>{n&&""!==n.trim()&&this.getFileCollaborators(e,t,r,{filter_term:n,include_groups:o,include_uploader_collabs:!1})}))}getUrl(e){if(!e)throw new Error("Missing file id!");return`${this.getBaseApiUrl()}/files/${e}/collaborators`}getFileCollaborators(e,t,r,n={},o=25){this.markerGet({id:e,limit:o,successCallback:t,errorCallback:r,requestData:n})}};function Mu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Du=class extends au{constructor(...e){super(...e),Mu(this,"getCollaborations",((e,t,r,n={},o=25)=>{this.markerGet({id:e,limit:o,successCallback:t,errorCallback:r,requestData:n})})),Mu(this,"successHandler",(e=>{this.isDestroyed()||"function"!=typeof this.successCallback||this.successCallback(e)}))}getUrl(e){return`getUrl(${e}) should be overridden`}};const Uu=class extends Du{getUrl(e){if(!e)throw new Error("Missing file ID!");return`${this.getBaseApiUrl()}/files/${e}/collaborations`}};const Fu=class extends Du{getUrl(e){if(!e)throw new Error("Missing folder ID!");return`${this.getBaseApiUrl()}/folders/${e}/collaborations`}};function ju(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Hu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ju(Object(r),!0).forEach((function(t){Bu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ju(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Bu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const zu=class extends El{constructor(...e){super(...e),Bu(this,"addCollaboration",((e,t,r,n)=>{const{id:o}=e;this.post({id:o,data:{data:Hu({item:e},t)},errorCallback:n,successCallback:r,url:this.getUrl()})}))}getUrl(){return`${this.getBaseApiUrl()}/collaborations`}},qu={appActivityDeleteErrorMessage:{id:"be.api.appActivityDeleteErrorMessage",defaultMessage:"There was an error deleting this item."},commentCreateErrorMessage:{id:"be.api.commentCreateErrorMessage",defaultMessage:"There was an error creating this comment."},commentCreateConflictMessage:{id:"be.api.commentCreateConflictMessage",defaultMessage:"This comment already exists."},commentDeleteErrorMessage:{id:"be.api.commentDeleteErrorMessage",defaultMessage:"There was an error deleting this comment."},commentUpdateErrorMessage:{id:"be.api.commentUpdateErrorMessage",defaultMessage:"This comment could not be modified."},repliesFetchErrorMessage:{id:"be.api.repliesFetchErrorMessage",defaultMessage:"The replies to this comment could not be loaded."},taskActionErrorTitle:{id:"be.api.taskActionErrorTitle",defaultMessage:"Error"},taskApproveErrorMessage:{id:"be.api.taskApproveErrorMessage",defaultMessage:"An error has occurred while approving this task. Please refresh the page and try again."},taskCompleteErrorMessage:{id:"be.api.taskCompleteErrorMessage",defaultMessage:"An error has occurred while completing this task. Please refresh the page and try again."},taskRejectErrorMessage:{id:"be.api.taskRejectErrorMessage",defaultMessage:"An error has occurred while rejecting this task. Please refresh the page and try again."},taskDeleteErrorMessage:{id:"be.api.taskDeleteErrorMessage",defaultMessage:"There was an error while deleting this task. Please refresh the page and try again."},taskCreateErrorMessage:{id:"be.api.taskCreateErrorMessage",defaultMessage:"An error occurred while creating this task. Please try again."},taskGroupExceedsLimitWarningMessage:{id:"be.api.taskGroupExceedsWarningTitle",defaultMessage:"One or more groups can not receive this task as a group size cannot exceed the limit of {max} assignees per group."}};function Ku(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ku(Object(r),!0).forEach((function(t){Gu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ku(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Gu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Wu extends au{constructor(...e){super(...e),Gu(this,"successHandler",(e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;if(!e)return void this.successCallback();if(!e.entries)return e.type&&"comment"===e.type?void this.successCallback(uu(e)):void this.successCallback(this.formatReplies(e));if(e.entries.length&&"comment"===e.entries[0].type){const t=e.entries.map(uu);return void this.successCallback(Vu(Vu({},e),{},{entries:t}))}const t=e.entries.map(this.formatReplies);this.successCallback(Vu(Vu({},e),{},{entries:t}))}))}formatReplies(e){return e.replies&&e.replies.length?Vu(Vu({},e),{},{replies:e.replies.map(uu)}):e}getUrl(){return`${this.getBaseApiUrl()}/undoc/annotations`}getUrlForId(e){return`${this.getUrl()}/${e}`}getUrlWithRepliesForId(e){return`${this.getUrlForId(e)}/replies`}createAnnotation(e,t,r,n,o,i){this.errorCode="create_annotation_error";try{this.checkApiCallValidity(_e,n,e)}catch(e){return void i(e,this.errorCode)}const a={description:{type:"reply"},file_version:{id:t,type:"file_version"}};this.post({id:e,data:{data:fl()(a,r)},errorCallback:i,successCallback:o,url:this.getUrl()})}updateAnnotation(e,t,r,n,o,i){this.errorCode="edit_annotation_error";const{message:a,status:s}=n;if(a)try{this.checkApiCallValidity(Ee,r,e)}catch(e){return void i(e,this.errorCode)}if(s)try{this.checkApiCallValidity(Ce,r,e)}catch(e){return void i(e,this.errorCode)}this.put({id:e,data:{data:{description:a?{message:a}:void 0,status:s}},errorCallback:i,successCallback:o,url:this.getUrlForId(t)})}deleteAnnotation(e,t,r,n,o){this.errorCode="delete_annotation_error";try{this.checkApiCallValidity(we,r,e)}catch(e){return void o(e,this.errorCode)}this.delete({id:e,errorCallback:o,successCallback:n,url:this.getUrlForId(t)})}getAnnotation(e,t,r,n,o,i){this.errorCode="fetch_annotation_error";try{this.checkApiCallValidity(ke,r,e)}catch(e){return void o(e,this.errorCode)}const a=i?{params:{fields:"replies"}}:void 0;this.get({id:e,errorCallback:o,successCallback:n,url:this.getUrlForId(t),requestData:a})}getAnnotations(e,t,r,n,o,i,a,s){this.errorCode="fetch_annotations_error";try{this.checkApiCallValidity(ke,r,e)}catch(e){return void o(e,this.errorCode)}const l=Vu({file_id:e,file_version_id:t},s?{fields:"replies"}:null);this.markerGet({id:e,errorCallback:o,limit:i,requestData:l,shouldFetchAll:a,successCallback:n})}getAnnotationReplies(e,t,r,n,o){this.errorCode=Ye;try{this.checkApiCallValidity(ke,r,e)}catch(e){return void o(e,this.errorCode)}this.get({id:e,errorCallback:o,successCallback:n,url:this.getUrlWithRepliesForId(t)})}createAnnotationReply(e,t,r,n,o,i){this.errorCode=et;try{this.checkApiCallValidity(_e,r,e)}catch(e){return void i(e,this.errorCode)}this.post({id:e,data:{data:{message:n}},errorCallback:i,successCallback:o,url:`${this.getUrlWithRepliesForId(t)}?file_id=${e}`})}}function $u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ju=class extends au{constructor(...e){super(...e),$u(this,"permissions",{}),$u(this,"mapAppActivityItem",(e=>{const{activity_template:t,app:r,created_by:n,id:o,occurred_at:i,rendered_text:a,type:s}=e,{can_delete:l}=this.permissions;return{activity_template:t,app:r,created_at:i,created_by:n,id:o,permissions:{can_delete:l},rendered_text:a,type:s}})),$u(this,"successHandler",(({entries:e=[]})=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;const t=e.map(this.mapAppActivityItem);this.successCallback({entries:t,total_count:t.length})})),$u(this,"errorHandler",(e=>{if(this.isDestroyed()&&"function"!=typeof this.errorCallback)return;const{response:t}=e;404===t.status?this.successHandler({entries:[],total_count:0}):this.errorCallback(e,t.status)}))}getUrl(){return`${this.getBaseApiUrl()}/app_activities`}getDeleteUrl(e){if(!e)throw new Error("Missing file id!");return`${this.getUrl()}/${e}`}getAppActivity(e,t,r,n){const o={item_id:e,item_type:"file",fields:Qs.toString()};this.permissions=t,this.markerGet({id:e,successCallback:r,errorCallback:n,requestData:o})}deleteAppActivity({id:e,appActivityId:t,successCallback:r,errorCallback:n}){this.errorCode="delete_app_activity_error",this.delete({id:e,url:this.getDeleteUrl(t),successCallback:r,errorCallback:n})}},Yu=["replies"],Qu=["replies"],Xu=["replies","total_reply_count"],Zu=["replies","total_reply_count"];function ed(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function td(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(r),!0).forEach((function(t){rd(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ed(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rd(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nd(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const od=vt,id=(e,t)=>{const{replies:r=[]}=e,n=nd(e,Yu);return td({replies:r.filter((({id:e})=>e!==t))},n)},ad=(e,t)=>{const{replies:r=[]}=e;return td({replies:[...r,t]},nd(e,Qu))},sd=e=>[...e].map((e=>td(td({},e),{},{tagged_message:e.tagged_message||e.message||""})));const ld=class extends El{constructor(e){super(e),rd(this,"updateAnnotation",((e,t,r,n,o,i,a)=>{if(!e.id)throw Ns();if(!r&&!n)throw Ds();this.annotationsAPI=new Wu(this.options),this.file=e,this.errorCallback=a;const s={};r&&(s.message=r),n&&(s.status=n),this.updateFeedItem(td(td({},s),{},{isPending:!0}),t),this.annotationsAPI.updateAnnotation(this.file.id,t,o,s,(e=>{const{replies:r,total_reply_count:n}=e,o=nd(e,Xu);this.updateFeedItem(td(td({},o),{},{isPending:!1}),t),this.isDestroyed()||i(e)}),((e,r)=>{this.updateCommentErrorCallback(e,r,t)}))})),rd(this,"updateCommentErrorCallback",((e,t,r)=>{this.updateFeedItem(this.createFeedError(qu.commentUpdateErrorMessage),r),this.feedErrorCallback(!0,e,t)})),rd(this,"updateReplyErrorCallback",((e,t,r,n)=>{this.updateReplyItem(this.createFeedError(qu.commentUpdateErrorMessage),n,r),this.feedErrorCallback(!0,e,t)})),rd(this,"fetchRepliesErrorCallback",((e,t,r)=>{this.updateFeedItem(this.createFeedError(qu.repliesFetchErrorMessage),r),this.feedErrorCallback(!0,e,t)})),rd(this,"deleteAnnotation",((e,t,r,n,o)=>{if(this.annotationsAPI=new Wu(this.options),!e.id)throw Ns();this.file=e,this.errorCallback=o,this.updateFeedItem({isPending:!0},t),this.annotationsAPI.deleteAnnotation(this.file.id,t,r,this.deleteFeedItem.bind(this,t,n),((e,r)=>{this.deleteCommentErrorCallback(e,r,t)}))})),rd(this,"fetchThreadedCommentSuccessCallback",((e,t,r)=>{t(r),e()})),rd(this,"updateTaskCollaborator",((e,t,r,n,o,i)=>{if(!e.id)throw Ns();this.file=e,this.errorCallback=i,this.updateFeedItem({isPending:!0},t);const a=new Xc(this.options);this.taskCollaboratorsAPI.push(a);const s={id:r,status:n},l=(e,r)=>{let o;switch(n){case"APPROVED":o=qu.taskApproveErrorMessage;break;case"COMPLETED":default:o=qu.taskCompleteErrorMessage;break;case"REJECTED":o=qu.taskRejectErrorMessage}this.updateFeedItem(this.createFeedError(o,qu.taskActionErrorTitle),t),this.feedErrorCallback(!0,e,r)};a.updateTaskCollaborator({file:e,taskCollaborator:s,successCallback:r=>{this.updateTaskCollaboratorSuccessCallback(t,e,r,o,l)},errorCallback:l})})),rd(this,"updateTaskCollaboratorSuccessCallback",((e,t,r,n,o)=>{this.tasksNewAPI=new $c(this.options),this.tasksNewAPI.getTask({id:e,file:t,successCallback:t=>{this.updateFeedItem(td(td({},t),{},{isPending:!1}),e),n(r)},errorCallback:o})})),rd(this,"updateTaskNew",(async(e,t,r=Dt(),n=Dt())=>{if(!e.id)throw Ns();this.file=e,this.errorCallback=n,this.tasksNewAPI=new $c(this.options),this.updateFeedItem({isPending:!0},t.id);try{const n=t.addedAssignees.filter((e=>e.item&&"group"===e.item.type)).map((e=>e.id)).map((t=>new Tu(this.options).getGroupCount({file:e,group:{id:t}}))),o=(await Promise.all(n)).some((e=>e.total_count>250)),i={code:ot,type:"warning"};if(o)return void this.feedErrorCallback(!1,i,ot);await new Promise(((r,n)=>{this.tasksNewAPI.updateTaskWithDeps({file:e,task:t,successCallback:r,errorCallback:n})})),await new Promise(((r,n)=>{this.tasksNewAPI.getTask({file:e,id:t.id,successCallback:e=>{this.updateFeedItem(td(td({},e),{},{isPending:!1}),t.id),r()},errorCallback:e=>{this.updateFeedItem({isPending:!1},t.id),this.feedErrorCallback(!1,e,it),n()}})})),this.isDestroyed()||r()}catch(e){this.updateFeedItem({isPending:!1},t.id),this.feedErrorCallback(!1,e,it)}})),rd(this,"deleteComment",((e,t,r,n,o)=>{if(this.commentsAPI=new Uc(this.options),!e.id)throw Ns();this.file=e,this.errorCallback=o,this.updateFeedItem({isPending:!0},t),this.commentsAPI.deleteComment({file:e,commentId:t,permissions:r,successCallback:this.deleteFeedItem.bind(this,t,n),errorCallback:(e,r)=>{this.deleteCommentErrorCallback(e,r,t)}})})),rd(this,"deleteThreadedComment",((e,t,r,n,o)=>{if(!e.id)throw Ns();this.file=e,this.errorCallback=o,this.updateFeedItem({isPending:!0},t),this.threadedCommentsAPI=new fu(this.options),this.threadedCommentsAPI.deleteComment({fileId:e.id,commentId:t,permissions:r,successCallback:this.deleteFeedItem.bind(this,t,n),errorCallback:(e,r)=>{this.deleteCommentErrorCallback(e,r,t)}})})),rd(this,"deleteReply",((e,t,r,n,o,i)=>{if(!e.id)throw Ns();this.file=e,this.errorCallback=i,this.updateReplyItem({isPending:!0},r,t),this.threadedCommentsAPI=new fu(this.options),this.threadedCommentsAPI.deleteComment({fileId:e.id,commentId:t,permissions:n,successCallback:this.deleteReplySuccessCallback.bind(this,t,r,o),errorCallback:(e,n)=>{this.deleteReplyErrorCallback(e,n,t,r)}})})),rd(this,"deleteReplySuccessCallback",((e,t,r)=>{this.modifyFeedItemRepliesCountBy(t,-1),this.deleteReplyItem(e,t,r)})),rd(this,"deleteCommentErrorCallback",((e,t,r)=>{this.updateFeedItem(this.createFeedError(qu.commentDeleteErrorMessage),r),this.feedErrorCallback(!0,e,t)})),rd(this,"deleteReplyErrorCallback",((e,t,r,n)=>{this.updateReplyItem(this.createFeedError(qu.commentDeleteErrorMessage),n,r),this.feedErrorCallback(!0,e,t)})),rd(this,"createTaskNew",((e,t,r,n,o,i,a,s,l)=>{if(!e.id)throw Ns();this.file=e,this.errorCallback=l;const c=Jt()("task_");let u;if(i){u=new Date(i).toISOString()}const d={created_by:{type:"task_collaborator",target:t,id:Jt()(),role:"CREATOR",status:od},completion_rule:a,created_at:(new Date).toISOString(),due_at:u,id:c,description:r,type:"task",assigned_to:{entries:n.map((e=>({id:Jt()(),target:td(td({},e),{},{avatar_url:"",type:"user"}),status:od,permissions:{can_delete:!1,can_update:!1},role:"ASSIGNEE",type:"task_collaborator"}))),limit:10,next_marker:null},permissions:{can_update:!1,can_delete:!1,can_create_task_collaborator:!1,can_create_task_link:!1},task_links:{entries:[{id:Jt()(),type:"task_link",target:td({type:"file"},e),permissions:{can_delete:!1,can_update:!1}}],limit:1,next_marker:null},task_type:o,status:vt},h={description:r,due_at:u,task_type:o,completion_rule:a},p=n.filter((e=>"group"===(e.item&&e.item.type))).map((e=>e.id)).map((t=>new Tu(this.options).getGroupCount({file:e,group:{id:t}})));Promise.all(p).then((r=>{const o=r.some((e=>e.total_count>250)),i={code:ot,type:"warning"};o?this.feedErrorCallback(!1,i,ot):(this.tasksNewAPI=new $c(this.options),this.tasksNewAPI.createTaskWithDeps({file:e,task:h,assignees:n,successCallback:e=>{this.addPendingItem(this.file.id,t,d),this.updateFeedItem(td(td({},e),{},{task_links:{entries:e.task_links,next_marker:null,limit:1},assigned_to:{entries:e.assigned_to,next_marker:null,limit:e.assigned_to.length},isPending:!1}),c),s(e)},errorCallback:(e,t)=>{this.feedErrorCallback(!1,e,t)}}))})).catch((e=>{this.feedErrorCallback(!1,e,tt)}))})),rd(this,"deleteTaskNew",((e,t,r=Dt(),n=Dt())=>{if(!e.id)throw Ns();this.file=e,this.errorCallback=n,this.tasksNewAPI=new $c(this.options),this.updateFeedItem({isPending:!0},t.id),this.tasksNewAPI.deleteTask({file:e,task:t,successCallback:this.deleteFeedItem.bind(this,t.id,r),errorCallback:(e,r)=>{this.updateFeedItem(this.createFeedError(qu.taskDeleteErrorMessage),t.id),this.feedErrorCallback(!0,e,r)}})})),rd(this,"deleteFeedItem",((e,t=Dt())=>{const r=this.getCachedItems(this.file.id);if(r){const n=r.items.filter((t=>t.id!==e));this.setCachedItems(this.file.id,n),this.isDestroyed()||t(e)}})),rd(this,"deleteReplyItem",((e,t,r=Dt())=>{const n=(this.getCachedItems(this.file.id)||{items:[],errors:[]}).items.map((r=>r.id!==t?r:r.type===T||r.type===A?id(r,e):r));this.setCachedItems(this.file.id,n),this.isDestroyed()||r(e,t)})),rd(this,"feedErrorCallback",((e=!1,t,r)=>{e&&this.errors.push(td(td({},t),{},{code:r})),!this.isDestroyed()&&this.errorCallback&&this.errorCallback(t,r,{error:t,isErrorDisplayed:e}),console.error(t)})),rd(this,"addPendingItem",((e,t,r)=>{if(!t)throw Ms();const n=(new Date).toISOString(),o=td({created_at:n,created_by:t,modified_at:n,isPending:!0},r),i=this.getCachedItems(this.file.id),a=[...i?i.items:[],o];return this.setCachedItems(e,a),o})),rd(this,"addPendingReply",((e,t,r)=>{if(!this.file.id)throw Ns();if(!t)throw Ms();const n=(new Date).toISOString(),o=td({created_at:n,created_by:t,modified_at:n,isPending:!0},r),i=this.getCachedItems(this.file.id);if(i){const t=i.items.map((t=>t.id===e&&t.type===A||t.id===e&&t.type===T?ad(t,o):t));this.setCachedItems(this.file.id,t)}return o})),rd(this,"createCommentSuccessCallback",((e,t,r)=>{const{message:n="",tagged_message:o=""}=e;e.tagged_message=o||n,this.updateFeedItem(td(td({},e),{},{isPending:!1}),t),this.isDestroyed()||r(e)})),rd(this,"createCommentErrorCallback",((e,t,r)=>{const n=e.status===bt?qu.commentCreateConflictMessage:qu.commentCreateErrorMessage;this.updateFeedItem(this.createFeedError(n),r),this.feedErrorCallback(!1,e,t)})),rd(this,"createReplySuccessCallback",((e,t,r,n)=>{this.updateReplyItem(td(td({},e),{},{isPending:!1}),t,r),this.isDestroyed()||n(e)})),rd(this,"createReplyErrorCallback",((e,t,r,n)=>{const o=e.status===bt?qu.commentCreateConflictMessage:qu.commentCreateErrorMessage;this.updateReplyItem(this.createFeedError(o),r,n),this.feedErrorCallback(!1,e,t)})),rd(this,"updateFeedItem",((e,t)=>{if(!this.file.id)throw Ns();const r=this.getCachedItems(this.file.id);if(r){const n=r.items.map((r=>r.id===t?td(td({},r),e):r));return this.setCachedItems(this.file.id,n),n}return null})),rd(this,"updateReplyItem",((e,t,r)=>{if(!this.file.id)throw Ns();const n=(e,t,r)=>{const n=td({},e);return n.replies&&(n.replies=n.replies.map((e=>e.id===t?td(td({},e),r):e))),n},o=this.getCachedItems(this.file.id);if(o){const i=o.items.map((o=>o.id===t&&o.type===A||o.id===t&&o.type===T?n(o,r,e):o));this.setCachedItems(this.file.id,i)}})),rd(this,"createComment",((e,t,r,n,o,i)=>{const a=Jt()("comment_"),s={id:a,tagged_message:r,type:A};if(!e.id)throw Ns();this.file=e,this.errorCallback=i,this.addPendingItem(this.file.id,t,s);const l={};n?l.taggedMessage=r:l.message=r,this.commentsAPI=new Uc(this.options),this.commentsAPI.createComment(td(td({file:e},l),{},{successCallback:e=>{this.createCommentSuccessCallback(e,a,o)},errorCallback:(e,t)=>{this.createCommentErrorCallback(e,t,a)}}))})),rd(this,"createThreadedComment",((e,t,r,n,o)=>{if(!e.id)throw Ns();const i=Jt()("comment_"),a={id:i,tagged_message:r,type:A};this.file=e,this.errorCallback=o,this.addPendingItem(this.file.id,t,a),this.threadedCommentsAPI=new fu(this.options),this.threadedCommentsAPI.createComment({file:e,message:r,successCallback:e=>{this.createCommentSuccessCallback(e,i,n)},errorCallback:(e,t)=>{this.createCommentErrorCallback(e,t,i)}})})),rd(this,"updateComment",((e,t,r,n,o,i,a)=>{const s={tagged_message:r};if(!e.id)throw Ns();this.file=e,this.errorCallback=a,this.updateFeedItem(td(td({},s),{},{isPending:!0}),t);const l={};n?l.tagged_message=r:l.message=r,this.commentsAPI=new Uc(this.options),this.commentsAPI.updateComment(td(td({file:e,commentId:t,permissions:o},l),{},{successCallback:e=>{this.updateFeedItem(td(td({},l),{},{isPending:!1}),t),this.isDestroyed()||i(e)},errorCallback:(e,r)=>{this.updateCommentErrorCallback(e,r,t)}}))})),rd(this,"updateThreadedComment",((e,t,r,n,o,i,a)=>{if(!e.id)throw Ns();if(!r&&!n)throw Ds();const s={};r&&(s.tagged_message=r),n&&(s.status=n),this.file=e,this.errorCallback=a,this.updateFeedItem(td(td({},s),{},{isPending:!0}),t),this.threadedCommentsAPI=new fu(this.options),this.threadedCommentsAPI.updateComment({fileId:e.id,commentId:t,permissions:o,message:r,status:n,successCallback:e=>{const{replies:r,total_reply_count:n}=e,o=nd(e,Zu);this.updateFeedItem(td(td({},o),{},{isPending:!1}),t),this.isDestroyed()||i(e)},errorCallback:(e,r)=>{this.updateCommentErrorCallback(e,r,t)}})})),rd(this,"updateReply",((e,t,r,n,o,i,a)=>{if(!e.id)throw Ns();this.file=e,this.errorCallback=a,this.updateReplyItem({tagged_message:n,isPending:!0},r,t),this.threadedCommentsAPI=new fu(this.options),this.threadedCommentsAPI.updateComment({fileId:e.id,commentId:t,permissions:o,message:n,undefined:void 0,successCallback:e=>{this.updateReplyItem(td(td({},e),{},{isPending:!1}),r,t),this.isDestroyed()||i(e)},errorCallback:(e,n)=>{this.updateReplyErrorCallback(e,n,t,r)}})})),rd(this,"modifyFeedItemRepliesCountBy",((e,t)=>{if(!this.file.id)throw Ns();const{items:r=[]}=this.getCachedItems(this.file.id)||{},n=r.find((({id:t})=>t===e));if(!n||"annotation"!==n.type&&"comment"!==n.type)return;const o=(n.total_reply_count||0)+t;o>=0&&this.updateFeedItem({total_reply_count:o},e)})),rd(this,"deleteAppActivity",((e,t,r,n)=>{const{id:o}=e;if(!o)throw Ns();this.appActivityAPI=new Ju(this.options),this.file=e,this.errorCallback=n,this.updateFeedItem({isPending:!0},t),this.appActivityAPI.deleteAppActivity({id:o,appActivityId:t,successCallback:this.deleteFeedItem.bind(this,t,r),errorCallback:(e,r)=>{this.deleteAppActivityErrorCallback(e,r,t)}})})),rd(this,"deleteAppActivityErrorCallback",((e,t,r)=>{this.updateFeedItem(this.createFeedError(qu.appActivityDeleteErrorMessage),r),this.feedErrorCallback(!0,e,t)})),this.taskCollaboratorsAPI=[],this.taskLinksAPI=[],this.errors=[]}addAnnotation(e,t,r,n,o){if(!e.id)throw Ns();if(this.file=e,o){const e=td(td({},r),{},{created_by:t,id:n,type:T});this.addPendingItem(this.file.id,t,e)}else this.updateFeedItem(td(td({},r),{},{isPending:!1}),n)}getCacheKey(e){return`feedItems_${e}`}getCachedItems(e){const t=this.getCache(),r=this.getCacheKey(e);return t.get(r)}setCachedItems(e,t){const r=this.getCache(),n=this.getCacheKey(e);r.set(n,{errors:this.errors,items:t})}feedItems(e,t,r,n,o,{shouldShowAnnotations:i=!1,shouldShowAppActivity:a=!1,shouldShowReplies:s=!1,shouldShowTasks:l=!0,shouldShowVersions:c=!0,shouldUseUAA:u=!1}={}){const{id:d,permissions:h={}}=e,p=this.getCachedItems(d);if(p){const{errors:e,items:o}=p;if(e.length?n(o,e):r(o),!t)return}this.file=e,this.errors=[],this.errorCallback=o;const f=!u&&i?this.fetchAnnotations(h,s):Promise.resolve(),g=()=>u?Promise.resolve():s?this.fetchThreadedComments(h):this.fetchComments(h),m=!u&&l?this.fetchTasksNew():Promise.resolve(),b=!u&&a?this.fetchAppActivity(h):Promise.resolve(),y=!u&&c?this.fetchVersions():Promise.resolve(),v=!u&&c?this.fetchCurrentVersion():Promise.resolve(),_=i&&h[ke]?[_t]:[],w=l?[Ct]:[],E=c?[St]:[],C=[..._,...a?[wt]:[],...h[ve]?[Et]:[],...w,...E],S=u&&C.length?this.fetchFileActivities(h,C,s):Promise.resolve(),k=e=>{this.isDestroyed()||(this.setCachedItems(d,e),this.errors.length?n(e,this.errors):r(e))};u?S.then((e=>{if(!e)return;const t=(e=>e&&e.entries&&e.entries.length?e.entries.map((e=>{if(!e.source)return null;const t=td({},e.source);switch(e.activity_type){case Ct:{const e=td({},t[Ct]);if(e.assigned_to?.entries){const t=e.assigned_to.entries.map((e=>{const t=td({},e);return t.role=e.role.toUpperCase(),t.status=e.status.toUpperCase(),t}));e.assigned_to.entries=t}return e.completion_rule&&(e.completion_rule=e.completion_rule.toUpperCase()),e.status&&(e.status=e.status.toUpperCase()),e.task_type&&(e.task_type=e.task_type.toUpperCase()),e.created_by={target:e.created_by},e}case Et:{const e=td({},t[Et]);if(e.replies&&e.replies.length){const t=sd(e.replies);e.replies=t}return e.tagged_message=e.tagged_message||e.message||"",e}case _t:{const e=td({},t[_t]);if(e.replies&&e.replies.length){const t=sd(e.replies);e.replies=t}return e}case wt:{const e=td({},t[wt]);return e.created_at=e.occurred_at,e}case St:{const e=td({},t[St]);if(e.type="file_version",e.action_by){const t={};1===e.action_by.length&&(e.uploader_display_name=e.action_by[0].name),e.action_by.map((e=>(t[e.id]=td({},e),e))),e.collaborators=t}return e.end?.number&&(e.version_end=e.end.number,e.id=e.end.id),e.start?.number&&(e.version_start=e.start.number),e.version_start===e.version_end&&(e.version_number=e.version_start,"created"===e.action_type&&e.start?.created_at&&e.start?.created_by&&(e.modified_at=e.start.created_at,e.modified_by=td({},e.start.created_by)),"trashed"===e.action_type&&e.start?.trashed_at&&e.start?.trashed_by&&(e.trashed_at=e.start.trashed_at,e.trashed_by=td({},e.start.trashed_by)),"restored"===e.action_type&&e.start?.restored_at&&e.start?.restored_by&&(e.restored_at=e.start.restored_at,e.restored_by=td({},e.start.restored_by))),e}default:return null}})).filter((e=>!!e)).reverse():[])(e);k(t)})):Promise.all([y,v,g(),m,b,f]).then((([e,t,...r])=>{const n=function(...e){return e.reduce(((e,t)=>t?e.concat(t.entries):e),[]).sort(((e,t)=>Date.parse(e.created_at)-Date.parse(t.created_at)))}(t?this.versionsAPI.addCurrentVersion(t,e,this.file):void 0,...r);k(n)}))}fetchAnnotations(e,t){return this.annotationsAPI=new Wu(this.options),new Promise((r=>{this.annotationsAPI.getAnnotations(this.file.id,void 0,e,r,this.fetchFeedItemErrorCallback.bind(this,r),void 0,void 0,t)}))}fetchComments(e){return this.commentsAPI=new Uc(this.options),new Promise((t=>{this.commentsAPI.getComments(this.file.id,e,t,this.fetchFeedItemErrorCallback.bind(this,t))}))}fetchThreadedComment(e,t,r,n){const{id:o,permissions:i}=e;if(!o||!i)throw Ns();return this.threadedCommentsAPI=new fu(this.options),new Promise((e=>{this.threadedCommentsAPI.getComment({commentId:t,errorCallback:n,fileId:o,permissions:i,successCallback:this.fetchThreadedCommentSuccessCallback.bind(this,e,r)})}))}fetchThreadedComments(e){return this.threadedCommentsAPI=new fu(this.options),new Promise((t=>{this.threadedCommentsAPI.getComments({errorCallback:this.fetchFeedItemErrorCallback.bind(this,t),fileId:this.file.id,permissions:e,successCallback:t})}))}fetchFileActivities(e,t,r=!1){return this.fileActivitiesAPI=new vu(this.options),new Promise((n=>{this.fileActivitiesAPI.getActivities({errorCallback:this.fetchFeedItemErrorCallback.bind(this,n),fileID:this.file.id,permissions:e,successCallback:n,activityTypes:t,shouldShowReplies:r})}))}fetchReplies(e,t,r,n,o){const{id:i,permissions:a}=e;if(!i||!a)throw Ns();this.file=e,this.errorCallback=o,this.updateFeedItem({isRepliesLoading:!0},t);const s=({entries:e})=>{this.updateFeedItem({isRepliesLoading:!1,replies:e,total_reply_count:e.length},t),n(e)},l=(e,r)=>{this.fetchRepliesErrorCallback(e,r,t)};r===T?(this.annotationsAPI=new Wu(this.options),this.annotationsAPI.getAnnotationReplies(e.id,t,a,s,l)):r===A&&(this.threadedCommentsAPI=new fu(this.options),this.threadedCommentsAPI.getCommentReplies({fileId:e.id,commentId:t,permissions:a,successCallback:s,errorCallback:l}))}fetchVersions(){return this.versionsAPI=new Nc(this.options),new Promise((e=>{this.versionsAPI.getVersions(this.file.id,e,this.fetchFeedItemErrorCallback.bind(this,e),void 0,void 0,Ws)}))}fetchCurrentVersion(){return this.versionsAPI=new Nc(this.options),new Promise((e=>{const{file_version:t={}}=this.file;this.versionsAPI.getVersion(this.file.id,t.id,e,this.fetchFeedItemErrorCallback.bind(this,e))}))}fetchTasksNew(){return this.tasksNewAPI=new $c(this.options),new Promise((e=>{this.tasksNewAPI.getTasksForFile({file:{id:this.file.id},successCallback:e,errorCallback:(t,r)=>this.fetchFeedItemErrorCallback(e,t,r)})}))}fetchFeedItemErrorCallback(e,t,r){const{status:n}=t,o=Us(n);this.feedErrorCallback(o,t,r),e()}createTaskCollaboratorsforGroup(e,t,r){if(!e.id)throw Ns();return this.file=e,new Promise(((n,o)=>{const i=new Xc(this.options);this.taskCollaboratorsAPI.push(i),i.createTaskCollaboratorsforGroup({file:e,task:t,group:r,successCallback:n,errorCallback:e=>{o(e)}})}))}createTaskCollaborator(e,t,r){if(!e.id)throw Ns();return this.file=e,new Promise(((n,o)=>{const i=new Xc(this.options);this.taskCollaboratorsAPI.push(i),i.createTaskCollaborator({file:e,task:t,user:r,successCallback:n,errorCallback:e=>{o(e)}})}))}deleteTaskCollaborator(e,t,r){if(!e.id)throw Ns();return this.file.id=e.id,new Promise(((n,o)=>{const i=new Xc(this.options);this.taskCollaboratorsAPI.push(i),i.deleteTaskCollaborator({file:e,task:t,taskCollaborator:{id:r.id},successCallback:n,errorCallback:e=>{o(e)}})}))}createTaskLink(e,t){if(!e.id)throw Ns();return this.file=e,new Promise(((r,n)=>{const o=new ru(this.options);this.taskLinksAPI.push(o),o.createTaskLink({file:e,task:t,successCallback:r,errorCallback:n})}))}createFeedError(e,t=fo.errorOccured){return{error:{message:e,title:t}}}createReply(e,t,r,n,o,i,a){const{id:s,permissions:l}=e;if(!s||!l)throw Ns();const c=Jt()("comment_"),u={id:c,tagged_message:o,type:A};this.file=e,this.errorCallback=a,this.addPendingReply(r,t,u),this.modifyFeedItemRepliesCountBy(r,1);const d=e=>{this.createReplySuccessCallback(e,r,c,i)},h=(e,t)=>{this.createReplyErrorCallback(e,t,r,c)};n===T?(this.annotationsAPI=new Wu(this.options),this.annotationsAPI.createAnnotationReply(e.id,r,l,o,d,h)):n===A&&(this.threadedCommentsAPI=new fu(this.options),this.threadedCommentsAPI.createCommentReply({fileId:e.id,commentId:r,permissions:l,message:o,successCallback:d,errorCallback:h}))}destroyTaskCollaborators(){Array.isArray(this.taskCollaboratorsAPI)&&(this.taskCollaboratorsAPI.forEach((e=>e.destroy())),this.taskCollaboratorsAPI=[])}destroyTaskLinks(){Array.isArray(this.taskLinksAPI)&&(this.taskLinksAPI.forEach((e=>e.destroy())),this.taskLinksAPI=[])}fetchAppActivity(e){return this.appActivityAPI=new Ju(this.options),new Promise((t=>{this.appActivityAPI.getAppActivity(this.file.id,e,t,this.fetchFeedItemErrorCallback.bind(this,t))}))}destroy(){super.destroy(),this.annotationsAPI&&(this.annotationsAPI.destroy(),delete this.annotationsAPI),this.commentsAPI&&(this.commentsAPI.destroy(),delete this.commentsAPI),this.threadedCommentsAPI&&(this.threadedCommentsAPI.destroy(),delete this.threadedCommentsAPI),this.versionsAPI&&(this.versionsAPI.destroy(),delete this.versionsAPI),this.appActivityAPI&&(this.appActivityAPI.destroy(),delete this.appActivityAPI),this.tasksNewAPI&&(this.tasksNewAPI.destroy(),delete this.tasksNewAPI),this.destroyTaskCollaborators(),this.destroyTaskLinks()}};const cd=class extends El{getUrl(e){if(!e)throw new Error("Missing app integration id!");return`${this.getBaseApiUrl()}/app_integrations/${e}`}execute(e,t,r,n){if(!e)throw new Error("Missing integration id!");if(!t)throw new Error("Missing file id!");this.errorCode="execute_integrations_error";const o=`${this.getUrl(e)}/execute`,i={data:{item:{id:t,type:I}}};this.post({id:t,url:o,data:i,successCallback:r,errorCallback:n})}};const ud=class extends El{getUrl(e){if(!e)throw new Error("Missing file id!");return`${this.getBaseApiUrl()}/files/${e}/open_with_integrations`}getOpenWithIntegrations(e,t,r){this.errorCode="fetch_integrations_error",this.get({id:e,successCallback:e=>{const r=this.formatOpenWithData(e),n=this.consolidateBoxEditIntegrations(r);t(n)},errorCallback:r})}consolidateBoxEditIntegrations(e){let t=[...e];return e.some((e=>"1338"===e.appIntegrationId))&&(t=e.filter((e=>"13418"!==e.appIntegrationId))),t}formatOpenWithData(e){const{items:t,default_app_integration:r}=e;return t.map((({app_integration:e,disabled_reasons:t,display_name:n,display_description:o,display_order:i,is_disabled:a,should_show_consent_popup:s})=>{const{id:l,type:c}=e;return{appIntegrationId:l,displayDescription:o,disabledReasons:t||[],displayOrder:i,isDefault:!!r&&l===r.id,isDisabled:a,displayName:n,requiresConsent:s,type:c}})).sort(((e,t)=>e.displayOrder-t.displayOrder))}};function dd(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hd=class extends El{constructor(...e){super(...e),dd(this,"queryMetadataSuccessHandler",(({data:e})=>{this.getCache().set(this.key,e),this.finish()}))}getCacheKey(e){return`metadata_query_${e}`}getUrl(){return`${this.getBaseApiUrl()}/metadata_queries/execute_read`}isLoaded(){return this.getCache().has(this.key)}finish(){if(this.isDestroyed())return;const e=this.getCache().get(this.key);this.successCallback(e)}queryMetadataRequest(e){this.isDestroyed()||(this.errorCode="metadata_query_error",this.xhr.post({url:this.getUrl(),data:e}).then(this.queryMetadataSuccessHandler).catch(this.errorHandler))}queryMetadata(e,t,r,n={}){if(this.isDestroyed())return;const{context:o={}}=n;this.key=this.getCacheKey(o.id),this.successCallback=t,this.errorCallback=r,n.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.queryMetadataRequest(e)}},pd={CHROME:"Chrome",EDGE:"Edge",FIREFOX:"Firefox",MAC:"Mac",SAFARI:"Safari",IE:"Explorer"},fd=[{key:"userAgent",subString:pd.EDGE,identity:pd.EDGE},{key:"userAgent",subString:pd.CHROME,identity:pd.CHROME},{key:"userAgent",subString:"criOS",identity:pd.CHROME,versionSearch:"criOS"},{key:"vendor",subString:"Apple",identity:pd.SAFARI,versionSearch:"Version"},{key:"userAgent",subString:pd.FIREFOX,identity:pd.FIREFOX},{key:"userAgent",subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{key:"userAgent",subString:"Trident",identity:"Explorer",versionSearch:"rv"},{key:"userAgent",subString:"Gecko",identity:"Mozilla",versionSearch:"rv"}],gd=[{key:"platform",subString:"Win",identity:"Windows"},{key:"userAgent",subString:"iPod",identity:"iOS",device:"iPod"},{key:"userAgent",subString:"iPhone",identity:"iOS",device:"iPhone"},{key:"userAgent",subString:"iPad",identity:"iOS",device:"iPad"},{key:"platform",subString:pd.MAC,identity:pd.MAC},{key:"userAgent",subString:"Android",identity:"Android"},{key:"platform",subString:"Linux",identity:"Linux"}];function md(e,t){let r,n=null,o=null,i="";for(let a=0,s=t.length;a<s;a+=1)if(r=e[t[a].key],i=t[a].versionSearch||t[a].identity,r&&-1!==r.indexOf(t[a].subString)){n=t[a].identity,o=t[a].device;break}return{identity:n,device:o,versionSearchString:i}}function bd(e,t){const r=e.indexOf(t);if(-1===r)return"";const n=e.substring(r+t.length+1).match(/[0-9]+(?:\.[0-9]*)?/);return n&&n.length?n[0]:""}const yd=new class{constructor(){const{navigator:e}=window,t=md(e,fd),r=md(e,gd);this.browser=t.identity||"unknown",this.version=bd(e.userAgent,t.versionSearchString)||bd(e.appVersion,t.versionSearchString)||"unknown",this.OS=r.identity||"unknown",this.device=r.device||"unknown"}getName(){return this.browser}getVersion(){return this.version}isMinBrowser(e,t){return this.browser.toLowerCase()===e.toLowerCase()&&parseFloat(this.version)>=parseFloat(t)}isSafari(){return this.browser===pd.SAFARI}isFirefox(){return this.browser===pd.FIREFOX}isChrome(){return this.browser===pd.CHROME}isIE(){return this.browser===pd.IE}isEdge(){return this.browser===pd.EDGE}isIEAndSpecificBrowserPluginSupported(e){return this.isIE()&&function(e){const t=e||"htmlfile";let r=!1;try{if("ActiveXObject"in window){const{ActiveXObject:e}=window;r=!!new e(t)}}catch(e){r=!1}return r}(e)}};const vd=function(e){const t=[];let r,n=0;return new Promise(((o,i)=>{e.forEach(((a,s)=>{a.then(o).catch((o=>a=>{t[o]=a,n+=1,n===e.length&&(r=new Error("no promises resolved"),i(r))})(s))}))}))},_d={SAFARI_CHANNEL_NAME:"safari_channel",SECRET_STORE_COOKIE_NAME:"box-edit-secret-cookie-name",BOX_EDIT_APP_NAME:"BoxEdit",BOX_EDIT_NOT_SUPPORTED_ERROR:"box_edit_not_supported_error",BOX_EDIT_UNINSTALLED_ERROR:"box_edit_uninstalled_error",BOX_EDIT_UPGRADE_BROWSER_ERROR:"box_edit_upgrade_browser_error",BOX_EDIT_SAFARI_ERROR:"box_edit_safari_error",BOX_EDIT_INSECURE_REQUESTS_UPGRADED_ERROR:"box_edit_insecure_requests_upgraded_error",BOX_TOOLS_PLUGIN_NAME:"Box.BoxTools",BOX_SECURE_LOCAL_BASE_URL:"https://edit.boxlocalhost.com:",BOX_UNSECURE_LOCAL_BASE_URL:"http://127.0.0.1:",ACTIVEX_CHANNEL_NAME:"activex_channel",HTTP_CHANNEL_NAME:"http_channel",HTTPS_CHANNEL_NAME:"https_channel",OPERATION_STATUS:"status",OPERATION_REQUEST:"application_request",OPERATION_COMMAND:"application_command",UNCREATED_STATUS:"uncreated",CREATED_STATUS:"created",ACTIVE_STATUS:"active",HIVE_TABLE_WEBAPP_BOXTOOLS_ANALYTICS:"webapp_boxtools_analytics",KEY_LENGTH:16,KEY_ID_LENGTH:8,IV:"75392C57F66CE7E7EF47110410280DD7",OUTPUT_EVENT:"box_extension_output",REQUEST_ID_PRE:"BOX-EXT-REQ-ID-",REQUEST_TIMEOUT_RESPONSE_CODE:408,EXTENSION_BLACKLIST:{A6P:1,AC:1,AS:1,ACR:1,ACTION:1,AIR:1,APP:1,AWK:1,BAT:1,BOXNOTE:1,CGI:1,CHM:1,CMD:1,COM:1,CSH:1,DEK:1,DLD:1,DS:1,EBM:1,ESH:1,EXE:1,EZS:1,FKY:1,FRS:1,FXP:1,GADGET:1,HMS:1,HTA:1,ICD:1,INX:1,IPF:1,ISU:1,JAR:1,JS:1,JSE:1,JSX:1,KIX:1,LNK:1,LUA:1,MCR:1,MEM:1,MPX:1,MS:1,MSI:1,MST:1,OBS:1,PAF:1,PEX:1,PIF:1,PL:1,PRC:1,PRG:1,PVD:1,PWC:1,PY:1,PYC:1,PYO:1,QPX:1,RBX:1,REG:1,RGS:1,ROX:1,RPJ:1,SCAR:1,SCR:1,SCRIPT:1,SCPT:1,SCT:1,SH:1,SHB:1,SHS:1,SPR:1,TLB:1,TMS:1,U3P:1,UDF:1,URL:1,VB:1,VBE:1,VBS:1,VBSCRIPT:1,WCM:1,WPK:1,WS:1,WSF:1,XQT:1}};function wd(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ed=class{constructor(e){wd(this,"buildNextRequestID",(()=>`${_d.REQUEST_ID_PRE}${this.window.performance.now()}`)),wd(this,"buildDetailsObj",((e,t,r)=>{const n=r.toString(),o={data:void 0,operation:e,properties:{application:this.appName,timeout:n},req_id:this.buildNextRequestID()};if(e!==_d.OPERATION_STATUS){if(!t)throw new TypeError(`Data cannot be undefined for ${e}`);o.data=t}return o})),this.appName=e,this.window=window}sendCommand(e,t,r){return Promise.resolve("TODO")}sendRequest(e,t,r){return Promise.resolve("TODO")}getComServerStatus(e,t){return Promise.resolve("TODO")}destroy(){}};function Cd(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Sd=class extends Ed{constructor(e,t){super(e),Cd(this,"executeOperation",((e="",t={},r=0,n=0)=>new Promise(((o,i)=>{const a=this.buildDetailsObj(e,t,n),s=setTimeout((()=>{i(new Error({status_code:_d.REQUEST_TIMEOUT_RESPONSE_CODE}))}),r);this.reqIdToPromiseMap.set(a.req_id,{resolve:o,rejectTimeout:s}),this.executeActiveXEvent({detail:a})})))),Cd(this,"repairActiveXConnection",(e=>{yd.isIEAndSpecificBrowserPluginSupported(_d.BOX_TOOLS_PLUGIN_NAME)&&(this.retryAttempt>=2||(this.retryAttempt+=1,setTimeout((()=>{this.executeActiveXEvent(e)}),100)))})),Cd(this,"executeActiveXEvent",(e=>{const t=this.createActiveXObjectJSRef(),r="ExecuteSync"in t;try{this.isSynchronous&&r?t.ExecuteSync(JSON.stringify(e)):t.Execute(JSON.stringify(e))}catch(t){this.repairActiveXConnection(e)}})),Cd(this,"createActiveXObjectJSRef",(()=>{const{ActiveXObject:e}=this.window;return new e(_d.BOX_TOOLS_PLUGIN_NAME)})),Cd(this,"setupActiveXCommunication",(()=>{this.isActiveXExtensionListenerAttached||(this.document.addEventListener(_d.OUTPUT_EVENT,this.appExtensionEventResponseHandler),this.isActiveXExtensionListenerAttached=!0)})),Cd(this,"tearDownActiveXCommunication",(()=>{this.isActiveXExtensionListenerAttached&&(this.document.removeEventListener(_d.OUTPUT_EVENT,this.appExtensionEventResponseHandler),this.isActiveXExtensionListenerAttached=!1)})),Cd(this,"appExtensionEventResponseHandler",(e=>{this.retryAttempt>0&&(this.retryAttempt=0);const t="string"==typeof e.detail?JSON.parse(e.detail):e.detail;if(this.reqIdToPromiseMap.has(t.req_id)){const e=this.reqIdToPromiseMap.get(t.req_id);if(e){clearTimeout(e.rejectTimeout),this.reqIdToPromiseMap.delete(t.req_id);const r="string"==typeof t.com_server_response.data?JSON.parse(t.com_server_response.data):t.com_server_response.data;e.resolve(r)}}})),Cd(this,"getComServerStatus",((e,t)=>this.executeOperation(_d.OPERATION_STATUS,null,e,t))),Cd(this,"sendRequest",((e,t,r)=>this.executeOperation(_d.OPERATION_REQUEST,e,t,r))),Cd(this,"sendCommand",((e,t,r)=>this.executeOperation(_d.OPERATION_COMMAND,e,t,r))),Cd(this,"destroy",(()=>{this.tearDownActiveXCommunication()})),this.isSynchronous=t,this.channelName=_d.ACTIVEX_CHANNEL_NAME,this.reqIdToPromiseMap=new Map,this.isActiveXExtensionListenerAttached=!1,this.retryAttempt=0,this.document=document,this.window=window,this.setupActiveXCommunication()}};function kd(e,t,r,n="/",o=""){const{document:i}=window,a=new Date,s=[];void 0===r&&(r=a.getTime()+5184e6),a.setTime(r),s.push(`${e}=${encodeURIComponent(t)}`),0!==r&&s.push(`; expires=${a.toUTCString()}`),s.push(`; path=${n}`),o&&s.push(`; domain=${o}`),s.push("; secure"),i.cookie=s.join("")}function Id(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Od="POST",Td=17223,Ad="notrunning",xd=new ml;function Pd(){return xd.getItem("comUseFallback")?{primary:17224,fallback:Td}:{primary:Td,fallback:17224}}const Rd=class extends Ed{constructor(e,t,r){super(e),Id(this,"createCORSRequest",((e,t)=>{let r;try{const{XMLHttpRequest:n}=this.window;return r=new n,r.open(e,t,!0),r}catch(r){if(this.retryCounter<3)return this.retryCounter+=1,this.createCORSRequest(e,t);throw new Error("could not create xhr")}})),Id(this,"getComServerStatusInstallationPromise",(e=>{let t,r;const n=new Promise(((e,n)=>{t=e,r=n})),o=(e,r)=>{this.currentPort=e,e===Td?xd.removeItem("comUseFallback"):xd.setItem("comUseFallback",1),this.comServerInstallationPromiseRejected=!1,t(r)},i=Pd(),a=i.primary,s=i.fallback;return this.checkInstallStatus(a,e).then(o.bind(this,a)).catch((t=>{if(t===Ad)return this.comServerInstallationPromiseRejected=!0,void r();this.checkInstallStatus(s,e).then(o.bind(this,s)).catch((()=>{this.comServerInstallationPromiseRejected=!0,r()}))})),n})),Id(this,"sendComServerRequest",((e,t,r,n)=>new Promise(((o,i)=>{try{const a=this.createCORSRequest(e,t);a.setRequestHeader("Content-Type","text/plain; charset=UTF-8"),a.onload=()=>{o(a)},a.onerror=()=>{i(a)},n>0&&(a.timeout=n,a.ontimeout=()=>{i(a)}),setTimeout((()=>{a.send(r)}),0)}catch(e){i()}})))),Id(this,"checkInstallStatus",((e,t)=>this.sendComServerRequest("GET",`${this.url}${e}/status`,null,t).then((e=>{const t=JSON.parse(e.responseText);if(t.running)return t;throw this.comServerInstallationPromiseRejected=!0,new Error(Ad)})))),Id(this,"getComChannel",(e=>function(e){const{document:t}=window,r=t.cookie.split("; "),n=r.length;let o,i;for(i=0;i<n;i+=1)if(o=r[i].split("="),o[0]===e)return o[1]?decodeURIComponent(o[1]):"";return""}(`${e}-bgp-id`))),Id(this,"setComChannel",(e=>{const t=this.getComChannel(e)||this.generateId(),r=`bgp-${t}`,n=(new Date).getTime()+31536e6;return kd(`${e}-bgp-id`,t,n),kd(`bgp-${t}`,"generic",n),r})),Id(this,"getComServerStatus",(e=>!this.comServerInstallationPromise||this.comServerInstallationPromiseRejected?(this.comServerInstallationPromise=null,this.comServerInstallationPromise=this.getComServerStatusInstallationPromise(e),this.comServerInstallationPromise):this.comServerInstallationPromise)),Id(this,"sendRequest",((e,t,r)=>{const n=`${this.url}${this.currentPort}/application_request?application=${this.appName}&com=${this.comChannelName}&timeout=${r}`;return this.sendComServerRequest(Od,n,e,t).then((e=>{const t=JSON.parse(e.responseText);if(t.response_type&&"error"===t.response_type)throw new Error(`Communication error: ${t.message}`);return t}))})),Id(this,"sendCommand",((e,t,r)=>{const n=`${this.url}${this.currentPort}/application_command?application=${this.appName}&com=${this.comChannelName}&timeout=${r}`;return this.sendComServerRequest(Od,n,e,t).then((e=>JSON.parse(e.responseText)))})),Id(this,"generateId",(()=>{const e=(new Date).getTime();return"xxxxxxxx".replace(/x/g,(()=>Math.floor((e+16*Math.random())%16).toString(16)))})),this.url=t,this.comChannelName=this.setComChannel(e),this.channelName=r,this.comServerInstallationPromise=null,this.comServerInstallationPromiseRejected=!1,this.retryCounter=0,this.sendCount=0,this.currentPort=Pd().primary,this.window=window}};function Nd(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ld="box_extension_output";const Md=class extends Ed{constructor(e){super(e),Nd(this,"executeOperation",((e="",t={},r=0,n=0)=>new Promise(((o,i)=>{const a=this.buildDetailsObj(e,t,n),s=setTimeout((()=>{i(new Error({status_code:_d.REQUEST_TIMEOUT_RESPONSE_CODE}))}),r);this.reqIdToPromiseMap.set(a.req_id,{resolve:o,rejectTimeout:s}),this.createAndDispatchAppExtensionEvent({detail:a})})))),Nd(this,"setupSafariExtensionCommunication",(()=>{this.isAppExtensionListenerAttached||(this.isAppExtensionListenerAttached=!0,this.document.addEventListener(Ld,this.appExtensionEventResponseHandler))})),Nd(this,"tearDownSafariExtensionCommunication",(()=>{this.isAppExtensionListenerAttached&&(this.isAppExtensionListenerAttached=!1,this.document.removeEventListener(Ld,this.appExtensionEventResponseHandler))})),Nd(this,"appExtensionEventResponseHandler",(e=>{const t="string"==typeof e.detail?JSON.parse(e.detail):e.detail;if(this.reqIdToPromiseMap.has(t.req_id)){const e=this.reqIdToPromiseMap.get(t.req_id);if(e){clearTimeout(e.rejectTimeout),this.reqIdToPromiseMap.delete(t.req_id);const r="string"==typeof t.com_server_response.data?JSON.parse(t.com_server_response.data):t.com_server_response.data;e.resolve(r)}}})),Nd(this,"createAndDispatchAppExtensionEvent",(e=>{const{CustomEvent:t}=this.window,r=new t("box_extension_input",e);this.document.dispatchEvent(r)})),Nd(this,"getComServerStatus",((e,t)=>this.executeOperation(_d.OPERATION_STATUS,null,e,t))),Nd(this,"sendRequest",((e,t,r)=>this.executeOperation(_d.OPERATION_REQUEST,e,t,r))),Nd(this,"sendCommand",((e,t,r)=>this.executeOperation(_d.OPERATION_COMMAND,e,t,r))),Nd(this,"destroy",(()=>{this.tearDownSafariExtensionCommunication()})),this.reqIdToPromiseMap=new Map,this.channelName=_d.SAFARI_CHANNEL_NAME,this.window=window,this.document=document,this.setupSafariExtensionCommunication()}};function Dd(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ud=55,Fd="16.16299",jd="17.17134";let Hd;function Bd(e){const{BOX_UNSECURE_LOCAL_BASE_URL:t,CREATED_STATUS:r,HTTP_CHANNEL_NAME:n}=_d;return Hd.http_channel_status=r,new Rd(e,t,n)}function zd(e){const{CREATED_STATUS:t}=_d;return Hd.safari_channel_status=t,new Md(e)}function qd(e){const{CREATED_STATUS:t}=_d;return Hd.activex_channel_status=t,new Sd(e,!0)}function Kd(){const{EDGE:e}=pd;return yd.isMinBrowser(e,jd)||yd.isMinBrowser(e,Fd)&&yd.getVersion().startsWith("16.")}function Vd(){return yd.isEdge()&&!Kd()}function Gd(){const{CHROME:e,FIREFOX:t}=pd;return yd.isMinBrowser(e,53)||yd.isMinBrowser(t,Ud)||Kd()}function Wd(){return yd.isMinBrowser(pd.SAFARI,10)}function $d(){return yd.isMinBrowser(pd.IE,11)}function Jd(e){const{BOX_EDIT_NOT_SUPPORTED_ERROR:t,BOX_EDIT_SAFARI_ERROR:r,BOX_EDIT_UNINSTALLED_ERROR:n,BOX_EDIT_UPGRADE_BROWSER_ERROR:o}=_d;let i=t;return Gd()||$d()?i=n:yd.isFirefox()||yd.isChrome()||yd.isSafari()&&!Wd()||Vd()?i=o:Wd()&&(i=r),Hd.error_message=i,e(new Error(i))}function Yd(e){let t=5e3;return"number"==typeof e&&e>=0&&(t=Math.floor(e)),t}function Qd(e){let t=+(e/1e3).toFixed(2);return e<2?t/=2:t-=1,t}const Xd=class{constructor(e){Dd(this,"isInitialized",!1),this.channels=[],this.isInitialized=!0,function(){const e=yd.getName(),t=yd.getVersion(),{UNCREATED_STATUS:r}=_d;Hd={box_tools_version:null,browser_name:e,browser_version:t,error_message:null,installation_type:null,http_channel_status:r,https_channel_status:r,activex_channel_status:r,safari_channel_status:r}}(),Gd()?this.channels.push(Bd(e)):Wd()?this.channels.push(zd(e)):$d()&&yd.isIEAndSpecificBrowserPluginSupported(_d.BOX_TOOLS_PLUGIN_NAME)?this.channels.push(function(e){const{CREATED_STATUS:t}=_d;return Hd.activex_channel_status=t,new Sd(e,!1)}(e)):yd.isFirefox()&&!yd.isMinBrowser(pd.FIREFOX,Ud)||Vd()||(this.channels=this.channels.concat([Bd(e),zd(e),qd(e)]))}getComServerStatus(e){const{ACTIVE_STATUS:t}=_d,r=Yd(e),n=Qd(r),o=Vd();return new Promise(((e,i)=>o?Jd.call(null,i):this.channels.length?vd(this.channels.map((o=>o.getComServerStatus(r,n).then((r=>(this.activeChannel=o,r&&(Hd.installation_type=r.installation_type,Hd.box_tools_version=r.version),Hd[`${o.channelName}_status`]=t,e(r))))))).catch(Jd.bind(null,i)):Jd.call(null,i)))}sendRequest(e,t,r){const n=Yd(r),o=Qd(n);return this.activeChannel?this.activeChannel.sendRequest(e,n,o):this.getComServerStatus().then((()=>this.activeChannel.sendRequest(e,n,o)))}sendCommand(e,t){const r=Yd(t),n=Qd(r);return this.activeChannel?this.activeChannel.sendCommand(e,r,n):this.getComServerStatus().then((()=>this.activeChannel.sendCommand(e,r,n)))}};let Zd;let eh=null;class th{constructor(){return eh instanceof th||(eh=this),this.extensionRequestQueue=new Map,eh}queueGetNativeAppNameFromLocal(e){if(this.extensionRequestQueue.has(e)){const t=this.extensionRequestQueue.get(e);if(!t)throw new Error("Race condition re: queueGetNativeAppNameFromLocal");return t.promise}const t={},r=new Promise(((e,r)=>{t.resolve=e,t.reject=r}));return t.promise=r,this.extensionRequestQueue.set(e,t),r}checkBoxEditAvailability(){return this.getBoxEditAvailability()}getBoxEditAvailability(){return this.client=new Xd(_d.BOX_EDIT_APP_NAME),this.client.getComServerStatus()}async canOpenWithBoxEdit(e){const t=await Promise.all(e.map((async e=>{try{const t=await this.getAppForExtension(e);return[e,t]}catch(t){return[e,""]}}))),r=new Map;return t.forEach((e=>r.set(...e))),Promise.resolve(r)}openFile(e,t){const r=function(e,t,r,n){return JSON.stringify({auth_code:r,auth_token:t,browser_type:yd.getName(),command_type:"launch_application",file_id:e.toString(),token_scope:n})}(e,t.data.token,t.data.auth_code,t.data.token_scope);return this.client.sendCommand(r,5e3)}getAppForExtension(e){try{if(function(e){const{EXTENSION_BLACKLIST:t}=_d;let r=e.toUpperCase();return"."===r.charAt(0)&&(r=r.substr(1)),r in t}(e))throw new Error("blacklisted");const t=this.queueGetNativeAppNameFromLocal(e);return Zd||(Zd=setTimeout((()=>{this.processExtensionRequestQueue()}),100)),t}catch(e){return Promise.reject()}}processExtensionRequestQueue(){const e=new Map,t=[];this.extensionRequestQueue.forEach(((r,n)=>{e.set(n,r),t.push(n)})),this.extensionRequestQueue.clear(),Zd=null;const r=function(e){return JSON.stringify({request_type:"get_default_application",extension:e})}(t);return this.client.sendRequest(r).then((r=>{if(r&&r.default_application_name){let t=r.default_application_name;"[object Object]"===Object.prototype.toString.call(t)&&(t=[t]),t.forEach((t=>{const r=Object.keys(t)[0],n=decodeURIComponent(t[r]);if(n){const t=e.get(r);t&&(t.resolve(n),e.delete(r))}}))}t.forEach((t=>{const r=e.get(t);r&&r.reject()}))}))}}const rh=th;const nh=class extends El{async ask(e,t){if(!e)throw new Error("Missing prompt!");if(!t||0===t.length)throw new Error("Missing items!");t.forEach((e=>{if(!e.id||!e.type)throw new Error("Invalid item!")}));const r=`${this.getBaseApiUrl()}/ai/ask`;return this.xhr.post({url:r,id:`file_${t[0].id}`,data:{mode:"single_item_qa",prompt:e,items:t}})}};function oh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ih(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oh(Object(r),!0).forEach((function(t){ah(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ah(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const sh=class{constructor(e){this.options=ih(ih({},e),{},{apiHost:e.apiHost||Te,uploadHost:e.uploadHost||Ae,cache:e.cache||new gl,language:e.language})}destroy(e=!1){this.fileAPI&&(this.fileAPI.destroy(),delete this.fileAPI),this.weblinkAPI&&(this.weblinkAPI.destroy(),delete this.weblinkAPI),this.plainUploadAPI&&(this.plainUploadAPI.destroy(),delete this.plainUploadAPI),this.chunkedUploadAPI&&(this.chunkedUploadAPI.destroy(),delete this.chunkedUploadAPI),this.folderAPI&&(this.folderAPI.destroy(),delete this.folderAPI),this.searchAPI&&(this.searchAPI.destroy(),delete this.searchAPI),this.recentsAPI&&(this.recentsAPI.destroy(),delete this.recentsAPI),this.versionsAPI&&(this.versionsAPI.destroy(),delete this.versionsAPI),this.fileAccessStatsAPI&&(this.fileAccessStatsAPI.destroy(),delete this.fileAccessStatsAPI),this.fileActivitiesAPI&&(this.fileActivitiesAPI.destroy(),delete this.fileActivitiesAPI),this.tasksNewAPI&&(this.tasksNewAPI.destroy(),delete this.tasksNewAPI),this.taskCollaboratorsAPI&&(this.taskCollaboratorsAPI.destroy(),delete this.taskCollaboratorsAPI),this.taskLinksAPI&&(this.taskLinksAPI.destroy(),delete this.taskLinksAPI),this.commentsAPI&&(this.commentsAPI.destroy(),delete this.commentsAPI),this.threadedCommentsAPI&&(this.threadedCommentsAPI.destroy(),delete this.threadedCommentsAPI),this.markerBasedGroupsAPI&&(this.markerBasedGroupsAPI.destroy(),delete this.markerBasedGroupsAPI),this.markerBasedUsersAPI&&(this.markerBasedUsersAPI.destroy(),delete this.markerBasedUsersAPI),this.groupsAPI&&(this.groupsAPI.destroy(),delete this.groupsAPI),this.usersAPI&&(this.usersAPI.destroy(),delete this.usersAPI),this.metadataAPI&&(this.metadataAPI.destroy(),delete this.metadataAPI),this.fileCollaboratorsAPI&&(this.fileCollaboratorsAPI.destroy(),delete this.fileCollaboratorsAPI),this.fileCollaborationsAPI&&(this.fileCollaborationsAPI.destroy(),delete this.fileCollaborationsAPI),this.folderCollaborationsAPI&&(this.folderCollaborationsAPI.destroy(),delete this.folderCollaborationsAPI),this.collaborationsAPI&&(this.collaborationsAPI.destroy(),delete this.collaborationsAPI),this.appIntegrationsAPI&&(this.appIntegrationsAPI.destroy(),delete this.appIntegrationsAPI),this.metadataQueryAPI&&(this.metadataQueryAPI.destroy(),delete this.metadataQueryAPI),this.openWithAPI&&(this.openWithAPI.destroy(),delete this.openWithAPI),this.annotationsAPI&&(this.annotationsAPI.destroy(),delete this.annotationsAPI),this.intelligenceAPI&&(this.intelligenceAPI.destroy(),delete this.intelligenceAPI),e&&(this.options.cache=new gl)}getCache(){return this.options.cache}getAPI(e){let t;switch(e){case k:t=this.getFolderAPI();break;case I:t=this.getFileAPI();break;case O:t=this.getWebLinkAPI();break;default:throw new Error("Unknown Type!")}return t}getFileAPI(e=!0){return e&&this.destroy(),this.fileAPI=new Pl(this.options),this.fileAPI}getWebLinkAPI(){return this.destroy(),this.weblinkAPI=new Rl(this.options),this.weblinkAPI}getPlainUploadAPI(){return this.destroy(),this.plainUploadAPI=new bc(this.options),this.plainUploadAPI}getChunkedUploadAPI(){return this.destroy(),this.chunkedUploadAPI=new gc(this.options),this.chunkedUploadAPI}getFolderAPI(){return this.destroy(),this.folderAPI=new Ul(this.options),this.folderAPI}getSearchAPI(){return this.destroy(),this.searchAPI=new wc(this.options),this.searchAPI}getRecentsAPI(){return this.destroy(),this.recentsAPI=new Sc(this.options),this.recentsAPI}getMetadataAPI(e){return e&&this.destroy(),this.metadataAPI=new xu(this.options),this.metadataAPI}getVersionsAPI(e){return e&&this.destroy(),this.versionsAPI=new Nc(this.options),this.versionsAPI}getCommentsAPI(e){return e&&this.destroy(),this.commentsAPI=new Uc(this.options),this.commentsAPI}getThreadedCommentsAPI(e){return e&&this.destroy(),this.threadedCommentsAPI=new fu(this.options),this.threadedCommentsAPI}getTasksNewAPI(e){return e&&this.destroy(),this.tasksNewAPI=new $c(this.options),this.tasksNewAPI}getTaskCollaboratorsAPI(e){return e&&this.destroy(),this.taskCollaboratorsAPI=new Xc(this.options),this.taskCollaboratorsAPI}getTaskLinksAPI(e){return e&&this.destroy(),this.taskLinksAPI=new ru(this.options),this.taskLinksAPI}getFileAccessStatsAPI(e){return e&&this.destroy(),this.fileAccessStatsAPI=new gu(this.options),this.fileAccessStatsAPI}getFileActivitiesAPI(e){return e&&this.destroy(),this.fileActivitiesAPI=new vu(this.options),this.fileActivitiesAPI}getFileCollaboratorsAPI(e){return e&&this.destroy(),this.fileCollaboratorsAPI=new Lu(this.options),this.fileCollaboratorsAPI}getFileCollaborationsAPI(e){return e&&this.destroy(),this.fileCollaborationsAPI=new Uu(this.options),this.fileCollaborationsAPI}getFolderCollaborationsAPI(e){return e&&this.destroy(),this.folderCollaborationsAPI=new Fu(this.options),this.folderCollaborationsAPI}getCollaborationsAPI(e){return e&&this.destroy(),this.collaborationsAPI=new zu(this.options),this.collaborationsAPI}getMarkerBasedGroupsAPI(e){return e&&this.destroy(),this.markerBasedGroupsAPI=new Cu(this.options),this.markerBasedGroupsAPI}getMarkerBasedUsersAPI(e){return e&&this.destroy(),this.markerBasedUsersAPI=new Ou(this.options),this.markerBasedUsersAPI}getGroupsAPI(e){return e&&this.destroy(),this.groupsAPI=new Tu(this.options),this.groupsAPI}getUsersAPI(e){return e&&this.destroy(),this.usersAPI=new Au(this.options),this.usersAPI}getFeedAPI(e){return e&&this.destroy(),this.feedItemsAPI=new ld(this.options),this.feedItemsAPI}getOpenWithAPI(e){return e&&this.destroy(),this.openWithAPI=new ud(this.options),this.openWithAPI}getAppIntegrationsAPI(e){return e&&this.destroy(),this.appIntegrationsAPI=new cd(this.options),this.appIntegrationsAPI}getMetadataQueryAPI(e=!1){return e&&this.destroy(),this.metadataQueryAPI=new hd(this.options),this.metadataQueryAPI}getBoxEditAPI(){return this.boxEditAPI=new rh,this.boxEditAPI}getAnnotationsAPI(e){return e&&this.destroy(),this.annotationsAPI=new Wu(this.options),this.annotationsAPI}getIntelligenceAPI(e){return e&&this.destroy(),this.intelligenceAPI=new nh(this.options),this.intelligenceAPI}},lh=["className"];function ch(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function uh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ch(Object(r),!0).forEach((function(t){dh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ch(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dh(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hh=({dropValidator:r,onDrop:n})=>o=>{var i;return i=class extends e.PureComponent{constructor(e){super(e),dh(this,"removeEventListeners",(e=>{e.removeEventListener("dragenter",this.handleDragEnter),e.removeEventListener("dragover",this.handleDragOver),e.removeEventListener("dragleave",this.handleDragLeave),e.removeEventListener("drop",this.handleDrop)})),dh(this,"bindDragDropHandlers",(()=>{const e=(0,t.findDOMNode)(this);e&&e instanceof Element&&(e.addEventListener("dragenter",this.handleDragEnter),e.addEventListener("dragover",this.handleDragOver),e.addEventListener("dragleave",this.handleDragLeave),e.addEventListener("drop",this.handleDrop),this.droppableEl=e)})),dh(this,"handleDragEnter",(e=>{if(e.preventDefault(),1==++this.enterLeaveCounter){const{dataTransfer:t}=e,n=!r||r(this.props,t);this.setState({isOver:!0,canDrop:n})}})),dh(this,"handleDragOver",(e=>{e.preventDefault();const{canDrop:t}=this.state,{dataTransfer:r}=e;r&&(t?r.effectAllowed&&(r.dropEffect=r.effectAllowed):r.dropEffect="none")})),dh(this,"handleDrop",(e=>{e.preventDefault(),this.enterLeaveCounter=0;const{canDrop:t}=this.state;this.setState({canDrop:!1,isDragging:!1,isOver:!1}),t&&n&&n(e,this.props)})),dh(this,"handleDragLeave",(e=>{e.preventDefault(),--this.enterLeaveCounter>0||this.setState({canDrop:!1,isDragging:!1,isOver:!1})})),this.enterLeaveCounter=0,this.state={canDrop:!1,isDragging:!1,isOver:!1}}componentDidMount(){this.bindDragDropHandlers()}componentDidUpdate(){this.droppableEl?(0,t.findDOMNode)(this)!==this.droppableEl&&(this.removeEventListeners(this.droppableEl),this.bindDragDropHandlers()):this.bindDragDropHandlers()}componentWillUnmount(){this.droppableEl&&this.droppableEl instanceof Element&&this.removeEventListeners(this.droppableEl)}render(){const t=this.props,{className:r}=t,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,lh),{canDrop:i,isOver:a}=this.state,s=qt()(r,{"is-droppable":i,"is-over":a}),l=uh(uh(uh({},n),this.state),{},{className:s});return e.createElement(o,l)}},dh(i,"defaultProps",{className:""}),i};function ph(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=ph(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const fh=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=ph(e))&&(n&&(n+=" "),n+=t);return n};const gh={ASC:"ASC",DESC:"DESC"};function mh(t){var r=t.sortDirection,n=fh("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":r===gh.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":r===gh.DESC});return e.createElement("svg",{className:n,width:18,height:18,viewBox:"0 0 24 24"},r===gh.ASC?e.createElement("path",{d:"M7 14l5-5 5 5z"}):e.createElement("path",{d:"M7 10l5 5 5-5z"}),e.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function bh(e){return bh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bh(e)}function yh(e){var t=function(e,t){if("object"!=bh(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=bh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bh(t)?t:t+""}function vh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yh(n.key),n)}}function _h(e,t,r){return t&&vh(e.prototype,t),r&&vh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eh(e,t){if(t&&("object"==bh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ch(e){return Ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ch(e)}function Sh(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ta(e,t)}function kh(e,t,r){return(t=yh(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ih(e,t,r){return t=Ch(t),Eh(e,Oh()?Reflect.construct(t,r||[],Ch(e).constructor):t.apply(e,r))}function Oh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Oh=function(){return!!e})()}mh.propTypes={};var Th=function(e){function t(){return wh(this,t),Ih(this,t,arguments)}return Sh(t,e),_h(t)}(e.Component);function Ah(e){var t=e.cellCount,r=e.cellSize,n=e.computeMetadataCallback,o=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,s=e.nextScrollToIndex,l=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof r&&"number"!=typeof a||r===a)||(n(o),l>=0&&l===s&&c())}kh(Th,"defaultProps",{cellDataGetter:function(e){var t=e.dataKey,r=e.rowData;return"function"==typeof r.get?r.get(t):r[t]},cellRenderer:function(e){var t=e.cellData;return null==t?"":String(t)},defaultSortDirection:gh.ASC,flexGrow:0,flexShrink:1,headerRenderer:function(t){var r=t.dataKey,n=t.label,o=t.sortBy,i=t.sortDirection,a=o===r,s=[e.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof n?n:null},n)];return a&&s.push(e.createElement(mh,{key:"SortIndicator",sortDirection:i})),s},headerRole:"columnheader",role:"gridcell",style:{}}),Th.propTypes={};var xh=function(){return _h((function e(t){var r=t.cellCount,n=t.cellSizeGetter,o=t.estimatedCellSize;wh(this,e),kh(this,"_cellSizeAndPositionData",{}),kh(this,"_lastMeasuredIndex",-1),kh(this,"_lastBatchedIndex",-1),kh(this,"_cellCount",void 0),kh(this,"_cellSizeGetter",void 0),kh(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=r,this._estimatedCellSize=o}),[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,r=e.estimatedCellSize,n=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=r,this._cellSizeGetter=n}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),r=t.offset+t.size,n=this._lastMeasuredIndex+1;n<=e;n++){var o=this._cellSizeGetter({index:n});if(void 0===o||isNaN(o))throw Error("Invalid size returned for cell ".concat(n," of value ").concat(o));null===o?(this._cellSizeAndPositionData[n]={offset:r,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[n]={offset:r,size:o},r+=o,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,r=void 0===t?"auto":t,n=e.containerSize,o=e.currentOffset,i=e.targetIndex;if(n<=0)return 0;var a,s=this.getSizeAndPositionOfCell(i),l=s.offset,c=l-n+s.size;switch(r){case"start":a=l;break;case"end":a=c;break;case"center":a=l-(n-s.size)/2;break;default:a=Math.max(c,Math.min(l,o))}var u=this.getTotalSize();return Math.max(0,Math.min(u-n,a))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,r=e.offset;if(0===this.getTotalSize())return{};var n=r+t,o=this._findNearestCell(r),i=this.getSizeAndPositionOfCell(o);r=i.offset+i.size;for(var a=o;r<n&&a<this._cellCount-1;)a++,r+=this.getSizeAndPositionOfCell(a).size;return{start:o,stop:a}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,r){for(;t<=e;){var n=t+Math.floor((e-t)/2),o=this.getSizeAndPositionOfCell(n).offset;if(o===r)return n;o<r?t=n+1:o>r&&(e=n-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var r=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=r,r*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),r=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(r,0,e):this._exponentialSearch(r,e)}}])}(),Ph=function(){return"undefined"!=typeof window&&window.chrome?16777100:15e5},Rh=["maxScrollSize"],Nh=function(){return _h((function e(t){var r=t.maxScrollSize,n=void 0===r?Ph():r,o=function(e,t){if(null==e)return{};var r,n,o=ea(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,Rh);wh(this,e),kh(this,"_cellSizeAndPositionManager",void 0),kh(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new xh(o),this._maxScrollSize=n}),[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,r=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:r,totalSize:o});return Math.round(i*(o-n))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,r=void 0===t?"auto":t,n=e.containerSize,o=e.currentOffset,i=e.targetIndex;o=this._safeOffsetToOffset({containerSize:n,offset:o});var a=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n,currentOffset:o,targetIndex:i});return this._offsetToSafeOffset({containerSize:n,offset:a})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,r=e.offset;return r=this._safeOffsetToOffset({containerSize:t,offset:r}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:r})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,r=e.offset,n=e.totalSize;return n<=t?0:r/(n-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,r=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(n===o)return r;var i=this._getOffsetPercentage({containerSize:t,offset:r,totalSize:n});return Math.round(i*(o-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,r=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(n===o)return r;var i=this._getOffsetPercentage({containerSize:t,offset:r,totalSize:o});return Math.round(i*(n-t))}}])}();function Lh(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(r){var n=r.callback,o=r.indices,i=Object.keys(o),a=!e||i.every((function(e){var t=o[e];return Array.isArray(t)?t.length>0:t>=0})),s=i.length!==Object.keys(t).length||i.some((function(e){var r=t[e],n=o[e];return Array.isArray(n)?r.join(",")!==n.join(","):r!==n}));t=o,a&&s&&n(o)}}function Mh(e){var t=e.cellSize,r=e.cellSizeAndPositionManager,n=e.previousCellsCount,o=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,s=e.previousSize,l=e.scrollOffset,c=e.scrollToAlignment,u=e.scrollToIndex,d=e.size,h=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,f=r.getCellCount(),g=u>=0&&u<f;g&&(d!==s||h||!o||"number"==typeof t&&t!==o||c!==i||u!==a)?p(u):!g&&f>0&&(d<s||f<n)&&l>r.getTotalSize()-d&&p(f-1)}const Dh=!("undefined"==typeof window||!window.document||!window.document.createElement);var Uh;var Fh,jh=__nested_webpack_require_646968__(62135),Hh=(Fh="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||Fh.webkitRequestAnimationFrame||Fh.mozRequestAnimationFrame||Fh.oRequestAnimationFrame||Fh.msRequestAnimationFrame||function(e){return Fh.setTimeout(e,1e3/60)},Bh=Fh.cancelAnimationFrame||Fh.webkitCancelAnimationFrame||Fh.mozCancelAnimationFrame||Fh.oCancelAnimationFrame||Fh.msCancelAnimationFrame||function(e){Fh.clearTimeout(e)},zh=Hh,qh=Bh,Kh=function(e){return qh(e.id)};function Vh(){return Vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vh.apply(null,arguments)}function Gh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Wh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gh(Object(r),!0).forEach((function(t){kh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $h(e,t,r){return t=Ch(t),Eh(e,Jh()?Reflect.construct(t,r||[],Ch(e).constructor):t.apply(e,r))}function Jh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Jh=function(){return!!e})()}var Yh="observed",Qh="requested",Xh=function(t){function r(e){var t;wh(this,r),kh(t=$h(this,r,[e]),"_onGridRenderedMemoizer",Lh()),kh(t,"_onScrollMemoizer",Lh(!1)),kh(t,"_deferredInvalidateColumnIndex",null),kh(t,"_deferredInvalidateRowIndex",null),kh(t,"_recomputeScrollLeftFlag",!1),kh(t,"_recomputeScrollTopFlag",!1),kh(t,"_horizontalScrollBarSize",0),kh(t,"_verticalScrollBarSize",0),kh(t,"_scrollbarPresenceChanged",!1),kh(t,"_scrollingContainer",void 0),kh(t,"_childrenToDisplay",void 0),kh(t,"_columnStartIndex",void 0),kh(t,"_columnStopIndex",void 0),kh(t,"_rowStartIndex",void 0),kh(t,"_rowStopIndex",void 0),kh(t,"_renderedColumnStartIndex",0),kh(t,"_renderedColumnStopIndex",0),kh(t,"_renderedRowStartIndex",0),kh(t,"_renderedRowStopIndex",0),kh(t,"_initialScrollTop",void 0),kh(t,"_initialScrollLeft",void 0),kh(t,"_disablePointerEventsTimeoutId",void 0),kh(t,"_styleCache",{}),kh(t,"_cellCache",{}),kh(t,"_debounceScrollEndedCallback",(function(){t._disablePointerEventsTimeoutId=null,t.setState({isScrolling:!1,needToResetStyleCache:!1})})),kh(t,"_invokeOnGridRenderedHelper",(function(){var e=t.props.onSectionRendered;t._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:t._columnStartIndex,columnOverscanStopIndex:t._columnStopIndex,columnStartIndex:t._renderedColumnStartIndex,columnStopIndex:t._renderedColumnStopIndex,rowOverscanStartIndex:t._rowStartIndex,rowOverscanStopIndex:t._rowStopIndex,rowStartIndex:t._renderedRowStartIndex,rowStopIndex:t._renderedRowStopIndex}})})),kh(t,"_setScrollingContainerRef",(function(e){t._scrollingContainer=e})),kh(t,"_onScroll",(function(e){e.target===t._scrollingContainer&&t.handleScrollEvent(e.target)}));var n=new Nh({cellCount:e.columnCount,cellSizeGetter:function(t){return r._wrapSizeGetter(e.columnWidth)(t)},estimatedCellSize:r._getEstimatedColumnSize(e)}),o=new Nh({cellCount:e.rowCount,cellSizeGetter:function(t){return r._wrapSizeGetter(e.rowHeight)(t)},estimatedCellSize:r._getEstimatedRowSize(e)});return t.state={instanceProps:{columnSizeAndPositionManager:n,rowSizeAndPositionManager:o,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:1,scrollDirectionVertical:1,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(t._initialScrollTop=t._getCalculatedScrollTop(e,t.state)),e.scrollToColumn>0&&(t._initialScrollLeft=t._getCalculatedScrollLeft(e,t.state)),t}return Sh(r,t),_h(r,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,r=void 0===t?this.props.scrollToAlignment:t,n=e.columnIndex,o=void 0===n?this.props.scrollToColumn:n,i=e.rowIndex,a=void 0===i?this.props.scrollToRow:i,s=Wh(Wh({},this.props),{},{scrollToAlignment:r,scrollToColumn:o,scrollToRow:a});return{scrollLeft:this._getCalculatedScrollLeft(s),scrollTop:this._getCalculatedScrollTop(s)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,r=void 0===t?0:t,n=e.scrollTop,o=void 0===n?0:n;if(!(o<0)){this._debounceScrollEnded();var i=this.props,a=i.autoHeight,s=i.autoWidth,l=i.height,c=i.width,u=this.state.instanceProps,d=u.scrollbarSize,h=u.rowSizeAndPositionManager.getTotalSize(),p=u.columnSizeAndPositionManager.getTotalSize(),f=Math.min(Math.max(0,p-c+d),r),g=Math.min(Math.max(0,h-l+d),o);if(this.state.scrollLeft!==f||this.state.scrollTop!==g){var m={isScrolling:!0,scrollDirectionHorizontal:f!==this.state.scrollLeft?f>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:g!==this.state.scrollTop?g>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:Yh};a||(m.scrollTop=g),s||(m.scrollLeft=f),m.needToResetStyleCache=!1,this.setState(m)}this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:g,totalColumnsWidth:p,totalRowsHeight:h})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,r=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,r=e.rowCount,n=this.state.instanceProps;n.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),n.rowSizeAndPositionManager.getSizeAndPositionOfCell(r-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,r=void 0===t?0:t,n=e.rowIndex,o=void 0===n?0:n,i=this.props,a=i.scrollToColumn,s=i.scrollToRow,l=this.state.instanceProps;l.columnSizeAndPositionManager.resetCell(r),l.rowSizeAndPositionManager.resetCell(o),this._recomputeScrollLeftFlag=a>=0&&(1===this.state.scrollDirectionHorizontal?r<=a:r>=a),this._recomputeScrollTopFlag=s>=0&&(1===this.state.scrollDirectionVertical?o<=s:o>=s),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,r=e.rowIndex,n=this.props.columnCount,o=this.props;n>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(Wh(Wh({},o),{},{scrollToColumn:t})),void 0!==r&&this._updateScrollTopForScrollToRow(Wh(Wh({},o),{},{scrollToRow:r}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.height,o=e.scrollLeft,i=e.scrollToColumn,a=e.scrollTop,s=e.scrollToRow,l=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var r=Wh(Wh({},e),{},{needToResetStyleCache:!1});return r.instanceProps.scrollbarSize=t(),r.instanceProps.scrollbarSizeMeasured=!0,r})),"number"==typeof o&&o>=0||"number"==typeof a&&a>=0){var u=r._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:a});u&&(u.needToResetStyleCache=!1,this.setState(u))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var d=n>0&&l>0;i>=0&&d&&this._updateScrollLeftForScrollToColumn(),s>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:a||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var r=this,n=this.props,o=n.autoHeight,i=n.autoWidth,a=n.columnCount,s=n.height,l=n.rowCount,c=n.scrollToAlignment,u=n.scrollToColumn,d=n.scrollToRow,h=n.width,p=this.state,f=p.scrollLeft,g=p.scrollPositionChangeReason,m=p.scrollTop,b=p.instanceProps;this._handleInvalidatedGridSize();var y=a>0&&0===e.columnCount||l>0&&0===e.rowCount;g===Qh&&(!i&&f>=0&&(f!==this._scrollingContainer.scrollLeft||y)&&(this._scrollingContainer.scrollLeft=f),!o&&m>=0&&(m!==this._scrollingContainer.scrollTop||y)&&(this._scrollingContainer.scrollTop=m));var v=(0===e.width||0===e.height)&&s>0&&h>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):Mh({cellSizeAndPositionManager:b.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:f,scrollToAlignment:c,scrollToIndex:u,size:h,sizeJustIncreasedFromZero:v,updateScrollIndexCallback:function(){return r._updateScrollLeftForScrollToColumn(r.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):Mh({cellSizeAndPositionManager:b.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:m,scrollToAlignment:c,scrollToIndex:d,size:s,sizeJustIncreasedFromZero:v,updateScrollIndexCallback:function(){return r._updateScrollTopForScrollToRow(r.props)}}),this._invokeOnGridRenderedHelper(),f!==t.scrollLeft||m!==t.scrollTop){var _=b.rowSizeAndPositionManager.getTotalSize(),w=b.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:m,totalColumnsWidth:w,totalRowsHeight:_})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&Kh(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var t=this.props,r=t.autoContainerWidth,n=t.autoHeight,o=t.autoWidth,i=t.className,a=t.containerProps,s=t.containerRole,l=t.containerStyle,c=t.height,u=t.id,d=t.noContentRenderer,h=t.role,p=t.style,f=t.tabIndex,g=t.width,m=this.state,b=m.instanceProps,y=m.needToResetStyleCache,v=this._isScrolling(),_={boxSizing:"border-box",direction:"ltr",height:n?"auto":c,position:"relative",width:o?"auto":g,WebkitOverflowScrolling:"touch",willChange:"transform"};y&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var w=b.columnSizeAndPositionManager.getTotalSize(),E=b.rowSizeAndPositionManager.getTotalSize(),C=E>c?b.scrollbarSize:0,S=w>g?b.scrollbarSize:0;S===this._horizontalScrollBarSize&&C===this._verticalScrollBarSize||(this._horizontalScrollBarSize=S,this._verticalScrollBarSize=C,this._scrollbarPresenceChanged=!0),_.overflowX=w+C<=g?"hidden":"auto",_.overflowY=E+S<=c?"hidden":"auto";var k=this._childrenToDisplay,I=0===k.length&&c>0&&g>0;return e.createElement("div",Zi({ref:this._setScrollingContainerRef},a,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:fh("ReactVirtualized__Grid",i),id:u,onScroll:this._onScroll,role:h,style:Wh(Wh({},_),p),tabIndex:f}),k.length>0&&e.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:s,style:Wh({width:r?"auto":w,height:E,maxWidth:w,maxHeight:E,overflow:"hidden",pointerEvents:v?"none":"",position:"relative"},l)},k),I&&d())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=e.cellRenderer,n=e.cellRangeRenderer,o=e.columnCount,i=e.deferredMeasurementCache,a=e.height,s=e.overscanColumnCount,l=e.overscanIndicesGetter,c=e.overscanRowCount,u=e.rowCount,d=e.width,h=e.isScrollingOptOut,p=t.scrollDirectionHorizontal,f=t.scrollDirectionVertical,g=t.instanceProps,m=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,b=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,y=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&d>0){var v=g.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:b}),_=g.rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:m}),w=g.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:b}),E=g.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:m});this._renderedColumnStartIndex=v.start,this._renderedColumnStopIndex=v.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var C=l({direction:"horizontal",cellCount:o,overscanCellsCount:s,scrollDirection:p,startIndex:"number"==typeof v.start?v.start:0,stopIndex:"number"==typeof v.stop?v.stop:-1}),S=l({direction:"vertical",cellCount:u,overscanCellsCount:c,scrollDirection:f,startIndex:"number"==typeof _.start?_.start:0,stopIndex:"number"==typeof _.stop?_.stop:-1}),k=C.overscanStartIndex,I=C.overscanStopIndex,O=S.overscanStartIndex,T=S.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var A=O;A<=T;A++)if(!i.has(A,0)){k=0,I=o-1;break}if(!i.hasFixedWidth())for(var x=k;x<=I;x++)if(!i.has(0,x)){O=0,T=u-1;break}}this._childrenToDisplay=n({cellCache:this._cellCache,cellRenderer:r,columnSizeAndPositionManager:g.columnSizeAndPositionManager,columnStartIndex:k,columnStopIndex:I,deferredMeasurementCache:i,horizontalOffsetAdjustment:w,isScrolling:y,isScrollingOptOut:h,parent:this,rowSizeAndPositionManager:g.rowSizeAndPositionManager,rowStartIndex:O,rowStopIndex:T,scrollLeft:b,scrollTop:m,styleCache:this._styleCache,verticalOffsetAdjustment:E,visibleColumnIndices:v,visibleRowIndices:_}),this._columnStartIndex=k,this._columnStopIndex=I,this._rowStartIndex=O,this._rowStopIndex=T}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&Kh(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=function(e,t){var r;Promise.resolve().then((function(){r=Date.now()}));var n={id:zh((function o(){Date.now()-r>=t?e.call():n.id=zh(o)}))};return n}(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,r=e.scrollLeft,n=e.scrollTop,o=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var r=e.scrollLeft,n=e.scrollTop,a=t.props,s=a.height;(0,a.onScroll)({clientHeight:s,clientWidth:a.width,scrollHeight:i,scrollLeft:r,scrollTop:n,scrollWidth:o})},indices:{scrollLeft:r,scrollTop:n}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o=r._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:t,scrollTop:n});o&&(o.needToResetStyleCache=!1,this.setState(o))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return r._getCalculatedScrollLeft(e,t)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=r._getScrollLeftForScrollToColumnStateUpdate(e,t);n&&(n.needToResetStyleCache=!1,this.setState(n))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return r._getCalculatedScrollTop(e,t)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,r=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var n=this._rowStartIndex;n<=this._rowStopIndex;n++)for(var o=this._columnStartIndex;o<=this._columnStopIndex;o++){var i="".concat(n,"-").concat(o);this._styleCache[i]=e[i],r&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=r._getScrollTopForScrollToRowStateUpdate(e,t);n&&(n.needToResetStyleCache=!1,this.setState(n))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};0===e.columnCount&&0!==t.scrollLeft||0===e.rowCount&&0!==t.scrollTop?(n.scrollLeft=0,n.scrollTop=0):(e.scrollLeft!==t.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==t.scrollTop&&e.scrollToRow<0)&&Vh(n,r._getScrollToPositionStateUpdate({prevState:t,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var o,i,a=t.instanceProps;return n.needToResetStyleCache=!1,e.columnWidth===a.prevColumnWidth&&e.rowHeight===a.prevRowHeight||(n.needToResetStyleCache=!0),a.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:r._getEstimatedColumnSize(e),cellSizeGetter:r._wrapSizeGetter(e.columnWidth)}),a.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:r._getEstimatedRowSize(e),cellSizeGetter:r._wrapSizeGetter(e.rowHeight)}),0!==a.prevColumnCount&&0!==a.prevRowCount||(a.prevColumnCount=0,a.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===a.prevIsScrolling&&Vh(n,{isScrolling:!1}),Ah({cellCount:a.prevColumnCount,cellSize:"number"==typeof a.prevColumnWidth?a.prevColumnWidth:null,computeMetadataCallback:function(){return a.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:a.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){o=r._getScrollLeftForScrollToColumnStateUpdate(e,t)}}),Ah({cellCount:a.prevRowCount,cellSize:"number"==typeof a.prevRowHeight?a.prevRowHeight:null,computeMetadataCallback:function(){return a.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:a.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){i=r._getScrollTopForScrollToRowStateUpdate(e,t)}}),a.prevColumnCount=e.columnCount,a.prevColumnWidth=e.columnWidth,a.prevIsScrolling=!0===e.isScrolling,a.prevRowCount=e.rowCount,a.prevRowHeight=e.rowHeight,a.prevScrollToColumn=e.scrollToColumn,a.prevScrollToRow=e.scrollToRow,a.scrollbarSize=e.getScrollbarSize(),void 0===a.scrollbarSize?(a.scrollbarSizeMeasured=!1,a.scrollbarSize=0):a.scrollbarSizeMeasured=!0,n.instanceProps=a,Wh(Wh(Wh({},n),o),i)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,r=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:Qh};return"number"==typeof r&&r>=0&&(o.scrollDirectionHorizontal=r>t.scrollLeft?1:-1,o.scrollLeft=r),"number"==typeof n&&n>=0&&(o.scrollDirectionVertical=n>t.scrollTop?1:-1,o.scrollTop=n),"number"==typeof r&&r>=0&&r!==t.scrollLeft||"number"==typeof n&&n>=0&&n!==t.scrollTop?o:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var r=e.columnCount,n=e.height,o=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,s=t.scrollLeft,l=t.instanceProps;if(r>0){var c=r-1,u=i<0?c:Math.min(c,i),d=l.rowSizeAndPositionManager.getTotalSize(),h=l.scrollbarSizeMeasured&&d>n?l.scrollbarSize:0;return l.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:a-h,currentOffset:s,targetIndex:u})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,t){var n=t.scrollLeft,o=r._getCalculatedScrollLeft(e,t);return"number"==typeof o&&o>=0&&n!==o?r._getScrollToPositionStateUpdate({prevState:t,scrollLeft:o,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var r=e.height,n=e.rowCount,o=e.scrollToAlignment,i=e.scrollToRow,a=e.width,s=t.scrollTop,l=t.instanceProps;if(n>0){var c=n-1,u=i<0?c:Math.min(c,i),d=l.columnSizeAndPositionManager.getTotalSize(),h=l.scrollbarSizeMeasured&&d>a?l.scrollbarSize:0;return l.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:r-h,currentOffset:s,targetIndex:u})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,t){var n=t.scrollTop,o=r._getCalculatedScrollTop(e,t);return"number"==typeof o&&o>=0&&n!==o?r._getScrollToPositionStateUpdate({prevState:t,scrollLeft:-1,scrollTop:o}):{}}}])}(e.PureComponent);kh(Xh,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(t){for(var r=t.cellCache,n=t.cellRenderer,o=t.columnSizeAndPositionManager,i=t.columnStartIndex,a=t.columnStopIndex,s=t.deferredMeasurementCache,l=t.horizontalOffsetAdjustment,c=t.isScrolling,u=t.isScrollingOptOut,d=t.parent,h=t.rowSizeAndPositionManager,p=t.rowStartIndex,f=t.rowStopIndex,g=t.styleCache,m=t.verticalOffsetAdjustment,b=t.visibleColumnIndices,y=t.visibleRowIndices,v=[],_=o.areOffsetsAdjusted()||h.areOffsetsAdjusted(),w=!c&&!_,E=p;E<=f;E++)for(var C=h.getSizeAndPositionOfCell(E),S=i;S<=a;S++){var k=o.getSizeAndPositionOfCell(S),I=S>=b.start&&S<=b.stop&&E>=y.start&&E<=y.stop,O="".concat(E,"-").concat(S),T=void 0;w&&g[O]?T=g[O]:s&&!s.has(E,S)?T={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(T={height:C.size,left:k.offset+l,position:"absolute",top:C.offset+m,width:k.size},g[O]=T);var A={columnIndex:S,isScrolling:c,isVisible:I,key:O,parent:d,rowIndex:E,style:T},x=void 0;!u&&!c||l||m?x=n(A):(r[O]||(r[O]=n(A)),x=r[O]),null!=x&&!1!==x&&(x.props.role||(x=e.cloneElement(x,{role:"gridcell"})),v.push(x))}return v},containerRole:"row",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:function(e){if((!Uh&&0!==Uh||e)&&Dh){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Uh=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Uh},noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return 1===n?{overscanStartIndex:Math.max(0,o),overscanStopIndex:Math.min(t-1,i+r)}:{overscanStartIndex:Math.max(0,o-r),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),(0,jh.polyfill)(Xh);const Zh=Xh;function ep(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ep(Object(r),!0).forEach((function(t){kh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ep(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rp(e,t,r){return t=Ch(t),Eh(e,np()?Reflect.construct(t,r||[],Ch(e).constructor):t.apply(e,r))}function np(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(np=function(){return!!e})()}var op=function(r){function n(e){var t;return wh(this,n),(t=rp(this,n,[e])).state={scrollbarWidth:0},t._createColumn=t._createColumn.bind(t),t._createRow=t._createRow.bind(t),t._onScroll=t._onScroll.bind(t),t._onSectionRendered=t._onSectionRendered.bind(t),t._setRef=t._setRef.bind(t),t}return Sh(n,r),_h(n,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,r=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:r}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,r=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:r,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,r=void 0===t?0:t,n=e.rowIndex,o=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:r})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=(0,t.findDOMNode)(this.Grid),r=e.clientWidth||0;return(e.offsetWidth||0)-r}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var t=this,r=this.props,n=r.children,o=r.className,i=r.disableHeader,a=r.gridClassName,s=r.gridContainerRole,l=r.gridStyle,c=r.headerHeight,u=r.headerRowRenderer,d=r.height,h=r.id,p=r.noRowsRenderer,f=r.role,g=r.rowClassName,m=r.rowStyle,b=r.scrollToIndex,y=r.style,v=r.width,_=this.state.scrollbarWidth,w=i?d:d-c,E="function"==typeof g?g({index:-1}):g,C="function"==typeof m?m({index:-1}):m;return this._cachedColumnStyles=[],e.Children.toArray(n).forEach((function(e,r){var n=t._getFlexStyleForColumn(e,e.props.style);t._cachedColumnStyles[r]=tp({overflow:"hidden"},n)})),e.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":e.Children.toArray(n).length,"aria-rowcount":this.props.rowCount,className:fh("ReactVirtualized__Table",o),id:h,role:f,style:y},!i&&u({className:fh("ReactVirtualized__Table__headerRow",E),columns:this._getHeaderColumns(),style:tp({height:c,overflow:"hidden",paddingRight:_,width:v},C)}),e.createElement(Zh,Zi({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:fh("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:v,columnCount:1,containerRole:s,height:w,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:_,scrollToRow:b,style:tp(tp({},l),{},{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(t){var r=t.column,n=t.columnIndex,o=t.isScrolling,i=t.parent,a=t.rowData,s=t.rowIndex,l=this.props.onColumnClick,c=r.props,u=c.cellDataGetter,d=c.cellRenderer,h=c.className,p=c.columnData,f=c.dataKey,g=c.id,m=c.role,b=d({cellData:u({columnData:p,dataKey:f,rowData:a}),columnData:p,columnIndex:n,dataKey:f,isScrolling:o,parent:i,rowData:a,rowIndex:s}),y=this._cachedColumnStyles[n],v="string"==typeof b?b:null;return e.createElement("div",{"aria-colindex":n+1,"aria-describedby":g,className:fh("ReactVirtualized__Table__rowColumn",h),key:"Row"+s+"-Col"+n,onClick:function(e){l&&l({columnData:p,dataKey:f,event:e})},role:m,style:y,title:v},b)}},{key:"_createHeader",value:function(t){var r,n,o,i,a=t.column,s=t.index,l=this.props,c=l.headerClassName,u=l.headerStyle,d=l.onHeaderClick,h=l.sort,p=l.sortBy,f=l.sortDirection,g=a.props,m=g.columnData,b=g.dataKey,y=g.defaultSortDirection,v=g.disableSort,_=g.headerRenderer,w=g.headerRole,E=g.id,C=g.label,S=g.preventAriaLabel,k=!v&&h,I=fh("ReactVirtualized__Table__headerColumn",c,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:k}),O=this._getFlexStyleForColumn(a,tp(tp({},u),a.props.headerStyle)),T=_({columnData:m,dataKey:b,disableSort:v,label:C,sortBy:p,sortDirection:f}),A=S?void 0:a.props["aria-label"]||C||b;if(k||d){var x;x=p!==b?y:f===gh.DESC?gh.ASC:gh.DESC;var P=function(e){k&&h({defaultSortDirection:y,event:e,sortBy:b,sortDirection:x}),d&&d({columnData:m,dataKey:b,event:e})};i="none",o=0,r=P,n=function(e){"Enter"!==e.key&&" "!==e.key||P(e)}}return p===b&&(i=f===gh.ASC?"ascending":"descending"),e.createElement("div",{"aria-label":A,"aria-sort":i,className:I,id:E,key:"Header-Col"+s,onClick:r,onKeyDown:n,role:w,style:O,tabIndex:o},T)}},{key:"_createRow",value:function(t){var r=this,n=t.rowIndex,o=t.isScrolling,i=t.key,a=t.parent,s=t.style,l=this.props,c=l.children,u=l.onRowClick,d=l.onRowDoubleClick,h=l.onRowRightClick,p=l.onRowMouseOver,f=l.onRowMouseOut,g=l.rowClassName,m=l.rowGetter,b=l.rowRenderer,y=l.rowStyle,v=this.state.scrollbarWidth,_="function"==typeof g?g({index:n}):g,w="function"==typeof y?y({index:n}):y,E=m({index:n}),C=e.Children.toArray(c).map((function(e,t){return r._createColumn({column:e,columnIndex:t,isScrolling:o,parent:a,rowData:E,rowIndex:n,scrollbarWidth:v})})),S=fh("ReactVirtualized__Table__row",_),k=tp(tp({},s),{},{height:this._getRowHeight(n),overflow:"hidden",paddingRight:v},w);return b({className:S,columns:C,index:n,isScrolling:o,key:i,onRowClick:u,onRowDoubleClick:d,onRowRightClick:h,onRowMouseOver:p,onRowMouseOut:f,rowData:E,style:k})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),n=tp(tp({},t),{},{flex:r,msFlex:r,WebkitFlex:r});return e.props.maxWidth&&(n.maxWidth=e.props.maxWidth),e.props.minWidth&&(n.minWidth=e.props.minWidth),n}},{key:"_getHeaderColumns",value:function(){var t=this,r=this.props,n=r.children;return(r.disableHeader?[]:e.Children.toArray(n)).map((function(e,r){return t._createHeader({column:e,index:r})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,r=e.scrollHeight,n=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:r,scrollTop:n})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,r=e.rowOverscanStopIndex,n=e.rowStartIndex,o=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:r,startIndex:n,stopIndex:o})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}])}(e.PureComponent);kh(op,"defaultProps",{disableHeader:!1,estimatedRowSize:30,gridContainerRole:"",headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:function(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return r=Math.max(1,r),1===n?{overscanStartIndex:Math.max(0,o-1),overscanStopIndex:Math.min(t-1,i+r)}:{overscanStartIndex:Math.max(0,o-r),overscanStopIndex:Math.min(t-1,i+1)}},overscanRowCount:10,role:"grid",rowRenderer:function(t){var r=t.className,n=t.columns,o=t.index,i=t.key,a=t.onRowClick,s=t.onRowDoubleClick,l=t.onRowMouseOut,c=t.onRowMouseOver,u=t.onRowRightClick,d=t.rowData,h=t.style,p={"aria-rowindex":o+1};return(a||s||l||c||u)&&(p.tabIndex=0,a&&(p.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(p.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),l&&(p.onMouseOut=function(e){return l({event:e,index:o,rowData:d})}),c&&(p.onMouseOver=function(e){return c({event:e,index:o,rowData:d})}),u&&(p.onContextMenu=function(e){return u({event:e,index:o,rowData:d})})),e.createElement("div",Zi({},p,{className:r,key:i,role:"row",style:h}),n)},headerRowRenderer:function(t){var r=t.className,n=t.columns,o=t.style;return e.createElement("div",{role:"rowgroup",className:"ReactVirtualized__Table__headerRowGroup"},e.createElement("div",{className:r,role:"row",style:o},n))},rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),op.propTypes={};function ip(e,t){var r,n=void 0!==(r=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:__nested_webpack_require_646968__.g).document&&r.document.attachEvent;if(!n){var o=function(){var e=r.requestAnimationFrame||r.mozRequestAnimationFrame||r.webkitRequestAnimationFrame||function(e){return r.setTimeout(e,20)};return function(t){return e(t)}}(),i=function(){var e=r.cancelAnimationFrame||r.mozCancelAnimationFrame||r.webkitCancelAnimationFrame||r.clearTimeout;return function(t){return e(t)}}(),a=function(e){var t=e.__resizeTriggers__,r=t.firstElementChild,n=t.lastElementChild,o=r.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,o.style.width=r.offsetWidth+1+"px",o.style.height=r.offsetHeight+1+"px",r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight},s=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;a(this),this.__resizeRAF__&&i(this.__resizeRAF__),this.__resizeRAF__=o((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(r){r.call(t,e)})))}))}},l=!1,c="",u="animationstart",d="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p=r.document.createElement("fakeelement");if(void 0!==p.style.animationName&&(l=!0),!1===l)for(var f=0;f<d.length;f++)if(void 0!==p.style[d[f]+"AnimationName"]){c="-"+d[f].toLowerCase()+"-",u=h[f],l=!0;break}var g="resizeanim",m="@"+c+"keyframes "+g+" { from { opacity: 0; } to { opacity: 0; } } ",b=c+"animation: 1ms "+g+"; "}return{addResizeListener:function(t,o){if(n)t.attachEvent("onresize",o);else{if(!t.__resizeTriggers__){var i=t.ownerDocument,l=r.getComputedStyle(t);l&&"static"==l.position&&(t.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var r=(m||"")+".resize-triggers { "+(b||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',n=t.head||t.getElementsByTagName("head")[0],o=t.createElement("style");o.id="detectElementResize",o.type="text/css",null!=e&&o.setAttribute("nonce",e),o.styleSheet?o.styleSheet.cssText=r:o.appendChild(t.createTextNode(r)),n.appendChild(o)}}(i),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=i.createElement("div")).className="resize-triggers";var c=i.createElement("div");c.className="expand-trigger",c.appendChild(i.createElement("div"));var d=i.createElement("div");d.className="contract-trigger",t.__resizeTriggers__.appendChild(c),t.__resizeTriggers__.appendChild(d),t.appendChild(t.__resizeTriggers__),a(t),t.addEventListener("scroll",s,!0),u&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==g&&a(t)},t.__resizeTriggers__.addEventListener(u,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(o)}},removeResizeListener:function(e,t){if(n)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}function ap(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ap(Object(r),!0).forEach((function(t){kh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ap(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function lp(e,t,r){return t=Ch(t),Eh(e,cp()?Reflect.construct(t,r||[],Ch(e).constructor):t.apply(e,r))}function cp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cp=function(){return!!e})()}var up=function(t){function r(){var e;wh(this,r);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return kh(e=lp(this,r,[].concat(n)),"state",{height:e.props.defaultHeight||0,width:e.props.defaultWidth||0}),kh(e,"_parentNode",void 0),kh(e,"_autoSizer",void 0),kh(e,"_window",void 0),kh(e,"_detectElementResize",void 0),kh(e,"_onResize",(function(){var t=e.props,r=t.disableHeight,n=t.disableWidth,o=t.onResize;if(e._parentNode){var i=e._parentNode.offsetHeight||0,a=e._parentNode.offsetWidth||0,s=(e._window||window).getComputedStyle(e._parentNode)||{},l=parseInt(s.paddingLeft,10)||0,c=parseInt(s.paddingRight,10)||0,u=parseInt(s.paddingTop,10)||0,d=parseInt(s.paddingBottom,10)||0,h=i-u-d,p=a-l-c;(!r&&e.state.height!==h||!n&&e.state.width!==p)&&(e.setState({height:i-u-d,width:a-l-c}),o({height:i,width:a}))}})),kh(e,"_setRef",(function(t){e._autoSizer=t})),e}return Sh(r,t),_h(r,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=ip(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var t=this.props,r=t.children,n=t.className,o=t.disableHeight,i=t.disableWidth,a=t.style,s=this.state,l=s.height,c=s.width,u={overflow:"visible"},d={};return o||(u.height=0,d.height=l),i||(u.width=0,d.width=c),e.createElement("div",{className:n,ref:this._setRef,style:sp(sp({},u),a)},r(d))}}])}(e.Component);kh(up,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});const dp=t=>{const{children:r,className:n="",topLeft:o=null,topRight:i=null,bottomLeft:a=null,bottomRight:s=null}=t;return e.createElement("div",{className:qt()("badgeable-container",n)},r,e.createElement("div",{className:"badges"},o&&e.createElement("div",{className:"top-left-badge"},o),i&&e.createElement("div",{className:"top-right-badge"},i),a&&e.createElement("div",{className:"bottom-left-badge"},a),s&&e.createElement("div",{className:"bottom-right-badge"},s)))};function hp(){return hp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hp.apply(null,arguments)}function pp(){return pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pp.apply(null,arguments)}function fp(){return fp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fp.apply(null,arguments)}function gp(){return gp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gp.apply(null,arguments)}function mp(){return mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mp.apply(null,arguments)}function bp(){return bp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bp.apply(null,arguments)}function yp(){return yp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yp.apply(null,arguments)}function vp(){return vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vp.apply(null,arguments)}function _p(){return _p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_p.apply(null,arguments)}function wp(){return wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wp.apply(null,arguments)}function Ep(){return Ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ep.apply(null,arguments)}function Cp(){return Cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cp.apply(null,arguments)}function Sp(){return Sp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sp.apply(null,arguments)}function kp(){return kp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kp.apply(null,arguments)}function Ip(){return Ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ip.apply(null,arguments)}function Op(){return Op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Op.apply(null,arguments)}function Tp(){return Tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tp.apply(null,arguments)}function Ap(){return Ap=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ap.apply(null,arguments)}function xp(){return xp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xp.apply(null,arguments)}function Pp(){return Pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pp.apply(null,arguments)}function Rp(){return Rp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rp.apply(null,arguments)}function Np(){return Np=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Np.apply(null,arguments)}const Lp=t=>e.createElement(mi,Np({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:no,fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:ro,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:ro,d:"M17.5 21c.245 0 .45.183.492.412L18 21.5c0 .276-.23.5-.5.5h-7a.505.505 0 01-.5-.5c0-.276.23-.5.5-.5h7zm4-3c.245 0 .45.183.492.412L22 18.5c0 .276-.229.5-.5.5h-11a.505.505 0 01-.5-.5c0-.276.229-.5.5-.5h11zm-1.001-3c.246 0 .45.183.493.412L21 15.5c0 .276-.23.5-.501.5H10.5a.506.506 0 01-.501-.5c0-.276.23-.5.501-.5h10z"})));function Mp(){return Mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mp.apply(null,arguments)}function Dp(){return Dp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dp.apply(null,arguments)}function Up(){return Up=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Up.apply(null,arguments)}function Fp(){return Fp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fp.apply(null,arguments)}function jp(){return jp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jp.apply(null,arguments)}function Hp(){return Hp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hp.apply(null,arguments)}function Bp(){return Bp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bp.apply(null,arguments)}const zp={IconFileAudio:t=>e.createElement(mi,hp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#9f3fed",d:"M9 3h9.172a2 2 0 011.414.586l5.83 5.828A2 2 0 0126 10.83V26a3 3 0 01-3 3H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:ro,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:ro,d:"M18.75 17h-5.5a.25.25 0 00-.25.25v4.25a1.5 1.5 0 11-1.5-1.5.9.9 0 01.5.1v-6.35a.75.75 0 01.75-.75h6.5a.75.75 0 01.75.75v7.75a1.5 1.5 0 11-1.5-1.5.9.9 0 01.5.1v-2.85a.25.25 0 00-.25-.25zm-5.5-1h5.5a.25.25 0 00.25-.25V14.5a.5.5 0 00-.5-.5h-5a.5.5 0 00-.5.5v1.25c0 .138.112.25.25.25z"}))),IconFileBoxCanvas:t=>e.createElement(mi,pp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("path",{d:"M9 3h9.585a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26a3 3 0 01-3 3H9a3 3 0 01-3-3V6a3 3 0 013-3z",fill:"#f1811a"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 15.5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm3.729 4.521c.125-.016.44-.059.912.059l.09.022c.674.164 2.394.583 4.48 2.218.196.167.697.602.78.675.038.034.214.211.411.41.24.242.51.515.6.598V26a65.511 65.511 0 01-1.164-1.172c-.521-.541-.876-.87-1.345-1.3-.469-.43-1.733-1.361-2.488-1.675-.756-.313-1.08-.444-1.398-.49l.007.021a1.28 1.28 0 00.068.172c.016.034.028.06.039.104l.238.524.031.067.009.02.006.012.01.026.183.422c.266.613.465 1.108.594 1.473.177.502.27.925.153 1.285-.116.36-.398.508-.754.508-.537 0-1.303-.421-1.543-.567l-.086-.052a7.211 7.211 0 01-.621-.413c-.327-.234-.444-.362-.53-.455a2.335 2.335 0 00-.045-.049c-.094-.097-.319-.333-.359-.657-.023-.183.001-.398.107-.55.062-.088.16-.215.44-.25a.649.649 0 01.436.133c.051.036.151.137.27.255a6.17 6.17 0 00.608.555c.203.166.445.364.603.425-.032-.072-.09-.195-.147-.318v-.001a18.603 18.603 0 01-.137-.297 11.247 11.247 0 00-.194-.41c-.333-.684-.663-1.381-.807-1.814l-.024-.073c-.13-.387-.205-.612-.129-.884.052-.185.111-.32.337-.438.09-.047.23-.098.348-.113l.01-.002zm.71-6.778l2.483 3.974a.511.511 0 01-.44.783h-4.966a.515.515 0 01-.44-.783l2.484-3.974a.519.519 0 01.878 0zm-9.44 7.579c0-.454.368-.822.822-.822h3.356c.454 0 .822.368.822.822v3.356a.822.822 0 01-.822.822h-3.356a.822.822 0 01-.822-.822v-3.356z",fill:"#fff"}),e.createElement("path",{opacity:.5,d:"M19.285 3.286l6.421 6.421a1 1 0 01.204.293h-4.911a2 2 0 01-1.995-1.85L19 8V3.09a1 1 0 01.286.196z",fill:"#fff"})),IconFileBoxNote:t=>e.createElement(mi,fp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:ao,fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:ro,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:"#9725DD",d:"M18.526 14.146l-.92 1.375h-6.92a.685.685 0 01-.686-.688c0-.38.31-.687.687-.687h7.839z"}),e.createElement("path",{fill:no,d:"M16.379 17.583l-.92 1.375h-4.762a.69.69 0 01-.697-.687c0-.38.31-.688.697-.688h5.682z"}),e.createElement("path",{fill:"#00C8C0",d:"M14.231 21.02l-.424.637a2.166 2.166 0 00-.229.493l-.031.118-.028.127H10.69a.687.687 0 110-1.374h3.541z"}),e.createElement("path",{fill:"#000",d:"M14.841 21.332l4.64-6.72.053.092c.074.114.235.322.538.541.456.329.797.374.797.374l-4.64 6.72a2.558 2.558 0 01-.461.483l-1.373 1.037c-.146.11-.234.054-.193-.14l.372-1.764c.04-.187.156-.46.267-.623zm6.648-8.163c.373.272.407.704.407.704a3.57 3.57 0 01-.314.607l-.28.417-.09-.016a1.714 1.714 0 01-.632-.282c-.35-.255-.628-.687-.628-.687l.28-.418c.106-.158.284-.397.448-.51l.074-.009c.14-.012.456-.01.735.194z"}))),IconFileCode:t=>e.createElement(mi,gp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#E33D55",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:ro,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:ro,d:"M17.553 13.776a.5.5 0 01.894.448l-4 8a.5.5 0 01-.894-.448zm-4.83 1.808a.5.5 0 11.554.832L10.901 18l2.376 1.584a.5.5 0 11-.554.832l-3-2a.5.5 0 010-.832zm6.554 0l3 2a.5.5 0 010 .832l-3 2a.5.5 0 11-.554-.832L21.099 18l-2.376-1.584a.5.5 0 01.554-.832z"}))),IconFileDefault:t=>e.createElement(mi,mp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:ao,d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:ro,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}))),IconFileDocument:Lp,IconFileDwg:t=>e.createElement(mi,bp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#009AED",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:ro,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:ro,d:"M18 18v-2h-2v-4h-1v4h-2v2H9v1h4v2h2v4h1v-4h2v-2h4v-1h-4zm-1 2h-3v-3h3v3z"}))),IconFileExcelSpreadsheet:t=>e.createElement(mi,yp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#107C41",d:"M9 3h9.586c.265 0 .52.105.707.293l6.415 6.414a1 1 0 01.293.707V26A3.002 3.002 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:"#87BDA0",d:"M19.286 3.286l6.422 6.421a.994.994 0 01.203.293H21a2.001 2.001 0 01-1.995-1.85L19 8V3.09c.105.048.202.114.286.196z"}),e.createElement("path",{fill:ro,d:"M20.25 25a.748.748 0 00.75-.75v-10.5a.748.748 0 00-.75-.75H12a.748.748 0 00-.75.75v1.5h-1.5A.748.748 0 009 16v6a.748.748 0 00.75.75h1.5v1.5A.748.748 0 0012 25h8.25zm-4.5-9.75H12v-1.5h3.75v1.5zm4.5 0H16.5v-1.5h3.75v1.5zm0 3H16.5V16h3.75v2.25zm-8.344 3.188h-1.511l1.582-2.45-1.442-2.425h1.518l.756 1.494.82-1.494h1.43l-1.483 2.42 1.518 2.454H13.6l-.838-1.564-.856 1.564zm8.344-.188H16.5V19h3.75v2.25zm0 3H16.5V22h3.75v2.25zm-4.5 0H12v-1.5h3.75v1.5z"}))),IconFileGoogleDocs:t=>e.createElement(mi,vp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"#4083F7",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:ro,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:ro,d:"M16 23v1h-6v-1h6zm5-3v1H10v-1h11zm0-3v1H10v-1h11zm0-3v1H10v-1h11z"}))),IconFileGoogleSheets:t=>e.createElement(mi,_p({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#21A464",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:ro,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:ro,d:"M20.499 14c.277 0 .501.228.501.51v8.98c0 .282-.23.51-.501.51H10.5a.505.505 0 01-.501-.51v-8.98c0-.282.23-.51.501-.51h10zM11 21v2h4v-2.001L11 21zm5 0v2h4v-2h-4zm4-3h-4v2h4v-2zm0-3h-4v2h4v-2zm-5 0h-4v2l4-.001V15zm-4 5l4-.001v-2L11 18v2z"}))),IconFileGoogleSlides:t=>e.createElement(mi,wp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#F7BA00",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:ro,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:ro,d:"M10 14v9c0 .6.4 1 1 1h9c.6 0 1-.4 1-1v-9c0-.6-.4-1-1-1h-9c-.6 0-1 .4-1 1zm10 7h-9v-5h9v5z"}))),IconFileIllustrator:t=>e.createElement(mi,Ep({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"#051E25",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:ro,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:"#FF9400",d:"M20.42 15.805c.072 0 .108.027.108.107v6.982c0 .07-.018.106-.107.106h-1.393c-.09 0-.117-.044-.117-.115v-6.973h-.009c0-.071.027-.107.108-.107h1.41zm-5.813-2.557c.063 0 .09.017.108.088l2.857 9.549c.018.07 0 .115-.072.115h-1.49c-.072 0-.117-.018-.135-.08l-.737-2.663h-2.875l-.71 2.655c-.018.07-.045.088-.135.088h-1.32c-.09 0-.109-.027-.09-.133l2.551-8.796c.045-.16.072-.301.09-.735 0-.062.027-.088.072-.088h1.887zm-.917 1.416h-.018c-.188 1.035-.665 2.787-1.042 4.159h2.13c-.252-.982-.845-3.124-1.07-4.16zM19.72 13c.548 0 .916.363.916.903 0 .584-.386.902-.934.902-.521 0-.899-.318-.899-.902 0-.567.404-.903.917-.903z"}))),IconFileImage:t=>e.createElement(mi,Cp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"#3FB87F",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:ro,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:ro,d:"M14.754 18.128l3.102 3.204 1.327-1.625c.158-.193.415-.193.575 0l2.06 2.485c.37.446.159.808-.472.808H10.63c-.633 0-.82-.341-.414-.767a72386.439 72386.439 0 013.9-4.089.444.444 0 01.64-.016zM17.5 14a1.5 1.5 0 110 3 1.5 1.5 0 010-3z"}))),IconFileIndesign:t=>e.createElement(mi,Sp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"#051E25",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:ro,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:"#FF57A1",d:"M19.866 13c.071 0 .09.027.09.072v8.385c0 .251 0 .565.044.906 0 .063-.018.072-.08.108a5.449 5.449 0 01-2.342.529c-1.975 0-3.387-1.229-3.387-3.73-.01-2.144 1.403-3.813 3.664-3.813.188 0 .295 0 .474.018V13.09c0-.063.044-.09.09-.09h1.447zm-7.364 0c.071 0 .107.027.107.108v9.64c0 .09-.018.117-.116.117h-1.377c-.09 0-.116-.044-.116-.116v-9.632c0-.09.045-.117.116-.117h1.386zm5.3 3.83c-1.154 0-1.958.888-1.958 2.367 0 1.686.822 2.368 1.85 2.368.224 0 .456-.027.635-.108V16.92a1.282 1.282 0 00-.528-.09z"}))),IconFileKeynote:t=>e.createElement(mi,kp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("path",{d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z",fill:"#1A66EF"}),e.createElement("path",{d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z",fill:"#fff",fillOpacity:.5}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.991 16.925l-.697-4.338a.697.697 0 00-.688-.587h-8.212a.697.697 0 00-.688.587l-.697 4.338a.698.698 0 00.688.807h9.606a.698.698 0 00.688-.807zM17.979 24.225h-2.092V18.2h-.774v6.025H13.02c-.31 0-.465.155-.465.387 0 .233.155.388.465.388h4.958c.31 0 .465-.155.465-.387 0-.233-.155-.388-.465-.388z",fill:"#fff"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5 14.169l-1.047 1.253c.294.186.656.296 1.047.296.391 0 .753-.11 1.047-.296.301-.19.53-.46.648-.774l-1.695-.479z",fill:"#66C155"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.805 14.648a1.365 1.365 0 010-.958l1.695.479-1.695.479z",fill:"#FA9E27"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.453 12.916a1.958 1.958 0 011.047-.296v1.549l-1.047-1.253z",fill:"#AB4287"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.195 13.69a1.584 1.584 0 00-.648-.774 1.957 1.957 0 00-1.047-.296v1.549l1.695.479a1.365 1.365 0 000-.958z",fill:"#61D9FE"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.453 15.422c-.301-.19-.53-.46-.648-.774l1.695-.479-1.047 1.253z",fill:"#FBCE5A"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.805 13.69c.117-.314.347-.584.648-.774l1.047 1.253-1.695-.479z",fill:"#E85A5E"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.311 16.338H11.69c-.248 0-.372.124-.372.31s.124.31.372.31h7.622c.248 0 .372-.124.372-.31s-.124-.31-.372-.31z",fill:"#C7E8FD"})),IconFileNumbers:t=>e.createElement(mi,Ip({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("path",{d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z",fill:"#18D31D"}),e.createElement("path",{d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z",fill:"#fff",fillOpacity:.5}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 21.529v-.1l.001-.084c.002-.062.006-.123.017-.184a.616.616 0 01.164-.322.584.584 0 01.322-.165c.06-.011.123-.015.184-.017h.084l.1-.001h.47a16.617 16.617 0 01.185.001c.06.002.122.006.183.017a.616.616 0 01.322.165.585.585 0 01.165.322c.01.06.014.122.016.183a3.95 3.95 0 01.001.185v2.003l-.001.084a1.224 1.224 0 01-.016.183.618.618 0 01-.165.323.584.584 0 01-.322.165 1.21 1.21 0 01-.183.016l-.084.001H10.77l-.084-.001a1.207 1.207 0 01-.182-.016.616.616 0 01-.323-.165.587.587 0 01-.165-.323 1.24 1.24 0 01-.016-.183v-.084l-.001-.1v-1.903zM12.928 18.453v-.1l.002-.085c.001-.06.005-.122.016-.183a.62.62 0 01.165-.322.587.587 0 01.322-.166c.06-.01.122-.014.183-.016h.084l.1-.001h.471a16.584 16.584 0 01.184.001c.061.002.123.006.183.017a.616.616 0 01.322.165.588.588 0 01.165.322c.01.06.014.122.016.183l.001.085V23.616a1.237 1.237 0 01-.017.183.618.618 0 01-.165.323.585.585 0 01-.322.165 1.21 1.21 0 01-.183.016 3.93 3.93 0 01-.084.001H13.7l-.084-.001a1.208 1.208 0 01-.183-.016.616.616 0 01-.322-.165.585.585 0 01-.165-.323 1.212 1.212 0 01-.016-.183 3.93 3.93 0 01-.002-.084v-5.08zM15.857 12.873v-.1c0-.028 0-.056.002-.084.001-.062.005-.123.016-.184a.62.62 0 01.165-.322.586.586 0 01.322-.165c.06-.011.122-.015.183-.017h.084l.1-.001h.471a16.584 16.584 0 01.184.001c.06.002.122.006.183.017a.619.619 0 01.322.165.588.588 0 01.165.322c.01.06.014.122.016.184l.001.084V23.532l-.001.084a1.238 1.238 0 01-.016.183.62.62 0 01-.165.323.585.585 0 01-.322.165c-.06.01-.122.014-.183.016a3.93 3.93 0 01-.084.001H16.629l-.084-.001a1.234 1.234 0 01-.183-.016.619.619 0 01-.322-.165.585.585 0 01-.165-.323 1.21 1.21 0 01-.016-.183 3.93 3.93 0 01-.002-.084v-10.66zM18.785 16.02v-.1l.002-.084a1.21 1.21 0 01.016-.183.62.62 0 01.165-.323.587.587 0 01.322-.165c.06-.01.122-.014.183-.016l.084-.001h.571a16.584 16.584 0 01.184.001c.061.002.123.005.183.016a.615.615 0 01.322.165.587.587 0 01.165.323c.011.06.015.122.016.183l.002.085V23.53c0 .029 0 .057-.002.085a1.224 1.224 0 01-.016.183.62.62 0 01-.165.323.585.585 0 01-.322.165c-.06.01-.122.014-.183.016a3.92 3.92 0 01-.084.001H19.557l-.084-.001a1.208 1.208 0 01-.183-.016.617.617 0 01-.322-.165.585.585 0 01-.165-.323 1.213 1.213 0 01-.016-.183 3.94 3.94 0 01-.001-.084V16.02z",fill:"#fff"})),IconFilePages:t=>e.createElement(mi,Op({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("path",{d:"M9 3h9.586a1 1 0 01.707.293l6.414 6.414a1 1 0 01.293.707V26a3 3 0 01-3 3H9a3 3 0 01-3-3V6a3 3 0 013-3z",fill:"#FB8517"}),e.createElement("path",{d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z",fill:"#fff",fillOpacity:.5}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.686 24.179H11.52l-1.418.63h11.583c.173 0 .314-.14.314-.314v-.002a.314.314 0 00-.314-.314z",fill:"#FFC78A"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.42 23.653l-.399.683a.158.158 0 00.216.216l.683-.399-.5-.5zM9.653 23.256l.664.664c.049.05.124.06.185.028a7.674 7.674 0 001.863-1.368l3.427-3.427-1.372-1.372-3.427 3.427a7.677 7.677 0 00-1.368 1.863.158.158 0 00.028.185zM16.107 18.838a.158.158 0 00.223 0l.785-.804c4.412-4.412 4.727-5.515 4.333-5.91-.394-.393-1.497-.078-5.909 4.334l-.804.785a.158.158 0 000 .223l1.372 1.372z",fill:"#fff"})),IconFilePDF:t=>e.createElement(mi,Tp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#D0021B",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:ro,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:ro,d:"M13.133 16.998c0 .354-.054.66-.162.918a1.745 1.745 0 01-1.044 1.012 2.057 2.057 0 01-.693.122h-.621v2.322H9.2V15h1.98c.228 0 .457.033.688.099a1.655 1.655 0 011.089.945c.118.258.176.576.176.954zm-1.35.027c0-.288-.069-.495-.207-.621a.72.72 0 00-.504-.189h-.459v1.665h.459a.665.665 0 00.504-.22c.138-.148.207-.359.207-.635zm6.854 1.179c0 .48-.052.915-.157 1.305-.106.39-.266.723-.482.999a2.14 2.14 0 01-.824.639c-.333.15-.727.225-1.183.225H14.2V15h1.791c.456 0 .85.075 1.183.225.334.15.608.364.824.643.216.28.376.615.482 1.008.105.394.157.836.157 1.328zm-1.449 0c0-.642-.11-1.126-.328-1.454-.22-.327-.503-.49-.851-.49h-.351v3.852h.351c.348 0 .631-.163.85-.49.22-.328.329-.8.329-1.418zm3.961-1.899v1.296h1.521v1.233h-1.512v2.538H19.7V15h3.105v1.305h-1.656z"}))),IconFilePhotoshop:t=>e.createElement(mi,Ap({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"#051E25",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:ro,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:"#26C9FF",d:"M19.527 15.491c.79 0 1.34.116 1.643.25.074.045.092.116.092.179v1.223c0 .071-.046.116-.138.09-.403-.25-1-.403-1.597-.403-.725 0-.973.358-.973.652 0 .322.166.545 1.139 1.036 1.44.678 1.89 1.33 1.89 2.286 0 1.428-1.12 2.196-2.634 2.196-.798 0-1.487-.16-1.881-.384-.065-.027-.074-.071-.074-.143v-1.312c0-.09.046-.116.11-.072.579.366 1.24.527 1.845.527.725 0 1.028-.295 1.028-.696 0-.322-.211-.607-1.138-1.072-1.303-.607-1.845-1.223-1.845-2.25 0-1.152.927-2.107 2.533-2.107zM12.57 13c2.542 0 3.534 1.357 3.534 3.09 0 2.267-1.69 3.24-3.763 3.24-.35 0-.469-.017-.716-.017v3.428c0 .071-.028.107-.11.107H10.11c-.073 0-.11-.027-.11-.107v-9.59c0-.062.129-.106.202-.106.587-.027 1.46-.045 2.368-.045zm-.055 1.42c-.367 0-.716.018-.881.026v3.447c.21.018.376.018.743.018 1.074 0 2.084-.366 2.084-1.786 0-1.134-.725-1.705-1.946-1.705z"}))),IconFilePowerpointPresentation:t=>e.createElement(mi,xp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#C43E1C",d:"M9 3h9.586c.265 0 .52.105.707.293l6.415 6.414a1 1 0 01.293.707V26A3.002 3.002 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:"#E19E8D",d:"M19.286 3.286l6.422 6.421a.994.994 0 01.203.293H21a2.001 2.001 0 01-1.995-1.85L19 8V3.09c.105.048.202.114.286.196z"}),e.createElement("path",{fill:ro,d:"M16 24a5.947 5.947 0 004.239-1.76 6.07 6.07 0 00.94-1.214c.262-.443.465-.92.607-1.432A5.862 5.862 0 0022 18a5.947 5.947 0 00-1.76-4.239 6.07 6.07 0 00-1.214-.94 5.894 5.894 0 00-1.432-.607A5.862 5.862 0 0016 12c-.457 0-.904.05-1.342.152a6.123 6.123 0 00-1.257.44c-.4.191-.776.427-1.128.706-.351.28-.67.597-.955.952h-.568A.748.748 0 0010 15v6a.748.748 0 00.75.75h.568c.286.355.604.673.955.952.352.28.728.515 1.128.706.4.192.82.338 1.257.44.438.101.885.152 1.342.152zm0-9.75h-3.668A5.186 5.186 0 0116 12.75v1.5zm5.197 3H17.5V15a.73.73 0 00-.219-.527.847.847 0 00-.241-.161.703.703 0 00-.29-.062v-1.447a5.086 5.086 0 011.617.512c.504.26.951.585 1.342.976.39.39.716.838.976 1.342.26.504.43 1.043.512 1.617zm-7.869 3.188h-1.213v-4.875h1.887c.258 0 .495.03.712.093.217.063.402.16.557.29.154.131.275.297.363.498.088.202.132.439.132.712 0 .266-.047.503-.141.712-.094.21-.223.386-.387.53a1.688 1.688 0 01-.577.331c-.22.077-.458.115-.712.115h-.62v1.593zm.527-2.655c.207 0 .369-.043.484-.129.115-.086.173-.24.173-.463 0-.214-.056-.36-.167-.439-.112-.078-.267-.117-.466-.117h-.55v1.148h.526zM16 23.25a5.186 5.186 0 01-3.668-1.5h4.418a.748.748 0 00.75-.75v-3.006h3.75c0 .485-.063.95-.188 1.395a5.251 5.251 0 01-1.353 2.32 5.258 5.258 0 01-2.317 1.353A5.155 5.155 0 0116 23.25z"}))),IconFilePresentation:t=>e.createElement(mi,Pp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#F7931D",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:ro,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:ro,d:"M15.643 20.354a.5.5 0 00.707 0l5.003-5a.5.5 0 10-.706-.708l-4.65 4.647-1.647-1.647a.5.5 0 00-.707 0L9.646 21.65a.5.5 0 10.708.707l3.643-3.649 1.646 1.647z"}))),IconFileSpreadsheet:t=>e.createElement(mi,Rp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#3FB87F",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:ro,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:ro,d:"M22 23.49c0 .282-.229.51-.5.51h-11a.505.505 0 01-.5-.51v-8.98c0-.282.229-.51.5-.51h11c.276 0 .5.228.5.51v8.98zM11 23h2v-2h-2v2zm10-2h-7v2h7v-2zm0-1v-2h-7v2h7zm-10 0h2v-2h-2v2zm10-3v-2h-7v2h7zm-8-2h-2v2h2v-2z"}))),IconFileText:Lp,IconFileThreeD:t=>e.createElement(mi,Mp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#F7931D",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:ro,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:ro,d:"M20 14.068l-3.6-1.85c-.5-.291-1.3-.291-1.8 0l-3.6 1.85c-.6.292-1 .973-1 1.556v4.768c0 .681.4 1.265 1 1.557l3.6 1.849c.496.27 1.234.27 1.8 0l3.6-1.849c.6-.292 1-.973 1-1.557v-4.768c0-.583-.4-1.264-1-1.556zm-8.6 7.103c-.2-.098-.4-.487-.4-.681v-4.768c0-.292.2-.584.4-.681l3.6-1.85c.2-.096.6-.096.9 0l3.6 1.85c.1.061.154.134.2.194l-4.2 1.761v6.12c-.2 0-.282-.05-.4-.097l-3.7-1.848z"}))),IconFileVector:t=>e.createElement(mi,Dp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#F7931D",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:ro,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:ro,d:"M13.195 17.07l.005.01c.12.312.292.6.504.851l-.424.254c-1.414.847-2.452 2.33-2.715 3.992a1 1 0 11-.999-.078c.289-1.994 1.516-3.763 3.2-4.772l.43-.257zm5.618.003l.429.256c1.687 1.008 2.91 2.77 3.197 4.77a1 1 0 11-1.002.073c-.26-1.664-1.293-3.14-2.708-3.985l-.43-.256.013-.019c.194-.235.354-.5.47-.787l.03-.052zM16 14a2 2 0 011.937 1.5h4.592c.26 0 .471.21.471.47v.06c0 .26-.21.47-.47.47l-4.593.001a2 2 0 01-3.874 0L9.471 16.5a.47.47 0 01-.47-.47v-.06c0-.26.21-.47.47-.47h4.592A2 2 0 0116 14zm0 1a1 1 0 00-1 .98v.039l.007.098A1 1 0 1016 15z"}))),IconFileVideo:t=>e.createElement(mi,Up({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"#009AED",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:ro,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:ro,d:"M19.723 18.973l-5.914 3.957a.543.543 0 01-.809-.473v-7.914a.543.543 0 01.809-.473l5.914 3.957a.543.543 0 010 .946z"}))),IconFileWordDocument:t=>e.createElement(mi,Fp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#185ABD",d:"M9 3h9.586c.265 0 .52.105.707.293l6.415 6.414a1 1 0 01.293.707V26A3.002 3.002 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:"#8BACDE",d:"M19.286 3.286l6.422 6.421a.994.994 0 01.203.293H21a2.001 2.001 0 01-1.995-1.85L19 8V3.09c.105.048.202.114.286.196z"}),e.createElement("path",{fill:ro,d:"M20.25 25a.748.748 0 00.75-.75v-10.5a.748.748 0 00-.75-.75H12a.748.748 0 00-.75.75v1.5h-1.5A.748.748 0 009 16v6a.748.748 0 00.75.75h1.5v1.5A.748.748 0 0012 25h8.25zm0-9.75H12v-1.5h8.25v1.5zm0 3H16.5V16h3.75v2.25zm-8.104 3.188h-1.26l-1.083-4.875h1.207l.55 2.8.61-2.8h1.184l.638 2.783.51-2.784h1.195l-1.078 4.875h-1.242l-.633-2.8-.598 2.8zm8.104-.188H16.5V19h3.75v2.25zm0 3H12v-1.5h3.75a.748.748 0 00.75-.75h3.75v2.25z"}))),IconFileXbd:t=>e.createElement(mi,jp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("path",{d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z",fill:"#00838D"}),e.createElement("path",{d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z",fill:ro,fillOpacity:.5}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.583 16v5h2.122c.498 0 .913-.137 1.205-.395.294-.259.452-.63.452-1.076v-.007c0-.565-.34-1.026-.84-1.186.372-.18.625-.588.625-1.034v-.007c0-.394-.14-.722-.404-.95-.263-.227-.638-.345-1.09-.345h-2.07zm4.594 0v5h1.872c.697 0 1.255-.228 1.637-.667.38-.438.575-1.071.575-1.861v-.007c0-.767-.197-1.386-.58-1.813-.383-.429-.94-.652-1.632-.652h-1.872zm-2.765.948c.208 0 .358.054.455.14.095.084.15.21.15.38v.007c0 .171-.058.295-.163.38-.108.086-.279.14-.52.14h-.605v-1.047h.683zm.031 1.911c.265 0 .453.058.573.154.117.092.182.232.182.43v.006c0 .205-.064.348-.178.443-.116.098-.297.157-.555.157h-.737v-1.19h.715zm3.879 1.11V17.03h.578c.383 0 .677.132.878.37.203.24.32.602.32 1.08v.007c0 .498-.114.868-.315 1.11-.198.24-.492.37-.883.37h-.578zM9 20.996h1.35l1.033-1.62 1.035 1.62h1.415l-1.656-2.503L13.858 16H12.46l-.996 1.665L10.461 16H9.005l1.62 2.475L9 20.995z",fill:ro})),IconFileXdw:t=>e.createElement(mi,Hp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("path",{d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z",fill:"#00838D"}),e.createElement("path",{d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z",fill:ro,fillOpacity:.5}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.352 21H8l1.627-2.523L8.005 16h1.457l1.004 1.666.997-1.666h1.4l-1.683 2.495L12.837 21H11.42l-1.036-1.62L9.352 21zm3.918 0v-5h2.035c.75 0 1.354.222 1.771.649.417.427.634 1.046.634 1.816v.007c0 .792-.214 1.427-.629 1.864-.416.438-1.021.664-1.776.664H13.27zm6.01 0l-1.356-5h1.283l.717 3.208.838-3.208h1.024l.854 3.21.71-3.21h1.277l-1.358 5h-1.117l-.88-3.057L20.405 21h-1.125zM14.5 17.031v2.938h.64c.433 0 .757-.133.975-.374.218-.243.342-.61.342-1.107v-.006c0-.476-.127-.837-.348-1.078-.22-.239-.545-.373-.969-.373h-.64z",fill:ro})),IconFileZip:t=>e.createElement(mi,Bp({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:ao,d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:ro,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:"#4e4e4e",d:"M10 24h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1V8zm1 15h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1V9z"})))},qp=e=>e.reduce(((e,t)=>(e[t]=t,e)),{}),Kp={IconFileAudio:qp(["aac","aif","aifc","aiff","amr","au","flac","m3u","m4a","mid","mp3","ra","wav","wma","wpl"]),IconFileBoxCanvas:qp(["boxcanvas"]),IconFileBoxNote:qp(["boxnote"]),IconFileCode:qp(["as","as3","asm","aspx","c","cpp","bat","c","cc","cmake","cs","css","cxx","db","diff","erb","groovy","h","haml","hh","htm","html","java","js","less","m","make","md","ml","mm","php","pl","plist","properties","py","rb","sass","scala","script","scm","sml","sql","sh","wabba","yaml"]),IconFileDocument:qp(["dot","dotx","msg","odt","rtf","wpd","xhtml","xml","xsd","xsl"]),IconFileDwg:qp(["dwg","dwgzip"]),IconFileExcelSpreadsheet:qp(["xls","xlsx","xlsm","xlsb"]),IconFileGoogleDocs:qp(["gdoc"]),IconFileGoogleSheets:qp(["gsheet"]),IconFileGoogleSlides:qp(["gslide","gslides"]),IconFileVector:qp(["eps"]),IconFileIllustrator:qp(["ai"]),IconFileIndesign:qp(["idml","indd","indt","inx"]),IconFileKeynote:qp(["key"]),IconFileNumbers:qp(["numbers"]),IconFilePages:qp(["pages"]),IconFileImage:qp(["bmp","gif","gdraw","jpeg","jpg","png","ps","svs","svg","tif","tiff","heic","heif"]),IconFilePDF:qp(["pdf"]),IconFilePresentation:qp(["odp","otp","pot","potx"]),IconFilePowerpointPresentation:qp(["ppt","pptx","pptm"]),IconFilePhotoshop:qp(["psd"]),IconFileSpreadsheet:qp(["csv","ods","tsv","xlt","xltx"]),IconFileText:qp(["txt","vi","vim","webdoc"]),IconFileThreeD:qp(["3ds","dae","fbx","obj","ply","stl"]),IconFileVideo:qp(["3g2","3gp","avi","flv","m2v","m2ts","m4v","mkv","mov","mp4","mpeg","mpg","ogg","mts","qt","wmv"]),IconFileWordDocument:qp(["docx","doc","docm"]),IconFileXbd:qp(["xbd"]),IconFileXdw:qp(["xdw"]),IconFileZip:qp(["rar","tgz","zip"])},Vp=({dimension:t=32,extension:r="",title:n})=>{const o=zp[((e="")=>Object.keys(Kp).filter((t=>!!Kp[t][e.toLowerCase()]))[0]||"IconFileDefault")(r)];return e.createElement(o,{height:t,title:n,width:t})},Gp=({className:t="",color:r="#F7931D",height:n=26,title:o,width:i=26})=>e.createElement(to,{className:`icon-alert-default ${t}`,title:o,height:n,width:i,viewBox:"0 0 26 26"},e.createElement("defs",null,e.createElement("circle",{id:"b",cx:"8",cy:"8",r:"8"}),e.createElement("filter",{x:"-46.9%",y:"-46.9%",width:"193.8%",height:"193.8%",filterUnits:"objectBoundingBox",id:"a"},e.createElement("feMorphology",{radius:".5",operator:"dilate",in:"SourceAlpha",result:"shadowSpreadOuter1"}),e.createElement("feOffset",{in:"shadowSpreadOuter1",result:"shadowOffsetOuter1"}),e.createElement("feGaussianBlur",{stdDeviation:"2",in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),e.createElement("feColorMatrix",{values:"0 0 0 0 0.733285502 0 0 0 0 0.733285502 0 0 0 0 0.733285502 0 0 0 0.5 0",in:"shadowBlurOuter1"}))),e.createElement("g",{transform:"translate(5 5)",fill:"none",fillRule:"evenodd"},e.createElement("use",{fill:"#000",filter:"url(#a)",xlinkHref:"#b"}),e.createElement("use",{fill:r,xlinkHref:"#b"}),e.createElement("path",{d:"M8.047 4.706v4.111",stroke:"#FFF",strokeWidth:"1.412",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("circle",{fill:"#FFF",cx:"8.047",cy:"11.294",r:"1"}))),Wp=({className:t="",height:r=32,title:n,width:o=32})=>e.createElement(to,{className:`icon-folder-personal ${t}`,height:r,title:n,viewBox:"0 0 32 32",width:o},e.createElement("path",{d:"M27,25H5c-0.6,0-1-0.4-1-1V8c0-0.6,0.4-1,1-1h8.6L16,9h11c0.6,0,1,0.4,1,1v14C28,24.6,27.6,25,27,25z",fill:"#EFD289"}),e.createElement("path",{d:"M26.5,24h-21C5.2,24,5,23.8,5,23.5V12h22v11.6C27,23.8,26.8,24,26.5,24z",fill:"#FDEFC1"})),$p=({name:t})=>e.createElement("span",{className:"bcu-item-label"},t),Jp=({name:t,extension:r,isFolder:n=!1,isResumableUploadsEnabled:o,status:i})=>{let a=n?e.createElement(Wp,null):e.createElement(Vp,{extension:r});return o&&i===Fe&&(a=e.createElement(dp,{className:"bcu-icon-badge",bottomRight:e.createElement(Gp,{height:18,width:18})},a)),e.createElement("div",{className:"bcu-item-icon-name"},e.createElement("div",{className:"bcu-item-icon"},a),e.createElement("div",{className:"bcu-item-name"},e.createElement($p,{name:t})))};function Yp(){return Yp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yp.apply(null,arguments)}class Qp extends e.PureComponent{static getDerivedStateFromProps({percent:e},t){return e!==t.percent?{percent:e}:null}constructor(e){super(e);const{percent:t}=e;this.state={percent:t}}render(){const{percent:t}=this.state,r={transitionDelay:t>0&&t<100?"0":"0.4s"};return e.createElement("div",{className:"bcu-progress-container",style:r},e.createElement("div",{className:"bcu-progress",style:{width:`${t}%`}}))}}!function(e,t,r){(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(Qp,"defaultProps",{percent:0});const Xp=Qp,Zp=({progress:t})=>e.createElement("div",{className:"bcu-item-progress"},e.createElement(Xp,{percent:t}),e.createElement("div",{className:"bcu-progress-label"},t,"%"));function ef(){return ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ef.apply(null,arguments)}const tf=(t,r,n)=>{switch(t){case Ve:return e.createElement(Qn,fo.uploadsOneOrMoreChildFoldersFailedToUploadMessage);case We:return n?e.createElement(Qn,fo.uploadsFileSizeLimitExceededErrorMessageForUpgradeCta):e.createElement(Qn,fo.uploadsFileSizeLimitExceededErrorMessage);case qe:return e.createElement(Qn,fo.uploadsItemNameInUseErrorMessage);case Be:return e.createElement(Qn,ef({},fo.uploadsProvidedFolderNameInvalidMessage,{values:{name:r}}));case Ge:return e.createElement(Qn,fo.uploadsStorageLimitErrorMessage);case"pending_app_folder_size_limit":return e.createElement(Qn,fo.uploadsPendingFolderSizeLimitErrorMessage);case $e:return e.createElement(Qn,fo.uploadsPackageUploadErrorMessage);default:return e.createElement(Qn,fo.uploadsDefaultErrorMessage)}},rf=({className:t="",color:r="#000000",height:n=24,title:o,width:i=24})=>e.createElement(to,{className:`icon-check ${t}`,height:n,title:o,viewBox:"0 0 24 24",width:i},e.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),e.createElement("path",{className:"fill-color",d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",fill:r})),nf=({className:t="",color:r="#000000",height:n=24,title:o,width:i=24})=>e.createElement(to,{className:`icon-close ${t}`,height:n,title:o,viewBox:"0 0 24 24",width:i},e.createElement("path",{className:"fill-color",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",fill:r}),e.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),of=()=>e.createElement("div",{className:"be-icon-in-progress"},e.createElement(nf,null),e.createElement(yo,null)),af=({className:t="",color:r="#222",height:n=32,title:o,width:i=32})=>e.createElement(to,{className:`bdl-IconRetry ${t}`,height:n,title:o,viewBox:"0 0 32 32",width:i},e.createElement("g",{className:"fill-color",fill:r,fillRule:"evenodd"},e.createElement("path",{d:"M25.023 16c0-6.075-4.925-11-11-11s-11 4.925-11 11 4.925 11 11 11c2.601 0 5.06-.904 7.02-2.53a1 1 0 1 1 1.278 1.538A12.949 12.949 0 0 1 14.023 29c-7.18 0-13-5.82-13-13s5.82-13 13-13 13 5.82 13 13a1 1 0 0 1-2 0z",fillRule:"nonzero"}),e.createElement("path",{d:"M20 14l6 6 6-6z"}))),sf=["children","className"];function lf(){return lf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lf.apply(null,arguments)}const cf=t=>{let{children:r,className:n=""}=t,o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,sf);return e.createElement(Ro,lf({className:`btn-primary ${n}`},o),r)},uf=Gn((({error:t={},intl:r,isFolder:n=!1,isResumableUploadsEnabled:o,onClick:i,onUpgradeCTAClick:a,status:s})=>{let l,c=e.createElement(nf,null);const{code:u}=t,{formatMessage:d}=r;if(n&&s!==Le)return null;switch(s){case Ue:c=e.createElement(rf,{color:"#26C281"}),o||(l=fo.remove);break;case Fe:c=e.createElement(af,{height:24,width:24}),l=o?fo.resume:fo.retry;break;case Me:case De:o?c=e.createElement(yo,null):(c=e.createElement(of,null),l=fo.uploadsCancelButtonTooltip);break;default:o?c=e.createElement(yo,null):l=fo.uploadsCancelButtonTooltip}if(s===Fe&&u===We&&a)return e.createElement(cf,{onClick:a,type:"button"},e.createElement(Qn,fo.uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta));const h=s===De,p=l&&d(l);return e.createElement("div",{className:"bcu-item-action"},l?e.createElement(Oi,{position:"top-left",text:p},e.createElement(Mo,{"aria-label":p,isDisabled:h,onClick:i,type:"button"},c)):c)}));function df(){return df=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},df.apply(null,arguments)}function hf(){return hf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hf.apply(null,arguments)}const pf=Gn((({intl:t,onClick:r,status:n})=>{const o={};let i=null;n===Me?i="uploadcancel":n===Fe&&(i="remove-failed"),i&&(o["data-resin-target"]=i);const a=n===De,s=t.formatMessage(fo.remove);return e.createElement("div",{className:"bcu-item-action"},e.createElement(Oi,{position:"top-left",text:s},e.createElement(Mo,hf({"aria-label":s,isDisabled:a,onClick:r,type:"button"},o),e.createElement(nf,null))))})),ff=({isResumableUploadsEnabled:t=!1,items:r,onClick:n,onRemoveClick:o=Dt(),onUpgradeCTAClick:i})=>e.createElement(up,null,(({width:a,height:s})=>{const l=(t=>({rowData:r})=>e.createElement(Jp,Yp({isResumableUploadsEnabled:t},r)))(t),c=(d=!!i,({rowData:t})=>{const{status:r,error:n={},name:o,isFolder:i,file:a}=t,{code:s}=n;if(i&&r!==Fe)return null;switch(r){case Me:case De:return e.createElement(Zp,t);case Fe:return u.isSafari()&&"bad_digest"===s&&-1!==a.name.indexOf(".zip")?tf($e,a.name):tf(s,o,d);default:return null}});var d;const h=((t,r,n)=>({rowData:o})=>e.createElement(uf,df({},o,{isResumableUploadsEnabled:t,onClick:()=>r(o),onUpgradeCTAClick:n})))(t,n,i),p=(t=>({rowData:r})=>r.isFolder?null:e.createElement(pf,{status:r.status,onClick:()=>t(r)}))(o);return e.createElement(op,{className:"bcu-item-list",disableHeader:!0,headerHeight:0,height:s,rowClassName:"bcu-item-row",rowCount:r.length,rowGetter:({index:e})=>r[e],rowHeight:50,width:a},e.createElement(Th,{cellRenderer:l,dataKey:"name",flexGrow:1,flexShrink:1,width:300}),e.createElement(Th,{cellRenderer:c,dataKey:"progress",flexGrow:1,flexShrink:1,style:{textAlign:"right"},width:300}),e.createElement(Th,{className:t?"":"bcu-item-list-action-column",cellRenderer:h,dataKey:"status",flexShrink:0,width:i?100:25}),t&&e.createElement(Th,{className:"bcu-item-list-action-column",cellRenderer:p,dataKey:"remove",flexShrink:0,width:25}))})),gf=({className:t="",color:r=no,height:n=126,title:o,width:i=130})=>e.createElement(to,{className:`error-empty-state ${t}`,height:n,title:o,viewBox:"0 0 150 150",width:i},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("path",{className:"fill-color",d:"M75.5,6.1337822 L75.5,5.49178758 C75.5,5.2201808 75.7319336,5 76,5 C76.2761424,5 76.5,5.21505737 76.5,5.49047852 L76.5,6.1337822 C76.651814,6.22160185 76.7783981,6.348186 76.8662178,6.5 L77.5095215,6.5 C77.7804053,6.5 78,6.73193359 78,7 C78,7.27614237 77.7849426,7.5 77.5095215,7.5 L76.8662178,7.5 C76.7783981,7.651814 76.651814,7.77839815 76.5,7.8662178 L76.5,8.50952148 C76.5,8.78040529 76.2680664,9 76,9 C75.7238576,9 75.5,8.76897915 75.5,8.49525623 L75.5,7.8662178 C75.348186,7.77839815 75.2216019,7.651814 75.1337822,7.5 L74.4904785,7.5 C74.2195947,7.5 74,7.26806641 74,7 C74,6.72385763 74.2150574,6.5 74.4904785,6.5 L75.1337822,6.5 C75.2216019,6.348186 75.348186,6.22160185 75.5,6.1337822 Z M16,73.6337822 L16,72.9917876 C16,72.7201808 16.2319336,72.5 16.5,72.5 C16.7761424,72.5 17,72.7150574 17,72.9904785 L17,73.6337822 C17.151814,73.7216019 17.2783981,73.848186 17.3662178,74 L18.0095215,74 C18.2804053,74 18.5,74.2319336 18.5,74.5 C18.5,74.7761424 18.2849426,75 18.0095215,75 L17.3662178,75 C17.2783981,75.151814 17.151814,75.2783981 17,75.3662178 L17,76.0095215 C17,76.2804053 16.7680664,76.5 16.5,76.5 C16.2238576,76.5 16,76.2689791 16,75.9952562 L16,75.3662178 C15.848186,75.2783981 15.7216019,75.151814 15.6337822,75 L14.9904785,75 C14.7195947,75 14.5,74.7680664 14.5,74.5 C14.5,74.2238576 14.7150574,74 14.9904785,74 L15.6337822,74 C15.7216019,73.848186 15.848186,73.7216019 16,73.6337822 Z M132.5,81.6337822 L132.5,80.9917876 C132.5,80.7201808 132.731934,80.5 133,80.5 C133.276142,80.5 133.5,80.7150574 133.5,80.9904785 L133.5,81.6337822 C133.651814,81.7216019 133.778398,81.848186 133.866218,82 L134.509521,82 C134.780405,82 135,82.2319336 135,82.5 C135,82.7761424 134.784943,83 134.509521,83 L133.866218,83 C133.778398,83.151814 133.651814,83.2783981 133.5,83.3662178 L133.5,84.0095215 C133.5,84.2804053 133.268066,84.5 133,84.5 C132.723858,84.5 132.5,84.2689791 132.5,83.9952562 L132.5,83.3662178 C132.348186,83.2783981 132.221602,83.151814 132.133782,83 L131.490479,83 C131.219595,83 131,82.7680664 131,82.5 C131,82.2238576 131.215057,82 131.490479,82 L132.133782,82 C132.221602,81.848186 132.348186,81.7216019 132.5,81.6337822 Z M47,23.1337822 L47,22.4917876 C47,22.2201808 47.2319336,22 47.5,22 C47.7761424,22 48,22.2150574 48,22.4904785 L48,23.1337822 C48.151814,23.2216019 48.2783981,23.348186 48.3662178,23.5 L49.0095215,23.5 C49.2804053,23.5 49.5,23.7319336 49.5,24 C49.5,24.2761424 49.2849426,24.5 49.0095215,24.5 L48.3662178,24.5 C48.2783981,24.651814 48.151814,24.7783981 48,24.8662178 L48,25.5095215 C48,25.7804053 47.7680664,26 47.5,26 C47.2238576,26 47,25.7689791 47,25.4952562 L47,24.8662178 C46.848186,24.7783981 46.7216019,24.651814 46.6337822,24.5 L45.9904785,24.5 C45.7195947,24.5 45.5,24.2680664 45.5,24 C45.5,23.7238576 45.7150574,23.5 45.9904785,23.5 L46.6337822,23.5 C46.7216019,23.348186 46.848186,23.2216019 47,23.1337822 Z M107,24.6337822 L107,23.9917876 C107,23.7201808 107.231934,23.5 107.5,23.5 C107.776142,23.5 108,23.7150574 108,23.9904785 L108,24.6337822 C108.151814,24.7216019 108.278398,24.848186 108.366218,25 L109.009521,25 C109.280405,25 109.5,25.2319336 109.5,25.5 C109.5,25.7761424 109.284943,26 109.009521,26 L108.366218,26 C108.278398,26.151814 108.151814,26.2783981 108,26.3662178 L108,27.0095215 C108,27.2804053 107.768066,27.5 107.5,27.5 C107.223858,27.5 107,27.2689791 107,26.9952562 L107,26.3662178 C106.848186,26.2783981 106.721602,26.151814 106.633782,26 L105.990479,26 C105.719595,26 105.5,25.7680664 105.5,25.5 C105.5,25.2238576 105.715057,25 105.990479,25 L106.633782,25 C106.721602,24.848186 106.848186,24.7216019 107,24.6337822 Z M142.5,44.6337822 L142.5,43.9917876 C142.5,43.7201808 142.731934,43.5 143,43.5 C143.276142,43.5 143.5,43.7150574 143.5,43.9904785 L143.5,44.6337822 C143.651814,44.7216019 143.778398,44.848186 143.866218,45 L144.509521,45 C144.780405,45 145,45.2319336 145,45.5 C145,45.7761424 144.784943,46 144.509521,46 L143.866218,46 C143.778398,46.151814 143.651814,46.2783981 143.5,46.3662178 L143.5,47.0095215 C143.5,47.2804053 143.268066,47.5 143,47.5 C142.723858,47.5 142.5,47.2689791 142.5,46.9952562 L142.5,46.3662178 C142.348186,46.2783981 142.221602,46.151814 142.133782,46 L141.490479,46 C141.219595,46 141,45.7680664 141,45.5 C141,45.2238576 141.215057,45 141.490479,45 L142.133782,45 C142.221602,44.848186 142.348186,44.7216019 142.5,44.6337822 Z M26.4375,26.7086139 L26.4375,26.3073672 C26.4375,26.137613 26.5824585,26 26.75,26 C26.922589,26 27.0625,26.1344109 27.0625,26.3065491 L27.0625,26.7086139 C27.1573838,26.7635012 27.2364988,26.8426162 27.2913861,26.9375 L27.6934509,26.9375 C27.8627533,26.9375 28,27.0824585 28,27.25 C28,27.422589 27.8655891,27.5625 27.6934509,27.5625 L27.2913861,27.5625 C27.2364988,27.6573838 27.1573838,27.7364988 27.0625,27.7913861 L27.0625,28.1934509 C27.0625,28.3627533 26.9175415,28.5 26.75,28.5 C26.577411,28.5 26.4375,28.355612 26.4375,28.1974433 L26.4375,27.7913861 C26.3426162,27.7364988 26.2635012,27.6573838 26.2086139,27.5625 L25.8065491,27.5625 C25.6372467,27.5625 25.5,27.4175415 25.5,27.25 C25.5,27.077411 25.6344109,26.9375 25.8065491,26.9375 L26.2086139,26.9375 C26.2635012,26.8426162 26.3426162,26.7635012 26.4375,26.7086139 Z M5.9375,66.7086139 L5.9375,66.3073672 C5.9375,66.137613 6.0824585,66 6.25,66 C6.42258898,66 6.5625,66.1344109 6.5625,66.3065491 L6.5625,66.7086139 C6.65738375,66.7635012 6.73649884,66.8426162 6.79138613,66.9375 L7.19345093,66.9375 C7.36275331,66.9375 7.5,67.0824585 7.5,67.25 C7.5,67.422589 7.36558914,67.5625 7.19345093,67.5625 L6.79138613,67.5625 C6.73649884,67.6573838 6.65738375,67.7364988 6.5625,67.7913861 L6.5625,68.1934509 C6.5625,68.3627533 6.4175415,68.5 6.25,68.5 C6.07741102,68.5 5.9375,68.355612 5.9375,68.1974433 L5.9375,67.7913861 C5.84261625,67.7364988 5.76350116,67.6573838 5.70861387,67.5625 L5.30654907,67.5625 C5.13724669,67.5625 5,67.4175415 5,67.25 C5,67.077411 5.13441086,66.9375 5.30654907,66.9375 L5.70861387,66.9375 C5.76350116,66.8426162 5.84261625,66.7635012 5.9375,66.7086139 Z M128.4375,35.2086139 L128.4375,34.8073672 C128.4375,34.637613 128.582458,34.5 128.75,34.5 C128.922589,34.5 129.0625,34.6344109 129.0625,34.8065491 L129.0625,35.2086139 C129.157384,35.2635012 129.236499,35.3426162 129.291386,35.4375 L129.693451,35.4375 C129.862753,35.4375 130,35.5824585 130,35.75 C130,35.922589 129.865589,36.0625 129.693451,36.0625 L129.291386,36.0625 C129.236499,36.1573838 129.157384,36.2364988 129.0625,36.2913861 L129.0625,36.6934509 C129.0625,36.8627533 128.917542,37 128.75,37 C128.577411,37 128.4375,36.855612 128.4375,36.6974433 L128.4375,36.2913861 C128.342616,36.2364988 128.263501,36.1573838 128.208614,36.0625 L127.806549,36.0625 C127.637247,36.0625 127.5,35.9175415 127.5,35.75 C127.5,35.577411 127.634411,35.4375 127.806549,35.4375 L128.208614,35.4375 C128.263501,35.3426162 128.342616,35.2635012 128.4375,35.2086139 Z",fill:r}),e.createElement("path",{className:"stroke-color",d:"M22.7914692,53.0566298 C22.7914692,44.2833882 29.9045187,37.1712707 38.67891,37.1712707 C45.7737865,37.1712707 51.7824509,41.8212886 53.8227562,48.239555 C55.2405695,47.3058073 56.9383368,46.7624309 58.7630332,46.7624309 C60.5666328,46.7624309 62.2462216,47.2933152 63.654021,48.2073246 L63.654021,48.2073246 C64.4190329,41.9873442 69.7216602,37.1712707 76.1492891,37.1712707 C83.1025803,37.1712707 88.7393365,42.8072884 88.7393365,49.7596685",stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",transform:"translate(55.765403, 45.113950) rotate(-16.000000) translate(-55.765403, -45.113950) "}),e.createElement("path",{className:"stroke-color",d:"M83.943128,54.2555249 C83.943128,45.4822833 91.0561775,38.3701657 99.8305687,38.3701657 C108.60496,38.3701657 115.718009,45.4822833 115.718009,54.2555249 C115.718009,54.3264389 115.717545,54.3972444 115.716618,54.4679385 C116.654607,54.136276 117.664045,53.9558011 118.71564,53.9558011 C123.682276,53.9558011 127.708531,57.981528 127.708531,62.9475138",stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",transform:"translate(105.825829, 52.277119) rotate(12.000000) translate(-105.825829, -52.277119) "}),e.createElement("path",{className:"stroke-color fill-white",d:"M50.9395397,69.2196888 C50.9559175,68.4219236 51.610933,67.7752072 52.4046043,67.7752072 L97.4958697,67.7752072 C98.2886247,67.7752072 98.9444823,68.4183107 98.9609042,69.2182265 L99.4445195,92.7751921 L99.7620359,108.24146 C99.7783805,109.037607 99.1770355,109.912104 98.4076164,110.184881 C98.4076164,110.184881 87.4203791,114.5 74.950237,114.5 C62.4800948,114.5 51.4928575,110.184881 51.4928575,110.184881 C50.7283448,109.907706 50.1221794,109.033417 50.1385386,108.236558 L50.4774294,91.7291413 L50.9395397,69.2196888 Z",fill:"#FFFFFF",stroke:r,strokeWidth:"2"}),e.createElement("ellipse",{className:"fill-color fill-opacity",cx:"74.950237",cy:"78.3725829",fill:r,fillOpacity:"0.1",rx:"23.0218009",ry:"4.33529006"}),e.createElement("path",{className:"stroke-color fill-white",d:"M74.950237,79.8176796 C97.465656,79.8176796 115.718009,75.5044007 115.718009,70.1837017 C115.718009,64.8630026 97.465656,60.5497238 74.950237,60.5497238 C52.4348179,60.5497238 34.1824645,64.8630026 34.1824645,70.1837017 C34.1824645,75.5044007 52.4348179,79.8176796 74.950237,79.8176796 Z",fill:"#FFFFFF",stroke:r,strokeWidth:"2"}),e.createElement("ellipse",{className:"stroke-color fill-white",cx:"74.950237",cy:"68.4977555",fill:"#FFFFFF",rx:"24.4606635",ry:"4.09444061",stroke:r,strokeWidth:"2"}),e.createElement("path",{className:"fill-color fill-opacity",d:"M75,145 C92.9492544,145 107.5,143.656854 107.5,142 C107.5,140.343146 92.9492544,139 75,139 C57.0507456,139 42.5,140.343146 42.5,142 C42.5,143.656854 57.0507456,145 75,145 Z M52.8509947,83.1913741 C52.8712542,82.3922739 53.1310662,82.3484877 53.4058629,83.0830098 C53.4058629,83.0830098 54.9449475,86.510498 55.7326913,92.6144423 C56.1527728,95.8695035 53.9282708,103.074457 55.7326913,105.159127 C57.3617489,107.041199 60.8117179,105.68032 64.1108787,107.455589 C67.4100395,109.230858 72.2793624,112.331621 70.2784638,112.127382 C61.553615,111.236802 53.5881693,108.414342 53.5881693,108.414342 C52.8342042,108.164383 52.2394252,107.313681 52.2596778,106.514853 L52.8509947,83.1913741 Z M74.950237,71.6141582 C83.2980852,71.6141582 97.0127962,70.1313923 97.0127962,68.8551108 C95.6484975,68.0340868 84.2687795,66.59622 74.9502365,66.59622 C65.6316935,66.59622 54.8064568,67.6979178 52.8876777,68.8551108 C52.8876777,70.1313923 66.6023888,71.6141582 74.950237,71.6141582 Z",fill:r,fillOpacity:"0.1"}),e.createElement("path",{className:"stroke-color fill-white",d:"M59.7884631,63.0000267 L152.135708,63.5798175 C153.123448,63.5860189 153.924171,64.4019833 153.924171,65.3977901 C153.924171,66.3956273 153.123712,67.2095597 152.135708,67.2157627 L59.7884631,67.7955534 C58.8007222,67.8017549 58,66.7255324 58,65.3977901 C58,64.0673406 58.8004581,62.9938237 59.7884631,63.0000267 Z",fill:"#FFFFFF",stroke:r,strokeWidth:"2",transform:"translate(105.962085, 65.397790) rotate(70.000000) translate(-105.962085, -65.397790) "}),e.createElement("path",{className:"stroke-color",d:"M96.0000002,31 L92.2294151,32.3351735",stroke:r,strokeLinecap:"square",strokeWidth:"2"}))),mf=({className:t="",color:r=no,height:n=55,title:o,width:i=46})=>e.createElement(to,{className:`upload-empty-state ${t}`,height:n,title:o,viewBox:"0 0 46 55",width:i},e.createElement("path",{d:"M1,52V3A2,2,0,0,1,3,1H30.91a2,2,0,0,1,1.41.59L44.41,13.68A2,2,0,0,1,45,15.09V52a2,2,0,0,1-2,2H3A2,2,0,0,1,1,52Z",fill:"#fff"}),e.createElement("path",{className:"fill-color",d:"M45.12,13,33,.88A3,3,0,0,0,30.91,0H3A3,3,0,0,0,0,3V52a3,3,0,0,0,3,3H43a3,3,0,0,0,3-3V15.09A3,3,0,0,0,45.12,13ZM43,53H3a1,1,0,0,1-1-1V3A1,1,0,0,1,3,2H30V13a3,3,0,0,0,3,3H44V52A1,1,0,0,1,43,53Z",fill:r}),e.createElement("path",{className:"fill-color",d:"M21,29v4a1,1,0,0,0,.91,1h2.18A1,1,0,0,0,25,33V29h2.74a1,1,0,0,0,.76-1.65l-4.83-5.62a1,1,0,0,0-1.41-.11l-.11.11-4.82,5.62A1,1,0,0,0,18.09,29Z",fill:r}),e.createElement("polyline",{className:"stroke-color",fill:"none",points:"13 36 13 39 33 39 33 36",stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})),bf=({className:t="",color:r=no,height:n=49,title:o,width:i=50})=>e.createElement(to,{className:`upload-success-state ${t}`,height:n,title:o,viewBox:"0 0 50 49",width:i},e.createElement("path",{className:"fill-color",d:"M41.88,4.39l4,4.53L17,38.73,4.24,26,9,21.28l5.89,6.09L17,29.57l2.16-2.18,22.74-23M42,0,17,25.28,9,17,0,26,17,43,50,9,42,0Z",fill:r}),e.createElement("rect",{className:"fill-color",fill:r,fillOpacity:"0.2",height:"3",rx:"1.5",ry:"1.5",width:"6",x:"4",y:"46"}),e.createElement("rect",{className:"fill-color",fill:r,fillOpacity:"0.2",height:"3",rx:"1.5",ry:"1.5",width:"6",x:"33",y:"46"}),e.createElement("rect",{className:"fill-color",fill:r,fillOpacity:"0.2",height:"3",rx:"1.5",ry:"1.5",width:"21",x:"11",y:"46"})),yf=({handleChange:t,inputLabel:r,inputLabelClass:n="",isFolderUpload:o=!1,isMultiple:i=!0})=>{const a=e.useRef(null);return r?e.createElement("label",{className:n,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||a.current&&a.current.click()},tabIndex:0},r,e.createElement("input",{ref:a,directory:o?"":void 0,multiple:i,onChange:t,type:"file",webkitdirectory:o?"":void 0})):null};function vf(){return vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vf.apply(null,arguments)}const _f=({fileInputLabel:t,folderInputLabel:r,message:n,onChange:o,useButton:i=!1})=>{const a=n?e.createElement("div",{className:"bcu-upload-state-message"},n):null,s=i?"btn btn-primary be-input-btn":"be-input-link",l=!i&&!!r,c=e=>{if(!o)return;o(e);e.currentTarget.value=""},u=e.createElement(yf,{handleChange:c,inputLabel:t,inputLabelClass:s}),d=l?e.createElement(yf,{handleChange:c,inputLabel:r,inputLabelClass:s,isFolderUpload:!0}):null;let h;return u&&d?h=e.createElement(Qn,vf({},fo.uploadOptions,{values:{option1:u,option2:d}})):u&&(h=u),e.createElement("div",null,a,h&&e.createElement("div",{className:"bcu-upload-input-container"},h))},wf=({canDrop:t,hasItems:r,isOver:n,isTouch:o,view:i,onSelect:a,isFolderUploadEnabled:s})=>{let l,c;switch(i){case v:l=e.createElement(gf,null),c=e.createElement(_f,{message:e.createElement(Qn,fo.uploadError)});break;case _:l=e.createElement(mf,null),c=t&&r?e.createElement(_f,{message:e.createElement(Qn,fo.uploadInProgress)}):o?e.createElement(_f,{fileInputLabel:e.createElement(Qn,fo.uploadNoDragDrop),onChange:a,useButton:!0}):e.createElement(_f,{fileInputLabel:e.createElement(Qn,fo.uploadEmptyFileInput),folderInputLabel:s&&e.createElement(Qn,fo.uploadEmptyFolderInput),message:s?e.createElement(Qn,fo.uploadEmptyWithFolderUploadEnabled):e.createElement(Qn,fo.uploadEmptyWithFolderUploadDisabled),onChange:a});break;case w:l=e.createElement(mf,null),c=e.createElement(_f,{message:e.createElement(Qn,fo.uploadInProgress)});break;case E:l=e.createElement(bf,null),c=e.createElement(_f,{fileInputLabel:e.createElement(Qn,fo.uploadSuccessFileInput),folderInputLabel:s&&e.createElement(Qn,fo.uploadSuccessFolderInput),message:e.createElement(Qn,fo.uploadSuccess),onChange:a,useButton:o})}const u=qt()("bcu-upload-state",{"bcu-is-droppable":n&&t,"bcu-is-not-droppable":n&&!t,"bcu-has-items":r});return e.createElement("div",{className:u},e.createElement("div",null,l,c),e.createElement("div",{className:"bcu-drag-drop-overlay"}))},Ef={dropValidator:({allowedTypes:e},{types:t})=>{if(t instanceof Array)return Array.from(t).some((t=>e.indexOf(t)>-1));return e.filter((e=>t.contains(e))).length>0},onDrop:(e,{addDataTransferItemsToUploadQueue:t})=>{const{dataTransfer:r}=e;t(r)}},Cf=hh(Ef)((({canDrop:t,isOver:r,isTouch:n,view:o,items:i,addFiles:a,onClick:s,isFolderUploadEnabled:l})=>{const c=i.length>0;return e.createElement("div",{className:"bcu-droppable-content"},e.createElement(ff,{items:i,onClick:s,view:o}),e.createElement(wf,{canDrop:t,hasItems:c,isFolderUploadEnabled:l,isOver:r,isTouch:n,onSelect:({target:{files:e}})=>a(e),view:o}))}));function Sf(){return Sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sf.apply(null,arguments)}const kf=({onClick:t,hasMultipleFailedUploads:r})=>{const n=r?fo.resumeAll:fo.resume,o={"data-resin-target":"uploadresumeheader"};return e.createElement("div",{className:"bcu-uploads-manager-action"},e.createElement(cf,Sf({onClick:e=>{e.stopPropagation(),t(Fe)},type:"button"},o),e.createElement(Qn,n)))},If=({customPrompt:t,hasMultipleFailedUploads:r,isDragging:n,isExpanded:o,isResumeVisible:i,isVisible:a,onClick:s,onKeyDown:l,onUploadsManagerActionClick:c,percent:u,view:d})=>{const h=n||!a,p=t||fo.uploadsManagerUploadPrompt,f=h?e.createElement(Qn,p):(t=>{switch(t){case w:return e.createElement(Qn,fo.uploadsManagerUploadInProgress);case E:return e.createElement(Qn,fo.uploadsManagerUploadComplete);case _:return e.createElement(Qn,fo.uploadsManagerUploadPrompt);case v:return e.createElement(Qn,fo.uploadsManagerUploadFailed);default:return""}})(d),g=h?0:((e,t)=>{switch(e){case E:return 100;case _:case v:return 0;default:return t}})(d,u);return e.createElement("div",{"aria-hidden":!a,className:"bcu-overall-progress-bar",onClick:s,onKeyDown:l,role:"button",tabIndex:a?"0":"-1"},e.createElement("span",{className:"bcu-upload-status"},f),e.createElement(Xp,{percent:g}),i&&e.createElement(kf,{hasMultipleFailedUploads:r,onClick:c}),e.createElement("span",{className:"bcu-uploads-manager-toggle"}))},Of=({isExpanded:t,isVisible:r,isResumableUploadsEnabled:n,isDragging:o,items:i,onItemActionClick:a,onRemoveActionClick:s,onUpgradeCTAClick:l,onUploadsManagerActionClick:c,toggleUploadsManager:u,view:d})=>{let h=0,p=0,f=0;i.forEach((e=>{e.status===Fe||e.isFolder?e.status===Fe&&(h+=1):(p+=e.size,f+=e.size*e.progress/100)}));const g=f/p*100,m=n&&h>0,b=h>1;return e.createElement("div",{"data-resin-component":"uploadsmanager","data-resin-feature":"uploads",className:qt()("be bcu-uploads-manager-container",{"bcu-is-expanded":t,"bcu-is-visible":r})},e.createElement(If,{isDragging:o,isExpanded:t,isResumeVisible:m,isVisible:r,hasMultipleFailedUploads:b,onClick:u,onKeyDown:e=>{switch(e.key){case"Enter":case"Space":u()}},onUploadsManagerActionClick:c,percent:g,view:d}),e.createElement("div",{className:"bcu-uploads-manager-item-list"},e.createElement(ff,{isResumableUploadsEnabled:n,items:i,onClick:a,onRemoveClick:s,onUpgradeCTAClick:l,view:d})))};function Tf(){return Tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tf.apply(null,arguments)}const Af=({isLoading:t,hasFiles:r,errorCode:n,onCancel:o,onClose:i,onUpload:a,fileLimit:s,isDone:l})=>{const c=r,u=!r||l,d=!r;let h;if(n===Ke)h=e.createElement(Qn,Tf({},fo.uploadErrorTooManyFiles,{values:{fileLimit:s}}));return e.createElement("div",{className:"bcu-footer"},e.createElement("div",{className:"bcu-footer-left"},i?e.createElement(Ro,{disabled:c,isDisabled:c,onClick:i,type:"button"},e.createElement(Qn,fo.close)):null),h&&e.createElement("div",{className:"bcu-footer-message"},h),e.createElement("div",{className:"bcu-footer-right"},e.createElement(Ro,{disabled:u,isDisabled:u,onClick:o,type:"button"},e.createElement(Qn,fo.cancel)),e.createElement(cf,{disabled:d,isDisabled:d,isLoading:t,onClick:a,type:"button"},e.createElement(Qn,fo.upload))))};function xf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xf(Object(r),!0).forEach((function(t){Rf(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Rf(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Nf=104857600;class Lf extends e.Component{constructor(e){super(e),Rf(this,"isAutoExpanded",!1),Rf(this,"getBaseAPIOptions",(()=>{const{token:e,sharedLink:t,sharedLinkPassword:r,apiHost:n,uploadHost:o,clientName:i,requestInterceptor:a,responseInterceptor:s}=this.props;return{token:e,sharedLink:t,sharedLinkPassword:r,apiHost:n,uploadHost:o,clientName:i,requestInterceptor:a,responseInterceptor:s}})),Rf(this,"getNewFiles",(e=>{const{rootFolderId:t}=this.props,{itemIds:r}=this.state;return Array.from(e).filter((e=>!r[xs(e,t)]))})),Rf(this,"getNewDataTransferItems",(e=>{const{rootFolderId:t}=this.props,{itemIds:r}=this.state;return Array.from(e).filter((e=>!r[Ps(e,t)]))})),Rf(this,"addFilesToUploadQueue",((e,t,r=!1)=>{const{onBeforeUpload:n,rootFolderId:o,isPrepopulateFilesEnabled:i}=this.props;if(!e||0===e.length)return;const a=this.getNewFiles(e);if(0===a.length)return;const s={};a.forEach((e=>{s[xs(e,o)]=!0})),clearTimeout(this.resetItemsTimeout);const l=ws(a[0]);this.setState((e=>({itemIds:Pf(Pf({},e.itemIds),s)})),(()=>{n(a),l.webkitRelativePath&&!r?this.addFilesWithRelativePathToQueue(a,t):this.addFilesWithoutRelativePathToQueue(a,i?this.upload:t)}))})),Rf(this,"addDroppedItemsToUploadQueue",((e,t)=>{e.items?this.addDataTransferItemsToUploadQueue(e.items,t):this.addFilesToUploadQueue(Array.from(e.files),t)})),Rf(this,"addDataTransferItemsToUploadQueue",((e,t)=>{const{isFolderUploadEnabled:r}=this.props;if(!e||0===e.length)return;const n=[],o=[],i=[];Array.from(e).forEach((e=>{const t=Ts(e);u.isSafari()&&function(e){const t=Es(e);return Ts(t)&&"application/zip"===t.type&&"file"===t.kind}(e)?i.push(e):t&&r?n.push(e):t||o.push(e)})),this.addFileDataTransferItemsToUploadQueue(o,t),this.addPackageDataTransferItemsToUploadQueue(i,t),this.addFolderDataTransferItemsToUploadQueue(n,t)})),Rf(this,"addFileDataTransferItemsToUploadQueue",(async(e,t)=>{const r=await Promise.all(e.map((async e=>async function(e){const t=Os(Es(e));if(!t)return null;const r=await As(t);return _s(e)?{file:r,options:Ss(e)}:r}(e)))),n=[];r.forEach((e=>{e&&n.push(e)})),this.addFilesToUploadQueue(n,t)})),Rf(this,"addPackageDataTransferItemsToUploadQueue",(async(e,t)=>{const r=await Promise.all(e.map((async e=>function(e){const t=Es(e);if(!Os(t))return null;const r=t.getAsFile();return _s(e)?{file:r,options:Ss(e)}:r}(e)))),n=[];r.forEach((e=>{e&&n.push(e)})),this.addFilesToUploadQueue(n,t)})),Rf(this,"addFolderDataTransferItemsToUploadQueue",(async(e,t)=>{const{rootFolderId:r}=this.props,{itemIds:n}=this.state;if(0===e.length)return;const o=this.getNewDataTransferItems(e);if(o.forEach((e=>{n[Ps(e,r)]=!0})),0===o.length)return;const i=Ss(o[0]),{folderId:a=r}=i,s=await Promise.all(o.map((async e=>{const t=this.getFolderUploadAPI(a);return await t.buildFolderTreeFromDataTransferItem(e),t}))),l=[];s.forEach((e=>{l.push({api:e,extension:"",isFolder:!0,name:e.folder.name,options:i,progress:0,size:1,status:Le})})),this.addToQueue(l,t)})),Rf(this,"getFolderUploadAPI",(e=>{const t=this.getBaseAPIOptions();return new Gl(this.addFilesToUploadQueue,e,this.addToQueue,t)})),Rf(this,"addFolderToUploadQueue",((e,t,r)=>{this.addToQueue([{api:e,extension:"",isFolder:!0,name:e.folder.name,options:r,progress:0,size:1,status:Le}],t)})),Rf(this,"addFilesWithoutRelativePathToQueue",((e,t)=>{const{itemIds:r}=this.state,{rootFolderId:n}=this.props,o=e.map((e=>{const t=ws(e),o=Cs(e),{name:i,size:a}=t;let s=i.substr(i.lastIndexOf(".")+1);s.length===i.length&&(s="");const l={api:this.getUploadAPI(t,o),extension:s,file:t,name:i,progress:0,size:a,status:Le};return o&&(l.options=o),r[xs(l,n)]=!0,l}));0!==o.length&&(this.setState({itemIds:r}),this.addToQueue(o,t))})),Rf(this,"addToQueue",((e,t)=>{const{fileLimit:r,useUploadsManager:n}=this.props,{items:o,isUploadsManagerExpanded:i}=this.state;let a=[];const s=o.length,l=s+e.length;l>r?(a=o.concat(e.slice(0,r-o.length)),this.setState({errorCode:Ke})):(a=o.concat(e),this.setState({errorCode:""}),s<5&&l>=5&&n&&!i&&(this.isAutoExpanded=!0,this.expandUploadsManager())),this.updateViewAndCollection(a,(()=>{t&&t();const{view:e}=this.state;e===w&&this.upload()}))})),Rf(this,"removeFileFromUploadQueue",(e=>{const{onCancel:t,useUploadsManager:r}=this.props,{items:n}=this.state;this.setState({errorCode:""});const{api:o}=e;o.cancel(),n.splice(n.indexOf(e),1),t([e]),this.updateViewAndCollection(n,(()=>{r&&!n.length&&this.minimizeUploadsManager();const{view:e}=this.state;e===w&&this.upload()}))})),Rf(this,"cancel",(()=>{const{items:e}=this.state;e.forEach((e=>{const{api:t,status:r}=e;r===Me&&t.cancel()})),this.updateViewAndCollection([])})),Rf(this,"upload",(()=>{const{items:e}=this.state;e.forEach((e=>{e.status===Le&&this.uploadFile(e)}))})),Rf(this,"handleUploadSuccess",((e,t)=>{const{onUpload:r,useUploadsManager:n}=this.props;if(e.progress=100,e.error||(e.status=Ue),t&&1===t.length){const[r]=t;e.boxFile=r}const{items:o}=this.state;o[o.indexOf(e)]=e,n?(r(e),this.checkClearUploadItems()):r(e.boxFile),this.updateViewAndCollection(o,(()=>{const{view:e}=this.state;e===w&&this.upload()}))})),Rf(this,"resetUploadManagerExpandState",(()=>{this.isAutoExpanded=!1,this.setState({isUploadsManagerExpanded:!1})})),Rf(this,"handleUploadError",((e,t)=>{const{onError:r,useUploadsManager:n}=this.props,{file:o}=e,{items:i}=this.state;e.status=Fe,e.error=t;const a=[...i],s=a.findIndex((t=>t===e));-1!==s&&(a[s]=e);r(n?{item:e,error:t}:{file:o,error:t}),this.updateViewAndCollection(a,(()=>{n&&(this.isAutoExpanded=!0,this.expandUploadsManager());const{view:e}=this.state;e===w&&this.upload()}))})),Rf(this,"handleUploadProgress",((e,t)=>{if(!t.total||e.status===Ue||e.status===De)return;e.progress=Math.min(Math.round(t.loaded/t.total*100),100),e.status=100===e.progress?De:Me;const{onProgress:r}=this.props;r(e);const{items:n}=this.state;n[n.indexOf(e)]=e,this.updateViewAndCollection(n)})),Rf(this,"onClick",(e=>{const{chunked:t,isResumableUploadsEnabled:r,onClickCancel:n,onClickResume:o,onClickRetry:i}=this.props,{status:a,file:s}=e,l=t&&!e.isFolder&&s.size>Nf&&Rs(),c=r&&l&&e.api.sessionId;switch(a){case Me:case De:case Ue:case Le:this.removeFileFromUploadQueue(e),n(e);break;case Fe:c?(e.bytesUploadedOnLastResume=e.api.totalUploadedBytes,this.resumeFile(e),o(e)):(this.resetFile(e),this.uploadFile(e),i(e))}})),Rf(this,"clickAllWithStatus",(e=>{const{items:t}=this.state;t.forEach((t=>{e&&t.status!==e||this.onClick(t)}))})),Rf(this,"expandUploadsManager",(()=>{const{useUploadsManager:e}=this.props;e&&(clearTimeout(this.resetItemsTimeout),this.setState({isUploadsManagerExpanded:!0}))})),Rf(this,"minimizeUploadsManager",(()=>{const{useUploadsManager:e,onMinimize:t}=this.props;e&&t&&(clearTimeout(this.resetItemsTimeout),t(),this.resetUploadManagerExpandState(),this.checkClearUploadItems())})),Rf(this,"checkClearUploadItems",(()=>{this.resetItemsTimeout=setTimeout(this.resetUploadsManagerItemsWhenUploadsComplete,8e3)})),Rf(this,"toggleUploadsManager",(()=>{const{isUploadsManagerExpanded:e}=this.state;e?this.minimizeUploadsManager():this.expandUploadsManager()})),Rf(this,"resetUploadsManagerItemsWhenUploadsComplete",(()=>{const{view:e,items:t,isUploadsManagerExpanded:r}=this.state,{useUploadsManager:n,onCancel:o}=this.props;r&&n&&t.length||e===w||(o(t),this.setState({items:[],itemIds:{}}))})),Rf(this,"addFilesWithOptionsToUploadQueueAndStartUpload",((e,t)=>{this.addFilesToUploadQueue(e,this.upload),this.addDataTransferItemsToUploadQueue(t,this.upload)}));const{rootFolderId:t,token:r,useUploadsManager:n}=e;this.state={view:t&&r||n?_:v,items:[],errorCode:"",itemIds:{},isUploadsManagerExpanded:!1},this.id=Jt()("bcu_")}componentDidMount(){this.rootElement=document.getElementById(this.id),this.appElement=this.rootElement;const{files:e,isPrepopulateFilesEnabled:t}=this.props;t&&e&&e.length>0&&this.addFilesToUploadQueue(e,this.upload)}componentWillUnmount(){this.cancel()}componentDidUpdate(){const{files:e,dataTransferItems:t,useUploadsManager:r}=this.props,n=Array.isArray(e)&&e.length>0,o=Array.isArray(t)&&t.length>0;r&&(n||o)&&this.addFilesWithOptionsToUploadQueueAndStartUpload(e,t)}createAPIFactory(e){const{rootFolderId:t}=this.props,r=Wt()(e,"folderId")||t,n=Wt()(e,"fileId"),o=`${x}${r}`;const i=n?Xi(n):null;return new sh(Pf(Pf({},this.getBaseAPIOptions()),{},{id:i||o},e))}addFilesWithRelativePathToQueue(e,t){if(0===e.length)return;const{rootFolderId:r}=this.props,n=Cs(e[0]),{folderId:o=r}=n,i=this.getFolderUploadAPI(o);i.buildFolderTreeFromWebkitRelativePath(e),this.addFolderToUploadQueue(i,t,n)}getUploadAPI(e,t){const{chunked:r,isResumableUploadsEnabled:n,isUploadFallbackLogicEnabled:o}=this.props,{size:i}=e,a=this.createAPIFactory(t);if(r&&i>Nf){if(Rs()){const e=a.getChunkedUploadAPI();return n&&(e.isResumableUploadsEnabled=!0),o&&(e.isUploadFallbackLogicEnabled=!0),e}console.warn("Chunked uploading is enabled, but not supported by your browser. You may need to enable HTTPS.")}const s=a.getPlainUploadAPI();return o&&(s.isUploadFallbackLogicEnabled=!0),s}uploadFile(e){const{overwrite:t,rootFolderId:r}=this.props,{api:n,file:o,options:i}=e,{items:a}=this.state;if(a.filter((e=>e.status===Me)).length>=6)return;const s={file:o,folderId:i&&i.folderId?i.folderId:r,errorCallback:t=>this.handleUploadError(e,t),progressCallback:t=>this.handleUploadProgress(e,t),successCallback:t=>this.handleUploadSuccess(e,t),overwrite:t,fileId:i&&i.fileId?i.fileId:null};e.status=Me,a[a.indexOf(e)]=e,n.upload(s),this.updateViewAndCollection(a)}resumeFile(e){const{overwrite:t,rootFolderId:r,onResume:n}=this.props,{api:o,file:i,options:a}=e,{items:s}=this.state;if(s.filter((e=>e.status===Me)).length>=6)return;const l={file:i,folderId:a&&a.folderId?a.folderId:r,errorCallback:t=>this.handleUploadError(e,t),progressCallback:t=>this.handleUploadProgress(e,t),successCallback:t=>this.handleUploadSuccess(e,t),overwrite:t,sessionId:o&&o.sessionId?o.sessionId:null,fileId:a&&a.fileId?a.fileId:null};e.status=Me,delete e.error,s[s.indexOf(e)]=e,n(e),o.resume(l),this.updateViewAndCollection(s)}resetFile(e){const{api:t,file:r,options:n}=e;t&&"function"==typeof t.cancel&&t.cancel(),e.api=this.getUploadAPI(r,n),e.progress=0,e.status=Le,delete e.error;const{items:o}=this.state;o[o.indexOf(e)]=e,this.updateViewAndCollection(o)}updateViewAndCollection(e,t){const{onComplete:r,useUploadsManager:n,isResumableUploadsEnabled:o,isPartialUploadEnabled:i}=this.props,a=e.some((e=>e.status!==Ue)),s=e.some((e=>e.status===Fe)),l=!e.some((e=>e.status!==Le)),c=e.every((e=>e.status!==Le&&e.status!==Me)),u=e.every((e=>e.status===Ue||e.status===Fe)),d=o?u:c;let h="";if(e&&0===e.length||l)h=_;else if(i&&u){const t=e.filter((e=>e.status===Ue));h=E,n||(r(Qi()(t.map((e=>e.boxFile)))),e=[])}else s&&n?h=v:a?h=w:(h=E,n||(r(Qi()(e.map((e=>e.boxFile)))),e=[]));d&&n&&(this.isAutoExpanded&&this.resetUploadManagerExpandState(),r(e));const p={items:e,view:h};0===e.length&&(p.itemIds={},p.errorCode=""),this.setState(p,t)}render(){const{className:t,fileLimit:r,isDraggingItemsToUploadsManager:n=!1,isFolderUploadEnabled:o,isResumableUploadsEnabled:i,isTouch:a,language:s,measureRef:l,messages:c,onClose:u,onUpgradeCTAClick:d,useUploadsManager:h}=this.props,{view:p,items:f,errorCode:g,isUploadsManagerExpanded:m}=this.state,b=!(0===f.length)||!!n,y=0!==f.length,v=f.some((e=>e.status===Me)),_=f.every((e=>e.status===Ue||e.status===De)),w=qt()("bcu",t,{"be-app-element":!h,be:!h});return e.createElement(bs,{language:s,messages:c},h?e.createElement("div",{ref:l,className:w,id:this.id},e.createElement(Of,{isDragging:n,isExpanded:m,isResumableUploadsEnabled:i,isVisible:b,items:f,onItemActionClick:this.onClick,onRemoveActionClick:this.removeFileFromUploadQueue,onUpgradeCTAClick:d,onUploadsManagerActionClick:this.clickAllWithStatus,toggleUploadsManager:this.toggleUploadsManager,view:p})):e.createElement("div",{ref:l,className:w,id:this.id},e.createElement(Cf,{addDataTransferItemsToUploadQueue:this.addDroppedItemsToUploadQueue,addFiles:this.addFilesToUploadQueue,allowedTypes:["Files"],isFolderUploadEnabled:o,isTouch:a,items:f,onClick:this.onClick,view:p}),e.createElement(Af,{errorCode:g,fileLimit:r,hasFiles:y,isLoading:v,onCancel:this.cancel,onClose:u,onUpload:this.upload,isDone:_})))}}Rf(Lf,"defaultProps",{rootFolderId:Pe,apiHost:Te,chunked:!0,className:"",clientName:Ne,fileLimit:100,uploadHost:Ae,onBeforeUpload:Dt(),onClickCancel:Dt(),onClickResume:Dt(),onClickRetry:Dt(),onClose:Dt(),onComplete:Dt(),onError:Dt(),onResume:Dt(),onUpload:Dt(),onProgress:Dt(),overwrite:!0,useUploadsManager:!1,files:[],onMinimize:Dt(),onCancel:Dt(),isFolderUploadEnabled:!1,isResumableUploadsEnabled:!1,isUploadFallbackLogicEnabled:!1,dataTransferItems:[],isDraggingItemsToUploadsManager:!1,isPartialUploadEnabled:!1,isPrepopulateFilesEnabled:!1});const Mf=Ma(Lf);Bt(Ne)(Mf);function Df(){return Df=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Df.apply(null,arguments)}const Uf=Gn((({isOpen:t,currentFolderId:r,token:n,sharedLink:o,sharedLinkPassword:i,apiHost:a,uploadHost:s,onClose:l,parentElement:c,appElement:u,onUpload:d,contentUploaderProps:h,requestInterceptor:p,responseInterceptor:f,intl:g})=>e.createElement(Lt(),{appElement:u,className:"be-modal-dialog-content-full-bleed",contentLabel:g.formatMessage(fo.upload),isOpen:t,onRequestClose:l,overlayClassName:je,parentSelector:()=>c,portalClassName:`${He} be-modal-upload`},e.createElement(Mf,Df({},h,{apiHost:a,onClose:l,onComplete:d,requestInterceptor:p,responseInterceptor:f,rootFolderId:r,sharedLink:o,sharedLinkPassword:i,token:n,uploadHost:s})))));function Ff(){return Ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ff.apply(null,arguments)}const jf=Gn((({isOpen:t,onCreate:r,onCancel:n,isLoading:o,errorCode:i,parentElement:a,appElement:s,intl:l})=>{let c,u=null;const d=()=>{u&&u.value&&r(u.value)};switch(i){case qe:c=fo.createDialogErrorInUse;break;case ze:c=fo.createDialogErrorTooLong;break;default:c=i?fo.createDialogErrorInvalid:null}return e.createElement(Lt(),{appElement:s,className:"be-modal-dialog-content",contentLabel:l.formatMessage(fo.createDialogLabel),isOpen:t,onRequestClose:n,overlayClassName:je,parentSelector:()=>a,portalClassName:He},e.createElement("label",null,c?e.createElement("div",{className:"be-modal-error"},e.createElement(Qn,c)):null,e.createElement(Qn,Ff({tagName:"div"},fo.createDialogText)),e.createElement("input",{ref:e=>{u=e,u instanceof HTMLInputElement&&(u.focus(),u.select())},onKeyDown:({key:e})=>{if("Enter"===e)d()},required:!0,type:"text"})),e.createElement("div",{className:"be-modal-btns"},e.createElement(cf,{"data-testid":"be-btn-create-folder",isLoading:o,onClick:d,type:"button"},e.createElement(Qn,fo.create)),e.createElement(Ro,{"data-testid":"be-btn-create-folder-cancel",isDisabled:o,onClick:n,type:"button"},e.createElement(Qn,fo.cancel))))}));var Hf=__nested_webpack_require_646968__(99351),Bf=__nested_webpack_require_646968__.n(Hf);Gn((({className:t,intl:r,onClick:n})=>e.createElement(Ro,{"aria-label":r.formatMessage(vi.close),className:qt()("bdl-CloseButton",t),"data-testid":"bdl-CloseButton",onClick:n,type:xo.BUTTON},e.createElement(nf,{color:oo,height:18,width:18}))));class zf extends e.Component{constructor(...e){super(...e),SubmenuItem_defineProperty(this,"state",{isSubmenuOpen:!1,submenuFocusIndex:null}),SubmenuItem_defineProperty(this,"getMenuAlignmentClasses",(()=>{if(!this.submenuTriggerEl||!this.submenuEl)return{};const{rightBoundaryElement:e,bottomBoundaryElement:t}=this.props,r=this.submenuEl.getBoundingClientRect(),n=this.submenuTriggerEl.getBoundingClientRect(),o=e?e.getBoundingClientRect():{right:window.innerWidth},i=t?t.getBoundingClientRect():{bottom:window.innerHeight};return{"is-left-aligned":n.right+r.width>o.right,"is-bottom-aligned":n.top+r.height>i.bottom,"is-right-bottom-aligned":n.bottom+r.height>i.bottom}})),SubmenuItem_defineProperty(this,"handleMenuItemClick",(e=>{const{isDisabled:t,onClick:r}=this.props;if(t)return e.stopPropagation(),void e.preventDefault();r&&r(e),this.submenuEl&&!this.submenuEl.contains(e.target)&&(e.stopPropagation(),e.preventDefault())})),SubmenuItem_defineProperty(this,"handleKeyDown",(e=>{switch(e.key){case" ":case"Enter":case"ArrowRight":e.stopPropagation(),e.preventDefault(),this.openSubmenuAndFocus()}})),SubmenuItem_defineProperty(this,"closeSubmenu",Vt()((()=>{this.setState({isSubmenuOpen:!1})}),50)),SubmenuItem_defineProperty(this,"closeSubmenuAndFocusTrigger",(e=>{this.closeSubmenu(),this.submenuTriggerEl&&e&&this.submenuTriggerEl.focus()})),SubmenuItem_defineProperty(this,"openSubmenu",(()=>{this.closeSubmenu.cancel();const{onOpen:e}=this.props;e&&e(),this.setState({isSubmenuOpen:!0,submenuFocusIndex:null})})),SubmenuItem_defineProperty(this,"openSubmenuAndFocus",(()=>{const{onOpen:e}=this.props;e&&e(),this.setState({isSubmenuOpen:!0,submenuFocusIndex:0})}))}render(){const t=this.props,{children:r,className:n,isDisabled:o}=t,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(0;n<i.length;n++)i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,SubmenuItem_excluded),{isSubmenuOpen:a,submenuFocusIndex:s}=this.state,l=e.Children.toArray(r),c=l[0],u=l[1];if(2!==l.length||!c||!u)throw new Error("SubmenuItem must have exactly two children, a trigger component and a <Menu>");const d=e.createElement(fill_Arrow16,{className:"menu-item-arrow",width:12,height:12}),h=SubmenuItem_objectSpread(SubmenuItem_objectSpread({},Ft()(i,["bottomBoundaryElement","onClick","onOpen","rightBoundaryElement","role","tabIndex"])),{},{"aria-disabled":o?"true":void 0,"aria-expanded":a?"true":"false","aria-haspopup":"true",className:qt()("menu-item","submenu-target",n),onClick:this.handleMenuItemClick,onMouseLeave:this.closeSubmenu,onMouseEnter:this.openSubmenu,onKeyDown:this.handleKeyDown,ref:e=>{this.submenuTriggerEl=e},role:"menuitem",tabIndex:-1}),p={className:qt()(u.props.className,"submenu",this.getMenuAlignmentClasses()),initialFocusIndex:s,isHidden:!a,isSubmenu:!0,onClose:this.closeSubmenuAndFocusTrigger,setRef:e=>{this.submenuEl=e}};return e.createElement("li",h,c,d,e.cloneElement(u,p))}}function qf(){return qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qf.apply(null,arguments)}const Kf=({onPageClick:t,pageCount:r=0,pageNumber:n=0})=>e.createElement(qo,{className:"bdl-Pagination-dropdown",constrainToWindow:!0,isRightAligned:!0},e.createElement(Ro,{className:"bdl-Pagination-toggle"},e.createElement(Qn,qf({},fo.pageStatus,{values:{pageNumber:n,pageCount:r}}))),e.createElement(Xo,{className:"bdl-Pagination-dropdownMenu"},Bf()(1,r+1).map((r=>e.createElement(ri,{key:r,isDisabled:r===n,onClick:()=>t(r)},r))))),Vf=({children:t,className:r="",isDisabled:n})=>e.createElement("div",{className:`btn-group ${r} ${n?"is-disabled":""}`},t),Gf=({className:t="",color:r="#000000",height:n=13,title:o,width:i=8})=>e.createElement(to,{className:`icon-page-back ${t}`,height:n,title:o,viewBox:"0 0 8 13",width:i},e.createElement("path",{className:"fill-color",d:"M.1 11.3l4.6-4.5L.1 2.2 1.5.8l6 6-6 6-1.4-1.5z",fill:r,fillRule:"evenodd",transform:"rotate(180 4 7)"})),Wf=({className:t="",color:r="#000000",height:n=13,title:o,width:i=8})=>e.createElement(to,{className:`icon-page-forward ${t}`,height:n,title:o,viewBox:"0 0 8 13",width:i},e.createElement("path",{className:"fill-color",d:"M.1 11.3l4.6-4.5L.1 2.2 1.5.8l6 6-6 6-1.4-1.5z",fill:r,fillRule:"evenodd"})),$f={height:9,width:6},Jf=({handleNextClick:t,handlePreviousClick:r,hasNextPage:n,hasPreviousPage:o,isOffsetBasedPagination:i=!0,onPageClick:a,pageCount:s=0,pageNumber:l=0})=>e.createElement("div",{className:"bdl-Pagination"},i&&e.createElement("div",{className:"bdl-Pagination-count"},e.createElement(Kf,{onPageClick:a,pageCount:s,pageNumber:l})),e.createElement(Vf,{className:"bdl-Pagination-nav"},e.createElement(xi,{isDisabled:!o,text:e.createElement(Qn,fo.previousPage)},e.createElement(Ro,{isDisabled:!o,onClick:r},e.createElement(Gf,$f))),e.createElement(xi,{isDisabled:!n,text:e.createElement(Qn,fo.nextPage)},e.createElement(Ro,{isDisabled:!n,onClick:t},e.createElement(Wf,$f))))),Yf=({hasNextMarker:t=!1,hasPrevMarker:r=!1,onMarkerBasedPageChange:n=Dt()})=>{if(!t&&!r)return null;return e.createElement(Jf,{handleNextClick:()=>{n(1)},handlePreviousClick:()=>{n(-1)},hasNextPage:t,hasPreviousPage:r,isOffsetBasedPagination:!1})},Qf=({offset:t=0,onOffsetChange:r=Dt(),pageSize:n=50,totalCount:o=0})=>{const i=Math.ceil(o/n);if(i<=1)return null;const a=Math.floor(t/n)+1,s=a>0?Math.min(i,a):1,l=s<i,c=s>1,u=e=>{let t=(e-1)*n;t<=0&&(t=0),t>=o&&(t=o-n),r(t)};return e.createElement(Jf,{handleNextClick:()=>{u(s+1)},handlePreviousClick:()=>{u(s-1)},hasNextPage:l,hasPreviousPage:c,isOffsetBasedPagination:!0,onPageClick:u,pageCount:i,pageNumber:s})},Xf=["hasNextMarker","hasPrevMarker","onMarkerBasedPageChange"];const Zf=t=>{let{hasNextMarker:r,hasPrevMarker:n,onMarkerBasedPageChange:o}=t,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,Xf);return r||n?e.createElement(Yf,{hasNextMarker:r,hasPrevMarker:n,onMarkerBasedPageChange:o}):e.createElement(Qf,i)};__nested_webpack_require_646968__(58631);function eg(e){if(!(e&&e instanceof HTMLElement))return!1;const t=e.tagName.toLowerCase();return"input"===t||"select"===t||"textarea"===t||"div"===t&&!!e.getAttribute("contenteditable")}function tg(e){if(!(e&&e instanceof HTMLElement))return!1;const t=e.tagName.toLowerCase(),r=e.classList.contains("checkbox-pointer-target")||e.parentElement instanceof HTMLElement&&e.parentElement.classList.contains("checkbox-label"),n=e.classList.contains("btn-content")||e.parentElement instanceof HTMLElement&&e.parentElement.classList.contains("btn")||e.parentElement instanceof HTMLElement&&e.parentElement.classList.contains("bdl-Button")||!1;return eg(e)||"button"===t||"a"===t||"option"===t||r||n}function rg(e,t,r=!0){if(!e)return;if(!t)return void e.focus();const n=e.querySelector(t);n&&"function"==typeof n.focus?n.focus():r&&e.focus()}const ng=({className:t="",color:r=no,height:n=126,title:o,width:i=130})=>e.createElement(to,{className:`folder-empty-state ${t}`,height:n,title:o,viewBox:"0 0 150 150",width:i},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("ellipse",{className:"fill-color fill-opacity",cx:"75",cy:"142",fill:r,fillOpacity:"0.1",rx:"32.5",ry:"3"}),e.createElement("path",{className:"fill-color",d:"M97,6.1337822 L97,5.49178758 C97,5.2201808 97.2319336,5 97.5,5 C97.7761424,5 98,5.21505737 98,5.49047852 L98,6.1337822 C98.151814,6.22160185 98.2783981,6.348186 98.3662178,6.5 L99.0095215,6.5 C99.2804053,6.5 99.5,6.73193359 99.5,7 C99.5,7.27614237 99.2849426,7.5 99.0095215,7.5 L98.3662178,7.5 C98.2783981,7.651814 98.151814,7.77839815 98,7.8662178 L98,8.50952148 C98,8.78040529 97.7680664,9 97.5,9 C97.2238576,9 97,8.76897915 97,8.49525623 L97,7.8662178 C96.848186,7.77839815 96.7216019,7.651814 96.6337822,7.5 L95.9904785,7.5 C95.7195947,7.5 95.5,7.26806641 95.5,7 C95.5,6.72385763 95.7150574,6.5 95.9904785,6.5 L96.6337822,6.5 C96.7216019,6.348186 96.848186,6.22160185 97,6.1337822 Z M9.5,89.6337822 L9.5,88.9917876 C9.5,88.7201808 9.73193359,88.5 10,88.5 C10.2761424,88.5 10.5,88.7150574 10.5,88.9904785 L10.5,89.6337822 C10.651814,89.7216019 10.7783981,89.848186 10.8662178,90 L11.5095215,90 C11.7804053,90 12,90.2319336 12,90.5 C12,90.7761424 11.7849426,91 11.5095215,91 L10.8662178,91 C10.7783981,91.151814 10.651814,91.2783981 10.5,91.3662178 L10.5,92.0095215 C10.5,92.2804053 10.2680664,92.5 10,92.5 C9.72385763,92.5 9.5,92.2689791 9.5,91.9952562 L9.5,91.3662178 C9.348186,91.2783981 9.22160185,91.151814 9.1337822,91 L8.49047852,91 C8.21959471,91 8,90.7680664 8,90.5 C8,90.2238576 8.21505737,90 8.49047852,90 L9.1337822,90 C9.22160185,89.848186 9.348186,89.7216019 9.5,89.6337822 Z M137.5,84.6337822 L137.5,83.9917876 C137.5,83.7201808 137.731934,83.5 138,83.5 C138.276142,83.5 138.5,83.7150574 138.5,83.9904785 L138.5,84.6337822 C138.651814,84.7216019 138.778398,84.848186 138.866218,85 L139.509521,85 C139.780405,85 140,85.2319336 140,85.5 C140,85.7761424 139.784943,86 139.509521,86 L138.866218,86 C138.778398,86.151814 138.651814,86.2783981 138.5,86.3662178 L138.5,87.0095215 C138.5,87.2804053 138.268066,87.5 138,87.5 C137.723858,87.5 137.5,87.2689791 137.5,86.9952562 L137.5,86.3662178 C137.348186,86.2783981 137.221602,86.151814 137.133782,86 L136.490479,86 C136.219595,86 136,85.7680664 136,85.5 C136,85.2238576 136.215057,85 136.490479,85 L137.133782,85 C137.221602,84.848186 137.348186,84.7216019 137.5,84.6337822 Z M113.5,23.1337822 L113.5,22.4917876 C113.5,22.2201808 113.731934,22 114,22 C114.276142,22 114.5,22.2150574 114.5,22.4904785 L114.5,23.1337822 C114.651814,23.2216019 114.778398,23.348186 114.866218,23.5 L115.509521,23.5 C115.780405,23.5 116,23.7319336 116,24 C116,24.2761424 115.784943,24.5 115.509521,24.5 L114.866218,24.5 C114.778398,24.651814 114.651814,24.7783981 114.5,24.8662178 L114.5,25.5095215 C114.5,25.7804053 114.268066,26 114,26 C113.723858,26 113.5,25.7689791 113.5,25.4952562 L113.5,24.8662178 C113.348186,24.7783981 113.221602,24.651814 113.133782,24.5 L112.490479,24.5 C112.219595,24.5 112,24.2680664 112,24 C112,23.7238576 112.215057,23.5 112.490479,23.5 L113.133782,23.5 C113.221602,23.348186 113.348186,23.2216019 113.5,23.1337822 Z M33.5,20.6337822 L33.5,19.9917876 C33.5,19.7201808 33.7319336,19.5 34,19.5 C34.2761424,19.5 34.5,19.7150574 34.5,19.9904785 L34.5,20.6337822 C34.651814,20.7216019 34.7783981,20.848186 34.8662178,21 L35.5095215,21 C35.7804053,21 36,21.2319336 36,21.5 C36,21.7761424 35.7849426,22 35.5095215,22 L34.8662178,22 C34.7783981,22.151814 34.651814,22.2783981 34.5,22.3662178 L34.5,23.0095215 C34.5,23.2804053 34.2680664,23.5 34,23.5 C33.7238576,23.5 33.5,23.2689791 33.5,22.9952562 L33.5,22.3662178 C33.348186,22.2783981 33.2216019,22.151814 33.1337822,22 L32.4904785,22 C32.2195947,22 32,21.7680664 32,21.5 C32,21.2238576 32.2150574,21 32.4904785,21 L33.1337822,21 C33.2216019,20.848186 33.348186,20.7216019 33.5,20.6337822 Z M132.5,52.6337822 L132.5,51.9917876 C132.5,51.7201808 132.731934,51.5 133,51.5 C133.276142,51.5 133.5,51.7150574 133.5,51.9904785 L133.5,52.6337822 C133.651814,52.7216019 133.778398,52.848186 133.866218,53 L134.509521,53 C134.780405,53 135,53.2319336 135,53.5 C135,53.7761424 134.784943,54 134.509521,54 L133.866218,54 C133.778398,54.151814 133.651814,54.2783981 133.5,54.3662178 L133.5,55.0095215 C133.5,55.2804053 133.268066,55.5 133,55.5 C132.723858,55.5 132.5,55.2689791 132.5,54.9952562 L132.5,54.3662178 C132.348186,54.2783981 132.221602,54.151814 132.133782,54 L131.490479,54 C131.219595,54 131,53.7680664 131,53.5 C131,53.2238576 131.215057,53 131.490479,53 L132.133782,53 C132.221602,52.848186 132.348186,52.7216019 132.5,52.6337822 Z M27.9375,28.7086139 L27.9375,28.3073672 C27.9375,28.137613 28.0824585,28 28.25,28 C28.422589,28 28.5625,28.1344109 28.5625,28.3065491 L28.5625,28.7086139 C28.6573838,28.7635012 28.7364988,28.8426162 28.7913861,28.9375 L29.1934509,28.9375 C29.3627533,28.9375 29.5,29.0824585 29.5,29.25 C29.5,29.422589 29.3655891,29.5625 29.1934509,29.5625 L28.7913861,29.5625 C28.7364988,29.6573838 28.6573838,29.7364988 28.5625,29.7913861 L28.5625,30.1934509 C28.5625,30.3627533 28.4175415,30.5 28.25,30.5 C28.077411,30.5 27.9375,30.355612 27.9375,30.1974433 L27.9375,29.7913861 C27.8426162,29.7364988 27.7635012,29.6573838 27.7086139,29.5625 L27.3065491,29.5625 C27.1372467,29.5625 27,29.4175415 27,29.25 C27,29.077411 27.1344109,28.9375 27.3065491,28.9375 L27.7086139,28.9375 C27.7635012,28.8426162 27.8426162,28.7635012 27.9375,28.7086139 Z M16.4375,83.7086139 L16.4375,83.3073672 C16.4375,83.137613 16.5824585,83 16.75,83 C16.922589,83 17.0625,83.1344109 17.0625,83.3065491 L17.0625,83.7086139 C17.1573838,83.7635012 17.2364988,83.8426162 17.2913861,83.9375 L17.6934509,83.9375 C17.8627533,83.9375 18,84.0824585 18,84.25 C18,84.422589 17.8655891,84.5625 17.6934509,84.5625 L17.2913861,84.5625 C17.2364988,84.6573838 17.1573838,84.7364988 17.0625,84.7913861 L17.0625,85.1934509 C17.0625,85.3627533 16.9175415,85.5 16.75,85.5 C16.577411,85.5 16.4375,85.355612 16.4375,85.1974433 L16.4375,84.7913861 C16.3426162,84.7364988 16.2635012,84.6573838 16.2086139,84.5625 L15.8065491,84.5625 C15.6372467,84.5625 15.5,84.4175415 15.5,84.25 C15.5,84.077411 15.6344109,83.9375 15.8065491,83.9375 L16.2086139,83.9375 C16.2635012,83.8426162 16.3426162,83.7635012 16.4375,83.7086139 Z M123.4375,48.2086139 L123.4375,47.8073672 C123.4375,47.637613 123.582458,47.5 123.75,47.5 C123.922589,47.5 124.0625,47.6344109 124.0625,47.8065491 L124.0625,48.2086139 C124.157384,48.2635012 124.236499,48.3426162 124.291386,48.4375 L124.693451,48.4375 C124.862753,48.4375 125,48.5824585 125,48.75 C125,48.922589 124.865589,49.0625 124.693451,49.0625 L124.291386,49.0625 C124.236499,49.1573838 124.157384,49.2364988 124.0625,49.2913861 L124.0625,49.6934509 C124.0625,49.8627533 123.917542,50 123.75,50 C123.577411,50 123.4375,49.855612 123.4375,49.6974433 L123.4375,49.2913861 C123.342616,49.2364988 123.263501,49.1573838 123.208614,49.0625 L122.806549,49.0625 C122.637247,49.0625 122.5,48.9175415 122.5,48.75 C122.5,48.577411 122.634411,48.4375 122.806549,48.4375 L123.208614,48.4375 C123.263501,48.3426162 123.342616,48.2635012 123.4375,48.2086139 Z",fill:r}),e.createElement("path",{className:"stroke-color",d:"M68.8246342,87.5 C76.40963,91.8231286 93.0935221,92.3842512 94.8471309,98.1662993 C96.6007397,103.948347 51.5,108.892186 51.5,108.892186 L56.3324509,114.952313",stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),e.createElement("path",{className:"stroke-color",d:"M109.403973,65.6681213 C121.308377,94.6323489 136.937803,71.8237566 136.937803,71.8237566",stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),e.createElement("path",{className:"stroke-color",d:"M135,69.348975 C137.383789,74.3303392 145.105602,69 145.105602,69",stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),e.createElement("path",{className:"stroke-color",d:"M81.0723406,87.5 C73.4873447,91.8231286 56.8034526,92.3842512 55.0498438,98.1662993 C53.296235,103.948347 98.3969748,108.892186 98.3969748,108.892186 L93.5645239,114.952313",stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),e.createElement("path",{className:"stroke-color",d:"M13.0621966,65.6681213 C24.9666013,94.6323489 40.5960273,71.8237566 40.5960273,71.8237566",stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",transform:"translate(26.829112, 73.012365) scale(-1, 1) translate(-26.829112, -73.012365) "}),e.createElement("path",{className:"stroke-color",d:"M5,69.348975 C7.38378882,74.3303392 15.1056022,69 15.1056022,69",stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",transform:"translate(10.052801, 70.237963) scale(-1, 1) translate(-10.052801, -70.237963) "}),e.createElement("path",{className:"stroke-color fill-white",d:"M35,37.9900737 C35,37.1671287 35.6677833,36.5 36.5086652,36.5 L64.7706257,36.5 C65.6038385,36.5 66.5588137,37.1050351 66.9100361,37.8652661 L70.1170158,44.806865 C70.4653667,45.5608807 70.0812601,46.1721311 69.2572363,46.1721311 L36.4905247,46.1721311 C35.6673306,46.1721311 35,45.5073264 35,44.6820574 L35,37.9900737 Z",fill:"#FFFFFF",stroke:r,strokeWidth:"2"}),e.createElement("path",{className:"fill-color fill-opacity",d:"M36.7873881,39.9245 C36.7873881,39.101555 37.4555019,38.4344262 38.2810514,38.4344262 L63.4450865,38.4344262 C64.270014,38.4344262 65.1964383,39.054175 65.5149504,39.8202068 L68.3841724,46.7207768 C68.7023992,47.4861223 68.2883944,48.1065574 67.4517556,48.1065574 L38.2960054,48.1065574 C37.462819,48.1065574 36.7873881,47.4417526 36.7873881,46.6164836 L36.7873881,39.9245 Z",fill:r,fillOpacity:"0.1"}),e.createElement("rect",{className:"stroke-color fill-white",fill:"#FFFFFF",height:"53.1967213",rx:"1.5",stroke:r,strokeWidth:"2",width:"80",x:"35",y:"42.3032787"}),e.createElement("path",{className:"fill-color fill-opacity",d:"M37,81.7185235 C37,80.8915052 37.6574211,80.3784293 38.4748917,80.5333945 C38.4748917,80.5333945 42.0893396,81.8018989 62.3333333,81.8018989 C74.9176315,81.8018989 80.4976661,85.1139445 87.6666667,85.1139445 C102.165889,85.1139445 111.621106,80.7823489 111.621106,80.7823489 C112.382648,80.4723656 113,80.8978342 113,81.7185235 L113,92.0025509 C113,92.8295692 112.319761,93.5 111.498955,93.5 L38.5010449,93.5 C37.6720407,93.5 37,92.8232402 37,92.0025509 L37,81.7185235 Z",fill:r,fillOpacity:"0.1"}))),og=({className:t="",color:r=no,height:n=126,title:o,width:i=130})=>e.createElement(to,{className:`selected-items-empty-state ${t}`,height:n,title:o,viewBox:"0 0 150 150",width:i},e.createElement("g",{fill:"none",fillRule:"evenodd",id:"Export",stroke:"none",strokeWidth:"1"},e.createElement("path",{className:"fill-color",d:"M97,6.1337822 L97,5.49178758 C97,5.2201808 97.2319336,5 97.5,5 C97.7761424,5 98,5.21505737 98,5.49047852 L98,6.1337822 C98.151814,6.22160185 98.2783981,6.348186 98.3662178,6.5 L99.0095215,6.5 C99.2804053,6.5 99.5,6.73193359 99.5,7 C99.5,7.27614237 99.2849426,7.5 99.0095215,7.5 L98.3662178,7.5 C98.2783981,7.651814 98.151814,7.77839815 98,7.8662178 L98,8.50952148 C98,8.78040529 97.7680664,9 97.5,9 C97.2238576,9 97,8.76897915 97,8.49525623 L97,7.8662178 C96.848186,7.77839815 96.7216019,7.651814 96.6337822,7.5 L95.9904785,7.5 C95.7195947,7.5 95.5,7.26806641 95.5,7 C95.5,6.72385763 95.7150574,6.5 95.9904785,6.5 L96.6337822,6.5 C96.7216019,6.348186 96.848186,6.22160185 97,6.1337822 Z M6.5,89.6337822 L6.5,88.9917876 C6.5,88.7201808 6.73193359,88.5 7,88.5 C7.27614237,88.5 7.5,88.7150574 7.5,88.9904785 L7.5,89.6337822 C7.651814,89.7216019 7.77839815,89.848186 7.8662178,90 L8.50952148,90 C8.78040529,90 9,90.2319336 9,90.5 C9,90.7761424 8.78494263,91 8.50952148,91 L7.8662178,91 C7.77839815,91.151814 7.651814,91.2783981 7.5,91.3662178 L7.5,92.0095215 C7.5,92.2804053 7.26806641,92.5 7,92.5 C6.72385763,92.5 6.5,92.2689791 6.5,91.9952562 L6.5,91.3662178 C6.348186,91.2783981 6.22160185,91.151814 6.1337822,91 L5.49047852,91 C5.21959471,91 5,90.7680664 5,90.5 C5,90.2238576 5.21505737,90 5.49047852,90 L6.1337822,90 C6.22160185,89.848186 6.348186,89.7216019 6.5,89.6337822 Z M142.5,95.1337822 L142.5,94.4917876 C142.5,94.2201808 142.731934,94 143,94 C143.276142,94 143.5,94.2150574 143.5,94.4904785 L143.5,95.1337822 C143.651814,95.2216019 143.778398,95.348186 143.866218,95.5 L144.509521,95.5 C144.780405,95.5 145,95.7319336 145,96 C145,96.2761424 144.784943,96.5 144.509521,96.5 L143.866218,96.5 C143.778398,96.651814 143.651814,96.7783981 143.5,96.8662178 L143.5,97.5095215 C143.5,97.7804053 143.268066,98 143,98 C142.723858,98 142.5,97.7689791 142.5,97.4952562 L142.5,96.8662178 C142.348186,96.7783981 142.221602,96.651814 142.133782,96.5 L141.490479,96.5 C141.219595,96.5 141,96.2680664 141,96 C141,95.7238576 141.215057,95.5 141.490479,95.5 L142.133782,95.5 C142.221602,95.348186 142.348186,95.2216019 142.5,95.1337822 Z M113.5,17.1337822 L113.5,16.4917876 C113.5,16.2201808 113.731934,16 114,16 C114.276142,16 114.5,16.2150574 114.5,16.4904785 L114.5,17.1337822 C114.651814,17.2216019 114.778398,17.348186 114.866218,17.5 L115.509521,17.5 C115.780405,17.5 116,17.7319336 116,18 C116,18.2761424 115.784943,18.5 115.509521,18.5 L114.866218,18.5 C114.778398,18.651814 114.651814,18.7783981 114.5,18.8662178 L114.5,19.5095215 C114.5,19.7804053 114.268066,20 114,20 C113.723858,20 113.5,19.7689791 113.5,19.4952562 L113.5,18.8662178 C113.348186,18.7783981 113.221602,18.651814 113.133782,18.5 L112.490479,18.5 C112.219595,18.5 112,18.2680664 112,18 C112,17.7238576 112.215057,17.5 112.490479,17.5 L113.133782,17.5 C113.221602,17.348186 113.348186,17.2216019 113.5,17.1337822 Z M39.5,30.6337822 L39.5,29.9917876 C39.5,29.7201808 39.7319336,29.5 40,29.5 C40.2761424,29.5 40.5,29.7150574 40.5,29.9904785 L40.5,30.6337822 C40.651814,30.7216019 40.7783981,30.848186 40.8662178,31 L41.5095215,31 C41.7804053,31 42,31.2319336 42,31.5 C42,31.7761424 41.7849426,32 41.5095215,32 L40.8662178,32 C40.7783981,32.151814 40.651814,32.2783981 40.5,32.3662178 L40.5,33.0095215 C40.5,33.2804053 40.2680664,33.5 40,33.5 C39.7238576,33.5 39.5,33.2689791 39.5,32.9952562 L39.5,32.3662178 C39.348186,32.2783981 39.2216019,32.151814 39.1337822,32 L38.4904785,32 C38.2195947,32 38,31.7680664 38,31.5 C38,31.2238576 38.2150574,31 38.4904785,31 L39.1337822,31 C39.2216019,30.848186 39.348186,30.7216019 39.5,30.6337822 Z M42.5,142.133782 L42.5,141.491788 C42.5,141.220181 42.7319336,141 43,141 C43.2761424,141 43.5,141.215057 43.5,141.490479 L43.5,142.133782 C43.651814,142.221602 43.7783981,142.348186 43.8662178,142.5 L44.5095215,142.5 C44.7804053,142.5 45,142.731934 45,143 C45,143.276142 44.7849426,143.5 44.5095215,143.5 L43.8662178,143.5 C43.7783981,143.651814 43.651814,143.778398 43.5,143.866218 L43.5,144.509521 C43.5,144.780405 43.2680664,145 43,145 C42.7238576,145 42.5,144.768979 42.5,144.495256 L42.5,143.866218 C42.348186,143.778398 42.2216019,143.651814 42.1337822,143.5 L41.4904785,143.5 C41.2195947,143.5 41,143.268066 41,143 C41,142.723858 41.2150574,142.5 41.4904785,142.5 L42.1337822,142.5 C42.2216019,142.348186 42.348186,142.221602 42.5,142.133782 Z M63.4375,128.208614 L63.4375,127.807367 C63.4375,127.637613 63.5824585,127.5 63.75,127.5 C63.922589,127.5 64.0625,127.634411 64.0625,127.806549 L64.0625,128.208614 C64.1573838,128.263501 64.2364988,128.342616 64.2913861,128.4375 L64.6934509,128.4375 C64.8627533,128.4375 65,128.582458 65,128.75 C65,128.922589 64.8655891,129.0625 64.6934509,129.0625 L64.2913861,129.0625 C64.2364988,129.157384 64.1573838,129.236499 64.0625,129.291386 L64.0625,129.693451 C64.0625,129.862753 63.9175415,130 63.75,130 C63.577411,130 63.4375,129.855612 63.4375,129.697443 L63.4375,129.291386 C63.3426162,129.236499 63.2635012,129.157384 63.2086139,129.0625 L62.8065491,129.0625 C62.6372467,129.0625 62.5,128.917542 62.5,128.75 C62.5,128.577411 62.6344109,128.4375 62.8065491,128.4375 L63.2086139,128.4375 C63.2635012,128.342616 63.3426162,128.263501 63.4375,128.208614 Z M132.5,122.633782 L132.5,121.991788 C132.5,121.720181 132.731934,121.5 133,121.5 C133.276142,121.5 133.5,121.715057 133.5,121.990479 L133.5,122.633782 C133.651814,122.721602 133.778398,122.848186 133.866218,123 L134.509521,123 C134.780405,123 135,123.231934 135,123.5 C135,123.776142 134.784943,124 134.509521,124 L133.866218,124 C133.778398,124.151814 133.651814,124.278398 133.5,124.366218 L133.5,125.009521 C133.5,125.280405 133.268066,125.5 133,125.5 C132.723858,125.5 132.5,125.268979 132.5,124.995256 L132.5,124.366218 C132.348186,124.278398 132.221602,124.151814 132.133782,124 L131.490479,124 C131.219595,124 131,123.768066 131,123.5 C131,123.223858 131.215057,123 131.490479,123 L132.133782,123 C132.221602,122.848186 132.348186,122.721602 132.5,122.633782 Z M33.9375,38.7086139 L33.9375,38.3073672 C33.9375,38.137613 34.0824585,38 34.25,38 C34.422589,38 34.5625,38.1344109 34.5625,38.3065491 L34.5625,38.7086139 C34.6573838,38.7635012 34.7364988,38.8426162 34.7913861,38.9375 L35.1934509,38.9375 C35.3627533,38.9375 35.5,39.0824585 35.5,39.25 C35.5,39.422589 35.3655891,39.5625 35.1934509,39.5625 L34.7913861,39.5625 C34.7364988,39.6573838 34.6573838,39.7364988 34.5625,39.7913861 L34.5625,40.1934509 C34.5625,40.3627533 34.4175415,40.5 34.25,40.5 C34.077411,40.5 33.9375,40.355612 33.9375,40.1974433 L33.9375,39.7913861 C33.8426162,39.7364988 33.7635012,39.6573838 33.7086139,39.5625 L33.3065491,39.5625 C33.1372467,39.5625 33,39.4175415 33,39.25 C33,39.077411 33.1344109,38.9375 33.3065491,38.9375 L33.7086139,38.9375 C33.7635012,38.8426162 33.8426162,38.7635012 33.9375,38.7086139 Z M16.4375,107.708614 L16.4375,107.307367 C16.4375,107.137613 16.5824585,107 16.75,107 C16.922589,107 17.0625,107.134411 17.0625,107.306549 L17.0625,107.708614 C17.1573838,107.763501 17.2364988,107.842616 17.2913861,107.9375 L17.6934509,107.9375 C17.8627533,107.9375 18,108.082458 18,108.25 C18,108.422589 17.8655891,108.5625 17.6934509,108.5625 L17.2913861,108.5625 C17.2364988,108.657384 17.1573838,108.736499 17.0625,108.791386 L17.0625,109.193451 C17.0625,109.362753 16.9175415,109.5 16.75,109.5 C16.577411,109.5 16.4375,109.355612 16.4375,109.197443 L16.4375,108.791386 C16.3426162,108.736499 16.2635012,108.657384 16.2086139,108.5625 L15.8065491,108.5625 C15.6372467,108.5625 15.5,108.417542 15.5,108.25 C15.5,108.077411 15.6344109,107.9375 15.8065491,107.9375 L16.2086139,107.9375 C16.2635012,107.842616 16.3426162,107.763501 16.4375,107.708614 Z M123.4375,118.208614 L123.4375,117.807367 C123.4375,117.637613 123.582458,117.5 123.75,117.5 C123.922589,117.5 124.0625,117.634411 124.0625,117.806549 L124.0625,118.208614 C124.157384,118.263501 124.236499,118.342616 124.291386,118.4375 L124.693451,118.4375 C124.862753,118.4375 125,118.582458 125,118.75 C125,118.922589 124.865589,119.0625 124.693451,119.0625 L124.291386,119.0625 C124.236499,119.157384 124.157384,119.236499 124.0625,119.291386 L124.0625,119.693451 C124.0625,119.862753 123.917542,120 123.75,120 C123.577411,120 123.4375,119.855612 123.4375,119.697443 L123.4375,119.291386 C123.342616,119.236499 123.263501,119.157384 123.208614,119.0625 L122.806549,119.0625 C122.637247,119.0625 122.5,118.917542 122.5,118.75 C122.5,118.577411 122.634411,118.4375 122.806549,118.4375 L123.208614,118.4375 C123.263501,118.342616 123.342616,118.263501 123.4375,118.208614 Z",fill:r}),e.createElement("path",{className:"fill-color",d:"M43.4804692,103.174876 L41.1752714,101.240586 C40.7617585,100.893607 40.1285056,100.946696 39.7735038,101.369771 C39.416027,101.795795 39.4705231,102.420947 39.8896962,102.772675 L42.9680029,105.355681 C43.1743888,105.528859 43.4355129,105.602379 43.6894604,105.57998 C43.9483712,105.55797 44.1918657,105.438515 44.3678615,105.228771 L48.2284051,100.627954 C48.5780776,100.211231 48.526314,99.5763992 48.1032393,99.2213974 C47.6772151,98.8639206 47.0502638,98.920561 46.6963163,99.3423792 L43.4804692,103.174876 Z M37,102 C37,98.1340068 40.1350851,95 44.0024366,95 L94.9975634,95 C98.8649024,95 102,98.1418733 102,102 C102,105.865993 98.8649149,109 94.9975634,109 L44.0024366,109 C40.1350976,109 37,105.858127 37,102 Z",fill:r}),e.createElement("rect",{className:"stroke-color fill-white",fill:"#FFFFFF",height:"60",rx:"1.5",stroke:r,strokeWidth:"2",width:"40",x:"62",y:"53"}),e.createElement("path",{className:"fill-color",d:"M33.4804692,85.1748765 L31.1752714,83.2405859 C30.7617585,82.8936073 30.1285056,82.9466958 29.7735038,83.3697705 C29.416027,83.7957948 29.4705231,84.4209468 29.8896962,84.7726747 L32.9680029,87.3556808 C33.1743888,87.5288591 33.4355129,87.6023789 33.6894604,87.57998 C33.9483712,87.5579702 34.1918657,87.4385148 34.3678615,87.2287712 L38.2284051,82.6279545 C38.5780776,82.211231 38.526314,81.5763992 38.1032393,81.2213974 C37.6772151,80.8639206 37.0502638,80.920561 36.6963163,81.3423792 L33.4804692,85.1748765 Z M27,84 C27,80.1340068 30.1350851,77 34.0024366,77 L84.9975634,77 C88.8649024,77 92,80.1418733 92,84 C92,87.8659932 88.8649149,91 84.9975634,91 L34.0024366,91 C30.1350976,91 27,87.8581267 27,84 Z",fill:r}),e.createElement("rect",{className:"stroke-color fill-white",fill:"#FFFFFF",height:"60",rx:"1.5",stroke:r,strokeWidth:"2",width:"40",x:"70",y:"37"}),e.createElement("path",{className:"stroke-color fill-white",d:"M79,46.4981237 C79,45.6707328 79.6757415,45 80.4989041,45 L112.911044,45 C113.738866,45 114.834395,45.5280187 115.346944,46.1656381 L123.063004,55.7645454 C123.580493,56.4083096 124,57.6097136 124,58.4215292 L124,103.508654 C124,104.332302 123.328952,105 122.502769,105 L80.4972305,105 C79.6703329,105 79,104.326172 79,103.501876 L79,46.4981237 Z",fill:"#FFFFFF",stroke:r,strokeWidth:"2"}),e.createElement("path",{className:"fill-color",d:"M86.5,70 C86.5,69.4477153 86.9473652,69 87.4981537,69 L115.501846,69 C116.053111,69 116.5,69.4438648 116.5,70 C116.5,70.5522847 116.052635,71 115.501846,71 L87.4981537,71 C86.9468886,71 86.5,70.5561352 86.5,70 Z M86.5,75 C86.5,74.4477153 86.9473652,74 87.4981537,74 L115.501846,74 C116.053111,74 116.5,74.4438648 116.5,75 C116.5,75.5522847 116.052635,76 115.501846,76 L87.4981537,76 C86.9468886,76 86.5,75.5561352 86.5,75 Z M86.5,80 C86.5,79.4477153 86.9449463,79 87.4933977,79 L103.506602,79 C104.055241,79 104.5,79.4438648 104.5,80 C104.5,80.5522847 104.055054,81 103.506602,81 L87.4933977,81 C86.9447593,81 86.5,80.5561352 86.5,80 Z M106.9,80 C106.9,79.4477153 107.350975,79 107.890778,79 L111.909222,79 C112.456414,79 112.9,79.4438648 112.9,80 C112.9,80.5522847 112.449025,81 111.909222,81 L107.890778,81 C107.343586,81 106.9,80.5561352 106.9,80 Z",fill:r}),e.createElement("path",{className:"fill-color fill-opacity",d:"M81,93.0952639 C81,92.2673619 81.6405192,91.819868 82.4446313,92.0247586 C82.4446313,92.0247586 83.7455648,92.9506249 94.6666667,92.9506249 C101.455564,92.9506249 104.465846,95.7883014 108.333333,95.7883014 C116.155282,95.7883014 120.733786,92.3847142 120.733786,92.3847142 C121.433097,91.949238 122,92.2738296 122,93.0952639 L122,101.474211 C122,102.302113 121.322576,102.973261 120.492164,102.973261 L82.5078364,102.973261 C81.6750814,102.973261 81,102.295646 81,101.474211 L81,93.0952639 Z",fill:r,fillOpacity:"0.1"}),e.createElement("path",{className:"stroke-color",d:"M123,56 L114.615019,56 C113.723068,56 113,55.2734286 113,54.3849814 L113,46",stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),e.createElement("path",{className:"stroke-color",d:"M51.4997804,57 C51.5159706,57 58.357785,57.0000513 62,57.0001537 M62,71 L50.5002196,71 C46.3579627,71 42.8594173,70.1626263 42.8594173,66.0195799",stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),e.createElement("path",{className:"stroke-color",d:"M42.860937,66.126647 C42.860937,63.7364857 44.5317428,61.2152184 47.5857812,61 L81.4999054,61 C83.4329543,61 85,61.5709366 85,63.5 C85,65.4329966 83.4293087,66 81.4999054,66 L51.887125,66",stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}))),ig=({className:t="",color:r=no,height:n=180,title:o,width:i=180})=>e.createElement(to,{className:`search-empty-state ${t}`,height:n,title:o,viewBox:"0 0 150 150",width:i},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("path",{className:"fill-color",d:"M65.5,6.1337822 L65.5,5.49178758 C65.5,5.2201808 65.7319336,5 66,5 C66.2761424,5 66.5,5.21505737 66.5,5.49047852 L66.5,6.1337822 C66.651814,6.22160185 66.7783981,6.348186 66.8662178,6.5 L67.5095215,6.5 C67.7804053,6.5 68,6.73193359 68,7 C68,7.27614237 67.7849426,7.5 67.5095215,7.5 L66.8662178,7.5 C66.7783981,7.651814 66.651814,7.77839815 66.5,7.8662178 L66.5,8.50952148 C66.5,8.78040529 66.2680664,9 66,9 C65.7238576,9 65.5,8.76897915 65.5,8.49525623 L65.5,7.8662178 C65.348186,7.77839815 65.2216019,7.651814 65.1337822,7.5 L64.4904785,7.5 C64.2195947,7.5 64,7.26806641 64,7 C64,6.72385763 64.2150574,6.5 64.4904785,6.5 L65.1337822,6.5 C65.2216019,6.348186 65.348186,6.22160185 65.5,6.1337822 Z M11,78.6337822 L11,77.9917876 C11,77.7201808 11.2319336,77.5 11.5,77.5 C11.7761424,77.5 12,77.7150574 12,77.9904785 L12,78.6337822 C12.151814,78.7216019 12.2783981,78.848186 12.3662178,79 L13.0095215,79 C13.2804053,79 13.5,79.2319336 13.5,79.5 C13.5,79.7761424 13.2849426,80 13.0095215,80 L12.3662178,80 C12.2783981,80.151814 12.151814,80.2783981 12,80.3662178 L12,81.0095215 C12,81.2804053 11.7680664,81.5 11.5,81.5 C11.2238576,81.5 11,81.2689791 11,80.9952562 L11,80.3662178 C10.848186,80.2783981 10.7216019,80.151814 10.6337822,80 L9.99047852,80 C9.71959471,80 9.5,79.7680664 9.5,79.5 C9.5,79.2238576 9.71505737,79 9.99047852,79 L10.6337822,79 C10.7216019,78.848186 10.848186,78.7216019 11,78.6337822 Z M142.5,81.6337822 L142.5,80.9917876 C142.5,80.7201808 142.731934,80.5 143,80.5 C143.276142,80.5 143.5,80.7150574 143.5,80.9904785 L143.5,81.6337822 C143.651814,81.7216019 143.778398,81.848186 143.866218,82 L144.509521,82 C144.780405,82 145,82.2319336 145,82.5 C145,82.7761424 144.784943,83 144.509521,83 L143.866218,83 C143.778398,83.151814 143.651814,83.2783981 143.5,83.3662178 L143.5,84.0095215 C143.5,84.2804053 143.268066,84.5 143,84.5 C142.723858,84.5 142.5,84.2689791 142.5,83.9952562 L142.5,83.3662178 C142.348186,83.2783981 142.221602,83.151814 142.133782,83 L141.490479,83 C141.219595,83 141,82.7680664 141,82.5 C141,82.2238576 141.215057,82 141.490479,82 L142.133782,82 C142.221602,81.848186 142.348186,81.7216019 142.5,81.6337822 Z M47,23.1337822 L47,22.4917876 C47,22.2201808 47.2319336,22 47.5,22 C47.7761424,22 48,22.2150574 48,22.4904785 L48,23.1337822 C48.151814,23.2216019 48.2783981,23.348186 48.3662178,23.5 L49.0095215,23.5 C49.2804053,23.5 49.5,23.7319336 49.5,24 C49.5,24.2761424 49.2849426,24.5 49.0095215,24.5 L48.3662178,24.5 C48.2783981,24.651814 48.151814,24.7783981 48,24.8662178 L48,25.5095215 C48,25.7804053 47.7680664,26 47.5,26 C47.2238576,26 47,25.7689791 47,25.4952562 L47,24.8662178 C46.848186,24.7783981 46.7216019,24.651814 46.6337822,24.5 L45.9904785,24.5 C45.7195947,24.5 45.5,24.2680664 45.5,24 C45.5,23.7238576 45.7150574,23.5 45.9904785,23.5 L46.6337822,23.5 C46.7216019,23.348186 46.848186,23.2216019 47,23.1337822 Z M92,24.6337822 L92,23.9917876 C92,23.7201808 92.2319336,23.5 92.5,23.5 C92.7761424,23.5 93,23.7150574 93,23.9904785 L93,24.6337822 C93.151814,24.7216019 93.2783981,24.848186 93.3662178,25 L94.0095215,25 C94.2804053,25 94.5,25.2319336 94.5,25.5 C94.5,25.7761424 94.2849426,26 94.0095215,26 L93.3662178,26 C93.2783981,26.151814 93.151814,26.2783981 93,26.3662178 L93,27.0095215 C93,27.2804053 92.7680664,27.5 92.5,27.5 C92.2238576,27.5 92,27.2689791 92,26.9952562 L92,26.3662178 C91.848186,26.2783981 91.7216019,26.151814 91.6337822,26 L90.9904785,26 C90.7195947,26 90.5,25.7680664 90.5,25.5 C90.5,25.2238576 90.7150574,25 90.9904785,25 L91.6337822,25 C91.7216019,24.848186 91.848186,24.7216019 92,24.6337822 Z M137,44.6337822 L137,43.9917876 C137,43.7201808 137.231934,43.5 137.5,43.5 C137.776142,43.5 138,43.7150574 138,43.9904785 L138,44.6337822 C138.151814,44.7216019 138.278398,44.848186 138.366218,45 L139.009521,45 C139.280405,45 139.5,45.2319336 139.5,45.5 C139.5,45.7761424 139.284943,46 139.009521,46 L138.366218,46 C138.278398,46.151814 138.151814,46.2783981 138,46.3662178 L138,47.0095215 C138,47.2804053 137.768066,47.5 137.5,47.5 C137.223858,47.5 137,47.2689791 137,46.9952562 L137,46.3662178 C136.848186,46.2783981 136.721602,46.151814 136.633782,46 L135.990479,46 C135.719595,46 135.5,45.7680664 135.5,45.5 C135.5,45.2238576 135.715057,45 135.990479,45 L136.633782,45 C136.721602,44.848186 136.848186,44.7216019 137,44.6337822 Z M26.4375,26.7086139 L26.4375,26.3073672 C26.4375,26.137613 26.5824585,26 26.75,26 C26.922589,26 27.0625,26.1344109 27.0625,26.3065491 L27.0625,26.7086139 C27.1573838,26.7635012 27.2364988,26.8426162 27.2913861,26.9375 L27.6934509,26.9375 C27.8627533,26.9375 28,27.0824585 28,27.25 C28,27.422589 27.8655891,27.5625 27.6934509,27.5625 L27.2913861,27.5625 C27.2364988,27.6573838 27.1573838,27.7364988 27.0625,27.7913861 L27.0625,28.1934509 C27.0625,28.3627533 26.9175415,28.5 26.75,28.5 C26.577411,28.5 26.4375,28.355612 26.4375,28.1974433 L26.4375,27.7913861 C26.3426162,27.7364988 26.2635012,27.6573838 26.2086139,27.5625 L25.8065491,27.5625 C25.6372467,27.5625 25.5,27.4175415 25.5,27.25 C25.5,27.077411 25.6344109,26.9375 25.8065491,26.9375 L26.2086139,26.9375 C26.2635012,26.8426162 26.3426162,26.7635012 26.4375,26.7086139 Z M5.9375,66.7086139 L5.9375,66.3073672 C5.9375,66.137613 6.0824585,66 6.25,66 C6.42258898,66 6.5625,66.1344109 6.5625,66.3065491 L6.5625,66.7086139 C6.65738375,66.7635012 6.73649884,66.8426162 6.79138613,66.9375 L7.19345093,66.9375 C7.36275331,66.9375 7.5,67.0824585 7.5,67.25 C7.5,67.422589 7.36558914,67.5625 7.19345093,67.5625 L6.79138613,67.5625 C6.73649884,67.6573838 6.65738375,67.7364988 6.5625,67.7913861 L6.5625,68.1934509 C6.5625,68.3627533 6.4175415,68.5 6.25,68.5 C6.07741102,68.5 5.9375,68.355612 5.9375,68.1974433 L5.9375,67.7913861 C5.84261625,67.7364988 5.76350116,67.6573838 5.70861387,67.5625 L5.30654907,67.5625 C5.13724669,67.5625 5,67.4175415 5,67.25 C5,67.077411 5.13441086,66.9375 5.30654907,66.9375 L5.70861387,66.9375 C5.76350116,66.8426162 5.84261625,66.7635012 5.9375,66.7086139 Z M128.4375,35.2086139 L128.4375,34.8073672 C128.4375,34.637613 128.582458,34.5 128.75,34.5 C128.922589,34.5 129.0625,34.6344109 129.0625,34.8065491 L129.0625,35.2086139 C129.157384,35.2635012 129.236499,35.3426162 129.291386,35.4375 L129.693451,35.4375 C129.862753,35.4375 130,35.5824585 130,35.75 C130,35.922589 129.865589,36.0625 129.693451,36.0625 L129.291386,36.0625 C129.236499,36.1573838 129.157384,36.2364988 129.0625,36.2913861 L129.0625,36.6934509 C129.0625,36.8627533 128.917542,37 128.75,37 C128.577411,37 128.4375,36.855612 128.4375,36.6974433 L128.4375,36.2913861 C128.342616,36.2364988 128.263501,36.1573838 128.208614,36.0625 L127.806549,36.0625 C127.637247,36.0625 127.5,35.9175415 127.5,35.75 C127.5,35.577411 127.634411,35.4375 127.806549,35.4375 L128.208614,35.4375 C128.263501,35.3426162 128.342616,35.2635012 128.4375,35.2086139 Z",fill:r}),e.createElement("path",{className:"stroke-color fill-white",d:"M28.6960227,56.1349895 C28.6960227,55.1429691 29.4786923,54.1926774 30.4600887,54.0260004 C30.4600887,54.0260004 36.4804935,52.7556391 46.2317709,52.7556391 C57.3677087,52.7556391 66.0324375,54.0948818 66.0324375,54.0948818 C67.0148852,54.2295817 67.8113164,55.1487922 67.8113164,56.1438829 L67.8113164,104.101951 C67.8113164,105.098883 67.0004601,105.966124 66.0231367,106.037317 C66.0231367,106.037317 57.0783775,106.688942 48.2536696,107.331436 C39.4289616,107.97393 30.4312685,110.298757 30.4312685,110.298757 C29.4729187,110.530897 28.6960227,109.922074 28.6960227,108.922872 L28.6960227,56.1349895 Z M107.774385,56.1349895 C107.774385,55.1429691 106.991715,54.1926774 106.010319,54.0260004 C106.010319,54.0260004 99.9899138,52.7556391 90.2386364,52.7556391 C79.1026986,52.7556391 70.4379698,54.0948818 70.4379698,54.0948818 C69.4555221,54.2295817 68.6590909,55.1487922 68.6590909,56.1438829 L68.6590909,104.101951 C68.6590909,105.098883 69.4699472,105.966124 70.4472706,106.037317 C70.4472706,106.037317 79.3920298,106.688942 88.2167377,107.331436 C97.0414457,107.97393 106.039139,110.298757 106.039139,110.298757 C106.997489,110.530897 107.774385,109.922074 107.774385,108.922872 L107.774385,56.1349895 Z",fill:"#FFFFFF",stroke:r,strokeWidth:"2"}),e.createElement("path",{className:"stroke-color fill-white",d:"M24.5,55.5385148 C24.5,54.5437169 25.2937254,53.6358332 26.2842442,53.5154783 C26.2842442,53.5154783 36.328268,52.1541353 46.0795455,52.1541353 C57.2154833,52.1541353 65.880212,53.493378 65.880212,53.493378 C66.8626597,53.628078 67.6590909,54.5450678 67.6590909,55.5385148 L67.6590909,104.707319 C67.6590909,105.702117 66.854409,106.397236 65.873167,106.269834 C65.873167,106.269834 56.8693182,104.925421 46.0795455,104.925421 C35.2897727,104.925421 26.2723499,106.271548 26.2723499,106.271548 C25.2935081,106.402446 24.5,105.700766 24.5,104.707319 L24.5,55.5385148 Z M67.6590909,55.5385148 C67.6590909,54.5437169 68.4528163,53.6358332 69.4433351,53.5154783 C69.4433351,53.5154783 79.4873589,52.1541353 89.2386364,52.1541353 C100.374574,52.1541353 109.039303,53.493378 109.039303,53.493378 C110.021751,53.628078 110.818182,54.5450678 110.818182,55.5385148 L110.818182,104.707319 C110.818182,105.702117 110.0135,106.397236 109.032258,106.269834 C109.032258,106.269834 100.028409,104.925421 89.2386364,104.925421 C78.4488636,104.925421 69.4314408,106.271548 69.4314408,106.271548 C68.452599,106.402446 67.6590909,105.700766 67.6590909,104.707319 L67.6590909,55.5385148 Z",fill:"#FFFFFF",stroke:r,strokeWidth:"2"}),e.createElement("path",{className:"fill-color fill-opacity",d:"M75,145 C92.9492544,145 107.5,143.656854 107.5,142 C107.5,140.343146 92.9492544,139 75,139 C57.0507456,139 42.5,140.343146 42.5,142 C42.5,143.656854 57.0507456,145 75,145 Z M73.6534091,56.1363656 C73.6534091,55.1435852 74.4449488,54.4789956 75.4238059,54.652396 L80.3251831,55.5206542 L78.9752933,58.7180233 C78.5889267,59.633177 78.8348134,60.9519608 79.5331474,61.6725356 L85.4008667,67.7271331 L80.3251831,79.4305004 L85.4008667,90.8693423 L79.566026,96.600942 C78.8534067,97.3009522 78.8094216,98.4791911 79.4650655,99.2295031 L82.628255,102.849424 L75.4265498,104.11876 C74.4472712,104.291362 73.6534091,103.624162 73.6534091,102.633696 L73.6534091,56.1363656 Z",fill:r,fillOpacity:"0.1"}),e.createElement("path",{className:"stroke-color fill-white",d:"M67.6590909,55.5385148 C67.6590909,54.5437169 68.4398495,53.9274678 69.410837,54.1640018 L76.6339368,55.9235594 L74.2082646,59.7351425 C73.6771908,60.569646 73.8423899,61.7847372 74.579969,62.4515857 L81.0026388,68.2583499 L75.4517045,79.7540898 L81.0026388,89.9057851 L74.5014209,96.5802373 C73.8084414,97.2916823 73.8804366,98.3579493 74.6693627,98.9673234 L77.9459525,101.498192 L69.2777292,105.720178 C68.38378,106.155589 67.6590909,105.700766 67.6590909,104.707319 L67.6590909,55.5385148 Z",fill:"#FFFFFF",stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),e.createElement("path",{className:"fill-color",d:"M31.09375,74.8061271 C31.09375,74.2550262 31.5411152,73.8082707 32.0919037,73.8082707 L60.0955963,73.8082707 C60.6468614,73.8082707 61.09375,74.251184 61.09375,74.8061271 C61.09375,75.3572279 60.6463848,75.8039834 60.0955963,75.8039834 L32.0919037,75.8039834 C31.5406386,75.8039834 31.09375,75.3610701 31.09375,74.8061271 Z M31.09375,80.8082707 C31.09375,80.2571698 31.5411152,79.8104143 32.0919037,79.8104143 L60.0955963,79.8104143 C60.6468614,79.8104143 61.09375,80.2533276 61.09375,80.8082707 C61.09375,81.3593715 60.6463848,81.8061271 60.0955963,81.8061271 L32.0919037,81.8061271 C31.5406386,81.8061271 31.09375,81.3632137 31.09375,80.8082707 Z M31.09375,86.8104143 C31.09375,86.2593134 31.5386963,85.8125579 32.0871477,85.8125579 L48.1003523,85.8125579 C48.6489907,85.8125579 49.09375,86.2554713 49.09375,86.8104143 C49.09375,87.3615152 48.6488037,87.8082707 48.1003523,87.8082707 L32.0871477,87.8082707 C31.5385093,87.8082707 31.09375,87.3653573 31.09375,86.8104143 Z M51.49375,86.8104143 C51.49375,86.2593134 51.9447252,85.8125579 52.484528,85.8125579 L56.502972,85.8125579 C57.0501636,85.8125579 57.49375,86.2554713 57.49375,86.8104143 C57.49375,87.3615152 57.0427748,87.8082707 56.502972,87.8082707 L52.484528,87.8082707 C51.9373364,87.8082707 51.49375,87.3653573 51.49375,86.8104143 Z",fill:r}),e.createElement("path",{className:"stroke-color",d:"M48.5273522,34.7647694 C48.5467621,34.7647694 49.5559827,34.7648311 53.5032935,34.7649543 M53.7433867,52.8098822 C48.8081991,52.8098822 47.3290151,52.8098822 47.3290151,52.8098822 C42.3630139,52.8098822 38.168735,50.5995078 38.168735,45.6153919",stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",transform:"translate(45.956061, 43.787326) rotate(90.000000) translate(-45.956061, -43.787326) "}),e.createElement("path",{className:"stroke-color",d:"M29.9425084,54.2248865 C29.9425084,51.3495045 31.9455767,48.3164009 35.6069523,48.0574916 L58.2824081,48.0574916 C60.5998701,48.0574916 62.4785442,49.9473402 62.4785442,52.2680179 C62.4785442,54.5934274 60.5954995,56.4785442 58.2824081,56.4785442 L39.5648134,56.4785442",stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",transform:"translate(46.210526, 52.268018) rotate(90.000000) translate(-46.210526, -52.268018) "}),e.createElement("rect",{className:"stroke-color fill-white",fill:"#FFFFFF",height:"8.42105263",rx:"1",stroke:r,strokeWidth:"2",transform:"translate(116.761439, 60.552519) scale(-1, 1) rotate(45.000000) translate(-116.761439, -60.552519) ",width:"4.79545455",x:"114.363712",y:"56.3419929"}),e.createElement("path",{className:"stroke-color fill-white",d:"M123.539164,61.3515768 C123.147424,60.9598368 122.510815,60.9613104 122.125838,61.3462876 L117.599803,65.8723224 C117.210984,66.2611412 117.214326,66.8948826 117.605092,67.285649 L128.095643,77.7762001 C128.487383,78.16794 129.123992,78.1664665 129.50897,77.7814893 L134.035004,73.2554545 C134.423823,72.8666357 134.420482,72.2328943 134.029715,71.8421279 L123.539164,61.3515768 Z M103.329545,63.481203 C112.268086,63.481203 119.514205,56.210038 119.514205,47.2406015 C119.514205,38.271165 112.268086,31 103.329545,31 C94.3910051,31 87.1448864,38.271165 87.1448864,47.2406015 C87.1448864,56.210038 94.3910051,63.481203 103.329545,63.481203 Z",fill:"#FFFFFF",stroke:r,strokeWidth:"2"}),e.createElement("path",{className:"fill-color fill-opacity",d:"M121.963311,65.663821 C121.727831,65.4283409 121.342447,65.4319361 121.109104,65.66528 L120.269321,66.5050623 C120.033035,66.7413482 120.036926,67.1283342 120.267862,67.3592702 L128.772316,75.8637239 C129.007796,76.099204 129.39318,76.0956087 129.626524,75.8622649 L130.466306,75.0224825 C130.702592,74.7861966 130.698701,74.3992106 130.467765,74.1682747 L121.963311,65.663821 Z M96.3596054,58.705387 C98.3267224,59.8307464 91.7811151,47.2744178 98.1580266,40.8099242 C104.534938,34.3454307 115.990851,42.6502669 115.057515,40.8099242 C114.701837,40.1086033 114.287033,39.4425406 113.819691,38.8183475 C111.359011,35.5318067 107.441818,33.406015 103.02983,33.406015 C95.5810459,33.406015 89.5426136,39.4653192 89.5426136,46.9398496 C89.5426136,51.9796152 92.2878329,56.3759843 96.3596054,58.705387 Z",fill:r,fillOpacity:"0.1"}),e.createElement("path",{className:"stroke-color",d:"M103.329545,36.4135338 C97.3705185,36.4135338 92.5397727,41.2609771 92.5397727,47.2406015 C92.5397727,48.6694994 92.81562,50.033747 93.3167936,51.2826485",stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}))),ag=({view:t,isLoading:r})=>{let n;const o=!r||t!==g&&"metadata"!==t?e.createElement(Qn,fo[`${t}State`]):e.createElement(Qn,fo.loadingState);switch(t){case v:n=e.createElement(gf,null);break;case b:n=e.createElement(og,null);break;case m:n=e.createElement(ig,null);break;default:n=e.createElement(ng,null)}return e.createElement("div",{className:"be-empty"},n,e.createElement("div",null,o))};function sg(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class lg extends e.PureComponent{constructor(e){super(e),sg(this,"startProgress",(()=>{const{percent:e}=this.state;0===e?this.interval=setInterval(this.incrementProgress,100):100===e&&(this.timeout=setTimeout(this.resetProgress,600))})),sg(this,"incrementProgress",(()=>{const{percent:e}=this.state;this.setState({percent:e+2/(e||1)})})),sg(this,"resetProgress",(()=>{this.setState(lg.defaultProps)}));const{percent:t}=e;this.state={percent:t}}clearTimeoutAndInterval(){clearInterval(this.interval),clearTimeout(this.timeout)}componentDidMount(){this.startProgress()}componentDidUpdate(e){const{percent:t}=this.props;e.percent!==t&&(this.clearTimeoutAndInterval(),this.setState({percent:t},this.startProgress))}componentWillUnmount(){this.clearTimeoutAndInterval()}render(){const{percent:t}=this.state,r={opacity:t>0&&t<100?1:0,transitionDelay:t>0&&t<100?"0":"0.4s"};return e.createElement("div",{className:"be-progress-container",style:r},e.createElement("div",{className:"be-progress",style:{width:`${t}%`}}))}}sg(lg,"defaultProps",{percent:0});const cg=lg;function ug(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class dg extends e.PureComponent{static getDerivedStateFromProps(e,t){const{prevId:r,prevScrollToColumn:n,prevScrollToRow:o}=t,{id:i,scrollToColumn:a,scrollToRow:s}=e;if(i!==r)return{focusOnRender:!1,prevId:i,prevScrollToColumn:0,prevScrollToRow:0,scrollToColumn:0,scrollToRow:0};const l={};return n!==a&&o!==s?(l.prevScrollToColumn=a,l.prevScrollToRow=s,l.scrollToColumn=a,l.scrollToRow=s):s!==o?(l.prevScrollToRow=s,l.scrollToRow=s):a!==n&&(l.prevScrollToColumn=a,l.scrollToColumn=a),Object.keys(l).length?l:null}constructor(e){super(e),ug(this,"onKeyDown",(e=>{if(eg(e.target))return;const{columnCount:t,rowCount:r,onSelect:n,onRename:o,onDownload:i,onShare:a,onDelete:s,onOpen:l,items:c}=this.props,{scrollToColumn:u,scrollToRow:d}=this.state;let{scrollToColumn:h,scrollToRow:p}=this.state;const f=c[p],g=e.metaKey||e.ctrlKey;switch(e.key){case"ArrowDown":p=g?r-1:Math.min(p+1,r-1),e.stopPropagation();break;case"ArrowLeft":h=g?0:Math.max(h-1,0);break;case"ArrowRight":h=g?t-1:Math.min(h+1,t-1);break;case"ArrowUp":p=g?0:Math.max(p-1,0);break;case"Enter":l(f),e.preventDefault();break;case"Delete":s(f),e.preventDefault();break;case"X":n(f),e.preventDefault();break;case"D":i(f),e.preventDefault();break;case"S":a(f),e.preventDefault();break;case"R":o(f),e.preventDefault();break;default:return}h===u&&p===d||(e.preventDefault(),this.updateScrollState({scrollToColumn:h,scrollToRow:p}))})),ug(this,"onSectionRendered",(({columnStartIndex:e,columnStopIndex:t,rowStartIndex:r,rowStopIndex:n})=>{this.columnStartIndex=e,this.columnStopIndex=t,this.rowStartIndex=r,this.rowStopIndex=n}));const{id:t,scrollToRow:r,scrollToColumn:n}=e;this.state={focusOnRender:!1,prevId:t,prevScrollToColumn:n,prevScrollToRow:r,scrollToColumn:n,scrollToRow:r},this.columnStartIndex=0,this.columnStopIndex=0,this.rowStartIndex=0,this.rowStopIndex=0}updateScrollState({scrollToColumn:e,scrollToRow:t}){const{onScrollToChange:r}=this.props;r({scrollToColumn:e,scrollToRow:t}),this.setState({scrollToColumn:e,scrollToRow:t,focusOnRender:!0})}render(){const{className:t,children:r}=this.props,{scrollToColumn:n,scrollToRow:o,focusOnRender:i}=this.state;return e.createElement("div",{className:t,onKeyDown:this.onKeyDown},r({onSectionRendered:this.onSectionRendered,scrollToColumn:n,scrollToRow:o,focusOnRender:i}))}}ug(dg,"defaultProps",{scrollToColumn:0,scrollToRow:0,onRename:Dt(),onShare:Dt(),onDownload:Dt(),onOpen:Dt(),onSelect:Dt(),onDelete:Dt()});const hg=dg,pg=({item:t,onClick:r,onFocus:n,canPreview:o,isTouch:i})=>{const{name:a,type:s}=t,l=n?()=>n(t):null;return s===k||!i&&(s===O||o)?e.createElement(Mo,{className:"be-item-label","data-testid":"be-item-name",onClick:()=>r(t),onFocus:l,type:"button"},a):e.createElement("span",{className:"be-item-label"},a)};const fg=864e5;function gg(e){return e instanceof Date?e:new Date(e)}function mg(e){return(new Date).toDateString()===gg(e).toDateString()}const bg={weekday:"short",month:"short",year:"numeric",day:"numeric"},yg=Gn((({date:t,dateFormat:r=bg,omitCommas:n=!1,intl:o,relative:i=!0,capitalize:a=!1})=>{const s=new Date(t),l=mg(s),c=mg(gg(s).getTime()+fg);if(i&&(l||c)){let t=e.createElement(Qn,fo.today);return c&&(t=e.createElement(Qn,fo.yesterday)),a?e.createElement("span",{className:"be-date-capitalize"},t):t}let u=o.formatDate(s,r);return u=n?u.replace(/,/g,""):u,u}));function vg(){return vg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vg.apply(null,arguments)}const _g=({item:t,view:r})=>{const{modified_at:n="",interacted_at:o="",modified_by:i}=t,a=i&&i.name||"",s=r===y,l=s&&o||n,{size:c}=t,u=e.createElement(yg,{date:l,omitCommas:!0});let d=fo.modifiedDateBy;return s?d=fo.interactedDate:a||(d=fo.modifiedDate),e.createElement("span",null,e.createElement("span",{className:"bdl-ItemSubDetails-modifiedBy"},e.createElement(Qn,vg({},d,{values:{date:u,name:a}}))),e.createElement("span",{className:"bdl-ItemSubDetails-size"},function(e){if(!e)return"0 Byte";const t=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/1024**t).toFixed(2))} ${["Bytes","KB","MB","GB","TB","PB"][t]}`}(c)))},wg=({view:t,rootId:r,item:n,onItemClick:o})=>e.createElement("div",{className:"be-item-details"},t===b||t===m?e.createElement(ai,{item:n,onItemClick:o,rootId:r}):e.createElement(_g,{item:n,view:t})),Eg=({canPreview:t=!1,isTouch:r=!1,item:n,onItemClick:o,onItemSelect:i,showDetails:a=!0,rootId:s,view:l})=>e.createElement("div",{className:"be-item-name"},e.createElement(pg,{canPreview:t,isTouch:r,item:n,onClick:o,onFocus:i}),l===m||a?e.createElement(wg,{item:n,onItemClick:o,rootId:s,view:l}):null);function Cg(){return Cg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cg.apply(null,arguments)}const Sg=t=>e.createElement(mi,Cg({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"#2687FC",d:"M6 6h6c2 0 1.5 2 4 2h10a3 3 0 013 3v13a3 3 0 01-3 3H6a3 3 0 01-3-3V9a3 3 0 013-3z"}),e.createElement("path",{fill:"#91c2fd",d:"M26 11a3 3 0 013 3v10a3 3 0 01-3 3H6a3 3 0 01-3-3V14a3 3 0 013-3h20zm-6.999 8c-1.117 0-1.933.543-2.439 1.401a6.024 6.024 0 01.414 1.45c.066.42.003.809-.165 1.138a1.7 1.7 0 00.193.011h4.002l.14-.006c.63-.054.924-.476.844-.988a5.028 5.028 0 00-.258-.997c-.453-1.2-1.367-2.009-2.73-2.009zM13 19c-1.364 0-2.278.81-2.731 2.01a4.774 4.774 0 00-.185.62c-.028.123-.053.25-.073.378-.084.54.258.992.992.992h4.002l.14-.006c.63-.054.924-.476.843-.988a5.028 5.028 0 00-.257-.997C15.277 19.81 14.363 19 13 19zm0-4a1.5 1.5 0 100 3 1.5 1.5 0 000-3zm6.001 0a1.5 1.5 0 100 3 1.5 1.5 0 000-3z"})));function kg(){return kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kg.apply(null,arguments)}const Ig=t=>e.createElement(mi,kg({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"#737E88",d:"M6 6h6c2 0 1.5 2 4 2h10a3 3 0 013 3v13a3 3 0 01-3 3H6a3 3 0 01-3-3V9a3 3 0 013-3z"}),e.createElement("path",{fill:"#B8BEC3",d:"M26 11a3 3 0 013 3v10a3 3 0 01-3 3H6a3 3 0 01-3-3V14a3 3 0 013-3h20zm-10 3c-2.77 0-5 2.23-5 5s2.23 5 5 5 5-2.23 5-5-2.23-5-5-5zm-3.923 4.077l2.385 2.385V21c0 .538.461 1 1 1v1C13.538 22.692 12 21.077 12 19c0-.308.077-.615.077-.923zm5.461-2.77C19 15.924 20 17.308 20 19c0 1.077-.385 2-1.077 2.692C18.77 21.308 18.385 21 18 21h-.538v-1.538c0-.231-.154-.462-.462-.462h-3v-1h1c.308 0 .538-.23.538-.538v-.924h1c.539 0 1-.461 1-1v-.23z"})));function Og(){return Og=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Og.apply(null,arguments)}const Tg=t=>e.createElement(mi,Og({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"gold",d:"M6 6h6c2 0 1.5 2 4 2h10a3 3 0 013 3v13a3 3 0 01-3 3H6a3 3 0 01-3-3V9a3 3 0 013-3z"}),e.createElement("path",{fill:ro,fillOpacity:.5,d:"M6 11h20a3 3 0 013 3v10a3 3 0 01-3 3H6a3 3 0 01-3-3V14a3 3 0 013-3z"}))),Ag=({dimension:t=32,isCollab:r=!1,isExternal:n=!1,title:o})=>n?e.createElement(Ig,{height:t,title:o,width:t}):r?e.createElement(Sg,{height:t,title:o,width:t}):e.createElement(Tg,{height:t,title:o,width:t}),xg=({className:t="",height:r=32,title:n,width:o=32})=>e.createElement(to,{className:`icon-bookmark ${t}`,height:r,title:n,viewBox:"0 0 32 32",width:o},e.createElement("path",{clipRule:"evenodd",d:"M24.5 27.5h-17c-.6 0-1-.4-1-1v-21c0-.6.4-1 1-1h17c.6 0 1 .4 1 1v21c0 .6-.4 1-1 1z",fill:"#75818C",fillRule:"evenodd"}),e.createElement("path",{clipRule:"evenodd",d:"M24.5 9.5V26c0 .3-.2.5-.5.5H8c-.3 0-.5-.2-.5-.5V9.5h17zM7.5 6.5h1v1h-1zM9.5 6.5h1v1h-1zM11.5 6.5h1v1h-1z",fill:"#FFF",fillRule:"evenodd"}),e.createElement("path",{d:"M16.4 21.9c-1.1 1.1-3.1 1.1-4.2 0-.6-.6-.9-1.3-.9-2.1s.3-1.6.9-2.1l1.4-1.4-.7-.7-1.4 1.4c-.8.8-1.2 1.8-1.2 2.8 0 1.1.4 2.1 1.2 2.8.8.8 1.8 1.2 2.8 1.2 1.1 0 2.1-.4 2.8-1.2l1.4-1.4-.7-.7-1.4 1.4zM20.6 13.4c-1.6-1.6-4.1-1.6-5.7 0l-1.4 1.4.7.7 1.4-1.4c.6-.6 1.4-.9 2.1-.9.8 0 1.5.3 2.1.9 1.2 1.2 1.2 3.1 0 4.2l-1.4 1.4.7.7 1.4-1.4c1.7-1.5 1.7-4 .1-5.6z",fill:"#75818C"}),e.createElement("path",{d:"M17.06 16.232l.708.707-2.83 2.828-.706-.708z",fill:"#75818C"})),Pg=Gn((({intl:t,rowData:r,dimension:n})=>{const{type:o,extension:i,has_collaborations:a,is_externally_owned:s}=r;let l;switch(o){case I:return l=t.formatMessage(fo.file),e.createElement(Vp,{dimension:n,extension:i,title:l});case k:return l=a?t.formatMessage(fo.collaboratedFolder):s?t.formatMessage(fo.externalFolder):t.formatMessage(fo.personalFolder),e.createElement(Ag,{dimension:n,isCollab:a,isExternal:s,title:l});case O:return l=t.formatMessage(fo.bookmark),e.createElement(xg,{height:n,width:n,title:l});default:return l=t.formatMessage(fo.file),e.createElement(Vp,{dimension:n,title:l})}})),Rg=Gn((({className:t,canSetShareAccess:r,onChange:n,item:o,intl:i})=>{const{allowed_shared_link_access_levels:a,permissions:s,shared_link:l}=o;if(!a)return e.createElement("span",null);const{access:c=U}=l||{},{can_set_share_access:u}=s||{},d=a.indexOf(F)>-1,h=a.indexOf(j)>-1,p=a.indexOf(H)>-1;return r&&u&&(d||p||h)?e.createElement("select",{className:`be-share-access-select ${t}`,onChange:({target:e})=>n(e.value,o),value:c},d?e.createElement("option",{value:F},i.formatMessage(fo.shareAccessOpen)):null,h?e.createElement("option",{value:j},i.formatMessage(fo.shareAccessCollab)):null,p?e.createElement("option",{value:H},i.formatMessage(fo.shareAccessCompany)):null,e.createElement("option",{value:U},c===U?i.formatMessage(fo.shareAccessNone):i.formatMessage(fo.shareAccessRemove))):e.createElement("span",null)}));const Ng=function(e,t,r,n){const{type:o,extension:i="",selected:a}=n,s=!r||!!a,l=!!o&&e.indexOf(o)>-1,c=!(e.indexOf(I)>-1)||!t.length||t.indexOf(i)>-1;return s&&l&&c},Lg=({className:t="",color:r="#000000",height:n=24,title:o,width:i=24})=>e.createElement(to,{className:`icon-info ${t}`,height:n,title:o,viewBox:"-603 389 16 16",width:i},e.createElement("path",{className:"fill-color",d:"M-595 403c5.5 0 8-7.1 3.9-10.6-4.2-3.6-10.8.3-9.8 5.7.5 2.8 3 4.9 5.9 4.9zm.9-6.7v3.7h-1.4v-3.7h1.4zm.1-2.2c0 1-1.7 1.1-1.7 0 .1-1.1 1.7-1.1 1.7 0z",fill:r,fillRule:"evenodd"})),Mg={checkboxTooltipIconInfoText:{id:"boxui.checkboxTooltip.iconInfoText",defaultMessage:"Info"}},Dg=({tooltip:t})=>e.createElement("div",{className:"checkbox-tooltip-wrapper"},e.createElement(Oi,{text:t},e.createElement("div",{className:"info-tooltip"},e.createElement(Lg,{height:16,title:e.createElement(Qn,Mg.checkboxTooltipIconInfoText),width:16})))),Ug=["className","description","fieldLabel","hideLabel","id","inputClassName","isChecked","isDisabled","label","name","onFocus","onChange","subsection","tooltip"];function Fg(){return Fg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fg.apply(null,arguments)}const jg=t=>{let{className:r="",description:n,fieldLabel:o,hideLabel:i,id:a,inputClassName:s,isChecked:l,isDisabled:c,label:u,name:d,onFocus:h,onChange:p,subsection:f,tooltip:g}=t,m=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,Ug);const b=e.useRef(Jt()("checkbox")).current,y=a||b,v=e.createElement("span",{className:"checkbox-label"},e.createElement("input",Fg({"aria-describedby":n?`description_${y}`:"",checked:l,className:s,disabled:c,id:y,name:d,onFocus:h,onChange:p,type:"checkbox"},m)),e.createElement("span",{className:"checkbox-pointer-target"}),e.createElement("span",{className:qt()("bdl-Checkbox-labelTooltipWrapper",{"accessibility-hidden":i})},u&&e.createElement("label",{htmlFor:y},u),g&&e.createElement(Dg,{tooltip:g})));return e.createElement("div",{className:qt()("checkbox-container",r,{"is-disabled bdl-is-disabled":c})},o&&e.createElement("div",{className:"label"},o),v,n?e.createElement("div",{id:`description_${y}`,className:"checkbox-description"},n):null,f?e.createElement("div",{className:"checkbox-subsection"},f):null)};const Hg=["isDisabled","isSelected","description","hideLabel","label","name","value"];function Bg(){return Bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bg.apply(null,arguments)}const zg=()=>{},qg=t=>{let{isDisabled:r,isSelected:n=!1,description:o,hideLabel:i=!1,label:a,name:s,value:l}=t,c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,Hg);return e.createElement("div",{className:"radio-container"},e.createElement("label",{className:"radio-label"},e.createElement("input",Bg({checked:n,disabled:r,name:s,onChange:zg,type:"radio",value:l},c)),e.createElement("span",null),e.createElement("span",{className:i?"accessibility-hidden":""},a)),o?e.createElement("div",{className:"radio-description"},o):null)},Kg=({view:t,rootId:r,isSmall:n,rootElement:o,focusedRow:i,selectableType:a,canSetShareAccess:s,hasHitSelectionLimit:l,isSingleSelect:c,extensionsWhitelist:u,onItemSelect:d,onItemClick:h,onShareAccessChange:p,onFocusChange:f,currentCollection:g,tableRef:m})=>{const y=((t=32)=>({rowData:r})=>e.createElement("div",{className:"be-item-icon"},e.createElement(Pg,{rowData:r,dimension:t})))(),v=((t,r,n,o,i=!1,a=!0,s=!1)=>({rowData:l})=>e.createElement(Eg,{canPreview:i,isTouch:s,item:l,onItemClick:n,onItemSelect:o,rootId:t,showDetails:a,view:r}))(r,t,h),_=((t,r,n,o,i)=>({rowData:a})=>{const{name:s="",selected:l=!1}=a,c=i?qg:jg;return Ng(r,n,o,a)?e.createElement(c,{hideLabel:!0,label:s,name:s,onChange:()=>t(a),value:s,[i?"isSelected":"isChecked"]:l}):e.createElement("span",null)})(d,a,u,l,c),w=((t,r,n,o,i)=>({rowData:a})=>{const s=Wt()(a,"permissions.can_set_share_access",!1);if(!(r&&s&&Ng(n,o,i,a)&&a.selected))return e.createElement("span",null);const{allowed_shared_link_access_levels:l}=a;return l?e.createElement(Rg,{canSetShareAccess:r,className:"bcp-shared-access-select",item:a,onChange:t}):e.createElement(yo,{className:"bcp-share-access-loading"})})(p,s,a,u,l),{id:E,items:C=[]}=g,S=C.length,I=({index:e})=>{if(-1===e)return"";const{selected:r,type:n}=C[e],o=Ng(a,u,l,C[e]);return qt()(`bcp-item-row bcp-item-row-${e}`,{"bcp-item-row-selected":r&&t!==b,"bcp-item-row-unselectable":n!==k&&!o})},O=({event:e,rowData:t,index:r})=>{Ng(a,u,l,t)&&!tg(e.target)?d(t):f(r)};return e.createElement(hg,{columnCount:1,rowCount:S,className:"bcp-item-grid",id:E,items:C,onSelect:d,onOpen:h,scrollToRow:i,onScrollToChange:({scrollToRow:e})=>rg(o,`.bcp-item-row-${e}`)},(({onSectionRendered:t,scrollToRow:r,focusOnRender:i})=>e.createElement(up,null,(({width:a,height:s})=>e.createElement(op,{width:a,height:s,disableHeader:!0,headerHeight:0,rowHeight:n?70:50,rowCount:S,rowGetter:({index:e})=>C[e],ref:m,rowClassName:I,onRowClick:O,scrollToIndex:r,onRowsRendered:({startIndex:e,stopIndex:n})=>{t({rowStartIndex:e,rowStopIndex:n}),i&&rg(o,`.bcp-item-row-${r}`)}},e.createElement(Th,{dataKey:$,cellRenderer:y,width:n?30:50,flexShrink:0}),e.createElement(Th,{dataKey:Y,cellRenderer:v,width:300,flexGrow:1}),n?null:e.createElement(Th,{dataKey:oe,cellRenderer:w,width:260,flexShrink:0}),e.createElement(Th,{dataKey:$,cellRenderer:_,width:n?20:30,flexShrink:0}))))))};const Vg=({view:t,rootId:r,isSmall:n,rootElement:o,focusedRow:i,hasHitSelectionLimit:a,selectableType:s,currentCollection:l,tableRef:c,canSetShareAccess:u,isSingleSelect:d,onItemClick:h,onItemSelect:p,onShareAccessChange:f,onFocusChange:g,extensionsWhitelist:m})=>e.createElement("div",{className:"bcp-content"},t===v||t===b?null:e.createElement(cg,{percent:l.percentLoaded}),function(e,t){const{items:r=[]}=t;return e===v||0===r.length}(t,l)?e.createElement(ag,{view:t,isLoading:100!==l.percentLoaded}):e.createElement(Kg,{view:t,rootId:r,isSmall:n,rootElement:o,focusedRow:i,currentCollection:l,tableRef:c,canSetShareAccess:u,hasHitSelectionLimit:a,isSingleSelect:d,selectableType:s,onItemSelect:p,onItemClick:h,onFocusChange:g,onShareAccessChange:f,extensionsWhitelist:m}));function Gg(){return Gg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gg.apply(null,arguments)}const Wg=Gn((({currentCollection:t,selectedCount:r,selectedItems:n,onSelectedClick:o,hasHitSelectionLimit:i,intl:a,isSingleSelect:s,onCancel:l,onChoose:c,chooseButtonLabel:u,cancelButtonLabel:d,children:h,renderCustomActionButtons:p,showSelectedButton:f})=>{const g=a.formatMessage(fo.cancel),m=a.formatMessage(fo.choose),b=!r;return e.createElement("footer",{className:"bcp-footer"},e.createElement("div",{className:"bcp-footer-left"},f&&!s&&e.createElement(Ro,{className:"bcp-selected",onClick:o,type:"button"},e.createElement(Qn,Gg({className:"bcp-selected-count"},fo.selected,{values:{count:r}})),i&&e.createElement("span",{className:"bcp-selected-max"},"(",e.createElement(Qn,fo.max),")"))),e.createElement("div",{className:"bcp-footer-right"},h,p?p({currentFolderId:t.id,currentFolderName:t.name,onCancel:l,onChoose:c,selectedCount:r,selectedItems:n}):e.createElement(Vf,{className:"bcp-footer-actions"},e.createElement(xi,{text:d||g},e.createElement(Ro,{"aria-label":g,onClick:l,type:"button"},e.createElement(nf,{height:16,width:16}))),e.createElement(xi,{isDisabled:b,text:u||m},e.createElement(cf,{"aria-label":m,disabled:b,isDisabled:b,onClick:c,type:"button"},e.createElement(rf,{color:"#fff",height:16,width:16}))))))}));function $g(){return $g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$g.apply(null,arguments)}function Jg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jg(Object(r),!0).forEach((function(t){Qg(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Qg(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Xg=`${I},${O}`;class Zg extends e.Component{constructor(e){super(e),Qg(this,"firstLoad",!0),Qg(this,"getSelectedItems",(()=>{const{selected:e}=this.state;return Object.keys(e).map((t=>{const r=Yg({},e[t]);return delete r.selected,r}))})),Qg(this,"choose",(()=>{const{onChoose:e}=this.props;e(this.getSelectedItems())})),Qg(this,"deleteSelectedKeys",(()=>{const{selected:e}=this.state;Object.keys(e).forEach((t=>delete e[t].selected))})),Qg(this,"cancel",(()=>{const{onCancel:e}=this.props;this.deleteSelectedKeys(),this.setState({selected:{}},(()=>e()))})),Qg(this,"refreshCollection",(()=>{const{currentCollection:{id:e},view:t,searchQuery:r}=this.state;if(t===g&&e)this.fetchFolder(e,!1);else if(t===y)this.showRecents(!1);else if(t===m&&r)this.search(r);else{if(t!==b)throw new Error("Cannot refresh incompatible view!");this.showSelected()}})),Qg(this,"errorCallback",((e,t)=>{this.setState({view:v}),console.error(e,t)})),Qg(this,"onItemClick",(e=>{if("string"==typeof e)return void this.fetchFolder(e);const{id:t,type:r}=e;r===k&&this.fetchFolder(t)})),Qg(this,"fetchFolder",((e,t=!0)=>{const{rootFolderId:r}=this.props,{currentCollection:{id:n},currentOffset:o,currentPageSize:i,searchQuery:a="",sortBy:s,sortDirection:l}=this.state,c="string"==typeof e?e:r,u=n&&n!==c,d=!!a.trim().length,h=u||d?0:o;this.firstLoad||this.rootElement.focus(),this.setState({searchQuery:"",view:g,currentCollection:this.currentUnloadedCollection(),currentOffset:h}),this.api.getFolderAPI().getFolder(c,i,h,s,l,(e=>{this.fetchFolderSuccessCallback(e,t)}),this.errorCallback,{forceFetch:!0})})),Qg(this,"showSelected",(()=>{const{selected:e,sortBy:t,sortDirection:r}=this.state;this.setState({searchQuery:"",view:b,currentCollection:{sortBy:t,sortDirection:r,percentLoaded:100,items:Object.keys(e).map((e=>this.api.getCache().get(e)))}},this.finishNavigation)})),Qg(this,"searchSuccessCallback",(e=>{const{currentCollection:t}=this.state;this.setState({currentCollection:$g(t,e)})})),Qg(this,"debouncedSearch",Vt()(((e,t)=>{const{currentOffset:r,currentPageSize:n}=this.state;this.api.getSearchAPI().search(e,t,n,r,this.searchSuccessCallback,this.errorCallback,{forceFetch:!0})}),500)),Qg(this,"search",(e=>{const{rootFolderId:t}=this.props,{currentCollection:{id:r},currentOffset:n,searchQuery:o}=this.state,i="string"==typeof r?r:t,a=e.trim();if(!e)return this.debouncedSearch.cancel(),void this.setState({currentOffset:0},(()=>{this.fetchFolder(i,!1)}));a?(this.setState({searchQuery:e,view:m,currentCollection:this.currentUnloadedCollection(),currentOffset:a===o?n:0}),this.debouncedSearch(i,e)):this.setState({searchQuery:e})})),Qg(this,"upload",(()=>{const{currentCollection:{id:e,permissions:t}}=this.state,{canUpload:r}=this.props;if(!e||!t)return;const{can_upload:n}=t;r&&n&&this.setState({isUploadModalOpen:!0})})),Qg(this,"uploadSuccessHandler",(()=>{const{currentCollection:{id:e}}=this.state;this.fetchFolder(e,!1)})),Qg(this,"createFolder",(()=>{this.createFolderCallback()})),Qg(this,"createFolderCallback",(e=>{const{isCreateFolderModalOpen:t,currentCollection:r}=this.state,{canCreateNewFolder:n}=this.props;if(!n)return;const{id:o,permissions:i}=r;if(!o||!i)return;const{can_upload:a}=i;a&&(t&&e?e.trim()?e.length>255?this.setState({errorCode:ze,isLoading:!1}):(this.setState({isLoading:!0}),this.api.getFolderAPI().create(o,e.trim(),(()=>{this.fetchFolder(o)}),(({response:{status:e}})=>{this.setState({errorCode:409===e?qe:Be,isLoading:!1})}))):this.setState({errorCode:Be,isLoading:!1}):this.setState({isCreateFolderModalOpen:!0,errorCode:""}))})),Qg(this,"select",((e,{forceSharedLink:t=!0}={})=>{const{canSetShareAccess:r,type:n,maxSelectable:o}=this.props,{view:i,selected:a,currentCollection:{items:s=[]}}=this.state,{id:l,type:c}=e;if(!l||!c||-1===n.indexOf(c))return;const u=Object.keys(a),d=u.length,h=d===o,p=1===o,f=this.api.getAPI(c).getCacheKey(l),g=a[f],m=this.api.getCache().get(f),y=-1!==u.indexOf(f);if(g&&g===m)delete g.selected,delete a[f];else{if(h&&!p&&!y)return;if(d>0&&p){const e=u[0];delete a[e].selected,delete a[e]}e.selected=!0,a[f]=e,r&&t&&this.fetchSharedLinkInfo(e)}const v=s.findIndex((t=>t.id===e.id));this.setState({selected:a,focusedRow:v},(()=>{i===b&&this.showSelected()}))})),Qg(this,"fetchSharedLinkInfo",(e=>{const{id:t,type:r}=e;switch(r){case k:this.api.getFolderAPI().getFolderFields(t,this.handleSharedLinkSuccess,Dt(),{fields:Js});break;case I:this.api.getFileAPI().getFile(t,this.handleSharedLinkSuccess,Dt(),{fields:Js});break;case O:this.api.getWebLinkAPI().getWeblink(t,this.handleSharedLinkSuccess,Dt(),{fields:Js});break;default:throw new Error("Unknown Type")}})),Qg(this,"handleSharedLinkSuccess",(async e=>{const{selected:t}=this.state,{id:r,type:n}=e,o=this.api.getAPI(n).getCacheKey(r);let i=e;!e[oe]&&Wt()(e,ee,!1)&&await this.api.getAPI(e.type).share(e,void 0,(e=>{i=e})),this.updateItemInCollection(i),i.selected&&i!==t[o]&&this.select(i,{forceSharedLink:!1})})),Qg(this,"changeShareAccess",((e,t)=>{const{canSetShareAccess:r}=this.props;if(!t||!r)return;const{permissions:n,type:o}=t;if(!n||!o)return;const{can_set_share_access:i}=n;i&&this.api.getAPI(o).share(t,e,(e=>{this.updateItemInCollection(e),t.selected&&this.select(e,{forceSharedLink:!1})}))})),Qg(this,"updateItemInCollection",(e=>{const{currentCollection:t}=this.state,{items:r=[]}=t,n={currentCollection:Yg(Yg({},t),{},{items:r.map((t=>t.id===e.id?e:t))})};this.setState(n)})),Qg(this,"sort",((e,t)=>{const{currentCollection:{id:r}}=this.state;r&&this.setState({sortBy:e,sortDirection:t},this.refreshCollection)})),Qg(this,"tableRef",(e=>{this.table=e})),Qg(this,"closeModals",(()=>{const{focusedRow:e}=this.state;this.setState({isLoading:!1,isCreateFolderModalOpen:!1,isUploadModalOpen:!1});const{selected:t,currentCollection:{items:r=[]}}=this.state;t&&r.length>0&&rg(this.rootElement,`.bcp-item-row-${e}`)})),Qg(this,"onKeyDown",(e=>{if(eg(e.target))return;const{rootFolderId:t}=this.props,r=e.key.toLowerCase();switch(r){case"/":rg(this.rootElement,'.be-search input[type="search"]',!1),e.preventDefault();break;case"arrowdown":rg(this.rootElement,".bcp-item-row",!1),this.setState({focusedRow:0}),e.preventDefault();break;case"g":break;case"b":this.globalModifier&&(rg(this.rootElement,".be-breadcrumb button",!1),e.preventDefault());break;case"f":this.globalModifier&&(this.fetchFolder(t),e.preventDefault());break;case"c":this.globalModifier&&(this.choose(),e.preventDefault());break;case"x":this.globalModifier&&(this.cancel(),e.preventDefault());break;case"s":this.globalModifier&&(this.showSelected(),e.preventDefault());break;case"u":this.globalModifier&&(this.upload(),e.preventDefault());break;case"r":this.globalModifier&&(this.showRecents(),e.preventDefault());break;case"n":this.globalModifier&&(this.createFolder(),e.preventDefault());break;default:return void(this.globalModifier=!1)}this.globalModifier="g"===r})),Qg(this,"onFocusChange",(e=>{this.setState({focusedRow:e})})),Qg(this,"paginate",(e=>{this.setState({currentOffset:e},this.refreshCollection)}));const{apiHost:t,clientName:r,initialPage:n,initialPageSize:o,language:i,requestInterceptor:a,responseInterceptor:s,rootFolderId:l,sharedLink:c,sharedLinkPassword:u,sortBy:d,sortDirection:h,token:p,uploadHost:f}=e;this.api=new sh({apiHost:t,clientName:r,id:`${x}${l}`,language:i,requestInterceptor:a,responseInterceptor:s,sharedLink:c,sharedLinkPassword:u,token:p,uploadHost:f}),this.id=Jt()("bcp_"),this.state={sortBy:d,sortDirection:h,rootName:"",currentCollection:{},currentOffset:o*(n-1),currentPageSize:o,selected:{},searchQuery:"",view:g,isCreateFolderModalOpen:!1,isUploadModalOpen:!1,focusedRow:0,isLoading:!1,errorCode:""}}clearCache(){this.api.destroy(!0)}componentWillUnmount(){this.clearCache()}componentDidMount(){const{defaultView:e,currentFolderId:t}=this.props;this.rootElement=document.getElementById(this.id),this.appElement=this.rootElement.firstElementChild,"recents"===e?this.showRecents():this.fetchFolder(t)}componentDidUpdate({currentFolderId:e},t){const{currentFolderId:r}=this.props,{currentCollection:{id:n}}=t;e!==r&&"string"==typeof r&&n!==r&&this.fetchFolder(r)}currentUnloadedCollection(){const{currentCollection:e}=this.state;return $g(e,{percentLoaded:0})}finishNavigation(){const{autoFocus:e}=this.props,{currentCollection:{percentLoaded:t}}=this.state;!this.firstLoad||e?(100!==t||tg(document.activeElement)||(rg(this.rootElement,".bcp-item-row"),this.setState({focusedRow:0})),this.firstLoad=!1):this.firstLoad=!1}fetchFolderSuccessCallback(e,t){const{clearSelectedItemsOnNavigation:r,rootFolderId:n}=this.props,{id:o,name:i}=e,a={currentCollection:e,rootName:o===n?i:""},s=r?Yg(Yg({},a),{},{selected:{}}):a;this.closeModals(),r&&this.deleteSelectedKeys(),t?this.setState(s,this.finishNavigation):this.setState(s)}recentsSuccessCallback(e,t){const r={currentCollection:e};t?this.setState(r,this.finishNavigation):this.setState(r)}showRecents(e=!0){const{rootFolderId:t}=this.props;this.setState({searchQuery:"",view:y,currentCollection:this.currentUnloadedCollection(),currentOffset:0}),this.api.getRecentsAPI().recents(t,(t=>{this.recentsSuccessCallback(t,e)}),this.errorCallback,{forceFetch:!0})}render(){const{language:t,messages:r,rootFolderId:n,logoUrl:o,canUpload:i,canSetShareAccess:a,canCreateNewFolder:s,contentUploaderProps:l,extensions:c,maxSelectable:u,type:d,token:h,sharedLink:p,sharedLinkPassword:f,apiHost:g,uploadHost:m,isHeaderLogoVisible:b,isPaginationVisible:y,isSmall:v,className:_,measureRef:w,chooseButtonLabel:E,cancelButtonLabel:C,requestInterceptor:S,responseInterceptor:k,renderCustomActionButtons:I,showSelectedButton:O}=this.props,{view:T,rootName:A,selected:x,currentCollection:P,currentPageSize:R,searchQuery:N,isCreateFolderModalOpen:L,isUploadModalOpen:M,isLoading:D,errorCode:U,focusedRow:F}=this.state,{id:j,offset:H,permissions:B,totalCount:z}=P,{can_upload:q}=B||{},K=Object.keys(x).length,V=1===u,G=K===u&&!V,W=i&&!!q,$=s&&!!q,J=qt()("be bcp",_);return e.createElement(bs,{language:t,messages:r},e.createElement("div",{id:this.id,className:J,ref:w,"data-testid":"content-picker"},e.createElement("div",{className:"be-app-element",onKeyDown:this.onKeyDown,tabIndex:0},e.createElement(mo,{view:T,isHeaderLogoVisible:b,isSmall:v,searchQuery:N,logoUrl:o,onSearch:this.search}),e.createElement(Ji,{view:T,rootId:n,isSmall:v,rootName:A,currentCollection:P,canUpload:W,canCreateNewFolder:$,onUpload:this.upload,onCreate:this.createFolder,onItemClick:this.fetchFolder,onSortChange:this.sort}),e.createElement(Vg,{view:T,isSmall:v,rootId:n,rootElement:this.rootElement,focusedRow:F,selectableType:d,canSetShareAccess:a,extensionsWhitelist:c,hasHitSelectionLimit:G,currentCollection:P,isSingleSelect:V,tableRef:this.tableRef,onItemSelect:this.select,onItemClick:this.onItemClick,onFocusChange:this.onFocusChange,onShareAccessChange:this.changeShareAccess}),e.createElement(Wg,{currentCollection:P,selectedCount:K,selectedItems:this.getSelectedItems(),showSelectedButton:O,hasHitSelectionLimit:G,isSingleSelect:V,onSelectedClick:this.showSelected,onChoose:this.choose,onCancel:this.cancel,chooseButtonLabel:E,cancelButtonLabel:C,renderCustomActionButtons:I},y?e.createElement(Zf,{offset:H,onOffsetChange:this.paginate,pageSize:R,totalCount:z}):null)),W&&this.appElement?e.createElement(Uf,{isOpen:M,currentFolderId:j,token:h,sharedLink:p,sharedLinkPassword:f,apiHost:g,uploadHost:m,onClose:this.uploadSuccessHandler,parentElement:this.rootElement,appElement:this.appElement,contentUploaderProps:l,requestInterceptor:S,responseInterceptor:k}):null,$&&this.appElement?e.createElement(jf,{isOpen:L,onCreate:this.createFolderCallback,onCancel:this.closeModals,isLoading:D,errorCode:U,parentElement:this.rootElement,appElement:this.appElement}):null))}}Qg(Zg,"defaultProps",{type:Xg,rootFolderId:Pe,onChoose:Dt(),onCancel:Dt(),initialPage:1,initialPageSize:50,sortBy:Y,sortDirection:M,extensions:[],maxSelectable:1/0,canUpload:!0,canSetShareAccess:!0,canCreateNewFolder:!0,autoFocus:!1,className:"",apiHost:Te,uploadHost:Ae,clientName:Re,defaultView:"files",contentUploaderProps:{},showSelectedButton:!0,clearSelectedItemsOnNavigation:!1,isHeaderLogoVisible:!0,isPaginationVisible:!0});const em=Ma(Zg),tm=Bt(Re)(em),rm=["modal"];function nm(){return nm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nm.apply(null,arguments)}function om(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const im=class extends Rt{constructor(...e){super(...e),om(this,"onChoose",(e=>{this.emit("choose",e)})),om(this,"onCancel",(()=>{this.emit("cancel")}))}getType(){const{type:e}=this.options||{};return e||`${k},${I},${O}`}getClientName(){return Re}render(){const r=this.options,{modal:n}=r,o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(r,rm),i=n?tm:em;(0,t.render)(e.createElement(i,nm({clientName:this.getClientName(),componentRef:this.setComponent,language:this.language,messages:this.messages,modal:n,onCancel:this.onCancel,onChoose:this.onChoose,rootFolderId:this.id,token:this.token,type:this.getType()},o)),this.container)}};const am=class extends im{getType(){return`${I},${O}`}getClientName(){return"FilePicker"}};const sm=class extends im{getType(){return k}getClientName(){return"FolderPicker"}};__nested_webpack_require_646968__.g.Box=__nested_webpack_require_646968__.g.Box||{},__nested_webpack_require_646968__.g.Box.FilePicker=am,__nested_webpack_require_646968__.g.Box.FolderPicker=sm,__nested_webpack_require_646968__.g.Box.ContentPicker=im})()})()},8775:function(e,t,r){(function(){var e="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){return e==Array.prototype||e==Object.prototype||(e[t]=r.value),e},t=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof r.g&&r.g];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}(this),n=function(r,n){if(n)e:{var o=t;r=r.split(".");for(var i=0;i<r.length-1;i++){var a=r[i];if(!(a in o))break e;o=o[a]}(n=n(i=o[r=r[r.length-1]]))!=i&&null!=n&&e(o,r,{configurable:!0,writable:!0,value:n})}},o=function(e,t,r){if(null==e)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return e+""};n("String.prototype.endsWith",(function(e){return e||function(e,t){var r=o(this,e,"endsWith");e+="",void 0===t&&(t=r.length),t=Math.max(0,Math.min(0|t,r.length));for(var n=e.length;n>0&&t>0;)if(r[--t]!=e[--n])return!1;return n<=0}})),n("Object.is",(function(e){return e||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}})),n("Array.prototype.includes",(function(e){return e||function(e,t){var r=this;r instanceof String&&(r=String(r));var n=r.length;for((t=t||0)<0&&(t=Math.max(t+n,0));t<n;t++){var o=r[t];if(o===e||Object.is(o,e))return!0}return!1}})),n("String.prototype.includes",(function(e){return e||function(e,t){return-1!==o(this,e,"includes").indexOf(e,t||0)}})),window.gapi=window.gapi||{},window.gapi.o=(new Date).getTime();var i=this||self,a="closure_uid_"+(1e9*Math.random()>>>0),s=0,l=function(e){return e},c=function(e){this.l=e};c.prototype.toString=function(){return this.l},new c("about:blank"),new c("about:invalid#zClosurez");var u=[],d=function(e){console.warn("A URL with content '"+e+"' was sanitized away.")};-1===u.indexOf(d)&&u.push(d);var h=window,p=document,f=h.location,g=function(){},m=/\[native code\]/,b=function(e,t,r){return e[t]=e[t]||r},y=function(){var e;if((e=Object.create)&&m.test(e))e=e(null);else for(var t in e={})e[t]=void 0;return e},v=b(h,"gapi",{}),_={};_=b(h,"___jsl",y()),b(_,"I",0),b(_,"hel",10);var w=function(){var e=f.href;if(_.dpo)var t=_.h;else{t=_.h;var r=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),n=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(e=e&&(r.exec(e)||n.exec(e)))try{t=decodeURIComponent(e[2])}catch(e){}}return t},E=function(e){return b(b(_,"H",y()),e,y())},C=b(_,"perf",y()),S=b(C,"g",y()),k=b(C,"i",y());b(C,"r",[]),y(),y();var I=function(e,t,r){var n=C.r;"function"==typeof n?n(e,t,r):n.push([e,t,r])},O=function(e,t,r){t&&t.length>0&&(t=T(t),r&&r.length>0&&(t+="___"+T(r)),t.length>28&&(t=t.substr(0,28)+(t.length-28)),r=t,t=b(k,"_p",y()),b(t,r,y())[e]=(new Date).getTime(),I(e,"_p",r))},T=function(e){return e.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")},A=y(),x=[],P=function(e){throw Error("Bad hint: "+e)};x.push(["jsl",function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var r=e[t];"object"==typeof r?_[t]=b(_,t,[]).concat(r):b(_,t,r)}(t=e.u)&&((e=b(_,"us",[])).push(t),(t=/^https:(.*)$/.exec(t))&&e.push("http:"+t[1]))}]);var R=/^(\/[a-zA-Z0-9_\-]+)+$/,N=[/\/amp\//,/\/amp$/,/^\/amp$/],L=/^[a-zA-Z0-9\-_\.,!]+$/,M=/^gapi\.loaded_[0-9]+$/,D=/^[a-zA-Z0-9,._-]+$/,U=function(e){"/"!==e.charAt(0)&&P("relative path");for(var t=e.substring(1).split("/"),r=[];t.length;){if((e=t.shift()).length&&0!=e.indexOf(".")){if(e.indexOf("=")>0){t.unshift(e);break}}else P("empty/relative directory");r.push(e)}e={};for(var n=0,o=t.length;n<o;++n){var i=t[n].split("="),a=decodeURIComponent(i[0]),s=decodeURIComponent(i[1]);2==i.length&&a&&s&&(e[a]=e[a]||s)}for(t="/"+r.join("/"),R.test(t)||P("invalid_prefix"),r=0,n=N.length;r<n;++r)N[r].test(t)&&P("invalid_prefix");return{pathPrefix:t,version:r=j(e,"k",!0),g:n=j(e,"am"),i:o=j(e,"rs"),j:e=j(e,"t")}},F=function(e){for(var t=[],r=0,n=e.length;r<n;++r){var o=e[r].replace(/\./g,"_").replace(/-/g,"_");D.test(o)&&t.push(o)}return t.join(",")},j=function(e,t,r){if(!(e=e[t])&&r&&P("missing: "+t),e){if(L.test(e))return e;P("invalid: "+t)}return null},H=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,B=/\/cb=/g,z=/\/\//g;A.m=function(e,t,r,n){return(e=e[0])||P("missing_hint"),"https://apis.google.com"+function(e,t,r,n){e=U(e),M.test(r)||P("invalid_callback"),t=F(t),n=n&&n.length?F(n):null;var o=function(e){return encodeURIComponent(e).replace(/%2C/g,",")};return[encodeURIComponent(e.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",o(e.version),"/m=",o(t),n?"/exm="+o(n):"","/rt=j/sv=1/d=1/ed=1",e.g?"/am="+o(e.g):"",e.i?"/rs="+o(e.i):"",e.j?"/t="+o(e.j):"","/cb=",o(r)].join("")}(e,t,r,n)};var q=decodeURI("%73cript"),K=/^[-+_0-9\/A-Za-z]+={0,2}$/,V=function(e,t){for(var r=[],n=0;n<e.length;++n){var o,i=e[n];if(o=i){e:{for(o=0;o<t.length;o++)if(t[o]===i)break e;o=-1}o=o<0}o&&r.push(i)}return r},G=function(){var e=_.nonce;return void 0!==e?e&&e===String(e)&&e.match(K)?e:_.nonce=null:p.querySelector&&(e=p.querySelector("script[nonce]"))?(e=e.nonce||e.getAttribute("nonce")||"")&&e===String(e)&&e.match(K)?_.nonce=e:_.nonce=null:null},W=function(e){var t=p.createElement(q);t.setAttribute("src",X?X.createScriptURL(e):e),null!==(e=G())&&t.setAttribute("nonce",e),t.async="true",(e=p.getElementsByTagName(q)[0])?e.parentNode.insertBefore(t,e):(p.head||p.body||p.documentElement).appendChild(t)},$=function(e,t){var r=t||{};"function"==typeof t&&((r={}).callback=t);var n=(t=r)&&t._c;if(n)for(var o=0;o<x.length;o++){var i=x[o][0],a=x[o][1];a&&Object.prototype.hasOwnProperty.call(n,i)&&a(n[i],e,t)}if(t=[],e?t=e.split(":"):r.features&&(t=r.features),!(e=r.h)&&!(e=w()))throw Error("Bad hint: !hint");J(t||[],r,e)},J=function(e,t,r){e=function(e){e=e.sort();for(var t=[],r=void 0,n=0;n<e.length;n++){var o=e[n];o!=r&&t.push(o),r=o}return t}(e)||[];var n=t.callback,o=t.config,i=t.timeout,l=t.ontimeout,c=t.onerror,u=void 0;"function"==typeof c&&(u=c);var d=null,f=!1;if(i&&!l||!i&&l)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";c=b(E(r),"r",[]).sort();var m=b(E(r),"L",[]).sort(),C=_.le||[],S=[].concat(c),k=function(e,t){if(f)return 0;h.clearTimeout(d),m.push.apply(m,I);var n=((v||{}).config||{}).update;if(n?n(o):o&&b(_,"cu",[]).push(o),t){O("me0",e,S);try{!function(e,t,r){Z((function(){var r=t===w()?b(v,"_",y()):y();r=b(E(t),"_",r),e(r)}),r)}(t,r,u)}finally{O("me1",e,S)}}return 1};i>0&&(d=h.setTimeout((function(){f=!0,l()}),i));var I=V(e,m);if(I.length){I=V(e,c);var T=b(_,"CP",[]),x=T.length;if(T[x]=function(e){if(!e)return 0;O("ml1",I,S);var t=function(t){T[x]=null,k(I,e)&&function(e){var t=b(_,"PQ",[]);_.PQ=[];var r=t.length;if(0===r)e();else for(var n=0,o=function(){++n===r&&e()},i=0;i<r;i++)t[i](o)}((function(){n&&n(),t()}))},r=function(){var e=T[x+1];e&&e()};x>0&&T[x-1]?T[x]=function(){t(r)}:t(r)},I.length){var R="loaded_"+_.I++;v[R]=function(e){T[x](e),v[R]=null},e=function(e,t,r,n,o){var i=e.split(";"),l=i.shift(),c=A[l],u=null;c?u=c(i,t,r,n):P("no hint processor for: "+l),u||P("failed to generate load url"),r=(t=u).match(z),(n=t.match(B))&&1===n.length&&H.test(t)&&r&&1===r.length||P("failed sanity: "+e);try{if(e="?",o&&o.length>0){for(r=t=0,n={};r<o.length;){var d=o[r++];i=void 0,i="object"==(l=typeof d)&&null!=d||"function"==l?"o"+(Object.prototype.hasOwnProperty.call(d,a)&&d[a]||(d[a]=++s)):(typeof d).charAt(0)+d,Object.prototype.hasOwnProperty.call(n,i)||(n[i]=!0,o[t++]=d)}o.length=t,u=u+"?le="+o.join(","),e="&"}if(_.rol){var h=_.ol;h&&h.length&&(u=""+u+e+"ol="+h.length)}}catch(e){}return u}(r,I,"gapi."+R,c,C),c.push.apply(c,I),O("ml0",I,S),t.sync||h.___gapisync?function(e){if("loading"!=p.readyState)W(e);else{var t=G(),r="";null!==t&&(r=' nonce="'+t+'"'),e="<"+q+' src="'+encodeURI(e)+'"'+r+"></"+q+">",p.write(X?X.createHTML(e):e)}}(e):W(e)}else T[x](g)}else k(I)&&n&&n()},Y=null,Q=i.trustedTypes;if(Q&&Q.createPolicy)try{Y=Q.createPolicy("gapi#gapi",{createHTML:l,createScript:l,createScriptURL:l})}catch(e){i.console&&i.console.error(e.message)}var X=Y,Z=function(e,t){if(_.hee&&_.hel>0)try{return e()}catch(e){t&&t(e),_.hel--,$("debug_error",(function(){try{window.___jsl.hefn(e)}catch(t){throw e}}))}else try{return e()}catch(e){throw t&&t(e),e}},ee=v.load;ee&&b(_,"ol",[]).push(ee),v.load=function(e,t){return Z((function(){return $(e,t)}))},x.unshift(["url",function(e,t,r){!e||t&&""!==t||!e.endsWith(".js")||((t=(e=e.substring(0,e.length-3)).lastIndexOf("/")+1)>=e.length||(e=e.substr(t).split(":").filter((function(e){return!["api","platform"].includes(e)})),r.features=e))}]),S.bs0=window.gapi._bs||(new Date).getTime(),I("bs0"),S.bs1=(new Date).getTime(),I("bs1"),delete window.gapi._bs,window.gapi.load("",{callback:window.gapi_onload,_c:{url:"https://apis.google.com/js/api.js",jsl:{ci:{"oauth-flow":{authUrl:"https://accounts.google.com/o/oauth2/auth",proxyUrl:"https://accounts.google.com/o/oauth2/postmessageRelay",disableOpt:!0,idpIframeUrl:"https://accounts.google.com/o/oauth2/iframe",usegapi:!1},debug:{reportExceptionRate:1,forceIm:!1,rethrowException:!0,host:"https://apis.google.com"},gen204logger:{interval:3e4,rate:.01,batch:!1},enableMultilogin:!0,"googleapis.config":{auth:{useFirstPartyAuthV2:!0},root:"https://content.googleapis.com","root-1p":"https://clients6.google.com"},inline:{css:1},disableRealtimeCallback:!1,drive_share:{skipInitCommand:!0},csi:{rate:.01},client:{cors:!1},signInDeprecation:{rate:0},include_granted_scopes:!0,llang:"en",iframes:{youtube:{params:{location:["search","hash"]},url:":socialhost:/:session_prefix:_/widget/render/youtube?usegapi=1",methods:["scroll","openwindow"]},ytsubscribe:{url:"https://www.youtube.com/subscribe_embed?usegapi=1"},plus_circle:{params:{url:""},url:":socialhost:/:session_prefix::se:_/widget/plus/circle?usegapi=1"},plus_share:{params:{url:""},url:":socialhost:/:session_prefix::se:_/+1/sharebutton?plusShare=true&usegapi=1"},rbr_s:{params:{url:""},url:":socialhost:/:session_prefix::se:_/widget/render/recobarsimplescroller"},":source:":"3p",playemm:{url:"https://play.google.com/work/embedded/search?usegapi=1&usegapi=1"},savetoandroidpay:{url:"https://pay.google.com/gp/v/widget/save"},blogger:{params:{location:["search","hash"]},url:":socialhost:/:session_prefix:_/widget/render/blogger?usegapi=1",methods:["scroll","openwindow"]},evwidget:{params:{url:""},url:":socialhost:/:session_prefix:_/events/widget?usegapi=1"},partnersbadge:{url:"https://www.gstatic.com/partners/badge/templates/badge.html?usegapi=1"},dataconnector:{url:"https://dataconnector.corp.google.com/:session_prefix:ui/widgetview?usegapi=1"},surveyoptin:{url:"https://www.google.com/shopping/customerreviews/optin?usegapi=1"},":socialhost:":"https://apis.google.com",shortlists:{url:""},hangout:{url:"https://talkgadget.google.com/:session_prefix:talkgadget/_/widget"},plus_followers:{params:{url:""},url:":socialhost:/_/im/_/widget/render/plus/followers?usegapi=1"},post:{params:{url:""},url:":socialhost:/:session_prefix::im_prefix:_/widget/render/post?usegapi=1"},signin:{params:{url:""},url:":socialhost:/:session_prefix:_/widget/render/signin?usegapi=1",methods:["onauth"]},rbr_i:{params:{url:""},url:":socialhost:/:session_prefix::se:_/widget/render/recobarinvitation"},share:{url:":socialhost:/:session_prefix::im_prefix:_/widget/render/share?usegapi=1"},plusone:{params:{count:"",size:"",url:""},url:":socialhost:/:session_prefix::se:_/+1/fastbutton?usegapi=1"},comments:{params:{location:["search","hash"]},url:":socialhost:/:session_prefix:_/widget/render/comments?usegapi=1",methods:["scroll","openwindow"]},":im_socialhost:":"https://plus.googleapis.com",backdrop:{url:"https://clients3.google.com/cast/chromecast/home/widget/backdrop?usegapi=1"},visibility:{params:{url:""},url:":socialhost:/:session_prefix:_/widget/render/visibility?usegapi=1"},autocomplete:{params:{url:""},url:":socialhost:/:session_prefix:_/widget/render/autocomplete"},":signuphost:":"https://plus.google.com",ratingbadge:{url:"https://www.google.com/shopping/merchantverse/?usegapi=1"},appcirclepicker:{url:":socialhost:/:session_prefix:_/widget/render/appcirclepicker"},follow:{url:":socialhost:/:session_prefix:_/widget/render/follow?usegapi=1"},community:{url:":ctx_socialhost:/:session_prefix::im_prefix:_/widget/render/community?usegapi=1"},sharetoclassroom:{url:"https://classroom.google.com/sharewidget?usegapi=1"},"sharetoclassroom-boq":{url:"https://classroom.google.com/sharewidget-boq?usegapi=1"},ytshare:{params:{url:""},url:":socialhost:/:session_prefix:_/widget/render/ytshare?usegapi=1"},plus:{url:":socialhost:/:session_prefix:_/widget/render/badge?usegapi=1"},family_creation:{params:{url:""},url:"https://families.google.com/webcreation?usegapi=1&usegapi=1"},commentcount:{url:":socialhost:/:session_prefix:_/widget/render/commentcount?usegapi=1"},configurator:{url:":socialhost:/:session_prefix:_/plusbuttonconfigurator?usegapi=1"},zoomableimage:{url:"https://ssl.gstatic.com/microscope/embed/"},appfinder:{url:"https://workspace.google.com/:session_prefix:marketplace/appfinder?usegapi=1"},savetowallet:{url:"https://pay.google.com/gp/v/widget/save"},person:{url:":socialhost:/:session_prefix:_/widget/render/person?usegapi=1"},savetodrive:{url:"https://drive.google.com/savetodrivebutton?usegapi=1",methods:["save"]},page:{url:":socialhost:/:session_prefix:_/widget/render/page?usegapi=1"},card:{url:":socialhost:/:session_prefix:_/hovercard/card"}}},h:"m;/_/scs/abc-static/_/js/k=gapi.lb.en.HLcjcliCxoY.O/d=1/rs=AHpOoo-EKlLcELGvY6Qdg_kTBmN3Ra8MLw/m=__features__",u:"https://apis.google.com/js/api.js",hee:!0,dpo:!1,le:["scs"]},platform:"backdrop blogger comments commentcount community donation family_creation follow hangout health page partnersbadge person playemm playreview plus plusone post ratingbadge savetoandroidpay savetodrive savetowallet sharetoclassroom shortlists signin2 surveyoptin visibility youtube ytsubscribe zoomableimage".split(" "),annotation:["interactivepost","recobar","signin2","autocomplete"]}}),b(_,"le",[]).push("fedcm_migration_mod")}).call(this)},5361:()=>{gapi.loaded_1((function(e){var t=this;e.Ig=function(e){if(!e)return"";if(/^about:(?:blank|srcdoc)$/.test(e))return t.origin||"";0===e.indexOf("blob:")&&(e=e.substring(5)),0==(e=(e=e.split("#")[0].split("?")[0]).toLowerCase()).indexOf("//")&&(e=t.location.protocol+e),/^[\w\-]*:\/\//.test(e)||(e=t.location.href);var r=e.substring(e.indexOf("://")+3),n=r.indexOf("/");if(-1!=n&&(r=r.substring(0,n)),!(n=e.substring(0,e.indexOf("://"))))throw Error("s`"+e);if("http"!==n&&"https"!==n&&"chrome-extension"!==n&&"moz-extension"!==n&&"file"!==n&&"android-app"!==n&&"chrome-search"!==n&&"chrome-untrusted"!==n&&"chrome"!==n&&"app"!==n&&"devtools"!==n)throw Error("t`"+n);e="";var o=r.indexOf(":");if(-1!=o){var i=r.substring(o+1);r=r.substring(0,o),("http"===n&&"80"!==i||"https"===n&&"443"!==i)&&(e=":"+i)}return n+"://"+r+e},e.Mk=function(t){return new e.pk(t)};var r=function(){if(this.Nx={t0:d?"../"+d:null,Az:A,sV:m,Hya:h,qo:b,yza:C},this.Uf=e.ze,this.G_=this.Sda,this.Iea=/MSIE\s*[0-8](\D|$)/.test(t.navigator.userAgent),this.Nx.t0){this.Uf=this.Nx.sV(this.Uf,this.Nx.t0);var r=this.Uf.document,n=r.createElement("script");n.setAttribute("type","text/javascript"),n.text="window.doPostMsg=function(w,s,o) {window.setTimeout(function(){w.postMessage(s,o);},0);};",r.body.appendChild(n),this.G_=this.Uf.doPostMsg}this.NN={},this.pO={},r=(0,e.Db)(this.lI,this),e.Oe(this.Uf,"message",r),e.Ee(e.Pe,"RPMQ",[]).push(r),this.Uf!=this.Uf.parent&&R(this,this.Uf.parent,this.IJ(this.Uf.name),"*")};r.prototype.IJ=function(e){return'{"h":"'+escape(e)+'"}'};var n=function(t){return!!/^\s*{/.test(t)&&(null!==(t=e.Pf(t))&&"object"==typeof t&&!!t.g)};r.prototype.lI=function(t){var r=String(t.data);e.Uf.debug("gapix.rpc.receive("+h+"): "+(!r||r.length<=512?r:r.substr(0,512)+"... ("+r.length+" bytes)"));var o=0!==r.indexOf("!_");o||(r=r.substring(2));var i=n(r);if(!o&&!i){if(!i&&(o=function(e){var t=null;return 0===e.indexOf('{"h":"')&&e.indexOf('"}')===e.length-2&&(t=unescape(e.substring(6,e.length-2))),t}(r)))return void(this.NN[o]?this.NN[o]():this.pO[o]=1);var a=t.origin,s=this.Nx.Az;this.Iea?e.ze.setTimeout((function(){s(r,a)}),0):s(r,a)}},r.prototype.Lb=function(e,t){".."===e||this.pO[e]?(t(),delete this.pO[e]):this.NN[e]=t};var o,i,a,s,l,c,u,d,h,p,f,g,m,b,y,v,_,w,E,C,S,k,I,O,T,A,x,P,R=function(t,r,o,i){var a=n(o)?"":"!_";e.Uf.debug("gapix.rpc.send("+h+"): "+(!o||o.length<=512?o:o.substr(0,512)+"... ("+o.length+" bytes)")),t.G_(r,a+o,i)};r.prototype.Sda=function(e,t,r){e.postMessage(t,r)},r.prototype.send=function(e,t,r){(e=this.Nx.sV(this.Uf,e))&&!e.closed&&R(this,e,t,r)},o=0,i=[],a={},s={},l=e.ze.location.href,c=e.Je(l,"rpctoken"),u=e.Je(l,"parent")||e.Ae.referrer,d=e.Je(l,"rly"),h=d||(e.ze!==e.ze.top||e.ze.opener)&&e.ze.name||"..",p=null,f={},g=function(){},e.gl={send:g,Lb:g,IJ:g},m=function(t,r){var n=t;if("/"==r.charAt(0)&&(r=r.substring(1),n=e.ze.top),0===r.length)return n;for(r=r.split("/");r.length;){"{"==(t=r.shift()).charAt(0)&&"}"==t.charAt(t.length-1)&&(t=t.substring(1,t.length-1));var o=t;if(".."===o)n=n==n.parent?n.opener:n.parent;else{if(".."===o||!n.frames[o])return null;var i=n;if(t=o,!("postMessage"in(n=n.frames[o])))if(n instanceof HTMLIFrameElement&&"contentWindow"in n)n=null!=n.contentWindow&&"postMessage"in n.contentWindow?n.contentWindow:null;else{o=null;for(var a=(i=e.Ea(i.document.getElementsByTagName("iframe"))).next();!a.done;a=i.next())((a=a.value).getAttribute("id")==t||a.getAttribute("name")==t)&&(o=a);if(!o||!("contentWindow"in o))throw Error("F`"+n+"`"+t);n=null!=o.contentWindow?o.contentWindow:null}}}return n},b=function(e){return(e=a[e])&&e.token},y=function(e){if(e.f in{})return!1;var t=e.t,r=a[e.r];return e=e.origin,r&&(r.token===t||!r.token&&!t)&&(e===r.origin||"*"===r.origin)},v=function(e){var t=e.id.split("/"),r=t[t.length-1],n=e.origin;return function(e){var t=e.origin;return e.f==r&&(n==t||"*"==n)}},e.ll=function(e,t,r){e=I(e),s[e.name]={Qh:t,Zv:e.Zv,it:r||y},O()},e.ml=function(e){e=I(e),delete s[e.name]},_={},w=function(e,t){(e=_["_"+e])&&e[1](this)&&e[0].call(this,t)},E=function(t){var r=t.c;if(!r)return g;var n=t.r,o=t.g?"legacy__":"";return function(){var t=[].slice.call(arguments,0);t.unshift(n,o+"__cb",null,r),e.pl.apply(null,t)}},C=function(e){p=e},S=function(t){f[t]||(f[t]=e.ze.setTimeout((function(){f[t]=!1,k(t)}),0))},k=function(t){var r=a[t];if(r&&r.ready){var n=r.UK;for(r.UK=[];n.length;)e.gl.send(t,e.Qf(n.shift()),r.origin)}},I=function(e){return 0===e.indexOf("legacy__")?{name:e.substring(8),Zv:!0}:{name:e,Zv:!1}},O=function(){for(var t,r=e.ci("rpc/residenceSec")||60,n=(new Date).getTime()/1e3,o=0;t=i[o];++o){var a=t.wp;if(!a||r>0&&n-t.timestamp>r)i.splice(o,1),--o;else{var l=a.s,c=s[l]||s["*"];if(c)if(i.splice(o,1),--o,a.origin=t.origin,t=E(a),a.callback=t,c.it(a)){if("__cb"!==l&&!!c.Zv!=!!a.g)break;void 0!==(a=c.Qh.apply(a,a.a))&&t(a)}else e.Uf.debug("gapix.rpc.rejected("+h+"): "+l)}}},T=function(e,t,r){i.push({wp:e,origin:t,timestamp:(new Date).getTime()/1e3}),r||O()},A=function(t,r){t=e.Pf(t),T(t,r,!1)},x=function(e){for(;e.length;)T(e.shift(),this.origin,!0);O()},P=function(e){var t=!1,r=(e=e.split("|"))[0];return r.indexOf("/")>=0&&(t=!0),{id:r,origin:e[1]||"*",fJ:t}},e.wl=function(t,r,n,o){var i=P(t);if(o&&(e.ze.frames[i.id]=e.ze.frames[i.id]||o),t=i.id,!a.hasOwnProperty(t)){if(n=n||null,o=i.origin,".."===t)o=e.Ig(u),n=n||c;else if(!i.fJ){var s=e.Ae.getElementById(t);s&&(s=s.src,o=e.Ig(s),n=n||e.Je(s,"rpctoken"))}"*"===i.origin&&o||(o=i.origin),a[t]={token:n,UK:[],origin:o,Hla:r,k0:function(){var e=t;a[e].ready=1,k(e)}},e.gl.Lb(t,a[t].k0)}return a[t].k0},e.pl=function(t,r,n,i){t=t||"..",e.wl(t);var s=r,l=t=t.split("|",1)[0],u=[].slice.call(arguments,3),d=n,f=h,g=c,m=a[l],b=f,w=P(l);if(m&&".."!==l){if(w.fJ){if(!(g=a[l].Hla)){for(b=(g=p?p.substring(1).split("/"):[h]).length-1,l=e.ze.parent;l!==e.ze.top;){var E=l.parent;if(!b--){for(var C=null,k=E.frames.length,O=0;O<k;++O)E.frames[O]==l&&(C=O);g.unshift("{"+C+"}")}l=E}g="/"+g.join("/")}b=g}else b=f="..";g=m.token}d&&w?(m=y,w.fJ&&(m=v(w)),_["_"+ ++o]=[d,m],d=o):d=null,u={s,f,r:b,t:g,c:d,a:u},s=I(s),u.s=s.name,u.g=s.Zv,a[t].UK.push(u),S(t)},"function"!=typeof e.ze.postMessage&&"object"!=typeof e.ze.postMessage||(e.gl=new r,e.ll("__cb",w,(function(){return!0})),e.ll("_processBatch",x,(function(){return!0})),e.wl(".."));var N,L,M,D,U,F,j,H,B,z,q,K,V,G,W,$,J=function(e){this.O=e||{}};e.Uj.prototype.pH=e.rb(9,(function(){return this.O.controller})),e.Uj.prototype.xs=e.rb(8,(function(e){return this.O.apis=e,this})),N=function(e,t){e.O.onload=t},L=function(e){return e.O.rpctoken},e.vm=function(e,t){return e.O.queryParams=t,e},e.wm=function(e,t){return e.O.relayOpen=t,e},e.xm=function(e,t){return e.O.onClose=t,e},M=function(e,t){e.O.controllerData=t},e.zm=function(e){e.O.waitForOnload=!0},D=function(e){return(e=e.O.timeout)?e:null},e.Bm=function(){return!0},e.Cm=function(t){return!!t&&"object"==typeof t&&e.De.test(t.push)},e.Dm=function(e){for(var t=0;t<this.length;t++)if(this[t]===e)return t;return-1},e.Em=function(t,r,n){if(t){e.xl(e.Cm(t),"arrayForEach was called with a non array value");for(var o=0;o<t.length;o++)r.call(n,t[o],o)}},e.Fm=function(t,r,n){if(t)if(e.Cm(t))e.Em(t,r,n);else for(var o in e.xl("object"==typeof t,"objectForEach was called with a non object value"),n=n||t,t)e.Ge(t,o)&&void 0!==t[o]&&r.call(n,t[o],o)},(U=function(e){this.O=e||{}}).prototype.value=function(){return this.O},U.prototype.getIframe=function(){return this.O.iframe};var Y=function(e,t){return e.O.role=t,e},Q=function(e,t){return e.O.data=t,e};U.prototype.Xk=function(e){return this.O.setRpcReady=e,this};var X=function(e){return e.O.setRpcReady};U.prototype.ln=function(e){return this.O.rpctoken=e,this};var Z=function(e){return e.O.selfConnect=!0,e};J.prototype.value=function(){return this.O};var ee=function(e){var t=new ue;return t.O.role=e,t};J.prototype.hV=function(){return this.O.role},J.prototype.Oc=function(e){return this.O.handler=e,this},J.prototype.yb=function(){return this.O.handler};var te=function(e,t){return e.O.filter=t,e};J.prototype.xs=function(e){return this.O.apis=e,this},H=/^[\w\.\-]*$/,e.Sm=function(e){return e.getOrigin()===e.getContext().getOrigin()},e.Tm=function(t){for(var r=e.Fe(),n=0;n<t.length;n++)r[t[n]]=!0;return function(e){return!!r[e.Cd]}},B=function(t,r,n){if(!(t=F[t]))return[];for(var o=[],i=0;i<t.length;i++)o.push(e.tk(t[i].call(n,r,n)));return o},z=function(t,r,n){return function(o){if(!r.isDisposed()){var i=this.origin,a=r.getOrigin();e.xl(i===a,"Wrong origin "+i+" != "+a),i=this.callback,o=B(t,o,r),!n&&o.length>0&&e.xk(o).then(i)}}},e.Wm=function(t,r,n){e.xl("_default"!=t,"Cannot update default api"),j[t]={map:r,filter:n}},e.Xm=function(t,r,n){e.xl("_default"!=t,"Cannot update default api"),e.Ee(j,t,{map:{},filter:e.Sm}).map[r]=n},q=function(t,r){e.Ee(j,"_default",{map:{},filter:e.Bm}).map[t]=r,e.Fm(e.Qm.dg,(function(n){n.register(t,r,e.Bm)}))},e.Zm=function(){return e.Qm},K=/^https?:\/\/[^\/%\\?#\s]+$/i,V={longdesc:!0,name:!0,src:!0,frameborder:!0,marginwidth:!0,marginheight:!0,scrolling:!0,align:!0,height:!0,width:!0,id:!0,class:!0,title:!0,tabindex:!0,hspace:!0,vspace:!0,allowtransparency:!0},G=function(t){this.resolve=this.reject=null,this.promise=e.Mk((0,e.Db)((function(e,t){this.resolve=e,this.reject=t}),this)),t&&(this.promise=W(this.promise,t))},W=function(e,t){return e.then((function(e){try{t(e)}catch(e){}return e}))},$=function(e){this.ig=e,this.Context=function(e){var t=function(t){return new(e().Context)(t)};return t.prototype.addOnConnectHandler=function(t,r,n,o){return e().Context.prototype.addOnConnectHandler.apply(this,[t,r,n,o])},t.prototype.addOnOpenerHandler=function(t,r,n){return e().Context.prototype.addOnOpenerHandler.apply(this,[t,r,n])},t.prototype.closeSelf=function(t,r,n){return e().Context.prototype.closeSelf.apply(this,[t,r,n])},t.prototype.connectIframes=function(t,r){e().Context.prototype.connectIframes.apply(this,[t,r])},t.prototype.getFrameName=function(){return e().Context.prototype.getFrameName.apply(this)},t.prototype.getGlobalParam=function(t){e().Context.prototype.getGlobalParam.apply(this,[t])},t.prototype.getParentIframe=function(){return e().Context.prototype.getParentIframe.apply(this)},t.prototype.getWindow=function(){return e().Context.prototype.getWindow.apply(this)},t.prototype.isDisposed=function(){return e().Context.prototype.isDisposed.apply(this)},t.prototype.open=function(t,r){return e().Context.prototype.open.apply(this,[t,r])},t.prototype.openChild=function(t){return e().Context.prototype.openChild.apply(this,[t])},t.prototype.ready=function(t,r,n,o){e().Context.prototype.ready.apply(this,[t,r,n,o])},t.prototype.removeOnConnectHandler=function(t){e().Context.prototype.removeOnConnectHandler.apply(this,[t])},t.prototype.restyleSelf=function(t,r,n){return e().Context.prototype.restyleSelf.apply(this,[t,r,n])},t.prototype.setCloseSelfFilter=function(t){e().Context.prototype.setCloseSelfFilter.apply(this,[t])},t.prototype.setGlobalParam=function(t,r){e().Context.prototype.setGlobalParam.apply(this,[t,r])},t.prototype.setRestyleSelfFilter=function(t){e().Context.prototype.setRestyleSelfFilter.apply(this,[t])},t}(e),this.Iframe=function(e){var t=function(t,r,n,o){return new(e().Iframe)(t,r,n,o)};return t.prototype.applyIframesApi=function(t){e().Iframe.prototype.applyIframesApi(t)},t.prototype.close=function(t,r){return e().Iframe.prototype.close.apply(this,[t,r])},t.prototype.getContext=function(){return e().Iframe.prototype.getContext.apply(this,[])},t.prototype.getFrameName=function(){return e().Iframe.prototype.getFrameName.apply(this,[])},t.prototype.getId=function(){return e().Iframe.prototype.getId.apply(this,[])},t.prototype.getIframeEl=function(){return e().Iframe.prototype.getIframeEl.apply(this,[])},t.prototype.getOrigin=function(){return e().Iframe.prototype.getOrigin.apply(this,[])},t.prototype.getParam=function(t){e().Iframe.prototype.getParam.apply(this,[t])},t.prototype.getSiteEl=function(){return e().Iframe.prototype.getSiteEl.apply(this,[])},t.prototype.getWindow=function(){return e().Iframe.prototype.getWindow.apply(this,[])},t.prototype.isDisposed=function(){return e().Iframe.prototype.isDisposed.apply(this,[])},t.prototype.ping=function(t,r){return e().Iframe.prototype.ping.apply(this,[t,r])},t.prototype.register=function(t,r,n){e().Iframe.prototype.register.apply(this,[t,r,n])},t.prototype.registerWasClosed=function(t,r){e().Iframe.prototype.registerWasClosed.apply(this,[t,r])},t.prototype.registerWasRestyled=function(t,r){e().Iframe.prototype.registerWasRestyled.apply(this,[t,r])},t.prototype.restyle=function(t,r){return e().Iframe.prototype.restyle.apply(this,[t,r])},t.prototype.send=function(t,r,n,o){return e().Iframe.prototype.send.apply(this,[t,r,n,o])},t.prototype.setParam=function(t,r){e().Iframe.prototype.setParam.apply(this,[t,r])},t.prototype.setSiteEl=function(t){e().Iframe.prototype.setSiteEl.apply(this,[t])},t.prototype.unregister=function(t,r){e().Iframe.prototype.unregister.apply(this,[t,r])},t}(e)},e.g=$.prototype,e.g.CROSS_ORIGIN_IFRAMES_FILTER=function(e){return this.ig().CROSS_ORIGIN_IFRAMES_FILTER(e)},e.g.SAME_ORIGIN_IFRAMES_FILTER=function(e){return this.ig().SAME_ORIGIN_IFRAMES_FILTER(e)},e.g.create=function(e,t,r){return this.ig().create(e,t,r)},e.g.getBeforeOpenStyle=function(e){return this.ig().getBeforeOpenStyle(e)},e.g.getContext=function(){return this.ig().getContext()},e.g.getStyle=function(e){return this.ig().getStyle(e)},e.g.makeWhiteListIframesFilter=function(e){return this.ig().makeWhiteListIframesFilter(e)},e.g.registerBeforeOpenStyle=function(e,t){return this.ig().registerBeforeOpenStyle(e,t)},e.g.registerIframesApi=function(e,t,r){return this.ig().registerIframesApi(e,t,r)},e.g.registerIframesApiHandler=function(e,t,r){return this.ig().registerIframesApiHandler(e,t,r)},e.g.registerStyle=function(e,t){return this.ig().registerStyle(e,t)};var re=function(){this.yi=[]};re.prototype.ig=function(e){return this.yi.length?ne(this.yi[0],e):void 0};var ne=function(e,t){return t=void 0===t?function(e){return new e}:t,e.ctor?t(e.ctor):e.instance},oe=function(){re.apply(this,arguments)};e.t(oe,re);var ie,ae,se=function(t){var r=le.KR,n=t.priority,o=~function(t,r){return e.di(t,r,!0)}(r.yi,(function(e){return e.priority<n?-1:1}));r.yi.splice(o,0,t)},le=new function(){var e=this;this.KR=new oe,this.instance=new $((function(){return e.KR.ig()()}))};se({instance:function(){return t.gapi.iframes},priority:1}),e.ln=le.instance,ie={height:!0,width:!0},ae=/^(?!-*(?:expression|(?:moz-)?binding))(?:[.#]?-?(?:[_a-z0-9-]+)(?:-[_a-z0-9-]+)*-?|-?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:[a-z]{1,2}|%)?|!important|)$/i,e.on=function(e){return"number"==typeof e&&(e=String(e)+"px"),e};var ce=function(){U.apply(this,arguments)};e.t(ce,U);var ue=function(){J.apply(this,arguments)};e.t(ue,J);var de=function(){e.Uj.apply(this,arguments)};e.t(de,e.Uj);var he=function(e){de.call(this,e)};e.t(he,de);var pe=function(e,t){return e.O.frameName=t,e};he.prototype.getFrameName=function(){return this.O.frameName};var fe=function(e,t){return e.O.rpcAddr=t,e};he.prototype.qg=function(){return this.O.rpcAddr};var ge=function(e,t){return e.O.retAddr=t,e};e.g=he.prototype,e.g.Xh=function(){return this.O.retAddr},e.g.Pj=function(e){return this.O.origin=e,this},e.g.getOrigin=function(){return this.O.origin},e.g.Xk=function(e){return this.O.setRpcReady=e,this},e.g.Dp=function(e){this.O.context=e};he.prototype.getIframeEl=function(){return this.O.iframeEl};var me=function(e,t,r){var n=e.qg(),o=t.Xh();ge(fe(r,e.Xh()+"/"+t.qg()),o+"/"+n),pe(r,t.getFrameName()).Pj(t.getOrigin())},be=function(e,t,r){e.setTimeout((function(){t.closed||5==r?ye(t):(t.close(),r++,be(e,t,r))}),1e3)},ye=function(t){t.closed||t.document&&t.document.body&&e.xe(t.document.body,"Please close this window.")};e.zn=function(e,t,r,n){for(this.Mg=!1,this.rb=e,this.oL=t,this.Cq=r,this.La=n,this.Q0=this.La.Xh(),this.Cd=this.La.getOrigin(),this.Uha=this.La.getIframeEl(),this.i3=this.La.O.where,this.yi=[],this.applyIframesApi("_default"),e=this.La.O.apis||[],t=0;t<e.length;t++)this.applyIframesApi(e[t]);this.rb.dg[r]=this},e.g=e.zn.prototype,e.g.isDisposed=function(){return this.Mg},e.g.dispose=function(){if(!this.isDisposed()){for(var t=0;t<this.yi.length;t++)this.unregister(this.yi[t]);delete e.Qm.dg[this.getFrameName()],this.Mg=!0}},e.g.getContext=function(){return this.rb},e.g.getOptions=function(){return this.La},e.g.qg=function(){return this.oL},e.g.Xh=function(){return this.Q0},e.g.getFrameName=function(){return this.Cq},e.g.getIframeEl=function(){return this.Uha},e.g.getSiteEl=function(){return this.i3},e.g.setSiteEl=function(e){this.i3=e},e.g.Xk=function(){(0,this.La.O._rpcReadyFn)()},e.g.setParam=function(e,t){this.La.value()[e]=t},e.g.getParam=function(e){return this.La.value()[e]},e.g.wc=function(){return this.La.value()},e.g.getId=function(){return this.La.getId()},e.g.getOrigin=function(){return this.Cd};var ve=function(e,t){return e.Cq+":"+(e=e.rb.getFrameName())+":"+t};e.g=e.zn.prototype,e.g.register=function(t,r,n){e.xl(!this.isDisposed(),"Cannot register handler on disposed iframe "+t),e.xl((n||e.Sm)(this),"Rejecting untrusted message "+t),n=ve(this,t),1==e.Ee(F,n,[]).push(r)&&(this.yi.push(t),e.ll(n,z(n,this,"_g_wasClosed"===t)))},e.g.unregister=function(t,r){var n=ve(this,t),o=F[n];o&&(r?(r=e.Dm.call(o,r))>=0&&o.splice(r,1):o.splice(0,o.length),0==o.length&&((r=e.Dm.call(this.yi,t))>=0&&this.yi.splice(r,1),e.ml(n)))},e.g.Yfa=function(){return this.yi},e.g.applyIframesApi=function(t){if(this.rF=this.rF||[],!(e.Dm.call(this.rF,t)>=0))for(var r in this.rF.push(t),(t=j[t]||{map:{}}).map)e.Ge(t.map,r)&&this.register(r,t.map[r],t.filter)},e.g.getWindow=function(){if(!e.Sm(this))return null;var t=this.La.O._popupWindow;if(t)return t;var r=this.oL.split("/");t=this.getContext().getWindow();for(var n=0;n<r.length&&t;n++){var o=r[n];t=".."===o?t==t.parent?t.opener:t.parent:t.frames[o]}return t};var _e=function(t){var r={};if(t)for(var n in t)e.Ge(t,n)&&e.Ge(ie,n)&&ae.test(t[n])&&(r[n]=t[n]);return r};e.g=e.zn.prototype,e.g.close=function(e,t){return Ee(this,"_g_close",e,t)},e.g.restyle=function(e,t){return Ee(this,"_g_restyle",e,t)},e.g.rs=function(e,t){return Ee(this,"_g_restyleDone",e,t)},e.g.xda=function(e){return this.getContext().closeSelf(e,void 0,this)},e.g.Dla=function(e){if(e&&"object"==typeof e)return this.getContext().restyleSelf(e,void 0,this)},e.g.Ela=function(t){var r=this.La.O.onRestyle;r&&r.call(this,t,this),t=t&&"object"==typeof t?_e(t):{},(r=this.getIframeEl())&&t&&"object"==typeof t&&(e.Ge(t,"height")&&(t.height=e.on(t.height)),e.Ge(t,"width")&&(t.width=e.on(t.width)),e.He(t,r.style))},e.g.yda=function(t){var r=this.La.O.onClose;if(r&&r.call(this,t,this),r=this.getOptions().O._popupWindow){var n=this.getContext().getWindow().document.getElementById(this.getId());n&&n.parentNode&&n.parentNode.removeChild(n),n=this.getContext().getWindow(),e.Gd&&e.Bh&&n?(n.focus(),be(n,r,0)):(r.close(),ye(r))}r||(r=this.getIframeEl())&&r.parentNode&&r.parentNode.removeChild(r),(r=this.La.pH())&&((n={}).frameName=this.getFrameName(),Ee(r,"_g_disposeControl",n)),r=ve(this,"_g_wasClosed"),B(r,t,this)},e.g.registerWasRestyled=function(e,t){this.register("_g_wasRestyled",e,t)},e.g.registerWasClosed=function(e,t){this.register("_g_wasClosed",e,t)},e.g.ooa=function(){delete this.getContext().dg[this.getFrameName()],this.getContext().getWindow().setTimeout((0,e.Db)((function(){this.dispose()}),this),0)},e.g.send=function(t,r,n,o){return e.xl(!this.isDisposed(),"Cannot send message to disposed iframe - "+t),e.xl((o||e.Sm)(this),"Wrong target for message "+t),n=new G(n),t=this.rb.getFrameName()+":"+this.Cq+":"+t,e.pl(this.oL,t,n.resolve,r),n.promise};var we,Ee=function(t,r,n,o){return t.send(r,n,o,e.Bm)};e.g=e.zn.prototype,e.g.Cka=function(e){return e},e.g.ping=function(e,t){return Ee(this,"_g_ping",t,e)},e.g.Hda=function(t){for(var r,n=(t=t&&"object"==typeof t?t:{}).rpcAddr,o=(this.qg()+"/"+n).split("/"),i=this.getContext().getWindow();(r=o.shift())&&i;)i=".."==r?i.parent:i.frames[r];e.xl(!!i,"Bad rpc address "+n),t._window=i,t._parentRpcAddr=this.qg(),t._parentRetAddr=this.Xh(),this.getContext(),n=new e.Dn(t),this.Sja&&this.Sja(n,t.controllerData),this.bG=this.bG||[],this.bG.push(n,t.controllerData)},e.g.Wda=function(t){t=(t||{}).frameName;for(var r=this.bG||[],n=0;n<r.length;n++)if(r[n].getFrameName()===t)return(t=r.splice(n,1)[0]).dispose(),void(this.Wja&&this.Wja(t));e.xl(!1,"Unknown contolled iframe to dispose - "+t)},e.g.Eda=function(t){var r=new he(t);if((t=new ce(r.value())).O.selfConnect)var n=this;else e.xl(K.test(r.getOrigin()),"Illegal origin for connected iframe - "+r.getOrigin()),(n=this.getContext().dg[r.getFrameName()])?X(r)&&(n.Xk(),Ee(n,"_g_rpcReady")):(r=pe(ge(fe(new he,r.qg()),r.Xh()).Pj(r.getOrigin()),r.getFrameName()).Xk(X(r)).ln(L(r)),n=this.getContext().attach(r.value()));r=this.getContext();var o=t.O.role;t=t.O.data,Oe(r),o=o||"",e.Ee(r.ZF,o,[]).push({iframe:n,data:t}),Te(n,t,r.jK[o])},e.g.TM=function(e,t){new he(t).O._relayedDepth||(Z(Y(new ce(t={}),"_opener")),Ee(e,"_g_connect",t))},e.g.YZ=function(t){var r=this,n=t.O.messageHandlers,o=t.O.messageHandlersFilter,i=t.O.onClose;return e.xm(e.Wj(e.Vj(t,null),null),null),Ee(this,"_g_open",t.value()).then((function(a){var s=new he(a[0]),l=s.getFrameName();a=new he;var c=r.Xh(),u=s.Xh();return ge(fe(a,r.qg()+"/"+s.qg()),u+"/"+c),pe(a,l),a.Pj(s.getOrigin()),a.xs(s.O.apis),a.ln(L(t)),e.Vj(a,n),e.Wj(a,o),e.xm(a,i),(s=r.getContext().dg[l])||(s=r.getContext().attach(a.value())),s}))},e.g.rL=function(t){var r=t.getUrl();e.xl(!r||e.Ql.test(r),"Illegal url for new iframe - "+r);var n=t.bo().value();for(var o in r={},n)e.Ge(n,o)&&e.Ge(V,o)&&(r[o]=n[o]);e.Ge(n,"style")&&("object"==typeof(o=n.style)&&(r.style=_e(o))),t.value().attributes=r},e.g.oka=function(e){e=new he(e),this.rL(e);var t=e.O._relayedDepth||0;e.O._relayedDepth=t+1,e.O.openerIframe=this;var r=L(e);e.ln(null);var n=this;return this.getContext().open(e.value()).then((function(e){var o=new he(e.wc()).O.apis,i=new he;return me(e,n,i),0==t&&Y(new ce(i.value()),"_opener"),i.Xk(!0),i.ln(r),Ee(e,"_g_connect",i.value()),i=new he,pe(ge(fe(i,e.qg()),e.Q0),e.getFrameName()).Pj(e.getOrigin()).xs(o),i.value()}))},e.g.Cla=function(t){this.getContext().addOnOpenerHandler((function(r){r.send("_g_wasRestyled",t,void 0,e.Bm)}),null,e.Bm)},e.Gn=e.Fe(),e.Hn=e.Fe(),e.In=function(t,r){e.Gn[t]=r},e.Jn=function(t){return e.Gn[t]},we=function(t,r){e.Ie.load("gapi.iframes.style."+t,r)},e.Ln=function(t,r){e.Hn[t]=r},e.Mn=function(t){return e.Hn[t]},e.Dn=function(t){if(t=t||{},this.Mg=!1,this.wi=e.Fe(),this.dg=e.Fe(),this.Uf=t._window||e.ze,this.Id=this.Uf.location.href,this.p_=(this.DK=Ce(this.Id,"parent"))?Ce(this.Id,"pfname"):"",this.Fa=this.DK?Ce(this.Id,"_gfid")||Ce(this.Id,"id"):"",this.Cq=e.cm(this.Fa,this.p_),this.Cd=e.Ig(this.Id),this.Fa){var r=new he;fe(r,t._parentRpcAddr||".."),ge(r,t._parentRetAddr||this.Fa),r.Pj(e.Ig(this.DK||this.Id)),pe(r,this.p_),this.Jb=this.attach(r.value())}else this.Jb=null},e.g=e.Dn.prototype,e.g.isDisposed=function(){return this.Mg},e.g.dispose=function(){if(!this.isDisposed()){for(var t=e.Ea(Object.values(this.dg)),r=t.next();!r.done;r=t.next())r.value.dispose();this.Mg=!0}},e.g.getFrameName=function(){return this.Cq},e.g.getOrigin=function(){return this.Cd},e.g.getWindow=function(){return this.Uf},e.g.wb=function(){return this.Uf.document},e.g.setGlobalParam=function(e,t){this.wi[e]=t},e.g.getGlobalParam=function(e){return this.wi[e]},e.g.attach=function(r){e.xl(!this.isDisposed(),"Cannot attach iframe in disposed context"),(r=new he(r)).qg()||fe(r,r.getId()),r.Xh()||ge(r,".."),r.getOrigin()||r.Pj(e.Ig(r.getUrl())),r.getFrameName()||pe(r,e.cm(r.getId(),this.Cq));var n=r.getFrameName();if(this.dg[n])return this.dg[n];var o=r.qg(),i=o;r.getOrigin()&&(i=o+"|"+r.getOrigin());var a=r.Xh(),s=L(r);s||(s=(s=r.getIframeEl())&&(s.getAttribute("data-postorigin")||s.src)||r.getUrl(),s=e.Je(s,"rpctoken")),function(e,t){e.O._rpcReadyFn=t}(r,e.wl(i,a,s,r.O._popupWindow)),i=((t.gadgets||{}).rpc||{}).setAuthToken,s&&i&&i(o,s);var l=new e.zn(this,o,n,r),c=r.O.messageHandlersFilter;return e.Fm(r.O.messageHandlers,(function(e,t){l.register(t,e,c)})),X(r)&&l.Xk(),Ee(l,"_g_rpcReady"),l},e.g.rL=function(t){pe(t,null);var r=t.getId();!r||H.test(r)&&!this.getWindow().document.getElementById(r)||(e.Uf.log("Ignoring requested iframe ID - "+r),t.Oe(null))};var Ce=function(t,r){var n=e.Je(t,r);return n||(n=e.Pf(e.Je(t,"jcp",""))[r]),n||""};e.Dn.prototype.openChild=function(t){e.xl(!this.isDisposed(),"Cannot open iframe in disposed context");var r=new he(t);Ie(this,r);var n=r.getFrameName();if(n&&this.dg[n])return this.dg[n];this.rL(r),n=r.getUrl(),e.xl(n,"No url for new iframe");var o=r.O.queryParams||{};return o.usegapi="1",e.vm(r,o),(o=this.bW&&this.bW(n,r))||(o=r.O.where,e.xl(!!o,"No location for new iframe"),n=e.mm(n,o,t),r.O.iframeEl=n,o=n.getAttribute("id")),fe(r,o).Oe(o),r.Pj(e.Ig(r.O.eurl||"")),this.IY&&this.IY(r,r.getIframeEl()),(n=this.attach(t)).TM&&n.TM(n,t),(t=r.O.onCreate)&&t(n),r.O.disableRelayOpen||n.applyIframesApi("_open"),n};var Se=function(t,r,n){var o=r.O.relayOpen;if(o){var i=t.getParentIframe();if(o instanceof e.zn?(i=o,e.wm(r,0)):Number(o)>0&&e.wm(r,Number(o)-1),i)return e.xl(!!i.YZ,"Relaying iframe open is disabled"),(o=r.getStyle())&&(o=e.Hn[o])&&(r.Dp(t),o(r.value()),r.Dp(null)),r.O.openerIframe=null,n.resolve(i.YZ(r)),!0}return!1};e.Dn.prototype.open=function(t,r){e.xl(!this.isDisposed(),"Cannot open iframe in disposed context");var n=new he(t);r=function(t,r,n){var o=r.O.canvasUrl;if(!o)return n;e.xl(!r.O.allowPost&&!r.O.forcePost,"Post is not supported when using canvas url");var i=r.getUrl();return e.xl(i&&e.Ig(i)===t.Cd&&e.Ig(o)===t.Cd,"Wrong origin for canvas or hidden url "+o),r.setUrl(o),e.zm(r),r.O.canvasUrl=null,function(t){var r=t.getWindow(),o=r.location.hash;o=e.lm(i)+(/#/.test(i)?o.replace(/^#/,"&"):o),r.location.replace(o),n&&n(t)}}(this,n,r);var o=new G(r);if((r=n.getUrl())&&n.setUrl(e.lm(r)),Se(this,n,o)||function(t,r,n){var o=r.getStyle();if(o){if(e.xl(!!e.Jn,"Defer style is disabled, when requesting style "+o),!e.Gn[o])return we(o,(function(){e.xl(!!e.Gn[o],"Fail to load style - "+o),n.resolve(t.open(r.value()))})),!0;Ie(t,r)}return!1}(this,n,o)||Se(this,n,o))return o.promise;if(null!=D(n)){var i=setTimeout((function(){s.getIframeEl().src="about:blank",o.reject(Error("G`"+D(n)))}),D(n)),a=o.resolve;o.resolve=function(e){clearTimeout(i),a(e)}}n.O.waitForOnload&&N(n.bo(),(function(){o.resolve(s)}));var s=this.openChild(t);return n.O.waitForOnload||o.resolve(s),o.promise},e.Dn.prototype.getParentIframe=function(){return this.Jb};var ke=function(t,r){var n=t.getParentIframe(),o=!0;return r.filter&&(o=r.filter.call(r.iframe,r.params)),e.tk(o).then((function(e){return!(!e||!n)&&(r.n_&&r.n_.call(t,r.params),e=r.sender?r.sender(r.params):Ee(n,r.message,r.params),!r.moa||e.then((function(){return!0})))}))};e.g=e.Dn.prototype,e.g.closeSelf=function(t,r,n){return t=ke(this,{sender:function(t){var r=e.Qm.getParentIframe();return e.Fm(e.Qm.dg,(function(e){e!==r&&Ee(e,"_g_wasClosed",t)})),Ee(r,"_g_closeMe",t)},message:"_g_closeMe",params:t,iframe:n,filter:this.getGlobalParam("onCloseSelfFilter")}),(r=new G(r)).resolve(t),r.promise},e.g.restyleSelf=function(e,t,r){return e=e||{},(t=new G(t)).resolve(ke(this,{message:"_g_restyleMe",params:e,iframe:r,filter:this.getGlobalParam("onRestyleSelfFilter"),moa:!0,n_:this.I4})),t.promise},e.g.I4=function(t){"auto"===t.height&&(t.height=e.om())},e.g.setCloseSelfFilter=function(e){this.setGlobalParam("onCloseSelfFilter",e)},e.g.setRestyleSelfFilter=function(e){this.setGlobalParam("onRestyleSelfFilter",e)};var Ie=function(t,r){var n=r.getStyle();if(n){r.Di(null);var o=e.Gn[n];e.xl(o,"No such style: "+n),r.Dp(t),o(r.value()),r.Dp(null)}};e.Dn.prototype.ready=function(t,r,n,o){var i=r||{},a=this.getParentIframe();this.addOnOpenerHandler((function(t){e.Fm(i,(function(e,r){t.register(r,e,o)}),this),t!==a&&t.send("_ready",s,void 0,o)}),void 0,o);var s=t||{};s.height=s.height||"auto",this.I4(s),a&&a.send("_ready",s,n,e.Bm)},e.Dn.prototype.connectIframes=function(e,t){e=new ce(e);var r=new ce(t),n=X(e);t=e.getIframe();var o=r.getIframe();if(o){var i=L(e),a=new he;me(t,o,a),Q(Y(new ce(a.value()).ln(i),e.O.role),e.O.data).Xk(n);var s=new he;me(o,t,s),Q(Y(new ce(s.value()).ln(i),r.O.role),r.O.data).Xk(!0),Ee(t,"_g_connect",a.value(),(function(){n||Ee(o,"_g_connect",s.value())})),n&&Ee(o,"_g_connect",s.value())}else Q(Y(Z(new ce(r={})),e.O.role),e.O.data),Ee(t,"_g_connect",r)};var Oe=function(t){t.ZF||(t.ZF=e.Fe(),t.jK=e.Fe())};e.Dn.prototype.addOnConnectHandler=function(t,r,n,o){Oe(this),"object"==typeof t?n=(r=new ue(t)).hV()||"":(r=te(ee(t).Oc(r).xs(n),o),n=t),o=this.ZF[n]||[],t=!1;for(var i=0;i<o.length&&!t;i++)Te(this.dg[o[i].iframe.getFrameName()],o[i].data,[r]),t=r.O.runOnce;n=e.Ee(this.jK,n,[]),t||r.O.dontWait||n.push(r)},e.Dn.prototype.removeOnConnectHandler=function(t,r){if(t=e.Ee(this.jK,t,[]),r)for(var n=!1,o=0;!n&&o<t.length;o++)t[o].yb()===r&&(n=!0,t.splice(o,1));else t.splice(0,t.length)};var Te=function(t,r,n){n=n||[];for(var o=0;o<n.length;o++){var i=n[o];if(i&&t){var a=i.O.filter||e.Sm;if(t&&a(t)){a=i.O.apis||[];for(var s=0;s<a.length;s++)t.applyIframesApi(a[s]);i.yb()&&i.yb()(t,r),i.O.runOnce&&(n.splice(o,1),--o)}}}};e.Dn.prototype.addOnOpenerHandler=function(e,t,r){var n=this.addOnConnectHandler;(e=te(ee("_opener").Oc(e).xs(t),r)).O.runOnce=!0,n.call(this,e.value())},e.Dn.prototype.IY=function(t,r){var n=t.pH();if(n){e.xl(n.Cd===t.getOrigin(),"Wrong controller origin "+this.Cd+" !== "+t.getOrigin());var o=t.qg();fe(t,n.qg()),ge(t,n.Xh());var i=new he;M(fe(i,o),t.O.controllerData),e.Oe(r,"load",(function(){n.send("_g_control",i.value())}))}};e.Dn.prototype.bW=function(r,n){if(n.O.openAsWindow){r=function(r,n,o){var i=(r=r.getWindow()).document,a=o.O.reuseWindow;if(a){var s=o.getId();if(!s)throw Error("H")}else s=e.bm(i,o);var l=s,c=o.O.rpcRelayUrl;if(c){c=e.km(c),(l=o.O.fragmentParams||{}).rly=s,o.O.fragmentParams=l,l=o.O.where||i.body,e.xl(!!l,"Cannot open window in a page with no body");var u={};u.src=c,u.style="display:none;",u.id=s,u.name=s,e.fm(i,l,u,s),l=s+"_relay"}n=e.lm(n);var d=e.dm(i,n,s,o.value());if(o.O.eurl=d,"string"!=typeof(n=o.O.openAsWindow)&&(n=void 0),o=t.navigator.userAgent||"",/Trident|MSIE/i.test(o)&&/#/.test(o)&&(d="javascript:window.location.replace("+e.ze.JSON.stringify(d).replace(/#/g,"\\x23")+")"),a){var h=a;setTimeout((function(){h.location.replace(d)}))}else h=e.Mc(r,d,l,n);return{id:s,l5:h}}(this,r,n);var o=r.id;e.xl(!!r.l5,"Open popup window failed"),n.O._popupWindow=r.l5}return o},F=e.Fe(),j=e.Fe(),e.Qm=new e.Dn,q("_g_rpcReady",e.zn.prototype.Xk),q("_g_discover",e.zn.prototype.Yfa),q("_g_ping",e.zn.prototype.Cka),q("_g_close",e.zn.prototype.xda),q("_g_closeMe",e.zn.prototype.yda),q("_g_restyle",e.zn.prototype.Dla),q("_g_restyleMe",e.zn.prototype.Ela),q("_g_wasClosed",e.zn.prototype.ooa),e.Xm("control","_g_control",e.zn.prototype.Hda),e.Xm("control","_g_disposeControl",e.zn.prototype.Wda);var Ae=e.Qm.getParentIframe();Ae&&Ae.register("_g_restyleDone",e.zn.prototype.Cla,e.Bm),q("_g_connect",e.zn.prototype.Eda);var xe={};xe._g_open=e.zn.prototype.oka,e.Wm("_open",xe,e.Bm);var Pe={Context:e.Dn,Iframe:e.zn,SAME_ORIGIN_IFRAMES_FILTER:e.Sm,CROSS_ORIGIN_IFRAMES_FILTER:e.Bm,makeWhiteListIframesFilter:e.Tm,getContext:e.Zm,registerIframesApi:e.Wm,registerIframesApiHandler:e.Xm,registerStyle:e.In,registerBeforeOpenStyle:e.Ln,getStyle:e.Jn,getBeforeOpenStyle:e.Mn,create:e.mm};se({instance:function(){return Pe},priority:2}),e.Xm("gapi.load","_g_gapi.load",(function(t){return new e.pk((function(r){e.Ie.load(t&&"object"==typeof t&&t.features||"",r)}))})),e.Xn=function(e){this.O=e},e.g=e.Xn.prototype,e.g.FL=function(e){return this.O.anchor=e,this},e.g.cj=function(){return this.O.anchor},e.g.GL=function(e){this.O.anchorPosition=e},e.g.Sd=function(e){return this.O.height=e,this},e.g.Nc=function(){return this.O.height},e.g.Pe=function(e){return this.O.width=e,this},e.g.Qb=function(){return this.O.width},e.g.setZIndex=function(e){return this.O.zIndex=e,this},e.g.getZIndex=function(){return this.O.zIndex},e.Yn=function(e){return e.O.connectWithQueryParams=!0,e},e.w("gapi.iframes.create",e.mm),e.w("gapi.iframes.registerStyle",e.In),e.w("gapi.iframes.registerBeforeOpenStyle",e.Ln),e.w("gapi.iframes.getStyle",e.Jn),e.w("gapi.iframes.getBeforeOpenStyle",e.Mn),e.w("gapi.iframes.registerIframesApi",e.Wm),e.w("gapi.iframes.registerIframesApiHandler",e.Xm),e.w("gapi.iframes.getContext",e.Zm),e.w("gapi.iframes.SAME_ORIGIN_IFRAMES_FILTER",e.Sm),e.w("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER",e.Bm),e.w("gapi.iframes.makeWhiteListIframesFilter",e.Tm),e.w("gapi.iframes.Context",e.Dn),e.w("gapi.iframes.Context.prototype.isDisposed",e.Dn.prototype.isDisposed),e.w("gapi.iframes.Context.prototype.getWindow",e.Dn.prototype.getWindow),e.w("gapi.iframes.Context.prototype.getFrameName",e.Dn.prototype.getFrameName),e.w("gapi.iframes.Context.prototype.getGlobalParam",e.Dn.prototype.getGlobalParam),e.w("gapi.iframes.Context.prototype.setGlobalParam",e.Dn.prototype.setGlobalParam),e.w("gapi.iframes.Context.prototype.open",e.Dn.prototype.open),e.w("gapi.iframes.Context.prototype.openChild",e.Dn.prototype.openChild),e.w("gapi.iframes.Context.prototype.getParentIframe",e.Dn.prototype.getParentIframe),e.w("gapi.iframes.Context.prototype.closeSelf",e.Dn.prototype.closeSelf),e.w("gapi.iframes.Context.prototype.restyleSelf",e.Dn.prototype.restyleSelf),e.w("gapi.iframes.Context.prototype.setCloseSelfFilter",e.Dn.prototype.setCloseSelfFilter),e.w("gapi.iframes.Context.prototype.setRestyleSelfFilter",e.Dn.prototype.setRestyleSelfFilter),e.w("gapi.iframes.Context.prototype.addOnConnectHandler",e.Dn.prototype.addOnConnectHandler),e.w("gapi.iframes.Context.prototype.removeOnConnectHandler",e.Dn.prototype.removeOnConnectHandler),e.w("gapi.iframes.Context.prototype.addOnOpenerHandler",e.Dn.prototype.addOnOpenerHandler),e.w("gapi.iframes.Context.prototype.connectIframes",e.Dn.prototype.connectIframes),e.w("gapi.iframes.Iframe",e.zn),e.w("gapi.iframes.Iframe.prototype.isDisposed",e.zn.prototype.isDisposed),e.w("gapi.iframes.Iframe.prototype.getContext",e.zn.prototype.getContext),e.w("gapi.iframes.Iframe.prototype.getFrameName",e.zn.prototype.getFrameName),e.w("gapi.iframes.Iframe.prototype.getId",e.zn.prototype.getId),e.w("gapi.iframes.Iframe.prototype.register",e.zn.prototype.register),e.w("gapi.iframes.Iframe.prototype.unregister",e.zn.prototype.unregister),e.w("gapi.iframes.Iframe.prototype.send",e.zn.prototype.send),e.w("gapi.iframes.Iframe.prototype.applyIframesApi",e.zn.prototype.applyIframesApi),e.w("gapi.iframes.Iframe.prototype.getIframeEl",e.zn.prototype.getIframeEl),e.w("gapi.iframes.Iframe.prototype.getSiteEl",e.zn.prototype.getSiteEl),e.w("gapi.iframes.Iframe.prototype.setSiteEl",e.zn.prototype.setSiteEl),e.w("gapi.iframes.Iframe.prototype.getWindow",e.zn.prototype.getWindow),e.w("gapi.iframes.Iframe.prototype.getOrigin",e.zn.prototype.getOrigin),e.w("gapi.iframes.Iframe.prototype.close",e.zn.prototype.close),e.w("gapi.iframes.Iframe.prototype.restyle",e.zn.prototype.restyle),e.w("gapi.iframes.Iframe.prototype.restyleDone",e.zn.prototype.rs),e.w("gapi.iframes.Iframe.prototype.registerWasRestyled",e.zn.prototype.registerWasRestyled),e.w("gapi.iframes.Iframe.prototype.registerWasClosed",e.zn.prototype.registerWasClosed),e.w("gapi.iframes.Iframe.prototype.getParam",e.zn.prototype.getParam),e.w("gapi.iframes.Iframe.prototype.setParam",e.zn.prototype.setParam),e.w("gapi.iframes.Iframe.prototype.ping",e.zn.prototype.ping),e.w("gapi.iframes.Iframe.prototype.getOpenParams",e.zn.prototype.wc)}))},5327:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{gapi.loaded_0((function(_){var window=this,fa,ia,ka,oa,Ba,Da,Fa,Ha;_._F_toggles_initialize=function(e){("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this)._F_toggles=e||[]},(0,_._F_toggles_initialize)([]),_.da=function(e){return function(){return _.ca[e].apply(this,arguments)}},_.ca=[],fa="function"==typeof Object.create?Object.create:function(e){var t=function(){};return t.prototype=e,new t},ia="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){return e==Array.prototype||e==Object.prototype||(e[t]=r.value),e},ka=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof __webpack_require__.g&&__webpack_require__.g];for(var t=0;t<e.length;++t){var r=e[t];if(r&&r.Math==Math)return r}throw Error("a")},_.na=ka(this),oa="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" "),_.na.BigInt64Array&&(oa.push("BigInt64"),oa.push("BigUint64"));var ra=function(e,t){if(t)for(var r=0;r<oa.length;r++)pa(oa[r]+"Array.prototype."+e,t)},sa=function(e,t){t&&pa(e,t)},pa=function(e,t){var r=_.na;e=e.split(".");for(var n=0;n<e.length-1;n++){var o=e[n];if(!(o in r))return;r=r[o]}(t=t(n=r[e=e[e.length-1]]))!=n&&null!=t&&ia(r,e,{configurable:!0,writable:!0,value:t})},ua;if("function"==typeof Object.setPrototypeOf)ua=Object.setPrototypeOf;else{var xa;e:{var za={a:!0},Aa={};try{Aa.__proto__=za,xa=Aa.a;break e}catch(a){}xa=!1}ua=xa?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}Ba=ua,_.t=function(e,t){if(e.prototype=fa(t.prototype),e.prototype.constructor=e,Ba)Ba(e,t);else for(var r in t)if("prototype"!=r)if(Object.defineProperties){var n=Object.getOwnPropertyDescriptor(t,r);n&&Object.defineProperty(e,r,n)}else e[r]=t[r];e.N=t.prototype},Da=function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}},_.Ea=function(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if(t)return t.call(e);if("number"==typeof e.length)return{next:Da(e)};throw Error("b`"+String(e))},Fa=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},Ha="function"==typeof Object.assign?Object.assign:function(e,t){if(null==e)throw new TypeError("No nullish arg");e=Object(e);for(var r=1;r<arguments.length;r++){var n=arguments[r];if(n)for(var o in n)Fa(n,o)&&(e[o]=n[o])}return e},sa("Object.assign",(function(e){return e||Ha})),_.Ia=function(e){if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object")},_.La=function(){this.hJ=!1,this.zl=null,this.zh=void 0,this.Dc=1,this.vk=this.En=0,this.XG=this.Wf=null},_.La.prototype.Qs=_.da(0),_.La.prototype.nn=_.da(1),_.La.prototype.Mr=_.da(2),_.La.prototype.Xs=_.da(3),_.La.prototype.getNextAddressJsc=function(){return this.Dc},_.La.prototype.getYieldResultJsc=function(){return this.zh},_.La.prototype.return=function(e){this.Wf={return:e},this.Dc=this.vk},_.La.prototype.return=_.La.prototype.return,_.La.prototype.Sia=function(e){this.Wf={Lf:e},this.Dc=this.vk},_.La.prototype.jumpThroughFinallyBlocks=_.La.prototype.Sia,_.La.prototype.ye=function(e,t){return this.Dc=t,{value:e}},_.La.prototype.yield=_.La.prototype.ye,_.La.prototype.yoa=function(e,t){var r=(e=_.Ea(e)).next();if(_.Ia(r),!r.done)return this.zl=e,this.ye(r.value,t);this.zh=r.value,this.Dc=t},_.La.prototype.yieldAll=_.La.prototype.yoa,_.La.prototype.Lf=function(e){this.Dc=e},_.La.prototype.jumpTo=_.La.prototype.Lf,_.La.prototype.kJ=function(){this.Dc=0},_.La.prototype.jumpToEnd=_.La.prototype.kJ,_.La.prototype.PL=function(e,t){this.En=e,null!=t&&(this.vk=t)},_.La.prototype.setCatchFinallyBlocks=_.La.prototype.PL,_.La.prototype.Ima=function(e){this.En=0,this.vk=e||0},_.La.prototype.setFinallyBlock=_.La.prototype.Ima,_.La.prototype.qY=function(e,t){this.Dc=e,this.En=t||0},_.La.prototype.leaveTryBlock=_.La.prototype.qY,_.La.prototype.EG=function(e){return this.En=e||0,e=this.Wf.mT,this.Wf=null,e},_.La.prototype.enterCatchBlock=_.La.prototype.EG,_.La.prototype.hT=function(e,t,r){r?this.XG[r]=this.Wf:this.XG=[this.Wf],this.En=e||0,this.vk=t||0},_.La.prototype.enterFinallyBlock=_.La.prototype.hT,_.La.prototype.pY=function(e,t){t=this.XG.splice(t||0)[0],(t=this.Wf=this.Wf||t)?t.pX?this.Dc=this.En||this.vk:null!=t.Lf&&this.vk<t.Lf?(this.Dc=t.Lf,this.Wf=null):this.Dc=this.vk:this.Dc=e},_.La.prototype.leaveFinallyBlock=_.La.prototype.pY,_.La.prototype.Hea=function(e){return new Sa(e)},_.La.prototype.forIn=_.La.prototype.Hea;var Sa=function(e){for(var t in this.lw=e,this.EC=[],e)this.EC.push(t);this.EC.reverse()};Sa.prototype.Sfa=function(){for(;this.EC.length>0;){var e=this.EC.pop();if(e in this.lw)return e}return null},Sa.prototype.getNext=Sa.prototype.Sfa,sa("globalThis",(function(e){return e||_.na})),sa("Reflect.setPrototypeOf",(function(e){return e||(Ba?function(e,t){try{return Ba(e,t),!0}catch(e){return!1}}:null)})),sa("Symbol",(function(e){if(e)return e;var t=function(e,t){this.s5=e,ia(this,"description",{configurable:!0,writable:!0,value:t})};t.prototype.toString=function(){return this.s5};var r="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",n=0,o=function(e){if(this instanceof o)throw new TypeError("Symbol is not a constructor");return new t(r+(e||"")+"_"+n++,e)};return o})),sa("Symbol.iterator",(function(e){return e||(e=Symbol("Symbol.iterator"),ia(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return Va(Da(this))}}),e)}));var Va=function(e){return(e={next:e})[Symbol.iterator]=function(){return this},e};sa("Promise",(function(e){function t(){this.yf=null}function r(e){return e instanceof o?e:new o((function(t){t(e)}))}if(e)return e;t.prototype.lQ=function(e){if(null==this.yf){this.yf=[];var t=this;this.mQ((function(){t.qea()}))}this.yf.push(e)};var n=_.na.setTimeout;t.prototype.mQ=function(e){n(e,0)},t.prototype.qea=function(){for(;this.yf&&this.yf.length;){var e=this.yf;this.yf=[];for(var t=0;t<e.length;++t){var r=e[t];e[t]=null;try{r()}catch(e){this.kq(e)}}}this.yf=null},t.prototype.kq=function(e){this.mQ((function(){throw e}))};var o=function(e){this.Ea=0,this.nf=void 0,this.Sr=[],this.DX=!1;var t=this.iG();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}};o.prototype.iG=function(){function e(e){return function(n){r||(r=!0,e.call(t,n))}}var t=this,r=!1;return{resolve:e(this.yla),reject:e(this.cL)}},o.prototype.yla=function(e){if(e===this)this.cL(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof o)this.gna(e);else{e:switch(typeof e){case"object":var t=null!=e;break e;case"function":t=!0;break e;default:t=!1}t?this.xla(e):this.oU(e)}},o.prototype.xla=function(e){var t=void 0;try{t=e.then}catch(e){return void this.cL(e)}"function"==typeof t?this.hna(t,e):this.oU(e)},o.prototype.cL=function(e){this.L2(2,e)},o.prototype.oU=function(e){this.L2(1,e)},o.prototype.L2=function(e,t){if(0!=this.Ea)throw Error("c`"+e+"`"+t+"`"+this.Ea);this.Ea=e,this.nf=t,2===this.Ea&&this.Nla(),this.rea()},o.prototype.Nla=function(){var e=this;n((function(){if(e.Lja()){var t=_.na.console;void 0!==t&&t.error(e.nf)}}),1)},o.prototype.Lja=function(){if(this.DX)return!1;var e=_.na.CustomEvent,t=_.na.Event,r=_.na.dispatchEvent;return void 0===r||("function"==typeof e?e=new e("unhandledrejection",{cancelable:!0}):"function"==typeof t?e=new t("unhandledrejection",{cancelable:!0}):(e=_.na.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,e),e.promise=this,e.reason=this.nf,r(e))},o.prototype.rea=function(){if(null!=this.Sr){for(var e=0;e<this.Sr.length;++e)i.lQ(this.Sr[e]);this.Sr=null}};var i=new t;return o.prototype.gna=function(e){var t=this.iG();e.Vy(t.resolve,t.reject)},o.prototype.hna=function(e,t){var r=this.iG();try{e.call(t,r.resolve,r.reject)}catch(e){r.reject(e)}},o.prototype.then=function(e,t){function r(e,t){return"function"==typeof e?function(t){try{n(e(t))}catch(e){i(e)}}:t}var n,i,a=new o((function(e,t){n=e,i=t}));return this.Vy(r(e,n),r(t,i)),a},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.Vy=function(e,t){function r(){switch(n.Ea){case 1:e(n.nf);break;case 2:t(n.nf);break;default:throw Error("d`"+n.Ea)}}var n=this;null==this.Sr?i.lQ(r):this.Sr.push(r),this.DX=!0},o.resolve=r,o.reject=function(e){return new o((function(t,r){r(e)}))},o.race=function(e){return new o((function(t,n){for(var o=_.Ea(e),i=o.next();!i.done;i=o.next())r(i.value).Vy(t,n)}))},o.all=function(e){var t=_.Ea(e),n=t.next();return n.done?r([]):new o((function(e,o){function i(t){return function(r){a[t]=r,0==--s&&e(a)}}var a=[],s=0;do{a.push(void 0),s++,r(n.value).Vy(i(a.length-1),o),n=t.next()}while(!n.done)}))},o}));var Ya=function(e,t,r){if(null==e)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return e+""};sa("String.prototype.startsWith",(function(e){return e||function(e,t){var r=Ya(this,e,"startsWith"),n=r.length,o=e.length;t=Math.max(0,Math.min(0|t,r.length));for(var i=0;i<o&&t<n;)if(r[t++]!=e[i++])return!1;return i>=o}})),sa("Object.setPrototypeOf",(function(e){return e||Ba})),sa("Symbol.dispose",(function(e){return e||Symbol("Symbol.dispose")})),sa("WeakMap",(function(e){function t(){}function r(e){var t=typeof e;return"object"===t&&null!==e||"function"===t}function n(e){if(!Fa(e,i)){var r=new t;ia(e,i,{value:r})}}function o(e){var r=Object[e];r&&(Object[e]=function(e){return e instanceof t?e:(Object.isExtensible(e)&&n(e),r(e))})}if(function(){if(!e||!Object.seal)return!1;try{var t=Object.seal({}),r=Object.seal({}),n=new e([[t,2],[r,3]]);return 2==n.get(t)&&3==n.get(r)&&(n.delete(t),n.set(r,4),!n.has(t)&&4==n.get(r))}catch(e){return!1}}())return e;var i="$jscomp_hidden_"+Math.random();o("freeze"),o("preventExtensions"),o("seal");var a=0,s=function(e){if(this.Fa=(a+=Math.random()+1).toString(),e){e=_.Ea(e);for(var t;!(t=e.next()).done;)t=t.value,this.set(t[0],t[1])}};return s.prototype.set=function(e,t){if(!r(e))throw Error("e");if(n(e),!Fa(e,i))throw Error("f`"+e);return e[i][this.Fa]=t,this},s.prototype.get=function(e){return r(e)&&Fa(e,i)?e[i][this.Fa]:void 0},s.prototype.has=function(e){return r(e)&&Fa(e,i)&&Fa(e[i],this.Fa)},s.prototype.delete=function(e){return!!(r(e)&&Fa(e,i)&&Fa(e[i],this.Fa))&&delete e[i][this.Fa]},s})),sa("Map",(function(e){if(function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),r=new e(_.Ea([[t,"s"]]));if("s"!=r.get(t)||1!=r.size||r.get({x:4})||r.set({x:4},"t")!=r||2!=r.size)return!1;var n=r.entries(),o=n.next();return!o.done&&o.value[0]==t&&"s"==o.value[1]&&!((o=n.next()).done||4!=o.value[0].x||"t"!=o.value[1]||!n.next().done)}catch(e){return!1}}())return e;var t=new WeakMap,r=function(e){if(this[0]={},this[1]=i(),this.size=0,e){e=_.Ea(e);for(var t;!(t=e.next()).done;)t=t.value,this.set(t[0],t[1])}};r.prototype.set=function(e,t){var r=n(this,e=0===e?0:e);return r.list||(r.list=this[0][r.id]=[]),r.entry?r.entry.value=t:(r.entry={next:this[1],Nk:this[1].Nk,head:this[1],key:e,value:t},r.list.push(r.entry),this[1].Nk.next=r.entry,this[1].Nk=r.entry,this.size++),this},r.prototype.delete=function(e){return!(!(e=n(this,e)).entry||!e.list)&&(e.list.splice(e.index,1),e.list.length||delete this[0][e.id],e.entry.Nk.next=e.entry.next,e.entry.next.Nk=e.entry.Nk,e.entry.head=null,this.size--,!0)},r.prototype.clear=function(){this[0]={},this[1]=this[1].Nk=i(),this.size=0},r.prototype.has=function(e){return!!n(this,e).entry},r.prototype.get=function(e){return(e=n(this,e).entry)&&e.value},r.prototype.entries=function(){return o(this,(function(e){return[e.key,e.value]}))},r.prototype.keys=function(){return o(this,(function(e){return e.key}))},r.prototype.values=function(){return o(this,(function(e){return e.value}))},r.prototype.forEach=function(e,t){for(var r,n=this.entries();!(r=n.next()).done;)r=r.value,e.call(t,r[1],r[0],this)},r.prototype[Symbol.iterator]=r.prototype.entries;var n=function(e,r){var n=r&&typeof r;"object"==n||"function"==n?t.has(r)?n=t.get(r):(n=""+ ++a,t.set(r,n)):n="p_"+r;var o=e[0][n];if(o&&Fa(e[0],n))for(e=0;e<o.length;e++){var i=o[e];if(r!=r&&i.key!=i.key||r===i.key)return{id:n,list:o,index:e,entry:i}}return{id:n,list:o,index:-1,entry:void 0}},o=function(e,t){var r=e[1];return Va((function(){if(r){for(;r.head!=e[1];)r=r.Nk;for(;r.next!=r.head;)return r=r.next,{done:!1,value:t(r)};r=null}return{done:!0,value:void 0}}))},i=function(){var e={};return e.Nk=e.next=e.head=e},a=0;return r})),sa("Set",(function(e){if(function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),r=new e(_.Ea([t]));if(!r.has(t)||1!=r.size||r.add(t)!=r||1!=r.size||r.add({x:4})!=r||2!=r.size)return!1;var n=r.entries(),o=n.next();return!o.done&&o.value[0]==t&&o.value[1]==t&&(!(o=n.next()).done&&o.value[0]!=t&&4==o.value[0].x&&o.value[1]==o.value[0]&&n.next().done)}catch(e){return!1}}())return e;var t=function(e){if(this.Ra=new Map,e){e=_.Ea(e);for(var t;!(t=e.next()).done;)this.add(t.value)}this.size=this.Ra.size};return t.prototype.add=function(e){return e=0===e?0:e,this.Ra.set(e,e),this.size=this.Ra.size,this},t.prototype.delete=function(e){return e=this.Ra.delete(e),this.size=this.Ra.size,e},t.prototype.clear=function(){this.Ra.clear(),this.size=0},t.prototype.has=function(e){return this.Ra.has(e)},t.prototype.entries=function(){return this.Ra.entries()},t.prototype.values=function(){return this.Ra.values()},t.prototype.keys=t.prototype.values,t.prototype[Symbol.iterator]=t.prototype.values,t.prototype.forEach=function(e,t){var r=this;this.Ra.forEach((function(n){return e.call(t,n,n,r)}))},t}));var $a=function(e,t){e instanceof String&&(e+="");var r=0,n=!1,o={next:function(){if(!n&&r<e.length){var o=r++;return{value:t(o,e[o]),done:!1}}return n=!0,{done:!0,value:void 0}}};return o[Symbol.iterator]=function(){return o},o};sa("Array.prototype.entries",(function(e){return e||function(){return $a(this,(function(e,t){return[e,t]}))}})),sa("Array.prototype.keys",(function(e){return e||function(){return $a(this,(function(e){return e}))}})),sa("String.prototype.codePointAt",(function(e){return e||function(e){var t=Ya(this,null,"codePointAt"),r=t.length;if((e=Number(e)||0)>=0&&e<r){e|=0;var n=t.charCodeAt(e);return n<55296||n>56319||e+1===r||((e=t.charCodeAt(e+1))<56320||e>57343)?n:1024*(n-55296)+e+9216}}})),sa("String.fromCodePoint",(function(e){return e||function(e){for(var t="",r=0;r<arguments.length;r++){var n=Number(arguments[r]);if(n<0||n>1114111||n!==Math.floor(n))throw new RangeError("invalid_code_point "+n);n<=65535?t+=String.fromCharCode(n):(n-=65536,t+=String.fromCharCode(n>>>10&1023|55296),t+=String.fromCharCode(1023&n|56320))}return t}})),sa("Object.entries",(function(e){return e||function(e){var t,r=[];for(t in e)Fa(e,t)&&r.push([t,e[t]]);return r}})),sa("String.prototype.endsWith",(function(e){return e||function(e,t){var r=Ya(this,e,"endsWith");void 0===t&&(t=r.length),t=Math.max(0,Math.min(0|t,r.length));for(var n=e.length;n>0&&t>0;)if(r[--t]!=e[--n])return!1;return n<=0}})),sa("Number.isFinite",(function(e){return e||function(e){return"number"==typeof e&&(!isNaN(e)&&e!==1/0&&e!==-1/0)}})),sa("Array.prototype.find",(function(e){return e||function(e,t){e:{var r=this;r instanceof String&&(r=String(r));for(var n=r.length,o=0;o<n;o++){var i=r[o];if(e.call(t,i,o,r)){e=i;break e}}e=void 0}return e}})),sa("Array.prototype.values",(function(e){return e||function(){return $a(this,(function(e,t){return t}))}})),sa("Promise.prototype.finally",(function(e){return e||function(e){return this.then((function(t){return Promise.resolve(e()).then((function(){return t}))}),(function(t){return Promise.resolve(e()).then((function(){throw t}))}))}})),sa("Object.is",(function(e){return e||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}})),sa("Array.prototype.includes",(function(e){return e||function(e,t){var r=this;r instanceof String&&(r=String(r));var n=r.length;for((t=t||0)<0&&(t=Math.max(t+n,0));t<n;t++){var o=r[t];if(o===e||Object.is(o,e))return!0}return!1}})),sa("String.prototype.includes",(function(e){return e||function(e,t){return-1!==Ya(this,e,"includes").indexOf(e,t||0)}})),sa("Array.from",(function(e){return e||function(e,t,r){t=null!=t?t:function(e){return e};var n=[],o="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if("function"==typeof o){e=o.call(e);for(var i=0;!(o=e.next()).done;)n.push(t.call(r,o.value,i++))}else for(o=e.length,i=0;i<o;i++)n.push(t.call(r,e[i],i));return n}})),sa("Object.values",(function(e){return e||function(e){var t,r=[];for(t in e)Fa(e,t)&&r.push(e[t]);return r}})),sa("Set.prototype.intersection",(function(e){return e||function(e){if(!(this instanceof Set))throw new TypeError("Method must be called on an instance of Set.");if("object"!=typeof e||null===e||"number"!=typeof e.size||e.size<0||"function"!=typeof e.keys||"function"!=typeof e.has)throw new TypeError("Argument must be set-like");var t=new Set;if(this.size<=e.size)e={l3:this.keys(),dY:e};else{if("object"!=typeof(e=e.keys())||null===e||"function"!=typeof e.next)throw new TypeError("Invalid iterator.");e={l3:e,dY:this}}var r=e;e=r.l3,r=r.dY;for(var n=e.next();!n.done;)r.has(n.value)&&t.add(n.value),n=e.next();return t}})),sa("Array.prototype.flat",(function(e){return e||function(e){e=void 0===e?1:e;var t=[];return Array.prototype.forEach.call(this,(function(r){Array.isArray(r)&&e>0?(r=Array.prototype.flat.call(r,e-1),t.push.apply(t,r)):t.push(r)})),t}})),sa("Number.MAX_SAFE_INTEGER",(function(){return 9007199254740991})),sa("Number.MIN_SAFE_INTEGER",(function(){return-9007199254740991})),sa("Number.isInteger",(function(e){return e||function(e){return!!Number.isFinite(e)&&e===Math.floor(e)}})),sa("Number.isSafeInteger",(function(e){return e||function(e){return Number.isInteger(e)&&Math.abs(e)<=Number.MAX_SAFE_INTEGER}})),sa("Array.prototype.flatMap",(function(e){return e||function(e,t){var r=[];return Array.prototype.forEach.call(this,(function(n,o){n=e.call(t,n,o,this),Array.isArray(n)?r.push.apply(r,n):r.push(n)})),r}})),sa("Math.trunc",(function(e){return e||function(e){if(e=Number(e),isNaN(e)||e===1/0||e===-1/0||0===e)return e;var t=Math.floor(Math.abs(e));return e<0?-t:t}})),sa("Number.isNaN",(function(e){return e||function(e){return"number"==typeof e&&isNaN(e)}})),sa("WeakSet",(function(e){if(function(){if(!e||!Object.seal)return!1;try{var t=Object.seal({}),r=Object.seal({}),n=new e([t]);return!(!n.has(t)||n.has(r))&&(n.delete(t),n.add(r),!n.has(t)&&n.has(r))}catch(e){return!1}}())return e;var t=function(e){if(this.Ra=new WeakMap,e){e=_.Ea(e);for(var t;!(t=e.next()).done;)this.add(t.value)}};return t.prototype.add=function(e){return this.Ra.set(e,!0),this},t.prototype.has=function(e){return this.Ra.has(e)},t.prototype.delete=function(e){return this.Ra.delete(e)},t})),sa("String.prototype.replaceAll",(function(e){return e||function(e,t){if(e instanceof RegExp&&!e.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return e instanceof RegExp?this.replace(e,t):this.replace(new RegExp(String(e).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),t)}}));var ab=function(e){if((e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this[e]},pb,zb,Ab,Cb;sa("Array.prototype.at",(function(e){return e||ab})),ra("at",(function(e){return e||ab})),sa("String.prototype.at",(function(e){return e||ab})),sa("Math.imul",(function(e){return e||function(e,t){var r=65535&(e=Number(e)),n=65535&(t=Number(t));return r*n+((e>>>16&65535)*n+r*(t>>>16&65535)<<16>>>0)|0}})),_.bb={},_.db=_.db||{},_.fb=this||self,_.gb=_.fb._F_toggles||[],_.ib="closure_uid_"+(1e9*Math.random()>>>0),_.kb=function(e,t){var r=Array.prototype.slice.call(arguments,1);return function(){var t=r.slice();return t.push.apply(t,arguments),e.apply(this,t)}},_.w=function(e,t){e=e.split(".");for(var r,n=_.fb;e.length&&(r=e.shift());)e.length||void 0===t?n=n[r]&&n[r]!==Object.prototype[r]?n[r]:n[r]={}:n[r]=t},_.mb=window.osapi=window.osapi||{},window.___jsl=window.___jsl||{},(window.___jsl.cd=window.___jsl.cd||[]).push({gwidget:{parsetags:"explicit"},appsapi:{plus_one_service:"/plus/v1"},csi:{rate:.01},poshare:{hangoutContactPickerServer:"https://plus.google.com"},gappsutil:{required_scopes:["https://www.googleapis.com/auth/plus.me","https://www.googleapis.com/auth/plus.people.recommended"],display_on_page_ready:!1},appsutil:{required_scopes:["https://www.googleapis.com/auth/plus.me","https://www.googleapis.com/auth/plus.people.recommended"],display_on_page_ready:!1},"oauth-flow":{authUrl:"https://accounts.google.com/o/oauth2/auth",proxyUrl:"https://accounts.google.com/o/oauth2/postmessageRelay",redirectUri:"postmessage"},iframes:{sharebox:{params:{json:"&"},url:":socialhost:/:session_prefix:_/sharebox/dialog"},plus:{url:":socialhost:/:session_prefix:_/widget/render/badge?usegapi=1"},":socialhost:":"https://apis.google.com",":im_socialhost:":"https://plus.googleapis.com",domains_suggest:{url:"https://domains.google.com/suggest/flow"},card:{params:{s:"#",userid:"&"},url:":socialhost:/:session_prefix:_/hovercard/internalcard"},":signuphost:":"https://plus.google.com",":gplus_url:":"https://plus.google.com",plusone:{url:":socialhost:/:session_prefix:_/+1/fastbutton?usegapi=1"},plus_share:{url:":socialhost:/:session_prefix:_/+1/sharebutton?plusShare=true&usegapi=1"},plus_circle:{url:":socialhost:/:session_prefix:_/widget/plus/circle?usegapi=1"},plus_followers:{url:":socialhost:/_/im/_/widget/render/plus/followers?usegapi=1"},configurator:{url:":socialhost:/:session_prefix:_/plusbuttonconfigurator?usegapi=1"},appcirclepicker:{url:":socialhost:/:session_prefix:_/widget/render/appcirclepicker"},page:{url:":socialhost:/:session_prefix:_/widget/render/page?usegapi=1"},person:{url:":socialhost:/:session_prefix:_/widget/render/person?usegapi=1"},community:{url:":ctx_socialhost:/:session_prefix::im_prefix:_/widget/render/community?usegapi=1"},follow:{url:":socialhost:/:session_prefix:_/widget/render/follow?usegapi=1"},commentcount:{url:":socialhost:/:session_prefix:_/widget/render/commentcount?usegapi=1"},comments:{url:":socialhost:/:session_prefix:_/widget/render/comments?usegapi=1"},blogger:{url:":socialhost:/:session_prefix:_/widget/render/blogger?usegapi=1"},youtube:{url:":socialhost:/:session_prefix:_/widget/render/youtube?usegapi=1"},reportabuse:{url:":socialhost:/:session_prefix:_/widget/render/reportabuse?usegapi=1"},additnow:{url:":socialhost:/additnow/additnow.html"},appfinder:{url:"https://workspace.google.com/:session_prefix:marketplace/appfinder?usegapi=1"},":source:":"1p"},poclient:{update_session:"google.updateSessionCallback"},"googleapis.config":{rpc:"/rpc",root:"https://content.googleapis.com","root-1p":"https://clients6.google.com",useGapiForXd3:!0,xd3:"/static/proxy.html",auth:{useInterimAuth:!1}},report:{apis:["iframes\\..*","gadgets\\..*","gapi\\.appcirclepicker\\..*","gapi\\.client\\..*"],rate:1e-4},client:{perApiBatch:!0},gen204logger:{interval:3e4,rate:.001,batch:!1}}),_.nb=function(e,t){if(Error.captureStackTrace)Error.captureStackTrace(this,_.nb);else{var r=Error().stack;r&&(this.stack=r)}e&&(this.message=String(e)),void 0!==t&&(this.cause=t),this.B0=!0},pb=function(e,t){for(var r="",n=(e=e.split("%s")).length-1,o=0;o<n;o++)r+=e[o]+(o<t.length?t[o]:"%s");_.nb.call(this,r+e[n])},_.qb=function(e,t){function r(){}r.prototype=t.prototype,e.N=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.base=function(e,r,n){for(var o=Array(arguments.length-2),i=2;i<arguments.length;i++)o[i-2]=arguments[i];return t.prototype[r].apply(e,o)}},_.qb(_.nb,Error),_.nb.prototype.name="CustomError",_.qb(pb,_.nb),pb.prototype.name="AssertionError",_.rb=function(e,t){return _.ca[e]=t},_.sb=function(e,t){throw Error(void 0===t?"unexpected value "+e+"!":t)},_.vb=function(e,t){return(0,_.tb)(e,t)>=0},_.wb=function(e){var t,r=[],n=0;for(t in e)r[n++]=e[t];return r},_.xb=function(e){var t=typeof e;return"object"==t&&null!=e||"function"==t},_.yb=function(e,t){e=e.split("."),t=t||_.fb;for(var r=0;r<e.length;r++)if(null==(t=t[e[r]]))return null;return t},zb=function(e,t){var r=_.yb("WIZ_global_data.oxN3nb");return null!=(e=r&&r[e])?e:t},Ab=function(e,t,r){return e.call.apply(e.bind,arguments)},Cb=function(e,t,r){if(!e)throw Error();if(arguments.length>2){var n=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(r,n),e.apply(t,r)}}return function(){return e.apply(t,arguments)}},_.Db=function(e,t,r){return _.Db=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?Ab:Cb,_.Db.apply(null,arguments)},_.tb=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.indexOf(t,0);for(var r=0;r<e.length;r++)if(r in e&&e[r]===t)return r;return-1},_.Gb=Array.prototype.lastIndexOf?function(e,t){return Array.prototype.lastIndexOf.call(e,t,e.length-1)}:function(e,t){var r=e.length-1;if(r<0&&(r=Math.max(0,e.length+r)),"string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.lastIndexOf(t,r);for(;r>=0;r--)if(r in e&&e[r]===t)return r;return-1},_.Hb=Array.prototype.forEach?function(e,t,r){Array.prototype.forEach.call(e,t,r)}:function(e,t,r){for(var n=e.length,o="string"==typeof e?e.split(""):e,i=0;i<n;i++)i in o&&t.call(r,o[i],i,e)},_.Ib=Array.prototype.filter?function(e,t){return Array.prototype.filter.call(e,t,void 0)}:function(e,t){for(var r=e.length,n=[],o=0,i="string"==typeof e?e.split(""):e,a=0;a<r;a++)if(a in i){var s=i[a];t.call(void 0,s,a,e)&&(n[o++]=s)}return n},_.Jb=Array.prototype.map?function(e,t,r){return Array.prototype.map.call(e,t,r)}:function(e,t,r){for(var n=e.length,o=Array(n),i="string"==typeof e?e.split(""):e,a=0;a<n;a++)a in i&&(o[a]=t.call(r,i[a],a,e));return o},_.Kb=Array.prototype.some?function(e,t,r){return Array.prototype.some.call(e,t,r)}:function(e,t,r){for(var n=e.length,o="string"==typeof e?e.split(""):e,i=0;i<n;i++)if(i in o&&t.call(r,o[i],i,e))return!0;return!1},_.Nb=Array.prototype.every?function(e,t,r){return Array.prototype.every.call(e,t,r)}:function(e,t,r){for(var n=e.length,o="string"==typeof e?e.split(""):e,i=0;i<n;i++)if(i in o&&!t.call(r,o[i],i,e))return!1;return!0};var Ob=!!(_.gb[0]>>18&1),Pb=!!(8192&_.gb[0]),Qb=!!(_.gb[0]>>20&1),Rb=!!(32&_.gb[0]),Sb=!!(_.gb[0]>>21&1),Tb=!!(512&_.gb[0]),dc,fc,wc,Jc,Rc,dd,nd;_.Wb=Ob?Qb:zb(610401301,!1),_.Xb=Ob?Rb:zb(1331761403,!1),_.Yb=Ob?Sb:zb(651175828,!1),_.Zb=Ob?Pb||!Tb:zb(748402147,!0),_.$b=function(e){return _.$b[" "](e),e},_.$b[" "]=function(){},_.ac=function(e){var t=e.length;if(t>0){for(var r=Array(t),n=0;n<t;n++)r[n]=e[n];return r}return[]},_.bc=function(e,t,r){for(var n in e)t.call(r,e[n],n,e)},dc=function(){var e=null;if(!cc)return e;try{var t=function(e){return e};e=cc.createPolicy("goog#html",{createHTML:t,createScript:t,createScriptURL:t})}catch(e){}return e},fc=function(){return void 0===ec&&(ec=dc()),ec},_.ic=function(e){var t=fc();return e=t?t.createHTML(e):e,new _.hc(e)},_.jc=function(e){if(e instanceof _.hc)return e.R_;throw Error("j")},_.lc=function(e){return new _.kc(e)},_.nc=function(e){var t=fc();return e=t?t.createScriptURL(e):e,new _.mc(e)},_.oc=function(e){if(e instanceof _.mc)return e.S_;throw Error("j")},_.qc=function(e){return e instanceof _.pc},_.uc=function(e){if(_.qc(e))return e.U_;throw Error("j")},wc=function(e){return new _.vc((function(t){return t.substr(0,e.length+1).toLowerCase()===e+":"}))},_.yc=function(e){if(xc.test(e))return e},_.zc=function(e){return e instanceof _.pc?_.uc(e):_.yc(e)},_.Ac=function(e,t){return e instanceof _.hc?e:(e=String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),null!=t&&t.Wya&&(e=e.replace(/(^|[\r\n\t ]) /g,"$1 ")),null!=t&&t.Lka&&(e=e.replace(/(\r\n|\n|\r)/g,"<br>")),null!=t&&t.Xya&&(e=e.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>')),_.ic(e))},_.Cc=function(e){var t=_.Bc.apply(1,arguments);if(0===t.length)return _.nc(e[0]);for(var r=e[0],n=0;n<t.length;n++)r+=encodeURIComponent(t[n])+e[n+1];return _.nc(r)},_.Ec=function(e,t){this.width=e,this.height=t},_.Fc=function(e,t){return 0==e.lastIndexOf(t,0)},_.Gc=function(e){return/^[\s\xa0]*$/.test(e)},_.Hc=function(e,t){return-1!=e.indexOf(t)},_.Kc=function(e,t){var r=0;e=(0,_.Ic)(String(e)).split("."),t=(0,_.Ic)(String(t)).split(".");for(var n=Math.max(e.length,t.length),o=0;0==r&&o<n;o++){var i=e[o]||"",a=t[o]||"";do{if(i=/(\d*)(\D*)(.*)/.exec(i)||["","","",""],a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],0==i[0].length&&0==a[0].length)break;r=Jc(0==i[1].length?0:parseInt(i[1],10),0==a[1].length?0:parseInt(a[1],10))||Jc(0==i[2].length,0==a[2].length)||Jc(i[2],a[2]),i=i[3],a=a[3]}while(0==r)}return r},Jc=function(e,t){return e<t?-1:e>t?1:0},_.Lc=function(e,t){void 0!==(t=_.zc(t))&&(e.href=t)},_.Mc=function(e,t,r,n){return void 0!==(t=_.zc(t))?e.open(t,r,n):null},_.Nc=function(e,t){var r,n;return null==(t=null==(n=(r=t=void 0===t?document:t).querySelector)?void 0:n.call(r,e+"[nonce]"))?"":t.nonce||t.getAttribute("nonce")||""},_.Oc=function(e,t){if(1===e.nodeType&&/^(script|style)$/i.test(e.tagName))throw Error("j");e.innerHTML=_.jc(t)},_.Pc=function(){var e=_.fb.navigator;return e&&(e=e.userAgent)?e:""},Rc=function(e){if(!_.Wb||!_.Qc)return!1;for(var t=0;t<_.Qc.brands.length;t++){var r=_.Qc.brands[t].brand;if(r&&_.Hc(r,e))return!0}return!1},_.Sc=function(e){return _.Hc(_.Pc(),e)},_.Tc=function(e){for(var t,r=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g"),n=[];t=r.exec(e);)n.push([t[1],t[2],t[3]||void 0]);return n},_.Uc=function(){return!!_.Wb&&(!!_.Qc&&_.Qc.brands.length>0)},_.Vc=function(){return!_.Uc()&&_.Sc("Opera")},_.Wc=function(){return!_.Uc()&&(_.Sc("Trident")||_.Sc("MSIE"))},_.Xc=function(){return!_.Uc()&&_.Sc("Edge")},_.Yc=function(){return _.Uc()?Rc("Microsoft Edge"):_.Sc("Edg/")},_.Zc=function(){return _.Uc()?Rc("Opera"):_.Sc("OPR")},_.$c=function(){return _.Sc("Firefox")||_.Sc("FxiOS")},_.ad=function(){return _.Uc()?Rc("Chromium"):(_.Sc("Chrome")||_.Sc("CriOS"))&&!_.Xc()||_.Sc("Silk")},_.bd=function(e){var t={};return e.forEach((function(e){t[e[0]]=e[1]})),function(e){return t[e.find((function(e){return e in t}))]||""}},_.cd=function(e){var t=/rv: *([\d\.]*)/.exec(e);if(t&&t[1])return t[1];t="";var r=/MSIE +([\d\.]+)/.exec(e);if(r&&r[1])if(e=/Trident\/(\d.\d)/.exec(e),"7.0"==r[1])if(e&&e[1])switch(e[1]){case"4.0":t="8.0";break;case"5.0":t="9.0";break;case"6.0":t="10.0";break;case"7.0":t="11.0"}else t="7.0";else t=r[1];return t},dd=function(){return!!_.Wb&&(!!_.Qc&&!!_.Qc.platform)},_.ed=function(){return dd()?"Android"===_.Qc.platform:_.Sc("Android")},_.fd=function(){return _.Sc("iPhone")&&!_.Sc("iPod")&&!_.Sc("iPad")},_.gd=function(){return _.fd()||_.Sc("iPad")||_.Sc("iPod")},_.id=function(){return dd()?"macOS"===_.Qc.platform:_.Sc("Macintosh")},_.jd=function(){return dd()?"Windows"===_.Qc.platform:_.Sc("Windows")},_.kd=function(){return dd()?"Chrome OS"===_.Qc.platform:_.Sc("CrOS")},_.La.prototype.Qs=_.rb(0,(function(){if(this.hJ)throw new TypeError("Generator is already running");this.hJ=!0})),_.ld=function(e,t){return e.raw=t,Object.freeze&&(Object.freeze(e),Object.freeze(t)),e},_.md=function(e){return _.ld(e,e)},_.Bc=function(){for(var e=Number(this),t=[],r=e;r<arguments.length;r++)t[r-e]=arguments[r];return t},_.pd=function(e){var t=typeof e;return"object"!=t?t:e?Array.isArray(e)?"array":t:"null"},_.qd=function(e){var t=_.pd(e);return"array"==t||"object"==t&&"number"==typeof e.length},_.rd=function(){return Date.now()};var sd=globalThis.trustedTypes,cc=sd,ec,xc,Ad,Rd,Sd,Yd,a,fe,me,le,Qe,Re,Se,Te,We,Ue,Ve,Xe,Ye;_.hc=function(e){this.R_=e},_.hc.prototype.toString=function(){return this.R_+""},_.td=new _.hc(sd?sd.emptyHTML:""),_.kc=function(e){this.T_=e},_.kc.prototype.toString=function(){return this.T_},_.mc=function(e){this.S_=e},_.mc.prototype.toString=function(){return this.S_+""},_.pc=function(e){this.U_=e},_.pc.prototype.toString=function(){return this.U_},_.ud=new _.pc("about:invalid#zClosurez"),_.vc=function(e){this.Uc=e},_.vd=[wc("data"),wc("http"),wc("https"),wc("mailto"),wc("ftp"),new _.vc((function(e){return/^[^:]*([/?#]|$)/.test(e)}))],_.wd="function"==typeof URL,xc=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i,_.xd=function(e,t){return e==t||!(!e||!t)&&(e.width==t.width&&e.height==t.height)},_.g=_.Ec.prototype,_.g.clone=function(){return new _.Ec(this.width,this.height)},_.g.area=function(){return this.width*this.height},_.g.aspectRatio=function(){return this.width/this.height},_.g.isEmpty=function(){return!this.area()},_.g.ceil=function(){return this.width=Math.ceil(this.width),this.height=Math.ceil(this.height),this},_.g.floor=function(){return this.width=Math.floor(this.width),this.height=Math.floor(this.height),this},_.g.round=function(){return this.width=Math.round(this.width),this.height=Math.round(this.height),this},_.g.scale=function(e,t){return this.width*=e,this.height*="number"==typeof t?t:e,this},_.Ic=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},_.yd=String.prototype.repeat?function(e,t){return e.repeat(t)}:function(e,t){return Array(t+1).join(e)},_.zd=2147483648*Math.random()|0,Ad=_.fb.navigator,_.Qc=Ad&&Ad.userAgentData||null,_.Bd=_.Vc(),_.Cd=_.Wc(),_.Dd=_.Sc("Edge"),_.Ed=_.Sc("Gecko")&&!(_.Hc(_.Pc().toLowerCase(),"webkit")&&!_.Sc("Edge"))&&!(_.Sc("Trident")||_.Sc("MSIE"))&&!_.Sc("Edge"),_.Fd=_.Hc(_.Pc().toLowerCase(),"webkit")&&!_.Sc("Edge"),_.Gd=_.Fd&&_.Sc("Mobile"),_.Hd=_.id(),_.Id=_.jd(),_.Jd=(dd()?"Linux"===_.Qc.platform:_.Sc("Linux"))||_.kd(),_.Kd=_.ed(),_.Nd=_.fd(),_.Od=_.Sc("iPad"),_.Pd=_.Sc("iPod"),_.Qd=_.gd(),Rd=function(){var e=_.fb.document;return e?e.documentMode:void 0};e:{var Ud="",Vd=(a=_.Pc(),_.Ed?/rv:([^\);]+)(\)|;)/.exec(a):_.Dd?/Edge\/([\d\.]+)/.exec(a):_.Cd?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a):_.Fd?/WebKit\/(\S+)/.exec(a):_.Bd?/(?:Version)[ \/]?(\S+)/.exec(a):void 0);if(Vd&&(Ud=Vd?Vd[1]:""),_.Cd){var Wd=Rd();if(null!=Wd&&Wd>parseFloat(Ud)){Sd=String(Wd);break e}}Sd=Ud}if(_.Xd=Sd,_.fb.document&&_.Cd){var Zd=Rd();Yd=Zd||(parseInt(_.Xd,10)||void 0)}else Yd=void 0;_.$d=Yd,_.ce=function(e){return e?new _.ae(_.be(e)):nd||(nd=new _.ae)},_.de=function(e,t){return"string"==typeof t?e.getElementById(t):t},_.ee=function(e,t,r,n){return e=n||e,(t=t&&"*"!=t?String(t).toUpperCase():"")||r?e.querySelectorAll(t+(r?"."+r:"")):e.getElementsByTagName("*")},_.ge=function(e,t){_.bc(t,(function(t,r){"style"==r?e.style.cssText=t:"class"==r?e.className=t:"for"==r?e.htmlFor=t:fe.hasOwnProperty(r)?e.setAttribute(fe[r],t):_.Fc(r,"aria-")||_.Fc(r,"data-")?e.setAttribute(r,t):e[r]=t}))},fe={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},_.ie=function(e){return _.he(e||window)},_.he=function(e){return e=e.document,e=_.je(e)?e.documentElement:e.body,new _.Ec(e.clientWidth,e.clientHeight)},_.ke=function(e){return e?e.defaultView:window},_.ne=function(e,t){var r=t[1],n=le(e,String(t[0]));return r&&("string"==typeof r?n.className=r:Array.isArray(r)?n.className=r.join(" "):_.ge(n,r)),t.length>2&&me(e,n,t,2),n},me=function(e,t,r,n){function o(r){r&&t.appendChild("string"==typeof r?e.createTextNode(r):r)}for(;n<r.length;n++){var i=r[n];if(!_.qd(i)||_.xb(i)&&i.nodeType>0)o(i);else{e:{if(i&&"number"==typeof i.length){if(_.xb(i)){var a="function"==typeof i.item||"string"==typeof i.item;break e}if("function"==typeof i){a="function"==typeof i.item;break e}}a=!1}_.Hb(a?_.ac(i):i,o)}}},_.oe=function(e){return le(document,e)},le=function(e,t){return t=String(t),"application/xhtml+xml"===e.contentType&&(t=t.toLowerCase()),e.createElement(t)},_.je=function(e){return"CSS1Compat"==e.compatMode},_.pe=function(e){if(1!=e.nodeType)return!1;switch(e.tagName){case"APPLET":case"AREA":case"BASE":case"BR":case"COL":case"COMMAND":case"EMBED":case"FRAME":case"HR":case"IMG":case"INPUT":case"IFRAME":case"ISINDEX":case"KEYGEN":case"LINK":case"NOFRAMES":case"NOSCRIPT":case"META":case"OBJECT":case"PARAM":case"SCRIPT":case"SOURCE":case"STYLE":case"TRACK":case"WBR":return!1}return!0},_.qe=function(e,t){me(_.be(e),e,arguments,1)},_.re=function(e){for(var t;t=e.firstChild;)e.removeChild(t)},_.se=function(e,t){t.parentNode&&t.parentNode.insertBefore(e,t)},_.te=function(e){return e&&e.parentNode?e.parentNode.removeChild(e):null},_.ue=function(e){return null!=e.children?e.children:Array.prototype.filter.call(e.childNodes,(function(e){return 1==e.nodeType}))},_.ve=function(e){return _.xb(e)&&1==e.nodeType},_.we=function(e,t){if(!e||!t)return!1;if(e.contains&&1==t.nodeType)return e==t||e.contains(t);if(void 0!==e.compareDocumentPosition)return e==t||!!(16&e.compareDocumentPosition(t));for(;t&&e!=t;)t=t.parentNode;return t==e},_.be=function(e){return 9==e.nodeType?e:e.ownerDocument||e.document},_.xe=function(e,t){if("textContent"in e)e.textContent=t;else if(3==e.nodeType)e.data=String(t);else if(e.firstChild&&3==e.firstChild.nodeType){for(;e.lastChild!=e.firstChild;)e.removeChild(e.lastChild);e.firstChild.data=String(t)}else _.re(e),e.appendChild(_.be(e).createTextNode(String(t)))},_.ae=function(e){this.Ub=e||_.fb.document||document},_.g=_.ae.prototype,_.g.Ha=_.ce,_.g.eM=_.da(4),_.g.wb=function(){return this.Ub},_.g.U=_.da(5),_.g.getElementsByTagName=function(e,t){return(t||this.Ub).getElementsByTagName(String(e))},_.g.cI=_.da(6),_.g.Ba=function(e,t,r){return _.ne(this.Ub,arguments)},_.g.createElement=function(e){return le(this.Ub,e)},_.g.createTextNode=function(e){return this.Ub.createTextNode(String(e))},_.g.getWindow=function(){return this.Ub.defaultView},_.g.appendChild=function(e,t){e.appendChild(t)},_.g.append=_.qe,_.g.canHaveChildren=_.pe,_.g.re=_.re,_.g.WW=_.se,_.g.removeNode=_.te,_.g.mH=_.ue,_.g.isElement=_.ve,_.g.contains=_.we,_.g.GH=_.be,_.g.yj=_.da(7),_.ye=function(e){return null===e?"null":void 0===e?"undefined":e},_.ze=window,_.Ae=document,_.Be=_.ze.location,_.De=/\[native code\]/,_.Ee=function(e,t,r){return e[t]=e[t]||r},_.Fe=function(){var e;if((e=Object.create)&&_.De.test(e))e=e(null);else for(var t in e={})e[t]=void 0;return e},_.Ge=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},_.He=function(e,t){for(var r in e=e||{})_.Ge(e,r)&&(t[r]=e[r])},_.Ie=_.Ee(_.ze,"gapi",{}),_.Je=function(e,t,r){var n=new RegExp("([#].*&|[#])"+t+"=([^&#]*)","g");if(t=new RegExp("([?#].*&|[?#])"+t+"=([^&#]*)","g"),e=e&&(n.exec(e)||t.exec(e)))try{r=decodeURIComponent(e[2])}catch(e){}return r},_.Ke=new RegExp(/^/.source+/([a-zA-Z][-+.a-zA-Z0-9]*:)?/.source+/(\/\/[^\/?#]*)?/.source+/([^?#]*)?/.source+/(\?([^#]*))?/.source+/(#((#|[^#])*))?/.source+/$/.source),_.Le=new RegExp(/(%([^0-9a-fA-F%]|[0-9a-fA-F]([^0-9a-fA-F%])?)?)*/.source+/%($|[^0-9a-fA-F]|[0-9a-fA-F]($|[^0-9a-fA-F]))/.source,"g"),_.Me=new RegExp(/\/?\??#?/.source+"("+/[\/?#]/i.source+"|"+/[\uD800-\uDBFF]/i.source+"|"+/%[c-f][0-9a-f](%[89ab][0-9a-f]){0,2}(%[89ab]?)?/i.source+"|"+/%[0-9a-f]?/i.source+")$","i"),_.Oe=function(e,t,r){_.Ne(e,t,r,"add","at")},_.Ne=function(e,t,r,n,o){e[n+"EventListener"]?e[n+"EventListener"](t,r,!1):e[o+"tachEvent"]&&e[o+"tachEvent"]("on"+t,r)},_.Pe={},_.Pe=_.Ee(_.ze,"___jsl",_.Fe()),_.Ee(_.Pe,"I",0),_.Ee(_.Pe,"hel",10),Qe=function(e){var t=window.___jsl=window.___jsl||{};return t[e]=t[e]||[],t[e]},Re=function(e){var t=window.___jsl=window.___jsl||{};return t.cfg=!e&&t.cfg||{},t.cfg},Se=function(e){return"object"==typeof e&&/\[native code\]/.test(e.push)},Te=function(e,t,r){if(t&&"object"==typeof t)for(var n in t)!Object.prototype.hasOwnProperty.call(t,n)||r&&"___goc"===n&&void 0===t[n]||(e[n]&&t[n]&&"object"==typeof e[n]&&"object"==typeof t[n]&&!Se(e[n])&&!Se(t[n])?Te(e[n],t[n]):t[n]&&"object"==typeof t[n]?(e[n]=Se(t[n])?[]:{},Te(e[n],t[n])):e[n]=t[n])},We=function(e,t){if(e&&!/^\s+$/.test(e)){for(;0==e.charCodeAt(e.length-1);)e=e.substring(0,e.length-1);var r,n=e,o=Qe("dm");o.push(20);try{var i=window.JSON.parse(e)}catch(e){}if("object"==typeof i)return o.push(21),i;try{i=window.JSON.parse("{"+e+"}")}catch(e){}if("object"==typeof i)return o.push(22),i;e=(e=(e=(e=(e=(e=e.replace(RegExp("([^\"',{}\\s]+?)\\s*:\\s*(.*?)[,}\\s]","g"),(function(e,t,r){return"%DOUBLE_QUOTE%"+t+"%DOUBLE_QUOTE%:"+(r=(r=r.startsWith('"')?"%DOUBLE_QUOTE%"+r.substring(1):r).endsWith('"')?r.slice(0,-1)+"%DOUBLE_QUOTE%":r)}))).replace(/\\'/g,"%SINGLE_QUOTE%")).replace(/"/g,'\\"')).replace(/'/g,'"')).replace(/%SINGLE_QUOTE%/g,"'")).replace(/%DOUBLE_QUOTE%/g,'"');try{i=window.JSON.parse(e)}catch(e){}if("object"==typeof i)return o.push(23),i;try{i=window.JSON.parse("{"+e+"}")}catch(e){}return"object"==typeof i?(o.push(24),i):((e=document.getElementsByTagName("script")||[]).length>0&&(r=e[0].nonce||e[0].getAttribute("nonce")),(r&&r===t||!r&&Ue())&&(i=Ve(n),o.push(25),"object"==typeof i)?i:{})}},Ue=function(){var e=window.location.hostname;return!!e&&/(^|\.)(2mdn|ampproject|android|appspot|blogger|blogspot|chrome|chromium|doubleclick|gcpnode|ggpht|gmail|google|google-analytics|googleadservices|googleapis|googleapis-cn|googleoptimize|googlers|googlesource|googlesyndication|googletagmanager|googletagservices|googleusercontent|googlevideo|gstatic|tiltbrush|waze|withgoogle|youtube|ytimg)(\.com?|\.net|\.org)?(\.[a-z][a-z]|\.cat)?$/.test(e)},Ve=function(e){try{var t=new Function("return ("+e+"\n)")()}catch(e){}if("object"==typeof t)return t;try{t=new Function("return ({"+e+"\n})")()}catch(e){}return t},Xe=function(e,t){var r={___goc:void 0};e.length&&e[e.length-1]&&Object.hasOwnProperty.call(e[e.length-1],"___goc")&&void 0===e[e.length-1].___goc&&(r=e.pop()),Te(r,t),e.push(r)},Ye=function(e){Re(!0);var t=window.___gcfg,r=Qe("cu"),n=window.___gu;t&&t!==n&&(Xe(r,t),window.___gu=t),t=Qe("cu");var o=document.getElementsByTagName("script")||[];n=[];var i=[];i.push.apply(i,Qe("us"));for(var a=0;a<o.length;++a)for(var s=o[a],l=0;l<i.length;++l)s.src&&0==s.src.indexOf(i[l])&&n.push(s);for(0==n.length&&o.length>0&&o[o.length-1].src&&n.push(o[o.length-1]),o=0;o<n.length;++o)n[o].getAttribute("gapi_processed")||(n[o].setAttribute("gapi_processed",!0),(i=n[o])?i=3==(a=i.nodeType)||4==a?i.nodeValue:i.textContent||"":i=void 0,a=n[o].nonce||n[o].getAttribute("nonce"),(i=We(i,a))&&t.push(i));for(e&&Xe(r,e),e=0,t=(n=Qe("cd")).length;e<t;++e)Te(Re(),n[e],!0);for(e=0,t=(n=Qe("ci")).length;e<t;++e)Te(Re(),n[e],!0);for(e=0,t=r.length;e<t;++e)Te(Re(),r[e],!0)},_.$e=function(e,t){var r=Re();if(!e)return r;for(var n=0,o=(e=e.split("/")).length;r&&"object"==typeof r&&n<o;++n)r=r[e[n]];return n===e.length&&void 0!==r?r:t},_.af=function(e,t){var r;if("string"==typeof e){for(var n=r={},o=0,i=(e=e.split("/")).length;o<i-1;++o){n=n[e[o]]={}}n[e[o]]=t}else r=e;Ye(r)};var bf=function(){var e=window.__GOOGLEAPIS;e&&(e.googleapis&&!e["googleapis.config"]&&(e["googleapis.config"]=e.googleapis),_.Ee(_.Pe,"ci",[]).push(e),window.__GOOGLEAPIS=void 0)},jf,kf,lf,mf,nf,of,pf,qf,rf,sf,tf,uf,vf,xf,yf,zf,Af,Bf,Cf,Df,Ef,Ff,Gf,Hf,If,Jf,Kf,Lf,Mf,Nf,Of,Rf,Sf;bf&&bf(),Ye(),_.w("gapi.config.get",_.$e),_.w("gapi.config.update",_.af),_.cf=function(e){return e=_.ye(e),_.ic(e)},_.df=_.df||{},_.df=_.df||{},_.df.gw=function(e,t,r){for(var n=[],o=2,i=arguments.length;o<i;++o)n.push(arguments[o]);return function(){for(var r=n.slice(),o=0,i=arguments.length;o<i;++o)r.push(arguments[o]);return t.apply(e,r)}},_.df.PB=function(e){var t,r,n={};for(t=0;r=e[t];++t)n[r]=r;return n},function(){function e(e,t){if(!(e<r)&&n)if(2===e&&n.warn)n.warn(t);else if(3===e&&n.error)try{n.error(t)}catch(e){}else n.log&&n.log(t)}var t=function(t){e(1,t)};_.ef=function(t){e(2,t)},_.ff=function(t){e(3,t)},_.gf=function(){},t.INFO=1,t.WARNING=2,t.NONE=4;var r=1,n=window.console?window.console:window.opera?window.opera.postError:void 0}(),_.df=_.df||{},_.df.Gca=function(e){var t=window;void 0!==t.addEventListener?t.addEventListener("mousemove",e,!1):void 0!==t.attachEvent?t.attachEvent("onmousemove",e):_.ef("cannot attachBrowserEvent: mousemove")},_.df.dla=function(e){var t=window;t.removeEventListener?t.removeEventListener("mousemove",e,!1):t.detachEvent?t.detachEvent("onmousemove",e):_.ef("cannot removeBrowserEvent: mousemove")},_.df=_.df||{},function(){function e(e,t){return String.fromCharCode(t)}var t={0:!1,10:!0,13:!0,34:!0,39:!0,60:!0,62:!0,92:!0,8232:!0,8233:!0,65282:!0,65287:!0,65308:!0,65310:!0,65340:!0};_.df.escape=function(e,t){if(e){if("string"==typeof e)return _.df.GG(e);if("Array"==typeof e){var r=0;for(t=e.length;r<t;++r)e[r]=_.df.escape(e[r])}else if("object"==typeof e&&t){for(r in t={},e)e.hasOwnProperty(r)&&(t[_.df.GG(r)]=_.df.escape(e[r],!0));return t}}return e},_.df.GG=function(e){if(!e)return e;for(var r,n,o=[],i=0,a=e.length;i<a;++i)r=e.charCodeAt(i),!0===(n=t[r])?o.push("&#",r,";"):!1!==n&&o.push(e.charAt(i));return o.join("")},_.df.Yza=function(t){return t?t.replace(/&#([0-9]+);/g,e):t}}(),_.df=_.df||{},function(){function e(e){var r=void 0===e;if(null!==t&&r)return t;var n={},o=(e=e||window.location.href).indexOf("?"),i=e.indexOf("#");e=(-1===i?e.substr(o+1):[e.substr(o+1,i-o-1),"&",e.substr(i+1)].join("")).split("&"),o=window.decodeURIComponent?decodeURIComponent:unescape,i=0;for(var a=e.length;i<a;++i){var s=e[i].indexOf("=");if(-1!==s){var l=e[i].substring(0,s);s=(s=e[i].substring(s+1)).replace(/\+/g," ");try{n[l]=o(s)}catch(e){}}}return r&&(t=n),n}var t=null;_.df.Rg=e,e()}(),_.w("gadgets.util.getUrlParameters",_.df.Rg),lf=void 0,mf=function(e){try{return _.fb.JSON.parse.call(_.fb.JSON,e)}catch(e){return!1}},nf=function(e){return Object.prototype.toString.call(e)},of=nf(0),pf=nf(new Date(0)),qf=nf(!0),rf=nf(""),sf=nf({}),tf=nf([]),uf=function(e,t){if(t)for(var r=0,n=t.length;r<n;++r)if(e===t[r])throw new TypeError("Converting circular structure to JSON");if("undefined"!==(n=typeof e)){(r=Array.prototype.slice.call(t||[],0))[r.length]=e,t=[];var o=nf(e);if(null!=e&&"function"==typeof e.toJSON&&(Object.prototype.hasOwnProperty.call(e,"toJSON")||(o!==tf||e.constructor!==Array&&e.constructor!==Object)&&(o!==sf||e.constructor!==Array&&e.constructor!==Object)&&o!==rf&&o!==of&&o!==qf&&o!==pf))return uf(e.toJSON.call(e),r);if(null==e)t[t.length]="null";else if(o===of)e=Number(e),isNaN(e)||isNaN(e-e)?e="null":-0===e&&1/e<0&&(e="-0"),t[t.length]=String(e);else if(o===qf)t[t.length]=String(!!Number(e));else{if(o===pf)return uf(e.toISOString.call(e),r);if(o===tf&&nf(e.length)===of){t[t.length]="[";var i=0;for(n=Number(e.length)>>0;i<n;++i)i&&(t[t.length]=","),t[t.length]=uf(e[i],r)||"null";t[t.length]="]"}else if(o==rf&&nf(e.length)===of){for(t[t.length]='"',i=0,r=Number(e.length)>>0;i<r;++i)n=String.prototype.charAt.call(e,i),o=String.prototype.charCodeAt.call(e,i),t[t.length]="\b"===n?"\\b":"\f"===n?"\\f":"\n"===n?"\\n":"\r"===n?"\\r":"\t"===n?"\\t":"\\"===n||'"'===n?"\\"+n:o<=31?"\\u"+(o+65536).toString(16).substr(1):o>=32&&o<=65535?n:"�";t[t.length]='"'}else{if("object"!==n)return;for(i in t[t.length]="{",n=0,e)Object.prototype.hasOwnProperty.call(e,i)&&(void 0!==(o=uf(e[i],r))&&(n++&&(t[t.length]=","),t[t.length]=uf(i),t[t.length]=":",t[t.length]=o));t[t.length]="}"}}return t.join("")}},vf=/[\0-\x07\x0b\x0e-\x1f]/,xf=/^([^"]*"([^\\"]|\\.)*")*[^"]*"([^"\\]|\\.)*[\0-\x1f]/,yf=/^([^"]*"([^\\"]|\\.)*")*[^"]*"([^"\\]|\\.)*\\[^\\\/"bfnrtu]/,zf=/^([^"]*"([^\\"]|\\.)*")*[^"]*"([^"\\]|\\.)*\\u([0-9a-fA-F]{0,3}[^0-9a-fA-F])/,Af=/"([^\0-\x1f\\"]|\\[\\\/"bfnrt]|\\u[0-9a-fA-F]{4})*"/g,Bf=/-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][-+]?[0-9]+)?/g,Cf=/[ \t\n\r]+/g,Df=/[^"]:/,Ef=/""/g,Ff=/true|false|null/g,Gf=/00/,Hf=/[\{]([^0\}]|0[^:])/,If=/(^|\[)[,:]|[,:](\]|\}|[,:]|$)/,Jf=/[^\[,:][\[\{]/,Kf=/^(\{|\}|\[|\]|,|:|0)+/,Lf=/\u2028/g,Mf=/\u2029/g,Nf=function(a){if(a=String(a),vf.test(a)||xf.test(a)||yf.test(a)||zf.test(a))return!1;var b=a.replace(Af,'""');if(b=b.replace(Bf,"0"),b=b.replace(Cf,""),Df.test(b))return!1;if(b=b.replace(Ef,"0"),b=b.replace(Ff,"0"),Gf.test(b)||Hf.test(b)||If.test(b)||Jf.test(b)||!b||(b=b.replace(Kf,"")))return!1;a=a.replace(Lf,"\\u2028").replace(Mf,"\\u2029"),b=void 0;try{b=lf?[mf(a)]:eval("(function (var_args) {\n return Array.prototype.slice.call(arguments, 0);\n})(\n"+a+"\n)")}catch(e){return!1}return!(!b||1!==b.length)&&b[0]},Of=function(){var e=((_.fb.document||{}).scripts||[]).length;if((void 0===jf||void 0===lf||kf!==e)&&-1!==kf){jf=lf=!1,kf=-1;try{try{lf=!!_.fb.JSON&&'{"a":[3,true,"1970-01-01T00:00:00.000Z"]}'===_.fb.JSON.stringify.call(_.fb.JSON,{a:[3,!0,new Date(0)],c:function(){}})&&!0===mf("true")&&3===mf('[{"a":3}]')[0].a}catch(e){}jf=lf&&!mf("[00]")&&!mf('""')&&!mf('"\\0"')&&!mf('"\\v"')}finally{kf=e}}},_.Pf=function(e){return-1!==kf&&(Of(),(jf?mf:Nf)(e))},_.Qf=function(e){if(-1!==kf)return Of(),lf?_.fb.JSON.stringify.call(_.fb.JSON,e):uf(e)},Rf=!Date.prototype.toISOString||"function"!=typeof Date.prototype.toISOString||"1970-01-01T00:00:00.000Z"!==new Date(0).toISOString(),Sf=function(){var e=Date.prototype.getUTCFullYear.call(this);return[e<0?"-"+String(1e6-e).substr(1):e<=9999?String(1e4+e).substr(1):"+"+String(1e6+e).substr(1),"-",String(101+Date.prototype.getUTCMonth.call(this)).substr(1),"-",String(100+Date.prototype.getUTCDate.call(this)).substr(1),"T",String(100+Date.prototype.getUTCHours.call(this)).substr(1),":",String(100+Date.prototype.getUTCMinutes.call(this)).substr(1),":",String(100+Date.prototype.getUTCSeconds.call(this)).substr(1),".",String(1e3+Date.prototype.getUTCMilliseconds.call(this)).substr(1),"Z"].join("")},Date.prototype.toISOString=Rf?Sf:Date.prototype.toISOString;var Kg=function(){this.blockSize=-1},Lg=function(){this.blockSize=-1,this.blockSize=64,this.Qc=[],this.HF=[],this.cca=[],this.rC=[],this.rC[0]=128;for(var e=1;e<this.blockSize;++e)this.rC[e]=0;this.nE=this.ur=0,this.reset()};_.t(Lg,Kg),Lg.prototype.reset=function(){this.Qc[0]=1732584193,this.Qc[1]=4023233417,this.Qc[2]=2562383102,this.Qc[3]=271733878,this.Qc[4]=3285377520,this.nE=this.ur=0};var Mg=function(e,t,r){r||(r=0);var n=e.cca;if("string"==typeof t)for(var o=0;o<16;o++)n[o]=t.charCodeAt(r)<<24|t.charCodeAt(r+1)<<16|t.charCodeAt(r+2)<<8|t.charCodeAt(r+3),r+=4;else for(o=0;o<16;o++)n[o]=t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3],r+=4;for(t=16;t<80;t++)r=n[t-3]^n[t-8]^n[t-14]^n[t-16],n[t]=4294967295&(r<<1|r>>>31);t=e.Qc[0],r=e.Qc[1],o=e.Qc[2];for(var i,a,s=e.Qc[3],l=e.Qc[4],c=0;c<80;c++)c<40?c<20?(i=s^r&(o^s),a=1518500249):(i=r^o^s,a=1859775393):c<60?(i=r&o|s&(r|o),a=2400959708):(i=r^o^s,a=3395469782),i=(t<<5|t>>>27)+i+l+a+n[c]&4294967295,l=s,s=o,o=4294967295&(r<<30|r>>>2),r=t,t=i;e.Qc[0]=e.Qc[0]+t&4294967295,e.Qc[1]=e.Qc[1]+r&4294967295,e.Qc[2]=e.Qc[2]+o&4294967295,e.Qc[3]=e.Qc[3]+s&4294967295,e.Qc[4]=e.Qc[4]+l&4294967295},fi;Lg.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var r=t-this.blockSize,n=0,o=this.HF,i=this.ur;n<t;){if(0==i)for(;n<=r;)Mg(this,e,n),n+=this.blockSize;if("string"==typeof e){for(;n<t;)if(o[i]=e.charCodeAt(n),++n,++i==this.blockSize){Mg(this,o),i=0;break}}else for(;n<t;)if(o[i]=e[n],++n,++i==this.blockSize){Mg(this,o),i=0;break}}this.ur=i,this.nE+=t}},Lg.prototype.digest=function(){var e=[],t=8*this.nE;this.ur<56?this.update(this.rC,56-this.ur):this.update(this.rC,this.blockSize-(this.ur-56));for(var r=this.blockSize-1;r>=56;r--)this.HF[r]=255&t,t/=256;for(Mg(this,this.HF),r=t=0;r<5;r++)for(var n=24;n>=0;n-=8)e[t]=this.Qc[r]>>n&255,++t;return e},_.Og=function(){this.MN=new Lg},_.g=_.Og.prototype,_.g.reset=function(){this.MN.reset()},_.g.J4=function(e){this.MN.update(e)},_.g.RR=function(){return this.MN.digest()},_.g.Tx=function(e){for(var t=[],r=(e=unescape(encodeURIComponent(e))).length,n=0;n<r;++n)t.push(e.charCodeAt(n));this.J4(t)},_.g.Ti=function(){for(var e=this.RR(),t="",r=0;r<e.length;r++)t+="0123456789ABCDEF".charAt(Math.floor(e[r]/16))+"0123456789ABCDEF".charAt(e[r]%16);return t},_.bi=function(e){var t=window.___jsl=window.___jsl||{};return t.cfg=!e&&t.cfg||{},t.cfg},_.ci=function(e){var t=_.bi();if(!e)return t;for(var r=0,n=(e=e.split("/")).length;t&&"object"==typeof t&&r<n;++r)t=t[e[r]];return r===e.length&&void 0!==t?t:void 0},_.di=function(e,t,r,n){for(var o,i=0,a=e.length;i<a;){var s=i+(a-i>>>1),l=r?t.call(void 0,e[s],s,e):t(n,e[s]);l>0?i=s+1:(a=s,o=!l)}return o?i:-i-1},_.ei=function(e,t){var r,n={};for(r in e)t.call(void 0,e[r],r,e)&&(n[r]=e[r]);return n},fi=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?#]*)?\/u\/(\d)\//,_.gi=function(e){var t=_.ci("googleapis.config/sessionIndex");if("string"==typeof t&&t.length>254&&(t=null),null==t&&(t=window.__X_GOOG_AUTHUSER),"string"==typeof t&&t.length>254&&(t=null),null==t){var r=window.google;r&&(t=r.authuser)}return"string"==typeof t&&t.length>254&&(t=null),null==t&&(e=e||window.location.href,null==(t=_.Je(e,"authuser")||null)&&(t=(t=e.match(fi))?t[1]:null)),null==t?null:((t=String(t)).length>254&&(t=null),t)},_.ti=function(){if(!_.fb.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{var r=function(){};_.fb.addEventListener("test",r,t),_.fb.removeEventListener("test",r,t)}catch(e){}return e}();var ui=function(){var e=_.Pe.ms||_.Pe.u;if(e)return new URL(e).origin},vi=function(e){this.ZT=e,this.count=this.count=0},xi,Ai;vi.prototype.tb=function(e,t){e?this.count+=e:this.count++,this.ZT&&(void 0===t||t)&&this.ZT()},vi.prototype.get=function(){return this.count},vi.prototype.reset=function(){this.count=0},xi=function(){var e=!0,t=this;e=void 0===e||e,this.mz=new Map,this.AF=!1;var r=ui();r&&(this.url=r+"/js/gen_204",r=_.ci("gen204logger")||{},this.Hu=r.interval,this.aU=r.rate,this.AF=r.Jwa,e&&this.url&&wi(this),document.addEventListener("visibilitychange",this.flush),this.flush(),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&t.flush()})),document.addEventListener("pagehide",this.flush.bind(this)))},_.yi=function(){return xi.EY||(xi.EY=new xi),xi.EY},Ai=function(e){var t=_.Pe.dm||[];if(t&&0!==t.length){for(var r=(t=_.Ea(t)).next();!r.done;r=t.next())_.zi(e,r.value).tb(1,!1);delete _.Pe.dm,e.flush()}},_.zi=function(e,t){return e.mz.has(t)||e.mz.set(t,new vi(e.AF?void 0:function(){e.flush()})),e.mz.get(t)},xi.prototype.flush=function(){var e=this;if(this.url&&this.aU){Ai(this);for(var t="",r=_.Ea(this.mz),n=r.next();!n.done;n=r.next()){var o=_.Ea(n.value);n=o.next().value;var i=(o=o.next().value).get();if(i>0&&(t+=t.length>0?"&":"",t+="c=",t+=encodeURIComponent(n+":"+i),o.reset()),t.length>1e3)break}if(""!==t&&Math.random()<this.aU){try{var a=AbortSignal.timeout(3e4)}catch(e){a=void 0}fetch(this.url+"?"+t,{method:"GET",mode:"no-cors",signal:a}).catch((function(){})).finally((function(){wi(e)}))}}},xi.prototype.setInterval=function(e){this.Hu=e};var wi=function(e){e.Hu&&e.AF&&setTimeout((function(){e.flush()}),e.Hu)},Ci,Bi,Ii,Li,Di,Gi,Ei,Mi,Fi,yl,zl,Al,Bl,Cl,Dl,El,Fl,Gl,Ll,Ml,Nl,Rl,Sl,Tl,Ul,Vl,Wl,Xl,Yl,$l,am,em,gm,jm;_.Hi=function(){if(_.zi(_.yi(),50).tb(),Bi){var e=new _.ze.Uint32Array(1);Ci.getRandomValues(e),e=Number("0."+e[0])}else e=Di,e+=parseInt(Ei.substr(0,20),16),Ei=Fi(Ei),e/=Gi+12089258196146292e8;return e},Ci=_.ze.crypto,Bi=!1,Ii=0,Li=0,Di=1,Gi=0,Ei="",Mi=function(e){var t=(e=e||_.ze.event).screenX+e.clientX<<16;t+=e.screenY+e.clientY,t*=(new Date).getTime()%1e6,Di=Di*t%Gi,Ii>0&&++Li==Ii&&_.Ne(_.ze,"mousemove",Mi,"remove","de")},Fi=function(e){var t=new _.Og;return t.Tx(e),t.Ti()},Bi=!!Ci&&"function"==typeof Ci.getRandomValues,Bi||(Gi=1e6*(screen.width*screen.width+screen.height),Ei=Fi(_.Ae.cookie+"|"+_.Ae.location+"|"+(new Date).getTime()+"|"+Math.random()),Ii=_.ci("random/maxObserveMousemove")||0,0!=Ii&&_.Oe(_.ze,"mousemove",Mi)),_.xl=function(e,t){if(!e)throw Error(t||"")},yl=/&/g,zl=/</g,Al=/>/g,Bl=/"/g,Cl=/'/g,Dl=function(e){return String(e).replace(yl,"&").replace(zl,"<").replace(Al,">").replace(Bl,""").replace(Cl,"'")},El=/[\ud800-\udbff][\udc00-\udfff]|[^!-~]/g,Fl=/%([a-f]|[0-9a-fA-F][a-f])/g,Gl=/^(https?|ftp|file|chrome-extension):$/i,Ll=function(e){e=(e=(e=String(e)).replace(El,(function(e){try{return encodeURIComponent(e)}catch(t){return encodeURIComponent(e.replace(/^[^%]+$/g,"�"))}})).replace(_.Le,(function(e){return e.replace(/%/g,"%25")})).replace(Fl,(function(e){return e.toUpperCase()}))).match(_.Ke)||[];var t=_.Fe(),r=function(e){return e.replace(/\\/g,"%5C").replace(/\^/g,"%5E").replace(/`/g,"%60").replace(/\{/g,"%7B").replace(/\|/g,"%7C").replace(/\}/g,"%7D")},n=!!(e[1]||"").match(Gl);return t.base=r((e[1]||"")+(e[2]||"")+(e[3]||(e[2]&&n?"/":""))),n=function(e){return r(e.replace(/\?/g,"%3F").replace(/#/g,"%23"))},t.query=e[5]?[n(e[5])]:[],t.Yi=e[7]?[n(e[7])]:[],t},Ml=function(e){return e.base+(e.query.length>0?"?"+e.query.join("&"):"")+(e.Yi.length>0?"#"+e.Yi.join("&"):"")},Nl=function(e,t){var r=[];if(e)for(var n in e)if(_.Ge(e,n)&&null!=e[n]){var o=t?t(e[n]):e[n];r.push(encodeURIComponent(n)+"="+encodeURIComponent(o))}return r},_.Ol=function(e,t,r,n){return(e=Ll(e)).query.push.apply(e.query,Nl(t,n)),e.Yi.push.apply(e.Yi,Nl(r,n)),Ml(e)},_.Pl=function(e,t){var r=Ll(t);t=r.base,r.query.length&&(t+="?"+r.query.join("")),r.Yi.length&&(t+="#"+r.Yi.join(""));var n="";t.length>2e3&&(r=t,t=(t=t.substr(0,2e3)).replace(_.Me,""),n=r.substr(t.length));var o=e.createElement("div");return e=e.createElement("a"),t=(r=Ll(t)).base,r.query.length&&(t+="?"+r.query.join("")),r.Yi.length&&(t+="#"+r.Yi.join("")),_.Lc(e,new _.pc(_.ye(t))),o.appendChild(e),_.Oc(o,_.ic(o.innerHTML)),t=String(o.firstChild.href),o.parentNode&&o.parentNode.removeChild(o),t=(r=Ll(t+n)).base,r.query.length&&(t+="?"+r.query.join("")),r.Yi.length&&(t+="#"+r.Yi.join("")),t},_.Ql=/^https?:\/\/[^\/%\\?#\s]+\/[^\s]*$/i,Sl=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},Tl=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?#]*)?\/b\/(\d{10,21})\//,Ul=function(){var e=_.ci("googleapis.config/sessionDelegate");return"string"==typeof e&&e.length>21&&(e=null),null==e&&(e=(e=window.location.href.match(Tl))?e[1]:null),null==e?null:((e=String(e)).length>21&&(e=null),e)},Vl=function(){var e=_.Pe.onl;if(!e){e=_.Fe(),_.Pe.onl=e;var t=_.Fe();e.e=function(e){var r=t[e];r&&(delete t[e],r())},e.a=function(e,r){t[e]=r},e.r=function(e){delete t[e]}}return e},Wl=function(e,t){return"function"==typeof(t=t.onload)?(Vl().a(e,t),t):null},Xl=function(e){return _.xl(/^\w+$/.test(e),"Unsupported id - "+e),'onload="window.___jsl.onl.e("'+e+'")"'},Yl=function(e){Vl().r(e)},_.Zl={allowtransparency:"true",frameborder:"0",hspace:"0",marginheight:"0",marginwidth:"0",scrolling:"no",style:"",tabindex:"0",vspace:"0",width:"100%"},$l={allowtransparency:!0,onload:!0},am=0,_.bm=function(e,t){var r=0;do{var n=t.id||["I",am++,"_",(new Date).getTime()].join("")}while(e.getElementById(n)&&++r<5);return _.xl(r<5,"Error creating iframe id"),n},_.cm=function(e,t){return e?t+"/"+e:""},_.dm=function(e,t,r,n){var o={},i={};e.documentMode&&e.documentMode<9&&(o.hostiemode=e.documentMode),_.He(n.queryParams||{},o),_.He(n.fragmentParams||{},i);var a=n.pfname,s=_.Fe();return _.ci("iframes/dropLegacyIdParam")||(s.id=r),s._gfid=r,s.parent=e.location.protocol+"//"+e.location.host,r=_.Je(e.location.href,"parent"),!(a=a||"")&&r&&(a=_.Je(e.location.href,"_gfid","")||_.Je(e.location.href,"id",""),a=_.cm(a,_.Je(e.location.href,"pfname",""))),a||(r=_.Pf(_.Je(e.location.href,"jcp","")))&&"object"==typeof r&&(a=_.cm(r.id,r.pfname)),s.pfname=a,n.connectWithJsonParam&&((a={}).jcp=_.Qf(s),s=a),(a=_.Je(t,"rpctoken")||o.rpctoken||i.rpctoken)||(a=n.rpctoken||String(Math.round(1e8*_.Hi())),s.rpctoken=a),n.rpctoken=a,_.He(s,n.connectWithQueryParams?o:i),s=e.location.href,e=_.Fe(),(a=_.Je(s,"_bsh",_.Pe.bsh))&&(e._bsh=a),(s=_.Pe.dpo?_.Pe.h:_.Je(s,"jsh",_.Pe.h))&&(e.jsh=s),n.hintInFragment?_.He(e,i):_.He(e,o),_.Ol(t,o,i,n.paramsSerializer)},em=function(e){_.xl(!e||_.Ql.test(e),"Illegal url for new iframe - "+e)},_.fm=function(e,t,r,n,o){em(r.src);var i,a=Wl(n,r),s=a?Xl(n):"";try{document.all&&(i=e.createElement('<iframe frameborder="'+Dl(String(r.frameborder))+'" scrolling="'+Dl(String(r.scrolling))+'" '+s+' name="'+Dl(String(r.name))+'"/>'))}catch(e){}finally{i||(i=_.ce(e).createElement("IFRAME"),a&&(i.onload=function(){i.onload=null,a.call(this)},Yl(n)))}for(var l in i.setAttribute("ng-non-bindable",""),r)e=r[l],"style"===l&&"object"==typeof e?_.He(e,i.style):$l[l]||i.setAttribute(l,String(e));return(l=o&&o.beforeNode||null)||o&&o.dontclear||Sl(t),t.insertBefore(i,l),i=l?l.previousSibling:t.lastChild,r.allowtransparency&&(i.allowTransparency=!0),i},gm=/^:[\w]+$/,_.hm=/:([a-zA-Z_]+):/g,_.im=function(){var e=_.gi()||"0",t=Ul(),r=_.gi()||e,n=Ul(),o="";r&&(o+="u/"+encodeURIComponent(String(r))+"/"),n&&(o+="b/"+encodeURIComponent(String(n))+"/"),r=o||null,(o=(n=!1===_.ci("isLoggedIn"))?"_/im/":"")&&(r="");var i=_.ci("iframes/:socialhost:"),a=_.ci("iframes/:im_socialhost:");return Rl={socialhost:i,ctx_socialhost:n?a:i,session_index:e,session_delegate:t,session_prefix:r,im_prefix:o}},jm=function(e,t){return _.im()[t]||""},_.km=function(e){return _.Pl(_.Ae,e.replace(_.hm,jm))},_.lm=function(e){var t=e;return gm.test(e)&&(t="iframes/"+t.substring(1)+"/url",t=_.ci(t),_.xl(!!t,"Unknown iframe url config for - "+e)),_.km(t)},_.mm=function(e,t,r){var n=(r=r||{}).attributes||{};_.xl(!(r.allowPost||r.forcePost)||!n.onload,"onload is not supported by post iframe (allowPost or forcePost)"),e=_.lm(e),n=t.ownerDocument||_.Ae;var o=_.bm(n,r);e=_.dm(n,e,o,r);var i=r,a=_.Fe();_.He(_.Zl,a),_.He(i.attributes,a),a.name=a.id=o,a.src=e,r.eurl=e;var s=!!(r=(i=r)||{}).allowPost;if(r.forcePost||s&&e.length>2e3){if(r=Ll(e),a.src="",i.dropDataPostorigin||(a["data-postorigin"]=e),e=_.fm(n,t,a,o),-1!=navigator.userAgent.indexOf("WebKit")){var l=e.contentWindow.document;l.open(),a=l.createElement("div");var c=o+"_inner";(s={}).name=c,s.src="",s.style="display:none",_.fm(n,a,s,c,i)}for(a=(i=r.query[0])?i.split("&"):[],i=[],s=0;s<a.length;s++)c=a[s].split("=",2),i.push([decodeURIComponent(c[0]),decodeURIComponent(c[1])]);for(r.query=[],a=Ml(r),_.xl(_.Ql.test(a),"Invalid URL: "+a),(r=n.createElement("form")).method="POST",r.target=o,r.style.display="none",void 0!==(o=_.zc(a))&&(r.action=o),o=0;o<i.length;o++)(a=n.createElement("input")).type="hidden",a.name=i[o][0],a.value=i[o][1],r.appendChild(a);t.appendChild(r),r.submit(),r.parentNode.removeChild(r),l&&l.close(),t=e}else t=_.fm(n,t,a,o,i);return t};var Tj=function(e){this.O=e};_.g=Tj.prototype,_.g.value=function(){return this.O},_.g.Pe=function(e){return this.O.width=e,this},_.g.Qb=function(){return this.O.width},_.g.Sd=function(e){return this.O.height=e,this},_.g.Nc=function(){return this.O.height},_.g.Di=function(e){return this.O.style=e,this},_.g.getStyle=function(){return this.O.style},_.Uj=function(e){this.O=e||{}},_.g=_.Uj.prototype,_.g.value=function(){return this.O},_.g.setUrl=function(e){return this.O.url=e,this},_.g.getUrl=function(){return this.O.url},_.g.Di=function(e){return this.O.style=e,this},_.g.getStyle=function(){return this.O.style},_.g.Oe=function(e){return this.O.id=e,this},_.g.getId=function(){return this.O.id},_.g.ln=function(e){return this.O.rpctoken=e,this},_.Vj=function(e,t){return e.O.messageHandlers=t,e},_.Wj=function(e,t){return e.O.messageHandlersFilter=t,e},_.g=_.Uj.prototype,_.g.xs=_.da(8),_.g.getContext=function(){return this.O.context},_.g.ld=function(){return this.O.openerIframe},_.g.bo=function(){return this.O.attributes=this.O.attributes||{},new Tj(this.O.attributes)},_.g.pH=_.da(9),_.ho=function(e,t){return e.O.where=t,e},_.io=function(){_.Uj.apply(this,arguments)},_.t(_.io,_.Uj),_.hf=function(){var e=window.gadgets&&window.gadgets.config&&window.gadgets.config.get;return e&&_.af(e()),{register:function(e,t,r){r&&r(_.$e())},get:function(e){return _.$e(e)},update:function(e,t){if(t)throw"Config replacement is not supported";_.af(e)},init:function(){}}}(),_.w("gadgets.config.register",_.hf.register),_.w("gadgets.config.get",_.hf.get),_.w("gadgets.config.init",_.hf.init),_.w("gadgets.config.update",_.hf.update),_.w("gadgets.json.stringify",_.Qf),_.w("gadgets.json.parse",_.Pf),_.df=_.df||{},function(){var e=[];_.df.bza=function(t){e.push(t)},_.df.pza=function(){for(var t=0,r=e.length;t<r;++t)e[t]()}}();var Tf=function(){this.Dg=window.console};Tf.prototype.log=function(e){this.Dg&&this.Dg.log&&this.Dg.log(e)},Tf.prototype.error=function(e){this.Dg&&(this.Dg.error?this.Dg.error(e):this.Dg.log&&this.Dg.log(e))},Tf.prototype.warn=function(e){this.Dg&&(this.Dg.warn?this.Dg.warn(e):this.Dg.log&&this.Dg.log(e))},Tf.prototype.debug=function(){},_.Uf=new Tf,_.Vf=function(){var e=_.Ae.readyState;return"complete"===e||"interactive"===e&&-1==navigator.userAgent.indexOf("MSIE")},_.Wf=function(e){if(_.Vf())e();else{var t=!1,r=function(){if(!t)return t=!0,e.apply(this,arguments)};_.ze.addEventListener?(_.ze.addEventListener("load",r,!1),_.ze.addEventListener("DOMContentLoaded",r,!1)):_.ze.attachEvent&&(_.ze.attachEvent("onreadystatechange",(function(){_.Vf()&&r.apply(this,arguments)})),_.ze.attachEvent("onload",r))}},_.Xf=function(e,t){var r=_.Ee(_.Pe,"watt",_.Fe());_.Ee(r,e,t)},_.Je(_.ze.location.href,"rpctoken")&&_.Oe(_.Ae,"unload",(function(){}));var Yf=Yf||{},nm,rq,sq,tq,uq,xq,yq,zq,Aq,Bq,Cq,Dq,Eq,Fq;Yf.Y0=null,Yf.tZ=null,Yf.eB=null,Yf.frameElement=null,Yf=Yf||{},Yf.EO||(Yf.EO=function(){function e(e){var r=_.Pf(e.data);if(r&&r.f){_.gf();var o=_.Zf.ko(r.f);n&&(void 0!==e.origin?e.origin!==o:e.domain!==/^.+:\/\/([^:]+).*/.exec(o)[1])?_.ff("Invalid rpc message origin. "+o+" vs "+(e.origin||"")):t(r,e.origin)}}var t,r,n=!0;return{EU:function(){return"wpm"},Hia:function(){return!0},init:function(o,i){return _.hf.register("rpc",null,(function(e){"true"===String((e&&e.rpc||{}).disableForceSecure)&&(n=!1)})),t=o,r=i,function(e,t,r){void 0!==window.addEventListener?window.addEventListener(e,t,r):void 0!==window.attachEvent&&window.attachEvent("on"+e,t),"message"===e&&(window.___jsl=window.___jsl||{},(e=window.___jsl).RPMQ=e.RPMQ||[],e.RPMQ.push(t))}("message",e,!1),r("..",!0),!0},Lb:function(e){return r(e,!0),!0},call:function(e,t,r){var n=_.Zf.ko(e),o=_.Zf.BP(e);return n?window.setTimeout((function(){var e=_.Qf(r);_.gf(),o&&"postMessage"in o&&o.postMessage(e,n)}),0):".."!=e&&_.ff("No relay set (used as window.postMessage targetOrigin), cannot send cross-domain message"),!0}}}()),window.gadgets&&window.gadgets.rpc?void 0!==_.Zf&&_.Zf||(_.Zf=window.gadgets.rpc,_.Zf.config=_.Zf.config,_.Zf.register=_.Zf.register,_.Zf.unregister=_.Zf.unregister,_.Zf.r0=_.Zf.registerDefault,_.Zf.H4=_.Zf.unregisterDefault,_.Zf.iU=_.Zf.forceParentVerifiable,_.Zf.call=_.Zf.call,_.Zf.kv=_.Zf.getRelayUrl,_.Zf.Rj=_.Zf.setRelayUrl,_.Zf.uD=_.Zf.setAuthToken,_.Zf.nx=_.Zf.setupReceiver,_.Zf.Wn=_.Zf.getAuthToken,_.Zf.gL=_.Zf.removeReceiver,_.Zf.eV=_.Zf.getRelayChannel,_.Zf.l0=_.Zf.receive,_.Zf.m0=_.Zf.receiveSameDomain,_.Zf.getOrigin=_.Zf.getOrigin,_.Zf.ko=_.Zf.getTargetOrigin,_.Zf.BP=_.Zf._getTargetWin,_.Zf.kca=_.Zf._parseSiblingId):(_.Zf=function(){function e(e,t){if(!C[e]){var r=M;t||(r=R),C[e]=r,t=S[e]||[];for(var n=0;n<t.length;++n){var o=t[n];o.t=b[e],r.call(e,o.f,o)}S[e]=[]}}function t(e,t,r,n,o){b[t]&&b[t]===r||(_.ff("Invalid gadgets.rpc token. "+b[t]+" vs "+r),A(t,2)),o.onunload=function(){w[t]&&!N&&(A(t,1),_.Zf.gL(t))},function(){function e(){N=!0}L||(void 0!==window.addEventListener?window.addEventListener("unload",e,!1):void 0!==window.attachEvent&&window.attachEvent("onunload",e),L=!0)}(),n=_.Pf(decodeURIComponent(n))}function r(t,r){if(t&&"string"==typeof t.s&&"string"==typeof t.f&&t.a instanceof Array)if(b[t.f]&&b[t.f]!==t.t&&(_.ff("Invalid gadgets.rpc token. "+b[t.f]+" vs "+t.t),A(t.f,2)),"__ack"===t.s)window.setTimeout((function(){e(t.f,!0)}),0);else{if(t.c&&(t.callback=function(e){_.Zf.call(t.f,(t.g?"legacy__":"")+"__cb",null,t.c,e)}),r){var o=n(r);t.origin=r;var i=t.r;try{var a=n(i)}catch(e){}i&&a==o||(i=r),t.referer=i}r=(f[t.s]||f[""]).apply(t,t.a),t.c&&void 0!==r&&_.Zf.call(t.f,"__cb",null,t.c,r)}}function n(e){if(!e)return"";0==(e=(e=e.split("#")[0].split("?")[0]).toLowerCase()).indexOf("//")&&(e=window.location.protocol+e),-1==e.indexOf("://")&&(e=window.location.protocol+"//"+e);var t=e.substring(e.indexOf("://")+3),r=t.indexOf("/");if(-1!=r&&(t=t.substring(0,r)),"http"!==(e=e.substring(0,e.indexOf("://")))&&"https"!==e&&"chrome-extension"!==e&&"file"!==e&&"android-app"!==e&&"chrome-search"!==e&&"chrome-untrusted"!==e&&"chrome"!==e&&"devtools"!==e)throw Error("l");r="";var n=t.indexOf(":");if(-1!=n){var o=t.substring(n+1);t=t.substring(0,n),("http"===e&&"80"!==o||"https"===e&&"443"!==o)&&(r=":"+o)}return e+"://"+t+r}function o(e){if("/"==e.charAt(0)){var t=e.indexOf("|");return{id:t>0?e.substring(1,t):e.substring(1),origin:e=t>0?e.substring(t+1):null}}return null}function i(e){if(void 0===e||".."===e)return window.parent;var t=o(e);return t?a(window.top.frames[t.id]):(e=String(e),(t=window.frames[e])?a(t):(t=document.getElementById(e))&&t.contentWindow?t.contentWindow:null)}function a(e){return e?"postMessage"in e?e:e instanceof HTMLIFrameElement&&"contentWindow"in e&&null!=e.contentWindow&&"postMessage"in e.contentWindow?e.contentWindow:null:null}function s(e,t){if(!0!==w[e]){void 0===w[e]&&(w[e]=0);var r=i(e);".."!==e&&null==r||!0!==M.Lb(e,t)?!0!==w[e]&&w[e]++<10?window.setTimeout((function(){s(e,t)}),500):(C[e]=R,w[e]=!0):w[e]=!0}}function l(e){return(e=g[e])&&"/"===e.substring(0,1)&&(e="/"===e.substring(1,2)?document.location.protocol+e:document.location.protocol+"//"+document.location.host+e),e}function c(e,t,r){t&&!/http(s)?:\/\/.+/.test(t)&&(0==t.indexOf("//")?t=window.location.protocol+t:"/"==t.charAt(0)?t=window.location.protocol+"//"+window.location.host+t:-1==t.indexOf("://")&&(t=window.location.protocol+"//"+t)),g[e]=t,void 0!==r&&(m[e]=!!r)}function u(e,t){t=t||"",b[e]=String(t),s(e,t)}function d(e){e=(e.passReferrer||"").split(":",2),k=e[0]||"none",I=e[1]||"origin"}function h(t){"true"===String(t.useLegacyProtocol)&&(M=Yf.eB||R).init(r,e)}function p(e,t,r){if(".."===e)!function(e,t){function r(r){d(r=r&&r.rpc||{});var o=r.parentRelayUrl||"";c("..",o=n(E.parent||t)+o,"true"===String(r.useLegacyProtocol)),h(r),u("..",e)}!E.parent&&t?r({}):_.hf.register("rpc",null,r)}(r||E.rpctoken||E.ifpctok||"",t);else e:{var o=null;if("/"!=e.charAt(0)){if(!_.df)break e;if(!(o=document.getElementById(e)))throw Error("m`"+e)}o=o&&o.src,c(e,t=t||n(o)),t=_.df.Rg(o),u(e,r||t.rpctoken)}}var f={},g={},m={},b={},y=0,v={},w={},E={},C={},S={},k=null,I=null,O=window.top!==window.self,T=window.name,A=function(){},x=window.console,P=x&&x.log&&function(e){x.log(e)}||function(){},R=function(){function e(e){return function(){P(e+": call ignored")}}return{EU:function(){return"noop"},Hia:function(){return!0},init:e("init"),Lb:e("setup"),call:e("call")}}();_.df&&(E=_.df.Rg());var N=!1,L=!1,M=function(){if("rmr"==E.rpctx)return Yf.Y0;var e="function"==typeof window.postMessage||"object"==typeof window.postMessage?Yf.EO:window.ActiveXObject?Yf.tZ?Yf.tZ:Yf.eB:navigator.userAgent.indexOf("WebKit")>0?Yf.Y0:"Gecko"===navigator.product?Yf.frameElement:Yf.eB;return e||(e=R),e}();return f[""]=function(){P("Unknown RPC service: "+this.s)},f.__cb=function(e,t){var r=v[e];r&&(delete v[e],r.call(this,t))},{config:function(e){"function"==typeof e.t1&&(A=e.t1)},register:function(e,t){if("__cb"===e||"__ack"===e)throw Error("n");if(""===e)throw Error("o");f[e]=t},unregister:function(e){if("__cb"===e||"__ack"===e)throw Error("p");if(""===e)throw Error("q");delete f[e]},r0:function(e){f[""]=e},H4:function(){delete f[""]},iU:function(){},call:function(e,t,r,i){var a="..";".."===(e=e||"..")?a=T:"/"==e.charAt(0)&&(a=n(window.location.href),a="/"+T+(a?"|"+a:"")),++y,r&&(v[y]=r);var s={s:t,f:a,c:r?y:0,a:Array.prototype.slice.call(arguments,3),t:b[e],l:!!m[e]};e:if("bidir"===k||"c2p"===k&&".."===e||"p2c"===k&&".."!==e){var l=window.location.href,c="?";if("query"===I)c="#";else if("hash"===I)break e;c=-1===(c=l.lastIndexOf(c))?l.length:c,l=l.substring(0,c)}else l=null;l&&(s.r=l),(".."===e||null!=o(e)||document.getElementById(e))&&((l=C[e])||null===o(e)||(l=M),0===t.indexOf("legacy__")&&(l=M,s.s=t.substring(8),s.c=s.c?s.c:y),s.g=!0,s.r=a,l?(m[e]&&(l=Yf.eB),!1===l.call(e,a,s)&&(C[e]=R,M.call(e,a,s))):S[e]?S[e].push(s):S[e]=[s])},kv:l,Rj:c,uD:u,nx:p,Wn:function(e){return b[e]},gL:function(e){delete g[e],delete m[e],delete b[e],delete w[e],delete C[e]},eV:function(){return M.EU()},l0:function(e,n){e.length>4?M.vwa(e,r):t.apply(null,e.concat(n))},m0:function(e){e.a=Array.prototype.slice.call(e.a),window.setTimeout((function(){r(e)}),0)},getOrigin:n,ko:function(e){var t=null,r=l(e);return r?t=r:(r=o(e))?t=r.origin:".."==e?t=E.parent:(e=document.getElementById(e))&&"iframe"===e.tagName.toLowerCase()&&(t=e.src),n(t)},init:function(){!1===M.init(r,e)&&(M=R),O?p(".."):_.hf.register("rpc",null,(function(e){d(e=e.rpc||{}),h(e)}))},BP:i,kca:o,zoa:"__ack",uta:T||"..",Eta:0,Dta:1,Cta:2}}(),_.Zf.init()),_.Zf.config({t1:function(e){throw Error("r`"+e)}}),_.w("gadgets.rpc.config",_.Zf.config),_.w("gadgets.rpc.register",_.Zf.register),_.w("gadgets.rpc.unregister",_.Zf.unregister),_.w("gadgets.rpc.registerDefault",_.Zf.r0),_.w("gadgets.rpc.unregisterDefault",_.Zf.H4),_.w("gadgets.rpc.forceParentVerifiable",_.Zf.iU),_.w("gadgets.rpc.call",_.Zf.call),_.w("gadgets.rpc.getRelayUrl",_.Zf.kv),_.w("gadgets.rpc.setRelayUrl",_.Zf.Rj),_.w("gadgets.rpc.setAuthToken",_.Zf.uD),_.w("gadgets.rpc.setupReceiver",_.Zf.nx),_.w("gadgets.rpc.getAuthToken",_.Zf.Wn),_.w("gadgets.rpc.removeReceiver",_.Zf.gL),_.w("gadgets.rpc.getRelayChannel",_.Zf.eV),_.w("gadgets.rpc.receive",_.Zf.l0),_.w("gadgets.rpc.receiveSameDomain",_.Zf.m0),_.w("gadgets.rpc.getOrigin",_.Zf.getOrigin),_.w("gadgets.rpc.getTargetOrigin",_.Zf.ko),_.Pg=function(){function e(e){var t=new _.Og;return t.Tx(e),t.Ti()}var t=window.crypto;if(t&&"function"==typeof t.getRandomValues)return function(){var e=new window.Uint32Array(1);return t.getRandomValues(e),Number("0."+e[0])};var r=_.$e("random/maxObserveMousemove");null==r&&(r=-1);var n=0,o=Math.random(),i=1,a=1e6*(screen.width*screen.width+screen.height),s=function(e){var t=(e=e||window.event).screenX+e.clientX<<16;t+=e.screenY+e.clientY,t*=(new Date).getTime()%1e6,i=i*t%a,r>0&&++n==r&&_.df.dla(s)};0!=r&&_.df.Gca(s);var l=e(document.cookie+"|"+document.location+"|"+(new Date).getTime()+"|"+o);return function(){var t=i;return t+=parseInt(l.substr(0,20),16),l=e(l),t/(a+12089258196146292e8)}}(),_.w("shindig.random",_.Pg),nm=function(){function e(e,t){return e=window.getComputedStyle(e,"").getPropertyValue(t).match(/^([0-9]+)/),parseInt(e[0],10)}for(var t=0,r=[document.body];r.length>0;){var n=r.shift(),o=n.childNodes;if(void 0!==n.style){var i=n.style.overflowY;if(i||(i=(i=document.defaultView.getComputedStyle(n,null))?i.overflowY:null),"visible"!=i&&"inherit"!=i&&((i=n.style.height)||(i=(i=document.defaultView.getComputedStyle(n,null))?i.height:""),i.length>0&&"auto"!=i))continue}for(n=0;n<o.length;n++){if(void 0!==(i=o[n]).offsetTop&&void 0!==i.offsetHeight){var a=i.offsetTop+i.offsetHeight+e(i,"margin-bottom");t=Math.max(t,a)}r.push(i)}}return t+e(document.body,"border-bottom")+e(document.body,"margin-bottom")+e(document.body,"padding-bottom")},_.om=function(){var e=0;self.innerHeight?e=self.innerHeight:document.documentElement&&document.documentElement.clientHeight?e=document.documentElement.clientHeight:document.body&&(e=document.body.clientHeight);var t=document.body,r=document.documentElement;if("CSS1Compat"===document.compatMode&&r.scrollHeight)return r.scrollHeight!==e?r.scrollHeight:r.offsetHeight;if(navigator.userAgent.indexOf("AppleWebKit")>=0)return nm();if(t&&r){var n=r.scrollHeight,o=r.offsetHeight;return r.clientHeight!==o&&(n=t.scrollHeight,o=t.offsetHeight),n>e?n>o?n:o:n<o?n:o}},_.ko={},window.iframer=_.ko,_.bb.Pa={},_.bb.Pa.Ki={},_.bb.Pa.Ki.Xca=function(e){try{return!!e.document}catch(e){}return!1},_.bb.Pa.Ki.pV=function(e){var t=e.parent;return e!=t&&_.bb.Pa.Ki.Xca(t)?_.bb.Pa.Ki.pV(t):e},_.bb.Pa.Ki.cya=function(e){var t=e.userAgent||"";return e=e.product||"",0!=t.indexOf("Opera")&&-1==t.indexOf("WebKit")&&"Gecko"==e&&t.indexOf("rv:1.")>0},_.bb.Pa.Ki.gw=function(e,t,r){for(var n=[],o=2,i=arguments.length;o<i;++o)n.push(arguments[o]);return function(){for(var r=n.slice(),o=0,i=arguments.length;o<i;++o)r.push(arguments[o]);return t.apply(e,r)}},rq=function(){_.Zf.register("_noop_echo",(function(){this.callback(_.bb.Tfa(_.bb.xm[this.f]))}))},sq=function(){window.setTimeout((function(){_.Zf.call("..","_noop_echo",_.bb.vka)}),0)},tq=function(e,t,r){var n=function(n){var o=Array.prototype.slice.call(arguments,0),i=o[o.length-1];if("function"==typeof i){var a=i;o.pop()}o.unshift(t,e,a,r),_.Zf.call.apply(_.Zf,o)};return n._iframe_wrapped_rpc_=!0,n},uq=function(e){return _.bb.JC[e]||(_.bb.JC[e]={},_.Zf.register(e,(function(t,r){var n=this.f;if("string"==typeof t&&!(t in{})&&!(n in{})){var o,i=this.callback,a=_.bb.JC[e][n];if(a&&Object.hasOwnProperty.call(a,t)?o=a[t]:Object.hasOwnProperty.call(_.bb.Zq,e)&&(o=_.bb.Zq[e]),o)return n=Array.prototype.slice.call(arguments,1),o._iframe_wrapped_rpc_&&i&&n.push(i),o.apply({},n)}return _.Uf.error(['Unregistered call in window "',window.name,'" for method "',e,'", via proxyId "',t,'" from frame "',n,'".'].join("")),null}))),_.bb.JC[e]},_.vq=function(){var e={},t=window.location.href,r=t.indexOf("?"),n=t.indexOf("#");t=(-1===n?t.substr(r+1):[t.substr(r+1,n-r-1),"&",t.substr(n+1)].join("")).split("&"),r=window.decodeURIComponent?decodeURIComponent:unescape,n=t.length;for(var o=0;o<n;++o){var i=t[o].indexOf("=");if(-1!==i){var a=t[o].substring(0,i);i=(i=t[o].substring(i+1)).replace(/\+/g," ");try{e[a]=r(i)}catch(e){}}}return e},_.wq=function(){return _.ze.location.origin||_.ze.location.protocol+"//"+_.ze.location.host},xq=function(e){_.Pe.h=e},yq=function(e){_.Pe.bsh=e},zq=function(e){var t=window.___jsl=window.___jsl||{};return t[e]=t[e]||[],t[e]},Aq=function(e){return"object"==typeof e&&/\[native code\]/.test(e.push)},Bq=function(e,t,r){if(t&&"object"==typeof t)for(var n in t)!Object.prototype.hasOwnProperty.call(t,n)||r&&"___goc"===n&&void 0===t[n]||(e[n]&&t[n]&&"object"==typeof e[n]&&"object"==typeof t[n]&&!Aq(e[n])&&!Aq(t[n])?Bq(e[n],t[n]):t[n]&&"object"==typeof t[n]?(e[n]=Aq(t[n])?[]:{},Bq(e[n],t[n])):e[n]=t[n])},Cq=function(){var e=window.location.hostname;return!!e&&/(^|\.)(2mdn|ampproject|android|appspot|blogger|blogspot|chrome|chromium|doubleclick|gcpnode|ggpht|gmail|google|google-analytics|googleadservices|googleapis|googleapis-cn|googleoptimize|googlers|googlesource|googlesyndication|googletagmanager|googletagservices|googleusercontent|googlevideo|gstatic|tiltbrush|waze|withgoogle|youtube|ytimg)(\.com?|\.net|\.org)?(\.[a-z][a-z]|\.cat)?$/.test(e)},Dq=function(e){try{var t=new Function("return ("+e+"\n)")()}catch(e){}if("object"==typeof t)return t;try{t=new Function("return ({"+e+"\n})")()}catch(e){}return t},Eq=function(e,t){if(e&&!/^\s+$/.test(e)){for(;0==e.charCodeAt(e.length-1);)e=e.substring(0,e.length-1);var r,n=e,o=zq("dm");o.push(20);try{var i=window.JSON.parse(e)}catch(e){}if("object"==typeof i)return o.push(21),i;try{i=window.JSON.parse("{"+e+"}")}catch(e){}if("object"==typeof i)return o.push(22),i;e=(e=(e=(e=(e=(e=e.replace(RegExp("([^\"',{}\\s]+?)\\s*:\\s*(.*?)[,}\\s]","g"),(function(e,t,r){return"%DOUBLE_QUOTE%"+t+"%DOUBLE_QUOTE%:"+(r=(r=r.startsWith('"')?"%DOUBLE_QUOTE%"+r.substring(1):r).endsWith('"')?r.slice(0,-1)+"%DOUBLE_QUOTE%":r)}))).replace(/\\'/g,"%SINGLE_QUOTE%")).replace(/"/g,'\\"')).replace(/'/g,'"')).replace(/%SINGLE_QUOTE%/g,"'")).replace(/%DOUBLE_QUOTE%/g,'"');try{i=window.JSON.parse(e)}catch(e){}if("object"==typeof i)return o.push(23),i;try{i=window.JSON.parse("{"+e+"}")}catch(e){}return"object"==typeof i?(o.push(24),i):((e=document.getElementsByTagName("script")||[]).length>0&&(r=e[0].nonce||e[0].getAttribute("nonce")),(r&&r===t||!r&&Cq())&&(i=Dq(n),o.push(25),"object"==typeof i)?i:{})}},Fq=function(e,t){var r={___goc:void 0};e.length&&e[e.length-1]&&Object.hasOwnProperty.call(e[e.length-1],"___goc")&&void 0===e[e.length-1].___goc&&(r=e.pop()),Bq(r,t),e.push(r)},_.Gq=function(e,t){var r;if("string"==typeof e){for(var n=r={},o=0,i=(e=e.split("/")).length;o<i-1;++o){var a={};n=n[e[o]]=a}n[e[o]]=t}else r=e;for(_.bi(!0),n=window.___gcfg,t=zq("cu"),e=window.___gu,n&&n!==e&&(Fq(t,n),window.___gu=n),n=zq("cu"),o=document.getElementsByTagName("script")||[],e=[],(i=[]).push.apply(i,zq("us")),a=0;a<o.length;++a)for(var s=o[a],l=0;l<i.length;++l)s.src&&0==s.src.indexOf(i[l])&&e.push(s);for(0==e.length&&o.length>0&&o[o.length-1].src&&e.push(o[o.length-1]),o=0;o<e.length;++o)e[o].getAttribute("gapi_processed")||(e[o].setAttribute("gapi_processed",!0),(i=e[o])?i=3==(a=i.nodeType)||4==a?i.nodeValue:i.textContent||"":i=void 0,a=e[o].nonce||e[o].getAttribute("nonce"),(i=Eq(i,a))&&n.push(i));for(r&&Fq(t,r),r=0,n=(e=zq("cd")).length;r<n;++r)Bq(_.bi(),e[r],!0);for(r=0,n=(e=zq("ci")).length;r<n;++r)Bq(_.bi(),e[r],!0);for(r=0,n=t.length;r<n;++r)Bq(_.bi(),t[r],!0)};var Hq,Iq=window.location.href,Jq=Iq.indexOf("?"),Kq=Iq.indexOf("#");Hq=(-1===Kq?Iq.substr(Jq+1):[Iq.substr(Jq+1,Kq-Jq-1),"&",Iq.substr(Kq+1)].join("")).split("&");for(var Lq=window.decodeURIComponent?decodeURIComponent:unescape,Mq=0,Nq=Hq.length;Mq<Nq;++Mq){var Oq=Hq[Mq].indexOf("=");if(-1!==Oq){Hq[Mq].substring(0,Oq);var Pq=Hq[Mq].substring(Oq+1);Pq=Pq.replace(/\+/g," ");try{Lq(Pq)}catch(a){}}}if(window.ToolbarApi)Qq=window.ToolbarApi,Qq.Oa=window.ToolbarApi.getInstance,Qq.prototype=window.ToolbarApi.prototype,_.g=Qq.prototype,_.g.openWindow=Qq.prototype.openWindow,_.g.dR=Qq.prototype.closeWindow,_.g.j2=Qq.prototype.setOnCloseHandler,_.g.MQ=Qq.prototype.canClosePopup,_.g.K0=Qq.prototype.resizeWindow;else{var Qq=function(){};Qq.Oa=function(){return!Rq&&window.external&&window.external.GTB_IsToolbar&&(Rq=new Qq),Rq},_.g=Qq.prototype,_.g.openWindow=function(e){return window.external.GTB_OpenPopup&&window.external.GTB_OpenPopup(e)},_.g.dR=function(e){window.external.GTB_ClosePopupWindow&&window.external.GTB_ClosePopupWindow(e)},_.g.j2=function(e,t){window.external.GTB_SetOnCloseHandler&&window.external.GTB_SetOnCloseHandler(e,t)},_.g.MQ=function(e){return window.external.GTB_CanClosePopup&&window.external.GTB_CanClosePopup(e)},_.g.K0=function(e,t){return window.external.GTB_ResizeWindow&&window.external.GTB_ResizeWindow(e,t)};var Rq=null;window.ToolbarApi=Qq,window.ToolbarApi.getInstance=Qq.Oa}var Sq=/^[-_.0-9A-Za-z]+$/,Tq={open:"open",onready:"ready",close:"close",onresize:"resize",onOpen:"open",onReady:"ready",onClose:"close",onResize:"resize",onRenderStart:"renderstart"},Uq={onBeforeParentOpen:"beforeparentopen"},Vq={onOpen:function(e){var t=e.wc();return e.eh(t.container||t.element),e},onClose:function(e){e.remove()}},Wq=function(){return _.bb.BW++,["I",_.bb.BW,"_",(new Date).getTime()].join("")},Xq,Yq,Zq,br,cr,dr,er,gr,fr;_.bb.bo=function(e){var t=_.Fe();return _.He(_.Zl,t),_.He(e,t),t},Xq=function(e){return e instanceof Array?e.join(","):e instanceof Object?_.Qf(e):e},Yq=function(e){var t=_.ci("googleapis.config/elog");if(t)try{t(e)}catch(e){}},Zq=function(e){e&&e.match(Sq)&&_.Gq("googleapis.config/gcv",e)},_.$q=function(e,t){for(var r in t=t||{},e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},_.ar=function(e,t,r,n,o){var i,a=[];for(i in e)if(e.hasOwnProperty(i)){var s=t,l=r,c=e[i],u=n,d=uq(i);d[s]=d[s]||{},u=_.bb.Pa.Ki.gw(u,c),c._iframe_wrapped_rpc_&&(u._iframe_wrapped_rpc_=!0),d[s][l]=u,a.push(i)}if(o)for(var h in _.bb.Zq)_.bb.Zq.hasOwnProperty(h)&&a.push(h);return a.join(",")},br=function(e,t,r){var n={};if(e&&e._methods){e=e._methods.split(",");for(var o=0;o<e.length;o++){var i=e[o];n[i]=tq(i,t,r)}}return n},cr=function(e){var t;e&&e.disableMultiLevelParentRelay?e=!1:((t=_.ko&&_.ko._open&&"inline"!=e.style&&!0!==e.inline)&&(t=!((e=e.container)&&("string"==typeof e&&document.getElementById(e)||document==(e.ownerDocument||e.document)))),e=t);return e},dr=function(e,t){var r={};for(var n in t=t.params||{},e)"#"==n.charAt(0)&&(r[n.substring(1)]=e[n]),0==n.indexOf("fr-")&&(r[n.substring(3)]=e[n]),"#"==t[n]&&(r[n]=e[n]);for(var o in r)delete e["fr-"+o],delete e["#"+o],delete e[o];return r},er=function(e){if(":"==e.charAt(0)){e="iframes/"+e.substring(1);var t=_.ci(e);return e={},_.He(t,e),(t=e.url)&&(e.url=_.km(t)),e.params||(e.params={}),e}return{url:_.km(e)}},gr=function(e){function t(){}t.prototype=fr.prototype,e.prototype=new t},fr=function(e,t,r,n,o,i,a,s){this.config=er(e),this.openParams=this.jC=t||{},this.params=r||{},this.methods=n,this.dE=!1,hr(this,t.style),this.callbacks={},ir(this,(function(){var e;if((e=this.jC.style)&&_.bb.xx[e]?e=_.bb.xx[e]:e?(_.Uf.warn(['Missing handler for style "',e,'". Continuing with default handler.'].join("")),e=null):e=Vq,e){if("function"==typeof e)var t=e(this);else{var r={};for(t in e){var n=e[t];r[t]="function"==typeof n?_.bb.Pa.Ki.gw(e,n,this):n}t=r}for(var a in o)"function"==typeof(e=t[a])&&jr(this,o[a],_.bb.Pa.Ki.gw(t,e))}i&&jr(this,"close",i)})),this.Kk=this.ac=a,this.xK=(s||[]).slice(),a&&this.xK.unshift(a.getId())},fr.prototype.wc=function(){return this.jC},fr.prototype.HH=function(){return this.params},fr.prototype.vA=function(){return this.methods},fr.prototype.ld=function(){return this.Kk};var hr=function(e,t){e.dE||((t=t&&!_.bb.xx[t]&&_.bb.rG[t])?(e.qG=[],t((function(){e.dE=!0;for(var t=e.qG.length,r=0;r<t;++r)e.qG[r].call(e)}))):e.dE=!0)},ir=function(e,t){e.dE?t.call(e):e.qG.push(t)};fr.prototype.Be=function(e,t){ir(this,(function(){jr(this,e,t)}))};var jr=function(e,t,r){e.callbacks[t]=e.callbacks[t]||[],e.callbacks[t].push(r)};fr.prototype.np=function(e,t){ir(this,(function(){var r=this.callbacks[e];if(r)for(var n=r.length,o=0;o<n;++o)if(r[o]===t){r.splice(o,1);break}}))},fr.prototype.bi=function(e,t){var r=this.callbacks[e];if(r)for(var n=Array.prototype.slice.call(arguments,1),o=r.length,i=0;i<o;++i)try{var a=r[i].apply({},n)}catch(t){_.Uf.error(['Exception when calling callback "',e,'" with exception "',t.name,": ",t.message,'".'].join("")),Yq(t)}return a};var kr=function(e){return"number"==typeof e?{value:e,bH:e+"px"}:"100%"==e?{value:100,bH:"100%",BX:!0}:null};fr.prototype.send=function(e,t,r){_.bb.z1(this,e,t,r)},fr.prototype.register=function(e,t){var r=this;r.Be(e,(function(e){t.call(r,e)}))};var lr=function(e,t,r,n,o,i,a){var s=this;fr.call(this,e,t,r,n,Tq,o,i,a),this.id=t.id||Wq(),this.Rw=t.rpctoken&&String(t.rpctoken)||Math.round(1e9*_.Hi()),this.Gha=dr(this.params,this.config),this.NG={},ir(this,(function(){s.bi("open"),_.$q(s.NG,s)}))};gr(lr),_.g=lr.prototype,_.g.eh=function(e,t){if(!this.config.url)return _.Uf.error("Cannot open iframe, empty URL."),this;var r=this.id;_.bb.xm[r]=this;var n=_.$q(this.methods);n._ready=this.iC,n._close=this.close,n._open=this.ZZ,n._resizeMe=this.L0,n._renderstart=this.TZ;var o=this.Gha;if(this.Rw&&(o.rpctoken=this.Rw),o._methods=_.ar(n,r,"",this,!0),this.el=e="string"==typeof e?document.getElementById(e):e,n={id:r},t){n.attributes=t;var i=t.style;if("string"==typeof i){if(i){for(var a=[],s=(i=i.split(";")).length,l=0;l<s;++l){var c=i[l];0==c.length&&l+1==s||(2==(c=c.split(":")).length&&c[0].match(/^[ a-zA-Z_-]+$/)&&c[1].match(/^[ +.%0-9a-zA-Z_-]+$/)?a.push(c.join(":")):_.Uf.error(['Iframe style "',i[l],'" not allowed.'].join("")))}a=a.join(";")}else a="";t.style=a}}return this.wc().allowPost&&(n.allowPost=!0),this.wc().forcePost&&(n.forcePost=!0),n.queryParams=this.params,n.fragmentParams=o,n.paramsSerializer=Xq,this.fi=_.mm(this.config.url,e,n),e=this.fi.getAttribute("data-postorigin")||this.fi.src,_.bb.xm[r]=this,_.Zf.uD(this.id,this.Rw),_.Zf.Rj(this.id,e),this},_.g.Oh=function(e,t){this.NG[e]=t},_.g.getId=function(){return this.id},_.g.getIframeEl=function(){return this.fi},_.g.getSiteEl=function(){return this.el},_.g.setSiteEl=function(e){this.el=e},_.g.iC=function(e){var t=br(e,this.id,"");this.Kk&&"function"==typeof this.methods._ready&&(e._methods=_.ar(t,this.Kk.getId(),this.id,this,!1),this.methods._ready(e)),_.$q(e,this),_.$q(t,this),this.bi("ready",e)},_.g.TZ=function(e){this.bi("renderstart",e)},_.g.close=function(e){return e=this.bi("close",e),delete _.bb.xm[this.id],e},_.g.remove=function(){var e=document.getElementById(this.id);e&&e.parentNode&&e.parentNode.removeChild(e)},_.g.ZZ=function(e){var t=br(e.params,this.id,e.proxyId);if(delete e.params._methods,"_parent"==e.openParams.anchor&&(e.openParams.anchor=this.el),cr(e.openParams))new mr(e.url,e.openParams,e.params,t,t._onclose,this,e.openedByProxyChain);else{var r=new lr(e.url,e.openParams,e.params,t,t._onclose,this,e.openedByProxyChain),n=this;ir(r,(function(){var e={childId:r.getId()},o=r.NG;o._toclose=r.close,e._methods=_.ar(o,n.id,r.id,r,!1),t._onopen(e)}))}},_.g.L0=function(e){if(void 0===this.bi("resize",e)&&this.fi){var t=kr(e.width);null!=t&&(this.fi.style.width=t.bH),null!=(e=kr(e.height))&&(this.fi.style.height=e.bH),this.fi.parentElement&&(null!=t&&t.BX||null!=e&&e.BX)&&(this.fi.parentElement.style.display="block")}};var mr=function(e,t,r,n,o,i,a){var s=this;fr.call(this,e,t,r,n,Uq,o,i,a),this.url=e,this.Op=null,this.QK=Wq(),ir(this,(function(){s.bi("beforeparentopen");var e=_.$q(s.methods);for(var t in e._onopen=s.nka,e._ready=s.iC,e._onclose=s.lka,s.params._methods=_.ar(e,"..",s.QK,s,!0),e={},s.params)e[t]=Xq(s.params[t]);_.ko._open({url:s.config.url,openParams:s.jC,params:e,proxyId:s.QK,openedByProxyChain:s.xK})}))};gr(mr),mr.prototype.ega=function(){return this.Op},mr.prototype.nka=function(e){this.Op=e.childId;var t=br(e,"..",this.Op);_.$q(t,this),this.close=t._toclose,_.bb.xm[this.Op]=this,this.Kk&&this.methods._onopen&&(e._methods=_.ar(t,this.Kk.getId(),this.Op,this,!1),this.methods._onopen(e))},mr.prototype.iC=function(e){var t=String(this.Op),r=br(e,"..",t);_.$q(e,this),_.$q(r,this),this.bi("ready",e),this.Kk&&this.methods._ready&&(e._methods=_.ar(r,this.Kk.getId(),t,this,!1),this.methods._ready(e))},mr.prototype.lka=function(e){if(!this.Kk||!this.methods._onclose)return e=this.bi("close",e),delete _.bb.xm[this.Op],e;this.methods._onclose(e)};var nr=function(e,t,r,n,o,i,a){fr.call(this,e,t,r,n,Uq,i,a),this.id=t.id||Wq(),this.Pna=o,n._close=this.close,this.onClosed=this.MZ,this.m5=0,ir(this,(function(){this.bi("beforeparentopen");var t=_.$q(this.methods);this.params._methods=_.ar(t,"..",this.QK,this,!0),(t={}).queryParams=this.params,e=_.dm(_.Ae,this.config.url,this.id,t);var r=o.openWindow(e);this.canAutoClose=function(e){e(o.MQ(r))},o.j2(r,this),this.m5=r}))},sh,Hh,Ih,Kh,bj,hj,lj;gr(nr),nr.prototype.close=function(e){return e=this.bi("close",e),this.Pna.dR(this.m5),e},nr.prototype.MZ=function(){this.bi("close")},_.ko.send=function(e,t,r){_.bb.z1(_.ko,e,t,r)},function(){function e(e){return _.bb.xx[e]}function t(e,t){_.bb.xx[e]=t}function r(e){"auto"===(e=e||{}).height&&(e.height=_.om());var t=window&&Qq&&Qq.Oa();t?t.K0(e.width||0,e.height||0):_.ko&&_.ko._resizeMe&&_.ko._resizeMe(e)}function n(e){Zq(e)}if(_.bb.xm={},_.bb.xx={},_.bb.rG={},_.bb.BW=0,_.bb.JC={},_.bb.Zq={},_.bb.tC=null,_.bb.sC=[],_.bb.vka=function(e){var t=!1;try{if(null!=e){var r=window.parent.frames[e.id];t=r.iframer.id==e.id&&r.iframes.openedId_(_.ko.id)}}catch(e){}try{for(_.bb.tC={origin:this.origin,referer:this.referer,claimedOpenerId:e&&e.id,claimedOpenerProxyChain:e&&e.proxyChain||[],sameOrigin:t},e=0;e<_.bb.sC.length;++e)_.bb.sC[e](_.bb.tC);_.bb.sC=[]}catch(e){Yq(e)}},_.bb.Tfa=function(e){var t=e&&e.Kk,r=null;return t&&((r={}).id=t.getId(),r.proxyChain=e.xK),r},rq(),window.parent!=window){var o=_.vq();o.gcv&&Zq(o.gcv);var i=o.jsh;i&&xq(i),_.$q(br(o,"..",""),_.ko),_.$q(o,_.ko),sq()}_.bb.yb=e,_.bb.Oc=t,_.bb.Jma=n,_.bb.resize=r,_.bb.nfa=function(e){return _.bb.rG[e]},_.bb.ZL=function(e,t){_.bb.rG[e]=t},_.bb.J0=r,_.bb.ena=n,_.bb.TA={},_.bb.TA.get=e,_.bb.TA.set=t,_.bb.allow=function(e,t){uq(e),_.bb.Zq[e]=t||window[e]},_.bb.dxa=function(e){delete _.bb.Zq[e]},_.bb.open=function(e,t,r,n,o,i){3==arguments.length?n={}:4==arguments.length&&"function"==typeof n&&(o=n,n={});var a="bubble"===t.style&&Qq?Qq.Oa():null;return a?new nr(e,t,r,n,a,o,i):cr(t)?new mr(e,t,r,n,o,i):new lr(e,t,r,n,o,i)},_.bb.close=function(e,t){_.ko&&_.ko._close&&_.ko._close(e,t)},_.bb.ready=function(e,t,r){2==arguments.length&&"function"==typeof t&&(r=t,t={});var n=e||{};"height"in n||(n.height=_.om()),n._methods=_.ar(t||{},"..","",_.ko,!0),_.ko&&_.ko._ready&&_.ko._ready(n,r)},_.bb.bV=function(e){_.bb.tC?e(_.bb.tC):_.bb.sC.push(e)},_.bb.pka=function(e){return!!_.bb.xm[e]},_.bb.yfa=function(){return["https://ssl.gstatic.com/gb/js/",_.ci("googleapis.config/gcv")].join("")},_.bb.W_=function(e){var t={mouseover:1,mouseout:1};if(_.ko._event)for(var r=0;r<e.length;r++){var n=e[r];n in t&&document.addEventListener(n,(function(e){_.ko._event({event:e.type,timestamp:(new Date).getTime()})}),!0)}},_.bb.z1=function(e,t,r,n){var o=this,i=[];void 0!==r&&i.push(r),n&&i.push((function(e){n.call(o,[e])})),e[t]&&e[t].apply(e,i)},_.bb.CROSS_ORIGIN_IFRAMES_FILTER=function(){return!0},_.bb.Wca=function(e,t,r){var n=Array.prototype.slice.call(arguments);_.bb.bV((function(e){e.sameOrigin&&(n.unshift("/"+e.claimedOpenerId+"|"+window.location.protocol+"//"+window.location.host),_.Zf.call.apply(_.Zf,n))}))},_.bb.Zka=function(e,t){_.Zf.register(e,t)},_.bb.Qma=xq,_.bb.K1=yq,_.bb.DY=Yq,_.bb.DW=_.ko}(),_.w("iframes.allow",_.bb.allow),_.w("iframes.callSiblingOpener",_.bb.Wca),_.w("iframes.registerForOpenedSibling",_.bb.Zka),_.w("iframes.close",_.bb.close),_.w("iframes.getGoogleConnectJsUri",_.bb.yfa),_.w("iframes.getHandler",_.bb.yb),_.w("iframes.getDeferredHandler",_.bb.nfa),_.w("iframes.getParentInfo",_.bb.bV),_.w("iframes.iframer",_.bb.DW),_.w("iframes.open",_.bb.open),_.w("iframes.openedId_",_.bb.pka),_.w("iframes.propagate",_.bb.W_),_.w("iframes.ready",_.bb.ready),_.w("iframes.resize",_.bb.resize),_.w("iframes.setGoogleConnectJsVersion",_.bb.Jma),_.w("iframes.setBootstrapHint",_.bb.K1),_.w("iframes.setJsHint",_.bb.Qma),_.w("iframes.setHandler",_.bb.Oc),_.w("iframes.setDeferredHandler",_.bb.ZL),_.w("IframeBase",fr),_.w("IframeBase.prototype.addCallback",fr.prototype.Be),_.w("IframeBase.prototype.getMethods",fr.prototype.vA),_.w("IframeBase.prototype.getOpenerIframe",fr.prototype.ld),_.w("IframeBase.prototype.getOpenParams",fr.prototype.wc),_.w("IframeBase.prototype.getParams",fr.prototype.HH),_.w("IframeBase.prototype.removeCallback",fr.prototype.np),_.w("Iframe",lr),_.w("Iframe.prototype.close",lr.prototype.close),_.w("Iframe.prototype.exposeMethod",lr.prototype.Oh),_.w("Iframe.prototype.getId",lr.prototype.getId),_.w("Iframe.prototype.getIframeEl",lr.prototype.getIframeEl),_.w("Iframe.prototype.getSiteEl",lr.prototype.getSiteEl),_.w("Iframe.prototype.openInto",lr.prototype.eh),_.w("Iframe.prototype.remove",lr.prototype.remove),_.w("Iframe.prototype.setSiteEl",lr.prototype.setSiteEl),_.w("Iframe.prototype.addCallback",lr.prototype.Be),_.w("Iframe.prototype.getMethods",lr.prototype.vA),_.w("Iframe.prototype.getOpenerIframe",lr.prototype.ld),_.w("Iframe.prototype.getOpenParams",lr.prototype.wc),_.w("Iframe.prototype.getParams",lr.prototype.HH),_.w("Iframe.prototype.removeCallback",lr.prototype.np),_.w("IframeProxy",mr),_.w("IframeProxy.prototype.getTargetIframeId",mr.prototype.ega),_.w("IframeProxy.prototype.addCallback",mr.prototype.Be),_.w("IframeProxy.prototype.getMethods",mr.prototype.vA),_.w("IframeProxy.prototype.getOpenerIframe",mr.prototype.ld),_.w("IframeProxy.prototype.getOpenParams",mr.prototype.wc),_.w("IframeProxy.prototype.getParams",mr.prototype.HH),_.w("IframeProxy.prototype.removeCallback",mr.prototype.np),_.w("IframeWindow",nr),_.w("IframeWindow.prototype.close",nr.prototype.close),_.w("IframeWindow.prototype.onClosed",nr.prototype.MZ),_.w("iframes.util.getTopMostAccessibleWindow",_.bb.Pa.Ki.pV),_.w("iframes.handlers.get",_.bb.TA.get),_.w("iframes.handlers.set",_.bb.TA.set),_.w("iframes.resizeMe",_.bb.J0),_.w("iframes.setVersionOverride",_.bb.ena),_.w("iframes.CROSS_ORIGIN_IFRAMES_FILTER",_.bb.CROSS_ORIGIN_IFRAMES_FILTER),_.w("IframeBase.prototype.send",fr.prototype.send),_.w("IframeBase.prototype.register",fr.prototype.register),_.w("Iframe.prototype.send",lr.prototype.send),_.w("Iframe.prototype.register",lr.prototype.register),_.w("IframeProxy.prototype.send",mr.prototype.send),_.w("IframeProxy.prototype.register",mr.prototype.register),_.w("IframeWindow.prototype.send",nr.prototype.send),_.w("IframeWindow.prototype.register",nr.prototype.register),_.w("iframes.iframer.send",_.bb.DW.send),_.rh=function(e){_.fb.setTimeout((function(){throw e}),0)},sh=0,_.th=function(e){return Object.prototype.hasOwnProperty.call(e,_.ib)&&e[_.ib]||(e[_.ib]=++sh)},_.uh=function(){return _.Sc("Safari")&&!(_.ad()||!_.Uc()&&_.Sc("Coast")||_.Vc()||_.Xc()||_.Yc()||_.Zc()||_.$c()||_.Sc("Silk")||_.Sc("Android"))},_.vh=function(){return _.Sc("Android")&&!(_.ad()||_.$c()||_.Vc()||_.Sc("Silk"))},_.wh=_.$c(),_.xh=_.fd()||_.Sc("iPod"),_.yh=_.Sc("iPad"),_.zh=_.vh(),_.Ah=_.ad(),_.Bh=_.uh()&&!_.gd(),_.Ch=function(e,t){for(var r=1;r<arguments.length;r++){var n=arguments[r];if(_.qd(n)){var o=e.length||0,i=n.length||0;e.length=o+i;for(var a=0;a<i;a++)e[o+a]=n[a]}else e.push(n)}},_.Dh=function(e,t){t=t||e;for(var r=0,n=0,o={};n<e.length;){var i=e[n++],a=_.xb(i)?"o"+_.th(i):(typeof i).charAt(0)+i;Object.prototype.hasOwnProperty.call(o,a)||(o[a]=!0,t[r++]=i)}t.length=r},_.Eh=function(e){for(var t in e)return!1;return!0},_.Fh=function(e,t){e.src=_.oc(t),(t=_.Nc("script",e.ownerDocument))&&e.setAttribute("nonce",t)},_.Gh=function(e){for(var t=[],r=0,n=0;n<e.length;n++){var o=e.charCodeAt(n);o>255&&(t[r++]=255&o,o>>=8),t[r++]=o}return t},_.Jh=function(e,t){void 0===t&&(t=0),Hh(),t=Ih[t];for(var r=Array(Math.floor(e.length/3)),n=t[64]||"",o=0,i=0;o<e.length-2;o+=3){var a=e[o],s=e[o+1],l=e[o+2],c=t[a>>2];a=t[(3&a)<<4|s>>4],s=t[(15&s)<<2|l>>6],l=t[63&l],r[i++]=c+a+s+l}switch(c=0,l=n,e.length-o){case 2:l=t[(15&(c=e[o+1]))<<2]||n;case 1:e=e[o],r[i]=t[e>>2]+t[(3&e)<<4|c>>4]+l+n}return r.join("")},_.Lh=function(e,t){function r(t){for(;n<e.length;){var r=e.charAt(n++),o=Kh[r];if(null!=o)return o;if(!_.Gc(r))throw Error("w`"+r)}return t}Hh();for(var n=0;;){var o=r(-1),i=r(0),a=r(64),s=r(64);if(64===s&&-1===o)break;t(o<<2|i>>4),64!=a&&(t(i<<4&240|a>>2),64!=s&&t(a<<6&192|s))}},Hh=function(){if(!Kh){Kh={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],r=0;r<5;r++){var n=e.concat(t[r].split(""));Ih[r]=n;for(var o=0;o<n.length;o++){var i=n[o];void 0===Kh[i]&&(Kh[i]=o)}}}},Ih={},Kh=null,_.Mh=_.Ed||_.Fd||!_.Bh&&"function"==typeof _.fb.atob,_.Nh=function(e){var t,r=[],n=0;for(t in e)r[n++]=t;return r},_.Oh=function(e,t,r,n,o,i,a){var s="";return e&&(s+=e+":"),r&&(s+="//",t&&(s+=t+"@"),s+=r,n&&(s+=":"+n)),o&&(s+=o),i&&(s+="?"+i),a&&(s+="#"+a),s},_.Ph=function(e,t){if(!t)return e;var r=e.indexOf("#");r<0&&(r=e.length);var n=e.indexOf("?");if(n<0||n>r){n=r;var o=""}else o=e.substring(n+1,r);return r=(e=[e.slice(0,n),o,e.slice(r)])[1],e[1]=t?r?r+"&"+t:t:r,e[0]+(e[1]?"?"+e[1]:"")+e[2]},_.Qh=function(e,t,r){if(Array.isArray(t))for(var n=0;n<t.length;n++)_.Qh(e,String(t[n]),r);else null!=t&&r.push(e+(""===t?"":"="+encodeURIComponent(String(t))))},_.Rh=function(e){var t,r=[];for(t in e)_.Qh(t,e[t],r);return r.join("&")},_.Sh=function(e,t){return t=_.Rh(t),_.Ph(e,t)},_.Th=function(e){return null==e?"":String(e)},_.Uh=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),_.Xi=function(e){e&&"function"==typeof e.dispose&&e.dispose()},_.Yi=function(){this.Mg=this.Mg,this.Wo=this.Wo},_.Yi.prototype.Mg=!1,_.Yi.prototype.isDisposed=function(){return this.Mg},_.Yi.prototype.dispose=function(){this.Mg||(this.Mg=!0,this.wa())},_.Yi.prototype[Symbol.dispose]=function(){this.dispose()},_.$i=function(e,t){_.Zi(e,_.kb(_.Xi,t))},_.Zi=function(e,t){e.Mg?t():(e.Wo||(e.Wo=[]),e.Wo.push(t))},_.Yi.prototype.wa=function(){if(this.Wo)for(;this.Wo.length;)this.Wo.shift()()},_.aj=function(e,t){var r;return(r=(t=(0,_.tb)(e,t))>=0)&&Array.prototype.splice.call(e,t,1),r},_.cj=function(e,t){for(var r,n,o=1;o<arguments.length;o++){for(r in n=arguments[o])e[r]=n[r];for(var i=0;i<bj.length;i++)r=bj[i],Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}},bj="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),_.dj=[],_.ej=[],_.fj=!1,_.gj=function(e){if(_.dj[_.dj.length]=e,_.fj)for(var t=0;t<_.ej.length;t++)e((0,_.Db)(_.ej[t].wrap,_.ej[t]))},hj=function(e,t){for(var r in e)if(t.call(void 0,e[r],r,e))return!0;return!1},_.jj=function(e,t){_.ij.call(this,e?e.type:""),this.relatedTarget=this.currentTarget=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0,this.key="",this.charCode=this.keyCode=0,this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.IK=!1,this.pointerId=0,this.pointerType="",this.timeStamp=0,this.Bf=null,e&&this.init(e,t)},lj=function(e,t,r,n,o){this.listener=e,this.proxy=null,this.src=t,this.type=r,this.capture=!!n,this.Hf=o,this.key=++kj,this.Kw=this.Uy=!1},_.mj=function(e){this.src=e,this.ne={},this.Ox=0},_.ij=function(e,t){this.type="function"==typeof _.nj&&e instanceof _.nj?String(e):e,this.currentTarget=this.target=t,this.defaultPrevented=this.Fw=!1},_.ij.prototype.stopPropagation=function(){this.Fw=!0},_.ij.prototype.preventDefault=function(){this.defaultPrevented=!0},_.qb(_.jj,_.ij),_.jj.prototype.init=function(e,t){var r=this.type=e.type,n=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;this.target=e.target||e.srcElement,this.currentTarget=t,(t=e.relatedTarget)||("mouseover"==r?t=e.fromElement:"mouseout"==r&&(t=e.toElement)),this.relatedTarget=t,n?(this.clientX=void 0!==n.clientX?n.clientX:n.pageX,this.clientY=void 0!==n.clientY?n.clientY:n.pageY,this.screenX=n.screenX||0,this.screenY=n.screenY||0):(this.offsetX=_.Fd||void 0!==e.offsetX?e.offsetX:e.layerX,this.offsetY=_.Fd||void 0!==e.offsetY?e.offsetY:e.layerY,this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.keyCode=e.keyCode||0,this.key=e.key||"",this.charCode=e.charCode||("keypress"==r?e.keyCode:0),this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.IK=_.Hd?e.metaKey:e.ctrlKey,this.pointerId=e.pointerId||0,this.pointerType=e.pointerType,this.state=e.state,this.timeStamp=e.timeStamp,this.Bf=e,e.defaultPrevented&&_.jj.N.preventDefault.call(this)},_.jj.prototype.stopPropagation=function(){_.jj.N.stopPropagation.call(this),this.Bf.stopPropagation?this.Bf.stopPropagation():this.Bf.cancelBubble=!0},_.jj.prototype.preventDefault=function(){_.jj.N.preventDefault.call(this);var e=this.Bf;e.preventDefault?e.preventDefault():e.returnValue=!1},_.oj="closure_listenable_"+(1e6*Math.random()|0),_.pj=function(e){return!(!e||!e[_.oj])};var kj=0,qj=function(e){e.Kw=!0,e.listener=null,e.proxy=null,e.src=null,e.Hf=null};_.mj.prototype.add=function(e,t,r,n,o){var i=e.toString();(e=this.ne[i])||(e=this.ne[i]=[],this.Ox++);var a=rj(e,t,n,o);return a>-1?(t=e[a],r||(t.Uy=!1)):((t=new lj(t,this.src,i,!!n,o)).Uy=r,e.push(t)),t},_.mj.prototype.remove=function(e,t,r,n){if(!((e=e.toString())in this.ne))return!1;var o=this.ne[e];return(t=rj(o,t,r,n))>-1&&(qj(o[t]),Array.prototype.splice.call(o,t,1),0==o.length&&(delete this.ne[e],this.Ox--),!0)},_.sj=function(e,t){var r=t.type;if(!(r in e.ne))return!1;var n=_.aj(e.ne[r],t);return n&&(qj(t),0==e.ne[r].length&&(delete e.ne[r],e.Ox--)),n},_.mj.prototype.removeAll=function(e){e=e&&e.toString();var t,r=0;for(t in this.ne)if(!e||t==e){for(var n=this.ne[t],o=0;o<n.length;o++)++r,qj(n[o]);delete this.ne[t],this.Ox--}return r},_.mj.prototype.Pq=function(e,t,r,n){var o=-1;return(e=this.ne[e.toString()])&&(o=rj(e,t,r,n)),o>-1?e[o]:null},_.mj.prototype.hasListener=function(e,t){var r=void 0!==e,n=r?e.toString():"",o=void 0!==t;return hj(this.ne,(function(e){for(var i=0;i<e.length;++i)if(!(r&&e[i].type!=n||o&&e[i].capture!=t))return!0;return!1}))};var rj=function(e,t,r,n){for(var o=0;o<e.length;++o){var i=e[o];if(!i.Kw&&i.listener==t&&i.capture==!!r&&i.Hf==n)return o}return-1},tj,uj,vj,zj,Bj,Cj,Dj,Fj,bk;tj="closure_lm_"+(1e6*Math.random()|0),uj={},vj=0,_.xj=function(e,t,r,n,o){if(n&&n.once)return _.wj(e,t,r,n,o);if(Array.isArray(t)){for(var i=0;i<t.length;i++)_.xj(e,t[i],r,n,o);return null}return r=_.yj(r),_.pj(e)?e.ua(t,r,_.xb(n)?!!n.capture:!!n,o):zj(e,t,r,!1,n,o)},zj=function(e,t,r,n,o,i){if(!t)throw Error("B");var a=_.xb(o)?!!o.capture:!!o,s=_.Aj(e);if(s||(e[tj]=s=new _.mj(e)),(r=s.add(t,r,n,a,i)).proxy)return r;if(n=Bj(),r.proxy=n,n.src=e,n.listener=r,e.addEventListener)_.ti||(o=a),void 0===o&&(o=!1),e.addEventListener(t.toString(),n,o);else if(e.attachEvent)e.attachEvent(Cj(t.toString()),n);else{if(!e.addListener||!e.removeListener)throw Error("C");e.addListener(n)}return vj++,r},Bj=function(){var e=Dj,t=function(r){return e.call(t.src,t.listener,r)};return t},_.wj=function(e,t,r,n,o){if(Array.isArray(t)){for(var i=0;i<t.length;i++)_.wj(e,t[i],r,n,o);return null}return r=_.yj(r),_.pj(e)?e.Gr(t,r,_.xb(n)?!!n.capture:!!n,o):zj(e,t,r,!0,n,o)},_.Ej=function(e){if("number"==typeof e||!e||e.Kw)return!1;var t=e.src;if(_.pj(t))return t.nO(e);var r=e.type,n=e.proxy;return t.removeEventListener?t.removeEventListener(r,n,e.capture):t.detachEvent?t.detachEvent(Cj(r),n):t.addListener&&t.removeListener&&t.removeListener(n),vj--,(r=_.Aj(t))?(_.sj(r,e),0==r.Ox&&(r.src=null,t[tj]=null)):qj(e),!0},Cj=function(e){return e in uj?uj[e]:uj[e]="on"+e},Dj=function(e,t){if(e.Kw)e=!0;else{t=new _.jj(t,this);var r=e.listener,n=e.Hf||e.src;e.Uy&&_.Ej(e),e=r.call(n,t)}return e},_.Aj=function(e){return(e=e[tj])instanceof _.mj?e:null},Fj="__closure_events_fn_"+(1e9*Math.random()>>>0),_.yj=function(e){return"function"==typeof e?e:(e[Fj]||(e[Fj]=function(t){return e.handleEvent(t)}),e[Fj])},_.gj((function(e){Dj=e(Dj)})),_.Gj=function(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)==r},_.Hj=function(){_.Yi.call(this),this.tk=new _.mj(this),this.sca=this,this.CK=null},_.ae.prototype.U=_.rb(5,(function(e){return _.de(this.Ub,e)})),_.Ij=function(e,t,r,n,o){if(Array.isArray(t))for(var i=0;i<t.length;i++)_.Ij(e,t[i],r,n,o);else n=_.xb(n)?!!n.capture:!!n,r=_.yj(r),_.pj(e)?e.zc(t,r,n,o):e&&(e=_.Aj(e))&&(t=e.Pq(t,r,n,o))&&_.Ej(t)},_.qb(_.Hj,_.Yi),_.Hj.prototype[_.oj]=!0,_.g=_.Hj.prototype,_.g.ho=function(){return this.CK},_.g.ID=function(e){this.CK=e},_.g.addEventListener=function(e,t,r,n){_.xj(this,e,t,r,n)},_.g.removeEventListener=function(e,t,r,n){_.Ij(this,e,t,r,n)},_.g.dispatchEvent=function(e){var t,r=this.ho();if(r)for(t=[];r;r=r.ho())t.push(r);r=this.sca;var n,o=e.type||e;if("string"==typeof e)e=new _.ij(e,r);else if(e instanceof _.ij)e.target=e.target||r;else{var i=e;e=new _.ij(o,r),_.cj(e,i)}if(i=!0,t)for(n=t.length-1;!e.Fw&&n>=0;n--){var a=e.currentTarget=t[n];i=a.Gu(o,!0,e)&&i}if(e.Fw||(i=(a=e.currentTarget=r).Gu(o,!0,e)&&i,e.Fw||(i=a.Gu(o,!1,e)&&i)),t)for(n=0;!e.Fw&&n<t.length;n++)i=(a=e.currentTarget=t[n]).Gu(o,!1,e)&&i;return i},_.g.wa=function(){_.Hj.N.wa.call(this),this.fL(),this.CK=null},_.g.ua=function(e,t,r,n){return this.tk.add(String(e),t,!1,r,n)},_.g.Gr=function(e,t,r,n){return this.tk.add(String(e),t,!0,r,n)},_.g.zc=function(e,t,r,n){return this.tk.remove(String(e),t,r,n)},_.g.nO=function(e){return _.sj(this.tk,e)},_.g.fL=function(){this.tk&&this.tk.removeAll(void 0)},_.g.Gu=function(e,t,r){if(!(e=this.tk.ne[String(e)]))return!0;e=e.concat();for(var n=!0,o=0;o<e.length;++o){var i=e[o];if(i&&!i.Kw&&i.capture==t){var a=i.listener,s=i.Hf||i.src;i.Uy&&this.nO(i),n=!1!==a.call(s,r)&&n}}return n&&!r.defaultPrevented},_.g.Pq=function(e,t,r,n){return this.tk.Pq(String(e),t,r,n)},_.g.hasListener=function(e,t){return this.tk.hasListener(void 0!==e?String(e):void 0,t)},_.Xj=function(e){var t,r={};for(t in e)r[t]=e[t];return r},bk=function(){for(var e;e=Yj.remove();){try{e.Qh.call(e.scope)}catch(e){_.rh(e)}Zj.put(e)}ak=!1},_.ck=function(e){if(!(e instanceof Array)){e=_.Ea(e);for(var t,r=[];!(t=e.next()).done;)r.push(t.value);e=r}return e},_.dk=function(){},_.ek=function(e){e.prototype.$goog_Thenable=!0},_.fk=function(e){if(!e)return!1;try{return!!e.$goog_Thenable}catch(e){return!1}},_.gk="undefined"!=typeof AsyncContext&&"function"==typeof AsyncContext.Snapshot?function(e){return e&&AsyncContext.Snapshot.wrap(e)}:function(e){return e};var hk=function(e,t){this.Lda=e,this.vla=t,this.dC=0,this.aB=null};hk.prototype.get=function(){if(this.dC>0){this.dC--;var e=this.aB;this.aB=e.next,e.next=null}else e=this.Lda();return e},hk.prototype.put=function(e){this.vla(e),this.dC<100&&(this.dC++,e.next=this.aB,this.aB=e)},_.ik=function(e){return e},_.gj((function(e){_.ik=e}));var jk=function(){this.EE=this.kt=null};jk.prototype.add=function(e,t){var r=Zj.get();r.set(e,t),this.EE?this.EE.next=r:this.kt=r,this.EE=r},jk.prototype.remove=function(){var e=null;return this.kt&&(e=this.kt,this.kt=this.kt.next,this.kt||(this.EE=null),e.next=null),e};var Zj=new hk((function(){return new kk}),(function(e){return e.reset()})),kk=function(){this.next=this.scope=this.Qh=null},lk,ak,Yj,mk,qk,rk,sk,Gk,Kk,Ik,Lk;kk.prototype.set=function(e,t){this.Qh=e,this.scope=t,this.next=null},kk.prototype.reset=function(){this.next=this.scope=this.Qh=null},ak=!1,Yj=new jk,_.nk=function(e,t){lk||mk(),ak||(lk(),ak=!0),Yj.add(e,t)},mk=function(){var e=Promise.resolve(void 0);lk=function(){e.then(bk)}},_.pk=function(e,t){if(this.Ea=0,this.nf=void 0,this.nq=this.Gl=this.Jb=null,this.PA=this.MG=!1,e!=_.dk)try{var r=this;e.call(t,(function(e){ok(r,2,e)}),(function(e){ok(r,3,e)}))}catch(e){ok(this,3,e)}},qk=function(){this.next=this.context=this.Rr=this.ow=this.Fn=null,this.yy=!1},qk.prototype.reset=function(){this.context=this.Rr=this.ow=this.Fn=null,this.yy=!1},rk=new hk((function(){return new qk}),(function(e){e.reset()})),sk=function(e,t,r){var n=rk.get();return n.ow=e,n.Rr=t,n.context=r,n},_.tk=function(e){if(e instanceof _.pk)return e;var t=new _.pk(_.dk);return ok(t,2,e),t},_.uk=function(e){return new _.pk((function(t,r){r(e)}))},_.wk=function(e,t,r){vk(e,t,r,null)||_.nk(_.kb(t,e))},_.xk=function(e){return new _.pk((function(t,r){var n=e.length,o=[];if(n)for(var i,a=function(e,r){n--,o[e]=r,0==n&&t(o)},s=function(e){r(e)},l=0;l<e.length;l++)i=e[l],_.wk(i,_.kb(a,l),s);else t(o)}))},_.zk=function(){var e,t,r=new _.pk((function(r,n){e=r,t=n}));return new yk(r,e,t)},_.pk.prototype.then=function(e,t,r){return Ak(this,(0,_.gk)("function"==typeof e?e:null),(0,_.gk)("function"==typeof t?t:null),r)},_.ek(_.pk);var Ck=function(e,t,r,n){Bk(e,sk(t||_.dk,r||null,n))};_.pk.prototype.finally=function(e){var t=this;return e=(0,_.gk)(e),new _.pk((function(r,n){Ck(t,(function(t){e(),r(t)}),(function(t){e(),n(t)}))}))},_.pk.prototype.iE=function(e,t){return Ak(this,null,(0,_.gk)(e),t)},_.pk.prototype.catch=_.pk.prototype.iE,_.pk.prototype.cancel=function(e){if(0==this.Ea){var t=new _.Dk(e);_.nk((function(){Ek(this,t)}),this)}};var Ek=function(e,t){if(0==e.Ea)if(e.Jb){var r=e.Jb;if(r.Gl){for(var n=0,o=null,i=null,a=r.Gl;a&&(a.yy||(n++,a.Fn==e&&(o=a),!(o&&n>1)));a=a.next)o||(i=a);o&&(0==r.Ea&&1==n?Ek(r,t):(i?((n=i).next==r.nq&&(r.nq=n),n.next=n.next.next):Fk(r),Gk(r,o,3,t)))}e.Jb=null}else ok(e,3,t)},Bk=function(e,t){e.Gl||2!=e.Ea&&3!=e.Ea||Hk(e),e.nq?e.nq.next=t:e.Gl=t,e.nq=t},Ak=function(e,t,r,n){var o=sk(null,null,null);return o.Fn=new _.pk((function(e,i){o.ow=t?function(r){try{var o=t.call(n,r);e(o)}catch(e){i(e)}}:e,o.Rr=r?function(t){try{var o=r.call(n,t);void 0===o&&t instanceof _.Dk?i(t):e(o)}catch(e){i(e)}}:i})),o.Fn.Jb=e,Bk(e,o),o.Fn};_.pk.prototype.Tna=function(e){this.Ea=0,ok(this,2,e)},_.pk.prototype.Una=function(e){this.Ea=0,ok(this,3,e)};var ok=function(e,t,r){0==e.Ea&&(e===r&&(t=3,r=new TypeError("Promise cannot resolve to itself")),e.Ea=1,vk(r,e.Tna,e.Una,e)||(e.nf=r,e.Ea=t,e.Jb=null,Hk(e),3!=t||r instanceof _.Dk||Ik(e,r)))},vk=function(e,t,r,n){if(e instanceof _.pk)return Ck(e,t,r,n),!0;if(_.fk(e))return e.then(t,r,n),!0;if(_.xb(e))try{var o=e.then;if("function"==typeof o)return Jk(e,o,t,r,n),!0}catch(e){return r.call(n,e),!0}return!1},Jk=function(e,t,r,n,o){var i=!1,a=function(e){i||(i=!0,n.call(o,e))};try{t.call(e,(function(e){i||(i=!0,r.call(o,e))}),a)}catch(e){a(e)}},Hk=function(e){e.MG||(e.MG=!0,_.nk(e.Oz,e))},Fk=function(e){var t=null;return e.Gl&&(t=e.Gl,e.Gl=t.next,t.next=null),e.Gl||(e.nq=null),t};_.pk.prototype.Oz=function(){for(var e;e=Fk(this);)Gk(this,e,this.Ea,this.nf);this.MG=!1},Gk=function(e,t,r,n){if(3==r&&t.Rr&&!t.yy)for(;e&&e.PA;e=e.Jb)e.PA=!1;if(t.Fn)t.Fn.Jb=null,Kk(t,r,n);else try{t.yy?t.ow.call(t.context):Kk(t,r,n)}catch(e){Lk.call(null,e)}rk.put(t)},Kk=function(e,t,r){2==t?e.ow.call(e.context,r):e.Rr&&e.Rr.call(e.context,r)},Ik=function(e,t){e.PA=!0,_.nk((function(){e.PA&&Lk.call(null,t)}))},Lk=_.rh,_.Dk=function(e){_.nb.call(this,e),this.B0=!1},_.qb(_.Dk,_.nb),_.Dk.prototype.name="cancel";var yk=function(e,t,r){this.promise=e,this.resolve=t,this.reject=r},Sr,Tr,Xr,Vr,Zr,Yr,cs,es,vs,Ds;_.Lr=function(e,t){this.x=void 0!==e?e:0,this.y=void 0!==t?t:0},_.Mr=function(e){if(e instanceof _.kc)return e.T_;throw Error("j")},_.Nr=function(e,t,r,n){this.top=e,this.right=t,this.bottom=r,this.left=n},_.Or=function(e,t){return e==t||!(!e||!t)&&(e.x==t.x&&e.y==t.y)},_.g=_.Lr.prototype,_.g.clone=function(){return new _.Lr(this.x,this.y)},_.g.equals=function(e){return e instanceof _.Lr&&_.Or(this,e)},_.g.ceil=function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},_.g.floor=function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},_.g.round=function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},_.g.translate=function(e,t){return e instanceof _.Lr?(this.x+=e.x,this.y+=e.y):(this.x+=Number(e),"number"==typeof t&&(this.y+=t)),this},_.g.scale=function(e,t){return this.x*=e,this.y*="number"==typeof t?t:e,this},_.Pr=function(e){return e.scrollingElement?e.scrollingElement:!_.Fd&&_.je(e)?e.documentElement:e.body||e.documentElement},_.Qr=function(e){var t=_.Pr(e);return e=e.defaultView,new _.Lr((null==e?void 0:e.pageXOffset)||t.scrollLeft,(null==e?void 0:e.pageYOffset)||t.scrollTop)},_.Rr=function(e){return _.Qr(e.Ub)},Sr=function(e){return String(e).replace(/\-([a-z])/g,(function(e,t){return t.toUpperCase()}))},Tr=function(e){return e.replace(RegExp("(^|[\\s]+)([a-z])","g"),(function(e,t,r){return t+r.toUpperCase()}))},_.Ur=function(e){return _.de(document,e)},_.g=_.Nr.prototype,_.g.Qb=function(){return this.right-this.left},_.g.Nc=function(){return this.bottom-this.top},_.g.clone=function(){return new _.Nr(this.top,this.right,this.bottom,this.left)},_.g.contains=function(e){return!(!this||!e)&&(e instanceof _.Nr?e.left>=this.left&&e.right<=this.right&&e.top>=this.top&&e.bottom<=this.bottom:e.x>=this.left&&e.x<=this.right&&e.y>=this.top&&e.y<=this.bottom)},_.g.expand=function(e,t,r,n){return _.xb(e)?(this.top-=e.top,this.right+=e.right,this.bottom+=e.bottom,this.left-=e.left):(this.top-=e,this.right+=Number(t),this.bottom+=Number(r),this.left-=Number(n)),this},_.g.ceil=function(){return this.top=Math.ceil(this.top),this.right=Math.ceil(this.right),this.bottom=Math.ceil(this.bottom),this.left=Math.ceil(this.left),this},_.g.floor=function(){return this.top=Math.floor(this.top),this.right=Math.floor(this.right),this.bottom=Math.floor(this.bottom),this.left=Math.floor(this.left),this},_.g.round=function(){return this.top=Math.round(this.top),this.right=Math.round(this.right),this.bottom=Math.round(this.bottom),this.left=Math.round(this.left),this},_.g.translate=function(e,t){return e instanceof _.Lr?(this.left+=e.x,this.right+=e.x,this.top+=e.y,this.bottom+=e.y):(this.left+=e,this.right+=e,"number"==typeof t&&(this.top+=t,this.bottom+=t)),this},_.g.scale=function(e,t){return t="number"==typeof t?t:e,this.left*=e,this.right*=e,this.top*=t,this.bottom*=t,this},_.Wr=function(e,t,r){if("string"==typeof t)Vr(e,r,t);else for(var n in t)Vr(e,t[n],n)},Xr=/^--.+/,Vr=function(e,t,r){(r=Yr(e,r))&&(Xr.test(r)?e.style.setProperty(r,t):e.style[r]=t)},Zr={},Yr=function(e,t){var r=Zr[t];if(!r){var n=Sr(t);r=n,void 0===e.style[n]&&(n=(_.Fd?"Webkit":_.Ed?"Moz":null)+Tr(n),void 0!==e.style[n]&&(r=n)),Zr[t]=r}return r},_.$r=function(e,t){var r=e.style[Sr(t)];return void 0!==r?r:e.style[Yr(e,t)]||""},_.as=function(e,t){var r=_.be(e);return r.defaultView&&r.defaultView.getComputedStyle&&(e=r.defaultView.getComputedStyle(e,null))&&(e[t]||e.getPropertyValue(t))||""},_.bs=function(e,t){return _.as(e,t)||(e.currentStyle?e.currentStyle[t]:null)||e.style&&e.style[t]},cs=function(e){try{return e.getBoundingClientRect()}catch(e){return{left:0,top:0,right:0,bottom:0}}},_.fs=function(e,t){var r=(t=t||_.Pr(document))||_.Pr(document),n=_.ds(e),o=_.ds(r),i=_.as(r,"borderLeftWidth"),a=_.as(r,"borderRightWidth"),s=_.as(r,"borderTopWidth"),l=_.as(r,"borderBottomWidth");a=new _.Nr(parseFloat(s),parseFloat(a),parseFloat(l),parseFloat(i)),r==_.Pr(document)?(i=n.x-r.scrollLeft,n=n.y-r.scrollTop):(i=n.x-o.x-a.left,n=n.y-o.y-a.top),e=es(e),o=r.clientHeight-e.height,a=r.scrollLeft,s=r.scrollTop,a+=Math.min(i,Math.max(i-(r.clientWidth-e.width),0)),s+=Math.min(n,Math.max(n-o,0)),r=new _.Lr(a,s),t.scrollLeft=r.x,t.scrollTop=r.y},_.ds=function(e){var t=_.be(e),r=new _.Lr(0,0);return e==(t?_.be(t):document).documentElement||(e=cs(e),t=_.Rr(_.ce(t)),r.x=e.left+t.x,r.y=e.top+t.y),r},_.hs=function(e,t){var r=new _.Lr(0,0),n=_.ke(_.be(e));e:{try{_.$b(n.parent);var o=!0;break e}catch(e){}o=!1}if(!o)return r;do{o=n==t?_.ds(e):_.gs(e),r.x+=o.x,r.y+=o.y}while(n&&n!=t&&n!=n.parent&&(e=n.frameElement)&&(n=n.parent));return r},_.gs=function(e){return e=cs(e),new _.Lr(e.left,e.top)},_.js=function(e,t,r){if(t instanceof _.Ec)r=t.height,t=t.width;else if(null==r)throw Error("K");e.style.width=_.is(t,!0),e.style.height=_.is(r,!0)},_.is=function(e,t){return"number"==typeof e&&(e=(t?Math.round(e):e)+"px"),e},_.ks=function(e){var t=es;if("none"!=_.bs(e,"display"))return t(e);var r=e.style,n=r.display,o=r.visibility,i=r.position;return r.visibility="hidden",r.position="absolute",r.display="inline",e=t(e),r.display=n,r.position=i,r.visibility=o,e},es=function(e){var t=e.offsetWidth,r=e.offsetHeight,n=_.Fd&&!t&&!r;return(void 0===t||n)&&e.getBoundingClientRect?(e=cs(e),new _.Ec(e.right-e.left,e.bottom-e.top)):new _.Ec(t,r)},_.ls=function(e,t){e.style.display=t?"":"none"},_.ns=function(e){var t,r=_.ce(void 0),n=_.ee(r.Ub,"HEAD")[0];if(!n){var o=_.ee(r.Ub,"BODY")[0];n=r.Ba("HEAD"),o.parentNode.insertBefore(n,o)}o=r.Ba("STYLE"),(t=_.Nc("style",document))&&o.setAttribute("nonce",t),_.ms(o,e),r.appendChild(n,o)},_.ms=function(e,t){t=_.Mr(t),_.fb.trustedTypes?_.xe(e,t):e.innerHTML=t},_.os=_.Ed?"MozUserSelect":_.Fd||_.Dd?"WebkitUserSelect":null,_.ps=function(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n},_.qs=function(e){return"rtl"==_.bs(e,"direction")},_.g=_.ps.prototype,_.g.clone=function(){return new _.ps(this.left,this.top,this.width,this.height)},_.g.intersection=function(e){var t=Math.max(this.left,e.left),r=Math.min(this.left+this.width,e.left+e.width);if(t<=r){var n=Math.max(this.top,e.top);if(n<=(e=Math.min(this.top+this.height,e.top+e.height)))return this.left=t,this.top=n,this.width=r-t,this.height=e-n,!0}return!1},_.g.intersects=function(e){return this.left<=e.left+e.width&&e.left<=this.left+this.width&&this.top<=e.top+e.height&&e.top<=this.top+this.height},_.g.difference=function(e){e:{var t=Math.max(this.left,e.left),r=Math.min(this.left+this.width,e.left+e.width);if(t<=r){var n=Math.max(this.top,e.top),o=Math.min(this.top+this.height,e.top+e.height);if(n<=o){t=new _.ps(t,n,r-t,o-n);break e}}t=null}if(t&&t.height&&t.width){t=[],r=this.top,n=this.height,o=this.left+this.width;var i=this.top+this.height,a=e.left+e.width,s=e.top+e.height;e.top>this.top&&(t.push(new _.ps(this.left,this.top,this.width,e.top-this.top)),r=e.top,n-=e.top-this.top),s<i&&(t.push(new _.ps(this.left,s,this.width,i-s)),n=s-r),e.left>this.left&&t.push(new _.ps(this.left,r,e.left-this.left,n)),a<o&&t.push(new _.ps(a,r,o-a,n)),e=t}else e=[this.clone()];return e},_.g.contains=function(e){return e instanceof _.Lr?e.x>=this.left&&e.x<=this.left+this.width&&e.y>=this.top&&e.y<=this.top+this.height:this.left<=e.left&&this.left+this.width>=e.left+e.width&&this.top<=e.top&&this.top+this.height>=e.top+e.height},_.g.distance=function(e){var t=e.x<this.left?this.left-e.x:Math.max(e.x-(this.left+this.width),0);return e=e.y<this.top?this.top-e.y:Math.max(e.y-(this.top+this.height),0),Math.sqrt(t*t+e*e)},_.g.getSize=function(){return new _.Ec(this.width,this.height)},_.g.getCenter=function(){return new _.Lr(this.left+this.width/2,this.top+this.height/2)},_.g.ceil=function(){return this.left=Math.ceil(this.left),this.top=Math.ceil(this.top),this.width=Math.ceil(this.width),this.height=Math.ceil(this.height),this},_.g.floor=function(){return this.left=Math.floor(this.left),this.top=Math.floor(this.top),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this},_.g.round=function(){return this.left=Math.round(this.left),this.top=Math.round(this.top),this.width=Math.round(this.width),this.height=Math.round(this.height),this},_.g.translate=function(e,t){return e instanceof _.Lr?(this.left+=e.x,this.top+=e.y):(this.left+=e,"number"==typeof t&&(this.top+=t)),this},_.g.scale=function(e,t){return t="number"==typeof t?t:e,this.left*=e,this.width*=e,this.top*=t,this.height*=t,this},_.rs=function(e){return _.bs(e,"position")},_.ss=function(e,t,r){if(t instanceof _.Lr){var n=t.x;t=t.y}else n=t,t=r;e.style.left=_.is(n,!1),e.style.top=_.is(t,!1)},_.ts=function(e,t){"opacity"in(e=e.style)?e.opacity=t:"MozOpacity"in e?e.MozOpacity=t:"filter"in e&&(e.filter=""===t?"":"alpha(opacity="+100*Number(t)+")")},_.us=function(){if(_.Id){var e=/Windows NT ([0-9.]+)/;return(e=e.exec(_.Pc()))?e[1]:"0"}return _.Hd?(e=(e=/1[0|1][_.][0-9_.]+/).exec(_.Pc()))?e[0].replace(/_/g,"."):"10":_.Kd?(e=(e=/Android\s+([^\);]+)(\)|;)/).exec(_.Pc()))?e[1]:"":_.Nd||_.Od||_.Pd?(e=(e=/(?:iPhone|CPU)\s+OS\s+(\S+)/).exec(_.Pc()))?e[1].replace(/_/g,"."):"":""}(),vs=function(e){return(e=e.exec(_.Pc()))?e[1]:""},_.ws=function(){if(_.wh)return vs(/Firefox\/([0-9.]+)/);if(_.Cd||_.Dd||_.Bd)return _.Xd;if(_.Ah){if(_.gd()||_.id()){var e=vs(/CriOS\/([0-9.]+)/);if(e)return e}return vs(/Chrome\/([0-9.]+)/)}if(_.Bh&&!_.gd())return vs(/Version\/([0-9.]+)/);if(_.xh||_.yh){if(e=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Pc()))return e[1]+"."+e[2]}else if(_.zh)return(e=vs(/Android\s+([0-9.]+)/))?e:vs(/Version\/([0-9.]+)/);return""}(),Ds=function(e,t,r){return arguments.length<=2?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,r)},_.Es=function(e,t,r,n){return Array.prototype.splice.apply(e,Ds(arguments,1))},_.Fs=function(e,t,r){if(null!==e&&t in e)throw Error("h`"+t);e[t]=r},_.Gs=function(e){_.Yi.call(this),this.ug=e,this.mc={}},_.Hs=function(e,t){var r=t||document;return r.getElementsByClassName?e=r.getElementsByClassName(e)[0]:(r=document,e=e?(t||r).querySelector(e?"."+e:""):_.ee(r,"*",e,t)[0]||null),e||null},_.Is=function(e,t){t.parentNode&&t.parentNode.insertBefore(e,t.nextSibling)},_.Js=function(e,t,r){for(e&&!r&&(e=e.parentNode),r=0;e;){if(t(e))return e;e=e.parentNode,r++}return null},_.qb(_.Gs,_.Yi);var Ks=[];_.Gs.prototype.ua=function(e,t,r,n){return this.bw(e,t,r,n)},_.Gs.prototype.bw=function(e,t,r,n,o){Array.isArray(t)||(t&&(Ks[0]=t.toString()),t=Ks);for(var i=0;i<t.length;i++){var a=_.xj(e,t[i],r||this.handleEvent,n||!1,o||this.ug||this);if(!a)break;this.mc[a.key]=a}return this},_.Gs.prototype.Gr=function(e,t,r,n){return Ls(this,e,t,r,n)};var Ls=function(e,t,r,n,o,i){if(Array.isArray(r))for(var a=0;a<r.length;a++)Ls(e,t,r[a],n,o,i);else{if(!(t=_.wj(t,r,n||e.handleEvent,o,i||e.ug||e)))return e;e.mc[t.key]=t}return e},dt,et,ht,Vt,iu,ou,ju,su,ku,mu,lu,pu,nu,tu;_.Gs.prototype.zc=function(e,t,r,n,o){if(Array.isArray(t))for(var i=0;i<t.length;i++)this.zc(e,t[i],r,n,o);else r=r||this.handleEvent,n=_.xb(n)?!!n.capture:!!n,o=o||this.ug||this,r=_.yj(r),n=!!n,(t=_.pj(e)||e&&(e=_.Aj(e))?e.Pq(t,r,n,o):null)&&(_.Ej(t),delete this.mc[t.key]);return this},_.Gs.prototype.removeAll=function(){_.bc(this.mc,(function(e,t){this.mc.hasOwnProperty(t)&&_.Ej(e)}),this),this.mc={}},_.Gs.prototype.wa=function(){_.Gs.N.wa.call(this),this.removeAll()},_.Gs.prototype.handleEvent=function(){throw Error("L")},dt=_.md(["about:blank"]),et=_.md(["javascript:undefined"]),_.ft=_.Cc(dt),_.gt=_.oc(_.ft).toString(),ht=_.Cc(et),_.oc(ht),_.Tt=function(e,t){var r=_.qd(t),n=r?t:arguments;for(r=r?0:1;r<n.length;r++){if(null==e)return;e=e[n[r]]}return e},_.Ut=function(e){if(!e||"object"!=typeof e)return e;if("function"==typeof e.clone)return e.clone();if("undefined"!=typeof Map&&e instanceof Map)return new Map(e);if("undefined"!=typeof Set&&e instanceof Set)return new Set(e);if(e instanceof Date)return new Date(e.getTime());var t,r=Array.isArray(e)?[]:"function"!=typeof ArrayBuffer||"function"!=typeof ArrayBuffer.isView||!ArrayBuffer.isView(e)||e instanceof DataView?{}:new e.constructor(e.length);for(t in e)r[t]=_.Ut(e[t]);return r},Vt=function(e,t){if(e){e=e.split("&");for(var r=0;r<e.length;r++){var n=e[r].indexOf("="),o=null;if(n>=0){var i=e[r].substring(0,n);o=e[r].substring(n+1)}else i=e[r];t(i,o?decodeURIComponent(o.replace(/\+/g," ")):"")}}},_.Wt=function(e,t,r){for(var n=0,o=t.length;(n=e.indexOf(t,n))>=0&&n<r;){var i=e.charCodeAt(n-1);if((38==i||63==i)&&(!(i=e.charCodeAt(n+o))||61==i||38==i||35==i))return n;n+=o+1}return-1},_.Xt=function(e,t){var r;this.Zd=this.xh=this.Bi="",this.Ag=null,this.cH=this.Pm="",this.Tg=!1,e instanceof _.Xt?(this.Tg=void 0!==t?t:e.Tg,_.Yt(this,e.Bi),_.Zt(this,e.xh),_.$t(this,e.Ng()),_.au(this,e.Ag),this.setPath(e.getPath()),_.bu(this,e.Qd.clone()),this.Wk(e.kA())):e&&(r=String(e).match(_.Uh))?(this.Tg=!!t,_.Yt(this,r[1]||"",!0),_.Zt(this,r[2]||"",!0),_.$t(this,r[3]||"",!0),_.au(this,r[4]),this.setPath(r[5]||"",!0),_.bu(this,r[6]||"",!0),this.Wk(r[7]||"",!0)):(this.Tg=!!t,this.Qd=new _.cu(null,this.Tg))},_.du=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^_.rd()).toString(36)},_.eu=function(e,t,r){return _.ne(document,arguments)},_.fu=/#|$/,_.gu=function(e){if(e.Ye&&"function"==typeof e.Ye)return e.Ye();if("undefined"!=typeof Map&&e instanceof Map||"undefined"!=typeof Set&&e instanceof Set)return Array.from(e.values());if("string"==typeof e)return e.split("");if(_.qd(e)){for(var t=[],r=e.length,n=0;n<r;n++)t.push(e[n]);return t}return _.wb(e)},_.hu=function(e){if(e.mg&&"function"==typeof e.mg)return e.mg();if(!e.Ye||"function"!=typeof e.Ye){if("undefined"!=typeof Map&&e instanceof Map)return Array.from(e.keys());if(!("undefined"!=typeof Set&&e instanceof Set)){if(_.qd(e)||"string"==typeof e){var t=[];e=e.length;for(var r=0;r<e;r++)t.push(r);return t}return _.Nh(e)}}},iu=function(e,t,r){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,r);else if(_.qd(e)||"string"==typeof e)Array.prototype.forEach.call(e,t,r);else for(var n=_.hu(e),o=_.gu(e),i=o.length,a=0;a<i;a++)t.call(r,o[a],n&&n[a],e)},_.Xt.prototype.toString=function(){var e=[],t=this.Bi;t&&e.push(ju(t,ku,!0),":");var r=this.Ng();return(r||"file"==t)&&(e.push("//"),(t=this.xh)&&e.push(ju(t,ku,!0),"@"),e.push(encodeURIComponent(String(r)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(r=this.Ag)&&e.push(":",String(r))),(r=this.getPath())&&(this.Zd&&"/"!=r.charAt(0)&&e.push("/"),e.push(ju(r,"/"==r.charAt(0)?lu:mu,!0))),(r=this.Qd.toString())&&e.push("?",r),(r=this.kA())&&e.push("#",ju(r,nu)),e.join("")},_.Xt.prototype.resolve=function(e){var t=this.clone(),r=!!e.Bi;r?_.Yt(t,e.Bi):r=!!e.xh,r?_.Zt(t,e.xh):r=!!e.Zd,r?_.$t(t,e.Ng()):r=null!=e.Ag;var n=e.getPath();if(r)_.au(t,e.Ag);else if(r=!!e.Pm){if("/"!=n.charAt(0))if(this.Zd&&!this.Pm)n="/"+n;else{var o=t.getPath().lastIndexOf("/");-1!=o&&(n=t.getPath().slice(0,o+1)+n)}if(".."==(o=n)||"."==o)n="";else if(_.Hc(o,"./")||_.Hc(o,"/.")){n=_.Fc(o,"/"),o=o.split("/");for(var i=[],a=0;a<o.length;){var s=o[a++];"."==s?n&&a==o.length&&i.push(""):".."==s?((i.length>1||1==i.length&&""!=i[0])&&i.pop(),n&&a==o.length&&i.push("")):(i.push(s),n=!0)}n=i.join("/")}else n=o}return r?t.setPath(n):r=e.Ao(),r?_.bu(t,e.Qd.clone()):r=!!e.cH,r&&t.Wk(e.kA()),t},_.Xt.prototype.clone=function(){return new _.Xt(this)},_.Yt=function(e,t,r){return e.Bi=r?ou(t,!0):t,e.Bi&&(e.Bi=e.Bi.replace(/:$/,"")),e},_.Zt=function(e,t,r){return e.xh=r?ou(t):t,e},_.Xt.prototype.Ng=function(){return this.Zd},_.$t=function(e,t,r){return e.Zd=r?ou(t,!0):t,e},_.au=function(e,t){if(t){if(t=Number(t),isNaN(t)||t<0)throw Error("M`"+t);e.Ag=t}else e.Ag=null;return e},_.Xt.prototype.getPath=function(){return this.Pm},_.Xt.prototype.setPath=function(e,t){return this.Pm=t?ou(e,!0):e,this},_.Xt.prototype.Ao=function(){return""!==this.Qd.toString()},_.bu=function(e,t,r){return t instanceof _.cu?(e.Qd=t,e.Qd.vM(e.Tg)):(r||(t=ju(t,pu)),e.Qd=new _.cu(t,e.Tg)),e},_.Xt.prototype.lb=function(e,t){return _.bu(this,e,t)},_.Xt.prototype.getQuery=function(){return this.Qd.toString()},_.qu=function(e,t,r){return e.Qd.set(t,r),e},_.g=_.Xt.prototype,_.g.Wh=function(e){return this.Qd.get(e)},_.g.kA=function(){return this.cH},_.g.Wk=function(e,t){return this.cH=t?ou(e):e,this},_.g.removeParameter=function(e){return this.Qd.remove(e),this},_.g.vM=function(e){this.Tg=e,this.Qd&&this.Qd.vM(e)},_.ru=function(e,t){return e instanceof _.Xt?e.clone():new _.Xt(e,t)},ou=function(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""},ju=function(e,t,r){return"string"==typeof e?(e=encodeURI(e).replace(t,su),r&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null},su=function(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)},ku=/[#\/\?@]/g,mu=/[#\?:]/g,lu=/[#\?]/g,pu=/[#\?@]/g,nu=/#/g,_.cu=function(e,t){this.Ee=this.Kc=null,this.kg=e||null,this.Tg=!!t},tu=function(e){e.Kc||(e.Kc=new Map,e.Ee=0,e.kg&&Vt(e.kg,(function(t,r){e.add(decodeURIComponent(t.replace(/\+/g," ")),r)})))},_.g=_.cu.prototype,_.g.jc=function(){return tu(this),this.Ee},_.g.add=function(e,t){tu(this),this.kg=null,e=uu(this,e);var r=this.Kc.get(e);return r||this.Kc.set(e,r=[]),r.push(t),this.Ee+=1,this},_.g.remove=function(e){return tu(this),e=uu(this,e),!!this.Kc.has(e)&&(this.kg=null,this.Ee-=this.Kc.get(e).length,this.Kc.delete(e))},_.g.clear=function(){this.Kc=this.kg=null,this.Ee=0},_.g.isEmpty=function(){return tu(this),0==this.Ee},_.g.Kl=function(e){return tu(this),e=uu(this,e),this.Kc.has(e)},_.g.forEach=function(e,t){tu(this),this.Kc.forEach((function(r,n){r.forEach((function(r){e.call(t,r,n,this)}),this)}),this)},_.g.mg=function(){tu(this);for(var e=Array.from(this.Kc.values()),t=Array.from(this.Kc.keys()),r=[],n=0;n<t.length;n++)for(var o=e[n],i=0;i<o.length;i++)r.push(t[n]);return r},_.g.Ye=function(e){tu(this);var t=[];if("string"==typeof e)this.Kl(e)&&(t=t.concat(this.Kc.get(uu(this,e))));else{e=Array.from(this.Kc.values());for(var r=0;r<e.length;r++)t=t.concat(e[r])}return t},_.g.set=function(e,t){return tu(this),this.kg=null,e=uu(this,e),this.Kl(e)&&(this.Ee-=this.Kc.get(e).length),this.Kc.set(e,[t]),this.Ee+=1,this},_.g.get=function(e,t){return e&&(e=this.Ye(e)).length>0?String(e[0]):t},_.g.setValues=function(e,t){this.remove(e),t.length>0&&(this.kg=null,this.Kc.set(uu(this,e),_.ac(t)),this.Ee+=t.length)},_.g.toString=function(){if(this.kg)return this.kg;if(!this.Kc)return"";for(var e=[],t=Array.from(this.Kc.keys()),r=0;r<t.length;r++){var n=t[r],o=encodeURIComponent(String(n));n=this.Ye(n);for(var i=0;i<n.length;i++){var a=o;""!==n[i]&&(a+="="+encodeURIComponent(String(n[i]))),e.push(a)}}return this.kg=e.join("&")},_.g.clone=function(){var e=new _.cu;return e.kg=this.kg,this.Kc&&(e.Kc=new Map(this.Kc),e.Ee=this.Ee),e};var uu=function(e,t){return t=String(t),e.Tg&&(t=t.toLowerCase()),t},nC,rC,sC;_.cu.prototype.vM=function(e){e&&!this.Tg&&(tu(this),this.kg=null,this.Kc.forEach((function(e,t){var r=t.toLowerCase();t!=r&&(this.remove(t),this.setValues(r,e))}),this)),this.Tg=e},_.cu.prototype.extend=function(e){for(var t=0;t<arguments.length;t++)iu(arguments[t],(function(e,t){this.add(t,e)}),this)},_.Iy=function(e,t){_.Hj.call(this),this.Em=e||1,this.Gx=t||_.fb,this.CQ=(0,_.Db)(this.Nna,this),this.mY=_.rd()},_.qb(_.Iy,_.Hj),_.g=_.Iy.prototype,_.g.enabled=!1,_.g.Fc=null,_.g.setInterval=function(e){this.Em=e,this.Fc&&this.enabled?(this.stop(),this.start()):this.Fc&&this.stop()},_.g.Nna=function(){if(this.enabled){var e=_.rd()-this.mY;e>0&&e<.8*this.Em?this.Fc=this.Gx.setTimeout(this.CQ,this.Em-e):(this.Fc&&(this.Gx.clearTimeout(this.Fc),this.Fc=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}},_.g.start=function(){this.enabled=!0,this.Fc||(this.Fc=this.Gx.setTimeout(this.CQ,this.Em),this.mY=_.rd())},_.g.stop=function(){this.enabled=!1,this.Fc&&(this.Gx.clearTimeout(this.Fc),this.Fc=null)},_.g.wa=function(){_.Iy.N.wa.call(this),this.stop(),delete this.Gx},_.Jy=function(e,t,r){if("function"==typeof e)r&&(e=(0,_.Db)(e,r));else{if(!e||"function"!=typeof e.handleEvent)throw Error("xa");e=(0,_.Db)(e.handleEvent,e)}return Number(t)>2147483647?-1:_.fb.setTimeout(e,t||0)},_.Ky=function(e){_.fb.clearTimeout(e)},_.lC=function(e){var t=arguments.length;if(1==t&&Array.isArray(arguments[0]))return _.lC.apply(null,arguments[0]);for(var r={},n=0;n<t;n++)r[arguments[n]]=!0;return r},_.mC=function(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")},_.oC=function(e,t,r){Array.isArray(r)&&(r=r.join(" "));var n="aria-"+t;""===r||null==r?(nC||((r={}).atomic=!1,r.autocomplete="none",r.dropeffect="none",r.haspopup=!1,r.live="off",r.multiline=!1,r.multiselectable=!1,r.orientation="vertical",r.readonly=!1,r.relevant="additions text",r.required=!1,r.sort="none",r.busy=!1,r.disabled=!1,r.hidden=!1,r.invalid="false",nC=r),t in(r=nC)?e.setAttribute(n,r[t]):e.removeAttribute(n)):e.setAttribute(n,r)},_.pC=function(e,t){return null==(e=e.getAttribute("aria-"+t))||null==e?"":String(e)},_.qC=function(e,t){var r="";t&&(r=t.id),_.oC(e,"activedescendant",r)},_.lC("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" ")),rC=function(e){return"string"==typeof e.className?e.className:e.getAttribute&&e.getAttribute("class")||""},sC=function(e){return e.classList?e.classList:rC(e).match(/\S+/g)||[]},_.tC=function(e,t){"string"==typeof e.className?e.className=t:e.setAttribute&&e.setAttribute("class",t)},_.uC=function(e,t){return e.classList?e.classList.contains(t):_.vb(sC(e),t)},_.vC=function(e,t){if(e.classList)e.classList.add(t);else if(!_.uC(e,t)){var r=rC(e);_.tC(e,r+(r.length>0?" "+t:t))}},_.wC=function(e,t){if(e.classList)Array.prototype.forEach.call(t,(function(t){_.vC(e,t)}));else{var r={};for(var n in Array.prototype.forEach.call(sC(e),(function(e){r[e]=!0})),Array.prototype.forEach.call(t,(function(e){r[e]=!0})),t="",r)t+=t.length>0?" "+n:n;_.tC(e,t)}},_.xC=function(e,t){e.classList?e.classList.remove(t):_.uC(e,t)&&_.tC(e,Array.prototype.filter.call(sC(e),(function(e){return e!=t})).join(" "))},_.yC=function(e,t){e.classList?Array.prototype.forEach.call(t,(function(t){_.xC(e,t)})):_.tC(e,Array.prototype.filter.call(sC(e),(function(e){return!_.vb(t,e)})).join(" "))},_.zC=function(e,t,r){r?_.vC(e,t):_.xC(e,t)},_.AC=function(){},_.CC=function(e){_.Hj.call(this),this.Gb=e||_.ce(),this.ZC=BC,this.Fa=null,this.qb=!1,this.va=null,this.um=void 0,this.Kh=this.Xc=this.Jb=this.Jr=null},_.DC=function(e){e.Jo=void 0,e.Oa=function(){return e.Jo?e.Jo:e.Jo=new e}},_.EC=function(e,t){t?e.tabIndex=0:(e.tabIndex=-1,e.removeAttribute("tabIndex"))},_.DC(_.AC),_.AC.prototype.bK=0,_.qb(_.CC,_.Hj),_.CC.prototype.Sha=_.AC.Oa();var BC=null,RG,TG;_.g=_.CC.prototype,_.g.getId=function(){return this.Fa||(this.Fa=":"+(this.Sha.bK++).toString(36))},_.g.Oe=function(e){if(this.Jb&&this.Jb.Kh){var t=this.Jb.Kh,r=this.Fa;r in t&&delete t[r],_.Fs(this.Jb.Kh,e,this)}this.Fa=e},_.g.U=function(){return this.va},_.g.yb=function(){return this.um||(this.um=new _.Gs(this)),this.um},_.g.setParent=function(e){if(this==e)throw Error("Ea");if(e&&this.Jb&&this.Fa&&this.Jb.bA(this.Fa)&&this.Jb!=e)throw Error("Ea");this.Jb=e,_.CC.N.ID.call(this,e)},_.g.getParent=function(){return this.Jb},_.g.ID=function(e){if(this.Jb&&this.Jb!=e)throw Error("Fa");_.CC.N.ID.call(this,e)},_.g.Ha=function(){return this.Gb},_.g.Ba=function(){this.va=this.Gb.createElement("DIV")},_.g.Aa=function(e){this.Ai(e)},_.g.Ai=function(e,t){if(this.qb)throw Error("Ga");this.va||this.Ba(),e?e.insertBefore(this.va,t||null):this.Gb.wb().body.appendChild(this.va),this.Jb&&!this.Jb.qb||this.vc()},_.g.vc=function(){this.qb=!0,_.FC(this,(function(e){!e.qb&&e.U()&&e.vc()}))},_.g.ee=function(){_.FC(this,(function(e){e.qb&&e.ee()})),this.um&&this.um.removeAll(),this.qb=!1},_.g.wa=function(){this.qb&&this.ee(),this.um&&(this.um.dispose(),delete this.um),_.FC(this,(function(e){e.dispose()})),this.va&&_.te(this.va),this.Jb=this.Jr=this.va=this.Kh=this.Xc=null,_.CC.N.wa.call(this)},_.g.hv=_.da(23),_.g.FD=function(e){this.Jr=e},_.g.hq=_.da(24),_.g.zn=_.da(25),_.g.Za=function(){return this.va},_.g.Gp=_.da(26),_.g.bA=function(e){if(this.Kh&&e){var t=this.Kh;e=(null!==t&&e in t?t[e]:void 0)||null}else e=null;return e},_.GC=function(e,t){return e.Xc&&e.Xc[t]||null},_.FC=function(e,t,r){e.Xc&&e.Xc.forEach(t,r)},_.CC.prototype.removeChild=function(e,t){if(e){var r="string"==typeof e?e:e.getId();if(e=this.bA(r),r&&e){var n=this.Kh;r in n&&delete n[r],_.aj(this.Xc,e),t&&(e.ee(),e.va&&_.te(e.va)),e.setParent(null)}}if(!e)throw Error("Ia");return e},_.HC=function(e,t,r){return e.removeChild(_.GC(e,t),r)},_.CC.prototype.re=function(e){for(var t=[];this.Xc&&0!=this.Xc.length;)t.push(_.HC(this,0,e));return t},_.PG=function(e,t){var r,n={};for(r in e)n[r]=t.call(void 0,e[r],r,e);return n},_.QG=function(e,t){this.rD=[],this.LZ=e,this.HR=t||null,this.uv=this.Rn=!1,this.nf=void 0,this.YN=this.Sca=this.BF=!1,this.sE=0,this.Jb=null,this.DF=0},RG={},_.SG=function(e){if(RG[e])return RG[e];if(e=String(e),!RG[e]){var t=/function\s+([^\(]+)/m.exec(e);RG[e]=t?t[1]:"[Anonymous]"}return RG[e]},TG=function(e,t){var r=[];if(_.vb(t,e))r.push("[...circular reference...]");else if(e&&t.length<50){r.push(_.SG(e)+"(");for(var n=e.arguments,o=0;n&&o<n.length;o++){o>0&&r.push(", ");var i=n[o];switch(typeof i){case"object":i=i?"object":"null";break;case"string":break;case"number":i=String(i);break;case"boolean":i=i?"true":"false";break;case"function":i=(i=_.SG(i))?i:"[fn]";break;default:i=typeof i}i.length>40&&(i=i.slice(0,40)+"..."),r.push(i)}t.push(e),r.push(")\n");try{r.push(TG(e.caller,t))}catch(e){r.push("[exception trying to get caller]\n")}}else e?r.push("[...long stack...]"):r.push("[end]");return r.join("")},_.UG=function(e){var t=Error();if(Error.captureStackTrace)Error.captureStackTrace(t,e||_.UG),t=String(t.stack);else{try{throw t}catch(e){t=e}t=(t=t.stack)?String(t):null}return t||(t=TG(e||arguments.callee.caller,[])),t},_.QG.prototype.cancel=function(e){if(this.Rn)this.nf instanceof _.QG&&this.nf.cancel();else{if(this.Jb){var t=this.Jb;delete this.Jb,e?t.cancel(e):(t.DF--,t.DF<=0&&t.cancel())}this.LZ?this.LZ.call(this.HR,this):this.YN=!0,this.Rn||this.rk(new _.VG(this))}},_.QG.prototype.nR=function(e,t){this.BF=!1,WG(this,e,t)};var WG=function(e,t,r){e.Rn=!0,e.nf=r,e.uv=!t,XG(e)},ZG=function(e){if(e.Rn){if(!e.YN)throw new YG(e);e.YN=!1}};_.QG.prototype.callback=function(e){ZG(this),WG(this,!0,e)},_.QG.prototype.rk=function(e){ZG(this),WG(this,!1,e)},_.QG.prototype.Be=function(e,t){return _.$G(this,e,null,t)},_.QG.prototype.finally=function(e){var t=this;return aH(new Promise((function(r,n){_.$G(t,(function(t){e(),r(t)}),(function(t){e(),n(t)}))})))},_.$G=function(e,t,r,n){var o=e.Rn;return o||(t===r?t=r=(0,_.gk)(t):(t=(0,_.gk)(t),r=(0,_.gk)(r))),e.rD.push([t,r,n]),o&&XG(e),e},_.QG.prototype.then=function(e,t,r){var n,o,i=new _.pk((function(e,t){o=e,n=t}));return _.$G(this,o,(function(e){return e instanceof _.VG?i.cancel():n(e),bH}),this),i.then(e,t,r)},_.ek(_.QG);var cH=function(e){return _.Kb(e.rD,(function(e){return"function"==typeof e[1]}))},bH={},XG=function(e){if(e.sE&&e.Rn&&cH(e)){var t=e.sE,r=dH[t];r&&(_.fb.clearTimeout(r.Fa),delete dH[t]),e.sE=0}e.Jb&&(e.Jb.DF--,delete e.Jb),t=e.nf;for(var n=r=!1;e.rD.length&&!e.BF;){var o=e.rD.shift(),i=o[0],a=o[1];if(o=o[2],i=e.uv?a:i)try{var s=i.call(o||e.HR,t);s===bH&&(s=void 0),void 0!==s&&(e.uv=e.uv&&(s==t||s instanceof Error),e.nf=t=s),(_.fk(t)||"function"==typeof _.fb.Promise&&t instanceof _.fb.Promise)&&(n=!0,e.BF=!0)}catch(n){t=n,e.uv=!0,cH(e)||(r=!0)}}e.nf=t,n&&(s=(0,_.Db)(e.nR,e,!0),n=(0,_.Db)(e.nR,e,!1),t instanceof _.QG?(_.$G(t,s,n),t.Sca=!0):t.then(s,n)),r&&(t=new eH(t),dH[t.Fa]=t,e.sE=t.Fa)},aH=function(e){var t=new _.QG;return e.then((function(e){t.callback(e)}),(function(e){t.rk(e)})),t},YG=function(e){_.nb.call(this),this.IR=e};_.qb(YG,_.nb),YG.prototype.message="Deferred has already fired",YG.prototype.name="AlreadyCalledError",_.VG=function(e){_.nb.call(this),this.IR=e},_.qb(_.VG,_.nb),_.VG.prototype.message="Deferred was canceled",_.VG.prototype.name="CanceledError";var eH=function(e){this.Fa=_.fb.setTimeout((0,_.Db)(this.Mna,this),0),this.Nz=e};eH.prototype.Mna=function(){throw delete dH[this.Fa],this.Nz};var dH={},yJ,AJ,XJ,$J,cK,hK,kK,zK,BK,DK,LK,NK,SK,vK,EJ,CJ,zJ,iL,xK,AK,CK,OK,QJ,wK,MJ,LJ,jL,RJ,TJ;_.fH=function(e){var t="Jo";return e.Jo&&e.hasOwnProperty(t)?e.Jo:(t=new e,e.Jo=t)},_.gH=function(e){return e.qya=!0,e},_.hH=_.gH((function(e){return"number"==typeof e})),_.iH=_.gH((function(e){return"string"==typeof e})),_.jH=_.gH((function(e){return"boolean"==typeof e})),_.xJ=function(e,t){e.__closure__error__context__984382||(e.__closure__error__context__984382={}),e.__closure__error__context__984382.severity=t},yJ=function(e){var t=e.length,r=3*t/4;r%3?r=Math.floor(r):_.Hc("=.",e[t-1])&&(r=_.Hc("=.",e[t-2])?r-2:r-1);var n=new Uint8Array(r),o=0;return _.Lh(e,(function(e){n[o++]=e})),o!==r?n.subarray(0,o):n},AJ=function(e){return zJ[e]||""},_.DJ=function(e){if(!_.BJ)return yJ(e);e=CJ.test(e)?e.replace(CJ,AJ):e,e=atob(e);for(var t=new Uint8Array(e.length),r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t},_.FJ=function(e){return EJ&&null!=e&&e instanceof Uint8Array},_.GJ=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0},_.HJ=function(){return"function"==typeof BigInt},_.IJ=function(e,t,r){return"function"==typeof Symbol&&"symbol"==typeof Symbol()?void 0!==r&&r&&Symbol.for&&e?Symbol.for(e):null!=e?Symbol(e):Symbol():t},_.NJ=function(e,t){_.JJ||_.KJ in e||LJ(e,MJ),e[_.KJ]|=t},_.OJ=function(e,t){_.JJ||_.KJ in e||LJ(e,MJ),e[_.KJ]=t},_.PJ=function(e){if(4&e)return 512&e?512:1024&e?1024:0},_.SJ=function(e){return e[QJ]===RJ},_.UJ=function(e,t){return void 0===t?e.du!==TJ&&!!(2&(0|e.W[_.KJ])):!!(2&t)&&e.du!==TJ},_.VJ=function(e,t){if("number"!=typeof t||t<0||t>=e.length)throw Error()},_.WJ=function(e,t){if("number"!=typeof t||t<0||t>e.length)throw Error()},XJ=function(e){return e},_.ZJ=function(e){var t=e;if((0,_.iH)(t)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(t))throw Error(String(t))}else if((0,_.hH)(t)&&!Number.isSafeInteger(t))throw Error(String(t));return YJ?BigInt(e):e=(0,_.jH)(e)?e?"1":"0":(0,_.iH)(e)?e.trim()||"0":String(e)},$J=function(e,t){if(e.length>t.length)return!1;if(e.length<t.length||e===t)return!0;for(var r=0;r<e.length;r++){var n=e[r],o=t[r];if(n>o)return!1;if(n<o)return!0}},cK=function(e){var t=e>>>0;_.aK=t,_.bK=(e-t)/4294967296>>>0},_.eK=function(e){if(e<0){cK(-e);var t=_.Ea(_.dK(_.aK,_.bK));e=t.next().value,t=t.next().value,_.aK=e>>>0,_.bK=t>>>0}else cK(e)},_.gK=function(e,t){var r=4294967296*t+(e>>>0);return Number.isSafeInteger(r)?r:_.fK(e,t)},_.fK=function(e,t){if(e>>>=0,(t>>>=0)<=2097151)var r=""+(4294967296*t+e);else _.HJ()?r=""+(BigInt(t)<<BigInt(32)|BigInt(e)):(e=(16777215&e)+6777216*(r=16777215&(e>>>24|t<<8))+6710656*(t=t>>16&65535),r+=8147497*t,t*=2,e>=1e7&&(r+=e/1e7>>>0,e%=1e7),r>=1e7&&(t+=r/1e7>>>0,r%=1e7),r=t+hK(r)+hK(e));return r},hK=function(e){return e=String(e),"0000000".slice(e.length)+e},_.iK=function(e){if(e.length<16)_.eK(Number(e));else if(_.HJ())e=BigInt(e),_.aK=Number(e&BigInt(4294967295))>>>0,_.bK=Number(e>>BigInt(32)&BigInt(4294967295));else{var t=+("-"===e[0]);_.bK=_.aK=0;for(var r=e.length,n=t,o=(r-t)%6+t;o<=r;n=o,o+=6)n=Number(e.slice(n,o)),_.bK*=1e6,_.aK=1e6*_.aK+n,_.aK>=4294967296&&(_.bK+=Math.trunc(_.aK/4294967296),_.bK>>>=0,_.aK>>>=0);t&&(e=(t=_.Ea(_.dK(_.aK,_.bK))).next().value,t=t.next().value,_.aK=e,_.bK=t)}},_.dK=function(e,t){return t=~t,e?e=1+~e:t+=1,[e,t]},kK=function(e,t){if(null!=e){var r,n=null!=(r=jK)?r:jK={};(r=n[e]||0)>=t||(n[e]=r+1,e=Error(),_.xJ(e,"incident"),_.rh(e))}},_.lK=function(e){return Array.prototype.slice.call(e)},_.mK=function(e){if(null!=e&&"boolean"!=typeof e)throw Error("pb`"+_.pd(e)+"`"+e);return e},_.nK=function(e){return null==e||"boolean"==typeof e?e:"number"==typeof e?!!e:void 0},_.qK=function(e){switch(typeof e){case"bigint":return!0;case"number":return(0,_.oK)(e);case"string":return pK.test(e);default:return!1}},_.rK=function(e){return null==e||"string"==typeof e?e:void 0},_.uK=function(e,t,r,n){return null!=e&&_.SJ(e)?e:Array.isArray(e)?((n=(r=0|e[_.KJ])|32&n|2&n)!==r&&_.OJ(e,n),new t(e)):r?2&n?t[_.sK]||(t[_.sK]=_.tK(t)):new t:void 0},_.tK=function(e){return e=new e,_.NJ(e.W,34),e},zK=function(e,t){var r=void 0!==r&&r;if(vK(wK)&&vK(xK)&&void 0===wK){var n=e.W,o=n[xK];if(!o)return;if(o=o.W0)try{return void o(n,t,yK)}catch(e){_.rh(e)}}r&&(e=e.W,(r=vK(xK))&&r in e&&(e=e[r])&&delete e[t])},BK=function(e,t){var r,n=vK(xK);_.JJ&&n&&null!=(null==(r=e[n])?void 0:r[t])&&kK(AK,3)},DK=function(e,t){t<100||kK(CK,1)},_.GK=function(e,t,r,n){var o=void 0!==n;n=!!n;var i,a=vK(xK);!o&&_.JJ&&a&&(i=e[a])&&i.hU(DK),a=[];var s=e.length;i=4294967295;var l=!1,c=!!(64&t),u=c?128&t?0:-1:void 0;if(!(1&t)){var d,h=s&&e[s-1];if(null!=h&&"object"==typeof h&&h.constructor===Object?i=--s:h=void 0,c&&!(128&t)&&!o)l=!0,i=(null!=(d=EK)?d:XJ)(i-u,u,e,h,void 0)+u}for(t=void 0,d=0;d<s;d++){var p=e[d];if(null!=p&&null!=(p=r(p,n)))if(c&&d>=i){var f;(null!=(f=t)?f:t={})[d-u]=p}else a[d]=p}if(h)for(var g in h)null!=(s=h[g])&&null!=(s=r(s,n))&&(d=+g,p=void 0,c&&!Number.isNaN(d)&&(p=d+u)<i?a[p]=s:(d=void 0,(null!=(d=t)?d:t={})[g]=s));return t&&(l?a.push(t):a[i]=t),o&&vK(xK)&&(e=(r=vK(xK))?e[r]:void 0)&&"function"==typeof _.FK&&e instanceof _.FK&&(a[xK]=e.vda()),a},_.IK=function(e){switch(typeof e){case"number":return Number.isFinite(e)?e:""+e;case"bigint":return(0,_.HK)(e)?Number(e):""+e;case"boolean":return e?1:0;case"object":if(Array.isArray(e)){var t=0|e[_.KJ];return 0===e.length&&1&t?void 0:_.GK(e,t,_.IK)}return null!=e&&_.SJ(e)?_.JK(e):"function"==typeof _.KK&&e instanceof _.KK?e.iQ():void 0}return e},_.JK=function(e){return e=e.W,_.GK(e,0|e[_.KJ],_.IK)},_.MK=function(e,t,r){return LK(e,t,r,2048)},LK=function(e,t,r,n){if(n=void 0===n?0:n,null==e){var o=32;r?(e=[r],o|=128):e=[],t&&(o=-16760833&o|(1023&t)<<14)}else{if(!Array.isArray(e))throw Error("qb");if(o=0|e[_.KJ],_.Zb&&1&o)throw Error("rb");if(2048&o&&!(2&o)&&NK(),256&o)throw Error("sb");if(64&o)return(o|n)!==o&&_.OJ(e,o|n),e;if(r&&(o|=128,r!==e[0]))throw Error("tb");e:{o|=64;var i=(r=e).length;if(i){var a=i-1,s=r[a];if(null!=s&&"object"==typeof s&&s.constructor===Object){if((a-=t=128&o?0:-1)>=1024)throw Error("vb");for(var l in s)(i=+l)<a&&(r[i+t]=s[l],delete s[l]);o=-16760833&o|(1023&a)<<14;break e}}if(t){if((l=Math.max(t,i-(128&o?0:-1)))>1024)throw Error("wb");o=-16760833&o|(1023&l)<<14}}}return _.OJ(e,64|o|n),e},NK=function(){if(_.Zb)throw Error("ub");kK(OK,5)},SK=function(e,t){if("object"!=typeof e)return e;if(Array.isArray(e)){var r=0|e[_.KJ];return 0===e.length&&1&r?e=void 0:2&r||(!t||4096&r||16&r?e=_.PK(e,r,!1,t&&!(16&r)):(_.NJ(e,34),4&r&&Object.freeze(e))),e}return null!=e&&_.SJ(e)?(r=0|(t=e.W)[_.KJ],_.UJ(e,r)?e:_.QK(e,t,r)?_.RK(e,t):_.PK(t,r)):"function"==typeof _.KK&&e instanceof _.KK?e:void 0},_.RK=function(e,t,r){return e=new e.constructor(t),r&&(e.du=TJ),e.vZ=TJ,e},_.PK=function(e,t,r,n){return null!=n||(n=!!(34&t)),e=_.GK(e,t,SK,n),n=32,r&&(n|=2),t=16769217&t|n,_.OJ(e,t),e},_.TK=function(e){var t=e.W,r=0|t[_.KJ];return _.UJ(e,r)?_.QK(e,t,r)?_.RK(e,t,!0):new e.constructor(_.PK(t,r,!1)):e},_.UK=function(e){if(e.du!==TJ)return!1;var t=e.W;return t=_.PK(t,0|t[_.KJ]),_.NJ(t,2048),e.W=t,e.du=void 0,e.vZ=void 0,!0},_.VK=function(e){if(!_.UK(e)&&_.UJ(e,0|e.W[_.KJ]))throw Error()},_.WK=function(e,t){void 0===t&&(t=0|e[_.KJ]),32&t&&!(4096&t)&&_.OJ(e,4096|t)},_.QK=function(e,t,r){return!!(2&r)||!(!(32&r)||4096&r)&&(_.OJ(t,2|r),e.du=TJ,!0)},_.XK=function(e,t,r,n,o){var i,a=r+(o?0:-1),s=e.length-1;if(s>=1+(o?0:-1)&&a>=s){var l=e[s];if(null!=l&&"object"==typeof l&&l.constructor===Object)return l[r]=n,t}if(a<=s)return e[a]=n,t;void 0!==n&&(r>=(s=(null!=(i=t)?i:t=0|e[_.KJ])>>14&1023||536870912)?null!=n&&(a={},e[s+(o?0:-1)]=(a[r]=n,a)):e[a]=n);return t},_.$K=function(e,t,r,n,o,i,a,s,l){var c=t;return 1===a||4===a&&(2&t||!(16&t)&&32&n)?_.YK(t)||((t|=!e.length||s&&!(4096&t)||32&n&&!(4096&t||16&t)?2:256)!==c&&_.OJ(e,t),Object.freeze(e)):(2===a&&_.YK(t)&&(e=_.lK(e),c=0,t=_.ZK(t,n),n=_.XK(r,n,o,e,i)),_.YK(t)||(l||(t|=16),t!==c&&_.OJ(e,t))),2&t||!(4096&t||16&t)||_.WK(r,n),e},_.cL=function(e,t,r){return e=_.aL(e,t,r),Array.isArray(e)?e:_.bL},_.dL=function(e,t){return 2&t&&(e|=2),1|e},_.YK=function(e){return!!(2&e)&&!!(4&e)||!!(256&e)},_.eL=function(e,t,r,n){_.VK(e);var o=e.W;return _.XK(o,0|o[_.KJ],t,("0"===n?0===Number(r):r===n)?void 0:r),e},_.fL=function(e,t,r,n,o){var i=!1;if(null!=(n=_.aL(e,n,o,(function(e){var n=_.uK(e,r,!1,t);return i=n!==e&&null!=n,n}))))return i&&!_.UJ(n)&&_.WK(e,t),n},_.gL=function(e,t,r,n,o,i,a,s,l){var c=_.UJ(e,r);i=c?1:i,s=!!s||3===i,c=l&&!c,(2===i||c)&&_.UK(e)&&(r=0|(t=e.W)[_.KJ]);var u=(e=_.cL(t,o,a))===_.bL?7:0|e[_.KJ],d=_.dL(u,r);if(l=!(4&d)){var h=e,p=r,f=!!(2&d);f&&(p|=2);for(var g=!f,m=!0,b=0,y=0;b<h.length;b++){var v=_.uK(h[b],n,!1,p);if(v instanceof n){if(!f){var w=_.UJ(v);g&&(g=!w),m&&(m=w)}h[y++]=v}}y<b&&(h.length=y),d|=4,d=m?-4097&d:4096|d,d=g?8|d:-9&d}if(d!==u&&(_.OJ(e,d),2&d&&Object.freeze(e)),c&&!(8&d||!e.length&&(1===i||4===i&&(2&d||!(16&d)&&32&r)))){for(_.YK(d)&&(e=_.lK(e),d=_.ZK(d,r),r=_.XK(t,r,o,e,a)),n=e,c=d,u=0;u<n.length;u++)(h=n[u])!==(d=_.TK(h))&&(n[u]=d);c|=8,d=c=n.length?4096|c:-4097&c,_.OJ(e,d)}return _.$K(e,d,t,r,o,a,i,l,s)},_.ZK=function(e,t){return-273&(2&t?2|e:-3&e)},_.hL=function(e,t,r,n,o,i,a,s){_.VK(e);var l=e.W;e=_.gL(e,l,0|l[_.KJ],r,t,2,n,!0),a&&s?(null!=i||(i=e.length-1),_.VJ(e,i),e.splice(i,a),e.length||(e[_.KJ]&=-4097)):(a?_.WJ(e,i):o=null!=o?o:new r,null!=i?e.splice(i,a,o):e.push(o),i=r=e===_.bL?7:0|e[_.KJ],(o=_.UJ(o))?(r&=-9,1===e.length&&(r&=-4097)):r|=4096,r!==i&&_.OJ(e,r),o||_.WK(l))},vK=function(e){return e},EJ="undefined"!=typeof Uint8Array,_.BJ=!_.Cd&&"function"==typeof btoa,CJ=/[-_.]/g,zJ={"-":"+",_:"/",".":"="},_.JJ="function"==typeof Symbol&&"symbol"==typeof Symbol(),iL=_.IJ("jas",void 0,!0),_.sK=_.IJ(void 0,"0di"),xK=_.IJ(void 0,Symbol()),AK=_.IJ(void 0,"0ub"),CK=_.IJ(void 0,"0ubs"),OK=_.IJ(void 0,"0actk"),QJ=_.IJ("m_m","Dya",!0),wK=_.IJ(),MJ={nia:{value:0,configurable:!0,writable:!0,enumerable:!1}},LJ=Object.defineProperties,_.KJ=_.JJ?iL:"nia",jL=[],_.OJ(jL,7),_.bL=Object.freeze(jL),RJ={},TJ={},_.kL=Object.freeze({}),_.lL=Object.freeze({});var YJ="function"==typeof _.fb.BigInt&&"bigint"==typeof _.fb.BigInt(0),oL,mL,pL,nL;_.HK=_.gH((function(e){return YJ?e>=mL&&e<=nL:"-"===e[0]?$J(e,oL):$J(e,pL)})),oL=Number.MIN_SAFE_INTEGER.toString(),mL=YJ?BigInt(Number.MIN_SAFE_INTEGER):void 0,pL=Number.MAX_SAFE_INTEGER.toString(),nL=YJ?BigInt(Number.MAX_SAFE_INTEGER):void 0,_.aK=0,_.bK=0;var jK=void 0,pK;_.qL="function"==typeof BigInt?BigInt.asIntN:void 0,_.rL="function"==typeof BigInt?BigInt.asUintN:void 0,_.sL=Number.isSafeInteger,_.oK=Number.isFinite,_.tL=Math.trunc,pK=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var yK={nza:!0},EK,eN,mN,nN,rN,sN,DN,EN,FN,HN,IN,LN,yN,gO;_.uL=_.ZJ(0),_.vL=function(e,t,r,n,o){if(null!==(t=_.aL(e.W,t,r,o))||n&&e.vZ!==TJ)return t},_.aL=function(e,t,r,n){if(-1===t)return null;var o=t+(r?0:-1),i=e.length-1;if(!(i<1+(r?0:-1))){if(o>=i){var a=e[i];if(null!=a&&"object"==typeof a&&a.constructor===Object){r=a[t];var s=!0}else{if(o!==i)return;r=a}}else r=e[o];if(n&&null!=r){if(null==(n=n(r)))return n;if(!Object.is(n,r))return s?a[t]=n:e[o]=n,n}return r}},_.wL=function(e,t,r,n){return e=e.W,void 0!==_.fL(e,0|e[_.KJ],t,r,n)},_.xL=function(e,t,r){this.W=_.MK(e,t,r)},_.xL.prototype.toJSON=function(){return _.JK(this)},_.yL=function(e,t){if(null==t||""==t)return new e;if(t=JSON.parse(t),!Array.isArray(t))throw Error("yb");return _.NJ(t,32),new e(t)},_.xL.prototype.getExtension=function(e){return BK(this.W,e.Ph),zK(this,e.Ph),e.ctor?e.iA(this,e.ctor,e.Ph,e.Av):e.iA(this,e.Ph,e.defaultValue,e.Av)},_.zL=function(e,t){return BK(e.W,t.Ph),zK(e,t.Ph),null===(e=t.ctor?t.iA(e,t.ctor,t.Ph,t.Av):t.iA(e,t.Ph,null,t.Av))?void 0:e},_.xL.prototype.hasExtension=function(e){return BK(this.W,e.Ph),zK(this,e.Ph),e.ctor?_.wL(this,e.ctor,e.Ph,e.Av):void 0!==_.zL(this,e)},_.xL.prototype.clone=function(){var e=this.W,t=0|e[_.KJ];return _.QK(this,e,t)?_.RK(this,e,!0):new this.constructor(_.PK(e,t,!1))},_.xL.prototype[QJ]=RJ,_.xL.prototype.toString=function(){return this.W.toString()},_.dN=function(e){var t=e.W,r=0|t[_.KJ];return _.UJ(e,r)?e:_.QK(e,t,r)?_.RK(e,t):new e.constructor(_.PK(t,r,!0))},eN=function(){var e=_.aK,t=_.bK;return 2147483648&t?_.HJ()?e=""+(BigInt(0|t)<<BigInt(32)|BigInt(e>>>0)):(e=(t=_.Ea(_.dK(e,t))).next().value,t=t.next().value,e="-"+_.fK(e,t)):e=_.fK(e,t),e},_.fN=function(e){return e=Error(e),_.xJ(e,"warning"),e},_.gN=function(e){if(null!=e&&"number"!=typeof e)throw Error("ob`"+typeof e+"`"+e);return e},_.hN=function(e){return null==e||"number"==typeof e?e:"NaN"===e||"Infinity"===e||"-Infinity"===e?Number(e):void 0},_.iN=function(e){if(!(0,_.oK)(e))throw _.fN("enum");return 0|e},_.jN=function(e){return null==e?e:(0,_.oK)(e)?0|e:void 0},_.kN=function(e){if("number"!=typeof e)throw _.fN("int32");if(!(0,_.oK)(e))throw _.fN("int32");return 0|e},_.lN=function(e){if(null==e)return e;if("string"==typeof e&&e)e=+e;else if("number"!=typeof e)return;return(0,_.oK)(e)?0|e:void 0},mN=function(e){var t=e.length;return("-"===e[0]?t<20||20===t&&e<="-9223372036854775808":t<19||19===t&&e<="9223372036854775807")?e:(_.iK(e),eN())},nN=function(e){var t=(0,_.tL)(Number(e));return(0,_.sL)(t)?_.ZJ(t):(-1!==(t=e.indexOf("."))&&(e=e.substring(0,t)),_.HJ()?_.ZJ((0,_.qL)(64,BigInt(e))):_.ZJ(mN(e)))},_.oN=function(e){var t=(0,_.tL)(Number(e));return(0,_.sL)(t)?String(t):(-1!==(t=e.indexOf("."))&&(e=e.substring(0,t)),mN(e))},_.pN=function(e){if(e=(0,_.tL)(e),!(0,_.sL)(e)){_.eK(e);var t=_.aK,r=_.bK;(e=2147483648&r)&&(r=~r>>>0,0==(t=1+~t>>>0)&&(r=r+1>>>0)),e="number"==typeof(t=_.gK(t,r))?e?-t:t:e?"-"+t:t}return e},_.qN=function(e){return e=(0,_.tL)(e),(0,_.sL)(e)?e=String(e):(_.eK(e),e=eN()),e},rN=function(e){return(0,_.sL)(e)?_.ZJ(_.pN(e)):_.ZJ(_.qN(e))},sN=function(e,t){if(null!=t||(t=1024),!_.qK(e))throw _.fN("int64");var r=typeof e;switch(t){case 512:switch(r){case"string":return _.oN(e);case"bigint":return String((0,_.qL)(64,e));default:return _.qN(e)}case 1024:switch(r){case"string":return nN(e);case"bigint":return _.ZJ((0,_.qL)(64,e));default:return rN(e)}case 0:switch(r){case"string":return _.oN(e);case"bigint":return _.ZJ((0,_.qL)(64,e));default:return _.pN(e)}default:return _.sb(t,"Unknown format requested type for int64")}},_.tN=function(e,t){return null==e?e:sN(e,t)},_.uN=function(e){var t=typeof e;return null==e?e:"bigint"===t?_.ZJ((0,_.qL)(64,e)):_.qK(e)?"string"===t?nN(e):rN(e):void 0},_.vN=function(e){if("string"!=typeof e)throw Error();return e},_.wN=function(e){if(null!=e&&"string"!=typeof e)throw Error();return e},_.xN=function(e,t,r,n,o){_.VK(e);var i=e.W,a=0|i[_.KJ];if(null==r)return _.XK(i,a,t,void 0,o),e;var s,l=r===_.bL?7:0|r[_.KJ],c=l,u=_.YK(l),d=u||Object.isFrozen(r);for(u||(l=0),d||(r=_.lK(r),c=0,l=_.ZK(l,a),d=!1),l|=5,l|=u=null!=(s=_.PJ(l))?s:1024,s=0;s<r.length;s++){var h=r[s],p=n(h,u);Object.is(h,p)||(d&&(r=_.lK(r),c=0,l=_.ZK(l,a),d=!1),r[s]=p)}return l!==c&&(d&&(r=_.lK(r),l=_.ZK(l,a)),_.OJ(r,l)),_.XK(i,a,t,r,o),e},_.zN=function(e){var t;return _.JJ?null!=(t=e[yN])?t:e[yN]=new Map:yN in e?e[yN]:(t=new Map,Object.defineProperty(e,yN,{value:t}),t)},_.AN=function(e,t,r,n){var o=e.get(n);if(null!=o)return o;for(var i=o=0;i<n.length;i++){var a=n[i];null!=_.aL(t,a,void 0)&&(0!==o&&(r=_.XK(t,r,o,void 0,void 0)),o=a)}return e.set(n,o),o},_.La.prototype.Xs=_.rb(3,(function(e){this.Wf={mT:e,pX:!0},this.Dc=this.En||this.vk})),_.La.prototype.Mr=_.rb(2,(function(e){this.zh=e})),_.La.prototype.nn=_.rb(1,(function(){this.hJ=!1})),_.BN=function(e){return e===_.kL?2:4},_.CN=function(e){return JSON.stringify(_.JK(e))},DN=function(e){this.rb=new _.La,this.Qka=e},DN.prototype.Mr=function(e){return this.rb.Qs(),this.rb.zl?EN(this,this.rb.zl.next,e,this.rb.Mr):(this.rb.Mr(e),FN(this))};var GN=function(e,t){e.rb.Qs();var r=e.rb.zl;return r?EN(e,"return"in r?r.return:function(e){return{value:e,done:!0}},t,e.rb.return):(e.rb.return(t),FN(e))},KO,MO,NO,OO,PO,QO,SO,TO,RO,VO,UO,GP,QP,NP,OP,PP,hea,gea,F4,J4,jea,kea,K4;DN.prototype.Xs=function(e){return this.rb.Qs(),this.rb.zl?EN(this,this.rb.zl.throw,e,this.rb.Mr):(this.rb.Xs(e),FN(this))},EN=function(e,t,r,n){try{var o=t.call(e.rb.zl,r);if(_.Ia(o),!o.done)return e.rb.nn(),o;var i=o.value}catch(t){return e.rb.zl=null,e.rb.Xs(t),FN(e)}return e.rb.zl=null,n.call(e.rb,i),FN(e)},FN=function(e){for(;e.rb.Dc;)try{var t=e.Qka(e.rb);if(t)return e.rb.nn(),{value:t.value,done:!1}}catch(t){e.rb.zh=void 0,e.rb.Xs(t)}if(e.rb.nn(),e.rb.Wf){if(t=e.rb.Wf,e.rb.Wf=null,t.pX)throw t.mT;return{value:t.return,done:!0}}return{value:void 0,done:!0}},HN=function(e){this.next=function(t){return e.Mr(t)},this.throw=function(t){return e.Xs(t)},this.return=function(t){return GN(e,t)},this[Symbol.iterator]=function(){return this}},IN=function(e){function t(t){return e.next(t)}function r(t){return e.throw(t)}return new Promise((function(n,o){!function e(i){i.done?n(i.value):Promise.resolve(i.value).then(t,r).then(e,o)}(e.next())}))},_.JN=function(e){return IN(new HN(new DN(e)))},_.KN={},yN=_.IJ(void 0,"1oa"),_.x={},_.MN={},_.NN=function(e,t,r,n){_.VK(e);var o=e.W;return _.XK(o,0|o[_.KJ],t,r,n),e},_.ON=function(e,t){return e=e.W,_.AN(_.zN(e),e,void 0,t)},_.PN=function(e,t,r){return _.ON(e,t)===r?r:-1},_.QN=function(e,t,r,n){var o=e.W,i=0|o[_.KJ];if(null==(t=_.fL(o,i,t,r,n)))return t;if(i=0|o[_.KJ],!_.UJ(e,i)){var a=_.TK(t);a!==t&&(_.UK(e)&&(i=0|(o=e.W)[_.KJ]),t=a,i=_.XK(o,i,r,t,n),_.WK(o,i))}return t},_.RN=function(e,t,r,n,o,i){return _.hL(e,t,r,i,o,n,1),e},_.SN=function(e,t,r,n,o){var i=e.W;return _.gL(e,i,0|i[_.KJ],t,r,n,o,!1,!0)},_.TN=function(e,t,r,n){return null==r&&(r=void 0),_.NN(e,t,r,n),r&&!_.UJ(r)&&_.WK(e.W),e},_.UN=function(e,t,r,n){_.VK(e);var o=e.W,i=0|o[_.KJ];if(null==r)return _.XK(o,i,t,void 0,n),e;for(var a=r===_.bL?7:0|r[_.KJ],s=a,l=_.YK(a),c=l||Object.isFrozen(r),u=!0,d=!0,h=0;h<r.length;h++){var p=r[h];l||(p=_.UJ(p),u&&(u=!p),d&&(d=p))}return l||(a=u?13:5,a=d?-4097&a:4096|a),c&&a===s||(r=_.lK(r),s=0,a=_.ZK(a,i)),a!==s&&_.OJ(r,a),i=_.XK(o,i,t,r,n),2&a||!(4096&a||16&a)||_.WK(o,i),e},_.VN=function(e,t,r,n){return _.vL(e,t,r,n,_.uN)},_.WN=function(e,t,r,n){return _.rK(_.vL(e,t,r,n))},_.XN=function(e,t,r){var n;return r=void 0===r?0:r,null!=(n=_.lN(_.vL(e,t)))?n:r},_.YN=function(e,t){var r,n=void 0===n?"":n;return null!=(r=_.WN(e,t))?r:n},_.ZN=function(e,t){var r,n=void 0===n?0:n;return null!=(r=_.jN(_.vL(e,t)))?r:n},_.$N=function(e,t,r){return _.WN(e,t,r,_.MN)},_.aO=function(e,t,r,n){return _.NN(e,t,_.mK(r),n)},_.bO=function(e,t,r,n){return _.NN(e,t,null==r?r:_.kN(r),n)},_.cO=function(e,t,r,n,o){return _.NN(e,t,_.tN(r,n),o)},_.dO=function(e,t,r,n){return _.NN(e,t,_.wN(r),n)},_.eO=function(e,t,r,n){return _.NN(e,t,null==r?r:_.iN(r),n)},_.KK=function(e,t){if(t!==_.KN)throw Error("nb");if(this.Na=e,null!=e&&0===e.length)throw Error("mb")},_.fO=function(){return LN||(LN=new _.KK(null,_.KN))},_.KK.prototype.iQ=function(){var e=this.Na;if(null==e)e="";else if("string"!=typeof e){if(_.BJ){for(var t="",r=0,n=e.length-10240;r<n;)t+=String.fromCharCode.apply(null,e.subarray(r,r+=10240));t+=String.fromCharCode.apply(null,r?e.subarray(r):e),e=btoa(t)}else e=_.Jh(e);e=this.Na=e}return e},_.KK.prototype.isEmpty=function(){return null==this.Na},_.KK.prototype.Pza=function(){var e=gO(this);return e?e.length:0},_.hO=function(e,t){if(!e.Na||!t.Na||e.Na===t.Na)return e.Na===t.Na;if("string"==typeof e.Na&&"string"==typeof t.Na){var r=e.Na,n=t.Na;if(t.Na.length>e.Na.length&&(n=e.Na,r=t.Na),0!==r.lastIndexOf(n,0))return!1;for(t=n.length;t<r.length;t++)if("="!==r[t])return!1;return!0}return r=gO(e),t=gO(t),_.GJ(r,t)},gO=function(e){if(_.KN!=_.KN)throw Error("nb");var t=e.Na;return null==t||_.FJ(t)||("string"==typeof t?t=_.DJ(t):(_.pd(t),t=null)),null==t?t:e.Na=t},_.KK.prototype.bX=function(e){if("string"==typeof e)e=e?new _.KK(e,_.KN):_.fO();else if(e instanceof Uint8Array)e=new _.KK(e,_.KN);else if(!(e instanceof _.KK))return!1;return _.hO(this,e)},KO=function(e){var t=_.Pc();if("Internet Explorer"===e)return _.Wc()?_.cd(t):"";t=_.Tc(t);var r=_.bd(t);switch(e){case"Opera":if(_.Vc())return r(["Version","Opera"]);if(_.Zc())return r(["OPR"]);break;case"Microsoft Edge":if(_.Xc())return r(["Edge"]);if(_.Yc())return r(["Edg"]);break;case"Chromium":if(_.ad())return r(["Chrome","CriOS","HeadlessChrome"])}return("Firefox"===e&&_.$c()||"Safari"===e&&_.uh()||"Android Browser"===e&&_.vh()||"Silk"===e&&_.Sc("Silk"))&&(e=t[2])&&e[1]||""},_.LO=function(e){if(_.Uc()&&"Silk"!==e){var t=_.Qc.brands.find((function(t){return t.brand===e}));if(!t||!t.version)return NaN;t=t.version.split(".")}else{if(""===(t=KO(e)))return NaN;t=t.split(".")}return 0===t.length?NaN:Number(t[0])},MO=function(e){return!(!Array.isArray(e)||e.length)&&!!(1&(0|e[_.KJ]))},NO=function(e,t){if("string"==typeof t)try{t=_.DJ(t)}catch(e){return!1}return _.FJ(t)&&_.GJ(e,t)},OO=function(e){switch(e){case"bigint":case"string":case"number":return!0;default:return!1}},PO=function(e,t,r,n,o){var i;return null!=(i=e<n?t[e+o]:void 0)?i:null==r?void 0:r[e]},QO=function(e,t){return Array.isArray(e)&&Array.isArray(t)?(e=""+e[0])===(t=""+t[0])?0:e<t?-1:1:0},SO=function(e,t){if(_.SJ(e))e=e.W;else if(!Array.isArray(e))return!1;if(_.SJ(t))t=t.W;else if(!Array.isArray(t))return!1;return RO(e,t,void 0,2)},TO=function(e,t,r){return RO(e,t,r,0)},RO=function(e,t,r,n){if(e===t||null==e&&null==t)return!0;if(e instanceof Map)return e.pia(t,r);if(t instanceof Map)return t.pia(e,r);if(null==e||null==t)return!1;if("function"==typeof _.KK&&e instanceof _.KK)return e.bX(t);if("function"==typeof _.KK&&t instanceof _.KK)return t.bX(e);if(_.FJ(e))return NO(e,t);if(_.FJ(t))return NO(t,e);var o=typeof e,i=typeof t;if("object"!==o||"object"!==i)return Number.isNaN(e)||Number.isNaN(t)?String(e)===String(t):OO(o)&&OO(i)?""+e==""+t:("boolean"===o&&"number"===i||"number"===o&&"boolean"===i)&&!e==!t;if(_.SJ(e)||_.SJ(t))return SO(e,t);if(e.constructor!=t.constructor)return!1;if(e.constructor===Array){i=0|e[_.KJ];var a=0|t[_.KJ],s=e.length,l=t.length,c=Math.max(s,l);if(o=128&(i|a|64)?0:-1,1===n||1&(i|a))n=1;else if(8192&(i|a))return UO(e,t);i=s&&e[s-1],a=l&&t[l-1],null!=i&&"object"==typeof i&&i.constructor===Object||(i=null),null!=a&&"object"==typeof a&&a.constructor===Object||(a=null),s=s-o-+!!i,l=l-o-+!!a;for(var u=0;u<c;u++)if(!VO(u-o,e,i,s,t,a,l,o,r,n))return!1;if(i)for(var d in i){n=e,c=i,u=s;var h=t,p=a,f=l,g=o,m=r,b=+d;if(!(!Number.isFinite(b)||b<u||b<f||VO(b,n,c,u,h,p,f,g,m,2)))return!1}if(a)for(var y in a)if((d=i&&y in i)||(d=e,n=i,c=s,u=t,h=a,p=l,f=o,g=r,m=+y,d=!Number.isFinite(m)||m<c||m<p||VO(m,d,n,c,u,h,p,f,g,2)),!d)return!1;return!0}if(e.constructor===Object)return TO([e],[t]);throw Error()},VO=function(e,t,r,n,o,i,a,s,l,c){return t=PO(e,t,r,n,s),c=1===c,!!(null==(o=PO(e,o,i,a,s))&&MO(t)||null==t&&MO(o))||(e=c?l:null==l?void 0:l.tfa(e),RO(t,o,e,0))},UO=function(e,t){if(!Array.isArray(e)||!Array.isArray(t))return!1;e=_.lK(e),t=_.lK(t),Array.prototype.sort.call(e,QO),Array.prototype.sort.call(t,QO);var r=e.length,n=t.length;if(0===r&&0===n)return!0;for(var o=0,i=0;o<r&&i<n;){var a=void 0,s=e[o];if(!Array.isArray(s))return!1;for(var l=s[0];o<r-1&&TO((a=e[o+1])[0],l);)o++,s=a;var c=void 0;if(a=t[i],!Array.isArray(a))return!1;for(var u=a[0];i<n-1&&TO((c=t[i+1])[0],u);)i++,a=c;if(!TO(l,u))return!1;if(l=void 0,!TO(s[1],a[1],null==(l=void 0)?void 0:l.tfa(2)))return!1;o++,i++}return o>=r&&i>=n},_.WO=function(e){return(0,_.HK)(e)?Number(e):String(e)},_.XO=function(e,t,r,n){var o;return r=void 0!==r&&r,null!=(o=_.nK(_.vL(e,t,n)))?o:r},_.YO=function(e,t){return e===t||null==e&&null==t||!(!e||!t)&&e instanceof t.constructor&&SO(e,t)},_.BP=function(e){if("-"===e[0])var t=!1;else t=(t=e.length)<20||20===t&&e<="18446744073709551615";return t?e:(_.iK(e),_.fK(_.aK,_.bK))},_.CP=function(e){return(e=(0,_.tL)(e))>=0&&(0,_.sL)(e)||(_.eK(e),e=_.gK(_.aK,_.bK)),e},_.DP=function(e){return(e=(0,_.tL)(e))>=0&&(0,_.sL)(e)?e=String(e):(_.eK(e),e=_.fK(_.aK,_.bK)),e},_.EP=function(e){return(0,_.sL)(e)?_.ZJ(_.CP(e)):_.ZJ(_.DP(e))},_.FP=function(e){var t=(0,_.tL)(Number(e));return(0,_.sL)(t)&&t>=0?_.ZJ(t):(-1!==(t=e.indexOf("."))&&(e=e.substring(0,t)),_.HJ()?_.ZJ((0,_.rL)(64,BigInt(e))):_.ZJ(_.BP(e)))},GP=function(e){var t=typeof e;return null==e?e:"bigint"===t?_.ZJ((0,_.rL)(64,e)):_.qK(e)?"string"===t?_.FP(e):_.EP(e):void 0},_.HP=function(e,t,r,n,o){var i=e.W,a=0|i[_.KJ];r=_.UJ(e,a)?1:r,n=!!n||3===r,2===r&&_.UK(e)&&(a=0|(i=e.W)[_.KJ]);var s=(e=_.cL(i,t,o))===_.bL?7:0|e[_.KJ],l=_.dL(s,a),c=!(4&l);if(c){4&l&&(e=_.lK(e),s=0,l=_.ZK(l,a),a=_.XK(i,a,t,e,o));for(var u=0,d=0;u<e.length;u++){var h=_.rK(e[u]);null!=h&&(e[d++]=h)}d<u&&(e.length=d),l=-513&(4|l),l&=-1025,l&=-4097}return l!==s&&(_.OJ(e,l),2&l&&Object.freeze(e)),_.$K(e,l,i,a,t,o,r,c,n)},_.IP=function(e,t,r,n,o,i){var a;return _.VK(e),t=_.HP(e,t,2,!0,o),o=null!=(a=_.PJ(t===_.bL?7:0|t[_.KJ]))?a:1024,i&&_.WJ(t,n),null!=n?t.splice(n,i,_.vN(r,o)):t.push(_.vN(r,o)),e},_.JP=function(e,t,r,n,o){return _.hL(e,t,r,o,void 0,n,1,!0),e},_.KP=function(e,t,r){return _.vL(e,t,void 0,r,GP)},_.LP=function(e,t,r,n){return e=_.HP(e,t,3,!0,n),_.VJ(e,r),e[r]},_.MP=function(e,t,r){return _.eL(e,t,_.mK(r),!1)},_.RP=function(e,t){var r=t||{};t=r.document||document;var n=_.oc(e).toString(),o=new _.ae(t).createElement("SCRIPT"),i={f1:o,Gi:void 0},a=new _.QG(NP,i),s=null,l=null!=r.timeout?r.timeout:5e3;return l>0&&(s=window.setTimeout((function(){OP(o,!0),a.rk(new PP(1,"Timeout reached for loading script "+n))}),l),i.Gi=s),o.onload=o.onreadystatechange=function(){o.readyState&&"loaded"!=o.readyState&&"complete"!=o.readyState||(OP(o,r.Nwa||!1,s),a.callback(null))},o.onerror=function(){OP(o,!0,s),a.rk(new PP(0,"Error while loading script "+n))},i=r.attributes||{},_.cj(i,{type:"text/javascript",charset:"UTF-8"}),_.ge(o,i),_.Fh(o,e),QP(t).appendChild(o),a},QP=function(e){var t=(e||document).getElementsByTagName("HEAD");return t&&0!==t.length?t[0]:e.documentElement},NP=function(){if(this&&this.f1){var e=this.f1;e&&"SCRIPT"==e.tagName&&OP(e,!0,this.Gi)}},OP=function(e,t,r){null!=r&&_.fb.clearTimeout(r),e.onload=function(){},e.onerror=function(){},e.onreadystatechange=function(){},t&&window.setTimeout((function(){_.te(e)}),0)},PP=function(e,t){var r="Jsloader error (code #"+e+")";t&&(r+=": "+t),_.nb.call(this,r),this.code=e},_.qb(PP,_.nb),_.p1=function(e){var t=void 0!==t&&t,r=typeof e;return null==e?e:"bigint"===r?String((0,_.qL)(64,e)):_.qK(e)?"string"===r?_.oN(e):t?_.qN(e):_.pN(e):void 0},_.q1=function(e){return function(t){return _.yL(e,t)}},_.r1=function(e,t,r){var n;return r=void 0===r?_.uL:r,null!=(n=_.VN(e,t))?n:r},hea=function(e,t){var r=gea;return Object.prototype.hasOwnProperty.call(r,e)?r[e]:r[e]=t(e)},gea={},_.D4=function(e){return hea(e,(function(){return _.Kc(_.Xd,e)>=0}))},_.E4=function(e,t){e.src=_.oc(t).toString()},F4=function(e){_.Hj.call(this),this.va=e,this.Xia=_.xj(this.va,"focus",this,!0),this.Yia=_.xj(this.va,"blur",this,!0)},J4=function(e,t){var r=iea++,n={vja:{id:r,Qh:e.measure,context:t},Eja:{id:r,Qh:e.nZ,context:t},state:{},wd:void 0,zB:!1};return function(){arguments.length>0?(n.wd||(n.wd=[]),n.wd.length=0,n.wd.push.apply(n.wd,arguments),n.wd.push(n.state)):n.wd&&0!=n.wd.length?(n.wd[0]=n.state,n.wd.length=1):n.wd=[n.state],n.zB||(n.zB=!0,G4[H4].push(n)),I4||(I4=!0,window.requestAnimationFrame(jea))}},jea=function(){I4=!1;var e=G4[H4],t=e.length;H4=(H4+1)%2;for(var r,n=0;n<t;++n){var o=(r=e[n]).vja;r.zB=!1,o.Qh&&o.Qh.apply(o.context,r.wd)}for(n=0;n<t;++n)o=(r=e[n]).Eja,r.zB=!1,o.Qh&&o.Qh.apply(o.context,r.wd),r.state={};e.length=0},kea=function(e,t){this.va=e,this.Gb=t},K4=function(e,t){_.CC.call(this,t),this.doa=!!e,this.Cr=null,this.I0=J4({nZ:this.Kj},this),J4({nZ:this.K4},this)},_.P4=function(e,t,r){K4.call(this,t,r),this.hk=e||"shr-bb-shr-cb",this.Ih=_.L4(_.L4(new _.M4,_.N4,!0),O4,!1,!0)},_.Q4=function(e){return _.ks(e)},_.R4=function(e){return e},_.S4=function(e,t){var r=_.as(e,t+"Left"),n=_.as(e,t+"Right"),o=_.as(e,t+"Top");return e=_.as(e,t+"Bottom"),new _.Nr(parseFloat(o),parseFloat(n),parseFloat(e),parseFloat(r))},_.T4=function(e,t){var r,n=void 0===n?0:n;return null!=(r=_.vL(e,t,void 0,void 0,_.hN))?r:n},_.U4=function(e,t,r,n){return _.QN(e,t,_.PN(e,n,r),void 0)},_.qb(F4,_.Hj),F4.prototype.handleEvent=function(e){var t=new _.jj(e.Bf);t.type="focusin"==e.type||"focus"==e.type?"focusin":"focusout",this.dispatchEvent(t)},F4.prototype.wa=function(){F4.N.wa.call(this),_.Ej(this.Xia),_.Ej(this.Yia),delete this.va},_.V4=function(e,t,r){_.Hj.call(this),this.target=e,this.handle=t||e,this.AJ=r||new _.ps(NaN,NaN,NaN,NaN),this.Ub=_.be(e),this.Ja=new _.Gs(this),_.$i(this,this.Ja),this.deltaY=this.deltaX=this.nl=this.ll=this.screenY=this.screenX=this.clientY=this.clientX=0,this.Nh=!0,this.Pn=!1,_.xj(this.handle,["touchstart","mousedown"],this.B3,!1,this),this.yE=lea},_.qb(_.V4,_.Hj);var lea=_.fb.document&&_.fb.document.documentElement&&!!_.fb.document.documentElement.setCapture&&!!_.fb.document.releaseCapture;_.V4.prototype.yb=function(){return this.Ja},_.W4=function(e,t){e.AJ=t||new _.ps(NaN,NaN,NaN,NaN)},_.g=_.V4.prototype,_.g.Fd=function(e){this.Nh=e},_.g.wa=function(){_.V4.N.wa.call(this),_.Ij(this.handle,["touchstart","mousedown"],this.B3,!1,this),this.Ja.removeAll(),this.yE&&this.Ub.releaseCapture(),this.handle=this.target=null},_.g.B3=function(e){var t="mousedown"==e.type;if(!this.Nh||this.Pn||t&&(0!=e.Bf.button||_.Hd&&e.ctrlKey))this.dispatchEvent("earlycancel");else if(this.dispatchEvent(new X4("start",this,e.clientX,e.clientY,e))){this.Pn=!0,t&&e.preventDefault();var r=(t=this.Ub).documentElement,n=!this.yE;this.Ja.ua(t,["touchmove","mousemove"],this.Uga,{capture:n,passive:!1}),this.Ja.ua(t,["touchend","mouseup"],this.Mz,n),this.yE?(r.setCapture(!1),this.Ja.ua(r,"losecapture",this.Mz)):this.Ja.ua(_.ke(t),"blur",this.Mz),this.Qla&&this.Ja.ua(this.Qla,"scroll",this.tw,n),this.clientX=this.ll=e.clientX,this.clientY=this.nl=e.clientY,this.screenX=e.screenX,this.screenY=e.screenY,this.deltaX=this.target.offsetLeft,this.deltaY=this.target.offsetTop,this.BK=_.Rr(_.ce(this.Ub))}},_.g.Mz=function(e,t){this.Ja.removeAll(),this.yE&&this.Ub.releaseCapture(),this.Pn?(this.Pn=!1,this.dispatchEvent(new X4("end",this,e.clientX,e.clientY,e,Y4(this,this.deltaX),Z4(this,this.deltaY),t||"touchcancel"==e.type))):this.dispatchEvent("earlycancel")},_.g.Uga=function(e){if(this.Nh){var t=e.clientX-this.clientX,r=e.clientY-this.clientY;if(this.clientX=e.clientX,this.clientY=e.clientY,this.screenX=e.screenX,this.screenY=e.screenY,!this.Pn){var n=this.ll-this.clientX,o=this.nl-this.clientY;if(n*n+o*o>0){if(!this.dispatchEvent(new X4("start",this,e.clientX,e.clientY,e)))return void(this.isDisposed()||this.Mz(e));this.Pn=!0}}t=(r=$4(this,t,r)).x,r=r.y,this.Pn&&this.dispatchEvent(new X4("beforedrag",this,e.clientX,e.clientY,e,t,r))&&(a5(this,e,t,r),e.preventDefault())}};var $4=function(e,t,r){var n=_.Rr(_.ce(e.Ub));return t+=n.x-e.BK.x,r+=n.y-e.BK.y,e.BK=n,e.deltaX+=t,e.deltaY+=r,new _.Lr(Y4(e,e.deltaX),Z4(e,e.deltaY))};_.V4.prototype.tw=function(e){var t=$4(this,0,0);e.clientX=this.clientX,e.clientY=this.clientY,a5(this,e,t.x,t.y)};var a5=function(e,t,r,n){e.target.style.left=r+"px",e.target.style.top=n+"px",e.dispatchEvent(new X4("drag",e,t.clientX,t.clientY,t,r,n))},Y4=function(e,t){var r=e.AJ;return e=isNaN(r.left)?null:r.left,r=isNaN(r.width)?0:r.width,Math.min(null!=e?e+r:1/0,Math.max(null!=e?e:-1/0,t))},Z4=function(e,t){var r=e.AJ;return e=isNaN(r.top)?null:r.top,r=isNaN(r.height)?0:r.height,Math.min(null!=e?e+r:1/0,Math.max(null!=e?e:-1/0,t))},X4=function(e,t,r,n,o,i,a){_.ij.call(this,e),this.clientX=r,this.clientY=n,this.EF=o,this.left=void 0!==i?i:t.deltaX,this.top=void 0!==a?a:t.deltaY};_.qb(X4,_.ij);var b5=function(e){this.Ra=new Map;var t=arguments.length;if(t>1){if(t%2)throw Error("i");for(var r=0;r<t;r+=2)this.set(arguments[r],arguments[r+1])}else e&&this.addAll(e)};_.g=b5.prototype,_.g.jc=function(){return this.Ra.size},_.g.Ye=function(){return Array.from(this.Ra.values())},_.g.mg=function(){return Array.from(this.Ra.keys())},_.g.Kl=function(e){return this.Ra.has(e)},_.g.equals=function(e,t){var r=this;return t=void 0===t?function(e,t){return e===t}:t,this===e||this.Ra.size==e.jc()&&this.mg().every((function(n){return t(r.Ra.get(n),e.get(n))}))},_.g.isEmpty=function(){return 0==this.Ra.size},_.g.clear=function(){this.Ra.clear()},_.g.remove=function(e){return this.Ra.delete(e)},_.g.get=function(e,t){return this.Ra.has(e)?this.Ra.get(e):t},_.g.set=function(e,t){return this.Ra.set(e,t),this},_.g.addAll=function(e){if(e instanceof b5)for(var t=(e=_.Ea(e.Ra)).next();!t.done;t=e.next()){var r=_.Ea(t.value);t=r.next().value,r=r.next().value,this.Ra.set(t,r)}else if(e)for(t=(e=_.Ea(Object.entries(e))).next();!t.done;t=e.next())t=(r=_.Ea(t.value)).next().value,r=r.next().value,this.Ra.set(t,r)},_.g.forEach=function(e,t){var r=this;t=void 0===t?this:t,this.Ra.forEach((function(n,o){return e.call(t,n,o,r)}))},_.g.clone=function(){return new b5(this)},function(){for(var e,t=["ms","moz","webkit","o"],r=0;e=t[r]&&!_.fb.requestAnimationFrame;++r)_.fb.requestAnimationFrame=_.fb[e+"RequestAnimationFrame"],_.fb.cancelAnimationFrame=_.fb[e+"CancelAnimationFrame"]||_.fb[e+"CancelRequestAnimationFrame"];if(!_.fb.requestAnimationFrame){var n=0;_.fb.requestAnimationFrame=function(e){var t=(new Date).getTime(),r=Math.max(0,16-(t-n));return n=t+r,_.fb.setTimeout((function(){e(t+r)}),r)},_.fb.cancelAnimationFrame||(_.fb.cancelAnimationFrame=function(e){clearTimeout(e)})}}();var G4=[[],[]],H4=0,I4=!1,iea=0;_.qb(K4,_.CC),_.g=K4.prototype,_.g.ZG=null,_.g.lc=!1,_.g.hb=null,_.g.nb=null,_.g.qh=null,_.g.xF=!1,_.g.Eb=function(){return"shr-a-shr-ke"},_.g.dj=function(){return this.hb},_.g.Ba=function(){K4.N.Ba.call(this);var e=this.U(),t=_.Ic(this.Eb()).split(" ");_.wC(e,t),_.EC(e,!0),_.ls(e,!1),this.doa&&!this.nb&&(e=this.Ha().Ba("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"}),_.E4(e,_.ft),this.nb=e,this.nb.className=this.Eb()+"-shr-cc",_.ls(this.nb,!1),_.ts(this.nb,0)),this.hb||(this.hb=this.Ha().Ba("DIV",this.Eb()+"-shr-cc"),_.ls(this.hb,!1)),this.qh||(this.qh=this.Ha().createElement("SPAN"),_.ls(this.qh,!1),_.EC(this.qh,!0),this.qh.style.position="absolute")},_.g.H0=function(){this.xF=!1},_.g.vc=function(){this.nb&&_.se(this.nb,this.U()),_.se(this.hb,this.U()),K4.N.vc.call(this),_.Is(this.qh,this.U()),this.ZG=new F4(this.Ha().wb()),this.yb().ua(this.ZG,"focusin",this.lK),c5(this,!1)},_.g.ee=function(){this.isVisible()&&this.setVisible(!1),_.Xi(this.ZG),K4.N.ee.call(this),_.te(this.nb),_.te(this.hb),_.te(this.qh)},_.g.setVisible=function(e){e!=this.lc&&(this.fp&&this.fp.stop(),this.mq&&this.mq.stop(),this.ep&&this.ep.stop(),this.lq&&this.lq.stop(),this.qb&&c5(this,e),e?this.WN():this.Fv())};var c5=function(e,t){if(e.iZ||(e.iZ=new kea(e.va,e.Gb)),e=e.iZ,t){e.kr||(e.kr=[]),t=e.Gb.mH(e.Gb.wb().body);for(var r=0;r<t.length;r++){var n=t[r];n==e.va||_.pC(n,"hidden")||(_.oC(n,"hidden",!0),e.kr.push(n))}}else if(e.kr){for(t=0;t<e.kr.length;t++)e.kr[t].removeAttribute("aria-hidden");e.kr=null}};K4.prototype.WN=function(){if(this.dispatchEvent("beforeshow")){try{this.Cr=this.Ha().wb().activeElement}catch(e){}this.K4(),this.yb().ua(this.Ha().getWindow(),"resize",this.Kj).ua(this.Ha().getWindow(),"orientationchange",this.I0),d5(this,!0),this.focus(),this.lc=!0,this.fp&&this.mq?(_.wj(this.fp,"end",this.fC,!1,this),this.mq.play(),this.fp.play()):this.fC()}},K4.prototype.K4=function(){this.Kj(),this.Rd()},K4.prototype.Fv=function(){if(this.dispatchEvent("beforehide")){this.yb().zc(this.Ha().getWindow(),"resize",this.Kj).zc(this.Ha().getWindow(),"orientationchange",this.I0),this.lc=!1,this.ep&&this.lq?(_.wj(this.ep,"end",this.qw,!1,this),this.lq.play(),this.ep.play()):this.qw();e:{try{var e=this.Ha(),t=e.wb().body,r=e.wb().activeElement||t;if(!this.Cr||this.Cr==t){this.Cr=null;break e}(r==t||e.contains(this.U(),r))&&this.Cr.focus()}catch(e){}this.Cr=null}}};var d5=function(e,t){e.nb&&_.ls(e.nb,t),e.hb&&_.ls(e.hb,t),_.ls(e.U(),t),_.ls(e.qh,t)};_.g=K4.prototype,_.g.fC=function(){this.dispatchEvent("show")},_.g.qw=function(){d5(this,!1),this.dispatchEvent("hide")},_.g.isVisible=function(){return this.lc},_.g.focus=function(){this.cU()},_.g.Kj=function(){this.nb&&_.ls(this.nb,!1),this.hb&&_.ls(this.hb,!1);var e=this.Ha().wb(),t=e5(this),r=Math.max(t.width,Math.max(e.body.scrollWidth,e.documentElement.scrollWidth));e=Math.max(t.height,Math.max(e.body.scrollHeight,e.documentElement.scrollHeight)),this.nb&&(_.ls(this.nb,!0),_.js(this.nb,r,e)),this.hb&&(_.ls(this.hb,!0),_.js(this.hb,r,e))},_.g.Rd=function(){var e;if("fixed"==_.rs(this.U()))var t=e=0;else e=(t=_.Rr(this.Ha())).x,t=t.y;var r=_.Q4(this.U()),n=e5(this);e=Math.max(e+n.width/2-r.width/2,0),t=Math.max(t+n.height/2-r.height/2,0),_.ss(this.U(),e,t),_.ss(this.qh,e,t)},_.g.lK=function(e){this.xF?this.H0():e.target==this.qh&&_.Jy(this.cU,0,this)},_.g.cU=function(){try{this.U().focus()}catch(e){}};var e5=function(e){return e=e.Ha().wb(),_.ie(_.ke(e)||window)},k5,O4,p5,q5,mea,nea;K4.prototype.wa=function(){_.Xi(this.fp),this.fp=null,_.Xi(this.ep),this.ep=null,_.Xi(this.mq),this.mq=null,_.Xi(this.lq),this.lq=null,K4.N.wa.call(this)},_.qb(_.P4,K4),_.g=_.P4.prototype,_.g.HG=!0,_.g.ZA=!0,_.g.TJ=!0,_.g.vG=!0,_.g.wF=.5,_.g.jO="",_.g.Kd=null,_.g.nk=null,_.g.On=!1,_.g.Pp=null,_.g.Zs=null,_.g.iO=null,_.g.wh=null,_.g.Ue=null,_.g.Hh=null,_.g.Ew="dialog",_.g.Eb=function(){return this.hk},_.g.setTitle=function(e){this.jO=e,this.Zs&&_.xe(this.Zs,e)},_.g.getTitle=function(){return this.jO},_.g.getContent=function(){return null!=this.Kd?_.jc(this.Kd).toString():""},_.g.io=function(){return this.Ew},_.g.JD=function(e){this.Ew=e},_.f5=function(e){e.U()||e.Aa()},_.P4.prototype.Za=function(){return _.f5(this),this.Ue},_.g5=function(e){return _.f5(e),e.U()},_.P4.prototype.dj=function(){return _.f5(this),_.P4.N.dj.call(this)},_.h5=function(e,t){e.wF=t,e.U()&&(t=e.dj())&&_.ts(t,e.wF)},_.i5=function(e,t){if(e.TJ=t,e.qb){var r=e.Ha(),n=e.dj(),o=e.nb;t?(o&&r.WW(o,e.U()),r.WW(n,e.U())):(r.removeNode(o),r.removeNode(n))}e.isVisible()&&c5(e,t)},_.P4.prototype.setDraggable=function(e){this.vG=e,j5(this,e&&this.qb)},_.P4.prototype.NV=function(){},_.P4.prototype.getDraggable=function(){return this.vG};var j5=function(e,t){var r=_.Ic(e.hk+"-shr-s-shr-ie").split(" ");e.U()&&(t?_.wC(e.Pp,r):_.yC(e.Pp,r)),t&&!e.nk?(t=new _.V4(e.U(),e.Pp),e.nk=t,_.wC(e.Pp,r),_.xj(e.nk,"start",e.hM,!1,e),_.xj(e.nk,"drag",e.NV,!1,e)):!t&&e.nk&&(e.nk.dispose(),e.nk=null)};_.g=_.P4.prototype,_.g.Ba=function(){_.P4.N.Ba.call(this);var e=this.U(),t=this.Ha();this.iO=this.getId();var r=this.getId()+".contentEl";this.Pp=t.Ba("DIV",this.hk+"-shr-s",this.Zs=t.Ba("SPAN",{className:this.hk+"-shr-s-shr-t",id:this.iO},this.jO),this.wh=t.Ba("SPAN",this.hk+"-shr-s-shr-dc")),_.qe(e,this.Pp,this.Ue=t.Ba("DIV",{className:this.hk+"-shr-zd",id:r}),this.Hh=t.Ba("DIV",this.hk+"-shr-ge")),_.mC(this.Zs,"heading"),_.mC(this.wh,"button"),_.EC(this.wh,!0),_.oC(this.wh,"label","Close"),_.mC(e,this.io()),_.oC(e,"labelledby",this.iO||""),this.Kd&&_.Oc(this.Ue,this.Kd),_.ls(this.wh,this.ZA),this.Ih&&((e=this.Ih).va=this.Hh,e.Aa()),_.ls(this.Hh,!!this.Ih),_.h5(this,this.wF)},_.g.vc=function(){_.P4.N.vc.call(this),this.yb().ua(this.U(),"keydown",this.NZ).ua(this.U(),"keypress",this.NZ),this.yb().ua(this.Hh,"click",this.Pja),j5(this,this.vG),this.yb().ua(this.wh,"click",this.jka);var e=this.U();_.mC(e,this.io()),""!==this.Zs.id&&_.oC(e,"labelledby",this.Zs.id),this.TJ||_.i5(this,!1)},_.g.ee=function(){this.isVisible()&&this.setVisible(!1),j5(this,!1),_.P4.N.ee.call(this)},_.g.setVisible=function(e){e!=this.isVisible()&&(this.qb||this.Aa(),_.P4.N.setVisible.call(this,e))},_.g.fC=function(){_.P4.N.fC.call(this),this.dispatchEvent("aftershow")},_.g.qw=function(){_.P4.N.qw.call(this),this.dispatchEvent("afterhide"),this.On&&this.dispose()},_.g.hM=function(){var e=this.Ha().wb(),t=_.ie(_.ke(e)||window),r=Math.max(e.body.scrollWidth,t.width);e=Math.max(e.body.scrollHeight,t.height);var n=_.Q4(this.U());"fixed"==_.rs(this.U())?_.W4(this.nk,new _.ps(0,0,Math.max(0,t.width-n.width),Math.max(0,t.height-n.height))):_.W4(this.nk,new _.ps(0,0,r-n.width,e-n.height))},_.g.jka=function(){k5(this)},k5=function(e){if(e.ZA){var t=e.Ih,r=t&&t.Zy;r?(t=t.get(r),e.dispatchEvent(new l5(r,t))&&e.setVisible(!1)):e.setVisible(!1)}},_.m5=function(e){e.ZA=!1,e.wh&&_.ls(e.wh,e.ZA)},_.P4.prototype.dM=_.da(54),_.P4.prototype.wa=function(){this.Hh=this.wh=null,_.P4.N.wa.call(this)},_.n5=function(e,t){e.Ih=t,e.Hh&&(e.Ih?((t=e.Ih).va=e.Hh,t.Aa()):_.Oc(e.Hh,_.td),_.ls(e.Hh,!!e.Ih))},_.P4.prototype.Pja=function(e){e:{for(e=e.target;null!=e&&e!=this.Hh;){if("BUTTON"==e.tagName)break e;e=e.parentNode}e=null}if(e&&!e.disabled){e=e.name;var t=this.Ih.get(e);this.dispatchEvent(new l5(e,t))&&this.setVisible(!1)}},_.P4.prototype.NZ=function(e){var t=!1,r=!1,n=this.Ih,o=e.target;if("keydown"==e.type){if(this.HG&&27==e.keyCode){var i=n&&n.Zy;o="SELECT"==o.tagName&&!o.disabled,i&&!o?(r=!0,t=n.get(i),t=this.dispatchEvent(new l5(i,t))):o||(t=!0)}else if(9==e.keyCode&&e.shiftKey&&o==this.U()){this.xF=!0;try{this.qh.focus()}catch(e){}_.Jy(this.H0,0,this)}}else if(13==e.keyCode){if("BUTTON"!=o.tagName||o.disabled){if(o==this.wh)k5(this);else if(n){var a=n.sz,s=a&&_.o5(n,a);o=("TEXTAREA"==o.tagName||"SELECT"==o.tagName||"A"==o.tagName)&&!o.disabled,!s||s.disabled||o||(i=a)}}else i=o.name;i&&n&&(r=!0,t=this.dispatchEvent(new l5(i,String(n.get(i)))))}else o!=this.wh||32!=e.keyCode&&" "!=e.key||k5(this);(t||r)&&(e.stopPropagation(),e.preventDefault()),t&&this.setVisible(!1)};var l5=function(e,t){this.type="dialogselect",this.key=e,this.caption=t};_.qb(l5,_.ij),_.M4=function(e){b5.call(this),this.Gb=e||_.ce(),this.hk="shr-a-shr-ac",this.Zy=this.va=this.sz=null},_.qb(_.M4,b5),_.M4.prototype.clear=function(){b5.prototype.clear.call(this),this.sz=this.Zy=null},_.M4.prototype.set=function(e,t,r,n){return b5.prototype.set.call(this,e,t),r&&(this.sz=e),n&&(this.Zy=e),this},_.L4=function(e,t,r,n){return e.set(t.key,t.caption,r,n)},_.M4.prototype.Aa=function(){if(this.va){_.Oc(this.va,_.td);var e=_.ce(this.va);this.forEach((function(t,r){t=e.Ba("BUTTON",{name:r},t),r==this.sz&&(t.className=this.hk+"-shr-ic"),this.va.appendChild(t)}),this)}},_.M4.prototype.U=function(){return this.va},_.M4.prototype.Ha=function(){return this.Gb},_.o5=function(e,t){e=(e.va||document).getElementsByTagName("BUTTON");for(var r,n=0;r=e[n];n++)if(r.name==t||r.id==t)return r;return null},_.N4={key:"ok",caption:"OK"},O4={key:"cancel",caption:"Cancel"},p5={key:"yes",caption:"Yes"},q5={key:"no",caption:"No"},mea={key:"save",caption:"Save"},nea={key:"continue",caption:"Continue"},"undefined"!=typeof document&&(_.L4(new _.M4,_.N4,!0,!0),_.L4(_.L4(new _.M4,_.N4,!0),O4,!1,!0),_.L4(_.L4(new _.M4,p5,!0),q5,!1,!0),_.L4(_.L4(_.L4(new _.M4,p5),q5,!0),O4,!1,!0),_.L4(_.L4(_.L4(new _.M4,nea),mea),O4,!0,!0));var yfa=function(e){for(var t="string"==typeof e?e.split(""):e,r=e.length-1;r>=0;r--)if(r in t&&_.R4.call(void 0,t[r],r,e))return r;return-1},S8=function(e){this.action=e,this.wfv=!1},T8=function(e,t){S8.call(this,"set-drive-options"),this.appId=e,this.appOrigin=t},U8=function(e){S8.call(this,"visibility"),this.visible=e},V8=function(e,t,r){_.P4.call(this,e,t,r)},W8=function(e){return(e=e&&e.getWindow()||window).gadgets&&e.gadgets.rpc},zfa=function(e,t){var r=t&&t.getWindow()||window;if(W8(t))e();else if(X8)X8.push(e);else var n=X8=[e],o=r.setInterval((function(){if(W8(t)){r.clearInterval(o);for(var e=0;e<n.length;e++)n[e]();X8=null}}),100)},Afa=function(e,t){var r=new Y8(e);_.$i(t,r);var n={passive:!1};t.ua(r,"mousewheel",(function(t){Z8(e,t)}),n).ua(e,"scroll",(function(t){Z8(e,t)}),n)},Z8=function(e,t){var r;e:{for(r=t.target;r;){if(1==r.nodeType){var n=_.bs(r,"overflowY");if("auto"==n||"scroll"==n)break e}r=r.parentNode}r=null}(!r||!_.we(e,r)||r.scrollHeight==r.clientHeight||t.deltaY>0&&Math.abs(r.scrollTop-(r.scrollHeight-r.clientHeight))<=1||t.deltaY<0&&0==r.scrollTop)&&(t.preventDefault(),t.stopPropagation())},Bfa=function(){var e;if(e=void 0===e?window:e)return e!==e.parent&&e.hasOwnProperty("pangolinIframeGlobals");var t=Error("gd");return setTimeout((function(){throw t}),1),!1},b9=function(e,t,r,n,o,i,a,s,l,c){if(s=void 0!==s&&s,l=void 0!==l&&l,c=void 0!==c&&c,_.P4.call(this,void 0,void 0,void 0),_.P4.call(this,i?i+" picker shr-bb-shr-cb":"picker shr-bb-shr-cb",!0,r),r=e.search(_.fu),!((i=_.Wt(e,"protocol",r))<0)){var u=e.indexOf("&",i);(u<0||u>r)&&(u=r),decodeURIComponent(e.slice(i+9,-1!==u?u:0).replace(/\+/g," "))}this.DI=new $8,this.rn=_.du(),this.Ym=_.du(),(e=_.ru(e)).Wh("hostId"),this.P4=!l&&!Bfa(),s&&_.qu(e,"fv2","true"),this.setUrl(e.toString()),this.L_=n,this.K_=o,void 0!==n||void 0!==o?n=!0:(n=_.ru(e.toString()).Wh("hostId"),a9||(a9=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),n=!a9.has(n)),this.Nca=n,this.Yz=a||this.Ha(),this.Au=c,t&&(a=this.Yz,t="true"==_.ru(this.Id).Wh("grugl")?Cfa:Dfa,W8(a)||(c=(a=a||_.ce(document)).createElement("SCRIPT"),_.Fh(c,t),c.type="text/javascript",a.wb().body.appendChild(c))),a=null,(c=(t=e.toString()).indexOf("/picker?"))>-1?a=t.substring(0,c+8-1):_.Gj(t,"/picker")&&(a=t),a&&this.Rj(a+"/resources/rpc_relay.html"),this.HG=!1,_.n5(this,null),this.Db=null},d9=function(e){c9.call(this,e)},f9=function(e){e9.call(this,"upload"),this.Wa.query=e},g9=function(){f9.call(this,"docs")},h9=function(e){e9.call(this,e||"all")};_.P4.prototype.dM=_.rb(54,(function(e){this.On=e})),_.ae.prototype.eM=_.rb(4,(function(e){this.Ub=e}));var i9=function(e){return _.f5(e),e.Hh},Efa=function(e){return new _.pk((function(t,r){var n=e.length,o=[];if(n)for(var i,a=function(e){t(e)},s=function(e,t){n--,o[e]=t,0==n&&r(o)},l=0;l<e.length;l++)i=e[l],_.wk(i,a,_.kb(s,l));else t(void 0)}))},j9=function(e){return _.S4(e,"margin")},Ffa=function(){var e=null;return new _.pk((function(t,r){-1==(e=_.Jy((function(){t(void 0)}),5e3))&&r(Error("ya"))})).iE((function(t){throw _.Ky(e),t}))},l9=function(e,t){var r=e.W;return _.gL(e,r,0|r[_.KJ],k9,t,3).length},m9=function(e){var t,r=void 0===r?_.uL:r;return null!=(t=_.KP(e,23))?t:r},n9=function(e,t,r){return _.eL(e,t,null==r?r:_.iN(r),0)},o9=function(e){this.W=_.MK(e)};_.t(o9,_.xL),o9.prototype.getSeconds=function(){return _.r1(this,1)},o9.prototype.setSeconds=function(e){return _.eL(this,1,_.tN(e),"0")};var p9=function(e){var t=Number,r=void 0===r?"0":r,n=_.p1(_.vL(e,1,void 0,void 0,_.uN));return t=t(null!=n?n:r),e=_.XN(e,2),new Date(1e3*t+e/1e6)},q9=function(e){return _.Fd&&(_.Hd||_.Jd)&&e%40!=0?e:e/40},r9=function(e,t,r,n){_.jj.call(this,t),this.type="mousewheel",this.detail=e,this.deltaX=r,this.deltaY=n};_.qb(r9,_.jj);var Y8=function(e,t){_.Hj.call(this),this.va=e,e=_.ve(this.va)?this.va:this.va?this.va.body:null,this.Jia=!!e&&_.qs(e),this.wY=_.xj(this.va,_.Ed?"DOMMouseScroll":"mousewheel",this,t)};_.qb(Y8,_.Hj),Y8.prototype.handleEvent=function(e){var t=0,r=0,n=e.Bf;"mousewheel"==n.type?(e=q9(-n.wheelDelta),void 0!==n.wheelDeltaX?(t=q9(-n.wheelDeltaX),r=q9(-n.wheelDeltaY)):r=e):((e=n.detail)>100?e=3:e<-100&&(e=-3),void 0!==n.axis&&n.axis===n.HORIZONTAL_AXIS?t=e:r=e),"number"==typeof this.RY&&(t=Math.min(Math.max(t,-this.RY),this.RY)),"number"==typeof this.SY&&(r=Math.min(Math.max(r,-this.SY),this.SY)),this.Jia&&(t=-t),t=new r9(e,n,t,r),this.dispatchEvent(t)},Y8.prototype.wa=function(){Y8.N.wa.call(this),_.Ej(this.wY),this.wY=null};var s9=function(e){this.W=_.MK(e)};_.t(s9,_.xL),s9.prototype.getId=function(){return _.YN(this,1)},s9.prototype.Oe=function(e){return _.eL(this,1,_.wN(e),"")};var t9=function(e){this.W=_.MK(e)};_.t(t9,_.xL),t9.prototype.getSeconds=function(){return _.r1(this,1)},t9.prototype.setSeconds=function(e){return _.eL(this,1,_.tN(e),"0")};var u9=function(e){this.W=_.MK(e)};_.t(u9,_.xL),_.g=u9.prototype,_.g.getUrl=function(){return _.YN(this,1)},_.g.setUrl=function(e){return _.eL(this,1,_.wN(e),"")},_.g.Nc=function(){return _.XN(this,2)},_.g.Sd=function(e){return _.eL(this,2,null==e?e:_.kN(e),0)},_.g.Qb=function(){return _.XN(this,3)},_.g.Pe=function(e){return _.eL(this,3,null==e?e:_.kN(e),0)};var v9=function(e){this.W=_.MK(e)};_.t(v9,_.xL),v9.prototype.getDuration=function(){return _.QN(this,t9,2)};var w9=function(e){this.W=_.MK(e)};_.t(w9,_.xL);var x9=function(e){this.W=_.MK(e)};_.t(x9,_.xL),x9.prototype.Xn=function(e){return _.LP(this,1,e)};var y9=function(e){this.W=_.MK(e)};_.t(y9,_.xL);var z9=function(e){this.W=_.MK(e)};_.t(z9,_.xL),z9.prototype.MU=function(){return _.YN(this,5)};var A9=function(e){this.W=_.MK(e)};_.t(A9,_.xL);var B9=function(e){this.W=_.MK(e)};_.t(B9,_.xL);var C9=function(e){this.W=_.MK(e)};_.t(C9,_.xL),C9.prototype.CA=function(){return _.YN(this,1)};var D9=function(e){this.W=_.MK(e)};_.t(D9,_.xL);var E9=function(e){this.W=_.MK(e)};_.t(E9,_.xL);var F9=function(e){this.W=_.MK(e)};_.t(F9,_.xL);var G9=[2,4,5,6,7],H9=function(e){this.W=_.MK(e)};_.t(H9,_.xL);var k9=function(e){this.W=_.MK(e)};_.t(k9,_.xL),_.g=k9.prototype,_.g.getId=function(){return _.QN(this,s9,1)},_.g.Oe=function(e){return _.TN(this,1,e)},_.g.im=function(){var e=this.W;return _.fL(e,0|e[_.KJ],s9,1)},_.g.getName=function(){return _.YN(this,2)},_.g.i2=function(e){return _.eL(this,2,_.wN(e),"")},_.g.aV=function(){return _.YN(this,4)},_.g.getType=function(){return _.ZN(this,6)},_.g.Td=function(e){return n9(this,6,e)},_.g.getMimeType=function(){return _.YN(this,7)},_.g.getUrl=function(){return _.YN(this,8)},_.g.setUrl=function(e){return _.eL(this,8,_.wN(e),"")},_.g.yH=function(){return _.YN(this,11)};var I9=function(e){return _.SN(e,u9,10,_.BN())};_.g=k9.prototype,_.g.qV=function(){return _.QN(this,v9,34)},_.g.iW=function(){return _.wL(this,v9,34)},_.g.m2=function(e){return _.MP(this,39,e)},_.g.D2=function(e){return _.MP(this,44,e)},_.g.Yq=function(){return _.r1(this,45)},_.g.J2=function(e){return _.eL(this,45,_.tN(e),"0")};var J9=function(e){this.W=_.MK(e)};_.t(J9,_.xL),J9.prototype.qV=function(){return _.QN(this,v9,3)},J9.prototype.iW=function(){return _.wL(this,v9,3)},J9.prototype.MU=function(){return _.YN(this,10)};var K9=function(e){this.W=_.MK(e)};_.t(K9,_.xL),K9.prototype.tA=function(){return _.YN(this,2)},K9.prototype.yc=function(e){return _.eL(this,2,_.wN(e),"")};var L9=function(e){this.W=_.MK(e)};_.t(L9,_.xL),_.g=L9.prototype,_.g.getStatus=function(){return _.ZN(this,1)},_.g.setStatus=function(e){return n9(this,1,e)},_.g.qA=function(e){return _.SN(this,k9,2,_.BN(e))},_.g.Yf=function(e){_.hL(this,2,k9,void 0,e)},_.g.setItem=function(e,t){return _.RN(this,2,k9,e,t)},_.g.removeItem=function(e){return _.JP(this,2,k9,e)},_.g.Vh=function(){return l9(this,2)};var M9=function(e){this.W=_.MK(e)};_.t(M9,_.xL),_.g=M9.prototype,_.g.VL=function(e){return n9(this,1,e)},_.g.getVisible=function(){return _.XO(this,5)},_.g.setVisible=function(e){return _.MP(this,5,e)},_.g.qA=function(e){return _.SN(this,k9,7,_.BN(e))},_.g.Yf=function(e){_.hL(this,7,k9,void 0,e)},_.g.setItem=function(e,t){return _.RN(this,7,k9,e,t)},_.g.removeItem=function(e){return _.JP(this,7,k9,e)},_.g.Vh=function(){return l9(this,7)},_.g.getQuery=function(){return _.YN(this,8)},_.g.lb=function(e){return _.eL(this,8,_.wN(e),"")},_.g.aA=function(){return _.YN(this,9)},_.g.Ap=function(e){return _.eL(this,9,_.wN(e),"")};var N9=function(e){this.W=_.MK(e)};_.t(N9,_.xL),_.g=N9.prototype,_.g.VL=function(e){return n9(this,1,e)},_.g.qA=function(e){return _.SN(this,k9,4,_.BN(e))},_.g.Yf=function(e){_.hL(this,4,k9,void 0,e)},_.g.setItem=function(e,t){return _.RN(this,4,k9,e,t)},_.g.removeItem=function(e){return _.JP(this,4,k9,e)},_.g.Vh=function(){return l9(this,4)};var Gfa=_.q1(N9),O9=new Map;O9.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob"),O9.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob"),O9.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var P9=new Set;P9.add("application/vnd.google-apps.kix"),P9.add("application/vnd.google-apps.ritz"),P9.add("application/vnd.google-apps.punch");var Qfa=function(e,t,r){var n=r&&_.YN(r,1);r=Q9(r);var o=e[0].getId();switch(_.ZN(o,2)){case 13:return Hfa(e,t,n,r);case 3:return Ifa(e,t,n,r);case 10:case 27:return R9(e,t,n,r);case 28:return{action:t,viewToken:r,view:n||"local-upload",v2Translated:!0};case 12:return Jfa(e,t);case 2:return Kfa(e,t,n,r);case 5:return Lfa(e,t,n,r);case 9:return Mfa(e,t,n,r);case 6:return Nfa(e,t,n,r);case 25:return Ofa(e,t,n,r);case 1:return _.wL(e[0],w9,26)?Pfa(e,t,n,r):R9(e,t,n,r);default:return{}}},Nfa=function(e,t,r,n){return{action:t,docs:e=e.map((function(e){return{id:e.getId().getId(),serviceId:"youtube",name:e.getName(),description:_.YN(e,3),type:S9(e),lastEditedUtc:p9(_.QN(e,o9,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:_.YN(e,13),thumbnails:T9(I9(e))}})),viewToken:n,view:r||"youtube",v2Translated:!0}},Kfa=function(e,t,r,n){return{action:t,docs:e.map((function(e){var t=e.getId().getId(),r=e.getMimeType(),n=e.getName(),o=S9(e),i=p9(_.QN(e,o9,12)).getTime(),a=e.getUrl(),s=Number(m9(e)),l=_.YN(e,3),c=e.yH(),u=T9(I9(e)),d=_.QN(e,J9,21);d=_.XO(d,1);var h=_.QN(e,J9,21).MU(),p=_.YN(e,13),f=_.QN(e,J9,21);f=_.XO(f,9);var g=_.QN(e,J9,21);return t={id:t,serviceId:"docs",mimeType:r,name:n,type:o,lastEditedUtc:i,url:a,sizeBytes:s,description:l,iconUrl:c,thumbnails:u,isShared:d,downloadUrl:h,embedUrl:p,copyable:f,resourceKey:g=_.YN(g,11)},r=_.QN(e,J9,21),_.XO(r,12)&&(t.uploadState="success",t.isNew=!0),_.QN(e,J9,21).iW()&&(e=_.QN(e,J9,21).qV(),_.wL(e,t9,2)&&(r=_.WO(e.getDuration().getSeconds()),n=e.getDuration(),n=_.XN(n,2),t.duration=r+n/1e9),t.aspectRatio=_.T4(e,1)),t})),viewToken:n,view:r||"all",extraUserInputs:U9(e),v2Translated:!0}},Lfa=function(e,t,r,n){return{action:t,docs:e=e.map((function(e){var t=_.QN(e,H9,15);return t=_.QN(t,u9,1),_.hL(e,10,u9,void 0,t),{id:e.getId().getId(),serviceId:"web",mimeType:e.getMimeType(),name:e.getName(),type:S9(e),url:e.getUrl(),description:_.YN(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:T9(I9(e))}})),viewToken:n,view:r||"image-search",v2Translated:!0}},Mfa=function(e,t,r,n){return{action:t,docs:e=e.map((function(e){return{serviceId:"url",name:I9(e)[0].getUrl().split("/").pop(),type:S9(e),mimeType:e.getMimeType(),url:e.getUrl(),description:_.YN(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:T9(I9(e))}})),viewToken:n,view:r||"url",v2Translated:!0}},Pfa=function(e,t,r,n){return{action:t,docs:e=e.map((function(e){return{id:e.getId().getId(),serviceId:"picasa",name:e.getName(),type:S9(e),description:_.YN(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:T9(I9(e))}})),viewToken:n,view:r||"webcam",v2Translated:!0}},R9=function(e,t,r,n){return{action:t,docs:e.map(Rfa),viewToken:n,view:Sfa(r||"upload",e),extraUserInputs:U9(e),v2Translated:!0}},Sfa=function(e,t){return t.some((function(e){var t;return 9===(null==(t=_.QN(e,F9,30))?void 0:_.ZN(t,3))}))?e+"/gmailphotos":e},Ifa=function(e,t,r,n){return{action:t,docs:e.map((function(e){var t,r,n={id:e.getId().getId(),serviceId:"picasa",mimeType:e.getMimeType(),name:e.getName(),type:S9(e),lastEditedUtc:p9(_.QN(e,o9,12)).getTime(),url:e.getUrl(),sizeBytes:Number(m9(e)),description:_.YN(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:T9(I9(e)),mediaKey:e.getId().getId(),parentId:e.aV()},o=null==(t=_.QN(e,z9,18))?void 0:_.QN(t,y9,3);return o&&(n.latitude=_.T4(o,1),n.longitude=_.T4(o,2)),e=null==(r=_.QN(e,z9,18))?void 0:_.r1(r,6),(r=null!=e?_.WO(e):void 0)&&(n.version=r),n})),viewToken:n,view:r||"photos",extraUserInputs:U9(e),v2Translated:!0}},Hfa=function(e,t,r,n){return{action:t,docs:e=e.map((function(e){return{id:e.getId().getId(),serviceId:"et",name:I9(e)[0].getUrl().split("/").pop(),description:_.YN(e,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:T9(I9(e),"etjpg")}})),viewToken:n,view:r||"et",v2Translated:!0}},Ofa=function(e,t,r,n){return{action:t,docs:e=e.map((function(e){var t=e.getId().getId(),r=n[2];return{id:t,serviceId:"gmail_themes"!==r.type&&"6226252643674576769"===r.parent?"picasa":"static_themes",name:e.getName(),mimeType:e.getMimeType(),type:S9(e),description:_.YN(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:e.getUrl(),thumbnails:T9(I9(e))}})),viewToken:n,view:r||"photos",v2Translated:!0}},Jfa=function(e,t){return{action:t,docs:e=e.map((function(e){var t=_.QN(e,x9,27);return t=_.HP(t,1,_.BN())[0],{id:e.getId().getId(),serviceId:"contacts",mimeType:e.getMimeType(),name:e.getName(),description:_.YN(e,3),url:"mailto:"+t,thumbnail:[{url:e.yH()}],email:t}})),view:"contacts",v2Translated:!0}},Q9=function(e){if(!e)return{};var t=_.YN(e,3);return t=t&&JSON.parse(t)||{},{0:_.YN(e,1),1:e.tA(),2:t}},T9=function(e,t){return t=void 0===t?"":t,e.length?("etjpg"==t&&(e=e.filter((function(e){return e.getUrl().includes("w1200-h300")}))),e.map((function(e){return{url:e.getUrl(),height:e.Nc(),width:e.Qb(),type:t}}))):null},U9=function(e){return{isAttachment:e.some((function(e){return _.XO(e,31)}))}},Rfa=function(e){var t,r={id:null==(t=e.getId())?void 0:t.getId(),serviceId:Tfa(e),mimeType:e.getMimeType(),name:e.getName(),type:S9(e),sizeBytes:Number(m9(e)),description:_.YN(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:T9(I9(e)),isNew:!0};if(t=_.QN(e,F9,30)){r.dataUrl=_.YN(t,1)||null;e:{var n=_.QN(e,F9,30);switch(_.ZN(n,3)){case 9:n={remoteRefs:(n=_.U4(n,D9,2,G9))&&_.YN(n,1)};break e;case 10:case 15:n=_.U4(n,C9,4,G9);var o=I9(e);n={photo_id:n&&n.CA(),media_key:e.getId().getId(),media_type:1===e.getType()?1:2,image_url:o&&o[0].getUrl(),width:o&&String(o[0].Qb()),height:o&&String(o[0].Nc())};break e}n=null}r.uploadMetadata=n,r.uploadId=_.YN(t,9)||null,r.uploadState=Ufa(t)||null}return(n=t&&_.U4(t,C9,4,G9))&&(r.id=n.CA()),(n=t&&_.U4(t,E9,5,G9))&&(r.contentId=_.YN(n,1)),(n=t&&_.U4(t,A9,7,G9))&&(r.contentId=_.YN(n,1)),(n=t&&_.U4(t,B9,6,G9))&&(r.contentId=_.YN(n,1)),1===(null==t?void 0:_.ZN(t,3))&&(r.mediaKey=e.getId().getId()),r},Tfa=function(e){var t;switch((null==(t=_.QN(e,F9,30))?void 0:_.ZN(t,3))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},S9=function(e){switch(e.getType()){case 1:case 21:return"photo";case 2:return"video";case 6:return"folder";case 13:return"calendar";case 14:return"album";case 19:return"contact";case 3:case 4:case 5:case 7:case 12:return e.getMimeType().startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},Ufa=function(e){switch(null==e?void 0:_.ZN(e,8)){case 0:return"default";case 1:return"canceled";case 2:return"error";case 3:return"running";case 4:return"scheduled";case 5:return"success"}return null},Vfa=_.md(["https://apis.google.com/js/api.js"]),Wfa=_.Cc(Vfa),Xfa=function(e,t,r){var n=!1,o=V9(e,t,r=void 0===r?{}:r).then((function(e){return n=!0,e})),i=Ffa().then((function(){return n?V9(e,t,r):W9(t,r).then((function(t){return X9(t,e)}))}));return Efa([o,i])},V9=function(e,t,r){return Yfa(t,r=void 0===r?{}:r).then((function(t){return X9(t,e)}))},X9=function(e,t){var r=_.Fc(t,"gapi.")?t.slice(5):t;return e[r]?_.tk(e[r]):new _.pk((function(n,o){var i=_.Jy((function(){o(Error("ed"))}),3e4);e.load(t,{callback:function(){_.Ky(i),n(e[r])},onerror:function(e){_.Ky(i),o(e)}})}))},Yfa=function(e,t){return t=void 0===t?{}:t,e.gapi&&e.gapi.load?_.tk(e.gapi):W9(e,t)},W9=function(e,t){return t=void 0===t?{}:t,_.RP(Wfa,{document:e.document,attributes:t}).then((function(){return e.gapi}))},Y9=function(){this.Db=null};Y9.prototype.load=function(e,t,r){t=void 0===t?window:t,r=void 0===r?{}:r;var n=Date.now();return Xfa(e,t,r).then((function(e){return{rY:e,eja:n,bja:Date.now()}}),(function(e){throw e instanceof Error?e:Error(String(e))}))};var $8=function(){_.Yi.call(this),this.Uea=new Y9,this.Db=this.Cd=null,this.Eq=_.zk(),this.Zz=_.zk(),this.Zz.promise.then(null,(function(){})),this.Eq.promise.then(null,(function(){})),this.rW={}};_.t($8,_.Yi);var Z9=function(e,t){var r=void 0===r?{}:r,n=_.yb("gapi.iframes",t);return n?(e=Date.now(),_.tk({rY:n,eja:e,bja:e})):e.Uea.load("gapi.iframes",t,r)},Zfa=function(e,t,r,n,o,i){var a=!1;return a=void 0!==a&&a,Z9(e,_.ke(t.ownerDocument)).then((function(s){var l=s.rY;e.Zz.resolve(l);var c=(s=e.Eq).resolve,u=a;u=void 0!==u&&u;var d={};d["host-message-handler"]=r,e.rW=d;var h=_.ru(n);h=_.ru(h),h=_.au(_.$t(_.Yt(new _.Xt,h.Bi),h.Ng()),h.Ag).toString(),e.Cd=h,(h=_.ho((new _.io).setUrl(n),t)).O.allowPost=u,u=_.Wj(_.Vj(h,d),_.yb("makeWhiteListIframesFilter",l)([e.Cd])),null!=o&&u.Oe(o),null!=i&&u.ln(i),u.bo().Di({display:"block","min-width":"100%",width:"1px"}).Sd("100%"),u.bo().value().allow="camera 'src' "+e.Cd,l=l.getContext().openChild(u.value()),c.call(s,l)}),(function(t){e.Zz.reject(t),e.Eq.reject(t)})),e.Eq.promise},$fa=function(e,t){return _.xk([e.Zz.promise,e.Eq.promise]).then((function(r){var n=_.Ea(r);return r=n.next().value,(n=n.next().value)?n.send("picker-message-handler",t,void 0,_.yb("makeWhiteListIframesFilter",r)([e.Cd])):_.uk(Error("fd"))}))};$8.prototype.wa=function(){aga(this),_.Yi.prototype.wa.call(this)};var aga=function(e){e.Eq.promise.then((function(t){t&&(t.unregister("host-message-handler"),delete e.rW["host-message-handler"])}))},$9=function(){this.Jja=0};$9.prototype.getUniqueId=function(){return":"+(this.Jja++).toString(36)};var cga=function(e,t){switch(e.action){case"select-contacts":e=bga(e.contacts);break;case"visibility":e=e.visible,e=(new M9).VL(7).setVisible(e);var r={};r["iframe-command"]=_.CN(e),e=r;break;default:e=null}return e?$fa(t,e):_.tk()},bga=function(e){if(!e||0==e.length)return null;var t=new M9;t.VL(11);var r=new $9;return e.forEach((function(e){if(e.email){var n=(new k9).i2(e.name?e.name:e.email),o=new x9;e=_.IP(o,1,e.email),e=(n=_.TN(n,27,e)).Oe,o=(new s9).Oe(r.getUniqueId()),o=n9(o,2,12),n=e.call(n,o)}else n=null;n&&t.Yf(n)})),(e={})["iframe-command"]=_.CN(t),e};_.qb(T8,S8),_.qb(U8,S8),_.qb(V8,_.P4);var dga=_.md(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),ega=_.md(["//apis.google.com/js/rpc.js"]),Dfa=_.Cc(dga),Cfa=_.Cc(ega),X8=null,a9,fga=_.md(["https://about:blank"]),gga=_.md(['javascript:""']),hga=_.md(["about:blank"]);_.qb(b9,V8),_.g=b9.prototype,_.g.Id="",_.g.Ka=null,_.g.fB=!1,_.g.FJ=!1,_.g.Zb=function(){},_.g.vc=function(){b9.N.vc.call(this),Afa(this.dj(),this.yb())},_.g.Aa=function(e){var t=this;b9.N.Aa.call(this,e),this.P4?Z9(this.DI,window).then((function(){return iga(t)})).then(null,(function(e){t.er(e)})):jga(this),this.Au&&(this.dj().setAttribute("popover","manual"),_.g5(this).setAttribute("popover","manual"))};var iga=function(e){var t=e.Ha().Ba("div",["picker-dialog-content","picker-frame"]);return _.ls(t,!1),e.Za().appendChild(t),Zfa(e.DI,t,(function(t){var r=Gfa(t["iframe-command"]);switch(_.ZN(r,1)){case 1:t=e.Zb;var n="";switch((r=_.QN(r,L9,2)).getStatus()){case 2:n="cancel";break;case 1:n="picked";break;case 3:n="error"}var o=r.qA(_.kL);r=0===o.length?{action:n}:Qfa(o,n,_.QN(r,K9,7)),t.call(e,r),e.setVisible(!1);break;case 4:_.m5(e),e.Zb({action:"loaded"});break;case 7:case 8:t=e.Zb;e:{switch(n=_.ZN(r,1),o=_.QN(r,L9,2),n){case 7:n="uploadScheduled";break;case 8:n="uploadStateChange";break;default:r={};break e}if(0===(r=o.qA(_.kL)).length)r={action:n};else{var i=_.QN(o,K9,7);o=i&&_.YN(i,1),i=Q9(i),r=R9(r,n,o,i)}}t.call(e,r)}}),e.Id,e.rn,e.Ym).then((function(t){return e.Ka=t.getIframeEl(),a$(e),_.ls(e.Ka.parentElement,!0),b$(e),c$(e),t}))},b$=function(e){_.vC(e.U(),"picker-dialog"),_.vC(e.Ka,"picker-dialog-frame"),_.f5(e),_.vC(e.Pp,"picker-dialog-title"),_.vC(e.dj(),"picker-dialog-bg"),_.vC(e.nb,"picker-dialog-bg"),_.vC(e.Za(),"picker-dialog-content"),i9(e)&&_.vC(i9(e),"picker-dialog-buttons")},jga=function(e){e.Ka=e.Gb.Ba("IFRAME",{id:e.rn,name:e.rn,class:"picker-frame",frameBorder:"0",allow:"camera"}),_.E4(e.Ka,kga(e)),b$(e),e.Za().appendChild(e.Ka),e.yb().ua(e.Ka,"load",(function(){a$(e)})),e.Ka.src=e.Id,c$(e)},lga=function(e){d$(e,(0,_.Db)((function(e){e.setAuthToken(this.rn,this.Ym)}),e))},c$=function(e){var t=_.ru(e.Id).Wh("title");t&&e.setTitle(t)},kga=function(e){return _.LO("Internet Explorer")>=7&&_.Fc(e.Id,"https")?_.Cc(fga):_.Cd?_.Cc(gga):_.Cc(hga)},a$=function(e){lga(e),e.fB=!0,_.EC(e.Ka,!0),e.isVisible()&&e.focus()};b9.prototype.jI=function(e){27==e.keyCode&&(this.setVisible(!1),this.Zb({action:"cancel"}),e.stopPropagation(),e.preventDefault())};var d$=function(e,t){var r=e.Yz;zfa((function(){t(r.getWindow().gadgets.rpc)}),r)};_.g=b9.prototype,_.g.setUrl=function(e){e=_.qu(new _.Xt(e),"rpcService",this.rn),_.qu(e,"rpctoken",this.Ym),e.Wk("rpctoken="+this.Ym),_.qu(e,"thirdParty","true"),_.Yt(e,"https"),this.Id=e.toString(),this.Ka&&(this.Ka.src=this.Id)},_.g.Ap=function(e){this.Cy=e,this.FJ&&e$(this)},_.g.ys=function(e){this.Zb=e,d$(this,(0,_.Db)((function(e){e.register(this.rn,(0,_.Db)(this.Wga,this))}),this))},_.g.Wga=function(e){var t=e.action;"loaded"==t&&(this.FJ=!0,f$(this,new U8(this.isVisible())),e$(this),_.m5(this),this.yb().zc(this.Ha().getWindow(),"keydown",this.jI),_.EC(this.Ka,!0)),"picked"!=t&&"cancel"!=t||this.setVisible(!1),this.Zb(e)},_.g.UA=function(e){return"true"==_.ru(this.Id).Wh(e)};var e$=function(e){e.Cy&&f$(e,new T8(e.Cy,window.location.protocol+"//"+window.location.host))};b9.prototype.Rj=function(e){d$(this,(0,_.Db)((function(t){t.setRelayUrl(this.rn,e)}),this))};var f$=function(e,t){e.P4&&cga(t,e.DI).then(null,(function(t){e.er(t)})),d$(e,(0,_.Db)((function(e){e.call(this.rn,"picker",null,t)}),e))};_.g=b9.prototype,_.g.lL=function(){var e=this.Ha().wb();if(e=_.ke(e)||window,this.UA("ignoreLimits"))e=new _.Ec(this.L_,this.K_);else if(this.UA("shadeDialog")){var t=j9(_.g5(this)),r=_.ie(e);e=r.width-80,r=r.height-40,t&&(e-=t.left?t.left:0,e-=t.right?t.right:0,r-=t.top?t.top:0,r-=t.bottom?t.bottom:0),e=new _.Ec(e>0?e:0,r>0?r:0)}else(t=this.L_)?(t=Math.max(320,Math.min(1051,t)),(r=this.K_)||(r=.85*_.ie(e).height),r=Math.max(480,Math.min(650,r))):(r=(r=.618*(t=_.ie(e)).width)<t.height?Math.round(Math.max(480,Math.min(650,.85*r))):Math.round(Math.max(480,Math.min(650,.85*t.height))),t=Math.round(r/.618)),e=_.ie(e),t=Math.min(t,Math.max(e.width,320)),r=Math.min(r,Math.max(e.height,480)),e=new _.Ec(t,r);_.js(this.Za(),e),this.Rd()},_.g.Rd=function(){if(this.UA("shadeDialog")){var e=_.Q4(this.U()),t=_.ie(this.Ha().getWindow());if(e=Math.floor(t.width/2-e.width/2),t=j9(_.g5(this))){var r=t.left?t.left:0;r+=t.right?t.right:0,e=Math.floor(e-r/2)}e=e>0?e:0,t=_.Rr(this.Ha()).y,_.ss(this.U(),e,t)}else b9.N.Rd.call(this)},_.g.setVisible=function(e){if(e!=this.isVisible()){if(this.Nca){var t=this.Ha().getWindow();e?(this.lL(),this.yb().ua(t,"resize",this.lL),this.fB||this.yb().ua(t,"keydown",this.jI)):(this.yb().zc(t,"resize",this.lL),this.fB||this.yb().zc(t,"keydown",this.jI))}if(this.Au){t=this.dj();var r=_.g5(this);"showPopover"in r&&(e?(t.showPopover(),r.showPopover()):(t.hidePopover(),r.hidePopover()))}}b9.N.setVisible.call(this,e),f$(this,new U8(e))},_.g.focus=function(){if(b9.N.focus.call(this),this.Ka&&this.fB&&this.FJ)try{this.Ka.focus()}catch(e){}},_.g.er=function(){this.Zb({action:"error"})};var e9=function(e){this.Fa=e,this.Wa={}};_.g=e9.prototype,_.g.yc=function(e){return this.cY=e||void 0,this},_.g.setOptions=function(e){return this.Wa=e,this},_.g.lb=function(e){return this.Wa.query=e,this},_.g.Lc=function(e){return this.Wa.mimeTypes=e,this},_.g.setParent=function(e){return this.Wa.parent=e,this},_.g.j4=function(){var e=_.ei(this.Wa,(function(e){return null!==e}));return e=_.Eh(e)?null:e,(e=[this.Fa,this.cY,e]).slice(0,yfa(e)+1)},_.g.toString=function(){var e=this.j4();return"("+_.Jb(e,(function(e){return JSON.stringify(e)})).join(",")+")"},_.g.getId=function(){return this.Fa},_.g.tA=function(){return this.cY},_.g.getOptions=function(){return _.Xj(this.Wa)},_.g.getQuery=function(){return this.Wa.query};var g$=function(){e9.call(this,"image-search"),this.Wa.license="crwm"};_.t(g$,e9),_.g=g$.prototype,_.g.kx=function(e){return this.Wa.site=e,this},_.g.Td=function(e){return this.Wa.type=e,this},_.g.Rma=function(e){return"*"==e?delete this.Wa.license:this.Wa.license=e,this},_.g.setSize=function(e){return this.Wa.imgsz=e,this},_.g.setColor=function(e){return this.Wa.imgcolor=e,this},_.g.QD=function(e){return this.Wa.safe=e,this},_.g.yc=function(e){return e9.prototype.yc.call(this,e),this},_.g.lb=function(e){return e9.prototype.lb.call(this,e),this},_.g.Lc=function(e){return e9.prototype.Lc.call(this,e),this},_.g.setParent=function(e){return e9.prototype.setParent.call(this,e),this};var h$=function(){e9.call(this,"maps")};_.t(h$,e9),_.g=h$.prototype,_.g.ED=function(e){return this.Wa.mode=e,this},_.g.setCenter=function(e,t){return this.Wa.center=[e,t],this},_.g.setZoom=function(e){return this.Wa.zoom=e,this},_.g.yc=function(e){return e9.prototype.yc.call(this,e),this},_.g.lb=function(e){return e9.prototype.lb.call(this,e),this},_.g.Lc=function(e){return e9.prototype.Lc.call(this,e),this},_.g.setParent=function(e){return e9.prototype.setParent.call(this,e),this};var i$=function(){e9.call(this,"photos")};_.t(i$,e9),_.g=i$.prototype,_.g.ED=function(e){return this.Wa.mode=e,this},_.g.Td=function(e){return this.Wa.type=e,this},_.g.yc=function(e){return e9.prototype.yc.call(this,e),this},_.g.lb=function(e){return e9.prototype.lb.call(this,e),this},_.g.Lc=function(e){return e9.prototype.Lc.call(this,e),this},_.g.setParent=function(e){return e9.prototype.setParent.call(this,e),this};var j$=function(){e9.call(this,"url")};_.t(j$,e9),_.g=j$.prototype,_.g.kx=function(e){return this.Wa.site=e,this},_.g.Td=function(e){return this.Wa.type=e,this},_.g.yc=function(e){return e9.prototype.yc.call(this,e),this},_.g.lb=function(e){return e9.prototype.lb.call(this,e),this},_.g.Lc=function(e){return e9.prototype.Lc.call(this,e),this},_.g.setParent=function(e){return e9.prototype.setParent.call(this,e),this};var k$=function(){e9.call(this,"video-search")};_.t(k$,e9),_.g=k$.prototype,_.g.kx=function(e){return this.Wa.site=e,this},_.g.QD=function(e){return this.Wa.safe=e,this},_.g.yc=function(e){return e9.prototype.yc.call(this,e),this},_.g.lb=function(e){return e9.prototype.lb.call(this,e),this},_.g.Lc=function(e){return e9.prototype.Lc.call(this,e),this},_.g.setParent=function(e){return e9.prototype.setParent.call(this,e),this};var l$=function(){e9.call(this,"web")};_.t(l$,e9),_.g=l$.prototype,_.g.kx=function(e){return this.Wa.site=e,this},_.g.QD=function(e){return this.Wa.safe=e,this},_.g.yc=function(e){return e9.prototype.yc.call(this,e),this},_.g.lb=function(e){return e9.prototype.lb.call(this,e),this},_.g.Lc=function(e){return e9.prototype.Lc.call(this,e),this},_.g.setParent=function(e){return e9.prototype.setParent.call(this,e),this};var m$=function(e){this.qf="string"==typeof e?new e9(e):e,this.Kf=[],this.Wa={}},mga=function(e){switch(e){case"image-search":return new g$;case"maps":return new h$;case"photos":return new i$;case"url":return new j$;case"video-search":return new k$;case"web":return new l$}return new e9(e)};m$.prototype.ty=function(e){return this.Kf.push("string"==typeof e?mga(e):e),this},m$.prototype.JP=function(e){return this.Kf.push(new e9(null).yc(e)),this},m$.prototype.uy=function(e){return this.Kf.push(e),this};var n$=function(e){return"("+_.Jb(e.Kf,(function(e){return e.toString()})).join(",")+")"},nga=function(e){return e=_.ei(e.Wa,(function(e){return null!==e})),(e=_.Eh(e)?null:e)?JSON.stringify(_.PG(e,(function(e){return e.toString()}))):""};m$.prototype.toString=function(){if(this.qf){var e=["{root:",this.qf.toString(),",items:",n$(this)],t=nga(this);return t&&(e.push(",options:"),e.push(t)),e.push("}"),e.join("")}return n$(this)},m$.prototype.getOptions=function(){return _.Xj(this.Wa)},m$.prototype.xma=function(e){return this.Wa.collapsible=e,this};var c9=function(e){this.Qca=e||"https://docs.google.com/picker",this.bC=new m$};_.g=c9.prototype,_.g.bC=null,_.g.Yd=null,_.g.JP=function(){throw Error("hd")},_.g.ty=function(e){return this.bC.ty(e),this},_.g.uy=function(e){return this.bC.uy(e),this},_.g.aA=function(){return this.Cy},_.g.Ha=function(){return this.Yd},_.g.Iha=function(){return this.setTitle("")},_.g.Ap=function(e){return this.Cy=e,this},_.g.ys=function(e){return this.Zb=e,this},_.g.eM=function(e){return this.Yd=new _.ae(e),this},_.qb(d9,c9);var o$=function(e,t){t=void 0===t?b9:t,c9.call(this,e),this.Bka=t,this.kc=new Map,this.kc.set("protocol","gadgets"),window.google&&(e=(e=window.google)&&e.picker&&e.picker.LoadArgs)&&(e=new _.cu(e).get("hl"))&&this.Cs(e.toString()),(e=window.location.origin)||(e=window.location.protocol+"//"+window.location.host),this.Pj(e),this.H_=[],this.Yz=void 0};_.t(o$,d9),_.g=o$.prototype,_.g.On=!1,_.g.Au=!1,_.g.Fb=function(){if(this.kc.set("hostId",window.location.host.split(":")[0]),this.aA()&&this.kc.has("oauth_token")&&this.kc.set("appId",this.aA()),this.kv()||this.Rj(_.bu(_.ru(window.location.href)).Wk("").setPath("/favicon.ico").toString()),this.kc.set("ifls",Date.now()),this.kc.get("minimal"))throw Error("id");var e=new this.Bka(this.n4().toString(),!0,this.Ha(),this.QR,this.OR,"",this.Yz,!1,!1,this.Au);return e.dM(this.On),e.Ap(this.aA()),e.ys(this.Zb),e},_.g.Tda=function(e){return this.kc.delete(e),this},_.g.kea=function(e){return this.kc.set(e,"true"),this},_.g.Nc=function(){return this.OR},_.g.eo=function(){return this.kc.get("hl")},_.g.kv=function(){return this.kc.get("parent")},_.g.getTitle=function(){return this.kc.get("title")},_.g.Qb=function(){return this.QR},_.g.zia=function(e){return"true"==this.kc.get(e)},_.g.zma=function(e){return this.kc.set("developerKey",e),this},_.g.vma=function(e){return this.kc.set("authuser",e),this},_.g.dM=function(e){this.On=e},_.g.Sma=function(e){return this.kc.set("maxItems",e),this},_.g.Pj=function(e){return e&&this.kc.set("origin",e),this},_.g.Mma=function(e){return e instanceof e9?this.kc.set("view",e.toString()):this.kc.set("view",e),this},_.g.Cs=function(e){return this.kc.set("hl",e),this},_.g.Cma=function(e){return this.Au=e,this},_.g.RM=function(e){return this.kc.set("oauth_token",e),this},_.g.Rj=function(e){return this.kc.set("parent",e),this},_.g.Yma=function(e){return this.kc.set("selectableMimeTypes",e),this},_.g.setSize=function(e,t){return this.QR=e,this.OR=t,this},_.g.dna=function(e){return this.kc.set("uploadToAlbumId",e),this},_.g.setTitle=function(e){return this.kc.set("title",e),this},_.g.n4=function(){this.H_.length&&this.kc.set("pp",JSON.stringify(this.H_)),this.kc.set("nav",n$(this.bC));var e=new _.Xt(this.Qca);return this.kc.forEach((function(t,r){_.qu(e,r,t)})),e},_.qb(f9,e9),f9.prototype.lb=function(){throw Error("jd")},f9.prototype.yc=function(e){return f9.N.yc.call(this,e),this},f9.prototype.Lc=function(e){return f9.N.Lc.call(this,e),this},f9.prototype.setParent=function(e){return f9.N.setParent.call(this,e),this},_.qb(g9,f9),_.g=g9.prototype,_.g.zM=function(e){return this.Wa.includeFolders=e,this},_.g.yc=function(e){return g9.N.yc.call(this,e),this},_.g.lb=function(e){return g9.N.lb.call(this,e),this},_.g.Lc=function(e){return g9.N.Lc.call(this,e),this},_.g.setParent=function(e){return g9.N.setParent.call(this,e),this},_.qb(h9,e9);var oga=["dr","fileIds","parent"];_.g=h9.prototype,_.g.ED=function(e){return this.Wa.mode=e,this},_.g.Bma=function(e){return p$(this),this.Wa.dr=e,this},_.g.Dma=function(e){return this.Wa.td=e,this},_.g.m2=function(e){return void 0!==e?this.Wa.ownedByMe=e:delete this.Wa.ownedByMe,this},_.g.D2=function(e){return this.Wa.starred=e,this},_.g.zM=function(e){return this.Wa.includeFolders=e,this},_.g.Xma=function(e){return this.Wa.selectFolder=e,this},_.g.Ama=function(e){return this.Wa.docTypesDropDown=e,this},_.g.yc=function(e){return h9.N.yc.call(this,e),this},_.g.lb=function(e){return h9.N.lb.call(this,e),this},_.g.Lc=function(e){return h9.N.Lc.call(this,e),this},_.g.Hma=function(e){return p$(this),this.Wa.fileIds=e,this},_.g.setParent=function(e){return p$(this),h9.N.setParent.call(this,e),this};var p$=function(e){for(var t=_.Ea(oga),r=t.next();!r.done;r=t.next())r=r.value,e.Wa[r]&&delete e.Wa[r]},q$=function(){e9.call(this,"photo-albums")};_.t(q$,e9),_.g=q$.prototype,_.g.Td=function(e){return this.Wa.type=e,this},_.g.yc=function(e){return e9.prototype.yc.call(this,e),this},_.g.lb=function(e){return e9.prototype.lb.call(this,e),this},_.g.Lc=function(e){return e9.prototype.Lc.call(this,e),this},_.g.setParent=function(e){return e9.prototype.setParent.call(this,e),this};var pga={DoclistBlob:"file",doc:"document",drawing:"drawing",folder:"folder",kix:"document",pres:"presentation",spread:"spreadsheet"},r$=function(e,t){e9.call(this,"webcam"),e&&(this.Wa.type=e),t&&(this.Wa.query=t)};_.t(r$,e9),r$.prototype.lb=function(){throw Error("kd")},r$.prototype.yc=function(e){return e9.prototype.yc.call(this,e),this},r$.prototype.Lc=function(e){return e9.prototype.Lc.call(this,e),this},r$.prototype.setParent=function(e){return e9.prototype.setParent.call(this,e),this};var qga=_.md([".picker-dialog-frame{width:100%;height:100%;border:0;overflow:hidden}.picker-dialog-bg{position:absolute;top:0;left:0;background-color:#fff;z-index:1000}.picker-dialog{position:absolute;top:0;left:0;background-color:#fff;border:1px solid #acacac;width:auto;padding:0;z-index:1001;overflow:auto;box-shadow:0 4px 16px rgba(0,0,0,.2)}.picker-dialog-content{height:100%;font-size:0;padding:0}.picker-dialog-buttons,.picker-dialog-title{display:none}"]),rga=_.lc(qga[0]);try{_.ns(rga)}catch(a){_.Uf.error("Failed to install picker styles : "+a),_.fb.setTimeout((function(){_.bb.DY(a)}),0)}_.w("gapi.picker.api.Action",{Yoa:"cancel",Lsa:"picked",Nua:"uploadProgress",Oua:"uploadScheduled",Qua:"uploadStateChange",LOADED:"loaded",Poa:"blurred",nqa:"enableWhiteCallout",Yua:"viewChanged",dva:"viewUpdated",Zua:"viewContentRendered",ERROR:"error",eta:"received"}),_.w("gapi.picker.api.Action.CANCEL","cancel"),_.w("gapi.picker.api.Action.PICKED","picked"),_.w("gapi.picker.api.Audience",{Esa:"ownerOnly",aP:"limited",Doa:"allPersonalCircles",tqa:"extendedCircles",Xpa:"domainPublic",nP:"public"}),_.w("gapi.picker.api.Audience.PUBLIC","public"),_.w("gapi.picker.api.Audience.DOMAIN_PUBLIC","domainPublic"),_.w("gapi.picker.api.Audience.EXTENDED_CIRCLES","extendedCircles"),_.w("gapi.picker.api.Audience.ALL_PERSONAL_CIRCLES","allPersonalCircles"),_.w("gapi.picker.api.Audience.LIMITED","limited"),_.w("gapi.picker.api.Audience.OWNER_ONLY","ownerOnly"),_.w("gapi.picker.api.Document",{Ioa:"audience",Ooa:"blobId",bpa:"children",b6:"contentId",kpa:"copyable",Fpa:"coverPhotoId",Ipa:"crop",Kpa:"customerId",Npa:"dataUrl",Rpa:"description",Ypa:"domainUsersOnly",aqa:"downloadUrl",gqa:"driveSuccess",eqa:"driveError",cqa:"drivesId",dqa:"drivesName",hqa:"email",iqa:"embedUrl",fra:"iconUrl",WE:"id",hra:"isLocalProfilePhoto",ira:"isNew",jra:"isRoot",kra:"isShared",lra:"kansasVersionInfo",ura:"lastEditedUtc",vra:"lastModifiedByMeUtc",wra:"lastViewedByMeUtc",xra:"latitude",Cra:"longitude",Kra:"markedForRemoval",Mra:"mediaKey",Qra:"mimeType",isa:"name",rsa:"numChildren",ssa:"numTagged",tsa:"numUntagged",Asa:"organizationDisplayName",Bsa:"organizeIntoTeamDrive",Dsa:"otherParents",xsa:"ogv",Gsa:"parentId",aF:"people",Nsa:"placeId",READ_ONLY:"readOnly",ita:"rpt",jta:"rptn",nta:"resourceKey",sta:"rotation",tta:"rotationDegree",Hta:"serviceId",Zta:"sizeBytes",hua:"sourceTeamDriveId",iua:"sourceTeamDriveName",Bua:"teamDriveId",Cua:"teamDriveName",Dua:"teamMembersOnly",Fua:"thumbnails",TYPE:"type",Jua:"undoable",Lua:"uploadId",Mua:"uploadMetadata",Pua:"uploadState",URL:"url",VERSION:"version",eva:"visibility"}),_.w("gapi.picker.api.Document.ADDRESS_LINES","addressLines"),_.w("gapi.picker.api.Document.AUDIENCE","audience"),_.w("gapi.picker.api.Document.DESCRIPTION","description"),_.w("gapi.picker.api.Document.DURATION","duration"),_.w("gapi.picker.api.Document.EMBEDDABLE_URL","embedUrl"),_.w("gapi.picker.api.Document.ICON_URL","iconUrl"),_.w("gapi.picker.api.Document.ID","id"),_.w("gapi.picker.api.Document.IS_NEW","isNew"),_.w("gapi.picker.api.Document.LAST_EDITED_UTC","lastEditedUtc"),_.w("gapi.picker.api.Document.LATITUDE","latitude"),_.w("gapi.picker.api.Document.LONGITUDE","longitude"),_.w("gapi.picker.api.Document.MIME_TYPE","mimeType"),_.w("gapi.picker.api.Document.NAME","name"),_.w("gapi.picker.api.Document.NUM_CHILDREN","numChildren"),_.w("gapi.picker.api.Document.PARENT_ID","parentId"),_.w("gapi.picker.api.Document.PHONE_NUMBERS","phoneNumbers"),_.w("gapi.picker.api.Document.SERVICE_ID","serviceId"),_.w("gapi.picker.api.Document.THUMBNAILS","thumbnails"),_.w("gapi.picker.api.Document.TYPE","type"),_.w("gapi.picker.api.Document.URL","url"),_.w("gapi.picker.api.DocsUploadView",g9),g9.prototype.setIncludeFolders=g9.prototype.zM,g9.prototype.setParent=g9.prototype.setParent,_.w("gapi.picker.api.DocsView",h9),h9.prototype.setIncludeFolders=h9.prototype.zM,h9.prototype.setSelectFolderEnabled=h9.prototype.Xma,h9.prototype.setMode=h9.prototype.ED,h9.prototype.setParent=h9.prototype.setParent,h9.prototype.setOwnedByMe=h9.prototype.m2,h9.prototype.setStarred=h9.prototype.D2,h9.prototype.setDocTypesDropDownEnabled=h9.prototype.Ama,h9.prototype.setEnableDrives=h9.prototype.Bma,h9.prototype.setEnableTeamDrives=h9.prototype.Dma,h9.prototype.setFileIds=h9.prototype.Hma,_.w("gapi.picker.api.DocsViewMode",{Vqa:"grid",zra:"list"}),_.w("gapi.picker.api.DocsViewMode.GRID","grid"),_.w("gapi.picker.api.DocsViewMode.LIST","list"),_.w("gapi.picker.api.Feature",{Hpa:"cropA11y",lqa:"showAttach",mqa:"edbe",Dqa:"ftd",Jqa:"formsEnabled",Zqa:"horizNav",gra:"ignoreLimits",Rra:"mineOnly",Sra:"minimal",Tra:"minew",fsa:"multiselectEnabled",lsa:"navHidden",nsa:"newDriveView",osa:"newHorizNav",psa:"newPhotoGridView",ysa:"odv",Xsa:"profilePhoto",Ita:"shadeDialog",Nta:"simpleUploadEnabled",gua:"sawffmi",wua:"sdr",xua:"std",Rua:"urlInputVisible"}),_.w("gapi.picker.api.Feature.MULTISELECT_ENABLED","multiselectEnabled"),_.w("gapi.picker.api.Feature.NAV_HIDDEN","navHidden"),_.w("gapi.picker.api.Feature.MINE_ONLY","mineOnly"),_.w("gapi.picker.api.Feature.SIMPLE_UPLOAD_ENABLED","simpleUploadEnabled"),_.w("gapi.picker.api.Feature.SUPPORT_DRIVES","sdr"),_.w("gapi.picker.api.Feature.SUPPORT_TEAM_DRIVES","std"),_.w("gapi.picker.api.ImageSearchView",g$),_.w("gapi.picker.api.ImageSearchView.License",{NONE:"*",pta:"r",fpa:"cr",qta:"rwm",gpa:"crwm"}),_.w("gapi.picker.api.ImageSearchView.License.COMMERCIAL_REUSE","cr"),_.w("gapi.picker.api.ImageSearchView.License.COMMERCIAL_REUSE_WITH_MODIFICATION","crwm"),_.w("gapi.picker.api.ImageSearchView.License.NONE","*"),_.w("gapi.picker.api.ImageSearchView.License.REUSE","r"),_.w("gapi.picker.api.ImageSearchView.License.REUSE_WITH_MODIFICATION","rwm"),_.w("gapi.picker.api.ImageSearchView.Size",{aua:"qsvga",cua:"vga",bua:"svga",fua:"xga",dua:"wxga",eua:"wxga2",Tta:"2mp",Vta:"4mp",Wta:"6mp",Yta:"8mp",Ota:"10mp",Pta:"12mp",Rta:"15mp",Sta:"20mp",Uta:"40mp",Xta:"70mp",Qta:"140mp"}),_.w("gapi.picker.api.ImageSearchView.Size.SIZE_10MP","10mp"),_.w("gapi.picker.api.ImageSearchView.Size.SIZE_12MP","12mp"),_.w("gapi.picker.api.ImageSearchView.Size.SIZE_140MP","140mp"),_.w("gapi.picker.api.ImageSearchView.Size.SIZE_15MP","15mp"),_.w("gapi.picker.api.ImageSearchView.Size.SIZE_20MP","20mp"),_.w("gapi.picker.api.ImageSearchView.Size.SIZE_2MP","2mp"),_.w("gapi.picker.api.ImageSearchView.Size.SIZE_40MP","40mp"),_.w("gapi.picker.api.ImageSearchView.Size.SIZE_4MP","4mp"),_.w("gapi.picker.api.ImageSearchView.Size.SIZE_6MP","6mp"),_.w("gapi.picker.api.ImageSearchView.Size.SIZE_70MP","70mp"),_.w("gapi.picker.api.ImageSearchView.Size.SIZE_8MP","8mp"),_.w("gapi.picker.api.ImageSearchView.Size.SIZE_QSVGA","qsvga"),_.w("gapi.picker.api.ImageSearchView.Size.SIZE_SVGA","svga"),_.w("gapi.picker.api.ImageSearchView.Size.SIZE_VGA","vga"),_.w("gapi.picker.api.ImageSearchView.Size.SIZE_WXGA","wxga"),_.w("gapi.picker.api.ImageSearchView.Size.SIZE_WXGA2","wxga2"),_.w("gapi.picker.api.ImageSearchView.Size.SIZE_XGA","xga"),g$.prototype.setLicense=g$.prototype.Rma,g$.prototype.setSite=g$.prototype.kx,g$.prototype.setSize=g$.prototype.setSize,g$.prototype.setSafeSearch=g$.prototype.QD,_.w("gapi.picker.api.MapsView",h$),h$.prototype.setCenter=h$.prototype.setCenter,h$.prototype.setZoom=h$.prototype.setZoom,_.w("gapi.picker.api.PhotoAlbumsView",q$),_.w("gapi.picker.api.PhotosView",i$),_.w("gapi.picker.api.PhotosView.Type",{BANNER:"banner",Noa:"bannergallery",Xoa:"camerasync",zqa:"featured",Sqa:"gmail_themes",Fqa:"flat",Qqa:"getty",Yqa:"highlights",P8:"mediacollection",Vra:"moment",wsa:"ofuser",oua:"streamid",Aua:"tpp",Kua:"uploaded",Vua:"videos-camerasync",Wua:"videos-uploaded",lva:"localalbum",qwa:"ytbanner"}),_.w("gapi.picker.api.PhotosView.Type.FEATURED","featured"),_.w("gapi.picker.api.PhotosView.Type.GETTY","getty"),_.w("gapi.picker.api.PhotosView.Type.UPLOADED","uploaded"),i$.prototype.setParent=i$.prototype.setParent,i$.prototype.setType=i$.prototype.Td,_.w("gapi.picker.api.ResourceId.generate",(function(e){return e?["application/pdf"==e.mimeType?"pdf":pga[e.serviceId]||"file",":",e.id].join(""):null})),_.w("gapi.picker.api.Response",{Aoa:"action",uqa:"extraUserInputs",Wpa:"docs",Fsa:"parents",my:"view",cva:"viewToken",Uua:"v2Translated"}),_.w("gapi.picker.api.Response.ACTION","action"),_.w("gapi.picker.api.Response.DOCUMENTS","docs"),_.w("gapi.picker.api.Response.PARENTS","parents"),_.w("gapi.picker.api.Response.VIEW","viewToken"),_.w("gapi.picker.api.ServiceId",{Roa:"books",HE:"calendar",hpa:"contacts",Uqa:"gready",Gpa:"cportal",Jpa:"cultural",Vpa:"docs",Zpa:"photo",bqa:"dragonflyphotos",qt:"drive",fqa:"drive-select",yqa:"feag",Hqa:"fonts",qqa:"et",Pqa:"geodiscussion",Ira:"maps",Jra:"mapspro",Lra:"media",Isa:"party",Ksa:"picasa",Msa:"places",hta:"relatedcontent",lua:"static_themes",nua:"stories",pwa:"youtube",hva:"web",fva:"vr-assets",aF:"people",Bta:"search-api",URL:"url",fta:"recent",Epa:"cosmo",Upa:"DoclistBlob",QE:"doc",QO:"drawing",q7:"form",Kqa:"freebird",sra:"kix",a$:"pres",ata:"punch",rta:"ritz",sP:"spread"}),_.w("gapi.picker.api.ServiceId.DOCS","docs"),_.w("gapi.picker.api.ServiceId.MAPS","maps"),_.w("gapi.picker.api.ServiceId.PHOTOS","picasa"),_.w("gapi.picker.api.ServiceId.SEARCH_API","search-api"),_.w("gapi.picker.api.ServiceId.URL","url"),_.w("gapi.picker.api.ServiceId.YOUTUBE","youtube"),_.w("gapi.picker.api.Thumbnail",{VE:"height",URL:"url",hF:"width",TYPE:"type"}),_.w("gapi.picker.api.Thumbnail.HEIGHT","height"),_.w("gapi.picker.api.Thumbnail.WIDTH","width"),_.w("gapi.picker.api.Thumbnail.URL","url"),_.w("gapi.picker.api.Type",{Coa:"album",Eoa:"android-app",HE:"calendar",epa:"chrome-app",CIRCLE:"circle",Z5:"contact",QE:"document",TO:"event",pqa:"et",xqa:"faces",Cqa:"file",VO:"folder",Gqa:"font",LOCATION:"location",Hra:"map",P8:"mediacollection",mP:"person",Jsa:"photo",URL:"url",AP:"video",nva:"workbook"}),_.w("gapi.picker.api.Type.ALBUM","album"),_.w("gapi.picker.api.Type.DOCUMENT","document"),_.w("gapi.picker.api.Type.LOCATION","location"),_.w("gapi.picker.api.Type.PHOTO","photo"),_.w("gapi.picker.api.Type.URL","url"),_.w("gapi.picker.api.Type.VIDEO","video"),_.w("gapi.picker.api.VideoSearchView",k$),_.w("gapi.picker.api.VideoSearchView.YOUTUBE","youtube.com"),k$.prototype.setSite=k$.prototype.kx,k$.prototype.setSafeSearch=k$.prototype.QD,_.w("gapi.picker.api.View",e9),e9.prototype.getId=e9.prototype.getId,e9.prototype.setLabel=e9.prototype.yc,e9.prototype.setMimeTypes=e9.prototype.Lc,e9.prototype.setQuery=e9.prototype.lb,e9.prototype.getQuery=e9.prototype.getQuery,e9.prototype.getLabel=e9.prototype.tA,_.w("gapi.picker.api.ViewGroup",m$),m$.prototype.addLabel=m$.prototype.JP,m$.prototype.addView=m$.prototype.ty,m$.prototype.addViewGroup=m$.prototype.uy,m$.prototype.setCollapsible=m$.prototype.xma,_.w("gapi.picker.api.ViewId.DOCS","all"),_.w("gapi.picker.api.ViewId.DOCS_IMAGES","docs-images"),_.w("gapi.picker.api.ViewId.DOCS_IMAGES_AND_VIDEOS","docs-images-and-videos"),_.w("gapi.picker.api.ViewId.DOCS_VIDEOS","docs-videos"),_.w("gapi.picker.api.ViewId.DOCUMENTS","documents"),_.w("gapi.picker.api.ViewId.DRAWINGS","drawings"),_.w("gapi.picker.api.ViewId.FOLDERS","folders"),_.w("gapi.picker.api.ViewId.FORMS","forms"),_.w("gapi.picker.api.ViewId.IMAGE_SEARCH","image-search"),_.w("gapi.picker.api.ViewId.MAPS","maps"),_.w("gapi.picker.api.ViewId.PDFS","pdfs"),_.w("gapi.picker.api.ViewId.PHOTO_ALBUMS","photo-albums"),_.w("gapi.picker.api.ViewId.PHOTOS","photos"),_.w("gapi.picker.api.ViewId.PHOTO_UPLOAD","photo-upload"),_.w("gapi.picker.api.ViewId.PRESENTATIONS","presentations"),_.w("gapi.picker.api.ViewId.RECENTLY_PICKED","recently-picked"),_.w("gapi.picker.api.ViewId.SPREADSHEETS","spreadsheets"),_.w("gapi.picker.api.ViewId.VIDEO_SEARCH","video-search"),_.w("gapi.picker.api.ViewId.WEBCAM","webcam"),_.w("gapi.picker.api.ViewId.YOUTUBE","youtube"),_.w("gapi.picker.api.ViewToken",{ava:0,tra:1,bva:2}),_.w("gapi.picker.api.ViewToken.LABEL",1),_.w("gapi.picker.api.ViewToken.VIEW_ID",0),_.w("gapi.picker.api.ViewToken.VIEW_OPTIONS",2),_.w("gapi.picker.api.WebCamView",r$),_.w("gapi.picker.api.WebCamViewType.STANDARD","standard"),(_.fb.google=_.fb.google||{}).picker=_.fb.gapi.picker.api,_.w("gapi.picker.api.Picker",b9),b9.prototype.isVisible=_.P4.prototype.isVisible,b9.prototype.setAppId=b9.prototype.Ap,b9.prototype.setCallback=b9.prototype.ys,b9.prototype.setRelayUrl=b9.prototype.Rj,b9.prototype.setVisible=b9.prototype.setVisible,b9.prototype.dispose=b9.prototype.dispose,_.w("gapi.picker.api.PickerBuilder",o$),o$.prototype.addView=o$.prototype.ty,o$.prototype.addViewGroup=o$.prototype.uy,o$.prototype.build=o$.prototype.Fb,o$.prototype.disableFeature=o$.prototype.Tda,o$.prototype.enableFeature=o$.prototype.kea,o$.prototype.getRelayUrl=o$.prototype.kv,o$.prototype.getTitle=o$.prototype.getTitle,o$.prototype.hideTitleBar=o$.prototype.Iha,o$.prototype.isFeatureEnabled=o$.prototype.zia,o$.prototype.setAppId=o$.prototype.Ap,o$.prototype.setAuthUser=o$.prototype.vma,o$.prototype.setCallback=o$.prototype.ys,o$.prototype.setDeveloperKey=o$.prototype.zma,o$.prototype.setDocument=o$.prototype.eM,o$.prototype.setInitialView=o$.prototype.Mma,o$.prototype.setLocale=o$.prototype.Cs,o$.prototype.setMaxItems=o$.prototype.Sma,o$.prototype.setOAuthToken=o$.prototype.RM,o$.prototype.setOrigin=o$.prototype.Pj,o$.prototype.setRelayUrl=o$.prototype.Rj,o$.prototype.setSelectableMimeTypes=o$.prototype.Yma,o$.prototype.setSize=o$.prototype.setSize,o$.prototype.setTitle=o$.prototype.setTitle,o$.prototype.setUploadToAlbumId=o$.prototype.dna,o$.prototype.toUri=o$.prototype.n4,o$.prototype.setEnablePopover=o$.prototype.Cma,(_.fb.google=_.fb.google||{}).picker=_.fb.gapi.picker.api}))},5431:function(e,t){"use strict";!function(e){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,r)};function r(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function i(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function a(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function s(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e}var l=function(e,t){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function c(e,t){function r(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var u=function(){return(u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function d(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function h(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function p(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}var f,g,m,b,y,v={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",ADFS:"adfs",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},_=[v.OPENID_SCOPE,v.PROFILE_SCOPE,v.OFFLINE_ACCESS_SCOPE],w=p(_,[v.EMAIL_SCOPE]);!function(e){e.CONTENT_TYPE="Content-Type",e.RETRY_AFTER="Retry-After",e.CCS_HEADER="X-AnchorMailbox",e.WWWAuthenticate="WWW-Authenticate",e.AuthenticationInfo="Authentication-Info"}(f||(f={})),function(e){e.ID_TOKEN="idtoken",e.CLIENT_INFO="client.info",e.ADAL_ID_TOKEN="adal.idtoken",e.ERROR="error",e.ERROR_DESC="error.description",e.ACTIVE_ACCOUNT="active-account"}(g||(g={})),function(e){e.COMMON="common",e.ORGANIZATIONS="organizations",e.CONSUMERS="consumers"}(m||(m={})),function(e){e.CLIENT_ID="client_id",e.REDIRECT_URI="redirect_uri",e.RESPONSE_TYPE="response_type",e.RESPONSE_MODE="response_mode",e.GRANT_TYPE="grant_type",e.CLAIMS="claims",e.SCOPE="scope",e.ERROR="error",e.ERROR_DESCRIPTION="error_description",e.ACCESS_TOKEN="access_token",e.ID_TOKEN="id_token",e.REFRESH_TOKEN="refresh_token",e.EXPIRES_IN="expires_in",e.STATE="state",e.NONCE="nonce",e.PROMPT="prompt",e.SESSION_STATE="session_state",e.CLIENT_INFO="client_info",e.CODE="code",e.CODE_CHALLENGE="code_challenge",e.CODE_CHALLENGE_METHOD="code_challenge_method",e.CODE_VERIFIER="code_verifier",e.CLIENT_REQUEST_ID="client-request-id",e.X_CLIENT_SKU="x-client-SKU",e.X_CLIENT_VER="x-client-VER",e.X_CLIENT_OS="x-client-OS",e.X_CLIENT_CPU="x-client-CPU",e.X_CLIENT_CURR_TELEM="x-client-current-telemetry",e.X_CLIENT_LAST_TELEM="x-client-last-telemetry",e.X_MS_LIB_CAPABILITY="x-ms-lib-capability",e.POST_LOGOUT_URI="post_logout_redirect_uri",e.ID_TOKEN_HINT="id_token_hint",e.DEVICE_CODE="device_code",e.CLIENT_SECRET="client_secret",e.CLIENT_ASSERTION="client_assertion",e.CLIENT_ASSERTION_TYPE="client_assertion_type",e.TOKEN_TYPE="token_type",e.REQ_CNF="req_cnf",e.OBO_ASSERTION="assertion",e.REQUESTED_TOKEN_USE="requested_token_use",e.ON_BEHALF_OF="on_behalf_of",e.FOCI="foci",e.CCS_HEADER="X-AnchorMailbox"}(b||(b={})),function(e){e.ACCESS_TOKEN="access_token",e.XMS_CC="xms_cc"}(y||(y={}));var E,C={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create"};!function(e){e.ACCOUNT="account",e.SID="sid",e.LOGIN_HINT="login_hint",e.ID_TOKEN="id_token",e.DOMAIN_HINT="domain_hint",e.ORGANIZATIONS="organizations",e.CONSUMERS="consumers",e.ACCOUNT_ID="accountIdentifier",e.HOMEACCOUNT_ID="homeAccountIdentifier"}(E||(E={}));var S,k,I,O,T,A,x,P={PLAIN:"plain",S256:"S256"};!function(e){e.QUERY="query",e.FRAGMENT="fragment",e.FORM_POST="form_post"}(S||(S={})),function(e){e.IMPLICIT_GRANT="implicit",e.AUTHORIZATION_CODE_GRANT="authorization_code",e.CLIENT_CREDENTIALS_GRANT="client_credentials",e.RESOURCE_OWNER_PASSWORD_GRANT="password",e.REFRESH_TOKEN_GRANT="refresh_token",e.DEVICE_CODE_GRANT="device_code",e.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"}(k||(k={})),function(e){e.MSSTS_ACCOUNT_TYPE="MSSTS",e.ADFS_ACCOUNT_TYPE="ADFS",e.MSAV1_ACCOUNT_TYPE="MSA",e.GENERIC_ACCOUNT_TYPE="Generic"}(I||(I={})),function(e){e.CACHE_KEY_SEPARATOR="-",e.CLIENT_INFO_SEPARATOR="."}(O||(O={})),function(e){e.ID_TOKEN="IdToken",e.ACCESS_TOKEN="AccessToken",e.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",e.REFRESH_TOKEN="RefreshToken"}(T||(T={})),function(e){e.ACCOUNT="Account",e.CREDENTIAL="Credential",e.ID_TOKEN="IdToken",e.ACCESS_TOKEN="AccessToken",e.REFRESH_TOKEN="RefreshToken",e.APP_METADATA="AppMetadata",e.TEMPORARY="TempCache",e.TELEMETRY="Telemetry",e.UNDEFINED="Undefined",e.THROTTLING="Throttling"}(A||(A={})),function(e){e[e.ADFS=1001]="ADFS",e[e.MSA=1002]="MSA",e[e.MSSTS=1003]="MSSTS",e[e.GENERIC=1004]="GENERIC",e[e.ACCESS_TOKEN=2001]="ACCESS_TOKEN",e[e.REFRESH_TOKEN=2002]="REFRESH_TOKEN",e[e.ID_TOKEN=2003]="ID_TOKEN",e[e.APP_METADATA=3001]="APP_METADATA",e[e.UNDEFINED=9999]="UNDEFINED"}(x||(x={}));var R,N="appmetadata",L="1",M="authority-metadata",D=86400;!function(e){e.CONFIG="config",e.CACHE="cache",e.NETWORK="network"}(R||(R={}));var U,F={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"};e.AuthenticationScheme=void 0,(U=e.AuthenticationScheme||(e.AuthenticationScheme={})).BEARER="Bearer",U.POP="pop",U.SSH="ssh-cert";var j,H,B,z,q,K=60,V=3600,G="throttling",W="retry-after, h429",$="invalid_grant",J="client_mismatch";!function(e){e.username="username",e.password="password"}(j||(j={})),function(e){e[e.httpSuccess=200]="httpSuccess",e[e.httpBadRequest=400]="httpBadRequest"}(H||(H={})),function(e){e.FAILED_AUTO_DETECTION="1",e.INTERNAL_CACHE="2",e.ENVIRONMENT_VARIABLE="3",e.IMDS="4"}(B||(B={})),function(e){e.CONFIGURED_MATCHES_DETECTED="1",e.CONFIGURED_NO_AUTO_DETECTION="2",e.CONFIGURED_NOT_DETECTED="3",e.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",e.AUTO_DETECTION_REQUESTED_FAILED="5"}(z||(z={})),function(e){e.NO_CACHE_HIT="0",e.FORCE_REFRESH="1",e.NO_CACHED_ACCESS_TOKEN="2",e.CACHED_ACCESS_TOKEN_EXPIRED="3",e.REFRESH_CACHED_ACCESS_TOKEN="4"}(q||(q={}));var Y,Q={unexpectedError:{code:"unexpected_error",desc:"Unexpected error in authentication."}},X=function(e){function t(r,n,o){var i=this,a=n?r+": "+n:r;return i=e.call(this,a)||this,Object.setPrototypeOf(i,t.prototype),i.errorCode=r||v.EMPTY_STRING,i.errorMessage=n||"",i.subError=o||"",i.name="AuthError",i}return c(t,e),t.prototype.setCorrelationId=function(e){this.correlationId=e},t.createUnexpectedError=function(e){return new t(Q.unexpectedError.code,Q.unexpectedError.desc+": "+e)},t}(Error),Z={createNewGuid:function(){throw X.createUnexpectedError("Crypto interface - createNewGuid() has not been implemented")},base64Decode:function(){throw X.createUnexpectedError("Crypto interface - base64Decode() has not been implemented")},base64Encode:function(){throw X.createUnexpectedError("Crypto interface - base64Encode() has not been implemented")},generatePkceCodes:function(){return d(this,void 0,void 0,(function(){return h(this,(function(e){throw X.createUnexpectedError("Crypto interface - generatePkceCodes() has not been implemented")}))}))},getPublicKeyThumbprint:function(){return d(this,void 0,void 0,(function(){return h(this,(function(e){throw X.createUnexpectedError("Crypto interface - getPublicKeyThumbprint() has not been implemented")}))}))},removeTokenBindingKey:function(){return d(this,void 0,void 0,(function(){return h(this,(function(e){throw X.createUnexpectedError("Crypto interface - removeTokenBindingKey() has not been implemented")}))}))},clearKeystore:function(){return d(this,void 0,void 0,(function(){return h(this,(function(e){throw X.createUnexpectedError("Crypto interface - clearKeystore() has not been implemented")}))}))},signJwt:function(){return d(this,void 0,void 0,(function(){return h(this,(function(e){throw X.createUnexpectedError("Crypto interface - signJwt() has not been implemented")}))}))}},ee={clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoEmptyError:{code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},tokenParsingError:{code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},nullOrEmptyToken:{code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},networkError:{code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},unableToGetOpenidConfigError:{code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hashNotDeserialized:{code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},blankGuidGenerated:{code:"blank_guid_generated",desc:"The guid generated was blank. Please review the trace to determine the root cause."},invalidStateError:{code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},stateMismatchError:{code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},stateNotFoundError:{code:"state_not_found",desc:"State not found"},nonceMismatchError:{code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},nonceNotFoundError:{code:"nonce_not_found",desc:"nonce not found"},noTokensFoundError:{code:"no_tokens_found",desc:"No tokens were found for the given scopes, and no authorization code was passed to acquireToken. You must retrieve an authorization code before making a call to acquireToken()."},multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},multipleMatchingAccounts:{code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},multipleMatchingAppMetadata:{code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"},tokenRequestCannotBeMade:{code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},appendEmptyScopeError:{code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},removeEmptyScopeError:{code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},appendScopeSetError:{code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},emptyInputScopeSetError:{code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},DeviceCodePollingCancelled:{code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},DeviceCodeExpired:{code:"device_code_expired",desc:"Device code is expired."},DeviceCodeUnknownError:{code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},NoAccountInSilentRequest:{code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},invalidCacheRecord:{code:"invalid_cache_record",desc:"Cache record object was null or undefined."},invalidCacheEnvironment:{code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},noAccountFound:{code:"no_account_found",desc:"No account found in cache for given key."},CachePluginError:{code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},noCryptoObj:{code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},unexpectedAccountType:{code:"unexpected_account_type",desc:"Unexpected account type."},unexpectedCredentialType:{code:"unexpected_credential_type",desc:"Unexpected credential type."},invalidAssertion:{code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},invalidClientCredential:{code:"invalid_client_credential",desc:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential"},tokenRefreshRequired:{code:"token_refresh_required",desc:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired."},userTimeoutReached:{code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},tokenClaimsRequired:{code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},noAuthorizationCodeFromServer:{code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},noAzureRegionDetected:{code:"no_azure_region_detected",desc:"No azure region was detected and no fallback was made available"},accessTokenEntityNullError:{code:"access_token_entity_null",desc:"Access token entity is null, please check logs and cache to ensure a valid access token is present."},bindingKeyNotRemovedError:{code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},logoutNotSupported:{code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."}},te=function(e){function t(r,n){var o=e.call(this,r,n)||this;return o.name="ClientAuthError",Object.setPrototypeOf(o,t.prototype),o}return c(t,e),t.createClientInfoDecodingError=function(e){return new t(ee.clientInfoDecodingError.code,ee.clientInfoDecodingError.desc+" Failed with error: "+e)},t.createClientInfoEmptyError=function(){return new t(ee.clientInfoEmptyError.code,""+ee.clientInfoEmptyError.desc)},t.createTokenParsingError=function(e){return new t(ee.tokenParsingError.code,ee.tokenParsingError.desc+" Failed with error: "+e)},t.createTokenNullOrEmptyError=function(e){return new t(ee.nullOrEmptyToken.code,ee.nullOrEmptyToken.desc+" Raw Token Value: "+e)},t.createEndpointDiscoveryIncompleteError=function(e){return new t(ee.endpointResolutionError.code,ee.endpointResolutionError.desc+" Detail: "+e)},t.createNetworkError=function(e,r){return new t(ee.networkError.code,ee.networkError.desc+" | Fetch client threw: "+r+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToGetOpenidConfigError=function(e){return new t(ee.unableToGetOpenidConfigError.code,ee.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+e)},t.createHashNotDeserializedError=function(e){return new t(ee.hashNotDeserialized.code,ee.hashNotDeserialized.desc+" Given Object: "+e)},t.createInvalidStateError=function(e,r){return new t(ee.invalidStateError.code,ee.invalidStateError.desc+" Invalid State: "+e+", Root Err: "+r)},t.createStateMismatchError=function(){return new t(ee.stateMismatchError.code,ee.stateMismatchError.desc)},t.createStateNotFoundError=function(e){return new t(ee.stateNotFoundError.code,ee.stateNotFoundError.desc+": "+e)},t.createNonceMismatchError=function(){return new t(ee.nonceMismatchError.code,ee.nonceMismatchError.desc)},t.createNonceNotFoundError=function(e){return new t(ee.nonceNotFoundError.code,ee.nonceNotFoundError.desc+": "+e)},t.createMultipleMatchingTokensInCacheError=function(){return new t(ee.multipleMatchingTokens.code,ee.multipleMatchingTokens.desc+".")},t.createMultipleMatchingAccountsInCacheError=function(){return new t(ee.multipleMatchingAccounts.code,ee.multipleMatchingAccounts.desc)},t.createMultipleMatchingAppMetadataInCacheError=function(){return new t(ee.multipleMatchingAppMetadata.code,ee.multipleMatchingAppMetadata.desc)},t.createTokenRequestCannotBeMadeError=function(){return new t(ee.tokenRequestCannotBeMade.code,ee.tokenRequestCannotBeMade.desc)},t.createAppendEmptyScopeToSetError=function(e){return new t(ee.appendEmptyScopeError.code,ee.appendEmptyScopeError.desc+" Given Scope: "+e)},t.createRemoveEmptyScopeFromSetError=function(e){return new t(ee.removeEmptyScopeError.code,ee.removeEmptyScopeError.desc+" Given Scope: "+e)},t.createAppendScopeSetError=function(e){return new t(ee.appendScopeSetError.code,ee.appendScopeSetError.desc+" Detail Error: "+e)},t.createEmptyInputScopeSetError=function(){return new t(ee.emptyInputScopeSetError.code,""+ee.emptyInputScopeSetError.desc)},t.createDeviceCodeCancelledError=function(){return new t(ee.DeviceCodePollingCancelled.code,""+ee.DeviceCodePollingCancelled.desc)},t.createDeviceCodeExpiredError=function(){return new t(ee.DeviceCodeExpired.code,""+ee.DeviceCodeExpired.desc)},t.createDeviceCodeUnknownError=function(){return new t(ee.DeviceCodeUnknownError.code,""+ee.DeviceCodeUnknownError.desc)},t.createNoAccountInSilentRequestError=function(){return new t(ee.NoAccountInSilentRequest.code,""+ee.NoAccountInSilentRequest.desc)},t.createNullOrUndefinedCacheRecord=function(){return new t(ee.invalidCacheRecord.code,ee.invalidCacheRecord.desc)},t.createInvalidCacheEnvironmentError=function(){return new t(ee.invalidCacheEnvironment.code,ee.invalidCacheEnvironment.desc)},t.createNoAccountFoundError=function(){return new t(ee.noAccountFound.code,ee.noAccountFound.desc)},t.createCachePluginError=function(){return new t(ee.CachePluginError.code,""+ee.CachePluginError.desc)},t.createNoCryptoObjectError=function(e){return new t(ee.noCryptoObj.code,""+ee.noCryptoObj.desc+e)},t.createInvalidCacheTypeError=function(){return new t(ee.invalidCacheType.code,""+ee.invalidCacheType.desc)},t.createUnexpectedAccountTypeError=function(){return new t(ee.unexpectedAccountType.code,""+ee.unexpectedAccountType.desc)},t.createUnexpectedCredentialTypeError=function(){return new t(ee.unexpectedCredentialType.code,""+ee.unexpectedCredentialType.desc)},t.createInvalidAssertionError=function(){return new t(ee.invalidAssertion.code,""+ee.invalidAssertion.desc)},t.createInvalidCredentialError=function(){return new t(ee.invalidClientCredential.code,""+ee.invalidClientCredential.desc)},t.createRefreshRequiredError=function(){return new t(ee.tokenRefreshRequired.code,ee.tokenRefreshRequired.desc)},t.createUserTimeoutReachedError=function(){return new t(ee.userTimeoutReached.code,ee.userTimeoutReached.desc)},t.createTokenClaimsRequiredError=function(){return new t(ee.tokenClaimsRequired.code,ee.tokenClaimsRequired.desc)},t.createNoAuthCodeInServerResponseError=function(){return new t(ee.noAuthorizationCodeFromServer.code,ee.noAuthorizationCodeFromServer.desc)},t.createBindingKeyNotRemovedError=function(){return new t(ee.bindingKeyNotRemovedError.code,ee.bindingKeyNotRemovedError.desc)},t.createLogoutNotSupportedError=function(){return new t(ee.logoutNotSupported.code,ee.logoutNotSupported.desc)},t}(X),re=function(){function e(){}return e.decodeAuthToken=function(t){if(e.isEmpty(t))throw te.createTokenNullOrEmptyError(t);var r=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(t);if(!r||r.length<4)throw te.createTokenParsingError("Given token is malformed: "+JSON.stringify(t));return{header:r[1],JWSPayload:r[2],JWSSig:r[3]}},e.isEmpty=function(e){return void 0===e||!e||0===e.length},e.isEmptyObj=function(t){if(t&&!e.isEmpty(t))try{var r=JSON.parse(t);return 0===Object.keys(r).length}catch(e){}return!0},e.startsWith=function(e,t){return 0===e.indexOf(t)},e.endsWith=function(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length},e.queryStringToObject=function(e){var t={},r=e.split("&"),n=function(e){return decodeURIComponent(e.replace(/\+/g," "))};return r.forEach((function(e){if(e.trim()){var r=e.split(/=(.+)/g,2),o=r[0],i=r[1];o&&i&&(t[n(o)]=n(i))}})),t},e.trimArrayEntries=function(e){return e.map((function(e){return e.trim()}))},e.removeEmptyStringsFromArray=function(t){return t.filter((function(t){return!e.isEmpty(t)}))},e.jsonParseHelper=function(e){try{return JSON.parse(e)}catch(e){return null}},e.matchPattern=function(e,t){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(t)},e}();e.LogLevel=void 0,(Y=e.LogLevel||(e.LogLevel={}))[Y.Error=0]="Error",Y[Y.Warning=1]="Warning",Y[Y.Info=2]="Info",Y[Y.Verbose=3]="Verbose",Y[Y.Trace=4]="Trace";var ne,oe=function(){function t(t,r,n){this.level=e.LogLevel.Info,this.localCallback=t.loggerCallback||function(){},this.piiLoggingEnabled=t.piiLoggingEnabled||!1,this.level="number"==typeof t.logLevel?t.logLevel:e.LogLevel.Info,this.correlationId=t.correlationId||"",this.packageName=r||v.EMPTY_STRING,this.packageVersion=n||v.EMPTY_STRING}return t.prototype.clone=function(e,r,n){return new t({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:n||this.correlationId},e,r)},t.prototype.logMessage=function(t,r){if(!(r.logLevel>this.level||!this.piiLoggingEnabled&&r.containsPii)){var n=(new Date).toUTCString(),o=(re.isEmpty(r.correlationId)?re.isEmpty(this.correlationId)?"["+n+"]":"["+n+"] : ["+this.correlationId+"]":"["+n+"] : ["+r.correlationId+"]")+" : "+this.packageName+"@"+this.packageVersion+" : "+e.LogLevel[r.logLevel]+" - "+t;this.executeCallback(r.logLevel,o,r.containsPii||!1)}},t.prototype.executeCallback=function(e,t,r){this.localCallback&&this.localCallback(e,t,r)},t.prototype.error=function(t,r){this.logMessage(t,{logLevel:e.LogLevel.Error,containsPii:!1,correlationId:r||""})},t.prototype.errorPii=function(t,r){this.logMessage(t,{logLevel:e.LogLevel.Error,containsPii:!0,correlationId:r||""})},t.prototype.warning=function(t,r){this.logMessage(t,{logLevel:e.LogLevel.Warning,containsPii:!1,correlationId:r||""})},t.prototype.warningPii=function(t,r){this.logMessage(t,{logLevel:e.LogLevel.Warning,containsPii:!0,correlationId:r||""})},t.prototype.info=function(t,r){this.logMessage(t,{logLevel:e.LogLevel.Info,containsPii:!1,correlationId:r||""})},t.prototype.infoPii=function(t,r){this.logMessage(t,{logLevel:e.LogLevel.Info,containsPii:!0,correlationId:r||""})},t.prototype.verbose=function(t,r){this.logMessage(t,{logLevel:e.LogLevel.Verbose,containsPii:!1,correlationId:r||""})},t.prototype.verbosePii=function(t,r){this.logMessage(t,{logLevel:e.LogLevel.Verbose,containsPii:!0,correlationId:r||""})},t.prototype.trace=function(t,r){this.logMessage(t,{logLevel:e.LogLevel.Trace,containsPii:!1,correlationId:r||""})},t.prototype.tracePii=function(t,r){this.logMessage(t,{logLevel:e.LogLevel.Trace,containsPii:!0,correlationId:r||""})},t.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},t}(),ie="5.1.0",ae=function(){function t(){}return t.prototype.generateAccountId=function(){return t.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},t.prototype.generateCredentialId=function(){return t.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},t.prototype.generateTarget=function(){return t.generateTargetForCacheKey(this.target)},t.prototype.generateCredentialKey=function(){return t.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType)},t.prototype.generateType=function(){switch(this.credentialType){case T.ID_TOKEN:return x.ID_TOKEN;case T.ACCESS_TOKEN:case T.ACCESS_TOKEN_WITH_AUTH_SCHEME:return x.ACCESS_TOKEN;case T.REFRESH_TOKEN:return x.REFRESH_TOKEN;default:throw te.createUnexpectedCredentialTypeError()}},t.getCredentialType=function(e){return-1!==e.indexOf(T.ACCESS_TOKEN.toLowerCase())?-1!==e.indexOf(T.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())?T.ACCESS_TOKEN_WITH_AUTH_SCHEME:T.ACCESS_TOKEN:-1!==e.indexOf(T.ID_TOKEN.toLowerCase())?T.ID_TOKEN:-1!==e.indexOf(T.REFRESH_TOKEN.toLowerCase())?T.REFRESH_TOKEN:v.NOT_DEFINED},t.generateCredentialCacheKey=function(t,r,n,o,i,a,s,l){var c=[this.generateAccountIdForCacheKey(t,r),this.generateCredentialIdForCacheKey(n,o,i,s),this.generateTargetForCacheKey(a)];return l&&l!==e.AuthenticationScheme.BEARER&&c.push(l.toLowerCase()),c.join(O.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateAccountIdForCacheKey=function(e,t){return[e,t].join(O.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateCredentialIdForCacheKey=function(e,t,r,n){return[e,e===T.REFRESH_TOKEN&&n||t,r||""].join(O.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateTargetForCacheKey=function(e){return(e||"").toLowerCase()},t}(),se={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},claimsRequestParsingError:{code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},authorityUriInsecure:{code:"authority_uri_insecure",desc:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options"},urlParseError:{code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},urlEmptyError:{code:"empty_url_error",desc:"URL was empty or null."},emptyScopesError:{code:"empty_input_scopes_error",desc:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token."},nonArrayScopesError:{code:"nonarray_input_scopes_error",desc:"Scopes cannot be passed as non-array."},clientIdSingleScopeError:{code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},invalidPrompt:{code:"invalid_prompt_value",desc:"Supported prompt values are 'login', 'select_account', 'consent', 'create' and 'none'. Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest"},invalidClaimsRequest:{code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},tokenRequestEmptyError:{code:"token_request_empty",desc:"Token request was empty and not found in cache."},logoutRequestEmptyError:{code:"logout_request_empty",desc:"The logout request was null or undefined."},invalidCodeChallengeMethod:{code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".'},invalidCodeChallengeParams:{code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},invalidCloudDiscoveryMetadata:{code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},invalidAuthorityMetadata:{code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},untrustedAuthority:{code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},missingSshJwk:{code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},missingSshKid:{code:"missing_ssh_kid",desc:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme."},missingNonceAuthenticationHeader:{code:"missing_nonce_authentication_header",desc:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce."},invalidAuthenticationHeader:{code:"invalid_authentication_header",desc:"Invalid authentication header provided"}},le=function(e){function t(r,n){var o=e.call(this,r,n)||this;return o.name="ClientConfigurationError",Object.setPrototypeOf(o,t.prototype),o}return c(t,e),t.createRedirectUriEmptyError=function(){return new t(se.redirectUriNotSet.code,se.redirectUriNotSet.desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(se.postLogoutUriNotSet.code,se.postLogoutUriNotSet.desc)},t.createClaimsRequestParsingError=function(e){return new t(se.claimsRequestParsingError.code,se.claimsRequestParsingError.desc+" Given value: "+e)},t.createInsecureAuthorityUriError=function(e){return new t(se.authorityUriInsecure.code,se.authorityUriInsecure.desc+" Given URI: "+e)},t.createUrlParseError=function(e){return new t(se.urlParseError.code,se.urlParseError.desc+" Given Error: "+e)},t.createUrlEmptyError=function(){return new t(se.urlEmptyError.code,se.urlEmptyError.desc)},t.createEmptyScopesArrayError=function(){return new t(se.emptyScopesError.code,""+se.emptyScopesError.desc)},t.createClientIdSingleScopeError=function(e){return new t(se.clientIdSingleScopeError.code,se.clientIdSingleScopeError.desc+" Given Scopes: "+e)},t.createInvalidPromptError=function(e){return new t(se.invalidPrompt.code,se.invalidPrompt.desc+" Given value: "+e)},t.createInvalidClaimsRequestError=function(){return new t(se.invalidClaimsRequest.code,se.invalidClaimsRequest.desc)},t.createEmptyLogoutRequestError=function(){return new t(se.logoutRequestEmptyError.code,se.logoutRequestEmptyError.desc)},t.createEmptyTokenRequestError=function(){return new t(se.tokenRequestEmptyError.code,se.tokenRequestEmptyError.desc)},t.createInvalidCodeChallengeMethodError=function(){return new t(se.invalidCodeChallengeMethod.code,se.invalidCodeChallengeMethod.desc)},t.createInvalidCodeChallengeParamsError=function(){return new t(se.invalidCodeChallengeParams.code,se.invalidCodeChallengeParams.desc)},t.createInvalidCloudDiscoveryMetadataError=function(){return new t(se.invalidCloudDiscoveryMetadata.code,se.invalidCloudDiscoveryMetadata.desc)},t.createInvalidAuthorityMetadataError=function(){return new t(se.invalidAuthorityMetadata.code,se.invalidAuthorityMetadata.desc)},t.createUntrustedAuthorityError=function(){return new t(se.untrustedAuthority.code,se.untrustedAuthority.desc)},t.createMissingSshJwkError=function(){return new t(se.missingSshJwk.code,se.missingSshJwk.desc)},t.createMissingSshKidError=function(){return new t(se.missingSshKid.code,se.missingSshKid.desc)},t.createMissingNonceAuthenticationHeadersError=function(){return new t(se.missingNonceAuthenticationHeader.code,se.missingNonceAuthenticationHeader.desc)},t.createInvalidAuthenticationHeaderError=function(e,r){return new t(se.invalidAuthenticationHeader.code,se.invalidAuthenticationHeader.desc+". Invalid header: "+e+". Details: "+r)},t}(te),ce=function(){function e(e){var t=this,r=e?re.trimArrayEntries(p(e)):[],n=r?re.removeEmptyStringsFromArray(r):[];this.validateInputScopes(n),this.scopes=new Set,n.forEach((function(e){return t.scopes.add(e)}))}return e.fromString=function(t){return new e((t||"").split(" "))},e.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw le.createEmptyScopesArrayError()},e.prototype.containsScope=function(t){var r=new e(this.printScopesLowerCase().split(" "));return!re.isEmpty(t)&&r.scopes.has(t.toLowerCase())},e.prototype.containsScopeSet=function(e){var t=this;return!(!e||e.scopes.size<=0)&&this.scopes.size>=e.scopes.size&&e.asArray().every((function(e){return t.containsScope(e)}))},e.prototype.containsOnlyOIDCScopes=function(){var e=this,t=0;return w.forEach((function(r){e.containsScope(r)&&(t+=1)})),this.scopes.size===t},e.prototype.appendScope=function(e){re.isEmpty(e)||this.scopes.add(e.trim())},e.prototype.appendScopes=function(e){var t=this;try{e.forEach((function(e){return t.appendScope(e)}))}catch(e){throw te.createAppendScopeSetError(e)}},e.prototype.removeScope=function(e){if(re.isEmpty(e))throw te.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},e.prototype.removeOIDCScopes=function(){var e=this;w.forEach((function(t){e.scopes.delete(t)}))},e.prototype.unionScopeSets=function(e){if(!e)throw te.createEmptyInputScopeSetError();var t=new Set;return e.scopes.forEach((function(e){return t.add(e.toLowerCase())})),this.scopes.forEach((function(e){return t.add(e.toLowerCase())})),t},e.prototype.intersectingScopeSets=function(e){if(!e)throw te.createEmptyInputScopeSetError();e.containsOnlyOIDCScopes()||e.removeOIDCScopes();var t=this.unionScopeSets(e),r=e.getScopeCount(),n=this.getScopeCount();return t.size<n+r},e.prototype.getScopeCount=function(){return this.scopes.size},e.prototype.asArray=function(){var e=[];return this.scopes.forEach((function(t){return e.push(t)})),e},e.prototype.printScopes=function(){return this.scopes?this.asArray().join(" "):""},e.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},e}();function ue(e,t){if(re.isEmpty(e))throw te.createClientInfoEmptyError();try{var r=t.base64Decode(e);return JSON.parse(r)}catch(e){throw te.createClientInfoDecodingError(e)}}function de(e){if(re.isEmpty(e))throw te.createClientInfoDecodingError("Home account ID was empty.");var t=e.split(O.CLIENT_INFO_SEPARATOR,2);return{uid:t[0],utid:t.length<2?v.EMPTY_STRING:t[1]}}!function(e){e[e.Default=0]="Default",e[e.Adfs=1]="Adfs"}(ne||(ne={}));var he,pe=function(){function e(){}return e.prototype.generateAccountId=function(){return[this.homeAccountId,this.environment].join(O.CACHE_KEY_SEPARATOR).toLowerCase()},e.prototype.generateAccountKey=function(){return e.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},e.prototype.generateType=function(){switch(this.authorityType){case I.ADFS_ACCOUNT_TYPE:return x.ADFS;case I.MSAV1_ACCOUNT_TYPE:return x.MSA;case I.MSSTS_ACCOUNT_TYPE:return x.MSSTS;case I.GENERIC_ACCOUNT_TYPE:return x.GENERIC;default:throw te.createUnexpectedAccountTypeError()}},e.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims}},e.generateAccountCacheKey=function(e){return[e.homeAccountId,e.environment||"",e.tenantId||""].join(O.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAccount=function(t,r,n,o,i,a,s,l){var c,u,d,h,p,f,g=new e;g.authorityType=I.MSSTS_ACCOUNT_TYPE,g.clientInfo=t,g.homeAccountId=r;var m=l||o&&o.getPreferredCache();if(!m)throw te.createInvalidCacheEnvironmentError();return g.environment=m,g.realm=(null===(c=null==n?void 0:n.claims)||void 0===c?void 0:c.tid)||"",g.oboAssertion=i,n&&(g.idTokenClaims=n.claims,g.localAccountId=(null===(u=null==n?void 0:n.claims)||void 0===u?void 0:u.oid)||(null===(d=null==n?void 0:n.claims)||void 0===d?void 0:d.sub)||"",g.username=(null===(h=null==n?void 0:n.claims)||void 0===h?void 0:h.preferred_username)||((null===(p=null==n?void 0:n.claims)||void 0===p?void 0:p.emails)?n.claims.emails[0]:""),g.name=null===(f=null==n?void 0:n.claims)||void 0===f?void 0:f.name),g.cloudGraphHostName=a,g.msGraphHost=s,g},e.createGenericAccount=function(t,r,n,o,i,a,s){var l,c,u,d,h=new e;h.authorityType=n&&n.authorityType===ne.Adfs?I.ADFS_ACCOUNT_TYPE:I.GENERIC_ACCOUNT_TYPE,h.homeAccountId=t,h.realm="",h.oboAssertion=o;var p=s||n&&n.getPreferredCache();if(!p)throw te.createInvalidCacheEnvironmentError();return r&&(h.localAccountId=(null===(l=null==r?void 0:r.claims)||void 0===l?void 0:l.oid)||(null===(c=null==r?void 0:r.claims)||void 0===c?void 0:c.sub)||"",h.username=(null===(u=null==r?void 0:r.claims)||void 0===u?void 0:u.upn)||"",h.name=(null===(d=null==r?void 0:r.claims)||void 0===d?void 0:d.name)||"",h.idTokenClaims=null==r?void 0:r.claims),h.environment=p,h.cloudGraphHostName=i,h.msGraphHost=a,h},e.generateHomeAccountId=function(e,t,r,n,o){var i,a=(null===(i=null==o?void 0:o.claims)||void 0===i?void 0:i.sub)?o.claims.sub:v.EMPTY_STRING;if(t===ne.Adfs)return a;if(e)try{var s=ue(e,n);if(!re.isEmpty(s.uid)&&!re.isEmpty(s.utid))return""+s.uid+O.CLIENT_INFO_SEPARATOR+s.utid}catch(e){}return r.verbose("No client info in response"),a},e.isAccountEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType")},e.accountInfoIsEqual=function(e,t,r){if(!e||!t)return!1;var n=!0;if(r){var o=e.idTokenClaims||{},i=t.idTokenClaims||{};n=o.iat===i.iat&&o.nonce===i.nonce}return e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&n},e}(),fe=function(){function e(t,r){if(re.isEmpty(t))throw te.createTokenNullOrEmptyError(t);this.rawToken=t,this.claims=e.extractTokenClaims(t,r)}return e.extractTokenClaims=function(e,t){var r=re.decodeAuthToken(e);try{var n=r.JWSPayload,o=t.base64Decode(n);return JSON.parse(o)}catch(e){throw te.createTokenParsingError(e)}},e}(),ge=function(){function t(e,t){this.clientId=e,this.cryptoImpl=t}return t.prototype.getAllAccounts=function(){var e=this,r=this.getAccountsFilteredBy(),n=Object.keys(r).map((function(e){return r[e]}));return n.length<1?[]:n.map((function(r){var n=t.toObject(new pe,r).getAccountInfo(),o=e.readIdTokenFromCache(e.clientId,n);return o&&!n.idTokenClaims&&(n.idTokenClaims=new fe(o.secret,e.cryptoImpl).claims),n}))},t.prototype.saveCacheRecord=function(e){return d(this,void 0,void 0,(function(){return h(this,(function(t){switch(t.label){case 0:if(!e)throw te.createNullOrUndefinedCacheRecord();return e.account&&this.setAccount(e.account),e.idToken&&this.setIdTokenCredential(e.idToken),e.accessToken?[4,this.saveAccessToken(e.accessToken)]:[3,2];case 1:t.sent(),t.label=2;case 2:return e.refreshToken&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata),[2]}}))}))},t.prototype.saveAccessToken=function(e){return d(this,void 0,void 0,(function(){var t,r,n,o,i=this;return h(this,(function(a){switch(a.label){case 0:return t=this.getCredentialsFilteredBy({clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType}),r=ce.fromString(e.target),(n=Object.keys(t.accessTokens).map((function(e){return t.accessTokens[e]})))?(o=[],n.forEach((function(e){ce.fromString(e.target).intersectingScopeSets(r)&&o.push(i.removeCredential(e))})),[4,Promise.all(o)]):[3,2];case 1:a.sent(),a.label=2;case 2:return this.setAccessTokenCredential(e),[2]}}))}))},t.prototype.getAccountsFilteredBy=function(e){return this.getAccountsFilteredByInternal(e?e.homeAccountId:"",e?e.environment:"",e?e.realm:"")},t.prototype.getAccountsFilteredByInternal=function(e,t,r){var n=this,o=this.getKeys(),i={};return o.forEach((function(o){var a=n.getAccount(o);a&&(e&&!n.matchHomeAccountId(a,e)||t&&!n.matchEnvironment(a,t)||r&&!n.matchRealm(a,r)||(i[o]=a))})),i},t.prototype.getCredentialsFilteredBy=function(e){return this.getCredentialsFilteredByInternal(e.homeAccountId,e.environment,e.credentialType,e.clientId,e.familyId,e.realm,e.target,e.oboAssertion,e.tokenType,e.keyId)},t.prototype.getCredentialsFilteredByInternal=function(t,r,n,o,i,a,s,l,c,u){var d=this,h=this.getKeys(),p={idTokens:{},accessTokens:{},refreshTokens:{}};return h.forEach((function(h){var f=ae.getCredentialType(h);if(f!==v.NOT_DEFINED){var g=d.getSpecificCredential(h,f);if(g&&(!l||d.matchOboAssertion(g,l))&&(!t||d.matchHomeAccountId(g,t))&&(!r||d.matchEnvironment(g,r))&&(!a||d.matchRealm(g,a))&&(!n||d.matchCredentialType(g,n))&&(!o||d.matchClientId(g,o))&&(!i||d.matchFamilyId(g,i))&&(!s||d.matchTarget(g,s))){if(n===T.ACCESS_TOKEN_WITH_AUTH_SCHEME){if(c&&!d.matchTokenType(g,c))return;switch(c){case e.AuthenticationScheme.POP:if(-1===h.indexOf(e.AuthenticationScheme.POP))return void d.removeItem(h,A.CREDENTIAL);break;case e.AuthenticationScheme.SSH:if(u&&!d.matchKeyId(g,u))return}}switch(f){case T.ID_TOKEN:p.idTokens[h]=g;break;case T.ACCESS_TOKEN:case T.ACCESS_TOKEN_WITH_AUTH_SCHEME:p.accessTokens[h]=g;break;case T.REFRESH_TOKEN:p.refreshTokens[h]=g}}}})),p},t.prototype.getAppMetadataFilteredBy=function(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)},t.prototype.getAppMetadataFilteredByInternal=function(e,t){var r=this,n=this.getKeys(),o={};return n.forEach((function(n){if(r.isAppMetadata(n)){var i=r.getAppMetadata(n);i&&(e&&!r.matchEnvironment(i,e)||t&&!r.matchClientId(i,t)||(o[n]=i))}})),o},t.prototype.getAuthorityMetadataByAlias=function(e){var t=this,r=this.getAuthorityMetadataKeys(),n=null;return r.forEach((function(r){if(t.isAuthorityMetadata(r)&&-1!==r.indexOf(t.clientId)){var o=t.getAuthorityMetadata(r);o&&-1!==o.aliases.indexOf(e)&&(n=o)}})),n},t.prototype.removeAllAccounts=function(){return d(this,void 0,void 0,(function(){var e,t,r=this;return h(this,(function(n){switch(n.label){case 0:return e=this.getKeys(),t=[],e.forEach((function(e){r.getAccount(e)&&t.push(r.removeAccount(e))})),[4,Promise.all(t)];case 1:return n.sent(),[2,!0]}}))}))},t.prototype.removeAccount=function(e){return d(this,void 0,void 0,(function(){var t;return h(this,(function(r){switch(r.label){case 0:if(!(t=this.getAccount(e)))throw te.createNoAccountFoundError();return[4,this.removeAccountContext(t)];case 1:return[2,r.sent()&&this.removeItem(e,A.ACCOUNT)]}}))}))},t.prototype.removeAccountContext=function(e){return d(this,void 0,void 0,(function(){var t,r,n,o=this;return h(this,(function(i){switch(i.label){case 0:return t=this.getKeys(),r=e.generateAccountId(),n=[],t.forEach((function(e){var t=ae.getCredentialType(e);if(t!==v.NOT_DEFINED){var i=o.getSpecificCredential(e,t);i&&r===i.generateAccountId()&&n.push(o.removeCredential(i))}})),[4,Promise.all(n)];case 1:return i.sent(),[2,!0]}}))}))},t.prototype.removeCredential=function(t){return d(this,void 0,void 0,(function(){var r,n;return h(this,(function(o){switch(o.label){case 0:if(r=t.generateCredentialKey(),t.credentialType.toLowerCase()!==T.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(t.tokenType!==e.AuthenticationScheme.POP)return[3,4];if(!(n=t.keyId))return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(n)];case 2:return o.sent(),[3,4];case 3:throw o.sent(),te.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(r,A.CREDENTIAL)]}}))}))},t.prototype.removeAppMetadata=function(){var e=this;return this.getKeys().forEach((function(t){e.isAppMetadata(t)&&e.removeItem(t,A.APP_METADATA)})),!0},t.prototype.readCacheRecord=function(e,t,r,n,o,i){var a=this.readAccountFromCache(e),s=this.readIdTokenFromCache(t,e),l=this.readAccessTokenFromCache(t,e,r,o,i),c=this.readRefreshTokenFromCache(t,e,!1),u=this.readAppMetadataFromCache(n,t);return a&&s&&(a.idTokenClaims=new fe(s.secret,this.cryptoImpl).claims),{account:a,idToken:s,accessToken:l,refreshToken:c,appMetadata:u}},t.prototype.readAccountFromCache=function(e){var t=pe.generateAccountCacheKey(e);return this.getAccount(t)},t.prototype.readIdTokenFromCache=function(e,t){var r={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:T.ID_TOKEN,clientId:e,realm:t.tenantId},n=this.getCredentialsFilteredBy(r),o=Object.keys(n.idTokens).map((function(e){return n.idTokens[e]})),i=o.length;if(i<1)return null;if(i>1)throw te.createMultipleMatchingTokensInCacheError();return o[0]},t.prototype.readAccessTokenFromCache=function(t,r,n,o,i){var a=o&&o!==e.AuthenticationScheme.BEARER?T.ACCESS_TOKEN_WITH_AUTH_SCHEME:T.ACCESS_TOKEN,s={homeAccountId:r.homeAccountId,environment:r.environment,credentialType:a,clientId:t,realm:r.tenantId,target:n.printScopesLowerCase(),tokenType:o,keyId:i},l=this.getCredentialsFilteredBy(s),c=Object.keys(l.accessTokens).map((function(e){return l.accessTokens[e]})),u=c.length;if(u<1)return null;if(u>1)throw te.createMultipleMatchingTokensInCacheError();return c[0]},t.prototype.readRefreshTokenFromCache=function(e,t,r){var n=r?L:void 0,o={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:T.REFRESH_TOKEN,clientId:e,familyId:n},i=this.getCredentialsFilteredBy(o),a=Object.keys(i.refreshTokens).map((function(e){return i.refreshTokens[e]}));return a.length<1?null:a[0]},t.prototype.readAppMetadataFromCache=function(e,t){var r={environment:e,clientId:t},n=this.getAppMetadataFilteredBy(r),o=Object.keys(n).map((function(e){return n[e]})),i=o.length;if(i<1)return null;if(i>1)throw te.createMultipleMatchingAppMetadataInCacheError();return o[0]},t.prototype.isAppMetadataFOCI=function(e,t){var r=this.readAppMetadataFromCache(e,t);return!(!r||r.familyId!==L)},t.prototype.matchHomeAccountId=function(e,t){return!(!e.homeAccountId||t!==e.homeAccountId)},t.prototype.matchOboAssertion=function(e,t){return!(!e.oboAssertion||t!==e.oboAssertion)},t.prototype.matchEnvironment=function(e,t){var r=this.getAuthorityMetadataByAlias(t);return!!(r&&r.aliases.indexOf(e.environment)>-1)},t.prototype.matchCredentialType=function(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()},t.prototype.matchClientId=function(e,t){return!(!e.clientId||t!==e.clientId)},t.prototype.matchFamilyId=function(e,t){return!(!e.familyId||t!==e.familyId)},t.prototype.matchRealm=function(e,t){return!(!e.realm||t!==e.realm)},t.prototype.matchTarget=function(e,t){if(e.credentialType!==T.ACCESS_TOKEN&&e.credentialType!==T.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target)return!1;var r=ce.fromString(e.target),n=ce.fromString(t);return n.containsOnlyOIDCScopes()?n.removeScope(v.OFFLINE_ACCESS_SCOPE):n.removeOIDCScopes(),r.containsScopeSet(n)},t.prototype.matchTokenType=function(e,t){return!(!e.tokenType||e.tokenType!==t)},t.prototype.matchKeyId=function(e,t){return!(!e.keyId||e.keyId!==t)},t.prototype.isAppMetadata=function(e){return-1!==e.indexOf(N)},t.prototype.isAuthorityMetadata=function(e){return-1!==e.indexOf(M)},t.prototype.generateAuthorityMetadataCacheKey=function(e){return M+"-"+this.clientId+"-"+e},t.prototype.getSpecificCredential=function(e,t){switch(t){case T.ID_TOKEN:return this.getIdTokenCredential(e);case T.ACCESS_TOKEN:case T.ACCESS_TOKEN_WITH_AUTH_SCHEME:return this.getAccessTokenCredential(e);case T.REFRESH_TOKEN:return this.getRefreshTokenCredential(e);default:return null}},t.toObject=function(e,t){for(var r in t)e[r]=t[r];return e},t}(),me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.setAccount=function(){throw X.createUnexpectedError("Storage interface - setAccount() has not been implemented for the cacheStorage interface.")},t.prototype.getAccount=function(){throw X.createUnexpectedError("Storage interface - getAccount() has not been implemented for the cacheStorage interface.")},t.prototype.setIdTokenCredential=function(){throw X.createUnexpectedError("Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getIdTokenCredential=function(){throw X.createUnexpectedError("Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAccessTokenCredential=function(){throw X.createUnexpectedError("Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getAccessTokenCredential=function(){throw X.createUnexpectedError("Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setRefreshTokenCredential=function(){throw X.createUnexpectedError("Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getRefreshTokenCredential=function(){throw X.createUnexpectedError("Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAppMetadata=function(){throw X.createUnexpectedError("Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAppMetadata=function(){throw X.createUnexpectedError("Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.setServerTelemetry=function(){throw X.createUnexpectedError("Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.getServerTelemetry=function(){throw X.createUnexpectedError("Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.setAuthorityMetadata=function(){throw X.createUnexpectedError("Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadata=function(){throw X.createUnexpectedError("Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadataKeys=function(){throw X.createUnexpectedError("Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.")},t.prototype.setThrottlingCache=function(){throw X.createUnexpectedError("Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.getThrottlingCache=function(){throw X.createUnexpectedError("Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.removeItem=function(){throw X.createUnexpectedError("Storage interface - removeItem() has not been implemented for the cacheStorage interface.")},t.prototype.containsKey=function(){throw X.createUnexpectedError("Storage interface - containsKey() has not been implemented for the cacheStorage interface.")},t.prototype.getKeys=function(){throw X.createUnexpectedError("Storage interface - getKeys() has not been implemented for the cacheStorage interface.")},t.prototype.clear=function(){return d(this,void 0,void 0,(function(){return h(this,(function(e){throw X.createUnexpectedError("Storage interface - clear() has not been implemented for the cacheStorage interface.")}))}))},t}(ge),be={tokenRenewalOffsetSeconds:300,preventCorsPreflight:!1},ye={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:e.LogLevel.Info,correlationId:""},ve={sendGetRequestAsync:function(){return d(this,void 0,void 0,(function(){return h(this,(function(e){throw X.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented")}))}))},sendPostRequestAsync:function(){return d(this,void 0,void 0,(function(){return h(this,(function(e){throw X.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented")}))}))}},_e={sku:v.SKU,version:ie,cpu:"",os:""},we={clientSecret:"",clientAssertion:void 0},Ee=function(e){function t(r,n,o){var i=e.call(this,r,n,o)||this;return i.name="ServerError",Object.setPrototypeOf(i,t.prototype),i}return c(t,e),t}(X),Ce=function(){function e(){}return e.generateThrottlingStorageKey=function(e){return G+"."+JSON.stringify(e)},e.preProcess=function(t,r){var n,o=e.generateThrottlingStorageKey(r),i=t.getThrottlingCache(o);if(i){if(i.throttleTime<Date.now())return void t.removeItem(o,A.THROTTLING);throw new Ee((null===(n=i.errorCodes)||void 0===n?void 0:n.join(" "))||v.EMPTY_STRING,i.errorMessage,i.subError)}},e.postProcess=function(t,r,n){if(e.checkResponseStatus(n)||e.checkResponseForRetryAfter(n)){var o={throttleTime:e.calculateThrottleTime(parseInt(n.headers[f.RETRY_AFTER])),error:n.body.error,errorCodes:n.body.error_codes,errorMessage:n.body.error_description,subError:n.body.suberror};t.setThrottlingCache(e.generateThrottlingStorageKey(r),o)}},e.checkResponseStatus=function(e){return 429===e.status||e.status>=500&&e.status<600},e.checkResponseForRetryAfter=function(e){return!!e.headers&&e.headers.hasOwnProperty(f.RETRY_AFTER)&&(e.status<200||e.status>=300)},e.calculateThrottleTime=function(e){var t=e<=0?0:e,r=Date.now()/1e3;return Math.floor(1e3*Math.min(r+(t||K),r+V))},e.removeThrottle=function(e,t,r,n){var o={clientId:t,authority:r.authority,scopes:r.scopes,homeAccountIdentifier:n,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshJwk:r.sshJwk,sshKid:r.sshKid},i=this.generateThrottlingStorageKey(o);return e.removeItem(i,A.THROTTLING)},e}(),Se=function(){function e(e,t){this.networkClient=e,this.cacheManager=t}return e.prototype.sendPostRequest=function(e,t,r){return d(this,void 0,void 0,(function(){var n,o;return h(this,(function(i){switch(i.label){case 0:Ce.preProcess(this.cacheManager,e),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(t,r)];case 2:return n=i.sent(),[3,4];case 3:throw(o=i.sent())instanceof X?o:te.createNetworkError(t,o);case 4:return Ce.postProcess(this.cacheManager,e,n),[2,n]}}))}))},e}();!function(e){e.HOME_ACCOUNT_ID="home_account_id",e.UPN="UPN"}(he||(he={}));var ke,Ie=function(){function e(e){var t,r,n,o,i,a,s,l,c,d,h,p,f,g;this.config=(n=(t=e).authOptions,o=t.systemOptions,i=t.loggerOptions,a=t.storageInterface,s=t.networkInterface,l=t.cryptoInterface,c=t.clientCredentials,d=t.libraryInfo,h=t.serverTelemetryManager,p=t.persistencePlugin,f=t.serializableCache,g=u(u({},ye),i),{authOptions:(r=n,u({clientCapabilities:[]},r)),systemOptions:u(u({},be),o),loggerOptions:g,storageInterface:a||new me(n.clientId,Z),networkInterface:s||ve,cryptoInterface:l||Z,clientCredentials:c||we,libraryInfo:u(u({},_e),d),serverTelemetryManager:h||null,persistencePlugin:p||null,serializableCache:f||null}),this.logger=new oe(this.config.loggerOptions,"@azure/msal-common",ie),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new Se(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority}return e.prototype.createTokenRequestHeaders=function(e){var t={};if(t[f.CONTENT_TYPE]=v.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case he.HOME_ACCOUNT_ID:try{var r=de(e.credential);t[f.CCS_HEADER]="Oid:"+r.uid+"@"+r.utid}catch(e){this.logger.verbose("Could not parse home account ID for CCS Header: "+e)}break;case he.UPN:t[f.CCS_HEADER]="UPN: "+e.credential}return t},e.prototype.executePostToTokenEndpoint=function(e,t,r,n){return d(this,void 0,void 0,(function(){var o;return h(this,(function(i){switch(i.label){case 0:return[4,this.networkManager.sendPostRequest(n,e,{body:t,headers:r})];case 1:return o=i.sent(),this.config.serverTelemetryManager&&o.status<500&&429!==o.status&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,o]}}))}))},e.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw te.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},e}(),Oe=function(){function e(){}return e.validateRedirectUri=function(e){if(re.isEmpty(e))throw le.createRedirectUriEmptyError()},e.validatePrompt=function(e){var t=[];for(var r in C)t.push(C[r]);if(t.indexOf(e)<0)throw le.createInvalidPromptError(e)},e.validateClaims=function(e){try{JSON.parse(e)}catch(e){throw le.createInvalidClaimsRequestError()}},e.validateCodeChallengeParams=function(e,t){if(re.isEmpty(e)||re.isEmpty(t))throw le.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},e.validateCodeChallengeMethod=function(e){if([P.PLAIN,P.S256].indexOf(e)<0)throw le.createInvalidCodeChallengeMethodError()},e.sanitizeEQParams=function(e,t){return e?(t.forEach((function(t,r){e[r]&&delete e[r]})),e):{}},e}(),Te=function(){function t(){this.parameters=new Map}return t.prototype.addResponseTypeCode=function(){this.parameters.set(b.RESPONSE_TYPE,encodeURIComponent(v.CODE_RESPONSE_TYPE))},t.prototype.addResponseMode=function(e){this.parameters.set(b.RESPONSE_MODE,encodeURIComponent(e||S.QUERY))},t.prototype.addScopes=function(e,t){void 0===t&&(t=!0);var r=t?p(e||[],_):e||[],n=new ce(r);this.parameters.set(b.SCOPE,encodeURIComponent(n.printScopes()))},t.prototype.addClientId=function(e){this.parameters.set(b.CLIENT_ID,encodeURIComponent(e))},t.prototype.addRedirectUri=function(e){Oe.validateRedirectUri(e),this.parameters.set(b.REDIRECT_URI,encodeURIComponent(e))},t.prototype.addPostLogoutRedirectUri=function(e){Oe.validateRedirectUri(e),this.parameters.set(b.POST_LOGOUT_URI,encodeURIComponent(e))},t.prototype.addIdTokenHint=function(e){this.parameters.set(b.ID_TOKEN_HINT,encodeURIComponent(e))},t.prototype.addDomainHint=function(e){this.parameters.set(E.DOMAIN_HINT,encodeURIComponent(e))},t.prototype.addLoginHint=function(e){this.parameters.set(E.LOGIN_HINT,encodeURIComponent(e))},t.prototype.addCcsUpn=function(e){this.parameters.set(f.CCS_HEADER,encodeURIComponent("UPN:"+e))},t.prototype.addCcsOid=function(e){this.parameters.set(f.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},t.prototype.addSid=function(e){this.parameters.set(E.SID,encodeURIComponent(e))},t.prototype.addClaims=function(e,t){var r=this.addClientCapabilitiesToClaims(e,t);Oe.validateClaims(r),this.parameters.set(b.CLAIMS,encodeURIComponent(r))},t.prototype.addCorrelationId=function(e){this.parameters.set(b.CLIENT_REQUEST_ID,encodeURIComponent(e))},t.prototype.addLibraryInfo=function(e){this.parameters.set(b.X_CLIENT_SKU,e.sku),this.parameters.set(b.X_CLIENT_VER,e.version),this.parameters.set(b.X_CLIENT_OS,e.os),this.parameters.set(b.X_CLIENT_CPU,e.cpu)},t.prototype.addPrompt=function(e){Oe.validatePrompt(e),this.parameters.set(""+b.PROMPT,encodeURIComponent(e))},t.prototype.addState=function(e){re.isEmpty(e)||this.parameters.set(b.STATE,encodeURIComponent(e))},t.prototype.addNonce=function(e){this.parameters.set(b.NONCE,encodeURIComponent(e))},t.prototype.addCodeChallengeParams=function(e,t){if(Oe.validateCodeChallengeParams(e,t),!e||!t)throw le.createInvalidCodeChallengeParamsError();this.parameters.set(b.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(b.CODE_CHALLENGE_METHOD,encodeURIComponent(t))},t.prototype.addAuthorizationCode=function(e){this.parameters.set(b.CODE,encodeURIComponent(e))},t.prototype.addDeviceCode=function(e){this.parameters.set(b.DEVICE_CODE,encodeURIComponent(e))},t.prototype.addRefreshToken=function(e){this.parameters.set(b.REFRESH_TOKEN,encodeURIComponent(e))},t.prototype.addCodeVerifier=function(e){this.parameters.set(b.CODE_VERIFIER,encodeURIComponent(e))},t.prototype.addClientSecret=function(e){this.parameters.set(b.CLIENT_SECRET,encodeURIComponent(e))},t.prototype.addClientAssertion=function(e){this.parameters.set(b.CLIENT_ASSERTION,encodeURIComponent(e))},t.prototype.addClientAssertionType=function(e){this.parameters.set(b.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},t.prototype.addOboAssertion=function(e){this.parameters.set(b.OBO_ASSERTION,encodeURIComponent(e))},t.prototype.addRequestTokenUse=function(e){this.parameters.set(b.REQUESTED_TOKEN_USE,encodeURIComponent(e))},t.prototype.addGrantType=function(e){this.parameters.set(b.GRANT_TYPE,encodeURIComponent(e))},t.prototype.addClientInfo=function(){this.parameters.set("client_info","1")},t.prototype.addExtraQueryParameters=function(e){var t=this;Oe.sanitizeEQParams(e,this.parameters),Object.keys(e).forEach((function(r){t.parameters.set(r,e[r])}))},t.prototype.addClientCapabilitiesToClaims=function(e,t){var r;if(e)try{r=JSON.parse(e)}catch(e){throw le.createInvalidClaimsRequestError()}else r={};return t&&t.length>0&&(r.hasOwnProperty(y.ACCESS_TOKEN)||(r[y.ACCESS_TOKEN]={}),r[y.ACCESS_TOKEN][y.XMS_CC]={values:t}),JSON.stringify(r)},t.prototype.addUsername=function(e){this.parameters.set(j.username,e)},t.prototype.addPassword=function(e){this.parameters.set(j.password,e)},t.prototype.addPopToken=function(t){re.isEmpty(t)||(this.parameters.set(b.TOKEN_TYPE,e.AuthenticationScheme.POP),this.parameters.set(b.REQ_CNF,encodeURIComponent(t)))},t.prototype.addSshJwk=function(t){re.isEmpty(t)||(this.parameters.set(b.TOKEN_TYPE,e.AuthenticationScheme.SSH),this.parameters.set(b.REQ_CNF,encodeURIComponent(t)))},t.prototype.addServerTelemetry=function(e){this.parameters.set(b.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(b.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},t.prototype.addThrottling=function(){this.parameters.set(b.X_MS_LIB_CAPABILITY,W)},t.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach((function(t,r){e.push(r+"="+t)})),e.join("&")},t}(),Ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.createIdTokenEntity=function(e,r,n,o,i,a){var s=new t;return s.credentialType=T.ID_TOKEN,s.homeAccountId=e,s.environment=r,s.clientId=o,s.secret=n,s.realm=i,s.oboAssertion=a,s},t.isIdTokenEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.credentialType===T.ID_TOKEN},t}(ae),xe=function(){function e(){}return e.nowSeconds=function(){return Math.round((new Date).getTime()/1e3)},e.isTokenExpired=function(t,r){var n=Number(t)||0;return e.nowSeconds()+r>n},e.wasClockTurnedBack=function(t){return Number(t)>e.nowSeconds()},e.delay=function(e,t){return new Promise((function(r){return setTimeout((function(){return r(t)}),e)}))},e}(),Pe=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return c(r,t),r.createAccessTokenEntity=function(t,n,o,i,a,s,l,c,u,d,h,p,f){var g,m=new r;m.homeAccountId=t,m.credentialType=T.ACCESS_TOKEN,m.secret=o;var b=xe.nowSeconds();if(m.cachedAt=b.toString(),m.expiresOn=l.toString(),m.extendedExpiresOn=c.toString(),d&&(m.refreshOn=d.toString()),m.environment=n,m.clientId=i,m.realm=a,m.target=s,m.oboAssertion=p,m.tokenType=re.isEmpty(h)?e.AuthenticationScheme.BEARER:h,m.tokenType!==e.AuthenticationScheme.BEARER)switch(m.credentialType=T.ACCESS_TOKEN_WITH_AUTH_SCHEME,m.tokenType){case e.AuthenticationScheme.POP:var y=fe.extractTokenClaims(o,u);if(!(null===(g=null==y?void 0:y.cnf)||void 0===g?void 0:g.kid))throw te.createTokenClaimsRequiredError();m.keyId=y.cnf.kid;break;case e.AuthenticationScheme.SSH:m.keyId=f}return m},r.isAccessTokenEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.hasOwnProperty("target")&&(e.credentialType===T.ACCESS_TOKEN||e.credentialType===T.ACCESS_TOKEN_WITH_AUTH_SCHEME)},r}(ae),Re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.createRefreshTokenEntity=function(e,r,n,o,i,a){var s=new t;return s.clientId=o,s.credentialType=T.REFRESH_TOKEN,s.environment=r,s.homeAccountId=e,s.secret=n,s.oboAssertion=a,i&&(s.familyId=i),s},t.isRefreshTokenEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.credentialType===T.REFRESH_TOKEN},t}(ae),Ne=["interaction_required","consent_required","login_required"],Le=["message_only","additional_action","basic_action","user_password_expired","consent_required"],Me={noTokensFoundError:{code:"no_tokens_found",desc:"No refresh token found in the cache. Please sign-in."}},De=function(e){function t(r,n,o){var i=e.call(this,r,n,o)||this;return i.name="InteractionRequiredAuthError",Object.setPrototypeOf(i,t.prototype),i}return c(t,e),t.isInteractionRequiredError=function(e,t,r){var n=!!e&&Ne.indexOf(e)>-1,o=!!r&&Le.indexOf(r)>-1,i=!!t&&Ne.some((function(e){return t.indexOf(e)>-1}));return n||i||o},t.createNoTokensFoundError=function(){return new t(Me.noTokensFoundError.code,Me.noTokensFoundError.desc)},t}(X),Ue=function(e,t,r,n,o){this.account=e||null,this.idToken=t||null,this.accessToken=r||null,this.refreshToken=n||null,this.appMetadata=o||null},Fe=function(){function e(){}return e.setRequestState=function(t,r,n){var o=e.generateLibraryState(t,n);return re.isEmpty(r)?o:""+o+v.RESOURCE_DELIM+r},e.generateLibraryState=function(e,t){if(!e)throw te.createNoCryptoObjectError("generateLibraryState");var r={id:e.createNewGuid()};t&&(r.meta=t);var n=JSON.stringify(r);return e.base64Encode(n)},e.parseRequestState=function(e,t){if(!e)throw te.createNoCryptoObjectError("parseRequestState");if(re.isEmpty(t))throw te.createInvalidStateError(t,"Null, undefined or empty state");try{var r=t.split(v.RESOURCE_DELIM),n=r[0],o=r.length>1?r.slice(1).join(v.RESOURCE_DELIM):"",i=e.base64Decode(n),a=JSON.parse(i);return{userRequestState:re.isEmpty(o)?"":o,libraryState:a}}catch(e){throw te.createInvalidStateError(t,e)}},e}(),je=function(){function e(t){if(this._urlString=t,re.isEmpty(this._urlString))throw le.createUrlEmptyError();re.isEmpty(this.getHash())&&(this._urlString=e.canonicalizeUri(t))}return Object.defineProperty(e.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),e.canonicalizeUri=function(e){if(e){var t=e.toLowerCase();return re.endsWith(t,"?")?t=t.slice(0,-1):re.endsWith(t,"?/")&&(t=t.slice(0,-2)),re.endsWith(t,"/")||(t+="/"),t}return e},e.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(e){throw le.createUrlParseError(e)}if(!e.HostNameAndPort||!e.PathSegments)throw le.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||"https:"!==e.Protocol.toLowerCase())throw le.createInsecureAuthorityUriError(this.urlString)},e.appendQueryString=function(e,t){return re.isEmpty(t)?e:e.indexOf("?")<0?e+"?"+t:e+"&"+t},e.removeHashFromUrl=function(t){return e.canonicalizeUri(t.split("#")[0])},e.prototype.replaceTenantPath=function(t){var r=this.getUrlComponents(),n=r.PathSegments;return!t||0===n.length||n[0]!==m.COMMON&&n[0]!==m.ORGANIZATIONS||(n[0]=t),e.constructAuthorityUriFromObject(r)},e.prototype.getHash=function(){return e.parseHash(this.urlString)},e.prototype.getUrlComponents=function(){var e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw le.createUrlParseError("Given url string: "+this.urlString);var r={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]},n=r.AbsolutePath.split("/");return n=n.filter((function(e){return e&&e.length>0})),r.PathSegments=n,!re.isEmpty(r.QueryString)&&r.QueryString.endsWith("/")&&(r.QueryString=r.QueryString.substring(0,r.QueryString.length-1)),r},e.getDomainFromUrl=function(e){var t=RegExp("^([^:/?#]+://)?([^/?#]*)"),r=e.match(t);if(!r)throw le.createUrlParseError("Given url string: "+e);return r[2]},e.getAbsoluteUrl=function(t,r){if(t[0]===v.FORWARD_SLASH){var n=new e(r).getUrlComponents();return n.Protocol+"//"+n.HostNameAndPort+t}return t},e.parseHash=function(e){var t=e.indexOf("#"),r=e.indexOf("#/");return r>-1?e.substring(r+2):t>-1?e.substring(t+1):""},e.constructAuthorityUriFromObject=function(t){return new e(t.Protocol+"//"+t.HostNameAndPort+"/"+t.PathSegments.join("/"))},e.getDeserializedHash=function(t){if(re.isEmpty(t))return{};var r=e.parseHash(t),n=re.queryStringToObject(re.isEmpty(r)?t:r);if(!n)throw te.createHashNotDeserializedError(JSON.stringify(n));return n},e.hashContainsKnownProperties=function(t){if(re.isEmpty(t)||t.indexOf("=")<0)return!1;var r=e.getDeserializedHash(t);return!!(r.code||r.error_description||r.error||r.state)},e}();!function(e){e.SW="sw",e.UHW="uhw"}(ke||(ke={}));var He,Be=function(){function e(e){this.cryptoUtils=e}return e.prototype.generateCnf=function(e){return d(this,void 0,void 0,(function(){var t;return h(this,(function(r){switch(r.label){case 0:return[4,this.generateKid(e)];case 1:return t=r.sent(),[2,this.cryptoUtils.base64Encode(JSON.stringify(t))]}}))}))},e.prototype.generateKid=function(e){return d(this,void 0,void 0,(function(){return h(this,(function(t){switch(t.label){case 0:return[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return[2,{kid:t.sent(),xms_ksl:ke.SW}]}}))}))},e.prototype.signPopToken=function(e,t){var r;return d(this,void 0,void 0,(function(){var n;return h(this,(function(o){if(n=fe.extractTokenClaims(e,this.cryptoUtils),!(null===(r=null==n?void 0:n.cnf)||void 0===r?void 0:r.kid))throw te.createTokenClaimsRequiredError();return[2,this.signPayload(e,n.cnf.kid,t)]}))}))},e.prototype.signPayload=function(e,t,r,n){return d(this,void 0,void 0,(function(){var o,i,a,s,l,c;return h(this,(function(d){switch(d.label){case 0:return o=r.resourceRequestMethod,i=r.resourceRequestUri,a=r.shrClaims,s=r.shrNonce,l=i?new je(i):void 0,c=null==l?void 0:l.getUrlComponents(),[4,this.cryptoUtils.signJwt(u({at:e,ts:xe.nowSeconds(),m:null==o?void 0:o.toUpperCase(),u:null==c?void 0:c.HostNameAndPort,nonce:s||this.cryptoUtils.createNewGuid(),p:null==c?void 0:c.AbsolutePath,q:(null==c?void 0:c.QueryString)?[[],c.QueryString]:void 0,client_claims:a||void 0},n),t)];case 1:return[2,d.sent()]}}))}))},e}(),ze=function(){function e(){}return e.prototype.generateAppMetadataKey=function(){return e.generateAppMetadataCacheKey(this.environment,this.clientId)},e.generateAppMetadataCacheKey=function(e,t){return[N,e,t].join(O.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAppMetadataEntity=function(t,r,n){var o=new e;return o.clientId=t,o.environment=r,n&&(o.familyId=n),o},e.isAppMetadataEntity=function(e,t){return!!t&&0===e.indexOf(N)&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment")},e}(),qe=function(){function e(e,t){this.cache=e,this.hasChanged=t}return Object.defineProperty(e.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),e}(),Ke=function(){function t(e,t,r,n,o,i){this.clientId=e,this.cacheStorage=t,this.cryptoObj=r,this.logger=n,this.serializableCache=o,this.persistencePlugin=i}return t.prototype.validateServerAuthorizationCodeResponse=function(e,t,r){if(!e.state||!t)throw e.state?te.createStateNotFoundError("Cached State"):te.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw te.createStateMismatchError();if(e.error||e.error_description||e.suberror){if(De.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new De(e.error||v.EMPTY_STRING,e.error_description,e.suberror);throw new Ee(e.error||v.EMPTY_STRING,e.error_description,e.suberror)}e.client_info&&ue(e.client_info,r)},t.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(De.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new De(e.error,e.error_description,e.suberror);var t=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new Ee(e.error,t,e.suberror)}},t.prototype.handleServerTokenResponse=function(e,r,n,o,i,a,s){return d(this,void 0,void 0,(function(){var l,c,u,d,p;return h(this,(function(h){switch(h.label){case 0:if(e.id_token&&(l=new fe(e.id_token||v.EMPTY_STRING,this.cryptoObj),i&&!re.isEmpty(i.nonce)&&l.claims.nonce!==i.nonce))throw te.createNonceMismatchError();this.homeAccountIdentifier=pe.generateHomeAccountId(e.client_info||v.EMPTY_STRING,r.authorityType,this.logger,this.cryptoObj,l),i&&i.state&&(c=Fe.parseRequestState(this.cryptoObj,i.state)),e.key_id=e.key_id||o.sshKid||void 0,u=this.generateCacheRecord(e,r,n,l,o.scopes,a,i),h.label=1;case 1:return h.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),d=new qe(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(d)]):[3,3];case 2:h.sent(),h.label=3;case 3:return s&&u.account&&(p=u.account.generateAccountKey(),!this.cacheStorage.getAccount(p))?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,t.generateAuthenticationResult(this.cryptoObj,r,u,!1,o,l,c)]):[4,this.cacheStorage.saveCacheRecord(u)];case 4:return h.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&d?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(d)]):[3,7];case 6:h.sent(),h.label=7;case 7:return[7];case 8:return[2,t.generateAuthenticationResult(this.cryptoObj,r,u,!1,o,l,c)]}}))}))},t.prototype.generateCacheRecord=function(e,t,r,n,o,i,a){var s,l,c=t.getPreferredCache();if(re.isEmpty(c))throw te.createInvalidCacheEnvironmentError();!re.isEmpty(e.id_token)&&n&&(s=Ae.createIdTokenEntity(this.homeAccountIdentifier,c,e.id_token||v.EMPTY_STRING,this.clientId,n.claims.tid||v.EMPTY_STRING,i),l=this.generateAccountEntity(e,n,t,i,a));var u=null;if(!re.isEmpty(e.access_token)){var d=e.scope?ce.fromString(e.scope):new ce(o||[]),h=("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,p=("string"==typeof e.ext_expires_in?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,f=("string"==typeof e.refresh_in?parseInt(e.refresh_in,10):e.refresh_in)||void 0,g=r+h,m=g+p,b=f&&f>0?r+f:void 0;u=Pe.createAccessTokenEntity(this.homeAccountIdentifier,c,e.access_token||v.EMPTY_STRING,this.clientId,n?n.claims.tid||v.EMPTY_STRING:t.tenant,d.printScopes(),g,m,this.cryptoObj,b,e.token_type,i,e.key_id)}var y=null;re.isEmpty(e.refresh_token)||(y=Re.createRefreshTokenEntity(this.homeAccountIdentifier,c,e.refresh_token||v.EMPTY_STRING,this.clientId,e.foci,i));var _=null;return re.isEmpty(e.foci)||(_=ze.createAppMetadataEntity(this.clientId,c,e.foci)),new Ue(l,s,u,y,_)},t.prototype.generateAccountEntity=function(e,t,r,n,o){var i=r.authorityType,a=o?o.cloud_graph_host_name:"",s=o?o.msgraph_host:"";if(i===ne.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),pe.createGenericAccount(this.homeAccountIdentifier,t,r,n,a,s);if(re.isEmpty(e.client_info)&&"AAD"===r.protocolMode)throw te.createClientInfoEmptyError();return e.client_info?pe.createAccount(e.client_info,this.homeAccountIdentifier,t,r,n,a,s):pe.createGenericAccount(this.homeAccountIdentifier,t,r,n,a,s)},t.generateAuthenticationResult=function(t,r,n,o,i,a,s){var l,c,u;return d(this,void 0,void 0,(function(){var d,p,f,g,m,b,y;return h(this,(function(h){switch(h.label){case 0:return d="",p=[],f=null,m=v.EMPTY_STRING,n.accessToken?n.accessToken.tokenType!==e.AuthenticationScheme.POP?[3,2]:[4,new Be(t).signPopToken(n.accessToken.secret,i)]:[3,4];case 1:return d=h.sent(),[3,3];case 2:d=n.accessToken.secret,h.label=3;case 3:p=ce.fromString(n.accessToken.target).asArray(),f=new Date(1e3*Number(n.accessToken.expiresOn)),g=new Date(1e3*Number(n.accessToken.extendedExpiresOn)),h.label=4;case 4:return n.appMetadata&&(m=n.appMetadata.familyId===L?L:v.EMPTY_STRING),b=(null==a?void 0:a.claims.oid)||(null==a?void 0:a.claims.sub)||v.EMPTY_STRING,y=(null==a?void 0:a.claims.tid)||v.EMPTY_STRING,[2,{authority:r.canonicalAuthority,uniqueId:b,tenantId:y,scopes:p,account:n.account?n.account.getAccountInfo():null,idToken:a?a.rawToken:v.EMPTY_STRING,idTokenClaims:a?a.claims:{},accessToken:d,fromCache:o,expiresOn:f,correlationId:i.correlationId,extExpiresOn:g,familyId:m,tokenType:(null===(l=n.accessToken)||void 0===l?void 0:l.tokenType)||v.EMPTY_STRING,state:s?s.userRequestState:v.EMPTY_STRING,cloudGraphHostName:(null===(c=n.account)||void 0===c?void 0:c.cloudGraphHostName)||v.EMPTY_STRING,msGraphHost:(null===(u=n.account)||void 0===u?void 0:u.msGraphHost)||v.EMPTY_STRING}]}}))}))},t}(),Ve=function(t){function r(e){return t.call(this,e)||this}return c(r,t),r.prototype.getAuthCodeUrl=function(e){return d(this,void 0,void 0,(function(){var t;return h(this,(function(r){return t=this.createAuthCodeUrlQueryString(e),[2,je.appendQueryString(this.authority.authorizationEndpoint,t)]}))}))},r.prototype.acquireToken=function(e,t){return d(this,void 0,void 0,(function(){var r,n,o;return h(this,(function(i){switch(i.label){case 0:if(this.logger.info("in acquireToken call"),!e||re.isEmpty(e.code))throw te.createTokenRequestCannotBeMadeError();return r=xe.nowSeconds(),[4,this.executeTokenRequest(this.authority,e)];case 1:return n=i.sent(),(o=new Ke(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(n.body),[4,o.handleServerTokenResponse(n.body,this.authority,r,e,t)];case 2:return[2,i.sent()]}}))}))},r.prototype.handleFragmentResponse=function(e,t){var r=new Ke(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),n=new je(e),o=je.getDeserializedHash(n.getHash());if(r.validateServerAuthorizationCodeResponse(o,t,this.cryptoUtils),!o.code)throw te.createNoAuthCodeInServerResponseError();return u(u({},o),{code:o.code})},r.prototype.getLogoutUri=function(e){if(!e)throw le.createEmptyLogoutRequestError();var t=this.createLogoutUrlQueryString(e);return je.appendQueryString(this.authority.endSessionEndpoint,t)},r.prototype.executeTokenRequest=function(e,t){return d(this,void 0,void 0,(function(){var r,n,o,i,a,s,l;return h(this,(function(c){switch(c.label){case 0:return r={clientId:this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:t.scopes,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshJwk:t.sshJwk,sshKid:t.sshKid},[4,this.createTokenRequestBody(t)];case 1:if(n=c.sent(),o=this.createTokenQueryParameters(t),i=void 0,t.clientInfo)try{a=ue(t.clientInfo,this.cryptoUtils),i={credential:""+a.uid+O.CLIENT_INFO_SEPARATOR+a.utid,type:he.HOME_ACCOUNT_ID}}catch(e){this.logger.verbose("Could not parse client info for CCS Header: "+e)}return s=this.createTokenRequestHeaders(i||t.ccsCredential),l=re.isEmpty(o)?e.tokenEndpoint:e.tokenEndpoint+"?"+o,[2,this.executePostToTokenEndpoint(l,n,s,r)]}}))}))},r.prototype.createTokenQueryParameters=function(e){var t=new Te;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},r.prototype.createTokenRequestBody=function(t){return d(this,void 0,void 0,(function(){var r,n,o,i,a,s;return h(this,(function(l){switch(l.label){case 0:return(r=new Te).addClientId(this.config.authOptions.clientId),r.addRedirectUri(t.redirectUri),r.addScopes(t.scopes),r.addAuthorizationCode(t.code),r.addLibraryInfo(this.config.libraryInfo),r.addThrottling(),this.serverTelemetryManager&&r.addServerTelemetry(this.serverTelemetryManager),t.codeVerifier&&r.addCodeVerifier(t.codeVerifier),this.config.clientCredentials.clientSecret&&r.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(n=this.config.clientCredentials.clientAssertion,r.addClientAssertion(n.assertion),r.addClientAssertionType(n.assertionType)),r.addGrantType(k.AUTHORIZATION_CODE_GRANT),r.addClientInfo(),t.authenticationScheme!==e.AuthenticationScheme.POP?[3,2]:[4,new Be(this.cryptoUtils).generateCnf(t)];case 1:return o=l.sent(),r.addPopToken(o),[3,3];case 2:if(t.authenticationScheme===e.AuthenticationScheme.SSH){if(!t.sshJwk)throw le.createMissingSshJwkError();r.addSshJwk(t.sshJwk)}l.label=3;case 3:if(i=t.correlationId||this.config.cryptoInterface.createNewGuid(),r.addCorrelationId(i),(!re.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(t.claims,this.config.authOptions.clientCapabilities),a=void 0,t.clientInfo)try{s=ue(t.clientInfo,this.cryptoUtils),a={credential:""+s.uid+O.CLIENT_INFO_SEPARATOR+s.utid,type:he.HOME_ACCOUNT_ID}}catch(e){this.logger.verbose("Could not parse client info for CCS Header: "+e)}else a=t.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&a)switch(a.type){case he.HOME_ACCOUNT_ID:try{s=de(a.credential),r.addCcsOid(s)}catch(e){this.logger.verbose("Could not parse home account ID for CCS Header: "+e)}break;case he.UPN:r.addCcsUpn(a.credential)}return[2,r.createQueryString()]}}))}))},r.prototype.createAuthCodeUrlQueryString=function(e){var t=new Te;t.addClientId(this.config.authOptions.clientId);var r=p(e.scopes||[],e.extraScopesToConsent||[]);t.addScopes(r),t.addRedirectUri(e.redirectUri);var n=e.correlationId||this.config.cryptoInterface.createNewGuid();if(t.addCorrelationId(n),t.addResponseMode(e.responseMode),t.addResponseTypeCode(),t.addLibraryInfo(this.config.libraryInfo),t.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&t.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&t.addPrompt(e.prompt),e.domainHint&&t.addDomainHint(e.domainHint),e.prompt!==C.SELECT_ACCOUNT)if(e.sid&&e.prompt===C.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),t.addSid(e.sid);else if(e.account){var o=this.extractAccountSid(e.account);if(o&&e.prompt===C.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),t.addSid(o);try{var i=de(e.account.homeAccountId);t.addCcsOid(i)}catch(e){this.logger.verbose("Could not parse home account ID for CCS Header: "+e)}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),t.addLoginHint(e.loginHint),t.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),t.addLoginHint(e.account.username);try{i=de(e.account.homeAccountId),t.addCcsOid(i)}catch(e){this.logger.verbose("Could not parse home account ID for CCS Header: "+e)}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),t.addLoginHint(e.loginHint),t.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return e.nonce&&t.addNonce(e.nonce),e.state&&t.addState(e.state),(!re.isEmpty(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&t.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.extraQueryParameters&&t.addExtraQueryParameters(e.extraQueryParameters),t.createQueryString()},r.prototype.createLogoutUrlQueryString=function(e){var t=new Te;return e.postLogoutRedirectUri&&t.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&t.addCorrelationId(e.correlationId),e.idTokenHint&&t.addIdTokenHint(e.idTokenHint),e.state&&t.addState(e.state),e.extraQueryParameters&&t.addExtraQueryParameters(e.extraQueryParameters),t.createQueryString()},r.prototype.extractAccountSid=function(e){return e.idTokenClaims&&e.idTokenClaims.sid||null},r}(Ie),Ge=function(t){function r(e){return t.call(this,e)||this}return c(r,t),r.prototype.acquireToken=function(e){return d(this,void 0,void 0,(function(){var t,r,n;return h(this,(function(o){switch(o.label){case 0:return t=xe.nowSeconds(),[4,this.executeTokenRequest(e,this.authority)];case 1:return r=o.sent(),(n=new Ke(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(r.body),[2,n.handleServerTokenResponse(r.body,this.authority,t,e,void 0,void 0,!0)]}}))}))},r.prototype.acquireTokenByRefreshToken=function(e){return d(this,void 0,void 0,(function(){var t,r;return h(this,(function(n){if(!e)throw le.createEmptyTokenRequestError();if(!e.account)throw te.createNoAccountInSilentRequestError();if(this.cacheManager.isAppMetadataFOCI(e.account.environment,this.config.authOptions.clientId))try{return[2,this.acquireTokenWithCachedRefreshToken(e,!0)]}catch(n){if(t=n instanceof De&&n.errorCode===Me.noTokensFoundError.code,r=n instanceof Ee&&n.errorCode===$&&n.subError===J,t||r)return[2,this.acquireTokenWithCachedRefreshToken(e,!1)];throw n}return[2,this.acquireTokenWithCachedRefreshToken(e,!1)]}))}))},r.prototype.acquireTokenWithCachedRefreshToken=function(t,r){return d(this,void 0,void 0,(function(){var n,o;return h(this,(function(i){if(!(n=this.cacheManager.readRefreshTokenFromCache(this.config.authOptions.clientId,t.account,r)))throw De.createNoTokensFoundError();return o=u(u({},t),{refreshToken:n.secret,authenticationScheme:t.authenticationScheme||e.AuthenticationScheme.BEARER,ccsCredential:{credential:t.account.homeAccountId,type:he.HOME_ACCOUNT_ID}}),[2,this.acquireToken(o)]}))}))},r.prototype.executeTokenRequest=function(e,t){return d(this,void 0,void 0,(function(){var r,n,o,i,a;return h(this,(function(s){switch(s.label){case 0:return[4,this.createTokenRequestBody(e)];case 1:return r=s.sent(),n=this.createTokenQueryParameters(e),o=this.createTokenRequestHeaders(e.ccsCredential),i={clientId:this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:e.scopes,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshJwk:e.sshJwk,sshKid:e.sshKid},a=je.appendQueryString(t.tokenEndpoint,n),[2,this.executePostToTokenEndpoint(a,r,o,i)]}}))}))},r.prototype.createTokenQueryParameters=function(e){var t=new Te;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},r.prototype.createTokenRequestBody=function(t){return d(this,void 0,void 0,(function(){var r,n,o,i,a;return h(this,(function(s){switch(s.label){case 0:return(r=new Te).addClientId(this.config.authOptions.clientId),r.addScopes(t.scopes),r.addGrantType(k.REFRESH_TOKEN_GRANT),r.addClientInfo(),r.addLibraryInfo(this.config.libraryInfo),r.addThrottling(),this.serverTelemetryManager&&r.addServerTelemetry(this.serverTelemetryManager),n=t.correlationId||this.config.cryptoInterface.createNewGuid(),r.addCorrelationId(n),r.addRefreshToken(t.refreshToken),this.config.clientCredentials.clientSecret&&r.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(o=this.config.clientCredentials.clientAssertion,r.addClientAssertion(o.assertion),r.addClientAssertionType(o.assertionType)),t.authenticationScheme!==e.AuthenticationScheme.POP?[3,2]:[4,new Be(this.cryptoUtils).generateCnf(t)];case 1:return i=s.sent(),r.addPopToken(i),[3,3];case 2:if(t.authenticationScheme===e.AuthenticationScheme.SSH){if(!t.sshJwk)throw le.createMissingSshJwkError();r.addSshJwk(t.sshJwk)}s.label=3;case 3:if((!re.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(t.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&t.ccsCredential)switch(t.ccsCredential.type){case he.HOME_ACCOUNT_ID:try{a=de(t.ccsCredential.credential),r.addCcsOid(a)}catch(e){this.logger.verbose("Could not parse home account ID for CCS Header: "+e)}break;case he.UPN:r.addCcsUpn(t.ccsCredential.credential)}return[2,r.createQueryString()]}}))}))},r}(Ie),We=function(t){function r(e){return t.call(this,e)||this}return c(r,t),r.prototype.acquireToken=function(e){return d(this,void 0,void 0,(function(){var t;return h(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.acquireCachedToken(e)];case 1:return[2,r.sent()];case 2:if((t=r.sent())instanceof te&&t.errorCode===ee.tokenRefreshRequired.code)return[2,new Ge(this.config).acquireTokenByRefreshToken(e)];throw t;case 3:return[2]}}))}))},r.prototype.acquireCachedToken=function(t){var r,n,o,i;return d(this,void 0,void 0,(function(){var a,s,l,c;return h(this,(function(u){switch(u.label){case 0:if(!t)throw le.createEmptyTokenRequestError();if(t.forceRefresh)throw null===(r=this.serverTelemetryManager)||void 0===r||r.setCacheOutcome(q.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),te.createRefreshRequiredError();if(!re.isEmptyObj(t.claims))throw this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims are requested."),te.createRefreshRequiredError();if(!t.account)throw te.createNoAccountInSilentRequestError();if(a=new ce(t.scopes||[]),s=t.authority||this.authority.getPreferredCache(),l=t.authenticationScheme||e.AuthenticationScheme.BEARER,!(c=this.cacheManager.readCacheRecord(t.account,this.config.authOptions.clientId,a,s,l,t.sshKid)).accessToken)throw null===(n=this.serverTelemetryManager)||void 0===n||n.setCacheOutcome(q.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),te.createRefreshRequiredError();if(xe.wasClockTurnedBack(c.accessToken.cachedAt)||xe.isTokenExpired(c.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw null===(o=this.serverTelemetryManager)||void 0===o||o.setCacheOutcome(q.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),te.createRefreshRequiredError();if(c.accessToken.refreshOn&&xe.isTokenExpired(c.accessToken.refreshOn,0))throw null===(i=this.serverTelemetryManager)||void 0===i||i.setCacheOutcome(q.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),te.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(c,t)];case 1:return[2,u.sent()]}}))}))},r.prototype.generateResultFromCacheRecord=function(e,t){return d(this,void 0,void 0,(function(){var r;return h(this,(function(n){switch(n.label){case 0:return e.idToken&&(r=new fe(e.idToken.secret,this.config.cryptoInterface)),[4,Ke.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,t,r)];case 1:return[2,n.sent()]}}))}))},r}(Ie);function $e(e){return e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")}e.ProtocolMode=void 0,(He=e.ProtocolMode||(e.ProtocolMode={})).AAD="AAD",He.OIDC="OIDC";var Je,Ye,Qe,Xe,Ze,et,tt,rt=function(){function e(){this.expiresAt=xe.nowSeconds()+D}return e.prototype.updateCloudDiscoveryMetadata=function(e,t){this.aliases=e.aliases,this.preferred_cache=e.preferred_cache,this.preferred_network=e.preferred_network,this.aliasesFromNetwork=t},e.prototype.updateEndpointMetadata=function(e,t){this.authorization_endpoint=e.authorization_endpoint,this.token_endpoint=e.token_endpoint,this.end_session_endpoint=e.end_session_endpoint,this.issuer=e.issuer,this.endpointsFromNetwork=t},e.prototype.updateCanonicalAuthority=function(e){this.canonical_authority=e},e.prototype.resetExpiresAt=function(){this.expiresAt=xe.nowSeconds()+D},e.prototype.isExpired=function(){return this.expiresAt<=xe.nowSeconds()},e.isAuthorityMetadataEntity=function(e,t){return!!t&&0===e.indexOf(M)&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")},e}(),nt=function(){function e(e){this.networkInterface=e}return e.prototype.detectRegion=function(e,t){return d(this,void 0,void 0,(function(){var r,n,o,i;return h(this,(function(a){switch(a.label){case 0:if(r=e)return[3,8];a.label=1;case 1:return a.trys.push([1,6,,7]),[4,this.getRegionFromIMDS(v.IMDS_VERSION)];case 2:return(n=a.sent()).status===H.httpSuccess&&(r=n.body,t.region_source=B.IMDS),n.status!==H.httpBadRequest?[3,5]:[4,this.getCurrentVersion()];case 3:return(o=a.sent())?[4,this.getRegionFromIMDS(o)]:(t.region_source=B.FAILED_AUTO_DETECTION,[2,null]);case 4:(i=a.sent()).status===H.httpSuccess&&(r=i.body,t.region_source=B.IMDS),a.label=5;case 5:return[3,7];case 6:return a.sent(),t.region_source=B.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:t.region_source=B.ENVIRONMENT_VARIABLE,a.label=9;case 9:return r||(t.region_source=B.FAILED_AUTO_DETECTION),[2,r||null]}}))}))},e.prototype.getRegionFromIMDS=function(t){return d(this,void 0,void 0,(function(){return h(this,(function(r){return[2,this.networkInterface.sendGetRequestAsync(v.IMDS_ENDPOINT+"?api-version="+t+"&format=text",e.IMDS_OPTIONS,v.IMDS_TIMEOUT)]}))}))},e.prototype.getCurrentVersion=function(){return d(this,void 0,void 0,(function(){var t;return h(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.networkInterface.sendGetRequestAsync(v.IMDS_ENDPOINT+"?format=json",e.IMDS_OPTIONS)];case 1:return(t=r.sent()).status===H.httpBadRequest&&t.body&&t.body["newest-versions"]&&t.body["newest-versions"].length>0?[2,t.body["newest-versions"][0]]:[2,null];case 2:return r.sent(),[2,null];case 3:return[2]}}))}))},e.IMDS_OPTIONS={headers:{Metadata:"true"}},e}(),ot=function(){function t(e,t,r,n){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=r,this.authorityOptions=n,this.regionDiscovery=new nt(t),this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0}}return Object.defineProperty(t.prototype,"authorityType",{get:function(){var e=this.canonicalAuthorityUrlComponents.PathSegments;return e.length&&e[0].toLowerCase()===v.ADFS?ne.Adfs:ne.Default},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(e){this._canonicalAuthority=new je(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.authorization_endpoint);return this.replaceTenant(e)}throw te.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.token_endpoint);return this.replaceTenant(e)}throw te.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));return this.replaceTenant(e)}throw te.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw te.createLogoutNotSupportedError();var e=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(e)}throw te.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.issuer);return this.replaceTenant(e)}throw te.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),t.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},t.prototype.replacePath=function(e){var t=e,r=new je(this.metadata.canonical_authority).getUrlComponents().PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach((function(e,n){var o=r[n];e!==o&&(t=t.replace("/"+o+"/","/"+e+"/"))})),t},Object.defineProperty(t.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===ne.Adfs||this.protocolMode===e.ProtocolMode.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),t.prototype.discoveryComplete=function(){return!!this.metadata},t.prototype.resolveEndpointsAsync=function(){return d(this,void 0,void 0,(function(){var e,t,r,n;return h(this,(function(o){switch(o.label){case 0:return(e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort))||(e=new rt).updateCanonicalAuthority(this.canonicalAuthority),[4,this.updateCloudDiscoveryMetadata(e)];case 1:return t=o.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network),[4,this.updateEndpointMetadata(e)];case 2:return r=o.sent(),t!==R.CACHE&&r!==R.CACHE&&(e.resetExpiresAt(),e.updateCanonicalAuthority(this.canonicalAuthority)),n=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache),this.cacheManager.setAuthorityMetadata(n,e),this.metadata=e,[2]}}))}))},t.prototype.updateEndpointMetadata=function(e){var r;return d(this,void 0,void 0,(function(){var n,o,i;return h(this,(function(a){switch(a.label){case 0:return(n=this.getEndpointMetadataFromConfig())?(e.updateEndpointMetadata(n,!1),[2,R.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,R.CACHE]:[4,this.getEndpointMetadataFromNetwork()];case 1:return(n=a.sent())?(null===(r=this.authorityOptions.azureRegionConfiguration)||void 0===r?void 0:r.azureRegion)?[4,this.regionDiscovery.detectRegion(this.authorityOptions.azureRegionConfiguration.environmentRegion,this.regionDiscoveryMetadata)]:[3,3]:[3,4];case 2:o=a.sent(),i=this.authorityOptions.azureRegionConfiguration.azureRegion===v.AZURE_REGION_AUTO_DISCOVER_FLAG?o:this.authorityOptions.azureRegionConfiguration.azureRegion,this.authorityOptions.azureRegionConfiguration.azureRegion===v.AZURE_REGION_AUTO_DISCOVER_FLAG?this.regionDiscoveryMetadata.region_outcome=o?z.AUTO_DETECTION_REQUESTED_SUCCESSFUL:z.AUTO_DETECTION_REQUESTED_FAILED:this.regionDiscoveryMetadata.region_outcome=o?this.authorityOptions.azureRegionConfiguration.azureRegion===o?z.CONFIGURED_MATCHES_DETECTED:z.CONFIGURED_NOT_DETECTED:z.CONFIGURED_NO_AUTO_DETECTION,i&&(this.regionDiscoveryMetadata.region_used=i,n=t.replaceWithRegionalInformation(n,i)),a.label=3;case 3:return e.updateEndpointMetadata(n,!0),[2,R.NETWORK];case 4:throw te.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}}))}))},t.prototype.isAuthoritySameType=function(e){return new je(e.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length},t.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch(e){throw le.createInvalidAuthorityMetadataError()}return null},t.prototype.getEndpointMetadataFromNetwork=function(){return d(this,void 0,void 0,(function(){var e;return h(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint)];case 1:return[2,$e((e=t.sent()).body)?e.body:null];case 2:return t.sent(),[2,null];case 3:return[2]}}))}))},t.prototype.updateCloudDiscoveryMetadata=function(e){return d(this,void 0,void 0,(function(){var t;return h(this,(function(r){switch(r.label){case 0:return(t=this.getCloudDiscoveryMetadataFromConfig())?(e.updateCloudDiscoveryMetadata(t,!1),[2,R.CONFIG]):this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!e.isExpired()?[2,R.CACHE]:[4,this.getCloudDiscoveryMetadataFromNetwork()];case 1:if(t=r.sent())return e.updateCloudDiscoveryMetadata(t,!0),[2,R.NETWORK];throw le.createUntrustedAuthorityError()}}))}))},t.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityOptions.cloudDiscoveryMetadata)try{var e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),r=t.getCloudDiscoveryMetadataFromNetworkResponse(e.metadata,this.hostnameAndPort);if(r)return r}catch(e){throw le.createInvalidCloudDiscoveryMetadataError()}return this.isInKnownAuthorities()?t.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort):null},t.prototype.getCloudDiscoveryMetadataFromNetwork=function(){return d(this,void 0,void 0,(function(){var e,r,n,o;return h(this,(function(i){switch(i.label){case 0:e=""+v.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",r=null,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(e)];case 2:return n=i.sent(),0===(o=function(e){return e.hasOwnProperty("tenant_discovery_endpoint")&&e.hasOwnProperty("metadata")}(n.body)?n.body.metadata:[]).length?[2,null]:(r=t.getCloudDiscoveryMetadataFromNetworkResponse(o,this.hostnameAndPort),[3,4]);case 3:return i.sent(),[2,null];case 4:return r||(r=t.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,r]}}))}))},t.prototype.isInKnownAuthorities=function(){var e=this;return this.authorityOptions.knownAuthorities.filter((function(t){return je.getDomainFromUrl(t).toLowerCase()===e.hostnameAndPort})).length>0},t.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},t.getCloudDiscoveryMetadataFromNetworkResponse=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.aliases.indexOf(t)>-1)return n}return null},t.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw te.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},t.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},t.isPublicCloudAuthority=function(e){return v.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},t.buildRegionalAuthorityString=function(e,t,r){var n=new je(e);n.validateAsUri();var o=n.getUrlComponents(),i=t+"."+o.HostNameAndPort;this.isPublicCloudAuthority(o.HostNameAndPort)&&(i=t+"."+v.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var a=je.constructAuthorityUriFromObject(u(u({},n.getUrlComponents()),{HostNameAndPort:i})).urlString;return r?a+"?"+r:a},t.replaceWithRegionalInformation=function(e,r){return e.authorization_endpoint=t.buildRegionalAuthorityString(e.authorization_endpoint,r),e.token_endpoint=t.buildRegionalAuthorityString(e.token_endpoint,r,"allowestsrnonmsi=true"),e.end_session_endpoint&&(e.end_session_endpoint=t.buildRegionalAuthorityString(e.end_session_endpoint,r)),e},t}(),it=function(){function e(){}return e.createDiscoveredInstance=function(t,r,n,o){return d(this,void 0,void 0,(function(){var i,a;return h(this,(function(s){switch(s.label){case 0:i=e.createInstance(t,r,n,o),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,i.resolveEndpointsAsync()];case 2:return s.sent(),[2,i];case 3:throw a=s.sent(),te.createEndpointDiscoveryIncompleteError(a);case 4:return[2]}}))}))},e.createInstance=function(e,t,r,n){if(re.isEmpty(e))throw le.createUrlEmptyError();return new ot(e,t,r,n)},e}(),at=function(){function e(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return e.isServerTelemetryEntity=function(e,t){var r=0===e.indexOf(F.CACHE_KEY),n=!0;return t&&(n=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),r&&n},e}(),st=function(){function e(){}return e.isThrottlingEntity=function(e,t){var r=!1;e&&(r=0===e.indexOf(G));var n=!0;return t&&(n=t.hasOwnProperty("throttleTime")),r&&n},e}(),lt={sendGetRequestAsync:function(){return Promise.reject(X.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented for the Network interface."))},sendPostRequestAsync:function(){return Promise.reject(X.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented for the Network interface."))}},ct=function(){function e(e){this.headers=e}return e.prototype.getShrNonce=function(){var e=this.headers[f.AuthenticationInfo];if(e){var t=this.parseChallenges(e);if(t.nextnonce)return t.nextnonce;throw le.createInvalidAuthenticationHeaderError(f.AuthenticationInfo,"nextnonce challenge is missing.")}var r=this.headers[f.WWWAuthenticate];if(r){var n=this.parseChallenges(r);if(n.nonce)return n.nonce;throw le.createInvalidAuthenticationHeaderError(f.WWWAuthenticate,"nonce challenge is missing.")}throw le.createMissingNonceAuthenticationHeadersError()},e.prototype.parseChallenges=function(e){var t=e.indexOf(" "),r=e.substr(t+1).split(","),n={};return r.forEach((function(e){var t=e.split("="),r=t[0],o=t[1];n[r]=unescape(o.replace(/['"]+/g,""))})),n},e}(),ut=function(){function e(e,t){this.cacheOutcome=q.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||v.EMPTY_STRING,this.wrapperVer=e.wrapperVer||v.EMPTY_STRING,this.telemetryCacheKey=F.CACHE_KEY+O.CACHE_KEY_SEPARATOR+e.clientId}return e.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+F.VALUE_SEPARATOR+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join(F.VALUE_SEPARATOR),r=[e,this.getRegionDiscoveryFields()].join(F.VALUE_SEPARATOR);return[F.SCHEMA_VERSION,r,t].join(F.CATEGORY_SEPARATOR)},e.prototype.generateLastRequestHeaderValue=function(){var t=this.getLastRequests(),r=e.maxErrorsToSend(t),n=t.failedRequests.slice(0,2*r).join(F.VALUE_SEPARATOR),o=t.errors.slice(0,r).join(F.VALUE_SEPARATOR),i=t.errors.length,a=[i,r<i?F.OVERFLOW_TRUE:F.OVERFLOW_FALSE].join(F.VALUE_SEPARATOR);return[F.SCHEMA_VERSION,t.cacheHits,n,o,a].join(F.CATEGORY_SEPARATOR)},e.prototype.cacheFailedRequest=function(e){var t=this.getLastRequests();t.errors.length>=F.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),re.isEmpty(e.subError)?re.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(F.UNKNOWN_ERROR):t.errors.push(e.errorCode):t.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)},e.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},e.prototype.getLastRequests=function(){var e=new at;return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||e},e.prototype.clearTelemetryCache=function(){var t=this.getLastRequests(),r=e.maxErrorsToSend(t);if(r===t.errors.length)this.cacheManager.removeItem(this.telemetryCacheKey);else{var n=new at;n.failedRequests=t.failedRequests.slice(2*r),n.errors=t.errors.slice(r),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,n)}},e.maxErrorsToSend=function(e){var t,r=0,n=0,o=e.errors.length;for(t=0;t<o;t++){var i=e.failedRequests[2*t]||v.EMPTY_STRING,a=e.failedRequests[2*t+1]||v.EMPTY_STRING,s=e.errors[t]||v.EMPTY_STRING;if(!((n+=i.toString().length+a.toString().length+s.length+3)<F.MAX_LAST_HEADER_BYTES))break;r+=1}return r},e.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||""),e.push(this.regionSource||""),e.push(this.regionOutcome||""),e.join(",")},e.prototype.updateRegionDiscoveryMetadata=function(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome},e.prototype.setCacheOutcome=function(e){this.cacheOutcome=e},e}(),dt="invalid_grant",ht=483,pt=600,ft="msal",gt=50,mt="msal.js.browser";e.BrowserCacheLocation=void 0,(Je=e.BrowserCacheLocation||(e.BrowserCacheLocation={})).LocalStorage="localStorage",Je.SessionStorage="sessionStorage",Je.MemoryStorage="memoryStorage",function(e){e.GET="GET",e.POST="POST"}(Ye||(Ye={})),function(e){e.AUTHORITY="authority",e.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",e.SESSION_STATE="session.state",e.REQUEST_STATE="request.state",e.NONCE_IDTOKEN="nonce.id_token",e.ORIGIN_URI="request.origin",e.RENEW_STATUS="token.renew.status",e.URL_HASH="urlHash",e.REQUEST_PARAMS="request.params",e.SCOPES="scopes",e.INTERACTION_STATUS_KEY="interaction.status",e.CCS_CREDENTIAL="ccs.credential",e.CORRELATION_ID="request.correlationId"}(Qe||(Qe={})),function(e){e.WRAPPER_SKU="wrapper.sku",e.WRAPPER_VER="wrapper.version"}(Xe||(Xe={})),e.ApiId=void 0,(Ze=e.ApiId||(e.ApiId={}))[Ze.acquireTokenRedirect=861]="acquireTokenRedirect",Ze[Ze.acquireTokenPopup=862]="acquireTokenPopup",Ze[Ze.ssoSilent=863]="ssoSilent",Ze[Ze.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",Ze[Ze.handleRedirectPromise=865]="handleRedirectPromise",Ze[Ze.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",Ze[Ze.logout=961]="logout",Ze[Ze.logoutPopup=962]="logoutPopup",e.InteractionType=void 0,(et=e.InteractionType||(e.InteractionType={})).Redirect="redirect",et.Popup="popup",et.Silent="silent",e.InteractionStatus=void 0,(tt=e.InteractionStatus||(e.InteractionStatus={})).Startup="startup",tt.Login="login",tt.Logout="logout",tt.AcquireToken="acquireToken",tt.SsoSilent="ssoSilent",tt.HandleRedirect="handleRedirect",tt.None="none";var bt,yt={scopes:_},vt="jwk";e.WrapperSKU=void 0,(bt=e.WrapperSKU||(e.WrapperSKU={})).React="@azure/msal-react",bt.Angular="@azure/msal-angular";var _t,wt="msal.db",Et=function(){function e(){}return e.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},e}(),Ct=function(){function e(e){this.cryptoObj=e}return e.prototype.generateGuid=function(){try{var e=new Uint8Array(16);return this.cryptoObj.getRandomValues(e),e[6]|=64,e[6]&=79,e[8]|=128,e[8]&=191,Et.decimalToHex(e[0])+Et.decimalToHex(e[1])+Et.decimalToHex(e[2])+Et.decimalToHex(e[3])+"-"+Et.decimalToHex(e[4])+Et.decimalToHex(e[5])+"-"+Et.decimalToHex(e[6])+Et.decimalToHex(e[7])+"-"+Et.decimalToHex(e[8])+Et.decimalToHex(e[9])+"-"+Et.decimalToHex(e[10])+Et.decimalToHex(e[11])+Et.decimalToHex(e[12])+Et.decimalToHex(e[13])+Et.decimalToHex(e[14])+Et.decimalToHex(e[15])}catch(e){for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",r="0123456789abcdef",n=0,o="",i=0;i<36;i++)"-"!==t[i]&&"4"!==t[i]&&(n=16*Math.random()|0),"x"===t[i]?o+=r[n]:"y"===t[i]?(n&=3,o+=r[n|=8]):o+=t[i];return o}},e.isGuid=function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)},e}(),St=function(){function e(){}return e.stringToUtf8Arr=function(e){for(var t,r=0,n=e.length,o=0;o<n;o++)r+=(t=e.charCodeAt(o))<128?1:t<2048?2:t<65536?3:t<2097152?4:t<67108864?5:6;for(var i=new Uint8Array(r),a=0,s=0;a<r;s++)(t=e.charCodeAt(s))<128?i[a++]=t:t<2048?(i[a++]=192+(t>>>6),i[a++]=128+(63&t)):t<65536?(i[a++]=224+(t>>>12),i[a++]=128+(t>>>6&63),i[a++]=128+(63&t)):t<2097152?(i[a++]=240+(t>>>18),i[a++]=128+(t>>>12&63),i[a++]=128+(t>>>6&63),i[a++]=128+(63&t)):t<67108864?(i[a++]=248+(t>>>24),i[a++]=128+(t>>>18&63),i[a++]=128+(t>>>12&63),i[a++]=128+(t>>>6&63),i[a++]=128+(63&t)):(i[a++]=252+(t>>>30),i[a++]=128+(t>>>24&63),i[a++]=128+(t>>>18&63),i[a++]=128+(t>>>12&63),i[a++]=128+(t>>>6&63),i[a++]=128+(63&t));return i},e.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return t},e.utf8ArrToString=function(e){for(var t="",r=void 0,n=e.length,o=0;o<n;o++)r=e[o],t+=String.fromCharCode(r>251&&r<254&&o+5<n?1073741824*(r-252)+(e[++o]-128<<24)+(e[++o]-128<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:r>247&&r<252&&o+4<n?(r-248<<24)+(e[++o]-128<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:r>239&&r<248&&o+3<n?(r-240<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:r>223&&r<240&&o+2<n?(r-224<<12)+(e[++o]-128<<6)+e[++o]-128:r>191&&r<224&&o+1<n?(r-192<<6)+e[++o]-128:r);return t},e}(),kt=function(){function e(){}return e.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))},e.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},e.prototype.encode=function(e){var t=St.stringToUtf8Arr(e);return this.base64EncArr(t)},e.prototype.base64EncArr=function(e){for(var t=(3-e.length%3)%3,r="",n=void 0,o=e.length,i=0,a=0;a<o;a++)n=a%3,i|=e[a]<<(16>>>n&24),2!==n&&e.length-a!=1||(r+=String.fromCharCode(this.uint6ToB64(i>>>18&63),this.uint6ToB64(i>>>12&63),this.uint6ToB64(i>>>6&63),this.uint6ToB64(63&i)),i=0);return 0===t?r:r.substring(0,r.length-t)+(1===t?"=":"==")},e.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:62===e?43:63===e?47:65},e}(),It=function(){function e(){}return e.prototype.decode=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Invalid base64 string")}var r=this.base64DecToArr(t);return St.utf8ArrToString(r)},e.prototype.base64DecToArr=function(e,t){for(var r=e.replace(/[^A-Za-z0-9\+\/]/g,""),n=r.length,o=t?Math.ceil((3*n+1>>>2)/t)*t:3*n+1>>>2,i=new Uint8Array(o),a=void 0,s=void 0,l=0,c=0,u=0;u<n;u++)if(s=3&u,l|=this.b64ToUint6(r.charCodeAt(u))<<18-6*s,3===s||n-u==1){for(a=0;a<3&&c<o;a++,c++)i[c]=l>>>(16>>>a&24)&255;l=0}return i},e.prototype.b64ToUint6=function(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:43===e?62:47===e?63:0},e}(),Ot={pkceNotGenerated:{code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},cryptoDoesNotExist:{code:"crypto_nonexistent",desc:"The crypto object or function is not available."},httpMethodNotImplementedError:{code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},emptyNavigateUriError:{code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},hashEmptyError:{code:"hash_empty_error",desc:"Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash."},hashDoesNotContainStateError:{code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},hashDoesNotContainKnownPropertiesError:{code:"hash_does_not_contain_known_properties",desc:"Hash does not contain known properites. Please verify that your redirectUri is not changing the hash."},unableToParseStateError:{code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},stateInteractionTypeMismatchError:{code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},interactionInProgress:{code:"interaction_in_progress",desc:"Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. For more visit: aka.ms/msaljs/browser-errors."},popupWindowError:{code:"popup_window_error",desc:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},emptyWindowError:{code:"empty_window_error",desc:"window.open returned null or undefined window object."},userCancelledError:{code:"user_cancelled",desc:"User cancelled the flow."},monitorPopupTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},monitorIframeTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},redirectInIframeError:{code:"redirect_in_iframe",desc:"Code flow is not supported inside an iframe. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."},blockTokenRequestsInHiddenIframeError:{code:"block_iframe_reload",desc:"Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors"},blockAcquireTokenInPopupsError:{code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},iframeClosedPrematurelyError:{code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},silentLogoutUnsupportedError:{code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},noAccountError:{code:"no_account_error",desc:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request."},silentPromptValueError:{code:"silent_prompt_value_error",desc:"The value given for the prompt value is not valid for silent requests - must be set to 'none'."},noTokenRequestCacheError:{code:"no_token_request_cache_error",desc:"No token request found in cache."},unableToParseTokenRequestCacheError:{code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},noCachedAuthorityError:{code:"no_cached_authority_error",desc:"No cached authority found."},authRequestNotSet:{code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},notInBrowserEnvironment:{code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},databaseNotOpen:{code:"database_not_open",desc:"Database is not open!"},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},postRequestFailed:{code:"post_request_failed",desc:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'"},getRequestFailed:{code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},failedToParseNetworkResponse:{code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},unableToLoadTokenError:{code:"unable_to_load_token",desc:"Error loading token to cache."},signingKeyNotFoundInStorage:{code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},databaseUnavailable:{code:"database_unavailable",desc:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts."}},Tt=function(e){function t(r,n){var o=e.call(this,r,n)||this;return Object.setPrototypeOf(o,t.prototype),o.name="BrowserAuthError",o}return r(t,e),t.createPkceNotGeneratedError=function(e){return new t(Ot.pkceNotGenerated.code,Ot.pkceNotGenerated.desc+" Detail:"+e)},t.createCryptoNotAvailableError=function(e){return new t(Ot.cryptoDoesNotExist.code,Ot.cryptoDoesNotExist.desc+" Detail:"+e)},t.createHttpMethodNotImplementedError=function(e){return new t(Ot.httpMethodNotImplementedError.code,Ot.httpMethodNotImplementedError.desc+" Given Method: "+e)},t.createEmptyNavigationUriError=function(){return new t(Ot.emptyNavigateUriError.code,Ot.emptyNavigateUriError.desc)},t.createEmptyHashError=function(e){return new t(Ot.hashEmptyError.code,Ot.hashEmptyError.desc+" Given Url: "+e)},t.createHashDoesNotContainStateError=function(){return new t(Ot.hashDoesNotContainStateError.code,Ot.hashDoesNotContainStateError.desc)},t.createHashDoesNotContainKnownPropertiesError=function(){return new t(Ot.hashDoesNotContainKnownPropertiesError.code,Ot.hashDoesNotContainKnownPropertiesError.desc)},t.createUnableToParseStateError=function(){return new t(Ot.unableToParseStateError.code,Ot.unableToParseStateError.desc)},t.createStateInteractionTypeMismatchError=function(){return new t(Ot.stateInteractionTypeMismatchError.code,Ot.stateInteractionTypeMismatchError.desc)},t.createInteractionInProgressError=function(){return new t(Ot.interactionInProgress.code,Ot.interactionInProgress.desc)},t.createPopupWindowError=function(e){var r=Ot.popupWindowError.desc;return r=re.isEmpty(e)?r:r+" Details: "+e,new t(Ot.popupWindowError.code,r)},t.createEmptyWindowCreatedError=function(){return new t(Ot.emptyWindowError.code,Ot.emptyWindowError.desc)},t.createUserCancelledError=function(){return new t(Ot.userCancelledError.code,Ot.userCancelledError.desc)},t.createMonitorPopupTimeoutError=function(){return new t(Ot.monitorPopupTimeoutError.code,Ot.monitorPopupTimeoutError.desc)},t.createMonitorIframeTimeoutError=function(){return new t(Ot.monitorIframeTimeoutError.code,Ot.monitorIframeTimeoutError.desc)},t.createRedirectInIframeError=function(e){return new t(Ot.redirectInIframeError.code,Ot.redirectInIframeError.desc+" (window.parent !== window) => "+e)},t.createBlockReloadInHiddenIframeError=function(){return new t(Ot.blockTokenRequestsInHiddenIframeError.code,Ot.blockTokenRequestsInHiddenIframeError.desc)},t.createBlockAcquireTokenInPopupsError=function(){return new t(Ot.blockAcquireTokenInPopupsError.code,Ot.blockAcquireTokenInPopupsError.desc)},t.createIframeClosedPrematurelyError=function(){return new t(Ot.iframeClosedPrematurelyError.code,Ot.iframeClosedPrematurelyError.desc)},t.createSilentLogoutUnsupportedError=function(){return new t(Ot.silentLogoutUnsupportedError.code,Ot.silentLogoutUnsupportedError.desc)},t.createNoAccountError=function(){return new t(Ot.noAccountError.code,Ot.noAccountError.desc)},t.createSilentPromptValueError=function(e){return new t(Ot.silentPromptValueError.code,Ot.silentPromptValueError.desc+" Given value: "+e)},t.createUnableToParseTokenRequestCacheError=function(){return new t(Ot.unableToParseTokenRequestCacheError.code,Ot.unableToParseTokenRequestCacheError.desc)},t.createNoTokenRequestCacheError=function(){return new t(Ot.noTokenRequestCacheError.code,Ot.noTokenRequestCacheError.desc)},t.createAuthRequestNotSetError=function(){return new t(Ot.authRequestNotSet.code,Ot.authRequestNotSet.desc)},t.createNoCachedAuthorityError=function(){return new t(Ot.noCachedAuthorityError.code,Ot.noCachedAuthorityError.desc)},t.createInvalidCacheTypeError=function(){return new t(Ot.invalidCacheType.code,""+Ot.invalidCacheType.desc)},t.createNonBrowserEnvironmentError=function(){return new t(Ot.notInBrowserEnvironment.code,Ot.notInBrowserEnvironment.desc)},t.createDatabaseNotOpenError=function(){return new t(Ot.databaseNotOpen.code,Ot.databaseNotOpen.desc)},t.createNoNetworkConnectivityError=function(){return new t(Ot.noNetworkConnectivity.code,Ot.noNetworkConnectivity.desc)},t.createPostRequestFailedError=function(e,r){return new t(Ot.postRequestFailed.code,Ot.postRequestFailed.desc+" | Network client threw: "+e+" | Attempted to reach: "+r.split("?")[0])},t.createGetRequestFailedError=function(e,r){return new t(Ot.getRequestFailed.code,Ot.getRequestFailed.desc+" | Network client threw: "+e+" | Attempted to reach: "+r.split("?")[0])},t.createFailedToParseNetworkResponseError=function(e){return new t(Ot.failedToParseNetworkResponse.code,Ot.failedToParseNetworkResponse.desc+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToLoadTokenError=function(e){return new t(Ot.unableToLoadTokenError.code,Ot.unableToLoadTokenError.desc+" | "+e)},t.createSigningKeyNotFoundInStorageError=function(e){return new t(Ot.signingKeyNotFoundInStorage.code,Ot.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+e)},t.createDatabaseUnavailableError=function(){return new t(Ot.databaseUnavailable.code,Ot.databaseUnavailable.desc)},t}(X),At=function(){function e(e){this.base64Encode=new kt,this.cryptoObj=e}return e.prototype.generateCodes=function(){return o(this,void 0,void 0,(function(){var e,t;return i(this,(function(r){switch(r.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return t=r.sent(),[2,{verifier:e,challenge:t}]}}))}))},e.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(32);return this.cryptoObj.getRandomValues(e),this.base64Encode.urlEncodeArr(e)}catch(e){throw Tt.createPkceNotGeneratedError(e)}},e.prototype.generateCodeChallengeFromVerifier=function(e){return o(this,void 0,void 0,(function(){var t,r;return i(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return t=n.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(t))];case 2:throw r=n.sent(),Tt.createPkceNotGeneratedError(r);case 3:return[2]}}))}))},e}(),xt="SHA-256",Pt=new Uint8Array([1,0,1]),Rt=function(){function e(e){if(this.logger=e,!this.hasCryptoAPI())throw Tt.createCryptoNotAvailableError("Browser crypto or msCrypto object not available.");this._keygenAlgorithmOptions={name:"RSASSA-PKCS1-v1_5",hash:xt,modulusLength:2048,publicExponent:Pt}}return e.prototype.sha256Digest=function(e){return o(this,void 0,void 0,(function(){var t;return i(this,(function(r){return t=St.stringToUtf8Arr(e),[2,this.hasIECrypto()?this.getMSCryptoDigest(xt,t):this.getSubtleCryptoDigest(xt,t)]}))}))},e.prototype.getRandomValues=function(e){var t=window.msCrypto||window.crypto;if(!t.getRandomValues)throw Tt.createCryptoNotAvailableError("getRandomValues does not exist.");t.getRandomValues(e)},e.prototype.generateKeyPair=function(e,t){return o(this,void 0,void 0,(function(){return i(this,(function(r){return[2,this.hasIECrypto()?this.msCryptoGenerateKey(e,t):window.crypto.subtle.generateKey(this._keygenAlgorithmOptions,e,t)]}))}))},e.prototype.exportJwk=function(e){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.hasIECrypto()?this.msCryptoExportJwk(e):window.crypto.subtle.exportKey(vt,e)]}))}))},e.prototype.importJwk=function(t,r,n){return o(this,void 0,void 0,(function(){var o,a;return i(this,(function(i){return o=e.getJwkString(t),a=St.stringToArrayBuffer(o),[2,this.hasIECrypto()?this.msCryptoImportKey(a,r,n):window.crypto.subtle.importKey(vt,t,this._keygenAlgorithmOptions,r,n)]}))}))},e.prototype.sign=function(e,t){return o(this,void 0,void 0,(function(){return i(this,(function(r){return[2,this.hasIECrypto()?this.msCryptoSign(e,t):window.crypto.subtle.sign(this._keygenAlgorithmOptions,e,t)]}))}))},e.prototype.hasCryptoAPI=function(){return this.hasIECrypto()||this.hasBrowserCrypto()},e.prototype.hasIECrypto=function(){return"msCrypto"in window},e.prototype.hasBrowserCrypto=function(){return"crypto"in window},e.prototype.getSubtleCryptoDigest=function(e,t){return o(this,void 0,void 0,(function(){return i(this,(function(r){return[2,window.crypto.subtle.digest(e,t)]}))}))},e.prototype.getMSCryptoDigest=function(e,t){return o(this,void 0,void 0,(function(){return i(this,(function(r){return[2,new Promise((function(r,n){var o=window.msCrypto.subtle.digest(e,t.buffer);o.addEventListener("complete",(function(e){r(e.target.result)})),o.addEventListener("error",(function(e){n(e)}))}))]}))}))},e.prototype.msCryptoGenerateKey=function(e,t){return o(this,void 0,void 0,(function(){var r=this;return i(this,(function(n){return[2,new Promise((function(n,o){var i=window.msCrypto.subtle.generateKey(r._keygenAlgorithmOptions,e,t);i.addEventListener("complete",(function(e){n(e.target.result)})),i.addEventListener("error",(function(e){o(e)}))}))]}))}))},e.prototype.msCryptoExportJwk=function(e){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,new Promise((function(t,r){var n=window.msCrypto.subtle.exportKey(vt,e);n.addEventListener("complete",(function(e){var n=e.target.result,o=St.utf8ArrToString(new Uint8Array(n)).replace(/\r/g,"").replace(/\n/g,"").replace(/\t/g,"").split(" ").join("").replace("\0","");try{t(JSON.parse(o))}catch(e){r(e)}})),n.addEventListener("error",(function(e){r(e)}))}))]}))}))},e.prototype.msCryptoImportKey=function(e,t,r){return o(this,void 0,void 0,(function(){var n=this;return i(this,(function(o){return[2,new Promise((function(o,i){var a=window.msCrypto.subtle.importKey(vt,e,n._keygenAlgorithmOptions,t,r);a.addEventListener("complete",(function(e){o(e.target.result)})),a.addEventListener("error",(function(e){i(e)}))}))]}))}))},e.prototype.msCryptoSign=function(e,t){return o(this,void 0,void 0,(function(){var r=this;return i(this,(function(n){return[2,new Promise((function(n,o){var i=window.msCrypto.subtle.sign(r._keygenAlgorithmOptions,e,t);i.addEventListener("complete",(function(e){n(e.target.result)})),i.addEventListener("error",(function(e){o(e)}))}))]}))}))},e.getJwkString=function(e){return JSON.stringify(e,Object.keys(e).sort())},e}(),Nt=function(){function e(){this.dbName=wt,this.version=1,this.tableName="msal.db.keys",this.dbOpen=!1}return e.prototype.open=function(){return o(this,void 0,void 0,(function(){var e=this;return i(this,(function(t){return[2,new Promise((function(t,r){var n=window.indexedDB.open(e.dbName,e.version);n.addEventListener("upgradeneeded",(function(t){t.target.result.createObjectStore(e.tableName)})),n.addEventListener("success",(function(r){var n=r;e.db=n.target.result,e.dbOpen=!0,t()})),n.addEventListener("error",(function(){return r(Tt.createDatabaseUnavailableError())}))}))]}))}))},e.prototype.validateDbIsOpen=function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,e.sent()];case 2:return[2]}}))}))},e.prototype.getItem=function(e){return o(this,void 0,void 0,(function(){var t=this;return i(this,(function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise((function(r,n){if(!t.db)return n(Tt.createDatabaseNotOpenError());var o=t.db.transaction([t.tableName],"readonly").objectStore(t.tableName).get(e);o.addEventListener("success",(function(e){r(e.target.result)})),o.addEventListener("error",(function(e){return n(e)}))}))]}}))}))},e.prototype.setItem=function(e,t){return o(this,void 0,void 0,(function(){var r=this;return i(this,(function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise((function(n,o){if(!r.db)return o(Tt.createDatabaseNotOpenError());var i=r.db.transaction([r.tableName],"readwrite").objectStore(r.tableName).put(t,e);i.addEventListener("success",(function(){return n()})),i.addEventListener("error",(function(e){return o(e)}))}))]}}))}))},e.prototype.removeItem=function(e){return o(this,void 0,void 0,(function(){var t=this;return i(this,(function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise((function(r,n){if(!t.db)return n(Tt.createDatabaseNotOpenError());var o=t.db.transaction([t.tableName],"readwrite").objectStore(t.tableName).delete(e);o.addEventListener("success",(function(){return r()})),o.addEventListener("error",(function(e){return n(e)}))}))]}}))}))},e.prototype.getKeys=function(){return o(this,void 0,void 0,(function(){var e=this;return i(this,(function(t){switch(t.label){case 0:return[4,this.validateDbIsOpen()];case 1:return t.sent(),[2,new Promise((function(t,r){if(!e.db)return r(Tt.createDatabaseNotOpenError());var n=e.db.transaction([e.tableName],"readonly").objectStore(e.tableName).getAllKeys();n.addEventListener("success",(function(e){t(e.target.result)})),n.addEventListener("error",(function(e){return r(e)}))}))]}}))}))},e.prototype.containsKey=function(e){return o(this,void 0,void 0,(function(){var t=this;return i(this,(function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise((function(r,n){if(!t.db)return n(Tt.createDatabaseNotOpenError());var o=t.db.transaction([t.tableName],"readonly").objectStore(t.tableName).count(e);o.addEventListener("success",(function(e){r(1===e.target.result)})),o.addEventListener("error",(function(e){return n(e)}))}))]}}))}))},e.prototype.deleteDatabase=function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,new Promise((function(e,t){var r=window.indexedDB.deleteDatabase(wt);r.addEventListener("success",(function(){return e(!0)})),r.addEventListener("error",(function(){return t(!1)}))}))]}))}))},e}(),Lt=function(){function e(){this.cache=new Map}return e.prototype.getItem=function(e){return this.cache.get(e)||null},e.prototype.setItem=function(e,t){this.cache.set(e,t)},e.prototype.removeItem=function(e){this.cache.delete(e)},e.prototype.getKeys=function(){var e=[];return this.cache.forEach((function(t,r){e.push(r)})),e},e.prototype.containsKey=function(e){return this.cache.has(e)},e.prototype.clear=function(){this.cache.clear()},e}(),Mt=function(){function e(e){this.inMemoryCache=new Lt,this.indexedDBCache=new Nt,this.logger=e}return e.prototype.handleDatabaseAccessError=function(e){e instanceof Tt&&e.errorCode===Ot.databaseUnavailable.code&&this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.")},e.prototype.getItem=function(e){return o(this,void 0,void 0,(function(){var t,r;return i(this,(function(n){switch(n.label){case 0:if(t=this.inMemoryCache.getItem(e))return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(e)];case 2:return[2,n.sent()];case 3:return r=n.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2,t]}}))}))},e.prototype.setItem=function(e,t){return o(this,void 0,void 0,(function(){var r;return i(this,(function(n){switch(n.label){case 0:this.inMemoryCache.setItem(e,t),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,t)];case 2:return n.sent(),[3,4];case 3:return r=n.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2]}}))}))},e.prototype.removeItem=function(e){return o(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:this.inMemoryCache.removeItem(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(e)];case 2:return r.sent(),[3,4];case 3:return t=r.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2]}}))}))},e.prototype.getKeys=function(){return o(this,void 0,void 0,(function(){var e,t;return i(this,(function(r){switch(r.label){case 0:if(0!==(e=this.inMemoryCache.getKeys()).length)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,r.sent()];case 3:return t=r.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2,e]}}))}))},e.prototype.containsKey=function(e){return o(this,void 0,void 0,(function(){var t,r;return i(this,(function(n){switch(n.label){case 0:if(t=this.inMemoryCache.containsKey(e))return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(e)];case 2:return[2,n.sent()];case 3:return r=n.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2,t]}}))}))},e.prototype.clear=function(){return o(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:this.inMemoryCache.clear(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.indexedDBCache.deleteDatabase()];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),this.handleDatabaseAccessError(e),[3,4];case 4:return[2]}}))}))},e}(),Dt=function(){function e(e){this.logger=e,this.browserCrypto=new Rt(this.logger),this.b64Encode=new kt,this.b64Decode=new It,this.guidGenerator=new Ct(this.browserCrypto),this.pkceGenerator=new At(this.browserCrypto),this.cache={asymmetricKeys:new Mt(this.logger),symmetricKeys:new Mt(this.logger)}}return e.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},e.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},e.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},e.prototype.generatePkceCodes=function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this.pkceGenerator.generateCodes()]}))}))},e.prototype.getPublicKeyThumbprint=function(t){return o(this,void 0,void 0,(function(){var r,n,o,a,s,l,c,u;return i(this,(function(i){switch(i.label){case 0:return[4,this.browserCrypto.generateKeyPair(e.EXTRACTABLE,e.POP_KEY_USAGES)];case 1:return r=i.sent(),[4,this.browserCrypto.exportJwk(r.publicKey)];case 2:return n=i.sent(),o={e:n.e,kty:n.kty,n:n.n},a=Rt.getJwkString(o),[4,this.browserCrypto.sha256Digest(a)];case 3:return s=i.sent(),l=this.b64Encode.urlEncodeArr(new Uint8Array(s)),[4,this.browserCrypto.exportJwk(r.privateKey)];case 4:return c=i.sent(),[4,this.browserCrypto.importJwk(c,!1,["sign"])];case 5:return u=i.sent(),[4,this.cache.asymmetricKeys.setItem(l,{privateKey:u,publicKey:r.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri})];case 6:return i.sent(),[2,l]}}))}))},e.prototype.removeTokenBindingKey=function(e){return o(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return t.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return[2,!t.sent()]}}))}))},e.prototype.clearKeystore=function(){return o(this,void 0,void 0,(function(){var e,t,r;return i(this,(function(n){switch(n.label){case 0:return e=Object.keys(this.cache),(t=this.cache[e[0]])?[4,t.deleteDatabase()]:[3,2];case 1:return r=n.sent(),[3,3];case 2:r=!1,n.label=3;case 3:return[2,r]}}))}))},e.prototype.signJwt=function(e,t){return o(this,void 0,void 0,(function(){var r,n,o,a,s,l,c,u,d,h;return i(this,(function(i){switch(i.label){case 0:return[4,this.cache.asymmetricKeys.getItem(t)];case 1:if(!(r=i.sent()))throw Tt.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(r.publicKey)];case 2:return n=i.sent(),o=Rt.getJwkString(n),a={alg:n.alg,type:vt},s=this.b64Encode.urlEncode(JSON.stringify(a)),e.cnf={jwk:JSON.parse(o)},l=this.b64Encode.urlEncode(JSON.stringify(e)),c=s+"."+l,u=St.stringToArrayBuffer(c),[4,this.browserCrypto.sign(r.privateKey,u)];case 3:return d=i.sent(),h=this.b64Encode.urlEncodeArr(new Uint8Array(d)),[2,c+"."+h]}}))}))},e.POP_KEY_USAGES=["sign","verify"],e.EXTRACTABLE=!0,e}(),Ut={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},storageNotSupportedError:{code:"storage_not_supported",desc:"Given storage configuration option was not supported."},noRedirectCallbacksSet:{code:"no_redirect_callbacks",desc:"No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},invalidCallbackObject:{code:"invalid_callback_object",desc:"The object passed for the callback was invalid. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},stubPcaInstanceCalled:{code:"stubbed_public_client_application_called",desc:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors"},inMemRedirectUnavailable:{code:"in_mem_redirect_unavailable",desc:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."}},Ft=function(e){function t(r,n){var o=e.call(this,r,n)||this;return o.name="BrowserConfigurationAuthError",Object.setPrototypeOf(o,t.prototype),o}return r(t,e),t.createRedirectUriEmptyError=function(){return new t(Ut.redirectUriNotSet.code,Ut.redirectUriNotSet.desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(Ut.postLogoutUriNotSet.code,Ut.postLogoutUriNotSet.desc)},t.createStorageNotSupportedError=function(e){return new t(Ut.storageNotSupportedError.code,Ut.storageNotSupportedError.desc+" Given Location: "+e)},t.createRedirectCallbacksNotSetError=function(){return new t(Ut.noRedirectCallbacksSet.code,Ut.noRedirectCallbacksSet.desc)},t.createStubPcaInstanceCalledError=function(){return new t(Ut.stubPcaInstanceCalled.code,Ut.stubPcaInstanceCalled.desc)},t.createInMemoryRedirectUnavailableError=function(){return new t(Ut.inMemRedirectUnavailable.code,Ut.inMemRedirectUnavailable.desc)},t}(X),jt=function(){function t(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return t.prototype.validateWindowStorage=function(t){if(t!==e.BrowserCacheLocation.LocalStorage&&t!==e.BrowserCacheLocation.SessionStorage)throw Ft.createStorageNotSupportedError(t);if(!window[t])throw Ft.createStorageNotSupportedError(t)},t.prototype.getItem=function(e){return this.windowStorage.getItem(e)},t.prototype.setItem=function(e,t){this.windowStorage.setItem(e,t)},t.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},t.prototype.getKeys=function(){return Object.keys(this.windowStorage)},t.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},t}(),Ht=function(){function e(){}return e.extractBrowserRequestState=function(e,t){if(re.isEmpty(t))return null;try{return Fe.parseRequestState(e,t).libraryState.meta}catch(e){throw te.createInvalidStateError(t,e)}},e.parseServerResponseFromHash=function(e){if(!e)return{};var t=new je(e);return je.getDeserializedHash(t.getHash())},e}(),Bt=function(t){function n(e,r,n,o){var i=t.call(this,e,n)||this;return i.COOKIE_LIFE_MULTIPLIER=864e5,i.cacheConfig=r,i.logger=o,i.internalStorage=new Lt,i.browserStorage=i.setupBrowserStorage(i.cacheConfig.cacheLocation),i.temporaryCacheStorage=i.setupTemporaryCacheStorage(i.cacheConfig.cacheLocation),i.migrateCacheEntries(),i}return r(n,t),n.prototype.setupBrowserStorage=function(t){switch(t){case e.BrowserCacheLocation.LocalStorage:case e.BrowserCacheLocation.SessionStorage:try{return new jt(t)}catch(e){this.logger.verbose(e);break}case e.BrowserCacheLocation.MemoryStorage:}return this.cacheConfig.cacheLocation=e.BrowserCacheLocation.MemoryStorage,new Lt},n.prototype.setupTemporaryCacheStorage=function(t){switch(t){case e.BrowserCacheLocation.LocalStorage:case e.BrowserCacheLocation.SessionStorage:try{return new jt(e.BrowserCacheLocation.SessionStorage)}catch(e){return this.logger.verbose(e),this.internalStorage}case e.BrowserCacheLocation.MemoryStorage:default:return this.internalStorage}},n.prototype.migrateCacheEntries=function(){var e=this,t=v.CACHE_PREFIX+"."+g.ID_TOKEN,r=v.CACHE_PREFIX+"."+g.CLIENT_INFO,n=v.CACHE_PREFIX+"."+g.ERROR,o=v.CACHE_PREFIX+"."+g.ERROR_DESC,i=[this.browserStorage.getItem(t),this.browserStorage.getItem(r),this.browserStorage.getItem(n),this.browserStorage.getItem(o)];[g.ID_TOKEN,g.CLIENT_INFO,g.ERROR,g.ERROR_DESC].forEach((function(t,r){return e.migrateCacheEntry(t,i[r])}))},n.prototype.migrateCacheEntry=function(e,t){t&&this.setTemporaryCache(e,t,!0)},n.prototype.validateAndParseJson=function(e){try{var t=JSON.parse(e);return t&&"object"==typeof t?t:null}catch(e){return null}},n.prototype.getItem=function(e){return this.browserStorage.getItem(e)},n.prototype.setItem=function(e,t){this.browserStorage.setItem(e,t)},n.prototype.getAccount=function(e){var t=this.getItem(e);if(!t)return null;var r=this.validateAndParseJson(t);return r&&pe.isAccountEntity(r)?ge.toObject(new pe,r):null},n.prototype.setAccount=function(e){this.logger.trace("BrowserCacheManager.setAccount called");var t=e.generateAccountKey();this.setItem(t,JSON.stringify(e))},n.prototype.getIdTokenCredential=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null;var r=this.validateAndParseJson(t);return r&&Ae.isIdTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),ge.toObject(new Ae,r)):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null)},n.prototype.setIdTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var t=e.generateCredentialKey();this.setItem(t,JSON.stringify(e))},n.prototype.getAccessTokenCredential=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null;var r=this.validateAndParseJson(t);return r&&Pe.isAccessTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),ge.toObject(new Pe,r)):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null)},n.prototype.setAccessTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var t=e.generateCredentialKey();this.setItem(t,JSON.stringify(e))},n.prototype.getRefreshTokenCredential=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null;var r=this.validateAndParseJson(t);return r&&Re.isRefreshTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),ge.toObject(new Re,r)):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null)},n.prototype.setRefreshTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var t=e.generateCredentialKey();this.setItem(t,JSON.stringify(e))},n.prototype.getAppMetadata=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var r=this.validateAndParseJson(t);return r&&ze.isAppMetadataEntity(e,r)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),ge.toObject(new ze,r)):(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null)},n.prototype.setAppMetadata=function(e){this.logger.trace("BrowserCacheManager.setAppMetadata called");var t=e.generateAppMetadataKey();this.setItem(t,JSON.stringify(e))},n.prototype.getServerTelemetry=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var r=this.validateAndParseJson(t);return r&&at.isServerTelemetryEntity(e,r)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),ge.toObject(new at,r)):(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null)},n.prototype.setServerTelemetry=function(e,t){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(t))},n.prototype.getAuthorityMetadata=function(e){var t=this.internalStorage.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var r=this.validateAndParseJson(t);return r&&rt.isAuthorityMetadataEntity(e,r)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),ge.toObject(new rt,r)):null},n.prototype.getAuthorityMetadataKeys=function(){var e=this;return this.internalStorage.getKeys().filter((function(t){return e.isAuthorityMetadata(t)}))},n.prototype.setWrapperMetadata=function(e,t){this.internalStorage.setItem(Xe.WRAPPER_SKU,e),this.internalStorage.setItem(Xe.WRAPPER_VER,t)},n.prototype.getWrapperMetadata=function(){return[this.internalStorage.getItem(Xe.WRAPPER_SKU)||"",this.internalStorage.getItem(Xe.WRAPPER_VER)||""]},n.prototype.setAuthorityMetadata=function(e,t){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(t))},n.prototype.getActiveAccount=function(){var e=this.generateCacheKey(g.ACTIVE_ACCOUNT),t=this.browserStorage.getItem(e);return t&&this.getAccountInfoByFilter({localAccountId:t})[0]||null},n.prototype.setActiveAccount=function(e){var t=this.generateCacheKey(g.ACTIVE_ACCOUNT);e?(this.logger.verbose("setActiveAccount: Active account set"),this.browserStorage.setItem(t,e.localAccountId)):(this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(t))},n.prototype.getAccountInfoByFilter=function(e){return this.getAllAccounts().filter((function(t){return!(e.username&&e.username.toLowerCase()!==t.username.toLowerCase()||e.homeAccountId&&e.homeAccountId!==t.homeAccountId||e.localAccountId&&e.localAccountId!==t.localAccountId||e.tenantId&&e.tenantId!==t.tenantId||e.environment&&e.environment!==t.environment)}))},n.prototype.getThrottlingCache=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var r=this.validateAndParseJson(t);return r&&st.isThrottlingEntity(e,r)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),ge.toObject(new st,r)):(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null)},n.prototype.setThrottlingCache=function(e,t){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(t))},n.prototype.getTemporaryCache=function(t,r){var n=r?this.generateCacheKey(t):t;if(this.cacheConfig.storeAuthStateInCookie){var o=this.getItemCookie(n);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),o}var i=this.temporaryCacheStorage.getItem(n);if(!i){if(this.cacheConfig.cacheLocation===e.BrowserCacheLocation.LocalStorage){var a=this.browserStorage.getItem(n);if(a)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),a}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),i},n.prototype.setTemporaryCache=function(e,t,r){var n=r?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(n,t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(n,t))},n.prototype.removeItem=function(e){return this.browserStorage.removeItem(e),this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(e)),!0},n.prototype.containsKey=function(e){return this.browserStorage.containsKey(e)||this.temporaryCacheStorage.containsKey(e)},n.prototype.getKeys=function(){return s(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},n.prototype.clear=function(){return o(this,void 0,void 0,(function(){var e=this;return i(this,(function(t){switch(t.label){case 0:return[4,this.removeAllAccounts()];case 1:return t.sent(),this.removeAppMetadata(),this.getKeys().forEach((function(t){!e.browserStorage.containsKey(t)&&!e.temporaryCacheStorage.containsKey(t)||-1===t.indexOf(v.CACHE_PREFIX)&&-1===t.indexOf(e.clientId)||e.removeItem(t)})),this.internalStorage.clear(),[2]}}))}))},n.prototype.setItemCookie=function(e,t,r){var n=encodeURIComponent(e)+"="+encodeURIComponent(t)+";path=/;";r&&(n+="expires="+this.getCookieExpirationTime(r)+";"),this.cacheConfig.secureCookies&&(n+="Secure;"),document.cookie=n},n.prototype.getItemCookie=function(e){for(var t=encodeURIComponent(e)+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "===o.charAt(0);)o=o.substring(1);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}return""},n.prototype.clearMsalCookies=function(){var e=this,t=v.CACHE_PREFIX+"."+this.clientId;document.cookie.split(";").forEach((function(r){for(;" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(t)){var n=r.split("=")[0];e.clearItemCookie(n)}}))},n.prototype.clearItemCookie=function(e){this.setItemCookie(e,"",-1)},n.prototype.getCookieExpirationTime=function(e){var t=new Date;return new Date(t.getTime()+e*this.COOKIE_LIFE_MULTIPLIER).toUTCString()},n.prototype.getCache=function(){return this.browserStorage},n.prototype.setCache=function(){},n.prototype.generateCacheKey=function(e){return this.validateAndParseJson(e)?JSON.stringify(e):re.startsWith(e,v.CACHE_PREFIX)||re.startsWith(e,g.ADAL_ID_TOKEN)?e:v.CACHE_PREFIX+"."+this.clientId+"."+e},n.prototype.generateAuthorityKey=function(e){var t=Fe.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(Qe.AUTHORITY+"."+t)},n.prototype.generateNonceKey=function(e){var t=Fe.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(Qe.NONCE_IDTOKEN+"."+t)},n.prototype.generateStateKey=function(e){var t=Fe.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(Qe.REQUEST_STATE+"."+t)},n.prototype.getCachedAuthority=function(e){var t=this.generateStateKey(e),r=this.getTemporaryCache(t);if(!r)return null;var n=this.generateAuthorityKey(r);return this.getTemporaryCache(n)},n.prototype.updateCacheEntries=function(e,t,r,n,o){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var i=this.generateStateKey(e);this.setTemporaryCache(i,e,!1);var a=this.generateNonceKey(e);this.setTemporaryCache(a,t,!1);var s=this.generateAuthorityKey(e);if(this.setTemporaryCache(s,r,!1),o){var l={credential:o.homeAccountId,type:he.HOME_ACCOUNT_ID};this.setTemporaryCache(Qe.CCS_CREDENTIAL,JSON.stringify(l),!0)}else re.isEmpty(n)||(l={credential:n,type:he.UPN},this.setTemporaryCache(Qe.CCS_CREDENTIAL,JSON.stringify(l),!0))},n.prototype.resetRequestCache=function(e){var t=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),re.isEmpty(e)||this.getKeys().forEach((function(r){-1!==r.indexOf(e)&&t.removeItem(r)})),e&&(this.removeItem(this.generateStateKey(e)),this.removeItem(this.generateNonceKey(e)),this.removeItem(this.generateAuthorityKey(e))),this.removeItem(this.generateCacheKey(Qe.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(Qe.ORIGIN_URI)),this.removeItem(this.generateCacheKey(Qe.URL_HASH)),this.removeItem(this.generateCacheKey(Qe.CORRELATION_ID)),this.removeItem(this.generateCacheKey(Qe.CCS_CREDENTIAL)),this.setInteractionInProgress(!1)},n.prototype.cleanRequestByState=function(e){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),e){var t=this.generateStateKey(e),r=this.temporaryCacheStorage.getItem(t);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+r),this.resetRequestCache(r||"")}this.clearMsalCookies()},n.prototype.cleanRequestByInteractionType=function(e){var t=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach((function(r){if(-1!==r.indexOf(Qe.REQUEST_STATE)){var n=t.temporaryCacheStorage.getItem(r);if(n){var o=Ht.extractBrowserRequestState(t.cryptoImpl,n);o&&o.interactionType===e&&(t.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+n),t.resetRequestCache(n))}}})),this.clearMsalCookies()},n.prototype.cacheCodeRequest=function(e,t){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var r=t.base64Encode(JSON.stringify(e));this.setTemporaryCache(Qe.REQUEST_PARAMS,r,!0)},n.prototype.getCachedRequest=function(e,t){this.logger.trace("BrowserCacheManager.getCachedRequest called");var r=this.getTemporaryCache(Qe.REQUEST_PARAMS,!0);if(!r)throw Tt.createNoTokenRequestCacheError();var n=this.validateAndParseJson(t.base64Decode(r));if(!n)throw Tt.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(Qe.REQUEST_PARAMS)),re.isEmpty(n.authority)){var o=this.generateAuthorityKey(e),i=this.getTemporaryCache(o);if(!i)throw Tt.createNoCachedAuthorityError();n.authority=i}return n},n.prototype.isInteractionInProgress=function(e){var t=this.getInteractionInProgress();return e?t===this.clientId:!!t},n.prototype.getInteractionInProgress=function(){var e=v.CACHE_PREFIX+"."+Qe.INTERACTION_STATUS_KEY;return this.getTemporaryCache(e,!1)},n.prototype.setInteractionInProgress=function(e){var t=this.getInteractionInProgress(),r=v.CACHE_PREFIX+"."+Qe.INTERACTION_STATUS_KEY;e&&!t?this.setTemporaryCache(r,this.clientId,!1):e||t!==this.clientId||this.removeItem(r)},n.prototype.getLegacyLoginHint=function(){var e=this.getTemporaryCache(g.ADAL_ID_TOKEN);e&&(this.browserStorage.removeItem(g.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var t=this.getTemporaryCache(g.ID_TOKEN,!0);t&&(this.removeItem(this.generateCacheKey(g.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var r=t||e;if(r){var n=new fe(r,this.cryptoImpl);if(n.claims&&n.claims.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),n.claims.preferred_username;if(n.claims&&n.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),n.claims.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null},n}(ge),zt=function(){function e(){}return e.prototype.sendGetRequestAsync=function(e,t){return o(this,void 0,void 0,(function(){var r,n,o;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,fetch(e,{method:Ye.GET,headers:this.getFetchHeaders(t)})];case 1:return r=i.sent(),[3,3];case 2:throw n=i.sent(),window.navigator.onLine?Tt.createGetRequestFailedError(n,e):Tt.createNoNetworkConnectivityError();case 3:return i.trys.push([3,5,,6]),o={headers:this.getHeaderDict(r.headers)},[4,r.json()];case 4:return[2,(o.body=i.sent(),o.status=r.status,o)];case 5:throw i.sent(),Tt.createFailedToParseNetworkResponseError(e);case 6:return[2]}}))}))},e.prototype.sendPostRequestAsync=function(e,t){return o(this,void 0,void 0,(function(){var r,n,o,a;return i(this,(function(i){switch(i.label){case 0:r=t&&t.body||"",i.label=1;case 1:return i.trys.push([1,3,,4]),[4,fetch(e,{method:Ye.POST,headers:this.getFetchHeaders(t),body:r})];case 2:return n=i.sent(),[3,4];case 3:throw o=i.sent(),window.navigator.onLine?Tt.createPostRequestFailedError(o,e):Tt.createNoNetworkConnectivityError();case 4:return i.trys.push([4,6,,7]),a={headers:this.getHeaderDict(n.headers)},[4,n.json()];case 5:return[2,(a.body=i.sent(),a.status=n.status,a)];case 6:throw i.sent(),Tt.createFailedToParseNetworkResponseError(e);case 7:return[2]}}))}))},e.prototype.getFetchHeaders=function(e){var t=new Headers;if(!e||!e.headers)return t;var r=e.headers;return Object.keys(r).forEach((function(e){t.append(e,r[e])})),t},e.prototype.getHeaderDict=function(e){var t={};return e.forEach((function(e,r){t[r]=e})),t},e}(),qt=function(){function e(){}return e.prototype.sendGetRequestAsync=function(e,t){return o(this,void 0,void 0,(function(){return i(this,(function(r){return[2,this.sendRequestAsync(e,Ye.GET,t)]}))}))},e.prototype.sendPostRequestAsync=function(e,t){return o(this,void 0,void 0,(function(){return i(this,(function(r){return[2,this.sendRequestAsync(e,Ye.POST,t)]}))}))},e.prototype.sendRequestAsync=function(e,t,r){var n=this;return new Promise((function(o,i){var a=new XMLHttpRequest;if(a.open(t,e,!0),n.setXhrHeaders(a,r),a.onload=function(){(a.status<200||a.status>=300)&&(t===Ye.POST?i(Tt.createPostRequestFailedError("Failed with status "+a.status,e)):i(Tt.createGetRequestFailedError("Failed with status "+a.status,e)));try{var r=JSON.parse(a.responseText),s={headers:n.getHeaderDict(a),body:r,status:a.status};o(s)}catch(t){i(Tt.createFailedToParseNetworkResponseError(e))}},a.onerror=function(){window.navigator.onLine?t===Ye.POST?i(Tt.createPostRequestFailedError("Failed with status "+a.status,e)):i(Tt.createGetRequestFailedError("Failed with status "+a.status,e)):i(Tt.createNoNetworkConnectivityError())},t===Ye.POST&&r&&r.body)a.send(r.body);else{if(t!==Ye.GET)throw Tt.createHttpMethodNotImplementedError(t);a.send()}}))},e.prototype.setXhrHeaders=function(e,t){if(t&&t.headers){var r=t.headers;Object.keys(r).forEach((function(t){e.setRequestHeader(t,r[t])}))}},e.prototype.getHeaderDict=function(e){var t=e.getAllResponseHeaders().trim().split(/[\r\n]+/),r={};return t.forEach((function(e){var t=e.split(": "),n=t.shift(),o=t.join(": ");n&&o&&(r[n]=o)})),r},e}(),Kt=function(){function t(){}return t.clearHash=function(e){e.location.hash=v.EMPTY_STRING,"function"==typeof e.history.replaceState&&e.history.replaceState(null,v.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},t.replaceHash=function(e){var t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):""},t.isInIframe=function(){return window.parent!==window},t.isInPopup=function(){return"undefined"!=typeof window&&!!window.opener&&window.opener!==window&&"string"==typeof window.name&&0===window.name.indexOf(ft+".")},t.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},t.getHomepage=function(){var e=new je(window.location.href).getUrlComponents();return e.Protocol+"//"+e.HostNameAndPort+"/"},t.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new zt:new qt},t.blockReloadInHiddenIframes=function(){if(je.hashContainsKnownProperties(window.location.hash)&&t.isInIframe())throw Tt.createBlockReloadInHiddenIframeError()},t.blockRedirectInIframe=function(r,n){var o=t.isInIframe();if(r===e.InteractionType.Redirect&&o&&!n)throw Tt.createRedirectInIframeError(o)},t.blockAcquireTokenInPopups=function(){if(t.isInPopup())throw Tt.createBlockAcquireTokenInPopupsError()},t.blockNonBrowserEnvironment=function(e){if(!e)throw Tt.createNonBrowserEnvironmentError()},t.detectIEOrEdge=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),r=e.indexOf("Trident/"),n=e.indexOf("Edge/");return t>0||r>0||n>0},t}(),Vt=function(){function e(){}return e.prototype.navigateInternal=function(t,r){return e.defaultNavigateWindow(t,r)},e.prototype.navigateExternal=function(t,r){return e.defaultNavigateWindow(t,r)},e.defaultNavigateWindow=function(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise((function(e){setTimeout((function(){e(!0)}),t.timeout)}))},e}(),Gt=6e3,Wt="@azure/msal-browser",$t="2.19.0";e.EventType=void 0,(_t=e.EventType||(e.EventType={})).ACCOUNT_ADDED="msal:accountAdded",_t.ACCOUNT_REMOVED="msal:accountRemoved",_t.LOGIN_START="msal:loginStart",_t.LOGIN_SUCCESS="msal:loginSuccess",_t.LOGIN_FAILURE="msal:loginFailure",_t.ACQUIRE_TOKEN_START="msal:acquireTokenStart",_t.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",_t.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",_t.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",_t.SSO_SILENT_START="msal:ssoSilentStart",_t.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",_t.SSO_SILENT_FAILURE="msal:ssoSilentFailure",_t.HANDLE_REDIRECT_START="msal:handleRedirectStart",_t.HANDLE_REDIRECT_END="msal:handleRedirectEnd",_t.POPUP_OPENED="msal:popupOpened",_t.LOGOUT_START="msal:logoutStart",_t.LOGOUT_SUCCESS="msal:logoutSuccess",_t.LOGOUT_FAILURE="msal:logoutFailure",_t.LOGOUT_END="msal:logoutEnd";var Jt=function(){function t(e,t){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=t,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return t.prototype.addEventCallback=function(e){if("undefined"!=typeof window){var t=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(t,e),this.logger.verbose("Event callback registered with id: "+t),t}return null},t.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},t.prototype.enableAccountStorageEvents=function(){"undefined"!=typeof window&&(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},t.prototype.disableAccountStorageEvents=function(){"undefined"!=typeof window&&(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},t.prototype.emitEvent=function(e,t,r,n){var o=this;if("undefined"!=typeof window){var i={eventType:e,interactionType:t||null,payload:r||null,error:n||null,timestamp:Date.now()};this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach((function(t,r){o.logger.verbose("Emitting event to callback "+r+": "+e),t.apply(null,[i])}))}},t.prototype.handleAccountCacheChange=function(t){try{var r=t.newValue||t.oldValue;if(!r)return;var n=JSON.parse(r);if("object"!=typeof n||!pe.isAccountEntity(n))return;var o=ge.toObject(new pe,n).getAccountInfo();!t.oldValue&&t.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(e.EventType.ACCOUNT_ADDED,void 0,o)):!t.newValue&&t.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(e.EventType.ACCOUNT_REMOVED,void 0,o))}catch(t){return}},t}(),Yt=function(e){function t(t,r,n,o,i,a,s){var l=e.call(this,t,r,n,o,i,s)||this;return l.navigationClient=a,l}return r(t,e),t.prototype.initializeAuthorizationCodeRequest=function(e){return o(this,void 0,void 0,(function(){var t,r;return i(this,(function(o){switch(o.label){case 0:return this.logger.verbose("initializeAuthorizationRequest called",e.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return t=o.sent(),r=n(n({},e),{redirectUri:e.redirectUri,code:"",codeVerifier:t.verifier}),e.codeChallenge=t.challenge,e.codeChallengeMethod=v.S256_CODE_CHALLENGE_METHOD,[2,r]}}))}))},t.prototype.initializeLogoutRequest=function(e){if(this.logger.verbose("initializeLogoutRequest called",null==e?void 0:e.correlationId),this.browserStorage.isInteractionInProgress())throw Tt.createInteractionInProgressError();var t=n({correlationId:this.browserCrypto.createNewGuid()},e);return e&&null===e.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",t.correlationId):e&&e.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",t.correlationId),t.postLogoutRedirectUri=je.getAbsoluteUrl(e.postLogoutRedirectUri,Kt.getCurrentUri())):null===this.config.auth.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",t.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",t.correlationId),t.postLogoutRedirectUri=je.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Kt.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",t.correlationId),t.postLogoutRedirectUri=je.getAbsoluteUrl(Kt.getCurrentUri(),Kt.getCurrentUri())),t},t.prototype.createAuthCodeClient=function(e,t){return o(this,void 0,void 0,(function(){var r;return i(this,(function(n){switch(n.label){case 0:return[4,this.getClientConfiguration(e,t)];case 1:return r=n.sent(),[2,new Ve(r)]}}))}))},t.prototype.getClientConfiguration=function(e,t){return o(this,void 0,void 0,(function(){var r;return i(this,(function(n){switch(n.label){case 0:return this.logger.verbose("getClientConfiguration called"),[4,this.getDiscoveredAuthority(t)];case 1:return r=n.sent(),[2,{authOptions:{clientId:this.config.auth.clientId,authority:r,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:this.config.system.loggerOptions.loggerCallback,piiLoggingEnabled:this.config.system.loggerOptions.piiLoggingEnabled,logLevel:this.config.system.loggerOptions.logLevel,correlationId:this.correlationId},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:e,libraryInfo:{sku:mt,version:$t,cpu:"",os:""}}]}}))}))},t.prototype.validateAndExtractStateFromHash=function(e,t,r){this.logger.verbose("validateAndExtractStateFromHash called",r);var n=je.getDeserializedHash(e);if(!n.state)throw Tt.createHashDoesNotContainStateError();var o=Ht.extractBrowserRequestState(this.browserCrypto,n.state);if(!o)throw Tt.createUnableToParseStateError();if(o.interactionType!==t)throw Tt.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",r),n.state},t.prototype.getDiscoveredAuthority=function(e){return o(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:return this.logger.verbose("getDiscoveredAuthority called"),t={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},e?(this.logger.verbose("Creating discovered authority with request authority"),[4,it.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,t)]):[3,2];case 1:case 3:return[2,r.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,it.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,t)]}}))}))},t.prototype.preflightInteractiveRequest=function(e,t){if(this.logger.verbose("preflightInteractiveRequest called, validating app environment",null==e?void 0:e.correlationId),Kt.blockReloadInHiddenIframes(),this.browserStorage.isInteractionInProgress(!1))throw Tt.createInteractionInProgressError();return this.initializeAuthorizationRequest(e,t)},t.prototype.initializeAuthorizationRequest=function(e,t){this.logger.verbose("initializeAuthorizationRequest called");var r=this.getRedirectUri(e.redirectUri),o={interactionType:t},i=Fe.setRequestState(this.browserCrypto,e&&e.state||"",o),a=n(n({},this.initializeBaseRequest(e)),{redirectUri:r,state:i,nonce:e.nonce||this.browserCrypto.createNewGuid(),responseMode:S.FRAGMENT}),s=e.account||this.browserStorage.getActiveAccount();if(s&&(this.logger.verbose("Setting validated request account"),this.logger.verbosePii("Setting validated request account: "+s),a.account=s),re.isEmpty(a.loginHint)&&!s){var l=this.browserStorage.getLegacyLoginHint();l&&(a.loginHint=l)}return this.browserStorage.updateCacheEntries(a.state,a.nonce,a.authority,a.loginHint||"",a.account||null),a},t}(function(){function t(e,t,r,n,o,i){this.config=e,this.browserStorage=t,this.browserCrypto=r,this.networkClient=this.config.system.networkClient,this.eventHandler=o,this.correlationId=i||this.browserCrypto.createNewGuid(),this.logger=n.clone(mt,$t,this.correlationId)}return t.prototype.clearCacheOnLogout=function(e){return o(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:if(!e)return[3,5];pe.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(pe.generateAccountCacheKey(e))];case 2:return t.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return t.sent(),this.logger.error("Account provided in logout request was not found. Local cache unchanged."),[3,4];case 4:return[3,9];case 5:return t.trys.push([5,8,,9]),[4,this.browserStorage.clear()];case 6:return t.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return t.sent(),this.logger.verbose("No account provided in logout request, clearing all cache items."),[3,9];case 8:return t.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}}))}))},t.prototype.initializeBaseRequest=function(t){this.logger.verbose("Initializing BaseAuthRequest");var r=t.authority||this.config.auth.authority,o=s(t&&t.scopes||[]);if(t.authenticationScheme){if(t.authenticationScheme===e.AuthenticationScheme.SSH){if(!t.sshJwk)throw le.createMissingSshJwkError();if(!t.sshKid)throw le.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+t.authenticationScheme+'" as configured in Auth request')}else t.authenticationScheme=e.AuthenticationScheme.BEARER,this.logger.verbose('Authentication Scheme wasn\'t explicitly set in request, defaulting to "Bearer" request');return n(n({},t),{correlationId:this.correlationId,authority:r,scopes:o})},t.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var t=e||this.config.auth.redirectUri||Kt.getCurrentUri();return je.getAbsoluteUrl(t,Kt.getCurrentUri())},t.prototype.initializeServerTelemetryManager=function(e,t){this.logger.verbose("initializeServerTelemetryManager called");var r={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:t||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new ut(r,this.browserStorage)},t}()),Qt=function(){function t(e,t){this.browserStorage=e,this.logger=t,this.unloadWindow=this.unloadWindow.bind(this)}return t.prototype.openPopup=function(e,r){try{var n=void 0;if(r.popup?(n=r.popup,this.logger.verbosePii("Navigating popup window to: "+e),n.location.assign(e)):void 0===r.popup&&(this.logger.verbosePii("Opening popup window to: "+e),n=t.openSizedPopup(e,r.popupName,r.popupWindowAttributes,this.logger)),!n)throw Tt.createEmptyWindowCreatedError();return n.focus&&n.focus(),this.currentWindow=n,window.addEventListener("beforeunload",this.unloadWindow),n}catch(e){throw this.logger.error("error opening popup "+e.message),this.browserStorage.setInteractionInProgress(!1),Tt.createPopupWindowError(e.toString())}},t.openSizedPopup=function(e,t,r,n){var o,i,a,s,l=window.screenLeft?window.screenLeft:window.screenX,c=window.screenTop?window.screenTop:window.screenY,u=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,d=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,h=null===(o=r.popupSize)||void 0===o?void 0:o.width,p=null===(i=r.popupSize)||void 0===i?void 0:i.height,f=null===(a=r.popupPosition)||void 0===a?void 0:a.top,g=null===(s=r.popupPosition)||void 0===s?void 0:s.left;return(!h||h<0||h>u)&&(n.verbose("Default popup window width used. Window width not configured or invalid."),h=ht),(!p||p<0||p>d)&&(n.verbose("Default popup window height used. Window height not configured or invalid."),p=pt),(!f||f<0||f>d)&&(n.verbose("Default popup window top position used. Window top not configured or invalid."),f=Math.max(0,d/2-pt/2+c)),(!g||g<0||g>u)&&(n.verbose("Default popup window left position used. Window left not configured or invalid."),g=Math.max(0,u/2-ht/2+l)),window.open(e,t,"width="+h+", height="+p+", top="+f+", left="+g+", scrollbars=yes")},t.prototype.unloadWindow=function(t){this.browserStorage.cleanRequestByInteractionType(e.InteractionType.Popup),this.currentWindow&&this.currentWindow.close(),t.preventDefault()},t.prototype.cleanPopup=function(e){e&&e.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},t.prototype.monitorPopupForSameOrigin=function(e){var t=this;return new Promise((function(r,n){var o=setInterval((function(){if(e.closed)return t.cleanPopup(),clearInterval(o),void n(Tt.createUserCancelledError());var i=v.EMPTY_STRING;try{i=e.location.href}catch(e){}re.isEmpty(i)||"about:blank"===i||(clearInterval(o),r())}),gt)}))},t.generatePopupName=function(e,t){return ft+"."+e+"."+t.scopes.join("-")+"."+t.authority+"."+t.correlationId},t.generateLogoutPopupName=function(e,t){var r=t.account&&t.account.homeAccountId;return ft+"."+e+"."+r+"."+t.correlationId},t}(),Xt=function(){function e(e,t,r,n){this.authModule=e,this.browserStorage=t,this.authCodeRequest=r,this.browserRequestLogger=n}return e.prototype.handleCodeResponse=function(e,t,r,n){return o(this,void 0,void 0,(function(){var o,a,s,l,c,u,d;return i(this,(function(i){switch(i.label){case 0:if(this.browserRequestLogger.verbose("InteractionHandler.handleCodeResponse called"),re.isEmpty(e))throw Tt.createEmptyHashError(e);if(o=this.browserStorage.generateStateKey(t),!(a=this.browserStorage.getTemporaryCache(o)))throw te.createStateNotFoundError("Cached State");return s=this.authModule.handleFragmentResponse(e,a),l=this.browserStorage.generateNonceKey(a),c=this.browserStorage.getTemporaryCache(l),this.authCodeRequest.code=s.code,s.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(s.cloud_instance_host_name,r,n)]:[3,2];case 1:i.sent(),i.label=2;case 2:return s.nonce=c||void 0,s.state=a,s.client_info?this.authCodeRequest.clientInfo=s.client_info:(u=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=u),[4,this.authModule.acquireToken(this.authCodeRequest,s)];case 3:return d=i.sent(),this.browserStorage.cleanRequestByState(t),[2,d]}}))}))},e.prototype.updateTokenEndpointAuthority=function(e,t,r){return o(this,void 0,void 0,(function(){var n,o;return i(this,(function(i){switch(i.label){case 0:return n="https://"+e+"/"+t.tenant+"/",[4,it.createDiscoveredInstance(n,r,this.browserStorage,t.options)];case 1:return o=i.sent(),this.authModule.updateAuthority(o),[2]}}))}))},e.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(Qe.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch(t){this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+e)}return null},e}(),Zt=function(e){function t(t,r,n,o){var i=e.call(this,t,r,n,o)||this;return i.popupUtils=new Qt(r,o),i}return r(t,e),t.prototype.initiateAuthRequest=function(e,t){if(re.isEmpty(e))throw this.browserRequestLogger.error("Navigate url is empty"),Tt.createEmptyNavigationUriError();return this.browserStorage.setInteractionInProgress(!0),this.browserRequestLogger.infoPii("Navigate to: "+e),this.popupUtils.openPopup(e,t)},t.prototype.monitorPopupForHash=function(e){var t=this;return this.popupUtils.monitorPopupForSameOrigin(e).then((function(){var r=e.location.hash;if(Kt.clearHash(e),t.popupUtils.cleanPopup(e),!r)throw Tt.createEmptyHashError(e.location.href);if(je.hashContainsKnownProperties(r))return r;throw Tt.createHashDoesNotContainKnownPropertiesError()}))},t}(Xt),er=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.acquireToken=function(t){try{var r=this.preflightInteractiveRequest(t,e.InteractionType.Popup),n=Qt.generatePopupName(this.config.auth.clientId,r),o=t.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(r,n,o);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var i=Qt.openSizedPopup("about:blank",n,o,this.logger);return this.acquireTokenPopupAsync(r,n,o,i)}catch(e){return Promise.reject(e)}},n.prototype.logout=function(e){try{this.logger.verbose("logoutPopup called");var t=this.initializeLogoutRequest(e),r=Qt.generateLogoutPopupName(this.config.auth.clientId,t),n=e&&e.authority,o=e&&e.mainWindowRedirectUri,i=(null==e?void 0:e.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(t,r,i,n,void 0,o);this.logger.verbose("asyncPopup set to false, opening popup");var a=Qt.openSizedPopup("about:blank",r,i,this.logger);return this.logoutPopupAsync(t,r,i,n,a,o)}catch(e){return Promise.reject(e)}},n.prototype.acquireTokenPopupAsync=function(t,r,n,a){return o(this,void 0,void 0,(function(){var o,s,l,c,u,d,h,p,f,g;return i(this,(function(i){switch(i.label){case 0:this.logger.verbose("acquireTokenPopupAsync called"),o=this.initializeServerTelemetryManager(e.ApiId.acquireTokenPopup),i.label=1;case 1:return i.trys.push([1,7,,8]),[4,this.initializeAuthorizationCodeRequest(t)];case 2:return s=i.sent(),[4,this.createAuthCodeClient(o,t.authority)];case 3:return l=i.sent(),this.logger.verbose("Auth code client created"),[4,l.getAuthCodeUrl(t)];case 4:return c=i.sent(),u=new Zt(l,this.browserStorage,s,this.logger),d={popup:a,popupName:r,popupWindowAttributes:n},h=u.initiateAuthRequest(c,d),this.eventHandler.emitEvent(e.EventType.POPUP_OPENED,e.InteractionType.Popup,{popupWindow:h},null),[4,u.monitorPopupForHash(h)];case 5:return p=i.sent(),f=this.validateAndExtractStateFromHash(p,e.InteractionType.Popup,t.correlationId),Ce.removeThrottle(this.browserStorage,this.config.auth.clientId,s),[4,u.handleCodeResponse(p,f,l.authority,this.networkClient)];case 6:return[2,i.sent()];case 7:throw g=i.sent(),a&&a.close(),g instanceof X&&g.setCorrelationId(this.correlationId),o.cacheFailedRequest(g),this.browserStorage.cleanRequestByState(t.state),g;case 8:return[2]}}))}))},n.prototype.logoutPopupAsync=function(t,r,n,a,s,l){return o(this,void 0,void 0,(function(){var o,c,u,d,h,p,f,g,m;return i(this,(function(i){switch(i.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(e.EventType.LOGOUT_START,e.InteractionType.Popup,t),o=this.initializeServerTelemetryManager(e.ApiId.logoutPopup),i.label=1;case 1:return i.trys.push([1,8,,9]),[4,this.clearCacheOnLogout(t.account)];case 2:return i.sent(),this.browserStorage.setInteractionInProgress(!0),[4,this.createAuthCodeClient(o,a)];case 3:c=i.sent(),this.logger.verbose("Auth code client created"),u=c.getLogoutUri(t),this.eventHandler.emitEvent(e.EventType.LOGOUT_SUCCESS,e.InteractionType.Popup,t),d=new Qt(this.browserStorage,this.logger),h=d.openPopup(u,{popupName:r,popupWindowAttributes:n,popup:s}),this.eventHandler.emitEvent(e.EventType.POPUP_OPENED,e.InteractionType.Popup,{popupWindow:h},null),i.label=4;case 4:return i.trys.push([4,6,,7]),[4,d.monitorPopupForSameOrigin(h)];case 5:return i.sent(),this.logger.verbose("Popup successfully redirected to postLogoutRedirectUri"),[3,7];case 6:return p=i.sent(),this.logger.verbose("Error occurred while monitoring popup for same origin. Session on server may remain active. Error: "+p),[3,7];case 7:return d.cleanPopup(h),l?(f={apiId:e.ApiId.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},g=je.getAbsoluteUrl(l,Kt.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecing main window to: "+g),this.navigationClient.navigateInternal(g,f)):this.logger.verbose("No main window navigation requested"),[3,9];case 8:throw m=i.sent(),s&&s.close(),m instanceof X&&m.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(e.EventType.LOGOUT_FAILURE,e.InteractionType.Popup,null,m),this.eventHandler.emitEvent(e.EventType.LOGOUT_END,e.InteractionType.Popup),o.cacheFailedRequest(m),m;case 9:return this.eventHandler.emitEvent(e.EventType.LOGOUT_END,e.InteractionType.Popup),[2]}}))}))},n}(Yt),tr=function(t){function n(e,r,n,o,i){var a=t.call(this,e,r,n,o)||this;return a.browserCrypto=i,a}return r(n,t),n.prototype.initiateAuthRequest=function(t,r){return o(this,void 0,void 0,(function(){var n;return i(this,(function(o){switch(o.label){case 0:return this.browserRequestLogger.verbose("RedirectHandler.initiateAuthRequest called"),re.isEmpty(t)?[3,7]:(r.redirectStartPage&&(this.browserRequestLogger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(Qe.ORIGIN_URI,r.redirectStartPage,!0)),this.browserStorage.setInteractionInProgress(!0),this.browserStorage.setTemporaryCache(Qe.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.browserRequestLogger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+t),n={apiId:e.ApiId.acquireTokenRedirect,timeout:r.redirectTimeout,noHistory:!1},"function"!=typeof r.onRedirectNavigate?[3,4]:(this.browserRequestLogger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),!1===r.onRedirectNavigate(t)?[3,2]:(this.browserRequestLogger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,r.navigationClient.navigateExternal(t,n)])));case 1:case 5:return o.sent(),[2];case 2:return this.browserRequestLogger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.browserRequestLogger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,r.navigationClient.navigateExternal(t,n)];case 6:return[3,8];case 7:throw this.browserRequestLogger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),Tt.createEmptyNavigationUriError();case 8:return[2]}}))}))},n.prototype.handleCodeResponse=function(e,t,r,n,a){return o(this,void 0,void 0,(function(){var o,s,l,c,u,d,h;return i(this,(function(i){switch(i.label){case 0:if(this.browserRequestLogger.verbose("RedirectHandler.handleCodeResponse called"),re.isEmpty(e))throw Tt.createEmptyHashError(e);if(this.browserStorage.setInteractionInProgress(!1),o=this.browserStorage.generateStateKey(t),!(s=this.browserStorage.getTemporaryCache(o)))throw te.createStateNotFoundError("Cached State");return l=this.authModule.handleFragmentResponse(e,s),c=this.browserStorage.generateNonceKey(s),u=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=l.code,l.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(l.cloud_instance_host_name,r,n)]:[3,2];case 1:i.sent(),i.label=2;case 2:return l.nonce=u||void 0,l.state=s,l.client_info?this.authCodeRequest.clientInfo=l.client_info:(d=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=d),a&&Ce.removeThrottle(this.browserStorage,a,this.authCodeRequest),[4,this.authModule.acquireToken(this.authCodeRequest,l)];case 3:return h=i.sent(),this.browserStorage.cleanRequestByState(t),[2,h]}}))}))},n}(Xt),rr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.acquireToken=function(t){return o(this,void 0,void 0,(function(){var r,n,o,a,s,l,c,u;return i(this,(function(i){switch(i.label){case 0:r=this.preflightInteractiveRequest(t,e.InteractionType.Redirect),n=this.initializeServerTelemetryManager(e.ApiId.acquireTokenRedirect),i.label=1;case 1:return i.trys.push([1,6,,7]),[4,this.initializeAuthorizationCodeRequest(r)];case 2:return o=i.sent(),[4,this.createAuthCodeClient(n,r.authority)];case 3:return a=i.sent(),this.logger.verbose("Auth code client created"),s=new tr(a,this.browserStorage,o,this.logger,this.browserCrypto),[4,a.getAuthCodeUrl(r)];case 4:return l=i.sent(),c=this.getRedirectStartPage(t.redirectStartPage),this.logger.verbosePii("Redirect start page: "+c),[4,s.initiateAuthRequest(l,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:c,onRedirectNavigate:t.onRedirectNavigate})];case 5:return[2,i.sent()];case 6:throw(u=i.sent())instanceof X&&u.setCorrelationId(this.correlationId),n.cacheFailedRequest(u),this.browserStorage.cleanRequestByState(r.state),u;case 7:return[2]}}))}))},n.prototype.handleRedirectPromise=function(t){return o(this,void 0,void 0,(function(){var r,n,o,a,s,l,c,u,d,h,p;return i(this,(function(i){switch(i.label){case 0:r=this.initializeServerTelemetryManager(e.ApiId.handleRedirectPromise),i.label=1;case 1:if(i.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(!(n=this.getRedirectResponseHash(t||window.location.hash)))return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(e.InteractionType.Redirect),[2,null];o=void 0;try{o=this.validateAndExtractStateFromHash(n,e.InteractionType.Redirect),Kt.clearHash(window),this.logger.verbose("State extracted from hash")}catch(t){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+t),this.browserStorage.cleanRequestByInteractionType(e.InteractionType.Redirect),[2,null]}return a=this.browserStorage.getTemporaryCache(Qe.ORIGIN_URI,!0)||"",s=je.removeHashFromUrl(a),l=je.removeHashFromUrl(window.location.href),s===l&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(n,o,r)]):[3,3];case 2:return c=i.sent(),a.indexOf("#")>-1&&Kt.replaceHash(a),[2,c];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(n,o,r)]);case 4:return Kt.isInIframe()&&!this.config.system.allowRedirectInIframe?[3,9]:(this.browserStorage.setTemporaryCache(Qe.URL_HASH,n,!0),u={apiId:e.ApiId.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},d=!0,a&&"null"!==a?[3,6]:(h=Kt.getHomepage(),this.browserStorage.setTemporaryCache(Qe.ORIGIN_URI,h,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(h,u)]));case 5:return d=i.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+a),[4,this.navigationClient.navigateInternal(a,u)];case 7:d=i.sent(),i.label=8;case 8:if(!d)return[2,this.handleHash(n,o,r)];i.label=9;case 9:return[2,null];case 10:throw(p=i.sent())instanceof X&&p.setCorrelationId(this.correlationId),r.cacheFailedRequest(p),this.browserStorage.cleanRequestByInteractionType(e.InteractionType.Redirect),p;case 11:return[2]}}))}))},n.prototype.getRedirectResponseHash=function(e){this.logger.verbose("getRedirectResponseHash called");var t=je.hashContainsKnownProperties(e),r=this.browserStorage.getTemporaryCache(Qe.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Qe.URL_HASH)),t?(this.logger.verbose("Hash contains known properties, returning response hash"),e):(this.logger.verbose("Hash does not contain known properties, returning cached hash"),r)},n.prototype.handleHash=function(e,t,r){return o(this,void 0,void 0,(function(){var n,o,a;return i(this,(function(i){switch(i.label){case 0:if(n=this.browserStorage.getCachedRequest(t,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),!(o=this.browserStorage.getCachedAuthority(t)))throw Tt.createNoCachedAuthorityError();return[4,this.createAuthCodeClient(r,o)];case 1:return a=i.sent(),this.logger.verbose("Auth code client created"),[4,new tr(a,this.browserStorage,n,this.logger,this.browserCrypto).handleCodeResponse(e,t,a.authority,this.networkClient,this.config.auth.clientId)];case 2:return[2,i.sent()]}}))}))},n.prototype.logout=function(t){return o(this,void 0,void 0,(function(){var r,n,o,a,s,l;return i(this,(function(i){switch(i.label){case 0:this.logger.verbose("logoutRedirect called"),r=this.initializeLogoutRequest(t),n=this.initializeServerTelemetryManager(e.ApiId.logout),i.label=1;case 1:return i.trys.push([1,10,,11]),this.eventHandler.emitEvent(e.EventType.LOGOUT_START,e.InteractionType.Redirect,t),[4,this.clearCacheOnLogout(r.account)];case 2:return i.sent(),o={apiId:e.ApiId.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},[4,this.createAuthCodeClient(n,t&&t.authority)];case 3:return a=i.sent(),this.logger.verbose("Auth code client created"),s=a.getLogoutUri(r),this.eventHandler.emitEvent(e.EventType.LOGOUT_SUCCESS,e.InteractionType.Redirect,r),t&&"function"==typeof t.onRedirectNavigate?!1===t.onRedirectNavigate(s)?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),[4,this.navigationClient.navigateExternal(s,o)]):[3,7];case 4:return i.sent(),[2];case 5:this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),i.label=6;case 6:return[3,9];case 7:return[4,this.navigationClient.navigateExternal(s,o)];case 8:return i.sent(),[2];case 9:return[3,11];case 10:throw(l=i.sent())instanceof X&&l.setCorrelationId(this.correlationId),n.cacheFailedRequest(l),this.eventHandler.emitEvent(e.EventType.LOGOUT_FAILURE,e.InteractionType.Redirect,null,l),this.eventHandler.emitEvent(e.EventType.LOGOUT_END,e.InteractionType.Redirect),l;case 11:return this.eventHandler.emitEvent(e.EventType.LOGOUT_END,e.InteractionType.Redirect),[2]}}))}))},n.prototype.getRedirectStartPage=function(e){var t=e||window.location.href;return je.getAbsoluteUrl(t,Kt.getCurrentUri())},n}(Yt),nr=function(e){function t(t,r,n,o,i){var a=e.call(this,t,r,n,o)||this;return a.navigateFrameWait=i,a}return r(t,e),t.prototype.initiateAuthRequest=function(e){return o(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:if(re.isEmpty(e))throw this.browserRequestLogger.info("Navigate url is empty"),Tt.createEmptyNavigationUriError();return this.navigateFrameWait?[4,this.loadFrame(e)]:[3,2];case 1:return t=r.sent(),[3,3];case 2:t=this.loadFrameSync(e),r.label=3;case 3:return[2,t]}}))}))},t.prototype.monitorIframeForHash=function(e,t){var r=this;return new Promise((function(n,o){t<Gt&&r.browserRequestLogger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+t+"ms) than the default (6000ms). This may result in timeouts.");var i=window.performance.now()+t,a=setInterval((function(){if(window.performance.now()>i)return r.removeHiddenIframe(e),clearInterval(a),void o(Tt.createMonitorIframeTimeoutError());var t=v.EMPTY_STRING,s=e.contentWindow;try{t=s?s.location.href:v.EMPTY_STRING}catch(e){}if(!re.isEmpty(t)){var l=s?s.location.hash:v.EMPTY_STRING;return je.hashContainsKnownProperties(l)?(r.removeHiddenIframe(e),clearInterval(a),void n(l)):void 0}}),gt)}))},t.prototype.loadFrame=function(e){var t=this;return new Promise((function(r,n){var o=t.createHiddenIframe();setTimeout((function(){o?(o.src=e,r(o)):n("Unable to load iframe")}),t.navigateFrameWait)}))},t.prototype.loadFrameSync=function(e){var t=this.createHiddenIframe();return t.src=e,t},t.prototype.createHiddenIframe=function(){var e=document.createElement("iframe");return e.style.visibility="hidden",e.style.position="absolute",e.style.width=e.style.height="0",e.style.border="0",e.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(e),e},t.prototype.removeHiddenIframe=function(e){document.body===e.parentNode&&document.body.removeChild(e)},t}(Xt),or=function(t){function a(e,r,n,o,i,a,s,l){var c=t.call(this,e,r,n,o,i,a,l)||this;return c.apiId=s,c}return r(a,t),a.prototype.acquireToken=function(t){return o(this,void 0,void 0,(function(){var r,o,a,s,l,c;return i(this,(function(i){switch(i.label){case 0:if(this.logger.verbose("acquireTokenByIframe called"),re.isEmpty(t.loginHint)&&re.isEmpty(t.sid)&&(!t.account||re.isEmpty(t.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),t.prompt&&t.prompt!==C.NONE)throw Tt.createSilentPromptValueError(t.prompt);r=this.initializeAuthorizationRequest(n(n({},t),{prompt:C.NONE}),e.InteractionType.Silent),o=this.initializeServerTelemetryManager(this.apiId),i.label=1;case 1:return i.trys.push([1,6,,7]),[4,this.initializeAuthorizationCodeRequest(r)];case 2:return a=i.sent(),[4,this.createAuthCodeClient(o,r.authority)];case 3:return s=i.sent(),this.logger.verbose("Auth code client created"),[4,s.getAuthCodeUrl(r)];case 4:return l=i.sent(),[4,this.silentTokenHelper(l,a,s,this.logger)];case 5:return[2,i.sent()];case 6:throw(c=i.sent())instanceof X&&c.setCorrelationId(this.correlationId),o.cacheFailedRequest(c),this.browserStorage.cleanRequestByState(r.state),c;case 7:return[2]}}))}))},a.prototype.logout=function(){return Promise.reject(Tt.createSilentLogoutUnsupportedError())},a.prototype.silentTokenHelper=function(t,r,n,a){return o(this,void 0,void 0,(function(){var o,s,l,c;return i(this,(function(i){switch(i.label){case 0:return[4,(o=new nr(n,this.browserStorage,r,a,this.config.system.navigateFrameWait)).initiateAuthRequest(t)];case 1:return s=i.sent(),[4,o.monitorIframeForHash(s,this.config.system.iframeHashTimeout)];case 2:return l=i.sent(),c=this.validateAndExtractStateFromHash(l,e.InteractionType.Silent,r.correlationId),[2,o.handleCodeResponse(l,c,n.authority,this.networkClient)]}}))}))},a}(Yt),ir=function(t){function a(){return null!==t&&t.apply(this,arguments)||this}return r(a,t),a.prototype.acquireToken=function(t){return o(this,void 0,void 0,(function(){var r,o,a,s=this;return i(this,(function(i){switch(i.label){case 0:return r=n(n({},t),this.initializeBaseRequest(t)),o=this.initializeServerTelemetryManager(e.ApiId.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(o,r.authority)];case 1:return a=i.sent(),this.logger.verbose("Refresh token client created"),[2,a.acquireTokenByRefreshToken(r).catch((function(e){throw e instanceof X&&e.setCorrelationId(s.correlationId),o.cacheFailedRequest(e),e}))]}}))}))},a.prototype.logout=function(){return Promise.reject(Tt.createSilentLogoutUnsupportedError())},a.prototype.createRefreshTokenClient=function(e,t){return o(this,void 0,void 0,(function(){var r;return i(this,(function(n){switch(n.label){case 0:return[4,this.getClientConfiguration(e,t)];case 1:return r=n.sent(),[2,new Ge(r)]}}))}))},a}(Yt),ar=function(){function e(e,t,r,n){this.isBrowserEnvironment="undefined"!=typeof window,this.config=e,this.storage=t,this.logger=r,this.cryptoObj=n}return e.prototype.loadExternalTokens=function(e,t,r){if(this.logger.info("TokenCache - loadExternalTokens called"),!t.id_token)throw Tt.createUnableToLoadTokenError("Please ensure server response includes id token.");if(e.account)this.loadIdToken(t.id_token,e.account.homeAccountId,e.account.environment,e.account.tenantId,r),this.loadAccessToken(e,t,e.account.homeAccountId,e.account.environment,e.account.tenantId,r);else{if(!e.authority)throw Tt.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");var n={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},o=new ot(e.authority,this.config.system.networkClient,this.storage,n);if(r.clientInfo)this.logger.trace("TokenCache - homeAccountId from options"),this.loadIdToken(t.id_token,r.clientInfo,o.hostnameAndPort,o.tenant,r),this.loadAccessToken(e,t,r.clientInfo,o.hostnameAndPort,o.tenant,r);else{if(!t.client_info)throw Tt.createUnableToLoadTokenError("Please provide clientInfo in the response or options.");this.logger.trace("TokenCache - homeAccountId from response"),this.loadIdToken(t.id_token,t.client_info,o.hostnameAndPort,o.tenant,r),this.loadAccessToken(e,t,t.client_info,o.hostnameAndPort,o.tenant,r)}}},e.prototype.loadIdToken=function(e,t,r,n,o){var i=Ae.createIdTokenEntity(t,r,e,this.config.auth.clientId,n),a=new fe(e,this.cryptoObj),s=o.clientInfo?pe.createAccount(o.clientInfo,t,a,void 0,void 0,void 0,void 0,r):pe.createGenericAccount(t,a,void 0,void 0,void 0,void 0,r);if(!this.isBrowserEnvironment)throw Tt.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");this.logger.verbose("TokenCache - loading id token"),this.storage.setAccount(s),this.storage.setIdTokenCredential(i)},e.prototype.loadAccessToken=function(e,t,r,n,o,i){if(t.access_token){if(!t.expires_in)throw Tt.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!i.extendedExpiresOn)throw Tt.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var a=new ce(e.scopes).printScopes(),s=t.expires_in,l=i.extendedExpiresOn,c=Pe.createAccessTokenEntity(r,n,t.access_token,this.config.auth.clientId,o,a,s,l,this.cryptoObj);if(!this.isBrowserEnvironment)throw Tt.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(c)}else this.logger.verbose("TokenCache - No access token provided for caching")},e}(),sr=function(){function t(t){var r,o,i,a,s,l,c,u,d,h,p,f;this.isBrowserEnvironment="undefined"!=typeof window,this.config=(r=t,o=this.isBrowserEnvironment,i=r.auth,a=r.cache,s=r.system,l={clientId:"",authority:""+v.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:"",authorityMetadata:"",redirectUri:"",postLogoutRedirectUri:"",navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:e.ProtocolMode.AAD},c={cacheLocation:e.BrowserCacheLocation.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1},u={loggerCallback:function(){},logLevel:e.LogLevel.Info,piiLoggingEnabled:!1},d=n(n({},be),{loggerOptions:u,networkClient:o?Kt.getBrowserNetworkClient():lt,navigationClient:new Vt,loadFrameTimeout:0,windowHashTimeout:s&&s.loadFrameTimeout||6e4,iframeHashTimeout:s&&s.loadFrameTimeout||Gt,navigateFrameWait:o&&Kt.detectIEOrEdge()?500:0,redirectNavigationTimeout:3e4,asyncPopups:!1,allowRedirectInIframe:!1}),{auth:n(n({},l),i),cache:n(n({},c),a),system:n(n({},d),s)}),this.logger=new oe(this.config.system.loggerOptions,Wt,$t),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.browserCrypto=this.isBrowserEnvironment?new Dt(this.logger):Z,this.eventHandler=new Jt(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new Bt(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):(h=this.config.auth.clientId,p=this.logger,f={cacheLocation:e.BrowserCacheLocation.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1},new Bt(h,f,Z,p)),this.tokenCache=new ar(this.config,this.browserStorage,this.logger,this.browserCrypto)}return t.prototype.handleRedirectPromise=function(t){return o(this,void 0,void 0,(function(){var r,n,o,a,s,l=this;return i(this,(function(i){return this.logger.verbose("handleRedirectPromise called"),r=this.getAllAccounts(),this.isBrowserEnvironment?(n=t||v.EMPTY_STRING,void 0===(o=this.redirectResponse.get(n))?(this.eventHandler.emitEvent(e.EventType.HANDLE_REDIRECT_START,e.InteractionType.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),a=this.browserStorage.getTemporaryCache(Qe.CORRELATION_ID,!0)||"",s=new rr(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,a),o=s.handleRedirectPromise(t).then((function(t){return t&&(r.length<l.getAllAccounts().length?(l.eventHandler.emitEvent(e.EventType.LOGIN_SUCCESS,e.InteractionType.Redirect,t),l.logger.verbose("handleRedirectResponse returned result, login success")):(l.eventHandler.emitEvent(e.EventType.ACQUIRE_TOKEN_SUCCESS,e.InteractionType.Redirect,t),l.logger.verbose("handleRedirectResponse returned result, acquire token success"))),l.eventHandler.emitEvent(e.EventType.HANDLE_REDIRECT_END,e.InteractionType.Redirect),t})).catch((function(t){throw r.length>0?l.eventHandler.emitEvent(e.EventType.ACQUIRE_TOKEN_FAILURE,e.InteractionType.Redirect,null,t):l.eventHandler.emitEvent(e.EventType.LOGIN_FAILURE,e.InteractionType.Redirect,null,t),l.eventHandler.emitEvent(e.EventType.HANDLE_REDIRECT_END,e.InteractionType.Redirect),t})),this.redirectResponse.set(n,o)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,o]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])}))}))},t.prototype.acquireTokenRedirect=function(t){return o(this,void 0,void 0,(function(){var r,n=this;return i(this,(function(o){return this.preflightBrowserEnvironmentCheck(e.InteractionType.Redirect),this.logger.verbose("acquireTokenRedirect called"),(r=this.getAllAccounts().length>0)?this.eventHandler.emitEvent(e.EventType.ACQUIRE_TOKEN_START,e.InteractionType.Redirect,t):this.eventHandler.emitEvent(e.EventType.LOGIN_START,e.InteractionType.Redirect,t),[2,new rr(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t.correlationId).acquireToken(t).catch((function(t){throw r?n.eventHandler.emitEvent(e.EventType.ACQUIRE_TOKEN_FAILURE,e.InteractionType.Redirect,null,t):n.eventHandler.emitEvent(e.EventType.LOGIN_FAILURE,e.InteractionType.Redirect,null,t),t}))]}))}))},t.prototype.acquireTokenPopup=function(t){var r=this;try{this.preflightBrowserEnvironmentCheck(e.InteractionType.Popup),this.logger.verbose("acquireTokenPopup called",t.correlationId)}catch(e){return Promise.reject(e)}var n=this.getAllAccounts();return n.length>0?this.eventHandler.emitEvent(e.EventType.ACQUIRE_TOKEN_START,e.InteractionType.Popup,t):this.eventHandler.emitEvent(e.EventType.LOGIN_START,e.InteractionType.Popup,t),new er(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t.correlationId).acquireToken(t).then((function(t){return n.length<r.getAllAccounts().length?r.eventHandler.emitEvent(e.EventType.LOGIN_SUCCESS,e.InteractionType.Popup,t):r.eventHandler.emitEvent(e.EventType.ACQUIRE_TOKEN_SUCCESS,e.InteractionType.Popup,t),t})).catch((function(t){return n.length>0?r.eventHandler.emitEvent(e.EventType.ACQUIRE_TOKEN_FAILURE,e.InteractionType.Popup,null,t):r.eventHandler.emitEvent(e.EventType.LOGIN_FAILURE,e.InteractionType.Popup,null,t),Promise.reject(t)}))},t.prototype.ssoSilent=function(t){return o(this,void 0,void 0,(function(){var r,n;return i(this,(function(o){switch(o.label){case 0:this.preflightBrowserEnvironmentCheck(e.InteractionType.Silent),this.logger.verbose("ssoSilent called",t.correlationId),this.eventHandler.emitEvent(e.EventType.SSO_SILENT_START,e.InteractionType.Silent,t),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,new or(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,e.ApiId.ssoSilent,t.correlationId).acquireToken(t)];case 2:return r=o.sent(),this.eventHandler.emitEvent(e.EventType.SSO_SILENT_SUCCESS,e.InteractionType.Silent,r),[2,r];case 3:throw n=o.sent(),this.eventHandler.emitEvent(e.EventType.SSO_SILENT_FAILURE,e.InteractionType.Silent,null,n),n;case 4:return[2]}}))}))},t.prototype.acquireTokenByRefreshToken=function(t){return o(this,void 0,void 0,(function(){var r=this;return i(this,(function(n){return this.eventHandler.emitEvent(e.EventType.ACQUIRE_TOKEN_NETWORK_START,e.InteractionType.Silent,t),Kt.blockReloadInHiddenIframes(),[2,new ir(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t.correlationId).acquireToken(t).catch((function(n){var o=n instanceof Ee,i=n instanceof De,a=n.errorCode===dt;if(o&&a&&!i)return r.logger.verbose("Refresh token expired or invalid, attempting acquire token by iframe",t.correlationId),new or(r.config,r.browserStorage,r.browserCrypto,r.logger,r.eventHandler,r.navigationClient,e.ApiId.acquireTokenSilent_authCode,t.correlationId).acquireToken(t);throw n}))]}))}))},t.prototype.logout=function(e){return o(this,void 0,void 0,(function(){return i(this,(function(t){return this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead."),[2,this.logoutRedirect(e)]}))}))},t.prototype.logoutRedirect=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(r){return this.preflightBrowserEnvironmentCheck(e.InteractionType.Redirect),[2,new rr(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,null==t?void 0:t.correlationId).logout(t)]}))}))},t.prototype.logoutPopup=function(t){try{return this.preflightBrowserEnvironmentCheck(e.InteractionType.Popup),new er(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,null==t?void 0:t.correlationId).logout(t)}catch(e){return Promise.reject(e)}},t.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},t.prototype.getAccountByUsername=function(e){var t=this.getAllAccounts();return!re.isEmpty(e)&&t&&t.length?(this.logger.verbose("Account matching username found, returning"),this.logger.verbosePii("Returning signed-in accounts matching username: "+e),t.filter((function(t){return t.username.toLowerCase()===e.toLowerCase()}))[0]||null):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},t.prototype.getAccountByHomeId=function(e){var t=this.getAllAccounts();return!re.isEmpty(e)&&t&&t.length?(this.logger.verbose("Account matching homeAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching homeAccountId: "+e),t.filter((function(t){return t.homeAccountId===e}))[0]||null):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},t.prototype.getAccountByLocalId=function(e){var t=this.getAllAccounts();return!re.isEmpty(e)&&t&&t.length?(this.logger.verbose("Account matching localAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching localAccountId: "+e),t.filter((function(t){return t.localAccountId===e}))[0]||null):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},t.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},t.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},t.prototype.preflightBrowserEnvironmentCheck=function(t){if(this.logger.verbose("preflightBrowserEnvironmentCheck started"),Kt.blockNonBrowserEnvironment(this.isBrowserEnvironment),Kt.blockRedirectInIframe(t,this.config.system.allowRedirectInIframe),Kt.blockReloadInHiddenIframes(),Kt.blockAcquireTokenInPopups(),t===e.InteractionType.Redirect&&this.config.cache.cacheLocation===e.BrowserCacheLocation.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw Ft.createInMemoryRedirectUnavailableError()},t.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},t.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},t.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},t.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},t.prototype.getTokenCache=function(){return this.tokenCache},t.prototype.getLogger=function(){return this.logger},t.prototype.setLogger=function(e){this.logger=e},t.prototype.initializeWrapperLibrary=function(e,t){this.browserStorage.setWrapperMetadata(e,t)},t.prototype.setNavigationClient=function(e){this.navigationClient=e},t.prototype.getConfiguration=function(){return this.config},t}(),lr=function(t){function a(){return null!==t&&t.apply(this,arguments)||this}return r(a,t),a.prototype.acquireToken=function(t){return o(this,void 0,void 0,(function(){var r,n,o,a;return i(this,(function(i){switch(i.label){case 0:return r=this.initializeServerTelemetryManager(e.ApiId.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(r,t.authority)];case 1:n=i.sent(),this.logger.verbose("Silent auth client created"),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,n.acquireCachedToken(t)];case 3:return o=i.sent(),this.eventHandler.emitEvent(e.EventType.ACQUIRE_TOKEN_SUCCESS,e.InteractionType.Silent,o),[2,o];case 4:throw(a=i.sent())instanceof Tt&&a.errorCode===Ot.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),a;case 5:return[2]}}))}))},a.prototype.logout=function(){return Promise.reject(Tt.createSilentLogoutUnsupportedError())},a.prototype.createSilentFlowClient=function(e,t){return o(this,void 0,void 0,(function(){var r;return i(this,(function(n){switch(n.label){case 0:return[4,this.getClientConfiguration(e,t)];case 1:return r=n.sent(),[2,new We(r)]}}))}))},a.prototype.initializeSilentRequest=function(e,t){return n(n(n({},e),this.initializeBaseRequest(e)),{account:t,forceRefresh:e.forceRefresh||!1})},a}(Yt),cr=function(t){function n(e){var r=t.call(this,e)||this;return r.activeSilentTokenRequests=new Map,r}return r(n,t),n.prototype.loginRedirect=function(e){return o(this,void 0,void 0,(function(){return i(this,(function(t){return this.logger.verbose("loginRedirect called"),[2,this.acquireTokenRedirect(e||yt)]}))}))},n.prototype.loginPopup=function(e){return this.logger.verbose("loginPopup called"),this.acquireTokenPopup(e||yt)},n.prototype.acquireTokenSilent=function(t){return o(this,void 0,void 0,(function(){var r,n,o,a,s,l=this;return i(this,(function(i){if(this.preflightBrowserEnvironmentCheck(e.InteractionType.Silent),this.logger.verbose("acquireTokenSilent called",t.correlationId),!(r=t.account||this.getActiveAccount()))throw Tt.createNoAccountError();return n={clientId:this.config.auth.clientId,authority:t.authority||"",scopes:t.scopes,homeAccountIdentifier:r.homeAccountId,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshJwk:t.sshJwk,sshKid:t.sshKid},o=JSON.stringify(n),void 0===(a=this.activeSilentTokenRequests.get(o))?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",t.correlationId),s=this.acquireTokenSilentAsync(t,r).then((function(e){return l.activeSilentTokenRequests.delete(o),e})).catch((function(e){throw l.activeSilentTokenRequests.delete(o),e})),this.activeSilentTokenRequests.set(o,s),[2,s]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",t.correlationId),[2,a])}))}))},n.prototype.acquireTokenSilentAsync=function(t,r){return o(this,void 0,void 0,(function(){var n,a,s=this;return i(this,(function(l){return n=new lr(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t.correlationId),a=n.initializeSilentRequest(t,r),this.eventHandler.emitEvent(e.EventType.ACQUIRE_TOKEN_START,e.InteractionType.Silent,t),[2,n.acquireToken(a).catch((function(){return o(s,void 0,void 0,(function(){var t,r;return i(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.acquireTokenByRefreshToken(a)];case 1:return t=n.sent(),this.eventHandler.emitEvent(e.EventType.ACQUIRE_TOKEN_SUCCESS,e.InteractionType.Silent,t),[2,t];case 2:throw r=n.sent(),this.eventHandler.emitEvent(e.EventType.ACQUIRE_TOKEN_FAILURE,e.InteractionType.Silent,null,r),r;case 3:return[2]}}))}))}))]}))}))},n}(sr),ur={acquireTokenPopup:function(){return Promise.reject(Ft.createStubPcaInstanceCalledError())},acquireTokenRedirect:function(){return Promise.reject(Ft.createStubPcaInstanceCalledError())},acquireTokenSilent:function(){return Promise.reject(Ft.createStubPcaInstanceCalledError())},getAllAccounts:function(){return[]},getAccountByHomeId:function(){return null},getAccountByUsername:function(){return null},getAccountByLocalId:function(){return null},handleRedirectPromise:function(){return Promise.reject(Ft.createStubPcaInstanceCalledError())},loginPopup:function(){return Promise.reject(Ft.createStubPcaInstanceCalledError())},loginRedirect:function(){return Promise.reject(Ft.createStubPcaInstanceCalledError())},logout:function(){return Promise.reject(Ft.createStubPcaInstanceCalledError())},logoutRedirect:function(){return Promise.reject(Ft.createStubPcaInstanceCalledError())},logoutPopup:function(){return Promise.reject(Ft.createStubPcaInstanceCalledError())},ssoSilent:function(){return Promise.reject(Ft.createStubPcaInstanceCalledError())},addEventCallback:function(){return null},removeEventCallback:function(){},enableAccountStorageEvents:function(){},disableAccountStorageEvents:function(){},getTokenCache:function(){throw Ft.createStubPcaInstanceCalledError()},getLogger:function(){throw Ft.createStubPcaInstanceCalledError()},setLogger:function(){},setActiveAccount:function(){},getActiveAccount:function(){return null},initializeWrapperLibrary:function(){},setNavigationClient:function(){},getConfiguration:function(){throw Ft.createStubPcaInstanceCalledError()}},dr=function(){function t(){}return t.getInteractionStatusFromEvent=function(t,r){switch(t.eventType){case e.EventType.LOGIN_START:return e.InteractionStatus.Login;case e.EventType.SSO_SILENT_START:return e.InteractionStatus.SsoSilent;case e.EventType.ACQUIRE_TOKEN_START:if(t.interactionType===e.InteractionType.Redirect||t.interactionType===e.InteractionType.Popup)return e.InteractionStatus.AcquireToken;break;case e.EventType.HANDLE_REDIRECT_START:return e.InteractionStatus.HandleRedirect;case e.EventType.LOGOUT_START:return e.InteractionStatus.Logout;case e.EventType.SSO_SILENT_SUCCESS:case e.EventType.SSO_SILENT_FAILURE:if(r&&r!==e.InteractionStatus.SsoSilent)break;return e.InteractionStatus.None;case e.EventType.LOGOUT_END:if(r&&r!==e.InteractionStatus.Logout)break;return e.InteractionStatus.None;case e.EventType.HANDLE_REDIRECT_END:if(r&&r!==e.InteractionStatus.HandleRedirect)break;return e.InteractionStatus.None;case e.EventType.LOGIN_SUCCESS:case e.EventType.LOGIN_FAILURE:case e.EventType.ACQUIRE_TOKEN_SUCCESS:case e.EventType.ACQUIRE_TOKEN_FAILURE:if(t.interactionType===e.InteractionType.Redirect||t.interactionType===e.InteractionType.Popup){if(r&&r!==e.InteractionStatus.Login&&r!==e.InteractionStatus.AcquireToken)break;return e.InteractionStatus.None}}return null},t}(),hr=function(){function e(e,t){var r=t&&t.loggerOptions||{};this.logger=new oe(r,Wt,$t),this.cryptoOps=new Dt(this.logger),this.popTokenGenerator=new Be(this.cryptoOps),this.shrParameters=e}return e.prototype.generatePublicKeyThumbprint=function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this.popTokenGenerator.generateKid(this.shrParameters)];case 1:return[2,e.sent().kid]}}))}))},e.prototype.signRequest=function(e,t,r){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,this.popTokenGenerator.signPayload(e,t,this.shrParameters,r)]}))}))},e.prototype.removeKeys=function(e){return o(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.cryptoOps.removeTokenBindingKey(e)];case 1:return[2,t.sent()]}}))}))},e}();e.AccountEntity=pe,e.AuthError=X,e.AuthErrorMessage=Q,e.AuthenticationHeaderParser=ct,e.BrowserAuthError=Tt,e.BrowserAuthErrorMessage=Ot,e.BrowserConfigurationAuthError=Ft,e.BrowserConfigurationAuthErrorMessage=Ut,e.BrowserUtils=Kt,e.ClientAuthError=te,e.ClientAuthErrorMessage=ee,e.ClientConfigurationError=le,e.ClientConfigurationErrorMessage=se,e.EventMessageUtils=dr,e.InteractionRequiredAuthError=De,e.InteractionRequiredAuthErrorMessage=Me,e.Logger=oe,e.NavigationClient=Vt,e.PublicClientApplication=cr,e.ServerError=Ee,e.SignedHttpRequest=hr,e.StringUtils=re,e.UrlString=je,e.stubbedPublicClientApplication=ur,e.version=$t,Object.defineProperty(e,"__esModule",{value:!0})}(t)},287:e=>{"use strict";e.exports='/*!\n * Box UI Element\n *\n * Copyright 2019 Box, Inc. All rights reserved.\n *\n * This product includes software developed by Box, Inc. ("Box")\n * (http://www.box.com)\n *\n * ALL BOX SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL BOX BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *\n * See the Box license for the specific language governing permissions\n * and limitations under the license.\n */.be-logo{padding-left:20px}.be-logo .be-logo-custom{max-height:32px;max-width:80px}.be-is-small .be-logo .be-logo-custom{max-width:75px}.be-logo .be-logo-placeholder{align-items:center;background-color:#e8e8e8;border:1px dashed;display:flex;height:32px;justify-content:center;width:75px}.be-is-small .be-logo .be-logo-placeholder{width:60px}.be-logo .be-logo-placeholder span{font-size:10px;text-transform:uppercase}.be-logo svg{display:block}.be .be-header{align-items:center;background:#fcfcfc;border-bottom:1px solid #e8e8e8;display:flex;flex:0 0 70px;padding:0 25px 0 0}.be-is-small .be .be-header{padding-right:20px}.be .be-header .be-search{flex:1;padding-left:20px}.be .be-header input[type=search]{-webkit-appearance:none;font:inherit;width:100%}.crawler{font-size:0;margin:0 auto;white-space:nowrap;width:10px}.crawler div{animation:crawler .66s ease-in-out infinite;background-color:#0061d5;border-radius:4px;display:inline-block;height:10px;width:2px}.btn-primary .crawler div{background-color:#fff}.crawler.is-small{transform:scale(.7)}.crawler.is-medium{transform:scale(1.5)}.crawler.is-large{transform:scale(2)}.is-loading .crawler div{transform:translateZ(0);will-change:transform,opacity}.crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}@keyframes crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}.loading-indicator-wrapper{position:relative}.loading-indicator-wrapper .loading-indicator-veil{bottom:0;display:flex;left:0;position:absolute;right:0;top:0;z-index:1}.loading-indicator-wrapper .loading-indicator-veil.is-with-center-crawler{align-items:center}.loading-indicator-wrapper .loading-indicator-veil.blur-content{background-color:#fbfbfbbf}.loading-indicator-wrapper .loading-indicator-veil.hide-content{background-color:#fff}.radar{position:relative}.radar .radar-dot:before{border:2px solid #fff;height:8px;left:-4px;top:-4px;width:8px;z-index:193}.radar .radar-dot:after,.radar .radar-dot:before{background-color:#0061d5;border-radius:50%;content:" ";position:absolute}.radar .radar-dot:after{animation-delay:0s;animation-duration:1s;animation-iteration-count:infinite;animation-name:ripple;animation-timing-function:ease;box-shadow:inset 0 0 10px #0000004d;height:10px;width:10px;z-index:192}.radar .radar-circle:before{border:1px solid #0061d5}.radar .radar-circle:after,.radar .radar-circle:before{border-radius:50%;content:" ";height:40px;left:-20px;position:absolute;top:-20px;width:40px;z-index:192}.radar .radar-circle:after{background-color:#0061d5;opacity:.3}@keyframes ripple{0%{height:0;left:0;opacity:.75;top:0;width:0}to{height:40px;left:-20px;opacity:0;top:-20px;width:40px}}.radar-animation-target-attached-bottom.radar-animation-target-attached-center>.radar,.radar-animation-target-attached-bottom.radar-animation-target-attached-left>.radar,.radar-animation-target-attached-bottom.radar-animation-target-attached-right>.radar{margin-top:1px}.radar-animation-target-attached-middle.radar-animation-target-attached-right>.radar{margin-left:1px}.radar-animation-target-attached-middle.radar-animation-target-attached-center>.radar{margin-top:1px}.radar-animation-target-attached-middle.radar-animation-target-attached-left>.radar{margin-right:1px}.radar-animation-target-attached-top.radar-animation-target-attached-center>.radar,.radar-animation-target-attached-top.radar-animation-target-attached-left>.radar,.radar-animation-target-attached-top.radar-animation-target-attached-right>.radar{margin-bottom:1px}.radar-animation-element{z-index:190}.be-breadcrumb{align-items:center;display:flex;min-width:20px}.be-breadcrumb:only-child{min-width:64px}.be .be-breadcrumb .btn-plain{color:#6f6f6f}.be .be-breadcrumb .btn-plain:last-child{color:#222}.be-breadcrumb-seperator{flex-shrink:0;margin:1px 8px 0 5px}.bdl-Breadcrumb-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.dropdown-menu-element-attached-center .aria-menu,.dropdown-menu-element-attached-left .aria-menu,.dropdown-menu-element-attached-right .aria-menu{animation:fade-in .15s cubic-bezier(0,0,.6,1)}.dropdown-menu-element{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#222;font-size:14px;font-weight:400;letter-spacing:.3px;line-height:20px;margin-top:5px;text-rendering:optimizeLegibility;z-index:170}.dropdown-menu-element,.dropdown-menu-element *,.dropdown-menu-element :after,.dropdown-menu-element :before{box-sizing:border-box!important}@media(max-width:767px){.bdl-DropdownMenu--responsive.dropdown-menu-enabled{bottom:0;left:0;margin-bottom:64px;margin-top:0;position:fixed;right:0;top:0;transform:none!important}.bdl-DropdownMenu--responsive .aria-menu:not(.submenu){background-color:#fbfbfb;border:none;border-radius:0;box-shadow:none;height:100%;margin-top:64px;overflow-x:auto}.bdl-DropdownMenu--responsive .aria-menu:not(.submenu) .bdl-MenuHeader{background-color:#fff;box-shadow:0 0 10px 0 #0000000d;display:flex;height:64px;left:0;padding:12px;position:absolute;right:0;top:0}.bdl-DropdownMenu--responsive .aria-menu:not(.submenu) .submenu:not(.is-hidden){bottom:auto;left:auto;right:0;top:100%}.bdl-DropdownMenu--responsive .aria-menu:not(.submenu) .submenu:not(.is-hidden).is-right-bottom-aligned{bottom:100%;top:auto}}.aria-menu{background-color:#fff;background:#fff;border:1px solid #e8e8e8;border-radius:8px;box-shadow:0 4px 12px 0 #0000001a;list-style:none;margin:0;padding:12px;white-space:nowrap}.aria-menu:not(.should-outline-focus):focus{outline:none}.aria-menu [role=separator]{border:0;border-top:1px solid #e8e8e8;height:0;margin:8px 4px}.aria-menu .lnk,.aria-menu .lnk:focus,.aria-menu .lnk:hover,.aria-menu a,.aria-menu a:focus,.aria-menu a:hover{text-decoration:none}.aria-menu .bdl-MenuHeader{display:none}.menu-item{align-items:center;border-radius:8px;color:#222;cursor:pointer;display:flex;min-height:30px;padding:8px 48px 8px 8px;position:relative}.menu-item.is-active{background-color:#2222220d}.menu-item.menu-section-header{color:#000;font-size:10px;font-weight:700}.menu-item[aria-disabled]{cursor:default;opacity:.4}.menu-item.is-select-item{padding-left:38px;position:relative}.menu-item.is-select-item.is-selected:before{border-color:#222;border-style:none solid solid none;border-width:2px;content:"";height:12px;left:14px;margin:auto;position:absolute;top:10px;transform:rotate(45deg);width:6px}.menu-item:not([aria-disabled]):focus,.menu-item:not([aria-disabled]):hover{background-color:#f4f4f4;color:#222}.menu-item svg:not(.menu-item-arrow){margin-right:16px}.be .btn-plain.be-breadcrumbs-drop-down{color:#6f6f6f;letter-spacing:1.5px}.be .btn-plain.be-breadcrumbs-drop-down.be-breadcrumbs-condensed{letter-spacing:inherit}.be-breadcrumbs{align-items:center;display:flex;min-width:0;padding-right:20px}.be-breadcrumb-more{align-items:center;display:flex;min-width:35px}.be-inline-breadcrumbs{color:#6f6f6f;display:flex;font-size:11px;min-width:0}.be-inline-breadcrumbs .be-breadcrumbs{padding-right:0}.be-inline-breadcrumbs .be-breadcrumb:first-child{min-width:auto}.be .be-inline-breadcrumbs .be-breadcrumb .btn-plain{color:inherit;font-size:11px}.be-inline-breadcrumbs .be-breadcrumb-more{min-width:16px}.bdl-Tooltip,.tooltip{color:#fff;font-size:13px;line-height:1.4;max-width:200px;padding:8px 10px;position:relative;word-wrap:break-word;background-color:#4e4e4e;border-color:#4e4e4e;border-radius:4px}.bdl-Tooltip:before,.tooltip:before{border:6px solid #0000;content:"";height:0;position:absolute;width:0}.bdl-Tooltip.is-error:after,.is-error.tooltip:after{border:5px solid #0000;content:"";height:0;position:absolute;width:0}.bdl-Tooltip.is-error,.is-error.tooltip{background-color:#fdebee;border:1px solid #f69bab;color:#222}.bdl-Tooltip.is-error .tooltip-close-button .bdl-Tooltip-iconClose path,.is-error.tooltip .tooltip-close-button .bdl-Tooltip-iconClose path{fill:#222}.bdl-Tooltip.is-callout,.is-callout.tooltip{background-color:#003c84;border-color:#003c84;color:#fafbfd}.bdl-Tooltip.is-callout a,.is-callout.tooltip a{color:#fafbfd}.bdl-Tooltip.is-callout .tooltip-close-button .bdl-Tooltip-iconClose path,.is-callout.tooltip .tooltip-close-button .bdl-Tooltip-iconClose path{fill:#fafbfd}.bdl-Tooltip.is-metadata-tooltip,.is-metadata-tooltip.tooltip{margin-left:-8px}.bdl-Tooltip.with-close-button,.with-close-button.tooltip{padding-right:28px}.bdl-Tooltip .tooltip-close-button,.tooltip .tooltip-close-button{cursor:pointer;position:absolute;right:3px;top:9px;width:22px}.bdl-Tooltip .tooltip-close-button .bdl-Tooltip-iconClose,.tooltip .tooltip-close-button .bdl-Tooltip-iconClose{height:16px}.bdl-Tooltip .tooltip-close-button .bdl-Tooltip-iconClose path,.tooltip .tooltip-close-button .bdl-Tooltip-iconClose path{fill:#fff}.tooltip-target-attached-top.tooltip-target-attached-center>.bdl-Tooltip,.tooltip-target-attached-top.tooltip-target-attached-center>.tooltip{margin-bottom:10px}.tooltip-target-attached-top.tooltip-target-attached-center>.bdl-Tooltip:before,.tooltip-target-attached-top.tooltip-target-attached-center>.tooltip:before{border-top-color:inherit;left:50%;margin-left:-6px;top:100%}.tooltip-target-attached-top.tooltip-target-attached-center>.bdl-Tooltip.is-error:after,.tooltip-target-attached-top.tooltip-target-attached-center>.is-error.tooltip:after{border-top-color:#fdebee;left:50%;margin-left:-5px;top:100%}.tooltip-target-attached-top.tooltip-target-attached-left>.bdl-Tooltip,.tooltip-target-attached-top.tooltip-target-attached-left>.tooltip{margin-bottom:10px}.tooltip-target-attached-top.tooltip-target-attached-left>.bdl-Tooltip:before,.tooltip-target-attached-top.tooltip-target-attached-left>.tooltip:before{border-top-color:inherit;left:10px;top:100%}.tooltip-target-attached-top.tooltip-target-attached-left>.bdl-Tooltip.is-error:after,.tooltip-target-attached-top.tooltip-target-attached-left>.is-error.tooltip:after{border-top-color:#fdebee;left:11px;top:100%}.tooltip-target-attached-top.tooltip-target-attached-right>.bdl-Tooltip,.tooltip-target-attached-top.tooltip-target-attached-right>.tooltip{margin-bottom:10px}.tooltip-target-attached-top.tooltip-target-attached-right>.bdl-Tooltip:before,.tooltip-target-attached-top.tooltip-target-attached-right>.tooltip:before{border-top-color:inherit;right:10px;top:100%}.tooltip-target-attached-top.tooltip-target-attached-right>.bdl-Tooltip.is-error:after,.tooltip-target-attached-top.tooltip-target-attached-right>.is-error.tooltip:after{border-top-color:#fdebee;right:11px;top:100%}.tooltip-target-attached-middle.tooltip-target-attached-right>.bdl-Tooltip,.tooltip-target-attached-middle.tooltip-target-attached-right>.tooltip{margin-left:10px}.tooltip-target-attached-middle.tooltip-target-attached-right>.bdl-Tooltip:before,.tooltip-target-attached-middle.tooltip-target-attached-right>.tooltip:before{border-right-color:inherit;margin-top:-6px;right:100%;top:50%}.tooltip-target-attached-middle.tooltip-target-attached-right>.bdl-Tooltip.is-error:after,.tooltip-target-attached-middle.tooltip-target-attached-right>.is-error.tooltip:after{border-right-color:#fdebee;margin-top:-5px;right:100%;top:50%}.tooltip-target-attached-middle.tooltip-target-attached-left>.bdl-Tooltip,.tooltip-target-attached-middle.tooltip-target-attached-left>.tooltip{margin-right:10px}.tooltip-target-attached-middle.tooltip-target-attached-left>.bdl-Tooltip:before,.tooltip-target-attached-middle.tooltip-target-attached-left>.tooltip:before{border-left-color:inherit;left:100%;margin-top:-6px;top:50%}.tooltip-target-attached-middle.tooltip-target-attached-left>.bdl-Tooltip.is-error:after,.tooltip-target-attached-middle.tooltip-target-attached-left>.is-error.tooltip:after{border-left-color:#fdebee;left:100%;margin-top:-5px;top:50%}.tooltip-target-attached-bottom.tooltip-target-attached-center>.bdl-Tooltip,.tooltip-target-attached-bottom.tooltip-target-attached-center>.tooltip{margin-top:10px}.tooltip-target-attached-bottom.tooltip-target-attached-center>.bdl-Tooltip:before,.tooltip-target-attached-bottom.tooltip-target-attached-center>.tooltip:before{border-bottom-color:inherit;bottom:100%;left:50%;margin-left:-6px}.tooltip-target-attached-bottom.tooltip-target-attached-center>.bdl-Tooltip.is-error:after,.tooltip-target-attached-bottom.tooltip-target-attached-center>.is-error.tooltip:after{border-bottom-color:#fdebee;bottom:100%;left:50%;margin-left:-5px}.tooltip-target-attached-bottom.tooltip-target-attached-left>.bdl-Tooltip,.tooltip-target-attached-bottom.tooltip-target-attached-left>.tooltip{margin-top:10px}.tooltip-target-attached-bottom.tooltip-target-attached-left>.bdl-Tooltip:before,.tooltip-target-attached-bottom.tooltip-target-attached-left>.tooltip:before{border-bottom-color:inherit;bottom:100%;left:10px}.tooltip-target-attached-bottom.tooltip-target-attached-left>.bdl-Tooltip.is-error:after,.tooltip-target-attached-bottom.tooltip-target-attached-left>.is-error.tooltip:after{border-bottom-color:#fdebee;bottom:100%;left:11px}.tooltip-target-attached-bottom.tooltip-target-attached-right>.bdl-Tooltip,.tooltip-target-attached-bottom.tooltip-target-attached-right>.tooltip{margin-top:10px}.tooltip-target-attached-bottom.tooltip-target-attached-right>.bdl-Tooltip:before,.tooltip-target-attached-bottom.tooltip-target-attached-right>.tooltip:before{border-bottom-color:inherit;bottom:100%;right:10px}.tooltip-target-attached-bottom.tooltip-target-attached-right>.bdl-Tooltip.is-error:after,.tooltip-target-attached-bottom.tooltip-target-attached-right>.is-error.tooltip:after{border-bottom-color:#fdebee;bottom:100%;right:11px}.tooltip-element{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#222;font-size:13px;font-weight:400;letter-spacing:.3px;line-height:20px;text-rendering:optimizeLegibility;z-index:190}.tooltip-element,.tooltip-element *,.tooltip-element :after,.tooltip-element :before{box-sizing:border-box!important}.btn.be-btn-sort{padding:7px 6px}.bce:not(.be-is-small) .btn.be-btn-sort{display:none}.btn.be-btn-sort svg{display:block}.btn.be-btn-add{margin-left:7px;padding:5px 6px}.btn.be-btn-add svg{display:block}.bdl-GridViewSlider{display:flex;margin-right:5px}.bdl-GridViewSlider-range{appearance:none;cursor:pointer;margin-left:7px;margin-right:7px}.bdl-GridViewSlider-range::-webkit-slider-runnable-track{background:#e8e8e8;border:none;border-radius:2px;height:2px}.bdl-GridViewSlider-range::-webkit-slider-thumb{appearance:none;background:#4e4e4e;border:none;border-radius:50%;height:10px;margin-top:-4px;width:10px}.bdl-GridViewSlider-range::-moz-range-track{background:#e8e8e8;border:none;border-radius:2px;height:2px}.bdl-GridViewSlider-range::-moz-range-thumb{background:#4e4e4e;border:none;border-radius:50%;height:10px;width:10px}.bdl-GridViewSlider-range::-ms-track{background:#e8e8e8;border:none;border-radius:2px;color:#0000;height:2px}.bdl-GridViewSlider-range::-ms-fill-lower,.bdl-GridViewSlider-range::-ms-fill-upper{background:#e8e8e8;border-radius:10px}.bdl-GridViewSlider-range::-ms-thumb{background:#4e4e4e;border:none;border-radius:50%;height:10px;width:10px}.bdl-GridViewSlider-range:focus::-ms-fill-lower{background:#909090}.bdl-GridViewSlider-range:focus::-ms-fill-upper{background:#d3d3d3}.bdl-GridViewSlider-button{align-items:center;display:flex;justify-content:center}.btn.bdl-ViewModeChangeButton{padding:5px 6px}.btn.bdl-ViewModeChangeButton svg{display:block}.be-sub-header-right{align-items:center;display:flex}.be-sub-header-right .bdl-ViewModeChangeButton,.be-sub-header-right .be-btn-sort{margin-left:7px}.be-sub-header{align-items:center;border-bottom:1px solid #e8e8e8;box-shadow:0 4px 6px -2px #3333330a;display:flex;flex:0 0 50px;justify-content:space-between;padding:0 20px 0 25px}.be-is-small .be-sub-header{padding:0 15px 0 18px}.bce:not(.be-is-small) .be-sub-header{box-shadow:none}.bce.be-is-small .be-sub-header{border-bottom:0}.badgeable-container .badges .bottom-left-badge,.badgeable-container .badges .bottom-right-badge,.badgeable-container .badges .top-left-badge,.badgeable-container .badges .top-right-badge{pointer-events:all;position:absolute}.badgeable-container{display:inline-block;line-height:1;position:relative}.badgeable-container .badges{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.badgeable-container .badges .top-left-badge{left:8px;top:-6px;transform:translateX(-100%)}.badgeable-container .badges .top-right-badge{left:calc(100% - 8px);top:-6px}.badgeable-container .badges .bottom-left-badge{bottom:-6px;left:8px;transform:translateX(-100%)}.badgeable-container .badges .bottom-right-badge{bottom:-6px;left:calc(100% - 8px)}.bcu-item-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.bcu-item-icon-name{cursor:default;display:flex;height:50px;width:100%}.bcu-item-icon{align-items:center;flex:0 0 50px}.bcu-item-icon,.bcu-item-name{display:flex;justify-content:center}.bcu-item-name{align-items:flex-start;flex:1;flex-direction:column;line-height:15px;overflow:hidden;text-align:left}.bcu-icon-badge .badges .bottom-right-badge{bottom:-4px;left:calc(100% - 16px)}.bcu-progress-container{background:#e8e8e8;height:2px;margin-right:40px;transition:opacity .4s;width:100%;z-index:201}.be-is-small .bcu-progress-container{margin-right:24px}.bcu-progress-container .bcu-progress{background:#0061d5;box-shadow:0 1px 5px 0 #e4f4ff;height:2px;left:0;max-width:100%;top:0;transition:width .1s}.bcu-item-progress{align-items:center;display:flex}.bcu-progress-label{min-width:35px}.bcu-item-action{height:24px;width:24px}.bcu-item-action .crawler{align-items:center;display:flex;height:100%;justify-content:center}.bcu-item-action button{display:flex}.bcu-item-action button svg{display:block}.bcu-item-action button .be-icon-in-progress{height:24px;width:24px}.bcu-item-action button .be-icon-in-progress svg{display:none}.bcu-item-action button:hover .be-icon-in-progress svg{display:block}.bcu-item-action button:hover .be-icon-in-progress .crawler{display:none}.ReactVirtualized__Table__headerRow{font-weight:700;text-transform:uppercase}.ReactVirtualized__Table__headerRow,.ReactVirtualized__Table__row{align-items:center;display:flex;flex-direction:row}.ReactVirtualized__Table__headerTruncatedText{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ReactVirtualized__Table__headerColumn,.ReactVirtualized__Table__rowColumn{margin-right:10px;min-width:0}.ReactVirtualized__Table__rowColumn{text-overflow:ellipsis;white-space:nowrap}.ReactVirtualized__Table__headerColumn:first-of-type,.ReactVirtualized__Table__rowColumn:first-of-type{margin-left:10px}.ReactVirtualized__Table__sortableHeaderColumn{cursor:pointer}.ReactVirtualized__Table__sortableHeaderIconContainer{align-items:center;display:flex}.ReactVirtualized__Table__sortableHeaderIcon{flex:0 0 24px;height:1em;width:1em;fill:currentColor}.bcu-item-row{border-bottom:1px solid #bed4de66;outline:none}.bcu-item-list-action-column:last-child{margin-right:18px}.bcu-drag-drop-overlay{bottom:0;display:none;left:0;opacity:.2;position:absolute;right:0;top:0}.bcu-upload-state{align-items:center;display:flex;flex:1;justify-content:center;position:relative;text-align:center}.bcu-upload-state svg{margin-bottom:10px}.bcu-upload-state.bcu-is-droppable .bcu-drag-drop-overlay{background:#0061d5;display:block}.bcu-upload-state.bcu-is-not-droppable .bcu-drag-drop-overlay{background:#c82341;display:block}.bcu-upload-state.bcu-has-items{display:none}.bcu-upload-state.bcu-has-items.bcu-is-droppable,.bcu-upload-state.bcu-has-items.bcu-is-not-droppable{background-color:#fffc;bottom:0;display:flex;left:0;position:absolute;right:0;top:0}.bcu-upload-state.bcu-has-items.bcu-is-droppable .bcu-drag-drop-overlay,.bcu-upload-state.bcu-has-items.bcu-is-not-droppable .bcu-drag-drop-overlay{display:none}.bcu-upload-state-message+.be-input-btn{margin-top:10px}.bcu-upload-state-message+.be-input-link{margin-top:5px}.bcu-upload-input-container .be-input-link{display:inline-block}.bcu-droppable-content{display:flex;flex:1 0 200px;flex-direction:column;position:relative}.bcu-droppable-content .bcu-item-list{flex:1;position:relative}.bcu-droppable-content .bcu-item-list .ReactVirtualized__Table__Grid{outline:none}.bcu-uploads-manager-action{margin:5px -20px 5px 5px}.bcu-uploads-manager-action .btn-primary{display:flex}.bcu-overall-progress-bar{align-items:center;background:#0061d5;color:#fff;cursor:pointer;display:flex;height:60px;line-height:60px;padding-left:30px;padding-right:65px;position:relative;width:100%}.bcu-overall-progress-bar:hover{background:#0063d9}.bcu-overall-progress-bar .bcu-progress{background:#fff}.bcu-overall-progress-bar .bcu-progress-container{background:#0000}.bcu-overall-progress-bar .bcu-upload-status{flex:none;font-size:16px;margin-right:20px}.be.bcu-uploads-manager-container{bottom:0;max-height:0;position:fixed;transition:max-height .5s;width:100%}.be.bcu-uploads-manager-container .bcu-progress-container{margin-right:0}.be.bcu-uploads-manager-container .bcu-item-progress .bcu-progress-container{display:none}.be.bcu-uploads-manager-container .bcu-item-progress .bcu-progress-label{margin-left:auto}.be.bcu-uploads-manager-container.bcu-is-visible{max-height:60px}.be.bcu-uploads-manager-container .bcu-uploads-manager-item-list{display:none;height:375px}.be.bcu-uploads-manager-container .bcu-uploads-manager-item-list .buik-btn-plain:focus{border:1px solid #bcbcbc}.be.bcu-uploads-manager-container .bcu-uploads-manager-toggle{background:0 0;border:0;bottom:0;height:10px;margin:auto 0;position:absolute;right:26px;top:0;vertical-align:middle;width:10px}.be.bcu-uploads-manager-container .bcu-uploads-manager-toggle:after,.be.bcu-uploads-manager-container .bcu-uploads-manager-toggle:before{border:0 solid #fff;content:"";height:6px;position:absolute;width:6px}.be.bcu-uploads-manager-container .bcu-uploads-manager-toggle:before{border-bottom-width:2px;border-left-width:2px;bottom:0;left:0}.be.bcu-uploads-manager-container .bcu-uploads-manager-toggle:after{border-right-width:2px;border-top-width:2px;right:0;top:0}.be.bcu-uploads-manager-container.bcu-is-expanded{max-height:435px}.be.bcu-uploads-manager-container.bcu-is-expanded .bcu-uploads-manager-item-list{display:block}.be.bcu-uploads-manager-container.bcu-is-expanded .bcu-uploads-manager-toggle:before{bottom:7px;left:7px}.be.bcu-uploads-manager-container.bcu-is-expanded .bcu-uploads-manager-toggle:after{right:7px;top:7px}.be.bcu-uploads-manager-container .bcu-overall-progress-bar:hover .bcu-uploads-manager-toggle:before{bottom:-3px;left:-3px}.be.bcu-uploads-manager-container .bcu-overall-progress-bar:hover .bcu-uploads-manager-toggle:after{right:-3px;top:-3px}.be.bcu-uploads-manager-container.bcu-is-expanded .bcu-overall-progress-bar:hover .bcu-uploads-manager-toggle:before{bottom:6px;left:6px}.be.bcu-uploads-manager-container.bcu-is-expanded .bcu-overall-progress-bar:hover .bcu-uploads-manager-toggle:after{right:6px;top:6px}.be.bcu-uploads-manager-container .bcu-item-row{padding-right:5px}.be.bcu-uploads-manager-container .bcu-item-icon-name{padding-left:5px}.be.bcu-uploads-manager-container .bcu-progress{box-shadow:none}.be.bcu-uploads-manager-container .bcu-item-list{position:relative}.bcu-footer{align-items:center;background-color:#fcfcfc;border-top:1px solid #e8e8e8;display:flex;flex:0 0 70px;justify-content:space-between;padding:0 20px}.bcu-footer .btn{font-size:14px;line-height:38px;padding:0 16px}.bcu-footer .bcu-footer-message{padding:0 10px;text-align:center}.bcu-footer .bcu-footer-right .btn{margin-left:8px}@font-face{font-family:Lato;font-style:normal;font-weight:400;src:local("Lato Regular"),local("Lato-Regular"),url(https://cdn01.boxcdn.net/fonts/1.0.17/lato/Lato-Regular.woff2) format("woff2"),url(https://cdn01.boxcdn.net/fonts/1.0.17/lato/Lato-Regular.woff) format("woff")}@font-face{font-family:Lato;font-style:normal;font-weight:700;src:local("Lato Bold"),local("Lato-Bold"),url(https://cdn01.boxcdn.net/fonts/1.0.17/lato/Lato-Bold.woff2) format("woff2"),url(https://cdn01.boxcdn.net/fonts/1.0.17/lato/Lato-Bold.woff) format("woff")}.btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bcbcbc;border-radius:6px;box-sizing:border-box;color:#4e4e4e;cursor:pointer;display:inline-block;font-size:13px;font-weight:700;letter-spacing:.035em;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out;vertical-align:top;white-space:nowrap;zoom:1;-webkit-font-smoothing:antialiased}.btn.bdl-btn--large{font-size:14px;line-height:38px;padding:0 16px}.btn.bdl-has-icon{align-items:center;display:inline-flex;height:32px;justify-content:center;line-height:0;padding:0}.btn.bdl-has-icon .btn-content{margin-left:16px}.btn.bdl-has-icon .bdl-btn-icon{margin:5px}.btn.bdl-has-icon .bdl-btn-icon+.btn-content{margin-left:8px;margin-right:12px}.btn.bdl-has-icon.bdl-btn--large{height:40px}.btn.bdl-has-icon.bdl-btn--large .bdl-btn-icon{margin:9px}.btn:active,.btn:focus,.btn:hover{outline:none;text-decoration:none}.btn:not(.bdl-is-disabled):hover,.btn:not(.is-disabled):hover{background-color:#f7f7f7}.btn:not(.bdl-is-disabled):active,.btn:not(.is-disabled):active{background-color:#ebebeb;border-color:#bcbcbc}.btn:not(.bdl-is-disabled):focus,.btn:not(.is-disabled):focus{border-color:#222;box-shadow:0 1px 2px #0000001a}.btn.bdl-is-disabled,.btn.is-disabled,.btn.is-loading{cursor:default;top:0}.btn.is-loading .bdl-btn-icon,.btn.is-loading .btn-content{visibility:hidden}.btn.is-loading .btn-loading-indicator{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.btn.bdl-is-disabled,.btn.is-disabled{box-shadow:none;opacity:.4}.btn-plain,.btn-plain:active,.btn-plain:hover{border:none;cursor:pointer;font-weight:400;margin:0;padding:0}.btn-plain,.btn-plain:active,.btn-plain:focus,.btn-plain:hover{background:#0000;box-shadow:none}.btn-plain[aria-disabled]{cursor:default}button.btn-plain::-moz-focus-inner{border:0}button svg{pointer-events:none}.btn-primary{background-color:#0061d5;border-color:#0061d5;color:#fff;-webkit-font-smoothing:antialiased}.btn-primary:not(.bdl-is-disabled):focus,.btn-primary:not(.is-disabled):focus{background-color:#0074fe;border:1px solid #0061d5;box-shadow:inset 0 0 0 1px #fffc,0 1px 2px #0000001a}.btn-primary:not(.bdl-is-disabled):hover,.btn-primary:not(.is-disabled):hover{background-color:#0074fe;border-color:#0074fe}.btn-primary:not(.bdl-is-disabled):active,.btn-primary:not(.is-disabled):active{background-color:#004eac;border-color:#004eac;box-shadow:none}.btn-primary.is-loading .bdl-btn-icon,.btn-primary.is-loading .btn-content{background-color:#bcbcbc}.inline-alert{border-radius:6px;color:#222;display:none;margin:10px 0;padding:14px 10px}.inline-alert.inline-alert-visible{display:block}.inline-alert.inline-alert-warning{background-color:#fef7e8;border:1px solid #fad98d}.inline-alert.inline-alert-error{background-color:#fdebee;border:1px solid #f69bab}.inline-alert.inline-alert-success{background-color:#e9f8f2;border:1px solid #26c281}.inline-alert.inline-alert-info{background-color:#e9f2fe;border:1px solid #91c2fd}.inline-alert.inline-alert-generic{background-color:#e8e8e8;border:1px solid #909090}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.overlay-wrapper{display:inherit;position:relative}.overlay-wrapper .overlay{opacity:0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.overlay-wrapper.is-visible .overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.overlay{background:#fff;border:1px solid #bcbcbc;box-shadow:0 2px 6px 0 #0000001a;margin:0;padding:8px 0}.overlay hr{border:0;border-top:1px solid #bcbcbc;height:0;margin:8px 0}.toggle-overlay-container>.btn{margin-bottom:0;margin-left:0}.toggle-overlay .overlay{margin-top:5px}.bdl-Pill,.btn.bdl-Pill,.pill{align-items:center;background-color:#0061d5;border-radius:4px;color:#fff;display:flex;flex:none;height:24px;margin:1px;max-width:100%;overflow:hidden;padding:2px 10px;text-overflow:ellipsis;white-space:nowrap}.bdl-Pill .bdl-Pill-text,.bdl-Pill .pill-text,.btn.bdl-Pill .bdl-Pill-text,.pill .bdl-Pill-text,.pill .pill-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bdl-Pill .close-btn,.btn.bdl-Pill .close-btn,.pill .close-btn{background-color:initial;border:none;color:#fff;cursor:pointer;flex:none;font-size:8px;font-weight:700;margin:0 0 0 4px;padding:4px 0 4px 4px}.bdl-Pill.bdl-is-disabled,.bdl-Pill.is-disabled,.bdl-is-disabled.pill,.btn.bdl-Pill.bdl-is-disabled,.btn.bdl-Pill.is-disabled,.is-disabled.pill{opacity:.5}.bdl-Pill.bdl-is-disabled .close-btn,.bdl-Pill.is-disabled .close-btn,.bdl-is-disabled.pill .close-btn,.btn.bdl-Pill.bdl-is-disabled .close-btn,.btn.bdl-Pill.is-disabled .close-btn,.is-disabled.pill .close-btn{cursor:default}.bdl-Pill.is-invalid,.btn.bdl-Pill.is-invalid,.is-invalid.pill{background-color:#ed3757}.bdl-Pill.is-selected,.btn.bdl-Pill.is-selected,.is-selected.pill{box-shadow:inset 0 0 0 1px #fff}.bdl-Pill-warning,.pill-warning{background-color:#fef7e8;border:1px solid #fad98d;color:#f5b31b}.bdl-Pill-warning a,.pill-warning a{color:#f5b31b}.bdl-Pill--error,.pill-error{background-color:#fdebee;border:1px solid #f69bab;color:#ed3757}.bdl-Pill--error a,.pill-error a{color:#ed3757}.bdl-Pill.bdl-PillCloud-button,.bdl-Pill.pill-cloud-button,.bdl-PillCloud-button.pill,.pill-cloud-button.pill{background-color:#fff;border:1px solid #0061d5;color:#0061d5;display:inline-block;margin:3px}.bdl-Pill.bdl-PillCloud-button.is-selected,.bdl-Pill.is-selected.pill-cloud-button,.bdl-PillCloud-button.is-selected.pill,.is-selected.pill-cloud-button.pill{box-shadow:none}.bdl-Pill.bdl-PillCloud-button:not(.bdl-is-disabled):focus,.bdl-Pill.bdl-PillCloud-button:not(.is-disabled):focus,.bdl-Pill.pill-cloud-button:not(.bdl-is-disabled):focus,.bdl-Pill.pill-cloud-button:not(.is-disabled):focus,.bdl-PillCloud-button.pill:not(.bdl-is-disabled):focus,.bdl-PillCloud-button.pill:not(.is-disabled):focus,.pill-cloud-button.pill:not(.bdl-is-disabled):focus,.pill-cloud-button.pill:not(.is-disabled):focus{border-color:#004eac;box-shadow:0 1px 2px #0000001a}.bdl-PillCloud,.pill-cloud-container{border:1px solid #e8e8e8;overflow-y:scroll;padding:8px}.bdl-PillSelector-input--hidden,.pill-selector-hidden-input{position:absolute;visibility:hidden}.bdl-PillSelectorDropdown,.pill-selector-wrapper{margin:0 0 20px;position:relative}.bdl-PillSelectorDropdown .bdl-PillSelector,.bdl-PillSelectorDropdown .pill-selector-input-wrapper,.pill-selector-wrapper .bdl-PillSelector,.pill-selector-wrapper .pill-selector-input-wrapper{align-content:flex-start;align-items:flex-start;background-color:#fff;border:1px solid #ccc;border-radius:6px;box-shadow:inset 0 1px 1px #00000014;cursor:text;display:flex;flex-flow:row wrap;margin-top:5px;overflow-x:hidden;overflow-y:auto;padding:5px;transition:border-color .15s linear,box-shadow .15s linear;width:262px;-webkit-font-smoothing:antialiased}.bdl-PillSelectorDropdown .bdl-PillSelector:hover,.bdl-PillSelectorDropdown .pill-selector-input-wrapper:hover,.pill-selector-wrapper .bdl-PillSelector:hover,.pill-selector-wrapper .pill-selector-input-wrapper:hover{border:1px solid #004aa2}.bdl-PillSelectorDropdown .bdl-PillSelector.bdl-is-disabled,.bdl-PillSelectorDropdown .bdl-PillSelector.is-disabled,.bdl-PillSelectorDropdown .bdl-is-disabled.pill-selector-input-wrapper,.bdl-PillSelectorDropdown .is-disabled.pill-selector-input-wrapper,.pill-selector-wrapper .bdl-PillSelector.bdl-is-disabled,.pill-selector-wrapper .bdl-PillSelector.is-disabled,.pill-selector-wrapper .bdl-is-disabled.pill-selector-input-wrapper,.pill-selector-wrapper .is-disabled.pill-selector-input-wrapper{background-color:#fbfbfb;box-shadow:none;color:#bcbcbc}.bdl-PillSelectorDropdown .bdl-PillSelector.bdl-is-disabled:hover,.bdl-PillSelectorDropdown .bdl-PillSelector.is-disabled:hover,.bdl-PillSelectorDropdown .bdl-is-disabled.pill-selector-input-wrapper:hover,.bdl-PillSelectorDropdown .is-disabled.pill-selector-input-wrapper:hover,.pill-selector-wrapper .bdl-PillSelector.bdl-is-disabled:hover,.pill-selector-wrapper .bdl-PillSelector.is-disabled:hover,.pill-selector-wrapper .bdl-is-disabled.pill-selector-input-wrapper:hover,.pill-selector-wrapper .is-disabled.pill-selector-input-wrapper:hover{border-color:#bcbcbc}.bdl-PillSelectorDropdown .bdl-PillSelector.is-focused,.bdl-PillSelectorDropdown .is-focused.pill-selector-input-wrapper,.pill-selector-wrapper .bdl-PillSelector.is-focused,.pill-selector-wrapper .is-focused.pill-selector-input-wrapper{border-color:#0061d5;box-shadow:none;outline:0}.bdl-PillSelectorDropdown .bdl-PillSelector.is-focused .bdl-PillSelector-input--nextLine,.bdl-PillSelectorDropdown .is-focused.pill-selector-input-wrapper .bdl-PillSelector-input--nextLine,.pill-selector-wrapper .bdl-PillSelector.is-focused .bdl-PillSelector-input--nextLine,.pill-selector-wrapper .is-focused.pill-selector-input-wrapper .bdl-PillSelector-input--nextLine{flex:1 1 100%}.bdl-PillSelectorDropdown .bdl-PillSelector.show-error,.bdl-PillSelectorDropdown .show-error.pill-selector-input-wrapper,.pill-selector-wrapper .bdl-PillSelector.show-error,.pill-selector-wrapper .show-error.pill-selector-input-wrapper{border-color:#ed3757}.bdl-PillSelectorDropdown .bdl-PillSelector--suggestionsEnabled.pill-selector-input-wrapper,.bdl-PillSelectorDropdown .bdl-PillSelector.bdl-PillSelector--suggestionsEnabled,.bdl-PillSelectorDropdown .bdl-PillSelector.pill-selector-suggestions-enabled,.bdl-PillSelectorDropdown .pill-selector-suggestions-enabled.pill-selector-input-wrapper,.pill-selector-wrapper .bdl-PillSelector--suggestionsEnabled.pill-selector-input-wrapper,.pill-selector-wrapper .bdl-PillSelector.bdl-PillSelector--suggestionsEnabled,.pill-selector-wrapper .bdl-PillSelector.pill-selector-suggestions-enabled,.pill-selector-wrapper .pill-selector-suggestions-enabled.pill-selector-input-wrapper{min-height:80px}.bdl-PillSelectorDropdown .bdl-PillSelector:not(.show-error) .icon-alert,.bdl-PillSelectorDropdown .pill-selector-input-wrapper:not(.show-error) .icon-alert,.pill-selector-wrapper .bdl-PillSelector:not(.show-error) .icon-alert,.pill-selector-wrapper .pill-selector-input-wrapper:not(.show-error) .icon-alert{display:none}.bdl-PillSelectorDropdown .bdl-PillSelector .icon-alert,.bdl-PillSelectorDropdown .pill-selector-input-wrapper .icon-alert,.pill-selector-wrapper .bdl-PillSelector .icon-alert,.pill-selector-wrapper .pill-selector-input-wrapper .icon-alert{bottom:10px;height:16px;position:absolute;right:10px;width:16px}.bdl-PillSelectorDropdown .bdl-PillSelector .icon-alert path,.bdl-PillSelectorDropdown .pill-selector-input-wrapper .icon-alert path,.pill-selector-wrapper .bdl-PillSelector .icon-alert path,.pill-selector-wrapper .pill-selector-input-wrapper .icon-alert path{fill:#ed3757}.bdl-PillSelectorDropdown .bdl-PillSelector .bdl-Tooltip,.bdl-PillSelectorDropdown .bdl-PillSelector .tooltip,.bdl-PillSelectorDropdown .pill-selector-input-wrapper .bdl-Tooltip,.bdl-PillSelectorDropdown .pill-selector-input-wrapper .tooltip,.pill-selector-wrapper .bdl-PillSelector .bdl-Tooltip,.pill-selector-wrapper .bdl-PillSelector .tooltip,.pill-selector-wrapper .pill-selector-input-wrapper .bdl-Tooltip,.pill-selector-wrapper .pill-selector-input-wrapper .tooltip{margin-top:0!important;right:10px!important;top:calc(100% - 5px)!important}.bdl-PillSelectorDropdown .bdl-PillSelector .bdl-PillsList,.bdl-PillSelectorDropdown .bdl-PillSelector .pills-list,.bdl-PillSelectorDropdown .pill-selector-input-wrapper .bdl-PillsList,.bdl-PillSelectorDropdown .pill-selector-input-wrapper .pills-list,.pill-selector-wrapper .bdl-PillSelector .bdl-PillsList,.pill-selector-wrapper .bdl-PillSelector .pills-list,.pill-selector-wrapper .pill-selector-input-wrapper .bdl-PillsList,.pill-selector-wrapper .pill-selector-input-wrapper .pills-list{margin:0}.bdl-PillSelectorDropdown .bdl-PillSelector .bdl-PillsList li,.bdl-PillSelectorDropdown .bdl-PillSelector .pills-list li,.bdl-PillSelectorDropdown .pill-selector-input-wrapper .bdl-PillsList li,.bdl-PillSelectorDropdown .pill-selector-input-wrapper .pills-list li,.pill-selector-wrapper .bdl-PillSelector .bdl-PillsList li,.pill-selector-wrapper .bdl-PillSelector .pills-list li,.pill-selector-wrapper .pill-selector-input-wrapper .bdl-PillsList li,.pill-selector-wrapper .pill-selector-input-wrapper .pills-list li{float:left}.bdl-PillSelectorDropdown .bdl-PillSelector .bdl-PillSelector-input,.bdl-PillSelectorDropdown .bdl-PillSelector .pill-selector-input,.bdl-PillSelectorDropdown .pill-selector-input-wrapper .bdl-PillSelector-input,.bdl-PillSelectorDropdown .pill-selector-input-wrapper .pill-selector-input,.pill-selector-wrapper .bdl-PillSelector .bdl-PillSelector-input,.pill-selector-wrapper .bdl-PillSelector .pill-selector-input,.pill-selector-wrapper .pill-selector-input-wrapper .bdl-PillSelector-input,.pill-selector-wrapper .pill-selector-input-wrapper .pill-selector-input{background-color:initial;border:0;box-shadow:none;box-sizing:initial!important;color:#4f4f4f;flex:1;height:18px;line-height:18px;margin:1px;min-width:0;overflow:hidden;padding:3px;resize:none;white-space:nowrap}.bdl-PillSelectorDropdown .bdl-PillSelector .bdl-PillSelector-input:focus,.bdl-PillSelectorDropdown .bdl-PillSelector .bdl-PillSelector-input:hover,.bdl-PillSelectorDropdown .bdl-PillSelector .pill-selector-input:focus,.bdl-PillSelectorDropdown .bdl-PillSelector .pill-selector-input:hover,.bdl-PillSelectorDropdown .pill-selector-input-wrapper .bdl-PillSelector-input:focus,.bdl-PillSelectorDropdown .pill-selector-input-wrapper .bdl-PillSelector-input:hover,.bdl-PillSelectorDropdown .pill-selector-input-wrapper .pill-selector-input:focus,.bdl-PillSelectorDropdown .pill-selector-input-wrapper .pill-selector-input:hover,.pill-selector-wrapper .bdl-PillSelector .bdl-PillSelector-input:focus,.pill-selector-wrapper .bdl-PillSelector .bdl-PillSelector-input:hover,.pill-selector-wrapper .bdl-PillSelector .pill-selector-input:focus,.pill-selector-wrapper .bdl-PillSelector .pill-selector-input:hover,.pill-selector-wrapper .pill-selector-input-wrapper .bdl-PillSelector-input:focus,.pill-selector-wrapper .pill-selector-input-wrapper .bdl-PillSelector-input:hover,.pill-selector-wrapper .pill-selector-input-wrapper .pill-selector-input:focus,.pill-selector-wrapper .pill-selector-input-wrapper .pill-selector-input:hover{outline:none}.bdl-PillSelectorDropdown .bdl-PillSelector .bdl-RoundPill~.bdl-PillSelector-input,.bdl-PillSelectorDropdown .bdl-PillSelector .bdl-RoundPill~.pill-selector-input,.bdl-PillSelectorDropdown .pill-selector-input-wrapper .bdl-RoundPill~.bdl-PillSelector-input,.bdl-PillSelectorDropdown .pill-selector-input-wrapper .bdl-RoundPill~.pill-selector-input,.pill-selector-wrapper .bdl-PillSelector .bdl-RoundPill~.bdl-PillSelector-input,.pill-selector-wrapper .bdl-PillSelector .bdl-RoundPill~.pill-selector-input,.pill-selector-wrapper .pill-selector-input-wrapper .bdl-RoundPill~.bdl-PillSelector-input,.pill-selector-wrapper .pill-selector-input-wrapper .bdl-RoundPill~.pill-selector-input{height:28px;line-height:28px}.bdl-PillSelectorDropdown .SelectorDropdown-overlay>ul.overlay,.pill-selector-wrapper .SelectorDropdown-overlay>ul.overlay{position:relative}.notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:200}.notification{align-items:center;background-color:#e8e8e8;border:2px solid #222;border-radius:8px;box-shadow:0 2px 6px #00000026;color:#222;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;opacity:1;overflow:hidden;padding:10px 10px 10px 20px;transition:opacity .1s ease-out}.notification.info{background-color:#d4f3e6;border-color:#26c281}.notification.warn{background-color:#fdf0d1;border-color:#f5b31b}.notification.error{background-color:#fbd7dd;border-color:#ed3757}.notification.is-hidden{box-shadow:none;opacity:0}.notification>span{font-size:15px;margin-right:auto;padding-right:10px}.notification>svg{flex:none;margin-right:15px}.notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.notification a,.notification button{color:#222;flex:none;font-weight:700}.notification a.btn.is-disabled,.notification a.btn:not(.is-disabled),.notification button.btn.is-disabled,.notification button.btn:not(.is-disabled){background-color:initial;border-color:#222;margin:0 5px;padding:7px 13px}.notification a.close-btn,.notification button.close-btn{align-items:center;background:none;border:none;cursor:pointer;display:flex;outline:none}.notification a.close-btn path,.notification button.close-btn path{fill:#222}.be{background:#fff;border:0;color:#222;font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px;height:100%;letter-spacing:.3px;line-height:20px;margin:0;outline:none;overflow:hidden;padding:0;width:100%}.be,.be *{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;box-sizing:border-box!important;text-rendering:optimizeLegibility}.be *{font-family:inherit}.be :after,.be :before{box-sizing:inherit;color:inherit;font-family:inherit;text-rendering:inherit}.be .lnk,.be a{color:#0061d5;text-decoration:none}.be .lnk{background:#0000 none;border:none;cursor:pointer;display:inline;filter:none;margin:0;padding:0}.be .lnk,.be .lnk:active,.be .lnk:hover{box-shadow:none;height:auto;line-height:inherit}.be .lnk:active,.be .lnk:hover{background:#0000}.be .lnk:active{color:#0061d5}.be .lnk.bdl-is-disabled:focus,.be .lnk.is-disabled:focus,.be .lnk:active,.be .lnk:focus,.be a.bdl-is-disabled:focus,.be a.is-disabled:focus,.be a:focus{text-decoration:underline}.be .lnk.bdl-is-disabled,.be .lnk.bdl-is-disabled:active,.be .lnk.bdl-is-disabled:hover,.be .lnk.is-disabled,.be .lnk.is-disabled:active,.be .lnk.is-disabled:hover,.be a.bdl-is-disabled,.be a.bdl-is-disabled:active,.be a.bdl-is-disabled:hover,.be a.is-disabled,.be a.is-disabled:active,.be a.is-disabled:hover{color:#909090;cursor:default;text-decoration:none}.be .lnk-plain{color:inherit}.be .lnk-plain:active,.be .lnk-plain:hover{text-decoration:none}.be .lnk-plain.bdl-is-disabled,.be .lnk-plain.bdl-is-disabled:active,.be .lnk-plain.bdl-is-disabled:hover,.be .lnk-plain.is-disabled,.be .lnk-plain.is-disabled:active,.be .lnk-plain.is-disabled:hover{color:#909090}.be a svg{pointer-events:none}.be .link{color:#6f6f6f;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s;white-space:nowrap;font-smoothing:antialiased}.be .link:hover{color:#0061d5}.be .link-group-title{color:#a7a7a7;font-size:10px;letter-spacing:.1em;line-height:28px;text-transform:uppercase}.be div[contentEditable=true],.be input[type=date],.be input[type=email],.be input[type=number],.be input[type=password],.be input[type=search],.be input[type=tel],.be input[type=text],.be input[type=url],.be textarea{border:1px solid #d3d3d3;border-radius:6px;box-shadow:inset 0 2px 4px #0000001a;color:#222;padding:7px;transition:border-color .15s linear,box-shadow .1s linear;width:262px;-webkit-font-smoothing:antialiased}.be div[contentEditable=true]:hover,.be input[type=date]:hover,.be input[type=email]:hover,.be input[type=number]:hover,.be input[type=password]:hover,.be input[type=search]:hover,.be input[type=tel]:hover,.be input[type=text]:hover,.be input[type=url]:hover,.be textarea:hover{box-shadow:inset 0 2px 4px #0000001a}.be div[contentEditable=true]:focus,.be input[type=date]:focus,.be input[type=email]:focus,.be input[type=number]:focus,.be input[type=password]:focus,.be input[type=search]:focus,.be input[type=tel]:focus,.be input[type=text]:focus,.be input[type=url]:focus,.be textarea:focus{border:1px solid #0061d5;outline:0}.be input:-ms-input-placeholder,.be input::-moz-placeholder,.be input::-webkit-input-placeholder{color:#d3d3d3}.be div[contentEditable=true].is-invalid,.be input[type=date].is-invalid,.be input[type=email].is-invalid,.be input[type=number].is-invalid,.be input[type=password].is-invalid,.be input[type=search].is-invalid,.be input[type=tel].is-invalid,.be input[type=text].is-invalid,.be input[type=url].is-invalid,.be textarea.is-invalid{border:1px solid #ed3757}.be div[contentEditable=true].is-invalid:focus,.be input[type=date].is-invalid:focus,.be input[type=email].is-invalid:focus,.be input[type=number].is-invalid:focus,.be input[type=password].is-invalid:focus,.be input[type=search].is-invalid:focus,.be input[type=tel].is-invalid:focus,.be input[type=text].is-invalid:focus,.be input[type=url].is-invalid:focus,.be textarea.is-invalid:focus{border:1px solid #f44}.be div[contentEditable=true]:disabled,.be input[type=date]:disabled,.be input[type=email]:disabled,.be input[type=number]:disabled,.be input[type=password]:disabled,.be input[type=search]:disabled,.be input[type=tel]:disabled,.be input[type=text]:disabled,.be input[type=url]:disabled,.be textarea:disabled{background-color:#fbfbfb;border-color:#e8e8e8;box-shadow:none;color:#bcbcbc}.be div[contentEditable=true]:disabled:hover,.be input[type=date]:disabled:hover,.be input[type=email]:disabled:hover,.be input[type=number]:disabled:hover,.be input[type=password]:disabled:hover,.be input[type=search]:disabled:hover,.be input[type=tel]:disabled:hover,.be input[type=text]:disabled:hover,.be input[type=url]:disabled:hover,.be textarea:disabled:hover{border-color:#e8e8e8}.be input[type=search]{-webkit-appearance:textfield}.be input[type=search]::-webkit-search-cancel-button,.be input[type=search]::-webkit-search-results-button{display:none}.be input::-ms-clear{display:none}.be textarea{vertical-align:top}.be .input-x-small,.be .input-x-small[type]{width:100px}.be .input-small,.be .input-small[type]{width:150px}.be .input-medium,.be .input-medium[type]{width:300px}.be .input-large,.be .input-large[type]{width:375px}.be .input-x-large,.be .input-x-large[type]{width:475px}.be .input-full,.be .input-full[type]{width:100%}.be .label-sep:after{content:":"}.be .select-container .bdl-SelectButton,.be .select-container .select-button,.be .select-container select{appearance:none;cursor:pointer;display:inline-block;height:34px;padding:5px 0 5px 10px;position:relative;width:100%;z-index:1}.be .select-container select{background:none;border:none;color:#222;padding-right:25px}.be .select-container .bdl-SelectButton:disabled,.be .select-container .select-button:disabled,.be .select-container select:disabled{cursor:default}.be .select-container{display:inline-block;position:relative}.be .select-container .bdl-SelectButton,.be .select-container .select-button,.be .select-container .select-container-inner{display:inline-block;overflow:hidden;text-align:left;text-overflow:ellipsis;vertical-align:top;white-space:nowrap;width:100%}.be .select-container .select-overlay{box-sizing:border-box;height:100%;left:0;margin:0;padding:0;position:absolute;top:0;width:100%}.be .select-container .bdl-SelectButton,.be .select-container .select-button,.be .select-container .select-overlay{background-color:#fff;border:1px solid #d3d3d3;border-radius:6px;box-shadow:0 1px 1px 1px #0000000d;transition:border-color .15s linear,box-shadow .1s linear}.be .select-container .bdl-SelectButton:before,.be .select-container .select-button:before,.be .select-container .select-overlay:before{border-left:3px solid #0000;border-right:3px solid #0000;border-top:3px solid #4e4e4e;content:"";height:0;position:absolute;right:11px;top:15px;transition:transform .15s;width:0}.be .select-container .bdl-SelectButton[aria-expanded=true]:before,.be .select-container .select-button[aria-expanded=true]:before{transform:rotate(180deg)}.be .select-container .bdl-SelectButton,.be .select-container .select-button{color:#222;padding-right:25px}.be .select-container .bdl-SelectButton:focus,.be .select-container .select-button:focus,.be .select-container select:focus{outline:none}.be .select-container .bdl-SelectButton:focus,.be .select-container .select-button:focus,.be .select-container select:focus~.select-overlay{border:1px solid #0061d5}.be .select-container .bdl-SelectButton:hover,.be .select-container .select-button:hover,.be .select-container select:hover~.select-overlay{border:1px solid #4c4c4c;box-shadow:0 1px 1px 1px #0000001a}.be .select-container .bdl-SelectButton:disabled,.be .select-container .select-button:disabled,.be .select-container select:disabled{color:#bcbcbc}.be .select-container .bdl-SelectButton:disabled,.be .select-container .select-button:disabled,.be .select-container select:disabled~.select-overlay{background-color:#fbfbfb;border-color:#e8e8e8;box-shadow:none}.be .select-container .bdl-SelectButton:disabled:hover,.be .select-container .select-button:disabled:hover,.be .select-container select:disabled:hover~.select-overlay{box-shadow:none}.be .select-container .bdl-SelectButton:disabled:before,.be .select-container .select-button:disabled:before,.be .select-container select:disabled~.select-overlay:before{border-top:3px solid #d5d5d5}.be .select-container.is-invalid .bdl-SelectButton:focus~.select-overlay,.be .select-container.is-invalid .select-button:focus~.select-overlay,.be .select-container.is-invalid select+.select-overlay,.be .select-container.is-invalid select:focus~.select-overlay,.be .select-container.is-invalid select:hover+.select-overlay{border:1px solid #ed3757}.be .select-container .bdl-SelectButton:active,.be .select-container .select-button:active{background-color:#e8e8e8}.be .select-container-x-small{width:50px}.be .select-container-small{width:100px}.be .select-container-medium{width:200px}.be .select-container-large{width:262px}.be .select-container-x-large{width:345px}.be .select-container.huge{width:500px}.be select::-ms-expand{display:none}.be div[contentEditable=true],.be input[type=date],.be input[type=email],.be input[type=number],.be input[type=password],.be input[type=search],.be input[type=tel],.be input[type=text],.be input[type=url],.be textarea{border-color:#909090}.be ::-webkit-input-placeholder{color:#6f6f6f;font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400;opacity:1}.be ::-moz-placeholder{color:#6f6f6f;font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400;opacity:1}.be :-ms-input-placeholder{color:#6f6f6f;font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400;opacity:1}.be ::-webkit-file-upload-button{cursor:pointer}.be ul{margin:0;padding:0}.be ul li{list-style:none}.be .bdl-SelectButton,.be .btn-plain,.be .select-button,.be input,.be select,.be textarea{font:inherit}.ReactModal__Body--open .be{position:relative}.be-modal{color:#222;font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px;letter-spacing:.3px;line-height:20px}.be-modal,.be-modal *{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;box-sizing:border-box!important;text-rendering:optimizeLegibility}.be-modal *{font-family:inherit}.be-modal :after,.be-modal :before{box-sizing:inherit;color:inherit;font-family:inherit;text-rendering:inherit}.be-modal div[contentEditable=true],.be-modal input[type=date],.be-modal input[type=email],.be-modal input[type=number],.be-modal input[type=password],.be-modal input[type=search],.be-modal input[type=tel],.be-modal input[type=text],.be-modal input[type=url],.be-modal textarea{border-color:#909090}.be-modal ::-webkit-input-placeholder{color:#6f6f6f;font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400;opacity:1}.be-modal ::-moz-placeholder{color:#6f6f6f;font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400;opacity:1}.be-modal :-ms-input-placeholder{color:#6f6f6f;font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400;opacity:1}.be-modal ::-webkit-file-upload-button{cursor:pointer}.be-modal ul{margin:0;padding:0}.be-modal ul li{list-style:none}.be-modal .bdl-SelectButton,.be-modal .btn-plain,.be-modal .select-button,.be-modal input,.be-modal select,.be-modal textarea{font:inherit}.be-app-element{display:flex;flex-direction:column;height:100%;width:100%}.be-input-link{color:#0061d5;cursor:pointer;display:block}.be-input-link:active,.be-input-link:focus,.be-input-link:hover{text-decoration:underline}.be-input-link input{display:none}.be-input-btn{cursor:pointer;display:block}.be-hidden,.be-input-btn input{display:none}.menu-toggle{align-items:center;display:flex}.menu-toggle>.toggle-arrow{flex:none;margin-left:5px;transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(0,0,.6,1)}.dropdown-menu-enabled .menu-toggle>.toggle-arrow,.is-toggled .menu-toggle>.toggle-arrow{transform:rotate(180deg)}.lnk .menu-toggle>.toggle-arrow{margin-top:2px}.lnk .menu-toggle>.toggle-arrow path{fill:#0061d5}.btn-primary .menu-toggle .fill-color{fill:#fff}.lnk.bdl-is-disabled .menu-toggle .fill-color,.lnk.is-disabled .menu-toggle .fill-color{fill:#909090}.btn.bdl-CloseButton{background-color:#e8e8e8;border:none;border-radius:6px;height:32px;padding:0;width:32px}.bdl-MenuHeader{align-items:center;display:flex;justify-content:flex-end;max-width:100%}.bdl-MenuHeader-content{display:flex;flex:1;padding-right:5px}.bdl-MenuHeader-title-container{display:flex;flex-direction:column;min-width:0}.bdl-MenuHeader-title{display:-webkit-box;line-height:1.5;overflow:hidden;overflow-wrap:anywhere;white-space:normal;word-break:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;color:#222;font-size:16px;font-weight:700;margin:0}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bdl-MenuHeader-title{text-overflow:ellipsis;white-space:nowrap}}.bdl-MenuHeader-subtitle{color:#6f6f6f;font-size:12px;margin:0}.submenu-target{position:relative}.submenu-target .submenu{left:calc(100% + 12px);position:absolute;right:auto;top:-12px;z-index:171}.submenu-target .submenu.is-left-aligned{left:auto;right:100%}.submenu-target .submenu.is-hidden{left:-9999px;right:auto}.submenu-target .submenu.is-bottom-aligned{bottom:-12px;top:auto}.submenu-target .menu-item-arrow{position:absolute;right:8px;top:12px}.bdl-Pagination-dropdownMenu{margin-bottom:5px;max-height:300px;overflow:auto}.bdl-ButtonGroup,.btn-group{position:relative}.bdl-ButtonGroup .toggle-overlay,.btn-group .toggle-overlay{display:inline}.bdl-ButtonGroup .toggle-overlay>.bdl-targeted-click-through>.btn,.bdl-ButtonGroup .toggle-overlay>.btn,.btn-group .toggle-overlay>.bdl-targeted-click-through>.btn,.btn-group .toggle-overlay>.btn{border-radius:0 6px 6px 0;margin-left:0;padding-left:11px;padding-right:11px}.bdl-ButtonGroup .toggle-overlay>.bdl-targeted-click-through>.btn.btn-primary,.bdl-ButtonGroup .toggle-overlay>.btn.btn-primary,.btn-group .toggle-overlay>.bdl-targeted-click-through>.btn.btn-primary,.btn-group .toggle-overlay>.btn.btn-primary{border-left-color:#004aa2}.bdl-ButtonGroup .toggle-overlay .icon-caret-down:after,.btn-group .toggle-overlay .icon-caret-down:after{content:""}.bdl-ButtonGroup .toggle-overlay .icon-caret-down path,.btn-group .toggle-overlay .icon-caret-down path{fill:#fff}.bdl-ButtonGroup .toggle-overlay .overlay-wrapper,.btn-group .toggle-overlay .overlay-wrapper{position:static}.bdl-ButtonGroup .toggle-overlay .overlay-wrapper .overlay,.btn-group .toggle-overlay .overlay-wrapper .overlay{left:0}.bdl-ButtonGroup>.bdl-targeted-click-through>.btn,.bdl-ButtonGroup>.btn,.btn-group>.bdl-targeted-click-through>.btn,.btn-group>.btn{border-radius:0;margin:5px 0 5px -1px}.bdl-ButtonGroup>.bdl-targeted-click-through>.btn.btn-primary,.bdl-ButtonGroup>.btn.btn-primary,.btn-group>.bdl-targeted-click-through>.btn.btn-primary,.btn-group>.btn.btn-primary{border-right-color:#004aa2;margin:5px 0}.bdl-ButtonGroup>.bdl-targeted-click-through>.btn.btn-primary.is-selected,.bdl-ButtonGroup>.btn.btn-primary.is-selected,.btn-group>.bdl-targeted-click-through>.btn.btn-primary.is-selected,.btn-group>.btn.btn-primary.is-selected{background-color:#004eac;border-color:#003e89;box-shadow:none;color:#fff}.bdl-ButtonGroup>.bdl-targeted-click-through>.btn.btn-primary:last-of-type,.bdl-ButtonGroup>.btn.btn-primary:last-of-type,.btn-group>.bdl-targeted-click-through>.btn.btn-primary:last-of-type,.btn-group>.btn.btn-primary:last-of-type{border-right-color:#0061d5}.bdl-ButtonGroup>.bdl-targeted-click-through>.btn:first-child,.bdl-ButtonGroup>.btn:first-child,.btn-group>.bdl-targeted-click-through>.btn:first-child,.btn-group>.btn:first-child{border-bottom-left-radius:6px;border-top-left-radius:6px}.bdl-ButtonGroup>.bdl-targeted-click-through>.btn:last-child,.bdl-ButtonGroup>.btn:last-child,.btn-group>.bdl-targeted-click-through>.btn:last-child,.btn-group>.btn:last-child{border-bottom-right-radius:6px;border-top-right-radius:6px}.bdl-ButtonGroup>.bdl-targeted-click-through>.btn.is-selected,.bdl-ButtonGroup>.btn.is-selected,.btn-group>.bdl-targeted-click-through>.btn.is-selected,.btn-group>.btn.is-selected{background-color:#e8e8e8;border-color:#6f6f6f;box-shadow:none;color:#4e4e4e;z-index:2}.bdl-ButtonGroup>.bdl-targeted-click-through>.btn:focus,.bdl-ButtonGroup>.btn:focus,.btn-group>.bdl-targeted-click-through>.btn:focus,.btn-group>.btn:focus{z-index:3}.bdl-ButtonGroup.bdl-is-disabled>.bdl-Button,.bdl-ButtonGroup.bdl-is-disabled>.bdl-targeted-click-through>.bdl-Button,.bdl-ButtonGroup.bdl-is-disabled>.bdl-targeted-click-through>.btn,.bdl-ButtonGroup.bdl-is-disabled>.btn,.bdl-ButtonGroup.is-disabled>.bdl-Button,.bdl-ButtonGroup.is-disabled>.bdl-targeted-click-through>.bdl-Button,.bdl-ButtonGroup.is-disabled>.bdl-targeted-click-through>.btn,.bdl-ButtonGroup.is-disabled>.btn,.bdl-is-disabled.btn-group>.bdl-Button,.bdl-is-disabled.btn-group>.bdl-targeted-click-through>.bdl-Button,.bdl-is-disabled.btn-group>.bdl-targeted-click-through>.btn,.bdl-is-disabled.btn-group>.btn,.is-disabled.btn-group>.bdl-Button,.is-disabled.btn-group>.bdl-targeted-click-through>.bdl-Button,.is-disabled.btn-group>.bdl-targeted-click-through>.btn,.is-disabled.btn-group>.btn{background-color:#fbfbfb;border:1px solid #bcbcbc;box-shadow:none;color:#6f6f6f;cursor:default;opacity:.4}.bdl-ButtonGroup.bdl-is-disabled>.bdl-targeted-click-through>.btn-primary,.bdl-ButtonGroup.bdl-is-disabled>.btn-primary,.bdl-ButtonGroup.is-disabled>.bdl-targeted-click-through>.btn-primary,.bdl-ButtonGroup.is-disabled>.btn-primary,.bdl-is-disabled.btn-group>.bdl-targeted-click-through>.btn-primary,.bdl-is-disabled.btn-group>.btn-primary,.is-disabled.btn-group>.bdl-targeted-click-through>.btn-primary,.is-disabled.btn-group>.btn-primary{background-color:#0061d5;border-color:#0061d5 #004aa2 #0061d5 #0061d5;color:#fff}.bdl-ButtonGroup.bdl-is-disabled>.bdl-targeted-click-through>.btn-primary:last-of-type,.bdl-ButtonGroup.bdl-is-disabled>.btn-primary:last-of-type,.bdl-ButtonGroup.is-disabled>.bdl-targeted-click-through>.btn-primary:last-of-type,.bdl-ButtonGroup.is-disabled>.btn-primary:last-of-type,.bdl-is-disabled.btn-group>.bdl-targeted-click-through>.btn-primary:last-of-type,.bdl-is-disabled.btn-group>.btn-primary:last-of-type,.is-disabled.btn-group>.bdl-targeted-click-through>.btn-primary:last-of-type,.is-disabled.btn-group>.btn-primary:last-of-type{border-right-color:#0061d5}.bdl-Pagination{display:flex}.bdl-Pagination .bdl-Pagination-count{align-items:center;display:flex}.bdl-Pagination .bdl-Pagination-toggle{margin-left:5px;margin-right:5px}.be-empty{align-items:center;display:flex;flex:1;flex-direction:column;justify-content:center;text-align:center}.be-progress-container{left:0;position:absolute;top:0;transition:opacity .4s;width:100%;z-index:190}.be-progress-container .be-progress{background:#0061d5;box-shadow:0 1px 5px 0 #e4f4ff;height:2px;max-width:100%;transition:width .4s}.be-item-label{display:block;outline:none;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%}.be-date-capitalize{text-transform:capitalize}.bdl-GridView .bdl-ItemSubDetails-modifiedBy,.bdl-GridView .bdl-ItemSubDetails-size{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bce-item-row .bdl-ItemSubDetails-size:before,.bcp-item-row .bdl-ItemSubDetails-size:before{content:"•";font-size:8px;padding-left:3px;padding-right:3px;vertical-align:middle}.be-item-name .be-item-details{color:#6f6f6f;font-size:11px}.be-item-name{line-height:15px;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:normal}.be-item-icon{align-items:center;display:flex;flex:0 0 50px;justify-content:center}.be-is-small .be-item-icon{flex:0 0 30px}.be select.be-share-access-select{appearance:none;background:none;background-image:linear-gradient(45deg,#0000 50%,#6f6f6f 0),linear-gradient(135deg,#6f6f6f 50%,#0000 0);background-position:right 14px center,right 10px center;background-repeat:no-repeat;background-size:4px 4px,4px 4px;border:1px solid #bdc3c7;border-radius:2px;color:inherit;cursor:pointer;padding:5px 25px 5px 10px}.be select.be-share-access-select:hover{border-color:#0061d5}.be select.be-share-access-select:active,.be select.be-share-access-select:focus{background-image:linear-gradient(45deg,#0000 50%,#0061d5 0),linear-gradient(135deg,#0061d5 50%,#0000 0);border-color:#0061d5;color:#0061d5;outline:none}.be select.be-share-access-select:disabled{background-image:linear-gradient(45deg,#0000 50%,#e8e8e8 0),linear-gradient(135deg,#e8e8e8 50%,#0000 0);border-color:#e8e8e8;color:#e8e8e8}.be select.be-share-access-select:-moz-focusring,.be select.be-share-access-select::-moz-focus-inner{color:#0000!important;text-shadow:0 0 0 #222!important}.be select.be-share-access-select::-ms-expand{display:none!important}.checkbox-label{display:inline-flex;position:relative;-webkit-user-select:none;user-select:none}.checkbox-label>input[type=checkbox]{flex:none;height:14px;margin:3px 0 0;opacity:0;width:14px}.checkbox-label>input[type=checkbox]+span:before{background:#fff;border:1px solid #909090;border-radius:2px;content:"";height:14px;left:0;pointer-events:none;position:absolute;top:3px;width:14px}.checkbox-label>input[type=checkbox]+span:after{backface-visibility:hidden;border-bottom:2px solid #0061d5;border-right:2px solid #0061d5;content:"";height:7px;left:5px;pointer-events:none;position:absolute;top:6px;transform:rotate(45deg) scale(0) translateZ(0);transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(0,0,.6,1);width:4px}.checkbox-label>input[type=checkbox]:checked+span:after{transform:rotate(45deg) scale(1) translateZ(0)}.checkbox-label>input[type=checkbox]:focus+span:before{border:2px solid #0061d5}.checkbox-label>input[type=checkbox]:disabled+span:before{background-color:#fbfbfb;border:1px solid #d3d3d3}.checkbox-label>input[type=checkbox]:disabled+span:after{border-color:#bcbcbc}.bdl-Checkbox-labelTooltipWrapper{margin-left:10px}.checkbox-tooltip-wrapper{display:inline-flex;vertical-align:text-bottom}.checkbox-tooltip-wrapper>.info-tooltip{display:inline-block;flex:none;height:16px;margin-left:5px;position:relative;width:16px}.checkbox-tooltip-wrapper>.info-tooltip>svg path{fill:#0061d5}.checkbox-container{margin:0 0 20px}.checkbox-container.bdl-is-disabled .checkbox-label,.checkbox-container.is-disabled .checkbox-label{color:#6f6f6f}.checkbox-container>.bdl-Label,.checkbox-container>.label{margin:8px 0}.checkbox-description,.checkbox-subsection{margin-left:24px;margin-top:2px}.checkbox-description{color:#6f6f6f}.radio-label{align-items:center;display:inline-flex;position:relative;-webkit-user-select:none;user-select:none}.radio-label>input[type=radio]{flex:none;height:14px;margin:0;opacity:0;width:14px}.radio-label>input[type=radio]+span:before{background-color:#fff;border:7px solid #fff;border-radius:9001px;box-shadow:0 0 0 1px #909090,0 -1px 1px #0006;content:"";height:14px;left:0;position:absolute;top:3px;transition:border-width .1s;width:14px}.radio-label>input[type=radio]:checked+span:before{background-color:#0061d5;border:3px solid #fff}.radio-label>input[type=radio]:focus+span:before{box-shadow:0 0 0 2px #0061d5}.radio-label>input[type=radio]:disabled+span:before{background-color:#bcbcbc;border-color:#fbfbfb;box-shadow:0 0 0 1px #d3d3d3}.radio-label>input[type=radio]+span+span{margin-left:10px}.radio-label>input[type=radio]:disabled+span+span{color:#bcbcbc}.radio-container{margin:0 0 20px}.radio-description{color:#6f6f6f;margin-left:24px;margin-top:2px}.bcp-item-grid{flex:1}.bcp-item-grid .ReactVirtualized__Table__Grid{outline:none}.bcp-item-row{border-bottom:1px solid #0000;border-left:2px solid #0000;border-top:1px solid #e8e8e8;outline:none}.bcp-item-row.bcp-item-row-selected{background-color:#e4f4ff;border-top-color:#bed4de}.bcp-item-row.bcp-item-row-selected .be-item-label,.be .bcp-item-row.bcp-item-row-selected .btn-plain{color:#1a5976;outline:none}.bcp-item-row:first-child{border-top-color:#0000!important}.bcp-item-row:last-child{border-bottom:1px solid #e8e8e8}.bcp-item-row:last-child.bcp-item-row-selected{border-bottom-color:#bed4de}.bcp-item-row.bcp-item-row-unselectable .ReactVirtualized__Table__rowColumn{opacity:.3}.bcp-item-row select.bcp-shared-access-select{background-image:none;border-color:#0000}.bcp-item-row select.bcp-shared-access-select:active,.bcp-item-row select.bcp-shared-access-select:focus{background-color:#fff;background-image:linear-gradient(45deg,#0000 50%,#0061d5 0),linear-gradient(135deg,#0061d5 50%,#0000 0);border-color:#0061d5;color:#0061d5;outline:none}.bcp-item-row .checkbox-container,.bcp-item-row .radio-container{margin:0 0 0 1px}.bcp-item-row .checkbox-container input,.bcp-item-row .checkbox-container span,.bcp-item-row .radio-container input,.bcp-item-row .radio-container span{cursor:pointer}.bcp-item-row:active,.bcp-item-row:focus,.bcp-item-row:hover{background-color:#e4f4ff66;border-left-color:#1a5976}.bcp-item-row:active select.bcp-shared-access-select,.bcp-item-row:focus select.bcp-shared-access-select,.bcp-item-row:hover select.bcp-shared-access-select{background-color:#fff;background-image:linear-gradient(45deg,#0000 50%,#6f6f6f 0),linear-gradient(135deg,#6f6f6f 50%,#0000 0);border-color:#d3d3d3}.bcp-item-row:active .be-item-label,.bcp-item-row:focus .be-item-label,.bcp-item-row:hover .be-item-label,.be .bcp-item-row:active .btn-plain,.be .bcp-item-row:focus .btn-plain,.be .bcp-item-row:hover .btn-plain{color:#1a5976}.bcp-item-row.bcp-item-row-selected+.bcp-item-row{border-top-color:#bed4de}.bcp-content{display:flex;flex:1 0 160px;flex-direction:column;position:relative}.bcp-share-access-loading{align-items:center;display:flex;height:30px}.bcp-footer{align-items:center;background-color:#fcfcfc;border-top:1px solid #e8e8e8;display:flex;flex:0 1 70px;justify-content:space-between;padding:0 20px}.bcp-footer .bcp-footer-left{flex:0 1 100%;min-width:0}.bcp-footer .bcp-selected{margin:0;max-width:100%}.bcp-footer .bcp-selected .btn-content{display:inline-block;line-height:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.bcp-footer .bcp-selected-max{animation:be_pulse .5s linear 2;color:#c82341;display:inline-block;font-size:11px;margin-left:5px}.bcp-footer .bcp-footer-actions .btn{height:32px;padding:0;width:40px}.bcp-footer .bcp-footer-actions .btn:first-child{border-right:0}.bcp-footer .bcp-footer-actions .btn-primary svg{fill:#fff}.bcp-footer .bcp-footer-right{display:flex;flex:1 0 auto}.bcp-footer .bdl-ButtonGroup,.bcp-footer .btn-group{margin-left:5px;margin-right:5px}.be-is-small .bcp-footer .bdl-Pagination-count{display:none}@keyframes be_pulse{0%,to{transform:scale(1)}50%{transform:scale(1.2)}}.be-modal .be-modal-btns{display:flex;justify-content:center;padding:15px 0 0}.be-modal .be-modal-btns .btn{font-size:14px;line-height:38px;margin-left:8px;padding:0 16px}.be-modal .be-modal-error{color:#c82341}.be-modal-dialog-content,.be-modal-dialog-content-full-bleed,.be-modal-wrapper-content{background-color:#fff;border:0;border-radius:0;bottom:0;left:0;margin:0;outline:none;padding:0;position:absolute;right:0;top:0}.be-modal-dialog-overlay,.be-modal-wrapper-overlay{background-color:#3336;bottom:0;left:0;position:fixed;right:0;top:0}.be-modal-dialog-content{border-radius:4px;bottom:auto;left:50%;margin-right:-50%;padding:25px;position:absolute;right:auto;top:50%;transform:translate(-50%,-50%);width:400px}.be-is-small .be-modal-dialog-content{width:340px}.be-modal-dialog-overlay{position:absolute}.be.bcp{min-width:300px}'}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__=__webpack_require__(1838);module.exports=__webpack_exports__})();
|