Mini Kabibi Habibi
/*! For license information please see UNC-shared.js.LICENSE.txt */
var UNC;!function(){var e={7780:function(e,t,n){"use strict";var i=n(6153);e.exports=i},6153:function(e,t,n){var i,o,r,a;function s(e){return s="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},s(e)}e=n.nmd(e),a=function(){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=2)}([function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var i=new Uint8Array(16);e.exports=function(){return n(i),i}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},function(e,t){for(var n=[],i=0;i<256;++i)n[i]=(i+256).toString(16).substr(1);e.exports=function(e,t){var i=t||0,o=n;return[o[e[i++]],o[e[i++]],o[e[i++]],o[e[i++]],"-",o[e[i++]],o[e[i++]],"-",o[e[i++]],o[e[i++]],"-",o[e[i++]],o[e[i++]],"-",o[e[i++]],o[e[i++]],o[e[i++]],o[e[i++]],o[e[i++]],o[e[i++]]].join("")}},function(e,t,n){"use strict";var i=n(3);e.exports=i},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a="function"==typeof Symbol&&"symbol"==s(Symbol.iterator)?function(e){return s(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":s(e)},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=i(n(4)),u=i(n(7)),f=i(n(10)),d=i(n(11)),p=[],h=[],g={},m=!1,y=function(){function e(t){var n=this;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.eventsObject={},this.sourcesObject={},this.contentsObject={},this.usersObject={},this.uiObject={},this.environmentObject={},this.consumerObject={},this.experimentObject={},this.customObject={},this.searchObject={},this.trnObject={},this.contextObject={},this.metricsCollection=[],this.initData={},this.initData.hostName="https://cc-api-data-stage.adobe.io",void 0===t||"production"!==t.environment&&"prod"!==t.environment||(this.initData.hostName="https://cc-api-data.adobe.io"),t&&(f.default.log("initData = ",t),Object.keys(t).forEach((function(e){t.hasOwnProperty(e)&&(n.initData[e]=t[e])}))),this.haveIMSObject="undefined"!=typeof adobeIMS&&adobeIMS.isSignedInUser()}return c(e,[{key:"deferredPost",value:function(e,t){p.push(e),h.push(t),g={deferredInitDataArray:h,deferredPostArrays:p}}},{key:"isVisitorGuidDefined",value:function(e){return e[0].events[0].data["event.visitor_guid"]||m}},{key:"getInstance",value:function(){var e=void 0;if(!window.Visitor)return e;try{e=void 0!==this.initData.visitorGUID?Visitor.getInstance(this.initData.visitorGUID):Visitor.getInstance("D6FAAFAD54CA9F560A4C98A5@AdobeOrg")}catch(e){console.warn(e)}return e}},{key:"getMCID",value:function(){if(!window.Visitor)return null;var e=this.getInstance();return void 0!==e?e.getMarketingCloudVisitorID():null}},{key:"getVisitorGuid",value:function(){if(!window.Visitor)return e.generateVisitorGuid();var t=this.getInstance();return void 0!==t?t.getMarketingCloudVisitorID():e.generateVisitorGuid()}},{key:"initAnalytics",value:function(){if(void 0===e.visitorGuid&&"undefined"!=typeof Visitor){m=!0;var t=this.getMCID();t&&(e.visitorGuid=t)}f.default.log("Ingest.visitorGuid = ",e.visitorGuid)}},{key:"initArrays",value:function(e){this.eventsObject={},this.sourcesObject={},this.contentsObject={},this.usersObject={},this.uiObject={},this.environmentObject={},this.consumerObject={},this.experimentObject={},this.customObject={},this.searchObject={},this.trnObject={},this.contextObject={},e&&(this.metricsCollection=[])}},{key:"getIMSTokenAndLocale",value:function(){return adobeIMS.version.startsWith("v2-")?{locale:adobeIMS.adobeIdData.locale,token:adobeIMS.getAccessToken().token}:{locale:adobeIMS.getLocale(),token:adobeIMS.getAccessToken()}}},{key:"getDefaultHeaders",value:function(){var e={"x-api-key":this.initData.xApiKey,"content-type":"application/json"},t="";return this.haveIMSObject?t=this.getIMSTokenAndLocale().token:this.objectExists(this.initData.userIMSData)&&(t=this.initData.userIMSData.accessToken),t&&(e.Authorization="Bearer "+t),e}},{key:"flattenObj",value:function(e,t,n){var i=this;try{Object.keys(e).forEach((function(o){var r=e[o],s=n?n+"."+o:o;r&&"object"===(void 0===r?"undefined":a(r))?i.flattenObj(r,t,s):t[s]=r}))}catch(e){t=e}return t}},{key:"getBody",value:function(e,t,n,i,o,a,s,c,l,u,f,d){var p={event:r({},arguments.length>12&&void 0!==arguments[12]?arguments[12]:{},e),source:t,content:n,user:i,ui:o,consumer:a,env:s,exp:c,custom:l,search:u,trn:f,context:d},h={time:this.getTimeString(),project:this.initData.project,environment:this.initData.environment,ingesttype:"dunamis",data:this.flattenObj(p,{})},g={events:[h]};try{window&&window.sessionStorage&&"true"===window.sessionStorage.getItem("IngestAnalyticsDataLog")&&console.log("[Ingest Analytics] Event Data: ",JSON.stringify(h),h)}catch(e){}return g}},{key:"initializeDefaultData",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.initArrays(e),this.initAnalytics(),{events:this.getDefaultEventData(this.eventsObject),source:this.getDefaultSourceData(this.sourcesObject),contents:this.getDefaultContentData(this.contentsObject),user:this.getDefaultUserData(this.usersObject),ui:this.getDefaultUIData(this.uiObject),consumer:this.getDefaultConsumerData(this.consumerObject),env:this.getDefaultEnvironmentData(this.environmentObject),exp:this.getDefaultExperimentData(this.experimentObject),custom:this.getDefaultCustomData(this.customObject),search:this.getDefaultSearchData(this.searchObject),trn:this.getDefaultTrnData(this.trnObject),context:this.getDefaultConextData(this.contextObject),eventsArray:[]}}},{key:"isIMS_SignedIn",value:function(){var e=!1;return(this.haveIMSObject||this.objectExists(this.initData.userIMSData))&&(e=!0),e}},{key:"getParamsAppendedUrl",value:function(t){var n=t;if(e.storageAvailable("sessionStorage")&&sessionStorage.getItem("ingest_url_params")){var i=JSON.parse(sessionStorage.getItem("ingest_url_params"));Object.keys(i).forEach((function(e){if(-1===n.indexOf("&"+e+"=")&&-1===n.indexOf("?"+e+"=")){var t=-1===n.indexOf("?")?"?":"&";n=""+n+t+e+"="+i[e]}}))}return n}},{key:"getDefaultEventData",value:function(t){if(e.storageAvailable("sessionStorage")){var n=sessionStorage.getItem("ingestSessionId");n||(n=u.default.v4(),sessionStorage.setItem("ingestSessionId",n)),t.session_guid=n}t.guid=u.default.v4(),this.haveIMSObject?t.language=this.getIMSTokenAndLocale().locale:this.objectExists(this.initData.userIMSData)&&(t.language=this.initData.userIMSData.locale);var i=window.document.referrer,o=window.document.location.href;if(this.initData.useLocalReferrer&&e.storageAvailable("sessionStorage")){f.default.log("used eventData.referrer");var r=sessionStorage.getItem(this.initData.referrerStorageName);if(r){var a=JSON.parse(r);i=a.referrer,a.url&&(o=a.url)}}t.referrer=i,t.url=this.getParamsAppendedUrl(o),f.default.log("referrer = ",t.referrer),f.default.log("url = ",t.url),t.category="WEB",t.visitor_guid=e.visitorGuid,t.mcid_guid=e.visitorGuid,t.dts_end=this.getTimeString(),this.initData.userAgent?t.user_agent=this.initData.userAgent:t.user_agent=navigator.userAgent,this.initData.category?t.category=this.initData.category:t.category="WEB","boolean"==typeof this.initData.offline?t.offline=this.initData.offline:t.offline=!0;var s="";return this.haveIMSObject&&!adobeIMS.version.startsWith("v2-")?s=adobeIMS.getUserProfile().userId:this.objectExists(this.initData.userIMSData)&&(s=this.initData.userIMSData.adobeId),s&&(t.user_guid=s),this.initData.sessionGuid&&(t.session_guid=this.initData.sessionGuid),t}},{key:"getDefaultSourceData",value:function(e){return e.client_id=this.initData.clientId,this.initData.version?e.version=this.initData.version:e.version="1.0",this.initData.platformType?e.platform=this.initData.platformType:e.platform="Web",this.initData.device?e.device=this.initData.device:e.device=this.getDevice(),this.initData.source&&(e.name=this.initData.source),this.initData.osVersion?e.os_version=this.initData.osVersion:e.os_version=this.getOSVersion(),e}},{key:"getDefaultContentData",value:function(t){if(e.storageAvailable("sessionStorage")){var n=sessionStorage.getItem("stakeholder");this.objectExists(n)&&n.length>0&&(t.author="true"===n?"stakeholder":"designer")}return t}},{key:"getDefaultUserData",value:function(t){var n=[];if(this.haveIMSObject&&!adobeIMS.version.startsWith("v2-")?(n=adobeIMS.getUserProfile().serviceAccounts)&&n.length>0&&(n[0].serviceLevel&&(t.service_level=n[0].serviceLevel),n[0].serviceStatus&&(t.service_status=n[0].serviceStatus,t.service_code=n[0].serviceCode)):this.objectExists(this.initData.userIMSData)&&this.objectExists(this.initData.userIMSData.serviceAccounts)&&(n=this.initData.userIMSData.serviceAccounts.serviceAccount)&&n.length>0&&(t.service_level=n[0].serviceLevel,t.service_status=n[0].serviceStatus,t.service_code=n[0].serviceCode),e.storageAvailable("sessionStorage")){var i=sessionStorage.getItem("subscriptionPlan");this.objectExists(i)&&i.length>0&&(t.service_code=i)}return t}},{key:"getDefaultUIData",value:function(e){return e}},{key:"getDefaultConsumerData",value:function(e){return this.initData.source&&(e.name=this.initData.source),this.initData.componentName&&(e.name=this.initData.componentName),this.initData.componentVersion&&(e.version=this.initData.componentVersion),e}},{key:"getDefaultEnvironmentData",value:function(e){return this.initData.envComponentName&&(e["com.name"]=this.initData.envComponentName),this.initData.envComponentVersion&&(e["com.version"]=this.initData.envComponentVersion),e}},{key:"getDefaultExperimentData",value:function(e){return e}},{key:"getDefaultCustomData",value:function(e){return e}},{key:"getDefaultSearchData",value:function(e){return e}},{key:"getDefaultTrnData",value:function(e){return e}},{key:"getDefaultConextData",value:function(e){return e}},{key:"objectExists",value:function(e){return null!=e}},{key:"setDataValue",value:function(e,t,n){switch(e){case"event":this.eventsObject[t]=n;break;case"source":this.sourcesObject[t]=n;break;case"content":var i=n;"name"===t&&(i="string"==typeof n?n.replace(/[^\x00-\x7F]/g,""):""),this.contentsObject[t]=i;break;case"user":this.usersObject[t]=n;break;case"ui":this.uiObject[t]=n;break;case"consumer":this.consumerObject[t]=n;break;case"env":this.environmentObject[t]=n;break;case"exp":this.experimentObject[t]=n;break;case"custom":this.customObject[t]=n;break;case"search":this.searchObject[t]=n;break;case"trn":this.trnObject[t]=n;break;case"context":this.contextObject[t]=n}}},{key:"getDevice",value:function(){return window.navigator.platform}},{key:"getOSVersion",value:function(){return l.default.os.version}},{key:"getPlatformData",value:function(){return l.default}},{key:"addToCollection",value:function(){this.metricsCollection.push(this.getBody(this.eventsObject,this.sourcesObject,this.contentsObject,this.usersObject,this.uiObject,this.consumerObject,this.environmentObject,this.experimentObject,this.customObject,this.searchObject,this.trnObject,this.contextObject)),this.initializeDefaultData(!1)}},{key:"getContextGuid",value:function(){var t=void 0;return e.storageAvailable("sessionStorage")&&(t=sessionStorage.getItem("context.guid")),"string"!=typeof t&&(t=u.default.v4(),e.storageAvailable("sessionStorage")&&sessionStorage.setItem("context.guid",t)),t}},{key:"getEvents",value:function(e){var t=[],n=!0,i=!1,o=void 0;try{for(var r,a=e[Symbol.iterator]();!(n=(r=a.next()).done);n=!0){var s=r.value;t.push(s.events[0])}}catch(e){i=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(i)throw o}}return{events:t}}},{key:"hasAdBlocker",value:function(){return new Promise((function(e){(0,d.default)((function(t){var n={};t?(n.hasAdBlocker=!0,e(n)):(n.hasAdBlocker=!1,e(n))}),{testInterval:1,testRuns:1})}))}},{key:"sendToIngest",value:function(){var t=this;if(!this.objectExists(this.initData.dontPostAnalytics)||!0!==this.initData.dontPostAnalytics){var n=5e3;this.objectExists(this.initData.timeOutForScripts)&&(n=this.initData.timeOutForScripts);var i=this.metricsCollection.slice(),r=[this.hasAdBlocker()];return this.haveIMSObject&&adobeIMS.version.startsWith("v2-")?r.push(adobeIMS.getProfile().catch((function(){return null}))):r.push(new Promise((function(e){e(null)}))),new Promise((function(a,s){Promise.all(r).then((function(r){var c=o(r,2),l=c[0],u=c[1];if(l?l.hasAdBlocker?f.default.log("Ingest: Ad blocker is detected"):f.default.log("Ingest: Ad blocker is not detected"):l.hasAdBlocker=!1,u&&i.forEach((function(e){e.events.forEach((function(e){e.data["event.user_guid"]||(e.data["event.user_guid"]=u.userId),u.serviceAccounts&&u.serviceAccounts.length>0&&(!e.data["user.service_level"]&&u.serviceAccounts[0].serviceLevel&&(e.data["user.service_level"]=u.serviceAccounts[0].serviceLevel),!e.data["user.service_status"]&&u.serviceAccounts[0].serviceStatus&&(e.data["user.service_status"]=u.serviceAccounts[0].serviceStatus),!e.data["user.service_code"]&&u.serviceAccounts[0].serviceCode&&(e.data["user.service_code"]=u.serviceAccounts[0].serviceCode))}))})),setTimeout((function(){e.initDeferredPost(l.hasAdBlocker)}),n),!t.isVisitorGuidDefined(i))return t.deferredPost(i,t.initData),a();var d=t.createPromiseToPostEvents(i,u);d&&d.then?d.then(a).catch(s):a()}))}))}}},{key:"createPromiseToPostEvents",value:function(e,t){if(!this.objectExists(window.visitorset)||window.visitorset){if(this.objectExists(this.initData.sendEventsToHost)&&!0===this.initData.sendEventsToHost&&this.objectExists(this.initData.eventsCallBack))return void this.initData.eventsCallBack(e);var n=this.logToIngest(e,t);return n.then((function(){f.default.log("Post to Ingest request successful")}),(function(){f.default.warn("Post to ingest request failed")})),n}}},{key:"getTimeString",value:function(){var e=new Date,t="",n=-e.getTimezoneOffset();return n>=0?t="+":(t="-",n*=-1),t+=("0"+parseInt(n/60)).slice(-2)+("0"+n%60).slice(-2),e.getFullYear()+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+("0"+e.getDate()).slice(-2)+"T"+("0"+e.getHours()).slice(-2)+":"+("0"+e.getMinutes()).slice(-2)+":"+("0"+e.getSeconds()).slice(-2)+"."+(e.getMilliseconds()/1e3).toFixed(3).slice(2,5)+t}},{key:"logToIngest",value:function(e,t){var n,i=this;return n=this.initData.apiKey?"/ingest/?api_key="+this.initData.apiKey:this.initData.path,new Promise((function(o,r){window.XMLHttpRequest||(f.default.debug("Ingest: logToIngest - XMLHttpRequest is not supported in browser!!"),r(Error("problem with window XMLHttpRequest"))),i.httpRequest=new XMLHttpRequest,i.httpRequest||(f.default.debug("Ingest: logToIngest: Cannot create an XMLHTTP instance"),r(Error("problem with creating XMLHttpRequest"))),i.httpRequest.onload=function(){f.default.debug("Ingest: logToIngest: Event successfully posted"),o(i.httpRequest.responseText)},i.httpRequest.onerror=function(){f.default.debug("Ingest: logToIngest: Error in sending ingest data"),r(Error("Ingest: logToIngest: Got error response in XMLHttpRequest"))},i.httpRequest.ontimeout=function(){f.default.debug("Ingest: logToIngest: Request timed out while sending ingest data"),i.httpRequest.abort(),r(Error("Ingest: logToIngest: Request got timed out"))},navigator&&navigator.userAgent&&navigator.userAgent.indexOf("Firefox")>0&&(i.httpRequest.responseType="text");var a=i.initData.hostName;0!==a.indexOf("https://")&&(a="https://"+i.initData.hostName),i.httpRequest.open("POST",a+n);var s=i.getDefaultHeaders();for(var c in s)i.httpRequest.setRequestHeader(c,s[c]);i.objectExists(i.initData.setTimeOut)?(f.default.debug("set time out"),i.httpRequest.timeout=i.initData.setTimeOut):(f.default.debug("default timeout"),i.httpRequest.timeout=6e4);try{var l="";i.haveIMSObject&&!adobeIMS.version.startsWith("v2-")?l=adobeIMS.getUserProfile().account_type:i.objectExists(i.initData.userIMSData)?l=i.initData.userIMSData.accountType:t&&(l=t.account_type),!l||"type1"===l||i.initData.sendEnterprise&&!0===i.initData.sendEnterprise?i.initData.optOutAnalytics?(f.default.debug("Ingest: User opts out"),o("User opts out")):i.httpRequest.send(JSON.stringify(i.getEvents(e))):(f.default.debug("Ingest: User is Enterprise user or offline"),o("Enterprise User or offline"))}catch(e){f.default.debug("Ingest: logToIngest: Error in sending ingest data"),r(Error("Ingest: logToIngest: Got error response in XMLHttpRequest"))}}))}}],[{key:"getStorageName",value:function(){return"INIT_INGEST_DATA"}},{key:"initDeferredPost",value:function(t){if(0!==Object.getOwnPropertyNames(g).length){var n=g.deferredPostArrays||[],i=g.deferredInitDataArray||[];if(n.length){var o=new e,r=0,a=void 0,s=!0;e.storageAvailable("localStorage")?(a=localStorage.getItem("ingest_guid"))||(a=u.default.v4(),localStorage.setItem("ingest_guid",a)):(s=!1,a=u.default.v4());var c=!0,l=!1,f=void 0;try{for(var d,y=n[Symbol.iterator]();!(c=(d=y.next()).done);c=!0){var v=d.value;o.initData=i[r++];var b=!0,_=!1,C=void 0;try{for(var S,E=v[Symbol.iterator]();!(b=(S=E.next()).done);b=!0){var N=S.value;if("undefined"!=typeof Visitor||m)N.events[0].data["event.visitor_guid"]=e.visitorGuid,N.events[0].data["event.mcid_guid"]=e.visitorGuid;else if(s){if(t){if(a){N.events[0].data["event.context_sequence"]="UN-AB";var O=a;N.events[0].data["event.visitor_guid"]=O,N.events[0].data["event.mcid_guid"]=O}}else if(a){N.events[0].data["event.context_sequence"]="UN-TO";var T=a;N.events[0].data["event.visitor_guid"]=T,N.events[0].data["event.mcid_guid"]=T}}else if(t){N.events[0].data["event.context_sequence"]="UN-AB";var I=a;N.events[0].data["event.visitor_guid"]=I,N.events[0].data["event.mcid_guid"]=I}else{N.events[0].data["event.context_sequence"]="UN-TO";var w=a;N.events[0].data["event.visitor_guid"]=w,N.events[0].data["event.mcid_guid"]=w}}}catch(e){_=!0,C=e}finally{try{!b&&E.return&&E.return()}finally{if(_)throw C}}o.createPromiseToPostEvents(v)}}catch(e){l=!0,f=e}finally{try{!c&&y.return&&y.return()}finally{if(l)throw f}}g={},p=[],h=[]}}}},{key:"generateVisitorGuid",value:function(){var t=void 0;return e.storageAvailable("localStorage")?(t=localStorage.getItem("ingest_guid"))||(t=u.default.v4(),localStorage.setItem("ingest_guid",t)):t=u.default.v4(),t}},{key:"storageAvailable",value:function(e){var t=void 0;try{if("cookie"===e){var n=navigator.cookieEnabled;return n||(document.cookie="testcookie",n=-1!==document.cookie.indexOf("testcookie")),n}t=window[e];var i="__storage_test__";return t.setItem(i,i),t.removeItem(i),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&void 0!==t&&0!==t.length}}}]),e}();t.default=y,y.visitorGuid},function(e,t,n){(function(e,i){var o;(function(){"use strict";function r(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function a(e){return e=d(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:r(e)}function c(e,t){for(var n in e)C.call(e,n)&&t(e[n],n,e)}function l(e){return null==e?r(e):S.call(e).slice(8,-1)}function u(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function f(e,t){var n=null;return function(e,t){var n=-1,i=e?e.length:0;if("number"==typeof i&&i>-1&&i<=v)for(;++n<i;)t(e[n],n,e);else c(e,t)}(e,(function(i,o){n=t(n,i,o,e)})),n}function d(e){return String(e).replace(/^ +| +$/g,"")}var p={function:!0,object:!0},h=p["undefined"==typeof window?"undefined":s(window)]&&window||this,g=p[s(t)]&&t,m=p[s(e)]&&e&&!e.nodeType&&e,y=g&&m&&"object"==s(i)&&i;!y||y.global!==y&&y.window!==y&&y.self!==y||(h=y);var v=Math.pow(2,53)-1,b=/\bOpera/,_=Object.prototype,C=_.hasOwnProperty,S=_.toString,E=function e(t){function n(e){return f(e,(function(e,n){var i=n.pattern||u(n);return!e&&(e=RegExp("\\b"+i+" *\\d+[.\\w_]*","i").exec(t)||RegExp("\\b"+i+" *\\w+-[\\w]*","i").exec(t)||RegExp("\\b"+i+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(t))&&((e=String(n.label&&!RegExp(i,"i").test(n.label)?n.label:e).split("/"))[1]&&!/[\d.]+/.test(e[0])&&(e[0]+=" "+e[1]),n=n.label||n,e=a(e[0].replace(RegExp(i,"i"),n).replace(RegExp("; *(?:"+n+"[_-])?","i")," ").replace(RegExp("("+n+")[-_.]?(\\w)","i"),"$1 $2"))),e}))}var i=h,o=t&&"object"==s(t)&&"String"!=l(t);o&&(i=t,t=null);var r=i.navigator||{},p=r.userAgent||"";t||(t=p);var g,m,y=o?!!r.likeChrome:/\bChrome\b/.test(t)&&!/internal|\n/i.test(S.toString()),v=o?"Object":"ScriptBridgingProxyObject",_=o?"Object":"Environment",C=o&&i.java?"JavaPackage":l(i.java),E=o?"Object":"RuntimeObject",N=/\bJava/.test(C)&&i.java,O=N&&l(i.environment)==_,T=N?"a":"α",I=N?"b":"β",w=i.document||{},A=i.operamini||i.opera,k=b.test(k=o&&A?A["[[Class]]"]:l(A))?k:A=null,D=t,P=[],R=null,x=t==p,F=x&&A&&"function"==typeof A.version&&A.version(),L=f([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],(function(e,n){return e||RegExp("\\b"+(n.pattern||u(n))+"\\b","i").exec(t)&&(n.label||n)})),U=f(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"],(function(e,n){return e||RegExp("\\b"+(n.pattern||u(n))+"\\b","i").exec(t)&&(n.label||n)})),j=n([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),M=f({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}},(function(e,n,i){return e||(n[j]||n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(j)]||RegExp("\\b"+u(i)+"(?:\\b|\\w*\\d)","i").exec(t))&&i})),W=f(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "],(function(e,n){var i=n.pattern||u(n);return!e&&(e=RegExp("\\b"+i+"(?:/[\\d.]+|[ \\w.]*)","i").exec(t))&&(e=function(e,t,n){var i={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&n&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(i=i[/[\d.]+$/.exec(e)])&&(e="Windows "+i),e=String(e),t&&n&&(e=e.replace(RegExp(t,"i"),n)),a(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}(e,i,n.label||n)),e}));if(L&&(L=[L]),M&&!j&&(j=n([M])),(g=/\bGoogle TV\b/.exec(j))&&(j=g[0]),/\bSimulator\b/i.test(t)&&(j=(j?j+" ":"")+"Simulator"),"Opera Mini"==U&&/\bOPiOS\b/.test(t)&&P.push("running in Turbo/Uncompressed mode"),"IE"==U&&/\blike iPhone OS\b/.test(t)?(M=(g=e(t.replace(/like iPhone OS/,""))).manufacturer,j=g.product):/^iP/.test(j)?(U||(U="Safari"),W="iOS"+((g=/ OS ([\d_]+)/i.exec(t))?" "+g[1].replace(/_/g,"."):"")):"Konqueror"!=U||/buntu/i.test(W)?M&&"Google"!=M&&(/Chrome/.test(U)&&!/\bMobile Safari\b/i.test(t)||/\bVita\b/.test(j))||/\bAndroid\b/.test(W)&&/^Chrome/.test(U)&&/\bVersion\//i.test(t)?(U="Android Browser",W=/\bAndroid\b/.test(W)?W:"Android"):"Silk"==U?(/\bMobi/i.test(t)||(W="Android",P.unshift("desktop mode")),/Accelerated *= *true/i.test(t)&&P.unshift("accelerated")):"PaleMoon"==U&&(g=/\bFirefox\/([\d.]+)\b/.exec(t))?P.push("identifying as Firefox "+g[1]):"Firefox"==U&&(g=/\b(Mobile|Tablet|TV)\b/i.exec(t))?(W||(W="Firefox OS"),j||(j=g[1])):!U||(g=!/\bMinefield\b/i.test(t)&&/\b(?:Firefox|Safari)\b/.exec(U))?(U&&!j&&/[\/,]|^[^(]+?\)/.test(t.slice(t.indexOf(g+"/")+8))&&(U=null),(g=j||M||W)&&(j||M||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(W))&&(U=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(W)?W:g)+" Browser")):"Electron"==U&&(g=(/\bChrome\/([\d.]+)\b/.exec(t)||0)[1])&&P.push("Chromium "+g):W="Kubuntu",F||(F=function(e){return f(e,(function(e,n){return e||(RegExp(n+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(t)||0)[1]||null}))}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",u(U),"(?:Firefox|Minefield|NetFront)"])),(g=("iCab"==L&&parseFloat(F)>3?"WebKit":/\bOpera\b/.test(U)&&(/\bOPR\b/.test(t)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(L)&&"WebKit"||!L&&/\bMSIE\b/i.test(t)&&("Mac OS"==W?"Tasman":"Trident")||"WebKit"==L&&/\bPlayStation\b(?! Vita\b)/i.test(U)&&"NetFront")&&(L=[g]),"IE"==U&&(g=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(U+=" Mobile",W="Windows Phone "+(/\+$/.test(g)?g:g+".x"),P.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(U="IE Mobile",W="Windows Phone 8.x",P.unshift("desktop mode"),F||(F=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=U&&"Trident"==L&&(g=/\brv:([\d.]+)/.exec(t))&&(U&&P.push("identifying as "+U+(F?" "+F:"")),U="IE",F=g[1]),x){if(function(e,t){var n=null!=e?s(e[t]):"number";return!(/^(?:boolean|number|string|undefined)$/.test(n)||"object"==n&&!e[t])}(i,"global"))if(N&&(D=(g=N.lang.System).getProperty("os.arch"),W=W||g.getProperty("os.name")+" "+g.getProperty("os.version")),O){try{F=i.require("ringo/engine").version.join("."),U="RingoJS"}catch(t){(g=i.system)&&g.global.system==i.system&&(U="Narwhal",W||(W=g[0].os||null))}U||(U="Rhino")}else"object"==s(i.process)&&!i.process.browser&&(g=i.process)&&("object"==s(g.versions)&&("string"==typeof g.versions.electron?(P.push("Node "+g.versions.node),U="Electron",F=g.versions.electron):"string"==typeof g.versions.nw&&(P.push("Chromium "+F,"Node "+g.versions.node),U="NW.js",F=g.versions.nw)),U||(U="Node.js",D=g.arch,W=g.platform,F=(F=/[\d.]+/.exec(g.version))?F[0]:null));else l(g=i.runtime)==v?(U="Adobe AIR",W=g.flash.system.Capabilities.os):l(g=i.phantom)==E?(U="PhantomJS",F=(g=g.version||null)&&g.major+"."+g.minor+"."+g.patch):"number"==typeof w.documentMode&&(g=/\bTrident\/(\d+)/i.exec(t))?(F=[F,w.documentMode],(g=+g[1]+4)!=F[1]&&(P.push("IE "+F[1]+" mode"),L&&(L[1]=""),F[1]=g),F="IE"==U?String(F[1].toFixed(1)):F[0]):"number"==typeof w.documentMode&&/^(?:Chrome|Firefox)\b/.test(U)&&(P.push("masking as "+U+" "+F),U="IE",F="11.0",L=["Trident"],W="Windows");W=W&&a(W)}if(F&&(g=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(F)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(x&&r.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(R=/b/i.test(g)?"beta":"alpha",F=F.replace(RegExp(g+"\\+?$"),"")+("beta"==R?I:T)+(/\d+\+?/.exec(g)||"")),"Fennec"==U||"Firefox"==U&&/\b(?:Android|Firefox OS)\b/.test(W))U="Firefox Mobile";else if("Maxthon"==U&&F)F=F.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(j))"Xbox 360"==j&&(W=null),"Xbox 360"==j&&/\bIEMobile\b/.test(t)&&P.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(U)&&(!U||j||/Browser|Mobi/.test(U))||"Windows CE"!=W&&!/Mobi/i.test(t))if("IE"==U&&x)try{null===i.external&&P.unshift("platform preview")}catch(t){P.unshift("embedded")}else(/\bBlackBerry\b/.test(j)||/\bBB10\b/.test(t))&&(g=(RegExp(j.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||F)?(W=((g=[g,/BB10/.test(t)])[1]?(j=null,M="BlackBerry"):"Device Software")+" "+g[0],F=null):this!=c&&"Wii"!=j&&(x&&A||/Opera/.test(U)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==U&&/\bOS X (?:\d+\.){2,}/.test(W)||"IE"==U&&(W&&!/^Win/.test(W)&&F>5.5||/\bWindows XP\b/.test(W)&&F>8||8==F&&!/\bTrident\b/.test(t)))&&!b.test(g=e.call(c,t.replace(b,"")+";"))&&g.name&&(g="ing as "+g.name+((g=g.version)?" "+g:""),b.test(U)?(/\bIE\b/.test(g)&&"Mac OS"==W&&(W=null),g="identify"+g):(g="mask"+g,U=k?a(k.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(g)&&(W=null),x||(F=null)),L=["Presto"],P.push(g));else U+=" Mobile";(g=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(g=[parseFloat(g.replace(/\.(\d)$/,".0$1")),g],"Safari"==U&&"+"==g[1].slice(-1)?(U="WebKit Nightly",R="alpha",F=g[1].slice(0,-1)):F!=g[1]&&F!=(g[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(F=null),g[1]=(/\bChrome\/([\d.]+)/i.exec(t)||0)[1],537.36==g[0]&&537.36==g[2]&&parseFloat(g[1])>=28&&"WebKit"==L&&(L=["Blink"]),x&&(y||g[1])?(L&&(L[1]="like Chrome"),g=g[1]||((g=g[0])<530?1:g<532?2:g<532.05?3:g<533?4:g<534.03?5:g<534.07?6:g<534.1?7:g<534.13?8:g<534.16?9:g<534.24?10:g<534.3?11:g<535.01?12:g<535.02?"13+":g<535.07?15:g<535.11?16:g<535.19?17:g<536.05?18:g<536.1?19:g<537.01?20:g<537.11?"21+":g<537.13?23:g<537.18?24:g<537.24?25:g<537.36?26:"Blink"!=L?"27":"28")):(L&&(L[1]="like Safari"),g=(g=g[0])<400?1:g<500?2:g<526?3:g<533?4:g<534?"4+":g<535?5:g<537?6:g<538?7:g<601?8:"8"),L&&(L[1]+=" "+(g+="number"==typeof g?".x":/[.+]/.test(g)?"":"+")),"Safari"==U&&(!F||parseInt(F)>45)&&(F=g)),"Opera"==U&&(g=/\bzbov|zvav$/.exec(W))?(U+=" ",P.unshift("desktop mode"),"zvav"==g?(U+="Mini",F=null):U+="Mobile",W=W.replace(RegExp(" *"+g+"$"),"")):"Safari"==U&&/\bChrome\b/.exec(L&&L[1])&&(P.unshift("desktop mode"),U="Chrome Mobile",F=null,/\bOS X\b/.test(W)?(M="Apple",W="iOS 4.3+"):W=null),F&&0==F.indexOf(g=/[\d.]+$/.exec(W))&&t.indexOf("/"+g+"-")>-1&&(W=d(W.replace(g,""))),L&&!/\b(?:Avant|Nook)\b/.test(U)&&(/Browser|Lunascape|Maxthon/.test(U)||"Safari"!=U&&/^iOS/.test(W)&&/\bSafari\b/.test(L[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(U)&&L[1])&&(g=L[L.length-1])&&P.push(g),P.length&&(P=["("+P.join("; ")+")"]),M&&j&&j.indexOf(M)<0&&P.push("on "+M),j&&P.push((/^on /.test(P[P.length-1])?"":"on ")+j),W&&(g=/ ([\d.+]+)$/.exec(W),m=g&&"/"==W.charAt(W.length-g[0].length-1),W={architecture:32,family:g&&!m?W.replace(g[0],""):W,version:g?g[1]:null,toString:function(){var e=this.version;return this.family+(e&&!m?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(g=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(D))&&!/\bi686\b/i.test(D)?(W&&(W.architecture=64,W.family=W.family.replace(RegExp(" *"+g),"")),U&&(/\bWOW64\b/i.test(t)||x&&/\w(?:86|32)$/.test(r.cpuClass||r.platform)&&!/\bWin64; x64\b/i.test(t))&&P.unshift("32-bit")):W&&/^OS X/.test(W.family)&&"Chrome"==U&&parseFloat(F)>=39&&(W.architecture=64),t||(t=null);var H={};return H.description=t,H.layout=L&&L[0],H.manufacturer=M,H.name=U,H.prerelease=R,H.product=j,H.ua=t,H.version=U&&F,H.os=W||{architecture:null,family:null,version:null,toString:function(){return"null"}},H.parse=e,H.toString=function(){return this.description||""},H.version&&P.unshift(F),H.name&&P.unshift(U),W&&U&&(W!=String(W).split(" ")[0]||W!=U.split(" ")[0]&&!j)&&P.push(j?"("+W+")":"on "+W),P.length&&(H.description=P.join(" ")),H}();h.platform=E,void 0!==(o=function(){return E}.call(t,n,t,e))&&(e.exports=o)}).call(this)}).call(t,n(5)(e),n(6))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==("undefined"==typeof window?"undefined":s(window))&&(n=window)}e.exports=n},function(e,t,n){var i=n(8),o=n(9),r=o;r.v1=i,r.v4=o,e.exports=r},function(e,t,n){var i,o,r=n(0),a=n(1),s=0,c=0;e.exports=function(e,t,n){var l=t&&n||0,u=t||[],f=(e=e||{}).node||i,d=void 0!==e.clockseq?e.clockseq:o;if(null==f||null==d){var p=r();null==f&&(f=i=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=o=16383&(p[6]<<8|p[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:c+1,m=h-s+(g-c)/1e4;if(m<0&&void 0===e.clockseq&&(d=d+1&16383),(m<0||h>s)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,c=g,o=d;var y=(1e4*(268435455&(h+=122192928e5))+g)%4294967296;u[l++]=y>>>24&255,u[l++]=y>>>16&255,u[l++]=y>>>8&255,u[l++]=255&y;var v=h/4294967296*1e4&268435455;u[l++]=v>>>8&255,u[l++]=255&v,u[l++]=v>>>24&15|16,u[l++]=v>>>16&255,u[l++]=d>>>8|128,u[l++]=255&d;for(var b=0;b<6;++b)u[l+b]=f[b];return t||a(u)}},function(e,t,n){var i=n(0),o=n(1);e.exports=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||i)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[r+s]=a[s];return t||o(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return i(e,[{key:"debug",value:function(){if(window.logLevel&&window.logLevel>=4){var e=Array.prototype.slice.call(arguments);console.debug.apply(console,e)}}},{key:"error",value:function(){if(!window.logLevel||0!==window.logLevel){var e=Array.prototype.slice.call(arguments);console.error.apply(console,e)}}},{key:"warn",value:function(){if(window.logLevel&&window.logLevel>=2){var e=Array.prototype.slice.call(arguments);console.warn.apply(console,e)}}},{key:"log",value:function(){if(window.logLevel&&window.logLevel>=3){var e=Array.prototype.slice.call(arguments);console.info.apply(console,e)}}},{key:"info",value:function(){if(window.logLevel&&window.logLevel>=3){var e=Array.prototype.slice.call(arguments);console.info.apply(console,e)}}}]),e}();t.default=new o},function(e,t,n){var i,o,r;o=[],i=function(){function e(o,r){var a=t((r=i(e.defaults,r||{})).testNodeClasses,r.testNodeStyle),s=0,c=!1,l=setInterval((function(){s++,((c=n(a))||s===r.testRuns)&&(clearInterval(l),a.parentNode&&a.parentNode.removeChild(a),o(c))}),r.testInterval)}function t(e,t){var n=window.document,i=n.createElement("div");return i.innerHTML=" ",i.setAttribute("class",e),i.setAttribute("style",t),n.body.appendChild(i),i}function n(e){return 0===e.offsetHeight||!document.body.contains(e)||"none"===e.style.display||"hidden"===e.style.visibility}function i(e,t){var n={};for(var i in e)n[i]=e[i],t.hasOwnProperty(i)&&(n[i]=t[i]);return n}return e.defaults={testNodeClasses:"pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links",testNodeStyle:"height: 10px !important; font-size: 20px; color: transparent; position: absolute; bottom: 0; left: -10000px;",testInterval:51,testRuns:4},e},void 0!==(r="function"==typeof i?i.apply(t,o):i)&&(e.exports=r)}])},"object"==s(t)&&"object"==s(e)?e.exports=a():(o=[],void 0===(r="function"==typeof(i=a)?i.apply(t,o):i)||(e.exports=r))},9590:function(e,t,n){e.exports=n(9230)},9230:function(e,t,n){"use strict";var i=n(8135),o=n(2754);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a,s,c=i(n(9894)),l=i(n(9902)),u=i(n(7296)),f=i(n(2e3)),d=i(n(1803)),p=i(n(6368)),h=i(n(2143)),g=i(n(4626)),m=i(n(1514)),y=n(6499),v=i(n(8098)),b=n(7873),_=i(n(9008)),C=i(n(8647)),S=i(n(8366)),E=o(n(4383)),N=i(n(3074)),O=o(n(5466));n(3828),n(3858),n(6333),n(6961),n(6396);var T={quiet:{variant:"primary",quiet:!0},minimal:{variant:"secondary",quiet:!0},icon:{variant:"action",quiet:!0}},I=(0,_.default)(r=(0,E.default)((s=a=function(e){function t(){var e,n;(0,u.default)(this,t);for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return n=(0,d.default)(this,(e=(0,p.default)(t)).call.apply(e,[this].concat(o))),(0,m.default)((0,h.default)(n),"onClick",(function(e){if(n.props.disabled)e.preventDefault();else if(n.props.onClick){for(var t,i=arguments.length,o=new Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];(t=n.props).onClick.apply(t,[e].concat(o))}})),(0,m.default)((0,h.default)(n),"onKeyDownSpace",(function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),n.buttonRef.click())})),(0,m.default)((0,h.default)(n),"setButtonRef",(function(e){return n.buttonRef=e})),n}return(0,g.default)(t,e),(0,f.default)(t,[{key:"componentDidMount",value:function(){var e=this;this.props.autoFocus&&requestAnimationFrame((function(){return e.focus()}))}},{key:"focus",value:function(){this.buttonRef&&!this.props.disabled&&this.buttonRef.focus&&this.buttonRef.focus()}},{key:"render",value:function(){var e=this.props,t=e.element,n=void 0===t?"button":t,i=e.label,o=e.children,r=e.variant,a=void 0===r?"secondary":r,s=e.logic,u=e.quiet,f=e.icon,d=e.selected,p=e.block,h=e.className,g=e.disabled,_=e.invalid,N=e.onMouseDown,I=e.onMouseUp,w=e.autoFocus,A=e.holdAffordance,k=(0,l.default)(e,["element","label","children","variant","logic","quiet","icon","selected","block","className","disabled","invalid","onMouseDown","onMouseUp","autoFocus","holdAffordance"]);if(T[a]){var D=T[a],P=(D.quiet?"quiet ":"")+'"'.concat(D.variant,'"');console.warn('The "'.concat(a,'" variant of Button is deprecated. Please use the ').concat(P," variant instead.")),a=D.variant,u=D.quiet}var R=!1,x="spectrum-Button";"action"===a||"toggle"===a?(x="spectrum-ActionButton",R=A,"toggle"===a&&(u=!0),a=""):s?x="spectrum-LogicButton":"clear"===a?(x="spectrum-ClearButton",a=""):"field"===a?(x="spectrum-FieldButton",a=""):"tool"===a&&(x="spectrum-Tool",R=A,a=""),"button"!==n&&(k.role="button",k.tabIndex=g?null:k.tabIndex||0,k["aria-disabled"]=g||null,"a"===n&&g&&k.href&&(k.href=null),k.onKeyDown=g?null:this.onKeyDownSpace);var F=i||("string"==typeof o?o:null),L=null;void 0!==k["aria-expanded"]?L=k["aria-expanded"]:k["aria-haspopup"]&&(L=d||null);var U="string"==typeof n?(0,S.default)(k):k;return O.default.createElement(n,(0,c.default)({},U,{className:(0,v.default)(x,u?"".concat(x,"--quiet"):"",a?"".concat(x,"--").concat(a):"",(0,m.default)({"is-selected":d,"is-disabled":g,"is-invalid":_,"spectrum-Button--block":p},E.FOCUS_RING_CLASSNAME,w),h),disabled:g,"aria-invalid":_||null,"aria-expanded":L,onClick:this.onClick,onMouseDown:(0,y.chain)(this.onMouseDown,y.focusAfterMouseEvent.bind(this,N)),onMouseUp:(0,y.chain)(this.onMouseUp,y.focusAfterMouseEvent.bind(this,I)),ref:this.setButtonRef}),(0,b.cloneIcon)(f,{size:"S"}),F&&O.default.createElement("span",{className:x+"-label"},F),R&&O.default.createElement(C.default,{role:"presentation",size:null,className:"spectrum-Tool-hold"}),"string"!=typeof o&&o)}}]),t}(O.Component),(0,m.default)(a,"propTypes",{variant:N.default.oneOf(["cta","primary","secondary","warning","action","toggle","and","or","icon","quiet","minimal","dropdown","clear","field","tool","overBackground"]),quiet:N.default.bool,logic:N.default.bool,disabled:N.default.bool,selected:N.default.bool,invalid:N.default.bool,icon:N.default.element,label:N.default.string,block:N.default.bool,element:N.default.oneOfType([N.default.string,N.default.func]),autoFocus:N.default.bool,onClick:N.default.func,holdAffordance:N.default.bool}),(0,m.default)(a,"defaultProps",{autoFocus:!1,block:!1,disabled:!1,element:"button",invalid:!1,label:"",logic:!1,quiet:!1,selected:!1,variant:"secondary",holdAffordance:!1}),r=s))||r)||r;t.default=I},9742:function(e,t,n){"use strict";var i=n(8135);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.autoFocusButton,n=e.confirmLabel,i=e.secondaryLabel,c=e.cancelLabel,l=e.confirmDisabled,u=e.onConfirm,f=e.onCancel,d=e.className,p=e.variant,h=s[p]||"primary",g=function(e){" "!==e.key&&"Enter"!==e.key||e.stopPropagation()};return a.default.createElement("div",{className:(0,r.default)("react-spectrum-Dialog-buttons",d)},c&&a.default.createElement(o.default,{variant:"secondary",label:c,onClick:f,autoFocus:"cancel"===t,onKeyDown:g}),i&&a.default.createElement(o.default,{variant:"secondary",label:i,onClick:u?u.bind(null,"secondary"):null,autoFocus:"secondary"===t,disabled:l||null,onKeyDown:g}),n&&a.default.createElement(o.default,{variant:h,label:n,onClick:u?u.bind(null,"primary"):null,autoFocus:"confirm"===t,disabled:l||null,onKeyDown:g}))};var o=i(n(9590)),r=i(n(8098)),a=i(n(5466));n(7127);var s={confirmation:"cta",information:"primary",error:"primary",destructive:"warning"}},9724:function(e,t,n){"use strict";var i=n(8135);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.title,n=e.variant,i=e.fullscreen,a=e.confirmDisabled,g=e.confirmLabel,m=e.secondaryLabel,y=e.cancelLabel,v=e.onConfirm,b=e.onCancel,_=e.onClose,C=e.className,S=e.autoFocusButton,E=e.id,N=e.isDismissible,O=(0,r.default)(e,["title","variant","fullscreen","confirmDisabled","confirmLabel","secondaryLabel","cancelLabel","onConfirm","onCancel","onClose","className","autoFocusButton","id","isDismissible"]),T=h[n];return p.default.createElement("div",(0,o.default)({},(0,f.default)(O),{className:(0,c.default)("spectrum-Dialog-header","spectrum-Dialog-header--".concat(n),C)}),p.default.createElement(d.default,{size:3,className:"spectrum-Dialog-title",id:E},t),T&&p.default.createElement(T,{size:null,className:"spectrum-Dialog-typeIcon"}),N&&!i&&p.default.createElement(s.default,{className:"spectrum-Dialog-closeButton",variant:"action",onClick:_,quiet:!0,icon:p.default.createElement(l.default,{size:"L"})}),i&&g&&p.default.createElement(u.default,{autoFocusButton:S,variant:n,cancelLabel:y,secondaryLabel:m,confirmLabel:g,confirmDisabled:a,onConfirm:v,onCancel:b}))};var o=i(n(9894)),r=i(n(9902)),a=i(n(6163)),s=i(n(9590)),c=i(n(8098)),l=i(n(8018)),u=i(n(9742)),f=i(n(8366)),d=i(n(3456)),p=i(n(5466)),h={error:a.default}},691:function(e,t,n){e.exports=n(7514)},7514:function(e,t,n){"use strict";var i=n(8135);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,r,a,s=i(n(9902)),c=i(n(7296)),l=i(n(2e3)),u=i(n(1803)),f=i(n(6368)),d=i(n(4626)),p=i(n(1514)),h=i(n(3023)),g=n(6499),m=i(n(3258)),y=i(n(8366)),v=n(4407),b=i(n(7249)),_=i(n(3074)),C=i(n(5466)),S=(0,h.default)((a=r=function(e){function t(e){var n;return(0,c.default)(this,t),(n=(0,u.default)(this,(0,f.default)(t).call(this,e))).dropdownId=(0,m.default)(),n.state={open:!1},n}return(0,d.default)(t,e),(0,l.default)(t,[{key:"onOpen",value:function(e){this.setState({open:!0}),this.props.onOpen&&this.props.onOpen(e)}},{key:"onClose",value:function(e){this.setState({open:!1}),this.props.onClose&&this.props.onClose(e)}},{key:"onMenuClose",value:function(){this.overlayTrigger.hide()}},{key:"onSelect",value:function(){var e;(this.props.closeOnSelect&&this.onMenuClose(),this.props.onSelect)&&(e=this.props).onSelect.apply(e,arguments)}},{key:"onClick",value:function(e){this.props.onClick&&this.props.onClick(e)}},{key:"onKeyDownTrigger",value:function(e){if(!("function"==typeof e.isDefaultPrevented&&e.isDefaultPrevented()||e.defaultPrevented)&&this.triggerRef)switch(e.key){case"Enter":case"ArrowDown":case" ":e.preventDefault(),e.stopPropagation(),this.triggerRef.onClick()}}},{key:"render",value:function(){var e=this,t=this.props,n=t.alignRight,i=t.closeOnSelect,o=t.flip,r=t.trigger,a=t.onLongClick,c=(0,s.default)(t,["alignRight","closeOnSelect","flip","trigger","onLongClick"]),l=C.default.Children.toArray(this.props.children),u=l.find((function(e){return e.props.dropdownTrigger}))||l[0],f=u.props.id||this.dropdownId+"-trigger",d=l.find((function(e){return e.props.dropdownMenu||e.type===v.Menu}))||l[1],p=d.props.id||this.dropdownId+"-menu";return delete c.onOpen,delete c.onClose,delete c.onClick,C.default.createElement("div",(0,y.default)(c),l.map((function(t,s){return t===u?C.default.createElement(b.default,{target:e,trigger:r,placement:n?"bottom right":"bottom left",ref:function(t){return e.overlayTrigger=t},onLongClick:a,onClick:e.onClick,onShow:e.onOpen,closeOnSelect:i,key:s,onHide:e.onClose,flip:o,delayHide:0},C.default.cloneElement(u,{id:f,"aria-haspopup":u.props["aria-haspopup"]||"true","aria-expanded":e.state.open||null,"aria-controls":e.state.open?p:null,onKeyDown:(0,g.chain)(u.props.onKeyDown,e.onKeyDownTrigger),ref:function(t){e.triggerRef=t;var n=u.ref;"function"==typeof n&&n(t)}}),C.default.cloneElement(d,{id:p,"aria-labelledby":d.props["aria-labelledby"]||f,onClose:e.onMenuClose,onSelect:e.onSelect,autoFocus:!0,closeOnSelect:i})):t!==d?t:void 0})))}}]),t}(C.default.Component),(0,p.default)(r,"propTypes",{closeOnSelect:_.default.bool,trigger:_.default.oneOf(["click","longClick","hover","focus"]),onOpen:_.default.func,onClose:_.default.func,onSelect:_.default.func,alignRight:_.default.bool,flip:_.default.bool}),(0,p.default)(r,"defaultProps",{closeOnSelect:!0,trigger:"click"}),o=a))||o;t.default=S},3456:function(e,t,n){e.exports=n(940)},940:function(e,t,n){"use strict";var i=n(8135);Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var o=i(n(9894)),r=i(n(9902)),a=i(n(8098)),s=i(n(8366)),c=i(n(3074)),l=i(n(5466)),u={1:"display",2:"pageTitle",3:"subtitle1",4:"subtitle2",5:"subtitle3",6:"subtitle3"},f={display:"h1",pageTitle:"h2",subtitle1:"h2",subtitle2:"h3",subtitle3:"h4"};function d(e){var t=e.variant,n=e.size,i=void 0===n?1:n,c=e.children,d=e.className,p=(0,r.default)(e,["variant","size","children","className"]);t=t||u[i]||"display";var h=f[t];return l.default.createElement(h,(0,o.default)({className:(0,a.default)("spectrum-Heading","spectrum-Heading--".concat(t),d)},(0,s.default)(p)),c)}d.displayName="Heading",d.propTypes={variant:c.default.oneOf(["display","pageTitle","subtitle1","subtitle2","subtitle3"]),className:c.default.string}},4018:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 36 36"},i.createElement("path",{d:"M17.127 2.579L.4 32.512A1 1 0 0 0 1.272 34h33.456a1 1 0 0 0 .873-1.488L18.873 2.579a1 1 0 0 0-1.746 0zM20 29.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5zm0-6a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-12a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5z"}))},5704:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 48 48"},i.createElement("path",{d:"M44.37 39.036L25.752 5.186a2 2 0 0 0-3.5 0L3.63 39.036A2 2 0 0 0 5.383 42h37.234a2 2 0 0 0 1.753-2.964zM24 39a3 3 0 1 1 3-3 3 3 0 0 1-3 3zm-2.4-10V15a1 1 0 0 1 1-1h2.8a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-2.8a1 1 0 0 1-1-1z"}))},3794:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=a(n(2477)),r=a(n(5466));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return r.default.createElement(o.default,i({},e,{icon:{18:n(4018),24:n(5704)}}))};s.displayName="Alert",t.default=s},9484:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 36 36"},i.createElement("path",{d:"M16 36a4.407 4.407 0 0 0 4-4h-8a4.407 4.407 0 0 0 4 4zm9.143-24.615c0-3.437-3.206-4.891-7.143-5.268V3a1.079 1.079 0 0 0-1.143-1h-1.714A1.079 1.079 0 0 0 14 3v3.117c-3.937.377-7.143 1.831-7.143 5.268C6.857 26.8 2 26.111 2 28.154V30h28v-1.846C30 26 25.143 26.8 25.143 11.385z"}))},8323:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 48 48"},i.createElement("path",{d:"M24 48c2.485 0 6-2.687 6-6H18c0 3.313 3.515 6 6 6zm12-32c0-5.155-2.686-7.435-8-8V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v4c-5.314.565-8 2.845-8 8 0 23.123-6 16.167-6 19.23V37a1 1 0 0 0 1 1h34a1 1 0 0 0 1-1v-1.77C42 32 36 39.123 36 16z"}))},6745:function(e,t,n){"use strict";var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=a(n(2477)),r=a(n(5466));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return r.default.createElement(o.default,i({},e,{icon:{18:n(9484),24:n(8323)}}))};s.displayName="Bell",t.Z=s},9159:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 36 36"},i.createElement("path",{d:"M16 2a16 16 0 1 0 16 16A16 16 0 0 0 16 2zm10.666 9.08L14.018 27.341a1.208 1.208 0 0 1-.875.461h-.072a1.2 1.2 0 0 1-.85-.352l-7.785-7.793a1.2 1.2 0 0 1 0-1.7l1.326-1.325a1.2 1.2 0 0 1 1.7 0l5.338 5.349L23.315 8.473A1.2 1.2 0 0 1 25 8.263L26.455 9.4a1.2 1.2 0 0 1 .211 1.68z"}))},4911:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 48 48"},i.createElement("path",{d:"M24 4.1A19.9 19.9 0 1 0 43.9 24 19.9 19.9 0 0 0 24 4.1zm12.563 12.587L22.018 35.341a1.208 1.208 0 0 1-.875.461h-.072a1.2 1.2 0 0 1-.85-.352l-7.785-7.795a1.2 1.2 0 0 1 0-1.7l1.326-1.325a1.2 1.2 0 0 1 1.7 0l5.338 5.351 12.408-15.9a1.2 1.2 0 0 1 1.686-.21L36.352 15a1.2 1.2 0 0 1 .211 1.687z"}))},58:function(e,t,n){"use strict";var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=a(n(2477)),r=a(n(5466));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return r.default.createElement(o.default,i({},e,{icon:{18:n(9159),24:n(4911)}}))};s.displayName="CheckmarkCircle",t.Z=s},6711:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 36 36"},i.createElement("path",{d:"M8 14.02a2 2 0 0 1 3.411-1.411l6.578 6.572 6.578-6.572a2 2 0 0 1 2.874 2.773l-.049.049-7.992 7.984a2 2 0 0 1-2.825 0l-7.989-7.983A1.989 1.989 0 0 1 8 14.02z"}))},8911:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 48 48"},i.createElement("path",{d:"M22.585 31.7L11.94 21.05a2 2 0 0 1 0-2.828l.282-.282a2.006 2.006 0 0 1 2.828 0L24 26.888l8.949-8.948a2.006 2.006 0 0 1 2.828 0l.282.282a2 2 0 0 1 0 2.828L25.414 31.7a2 2 0 0 1-2.829 0z"}))},9732:function(e,t,n){"use strict";var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=a(n(2477)),r=a(n(5466));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return r.default.createElement(o.default,i({},e,{icon:{18:n(6711),24:n(8911)}}))};s.displayName="ChevronDown",t.Z=s},7840:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 36 36"},i.createElement("path",{d:"M12 18a1.988 1.988 0 0 0 .585 1.409l7.983 7.98a2 2 0 1 0 2.871-2.772l-.049-.049L16.819 18l6.572-6.57a2 2 0 0 0-2.773-2.87l-.049.049-7.983 7.98A1.988 1.988 0 0 0 12 18z"}))},6457:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 48 48"},i.createElement("path",{d:"M16.3 22.585L26.949 11.94a2 2 0 0 1 2.828 0l.282.282a2.006 2.006 0 0 1 0 2.828L21.112 24l8.948 8.949a2.006 2.006 0 0 1 0 2.828l-.282.282a2 2 0 0 1-2.828 0L16.3 25.414a2 2 0 0 1 0-2.829z"}))},9121:function(e,t,n){"use strict";var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=a(n(2477)),r=a(n(5466));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return r.default.createElement(o.default,i({},e,{icon:{18:n(7840),24:n(6457)}}))};s.displayName="ChevronLeft",t.Z=s},7761:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 36 36"},i.createElement("path",{d:"M26.485 6.686L18 15.172 9.515 6.686a1 1 0 0 0-1.414 0L6.686 8.1a1 1 0 0 0 0 1.414L15.172 18l-8.486 8.485a1 1 0 0 0 0 1.414L8.1 29.314a1 1 0 0 0 1.414 0L18 20.828l8.485 8.485a1 1 0 0 0 1.414 0l1.415-1.413a1 1 0 0 0 0-1.414L20.828 18l8.485-8.485a1 1 0 0 0 0-1.414L27.9 6.686a1 1 0 0 0-1.415 0z"}))},4791:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 48 48"},i.createElement("path",{d:"M35.314 8.444L24 19.757 12.686 8.444a1 1 0 0 0-1.414 0l-2.828 2.828a1 1 0 0 0 0 1.414L19.757 24 8.444 35.314a1 1 0 0 0 0 1.414l2.828 2.828a1 1 0 0 0 1.414 0L24 28.243l11.314 11.313a1 1 0 0 0 1.414 0l2.828-2.828a1 1 0 0 0 0-1.414L28.243 24l11.313-11.314a1 1 0 0 0 0-1.414l-2.828-2.828a1 1 0 0 0-1.414 0z"}))},5884:function(e,t,n){"use strict";var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=a(n(2477)),r=a(n(5466));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return r.default.createElement(o.default,i({},e,{icon:{18:n(7761),24:n(4791)}}))};s.displayName="Close",t.Z=s},4238:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 36 36"},i.createElement("path",{d:"M27.314 6.686a16 16 0 1 0 0 22.627 16 16 0 0 0 0-22.627zm-2.687 18.527l-1.414 1.414a1.2 1.2 0 0 1-1.7 0L16 21.111l-5.516 5.516a1.2 1.2 0 0 1-1.7 0l-1.409-1.415a1.2 1.2 0 0 1 0-1.7L12.889 18l-5.514-5.516a1.2 1.2 0 0 1 0-1.7l1.414-1.411a1.2 1.2 0 0 1 1.7 0L16 14.888l5.516-5.515a1.2 1.2 0 0 1 1.7 0l1.414 1.414a1.2 1.2 0 0 1 0 1.7L19.112 18l5.516 5.516a1.2 1.2 0 0 1 0 1.7z"}))},9731:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 48 48"},i.createElement("path",{d:"M38.071 9.928a19.9 19.9 0 1 0 0 28.143 19.9 19.9 0 0 0 0-28.143zm-6.294 23.547a1 1 0 0 1-1.414 0L24 27.111l-6.364 6.364a1 1 0 0 1-1.414 0l-1.7-1.7a1 1 0 0 1 0-1.414L20.888 24l-6.363-6.363a1 1 0 0 1 0-1.414l1.7-1.7a1 1 0 0 1 1.414 0L24 20.888l6.365-6.363a1 1 0 0 1 1.414 0l1.7 1.7a1 1 0 0 1 0 1.414L27.112 24l6.363 6.364a1 1 0 0 1 0 1.414z"}))},2263:function(e,t,n){"use strict";var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=a(n(2477)),r=a(n(5466));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return r.default.createElement(o.default,i({},e,{icon:{18:n(4238),24:n(9731)}}))};s.displayName="CloseCircle",t.Z=s},3705:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 36 36"},i.createElement("path",{d:"M22.179 5.708a12.29 12.29 0 0 1 2.042 24.408s-1.646.176-2.989.176h-9.38a10.407 10.407 0 0 1-.006-20.813 10.8 10.8 0 0 1 1.362.086l.581-.544a12.239 12.239 0 0 1 8.39-3.313zm0-1.308A13.541 13.541 0 0 0 12.9 8.066l-.148.138c-.3-.022-.6-.033-.9-.033a11.714 11.714 0 0 0-.001 23.429h9.38c1.4 0 3.059-.176 3.128-.184A13.6 13.6 0 0 0 22.179 4.4z"}),i.createElement("path",{d:"M15.495 10.9a9.567 9.567 0 0 1 1.677.869 7.961 7.961 0 1 1-.672 11.853l-4.652-4.666a.878.878 0 1 0-1.257 1.224l4.675 4.69a9.717 9.717 0 1 0 .229-13.97zM4.068 19.866a7.855 7.855 0 0 0 7.858 7.854h4.1a11.5 11.5 0 0 1-2.16-1.75h-1.94a6.1 6.1 0 0 1 0-12.209 5.815 5.815 0 0 1 4 1.5l3.535 3.627a.877.877 0 1 0 1.257-1.225l-3.532-3.633a7.6 7.6 0 0 0-5.266-2.024 7.851 7.851 0 0 0-7.853 7.854z"}))},5820:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 48 48"},i.createElement("path",{d:"M20.894 14.565a11.85 11.85 0 0 1 2.077 1.076 9.861 9.861 0 1 1-.836 14.683l-5.762-5.779a1.087 1.087 0 1 0-1.558 1.516l5.791 5.809a12.036 12.036 0 1 0 .287-17.305zM6.74 25.671a9.73 9.73 0 0 0 9.733 9.729h5.084a14.25 14.25 0 0 1-2.675-2.168h-2.409a7.561 7.561 0 0 1 0-15.123 7.2 7.2 0 0 1 4.96 1.855l4.378 4.493a1.087 1.087 0 1 0 1.557-1.517l-4.38-4.5a9.414 9.414 0 0 0-6.522-2.508 9.725 9.725 0 0 0-9.726 9.731z"}),i.createElement("path",{d:"M29.11 8.32a15.037 15.037 0 0 1 2.5 29.864s-2.014.216-3.657.216H16.474a12.733 12.733 0 0 1-.007-25.465 13.218 13.218 0 0 1 1.667.1l.711-.665A14.975 14.975 0 0 1 29.11 8.32zm0-1.6a16.568 16.568 0 0 0-11.358 4.486l-.181.169a14.995 14.995 0 0 0-1.1-.041A14.333 14.333 0 0 0 16.474 40h11.477c1.709 0 3.742-.216 3.828-.225A16.635 16.635 0 0 0 29.11 6.72z"}))},8151:function(e,t,n){"use strict";var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=a(n(2477)),r=a(n(5466));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return r.default.createElement(o.default,i({},e,{icon:{18:n(3705),24:n(5820)}}))};s.displayName="CreativeCloud",t.Z=s},6517:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 36 36"},i.createElement("path",{d:"M30 17.5V30H6V6h12.5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5H3a1 1 0 0 0-1 1v30a1 1 0 0 0 1 1h30a1 1 0 0 0 1-1V17.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5z"}),i.createElement("path",{d:"M23.54 2.853l3.389 3.389-9.546 9.546a.5.5 0 0 0 0 .707l2.117 2.122a.5.5 0 0 0 .707 0l9.546-9.546 3.389 3.389a.5.5 0 0 0 .858-.353V2H23.893a.5.5 0 0 0-.353.853z"}))},5968:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 48 48"},i.createElement("path",{d:"M40 24.5V40H8V8h15.5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5H5a1 1 0 0 0-1 1v38a1 1 0 0 0 1 1h38a1 1 0 0 0 1-1V24.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5z"}),i.createElement("path",{d:"M30.241 4a1.008 1.008 0 0 0-.655 1.716l4.228 4.228-9.842 9.842a.5.5 0 0 0 0 .707l3.536 3.535a.5.5 0 0 0 .707 0l9.842-9.842 4.217 4.214a1 1 0 0 0 1.706-.655V4z"}))},7210:function(e,t,n){"use strict";var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=a(n(2477)),r=a(n(5466));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return r.default.createElement(o.default,i({},e,{icon:{18:n(6517),24:n(5968)}}))};s.displayName="LinkOut",t.Z=s},8178:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 36 36"},i.createElement("circle",{cx:"18",cy:"18",r:"4.1"}),i.createElement("circle",{cx:"30",cy:"18",r:"4.1"}),i.createElement("circle",{cx:"6",cy:"18",r:"4.1"}))},6574:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 48 48"},i.createElement("circle",{cx:"24",cy:"24",r:"6"}),i.createElement("circle",{cx:"42",cy:"24",r:"6"}),i.createElement("circle",{cx:"6",cy:"24",r:"6"}))},5509:function(e,t,n){"use strict";var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=a(n(2477)),r=a(n(5466));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return r.default.createElement(o.default,i({},e,{icon:{18:n(8178),24:n(6574)}}))};s.displayName="More",t.Z=s},8341:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 36 36"},i.createElement("path",{d:"M22.325 21.547v-2.224a1.539 1.539 0 0 1 .392-.993A11.746 11.746 0 0 0 25.388 11c0-5.547-2.942-8.647-7.387-8.647s-7.47 3.222-7.47 8.647a11.873 11.873 0 0 0 2.8 7.329 1.54 1.54 0 0 1 .392.993v2.214a1.528 1.528 0 0 1-1.333 1.542c-8.931.777-10.326 6.886-10.326 9.3 0 .268.032 1.321.051 1.585h31.857S34 32.642 34 32.374c0-2.309-1.577-8.4-10.346-9.286a1.535 1.535 0 0 1-1.329-1.541z"}))},7992:function(e,t,n){"use strict";var i=n(5466);e.exports=i.createElement("svg",{viewBox:"0 0 48 48"},i.createElement("path",{d:"M29.026 27.832v-2.806a2.038 2.038 0 0 1 .455-1.253 17.506 17.506 0 0 0 3.1-9.86c0-7-3.419-10.3-8.585-10.3s-8.683 3.456-8.683 10.3a17.634 17.634 0 0 0 3.253 9.86 2.038 2.038 0 0 1 .455 1.253v2.794a1.888 1.888 0 0 1-1.549 1.946C6.182 30.881 4 38.96 4 42c0 .338.037 1.667.059 2h39.882c.023-.333.059-1.662.059-2 0-2.914-2.091-11.028-13.431-12.223a1.891 1.891 0 0 1-1.543-1.945z"}))},477:function(e,t,n){"use strict";var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=a(n(2477)),r=a(n(5466));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return r.default.createElement(o.default,i({},e,{icon:{18:n(8341),24:n(7992)}}))};s.displayName="User",t.Z=s},6163:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2477)),o=r(n(5466));function r(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return o.default.createElement(i.default,e,o.default.createElement("svg",{className:"spectrum-UIIcon-AlertMedium"},o.default.createElement("path",{d:"M8.564 1.289L.2 16.256A.5.5 0 0 0 .636 17h16.728a.5.5 0 0 0 .5-.5.494.494 0 0 0-.064-.244L9.436 1.289a.5.5 0 0 0-.872 0zM10 14.75a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25zm0-3a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-6a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25z",className:"spectrum-UIIcon--medium"}),o.default.createElement("path",{d:"M10.563 2.206l-9.249 16.55a.5.5 0 0 0 .436.744h18.5a.5.5 0 0 0 .5-.5.494.494 0 0 0-.064-.244l-9.251-16.55a.5.5 0 0 0-.872 0zM12 17.25a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25zm0-3.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-6a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25z",className:"spectrum-UIIcon--large"})))};a.displayName="AlertMedium",t.default=a},4101:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2477)),o=r(n(5466));function r(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return o.default.createElement(i.default,e,o.default.createElement("svg",{className:"spectrum-UIIcon-CheckmarkMedium"},o.default.createElement("path",{d:"M4.5 10a1.023 1.023 0 0 1-.8-.384l-2.488-3a1 1 0 0 1 1.577-1.233L4.5 7.376l4.712-5.991a1 1 0 1 1 1.576 1.23l-5.511 7A.977.977 0 0 1 4.5 10z",className:"spectrum-UIIcon--medium"}),o.default.createElement("path",{d:"M6 14a1 1 0 0 1-.788-.385l-4-5a1 1 0 1 1 1.576-1.23L6 11.376l7.213-8.991a1 1 0 1 1 1.576 1.231l-8 10A1 1 0 0 1 6 14z",className:"spectrum-UIIcon--large"})))};a.displayName="CheckmarkMedium",t.default=a},5758:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2477)),o=r(n(5466));function r(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return o.default.createElement(i.default,e,o.default.createElement("svg",{className:"spectrum-UIIcon-ChevronDownMedium"},o.default.createElement("path",{d:"M9.99 1.01A1 1 0 0 0 8.283.3L5 3.586 1.717.3A1 1 0 1 0 .3 1.717L4.293 5.7a1 1 0 0 0 1.414 0L9.7 1.717a1 1 0 0 0 .29-.707z",className:"spectrum-UIIcon--medium"}),o.default.createElement("path",{d:"M11.99 1.51A1 1 0 0 0 10.283.8L6 5.086 1.717.8A1 1 0 1 0 .3 2.217l4.99 4.99a1 1 0 0 0 1.414 0l4.99-4.99a1 1 0 0 0 .296-.707z",className:"spectrum-UIIcon--large"})))};a.displayName="ChevronDownMedium",t.default=a},7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2477)),o=r(n(5466));function r(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return o.default.createElement(i.default,e,o.default.createElement("svg",{className:"spectrum-UIIcon-ChevronRightMedium"},o.default.createElement("path",{d:"M5.99 5a1 1 0 0 0-.29-.707L1.717.3A1 1 0 1 0 .3 1.717L3.586 5 .3 8.283A1 1 0 1 0 1.717 9.7L5.7 5.707A1 1 0 0 0 5.99 5z",className:"spectrum-UIIcon--medium"}),o.default.createElement("path",{d:"M7.5 6a1 1 0 0 0-.293-.707L2.217.3A1 1 0 1 0 .8 1.717L5.086 6 .8 10.283A1 1 0 1 0 2.217 11.7l4.99-4.99A1 1 0 0 0 7.5 6z",className:"spectrum-UIIcon--large"})))};a.displayName="ChevronRightMedium",t.default=a},8647:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2477)),o=r(n(5466));function r(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return o.default.createElement(i.default,e,o.default.createElement("svg",{className:"spectrum-UIIcon-CornerTriangle"},o.default.createElement("path",{d:"M4.74.01a.25.25 0 0 0-.177.073l-4.48 4.48a.25.25 0 0 0 .177.427h4.48a.25.25 0 0 0 .25-.25V.26a.25.25 0 0 0-.25-.25z",className:"spectrum-UIIcon--medium"}),o.default.createElement("path",{d:"M5.74.01a.25.25 0 0 0-.177.073l-5.48 5.48a.25.25 0 0 0 .177.427h5.48a.25.25 0 0 0 .25-.25V.26a.25.25 0 0 0-.25-.25z",className:"spectrum-UIIcon--large"})))};a.displayName="CornerTriangle",t.default=a},8018:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2477)),o=r(n(5466));function r(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return o.default.createElement(i.default,e,o.default.createElement("svg",{className:"spectrum-UIIcon-CrossLarge"},o.default.createElement("path",{d:"M11.7 10.283L7.414 6 11.7 1.717A1 1 0 1 0 10.283.3L6 4.586 1.717.3A1 1 0 1 0 .3 1.717L4.586 6 .3 10.283A1 1 0 1 0 1.717 11.7L6 7.414l4.283 4.286a1 1 0 1 0 1.417-1.417z",className:"spectrum-UIIcon--medium"}),o.default.createElement("path",{d:"M15.7 14.283L9.414 8 15.7 1.717A1 1 0 1 0 14.283.3L8 6.586 1.717.3A1 1 0 1 0 .3 1.717L6.586 8 .3 14.283A1 1 0 1 0 1.717 15.7L8 9.414l6.283 6.286a1 1 0 1 0 1.417-1.417z",className:"spectrum-UIIcon--large"})))};a.displayName="CrossLarge",t.default=a},6837:function(e,t,n){e.exports=n(2477)},2477:function(e,t,n){"use strict";var i=n(8135);Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var o=i(n(1514)),r=i(n(9902)),a=i(n(8098)),s=i(n(3074)),c=i(n(5466));function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}n(6927);var u={XXS:18,XS:24,S:18,M:24,L:18,XL:24,XXL:24};function f(e){var t=e.icon,n=e.size,i=void 0===n?"M":n,s=e.className,f=e.children,d=e["aria-label"],p=e["aria-hidden"],h=e.role,g=void 0===h?"img":h,m=e.alt,y=(0,r.default)(e,["icon","size","className","children","aria-label","aria-hidden","role","alt"]),v=u[i],b=t&&t[v]||t||f;if("string"==typeof b)throw new Error("String icon names are deprecated. Please import icons from react-spectrum/Icon/IconName and render as <IconName />.");return p&&"false"!==p||(p=void 0),c.default.cloneElement(b,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({focusable:"false","aria-label":d||m,"aria-hidden":!d&&!m||p,role:g,className:(0,a.default)(b.props.className,"spectrum-Icon",(0,o.default)({},"spectrum-Icon--size".concat(i),i),s)},y))}f.displayName="Icon",f.propTypes={size:s.default.string}},2071:function(e,t,n){"use strict";var i=n(8135);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"List",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"ListItem",{enumerable:!0,get:function(){return r.default}});var o=i(n(9961)),r=i(n(4857))},9961:function(e,t,n){"use strict";var i=n(8135),o=n(2754);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a,s,c=i(n(9894)),l=i(n(9902)),u=i(n(7296)),f=i(n(2e3)),d=i(n(1803)),p=i(n(6368)),h=i(n(4626)),g=i(n(1514)),m=i(n(8098)),y=i(n(9008)),v=i(n(3258)),b=i(n(8366)),_=i(n(4167)),C=i(n(4383)),S=i(n(3074)),E=o(n(5466));n(8024),n(6579),n(9918),n(8121);var N=".spectrum-Menu-item",O=":not(.is-disabled)",T=N+O+".is-selected",I=(0,y.default)(r=(0,C.default)((s=a=function(e){function t(e){var n;return(0,u.default)(this,t),(n=(0,d.default)(this,(0,p.default)(t).call(this,e))).listId=(0,v.default)(),n}return(0,h.default)(t,e),(0,f.default)(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,i=e.role,o=void 0===i?"listbox":i,r=e.autoFocus,a=e.selectable,s=void 0!==a&&a,u=e.id,f=void 0===u?this.listId:u,d=e.typeToSelect,p=void 0===d||d,h=(0,l.default)(e,["className","children","role","autoFocus","selectable","id","typeToSelect"]);return E.default.createElement(_.default,{itemSelector:N+O,selectedItemSelector:T,typeToSelect:p,autoFocus:r},E.default.createElement("ul",(0,c.default)({id:f,className:(0,m.default)("spectrum-Menu",{"is-selectable":s},t),role:o},(0,b.default)(h)),n))}}]),t}(E.Component),(0,g.default)(a,"propTypes",{autoFocus:S.default.bool,className:S.default.string,role:S.default.oneOf(["listbox","menu"]),selectable:S.default.bool,typeToSelect:S.default.bool}),(0,g.default)(a,"defaultProps",{role:"listbox"}),r=s))||r)||r;t.default=I},4857:function(e,t,n){"use strict";var i=n(8135),o=n(2754);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a,s,c=i(n(9894)),l=i(n(9902)),u=i(n(7296)),f=i(n(2e3)),d=i(n(1803)),p=i(n(6368)),h=i(n(4626)),g=i(n(1514)),m=i(n(3023)),y=i(n(4101)),v=i(n(7)),b=i(n(8098)),_=n(7873),C=i(n(8366)),S=n(6499),E=i(n(3074)),N=o(n(5466)),O=(0,m.default)((s=a=function(e){function t(){return(0,u.default)(this,t),(0,d.default)(this,(0,p.default)(t).apply(this,arguments))}return(0,h.default)(t,e),(0,f.default)(t,[{key:"handleMouseEnter",value:function(e){this.props.onMouseEnter?this.props.onMouseEnter(e):e.currentTarget.focus()}},{key:"handleFocus",value:function(e){this.props.onFocus&&this.props.onFocus(e)}},{key:"handleBlur",value:function(e){this.props.onBlur&&this.props.onBlur(e)}},{key:"onSelectFocused",value:function(e){e.preventDefault(),this.props.onClick&&this.props.onClick(e),this.props.onSelect&&!e.isPropagationStopped()&&this.props.onSelect(this.props.value,e)}},{key:"onKeyDown",value:function(e){var t=this.props,n=t.onKeyDown,i=t.disabled;n&&n(e),i||S.interpretKeyboardEvent.call(this,e)}},{key:"render",value:function(){var e=this.props,t=e.icon,n=e.label,i=e.className,o=e.children,r=e.selected,a=e.disabled,s=e.focused,u=e.hasNestedMenu,f=e.tabIndex,d=void 0===f?0:f,p=e.role,h=void 0===p?"option":p,g=(0,l.default)(e,["icon","label","className","children","selected","disabled","focused","hasNestedMenu","tabIndex","role"]);return delete g.value,N.default.createElement("li",(0,c.default)({},(0,C.default)(g),{className:(0,b.default)("spectrum-Menu-item",{"is-selected":r,"is-disabled":a,"is-focused":s},i),onKeyDown:this.onKeyDown,onMouseEnter:a?null:this.handleMouseEnter,onFocus:a?null:this.handleFocus,onClick:a?null:this.onSelectFocused,onBlur:this.handleBlur,tabIndex:a?null:d,role:h,"aria-checked":"menuitemcheckbox"===h||"menuitemradio"===h?!!r:null,"aria-selected":"option"===h?!!r||!!s:null,"aria-disabled":a||null}),(0,_.cloneIcon)(t,{size:"S"}),N.default.createElement("span",{className:"spectrum-Menu-itemLabel"},n||o),r&&N.default.createElement(y.default,{size:null,className:"spectrum-Menu-checkmark"}),u&&N.default.createElement(v.default,{className:"spectrum-Menu-chevron"}))}}]),t}(N.Component),(0,g.default)(a,"propTypes",{selected:E.default.bool,disabled:E.default.bool,onClick:E.default.func,onSelect:E.default.func,role:E.default.oneOf(["option","menuitem","menuitemcheckbox","menuitemradio"])}),(0,g.default)(a,"defaultProps",{selected:!1,disabled:!1,onSelect:function(){},role:"option"}),r=s))||r;t.default=O},4407:function(e,t,n){"use strict";var i=n(8135);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Menu",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"MenuItem",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"MenuDivider",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"MenuHeading",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"SubMenu",{enumerable:!0,get:function(){return c.default}});var o=i(n(5763)),r=i(n(1297)),a=i(n(1359)),s=i(n(9145)),c=i(n(402))},5763:function(e,t,n){"use strict";var i=n(8135);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,r,a,s=i(n(9894)),c=i(n(9902)),l=i(n(7296)),u=i(n(2e3)),f=i(n(1803)),d=i(n(6368)),p=i(n(4626)),h=i(n(1514)),g=i(n(3023)),m=n(2071),y=i(n(4642)),v=i(n(3074)),b=i(n(5466));function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){(0,h.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S=(0,g.default)((a=r=function(e){function t(){return(0,l.default)(this,t),(0,f.default)(this,(0,d.default)(t).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"getListRef",value:function(){return this.listRef}},{key:"onClick",value:function(e){e.preventDefault(),this.props.onClick&&this.props.onClick(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,i=t.className,o=t.closeOnSelect,r=t.open,a=t.onClose,l=t.onSelect,u=t.placement,f=t.role,d=void 0===f?"menu":f,p=t.style,h=t.trapFocus,g=(0,c.default)(t,["children","className","closeOnSelect","open","onClose","onSelect","placement","role","style","trapFocus"]);return delete g.target,delete g.onClick,b.default.createElement(y.default,{isDialog:!1,placement:u,open:r,onClose:a,style:C({},p,{overflowY:"auto"}),trapFocus:h},b.default.createElement(m.List,(0,s.default)({ref:function(t){return e.listRef=t},role:d,className:i,onClick:this.onClick},g),b.default.Children.map(n,(function(e){return b.default.cloneElement(e,{onSelect:l,closeOnSelect:o})}))))}}]),t}(b.default.Component),(0,h.default)(r,"displayName","Menu"),(0,h.default)(r,"propTypes",{placement:v.default.oneOf(["bottom","bottom left","bottom right","top","top left","top right","left","left top","left bottom","right","right top","right bottom"]),open:v.default.bool,onClose:v.default.func,onSelect:v.default.func,className:v.default.string,trapFocus:v.default.bool,role:v.default.oneOf(["menu","listbox"])}),(0,h.default)(r,"defaultProps",{trapFocus:!0}),o=a))||o;t.default=S},1359:function(e,t,n){"use strict";var i=n(2754),o=n(8135);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(7296)),a=o(n(2e3)),s=o(n(1803)),c=o(n(6368)),l=o(n(4626)),u=o(n(1514)),f=i(n(5466)),d=function(e){function t(){return(0,r.default)(this,t),(0,s.default)(this,(0,c.default)(t).apply(this,arguments))}return(0,l.default)(t,e),(0,a.default)(t,[{key:"render",value:function(){return f.default.createElement("li",{className:"spectrum-Menu-divider",role:"separator"})}}]),t}(f.Component);t.default=d,(0,u.default)(d,"displayName","MenuDivider")},9145:function(e,t,n){"use strict";var i=n(2754),o=n(8135);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(9894)),a=o(n(9902)),s=o(n(7296)),c=o(n(2e3)),l=o(n(1803)),u=o(n(6368)),f=o(n(4626)),d=o(n(1514)),p=o(n(8366)),h=i(n(5466)),g=function(e){function t(){return(0,s.default)(this,t),(0,l.default)(this,(0,u.default)(t).apply(this,arguments))}return(0,f.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e=this.props,t=e.label,n=e.children,i=e.role,o=void 0===i?"presentation":i,s=e["aria-level"],c=(0,a.default)(e,["label","children","role","aria-level"]);return h.default.createElement("li",(0,r.default)({role:o,className:"spectrum-Menu-sectionHeading"},(0,p.default)(c)),h.default.createElement("span",{role:"heading","aria-level":s||3},t||n))}}]),t}(h.Component);t.default=g,(0,d.default)(g,"displayName","MenuHeading")},1297:function(e,t,n){"use strict";var i=n(2754),o=n(8135);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(9894)),a=o(n(9902)),s=o(n(7296)),c=o(n(2e3)),l=o(n(1803)),u=o(n(6368)),f=o(n(4626)),d=o(n(1514)),p=n(2071),h=o(n(3074)),g=i(n(5466));function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}var y=function(e){function t(){return(0,s.default)(this,t),(0,l.default)(this,(0,u.default)(t).apply(this,arguments))}return(0,f.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e=this.props,t=e.role,n=void 0===t?"menuitem":t,i=(0,a.default)(e,["role"]);return g.default.createElement(p.ListItem,(0,r.default)({role:n},i))}}]),t}(g.Component);t.default=y,(0,d.default)(y,"displayName","MenuItem"),(0,d.default)(y,"propTypes",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){(0,d.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},p.ListItem.propTypes,{role:h.default.oneOf(["menuitem","menuitemcheckbox","menuitemradio","option"])})),(0,d.default)(y,"defaultProps",{role:"menuitem"})},402:function(e,t,n){"use strict";var i=n(8135),o=n(2754);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a,s,c=i(n(9894)),l=i(n(9902)),u=i(n(7296)),f=i(n(2e3)),d=i(n(1803)),p=i(n(6368)),h=i(n(2143)),g=i(n(4626)),m=i(n(1514)),y=i(n(3023)),v=i(n(8098)),b=i(n(3258)),_=i(n(5763)),C=i(n(1297)),S=i(n(7249)),E=i(n(3074)),N=o(n(5466));i(n(6116));function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){(0,m.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I=(0,y.default)((s=a=function(e){function t(){var e,n;(0,u.default)(this,t);for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return n=(0,d.default)(this,(e=(0,p.default)(t)).call.apply(e,[this].concat(o))),(0,m.default)((0,h.default)(n),"state",{opened:!1,trapFocus:!0}),(0,m.default)((0,h.default)(n),"menuId",(0,b.default)()),(0,m.default)((0,h.default)(n),"subMenuId",(0,b.default)()),n}return(0,g.default)(t,e),(0,f.default)(t,[{key:"handleKeyDown",value:function(e){var t=this.props.onKeyDown;switch(e.key){case"ArrowLeft":case"Left":e.preventDefault(),e.stopPropagation(),this.setState({opened:!1});break;case"Enter":case" ":case"ArrowRight":case"Right":e.preventDefault(),e.stopPropagation(),this.setState({opened:!0})}t&&t(e)}},{key:"handleSubMenuKeyDown",value:function(e){switch(e.key){case"ArrowLeft":case"Left":e.preventDefault(),this.setState({opened:!1})}}},{key:"hide",value:function(){var e=this;this.hideAnimationFrame=requestAnimationFrame((function(){return e.setState({opened:!1})}))}},{key:"show",value:function(){var e=this;this.hideAnimationFrame&&cancelAnimationFrame(this.hideAnimationFrame),requestAnimationFrame((function(){return e.setState({opened:!0})})),this.props._onNestedSubmenuOpen&&this.props._onNestedSubmenuOpen()}},{key:"cloneItem",value:function(e){var n=T({},e.props,{onKeyDown:this.handleSubMenuKeyDown});return e.type===t&&(n._onNestedSubmenuOpen=this.show),(0,N.cloneElement)(e,n)}},{key:"onHide",value:function(){this.hide()}},{key:"onMenuClose",value:function(){this.overlayTrigger.hide()}},{key:"onSelect",value:function(){var e;(this.props.closeOnSelect&&this.onMenuClose(),this.props.onSelect)&&(e=this.props).onSelect.apply(e,arguments)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,i=t.className,o=t.closeOnSelect,r=t.label,a=t.trapFocus,s=(0,l.default)(t,["children","className","closeOnSelect","label","trapFocus"]);delete s.onSelect;var u=this.state.opened;return N.default.createElement(S.default,{placement:"right top",offset:-10,crossOffset:-4,selected:!1,show:u,onHide:this.onHide,closeOnSelect:o,ref:function(t){return e.overlayTrigger=t}},N.default.createElement(C.default,(0,c.default)({id:this.menuId,className:(0,v.default)({"is-open":u},i),ref:function(t){return e.menuItem=t},"aria-haspopup":"menu","aria-expanded":u,"aria-owns":u?this.subMenuId:null},s,{onKeyDown:s.disabled?void 0:this.handleKeyDown,onClick:this.show,onMouseEnter:this.show,onMouseLeave:this.hide,hasNestedMenu:!0}),r),N.default.createElement(_.default,{id:this.subMenuId,onSelect:this.onSelect,autoFocus:!0,"aria-labelledby":this.menuId,onMouseEnter:this.show,onMouseLeave:this.hide,trapFocus:a},N.default.Children.toArray(n).map(this.cloneItem)))}}]),t}(N.Component),(0,m.default)(a,"displayName","SubMenu"),(0,m.default)(a,"propTypes",T({},C.default.propTypes,{className:E.default.string,label:E.default.string,onSelect:E.default.func,trapFocus:E.default.bool})),r=s))||r;t.default=I},8907:function(e,t,n){"use strict";var i=n(8135),o=n(2754);Object.defineProperty(t,"__esModule",{value:!0}),t.modalManager=t.Modal=t.default=void 0;var r,a,s=i(n(1803)),c=i(n(6368)),l=i(n(2143)),u=i(n(4626)),f=i(n(9894)),d=i(n(1514)),p=i(n(9902)),h=i(n(7296)),g=i(n(2e3)),m=i(n(3023)),y=i(n(5233)),v=n(6499),b=i(n(8098)),_=i(n(27)),C=i(n(8366)),S=i(n(7622)),E=i(n(8882)),N=i(n(985)),O=o(n(5466)),T=i(n(6116));function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}n(9301),n(7724),n(4211),n(3379);var w=["onBackdropClick","onEnter","onEntering","onEntered","onEscapeKeyDown","onExit","onExiting","onExited","onHide","onShow"],A=new S.default({handleContainerOverflow:!1});t.modalManager=A;var k=1,D=function(){function e(){(0,h.default)(this,e)}return(0,g.default)(e,null,[{key:"show",value:function(e,t,n){var i=k++;!n&&t?n=function(){return(0,_.default)(T.default.findDOMNode(t),".react-spectrum-provider")}:n||(n=function(){return document.querySelector(".react-spectrum-provider")||document.body});var o=e.props,r=o.disableEscKey,a=o.role,s=o.onClose,c=o.onHide,l=o.onExited,u=(0,p.default)(o,["disableEscKey","role","onClose","onHide","onExited"]);a=a&&-1!==a.indexOf("dialog")?"presentation":"dialog",u=w.reduce((function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){(0,d.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,(0,d.default)({},t,u[t]))}),{});var h=O.default.createElement(P,(0,f.default)({},u,{container:n,key:i,keyboard:!r,role:a,onClose:s,onHide:(0,v.chain)(this.hide.bind(this,i),c,l),"aria-modal":"dialog"===a||null}),e);return N.default.add(h,t),i}},{key:"hide",value:function(e){N.default.remove({key:e})}}]),e}();t.default=D;var P=(0,m.default)((a=function(e){function t(){var e,n;(0,h.default)(this,t);for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return n=(0,s.default)(this,(e=(0,c.default)(t)).call.apply(e,[this].concat(o))),(0,d.default)((0,l.default)(n),"state",{show:!0}),n}return(0,u.default)(t,e),(0,g.default)(t,[{key:"onClose",value:function(){this.setState({show:!1}),this.props.onClose&&this.props.onClose()}},{key:"onEntering",value:function(e){this.props.onEntering&&this.props.onEntering(e),this.baseModal.lastFocus===document.activeElement&&this.baseModal.autoFocus()}},{key:"backdropMode",value:function(){var e=this.props.children.props,t="static";return e.backdropClickable&&(t=!0),"fullscreenTakeover"===e.mode&&(t=!1),t}},{key:"render",value:function(){var e=this,t=this.backdropMode(),n=this.props,i=n.children,o=n.onHide,r=(0,p.default)(n,["children","onHide"]);return O.default.createElement(y.default,(0,f.default)({},r,{style:{zIndex:1e5,position:"relative"},show:this.state.show,ref:function(t){return e.baseModal=t},onEntering:this.onEntering,onExited:o,onHide:this.onClose,backdrop:t,manager:A,renderBackdrop:function(e){return O.default.createElement(R,e)},transition:E.default,backdropTransition:E.default}),(0,O.cloneElement)(i,{onClose:this.onClose}))}}]),t}(O.default.Component),r=a))||r;t.Modal=P;var R=function(e){function t(){return(0,h.default)(this,t),(0,s.default)(this,(0,c.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,g.default)(t,[{key:"render",value:function(){var e=this.props,t=e.open,n=(0,p.default)(e,["open"]);return O.default.createElement("div",(0,f.default)({},(0,C.default)(n),{className:(0,b.default)("spectrum-Underlay",{"is-open":t})}))}}]),t}(O.default.Component)},7622:function(e,t,n){"use strict";var i=n(8135);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(7296)),r=i(n(2e3)),a=i(n(1803)),s=i(n(6368)),c=i(n(2143)),l=i(n(4626)),u=i(n(1514)),f=function(e){function t(){var e,n;(0,o.default)(this,t);for(var i=arguments.length,r=new Array(i),l=0;l<i;l++)r[l]=arguments[l];return n=(0,a.default)(this,(e=(0,s.default)(t)).call.apply(e,[this].concat(r))),(0,u.default)((0,c.default)(n),"overflowMap",new Map),(0,u.default)((0,c.default)(n),"superAdd",n.add),(0,u.default)((0,c.default)(n),"superRemove",n.remove),(0,u.default)((0,c.default)(n),"add",(function(e,t,i,o){n.superAdd(e,t,i),n.hideBodyOverflow(e,o)})),(0,u.default)((0,c.default)(n),"hideBodyOverflow",(function(e,t){var i=getComputedStyle(document.body).overflow;t||"hidden"===i||(n.overflowMap.set(e,i),document.body.style.overflow="hidden")})),(0,u.default)((0,c.default)(n),"remove",(function(e,t,i){n.superRemove(e,t,i),n.resetBodyOverflow(e)})),(0,u.default)((0,c.default)(n),"resetBodyOverflow",(function(e){n.overflowMap.has(e)&&(document.body.style.overflow=n.overflowMap.get(e),n.overflowMap.delete(e))})),n}return(0,l.default)(t,e),(0,r.default)(t,[{key:"addToModal",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.hideSiblingNodes;this.hideSiblingNodes=!1,this.add(e,document.body,null,t),this.hideSiblingNodes=n}},{key:"removeFromModal",value:function(e){var t=this.hideSiblingNodes;this.hideSiblingNodes=!1,this.remove(e),this.hideSiblingNodes=t}}]),t}(i(n(9318)).default);t.default=f},7249:function(e,t,n){e.exports=n(7220)},5953:function(e,t,n){"use strict";var i=n(8135);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,r,a,s=i(n(7296)),c=i(n(2e3)),l=i(n(1803)),u=i(n(6368)),f=i(n(4626)),d=i(n(1514)),p=i(n(3023)),h=i(n(27)),g=i(n(9008)),m=i(n(8882)),y=i(n(7857)),v=i(n(4936)),b=i(n(717)),_=i(n(5466)),C=i(n(6116)),S=i(n(1400));function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){(0,d.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O=new Map,T=(0,g.default)(o=(0,p.default)((a=r=function(e){function t(e){var n;return(0,s.default)(this,t),(n=(0,l.default)(this,(0,u.default)(t).call(this,e))).state={exited:!n.props.show},n}return(0,f.default)(t,e),(0,c.default)(t,[{key:"componentDidMount",value:function(){this.setState({targetNode:C.default.findDOMNode(this.props.target)}),this.mounted=!0,this.addOverlay()}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.removeOverlay()}},{key:"addOverlay",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=this.overlayBucketKey,n=O.get(t);n||(O.set(t,[]),n=O.get(t)),e.show&&this.mounted&&!n.includes(this)&&n.push(this)}},{key:"removeOverlay",value:function(){var e=O.get(this.overlayBucketKey),t=e.indexOf(this);t>=0&&e.splice(t,1)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.target&&e.target!==this.props.target&&this.setState(N({},this.state,{targetNode:C.default.findDOMNode(e.target)}))}},{key:"onEntered",value:function(){var e;(this.setState(N({},this.state,{exited:!1})),this.addOverlay(),this.props.onEntered)&&(e=this.props).onEntered.apply(e,arguments)}},{key:"onExited",value:function(){var e;(this.setState(N({},this.state,{exited:!0})),this.removeOverlay(),this.props.onExited)&&(e=this.props).onExited.apply(e,arguments)}},{key:"getOverlayContainer",value:function(e){var t=(0,h.default)(this.state.targetNode,".react-spectrum-provider");return this.props.container||t}},{key:"hide",value:function(e){var t=O.get(this.overlayBucketKey);t[t.length-1]===this&&this.props.onHide&&this.props.onHide(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.containerPadding,i=t.target,o=t.container,r=void 0===o?this.getOverlayContainer(i):o,a=t.placement,s=t.offset,c=t.crossOffset,l=t.flip,u=t.boundariesElement,f=void 0===u?function(){return(0,y.default)(e).body}:u,d=t.shouldUpdatePosition,p=t.rootClose,h=t.children,g=t.show,C=t.onExit,E=t.onExiting,N=t.onEnter,O=t.onEntering;if(!(g||!this.state.exited))return null;var T=h;return T=_.default.createElement(b.default,{container:r,containerPadding:n,target:i,placement:a,shouldUpdatePosition:d,offset:s,crossOffset:c,flip:l,boundariesElement:f},T),T=_.default.createElement(m.default,{in:g,appear:!0,onExit:C,onExiting:E,onExited:this.onExited,onEnter:N,onEntering:O,onEntered:this.onEntered},T),p&&(T=_.default.createElement(S.default,{onRootClose:this.hide},T)),_.default.createElement(v.default,{container:r},T)}},{key:"overlayBucketKey",get:function(){var e=this.props.children;return e&&e.props&&"tooltip"===e.props.role?"tooltip":"all"}}]),t}(_.default.Component),(0,d.default)(r,"defaultProps",{placement:"left"}),o=a))||o)||o;t.default=T},7220:function(e,t,n){"use strict";var i=n(8135),o=n(2754);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a,s,c=i(n(9887)),l=i(n(9894)),u=i(n(9902)),f=i(n(7296)),d=i(n(2e3)),p=i(n(1803)),h=i(n(6368)),g=i(n(2143)),m=i(n(4626)),y=i(n(1514)),v=i(n(3023)),b=n(6499),_=i(n(9008)),C=i(n(3258)),S=n(8907),E=i(n(5953)),N=i(n(7857)),O=i(n(3074)),T=o(n(5466)),I=i(n(6116));function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){(0,y.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=O.default.oneOf(["click","longClick","hover","focus"]),D=0;function P(e,t){return Array.isArray(t)?t.indexOf(e)>=0:e===t}var R=(0,_.default)(r=(0,v.default)((s=a=function(e){function t(e,n){var i;return(0,f.default)(this,t),i=(0,p.default)(this,(0,h.default)(t).call(this,e,n)),(0,y.default)((0,g.default)(i),"onMouseDown",(function(e){if(!i.props.disabled&&e.button===D){var t=e.currentTarget;i.longPressTimeout=setTimeout((function(){i.longPressTimeout=null,i._lastFocus=t,i.show(e)}),250)}})),(0,y.default)((0,g.default)(i),"onMouseUp",(function(e){i.longPressTimeout||e.preventDefault(),!i.props.disabled&&i.longPressTimeout&&e.button===D&&(i.props.onClick&&i.props.onClick(e),i.hide(e),clearTimeout(i.longPressTimeout),i.longPressTimeout=null)})),(0,y.default)((0,g.default)(i),"windowMouseUp",(function(e){e.button===D&&!I.default.findDOMNode((0,g.default)(i)).contains(e.target)&&i.longPressTimeout&&(clearTimeout(i.longPressTimeout),i.longPressTimeout=null)})),i.overlayId=(0,C.default)(),i._mountNode=null,i.longPressTimeout=null,i._lastFocus=e.lastFocus,i.boundariesElement=e.boundariesElement?e.boundariesElement:function(){return(0,N.default)((0,g.default)(i)).body},i._scrollParents=null,i.state={show:void 0===e.show?e.defaultShow:e.show},i}return(0,m.default)(t,e),(0,d.default)(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){"lastFocus"in e&&e.lastFocus!==this.props.lastFocus&&(this._lastFocus=e.lastFocus),e.show!==this.props.show&&(e.show?this.handleDelayedShow():this.handleDelayedHide())}},{key:"componentDidMount",value:function(){this._mountNode=document.createElement("div"),this.renderOverlay(),document.body.addEventListener("mouseUp",this.windowMouseUp)}},{key:"componentDidUpdate",value:function(e){var t=e.disabled,n=this.props.disabled;!t&&n&&this.hide(),this.renderOverlay()}},{key:"componentWillUnmount",value:function(){S.modalManager.removeFromModal(this._overlay),I.default.unmountComponentAtNode(this._mountNode),this._mountNode=null,clearTimeout(this._hoverShowDelay),clearTimeout(this._hoverHideDelay),this.removeListenersFromScrollParents(),document.body.removeEventListener("mouseUp",this.windowMouseUp)}},{key:"handleToggle",value:function(e){this.state.show?this.hide(e):this.show(e)}},{key:"handleDelayedShow",value:function(e){var t=this;if(null!=this._hoverHideDelay)return clearTimeout(this._hoverHideDelay),void(this._hoverHideDelay=null);if(!this.state.show&&null==this._hoverShowDelay){var n=null!=this.props.delayShow?this.props.delayShow:this.props.delay;n?this._hoverShowDelay=setTimeout((function(){t._hoverShowDelay=null,t.show(e)}),n):this.show(e)}}},{key:"handleDelayedHide",value:function(e){var n=this;if(null!=this._hoverShowDelay)return clearTimeout(this._hoverShowDelay),void(this._hoverShowDelay=null);if(this.state.show&&null==this._hoverHideDelay){var i=this.props.delayHide&&this.props.delayHide!==t.defaultProps.delayHide||null==this.props.delay?this.props.delayHide:this.props.delay;i?this._hoverHideDelay=setTimeout((function(){n._hoverHideDelay=null,n.hide(e)}),i):this.hide(e)}}},{key:"handleMouseOverOut",value:function(e,t){var n=t.currentTarget,i=t.relatedTarget||t.nativeEvent.toElement;i&&(i===n||n.contains(i))||e(t)}},{key:"show",value:function(e){this.state.show||this.props.disabled||(this._lastFocus=this.rememberedFocus(),this.listenToScrollParents(),this.setState({show:!0}),this.props.onShow&&this.props.onShow(e))}},{key:"listenToScrollParents",value:function(){this._scrollParents&&this.removeListenersFromScrollParents(),this._scrollParents=function(e){for(var t=[];e.parentNode;){var n=window.getComputedStyle(e);(/auto|scroll/.test(n.overflow+n.overflowY)||e.hasAttribute("data-scrollable"))&&t.push(e),e=e.parentNode}return t}(I.default.findDOMNode(this));var e=!0,t=!1,n=void 0;try{for(var i,o=this._scrollParents[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){i.value.addEventListener("scroll",this.hide,!1)}}catch(e){t=!0,n=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw n}}}},{key:"removeListenersFromScrollParents",value:function(){if(this._scrollParents){var e=!0,t=!1,n=void 0;try{for(var i,o=this._scrollParents[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){i.value.removeEventListener("scroll",this.hide,!1)}}catch(e){t=!0,n=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw n}}this._scrollParents=null}}},{key:"hide",value:function(e){this.removeListenersFromScrollParents(),this.state.show&&(this.setState({show:!1}),this.props.onHide&&this.props.onHide(e))}},{key:"onKeyDown",value:function(e){"ArrowDown"!==e.key&&"Down"!==e.key||(e.altKey||e.target===I.default.findDOMNode(this.dropdownRef.triggerRef))&&(e.preventDefault(),this.show(e))}},{key:"onHide",value:function(e){P("longClick",this.props.trigger)&&I.default.findDOMNode(this).contains(e.target)||(void 0===this.props.show?this.hide(e):this.props.onHide&&this.props.onHide(e))}},{key:"onExited",value:function(e){this.restoreFocus(e),this.props.onExited&&this.props.onExited(e)}},{key:"rememberedFocus",value:function(){return!this._lastFocus&&document&&document.activeElement!==document.body&&(this._lastFocus=document.activeElement),this._lastFocus}},{key:"restoreFocus",value:function(e){if(this._lastFocus&&"function"==typeof this._lastFocus.focus){var t;if(document)e&&(t=I.default.findDOMNode(e)),(t&&(t===document.activeElement||t.contains(document.activeElement))||document.activeElement===document.body)&&this._lastFocus.focus();this.props.lastFocus||(this._lastFocus=null)}}},{key:"makeOverlay",value:function(e,t){var n=this.props.target,i=void 0===n?this:n,o=t.rootClose,r=void 0===o||o,a=(0,u.default)(t,["rootClose"]);delete a.crossOffset,delete a.defaultShow,delete a.flip,delete a.boundariesElement;var s=A({id:e.props.id||a.id},t);return e.props.id||(a.id=this.overlayId),T.default.createElement(E.default,(0,l.default)({},s,{show:this.state.show,onHide:this.onHide,onExited:this.onExited,target:i,rootClose:r}),(0,T.cloneElement)(e,a))}},{key:"renderOverlay",value:function(){this._overlay.props.show&&S.modalManager.addToModal(this._overlay,!0),I.default.unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)}},{key:"render",value:function(){var e=this.props,t=e.trigger,n=e.show,i=e.selected,o=void 0===i?this.state.show:i,r=(0,u.default)(e,["trigger","show","selected"]);delete r.delay,delete r.delayShow,delete r.delayHide,delete r.defaultShow,delete r.onShow,delete r.onHide;var a=T.default.Children.toArray(this.props.children),s=(0,c.default)(a,2),l=s[0],f=s[1],d={};return delete r.children,this.state.show&&f.type&&"tooltip"===f.props.role&&(r.id||(r.id=f.props.id||this.overlayId),d["aria-describedby"]=r.id),void 0===n&&(P("click",t)&&!P("longClick",t)&&(d.onClick=(0,b.chain)(this.props.onClick,this.handleToggle)),P("longClick",t)&&(delete r.onClick,d.onMouseDown=this.onMouseDown,d.onMouseUp=this.onMouseUp,d.onKeyDown=this.onKeyDown),P("hover",t)&&(d.onMouseOver=this.handleMouseOverOut.bind(this,this.handleDelayedShow),d.onMouseOut=this.handleMouseOverOut.bind(this,this.handleDelayedHide),r.onMouseOver=this.handleMouseOverOut.bind(this,this.handleDelayedShow),r.onMouseOut=this.handleMouseOverOut.bind(this,this.handleDelayedHide),r.trapFocus=!1),P("focus",t)&&(d.onFocus=(0,b.chain)(l.props.onFocus,this.handleDelayedShow),d.onBlur=(0,b.chain)(l.props.onBlur,this.handleDelayedHide),r.onFocus=this.handleDelayedShow,r.onBlur=this.handleDelayedHide,r.trapFocus=!1)),d.selected=o,this._overlay&&S.modalManager.removeFromModal(this._overlay),this._overlay=this.makeOverlay(f,r),(0,T.cloneElement)(l,d)}}]),t}(T.Component),(0,y.default)(a,"propTypes",A({},E.default.propTypes,{trigger:O.default.oneOfType([k,O.default.arrayOf(k)]),delay:O.default.number,delayShow:O.default.number,delayHide:O.default.number,defaultShow:O.default.bool,placement:O.default.string,onBlur:O.default.func,onClick:O.default.func,onFocus:O.default.func,onMouseOut:O.default.func,onMouseOver:O.default.func,onShow:O.default.func,onHide:O.default.func,show:O.default.bool,offset:O.default.number,crossOffset:O.default.number,flip:O.default.bool,disabled:O.default.bool,boundariesElement:O.default.oneOfType([O.default.func,O.default.string]),lastFocus:O.default.oneOfType([O.default.element,O.default.object])})),(0,y.default)(a,"defaultProps",{defaultShow:!1,trigger:["hover","focus"],placement:"left",offset:0,crossOffset:0,flip:!0,disabled:!1,delayHide:100}),r=s))||r)||r;t.default=R},717:function(e,t,n){"use strict";var i=n(8135),o=n(2754);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a,s,c=i(n(9902)),l=i(n(7296)),u=i(n(2e3)),f=i(n(1803)),d=i(n(6368)),p=i(n(4626)),h=i(n(1514)),g=i(n(3023)),m=i(n(4980)),y=i(n(8098)),v=i(n(9008)),b=i(n(8366)),_=i(n(5896)),C=i(n(7857)),S=o(n(5466)),E=i(n(6116));function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){(0,h.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T=(0,v.default)(r=(0,g.default)((s=a=function(e){function t(e,n){var i;return(0,l.default)(this,t),(i=(0,f.default)(this,(0,d.default)(t).call(this,e,n))).state={positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null,placement:i.props.placement},i._needsFlush=!1,i._lastTarget=null,i}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.updatePosition(this.getTarget()),window.addEventListener("resize",this.maybeUpdatePosition,!1)}},{key:"UNSAFE_componentWillReceiveProps",value:function(){this._needsFlush=!0}},{key:"componentDidUpdate",value:function(e){this._needsFlush&&(this._needsFlush=!1,this.maybeUpdatePosition(this.props.placement!==e.placement))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.maybeUpdatePosition,!1)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,i=(0,c.default)(e,["children","className"]),o=this.state,r=o.positionLeft,a=o.positionTop,s=o.maxHeight,l=o.arrowOffsetLeft,u=o.arrowOffsetTop,f=o.placement;delete i.target;var d=S.default.Children.only(t);return(0,S.cloneElement)(d,O({},(0,b.default)(i),{placement:f,className:(0,y.default)(n,d.props.className),arrowStyle:{left:l,top:u},style:O({},d.props.style,{position:"absolute",zIndex:1e5,left:r,top:a,maxHeight:s})}))}},{key:"getTarget",value:function(){var e=this.props.target,t="function"==typeof e?e():e;return t&&E.default.findDOMNode(t)||null}},{key:"maybeUpdatePosition",value:function(e){var t=this.getTarget();(this.props.shouldUpdatePosition||t!==this._lastTarget||e)&&this.updatePosition(t)}},{key:"updatePosition",value:function(e){var t=this.props,n=t.placement,i=t.containerPadding,o=t.offset,r=t.crossOffset,a=t.flip,s=t.boundariesElement;if(this._lastTarget=e,e){var c=E.default.findDOMNode(this),l=(0,_.default)(this.props.container,(0,C.default)(this).body);this.setState((0,m.default)(n,c,e,l,i,a,s,o,r))}else this.setState({positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null})}}]),t}(S.default.Component),(0,h.default)(a,"defaultProps",{containerPadding:10,offset:0,crossOffset:0}),r=s))||r)||r;t.default=T},4980:function(e,t,n){"use strict";var i=n(8135);Object.defineProperty(t,"__esModule",{value:!0}),t.calculatePositionInternal=S,t.default=function(e,t,n,i,o,c,l,u,f){var d="BODY"===i.tagName,p=d?(0,a.default)(n):(0,s.default)(n,i);d||(p.top+=parseInt((0,r.default)(n,"marginTop"),10)||0,p.left+=parseInt((0,r.default)(n,"marginLeft"),10)||0);var h=(0,a.default)(t),g=(m=t,v=window.getComputedStyle(m),{top:parseInt(v.marginTop,10)||0,bottom:parseInt(v.marginBottom,10)||0,left:parseInt(v.marginLeft,10)||0,right:parseInt(v.marginRight,10)||0});var m,v;h.width+=g.left+g.right,h.height+=g.top+g.bottom;var b=y(i),_="container"===l?i:l(),C=y(_),E="BODY"===_.tagName?(0,a.default)(i):(0,s.default)(i,_);return S(e,b,p,h,g,o,c,C,E,u,f)};var o=i(n(9887)),r=i(n(1284)),a=i(n(4769)),s=i(n(546)),c=i(n(776)),l=i(n(7737)),u=i(n(1393)),f=i(n(6116)),d={top:"top",bottom:"top",left:"left",right:"left",center:"left"},p={top:"bottom",bottom:"top",left:"right",right:"left"},h={top:"left",left:"top"},g={top:"height",left:"width"},m={};function y(e){var t,n,i=0,o=0,r={},s=f.default.findDOMNode(e);if("BODY"===s.tagName)t=window.innerWidth,n=window.innerHeight,r.top=(0,l.default)((0,u.default)(s).documentElement)||(0,l.default)(s),r.left=(0,c.default)((0,u.default)(s).documentElement)||(0,c.default)(s);else{var d=(0,a.default)(s);t=d.width,n=d.height,i=d.top,o=d.left,r.top=(0,l.default)(s),r.left=(0,c.default)(s)}return{width:t,height:n,scroll:r,top:i,left:o}}function v(e,t,n,i,o){var r=i.scroll[e],a=i[g[e]],s=t-o-r,c=t+o-r+n;return s<0?-s:c>a?Math.max(a-c,-s):0}function b(e,t,n,i,o,r,a){var s=r.scroll[e],c=r[g[e]],l=a[e]+t-i-s,u=a[e]+t+i-s+n;return l<0&&("top"===o||"left"===o)||u>c&&("bottom"===o||"right"===o)}function _(e){if(m[e])return m[e];var t=e.split(" "),n=(0,o.default)(t,2),i=n[0],r=n[1],a=d[i]||"right",s=h[a];d[r]||(r="center");var c=g[a],l=g[s];return m[e]={placement:i,crossPlacement:r,axis:a,crossAxis:s,size:c,crossSize:l},m[e]}function C(e,t,n,i,o,r){var a=i.placement,s=i.crossPlacement,c=i.axis,l=i.crossAxis,u=i.size,f=i.crossSize,d={};if(d[l]=e[l]+r,"center"===s?d[l]+=(e[f]-n[f])/2:s!==l&&(d[l]+=e[f]-n[f]),e[f]<n[f]){var p=Math.min(d[l],e[l]);d[l]=Math.max(p,e[l]-n[f]+e[f])}return d[c]=a===c?e[c]-n[u]+o:e[c]+e[u]+o,d}function S(e,t,n,i,o,r,a,s,c,l,u){var f=_(e),d=f,h=d.axis,g=d.size,m=d.crossAxis,y=d.crossSize,S=d.placement,E=d.crossPlacement,N=C(n,0,i,f,l,u),O=l;if(a&&b(h,N[h],i[g],r,S,s,c)){var T=_("".concat(p[S]," ").concat(E)),I=T.axis,w=T.size,A=C(n,0,i,T,-1*l,u);b(I,A[I],i[w],r,p[S],s,c)||(f=T,N=A,O=-1*l)}var k=v(m,N[m],i[y],s,r);N[m]+=k;var D=Math.max(0,s.height+s.top+s.scroll.top-c.top-N.top-o.top-o.bottom-r);i.height=Math.min(i.height,D),k=k=v(m,(N=C(n,0,i,f,O,u))[m],i[y],s,r),N[m]+=k;var P={};return P[m]=n[y]>i[y]?null:n[m]-N[m]+n[y]/2,{positionLeft:N.left,positionTop:N.top,maxHeight:D,arrowOffsetLeft:P.left,arrowOffsetTop:P.top,placement:f.placement}}},4642:function(e,t,n){e.exports=n(6830)},6830:function(e,t,n){"use strict";var i=n(8135),o=n(2754);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a,s,c=i(n(9894)),l=i(n(9902)),u=i(n(7296)),f=i(n(2e3)),d=i(n(1803)),p=i(n(6368)),h=i(n(4626)),g=i(n(1514)),m=i(n(3023)),y=i(n(8098)),v=i(n(3258)),b=i(n(9724)),_=i(n(8366)),C=i(n(3074)),S=o(n(5466)),E=n(4167);n(4560),n(7943),n(6002),n(2789),n(7568),n(3150),n(6512),n(2278),n(6235);var N=(0,m.default)((s=a=function(e){function t(e,n){var i;return(0,u.default)(this,t),(i=(0,d.default)(this,(0,p.default)(t).call(this,e,n))).defaultId=(0,v.default)(),i}return(0,h.default)(t,e),(0,f.default)(t,[{key:"componentDidMount",value:function(){var e=this;this.props.trapFocus&&(this._trapFocusTimeout=requestAnimationFrame((function(){e.popoverRef&&!e.popoverRef.contains(document.activeElement)&&e.popoverRef.focus()})))}},{key:"componentWillUnmount",value:function(){this._trapFocusTimeout&&cancelAnimationFrame(this._trapFocusTimeout)}},{key:"onFocus",value:function(e){this.props.onFocus&&this.props.onFocus(e),this.props.trapFocus&&e.target===this.popoverRef&&!this.popoverRef.contains(e.relatedTarget)&&(0,E.trapFocus)(this,e)}},{key:"onKeyDown",value:function(e){this.props.onKeyDown&&(this.props.onKeyDown(e),e.isPropagationStopped&&e.isPropagationStopped())||this.props.trapFocus&&(0,E.trapFocus)(this,e)}},{key:"render",value:function(){var e,t=this,n=this.props,i=n.variant,o=n.placement,r=n.arrowStyle,a=n.open,s=n.title,u=n.children,f=n.className,d=n.isDialog,p=void 0===d||d,h=n.trapFocus,m=n.tabIndex,v=void 0===m?null:m,C=n.id,E=void 0===C?this.defaultId:C,N=n["aria-label"],O=n["aria-labelledby"],T=n["aria-describedby"],I=(0,l.default)(n,["variant","placement","arrowStyle","open","title","children","className","isDialog","trapFocus","tabIndex","id","aria-label","aria-labelledby","aria-describedby"]);delete I.target;var w=p?S.default.createElement("div",{className:"spectrum-Dialog-content",role:"presentation",id:"".concat(E,"-content")},u):u;return S.default.createElement("div",(0,c.default)({ref:function(e){return t.popoverRef=e},className:(0,y.default)("spectrum-Popover","react-spectrum-Popover","spectrum-Popover--".concat(o.split(" ")[0]),(e={"spectrum-Popover--withTip":p,"spectrum-Popover--dialog":p},(0,g.default)(e,"spectrum-Dialog--".concat(i),p),(0,g.default)(e,"is-open",a),e),f),role:p?"dialog":"presentation",id:E,"aria-label":N,"aria-labelledby":O||(p&&s&&!N?"".concat(E,"-heading"):null),"aria-describedby":T||(p&&s&&u?"".concat(E,"-content"):null)},(0,_.default)(I),{onFocus:this.onFocus,onKeyDown:this.onKeyDown,tabIndex:h&&null===v?1:v}),p&&s&&S.default.createElement(b.default,{id:"".concat(E,"-heading"),title:s,variant:i}),w,p&&S.default.createElement("div",{className:"spectrum-Popover-tip",style:r,"aria-hidden":"true"}))}}]),t}(S.Component),(0,g.default)(a,"propTypes",{variant:C.default.oneOf(["default","error"]),placement:C.default.oneOf(["bottom","bottom left","bottom right","top","top left","top right","left","left top","left bottom","right","right top","right bottom"]),open:C.default.bool,title:C.default.node,className:C.default.string,trapFocus:C.default.bool}),(0,g.default)(a,"defaultProps",{variant:"default",placement:"bottom",open:!0,trapFocus:!0}),r=s))||r;t.default=N,N.displayName="Popover"},985:function(e,t,n){e.exports=n(2363)},2363:function(e,t,n){"use strict";var i=n(8135);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(7296)),r=i(n(2e3)),a=(i(n(5466)),i(n(6116))),s={},c=function(){function e(){(0,o.default)(this,e)}return(0,r.default)(e,null,[{key:"add",value:function(e,t){var n=s[e.key]||document.createElement("div");t?a.default.unstable_renderSubtreeIntoContainer(t,e,n):a.default.render(e,n),s[e.key]=n}},{key:"remove",value:function(e){a.default.unmountComponentAtNode(s[e.key]),delete s[e.key]}},{key:"removeAll",value:function(){for(var e in s)s.hasOwnProperty(e)&&(a.default.unmountComponentAtNode(s[e]),delete s[e])}}]),e}();t.default=c},2259:function(e,t,n){e.exports=n(5543)},5543:function(e,t,n){"use strict";var i=n(8135),o=n(2754);t.default=void 0;var r,a,s,c=i(n(9894)),l=i(n(9902)),u=i(n(7296)),f=i(n(2e3)),d=i(n(1803)),p=i(n(6368)),h=i(n(4626)),g=i(n(1514)),m=i(n(8098)),y=(i(n(5458)),i(n(9008))),v=n(9870),b=i(n(8366)),_=i(n(3074)),C=o(n(5466)),S=n(4363);n(6520),n(4480),n(1159),n(1937),n(4015),n(598),n(6035),n(1195),n(8745),n(9485);var E=(0,y.default)((s=a=function(e){function t(e){var n;return(0,u.default)(this,t),n=(0,d.default)(this,(0,p.default)(t).call(this,e)),(0,v.setLocale)(e.locale),e.toastPlacement&&(0,S.setToastPlacement)(e.toastPlacement),n}return(0,h.default)(t,e),(0,f.default)(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){"locale"in e&&(0,v.setLocale)(e.locale),e.toastPlacement&&(0,S.setToastPlacement)(e.toastPlacement)}},{key:"getChildContext",value:function(){return{theme:this.props.theme,scale:this.props.scale,locale:this.props.locale}}},{key:"render",value:function(){var e=this.props,t=e.theme,n=e.className,i=e.children,o=e.scale,r=(0,l.default)(e,["theme","className","children","scale"]);return C.default.createElement("div",(0,c.default)({className:(0,m.default)(n,"react-spectrum-provider","spectrum","spectrum--".concat(t),"spectrum--".concat(o))},(0,b.default)(r)),i)}}]),t}(C.Component),(0,g.default)(a,"propTypes",{theme:_.default.oneOf(["light","lightest","dark","darkest"]),scale:_.default.oneOf(["medium","large"]),toastPlacement:_.default.oneOf(["top","top left","top center","top right","bottom","bottom left","bottom center","bottom right"]),typekitId:_.default.string,locale:_.default.string,className:_.default.string}),(0,g.default)(a,"defaultProps",{theme:"light",scale:"medium",typekitId:"ruf7eed",locale:v.defaultLocale}),(0,g.default)(a,"childContextTypes",{theme:_.default.oneOf(["light","lightest","dark","darkest"]),scale:_.default.oneOf(["medium","large"]),locale:_.default.string}),r=s))||r;t.default=E},2702:function(e,t,n){e.exports=n(1394)},1394:function(e,t,n){"use strict";var i=n(8135);t.default=void 0;var o,r,a,s=i(n(7296)),c=i(n(2e3)),l=i(n(1803)),u=i(n(6368)),f=i(n(4626)),d=i(n(1514)),p=i(n(9894)),h=i(n(9902)),g=i(n(3794)),m=i(n(3023)),y=i(n(9590)),v=i(n(5758)),b=i(n(8098)),_=i(n(9008)),C=i(n(3258)),S=i(n(691)),E=i(n(8366)),N=i(n(4642)),O=i(n(3074)),T=i(n(5466)),I=i(n(6116)),w=i(n(7215));n(3821),n(9430),n(7144),n(9546),n(9070);var A=null,k=(0,_.default)(o=(0,m.default)((a=r=function(e){function t(e){var n;(0,s.default)(this,t),n=(0,l.default)(this,(0,u.default)(t).call(this,e));var i=null;if("value"in e)i=e.value;else if("defaultValue"in e)i=e.defaultValue;else if(e.multiple)i=[];else{var o=e.options&&e.options[0];i=o&&!e.placeholder?o.value:null}return n.state={value:i},n.selectId=(0,C.default)(),n}return(0,f.default)(t,e),(0,c.default)(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentDidMount",value:function(){if(null==A){var e=document.createElement("div");e.className="spectrum-Dropdown-popover",document.body.appendChild(e),A=parseInt(window.getComputedStyle(e).maxWidth,10),document.body.removeChild(e)}window.addEventListener("resize",this.updateSize),this.updateSize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateSize)}},{key:"componentDidUpdate",value:function(){this.updateSize()}},{key:"updateSize",value:function(){if(this.button){var e=I.default.findDOMNode(this.button).offsetWidth;e!==this.state.width&&this.setState({width:e})}}},{key:"onSelect",value:function(e){"value"in this.props||this.setState({value:e}),this.props.onChange&&this.props.onChange(e)}},{key:"onOpen",value:function(e){this.updateSize(),"function"==typeof this.props.onOpen&&this.props.onOpen(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.options,i=void 0===n?[]:n,o=t.quiet,r=t.onClose,a=t.closeOnSelect,s=t.menuClassName,c=t.disabled,l=void 0!==c&&c,u=t.invalid,f=void 0!==u&&u,d=t.multiple,m=void 0!==d&&d,_=t.required,C=void 0!==_&&_,N=t.flexible,O=void 0!==N&&N,I=t.placeholder,w=void 0===I?"Select an option":I,k=t.className,P=t.flip,R=void 0===P||P,x=t.alignRight,F=t.labelId,L=t.id,U=void 0===L?this.selectId:L,j=t.icon,M=t.renderItem,W=t["aria-label"],H=t["aria-labelledby"],q=(0,h.default)(t,["options","quiet","onClose","closeOnSelect","menuClassName","disabled","invalid","multiple","required","flexible","placeholder","className","flip","alignRight","labelId","id","icon","renderItem","aria-label","aria-labelledby"]),B=this.state.value,V="".concat(U,"-value");H?H+=" ".concat(V):H=W?U+" "+V:F?F+" "+V:V;var G=w;if(!m){var z=i.find((function(e){return e.value===B}));G=z?z.label:w,j=z&&z.icon}a="boolean"==typeof a?a:!m;var K=Object.entries((0,E.default)(q)),Y=K.filter((function(e){return/^aria-.*$/.test(e[0])})).reduce((function(e,t){return e[t[0]]=t[1],e}),{}),X=K.filter((function(e){return!/^aria-.*$/.test(e[0])})).reduce((function(e,t){return e[t[0]]=t[1],e}),{}),J=this.state.width;return o&&(J=this.state.width+24),o&&O&&(J=null),T.default.createElement(S.default,(0,p.default)({className:(0,b.default)("spectrum-Dropdown",{"spectrum-Dropdown--quiet":o,"react-spectrum-Dropdown-fixed":o&&!O,"react-spectrum-Dropdown-flexible":O,"is-disabled":l,"is-invalid":f},k),closeOnSelect:a,onSelect:this.onSelect,onOpen:this.onOpen,onClose:r,"aria-required":C,"aria-multiselectable":m,"aria-disabled":l,"aria-invalid":f,alignRight:x,flip:R},X),T.default.createElement(y.default,(0,p.default)({className:"spectrum-Dropdown-trigger",type:"button",variant:"field","aria-haspopup":"listbox",quiet:o,disabled:l,invalid:f,ref:function(t){return e.button=t},"aria-label":W,"aria-labelledby":H,id:U,icon:j},Y),T.default.createElement("span",{id:V,className:(0,b.default)("spectrum-Dropdown-label",{"is-placeholder":G===w})},G),f&&T.default.createElement(g.default,{size:"S"}),T.default.createElement(v.default,{size:null,className:"spectrum-Dropdown-icon"})),T.default.createElement(D,{dropdownMenu:!0,className:s,options:i,value:B,multiple:m,disabled:l,invalid:f,required:C,quiet:o,style:{overflowY:"auto",minWidth:J,maxWidth:this.state.width>A?this.state.width:null,marginRight:o&&x?-12:null},autoFocus:!0,renderItem:M}))}}]),t}(T.default.Component),(0,d.default)(r,"propTypes",{closeOnSelect:O.default.bool,menuClassName:O.default.string,renderItem:O.default.func,value:O.default.oneOfType([O.default.string,O.default.number,O.default.arrayOf(O.default.string),O.default.arrayOf(O.default.number)]),defaultValue:O.default.oneOfType([O.default.string,O.default.number,O.default.arrayOf(O.default.string),O.default.arrayOf(O.default.number)]),multiple:O.default.bool,options:O.default.arrayOf(O.default.object),onChange:O.default.func,onOpen:O.default.func,onClose:O.default.func,quiet:O.default.bool,invalid:O.default.bool,required:O.default.bool,flexible:O.default.bool,placeholder:O.default.string,flip:O.default.bool,alignRight:O.default.bool,icon:O.default.node}),o=a))||o)||o;function D(e){var t=e.onClose,n=e.onOpen,i=e.onSelect,o=e.className,r=e.open,a=e.placement,s=e.style,c=e.closeOnSelect,l=e.quiet,u=(0,h.default)(e,["onClose","onOpen","onSelect","className","open","placement","style","closeOnSelect","quiet"]);return T.default.createElement(N.default,{isDialog:!1,placement:a,open:r,onClose:t,onOpen:n,style:s,className:(0,b.default)("spectrum-Dropdown-popover",{"spectrum-Dropdown-popover--quiet":l}),closeOnSelect:c},T.default.createElement(w.default,(0,p.default)({},u,{className:o,onChange:i})))}t.default=k},7215:function(e,t,n){e.exports=n(7894)},7894:function(e,t,n){"use strict";var i=n(8135),o=n(2754);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a,s,c=i(n(9894)),l=i(n(9902)),u=i(n(2033)),f=i(n(7296)),d=i(n(2e3)),p=i(n(1803)),h=i(n(6368)),g=i(n(2143)),m=i(n(4626)),y=i(n(1514)),v=i(n(9008)),b=n(2071),_=i(n(3074)),C=o(n(5466)),S=(0,v.default)((s=a=function(e){function t(e){var n;return(0,f.default)(this,t),n=(0,p.default)(this,(0,h.default)(t).call(this,e)),(0,y.default)((0,g.default)(n),"renderListOfOptions",(function(e){return e.map((function(e,t){return C.default.createElement(b.ListItem,{key:t,icon:e.icon,selected:n.isSelected(e),disabled:n.props.disabled||e.disabled,onSelect:n.handleSelect.bind((0,g.default)(n),e)},n.props.renderItem?n.props.renderItem(e):e.label)}))})),n.state={value:e.value},n}return(0,m.default)(t,e),(0,d.default)(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.value&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"addSelection",value:function(e){return[].concat((0,u.default)(this.state.value||[]),[e.value])}},{key:"removeSelection",value:function(e){var t=this.state.value||[],n=t.indexOf(e.value);return[].concat((0,u.default)(t.slice(0,n)),(0,u.default)(t.slice(n+1,t.length)))}},{key:"handleSelect",value:function(e){var t;t=this.props.multiple?this.isSelected(e)?this.removeSelection(e):this.addSelection(e):e.value,"value"in this.props||this.setState({value:t}),this.props.onChange&&this.props.onChange(t)}},{key:"isSelected",value:function(e){return this.props.multiple?this.state.value&&this.state.value.indexOf(e.value)>=0:this.state.value===e.value}},{key:"render",value:function(){var e=this.props,t=e.options,n=void 0===t?[]:t,i=e.multiple,o=void 0!==i&&i,r=e.disabled,a=void 0!==r&&r,s=e.invalid,u=void 0!==s&&s,f=e.required,d=void 0!==f&&f,p=e.className,h=(0,l.default)(e,["options","multiple","disabled","invalid","required","className"]);return delete h.onTab,delete h.renderItem,C.default.createElement(b.List,(0,c.default)({className:p,"aria-multiselectable":o,"aria-disabled":a,"aria-invalid":u,"aria-required":d,selectable:!0},h),this.renderListOfOptions(n))}}]),t}(C.Component),(0,y.default)(a,"propTypes",{disabled:_.default.bool,invalid:_.default.bool,multiple:_.default.bool,onChange:_.default.func,options:_.default.arrayOf(_.default.object),required:_.default.bool,value:_.default.oneOfType([_.default.arrayOf(_.default.string),_.default.arrayOf(_.default.number),_.default.string,_.default.number]),renderItem:_.default.func}),(0,y.default)(a,"defaultProps",{options:[],multiple:!1,disabled:!1,invalid:!1,required:!1}),r=s))||r;t.default=S},6929:function(e,t,n){e.exports=n(3407)},3407:function(e,t,n){"use strict";var i=n(8135);t.default=d;var o=i(n(9894)),r=i(n(9902)),a=i(n(8098)),s=i(n(8366)),c=i(n(3074)),l=i(n(5466));n(1108),n(7058),n(8274),n(930);var u=["celery","yellow","fuchsia","indigo","seafoam","chartreuse","magenta","purple","neutral","positive","notice","negative","info"],f={archived:"neutral",active:"info"};function d(e){var t=e.variant,n=void 0===t?u[0]:t,i=e.children,c=e.disabled,d=e.className,p=(0,r.default)(e,["variant","children","disabled","className"]);return f[n]&&(console.warn('The "'.concat(n,'" variant of StatusLight is deprecated. Please use "').concat(f[n],'" instead.')),n=f[n]),l.default.createElement("div",(0,o.default)({className:(0,a.default)("spectrum-StatusLight","spectrum-StatusLight--".concat(n),{"is-disabled":c},d)},(0,s.default)(p)),i)}d.displayName="StatusLight",d.propTypes={className:c.default.string,variant:c.default.oneOf(u),disabled:c.default.bool}},4363:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setToastPlacement=function(e){t.TOAST_PLACEMENT=i=e;var o=!0,r=!1,a=void 0;try{for(var s,c=n.values()[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){s.value.setState({placement:e})}}catch(e){r=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(r)throw a}}},t.TOAST_PLACEMENT=t.TOAST_CONTAINERS=void 0;var n=new Map;t.TOAST_CONTAINERS=n;var i="top center";t.TOAST_PLACEMENT=i},9286:function(e,t,n){e.exports=n(4212)},4212:function(e,t,n){"use strict";var i=n(2754),o=n(8135);t.default=void 0;var r=o(n(9894)),a=o(n(9902)),s=o(n(7296)),c=o(n(2e3)),l=o(n(1803)),u=o(n(6368)),f=o(n(4626)),d=o(n(1514)),p=o(n(8098)),h=o(n(3258)),g=o(n(8366)),m=o(n(3074)),y=i(n(5466));n(9530),n(9927),n(8894),n(268);var v=function(e){function t(e,n){var i;return(0,s.default)(this,t),(i=(0,l.default)(this,(0,u.default)(t).call(this,e,n))).tooltipId=(0,h.default)(),i}return(0,f.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e=this.props,t=e.variant,n=e.children,i=e.arrowStyle,o=e.className,s=e.placement,c=e.open,l=e.id,u=void 0===l?this.tooltipId:l,f=(0,a.default)(e,["variant","children","arrowStyle","className","placement","open","id"]);return y.default.createElement("span",(0,r.default)({className:(0,p.default)("spectrum-Tooltip","spectrum-Tooltip--".concat(t),"spectrum-Tooltip--".concat(s.split(" ")[0]),{"is-open":c},o),id:u},(0,g.default)(f)),y.default.createElement("span",{className:"spectrum-Tooltip-label"},n),y.default.createElement("span",{className:"spectrum-Tooltip-tip",style:i}))}}]),t}(y.Component);t.default=v,(0,d.default)(v,"propTypes",{placement:m.default.oneOf(["bottom","top","left","right"]),variant:m.default.oneOf(["inspect","info","success","error"]),className:m.default.string,id:m.default.string,role:m.default.oneOf(["tooltip"]),open:m.default.bool}),(0,d.default)(v,"defaultProps",{variant:"inspect",placement:"right",open:!0,role:"tooltip"})},7759:function(e,t,n){e.exports=n(5021)},5021:function(e,t,n){"use strict";var i=n(8135);t.default=void 0;var o=i(n(9894)),r=i(n(9902)),a=i(n(7296)),s=i(n(2e3)),c=i(n(1803)),l=i(n(6368)),u=i(n(4626)),f=i(n(1514)),d=i(n(8098)),p=i(n(8366)),h=i(n(3074)),g=i(n(5466));n(1531),n(3640),n(9933),n(6953),n(222);var m="determinate",y="indeterminate",v=function(e){function t(){return(0,a.default)(this,t),(0,c.default)(this,(0,l.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e,t=this.props,n=t.value,i=void 0===n?0:n,a=t.size,s=void 0===a?"M":a,c=t.indeterminate,l=void 0===c||c,u=t.centered,f=void 0!==u&&u,h=t.className,v=t.variant,b=(0,r.default)(t,["value","size","indeterminate","centered","className","variant"]),_={},C={},S=void 0;return v!==m&&v!==y||console.warn('The "'.concat(v,'" variant of Wait is deprecated. Please use the "indeterminate" prop instead.')),v!==m&&l||(S=i=Math.min(Math.max(+i,0),100),i>0&&i<=50?(e=i/50*180-180,_.transform="rotate("+e+"deg)",C.transform="rotate(-180deg)"):i>50&&(e=(i-50)/50*180-180,_.transform="rotate(0deg)",C.transform="rotate("+e+"deg)")),g.default.createElement("div",(0,o.default)({className:(0,d.default)("spectrum-CircleLoader",{"spectrum-CircleLoader--indeterminate":v===y||l&&v!==m,"spectrum-CircleLoader--small":"S"===s,"spectrum-CircleLoader--large":"L"===s,"spectrum-CircleLoader--overBackground":"overBackground"===v,"react-spectrum-Wait--centered":f},h),role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100},(0,p.default)(b)),g.default.createElement("div",{className:"spectrum-CircleLoader-track"}),g.default.createElement("div",{className:"spectrum-CircleLoader-fills"},g.default.createElement("div",{className:"spectrum-CircleLoader-fillMask1"},g.default.createElement("div",{className:"spectrum-CircleLoader-fillSubMask1",style:_},g.default.createElement("div",{className:"spectrum-CircleLoader-fill"}))),g.default.createElement("div",{className:"spectrum-CircleLoader-fillMask2"},g.default.createElement("div",{className:"spectrum-CircleLoader-fillSubMask2",style:C},g.default.createElement("div",{className:"spectrum-CircleLoader-fill"})))))}}]),t}(g.default.Component);t.default=v,(0,f.default)(v,"propTypes",{centered:h.default.bool,className:h.default.string,indeterminate:h.default.bool,size:h.default.string,value:h.default.number,variant:h.default.oneOf(["overBackground"])})},6520:function(){!function(e){if(e){var t=["Tab","ArrowUp","ArrowRight","ArrowDown","ArrowLeft","Home","End","PageUp","PageDown","Enter"," ","Escape","Up","Right","Down","Left","Esc"],n=["text","date","datetime-local","email","month","number","password","search","tel","time","url","week"],i=!1,o=e.getElementsByClassName("focus-ring");e.addEventListener("keydown",(function(o){o.ctrlKey||o.altKey||o.metaKey||-1===t.indexOf(o.key)||(i=!0,!e.activeElement||e.activeElement===e.body||"TEXTAREA"===e.activeElement.tagName||"INPUT"===e.activeElement.tagName&&-1!==n.indexOf(e.activeElement.type)||e.activeElement.classList.add("focus-ring"))}),!0),e.addEventListener("mousedown",(function(){i=!1;for(var e=0;e<o.length;e++)o[e].classList.remove("focus-ring")}),!0),e.addEventListener("focus",(function(e){var t=e.target.classList;t&&i&&t.add("focus-ring")}),!0),e.addEventListener("blur",(function(e){var t=e.target.classList;t&&t.remove("focus-ring")}),!0)}}("undefined"==typeof window?void 0:document)},4167:function(e,t,n){"use strict";var i=n(8135);Object.defineProperty(t,"__esModule",{value:!0}),t.trapFocus=function(e,t){var n,i,o,r,a,s=t.type,c=t.key,l=t.shiftKey,u=t.target;"keydown"!==s&&"focus"!==s||(n=v.default.findDOMNode(e))&&(r=(i=Array.from(n.querySelectorAll(O)).filter((function(e){return e!==n})))[0]||n,a=i[i.length-1]||n);"keydown"===s&&"Tab"===c?n&&(l?u!==r&&u!==n||(o=a):u!==a&&u!==n||(o=r)):"focus"===s&&u===n&&(o=r);o&&(t.preventDefault(),t.stopPropagation(),o!==document.activeElement&&o.focus())},t.TABBABLE_ELEMENT_SELECTOR=t.FOCUSABLE_ELEMENT_SELECTOR=t.default=void 0;var o,r,a,s=i(n(7296)),c=i(n(2e3)),l=i(n(1803)),u=i(n(6368)),f=i(n(2143)),d=i(n(4626)),p=i(n(1514)),h=i(n(3023)),g=n(6499),m=i(n(3074)),y=i(n(5466)),v=i(n(6116)),b=n(7574),_=i(n(8884)),C=/[\n\r]+|[\s]{1,}/g,S=(0,h.default)((a=r=function(e){function t(){var e,n;(0,s.default)(this,t);for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return n=(0,l.default)(this,(e=(0,u.default)(t)).call.apply(e,[this].concat(o))),(0,p.default)((0,f.default)(n),"keysSoFar",""),(0,p.default)((0,f.default)(n),"keyClearTimeout",null),n}return(0,d.default)(t,e),(0,c.default)(t,[{key:"getItems",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.props,n=t.itemSelector,i=t.selectedItemSelector,o=t.includeSelf,r=e&&i?i:n,a=v.default.findDOMNode(this),s=[];return o&&a.matches(r)&&s.push(a),s.concat(Array.from(a.querySelectorAll(r)))}},{key:"onFocusFirst",value:function(e){var t=this.getItems();!t.length||e&&-1===t.indexOf(e.target)||(e&&e.preventDefault(),t[0].focus())}},{key:"onFocusLast",value:function(e){var t=this.getItems();!t.length||e&&-1===t.indexOf(e.target)||(e&&e.preventDefault(),t[t.length-1].focus())}},{key:"onFocusPrevious",value:function(e){var t=this.getItems();if(t.length&&e&&-1!==t.indexOf(e.target)){e.preventDefault();var n=t.indexOf(e.target),i=n-1;i<0&&(i=this.props.loopFocusAtEdges?t.length-1:n),t[i].focus()}}},{key:"onFocusNext",value:function(e){var t=this.getItems();if(t.length&&e&&-1!==t.indexOf(e.target)){e.preventDefault();var n=t.indexOf(e.target),i=n+1;i>=t.length&&(i=this.props.loopFocusAtEdges?0:n),t[i].focus()}}},{key:"onPageUp",value:function(e){if(!this.props.ignorePageUpPageDown){var t=this.getItems();if(t.length&&e&&-1!==t.indexOf(e.target)){e.preventDefault();var n=v.default.findDOMNode(this),i=Math.max(e.target.offsetTop+e.target.offsetHeight-n.clientHeight,0),o=t.indexOf(e.target),r=t.slice(0,o).reverse().find((function(e){return e.offsetTop<i}));r?(r.focus(),(0,_.default)(r,n,!0)):this.onFocusFirst(e)}}}},{key:"onPageDown",value:function(e){if(!this.props.ignorePageUpPageDown){var t=this.getItems();if(t.length&&e&&-1!==t.indexOf(e.target)){e.preventDefault();var n=v.default.findDOMNode(this),i=Math.min(e.target.offsetTop+n.clientHeight,n.scrollHeight+n.clientHeight),o=t.indexOf(e.target)+1,r=t.slice(o).find((function(e){return e.offsetTop+e.offsetHeight>i}));r?(r.focus(),(0,_.default)(r,n,!0)):this.onFocusLast(e)}}}},{key:"findItemToFocus",value:function(e){var t=e.target,n=e.shiftKey,i=e.charCode,o=(0,b.removeDiacritics)(String.fromCharCode(i)).toUpperCase(),r=this.getItems();(""===this.keysSoFar||o===this.keysSoFar||n)&&(n&&(r=r.reverse()),this.searchIndex=r.indexOf(t)),o!==this.keysSoFar&&(this.keysSoFar+=o),this.clearKeysSoFarAfterDelay();var a=this.findMatchInRange(r,this.searchIndex+1,r.length);a||(a=this.findMatchInRange(r,0,this.searchIndex)),a&&a.focus()}},{key:"clearKeysSoFarAfterDelay",value:function(){var e=this;this.keyClearTimeout&&clearTimeout(this.keyClearTimeout),this.keyClearTimeout=setTimeout((function(){return e.keysSoFar=""}),500)}},{key:"findMatchInRange",value:function(e,t,n){for(var i=t;i<n;i++){var o=e[i].innerText||e[i].textContent;if(o&&0===(0,b.removeDiacritics)(o).replace(C,"").toUpperCase().indexOf(this.keysSoFar))return e[i]}return null}},{key:"onKeyDown",value:function(e){e.isPropagationStopped()||g.interpretKeyboardEvent.call(this,e,this.props.orientation)}},{key:"onKeyPress",value:function(e){e.isPropagationStopped()||this.findItemToFocus(e)}},{key:"onFocus",value:function(e){e.isPropagationStopped()||this.getItems().forEach((function(t){return t.tabIndex=t===e.target?0:-1}))}},{key:"onBlur",value:function(e){if(!e.isPropagationStopped()){var t=this.getItems(!0);if(t.length){var n=-1!==t.indexOf(e.target);this.getItems().forEach((function(i){var o=-1!==t.indexOf(i);i.tabIndex=i===e.target&&n||!n&&o?0:-1}))}}}},{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.autoFocus,i=t.selectedItemSelector;if(n){var o=i?v.default.findDOMNode(this).querySelector(i):null;this.focusTimer=setTimeout((function(){o?o.focus():e.onFocusFirst()}),20)}}},{key:"componentWillUnmount",value:function(){clearTimeout(this.focusTimer)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.disabled,i=e.manageTabIndex,o=e.typeToSelect,r=y.default.Children.only(t),a=r.props,s=a.onKeyDown,c=a.onKeyPress,l=a.onFocus,u=a.onBlur;return y.default.cloneElement(r,{onKeyDown:n?s:(0,g.chain)(s,this.onKeyDown),onKeyPress:o&&!n?(0,g.chain)(c,this.onKeyPress):c,onFocus:i&&!n?(0,g.chain)(l,this.onFocus):l,onBlur:i&&!n?(0,g.chain)(u,this.onBlur):u})}}]),t}(y.default.Component),(0,p.default)(r,"propTypes",{itemSelector:m.default.string.isRequired,manageTabIndex:m.default.bool,orientation:m.default.oneOf(["horizontal","vertical","both"]),selectedItemSelector:m.default.string,disabled:m.default.bool,typeToSelect:m.default.bool,includeSelf:m.default.bool,ignorePageUpPageDown:m.default.bool,autoFocus:m.default.bool,loopFocusAtEdges:m.default.bool}),(0,p.default)(r,"defaultProps",{manageTabIndex:!0,orientation:"vertical",typeToSelect:!1,includeSelf:!1,ignorePageUpPageDown:!1,loopFocusAtEdges:!0}),o=a))||o;t.default=S;var E=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],N=E.join(",")+",[tabindex]";t.FOCUSABLE_ELEMENT_SELECTOR=N,E.push('[tabindex]:not([tabindex="-1"])');var O=E.join(':not([tabindex="-1"]),');t.TABBABLE_ELEMENT_SELECTOR=O},8882:function(e,t,n){"use strict";var i=n(8135);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r.default.createElement(a.default,(0,o.default)({timeout:{enter:0,exit:125}},e),(function(t){return r.default.cloneElement(e.children,{open:!!s[t]})}))};var o=i(n(9894)),r=i(n(5466)),a=i(n(9425)),s={entering:!1,entered:!0}},5458:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={kitId:e,scriptTimeout:3e3};if(!window.Typekit){var n=document.getElementsByTagName("html")[0];n.className+=" wf-loading";var i=setTimeout((function(){n.className=n.className.replace(/(\s|^)wf-loading(\s|$)/g," "),n.className+=" wf-inactive"}),t.scriptTimeout),o=document.createElement("script"),r=!1;o.src="https://use.typekit.net/".concat(t.kitId,".js"),o.type="text/javascript",o.async="true",o.onload=o.onreadystatechange=function(){var e=this.readyState;if(!(r||e&&"complete"!==e&&"loaded"!==e)){r=!0,clearTimeout(i);try{window.Typekit.load(t)}catch(e){}}};var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)}}},9008:function(e,t,n){"use strict";var i=n(8135);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.prototype,n=t.UNSAFE_componentWillUpdate,i=t.UNSAFE_componentWillMount,a=t.UNSAFE_componentWillReceiveProps;-1===(0,o.default)(r.default.version,"16.3.0")&&(n&&(t.componentWillUpdate=function(e,t){n.apply(this,arguments)}),i&&(t.componentWillMount=function(){i.apply(this,arguments)}),a&&(t.componentWillReceiveProps=function(e){a.apply(this,arguments)}))};var o=i(n(6168)),r=i(n(5466))},3258:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=0;t.default=function(){return"react-spectrum-"+ ++n}},6499:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interpretKeyboardEvent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"vertical";switch(e.key){case"Enter":case" ":this.onSelectFocused&&this.onSelectFocused(e);break;case"Tab":this.onTab&&this.onTab(e);break;case"PageUp":this.onPageUp?this.onPageUp(e):this.onFocusFirst&&this.onFocusFirst(e);break;case"PageDown":this.onPageDown?this.onPageDown(e):this.onFocusLast&&this.onFocusLast(e);break;case"Home":this.onFocusFirst&&this.onFocusFirst(e);break;case"End":this.onFocusLast&&this.onFocusLast(e);break;case"ArrowUp":case"Up":e.altKey&&this.onAltArrowUp?this.onAltArrowUp(e):"horizontal"!==t&&this.onFocusPrevious&&this.onFocusPrevious(e);break;case"ArrowDown":case"Down":e.altKey&&this.onAltArrowDown?this.onAltArrowDown(e):"horizontal"!==t&&this.onFocusNext&&this.onFocusNext(e);break;case"ArrowLeft":case"Left":"vertical"!==t&&this.onFocusPrevious&&this.onFocusPrevious(e);break;case"ArrowRight":case"Right":"vertical"!==t&&this.onFocusNext&&this.onFocusNext(e);break;case"Escape":case"Esc":this.onEscape&&this.onEscape(e)}},t.chain=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){var e=!0,n=!1,i=void 0;try{for(var o,r=t[Symbol.iterator]();!(e=(o=r.next()).done);e=!0){var a=o.value;"function"==typeof a&&a.apply(void 0,arguments)}}catch(e){n=!0,i=e}finally{try{e||null==r.return||r.return()}finally{if(n)throw i}}}},t.focusAfterMouseEvent=function(e,t){if(!document)return void(e&&e.call(this,t));if(e&&(e.call(this,t),t.isDefaultPrevented()))return void(n="mousedown"===t.type);n||"function"!=typeof this.focus||this.focus();"mouseup"===t.type&&(n=!1)};var n=!1},8366:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={};for(var o in e)e.hasOwnProperty(o)&&(n[o]||i.test(o))&&(t[o]=e[o]);return t};var n={abbr:1,accept:1,acceptCharset:1,accessKey:1,action:1,allowFullScreen:1,allowTransparency:1,alt:1,async:1,autoComplete:1,autoFocus:1,autoPlay:1,cellPadding:1,cellSpacing:1,challenge:1,charset:1,checked:1,cite:1,class:1,className:1,cols:1,colSpan:1,command:1,content:1,contentEditable:1,contextMenu:1,controls:1,coords:1,crossOrigin:1,data:1,dateTime:1,default:1,defer:1,dir:1,disabled:1,download:1,draggable:1,dropzone:1,encType:1,for:1,form:1,formAction:1,formEncType:1,formMethod:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:1,height:1,hidden:1,high:1,href:1,hrefLang:1,htmlFor:1,httpEquiv:1,icon:1,id:1,inputMode:1,isMap:1,itemId:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,kind:1,label:1,lang:1,list:1,loop:1,manifest:1,max:1,maxLength:1,media:1,mediaGroup:1,method:1,min:1,minLength:1,multiple:1,muted:1,name:1,noValidate:1,open:1,optimum:1,pattern:1,ping:1,placeholder:1,poster:1,preload:1,radioGroup:1,readOnly:1,rel:1,required:1,role:1,rows:1,rowSpan:1,sandbox:1,scope:1,scoped:1,scrolling:1,seamless:1,selected:1,shape:1,size:1,sizes:1,sortable:1,span:1,spellCheck:1,src:1,srcDoc:1,srcSet:1,start:1,step:1,style:1,tabIndex:1,target:1,title:1,translate:1,type:1,typeMustMatch:1,useMap:1,value:1,width:1,wmode:1,wrap:1,onCopy:1,onCut:1,onPaste:1,onLoad:1,onError:1,onWheel:1,onScroll:1,onCompositionEnd:1,onCompositionStart:1,onCompositionUpdate:1,onKeyDown:1,onKeyPress:1,onKeyUp:1,onFocus:1,onBlur:1,onChange:1,onInput:1,onSubmit:1,onClick:1,onContextMenu:1,onDoubleClick:1,onDrag:1,onDragEnd:1,onDragEnter:1,onDragExit:1,onDragLeave:1,onDragOver:1,onDragStart:1,onDrop:1,onMouseDown:1,onMouseEnter:1,onMouseLeave:1,onMouseMove:1,onMouseOut:1,onMouseOver:1,onMouseUp:1,onSelect:1,onTouchCancel:1,onTouchEnd:1,onTouchMove:1,onTouchStart:1,onAnimationStart:1,onAnimationEnd:1,onAnimationIteration:1,onTransitionEnd:1},i=/^((data|aria)-.*)$/},4383:function(e,t,n){"use strict";var i=n(8135);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.prototype,n=t.UNSAFE_componentWillUpdate,i=t.componentDidUpdate,a=null;t.UNSAFE_componentWillUpdate=function(e,t){if(n&&n.apply(this,arguments),null==a||a!==document.activeElement)try{var i=o.default.findDOMNode(this);a=i.parentNode.querySelector("."+r)}catch(e){}},t.componentDidUpdate=function(e,t){i&&i.apply(this,arguments);try{var n=o.default.findDOMNode(this);!a||document.activeElement!==a&&!n.contains(document.activeElement)||a.classList.contains(r)||(document.activeElement.classList.add(r),a=null)}catch(e){}}},t.FOCUS_RING_CLASSNAME=void 0;i(n(5466));var o=i(n(6116)),r="focus-ring";t.FOCUS_RING_CLASSNAME=r},7873:function(e,t,n){"use strict";var i=n(8135);Object.defineProperty(t,"__esModule",{value:!0}),t.cloneIcon=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return null;if("string"==typeof e)throw new Error("String icon names are deprecated. Pass icons by importing them from react-spectrum/Icon/IconName and render as <IconName />.");var n=t.className,i=t.size,a=t["aria-label"],s=t["aria-hidden"],c=t.alt,l=void 0===c?a||e.props["aria-label"]||e.props.alt:c;return r.default.cloneElement(e,{className:(0,o.default)(n,e.props.className),size:e.props.size||i,"aria-label":a||l,alt:l,"aria-hidden":s||!l||e.props["aria-hidden"]})};var o=i(n(8098)),r=i(n(5466))},9870:function(e,t,n){"use strict";var i=n(8135);Object.defineProperty(t,"__esModule",{value:!0}),t.setLocale=function(e){a=e},t.getLocale=function(){return a},t.messageFormatter=function(e){var t={};return function(n,i,r){var s=t[n+"."+a];if(!s){var c=(e[a]||e["en-US"])[n];if(!c)throw new Error("Could not find intl message ".concat(n," in ").concat(a," locale"));s=new o.default(c,a,r),t[n]=s}return s.format(i)}},t.defaultLocale=void 0;var o=i(n(2175)),r="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";t.defaultLocale=r;var a=r},8884:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e,t,n){if(t&&t.contains(e)){var i=t.clientHeight,o=t.clientWidth,r=t.scrollTop,a=t.scrollLeft,s=e.offsetHeight,c=e.offsetWidth,l=e.offsetTop,u=e.offsetLeft,f=window.getComputedStyle(t).position,d=t.offsetTop,p=t.offsetLeft;if("static"!==f&&(d=p=0),l<r)t.scrollTop=l;else{var h=l+s;h>r+i&&(t.scrollTop=n?l-d:h-i-d)}if(u<a)t.scrollLeft=u;else{var g=u+c;g>a+o&&(t.scrollLeft=n?u-p:g-o-p)}}}},7574:function(e,t){"use strict";function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"NFC";return"normalize"in String.prototype&&(e=e.normalize(t)),e}Object.defineProperty(t,"__esModule",{value:!0}),t.isUrl=function(e){return e&&!!e.match(/\/|:|\./g)},t.normalize=n,t.removeDiacritics=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"NFD";return n(e,t.replace("C","D")).replace(/[\u0300-\u036f]/g,"")},t.getTextFromReact=function(e){var t="";!function e(n){if("string"==typeof n||"number"==typeof n)t="".concat(t," ").concat(n);else if(Array.isArray(n))n.forEach((function(t){return e(t)}));else if(n&&n.props){var i=n.props.children;Array.isArray(i)?i.forEach((function(t){return e(t)})):e(i)}}(e);return t.trim().replace(/(\s)(?:\s+)/g,"$1")}},3023:function(e,t){"use strict";function n(e){return n="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},n(e)}function i(e){var t=void 0;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach((function(t){if("constructor"!==t){var n=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof n.value&&Object.defineProperty(e.prototype,t,o(e,t,n))}})),e}function o(e,t,i){var o=i.value;if("function"!=typeof o)throw new Error("@autobind decorator can only be applied to methods not: "+n(o));var r=!1;return{configurable:!0,get:function(){if(r||this===e.prototype||this.hasOwnProperty(t))return o;var n=o.bind(this);return r=!0,Object.defineProperty(this,t,{value:n,configurable:!0,writable:!0}),r=!1,n}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length?i.apply(void 0,t):o.apply(void 0,t)},e.exports=t.default},9827:function(e,t,n){var i=n(8330),o=n(1040);n(8360);function r(e){return null==e}function a(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).whiteList=e.whiteList||i.whiteList,e.onAttr=e.onAttr||i.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||i.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||i.safeAttrValue,this.options=e}a.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,i=t.onAttr,a=t.onIgnoreAttr,s=t.safeAttrValue;return o(e,(function(e,t,o,c,l){var u=n[o],f=!1;if(!0===u?f=u:"function"==typeof u?f=u(c):u instanceof RegExp&&(f=u.test(c)),!0!==f&&(f=!1),c=s(o,c)){var d,p={position:t,sourcePosition:e,source:l,isWhite:f};return f?r(d=i(o,c,p))?o+":"+c:d:r(d=a(o,c,p))?void 0:d}}))},e.exports=a},8330:function(e,t){function n(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}var i=/javascript\s*\:/gim;t.whiteList=n(),t.getDefaultWhiteList=n,t.onAttr=function(e,t,n){},t.onIgnoreAttr=function(e,t,n){},t.safeAttrValue=function(e,t){return i.test(t)?"":t}},3143:function(e,t,n){var i=n(8330),o=n(9827);for(var r in(t=e.exports=function(e,t){return new o(t).process(e)}).FilterCSS=o,i)t[r]=i[r];"undefined"!=typeof window&&(window.filterCSS=e.exports)},1040:function(e,t,n){var i=n(8360);e.exports=function(e,t){";"!==(e=i.trimRight(e))[e.length-1]&&(e+=";");var n=e.length,o=!1,r=0,a=0,s="";function c(){if(!o){var n=i.trim(e.slice(r,a)),c=n.indexOf(":");if(-1!==c){var l=i.trim(n.slice(0,c)),u=i.trim(n.slice(c+1));if(l){var f=t(r,s.length,l,u,n);f&&(s+=f+"; ")}}}r=a+1}for(;a<n;a++){var l=e[a];if("/"===l&&"*"===e[a+1]){var u=e.indexOf("*/",a+2);if(-1===u)break;r=(a=u+1)+1,o=!1}else"("===l?o=!0:")"===l?o=!1:";"===l?o||c():"\n"===l&&c()}return i.trim(s)}},8360:function(e){e.exports={indexOf:function(e,t){var n,i;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var i,o;if(Array.prototype.forEach)return e.forEach(t,n);for(i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}}},9313:function(e,t,n){"use strict";var i=n(8135);t.__esModule=!0,t.default=function(e){void 0===e&&(e=(0,o.default)());try{return e.activeElement}catch(e){}};var o=i(n(1393));e.exports=t.default},2325:function(e,t,n){"use strict";var i=n(8135);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var o=i(n(1310));e.exports=t.default},1310:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},5137:function(e,t,n){"use strict";var i=n(8135);t.__esModule=!0,t.default=void 0;var o=i(n(2325));t.addClass=o.default;var r=i(n(8657));t.removeClass=r.default;var a=i(n(1310));t.hasClass=a.default;var s={addClass:o.default,removeClass:r.default,hasClass:a.default};t.default=s},8657:function(e){"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"==typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},8557:function(e,t,n){"use strict";var i=n(8135);t.__esModule=!0,t.default=void 0;var o=function(){};i(n(955)).default&&(o=document.addEventListener?function(e,t,n,i){return e.removeEventListener(t,n,i||!1)}:document.attachEvent?function(e,t,n){return e.detachEvent("on"+t,n)}:void 0);var r=o;t.default=r,e.exports=t.default},2810:function(e,t,n){"use strict";var i=n(8135);t.__esModule=!0,t.default=void 0;var o=function(){};i(n(955)).default&&(o=document.addEventListener?function(e,t,n,i){return e.addEventListener(t,n,i||!1)}:document.attachEvent?function(e,t,n){return e.attachEvent("on"+t,(function(t){(t=t||window.event).target=t.target||t.srcElement,t.currentTarget=e,n.call(e,t)}))}:void 0);var r=o;t.default=r,e.exports=t.default},1393:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},27:function(e,t,n){"use strict";var i=n(8135);t.__esModule=!0,t.default=function(e,t,n){for(;e&&(r(e)||!(0,o.default)(e,t));)e=e===n||r(e)?void 0:e.parentNode;return e};var o=i(n(4508)),r=function(e){return null!=e&&e.nodeType===e.DOCUMENT_NODE};e.exports=t.default},1038:function(e,t,n){"use strict";var i=n(8135);t.__esModule=!0,t.default=void 0;var o=i(n(955)).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):r(e,t)}:r;function r(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=o,e.exports=t.default},6139:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},4508:function(e,t,n){"use strict";var i=n(8135);t.__esModule=!0,t.default=function(e,t){if(!o&&r.default){var n=document.body,i=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;o=i?function(e,t){return i.call(e,t)}:s}return o?o(e,t):null};var o,r=i(n(955)),a=i(n(9441));function s(e,t){for(var n=(0,a.default)(e.document||e.ownerDocument,t),i=0;n[i]&&n[i]!==e;)i++;return!!n[i]}e.exports=t.default},4769:function(e,t,n){"use strict";var i=n(8135);t.__esModule=!0,t.default=function(e){var t=(0,a.default)(e),n=(0,r.default)(t),i=t&&t.documentElement,s={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,o.default)(i,e))return s;void 0!==e.getBoundingClientRect&&(s=e.getBoundingClientRect());return s={top:s.top+(n.pageYOffset||i.scrollTop)-(i.clientTop||0),left:s.left+(n.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:(null==s.width?e.offsetWidth:s.width)||0,height:(null==s.height?e.offsetHeight:s.height)||0}};var o=i(n(1038)),r=i(n(6139)),a=i(n(1393));e.exports=t.default},7664:function(e,t,n){"use strict";var i=n(8135);t.__esModule=!0,t.default=function(e){var t=(0,o.default)(e),n=e&&e.offsetParent;for(;n&&"html"!==a(e)&&"static"===(0,r.default)(n,"position");)n=n.offsetParent;return n||t.documentElement};var o=i(n(1393)),r=i(n(1284));function a(e){return e.nodeName&&e.nodeName.toLowerCase()}e.exports=t.default},546:function(e,t,n){"use strict";var i=n(8135);t.__esModule=!0,t.default=function(e,t){var n,i={top:0,left:0};"fixed"===(0,l.default)(e,"position")?n=e.getBoundingClientRect():(t=t||(0,a.default)(e),n=(0,r.default)(e),"html"!==function(e){return e.nodeName&&e.nodeName.toLowerCase()}(t)&&(i=(0,r.default)(t)),i.top+=parseInt((0,l.default)(t,"borderTopWidth"),10)-(0,s.default)(t)||0,i.left+=parseInt((0,l.default)(t,"borderLeftWidth"),10)-(0,c.default)(t)||0);return(0,o.default)({},n,{top:n.top-i.top-(parseInt((0,l.default)(e,"marginTop"),10)||0),left:n.left-i.left-(parseInt((0,l.default)(e,"marginLeft"),10)||0)})};var o=i(n(9894)),r=i(n(4769)),a=i(n(7664)),s=i(n(7737)),c=i(n(776)),l=i(n(1284));e.exports=t.default},9441:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){var o,r="#"===t[0],a="."===t[0],s=r||a?t.slice(1):t;if(n.test(s))return r?(o=(e=e.getElementById?e:document).getElementById(s))?[o]:[]:e.getElementsByClassName&&a?i(e.getElementsByClassName(s)):i(e.getElementsByTagName(t));return i(e.querySelectorAll(t))};var n=/^[\w-]*$/,i=Function.prototype.bind.call(Function.prototype.call,[].slice);e.exports=t.default},776:function(e,t,n){"use strict";var i=n(8135);t.__esModule=!0,t.default=function(e,t){var n=(0,o.default)(e);if(void 0===t)return n?"pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft:e.scrollLeft;n?n.scrollTo(t,"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop):e.scrollLeft=t};var o=i(n(6139));e.exports=t.default},7737:function(e,t,n){"use strict";var i=n(8135);t.__esModule=!0,t.default=function(e,t){var n=(0,o.default)(e);if(void 0===t)return n?"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop:e.scrollTop;n?n.scrollTo("pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft,t):e.scrollTop=t};var o=i(n(6139));e.exports=t.default},7686:function(e,t,n){"use strict";var i=n(8135);t.__esModule=!0,t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var n=e.style;"float"==(t=(0,o.default)(t))&&(t="styleFloat");var i=e.currentStyle[t]||null;if(null==i&&n&&n[t]&&(i=n[t]),a.test(i)&&!r.test(t)){var s=n.left,c=e.runtimeStyle,l=c&&c.left;l&&(c.left=e.currentStyle.left),n.left="fontSize"===t?"1em":i,i=n.pixelLeft+"px",n.left=s,l&&(c.left=l)}return i}}};var o=i(n(7684)),r=/^(top|right|bottom|left)$/,a=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},1284:function(e,t,n){"use strict";var i=n(8135);t.__esModule=!0,t.default=function(e,t,n){var i="",u="",f=t;if("string"==typeof t){if(void 0===n)return e.style[(0,o.default)(t)]||(0,a.default)(e).getPropertyValue((0,r.default)(t));(f={})[t]=n}Object.keys(f).forEach((function(t){var n=f[t];n||0===n?(0,l.default)(t)?u+=t+"("+n+") ":i+=(0,r.default)(t)+": "+n+";":(0,s.default)(e,(0,r.default)(t))})),u&&(i+=c.transform+": "+u+";");e.style.cssText+=";"+i};var o=i(n(7684)),r=i(n(3791)),a=i(n(7686)),s=i(n(9476)),c=n(2450),l=i(n(6249));e.exports=t.default},9476:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},6249:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){return!(!e||!n.test(e))};var n=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},2450:function(e,t,n){"use strict";var i=n(8135);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var o,r,a,s,c,l,u,f,d,p,h,g=i(n(955)),m="transform";if(t.transform=m,t.animationEnd=a,t.transitionEnd=r,t.transitionDelay=u,t.transitionTiming=l,t.transitionDuration=c,t.transitionProperty=s,t.animationDelay=h,t.animationTiming=p,t.animationDuration=d,t.animationName=f,g.default){var y=function(){for(var e,t,n=document.createElement("div").style,i={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},o=Object.keys(i),r="",a=0;a<o.length;a++){var s=o[a];if(s+"TransitionProperty"in n){r="-"+s.toLowerCase(),e=i[s]("TransitionEnd"),t=i[s]("AnimationEnd");break}}!e&&"transitionProperty"in n&&(e="transitionend");!t&&"animationName"in n&&(t="animationend");return n=null,{animationEnd:t,transitionEnd:e,prefix:r}}();o=y.prefix,t.transitionEnd=r=y.transitionEnd,t.animationEnd=a=y.animationEnd,t.transform=m=o+"-"+m,t.transitionProperty=s=o+"-transition-property",t.transitionDuration=c=o+"-transition-duration",t.transitionDelay=u=o+"-transition-delay",t.transitionTiming=l=o+"-transition-timing-function",t.animationName=f=o+"-animation-name",t.animationDuration=d=o+"-animation-duration",t.animationTiming=p=o+"-animation-delay",t.animationDelay=h=o+"-animation-timing-function"}var v={transform:m,end:r,property:s,timing:l,delay:u,duration:c};t.default=v},2719:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(n,(function(e,t){return t.toUpperCase()}))};var n=/-(.)/g;e.exports=t.default},7684:function(e,t,n){"use strict";var i=n(8135);t.__esModule=!0,t.default=function(e){return(0,o.default)(e.replace(r,"ms-"))};var o=i(n(2719)),r=/^-ms-/;e.exports=t.default},5723:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(n,"-$1").toLowerCase()};var n=/([A-Z])/g;e.exports=t.default},3791:function(e,t,n){"use strict";var i=n(8135);t.__esModule=!0,t.default=function(e){return(0,o.default)(e).replace(r,"-ms-")};var o=i(n(5723)),r=/^ms-/;e.exports=t.default},955:function(e,t){"use strict";t.__esModule=!0,t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n,e.exports=t.default},9011:function(e,t,n){"use strict";var i=n(8135);t.__esModule=!0,t.default=function(e){if((!o&&0!==o||e)&&r.default){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),o=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return o};var o,r=i(n(955));e.exports=t.default},9958:function(e,t,n){"use strict";var i=n(9844),o=n(7025),r=n(3050);e.exports={XMLParser:o,XMLValidator:i,XMLBuilder:r}},7177:function(e){function t(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return n(e,t)}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==i.return||i.return()}finally{if(c)throw a}}}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}e.exports=function(e){return"function"==typeof e?e:Array.isArray(e)?function(n){var i,o=t(e);try{for(o.s();!(i=o.n()).done;){var r=i.value;if("string"==typeof r&&n===r)return!0;if(r instanceof RegExp&&r.test(n))return!0}}catch(e){o.e(e)}finally{o.f()}}:function(){return!1}}},9472:function(e,t){"use strict";var n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i="["+n+"]["+(n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040")+"]*",o=new RegExp("^"+i+"$");t.isExist=function(e){return void 0!==e},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.merge=function(e,t,n){if(t)for(var i=Object.keys(t),o=i.length,r=0;r<o;r++)e[i[r]]="strict"===n?[t[i[r]]]:t[i[r]]},t.getValue=function(e){return t.isExist(e)?e:""},t.isName=function(e){var t=o.exec(e);return!(null==t)},t.getAllMatches=function(e,t){for(var n=[],i=t.exec(e);i;){var o=[];o.startIndex=t.lastIndex-i[0].length;for(var r=i.length,a=0;a<r;a++)o.push(i[a]);n.push(o),i=t.exec(e)}return n},t.nameRegexp=i},9844:function(e,t,n){"use strict";function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},i.apply(this,arguments)}var o=n(9472),r={allowBooleanAttributes:!1,unpairedTags:[]};function a(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function s(e,t){for(var n=t;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{var i=e.substr(n,t-n);if(t>5&&"xml"===i)return g("InvalidXml","XML declaration allowed only at the start of the document.",y(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function c(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){var n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&0===--n)break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}t.validate=function(e,t){t=i({},r,t);var n,l=[],u=!1,d=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(var m=0;m<e.length;m++)if("<"===e[m]&&"?"===e[m+1]){if((m=s(e,m+=2)).err)return m}else{if("<"!==e[m]){if(a(e[m]))continue;return g("InvalidChar","char '"+e[m]+"' is not expected.",y(e,m))}var v=m;if("!"===e[++m]){m=c(e,m);continue}var b=!1;"/"===e[m]&&(b=!0,m++);for(var _="";m<e.length&&">"!==e[m]&&" "!==e[m]&&"\t"!==e[m]&&"\n"!==e[m]&&"\r"!==e[m];m++)_+=e[m];if("/"===(_=_.trim())[_.length-1]&&(_=_.substring(0,_.length-1),m--),n=_,!o.isName(n)){return g("InvalidTag",0===_.trim().length?"Invalid space after '<'.":"Tag '"+_+"' is an invalid name.",y(e,m))}var C=f(e,m);if(!1===C)return g("InvalidAttr","Attributes for '"+_+"' have open quote.",y(e,m));var S=C.value;if(m=C.index,"/"===S[S.length-1]){var E=m-S.length,N=p(S=S.substring(0,S.length-1),t);if(!0!==N)return g(N.err.code,N.err.msg,y(e,E+N.err.line));u=!0}else if(b){if(!C.tagClosed)return g("InvalidTag","Closing tag '"+_+"' doesn't have proper closing.",y(e,m));if(S.trim().length>0)return g("InvalidTag","Closing tag '"+_+"' can't have attributes or invalid starting.",y(e,v));if(0===l.length)return g("InvalidTag","Closing tag '"+_+"' has not been opened.",y(e,v));var O=l.pop();if(_!==O.tagName){var T=y(e,O.tagStartPos);return g("InvalidTag","Expected closing tag '"+O.tagName+"' (opened in line "+T.line+", col "+T.col+") instead of closing tag '"+_+"'.",y(e,v))}0==l.length&&(d=!0)}else{var I=p(S,t);if(!0!==I)return g(I.err.code,I.err.msg,y(e,m-S.length+I.err.line));if(!0===d)return g("InvalidXml","Multiple possible root nodes found.",y(e,m));-1!==t.unpairedTags.indexOf(_)||l.push({tagName:_,tagStartPos:v}),u=!0}for(m++;m<e.length;m++)if("<"===e[m]){if("!"===e[m+1]){m=c(e,++m);continue}if("?"!==e[m+1])break;if((m=s(e,++m)).err)return m}else if("&"===e[m]){var w=h(e,m);if(-1==w)return g("InvalidChar","char '&' is not expected.",y(e,m));m=w}else if(!0===d&&!a(e[m]))return g("InvalidXml","Extra text at the end",y(e,m));"<"===e[m]&&m--}return u?1==l.length?g("InvalidTag","Unclosed tag '"+l[0].tagName+"'.",y(e,l[0].tagStartPos)):!(l.length>0)||g("InvalidXml","Invalid '"+JSON.stringify(l.map((function(e){return e.tagName})),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):g("InvalidXml","Start tag expected.",1)};var l='"',u="'";function f(e,t){for(var n="",i="",o=!1;t<e.length;t++){if(e[t]===l||e[t]===u)""===i?i=e[t]:i!==e[t]||(i="");else if(">"===e[t]&&""===i){o=!0;break}n+=e[t]}return""===i&&{value:n,index:t,tagClosed:o}}var d=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function p(e,t){for(var n=o.getAllMatches(e,d),i={},r=0;r<n.length;r++){if(0===n[r][1].length)return g("InvalidAttr","Attribute '"+n[r][2]+"' has no space in starting.",v(n[r]));if(void 0!==n[r][3]&&void 0===n[r][4])return g("InvalidAttr","Attribute '"+n[r][2]+"' is without value.",v(n[r]));if(void 0===n[r][3]&&!t.allowBooleanAttributes)return g("InvalidAttr","boolean attribute '"+n[r][2]+"' is not allowed.",v(n[r]));var a=n[r][2];if(!m(a))return g("InvalidAttr","Attribute '"+a+"' is an invalid name.",v(n[r]));if(i.hasOwnProperty(a))return g("InvalidAttr","Attribute '"+a+"' is repeated.",v(n[r]));i[a]=1}return!0}function h(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){var n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);for(var n=0;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function g(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function m(e){return o.isName(e)}function y(e,t){var n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function v(e){return e.startIndex+e[1].length}},3050:function(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t,n){var o;return o=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==i(o)?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r.apply(this,arguments)}var a=n(8638),s=n(7177),c={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function l(e){this.options=r({},c,e),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=s(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=d),this.processTextOrObjNode=u,this.options.format?(this.indentate=f,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function u(e,t,n,i){var o=this.j2x(e,n+1,i.concat(t));return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,o.attrStr,n):this.buildObjectNode(o.val,t,o.attrStr,n)}function f(e){return this.options.indentBy.repeat(e)}function d(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}l.prototype.build=function(e){return this.options.preserveOrder?a(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e=o({},this.options.arrayNodeName,e)),this.j2x(e,0,[]).val)},l.prototype.j2x=function(e,t,n){var o="",r="",a=n.join(".");for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s))if(void 0===e[s])this.isAttribute(s)&&(r+="");else if(null===e[s])this.isAttribute(s)?r+="":"?"===s[0]?r+=this.indentate(t)+"<"+s+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+s+"/"+this.tagEndChar;else if(e[s]instanceof Date)r+=this.buildTextValNode(e[s],s,"",t);else if("object"!==i(e[s])){var c=this.isAttribute(s);if(c&&!this.ignoreAttributesFn(c,a))o+=this.buildAttrPairStr(c,""+e[s]);else if(!c)if(s===this.options.textNodeName){var l=this.options.tagValueProcessor(s,""+e[s]);r+=this.replaceEntitiesValue(l)}else r+=this.buildTextValNode(e[s],s,"",t)}else if(Array.isArray(e[s])){for(var u=e[s].length,f="",d="",p=0;p<u;p++){var h=e[s][p];if(void 0===h);else if(null===h)"?"===s[0]?r+=this.indentate(t)+"<"+s+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+s+"/"+this.tagEndChar;else if("object"===i(h))if(this.options.oneListGroup){var g=this.j2x(h,t+1,n.concat(s));f+=g.val,this.options.attributesGroupName&&h.hasOwnProperty(this.options.attributesGroupName)&&(d+=g.attrStr)}else f+=this.processTextOrObjNode(h,s,t,n);else if(this.options.oneListGroup){var m=this.options.tagValueProcessor(s,h);f+=m=this.replaceEntitiesValue(m)}else f+=this.buildTextValNode(h,s,"",t)}this.options.oneListGroup&&(f=this.buildObjectNode(f,s,d,t)),r+=f}else if(this.options.attributesGroupName&&s===this.options.attributesGroupName)for(var y=Object.keys(e[s]),v=y.length,b=0;b<v;b++)o+=this.buildAttrPairStr(y[b],""+e[s][y[b]]);else r+=this.processTextOrObjNode(e[s],s,t,n);return{attrStr:o,val:r}},l.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},l.prototype.buildObjectNode=function(e,t,n,i){if(""===e)return"?"===t[0]?this.indentate(i)+"<"+t+n+"?"+this.tagEndChar:this.indentate(i)+"<"+t+n+this.closeTag(t)+this.tagEndChar;var o="</"+t+this.tagEndChar,r="";return"?"===t[0]&&(r="?",o=""),!n&&""!==n||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===r.length?this.indentate(i)+"\x3c!--".concat(e,"--\x3e")+this.newLine:this.indentate(i)+"<"+t+n+r+this.tagEndChar+e+this.indentate(i)+o:this.indentate(i)+"<"+t+n+r+">"+e+o},l.prototype.closeTag=function(e){var t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":"></".concat(e),t},l.prototype.buildTextValNode=function(e,t,n,i){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(i)+"<![CDATA[".concat(e,"]]>")+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(i)+"\x3c!--".concat(e,"--\x3e")+this.newLine;if("?"===t[0])return this.indentate(i)+"<"+t+n+"?"+this.tagEndChar;var o=this.options.tagValueProcessor(t,e);return""===(o=this.replaceEntitiesValue(o))?this.indentate(i)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(i)+"<"+t+n+">"+o+"</"+t+this.tagEndChar},l.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(var t=0;t<this.options.entities.length;t++){var n=this.options.entities[t];e=e.replace(n.regex,n.val)}return e},e.exports=l},8638:function(e){function t(e,a,s,c){for(var l="",u=!1,f=0;f<e.length;f++){var d=e[f],p=n(d);if(void 0!==p){var h="";if(h=0===s.length?p:"".concat(s,".").concat(p),p!==a.textNodeName)if(p!==a.cdataPropName)if(p!==a.commentPropName)if("?"!==p[0]){var g=c;""!==g&&(g+=a.indentBy);var m=i(d[":@"],a),y=c+"<".concat(p).concat(m),v=t(d[p],a,h,g);-1!==a.unpairedTags.indexOf(p)?a.suppressUnpairedNode?l+=y+">":l+=y+"/>":v&&0!==v.length||!a.suppressEmptyNode?v&&v.endsWith(">")?l+=y+">".concat(v).concat(c,"</").concat(p,">"):(l+=y+">",v&&""!==c&&(v.includes("/>")||v.includes("</"))?l+=c+a.indentBy+v+c:l+=v,l+="</".concat(p,">")):l+=y+"/>",u=!0}else{var b=i(d[":@"],a),_="?xml"===p?"":c,C=d[p][0][a.textNodeName];C=0!==C.length?" "+C:"",l+=_+"<".concat(p).concat(C).concat(b,"?>"),u=!0}else l+=c+"\x3c!--".concat(d[p][0][a.textNodeName],"--\x3e"),u=!0;else u&&(l+=c),l+="<![CDATA[".concat(d[p][0][a.textNodeName],"]]>"),u=!1;else{var S=d[p];o(h,a)||(S=r(S=a.tagValueProcessor(p,S),a)),u&&(l+=c),l+=S,u=!1}}}return l}function n(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var i=t[n];if(e.hasOwnProperty(i)&&":@"!==i)return i}}function i(e,t){var n="";if(e&&!t.ignoreAttributes)for(var i in e)if(e.hasOwnProperty(i)){var o=t.attributeValueProcessor(i,e[i]);!0===(o=r(o,t))&&t.suppressBooleanAttributes?n+=" ".concat(i.substr(t.attributeNamePrefix.length)):n+=" ".concat(i.substr(t.attributeNamePrefix.length),'="').concat(o,'"')}return n}function o(e,t){var n=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(var i in t.stopNodes)if(t.stopNodes[i]===e||t.stopNodes[i]==="*."+n)return!0;return!1}function r(e,t){if(e&&e.length>0&&t.processEntities)for(var n=0;n<t.entities.length;n++){var i=t.entities[n];e=e.replace(i.regex,i.val)}return e}e.exports=function(e,n){var i="";return n.format&&n.indentBy.length>0&&(i="\n"),t(e,n,"",i)}},5373:function(e,t,n){function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,r,a,s=[],c=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var r=n(9472);function a(e,t){for(var n="";t<e.length&&"'"!==e[t]&&'"'!==e[t];t++)n+=e[t];if(-1!==(n=n.trim()).indexOf(" "))throw new Error("External entites are not supported");for(var i=e[t++],o="";t<e.length&&e[t]!==i;t++)o+=e[t];return[n,o,t]}function s(e,t){return"!"===e[t+1]&&"-"===e[t+2]&&"-"===e[t+3]}function c(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"N"===e[t+3]&&"T"===e[t+4]&&"I"===e[t+5]&&"T"===e[t+6]&&"Y"===e[t+7]}function l(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"L"===e[t+3]&&"E"===e[t+4]&&"M"===e[t+5]&&"E"===e[t+6]&&"N"===e[t+7]&&"T"===e[t+8]}function u(e,t){return"!"===e[t+1]&&"A"===e[t+2]&&"T"===e[t+3]&&"T"===e[t+4]&&"L"===e[t+5]&&"I"===e[t+6]&&"S"===e[t+7]&&"T"===e[t+8]}function f(e,t){return"!"===e[t+1]&&"N"===e[t+2]&&"O"===e[t+3]&&"T"===e[t+4]&&"A"===e[t+5]&&"T"===e[t+6]&&"I"===e[t+7]&&"O"===e[t+8]&&"N"===e[t+9]}function d(e){if(r.isName(e))return e;throw new Error("Invalid entity name ".concat(e))}e.exports=function(e,t){var n={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");t+=9;for(var o=1,r=!1,p=!1;t<e.length;t++)if("<"!==e[t]||p)if(">"===e[t]){if(p?"-"===e[t-1]&&"-"===e[t-2]&&(p=!1,o--):o--,0===o)break}else"["===e[t]?r=!0:e[t];else{if(r&&c(e,t)){var h=i(a(e,(t+=7)+1),3);entityName=h[0],val=h[1],t=h[2],-1===val.indexOf("&")&&(n[d(entityName)]={regx:RegExp("&".concat(entityName,";"),"g"),val:val})}else if(r&&l(e,t))t+=8;else if(r&&u(e,t))t+=8;else if(r&&f(e,t))t+=9;else{if(!s)throw new Error("Invalid DOCTYPE");p=!0}o++,""}if(0!==o)throw new Error("Unclosed DOCTYPE");return{entities:n,i:t}}},5166:function(e,t){function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},n.apply(this,arguments)}var i={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:function(){return!1},commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e}};t.buildOptions=function(e){return n({},i,e)},t.defaultOptions=i},9657:function(e,t,n){"use strict";function i(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return 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},o(e)}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,s(i.key),i)}}function a(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:String(t)}var c=n(9472),l=n(1750),u=n(5373),f=n(807),d=n(7177),p=a((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:function(e,t){return String.fromCharCode(Number.parseInt(t,10))}},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:function(e,t){return String.fromCharCode(Number.parseInt(t,16))}}},this.addExternalEntities=h,this.parseXml=b,this.parseTextData=g,this.resolveNameSpace=m,this.buildAttributesMap=v,this.isItStopNode=E,this.replaceEntitiesValue=C,this.readStopNodeData=T,this.saveTextToParentTag=S,this.addChild=_,this.ignoreAttributesFn=d(this.options.ignoreAttributes)}));function h(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var i=t[n];this.lastEntities[i]={regex:new RegExp("&"+i+";","g"),val:e[i]}}}function g(e,t,n,i,r,a,s){if(void 0!==e&&(this.options.trimValues&&!i&&(e=e.trim()),e.length>0)){s||(e=this.replaceEntitiesValue(e));var c=this.options.tagValueProcessor(t,e,n,r,a);return null==c?e:o(c)!==o(e)||c!==e?c:this.options.trimValues||e.trim()===e?I(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function m(e){if(this.options.removeNSPrefix){var t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}var y=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function v(e,t,n){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){for(var i=c.getAllMatches(e,y),r=i.length,a={},s=0;s<r;s++){var l=this.resolveNameSpace(i[s][1]);if(!this.ignoreAttributesFn(l,t)){var u=i[s][4],f=this.options.attributeNamePrefix+l;if(l.length)if(this.options.transformAttributeName&&(f=this.options.transformAttributeName(f)),"__proto__"===f&&(f="#__proto__"),void 0!==u){this.options.trimValues&&(u=u.trim()),u=this.replaceEntitiesValue(u);var d=this.options.attributeValueProcessor(l,u,t);null==d?a[f]=u:o(d)!==o(u)||d!==u?a[f]=d:a[f]=I(u,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(a[f]=!0)}}if(!Object.keys(a).length)return;if(this.options.attributesGroupName){var p={};return p[this.options.attributesGroupName]=a,p}return a}}var b=function(e){e=e.replace(/\r\n?/g,"\n");for(var t=new l("!xml"),n=t,o="",r="",a=0;a<e.length;a++){if("<"===e[a])if("/"===e[a+1]){var s=N(e,">",a,"Closing Tag is not closed."),c=e.substring(a+2,s).trim();if(this.options.removeNSPrefix){var f=c.indexOf(":");-1!==f&&(c=c.substr(f+1))}this.options.transformTagName&&(c=this.options.transformTagName(c)),n&&(o=this.saveTextToParentTag(o,n,r));var d=r.substring(r.lastIndexOf(".")+1);if(c&&-1!==this.options.unpairedTags.indexOf(c))throw new Error("Unpaired tag can not be used as closing tag: </".concat(c,">"));var p=0;d&&-1!==this.options.unpairedTags.indexOf(d)?(p=r.lastIndexOf(".",r.lastIndexOf(".")-1),this.tagsNodeStack.pop()):p=r.lastIndexOf("."),r=r.substring(0,p),n=this.tagsNodeStack.pop(),o="",a=s}else if("?"===e[a+1]){var h=O(e,a,!1,"?>");if(!h)throw new Error("Pi Tag is not closed.");if(o=this.saveTextToParentTag(o,n,r),this.options.ignoreDeclaration&&"?xml"===h.tagName||this.options.ignorePiTags);else{var g=new l(h.tagName);g.add(this.options.textNodeName,""),h.tagName!==h.tagExp&&h.attrExpPresent&&(g[":@"]=this.buildAttributesMap(h.tagExp,r,h.tagName)),this.addChild(n,g,r)}a=h.closeIndex+1}else if("!--"===e.substr(a+1,3)){var m=N(e,"--\x3e",a+4,"Comment is not closed.");if(this.options.commentPropName){var y=e.substring(a+4,m-2);o=this.saveTextToParentTag(o,n,r),n.add(this.options.commentPropName,[i({},this.options.textNodeName,y)])}a=m}else if("!D"===e.substr(a+1,2)){var v=u(e,a);this.docTypeEntities=v.entities,a=v.i}else if("!["===e.substr(a+1,2)){var b=N(e,"]]>",a,"CDATA is not closed.")-2,_=e.substring(a+9,b);o=this.saveTextToParentTag(o,n,r);var C=this.parseTextData(_,n.tagname,r,!0,!1,!0,!0);null==C&&(C=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[i({},this.options.textNodeName,_)]):n.add(this.options.textNodeName,C),a=b+2}else{var S=O(e,a,this.options.removeNSPrefix),E=S.tagName,T=S.rawTagName,I=S.tagExp,w=S.attrExpPresent,A=S.closeIndex;this.options.transformTagName&&(E=this.options.transformTagName(E)),n&&o&&"!xml"!==n.tagname&&(o=this.saveTextToParentTag(o,n,r,!1));var k=n;if(k&&-1!==this.options.unpairedTags.indexOf(k.tagname)&&(n=this.tagsNodeStack.pop(),r=r.substring(0,r.lastIndexOf("."))),E!==t.tagname&&(r+=r?"."+E:E),this.isItStopNode(this.options.stopNodes,r,E)){var D="";if(I.length>0&&I.lastIndexOf("/")===I.length-1)"/"===E[E.length-1]?(E=E.substr(0,E.length-1),r=r.substr(0,r.length-1),I=E):I=I.substr(0,I.length-1),a=S.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(E))a=S.closeIndex;else{var P=this.readStopNodeData(e,T,A+1);if(!P)throw new Error("Unexpected end of ".concat(T));a=P.i,D=P.tagContent}var R=new l(E);E!==I&&w&&(R[":@"]=this.buildAttributesMap(I,r,E)),D&&(D=this.parseTextData(D,E,r,!0,w,!0,!0)),r=r.substr(0,r.lastIndexOf(".")),R.add(this.options.textNodeName,D),this.addChild(n,R,r)}else{if(I.length>0&&I.lastIndexOf("/")===I.length-1){"/"===E[E.length-1]?(E=E.substr(0,E.length-1),r=r.substr(0,r.length-1),I=E):I=I.substr(0,I.length-1),this.options.transformTagName&&(E=this.options.transformTagName(E));var x=new l(E);E!==I&&w&&(x[":@"]=this.buildAttributesMap(I,r,E)),this.addChild(n,x,r),r=r.substr(0,r.lastIndexOf("."))}else{var F=new l(E);this.tagsNodeStack.push(n),E!==I&&w&&(F[":@"]=this.buildAttributesMap(I,r,E)),this.addChild(n,F,r),n=F}o="",a=A}}else o+=e[a]}return t.child};function _(e,t,n){var i=this.options.updateTag(t.tagname,n,t[":@"]);!1===i||("string"==typeof i?(t.tagname=i,e.addChild(t)):e.addChild(t))}var C=function(e){if(this.options.processEntities){for(var t in this.docTypeEntities){var n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(var i in this.lastEntities){var o=this.lastEntities[i];e=e.replace(o.regex,o.val)}if(this.options.htmlEntities)for(var r in this.htmlEntities){var a=this.htmlEntities[r];e=e.replace(a.regex,a.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function S(e,t,n,i){return e&&(void 0===i&&(i=0===Object.keys(t.child).length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,i))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function E(e,t,n){var i="*."+n;for(var o in e){var r=e[o];if(i===r||t===r)return!0}return!1}function N(e,t,n,i){var o=e.indexOf(t,n);if(-1===o)throw new Error(i);return o+t.length-1}function O(e,t,n){var i=function(e,t){for(var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:">",o="",r=t;r<e.length;r++){var a=e[r];if(n)a===n&&(n="");else if('"'===a||"'"===a)n=a;else if(a===i[0]){if(!i[1])return{data:o,index:r};if(e[r+1]===i[1])return{data:o,index:r}}else"\t"===a&&(a=" ");o+=a}}(e,t+1,arguments.length>3&&void 0!==arguments[3]?arguments[3]:">");if(i){var o=i.data,r=i.index,a=o.search(/\s/),s=o,c=!0;-1!==a&&(s=o.substring(0,a),o=o.substring(a+1).trimStart());var l=s;if(n){var u=s.indexOf(":");-1!==u&&(c=(s=s.substr(u+1))!==i.data.substr(u+1))}return{tagName:s,tagExp:o,closeIndex:r,attrExpPresent:c,rawTagName:l}}}function T(e,t,n){for(var i=n,o=1;n<e.length;n++)if("<"===e[n])if("/"===e[n+1]){var r=N(e,">",n,"".concat(t," is not closed"));if(e.substring(n+2,r).trim()===t&&0===--o)return{tagContent:e.substring(i,n),i:r};n=r}else if("?"===e[n+1]){n=N(e,"?>",n+1,"StopNode is not closed.")}else if("!--"===e.substr(n+1,3)){n=N(e,"--\x3e",n+3,"StopNode is not closed.")}else if("!["===e.substr(n+1,2)){n=N(e,"]]>",n,"StopNode is not closed.")-2}else{var a=O(e,n,">");if(a)(a&&a.tagName)===t&&"/"!==a.tagExp[a.tagExp.length-1]&&o++,n=a.closeIndex}}function I(e,t,n){if(t&&"string"==typeof e){var i=e.trim();return"true"===i||"false"!==i&&f(e,n)}return c.isExist(e)?e:""}e.exports=p},7025:function(e,t,n){function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}function r(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:String(t)}var a=n(5166).buildOptions,s=n(9657),c=n(8820).prettify,l=n(9844),u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.externalEntities={},this.options=a(t)}var t,n,i;return t=e,(n=[{key:"parse",value:function(e,t){if("string"==typeof e);else{if(!e.toString)throw new Error("XML data is accepted in String or Bytes[] form.");e=e.toString()}if(t){!0===t&&(t={});var n=l.validate(e,t);if(!0!==n)throw Error("".concat(n.err.msg,":").concat(n.err.line,":").concat(n.err.col))}var i=new s(this.options);i.addExternalEntities(this.externalEntities);var o=i.parseXml(e);return this.options.preserveOrder||void 0===o?o:c(o,this.options)}},{key:"addEntity",value:function(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}])&&o(t.prototype,n),i&&o(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=u},8820:function(e,t){"use strict";function n(e,t,a){for(var s,c={},l=0;l<e.length;l++){var u=e[l],f=i(u),d="";if(d=void 0===a?f:a+"."+f,f===t.textNodeName)void 0===s?s=u[f]:s+=""+u[f];else{if(void 0===f)continue;if(u[f]){var p=n(u[f],t,d),h=r(p,t);u[":@"]?o(p,u[":@"],d,t):1!==Object.keys(p).length||void 0===p[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(p).length&&(t.alwaysCreateTextNode?p[t.textNodeName]="":p=""):p=p[t.textNodeName],void 0!==c[f]&&c.hasOwnProperty(f)?(Array.isArray(c[f])||(c[f]=[c[f]]),c[f].push(p)):t.isArray(f,d,h)?c[f]=[p]:c[f]=p}}}return"string"==typeof s?s.length>0&&(c[t.textNodeName]=s):void 0!==s&&(c[t.textNodeName]=s),c}function i(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var i=t[n];if(":@"!==i)return i}}function o(e,t,n,i){if(t)for(var o=Object.keys(t),r=o.length,a=0;a<r;a++){var s=o[a];i.isArray(s,n+"."+s,!0,!0)?e[s]=[t[s]]:e[s]=t[s]}}function r(e,t){var n=t.textNodeName,i=Object.keys(e).length;return 0===i||!(1!==i||!e[n]&&"boolean"!=typeof e[n]&&0!==e[n])}t.prettify=function(e,t){return n(e,t)}},1750:function(e){"use strict";function t(e){return t="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},t(e)}function n(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,o(i.key),i)}}function o(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var o=i.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:String(n)}var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tagname=t,this.child=[],this[":@"]={}}var t,o,r;return t=e,(o=[{key:"add",value:function(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push(n({},e,t))}},{key:"addChild",value:function(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push(n(n({},e.tagname,e.child),":@",e[":@"])):this.child.push(n({},e.tagname,e.child))}}])&&i(t.prototype,o),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=r},9164:function(e,t,n){"use strict";(t=e.exports=n(2885).default).default=t},2885:function(e,t){"use strict";t.default=function(){function e(t,n,i,o){this.message=t,this.expected=n,this.found=i,this.location=o,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(e,Error),{SyntaxError:e,parse:function(t){var n,i=arguments.length>1?arguments[1]:{},o={},r={start:ke},a=ke,s=function(e){return{type:"messageFormatPattern",elements:e,location:Oe()}},c=function(e){var t,n,i,o,r,a="";for(t=0,i=e.length;t<i;t+=1)for(n=0,r=(o=e[t]).length;n<r;n+=1)a+=o[n];return a},l=function(e){return{type:"messageTextElement",value:e,location:Oe()}},u=/^[^ \t\n\r,.+={}#]/,f={type:"class",value:"[^ \\t\\n\\r,.+={}#]",description:"[^ \\t\\n\\r,.+={}#]"},d="{",p={type:"literal",value:"{",description:'"{"'},h=",",g={type:"literal",value:",",description:'","'},m="}",y={type:"literal",value:"}",description:'"}"'},v=function(e,t){return{type:"argumentElement",id:e,format:t&&t[2],location:Oe()}},b="number",_={type:"literal",value:"number",description:'"number"'},C="date",S={type:"literal",value:"date",description:'"date"'},E="time",N={type:"literal",value:"time",description:'"time"'},O=function(e,t){return{type:e+"Format",style:t&&t[2],location:Oe()}},T="plural",I={type:"literal",value:"plural",description:'"plural"'},w=function(e){return{type:e.type,ordinal:!1,offset:e.offset||0,options:e.options,location:Oe()}},A="selectordinal",k={type:"literal",value:"selectordinal",description:'"selectordinal"'},D=function(e){return{type:e.type,ordinal:!0,offset:e.offset||0,options:e.options,location:Oe()}},P="select",R={type:"literal",value:"select",description:'"select"'},x=function(e){return{type:"selectFormat",options:e,location:Oe()}},F="=",L={type:"literal",value:"=",description:'"="'},U=function(e,t){return{type:"optionalFormatPattern",selector:e,value:t,location:Oe()}},j="offset:",M={type:"literal",value:"offset:",description:'"offset:"'},W=function(e){return e},H=function(e,t){return{type:"pluralFormat",offset:e,options:t,location:Oe()}},q={type:"other",description:"whitespace"},B=/^[ \t\n\r]/,V={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},G={type:"other",description:"optionalWhitespace"},z=/^[0-9]/,K={type:"class",value:"[0-9]",description:"[0-9]"},Y=/^[0-9a-f]/i,X={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},J="0",$={type:"literal",value:"0",description:'"0"'},Q=/^[1-9]/,Z={type:"class",value:"[1-9]",description:"[1-9]"},ee=function(e){return parseInt(e,10)},te=/^[^{}\\\0-\x1F \t\n\r]/,ne={type:"class",value:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]",description:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]"},ie="\\\\",oe={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},re=function(){return"\\"},ae="\\#",se={type:"literal",value:"\\#",description:'"\\\\#"'},ce=function(){return"\\#"},le="\\{",ue={type:"literal",value:"\\{",description:'"\\\\{"'},fe=function(){return"{"},de="\\}",pe={type:"literal",value:"\\}",description:'"\\\\}"'},he=function(){return"}"},ge="\\u",me={type:"literal",value:"\\u",description:'"\\\\u"'},ye=function(e){return String.fromCharCode(parseInt(e,16))},ve=function(e){return e.join("")},be=0,_e=0,Ce=[{line:1,column:1,seenCR:!1}],Se=0,Ee=[],Ne=0;if("startRule"in i){if(!(i.startRule in r))throw new Error("Can't start parsing from rule \""+i.startRule+'".');a=r[i.startRule]}function Oe(){return Ie(_e,be)}function Te(e){var n,i,o=Ce[e];if(o)return o;for(n=e-1;!Ce[n];)n--;for(o={line:(o=Ce[n]).line,column:o.column,seenCR:o.seenCR};n<e;)"\n"===(i=t.charAt(n))?(o.seenCR||o.line++,o.column=1,o.seenCR=!1):"\r"===i||"\u2028"===i||"\u2029"===i?(o.line++,o.column=1,o.seenCR=!0):(o.column++,o.seenCR=!1),n++;return Ce[e]=o,o}function Ie(e,t){var n=Te(e),i=Te(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:i.line,column:i.column}}}function we(e){be<Se||(be>Se&&(Se=be,Ee=[]),Ee.push(e))}function Ae(t,n,i,o){return null!==n&&function(e){var t=1;for(e.sort((function(e,t){return e.description<t.description?-1:e.description>t.description?1:0}));t<e.length;)e[t-1]===e[t]?e.splice(t,1):t++}(n),new e(null!==t?t:function(e,t){var n,i=new Array(e.length);for(n=0;n<e.length;n++)i[n]=e[n].description;return"Expected "+(e.length>1?i.slice(0,-1).join(", ")+" or "+i[e.length-1]:i[0])+" but "+(t?'"'+function(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(e){return"\\x0"+t(e)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(e){return"\\x"+t(e)})).replace(/[\u0100-\u0FFF]/g,(function(e){return"\\u0"+t(e)})).replace(/[\u1000-\uFFFF]/g,(function(e){return"\\u"+t(e)}))}(t)+'"':"end of input")+" found."}(n,i),n,i,o)}function ke(){return De()}function De(){var e,t,n;for(e=be,t=[],n=Pe();n!==o;)t.push(n),n=Pe();return t!==o&&(_e=e,t=s(t)),e=t}function Pe(){var e;return(e=function(){var e,n;e=be,n=function(){var e,n,i,r,a,s;e=be,n=[],i=be,(r=Le())!==o&&(a=He())!==o&&(s=Le())!==o?i=r=[r,a,s]:(be=i,i=o);if(i!==o)for(;i!==o;)n.push(i),i=be,(r=Le())!==o&&(a=He())!==o&&(s=Le())!==o?i=r=[r,a,s]:(be=i,i=o);else n=o;n!==o&&(_e=e,n=c(n));e=n,e===o&&(e=be,e=(n=Fe())!==o?t.substring(e,be):n);return e}(),n!==o&&(_e=e,n=l(n));return e=n,e}())===o&&(e=function(){var e,n,i,r,a,s,c;e=be,123===t.charCodeAt(be)?(n=d,be++):(n=o,0===Ne&&we(p));n!==o&&Le()!==o?(i=function(){var e,n,i;if(e=Me(),e===o){if(e=be,n=[],u.test(t.charAt(be))?(i=t.charAt(be),be++):(i=o,0===Ne&&we(f)),i!==o)for(;i!==o;)n.push(i),u.test(t.charAt(be))?(i=t.charAt(be),be++):(i=o,0===Ne&&we(f));else n=o;e=n!==o?t.substring(e,be):n}return e}(),i!==o&&Le()!==o?(r=be,44===t.charCodeAt(be)?(a=h,be++):(a=o,0===Ne&&we(g)),a!==o&&(s=Le())!==o?(c=function(){var e;e=function(){var e,n,i,r,a,s;e=be,t.substr(be,6)===b?(n=b,be+=6):(n=o,0===Ne&&we(_));n===o&&(t.substr(be,4)===C?(n=C,be+=4):(n=o,0===Ne&&we(S)),n===o&&(t.substr(be,4)===E?(n=E,be+=4):(n=o,0===Ne&&we(N))));n!==o&&Le()!==o?(i=be,44===t.charCodeAt(be)?(r=h,be++):(r=o,0===Ne&&we(g)),r!==o&&(a=Le())!==o&&(s=He())!==o?i=r=[r,a,s]:(be=i,i=o),i===o&&(i=null),i!==o?(_e=e,e=n=O(n,i)):(be=e,e=o)):(be=e,e=o);return e}(),e===o&&(e=function(){var e,n,i,r;e=be,t.substr(be,6)===T?(n=T,be+=6):(n=o,0===Ne&&we(I));n!==o&&Le()!==o?(44===t.charCodeAt(be)?(i=h,be++):(i=o,0===Ne&&we(g)),i!==o&&Le()!==o&&(r=xe())!==o?(_e=e,e=n=w(r)):(be=e,e=o)):(be=e,e=o);return e}(),e===o&&(e=function(){var e,n,i,r;e=be,t.substr(be,13)===A?(n=A,be+=13):(n=o,0===Ne&&we(k));n!==o&&Le()!==o?(44===t.charCodeAt(be)?(i=h,be++):(i=o,0===Ne&&we(g)),i!==o&&Le()!==o&&(r=xe())!==o?(_e=e,e=n=D(r)):(be=e,e=o)):(be=e,e=o);return e}(),e===o&&(e=function(){var e,n,i,r,a;e=be,t.substr(be,6)===P?(n=P,be+=6):(n=o,0===Ne&&we(R));if(n!==o)if(Le()!==o)if(44===t.charCodeAt(be)?(i=h,be++):(i=o,0===Ne&&we(g)),i!==o)if(Le()!==o){if(r=[],(a=Re())!==o)for(;a!==o;)r.push(a),a=Re();else r=o;r!==o?(_e=e,e=n=x(r)):(be=e,e=o)}else be=e,e=o;else be=e,e=o;else be=e,e=o;else be=e,e=o;return e}())));return e}(),c!==o?r=a=[a,s,c]:(be=r,r=o)):(be=r,r=o),r===o&&(r=null),r!==o&&(a=Le())!==o?(125===t.charCodeAt(be)?(s=m,be++):(s=o,0===Ne&&we(y)),s!==o?(_e=e,e=n=v(i,r)):(be=e,e=o)):(be=e,e=o)):(be=e,e=o)):(be=e,e=o);return e}()),e}function Re(){var e,n,i,r,a;return e=be,Le()!==o?(n=function(){var e,n,i,r;return e=be,n=be,61===t.charCodeAt(be)?(i=F,be++):(i=o,0===Ne&&we(L)),i!==o&&(r=Me())!==o?n=i=[i,r]:(be=n,n=o),(e=n!==o?t.substring(e,be):n)===o&&(e=He()),e}(),n!==o&&Le()!==o?(123===t.charCodeAt(be)?(i=d,be++):(i=o,0===Ne&&we(p)),i!==o&&Le()!==o&&(r=De())!==o&&Le()!==o?(125===t.charCodeAt(be)?(a=m,be++):(a=o,0===Ne&&we(y)),a!==o?(_e=e,e=U(n,r)):(be=e,e=o)):(be=e,e=o)):(be=e,e=o)):(be=e,e=o),e}function xe(){var e,n,i,r;if(e=be,n=function(){var e,n,i;return e=be,t.substr(be,7)===j?(n=j,be+=7):(n=o,0===Ne&&we(M)),n!==o&&Le()!==o&&(i=Me())!==o?(_e=e,e=n=W(i)):(be=e,e=o),e}(),n===o&&(n=null),n!==o)if(Le()!==o){if(i=[],(r=Re())!==o)for(;r!==o;)i.push(r),r=Re();else i=o;i!==o?(_e=e,e=n=H(n,i)):(be=e,e=o)}else be=e,e=o;else be=e,e=o;return e}function Fe(){var e,n;if(Ne++,e=[],B.test(t.charAt(be))?(n=t.charAt(be),be++):(n=o,0===Ne&&we(V)),n!==o)for(;n!==o;)e.push(n),B.test(t.charAt(be))?(n=t.charAt(be),be++):(n=o,0===Ne&&we(V));else e=o;return Ne--,e===o&&(n=o,0===Ne&&we(q)),e}function Le(){var e,n,i;for(Ne++,e=be,n=[],i=Fe();i!==o;)n.push(i),i=Fe();return e=n!==o?t.substring(e,be):n,Ne--,e===o&&(n=o,0===Ne&&we(G)),e}function Ue(){var e;return z.test(t.charAt(be))?(e=t.charAt(be),be++):(e=o,0===Ne&&we(K)),e}function je(){var e;return Y.test(t.charAt(be))?(e=t.charAt(be),be++):(e=o,0===Ne&&we(X)),e}function Me(){var e,n,i,r,a,s;if(e=be,48===t.charCodeAt(be)?(n=J,be++):(n=o,0===Ne&&we($)),n===o){if(n=be,i=be,Q.test(t.charAt(be))?(r=t.charAt(be),be++):(r=o,0===Ne&&we(Z)),r!==o){for(a=[],s=Ue();s!==o;)a.push(s),s=Ue();a!==o?i=r=[r,a]:(be=i,i=o)}else be=i,i=o;n=i!==o?t.substring(n,be):i}return n!==o&&(_e=e,n=ee(n)),e=n}function We(){var e,n,i,r,a,s,c,l;return te.test(t.charAt(be))?(e=t.charAt(be),be++):(e=o,0===Ne&&we(ne)),e===o&&(e=be,t.substr(be,2)===ie?(n=ie,be+=2):(n=o,0===Ne&&we(oe)),n!==o&&(_e=e,n=re()),(e=n)===o&&(e=be,t.substr(be,2)===ae?(n=ae,be+=2):(n=o,0===Ne&&we(se)),n!==o&&(_e=e,n=ce()),(e=n)===o&&(e=be,t.substr(be,2)===le?(n=le,be+=2):(n=o,0===Ne&&we(ue)),n!==o&&(_e=e,n=fe()),(e=n)===o&&(e=be,t.substr(be,2)===de?(n=de,be+=2):(n=o,0===Ne&&we(pe)),n!==o&&(_e=e,n=he()),(e=n)===o&&(e=be,t.substr(be,2)===ge?(n=ge,be+=2):(n=o,0===Ne&&we(me)),n!==o?(i=be,r=be,(a=je())!==o&&(s=je())!==o&&(c=je())!==o&&(l=je())!==o?r=a=[a,s,c,l]:(be=r,r=o),(i=r!==o?t.substring(i,be):r)!==o?(_e=e,e=n=ye(i)):(be=e,e=o)):(be=e,e=o)))))),e}function He(){var e,t,n;if(e=be,t=[],(n=We())!==o)for(;n!==o;)t.push(n),n=We();else t=o;return t!==o&&(_e=e,t=ve(t)),e=t}if((n=a())!==o&&be===t.length)return n;throw n!==o&&be<t.length&&we({type:"end",description:"end of input"}),Ae(null,Ee,Se<t.length?t.charAt(Se):null,Se<t.length?Ie(Se,Se+1):Ie(Se,Se))}}}()},2175:function(e,t,n){"use strict";var i=n(9239).Z;n(8374),(t=e.exports=i).default=t},6690:function(e,t){"use strict";function n(e,t,n){this.locales=e,this.formats=t,this.pluralFn=n}function i(e){this.id=e}function o(e,t,n,i,o){this.id=e,this.useOrdinal=t,this.offset=n,this.options=i,this.pluralFn=o}function r(e,t,n,i){this.id=e,this.offset=t,this.numberFormat=n,this.string=i}function a(e,t){this.id=e,this.options=t}t.default=n,n.prototype.compile=function(e){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(e)},n.prototype.compileMessage=function(e){if(!e||"messageFormatPattern"!==e.type)throw new Error('Message AST is not of type: "messageFormatPattern"');var t,n,i,o=e.elements,r=[];for(t=0,n=o.length;t<n;t+=1)switch((i=o[t]).type){case"messageTextElement":r.push(this.compileMessageText(i));break;case"argumentElement":r.push(this.compileArgument(i));break;default:throw new Error("Message element does not have a valid type")}return r},n.prototype.compileMessageText=function(e){return this.currentPlural&&/(^|[^\\])#/g.test(e.value)?(this.pluralNumberFormat||(this.pluralNumberFormat=new Intl.NumberFormat(this.locales)),new r(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,e.value)):e.value.replace(/\\#/g,"#")},n.prototype.compileArgument=function(e){var t=e.format;if(!t)return new i(e.id);var n,r=this.formats,s=this.locales,c=this.pluralFn;switch(t.type){case"numberFormat":return n=r.number[t.style],{id:e.id,format:new Intl.NumberFormat(s,n).format};case"dateFormat":return n=r.date[t.style],{id:e.id,format:new Intl.DateTimeFormat(s,n).format};case"timeFormat":return n=r.time[t.style],{id:e.id,format:new Intl.DateTimeFormat(s,n).format};case"pluralFormat":return n=this.compileOptions(e),new o(e.id,t.ordinal,t.offset,n,c);case"selectFormat":return n=this.compileOptions(e),new a(e.id,n);default:throw new Error("Message element does not have a valid format type")}},n.prototype.compileOptions=function(e){var t,n,i,o=e.format,r=o.options,a={};for(this.pluralStack.push(this.currentPlural),this.currentPlural="pluralFormat"===o.type?e:null,t=0,n=r.length;t<n;t+=1)a[(i=r[t]).selector]=this.compileMessage(i.value);return this.currentPlural=this.pluralStack.pop(),a},i.prototype.format=function(e){return e||"number"==typeof e?"string"==typeof e?e:String(e):""},o.prototype.getOption=function(e){var t=this.options;return t["="+e]||t[this.pluralFn(e-this.offset,this.useOrdinal)]||t.other},r.prototype.format=function(e){var t=this.numberFormat.format(e-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+t).replace(/\\#/g,"#")},a.prototype.getOption=function(e){var t=this.options;return t[e]||t.other}},3913:function(e,t,n){"use strict";var i=n(2964),o=n(3444),r=n(6690),a=n(9164);function s(e,t,n){var i="string"==typeof e?s.__parse(e):e;if(!i||"messageFormatPattern"!==i.type)throw new TypeError("A message must be provided as a String or AST.");n=this._mergeFormats(s.formats,n),o.defineProperty(this,"_locale",{value:this._resolveLocale(t)});var r=this._findPluralRuleFunction(this._locale),a=this._compilePattern(i,t,n,r),c=this;this.format=function(t){try{return c._format(a,t)}catch(t){throw t.variableId?new Error("The intl string context variable '"+t.variableId+"' was not provided to the string '"+e+"'"):t}}}t.default=s,o.defineProperty(s,"formats",{enumerable:!0,value:{number:{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"}}}}),o.defineProperty(s,"__localeData__",{value:o.objCreate(null)}),o.defineProperty(s,"__addLocaleData",{value:function(e){if(!e||!e.locale)throw new Error("Locale data provided to IntlMessageFormat is missing a `locale` property");s.__localeData__[e.locale.toLowerCase()]=e}}),o.defineProperty(s,"__parse",{value:a.default.parse}),o.defineProperty(s,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),s.prototype.resolvedOptions=function(){return{locale:this._locale}},s.prototype._compilePattern=function(e,t,n,i){return new r.default(t,n,i).compile(e)},s.prototype._findPluralRuleFunction=function(e){for(var t=s.__localeData__,n=t[e.toLowerCase()];n;){if(n.pluralRuleFunction)return n.pluralRuleFunction;n=n.parentLocale&&t[n.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlMessageFormat is missing a `pluralRuleFunction` for :"+e)},s.prototype._format=function(e,t){var n,o,r,a,s,c,l="";for(n=0,o=e.length;n<o;n+=1)if("string"!=typeof(r=e[n])){if(a=r.id,!t||!i.hop.call(t,a))throw(c=new Error("A value must be provided for: "+a)).variableId=a,c;s=t[a],r.options?l+=this._format(r.getOption(s),t):l+=r.format(s)}else l+=r;return l},s.prototype._mergeFormats=function(e,t){var n,r,a={};for(n in e)i.hop.call(e,n)&&(a[n]=r=o.objCreate(e[n]),t&&i.hop.call(t,n)&&i.extend(r,t[n]));return a},s.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(s.defaultLocale);var t,n,i,o,r=s.__localeData__;for(t=0,n=e.length;t<n;t+=1)for(i=e[t].toLowerCase().split("-");i.length;){if(o=r[i.join("-")])return o.locale;i.pop()}var a=e.pop();throw new Error("No locale data has been added to IntlMessageFormat for: "+e.join(", ")+", or the default locale: "+a)}},4531:function(e,t){"use strict";t.default={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),i=!n[1],o=Number(n[0])==e,r=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==r&&11!=a?"one":2==r&&12!=a?"two":3==r&&13!=a?"few":"other":1==e&&i?"one":"other"}}},3444:function(e,t,n){"use strict";var i=n(2964),o=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),r=(!o&&Object.prototype.__defineGetter__,o?Object.defineProperty:function(e,t,n){"get"in n&&e.__defineGetter__?e.__defineGetter__(t,n.get):i.hop.call(e,t)&&!("value"in n)||(e[t]=n.value)}),a=Object.create||function(e,t){var n,o;function a(){}for(o in a.prototype=e,n=new a,t)i.hop.call(t,o)&&r(n,o,t[o]);return n};t.defineProperty=r,t.objCreate=a},9239:function(e,t,n){"use strict";var i=n(3913),o=n(4531);i.default.__addLocaleData(o.default),i.default.defaultLocale="en",t.Z=i.default},2964:function(e,t){"use strict";t.extend=function(e){var t,i,o,r,a=Array.prototype.slice.call(arguments,1);for(t=0,i=a.length;t<i;t+=1)if(o=a[t])for(r in o)n.call(o,r)&&(e[r]=o[r]);return e};var n=Object.prototype.hasOwnProperty;t.hop=n},3974:function(e,t,n){var i;function o(e){return 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},o(e)}e=n.nmd(e),function(){var r,a="Expected a function",s="__lodash_hash_undefined__",c="__lodash_placeholder__",l=16,u=32,f=64,d=128,p=256,h=1/0,g=9007199254740991,m=NaN,y=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",u],["partialRight",f],["rearg",p]],b="[object Arguments]",_="[object Array]",C="[object Boolean]",S="[object Date]",E="[object Error]",N="[object Function]",O="[object GeneratorFunction]",T="[object Map]",I="[object Number]",w="[object Object]",A="[object Promise]",k="[object RegExp]",D="[object Set]",P="[object String]",R="[object Symbol]",x="[object WeakMap]",F="[object ArrayBuffer]",L="[object DataView]",U="[object Float32Array]",j="[object Float64Array]",M="[object Int8Array]",W="[object Int16Array]",H="[object Int32Array]",q="[object Uint8Array]",B="[object Uint8ClampedArray]",V="[object Uint16Array]",G="[object Uint32Array]",z=/\b__p \+= '';/g,K=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,X=/&(?:amp|lt|gt|quot|#39);/g,J=/[&<>"']/g,$=RegExp(X.source),Q=RegExp(J.source),Z=/<%-([\s\S]+?)%>/g,ee=/<%([\s\S]+?)%>/g,te=/<%=([\s\S]+?)%>/g,ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ie=/^\w*$/,oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(re.source),se=/^\s+/,ce=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,fe=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ye=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,_e=/^0o[0-7]+$/i,Ce=/^(?:0|[1-9]\d*)$/,Se=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ee=/($^)/,Ne=/['\n\r\u2028\u2029\\]/g,Oe="\\ud800-\\udfff",Te="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ie="\\u2700-\\u27bf",we="a-z\\xdf-\\xf6\\xf8-\\xff",Ae="A-Z\\xc0-\\xd6\\xd8-\\xde",ke="\\ufe0e\\ufe0f",De="\\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",Pe="['’]",Re="["+Oe+"]",xe="["+De+"]",Fe="["+Te+"]",Le="\\d+",Ue="["+Ie+"]",je="["+we+"]",Me="[^"+Oe+De+Le+Ie+we+Ae+"]",We="\\ud83c[\\udffb-\\udfff]",He="[^"+Oe+"]",qe="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+Ae+"]",Ge="\\u200d",ze="(?:"+je+"|"+Me+")",Ke="(?:"+Ve+"|"+Me+")",Ye="(?:['’](?:d|ll|m|re|s|t|ve))?",Xe="(?:['’](?:D|LL|M|RE|S|T|VE))?",Je="(?:"+Fe+"|"+We+")"+"?",$e="["+ke+"]?",Qe=$e+Je+("(?:"+Ge+"(?:"+[He,qe,Be].join("|")+")"+$e+Je+")*"),Ze="(?:"+[Ue,qe,Be].join("|")+")"+Qe,et="(?:"+[He+Fe+"?",Fe,qe,Be,Re].join("|")+")",tt=RegExp(Pe,"g"),nt=RegExp(Fe,"g"),it=RegExp(We+"(?="+We+")|"+et+Qe,"g"),ot=RegExp([Ve+"?"+je+"+"+Ye+"(?="+[xe,Ve,"$"].join("|")+")",Ke+"+"+Xe+"(?="+[xe,Ve+ze,"$"].join("|")+")",Ve+"?"+ze+"+"+Ye,Ve+"+"+Xe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Le,Ze].join("|"),"g"),rt=RegExp("["+Ge+Oe+Te+ke+"]"),at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,st=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ct=-1,lt={};lt[U]=lt[j]=lt[M]=lt[W]=lt[H]=lt[q]=lt[B]=lt[V]=lt[G]=!0,lt[b]=lt[_]=lt[F]=lt[C]=lt[L]=lt[S]=lt[E]=lt[N]=lt[T]=lt[I]=lt[w]=lt[k]=lt[D]=lt[P]=lt[x]=!1;var ut={};ut[b]=ut[_]=ut[F]=ut[L]=ut[C]=ut[S]=ut[U]=ut[j]=ut[M]=ut[W]=ut[H]=ut[T]=ut[I]=ut[w]=ut[k]=ut[D]=ut[P]=ut[R]=ut[q]=ut[B]=ut[V]=ut[G]=!0,ut[E]=ut[N]=ut[x]=!1;var ft={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,pt=parseInt,ht="object"==(void 0===n.g?"undefined":o(n.g))&&n.g&&n.g.Object===Object&&n.g,gt="object"==("undefined"==typeof self?"undefined":o(self))&&self&&self.Object===Object&&self,mt=ht||gt||Function("return this")(),yt="object"==o(t)&&t&&!t.nodeType&&t,vt=yt&&"object"==o(e)&&e&&!e.nodeType&&e,bt=vt&&vt.exports===yt,_t=bt&&ht.process,Ct=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||_t&&_t.binding&&_t.binding("util")}catch(e){}}(),St=Ct&&Ct.isArrayBuffer,Et=Ct&&Ct.isDate,Nt=Ct&&Ct.isMap,Ot=Ct&&Ct.isRegExp,Tt=Ct&&Ct.isSet,It=Ct&&Ct.isTypedArray;function wt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function At(e,t,n,i){for(var o=-1,r=null==e?0:e.length;++o<r;){var a=e[o];t(i,a,n(a),e)}return i}function kt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function Dt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Pt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function Rt(e,t){for(var n=-1,i=null==e?0:e.length,o=0,r=[];++n<i;){var a=e[n];t(a,n,e)&&(r[o++]=a)}return r}function xt(e,t){return!!(null==e?0:e.length)&&Vt(e,t,0)>-1}function Ft(e,t,n){for(var i=-1,o=null==e?0:e.length;++i<o;)if(n(t,e[i]))return!0;return!1}function Lt(e,t){for(var n=-1,i=null==e?0:e.length,o=Array(i);++n<i;)o[n]=t(e[n],n,e);return o}function Ut(e,t){for(var n=-1,i=t.length,o=e.length;++n<i;)e[o+n]=t[n];return e}function jt(e,t,n,i){var o=-1,r=null==e?0:e.length;for(i&&r&&(n=e[++o]);++o<r;)n=t(n,e[o],o,e);return n}function Mt(e,t,n,i){var o=null==e?0:e.length;for(i&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Wt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var Ht=Yt("length");function qt(e,t,n){var i;return n(e,(function(e,n,o){if(t(e,n,o))return i=n,!1})),i}function Bt(e,t,n,i){for(var o=e.length,r=n+(i?1:-1);i?r--:++r<o;)if(t(e[r],r,e))return r;return-1}function Vt(e,t,n){return t==t?function(e,t,n){var i=n-1,o=e.length;for(;++i<o;)if(e[i]===t)return i;return-1}(e,t,n):Bt(e,zt,n)}function Gt(e,t,n,i){for(var o=n-1,r=e.length;++o<r;)if(i(e[o],t))return o;return-1}function zt(e){return e!=e}function Kt(e,t){var n=null==e?0:e.length;return n?$t(e,t)/n:m}function Yt(e){return function(t){return null==t?r:t[e]}}function Xt(e){return function(t){return null==e?r:e[t]}}function Jt(e,t,n,i,o){return o(e,(function(e,o,r){n=i?(i=!1,e):t(n,e,o,r)})),n}function $t(e,t){for(var n,i=-1,o=e.length;++i<o;){var a=t(e[i]);a!==r&&(n=n===r?a:n+a)}return n}function Qt(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Zt(e){return e?e.slice(0,yn(e)+1).replace(se,""):e}function en(e){return function(t){return e(t)}}function tn(e,t){return Lt(t,(function(t){return e[t]}))}function nn(e,t){return e.has(t)}function on(e,t){for(var n=-1,i=e.length;++n<i&&Vt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Vt(t,e[n],0)>-1;);return n}var an=Xt({"À":"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"}),sn=Xt({"&":"&","<":"<",">":">",'"':""","'":"'"});function cn(e){return"\\"+ft[e]}function ln(e){return rt.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function fn(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,i=e.length,o=0,r=[];++n<i;){var a=e[n];a!==t&&a!==c||(e[n]=c,r[o++]=n)}return r}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function gn(e){return ln(e)?function(e){var t=it.lastIndex=0;for(;it.test(e);)++t;return t}(e):Ht(e)}function mn(e){return ln(e)?function(e){return e.match(it)||[]}(e):function(e){return e.split("")}(e)}function yn(e){for(var t=e.length;t--&&ce.test(e.charAt(t)););return t}var vn=Xt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var bn=function e(t){var n,i=(t=null==t?mt:bn.defaults(mt.Object(),t,bn.pick(mt,st))).Array,ce=t.Date,Oe=t.Error,Te=t.Function,Ie=t.Math,we=t.Object,Ae=t.RegExp,ke=t.String,De=t.TypeError,Pe=i.prototype,Re=Te.prototype,xe=we.prototype,Fe=t["__core-js_shared__"],Le=Re.toString,Ue=xe.hasOwnProperty,je=0,Me=(n=/[^.]+$/.exec(Fe&&Fe.keys&&Fe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",We=xe.toString,He=Le.call(we),qe=mt._,Be=Ae("^"+Le.call(Ue).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=bt?t.Buffer:r,Ge=t.Symbol,ze=t.Uint8Array,Ke=Ve?Ve.allocUnsafe:r,Ye=fn(we.getPrototypeOf,we),Xe=we.create,Je=xe.propertyIsEnumerable,$e=Pe.splice,Qe=Ge?Ge.isConcatSpreadable:r,Ze=Ge?Ge.iterator:r,et=Ge?Ge.toStringTag:r,it=function(){try{var e=hr(we,"defineProperty");return e({},"",{}),e}catch(e){}}(),rt=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,ft=ce&&ce.now!==mt.Date.now&&ce.now,ht=t.setTimeout!==mt.setTimeout&&t.setTimeout,gt=Ie.ceil,yt=Ie.floor,vt=we.getOwnPropertySymbols,_t=Ve?Ve.isBuffer:r,Ct=t.isFinite,Ht=Pe.join,Xt=fn(we.keys,we),_n=Ie.max,Cn=Ie.min,Sn=ce.now,En=t.parseInt,Nn=Ie.random,On=Pe.reverse,Tn=hr(t,"DataView"),In=hr(t,"Map"),wn=hr(t,"Promise"),An=hr(t,"Set"),kn=hr(t,"WeakMap"),Dn=hr(we,"create"),Pn=kn&&new kn,Rn={},xn=Wr(Tn),Fn=Wr(In),Ln=Wr(wn),Un=Wr(An),jn=Wr(kn),Mn=Ge?Ge.prototype:r,Wn=Mn?Mn.valueOf:r,Hn=Mn?Mn.toString:r;function qn(e){if(is(e)&&!za(e)&&!(e instanceof zn)){if(e instanceof Gn)return e;if(Ue.call(e,"__wrapped__"))return Hr(e)}return new Gn(e)}var Bn=function(){function e(){}return function(t){if(!ns(t))return{};if(Xe)return Xe(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Vn(){}function Gn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function zn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Xn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Jn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Xn;++t<n;)this.add(e[t])}function $n(e){var t=this.__data__=new Yn(e);this.size=t.size}function Qn(e,t){var n=za(e),i=!n&&Ga(e),o=!n&&!i&&Ja(e),r=!n&&!i&&!o&&fs(e),a=n||i||o||r,s=a?Qt(e.length,ke):[],c=s.length;for(var l in e)!t&&!Ue.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||r&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Cr(l,c))||s.push(l);return s}function Zn(e){var t=e.length;return t?e[Ji(0,t-1)]:r}function ei(e,t){return Ur(Po(e),li(t,0,e.length))}function ti(e){return Ur(Po(e))}function ni(e,t,n){(n!==r&&!qa(e[t],n)||n===r&&!(t in e))&&si(e,t,n)}function ii(e,t,n){var i=e[t];Ue.call(e,t)&&qa(i,n)&&(n!==r||t in e)||si(e,t,n)}function oi(e,t){for(var n=e.length;n--;)if(qa(e[n][0],t))return n;return-1}function ri(e,t,n,i){return hi(e,(function(e,o,r){t(i,e,n(e),r)})),i}function ai(e,t){return e&&Ro(t,Rs(t),e)}function si(e,t,n){"__proto__"==t&&it?it(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ci(e,t){for(var n=-1,o=t.length,a=i(o),s=null==e;++n<o;)a[n]=s?r:ws(e,t[n]);return a}function li(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function ui(e,t,n,i,o,a){var s,c=1&t,l=2&t,u=4&t;if(n&&(s=o?n(e,i,o,a):n(e)),s!==r)return s;if(!ns(e))return e;var f=za(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ue.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Po(e,s)}else{var d=yr(e),p=d==N||d==O;if(Ja(e))return To(e,c);if(d==w||d==b||p&&!o){if(s=l||p?{}:br(e),!c)return l?function(e,t){return Ro(e,mr(e),t)}(e,function(e,t){return e&&Ro(t,xs(t),e)}(s,e)):function(e,t){return Ro(e,gr(e),t)}(e,ai(s,e))}else{if(!ut[d])return o?e:{};s=function(e,t,n){var i=e.constructor;switch(t){case F:return Io(e);case C:case S:return new i(+e);case L:return function(e,t){var n=t?Io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case U:case j:case M:case W:case H:case q:case B:case V:case G:return wo(e,n);case T:return new i;case I:case P:return new i(e);case k:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case D:return new i;case R:return o=e,Wn?we(Wn.call(o)):{}}var o}(e,d,c)}}a||(a=new $n);var h=a.get(e);if(h)return h;a.set(e,s),cs(e)?e.forEach((function(i){s.add(ui(i,t,n,i,e,a))})):os(e)&&e.forEach((function(i,o){s.set(o,ui(i,t,n,o,e,a))}));var g=f?r:(u?l?sr:ar:l?xs:Rs)(e);return kt(g||e,(function(i,o){g&&(i=e[o=i]),ii(s,o,ui(i,t,n,o,e,a))})),s}function fi(e,t,n){var i=n.length;if(null==e)return!i;for(e=we(e);i--;){var o=n[i],a=t[o],s=e[o];if(s===r&&!(o in e)||!a(s))return!1}return!0}function di(e,t,n){if("function"!=typeof e)throw new De(a);return Rr((function(){e.apply(r,n)}),t)}function pi(e,t,n,i){var o=-1,r=xt,a=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=Lt(t,en(n))),i?(r=Ft,a=!1):t.length>=200&&(r=nn,a=!1,t=new Jn(t));e:for(;++o<s;){var u=e[o],f=null==n?u:n(u);if(u=i||0!==u?u:0,a&&f==f){for(var d=l;d--;)if(t[d]===f)continue e;c.push(u)}else r(t,f,i)||c.push(u)}return c}qn.templateSettings={escape:Z,evaluate:ee,interpolate:te,variable:"",imports:{_:qn}},qn.prototype=Vn.prototype,qn.prototype.constructor=qn,Gn.prototype=Bn(Vn.prototype),Gn.prototype.constructor=Gn,zn.prototype=Bn(Vn.prototype),zn.prototype.constructor=zn,Kn.prototype.clear=function(){this.__data__=Dn?Dn(null):{},this.size=0},Kn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Kn.prototype.get=function(e){var t=this.__data__;if(Dn){var n=t[e];return n===s?r:n}return Ue.call(t,e)?t[e]:r},Kn.prototype.has=function(e){var t=this.__data__;return Dn?t[e]!==r:Ue.call(t,e)},Kn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Dn&&t===r?s:t,this},Yn.prototype.clear=function(){this.__data__=[],this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=oi(t,e);return!(n<0)&&(n==t.length-1?t.pop():$e.call(t,n,1),--this.size,!0)},Yn.prototype.get=function(e){var t=this.__data__,n=oi(t,e);return n<0?r:t[n][1]},Yn.prototype.has=function(e){return oi(this.__data__,e)>-1},Yn.prototype.set=function(e,t){var n=this.__data__,i=oi(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Xn.prototype.clear=function(){this.size=0,this.__data__={hash:new Kn,map:new(In||Yn),string:new Kn}},Xn.prototype.delete=function(e){var t=dr(this,e).delete(e);return this.size-=t?1:0,t},Xn.prototype.get=function(e){return dr(this,e).get(e)},Xn.prototype.has=function(e){return dr(this,e).has(e)},Xn.prototype.set=function(e,t){var n=dr(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Jn.prototype.add=Jn.prototype.push=function(e){return this.__data__.set(e,s),this},Jn.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.clear=function(){this.__data__=new Yn,this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$n.prototype.get=function(e){return this.__data__.get(e)},$n.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Yn){var i=n.__data__;if(!In||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xn(i)}return n.set(e,t),this.size=n.size,this};var hi=Lo(Si),gi=Lo(Ei,!0);function mi(e,t){var n=!0;return hi(e,(function(e,i,o){return n=!!t(e,i,o)})),n}function yi(e,t,n){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(c===r?s==s&&!us(s):n(s,c)))var c=s,l=a}return l}function vi(e,t){var n=[];return hi(e,(function(e,i,o){t(e,i,o)&&n.push(e)})),n}function bi(e,t,n,i,o){var r=-1,a=e.length;for(n||(n=_r),o||(o=[]);++r<a;){var s=e[r];t>0&&n(s)?t>1?bi(s,t-1,n,i,o):Ut(o,s):i||(o[o.length]=s)}return o}var _i=Uo(),Ci=Uo(!0);function Si(e,t){return e&&_i(e,t,Rs)}function Ei(e,t){return e&&Ci(e,t,Rs)}function Ni(e,t){return Rt(t,(function(t){return Za(e[t])}))}function Oi(e,t){for(var n=0,i=(t=So(t,e)).length;null!=e&&n<i;)e=e[Mr(t[n++])];return n&&n==i?e:r}function Ti(e,t,n){var i=t(e);return za(e)?i:Ut(i,n(e))}function Ii(e){return null==e?e===r?"[object Undefined]":"[object Null]":et&&et in we(e)?function(e){var t=Ue.call(e,et),n=e[et];try{e[et]=r;var i=!0}catch(e){}var o=We.call(e);i&&(t?e[et]=n:delete e[et]);return o}(e):function(e){return We.call(e)}(e)}function wi(e,t){return e>t}function Ai(e,t){return null!=e&&Ue.call(e,t)}function ki(e,t){return null!=e&&t in we(e)}function Di(e,t,n){for(var o=n?Ft:xt,a=e[0].length,s=e.length,c=s,l=i(s),u=1/0,f=[];c--;){var d=e[c];c&&t&&(d=Lt(d,en(t))),u=Cn(d.length,u),l[c]=!n&&(t||a>=120&&d.length>=120)?new Jn(c&&d):r}d=e[0];var p=-1,h=l[0];e:for(;++p<a&&f.length<u;){var g=d[p],m=t?t(g):g;if(g=n||0!==g?g:0,!(h?nn(h,m):o(f,m,n))){for(c=s;--c;){var y=l[c];if(!(y?nn(y,m):o(e[c],m,n)))continue e}h&&h.push(m),f.push(g)}}return f}function Pi(e,t,n){var i=null==(e=kr(e,t=So(t,e)))?e:e[Mr(Qr(t))];return null==i?r:wt(i,e,n)}function Ri(e){return is(e)&&Ii(e)==b}function xi(e,t,n,i,o){return e===t||(null==e||null==t||!is(e)&&!is(t)?e!=e&&t!=t:function(e,t,n,i,o,a){var s=za(e),c=za(t),l=s?_:yr(e),u=c?_:yr(t),f=(l=l==b?w:l)==w,d=(u=u==b?w:u)==w,p=l==u;if(p&&Ja(e)){if(!Ja(t))return!1;s=!0,f=!1}if(p&&!f)return a||(a=new $n),s||fs(e)?or(e,t,n,i,o,a):function(e,t,n,i,o,r,a){switch(n){case L:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case F:return!(e.byteLength!=t.byteLength||!r(new ze(e),new ze(t)));case C:case S:case I:return qa(+e,+t);case E:return e.name==t.name&&e.message==t.message;case k:case P:return e==t+"";case T:var s=un;case D:var c=1&i;if(s||(s=pn),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;i|=2,a.set(e,t);var u=or(s(e),s(t),i,o,r,a);return a.delete(e),u;case R:if(Wn)return Wn.call(e)==Wn.call(t)}return!1}(e,t,l,n,i,o,a);if(!(1&n)){var h=f&&Ue.call(e,"__wrapped__"),g=d&&Ue.call(t,"__wrapped__");if(h||g){var m=h?e.value():e,y=g?t.value():t;return a||(a=new $n),o(m,y,n,i,a)}}if(!p)return!1;return a||(a=new $n),function(e,t,n,i,o,a){var s=1&n,c=ar(e),l=c.length,u=ar(t),f=u.length;if(l!=f&&!s)return!1;var d=l;for(;d--;){var p=c[d];if(!(s?p in t:Ue.call(t,p)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var m=!0;a.set(e,t),a.set(t,e);var y=s;for(;++d<l;){var v=e[p=c[d]],b=t[p];if(i)var _=s?i(b,v,p,t,e,a):i(v,b,p,e,t,a);if(!(_===r?v===b||o(v,b,n,i,a):_)){m=!1;break}y||(y="constructor"==p)}if(m&&!y){var C=e.constructor,S=t.constructor;C==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof C&&C instanceof C&&"function"==typeof S&&S instanceof S||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,n,i,o,a)}(e,t,n,i,xi,o))}function Fi(e,t,n,i){var o=n.length,a=o,s=!i;if(null==e)return!a;for(e=we(e);o--;){var c=n[o];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<a;){var l=(c=n[o])[0],u=e[l],f=c[1];if(s&&c[2]){if(u===r&&!(l in e))return!1}else{var d=new $n;if(i)var p=i(u,f,l,e,t,d);if(!(p===r?xi(f,u,3,i,d):p))return!1}}return!0}function Li(e){return!(!ns(e)||(t=e,Me&&Me in t))&&(Za(e)?Be:be).test(Wr(e));var t}function Ui(e){return"function"==typeof e?e:null==e?rc:"object"==o(e)?za(e)?Bi(e[0],e[1]):qi(e):hc(e)}function ji(e){if(!Tr(e))return Xt(e);var t=[];for(var n in we(e))Ue.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Mi(e){if(!ns(e))return function(e){var t=[];if(null!=e)for(var n in we(e))t.push(n);return t}(e);var t=Tr(e),n=[];for(var i in e)("constructor"!=i||!t&&Ue.call(e,i))&&n.push(i);return n}function Wi(e,t){return e<t}function Hi(e,t){var n=-1,o=Ya(e)?i(e.length):[];return hi(e,(function(e,i,r){o[++n]=t(e,i,r)})),o}function qi(e){var t=pr(e);return 1==t.length&&t[0][2]?wr(t[0][0],t[0][1]):function(n){return n===e||Fi(n,e,t)}}function Bi(e,t){return Er(e)&&Ir(t)?wr(Mr(e),t):function(n){var i=ws(n,e);return i===r&&i===t?As(n,e):xi(t,i,3)}}function Vi(e,t,n,i,o){e!==t&&_i(t,(function(a,s){if(o||(o=new $n),ns(a))!function(e,t,n,i,o,a,s){var c=Dr(e,n),l=Dr(t,n),u=s.get(l);if(u)return void ni(e,n,u);var f=a?a(c,l,n+"",e,t,s):r,d=f===r;if(d){var p=za(l),h=!p&&Ja(l),g=!p&&!h&&fs(l);f=l,p||h||g?za(c)?f=c:Xa(c)?f=Po(c):h?(d=!1,f=To(l,!0)):g?(d=!1,f=wo(l,!0)):f=[]:as(l)||Ga(l)?(f=c,Ga(c)?f=bs(c):ns(c)&&!Za(c)||(f=br(l))):d=!1}d&&(s.set(l,f),o(f,l,i,a,s),s.delete(l));ni(e,n,f)}(e,t,s,n,Vi,i,o);else{var c=i?i(Dr(e,s),a,s+"",e,t,o):r;c===r&&(c=a),ni(e,s,c)}}),xs)}function Gi(e,t){var n=e.length;if(n)return Cr(t+=t<0?n:0,n)?e[t]:r}function zi(e,t,n){t=t.length?Lt(t,(function(e){return za(e)?function(t){return Oi(t,1===e.length?e[0]:e)}:e})):[rc];var i=-1;t=Lt(t,en(fr()));var o=Hi(e,(function(e,n,o){var r=Lt(t,(function(t){return t(e)}));return{criteria:r,index:++i,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){var i=-1,o=e.criteria,r=t.criteria,a=o.length,s=n.length;for(;++i<a;){var c=Ao(o[i],r[i]);if(c)return i>=s?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}))}function Ki(e,t,n){for(var i=-1,o=t.length,r={};++i<o;){var a=t[i],s=Oi(e,a);n(s,a)&&to(r,So(a,e),s)}return r}function Yi(e,t,n,i){var o=i?Gt:Vt,r=-1,a=t.length,s=e;for(e===t&&(t=Po(t)),n&&(s=Lt(e,en(n)));++r<a;)for(var c=0,l=t[r],u=n?n(l):l;(c=o(s,u,c,i))>-1;)s!==e&&$e.call(s,c,1),$e.call(e,c,1);return e}function Xi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var o=t[n];if(n==i||o!==r){var r=o;Cr(o)?$e.call(e,o,1):ho(e,o)}}return e}function Ji(e,t){return e+yt(Nn()*(t-e+1))}function $i(e,t){var n="";if(!e||t<1||t>g)return n;do{t%2&&(n+=e),(t=yt(t/2))&&(e+=e)}while(t);return n}function Qi(e,t){return xr(Ar(e,t,rc),e+"")}function Zi(e){return Zn(qs(e))}function eo(e,t){var n=qs(e);return Ur(n,li(t,0,n.length))}function to(e,t,n,i){if(!ns(e))return e;for(var o=-1,a=(t=So(t,e)).length,s=a-1,c=e;null!=c&&++o<a;){var l=Mr(t[o]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=s){var f=c[l];(u=i?i(f,l,c):r)===r&&(u=ns(f)?f:Cr(t[o+1])?[]:{})}ii(c,l,u),c=c[l]}return e}var no=Pn?function(e,t){return Pn.set(e,t),e}:rc,io=it?function(e,t){return it(e,"toString",{configurable:!0,enumerable:!1,value:nc(t),writable:!0})}:rc;function oo(e){return Ur(qs(e))}function ro(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var a=i(r);++o<r;)a[o]=e[o+t];return a}function ao(e,t){var n;return hi(e,(function(e,i,o){return!(n=t(e,i,o))})),!!n}function so(e,t,n){var i=0,o=null==e?i:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;i<o;){var r=i+o>>>1,a=e[r];null!==a&&!us(a)&&(n?a<=t:a<t)?i=r+1:o=r}return o}return co(e,t,rc,n)}function co(e,t,n,i){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,c=null===t,l=us(t),u=t===r;o<a;){var f=yt((o+a)/2),d=n(e[f]),p=d!==r,h=null===d,g=d==d,m=us(d);if(s)var y=i||g;else y=u?g&&(i||p):c?g&&p&&(i||!h):l?g&&p&&!h&&(i||!m):!h&&!m&&(i?d<=t:d<t);y?o=f+1:a=f}return Cn(a,4294967294)}function lo(e,t){for(var n=-1,i=e.length,o=0,r=[];++n<i;){var a=e[n],s=t?t(a):a;if(!n||!qa(s,c)){var c=s;r[o++]=0===a?0:a}}return r}function uo(e){return"number"==typeof e?e:us(e)?m:+e}function fo(e){if("string"==typeof e)return e;if(za(e))return Lt(e,fo)+"";if(us(e))return Hn?Hn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function po(e,t,n){var i=-1,o=xt,r=e.length,a=!0,s=[],c=s;if(n)a=!1,o=Ft;else if(r>=200){var l=t?null:Qo(e);if(l)return pn(l);a=!1,o=nn,c=new Jn}else c=t?[]:s;e:for(;++i<r;){var u=e[i],f=t?t(u):u;if(u=n||0!==u?u:0,a&&f==f){for(var d=c.length;d--;)if(c[d]===f)continue e;t&&c.push(f),s.push(u)}else o(c,f,n)||(c!==s&&c.push(f),s.push(u))}return s}function ho(e,t){return null==(e=kr(e,t=So(t,e)))||delete e[Mr(Qr(t))]}function go(e,t,n,i){return to(e,t,n(Oi(e,t)),i)}function mo(e,t,n,i){for(var o=e.length,r=i?o:-1;(i?r--:++r<o)&&t(e[r],r,e););return n?ro(e,i?0:r,i?r+1:o):ro(e,i?r+1:0,i?o:r)}function yo(e,t){var n=e;return n instanceof zn&&(n=n.value()),jt(t,(function(e,t){return t.func.apply(t.thisArg,Ut([e],t.args))}),n)}function vo(e,t,n){var o=e.length;if(o<2)return o?po(e[0]):[];for(var r=-1,a=i(o);++r<o;)for(var s=e[r],c=-1;++c<o;)c!=r&&(a[r]=pi(a[r]||s,e[c],t,n));return po(bi(a,1),t,n)}function bo(e,t,n){for(var i=-1,o=e.length,a=t.length,s={};++i<o;){var c=i<a?t[i]:r;n(s,e[i],c)}return s}function _o(e){return Xa(e)?e:[]}function Co(e){return"function"==typeof e?e:rc}function So(e,t){return za(e)?e:Er(e,t)?[e]:jr(_s(e))}var Eo=Qi;function No(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:ro(e,t,n)}var Oo=rt||function(e){return mt.clearTimeout(e)};function To(e,t){if(t)return e.slice();var n=e.length,i=Ke?Ke(n):new e.constructor(n);return e.copy(i),i}function Io(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function wo(e,t){var n=t?Io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ao(e,t){if(e!==t){var n=e!==r,i=null===e,o=e==e,a=us(e),s=t!==r,c=null===t,l=t==t,u=us(t);if(!c&&!u&&!a&&e>t||a&&s&&l&&!c&&!u||i&&s&&l||!n&&l||!o)return 1;if(!i&&!a&&!u&&e<t||u&&n&&o&&!i&&!a||c&&n&&o||!s&&o||!l)return-1}return 0}function ko(e,t,n,o){for(var r=-1,a=e.length,s=n.length,c=-1,l=t.length,u=_n(a-s,0),f=i(l+u),d=!o;++c<l;)f[c]=t[c];for(;++r<s;)(d||r<a)&&(f[n[r]]=e[r]);for(;u--;)f[c++]=e[r++];return f}function Do(e,t,n,o){for(var r=-1,a=e.length,s=-1,c=n.length,l=-1,u=t.length,f=_n(a-c,0),d=i(f+u),p=!o;++r<f;)d[r]=e[r];for(var h=r;++l<u;)d[h+l]=t[l];for(;++s<c;)(p||r<a)&&(d[h+n[s]]=e[r++]);return d}function Po(e,t){var n=-1,o=e.length;for(t||(t=i(o));++n<o;)t[n]=e[n];return t}function Ro(e,t,n,i){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var c=t[a],l=i?i(n[c],e[c],c,n,e):r;l===r&&(l=e[c]),o?si(n,c,l):ii(n,c,l)}return n}function xo(e,t){return function(n,i){var o=za(n)?At:ri,r=t?t():{};return o(n,e,fr(i,2),r)}}function Fo(e){return Qi((function(t,n){var i=-1,o=n.length,a=o>1?n[o-1]:r,s=o>2?n[2]:r;for(a=e.length>3&&"function"==typeof a?(o--,a):r,s&&Sr(n[0],n[1],s)&&(a=o<3?r:a,o=1),t=we(t);++i<o;){var c=n[i];c&&e(t,c,i,a)}return t}))}function Lo(e,t){return function(n,i){if(null==n)return n;if(!Ya(n))return e(n,i);for(var o=n.length,r=t?o:-1,a=we(n);(t?r--:++r<o)&&!1!==i(a[r],r,a););return n}}function Uo(e){return function(t,n,i){for(var o=-1,r=we(t),a=i(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(r[c],c,r))break}return t}}function jo(e){return function(t){var n=ln(t=_s(t))?mn(t):r,i=n?n[0]:t.charAt(0),o=n?No(n,1).join(""):t.slice(1);return i[e]()+o}}function Mo(e){return function(t){return jt(Zs(Gs(t).replace(tt,"")),e,"")}}function Wo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),i=e.apply(n,t);return ns(i)?i:n}}function Ho(e){return function(t,n,i){var o=we(t);if(!Ya(t)){var a=fr(n,3);t=Rs(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,i);return s>-1?o[a?t[s]:s]:r}}function qo(e){return rr((function(t){var n=t.length,i=n,o=Gn.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if("function"!=typeof s)throw new De(a);if(o&&!c&&"wrapper"==lr(s))var c=new Gn([],!0)}for(i=c?i:n;++i<n;){var l=lr(s=t[i]),u="wrapper"==l?cr(s):r;c=u&&Nr(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[lr(u[0])].apply(c,u[3]):1==s.length&&Nr(s)?c[l]():c.thru(s)}return function(){var e=arguments,i=e[0];if(c&&1==e.length&&za(i))return c.plant(i).value();for(var o=0,r=n?t[o].apply(this,e):i;++o<n;)r=t[o].call(this,r);return r}}))}function Bo(e,t,n,o,a,s,c,l,u,f){var p=t&d,h=1&t,g=2&t,m=24&t,y=512&t,v=g?r:Wo(e);return function d(){for(var b=arguments.length,_=i(b),C=b;C--;)_[C]=arguments[C];if(m)var S=ur(d),E=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}(_,S);if(o&&(_=ko(_,o,a,m)),s&&(_=Do(_,s,c,m)),b-=E,m&&b<f){var N=dn(_,S);return Jo(e,t,Bo,d.placeholder,n,_,N,l,u,f-b)}var O=h?n:this,T=g?O[e]:e;return b=_.length,l?_=function(e,t){var n=e.length,i=Cn(t.length,n),o=Po(e);for(;i--;){var a=t[i];e[i]=Cr(a,n)?o[a]:r}return e}(_,l):y&&b>1&&_.reverse(),p&&u<b&&(_.length=u),this&&this!==mt&&this instanceof d&&(T=v||Wo(T)),T.apply(O,_)}}function Vo(e,t){return function(n,i){return function(e,t,n,i){return Si(e,(function(e,o,r){t(i,n(e),o,r)})),i}(n,e,t(i),{})}}function Go(e,t){return function(n,i){var o;if(n===r&&i===r)return t;if(n!==r&&(o=n),i!==r){if(o===r)return i;"string"==typeof n||"string"==typeof i?(n=fo(n),i=fo(i)):(n=uo(n),i=uo(i)),o=e(n,i)}return o}}function zo(e){return rr((function(t){return t=Lt(t,en(fr())),Qi((function(n){var i=this;return e(t,(function(e){return wt(e,i,n)}))}))}))}function Ko(e,t){var n=(t=t===r?" ":fo(t)).length;if(n<2)return n?$i(t,e):t;var i=$i(t,gt(e/gn(t)));return ln(t)?No(mn(i),0,e).join(""):i.slice(0,e)}function Yo(e){return function(t,n,o){return o&&"number"!=typeof o&&Sr(t,n,o)&&(n=o=r),t=gs(t),n===r?(n=t,t=0):n=gs(n),function(e,t,n,o){for(var r=-1,a=_n(gt((t-e)/(n||1)),0),s=i(a);a--;)s[o?a:++r]=e,e+=n;return s}(t,n,o=o===r?t<n?1:-1:gs(o),e)}}function Xo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function Jo(e,t,n,i,o,a,s,c,l,d){var p=8&t;t|=p?u:f,4&(t&=~(p?f:u))||(t&=-4);var h=[e,t,o,p?a:r,p?s:r,p?r:a,p?r:s,c,l,d],g=n.apply(r,h);return Nr(e)&&Pr(g,h),g.placeholder=i,Fr(g,e,t)}function $o(e){var t=Ie[e];return function(e,n){if(e=vs(e),(n=null==n?0:Cn(ms(n),292))&&Ct(e)){var i=(_s(e)+"e").split("e");return+((i=(_s(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Qo=An&&1/pn(new An([,-0]))[1]==h?function(e){return new An(e)}:uc;function Zo(e){return function(t){var n=yr(t);return n==T?un(t):n==D?hn(t):function(e,t){return Lt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function er(e,t,n,o,s,h,g,m){var y=2&t;if(!y&&"function"!=typeof e)throw new De(a);var v=o?o.length:0;if(v||(t&=-97,o=s=r),g=g===r?g:_n(ms(g),0),m=m===r?m:ms(m),v-=s?s.length:0,t&f){var b=o,_=s;o=s=r}var C=y?r:cr(e),S=[e,t,n,o,s,b,_,h,g,m];if(C&&function(e,t){var n=e[1],i=t[1],o=n|i,r=o<131,a=i==d&&8==n||i==d&&n==p&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!r&&!a)return e;1&i&&(e[2]=t[2],o|=1&n?0:4);var s=t[3];if(s){var l=e[3];e[3]=l?ko(l,s,t[4]):s,e[4]=l?dn(e[3],c):t[4]}(s=t[5])&&(l=e[5],e[5]=l?Do(l,s,t[6]):s,e[6]=l?dn(e[5],c):t[6]);(s=t[7])&&(e[7]=s);i&d&&(e[8]=null==e[8]?t[8]:Cn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(S,C),e=S[0],t=S[1],n=S[2],o=S[3],s=S[4],!(m=S[9]=S[9]===r?y?0:e.length:_n(S[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||t==l?function(e,t,n){var o=Wo(e);return function a(){for(var s=arguments.length,c=i(s),l=s,u=ur(a);l--;)c[l]=arguments[l];var f=s<3&&c[0]!==u&&c[s-1]!==u?[]:dn(c,u);return(s-=f.length)<n?Jo(e,t,Bo,a.placeholder,r,c,f,r,r,n-s):wt(this&&this!==mt&&this instanceof a?o:e,this,c)}}(e,t,m):t!=u&&33!=t||s.length?Bo.apply(r,S):function(e,t,n,o){var r=1&t,a=Wo(e);return function t(){for(var s=-1,c=arguments.length,l=-1,u=o.length,f=i(u+c),d=this&&this!==mt&&this instanceof t?a:e;++l<u;)f[l]=o[l];for(;c--;)f[l++]=arguments[++s];return wt(d,r?n:this,f)}}(e,t,n,o);else var E=function(e,t,n){var i=1&t,o=Wo(e);return function t(){return(this&&this!==mt&&this instanceof t?o:e).apply(i?n:this,arguments)}}(e,t,n);return Fr((C?no:Pr)(E,S),e,t)}function tr(e,t,n,i){return e===r||qa(e,xe[n])&&!Ue.call(i,n)?t:e}function nr(e,t,n,i,o,a){return ns(e)&&ns(t)&&(a.set(t,e),Vi(e,t,r,nr,a),a.delete(t)),e}function ir(e){return as(e)?r:e}function or(e,t,n,i,o,a){var s=1&n,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var d=-1,p=!0,h=2&n?new Jn:r;for(a.set(e,t),a.set(t,e);++d<c;){var g=e[d],m=t[d];if(i)var y=s?i(m,g,d,t,e,a):i(g,m,d,e,t,a);if(y!==r){if(y)continue;p=!1;break}if(h){if(!Wt(t,(function(e,t){if(!nn(h,t)&&(g===e||o(g,e,n,i,a)))return h.push(t)}))){p=!1;break}}else if(g!==m&&!o(g,m,n,i,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function rr(e){return xr(Ar(e,r,Kr),e+"")}function ar(e){return Ti(e,Rs,gr)}function sr(e){return Ti(e,xs,mr)}var cr=Pn?function(e){return Pn.get(e)}:uc;function lr(e){for(var t=e.name+"",n=Rn[t],i=Ue.call(Rn,t)?n.length:0;i--;){var o=n[i],r=o.func;if(null==r||r==e)return o.name}return t}function ur(e){return(Ue.call(qn,"placeholder")?qn:e).placeholder}function fr(){var e=qn.iteratee||ac;return e=e===ac?Ui:e,arguments.length?e(arguments[0],arguments[1]):e}function dr(e,t){var n,i,r=e.__data__;return("string"==(i=o(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function pr(e){for(var t=Rs(e),n=t.length;n--;){var i=t[n],o=e[i];t[n]=[i,o,Ir(o)]}return t}function hr(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return Li(n)?n:r}var gr=vt?function(e){return null==e?[]:(e=we(e),Rt(vt(e),(function(t){return Je.call(e,t)})))}:yc,mr=vt?function(e){for(var t=[];e;)Ut(t,gr(e)),e=Ye(e);return t}:yc,yr=Ii;function vr(e,t,n){for(var i=-1,o=(t=So(t,e)).length,r=!1;++i<o;){var a=Mr(t[i]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}return r||++i!=o?r:!!(o=null==e?0:e.length)&&ts(o)&&Cr(a,o)&&(za(e)||Ga(e))}function br(e){return"function"!=typeof e.constructor||Tr(e)?{}:Bn(Ye(e))}function _r(e){return za(e)||Ga(e)||!!(Qe&&e&&e[Qe])}function Cr(e,t){var n=o(e);return!!(t=null==t?g:t)&&("number"==n||"symbol"!=n&&Ce.test(e))&&e>-1&&e%1==0&&e<t}function Sr(e,t,n){if(!ns(n))return!1;var i=o(t);return!!("number"==i?Ya(n)&&Cr(t,n.length):"string"==i&&t in n)&&qa(n[t],e)}function Er(e,t){if(za(e))return!1;var n=o(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!us(e))||(ie.test(e)||!ne.test(e)||null!=t&&e in we(t))}function Nr(e){var t=lr(e),n=qn[t];if("function"!=typeof n||!(t in zn.prototype))return!1;if(e===n)return!0;var i=cr(n);return!!i&&e===i[0]}(Tn&&yr(new Tn(new ArrayBuffer(1)))!=L||In&&yr(new In)!=T||wn&&yr(wn.resolve())!=A||An&&yr(new An)!=D||kn&&yr(new kn)!=x)&&(yr=function(e){var t=Ii(e),n=t==w?e.constructor:r,i=n?Wr(n):"";if(i)switch(i){case xn:return L;case Fn:return T;case Ln:return A;case Un:return D;case jn:return x}return t});var Or=Fe?Za:vc;function Tr(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||xe)}function Ir(e){return e==e&&!ns(e)}function wr(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==r||e in we(n)))}}function Ar(e,t,n){return t=_n(t===r?e.length-1:t,0),function(){for(var o=arguments,r=-1,a=_n(o.length-t,0),s=i(a);++r<a;)s[r]=o[t+r];r=-1;for(var c=i(t+1);++r<t;)c[r]=o[r];return c[t]=n(s),wt(e,this,c)}}function kr(e,t){return t.length<2?e:Oi(e,ro(t,0,-1))}function Dr(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Pr=Lr(no),Rr=ht||function(e,t){return mt.setTimeout(e,t)},xr=Lr(io);function Fr(e,t,n){var i=t+"";return xr(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return kt(v,(function(n){var i="_."+n[0];t&n[1]&&!xt(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(fe):[]}(i),n)))}function Lr(e){var t=0,n=0;return function(){var i=Sn(),o=16-(i-n);if(n=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Ur(e,t){var n=-1,i=e.length,o=i-1;for(t=t===r?i:t;++n<t;){var a=Ji(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var jr=function(e){var t=La(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(oe,(function(e,n,i,o){t.push(i?o.replace(he,"$1"):n||e)})),t}));function Mr(e){if("string"==typeof e||us(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Wr(e){if(null!=e){try{return Le.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Hr(e){if(e instanceof zn)return e.clone();var t=new Gn(e.__wrapped__,e.__chain__);return t.__actions__=Po(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var qr=Qi((function(e,t){return Xa(e)?pi(e,bi(t,1,Xa,!0)):[]})),Br=Qi((function(e,t){var n=Qr(t);return Xa(n)&&(n=r),Xa(e)?pi(e,bi(t,1,Xa,!0),fr(n,2)):[]})),Vr=Qi((function(e,t){var n=Qr(t);return Xa(n)&&(n=r),Xa(e)?pi(e,bi(t,1,Xa,!0),r,n):[]}));function Gr(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=null==n?0:ms(n);return o<0&&(o=_n(i+o,0)),Bt(e,fr(t,3),o)}function zr(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return n!==r&&(o=ms(n),o=n<0?_n(i+o,0):Cn(o,i-1)),Bt(e,fr(t,3),o,!0)}function Kr(e){return(null==e?0:e.length)?bi(e,1):[]}function Yr(e){return e&&e.length?e[0]:r}var Xr=Qi((function(e){var t=Lt(e,_o);return t.length&&t[0]===e[0]?Di(t):[]})),Jr=Qi((function(e){var t=Qr(e),n=Lt(e,_o);return t===Qr(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Di(n,fr(t,2)):[]})),$r=Qi((function(e){var t=Qr(e),n=Lt(e,_o);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?Di(n,r,t):[]}));function Qr(e){var t=null==e?0:e.length;return t?e[t-1]:r}var Zr=Qi(ea);function ea(e,t){return e&&e.length&&t&&t.length?Yi(e,t):e}var ta=rr((function(e,t){var n=null==e?0:e.length,i=ci(e,t);return Xi(e,Lt(t,(function(e){return Cr(e,n)?+e:e})).sort(Ao)),i}));function na(e){return null==e?e:On.call(e)}var ia=Qi((function(e){return po(bi(e,1,Xa,!0))})),oa=Qi((function(e){var t=Qr(e);return Xa(t)&&(t=r),po(bi(e,1,Xa,!0),fr(t,2))})),ra=Qi((function(e){var t=Qr(e);return t="function"==typeof t?t:r,po(bi(e,1,Xa,!0),r,t)}));function aa(e){if(!e||!e.length)return[];var t=0;return e=Rt(e,(function(e){if(Xa(e))return t=_n(e.length,t),!0})),Qt(t,(function(t){return Lt(e,Yt(t))}))}function sa(e,t){if(!e||!e.length)return[];var n=aa(e);return null==t?n:Lt(n,(function(e){return wt(t,r,e)}))}var ca=Qi((function(e,t){return Xa(e)?pi(e,t):[]})),la=Qi((function(e){return vo(Rt(e,Xa))})),ua=Qi((function(e){var t=Qr(e);return Xa(t)&&(t=r),vo(Rt(e,Xa),fr(t,2))})),fa=Qi((function(e){var t=Qr(e);return t="function"==typeof t?t:r,vo(Rt(e,Xa),r,t)})),da=Qi(aa);var pa=Qi((function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,sa(e,n)}));function ha(e){var t=qn(e);return t.__chain__=!0,t}function ga(e,t){return t(e)}var ma=rr((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return ci(t,e)};return!(t>1||this.__actions__.length)&&i instanceof zn&&Cr(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:ga,args:[o],thisArg:r}),new Gn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(r),e}))):this.thru(o)}));var ya=xo((function(e,t,n){Ue.call(e,n)?++e[n]:si(e,n,1)}));var va=Ho(Gr),ba=Ho(zr);function _a(e,t){return(za(e)?kt:hi)(e,fr(t,3))}function Ca(e,t){return(za(e)?Dt:gi)(e,fr(t,3))}var Sa=xo((function(e,t,n){Ue.call(e,n)?e[n].push(t):si(e,n,[t])}));var Ea=Qi((function(e,t,n){var o=-1,r="function"==typeof t,a=Ya(e)?i(e.length):[];return hi(e,(function(e){a[++o]=r?wt(t,e,n):Pi(e,t,n)})),a})),Na=xo((function(e,t,n){si(e,n,t)}));function Oa(e,t){return(za(e)?Lt:Hi)(e,fr(t,3))}var Ta=xo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ia=Qi((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Sr(e,t[0],t[1])?t=[]:n>2&&Sr(t[0],t[1],t[2])&&(t=[t[0]]),zi(e,bi(t,1),[])})),wa=ft||function(){return mt.Date.now()};function Aa(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,er(e,d,r,r,r,r,t)}function ka(e,t){var n;if("function"!=typeof t)throw new De(a);return e=ms(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Da=Qi((function(e,t,n){var i=1;if(n.length){var o=dn(n,ur(Da));i|=u}return er(e,i,t,n,o)})),Pa=Qi((function(e,t,n){var i=3;if(n.length){var o=dn(n,ur(Pa));i|=u}return er(t,i,e,n,o)}));function Ra(e,t,n){var i,o,s,c,l,u,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new De(a);function g(t){var n=i,a=o;return i=o=r,f=t,c=e.apply(a,n)}function m(e){var n=e-u;return u===r||n>=t||n<0||p&&e-f>=s}function y(){var e=wa();if(m(e))return v(e);l=Rr(y,function(e){var n=t-(e-u);return p?Cn(n,s-(e-f)):n}(e))}function v(e){return l=r,h&&i?g(e):(i=o=r,c)}function b(){var e=wa(),n=m(e);if(i=arguments,o=this,u=e,n){if(l===r)return function(e){return f=e,l=Rr(y,t),d?g(e):c}(u);if(p)return Oo(l),l=Rr(y,t),g(u)}return l===r&&(l=Rr(y,t)),c}return t=vs(t)||0,ns(n)&&(d=!!n.leading,s=(p="maxWait"in n)?_n(vs(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){l!==r&&Oo(l),f=0,i=u=o=l=r},b.flush=function(){return l===r?c:v(wa())},b}var xa=Qi((function(e,t){return di(e,1,t)})),Fa=Qi((function(e,t,n){return di(e,vs(t)||0,n)}));function La(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new De(a);var n=function n(){var i=arguments,o=t?t.apply(this,i):i[0],r=n.cache;if(r.has(o))return r.get(o);var a=e.apply(this,i);return n.cache=r.set(o,a)||r,a};return n.cache=new(La.Cache||Xn),n}function Ua(e){if("function"!=typeof e)throw new De(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}La.Cache=Xn;var ja=Eo((function(e,t){var n=(t=1==t.length&&za(t[0])?Lt(t[0],en(fr())):Lt(bi(t,1),en(fr()))).length;return Qi((function(i){for(var o=-1,r=Cn(i.length,n);++o<r;)i[o]=t[o].call(this,i[o]);return wt(e,this,i)}))})),Ma=Qi((function(e,t){var n=dn(t,ur(Ma));return er(e,u,r,t,n)})),Wa=Qi((function(e,t){var n=dn(t,ur(Wa));return er(e,f,r,t,n)})),Ha=rr((function(e,t){return er(e,p,r,r,r,t)}));function qa(e,t){return e===t||e!=e&&t!=t}var Ba=Xo(wi),Va=Xo((function(e,t){return e>=t})),Ga=Ri(function(){return arguments}())?Ri:function(e){return is(e)&&Ue.call(e,"callee")&&!Je.call(e,"callee")},za=i.isArray,Ka=St?en(St):function(e){return is(e)&&Ii(e)==F};function Ya(e){return null!=e&&ts(e.length)&&!Za(e)}function Xa(e){return is(e)&&Ya(e)}var Ja=_t||vc,$a=Et?en(Et):function(e){return is(e)&&Ii(e)==S};function Qa(e){if(!is(e))return!1;var t=Ii(e);return t==E||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!as(e)}function Za(e){if(!ns(e))return!1;var t=Ii(e);return t==N||t==O||"[object AsyncFunction]"==t||"[object Proxy]"==t}function es(e){return"number"==typeof e&&e==ms(e)}function ts(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=g}function ns(e){var t=o(e);return null!=e&&("object"==t||"function"==t)}function is(e){return null!=e&&"object"==o(e)}var os=Nt?en(Nt):function(e){return is(e)&&yr(e)==T};function rs(e){return"number"==typeof e||is(e)&&Ii(e)==I}function as(e){if(!is(e)||Ii(e)!=w)return!1;var t=Ye(e);if(null===t)return!0;var n=Ue.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Le.call(n)==He}var ss=Ot?en(Ot):function(e){return is(e)&&Ii(e)==k};var cs=Tt?en(Tt):function(e){return is(e)&&yr(e)==D};function ls(e){return"string"==typeof e||!za(e)&&is(e)&&Ii(e)==P}function us(e){return"symbol"==o(e)||is(e)&&Ii(e)==R}var fs=It?en(It):function(e){return is(e)&&ts(e.length)&&!!lt[Ii(e)]};var ds=Xo(Wi),ps=Xo((function(e,t){return e<=t}));function hs(e){if(!e)return[];if(Ya(e))return ls(e)?mn(e):Po(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=yr(e);return(t==T?un:t==D?pn:qs)(e)}function gs(e){return e?(e=vs(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ms(e){var t=gs(e),n=t%1;return t==t?n?t-n:t:0}function ys(e){return e?li(ms(e),0,y):0}function vs(e){if("number"==typeof e)return e;if(us(e))return m;if(ns(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ns(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=ve.test(e);return n||_e.test(e)?pt(e.slice(2),n?2:8):ye.test(e)?m:+e}function bs(e){return Ro(e,xs(e))}function _s(e){return null==e?"":fo(e)}var Cs=Fo((function(e,t){if(Tr(t)||Ya(t))Ro(t,Rs(t),e);else for(var n in t)Ue.call(t,n)&&ii(e,n,t[n])})),Ss=Fo((function(e,t){Ro(t,xs(t),e)})),Es=Fo((function(e,t,n,i){Ro(t,xs(t),e,i)})),Ns=Fo((function(e,t,n,i){Ro(t,Rs(t),e,i)})),Os=rr(ci);var Ts=Qi((function(e,t){e=we(e);var n=-1,i=t.length,o=i>2?t[2]:r;for(o&&Sr(t[0],t[1],o)&&(i=1);++n<i;)for(var a=t[n],s=xs(a),c=-1,l=s.length;++c<l;){var u=s[c],f=e[u];(f===r||qa(f,xe[u])&&!Ue.call(e,u))&&(e[u]=a[u])}return e})),Is=Qi((function(e){return e.push(r,nr),wt(Ls,r,e)}));function ws(e,t,n){var i=null==e?r:Oi(e,t);return i===r?n:i}function As(e,t){return null!=e&&vr(e,t,ki)}var ks=Vo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=We.call(t)),e[t]=n}),nc(rc)),Ds=Vo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=We.call(t)),Ue.call(e,t)?e[t].push(n):e[t]=[n]}),fr),Ps=Qi(Pi);function Rs(e){return Ya(e)?Qn(e):ji(e)}function xs(e){return Ya(e)?Qn(e,!0):Mi(e)}var Fs=Fo((function(e,t,n){Vi(e,t,n)})),Ls=Fo((function(e,t,n,i){Vi(e,t,n,i)})),Us=rr((function(e,t){var n={};if(null==e)return n;var i=!1;t=Lt(t,(function(t){return t=So(t,e),i||(i=t.length>1),t})),Ro(e,sr(e),n),i&&(n=ui(n,7,ir));for(var o=t.length;o--;)ho(n,t[o]);return n}));var js=rr((function(e,t){return null==e?{}:function(e,t){return Ki(e,t,(function(t,n){return As(e,n)}))}(e,t)}));function Ms(e,t){if(null==e)return{};var n=Lt(sr(e),(function(e){return[e]}));return t=fr(t),Ki(e,n,(function(e,n){return t(e,n[0])}))}var Ws=Zo(Rs),Hs=Zo(xs);function qs(e){return null==e?[]:tn(e,Rs(e))}var Bs=Mo((function(e,t,n){return t=t.toLowerCase(),e+(n?Vs(t):t)}));function Vs(e){return Qs(_s(e).toLowerCase())}function Gs(e){return(e=_s(e))&&e.replace(Se,an).replace(nt,"")}var zs=Mo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ks=Mo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ys=jo("toLowerCase");var Xs=Mo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Js=Mo((function(e,t,n){return e+(n?" ":"")+Qs(t)}));var $s=Mo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Qs=jo("toUpperCase");function Zs(e,t,n){return e=_s(e),(t=n?r:t)===r?function(e){return at.test(e)}(e)?function(e){return e.match(ot)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var ec=Qi((function(e,t){try{return wt(e,r,t)}catch(e){return Qa(e)?e:new Oe(e)}})),tc=rr((function(e,t){return kt(t,(function(t){t=Mr(t),si(e,t,Da(e[t],e))})),e}));function nc(e){return function(){return e}}var ic=qo(),oc=qo(!0);function rc(e){return e}function ac(e){return Ui("function"==typeof e?e:ui(e,1))}var sc=Qi((function(e,t){return function(n){return Pi(n,e,t)}})),cc=Qi((function(e,t){return function(n){return Pi(e,n,t)}}));function lc(e,t,n){var i=Rs(t),o=Ni(t,i);null!=n||ns(t)&&(o.length||!i.length)||(n=t,t=e,e=this,o=Ni(t,Rs(t)));var r=!(ns(n)&&"chain"in n&&!n.chain),a=Za(e);return kt(o,(function(n){var i=t[n];e[n]=i,a&&(e.prototype[n]=function(){var t=this.__chain__;if(r||t){var n=e(this.__wrapped__);return(n.__actions__=Po(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Ut([this.value()],arguments))})})),e}function uc(){}var fc=zo(Lt),dc=zo(Pt),pc=zo(Wt);function hc(e){return Er(e)?Yt(Mr(e)):function(e){return function(t){return Oi(t,e)}}(e)}var gc=Yo(),mc=Yo(!0);function yc(){return[]}function vc(){return!1}var bc=Go((function(e,t){return e+t}),0),_c=$o("ceil"),Cc=Go((function(e,t){return e/t}),1),Sc=$o("floor");var Ec,Nc=Go((function(e,t){return e*t}),1),Oc=$o("round"),Tc=Go((function(e,t){return e-t}),0);return qn.after=function(e,t){if("function"!=typeof t)throw new De(a);return e=ms(e),function(){if(--e<1)return t.apply(this,arguments)}},qn.ary=Aa,qn.assign=Cs,qn.assignIn=Ss,qn.assignInWith=Es,qn.assignWith=Ns,qn.at=Os,qn.before=ka,qn.bind=Da,qn.bindAll=tc,qn.bindKey=Pa,qn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return za(e)?e:[e]},qn.chain=ha,qn.chunk=function(e,t,n){t=(n?Sr(e,t,n):t===r)?1:_n(ms(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,c=i(gt(o/t));a<o;)c[s++]=ro(e,a,a+=t);return c},qn.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,o=[];++t<n;){var r=e[t];r&&(o[i++]=r)}return o},qn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=i(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Ut(za(n)?Po(n):[n],bi(t,1))},qn.cond=function(e){var t=null==e?0:e.length,n=fr();return e=t?Lt(e,(function(e){if("function"!=typeof e[1])throw new De(a);return[n(e[0]),e[1]]})):[],Qi((function(n){for(var i=-1;++i<t;){var o=e[i];if(wt(o[0],this,n))return wt(o[1],this,n)}}))},qn.conforms=function(e){return function(e){var t=Rs(e);return function(n){return fi(n,e,t)}}(ui(e,1))},qn.constant=nc,qn.countBy=ya,qn.create=function(e,t){var n=Bn(e);return null==t?n:ai(n,t)},qn.curry=function e(t,n,i){var o=er(t,8,r,r,r,r,r,n=i?r:n);return o.placeholder=e.placeholder,o},qn.curryRight=function e(t,n,i){var o=er(t,l,r,r,r,r,r,n=i?r:n);return o.placeholder=e.placeholder,o},qn.debounce=Ra,qn.defaults=Ts,qn.defaultsDeep=Is,qn.defer=xa,qn.delay=Fa,qn.difference=qr,qn.differenceBy=Br,qn.differenceWith=Vr,qn.drop=function(e,t,n){var i=null==e?0:e.length;return i?ro(e,(t=n||t===r?1:ms(t))<0?0:t,i):[]},qn.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?ro(e,0,(t=i-(t=n||t===r?1:ms(t)))<0?0:t):[]},qn.dropRightWhile=function(e,t){return e&&e.length?mo(e,fr(t,3),!0,!0):[]},qn.dropWhile=function(e,t){return e&&e.length?mo(e,fr(t,3),!0):[]},qn.fill=function(e,t,n,i){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Sr(e,t,n)&&(n=0,i=o),function(e,t,n,i){var o=e.length;for((n=ms(n))<0&&(n=-n>o?0:o+n),(i=i===r||i>o?o:ms(i))<0&&(i+=o),i=n>i?0:ys(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},qn.filter=function(e,t){return(za(e)?Rt:vi)(e,fr(t,3))},qn.flatMap=function(e,t){return bi(Oa(e,t),1)},qn.flatMapDeep=function(e,t){return bi(Oa(e,t),h)},qn.flatMapDepth=function(e,t,n){return n=n===r?1:ms(n),bi(Oa(e,t),n)},qn.flatten=Kr,qn.flattenDeep=function(e){return(null==e?0:e.length)?bi(e,h):[]},qn.flattenDepth=function(e,t){return(null==e?0:e.length)?bi(e,t=t===r?1:ms(t)):[]},qn.flip=function(e){return er(e,512)},qn.flow=ic,qn.flowRight=oc,qn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var o=e[t];i[o[0]]=o[1]}return i},qn.functions=function(e){return null==e?[]:Ni(e,Rs(e))},qn.functionsIn=function(e){return null==e?[]:Ni(e,xs(e))},qn.groupBy=Sa,qn.initial=function(e){return(null==e?0:e.length)?ro(e,0,-1):[]},qn.intersection=Xr,qn.intersectionBy=Jr,qn.intersectionWith=$r,qn.invert=ks,qn.invertBy=Ds,qn.invokeMap=Ea,qn.iteratee=ac,qn.keyBy=Na,qn.keys=Rs,qn.keysIn=xs,qn.map=Oa,qn.mapKeys=function(e,t){var n={};return t=fr(t,3),Si(e,(function(e,i,o){si(n,t(e,i,o),e)})),n},qn.mapValues=function(e,t){var n={};return t=fr(t,3),Si(e,(function(e,i,o){si(n,i,t(e,i,o))})),n},qn.matches=function(e){return qi(ui(e,1))},qn.matchesProperty=function(e,t){return Bi(e,ui(t,1))},qn.memoize=La,qn.merge=Fs,qn.mergeWith=Ls,qn.method=sc,qn.methodOf=cc,qn.mixin=lc,qn.negate=Ua,qn.nthArg=function(e){return e=ms(e),Qi((function(t){return Gi(t,e)}))},qn.omit=Us,qn.omitBy=function(e,t){return Ms(e,Ua(fr(t)))},qn.once=function(e){return ka(2,e)},qn.orderBy=function(e,t,n,i){return null==e?[]:(za(t)||(t=null==t?[]:[t]),za(n=i?r:n)||(n=null==n?[]:[n]),zi(e,t,n))},qn.over=fc,qn.overArgs=ja,qn.overEvery=dc,qn.overSome=pc,qn.partial=Ma,qn.partialRight=Wa,qn.partition=Ta,qn.pick=js,qn.pickBy=Ms,qn.property=hc,qn.propertyOf=function(e){return function(t){return null==e?r:Oi(e,t)}},qn.pull=Zr,qn.pullAll=ea,qn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Yi(e,t,fr(n,2)):e},qn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Yi(e,t,r,n):e},qn.pullAt=ta,qn.range=gc,qn.rangeRight=mc,qn.rearg=Ha,qn.reject=function(e,t){return(za(e)?Rt:vi)(e,Ua(fr(t,3)))},qn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,o=[],r=e.length;for(t=fr(t,3);++i<r;){var a=e[i];t(a,i,e)&&(n.push(a),o.push(i))}return Xi(e,o),n},qn.rest=function(e,t){if("function"!=typeof e)throw new De(a);return Qi(e,t=t===r?t:ms(t))},qn.reverse=na,qn.sampleSize=function(e,t,n){return t=(n?Sr(e,t,n):t===r)?1:ms(t),(za(e)?ei:eo)(e,t)},qn.set=function(e,t,n){return null==e?e:to(e,t,n)},qn.setWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:to(e,t,n,i)},qn.shuffle=function(e){return(za(e)?ti:oo)(e)},qn.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&Sr(e,t,n)?(t=0,n=i):(t=null==t?0:ms(t),n=n===r?i:ms(n)),ro(e,t,n)):[]},qn.sortBy=Ia,qn.sortedUniq=function(e){return e&&e.length?lo(e):[]},qn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,fr(t,2)):[]},qn.split=function(e,t,n){return n&&"number"!=typeof n&&Sr(e,t,n)&&(t=n=r),(n=n===r?y:n>>>0)?(e=_s(e))&&("string"==typeof t||null!=t&&!ss(t))&&!(t=fo(t))&&ln(e)?No(mn(e),0,n):e.split(t,n):[]},qn.spread=function(e,t){if("function"!=typeof e)throw new De(a);return t=null==t?0:_n(ms(t),0),Qi((function(n){var i=n[t],o=No(n,0,t);return i&&Ut(o,i),wt(e,this,o)}))},qn.tail=function(e){var t=null==e?0:e.length;return t?ro(e,1,t):[]},qn.take=function(e,t,n){return e&&e.length?ro(e,0,(t=n||t===r?1:ms(t))<0?0:t):[]},qn.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?ro(e,(t=i-(t=n||t===r?1:ms(t)))<0?0:t,i):[]},qn.takeRightWhile=function(e,t){return e&&e.length?mo(e,fr(t,3),!1,!0):[]},qn.takeWhile=function(e,t){return e&&e.length?mo(e,fr(t,3)):[]},qn.tap=function(e,t){return t(e),e},qn.throttle=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new De(a);return ns(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),Ra(e,t,{leading:i,maxWait:t,trailing:o})},qn.thru=ga,qn.toArray=hs,qn.toPairs=Ws,qn.toPairsIn=Hs,qn.toPath=function(e){return za(e)?Lt(e,Mr):us(e)?[e]:Po(jr(_s(e)))},qn.toPlainObject=bs,qn.transform=function(e,t,n){var i=za(e),o=i||Ja(e)||fs(e);if(t=fr(t,4),null==n){var r=e&&e.constructor;n=o?i?new r:[]:ns(e)&&Za(r)?Bn(Ye(e)):{}}return(o?kt:Si)(e,(function(e,i,o){return t(n,e,i,o)})),n},qn.unary=function(e){return Aa(e,1)},qn.union=ia,qn.unionBy=oa,qn.unionWith=ra,qn.uniq=function(e){return e&&e.length?po(e):[]},qn.uniqBy=function(e,t){return e&&e.length?po(e,fr(t,2)):[]},qn.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?po(e,r,t):[]},qn.unset=function(e,t){return null==e||ho(e,t)},qn.unzip=aa,qn.unzipWith=sa,qn.update=function(e,t,n){return null==e?e:go(e,t,Co(n))},qn.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:go(e,t,Co(n),i)},qn.values=qs,qn.valuesIn=function(e){return null==e?[]:tn(e,xs(e))},qn.without=ca,qn.words=Zs,qn.wrap=function(e,t){return Ma(Co(t),e)},qn.xor=la,qn.xorBy=ua,qn.xorWith=fa,qn.zip=da,qn.zipObject=function(e,t){return bo(e||[],t||[],ii)},qn.zipObjectDeep=function(e,t){return bo(e||[],t||[],to)},qn.zipWith=pa,qn.entries=Ws,qn.entriesIn=Hs,qn.extend=Ss,qn.extendWith=Es,lc(qn,qn),qn.add=bc,qn.attempt=ec,qn.camelCase=Bs,qn.capitalize=Vs,qn.ceil=_c,qn.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=vs(n))==n?n:0),t!==r&&(t=(t=vs(t))==t?t:0),li(vs(e),t,n)},qn.clone=function(e){return ui(e,4)},qn.cloneDeep=function(e){return ui(e,5)},qn.cloneDeepWith=function(e,t){return ui(e,5,t="function"==typeof t?t:r)},qn.cloneWith=function(e,t){return ui(e,4,t="function"==typeof t?t:r)},qn.conformsTo=function(e,t){return null==t||fi(e,t,Rs(t))},qn.deburr=Gs,qn.defaultTo=function(e,t){return null==e||e!=e?t:e},qn.divide=Cc,qn.endsWith=function(e,t,n){e=_s(e),t=fo(t);var i=e.length,o=n=n===r?i:li(ms(n),0,i);return(n-=t.length)>=0&&e.slice(n,o)==t},qn.eq=qa,qn.escape=function(e){return(e=_s(e))&&Q.test(e)?e.replace(J,sn):e},qn.escapeRegExp=function(e){return(e=_s(e))&&ae.test(e)?e.replace(re,"\\$&"):e},qn.every=function(e,t,n){var i=za(e)?Pt:mi;return n&&Sr(e,t,n)&&(t=r),i(e,fr(t,3))},qn.find=va,qn.findIndex=Gr,qn.findKey=function(e,t){return qt(e,fr(t,3),Si)},qn.findLast=ba,qn.findLastIndex=zr,qn.findLastKey=function(e,t){return qt(e,fr(t,3),Ei)},qn.floor=Sc,qn.forEach=_a,qn.forEachRight=Ca,qn.forIn=function(e,t){return null==e?e:_i(e,fr(t,3),xs)},qn.forInRight=function(e,t){return null==e?e:Ci(e,fr(t,3),xs)},qn.forOwn=function(e,t){return e&&Si(e,fr(t,3))},qn.forOwnRight=function(e,t){return e&&Ei(e,fr(t,3))},qn.get=ws,qn.gt=Ba,qn.gte=Va,qn.has=function(e,t){return null!=e&&vr(e,t,Ai)},qn.hasIn=As,qn.head=Yr,qn.identity=rc,qn.includes=function(e,t,n,i){e=Ya(e)?e:qs(e),n=n&&!i?ms(n):0;var o=e.length;return n<0&&(n=_n(o+n,0)),ls(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Vt(e,t,n)>-1},qn.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=null==n?0:ms(n);return o<0&&(o=_n(i+o,0)),Vt(e,t,o)},qn.inRange=function(e,t,n){return t=gs(t),n===r?(n=t,t=0):n=gs(n),function(e,t,n){return e>=Cn(t,n)&&e<_n(t,n)}(e=vs(e),t,n)},qn.invoke=Ps,qn.isArguments=Ga,qn.isArray=za,qn.isArrayBuffer=Ka,qn.isArrayLike=Ya,qn.isArrayLikeObject=Xa,qn.isBoolean=function(e){return!0===e||!1===e||is(e)&&Ii(e)==C},qn.isBuffer=Ja,qn.isDate=$a,qn.isElement=function(e){return is(e)&&1===e.nodeType&&!as(e)},qn.isEmpty=function(e){if(null==e)return!0;if(Ya(e)&&(za(e)||"string"==typeof e||"function"==typeof e.splice||Ja(e)||fs(e)||Ga(e)))return!e.length;var t=yr(e);if(t==T||t==D)return!e.size;if(Tr(e))return!ji(e).length;for(var n in e)if(Ue.call(e,n))return!1;return!0},qn.isEqual=function(e,t){return xi(e,t)},qn.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:r)?n(e,t):r;return i===r?xi(e,t,r,n):!!i},qn.isError=Qa,qn.isFinite=function(e){return"number"==typeof e&&Ct(e)},qn.isFunction=Za,qn.isInteger=es,qn.isLength=ts,qn.isMap=os,qn.isMatch=function(e,t){return e===t||Fi(e,t,pr(t))},qn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,Fi(e,t,pr(t),n)},qn.isNaN=function(e){return rs(e)&&e!=+e},qn.isNative=function(e){if(Or(e))throw new Oe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Li(e)},qn.isNil=function(e){return null==e},qn.isNull=function(e){return null===e},qn.isNumber=rs,qn.isObject=ns,qn.isObjectLike=is,qn.isPlainObject=as,qn.isRegExp=ss,qn.isSafeInteger=function(e){return es(e)&&e>=-9007199254740991&&e<=g},qn.isSet=cs,qn.isString=ls,qn.isSymbol=us,qn.isTypedArray=fs,qn.isUndefined=function(e){return e===r},qn.isWeakMap=function(e){return is(e)&&yr(e)==x},qn.isWeakSet=function(e){return is(e)&&"[object WeakSet]"==Ii(e)},qn.join=function(e,t){return null==e?"":Ht.call(e,t)},qn.kebabCase=zs,qn.last=Qr,qn.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=ms(n))<0?_n(i+o,0):Cn(o,i-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,o):Bt(e,zt,o,!0)},qn.lowerCase=Ks,qn.lowerFirst=Ys,qn.lt=ds,qn.lte=ps,qn.max=function(e){return e&&e.length?yi(e,rc,wi):r},qn.maxBy=function(e,t){return e&&e.length?yi(e,fr(t,2),wi):r},qn.mean=function(e){return Kt(e,rc)},qn.meanBy=function(e,t){return Kt(e,fr(t,2))},qn.min=function(e){return e&&e.length?yi(e,rc,Wi):r},qn.minBy=function(e,t){return e&&e.length?yi(e,fr(t,2),Wi):r},qn.stubArray=yc,qn.stubFalse=vc,qn.stubObject=function(){return{}},qn.stubString=function(){return""},qn.stubTrue=function(){return!0},qn.multiply=Nc,qn.nth=function(e,t){return e&&e.length?Gi(e,ms(t)):r},qn.noConflict=function(){return mt._===this&&(mt._=qe),this},qn.noop=uc,qn.now=wa,qn.pad=function(e,t,n){e=_s(e);var i=(t=ms(t))?gn(e):0;if(!t||i>=t)return e;var o=(t-i)/2;return Ko(yt(o),n)+e+Ko(gt(o),n)},qn.padEnd=function(e,t,n){e=_s(e);var i=(t=ms(t))?gn(e):0;return t&&i<t?e+Ko(t-i,n):e},qn.padStart=function(e,t,n){e=_s(e);var i=(t=ms(t))?gn(e):0;return t&&i<t?Ko(t-i,n)+e:e},qn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),En(_s(e).replace(se,""),t||0)},qn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Sr(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=gs(e),t===r?(t=e,e=0):t=gs(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var o=Nn();return Cn(e+o*(t-e+dt("1e-"+((o+"").length-1))),t)}return Ji(e,t)},qn.reduce=function(e,t,n){var i=za(e)?jt:Jt,o=arguments.length<3;return i(e,fr(t,4),n,o,hi)},qn.reduceRight=function(e,t,n){var i=za(e)?Mt:Jt,o=arguments.length<3;return i(e,fr(t,4),n,o,gi)},qn.repeat=function(e,t,n){return t=(n?Sr(e,t,n):t===r)?1:ms(t),$i(_s(e),t)},qn.replace=function(){var e=arguments,t=_s(e[0]);return e.length<3?t:t.replace(e[1],e[2])},qn.result=function(e,t,n){var i=-1,o=(t=So(t,e)).length;for(o||(o=1,e=r);++i<o;){var a=null==e?r:e[Mr(t[i])];a===r&&(i=o,a=n),e=Za(a)?a.call(e):a}return e},qn.round=Oc,qn.runInContext=e,qn.sample=function(e){return(za(e)?Zn:Zi)(e)},qn.size=function(e){if(null==e)return 0;if(Ya(e))return ls(e)?gn(e):e.length;var t=yr(e);return t==T||t==D?e.size:ji(e).length},qn.snakeCase=Xs,qn.some=function(e,t,n){var i=za(e)?Wt:ao;return n&&Sr(e,t,n)&&(t=r),i(e,fr(t,3))},qn.sortedIndex=function(e,t){return so(e,t)},qn.sortedIndexBy=function(e,t,n){return co(e,t,fr(n,2))},qn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=so(e,t);if(i<n&&qa(e[i],t))return i}return-1},qn.sortedLastIndex=function(e,t){return so(e,t,!0)},qn.sortedLastIndexBy=function(e,t,n){return co(e,t,fr(n,2),!0)},qn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=so(e,t,!0)-1;if(qa(e[n],t))return n}return-1},qn.startCase=Js,qn.startsWith=function(e,t,n){return e=_s(e),n=null==n?0:li(ms(n),0,e.length),t=fo(t),e.slice(n,n+t.length)==t},qn.subtract=Tc,qn.sum=function(e){return e&&e.length?$t(e,rc):0},qn.sumBy=function(e,t){return e&&e.length?$t(e,fr(t,2)):0},qn.template=function(e,t,n){var i=qn.templateSettings;n&&Sr(e,t,n)&&(t=r),e=_s(e),t=Es({},t,i,tr);var o,a,s=Es({},t.imports,i.imports,tr),c=Rs(s),l=tn(s,c),u=0,f=t.interpolate||Ee,d="__p += '",p=Ae((t.escape||Ee).source+"|"+f.source+"|"+(f===te?ge:Ee).source+"|"+(t.evaluate||Ee).source+"|$","g"),h="//# sourceURL="+(Ue.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ct+"]")+"\n";e.replace(p,(function(t,n,i,r,s,c){return i||(i=r),d+=e.slice(u,c).replace(Ne,cn),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),i&&(d+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),d+="';\n";var g=Ue.call(t,"variable")&&t.variable;if(g){if(pe.test(g))throw new Oe("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(z,""):d).replace(K,"$1").replace(Y,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=ec((function(){return Te(c,h+"return "+d).apply(r,l)}));if(m.source=d,Qa(m))throw m;return m},qn.times=function(e,t){if((e=ms(e))<1||e>g)return[];var n=y,i=Cn(e,y);t=fr(t),e-=y;for(var o=Qt(i,t);++n<e;)t(n);return o},qn.toFinite=gs,qn.toInteger=ms,qn.toLength=ys,qn.toLower=function(e){return _s(e).toLowerCase()},qn.toNumber=vs,qn.toSafeInteger=function(e){return e?li(ms(e),-9007199254740991,g):0===e?e:0},qn.toString=_s,qn.toUpper=function(e){return _s(e).toUpperCase()},qn.trim=function(e,t,n){if((e=_s(e))&&(n||t===r))return Zt(e);if(!e||!(t=fo(t)))return e;var i=mn(e),o=mn(t);return No(i,on(i,o),rn(i,o)+1).join("")},qn.trimEnd=function(e,t,n){if((e=_s(e))&&(n||t===r))return e.slice(0,yn(e)+1);if(!e||!(t=fo(t)))return e;var i=mn(e);return No(i,0,rn(i,mn(t))+1).join("")},qn.trimStart=function(e,t,n){if((e=_s(e))&&(n||t===r))return e.replace(se,"");if(!e||!(t=fo(t)))return e;var i=mn(e);return No(i,on(i,mn(t))).join("")},qn.truncate=function(e,t){var n=30,i="...";if(ns(t)){var o="separator"in t?t.separator:o;n="length"in t?ms(t.length):n,i="omission"in t?fo(t.omission):i}var a=(e=_s(e)).length;if(ln(e)){var s=mn(e);a=s.length}if(n>=a)return e;var c=n-gn(i);if(c<1)return i;var l=s?No(s,0,c).join(""):e.slice(0,c);if(o===r)return l+i;if(s&&(c+=l.length-c),ss(o)){if(e.slice(c).search(o)){var u,f=l;for(o.global||(o=Ae(o.source,_s(me.exec(o))+"g")),o.lastIndex=0;u=o.exec(f);)var d=u.index;l=l.slice(0,d===r?c:d)}}else if(e.indexOf(fo(o),c)!=c){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+i},qn.unescape=function(e){return(e=_s(e))&&$.test(e)?e.replace(X,vn):e},qn.uniqueId=function(e){var t=++je;return _s(e)+t},qn.upperCase=$s,qn.upperFirst=Qs,qn.each=_a,qn.eachRight=Ca,qn.first=Yr,lc(qn,(Ec={},Si(qn,(function(e,t){Ue.call(qn.prototype,t)||(Ec[t]=e)})),Ec),{chain:!1}),qn.VERSION="4.17.21",kt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){qn[e].placeholder=qn})),kt(["drop","take"],(function(e,t){zn.prototype[e]=function(n){n=n===r?1:_n(ms(n),0);var i=this.__filtered__&&!t?new zn(this):this.clone();return i.__filtered__?i.__takeCount__=Cn(n,i.__takeCount__):i.__views__.push({size:Cn(n,y),type:e+(i.__dir__<0?"Right":"")}),i},zn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),kt(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=1==n||3==n;zn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:fr(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),kt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");zn.prototype[e]=function(){return this[n](1).value()[0]}})),kt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");zn.prototype[e]=function(){return this.__filtered__?new zn(this):this[n](1)}})),zn.prototype.compact=function(){return this.filter(rc)},zn.prototype.find=function(e){return this.filter(e).head()},zn.prototype.findLast=function(e){return this.reverse().find(e)},zn.prototype.invokeMap=Qi((function(e,t){return"function"==typeof e?new zn(this):this.map((function(n){return Pi(n,e,t)}))})),zn.prototype.reject=function(e){return this.filter(Ua(fr(e)))},zn.prototype.slice=function(e,t){e=ms(e);var n=this;return n.__filtered__&&(e>0||t<0)?new zn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=ms(t))<0?n.dropRight(-t):n.take(t-e)),n)},zn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},zn.prototype.toArray=function(){return this.take(y)},Si(zn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=qn[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(qn.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof zn,l=s[0],u=c||za(t),f=function(e){var t=o.apply(qn,Ut([e],s));return i&&d?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,g=c&&!p;if(!a&&u){t=g?t:new zn(this);var m=e.apply(t,s);return m.__actions__.push({func:ga,args:[f],thisArg:r}),new Gn(m,d)}return h&&g?e.apply(this,s):(m=this.thru(f),h?i?m.value()[0]:m.value():m)})})),kt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);qn.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var o=this.value();return t.apply(za(o)?o:[],e)}return this[n]((function(n){return t.apply(za(n)?n:[],e)}))}})),Si(zn.prototype,(function(e,t){var n=qn[t];if(n){var i=n.name+"";Ue.call(Rn,i)||(Rn[i]=[]),Rn[i].push({name:t,func:n})}})),Rn[Bo(r,2).name]=[{name:"wrapper",func:r}],zn.prototype.clone=function(){var e=new zn(this.__wrapped__);return e.__actions__=Po(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Po(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Po(this.__views__),e},zn.prototype.reverse=function(){if(this.__filtered__){var e=new zn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},zn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=za(e),i=t<0,o=n?e.length:0,r=function(e,t,n){var i=-1,o=n.length;for(;++i<o;){var r=n[i],a=r.size;switch(r.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Cn(t,e+a);break;case"takeRight":e=_n(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=r.start,s=r.end,c=s-a,l=i?s:a-1,u=this.__iteratees__,f=u.length,d=0,p=Cn(c,this.__takeCount__);if(!n||!i&&o==c&&p==c)return yo(e,this.__actions__);var h=[];e:for(;c--&&d<p;){for(var g=-1,m=e[l+=t];++g<f;){var y=u[g],v=y.iteratee,b=y.type,_=v(m);if(2==b)m=_;else if(!_){if(1==b)continue e;break e}}h[d++]=m}return h},qn.prototype.at=ma,qn.prototype.chain=function(){return ha(this)},qn.prototype.commit=function(){return new Gn(this.value(),this.__chain__)},qn.prototype.next=function(){this.__values__===r&&(this.__values__=hs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},qn.prototype.plant=function(e){for(var t,n=this;n instanceof Vn;){var i=Hr(n);i.__index__=0,i.__values__=r,t?o.__wrapped__=i:t=i;var o=i;n=n.__wrapped__}return o.__wrapped__=e,t},qn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof zn){var t=e;return this.__actions__.length&&(t=new zn(this)),(t=t.reverse()).__actions__.push({func:ga,args:[na],thisArg:r}),new Gn(t,this.__chain__)}return this.thru(na)},qn.prototype.toJSON=qn.prototype.valueOf=qn.prototype.value=function(){return yo(this.__wrapped__,this.__actions__)},qn.prototype.first=qn.prototype.head,Ze&&(qn.prototype[Ze]=function(){return this}),qn}();"object"==o(n.amdO)&&n.amdO?(mt._=bn,(i=function(){return bn}.call(t,n,t,e))===r||(e.exports=i)):vt?((vt.exports=bn)._=bn,yt._=bn):mt._=bn}.call(this)},4326:function(e){e.exports=function(e,t,n){for(var i=(2<<Math.log(t.length-1)/Math.LN2)-1,o=-~(1.6*i*n/t.length),r="";;)for(var a=e(o),s=o;s--;)if((r+=t[a[s]&i]||"").length===+n)return r}},7347:function(e){"use strict";function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},t.apply(this,arguments)}var n=Object.getOwnPropertySymbols,i=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 n={},i=0;i<10;i++)n["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[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 r,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in r=Object(arguments[c]))i.call(r,l)&&(s[l]=r[l]);if(n){a=n(r);for(var u=0;u<a.length;u++)o.call(r,a[u])&&(s[a[u]]=r[a[u]])}}return s}},1574:function(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)},r=s(n(5466)),a=s(n(9543));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,a.default)((function(e,t,n,i,a){var s=e[t],c=void 0===s?"undefined":o(s);return r.default.isValidElement(s)?new Error("Invalid "+i+" `"+a+"` of type ReactElement supplied to `"+n+"`, expected a ReactComponent or a DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===c&&"function"==typeof s.render||1===s.nodeType?null:new Error("Invalid "+i+" `"+a+"` of value `"+s+"` supplied to `"+n+"`, expected a ReactComponent or a DOMElement.")})),e.exports=t.default},8536:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var i,o=n(6516),r=(i=o)&&i.__esModule?i:{default:i};var a={};function s(e,t){return function(n,i,o,s,c){var l=o||"<<anonymous>>",u=c||i;if(null!=n[i]){var f=o+"."+i;(0,r.default)(a[f],"The "+s+" `"+u+"` of `"+l+"` is deprecated. "+t+"."),a[f]=!0}for(var d=arguments.length,p=Array(d>5?d-5:0),h=5;h<d;h++)p[h-5]=arguments[h];return e.apply(void 0,[n,i,o,s,c].concat(p))}}s._resetWarned=function(){a={}},e.exports=t.default},2909:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a(n(5466)),o=n(9972),r=a(n(9543));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,r.default)((function(e,t,n,r,a){var s=e[t];return i.default.isValidElement(s)?new Error("Invalid "+r+" `"+a+"` of type ReactElement supplied to `"+n+"`,expected an element type (a string , component class, or function component)."):(0,o.isValidElementType)(s)?null:new Error("Invalid "+r+" `"+a+"` of value `"+s+"` supplied to `"+n+"`, expected an element type (a string , component class, or function component).")})),e.exports=t.default},9543:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,n,i,o,r,a){var s=o||"<<anonymous>>",c=a||i;if(null==n[i])return t?new Error("Required "+r+" `"+c+"` was not specified in `"+s+"`."):null;for(var l=arguments.length,u=Array(l>6?l-6:0),f=6;f<l;f++)u[f-6]=arguments[f];return e.apply(void 0,[n,i,s,r,c].concat(u))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n},e.exports=t.default},6516:function(e){"use strict";var t=function(){};e.exports=t},3433:function(e,t,n){"use strict";var i=n(6642);function o(){}function r(){}r.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,r,a){if(a!==i){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 n={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:r,resetWarningCache:o};return n.PropTypes=n,n}},3074:function(e,t,n){e.exports=n(3433)()},6642:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3748:function(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o=n(5466),r=n(7347),a=n(7767);function s(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=0;i<t;i++)n+="&args[]="+encodeURIComponent(arguments[i+1]);!function(e,t,n,i,o,r,a,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,o,r,a,s],l=0;(e=Error(t.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function c(e,t,n,i,o,r,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}o||s("227");var l=!1,u=null,f=!1,d=null,p={onError:function(e){l=!0,u=e}};function h(e,t,n,i,o,r,a,s,f){l=!1,u=null,c.apply(p,arguments)}var g=null,m={};function y(){if(g)for(var e in m){var t=m[e],n=g.indexOf(e);if(-1<n||s("96",e),!b[n])for(var i in t.extractEvents||s("97",e),b[n]=t,n=t.eventTypes){var o=void 0,r=n[i],a=t,c=i;_.hasOwnProperty(c)&&s("99",c),_[c]=r;var l=r.phasedRegistrationNames;if(l){for(o in l)l.hasOwnProperty(o)&&v(l[o],a,c);o=!0}else r.registrationName?(v(r.registrationName,a,c),o=!0):o=!1;o||s("98",i,e)}}}function v(e,t,n){C[e]&&s("100",e),C[e]=t,S[e]=t.eventTypes[n].dependencies}var b=[],_={},C={},S={},E=null,N=null,O=null;function T(e,t,n){var i=e.type||"unknown-event";e.currentTarget=O(n),function(e,t,n,i,o,r,a,c,p){if(h.apply(this,arguments),l){if(l){var g=u;l=!1,u=null}else s("198"),g=void 0;f||(f=!0,d=g)}}(i,t,void 0,e),e.currentTarget=null}function I(e,t){return null==t&&s("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function w(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var A=null;function k(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var i=0;i<t.length&&!e.isPropagationStopped();i++)T(e,t[i],n[i]);else t&&T(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var D={injectEventPluginOrder:function(e){g&&s("101"),g=Array.prototype.slice.call(e),y()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var i=e[t];m.hasOwnProperty(t)&&m[t]===i||(m[t]&&s("102",t),m[t]=i,n=!0)}n&&y()}};function P(e,t){var n=e.stateNode;if(!n)return null;var o=E(n);if(!o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&s("231",t,i(n)),n)}function R(e){if(null!==e&&(A=I(A,e)),e=A,A=null,e&&(w(e,k),A&&s("95"),f))throw e=d,f=!1,d=null,e}var x=Math.random().toString(36).slice(2),F="__reactInternalInstance$"+x,L="__reactEventHandlers$"+x;function U(e){if(e[F])return e[F];for(;!e[F];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[F]).tag||6===e.tag?e:null}function j(e){return!(e=e[F])||5!==e.tag&&6!==e.tag?null:e}function M(e){if(5===e.tag||6===e.tag)return e.stateNode;s("33")}function W(e){return e[L]||null}function H(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function q(e,t,n){(t=P(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=I(n._dispatchListeners,t),n._dispatchInstances=I(n._dispatchInstances,e))}function B(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=H(t);for(t=n.length;0<t--;)q(n[t],"captured",e);for(t=0;t<n.length;t++)q(n[t],"bubbled",e)}}function V(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=P(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=I(n._dispatchListeners,t),n._dispatchInstances=I(n._dispatchInstances,e))}function G(e){e&&e.dispatchConfig.registrationName&&V(e._targetInst,null,e)}function z(e){w(e,B)}var K=!("undefined"==typeof window||!window.document||!window.document.createElement);function Y(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var X={animationend:Y("Animation","AnimationEnd"),animationiteration:Y("Animation","AnimationIteration"),animationstart:Y("Animation","AnimationStart"),transitionend:Y("Transition","TransitionEnd")},J={},$={};function Q(e){if(J[e])return J[e];if(!X[e])return e;var t,n=X[e];for(t in n)if(n.hasOwnProperty(t)&&t in $)return J[e]=n[t];return e}K&&($=document.createElement("div").style,"AnimationEvent"in window||(delete X.animationend.animation,delete X.animationiteration.animation,delete X.animationstart.animation),"TransitionEvent"in window||delete X.transitionend.transition);var Z=Q("animationend"),ee=Q("animationiteration"),te=Q("animationstart"),ne=Q("transitionend"),ie="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),oe=null,re=null,ae=null;function se(){if(ae)return ae;var e,t,n=re,i=n.length,o="value"in oe?oe.value:oe.textContent,r=o.length;for(e=0;e<i&&n[e]===o[e];e++);var a=i-e;for(t=1;t<=a&&n[i-t]===o[r-t];t++);return ae=o.slice(e,1<t?1-t:void 0)}function ce(){return!0}function le(){return!1}function ue(e,t,n,i){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=i:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?ce:le,this.isPropagationStopped=le,this}function fe(e,t,n,i){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,i),o}return new this(e,t,n,i)}function de(e){e instanceof this||s("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function pe(e){e.eventPool=[],e.getPooled=fe,e.release=de}r(ue.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ce)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ce)},persist:function(){this.isPersistent=ce},isPersistent:le,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=le,this._dispatchInstances=this._dispatchListeners=null}}),ue.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ue.extend=function(e){function t(){}function n(){return i.apply(this,arguments)}var i=this;t.prototype=i.prototype;var o=new t;return r(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=r({},i.Interface,e),n.extend=i.extend,pe(n),n},pe(ue);var he=ue.extend({data:null}),ge=ue.extend({data:null}),me=[9,13,27,32],ye=K&&"CompositionEvent"in window,ve=null;K&&"documentMode"in document&&(ve=document.documentMode);var be=K&&"TextEvent"in window&&!ve,_e=K&&(!ye||ve&&8<ve&&11>=ve),Ce=String.fromCharCode(32),Se={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Ee=!1;function Ne(e,t){switch(e){case"keyup":return-1!==me.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Oe(e){return"object"===i(e=e.detail)&&"data"in e?e.data:null}var Te=!1;var Ie={eventTypes:Se,extractEvents:function(e,t,n,i){var o=void 0,r=void 0;if(ye)e:{switch(e){case"compositionstart":o=Se.compositionStart;break e;case"compositionend":o=Se.compositionEnd;break e;case"compositionupdate":o=Se.compositionUpdate;break e}o=void 0}else Te?Ne(e,n)&&(o=Se.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=Se.compositionStart);return o?(_e&&"ko"!==n.locale&&(Te||o!==Se.compositionStart?o===Se.compositionEnd&&Te&&(r=se()):(re="value"in(oe=i)?oe.value:oe.textContent,Te=!0)),o=he.getPooled(o,t,n,i),r?o.data=r:null!==(r=Oe(n))&&(o.data=r),z(o),r=o):r=null,(e=be?function(e,t){switch(e){case"compositionend":return Oe(t);case"keypress":return 32!==t.which?null:(Ee=!0,Ce);case"textInput":return(e=t.data)===Ce&&Ee?null:e;default:return null}}(e,n):function(e,t){if(Te)return"compositionend"===e||!ye&&Ne(e,t)?(e=se(),ae=re=oe=null,Te=!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 _e&&"ko"!==t.locale?null:t.data}}(e,n))?((t=ge.getPooled(Se.beforeInput,t,n,i)).data=e,z(t)):t=null,null===r?t:null===t?r:[r,t]}},we=null,Ae=null,ke=null;function De(e){if(e=N(e)){"function"!=typeof we&&s("280");var t=E(e.stateNode);we(e.stateNode,e.type,t)}}function Pe(e){Ae?ke?ke.push(e):ke=[e]:Ae=e}function Re(){if(Ae){var e=Ae,t=ke;if(ke=Ae=null,De(e),t)for(e=0;e<t.length;e++)De(t[e])}}function xe(e,t){return e(t)}function Fe(e,t,n){return e(t,n)}function Le(){}var Ue=!1;function je(e,t){if(Ue)return e(t);Ue=!0;try{return xe(e,t)}finally{Ue=!1,(null!==Ae||null!==ke)&&(Le(),Re())}}var Me={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 We(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Me[e.type]:"textarea"===t}function He(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function qe(e){if(!K)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function Be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ve(e){e._valueTracker||(e._valueTracker=function(e){var t=Be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){i=""+e,r.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ge(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Be(e)?e.checked?"true":"false":e.value),(e=i)!==n&&(t.setValue(e),!0)}var ze=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ze.hasOwnProperty("ReactCurrentDispatcher")||(ze.ReactCurrentDispatcher={current:null});var Ke=/^(.*)[\\\/]/,Ye="function"==typeof Symbol&&Symbol.for,Xe=Ye?Symbol.for("react.element"):60103,Je=Ye?Symbol.for("react.portal"):60106,$e=Ye?Symbol.for("react.fragment"):60107,Qe=Ye?Symbol.for("react.strict_mode"):60108,Ze=Ye?Symbol.for("react.profiler"):60114,et=Ye?Symbol.for("react.provider"):60109,tt=Ye?Symbol.for("react.context"):60110,nt=Ye?Symbol.for("react.concurrent_mode"):60111,it=Ye?Symbol.for("react.forward_ref"):60112,ot=Ye?Symbol.for("react.suspense"):60113,rt=Ye?Symbol.for("react.memo"):60115,at=Ye?Symbol.for("react.lazy"):60116,st="function"==typeof Symbol&&Symbol.iterator;function ct(e){return null===e||"object"!==i(e)?null:"function"==typeof(e=st&&e[st]||e["@@iterator"])?e:null}function lt(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 nt:return"ConcurrentMode";case $e:return"Fragment";case Je:return"Portal";case Ze:return"Profiler";case Qe:return"StrictMode";case ot:return"Suspense"}if("object"===i(e))switch(e.$$typeof){case tt:return"Context.Consumer";case et:return"Context.Provider";case it:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case rt:return lt(e.type);case at:if(e=1===e._status?e._result:null)return lt(e)}return null}function ut(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var i=e._debugOwner,o=e._debugSource,r=lt(e.type);n=null,i&&(n=lt(i.type)),i=r,r="",o?r=" (at "+o.fileName.replace(Ke,"")+":"+o.lineNumber+")":n&&(r=" (created by "+n+")"),n="\n in "+(i||"Unknown")+r}t+=n,e=e.return}while(e);return t}var ft=/^[: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]*$/,dt=Object.prototype.hasOwnProperty,pt={},ht={};function gt(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(i(t)){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function mt(e,t,n,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t}var yt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){yt[e]=new mt(e,0,!1,e,null)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];yt[t]=new mt(t,1,!1,e[1],null)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){yt[e]=new mt(e,2,!1,e.toLowerCase(),null)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){yt[e]=new mt(e,2,!1,e,null)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){yt[e]=new mt(e,3,!1,e.toLowerCase(),null)})),["checked","multiple","muted","selected"].forEach((function(e){yt[e]=new mt(e,3,!0,e,null)})),["capture","download"].forEach((function(e){yt[e]=new mt(e,4,!1,e,null)})),["cols","rows","size","span"].forEach((function(e){yt[e]=new mt(e,6,!1,e,null)})),["rowSpan","start"].forEach((function(e){yt[e]=new mt(e,5,!1,e.toLowerCase(),null)}));var vt=/[\-:]([a-z])/g;function bt(e){return e[1].toUpperCase()}function _t(e,t,n,i){var o=yt.hasOwnProperty(t)?yt[t]:null;(null!==o?0===o.type:!i&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(gt(t,n,o,i)&&(n=null),i||null===o?function(e){return!!dt.call(ht,e)||!dt.call(pt,e)&&(ft.test(e)?ht[e]=!0:(pt[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,i=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}function Ct(e){switch(i(e)){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function St(e,t){var n=t.checked;return r({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Et(e,t){var n=null==t.defaultValue?"":t.defaultValue,i=null!=t.checked?t.checked:t.defaultChecked;n=Ct(null!=t.value?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Nt(e,t){null!=(t=t.checked)&&_t(e,"checked",t,!1)}function Ot(e,t){Nt(e,t);var n=Ct(t.value),i=t.type;if(null!=n)"number"===i?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===i||"reset"===i)return void e.removeAttribute("value");t.hasOwnProperty("value")?It(e,t.type,n):t.hasOwnProperty("defaultValue")&&It(e,t.type,Ct(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Tt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!("submit"!==i&&"reset"!==i||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function It(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}"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(vt,bt);yt[t]=new mt(t,1,!1,e,null)})),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(vt,bt);yt[t]=new mt(t,1,!1,e,"http://www.w3.org/1999/xlink")})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(vt,bt);yt[t]=new mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")})),["tabIndex","crossOrigin"].forEach((function(e){yt[e]=new mt(e,1,!1,e.toLowerCase(),null)}));var wt={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function At(e,t,n){return(e=ue.getPooled(wt.change,e,t,n)).type="change",Pe(n),z(e),e}var kt=null,Dt=null;function Pt(e){R(e)}function Rt(e){if(Ge(M(e)))return e}function xt(e,t){if("change"===e)return t}var Ft=!1;function Lt(){kt&&(kt.detachEvent("onpropertychange",Ut),Dt=kt=null)}function Ut(e){"value"===e.propertyName&&Rt(Dt)&&je(Pt,e=At(Dt,e,He(e)))}function jt(e,t,n){"focus"===e?(Lt(),Dt=n,(kt=t).attachEvent("onpropertychange",Ut)):"blur"===e&&Lt()}function Mt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Rt(Dt)}function Wt(e,t){if("click"===e)return Rt(t)}function Ht(e,t){if("input"===e||"change"===e)return Rt(t)}K&&(Ft=qe("input")&&(!document.documentMode||9<document.documentMode));var qt={eventTypes:wt,_isInputEventSupported:Ft,extractEvents:function(e,t,n,i){var o=t?M(t):window,r=void 0,a=void 0,s=o.nodeName&&o.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===o.type?r=xt:We(o)?Ft?r=Ht:(r=Mt,a=jt):(s=o.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(r=Wt),r&&(r=r(e,t)))return At(r,n,i);a&&a(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&It(o,"number",o.value)}},Bt=ue.extend({view:null,detail:null}),Vt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Vt[e])&&!!t[e]}function zt(){return Gt}var Kt=0,Yt=0,Xt=!1,Jt=!1,$t=Bt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:zt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Kt;return Kt=e.screenX,Xt?"mousemove"===e.type?e.screenX-t:0:(Xt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Yt;return Yt=e.screenY,Jt?"mousemove"===e.type?e.screenY-t:0:(Jt=!0,0)}}),Qt=$t.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Zt={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},en={eventTypes:Zt,extractEvents:function(e,t,n,i){var o="mouseover"===e||"pointerover"===e,r="mouseout"===e||"pointerout"===e;if(o&&(n.relatedTarget||n.fromElement)||!r&&!o)return null;if(o=i.window===i?i:(o=i.ownerDocument)?o.defaultView||o.parentWindow:window,r?(r=t,t=(t=n.relatedTarget||n.toElement)?U(t):null):r=null,r===t)return null;var a=void 0,s=void 0,c=void 0,l=void 0;"mouseout"===e||"mouseover"===e?(a=$t,s=Zt.mouseLeave,c=Zt.mouseEnter,l="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=Qt,s=Zt.pointerLeave,c=Zt.pointerEnter,l="pointer");var u=null==r?o:M(r);if(o=null==t?o:M(t),(e=a.getPooled(s,r,n,i)).type=l+"leave",e.target=u,e.relatedTarget=o,(n=a.getPooled(c,t,n,i)).type=l+"enter",n.target=o,n.relatedTarget=u,i=t,r&&i)e:{for(o=i,l=0,a=t=r;a;a=H(a))l++;for(a=0,c=o;c;c=H(c))a++;for(;0<l-a;)t=H(t),l--;for(;0<a-l;)o=H(o),a--;for(;l--;){if(t===o||t===o.alternate)break e;t=H(t),o=H(o)}t=null}else t=null;for(o=t,t=[];r&&r!==o&&(null===(l=r.alternate)||l!==o);)t.push(r),r=H(r);for(r=[];i&&i!==o&&(null===(l=i.alternate)||l!==o);)r.push(i),i=H(i);for(i=0;i<t.length;i++)V(t[i],"bubbled",e);for(i=r.length;0<i--;)V(r[i],"captured",n);return[e,n]}};function tn(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var nn=Object.prototype.hasOwnProperty;function on(e,t){if(tn(e,t))return!0;if("object"!==i(e)||null===e||"object"!==i(t)||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!nn.call(t,n[o])||!tn(e[n[o]],t[n[o]]))return!1;return!0}function rn(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function an(e){2!==rn(e)&&s("188")}function sn(e){if(e=function(e){var t=e.alternate;if(!t)return 3===(t=rn(e))&&s("188"),1===t?null:e;for(var n=e,i=t;;){var o=n.return,r=o?o.alternate:null;if(!o||!r)break;if(o.child===r.child){for(var a=o.child;a;){if(a===n)return an(o),e;if(a===i)return an(o),t;a=a.sibling}s("188")}if(n.return!==i.return)n=o,i=r;else{a=!1;for(var c=o.child;c;){if(c===n){a=!0,n=o,i=r;break}if(c===i){a=!0,i=o,n=r;break}c=c.sibling}if(!a){for(c=r.child;c;){if(c===n){a=!0,n=r,i=o;break}if(c===i){a=!0,i=r,n=o;break}c=c.sibling}a||s("189")}}n.alternate!==i&&s("190")}return 3!==n.tag&&s("188"),n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var cn=ue.extend({animationName:null,elapsedTime:null,pseudoElement:null}),ln=ue.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),un=Bt.extend({relatedTarget:null});function fn(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}var dn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pn={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"},hn=Bt.extend({key:function(e){if(e.key){var t=dn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=fn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?pn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:zt,charCode:function(e){return"keypress"===e.type?fn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?fn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),gn=$t.extend({dataTransfer:null}),mn=Bt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:zt}),yn=ue.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),vn=$t.extend({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:null,deltaMode:null}),bn=[["abort","abort"],[Z,"animationEnd"],[ee,"animationIteration"],[te,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[ne,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],_n={},Cn={};function Sn(e,t){var n=e[0],i="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[n],isInteractive:t},_n[e]=t,Cn[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach((function(e){Sn(e,!0)})),bn.forEach((function(e){Sn(e,!1)}));var En={eventTypes:_n,isInteractiveTopLevelEventType:function(e){return void 0!==(e=Cn[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,i){var o=Cn[e];if(!o)return null;switch(e){case"keypress":if(0===fn(n))return null;case"keydown":case"keyup":e=hn;break;case"blur":case"focus":e=un;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=$t;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=mn;break;case Z:case ee:case te:e=cn;break;case ne:e=yn;break;case"scroll":e=Bt;break;case"wheel":e=vn;break;case"copy":case"cut":case"paste":e=ln;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Qt;break;default:e=ue}return z(t=e.getPooled(o,t,n,i)),t}},Nn=En.isInteractiveTopLevelEventType,On=[];function Tn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var i;for(i=n;i.return;)i=i.return;if(!(i=3!==i.tag?null:i.stateNode.containerInfo))break;e.ancestors.push(n),n=U(i)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=He(e.nativeEvent);i=e.topLevelType;for(var r=e.nativeEvent,a=null,s=0;s<b.length;s++){var c=b[s];c&&(c=c.extractEvents(i,t,r,o))&&(a=I(a,c))}R(a)}}var In=!0;function wn(e,t){if(!t)return null;var n=(Nn(e)?kn:Dn).bind(null,e);t.addEventListener(e,n,!1)}function An(e,t){if(!t)return null;var n=(Nn(e)?kn:Dn).bind(null,e);t.addEventListener(e,n,!0)}function kn(e,t){Fe(Dn,e,t)}function Dn(e,t){if(In){var n=He(t);if(null===(n=U(n))||"number"!=typeof n.tag||2===rn(n)||(n=null),On.length){var i=On.pop();i.topLevelType=e,i.nativeEvent=t,i.targetInst=n,e=i}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{je(Tn,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>On.length&&On.push(e)}}}var Pn={},Rn=0,xn="_reactListenersID"+(""+Math.random()).slice(2);function Fn(e){return Object.prototype.hasOwnProperty.call(e,xn)||(e[xn]=Rn++,Pn[e[xn]]={}),Pn[e[xn]]}function Ln(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 Un(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jn(e,t){var n,i=Un(e);for(e=0;i;){if(3===i.nodeType){if(n=e+i.textContent.length,e<=t&&n>=t)return{node:i,offset:t-e};e=n}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Un(i)}}function Mn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Mn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Wn(){for(var e=window,t=Ln();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=Ln(e.document)}return t}function Hn(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 qn(e){var t=Wn(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Mn(n.ownerDocument.documentElement,n)){if(null!==i&&Hn(n))if(t=i.start,void 0===(e=i.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,r=Math.min(i.start,o);i=void 0===i.end?r:Math.min(i.end,o),!e.extend&&r>i&&(o=i,i=r,r=o),o=jn(n,r);var a=jn(n,i);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(),r>i?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Bn=K&&"documentMode"in document&&11>=document.documentMode,Vn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Gn=null,zn=null,Kn=null,Yn=!1;function Xn(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Yn||null==Gn||Gn!==Ln(n)?null:("selectionStart"in(n=Gn)&&Hn(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},Kn&&on(Kn,n)?null:(Kn=n,(e=ue.getPooled(Vn.select,zn,e,t)).type="select",e.target=Gn,z(e),e))}var Jn={eventTypes:Vn,extractEvents:function(e,t,n,i){var o,r=i.window===i?i.document:9===i.nodeType?i:i.ownerDocument;if(!(o=!r)){e:{r=Fn(r),o=S.onSelect;for(var a=0;a<o.length;a++){var s=o[a];if(!r.hasOwnProperty(s)||!r[s]){r=!1;break e}}r=!0}o=!r}if(o)return null;switch(r=t?M(t):window,e){case"focus":(We(r)||"true"===r.contentEditable)&&(Gn=r,zn=t,Kn=null);break;case"blur":Kn=zn=Gn=null;break;case"mousedown":Yn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Yn=!1,Xn(n,i);case"selectionchange":if(Bn)break;case"keydown":case"keyup":return Xn(n,i)}return null}};function $n(e,t){return e=r({children:void 0},t),(t=function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Qn(e,t,n,i){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Ct(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(i&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Zn(e,t){return null!=t.dangerouslySetInnerHTML&&s("91"),r({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ei(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&s("92"),Array.isArray(t)&&(1>=t.length||s("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:Ct(n)}}function ti(e,t){var n=Ct(t.value),i=Ct(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=i&&(e.defaultValue=""+i)}function ni(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}D.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),E=W,N=j,O=M,D.injectEventPluginsByName({SimpleEventPlugin:En,EnterLeaveEventPlugin:en,ChangeEventPlugin:qt,SelectEventPlugin:Jn,BeforeInputEventPlugin:Ie});var ii={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function oi(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 ri(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?oi(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ai,si=void 0,ci=(ai=function(e,t){if(e.namespaceURI!==ii.svg||"innerHTML"in e)e.innerHTML=t;else{for((si=si||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=si.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,i){MSApp.execUnsafeLocalFunction((function(){return ai(e,t)}))}:ai);function li(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ui={animationIterationCount:!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},fi=["Webkit","ms","Moz","O"];function di(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ui.hasOwnProperty(e)&&ui[e]?(""+t).trim():t+"px"}function pi(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var i=0===n.indexOf("--"),o=di(n,t[n],i);"float"===n&&(n="cssFloat"),i?e.setProperty(n,o):e[n]=o}}Object.keys(ui).forEach((function(e){fi.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ui[t]=ui[e]}))}));var hi=r({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 gi(e,t){t&&(hi[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&s("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&s("60"),"object"===i(t.dangerouslySetInnerHTML)&&"__html"in t.dangerouslySetInnerHTML||s("61")),null!=t.style&&"object"!==i(t.style)&&s("62",""))}function mi(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}}function yi(e,t){var n=Fn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=S[t];for(var i=0;i<t.length;i++){var o=t[i];if(!n.hasOwnProperty(o)||!n[o]){switch(o){case"scroll":An("scroll",e);break;case"focus":case"blur":An("focus",e),An("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":qe(o)&&An(o,e);break;case"invalid":case"submit":case"reset":break;default:-1===ie.indexOf(o)&&wn(o,e)}n[o]=!0}}}function vi(){}var bi=null,_i=null;function Ci(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Si(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"===i(t.dangerouslySetInnerHTML)&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ei="function"==typeof setTimeout?setTimeout:void 0,Ni="function"==typeof clearTimeout?clearTimeout:void 0,Oi=a.unstable_scheduleCallback,Ti=a.unstable_cancelCallback;function Ii(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function wi(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var Ai=[],ki=-1;function Di(e){0>ki||(e.current=Ai[ki],Ai[ki]=null,ki--)}function Pi(e,t){ki++,Ai[ki]=e.current,e.current=t}var Ri={},xi={current:Ri},Fi={current:!1},Li=Ri;function Ui(e,t){var n=e.type.contextTypes;if(!n)return Ri;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var o,r={};for(o in n)r[o]=t[o];return i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function ji(e){return null!=(e=e.childContextTypes)}function Mi(e){Di(Fi),Di(xi)}function Wi(e){Di(Fi),Di(xi)}function Hi(e,t,n){xi.current!==Ri&&s("168"),Pi(xi,t),Pi(Fi,n)}function qi(e,t,n){var i=e.stateNode;if(e=t.childContextTypes,"function"!=typeof i.getChildContext)return n;for(var o in i=i.getChildContext())o in e||s("108",lt(t)||"Unknown",o);return r({},n,i)}function Bi(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Ri,Li=xi.current,Pi(xi,t),Pi(Fi,Fi.current),!0}function Vi(e,t,n){var i=e.stateNode;i||s("169"),n?(t=qi(e,t,Li),i.__reactInternalMemoizedMergedChildContext=t,Di(Fi),Di(xi),Pi(xi,t)):Di(Fi),Pi(Fi,n)}var Gi=null,zi=null;function Ki(e){return function(t){try{return e(t)}catch(e){}}}function Yi(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.contextDependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Xi(e,t,n,i){return new Yi(e,t,n,i)}function Ji(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $i(e,t){var n=e.alternate;return null===n?((n=Xi(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.contextDependencies=e.contextDependencies,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Qi(e,t,n,o,r,a){var c=2;if(o=e,"function"==typeof e)Ji(e)&&(c=1);else if("string"==typeof e)c=5;else e:switch(e){case $e:return Zi(n.children,r,a,t);case nt:return eo(n,3|r,a,t);case Qe:return eo(n,2|r,a,t);case Ze:return(e=Xi(12,n,t,4|r)).elementType=Ze,e.type=Ze,e.expirationTime=a,e;case ot:return(e=Xi(13,n,t,r)).elementType=ot,e.type=ot,e.expirationTime=a,e;default:if("object"===i(e)&&null!==e)switch(e.$$typeof){case et:c=10;break e;case tt:c=9;break e;case it:c=11;break e;case rt:c=14;break e;case at:c=16,o=null;break e}s("130",null==e?e:i(e),"")}return(t=Xi(c,n,t,r)).elementType=e,t.type=o,t.expirationTime=a,t}function Zi(e,t,n,i){return(e=Xi(7,e,i,t)).expirationTime=n,e}function eo(e,t,n,i){return e=Xi(8,e,i,t),t=0==(1&t)?Qe:nt,e.elementType=t,e.type=t,e.expirationTime=n,e}function to(e,t,n){return(e=Xi(6,e,null,t)).expirationTime=n,e}function no(e,t,n){return(t=Xi(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function io(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n<t?e.earliestPendingTime=t:e.latestPendingTime>t&&(e.latestPendingTime=t),ao(t,e)}function oo(e,t){e.didError=!1,e.latestPingedTime>=t&&(e.latestPingedTime=0);var n=e.earliestPendingTime,i=e.latestPendingTime;n===t?e.earliestPendingTime=i===t?e.latestPendingTime=0:i:i===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,i=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:n<t?e.earliestSuspendedTime=t:i>t&&(e.latestSuspendedTime=t),ao(t,e)}function ro(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function ao(e,t){var n=t.earliestSuspendedTime,i=t.latestSuspendedTime,o=t.earliestPendingTime,r=t.latestPingedTime;0===(o=0!==o?o:r)&&(0===e||i<e)&&(o=i),0!==(e=o)&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=o,t.expirationTime=e}function so(e,t){if(e&&e.defaultProps)for(var n in t=r({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var co=(new o.Component).refs;function lo(e,t,n,i){n=null==(n=n(i,t=e.memoizedState))?t:r({},t,n),e.memoizedState=n,null!==(i=e.updateQueue)&&0===e.expirationTime&&(i.baseState=n)}var uo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===rn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var i=As(),o=ea(i=es(i,e));o.payload=t,null!=n&&(o.callback=n),Ya(),na(e,o),os(e,i)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var i=As(),o=ea(i=es(i,e));o.tag=Yr,o.payload=t,null!=n&&(o.callback=n),Ya(),na(e,o),os(e,i)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=As(),i=ea(n=es(n,e));i.tag=Xr,null!=t&&(i.callback=t),Ya(),na(e,i),os(e,n)}};function fo(e,t,n,i,o,r,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(i,r,a):!t.prototype||!t.prototype.isPureReactComponent||(!on(n,i)||!on(o,r))}function po(e,t,n){var o=!1,r=Ri,a=t.contextType;return"object"===i(a)&&null!==a?a=zr(a):(r=ji(t)?Li:xi.current,a=(o=null!=(o=t.contextTypes))?Ui(e,r):Ri),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=uo,e.stateNode=t,t._reactInternalFiber=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=a),t}function ho(e,t,n,i){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,i),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&uo.enqueueReplaceState(t,t.state,null)}function go(e,t,n,o){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=co;var a=t.contextType;"object"===i(a)&&null!==a?r.context=zr(a):(a=ji(t)?Li:xi.current,r.context=Ui(e,a)),null!==(a=e.updateQueue)&&(aa(e,a,n,r,o),r.state=e.memoizedState),"function"==typeof(a=t.getDerivedStateFromProps)&&(lo(e,t,a,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&uo.enqueueReplaceState(r,r.state,null),null!==(a=e.updateQueue)&&(aa(e,a,n,r,o),r.state=e.memoizedState)),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}var mo=Array.isArray;function yo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!==i(e)){if(n._owner){n=n._owner;var o=void 0;n&&(1!==n.tag&&s("309"),o=n.stateNode),o||s("147",e);var r=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:(t=function(e){var t=o.refs;t===co&&(t=o.refs={}),null===e?delete t[r]:t[r]=e},t._stringRef=r,t)}"string"!=typeof e&&s("284"),n._owner||s("290",e)}return e}function vo(e,t){"textarea"!==e.type&&s("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function bo(e){function t(t,n){if(e){var i=t.lastEffect;null!==i?(i.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,i){if(!e)return null;for(;null!==i;)t(n,i),i=i.sibling;return null}function o(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 r(e,t,n){return(e=$i(e,t)).index=0,e.sibling=null,e}function a(t,n,i){return t.index=i,e?null!==(i=t.alternate)?(i=i.index)<n?(t.effectTag=2,n):i:(t.effectTag=2,n):n}function c(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,i){return null===t||6!==t.tag?((t=to(n,e.mode,i)).return=e,t):((t=r(t,n)).return=e,t)}function u(e,t,n,i){return null!==t&&t.elementType===n.type?((i=r(t,n.props)).ref=yo(e,t,n),i.return=e,i):((i=Qi(n.type,n.key,n.props,null,e.mode,i)).ref=yo(e,t,n),i.return=e,i)}function f(e,t,n,i){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=no(n,e.mode,i)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function d(e,t,n,i,o){return null===t||7!==t.tag?((t=Zi(n,e.mode,i,o)).return=e,t):((t=r(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=to(""+t,e.mode,n)).return=e,t;if("object"===i(t)&&null!==t){switch(t.$$typeof){case Xe:return(n=Qi(t.type,t.key,t.props,null,e.mode,n)).ref=yo(e,null,t),n.return=e,n;case Je:return(t=no(t,e.mode,n)).return=e,t}if(mo(t)||ct(t))return(t=Zi(t,e.mode,n,null)).return=e,t;vo(e,t)}return null}function h(e,t,n,o){var r=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==r?null:l(e,t,""+n,o);if("object"===i(n)&&null!==n){switch(n.$$typeof){case Xe:return n.key===r?n.type===$e?d(e,t,n.props.children,o,r):u(e,t,n,o):null;case Je:return n.key===r?f(e,t,n,o):null}if(mo(n)||ct(n))return null!==r?null:d(e,t,n,o,null);vo(e,n)}return null}function g(e,t,n,o,r){if("string"==typeof o||"number"==typeof o)return l(t,e=e.get(n)||null,""+o,r);if("object"===i(o)&&null!==o){switch(o.$$typeof){case Xe:return e=e.get(null===o.key?n:o.key)||null,o.type===$e?d(t,e,o.props.children,r,o.key):u(t,e,o,r);case Je:return f(t,e=e.get(null===o.key?n:o.key)||null,o,r)}if(mo(o)||ct(o))return d(t,e=e.get(n)||null,o,r,null);vo(t,o)}return null}function m(i,r,s,c){for(var l=null,u=null,f=r,d=r=0,m=null;null!==f&&d<s.length;d++){f.index>d?(m=f,f=null):m=f.sibling;var y=h(i,f,s[d],c);if(null===y){null===f&&(f=m);break}e&&f&&null===y.alternate&&t(i,f),r=a(y,r,d),null===u?l=y:u.sibling=y,u=y,f=m}if(d===s.length)return n(i,f),l;if(null===f){for(;d<s.length;d++)(f=p(i,s[d],c))&&(r=a(f,r,d),null===u?l=f:u.sibling=f,u=f);return l}for(f=o(i,f);d<s.length;d++)(m=g(f,i,d,s[d],c))&&(e&&null!==m.alternate&&f.delete(null===m.key?d:m.key),r=a(m,r,d),null===u?l=m:u.sibling=m,u=m);return e&&f.forEach((function(e){return t(i,e)})),l}function y(i,r,c,l){var u=ct(c);"function"!=typeof u&&s("150"),null==(c=u.call(c))&&s("151");for(var f=u=null,d=r,m=r=0,y=null,v=c.next();null!==d&&!v.done;m++,v=c.next()){d.index>m?(y=d,d=null):y=d.sibling;var b=h(i,d,v.value,l);if(null===b){d||(d=y);break}e&&d&&null===b.alternate&&t(i,d),r=a(b,r,m),null===f?u=b:f.sibling=b,f=b,d=y}if(v.done)return n(i,d),u;if(null===d){for(;!v.done;m++,v=c.next())null!==(v=p(i,v.value,l))&&(r=a(v,r,m),null===f?u=v:f.sibling=v,f=v);return u}for(d=o(i,d);!v.done;m++,v=c.next())null!==(v=g(d,i,m,v.value,l))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),r=a(v,r,m),null===f?u=v:f.sibling=v,f=v);return e&&d.forEach((function(e){return t(i,e)})),u}return function(e,o,a,l){var u="object"===i(a)&&null!==a&&a.type===$e&&null===a.key;u&&(a=a.props.children);var f="object"===i(a)&&null!==a;if(f)switch(a.$$typeof){case Xe:e:{for(f=a.key,u=o;null!==u;){if(u.key===f){if(7===u.tag?a.type===$e:u.elementType===a.type){n(e,u.sibling),(o=r(u,a.type===$e?a.props.children:a.props)).ref=yo(e,u,a),o.return=e,e=o;break e}n(e,u);break}t(e,u),u=u.sibling}a.type===$e?((o=Zi(a.props.children,e.mode,l,a.key)).return=e,e=o):((l=Qi(a.type,a.key,a.props,null,e.mode,l)).ref=yo(e,o,a),l.return=e,e=l)}return c(e);case Je:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(e,o.sibling),(o=r(o,a.children||[])).return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}(o=no(a,e.mode,l)).return=e,e=o}return c(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==o&&6===o.tag?(n(e,o.sibling),(o=r(o,a)).return=e,e=o):(n(e,o),(o=to(a,e.mode,l)).return=e,e=o),c(e);if(mo(a))return m(e,o,a,l);if(ct(a))return y(e,o,a,l);if(f&&vo(e,a),void 0===a&&!u)switch(e.tag){case 1:case 0:s("152",(l=e.type).displayName||l.name||"Component")}return n(e,o)}}var _o=bo(!0),Co=bo(!1),So={},Eo={current:So},No={current:So},Oo={current:So};function To(e){return e===So&&s("174"),e}function Io(e,t){Pi(Oo,t),Pi(No,e),Pi(Eo,So);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ri(null,"");break;default:t=ri(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Di(Eo),Pi(Eo,t)}function wo(e){Di(Eo),Di(No),Di(Oo)}function Ao(e){To(Oo.current);var t=To(Eo.current),n=ri(t,e.type);t!==n&&(Pi(No,e),Pi(Eo,n))}function ko(e){No.current===e&&(Di(Eo),Di(No))}var Do=0,Po=2,Ro=4,xo=8,Fo=16,Lo=32,Uo=64,jo=128,Mo=ze.ReactCurrentDispatcher,Wo=0,Ho=null,qo=null,Bo=null,Vo=null,Go=null,zo=null,Ko=0,Yo=null,Xo=0,Jo=!1,$o=null,Qo=0;function Zo(){s("307")}function er(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tn(e[n],t[n]))return!1;return!0}function tr(e,t,n,i,o,r){if(Wo=r,Ho=t,Bo=null!==e?e.memoizedState:null,Mo.current=null===Bo?hr:gr,t=n(i,o),Jo){do{Jo=!1,Qo+=1,Bo=null!==e?e.memoizedState:null,zo=Vo,Yo=Go=qo=null,Mo.current=gr,t=n(i,o)}while(Jo);$o=null,Qo=0}return Mo.current=pr,(e=Ho).memoizedState=Vo,e.expirationTime=Ko,e.updateQueue=Yo,e.effectTag|=Xo,e=null!==qo&&null!==qo.next,Wo=0,zo=Go=Vo=Bo=qo=Ho=null,Ko=0,Yo=null,Xo=0,e&&s("300"),t}function nr(){Mo.current=pr,Wo=0,zo=Go=Vo=Bo=qo=Ho=null,Ko=0,Yo=null,Xo=0,Jo=!1,$o=null,Qo=0}function ir(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===Go?Vo=Go=e:Go=Go.next=e,Go}function or(){if(null!==zo)zo=(Go=zo).next,Bo=null!==(qo=Bo)?qo.next:null;else{null===Bo&&s("310");var e={memoizedState:(qo=Bo).memoizedState,baseState:qo.baseState,queue:qo.queue,baseUpdate:qo.baseUpdate,next:null};Go=null===Go?Vo=e:Go.next=e,Bo=qo.next}return Go}function rr(e,t){return"function"==typeof t?t(e):t}function ar(e){var t=or(),n=t.queue;if(null===n&&s("311"),0<Qo){var i=n.dispatch;if(null!==$o){var o=$o.get(n);if(void 0!==o){$o.delete(n);var r=t.memoizedState;do{r=e(r,o.action),o=o.next}while(null!==o);return tn(r,t.memoizedState)||(Tr=!0),t.memoizedState=r,t.baseUpdate===n.last&&(t.baseState=r),[r,i]}}return[t.memoizedState,i]}i=n.last;var a=t.baseUpdate;if(r=t.baseState,null!==a?(null!==i&&(i.next=null),i=a.next):i=null!==i?i.next:null,null!==i){var c=o=null,l=i,u=!1;do{var f=l.expirationTime;f<Wo?(u||(u=!0,c=a,o=r),f>Ko&&(Ko=f)):r=l.eagerReducer===e?l.eagerState:e(r,l.action),a=l,l=l.next}while(null!==l&&l!==i);u||(c=a,o=r),tn(r,t.memoizedState)||(Tr=!0),t.memoizedState=r,t.baseUpdate=c,t.baseState=o,n.eagerReducer=e,n.eagerState=r}return[t.memoizedState,n.dispatch]}function sr(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},null===Yo?(Yo={lastEffect:null}).lastEffect=e.next=e:null===(t=Yo.lastEffect)?Yo.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,Yo.lastEffect=e),e}function cr(e,t,n,i){var o=ir();Xo|=e,o.memoizedState=sr(t,n,void 0,void 0===i?null:i)}function lr(e,t,n,i){var o=or();i=void 0===i?null:i;var r=void 0;if(null!==qo){var a=qo.memoizedState;if(r=a.destroy,null!==i&&er(i,a.deps))return void sr(Do,n,r,i)}Xo|=e,o.memoizedState=sr(t,n,r,i)}function ur(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 fr(){}function dr(e,t,n){25>Qo||s("301");var i=e.alternate;if(e===Ho||null!==i&&i===Ho)if(Jo=!0,e={expirationTime:Wo,action:n,eagerReducer:null,eagerState:null,next:null},null===$o&&($o=new Map),void 0===(n=$o.get(t)))$o.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{Ya();var o=As(),r={expirationTime:o=es(o,e),action:n,eagerReducer:null,eagerState:null,next:null},a=t.last;if(null===a)r.next=r;else{var c=a.next;null!==c&&(r.next=c),a.next=r}if(t.last=r,0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.eagerReducer))try{var l=t.eagerState,u=i(l,n);if(r.eagerReducer=i,r.eagerState=u,tn(u,l))return}catch(e){}os(e,o)}}var pr={readContext:zr,useCallback:Zo,useContext:Zo,useEffect:Zo,useImperativeHandle:Zo,useLayoutEffect:Zo,useMemo:Zo,useReducer:Zo,useRef:Zo,useState:Zo,useDebugValue:Zo},hr={readContext:zr,useCallback:function(e,t){return ir().memoizedState=[e,void 0===t?null:t],e},useContext:zr,useEffect:function(e,t){return cr(516,jo|Uo,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,cr(4,Ro|Lo,ur.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cr(4,Ro|Lo,e,t)},useMemo:function(e,t){var n=ir();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=ir();return t=void 0!==n?n(t):t,i.memoizedState=i.baseState=t,e=(e=i.queue={last:null,dispatch:null,eagerReducer:e,eagerState:t}).dispatch=dr.bind(null,Ho,e),[i.memoizedState,e]},useRef:function(e){return e={current:e},ir().memoizedState=e},useState:function(e){var t=ir();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,eagerReducer:rr,eagerState:e}).dispatch=dr.bind(null,Ho,e),[t.memoizedState,e]},useDebugValue:fr},gr={readContext:zr,useCallback:function(e,t){var n=or();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&er(t,i[1])?i[0]:(n.memoizedState=[e,t],e)},useContext:zr,useEffect:function(e,t){return lr(516,jo|Uo,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,lr(4,Ro|Lo,ur.bind(null,t,e),n)},useLayoutEffect:function(e,t){return lr(4,Ro|Lo,e,t)},useMemo:function(e,t){var n=or();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&er(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:ar,useRef:function(){return or().memoizedState},useState:function(e){return ar(rr)},useDebugValue:fr},mr=null,yr=null,vr=!1;function br(e,t){var n=Xi(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function _r(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Cr(e){if(vr){var t=yr;if(t){var n=t;if(!_r(e,t)){if(!(t=Ii(n))||!_r(e,t))return e.effectTag|=2,vr=!1,void(mr=e);br(mr,n)}mr=e,yr=wi(t)}else e.effectTag|=2,vr=!1,mr=e}}function Sr(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;mr=e}function Er(e){if(e!==mr)return!1;if(!vr)return Sr(e),vr=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Si(t,e.memoizedProps))for(t=yr;t;)br(e,t),t=Ii(t);return Sr(e),yr=mr?Ii(e.stateNode):null,!0}function Nr(){yr=mr=null,vr=!1}var Or=ze.ReactCurrentOwner,Tr=!1;function Ir(e,t,n,i){t.child=null===e?Co(t,null,n,i):_o(t,e.child,n,i)}function wr(e,t,n,i,o){n=n.render;var r=t.ref;return Gr(t,o),i=tr(e,t,n,i,r,o),null===e||Tr?(t.effectTag|=1,Ir(e,t,i,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ur(e,t,o))}function Ar(e,t,n,i,o,r){if(null===e){var a=n.type;return"function"!=typeof a||Ji(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Qi(n.type,null,i,null,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,kr(e,t,a,i,o,r))}return a=e.child,o<r&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:on)(o,i)&&e.ref===t.ref)?Ur(e,t,r):(t.effectTag|=1,(e=$i(a,i)).ref=t.ref,e.return=t,t.child=e)}function kr(e,t,n,i,o,r){return null!==e&&on(e.memoizedProps,i)&&e.ref===t.ref&&(Tr=!1,o<r)?Ur(e,t,r):Pr(e,t,n,i,r)}function Dr(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Pr(e,t,n,i,o){var r=ji(n)?Li:xi.current;return r=Ui(t,r),Gr(t,o),n=tr(e,t,n,i,r,o),null===e||Tr?(t.effectTag|=1,Ir(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ur(e,t,o))}function Rr(e,t,n,o,r){if(ji(n)){var a=!0;Bi(t)}else a=!1;if(Gr(t,r),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),po(t,n,o),go(t,n,o,r),o=!0;else if(null===e){var s=t.stateNode,c=t.memoizedProps;s.props=c;var l=s.context,u=n.contextType;"object"===i(u)&&null!==u?u=zr(u):u=Ui(t,u=ji(n)?Li:xi.current);var f=n.getDerivedStateFromProps,d="function"==typeof f||"function"==typeof s.getSnapshotBeforeUpdate;d||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(c!==o||l!==u)&&ho(t,s,o,u),$r=!1;var p=t.memoizedState;l=s.state=p;var h=t.updateQueue;null!==h&&(aa(t,h,o,s,r),l=t.memoizedState),c!==o||p!==l||Fi.current||$r?("function"==typeof f&&(lo(t,n,f,o),l=t.memoizedState),(c=$r||fo(t,n,c,o,p,l,u))?(d||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.effectTag|=4)):("function"==typeof s.componentDidMount&&(t.effectTag|=4),t.memoizedProps=o,t.memoizedState=l),s.props=o,s.state=l,s.context=u,o=c):("function"==typeof s.componentDidMount&&(t.effectTag|=4),o=!1)}else s=t.stateNode,c=t.memoizedProps,s.props=t.type===t.elementType?c:so(t.type,c),l=s.context,"object"===i(u=n.contextType)&&null!==u?u=zr(u):u=Ui(t,u=ji(n)?Li:xi.current),(d="function"==typeof(f=n.getDerivedStateFromProps)||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(c!==o||l!==u)&&ho(t,s,o,u),$r=!1,l=t.memoizedState,p=s.state=l,null!==(h=t.updateQueue)&&(aa(t,h,o,s,r),p=t.memoizedState),c!==o||l!==p||Fi.current||$r?("function"==typeof f&&(lo(t,n,f,o),p=t.memoizedState),(f=$r||fo(t,n,c,o,l,p,u))?(d||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(o,p,u),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(o,p,u)),"function"==typeof s.componentDidUpdate&&(t.effectTag|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof s.componentDidUpdate||c===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||c===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=o,t.memoizedState=p),s.props=o,s.state=p,s.context=u,o=f):("function"!=typeof s.componentDidUpdate||c===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||c===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),o=!1);return xr(e,t,n,o,a,r)}function xr(e,t,n,i,o,r){Dr(e,t);var a=0!=(64&t.effectTag);if(!i&&!a)return o&&Vi(t,n,!1),Ur(e,t,r);i=t.stateNode,Or.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:i.render();return t.effectTag|=1,null!==e&&a?(t.child=_o(t,e.child,null,r),t.child=_o(t,null,s,r)):Ir(e,t,s,r),t.memoizedState=i.state,o&&Vi(t,n,!0),t.child}function Fr(e){var t=e.stateNode;t.pendingContext?Hi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Hi(0,t.context,!1),Io(e,t.containerInfo)}function Lr(e,t,n){var i=t.mode,o=t.pendingProps,r=t.memoizedState;if(0==(64&t.effectTag)){r=null;var a=!1}else r={timedOutAt:null!==r?r.timedOutAt:0},a=!0,t.effectTag&=-65;if(null===e)if(a){var s=o.fallback;e=Zi(null,i,0,null),0==(1&t.mode)&&(e.child=null!==t.memoizedState?t.child.child:t.child),i=Zi(s,i,n,null),e.sibling=i,(n=e).return=i.return=t}else n=i=Co(t,null,o.children,n);else null!==e.memoizedState?(s=(i=e.child).sibling,a?(n=o.fallback,o=$i(i,i.pendingProps),0==(1&t.mode)&&((a=null!==t.memoizedState?t.child.child:t.child)!==i.child&&(o.child=a)),i=o.sibling=$i(s,n,s.expirationTime),n=o,o.childExpirationTime=0,n.return=i.return=t):n=i=_o(t,i.child,o.children,n)):(s=e.child,a?(a=o.fallback,(o=Zi(null,i,0,null)).child=s,0==(1&t.mode)&&(o.child=null!==t.memoizedState?t.child.child:t.child),(i=o.sibling=Zi(a,i,n,null)).effectTag|=2,n=o,o.childExpirationTime=0,n.return=i.return=t):i=n=_o(t,s,o.children,n)),t.stateNode=e.stateNode;return t.memoizedState=r,t.child=n,i}function Ur(e,t,n){if(null!==e&&(t.contextDependencies=e.contextDependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child&&s("153"),null!==t.child){for(n=$i(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=$i(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function jr(e,t,n){var o=t.expirationTime;if(null!==e){if(e.memoizedProps!==t.pendingProps||Fi.current)Tr=!0;else if(o<n){switch(Tr=!1,t.tag){case 3:Fr(t),Nr();break;case 5:Ao(t);break;case 1:ji(t.type)&&Bi(t);break;case 4:Io(t,t.stateNode.containerInfo);break;case 10:Br(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(o=t.child.childExpirationTime)&&o>=n?Lr(e,t,n):null!==(t=Ur(e,t,n))?t.sibling:null}return Ur(e,t,n)}}else Tr=!1;switch(t.expirationTime=0,t.tag){case 2:o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var r=Ui(t,xi.current);if(Gr(t,n),r=tr(null,t,o,e,r,n),t.effectTag|=1,"object"===i(r)&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof){if(t.tag=1,nr(),ji(o)){var a=!0;Bi(t)}else a=!1;t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null;var c=o.getDerivedStateFromProps;"function"==typeof c&&lo(t,o,c,e),r.updater=uo,t.stateNode=r,r._reactInternalFiber=t,go(t,o,e,n),t=xr(null,t,o,!0,a,n)}else t.tag=0,Ir(null,t,r,n),t=t.child;return t;case 16:switch(r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),a=t.pendingProps,e=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)})),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(r),t.type=e,r=t.tag=function(e){if("function"==typeof e)return Ji(e)?1:0;if(null!=e){if((e=e.$$typeof)===it)return 11;if(e===rt)return 14}return 2}(e),a=so(e,a),c=void 0,r){case 0:c=Pr(null,t,e,a,n);break;case 1:c=Rr(null,t,e,a,n);break;case 11:c=wr(null,t,e,a,n);break;case 14:c=Ar(null,t,e,so(e.type,a),o,n);break;default:s("306",e,"")}return c;case 0:return o=t.type,r=t.pendingProps,Pr(e,t,o,r=t.elementType===o?r:so(o,r),n);case 1:return o=t.type,r=t.pendingProps,Rr(e,t,o,r=t.elementType===o?r:so(o,r),n);case 3:return Fr(t),null===(o=t.updateQueue)&&s("282"),r=null!==(r=t.memoizedState)?r.element:null,aa(t,o,t.pendingProps,null,n),(o=t.memoizedState.element)===r?(Nr(),t=Ur(e,t,n)):(r=t.stateNode,(r=(null===e||null===e.child)&&r.hydrate)&&(yr=wi(t.stateNode.containerInfo),mr=t,r=vr=!0),r?(t.effectTag|=2,t.child=Co(t,null,o,n)):(Ir(e,t,o,n),Nr()),t=t.child),t;case 5:return Ao(t),null===e&&Cr(t),o=t.type,r=t.pendingProps,a=null!==e?e.memoizedProps:null,c=r.children,Si(o,r)?c=null:null!==a&&Si(o,a)&&(t.effectTag|=16),Dr(e,t),1!==n&&1&t.mode&&r.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ir(e,t,c,n),t=t.child),t;case 6:return null===e&&Cr(t),null;case 13:return Lr(e,t,n);case 4:return Io(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=_o(t,null,o,n):Ir(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,wr(e,t,o,r=t.elementType===o?r:so(o,r),n);case 7:return Ir(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ir(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,r=t.pendingProps,c=t.memoizedProps,Br(t,a=r.value),null!==c){var l=c.value;if(0===(a=tn(l,a)?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(l,a):1073741823))){if(c.children===r.children&&!Fi.current){t=Ur(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.contextDependencies;if(null!==u){c=l.child;for(var f=u.first;null!==f;){if(f.context===o&&0!=(f.observedBits&a)){1===l.tag&&((f=ea(n)).tag=Xr,na(l,f)),l.expirationTime<n&&(l.expirationTime=n),null!==(f=l.alternate)&&f.expirationTime<n&&(f.expirationTime=n),f=n;for(var d=l.return;null!==d;){var p=d.alternate;if(d.childExpirationTime<f)d.childExpirationTime=f,null!==p&&p.childExpirationTime<f&&(p.childExpirationTime=f);else{if(!(null!==p&&p.childExpirationTime<f))break;p.childExpirationTime=f}d=d.return}u.expirationTime<n&&(u.expirationTime=n);break}f=f.next}}else c=10===l.tag&&l.type===t.type?null:l.child;if(null!==c)c.return=l;else for(c=l;null!==c;){if(c===t){c=null;break}if(null!==(l=c.sibling)){l.return=c.return,c=l;break}c=c.return}l=c}}Ir(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=(a=t.pendingProps).children,Gr(t,n),o=o(r=zr(r,a.unstable_observedBits)),t.effectTag|=1,Ir(e,t,o,n),t.child;case 14:return a=so(r=t.type,t.pendingProps),Ar(e,t,r,a=so(r.type,a),o,n);case 15:return kr(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:so(o,r),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,ji(o)?(e=!0,Bi(t)):e=!1,Gr(t,n),po(t,o,r),go(t,o,r,n),xr(null,t,o,!0,e,n)}s("156")}var Mr={current:null},Wr=null,Hr=null,qr=null;function Br(e,t){var n=e.type._context;Pi(Mr,n._currentValue),n._currentValue=t}function Vr(e){var t=Mr.current;Di(Mr),e.type._context._currentValue=t}function Gr(e,t){Wr=e,qr=Hr=null;var n=e.contextDependencies;null!==n&&n.expirationTime>=t&&(Tr=!0),e.contextDependencies=null}function zr(e,t){return qr!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(qr=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Hr?(null===Wr&&s("308"),Hr=t,Wr.contextDependencies={first:t,expirationTime:0}):Hr=Hr.next=t),e._currentValue}var Kr=0,Yr=1,Xr=2,Jr=3,$r=!1;function Qr(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Zr(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function ea(e){return{expirationTime:e,tag:Kr,payload:null,callback:null,next:null,nextEffect:null}}function ta(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function na(e,t){var n=e.alternate;if(null===n){var i=e.updateQueue,o=null;null===i&&(i=e.updateQueue=Qr(e.memoizedState))}else i=e.updateQueue,o=n.updateQueue,null===i?null===o?(i=e.updateQueue=Qr(e.memoizedState),o=n.updateQueue=Qr(n.memoizedState)):i=e.updateQueue=Zr(o):null===o&&(o=n.updateQueue=Zr(i));null===o||i===o?ta(i,t):null===i.lastUpdate||null===o.lastUpdate?(ta(i,t),ta(o,t)):(ta(i,t),o.lastUpdate=t)}function ia(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=Qr(e.memoizedState):oa(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function oa(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Zr(t)),t}function ra(e,t,n,i,o,a){switch(n.tag){case Yr:return"function"==typeof(e=n.payload)?e.call(a,i,o):e;case Jr:e.effectTag=-2049&e.effectTag|64;case Kr:if(null==(o="function"==typeof(e=n.payload)?e.call(a,i,o):e))break;return r({},i,o);case Xr:$r=!0}return i}function aa(e,t,n,i,o){$r=!1;for(var r=(t=oa(e,t)).baseState,a=null,s=0,c=t.firstUpdate,l=r;null!==c;){var u=c.expirationTime;u<o?(null===a&&(a=c,r=l),s<u&&(s=u)):(l=ra(e,0,c,l,n,i),null!==c.callback&&(e.effectTag|=32,c.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=c:(t.lastEffect.nextEffect=c,t.lastEffect=c))),c=c.next}for(u=null,c=t.firstCapturedUpdate;null!==c;){var f=c.expirationTime;f<o?(null===u&&(u=c,null===a&&(r=l)),s<f&&(s=f)):(l=ra(e,0,c,l,n,i),null!==c.callback&&(e.effectTag|=32,c.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=c:(t.lastCapturedEffect.nextEffect=c,t.lastCapturedEffect=c))),c=c.next}null===a&&(t.lastUpdate=null),null===u?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===u&&(r=l),t.baseState=r,t.firstUpdate=a,t.firstCapturedUpdate=u,e.expirationTime=s,e.memoizedState=l}function sa(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),ca(t.firstEffect,n),t.firstEffect=t.lastEffect=null,ca(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function ca(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var i=t;"function"!=typeof n&&s("191",n),n.call(i)}e=e.nextEffect}}function la(e,t){return{value:e,source:t,stack:ut(t)}}function ua(e){e.effectTag|=4}var fa=void 0,da=void 0,pa=void 0,ha=void 0;fa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},da=function(){},pa=function(e,t,n,i,o){var a=e.memoizedProps;if(a!==i){var s=t.stateNode;switch(To(Eo.current),e=null,n){case"input":a=St(s,a),i=St(s,i),e=[];break;case"option":a=$n(s,a),i=$n(s,i),e=[];break;case"select":a=r({},a,{value:void 0}),i=r({},i,{value:void 0}),e=[];break;case"textarea":a=Zn(s,a),i=Zn(s,i),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof i.onClick&&(s.onclick=vi)}gi(n,i),s=n=void 0;var c=null;for(n in a)if(!i.hasOwnProperty(n)&&a.hasOwnProperty(n)&&null!=a[n])if("style"===n){var l=a[n];for(s in l)l.hasOwnProperty(s)&&(c||(c={}),c[s]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(C.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in i){var u=i[n];if(l=null!=a?a[n]:void 0,i.hasOwnProperty(n)&&u!==l&&(null!=u||null!=l))if("style"===n)if(l){for(s in l)!l.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(c||(c={}),c[s]="");for(s in u)u.hasOwnProperty(s)&&l[s]!==u[s]&&(c||(c={}),c[s]=u[s])}else c||(e||(e=[]),e.push(n,c)),c=u;else"dangerouslySetInnerHTML"===n?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(e=e||[]).push(n,""+u)):"children"===n?l===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(n,""+u):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(C.hasOwnProperty(n)?(null!=u&&yi(o,n),e||l===u||(e=[])):(e=e||[]).push(n,u))}c&&(e=e||[]).push("style",c),o=e,(t.updateQueue=o)&&ua(t)}},ha=function(e,t,n,i){n!==i&&ua(t)};var ga="function"==typeof WeakSet?WeakSet:Set;function ma(e,t){var n=t.source,i=t.stack;null===i&&null!==n&&(i=ut(n)),null!==n&<(n.type),t=t.value,null!==e&&1===e.tag&<(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ya(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Za(e,t)}else t.current=null}function va(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var i=n=n.next;do{if((i.tag&e)!==Do){var o=i.destroy;i.destroy=void 0,void 0!==o&&o()}(i.tag&t)!==Do&&(o=i.create,i.destroy=o()),i=i.next}while(i!==n)}}function ba(e){switch("function"==typeof zi&&zi(e),e.tag){case 0:case 11:case 14:case 15:var t=e.updateQueue;if(null!==t&&null!==(t=t.lastEffect)){var n=t=t.next;do{var i=n.destroy;if(void 0!==i){var o=e;try{i()}catch(e){Za(o,e)}}n=n.next}while(n!==t)}break;case 1:if(ya(e),"function"==typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Za(e,t)}break;case 5:ya(e);break;case 4:Sa(e)}}function _a(e){return 5===e.tag||3===e.tag||4===e.tag}function Ca(e){e:{for(var t=e.return;null!==t;){if(_a(t)){var n=t;break e}t=t.return}s("160"),n=void 0}var i=t=void 0;switch(n.tag){case 5:t=n.stateNode,i=!1;break;case 3:case 4:t=n.stateNode.containerInfo,i=!0;break;default:s("161")}16&n.effectTag&&(li(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||_a(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var o=e;;){if(5===o.tag||6===o.tag)if(n)if(i){var r=t,a=o.stateNode,c=n;8===r.nodeType?r.parentNode.insertBefore(a,c):r.insertBefore(a,c)}else t.insertBefore(o.stateNode,n);else i?(a=t,c=o.stateNode,8===a.nodeType?(r=a.parentNode).insertBefore(c,a):(r=a).appendChild(c),null!=(a=a._reactRootContainer)||null!==r.onclick||(r.onclick=vi)):t.appendChild(o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function Sa(e){for(var t=e,n=!1,i=void 0,o=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&s("160"),n.tag){case 5:i=n.stateNode,o=!1;break e;case 3:case 4:i=n.stateNode.containerInfo,o=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var r=t,a=r;;)if(ba(a),null!==a.child&&4!==a.tag)a.child.return=a,a=a.child;else{if(a===r)break;for(;null===a.sibling;){if(null===a.return||a.return===r)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}o?(r=i,a=t.stateNode,8===r.nodeType?r.parentNode.removeChild(a):r.removeChild(a)):i.removeChild(t.stateNode)}else if(4===t.tag){if(null!==t.child){i=t.stateNode.containerInfo,o=!0,t.child.return=t,t=t.child;continue}}else if(ba(t),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;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function Ea(e,t){switch(t.tag){case 0:case 11:case 14:case 15:va(Ro,xo,t);break;case 1:case 3:case 12:case 17:break;case 5:var n=t.stateNode;if(null!=n){var i=t.memoizedProps;e=null!==e?e.memoizedProps:i;var o=t.type,r=t.updateQueue;t.updateQueue=null,null!==r&&function(e,t,n,i,o){e[L]=o,"input"===n&&"radio"===o.type&&null!=o.name&&Nt(e,o),mi(n,i),i=mi(n,o);for(var r=0;r<t.length;r+=2){var a=t[r],s=t[r+1];"style"===a?pi(e,s):"dangerouslySetInnerHTML"===a?ci(e,s):"children"===a?li(e,s):_t(e,a,s,i)}switch(n){case"input":Ot(e,o);break;case"textarea":ti(e,o);break;case"select":t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!o.multiple,null!=(n=o.value)?Qn(e,!!o.multiple,n,!1):t!==!!o.multiple&&(null!=o.defaultValue?Qn(e,!!o.multiple,o.defaultValue,!0):Qn(e,!!o.multiple,o.multiple?[]:"",!1))}}(n,r,o,e,i)}break;case 6:null===t.stateNode&&s("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 13:if(n=t.memoizedState,i=void 0,e=t,null===n?i=!1:(i=!0,e=t.child,0===n.timedOutAt&&(n.timedOutAt=As())),null!==e&&function(e,t){for(var n=e;;){if(5===n.tag){var i=n.stateNode;if(t)i.style.display="none";else{i=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,i.style.display=di("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else{if(13===n.tag&&null!==n.memoizedState){(i=n.child.sibling).return=n,n=i;continue}if(null!==n.child){n.child.return=n,n=n.child;continue}}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}(e,i),null!==(n=t.updateQueue)){t.updateQueue=null;var a=t.stateNode;null===a&&(a=t.stateNode=new ga),n.forEach((function(e){var n=ns.bind(null,t,e);a.has(e)||(a.add(e),e.then(n,n))}))}break;default:s("163")}}var Na="function"==typeof WeakMap?WeakMap:Map;function Oa(e,t,n){(n=ea(n)).tag=Jr,n.payload={element:null};var i=t.value;return n.callback=function(){Ms(i),ma(e,t)},n}function Ta(e,t,n){(n=ea(n)).tag=Jr;var i=e.type.getDerivedStateFromError;if("function"==typeof i){var o=t.value;n.payload=function(){return i(o)}}var r=e.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(n.callback=function(){"function"!=typeof i&&(null===qa?qa=new Set([this]):qa.add(this));var n=t.value,o=t.stack;ma(e,t),this.componentDidCatch(n,{componentStack:null!==o?o:""})}),n}function Ia(e){switch(e.tag){case 1:ji(e.type)&&Mi();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return wo(),Wi(),0!=(64&(t=e.effectTag))&&s("285"),e.effectTag=-2049&t|64,e;case 5:return ko(e),null;case 13:return 2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:default:return null;case 4:return wo(),null;case 10:return Vr(e),null}}var wa=ze.ReactCurrentDispatcher,Aa=ze.ReactCurrentOwner,ka=1073741822,Da=!1,Pa=null,Ra=null,xa=0,Fa=-1,La=!1,Ua=null,ja=!1,Ma=null,Wa=null,Ha=null,qa=null;function Ba(){if(null!==Pa)for(var e=Pa.return;null!==e;){var t=e;switch(t.tag){case 1:var n=t.type.childContextTypes;null!=n&&Mi();break;case 3:wo(),Wi();break;case 5:ko(t);break;case 4:wo();break;case 10:Vr(t)}e=e.return}Ra=null,xa=0,Fa=-1,La=!1,Pa=null}function Va(){for(;null!==Ua;){var e=Ua.effectTag;if(16&e&&li(Ua.stateNode,""),128&e){var t=Ua.alternate;null!==t&&(null!==(t=t.ref)&&("function"==typeof t?t(null):t.current=null))}switch(14&e){case 2:Ca(Ua),Ua.effectTag&=-3;break;case 6:Ca(Ua),Ua.effectTag&=-3,Ea(Ua.alternate,Ua);break;case 4:Ea(Ua.alternate,Ua);break;case 8:Sa(e=Ua),e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,null!==(e=e.alternate)&&(e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null)}Ua=Ua.nextEffect}}function Ga(){for(;null!==Ua;){if(256&Ua.effectTag)e:{var e=Ua.alternate,t=Ua;switch(t.tag){case 0:case 11:case 15:va(Po,Do,t);break e;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,i=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:so(t.type,n),i),e.__reactInternalSnapshotBeforeUpdate=t}break e;case 3:case 5:case 6:case 4:case 17:break e;default:s("163")}}Ua=Ua.nextEffect}}function za(e,t){for(;null!==Ua;){var n=Ua.effectTag;if(36&n){var i=Ua.alternate,o=Ua,r=t;switch(o.tag){case 0:case 11:case 15:va(Fo,Lo,o);break;case 1:var a=o.stateNode;if(4&o.effectTag)if(null===i)a.componentDidMount();else{var c=o.elementType===o.type?i.memoizedProps:so(o.type,i.memoizedProps);a.componentDidUpdate(c,i.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}null!==(i=o.updateQueue)&&sa(0,i,a);break;case 3:if(null!==(i=o.updateQueue)){if(a=null,null!==o.child)switch(o.child.tag){case 5:case 1:a=o.child.stateNode}sa(0,i,a)}break;case 5:r=o.stateNode,null===i&&4&o.effectTag&&Ci(o.type,o.memoizedProps)&&r.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:s("163")}}128&n&&(null!==(o=Ua.ref)&&(r=Ua.stateNode,"function"==typeof o?o(r):o.current=r)),512&n&&(Ma=e),Ua=Ua.nextEffect}}function Ka(e,t){Ha=Wa=Ma=null;var n=us;us=!0;do{if(512&t.effectTag){var i=!1,o=void 0;try{var r=t;va(jo,Do,r),va(Do,Uo,r)}catch(e){i=!0,o=e}i&&Za(t,o)}t=t.nextEffect}while(null!==t);us=n,0!==(n=e.expirationTime)&&ks(e,n),ms||us||Fs(1073741823,!1)}function Ya(){null!==Wa&&Ti(Wa),null!==Ha&&Ha()}function Xa(e,t){ja=Da=!0,e.current===t&&s("177");var n=e.pendingCommitExpirationTime;0===n&&s("261"),e.pendingCommitExpirationTime=0;var i=t.expirationTime,o=t.childExpirationTime;for(function(e,t){if(e.didError=!1,0===t)e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0;else{t<e.latestPingedTime&&(e.latestPingedTime=0);var n=e.latestPendingTime;0!==n&&(n>t?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>t&&(e.earliestPendingTime=e.latestPendingTime)),0===(n=e.earliestSuspendedTime)?io(e,t):t<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,io(e,t)):t>n&&io(e,t)}ao(0,e)}(e,o>i?o:i),Aa.current=null,i=void 0,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,i=t.firstEffect):i=t:i=t.firstEffect,bi=In,_i=function(){var e=Wn();if(Hn(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(n&&0!==n.rangeCount){t=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{t.nodeType,o.nodeType}catch(e){t=null;break e}var r=0,a=-1,s=-1,c=0,l=0,u=e,f=null;t:for(;;){for(var d;u!==t||0!==i&&3!==u.nodeType||(a=r+i),u!==o||0!==n&&3!==u.nodeType||(s=r+n),3===u.nodeType&&(r+=u.nodeValue.length),null!==(d=u.firstChild);)f=u,u=d;for(;;){if(u===e)break t;if(f===t&&++c===i&&(a=r),f===o&&++l===n&&(s=r),null!==(d=u.nextSibling))break;f=(u=f).parentNode}u=d}t=-1===a||-1===s?null:{start:a,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;return{focusedElem:e,selectionRange:t}}(),In=!1,Ua=i;null!==Ua;){o=!1;var r=void 0;try{Ga()}catch(e){o=!0,r=e}o&&(null===Ua&&s("178"),Za(Ua,r),null!==Ua&&(Ua=Ua.nextEffect))}for(Ua=i;null!==Ua;){o=!1,r=void 0;try{Va()}catch(e){o=!0,r=e}o&&(null===Ua&&s("178"),Za(Ua,r),null!==Ua&&(Ua=Ua.nextEffect))}for(qn(_i),_i=null,In=!!bi,bi=null,e.current=t,Ua=i;null!==Ua;){o=!1,r=void 0;try{za(e,n)}catch(e){o=!0,r=e}o&&(null===Ua&&s("178"),Za(Ua,r),null!==Ua&&(Ua=Ua.nextEffect))}if(null!==i&&null!==Ma){var c=Ka.bind(null,e,i);Wa=a.unstable_runWithPriority(a.unstable_NormalPriority,(function(){return Oi(c)})),Ha=c}Da=ja=!1,"function"==typeof Gi&&Gi(t.stateNode),n=t.expirationTime,0===(t=(t=t.childExpirationTime)>n?t:n)&&(qa=null),function(e,t){e.expirationTime=t,e.finishedWork=null}(e,t)}function Ja(e){for(;;){var t=e.alternate,n=e.return,i=e.sibling;if(0==(1024&e.effectTag)){Pa=e;e:{var o=t,a=xa,c=(t=e).pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 18:break;case 1:case 17:ji(t.type)&&Mi();break;case 3:wo(),Wi(),(c=t.stateNode).pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),null!==o&&null!==o.child||(Er(t),t.effectTag&=-3),da(t);break;case 5:ko(t);var l=To(Oo.current);if(a=t.type,null!==o&&null!=t.stateNode)pa(o,t,a,c,l),o.ref!==t.ref&&(t.effectTag|=128);else if(c){var u=To(Eo.current);if(Er(t)){o=(c=t).stateNode;var f=c.type,d=c.memoizedProps,p=l;switch(o[F]=c,o[L]=d,a=void 0,l=f){case"iframe":case"object":wn("load",o);break;case"video":case"audio":for(f=0;f<ie.length;f++)wn(ie[f],o);break;case"source":wn("error",o);break;case"img":case"image":case"link":wn("error",o),wn("load",o);break;case"form":wn("reset",o),wn("submit",o);break;case"details":wn("toggle",o);break;case"input":Et(o,d),wn("invalid",o),yi(p,"onChange");break;case"select":o._wrapperState={wasMultiple:!!d.multiple},wn("invalid",o),yi(p,"onChange");break;case"textarea":ei(o,d),wn("invalid",o),yi(p,"onChange")}for(a in gi(l,d),f=null,d)d.hasOwnProperty(a)&&(u=d[a],"children"===a?"string"==typeof u?o.textContent!==u&&(f=["children",u]):"number"==typeof u&&o.textContent!==""+u&&(f=["children",""+u]):C.hasOwnProperty(a)&&null!=u&&yi(p,a));switch(l){case"input":Ve(o),Tt(o,d,!0);break;case"textarea":Ve(o),ni(o);break;case"select":case"option":break;default:"function"==typeof d.onClick&&(o.onclick=vi)}a=f,c.updateQueue=a,(c=null!==a)&&ua(t)}else{d=t,o=a,p=c,f=9===l.nodeType?l:l.ownerDocument,u===ii.html&&(u=oi(o)),u===ii.html?"script"===o?((o=f.createElement("div")).innerHTML="<script><\/script>",f=o.removeChild(o.firstChild)):"string"==typeof p.is?f=f.createElement(o,{is:p.is}):(f=f.createElement(o),"select"===o&&p.multiple&&(f.multiple=!0)):f=f.createElementNS(u,o),(o=f)[F]=d,o[L]=c,fa(o,t,!1,!1),p=o;var h=l,g=mi(f=a,d=c);switch(f){case"iframe":case"object":wn("load",p),l=d;break;case"video":case"audio":for(l=0;l<ie.length;l++)wn(ie[l],p);l=d;break;case"source":wn("error",p),l=d;break;case"img":case"image":case"link":wn("error",p),wn("load",p),l=d;break;case"form":wn("reset",p),wn("submit",p),l=d;break;case"details":wn("toggle",p),l=d;break;case"input":Et(p,d),l=St(p,d),wn("invalid",p),yi(h,"onChange");break;case"option":l=$n(p,d);break;case"select":p._wrapperState={wasMultiple:!!d.multiple},l=r({},d,{value:void 0}),wn("invalid",p),yi(h,"onChange");break;case"textarea":ei(p,d),l=Zn(p,d),wn("invalid",p),yi(h,"onChange");break;default:l=d}gi(f,l),u=void 0;var m=f,y=p,v=l;for(u in v)if(v.hasOwnProperty(u)){var b=v[u];"style"===u?pi(y,b):"dangerouslySetInnerHTML"===u?null!=(b=b?b.__html:void 0)&&ci(y,b):"children"===u?"string"==typeof b?("textarea"!==m||""!==b)&&li(y,b):"number"==typeof b&&li(y,""+b):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(C.hasOwnProperty(u)?null!=b&&yi(h,u):null!=b&&_t(y,u,b,g))}switch(f){case"input":Ve(p),Tt(p,d,!1);break;case"textarea":Ve(p),ni(p);break;case"option":null!=d.value&&p.setAttribute("value",""+Ct(d.value));break;case"select":(l=p).multiple=!!d.multiple,null!=(p=d.value)?Qn(l,!!d.multiple,p,!1):null!=d.defaultValue&&Qn(l,!!d.multiple,d.defaultValue,!0);break;default:"function"==typeof l.onClick&&(p.onclick=vi)}(c=Ci(a,c))&&ua(t),t.stateNode=o}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&s("166");break;case 6:o&&null!=t.stateNode?ha(o,t,o.memoizedProps,c):("string"!=typeof c&&(null===t.stateNode&&s("166")),o=To(Oo.current),To(Eo.current),Er(t)?(a=(c=t).stateNode,o=c.memoizedProps,a[F]=c,(c=a.nodeValue!==o)&&ua(t)):(a=t,(c=(9===o.nodeType?o:o.ownerDocument).createTextNode(c))[F]=t,a.stateNode=c));break;case 13:if(c=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=a,Pa=t;break e}c=null!==c,a=null!==o&&null!==o.memoizedState,null!==o&&!c&&a&&(null!==(o=o.child.sibling)&&(null!==(l=t.firstEffect)?(t.firstEffect=o,o.nextEffect=l):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),(c||a)&&(t.effectTag|=4);break;case 4:wo(),da(t);break;case 10:Vr(t);break;default:s("156")}Pa=null}if(t=e,1===xa||1!==t.childExpirationTime){for(c=0,a=t.child;null!==a;)(o=a.expirationTime)>c&&(c=o),(l=a.childExpirationTime)>c&&(c=l),a=a.sibling;t.childExpirationTime=c}if(null!==Pa)return Pa;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(null!==(e=Ia(e)))return e.effectTag&=1023,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==i)return i;if(null===n)break;e=n}return null}function $a(e){var t=jr(e.alternate,e,xa);return e.memoizedProps=e.pendingProps,null===t&&(t=Ja(e)),Aa.current=null,t}function Qa(e,t){Da&&s("243"),Ya(),Da=!0;var n=wa.current;wa.current=pr;var o=e.nextExpirationTimeToWorkOn;o===xa&&e===Ra&&null!==Pa||(Ba(),xa=o,Pa=$i((Ra=e).current,null),e.pendingCommitExpirationTime=0);for(var r=!1;;){try{if(t)for(;null!==Pa&&!Rs();)Pa=$a(Pa);else for(;null!==Pa;)Pa=$a(Pa)}catch(t){if(qr=Hr=Wr=null,nr(),null===Pa)r=!0,Ms(t);else{null===Pa&&s("271");var a=Pa,c=a.return;if(null!==c){e:{var l=e,u=c,f=a,d=t;if(c=xa,f.effectTag|=1024,f.firstEffect=f.lastEffect=null,null!==d&&"object"===i(d)&&"function"==typeof d.then){var p=d;d=u;var h=-1,g=-1;do{if(13===d.tag){var m=d.alternate;if(null!==m&&null!==(m=m.memoizedState)){g=10*(1073741822-m.timedOutAt);break}"number"==typeof(m=d.pendingProps.maxDuration)&&(0>=m?h=0:(-1===h||m<h)&&(h=m))}d=d.return}while(null!==d);d=u;do{if((m=13===d.tag)&&(m=void 0!==d.memoizedProps.fallback&&null===d.memoizedState),m){if(null===(u=d.updateQueue)?((u=new Set).add(p),d.updateQueue=u):u.add(p),0==(1&d.mode)){d.effectTag|=64,f.effectTag&=-1957,1===f.tag&&(null===f.alternate?f.tag=17:((c=ea(1073741823)).tag=Xr,na(f,c))),f.expirationTime=1073741823;break e}u=c;var y=(f=l).pingCache;null===y?(y=f.pingCache=new Na,m=new Set,y.set(p,m)):void 0===(m=y.get(p))&&(m=new Set,y.set(p,m)),m.has(u)||(m.add(u),f=ts.bind(null,f,p,u),p.then(f,f)),-1===h?l=1073741823:(-1===g&&(g=10*(1073741822-ro(l,c))-5e3),l=g+h),0<=l&&Fa<l&&(Fa=l),d.effectTag|=2048,d.expirationTime=c;break e}d=d.return}while(null!==d);d=Error((lt(f.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ut(f))}La=!0,d=la(d,f),l=u;do{switch(l.tag){case 3:l.effectTag|=2048,l.expirationTime=c,ia(l,c=Oa(l,d,c));break e;case 1:if(h=d,g=l.type,f=l.stateNode,0==(64&l.effectTag)&&("function"==typeof g.getDerivedStateFromError||null!==f&&"function"==typeof f.componentDidCatch&&(null===qa||!qa.has(f)))){l.effectTag|=2048,l.expirationTime=c,ia(l,c=Ta(l,h,c));break e}}l=l.return}while(null!==l)}Pa=Ja(a);continue}r=!0,Ms(t)}}break}if(Da=!1,wa.current=n,qr=Hr=Wr=null,nr(),r)Ra=null,e.finishedWork=null;else if(null!==Pa)e.finishedWork=null;else{if(null===(n=e.current.alternate)&&s("281"),Ra=null,La){if(r=e.latestPendingTime,a=e.latestSuspendedTime,c=e.latestPingedTime,0!==r&&r<o||0!==a&&a<o||0!==c&&c<o)return oo(e,o),void Is(e,n,o,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,o=e.nextExpirationTimeToWorkOn=o,t=e.expirationTime=1073741823,void Is(e,n,o,t,-1)}t&&-1!==Fa?(oo(e,o),(t=10*(1073741822-ro(e,o)))<Fa&&(Fa=t),t=10*(1073741822-As()),t=Fa-t,Is(e,n,o,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=o,e.finishedWork=n)}}function Za(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var i=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof i.componentDidCatch&&(null===qa||!qa.has(i)))return na(n,e=Ta(n,e=la(t,e),1073741823)),void os(n,1073741823);break;case 3:return na(n,e=Oa(n,e=la(t,e),1073741823)),void os(n,1073741823)}n=n.return}3===e.tag&&(na(e,n=Oa(e,n=la(t,e),1073741823)),os(e,1073741823))}function es(e,t){var n=a.unstable_getCurrentPriorityLevel(),i=void 0;if(0==(1&t.mode))i=1073741823;else if(Da&&!ja)i=xa;else{switch(n){case a.unstable_ImmediatePriority:i=1073741823;break;case a.unstable_UserBlockingPriority:i=1073741822-10*(1+((1073741822-e+15)/10|0));break;case a.unstable_NormalPriority:i=1073741822-25*(1+((1073741822-e+500)/25|0));break;case a.unstable_LowPriority:case a.unstable_IdlePriority:i=1;break;default:s("313")}null!==Ra&&i===xa&&--i}return n===a.unstable_UserBlockingPriority&&(0===ps||i<ps)&&(ps=i),i}function ts(e,t,n){var i=e.pingCache;null!==i&&i.delete(t),null!==Ra&&xa===n?Ra=null:(t=e.earliestSuspendedTime,i=e.latestSuspendedTime,0!==t&&n<=t&&n>=i&&(e.didError=!1,(0===(t=e.latestPingedTime)||t>n)&&(e.latestPingedTime=n),ao(n,e),0!==(n=e.expirationTime)&&ks(e,n)))}function ns(e,t){var n=e.stateNode;null!==n&&n.delete(t),null!==(e=is(e,t=es(t=As(),e)))&&(io(e,t),0!==(t=e.expirationTime)&&ks(e,t))}function is(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var i=e.return,o=null;if(null===i&&3===e.tag)o=e.stateNode;else for(;null!==i;){if(n=i.alternate,i.childExpirationTime<t&&(i.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===i.return&&3===i.tag){o=i.stateNode;break}i=i.return}return o}function os(e,t){null!==(e=is(e,t))&&(!Da&&0!==xa&&t>xa&&Ba(),io(e,t),Da&&!ja&&Ra===e||ks(e,e.expirationTime),Es>Ss&&(Es=0,s("185")))}function rs(e,t,n,i,o){return a.unstable_runWithPriority(a.unstable_ImmediatePriority,(function(){return e(t,n,i,o)}))}var as=null,ss=null,cs=0,ls=void 0,us=!1,fs=null,ds=0,ps=0,hs=!1,gs=null,ms=!1,ys=!1,vs=null,bs=a.unstable_now(),_s=1073741822-(bs/10|0),Cs=_s,Ss=50,Es=0,Ns=null;function Os(){_s=1073741822-((a.unstable_now()-bs)/10|0)}function Ts(e,t){if(0!==cs){if(t<cs)return;null!==ls&&a.unstable_cancelCallback(ls)}cs=t,e=a.unstable_now()-bs,ls=a.unstable_scheduleCallback(xs,{timeout:10*(1073741822-t)-e})}function Is(e,t,n,i,o){e.expirationTime=i,0!==o||Rs()?0<o&&(e.timeoutHandle=Ei(ws.bind(null,e,t,n),o)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function ws(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,Os(),Cs=_s,Ls(e,n)}function As(){return us||(Ds(),0!==ds&&1!==ds||(Os(),Cs=_s)),Cs}function ks(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===ss?(as=ss=e,e.nextScheduledRoot=e):(ss=ss.nextScheduledRoot=e).nextScheduledRoot=as):t>e.expirationTime&&(e.expirationTime=t),us||(ms?ys&&(fs=e,ds=1073741823,Us(e,1073741823,!1)):1073741823===t?Fs(1073741823,!1):Ts(e,t))}function Ds(){var e=0,t=null;if(null!==ss)for(var n=ss,i=as;null!==i;){var o=i.expirationTime;if(0===o){if((null===n||null===ss)&&s("244"),i===i.nextScheduledRoot){as=ss=i.nextScheduledRoot=null;break}if(i===as)as=o=i.nextScheduledRoot,ss.nextScheduledRoot=o,i.nextScheduledRoot=null;else{if(i===ss){(ss=n).nextScheduledRoot=as,i.nextScheduledRoot=null;break}n.nextScheduledRoot=i.nextScheduledRoot,i.nextScheduledRoot=null}i=n.nextScheduledRoot}else{if(o>e&&(e=o,t=i),i===ss)break;if(1073741823===e)break;n=i,i=i.nextScheduledRoot}}fs=t,ds=e}var Ps=!1;function Rs(){return!!Ps||!!a.unstable_shouldYield()&&(Ps=!0)}function xs(){try{if(!Rs()&&null!==as){Os();var e=as;do{var t=e.expirationTime;0!==t&&_s<=t&&(e.nextExpirationTimeToWorkOn=_s),e=e.nextScheduledRoot}while(e!==as)}Fs(0,!0)}finally{Ps=!1}}function Fs(e,t){if(Ds(),t)for(Os(),Cs=_s;null!==fs&&0!==ds&&e<=ds&&!(Ps&&_s>ds);)Us(fs,ds,_s>ds),Ds(),Os(),Cs=_s;else for(;null!==fs&&0!==ds&&e<=ds;)Us(fs,ds,!1),Ds();if(t&&(cs=0,ls=null),0!==ds&&Ts(fs,ds),Es=0,Ns=null,null!==vs)for(e=vs,vs=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){hs||(hs=!0,gs=e)}}if(hs)throw e=gs,gs=null,hs=!1,e}function Ls(e,t){us&&s("253"),fs=e,ds=t,Us(e,t,!1),Fs(1073741823,!1)}function Us(e,t,n){if(us&&s("245"),us=!0,n){var i=e.finishedWork;null!==i?js(e,i,t):(e.finishedWork=null,-1!==(i=e.timeoutHandle)&&(e.timeoutHandle=-1,Ni(i)),Qa(e,n),null!==(i=e.finishedWork)&&(Rs()?e.finishedWork=i:js(e,i,t)))}else null!==(i=e.finishedWork)?js(e,i,t):(e.finishedWork=null,-1!==(i=e.timeoutHandle)&&(e.timeoutHandle=-1,Ni(i)),Qa(e,n),null!==(i=e.finishedWork)&&js(e,i,t));us=!1}function js(e,t,n){var i=e.firstBatch;if(null!==i&&i._expirationTime>=n&&(null===vs?vs=[i]:vs.push(i),i._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===Ns?Es++:(Ns=e,Es=0),a.unstable_runWithPriority(a.unstable_ImmediatePriority,(function(){Xa(e,t)}))}function Ms(e){null===fs&&s("246"),fs.expirationTime=0,hs||(hs=!0,gs=e)}function Ws(e,t){var n=ms;ms=!0;try{return e(t)}finally{(ms=n)||us||Fs(1073741823,!1)}}function Hs(e,t){if(ms&&!ys){ys=!0;try{return e(t)}finally{ys=!1}}return e(t)}function qs(e,t,n){ms||us||0===ps||(Fs(ps,!1),ps=0);var i=ms;ms=!0;try{return a.unstable_runWithPriority(a.unstable_UserBlockingPriority,(function(){return e(t,n)}))}finally{(ms=i)||us||Fs(1073741823,!1)}}function Bs(e,t,n,i,o){var r=t.current;e:if(n){t:{2===rn(n=n._reactInternalFiber)&&1===n.tag||s("170");var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(ji(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(null!==a);s("171"),a=void 0}if(1===n.tag){var c=n.type;if(ji(c)){n=qi(n,c,a);break e}}n=a}else n=Ri;return null===t.context?t.context=n:t.pendingContext=n,t=o,(o=ea(i)).payload={element:e},null!==(t=void 0===t?null:t)&&(o.callback=t),Ya(),na(r,o),os(r,i),i}function Vs(e,t,n,i){var o=t.current;return Bs(e,t,n,o=es(As(),o),i)}function Gs(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function zs(e){var t=1073741822-25*(1+((1073741822-As()+500)/25|0));t>=ka&&(t=ka-1),this._expirationTime=ka=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Ks(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Ys(e,t,n){e={current:t=Xi(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function Xs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Js(e,t,n,i,o){var r=n._reactRootContainer;if(r){if("function"==typeof o){var a=o;o=function(){var e=Gs(r._internalRoot);a.call(e)}}null!=e?r.legacy_renderSubtreeIntoContainer(e,t,o):r.render(t,o)}else{if(r=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Ys(e,!1,t)}(n,i),"function"==typeof o){var s=o;o=function(){var e=Gs(r._internalRoot);s.call(e)}}Hs((function(){null!=e?r.legacy_renderSubtreeIntoContainer(e,t,o):r.render(t,o)}))}return Gs(r._internalRoot)}function $s(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Xs(t)||s("200"),function(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Je,key:null==i?null:""+i,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}we=function(e,t,n){switch(t){case"input":if(Ot(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var o=W(i);o||s("90"),Ge(i),Ot(i,o)}}}break;case"textarea":ti(e,n);break;case"select":null!=(t=n.value)&&Qn(e,!!n.multiple,t,!1)}},zs.prototype.render=function(e){this._defer||s("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,i=new Ks;return Bs(e,t,null,n,i._onCommit),i},zs.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},zs.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||s("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var i=null,o=t;o!==this;)i=o,o=o._next;null===i&&s("251"),i._next=o._next,this._next=t,e.firstBatch=this}this._defer=!1,Ls(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},zs.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},Ks.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Ks.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&s("191",n),n()}}},Ys.prototype.render=function(e,t){var n=this._internalRoot,i=new Ks;return null!==(t=void 0===t?null:t)&&i.then(t),Vs(e,n,null,i._onCommit),i},Ys.prototype.unmount=function(e){var t=this._internalRoot,n=new Ks;return null!==(e=void 0===e?null:e)&&n.then(e),Vs(null,t,null,n._onCommit),n},Ys.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var i=this._internalRoot,o=new Ks;return null!==(n=void 0===n?null:n)&&o.then(n),Vs(t,i,e,o._onCommit),o},Ys.prototype.createBatch=function(){var e=new zs(this),t=e._expirationTime,n=this._internalRoot,i=n.firstBatch;if(null===i)n.firstBatch=e,e._next=null;else{for(n=null;null!==i&&i._expirationTime>=t;)n=i,i=i._next;e._next=i,null!==n&&(n._next=e)}return e},xe=Ws,Fe=qs,Le=function(){us||0===ps||(Fs(ps,!1),ps=0)};var Qs={createPortal:$s,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?s("188"):s("268",Object.keys(e))),e=null===(e=sn(t))?null:e.stateNode},hydrate:function(e,t,n){return Xs(t)||s("200"),Js(null,e,t,!0,n)},render:function(e,t,n){return Xs(t)||s("200"),Js(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,i){return Xs(n)||s("200"),(null==e||void 0===e._reactInternalFiber)&&s("38"),Js(e,t,n,!1,i)},unmountComponentAtNode:function(e){return Xs(e)||s("40"),!!e._reactRootContainer&&(Hs((function(){Js(null,null,e,!1,(function(){e._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return $s.apply(void 0,arguments)},unstable_batchedUpdates:Ws,unstable_interactiveUpdates:qs,flushSync:function(e,t){us&&s("187");var n=ms;ms=!0;try{return rs(e,t)}finally{ms=n,Fs(1073741823,!1)}},unstable_createRoot:function(e,t){return Xs(e)||s("299","unstable_createRoot"),new Ys(e,!0,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=ms;ms=!0;try{rs(e)}finally{(ms=t)||us||Fs(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[j,M,W,D.injectEventPluginsByName,_,z,function(e){w(e,G)},Pe,Re,Dn,R]}};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Gi=Ki((function(e){return t.onCommitFiberRoot(n,e)})),zi=Ki((function(e){return t.onCommitFiberUnmount(n,e)}))}catch(e){}})(r({},e,{overrideProps:null,currentDispatcherRef:ze.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=sn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:U,bundleType:0,version:"16.8.2",rendererPackageName:"react-dom"});var Zs={default:Qs},ec=Zs&&Qs||Zs;e.exports=ec.default||ec},6116:function(e,t,n){"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=n(3748)},4005:function(e,t){"use strict";function n(e){return n="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},n(e)}var i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,r=i?Symbol.for("react.portal"):60106,a=i?Symbol.for("react.fragment"):60107,s=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,u=i?Symbol.for("react.context"):60110,f=i?Symbol.for("react.async_mode"):60111,d=i?Symbol.for("react.concurrent_mode"):60111,p=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113,g=i?Symbol.for("react.suspense_list"):60120,m=i?Symbol.for("react.memo"):60115,y=i?Symbol.for("react.lazy"):60116,v=i?Symbol.for("react.block"):60121,b=i?Symbol.for("react.fundamental"):60117,_=i?Symbol.for("react.responder"):60118,C=i?Symbol.for("react.scope"):60119;function S(e){if("object"===n(e)&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case d:case a:case c:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case p:case y:case m:case l:return e;default:return t}}case r:return t}}}function E(e){return S(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=y,t.Memo=m,t.Portal=r,t.Profiler=c,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||S(e)===f},t.isConcurrentMode=E,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"===n(e)&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return S(e)===p},t.isFragment=function(e){return S(e)===a},t.isLazy=function(e){return S(e)===y},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===r},t.isProfiler=function(e){return S(e)===c},t.isStrictMode=function(e){return S(e)===s},t.isSuspense=function(e){return S(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===c||e===s||e===h||e===g||"object"===n(e)&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===b||e.$$typeof===_||e.$$typeof===C||e.$$typeof===v)},t.typeOf=S},9972:function(e,t,n){"use strict";e.exports=n(4005)},7600:function(e,t,n){"use strict";function i(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function r(e,t){try{var n=this.props,i=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,i)}finally{this.props=n,this.state=i}}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 n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="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!==n||null!==a||null!==s){var c=e.displayName||e.name,l="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(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=i,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=r;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var i=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,i)}}return e}n.r(t),n.d(t,{polyfill:function(){return a}}),i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0},2434:function(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}t.__esModule=!0;var o=u(n(3074)),r=u(n(1574)),a=u(n(5466)),s=u(n(6116)),c=u(n(5896)),l=u(n(7857));function u(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==i(t)&&"function"!=typeof t?e:t}var d=function(e){function t(){var n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=Array(o),u=0;u<o;u++)r[u]=arguments[u];return n=i=f(this,e.call.apply(e,[this].concat(r))),i._mountOverlayTarget=function(){i._overlayTarget||(i._overlayTarget=document.createElement("div"),i._portalContainerNode=(0,c.default)(i.props.container,(0,l.default)(i).body),i._portalContainerNode.appendChild(i._overlayTarget))},i._unmountOverlayTarget=function(){i._overlayTarget&&(i._portalContainerNode.removeChild(i._overlayTarget),i._overlayTarget=null),i._portalContainerNode=null},i._renderOverlay=function(){var e=i.props.children?a.default.Children.only(i.props.children):null;if(null!==e){i._mountOverlayTarget();var t=!i._overlayInstance;i._overlayInstance=s.default.unstable_renderSubtreeIntoContainer(i,e,i._overlayTarget,(function(){t&&i.props.onRendered&&i.props.onRendered()}))}else i._unrenderOverlay(),i._unmountOverlayTarget()},i._unrenderOverlay=function(){i._overlayTarget&&(s.default.unmountComponentAtNode(i._overlayTarget),i._overlayInstance=null)},i.getMountNode=function(){return i._overlayTarget},f(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+i(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),t.prototype.componentDidMount=function(){this._isMounted=!0,this._renderOverlay()},t.prototype.componentDidUpdate=function(){this._renderOverlay()},t.prototype.componentWillReceiveProps=function(e){this._overlayTarget&&e.container!==this.props.container&&(this._portalContainerNode.removeChild(this._overlayTarget),this._portalContainerNode=(0,c.default)(e.container,(0,l.default)(this).body),this._portalContainerNode.appendChild(this._overlayTarget))},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this._unrenderOverlay(),this._unmountOverlayTarget()},t.prototype.render=function(){return null},t}(a.default.Component);d.displayName="Portal",d.propTypes={container:o.default.oneOfType([r.default,o.default.func]),onRendered:o.default.func},t.default=d,e.exports=t.default},5233:function(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=E(n(9313)),a=E(n(1038)),s=E(n(955)),c=E(n(3074)),l=E(n(1574)),u=E(n(8536)),f=E(n(2909)),d=n(5466),p=E(d),h=E(n(6116)),g=E(n(1312)),m=E(n(9318)),y=E(n(4936)),v=E(n(2686)),b=E(n(8845)),_=E(n(7809)),C=E(n(5896)),S=E(n(7857));function E(e){return e&&e.__esModule?e:{default:e}}function N(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==i(t)&&"function"!=typeof t?e:t}var O=new m.default,T=function(e){function t(){var n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=Array(o),a=0;a<o;a++)r[a]=arguments[a];return n=i=N(this,e.call.apply(e,[this].concat(r))),I.call(i),N(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+i(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),t.prototype.omitProps=function(e,t){var n=Object.keys(e),i={};return n.map((function(n){Object.prototype.hasOwnProperty.call(t,n)||(i[n]=e[n])})),i},t.prototype.render=function(){var e=this.props,n=e.show,i=e.container,r=e.children,a=e.transition,s=e.backdrop,c=e.className,l=e.style,u=e.onExit,f=e.onExiting,h=e.onEnter,g=e.onEntering,m=e.onEntered,b=p.default.Children.only(r),_=this.omitProps(this.props,t.propTypes);if(!(n||a&&!this.state.exited))return null;var C=b.props,S=C.role,E=C.tabIndex;return void 0!==S&&void 0!==E||(b=(0,d.cloneElement)(b,{role:void 0===S?"document":S,tabIndex:null==E?"-1":E})),a&&(b=p.default.createElement(a,{appear:!0,unmountOnExit:!0,in:n,onExit:u,onExiting:f,onExited:this.handleHidden,onEnter:h,onEntering:g,onEntered:m},b)),p.default.createElement(y.default,{ref:this.setMountNode,container:i,onRendered:this.onPortalRendered},p.default.createElement("div",o({ref:this.setModalNodeRef,role:S||"dialog"},_,{style:l,className:c}),s&&this.renderBackdrop(),p.default.createElement(v.default,{ref:this.setDialogRef},b)))},t.prototype.componentWillReceiveProps=function(e){e.show?this.setState({exited:!1}):e.transition||this.setState({exited:!0})},t.prototype.componentWillUpdate=function(e){!this.props.show&&e.show&&this.checkForFocus()},t.prototype.componentDidMount=function(){this._isMounted=!0,this.props.show&&this.onShow()},t.prototype.componentDidUpdate=function(e){var t=this.props.transition;!e.show||this.props.show||t?!e.show&&this.props.show&&this.onShow():this.onHide()},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.show,n=e.transition;this._isMounted=!1,(t||n&&!this.state.exited)&&this.onHide()},t.prototype.autoFocus=function(){if(this.props.autoFocus){var e=this.getDialogElement(),t=(0,r.default)((0,S.default)(this));e&&!(0,a.default)(e,t)&&(this.lastFocus=t,e.hasAttribute("tabIndex")||((0,g.default)(!1,'The modal content node does not accept focus. For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'),e.setAttribute("tabIndex",-1)),e.focus())}},t.prototype.restoreLastFocus=function(){this.lastFocus&&this.lastFocus.focus&&(this.lastFocus.focus(),this.lastFocus=null)},t.prototype.getDialogElement=function(){return h.default.findDOMNode(this.dialog)},t.prototype.isTopModal=function(){return this.props.manager.isTopModal(this)},t}(p.default.Component);T.propTypes=o({},y.default.propTypes,{show:c.default.bool,container:c.default.oneOfType([l.default,c.default.func]),onShow:c.default.func,onHide:c.default.func,backdrop:c.default.oneOfType([c.default.bool,c.default.oneOf(["static"])]),renderBackdrop:c.default.func,onEscapeKeyDown:c.default.func,onEscapeKeyUp:(0,u.default)(c.default.func,"Please use onEscapeKeyDown instead for consistency"),onBackdropClick:c.default.func,backdropStyle:c.default.object,backdropClassName:c.default.string,containerClassName:c.default.string,keyboard:c.default.bool,transition:f.default,backdropTransition:f.default,autoFocus:c.default.bool,enforceFocus:c.default.bool,restoreFocus:c.default.bool,onEnter:c.default.func,onEntering:c.default.func,onEntered:c.default.func,onExit:c.default.func,onExiting:c.default.func,onExited:c.default.func,manager:c.default.object.isRequired}),T.defaultProps={show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,onHide:function(){},manager:O,renderBackdrop:function(e){return p.default.createElement("div",e)}};var I=function(){var e=this;this.state={exited:!this.props.show},this.renderBackdrop=function(){var t=e.props,n=t.backdropStyle,i=t.backdropClassName,o=t.renderBackdrop,r=t.backdropTransition,a=o({ref:function(t){return e.backdrop=t},style:n,className:i,onClick:e.handleBackdropClick});return r&&(a=p.default.createElement(r,{appear:!0,in:e.props.show},a)),a},this.onPortalRendered=function(){e.autoFocus(),e.props.onShow&&e.props.onShow()},this.onShow=function(){var t=(0,S.default)(e),n=(0,C.default)(e.props.container,t.body);e.props.manager.add(e,n,e.props.containerClassName),e._onDocumentKeydownListener=(0,b.default)(t,"keydown",e.handleDocumentKeyDown),e._onDocumentKeyupListener=(0,b.default)(t,"keyup",e.handleDocumentKeyUp),e._onFocusinListener=(0,_.default)(e.enforceFocus)},this.onHide=function(){e.props.manager.remove(e),e._onDocumentKeydownListener.remove(),e._onDocumentKeyupListener.remove(),e._onFocusinListener.remove(),e.props.restoreFocus&&e.restoreLastFocus()},this.setMountNode=function(t){e.mountNode=t?t.getMountNode():t},this.setModalNodeRef=function(t){e.modalNode=t},this.setDialogRef=function(t){e.dialog=t},this.handleHidden=function(){var t;(e.setState({exited:!0}),e.onHide(),e.props.onExited)&&(t=e.props).onExited.apply(t,arguments)},this.handleBackdropClick=function(t){t.target===t.currentTarget&&(e.props.onBackdropClick&&e.props.onBackdropClick(t),!0===e.props.backdrop&&e.props.onHide())},this.handleDocumentKeyDown=function(t){e.props.keyboard&&27===t.keyCode&&e.isTopModal()&&(e.props.onEscapeKeyDown&&e.props.onEscapeKeyDown(t),e.props.onHide())},this.handleDocumentKeyUp=function(t){e.props.keyboard&&27===t.keyCode&&e.isTopModal()&&e.props.onEscapeKeyUp&&e.props.onEscapeKeyUp(t)},this.checkForFocus=function(){s.default&&(e.lastFocus=(0,r.default)())},this.enforceFocus=function(){if(e.props.enforceFocus&&e._isMounted&&e.isTopModal()){var t=e.getDialogElement(),n=(0,r.default)((0,S.default)(e));t&&!(0,a.default)(t,n)&&t.focus()}}};T.Manager=m.default,t.default=T,e.exports=t.default},9318:function(e,t,n){"use strict";t.__esModule=!0;var i=c(n(5137)),o=c(n(1284)),r=c(n(9011)),a=c(n(7136)),s=n(4047);function c(e){return e&&e.__esModule?e:{default:e}}t.default=function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=n.hideSiblingNodes,l=void 0===c||c,u=n.handleContainerOverflow,f=void 0===u||u;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.add=function(e,n,c){var l=t.modals.indexOf(e),u=t.containers.indexOf(n);if(-1!==l)return l;if(l=t.modals.length,t.modals.push(e),t.hideSiblingNodes&&(0,s.hideSiblings)(n,e.mountNode),-1!==u)return t.data[u].modals.push(e),l;var f={modals:[e],classes:c?c.split(/\s+/):[],overflowing:(0,a.default)(n)};return t.handleContainerOverflow&&function(e,t){var n={overflow:"hidden"};e.style={overflow:t.style.overflow,paddingRight:t.style.paddingRight},e.overflowing&&(n.paddingRight=parseInt((0,o.default)(t,"paddingRight")||0,10)+(0,r.default)()+"px"),(0,o.default)(t,n)}(f,n),f.classes.forEach(i.default.addClass.bind(null,n)),t.containers.push(n),t.data.push(f),l},this.remove=function(e){var n=t.modals.indexOf(e);if(-1!==n){var o=function(e,t){return n=function(e){return-1!==e.modals.indexOf(t)},i=-1,e.some((function(e,t){if(n(e,t))return i=t,!0})),i;var n,i}(t.data,e),r=t.data[o],a=t.containers[o];r.modals.splice(r.modals.indexOf(e),1),t.modals.splice(n,1),0===r.modals.length?(r.classes.forEach(i.default.removeClass.bind(null,a)),t.handleContainerOverflow&&function(e,t){var n=e.style;Object.keys(n).forEach((function(e){return t.style[e]=n[e]}))}(r,a),t.hideSiblingNodes&&(0,s.showSiblings)(a,e.mountNode),t.containers.splice(o,1),t.data.splice(o,1)):t.hideSiblingNodes&&(0,s.ariaHidden)(!1,r.modals[r.modals.length-1].mountNode)}},this.isTopModal=function(e){return!!t.modals.length&&t.modals[t.modals.length-1]===e},this.hideSiblingNodes=l,this.handleContainerOverflow=f,this.modals=[],this.containers=[],this.data=[]},e.exports=t.default},4936:function(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}t.__esModule=!0;var o=f(n(3074)),r=f(n(1574)),a=f(n(5466)),s=f(n(6116)),c=f(n(5896)),l=f(n(7857)),u=f(n(2434));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==i(t)&&"function"!=typeof t?e:t}var p=function(e){function t(){var n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=Array(o),a=0;a<o;a++)r[a]=arguments[a];return n=i=d(this,e.call.apply(e,[this].concat(r))),i.setContainer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.props;i._portalContainerNode=(0,c.default)(e.container,(0,l.default)(i).body)},i.getMountNode=function(){return i._portalContainerNode},d(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+i(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),t.prototype.componentDidMount=function(){this.setContainer(),this.forceUpdate(this.props.onRendered)},t.prototype.componentWillReceiveProps=function(e){e.container!==this.props.container&&this.setContainer(e)},t.prototype.componentWillUnmount=function(){this._portalContainerNode=null},t.prototype.render=function(){return this.props.children&&this._portalContainerNode?s.default.createPortal(this.props.children,this._portalContainerNode):null},t}(a.default.Component);p.displayName="Portal",p.propTypes={container:o.default.oneOfType([r.default,o.default.func]),onRendered:o.default.func},t.default=s.default.createPortal?p:u.default,e.exports=t.default},2686:function(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}t.__esModule=!0;var o=a(n(3074)),r=a(n(5466));function a(e){return e&&e.__esModule?e:{default:e}}var s={children:o.default.node},c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==i(t)&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+i(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),t.prototype.render=function(){return this.props.children},t}(r.default.Component);c.propTypes=s,t.default=c,e.exports=t.default},1400:function(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}t.__esModule=!0;var o=u(n(1038)),r=u(n(3074)),a=u(n(5466)),s=u(n(6116)),c=u(n(8845)),l=u(n(7857));function u(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==i(t)&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return a.addEventListeners=function(){var e=a.props.event,t=(0,l.default)(a);a.documentMouseCaptureListener=(0,c.default)(t,e,a.handleMouseCapture,!0),a.documentMouseListener=(0,c.default)(t,e,a.handleMouse),a.documentKeyupListener=(0,c.default)(t,"keyup",a.handleKeyUp)},a.removeEventListeners=function(){a.documentMouseCaptureListener&&a.documentMouseCaptureListener.remove(),a.documentMouseListener&&a.documentMouseListener.remove(),a.documentKeyupListener&&a.documentKeyupListener.remove()},a.handleMouseCapture=function(e){var t;a.preventMouseRootClose=!!((t=e).metaKey||t.altKey||t.ctrlKey||t.shiftKey)||!function(e){return 0===e.button}(e)||(0,o.default)(s.default.findDOMNode(a),e.target)},a.handleMouse=function(e){!a.preventMouseRootClose&&a.props.onRootClose&&a.props.onRootClose(e)},a.handleKeyUp=function(e){27===e.keyCode&&a.props.onRootClose&&a.props.onRootClose(e)},a.preventMouseRootClose=!1,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+i(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),t.prototype.componentDidMount=function(){this.props.disabled||this.addEventListeners()},t.prototype.componentDidUpdate=function(e){!this.props.disabled&&e.disabled?this.addEventListeners():this.props.disabled&&!e.disabled&&this.removeEventListeners()},t.prototype.componentWillUnmount=function(){this.props.disabled||this.removeEventListeners()},t.prototype.render=function(){return this.props.children},t}(a.default.Component);f.displayName="RootCloseWrapper",f.propTypes={onRootClose:r.default.func,children:r.default.element,disabled:r.default.bool,event:r.default.oneOf(["click","mousedown"])},f.defaultProps={event:"click"},t.default=f,e.exports=t.default},8845:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n,r){return(0,i.default)(e,t,n,r),{remove:function(){(0,o.default)(e,t,n,r)}}};var i=r(n(2810)),o=r(n(8557));function r(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},7809:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=!document.addEventListener,n=void 0;t?(document.attachEvent("onfocusin",e),n=function(){return document.detachEvent("onfocusin",e)}):(document.addEventListener("focus",e,!0),n=function(){return document.removeEventListener("focus",e,!0)});return{remove:n}},e.exports=t.default},5896:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e="function"==typeof e?e():e,r.default.findDOMNode(e)||t};var i,o=n(6116),r=(i=o)&&i.__esModule?i:{default:i};e.exports=t.default},7136:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return(0,i.default)(e)||(t=e,t&&"body"===t.tagName.toLowerCase())?function(e){var t=(0,o.default)(e),n=(0,i.default)(t),r=n.innerWidth;if(!r){var a=t.documentElement.getBoundingClientRect();r=a.right-Math.abs(a.left)}return t.body.clientWidth<r}(e):e.scrollHeight>e.clientHeight;var t};var i=r(n(6139)),o=r(n(1393));function r(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},4047:function(e,t){"use strict";t.__esModule=!0,t.ariaHidden=o,t.hideSiblings=function(e,t){i(e,t,(function(e){return o(!0,e)}))},t.showSiblings=function(e,t){i(e,t,(function(e){return o(!1,e)}))};var n=["template","script","style"],i=function(e,t,i){t=[].concat(t),[].forEach.call(e.children,(function(e){var o,r,a;-1===t.indexOf(e)&&(r=(o=e).nodeType,a=o.tagName,1===r&&-1===n.indexOf(a.toLowerCase()))&&i(e)}))};function o(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}},7857:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return(0,o.default)(i.default.findDOMNode(e))};var i=r(n(6116)),o=r(n(1393));function r(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},9425:function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};i.get||i.set?Object.defineProperty(t,n,i):t[n]=e[n]}return t.default=e,t}(n(3074)),o=s(n(5466)),r=s(n(6116)),a=n(7600);n(1964);function s(e){return e&&e.__esModule?e:{default:e}}var c="unmounted";t.UNMOUNTED=c;var l="exited";t.EXITED=l;var u="entering";t.ENTERING=u;var f="entered";t.ENTERED=f;var d="exiting";t.EXITING=d;var p=function(e){var t,n;function i(t,n){var i;i=e.call(this,t,n)||this;var o,r=n.transitionGroup,a=r&&!r.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?a?(o=l,i.appearStatus=u):o=f:o=t.unmountOnExit||t.mountOnEnter?c:l,i.state={status:o},i.nextCallback=null,i}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=i.prototype;return a.getChildContext=function(){return{transitionGroup:null}},i.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:l}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==u&&n!==f&&(t=u):n!==u&&n!==f||(t=d)}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,n,i=this.props.timeout;return e=t=n=i,null!=i&&"number"!=typeof i&&(e=i.exit,t=i.enter,n=void 0!==i.appear?i.appear:t),{exit:e,enter:t,appear:n}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=r.default.findDOMNode(this);t===u?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:c})},a.performEnter=function(e,t){var n=this,i=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,r=this.getTimeouts(),a=o?r.appear:r.enter;t||i?(this.props.onEnter(e,o),this.safeSetState({status:u},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:f},(function(){n.props.onEntered(e,o)}))}))}))):this.safeSetState({status:f},(function(){n.props.onEntered(e)}))},a.performExit=function(e){var t=this,n=this.props.exit,i=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:d},(function(){t.props.onExiting(e),t.onTransitionEnd(e,i.exit,(function(){t.safeSetState({status:l},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:l},(function(){t.props.onExited(e)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,t.nextCallback=null,e(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var i=null==t&&!this.props.addEndListener;e&&!i?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,i=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["children"]);if(delete i.in,delete i.mountOnEnter,delete i.unmountOnExit,delete i.appear,delete i.enter,delete i.exit,delete i.timeout,delete i.addEndListener,delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,"function"==typeof n)return n(e,i);var r=o.default.Children.only(n);return o.default.cloneElement(r,i)},i}(o.default.Component);function h(){}p.contextTypes={transitionGroup:i.object},p.childContextTypes={transitionGroup:function(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4;var g=(0,a.polyfill)(p);t.default=g},1964:function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var i;(i=n(3074))&&i.__esModule;t.timeoutsShape=null;t.classNamesShape=null},6751:function(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o=n(7347),r="function"==typeof Symbol&&Symbol.for,a=r?Symbol.for("react.element"):60103,s=r?Symbol.for("react.portal"):60106,c=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,f=r?Symbol.for("react.provider"):60109,d=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,g=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,v="function"==typeof Symbol&&Symbol.iterator;function b(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=0;i<t;i++)n+="&args[]="+encodeURIComponent(arguments[i+1]);!function(e,t,n,i,o,r,a,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,o,r,a,s],l=0;(e=Error(t.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C={};function S(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||_}function E(){}function N(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||_}S.prototype.isReactComponent={},S.prototype.setState=function(e,t){"object"!==i(e)&&"function"!=typeof e&&null!=e&&b("85"),this.updater.enqueueSetState(this,e,t,"setState")},S.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=S.prototype;var O=N.prototype=new E;O.constructor=N,o(O,S.prototype),O.isPureReactComponent=!0;var T={current:null},I={current:null},w=Object.prototype.hasOwnProperty,A={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,n){var i=void 0,o={},r=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(r=""+t.key),t)w.call(t,i)&&!A.hasOwnProperty(i)&&(o[i]=t[i]);var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps)void 0===o[i]&&(o[i]=c[i]);return{$$typeof:a,type:e,key:r,ref:s,props:o,_owner:I.current}}function D(e){return"object"===i(e)&&null!==e&&e.$$typeof===a}var P=/\/+/g,R=[];function x(e,t,n,i){if(R.length){var o=R.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=i,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:i,count:0}}function F(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>R.length&&R.push(e)}function L(e,t,n,o){var r=i(e);"undefined"!==r&&"boolean"!==r||(e=null);var c=!1;if(null===e)c=!0;else switch(r){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case a:case s:c=!0}}if(c)return n(o,e,""===t?"."+j(e,0):t),1;if(c=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l<e.length;l++){var u=t+j(r=e[l],l);c+=L(r,u,n,o)}else if(null===e||"object"!==i(e)?u=null:u="function"==typeof(u=v&&e[v]||e["@@iterator"])?u:null,"function"==typeof u)for(e=u.call(e),l=0;!(r=e.next()).done;)c+=L(r=r.value,u=t+j(r,l++),n,o);else"object"===r&&b("31","[object Object]"===(n=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":n,"");return c}function U(e,t,n){return null==e?0:L(e,"",t,n)}function j(e,t){return"object"===i(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 M(e,t){e.func.call(e.context,t,e.count++)}function W(e,t,n){var i=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?H(e,i,n,(function(e){return e})):null!=e&&(D(e)&&(e=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(P,"$&/")+"/")+n)),i.push(e))}function H(e,t,n,i,o){var r="";null!=n&&(r=(""+n).replace(P,"$&/")+"/"),U(e,W,t=x(t,r,i,o)),F(t)}function q(){var e=T.current;return null===e&&b("307"),e}var B={Children:{map:function(e,t,n){if(null==e)return e;var i=[];return H(e,i,null,t,n),i},forEach:function(e,t,n){if(null==e)return e;U(e,M,t=x(null,null,t,n)),F(t)},count:function(e){return U(e,(function(){return null}),null)},toArray:function(e){var t=[];return H(e,t,null,(function(e){return e})),t},only:function(e){return D(e)||b("143"),e}},createRef:function(){return{current:null}},Component:S,PureComponent:N,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:f,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:h,render:e}},lazy:function(e){return{$$typeof:y,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return q().useCallback(e,t)},useContext:function(e,t){return q().useContext(e,t)},useEffect:function(e,t){return q().useEffect(e,t)},useImperativeHandle:function(e,t,n){return q().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return q().useLayoutEffect(e,t)},useMemo:function(e,t){return q().useMemo(e,t)},useReducer:function(e,t,n){return q().useReducer(e,t,n)},useRef:function(e){return q().useRef(e)},useState:function(e){return q().useState(e)},Fragment:c,StrictMode:l,Suspense:g,createElement:k,cloneElement:function(e,t,n){null==e&&b("267",e);var i=void 0,r=o({},e.props),s=e.key,c=e.ref,l=e._owner;if(null!=t){void 0!==t.ref&&(c=t.ref,l=I.current),void 0!==t.key&&(s=""+t.key);var u=void 0;for(i in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)w.call(t,i)&&!A.hasOwnProperty(i)&&(r[i]=void 0===t[i]&&void 0!==u?u[i]:t[i])}if(1===(i=arguments.length-2))r.children=n;else if(1<i){u=Array(i);for(var f=0;f<i;f++)u[f]=arguments[f+2];r.children=u}return{$$typeof:a,type:e.type,key:s,ref:c,props:r,_owner:l}},createFactory:function(e){var t=k.bind(null,e);return t.type=e,t},isValidElement:D,version:"16.8.2",unstable_ConcurrentMode:p,unstable_Profiler:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:T,ReactCurrentOwner:I,assign:o}},V={default:B},G=V&&B||V;e.exports=G.default||G},5466:function(e,t,n){"use strict";e.exports=n(6751)},8794:function(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=null,r=!1,a=3,s=-1,c=-1,l=!1,u=!1;function f(){if(!l){var e=o.expirationTime;u?O():u=!0,N(h,e)}}function d(){var e=o,t=o.next;if(o===t)o=null;else{var n=o.previous;o=n.next=t,t.previous=n}e.next=e.previous=null,n=e.callback,t=e.expirationTime,e=e.priorityLevel;var i=a,r=c;a=e,c=t;try{var s=n()}finally{a=i,c=r}if("function"==typeof s)if(s={callback:s,priorityLevel:e,expirationTime:t,next:null,previous:null},null===o)o=s.next=s.previous=s;else{n=null,e=o;do{if(e.expirationTime>=t){n=e;break}e=e.next}while(e!==o);null===n?n=o:n===o&&(o=s,f()),(t=n.previous).next=n.previous=s,s.next=n,s.previous=t}}function p(){if(-1===s&&null!==o&&1===o.priorityLevel){l=!0;try{do{d()}while(null!==o&&1===o.priorityLevel)}finally{l=!1,null!==o?f():u=!1}}}function h(e){l=!0;var n=r;r=e;try{if(e)for(;null!==o;){var i=t.unstable_now();if(!(o.expirationTime<=i))break;do{d()}while(null!==o&&o.expirationTime<=i)}else if(null!==o)do{d()}while(null!==o&&!T())}finally{l=!1,r=n,null!==o?f():u=!1,p()}}var g,m,y=Date,v="function"==typeof setTimeout?setTimeout:void 0,b="function"==typeof clearTimeout?clearTimeout:void 0,_="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,C="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function S(e){g=_((function(t){b(m),e(t)})),m=v((function(){C(g),e(t.unstable_now())}),100)}if("object"===("undefined"==typeof performance?"undefined":i(performance))&&"function"==typeof performance.now){var E=performance;t.unstable_now=function(){return E.now()}}else t.unstable_now=function(){return y.now()};var N,O,T,I=null;if("undefined"!=typeof window?I=window:void 0!==n.g&&(I=n.g),I&&I._schedMock){var w=I._schedMock;N=w[0],O=w[1],T=w[2],t.unstable_now=w[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var A=null,k=function(e){if(null!==A)try{A(e)}finally{A=null}};N=function(e){null!==A?setTimeout(N,0,e):(A=e,setTimeout(k,0,!1))},O=function(){A=null},T=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof _&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof C&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var D=null,P=!1,R=-1,x=!1,F=!1,L=0,U=33,j=33;T=function(){return L<=t.unstable_now()};var M=new MessageChannel,W=M.port2;M.port1.onmessage=function(){P=!1;var e=D,n=R;D=null,R=-1;var i=t.unstable_now(),o=!1;if(0>=L-i){if(!(-1!==n&&n<=i))return x||(x=!0,S(H)),D=e,void(R=n);o=!0}if(null!==e){F=!0;try{e(o)}finally{F=!1}}};var H=function e(t){if(null!==D){S(e);var n=t-L+j;n<j&&U<j?(8>n&&(n=8),j=n<U?U:n):U=n,L=t+j,P||(P=!0,W.postMessage(void 0))}else x=!1};N=function(e,t){D=e,R=t,F||0>t?W.postMessage(void 0):x||(x=!0,S(H))},O=function(){D=null,P=!1,R=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var i=a,o=s;a=e,s=t.unstable_now();try{return n()}finally{a=i,s=o,p()}},t.unstable_next=function(e){switch(a){case 1:case 2:case 3:var n=3;break;default:n=a}var i=a,o=s;a=n,s=t.unstable_now();try{return e()}finally{a=i,s=o,p()}},t.unstable_scheduleCallback=function(e,n){var r=-1!==s?s:t.unstable_now();if("object"===i(n)&&null!==n&&"number"==typeof n.timeout)n=r+n.timeout;else switch(a){case 1:n=r+-1;break;case 2:n=r+250;break;case 5:n=r+1073741823;break;case 4:n=r+1e4;break;default:n=r+5e3}if(e={callback:e,priorityLevel:a,expirationTime:n,next:null,previous:null},null===o)o=e.next=e.previous=e,f();else{r=null;var c=o;do{if(c.expirationTime>n){r=c;break}c=c.next}while(c!==o);null===r?r=o:r===o&&(o=e,f()),(n=r.previous).next=r.previous=e,e.next=r,e.previous=n}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)o=null;else{e===o&&(o=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=a;return function(){var i=a,o=s;a=n,s=t.unstable_now();try{return e.apply(this,arguments)}finally{a=i,s=o,p()}}},t.unstable_getCurrentPriorityLevel=function(){return a},t.unstable_shouldYield=function(){return!r&&(null!==o&&o.expirationTime<c||T())},t.unstable_continueExecution=function(){null!==o&&f()},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return o}},7767:function(e,t,n){"use strict";e.exports=n(8794)},6168:function(e){e.exports=function(e,t){for(var n=e.split("."),i=t.split("."),o=0;o<3;o++){var r=Number(n[o]),a=Number(i[o]);if(r>a)return 1;if(a>r)return-1;if(!isNaN(r)&&isNaN(a))return 1;if(isNaN(r)&&!isNaN(a))return-1}return 0}},181:function(e,t,n){"use strict";e.exports=n(1882)},488:function(e,t,n){"use strict";var i,o,r,a=n(87),s="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function c(){r=!1}function l(e){if(e){if(e!==i){if(e.length!==s.length)throw new Error("Custom alphabet for shortid must be "+s.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter((function(e,t,n){return t!==n.lastIndexOf(e)}));if(t.length)throw new Error("Custom alphabet for shortid must be "+s.length+" unique characters. These characters were not unique: "+t.join(", "));i=e,c()}}else i!==s&&(i=s,c())}function u(){return r||(r=function(){i||l(s);for(var e,t=i.split(""),n=[],o=a.nextValue();t.length>0;)o=a.nextValue(),e=Math.floor(o*t.length),n.push(t.splice(e,1)[0]);return n.join("")}())}e.exports={get:function(){return i||s},characters:function(e){return l(e),i},seed:function(e){a.seed(e),o!==e&&(c(),o=e)},lookup:function(e){return u()[e]},shuffled:u}},6239:function(e,t,n){"use strict";var i,o,r=n(5253);n(488);e.exports=function(e){var t="",n=Math.floor(.001*(Date.now()-1567752802062));return n===o?i++:(i=0,o=n),t+=r(7),t+=r(e),i>0&&(t+=r(i)),t+=r(n)}},5253:function(e,t,n){"use strict";var i=n(488),o=n(2019),r=n(4326);e.exports=function(e){for(var t,n=0,a="";!t;)a+=r(o,i.get(),1),t=e<Math.pow(16,n+1),n++;return a}},1882:function(e,t,n){"use strict";var i=n(488),o=n(6239),r=n(2040),a=n(3595)||0;function s(){return o(a)}e.exports=s,e.exports.generate=s,e.exports.seed=function(t){return i.seed(t),e.exports},e.exports.worker=function(t){return a=t,e.exports},e.exports.characters=function(e){return void 0!==e&&i.characters(e),i.shuffled()},e.exports.isValid=r},2040:function(e,t,n){"use strict";var i=n(488);e.exports=function(e){return!(!e||"string"!=typeof e||e.length<6)&&!new RegExp("[^"+i.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(e)}},2019:function(e){"use strict";function t(e){return t="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},t(e)}var n,i="object"===("undefined"==typeof window?"undefined":t(window))&&(window.crypto||window.msCrypto);n=i&&i.getRandomValues?function(e){return i.getRandomValues(new Uint8Array(e))}:function(e){for(var t=[],n=0;n<e;n++)t.push(Math.floor(256*Math.random()));return t},e.exports=n},87:function(e){"use strict";var t=1;e.exports={nextValue:function(){return(t=(9301*t+49297)%233280)/233280},seed:function(e){t=e}}},3595:function(e){"use strict";e.exports=0},807:function(e){function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},t.apply(this,arguments)}var n=/^[-+]?0x[a-fA-F0-9]+$/,i=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var o={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r=t({},o,r),!e||"string"!=typeof e)return e;var a=e.trim();if(void 0!==r.skipLike&&r.skipLike.test(a))return e;if(r.hex&&n.test(a))return Number.parseInt(a,16);var s=i.exec(a);if(s){var c=s[1],l=s[2],u=function(e){if(e&&-1!==e.indexOf("."))return"."===(e=e.replace(/0+$/,""))?e="0":"."===e[0]?e="0"+e:"."===e[e.length-1]&&(e=e.substr(0,e.length-1)),e;return e}(s[3]),f=s[4]||s[6];if(!r.leadingZeros&&l.length>0&&c&&"."!==a[2])return e;if(!r.leadingZeros&&l.length>0&&!c&&"."!==a[1])return e;var d=Number(a),p=""+d;return-1!==p.search(/[eE]/)||f?r.eNotation?d:e:-1!==a.indexOf(".")?"0"===p&&""===u||p===u||c&&p==="-"+u?d:e:l?u===p||c+u===p?d:e:a===p||a===c+p?d:e}return e}},9846:function(e,t,n){var i=n(652),o=n(1246),r=o;r.v1=i,r.v4=o,e.exports=r},5459:function(e){for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var i=n||0,o=t;return[o[e[i++]],o[e[i++]],o[e[i++]],o[e[i++]],"-",o[e[i++]],o[e[i++]],"-",o[e[i++]],o[e[i++]],"-",o[e[i++]],o[e[i++]],"-",o[e[i++]],o[e[i++]],o[e[i++]],o[e[i++]],o[e[i++]],o[e[i++]]].join("")}},7019:function(e){var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},652:function(e,t,n){var i,o,r=n(7019),a=n(5459),s=0,c=0;e.exports=function(e,t,n){var l=t&&n||0,u=t||[],f=(e=e||{}).node||i,d=void 0!==e.clockseq?e.clockseq:o;if(null==f||null==d){var p=r();null==f&&(f=i=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=o=16383&(p[6]<<8|p[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:c+1,m=h-s+(g-c)/1e4;if(m<0&&void 0===e.clockseq&&(d=d+1&16383),(m<0||h>s)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,c=g,o=d;var y=(1e4*(268435455&(h+=122192928e5))+g)%4294967296;u[l++]=y>>>24&255,u[l++]=y>>>16&255,u[l++]=y>>>8&255,u[l++]=255&y;var v=h/4294967296*1e4&268435455;u[l++]=v>>>8&255,u[l++]=255&v,u[l++]=v>>>24&15|16,u[l++]=v>>>16&255,u[l++]=d>>>8|128,u[l++]=255&d;for(var b=0;b<6;++b)u[l+b]=f[b];return t||a(u)}},1246:function(e,t,n){var i=n(7019),o=n(5459);e.exports=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||i)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[r+s]=a[s];return t||o(a)}},1312:function(e){"use strict";e.exports=function(){}},9570:function(e,t,n){var i=n(3143).FilterCSS,o=n(3143).getDefaultWhiteList,r=n(5306);function a(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var s=new i;function c(e){return e.replace(l,"<").replace(u,">")}var l=/</g,u=/>/g,f=/"/g,d=/"/g,p=/&#([a-zA-Z0-9]*);?/gim,h=/:?/gim,g=/&newline;?/gim,m=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,y=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,v=/u\s*r\s*l\s*\(.*/gi;function b(e){return e.replace(f,""")}function _(e){return e.replace(d,'"')}function C(e){return e.replace(p,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function S(e){return e.replace(h,":").replace(g," ")}function E(e){for(var t="",n=0,i=e.length;n<i;n++)t+=e.charCodeAt(n)<32?" ":e.charAt(n);return r.trim(t)}function N(e){return e=E(e=S(e=C(e=_(e))))}function O(e){return e=c(e=b(e))}t.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},t.getDefaultWhiteList=a,t.onTag=function(e,t,n){},t.onIgnoreTag=function(e,t,n){},t.onTagAttr=function(e,t,n){},t.onIgnoreTagAttr=function(e,t,n){},t.safeAttrValue=function(e,t,n,i){if(n=N(n),"href"===t||"src"===t){if("#"===(n=r.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(m.lastIndex=0,m.test(n))return""}else if("style"===t){if(y.lastIndex=0,y.test(n))return"";if(v.lastIndex=0,v.test(n)&&(m.lastIndex=0,m.test(n)))return"";!1!==i&&(n=(i=i||s).process(n))}return n=O(n)},t.escapeHtml=c,t.escapeQuote=b,t.unescapeQuote=_,t.escapeHtmlEntities=C,t.escapeDangerHtml5Entities=S,t.clearNonPrintableCharacter=E,t.friendlyAttrValue=N,t.escapeAttrValue=O,t.onIgnoreTagStripAll=function(){return""},t.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var n=!Array.isArray(e),i=[],o=!1;return{onIgnoreTag:function(a,s,c){if(function(t){return!!n||-1!==r.indexOf(e,t)}(a)){if(c.isClosing){var l="[/removed]",u=c.position+10;return i.push([!1!==o?o:c.position,u]),o=!1,l}return o||(o=c.position),"[removed]"}return t(a,s,c)},remove:function(e){var t="",n=0;return r.forEach(i,(function(i){t+=e.slice(n,i[0]),n=i[1]})),t+=e.slice(n)}}},t.stripCommentTag=function(e){for(var t="",n=0;n<e.length;){var i=e.indexOf("\x3c!--",n);if(-1===i){t+=e.slice(n);break}t+=e.slice(n,i);var o=e.indexOf("--\x3e",i);if(-1===o)break;n=o+3}return t},t.stripBlankChar=function(e){var t=e.split("");return(t=t.filter((function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))}))).join("")},t.attributeWrapSign='"',t.cssFilter=s,t.getDefaultCSSWhiteList=o},7154:function(e,t,n){var i=n(9570),o=n(2954),r=n(1172);function a(e,t){return new r(t).process(e)}(t=e.exports=a).filterXSS=a,t.FilterXSS=r,function(){for(var e in i)t[e]=i[e];for(var n in o)t[n]=o[n]}(),"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)},2954:function(e,t,n){var i=n(5306);function o(e){var t,n=i.spaceIndex(e);return t=-1===n?e.slice(1,-1):e.slice(1,n+1),"/"===(t=i.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}function r(e){return"</"===e.slice(0,2)}var a=/[^a-zA-Z0-9\\_:.-]/gim;function s(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"="===n?t:-1}}function c(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"'"===n||'"'===n?t:-1}}function l(e,t){for(;t>0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}}function u(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}t.parseTag=function(e,t,n){"use strict";var i="",a=0,s=!1,c=!1,l=0,u=e.length,f="",d="";e:for(l=0;l<u;l++){var p=e.charAt(l);if(!1===s){if("<"===p){s=l;continue}}else if(!1===c){if("<"===p){i+=n(e.slice(a,l)),s=l,a=l;continue}if(">"===p||l===u-1){i+=n(e.slice(a,s)),f=o(d=e.slice(s,l+1)),i+=t(s,i.length,f,d,r(d)),a=l+1,s=!1;continue}if('"'===p||"'"===p)for(var h=1,g=e.charAt(l-h);""===g.trim()||"="===g;){if("="===g){c=p;continue e}g=e.charAt(l-++h)}}else if(p===c){c=!1;continue}}return a<u&&(i+=n(e.substr(a))),i},t.parseAttr=function(e,t){"use strict";var n=0,o=0,r=[],f=!1,d=e.length;function p(e,n){if(!((e=(e=i.trim(e)).replace(a,"").toLowerCase()).length<1)){var o=t(e,n||"");o&&r.push(o)}}for(var h=0;h<d;h++){var g,m=e.charAt(h);if(!1!==f||"="!==m)if(!1===f||h!==o)if(/\s|\n|\t/.test(m)){if(e=e.replace(/\s|\n|\t/g," "),!1===f){if(-1===(g=s(e,h))){p(i.trim(e.slice(n,h))),f=!1,n=h+1;continue}h=g-1;continue}if(-1===(g=l(e,h-1))){p(f,u(i.trim(e.slice(n,h)))),f=!1,n=h+1;continue}}else;else{if(-1===(g=e.indexOf(m,h+1)))break;p(f,i.trim(e.slice(o+1,g))),f=!1,n=(h=g)+1}else f=e.slice(n,h),n=h+1,o='"'===e.charAt(n)||"'"===e.charAt(n)?n:c(e,h+1)}return n<e.length&&(!1===f?p(e.slice(n)):p(f,u(i.trim(e.slice(n))))),i.trim(r.join(" "))}},5306:function(e){e.exports={indexOf:function(e,t){var n,i;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var i,o;if(Array.prototype.forEach)return e.forEach(t,n);for(i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1}}},1172:function(e,t,n){var i=n(3143).FilterCSS,o=n(9570),r=n(2954),a=r.parseTag,s=r.parseAttr,c=n(5306);function l(e){return null==e}function u(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=o.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=function(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map((function(e){return e.toLowerCase()})):t[n.toLowerCase()]=e[n];return t}(e.whiteList||e.allowList):e.whiteList=o.whiteList,this.attributeWrapSign=!0===e.singleQuotedAttributeValue?"'":o.attributeWrapSign,e.onTag=e.onTag||o.onTag,e.onTagAttr=e.onTagAttr||o.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||o.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||o.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||o.safeAttrValue,e.escapeHtml=e.escapeHtml||o.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new i(e.css))}u.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this,n=t.options,i=n.whiteList,r=n.onTag,u=n.onIgnoreTag,f=n.onTagAttr,d=n.onIgnoreTagAttr,p=n.safeAttrValue,h=n.escapeHtml,g=t.attributeWrapSign,m=t.cssFilter;n.stripBlankChar&&(e=o.stripBlankChar(e)),n.allowCommentTag||(e=o.stripCommentTag(e));var y=!1;n.stripIgnoreTagBody&&(y=o.StripTagBody(n.stripIgnoreTagBody,u),u=y.onIgnoreTag);var v=a(e,(function(e,t,n,o,a){var y={sourcePosition:e,position:t,isClosing:a,isWhite:Object.prototype.hasOwnProperty.call(i,n)},v=r(n,o,y);if(!l(v))return v;if(y.isWhite){if(y.isClosing)return"</"+n+">";var b=function(e){var t=c.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=c.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=c.trim(e.slice(0,-1))),{html:e,closing:n}}(o),_=i[n],C=s(b.html,(function(e,t){var i=-1!==c.indexOf(_,e),o=f(n,e,t,i);return l(o)?i?(t=p(n,e,t,m))?e+"="+g+t+g:e:l(o=d(n,e,t,i))?void 0:o:o}));return o="<"+n,C&&(o+=" "+C),b.closing&&(o+=" /"),o+=">"}return l(v=u(n,o,y))?h(o):v}),h);return y&&(v=y.remove(v)),v},e.exports=u},1229:function(e,t,n){e.exports=n.p+"assets/Acrobat-tile-rounded-seNHyfF.png"},7229:function(e,t,n){e.exports=n.p+"assets/Ai-tile-rounded-3Oxwq4n.png"},5019:function(e,t,n){e.exports=n.p+"assets/CC-tile-rounded-3XXZTQf.png"},5556:function(e,t,n){e.exports=n.p+"assets/Frame-4Cq-4Sn.svg"},346:function(e,t,n){e.exports=n.p+"assets/Id-tile-rounded-2Jnzuvj.png"},1105:function(e,t,n){e.exports=n.p+"assets/Lr-tile-rounded-2_mxai4.png"},2127:function(e,t,n){e.exports=n.p+"assets/Pr-tile-rounded-1y7fWDy.png"},9981:function(e,t,n){e.exports=n.p+"assets/Ps-tile-rounded-2BUIqz7.png"},6089:function(e,t,n){e.exports=n.p+"assets/S2_Icon_Bell_20_N-qA6uO9f.svg"},1676:function(e,t,n){e.exports=n.p+"assets/WelcomeScreenBubble-3WG0rMc.svg"},5301:function(e,t,n){e.exports=n.p+"assets/acrobat_prodc_appicon_noshadow_128-3b-9Itb.png"},9257:function(e,t,n){e.exports=n.p+"assets/ai_appicon_noshadow_128-3IAleyO.png"},375:function(e,t,n){e.exports=n.p+"assets/behance_icon-1oEHcxi.png"},5842:function(e,t,n){e.exports=n.p+"assets/bell_empty-3GA8STS.png"},5047:function(e,t,n){e.exports=n.p+"assets/bell_empty_state-3KNvQh1.svg"},5108:function(e,t,n){e.exports=n.p+"assets/bell_icon-3oCrB0B.png"},8247:function(e,t,n){e.exports=n.p+"assets/cc_appicon_noshadow_128--GCxpdN.png"},3063:function(e,t,n){e.exports=n.p+"assets/creative_cloud_icon-3stqSX6.png"},3170:function(e,t,n){e.exports=n.p+"assets/creative_cloud_round_icon-FAl-GXp.png"},2771:function(e,t,n){e.exports=n.p+"assets/id_appicon_noshadow_128-3XuldM1.png"},7487:function(e,t,n){e.exports=n.p+"assets/lr_appicon_noshadow_128-3V4-tdl.png"},9991:function(e,t,n){e.exports=n.p+"assets/pr_appicon_noshadow_128-3LofquZ.png"},8419:function(e,t,n){e.exports=n.p+"assets/project-placeholder-3fFMafD.png"},8485:function(e,t,n){e.exports=n.p+"assets/ps_appicon_256-1n-psx6.svg"},3799:function(e,t,n){e.exports=n.p+"assets/ps_appicon_noshadow_128-yjGqHxB.png"},3246:function(e,t,n){e.exports=n.p+"assets/reminder-17bMJxz.svg"},5263:function(e,t,n){e.exports=n.p+"assets/unc_empty_icon_psdark-2J5T3Ja.svg"},3718:function(e,t,n){e.exports=n.p+"assets/unc_illustration_notfound-3kp3iJ5.svg"},6762:function(e,t,n){e.exports=n.p+"assets/unc_illustration_nullstate-vC8JGAz.svg"},9954:function(e,t,n){e.exports=n.p+"assets/unc_thumbnail_lock-25-T1MP.svg"},3439:function(e,t,n){e.exports=n.p+"assets/unc_thumbnail_noavatar-3Iz5Aa6.svg"},9287:function(e,t,n){e.exports=n.p+"assets/unc_thumbnail_unavailable-1EjrPUt.svg"},3090:function(e,t,n){e.exports=n.p+"assets/xd_icon-1VHvnR2.png"},9515:function(e,t,n){e.exports=n.p+"assets/acrobat_icon@2x-3mGjBXH.png"},5656:function(e,t,n){e.exports=n.p+"assets/ai_icon@2x-2C6r1B5.png"},9528:function(e,t,n){e.exports=n.p+"assets/avatar-placeholder-WSI5shs.png"},2681:function(e,t,n){e.exports=n.p+"assets/behance_icon-2M6mz6u.png"},2150:function(e,t,n){e.exports=n.p+"assets/behance_icon@2x-pl_14AF.png"},209:function(e,t,n){e.exports=n.p+"assets/bell_empty-3GA8STS.png"},1853:function(e,t,n){e.exports=n.p+"assets/bell_icon-3oCrB0B.png"},205:function(e,t,n){e.exports=n.p+"assets/creative_cloud_icon-3-O7Xxl.png"},9728:function(e,t,n){e.exports=n.p+"assets/creative_cloud_icon@2x-p7QCV_J.png"},7683:function(e,t,n){e.exports=n.p+"assets/creative_cloud_round_icon-2yTJLx9.png"},3351:function(e,t,n){e.exports=n.p+"assets/creative_cloud_thumbnail@2x-mbIVenm.png"},6771:function(e,t,n){e.exports=n.p+"assets/express_icon@2x-3ifYl0-.png"},8058:function(e,t,n){e.exports=n.p+"assets/id_icon@2x-3qtJ3Mw.png"},9146:function(e,t,n){e.exports=n.p+"assets/lr_icon@2x-tzVT-Kc.png"},1323:function(e,t,n){e.exports=n.p+"assets/project-placeholder-3fFMafD.png"},8269:function(e,t,n){e.exports=n.p+"assets/ps_icon@2x-1BlYLs-.png"},3631:function(e,t,n){e.exports=n.p+"assets/xd_icon-3PZaa8v.png"},6518:function(e,t,n){e.exports=n.p+"assets/xd_icon@2x-2Wx2u2_.png"},7339:function(e,t,n){e.exports=n.p+"assets/behance_icon-2mTO5bQ.png"},8233:function(e,t,n){e.exports=n.p+"assets/bell_empty-3GA8STS.png"},649:function(e,t,n){e.exports=n.p+"assets/creative_cloud_icon-1HdbhBo.png"},5121:function(e,t,n){e.exports=n.p+"assets/creative_cloud_round_icon-4zIyiF9.png"},5701:function(e,t,n){e.exports=n.p+"assets/xd_icon-2Srq3Uc.png"},3828:function(e,t,n){"use strict";n.r(t)},7127:function(e,t,n){"use strict";n.r(t)},4560:function(e,t,n){"use strict";n.r(t)},4480:function(e,t,n){"use strict";n.r(t)},9070:function(e,t,n){"use strict";n.r(t)},1531:function(e,t,n){"use strict";n.r(t)},3858:function(e,t,n){"use strict";n.r(t)},6961:function(e,t,n){"use strict";n.r(t)},6396:function(e,t,n){"use strict";n.r(t)},6333:function(e,t,n){"use strict";n.r(t)},3150:function(e,t,n){"use strict";n.r(t)},2278:function(e,t,n){"use strict";n.r(t)},6235:function(e,t,n){"use strict";n.r(t)},6512:function(e,t,n){"use strict";n.r(t)},8024:function(e,t,n){"use strict";n.r(t)},9918:function(e,t,n){"use strict";n.r(t)},8121:function(e,t,n){"use strict";n.r(t)},6579:function(e,t,n){"use strict";n.r(t)},6035:function(e,t,n){"use strict";n.r(t)},8745:function(e,t,n){"use strict";n.r(t)},9485:function(e,t,n){"use strict";n.r(t)},1195:function(e,t,n){"use strict";n.r(t)},3640:function(e,t,n){"use strict";n.r(t)},6953:function(e,t,n){"use strict";n.r(t)},222:function(e,t,n){"use strict";n.r(t)},9933:function(e,t,n){"use strict";n.r(t)},3821:function(e,t,n){"use strict";n.r(t)},7144:function(e,t,n){"use strict";n.r(t)},9546:function(e,t,n){"use strict";n.r(t)},9430:function(e,t,n){"use strict";n.r(t)},6927:function(e,t,n){"use strict";n.r(t)},1159:function(e,t,n){"use strict";n.r(t)},4015:function(e,t,n){"use strict";n.r(t)},598:function(e,t,n){"use strict";n.r(t)},1937:function(e,t,n){"use strict";n.r(t)},7943:function(e,t,n){"use strict";n.r(t)},2789:function(e,t,n){"use strict";n.r(t)},7568:function(e,t,n){"use strict";n.r(t)},6002:function(e,t,n){"use strict";n.r(t)},1108:function(e,t,n){"use strict";n.r(t)},8274:function(e,t,n){"use strict";n.r(t)},930:function(e,t,n){"use strict";n.r(t)},7058:function(e,t,n){"use strict";n.r(t)},9530:function(e,t,n){"use strict";n.r(t)},8894:function(e,t,n){"use strict";n.r(t)},268:function(e,t,n){"use strict";n.r(t)},9927:function(e,t,n){"use strict";n.r(t)},9301:function(e,t,n){"use strict";n.r(t)},4211:function(e,t,n){"use strict";n.r(t)},3379:function(e,t,n){"use strict";n.r(t)},7724:function(e,t,n){"use strict";n.r(t)},8875:function(e,t,n){var i={"./1x/Acrobat-tile-rounded.png":1229,"./1x/Ai-tile-rounded.png":7229,"./1x/CC-tile-rounded.png":5019,"./1x/Id-tile-rounded.png":346,"./1x/Lr-tile-rounded.png":1105,"./1x/Pr-tile-rounded.png":2127,"./1x/Ps-tile-rounded.png":9981,"./1x/acrobat_prodc_appicon_noshadow_128.png":5301,"./1x/ai_appicon_noshadow_128.png":9257,"./1x/behance_icon.png":375,"./1x/bell_empty.png":5842,"./1x/bell_icon.png":5108,"./1x/cc_appicon_noshadow_128.png":8247,"./1x/creative_cloud_icon.png":3063,"./1x/creative_cloud_round_icon.png":3170,"./1x/id_appicon_noshadow_128.png":2771,"./1x/lr_appicon_noshadow_128.png":7487,"./1x/pr_appicon_noshadow_128.png":9991,"./1x/project-placeholder.png":8419,"./1x/ps_appicon_noshadow_128.png":3799,"./1x/xd_icon.png":3090,"./2x/acrobat_icon@2x.png":9515,"./2x/ai_icon@2x.png":5656,"./2x/avatar-placeholder.png":9528,"./2x/behance_icon.png":2681,"./2x/behance_icon@2x.png":2150,"./2x/bell_empty.png":209,"./2x/bell_icon.png":1853,"./2x/creative_cloud_icon.png":205,"./2x/creative_cloud_icon@2x.png":9728,"./2x/creative_cloud_round_icon.png":7683,"./2x/creative_cloud_thumbnail@2x.png":3351,"./2x/express_icon@2x.png":6771,"./2x/id_icon@2x.png":8058,"./2x/lr_icon@2x.png":9146,"./2x/project-placeholder.png":1323,"./2x/ps_icon@2x.png":8269,"./2x/xd_icon.png":3631,"./2x/xd_icon@2x.png":6518,"./3x/behance_icon.png":7339,"./3x/bell_empty.png":8233,"./3x/creative_cloud_icon.png":649,"./3x/creative_cloud_round_icon.png":5121,"./3x/xd_icon.png":5701,"UX/resources/img/1x/Acrobat-tile-rounded.png":1229,"UX/resources/img/1x/Ai-tile-rounded.png":7229,"UX/resources/img/1x/CC-tile-rounded.png":5019,"UX/resources/img/1x/Id-tile-rounded.png":346,"UX/resources/img/1x/Lr-tile-rounded.png":1105,"UX/resources/img/1x/Pr-tile-rounded.png":2127,"UX/resources/img/1x/Ps-tile-rounded.png":9981,"UX/resources/img/1x/acrobat_prodc_appicon_noshadow_128.png":5301,"UX/resources/img/1x/ai_appicon_noshadow_128.png":9257,"UX/resources/img/1x/behance_icon.png":375,"UX/resources/img/1x/bell_empty.png":5842,"UX/resources/img/1x/bell_icon.png":5108,"UX/resources/img/1x/cc_appicon_noshadow_128.png":8247,"UX/resources/img/1x/creative_cloud_icon.png":3063,"UX/resources/img/1x/creative_cloud_round_icon.png":3170,"UX/resources/img/1x/id_appicon_noshadow_128.png":2771,"UX/resources/img/1x/lr_appicon_noshadow_128.png":7487,"UX/resources/img/1x/pr_appicon_noshadow_128.png":9991,"UX/resources/img/1x/project-placeholder.png":8419,"UX/resources/img/1x/ps_appicon_noshadow_128.png":3799,"UX/resources/img/1x/xd_icon.png":3090,"UX/resources/img/2x/acrobat_icon@2x.png":9515,"UX/resources/img/2x/ai_icon@2x.png":5656,"UX/resources/img/2x/avatar-placeholder.png":9528,"UX/resources/img/2x/behance_icon.png":2681,"UX/resources/img/2x/behance_icon@2x.png":2150,"UX/resources/img/2x/bell_empty.png":209,"UX/resources/img/2x/bell_icon.png":1853,"UX/resources/img/2x/creative_cloud_icon.png":205,"UX/resources/img/2x/creative_cloud_icon@2x.png":9728,"UX/resources/img/2x/creative_cloud_round_icon.png":7683,"UX/resources/img/2x/creative_cloud_thumbnail@2x.png":3351,"UX/resources/img/2x/express_icon@2x.png":6771,"UX/resources/img/2x/id_icon@2x.png":8058,"UX/resources/img/2x/lr_icon@2x.png":9146,"UX/resources/img/2x/project-placeholder.png":1323,"UX/resources/img/2x/ps_icon@2x.png":8269,"UX/resources/img/2x/xd_icon.png":3631,"UX/resources/img/2x/xd_icon@2x.png":6518,"UX/resources/img/3x/behance_icon.png":7339,"UX/resources/img/3x/bell_empty.png":8233,"UX/resources/img/3x/creative_cloud_icon.png":649,"UX/resources/img/3x/creative_cloud_round_icon.png":5121,"UX/resources/img/3x/xd_icon.png":5701};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id=8875},5809:function(e,t,n){var i={"./1x/Frame.svg":5556,"./1x/S2_Icon_Bell_20_N.svg":6089,"./1x/WelcomeScreenBubble.svg":1676,"./1x/bell_empty_state.svg":5047,"./1x/ps_appicon_256.svg":8485,"./1x/reminder.svg":3246,"./1x/unc_empty_icon_psdark.svg":5263,"./1x/unc_illustration_notfound.svg":3718,"./1x/unc_illustration_nullstate.svg":6762,"./1x/unc_thumbnail_lock.svg":9954,"./1x/unc_thumbnail_noavatar.svg":3439,"./1x/unc_thumbnail_unavailable.svg":9287,"UX/resources/img/1x/Frame.svg":5556,"UX/resources/img/1x/S2_Icon_Bell_20_N.svg":6089,"UX/resources/img/1x/WelcomeScreenBubble.svg":1676,"UX/resources/img/1x/bell_empty_state.svg":5047,"UX/resources/img/1x/ps_appicon_256.svg":8485,"UX/resources/img/1x/reminder.svg":3246,"UX/resources/img/1x/unc_empty_icon_psdark.svg":5263,"UX/resources/img/1x/unc_illustration_notfound.svg":3718,"UX/resources/img/1x/unc_illustration_nullstate.svg":6762,"UX/resources/img/1x/unc_thumbnail_lock.svg":9954,"UX/resources/img/1x/unc_thumbnail_noavatar.svg":3439,"UX/resources/img/1x/unc_thumbnail_unavailable.svg":9287};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id=5809},8374:function(){},4635:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i},e.exports.__esModule=!0,e.exports.default=e.exports},5206:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},9218:function(e,t,n){var i=n(4635);e.exports=function(e){if(Array.isArray(e))return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},2143:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},7296:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},2e3:function(e,t,n){var i=n(7616);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,i(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},1514:function(e,t,n){var i=n(7616);e.exports=function(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},9894:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},6368:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4626:function(e,t,n){var i=n(1595);e.exports=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},8135:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},2754:function(e,t,n){var i=n(435).default;function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=i(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var c=a?Object.getOwnPropertyDescriptor(e,s):null;c&&(c.get||c.set)?Object.defineProperty(r,s,c):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r},e.exports.__esModule=!0,e.exports.default=e.exports},1753:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},8735:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,r,a,s=[],c=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},3133:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},7513:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},9902:function(e,t,n){var i=n(1415);e.exports=function(e,t){if(null==e)return{};var n,o,r=i(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r},e.exports.__esModule=!0,e.exports.default=e.exports},1415:function(e){e.exports=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},1803:function(e,t,n){var i=n(435).default,o=n(2143);e.exports=function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},1595:function(e){function t(n,i){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},9887:function(e,t,n){var i=n(5206),o=n(8735),r=n(248),a=n(3133);e.exports=function(e,t){return i(e)||o(e,t)||r(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},2033:function(e,t,n){var i=n(9218),o=n(1753),r=n(248),a=n(7513);e.exports=function(e){return i(e)||o(e)||r(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},9772:function(e,t,n){var i=n(435).default;e.exports=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7616:function(e,t,n){var i=n(435).default,o=n(9772);e.exports=function(e){var t=o(e,"string");return"symbol"==i(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},435:function(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},248:function(e,t,n){var i=n(4635);e.exports=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},8098:function(e,t,n){var i;function o(e){return 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},o(e)}!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=c(e,s(n)))}return e}function s(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!==o(e))return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=c(t,n));return t}function c(e,t){return t?e?e+" "+t:e+t:e}e.exports?(a.default=a,e.exports=a):"object"===o(n.amdO)&&n.amdO?void 0===(i=function(){return a}.apply(t,[]))||(e.exports=i):window.classNames=a}()}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}n.amdO={},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var i=t.getElementsByTagName("script");if(i.length)for(var o=i.length-1;o>-1&&!e;)e=i[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}();var i={};!function(){"use strict";function e(t){return e="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},e(t)}function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,o(i.key),i)}}function o(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,n||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:String(n)}n.r(i),n.d(i,{default:function(){return rd}});var r=function(){function n(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this._hostObject=null,this._hostMessageHandlerFn=null}var i,o,r;return i=n,(o=[{key:"initialize",value:function(t){t&&"object"==e(t)&&(t.hostObject&&"object"==e(t.hostObject)&&(this._hostObject=t.hostObject),t.hostMessageHandlerFn&&"function"==typeof t.hostMessageHandlerFn&&(this._hostMessageHandlerFn=t.hostMessageHandlerFn))}},{key:"handleMessage",value:function(e){}},{key:"finalize",value:function(e){}},{key:"sendMessage",value:function(e){return this._hostObject&&this._hostObject.handleMessage&&"function"==typeof this._hostObject.handleMessage?this._hostObject.handleMessage(e):this._hostMessageHandlerFn?this._hostMessageHandlerFn(e):void 0}},{key:"sendMessageToJSCore",value:function(e,t){return this.sendMessage({targetType:"JSCore",message:e,data:t||{}})}},{key:"sendMessageToParent",value:function(e,t){return this.sendMessage({targetType:"Parent",message:e,data:t||{}})}},{key:"sendMessageToHost",value:function(e,t){return this.sendMessage({targetType:"Host",message:e,data:t||{}})}},{key:"sendMessageToContainer",value:function(e,t){return this.sendMessage({targetType:"Container",message:e,data:t||{}})}},{key:"sendMessageToApplet",value:function(e,t,n,i,o){return this.sendMessage({targetType:"Applet",targetID:n||"",targetVersion:i||"",targetInstanceID:o||"",message:e,data:t||{}})}}])&&t(i.prototype,o),r&&t(i,r),Object.defineProperty(i,"prototype",{writable:!1}),n}();function a(e){return a="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},a(e)}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,c(i.key),i)}}function c(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:String(t)}var l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,n=[{key:"_preprocess",value:function(e){for(var t=0;t<e.length;++t)"string"==typeof e[t]&&e[t].length>10512&&(e[t]=e[t].substring(0,10512)+".....<Truncated>")}},{key:"getStringFromArgs",value:function(e){for(var t="",n=0;n<e.length;n++)"string"==typeof e[n]?t+=e[n]:e[n]&&(t+=JSON.stringify(e[n]));return t}},{key:"error",value:function(){if(!window.logLevel||0!==window.logLevel){var e=Array.prototype.slice.call(arguments);console.error.apply(console,e);try{window.JSObject?window.JSObject.logError(this.getStringFromArgs(e)):window.app&&window.app.logMessage&&window.app.logMessage(["ERROR",this.getStringFromArgs(e)])}catch(e){}}}},{key:"warn",value:function(){if(window.logLevel&&window.logLevel>=2){var e=Array.prototype.slice.call(arguments);console.warn.apply(console,e);try{window.JSObject?window.JSObject.logWarn(this.getStringFromArgs(e)):window.app&&window.app.logMessage&&window.app.logMessage(["WARN",this.getStringFromArgs(e)])}catch(e){}}}},{key:"log",value:function(){if(window.logLevel&&window.logLevel>=3){var e=Array.prototype.slice.call(arguments);this._preprocess(e),console.trace&&console.trace.apply(console,e);try{window.JSObject?window.JSObject.logInfo(this.getStringFromArgs(e)):window.app&&window.app.logMessage&&window.app.logMessage(["LOG",this.getStringFromArgs(e)])}catch(e){}}}},{key:"info",value:function(){if(window.logLevel&&window.logLevel>=3){var e=Array.prototype.slice.call(arguments);this._preprocess(e),console.trace&&console.trace.apply(console,e);try{window.JSObject?window.JSObject.logInfo(this.getStringFromArgs(e)):window.app&&window.app.logMessage&&window.app.logMessage(["INFO",this.getStringFromArgs(e)])}catch(e){}}}},{key:"debug",value:function(){if(window.logLevel&&window.logLevel>=4){var e=Array.prototype.slice.call(arguments);this._preprocess(e),console.trace&&console.trace.apply(console,e);try{window.JSObject?window.JSObject.logDebug(this.getStringFromArgs(e)):window.app&&window.app.logMessage&&window.app.logMessage(["DEBUG",this.getStringFromArgs(e)])}catch(e){}}}},{key:"trace",value:function(){if(window.logLevel&&window.logLevel>=5){var e=Array.prototype.slice.call(arguments);this._preprocess(e),console.trace&&console.trace.apply(console,e);try{window.JSObject?window.JSObject.logTrace(this.getStringFromArgs(e)):window.app&&window.app.logMessage&&window.app.logMessage(["TRACE",this.getStringFromArgs(e)])}catch(e){}}}}],n&&s(t.prototype,n),i&&s(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),u=new l;function f(e){return f="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},f(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,g(i.key),i)}}function h(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function g(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=f(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:String(t)}var m=function(){function e(t,n){d(this,e),this._originalCoreObj=n,this._moduleObj=t}return h(e,[{key:"initialize",value:function(e){this._originalCoreObj(e)}},{key:"handleMessage",value:function(e){return e.sourceID||(e.sourceID=this._moduleObj._id),e.sourceVersion||(e.sourceVersion=this._moduleObj._version),e.sourceInstanceID||(e.sourceInstanceID=this._moduleObj._instanceID),e.isAsync=null==e.isAsync||e.isAsync,e.enableLog=null==e.enableLog||e.enableLog,e.sendViaMainThread=null!=e.sendViaMainThread&&e.sendViaMainThread,this._originalCoreObj.handleMessage(e)}},{key:"finalize",value:function(e){this._originalCoreObj.finalize(e)}}]),e}(),y=function(){function e(t,n,i,o,r){d(this,e),this._type=t.type,this._id=t.id,this._version=t.version,this._instanceID=t.instanceID,this._path=t.path,this._csspath=t.cssPath,this._role=t.role,this._dictionaryPath=t.dictionaryPath,this._parentID=n||"",this._parentVersion=i||"",this._parentInstanceID=o||"",this._instanceID||(this._instanceID=this._parentInstanceID),this._object=null,this._isLoaded=!1,this._coreObj=new m(this,r),this._originalCoreObj=r}return h(e,[{key:"getParent",value:function(){return this._parentID}},{key:"register",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(u.debug("CoreModule: Successfully loaded Module '",this._id,"'"),!(e&&"object"==f(e)&&e.initialize&&"function"==typeof e.initialize&&e.handleMessage&&"function"==typeof e.handleMessage&&e.finalize&&"function"==typeof e.finalize))return!1;this._object=e,this._isLoaded=!0;var i={hostObject:this._coreObj,type:this._type,id:this._id,version:this._version,instanceID:this._instanceID,path:this._path,initJSON:t.initData,dictionary:n};return!1!==this._object.initialize(i)}},{key:"getLocalizationStrings",value:function(e,t,n){var i=this._dictionaryPath+"/"+e+".json",o=new XMLHttpRequest;o.open("GET",i),o.onload=function(){"number"==typeof o.status&&o.status<400?t(JSON.parse(o.response)):(u.warn("Non-success code: "+o.status+" in loading localization strings for locale "+e),n())}.bind(this),o.onerror=function(){u.warn("Error in loading localization strings for locale "+e),n()}.bind(this),o.send()}},{key:"load",value:function(e,t){var n=this;if("OldApplet"!=this._type){var i=!this._dictionaryPath,o=null,r=null,a=document.createElement("script");if(a.type="text/javascript",a.src=this._path,a.onload=function(a){try{o=window[n._id]()}catch(a){u.error("Core: Module load exception: ",a,", messageData: ",e)}if(o){if(!0&&i){var s=n.register(o,e,r);t({status:s})}}else t({status:!1})},a.onerror=function(e){u.error("CoreModule: Error loading Module '",n._id,"': ",e),t({status:!1})},this._dictionaryPath&&this.getLocalizationStrings(e.locale,(function(a){if(i=!0,r=a,o){var s=n.register(o,e,r);t({status:s})}}),(function(){if(i=!0,o){var r=n.register(o,e);t({status:r})}})),document.head.appendChild(a),this._csspath){var s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("type","text/css"),s.href=this._csspath,document.head.appendChild(s)}return!0}this.loadOld(e,t)}},{key:"getEntity",value:function(){var e=new(window.Backbone.Model.extend({defaults:{id:this.oldAppletId,parentId:"",filePath:this._path,header:{targetID:this._id,targetVersion:"1.0",targetInstanceID:"1",sourceID:this._id.replace("_UI","_BL"),sourceVersion:"1.0",sourceInstanceID:"1"},order:0,isVisible:!1,isLoaded:!1,type:"panel",localizedName:"",children:[],needsAttention:!1,showBadge:!1,panelTab:null},setTab:function(e){e&&this.set("panelTab",e)}}));return e.on("change:localizedName",(function(){this.moduleObj._originalCoreObj.handleMessage({targetType:"Applet",targetID:"JSContainer_UI",targetVersion:"1.0",message:"UpdatePanelDisplayName",data:{panelName:this.moduleObj._id,displayName:this.entity.attributes.localizedName}})}),{entity:e,moduleObj:this}),e}},{key:"loadOld",value:function(e,t){this.oldAppletId=e.initData.divId;var n=this.getEntity();window.ccxCoreObj||(window.ccxCoreObj=this._originalCoreObj),window.require([this._path],(function(e){u.info("JSCore: Old module loaded: ",n),e.registerMe(n),n.set("isLoaded",!0),t({status:!0})}),(function(e){u.error("JSCore: Old module load failed: ",e," entity: ",n),t({status:!1})}))}},{key:"handleMessage",value:function(e){if("OldApplet"==this._type){var t=this.oldAppletId;return window.require(["interface/events"],(function(n){var i=e;e.dataInXmlData?(i.xmlData={},i.xmlData.data=i.data):i.xmlData=i.data,delete e.dataInXmlData;try{n.trigger(t,{msg:i,type:e.message})}catch(e){u.error("JSCore: Exception in old Applet message trigger: ",e)}})),!0}return!(!this._object||!this._object.handleMessage||"function"!=typeof this._object.handleMessage)&&this._object.handleMessage(e)}}]),e}();function v(e){return v="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},v(e)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,r,a,s=[],c=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=C(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}function C(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function E(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,N(i.key),i)}}function N(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=v(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:String(t)}var O=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._ccxCoreObj=t,this._loadingModules=new Map,this._loadedModules=new Map,this._loadedCoreExtensions=new Map,this._moduleRoleMap=new Map}var t,n,i;return t=e,n=[{key:"initialize",value:function(e){if(e.coreExtensionList){var t,n=_(e.coreExtensionList);try{for(n.s();!(t=n.n()).done;){var i=t.value;this.loadCoreExtension(i)}}catch(e){n.e(e)}finally{n.f()}}}},{key:"handleMessage",value:function(e){var t=this;if("JSCore"==e.targetType)return this.handleMessageForJSCore(e);if("Host"==e.targetType)return this.sendMessageToHost(e);if("Parent"==e.targetType)return this.sendMessageToAppletParent(e);if("*"==e.targetID)this.broadcastMessage(e);else{if("CoreExt"==e.targetType)return this.sendMessageToCoreExt(e);if("Applet"==e.targetType)return this.sendMessageToApplet(e);if(this._moduleRoleMap.has(e.targetType)){if(null!=e.isAsync&&!e.isAsync)return this._moduleRoleMap.get(e.targetType).handleMessage(e);setTimeout((function(){t._moduleRoleMap.get(e.targetType).handleMessage(e)}),0)}else this.sendMessageToHost(e)}return!0}},{key:"handleMessageForJSCore",value:function(e){var t=e.message;if("LoadModule"==t){var n=new y(e.data,e.sourceID,e.sourceVersion,e.sourceInstanceID,this._ccxCoreObj);return this.loadModule(n,e.data),!0}if("RegisterModule"==t){var i=new y(e.data,e.sourceID,e.sourceVersion,e.sourceInstanceID,this._ccxCoreObj);return!!i.register(e.data.moduleObject,e.data)&&(this._loadedModules.set(i._id,i),i._role&&this._moduleRoleMap.set(i._role,i),this._registerModuleWithNativeCore(i),!0)}if("UnloadModule"==t||"UnregisterModule"==t)return!this._loadedModules.has(e.data.id)||this._loadedModules.delete(e.data.id)}},{key:"loadModule",value:function(e,t){this._loadingModules.set(e._id,e),e.load(t,function(n){if(this._loadingModules.delete(e._id),n.status&&(this._loadedModules.set(e._id,e),e._role&&this._moduleRoleMap.set(e._role,e),this._registerModuleWithNativeCore(e)),t.statusCallback){if("function"==typeof t.statusCallback)try{t.statusCallback(n)}catch(e){u.error("CoreMessageManager: Exception in onLoad callback: ",e)}else if("string"==typeof t.statusCallback)try{this.sendMessageToHost({targetType:"Host",message:t.statusCallback,data:n})}catch(e){u.error("CoreMessageManager: Exception in onLoad callback: ",e)}}else u.warn("CoreMessageManager: onLoad callback not present.")}.bind(this))}},{key:"loadCoreExtension",value:function(e){var t=new y(e,"","","",this._ccxCoreObj);this._loadingModules.set(t._id,t),t.load({},function(e){this._loadingModules.delete(t._id),e.status&&this._loadedCoreExtensions.set(t._id,t)}.bind(this))}},{key:"_registerModuleWithNativeCore",value:function(e){this.sendMessageToHost({targetType:"Core",message:"RegisterApplet",data:{type:e._type,id:e._id,version:e._version,instanceID:e._instanceID,path:e._path}})}},{key:"sendMessageToHost",value:function(e){var t=this;return null!=e.isInterCoreMsg&&e.isInterCoreMsg?u.warn("CoreMessageManager: Not sending interCoreMsg back to host. Message: ",e):(e.isInterCoreMsg=!0,setTimeout((function(){t._ccxCoreObj._hostMessageHandlerFn(e)}),0)),!0}},{key:"sendMessageToAppletParent",value:function(e){var t=this,n=this._loadedModules.get(e.sourceID).getParent();if(n){if(this._loadedModules.has(n)){if(null!=e.isAsync&&!e.isAsync)return this._loadedModules.get(n).handleMessage(e);setTimeout((function(){t._loadedModules.get(n).handleMessage(e)}),0)}}else this.sendMessageToHost(e);return!0}},{key:"broadcastMessage",value:function(e){if("CoreExt"==e.targetType||"*"==e.targetType||"**"==e.targetType){var t,n=_(this._loadedCoreExtensions);try{var i=function(){var n=b(t.value,2),i=n[0],o=n[1];i!==e.sourceID&&setTimeout((function(){o.handleMessage(e)}),0)};for(n.s();!(t=n.n()).done;)i()}catch(e){n.e(e)}finally{n.f()}}if("Applet"==e.targetType||"*"==e.targetType||"**"==e.targetType){var o,r=_(this._loadedModules);try{var a=function(){var t=b(o.value,2),n=t[0],i=t[1];n!==e.sourceID&&setTimeout((function(){i.handleMessage(e)}),0)};for(r.s();!(o=r.n()).done;)a()}catch(e){r.e(e)}finally{r.f()}}"Remote"!=e.targetType&&"**"!=e.targetType||this.sendMessageToHost(e)}},{key:"sendMessageToCoreExt",value:function(e){var t=this;if(this._loadedCoreExtensions.has(e.targetID)){if(null!=e.isAsync&&!e.isAsync)return this._loadedCoreExtensions.get(e.targetID).handleMessage(e);setTimeout((function(){t._loadedCoreExtensions.get(e.targetID).handleMessage(e)}),0)}else this._loadingModules.has(e.targetID)?u.error("CoreMessageManager: Cannot send message to CoreExt during loading state. Message: ",e):this.sendMessageToHost(e);return!0}},{key:"sendMessageToApplet",value:function(e){var t=this;if(this._loadedModules.has(e.targetID)){if(null!=e.isAsync&&!e.isAsync)return this._loadedModules.get(e.targetID).handleMessage(e);setTimeout((function(){t._loadedModules.get(e.targetID).handleMessage(e)}),0)}else this._loadingModules.has(e.targetID)?u.error("CoreMessageManager: Cannot send message to Applet during loading state. Message: ",e):this.sendMessageToHost(e);return!0}}],n&&E(t.prototype,n),i&&E(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function T(e){return T="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},T(e)}function I(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,w(i.key),i)}}function w(e){var t=function(e,t){if("object"!=T(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=T(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==T(t)?t:String(t)}function A(e,t,n){return t=R(t),function(e,t){if(t&&("object"===T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return D(e)}(e,k()?Reflect.construct(t,n||[],R(e).constructor):t.apply(e,n))}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k=function(){return!!e})()}function D(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(){return P="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=R(e)););return e}(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},P.apply(this,arguments)}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}function x(e,t){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},x(e,t)}var F=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=A(this,t))._coreMessageManager=new O(D(e)),e._hostMessageHandlerFn=function(e){u.warn("Core: Host message handler found missing while sending message: ",e)},e}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(e){return P(R(t.prototype),"initialize",this).call(this,e),this._coreMessageManager.initialize(e)}},{key:"handleMessage",value:function(e){return this._coreMessageManager.handleMessage(e)}},{key:"finalize",value:function(e){P(R(t.prototype),"finalize",this).call(this,dataJSON)}}])&&I(n.prototype,i),o&&I(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(r);window.CCXCore=function(){return new F};var L={UnSupportedBrowser:-1,InsufficientMemory:-2,UnSupportedUrlScheme:-3,UnSupportedMethod:-4,UrlSchemeMissing:-5,UrlHostnameMissing:-6,MethodTypeMissing:-7,TimeoutError:-8,NetworkFailure:-9,InvalidRequest:-10,Success:1,IndexNotFound:-1};function U(e){return U="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},U(e)}function j(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,M(i.key),i)}}function M(e){var t=function(e,t){if("object"!=U(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=U(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==U(t)?t:String(t)}var W=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._errorObject={statusCode:0}}var t,n,i;return t=e,(n=[{key:"_sanityCheck",value:function(){return["HEAD","GET","POST","PUT","DELETE"].indexOf(this.methodType)>L.IndexNotFound?L.Success:(u.debug("Skynet: HttpRequestHandler - HTTP Request Method ",this.methodType," is not supported!!"),L.UnSupportedMethod)}},{key:"_setRequestHeaders",value:function(){if(u.debug("Skynet: HttpRequestHandler: _setRequestHeaders - Inside SetRequest Headers"),this.requestHeaders)for(var e in u.debug("Skynet: HttpRequestHandler: _setRequestHeaders - Request Headers",this.requestHeaders),this.requestHeaders)this.httpRequest.setRequestHeader(e,this.requestHeaders[e])}},{key:"getResponseHeaders",value:function(){var e={};if(this.httpRequest){var t=this.httpRequest.getAllResponseHeaders();if(u.debug(t),!t)return e;if(-1!==t.indexOf("\r"))for(var n=t.split("\r"),i=0,o=n.length;i<o;i++){var r=n[i];-1!==r.indexOf("\n")?this._addHeadersFromStringByNewlineSeparation(r,e):this._addKeyValuePairs(r,e)}else-1!==t.indexOf("\n")?this._addHeadersFromStringByNewlineSeparation(t,e):this._addKeyValuePairs(t,e)}return e}},{key:"_addHeadersFromStringByNewlineSeparation",value:function(e,t){if(e&&""!==e)for(var n=e.split("\n"),i=0,o=n.length;i<o;i++){var r=n[i];r&&""!==r&&this._addKeyValuePairs(r,t)}}},{key:"_addKeyValuePairs",value:function(e,t){if(e&&""!==e&&-1!==e.indexOf(":")){var n=e.split(":"),i=n[0];if(i&&""!==i){i=i.trim();var o=n[1];o&&""!==o&&(o=o.trim(),t[i]=o)}}}},{key:"cancelRequest",value:function(){this.httpRequest&&this.httpRequest.abort()}},{key:"sendRequest",value:function(){var e=this._sanityCheck();if(e<0){this._errorObject.statusCode=e;try{if(this.errorCallback)return this.errorCallback(this._errorObject)}catch(e){u.error("Skynet: HttpRequestHandler: sendRequest - Caught exception in calling error callback. Exception: ",e," Exception Message ",e.message)}}if(!window.XMLHttpRequest){u.debug("Skynet: HttpRequestHandler: sendRequest - XMLHttpRequest is not supported in browser!!"),this._errorObject.statusCode=L.UnSupportedBrowser;try{if(this.errorCallback)return this.errorCallback(this._errorObject)}catch(e){u.error("Skynet: HttpRequestHandler: sendRequest - Caught exception in calling error callback. Exception: ",e," Exception Message ",e.message)}}if(this.httpRequest=new XMLHttpRequest,!this.httpRequest){u.debug("Skynet: HttpRequestHandler: sendRequest - Cannot create an XMLHTTP instance"),this._errorObject.statusCode=L.InsufficientMemory;try{if(this.errorCallback)return this.errorCallback(this._errorObject)}catch(e){u.error("Skynet: HttpRequestHandler: sendRequest - Caught exception in calling error callback. Exception: ",e," Exception Message ",e.message)}}this.httpRequest.onload=this.handleServerResponse.bind(this),this.httpRequest.onerror=this.handleError.bind(this),this.httpRequest.ontimeout=this.handleTimeout.bind(this),this.httpRequest.open(this.methodType,this.url),this._setRequestHeaders(),this.responseType&&""!==this.responseType&&(this.httpRequest.responseType=this.responseType),this.timeout?this.httpRequest.timeout=this.timeout:this.httpRequest.timeout=6e4,this.content?this.httpRequest.send(this.content):this.httpRequest.send()}},{key:"_isResponseSuccessful",value:function(){return this.httpRequest.status>=200&&this.httpRequest.status<400}},{key:"handleServerResponse",value:function(){if(this._isResponseSuccessful()){u.debug("Skynet: HttpRequestHandler: handleServerResponse - Request is successfuly completed");try{this.responseCallback&&(this.httpRequest.responseType&&""!==this.httpRequest.responseType?this.responseCallback(this.httpRequest.response):this.responseCallback(this.httpRequest.responseText))}catch(e){u.error("Skynet: HttpRequestHandler: handleServerResponse - Caught exception in calling response callback. Exception: ",e," Exception Message ",e.message)}}else{u.debug("Skynet: HttpRequestHandler: handleServerResponse - Request failed to complete successfuly"),this._errorObject.statusCode=this.httpRequest.status;var e=this.httpRequest.getResponseHeader("Retry-After");e&&(this._errorObject.responseHeaders={"Retry-After":e});try{this.errorCallback&&this.errorCallback(this._errorObject)}catch(e){u.error("Skynet: HttpRequestHandler: handleServerResponse - Caught exception in calling error callback. Exception: ",e," Exception Message ",e.message)}}}},{key:"handleTimeout",value:function(){u.debug("Skynet: HttpRequestHandler: handleTimeout - Timeout occurred in request"),this._errorObject.statusCode=L.TimeoutError;try{this.errorCallback&&this.errorCallback(this._errorObject),this.httpRequest.abort()}catch(e){u.error("Skynet: HttpRequestHandler: handleTimeout - Caught exception in calling error callback. Exception: ",e," Exception Message ",e.message)}}},{key:"handleError",value:function(){u.debug("Skynet: HttpRequestHandler: handleError - Error occurred in request"),this._errorObject.statusCode=L.NetworkFailure;try{this.errorCallback&&this.errorCallback(this._errorObject)}catch(e){u.error("Skynet: HttpRequestHandler: handleError - Caught exception in calling error callback. Exception: ",e," Exception Message ",e.message)}}}])&&j(t.prototype,n),i&&j(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function H(e){return H="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},H(e)}function q(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,B(i.key),i)}}function B(e){var t=function(e,t){if("object"!=H(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=H(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==H(t)?t:String(t)}var V=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"getErrorCode",value:function(t,n){switch(n){case-1:return"UnSupported_Browser";case-2:return"Insufficient_Memory";case-3:return"UnSupported_Url_Scheme";case-4:return"UnSupported_Method_Type";case-5:return"Url_Scheme_Missing";case-6:return"Url_Hostname_Missing";case-7:return"Method_Type_Missing";case-8:return"Request_Timeout";case-9:return"Network_Failure";case-10:return"InvalidRequest";default:return e._getSchemeBasedErrorCodes(t,n)}}},{key:"_getSchemeBasedErrorCodes",value:function(t,n){switch(t){case"wss":case"ws":return e._getErrorCodesForWebsocketRequest(n);case"https":case"http":return e._getErrorCodesForHttpRequest(n)}}},{key:"_getErrorCodesForWebsocketRequest",value:function(e){return"UnSupported_Url_Scheme"}},{key:"_getErrorCodesForHttpRequest",value:function(e){switch(e){case 200:case 304:return"Success";case 400:return"Bad_Request";case 401:return"Unauthorized";case 403:return"Forbidden";case 404:return"Resource_Not_Found";case 407:return"Proxy_Authentication_Required";case 408:return"Request_Timeout";case 429:return"Too_Many_Requests";case 500:return"Internal_Server_Error";case 501:return"Request_Not_Implemented";case 502:return"Bad_Gateway";case 503:return"Service_Unavailable";case 504:return"Gateway_Timeout";default:return e>400&&e<500?"Client_Request_Error":e>=500&&e<600?"Server_Response_Error":"Invalid_Request"}}}],(n=null)&&q(t.prototype,n),i&&q(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function G(e){return G="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},G(e)}function z(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,K(i.key),i)}}function K(e){var t=function(e,t){if("object"!=G(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=G(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==G(t)?t:String(t)}var Y=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"addUrlQueryParams",value:function(e,t){if("undefined"!==t&&"object"===G(t))for(var n in t){n=encodeURIComponent(n);var i=encodeURIComponent(t[n]);e+=(e.split("?")[1]?"&":"?")+n+"="+i}return e}},{key:"createUrl",value:function(t,n,i,o,r){var a=t+"://",s="";return-1==n.indexOf(a)&&(s=a),s+=n+i+o,e.addUrlQueryParams(s,r)}}],(n=null)&&z(t.prototype,n),i&&z(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function X(e){return X="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},X(e)}function J(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,$(i.key),i)}}function $(e){var t=function(e,t){if("object"!=X(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=X(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==X(t)?t:String(t)}var Q=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._errorObject={statusCode:0,errorCode:""},t?(this.networkRequestObj=t,this._setNetworkRequestScheme()):(this._errorObject.statusCode=L.InvalidRequest,this.onError(this._errorObject))}var t,n,i;return t=e,(n=[{key:"sendRequest",value:function(e){this._errorObject.statusCode<0?u.warn("Skynet: NetworkCommunicatorImpl: sendRequest - Request failed to create(Error Code: ",this._errorObject.errorCode,"). Ignoring request"):(this._setRequestData(e),this._handleRequest(this.networkRequestObj.scheme))}},{key:"getResponseHeaders",value:function(){if(this.currentRequestObj)return this.currentRequestObj.getResponseHeaders()}},{key:"cancelRequest",value:function(){this.currentRequestObj&&this.currentRequestObj.cancelRequest()}},{key:"_setNetworkRequestScheme",value:function(){if(!this.networkRequestObj.scheme){var e=this.networkRequestObj.hostname;e&&-1!=e.indexOf("://")&&(this.networkRequestObj.scheme=e.split("://")[0])}this.networkRequestObj.scheme||(this._errorObject.statusCode=L.UrlSchemeMissing,this.onError(this._errorObject))}},{key:"_setRequestData",value:function(e){e.queryParams&&(this.networkRequestObj.queryParams=e.queryParams),e.requestHeaders&&(this.networkRequestObj.requestHeaders=e.requestHeaders),e.timeoutInSec&&(this.networkRequestObj.timeoutInSec=e.timeoutInSec),e.content&&(this.networkRequestObj.content=e.content),e.responseType&&(this.networkRequestObj.responseType=e.responseType)}},{key:"_sanityCheck",value:function(){return this.networkRequestObj.scheme&&"string"==typeof this.networkRequestObj.scheme?this.networkRequestObj.hostname&&"string"==typeof this.networkRequestObj.hostname?this.networkRequestObj.methodType&&"string"==typeof this.networkRequestObj.methodType?(this.networkRequestObj.port&&"string"==typeof this.networkRequestObj.port||(this.networkRequestObj.port=""),this.networkRequestObj.path&&"string"==typeof this.networkRequestObj.path||(this.networkRequestObj.path=""),this.networkRequestObj.content&&"string"==typeof this.networkRequestObj.content||(this.networkRequestObj.content=""),this.networkRequestObj.queryParams&&"object"===X(this.networkRequestObj.queryParams)||(this.networkRequestObj.queryParams={}),this.networkRequestObj.requestHeaders&&"object"===X(this.networkRequestObj.requestHeaders)||(this.networkRequestObj.requestHeaders={}),this.networkRequestObj.timeoutInSec&&"number"==typeof this.networkRequestObj.timeoutInSec||(this.networkRequestObj.timeoutInSec=0),this.networkRequestObj.responseCallback&&"function"==typeof this.networkRequestObj.responseCallback||(this.networkRequestObj.responseCallback=function(){}),this.networkRequestObj.errorCallback&&"function"==typeof this.networkRequestObj.errorCallback||(this.networkRequestObj.errorCallback=function(){}),L.Success):(u.debug("Skynet: NetworkCommunicatorImpl: _sanityCheck - Request methodType(HEAD/GET/POST/PUT/DELETE) is missing. Ignoring request"),L.MethodTypeMissing):(u.debug("Skynet: NetworkCommunicatorImpl: _sanityCheck - Url hostname is missing. Ignoring request"),L.UrlHostnameMissing):(u.debug("Skynet: NetworkCommunicatorImpl: _sanityCheck - Url scheme is missing. Ignoring request"),L.UrlSchemeMissing)}},{key:"_handleRequest",value:function(e){u.debug("Skynet: NetworkCommunicatorImpl: _handleRequest - Handling request.....");var t=this._sanityCheck(),n={};if(t!=L.Success)return n.statusCode=t,void this.onError(n);switch(e){case"wss":case"ws":this._handleWebSocketRequest();break;case"https":case"http":this._handleHttpRequest();break;default:n.statusCode=L.UnSupportedUrlScheme,this.onError(n)}}},{key:"_addCommonRequestParameters",value:function(){this.currentRequestObj.requestHeaders=this.networkRequestObj.requestHeaders,this.currentRequestObj.methodType=this.networkRequestObj.methodType,this.currentRequestObj.content=this.networkRequestObj.content,this.currentRequestObj.responseCallback=this.networkRequestObj.responseCallback,this.currentRequestObj.errorCallback=this.onError.bind(this),this.networkRequestObj.responseType&&""!==this.networkRequestObj.responseType&&(this.currentRequestObj.responseType=this.networkRequestObj.responseType)}},{key:"_handleWebSocketRequest",value:function(){var e={};e.statusCode=L.UnSupportedUrlScheme,this.onError(e)}},{key:"_handleHttpRequest",value:function(){if(this.currentRequestObj=new W,!this.currentRequestObj){u.debug("Skynet: NetworkCommunicatorImpl: _handleHttpRequest - Cannot create HttpCommunicator instance");var e={};return e.statusCode=L.InsufficientMemory,void this.onError(e)}this._addCommonRequestParameters(),this.currentRequestObj.url=Y.createUrl(this.networkRequestObj.scheme,this.networkRequestObj.hostname,this.networkRequestObj.port,this.networkRequestObj.path,this.networkRequestObj.queryParams),this.currentRequestObj.timeout=1e3*this.networkRequestObj.timeoutInSec,this.currentRequestObj.sendRequest()}},{key:"onError",value:function(e){delete this.currentRequestObj,this._errorObject.statusCode=e.statusCode,this._errorObject.errorCode=V.getErrorCode("https",e.statusCode),e.responseHeaders&&(this._errorObject.responseHeaders=e.responseHeaders);try{this.networkRequestObj.errorCallback&&this.networkRequestObj.errorCallback(this._errorObject)}catch(e){u.error("Skynet: NetworkCommunicatorImpl: onError - Caught exception inside calling client's error callback. Exception: ",e," Exception Message ",e.message)}}}])&&J(t.prototype,n),i&&J(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Z(e){return Z="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},Z(e)}function ee(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,te(i.key),i)}}function te(e){var t=function(e,t){if("object"!=Z(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Z(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Z(t)?t:String(t)}var ne=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u.debug("Skynet: NetworkCommunicator: NetworkCommunicator is being constructed for request",t),this.networkCommunicatorImplObj=new Q(t)}var t,n,i;return t=e,(n=[{key:"SendRequest",value:function(e){u.debug("Skynet: NetworkCommunicator: SendRequest - Sending request.....: ",e),this.networkCommunicatorImplObj.sendRequest(e)}},{key:"GetResponseHeaders",value:function(){return u.debug("Skynet: NetworkCommunicator: GetResponseHeaders - Get Response headers....."),this.networkCommunicatorImplObj.getResponseHeaders()}},{key:"CancelRequest",value:function(){u.debug("Skynet: NetworkCommunicator: CancelRequest - Cancels Request"),this.networkCommunicatorImplObj.cancelRequest()}}])&&ee(t.prototype,n),i&&ee(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ie=console;function oe(e){return oe="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},oe(e)}function re(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,ae(i.key),i)}}function ae(e){var t=function(e,t){if("object"!=oe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=oe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oe(t)?t:String(t)}var se=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._hostObservers=new Map,this._sourcePropertySeparator="|*#%"}var t,n,i;return t=e,n=[{key:"_preprocessHostObserversList",value:function(e){if(!e||"object"!==oe(e)||!e.callbackFn||"function"!=typeof e.callbackFn)return!1;e.observersList&&Array.isArray(e.observersList)||(e.observersList&&(e.observersList.type||e.observersList.subtype)?e.observersList=[{type:e.observersList.type?e.observersList.type:"*",subtype:e.observersList.subtype?e.observersList.subtype:"*"}]:e.observersList=[{type:"*",subtype:"*"}]);for(var t=0;t<e.observersList.length;t+=1)e.observersList[t].type=e.observersList[t].type?e.observersList[t].type:"*",e.observersList[t].subtype=e.observersList[t].subtype?e.observersList[t].subtype:"*";return!0}},{key:"_addRule",value:function(e,t){var n=e.version;void 0===n&&(n="");var i=e.id+this._sourcePropertySeparator+n,o=e.observersList,r=e.requestContext;void 0===r&&(r="");for(var a=e.callbackFn,s=0;s<o.length;s+=1){var c=o[s].type,l=o[s].subtype;this._hostObservers.has(i)||this._hostObservers.set(i,new Set),this._hostObservers.get(i).add({mode:t,type:c,subType:l,callbackFn:a,requestContext:r})}return!0}},{key:"_getHostListenersList",value:function(e,t){var n=new Set;return this._hostObservers.forEach((function(i){var o,r,a=!1;i.forEach((function(n){"*"!==n.type&&n.type!==e||"*"!==n.subType&&n.subType!==t||(a="+"===n.mode,o=n.callbackFn,r=n.requestContext)})),a&&n.add({callBackFunc:o,requestContext:r})})),n}},{key:"registerObserver",value:function(e){return!!this._preprocessHostObserversList(e.data)&&this._addRule(e.data,"+")}},{key:"unregisterObserver",value:function(e){return!!this._preprocessHostObserversList(e.data)&&this._addRule(e.data,"-")}},{key:"notifyObservers",value:function(e){for(var t=this,n=function(n){t._getHostListenersList(e[n].type,e[n]["sub-type"]).forEach((function(t){var i={notifications:{notification:[e[n]]}};try{var o;o=t.requestContext?{requestContext:t.requestContext,data:i}:{data:i},t.callBackFunc&&"function"==typeof t.callBackFunc&&t.callBackFunc(o)}catch(e){ie.error("UNCEngine: HostClientNotificationDispatcher: notifyObservers - Callback exception: ",e)}}))},i=0;i<e.length;i+=1)n(i);return!0}}],n&&re(t.prototype,n),i&&re(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ce=new se;function le(e){return le="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},le(e)}function ue(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,fe(i.key),i)}}function fe(e){var t=function(e,t){if("object"!=le(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=le(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==le(t)?t:String(t)}var de=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._observers=new Map,this._sourcePropertySeparator="|*#%",this._callback=function(e){ie.error("UNCEngine: NotificationDispatcher: No callback registered, messageObject: ",e)}}var t,n,i;return t=e,n=[{key:"_preprocessObserversList",value:function(e){if(!e||"object"!==le(e)||!e.data||"object"!==le(e.data)||!e.data.namespace||"string"!=typeof e.data.namespace)return!1;e.data.observersList&&Array.isArray(e.data.observersList)||(e.data.observersList&&(e.data.observersList.type||e.data.observersList.subtype)?e.data.observersList=[{type:e.data.observersList.type?e.data.observersList.type:"*",subtype:e.data.observersList.subtype?e.data.observersList.subtype:"*"}]:e.data.observersList=[{type:"*",subtype:"*"}]);for(var t=0;t<e.data.observersList.length;t+=1)e.data.observersList[t].type=e.data.observersList[t].type?e.data.observersList[t].type:"*",e.data.observersList[t].subtype=e.data.observersList[t].subtype?e.data.observersList[t].subtype:"*";return!0}},{key:"_addRule",value:function(e,t,n,i,o,r){var a="internal";"true"===n&&(a="external"),void 0===t&&(t="");for(var s=e+this._sourcePropertySeparator+t+this._sourcePropertySeparator+a,c=0;c<o.length;c+=1){var l=o[c].type,u=o[c].subtype;this._observers.has(s)||this._observers.set(s,new Map),this._observers.get(s).has(i)||this._observers.get(s).set(i,new Set),this._observers.get(s).get(i).add({mode:r,type:l,subType:u})}return!0}},{key:"_getListenersList",value:function(e,t){var n=new Set;return this._observers.forEach((function(i,o){i.forEach((function(i,r){var a=!1;i.forEach((function(n,i){"*"!==n.type&&n.type!==e||"*"!==n.subType&&n.subType!==t||(a="+"===n.mode)})),a&&n.add({id:o,namespace:r})}))})),n}},{key:"setClientCallback",value:function(e){return this._callback=e,!0}},{key:"registerObserver",value:function(e){return e&&e.data&&e.data.callbackFn&&"function"==typeof e.data.callbackFn?ce.registerObserver(e):!!this._preprocessObserversList(e)&&this._addRule(e.sourceID,e.sourceVersion,e.isMsgExternal,e.data.namespace,e.data.observersList,"+")}},{key:"registerClientObservers",value:function(e){return!!this._preprocessObserversListForClient(e)&&this._addRuleForClient(e.sourceID,e.sourceVersion,e.isMsgExternal,e.data.namespace,e.data.observersList,"+")}},{key:"unregisterObserver",value:function(e){return e&&e.data&&e.data.callbackFn&&"function"==typeof e.data.callbackFn?ce.unregisterObserver(e):!!this._preprocessObserversList(e)&&this._addRule(e.sourceID,e.sourceVersion,e.isMsgExternal,e.data.namespace,e.data.observersList,"-")}},{key:"unregisterClientObservers",value:function(e){return!!this._preprocessObserversListForClient(e)&&this._addRuleForClient(e.sourceID,e.sourceVersion,e.isMsgExternal,e.data.namespace,e.data.observersList,"-")}},{key:"notifyObservers",value:function(e){for(var t=this,n=new Map,i=function(i){t._getListenersList(e[i].type,e[i]["sub-type"]).forEach((function(o){try{if("UNCWidget"===o.id)if(n.has(o.id)){var r=n.get(o.id);r.notifsToProvide&&r.notifsToProvide.notifications&&r.notifsToProvide.notifications.notification.push(e[i])}else{var a={notifications:{notification:[e[i]]}},s={};s.listenerDetails=o,s.notifsToProvide=a,n.set(o.id,s)}else{var c={notifications:{notification:[e[i]]}},l=o.id.split(t._sourcePropertySeparator),u={targetType:"Applet",targetID:l[0],targetVersion:l[1],isMsgExternal:"internal"===l[2]?"false":"true",message:o.namespace,data:c};t._callback(u)}}catch(e){ie.error("UNCEngine: NotificationDispatcher: notifyObservers - Callback exception: ",e)}}))},o=0;o<e.length;o+=1)i(o);return n.size>0&&n.forEach((function(e){try{var n=e.listenerDetails,i=n.id.split(t._sourcePropertySeparator),o={targetType:"Applet",targetID:i[0],targetVersion:i[1],isMsgExternal:"internal"===i[2]?"false":"true",message:n.namespace,data:e.notifsToProvide};t._callback(o)}catch(e){ie.error("UNCEngine: NotificationDispatcher: notifyObservers - Callback exception: ",e)}})),ce.notifyObservers(e),!0}},{key:"_preprocessObserversListForClient",value:function(e){return!!(e&&"object"===le(e)&&e.data&&"object"===le(e.data)&&e.data.namespace&&"string"==typeof e.data.namespace)&&(e.data.observersList&&!Array.isArray(e.data.observersList)&&(e.data.observersList=[{clientID:e.data.observersList.clientID}]),!0)}},{key:"_addRuleForClient",value:function(e,t,n,i,o,r){var a="internal";"true"===n&&(a="external"),void 0===t&&(t="");for(var s=e+this._sourcePropertySeparator+t+this._sourcePropertySeparator+a,c=0;c<o.length;c+=1){var l=o[c].clientID;this._observers.has(s)||this._observers.set(s,new Map),this._observers.get(s).has(i)||this._observers.get(s).set(i,new Set),this._observers.get(s).get(i).add(JSON.stringify({mode:r,clientID:l}))}return!0}},{key:"notifyObserversForClients",value:function(e){for(var t=this,n=function(n){t._getListenersApplicationList(e[n]).forEach((function(i){try{var o={notifications:{notification:[e[n]]}},r=i.id.split(t._sourcePropertySeparator),a={targetType:"Applet",targetID:r[0],targetVersion:r[1],isMsgExternal:"internal"===r[2]?"false":"true",message:i.namespace,data:{clientID:i.clientID,notificationObj:o}};t._callback(a),ie.debug("UNCEngine: NotificationDispatcher: notifyObserversForClients , notified listeners with payload: ",a)}catch(e){ie.error("UNCEngine: NotificationDispatcher: notifyObserversForClients - Callback exception: ",e)}}))},i=0;i<e.length;i+=1)n(i);return!0}},{key:"_getListenersApplicationList",value:function(e){var t=new Set;try{var n=JSON.parse(e.payload).clientApplications;this._observers.forEach((function(e,i){e.forEach((function(e,o){e.forEach((function(e,r){var a=e;"string"==typeof e&&(a=JSON.parse(e)),n.some((function(e){return a.clientID&&a.clientID.toLowerCase()===e.toLowerCase()&&"+"===a.mode}))&&t.add({id:i,namespace:o,clientID:a.clientID})}))}))}))}catch(e){ie.warn("UNCEngine: NotificationDispatcher: _getListenersApplicationList: notification not applicable for clientApplications:",e)}return t}},{key:"broadcastServerTimestamp",value:function(e){if(e&&"number"!=typeof e)ie.warn("UNCEngine: NotificationDispatcher: broadcastTimestamp - Input 'timestamp' is not valid!!");else{var t=e?e-(new Date).getTime():0;Tt.setData({serverTimestampOnLaunch:e,serverTimeDelta:t});var n={};n.value=t,this.sendMessageToApplet("TimestampDrift",n,"*")}}},{key:"sendUpdateAnalyticsConfigToWidget",value:function(e){this.sendMessageToApplet("UpdateAnalyticsConfig",e,"UNCWidget")}},{key:"sendMessageToClient",value:function(e){if(!e||"object"!==le(e)||!e.message||"string"!=typeof e.message)return!1;try{return this._callback(e)}catch(e){ie.error("UNCEngine: NotificationDispatcher: sendDataToClient - Callback exception: ",e)}return!0}},{key:"sendTrayNotificationData",value:function(e){if(e.length){var t={notifications:{notification:e}};this.sendMessageToParent("ShowOSTray",!0,t)}return!0}},{key:"_sendMessage",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r={};return r.message=e,r.data=t,r.targetType=n,r.targetID=i,r.isAsync=o,this.sendMessageToClient(r)}},{key:"sendMessageToApplet",value:function(e,t,n){return this._sendMessage(e,t,"Applet",n)}},{key:"sendMessageToCoreExt",value:function(e,t,n){return this._sendMessage(e,t,"CoreExt",n)}},{key:"sendMessageToParent",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return this._sendMessage(e,n,"Parent","",t)}}],n&&ue(t.prototype,n),i&&ue(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),pe=new de;function he(e){return he="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},he(e)}function ge(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,me(i.key),i)}}function me(e){var t=function(e,t){if("object"!=he(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=he(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==he(t)?t:String(t)}var ye=120,ve=10,be=8192,_e="https://notify.adobe.io",Ce="https://notify-stage.adobe.io",Se="https://notify.adobe.io",Ee="https://notify-stage.adobe.io",Ne="/ans/v2/notifications/timeline",Oe="/ans/v1/notifications",Te="/ans/v2/notifications/longpoll",Ie="/ans/v2/notifications/count",we="/ans/v2/notifications/search",Ae="/ans/v2/device/",ke=1,De=300,Pe=.1,Re="/ans/v2/preferences/category/user",xe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.notificationConfiguration={}}var t,n,i;return t=e,(n=[{key:"initialize",value:function(e){this.pollingInterval=ye,this.pageSize=ve,this.payloadSize=be,this.serverShortPollUri=Oe,this.serverBackFillUri=Ne,this.serverLongPollUri=Te,this.serverNotificationUnreadCountURI=Ie,this.serverNotificationSearchURI=we,this.serverDeviceRegisterUnRegisterURI=Ae,this.longPollEnabled=ke,this.longPollTimeout=De,this.configVersion=Pe,this.serverUserPreferencesURI=Re,"prod"===e.env?(this.serverBaseUrl=_e,this.serverBaseAdobeIOUrl=Se):(this.serverBaseUrl=Ce,this.serverBaseAdobeIOUrl=Ee)}},{key:"_setConfigParamsHelper",value:function(e,t){switch(e){case"NEPollingInterval":this.pollingInterval=parseInt(t,10);break;case"NEPageSize":this.pageSize=parseInt(t,10);break;case"NEPayloadSize":this.payloadSize=parseInt(t,10);break;case"NEServerBaseURL":this.serverBaseUrl=t;break;case"NEServerAdobeIOBaseURL":this.serverBaseAdobeIOUrl=t;break;case"NEServerURI":this.serverShortPollUri=t;break;case"NEServerURILongPoll":this.serverLongPollUri=t;break;case"NELongPollEnabled":this.longPollEnabled=1===parseInt(t,10);break;case"NESwitchToDefaultLongPollURI":this.defaultLongPollURIEnabled=1===parseInt(t,10);break;case"NELongPollTimeout":this.longPollTimeout=parseInt(t,10)}}},{key:"setConfigParams",value:function(e){this.notificationConfiguration=e;for(var t=e["config-params"]["config-param"],n=0;n<t.length;n+=1){var i=t[n];this._setConfigParamsHelper(i.key,i.value[0])}Object.prototype.hasOwnProperty.call(e,"complete-version")?this.configVersion=e["complete-version"]:this.configVersion=e.version,ie.debug("configurations",this)}},{key:"serveNotificationConfigurationRequest",value:function(e){pe.sendMessageToApplet(e.data.namespace,this.notificationConfiguration,e.sourceID)}}])&&ge(t.prototype,n),i&&ge(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Fe=n(7780),Le=n.n(Fe),Ue={PROD_BASE_PATH:"https://prod.adobeccstatic.com",DEV_BASE_PATH:"https://dev.adobeccstatic.com",STAGE_BASE_PATH:"https://stage.adobeccstatic.com",QE_BASE_PATH:"https://qe.adobeccstatic.com",IMS_ENDPOINT_URLS:{PROD:"https://ims-na1.adobelogin.com",STAGE:"https://ims-na1-stg1.adobelogin.com"},FEATURE_FLAG_URLS:{PROD:"https://ffc-static-cdn.oobesaas.adobe.com/features/v3/unc/uncConfig.json",STAGE:"https://stg-ffc-static-cdn.oobesaas.adobe.com/features/v3/unc/uncConfig.json"},BIFROST_HOSTED_URLS:{PROD:"https://prod.adobeccstatic.com/wamclient/0.1/wamclient.js",STAGE:"https://stage.adobeccstatic.com/wamclient/0.1/wamclient.js"},CC_ICON_URLS:{PROD:"https://prod.adobeccstatic.com/unc/assets/creative_cloud_icon@2x-p7QCV_J.png",STAGE:"https://stage.adobeccstatic.com/unc/assets/creative_cloud_icon@2x-p7QCV_J.png"},ENABLED:"ENABLED",FEATURES:{DISABLED_SURFACES_FOR_FETCHING_HISTORICAL_NOTIFICATIONS:["DESKTOP"]},PATH_PARAM:"unc",VERSION_PARAM:"10.0",LATEST_VERSION_PARAM:"latest",UNC_CLIENT_ID:"UNC_Desktop",Consumer_Supported_Keys:["client_id","name","version","platform","app_store_id"],Component_Supported_Keys:["name","version"],Event_Supported_Keys:["visitor_guid"],Evidon_Supported_Keys:["name","version"],Event_Section:"event",Source_Section:"source",Content_Section:"content",UI_Section:"ui",Environment_Section:"env",Consumer_Section:"consumer",User_Section:"user",Transaction_Section:"trn",Experiment_Section:"exp",Component_Section:"env.com",CAMPAIGN_ID:"CAMPAIGN_ID",VARIATION_ID:"VARIATION_ID",SURFACE_UXP:"UXP",SURFACE_WEB:"WEB",SURFACE_DESKTOP:"DESKTOP",MAC:"mac",HTML_PARSE_ERROR:"htmlContentParsingError",HTML_EMPTY_PAYLOAD:"emptyPayloadContent",HTML_PAYLOAD_NOT_PRESENT:"payloadContentNotDefined"},je={OneSecond:1e3,TimeOutErrorCountLimit:4,ClientErrorCountLimit:4,ServerErrorCountLimit:10,InternalNetworkErrorCountLimit:10,COREEXT_TARGET_TYPE:"CoreExt",ANALYTICS_DESKTOP_TARGET_ID:"AnalyticsCoreExt",ConfigurationKey:"notification-configuration",CONTAINER_BL:"C3Container_BL",CCDCONTAINER_JS:"CCDContainer_JS",SwitchedToLongPollEvent:"ACCC_SWITCHED_TO_LONGPOLL",SwitchedToLongPollEventWin:"ACCC_WIN_PUSH_NOTIFICATION",DevicePushSet:"ACCC_DEVICE_PUSH_SET",DevicePushEnabledWin:"ANS_CONNECTION_ESTABLISHED",DevicePushDisabledWin:"DISABLED",DevicePushFeatureDisabled:"FeatureDisabled",PushServiceNotRunning:"PushServiceNotRunning",DeviceTokenNotAvailable:"DeviceTokenUnAvailable",AccessTokenMissing:"AccessTokenMissing",DevicePushFailureReason:"@reason",DevicePushFailureErrorCode:"@errorCode",DevicePushFailureReasonWin:"@Notification_Status_Reason",EnableForSurface:"enabled-for-surfaces",PerSurface:"PER_SURFACE",ENABLED:"enabled",INIT:"Init",COMPONENT:"component",ENGINE:"Engine",MESSAGE_HISTORICAL_NOTIFICATIONS:"HistoricalNotificationsNamespace",MESSAGE_PINNED_HISTORICAL_NOTIFICATIONS:"HistoricalPinnedNotificationsNamespace",DISABLED:"disabled",ENVIRONMENTS:{PROD:"prod",STAGE:"stage"},DeviceType:{MOBILE:"Mobile"},Surface:{WEB:"Web",DESKTOP:"desktop"},Optimizations:{DYNAMIC_LOADING:"dynamicLoading"},locales:{supportedLocales:["ar_AE","bg_BG","bn_IN","cs_CZ","cy_GB","da_DK","de_DE","el_GR","en_US","es_ES","et_EE","fi_FI","fil_PH","fr_FR","he_IL","hi_IN","hu_HU","id_ID","it_IT","ja_JP","ko_KR","lt_LT","lv_LV","ms_MY","nb_NO","nl_NL","pl_PL","pt_BR","pt_PT","ro_RO","ru_RU","sk_SK","sl_SI","sv_SE","ta_IN","th_TH","tr_TR","uk_UA","vi_VN","zh_CN","zh_TW"],fallbackLocales:{ar_EG:"ar_AE",ar_KW:"ar_AE",ar_MENA:"ar_AE",ar_QA:"ar_AE",ar_SA:"ar_AE",de_AT:"de_DE",de_CH:"de_DE",de_LU:"de_DE",en_AE:"en_US",en_AFRICA:"en_US",en_AU:"en_US",en_BE:"en_US",en_CA:"en_US",en_CIS:"en_US",en_EG:"en_US",en_GB:"en_US",en_GR:"en_US",en_HK:"en_US",en_ID:"en_US",en_IE:"en_US",en_IL:"en_US",en_IN:"en_US",en_KW:"en_US",en_LU:"en_US",en_MENA:"en_US",en_MY:"en_US",en_NG:"en_US",en_NZ:"en_US",en_PH:"en_US",en_QA:"en_US",en_SA:"en_US",en_SG:"en_US",en_TH:"en_US",en_VN:"en_US",en_ZA:"en_US",es_AR:"es_ES",es_CL:"es_ES",es_CO:"es_ES",es_CR:"es_ES",es_EC:"es_ES",es_GT:"es_ES",es_LA:"es_ES",es_MX:"es_ES",es_PE:"es_ES",es_PR:"es_ES",fr_BE:"fr_FR",fr_CA:"fr_FR",fr_CH:"fr_FR",fr_LU:"fr_FR",it_CH:"it_IT",nl_BE:"nl_NL",ru_CIS:"ru_RU",zh_HK:"zh_TW"},rtlLocales:["ar_AE","he_IL"],defaultLocale:"en_US"},RegistrationStatus:{SUCCESS:"success",FAILURE:"failure",PENDING:"pending"},RegistrationWaitingTimeout:6e4,HealthCheckPingTime:12e4};function Me(e){return Me="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},Me(e)}function We(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,He(i.key),i)}}function He(e){var t=function(e,t){if("object"!=Me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Me(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Me(t)?t:String(t)}var qe=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"getDefaultObjectForUNCForAnalytics",value:function(){var e={xApiKey:"unc-web-service",apiKey:"unc-web-service",project:"unc-web-service",source:"UNC"};return"prod"!==It.env.toLowerCase()?(e.environment="stage",e.rsid="adbem-cchome-dev"):(e.environment="prod",e.rsid="adbem-cchome-prod"),e}},{key:"sendAnalyticsForReceiptOfNotification",value:function(e){if(It.analyticsEnabled){ie.info("UNCEngine: EngineAnalyticsHandler: sendAnalyticsForReceiptOfNotification : notification object is ",e);var t,n,i=new(Le())(this.getDefaultObjectForUNCForAnalytics());i.initializeDefaultData();var o={};i.setDataValue("event","type","receipt"),i.setDataValue("event","subtype","notification"),i.setDataValue("event","subcategory","Message"),this.setConstantFieldsWithValues(i),e["notification-id"]&&""!==e["notification-id"]&&i.setDataValue("content","id",e["notification-id"]),e.type&&""!==e.type&&e["sub-type"]&&""!==e["sub-type"]&&i.setDataValue("content","type","".concat(e.type,":").concat(e["sub-type"])),i.setDataValue("content","status",e.state?e.state.toLowerCase():"read");try{var r="object"===Me(e.payload)?e.payload:JSON.parse(e.payload);if(e.metadata&&e.metadata["tracking-system-payload"]&&""!==e.metadata["tracking-system-payload"]){i.setDataValue("custom","ans.client_payload",e.metadata["tracking-system-payload"]),o=e.metadata["tracking-system-payload"];try{o=JSON.parse(o),Object.prototype.hasOwnProperty.call(o,Ue.CAMPAIGN_ID)&&(t=o.CAMPAIGN_ID),Object.prototype.hasOwnProperty.call(o,Ue.VARIATION_ID)&&(n=o.VARIATION_ID)}catch(e){ie.warn("UNCEngine: EngineAnalyticsHandler: sendAnalyticsForReceiptOfNotification : metadata parsing failed with error : ",e)}}if(r["tracking-system-payload"]&&""!==r["tracking-system-payload"]){i.setDataValue("custom","ans.client_payload",r["tracking-system-payload"]),o=r["tracking-system-payload"];try{o=JSON.parse(o),Object.prototype.hasOwnProperty.call(o,Ue.CAMPAIGN_ID)&&(t=o.CAMPAIGN_ID),Object.prototype.hasOwnProperty.call(o,Ue.VARIATION_ID)&&(n=o.VARIATION_ID)}catch(e){ie.warn("UNCEngine: EngineAnalyticsHandler: sendAnalyticsForReceiptOfNotification : tracking payload parsing failed with error :",e)}}}catch(e){ie.warn("UNCEngine: EngineAnalyticsHandler: sendAnalyticsForReceiptOfNotification : Error in paylaod parsing")}try{var a="object"===Me(e.payload)?e.payload:JSON.parse(e.payload);a["content-source-id"]&&""!==a["content-source-id"]&&i.setDataValue("custom","content_source_id",a["content-source-id"])}catch(e){ie.warn("UNCEngine: EngineAnalyticsHandler: sendAnalyticsForReceiptOfNotification : Error in fetching content-source-id",e)}if(t&&i.setDataValue("exp","campaign_id",t),n&&i.setDataValue("exp","variation_id",n),It.onAnalyticsEvent)try{It.onAnalyticsEvent(i.eventsObject)}catch(e){ie.warn("UNCEngine: EngineAnalyticsHandler: sendAnalyticsForReceiptOfNotification : Error in execution onAnalyticsEvent",e)}i.addToCollection(),i.sendToIngest()}}},{key:"sendAnalyticsForUserPreferenceForAnalytics",value:function(e,t){var n=new(Le())(this.getDefaultObjectForUNCForAnalytics());if(n.initializeDefaultData(),n.setDataValue(Ue.Event_Section,"type","click"),n.setDataValue(Ue.Event_Section,"subcategory","Privacy Notice"),e?n.setDataValue(Ue.Event_Section,"subtype","opt-in"):n.setDataValue(Ue.Event_Section,"subtype","opt-out"),t&&n.setDataValue(Ue.Event_Section,"value",t),It.context.analyticsConfig&&It.context.analyticsConfig.evidonDetails&&"object"===Me(It.context.analyticsConfig.evidonDetails))for(var i=Object.keys(It.context.analyticsConfig.evidonDetails),o=0;o<i.length;o+=1){var r=i[o];-1!==Ue.Evidon_Supported_Keys.indexOf(r)&&("name"===r?n.setDataValue(Ue.Environment_Section,"svc.name",It.context.analyticsConfig.evidonDetails[r]):"version"===r&&n.setDataValue(Ue.Environment_Section,"svc.version",It.context.analyticsConfig.evidonDetails[r]))}this.setConstantFieldsWithValues(n),n.addToCollection(),n.sendToIngest()}},{key:"sendAnalyticsForCommunicationPreference",value:function(e){if(It.analyticsEnabled){ie.info("UNCEngine: EngineAnalyticsHandler: sendAnalyticsForCommunicationPreference : communication channel is: ",e);var t=new(Le())(this.getDefaultObjectForUNCForAnalytics());t.initializeDefaultData(),t.setDataValue("event","type",je.ENABLED),t.setDataValue("event","value",e),this.setConstantFieldsWithValues(t),t.addToCollection(),t.sendToIngest()}}},{key:"sendAnalyticsForEngineInit",value:function(){if(It.analyticsEnabled){ie.info("UNCEngine: EngineAnalyticsHandler: sendAnalyticsForEngineInit");var e=new(Le())(this.getDefaultObjectForUNCForAnalytics());e.initializeDefaultData(),e.setDataValue(Ue.Event_Section,"type",je.INIT),e.setDataValue(Ue.Event_Section,"subtype",je.COMPONENT),e.setDataValue(Ue.Event_Section,"subcategory",je.ENGINE),this.setConstantFieldsWithValues(e),e.addToCollection(),e.sendToIngest()}}},{key:"setConstantFieldsWithValues",value:function(e){e.setDataValue("event","workflow","UNC"),e.setDataValue("event","category","WEB"),It.deviceType&&"Mobile"===It.deviceType?e.setDataValue("source","platform","MOBILE"):e.setDataValue("source","platform","WEB"),e.setDataValue("source","name","UNC"),e.setDataValue("source","version",Ue.VERSION_PARAM),It.imsClientID&&""!==It.imsClientID&&e.setDataValue("source","client_id",It.imsClientID),It.appID&&""!==It.appID&&e.setDataValue("source","app_id",It.appID),It.userGuid&&e.setDataValue("event","user_guid",It.userGuid);var t=It.locale;if(e.setDataValue("event","locale",t),It.context.analyticsConfig&&It.context.analyticsConfig.componentDetails&&"object"===Me(It.context.analyticsConfig.componentDetails))for(var n=Object.keys(It.context.analyticsConfig.componentDetails),i=0;i<n.length;i+=1){var o=n[i];-1!==Ue.Component_Supported_Keys.indexOf(o)&&("name"===o?e.setDataValue(Ue.Environment_Section,"com.name",It.context.analyticsConfig.componentDetails[o]):"version"===o&&e.setDataValue(Ue.Environment_Section,"com.version",It.context.analyticsConfig.componentDetails[o]))}if(It.context.analyticsConfig&&It.context.analyticsConfig.eventDetails&&"object"===Me(It.context.analyticsConfig.eventDetails))for(var r=Object.keys(It.context.analyticsConfig.eventDetails),a=0;a<r.length;a+=1){var s=r[a];-1!==Ue.Event_Supported_Keys.indexOf(s)&&e.setDataValue(Ue.Event_Section,s,It.context.analyticsConfig.eventDetails[s])}if(It.context.analyticsConfig&&It.context.analyticsConfig.consumerDetails&&"object"===Me(It.context.analyticsConfig.consumerDetails)){for(var c=Object.keys(It.context.analyticsConfig.consumerDetails),l=0;l<c.length;l+=1){var u=c[l];-1!==Ue.Consumer_Supported_Keys.indexOf(u)&&e.setDataValue(Ue.Consumer_Section,u,It.context.analyticsConfig.consumerDetails[u])}var f=e.getDevice();f&&""!==f&&e.setDataValue(Ue.Consumer_Section,"device",f);var d=e.getOSVersion();d&&""!==d&&e.setDataValue(Ue.Consumer_Section,"os_version",d)}var p=e.getDevice();p&&""!==p&&e.setDataValue("consumer","device",p);var h=e.getOSVersion();h&&""!==h&&e.setDataValue("consumer","os_version",h)}},{key:"sendCommunicationChannelClosedAnalytics",value:function(){}}])&&We(t.prototype,n),i&&We(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}());function Be(e){return Be="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},Be(e)}function Ve(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ge(i.key),i)}}function Ge(e){var t=function(e,t){if("object"!=Be(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Be(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Be(t)?t:String(t)}var ze,Ke=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"getDefaultObjectForConfigurationsForUNCTrayForAnalytics",value:function(){var e={xApiKey:"unc-thor-service",apiKey:"unc-thor-service",source:"UNC",project:"unc-thor-service"};return e}},{key:"sendAnalyticsForReceiptOfNotification",value:function(e){ie.debug("UNCEngine: DesktopUNCEngineAnalyticsHandler: sendAnalyticsForReceiptOfNotification : notification object is ",e);var t={};t.projectConfigDetails=this.getDefaultObjectForConfigurationsForUNCTrayForAnalytics();var n,i,o={},r={};o["event.type"]="receipt",o["event.subtype"]="notification",o["event.subcategory"]="Message",this.setConstantFieldsWithValues(o),e["notification-id"]&&""!==e["notification-id"]&&(o["content.id"]=e["notification-id"]),e.type&&""!==e.type&&e["sub-type"]&&""!==e["sub-type"]&&(o["content.type"]="".concat(e.type,":").concat(e["sub-type"])),o["content.status"]=e.state?e.state.toLowerCase():"read";try{var a="object"===Be(e.payload)?e.payload:JSON.parse(e.payload);if(e.metadata&&e.metadata["tracking-system-payload"]&&""!==e.metadata["tracking-system-payload"]){o["ans.client_payload"]=e.metadata["tracking-system-payload"],r=e.metadata["tracking-system-payload"];try{r=JSON.parse(r),Object.prototype.hasOwnProperty.call(r,Ue.CAMPAIGN_ID)&&(n=r.CAMPAIGN_ID),Object.prototype.hasOwnProperty.call(r,Ue.VARIATION_ID)&&(i=r.VARIATION_ID)}catch(e){ie.warn("UNCEngine: DesktopUNCEngineAnalyticsHandler: sendAnalyticsForReceiptOfNotification : metadata parsing failed with error : ",e)}}if(a["tracking-system-payload"]&&""!==a["tracking-system-payload"]){o["ans.client_payload"]=a["tracking-system-payload"],r=a["tracking-system-payload"];try{r=JSON.parse(r),Object.prototype.hasOwnProperty.call(r,Ue.CAMPAIGN_ID)&&(n=r.CAMPAIGN_ID),Object.prototype.hasOwnProperty.call(r,Ue.VARIATION_ID)&&(i=r.VARIATION_ID)}catch(e){ie.warn("UNCEngine: DesktopUNCEngineAnalyticsHandler: sendAnalyticsForReceiptOfNotification : tracking payload parsing failed with error :",e)}}}catch(e){ie.warn("UNCEngine: DesktopUNCEngineAnalyticsHandler: sendAnalyticsForReceiptOfNotification: Error in payload parsing")}try{var s="object"===Be(e.payload)?e.payload:JSON.parse(e.payload);s["content-source-id"]&&""!==s["content-source-id"]&&(o["custom.content_source_id"]=s["content-source-id"])}catch(e){ie.warn("UNCEngine: DesktopUNCEngineAnalyticsHandler: sendAnalyticsForReceiptOfNotification: Error in fetching content-source-id",e)}n&&(o["exp.campaign_id"]=n),i&&(o["exp.variation_id"]=i),ie.debug("UNCEngine: DesktopUNCEngineAnalyticsHandler: sendAnalyticsForReceiptOfNotification: sending event is: ",o),t.data=o,pe.sendMessageToApplet("SendAnalytics",t,je.ANALYTICS_DESKTOP_TARGET_ID)}},{key:"sendAnalyticsForUserPreferenceForAnalytics",value:function(e,t){var n={};n.projectConfigDetails=this.getDefaultObjectForConfigurationsForUNCTrayForAnalytics();var i={"event.type":"click","event.subcategory":"Privacy Notice"};if(i["event.subtype"]=e?"opt-in":"opt-out",t&&(i["event.value"]=t),It.context.analyticsConfig&&It.context.analyticsConfig.evidonDetails&&"object"===Be(It.context.analyticsConfig.evidonDetails))for(var o=Object.keys(It.context.analyticsConfig.evidonDetails),r=0;r<o.length;r+=1){var a=o[r];-1!==Ue.Evidon_Supported_Keys.indexOf(a)&&("name"===a?i["env.svc.name"]=It.context.analyticsConfig.evidonDetails[a]:"version"===a&&(i["env.svc.version"]=It.context.analyticsConfig.evidonDetails[a]))}this.setConstantFieldsWithValues(i),n.data=i,pe.sendMessageToApplet("SendAnalytics",n,je.ANALYTICS_DESKTOP_TARGET_ID)}},{key:"sendAnalyticsForAccessTokenExpiry",value:function(e){var t={};t.projectConfigDetails=this.getDefaultObjectForConfigurationsForUNCTrayForAnalytics();var n={"event.type":"accessTokenExpired"};n["event.value"]=e,this.setConstantFieldsWithValues(n),t.data=n,pe.sendMessageToApplet("SendAnalytics",t,je.ANALYTICS_DESKTOP_TARGET_ID)}},{key:"sendAnalyticsForCommunicationPreference",value:function(e){var t={};t.projectConfigDetails=this.getDefaultObjectForConfigurationsForUNCTrayForAnalytics();var n={};n["event.type"]=je.ENABLED,n["event.value"]=e,this.setConstantFieldsWithValues(n),t.data=n,pe.sendMessageToApplet("SendAnalytics",t,je.ANALYTICS_DESKTOP_TARGET_ID)}},{key:"sendAnalyticsForPostNotificationsResponse",value:function(e,t){var n={};n.projectConfigDetails=this.getDefaultObjectForConfigurationsForUNCTrayForAnalytics();var i={"event.type":"api","event.subtype":"PostNotification"};i["event.value"]=e?"success":"error",e?i["content.id"]=t||"":i["event.error_code"]=t||"",this.setConstantFieldsWithValues(i),n.data=i,pe.sendMessageToApplet("SendAnalytics",n,je.ANALYTICS_DESKTOP_TARGET_ID)}},{key:"sendAnalyticsForEngineInit",value:function(){var e={};e.projectConfigDetails=this.getDefaultObjectForConfigurationsForUNCTrayForAnalytics();var t={};t["event.type"]=je.INIT,t["event.subtype"]=je.COMPONENT,t["event.subcategory"]=je.ENGINE,this.setConstantFieldsWithValues(t),e.data=t,pe.sendMessageToApplet("SendAnalytics",e,je.ANALYTICS_DESKTOP_TARGET_ID)}},{key:"setConstantFieldsWithValues",value:function(e){e["event.workflow"]="UNC",e["event.category"]="DESKTOP",e["source.platform"]="DESKTOP",e["source.name"]="UNC",e["source.version"]="1.0",It.imsClientID&&""!==It.imsClientID&&(e["source.client_id"]=It.imsClientID),It.appID&&""!==It.appID&&(e["source.app_id"]=It.appID),It.imsClientID&&""!==It.imsClientID&&(e["consumer.client_id"]=It.imsClientID),It.productName&&""!==It.productName&&(e["consumer.name"]=It.productName),It.productVersion&&""!==It.productVersion&&(e["consumer.version"]=It.productVersion),e["consumer.platform"]="DESKTOP"}},{key:"sendCommunicationChannelClosedAnalytics",value:function(){}}])&&Ve(t.prototype,n),i&&Ve(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()),Ye=JSON.parse('{"ar_AE":{"LOC_NOTIFICATIONS_SMALL":"الإشعارات","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"غير قادر على تحميل الإشعارات.","LOC_TRY_AGAIN":"حاول مجددًا"},"bg_BG":{"LOC_NOTIFICATIONS_SMALL":"Известия","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Известията не могат да се заредят.","LOC_TRY_AGAIN":"Опитайте отново"},"bn_IN":{"LOC_NOTIFICATIONS_SMALL":"বিজ্ঞপ্তি","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"বিজ্ঞপ্তি লোড করতে অক্ষম।","LOC_TRY_AGAIN":"আবার চেষ্টা করুন"},"cs_CZ":{"LOC_NOTIFICATIONS_SMALL":"Oznámení","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Nelze načíst oznámení.","LOC_TRY_AGAIN":"Zkusit znovu"},"cy_GB":{"LOC_NOTIFICATIONS_SMALL":"Hysbysiadau","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Methu llwytho hysbysiadau.","LOC_TRY_AGAIN":"Rhowch gynnig arall arni"},"da_DK":{"LOC_NOTIFICATIONS_SMALL":"Meddelelser","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Notifikationer kan ikke indlæses.","LOC_TRY_AGAIN":"Prøv igen"},"de_DE":{"LOC_NOTIFICATIONS_SMALL":"Benachrichtigungen","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Benachrichtigungen können nicht geladen werden.","LOC_TRY_AGAIN":"Wiederholen"},"el_GR":{"LOC_NOTIFICATIONS_SMALL":"Ειδοποιήσεις","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Δεν είναι δυνατή η φόρτωση ειδοποιήσεων.","LOC_TRY_AGAIN":"Προσπαθήστε ξανά"},"en_US":{"LOC_NOTIFICATIONS_SMALL":"Notifications","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Unable to load notifications.","LOC_TRY_AGAIN":"Try again"},"es_ES":{"LOC_NOTIFICATIONS_SMALL":"Notificaciones","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"No se pueden cargar las notificaciones.","LOC_TRY_AGAIN":"Intentar de nuevo"},"es_MX":{"LOC_NOTIFICATIONS_SMALL":"Notificaciones","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"No se pueden cargar las notificaciones.","LOC_TRY_AGAIN":"Intentar de nuevo"},"et_EE":{"LOC_NOTIFICATIONS_SMALL":"Teatised","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Teavitus ei õnnestu laadida.","LOC_TRY_AGAIN":"Proovige uuesti"},"fi_FI":{"LOC_NOTIFICATIONS_SMALL":"Ilmoitukset","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Ilmoituksia ei voi ladata.","LOC_TRY_AGAIN":"Yritä uudelleen"},"fil_PH":{"LOC_NOTIFICATIONS_SMALL":"Mga Notification","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Hindi mai-load ang mga notification.","LOC_TRY_AGAIN":"Subukan ulit"},"fr_CA":{"LOC_NOTIFICATIONS_SMALL":"Notifications","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Impossible de charger des notifications.","LOC_TRY_AGAIN":"Réessayer"},"fr_FR":{"LOC_NOTIFICATIONS_SMALL":"Notifications","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Impossible de charger des notifications.","LOC_TRY_AGAIN":"Réessayer"},"he_IL":{"LOC_NOTIFICATIONS_SMALL":"הודעות","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"לא ניתן לטעון הודעות.","LOC_TRY_AGAIN":"נסה שנית"},"hi_IN":{"LOC_NOTIFICATIONS_SMALL":"सूचनाएं","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"नोटिफ़िकेशन लोड करने में असमर्थ।","LOC_TRY_AGAIN":"फिर से कोशिश करें।"},"hu_HU":{"LOC_NOTIFICATIONS_SMALL":"Értesítések","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Nem sikerült betölteni az értesítéseket.","LOC_TRY_AGAIN":"Próbálja újra"},"id_ID":{"LOC_NOTIFICATIONS_SMALL":"Notifikasi","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Tidak dapat memuat notifikasi.","LOC_TRY_AGAIN":"Coba lagi"},"it_IT":{"LOC_NOTIFICATIONS_SMALL":"Notifiche","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Impossibile caricare le notifiche.","LOC_TRY_AGAIN":"Riprova"},"ja_JP":{"LOC_NOTIFICATIONS_SMALL":"通知","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"通知を読み込めません。","LOC_TRY_AGAIN":"再試行"},"ko_KR":{"LOC_NOTIFICATIONS_SMALL":"알림","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"알림을 로드할 수 없음","LOC_TRY_AGAIN":"다시 시도"},"lt_LT":{"LOC_NOTIFICATIONS_SMALL":"Pranešimai","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Negalima įkelti pranešimų.","LOC_TRY_AGAIN":"Bandykite dar kartą"},"lv_LV":{"LOC_NOTIFICATIONS_SMALL":"Paziņojumi","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Nevar ielādēt paziņojumus.","LOC_TRY_AGAIN":"Mēģināt vēlreiz"},"ms_MY":{"LOC_NOTIFICATIONS_SMALL":"Pemberitahuan","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Tidak dapat memuatkan pemberitahuan.","LOC_TRY_AGAIN":"Cuba lagi"},"nb_NO":{"LOC_NOTIFICATIONS_SMALL":"Varsler","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Kunne ikke laste inn varsler.","LOC_TRY_AGAIN":"Prøv på nytt"},"nl_NL":{"LOC_NOTIFICATIONS_SMALL":"Meldingen","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Kan meldingen niet laden.","LOC_TRY_AGAIN":"Opnieuw"},"pl_PL":{"LOC_NOTIFICATIONS_SMALL":"Powiadomienia ","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Nie można wczytać powiadomień.","LOC_TRY_AGAIN":"Ponów próbę"},"pt_BR":{"LOC_NOTIFICATIONS_SMALL":"Notificações","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Não foi possível carregar notificações.","LOC_TRY_AGAIN":"Tentar novamente"},"pt_PT":{"LOC_NOTIFICATIONS_SMALL":"Notificações","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Não é possível carregar notificações.","LOC_TRY_AGAIN":"Tentar novamente"},"ro_RO":{"LOC_NOTIFICATIONS_SMALL":"Notificări","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Imposibil de încărcat notificările.","LOC_TRY_AGAIN":"Încercați din nou"},"ru_RU":{"LOC_NOTIFICATIONS_SMALL":"Уведомления","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Не удалось загрузить уведомления.","LOC_TRY_AGAIN":"Повторить попытку"},"sk_SK":{"LOC_NOTIFICATIONS_SMALL":"Oznámenia","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Nie je možné načítať oznámenia.","LOC_TRY_AGAIN":"Skúsiť znova"},"sl_SI":{"LOC_NOTIFICATIONS_SMALL":"Obvestila","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Obvestil ni mogoče naložiti.","LOC_TRY_AGAIN":"Poskusi znova"},"sl_SL":{"LOC_NOTIFICATIONS_SMALL":"Obvestila"},"sv_SE":{"LOC_NOTIFICATIONS_SMALL":"Meddelanden","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Det går inte att läsa in aviseringar.","LOC_TRY_AGAIN":"Försök igen"},"ta_IN":{"LOC_NOTIFICATIONS_SMALL":"அறிவிப்புகள்","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"அறிவிப்புகளைப் பெற முடியவில்லை.","LOC_TRY_AGAIN":"மீண்டும் முயற்சிக்கவும்"},"th_TH":{"LOC_NOTIFICATIONS_SMALL":"การแจ้งเตือน","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"ไม่สามารถโหลดการแจ้งเตือนได้","LOC_TRY_AGAIN":"ลองอีกครั้ง"},"tr_TR":{"LOC_NOTIFICATIONS_SMALL":"Bildirimler","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Bildirimler yüklenemedi.","LOC_TRY_AGAIN":"Yeniden deneyin"},"uk_UA":{"LOC_NOTIFICATIONS_SMALL":"Сповіщення","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Неможливо завантажити сповіщення.","LOC_TRY_AGAIN":"Повторити"},"vi_VN":{"LOC_NOTIFICATIONS_SMALL":"Thông báo","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"Không thể tải các thông báo.","LOC_TRY_AGAIN":"Thử lại"},"zh_CN":{"LOC_NOTIFICATIONS_SMALL":"通知","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"无法加载通知。","LOC_TRY_AGAIN":"重试"},"zh_TW":{"LOC_NOTIFICATIONS_SMALL":"通知","LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE":"無法載入通知。","LOC_TRY_AGAIN":"再試一次"}}'),Xe=n(7154),Je=n.n(Xe);function $e(e){var t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol}function Qe(e){var t;if(null==e)return Ue.HTML_PAYLOAD_NOT_PRESENT;var n=e.trim();if(""===n)return Ue.HTML_EMPTY_PAYLOAD;var i,o=new DOMParser,r=(i=n,Je()(i)),a=o.parseFromString(r,"text/html");return a.querySelector("parsererror")?(u.error("UNCWidget: Parsing failed for content in payload.timeline"),Ue.HTML_PARSE_ERROR):null===(t=a.body)||void 0===t?void 0:t.innerText.trim()}function Ze(e){return Ze="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},Ze(e)}function et(e,t,n){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var i=t.length;return nt(t,void 0!==n&&n<i?n:i)}return e(t,n)}function tt(e){return function(e){if(Array.isArray(e))return nt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function it(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,ot(i.key),i)}}function ot(e){var t=function(e,t){if("object"!=Ze(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Ze(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ze(t)?t:String(t)}var rt="#E1E1E1",at="#323232",st="#292929",ct="#8F8F8F",lt="#FFF",ut="#292929",ft="#DBDBDB",dt="#2680EB",pt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"updatedTheme",value:function(e){return It.theme||(It.theme=e.uiConfig.theme),It.theme}},{key:"sanitizeLocaleValue",value:function(e){return je.locales.supportedLocales.indexOf(e)>-1?e:void 0!==je.locales.fallbackLocales[e]?(ie.log("UNCEngine: EngineUtils: Using fallback locale:",je.locales.fallbackLocales[e]),je.locales.fallbackLocales[e]):(void 0!==e&&ie.error(e,"is not a supported locale by Notifications client. Please check that you have provided the correct locale value and it is in the list of supported locales. Falling back to default locale en_US"),je.locales.defaultLocale)}},{key:"debounce",value:function(e,t){var n=null;return function(){for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];n&&clearTimeout(n),n=setTimeout((function(){e.apply(void 0,o),n=null}),t)}}}],(n=null)&&it(t.prototype,n),i&&it(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ht(){return"UXP"===It.hostPlatform}function gt(){return null==It?void 0:It.localBadgeCount}function mt(e){return mt="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},mt(e)}function yt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,vt(i.key),i)}}function vt(e){var t=function(e,t){if("object"!=mt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=mt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mt(t)?t:String(t)}ze=pt,pt.removeErrorScreenFromDOM=function(e){e&&(e.remove(),document.removeEventListener("click",ze.documentClickListener),document.removeEventListener("keydown",ze.handleEscapeKey))},pt.removeErrorContainer=function(e){var t=ze.getErrorScreenQuerySelector();ze.removeErrorScreenFromDOM(t)},pt.documentClickListener=function(e){var t=ze.getErrorScreenQuerySelector();e.composedPath().includes(t)||ze.removeErrorScreenFromDOM(t)},pt.getErrorScreenQuerySelector=function(){return document.querySelector("#errorScreenContainer")},pt.getSvg=function(e){return'<svg\n width=18 \n height=18\n fill="currentColor"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg">\n <path \n d="M17.7862 12.6758C17.6177 12.3672 17.4454 12.0684 17.2749 11.7734C16.4483 10.3389 15.7339 9.10059 15.7339 7.15332C15.7339 4.03418 13.1963 1.49609 10.0767 1.49609C6.95706 1.49609 4.41946 4.03418 4.41946 7.15332C4.41946 8.91992 3.66067 10.2022 2.85745 11.5586C2.63724 11.9307 2.41604 12.3047 2.20804 12.6895C1.83206 13.3857 1.85111 14.21 2.25882 14.8936C2.67093 15.584 3.39554 15.9961 4.1973 15.9961H7.24955C7.24955 17.5127 8.48295 18.7461 9.99955 18.7461C11.5162 18.7461 12.7496 17.5127 12.7496 15.9961H15.8047C16.608 15.9961 17.3326 15.583 17.7437 14.8906C18.1514 14.2031 18.1675 13.375 17.7862 12.6758ZM9.99955 17.2461C9.3101 17.2461 8.74955 16.6855 8.74955 15.9961H11.2496C11.2496 16.6855 10.689 17.2461 9.99955 17.2461ZM16.4537 14.125C16.3872 14.2363 16.1914 14.4961 15.8047 14.4961H4.19731C3.92876 14.4961 3.68559 14.3574 3.54692 14.125C3.48247 14.0166 3.35161 13.7295 3.52837 13.4023C3.72661 13.0342 3.93804 12.6777 4.148 12.3232C5.01909 10.8525 5.91948 9.33105 5.91948 7.15332C5.91948 4.89941 7.82329 2.99609 10.0767 2.99609C12.3301 2.99609 14.2339 4.89941 14.2339 7.15332C14.2339 9.50195 15.1192 11.0371 15.9756 12.5225C16.1402 12.8076 16.3062 13.0957 16.4693 13.3945C16.65 13.7256 16.5186 14.0156 16.4537 14.125Z" \n fill='.concat(e," />\n </svg>")},pt.getTooltipSvg=function(e){return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 5">\n <path d="M6.20711 0.707106L10.5 5L0.5 5L4.79289 0.707107C5.18342 0.316583 5.81658 0.316582 6.20711 0.707106Z" fill='.concat(e,"></path>\n </svg>")},pt.getOrDefaultLocalizedValue=function(e,t,n){if(e&&t&&Ye){var i=Ye[t]?Ye[t]:Ye.en_US;return i[e]?i[e]:n}return n},pt.showTooltip=function(e){var t,n="light"===It.theme?ut:"express"===It.theme?ct:ft,i="light"===It.theme?ut:"express"===It.theme?ct:ft,o="light"===It.theme?"#FFF":"express"===It.theme?lt:"#111",r=ze.getOrDefaultLocalizedValue("LOC_NOTIFICATIONS_SMALL",It.locale,"Notifications"),a=document.createElement("div");a.setAttribute("style","position: absolute;display: none;left: 50%;transform: translateX(-50%);z-index: 1000;");var s=document.createElement("div");s.innerHTML=ze.getTooltipSvg(n),s.setAttribute("style","height: 0.3125rem; left: 50%; margin-top: 10px; position:absolute; transform: translateX(-50%); width: 0.625rem;");var c=document.createElement("div");c.textContent=r;var l="position: absolute;left: 50%;transform: translateX(-50%);margin-top: -5px;white-space: nowrap;max-width: 10rem;padding: 0.1875rem 0.5625rem 0.3125rem 0.5625rem;flex-direction: column;justify-content: center;align-items: center;gap: 0.625rem;border-radius: 0.4375rem;background-color: ".concat(i,";color: ").concat(o,";border-radius: 0.4375rem;font-size: 0.75rem;font-style: normal;font-weight: 400;line-height: 1rem;");c.setAttribute("style",l),s.appendChild(c),a.appendChild(s),e.appendChild(a),e.addEventListener("mouseenter",(function(){clearTimeout(t),t=setTimeout((function(){a.style.display="flex"}),1e3)})),e.addEventListener("mouseleave",(function(n){var i=n.relatedTarget;n.stopPropagation(),e.contains(i)||a.contains(i)||(clearTimeout(t),t=setTimeout((function(){a.style.display="none"}),500))})),"web"===It.surface.toLowerCase()&&(e.addEventListener("focus",(function(){a.style.display="flex"})),e.addEventListener("blur",(function(){a.style.display="none"})))},pt.loadJS=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,i=document.createElement("script");i.src=e,i.setAttribute("type","text/javascript"),i.setAttribute("async",t),document.body.appendChild(i),i.addEventListener("load",(function(){ie.debug("UNCEngine: UNCContainer: Bifrost loaded"),n()})),i.addEventListener("error",(function(e){ie.debug("UNCEngine: UNCContainer: Error on loading Bifrost"),ie.log("Error on loading file",e)}))},pt.sendNotificationIconClickMessage=function(e,t,n,i,o){e.handleMessage({targetType:"Parent",targetId:"",message:"NotificationIconClick",data:{UNCWidgetCSSPath:i,UNCWidgetJSPath:n,context:t,widgetClosed:o}}),Tt.setDataCustomIcon("pending")},pt.handleKeyDownEvent=function(e,t,n,i,o,r,a,s){13!==e.keyCode&&32!==e.keyCode&&40!==e.keyCode||t(e,n,i,o,r,a,s)},pt.handleClickEvent=function(e,t,n,i,o,r,a){if("pending"!==Tt.getDataCustomIcon()){var s=document.querySelector("#errorScreenContainer");s?(ze.removeErrorScreenFromDOM(s),t&&ze.sendNotificationIconClickMessage(n,i,o,r,a)):ze.sendNotificationIconClickMessage(n,i,o,r,a)}},pt.clickBellIcon=function(e,t){e.handleMessage({targetType:"Parent",targetId:"",message:"ClickBellIcon",data:t})},pt.handleFocusEvent=function(e,t,n){ze.shouldRemoveFocus||(e.target.style.backgroundColor=t,e.target.style.outline=n?"2px solid ".concat(n):0)},pt.onThemeChange=function(e){var t="light"===It.theme?ut:"express"===It.theme?lt:ft,n="light"===It.theme?rt:"express"===It.theme?st:at,i=ze.getSvg(t);e.innerHTML=i,e.setAttribute("onmouseover","this.style.backgroundColor='".concat(n,"'")),ze.showTooltip(e),e.addEventListener("focus",(function(e){return ze.handleFocusEvent(e,n,dt)})),ze.showUnreadCount(It.badgeCount)},pt.handleEscapeKey=function(e){"Escape"===e.key&&ze.removeErrorContainer(e)},pt.loadwidget=function(e,t,n,i){var o=document.getElementById("notificationIconOnEngine");if(!o){var r=ze.UNCWidgetPath(t),a="express"===It.theme?st:"",s="light"===It.theme?rt:"express"===It.theme?ct:at,c="light"===It.theme?ut:"express"===It.theme?lt:ft,l=ze.getSvg(c),u=dt,f=document.createElement("div");f.id="notificationIconOnEngine",f.innerHTML=l,f.role="button",f.tabIndex=t.uiConfig.tabIndex,f.setAttribute("style","align-items: center; border-width: 1px; border-radius: 4px; cursor: pointer; display: inline-flex; justify-content: center; min-height: 32px; min-width: 32px; position: relative;"),f.style.backgroundColor=a,f.setAttribute("onmouseover","this.style.backgroundColor='".concat(s,"'")),f.setAttribute("onmouseout","this.style.backgroundColor='".concat(a,"'")),ze.showTooltip(f),f.addEventListener("click",(function(n){return ze.handleClickEvent(n,!1,e,t,r.path,r.cssPath,i)})),f.addEventListener("keydown",(function(n){return ze.handleKeyDownEvent(n,ze.handleClickEvent,!1,e,t,r.path,r.cssPath,i)})),f.addEventListener("blur",(function(e){return ze.handleFocusEvent(e,a,"")})),f.addEventListener("focus",(function(e){return ze.handleFocusEvent(e,s,u)})),f.addEventListener("mousedown",(function(e){ze.shouldRemoveFocus=!0})),f.addEventListener("mouseup",(function(e){ze.shouldRemoveFocus=!1})),o=f,n.appendChild(f)}o.setAttribute("aria-label",ze.getOrDefaultLocalizedValue("LOC_NOTIFICATIONS",t.locale,"Notifications")),o.setAttribute("aria-expanded",void 0!==i&&!i),o.addEventListener("themeChangeEvent",(function(){return ze.onThemeChange(o)})),i&&(It.badgeCount=0),ze.showUnreadCount(It.badgeCount),t.onReady&&"function"==typeof t.onReady&&t.onReady()},pt.loadErrorScreen=function(e,t,n){if(n){var i=n.querySelector("#notificationIconOnEngine");if(i)if(!n.querySelector("#errorScreenContainer")){var o=document.createElement("div");o.setAttribute("id","errorScreenContainer"),o.setAttribute("style","position: relative;");var r=document.createElement("div"),a="light"===It.theme||"express"===It.theme?"#FFFFFF":"#222222";r.setAttribute("style","background-color: ".concat(a,"; ").concat("align-items: center; align-self: center; border-radius: 0.625rem; box-shadow: 0 0 0.188rem 0 rgba(0,0,0,.12), 0 0.188rem 0.5rem 0 rgba(0,0,0,.04), 0 0.25rem 1rem 0 rgba(0,0,0,.08); display: flex; flex: 1 0 0; flex-direction: column; gap: 0.5rem; height: 36rem; justify-content: center; margin: 0.5rem 0 0 0; padding: 1rem 0; position: absolute; right: 0; width: 23rem;"));var s=document.createElement("div");s.innerText=ze.getOrDefaultLocalizedValue("LOC_NOTIFICATIONS_LOAD_ERROR_MESSAGE",t.locale,"Unable to load notifications.");var c="light"===It.theme||"express"===It.theme?"#505050":"#C8C8C8";s.setAttribute("style","color: ".concat(c,"; ").concat("cursor: auto; font-family: Adobe Clean; font-size: 0.875rem; font-weight: 400; line-height: 1.313rem; text-align: center;")),r.appendChild(s);var l=ze.UNCWidgetPath(t),u=document.createElement("div");u.innerText=ze.getOrDefaultLocalizedValue("LOC_TRY_AGAIN",t.locale,"Try again"),u.setAttribute("style","color: ".concat("#0265dc","; ").concat("cursor: pointer; font-size: .875rem; font-family: inherit; font-weight: 400; line-height: 1.125rem; text-align: center; word-wrap: break-word;")),u.addEventListener("click",(function(n){return ze.handleClickEvent(n,!0,e,t,l.path,l.cssPath)})),u.setAttribute("tabindex","0"),u.addEventListener("keydown",(function(n){"Enter"===n.key&&ze.handleClickEvent(n,!0,e,t,l.path,l.cssPath)})),document.addEventListener("keydown",ze.handleEscapeKey),r.appendChild(u),o.appendChild(r),i.insertAdjacentElement("afterend",o),document.addEventListener("click",ze.documentClickListener)}}},pt.UNCWidgetPath=function(e){var t={id:"UNCWidget",version:"1.0"};return"UXP"===e.hostPlatform?(t.path="/UNCWidget-shared.js",t.cssPath="/UNCWidget.css"):"stage"===e.env.toLowerCase()||"stg"===e.env.toLowerCase()?(e.uiConfig&&!0===e.uiConfig.useUtilnavSharedComponents?t.path="".concat(Ue.STAGE_BASE_PATH,"/").concat(Ue.PATH_PARAM,"/").concat(Ue.VERSION_PARAM,"/UNCWidget-shared.js"):t.path="".concat(Ue.STAGE_BASE_PATH,"/").concat(Ue.PATH_PARAM,"/").concat(Ue.VERSION_PARAM,"/UNCWidget.js"),t.cssPath="".concat(Ue.STAGE_BASE_PATH,"/").concat(Ue.PATH_PARAM,"/").concat(Ue.VERSION_PARAM,"/UNCWidget.css")):"dev"===e.env.toLowerCase()?(e.uiConfig&&!0===e.uiConfig.useUtilnavSharedComponents?t.path="".concat(Ue.DEV_BASE_PATH,"/").concat(Ue.PATH_PARAM,"/").concat(Ue.VERSION_PARAM,"/UNCWidget-shared.js"):t.path="".concat(Ue.DEV_BASE_PATH,"/").concat(Ue.PATH_PARAM,"/").concat(Ue.VERSION_PARAM,"/UNCWidget.js"),t.cssPath="".concat(Ue.DEV_BASE_PATH,"/").concat(Ue.PATH_PARAM,"/").concat(Ue.VERSION_PARAM,"/UNCWidget.css")):"qe"===e.env.toLowerCase()?(e.uiConfig&&!0===e.uiConfig.useUtilnavSharedComponents?t.path="".concat(Ue.QE_BASE_PATH,"/").concat(Ue.PATH_PARAM,"/").concat(Ue.VERSION_PARAM,"/UNCWidget-shared.js"):t.path="".concat(Ue.QE_BASE_PATH,"/").concat(Ue.PATH_PARAM,"/").concat(Ue.VERSION_PARAM,"/UNCWidget.js"),t.cssPath="".concat(Ue.QE_BASE_PATH,"/").concat(Ue.PATH_PARAM,"/").concat(Ue.VERSION_PARAM,"/UNCWidget.css")):"local"===e.env.toLowerCase()?(e.uiConfig&&!0===e.uiConfig.useUtilnavSharedComponents?t.path="http://localhost:8080/UNCWidget-shared.js":t.path="http://localhost:8080/UNCWidget.js",t.cssPath="http://localhost:8080/UNCWidget.css"):(e.uiConfig&&!0===e.uiConfig.useUtilnavSharedComponents?t.path="".concat(Ue.PROD_BASE_PATH,"/").concat(Ue.PATH_PARAM,"/").concat(Ue.VERSION_PARAM,"/UNCWidget-shared.js"):t.path="".concat(Ue.PROD_BASE_PATH,"/").concat(Ue.PATH_PARAM,"/").concat(Ue.VERSION_PARAM,"/UNCWidget.js"),t.cssPath="".concat(Ue.PROD_BASE_PATH,"/").concat(Ue.PATH_PARAM,"/").concat(Ue.VERSION_PARAM,"/UNCWidget.css")),t},pt.getUIContext=function(e){var t={appID:e.appID,imsClientID:e.imsClientID,locale:e.locale,env:e.env,surface:e.uiConfig.surface,cssOverride:e.uiConfig.cssOverride,cssPath:e.uiConfig.cssPath,theme:ze.updatedTheme(e),tabIndex:e.uiConfig.tabIndex,el:e.uiConfig.el,analyticsConfig:e.analyticsConfig,parentSpectrumProvider:e.uiConfig.parentSpectrumProvider,optimizations:Array.isArray(e.optimizations)?[je.Optimizations.DYNAMIC_LOADING].concat(et(tt,e.optimizations)):[je.Optimizations.DYNAMIC_LOADING]};if(e.filterConfig&&(e.filterConfig.premptiveCallCount&&(t.premptiveCallCountOnFilterChange=e.filterConfig.premptiveCallCount),$e(e.filterConfig.url)||(t.filterDetails=e.filterConfig.json)),e.uiConfig.acceptNotificationsForSurface&&(t.acceptNotificationsForSurface=e.uiConfig.acceptNotificationsForSurface),e.featureFlagEntries&&(t.featureFlagEntries=e.featureFlagEntries),e.uiConfig&&e.uiConfig.hostCallBackFn&&(t.hostCallBackFn=e.uiConfig.hostCallBackFn),e.uiConfig&&e.uiConfig.onUNCWidgetReady&&(t.onUNCWidgetReady=e.uiConfig.onUNCWidgetReady),e.onReady&&(t.onReady=e.onReady),e.onError&&(t.onError=e.onError),e.imageIcon&&(t.imageIcon=e.imageIcon),e.uiConfig&&e.uiConfig.imageIcon&&(t.imageIcon=e.uiConfig.imageIcon),e.analyticsEnabled?t.analyticsEnabled=e.analyticsEnabled:t.analyticsEnabled=!1,e.onAnalyticsEvent&&(t.onAnalyticsEvent=e.onAnalyticsEvent),e.notificationUpdateCallbackFn&&(t.notificationUpdateCallbackFn=e.notificationUpdateCallbackFn),e.onWidgetOpenCloseCallbackFn&&(t.onWidgetOpenCloseCallbackFn=e.onWidgetOpenCloseCallbackFn),e.notificationsListener){var n=e.notificationsListener;n&&n.data&&n.data.callbackFn&&"function"==typeof n.data.callbackFn&&n.data.observersList&&n.data.observersList.length>0&&pe.registerObserver(n)}return e.deviceType&&(t.deviceType=e.deviceType),e.hostPlatform&&(t.hostPlatform=e.hostPlatform),t.features={},t.features.disabledFetchHistoricalNotification=function(e){return!!e.surface&&!!Ue.FEATURES.DISABLED_SURFACES_FOR_FETCHING_HISTORICAL_NOTIFICATIONS.find((function(t){return t===e.surface.toUpperCase()}))}(t),t},pt.showUnreadCount=function(e){var t=document.getElementById("notificationIconOnEngine");if(t){var n=document.getElementById("outerDivOfCountContainer"),i=document.getElementById("unreadCountContainer");if(!n){(n=document.createElement("div")).id="outerDivOfCountContainer",(i=document.createElement("div")).id="unreadCountContainer",n.appendChild(i),t.style.position="relative",n.setAttribute("style","background-color: #C9252E; border: 0.094rem solid @gray-100; border-radius: 0.5rem; box-sizing: border-box; height: 1rem; line-height: 0.6rem; min-width: 1rem; position: absolute; top: 0; right: 0; z-index: 103;"),i.setAttribute("style","color: #ffffff; font-size: 0.625rem; font-weight: 600; padding-top: 0.188rem; padding-right: 0.188rem; padding-left:0.188rem; text-align: center;"),t.appendChild(n)}i&&(0===e?t.removeChild(n):i.innerHTML=e<100?e:"99+")}};var bt=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"getDefaultObjectForUNCForAnalytics",value:function(){var e={xApiKey:"unc-thor-service",apiKey:"unc-thor-service",project:"unc-thor-service",source:"UNC"};return"prod"!==It.env.toLowerCase()?e.environment="stage":e.environment="prod",e}},{key:"sendAnalyticsForReceiptOfNotification",value:function(e){if(It.analyticsEnabled){ie.info("UNCEngine: UXPEngineAnalyticsHandler: sendAnalyticsForReceiptOfNotification : notification object is ",e);var t,n,i=new(Le())(this.getDefaultObjectForUNCForAnalytics());i.initializeDefaultData();var o={};i.setDataValue("event","type","receipt"),i.setDataValue("event","subtype","notification"),i.setDataValue("event","subcategory","Message"),this.setConstantFieldsWithValues(i),e["notification-id"]&&""!==e["notification-id"]&&i.setDataValue("content","id",e["notification-id"]),e.type&&""!==e.type&&e["sub-type"]&&""!==e["sub-type"]&&i.setDataValue("content","type","".concat(e.type,":").concat(e["sub-type"])),i.setDataValue("content","status",e.state?e.state.toLowerCase():"read");try{var r="object"===mt(e.payload)?e.payload:JSON.parse(e.payload);if(e.metadata&&e.metadata["tracking-system-payload"]&&""!==e.metadata["tracking-system-payload"]){i.setDataValue("custom","ans.client_payload",e.metadata["tracking-system-payload"]),o=e.metadata["tracking-system-payload"];try{o=JSON.parse(o),Object.prototype.hasOwnProperty.call(o,Ue.CAMPAIGN_ID)&&(t=o.CAMPAIGN_ID),Object.prototype.hasOwnProperty.call(o,Ue.VARIATION_ID)&&(n=o.VARIATION_ID)}catch(e){ie.warn("UNCEngine: UXPEngineAnalyticsHandler: sendAnalyticsForReceiptOfNotification : metadata parsing failed with error : ",e)}}if(r["tracking-system-payload"]&&""!==r["tracking-system-payload"]){i.setDataValue("custom","ans.client_payload",r["tracking-system-payload"]),o=r["tracking-system-payload"];try{o=JSON.parse(o),Object.prototype.hasOwnProperty.call(o,Ue.CAMPAIGN_ID)&&(t=o.CAMPAIGN_ID),Object.prototype.hasOwnProperty.call(o,Ue.VARIATION_ID)&&(n=o.VARIATION_ID)}catch(e){ie.warn("UNCEngine: UXPEngineAnalyticsHandler: sendAnalyticsForReceiptOfNotification : tracking payload parsing failed with error :",e)}}}catch(e){ie.warn("UNCEngine: UXPEngineAnalyticsHandler: sendAnalyticsForReceiptOfNotification : Error in paylaod parsing")}try{var a="object"===mt(e.payload)?e.payload:JSON.parse(e.payload);a["content-source-id"]&&""!==a["content-source-id"]&&i.setDataValue("custom","content_source_id",a["content-source-id"])}catch(e){ie.warn("UNCEngine: UXPEngineAnalyticsHandler: sendAnalyticsForReceiptOfNotification : Error in fetching content-source-id",e)}if(t&&i.setDataValue("exp","campaign_id",t),n&&i.setDataValue("exp","variation_id",n),It.onAnalyticsEvent)try{It.onAnalyticsEvent(i.eventsObject)}catch(e){ie.warn("UNCEngine: UXPEngineAnalyticsHandler: sendAnalyticsForReceiptOfNotification : Error in execution onAnalyticsEvent",e)}i.addToCollection(),i.sendToIngest()}}},{key:"sendAnalyticsForUserPreferenceForAnalytics",value:function(e,t){var n=new(Le())(this.getDefaultObjectForUNCForAnalytics());if(n.initializeDefaultData(),n.setDataValue(Ue.Event_Section,"type","click"),n.setDataValue(Ue.Event_Section,"subcategory","Privacy Notice"),e?n.setDataValue(Ue.Event_Section,"subtype","opt-in"):n.setDataValue(Ue.Event_Section,"subtype","opt-out"),t&&n.setDataValue(Ue.Event_Section,"value",t),It.context.analyticsConfig&&It.context.analyticsConfig.evidonDetails&&"object"===mt(It.context.analyticsConfig.evidonDetails))for(var i=Object.keys(It.context.analyticsConfig.evidonDetails),o=0;o<i.length;o+=1){var r=i[o];-1!==Ue.Evidon_Supported_Keys.indexOf(r)&&("name"===r?n.setDataValue(Ue.Environment_Section,"svc.name",It.context.analyticsConfig.evidonDetails[r]):"version"===r&&n.setDataValue(Ue.Environment_Section,"svc.version",It.context.analyticsConfig.evidonDetails[r]))}this.setConstantFieldsWithValues(n),n.addToCollection(),n.sendToIngest()}},{key:"sendAnalyticsForCommunicationPreference",value:function(e){if(It.analyticsEnabled){ie.info("UNCEngine: UXPEngineAnalyticsHandler: sendAnalyticsForCommunicationPreference : communication channel is: ",e);var t=new(Le())(this.getDefaultObjectForUNCForAnalytics());t.initializeDefaultData(),t.setDataValue("event","type",je.ENABLED),t.setDataValue("event","value",e),this.setConstantFieldsWithValues(t),t.addToCollection(),t.sendToIngest()}}},{key:"setConstantFieldsWithValues",value:function(e){e.setDataValue("event","workflow","UNC"),e.setDataValue("source","platform","UXP"),e.setDataValue("source","name","UNC"),e.setDataValue("source","version",Ue.VERSION_PARAM),It.imsClientID&&""!==It.imsClientID&&e.setDataValue("source","client_id",It.imsClientID),It.appID&&""!==It.appID&&e.setDataValue("source","app_id",It.appID),It.userGuid&&e.setDataValue("event","user_guid",It.userGuid);var t=It.locale;if(e.setDataValue("event","locale",t),It.context.analyticsConfig&&It.context.analyticsConfig.componentDetails&&"object"===mt(It.context.analyticsConfig.componentDetails))for(var n=Object.keys(It.context.analyticsConfig.componentDetails),i=0;i<n.length;i+=1){var o=n[i];-1!==Ue.Component_Supported_Keys.indexOf(o)&&("name"===o?e.setDataValue(Ue.Environment_Section,"com.name",It.context.analyticsConfig.componentDetails[o]):"version"===o&&e.setDataValue(Ue.Environment_Section,"com.version",It.context.analyticsConfig.componentDetails[o]))}if(It.context.analyticsConfig&&It.context.analyticsConfig.eventDetails&&"object"===mt(It.context.analyticsConfig.eventDetails))for(var r=Object.keys(It.context.analyticsConfig.eventDetails),a=0;a<r.length;a+=1){var s=r[a];-1!==Ue.Event_Supported_Keys.indexOf(s)&&e.setDataValue(Ue.Event_Section,s,It.context.analyticsConfig.eventDetails[s])}if(It.context.analyticsConfig&&It.context.analyticsConfig.consumerDetails&&"object"===mt(It.context.analyticsConfig.consumerDetails)){for(var c=Object.keys(It.context.analyticsConfig.consumerDetails),l=0;l<c.length;l+=1){var u=c[l];-1!==Ue.Consumer_Supported_Keys.indexOf(u)&&e.setDataValue(Ue.Consumer_Section,u,It.context.analyticsConfig.consumerDetails[u])}var f=e.getDevice();f&&""!==f&&e.setDataValue(Ue.Consumer_Section,"device",f);var d=e.getOSVersion();d&&""!==d&&e.setDataValue(Ue.Consumer_Section,"os_version",d)}var p=e.getDevice();p&&""!==p&&e.setDataValue("consumer","device",p);var h=e.getOSVersion();h&&""!==h&&e.setDataValue("consumer","os_version",h)}},{key:"sendCommunicationChannelClosedAnalytics",value:function(){if(It.analyticsEnabled){ie.info("UNCEngine: EngineAnalyticsHandler: sendAnalyticsIfCommunicationChannelClosed : communication channel is: disabled");var e=new(Le())(this.getDefaultObjectForUNCForAnalytics());e.initializeDefaultData(),e.setDataValue("event","type",je.DISABLED),e.setDataValue("event","value","pushViaCCD-Longpoll"),this.setConstantFieldsWithValues(e),e.addToCollection(),e.sendToIngest()}}}])&&yt(t.prototype,n),i&&yt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()),_t=function(){function e(){}return e.getInstance=function(){return null===e.instance&&(ht()?e.instance=bt:It&&It.surface&&It.surface.toUpperCase()===Ue.SURFACE_WEB?e.instance=qe:e.instance=Ke),e.instance},e.instance=null,e}();function Ct(e){return Ct="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},Ct(e)}function St(e){return function(e){if(Array.isArray(e))return Et(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Et(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Et(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Nt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ot(i.key),i)}}function Ot(e){var t=function(e,t){if("object"!=Ct(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Ct(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ct(t)?t:String(t)}var Tt=new(function(){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._globalData={appID:null,context:null,appBundleID:null,pushDeviceID:null,imsClientID:null,xApiKey:null,machineDeviceToken:null,deviceLocale:"en_US",platform:null,osName:null,osVersion:null,productName:"Creative Cloud",productVersion:null,env:"prod",locale:"en_US",surface:"web",isLongPollFeatureEnabled:!0,isDevicePushEnabled:!1,analytics:"ETS",analyticsEnabled:!1,onAnalyticsEvent:null,serverTimeDelta:0,serverTimestampOnLaunch:0,preferencesTimeOut:20,getCurrentServerTimestamp:function(){return(new Date).getTime()-t._globalData.serverTimeDelta},isCCDPresent:!1,isADSRunning:!1,optimizations:[je.Optimizations.DYNAMIC_LOADING],theme:null,badgeCount:0,localBadgeCount:0,customBellIcon:"Not pending",hostPlatform:"",osPlatform:"",userGuid:"",pushViaCCDConfig:null,isCacheEnabled:!1,focusoutLongPollTerminationSurfaces:[]},this._serverConfigurationManager=new xe,this._serverConfigurationManager.initialize(this._globalData),this._manager=null}var t,n,i;return t=e,(n=[{key:"initialize",value:function(e){var t=e,n=!!t.appID;if(n){if(this._globalData.context=t,this._globalData.appID=t.appID,this._globalData.imsClientID=t.imsClientID,this._globalData.env=t.env.toLowerCase(),this._globalData.locale=pt.sanitizeLocaleValue(t.locale),this._globalData.optimizations=Array.isArray(t.optimizations)?[je.Optimizations.DYNAMIC_LOADING].concat(function(e,t,n){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var i=t.length;return Et(t,void 0!==n&&n<i?n:i)}return e(t,n)}(St,t.optimizations)):[je.Optimizations.DYNAMIC_LOADING],this._globalData.hostPlatform=t.hostPlatform,this._globalData.osPlatform=t.osPlatform,this._globalData.userGuid=t.userGuid,t.pushViaCCDConfig&&("string"==typeof t.pushViaCCDConfig?this._globalData.pushViaCCDConfig=JSON.parse(t.pushViaCCDConfig):"object"===Ct(t.pushViaCCDConfig)&&(this._globalData.pushViaCCDConfig=t.pushViaCCDConfig)),t.surface&&(this._globalData.surface=t.surface.toLowerCase()),void 0!==t.analyticsEnabled)if(this._globalData.analyticsEnabled="true"===t.analyticsEnabled.toString().toLowerCase(),this._globalData.analyticsEnabled)try{_t.getInstance().sendAnalyticsForUserPreferenceForAnalytics(!0,"consent")}catch(e){ie.warn("Error in sending Analytics consent")}else try{_t.getInstance().sendAnalyticsForUserPreferenceForAnalytics(!1,"consent")}catch(e){ie.warn("Error in sending Analytics consent")}t.focusoutLongPollTerminationSurfaces&&(this._globalData.focusoutLongPollTerminationSurfaces=t.focusoutLongPollTerminationSurfaces),t.onAnalyticsEvent&&"function"==typeof t.onAnalyticsEvent&&(this._globalData.onAnalyticsEvent=t.onAnalyticsEvent),this._globalData.appBundleID=t.appBundleID,this._globalData.osName=t.osName,this._globalData.osVersion=t.osVersion,this._globalData.productName=t.productName,this._globalData.productVersion=t.productVersion,void 0!==t.surface&&(this._globalData.surface=t.surface.toLowerCase()),void 0!==t.platform&&(this._globalData.platform=t.platform.toLowerCase()),void 0!==t.machineDeviceToken&&(this._globalData.machineDeviceToken=t.machineDeviceToken),void 0!==t.pushDeviceID&&(this._globalData.pushDeviceID=t.pushDeviceID),void 0!==t.isDevicePushEnabled&&(this._globalData.isDevicePushEnabled=t.isDevicePushEnabled),void 0!==t.deviceOSLocale&&(this._globalData.deviceOSLocale=t.deviceOSLocale),void 0!==t["x-api-key"]?this._globalData.xApiKey=t["x-api-key"]:this._globalData.xApiKey=this._globalData.imsClientID,t.optimizations&&t.optimizations.includes("disableAnalytics")&&(this._globalData.analyticsEnabled=!1),void 0!==t.isCacheEnabled&&(this._globalData.isCacheEnabled=t.isCacheEnabled),this._serverConfigurationManager.initialize(this._globalData)}return n}},{key:"setData",value:function(e){return!!e&&(this._globalData.serverTimestampOnLaunch=e.serverTimestampOnLaunch,this._globalData.serverTimeDelta=e.serverTimeDelta?e.serverTimeDelta:0,this._globalData.env=e.env?e.env:this._globalData.env,this._globalData.locale=e.locale?e.locale:this._globalData.locale,!0)}},{key:"getDataCustomIcon",value:function(){return this._globalData.customBellIcon}},{key:"setDataCustomIcon",value:function(e){this._globalData.customBellIcon=e}}])&&Nt(t.prototype,n),i&&Nt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()),It=Tt._globalData,wt=Tt._serverConfigurationManager;function At(e){return At="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},At(e)}function kt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Dt(i.key),i)}}function Dt(e){var t=function(e,t){if("object"!=At(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=At(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==At(t)?t:String(t)}var Pt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"isNELongPollEnabled",value:function(){return wt.longPollEnabled&&It.isLongPollFeatureEnabled}},{key:"_getUserAccessToken",value:function(){var e=new Date,t=Math.round(e.getTime()/1e3),n=pe.sendMessageToParent("GetUserProfile",!1);if(n){if(It.surface&&"DESKTOP"===It.surface.toUpperCase()&&n.AccessTokenValidTill&&t>n.AccessTokenValidTill){ie.warn("NotificationHTTPRequestUtils: _getUserAccessToken: current time since epoc in second : ",t," access_token is expired was valid till : ",n.AccessTokenValidTill);try{Ke.sendAnalyticsForAccessTokenExpiry(n.AccessTokenValidTill)}catch(e){ie.warn("NotificationHTTPRequestUtils: _getUserAccessToken: error while sending analytics ",e)}return null}return n.AccessToken}return null}},{key:"_sanityCheck",value:function(e,t){return e?!!t||(ie.warn("Access Token cannot be empty. "),!1):(ie.warn("Application Identifier cannot be empty. "),!1)}},{key:"_createHTTPCommunicatorRequest",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s={},c={},l={requestHeaders:{},queryParams:{}},u=It.appID,f=e._getUserAccessToken();if(!e._sanityCheck(u,f))return ie.warn("Input Request is not valid. Either AccessToken or AppID is not valid"),null;switch(c.scheme="https",a?wt.defaultLongPollURIEnabled?c.hostname=wt.serverBaseAdobeIOUrl:c.hostname=wt.serverBaseUrl:c.hostname=wt.serverBaseAdobeIOUrl,c.path=n,c.methodType=t,l.requestHeaders["x-adobe-app-id"]=u,n!==wt.serverBackFillUri?l.requestHeaders["x-user-token"]="Bearer ".concat(f):l.requestHeaders.Authorization="Bearer ".concat(f),l.requestHeaders["x-api-key"]=It.xApiKey,l.requestHeaders["Cache-Control"]="no-cache, no-store, must-revalidate",l.requestHeaders.Pragma="no-cache",l.requestHeaders.Expires="0",l.requestHeaders.Accept="application/json",t){case"GET":if(l.queryParams.page_size=wt.pageSize.toString(),l.queryParams.config_version=wt.configVersion,l.queryParams.locale=It.locale,l.queryParams.current_mc_time=(new Date).getTime().toString(),o&&(l.queryParams.to=o.toString()),r&&(l.queryParams.from=r.toString()),a){var d=wt.longPollTimeout;l.timeoutInSec=d+20,ht()?l.requestHeaders["x-long-poll-time-out"]=d.toString():l.requestHeaders["x-long-poll-time-out"]=d}break;case"POST":case"PUT":l.requestHeaders["Content-Type"]="application/json",l.content=i}return s.request=c,s.requestData=l,s}},{key:"createNotificationGetRequest",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return e._createHTTPCommunicatorRequest("GET",t,"",n,i,o,r)}},{key:"createNotificationPostRequest",value:function(t){return e._createHTTPCommunicatorRequest("POST",wt.serverShortPollUri,t)}},{key:"createNotificationPutRequest",value:function(t){return e._createHTTPCommunicatorRequest("PUT",wt.serverShortPollUri,t)}},{key:"_createNotificationCustomizedRequest",value:function(t,n,i,o,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",s={},c={},l={requestHeaders:{},queryParams:{}},u=It.appID,f=e._getUserAccessToken();return e._sanityCheck(u,f)?(c.scheme="https",c.hostname=wt.serverBaseAdobeIOUrl,c.path=r,c.methodType=n,l.requestHeaders["x-adobe-app-id"]=u,l.requestHeaders["x-api-key"]=It.xApiKey,l.requestHeaders[o]="Bearer ".concat(f),l.requestHeaders["Content-Type"]="application/json",l.requestHeaders.Accept="application/json",l.queryParams&&(l.queryParams=i),a&&(l.responseType=a),l.content=JSON.stringify(t),s.request=c,s.requestData=l,s):(ie.warn("Input Request is not valid. Either AccessToken or AppID is not valid"),null)}},{key:"createNotificationBadgeClearRequest",value:function(t){return navigator&&navigator.userAgent&&navigator.userAgent.indexOf("Firefox")>0?e._createNotificationCustomizedRequest(t,"PUT",null,"x-user-token",wt.serverNotificationUnreadCountURI,"text"):e._createNotificationCustomizedRequest(t,"PUT",null,"x-user-token",wt.serverNotificationUnreadCountURI)}},{key:"createNotificationCriteriaBasedSearchRequest",value:function(t){return e._createNotificationCustomizedRequest(t,"POST",null,"Authorization",wt.serverNotificationSearchURI)}},{key:"createDeviceRegistrationRequest",value:function(){var t={},n={},i={requestHeaders:{}};if(!It.machineDeviceToken&&"macos"===It.platform)return ie.warn("Machine Device token is currently not available. Ignoring device registration request"),null;var o=It.appID,r=e._getUserAccessToken();if(!e._sanityCheck(o,r))return ie.warn("Input Request is not valid. Either AccessToken or AppID is not valid"),null;n.scheme="https",n.hostname=wt.serverBaseAdobeIOUrl,n.path=wt.serverDeviceRegisterUnRegisterURI,n.path+=It.platform,n.methodType="POST",i.requestHeaders["x-adobe-app-id"]=o,i.requestHeaders["x-api-key"]=It.xApiKey,i.requestHeaders.Authorization="Bearer ".concat(r),i.requestHeaders["Content-Type"]="application/json",i.requestHeaders.Accept="application/json",It.pushDeviceID&&(i.requestHeaders["x-adobe-device-id"]=It.pushDeviceID);var a={};return a["device-os-version"]=It.osVersion,a.locale=It.deviceOSLocale,"windows"===It.platform?(a["windows-package-identity-name"]="AdobeNotificationClient",a["windows-channel-uri"]=It.context.ChannelURI):(a["macos-bundle-id"]=It.appBundleID,a["macos-device-token"]=It.machineDeviceToken),i.content=JSON.stringify(a),t.request=n,t.requestData=i,t}},{key:"createDeviceUnRegistrationRequest",value:function(){var t={},n={},i={requestHeaders:{}};if(!It.pushDeviceID)return ie.warn("Push Device token is missing. Ignoring device un-registration request"),null;var o=It.appID,r=e._getUserAccessToken();return e._sanityCheck(o,r)?(n.scheme="https",n.hostname=wt.serverBaseAdobeIOUrl,n.path=wt.serverDeviceRegisterUnRegisterURI,n.path+=It.platform,n.methodType="DELETE",i.requestHeaders["x-adobe-app-id"]=It.appID,i.requestHeaders["x-api-key"]=It.xApiKey,i.requestHeaders.Authorization="Bearer ".concat(r),i.requestHeaders["x-adobe-device-id"]=It.pushDeviceID,t.request=n,t.requestData=i,t):(ie.warn("Input Request is not valid. Either AccessToken or AppID is not valid"),null)}},{key:"createPreferencesGetRequest",value:function(t){ie.info("NotificationHTTPRequestUtils : createPreferencesGetRequest content received ",t);var n={},i={},o={requestHeaders:{},queryParams:{}},r=It.appID,a=e._getUserAccessToken();if(!e._sanityCheck(r,a))return ie.warn("NotificationHTTPRequestUtils : createPreferencesGetRequest input request is not valid. Either AccessToken or AppID is not valid"),null;i.scheme="https",i.hostname=wt.serverBaseAdobeIOUrl,i.path=wt.serverUserPreferencesURI,i.methodType="GET",o.requestHeaders["x-adobe-app-id"]=It.appID,o.requestHeaders["x-api-key"]=It.xApiKey,o.requestHeaders.Authorization="Bearer ".concat(a),o.requestHeaders["Content-Type"]="application/json",o.requestHeaders["Cache-Control"]="no-cache, no-store, must-revalidate",o.requestHeaders.Pragma="no-cache",o.requestHeaders.Expires="0",o.requestHeaders.Accept="application/json",o.queryParams.page_size=wt.pageSize.toString(),o.queryParams.config_version=wt.configVersion,o.queryParams.current_mc_time=(new Date).getTime().toString(),o.timeoutInSec=It.preferencesTimeOut;var s=t.categories.category;return s&&(o.queryParams.category=s.toString(),o.queryParams.locale=It.locale),n.request=i,n.requestData=o,n}},{key:"createPreferencesSetRequest",value:function(t){ie.info("NotificationHTTPRequestUtils : createPreferencesSetRequest content received ",t);var n={},i={},o={requestHeaders:{}},r=It.appID,a=e._getUserAccessToken();if(!e._sanityCheck(r,a))return ie.warn("NotificationHTTPRequestUtils : createPreferencesSetRequest input request is not valid. Either AccessToken or AppID is not valid"),null;i.scheme="https",i.hostname=wt.serverBaseAdobeIOUrl,i.path=wt.serverUserPreferencesURI,i.methodType="PUT",o.requestHeaders["x-adobe-app-id"]=It.appID,o.requestHeaders["x-api-key"]=It.xApiKey,o.requestHeaders.Authorization="Bearer ".concat(a),o.requestHeaders["Content-Type"]="application/json",o.requestHeaders["Cache-Control"]="no-cache, no-store, must-revalidate",o.requestHeaders.Pragma="no-cache",o.timeoutInSec=It.preferencesTimeOut;var s=t.preferences,c={categories:[]};for(var l in s){var u={};u.category=l,u[je.EnableForSurface]=je.PerSurface,u.surfaces=[{surface:t.surface,enabled:s[l]}],c.categories.push(u)}return o.content=JSON.stringify(c),n.request=i,n.requestData=o,n}}],(n=null)&&kt(t.prototype,n),i&&kt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Rt(e){return Rt="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},Rt(e)}function xt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ft(i.key),i)}}function Ft(e){var t=function(e,t){if("object"!=Rt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Rt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Rt(t)?t:String(t)}var Lt=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"_getRetryMiliSeconds",value:function(e){var t=e.responseHeaders,n=t&&t["Retry-After"]?t["Retry-After"]:null;if(n){if(!Number.isNaN(n))return 1e3*parseInt(n,10);var i=new Date(n);if("Invalid Date"!==i){var o=i.getTime()-Date.now();if(o>0)return o}}return null}},{key:"retryRequest",value:function(e,t,n){var i=this._getRetryMiliSeconds(e);return!!i&&(ie.debug("UNCEngine: retry network request after ".concat(i," milliseconds")),setTimeout((function(){t.SendRequest(n)}),i),!0)}}])&&xt(t.prototype,n),i&&xt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}());function Ut(e){return Ut="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},Ut(e)}function jt(e,t,n){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var i=t.length;return Wt(t,void 0!==n&&n<i?n:i)}return e(t,n)}function Mt(e){return function(e){if(Array.isArray(e))return Wt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Wt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ht(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,qt(i.key),i)}}function qt(e){var t=function(e,t){if("object"!=Ut(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Ut(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ut(t)?t:String(t)}var Bt=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.historicalNotificationList=void 0,this.pinnedHistoricalNotificationList=void 0,this.historicalNotificationSet=new Set,this.pinnedHistoricalNotificationSet=new Set}var t,n,i;return t=e,(n=[{key:"updateHistoricalNotifications",value:function(e){var t=this;void 0===this.historicalNotificationList&&(this.historicalNotificationList=[]),e.forEach((function(e){var n=e["notification-id"];t.historicalNotificationSet.has(n)||(t.historicalNotificationSet.add(n),t.historicalNotificationList.push(e))})),u.info("UNCEngine: Updating Historical Notification data.")}},{key:"updateHistoricalPinnedNotifications",value:function(e){var t=this;void 0===this.pinnedHistoricalNotificationList&&(this.pinnedHistoricalNotificationList=[]),e.forEach((function(e){var n=e["notification-id"];t.pinnedHistoricalNotificationSet.has(n)||(t.pinnedHistoricalNotificationSet.add(n),t.pinnedHistoricalNotificationList.push(e))})),u.info("UNCEngine: Updating Pinned Historical Notification data.")}},{key:"getNotificationsDataFromCache",value:function(e,t){var n={notifications:[]};return e===je.MESSAGE_HISTORICAL_NOTIFICATIONS?void 0===this.historicalNotificationList?(u.info("UNCEngine: Historical Notification List is undefined."),!1):(n.notifications=this.historicalNotificationList,n.isResponseFromCache=!0,pe.sendMessageToApplet(e,n,t),u.info("UNCEngine: Historical Notification List is sent to Widget."),!0):e===je.MESSAGE_PINNED_HISTORICAL_NOTIFICATIONS&&(void 0===this.pinnedHistoricalNotificationList?(u.info("UNCEngine: Pinned Historical Notification List is undefined."),!1):(n.notifications=this.pinnedHistoricalNotificationList,n.isResponseFromCache=!0,pe.sendMessageToApplet(e,n,t),u.info("UNCEngine: Pinned Historical Notification List is sent to Widget."),!0))}},{key:"updateNewNotifications",value:function(e){var t=this;void 0===this.historicalNotificationList&&(this.historicalNotificationList=[]),void 0===this.pinnedHistoricalNotificationList&&(this.pinnedHistoricalNotificationList=[]),JSON.parse(e).notifications.notification.forEach((function(e){var n=e["notification-id"];if(t.historicalNotificationSet.has(n)){for(var i=0;i<t.historicalNotificationList.length;i+=1)if(t.historicalNotificationList[i]["notification-id"]===n){t.historicalNotificationList[i]=e;break}u.info("UNCEngine: Notification status changed")}else t.historicalNotificationSet.add(n),t.historicalNotificationList=[e].concat(jt(Mt,t.historicalNotificationList)),u.info("UNCEngine: Live Notification updated.");if(t.pinnedHistoricalNotificationSet.has(n)){for(var o=0;o<t.pinnedHistoricalNotificationList.length;o+=1)if(t.pinnedHistoricalNotificationList[o]["notification-id"]===n){t.pinnedHistoricalNotificationList[o]=e;break}u.info("UNCEngine: Notification status changed")}else t.pinnedHistoricalNotificationSet.add(n),t.pinnedHistoricalNotificationList=[e].concat(jt(Mt,t.pinnedHistoricalNotificationList)),u.info("UNCEngine: Live Notification updated.")}))}}])&&Ht(t.prototype,n),i&&Ht(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}());function Vt(e){return Vt="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},Vt(e)}function Gt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,zt(i.key),i)}}function zt(e){var t=function(e,t){if("object"!=Vt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Vt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vt(t)?t:String(t)}var Kt=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"_hasOSTray",value:function(e){if(!e)return!1;try{var t=JSON.parse(e);if(t&&"object"===Vt(t)&&void 0!==t.ostray)return!0}catch(e){return!1}return!1}},{key:"processNotifications",value:function(e){for(var t=[],n=[],i={},o=!0,r=e.notificationResponseList.length-1;r>=0;r-=1){var a=e.notificationResponseList[r];if(0===r&&(Object.prototype.hasOwnProperty.call(a,"unread-count")&&(i.value=parseInt(a["unread-count"],10),i.value+=gt(),pt.showUnreadCount(i.value),It.badgeCount=i.value,pe.sendMessageToApplet("UnReadNotificationsCount",i,"UNCWidget")),a["server-timestamp"])&&(It.serverTimestampOnLaunch||(It.serverTimestampOnLaunch=a["server-timestamp"],pe.sendMessageToApplet("InitLongPoll",{},"UNCEngine")),pe.broadcastServerTimestamp(a["server-timestamp"])),o&&Object.prototype.hasOwnProperty.call(a,je.ConfigurationKey)&&(o=!1,wt.setConfigParams(a[je.ConfigurationKey],ht())),!e.notify)break;if(a.notifications&&a.notifications.notification)for(var s=a.notifications.notification,c=s.length-1;c>=0;c-=1){var l=s[c];try{_t.getInstance().sendAnalyticsForReceiptOfNotification(l)}catch(e){ie.warn("UNCEngine: NotificationProcessor: processNotifications - Error while sending receipt analytics: ",e)}t.push(l),e.notify&&this._hasOSTray(l.payload)&&n.push(l)}else ie.warn("UNCEngine: NotificationProcessor: processNotifications - Recieved invalid notification response. Ignore processing")}if(e.notify)pe.notifyObservers(t),pe.notifyObserversForClients(t),n.reverse(),pe.sendTrayNotificationData(n);else if(e.targetID){var u={};u.notifications=e.notificationResponseList[0].notifications;var f=u.notifications;It.isCacheEnabled&&(e.namespace===je.MESSAGE_PINNED_HISTORICAL_NOTIFICATIONS?Bt.updateHistoricalPinnedNotifications(f):e.namespace===je.MESSAGE_HISTORICAL_NOTIFICATIONS&&Bt.updateHistoricalNotifications(f));for(var d=0;d<f.length;d+=1){var p=f[d];try{_t.getInstance().sendAnalyticsForReceiptOfNotification(p)}catch(e){ie.warn("UNCEngine: NotificationProcessor: processNotifications - Error while sending historical receipt analytics: ",e)}}pe.sendMessageToApplet(e.namespace,u,e.targetID),ie.debug("UNCEngine: Response received from Server.")}else if(e.callbackFn&&"function"==typeof e.callbackFn){var h={data:{notifications:e.notificationResponseList[0].notifications}};e.requestContext&&(h.requestContext=e.requestContext);try{e.callbackFn(h)}catch(e){ie.error("UNCEngine: HostClientNotificationRequestManager: onResponse - Callback exception: ",e)}}ht()&&pe.sendMessageToApplet("UnReadNotificationsCount",i,"UNCWidget")}}])&&Gt(t.prototype,n),i&&Gt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}());function Yt(e){return Yt="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},Yt(e)}function Xt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Jt(i.key),i)}}function Jt(e){var t=function(e,t){if("object"!=Yt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Yt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yt(t)?t:String(t)}var $t=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.timeoutFailureCount=0,this.clientFailureCount=0,this.serverFailureCount=0,this.internalNetworkFailureCount=0,this.failedState=!1}var t,n,i;return t=e,(n=[{key:"resetErrorTypeFailureCount",value:function(){this.timeoutFailureCount=0,this.clientFailureCount=0,this.serverFailureCount=0,this.internalNetworkFailureCount=0,this.failedState=!1}},{key:"_handleShortPollRequestFailure",value:function(e){if(!this.failedState){var t=0,n=0;switch(e){case"Timeout":this.timeoutFailureCount+=1,n=this.timeoutFailureCount,t=je.TimeOutErrorCountLimit;break;case"ClientFailure":this.clientFailureCount+=1,n=this.clientFailureCount,t=je.ClientErrorCountLimit;break;case"ServerFailure":this.serverFailureCount+=1,n=this.serverFailureCount,t=je.ServerErrorCountLimit;break;case"NetworkFailure":this.internalNetworkFailureCount+=1,n=this.internalNetworkFailureCount,t=je.InternalNetworkErrorCountLimit}n===t-1&&(ie.warn("UNCEngine: NotificationRequestManagerErrorCountsHelper: _handleShortPollRequestFailure - ShortPoll failures of type:",e," has reached its failure count limit. Adding delay in successive ShortPolls(if failure persists)"),this.failedState=!0)}}},{key:"_handleFetchError",value:function(e){switch(e){case"Internal_Server_Error":case"Request_Not_Implemented":case"Bad_Gateway":case"Service_Unavailable":case"Gateway_Timeout":case"Server_Response_Error":this._handleShortPollRequestFailure("ServerFailure");break;case"Network_Failure":this._handleShortPollRequestFailure("NetworkFailure");break;case"Request_Timeout":this._handleShortPollRequestFailure("Timeout");break;default:this._handleShortPollRequestFailure("ClientFailure")}}}])&&Xt(t.prototype,n),i&&Xt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}());function Qt(e){return Qt="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},Qt(e)}function Zt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,en(i.key),i)}}function en(e){var t=function(e,t){if("object"!=Qt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Qt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qt(t)?t:String(t)}var tn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,n=[{key:"_sanitizeGetNotificationRequest",value:function(e){if(!e||"object"!==Qt(e))return ie.debug("UNCEngine: NotificationRequestManagerInternal: _sanitizeGetNotificationRequest - Get Notification Request Data can't be empty"),!1;if(!e.namespace||"string"!=typeof e.namespace)return ie.debug("UNCEngine: NotificationRequestManagerInternal: _sanitizeGetNotificationRequest - 'namespace' field can't be empty in ",this.type," Notification Request"),!1;if(e.timestamp&&"number"!=typeof e.timestamp&&(e.timestamp=parseInt(e.timestamp,10),isNaN(e.timestamp)))return ie.debug("UNCEngine: NotificationRequestManagerInternal: _sanitizeGetNotificationRequest - 'timestamp' field Data Type must be 'number'"),!1;if(e.type&&"string"!=typeof e.type)return ie.debug("UNCEngine: NotificationRequestManagerInternal: _sanitizeGetNotificationRequest - 'type' field Data Type must be 'string'"),!1;if(e.subtype&&"string"!=typeof e.subtype)return ie.debug("UNCEngine: NotificationRequestManagerInternal: _sanitizeGetNotificationRequest - 'subtype' field Data Type must be 'string'"),!1;if(e.pinned&&"boolean"!=typeof e.pinned){var t=e.pinned.toString();if("true"===t.toLowerCase())e.pinned=!0;else{if("false"!==t.toLowerCase())return ie.debug("UNCEngine: NotificationRequestManagerInternal: _sanitizeGetNotificationRequest - 'pinned' field Data Type must be 'boolean'"),!1;e.pinned=!1}}return!e.requestContext||"string"==typeof e.requestContext||(ie.debug("UNCEngine: NotificationRequestManagerInternal: _sanitizeGetNotificationRequest - 'requestContext' field Data Type must be 'string'"),!1)}},{key:"_sanitizePostOrUpdateNotificationRequest",value:function(e){return e&&"object"===Qt(e)?e.content&&"string"==typeof e.content?e.target&&"string"!=typeof e.target?(ie.debug("UNCEngine: NotificationRequestManagerInternal: _sanitizePostOrUpdateNotificationRequest - 'target' field Data Type must be 'string'"),!1):e.additionalInfo&&e.additionalInfo.requestContext&&"string"!=typeof e.additionalInfo.requestContext?(ie.debug("UNCEngine: NotificationRequestManagerInternal: _sanitizePostOrUpdateNotificationRequest - 'additionalInfo.requestContext' field Data Type must be 'string'"),!1):!e.additionalInfo||!e.additionalInfo.namespace||"string"==typeof e.additionalInfo.namespace||(ie.debug("UNCEngine: NotificationRequestManagerInternal: _sanitizePostOrUpdateNotificationRequest - 'additionalInfo.namespace' field Data Type must be 'string'"),!1):(ie.warn("UNCEngine: NotificationRequestManagerInternal: _sanitizePostOrUpdateNotificationRequest - 'content' field can't be empty in ",this.type," Notification request"),!1):(ie.debug("UNCEngine: NotificationRequestManagerInternal: _sanitizePostOrUpdateNotificationRequest - Post Notification Request Data can't be empty"),!1)}},{key:"_sendRequestToServer",value:function(e){return e.request.responseCallback=this.onResponse.bind(this),e.request.errorCallback=this.onError.bind(this),this.httpRequest=e,this._currentCommunicationHandler=new ne(e.request),!!this._currentCommunicationHandler&&(this._currentCommunicationHandler.SendRequest(e.requestData),!0)}},{key:"_sendPostOrUpdateRequestToServer",value:function(e){if(!this._sanitizePostOrUpdateNotificationRequest(e))return!1;if(!e.target||"server"===e.target){e.additionalInfo&&(this.requestContext=e.additionalInfo.requestContext,this.namespace=e.additionalInfo.namespace);var t={};return!!(t="POST"===this.type?Pt.createNotificationPostRequest(e.content):Pt.createNotificationPutRequest(e.content))&&this._sendRequestToServer(t)}var n=[],i=JSON.parse(e.content);if(!i||!i.notifications||!i.notifications.notification)return ie.warn("UNCEngine: NotificationRequestManagerInternal: _sendPostOrUpdateRequestToServer - Invalid content in request. Ignore processing."),!1;for(var o=i.notifications.notification,r=0;r<o.length;r+=1)n.push(o[r]);return pe.notifyObservers(n),!0}},{key:"_addNotificationSearchQueryCriteria",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"EQ",o={};o.field=t,o.value=n,o.operator=i,e.push(o)}},{key:"_createNotificationGetRequest",value:function(e){if(e.criteria)return Pt.createNotificationCriteriaBasedSearchRequest(e.criteria);if(e.type||e.subtype||e.pinned||e.state){var t={AND:[]};e.type&&this._addNotificationSearchQueryCriteria(t.AND,"type",e.type),e.subtype&&this._addNotificationSearchQueryCriteria(t.AND,"sub-type",e.subtype),e.pinned&&this._addNotificationSearchQueryCriteria(t.AND,"metadata.pinned",e.pinned),e.state&&this._addNotificationSearchQueryCriteria(t.AND,"state",e.state),e.timestamp&&this._addNotificationSearchQueryCriteria(t.AND,"sort-timestamp",e.timestamp,"LE");var n={};return n.limit=wt.pageSize.toString(),n.locale=It.locale,n.criteria=t,Pt.createNotificationCriteriaBasedSearchRequest(n)}return Pt.createNotificationGetRequest(wt.serverBackFillUri,e.timestamp)}},{key:"getNotifications",value:function(e){if(!this._sanitizeGetNotificationRequest(e.data))return!1;this.type="GET",this.sourceID=e.sourceID;var t=e.data;if(this.namespace=t.namespace,this.requestContext=t.requestContext,this.shouldRetryRequest=e.shouldRetryRequest||!1,this.workflow=e.data.workflow,It.isCacheEnabled&&this.workflow===je.INIT&&Bt.getNotificationsDataFromCache(this.namespace,this.sourceID))return ie.debug("'UNCEngine: Response received from Cache."),!0;var n=this._createNotificationGetRequest(t);return!!n&&this._sendRequestToServer(n)}},{key:"postNotifications",value:function(e){return this.type="POST",this.sourceID=e.sourceID,this.postAnalyticsCallbackFn=e.postAnalyticsCallbackFn,this.shouldRetryRequest=e.shouldRetryRequest||!1,this._sendPostOrUpdateRequestToServer(e.data)}},{key:"updateNotifications",value:function(e){return this.type="PUT",this.sourceID=e.sourceID,this.shouldRetryRequest=e.shouldRetryRequest||!1,this._sendPostOrUpdateRequestToServer(e.data)}},{key:"clearBadge",value:function(e){this.type="ClearBadge";var t=Pt.createNotificationBadgeClearRequest(e.data);return!!t&&this._sendRequestToServer(t)}},{key:"cancelRequest",value:function(){this._currentCommunicationHandler&&this._currentCommunicationHandler.CancelRequest()}},{key:"onResponse",value:function(e){switch(ie.debug("UNCEngine: NotificationRequestManagerInternal: onResponse - response:->",e),this.type){case"GET":var t={notificationResponseList:[]};t.notificationResponseList.push(JSON.parse(e)),t.notify=!1,t.namespace=this.namespace,t.targetID=this.sourceID,ht()?Kt.processNotifications(t):setTimeout(Kt.processNotifications,0,t),$t.resetErrorTypeFailureCount();break;case"POST":case"PUT":var n={};try{n.content=JSON.parse(e)}catch(e){ie.error("UNCEngine: NotificationRequestManagerInternal: onResponse - JSON parsing failed",e),n.content={}}n.requestContext=this.requestContext;var i="";if(n.content.notifications&&n.content.notifications.notification&&n.content.notifications.notification[0]&&(i=n.content.notifications.notification[0]["notification-id"]),this.postAnalyticsCallbackFn&&this.postAnalyticsCallbackFn(!0,i),!this.namespace)break;pe.sendMessageToApplet(this.namespace,n,this.sourceID),ie.debug(n);break;case"ClearBadge":ie.debug("UNCEngine: NotificationRequestManagerInternal: onResponse - Successfully cleared notifications Un-Read count")}}},{key:"_sendFetchRequestErrorResponse",value:function(e){pe.sendMessageToApplet(this.namespace,e,this.sourceID)}},{key:"onError",value:function(e){if(ie.debug("Error :-",e),"Too_Many_Requests"!==e.errorCode||!this.shouldRetryRequest||!Lt.retryRequest(e,this._currentCommunicationHandler,this.httpRequest.requestData)){switch(this.type){case"GET":var t=0;t=$t.failedState?1e3*wt.pollingInterval:0,$t._handleFetchError(e.errorCode),setTimeout(this._sendFetchRequestErrorResponse.bind(this,e),t);break;case"POST":case"PUT":if(this.postAnalyticsCallbackFn&&this.postAnalyticsCallbackFn(!1,e.errorCode),!this.namespace)break;pe.sendMessageToApplet(this.namespace,e,this.sourceID);break;case"ClearBadge":ie.debug("UNCEngine: NotificationRequestManagerInternal: onError - Error Occured: ",e.errorCode," on clearing notifications unread count")}"Unauthorized"!==e.errorCode&&"InvalidRequest"!==e.errorCode||pe.sendMessageToApplet("RefreshUserProfile",{},"UNCEngine")}}}],n&&Zt(t.prototype,n),i&&Zt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function nn(e){return nn="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},nn(e)}function on(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,rn(i.key),i)}}function rn(e){var t=function(e,t){if("object"!=nn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=nn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nn(t)?t:String(t)}var an=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,n=[{key:"_sanitizeGetNotificationRequest",value:function(e){if(!e||"object"!==nn(e))return ie.debug("UNCEngine: HostClientNotificationRequestManager: _sanitizeGetNotificationRequest - Get Notification Request Data can't be empty"),!1;if(!e.callbackFn||"function"!=typeof e.callbackFn)return ie.debug("UNCEngine: HostClientNotificationRequestManager: _sanitizeGetNotificationRequest - 'callbackFn' field can't be empty in ",this.type," Notification Request"),!1;if(e.timestamp&&"number"!=typeof e.timestamp&&(e.timestamp=parseInt(e.timestamp,10),isNaN(e.timestamp)))return ie.debug("UNCEngine: HostClientNotificationRequestManager: _sanitizeGetNotificationRequest - 'timestamp' field Data Type must be 'number'"),!1;if(e.typeSubtypesList&&!Array.isArray(e.typeSubtypesList))return!1;if(e.pinned&&"boolean"!=typeof e.pinned){var t=e.pinned.toString();if("true"===t.toLowerCase())e.pinned=!0;else{if("false"!==t.toLowerCase())return ie.debug("UNCEngine: HostClientNotificationRequestManager: _sanitizeGetNotificationRequest - 'pinned' field Data Type must be 'boolean'"),!1;e.pinned=!1}}return!0}},{key:"_sanitizePostOrUpdateNotificationRequest",value:function(e){return e&&"object"===nn(e)?e.content&&"string"==typeof e.content?e.target&&"string"!=typeof e.target?(ie.debug("UNCEngine: HostClientNotificationRequestManager: _sanitizePostOrUpdateNotificationRequest - 'target' field Data Type must be 'string'"),!1):!e.callbackFn||"function"==typeof e.callbackFn||(ie.debug("UNCEngine: HostClientNotificationRequestManager: _sanitizePostOrUpdateNotificationRequest - 'callbackFn' field Data Type must be 'function'"),!1):(ie.warn("UNCEngine: HostClientNotificationRequestManager: _sanitizePostOrUpdateNotificationRequest - 'content' field can't be empty in ",this.type," Notification request"),!1):(ie.debug("UNCEngine: HostClientNotificationRequestManager: _sanitizePostOrUpdateNotificationRequest - Post Notification Request Data can't be empty"),!1)}},{key:"_sendRequestToServer",value:function(e){return e.request.responseCallback=this.onResponse.bind(this),e.request.errorCallback=this.onError.bind(this),this.httpRequest=e,this._currentCommunicationHandler=new ne(e.request),!!this._currentCommunicationHandler&&(this._currentCommunicationHandler.SendRequest(e.requestData),!0)}},{key:"_sendPostOrUpdateRequestToServer",value:function(e){if(!this._sanitizePostOrUpdateNotificationRequest(e))return!1;if(!e.target||"server"===e.target){e.callbackFn&&(this.callbackFn=e.callbackFn),e.requestContext&&(this.requestContext=e.requestContext);var t={};return!!(t="POST"===this.type?Pt.createNotificationPostRequest(e.content):Pt.createNotificationPutRequest(e.content))&&this._sendRequestToServer(t)}var n=[],i=JSON.parse(e.content);if(!i||!i.notifications||!i.notifications.notification)return ie.warn("UNCEngine: HostClientNotificationRequestManager: _sendPostOrUpdateRequestToServer - Invalid content in request. Ignore processing."),!1;for(var o=i.notifications.notification,r=0;r<o.length;r+=1)n.push(o[r]);return pe.notifyObservers(n),!0}},{key:"_addNotificationSearchQueryCriteria",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"EQ",o={};o.field=t,o.value=n,o.operator=i,e.push(o)}},{key:"_getCriterionObjectBasedOnRequestData",value:function(e){for(var t={},n=e.typeSubtypesList,i={OR:[]},o=0;o<n.length;o+=1){var r={AND:[]},a=n[o];r.AND.push({field:"type",value:a.type,operator:"EQ"}),r.AND.push({field:"sub-type",value:a.subtype,operator:"EQ"}),i.OR.push(r)}var s={AND:[]};if(s.AND.push(i),s.AND.push({field:"state",value:"EXPIRED",operator:"NE"}),e.timestamp>0){var c={AND:[]};c.AND.push(s);var l={field:"sort-timestamp",value:e.timestamp,operator:"LT"};c.AND.push(l),t=c}else t=s;return t}},{key:"_createNotificationGetRequest",value:function(e){if(e.criteria)return Pt.createNotificationCriteriaBasedSearchRequest(e.criteria);if(e.typeSubtypesList&&Array.isArray(e.typeSubtypesList)){var t=this._getCriterionObjectBasedOnRequestData(e),n={};return n.locale=It.locale,n.criteria=t,Pt.createNotificationCriteriaBasedSearchRequest(n)}return Pt.createNotificationGetRequest(wt.serverBackFillUri,e.timestamp)}},{key:"getNotifications",value:function(e){if(!this._sanitizeGetNotificationRequest(e.data))return!1;this.type="GET";var t=e.data;this.callbackFn=t.callbackFn,this.requestContext=t.requestContext,this.shouldRetryRequest=e.shouldRetryRequest||!1;var n=this._createNotificationGetRequest(t);return!!n&&this._sendRequestToServer(n)}},{key:"postNotifications",value:function(e){return this.type="POST",this.shouldRetryRequest=e.shouldRetryRequest||!1,this._sendPostOrUpdateRequestToServer(e.data)}},{key:"updateNotifications",value:function(e){return this.type="PUT",this.shouldRetryRequest=e.shouldRetryRequest||!1,this._sendPostOrUpdateRequestToServer(e.data)}},{key:"clearBadge",value:function(e){this.type="ClearBadge";var t=Pt.createNotificationBadgeClearRequest(e.data);return!!t&&this._sendRequestToServer(t)}},{key:"cancelRequest",value:function(){this._currentCommunicationHandler&&this._currentCommunicationHandler.CancelRequest()}},{key:"onResponse",value:function(e){switch(ie.debug("UNCEngine: HostClientNotificationRequestManager: onResponse - response:->",e),this.type){case"GET":var t={notificationResponseList:[]};t.notificationResponseList.push(JSON.parse(e)),t.notify=!1,t.requestContext=this.requestContext,t.callbackFn=this.callbackFn,setTimeout(Kt.processNotifications,0,t),$t.resetErrorTypeFailureCount();break;case"POST":case"PUT":if(!this.callbackFn)break;var n={};n.data=JSON.parse(e),this.requestContext&&(n.requestContext=this.requestContext);try{this.callbackFn&&"function"==typeof this.callbackFn&&this.callbackFn(n)}catch(e){ie.error("UNCEngine: HostClientNotificationRequestManager: onResponse - Callback exception: ",e)}ie.debug(n);break;case"ClearBadge":ie.debug("UNCEngine: HostClientNotificationRequestManager: onResponse - Successfully cleared notifications Un-Read count")}}},{key:"_sendFetchRequestErrorResponse",value:function(e){if(this.callbackFn){var t={};t.data=e,this.requestContext&&(t.requestContext=this.requestContext);try{this.callbackFn&&"function"==typeof this.callbackFn&&this.callbackFn(t)}catch(e){ie.error("UNCEngine: HostClientNotificationRequestManager: onResponse - Callback exception: ",e)}}}},{key:"onError",value:function(e){if(ie.debug("Error :-",e),"Too_Many_Requests"!==e.errorCode||!this.shouldRetryRequest||!Lt.retryRequest(e,this._currentCommunicationHandler,this.httpRequest.requestData)){switch(this.type){case"GET":var t=0;t=$t.failedState?1e3*wt.pollingInterval:0,$t._handleFetchError(e.errorCode),setTimeout(this._sendFetchRequestErrorResponse.bind(this,e),t);break;case"POST":case"PUT":if(!this.callbackFn)break;var n={};n.data=e,this.requestContext&&(n.requestContext=this.requestContext);try{this.callbackFn&&"function"==typeof this.callbackFn&&this.callbackFn(n)}catch(e){ie.error("UNCEngine: HostClientNotificationRequestManager: onResponse - Callback exception: ",e)}break;case"ClearBadge":ie.debug("UNCEngine: HostClientNotificationRequestManager: onError - Error Occured: ",e.errorCode," on clearing notifications unread count")}"Unauthorized"!==e.errorCode&&"InvalidRequest"!==e.errorCode||pe.sendMessageToApplet("RefreshUserProfile",{},"UNCEngine")}}},{key:"finalize",value:function(){cancelRequest(),delete this._currentCommunicationHandler}}],n&&on(t.prototype,n),i&&on(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function sn(e){return sn="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},sn(e)}function cn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,ln(i.key),i)}}function ln(e){var t=function(e,t){if("object"!=sn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=sn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sn(t)?t:String(t)}var un=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"getNotifications",value:function(e){var t=!0;return e&&e.data?e.data.callbackFn&&"function"==typeof e.data.callbackFn?(this.currentRequestHandler=new an,t=this.currentRequestHandler.getNotifications(e)):(this.currentRequestHandler=new tn,t=this.currentRequestHandler.getNotifications(e)):t=!1,t}},{key:"postNotifications",value:function(e){var t=!0;return e&&e.data?e.data.callbackFn&&"function"==typeof e.data.callbackFn?(this.currentRequestHandler=new an,t=this.currentRequestHandler.postNotifications(e)):(e.postAnalyticsCallbackFn=function(e,t){Ke.sendAnalyticsForPostNotificationsResponse(e,t)},this.currentRequestHandler=new tn,t=this.currentRequestHandler.postNotifications(e)):t=!1,t}},{key:"updateNotifications",value:function(e){var t=!0;return e&&e.data?e.data.callbackFn&&"function"==typeof e.data.callbackFn?(this.currentRequestHandler=new an,t=this.currentRequestHandler.updateNotifications(e)):(this.currentRequestHandler=new tn,t=this.currentRequestHandler.updateNotifications(e)):t=!1,t}},{key:"clearBadge",value:function(e){var t=!0;return e&&e.data?e.data.callbackFn&&"function"==typeof e.data.callbackFn?(this.currentRequestHandler=new an,t=this.currentRequestHandler.clearBadge(e)):(this.currentRequestHandler=new tn,t=this.currentRequestHandler.clearBadge(e)):t=!1,t}},{key:"cancelRequest",value:function(){this.currentRequestHandler&&this.currentRequestHandler.cancelRequest()}},{key:"finalize",value:function(){this.cancelRequest(),delete this.currentRequestHandler}}])&&cn(t.prototype,n),i&&cn(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function fn(e){return fn="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},fn(e)}function dn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,pn(i.key),i)}}function pn(e){var t=function(e,t){if("object"!=fn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=fn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fn(t)?t:String(t)}var hn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.errorCallback=t.errorCallback}var t,n,i;return t=e,(n=[{key:"fetchNotificationsFromServer",value:function(){this.errorCallback("NotSupported")}}])&&dn(t.prototype,n),i&&dn(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function gn(e){return gn="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},gn(e)}function mn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,yn(i.key),i)}}function yn(e){var t=function(e,t){if("object"!=gn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=gn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gn(t)?t:String(t)}var vn=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"sendAnalytics",value:function(e,t,n){if(e){var i={eventParamData:{eventParam:[]}};i.eventCode=e,i.eventSubCode=n,i.eventParamData.eventParam=t,pe.sendMessageToApplet("SendAnalyticsFromJS",i,je.CONTAINER_BL)}else ie.info("NotificationUtils: sendAnalytics - EventCode cannot be empty()")}}])&&mn(t.prototype,n),i&&mn(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}());function bn(e){return bn="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},bn(e)}function _n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Cn(i.key),i)}}function Cn(e){var t=function(e,t){if("object"!=bn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=bn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bn(t)?t:String(t)}var Sn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.futureNotificationsData=t.futureNotificationsData,this.currentFutureRequestTimestamp=this.futureNotificationsData.nextFutureRequestTimestamp,this.responseCallback=t.responseCallback,this.getFutureNotificationsData=!0,this.continueFetch=!1,this.fetchingNotifications=!1,this.errorCallback=t.errorCallback,this.notificationResponseList=[],this.pollingFailureFlag=!1,this.requestFailureTypeAndCount={},this._initializeErrorTypeFailureCount()}var t,n,i;return t=e,n=[{key:"_handleDeviceRegistrationResponse",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("macos"===It.platform){var t,n=[];if(e.error){if(t=je.SwitchedToLongPollEvent,e.error.statusCode){var i={};i[je.DevicePushFailureErrorCode]=e.error.statusCode.toString(),n.push(i)}if(e.error.errorCode){var o={};o[je.DevicePushFailureReason]=e.error.errorCode,n.push(o)}delete e.error}else t=je.DevicePushSet;vn.sendAnalytics(t,n)}if("windows"===It.platform){var r,a=[],s=je.SwitchedToLongPollEventWin;if(e.error){r=je.DevicePushDisabledWin;var c={};if(c[je.DevicePushFailureReasonWin]="ERROR_FROM_ANS",a.push(c),e.error.statusCode){var l={};l[je.DevicePushFailureErrorCode]=e.error.statusCode.toString(),a.push(l)}if(e.error.errorCode){var u={};u[je.DevicePushFailureReason]=e.error.errorCode,a.push(u)}delete e.error}else r=je.DevicePushEnabledWin;vn.sendAnalytics(s,a,r)}pe.sendMessageToApplet("DeviceRegistered",e,je.CONTAINER_BL)}},{key:"registerDevice",value:function(){if(!It.isDevicePushEnabled)return ie.warn("UNCEngine: DevicePushCommunicationHandler: registerDevice - DevicePush is currently disabled. Ignoring request"),It.pushDeviceID&&(ie.warn("UNCEngine: DevicePushCommunicationHandler: registerDevice - Unregistering the device from server"),this.unRegisterDevice()),pe.sendMessageToApplet("SendDevicePushDisabledAnalytics",{},"UNCEngine"),pe.sendMessageToApplet("DeviceRegistered",{},je.CONTAINER_BL),this.errorCallback("NotSupported");var e={};if(!(e=Pt.createDeviceRegistrationRequest())){if(!It.machineDeviceToken){var t={error:{}};return t.error.errorCode=je.DeviceTokenNotAvailable,ie.warn("UNCEngine: DevicePushCommunicationHandler: registerDevice - Unable to create httpRequest. Machine Device Token is not available"),this._handleDeviceRegistrationResponse(t),this.errorCallback("NotSupported")}return ie.warn("UNCEngine: DevicePushCommunicationHandler: registerDevice - Unable to create httpRequest. AccessToken is not valid"),this.errorCallback("InvalidRequest")}e.request.responseCallback=function(e){var t=JSON.parse(e);It.pushDeviceID=t["device-id"],this._handleDeviceRegistrationResponse(t)}.bind(this),e.request.errorCallback=function(e){var t={};t.error=e,this._handleDeviceRegistrationResponse(t),ie.error("UNCEngine: DevicePushCommunicationHandler: registerDevice - Error Occured in Device Registration ",e),this.errorCallback("NotSupported")}.bind(this),new ne(e.request).SendRequest(e.requestData)}},{key:"unRegisterDevice",value:function(){var e={};if(!(e=Pt.createDeviceUnRegistrationRequest()))return ie.warn("UNCEngine: DevicePushCommunicationHandler: unRegisterDevice - Unable to create httpRequest. Either AccessToken or AppID is not valid"),this.onError({errorCode:"InvalidRequest"});e.request.responseCallback=function(){ie.info("UNCEngine: DevicePushCommunicationHandler: unRegisterDevice - Device is successfuly un-registered")},e.request.errorCallback=function(e){ie.error("UNCEngine: DevicePushCommunicationHandler: unRegisterDevice - Error Occured in Device UnRegistration ",e),this.errorCallback("NotSupported")}.bind(this),new ne(e.request).SendRequest(e.requestData),pe.sendMessageToApplet("DeviceUnRegistered",{},je.CONTAINER_BL),delete It.pushDeviceID}},{key:"_handlePollingRequestFailure",value:function(e){if(!this.pollingFailureFlag){var t=0,n=0;switch(e){case"Timeout":this.requestFailureTypeAndCount.timeoutFailureCount+=1,n=this.requestFailureTypeAndCount.timeoutFailureCount,t=je.TimeOutErrorCountLimit;break;case"ClientFailure":this.requestFailureTypeAndCount.clientFailureCount+=1,n=this.requestFailureTypeAndCount.clientFailureCount,t=je.ClientErrorCountLimit;break;case"ServerFailure":this.requestFailureTypeAndCount.serverFailureCount+=1,n=this.requestFailureTypeAndCount.serverFailureCount,t=je.ServerErrorCountLimit;break;case"NetworkFailure":this.requestFailureTypeAndCount.internalNetworkFailureCount+=1,n=this.requestFailureTypeAndCount.internalNetworkFailureCount,t=je.InternalNetworkErrorCountLimit}n===t&&(ie.warn("UNCEngine: DevicePushCommunicationHandler: _handlePollingRequestFailure - Polling failures of type:",e," has reached its failure count limit. Adding delay in successive Polls(if failure persisits)"),this.pollingFailureFlag=!0,this._initializeErrorTypeFailureCount())}}},{key:"_fetchNotificationsFromServerHelper",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n={},i=wt.serverShortPollUri;if(!(n=e||t?Pt.createNotificationGetRequest(i,t,e):Pt.createNotificationGetRequest(i,"",this.futureNotificationsData.nextFutureRequestTimestamp.toString())))return ie.warn("UNCEngine: DevicePushCommunicationHandler: fetchNotificationsFromServer - Unable to create httpRequest. Either AccessToken or AppID is not valid"),this.onError({errorCode:"InvalidRequest"});n.request.responseCallback=this.onResponse.bind(this),n.request.errorCallback=this.onError.bind(this),new ne(n.request).SendRequest(n.requestData)}},{key:"_getCurrentUserID",value:function(){var e=pe.sendMessageToParent("GetUserProfile",!1);return e?e.UserID:null}},{key:"_isFetchNotificationRequestValid",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._getCurrentUserID();return e["ans-target-id"]&&e["ans-target-id"]!==t?(ie.warn("UNCEngine: DevicePushCommunicationHandler: _isFetchNotificationRequestValid - Current UserID: ",t,"does not match with: ",e["ans-target-id"]),!1):!e["ans-device-id"]||e["ans-device-id"]===It.pushDeviceID||(ie.warn("UNCEngine: DevicePushCommunicationHandler: _isFetchNotificationRequestValid - Current DeviceID: ",It.pushDeviceID,"does not match with: ",e["ans-device-id"]),!1)}},{key:"fetchNotificationsFromServer",value:function(e){It.pushDeviceID?this._isFetchNotificationRequestValid(e)&&(this.pollingFailureFlag?ie.warn("UNCEngine: DevicePushCommunicationHandler: fetchNotificationsFromServer - In an error condition. Ignoring Request"):this.fetchingNotifications?this.continueFetch=!0:(this.fetchingNotifications=!0,this._fetchNotificationsFromServerHelper())):ie.warn("UNCEngine: DevicePushCommunicationHandler: fetchNotificationsFromServer - Device is not yet registered with Server. Ignoring Request")}},{key:"_sanitizeFutureTimestamp",value:function(e){e&&this.futureNotificationsData.nextFutureRequestTimestamp-e>0&&(ie.debug("UNCEngine: DevicePushCommunicationHandler: _sanitizeFutureTimestamp - Next Future timestamp value doesn't seem correct. Setting it to current servertimestamp value"),this.futureNotificationsData.nextFutureRequestTimestamp=e)}},{key:"_initializeErrorTypeFailureCount",value:function(){this.requestFailureTypeAndCount.timeoutFailureCount=0,this.requestFailureTypeAndCount.clientFailureCount=0,this.requestFailureTypeAndCount.serverFailureCount=0,this.requestFailureTypeAndCount.internalNetworkFailureCount=0}},{key:"_resetPollingFailure",value:function(){this.pollingFailureFlag=!1,this._initializeErrorTypeFailureCount()}},{key:"_triggerNotificationFetchOperation",value:function(){var e=0;e=this.pollingFailureFlag?1e3*wt.pollingInterval:je.OneSecond,setTimeout(this._fetchNotificationsFromServerHelper.bind(this),e)}},{key:"onResponse",value:function(e){ie.debug("UNCEngine: DevicePushCommunicationHandler: onResponse - Notification:-> ",e);var t=JSON.parse(e),n=t.notifications.notification;this.notificationResponseList.push(t),this.getFutureNotificationsData&&(this.currentFutureRequestTimestamp=this.futureNotificationsData.nextFutureRequestTimestamp,this.futureNotificationsData.nextFutureRequestTimestamp=n.length>0?parseInt(n[0].timestamp,10)+1:this.currentFutureRequestTimestamp,this._sanitizeFutureTimestamp(parseInt(t["server-timestamp"],10)));var i=wt.pageSize;if(n.length===i){this.getFutureNotificationsData=!1;var o=parseInt(n[i-1].timestamp,10);this._fetchNotificationsFromServerHelper(this.currentFutureRequestTimestamp.toString(),(o-1).toString())}else this.responseCallback(this.notificationResponseList),this.notificationResponseList.length=0,this.getFutureNotificationsData=!0,this.fetchingNotifications=!1,this._resetPollingFailure(),this.continueFetch&&(this.continueFetch=!1,this._triggerNotificationFetchOperation())}},{key:"onError",value:function(e){this.notificationResponseList.length=0,this.getFutureNotificationsData=!0,this.fetchingNotifications=!1;var t=!0;switch(e.errorCode){case"Unauthorized":case"UnSupported_Browser":case"Insufficient_Memory":case"UnSupported_Url_Scheme":case"UnSupported_Method_Type":case"Url_Hostname_Missing":case"Method_Type_Missing":case"InvalidRequest":this.errorCallback(e.errorCode),t=!1;break;case"Internal_Server_Error":case"Request_Not_Implemented":case"Bad_Gateway":case"Service_Unavailable":case"Gateway_Timeout":case"Server_Response_Error":this._handlePollingRequestFailure("ServerFailure");break;case"Network_Failure":this._handlePollingRequestFailure("NetworkFailure");break;case"Request_Timeout":this._handlePollingRequestFailure("Timeout");break;default:this._handlePollingRequestFailure("ClientFailure")}t&&this._triggerNotificationFetchOperation()}},{key:"cancelRequest",value:function(){this.unRegisterDevice()}}],n&&_n(t.prototype,n),i&&_n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function En(e){return En="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},En(e)}function Nn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,On(i.key),i)}}function On(e){var t=function(e,t){if("object"!=En(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=En(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==En(t)?t:String(t)}var Tn=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.forceFetchNotificationsFromServer=function(){ie.debug("UNCEngine: PollCommunicationHandler: forceFetchNotificationsFromServer: Reached"),n.isFetchingNotifications?ie.debug("UNCEngine: PollCommunicationHandler: forceFetchNotificationsFromServer: Already fetching notifications ignoring"):n.timeoutFn&&(clearTimeout(n.timeoutFn),n.timeoutFn=null,ie.debug("PollCommunicationHandler: forceFetchNotificationsFromServer: triggering to fetch notifications from server forcefully"),n.fetchNotificationsFromServer())},this.futureNotificationsData=t.futureNotificationsData,this.currentFutureRequestTimestamp=this.futureNotificationsData.nextFutureRequestTimestamp,this.responseCallback=t.responseCallback,this.getFutureNotificationsData=!0,this.errorCallback=t.errorCallback,this.notificationResponseList=[],this.longPollFailureFlag=!1,this.requestFailureTypeAndCount={},this.currentNetworkCommunicatorObj=null,this._initializeErrorTypeFailureCount(),this.isFetchingNotifications=!1,this.timeoutFn=null,this.handleVisibilityChange=this.handleVisibilityChange.bind(this),It.focusoutLongPollTerminationSurfaces.find((function(e){return e===It.appID}))&&document.addEventListener("visibilitychange",this.handleVisibilityChange,!0)}var t,n,i;return t=e,n=[{key:"handleVisibilityChange",value:function(){"hidden"===document.visibilityState?(ie.log("UNCEngine: PollCommunicationHandler: fetchNotificationsFromServer - focus: tab hidden: terminating connection"),this.cancelRequest()):(ie.log("UNCEngine: PollCommunicationHandler: fetchNotificationsFromServer - focus: tab visible: resuming connection"),this.fetchNotificationsFromServer())}},{key:"_handleLongPollRequestFailure",value:function(e){if(!this.longPollFailureFlag){var t=0,n=0;switch(e){case"Timeout":this.requestFailureTypeAndCount.timeoutFailureCount+=1,n=this.requestFailureTypeAndCount.timeoutFailureCount,t=je.TimeOutErrorCountLimit;break;case"ClientFailure":this.requestFailureTypeAndCount.clientFailureCount+=1,n=this.requestFailureTypeAndCount.clientFailureCount,t=je.ClientErrorCountLimit;break;case"ServerFailure":this.requestFailureTypeAndCount.serverFailureCount+=1,n=this.requestFailureTypeAndCount.serverFailureCount,t=je.ServerErrorCountLimit;break;case"NetworkFailure":this.requestFailureTypeAndCount.internalNetworkFailureCount+=1,n=this.requestFailureTypeAndCount.internalNetworkFailureCount,t=je.InternalNetworkErrorCountLimit}n===t&&(ie.warn("UNCEngine: PollCommunicationHandler: _handleLongPollRequestFailure - LongPoll failures of type:",e," has reached its failure count limit. Adding delay in successive LongPolls(if failure persisits)"),this.longPollFailureFlag=!0,this._initializeErrorTypeFailureCount())}}},{key:"fetchNotificationsFromServer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(It.focusoutLongPollTerminationSurfaces.find((function(e){return e===It.appID}))){if(document.hidden)return void ie.log("UNCEngine: PollCommunicationHandler: fetchNotificationsFromServer - focus: tab hidden");ie.log("UNCEngine: PollCommunicationHandler: fetchNotificationsFromServer - focus: tab visible")}var n=!1;Pt.isNELongPollEnabled()&&(n=!0);var i={},o=n?wt.serverLongPollUri:wt.serverShortPollUri;if(!(i=e||t?Pt.createNotificationGetRequest(o,t,e,n,!1):Pt.createNotificationGetRequest(o,"",this.futureNotificationsData.nextFutureRequestTimestamp.toString(),n,!0)))return ie.warn("UNCEngine: PollCommunicationHandler: fetchNotificationsFromServer - Unable to create httpRequest. Either AccessToken or AppID is not valid"),this.onError({errorCode:"InvalidRequest"});if(i.error)return this.onError(i);this.isFetchingNotifications=!0,ie.debug("UNCEngine: PollCommunicationHandler: fetchNotificationsFromServer: calling to fetch notifications from server"),i.request.responseCallback=this.onResponse.bind(this),i.request.errorCallback=this.onError.bind(this);var r=new ne(i.request);r.SendRequest(i.requestData),this.currentNetworkCommunicatorObj=r}},{key:"_sanitizeFutureTimestamp",value:function(e){e&&this.futureNotificationsData.nextFutureRequestTimestamp-e>0&&(ie.debug("UNCEngine: PollCommunicationHandler: _sanitizeFutureTimestamp - Next Future timestamp value doesn't seem correct. Setting it to current servertimestamp value"),this.futureNotificationsData.nextFutureRequestTimestamp=e)}},{key:"_initializeErrorTypeFailureCount",value:function(){this.requestFailureTypeAndCount.timeoutFailureCount=0,this.requestFailureTypeAndCount.clientFailureCount=0,this.requestFailureTypeAndCount.serverFailureCount=0,this.requestFailureTypeAndCount.internalNetworkFailureCount=0}},{key:"_resetLongPollFailure",value:function(){this.longPollFailureFlag=!1,this._initializeErrorTypeFailureCount()}},{key:"_triggerNotificationFetchOperation",value:function(){var e=0;e=this.longPollFailureFlag?1e3*wt.pollingInterval:je.OneSecond,this.timeoutFn=setTimeout(this.fetchNotificationsFromServer.bind(this),e)}},{key:"onResponse",value:function(e){this.isFetchingNotifications=!1,ie.debug("UNCEngine: PollCommunicationHandler: onResponse - Notification:-> ",e);var t=JSON.parse(e),n=t.notifications.notification;this.notificationResponseList.push(t),this.getFutureNotificationsData&&(this.currentFutureRequestTimestamp=this.futureNotificationsData.nextFutureRequestTimestamp,this.futureNotificationsData.nextFutureRequestTimestamp=n.length>0?parseInt(n[0].timestamp,10)+1:this.currentFutureRequestTimestamp,this._sanitizeFutureTimestamp(parseInt(t["server-timestamp"],10)));var i=wt.pageSize;if(n.length===i){this.getFutureNotificationsData=!1;var o=parseInt(n[i-1].timestamp,10);this.fetchNotificationsFromServer(this.currentFutureRequestTimestamp.toString(),(o-1).toString())}else this.responseCallback(this.notificationResponseList),this.notificationResponseList.length=0,this.getFutureNotificationsData=!0,this._resetLongPollFailure(),this._triggerNotificationFetchOperation();It.isCacheEnabled&&Bt.updateNewNotifications(e)}},{key:"onError",value:function(e){this.isFetchingNotifications=!1,ie.debug("UNCEngine: PollCommunicationHandler: onError received."),this.notificationResponseList.length=0,this.getFutureNotificationsData=!0;var t=!0;switch(e.errorCode){case"Unauthorized":case"UnSupported_Browser":case"Insufficient_Memory":case"UnSupported_Url_Scheme":case"UnSupported_Method_Type":case"Url_Hostname_Missing":case"Method_Type_Missing":case"InvalidRequest":this.errorCallback(e.errorCode),t=!1;break;case"Internal_Server_Error":case"Request_Not_Implemented":case"Bad_Gateway":case"Service_Unavailable":case"Gateway_Timeout":case"Server_Response_Error":this._handleLongPollRequestFailure("ServerFailure");break;case"Network_Failure":this._handleLongPollRequestFailure("NetworkFailure");break;case"Request_Timeout":this._handleLongPollRequestFailure("Timeout");break;default:this._handleLongPollRequestFailure("ClientFailure")}t&&this._triggerNotificationFetchOperation()}},{key:"cancelRequest",value:function(){this.currentNetworkCommunicatorObj&&this.currentNetworkCommunicatorObj.CancelRequest()}}],n&&Nn(t.prototype,n),i&&Nn(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function In(e){return In="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},In(e)}function wn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,An(i.key),i)}}function An(e){var t=function(e,t){if("object"!=In(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=In(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==In(t)?t:String(t)}var kn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._nextFutureRequestTimestamp=It.serverTimestampOnLaunch}var t,n,i;return t=e,(n=[{key:"nextFutureRequestTimestamp",get:function(){return this._nextFutureRequestTimestamp},set:function(e){this._nextFutureRequestTimestamp=e}}])&&wn(t.prototype,n),i&&wn(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Dn(e){return Dn="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},Dn(e)}function Pn(){Pn=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var r=t&&t.prototype instanceof y?t:y,a=Object.create(r.prototype),s=new k(i||[]);return o(a,"_invoke",{value:T(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",g="completed",m={};function y(){}function v(){}function b(){}var _={};l(_,a,(function(){return this}));var C=Object.getPrototypeOf,S=C&&C(C(D([])));S&&S!==n&&i.call(S,a)&&(_=S);var E=b.prototype=y.prototype=Object.create(_);function N(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(o,r,a,s){var c=f(e[o],e,r);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Dn(u)&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var r;o(this,"_invoke",{value:function(e,i){function o(){return new t((function(t,o){n(e,i,t,o)}))}return r=r?r.then(o,o):o()}})}function T(t,n,i){var o=d;return function(r,a){if(o===h)throw new Error("Generator is already running");if(o===g){if("throw"===r)throw a;return{value:e,done:!0}}for(i.method=r,i.arg=a;;){var s=i.delegate;if(s){var c=I(s,i);if(c){if(c===m)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(o===d)throw o=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o=h;var l=f(t,n,i);if("normal"===l.type){if(o=i.done?g:p,l.arg===m)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(o=g,i.method="throw",i.arg=l.arg)}}}function I(t,n){var i=n.method,o=t.iterator[i];if(o===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var r=f(o,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,m;var a=r.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function w(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 k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,r=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(Dn(t)+" is not iterable")}return v.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=l(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},N(O.prototype),l(O.prototype,s,(function(){return this})),t.AsyncIterator=O,t.async=function(e,n,i,o,r){void 0===r&&(r=Promise);var a=new O(u(e,n,i,o),r);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},N(E),l(E,c,"Generator"),l(E,a,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=D,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(i,o){return s.type="throw",s.arg=t,n.next=i,o&&(n.method="next",n.arg=e),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var o=i.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:D(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),m}},t}function Rn(e,t,n,i,o,r,a){try{var s=e[r](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(i,o)}function xn(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var r=e.apply(t,n);function a(e){Rn(r,i,o,a,s,"next",e)}function s(e){Rn(r,i,o,a,s,"throw",e)}a(void 0)}))}}function Fn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Un(i.key),i)}}function Ln(e,t,n){return t&&Fn(e.prototype,t),n&&Fn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Un(e){var t=function(e,t){if("object"!=Dn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Dn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Dn(t)?t:String(t)}function jn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Mn="vulcan.SuiteMessage.",Wn="ccxi.unc.notifications",Hn=function(){function e(){if(jn(this,e),this.listeners={},this.control=void 0,this.dispatcher=void 0,this.message=void 0,window.require)try{var t=window.require("uxp");t.vulcan&&(this.control=t.vulcan.control,this.dispatcher=t.vulcan.dispatcher,this.message=t.vulcan.message)}catch(e){ie.log("UNCEngine: vulcan: Error loading UXP module:",e)}}var t,n,i,o,r,a;return Ln(e,[{key:"dispatch",value:(a=xn(Pn().mark((function e(t){var n,i,o,r,a,s;return Pn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.type,i=t.target,o=void 0===i?"ADCS":i,r=t.data,e.prev=1,ie.log("UNCEngine: vulcan: dispatching message with type: ",Mn+n,"and data: ",r),e.next=5,this.dispatcher.getConnectedApplications();case 5:a=e.sent,(s=a.find((function(e){return e.appId===o})))&&s.dispatchMessage(new this.message(Mn+n,r)),e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(1),new Error("UNCEngine: vulcan: error while dispatching message",e.t0);case 13:case"end":return e.stop()}}),e,this,[[1,10]])}))),function(e){return a.apply(this,arguments)})},{key:"checkIfAppRunning",value:(r=xn(Pn().mark((function e(t){var n;return Pn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!1,this.dispatcher){e.next=3;break}return e.abrupt("return",n);case 3:return e.prev=3,e.next=6,this.dispatcher.getConnectedApplications();case 6:e.sent.find((function(e){return e.appId===t}))&&(n=!0),e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(3),new Error("UNCEngine: vulcan: error while getting connected applications: ",e.t0);case 13:return ie.log("UNCEngine: vulcan: ".concat(t," app running: ").concat(n)),e.abrupt("return",n);case 15:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(e){return r.apply(this,arguments)})},{key:"getAppProcess",value:(o=xn(Pn().mark((function e(t){var n,i,o,r,a,s;return Pn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={cclibraries:"LIBS",ccxprocess:"CCXP"},i=!!this.control.getInstalledAppsEx,o=i?this.control.getInstalledAppsEx:this.control.getInstalledApps,r=i&&n[t]||t,a=i?"sapCode":"name",e.next=7,o();case 7:return s=e.sent,e.abrupt("return",s.find((function(e){return e[a]===r})));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"launchApp",value:(i=xn(Pn().mark((function e(t){var n;return Pn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.control){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,this.getAppProcess(t);case 5:if(n=e.sent,e.t0=n,!e.t0){e.next=11;break}return e.next=10,n.launch();case 10:e.t0=e.sent;case 11:return e.abrupt("return",e.t0);case 14:e.prev=14,e.t1=e.catch(2),console.warn("Error when launching application with specifier ".concat(t,": ").concat(e.t1));case 17:case"end":return e.stop()}}),e,this,[[2,14]])}))),function(e){return i.apply(this,arguments)})},{key:"addListener",value:(n=xn(Pn().mark((function e(t){return Pn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,ie.log("UNCEngine: vulcan: adding listener with namespace ",Mn+Wn),this.dispatcher.addEventListener(Mn+Wn,t),e.next=8;break;case 5:throw e.prev=5,e.t0=e.catch(0),new Error("UNCEngine: vulcan: error while adding listener: ",e.t0);case 8:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(e){return n.apply(this,arguments)})},{key:"removeListener",value:(t=xn(Pn().mark((function e(t){return Pn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{ie.log("UNCEngine: vulcan: removing listener namespace ",Mn+Wn),this.dispatcher.removeEventListener(Mn+Wn,t)}catch(e){ie.error("UNCEngine: vulcan: error while removing listener: ",e)}case 1:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getclientRegisrationPayload",value:function(e){return'<?xml version="1.0" encoding="utf-8"?><NEMessage action="RegisterClient"><type>photoshop</type><sub-type>photoshop</sub-type><clientID>'.concat(e,"</clientID><observer-namespace>").concat(Wn,"</observer-namespace></NEMessage>")}}]),e}(),qn=new Hn,Bn=n(9958);function Vn(e){return Vn="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},Vn(e)}function Gn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,zn(i.key),i)}}function zn(e){var t=function(e,t){if("object"!=Vn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Vn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vn(t)?t:String(t)}var Kn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.futureNotificationsData=t.futureNotificationsData,this.currentFutureRequestTimestamp=this.futureNotificationsData.nextFutureRequestTimestamp,this.responseCallback=t.responseCallback,this.getFutureNotificationsData=!0,this.continueFetch=!1,this.fetchingNotifications=!1,this.errorCallback=t.errorCallback,this.switchToLongPollBasedOnConfig=t.switchToLongPollBasedOnConfig,this.notificationResponseList=[],this.pollingFailureFlag=!1,this.requestFailureTypeAndCount={},this._initializeErrorTypeFailureCount(),this.registrationStateWithADCS=je.RegistrationStatus.PENDING,this.ADCSResponseTimerId=null,this.onResponseReceivedFromADCS=this.onResponseReceivedFromADCS.bind(this)}var t,n,i;return t=e,n=[{key:"registerDevice",value:function(){var e=this;"UXP"===It.hostPlatform?qn.checkIfAppRunning("ADCS").then((function(t){t?(e.sendMessageForADSRunningToWidget(!0),ie.log("UNCEngine: PushViaCCDCommunicationHandler: ADCS is running on machine, registering client on ADCS..."),qn.addListener(e.onResponseReceivedFromADCS).then((function(){e.registerClient()})).catch((function(t){ie.error("UNCEngine: PushViaCCDCommunicationHandler: registerDevice: ",t.message),e.switchToLongPollBasedOnConfig()}))):(ie.log("UNCEngine: PushViaCCDCommunicationHandler: registerDevice: ADCS not running on machine, switching to long-poll connection"),e.switchToLongPollBasedOnConfig(),e.sendMessageForADSRunningToWidget(!1))})).catch((function(t){ie.error("UNCEngine: PushViaCCDCommunicationHandler: registerDevice: ",t.message),e.switchToLongPollBasedOnConfig(),e.sendMessageForADSRunningToWidget(!1)})):(ie.log("UNCEngine: PushViaCCDCommunicationHandler: hostPlatform is not UXP, switching to default long-poll connection"),this.switchToLongPollBasedOnConfig(),this.sendMessageForADSRunningToWidget(!1))}},{key:"sendMessageForADSRunningToWidget",value:function(e){It.isADSRunning=e,pe.sendMessageToApplet("IsADCSRunning",{data:e},"UNCWidget")}},{key:"getRegistrationData",value:function(e){return e&&e.registrationStatus?{status:e.registrationStatus.status,message:e.registrationStatus.message}:null}},{key:"hasNewNotificationData",value:function(e){return e?e.notification:null}},{key:"updateRegistrationStatus",value:function(e){var t=this.getRegistrationData(e);if(t){var n=t.status,i=t.message;n&&(this.registrationStateWithADCS=n.toLowerCase(),clearTimeout(this.ADCSResponseTimerId),this.registrationStateWithADCS===je.RegistrationStatus.SUCCESS?ie.log("UNCEngine: PushViaCCDCommunicationHandler: registerDeviceStatus: ".concat(n," , message: ").concat(i)):this.registrationStateWithADCS===je.RegistrationStatus.FAILURE&&(ie.error("UNCEngine: PushViaCCDCommunicationHandler: registerDeviceStatus: ".concat(n," , message: ").concat(i)),this.switchToLongPollBasedOnConfig()))}}},{key:"onResponseReceivedFromADCS",value:function(e){ie.log("UNCEngine: PushViaCCDCommunicationHandler: onResponseReceivedFromADCS, response: ",e);try{var t=new Bn.XMLParser,n=e&&e.payload?t.parse(e.payload):null;this.updateRegistrationStatus(n),this.hasNewNotificationData(n)&&this.fetchNotificationsFromServer()}catch(e){ie.error("UNCEngine: PushViaCCDCommunicationHandler: onResponseReceivedFromADCS: ",e)}}},{key:"registerClient",value:function(){var e=this,t=It.pushViaCCDConfig?It.pushViaCCDConfig.clientApp:null,n=qn.getclientRegisrationPayload(t);qn.dispatch({type:"accc.notifications",data:n}).then((function(){e.ADCSResponseTimerId=setTimeout((function(){ie.error("UNCEngine: PushViaCCDCommunicationHandler: registerClient: timeout while making entry in ANE.db after ".concat(je.RegistrationWaitingTimeout,"ms: switching to long-poll")),e.switchToLongPollBasedOnConfig()}),je.RegistrationWaitingTimeout)})).catch((function(t){ie.error("UNCEngine: PushViaCCDCommunicationHandler: registerClient: ".concat(t.message)),e.switchToLongPollBasedOnConfig()}))}},{key:"fetchNotificationsFromServer",value:function(e){this.pollingFailureFlag?ie.warn("UNCEngine: PushViaCCDCommunicationHandler: fetchNotificationsFromServer - In an error condition. Ignoring Request"):this.fetchingNotifications?this.continueFetch=!0:(this.fetchingNotifications=!0,this._fetchNotificationsFromServerHelper())}},{key:"_handlePollingRequestFailure",value:function(e){if(!this.pollingFailureFlag){var t=0,n=0;switch(e){case"Timeout":this.requestFailureTypeAndCount.timeoutFailureCount+=1,n=this.requestFailureTypeAndCount.timeoutFailureCount,t=je.TimeOutErrorCountLimit;break;case"ClientFailure":this.requestFailureTypeAndCount.clientFailureCount+=1,n=this.requestFailureTypeAndCount.clientFailureCount,t=je.ClientErrorCountLimit;break;case"ServerFailure":this.requestFailureTypeAndCount.serverFailureCount+=1,n=this.requestFailureTypeAndCount.serverFailureCount,t=je.ServerErrorCountLimit;break;case"NetworkFailure":this.requestFailureTypeAndCount.internalNetworkFailureCount+=1,n=this.requestFailureTypeAndCount.internalNetworkFailureCount,t=je.InternalNetworkErrorCountLimit}n===t&&(ie.warn("UNCEngine: PushViaCCDCommunicationHandler: _handlePollingRequestFailure - Polling failures of type:",e," has reached its failure count limit. Adding delay in successive Polls(if failure persisits)"),this.pollingFailureFlag=!0,this._initializeErrorTypeFailureCount())}}},{key:"_fetchNotificationsFromServerHelper",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n={},i=wt.serverShortPollUri;if(!(n=e||t?Pt.createNotificationGetRequest(i,t,e):Pt.createNotificationGetRequest(i,"",this.futureNotificationsData.nextFutureRequestTimestamp.toString())))return ie.warn("UNCEngine: PushViaCCDCommunicationHandler: fetchNotificationsFromServer - Unable to create httpRequest. Either AccessToken or AppID is not valid"),this.onError({errorCode:"InvalidRequest"});n.request.responseCallback=this.onResponse.bind(this),n.request.errorCallback=this.onError.bind(this),new ne(n.request).SendRequest(n.requestData)}},{key:"_getCurrentUserID",value:function(){var e=pe.sendMessageToParent("GetUserProfile",!1);return e?e.UserID:null}},{key:"_isFetchNotificationRequestValid",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._getCurrentUserID();return e["ans-target-id"]&&e["ans-target-id"]!==t?(ie.warn("UNCEngine: PushViaCCDCommunicationHandler: _isFetchNotificationRequestValid - Current UserID: ",t,"does not match with: ",e["ans-target-id"]),!1):!e["ans-device-id"]||e["ans-device-id"]===It.pushDeviceID||(ie.warn("UNCEngine: PushViaCCDCommunicationHandler: _isFetchNotificationRequestValid - Current DeviceID: ",It.pushDeviceID,"does not match with: ",e["ans-device-id"]),!1)}},{key:"_sanitizeFutureTimestamp",value:function(e){e&&this.futureNotificationsData.nextFutureRequestTimestamp-e>0&&(ie.debug("UNCEngine: PushViaCCDCommunicationHandler: _sanitizeFutureTimestamp - Next Future timestamp value doesn't seem correct. Setting it to current servertimestamp value"),this.futureNotificationsData.nextFutureRequestTimestamp=e)}},{key:"_initializeErrorTypeFailureCount",value:function(){this.requestFailureTypeAndCount.timeoutFailureCount=0,this.requestFailureTypeAndCount.clientFailureCount=0,this.requestFailureTypeAndCount.serverFailureCount=0,this.requestFailureTypeAndCount.internalNetworkFailureCount=0}},{key:"_resetPollingFailure",value:function(){this.pollingFailureFlag=!1,this._initializeErrorTypeFailureCount()}},{key:"_triggerNotificationFetchOperation",value:function(){var e=0;e=this.pollingFailureFlag?1e3*wt.pollingInterval:je.OneSecond,setTimeout(this._fetchNotificationsFromServerHelper.bind(this),e)}},{key:"onResponse",value:function(e){ie.debug("UNCEngine: PushViaCCDCommunicationHandler: onResponse - Notification:-> ",e);var t=JSON.parse(e),n=t.notifications.notification;this.notificationResponseList.push(t),this.getFutureNotificationsData&&(this.currentFutureRequestTimestamp=this.futureNotificationsData.nextFutureRequestTimestamp,this.futureNotificationsData.nextFutureRequestTimestamp=n.length>0?parseInt(n[0].timestamp,10)+1:this.currentFutureRequestTimestamp,this._sanitizeFutureTimestamp(parseInt(t["server-timestamp"],10)));var i=wt.pageSize;if(n.length===i){this.getFutureNotificationsData=!1;var o=parseInt(n[i-1].timestamp,10);this._fetchNotificationsFromServerHelper(this.currentFutureRequestTimestamp.toString(),(o-1).toString())}else this.responseCallback(this.notificationResponseList),this.notificationResponseList.length=0,this.getFutureNotificationsData=!0,this.fetchingNotifications=!1,this._resetPollingFailure(),this.continueFetch&&(this.continueFetch=!1,this._triggerNotificationFetchOperation())}},{key:"onError",value:function(e){this.notificationResponseList.length=0,this.getFutureNotificationsData=!0,this.fetchingNotifications=!1;var t=!0;switch(e.errorCode){case"Unauthorized":case"UnSupported_Browser":case"Insufficient_Memory":case"UnSupported_Url_Scheme":case"UnSupported_Method_Type":case"Url_Hostname_Missing":case"Method_Type_Missing":case"InvalidRequest":this.errorCallback(e.errorCode),t=!1;break;case"Internal_Server_Error":case"Request_Not_Implemented":case"Bad_Gateway":case"Service_Unavailable":case"Gateway_Timeout":case"Server_Response_Error":this._handlePollingRequestFailure("ServerFailure");break;case"Network_Failure":this._handlePollingRequestFailure("NetworkFailure");break;case"Request_Timeout":this._handlePollingRequestFailure("Timeout");break;default:this._handlePollingRequestFailure("ClientFailure")}t&&this._triggerNotificationFetchOperation()}},{key:"cancelRequest",value:function(){qn.removeListener(this.onResponseReceivedFromADCS)}}],n&&Gn(t.prototype,n),i&&Gn(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Yn(e){return Yn="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},Yn(e)}function Xn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Jn(i.key),i)}}function Jn(e){var t=function(e,t){if("object"!=Yn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Yn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yn(t)?t:String(t)}var $n=0,Qn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sendAnalyticsForCommunicationPreference=function(e){_t.getInstance().sendAnalyticsForCommunicationPreference(e)},this._setServerCommunicationPreferenceOrder(t),this._shouldResume=!1,this._currentPreferenceOrderIndex=0,this._futureNotificationsData=new kn,this._initializationData={futureNotificationsData:this._futureNotificationsData,responseCallback:this.onResponse.bind(this),errorCallback:this.onError.bind(this),switchToLongPollBasedOnConfig:this.switchToLongPollBasedOnConfig.bind(this)},this.healthCheckIntervalId=null,this.shouldSendCommunicationChannelClosedAnalytics=!1}var t,n,i;return t=e,(n=[{key:"_setServerCommunicationPreferenceOrder",value:function(e){this._preferenceOrder=e}},{key:"registerDevice",value:function(){"devicePush"===this._preferenceOrder[this._currentPreferenceOrderIndex]&&this._currentCommunicationHandler.registerDevice()}},{key:"isCurrentCommunicationHandlerDevicePush",value:function(){return"devicePush"===this._preferenceOrder[this._currentPreferenceOrderIndex]}},{key:"switchToLongPollBasedOnConfig",value:function(){It.pushViaCCDConfig.shouldSwitchToLongPoll&&!0===It.pushViaCCDConfig.shouldSwitchToLongPoll&&this.switchToLongPoll()}},{key:"switchToLongPoll",value:function(){"devicePush"===this._preferenceOrder[this._currentPreferenceOrderIndex]||"pushViaCCD"===this._preferenceOrder[this._currentPreferenceOrderIndex]?("devicePush"===this._preferenceOrder[this._currentPreferenceOrderIndex]?(pe.sendMessageToApplet("SendDevicePushDisabledAnalytics",{},"UNCEngine"),this._currentCommunicationHandler.cancelRequest()):"pushViaCCD"===this._preferenceOrder[this._currentPreferenceOrderIndex]&&this._currentCommunicationHandler.cancelRequest(),delete this._currentCommunicationHandler,this._currentPreferenceOrderIndex=this._preferenceOrder.indexOf("poll"),this.executeRequest()):It.pushDeviceID&&new Sn(this._initializationData).unRegisterDevice()}},{key:"switchToDevicePush",value:function(){"devicePush"!==this._preferenceOrder[this._currentPreferenceOrderIndex]?(this._currentCommunicationHandler.cancelRequest(),delete this._currentCommunicationHandler,this._currentPreferenceOrderIndex=this._preferenceOrder.indexOf("devicePush"),this.executeRequest()):"windows"===It.platform&&It.context.ChannelURInew!==It.context.ChannelURI&&(ie.warn("UNCEngine: FutureNotificationsManager: Channel URI updated for Windows"),this._currentPreferenceOrderIndex=this._preferenceOrder.indexOf("devicePush"),this.executeRequest())}},{key:"switchToPushViaCCD",value:function(){this._currentCommunicationHandler.cancelRequest(),delete this._currentCommunicationHandler,this._currentPreferenceOrderIndex=this._preferenceOrder.indexOf("pushViaCCD"),this.executeRequest()}},{key:"retryPushViaCCD",value:function(){var e=this;qn.launchApp("KCCCADS").then((function(t){t?setTimeout((function(){e.switchToPushViaCCD()}),3e4):e.switchToLongPollBasedOnConfig()})).catch((function(t){ie.error("UNCEngine: FutureNotificationsManager: launchADCS: error while launching ADS",t),e.switchToLongPollBasedOnConfig()}))}},{key:"healthCheckOfADCS",value:function(){var e=this;qn.checkIfAppRunning("ADCS").then((function(t){t?("pushViaCCD"!==e._preferenceOrder[e._currentPreferenceOrderIndex]&&(ie.log("UNCEngine: FutureNotificationsManager: healthCheckOfADCS: ADCS is live, switching to pushViaCCD connection"),e.switchToPushViaCCD()),!0!==It.isADSRunning&&(pe.sendMessageToApplet("IsADCSRunning",{data:!0},"UNCWidget"),It.isADSRunning=!0),e.shouldSendCommunicationChannelClosedAnalytics=!1):(ie.log("UNCEngine: FutureNotificationsManager: healthCheckOfADCS: ADCS not running on machine, deciding b/w push and long-poll"),$n<It.pushViaCCDConfig.ADCSMaxLaunchCount?($n+=1,e.retryPushViaCCD()):(e.sendAnalyticsIfCommunicationChannelClosed(),e.switchToLongPollBasedOnConfig()),!1!==It.isADSRunning&&(pe.sendMessageToApplet("IsADCSRunning",{data:!1},"UNCWidget"),It.isADSRunning=!1))})).catch((function(t){ie.error("UNCEngine: FutureNotificationsManager: healthCheckOfADCS: ",t.message),e.switchToLongPollBasedOnConfig(),!1!==It.isADSrunning&&(pe.sendMessageToApplet("IsADCSRunning",{data:!1},"UNCWidget"),It.isADSrunning=!1)}))}},{key:"fetchDevicePushNotifications",value:function(e){"devicePush"===this._preferenceOrder[this._currentPreferenceOrderIndex]?(ie.debug("UNCEngine: FetchDevicePushNotifications: Device Push is enabled"),this._currentCommunicationHandler.fetchNotificationsFromServer(e)):ie.error("UNCEngine: FetchDevicePushNotifications: Device Push is disabled")}},{key:"forceNotificationsFetchIfLongpoll",value:function(){"poll"===this._preferenceOrder[this._currentPreferenceOrderIndex]&&this._currentCommunicationHandler.forceFetchNotificationsFromServer()}},{key:"executeRequest",value:function(){switch(this._preferenceOrder[this._currentPreferenceOrderIndex]){case"webPush":this._currentCommunicationHandler=new hn(this._initializationData);break;case"devicePush":return"windows"===It.platform&&(It.context.ChannelURI=It.context.ChannelURInew),this._currentCommunicationHandler=new Sn(this._initializationData),this._currentCommunicationHandler.registerDevice(),void this.sendAnalyticsForCommunicationPreference("devicePush");case"poll":this._currentCommunicationHandler=new Tn(this._initializationData),this.sendAnalyticsForCommunicationPreference("poll");break;case"pushViaCCD":ie.debug("UNCEngine: FutureNotificationsManager: setting up connections for pushViaCCD"),this._currentCommunicationHandler=new Kn(this._initializationData),this._currentCommunicationHandler.registerDevice(),this.sendAnalyticsForCommunicationPreference("pushViaCCD");break;default:ie.warn("UNCEngine: FutureNotificationsManager: executeRequest: default - Server Communication Preference Type: ",this.preferenceOrder[this._currentPreferenceOrderIndex]," is currently not supported")}if(ht()){var e,t;clearInterval(this.healthCheckIntervalId);var n=null!=It&&null!==(e=It.pushViaCCDConfig)&&void 0!==e&&e.ADCSHealthCheckInterval?null==It||null===(t=It.pushViaCCDConfig)||void 0===t?void 0:t.ADCSHealthCheckInterval:je.HealthCheckPingTime;this.healthCheckIntervalId=setInterval(this.healthCheckOfADCS.bind(this),n)}this._currentCommunicationHandler.fetchNotificationsFromServer()}},{key:"resumeRequest",value:function(){this._shouldResume&&(this._shouldResume=!1,this._currentCommunicationHandler?this._currentCommunicationHandler.fetchNotificationsFromServer():this.executeRequest())}},{key:"onResponse",value:function(e){ie.debug("UNCEngine: FutureNotificationsManager: onResponse - Notification List to be notified",e);var t={};t.notificationResponseList=e,t.notify=!0,Kt.processNotifications(t)}},{key:"onError",value:function(e){switch(ie.debug("UNCEngine: FutureNotificationsManager: onError - Error :-",e),e){case"NotSupported":this._currentPreferenceOrderIndex+=1,this._currentPreferenceOrderIndex<this._preferenceOrder.length&&this.executeRequest();break;case"UnSupported_Browser":case"Insufficient_Memory":case"UnSupported_Url_Scheme":case"UnSupported_Method_Type":case"Url_Scheme_Missing":case"Url_Hostname_Missing":case"Method_Type_Missing":case"InvalidRequest":ie.debug("UNCEngine: FutureNotificationsManager: onError - Error encountered: ",e," Stopping Future Notification Fetch"),delete this._currentCommunicationHandler,this._shouldResume=!0;break;case"Unauthorized":pe.sendMessageToApplet("RefreshUserProfile",{},"UNCEngine"),this._shouldResume=!0}}},{key:"cancelRequest",value:function(){this._currentCommunicationHandler.cancelRequest()}},{key:"finalize",value:function(){delete this._currentCommunicationHandler}},{key:"sendAnalyticsIfCommunicationChannelClosed",value:function(){It.pushViaCCDConfig.shouldSwitchToLongPoll||this.shouldSendCommunicationChannelClosedAnalytics||(this.shouldSendCommunicationChannelClosedAnalytics=!0,_t.getInstance().sendCommunicationChannelClosedAnalytics())}}])&&Xn(t.prototype,n),i&&Xn(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Zn(e){return Zn="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},Zn(e)}function ei(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,ti(i.key),i)}}function ti(e){var t=function(e,t){if("object"!=Zn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Zn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zn(t)?t:String(t)}var ni=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"_handleNotificationPreferenceFetchResponse",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ie.debug("UNCEngine: NotificationPreferenceManager :: _handleNotificationPreferenceResponse ",e),pe.sendMessageToApplet("NotificationPreferenceFetched",e,je.CCDCONTAINER_JS)}},{key:"_handleNotificationPreferenceSetResponse",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ie.debug("UNCEngine: NotificationPreferenceManager :: _handleNotificationPreferenceSetResponse ",e),pe.sendMessageToApplet("NotificationPreferenceSet",e,je.CCDCONTAINER_JS)}},{key:"getPreference",value:function(e){ie.debug("UNCEngine: NotificationPreferenceManager :: getPreference data is ",e);var t={};if(t=Pt.createPreferencesGetRequest(e)){ie.debug("UNCEngine: NotificationPreferenceManager :: request to get notification preferences ",t.request),t.request.responseCallback=function(e){var t=JSON.parse(e);this._handleNotificationPreferenceFetchResponse(t)}.bind(this),t.request.errorCallback=function(e){var t={};t.error=e,this._handleNotificationPreferenceFetchResponse(t),ie.warn("UNCEngine: NotificationPreferenceManager: GetNotificationPreferences - Error Occured ",e)}.bind(this);var n=new ne(t.request);n.SendRequest(t.requestData),this.currentNetworkCommunicatorObj=n}else{ie.warn("UNCEngine: NotificationPreferenceManager :: getPreference http request creation failed");var i={error:{statusCode:"HTTP request creation failed",errorCode:"Failed to get http request"}};this._handleNotificationPreferenceFetchResponse(i)}}},{key:"setPreference",value:function(e){ie.debug("UNCEngine: NotificationPreferenceManager :: setPreference data is ",e);var t={};if(t=Pt.createPreferencesSetRequest(e)){ie.debug("UNCEngine: NotificationPreferenceManager :: request to set notification preferences ",t.request),t.request.responseCallback=function(e){var t=JSON.parse(e);this._handleNotificationPreferenceSetResponse(t)}.bind(this),t.request.errorCallback=function(e){var t={};t.error=e,this._handleNotificationPreferenceSetResponse(t),ie.error("UNCEngine: NotificationPreferenceManager :: SetPreferences - Error Occured ",e)}.bind(this);var n=new ne(t.request);n.SendRequest(t.requestData),this.currentNetworkCommunicatorObj=n}else{ie.warn("UNCEngine: NotificationPreferenceManager :: setPreference http request creation failed");var i={error:{statusCode:"HTTP request creation failed",errorCode:"Failed to get http request"}};this._handleNotificationPreferenceSetResponse(i)}}}],(n=null)&&ei(t.prototype,n),i&&ei(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ii=n(181),oi=n.n(ii);function ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ri(Object(n),!0).forEach((function(t){si(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function si(e,t,n){return(t=gi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ci(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,r,a,s=[],c=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||di(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function li(e){return li="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},li(e)}function ui(e,t,n){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var i=t.length;return pi(t,void 0!==n&&n<i?n:i)}return e(t,n)}function fi(e){return function(e){if(Array.isArray(e))return pi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||di(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function di(e,t){if(e){if("string"==typeof e)return pi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pi(e,t):void 0}}function pi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function hi(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,gi(i.key),i)}}function gi(e){var t=function(e,t){if("object"!=li(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=li(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==li(t)?t:String(t)}function mi(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var yi=0;function vi(e){return"__private_"+yi+++"_"+e}var bi=n(9846).v4,_i=vi("addNotificationPayload"),Ci=vi("sendNotification"),Si=vi("fetchNotificationPayloadFromOdin"),Ei=vi("sanitizeOdinContent"),Ni=vi("extractPayload"),Oi=vi("resolveLocaleInUrl"),Ti=vi("sendANSNotification"),Ii=vi("sendLocalNotification");function wi(e){this.localHistoricalNotificationList.push(e)}function Ai(e,t){!e||"string"==typeof e&&""===e.trim()?ie.warn("AddNotificationManager:sendNotification Empty notificationPayload after processing"):"local"in t&&("string"==typeof t.local&&"true"===t.local.toLowerCase()||!0===t.local)?(ie.info("AddNotificationManager:sendNotification: Sending notification via local workflow"),mi(this,Ii)[Ii](e,t)):(ie.info("AddNotificationManager:sendNotification: Sending notification via ANS"),mi(this,Ti)[Ti](e,t))}function ki(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return n>3?(ie.error("AddNotificationManager:fetchNotificationPayloadFromOdin: Redirect loop detected. Aborting."),Promise.resolve("")):(ie.info("AddNotificationManager:fetchNotificationPayloadFromOdin: Fetching from: ".concat(e)),fetch(e,{method:"GET",headers:{"Content-Type":"application/json"},redirect:"manual"}).then((function(e){if(302===e.status){var i=e.headers.get("Location");if(i)return ie.warn("Redirected to: ".concat(i)),mi(t,Si)[Si](i,n+1);throw new Error("302 with no Location header")}return e})).then((function(e){if(!e.ok)throw new Error("Fetch failed: ".concat(e.status));return e.json()})).then((function(e){return e&&Object.keys(e).length>0?e:(ie.warn("Empty response from Odin"),"")})).catch((function(e){return ie.error("Fetch failed:",e),""})))}function Di(e){var t=this;return Array.isArray(e)?e.map((function(e){return mi(t,Ei)[Ei](e)})).filter((function(e){return void 0!==e})):"object"===li(e)&&null!==e?Object.entries(e).reduce((function(e,n){var i=ci(n,2),o=i[0],r=i[1];if(!o.startsWith("_")){var a=mi(t,Ei)[Ei](r);void 0!==a&&(e[o]=a)}return e}),{}):e}function Pi(e){var t;return(null==e||null===(t=e.data)||void 0===t||null===(t=t.dtnWithoutTemplateByPath)||void 0===t?void 0:t.item)||{}}function Ri(e,t){if(e.includes("{locale}")){var n=encodeURIComponent(t);return e.replace("{locale}",n)}return e}function xi(e,t){ie.debug("AddNotificationManager: sendANSNotification: ",e,t);var n=Date.now();if("schedule_at"in t)n=1e3*parseInt(t.schedule_at,10);else if("schedule_after"in t){n+=1e3*parseInt(t.schedule_after,10)}var i=0;t.expiryTimestamp&&(i=parseInt(t.expiryTimestamp,10));var o={entry:[{"key-name":"expiry-timestamp","key-value":1e3*i}]},r={};r.data={target:"server",content:JSON.stringify({notifications:{notification:[ai({"user-id":t.userID,type:t.type,"sub-type":t.subtype,timestamp:n,state:"NEW",payload:"string"!=typeof e?JSON.stringify(e):e},t.expiryTimestamp?{metadata:o}:{})]}}),namespace:"ccd-unc-".concat(oi().generate())};var a=new un;r.shouldRetryRequest=!0,a.postNotifications(r)}function Fi(e,t){var n=this;ie.debug("AddNotificationManager: sendLocalNotification: ",e,t);var i=Date.now();if("schedule_at"in t)i=1e3*parseInt(t.schedule_at,10);else if("schedule_after"in t){i+=1e3*parseInt(t.schedule_after,10)}var o={"notification-id":bi(),"user-id":t.userID,type:t.type,"sub-type":t.subtype,timestamp:i,"created-timestamp":i,"delivery-type":"UNICAST","sort-timestamp":i,state:"NEW",payload:"string"==typeof e?e:JSON.stringify(e)},r=function(){It&&(It.localBadgeCount+=1);var e={value:gt()};document.getElementById("notificationIconOnEngine")||(pe.sendMessageToApplet("UnReadNotificationsCount",e,"UNCWidget"),pe.sendMessageToApplet("NewNotificationsNamespace",{notifications:{notification:[o]}},"UNCWidget")),n.localHistoricalNotificationList.push(o)},a=i-Date.now();a>0?(ie.debug("AddNotificationManager: sendLocalNotification: Notification scheduled after ".concat(a,"ms")),setTimeout(r,a)):r()}var Li=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Object.defineProperty(this,Ii,{value:Fi}),Object.defineProperty(this,Ti,{value:xi}),Object.defineProperty(this,Oi,{value:Ri}),Object.defineProperty(this,Ni,{value:Pi}),Object.defineProperty(this,Ei,{value:Di}),Object.defineProperty(this,Si,{value:ki}),Object.defineProperty(this,Ci,{value:Ai}),Object.defineProperty(this,_i,{value:wi}),this.localHistoricalNotificationList=[]}var t,n,i;return t=e,(n=[{key:"getLocalHistoricalNotificationList",value:function(){return JSON.stringify({notifications:{notification:ui(fi,this.localHistoricalNotificationList)}})}},{key:"publishNotifications",value:function(e){var t=this;ie.debug("AddNotificationManager: publishNotifications: ",e);try{if(!(e&&e.type&&e.subtype&&e.userID))return void ie.error("AddNotificationManager:publishNotifications Skipped: Invalid msgData");var n=null;if(e.contentURL&&""!==e.contentURL.trim()){var i=(null==It?void 0:It.locale)||"en_US",o=mi(this,Oi)[Oi](e.contentURL,i);mi(this,Si)[Si](o).then((function(i){var o=mi(t,Ei)[Ei](i);n=mi(t,Ni)[Ni](o),mi(t,Ci)[Ci](n,e)}))}else e.payload&&""!==e.payload.trim()?(n=e.payload,mi(this,Ci)[Ci](n,e)):ie.warn("AddNotificationManager:publishNotifications No payload or contentURL provided")}catch(e){ie.error("AddNotificationManager:publishNotifications Unexpected error:",e)}}}])&&hi(t.prototype,n),i&&hi(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}());function Ui(e){return Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ui(e)}function ji(){return ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ji.apply(this,arguments)}function Mi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wi(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,qi(i.key),i)}}function Hi(e,t,n){return t&&Wi(e.prototype,t),n&&Wi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qi(e){var t=function(e,t){if("object"!=Ui(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Ui(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ui(t)?t:String(t)}var Bi=0,Vi=1,Gi=2,zi=3,Ki=4,Yi=5,Xi=6,Ji=7,$i=function(){function e(t){Mi(this,e),this._STATE=Bi,this._ccxCore=t,pe.setClientCallback(this._ccxCore.handleMessage.bind(this._ccxCore))}return Hi(e,[{key:"_validateContext",value:function(){return!!this._context}},{key:"initContext",value:function(e){this._context=e,this._validateContext()?Tt.initialize(this._context):ie.error("UNCEngine: EngineManager: initContext: Context validation failed.....")}},{key:"setState",value:function(e){this._STATE=e,this.executeStateMachine(),ie.debug("UNCEngine: EngineManager: setState - ",this._STATE)}},{key:"getState",value:function(){return this._STATE}},{key:"getFutureNotificationsObj",value:function(){return this._futureNotificationsObj}},{key:"addRequestInQueue",value:function(e){this.requestQueue||(this.requestQueue=[]);var t=ji({},e);t.targetID="UNCEngine",t.targetType="Applet",this.requestQueue.push(t)}},{key:"executeStateMachine",value:function(){var e=this;setTimeout((function(){switch(e._STATE){case Vi:return e._validateContext()?(ie.debug("UNCEngine: EngineManager: executeStateMachine: __INIT__ - GlobalData initialized: ",It),void e.setState(Gi)):void ie.error("UNCEngine: EngineManager: executeStateMachine: __INIT__ - Context validation failed.....");case Gi:var t,n=Pt.createNotificationGetRequest(wt.serverShortPollUri);return n?(n.request.responseCallback=function(e){var t=JSON.parse(e);Object.prototype.hasOwnProperty.call(t,je.ConfigurationKey)&&wt.setConfigParams(t[je.ConfigurationKey]),pe.broadcastServerTimestamp(t["server-timestamp"]),It.badgeCount=t["unread-count"],this.setState(zi)}.bind(e),n.request.errorCallback=function(e){var i=this;if((ie.error("Network error: ",e),"Too_Many_Requests"===e.errorCode&&t)&&Lt.retryRequest(e,t,n.requestData))return;try{this._context&&this._context.onError&&"function"==typeof this._context.onError&&setTimeout((function(){i._context.onError()}),0)}catch(e){ie.warn("UNCEngine: EngineManager: executeStateMachine: __LOAD_UI__ - Some exception occured while calling host callback",e)}this.setState(zi)}.bind(e),void(t=new ne(n.request)).SendRequest(n.requestData)):(ie.warn("UNCEngine: EngineManager: executeStateMachine: __SYNC_TIMESTAMP__ - Unable to create httpRequest. Either AccessToken or AppID is not valid"),void e.setState(zi));case zi:if(ht())e._ccxCore.handleMessage({targetType:"Applet",targetID:"UNCWidget",message:"Init",data:{}});else if(It.surface&&It.surface.toLowerCase()!==je.Surface.DESKTOP)if(qe.sendAnalyticsForEngineInit(),It.optimizations&&It.optimizations.includes(je.Optimizations.DYNAMIC_LOADING)){var i=document.querySelector(e._context.uiConfig.el);if(!i)return;pt.loadwidget(e._ccxCore,e._context,i)}else e._ccxCore.handleMessage({targetType:"Applet",targetID:"UNCWidget",message:"Init",data:{}});else Ke.sendAnalyticsForEngineInit();return void(It.serverTimestampOnLaunch?e.setState(Yi):e.setState(Xi));case Ki:var o=document.querySelector(e._context.uiConfig.el);return pt.loadErrorScreen(e._ccxCore,e._context,o),void e.setState(Xi);case Yi:return e._futureNotificationsObj||(ht()?e._futureNotificationsObj=new Qn(["pushViaCCD","webPush","poll"]):It&&It.surface&&It.surface.toLowerCase()===je.Surface.DESKTOP?e._futureNotificationsObj=new Qn(["devicePush","poll"]):e._futureNotificationsObj=new Qn(["webPush","poll"]),e._futureNotificationsObj.executeRequest()),void e.setState(Xi);case Xi:if(e._futureNotificationsObj&&e._futureNotificationsObj.resumeRequest(),e.requestQueue){for(var r=0;r<e.requestQueue.length;r+=1)e._ccxCore.handleMessage(e.requestQueue[r]);delete e.requestQueue,e.requestQueue=null}e.setState(Ji)}}),1)}}]),e}(),Qi=function(){function e(){Mi(this,e)}return Hi(e,[{key:"initialize",value:function(e){this._ccxCore=e.hostObject,this._manager||(this._manager=new $i(this._ccxCore))}},{key:"handleMessage",value:function(e){var t=e.message;if("InitContext"!==t&&"UpdateUserProfile"!==t&&"RefreshUserProfile"!==t&&this._manager.getState()<zi)this._manager.addRequestInQueue(e);else switch(t){case"InitContext":var n=e.data;return ie.debug("UNCEngine: handleMessage: Initializing UNCEngine context: ",n),this._manager.initContext(n),void this._manager.setState(Vi);case"RefreshUserProfile":return void(this._manager.getState()!==Bi&&(ie.debug("UNCEngine: handleMessage: RefreshUserProfile"),pe.sendMessageToParent("RefreshUserProfile"),this._manager.setState(Bi)));case"UpdateUserProfile":return ie.debug("UNCEngine: handleMessage: UpdateUserProfile"),void this._manager.setState(Xi);case"RegisterObservers":return ie.debug("UNCEngine: handleMessage: Registering observers - ",e),!!pe.registerObserver(e);case"UnregisterObservers":return ie.debug("UNCEngine: handleMessage: Unregistering observers - ",e),!!pe.unregisterObserver(e);case"RegisterClientObservers":return ie.debug("UNCEngine: handleMessage: RegisteringClientObservers - ",e),!!pe.registerClientObservers(e);case"UnregisterClientObservers":return ie.debug("UNCEngine: handleMessage: UnregisteringClientObservers - ",e),!!pe.unregisterClientObservers(e);case"GetNotifications":ie.debug("UNCEngine: handleMessage: GetNotifications - ",e);var i=new un;return e.shouldRetryRequest=!0,i.getNotifications(e);case"PostNotifications":ie.debug("UNCEngine: handleMessage: PostNotifications - ",e);var o=new un;return e.shouldRetryRequest=!0,o.postNotifications(e);case"UpdateNotifications":return ie.debug("UNCEngine: handleMessage: UpdateNotifications - ",e),(new un).updateNotifications(e);case"ClearBadge":return ie.debug("UNCEngine: handleMessage: ClearBadge"),(new un).clearBadge(e);case"GetConfigurationSettings":return ie.debug("UNCEngine: handleMessage: GetConfigurationSettings"),void wt.serveNotificationConfigurationRequest(e);case"UpdateAnalyticsConfig":if(ie.debug("UNCEngine: handleMessage: UpdateAnalyticsConfig"),void 0!==e.data.analyticsEnabled){var r="true"===e.data.analyticsEnabled.toString().toLowerCase();r?(It.analyticsEnabled=r,qe.sendAnalyticsForUserPreferenceForAnalytics(!0,"update")):qe.sendAnalyticsForUserPreferenceForAnalytics(!1,"update"),pe.sendUpdateAnalyticsConfigToWidget(e.data)}return;case"LoadErrorScreen":return ie.debug("UNCEngine: handleMessage: LoadErrorScreen"),void this._manager.setState(Ki);case"InitLongPoll":return ie.debug("UNCEngine: handleMessage: InitLongPoll"),void this._manager.setState(Yi);case"UpdateMachineDeviceToken":ie.debug("UNCEngine: handleMessage: UpdateMachineDeviceToken");var a=e.data.machineDeviceToken;if(a){if(It.machineDeviceToken=a,!It.isDevicePushEnabled)return void ie.debug("UNCEngine: handleMessage: UpdateMachineDeviceToken device push not enabled");this._manager.getFutureNotificationsObj()&&(ie.debug("UNCEngine: handleMessage: UpdateMachineDeviceToken going to check if device on longpoll"),this._manager.getFutureNotificationsObj().isCurrentCommunicationHandlerDevicePush()?this._manager.getFutureNotificationsObj().registerDevice():this._manager.getFutureNotificationsObj().switchToDevicePush())}return;case"DisableDevicePush":return ie.debug("UNCEngine: handleMessage: DisableDevicePush"),It.isDevicePushEnabled=!1,e.data.pushDeviceID&&(It.pushDeviceID=e.data.pushDeviceID),void(this._manager.getFutureNotificationsObj()&&this._manager.getFutureNotificationsObj().switchToLongPoll());case"EnableDevicePush":return ie.debug("UNCEngine: handleMessage: ",t),e.data.pushDeviceID&&(It.pushDeviceID=e.data.pushDeviceID),e.data.machineDeviceToken&&(ie.debug("UNCEngine: handleMessage: MachineDeviceToken got machineDeviceToken"),It.machineDeviceToken===e.data.machineDeviceToken?ie.debug("UNCEngine: handleMessage: MachineDeviceToken device token is same as previous one ignoring this msg"):It.machineDeviceToken=e.data.machineDeviceToken),It.machineDeviceToken||"macos"!==It.platform?(It.isDevicePushEnabled=!0,e.data.ChannelURI&&(ie.info("UNCEngine: EnableDevicePush ChannelURI received",e.data.ChannelURI),It.context.ChannelURInew=e.data.ChannelURI,ie.info("UNCEngine: GlobalData after is ",It)),void(this._manager.getFutureNotificationsObj()&&this._manager.getFutureNotificationsObj().switchToDevicePush())):void ie.debug("UNCEngine: handleMessage: MachineDeviceToken is empty");case"NetworkIsOnline":case"FetchNotifications":return ie.debug("UNCEngine: handleMessage: ",t),void(this._manager.getFutureNotificationsObj()&&(this._manager.getFutureNotificationsObj().fetchDevicePushNotifications(e.data),this._manager.getFutureNotificationsObj().forceNotificationsFetchIfLongpoll()));case"ForceFetchNotificationForPush":return ie.debug("UNCEngine: handleMessage: ForceFetchNotificationForPush"),void(this._manager.getFutureNotificationsObj()&&this._manager.getFutureNotificationsObj().fetchDevicePushNotifications(e.data));case"SignedOut":return ie.debug("UNCEngine: handleMessage: SignedOut"),void(this._manager.getFutureNotificationsObj()&&this._manager.getFutureNotificationsObj().finalize());case"SigningOut":return ie.debug("UNCEngine: handleMessage: SigningOut"),void(this._manager.getFutureNotificationsObj()&&this._manager.getFutureNotificationsObj().cancelRequest());case"GetNotificationPreference":return ie.info("UNCEngine: handleMessage: GetNotificationPreference"),void ni.getPreference(e.data);case"SetNotificationPreference":return ie.info("UNCEngine: handleMessage: SetNotificationPreference"),void ni.setPreference(e.data);case"ThemeChange":ie.info("UNCEngine: handleMessage: updating theme",e),e.data.theme&&(It.theme=e.data.theme);var s=document.getElementById("notificationIconOnEngine");if(s){var c=new CustomEvent("themeChangeEvent",{detail:{theme:It.theme}});s.dispatchEvent(c)}return;case"cleanUp":return void this._manager.getFutureNotificationsObj().cancelRequest();case"GetUnReadCount":ie.info("UNCEngine: handleMessage: GetUnReadCount",e);var l={};return l.value=It.badgeCount,void pe.sendMessageToApplet("UnReadNotificationsCount",l,"UNCWidget");case"RenderEngineBellIcon":return ie.info("UNCEngine: handleMessage: updating RenderEngineBellIcon",e),this._ccxCore.handleMessage({targetType:"Applet",targetID:"UNCWidget",message:"cleanupWidget",data:this._manager._context.uiConfig.el}),void pt.loadwidget(this._ccxCore,this._manager._context,document.querySelector(this._manager._context.uiConfig.el),!0);case"AddNotification":return ie.debug("UNCEngine: handleMessage: AddNotification ",e),void Li.publishNotifications(e.data);case"ResetLocalBadgeCount":return ie.debug("UNCEngine: handleMessage: ResetLocalBadgeCount - Resetting local badge count"),void(It.localBadgeCount=0);default:ie.debug("UNCEngine: handleMessage: default - Triggering default action.....")}}},{key:"finalize",value:function(e){}}]),e}();function Zi(e){return Zi="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},Zi(e)}function eo(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,to(i.key),i)}}function to(e){var t=function(e,t){if("object"!=Zi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Zi(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zi(t)?t:String(t)}window.UNCEngine=function(){return new Qi};var no=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.AccountType="",this.UserID="",this.Email="",this.DisplayName="",this.FirstName="",this.LastName="",this.Name="",this.CountryCode="",t.userGuid?this.UserID=t.userGuid:this.UserID=t.userId,t.accessToken?this.AccessToken=t.accessToken:this.AccessToken=t.access_token,t.account_type&&(this.AccountType=t.account_type),t.email&&(this.Email=t.email),t.displayname&&(this.DisplayName=t.displayname),t.first_name&&(this.FirstName=t.first_name),t.last_name&&(this.LastName=t.last_name),t.name&&(this.Name=t.name),t.countryCode&&(this.CountryCode=t.countryCode)}var t,n,i;return t=e,i=[{key:"sanitizeUserProfile",value:function(e){return!(!e.access_token&&!e.accessToken||!e.userId&&!e.userGuid)}}],(n=null)&&eo(t.prototype,n),i&&eo(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),io={UNCWidget:"UNCWidget",NOT_AVAILABLE:"Not_Available",ALREADY_FETCHING:"Already_Fetching",CALLING_FETCH:"Calling_Fetch",START_24HR_REFRESH:"Start24HrWorkflow",WELCOME_SCREEN:"WelcomeScreen",EMPTY_SCREEN_WITH_FETCH_MORE_BUTTON:"EmptyScreenWithFetchMoreButton",EMPTY_SCREEN_WITH_NO_MORE_NOTIFICATIONS:"EmptyScreenWithNoMoreNotifications",SOME_NOTIFICATIONS_AVAILABLE_SCREEN:"SomeNotificationsAvailableScreen",SKELETON_SCREEN:"SkeletonScreen",MESSAGE_INIT:"Init",MESSAGE_NEW_Notifications:"NewNotificationsNamespace",MESSAGE_HISTORICAL_Notifications:"HistoricalNotificationsNamespace",MESSAGE_PINNED_HISTORICAL_Notifications:"HistoricalPinnedNotificationsNamespace",MESSAGE_TIMESTAMP_DRIFT:"TimestampDrift",MESSAGE_BADGE_COUNT:"UnReadNotificationsCount",MESSAGE_IS_ADCS_RUNNING:"IsADCSRunning",MESSAGE_HIDE_NOTIFICATION_WIDGET_TRIGGERED:"HideNotificationWidget",MESSAGE_SHOW_NOTIFICATION_WIDGET_TRIGGERED:"ShowNotificationWidget",MESSAGE_SHOW_NOTIFICATION_WIDGET_WITHOUT_DELAY_TRIGGERED:"ShowNotificationWidgetWithoutDelay",MESSAGE_SERVER_CONFIGURATIONS:"ServerConfigurations",MESSAGE_UPDATE_ANALYTICS_CONFIG:"UpdateAnalyticsConfig",MESSAGE_UPDATE_NOTIFICATION_CONTENT:"UpdateNotificationContent",MESSAGE_HANDLE_USER_CONTEXT_DATA:"UserContextData",MESSAGE_IS_CCD_PRESENT:"IsCCDPresent",PINNED_HISTORICAL_NOTIFICATIONS_FETCH_PERIOD:5e3,NOTIFICATIONS_SCROLL_UP_DURATION:300,SCROLL_UP_BUTTON_OFFSET:40,REGISTER_OBSERVER:"RegisterObservers",UNREGISTER_OBSERVER:"UnregisterObservers",GET_NOTIFICATIONS_BY_TIME:"GetNotifications",UPDATE_NOTIFICATIONS_DATA:"UpdateNotifications",GET_CONFIGURATIONS_FOR_REQUESTS:"GetConfigurationSettings",CLEAR_BADGE:"ClearBadge",PANEL_SWITCH_REQUEST:"ShowTab",HANDLE_ROUTE_REQUEST:"RouteToPath",HANDLE_DEEPLINK_REQUEST:"DeepLinkRequest",IMS_TOKEN_STRING:"%3C%25imsAccessToken%25%3E",UPDATE_BADGE_COUNT:"UpdateBadge",RESET_LOCAL_BADGE_COUNT:"ResetLocalBadgeCount",GET_USER_PROFILE:"GetUserProfile",OPEN_URL_REQUEST:"OpenURL",CHANGE_NOTIFICATION_ICON:"ChangeNotificationIcon",UNC_WIDGET_INITIALIZED:"UNCWidgetInitialized",CCUI_EXCEPTION_HANDLER:"CCUiExceptionHandler",RENDER_ENGINE_BELL_ICON:"RenderEngineBellIcon",GET_UNREAD_COUNT:"GetUnReadCount",SHOW_ALL_NOTIFICATIONS:"show-all-notifications",LOAD_MORE_NOTIFICATIONS:"load-more-notifications",PRIMARY_CLICKED:"PrimaryClicked",SECONDARY_CLICKED:"SecondaryClicked",DISMISS_CLICKED:"DismissClicked",MARK_AS_READ_CLICKED:"MarkRead",MARK_AS_UNREAD_CLICKED:"MarkUnread",UNPIN_CLICKED:"UnpinClicked",OPEN_IN_NEW_TAB:"OpenInNewTab",HANDLE_NOTIFICATION_CLICK:"HandleNotificationClick",DEEPLINK_WORKFLOW_CLICKED:"DeepLinkWorkflowClicked",Announcement_Notifications_Section:"AnnouncementNotificationsSection",Pinned_Notifications_Section:"PinnedNotificationsSection",Normal_Notifications_Section:"NormalNotificationsSection",Class_Contrast:"contrast",Class_PinnedContrast:"pinnedContrast",Class_AnnouncementContrast:"announcementContrast",Class_Hidden:"hidden",Announcement_Notifications_Default_Expiry_In_Days:"14",WIDGET_SCROLL:"scroll",WIDGET_OPEN:"open",WIDGET_CLOSE:"close",WIDGET_MOUSE_OVER:"mouse_over",WIDGET_MOUSE_OUT:"mouse_out",MAX_SETIMEOUT_IN_SECOND:2147483,SEVEN_DAYS_IN_SECOND:604800,SUPPORTED_VIEW_TYPES:["simpleTimeline1","inviteTimeline","inviteCommentTimeline","commentTimeline","multipleIconsTimeline","commentCTATimeline","commentActionTimeline","eventTimeline"],SUPPORTED_THEME_VALUES:["light","lightest","dark","darkest","express"],DEFAULT_THEME:"light",EXPRESS_THEME:"express",ENVIRONMENTS:{PROD:"prod",STAGE:"stage",DEV:"dev",LOCAL:"local",QE:"qe"},DeviceType:{MOBILE:"Mobile"},SOURCE_ID:"UNCWidget",DEFAULT_TARGET_TYPE:"Applet",DEFAULT_TARGET_ID:"UNCEngine",CLIENT_TARGET_TYPE:"Parent",ANALYTICS_DESKTOP_TARGET_ID:"AnalyticsCoreExt",COREEXT_TARGET_TYPE:"CoreExt",CONTAINER_BL_ID:"C3Container_BL",CONTAINER_UI_ID:"C3Container_UINative",SURFACE_DESKTOP:"DESKTOP",SURFACE_WEB:"WEB",SURFACE_MOBILE:"MOBILE",Event_Section:"event",Source_Section:"source",Content_Section:"content",UI_Section:"ui",Environment_Section:"env",Consumer_Section:"consumer",User_Section:"user",Transaction_Section:"trn",Experiment_Section:"exp",Component_Section:"env.com",Custom_Section:"custom",Consumer_Supported_Keys:["client_id","name","version","platform","app_store_id"],Component_Supported_Keys:["name","version"],Event_Supported_Keys:["visitor_guid"],Evidon_Supported_Keys:["name","version"],EVERYTHING:"everything",COMMENT_TIMELINE:"commentTimeline",COMMENT_CTA_TIMELINE:"commentCTATimeline",locales:{supportedLocales:["ar_AE","bg_BG","bn_IN","cs_CZ","cy_GB","da_DK","de_DE","el_GR","en_US","es_ES","et_EE","fi_FI","fil_PH","fr_FR","he_IL","hi_IN","hu_HU","id_ID","it_IT","ja_JP","ko_KR","lt_LT","lv_LV","ms_MY","nb_NO","nl_NL","pl_PL","pt_BR","pt_PT","ro_RO","ru_RU","sk_SK","sl_SI","sv_SE","ta_IN","th_TH","tr_TR","uk_UA","vi_VN","zh_CN","zh_TW"],fallbackLocales:{ar_EG:"ar_AE",ar_KW:"ar_AE",ar_MENA:"ar_AE",ar_QA:"ar_AE",ar_SA:"ar_AE",de_AT:"de_DE",de_CH:"de_DE",de_LU:"de_DE",en_AE:"en_US",en_AFRICA:"en_US",en_AU:"en_US",en_BE:"en_US",en_CA:"en_US",en_CIS:"en_US",en_EG:"en_US",en_GB:"en_US",en_GR:"en_US",en_HK:"en_US",en_ID:"en_US",en_IE:"en_US",en_IL:"en_US",en_IN:"en_US",en_KW:"en_US",en_LU:"en_US",en_MENA:"en_US",en_MY:"en_US",en_NG:"en_US",en_NZ:"en_US",en_PH:"en_US",en_QA:"en_US",en_SA:"en_US",en_SG:"en_US",en_TH:"en_US",en_VN:"en_US",en_ZA:"en_US",es_AR:"es_ES",es_CL:"es_ES",es_CO:"es_ES",es_CR:"es_ES",es_EC:"es_ES",es_GT:"es_ES",es_LA:"es_ES",es_MX:"es_ES",es_PE:"es_ES",es_PR:"es_ES",fr_BE:"fr_FR",fr_CA:"fr_FR",fr_CH:"fr_FR",fr_LU:"fr_FR",it_CH:"it_IT",nl_BE:"nl_NL",ru_CIS:"ru_RU",zh_HK:"zh_TW"},rtlLocales:["ar_AE","he_IL"],defaultLocale:"en_US"},Optimizations:{DYNAMIC_LOADING:"dynamicLoading"},displayStrings:{LOC_JUST_NOW:"just now",LOC_ONE_MINUTE_AGO:"a minute ago",LOC_MULTIPLE_MINUTES_AGO:"{0} minutes ago",LOC_ONE_HOUR_AGO:"an hour ago",LOC_MULTIPLE_HOURS_AGO:"{0} hours ago",LOC_ONE_DAY_AGO:"1 day ago",LOC_MULTIPLE_DAYS_AGO:"{0} days ago",LOC_ONE_WEEK_AGO:"1 week ago",LOC_MULTIPLE_WEEKS_AGO:"{0} weeks ago",LOC_ONE_MONTH_AGO:"1 month ago",LOC_MULTIPLE_MONTHS_AGO:"{0} months ago",LOC_ONE_YEAR_AGO:"1 year ago",LOC_MULTIPLE_YEARS_AGO:"{0} years ago",LOC_ACCEPT_BUTTON_TEXT:"Accept",LOC_REJECT_BUTTON_TEXT:"Decline",LOC_VIEW_BUTTON_TEXT:"View",LOC_ACCEPTED_TEXT:"Accepted",LOC_REJECTED_TEXT:"Declined",LOC_ONE_NEW_NOTIFICATION_HEADER:"1 Unread Notification",LOC_MULTIPLE_NOTIFICATIONS_HEADER:"{0} Unread Notifications",LOC_SHOW_MORE_REQUESTS:"SHOW MORE REQUESTS",LOC_DISMISS:"Dismiss this notification",LOC_UNPIN:"Unpin",LOC_REQUEST_DISMISSED:"Your request has been dismissed.",LOC_MARK_AS_READ:"Mark as read",LOC_MARK_AS_UNREAD:"Mark as unread",LOC_DATE_SUBCONTENT_HEADER:"Due By:",LOC_UNDO:"Undo",LOC_REQUESTS:"REQUESTS",LOC_NOTIFICATIONS:"NOTIFICATIONS",LOC_NOTIFICATIONS_SMALL:"Notifications",LOC_WELCOME_SCREEN_HEADER:"Your notifications will appear here",LOC_WELCOME_SCREEN_DETAILS:"Receive important information about our products and services, your collaboration with fellow users, and other updates relevant to you.",LOC_MORE_ACTIONS:"More actions",LOC_EMAIL_FROM_SUBCONTENT_HEADER:"From:",LOC_IMPORTANT:"Important",LOC_NEW:"New",LOC_TODAY:"Today",LOC_EARLIER:"Earlier",LOC_EVERYTHING:"Everything",LOC_NO_NOTIFICATIONS_TEXT:"Activity and notifications will appear here.",LOC_LOAD_MORE_NOTIFICATIONS:"Load more notifications",LOC_NO_MATCHING_NOTIFICATIONS:"No matching notifications could be found.",LOC_SHOW_ALL_NOTIFICATIONS:"Show all notifications",LOC_NOTIFICATION_DISMISSED:"Notification dismissed.",LOC_SHOW:"Show",LOC_ONE_NEW_NOTIFICATION:"1 new notification",LOC_MULTIPLE_NEW_NOTIFICATION:"{0} new notifications",LOC_UPCOMING:"Upcoming",LOC_LIVE:"Live",LOC_ON_DEMAND:"On-demand"},cacheMessages:{INIT:"Init",DEFAULT:"Default"}},oo="UNCWidgetPopOver",ro={TYPE_BEHANCE:"com.adobe.behance.v1",TYPE_FOLDER_COLLAB:"com.adobe.stormcloud.v1",TYPE_CUSTOM_TIMELINE:"com.adobe.accc.generic.v1",TYPE_DESIGN_LIBRARY:"com.adobe.designlibrary.v1",TYPE_ANYWHERE_PRODUCTION:"com.adobe.anywhere.production.v1",TYPE_SPARK:"com.adobe.spark.v1",SUBTYPE_BEHANCE_INVITATION_FEEDBACK_CIRCLE:"invitation.feedback.circle",SUBTYPE_BEHANCE_INVITATION_COOWN_PROJECT:"invitation.coown.project",SUBTYPE_BEHANCE_INVITATION_COOWN_COLLECTION:"invitation.coown.collection",SUBTYPE_BEHANCE_NOTIFICATION_PROJECT_APPRECIATED:"notification.project.appreciated",SUBTYPE_BEHANCE_NOTIFICATION_PROJECT_COMMENT:"notification.project.comment",SUBTYPE_BEHANCE_NOTIFICATION_PROJECT_COLLECTION_ADD:"notification.project.collection.add",SUBTYPE_BEHANCE_NOTIFICATION_WIP_COMMENT:"notification.wip.comment",SUBTYPE_BEHANCE_NOTIFICATION_COLLECTION_FOLLOWER:"notification.collection.follower",SUBTYPE_BEHANCE_NOTIFICATION_USER_FOLLOWER:"notification.user.follower",SUBTYPE_BEHANCE_NOTIFICATION_USER_SOCIAL_FRIEND_JOIN:"notification.user.social.friend.join",SUBTYPE_FOLDER_COLLAB_INVITATION_RECEIVE:"sharing.invite",SUBTYPE_FOLDER_COLLAB_INVITATION_ACCEPT_SELF:"sharing.invite.accept.self",SUBTYPE_FOLDER_COLLAB_INVITATION_ACCEPT_OTHER:"sharing.invite.accept.other",SUBTYPE_FOLDER_COLLAB_NOTIFICATION_ASSET_COMMENT:"notification.asset.comment",SUBTYPE_FOLDER_COLLAB_INVITATION_UPDATE_ASSESS:"sharing.collaboration.updaterole",SUBTYPE_DESIGN_LIBRARY_INVITATION_RECEIVE:"sharing.invite",SUBTYPE_DESIGN_LIBRARY_INVITATION_ACCEPT_SELF:"sharing.invite.accept.self",SUBTYPE_DESIGN_LIBRARY_INVITATION_ACCEPT_OTHER:"sharing.invite.accept.other",SUBTYPE_DESIGN_LIBRARY_INVITATION_UPDATE_ASSESS:"sharing.collaboration.updaterole",SUBTYPE_ANYWHERE_PRODUCTION_INVITATION_RECEIVE:"sharing.invite",SUBTYPE_REDHAWK_COMMENT:"com.adobe.redhawk.comment",SUBTYPE_REDHAWK_COMMENT_ADD:"com.adobe.redhawk.comment_add",SUBTYPE_REDHAWK_COMMENT_DELETE:"com.adobe.redhawk.comment_delete",SUBTYPE_REDHAWK_COMMENT_MODIFY:"com.adobe.redhawk.comment_modify",SUBTYPE_REDHAWK_COMMENT_REPLY:"com.adobe.redhawk.comment_reply",SUBTYPE_REDHAWK_COMMENT_RESOLVE:"com.adobe.redhawk.comment_resolve",SUBTYPE_SPARK_INVITATION_RECEIVE:"sharing.invite",HEADER_AUTHORIZATION:"Authorization",PINNED_DEFAULT_VIEW_SIZE:3,TIMESTAMP_KEY:"sort-timestamp",DEFAULT_TARGET_CLIENT_ID:"CreativeCloudWeb1",DEFAULT_TARGET_SCOPE:"openid,creative_cloud,read_organizations,additional_info.screen_name,additional_info.secondary_email",NOTIFICATION_STATE_NEW:"NEW",NOTIFICATION_STATE_READ:"READ",NOTIFICATION_STATE_UNREAD:"UNREAD",NOTIFICATION_STATE_ACCEPT_COMPLETE:"ACCEPTCOMPLETE",NOTIFICATION_STATE_REJECT_COMPLETE:"REJECTCOMPLETE",NOTIFICATION_STATE_EXPIRED:"EXPIRED",NOTIFICATION_STATE_REMOVE:"REMOVE",NOTIFICATION_STATE_PROGRESS:"PROGRESS",NOTIFICATION_STATE_DISMISSED:"DISMISS",EVENT_TIMELINE:"eventTimeline"};function ao(e,t,n){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var i=t.length;return co(t,void 0!==n&&n<i?n:i)}return e(t,n)}function so(e){return function(e){if(Array.isArray(e))return co(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return co(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return co(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function co(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function lo(e){return lo="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},lo(e)}function uo(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,fo(i.key),i)}}function fo(e){var t=function(e,t){if("object"!=lo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=lo(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lo(t)?t:String(t)}var po=function(){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.getLocalizedDisplayStrings=function(){return t.localizedDisplayStrings||(t.localizedDisplayStrings=JSON.parse(JSON.stringify(t.localizedStrings||t.displayData))),t.localizedDisplayStrings},this.timeStampDrift=0,this.deviceLocale="en_US",this.displayData=io.displayStrings,this.isHiDpi=!1,this.ccAssetsServerURL="https://cc-api-storage.adobe.io",this.stageCCAssetsServerURL="https://cc-api-storage-stage.adobe.io",this.env="prod",this.isWidgetOpen=!1,this.badgeCount=0,this.appName="Creative Cloud",this.imsClientID="",this.appID="",this.imagePathMap={},this.surface="WEB",this.showWidgetCrossButton=!1,this.tabIndex=0,this.hostCallBackFn=null,this.notificationUpdateCallbackFn=null,this.onWidgetOpenCloseCallbackFn=null,this.deviceType="",this.ccdGlobalStore=null,this.customNotificationIcon=null,this.searchTypeSubtypes=["".concat(ro.TYPE_BEHANCE,"__").concat(ro.SUBTYPE_BEHANCE_INVITATION_COOWN_PROJECT),"".concat(ro.TYPE_BEHANCE,"__").concat(ro.SUBTYPE_BEHANCE_INVITATION_COOWN_COLLECTION),"".concat(ro.TYPE_FOLDER_COLLAB,"__").concat(ro.SUBTYPE_FOLDER_COLLAB_INVITATION_RECEIVE),"".concat(ro.TYPE_DESIGN_LIBRARY,"__").concat(ro.SUBTYPE_DESIGN_LIBRARY_INVITATION_RECEIVE),"".concat(ro.TYPE_ANYWHERE_PRODUCTION,"__").concat(ro.SUBTYPE_ANYWHERE_PRODUCTION_INVITATION_RECEIVE),"".concat(ro.TYPE_SPARK,"__").concat(ro.SUBTYPE_SPARK_INVITATION_RECEIVE)],this.analyticsEnabled=!1,this.bellIconTheme="",this.notificationsListener=null,this.filterDetails=null,this.premptiveCallCountOnFilterChange=0,this.isShowWidgetRequestPending=!1,this.featureFlagEntries=null,this.isCCDPresent=!1,this.isADSRunning=!1,this.onWidgetLoadError=null,this.onWidgetReadyCallback=null,this.optimizations=[],this.features={},this.onAnalyticsEvent=null,this.theme="light",this.isExpressTheme=!1,this.akamaiTimeStampPromise=null,this.hostPlatform="",this.osPlatform="",this.acceptNotificationsForSurface=[],this.userGuid=""}var t,n,i;return t=e,i=[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}},{key:"deleteInstance",value:function(){e.instance=null}}],(n=[{key:"setTimeStampDrift",value:function(e){e&&(this.timeStampDrift=parseInt(e,10))}},{key:"getTimeStampDrift",value:function(){return this.timeStampDrift}},{key:"setDeviceLocale",value:function(e){this.deviceLocale=e}},{key:"getDeviceLocale",value:function(){return this.deviceLocale}},{key:"setIfHiDpi",value:function(e){this.isHiDpi=e}},{key:"initializeGlobalData",value:function(e){var t=this;ie.debug("UNCWidget: initializeGlobalData context is :",e),this.isHiDpi=e.isHiDpi,e.env&&""!==e.env&&(this.env=e.env),e.appName&&""!==e.appName&&(this.appName=e.appName),e.imsClientID&&""!==e.imsClientID&&(this.imsClientID=e.imsClientID),e.appID&&""!==e.appID&&(this.appID=e.appID),e.deviceType&&""!==e.deviceType&&(this.deviceType=e.deviceType),e.surface&&""!==e.surface&&(this.surface=e.surface),e.cssProperties&&"object"===lo(e.cssProperties)&&(this.cssProperties=e.cssProperties),e.showWidgetCrossButton&&(this.showWidgetCrossButton=e.showWidgetCrossButton),e.tabIndex&&(this.tabIndex=e.tabIndex),e.hostCallBackFn&&"function"==typeof e.hostCallBackFn&&(this.hostCallBackFn=e.hostCallBackFn),e.notificationUpdateCallbackFn&&"function"==typeof e.notificationUpdateCallbackFn&&(this.notificationUpdateCallbackFn=e.notificationUpdateCallbackFn),e.onWidgetOpenCloseCallbackFn&&"function"==typeof e.onWidgetOpenCloseCallbackFn&&(this.onWidgetOpenCloseCallbackFn=e.onWidgetOpenCloseCallbackFn),e.onError&&(this.onWidgetLoadError=e.onError),e.onReady&&(this.onWidgetReadyCallback=e.onReady),e.imageIcon&&"object"===lo(e.imageIcon)&&(this.customNotificationIcon=e.imageIcon),Object.prototype.hasOwnProperty.call(e,"analyticsEnabled")&&void 0!==e.analyticsEnabled&&(this.analyticsEnabled="true"===e.analyticsEnabled.toString().toLowerCase()),e.onAnalyticsEvent&&"function"==typeof e.onAnalyticsEvent&&(this.onAnalyticsEvent=e.onAnalyticsEvent),e.bellIconTheme&&(this.bellIconTheme=e.bellIconTheme),e.globalStore&&(this.ccdGlobalStore=e.globalStore),e.notificationsListener&&(this.notificationsListener=e.notificationsListener),e.filterDetails&&(this.filterDetails=e.filterDetails),e.premptiveCallCountOnFilterChange&&(this.premptiveCallCountOnFilterChange=Number(e.premptiveCallCountOnFilterChange)),e.featureFlagEntries&&(this.featureFlagEntries=e.featureFlagEntries),void 0!==e.isCCDPresent&&(this.isCCDPresent=e.isCCDPresent),e.optimizations&&(this.optimizations=e.optimizations),e.badgeCount&&(this.badgeCount=e.badgeCount),e.theme&&(this.theme=e.theme,this.theme===io.EXPRESS_THEME&&(this.isExpressTheme=!0)),e.features&&(this.features=e.features),e.hostPlatform&&(this.hostPlatform=e.hostPlatform),e.acceptNotificationsForSurface&&(Array.isArray(e.acceptNotificationsForSurface)?e.acceptNotificationsForSurface.forEach((function(e){return t.acceptNotificationsForSurface.push(e)})):this.acceptNotificationsForSurface.push(e.acceptNotificationsForSurface))}},{key:"sanitizeLocaleValue",value:function(e){return io.locales.supportedLocales.indexOf(e)>-1?e:void 0!==io.locales.fallbackLocales[e]?(ie.log("UNCWidget: GlobalData: Using fallback locale:",io.locales.fallbackLocales[e]),io.locales.fallbackLocales[e]):(void 0!==e&&ie.error(e,"is not a supported locale by Notifications client. Please check that you have provided the correct locale value and it is in the list of supported locales. Falling back to default locale en_US"),io.locales.defaultLocale)}},{key:"setLocalizedDisplayStrings",value:function(e){e&&(this.localizedDisplayStrings=e)}},{key:"setAkamaiTimeStampPromise",value:function(e){e&&(this.akamaiTimeStampPromise=e)}},{key:"getAkamaiTimeStampPromise",value:function(){return this.akamaiTimeStampPromise}},{key:"appendInSearchTypeSubtypeList",value:function(e){var t=ao(so,new Set([].concat(ao(so,e),ao(so,this.searchTypeSubtypes))));this.searchTypeSubtypes=t}}])&&uo(t.prototype,n),i&&uo(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ho(e){return ho="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},ho(e)}function go(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,mo(i.key),i)}}function mo(e){var t=function(e,t){if("object"!=ho(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=ho(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ho(t)?t:String(t)}var yo=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.filesPanelEnabled=!0,this.designLibraryFeatureEnabled=!0}var t,n,i;return t=e,i=[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}},{key:"deleteInstance",value:function(){e.instance=null}}],(n=[{key:"handleIncomingUserContextData",value:function(e){ie.debug("UNCWidget: UserContextDataHandler: handleIncomingUserContextData: featureJsonObj is : ",e);var t=e;if(t["feature-response"]&&t["feature-response"]["feature-entry"]&&Array.isArray(t["feature-response"]["feature-entry"]))for(var n=t["feature-response"]["feature-entry"],i=n.length,o=0;o<i;o+=1){var r=n[o];"com.adobe.oobe.acc.v1.filesPanelEnabled"===r["@id"]?"false"===r["@state"]?(ie.debug("UNCWidget: UserContextDataHandler: handleIncomingUserContextData: filesPanel is disabled from FES and therefore no stormcloud notification will be shown"),this.filesPanelEnabled=!1):(ie.debug("UNCWidget: UserContextDataHandler: handleIncomingUserContextData: filesPanel is enabled from FES"),this.filesPanelEnabled=!0):"com.adobe.oobe.acc.v1.market.designLibrary"===r["@id"]&&("false"===r["@state"]?(ie.debug("UNCWidget: UserContextDataHandler: handleIncomingUserContextData: designLibrary is disabled from FES and therefore no library notification will be shown"),this.designLibraryFeatureEnabled=!1):(ie.debug("UNCWidget: UserContextDataHandler: handleIncomingUserContextData: designLibrary is enabled from FES"),this.designLibraryFeatureEnabled=!0))}}}])&&go(t.prototype,n),i&&go(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function vo(e){return vo="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},vo(e)}function bo(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_o(i.key),i)}}function _o(e){var t=function(e,t){if("object"!=vo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=vo(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vo(t)?t:String(t)}var Co=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"checkNotificationRenderedAsNonAnnouncement",value:function(e,t){return!this.isAnnouncementNotificationAndInNewOrUnReadState(e)||!!this.isAnnouncementNotificationTerminated(e)||t!==io.Announcement_Notifications_Section}},{key:"isAnnouncementNotification",value:function(e){return e&&e.isAnnouncementNotification}},{key:"isAnnouncementNotificationAndInNewOrUnReadState",value:function(e){return this.isAnnouncementNotification(e)&&(e.state===ro.NOTIFICATION_STATE_NEW||e.state===ro.NOTIFICATION_STATE_UNREAD)}}],(n=null)&&bo(t.prototype,n),i&&bo(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function So(e){return So="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},So(e)}function Eo(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,No(i.key),i)}}function No(e){var t=function(e,t){if("object"!=So(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=So(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==So(t)?t:String(t)}Co.isAnnouncementNotificationTerminated=function(e){if(!e)return!1;var t=(new Date).getTime(),n=e.renderingOrderTimestamp+864e5*parseInt(io.Announcement_Notifications_Default_Expiry_In_Days,10);return e.announcementExpiryDate&&(n=e.announcementExpiryDate.getTime()),t>=n};var Oo=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"isEventNotification",value:function(e){return e.viewtype===ro.EVENT_TIMELINE}},{key:"hasEventNotification",value:function(e){var t=this;return e.some((function(e){return t.isEventNotification(e)}))}},{key:"setTimestampPromiseIfEventNotification",value:function(e){this.hasEventNotification(e)&&po.getInstance().setAkamaiTimeStampPromise(jf.getCurrentTimeFromAkamai())}},{key:"initializeEventNotification",value:function(e){if(this.isEventNotification({viewtype:e.viewtype})){var t,n,i,o={isEventType:!0},r={};return r.goLiveTime=null!=e&&null!==(t=e.eventData)&&void 0!==t&&t.goLiveTime?parseInt(e.eventData.goLiveTime,10):null,r.goLiveExpireTime=null!=e&&null!==(n=e.eventData)&&void 0!==n&&n.goLiveExpireTime?parseInt(e.eventData.goLiveExpireTime,10):null,r.title=null==e||null===(i=e.eventData)||void 0===i?void 0:i.title,r.markExpireTime=r.goLiveExpireTime?r.goLiveExpireTime+io.SEVEN_DAYS_IN_SECOND:null,!r.goLiveTime||!r.goLiveExpireTime||!r.title||r.goLiveTime>r.goLiveExpireTime||(o.eventNotificationData=r),o}return{isEventType:!1}}}],(n=null)&&Eo(t.prototype,n),i&&Eo(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function To(){return"UXP"===po.getInstance().hostPlatform}Oo.displayStrings=po.getInstance().getLocalizedDisplayStrings();var Io=n(5466),wo=n.n(Io),Ao=n(4407),ko=n(6116),Do=n.n(ko);function Po(e){return Po="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},Po(e)}function Ro(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,xo(i.key),i)}}function xo(e){var t=function(e,t){if("object"!=Po(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Po(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Po(t)?t:String(t)}var Fo=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._acceptRejectRequestDetailsObj=t}var t,n,i;return t=e,(n=[{key:"executeRequest",value:function(){var e=this,t=!1,n=zr.getInstance().sendMessage(io.GET_USER_PROFILE,{},io.CLIENT_TARGET_TYPE,"",!1);return void 0!==n.AccessToken&&""!==n.AccessToken&&new Promise((function(i,o){var r=e._acceptRejectRequestDetailsObj.url,a=r,s=n.AccessToken;r&&-1!==r.indexOf(io.IMS_TOKEN_STRING)&&(a=r.replace(io.IMS_TOKEN_STRING,s),t=!0);var c={hostname:a,methodType:e._acceptRejectRequestDetailsObj.method,responseCallback:function(t){ie.debug("UNCWidget: AcceptRejectInvitationHandler: executeRequest - Success Response Handler",e._acceptRejectRequestDetailsObj),i(t)}.bind(e),errorCallback:function(n){ie.warn("UNCWidget: AcceptRejectInvitationHandler: executeRequest - Error Response Handler",e._acceptRejectRequestDetailsObj,n),n.accessTokenSent=t,o(n)}.bind(e)};e.httpComm=new ne(c);var l={};e._acceptRejectRequestDetailsObj.body?e._acceptRejectRequestDetailsObj.body instanceof Array?0===e._acceptRejectRequestDetailsObj.body.length?l.content="{}":l.content=JSON.stringify(e._acceptRejectRequestDetailsObj.body):"object"===Po(e._acceptRejectRequestDetailsObj.body)?l.content=JSON.stringify(e._acceptRejectRequestDetailsObj.body):l.content=e._acceptRejectRequestDetailsObj.body:l.content="{}",e._acceptRejectRequestDetailsObj.headers?(l.requestHeaders=JSON.parse(JSON.stringify(e._acceptRejectRequestDetailsObj.headers)),l.requestHeaders.Authorization&&(l.requestHeaders.Authorization="Bearer ".concat(s),t=!0)):l.requestHeaders={},e.httpComm.SendRequest(l)}))}}])&&Ro(t.prototype,n),i&&Ro(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Lo(e){return Lo="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},Lo(e)}function Uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uo(Object(n),!0).forEach((function(t){Mo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mo(e,t,n){return(t=Ho(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wo(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ho(i.key),i)}}function Ho(e){var t=function(e,t){if("object"!=Lo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Lo(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Lo(t)?t:String(t)}var qo=function(){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.hideFetchingSpinnerState=function(){t.container.setState(jo(jo({},t.state),{},{showFetchingSpinner:!1}))},this.hideFetchingSpinnerStateForSearchCall=function(){t.container.setState(jo(jo({},t.state),{},{showFetchingSpinnerInCaseOfSearchCall:!1}))}}var t,n,i;return t=e,n=[{key:"init",value:function(e){this.container=e}},{key:"setFetchingSpinnerState",value:function(){this.container.setState(jo(jo({},this.state),{},{showFetchingSpinner:!0})),setTimeout(this.hideFetchingSpinnerState,3e4)}},{key:"setFetchingSpinnerStateForSearchCall",value:function(){this.container.setState(jo(jo({},this.state),{},{showFetchingSpinnerInCaseOfSearchCall:!0})),setTimeout(this.hideFetchingSpinnerStateForSearchCall,3e4)}},{key:"setPinnedHistoricalNotificationsAvailable",value:function(){this.container.setState(jo(jo({},this.state),{},{pinnedHistoricalNotificationsAvailable:!0}))}},{key:"resetPinnedHistoricalNotificationsAvailable",value:function(){this.container.setState(jo(jo({},this.state),{},{pinnedHistoricalNotificationsAvailable:!1}))}},{key:"getPinnedHistoricalNotificationsAvailable",value:function(){return this.container.state.pinnedHistoricalNotificationsAvailable}},{key:"resetPinnedHistoricalNotificationsAvailableAndButtonClickState",value:function(){this.container.setState(jo(jo({},this.state),{},{pinnedHistoricalNotificationsAvailable:!1,buttonClickInProgress:!1}))}},{key:"setButtonClickInProgress",value:function(){this.container.setState(jo(jo({},this.state),{},{buttonClickInProgress:!0}))}},{key:"resetButtonClickInProgress",value:function(){this.container.setState(jo(jo({},this.state),{},{buttonClickInProgress:!1}))}},{key:"setSelectedFilter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{filterID:io.EVERYTHING,value:io.EVERYTHING};this.container.setState((function(t){return jo(jo({},t),{},{selectedFilter:e})}))}},{key:"getSelectedFilter",value:function(){return this.container.state.selectedFilter}}],i=[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}},{key:"deleteInstance",value:function(){e.instance=null}}],n&&Wo(t.prototype,n),i&&Wo(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Bo(e){return Bo="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},Bo(e)}function Vo(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Go(i.key),i)}}function Go(e){var t=function(e,t){if("object"!=Bo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Bo(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Bo(t)?t:String(t)}var zo=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,n=[{key:"getDefaultObjectForConfigurationsForUNCForAnalytics",value:function(){var e={xApiKey:"unc-thor-service",apiKey:"unc-thor-service",source:"UNC",project:"unc-thor-service"};return e}},{key:"sendAnalyticsForReceiptOfNotification",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(po.getInstance().analyticsEnabled){ie.debug("UNCWidget: DesktopUNCEngineAnalyticsHandler: sendAnalyticsForReceiptOfNotification : notification object is ",e);var n,i,o={},r={};o.projectConfigDetails=this.getDefaultObjectForConfigurationsForUNCForAnalytics();var a={"event.type":"receipt","event.subcategory":"Message"};if(this.setConstantFieldsWithValues(a),t||(a["event.error_type"]="parsing-error"),e.id&&""!==e.id&&(a["content.id"]=e.id),e.type&&""!==e.type&&e.subType&&""!==e.subType&&(a["content.type"]="".concat(e.type,":").concat(e.subType)),a["content.status"]=e.state?e.state.toLowerCase():"read",a["event.subtype"]="notification",e.trackingSystemPayload&&""!==e.trackingSystemPayload){a["ans.client_payload"]=e.trackingSystemPayload,r=e.trackingSystemPayload;try{r=JSON.parse(r),Object.prototype.hasOwnProperty.call(r,Ue.CAMPAIGN_ID)&&(n=r.CAMPAIGN_ID),Object.prototype.hasOwnProperty.call(r,Ue.VARIATION_ID)&&(i=r.VARIATION_ID)}catch(e){ie.warn("UNCWidget: DesktopAnalyticsHandler: sendAnalyticsForReceiptOfNotification : notifObj.trackingSystemPayload parsing failed with error : ",e)}}e.contentSourceId&&""!==e.contentSourceId&&(a["custom.content_source_id"]=e.contentSourceId),n&&(a["exp.campaign_id"]=n),i&&(a["exp.variation_id"]=i),e.isPinned&&!0===e.isPinned?a["event.value"]="request":a["event.value"]="notification",this.setViewTypeAnalytics(a,e);var s=jf.getAuthorForNotificationTypeSubtype(e.type,e.subType);s&&""!==s&&(a["content.author"]=s),ie.debug("UNCWidget: DesktopAnalyticsHandler: sendAnalyticsForReceiptOfNotification: sending event is: ",a),o.data=a,zr.getInstance().sendMessage("SendAnalytics",o,io.DEFAULT_TARGET_TYPE,io.ANALYTICS_DESKTOP_TARGET_ID)}}},{key:"sendAnalyticsForViewOfNotification",value:function(e){var t;if(po.getInstance().analyticsEnabled){ie.debug("UNCWidget: DesktopUNCEngineAnalyticsHandler: sendAnalyticsForViewOfNotification : notification object is ",e),e.viewEventSent=!0;var n,i,o={},r={};o.projectConfigDetails=this.getDefaultObjectForConfigurationsForUNCForAnalytics();var a={"event.type":"render","event.subcategory":"Message","event.subtype":"notification"};if(this.setFilterRelatedAnalytics(a,e),this.setConstantFieldsWithValues(a),e.id&&""!==e.id&&(a["content.id"]=e.id),e.type&&""!==e.type&&e.subType&&""!==e.subType&&(a["content.type"]="".concat(e.type,":").concat(e.subType)),a["content.name"]=Qe(null===(t=e.payload.timeline)||void 0===t?void 0:t.content),a["content.status"]=e.state?e.state.toLowerCase():"read",e.trackingSystemPayload&&""!==e.trackingSystemPayload){a["ans.client_payload"]=e.trackingSystemPayload,r=e.trackingSystemPayload;try{r=JSON.parse(r),Object.prototype.hasOwnProperty.call(r,Ue.CAMPAIGN_ID)&&(n=r.CAMPAIGN_ID),Object.prototype.hasOwnProperty.call(r,Ue.VARIATION_ID)&&(i=r.VARIATION_ID)}catch(e){ie.warn("UNCWidget: DesktopAnalyticsHandler: sendAnalyticsForViewOfNotification : notifObj.trackingSystemPayload parsing failed with error : ",e)}}e.contentSourceId&&""!==e.contentSourceId&&(a["custom.content_source_id"]=e.contentSourceId),n&&(a["exp.campaign_id"]=n),i&&(a["exp.variation_id"]=i),e.isPinned&&!0===e.isPinned?a["event.value"]="request":a["event.value"]="notification",this.setViewTypeAnalytics(a,e);var s=jf.getAuthorForNotificationTypeSubtype(e.type,e.subType);s&&""!==s&&(a["content.author"]=s),ie.debug("UNCWidget: DesktopAnalyticsHandler: sendAnalyticsForViewOfNotification: sending event is: ",a),o.data=a,zr.getInstance().sendMessage("SendAnalytics",o,io.DEFAULT_TARGET_TYPE,io.ANALYTICS_DESKTOP_TARGET_ID)}}},{key:"sendAnalyticsForShowMoreRequestsClicked",value:function(){if(po.getInstance().analyticsEnabled){var e={};e.projectConfigDetails=this.getDefaultObjectForConfigurationsForUNCForAnalytics();var t={"event.type":"click","event.subcategory":"Widget","event.subtype":"view-more"};this.setConstantFieldsWithValues(t),e.data=t,zr.getInstance().sendMessage("SendAnalytics",e,io.DEFAULT_TARGET_TYPE,io.ANALYTICS_DESKTOP_TARGET_ID)}}},{key:"sendAnalyticsForUNCInit",value:function(){if(po.getInstance().analyticsEnabled){var e={};e.projectConfigDetails=this.getDefaultObjectForConfigurationsForUNCForAnalytics();var t={"event.type":"init","event.subtype":"component","event.subcategory":"Widget"};po.getInstance().customNotificationIcon&&(t["event.value"]="icon-override"),this.setConstantFieldsWithValues(t),e.data=t,zr.getInstance().sendMessage("SendAnalytics",e,io.DEFAULT_TARGET_TYPE,io.ANALYTICS_DESKTOP_TARGET_ID)}}},{key:"sendAnalyticsForNotificationWidgetVisit",value:function(){if(po.getInstance().analyticsEnabled){var e={};e.projectConfigDetails=this.getDefaultObjectForConfigurationsForUNCForAnalytics();var t={"event.type":"click","event.subcategory":"Widget","event.subtype":"icon"};this.setConstantFieldsWithValues(t),po.getInstance().badgeCount>0?(t["event.value"]="true",t["event.count"]=po.getInstance().badgeCount):t["event.value"]="false",e.data=t,zr.getInstance().sendMessage("SendAnalytics",e,io.DEFAULT_TARGET_TYPE,io.ANALYTICS_DESKTOP_TARGET_ID)}}},{key:"sendAnalyticsForWidgetRendered",value:function(){if(po.getInstance().analyticsEnabled){var e={};e.projectConfigDetails=this.getDefaultObjectForConfigurationsForUNCForAnalytics();var t={"event.type":"render","event.subcategory":"Widget","event.subtype":"component"};this.setConstantFieldsWithValues(t),e.data=t,zr.getInstance().sendMessage("SendAnalytics",e,io.DEFAULT_TARGET_TYPE,io.ANALYTICS_DESKTOP_TARGET_ID)}}},{key:"sendAnalyticsForWidgetClosed",value:function(){if(po.getInstance().analyticsEnabled){var e={};e.projectConfigDetails=this.getDefaultObjectForConfigurationsForUNCForAnalytics();var t={"event.type":"close","event.subcategory":"Widget","event.subtype":"component"};this.setConstantFieldsWithValues(t),e.data=t,zr.getInstance().sendMessage("SendAnalytics",e,io.DEFAULT_TARGET_TYPE,io.ANALYTICS_DESKTOP_TARGET_ID)}}},{key:"sendAnalyticsForUserTriggeredScroll",value:function(){if(po.getInstance().analyticsEnabled){var e={};e.projectConfigDetails=this.getDefaultObjectForConfigurationsForUNCForAnalytics();var t={"event.type":"click","event.subcategory":"Widget","event.subtype":"scroll"};this.setFilterRelatedAnalytics(t),this.setConstantFieldsWithValues(t),e.data=t,zr.getInstance().sendMessage("SendAnalytics",e,io.DEFAULT_TARGET_TYPE,io.ANALYTICS_DESKTOP_TARGET_ID)}}},{key:"sendAnalyticsForFilterClick",value:function(e){if(po.getInstance().analyticsEnabled){var t={};t.projectConfigDetails=this.getDefaultObjectForConfigurationsForUNCForAnalytics();var n={"event.type":"click","event.subcategory":"Widget","event.subtype":"filter"};n["ui.filter"]=e.value,this.setConstantFieldsWithValues(n),t.data=n,zr.getInstance().sendMessage("SendAnalytics",t,io.DEFAULT_TARGET_TYPE,io.ANALYTICS_DESKTOP_TARGET_ID)}}},{key:"sendAnalyticsForButtonClick",value:function(e){if(po.getInstance().analyticsEnabled){var t={};t.projectConfigDetails=this.getDefaultObjectForConfigurationsForUNCForAnalytics();var n={"event.type":"click","event.subcategory":"Widget"};n["event.subtype"]=e,this.setFilterRelatedAnalytics(n),this.setConstantFieldsWithValues(n),t.data=n,zr.getInstance().sendMessage("SendAnalytics",t,io.DEFAULT_TARGET_TYPE,io.ANALYTICS_DESKTOP_TARGET_ID)}}},{key:"sendAnalyticsForNotificationAction",value:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(po.getInstance().analyticsEnabled){ie.debug("UNCWidget: DesktopUNCEngineAnalyticsHandler: sendAnalyticsForNotificationAction : notification object is ",e,t);var r={};r.projectConfigDetails=this.getDefaultObjectForConfigurationsForUNCForAnalytics();var a,s,c={},l={};if(c["event.type"]="click",c["event.subtype"]=t,c["event.subcategory"]="Message",this.setFilterRelatedAnalytics(c,e),this.setConstantFieldsWithValues(c),e.id&&""!==e.id&&(c["content.id"]=e.id),e.type&&""!==e.type&&e.subType&&""!==e.subType&&(c["content.type"]="".concat(e.type,":").concat(e.subType)),c["content.name"]=Qe(null===(n=e.payload.timeline)||void 0===n?void 0:n.content),c["content.status"]=e.state?e.state.toLowerCase():"read",e.trackingSystemPayload&&""!==e.trackingSystemPayload){c["ans.client_payload"]=e.trackingSystemPayload,l=e.trackingSystemPayload;try{l=JSON.parse(l),Object.prototype.hasOwnProperty.call(l,Ue.CAMPAIGN_ID)&&(a=l.CAMPAIGN_ID),Object.prototype.hasOwnProperty.call(l,Ue.VARIATION_ID)&&(s=l.VARIATION_ID)}catch(e){ie.warn("UNCWidget: DesktopAnalyticsHandler: sendAnalyticsForNotificationAction : notifObj.trackingSystemPayload parsing failed with error : ",e)}}if(e.contentSourceId&&""!==e.contentSourceId&&(c["custom.content_source_id"]=e.contentSourceId),a&&(c["exp.campaign_id"]=a),s&&(c["exp.variation_id"]=s),e.isPinned&&!0===e.isPinned?c["event.value"]="request":c["event.value"]="notification",this.setViewTypeAnalytics(c,e),""!==i&&(c["content.action"]=encodeURIComponent(i)),o)if(c["event.clicktype"]=t,Array.isArray(o)){var u=[];o.forEach((function(e){u.push(e.workflow)})),c["event.value"]=u.join("|"),c["content.action"]=u.join("|")}else c["event.value"]=o.workflow,c["content.action"]=o.workflow;var f=jf.getAuthorForNotificationTypeSubtype(e.type,e.subType);f&&""!==f&&(c["content.author"]=f),ie.debug("UNCWidget: DesktopAnalyticsHandler: sendAnalyticsForViewOfNotification: sending event is: ",c),r.data=c,zr.getInstance().sendMessage("SendAnalytics",r,io.DEFAULT_TARGET_TYPE,io.ANALYTICS_DESKTOP_TARGET_ID)}}},{key:"setConstantFieldsWithValues",value:function(e){if(e["event.workflow"]="UNC",e["event.category"]="DESKTOP",e["source.platform"]="DESKTOP",e["source.name"]="UNC",e["source.version"]=Ue.VERSION_PARAM,po.getInstance().imsClientID&&""!==po.getInstance().imsClientID&&(e["source.client_id"]=po.getInstance().imsClientID),po.getInstance().appID&&""!==po.getInstance().appID&&(e["source.app_id"]=po.getInstance().appID),gf.getInstance().context.analyticsConfig&&gf.getInstance().context.analyticsConfig.componentDetails&&"object"===Bo(gf.getInstance().context.analyticsConfig.componentDetails))for(var t=Object.keys(gf.getInstance().context.analyticsConfig.componentDetails),n=0;n<t.length;n+=1){var i=t[n];-1!==io.Component_Supported_Keys.indexOf(i)&&("name"===i?e["env.com.name"]=gf.getInstance().context.analyticsConfig.componentDetails[i]:"version"===i&&(e["env.com.version"]=gf.getInstance().context.analyticsConfig.componentDetails[i]))}if(gf.getInstance().context.analyticsConfig&&gf.getInstance().context.analyticsConfig.consumerDetails&&"object"===Bo(gf.getInstance().context.analyticsConfig.consumerDetails))for(var o=Object.keys(gf.getInstance().context.analyticsConfig.consumerDetails),r=0;r<o.length;r+=1){var a=o[r];-1!==io.Consumer_Supported_Keys.indexOf(a)&&(e["consumer.".concat(a)]=gf.getInstance().context.analyticsConfig.consumerDetails[a])}}},{key:"setFilterRelatedAnalytics",value:function(e,t){if(po.getInstance().filterDetails&&(e["ui.filter"]=qo.getInstance().getSelectedFilter().value),t){var n=jf.getPipeSeparatedFilters(t);jf.isValidString(n)&&(e["custom.notificationFilterCategory"]=n)}}},{key:"setViewTypeAnalytics",value:function(e,t){t.isAnnouncementNotification&&!0===t.isAnnouncementNotification?e["ui.view_type"]="announcement_notification":t.isPinned&&!0===t.isPinned?e["ui.view_type"]="pinned_notification":e["ui.view_type"]="notification"}}],i=[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}},{key:"deleteInstance",value:function(){e.instance=null}}],n&&Vo(t.prototype,n),i&&Vo(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ko(e){return Ko="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},Ko(e)}function Yo(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Xo(i.key),i)}}function Xo(e){var t=function(e,t){if("object"!=Ko(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Ko(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ko(t)?t:String(t)}var Jo=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,n=[{key:"getDefaultObjectForUNCForAnalytics",value:function(){var e={xApiKey:"unc-thor-service",apiKey:"unc-thor-service",project:"unc-thor-service",source:"UNC"};return"prod"!==po.getInstance().env.toLowerCase()?e.environment="stage":e.environment="prod",e}},{key:"sendAnalyticsForReceiptOfNotification",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(po.getInstance().analyticsEnabled){ie.debug("UNCWidget: UXPAnalyticsHandler: sendAnalyticsForReceiptOfNotification : notification object is ",e);var n,i,o=new(Le())(this.getDefaultObjectForUNCForAnalytics());o.initializeDefaultData();var r={};if(o.setDataValue(io.Event_Section,"type","receipt"),o.setDataValue(io.Event_Section,"subcategory","Message"),this.setConstantFieldsWithValues(o),t||o.setDataValue(io.Event_Section,"error_type","parsing-error"),e.id&&""!==e.id&&o.setDataValue(io.Content_Section,"id",e.id),e.type&&""!==e.type&&e.subType&&""!==e.subType&&o.setDataValue(io.Content_Section,"type","".concat(e.type,":").concat(e.subType)),o.setDataValue(io.Content_Section,"status",e.state?e.state.toLowerCase():"read"),o.setDataValue(io.Event_Section,"subtype","notification"),e.trackingSystemPayload&&""!==e.trackingSystemPayload){o.setDataValue("custom","ans.client_payload",e.trackingSystemPayload),r=e.trackingSystemPayload;try{r=JSON.parse(r),Object.prototype.hasOwnProperty.call(r,Ue.CAMPAIGN_ID)&&(n=r.CAMPAIGN_ID),Object.prototype.hasOwnProperty.call(r,Ue.VARIATION_ID)&&(i=r.VARIATION_ID)}catch(e){ie.warn("UNCWidget: UXPAnalyticsHandler: sendAnalyticsForReceiptOfNotification : notifObj.trackingSystemPayload parsing failed with error : ",e)}}e.contentSourceId&&""!==e.contentSourceId&&o.setDataValue("custom","content_source_id",e.contentSourceId),n&&o.setDataValue("exp","campaign_id",n),i&&o.setDataValue("exp","variation_id",i),e.isPinned&&!0===e.isPinned?o.setDataValue(io.Event_Section,"value","request"):o.setDataValue(io.Event_Section,"value","notification"),this.setViewTypeAnalytics(o,e);var a=jf.getAuthorForNotificationTypeSubtype(e.type,e.subType);if(a&&""!==a&&o.setDataValue(io.Content_Section,"author",a),po.getInstance().onAnalyticsEvent)try{po.getInstance().onAnalyticsEvent(o.eventsObject)}catch(e){ie.warn("UNCWidget: UXPAnalyticsHandler: sendAnalyticsForReceiptOfNotification : Error in execution onAnalyticsEvent",e)}o.addToCollection(),o.sendToIngest()}}},{key:"sendAnalyticsForViewOfNotification",value:function(e){if(po.getInstance().analyticsEnabled){ie.debug("UNCWidget: UXPAnalyticsHandler: sendAnalyticsForViewOfNotification : notification object is ",e),e.viewEventSent=!0;var t,n,i=new(Le())(this.getDefaultObjectForUNCForAnalytics());i.initializeDefaultData();var o={};if(i.setDataValue(io.Event_Section,"type","render"),i.setDataValue(io.Event_Section,"subcategory","Message"),this.setFilterRelatedAnalytics(i,e),this.setConstantFieldsWithValues(i),e.id&&""!==e.id&&i.setDataValue(io.Content_Section,"id",e.id),e.type&&""!==e.type&&e.subType&&""!==e.subType&&i.setDataValue(io.Content_Section,"type","".concat(e.type,":").concat(e.subType)),i.setDataValue(io.Content_Section,"status",e.state?e.state.toLowerCase():"read"),i.setDataValue(io.Event_Section,"subtype","notification"),e.trackingSystemPayload&&""!==e.trackingSystemPayload){i.setDataValue("custom","ans.client_payload",e.trackingSystemPayload),o=e.trackingSystemPayload;try{o=JSON.parse(o),Object.prototype.hasOwnProperty.call(o,Ue.CAMPAIGN_ID)&&(t=o.CAMPAIGN_ID),Object.prototype.hasOwnProperty.call(o,Ue.VARIATION_ID)&&(n=o.VARIATION_ID)}catch(e){ie.warn("UNCWidget: UXPAnalyticsHandler: sendAnalyticsForViewOfNotification : notifObj.trackingSystemPayload parsing failed with error : ",e)}}e.contentSourceId&&""!==e.contentSourceId&&i.setDataValue("custom","content_source_id",e.contentSourceId),t&&i.setDataValue("exp","campaign_id",t),n&&i.setDataValue("exp","variation_id",n),e.isPinned&&!0===e.isPinned?i.setDataValue(io.Event_Section,"value","request"):i.setDataValue(io.Event_Section,"value","notification"),this.setViewTypeAnalytics(i,e);var r=jf.getAuthorForNotificationTypeSubtype(e.type,e.subType);if(r&&""!==r&&i.setDataValue(io.Content_Section,"author",r),po.getInstance().onAnalyticsEvent)try{po.getInstance().onAnalyticsEvent(i.eventsObject)}catch(e){ie.warn("UNCWidget: UXPAnalyticsHandler: sendAnalyticsForViewOfNotification : Error in execution onAnalyticsEvent",e)}i.addToCollection(),i.sendToIngest()}}},{key:"sendAnalyticsForShowMoreRequestsClicked",value:function(){if(po.getInstance().analyticsEnabled){var e=new(Le())(this.getDefaultObjectForUNCForAnalytics());if(e.initializeDefaultData(),e.setDataValue(io.Event_Section,"type","click"),e.setDataValue(io.Event_Section,"subcategory","Widget"),e.setDataValue(io.Event_Section,"subtype","view-more"),this.setConstantFieldsWithValues(e),po.getInstance().onAnalyticsEvent)try{po.getInstance().onAnalyticsEvent(e.eventsObject)}catch(e){ie.warn("UNCWidget: UXPAnalyticsHandler: sendAnalyticsForShowMoreRequestsClicked : Error in execution onAnalyticsEvent",e)}e.addToCollection(),e.sendToIngest()}}},{key:"sendAnalyticsForUNCInit",value:function(){if(po.getInstance().analyticsEnabled){var e=new(Le())(this.getDefaultObjectForUNCForAnalytics());if(e.initializeDefaultData(),e.setDataValue(io.Event_Section,"type","init"),e.setDataValue(io.Event_Section,"subtype","component"),e.setDataValue(io.Event_Section,"subcategory","Widget"),po.getInstance().customNotificationIcon&&e.setDataValue(io.Event_Section,"value","icon-override"),po.getInstance().optimizations&&po.getInstance().optimizations.length>0){var t=po.getInstance().optimizations.map((function(e){return e})).join(" | ");e.setDataValue(io.Event_Section,"event.value",t),po.getInstance().optimizations.includes("disableAnalytics")&&(po.getInstance().analyticsEnabled=!1)}if(this.setConstantFieldsWithValues(e),po.getInstance().onAnalyticsEvent)try{po.getInstance().onAnalyticsEvent(e.eventsObject)}catch(e){ie.warn("UNCWidget: UXPAnalyticsHandler: sendAnalyticsForUNCInit : Error in execution onAnalyticsEvent",e)}e.addToCollection(),e.sendToIngest()}}},{key:"sendAnalyticsForNotificationWidgetVisit",value:function(){if(po.getInstance().analyticsEnabled){var e=new(Le())(this.getDefaultObjectForUNCForAnalytics());if(e.initializeDefaultData(),e.setDataValue(io.Event_Section,"type","click"),e.setDataValue(io.Event_Section,"subcategory","Widget"),e.setDataValue(io.Event_Section,"subtype","icon"),this.setConstantFieldsWithValues(e),po.getInstance().badgeCount>0?(e.setDataValue(io.Event_Section,"value","true"),e.setDataValue(io.Event_Section,"count",po.getInstance().badgeCount)):e.setDataValue(io.Event_Section,"value","false"),po.getInstance().onAnalyticsEvent)try{po.getInstance().onAnalyticsEvent(e.eventsObject)}catch(e){ie.warn("UNCWidget: UXPAnalyticsHandler: sendAnalyticsForNotificationWidgetVisit : Error in execution onAnalyticsEvent",e)}e.addToCollection(),e.sendToIngest()}}},{key:"sendAnalyticsForWidgetRendered",value:function(){if(po.getInstance().analyticsEnabled){var e=new(Le())(this.getDefaultObjectForUNCForAnalytics());if(e.initializeDefaultData(),e.setDataValue(io.Event_Section,"type","render"),e.setDataValue(io.Event_Section,"subtype","component"),e.setDataValue(io.Event_Section,"subcategory","Widget"),this.setConstantFieldsWithValues(e),po.getInstance().onAnalyticsEvent)try{po.getInstance().onAnalyticsEvent(e.eventsObject)}catch(e){ie.warn("UNCWidget: UXPAnalyticsHandler: sendAnalyticsForWidgetRendered : Error in execution onAnalyticsEvent",e)}e.addToCollection(),e.sendToIngest()}}},{key:"sendAnalyticsForWidgetClosed",value:function(){if(po.getInstance().analyticsEnabled){var e=new(Le())(this.getDefaultObjectForUNCForAnalytics());if(e.initializeDefaultData(),e.setDataValue(io.Event_Section,"type","close"),e.setDataValue(io.Event_Section,"subtype","component"),e.setDataValue(io.Event_Section,"subcategory","Widget"),this.setConstantFieldsWithValues(e),po.getInstance().onAnalyticsEvent)try{po.getInstance().onAnalyticsEvent(e.eventsObject)}catch(e){ie.warn("UNCWidget: UXPAnalyticsHandler: sendAnalyticsForWidgetClosed : Error in execution onAnalyticsEvent",e)}e.addToCollection(),e.sendToIngest()}}},{key:"sendAnalyticsForUserTriggeredScroll",value:function(){if(po.getInstance().analyticsEnabled){var e=new(Le())(this.getDefaultObjectForUNCForAnalytics());e.initializeDefaultData(),e.setDataValue(io.Event_Section,"type","click"),e.setDataValue(io.Event_Section,"subcategory","Widget"),e.setDataValue(io.Event_Section,"subtype","scroll"),this.setFilterRelatedAnalytics(e),this.setConstantFieldsWithValues(e),e.addToCollection(),e.sendToIngest()}}},{key:"sendAnalyticsForFilterClick",value:function(e){if(po.getInstance().analyticsEnabled){var t=new(Le())(this.getDefaultObjectForUNCForAnalytics());if(t.initializeDefaultData(),t.setDataValue(io.Event_Section,"type","click"),t.setDataValue(io.Event_Section,"subcategory","Widget"),t.setDataValue(io.Event_Section,"subtype","filter"),t.setDataValue(io.UI_Section,"filter",e.value),this.setConstantFieldsWithValues(t),po.getInstance().onAnalyticsEvent)try{po.getInstance().onAnalyticsEvent(t.eventsObject)}catch(e){ie.warn("UNCWidget: UXPAnalyticsHandler: sendAnalyticsForFilterClick : Error in execution onAnalyticsEvent",e)}t.addToCollection(),t.sendToIngest()}}},{key:"sendAnalyticsForButtonClick",value:function(e){if(po.getInstance().analyticsEnabled){var t=new(Le())(this.getDefaultObjectForUNCForAnalytics());if(t.initializeDefaultData(),t.setDataValue(io.Event_Section,"type","click"),t.setDataValue(io.Event_Section,"subcategory","Widget"),t.setDataValue(io.Event_Section,"subtype",e),this.setFilterRelatedAnalytics(t),this.setConstantFieldsWithValues(t),po.getInstance().onAnalyticsEvent)try{po.getInstance().onAnalyticsEvent(t.eventsObject)}catch(e){ie.warn("UNCWidget: UXPAnalyticsHandler: sendAnalyticsForButtonClick : Error in execution onAnalyticsEvent",e)}t.addToCollection(),t.sendToIngest()}}},{key:"sendAnalyticsForNotificationAction",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3?arguments[3]:void 0;if(po.getInstance().analyticsEnabled){ie.debug("UNCWidget: UXPAnalyticsHandler: sendAnalyticsForNotificationAction : notification object is ",e);var o,r,a=new(Le())(this.getDefaultObjectForUNCForAnalytics());a.initializeDefaultData();var s={};if(a.setDataValue(io.Event_Section,"type","click"),a.setDataValue(io.Event_Section,"subtype",t),a.setDataValue(io.Event_Section,"subcategory","Message"),this.setFilterRelatedAnalytics(a,e),this.setConstantFieldsWithValues(a),e.id&&""!==e.id&&a.setDataValue(io.Content_Section,"id",e.id),e.type&&""!==e.type&&e.subType&&""!==e.subType&&a.setDataValue(io.Content_Section,"type","".concat(e.type,":").concat(e.subType)),a.setDataValue(io.Content_Section,"status",e.state?e.state.toLowerCase():"read"),e.trackingSystemPayload&&""!==e.trackingSystemPayload){a.setDataValue("custom","ans.client_payload",e.trackingSystemPayload),s=e.trackingSystemPayload;try{s=JSON.parse(s),Object.prototype.hasOwnProperty.call(s,Ue.CAMPAIGN_ID)&&(o=s.CAMPAIGN_ID),Object.prototype.hasOwnProperty.call(s,Ue.VARIATION_ID)&&(r=s.VARIATION_ID)}catch(e){ie.warn("UNCWidget: UXPAnalyticsHandler: sendAnalyticsForNotificationAction : notifObj.trackingSystemPayload parsing failed with error : ",e)}}if(e.contentSourceId&&""!==e.contentSourceId&&a.setDataValue("custom","content_source_id",e.contentSourceId),o&&a.setDataValue("exp","campaign_id",o),r&&a.setDataValue("exp","variation_id",r),e.isPinned&&!0===e.isPinned?a.setDataValue(io.Event_Section,"value","request"):a.setDataValue(io.Event_Section,"value","notification"),this.setViewTypeAnalytics(a,e),""!==n&&a.setDataValue(io.Content_Section,"action",n),i)if(a.setDataValue(io.Event_Section,"clicktype",t),Array.isArray(i)){var c=[];i.forEach((function(e){c.push(e.workflow)})),a.setDataValue(io.Event_Section,"value",c.join("|")),a.setDataValue(io.Event_Section,"action",c.join("|"))}else a.setDataValue(io.Event_Section,"value",i.workflow),a.setDataValue(io.Event_Section,"action",i.workflow);var l=jf.getAuthorForNotificationTypeSubtype(e.type,e.subType);if(l&&""!==l&&a.setDataValue(io.Content_Section,"author",l),po.getInstance().onAnalyticsEvent)try{po.getInstance().onAnalyticsEvent(a.eventsObject)}catch(e){ie.warn("UNCWidget: UXPAnalyticsHandler: sendAnalyticsForNotificationAction : Error in execution onAnalyticsEvent",e)}a.addToCollection(),a.sendToIngest()}}},{key:"setConstantFieldsWithValues",value:function(e){e.setDataValue(io.Event_Section,"workflow","UNC"),e.setDataValue(io.Source_Section,"platform","UXP"),e.setDataValue(io.Source_Section,"name","UNC"),e.setDataValue(io.Source_Section,"version",Ue.VERSION_PARAM),po.getInstance().imsClientID&&""!==po.getInstance().imsClientID&&e.setDataValue(io.Source_Section,"client_id",po.getInstance().imsClientID),po.getInstance().appID&&""!==po.getInstance().appID&&e.setDataValue(io.Source_Section,"app_id",po.getInstance().appID),po.userGuid&&e.setDataValue(io.Event_Section,"user_guid",po.userGuid);var t=po&&po.getInstance()?po.getInstance().getDeviceLocale():null;if(e.setDataValue(io.Event_Section,"locale",t),gf.getInstance().context.analyticsConfig&&gf.getInstance().context.analyticsConfig.componentDetails&&"object"===Ko(gf.getInstance().context.analyticsConfig.componentDetails))for(var n=Object.keys(gf.getInstance().context.analyticsConfig.componentDetails),i=0;i<n.length;i+=1){var o=n[i];-1!==io.Component_Supported_Keys.indexOf(o)&&("name"===o?e.setDataValue(io.Environment_Section,"com.name",gf.getInstance().context.analyticsConfig.componentDetails[o]):"version"===o&&e.setDataValue(io.Environment_Section,"com.version",gf.getInstance().context.analyticsConfig.componentDetails[o]))}if(gf.getInstance().context.analyticsConfig&&gf.getInstance().context.analyticsConfig.eventDetails&&"object"===Ko(gf.getInstance().context.analyticsConfig.eventDetails))for(var r=Object.keys(gf.getInstance().context.analyticsConfig.eventDetails),a=0;a<r.length;a+=1){var s=r[a];-1!==io.Event_Supported_Keys.indexOf(s)&&e.setDataValue(io.Event_Section,s,gf.getInstance().context.analyticsConfig.eventDetails[s])}if(gf.getInstance().context.analyticsConfig&&gf.getInstance().context.analyticsConfig.consumerDetails&&"object"===Ko(gf.getInstance().context.analyticsConfig.consumerDetails)){for(var c=Object.keys(gf.getInstance().context.analyticsConfig.consumerDetails),l=0;l<c.length;l+=1){var u=c[l];-1!==io.Consumer_Supported_Keys.indexOf(u)&&e.setDataValue(io.Consumer_Section,u,gf.getInstance().context.analyticsConfig.consumerDetails[u])}var f=e.getDevice();f&&""!==f&&e.setDataValue(io.Consumer_Section,"device",f);var d=e.getOSVersion();d&&""!==d&&e.setDataValue(io.Consumer_Section,"os_version",d)}}},{key:"setFilterRelatedAnalytics",value:function(e,t){if(po.getInstance().filterDetails&&e.setDataValue(io.UI_Section,"filter",qo.getInstance().getSelectedFilter().value),t){var n=jf.getPipeSeparatedFilters(t);jf.isValidString(n)&&e.setDataValue(io.Custom_Section,"notificationFilterCategory",n)}}},{key:"setViewTypeAnalytics",value:function(e,t){t.isAnnouncementNotification&&!0===t.isAnnouncementNotification?e.setDataValue(io.UI_Section,"view_type","announcement_notification"):t.isPinned&&!0===t.isPinned?e.setDataValue(io.UI_Section,"view_type","pinned_notification"):e.setDataValue(io.UI_Section,"view_type","notification")}}],i=[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}},{key:"deleteInstance",value:function(){e.instance=null}}],n&&Yo(t.prototype,n),i&&Yo(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),$o=function(){function e(){}return e.getInstance=function(){return null===e.instance&&(To()?e.instance=Jo.getInstance():po&&po.getInstance()&&po.getInstance().surface&&po.getInstance().surface.toUpperCase()===io.SURFACE_WEB?e.instance=bf.getInstance():e.instance=zo.getInstance()),e.instance},e.deleteInstance=function(){Jo.deleteInstance(),bf.deleteInstance(),zo.deleteInstance(),e.instance=null},e.instance=null,e}();function Qo(e){return Qo="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},Qo(e)}function Zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zo(Object(n),!0).forEach((function(t){tr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tr(e,t,n){return(t=ir(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nr(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,ir(i.key),i)}}function ir(e){var t=function(e,t){if("object"!=Qo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Qo(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qo(t)?t:String(t)}var or=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.historicalPinnedToMakeVisible=0}var t,n,i;return t=e,i=[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}},{key:"deleteInstance",value:function(){e.instance=null}}],(n=[{key:"init",value:function(e){this.container=e}},{key:"insertPinnedNotificationAtFront",value:function(e){for(var t=this.container.state.visiblePinnedNotificationsCount,n=this.container.state.pinnedNotifications.slice(),i=0;i<e.length;i+=1){var o=e[i];t<ro.PINNED_DEFAULT_VIEW_SIZE?(t+=1,o.isExpandedPinned=!0,n.unshift(o)):(n[t-1].isExpandedPinned=!1,o.isExpandedPinned=!0,n.unshift(o))}this.container.setState((function(n){var i=e.concat(n.pinnedNotifications);return er(er({},n),{},{pinnedNotifications:i,visiblePinnedNotificationsCount:t})}))}},{key:"insertPinnedNotificationAtSpecifiedIndex",value:function(e,t){var n=this.container.state.visiblePinnedNotificationsCount,i=this.container.state.pinnedNotifications.slice();i.splice(e,0,t),e<=n?(n+=1,t.isExpandedPinned=!0):t.isExpandedPinned=!1,this.container.setState((function(e){return er(er({},e),{},{pinnedNotifications:i.slice(),visiblePinnedNotificationsCount:n})}))}},{key:"insertPinnedNotificationAtBack",value:function(e){for(var t=this.container.state.visiblePinnedNotificationsCount,n=this.container.state.pinnedNotifications.slice(),i=0;i<e.length;i+=1){var o=e[i];if(t<ro.PINNED_DEFAULT_VIEW_SIZE){t+=1,o.isExpandedPinned=!0,n.push(o);try{(o.state===ro.NOTIFICATION_STATE_READ||jf.isNotificationStateValidForNew(o.state)&&!0===po.getInstance().isWidgetOpen)&&(po.getInstance().surface&&po.getInstance().surface.toUpperCase()===io.SURFACE_DESKTOP?zo.getInstance().sendAnalyticsForViewOfNotification(o):bf.getInstance().sendAnalyticsForViewOfNotification(o))}catch(e){ie.debug("UNCWidget: NotificationProcessorObject: insertPinnedNotificationAtBack - Error in sending analytics for insertPinnedNotificationAtBack received for render")}}else if(this.historicalPinnedToMakeVisible>0){this.historicalPinnedToMakeVisible=this.historicalPinnedToMakeVisible-1,t+=1,o.isExpandedPinned=!0,n.push(o);try{(o.state===ro.NOTIFICATION_STATE_READ||jf.isNotificationStateValidForNew(o.state)&&!0===po.getInstance().isWidgetOpen)&&(po.getInstance().surface&&po.getInstance().surface.toUpperCase()===io.SURFACE_DESKTOP?zo.getInstance().sendAnalyticsForViewOfNotification(o):bf.getInstance().sendAnalyticsForViewOfNotification(o))}catch(e){ie.debug("UNCWidget: PinnedNotificationsController: insertPinnedNotificationAtBack - Error in sending analytics for insertPinnedNotificationAtBack notification received for render",e)}}else o.isExpandedPinned=!1,n.push(o)}this.container.setState((function(n){var i=n.pinnedNotifications.concat(e);return er(er({},n),{},{pinnedNotifications:i,visiblePinnedNotificationsCount:t})}))}},{key:"removePinnedNotificationAtIndex",value:function(e){var t=!1,n=e;if(-1!==n){var i=this.container.state.visiblePinnedNotificationsCount,o=this.container.state.pinnedNotifications.slice();n<i?(o.splice(n,1),(i-=1)<ro.PINNED_DEFAULT_VIEW_SIZE&&o.length-i>0&&(o[i].isExpandedPinned=!0,i+=1,o.length-i==0&&(t=!0))):o.splice(n,1),this.container.setState((function(e){return er(er({},e),{},{pinnedNotifications:o,visiblePinnedNotificationsCount:i})})),t&&qr.getInstance()._fetchPinnedHistoricalNotifications()}}},{key:"handleButtonClickToFetchMorePinnedNotifications",value:function(e){try{e.eventObject&&(e.eventObject.preventDefault(),e.eventObject.stopImmediatePropagation());var t=!1;try{$o.getInstance().sendAnalyticsForShowMoreRequestsClicked()}catch(e){ie.warn("UNCWidget: PinnedNotificationsController: handleButtonClickToFetchMorePinnedNotifications - Error in sending analytics for Show More Clicked")}if(!0===this.container.state.buttonClickInProgress)return;for(var n=!0,i=this.container.state.visiblePinnedNotificationsCount,o=this.container.state.pinnedNotifications.slice(),r=o.length-i,a=Math.min(r,ro.PINNED_DEFAULT_VIEW_SIZE),s=0;s<a;s+=1){var c=o[i+s];c.isExpandedPinned=!0;try{(c.state===ro.NOTIFICATION_STATE_READ||jf.isNotificationStateValidForNew(c.state)&&!0===po.getInstance().isWidgetOpen)&&(po.getInstance().surface&&po.getInstance().surface.toUpperCase()===io.SURFACE_DESKTOP?zo.getInstance().sendAnalyticsForViewOfNotification(c):bf.getInstance().sendAnalyticsForViewOfNotification(c))}catch(e){ie.debug("UNCWidget: PinnedNotificationsController: handleButtonClickToFetchMorePinnedNotifications - Error in sending analytics for handleButtonClickToFetchMorePinnedNotifications notification received for render",e)}}i+=a,a<ro.PINNED_DEFAULT_VIEW_SIZE&&this.container.state.pinnedHistoricalNotificationsAvailable?(this.historicalPinnedToMakeVisible=ro.PINNED_DEFAULT_VIEW_SIZE-a,t=!0):n=!1,this.container.setState((function(e){return er(er({},e),{},{pinnedNotifications:o,visiblePinnedNotificationsCount:i,buttonClickInProgress:n})})),t&&qr.getInstance()._fetchPinnedHistoricalNotifications()}catch(e){ie.warn("UNCWidget: PinnedNotificationsController: handleButtonClickToFetchMorePinnedNotifications - Failed in rendering the notification")}}},{key:"getPinnedNotifications",value:function(){return this.container.state.pinnedNotifications}}])&&nr(t.prototype,n),i&&nr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function rr(e){return rr="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},rr(e)}function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach((function(t){cr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cr(e,t,n){return(t=ur(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lr(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,ur(i.key),i)}}function ur(e){var t=function(e,t){if("object"!=rr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=rr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rr(t)?t:String(t)}var fr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultState={notifications:[],pinnedNotifications:[],holdNotificationsIds:[],pinnedNotificationIdsInNormalContainer:[],visiblePinnedNotificationsCount:0,showUndoBanner:!1,requestDismissedNotifCount:0,timelineDismissedNotifCount:0,showFetchingSpinner:!1,pinnedHistoricalNotificationsAvailable:!0,buttonClickInProgress:!1,locale:"en_US",theme:"light",selectedFilter:{filterID:io.EVERYTHING,value:io.EVERYTHING},showFetchingSpinnerInCaseOfSearchCall:!1},this.scrollPositionOnTop=!0}var t,n,i;return t=e,n=[{key:"init",value:function(e){ie.debug("UNCWidget: NotificationsController: init -> isShowWidgetRequestPending val:",po.getInstance().isShowWidgetRequestPending),this.container=e,po.getInstance().isShowWidgetRequestPending&&(ie.debug("UNCWidget: NotificationsController: init- handling pending unc open widget request"),po.getInstance().isShowWidgetRequestPending=!1,this.showWidget())}},{key:"showWidget",value:function(e){try{var t=this.container.provider;t?t.show(e):(ie.debug("UNCWidget: NotificationsController: showWidget- providerRef did not created"),po.getInstance().isShowWidgetRequestPending=!0)}catch(e){ie.debug("UNCWidget: NotificationsController: showWidget- failed with exception: ",e),po.getInstance().isShowWidgetRequestPending=!0}}},{key:"hideWidget",value:function(){var e=this.container.provider;e&&e.hide()}},{key:"getNotificationById",value:function(e){return this.container.notificationsIdVsObjMap.get(e)}},{key:"getAllNotifications",value:function(){return this.container.notificationsIdVsObjMap}},{key:"reloadNotifications",value:function(){this.container.setState((function(e){return sr(sr({},e),{},{notifications:e.notifications.slice(),pinnedNotifications:e.pinnedNotifications.slice()})}))}},{key:"reloadAfterLocaleChange",value:function(e){this.container&&this.container.setState(sr(sr({},this.state),{},{locale:e}))}},{key:"updateTheme",value:function(e){this.container&&(e===io.EXPRESS_THEME&&(po.getInstance().isExpressTheme=!0,e=io.DEFAULT_THEME),this.container.setState(sr(sr({},this.state),{},{theme:e})))}},{key:"renderNewNotifications",value:function(e){ie.debug("UNCWidget: NotificationsController: renderNewNotifications - adding new notifications",e);var t=e.notifications.notification;t.reverse();for(var n=[],i=[],o=[],r=[],a=0;a<t.length;a+=1)this.container.notificationsIdVsObjMap.set(t[a].id,t[a]),po.getInstance().isWidgetOpen?i.push(t[a].id):(n.unshift(t[a]),t[a].isPinned&&(r.unshift(t[a]),o.unshift(t[a].id)));this.container.setState((function(e){var t=n.concat(e.notifications),r=e.holdNotificationsIds.concat(i),a=o.concat(e.pinnedNotificationIdsInNormalContainer);return sr(sr({},e),{},{notifications:t,holdNotificationsIds:r,pinnedNotificationIdsInNormalContainer:a})})),r.length>0&&or.getInstance().insertPinnedNotificationAtFront(r)}},{key:"renderNewNotificationInBetweenIfApplicable",value:function(e){ie.debug("UNCWidget: NotificationsController: renderNewNotifications - adding new notifications in between",e);for(var t=this.container.state.notifications.slice(),n=this.container.state.pinnedNotificationIdsInNormalContainer.slice(),i=this.container.state.pinnedNotifications.slice(),o=t.length,r=0;r<t.length;r+=1)if(e.renderingOrderTimestamp>t[r].renderingOrderTimestamp){o=r;break}if(o!==t.length&&(this.container.notificationsIdVsObjMap.set(e.id,e),t.splice(o,0,e),e.isPinned&&n.push(e.id)),this.container.setState((function(e){return sr(sr({},e),{},{notifications:t.slice(),pinnedNotificationIdsInNormalContainer:n.slice()})})),e.isPinned){o=i.length;for(var a=0;a<i.length;a+=1)if(e.renderingOrderTimestamp>i[a].renderingOrderTimestamp){o=a;break}o!==i.length&&or.getInstance().insertPinnedNotificationAtSpecifiedIndex(o,e)}}},{key:"removeNotificationWithId",value:function(e){var t=this.getNotificationById(e),n=this.container.state.holdNotificationsIds.indexOf(e),i=this.container.state.pinnedNotificationIdsInNormalContainer.indexOf(e),o=this.container.state.pinnedNotificationIdsInNormalContainer.length,r=this.container.state.notifications.indexOf(t),a=this.container.state.notifications.length,s=this.container.state.pinnedNotifications.indexOf(t);this.container.setState((function(e){var t=e.notifications,o=e.holdNotificationsIds,a=e.pinnedNotificationIdsInNormalContainer;return r>-1&&(t=t.slice()).splice(r,1),n>-1&&(o=o.slice()).splice(n,1),i>-1&&(a=a.slice()).splice(i,1),sr(sr({},e),{},{notifications:t,holdNotificationsIds:o,pinnedNotificationIdsInNormalContainer:a})})),s>-1&&or.getInstance().removePinnedNotificationAtIndex(s),this.container.notificationsIdVsObjMap.delete(e),r>-1&&-1===i&&a-o-1<(jf.isDeviceTypeMobile()?10:8)&&qr.getInstance().fetchHistoricalNotifications()}},{key:"updateExistingNotifications",value:function(e){try{for(var t=e.notifications.notification,n=0;n<t.length;n+=1){var i=t[n].id;if(this.container.notificationsIdVsObjMap.has(i)){var o=this.getNotificationById(i);o.state=t[n].state,o.timeString=t[n].timeString,o.isPinned=t[n].isPinned}}this.container.setState((function(e){return sr(sr({},e),{},{notifications:e.notifications.slice(),pinnedNotifications:e.pinnedNotifications.slice()})}))}catch(e){ie.warn("UNCWidget: NotificationUXController: updateExistingNotifications - Failed in updating the existing notifications")}}},{key:"removeNotificationFromPinnedListInNormalActivityContainer",value:function(e){try{if(e){var t=this.container.state.pinnedNotificationIdsInNormalContainer.indexOf(e);t>-1&&this.container.setState((function(e){var n=e.pinnedNotificationIdsInNormalContainer.slice();return n.splice(t,1),sr(sr({},e),{},{pinnedNotificationIdsInNormalContainer:n})}))}}catch(e){ie.warn("UNCWidget: NotificationsController: removeNotificationFromPinnedListInNormalActivityContainer - Failed in removing the notification from list")}}},{key:"renderHistoricalNotifications",value:function(e){ie.debug("UNCWidget: NotificationsController: renderHistoricalNotifications - adding historical notifications",e);try{for(var t=e.notifications.notification,n=[],i=[],o=0;o<t.length;o+=1)this.container.notificationsIdVsObjMap.set(t[o].id,t[o]),n.push(t[o]),t[o].isPinned&&i.push(t[o].id);this.container.setState((function(e){var t=e.notifications.concat(n),o=e.pinnedNotificationIdsInNormalContainer.concat(i);return sr(sr({},e),{},{notifications:t,pinnedNotificationIdsInNormalContainer:o})}))}catch(e){ie.warn("UNCWidget: NotificationUXController: renderHistoricalNotifications - Failed in rendering historical notifications")}}},{key:"renderPinnedHistoricalNotifications",value:function(e){var t=[];this.container.setState(sr(sr({},this.state),{},{buttonClickInProgress:!1}));for(var n=e.notifications.notification,i=0;i<n.length;i+=1)n[i].isPinned&&(this.container.notificationsIdVsObjMap.set(n[i].id,n[i]),t.push(n[i]));or.getInstance().insertPinnedNotificationAtBack(t)}},{key:"handlePinStateAndTimeStampUpdateForNotifications",value:function(e){try{for(var t=e.notifications.notification,n=0;n<t.length;n+=1){var i=t[n]["notification-id"],o=this.getNotificationById(i);Object.prototype.hasOwnProperty.call(t[n],"isNotificationDismissed")&&(o.isNotificationDismissed=t[n].isNotificationDismissed),t[n].state&&(o.state=t[n].state),t[n].timeString&&(o.timeString=t[n].timeString)}this.container.setState((function(e){return sr(sr({},e),{},{notifications:e.notifications.slice(),pinnedNotifications:e.pinnedNotifications.slice()})}))}catch(e){ie.warn("UNCWidget: NotificationUXController: handlePinStateAndTimeStampUpdateForNotifications - Failed in updating the notification")}}},{key:"handleUnpinClickForNotificationId",value:function(){}},{key:"triggerShowingHoldFeedNotifications",value:function(){try{var e=this.container.state.holdNotificationsIds,t=[],n=[],i=[];if(e.length>0){for(var o=0;o<e.length;o+=1){var r=e[o];if(this.container.notificationsIdVsObjMap.has(r)){var a=this.getNotificationById(r);t.unshift(a),a.isPinned&&(i.unshift(a),n.unshift(r))}}this.container.setState((function(e){var i=t.concat(e.notifications),o=n.concat(e.pinnedNotificationIdsInNormalContainer);return sr(sr({},e),{},{notifications:i,holdNotificationsIds:[],pinnedNotificationIdsInNormalContainer:o})})),i.length>0&&or.getInstance().insertPinnedNotificationAtFront(i)}}catch(e){ie.warn("UNCWidget: NotificationUXController: triggerShowingHoldFeedNotifications - Failed in triggering showing hold feed notifications")}}},{key:"initializeWithDefault",value:function(){var e=this;this.container.setState((function(t){return sr(sr(sr({},t),e.defaultState),{},{theme:po.getInstance().theme})})),this.container.notificationsIdVsObjMap=null}}],i=[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}},{key:"deleteInstance",value:function(){e.instance=null}}],n&&lr(t.prototype,n),i&&lr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function dr(e){return dr="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},dr(e)}function pr(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,hr(i.key),i)}}function hr(e){var t=function(e,t){if("object"!=dr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=dr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dr(t)?t:String(t)}var gr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._newStateTimelineNotificationsMap=new Map,this._acceptRejectCompleteNotifications=[]}var t,n,i;return t=e,i=[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}},{key:"deleteInstance",value:function(){e.instance=null}}],(n=[{key:"insertInNewStateNotificationsHandler",value:function(e,t){try{return!!t&&(jf.isNotificationStateValidForNew(t.state)&&(this._newStateTimelineNotificationsMap.has(e)||this._newStateTimelineNotificationsMap.set(e,t)),!0)}catch(e){return ie.warn("UNCWidget: NewStateNotificationsHandler: insertInNewStateNotificationsHandler - Failed in inserting new notification in map"),!1}}},{key:"insertInAcceptRejectCompleteNotificationsArray",value:function(e){try{this._acceptRejectCompleteNotifications.push(e)}catch(e){ie.warn("UNCWidget: NewStateNotificationsHandler: insertInAcceptRejectCompleteNotificationsArray - Failed in inserting in accept/reject complete notifications array")}}},{key:"removeNotificationFromNewStateNotificationsHandler",value:function(e){try{return this._newStateTimelineNotificationsMap.has(e)&&this._newStateTimelineNotificationsMap.delete(e),!0}catch(e){ie.warn("UNCWidget: NewStateNotificationsHandler: removeNotificationFromNewStateNotificationsHandler - Failed in removing notification from new state notifications handler")}return!1}},{key:"sendAnalyticsForRenderOfNotificationsInNewState",value:function(){try{this._newStateTimelineNotificationsMap.size>0&&this._newStateTimelineNotificationsMap.forEach((function(e,t){var n=fr.getInstance().container.notificationsIdVsObjMap.get(t);if(jf.isNotificationStateValidForNew(n.state)&&!n.viewEventSent)try{$o.getInstance().sendAnalyticsForViewOfNotification(n)}catch(e){ie.warn("UNCWidget: NewStateNotificationsHandler: sendAnalyticsForRenderOfNotificationsInNewState - Error in sending analytics for view of notifications")}}))}catch(e){ie.warn("UNCWidget: NewStateNotificationsHandler: sendAnalyticsForRenderOfNotificationsInNewState - Failed in sending render for notifications in new state")}}},{key:"clearContrastForAllAvailableNotifications",value:function(){try{if(this._newStateTimelineNotificationsMap.size>0){var e={},t=[],n=[];e.notifications={},this._newStateTimelineNotificationsMap.forEach((function(e,i){var o=fr.getInstance().container.notificationsIdVsObjMap.get(i);if(jf.isNotificationStateValidForNew(o.state)){o.state=ro.NOTIFICATION_STATE_READ;var r={};r["notification-id"]=o.id,r.state=o.state,n.push(r),t.push(o)}})),n.length>0&&(this._newStateTimelineNotificationsMap.clear(),e.notifications.notification=n,ie.debug("UNCWidget: NewStateNotificationsHandler: clearContrastForAllAvailableNotifications - Sending data to update New notifications state on move out",e),fr.getInstance().handlePinStateAndTimeStampUpdateForNotifications(e),zr.getInstance().sendMessage(io.UPDATE_NOTIFICATIONS_DATA,{content:JSON.stringify(e)}))}}catch(e){ie.warn("UNCWidget: NewStateNotificationsHandler: clearContrastForAllAvailableNotifications - Failed in clearing contrast for all applicable notifications")}}},{key:"removeAllAcceptedOrRejectedInvitations",value:function(){try{if(this._acceptRejectCompleteNotifications.length>0)for(var e=0;e<this._acceptRejectCompleteNotifications.length;e+=1){var t=fr.getInstance().container.notificationsIdVsObjMap.get(this._acceptRejectCompleteNotifications[e]);t&&t.removeNotification()}this._acceptRejectCompleteNotifications.length=0}catch(e){ie.warn("UNCWidget: NewStateNotificationsHandler: removeAllAcceptedOrRejectedInvitations - Failed in removing accepted rejected invites")}}},{key:"handleNotificationClickOperationForId",value:function(e){try{if(this._newStateTimelineNotificationsMap.has(e)){var t={},n=[];t.notifications={};var i=fr.getInstance().container.notificationsIdVsObjMap.get(e);if(!jf.isNotificationStateValidForNew(i.state))return;i.state=ro.NOTIFICATION_STATE_READ;var o={};o["notification-id"]=i.id,o.state=i.state,n.push(o),t.notifications.notification=n,this._newStateTimelineNotificationsMap.delete(e),ie.debug("UNCWidget: NewStateNotificationsHandler: handleNotificationClickOperationForId - Sending data to update notifications on click",t),fr.getInstance().handlePinStateAndTimeStampUpdateForNotifications(t),zr.getInstance().sendMessage(io.UPDATE_NOTIFICATIONS_DATA,{content:JSON.stringify(t)})}}catch(t){ie.warn("UNCWidget: NewStateNotificationsHandler: handleNotificationClickOperationForId - Failed in handling the click operation for ID:",e)}}}])&&pr(t.prototype,n),i&&pr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function mr(e){return mr="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},mr(e)}function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yr(Object(n),!0).forEach((function(t){br(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function br(e,t,n){return(t=Cr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Cr(i.key),i)}}function Cr(e){var t=function(e,t){if("object"!=mr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=mr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mr(t)?t:String(t)}var Sr=function(){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.setIDForNotificationToBeDismissed=function(e,n,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3e3;""!==t.notificationIDToBeDismissed&&t.handleTimeOutForUndoOperation(),t.notificationIDToBeDismissed=e,t.notificationIDToBeDismissedCallback=setTimeout(t.handleTimeOutForUndoOperation,o),n?t.container.setState(vr(vr({},t.state),{},{showUndoBanner:i,requestDismissedNotifCount:1})):t.container.setState(vr(vr({},t.state),{},{showUndoBanner:i,timelineDismissedNotifCount:1}))},this.handleTimeOutForUndoOperation=function(){var e=t.container.notificationsIdVsObjMap.get(t.notificationIDToBeDismissed);e&&(t.notificationIDToBeDismissed="",clearTimeout(t.notificationIDToBeDismissedCallback),e.removeNotification(),t.container.setState(vr(vr({},t.state),{},{showUndoBanner:!1,requestDismissedNotifCount:0,timelineDismissedNotifCount:0})))},this.handleUndoClick=function(e){if(e.preventDefault(),e.stopPropagation(),t.container.setState(vr(vr({},t.state),{},{showUndoBanner:!1,requestDismissedNotifCount:0,timelineDismissedNotifCount:0})),""!==t.notificationIDToBeDismissed){var n=t.container.notificationsIdVsObjMap.get(t.notificationIDToBeDismissed);t.notificationIDToBeDismissed="",clearTimeout(t.notificationIDToBeDismissedCallback),n.handleUndoClickForNotification()}},ie.debug("UNCWidget: DismissedNotificationController: DismissedNotificationController is being constructed"),this.notificationIDToBeDismissed="",this.notificationIDToBeDismissedCallback=""}var t,n,i;return t=e,i=[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}},{key:"deleteInstance",value:function(){e.instance=null}}],(n=[{key:"init",value:function(e){this.container=e}}])&&_r(t.prototype,n),i&&_r(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Er(e){return Er="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},Er(e)}function Nr(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Or(i.key),i)}}function Or(e){var t=function(e,t){if("object"!=Er(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Er(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Er(t)?t:String(t)}Sr.instance=null;var Tr=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._downloadAssetURL=t,this._assetRegion=n,this.notificationAssetId="",this.notificationAssetLocation="",this.notificationMappedAssetId="",this.baseURL="","prod"===po.getInstance().env.toLowerCase()?this.baseURL=po.getInstance().ccAssetsServerURL:this.baseURL=po.getInstance().stageCCAssetsServerURL}var t,n,i;return t=e,(n=[{key:"_getAssetIDAndLocation",value:function(){var e=!1;if(this._downloadAssetURL.length>0){var t={};-1!==this._downloadAssetURL.indexOf("#")||(t=this._downloadAssetURL);for(var n=t.slice(t.indexOf("?")+1).split("&"),i=0;i<n.length;i+=1){var o=n[i];if(-1!==o.indexOf("location=")){this.notificationAssetLocation=o.slice(o.indexOf("=")+1);var r=this.notificationAssetLocation;this.notificationAssetId=r.slice(r.lastIndexOf("/")+1),e=!0}}}return e}},{key:"_getMappedAssetId",value:function(){var e="";""!==this._assetRegion?e=this._assetRegion:-1!==this.notificationAssetLocation.indexOf("us1")?e="US":-1!==this.notificationAssetLocation.indexOf("eu1")?e="EU":-1!==this.notificationAssetLocation.indexOf("ap1")&&(e="AP"),this.notificationMappedAssetId="".concat(e,"/").concat(this.notificationAssetId)}},{key:"downloadAssetThumbnailIcon",value:function(){if(!this._getAssetIDAndLocation())return!1;this._getMappedAssetId();var e=this,t=zr.getInstance().sendMessage(io.GET_USER_PROFILE,{},io.CLIENT_TARGET_TYPE,"",!1);return!(!t||void 0===t.AccessToken||""===t.AccessToken)&&new Promise((function(n,i){var o={hostname:"".concat(e.baseURL,"/resolve?id=").concat(e.notificationMappedAssetId),methodType:"HEAD",responseCallback:function(t){ie.debug("UNCWidget: IconDownloader: downloadAssetThumbnailIcon - Promise response handler",t);var o=e.uriHttpComm.GetResponseHeaders();e.assetURI=o["content-location"],e.assetURI||(e.assetURI=o["Content-Location"]),e.assetURI+="/:rendition;size=104",e._downloadThumbnailIconForURI(e.assetURI).then((function(e){n(e)})).catch((function(e){i(e)}))}.bind(e),errorCallback:function(e){ie.debug("UNCWidget: IconDownloader: downloadAssetThumbnailIcon - Error response handler",e),i(e)}.bind(e)};e.uriHttpComm=new ne(o);var r={content:"test"};r.requestHeaders={"x-api-key":po.getInstance().imsClientID,Authorization:"Bearer ".concat(t.AccessToken)},e.uriHttpComm.SendRequest(r)}))}},{key:"_downloadThumbnailIconForURI",value:function(e){var t=this,n=zr.getInstance().sendMessage(io.GET_USER_PROFILE,{},io.CLIENT_TARGET_TYPE,"",!1);return void 0!==n.AccessToken&&""!==n.AccessToken&&new Promise((function(i,o){var r={hostname:t.baseURL+e,methodType:"GET",responseCallback:function(e){i(e)}.bind(t),errorCallback:function(e){ie.debug("UNCWidget: IconDownloader: _downloadThumbnailIconForURI - Error response handler",e),o(e)}.bind(t)};t.httpComm=new ne(r);var a={};a.requestHeaders={"x-api-key":po.getInstance().imsClientID,Authorization:"Bearer ".concat(n.AccessToken),Accept:"image/png, image/jpeg, image/jpg, application/pdf, text/html, text/plain, */*;q=0.1"},a.responseType="blob",t.httpComm.SendRequest(a)}))}}])&&Nr(t.prototype,n),i&&Nr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ir(e){return Ir="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},Ir(e)}function wr(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ar(i.key),i)}}function Ar(e){var t=function(e,t){if("object"!=Ir(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Ir(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ir(t)?t:String(t)}var kr=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._renditionURI=t,this._isAuthenticated=n}var t,n,i;return t=e,(n=[{key:"downloadThumbnailIconForURI",value:function(){var e,t=this,n=this;return(!this._isAuthenticated||void 0!==(e=zr.getInstance().sendMessage(io.GET_USER_PROFILE,{},io.CLIENT_TARGET_TYPE,"",!1)).AccessToken&&""!==e.AccessToken)&&new Promise((function(i,o){var r={hostname:t._renditionURI,methodType:"GET",responseCallback:function(e){i(e)}.bind(n),errorCallback:function(e){ie.debug("UNCWidget: IconDownloaderWithRendition: downloadThumbnailIconForURI - Error response handler",e),o(e)}.bind(n)};n.httpComm=new ne(r);var a={};a.requestHeaders={"x-api-key":po.getInstance().imsClientID},t._isAuthenticated&&(a.requestHeaders.Authorization="Bearer ".concat(e.AccessToken)),a.responseType="blob",n.httpComm.SendRequest(a)}))}}])&&wr(t.prototype,n),i&&wr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Dr=(0,Xe.getDefaultWhiteList)(),Pr=["ssoenabled","ssotargetclientid","ssotargetscope","openinsametab"],Rr={whiteList:Dr,stripIgnoreTag:!0,stripIgnoreTagBody:["script"],onIgnoreTagAttr:function(e,t,n){var i=t.toLowerCase();if(Pr.includes(i))return"".concat(i,'="').concat(Je().escapeAttrValue(n),'"')}};function xr(e){return Je()(e,Rr)}function Fr(e){return Fr="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},Fr(e)}function Lr(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ur(i.key),i)}}function Ur(e){var t=function(e,t){if("object"!=Fr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Fr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fr(t)?t:String(t)}var jr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,n=[{key:"initializeObjectWithJson",value:function(e){ie.debug("UNCWidget: NotificationBaseObject: initializeObjectWithJson - initializing notification object with incoming json");try{if(this.viewEventSent=!1,this.id=e["notification-id"],this.type=e.type,this.subType=e["sub-type"],this.state=e.state,void 0!==e.payload["tracking-system-payload"]&&(this.trackingSystemPayload=e.payload["tracking-system-payload"]),void 0!==e.payload["content-source-id"]&&(this.contentSourceId=e.payload["content-source-id"]),this.renderingOrderTimestamp=parseInt(e[ro.TIMESTAMP_KEY],10),this.modifiedTimestamp=parseInt(e.timestamp,10),!this.payloadUpdatedByHost){var t="object"===Fr(e.payload)?e.payload:JSON.parse(e.payload);if(!t.timeline)return ie.debug("UNCWidget: NotificationBaseObject: initializeObjectWithJson - notification does not have proper payload as timeline object is not there, therefore ignoring"),!1;if(this.payload=t,!t.timeline.viewtype||-1===io.SUPPORTED_VIEW_TYPES.indexOf(t.timeline.viewtype))return ie.debug("UNCWidget: NotificationBaseObject: initializeObjectWithJson - notification does not have proper view type and therefore ignoring"),!1;this.viewtype=t.timeline.viewtype}if(!jf.checkIfThisTypeSubtypeIsSupported(this.type,this.subType))return ie.debug("UNCWidget: NotificationBaseObject: initializeObjectWithJson - notification for this type and subtype is not supported therefore ignoring",this.type,this.subType),!1;if(!jf.isNotificationValidForSurface(this.payload))return!1;this.payload.timeline.content&&""!==this.payload.timeline.content&&(this.payload.timeline.content=xr(this.payload.timeline.content)),this.payload.timeline.additionalMenuItems&&(this.additionalMenuItems=this.payload.timeline.additionalMenuItems),this.payload.timeline.commentSection&&this.payload.timeline.commentSection.content&&""!==this.payload.timeline.commentSection.content&&(this.payload.timeline.commentSection.content=xr(this.payload.timeline.commentSection.content));var n=this.payload.timeline.commentSection;if(n&&n.icons&&n.icons.length>0)if(n.icons[0].shouldDownload&&"true"===n.icons[0].shouldDownload.toString().toLowerCase()||n.icons[0].renditionUrl){var i=jf.getBasePathForResources()+po.getInstance().imagePathMap["./2x/project-placeholder.png"];this.projectIconForCommentNotification||(this.projectIconForCommentNotification=i),this.downloadAppropriateProjectIcon()}else this.projectIconForCommentNotification=n.icons[0].iconURL;this.payload.timeline.pinnedCategory?this.isPinned="true"===this.payload.timeline.pinnedCategory.toString().toLowerCase():this.isPinned=!1,this.payload.timeline.announcementNotification?this.isAnnouncementNotification="true"===this.payload.timeline.announcementNotification.toString().toLowerCase():this.isAnnouncementNotification=!1,this.payload.timeline.announcementExpiryDate?this.announcementExpiryDate=new Date(this.payload.timeline.announcementExpiryDate.toString().toLowerCase()):this.announcementExpiryDate=null;var o=Oo.initializeEventNotification(this.payload.timeline);if(o.isEventType){if(!o.eventNotificationData)return!1;this.eventNotificationData=o.eventNotificationData}return e.metadata&&e.metadata["tracking-system-payload"]&&""!==e.metadata["tracking-system-payload"]&&(this.trackingSystemPayload=e.metadata["tracking-system-payload"]),this.payload["tracking-system-payload"]&&""!==this.payload["tracking-system-payload"]&&(this.trackingSystemPayload=this.payload["tracking-system-payload"]),this.payload["content-source-id"]&&""!==this.payload["content-source-id"]&&(this.contentSourceId=this.payload["content-source-id"]),this.userIconDetails=jf.getAvatarIconURLAndServiceIconInfo(this.payload.timeline,this.type,this.subType),this.timeString=jf.getTimeStringToShowOnUI(this.renderingOrderTimestamp),void 0===this.isExpandedPinned&&(this.isExpandedPinned=!0),void 0===this.isNotificationDismissed&&(this.isNotificationDismissed=!1),!0}catch(e){return ie.debug("UNCWidget: NotificationBaseObject: initializeObjectWithJson - Invalid notification received and therefore ignoring it:",e),!1}}},{key:"handleNotificationClickAction",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])try{$o.getInstance().sendAnalyticsForNotificationAction(this,"markRead")}catch(e){ie.warn("UNCWidget: NotificationBaseObject: markNotificationAsUnread - Error in sending analytics for markAsUnread clicked")}gr.getInstance().handleNotificationClickOperationForId(this.id)}},{key:"markNotificationAsUnread",value:function(){try{$o.getInstance().sendAnalyticsForNotificationAction(this,"markUnread")}catch(e){ie.warn("UNCWidget: NotificationBaseObject: markNotificationAsUnread - Error in sending analytics for markAsUnread clicked")}var e={},t=[];e.notifications={},this.state=ro.NOTIFICATION_STATE_UNREAD;var n={};n["notification-id"]=this.id,n.state=this.state,t.push(n),e.notifications.notification=t,ie.debug("UNCWidget: NewStateNotificationsHandler: handleNotificationClickOperationForId - Sending data to update notifications on click",e),gr.getInstance().insertInNewStateNotificationsHandler(this.id,this),fr.getInstance().handlePinStateAndTimeStampUpdateForNotifications(e),zr.getInstance().sendMessage(io.UPDATE_NOTIFICATIONS_DATA,{content:JSON.stringify(e)})}},{key:"removeNotification",value:function(){var e={},t=[];e.notifications={};var n={};gr.getInstance().removeNotificationFromNewStateNotificationsHandler(this.id),fr.getInstance().removeNotificationWithId(this.id),n["notification-id"]=this.id,n.state=ro.NOTIFICATION_STATE_EXPIRED,t.push(n),e.notifications.notification=t,ie.debug("UNCWidget: NotificationBaseObject: removeNotification - Sending data to server to update notification state to Expired to remove it",e),zr.getInstance().sendMessage(io.UPDATE_NOTIFICATIONS_DATA,{content:JSON.stringify(e)})}},{key:"handleDismissClickForNotification",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3;try{$o.getInstance().sendAnalyticsForNotificationAction(this,"dismiss")}catch(e){ie.warn("UNCWidget: NotificationBaseObject: handleDismissClickForNotification - Error in sending analytics for dismiss clicked")}this.isNotificationDismissed=!0;var n={},i=[];n.notifications={};var o={};o["notification-id"]=this.id,o.isNotificationDismissed=!0,i.push(o),n.notifications.notification=i,ie.debug("UNCWidget: NotificationBaseObject: handleDismissClickForNotification - Sending data to render engine to update state to dismissed on invite dismiss click",n),fr.getInstance().handlePinStateAndTimeStampUpdateForNotifications(n),Sr.getInstance().setIDForNotificationToBeDismissed(this.id,this.isPinned,e,t)}},{key:"handleUndoClickForNotification",value:function(){try{$o.getInstance().sendAnalyticsForNotificationAction(this,"undo")}catch(e){ie.warn("UNCWidget: NotificationBaseObject: handleUndoClickForNotification - Error in sending analytics for undo clicked")}this.isNotificationDismissed=!1;var e={},t=[],n={},i=[],o=this.state;this.state=ro.NOTIFICATION_STATE_READ,n.notifications={},e.notifications={};var r={},a={};a["notification-id"]=this.id,r["notification-id"]=this.id,a.state=ro.NOTIFICATION_STATE_READ,r.state=ro.NOTIFICATION_STATE_READ,r.isNotificationDismissed=!1,t.push(r),i.push(a),n.notifications.notification=i,e.notifications.notification=t,fr.getInstance().handlePinStateAndTimeStampUpdateForNotifications(e),jf.isNotificationStateValidForNew(o)&&zr.getInstance().sendMessage(io.UPDATE_NOTIFICATIONS_DATA,{content:JSON.stringify(n)})}},{key:"handleNotificationClickActionAnalytics",value:function(){try{$o.sendAnalyticsForNotificationAction(this,"passToHostClient")}catch(e){ie.warn("UNCWidget: NotificationBaseObject: passToHostClient - Error in sending analytics for notification click")}}},{key:"handlePinClickForNotification",value:function(){try{$o.getInstance().sendAnalyticsForNotificationAction(this,"unpin")}catch(e){ie.warn("UNCWidget: NotificationBaseObject: handlePinClickForNotification - Error in sending analytics for unpin clicked")}var e={},t={},n=[],i=[];e.notifications={},t.notifications={},this.isPinned=!1;var o={},r={};o["notification-id"]=this.id,r["notification-id"]=this.id,o.metadata={},o.metadata.pinned="false",r.pinned=!1,jf.isNotificationStateValidForNew(this.state)&&(this.state=ro.NOTIFICATION_STATE_READ,o.state=ro.NOTIFICATION_STATE_READ,r.state=ro.NOTIFICATION_STATE_READ,gr.getInstance().removeNotificationFromNewStateNotificationsHandler(this.id)),n.push(o),i.push(r),e.notifications.notification=n,t.notifications.notification=i,fr.getInstance().handlePinStateAndTimeStampUpdateForNotifications(t),zr.getInstance().sendMessage(io.UPDATE_NOTIFICATIONS_DATA,{content:JSON.stringify(e)})}},{key:"takeActionOnPrimarySecondaryClick",value:function(e){if(this.state!==ro.NOTIFICATION_STATE_PROGRESS){if(e===io.PRIMARY_CLICKED)try{$o.getInstance().sendAnalyticsForNotificationAction(this,"accept")}catch(e){ie.warn("UNCWidget: NotificationBaseObject: takeActionOnAcceptRejectClick - Error in sending analytics for accept clicked")}else if(e===io.SECONDARY_CLICKED)try{$o.getInstance().sendAnalyticsForNotificationAction(this,"decline")}catch(e){ie.warn("UNCWidget: NotificationBaseObject: takeActionOnAcceptRejectClick - Error in sending analytics for accept clicked")}this.state=ro.NOTIFICATION_STATE_PROGRESS;var t={notifications:{notification:[{"notification-id":this.id,state:this.state}]}};if(fr.getInstance().handlePinStateAndTimeStampUpdateForNotifications(t),e===io.PRIMARY_CLICKED){if(this.payload.timeline.acceptRequestDetails){var n=new Fo(this.payload.timeline.acceptRequestDetails),i=this,o=n.executeRequest();if(!1===o){this.state=ro.NOTIFICATION_STATE_READ;var r={notifications:{notification:[{"notification-id":this.id,state:this.state}]}};return void fr.getInstance().handlePinStateAndTimeStampUpdateForNotifications(r)}o.then((function(e){ie.debug("UNCWidget: NotificationBaseObject: takeActionOnAcceptRejectClick - Accept Clicked Promise success:",JSON.stringify(e)),i.state=ro.NOTIFICATION_STATE_ACCEPT_COMPLETE,i.inviteAccepted=!0;var t={},n=[];t.notifications={};var o={};if(o["notification-id"]=i.id,o.state=i.state,n.push(o),t.notifications.notification=n,po.getInstance().hostCallBackFn&&"function"==typeof po.getInstance().hostCallBackFn){var r={message:"UNCInviteAccepted"},a={};a.id=i.id,a.type=i.type,a.subType=i.subType,r.data=a;try{po.getInstance().hostCallBackFn(r)}catch(e){ie.warn("UNCWidget: NotificationBaseObject: takeActionOnAcceptRejectClick - Exception while invoking hostCallBack for invite acceptance",e)}}fr.getInstance().handlePinStateAndTimeStampUpdateForNotifications(t),gr.getInstance().insertInAcceptRejectCompleteNotificationsArray(i.id)})).catch((function(e){ie.debug("UNCWidget: NotificationBaseObject: takeActionOnAcceptRejectClick - Accept Clicked Promise error:",JSON.stringify(e)),e.statusCode&&i._handleErrorOfAcceptRejectNotification(e)}))}}else if(e===io.SECONDARY_CLICKED){if(this.payload.timeline.rejectRequestDetails){var a=new Fo(this.payload.timeline.rejectRequestDetails),s=this;a.executeRequest().then((function(e){ie.debug("UNCWidget: NotificationBaseObject: takeActionOnAcceptRejectClick - Reject Clicked Promise success:",JSON.stringify(e)),s.state=ro.NOTIFICATION_STATE_REJECT_COMPLETE,s.inviteRejected=!0;var t={},n=[];t.notifications={};var i={};i["notification-id"]=s.id,i.state=s.state,n.push(i),t.notifications.notification=n,fr.getInstance().handlePinStateAndTimeStampUpdateForNotifications(t),gr.getInstance().insertInAcceptRejectCompleteNotificationsArray(s.id)})).catch((function(e){ie.debug("UNCWidget: NotificationBaseObject: takeActionOnAcceptRejectClick - Reject Clicked Promise error:",JSON.stringify(e)),e.statusCode&&s._handleErrorOfAcceptRejectNotification(e)}))}}else ie.debug("UNCWidget: NotificationBaseObject: takeActionOnAcceptRejectClick - invalid operation requested")}else ie.debug("UNCWidget: NotificationBaseObject: takeActionOnAcceptRejectClick - Already handling the accept reject click for this and therefore ignoring further actions")}},{key:"_handleErrorOfAcceptRejectNotification",value:function(e){var t=e.statusCode,n={},i=[];n.notifications={};var o={};401===t?e.accessTokenSent&&!0===e.accessTokenSent?(o["notification-id"]=this.id,o.state=ro.NOTIFICATION_STATE_READ,i.push(o),n.notifications.notification=i,ie.debug("UNCWidget: NotificationBaseObject: takeActionOnAcceptRejectClick - Sending data to render engine to update notification state as Read on accept reject 401 error",n),fr.getInstance().handlePinStateAndTimeStampUpdateForNotifications(n)):(gr.getInstance().removeNotificationFromNewStateNotificationsHandler(this.id),fr.getInstance().removeNotificationWithId(this.id),o["notification-id"]=this.id,o.state=ro.NOTIFICATION_STATE_EXPIRED,i.push(o),n.notifications.notification=i,ie.debug("UNCWidget: NotificationBaseObject: takeActionOnAcceptRejectClick - Sending data to server to update notification state as Expired on 401 accept reject special error",n),zr.getInstance().sendMessage(io.UPDATE_NOTIFICATIONS_DATA,{content:JSON.stringify(n)})):400===t||404===t||403===t?(gr.getInstance().removeNotificationFromNewStateNotificationsHandler(this.id),fr.getInstance().removeNotificationWithId(this.id),o["notification-id"]=this.id,o.state=ro.NOTIFICATION_STATE_EXPIRED,i.push(o),n.notifications.notification=i,ie.debug("UNCWidget: NotificationBaseObject: takeActionOnAcceptRejectClick - Sending data to server to update notification state as Expired on accept reject special error",n),zr.getInstance().sendMessage(io.UPDATE_NOTIFICATIONS_DATA,{content:JSON.stringify(n)})):(o["notification-id"]=this.id,o.state=ro.NOTIFICATION_STATE_READ,i.push(o),n.notifications.notification=i,ie.debug("UNCWidget: NotificationBaseObject: takeActionOnAcceptRejectClick - Sending data to render engine to update notification state as Read on accept reject error",n),fr.getInstance().handlePinStateAndTimeStampUpdateForNotifications(n))}},{key:"downloadAppropriateProjectIcon",value:function(){var e,t=this,n=this.payload.timeline.commentSection;n&&((e=n.icons[0].renditionUrl?new kr(n.icons[0].renditionUrl,n.icons[0].renditionUrlAuth).downloadThumbnailIconForURI():new Tr(n.icons[0].iconURL,n.region).downloadAssetThumbnailIcon())&&e.then((function(e){var n=(window.URL||window.webkitURL).createObjectURL(e);t.projectIconForCommentNotification=n,fr.getInstance().reloadNotifications()})).catch((function(e){ie.debug("UNCWidget: CommentTimelineNotification: getAppropriateIcon - We get error in downloading image icon",e)})))}}],n&&Lr(t.prototype,n),i&&Lr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Mr(e){return Mr="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},Mr(e)}function Wr(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Hr(i.key),i)}}function Hr(e){var t=function(e,t){if("object"!=Mr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Mr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Mr(t)?t:String(t)}var qr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ie.debug("UNCWidget: NotificationProcessorObject: NotificationProcessorObject is being constructed....."),this.latestAvailableNotificationTimeStamp=0,this.lastAvailableNotificationTimeStamp=0,this._historicalNotificationsAvailable=!0,this._fetchingHistoricalNotifications=!1,this._countOfFetchedHistoricalNotificationsOnTrigger=0,this._fetchingPinnedHistoricalNotifications=!1,this.lastAvailablePinnedNotificationTimestamp=0,this.numberOfCallsToBeMadeToTimelineApi=0}var t,n,i;return t=e,i=[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}},{key:"deleteInstance",value:function(){e.instance=null}}],(n=[{key:"initializeByDefault",value:function(){ie.debug("UNCWidget: NotificationProcessorObject: NotificationProcessorObject is being initializeByDefault....."),this.latestAvailableNotificationTimeStamp=0,this.lastAvailableNotificationTimeStamp=0,this._historicalNotificationsAvailable=!0,this._fetchingHistoricalNotifications=!1,this._countOfFetchedHistoricalNotificationsOnTrigger=0,this._fetchingPinnedHistoricalNotifications=!1,this.lastAvailablePinnedNotificationTimestamp=0,this.numberOfCallsToBeMadeToTimelineApi=0}},{key:"parseNewIncomingNotifications",value:function(e){if(ie.debug("UNCWidget: NotificationProcessorObject: parseNewIncomingNotifications - parsing new incoming notifications json",e),void 0===e.notifications)return ie.debug("UNCWidget: NotificationProcessorObject: parseNewIncomingNotifications - Received an invalid notification response object",e),!1;if(!e.notifications||!e.notifications.notification)return ie.debug("UNCWidget: NotificationProcessorObject: parseNewIncomingNotifications - Received an invalid notification response object with notification not defined",e),!1;var t;if(Array.isArray(e.notifications.notification))t=e.notifications.notification;else{if("object"!==Mr(e.notifications.notification)||null==e.notifications.notification)return ie.debug("UNCWidget: NotificationProcessorObject: parseNewIncomingNotifications - Received an invalid notification response object with notification not an object or an array",e),!1;t=[e.notifications.notification]}for(var n=t.length,i=0;i<n;i+=1){var o=t[i],r=fr.getInstance().getNotificationById(o["notification-id"]);if(r)if(parseInt(o[ro.TIMESTAMP_KEY],10)>r.renderingOrderTimestamp){fr.getInstance().removeNotificationWithId(r.id);var a=new jr;if(!a.initializeObjectWithJson(o))continue;var s={},c=[];s.notifications={},c.push(a),s.notifications.notification=c,fr.getInstance().renderNewNotifications(s),gr.getInstance().insertInNewStateNotificationsHandler(a.id,a),this.latestAvailableNotificationTimeStamp=a.renderingOrderTimestamp,jf.isNotificationStateValidForNew(a.state)||gr.getInstance().removeNotificationFromNewStateNotificationsHandler(a.id)}else{var l=r.state,u=r.isPinned;if(!r.initializeObjectWithJson(o))continue;var f={},d=[];f.notifications={},d.push(r),f.notifications.notification=d,r.state===ro.NOTIFICATION_STATE_EXPIRED?l!==ro.NOTIFICATION_STATE_ACCEPT_COMPLETE&&l!==ro.NOTIFICATION_STATE_REJECT_COMPLETE&&l!==ro.NOTIFICATION_STATE_EXPIRED&&fr.getInstance().removeNotificationWithId(r.id):(!1===u&&u!==r.isPinned&&fr.getInstance().removeNotificationFromPinnedListInNormalActivityContainer(r.id),fr.getInstance().updateExistingNotifications(f)),jf.isNotificationStateValidForNew(r.state)?gr.getInstance().insertInNewStateNotificationsHandler(r.id,r):gr.getInstance().removeNotificationFromNewStateNotificationsHandler(r.id)}else{if(o.state===ro.NOTIFICATION_STATE_EXPIRED)continue;if(parseInt(o[ro.TIMESTAMP_KEY],10)>this.latestAvailableNotificationTimeStamp){var p=new jr;if(!p.initializeObjectWithJson(o))continue;this.latestAvailableNotificationTimeStamp=p.renderingOrderTimestamp;var h={},g=[];h.notifications={},g.push(p),h.notifications.notification=g,ie.debug("UNCWidget: NotificationProcessorObject: parseNewIncomingNotifications - Notifications to render engine to show on top of timeline:",JSON.stringify(h)),fr.getInstance().renderNewNotifications(h),gr.getInstance().insertInNewStateNotificationsHandler(p.id,p),this.checkToUpdatePayloadByHostIfRequired(p);try{(p.state===ro.NOTIFICATION_STATE_READ||jf.isNotificationStateValidForNew(p.state)&&!0===po.getInstance().isWidgetOpen)&&$o.getInstance().sendAnalyticsForViewOfNotification(p)}catch(e){ie.debug("UNCWidget: NotificationProcessorObject: parseNewIncomingNotifications - Error in sending analytics for new successful notification received for render:",e)}}else{ie.debug("UNCWidget: NotificationProcessorObject: parseNewIncomingNotifications - Notification with id will be tried to insert in between as it's renderingOrderTimestamp is lower than latest available one:",o["notification-id"]);var m=new jr;if(!m.initializeObjectWithJson(o))continue;fr.getInstance().renderNewNotificationInBetweenIfApplicable(m),gr.getInstance().insertInNewStateNotificationsHandler(m.id,m);try{(m.state===ro.NOTIFICATION_STATE_READ||m.state===ro.NOTIFICATION_STATE_NEW&&!0===po.getInstance().isWidgetOpen)&&$o.getInstance().sendAnalyticsForViewOfNotification(m)}catch(e){ie.debug("UNCWidget: NotificationProcessorObject: parseNewIncomingNotifications - Error in sending analytics for new successful notification received for render:",e)}}}}return!0}},{key:"parseIncomingHistoricalNotifications",value:function(e){if(ie.debug("UNCWidget: NotificationProcessorObject: parseIncomingHistoricalNotifications - parsing historical incoming notifications json and append in timeline according to renderingOrderTimestamp"),this._fetchingHistoricalNotifications=!1,void 0!==e.errorCode)return ie.debug("UNCWidget: NotificationProcessorObject: parseIncomingHistoricalNotifications - We got error in our call to fetch historical notifications :",e),setTimeout(this.fetchHistoricalNotifications.bind(this),100),!1;var t,n={},i=[];if(n.notifications={},void 0===e.notifications)return ie.debug("UNCWidget: NotificationProcessorObject: parseIncomingHistoricalNotifications - Received an invalid notification response object",e),!1;if(!e.notifications)return ie.debug("UNCWidget: NotificationProcessorObject: parseIncomingHistoricalNotifications - Received an invalid notification response object with notifications not array",e),this._historicalNotificationsAvailable=!1,this._countOfFetchedHistoricalNotificationsOnTrigger=0,qo.getInstance().hideFetchingSpinnerState(),n.notifications.notification=i,fr.getInstance().renderHistoricalNotifications(n),!1;if(Array.isArray(e.notifications))t=e.notifications;else{if("object"!==Mr(e.notifications))return this._countOfFetchedHistoricalNotificationsOnTrigger=0,qo.getInstance().hideFetchingSpinnerState(),!1;t=[e.notifications]}var o=t.length;if(0===o)return this._historicalNotificationsAvailable=!1,this._countOfFetchedHistoricalNotificationsOnTrigger=0,qo.getInstance().hideFetchingSpinnerState(),n.notifications.notification=i,fr.getInstance().renderHistoricalNotifications(n),!0;var r=t[o-1],a=0;this.lastAvailableNotificationTimeStamp=parseInt(r[ro.TIMESTAMP_KEY],10);for(var s=0;s<o;s+=1){var c=t[s];if(c.state!==ro.NOTIFICATION_STATE_EXPIRED){var l=fr.getInstance().getNotificationById(c["notification-id"]),u=void 0;if(l){if(l.isPinned)continue;u=l,fr.getInstance().removeNotificationWithId(l.id)}else u=new jr;if(u.initializeObjectWithJson(c)){if(i.push(u),!u.isPinned){a+=1,this.checkToUpdatePayloadByHostIfRequired(u);try{(u.state===ro.NOTIFICATION_STATE_READ||jf.isNotificationStateValidForNew(u.state)&&!0===po.getInstance().isWidgetOpen)&&$o.getInstance().sendAnalyticsForViewOfNotification(u)}catch(e){ie.debug("UNCWidget: NotificationProcessorObject: parseIncomingHistoricalNotifications - Error in sending analytics for parseIncomingHistoricalNotifications notification received for render: ",e)}}gr.getInstance().insertInNewStateNotificationsHandler(u.id,u),u.renderingOrderTimestamp>this.latestAvailableNotificationTimeStamp&&(this.latestAvailableNotificationTimeStamp=u.renderingOrderTimestamp)}}}return this._countOfFetchedHistoricalNotificationsOnTrigger+=a,i.length>0&&(n.notifications.notification=i,ie.debug("UNCWidget: NotificationProcessorObject: parseIncomingHistoricalNotifications - Notifications to render engine to show on bottom of timeline:",JSON.stringify(n)),fr.getInstance().renderHistoricalNotifications(n)),!e.isResponseFromCache&&this._countOfFetchedHistoricalNotificationsOnTrigger<10?(ie.debug("UNCWidget: NotificationProcessorObject: parseIncomingHistoricalNotifications - Notifications send to ui are below threshold count and therefore making call to fetch more historical notifications"),this.fetchHistoricalNotifications()):(this._countOfFetchedHistoricalNotificationsOnTrigger=0,qo.getInstance().hideFetchingSpinnerState(),this.fetchXHistoricalNotifications(this.numberOfCallsToBeMadeToTimelineApi)),!0}},{key:"parseIncomingPinnedHistoricalNotifications",value:function(e){if(qo.getInstance().hideFetchingSpinnerStateForSearchCall(),this._fetchingPinnedHistoricalNotifications=!1,void 0!==e.errorCode)return ie.debug("UNCWidget: NotificationProcessorObject: parseIncomingPinnedHistoricalNotifications - We got error in our call to fetch pinned historical notifications :",e),setTimeout(this._fetchPinnedHistoricalNotifications.bind(this),100),!1;if(void 0===e.notifications)return ie.debug("UNCWidget: NotificationProcessorObject: parseIncomingPinnedHistoricalNotifications - Received an invalid notification response object",e),setTimeout(this._fetchPinnedHistoricalNotifications.bind(this),100),!1;if(!e.notifications)return ie.debug("UNCWidget: NotificationProcessorObject: parseIncomingPinnedHistoricalNotifications - Received an invalid notification response object with notifications not array",e),qo.getInstance().resetPinnedHistoricalNotificationsAvailableAndButtonClickState(),!1;var t;if(Array.isArray(e.notifications))t=e.notifications;else{if("object"!==Mr(e.notifications))return qo.getInstance().resetPinnedHistoricalNotificationsAvailableAndButtonClickState(),!1;t=[e.notifications]}var n=t.length;if(0===n)return qo.getInstance().resetPinnedHistoricalNotificationsAvailableAndButtonClickState(),!0;var i=t[n-1];this.lastAvailablePinnedNotificationTimestamp=parseInt(i[ro.TIMESTAMP_KEY],10);var o={},r=[];o.notifications={};for(var a=0,s=0;s<n;s+=1){var c=t[s];if(c.state!==ro.NOTIFICATION_STATE_EXPIRED){var l=fr.getInstance().getNotificationById(c["notification-id"]),u=void 0;if(l){if(this.checkForPinnedPinnedNotification(l)){a+=1;continue}u=l}else u=new jr;u.initializeObjectWithJson(c)&&(r.push(u),this.checkToUpdatePayloadByHostIfRequired(u),gr.getInstance().insertInNewStateNotificationsHandler(u.id,u),u.renderingOrderTimestamp>this.latestAvailableNotificationTimeStamp&&(this.latestAvailableNotificationTimeStamp=u.renderingOrderTimestamp))}}return r.length+a>0?(o.notifications.notification=r,ie.debug("UNCWidget: NotificationProcessorObject: parseIncomingPinnedHistoricalNotifications - Notifications to render engine to show on bottom of pinned timeline section:",JSON.stringify(o)),fr.getInstance().renderPinnedHistoricalNotifications(o),n<10&&qo.getInstance().resetPinnedHistoricalNotificationsAvailable()):(qo.getInstance().resetButtonClickInProgress(),e.isResponseFromCache||0!==or.getInstance().getPinnedNotifications().length||setTimeout(this._fetchPinnedHistoricalNotifications.bind(this),50)),!0}},{key:"checkToUpdatePayloadByHostIfRequired",value:function(e){e.payload.timeline.requestUpdatedContentByHost&&"true"===e.payload.timeline.requestUpdatedContentByHost.toString().toLowerCase()&&po.getInstance().notificationUpdateCallbackFn&&setTimeout((function(){var t={message:"payloadUpdateRequest"};t.data={id:e.id,type:e.type,subType:e.subType,payload:JSON.parse(JSON.stringify(e.payload))},po.getInstance().notificationUpdateCallbackFn(t)}),0)}},{key:"updateNotificationPayloadForID",value:function(e){if(e.id){var t=fr.getInstance().getNotificationById(e.id);if(e.payload){var n=e.payload;(n="object"===Mr(n)?n:JSON.parse(n)).timeline&&n.timeline.viewtype&&-1!==io.SUPPORTED_VIEW_TYPES.indexOf(n.timeline.viewtype)&&(t.payload=n,t.payloadUpdatedByHost=!0,fr.getInstance().reloadNotifications())}}}},{key:"_triggerPinnedHistoricalNotificationsFetchOperation",value:function(){setTimeout(this._fetchPinnedHistoricalNotifications.bind(this),io.PINNED_HISTORICAL_NOTIFICATIONS_FETCH_PERIOD)}},{key:"_fetchPinnedHistoricalNotifications",value:function(e){if(e===io.cacheMessages.INIT&&(ie.log("UNCWidget: NotificationProcessorObject: _fetchPinnedHistoricalNotifications - hasMorePinnedHistoricalNotifications: ",qo.getInstance().getPinnedHistoricalNotificationsAvailable()),this.initializeByDefault(),qo.getInstance().setPinnedHistoricalNotificationsAvailable()),!1!==qo.getInstance().getPinnedHistoricalNotificationsAvailable()){if(!0!==this._fetchingPinnedHistoricalNotifications){this._fetchingPinnedHistoricalNotifications=!0;var t={};t.namespace=io.MESSAGE_PINNED_HISTORICAL_Notifications;var n={},i=e||io.cacheMessages.DEFAULT;n.locale=po.getInstance().deviceLocale,n.criteria=jf.getCriteriaForFetchingNotifications(this.lastAvailablePinnedNotificationTimestamp),t.criteria=n,t.workflow=i,ie.debug("UNCWidget: NotificationProcessorObject: _fetchPinnedHistoricalNotifications - ",t),qo.getInstance().setFetchingSpinnerStateForSearchCall(),zr.getInstance().sendMessage(io.GET_NOTIFICATIONS_BY_TIME,t)}}else qo.getInstance().hideFetchingSpinnerStateForSearchCall()}},{key:"fetchHistoricalNotifications",value:function(e){if(e===io.cacheMessages.INIT&&(ie.log("UNCWidget: NotificationProcessorObject: _fetchHistoricalNotifications - hasMoreHistoricalTimelineNotifications: ",this._historicalNotificationsAvailable),this.initializeByDefault()),!1===this._historicalNotificationsAvailable)return"Not_Available";if(!0===this._fetchingHistoricalNotifications)return"Already_Fetching";this._fetchingHistoricalNotifications=!0;var t={},n=e||io.cacheMessages.DEFAULT;return this.lastAvailableNotificationTimeStamp>0&&(t.timestamp=this.lastAvailableNotificationTimeStamp-1),t.namespace=io.MESSAGE_HISTORICAL_Notifications,t.workflow=n,ie.debug("UNCWidget: NotificationProcessorObject: _fetchHistoricalNotifications - ",t),qo.getInstance().setFetchingSpinnerState(),zr.getInstance().sendMessage(io.GET_NOTIFICATIONS_BY_TIME,t),"Calling_Fetch"}},{key:"fetchXHistoricalNotifications",value:function(e){e>0?this.fetchHistoricalNotifications()===io.NOT_AVAILABLE?(this.numberOfCallsToBeMadeToTimelineApi=0,qo.getInstance().hideFetchingSpinnerState()):(qo.getInstance().setFetchingSpinnerState(),this.numberOfCallsToBeMadeToTimelineApi=e-1):qo.getInstance().hideFetchingSpinnerState()}},{key:"hasMoreHistoricalNotificationsAvailable",value:function(){return this._historicalNotificationsAvailable}},{key:"_getConfigurationForRequestTypeSubtypes",value:function(){var e={};e.namespace=io.MESSAGE_SERVER_CONFIGURATIONS,zr.getInstance().sendMessage(io.GET_CONFIGURATIONS_FOR_REQUESTS,e)}},{key:"handleServerConfigurations",value:function(e){if(ie.debug("UNCWidget: NotificationProcessorObject: handleServerConfigurations - Configuration Received",e),e&&e["config-params"]&&e["config-params"]["config-param"]&&Array.isArray(e["config-params"]["config-param"])){for(var t=e["config-params"]["config-param"],n=0;n<t.length;n+=1){var i=t[n];if("SearchTypeSubtypes"===i.key){var o=[];Array.isArray(i.value)?(o=i.value,po.getInstance().appendInSearchTypeSubtypeList(o)):i.value&&(o=[i.value],po.getInstance().appendInSearchTypeSubtypeList(o));break}}this._fetchPinnedHistoricalNotifications(io.cacheMessages.INIT)}else this._fetchPinnedHistoricalNotifications(io.cacheMessages.INIT)}},{key:"beginHistoricalNotificationsFetching",value:function(e){this.fetchHistoricalNotifications(e),this._getConfigurationForRequestTypeSubtypes(),this.triggerUpdateOfTimeStringOfAllNotifications()}},{key:"triggerUpdateOfTimeStringOfAllNotifications",value:function(){this.timestringUpdateInterval=setInterval(this.updateTimeStringOfAllNotifications.bind(this),6e4)}},{key:"stopUpdateOfTimeStringOfAllNotifications",value:function(){clearInterval(this.timestringUpdateInterval)}},{key:"checkForPinnedPinnedNotification",value:function(e){var t=or.getInstance().getPinnedNotifications();if(t)for(var n=0;n<t.length;n+=1)if(t[n].id===e.id)return!0;return!1}},{key:"updateTimeStringOfAllNotifications",value:function(){fr.getInstance().getAllNotifications().forEach((function(e){var t=e;t.timeString=jf.getTimeStringToShowOnUI(t.renderingOrderTimestamp)})),fr.getInstance().reloadNotifications()}}])&&Wr(t.prototype,n),i&&Wr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Br(e){return Br="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},Br(e)}function Vr(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Gr(i.key),i)}}function Gr(e){var t=function(e,t){if("object"!=Br(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Br(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Br(t)?t:String(t)}var zr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.context=null,this.ccxCoreObj=null}var t,n,i;return t=e,n=[{key:"initializeNotificationEngineInterfaceObj",value:function(e,t){this.context=e,this.ccxCoreObj=t}},{key:"sendMessage",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:io.DEFAULT_TARGET_TYPE,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:io.DEFAULT_TARGET_ID,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];ie.debug("UNCWidget: CommunicationInterface: sendMessage - Sending message to",i," with messageName:",e,"and with data",t);var r={};if(r=n===io.CLIENT_TARGET_TYPE?{targetType:n,targetID:i,message:e,data:t}:{sourceID:io.SOURCE_ID,sourceType:io.DEFAULT_TARGET_TYPE,targetType:n,targetID:i,message:e,data:t},!1===o&&(r.isAsync=!1),this.ccxCoreObj&&this.ccxCoreObj.handleMessage)return this.ccxCoreObj.handleMessage(r)}},{key:"handleMessage",value:function(e){var t=e.message,n=e.data;switch(ie.debug("UNCWidget: CommunicationInterface: handleMessage - Received data with messageName",t,"and data",n),t){case io.MESSAGE_INIT:gf.getInstance().initiateUXProcessing();break;case io.MESSAGE_NEW_Notifications:qr.getInstance().parseNewIncomingNotifications(n);break;case io.MESSAGE_HISTORICAL_Notifications:qr.getInstance().parseIncomingHistoricalNotifications(n);break;case io.MESSAGE_PINNED_HISTORICAL_Notifications:qr.getInstance().parseIncomingPinnedHistoricalNotifications(n);break;case io.MESSAGE_SERVER_CONFIGURATIONS:qr.getInstance().handleServerConfigurations(n);break;case io.MESSAGE_UPDATE_NOTIFICATION_CONTENT:qr.getInstance().updateNotificationPayloadForID(n);break;case io.MESSAGE_HANDLE_USER_CONTEXT_DATA:yo.getInstance().handleIncomingUserContextData(n);break;case io.MESSAGE_TIMESTAMP_DRIFT:po.getInstance().setTimeStampDrift(n.value);break;case io.MESSAGE_HIDE_NOTIFICATION_WIDGET_TRIGGERED:fr.getInstance().hideWidget();break;case io.MESSAGE_SHOW_NOTIFICATION_WIDGET_TRIGGERED:setTimeout((function(){var e=n?n.notificationId:null;fr.getInstance().showWidget(e)}),500);break;case io.MESSAGE_SHOW_NOTIFICATION_WIDGET_WITHOUT_DELAY_TRIGGERED:var i=n?n.notificationId:null;fr.getInstance().showWidget(i);break;case io.MESSAGE_UPDATE_ANALYTICS_CONFIG:if(void 0===n.analyticsEnabled)return;po.getInstance().analyticsEnabled="true"===n.analyticsEnabled.toString().toLowerCase();break;case io.MESSAGE_BADGE_COUNT:if(po.getInstance().badgeCount=parseInt(n.value,10),po.getInstance().isWidgetOpen||(po.getInstance().badgeCount>0?(po.getInstance().badgeRef&&(po.getInstance().badgeRef.style.display="block"),po.getInstance().badgeCountRef&&(To()?po.getInstance().acceptNotificationsForSurface.length>0&&(po.getInstance().badgeCount<10?po.getInstance().badgeCountRef.innerHTML=po.getInstance().badgeCount:po.getInstance().badgeCountRef.innerHTML="9+"):po.getInstance().badgeCount<100?po.getInstance().badgeCountRef.innerHTML=po.getInstance().badgeCount:po.getInstance().badgeCountRef.innerHTML="99+")):po.getInstance().badgeRef&&(po.getInstance().badgeRef.style.display="none"),this.sendMessage(io.UPDATE_BADGE_COUNT,{value:n.value},io.CLIENT_TARGET_TYPE,"")),po.getInstance().surface&&po.getInstance().surface.toUpperCase()===io.SURFACE_DESKTOP){var o={},r={};po.getInstance().badgeCount>0?r.iconType="badge":r.iconType="normal",o.NotificationIconData=r,this.sendMessage(io.CHANGE_NOTIFICATION_ICON,o,"Applet",io.CONTAINER_BL_ID)}break;case io.MESSAGE_IS_CCD_PRESENT:po.getInstance().isCCDPresent="true"===n.isCCDPresent.toString().toLowerCase();break;case io.MESSAGE_IS_ADCS_RUNNING:po.getInstance().isADSRunning=n.data}}}],i=[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}},{key:"deleteInstance",value:function(){e.instance=null}}],n&&Vr(t.prototype,n),i&&Vr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Kr(e){return Kr="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},Kr(e)}function Yr(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Xr(i.key),i)}}function Xr(e){var t=function(e,t){if("object"!=Kr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Kr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Kr(t)?t:String(t)}var Jr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ie.debug("UNCWidget: RegisterUnRegisterObservers: RegisterUnRegisterObservers object is being constructed.....")}var t,n,i;return t=e,i=[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}},{key:"deleteInstance",value:function(){e.instance=null}}],(n=[{key:"registerObserverForTypeSubtype",value:function(e,t){var n={},i={};n.namespace=io.MESSAGE_NEW_Notifications,n.id=io.UNCWidget,n.typeSubtypeList=[],i.type=e,i.subType=t,n.typeSubtypeList.push(i),zr.getInstance().sendMessage(io.REGISTER_OBSERVER,n)}},{key:"unRegisterObserverForTypeSubtype",value:function(e,t){var n={},i={};n.typeSubtypeList=[],i.type=e,i.subType=t,n.typeSubtypeList.push(i),zr.getInstance().sendMessage(io.UNREGISTER_OBSERVER,n)}},{key:"registerObserverForAllNotifications",value:function(){var e={};e.namespace=io.MESSAGE_NEW_Notifications,e.id=io.UNCWidget,zr.getInstance().sendMessage(io.REGISTER_OBSERVER,e)}}])&&Yr(t.prototype,n),i&&Yr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function $r(e){return $r="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},$r(e)}function Qr(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Zr(i.key),i)}}function Zr(e){var t=function(e,t){if("object"!=$r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=$r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$r(t)?t:String(t)}var ea="assetsFiles",ta=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.CCDAssetNotificationHandlingForDesktop=!1}var t,n,i;return t=e,(n=[{key:"initialize",value:function(){var e=this,t=po.getInstance().ccdGlobalStore;if(t){var n=function(t){ie.info("UNCWidget: CCDDataHandler: isCloudDocsEnabled = ".concat(t)),e.CCDAssetNotificationHandlingForDesktop=t};t.onStoreRegister(ea,(function(){var e=t.get(ea).isCloudDocsEnabled;n(e),t.observe(ea,"isCloudDocsEnabled",n)}))}else ie.info("UNCWidget: CCDDataHandler: ccdGlobalStore is not available")}},{key:"handleAssetsFileNotification",value:function(e,t){var n,i=t.payload.timeline.commentSection;i&&i.resourceName&&(n=i.resourceName);var o=e.ccdRoutePath;if(n){var r=encodeURIComponent(n);o="".concat(o,"&displayName=").concat(r)}ie.debug("UNCWidget: CCDDataHandler: handleAssetsFileNotification: calling ");try{var a=po.getInstance().ccdGlobalStore.get(ea);a&&a.notificationHandlerStore?a.notificationHandlerStore.handleNotification(o):ie.warn("UNCWidget: CCDDataHandler: handleAssetsFileNotification: notificationHandlerStore not avaialbe.")}catch(e){ie.warn("UNCWidget: CCDDataHandler: handleAssetsFileNotification: notificationHandlerStore: - Exception occurred",e)}}}])&&Qr(t.prototype,n),i&&Qr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()),na=n(3074),ia=n.n(na),oa=n(7249),ra=n(4642),aa=n(2259),sa=n(6837),ca=n(9286),la=n(8098),ua=n.n(la),fa=n(9590),da=n(3974),pa=n.n(da),ha=["scale","color"];function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ga.apply(this,arguments)}function ma(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ya(e){e.scale,e.color;var t=ma(e,ha);return wo().createElement("svg",ga({id:"s2IconBell20N",width:"20",height:"20",viewBox:"0 0 20 20"},t),wo().createElement("path",{d:"m17.78613,12.67578c-.16846-.30859-.34082-.60742-.51123-.90234-.82666-1.43457-1.54102-2.67285-1.54102-4.62012,0-3.11914-2.5376-5.65723-5.65723-5.65723s-5.65723,2.53809-5.65723,5.65723c0,1.7666-.75879,3.04883-1.56201,4.40527-.22021.37207-.44141.74609-.64941,1.13086-.37598.69629-.35693,1.52051.05078,2.2041.41211.69043,1.13672,1.10254,1.93848,1.10254h3.05225c0,1.5166,1.2334,2.75,2.75,2.75s2.75-1.2334,2.75-2.75h3.05518c.80322,0,1.52783-.41309,1.93896-1.10547.40771-.6875.42383-1.51562.04248-2.21484Zm-7.78662,4.57031c-.68945,0-1.25-.56055-1.25-1.25h2.5c0,.68945-.56055,1.25-1.25,1.25Zm6.4541-3.12109c-.06641.11133-.26221.37109-.64893.37109H4.19727c-.26855,0-.51172-.13867-.65039-.37109-.06445-.1084-.19531-.39551-.01855-.72266.19824-.36816.40967-.72461.61963-1.0791.87109-1.4707,1.77148-2.99219,1.77148-5.16992,0-2.25391,1.90381-4.15723,4.15723-4.15723s4.15723,1.90332,4.15723,4.15723c0,2.34863.88525,3.88379,1.7417,5.36914.16455.28516.33057.57324.49365.87207.18066.33105.04932.62109-.01562.73047Z"}))}var va=n(2263),ba=n(9121),_a=n(8151),Ca=n(2702),Sa=function(e){var t=e.handleFilterClick,n=void 0===t?function(){}:t,i=e.selectedFilter,o=void 0===i?{filterID:io.EVERYTHING,value:io.EVERYTHING}:i,r=e.filterOptions,a=po.getInstance().filterDetails,s=ua()("unc-filter-height",{"unc-filter-height-on-mobile":po.getInstance().deviceType===io.DeviceType.MOBILE});return wo().createElement(Ca.default,{options:r,onChange:function(e){return n({filterID:a&&a.filterID,value:e})},quiet:!0,value:o.value,flexible:!0,alignRight:!0,onClose:function(e){e&&(e.preventDefault(),e.stopPropagation())},menuClassName:s})},Ea=function(e){var t,n=po.getInstance(),i=n.localizedStrings,o=n.filterDetails,r=n.displayData;n.env;t=i?JSON.parse(JSON.stringify(i)):JSON.parse(JSON.stringify(r));var a=e.handleFilterClick,s=e.selectedFilter,c=(e.onButtonClick,function(){var e=[{icon:o&&o.filterIcon?wo().createElement("img",{src:o.filterIcon,alt:"app-icon",className:"filter-icon"}):wo().createElement(_a.Z,null),label:t.LOC_EVERYTHING?t.LOC_EVERYTHING:io.displayStrings.LOC_EVERYTHING,value:io.EVERYTHING}];return o&&o.categories&&o.categories.forEach((function(t){try{t.iconUrl&&$e(t.iconUrl)?e.push({icon:wo().createElement("img",{src:t.iconUrl,alt:"app-icon",className:"filter-icon"}),label:t.name,value:t.id}):e.push({label:t.name,value:t.id})}catch(n){ie.debug("UNCWidget: NotificationsProvider: icons sent are not supported: ",n),e.push({icon:wo().createElement(_a.Z,null),label:t.name,value:t.id})}})),ie.debug("UNCWidget: NotificationsProvider: filters available are ",e),e}());return wo().createElement(wo().Fragment,null,wo().createElement("div",{className:"notifications-container-header"},wo().createElement("h2",{className:"notification-string"},t.LOC_NOTIFICATIONS_SMALL),wo().createElement("div",{className:"notification-filter",tabIndex:po.tabIndex},a&&s&&c.length>1&&wo().createElement(Sa,{selectedFilter:s,handleFilterClick:a,filterOptions:c}))),wo().createElement("div",{className:"heading-content-separator-parent"},wo().createElement("div",{className:"heading-content-separator"})))};function Na(e){return Na="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},Na(e)}function Oa(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ta(i.key),i)}}function Ta(e){var t=function(e,t){if("object"!=Na(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Na(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Na(t)?t:String(t)}function Ia(e,t,n){return t=Aa(t),function(e,t){if(t&&("object"===Na(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)}(e,wa()?Reflect.construct(t,n||[],Aa(e).constructor):t.apply(e,n))}function wa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wa=function(){return!!e})()}function Aa(e){return Aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Aa(e)}function ka(e,t){return ka=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ka(e,t)}var Da=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=Ia(this,t,[].concat(i))).close=function(e){ie.log("UNCWidget: welcome screen cross clicked"),e.stopPropagation(),zr.getInstance().handleMessage({message:io.MESSAGE_HIDE_NOTIFICATION_WIDGET_TRIGGERED})},e.handleWelcomeScreenErrorIconCase=function(){e.bellIconRef&&(e.bellIconRef.style.visibility="hidden")},e}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ka(e,t)}(t,e),n=t,(i=[{key:"componentWillUnmount",value:function(){this.bellIconRef=null}},{key:"render",value:function(){var e,t=this;ie.debug("UNCWidget: WelcomeScreen: render - inside render for welcome screen"),e=po.getInstance().localizedStrings?JSON.parse(JSON.stringify(po.getInstance().localizedStrings)):JSON.parse(JSON.stringify(po.getInstance().displayData));var n=this.props.newNotificationBanner;return wo().createElement("div",{className:"no-notifications-screen"},wo().createElement("div",{className:"notifications-title"},wo().createElement(Ea,{onButtonClick:this.close}),po.getInstance().showWidgetCrossButton&&wo().createElement("div",{className:"widget-close-icon",onClick:this.close},wo().createElement(va.Z,{className:"",size:"S"}))),n,wo().createElement("div",{className:"welcome-screen"},wo().createElement("div",{className:"welcome-screen-content"},wo().createElement("div",{className:"bellIcon",ref:function(e){t.bellIconRef=e}},wo().createElement("img",{className:"no-notifications-icon",alt:"",src:jf.getEmptyNotificationScreenIcon(),onError:function(){return t.handleWelcomeScreenErrorIconCase()}})),wo().createElement("div",{className:"heading"},wo().createElement("span",null,e.LOC_NO_NOTIFICATIONS_TEXT?e.LOC_NO_NOTIFICATIONS_TEXT:io.displayStrings.LOC_NO_NOTIFICATIONS_TEXT)))))}}])&&Oa(n.prototype,i),o&&Oa(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(wo().Component),Pa=n(9732),Ra=n(5884),xa=n(5509),Fa=n(6929),La=n(3258);function Ua(e){return Ua="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},Ua(e)}var ja=["alignRight","closeOnSelect","container","boundariesElement"];function Ma(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Wa(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ha(i.key),i)}}function Ha(e){var t=function(e,t){if("object"!=Ua(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Ua(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ua(t)?t:String(t)}function qa(e,t,n){return t=Va(t),function(e,t){if(t&&("object"===Ua(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)}(e,Ba()?Reflect.construct(t,n||[],Va(e).constructor):t.apply(e,n))}function Ba(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ba=function(){return!!e})()}function Va(e){return Va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Va(e)}function Ga(e,t){return Ga=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ga(e,t)}var za=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=qa(this,t,[e])).onOpen=function(e){n.setState({open:!0}),n.props.onOpen&&n.props.onOpen(e)},n.onClose=function(e){n.setState({open:!1}),n.props.onClose&&n.props.onClose(e)},n.onMenuClose=function(){n.overlayTrigger.hide()},n.onSelect=function(){var e;(n.props.closeOnSelect&&n.onMenuClose(),n.props.onSelect)&&(e=n.props).onSelect.apply(e,arguments)},n.onClick=function(e){n.props.onClick&&n.props.onClick(e)},n.onKeyDownTrigger=function(e){if(!("function"==typeof e.isDefaultPrevented&&e.isDefaultPrevented()||e.defaultPrevented)&&n.triggerRef)switch(e.key){case"Enter":case"ArrowDown":case" ":e.preventDefault(),e.stopPropagation(),n.triggerRef.onClick()}},n.dropdownId=(0,La.default)(),n.state={open:!1},n}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ga(e,t)}(t,e),n=t,(i=[{key:"render",value:function(){var e=this,t=this.props,n=t.alignRight,i=t.closeOnSelect,o=t.container,r=t.boundariesElement,a=Ma(t,ja),s=wo().Children.toArray(this.props.children),c=s.find((function(e){return e.props.dropdownTrigger}))||s[0],l=c.props.id||"".concat(this.dropdownId,"-trigger"),u=s.find((function(e){return e.props.dropdownMenu||e.type===Ao.Menu}))||s[1],f=u.props.id||"".concat(this.dropdownId,"-menu");return delete a.onOpen,delete a.onClose,delete a.onClick,wo().createElement("div",a,s.map((function(t,a){return t===c?wo().createElement(oa.default,{target:e,trigger:"click",placement:n?"bottom right":"bottom left",ref:function(t){return e.overlayTrigger=t},onClick:e.onClick,onShow:e.onOpen,closeOnSelect:i,key:a,onHide:e.onClose,container:o,boundariesElement:r,delayHide:0},wo().cloneElement(c,{id:l,"aria-haspopup":c.props["aria-haspopup"]||"true","aria-expanded":e.state.open||null,"aria-controls":e.state.open?f:null,ref:function(t){e.triggerRef=t;var n=c.ref;"function"==typeof n&&n(t)}}),wo().cloneElement(u,{id:f,"aria-labelledby":u.props["aria-labelledby"]||l,onClose:e.onMenuClose,onSelect:e.onSelect,autoFocus:!0,closeOnSelect:i})):t!==u?t:void 0})))}}])&&Wa(n.prototype,i),o&&Wa(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(wo().Component);function Ka(e){return Ka="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},Ka(e)}function Ya(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Xa(i.key),i)}}function Xa(e){var t=function(e,t){if("object"!=Ka(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Ka(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ka(t)?t:String(t)}var Ja=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"keyDownEventHandler",value:function(e,t,n,i,o,r,a){(13===e.keyCode||i&&32===e.keyCode)&&t&&t(),27===e.keyCode&&n&&n(),e.shiftKey&&9===e.keyCode?o&&o():9===e.keyCode&&r&&r(),40===e.keyCode&&a&&a()}},{key:"keyDownEventHandlerWithShiftTab",value:function(e,t,n,i){(13===e.keyCode||n&&32===e.keyCode)&&(t&&t(),e.preventDefault()),e.shiftKey&&9===e.keyCode&&i&&i()}}],(n=null)&&Ya(t.prototype,n),i&&Ya(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function $a(e){return $a="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},$a(e)}function Qa(){return Qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Qa.apply(this,arguments)}function Za(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Za(Object(n),!0).forEach((function(t){ts(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Za(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ts(e,t,n){return(t=is(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ns(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,is(i.key),i)}}function is(e){var t=function(e,t){if("object"!=$a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=$a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$a(t)?t:String(t)}function os(e,t,n){return t=as(t),function(e,t){if(t&&("object"===$a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ss(e)}(e,rs()?Reflect.construct(t,n||[],as(e).constructor):t.apply(e,n))}function rs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rs=function(){return!!e})()}function as(e){return as=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},as(e)}function ss(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cs(e,t){return cs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cs(e,t)}var ls=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=os(this,t,[].concat(i))).displayStrings=po.getInstance().getLocalizedDisplayStrings(),e.state={showActionMenu:!1,showRenderTimeline:!1,showCommentTooltip:!1,eventNotificationStatus:""},e.avatarFallbackHandled=!1,e.serviceFallbackHandled=!1,e.commentIconFallbackHandledOnCommentTimeline=!1,e.setEventNotificationLiveTimerId=null,e.setEventNotificationOnDemandTimerId=null,e.clickListenerFn=function(t){t.preventDefault(),t.stopImmediatePropagation(),e.hideMenu(),Tf.handleURLClick(e.props,t)},e.keydownListenerFn=function(t){13===t.keyCode||32===t.keyCode?(t.preventDefault(),t.stopImmediatePropagation(),e.hideMenu(),Tf.handleURLClick(e.props,t)):t.stopImmediatePropagation()},e.auxclickListenerFn=function(e){e.preventDefault(),e.stopImmediatePropagation()},e.onClick=function(t){e.hideMenu();var n=e.props.notification.payload.timeline.defaultAction,i=e.props.notification.payload.timeline.viewtype;if(ie.debug("UNCWidget: BaseTimelineNotification: onclick ",e.props.notification.payload),n)e.handleDefaultAction(t);else if(0===io.SUPPORTED_VIEW_TYPES.indexOf(i)){ie.debug("UNCWidget: BaseTimelineNotification: handling fallback default action for simpletimelineview");var o=e.contentRef;if(o){var r=o.getElementsByTagName("a");r&&r[0]&&r[0].attributes.href&&r[0].attributes.href.value&&"#"!==r[0].attributes.href.value&&Tf.handleURLClick(e.props,r[0].click())}}else Tf.handleClickAction(e.props,io.HANDLE_NOTIFICATION_CLICK,{clickType:"body",event:t})},e.onMenuMouseEnter=function(){e.timeoutFn&&(clearTimeout(e.timeoutFn),e.timeoutFn=null)},e.onMenuMouseLeave=function(){var t=e.state;e.timeoutFn=setTimeout((function(){e.setState(es(es({},t),{},{showActionMenu:!1})),e.hideMenu()}),50)},e.onMouseEnter=function(){e.timeoutFn&&(clearTimeout(e.timeoutFn),e.timeoutFn=null);var t=e.state;e.setState(es(es({},t),{},{showActionMenu:!0}))},e.onMouseLeave=function(){var t=e.state;e.timeoutFn=setTimeout((function(){e.setState(es(es({},t),{},{showActionMenu:!1})),e.hideMenu()}),50)},e.hideMenu=function(){var t=(e.actionMenu||{}).overlayTrigger;t&&t.hide()},e.handleAvatarIconFallback=function(){e.avatarIconRef&&!e.avatarFallbackHandled&&(e.avatarFallbackHandled=!0,e.avatarIconRef.src=e.props.notification.userIconDetails.avatarIconFallback)},e.handleServiceIconFallback=function(){e.serviceIconRef&&!e.serviceFallbackHandled&&(e.serviceFallbackHandled=!0,e.serviceIconRef.src=e.props.notification.userIconDetails.serviceIconFallback)},e.getMenuItems=function(){var t=e.props.notification,n=[],i={};return t.state===ro.NOTIFICATION_STATE_READ?(i.onClick=e.onMarkAsUnread,i.displayString=e.displayStrings.LOC_MARK_AS_UNREAD):(i.onClick=e.onMarkAsRead,i.displayString=e.displayStrings.LOC_MARK_AS_READ),Co.isAnnouncementNotification(t)||n.push(wo().createElement(Ao.MenuItem,{onClick:i.onClick,onKeyDown:function(t){return Ja.keyDownEventHandler(t,i.onClick.bind(ss(e),t),e.bringThreeDotsInFocus.bind(ss(e),t),!0,e.tabClickOnMenuItem.bind(ss(e),t),e.tabClickOnMenuItem.bind(ss(e),t))}},i.displayString)),n.push(wo().createElement(Ao.MenuItem,{onClick:e.onDismiss,onKeyDown:function(t){return Ja.keyDownEventHandler(t,null,e.bringThreeDotsInFocus.bind(ss(e),t),!0,e.tabClickOnMenuItem.bind(ss(e),t),e.tabClickOnMenuItem.bind(ss(e),t))}},e.displayStrings.LOC_DISMISS)),t.additionalMenuItems&&t.additionalMenuItems.forEach((function(t){t.actionId&&n.push(wo().createElement(Ao.MenuItem,{onClick:function(n){return e.onActionClick(n,t)},onKeyDown:function(n){return Ja.keyDownEventHandler(n,e.onActionClick.bind(ss(e),n,t),e.bringThreeDotsInFocus.bind(ss(e),n),!0,e.tabClickOnMenuItem.bind(ss(e),n),e.tabClickOnMenuItem.bind(ss(e),n))}},t.actionId))})),n},e.onAvatarClick=function(t){var n=e.props.notification,i=n.userIconDetails.SSODetails,o={event:t,target:n.userIconDetails.avatarClickURL,clickType:"profile"};i&&i.ssoEnabled&&"true"===i.ssoEnabled.toString()?(o.ssoEnabled="true",o.ssoTargetClientID=i.ssoTargetClientID,o.ssoTargetScope=i.ssoTargetScope):o.ssoEnabled="false",n.userIconDetails.openInSameTab&&(o.openInSameTab=!0),Tf.handleClickAction(e.props,io.OPEN_IN_NEW_TAB,o)},e.onThreeDotMenuClick=function(e){e.stopPropagation(),e.nativeEvent&&"function"==typeof e.nativeEvent.stopImmediatePropagation&&e.nativeEvent.stopImmediatePropagation()},e.onDismiss=function(t){e.hideMenu(),Tf.handleClickAction(e.props,io.DISMISS_CLICKED,{event:t}),e.props.notification&&e.props.selectedFilter.value!==io.EVERYTHING&&e.props.setLoadMoreButtonVisibility()},e.onActionClick=function(t,n){var i,o=n.actionTargetURL,r=n.SSODetails,a=n.deepLinkWorkflows;po.getInstance().surface&&po.getInstance().surface.toUpperCase()===io.SURFACE_DESKTOP&&a?(i={deepLinkWorkflows:a,event:t},Tf.handleClickAction(e.props,io.DEEPLINK_WORKFLOW_CLICKED,i)):(i={event:t,target:o,clickType:"profile"},r&&r.ssoEnabled&&"true"===r.ssoEnabled.toString()?(i.ssoEnabled="true",i.ssoTargetClientID=r.ssoTargetClientID,i.ssoTargetScope=r.ssoTargetScope):i.ssoEnabled="false",Tf.handleClickAction(e.props,io.OPEN_IN_NEW_TAB,i))},e.onMarkAsUnread=function(t){e.hideMenu(),Tf.handleClickAction(e.props,io.MARK_AS_UNREAD_CLICKED,{event:t}),e.bringThreeDotsInFocus()},e.markRead=function(t){Tf.handleClickAction(e.props,io.MARK_AS_READ_CLICKED,{event:t})},e.onMarkAsRead=function(t){e.hideMenu(),e.markRead(t),e.bringThreeDotsInFocus()},e.onThreeDotKeyDown=function(t){t.stopPropagation(),t.shiftKey&&9===t.keyCode||9===t.keyCode&&e.onMouseLeave()},e.notificationContainerKeyDown=function(t){t.stopPropagation(),t.shiftKey&&9===t.keyCode&&t.target.classList.contains("notification-container")?e.onMouseLeave():13!==t.keyCode&&" "!==t.keyCode&&32!==t.keyCode||e.onClick(t)},e.bringThreeDotsInFocus=function(){(0,ko.findDOMNode)(e.threeDotButton).focus()},e.tabClickOnMenuItem=function(e){e.preventDefault(),e.stopPropagation()},e.onChevronClick=function(t){t.preventDefault(),t.stopPropagation(),e.setState((function(e){return es(es({},e),{},{showRenderTimeline:!e.showRenderTimeline})})),jf.isNotificationStateValidForNew(e.props.notification.state)&&e.props.notification.handleNotificationClickAction(),e.props.notification&&e.props.selectedFilter.value!==io.EVERYTHING&&e.props.setLoadMoreButtonVisibility()},e.onCommentIconClickforCommentTimeline=function(t){ie.debug("UNCWidget: CommentTimelineNotification: onCommentIconClick:");var n=e.props.notification.payload.timeline.commentSection,i=n.SSODetails;if(n&&n.passToHostClient&&"true"===n.passToHostClient.toString().toLowerCase()&&po.getInstance().hostCallBackFn&&"function"==typeof po.getInstance().hostCallBackFn)Tf.passClickActionToHostClient(e.props.notification,t);else{var o,r=n.deepLinkWorkflows;if(ie.debug("UNCWidget: CommentTimelineNotification: onCommentIconClick: deepLinkWorkflows: ",r),r&&po.getInstance().surface&&po.getInstance().surface.toUpperCase()===io.SURFACE_DESKTOP&&(ie.debug("UNCWidget: CommentTimelineNotification: onCommentIconClick: going to execute deeplink workflows"),Tf.handleClickAction(e.props,io.DEEPLINK_WORKFLOW_CLICKED,{deepLinkWorkflows:r,event:t})))return void ie.debug("UNCWidget: CommentTimelineNotification: onCommentIconClick deeplink handled sucessfully:",r);ie.debug("UNCWidget: CommentTimelineNotification: onCommentIconClick: checking further"),n.ccdRoutePath&&(o=n.ccdRoutePath);var a={event:t,target:n.commentURL,clickType:"link",ccdRoutePath:o};i&&i.ssoEnabled&&"true"===i.ssoEnabled.toString()&&(a.ssoEnabled="true",a.ssoTargetClientID=i.ssoTargetClientID,a.ssoTargetScope=i.ssoTargetScope),n.openInSameTab&&"true"===n.openInSameTab.toString().toLowerCase()&&(a.openInSameTab=!0),n.content||(ie.debug("UNCWidget: CommentTimelineNotification: onCommentIconClick: sending event to rendering utility "),Tf.handleClickAction(e.props,io.OPEN_IN_NEW_TAB,a))}},e.handleCommentIconFallbackOnCommentTimeline=function(){if(e.commentIconRefOnCommentTimeline&&!e.commentIconFallbackHandledOnCommentTimeline){e.commentIconFallbackHandledOnCommentTimeline=!0;var t=jf.getBasePathForResources();e.commentIconRefOnCommentTimeline.src=t+po.getInstance().imagePathMap["./2x/project-placeholder.png"],e.commentIconRefOnCommentTimeline.src=e.commentIconRefOnCommentTimeline.src.replace("".concat(Ue.PATH_PARAM,"//"),"".concat(Ue.PATH_PARAM,"/"))}},e.handleCommentIconFallback=function(e){e.target.onerror=null;var t=jf.getBasePathForResources();e.target.src=t+po.getInstance().imagePathMap["./1x/unc_thumbnail_unavailable.svg"],e.target.src=e.target.src.replace("".concat(Ue.PATH_PARAM,"//"),"".concat(Ue.PATH_PARAM,"/"))},e.renderMoreDiv=function(){var t,n,i=e.props,o=i.notification,r=i.overlayContainer,a=e.state,s=a.showActionMenu,c=a.showRenderTimeline;t=po.getInstance().localizedStrings?JSON.parse(JSON.stringify(po.getInstance().localizedStrings)):JSON.parse(JSON.stringify(po.getInstance().displayData)),n=To()?c?wo().createElement(Pa.Z,{size:"S",tabIndex:0}):wo().createElement(ba.Z,{size:"S",tabIndex:0}):wo().createElement(ba.Z,{size:"S",className:"rotate-chevron-image"});var l=To()?{boundariesElement:function(){try{var e;return(0,ko.findDOMNode)(r())||(null===(e=document)||void 0===e?void 0:e.body)}catch(e){var t;return ie.error("UNCWidget: Failed to find overlayContainer ",e),null===(t=document)||void 0===t?void 0:t.body}}}:{};return wo().createElement("div",{className:"morediv"},wo().createElement("div",{className:s&&(jf.isNotificationStateValidForNew(o.state)||o.state===ro.NOTIFICATION_STATE_READ)||jf.isDeviceTypeMobile()?"":"hiddenthreedots",onKeyDown:e.onThreeDotKeyDown,onClick:e.onThreeDotMenuClick},wo().createElement(oa.default,Qa({container:r,trigger:["hover","focus"],delayShow:1e3,placement:"bottom"},l),wo().createElement(za,{boundariesElement:function(){return(0,ko.findDOMNode)(r())},container:r,ref:function(t){e.actionMenu=t}},wo().createElement(fa.default,{variant:"action",className:"morebutton","aria-label":t.LOC_MORE_ACTIONS,quiet:!0,icon:wo().createElement(xa.Z,null),ref:function(t){e.threeDotButton=t}}),wo().createElement(Ao.Menu,{className:"unc-morediv-menu",onMouseEnter:e.onMenuMouseEnter,onMouseLeave:e.onMenuMouseLeave,style:{minWidth:0}},e.getMenuItems())),jf.isDeviceTypeMobile()?wo().createElement("div",null):wo().createElement(ca.default,null,t.LOC_MORE_ACTIONS))),wo().createElement(fa.default,{ref:function(t){e.chevronButtonRef=t},onClick:e.onChevronClick,onKeyDown:function(t){return Ja.keyDownEventHandler(t,e.onChevronClick.bind(ss(e),t),null,!0)},variant:"action","aria-label":c?"Hide":"Show",className:ua()({"chevron-box-open":c},"chevron-box","chevronbutton"),icon:n}))},e.renderCloseButton=function(){return wo().createElement("div",{className:"closeButtonContainer"},wo().createElement(fa.default,{className:"closeButton",ref:function(t){e.crossButtonRef=t},onClick:e.markRead,onKeyDown:function(t){return Ja.keyDownEventHandler(t,e.markRead.bind(ss(e),t),null,!0)},variant:"action",icon:wo().createElement(Ra.Z,{size:"XS"})}))},e.renderActionButtons=function(){var t=e.props,n=t.notification,i=t.section;return Co.checkNotificationRenderedAsNonAnnouncement(n,i)?e.renderMoreDiv():e.renderCloseButton()},e}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cs(e,t)}(t,e),n=t,(i=[{key:"componentDidMount",value:function(){var e=this.props.notification;e.state===ro.NOTIFICATION_STATE_NEW&&this.setState((function(e){return es(es({},e),{},{showRenderTimeline:!e.showRenderTimeline})})),this.updateStatusIfEventNotification(e)}},{key:"componentDidUpdate",value:function(){var e=this.contentRef;if(e)for(var t=e.getElementsByTagName("a"),n=0;n<t.length;n+=1)t[n].addEventListener("click",this.clickListenerFn),t[n].addEventListener("keydown",this.keydownListenerFn),po.getInstance().surface&&po.getInstance().surface.toUpperCase()===io.SURFACE_DESKTOP&&t[n].addEventListener("auxclick",this.auxclickListenerFn)}},{key:"componentWillUnmount",value:function(){var e=this.contentRef;if(e)for(var t=e.getElementsByTagName("a"),n=0;n<t.length;n+=1)t[n].removeEventListener("click",this.clickListenerFn),t[n].removeEventListener("keydown",this.keydownListenerFn),po.surface&&po.surface.toUpperCase()===io.SURFACE_DESKTOP&&t[n].removeEventListener("auxclick",this.auxclickListenerFn);this.commentIconRefOnCommentTimeline=null,this.avatarIconRef=null,this.serviceIconRef=null,this.contentRef=null,this.tooltipRef=null,this.tooltipRefContent=null,this.actionMenu=null,this.threeDotButton=null,this.chevronButtonRef=null,this.crossButtonRef=null,clearTimeout(this.setEventNotificationLiveTimerId),clearTimeout(this.setEventNotificationOnDemandTimerId)}},{key:"setOnDemandUrlAndSSO",value:function(e){var t=e.payload.timeline.defaultAction;t.onDemandUrl&&(t.url=t.onDemandUrl,t.onDemandSSODetails&&(t.SSODetails=t.onDemandSSODetails))}},{key:"updateStatusOfEventNotification",value:function(e,t){var n=this,i=e.eventNotificationData,o=i.goLiveTime,r=i.goLiveExpireTime,a=i.markExpireTime,s=parseInt(t.trim(),10);e.payload.timeline.defaultAction,s>=a&&(e.eventNotificationData.shouldExpireOnClose=!0);var c=r-s,l=o-s;s<o?this.setState((function(e){return es(es({},e),{},{eventNotificationStatus:io.displayStrings.LOC_UPCOMING})})):s>=o&&s<r?this.setState((function(e){return es(es({},e),{},{eventNotificationStatus:io.displayStrings.LOC_LIVE})})):s>=r&&(this.setState((function(e){return es(es({},e),{},{eventNotificationStatus:io.displayStrings.LOC_ON_DEMAND})})),this.setOnDemandUrlAndSSO(e)),l>0&&l<=io.MAX_SETIMEOUT_IN_SECOND&&(this.setEventNotificationLiveTimerId=setTimeout((function(){n.setState((function(e){return es(es({},e),{},{eventNotificationStatus:io.displayStrings.LOC_LIVE})})),n.setEventNotificationLiveTimerId=null}),1e3*l)),c>0&&c<=io.MAX_SETIMEOUT_IN_SECOND&&(this.setEventNotificationOnDemandTimerId=setTimeout((function(){n.setState((function(e){return es(es({},e),{},{eventNotificationStatus:io.displayStrings.LOC_ON_DEMAND})})),n.setOnDemandUrlAndSSO(e)}),1e3*c))}},{key:"updateStatusIfEventNotification",value:function(e){var t=this;Oo.isEventNotification(e)&&jf.getCurrentTimeFromAkamai().then((function(e){return e.clone().text()})).then((function(n){t.updateStatusOfEventNotification(e,n)})).catch((function(n){clearTimeout(t.setEventNotificationLiveTimerId),clearTimeout(t.setEventNotificationOnDemandTimerId),ie.debug("UNCWidget: EventNotificationUtils: Error while setting status of event notification: deciding on machine time: ",n),t.updateStatusOfEventNotification(e,Math.floor(Date.now()/1e3).toString())}))}},{key:"isTooltipEnabled",value:function(){return this.contentRef&&this.contentRef.offsetHeight+2<this.contentRef.scrollHeight}},{key:"renderAvatar",value:function(){var e=this,t=this.props.notification,n=t.payload.timeline.viewtype,i=ua()("avatar-icon",{"avatar-icon-cursor-disabled":!(t.userIconDetails.avatarClickURL&&""!==t.userIconDetails.avatarClickURL),"avatar-icon-on-comment-icon":t.userIconDetails.commentSectionIcons,"avatar-icon-announcement":Co.isAnnouncementNotification(t)},{"event-icon":Oo.isEventNotification(t)}),o=ua()("service-icon",{"service-icon-on-comment-icon":t.userIconDetails.commentSectionIcons});return wo().createElement("div",{className:"avatar"},wo().createElement("div",{className:"image-container",onKeyDown:function(t){return Ja.keyDownEventHandler(t,e.onAvatarClick.bind(e,t),null,!0,e.onMouseLeave.bind(e,t))}},t.userIconDetails.commentSectionIcons?n===io.COMMENT_TIMELINE?wo().createElement("div",{onClick:e.onCommentIconClickforCommentTimeline},wo().createElement("img",{alt:"asset-icon",className:ua()("stack-comment-icon","total-comment-icons-1"),ref:function(t){e.commentIconRefOnCommentTimeline=t},src:t.projectIconForCommentNotification,onError:e.handleCommentIconFallbackOnCommentTimeline})):t.userIconDetails.commentSectionIcons.map((function(n,i){return i<4?wo().createElement("img",{alt:"asset-icon",className:ua()("stack-comment-icon","stack-comment-icon-".concat(i),ts({},"total-comment-icons-".concat(t.userIconDetails.commentSectionIcons.length),t.userIconDetails.commentSectionIcons.length<4),{"total-comment-icons-n":t.userIconDetails.commentSectionIcons.length>=4}),src:n.iconURL,onError:e.handleCommentIconFallback,key:"".concat(n.iconURL,"-").concat(i.toString())}):""})):"",wo().createElement("img",{alt:"avatar-icon",ref:function(t){e.avatarIconRef=t},className:i,src:t.userIconDetails.avatarIcon,onError:this.handleAvatarIconFallback,onClick:this.onAvatarClick}),t.userIconDetails.serviceIcon&&wo().createElement("img",{alt:"service-icon",className:o,ref:function(t){e.serviceIconRef=t},src:t.userIconDetails.serviceIcon,onError:this.handleServiceIconFallback})))}},{key:"render",value:function(){var e,t=this,n=this.props,i=n.notification,o=n.uniqueId,r=n.overlayContainer,a=(n.selectedFilter,n.section),s=this.state,c=(s.showActionMenu,s.showRenderTimeline),l=s.eventNotificationStatus,u=ua()(["".concat(this.containerClass)],ts({},"".concat(this.containerClassOnMobile),jf.isDeviceTypeMobile()));return wo().createElement("div",{className:["notification-container",Tf.checkIfClassToBeApplied(this.props,io.Class_Contrast)?"contrast":"",Tf.checkIfClassToBeApplied(this.props,"hyperlink")?"hyperlink":"",Tf.checkIfClassToBeApplied(this.props,io.Class_PinnedContrast)?"pinnedContrast":"",Tf.checkIfClassToBeApplied(this.props,io.Class_AnnouncementContrast)?"announcementContrast":"",Tf.checkIfClassToBeApplied(this.props,io.Class_Hidden)?"hidden":"",jf.isNotificationStateValidForNew(i.state)?"status-light-visible":""].join(" "),onClick:this.onClick,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,id:o,role:"option","aria-selected":"true",onFocus:this.onMouseEnter,tabIndex:po.getInstance().tabIndex,onKeyDown:this.notificationContainerKeyDown},Co.checkNotificationRenderedAsNonAnnouncement(i,a)&&jf.isNotificationStateValidForNew(i.state)&&wo().createElement(Fa.default,{variant:"info",className:"status-light-indicator","aria-label":"unread-notification"}),wo().createElement("div",{className:u},wo().createElement("div",{className:"notification-header-box"},this.renderAvatar(),wo().createElement("div",{className:ua()("notification-body",{"notification-body-announcement":!Co.checkNotificationRenderedAsNonAnnouncement(i,a)})},wo().createElement(wo().Fragment,null,wo().createElement(oa.default,{container:r,trigger:["hover","focus"],placement:"bottom",disabled:!t.isTooltipEnabled(t.contentRef),delayShow:1e3,variant:"inspect",boundariesElement:function(){return(0,ko.findDOMNode)(r())}},(e=wo().createElement("div",{dangerouslySetInnerHTML:{__html:i.payload.timeline.content},className:"content",id:"content_".concat(o),ref:function(e){t.contentRef=e},"aria-describedby":"tooltip_".concat(o)}),Oo.isEventNotification(i)?wo().createElement("div",{className:"event-notification-timeline",tabIndex:po.getInstance().tabIndex},wo().createElement("div",{className:ua()("event-notification-header",{"event-notification-header-desktop":jf.isDesktopSurface()})},wo().createElement("div",{className:"event-notification-title"},i.eventNotificationData.title),wo().createElement("div",{className:ua()("event-notfication-status","".concat(l.toLowerCase()))},l===io.displayStrings.LOC_UPCOMING?t.displayStrings.LOC_UPCOMING:l===io.displayStrings.LOC_LIVE?t.displayStrings.LOC_LIVE:l===io.displayStrings.LOC_ON_DEMAND?t.displayStrings.LOC_ON_DEMAND:"")),e):e),jf.isDeviceTypeMobile()?wo().createElement("div",null):wo().createElement(ca.default,{ref:function(e){t.tooltipRef=e},variant:"info",className:"unc-notification-tooltip"},Oo.isEventNotification(i)&&wo().createElement(wo().Fragment,null,wo().createElement("span",null,i.eventNotificationData.title),wo().createElement("br",null)),wo().createElement("span",{dangerouslySetInnerHTML:{__html:i.payload.timeline.content},ref:function(e){t.tooltipRefContent=e}}))),jf.shouldShowTimeString(i,a)?wo().createElement("div",{className:"time-string"},wo().createElement("span",null,i.timeString)):null)),this.renderActionButtons()),c&&this.renderTimeline()))}}])&&ns(n.prototype,i),o&&ns(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(wo().Component);function us(e){return us="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},us(e)}function fs(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,ds(i.key),i)}}function ds(e){var t=function(e,t){if("object"!=us(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=us(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==us(t)?t:String(t)}function ps(e,t,n){return t=gs(t),function(e,t){if(t&&("object"===us(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)}(e,hs()?Reflect.construct(t,n||[],gs(e).constructor):t.apply(e,n))}function hs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hs=function(){return!!e})()}function gs(e){return gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gs(e)}function ms(e,t){return ms=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ms(e,t)}ls.propTypes={notification:ia().object.isRequired,section:ia().string.isRequired,uniqueId:ia().string.isRequired,overlayContainer:ia().func,selectedFilter:ia().object.isRequired,setLoadMoreButtonVisibility:ia().func.isRequired};var ys=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=ps(this,t,[].concat(i))).containerClass="simple-timeline",e.containerClassOnMobile="simple-timeline-on-mobile",e.handleDefaultAction=function(t){Tf.handleDefaultAction(e.props,t)},e}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ms(e,t)}(t,e),n=t,(i=[{key:"renderTimeline",value:function(){return null}}])&&fs(n.prototype,i),o&&fs(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(ls),vs=n(58),bs=n(7759);function _s(e){return _s="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},_s(e)}function Cs(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ss(i.key),i)}}function Ss(e){var t=function(e,t){if("object"!=_s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=_s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_s(t)?t:String(t)}function Es(e,t,n){return t=Os(t),function(e,t){if(t&&("object"===_s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ts(e)}(e,Ns()?Reflect.construct(t,n||[],Os(e).constructor):t.apply(e,n))}function Ns(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ns=function(){return!!e})()}function Os(e){return Os=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Os(e)}function Ts(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Is(e,t){return Is=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Is(e,t)}var ws=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=Es(this,t,[].concat(i))).containerClass="invite-timeline",e.containerClassOnMobile="invite-timeline-on-mobile",e.handleDefaultAction=function(t){var n=e.props.notification.payload.timeline.defaultAction;n.onClick&&"handlePrimary"===n.onClick?Tf.handleClickAction(e.props,io.PRIMARY_CLICKED,{event:t}):n.onClick&&"handleSecondary"===n.onClick?Tf.handleClickAction(e.props,io.SECONDARY_CLICKED,{event:t}):Tf.handleDefaultAction(e.props,t)},e.onButtonsContainerClick=function(e){e.stopPropagation()},e.renderTimeline=function(){var t,n=Ts(e).displayStrings,i=e.props.notification,o=(null==i?void 0:i.payload)||{},r=o.primaryButtonDetails,a=o.secondaryButtonDetails,s=(null==i||null===(t=i.payload)||void 0===t?void 0:t.timeline)||{},c=s.acceptRequestDetails,l=s.rejectRequestDetails,u=jf.getButtonLabelAndVariant(r,{label:n.LOC_ACCEPT_BUTTON_TEXT,variant:"cta"}),f=u.label,d=u.variant,p=jf.getButtonLabelAndVariant(a,{label:n.LOC_REJECT_BUTTON_TEXT,variant:"secondary"}),h=p.label,g=p.variant,m=jf.checkButtonVisibility(r,c),y=jf.checkButtonVisibility(a,l);return wo().createElement("div",{className:ua()("action-container",{"action-container-new-unread":i.state===ro.NOTIFICATION_STATE_NEW||i.state===ro.NOTIFICATION_STATE_UNREAD})},wo().createElement("div",{className:"action-content"},(jf.isNotificationStateValidForNew(i.state)||i.state===ro.NOTIFICATION_STATE_READ)&&wo().createElement("div",{className:"buttons-container",onKeyDown:e.onButtonsContainerClick},y&&wo().createElement(fa.default,{variant:g,onClick:function(t){return jf.onSecondaryButtonClick(t,e.props)}},h),m&&wo().createElement(fa.default,{variant:d,onClick:function(t){return jf.onPrimaryButtonClick(t,e.props)}},f)),i.state===ro.NOTIFICATION_STATE_PROGRESS&&wo().createElement("div",{className:"widget-wait"},wo().createElement(bs.default,{size:"M"})),(i.state===ro.NOTIFICATION_STATE_ACCEPT_COMPLETE||i.state===ro.NOTIFICATION_STATE_EXPIRED&&i.inviteAccepted)&&wo().createElement("div",{className:"accepted-invite"},wo().createElement(vs.Z,{size:"S"}),wo().createElement("span",null,n.LOC_ACCEPTED_TEXT)),(i.state===ro.NOTIFICATION_STATE_REJECT_COMPLETE||i.state===ro.NOTIFICATION_STATE_EXPIRED&&i.inviteRejected)&&wo().createElement("div",{className:"rejected-invite"},wo().createElement(va.Z,{size:"S"}),wo().createElement("span",null,n.LOC_REJECTED_TEXT))))},e}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Is(e,t)}(t,e),n=t,i&&Cs(n.prototype,i),o&&Cs(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(ls);function As(e){return As="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},As(e)}function ks(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ds(i.key),i)}}function Ds(e){var t=function(e,t){if("object"!=As(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=As(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==As(t)?t:String(t)}function Ps(e,t,n){return t=xs(t),function(e,t){if(t&&("object"===As(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Fs(e)}(e,Rs()?Reflect.construct(t,n||[],xs(e).constructor):t.apply(e,n))}function Rs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rs=function(){return!!e})()}function xs(e){return xs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xs(e)}function Fs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ls(e,t){return Ls=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ls(e,t)}var Us=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=Ps(this,t,[].concat(i))).containerClass="invite-comment-timeline",e.containerClassOnMobile="invite-comment-timeline-on-mobile",e.handleDefaultAction=function(t){var n=e.props.notification.payload.timeline.defaultAction;n.onClick&&"handlePrimary"===n.onClick?Tf.handleClickAction(e.props,io.PRIMARY_CLICKED,{event:t}):n.onClick&&"handleSecondary"===n.onClick?Tf.handleClickAction(e.props,io.SECONDARY_CLICKED,{event:t}):Tf.handleDefaultAction(e.props,t)},e.onButtonsContainerClick=function(e){e.stopPropagation()},e.onCommentClick=function(t){var n=e.props.notification.payload.timeline.commentSection;if(n&&n.passToHostClient&&"true"===n.passToHostClient.toString().toLowerCase()&&po.getInstance().hostCallBackFn&&"function"==typeof po.getInstance().hostCallBackFn)Tf.passClickActionToHostClient(e.props.notification,t);else{var i=n.deepLinkWorkflows;if(ie.debug("UNCWidget: InviteCommentTimelineNotification: onCommentIconClick:",i),i&&(ie.debug("UNCWidget: InviteCommentTimelineNotification: onCommentIconClick: going to execute deeplink workflows"),Tf.handleClickAction(e.props,io.DEEPLINK_WORKFLOW_CLICKED,{deepLinkWorkflows:i,event:t})))return void ie.debug("UNCWidget: InviteCommentTimelineNotification: onCommentIconClick deeplink handled sucessfully:",i);ie.debug("UNCWidget: InviteCommentTimelineNotification: onCommentIconClick: checking ");var o={event:t,target:e.props.notification.payload.timeline.commentSection.commentURL,clickType:"link"},r=e.props.notification.payload.timeline.commentSection.SSODetails;r&&r.ssoEnabled&&"true"===r.ssoEnabled.toString()?(o.ssoEnabled="true",o.ssoTargetClientID=r.ssoTargetClientID,o.ssoTargetScope=r.ssoTargetScope):o.ssoEnabled="false",n.openInSameTab&&"true"===n.openInSameTab.toString().toLowerCase()&&(o.openInSameTab=!0),Tf.handleClickAction(e.props,io.OPEN_IN_NEW_TAB,o)}},e.renderTimeline=function(){var t,n=Fs(e).displayStrings,i=e.props,o=i.notification,r=i.overlayContainer,a=(null==o?void 0:o.payload)||{},s=a.primaryButtonDetails,c=a.secondaryButtonDetails,l=(null==o||null===(t=o.payload)||void 0===t?void 0:t.timeline)||{},u=l.acceptRequestDetails,f=l.rejectRequestDetails,d=jf.getButtonLabelAndVariant(s,{label:n.LOC_ACCEPT_BUTTON_TEXT,variant:"cta"}),p=d.label,h=d.variant,g=jf.getButtonLabelAndVariant(c,{label:n.LOC_REJECT_BUTTON_TEXT,variant:"secondary"}),m=g.label,y=g.variant,v=jf.checkButtonVisibility(s,u),b=jf.checkButtonVisibility(c,f);return wo().createElement("div",{className:ua()("comment-container",{"comment-container-new-unread":o.state===ro.NOTIFICATION_STATE_NEW||o.state===ro.NOTIFICATION_STATE_UNREAD}),tabIndex:po.getInstance().tabIndex,onKeyDown:function(t){return Ja.keyDownEventHandler(t,e.onCommentClick.bind(Fs(e),t),null,!0)},onClick:e.onCommentClick},wo().createElement("div",{className:ua()("comment-content",jf.isDeviceTypeMobile()?"comment-mobile-content":"")},wo().createElement(oa.default,{delayShow:1e3,placement:"top",trigger:["hover","focus"],boundariesElement:function(){return(0,ko.findDOMNode)(r())}},wo().createElement("div",{className:ua()("content-text",jf.isDeviceTypeMobile()?"content-mobile-text":"")},wo().createElement("span",null,o.payload.timeline.commentSection.content)),wo().createElement(ca.default,{placement:"top",className:"unc-notification-tooltip"},wo().createElement("span",null,o.payload.timeline.commentSection.content))),wo().createElement("div",{className:"action-container"},wo().createElement("div",{className:"action-content"},(jf.isNotificationStateValidForNew(o.state)||o.state===ro.NOTIFICATION_STATE_READ)&&wo().createElement("div",{className:"buttons-container",onKeyDown:e.onButtonsContainerClick},b&&wo().createElement(fa.default,{variant:y,onClick:function(t){return jf.onSecondaryButtonClick(t,e.props)}},m),v&&wo().createElement(fa.default,{variant:h,onClick:function(t){return jf.onPrimaryButtonClick(t,e.props)}},p)),o.state===ro.NOTIFICATION_STATE_PROGRESS&&wo().createElement("div",{className:"widget-wait"},wo().createElement(bs.default,{size:"M"})),(o.state===ro.NOTIFICATION_STATE_ACCEPT_COMPLETE||o.state===ro.NOTIFICATION_STATE_EXPIRED&&o.inviteAccepted)&&wo().createElement("div",{className:"accepted-invite"},wo().createElement(vs.Z,{size:"S"}),wo().createElement("span",null,n.LOC_ACCEPTED_TEXT)),(o.state===ro.NOTIFICATION_STATE_REJECT_COMPLETE||o.state===ro.NOTIFICATION_STATE_EXPIRED&&o.inviteRejected)&&wo().createElement("div",{className:"rejected-invite"},wo().createElement(va.Z,{size:"S"}),wo().createElement("span",null,n.LOC_REJECTED_TEXT))))))},e}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ls(e,t)}(t,e),n=t,i&&ks(n.prototype,i),o&&ks(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(ls);function js(e){return js="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},js(e)}function Ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ms(Object(n),!0).forEach((function(t){Hs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ms(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hs(e,t,n){return(t=Bs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qs(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Bs(i.key),i)}}function Bs(e){var t=function(e,t){if("object"!=js(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=js(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==js(t)?t:String(t)}function Vs(e,t,n){return t=Ks(t),function(e,t){if(t&&("object"===js(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)}(e,Gs()?Reflect.construct(t,n||[],Ks(e).constructor):t.apply(e,n))}function Gs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Gs=function(){return!!e})()}function zs(){return zs="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ks(e)););return e}(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},zs.apply(this,arguments)}function Ks(e){return Ks=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ks(e)}function Ys(e,t){return Ys=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ys(e,t)}var Xs=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=Vs(this,t,[].concat(i))).containerClass="comment-timeline",e.containerClassOnMobile="comment-timeline-on-mobile",e.handleDefaultAction=function(t){Tf.handleDefaultAction(e.props,t)},e.onCommentClick=function(t){ie.debug("UNCWidget: CommentTimelineNotification: onCommentClick:");var n=e.props.notification.payload.timeline.commentSection;if(n&&n.passToHostClient&&"true"===n.passToHostClient.toString().toLowerCase()&&po.getInstance().hostCallBackFn&&"function"==typeof po.getInstance().hostCallBackFn)Tf.passClickActionToHostClient(e.props.notification,t);else if(n.content){var i,o=n.deepLinkWorkflows;if(ie.debug("UNCWidget: CommentTimelineNotification: onCommentClick: deeplinkworkflows: ",o),o&&(ie.debug("UNCWidget: CommentTimelineNotification: onCommentClick: going to execute deeplink workflows"),Tf.handleClickAction(e.props,io.DEEPLINK_WORKFLOW_CLICKED,{deepLinkWorkflows:o,event:t})))return void ie.debug("UNCWidget: CommentTimelineNotification: onCommentClick deeplink handled sucessfully:",o);if(n.ccdRoutePath){if(n.fallbackURL){var r=encodeURIComponent(n.fallbackURL);if(n.ccdRoutePath=n.ccdRoutePath.concat("&fallbackURL=").concat(r),n.needSSO&&"true"===n.needSSO&&(n.ccdRoutePath=n.ccdRoutePath.concat("&needSSO=").concat(n.needSSO)),n.targetClientID&&n.targetScope){var a=encodeURIComponent(n.targetClientID),s=encodeURIComponent(n.targetScope);n.ccdRoutePath=n.ccdRoutePath.concat("&targetClientID=").concat(a).concat("&targetScope=").concat(s)}}i=n.ccdRoutePath}var c={event:t,target:n.commentURL,clickType:"link",ccdRoutePath:i},l=n.SSODetails;l&&l.ssoEnabled&&"true"===l.ssoEnabled.toString()?(c.ssoEnabled="true",c.ssoTargetClientID=l.ssoTargetClientID,c.ssoTargetScope=l.ssoTargetScope):c.ssoEnabled="false",n.openInSameTab&&"true"===n.openInSameTab.toString().toLowerCase()&&(c.openInSameTab=!0),Tf.handleClickAction(e.props,io.OPEN_IN_NEW_TAB,c)}},e}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ys(e,t)}(t,e),n=t,(i=[{key:"componentWillMount",value:function(){}},{key:"componentDidMount",value:function(){var e=this.commentContentTextSpanRef,n=this.chevronButtonRef;e&&e.offsetHeight<e.scrollHeight&&this.setState(Ws(Ws({},this.state),{},{showCommentTooltip:!0}));var i=this.props.notification;i.payload&&i.payload.timeline&&i.payload.timeline.commentSection&&!i.payload.timeline.commentSection.content&&n&&n.buttonRef&&n.buttonRef.classList.add("displayNone"),zs(Ks(t.prototype),"componentDidMount",this).call(this)}},{key:"componentDidUpdate",value:function(e,n){var i=this.commentContentTextSpanRef,o=this.chevronButtonRef;i&&i.offsetHeight<i.scrollHeight&&!1===n.showCommentTooltip&&this.setState(Ws(Ws({},this.state),{},{showCommentTooltip:!0}));var r=this.props.notification;r.payload&&r.payload.timeline&&r.payload.timeline.commentSection&&!r.payload.timeline.commentSection.content&&o&&o.buttonRef&&o.buttonRef.classList.add("displayNone"),zs(Ks(t.prototype),"componentDidUpdate",this).call(this)}},{key:"componentWillUnmount",value:function(){this.commentTooltipTarget=null,this.commentContentTextSpanRef=null,zs(Ks(t.prototype),"componentWillUnmount",this).call(this)}},{key:"renderTimeline",value:function(){var e=this,t=this.props,n=t.notification,i=t.overlayContainer,o=n.payload.timeline.commentSection;return o&&o.content?wo().createElement(oa.default,{container:i,trigger:"hover",placement:"bottom",variant:"inspect",delayShow:1e3,boundariesElement:function(){return(0,ko.findDOMNode)(i())}},wo().createElement("div",{className:ua()("comment-container",{"comment-container-box":o.content},{"comment-container-noLink":!o.commentURL},{"comment-container-new-unread":n.state===ro.NOTIFICATION_STATE_NEW||n.state===ro.NOTIFICATION_STATE_UNREAD}),tabIndex:po.getInstance().tabIndex,onKeyDown:function(t){return Ja.keyDownEventHandler(t,e.onCommentClick.bind(e,t),null,!0)},onClick:e.onCommentClick,ref:function(t){e.commentTooltipTarget=t},"aria-describedby":"tooltip_".concat(e.uniqueId)},wo().createElement("div",{className:ua()("comment-content",jf.isDeviceTypeMobile()?"comment-mobile-content":"")},o.content&&wo().createElement("div",{className:"content-text"},wo().createElement("span",{dangerouslySetInnerHTML:{__html:o.content},ref:function(t){e.commentContentTextSpanRef=t},className:ua()("contentTextSpan",jf.isDeviceTypeMobile()?"contentTextMobileSpan":"")})))),e.state.showCommentTooltip&&!jf.isDeviceTypeMobile()?wo().createElement(ca.default,{variant:"info",className:"unc-notification-tooltip",id:"tooltip_".concat(e.uniqueId)},wo().createElement("span",{dangerouslySetInnerHTML:{__html:o.content}})):wo().createElement("span",null)):null}}])&&qs(n.prototype,i),o&&qs(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(ls),Js=n(477),$s=n(7210);function Qs(e){return Qs="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},Qs(e)}function Zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zs(Object(n),!0).forEach((function(t){tc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tc(e,t,n){return(t=rc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nc(e){return function(e){if(Array.isArray(e))return ic(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ic(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ic(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ic(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function oc(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,rc(i.key),i)}}function rc(e){var t=function(e,t){if("object"!=Qs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Qs(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qs(t)?t:String(t)}function ac(e,t,n){return t=lc(t),function(e,t){if(t&&("object"===Qs(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)}(e,sc()?Reflect.construct(t,n||[],lc(e).constructor):t.apply(e,n))}function sc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sc=function(){return!!e})()}function cc(){return cc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=lc(e)););return e}(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},cc.apply(this,arguments)}function lc(e){return lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lc(e)}function uc(e,t){return uc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uc(e,t)}var fc=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=ac(this,t,[].concat(i))).containerClass="multiple-icons-timeline",e.containerClassOnMobile="multiple-icons-timeline-on-mobile",e.iconListLength=Math.min(e.props.notification.payload.timeline.commentSection.icons.length,4),e.iconIndexArray=Array.apply(void 0,function(e,t,n){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var i=t.length;return ic(t,void 0!==n&&n<i?n:i)}return e(t,n)}(nc,{length:e.iconListLength})).map(Number.call,Number),e.handleDefaultAction=function(t){Tf.handleDefaultAction(e.props,t)},e.onTimelineClick=function(t){var n=e.props.notification.payload.timeline.commentSection;if(n&&n.passToHostClient&&"true"===n.passToHostClient.toString().toLowerCase()&&po.getInstance().hostCallBackFn&&"function"==typeof po.getInstance().hostCallBackFn)Tf.passClickActionToHostClient(e.props.notification,t);else{var i=n.deepLinkWorkflows;if(ie.debug("UNCWidget: MultipleIconsTimelineNotification: onTimelineClick: deepLinkWorkflows: ",i),i&&(ie.debug("UNCWidget: MultipleIconsTimelineNotification: onTimelineClick: going to execute deeplink workflows"),Tf.handleClickAction(e.props,io.DEEPLINK_WORKFLOW_CLICKED,{deepLinkWorkflows:i,event:t})))return void ie.debug("UNCWidget: MultipleIconsTimelineNotification: onTimelineClick deeplink handled sucessfully:",i);var o={event:t,clickType:"link",target:n.commentURL},r=n.SSODetails||{};r.ssoEnabled&&"true"===r.ssoEnabled.toString()?(o.ssoEnabled="true",o.ssoTargetClientID=r.ssoTargetClientID,o.ssoTargetScope=r.ssoTargetScope):o.ssoEnabled="false",n.openInSameTab&&"true"===n.openInSameTab.toString().toLowerCase()&&(o.openInSameTab=!0),Tf.handleClickAction(e.props,io.OPEN_IN_NEW_TAB,o)}},e.handleIconFallback=function(e){e.target.onerror=null;var t=jf.getBasePathForResources();e.target.src=t+po.getInstance().imagePathMap["./1x/unc_thumbnail_unavailable.svg"],e.target.src=e.target.src.replace("".concat(Ue.PATH_PARAM,"//"),"".concat(Ue.PATH_PARAM,"/"))},e}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uc(e,t)}(t,e),n=t,(i=[{key:"componentDidMount",value:function(){this.commentContentTextSpanRef&&this.commentContentTextSpanRef.offsetHeight<this.commentContentTextSpanRef.scrollHeight&&this.setState(ec(ec({},this.state),{},{showCommentTooltip:!0})),cc(lc(t.prototype),"componentDidMount",this).call(this)}},{key:"renderTimeline",value:function(){var e=this,t=this.props.notification.payload.timeline.commentSection,n=this.props,i=n.notification,o=n.overlayContainer;return wo().createElement("div",{onClick:this.onTimelineClick,className:"multiple-icons-wrapper",tabIndex:po.getInstance().tabIndex,onKeyDown:function(t){return Ja.keyDownEventHandler(t,e.onTimelineClick.bind(e,t),null,!0)}},wo().createElement("div",{className:ua()("comment-wrapper",{"comment-wrapper-new-unread":i.state===ro.NOTIFICATION_STATE_NEW||i.state===ro.NOTIFICATION_STATE_UNREAD})},wo().createElement("div",{className:"comment-container",onClick:this.onTimelineClick},t.icons.length>0&&this.iconIndexArray.map((function(n){return wo().createElement("div",{key:n,className:"comment-icon"},wo().createElement("img",{alt:"asset-icon",src:t.icons[n].iconURL,onError:e.handleIconFallback,key:"".concat(t.icons[n].iconURL,"-").concat(n)}))}))),t.footerText&&wo().createElement("div",{className:"comment-footer"},wo().createElement(Js.Z,{size:"S",className:"left-icon"}),wo().createElement(oa.default,{delayShow:1e3,placement:"top",trigger:["hover","focus"],boundariesElement:function(){return(0,ko.findDOMNode)(o())}},wo().createElement("div",{className:"footer-content-text"},wo().createElement("span",null,t.footerText)),wo().createElement(ca.default,{placement:"top",className:"unc-notification-tooltip"},wo().createElement("span",null,t.footerText))),wo().createElement($s.Z,{size:"S",className:"right-icon"}))))}}])&&oc(n.prototype,i),o&&oc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(ls);function dc(e){return dc="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},dc(e)}function pc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function hc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pc(Object(n),!0).forEach((function(t){gc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gc(e,t,n){return(t=yc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mc(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,yc(i.key),i)}}function yc(e){var t=function(e,t){if("object"!=dc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=dc(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dc(t)?t:String(t)}function vc(e,t,n){return t=Cc(t),function(e,t){if(t&&("object"===dc(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)}(e,bc()?Reflect.construct(t,n||[],Cc(e).constructor):t.apply(e,n))}function bc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bc=function(){return!!e})()}function _c(){return _c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Cc(e)););return e}(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},_c.apply(this,arguments)}function Cc(e){return Cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cc(e)}function Sc(e,t){return Sc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sc(e,t)}var Ec=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=vc(this,t,[].concat(i))).containerClass="comment-cta-timeline",e.containerClassOnMobile="comment-cta-timeline-on-mobile",e.handleErrorIconCase=function(){e.imageIconRef&&(e.imageIconRef.style.visibility="hidden",e.imageIconRef.style.display="none",e.commentContentRef&&(e.commentContentRef.style.width="100%"))},e.handleDefaultAction=function(t){var n=e.props.notification.payload.timeline.defaultAction;n.onClick&&"handlePrimary"===n.onClick?n.openInSameTab&&"true"===n.openInSameTab.toString().toLowerCase()?e.onCTAClick(t,!0):e.onCTAClick(t):Tf.handleDefaultAction(e.props,t)},e.onButtonsContainerClick=function(e){e.stopPropagation()},e.onCTAClick=function(t,n){var i=e.props.notification.payload.timeline.commentSection;if(i&&i.passToHostClient&&"true"===i.passToHostClient.toString().toLowerCase()&&po.getInstance().hostCallBackFn&&"function"==typeof po.getInstance().hostCallBackFn)Tf.passClickActionToHostClient(e.props.notification,t);else{var o=i.ctaDeeplinkHandling;if(ie.debug("UNCWidget: CommentCTATimelineNotification: onCTAClick: ctaDeeplinkHandling: ",o),o&&o.deepLinkWorkflows){var r=o.deepLinkWorkflows;if(ie.debug("UNCWidget: CommentCTATimelineNotification: onCTAClick: going to execute deeplink workflows"),Tf.handleClickAction(e.props,io.DEEPLINK_WORKFLOW_CLICKED,{deepLinkWorkflows:r,event:t}))return void ie.debug("UNCWidget: CommentCTATimelineNotification: onCTAClick deeplink handled sucessfully:",r)}var a={event:t,target:i.ctaURL?i.ctaURL:i.commentURL,clickType:"link"},s=e.props.notification.payload.timeline.commentSection.SSODetails;s&&s.ssoEnabled&&"true"===s.ssoEnabled.toString()?(a.ssoEnabled="true",a.ssoTargetClientID=s.ssoTargetClientID,a.ssoTargetScope=s.ssoTargetScope):a.ssoEnabled="false",n&&(a.openInSameTab=!0),i.openInSameTab&&"true"===i.openInSameTab.toString().toLowerCase()&&(a.openInSameTab=!0),Tf.handleClickAction(e.props,io.OPEN_IN_NEW_TAB,a)}},e.onCommentClick=function(t){var n=e.props.notification.payload.timeline.commentSection;if(n&&n.passToHostClient&&"true"===n.passToHostClient.toString().toLowerCase()&&po.getInstance().hostCallBackFn&&"function"==typeof po.getInstance().hostCallBackFn)Tf.passClickActionToHostClient(e.props.notification,t);else{var i=n.deepLinkWorkflows;if(ie.debug("UNCWidget: CommentCTATimelineNotification: onCommentClick: deepLinkWorkflows: ",i),i&&(ie.debug("UNCWidget: CommentCTATimelineNotification: onCTAClick: going to execute deeplink workflows"),Tf.handleClickAction(e.props,io.DEEPLINK_WORKFLOW_CLICKED,{deepLinkWorkflows:i,event:t})))return void ie.debug("UNCWidget: CommentCTATimelineNotification: onCommentClick deeplink handled sucessfully:",i);var o={event:t,target:e.props.notification.payload.timeline.commentSection.commentURL,clickType:"link"},r=e.props.notification.payload.timeline.commentSection.SSODetails;r&&r.ssoEnabled&&"true"===r.ssoEnabled.toString()?(o.ssoEnabled="true",o.ssoTargetClientID=r.ssoTargetClientID,o.ssoTargetScope=r.ssoTargetScope):o.ssoEnabled="false",n.openInSameTab&&"true"===n.openInSameTab.toString().toLowerCase()&&(o.openInSameTab=!0),Tf.handleClickAction(e.props,io.OPEN_IN_NEW_TAB,o)}},e}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sc(e,t)}(t,e),n=t,(i=[{key:"componentDidMount",value:function(){var e=this.props.notification;e.payload.timeline.commentSection&&e.payload.timeline.commentSection.icons&&Array.isArray(e.payload.timeline.commentSection.icons)&&e.payload.timeline.commentSection.icons[0].iconURL||this.commentContentRef&&(this.commentContentRef.style.width="100%");var n=this.commentContentTextSpanRef;n&&n.offsetWidth<n.scrollWidth&&this.setState(hc(hc({},this.state),{},{showCommentTooltip:!0})),_c(Cc(t.prototype),"componentDidMount",this).call(this)}},{key:"componentDidUpdate",value:function(e,n){var i=this.commentContentTextSpanRef;i&&i.offsetWidth<i.scrollWidth&&!1===n.showCommentTooltip&&this.setState(hc(hc({},this.state),{},{showCommentTooltip:!0})),_c(Cc(t.prototype),"componentDidUpdate",this).call(this)}},{key:"componentWillUnmount",value:function(){this.commentContentTextSpanRef=null,this.commentContentRef=null,_c(Cc(t.prototype),"componentWillUnmount",this).call(this)}},{key:"renderTimeline",value:function(){var e=this,t=this.props,n=t.notification,i=t.overlayContainer,o=this.displayStrings;return wo().createElement(oa.default,{container:i,trigger:"hover",placement:"bottom",variant:"inspect",delayShow:1e3,boundariesElement:function(){return(0,ko.findDOMNode)(i())}},n.payload.timeline.commentSection&&wo().createElement("div",{className:ua()("comment-container",{"comment-container-box":n.payload.timeline.commentSection.content},{"comment-container-new-unread":n.state===ro.NOTIFICATION_STATE_NEW||n.state===ro.NOTIFICATION_STATE_UNREAD}),tabIndex:po.getInstance().tabIndex,onKeyDown:function(t){return Ja.keyDownEventHandler(t,e.onCommentClick.bind(e,t),null,!0)},onClick:this.onCommentClick},wo().createElement("div",{className:ua()("comment-content",jf.isDeviceTypeMobile()?"comment-mobile-content":""),ref:function(t){e.commentContentRef=t}},wo().createElement("div",{className:ua()("content-text",jf.isDeviceTypeMobile()?"content-mobile-text":"")},wo().createElement("span",{ref:function(t){e.commentContentTextSpanRef=t}},n.payload.timeline.commentSection.content)),wo().createElement("div",{className:"action-container"},n.payload.timeline.commentSection.subContent&&(n.payload.timeline.commentSection.showEmail&&n.payload.timeline.commentSection.showEmail.email?wo().createElement("div",{className:"content-sub-text"},wo().createElement("span",{dangerouslySetInnerHTML:{__html:"".concat(o.LOC_EMAIL_FROM_SUBCONTENT_HEADER||"From:"," ").concat(n.payload.timeline.commentSection.showEmail.email)}}),wo().createElement("span",null,("date"===n.payload.timeline.commentSection.subContent.key?"".concat(o.LOC_DATE_SUBCONTENT_HEADER," "):"")+jf.getAppropriateSubContent(n.payload.timeline.commentSection.subContent))):wo().createElement("div",{className:"content-sub-text"},"date"===n.payload.timeline.commentSection.subContent.key&&wo().createElement("span",null,o.LOC_DATE_SUBCONTENT_HEADER),wo().createElement("span",null,jf.getAppropriateSubContent(n.payload.timeline.commentSection.subContent)))),n.payload.timeline.commentSection.ctaText&&wo().createElement("div",{className:"action-content"},wo().createElement("div",{className:"buttons-container",onKeyDown:this.onButtonsContainerClick},wo().createElement(fa.default,{variant:"cta",className:"cta-button",onClick:this.onCTAClick},n.payload.timeline.commentSection.ctaText||o.LOC_VIEW_BUTTON_TEXT)))))),this.state.showCommentTooltip&&!jf.isDeviceTypeMobile()?wo().createElement(ca.default,{variant:"info",className:"unc-notification-tooltip",id:"tooltip_".concat(this.uniqueId)},wo().createElement("span",{dangerouslySetInnerHTML:{__html:n.payload.timeline.commentSection.content}})):wo().createElement("span",null))}}])&&mc(n.prototype,i),o&&mc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(ls);function Nc(e){return Nc="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},Nc(e)}function Oc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Tc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oc(Object(n),!0).forEach((function(t){Ic(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ic(e,t,n){return(t=Ac(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wc(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ac(i.key),i)}}function Ac(e){var t=function(e,t){if("object"!=Nc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Nc(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Nc(t)?t:String(t)}function kc(e,t,n){return t=Rc(t),function(e,t){if(t&&("object"===Nc(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)}(e,Dc()?Reflect.construct(t,n||[],Rc(e).constructor):t.apply(e,n))}function Dc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Dc=function(){return!!e})()}function Pc(){return Pc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Rc(e)););return e}(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Pc.apply(this,arguments)}function Rc(e){return Rc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rc(e)}function xc(e,t){return xc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xc(e,t)}var Fc=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=kc(this,t,[].concat(i))).containerClass="comment-action-timeline",e.containerClassOnMobile="comment-action-timeline-on-mobile",e.handleErrorIconCase=function(){e.imageIconRef&&(e.imageIconRef.style.visibility="hidden",e.imageIconRef.style.display="none",e.commentContentRef&&(e.commentContentRef.style.width="100%"))},e.handleDefaultAction=function(t){var n=e.props.notification.payload.timeline.defaultAction;n.onClick&&"handlePrimary"===n.onClick?n.openInSameTab&&"true"===n.openInSameTab.toString().toLowerCase()?e.onCTAClick(t,!0):e.onCTAClick(t):Tf.handleDefaultAction(e.props,t)},e.onCTAClick=function(t,n){var i=e.props.notification.payload.timeline.commentSection;if(i&&i.passToHostClient&&"true"===i.passToHostClient.toString().toLowerCase()&&po.getInstance().hostCallBackFn&&"function"==typeof po.getInstance().hostCallBackFn)Tf.passClickActionToHostClient(e.props.notification,t);else{var o=i.ctaDeeplinkHandling;if(ie.debug("UNCWidget: CommentActionTimelineNotification: onCTAClick: ctaDeeplinkHandling: ",o),o&&o.deepLinkWorkflows){var r=o.deepLinkWorkflows;if(ie.debug("UNCWidget: CommentActionTimelineNotification: onCTAClick: going to execute deeplink workflows"),Tf.handleClickAction(e.props,io.DEEPLINK_WORKFLOW_CLICKED,{deepLinkWorkflows:r,event:t}))return void ie.debug("UNCWidget: CommentActionTimelineNotification: onCTAClick deeplink handled sucessfully:",r)}var a={event:t,target:i.ctaURL?i.ctaURL:i.commentURL,clickType:"link"},s=e.props.notification.payload.timeline.commentSection.SSODetails;s&&s.ssoEnabled&&"true"===s.ssoEnabled.toString()?(a.ssoEnabled="true",a.ssoTargetClientID=s.ssoTargetClientID,a.ssoTargetScope=s.ssoTargetScope):a.ssoEnabled="false",n&&(a.openInSameTab=!0),i.openInSameTab&&"true"===i.openInSameTab.toString().toLowerCase()&&(a.openInSameTab=!0),Tf.handleClickAction(e.props,io.OPEN_IN_NEW_TAB,a)}},e.onCommentClick=function(t){var n=e.props.notification.payload.timeline.commentSection;if(n&&n.passToHostClient&&"true"===n.passToHostClient.toString().toLowerCase()&&po.getInstance().hostCallBackFn&&"function"==typeof po.getInstance().hostCallBackFn)Tf.passClickActionToHostClient(e.props.notification,t);else{var i=n.deepLinkWorkflows;if(ie.debug("UNCWidget: CommentActionTimelineNotification: onCommentClick: deepLinkWorkflows: ",i),i&&n.ctaDeeplinkHandling&&(ie.debug("UNCWidget: CommentActionTimelineNotification: onCommentClick: going to execute deeplink workflows"),Tf.handleClickAction(e.props,io.DEEPLINK_WORKFLOW_CLICKED,{deepLinkWorkflows:i,event:t})))return void ie.debug("UNCWidget: CommentActionTimelineNotification: onCommentClick deeplink handled sucessfully:",i);var o={event:t,target:n.commentURL,clickType:"link"};if(n.content){var r=n.SSODetails;r&&r.ssoEnabled&&"true"===r.ssoEnabled.toString()?(o.ssoEnabled="true",o.ssoTargetClientID=r.ssoTargetClientID,o.ssoTargetScope=r.ssoTargetScope):o.ssoEnabled="false",n.openInSameTab&&"true"===n.openInSameTab.toString().toLowerCase()&&(o.openInSameTab=!0),Tf.handleClickAction(e.props,io.OPEN_IN_NEW_TAB,o)}}},e}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xc(e,t)}(t,e),n=t,(i=[{key:"componentDidMount",value:function(){var e=this.props.notification,n=this.commentContentTextSpanRef;n&&n.offsetHeight<n.scrollHeight&&this.setState(Tc(Tc({},this.state),{},{showCommentTooltip:!0})),e.payload.timeline.commentSection&&e.payload.timeline.commentSection.icons&&Array.isArray(e.payload.timeline.commentSection.icons)&&e.payload.timeline.commentSection.icons[0].iconURL||this.commentContentRef&&(this.commentContentRef.style.width="100%"),Pc(Rc(t.prototype),"componentDidMount",this).call(this)}},{key:"componentDidUpdate",value:function(e,n){var i=this.commentContentTextSpanRef;i&&i.offsetHeight<i.scrollHeight&&!1===n.showCommentTooltip&&this.setState(Tc(Tc({},this.state),{},{showCommentTooltip:!0})),Pc(Rc(t.prototype),"componentDidUpdate",this).call(this)}},{key:"componentWillUnmount",value:function(){this.commentTooltipTarget=null,this.commentContentTextSpanRef=null,Pc(Rc(t.prototype),"componentWillUnmount",this).call(this)}},{key:"renderTimeline",value:function(){var e=this,t=this.props,n=t.notification,i=t.overlayContainer,o=n.payload.timeline.commentSection,r=this.displayStrings;return wo().createElement("div",{className:ua()("comment-action-timeline-box",{"comment-action-timeline-box-new-unread":n.state===ro.NOTIFICATION_STATE_NEW||n.state===ro.NOTIFICATION_STATE_UNREAD})},wo().createElement("div",{className:"comment-action-timeline-content"},wo().createElement(oa.default,{container:i,trigger:"hover",placement:"bottom",variant:"inspect",delayShow:1e3,boundariesElement:function(){return(0,ko.findDOMNode)(i())}},wo().createElement("div",{className:"comment-container".concat(o.content?" comment-container-box":"").concat(o.commentURL?"":" comment-container-noLink"),tabIndex:po.getInstance().tabIndex,onKeyDown:function(t){return Ja.keyDownEventHandler(t,e.onCommentClick.bind(e,t),null,!0)},onClick:this.onCommentClick,ref:function(t){e.commentTooltipTarget=t},"aria-describedby":"tooltip_".concat(this.uniqueId)},wo().createElement("div",{className:ua()("comment-content",jf.isDeviceTypeMobile()?"comment-mobile-content":"")},o.content&&wo().createElement("div",{className:"content-text"},wo().createElement("span",{dangerouslySetInnerHTML:{__html:o.content},ref:function(t){e.commentContentTextSpanRef=t},className:ua()("contentTextSpan",jf.isDeviceTypeMobile()?"contentTextMobileSpan":"")})))),this.state.showCommentTooltip&&!jf.isDeviceTypeMobile()?wo().createElement(ca.default,{variant:"info",className:"unc-notification-tooltip",id:"tooltip_".concat(this.uniqueId)},wo().createElement("span",{dangerouslySetInnerHTML:{__html:o.content}})):wo().createElement("span",null)),n.payload.timeline.commentSection.ctaText&&wo().createElement("div",{className:"action-content"},wo().createElement("div",{className:"buttons-container",onKeyDown:this.onButtonsContainerClick},wo().createElement(fa.default,{variant:"cta",className:"cta-button",onClick:this.onCTAClick},n.payload.timeline.commentSection.ctaText||r.LOC_VIEW_BUTTON_TEXT)))))}}])&&wc(n.prototype,i),o&&wc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(ls);function Lc(e){return Lc="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},Lc(e)}function Uc(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,jc(i.key),i)}}function jc(e){var t=function(e,t){if("object"!=Lc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Lc(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Lc(t)?t:String(t)}function Mc(e,t,n){return t=Hc(t),function(e,t){if(t&&("object"===Lc(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)}(e,Wc()?Reflect.construct(t,n||[],Hc(e).constructor):t.apply(e,n))}function Wc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wc=function(){return!!e})()}function Hc(e){return Hc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hc(e)}function qc(e,t){return qc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qc(e,t)}var Bc=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=Mc(this,t,[].concat(i))).containerClass="event-timeline",e.containerClassOnMobile="event-timeline-on-mobile",e.handleDefaultAction=function(t){Tf.handleDefaultAction(e.props,t)},e}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qc(e,t)}(t,e),n=t,(i=[{key:"renderTimeline",value:function(){return null}}])&&Uc(n.prototype,i),o&&Uc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(ls),Vc={simpleTimeline1:ys,inviteTimeline:ws,inviteCommentTimeline:Us,commentTimeline:Xs,multipleIconsTimeline:fc,commentCTATimeline:Ec,commentActionTimeline:Fc,eventTimeline:Bc};function Gc(e){return Gc="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},Gc(e)}function zc(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Kc(i.key),i)}}function Kc(e){var t=function(e,t){if("object"!=Gc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Gc(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Gc(t)?t:String(t)}function Yc(e,t,n){return t=Jc(t),function(e,t){if(t&&("object"===Gc(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)}(e,Xc()?Reflect.construct(t,n||[],Jc(e).constructor):t.apply(e,n))}function Xc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xc=function(){return!!e})()}function Jc(e){return Jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jc(e)}function $c(e,t){return $c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$c(e,t)}var Qc=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=Yc(this,t,[].concat(i))).displayStrings=po.getInstance().getLocalizedDisplayStrings(),e}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$c(e,t)}(t,e),n=t,(i=[{key:"render",value:function(){var e=this.props,t=e.announcementNotification,n=e.notificationWidget,i=e.overlayContainer,o=e.selectedFilter,r=this.displayStrings;if(!t)return null;var a=Vc[t.payload.timeline.viewtype];return wo().createElement("div",{className:"segment"},wo().createElement("div",{key:1,className:"notifications-container-announcement",role:"listbox","aria-label":r.LOC_ANNOUNCEMENT},a?wo().createElement(a,{key:t.id,notificationWidget:n,overlayContainer:i,notification:t,section:io.Announcement_Notifications_Section,show:!0,uniqueId:"notificationContainer_".concat(t.id,"_Announcement"),selectedFilter:o}):null))}}])&&zc(n.prototype,i),o&&zc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(wo().Component);function Zc(e){return Zc="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},Zc(e)}function el(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,tl(i.key),i)}}function tl(e){var t=function(e,t){if("object"!=Zc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Zc(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zc(t)?t:String(t)}function nl(e,t,n){return t=ol(t),function(e,t){if(t&&("object"===Zc(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)}(e,il()?Reflect.construct(t,n||[],ol(e).constructor):t.apply(e,n))}function il(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(il=function(){return!!e})()}function ol(e){return ol=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ol(e)}function rl(e,t){return rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rl(e,t)}var al=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=nl(this,t,[].concat(i))).handleEmptyScreeWithIcon=function(){e.notFoundIconRef&&(e.notFoundIconRef.style.visibility="hidden")},e}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rl(e,t)}(t,e),n=t,(i=[{key:"render",value:function(){var e=this,t=this.props,n=t.imageSrc,i=t.descriptionText,o=t.buttonText,r=t.buttonClickCallback;return wo().createElement("div",{className:"empty-screen-with-button-content"},wo().createElement("div",{className:"no-notification-filtered",ref:function(t){e.notFoundIconRef=t}},wo().createElement("img",{className:"no-filtered-notification-icon",alt:"",src:n,onError:function(){return e.handleEmptyScreeWithIcon()}})),wo().createElement("div",{className:"no-matching-notification-text"},i),wo().createElement(fa.default,{label:o,onClick:r,variant:"secondary",className:"load-fetch-more-button"}))}}])&&el(n.prototype,i),o&&el(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(wo().Component);function sl(e){return sl="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},sl(e)}function cl(e,t,n){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var i=t.length;return ul(t,void 0!==n&&n<i?n:i)}return e(t,n)}function ll(e){return function(e){if(Array.isArray(e))return ul(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ul(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ul(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ul(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function fl(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,dl(i.key),i)}}function dl(e){var t=function(e,t){if("object"!=sl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=sl(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sl(t)?t:String(t)}function pl(e,t,n){return t=gl(t),function(e,t){if(t&&("object"===sl(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)}(e,hl()?Reflect.construct(t,n||[],gl(e).constructor):t.apply(e,n))}function hl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hl=function(){return!!e})()}function gl(e){return gl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gl(e)}function ml(e,t){return ml=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ml(e,t)}var yl=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),pl(this,t,arguments)}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ml(e,t)}(t,e),n=t,(i=[{key:"render",value:function(){var e=this.props,t=e.showSkeletonExceptHeader,n=e.showSkeletonItem,i=wo().createElement("div",{className:"skeleton-header"},wo().createElement("div",{className:"skeleton-title-bar"},wo().createElement("div",{className:"skeleton-title-bar-info skeleton-shimmer"}),wo().createElement("div",{className:"skeleton-title-bar-sub-info skeleton-shimmer"})),wo().createElement("div",{className:"skeleton-divider"},wo().createElement("div",{className:"skeleton-divider-line skeleton-shimmer"}))),o=wo().createElement("div",{className:"skeleton-sub-header-bar"},wo().createElement("div",{className:"skeleton-sub-header-bar-info skeleton-shimmer"})),r=wo().createElement("div",{className:"skeleton-item-container"},wo().createElement("div",{className:"skeleton-item"},wo().createElement("div",{className:"skeleton-item-avatar skeleton-shimmer"}),wo().createElement("div",{className:"skeleton-item-info-container"},wo().createElement("div",{className:"skeleton-item-info skeleton-shimmer"}),wo().createElement("div",{className:"skeleton-item-sub-info skeleton-shimmer"})))),a=cl(ll,Array(10)).map((function(){return r}));return n?r:t?[o].concat(cl(ll,a)):wo().createElement("div",{className:"skeleton-container"},i,o,a)}}])&&fl(n.prototype,i),o&&fl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(wo().Component);function vl(e){return vl="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},vl(e)}function bl(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_l(i.key),i)}}function _l(e){var t=function(e,t){if("object"!=vl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=vl(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vl(t)?t:String(t)}function Cl(e,t,n){return t=El(t),function(e,t){if(t&&("object"===vl(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)}(e,Sl()?Reflect.construct(t,n||[],El(e).constructor):t.apply(e,n))}function Sl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Sl=function(){return!!e})()}function El(e){return El=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},El(e)}function Nl(e,t){return Nl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nl(e,t)}var Ol=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=Cl(this,t,[].concat(i))).displayStrings=po.getInstance().getLocalizedDisplayStrings(),e}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nl(e,t)}(t,e),n=t,(i=[{key:"render",value:function(){var e=this.props,t=e.handleFilterClick,n=e.selectedFilter,i=e.showFetchingSpinner,o=e.onFetchMoreNotificationsClick,r=e.showFetchingSpinnerInCaseOfSearchCall,a=e.newNotificationBanner,s=e.onHide,c=wo().createElement(al,{imageSrc:jf.getNoFilteredNotificationsIcon(),descriptionText:this.displayStrings.LOC_NO_MATCHING_NOTIFICATIONS?this.displayStrings.LOC_NO_MATCHING_NOTIFICATIONS:io.displayStrings.LOC_NO_MATCHING_NOTIFICATIONS,buttonText:this.displayStrings.LOC_LOAD_MORE_NOTIFICATIONS?this.displayStrings.LOC_LOAD_MORE_NOTIFICATIONS:io.displayStrings.LOC_LOAD_MORE_NOTIFICATIONS,buttonClickCallback:o}),l=wo().createElement(Qc,this.props);return wo().createElement("div",{className:"empty-screen-with-button"},wo().createElement(Ea,{handleFilterClick:t,selectedFilter:n,onButtonClick:s}),jf.isShowSkeleton(i,r)?wo().createElement(yl,{showSkeletonExceptHeader:!0}):[a,l,c])}}])&&bl(n.prototype,i),o&&bl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(wo().Component);function Tl(e){return Tl="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},Tl(e)}function Il(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,wl(i.key),i)}}function wl(e){var t=function(e,t){if("object"!=Tl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Tl(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Tl(t)?t:String(t)}function Al(e,t,n){return t=Dl(t),function(e,t){if(t&&("object"===Tl(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)}(e,kl()?Reflect.construct(t,n||[],Dl(e).constructor):t.apply(e,n))}function kl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kl=function(){return!!e})()}function Dl(e){return Dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dl(e)}function Pl(e,t){return Pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pl(e,t)}var Rl=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=Al(this,t,[].concat(i))).displayStrings=po.getInstance().getLocalizedDisplayStrings(),e}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pl(e,t)}(t,e),n=t,(i=[{key:"render",value:function(){var e=this.props,t=e.handleFilterClick,n=e.selectedFilter,i=e.newNotificationBanner,o=e.onShowAllNotificationsClick,r=e.onHide,a=wo().createElement(al,{imageSrc:jf.getNoFilteredNotificationsIcon(),descriptionText:this.displayStrings.LOC_NO_MATCHING_NOTIFICATIONS?this.displayStrings.LOC_NO_MATCHING_NOTIFICATIONS:io.displayStrings.LOC_NO_MATCHING_NOTIFICATIONS,buttonText:this.displayStrings.LOC_SHOW_ALL_NOTIFICATIONS?this.displayStrings.LOC_SHOW_ALL_NOTIFICATIONS:io.displayStrings.LOC_SHOW_ALL_NOTIFICATIONS,buttonClickCallback:o}),s=wo().createElement(Qc,this.props);return wo().createElement("div",{className:"empty-screen-with-no-more-notification"},wo().createElement(Ea,{handleFilterClick:t,selectedFilter:n,onButtonClick:r}),i,s,a)}}])&&Il(n.prototype,i),o&&Il(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(wo().Component),xl=function(e){var t=e.bannerLabel,n=e.buttonLabel,i=e.onClickCallback,o=e.classOnBanner;return wo().createElement("div",{className:ua()("banner",o)},wo().createElement("div",{className:"banner-text"},t),wo().createElement("div",{className:"banner-button-wrapper"},wo().createElement(fa.default,{label:n,onClick:i,variant:"overBackground"})))};function Fl(e){return Fl="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},Fl(e)}function Ll(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ul(i.key),i)}}function Ul(e){var t=function(e,t){if("object"!=Fl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Fl(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fl(t)?t:String(t)}function jl(e,t,n){return t=Wl(t),function(e,t){if(t&&("object"===Fl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Hl(e)}(e,Ml()?Reflect.construct(t,n||[],Wl(e).constructor):t.apply(e,n))}function Ml(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ml=function(){return!!e})()}function Wl(e){return Wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wl(e)}function Hl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ql(e,t){return ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ql(e,t)}var Bl=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=jl(this,t)).keydownHandler=function(t){Ja.keyDownEventHandler(t,null,null,null,null,e.onTabKeyPress.bind(Hl(e),t),null)},e.onTabKeyPress=function(t){t.preventDefault(),e.showButtonDiv=e.showBannerRef.current.querySelector("button"),e.showButtonDiv.focus()},e.showBannerRef=(0,Io.createRef)(),e}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ql(e,t)}(t,e),n=t,(i=[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.keydownHandler)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.keydownHandler),this.showBannerRef=null}},{key:"render",value:function(){var e=this.props,t=e.holdNotificationsCount,n=e.displayStrings,i=e.handleNewNotificationBannerClick;return wo().createElement("div",{className:"banner-container",ref:this.showBannerRef},wo().createElement(xl,{bannerLabel:1===t?n.LOC_ONE_NEW_NOTIFICATION:n.LOC_MULTIPLE_NEW_NOTIFICATION.replace("{0}",t),buttonLabel:n.LOC_SHOW?n.LOC_SHOW:io.displayStrings.LOC_SHOW,onClickCallback:i,classOnBanner:"n-new-notifications-banner"}))}}])&&Ll(n.prototype,i),o&&Ll(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(wo().Component);function Vl(e){return Vl="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},Vl(e)}function Gl(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,zl(i.key),i)}}function zl(e){var t=function(e,t){if("object"!=Vl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Vl(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vl(t)?t:String(t)}function Kl(e,t,n){return t=Xl(t),function(e,t){if(t&&("object"===Vl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Jl(e)}(e,Yl()?Reflect.construct(t,n||[],Xl(e).constructor):t.apply(e,n))}function Yl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yl=function(){return!!e})()}function Xl(e){return Xl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xl(e)}function Jl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $l(e,t){return $l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$l(e,t)}var Ql=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=Kl(this,t)).displayStrings=po.getInstance().getLocalizedDisplayStrings(),e.setVisibilityOfLoadMoreButton=function(){var t=e.getVisibilityOfLoadMoreButton();t!==e.state.showLoadMoreButton&&e.setState({showLoadMoreButton:t})},e.getVisibilityOfLoadMoreButton=function(){var t=e.props,n=t.selectedFilter,i=t.showFetchingSpinner,o=t.hasMoreHistoricalNotifications,r=t.pinnedHistoricalNotificationsAvailable,a=t.showFetchingSpinnerInCaseOfSearchCall;if(To()){if(n.value!==io.EVERYTHING&&!i&&!a&&e.notificationContainerDataWrapper&&e.notificationContainerDataWrapper.scrollHeight<485&&(o||r))return!0}else if(n.value!==io.EVERYTHING&&!i&&!a&&e.notificationContainerDataWrapper&&e.notificationContainerDataWrapper.scrollHeight<=e.notificationContainerDataWrapper.clientHeight&&(o||r))return!0;return!1},e.setLoadMoreButtonVisibility=function(){e.setVisibilityOfLoadMoreButton()},e.state={showLoadMoreButton:!0},e.showLoadingSpinner=e.showLoadingSpinner.bind(Jl(e)),e.undoBannerRef=(0,Io.createRef)(),e}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$l(e,t)}(t,e),n=t,(i=[{key:"componentDidMount",value:function(){this.setVisibilityOfLoadMoreButton()}},{key:"componentDidUpdate",value:function(e){var t,n=this.props,i=n.selectedFilter,o=n.showFetchingSpinner,r=(n.holdNotificationsIds,n.showFetchingSpinnerInCaseOfSearchCall);i.filterID===e.selectedFilter.filterID&&i.value===e.selectedFilter.value&&e.showFetchingSpinner===o&&e.showFetchingSpinnerInCaseOfSearchCall===r||this.setVisibilityOfLoadMoreButton(),null!==(t=this.undoBannerRef)&&void 0!==t&&t.current&&(this.undoBannerRef.current.setAttribute("tabindex","-1"),this.undoBannerRef.current.focus())}},{key:"componentWillUnmount",value:function(){this.notificationContainerDataWrapper=null}},{key:"showLoadingSpinner",value:function(){var e=this.props,t=e.selectedFilter,n=e.showFetchingSpinner,i=e.showFetchingSpinnerInCaseOfSearchCall;return n||i&&t!==io.EVERYTHING}},{key:"render",value:function(){var e=this,t=this.props,n=t.notifications,i=t.pinnedNotifications,o=t.holdNotificationsIds,r=t.pinnedNotificationIdsInNormalContainer,a=t.visiblePinnedNotificationsCount,s=t.buttonClickInProgress,c=t.requestDismissedNotifCount,l=t.showUndoBanner,u=t.pinnedHistoricalNotificationsAvailable,f=t.handleWidgetEvents,d=(t.scrollToTop,t.onHide),p=t.notificationWidget,h=t.overlayContainer,g=t.selectedFilter,m=t.segmentedNotifications,y=t.filteredPinnedNotifications,v=t.handleFilterClick,b=t.onFetchMoreNotificationsClick,_=t.handleNewNotificationBannerClick,C=this.displayStrings,S=this.state.showLoadMoreButton,E=o.length,N=n.length+(i.length-r.length),O=y.length,T=wo().createElement(Qc,this.props);return wo().createElement("div",null,0!==E&&wo().createElement(Bl,{holdNotificationsCount:E,displayStrings:C,handleNewNotificationBannerClick:_}),wo().createElement("div",{className:"notifications-container"},wo().createElement(Ea,{selectedFilter:g,handleFilterClick:v,onButtonClick:d}),wo().createElement("div",{onScroll:function(e){return f(io.WIDGET_SCROLL,e)},ref:function(t){e.notificationContainerDataWrapper=t},className:ua()("notification-container-data",{"increase-height-of-widget":S},{"notification-container-data-on-mobile":jf.isDeviceTypeMobile()}),id:"notification-container-data-id"},T,O-c>0&&[wo().createElement("div",{key:0,className:"notifications-title","aria-hidden":"true",role:"heading"},po.getInstance().showWidgetCrossButton&&wo().createElement("div",{className:"widget-close-icon",onClick:function(e){ie.log("requests header cross clicked"),e.preventDefault(),e.stopPropagation(),d()}},wo().createElement(va.Z,{className:"",size:"S"}))),wo().createElement("div",{className:"segment"},wo().createElement("h3",{className:"segment-heading"},C.LOC_IMPORTANT?C.LOC_IMPORTANT:io.displayStrings.LOC_IMPORTANT),wo().createElement("div",{key:1,className:"pinned-Notifications-Container",role:"listbox","aria-label":C.LOC_IMPORTANT},y.map((function(e){var t=Vc[e.payload.timeline.viewtype];return t?wo().createElement(t,{key:e.id,notificationWidget:p,overlayContainer:h,notification:e,section:io.Pinned_Notifications_Section,uniqueId:"notificationContainer_".concat(e.id,"_Pinned"),selectedFilter:g}):null})))),wo().createElement("div",{key:2},g.value===io.EVERYTHING&&(u||O-a!=0)&&wo().createElement("div",{className:"more-requests".concat(s?" showMoreDisabled":"")},wo().createElement("span",{tabIndex:po.getInstance().tabIndex,onClick:function(e){return or.getInstance().handleButtonClickToFetchMorePinnedNotifications({eventObject:e.nativeEvent})},onKeyDown:function(e){return Ja.keyDownEventHandler(e,or.getInstance().handleButtonClickToFetchMorePinnedNotifications.bind(or.getInstance(),{eventObject:e.nativeEvent}),null,!0)}},C.LOC_SHOW_MORE_REQUESTS)))],(N-r.length>0||0===N&&O-c==0)&&wo().createElement("div",{className:"notifications-title","aria-hidden":"true",role:"heading"},po.getInstance().showWidgetCrossButton&&!(O-c)>0&&wo().createElement("div",{className:"widget-close-icon",onClick:function(e){ie.log("notifications header cross clicked"),e.preventDefault(),e.stopPropagation(),d()}},wo().createElement(va.Z,{className:"",size:"S"}))),m.New.length>0&&wo().createElement("div",{className:"segment"},wo().createElement("h3",{className:"segment-heading"},C.LOC_NEW?C.LOC_NEW:io.displayStrings.LOC_NEW),wo().createElement("div",{className:"normal-notifications-container",role:"listbox","aria-label":C.LOC_NEW},m.New.map((function(t){var n=Vc[t.payload.timeline.viewtype];return n?wo().createElement(n,{key:t.id,notificationWidget:p,overlayContainer:h,notification:t,section:io.Normal_Notifications_Section,uniqueId:"notificationContainer_".concat(t.id),selectedFilter:g,setLoadMoreButtonVisibility:e.setLoadMoreButtonVisibility}):null})))),m.Today.length>0&&wo().createElement("div",{className:"segment"},wo().createElement("h3",{className:"segment-heading"},C.LOC_TODAY?C.LOC_TODAY:io.displayStrings.LOC_TODAY),wo().createElement("div",{className:"normal-notifications-container",role:"listbox","aria-label":C.LOC_TODAY},m.Today.map((function(t){var n=Vc[t.payload.timeline.viewtype];return n?wo().createElement(n,{key:t.id,notificationWidget:p,overlayContainer:h,notification:t,section:io.Normal_Notifications_Section,uniqueId:"notificationContainer_".concat(t.id),selectedFilter:g,setLoadMoreButtonVisibility:e.setLoadMoreButtonVisibility}):null})))),m.Earlier.length>0&&wo().createElement("div",{className:"segment"},wo().createElement("h3",{className:"segment-heading"},C.LOC_EARLIER?C.LOC_EARLIER:io.displayStrings.LOC_EARLIER),wo().createElement("div",{className:"normal-notifications-container",role:"listbox","aria-label":C.LOC_EARLIER},m.Earlier.map((function(t){var n=Vc[t.payload.timeline.viewtype];return n?wo().createElement(n,{key:t.id,notificationWidget:p,overlayContainer:h,notification:t,section:io.Normal_Notifications_Section,uniqueId:"notificationContainer_".concat(t.id),selectedFilter:g,setLoadMoreButtonVisibility:e.setLoadMoreButtonVisibility}):null})))),this.showLoadingSpinner()&&wo().createElement(yl,{showSkeletonItem:!0})),S&&wo().createElement("div",{className:"load-more-notification-container"},wo().createElement(fa.default,{label:C.LOC_LOAD_MORE_NOTIFICATIONS?C.LOC_LOAD_MORE_NOTIFICATIONS:io.displayStrings.LOC_LOAD_MORE_NOTIFICATIONS,onClick:b,variant:"secondary",className:"load-more-button"})),l&&wo().createElement("div",{className:"banner-container",ref:this.undoBannerRef},wo().createElement(xl,{bannerLabel:C.LOC_NOTIFICATION_DISMISSED?C.LOC_NOTIFICATION_DISMISSED:io.displayStrings.LOC_NOTIFICATION_DISMISSED,buttonLabel:C.LOC_UNDO?C.LOC_UNDO:io.displayStrings.LOC_UNDO,onClickCallback:Sr.getInstance().handleUndoClick,classOnBanner:jf.isDeviceTypeMobile()?"notification-undo-banner-on-mobile":"notification-undo-banner"}))))}}])&&Gl(n.prototype,i),o&&Gl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(wo().Component);function Zl(e){return Zl="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},Zl(e)}function eu(){return eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},eu.apply(this,arguments)}function tu(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,nu(i.key),i)}}function nu(e){var t=function(e,t){if("object"!=Zl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Zl(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zl(t)?t:String(t)}function iu(e,t,n){return t=ru(t),function(e,t){if(t&&("object"===Zl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return au(e)}(e,ou()?Reflect.construct(t,n||[],ru(e).constructor):t.apply(e,n))}function ou(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ou=function(){return!!e})()}function ru(e){return ru=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ru(e)}function au(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function su(e,t){return su=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},su(e,t)}var cu=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=iu(this,t)).displayStrings=po.getInstance().getLocalizedDisplayStrings(),e.getNotificationWidgetView=e.getNotificationWidgetView.bind(au(e)),e}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&su(e,t)}(t,e),n=t,(i=[{key:"componentDidMount",value:function(){po.getInstance().cssProperties&&this.props.setNotificationsWidgetCustomProperties(this.notificationsDataWrapper)}},{key:"componentWillUnmount",value:function(){this.notificationsDataWrapper=null}},{key:"getNotificationWidgetView",value:function(e){var t=this,n=this.props,i=n.handleFilterClick,o=n.selectedFilter,r=n.holdNotificationsIds,a=n.handleNewNotificationBannerClick,s=n.onShowAllNotificationsClick,c=n.onHide,l=r.length,u=0!==l?wo().createElement(Bl,{holdNotificationsCount:l,displayStrings:this.displayStrings,handleNewNotificationBannerClick:a}):"";switch(e){case io.SKELETON_SCREEN:return wo().createElement(yl,null);case io.WELCOME_SCREEN:return wo().createElement(Da,{newNotificationBanner:u});case io.EMPTY_SCREEN_WITH_FETCH_MORE_BUTTON:return wo().createElement(Ol,eu({},this.props,{newNotificationBanner:u}));case io.EMPTY_SCREEN_WITH_NO_MORE_NOTIFICATIONS:return wo().createElement(Rl,{handleFilterClick:i,selectedFilter:o,onShowAllNotificationsClick:s,newNotificationBanner:u,onHide:c});case io.SOME_NOTIFICATIONS_AVAILABLE_SCREEN:return wo().createElement(Ql,eu({ref:function(e){t.someNotificationAvailableScreenRef=e}},this.props));default:return null}}},{key:"render",value:function(){var e=this,t=this.props,n=t.notifications,i=t.pinnedNotifications,o=t.announcementNotification,r=t.pinnedNotificationIdsInNormalContainer,a=t.showFetchingSpinner,s=t.showFetchingSpinnerInCaseOfSearchCall,c=t.pinnedHistoricalNotificationsAvailable,l=t.handleKeyPress,u=t.segmentedNotifications,f=t.filteredPinnedNotifications,d=t.hasMoreHistoricalNotifications,p=n.length+(i.length-r.length),h=u.New.length+u.Today.length+u.Earlier.length+f.length+(o?1:0);return wo().createElement("div",{ref:function(t){e.notificationsDataWrapper=t},className:ua()("notifications-data-wrapper",jf.isDeviceTypeMobile()?"notifications-mobile-data-wrapper":""),onKeyDown:l},0===p?jf.isShowSkeleton(a,s)?e.getNotificationWidgetView(io.SKELETON_SCREEN):e.getNotificationWidgetView(io.WELCOME_SCREEN):0===h?d||c?e.getNotificationWidgetView(io.EMPTY_SCREEN_WITH_FETCH_MORE_BUTTON):e.getNotificationWidgetView(io.EMPTY_SCREEN_WITH_NO_MORE_NOTIFICATIONS):p?e.getNotificationWidgetView(io.SOME_NOTIFICATIONS_AVAILABLE_SCREEN):e.getNotificationWidgetView())}}])&&tu(n.prototype,i),o&&tu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(wo().Component),lu=function(e){var t=e.height,n=e.width,i=e.className,o=void 0===i?"":i;return wo().createElement("svg",{className:o,width:n,height:t,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wo().createElement("path",{d:"M17.7862 12.6758C17.6177 12.3672 17.4454 12.0684 17.2749 11.7734C16.4483 10.3389 15.7339 9.10059 15.7339 7.15332C15.7339 4.03418 13.1963 1.49609 10.0767 1.49609C6.95706 1.49609 4.41946 4.03418 4.41946 7.15332C4.41946 8.91992 3.66067 10.2022 2.85745 11.5586C2.63724 11.9307 2.41604 12.3047 2.20804 12.6895C1.83206 13.3857 1.85111 14.21 2.25882 14.8936C2.67093 15.584 3.39554 15.9961 4.1973 15.9961H7.24955C7.24955 17.5127 8.48295 18.7461 9.99955 18.7461C11.5162 18.7461 12.7496 17.5127 12.7496 15.9961H15.8047C16.608 15.9961 17.3326 15.583 17.7437 14.8906C18.1514 14.2031 18.1675 13.375 17.7862 12.6758ZM9.99955 17.2461C9.3101 17.2461 8.74955 16.6855 8.74955 15.9961H11.2496C11.2496 16.6855 10.689 17.2461 9.99955 17.2461ZM16.4537 14.125C16.3872 14.2363 16.1914 14.4961 15.8047 14.4961H4.19731C3.92876 14.4961 3.68559 14.3574 3.54692 14.125C3.48247 14.0166 3.35161 13.7295 3.52837 13.4023C3.72661 13.0342 3.93804 12.6777 4.148 12.3232C5.01909 10.8525 5.91948 9.33105 5.91948 7.15332C5.91948 4.89941 7.82329 2.99609 10.0767 2.99609C12.3301 2.99609 14.2339 4.89941 14.2339 7.15332C14.2339 9.50195 15.1192 11.0371 15.9756 12.5225C16.1402 12.8076 16.3062 13.0957 16.4693 13.3945C16.65 13.7256 16.5186 14.0156 16.4537 14.125Z"}))};function uu(e){return uu="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},uu(e)}function fu(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,du(i.key),i)}}function du(e){var t=function(e,t){if("object"!=uu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=uu(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uu(t)?t:String(t)}function pu(e,t,n){return t=gu(t),function(e,t){if(t&&("object"===uu(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)}(e,hu()?Reflect.construct(t,n||[],gu(e).constructor):t.apply(e,n))}function hu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hu=function(){return!!e})()}function gu(e){return gu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gu(e)}function mu(e,t){return mu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mu(e,t)}var yu=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=pu(this,t,[e])).state={hasError:!1},n}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mu(e,t)}(t,e),n=t,(i=[{key:"componentDidCatch",value:function(e,t){ie.debug("UNCWidget: ErrorBoundary: called with : ",e," : ",t),this.setState({hasError:!0})}},{key:"render",value:function(){var e=this.state.hasError,t=this.props.children;return e?wo().createElement(Da,null):t}}])&&fu(n.prototype,i),o&&fu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(wo().Component);function vu(e){return vu="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},vu(e)}var bu=["theme"];function _u(){return _u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_u.apply(this,arguments)}function Cu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Su(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cu(Object(n),!0).forEach((function(t){Eu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Eu(e,t,n){return(t=Au(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nu(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ou(e,t,n){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var i=t.length;return Iu(t,void 0!==n&&n<i?n:i)}return e(t,n)}function Tu(e){return function(e){if(Array.isArray(e))return Iu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Iu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Iu(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Iu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function wu(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Au(i.key),i)}}function Au(e){var t=function(e,t){if("object"!=vu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=vu(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vu(t)?t:String(t)}function ku(e,t,n){return t=Pu(t),function(e,t){if(t&&("object"===vu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ru(e)}(e,Du()?Reflect.construct(t,n||[],Pu(e).constructor):t.apply(e,n))}function Du(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Du=function(){return!!e})()}function Pu(e){return Pu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pu(e)}function Ru(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xu(e,t){return xu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xu(e,t)}var Fu=function(e){function t(e,n){var i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=ku(this,t,[e,n])).state={expanded:!1,tabPress:!1},i.show=function(e){i.overlay.show(),jf.isValidString(e)&&setTimeout((function(){0!==i.props.holdNotificationsIds.length&&i.handleNewNotificationBannerClick(),setTimeout((function(){var t=document.getElementById("notificationContainer_".concat(e,"_Pinned"));if(t||(t=document.getElementById("notificationContainer_".concat(e))),t){jf.scrollToDiv(i.notificationWidget.someNotificationAvailableScreenRef.notificationContainerDataWrapper,t,40,1e3),t.style.animation="add-contrast 2s ease-in-out"}}),0)}),0)},i.setNotificationsWidgetCustomProperties=function(e){po.getInstance().cssProperties&&(Object.prototype.hasOwnProperty.call(po.getInstance().cssProperties,"height")&&""!==po.getInstance().cssProperties.height&&0!==po.getInstance().cssProperties.height&&(e.style.height="".concat(po.getInstance().cssProperties.height,"px"),e.style["max-height"]="".concat(po.getInstance().cssProperties.height,"px")),Object.prototype.hasOwnProperty.call(po.getInstance().cssProperties,"width")&&""!==po.getInstance().cssProperties.width&&0!==po.getInstance().cssProperties.width&&(e.style.width="".concat(po.getInstance().cssProperties.width,"px")),Object.prototype.hasOwnProperty.call(po.getInstance().cssProperties,"border-width")&&(e.style["border-width"]="".concat(po.getInstance().cssProperties["border-width"],"px")),Object.prototype.hasOwnProperty.call(po.getInstance().cssProperties,"border-radius")&&(e.style["border-radius"]="".concat(po.getInstance().cssProperties["border-radius"],"px")),Object.prototype.hasOwnProperty.call(po.getInstance().cssProperties,"margin-right")&&(e.style["margin-right"]="".concat(po.getInstance().cssProperties["margin-right"],"px")),Object.prototype.hasOwnProperty.call(po.getInstance().cssProperties,"top")&&(e.style.top="".concat(po.getInstance().cssProperties.top,"px")))},i.loadHistoricalNotificationsOnClick=function(){po.getInstance().features&&po.getInstance().features.disabledFetchHistoricalNotification&&!i.fetchHistoricalNotificationsInDesktopOnce&&(qr.getInstance().beginHistoricalNotificationsFetching(),i.fetchHistoricalNotificationsInDesktopOnce=!0)},i.onEnterClick=function(e){e.preventDefault(),e.stopPropagation(),Tf.onBlurEventHandlerForTabIndex(i.popOverTargetElement),i.loadHistoricalNotificationsOnClick(),i.show()},i.onKeyPress=function(e){e.preventDefault();var t=new KeyboardEvent("keydown",{key:"Tab",bubbles:!0});e.target.dispatchEvent(t),i.setState({tabPress:!0})},i.hide=function(){ie.debug("hiding overlay"),i.overlay.hide()},i.handleGlobalMouseDown=function(e){var t=e.target;i.widgetRef&&i.widgetRef.popoverRef&&!i.widgetRef.popoverRef.contains(t)&&(i.popOverTargetElement&&i.popOverTargetElement.contains(t)&&e.stopPropagation(),i.hide())},i.handleWidgetEvents=function(e,t){ie.debug("UNCWidget: NotificationsProvider: handleWidgetEvents - called with : ",e," : ",t);var n=i.props,o=n.selectedFilter,r=n.notifications,a=n.pinnedNotifications;switch(e){case io.WIDGET_OPEN:var s=i.props.holdNotificationsIds;po.getInstance()&&po.getInstance().onWidgetOpenCloseCallbackFn&&po.getInstance().onWidgetOpenCloseCallbackFn("open"),i.loadHistoricalNotificationsOnClick(),(0!==s.length||po.getInstance().badgeCount>0)&&(o.value!==io.EVERYTHING&&qo.getInstance().setSelectedFilter({filterID:io.EVERYTHING,value:io.EVERYTHING}),fr.getInstance().triggerShowingHoldFeedNotifications()),i.setState({expanded:!0}),i.bellIconRef&&i.bellIconRef.buttonRef&&i.bellIconRef.buttonRef.classList.remove("focus-ring"),ie.debug("UNCWidget: NotificationsProvider: handleWidgetEvents: WIDGET_OPEN - Notification widget opened");try{$o.getInstance().sendAnalyticsForNotificationWidgetVisit()}catch(e){ie.debug("UNCWidget: NotificationsProvider: handleWidgetEvents: WIDGET_OPEN - Error in sending analytics for widget open clicked")}try{$o.getInstance().sendAnalyticsForWidgetRendered()}catch(e){ie.debug("UNCWidget: NotificationsProvider: handleWidgetEvents: WIDGET_OPEN - Error in sending analytics for widget open clicked")}try{if(zr.getInstance().sendMessage(io.UPDATE_BADGE_COUNT,{value:0},io.CLIENT_TARGET_TYPE,""),po.getInstance().badgeRef&&(po.getInstance().badgeRef.style.display="none"),po.getInstance().surface&&po.getInstance().surface.toUpperCase()===io.SURFACE_DESKTOP&&zr.getInstance().sendMessage(io.CHANGE_NOTIFICATION_ICON,{NotificationIconData:{iconType:"normal"}},"Applet",io.CONTAINER_BL_ID),po.getInstance().isWidgetOpen=!0,gr.getInstance().sendAnalyticsForRenderOfNotificationsInNewState(),po.getInstance().badgeCount>0){po.getInstance().badgeCount=0,zr.getInstance().sendMessage(io.RESET_LOCAL_BADGE_COUNT,{});var c=zr.getInstance().sendMessage(io.GET_USER_PROFILE,{},io.CLIENT_TARGET_TYPE,"",!1);if(void 0===c.UserID||""===c.UserID)break;zr.getInstance().sendMessage(io.CLEAR_BADGE,{"user-id":c.UserID})}}catch(e){}i.eventStore&&i.eventStore.dispatch(i.eventStore.createEvent("OverlayOpened",{overlayId:oo}));break;case io.WIDGET_CLOSE:if(ie.debug("UNCWidget: NotificationsProvider: `handleWidgetEvents`: WIDGET_CLOSE - Notification widget closed"),po.getInstance()&&po.getInstance().onWidgetOpenCloseCallbackFn&&po.getInstance().onWidgetOpenCloseCallbackFn("close"),i.setState({expanded:!1}),!0===po.getInstance().isWidgetOpen){if(ie.debug("UNCWidget: NotificationsProvider: handleWidgetEvents: WIDGET_CLOSE - Executing clearing accepted/rejected invites and clearing contrast"),gr.getInstance().removeAllAcceptedOrRejectedInvitations(),po.getInstance().badgeRef&&(po.getInstance().badgeRef.style.display="none"),po.getInstance().badgeCount>0){po.getInstance().badgeCount=0,zr.getInstance().sendMessage(io.RESET_LOCAL_BADGE_COUNT,{});var l=zr.getInstance().sendMessage(io.GET_USER_PROFILE,{},io.CLIENT_TARGET_TYPE,"",!1);if(void 0===l.UserID||""===l.UserID)break;zr.getInstance().sendMessage(io.CLEAR_BADGE,{"user-id":l.UserID})}var u=i.filterNotifications(r,o),f=i.filterNotifications(a,o),d=u.filter((function(e){return e.state===ro.NOTIFICATION_STATE_NEW})),p=f.filter((function(e){return e.state===ro.NOTIFICATION_STATE_NEW})),h=a.filter((function(e){return Oo.isEventNotification(e)&&e.eventNotificationData&&e.eventNotificationData.shouldExpireOnClose})),g=pa().union(d,p,h);if(g&&g.length>0)try{ie.debug("UNCWidget: NotificationsProvider: handleWidgetEvents: WIDGET_CLOSE - marking notifications as unread");var m={},y=[];m.notifications={},g.forEach((function(e){var t={};t["notification-id"]=e.id,t.state=e.eventNotificationData&&e.eventNotificationData.shouldExpireOnClose?ro.NOTIFICATION_STATE_EXPIRED:ro.NOTIFICATION_STATE_UNREAD,y.push(t)})),m.notifications.notification=y,zr.getInstance().sendMessage(io.UPDATE_NOTIFICATIONS_DATA,{content:JSON.stringify(m)})}catch(e){ie.debug("UNCWidget: NotificationsProvider: handleWidgetEvents: WIDGET_CLOSE - Error while marking notifications as unread")}try{$o.getInstance().sendAnalyticsForWidgetClosed()}catch(e){ie.debug("UNCWidget: NotificationsProvider: handleWidgetEvents: WIDGET_CLOSE - Error in sending analytics for widget close clicked")}po.getInstance().isWidgetOpen=!1}i.eventStore&&i.eventStore.dispatch(i.eventStore.createEvent("OverlayClosed",{overlayId:oo})),po.getInstance().surface&&po.getInstance().surface.toUpperCase()!==io.SURFACE_DESKTOP&&po.getInstance().optimizations&&po.getInstance().optimizations.includes(io.Optimizations.DYNAMIC_LOADING)&&gf.getInstance().unmountAndCleanupWidget();break;case io.WIDGET_SCROLL:var v=i.notificationWidget.someNotificationAvailableScreenRef.notificationContainerDataWrapper;v.scrollTop>0?(fr.getInstance().scrollPositionOnTop=!1,v.clientHeight+v.scrollTop+1>=v.scrollHeight&&v.scrollTop>=i.lastScrollTopPosition&&i.fetchMoreNotificationsOnScroll()):0===v.scrollTop&&(fr.getInstance().scrollPositionOnTop=!0,fr.getInstance().triggerShowingHoldFeedNotifications()),i.lastScrollTopPosition=v.scrollTop;break;case io.WIDGET_MOUSE_OVER:var b=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;document.body.scrollHeight>window.innerHeight&&b<=5&&(document.body.classList.add("widget-hover"),document.body.classList.remove("widget-hover-exit"));break;case io.WIDGET_MOUSE_OUT:document.body.classList.contains("widget-hover")&&(document.body.classList.remove("widget-hover"),document.body.classList.add("widget-hover-exit"))}},i.handleKeyPress=function(e){var t=i.notificationWidget.notificationsDataWrapper;38===e.keyCode?(ie.debug("UNCWidget: NotificationsProvider: handleKeyPress - up key pressed"),0!==t.scrollTop&&(t.scrollTop-=15)):40===e.keyCode&&(ie.debug("UNCWidget: NotificationsProvider: handleKeyPress - down key pressed"),t.scrollTop+=15)},i.handleNewNotificationBannerClick=function(e){e&&e.stopPropagation(),i.props.selectedFilter.value!==io.EVERYTHING&&qo.getInstance().setSelectedFilter({filterID:io.EVERYTHING,value:io.EVERYTHING}),setTimeout((function(){if(i.notificationWidget.someNotificationAvailableScreenRef){var e=i.notificationWidget.someNotificationAvailableScreenRef.notificationContainerDataWrapper;0===e.scrollTop?fr.getInstance().triggerShowingHoldFeedNotifications():i.scrollToTop(e)}else fr.getInstance().triggerShowingHoldFeedNotifications()}),0)},i.scrollToTop=function(e){var t=-e.scrollTop/(io.NOTIFICATIONS_SCROLL_UP_DURATION/15),n=setInterval((function(){0!==e.scrollTop?e.scrollTop+=t:clearInterval(n)}),15)},i.hasContentInNotification=function(e){return!!(e&&e.payload&&e.payload.timeline&&e.payload.timeline.content)&&(e.payload.timeline.viewtype!==io.COMMENT_CTA_TIMELINE||!!e.payload.timeline.commentSection)},i.updateContainerOffset=function(){var e=Do().findDOMNode(i.container),t=window.getComputedStyle(e),n=t.left,o=t.top,r=i.offset(e),a=n&&n.split("px")[0],s=o&&o.split("px")[0];(r.left||r.scrollLeft)&&(i.container.style.left="".concat(i.getInt(a)-i.getInt(r.left)+i.getInt(r.scrollLeft),"px")),(r.top||r.scrollTop)&&(i.container.style.top="".concat(i.getInt(s)-i.getInt(r.top)+i.getInt(r.scrollTop),"px")),jf.isDeviceTypeMobile()&&i.setTraySpacingCSSVariable()},i.processAnnouncementNotification=function(e,t){var n=i.getAnnouncementNotificationsSortedInNewOrUnReadState(e,t);if(!n||0===n.length)return null;var o=n[0];return Co.isAnnouncementNotificationTerminated(o)?null:(i.filterOutAnnouncementNotificationFromNotifications(e,t,o),o)},i.filterOutAnnouncementNotificationFromNotifications=function(e,t,n){if(n){if(e)for(var i=e.length,o=0;o<i;o+=1)e[o]&&e[o].id===n.id&&e.splice(o,1);if(t)for(var r=t.length,a=0;a<r;a+=1)t[a]&&t[a].id===n.id&&t.splice(a,1)}},i.getAnnouncementNotificationsSortedInNewOrUnReadState=function(e,t){var n=[];return e&&n.push.apply(n,Ou(Tu,e.filter((function(e){return Co.isAnnouncementNotificationAndInNewOrUnReadState(e)})))),t&&n.push.apply(n,Ou(Tu,t.filter((function(e){return Co.isAnnouncementNotificationAndInNewOrUnReadState(e)})))),n.sort((function(e,t){return t.renderingOrderTimestamp-e.renderingOrderTimestamp})),n},i.onShowAllNotificationsClick=function(e){e.preventDefault(),e.stopPropagation(),ie.debug("UNCWidget: NotificationsProvider: show all notifications clicked");try{$o.getInstance().sendAnalyticsForButtonClick(io.SHOW_ALL_NOTIFICATIONS)}catch(e){ie.debug("UNCWidget: NotificationsProvider: onShowAllNotificationClick: ButtonClick- Error in sending analytics for showAllNotifications click")}qo.getInstance().setSelectedFilter({filterID:io.EVERYTHING,value:io.EVERYTHING})},i.lastScrollTopPosition=0,i.waitVariant="default",i.fetchHistoricalNotificationsInDesktopOnce=!1;var o=i.props.theme,r=io.SUPPORTED_THEME_VALUES.findIndex((function(e){return e.toLowerCase()===o.toLowerCase()}));return po.getInstance().ccdGlobalStore?i.eventStore=po.getInstance().ccdGlobalStore.get("events"):i.eventStore=null,-1===r?i.props.theme=io.DEFAULT_THEME:r||(i.waitVariant="dots"),i.handleFilterClick=i.handleFilterClick.bind(Ru(i)),i.getSegmentedNotifications=i.getSegmentedNotifications.bind(Ru(i)),i.filterNotifications=i.filterNotifications.bind(Ru(i)),i.fetchMoreNotificationsOnScroll=i.fetchMoreNotificationsOnScroll.bind(Ru(i)),i.onFetchMoreNotificationsClick=i.onFetchMoreNotificationsClick.bind(Ru(i)),i}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xu(e,t)}(t,e),n=t,i=[{key:"componentDidMount",value:function(){var e=this;this.overlayTimeout=setTimeout((function(){return e.updateContainerOffset()}),100),window.addEventListener("resize",this.updateContainerOffset),window.addEventListener("click",this.handleGlobalMouseDown,!0),this.loadContainer=this.container;var t=this.props;t.notifications,t.pinnedNotifications}},{key:"componentWillUnmount",value:function(){clearTimeout(this.overlayTimeout),this.loadContainer=null,this.widgetRef=null,this.notificationWidget=null,window.removeEventListener("resize",this.updateContainerOffset),window.removeEventListener("click",this.handleGlobalMouseDown,!0)}},{key:"getInt",value:function(e){return Number(e)||0}},{key:"fetchMoreNotificationsOnScroll",value:function(){var e=this.props,t=e.showFetchingSpinner,n=e.selectedFilter;e.pinnedHistoricalNotificationsAvailable,ie.debug("UNCWidget: NotificationsProvider: handleWidgetEvents: WIDGET_SCROLL - Reached bottom");var i=qr.getInstance().fetchHistoricalNotifications();if(i===io.CALLING_FETCH){qo.getInstance().setFetchingSpinnerState();try{$o.getInstance().sendAnalyticsForUserTriggeredScroll()}catch(e){ie.debug("UNCWidget: NotificationsProvider: handleWidgetEvents: WIDGET_SCROLL - Error in sending analytics for WIDGET_SCROLL")}}else i===io.NOT_AVAILABLE?qo.getInstance().hideFetchingSpinnerState():!1===t&&qo.getInstance().setFetchingSpinnerState();n.value!==io.EVERYTHING&&qr.getInstance()._fetchPinnedHistoricalNotifications()}},{key:"getSegmentedNotifications",value:function(e){var t=this,n={New:[],Today:[],Earlier:[]},i=!0;return e.forEach((function(e){t.hasContentInNotification(e)&&(i&&e.state===ro.NOTIFICATION_STATE_NEW?n.New.push(e):jf.isTodaysNotification(e.renderingOrderTimestamp)?(n.Today.push(e),i=!1):(n.Earlier.push(e),i=!1))})),n}},{key:"setTraySpacingCSSVariable",value:function(){var e=window.visualViewport?window.visualViewport.height:window.innerHeight;ie.debug("UNCWidget: NotificationsProvider: Mobile Viewport Height: ".concat(e));var t=.0625*e;document.documentElement.style.setProperty("--unc-mobile-viewport-height","".concat(t,"rem"))}},{key:"offset",value:function(e){var t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,i=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+i,left:t.left+n,scrollTop:i,scrollLeft:n}}},{key:"getExclusiveListOfNormalNotifications",value:function(e,t){return e.filter((function(e){return!t.some((function(t){return t===e.id}))}))}},{key:"filterNotifications",value:function(e,t){if(t.value===io.EVERYTHING)return e;var n=[];return e.forEach((function(e){if(e.payload.timeline&&e.payload.timeline.filterDetails)if(e.payload.timeline.overrideFilter)n.push(e);else try{e.payload.timeline.filterDetails.forEach((function(i){i.filterID===t.filterID&&i.categories.some((function(e){return e===t.value}))&&n.push(e)}))}catch(t){ie.debug("UNCWidget: NotificationsProvider: malformed filterDetails array, this",e,"will only be available in everything Filter :",t)}})),n}},{key:"handleFilterClick",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{filterId:io.EVERYTHING,value:io.EVERYTHING},t=po.getInstance().premptiveCallCountOnFilterChange;qo.getInstance().setSelectedFilter(e);try{$o.getInstance().sendAnalyticsForFilterClick(e)}catch(e){ie.debug("UNCWidget: NotificationsProvider: handleWidgetEvents: FILTER_CLICK- Error in sending analytics for FILTER_CLICK")}var n=this.props,i=n.notifications,o=n.pinnedNotifications,r=n.pinnedHistoricalNotificationsAvailable,a=n.pinnedNotificationIdsInNormalContainer,s=t;this.getExclusiveListOfNormalNotifications(i,a).length+o.length<10*s&&(ie.debug("UNCWidget: NotificationsProvider: making call to timeline and request api if historical notifications available"),r?(qr.getInstance()._fetchPinnedHistoricalNotifications(),qr.getInstance().fetchXHistoricalNotifications(s-1)):qr.getInstance().fetchXHistoricalNotifications(s))}},{key:"onFetchMoreNotificationsClick",value:function(e){e.preventDefault(),e.stopPropagation(),ie.debug("UNCWidget: NotificationsProvider: fetching pinned and normal historical notification simultaneously"),this.props.selectedFilter;try{$o.getInstance().sendAnalyticsForButtonClick(io.LOAD_MORE_NOTIFICATIONS)}catch(e){ie.debug("UNCWidget: NotificationsProvider: onFetchMoreNotificationClick: ButtonClick- Error in sending analytics for Fetch More click")}qr.getInstance()._fetchPinnedHistoricalNotifications(),qr.getInstance().fetchXHistoricalNotifications(1)}},{key:"render",value:function(){var e,t=this,n=this.state,i=n.expanded,o=n.tabPress,r=!i&&void 0;e=po.getInstance().localizedStrings?JSON.parse(JSON.stringify(po.getInstance().localizedStrings)):JSON.parse(JSON.stringify(po.getInstance().displayData));var a=this.props,s=a.theme,c=Nu(a,bu),l=null,u=null,f="notification-img";if(ie.debug("UNCWidget: NotificationsProvider: render customNotificationIcon data : ",po.getInstance().customNotificationIcon),po.getInstance().customNotificationIcon&&(l=po.getInstance().customNotificationIcon.url,po.getInstance().customNotificationIcon.domAttributes)){var d=po.getInstance().customNotificationIcon.domAttributes;d.class&&(u=d.class),d.id&&(f=d.id)}var p=this.props,h=p.notifications,g=p.pinnedNotifications,m=p.selectedFilter,y=p.pinnedNotificationIdsInNormalContainer,v=p.showFetchingSpinner,b=p.showFetchingSpinnerInCaseOfSearchCall,_=this.getExclusiveListOfNormalNotifications(h,y),C=this.processAnnouncementNotification(_,g),S=this.filterNotifications(_,m),E=this.filterNotifications(g,m),N=this.getSegmentedNotifications(S),O=S.length+E.length+(C?1:0),T=ua()("providerBaseClass",{"unc-filter-one-notification-popover":1===O},{"unc-filter-two-notification-popover":2===O},{"providerBaseClass-on-mobile":jf.isDeviceTypeMobile()}),I=ua()("unc-icon-tooltip",{"unav-notification-icon-tooltip":"DESKTOP"!==po.getInstance().surface.toUpperCase()}),w=Su(Su({},c),{},{onHide:this.hide,handleWidgetEvents:this.handleWidgetEvents,setNotificationsWidgetCustomProperties:this.setNotificationsWidgetCustomProperties,handleKeyPress:this.handleKeyPress,scrollToTop:this.scrollToTop,overlayContainer:function(){return t.widgetRef},segmentedNotifications:N,filteredNormalNotifications:S,filteredPinnedNotifications:E,announcementNotification:C,handleFilterClick:this.handleFilterClick,hasMoreHistoricalNotifications:qr.getInstance().hasMoreHistoricalNotificationsAvailable(),onFetchMoreNotificationsClick:this.onFetchMoreNotificationsClick,handleNewNotificationBannerClick:this.handleNewNotificationBannerClick,onShowAllNotificationsClick:this.onShowAllNotificationsClick}),A=Su({},jf.isRTLLocale()&&{dir:"rtl"});return wo().createElement("div",{className:"unc-container"},wo().createElement(aa.default,{theme:s.toLowerCase(),className:"unc-wrapper"},wo().createElement(oa.default,{shouldUpdatePosition:!1,flip:!1,container:function(){return t.loadContainer},trigger:"click",placement:"bottom",ref:function(e){t.overlay=e},crossOffset:jf.isRTLLocale()?po.surface&&po.surface.toUpperCase()===io.SURFACE_DESKTOP?120:300:po.surface&&po.surface.toUpperCase()===io.SURFACE_DESKTOP?-120:-300,offset:po.getInstance().surface&&po.getInstance().surface.toUpperCase()===io.SURFACE_DESKTOP?-14:-3,onShow:function(e){return t.handleWidgetEvents(io.WIDGET_OPEN,e)},onHide:function(e){return t.handleWidgetEvents(io.WIDGET_CLOSE,e)},onMouseEnter:function(e){return t.handleWidgetEvents(io.WIDGET_MOUSE_OVER,e)},onMouseLeave:function(e){return t.handleWidgetEvents(io.WIDGET_MOUSE_OUT,e)}},wo().createElement("div",{className:"notifications-widget-bell ".concat(po.getInstance().bellIconTheme?po.getInstance().bellIconTheme:s.toLowerCase()," ").concat("DESKTOP"!==po.getInstance().surface.toUpperCase()?"unav-widget-bell":""),tabIndex:-1,ref:function(e){t.popOverTargetElement=e},onKeyDown:function(e){return Ja.keyDownEventHandler(e,t.onEnterClick.bind(t,e),null,!0,null,null,t.onEnterClick.bind(t,e))}},wo().createElement(oa.default,{placement:"bottom",trigger:["hover","focus"],container:function(){return t.loadContainer},delayShow:1e3,selected:!1,show:r,offset:po.getInstance().surface&&po.getInstance().surface.toUpperCase()===io.SURFACE_DESKTOP?-5:-3},wo().createElement("div",{className:ua()({"is-selected":i,"stop-pointer-events":i})},wo().createElement("div",{className:"notification-badge",style:{display:"none"},ref:function(e){po.getInstance().badgeRef=e}},wo().createElement("span",{className:"badge-count",ref:function(e){po.getInstance().badgeCountRef=e}})),wo().createElement(fa.default,{className:ua()("notification-icon","icon-style",{"is-selected":i,"stop-pointer-events":i,"express-theme":po.getInstance().isExpressTheme}),variant:"action",role:"button",tabIndex:0,icon:l?wo().createElement("img",{alt:"",id:f,className:"notification-img-custom ".concat(u||""),src:l}):po.getInstance().surface&&po.getInstance().surface.toUpperCase()===io.SURFACE_DESKTOP?wo().createElement(sa.default,{size:"S",className:"notification-img",icon:wo().createElement(ya,null)}):wo().createElement(lu,{height:18,width:18,className:ua()("unav-svg",{"express-svg":po.getInstance().isExpressTheme})}),"aria-label":e.LOC_NOTIFICATIONS,"aria-haspopup":"true","aria-expanded":i,ref:function(e){t.bellIconRef=e},quiet:!0})),jf.isDeviceTypeMobile()?wo().createElement("div",null):wo().createElement(ca.default,{className:I,placement:"bottom"},e.LOC_NOTIFICATIONS_SMALL))),wo().createElement(ra.default,{ref:function(e){t.widgetRef=e},trapFocus:!o,onKeyDown:o?void 0:function(e){return Ja.keyDownEventHandler(e,t.onKeyPress.bind(t,e),null,!0,null,t.onKeyPress.bind(t,e),null)},className:ua()("notifications-widget","notifications-widget-colors","".concat(po.getInstance().deviceLocale),jf.isDeviceTypeMobile()?"notifications-widget-mobile-colors":"",po.getInstance().surface&&"DESKTOP"!==po.getInstance().surface.toUpperCase()?"no-tip-showing":"tip-showing",{"overflow-y-hidden":jf.isShowSkeleton(v,b)})},wo().createElement(aa.default,{theme:s.toLowerCase(),className:T},wo().createElement(yu,null,wo().createElement(cu,_u({ref:function(e){t.notificationWidget=e}},w)))))),wo().createElement("div",_u({},A,{className:ua()("unc-overlay-container",jf.isDeviceTypeMobile()?"unc-overlay-mobile-container":"",{rtl:A.dir}),ref:function(e){t.container=e}}))))}}],i&&wu(n.prototype,i),o&&wu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(wo().Component);Fu.propTypes={theme:ia().string},Fu.defaultProps={theme:io.DEFAULT_THEME};var Lu=n(6745);function Uu(e){return Uu="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},Uu(e)}var ju=["theme"];function Mu(){return Mu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Mu.apply(this,arguments)}function Wu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Hu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wu(Object(n),!0).forEach((function(t){qu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qu(e,t,n){return(t=Gu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bu(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Vu(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Gu(i.key),i)}}function Gu(e){var t=function(e,t){if("object"!=Uu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Uu(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Uu(t)?t:String(t)}function zu(e,t,n){return t=Yu(t),function(e,t){if(t&&("object"===Uu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Xu(e)}(e,Ku()?Reflect.construct(t,n||[],Yu(e).constructor):t.apply(e,n))}function Ku(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ku=function(){return!!e})()}function Yu(e){return Yu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yu(e)}function Xu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ju(e,t){return Ju=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ju(e,t)}var $u=function(e){function t(e,n){var i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=zu(this,t,[e,n])).state={expanded:!1,popupOpen:!1},i.setNotificationsWidgetHeight=function(e){document.body.clientHeight>500&&document.body.clientHeight<=window.innerHeight?document.body.clientHeight-80<580?e.style.maxHeight="".concat(document.body.clientHeight-80,"px"):e.style.maxHeight="650px":window.innerHeight-80<580?e.style.maxHeight="".concat(window.innerHeight-80,"px"):e.style.maxHeight="640px"},i.handleWidgetEvents=function(e,t){ie.debug("UNCWidget: NotificationsProvider: handleWidgetEvents - called with : ",e," : ",t);var n=i.props.selectedFilter;switch(e){case io.WIDGET_OPEN:var o=i.props.holdNotificationsIds;i.loadHistoricalNotificationsOnClick(),(0!==o.length||po.getInstance().badgeCount>0)&&(n.value!==io.EVERYTHING&&qo.getInstance().setSelectedFilter({filterID:io.EVERYTHING,value:io.EVERYTHING}),fr.getInstance().triggerShowingHoldFeedNotifications()),i.setState({expanded:!0}),i.bellIconRef&&i.bellIconRef.buttonRef&&i.bellIconRef.buttonRef.classList.remove("focus-ring"),ie.debug("UNCWidget: NotificationsProvider: handleWidgetEvents: WIDGET_OPEN - Notification widget opened");try{$o.getInstance().sendAnalyticsForNotificationWidgetVisit()}catch(e){ie.debug("UNCWidget: NotificationsProvider: handleWidgetEvents: WIDGET_OPEN - Error in sending analytics for widget open clicked")}try{$o.getInstance().sendAnalyticsForWidgetRendered()}catch(e){ie.debug("UNCWidget: NotificationsProvider: handleWidgetEvents: WIDGET_OPEN - Error in sending analytics for widget open clicked")}try{if(zr.getInstance().sendMessage(io.UPDATE_BADGE_COUNT,{value:0},io.CLIENT_TARGET_TYPE,""),po.getInstance().badgeRef&&(po.getInstance().badgeRef.style.display="none"),po.getInstance().surface&&po.getInstance().surface.toUpperCase()===io.SURFACE_DESKTOP&&zr.getInstance().sendMessage(io.CHANGE_NOTIFICATION_ICON,{NotificationIconData:{iconType:"normal"}},"Applet",io.CONTAINER_BL_ID),po.getInstance().isWidgetOpen=!0,gr.getInstance().sendAnalyticsForRenderOfNotificationsInNewState(),po.getInstance().badgeCount>0){po.getInstance().badgeCount=0,zr.getInstance().sendMessage(io.RESET_LOCAL_BADGE_COUNT,{},io.CLIENT_TARGET_TYPE,"");var r=zr.getInstance().sendMessage(io.GET_USER_PROFILE,{},io.CLIENT_TARGET_TYPE,"",!1);if(void 0===r.UserID||""===r.UserID)break;zr.getInstance().sendMessage(io.CLEAR_BADGE,{"user-id":r.UserID})}}catch(e){}i.eventStore&&i.eventStore.dispatch(i.eventStore.createEvent("OverlayOpened",{overlayId:oo}));break;case io.WIDGET_CLOSE:if(ie.debug("UNCWidget: NotificationsProvider: `handleWidgetEvents`: WIDGET_CLOSE - Notification widget closed"),i.setState({expanded:!1}),!0===po.getInstance().isWidgetOpen){if(ie.debug("UNCWidget: NotificationsProvider: handleWidgetEvents: WIDGET_CLOSE - Executing clearing accepted/rejected invites and clearing contrast"),gr.getInstance().removeAllAcceptedOrRejectedInvitations(),po.getInstance().badgeRef&&(po.getInstance().badgeRef.style.display="none"),po.getInstance().badgeCount>0){po.getInstance().badgeCount=0,zr.getInstance().sendMessage(io.RESET_LOCAL_BADGE_COUNT,{},io.CLIENT_TARGET_TYPE,"");var a=zr.getInstance().sendMessage(io.GET_USER_PROFILE,{},io.CLIENT_TARGET_TYPE,"",!1);if(void 0===a.UserID||""===a.UserID)break;zr.getInstance().sendMessage(io.CLEAR_BADGE,{"user-id":a.UserID})}var s=i.props,c=s.notifications,l=s.pinnedNotifications,u=i.filterNotifications(c,n),f=i.filterNotifications(l,n),d=u.filter((function(e){return e.state===ro.NOTIFICATION_STATE_NEW})),p=f.filter((function(e){return e.state===ro.NOTIFICATION_STATE_NEW})),h=pa().union(d,p);if(h&&h.length>0)try{ie.debug("UNCWidget: NotificationsProvider: handleWidgetEvents: WIDGET_CLOSE - marking notifications as unread");var g={},m=[];g.notifications={},h.forEach((function(e){var t={};t["notification-id"]=e.id,t.state=ro.NOTIFICATION_STATE_UNREAD,m.push(t)})),g.notifications.notification=m,zr.getInstance().sendMessage(io.UPDATE_NOTIFICATIONS_DATA,{content:JSON.stringify(g)})}catch(e){ie.debug("UNCWidget: NotificationsProvider: handleWidgetEvents: WIDGET_CLOSE - Error while marking notifications as unread")}po.getInstance().isWidgetOpen=!1}i.eventStore&&i.eventStore.dispatch(i.eventStore.createEvent("OverlayClosed",{overlayId:oo}));break;case io.WIDGET_SCROLL:var y=i.notificationWidget.someNotificationAvailableScreenRef.notificationContainerDataWrapper;y.scrollTop>0?(fr.getInstance().scrollPositionOnTop=!1,y.clientHeight+y.scrollTop+1>=y.scrollHeight&&y.scrollTop>=i.lastScrollTopPosition&&i.fetchMoreNotificationsOnScroll()):0===y.scrollTop&&(fr.getInstance().scrollPositionOnTop=!0,fr.getInstance().triggerShowingHoldFeedNotifications()),i.lastScrollTopPosition=y.scrollTop;break;case io.WIDGET_MOUSE_OVER:var v=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;document.body.scrollHeight>window.innerHeight&&v<=5&&(document.body.classList.add("widget-hover"),document.body.classList.remove("widget-hover-exit"));break;case io.WIDGET_MOUSE_OUT:document.body.classList.contains("widget-hover")&&(document.body.classList.remove("widget-hover"),document.body.classList.add("widget-hover-exit"))}},i.updateContainerOffset=function(){},i.onShowAllNotificationsClick=function(e){e.preventDefault(),e.stopPropagation(),ie.debug("UNCWidget: NotificationsProvider: show all notifications clicked");try{$o.getInstance().sendAnalyticsForButtonClick(io.SHOW_ALL_NOTIFICATIONS),$o.getInstance().sendAnalyticsForButtonClick(io.SHOW_ALL_NOTIFICATIONS),$o.getInstance().sendAnalyticsForButtonClick(io.SHOW_ALL_NOTIFICATIONS),$o.getInstance().sendAnalyticsForButtonClick(io.SHOW_ALL_NOTIFICATIONS),$o.getInstance().sendAnalyticsForButtonClick(io.SHOW_ALL_NOTIFICATIONS)}catch(e){ie.debug("UNCWidget: NotificationsProvider: onShowAllNotificationClick: ButtonClick- Error in sending analytics for showAllNotifications click")}qo.getInstance().setSelectedFilter({filterID:io.EVERYTHING,value:io.EVERYTHING})},i.processAnnouncementNotification=function(e,t){var n=i.getAnnouncementNotificationsSortedInNewOrUnReadState(e,t);if(!n||0===n.length)return null;var o=n[0];return Co.isAnnouncementNotificationTerminated(o)?null:(i.filterOutAnnouncementNotificationFromNotifications(e,t,o),o)},i.filterOutAnnouncementNotificationFromNotifications=function(e,t,n){if(n){if(e)for(var i=e.length,o=0;o<i;o+=1)e[o]&&e[o].id===n.id&&e.splice(o,1);if(t)for(var r=t.length,a=0;a<r;a+=1)t[a]&&t[a].id===n.id&&t.splice(a,1)}},i.lastScrollTopPosition=0,i.waitVariant="default";var o=i.props.theme,r=io.SUPPORTED_THEME_VALUES.findIndex((function(e){return e.toLowerCase()===o.toLowerCase()}));return po.getInstance().ccdGlobalStore?i.eventStore=po.getInstance().ccdGlobalStore.get("events"):i.eventStore=null,-1===r?i.props.theme=io.DEFAULT_THEME:r||(i.waitVariant="dots"),i.handleFilterClick=i.handleFilterClick.bind(Xu(i)),i.getSegmentedNotifications=i.getSegmentedNotifications.bind(Xu(i)),i.filterNotifications=i.filterNotifications.bind(Xu(i)),i.fetchMoreNotificationsOnScroll=i.fetchMoreNotificationsOnScroll.bind(Xu(i)),i.onFetchMoreNotificationsClick=i.onFetchMoreNotificationsClick.bind(Xu(i)),i}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ju(e,t)}(t,e),n=t,i=[{key:"componentDidMount",value:function(){var e=this;window.addEventListener("resize",(function(){void 0!==e.notificationsWidgetResizeTimer&&clearTimeout(e.notificationsWidgetResizeTimer),e.notificationsWidgetResizeTimer=setTimeout((function(){e.notificationWidget&&e.notificationWidget.notificationsDataWrapper&&e.setNotificationsWidgetHeight(e.notificationWidget.notificationsDataWrapper)}),20)})),this.overlayTimeout=setTimeout((function(){return e.updateContainerOffset()}),100),window.addEventListener("resize",this.updateContainerOffset),window.addEventListener("click",this.handleGlobalMouseDown,!0)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.overlayTimeout),window.removeEventListener("resize",this.updateContainerOffset),window.removeEventListener("click",this.handleGlobalMouseDown)}},{key:"fetchMoreNotificationsOnScroll",value:function(){var e=this.props,t=e.showFetchingSpinner,n=e.selectedFilter;e.pinnedHistoricalNotificationsAvailable,ie.debug("UNCWidget: NotificationsProvider: handleWidgetEvents: WIDGET_SCROLL - Reached bottom");var i=qr.getInstance().fetchHistoricalNotifications();if(i===io.CALLING_FETCH){qo.getInstance().setFetchingSpinnerState();try{$o.getInstance().sendAnalyticsForUserTriggeredScroll(),$o.getInstance().sendAnalyticsForUserTriggeredScroll(),$o.getInstance().sendAnalyticsForUserTriggeredScroll(),$o.getInstance().sendAnalyticsForUserTriggeredScroll(),$o.getInstance().sendAnalyticsForUserTriggeredScroll()}catch(e){ie.debug("UNCWidget: NotificationsProvider: handleWidgetEvents: WIDGET_SCROLL - Error in sending analytics for WIDGET_SCROLL")}}else i===io.NOT_AVAILABLE?qo.getInstance().hideFetchingSpinnerState():!1===t&&qo.getInstance().setFetchingSpinnerState();n.value!==io.EVERYTHING&&qr.getInstance()._fetchPinnedHistoricalNotifications()}},{key:"handleFilterClick",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{filterId:io.EVERYTHING,value:io.EVERYTHING},t=po.getInstance().premptiveCallCountOnFilterChange;qo.getInstance().setSelectedFilter(e);try{$o.getInstance().sendAnalyticsForFilterClick(e),$o.getInstance().sendAnalyticsForFilterClick(e),$o.getInstance().sendAnalyticsForFilterClick(e),$o.getInstance().sendAnalyticsForFilterClick(e),$o.getInstance().sendAnalyticsForFilterClick(e)}catch(e){ie.debug("UNCWidget: NotificationsProvider: handleWidgetEvents: FILTER_CLICK- Error in sending analytics for FILTER_CLICK")}var n=this.props,i=n.notifications,o=n.pinnedNotifications,r=n.pinnedHistoricalNotificationsAvailable,a=n.pinnedNotificationIdsInNormalContainer,s=t;this.getExclusiveListOfNormalNotifications(i,a).length+o.length<10*s&&(ie.debug("UNCWidget: NotificationsProvider: making call to timeline and request api if historical notifications available"),r?(qr.getInstance()._fetchPinnedHistoricalNotifications(),qr.getInstance().fetchXHistoricalNotifications(s-1)):qr.getInstance().fetchXHistoricalNotifications(s))}},{key:"onFetchMoreNotificationsClick",value:function(e){e.preventDefault(),e.stopPropagation(),ie.debug("UNCWidget: NotificationsProvider: fetching pinned and normal historical notification simultaneously"),this.props.selectedFilter;try{$o.getInstance().sendAnalyticsForButtonClick(io.LOAD_MORE_NOTIFICATIONS),$o.getInstance().sendAnalyticsForButtonClick(io.LOAD_MORE_NOTIFICATIONS),$o.getInstance().sendAnalyticsForButtonClick(io.LOAD_MORE_NOTIFICATIONS),$o.getInstance().sendAnalyticsForButtonClick(io.LOAD_MORE_NOTIFICATIONS),$o.getInstance().sendAnalyticsForButtonClick(io.LOAD_MORE_NOTIFICATIONS)}catch(e){ie.debug("UNCWidget: NotificationsProvider: onFetchMoreNotificationClick: ButtonClick- Error in sending analytics for Fetch More click")}qr.getInstance()._fetchPinnedHistoricalNotifications(),qr.getInstance().fetchXHistoricalNotifications(1)}},{key:"render",value:function(){var e,t=this,n=this.state.expanded;e=po.getInstance().localizedStrings?JSON.parse(JSON.stringify(po.getInstance().localizedStrings)):JSON.parse(JSON.stringify(po.getInstance().displayData));var i=this.props,o=i.theme,r=Bu(i,ju),a=null,s=null,c="notification-img";if(ie.debug("UNCWidget: NotificationsProvider: render customNotificationIcon data : ",po.getInstance().customNotificationIcon),po.getInstance().customNotificationIcon&&(a=po.getInstance().customNotificationIcon.url,po.getInstance().customNotificationIcon.domAttributes)){var l=po.getInstance().customNotificationIcon.domAttributes;l.class&&(s=l.class),l.id&&(c=l.id)}var u=this.props,f=u.notifications,d=u.pinnedNotifications,p=u.selectedFilter,h=u.pinnedNotificationIdsInNormalContainer,g=this.getExclusiveListOfNormalNotifications(f,h),m=this.filterNotifications(g,p),y=this.filterNotifications(d,p),v=this.processAnnouncementNotification(g,d),b=this.getSegmentedNotifications(m),_=m.length+y.length,C=ua()("providerBaseClass",{"unc-filter-one-notification-popover":1===_},{"unc-filter-two-notification-popover":2===_}),S=Hu(Hu({},r),{},{onHide:this.hide,handleWidgetEvents:this.handleWidgetEvents,setNotificationsWidgetCustomProperties:this.setNotificationsWidgetCustomProperties,handleKeyPress:this.handleKeyPress,setNotificationsWidgetHeight:this.setNotificationsWidgetHeight,scrollToTop:this.scrollToTop,overlayContainer:function(){return t.widgetRef},segmentedNotifications:b,filteredPinnedNotifications:y,announcementNotification:v,handleFilterClick:this.handleFilterClick,hasMoreHistoricalNotifications:qr.getInstance().hasMoreHistoricalNotificationsAvailable(),onFetchMoreNotificationsClick:this.onFetchMoreNotificationsClick,handleNewNotificationBannerClick:this.handleNewNotificationBannerClick,onShowAllNotificationsClick:this.onShowAllNotificationsClick});return wo().createElement("div",{className:"unc-container"},wo().createElement(aa.default,{theme:o.toLowerCase(),className:"unc-wrapper"},wo().createElement("div",{className:"notifications-widget-bell notifications-phsp-bell ".concat(po.getInstance().bellIconTheme?po.getInstance().bellIconTheme:o.toLowerCase()),tabIndex:-1,ref:function(e){t.popOverTargetElement=e},onKeyDown:function(e){return Ja.keyDownEventHandler(e,t.onEnterClick.bind(t,e),null,!0,null,null,t.onEnterClick.bind(t,e))}},wo().createElement(oa.default,{placement:"bottom",trigger:"hover",container:function(){return t.container},delayShow:1e3,selected:!1,offset:po.getInstance().surface&&po.getInstance().surface.toUpperCase()===io.SURFACE_DESKTOP?-5:-3},wo().createElement("div",null,wo().createElement("div",{className:"notification-badge",style:{display:"none"},ref:function(e){po.getInstance().badgeRef=e}},wo().createElement("span",{className:"badge-count",ref:function(e){po.getInstance().badgeCountRef=e}})),wo().createElement(fa.default,{id:"notification-btn",className:ua()("notification-icon",{"is-selected":n,"stop-pointer-events":n}),variant:"action",role:"button",tabIndex:0,onClick:function(){var e=document.getElementById("notification-btn"),n=document.getElementById("notification-panel-flyout");n&&(t.state.popupOpen?(n.close(),t.handleWidgetEvents(io.WIDGET_CLOSE),t.state.popupOpen=!1):(n.showFlyout(e,{placement:"auto auto",preventLightDismissal:!0}),t.handleWidgetEvents(io.WIDGET_OPEN),t.state.popupOpen=!0))},icon:a?wo().createElement("img",{alt:"",id:c,className:"notification-img-custom ".concat(s||""),src:a}):wo().createElement(Lu.Z,{size:"S",className:"notification-img"}),"aria-label":e.LOC_NOTIFICATIONS,"aria-haspopup":"true","aria-expanded":n,ref:function(e){t.bellIconRef=e},quiet:!0})),wo().createElement(ca.default,{className:"unc-icon-tooltip",placement:"bottom"}))),wo().createElement("popup",{id:"notification-panel-flyout",onClose:function(e){t.state.popupOpen=!1,t.handleWidgetEvents(io.WIDGET_CLOSE,e)}},wo().createElement("div",{className:"unc-photoshop"},wo().createElement(aa.default,{theme:o.toLowerCase(),className:C},wo().createElement("div",{ref:function(e){t.widgetRef=e},className:ua()("notifications-widget","notifications-widget-colors","".concat(po.getInstance().deviceLocale),po.getInstance().deviceType&&"Mobile"===po.getInstance().deviceType?"notifications-widget-mobile-colors":"")},wo().createElement(cu,Mu({ref:function(e){t.notificationWidget=e}},S)))),wo().createElement("div",{className:ua()("unc-overlay-container",po.getInstance().deviceType&&"Mobile"===po.getInstance().deviceType?"unc-overlay-mobile-container":""),ref:function(e){t.container=e}})))))}}],i&&Vu(n.prototype,i),o&&Vu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(Fu);function Qu(e){return Qu="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},Qu(e)}function Zu(){return Zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Zu.apply(this,arguments)}function ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function tf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ef(Object(n),!0).forEach((function(t){nf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ef(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nf(e,t,n){return(t=rf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function of(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,rf(i.key),i)}}function rf(e){var t=function(e,t){if("object"!=Qu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Qu(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qu(t)?t:String(t)}function af(e,t,n){return t=cf(t),function(e,t){if(t&&("object"===Qu(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)}(e,sf()?Reflect.construct(t,n||[],cf(e).constructor):t.apply(e,n))}function sf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sf=function(){return!!e})()}function cf(e){return cf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cf(e)}function lf(e,t){return lf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lf(e,t)}var uf,ff=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=af(this,t,[].concat(i))).notificationsIdVsObjMap=new Map,e.state={notifications:[],pinnedNotifications:[],holdNotificationsIds:[],pinnedNotificationIdsInNormalContainer:[],visiblePinnedNotificationsCount:0,showUndoBanner:!1,requestDismissedNotifCount:0,timelineDismissedNotifCount:0,showFetchingSpinner:!1,pinnedHistoricalNotificationsAvailable:!0,buttonClickInProgress:!1,locale:"en_US",theme:"light",selectedFilter:{filterID:io.EVERYTHING,value:io.EVERYTHING},showFetchingSpinnerInCaseOfSearchCall:!1},e._generateProps=function(){return tf(tf({},e.props),e.state)},e}var n,i,o;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lf(e,t)}(t,e),n=t,(i=[{key:"componentWillUnmount",value:function(){this.provider=null}},{key:"render",value:function(){var e=this;return wo().createElement("div",null,To()?wo().createElement($u,Zu({ref:function(t){e.provider=t}},this._generateProps())):wo().createElement(Fu,Zu({ref:function(t){e.provider=t}},this._generateProps())))}}])&&of(n.prototype,i),o&&of(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(wo().Component);function df(e){return df="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},df(e)}function pf(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,hf(i.key),i)}}function hf(e){var t=function(e,t){if("object"!=df(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=df(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==df(t)?t:String(t)}var gf=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.context=null,this.ccxCoreObj=null,this.initMessageReceived=!1}var t,i,o;return t=e,o=[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}},{key:"deleteInstance",value:function(){e.instance=null}}],(i=[{key:"initializeContextDataHandler",value:function(e,t){var i=this;ie.debug("UNCWidget: ContextDataHandler: initializeContextDataHandler - context passed is : ",e),this.context=e,uf=e,zr.getInstance().initializeNotificationEngineInterfaceObj(e,t);var o=po.getInstance().sanitizeLocaleValue(this.context.locale);po.getInstance().setDeviceLocale(o),po.getInstance().initializeGlobalData(this.context),ta.initialize(),this.loadStringsFromDictionaryResources(o).then((function(e){var t=JSON.parse(e);po.getInstance().localizedStrings=t,po.getInstance().setLocalizedDisplayStrings(t),i.initMessageProcessed&&"en_US"!==o&&(ie.debug("UNCWidget: ContextDataHandler: initializeContextDataHandler - Widget already initilaized but got locale data now therefore re-rendering"),fr.getInstance().reloadAfterLocaleChange(o))})).catch((function(){ie.debug("UNCWidget: ContextDataHandler: initializeContextDataHandler - dictionary loading failed and will run in English")}));var r=n(8875);r.keys().forEach((function(e){po.getInstance().imagePathMap[e]=r(e)}));var a=n(5809);a.keys().forEach((function(e){po.getInstance().imagePathMap[e]=a(e)})),ie.debug("UNCWidget: ContextDataHandler: initializeContextDataHandler - imagePathMap",po.getInstance().imagePathMap);try{$o.getInstance().sendAnalyticsForUNCInit()}catch(e){ie.debug("UNCWidget: ContextDataHandler: initializeContextDataHandler - Exception in sending init analytics",e)}}},{key:"loadStringsFromDictionaryResources",value:function(e){var t="".concat(e,".json"),n=this;return new Promise((function(e,i){var o={hostname:"".concat(jf.getBasePathForResources(),"/").concat(Ue.PATH_PARAM,"/").concat(Ue.LATEST_VERSION_PARAM,"/Dictionary/").concat(t),methodType:"GET",responseCallback:function(t){ie.debug("UNCWidget: ContextDataHandler: loadStringsFromDictionaryResources - dictionary file content loaded:",t),e(t)}.bind(n),errorCallback:function(e){ie.debug("UNCWidget: ContextDataHandler: loadStringsFromDictionaryResources - dictionary file content failed to load and will be using english strings"),i(e)}.bind(n)};n.httpComm=new ne(o);var r={requestHeaders:{},content:""};n.httpComm.SendRequest(r)}))}},{key:"loadIngestScriptFiles",value:function(){}},{key:"unmountAndCleanupWidget",value:function(){var e=document.querySelector(this.context.el);if(!e)return ie.debug("UNCWidget: ContextDataHandler: unmountAndCleanupWidget - target element not found:");fr.getInstance().initializeWithDefault(),qr.getInstance().stopUpdateOfTimeStringOfAllNotifications(),zr.getInstance().sendMessage(io.RENDER_ENGINE_BELL_ICON,null),setTimeout((function(){Do().unmountComponentAtNode(e)}),0)}},{key:"initiateUXProcessing",value:function(){var e=this;!1===this.initMessageReceived&&this.context?setTimeout((function(){e.initMessageReceived=!0;var t,n=document.querySelector(e.context.el);if(!n)return ie.debug("UNCWidget: ContextDataHandler: initiateUXProcessing - target element not found:");po.getInstance().surface&&po.getInstance().surface.toUpperCase()!==io.SURFACE_DESKTOP&&po.getInstance().optimizations&&po.getInstance().optimizations.includes(io.Optimizations.DYNAMIC_LOADING)&&n&&("notificationIconOnEngine"===n.children[0].id?n.removeChild(n.children[0]):"notificationIconOnEngine"===n.children[1].id&&n.removeChild(n.children[1])),Do().render(wo().createElement(ff,{ref:function(e){t=e},theme:uf.theme}),n),jf.init(t),qo.getInstance().init(t),Sr.getInstance().init(t),or.getInstance().init(t),fr.getInstance().init(t),e.initMessageProcessed=!0,"light"!==uf.theme&&fr.getInstance().updateTheme(uf.theme);try{e.context&&e.context.onUNCWidgetReady&&"function"==typeof e.context.onUNCWidgetReady&&setTimeout((function(){e.context.onUNCWidgetReady()}),0)}catch(e){ie.warn("UNCWidget: EngineManager: executeStateMachine: __LOAD_UI__ - Some exception occured while calling host callback",e)}try{po.getInstance().onWidgetReadyCallback&&"function"==typeof po.getInstance().onWidgetReadyCallback&&setTimeout((function(){po.getInstance().onWidgetReadyCallback()}),0)}catch(e){ie.warn("UNCWidget: ContextDataHandler: - Some exception occured while calling onWidgetReadyCallback",e)}try{Jr.getInstance().registerObserverForAllNotifications(),po.getInstance().features&&po.getInstance().features.disabledFetchHistoricalNotification||qr.getInstance().beginHistoricalNotificationsFetching(io.cacheMessages.INIT)}catch(e){if(ie.debug("UNCWidget: ContextDataHandler: initiateUXProcessing - error in initializeUXAndNotificationFetching:"),po.getInstance().surface&&po.getInstance().surface.toUpperCase()===io.SURFACE_DESKTOP){var i={};i.message=e.message,i.component="UNCWidget",i.file="ContextDataHandler",zr.getInstance().sendMessage(io.CCUI_EXCEPTION_HANDLER,i,"Applet",io.CONTAINER_UI_ID)}}}),10):Jr.getInstance().registerObserverForAllNotifications()}},{key:"onThemeChange",value:function(e){this.context&&(this.context.theme=e,uf.theme=e,fr.getInstance().updateTheme(e))}}])&&pf(t.prototype,i),o&&pf(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function mf(e){return mf="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},mf(e)}function yf(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,vf(i.key),i)}}function vf(e){var t=function(e,t){if("object"!=mf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=mf(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mf(t)?t:String(t)}var bf=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,n=[{key:"getDefaultObjectForUNCForAnalytics",value:function(){var e={xApiKey:"unc-web-service",apiKey:"unc-web-service",project:"unc-web-service",source:"UNC"};return e.project="unc-web-service","prod"!==po.getInstance().env.toLowerCase()?(e.environment="stage",e.rsid="adbem-cchome-dev"):(e.environment="prod",e.rsid="adbem-cchome-prod"),e}},{key:"sendAnalyticsForReceiptOfNotification",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(po.getInstance().analyticsEnabled){ie.debug("UNCWidget: WebAnalyticsHandler: sendAnalyticsForReceiptOfNotification : notification object is ",e);var n,i,o=new(Le())(this.getDefaultObjectForUNCForAnalytics());o.initializeDefaultData();var r={};if(o.setDataValue(io.Event_Section,"type","receipt"),o.setDataValue(io.Event_Section,"subcategory","Message"),this.setConstantFieldsWithValues(o),t||o.setDataValue(io.Event_Section,"error_type","parsing-error"),e.id&&""!==e.id&&o.setDataValue(io.Content_Section,"id",e.id),e.type&&""!==e.type&&e.subType&&""!==e.subType&&o.setDataValue(io.Content_Section,"type","".concat(e.type,":").concat(e.subType)),o.setDataValue(io.Content_Section,"status",e.state?e.state.toLowerCase():"read"),o.setDataValue(io.Event_Section,"subtype","notification"),e.trackingSystemPayload&&""!==e.trackingSystemPayload){o.setDataValue("custom","ans.client_payload",e.trackingSystemPayload),r=e.trackingSystemPayload;try{r=JSON.parse(r),Object.prototype.hasOwnProperty.call(r,Ue.CAMPAIGN_ID)&&(n=r.CAMPAIGN_ID),Object.prototype.hasOwnProperty.call(r,Ue.VARIATION_ID)&&(i=r.VARIATION_ID)}catch(e){ie.warn("UNCWidget: WebAnalyticsHandler: sendAnalyticsForReceiptOfNotification : notifObj.trackingSystemPayload parsing failed with error : ",e)}}e.contentSourceId&&""!==e.contentSourceId&&o.setDataValue("custom","content_source_id",e.contentSourceId),n&&o.setDataValue("exp","campaign_id",n),i&&o.setDataValue("exp","variation_id",i),e.isPinned&&!0===e.isPinned?o.setDataValue(io.Event_Section,"value","request"):o.setDataValue(io.Event_Section,"value","notification"),this.setViewTypeAnalytics(o,e);var a=jf.getAuthorForNotificationTypeSubtype(e.type,e.subType);if(a&&""!==a&&o.setDataValue(io.Content_Section,"author",a),po.getInstance().onAnalyticsEvent)try{po.getInstance().onAnalyticsEvent(o.eventsObject)}catch(e){ie.warn("UNCWidget: WebAnalyticsHandler: sendAnalyticsForReceiptOfNotification : Error in execution onAnalyticsEvent",e)}o.addToCollection(),o.sendToIngest()}}},{key:"sendAnalyticsForViewOfNotification",value:function(e){var t;if(po.getInstance().analyticsEnabled){ie.debug("UNCWidget: WebAnalyticsHandler: sendAnalyticsForViewOfNotification : notification object is ",e),e.viewEventSent=!0;var n,i,o=new(Le())(this.getDefaultObjectForUNCForAnalytics());o.initializeDefaultData();var r={};if(o.setDataValue(io.Event_Section,"type","render"),o.setDataValue(io.Event_Section,"subcategory","Message"),this.setFilterRelatedAnalytics(o,e),this.setConstantFieldsWithValues(o),e.id&&""!==e.id&&o.setDataValue(io.Content_Section,"id",e.id),e.type&&""!==e.type&&e.subType&&""!==e.subType&&o.setDataValue(io.Content_Section,"type","".concat(e.type,":").concat(e.subType)),o.setDataValue(io.Content_Section,"status",e.state?e.state.toLowerCase():"read"),o.setDataValue(io.Event_Section,"subtype","notification"),e.trackingSystemPayload&&""!==e.trackingSystemPayload){o.setDataValue("custom","ans.client_payload",e.trackingSystemPayload),r=e.trackingSystemPayload;try{r=JSON.parse(r),Object.prototype.hasOwnProperty.call(r,Ue.CAMPAIGN_ID)&&(n=r.CAMPAIGN_ID),Object.prototype.hasOwnProperty.call(r,Ue.VARIATION_ID)&&(i=r.VARIATION_ID)}catch(e){ie.warn("UNCWidget: WebAnalyticsHandler: sendAnalyticsForViewOfNotification : notifObj.trackingSystemPayload parsing failed with error : ",e)}}e.contentSourceId&&""!==e.contentSourceId&&o.setDataValue("custom","content_source_id",e.contentSourceId),n&&o.setDataValue("exp","campaign_id",n),i&&o.setDataValue("exp","variation_id",i),e.isPinned&&!0===e.isPinned?o.setDataValue(io.Event_Section,"value","request"):o.setDataValue(io.Event_Section,"value","notification"),o.setDataValue(io.Content_Section,"name",Qe(null===(t=e.payload.timeline)||void 0===t?void 0:t.content)),this.setViewTypeAnalytics(o,e);var a=jf.getAuthorForNotificationTypeSubtype(e.type,e.subType);if(a&&""!==a&&o.setDataValue(io.Content_Section,"author",a),po.getInstance().onAnalyticsEvent)try{po.getInstance().onAnalyticsEvent(o.eventsObject)}catch(e){ie.warn("UNCWidget: WebAnalyticsHandler: sendAnalyticsForViewOfNotification : Error in execution onAnalyticsEvent",e)}o.addToCollection(),o.sendToIngest()}}},{key:"sendAnalyticsForShowMoreRequestsClicked",value:function(){if(po.getInstance().analyticsEnabled){var e=new(Le())(this.getDefaultObjectForUNCForAnalytics());if(e.initializeDefaultData(),e.setDataValue(io.Event_Section,"type","click"),e.setDataValue(io.Event_Section,"subcategory","Widget"),e.setDataValue(io.Event_Section,"subtype","view-more"),this.setConstantFieldsWithValues(e),po.getInstance().onAnalyticsEvent)try{po.getInstance().onAnalyticsEvent(e.eventsObject)}catch(e){ie.warn("UNCWidget: WebAnalyticsHandler: sendAnalyticsForShowMoreRequestsClicked : Error in execution onAnalyticsEvent",e)}e.addToCollection(),e.sendToIngest()}}},{key:"sendAnalyticsForUNCInit",value:function(){if(po.getInstance().analyticsEnabled){var e=new(Le())(this.getDefaultObjectForUNCForAnalytics());if(e.initializeDefaultData(),e.setDataValue(io.Event_Section,"type","init"),e.setDataValue(io.Event_Section,"subtype","component"),e.setDataValue(io.Event_Section,"subcategory","Widget"),po.getInstance().customNotificationIcon&&e.setDataValue(io.Event_Section,"value","icon-override"),po.getInstance().optimizations&&po.getInstance().optimizations.length>0){var t=po.getInstance().optimizations.map((function(e){return e})).join(" | ");e.setDataValue(io.Event_Section,"event.value",t),po.getInstance().optimizations.includes("disableAnalytics")&&(po.getInstance().analyticsEnabled=!1)}if(this.setConstantFieldsWithValues(e),po.getInstance().onAnalyticsEvent)try{po.getInstance().onAnalyticsEvent(e.eventsObject)}catch(e){ie.warn("UNCWidget: WebAnalyticsHandler: sendAnalyticsForUNCInit : Error in execution onAnalyticsEvent",e)}e.addToCollection(),e.sendToIngest()}}},{key:"sendAnalyticsForNotificationWidgetVisit",value:function(){if(po.getInstance().analyticsEnabled){var e=new(Le())(this.getDefaultObjectForUNCForAnalytics());if(e.initializeDefaultData(),e.setDataValue(io.Event_Section,"type","click"),e.setDataValue(io.Event_Section,"subcategory","Widget"),e.setDataValue(io.Event_Section,"subtype","icon"),this.setConstantFieldsWithValues(e),po.getInstance().badgeCount>0?(e.setDataValue(io.Event_Section,"value","true"),e.setDataValue(io.Event_Section,"count",po.getInstance().badgeCount)):e.setDataValue(io.Event_Section,"value","false"),po.getInstance().onAnalyticsEvent)try{po.getInstance().onAnalyticsEvent(e.eventsObject)}catch(e){ie.warn("UNCWidget: WebAnalyticsHandler: sendAnalyticsForNotificationWidgetVisit : Error in execution onAnalyticsEvent",e)}e.addToCollection(),e.sendToIngest()}}},{key:"sendAnalyticsForWidgetRendered",value:function(){if(po.getInstance().analyticsEnabled){var e=new(Le())(this.getDefaultObjectForUNCForAnalytics());if(e.initializeDefaultData(),e.setDataValue(io.Event_Section,"type","render"),e.setDataValue(io.Event_Section,"subtype","component"),e.setDataValue(io.Event_Section,"subcategory","Widget"),this.setConstantFieldsWithValues(e),po.getInstance().onAnalyticsEvent)try{po.getInstance().onAnalyticsEvent(e.eventsObject)}catch(e){ie.warn("UNCWidget: WebAnalyticsHandler: sendAnalyticsForWidgetRendered : Error in execution onAnalyticsEvent",e)}e.addToCollection(),e.sendToIngest()}}},{key:"sendAnalyticsForWidgetClosed",value:function(){if(po.getInstance().analyticsEnabled){var e=new(Le())(this.getDefaultObjectForUNCForAnalytics());if(e.initializeDefaultData(),e.setDataValue(io.Event_Section,"type","close"),e.setDataValue(io.Event_Section,"subtype","component"),e.setDataValue(io.Event_Section,"subcategory","Widget"),this.setConstantFieldsWithValues(e),po.getInstance().onAnalyticsEvent)try{po.getInstance().onAnalyticsEvent(e.eventsObject)}catch(e){ie.warn("UNCWidget: WebAnalyticsHandler: sendAnalyticsForWidgetClosed : Error in execution onAnalyticsEvent",e)}e.addToCollection(),e.sendToIngest()}}},{key:"sendAnalyticsForUserTriggeredScroll",value:function(){if(po.getInstance().analyticsEnabled){var e=new(Le())(this.getDefaultObjectForUNCForAnalytics());e.initializeDefaultData(),e.setDataValue(io.Event_Section,"type","click"),e.setDataValue(io.Event_Section,"subcategory","Widget"),e.setDataValue(io.Event_Section,"subtype","scroll"),this.setFilterRelatedAnalytics(e),this.setConstantFieldsWithValues(e),e.addToCollection(),e.sendToIngest()}}},{key:"sendAnalyticsForFilterClick",value:function(e){if(po.getInstance().analyticsEnabled){var t=new(Le())(this.getDefaultObjectForUNCForAnalytics());if(t.initializeDefaultData(),t.setDataValue(io.Event_Section,"type","click"),t.setDataValue(io.Event_Section,"subcategory","Widget"),t.setDataValue(io.Event_Section,"subtype","filter"),t.setDataValue(io.UI_Section,"filter",e.value),this.setConstantFieldsWithValues(t),po.getInstance().onAnalyticsEvent)try{po.getInstance().onAnalyticsEvent(t.eventsObject)}catch(e){ie.warn("UNCWidget: WebAnalyticsHandler: sendAnalyticsForFilterClick : Error in execution onAnalyticsEvent",e)}t.addToCollection(),t.sendToIngest()}}},{key:"sendAnalyticsForButtonClick",value:function(e){if(po.getInstance().analyticsEnabled){var t=new(Le())(this.getDefaultObjectForUNCForAnalytics());if(t.initializeDefaultData(),t.setDataValue(io.Event_Section,"type","click"),t.setDataValue(io.Event_Section,"subcategory","Widget"),t.setDataValue(io.Event_Section,"subtype",e),this.setFilterRelatedAnalytics(t),this.setConstantFieldsWithValues(t),po.getInstance().onAnalyticsEvent)try{po.getInstance().onAnalyticsEvent(t.eventsObject)}catch(e){ie.warn("UNCWidget: WebAnalyticsHandler: sendAnalyticsForButtonClick : Error in execution onAnalyticsEvent",e)}t.addToCollection(),t.sendToIngest()}}},{key:"sendAnalyticsForNotificationAction",value:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3?arguments[3]:void 0;if(po.getInstance().analyticsEnabled){ie.debug("UNCWidget: WebAnalyticsHandler: sendAnalyticsForNotificationAction : notification object is ",e);var r,a,s=new(Le())(this.getDefaultObjectForUNCForAnalytics());s.initializeDefaultData();var c={};if(s.setDataValue(io.Event_Section,"type","click"),s.setDataValue(io.Event_Section,"subtype",t),s.setDataValue(io.Event_Section,"subcategory","Message"),this.setFilterRelatedAnalytics(s,e),this.setConstantFieldsWithValues(s),e.id&&""!==e.id&&s.setDataValue(io.Content_Section,"id",e.id),e.type&&""!==e.type&&e.subType&&""!==e.subType&&s.setDataValue(io.Content_Section,"type","".concat(e.type,":").concat(e.subType)),s.setDataValue(io.Content_Section,"name",Qe(null===(n=e.payload.timeline)||void 0===n?void 0:n.content)),s.setDataValue(io.Content_Section,"status",e.state?e.state.toLowerCase():"read"),e.trackingSystemPayload&&""!==e.trackingSystemPayload){s.setDataValue("custom","ans.client_payload",e.trackingSystemPayload),c=e.trackingSystemPayload;try{c=JSON.parse(c),Object.prototype.hasOwnProperty.call(c,Ue.CAMPAIGN_ID)&&(r=c.CAMPAIGN_ID),Object.prototype.hasOwnProperty.call(c,Ue.VARIATION_ID)&&(a=c.VARIATION_ID)}catch(e){ie.warn("UNCWidget: WebAnalyticsHandler: sendAnalyticsForNotificationAction : notifObj.trackingSystemPayload parsing failed with error : ",e)}}if(e.contentSourceId&&""!==e.contentSourceId&&s.setDataValue("custom","content_source_id",e.contentSourceId),r&&s.setDataValue("exp","campaign_id",r),a&&s.setDataValue("exp","variation_id",a),e.isPinned&&!0===e.isPinned?s.setDataValue(io.Event_Section,"value","request"):s.setDataValue(io.Event_Section,"value","notification"),this.setViewTypeAnalytics(s,e),""!==i&&s.setDataValue(io.Content_Section,"action",i),o)if(s.setDataValue(io.Event_Section,"clicktype",t),Array.isArray(o)){var l=[];o.forEach((function(e){l.push(e.workflow)})),s.setDataValue(io.Event_Section,"value",l.join("|")),s.setDataValue(io.Event_Section,"action",l.join("|"))}else s.setDataValue(io.Event_Section,"value",o.workflow),s.setDataValue(io.Event_Section,"action",o.workflow);var u=jf.getAuthorForNotificationTypeSubtype(e.type,e.subType);if(u&&""!==u&&s.setDataValue(io.Content_Section,"author",u),po.getInstance().onAnalyticsEvent)try{po.getInstance().onAnalyticsEvent(s.eventsObject)}catch(e){ie.warn("UNCWidget: WebAnalyticsHandler: sendAnalyticsForNotificationAction : Error in execution onAnalyticsEvent",e)}s.addToCollection(),s.sendToIngest()}}},{key:"setConstantFieldsWithValues",value:function(e){e.setDataValue(io.Event_Section,"workflow","UNC"),gf.getInstance().context.deviceType&&gf.getInstance().context.deviceType===io.DeviceType.MOBILE?(e.setDataValue(io.Event_Section,"category",io.SURFACE_MOBILE),e.setDataValue(io.Source_Section,"platform",io.SURFACE_MOBILE)):gf.getInstance().context.surface&&""!==gf.getInstance().context.surface?(e.setDataValue(io.Event_Section,"category",gf.getInstance().context.surface.toUpperCase()),e.setDataValue(io.Source_Section,"platform",gf.getInstance().context.surface.toUpperCase())):(e.setDataValue(io.Event_Section,"category",io.SURFACE_WEB),e.setDataValue(io.Source_Section,"platform",io.SURFACE_WEB)),e.setDataValue(io.Event_Section,"category","Desktop"),e.setDataValue(io.Source_Section,"platform","UXP"),e.setDataValue(io.Source_Section,"name","UNC"),e.setDataValue(io.Source_Section,"version",Ue.VERSION_PARAM),po.getInstance().imsClientID&&""!==po.getInstance().imsClientID&&e.setDataValue(io.Source_Section,"client_id",po.getInstance().imsClientID),po.getInstance().appID&&""!==po.getInstance().appID&&e.setDataValue(io.Source_Section,"app_id",po.getInstance().appID),po.userGuid&&e.setDataValue(io.Event_Section,"user_guid",po.userGuid);var t=po&&po.getInstance()?po.getInstance().getDeviceLocale():null;if(e.setDataValue(io.Event_Section,"locale",t),gf.getInstance().context.analyticsConfig&&gf.getInstance().context.analyticsConfig.componentDetails&&"object"===mf(gf.getInstance().context.analyticsConfig.componentDetails))for(var n=Object.keys(gf.getInstance().context.analyticsConfig.componentDetails),i=0;i<n.length;i+=1){var o=n[i];-1!==io.Component_Supported_Keys.indexOf(o)&&("name"===o?e.setDataValue(io.Environment_Section,"com.name",gf.getInstance().context.analyticsConfig.componentDetails[o]):"version"===o&&e.setDataValue(io.Environment_Section,"com.version",gf.getInstance().context.analyticsConfig.componentDetails[o]))}if(gf.getInstance().context.analyticsConfig&&gf.getInstance().context.analyticsConfig.eventDetails&&"object"===mf(gf.getInstance().context.analyticsConfig.eventDetails))for(var r=Object.keys(gf.getInstance().context.analyticsConfig.eventDetails),a=0;a<r.length;a+=1){var s=r[a];-1!==io.Event_Supported_Keys.indexOf(s)&&e.setDataValue(io.Event_Section,s,gf.getInstance().context.analyticsConfig.eventDetails[s])}if(gf.getInstance().context.analyticsConfig&&gf.getInstance().context.analyticsConfig.consumerDetails&&"object"===mf(gf.getInstance().context.analyticsConfig.consumerDetails)){for(var c=Object.keys(gf.getInstance().context.analyticsConfig.consumerDetails),l=0;l<c.length;l+=1){var u=c[l];-1!==io.Consumer_Supported_Keys.indexOf(u)&&e.setDataValue(io.Consumer_Section,u,gf.getInstance().context.analyticsConfig.consumerDetails[u])}var f=e.getDevice();f&&""!==f&&e.setDataValue(io.Consumer_Section,"device",f);var d=e.getOSVersion();d&&""!==d&&e.setDataValue(io.Consumer_Section,"os_version",d)}}},{key:"setFilterRelatedAnalytics",value:function(e,t){if(po.getInstance().filterDetails&&e.setDataValue(io.UI_Section,"filter",qo.getInstance().getSelectedFilter().value),t){var n=jf.getPipeSeparatedFilters(t);jf.isValidString(n)&&e.setDataValue(io.Custom_Section,"notificationFilterCategory",n)}}},{key:"setViewTypeAnalytics",value:function(e,t){t.isAnnouncementNotification&&!0===t.isAnnouncementNotification?e.setDataValue(io.UI_Section,"view_type","announcement_notification"):t.isPinned&&!0===t.isPinned?e.setDataValue(io.UI_Section,"view_type","pinned_notification"):e.setDataValue(io.UI_Section,"view_type","notification")}}],i=[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}},{key:"deleteInstance",value:function(){e.instance=null}}],n&&yf(t.prototype,n),i&&yf(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function _f(e){return _f="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},_f(e)}function Cf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Sf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cf(Object(n),!0).forEach((function(t){Ef(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ef(e,t,n){return(t=Of(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nf(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Of(i.key),i)}}function Of(e){var t=function(e,t){if("object"!=_f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=_f(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_f(t)?t:String(t)}var Tf=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"handleClickAction",value:function(e,t,n){var i=this,o=e.notification,r=e.notification.payload.timeline.dismissOnClick;switch(ie.debug("UNCWidget: RenderingUtility: handleClickAction - invoked with:",t,n),n.event&&(n.event.preventDefault(),n.event.stopPropagation(),n.event.nativeEvent&&"function"==typeof n.event.nativeEvent.stopImmediatePropagation&&n.event.nativeEvent.stopImmediatePropagation()),t){case io.OPEN_IN_NEW_TAB:if(n.target&&""!==n.target){if(To()){var a=n.target;if("#"===a)break;var s=n.ssoEnabled&&"true"===n.ssoEnabled.toString()||n.event.currentTarget.attributes.ssoEnabled&&"true"===n.event.currentTarget.attributes.ssoEnabled.value,c={clientId:n.ssoTargetClientID&&""!==n.ssoTargetClientID?n.ssoTargetClientID:n.event.currentTarget.attributes.ssotargetclientid&&n.event.currentTarget.attributes.ssotargetclientid.value||"",scope:n.ssoTargetScope&&""!==n.ssoTargetScope?n.ssoTargetScope:n.event.currentTarget.attributes.ssotargetscope&&n.event.currentTarget.attributes.ssotargetscope.value||""};try{ie.debug("UNCWidget: RenderingUtility: openURL:","url: ".concat(a,","),"needSSO: ".concat(s,","));var l=new URL(a);if(!s){window.require("uxp").shell.openExternal(l.href);break}jf.getJumpURL(l.href,c).then((function(e){e&&""!==e?(window.require("uxp").shell.openExternal(e),ie.debug("UNCWidget: RenderingUtility: openURL: success:","url: ".concat(a,","))):(window.require("uxp").shell.openExternal(l.href),ie.error("UNCWidget: RenderingUtility: openURL: error: invalid jumpURL, opening URL without SSO:","url: ".concat(a,",")))})).catch((function(e){window.require("uxp").shell.openExternal(l.href),ie.error("UNCWidget: RenderingUtility: openURL: error in fetching jump URL:","url: ".concat(a,","),"error: ".concat(e))}))}catch(e){ie.error("UNCWidget: RenderingUtility: openURL: exception:","url: ".concat(a,","),"error: ".concat(e))}}else if(po.getInstance().surface&&po.getInstance().surface.toUpperCase()===io.SURFACE_DESKTOP)if(n.ccdRoutePath&&ta.CCDAssetNotificationHandlingForDesktop)ta.handleAssetsFileNotification(n,o);else{var u={},f={};if(f.url=n.target,"#"===f.url)break;n.ssoEnabled&&"true"===n.ssoEnabled.toString()||n.event.currentTarget.attributes["ssoEnabled".toLowerCase()]&&"true"===n.event.currentTarget.attributes["ssoEnabled".toLowerCase()].value?(f.needSSO="true",n.ssoTargetClientID&&""!==n.ssoTargetClientID||n.event.currentTarget&&n.event.currentTarget.attributes["ssoTargetClientID".toLowerCase()]&&""!==n.event.currentTarget.attributes["ssoTargetClientID".toLowerCase()].value?n.ssoTargetClientID&&""!==n.ssoTargetClientID?f.clientId=n.ssoTargetClientID:f.clientId=n.event.currentTarget.attributes["ssoTargetClientID".toLowerCase()].value:f.clientId=ro.DEFAULT_TARGET_CLIENT_ID,n.ssoTargetScope&&""!==n.ssoTargetScope||n.event.currentTarget&&n.event.currentTarget.attributes["ssoTargetScope".toLowerCase()]&&""!==n.event.currentTarget.attributes["ssoTargetScope".toLowerCase()].value?n.ssoTargetScope&&""!==n.ssoTargetScope?f.scope=n.ssoTargetScope:f.scope=n.event.currentTarget.attributes["ssoTargetScope".toLowerCase()].value:f.scope=ro.DEFAULT_TARGET_SCOPE):f.needSSO="false",u.message=f,zr.getInstance().sendMessage(io.OPEN_URL_REQUEST,u,"Applet",io.CONTAINER_BL_ID)}else n.openInSameTab?window.open(n.target,"_self"):window.open(n.target,"_blank");try{$o.getInstance().sendAnalyticsForNotificationAction(o,n.clickType,n.target)}catch(e){ie.warn("UNCWidget: RenderingUtility: handleClickAction - Error while sending event for link click opening")}o.state!==ro.NOTIFICATION_STATE_PROGRESS&&o.handleNotificationClickAction()}else o.state!==ro.NOTIFICATION_STATE_PROGRESS&&o.handleNotificationClickAction();break;case io.DEEPLINK_WORKFLOW_CLICKED:var d=n.deepLinkWorkflows,p=!1;if(ie.debug("UNCWidget: RenderingUtility: handleClickAction: DEEPLINK_WORKFLOW_CLICKED: DeepLinkWorkflows:",d),"UXP"===po.getInstance().hostPlatform)return po.getInstance().isADSRunning?(this.handleDeeplinkWorkflowsForDesktopApps(o,d,n),p=!0):p=!1,p;switch(po.getInstance().surface.toUpperCase()){case io.SURFACE_DESKTOP:var h={};h.message=io.HANDLE_DEEPLINK_REQUEST;var g={};Array.isArray(d)?d.forEach((function(e){e.endpoint="unc-widget"})):d.endpoint="unc-widget",g.deepLinkWorkflows=d,h.data=g,n.clickType="deeplink",ie.debug("UNCWidget: RenderingUtility: handleClickAction: DEEPLINK_WORKFLOW_CLICKED: callBackDataObj: ",h);try{po.getInstance().hostCallBackFn&&"function"==typeof po.getInstance().hostCallBackFn?(po.getInstance().hostCallBackFn(h),p=!0):ie.warn("UNCWidget: RenderingUtility: handleClickAction: DEEPLINK_WORKFLOW_CLICKED - callback function is not defined .")}catch(e){p=!1,ie.warn("UNCWidget: RenderingUtility: handleClickAction: DEEPLINK_WORKFLOW_CLICKED - Exception while invoking hostCallBack for route handling action",e)}try{zo.getInstance().sendAnalyticsForNotificationAction(o,n.clickType,n.target,d)}catch(e){ie.warn("UNCWidget: RenderingUtility: handleClickAction: DEEPLINK_WORKFLOW_CLICKED - Error while sending event for deeplink handling")}break;case io.SURFACE_WEB:var m="";ie.debug("UNCWidget: RenderingUtility: handleClickAction: DEEPLINK_WORKFLOW_CLICKED - deeplink from web surface");try{jf.isDeviceTypeMobile()||po.getInstance().isCCDPresent&&(window.CCWamclient.areClientsConnected()?Array.isArray(d)?d.forEach((function(e){i.executeDeeplinkWorkflowViaWAM(e)})):this.executeDeeplinkWorkflowViaWAM(d):Array.isArray(d)?d.forEach((function(e){window.CCWamclient.executeWorkflowViaCCDURI(po.getInstance().env,e)})):window.CCWamclient.executeWorkflowViaCCDURI(po.getInstance().env,d),n.clickType="deeplink",m=d,p=!0)}catch(e){p=!1,ie.error("UNCWidget: RenderingUtility: handleClickAction: DEEPLINK_WORKFLOW_CLICKED - Error while executing deeplink on web via WAM: ",e)}try{bf.getInstance().sendAnalyticsForNotificationAction(o,n.clickType,n.target,m)}catch(e){ie.warn("UNCWidget: RenderingUtility: handleClickAction: DEEPLINK_WORKFLOW_CLICKED - Error while sending event for deeplink handling")}}return o.state!==ro.NOTIFICATION_STATE_PROGRESS&&o.handleNotificationClickAction(),this.handleDismissOnClick(o,r),p;case io.PRIMARY_CLICKED:case io.SECONDARY_CLICKED:o.takeActionOnPrimarySecondaryClick(t);break;case io.DISMISS_CLICKED:o.handleDismissClickForNotification(!0);break;case io.UNPIN_CLICKED:o.handlePinClickForNotification();break;case io.MARK_AS_UNREAD_CLICKED:o.markNotificationAsUnread();break;case io.MARK_AS_READ_CLICKED:o.handleNotificationClickAction(!0);break;case io.HANDLE_NOTIFICATION_CLICK:default:if("body"===n.clickType)try{$o.getInstance().sendAnalyticsForNotificationAction(o,n.clickType)}catch(e){ie.warn("UNCWidget: RenderingUtility: handleClickAction - Error while sending event for link click opening")}o.state!==ro.NOTIFICATION_STATE_PROGRESS&&o.handleNotificationClickAction()}}},{key:"getAttributeValues",value:function(e){var t={};return["clickAction","panelName","sapCode","version","passToHostClient","href"].forEach((function(n){var i=e.currentTarget.attributes.getNamedItem(n);i&&(t[n]=i)})),t}},{key:"handleURLClick",value:function(e,t){t.preventDefault(),t.stopPropagation(),t.nativeEvent&&"function"==typeof t.nativeEvent.stopImmediatePropagation&&t.nativeEvent.stopImmediatePropagation();var n=t.currentTarget.attributes;To()&&(n=this.getAttributeValues(t));var i=e.notification;if(n.clickAction&&"panelSwitch"===n.clickAction.value){i.state!==ro.NOTIFICATION_STATE_PROGRESS&&i.handleNotificationClickAction();var o={};o.message=n.clickAction.value;var r={};if(!n.panelName||!n.panelName.value)return void ie.warn("UNCWidget: RenderingUtility: handleURLClick - for clickAction as PanelSwitch, PanelName is not defined therefore returning");r.panelName=n.panelName.value,r.id=i.id,r.type=i.type,r.subType=i.subType,o.data=r;try{po.getInstance().hostCallBackFn&&"function"==typeof po.getInstance().hostCallBackFn&&po.getInstance().hostCallBackFn(o)}catch(e){ie.warn("UNCWidget: RenderingUtility: handleURLClick - Exception while invoking hostCallBack for panelSwitch action",e)}}else if(n.clickAction&&"appInstall"===n.clickAction.value){i.state!==ro.NOTIFICATION_STATE_PROGRESS&&i.handleNotificationClickAction();var a={};a.message=n.clickAction.value;var s={};if(!n.sapCode||!n.sapCode.value)return void ie.warn("UNCWidget: RenderingUtility: handleURLClick - for appInstall action sapCode is must");s.sapCode=n.sapCode.value,n.version&&n.version.value&&(s.version=n.version.value),s.id=i.id,s.type=i.type,s.subType=i.subType,a.data=s;try{po.getInstance().hostCallBackFn&&"function"==typeof po.getInstance().hostCallBackFn&&po.getInstance().hostCallBackFn(a)}catch(e){ie.warn("UNCWidget: RenderingUtility: handleURLClick - Exception while invoking hostCallBack for appInstall action",e)}}else if(n.clickAction&&"appLaunch"===n.clickAction.value);else if(n.passToHostClient&&"true"===n.passToHostClient.value){if(i.state!==ro.NOTIFICATION_STATE_PROGRESS&&i.handleNotificationClickAction(),po.getInstance().hostCallBackFn&&"function"==typeof po.getInstance().hostCallBackFn){var c={message:"UserActedOnNotification"},l={};l.id=i.id,l.type=i.type,l.subType=i.subType,n.href&&n.href.value&&(l.url=n.href.value);for(var u=0;u<t.currentTarget.attributes.length;u+=1){var f=t.currentTarget.attributes[u].name;"href"!==f&&"passtohostclient"!==f.toLowerCase()&&(l[t.currentTarget.attributes[u].name]=t.currentTarget.attributes[u].value)}c.data=l,po.getInstance().hostCallBackFn(c)}else if(n.href&&n.href.value&&"#"!==n.href.value){var d={event:t,target:n.href.value,clickType:"link"};t.currentTarget.attributes["openInSameTab".toLowerCase()]&&"true"===t.currentTarget.attributes["openInSameTab".toLowerCase()].value&&(d.openInSameTab=!0),this.handleClickAction(e,io.OPEN_IN_NEW_TAB,d)}}else if(n.href&&n.href.value&&"#"!==n.href.value){var p={event:t,target:n.href.value,clickType:"link"};t.currentTarget.attributes["openInSameTab".toLowerCase()]&&"true"===t.currentTarget.attributes["openInSameTab".toLowerCase()].value&&(p.openInSameTab=!0),this.handleClickAction(e,io.OPEN_IN_NEW_TAB,p)}}},{key:"passClickActionToHostClient",value:function(e,t){t.preventDefault(),t.stopPropagation(),t.nativeEvent&&"function"==typeof t.nativeEvent.stopImmediatePropagation&&t.nativeEvent.stopImmediatePropagation();var n=e.payload.timeline.commentSection;if(n.passToHostClient&&"true"===n.passToHostClient.toString().toLowerCase()&&po.getInstance().hostCallBackFn&&"function"==typeof po.getInstance().hostCallBackFn){var i={message:"UserActedOnNotification"},o={};o.id=e.id,o.type=e.type,o.subType=e.subType,(n.ctaURL||n.commentURL)&&(n.ctaURL?o.url=n.ctaURL:o.url=n.commentURL),n.detailsNeededByHostClient&&(o=Sf(Sf({},o),n.detailsNeededByHostClient)),i.data=o,po.getInstance().hostCallBackFn(i)}e.state!==ro.NOTIFICATION_STATE_PROGRESS&&e.handleNotificationClickAction()}},{key:"onBlurEventHandlerForTabIndex",value:function(e){e&&(e.style["outline-style"]="none")}},{key:"onMouseDownEventHandlerForTabIndex",value:function(e){e&&(e.style["outline-style"]="none")}},{key:"checkIfClassToBeApplied",value:function(e,t){var n=e.notification,i=e.section,o=e.selectedFilter,r=n.payload.timeline.viewtype,a=!1;switch(t){case io.Class_Contrast:jf.isNotificationStateValidForNew(n.state)&&(a=!0);break;case io.Class_PinnedContrast:i===io.Pinned_Notifications_Section&&!0===n.isPinned&&(a=!0);break;case io.Class_AnnouncementContrast:i===io.Announcement_Notifications_Section&&Co.isAnnouncementNotification(n)&&(a=!0);break;case io.Class_Hidden:(i===io.Normal_Notifications_Section&&!0===n.isPinned||i===io.Pinned_Notifications_Section&&!1===n.isPinned||i===io.Pinned_Notifications_Section&&!1===n.isExpandedPinned&&o.value===io.EVERYTHING||n.state===ro.NOTIFICATION_STATE_DISMISSED||!0===n.isNotificationDismissed)&&(a=!0);break;case"hyperlink":(n.payload.timeline.defaultAction||jf.isNotificationStateValidForNew(n.state)||0===io.SUPPORTED_VIEW_TYPES.indexOf(r))&&(a=!0)}return a}},{key:"handleDefaultAction",value:function(e,t){ie.debug("UNCWidget: RenderingUtility: handleDefaultAction"),t.preventDefault(),t.stopPropagation();var n=e.notification,i=e.notification.payload.timeline,o=i.defaultAction,r=i.dismissOnClick;if(o&&o.passToHostClient&&"true"===o.passToHostClient.toString().toLowerCase()&&po.getInstance().hostCallBackFn&&"function"==typeof po.getInstance().hostCallBackFn){var a={message:"UserActedOnNotification"},s={};s.id=n.id,s.type=n.type,s.subType=n.subType,o.url&&(s.url=o.url),o.detailsNeededByHostClient&&(s=Sf(Sf({},s),o.detailsNeededByHostClient)),a.data=s,po.getInstance().hostCallBackFn(a),n.handleNotificationClickActionAnalytics(),n.state!==ro.NOTIFICATION_STATE_PROGRESS&&n.handleNotificationClickAction()}else if(o.url||o.deepLinkWorkflows){var c,l=o.deepLinkWorkflows;if(ie.debug("UNCWidget: RenderingUtility: handleDefaultAction: deeplinkworkflows: ",l),l&&this.handleClickAction(e,io.DEEPLINK_WORKFLOW_CLICKED,{deepLinkWorkflows:l,event:t}))return void ie.debug("UNCWidget: RenderingUtility: handleDefaultAction: sucessfully handeled deeplink");if(o.ccdRoutePath){if(o.fallbackURL){var u=encodeURIComponent(o.fallbackURL);if(o.ccdRoutePath=o.ccdRoutePath.concat("&fallbackURL=").concat(u),o.needSSO&&"true"===o.needSSO&&(o.ccdRoutePath=o.ccdRoutePath.concat("&needSSO=").concat(o.needSSO)),o.targetClientID&&o.targetScope){var f=encodeURIComponent(o.targetClientID),d=encodeURIComponent(o.targetScope);o.ccdRoutePath=o.ccdRoutePath.concat("&targetClientID=").concat(f).concat("&targetScope=").concat(d)}}c=o.ccdRoutePath}var p={event:t,target:o.url,ccdRoutePath:c,clickType:"link"};o.openInSameTab&&"true"===o.openInSameTab.toString().toLowerCase()&&(p.openInSameTab=!0);var h=o.SSODetails;h&&h.ssoEnabled&&"true"===h.ssoEnabled.toString()?(p.ssoEnabled="true",p.ssoTargetClientID=h.ssoTargetClientID,p.ssoTargetScope=h.ssoTargetScope):p.ssoEnabled="false",this.handleClickAction(e,io.OPEN_IN_NEW_TAB,p)}else this.handleClickAction(e,io.HANDLE_NOTIFICATION_CLICK,{clickType:"body",event:t});this.handleDismissOnClick(n,r)}},{key:"handleDismissOnClick",value:function(e,t){t&&e.handleDismissClickForNotification(!1,0)}},{key:"handleDeeplinkWorkflowsForDesktopApps",value:function(e,t,n){if(Array.isArray(t))t.forEach((function(e){var t={data:e};qn.dispatch({type:"accc.app.deepLink.request",data:JSON.stringify(t)})}));else{var i={data:t};qn.dispatch({type:"accc.app.deepLink.request",data:JSON.stringify(i)})}n.clickType="deeplink",e.state!==ro.NOTIFICATION_STATE_PROGRESS&&e.handleNotificationClickAction();try{$o.getInstance().sendAnalyticsForNotificationAction(e,n.clickType,n.target,t)}catch(e){ie.warn("UNCWidget: RenderingUtility: handleDeeplinkWorkflowsForDesktopApps: DEEPLINK_WORKFLOW_CLICKED - Error while sending event for deeplink handling for UXP")}}}],(n=[{key:"showActionList",value:function(e){var t,n=this;return t=po.getInstance().localizedStrings?JSON.parse(JSON.stringify(po.getInstance().localizedStrings)):JSON.parse(JSON.stringify(po.getInstance().displayData)),wo().createElement(Ao.MenuItem,{onClick:function(t){return n.handleClickAction(e,io.DISMISS_CLICKED,{eventObject:t})}},t.LOC_DISMISS)}}])&&Nf(t.prototype,n),i&&Nf(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function If(e){return If="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},If(e)}function wf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,r,a,s=[],c=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||Rf(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Af(){Af=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var r=t&&t.prototype instanceof y?t:y,a=Object.create(r.prototype),s=new k(i||[]);return o(a,"_invoke",{value:T(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",g="completed",m={};function y(){}function v(){}function b(){}var _={};l(_,a,(function(){return this}));var C=Object.getPrototypeOf,S=C&&C(C(D([])));S&&S!==n&&i.call(S,a)&&(_=S);var E=b.prototype=y.prototype=Object.create(_);function N(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(o,r,a,s){var c=f(e[o],e,r);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==If(u)&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var r;o(this,"_invoke",{value:function(e,i){function o(){return new t((function(t,o){n(e,i,t,o)}))}return r=r?r.then(o,o):o()}})}function T(t,n,i){var o=d;return function(r,a){if(o===h)throw new Error("Generator is already running");if(o===g){if("throw"===r)throw a;return{value:e,done:!0}}for(i.method=r,i.arg=a;;){var s=i.delegate;if(s){var c=I(s,i);if(c){if(c===m)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(o===d)throw o=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o=h;var l=f(t,n,i);if("normal"===l.type){if(o=i.done?g:p,l.arg===m)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(o=g,i.method="throw",i.arg=l.arg)}}}function I(t,n){var i=n.method,o=t.iterator[i];if(o===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var r=f(o,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,m;var a=r.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function w(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 k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,r=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(If(t)+" is not iterable")}return v.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=l(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},N(O.prototype),l(O.prototype,s,(function(){return this})),t.AsyncIterator=O,t.async=function(e,n,i,o,r){void 0===r&&(r=Promise);var a=new O(u(e,n,i,o),r);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},N(E),l(E,c,"Generator"),l(E,a,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=D,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(i,o){return s.type="throw",s.arg=t,n.next=i,o&&(n.method="next",n.arg=e),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var o=i.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:D(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),m}},t}function kf(e,t,n,i,o,r,a){try{var s=e[r](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(i,o)}function Df(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var r=e.apply(t,n);function a(e){kf(r,i,o,a,s,"next",e)}function s(e){kf(r,i,o,a,s,"throw",e)}a(void 0)}))}}function Pf(e){return function(e){if(Array.isArray(e))return xf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Rf(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rf(e,t){if(e){if("string"==typeof e)return xf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xf(e,t):void 0}}function xf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ff(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Lf(i.key),i)}}function Lf(e){var t=function(e,t){if("object"!=If(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=If(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==If(t)?t:String(t)}Tf.executeDeeplinkWorkflowViaWAM=function(e){window.CCWamclient.executeWorkflow(e).then((function(e){e.status&&ie.debug("UNCWidget: RenderingUtility: handleClickAction: DEEPLINK_WORKFLOW_CLICKED: successfully handled deeplink")})).catch((function(t){t.status||(ie.debug("UNCWidget: RenderingUtility: handleClickAction: DEEPLINK_WORKFLOW_CLICKED: ".concat(JSON.stringify(t.error))),window.CCWamclient.executeWorkflowViaCCDURI(po.getInstance().env,e))}))};var Uf,jf=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i,o,r;return t=e,n=null,i=[{key:"init",value:function(t){e.container=t}},{key:"getTimeStringToShowOnUI",value:function(e){var t;t=po.getInstance().localizedStrings?JSON.parse(JSON.stringify(po.getInstance().localizedStrings)):JSON.parse(JSON.stringify(po.getInstance().displayData));var n,i=(new Date).getTime(),o=(i+=po.getInstance().getTimeStampDrift())-e;if((o=Math.floor(o/1e3))<60)n=t.LOC_JUST_NOW;else if(o<3600)if(o<120)n=t.LOC_ONE_MINUTE_AGO;else{var r=Math.floor(o/60);n=(n=t.LOC_MULTIPLE_MINUTES_AGO).replace("{0}",r)}else if(o<86400)if(o<7200)n=t.LOC_ONE_HOUR_AGO;else{var a=Math.floor(o/3600);n=(n=t.LOC_MULTIPLE_HOURS_AGO).replace("{0}",a)}else if(o<604800)if(o<172800)n=t.LOC_ONE_DAY_AGO;else{var s=Math.floor(o/86400);n=(n=t.LOC_MULTIPLE_DAYS_AGO).replace("{0}",s)}else if(o<2419200)if(o<1209600)n=t.LOC_ONE_WEEK_AGO;else{var c=Math.floor(o/604800);n=(n=t.LOC_MULTIPLE_WEEKS_AGO).replace("{0}",c)}else if(o<31536e3)if(o<5270400)n=t.LOC_ONE_MONTH_AGO;else{var l=Math.floor(o/2678400);1===l&&(l=2),n=(n=t.LOC_MULTIPLE_MONTHS_AGO).replace("{0}",l)}else if(o<63072e3)n=t.LOC_ONE_YEAR_AGO;else{var u=Math.floor(o/31536e3);n=(n=t.LOC_MULTIPLE_YEARS_AGO).replace("{0}",u)}return n}},{key:"getBasePathForResources",value:function(){return po.getInstance().env.toLowerCase()===io.ENVIRONMENTS.PROD?Ue.PROD_BASE_PATH:po.getInstance().env.toLowerCase()===io.ENVIRONMENTS.DEV?Ue.DEV_BASE_PATH:po.getInstance().env.toLowerCase()===io.ENVIRONMENTS.LOCAL?"/":po.getInstance().env.toLowerCase()===io.ENVIRONMENTS.QE?Ue.QE_BASE_PATH:Ue.STAGE_BASE_PATH}},{key:"getIconForTypeSubType",value:function(e,t){var n=this.getBasePathForResources();return e===ro.TYPE_BEHANCE?n+po.getInstance().imagePathMap["./2x/behance_icon@2x.png"]:t===ro.SUBTYPE_REDHAWK_COMMENT||t===ro.SUBTYPE_REDHAWK_COMMENT_ADD||t===ro.SUBTYPE_REDHAWK_COMMENT_DELETE||t===ro.SUBTYPE_REDHAWK_COMMENT_MODIFY||t===ro.SUBTYPE_REDHAWK_COMMENT_REPLY||t===ro.SUBTYPE_REDHAWK_COMMENT_RESOLVE?n+po.getInstance().imagePathMap["./2x/xd_icon@2x.png"]:n+po.getInstance().imagePathMap["./2x/creative_cloud_icon@2x.png"]}},{key:"getAvatarIconURLAndServiceIconInfo",value:function(e,t,n){var i={},o=this.getBasePathForResources();return e&&(e.avatarIconDetails&&Object.prototype.hasOwnProperty.call(e.avatarIconDetails,"avatarIcon")?(""!==e.avatarIconDetails.avatarIcon?i.avatarIcon=e.avatarIconDetails.avatarIcon:i.avatarIcon=o+po.getInstance().imagePathMap["./1x/unc_thumbnail_noavatar.svg"],i.avatarIconFallback=o+po.getInstance().imagePathMap["./1x/unc_thumbnail_noavatar.svg"],e.avatarIconDetails.avatarUrl?(i.avatarClickURL=e.avatarIconDetails.avatarUrl,i.SSODetails=e.avatarIconDetails.SSODetails):i.avatarClickURL="",e.serviceIconDetails&&Object.prototype.hasOwnProperty.call(e.serviceIconDetails,"serviceIcon")&&""!==e.serviceIconDetails.serviceIcon?i.serviceIcon=e.serviceIconDetails.serviceIcon:i.serviceIcon=this.getIconForTypeSubType(t,n),i.serviceIconFallback=this.getIconForTypeSubType(t,n),e.avatarIconDetails.openInSameTab&&"true"===e.avatarIconDetails.openInSameTab.toString().toLowerCase()&&(i.openInSameTab=!0)):(e.serviceIconDetails&&Object.prototype.hasOwnProperty.call(e.serviceIconDetails,"serviceIcon")&&""!==e.serviceIconDetails.serviceIcon?i.avatarIcon=e.serviceIconDetails.serviceIcon:i.avatarIcon=o+po.getInstance().imagePathMap["./2x/creative_cloud_thumbnail@2x.png"],i.avatarIconFallback=o+po.getInstance().imagePathMap["./2x/creative_cloud_thumbnail@2x.png"],e.serviceIconDetails&&e.serviceIconDetails.serviceUrl?(i.avatarClickURL=e.serviceIconDetails.serviceUrl,i.SSODetails=e.serviceIconDetails.SSODetails):i.avatarClickURL="",e.serviceIconDetails&&e.serviceIconDetails.openInSameTab&&"true"===e.serviceIconDetails.openInSameTab.toString().toLowerCase()&&(i.openInSameTab=!0)),e.commentSection&&e.commentSection.icons&&e.commentSection.icons.length>0&&(i.commentSectionIcons=e.commentSection.icons)),i}},{key:"getCriteriaForFetchingNotifications",value:function(e){for(var t={},n=this.getListOfTypeSubtypeForInvites(),i={OR:[]},o=0;o<n.length;o+=1){var r={AND:[]},a=n[o];r.AND.push({field:"type",value:a.type,operator:"EQ"}),r.AND.push({field:"sub-type",value:a.subtype,operator:"EQ"}),i.OR.push(r)}var s={field:"state",value:ro.NOTIFICATION_STATE_EXPIRED,operator:"NE"},c={AND:[]};if(c.AND.push(i),c.AND.push(s),e>0){var l={AND:[]};l.AND.push(c);var u={field:ro.TIMESTAMP_KEY,value:e,operator:"LT"};l.AND.push(u),t=l}else t=c;return t}},{key:"getListOfTypeSubtypeForInvites",value:function(){for(var e=po.getInstance().searchTypeSubtypes,t=[],n=0;n<e.length;n+=1){var i=e[n].split("__");t.push({type:i[0],subtype:i[1]})}return t}},{key:"getEmptyNotificationScreenIcon",value:function(){return!To()||"dark"!==po.getInstance().theme&&"darkest"!==po.getInstance().theme?this.getBasePathForResources()+po.getInstance().imagePathMap["./1x/unc_illustration_nullstate.svg"]:this.getBasePathForResources()+po.getInstance().imagePathMap["./1x/unc_empty_icon_psdark.svg"]}},{key:"getUnavIcon",value:function(){return this.getBasePathForResources()+po.getInstance().imagePathMap["./1x/S2_Icon_Bell_20_N.svg"]}},{key:"getNoFilteredNotificationsIcon",value:function(){return this.getBasePathForResources()+po.getInstance().imagePathMap["./1x/unc_illustration_notfound.svg"]}},{key:"getAuthorForNotificationTypeSubtype",value:function(e,t){return e===ro.TYPE_BEHANCE?"behance":e===ro.TYPE_FOLDER_COLLAB?"stormcloud":e===ro.TYPE_ANYWHERE_PRODUCTION?"anywhere":e===ro.TYPE_DESIGN_LIBRARY?"designlibrary":t===ro.SUBTYPE_REDHAWK_COMMENT||t===ro.SUBTYPE_REDHAWK_COMMENT_ADD||t===ro.SUBTYPE_REDHAWK_COMMENT_DELETE||t===ro.SUBTYPE_REDHAWK_COMMENT_MODIFY||t===ro.SUBTYPE_REDHAWK_COMMENT_REPLY||t===ro.SUBTYPE_REDHAWK_COMMENT_RESOLVE?"xd":"generic"}},{key:"checkIfThisTypeSubtypeIsSupported",value:function(e){var t=!0;return e===ro.TYPE_FOLDER_COLLAB&&!1===yo.getInstance().filesPanelEnabled?(ie.info("UNCWidget: checkIfThisTypeSubtypeIsSupported: Files and folder collab notifications are not supported from FES"),t=!1):e===ro.TYPE_DESIGN_LIBRARY&&!1===yo.getInstance().designLibraryFeatureEnabled?(ie.info("UNCWidget: checkIfThisTypeSubtypeIsSupported: Design Library notifications are not supported from FES"),t=!1):t=!0,t}},{key:"getAppropriateSubContent",value:function(e){if("string"===e.key)return e.value;if("date"===e.key){var t=0;if("string"==typeof e.value)t=parseInt(e.value,10);else{if("number"!=typeof e.value)return"";t=e.value}"seconds"===e.format&&(t*=1e3);var n="",i=new Date(t);switch(i.getMonth()){case 0:n="Jan ";break;case 1:n="Feb ";break;case 2:n="Mar ";break;case 3:n="Apr ";break;case 4:n="May ";break;case 5:n="Jun ";break;case 6:n="Jul ";break;case 7:n="Aug ";break;case 8:n="Sep ";break;case 9:n="Oct ";break;case 10:n="Nov ";break;case 11:n="Dec "}n+="".concat(i.getDate(),", ");var o=i.getHours(),r=i.getMinutes(),a=o>=12?"PM":"AM";return n+="".concat("0".concat(o=(o%=12)||12).slice(-2),":").concat("0".concat(r).slice(-2)," ").concat(a)}return e.value}},{key:"getAppropriateSubContentHeader",value:function(e){return"date"===e.key?"Due By:":""}},{key:"isNotificationStateValidForNew",value:function(e){return e===ro.NOTIFICATION_STATE_NEW||e===ro.NOTIFICATION_STATE_UNREAD}},{key:"isDeviceTypeMobile",value:function(){return po.getInstance().deviceType&&po.getInstance().deviceType===io.DeviceType.MOBILE}},{key:"isDesktopSurface",value:function(){return po.getInstance().surface&&po.getInstance().surface.toUpperCase()===io.SURFACE_DESKTOP}},{key:"isShowSkeleton",value:function(e,t){return e||t}},{key:"isTodaysNotification",value:function(e){return e>=(new Date).setHours(0,0,0,0)}},{key:"scrollToDiv",value:function(e,t,n,i){var o=e.scrollTop,r=t.offsetTop-e.offsetTop-o-n,a=i,s=null;requestAnimationFrame((function t(n){s||(s=n);var i,c=n-s,l=o+r*((i=c/a)<.5?4*i*i*i:(i-1)*(2*i-2)*(2*i-2)+1);e.scrollTop=l,c<a&&requestAnimationFrame(t)}))}},{key:"isValidString",value:function(e){return!(null==e||""===e)}},{key:"getPipeSeparatedFilters",value:function(e){var t="";if(e.payload.timeline&&e.payload.timeline.filterDetails){if(e.payload.timeline.overrideFilter)return t;try{e.payload.timeline.filterDetails.forEach((function(e){var n=[];n=function(e,t,n){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var i=t.length;return xf(t,void 0!==n&&n<i?n:i)}return e(t,n)}(Pf,e.categories),t+=n.join(" | "),t+=" | "})),t=t.slice(0,-3)}catch(n){t="",ie.debug("UNCWidget: NotificationsProvider: malformed filterDetails array, this",e,"will not forward its filterDetails data :",n)}}return t}},{key:"isRTLLocale",value:function(){return io.locales.rtlLocales.includes(po.getInstance().deviceLocale)}},{key:"shouldShowTimeString",value:function(e,t){return Co.checkNotificationRenderedAsNonAnnouncement(e,t)&&!Oo.isEventNotification(e)}},{key:"getCurrentTimeFromAkamai",value:(r=Df(Af().mark((function e(){var t;return Af().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=fetch("https://time.akamai.com"),e.abrupt("return",t);case 5:return e.prev=5,e.t0=e.catch(0),ie.debug("UNCWidget: getCurrentTimeFromAkamai: error while fetching current time: ",e.t0),e.abrupt("return",Promise.reject(e.t0));case 9:case"end":return e.stop()}}),e,null,[[0,5]])}))),function(){return r.apply(this,arguments)})},{key:"isNotificationValidForSurface",value:function(e){try{if(po.getInstance().acceptNotificationsForSurface&&Array.isArray(po.getInstance().acceptNotificationsForSurface)&&po.getInstance().acceptNotificationsForSurface.length>0)return po.getInstance().acceptNotificationsForSurface.some((function(t){return e.timeline.filterDetails.some((function(e){return e.categories.some((function(e){return e.toLowerCase()===t.toLowerCase()}))}))}))}catch(e){return ie.debug("UNCWidget: Utils: error while parsing filterDetails: ",e),!1}return!0}},{key:"getNewNotifications",value:function(e){var t,n=[],i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Rf(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}(e.entries());try{for(i.s();!(t=i.n()).done;){var o=wf(t.value,2)[1];o.state===ro.NOTIFICATION_STATE_NEW&&n.push(o)}}catch(e){i.e(e)}finally{i.f()}return n}},{key:"isActionExecuted",value:function(e,t,n){if(e){var i=e.passToHostClient,o=e.deepLinkWorkflows,r=e.targetUrl,a=e.SSODetails,s=e.openInSameTab;if(i&&"true"===i.toString().toLowerCase()&&po.getInstance().hostCallBackFn&&"function"==typeof po.getInstance().hostCallBackFn)return Tf.passClickActionToHostClient(n.notification,t),!0;if(o&&Tf.handleClickAction(n,io.DEEPLINK_WORKFLOW_CLICKED,{deepLinkWorkflows:o,event:t}))return!0;if(r){var c={event:t,target:r,clickType:"link"},l=a||{},u=l.ssoEnabled,f=l.ssoTargetClientID,d=l.ssoTargetScope;return u&&"true"===u.toString().toLowerCase()?(c.ssoEnabled="true",c.ssoTargetClientID=f,c.ssoTargetScope=d):c.ssoEnabled="false",s&&"true"===s.toString().toLowerCase()&&(c.openInSameTab=!0),Tf.handleClickAction(n,io.OPEN_IN_NEW_TAB,c),!0}}return!1}},{key:"onPrimaryButtonClick",value:function(e,t){var n=t.notification;if(n&&n.payload){var i=n.payload.primaryButtonDetails;if(this.isActionExecuted(i,e,t))return}Tf.handleClickAction(t,io.PRIMARY_CLICKED,{event:e})}},{key:"onSecondaryButtonClick",value:function(e,t){var n=t.notification;if(n&&n.payload){var i=n.payload.secondaryButtonDetails;if(this.isActionExecuted(i,e,t))return}Tf.handleClickAction(t,io.SECONDARY_CLICKED,{event:e})}},{key:"checkButtonVisibility",value:function(e,t){if(e){if(Object.prototype.hasOwnProperty.call(e,"label")&&""===e.label.trim())return!1;if(["passToHostClient","deepLinkWorkflows","targetUrl"].some((function(t){return Object.prototype.hasOwnProperty.call(e,t)})))return!0}return!!t}},{key:"getButtonLabelAndVariant",value:function(e,t){var n=t.label,i=t.variant;return e&&(Object.prototype.hasOwnProperty.call(e,"label")&&(n=e.label.trim()),Object.prototype.hasOwnProperty.call(e,"variant")&&(i=e.variant.trim().toLowerCase())),{label:n,variant:i}}},{key:"getJumpURL",value:(o=Df(Af().mark((function e(t,n){var i,o,r,a,s,c,l,u,f,d,p,h,g;return Af().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&n){e.next=2;break}return e.abrupt("return","");case 2:if(ie.debug("UNCWidget: Utils: getJumpURL:","url: ".concat(t,","),"ssoDetails: ".concat(JSON.stringify(n),",")),i=po.getInstance().env,o=Ue.UNC_CLIENT_ID,r=i.toLowerCase()===io.ENVIRONMENTS.PROD?Ue.IMS_ENDPOINT_URLS.PROD:Ue.IMS_ENDPOINT_URLS.STAGE,void 0!==(a=zr.getInstance().sendMessage(io.GET_USER_PROFILE,{},io.CLIENT_TARGET_TYPE,"",!1)).AccessToken&&""!==a.AccessToken){e.next=9;break}return e.abrupt("return","");case 9:if(r&&o){e.next=12;break}return ie.error("UNCWidget: Utils: getJumpURL: IMS endpoint or client ID not configured:","url: ".concat(t,",")),e.abrupt("return","");case 12:return s=n.clientId,c=n.scope,l=n.responseType,u=void 0===l?"token":l,f=new URLSearchParams({bearer_token:"".concat(a.AccessToken),target_client_id:s,target_redirect_uri:t,target_scope:c,target_response_type:u,locale:po.getInstance().deviceLocale,client_id:o}),d={"Content-Type":"application/x-www-form-urlencoded","X-IMS-ClientId":o},p="".concat(r,"/ims/jumptoken/v1"),e.prev=16,e.next=19,fetch(p,{method:"POST",headers:d,body:f.toString()});case 19:if(!(h=e.sent).ok){e.next=27;break}return e.next=23,h.json();case 23:if(!(g=e.sent)||!g.jump){e.next=27;break}return ie.debug("UNCWidget: Utils: getJumpURL: success:","url: ".concat(t,",")),e.abrupt("return",g.jump);case 27:e.next=32;break;case 29:e.prev=29,e.t0=e.catch(16),ie.error("UNCWidget: Utils: getJumpURL: error in jump URL data:","url: ".concat(t,","),"error: ".concat(e.t0));case 32:return e.abrupt("return","");case 33:case"end":return e.stop()}}),e,null,[[16,29]])}))),function(e,t){return o.apply(this,arguments)})}],n&&Ff(t.prototype,n),i&&Ff(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Mf(e){return Mf="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},Mf(e)}function Wf(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,qf(i.key),i)}}function Hf(e,t,n){return t&&Wf(e.prototype,t),n&&Wf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qf(e){var t=function(e,t){if("object"!=Mf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Mf(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Mf(t)?t:String(t)}jf.container=null;var Bf=Hf((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));Uf=Bf,Bf.initializeWAMClient=function(e){var t={env:e.env,clientId:e.imsClientID,userContext:{accessToken:e.accessToken},sendAnalytics:!0,isLoggingEnabled:!1,callbacks:{onSuccessCallback:function(e){var t=e.timeTakenInWAMWF;ie.debug("UNCEngine: UNCContainer: Connection with Thor via WAM is established in: ",t)},onFailureCallback:function(e){ie.error("UNCEngine: UNCContainer: Connection with Thor via WAM could not be established, error is: ".concat(JSON.stringify(e.error)))},clientTokenExpiryCheck:function(){return!0},onClientStateCallback:function(e){},onMessageCallback:function(e){window.CCWamclient.processMessage(e);ie.debug("UNCEngine: UNCContainer: onMessage callback is called via WAM")}}};window.CCWamclient.initialize(t),window.CCWamclient.isCCDPresent({env:e.env},!0).then((function(e){ie.debug("UNCEngine: UNCContainer: isCCDPresent: ",e),It.isCCDPresent=e,pe.sendMessageToApplet("IsCCDPresent",{isCCDPresent:e},"UNCWidget")}))},Bf.loadWam=function(e){try{var t=e.featureFlagEntries["feature-entry"],n=e.env===je.ENVIRONMENTS.PROD?Ue.BIFROST_HOSTED_URLS.PROD:Ue.BIFROST_HOSTED_URLS.STAGE;t.forEach((function(t){if(t.state===Ue.ENABLED&&"unc.appList.wam"===t.id){var i=JSON.parse(t.data);i.appList&&i.appList.find((function(t){return t===e.appID}))&&(window.CCWamclient?(ie.debug("UNCEngine: UNCContainer: wam library already loaded by surface"),Uf.initializeWAMClient(e)):(ie.debug("UNCEngine: UNCContainer: wam connection initialization by UNC"),pt.loadJS(n,!0,(function(){Uf.initializeWAMClient(e)}))))}}))}catch(e){ie.error("UNCEngine: UNCContainer: error while initializing WAM client with exception: ",e)}};var Vf=0;function Gf(e){return"__private_"+Vf+++"_"+e}function zf(e){return zf="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},zf(e)}function Kf(){return Kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Kf.apply(this,arguments)}function Yf(){Yf=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var r=t&&t.prototype instanceof y?t:y,a=Object.create(r.prototype),s=new k(i||[]);return o(a,"_invoke",{value:T(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",g="completed",m={};function y(){}function v(){}function b(){}var _={};l(_,a,(function(){return this}));var C=Object.getPrototypeOf,S=C&&C(C(D([])));S&&S!==n&&i.call(S,a)&&(_=S);var E=b.prototype=y.prototype=Object.create(_);function N(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(o,r,a,s){var c=f(e[o],e,r);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==zf(u)&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var r;o(this,"_invoke",{value:function(e,i){function o(){return new t((function(t,o){n(e,i,t,o)}))}return r=r?r.then(o,o):o()}})}function T(t,n,i){var o=d;return function(r,a){if(o===h)throw new Error("Generator is already running");if(o===g){if("throw"===r)throw a;return{value:e,done:!0}}for(i.method=r,i.arg=a;;){var s=i.delegate;if(s){var c=I(s,i);if(c){if(c===m)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(o===d)throw o=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o=h;var l=f(t,n,i);if("normal"===l.type){if(o=i.done?g:p,l.arg===m)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(o=g,i.method="throw",i.arg=l.arg)}}}function I(t,n){var i=n.method,o=t.iterator[i];if(o===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var r=f(o,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,m;var a=r.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function w(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 k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,r=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(zf(t)+" is not iterable")}return v.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=l(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},N(O.prototype),l(O.prototype,s,(function(){return this})),t.AsyncIterator=O,t.async=function(e,n,i,o,r){void 0===r&&(r=Promise);var a=new O(u(e,n,i,o),r);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},N(E),l(E,c,"Generator"),l(E,a,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=D,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(i,o){return s.type="throw",s.arg=t,n.next=i,o&&(n.method="next",n.arg=e),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var o=i.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:D(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),m}},t}function Xf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Jf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xf(Object(n),!0).forEach((function(t){$f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $f(e,t,n){return(t=nd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qf(e,t,n,i,o,r,a){try{var s=e[r](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(i,o)}function Zf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ed(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,nd(i.key),i)}}function td(e,t,n){return t&&ed(e.prototype,t),n&&ed(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nd(e){var t=function(e,t){if("object"!=zf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=zf(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zf(t)?t:String(t)}var id=function(){function e(){Zf(this,e),this._clientCallback=function(e,t){ie.debug("UNCEngine: UNCContainer: client callback not provided or not a valid fn, namespace: ",e,", data: ",t)},this._clientNamespaces={},this._userProfile=null}var t,n;return td(e,[{key:"_sendMessage",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";this._ccxCore.handleMessage({targetType:n,message:e,data:t,targetID:i})}},{key:"_getUserProfile",value:function(){return this._userProfile}},{key:"_setUserProfile",value:function(e){return e?no.sanitizeUserProfile(e)?(this._userProfile=new no(e),!0):(ie.warn("UNCEngine: UNCContainer: _setUserProfile - Input user profile sanity failed"),!1):(ie.warn("UNCEngine: UNCContainer: _setUserProfile - Cannot set empty user profile: userProfile not defined"),!1)}},{key:"_invalidateUserProfile",value:function(){delete this._userProfile,this._userProfile=null}},{key:"_fetchFilterDetailsAndLoadUI",value:(t=Yf().mark((function e(t){var n,i,o,r;return Yf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.optimizations&&t.optimizations.includes("disableFilterAndWAM")){e.next=20;break}return n=Ue.FEATURE_FLAG_URLS.PROD,t.env.toLowerCase()===je.ENVIRONMENTS.STAGE&&(n=Ue.FEATURE_FLAG_URLS.STAGE),e.prev=3,ie.debug("UNCEngine: UNCContainer: fetching filter details..."),e.next=7,fetch(n);case 7:return i=e.sent,e.next=10,i.text();case 10:o=e.sent,r=JSON.parse(o),t.featureFlagEntries=r,r["feature-entry"].forEach((function(e){if(e.state===Ue.ENABLED&&e.data)try{var n=JSON.parse(e.data);"unc.".concat(t.appID,".filter")===e.id?t.filterConfig=n:"unc.".concat(t.appID,".push")===e.id?t.pushViaCCDConfig=n:"unc.deactivate.longpoll.focusout"===e.id?t.focusoutLongPollTerminationSurfaces=(null==n?void 0:n.appList)||[]:"unc.appList.cache"===e.id&&n.appList.includes(t.appID)&&(t.isCacheEnabled=!0)}catch(t){ie.warn("UNCEngine: UNCContainer: error while parsing feature-config: ",e.id," error: ",t)}})),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(3),ie.warn("UNCEngine: UNCContainer: filter details fetching failed with exception: ",e.t0);case 19:t.uiConfig.surface===je.Surface.WEB&&t.deviceType!==je.DeviceType.MOBILE&&Bf.loadWam(Jf(Jf({},t),{},{accessToken:this._userProfile.AccessToken}));case 20:this._loadUI(t);case 21:case"end":return e.stop()}}),e,this,[[3,16]])})),n=function(){var e=this,n=arguments;return new Promise((function(i,o){var r=t.apply(e,n);function a(e){Qf(r,i,o,a,s,"next",e)}function s(e){Qf(r,i,o,a,s,"throw",e)}a(void 0)}))},function(e){return n.apply(this,arguments)})},{key:"_loadUI",value:function(e,t){var n=pt.getUIContext(e),i=pt.UNCWidgetPath(e);if(n.surface.toLowerCase()!==je.Surface.DESKTOP&&n.optimizations&&n.optimizations.includes(je.Optimizations.DYNAMIC_LOADING))this._loadBL(e);else{var o=Kf({},i,{initData:{},statusCallback:function(t){t.status?(ie.debug("UNCEngine: UNCContainer: _loadUI - success returned in loading UNCWIdget"),n.isCCDPresent=It.isCCDPresent,this._sendMessage("InitContext",n,"Applet","UNCWidget"),ie.debug("UNCEngine: UNCContainer: _loadUI - Initializing UNCWidget with context: ",n),this._loadBL(e)):ie.debug("UNCEngine: UNCContainer: _loadUI - error returned in loading UNCWIdget")}.bind(this),panels:void 0});this._sendMessage("LoadModule",o,"JSCore")}}},{key:"_loadBL",value:function(e){if(!this.uncEnginObj){this.uncEnginObj=new Qi;var t={id:"UNCEngine",moduleObject:this.uncEnginObj,initData:""};this._sendMessage("RegisterModule",t,"JSCore")}this._sendMessage("InitContext",e,"Applet","UNCEngine")}},{key:"initialize",value:function(e){if(e&&e.initJSON&&"object"===zf(e.initJSON)){this._ccxCore=e.hostObject;var t=e.initJSON.applicationContext;t.namespaces&&"object"===zf(t.namespaces)&&(this._clientNamespaces=t.namespaces),e.initJSON.callback&&"function"==typeof e.initJSON.callback&&(this._clientCallback=e.initJSON.callback),t.userProfile&&"object"===zf(t.userProfile)&&(this._setUserProfile(t.userProfile),delete t.userProfile),t.uiEnabled?t.uiConfig&&"object"===zf(t.uiConfig)&&this._fetchFilterDetailsAndLoadUI(t):this._loadBL(t)}}},{key:"handleInitAndWidgetDisplay",value:function(e){e.isCCDPresent=It.isCCDPresent,e.badgeCount=It.badgeCount,e.theme=It.theme,ie.debug("UNCEngine: UNCContainer: _loadUI - success returned in loading UNCWIdget"),this._ccxCore.handleMessage({targetType:"Applet",targetID:"UNCWidget",message:"InitContext",data:e,isAsync:!1}),ie.debug("UNCEngine: UNCContainer: _loadUI - Initializing UNCWidget with context: ",e),this._ccxCore.handleMessage({targetType:"Applet",targetID:"UNCWidget",message:"Init",data:{},isAsync:!1}),ie.debug("UNCEngine: UNCContainer: Sending Init message to UNCWidget"),this._ccxCore.handleMessage({targetType:"Applet",targetID:"UNCWidget",message:"HistoricalNotificationsNamespace",data:Li.getLocalHistoricalNotificationList(),isAsync:!1}),ie.debug("UNCEngine: UNCContainer: Sending LocalNotificationsNamespace message to UNCWidget"),this._ccxCore.handleMessage({targetType:"Applet",targetID:"UNCWidget",message:"ShowNotificationWidget",data:{}}),Tt.setDataCustomIcon("Not pending")}},{key:"handleMessage",value:function(e){var t=this,n=e.message;switch(n){case"ShowOSTray":ie.debug("UNCEngine: UNCContainer: handleMessage: ShowOSTray - Calling client callback with namespace '",this._clientNamespaces[n],"'");try{this._clientCallback(this._clientNamespaces[n],e.data)}catch(e){ie.debug("UNCEngine: UNCContainer: handleMessage: ShowOSTray - Exception in calling client callback",e)}return;case"UpdateBadge":ie.debug("UNCEngine: UNCContainer: handleMessage: UpdateBadge - Calling client callback with namespace '",this._clientNamespaces[n],"'");try{this._clientCallback(this._clientNamespaces[n],e.data)}catch(e){ie.debug("UNCEngine: UNCContainer: handleMessage: ShowOSTray - Exception in calling client callback",e)}return;case"GetUserProfile":return ie.debug("UNCEngine: UNCContainer: handleMessage: GetUserProfile - Sending userProfile Data to ",e.sourceID),this._getUserProfile();case"RefreshUserProfile":if(this._userProfile){ie.debug("UNCEngine: UNCContainer: handleMessage: RefreshUserProfile - Recieved request from ",e.sourceID,"Invalidating existing user profile and fetching updated profile"),this._invalidateUserProfile();try{this._clientCallback(n,e.data)}catch(e){ie.debug("UNCEngine: UNCContainer: handleMessage: ShowOSTray - Exception in calling client callback",e)}}return;case"NotificationIconClick":ie.debug("UNCEngine: UNCContainer: handleMessage: NotificationIconClick - Recieved data: ",e);var i=e.data;if(i.widgetClosed){var o=pt.getUIContext(i.context);this.handleInitAndWidgetDisplay(o)}else{var r=Kf({},{id:"UNCWidget",version:"1.0",path:i.UNCWidgetJSPath,cssPath:i.UNCWidgetCSSPath},{initData:{},statusCallback:function(e){if(e.status){var n=pt.getUIContext(i.context);t.handleInitAndWidgetDisplay(n),ie.debug("UNCEngine: UNCContainer: ShowNotificationWidgetWithoutDelay message to UNCWidget")}else Tt.setDataCustomIcon("Not pending"),ie.debug("UNCEngine: UNCContainer: _loadUI - error returned in loading UNCWIdget"),t._ccxCore.handleMessage({targetType:"Applet",targetID:"UNCEngine",message:"LoadErrorScreen",data:{}})},panels:void 0});this._ccxCore.handleMessage({targetType:"JSCore",message:"LoadModule",data:r})}return;default:ie.debug("UNCEngine: UNCContainer: handleMessage: default - Calling client callback with namespace '",n,"'");try{this._clientCallback(n,e.data)}catch(e){ie.debug("UNCEngine: UNCContainer: handleMessage: ShowOSTray - Exception in calling client callback",e)}}}},{key:"finalize",value:function(e){}},{key:"handleMessageFromInterface",value:function(e,t){switch(e){case"RegisterObservers":return void this._sendMessage("RegisterObservers",t,"Applet","UNCEngine");case"UnregisterObservers":return void this._sendMessage("UnregisterObservers",t,"Applet","UNCEngine");case"GetNotifications":return void this._sendMessage("GetNotifications",t,"Applet","UNCEngine");case"PostNotifications":return void this._sendMessage("PostNotifications",t,"Applet","UNCEngine");case"UpdateNotifications":return void this._sendMessage("UpdateNotifications",t,"Applet","UNCEngine");case"UpdateNotificationContent":return void this._sendMessage("UpdateNotificationContent",t,"Applet","UNCWidget");case"UpdateTheme":return this._sendMessage("ThemeChange",t,"Applet","UNCWidget"),void this._sendMessage("ThemeChange",t,"Applet","UNCEngine");case"cleanUp":return void this._sendMessage("cleanUp",t,"Applet","UNCEngine");case"UpdateUserProfile":if(!t)return;var n=t;"string"==typeof n&&(n=JSON.parse(t)),this.userProfile&&this._invalidateUserProfile(),this._setUserProfile(n);var i={};return void this._sendMessage("UpdateUserProfile",i,"Applet","UNCEngine");case"ClearBadge":return void this._sendMessage("ClearBadge",t,"Applet","UNCEngine");case"UpdateAnalyticsConfig":return void this._sendMessage("UpdateAnalyticsConfig",t,"Applet","UNCEngine");case"ShowNotificationWidget":return void this._sendMessage("ShowNotificationWidget",t,"Applet","UNCWidget");case"HideNotificationWidget":this._sendMessage("HideNotificationWidget",t,"Applet","UNCWidget");break;case"HandleOfflineToOnline":this._sendMessage("NetworkIsOnline",i,"Applet","UNCEngine");break;case"AddNotification":this._sendMessage("AddNotification",t,"Applet","UNCEngine")}}}]),e}(),od=Gf("intializeUNC"),rd=function(){function e(t){Zf(this,e),Object.defineProperty(this,od,{value:ad}),this.initializeUNC=pt.debounce(function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,od)[od].bind(this),1e3),this.initializeUNC(t)}return td(e,[{key:"RegisterObservers",value:function(e){this._uncContainer.handleMessageFromInterface("RegisterObservers",e)}},{key:"UnregisterObservers",value:function(e){this._uncContainer.handleMessageFromInterface("UnregisterObservers",e)}},{key:"GetNotifications",value:function(e){this._uncContainer.handleMessageFromInterface("GetNotifications",e)}},{key:"PostNotifications",value:function(e){this._uncContainer.handleMessageFromInterface("PostNotifications",e)}},{key:"UpdateNotifications",value:function(e){this._uncContainer.handleMessageFromInterface("UpdateNotifications",e)}},{key:"UpdateNotificationContent",value:function(e){this._uncContainer.handleMessageFromInterface("UpdateNotificationContent",e)}},{key:"UpdateUserProfile",value:function(e){this._uncContainer.handleMessageFromInterface("UpdateUserProfile",e)}},{key:"ClearBadge",value:function(e){this._uncContainer.handleMessageFromInterface("ClearBadge",e)}},{key:"UpdateDeviceID",value:function(e){this._uncContainer.handleMessageFromInterface("UpdateDeviceID",e)}},{key:"UpdateAnalyticsConfig",value:function(e){this._uncContainer.handleMessageFromInterface("UpdateAnalyticsConfig",e)}},{key:"ShowNotificationWidget",value:function(e){this._uncContainer.handleMessageFromInterface("ShowNotificationWidget",e)}},{key:"HideNotificationWidget",value:function(e){this._uncContainer.handleMessageFromInterface("HideNotificationWidget",e)}},{key:"updateTheme",value:function(e){this._uncContainer.handleMessageFromInterface("UpdateTheme",e)}},{key:"cleanUp",value:function(e){this._uncContainer.handleMessageFromInterface("cleanUp",e)}},{key:"updateContext",value:function(e){console.log("UNCEngine: updateContext called "),this.initializeUNC(e)}},{key:"HandleOfflineToOnline",value:function(){this._uncContainer.handleMessageFromInterface("HandleOfflineToOnline")}},{key:"AddNotification",value:function(e){this._uncContainer.handleMessageFromInterface("AddNotification",e)}}]),e}();function ad(e){if(e&&e.applicationContext&&"object"===zf(e.applicationContext)){ie.debug("UNCEngine: Initializing UNCEngine context: ",e),this._ccxCore||(this._ccxCore=new F),this._uncContainer||(this._uncContainer=new id),this._ccxCore.initialize({hostObject:function(e){ie.warn("UNCEngine: UNC: Message received for core loader (host process), message object: ",e)}});var t={targetType:"JSCore",message:"RegisterModule",data:{id:"UNCContainer",moduleObject:this._uncContainer,initData:e}};this._ccxCore.handleMessage(t)}}}(),UNC=i}();