!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){"use strict";(function(e){function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r;n.d(t,"a",(function(){return W})),n.d(t,"b",(function(){return H})),n.d(t,"c",(function(){return F})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return j}));var s,a,l,c={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},u="GUEST",d="MEMBER",h=0,p=1,m=2,f=(i(r={},u,"li_gc"),i(r,d,"li_mc"),function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var s in o(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},c)t[s]=t[s]||h,t[s]!==h&&(this.consentAvailable=!0),this.optedInConsentMap[s]=t[s]===p||t[s]===h&&r===p});s=[c.ADVERTISING,c.ANALYTICS_AND_RESEARCH,c.FUNCTIONAL],a=[h,p,m,h],l=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";"));window.encodeURIComponent;function g(e){let t=e.querySelector('meta[name="pageKey"]');return t?t.content+"_jsbeacon":""}function _(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function E(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function v(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function y(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}var b=Object.freeze({__proto__:null,getPageKey:g,getPageTag:_,getLocale:E,getDomain:v,trimDoubleQuotes:y});const T={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"};function w(e,t){if(!e)return null;let n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e&&!n.call(e,t);)e=e.parentElement;return e}function O(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}function S(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function N(e){const t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,o=window.innerWidth||document.documentElement.clientWidth,i=t.top<=n&&t.top+t.height>=0,r=t.left<=o&&t.left+t.width>=0;return i&&r}function I({scrollTop:e=scrollY,clientHeight:t=window.innerHeight,scrollHeight:n=document.body.scrollHeight}={},o=0){return e>=n-(t+t*o)}function L(e,t,n){const o=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return o&&(n?o[2]:decodeURIComponent(o[2]))}function C(e,t,n,o){if(!e||!t)throw new Error("Required param of addQueryParam missing: url = ".concat(e,",  key = ").concat(t));t=encodeURIComponent(t),n=encodeURIComponent(n);const i=L(e,t,!0);if(i)return o?e.replace(i,n):e;{const o=e.indexOf("?");let[i,r]=e.split("#"),s="&";return o<0?s="?":o===e.length-1&&(s=""),r&&(r="#".concat(r)),"".concat(i).concat(s).concat(t,"=").concat(n).concat(r||"")}}function k(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function.");let o;return(...i)=>{const r=n&&!o;clearTimeout(o),o=setTimeout(()=>{o=null,n||e.apply(this,i)},t),r&&e.apply(this,i)}}function A(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function P(e,t,n={}){const o=document.createEvent("CustomEvent");o.initCustomEvent(t,!0,!0,n),e.dispatchEvent(o)}function R(){let e,t;const n=new Promise((n,o)=>{e=n,t=o});return n.resolve=e,n.reject=t,n}var F=Object.freeze({__proto__:null,closest:w,onload:O,makeArray:S,outerWidth:function(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=(parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0),t},elementInViewport:N,hasElementScrolledToThreshold:I,getQueryParam:L,addTrackingCode:function(e,t){return C(e,"trk",t)},addQueryParam:C,debounce:k,getCookie:A,dispatchCustomEvent:P,getDeferredPromise:R});['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([disabled]):not([tabindex^="-"]):not([type="hidden"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','[tabindex]:not([tabindex^="-"]):not([disabled])'].join(",");".".concat("collapsible-dropdown","__list"),".".concat("collapsible-dropdown","__button");function j(e,{method:t="GET",headers:n={},sendCookies:o=!0,skipCsrfToken:i=!1,postData:r}={}){return new Promise((s,a)=>{const l=new XMLHttpRequest;if(l.addEventListener("load",(function(){if(l.status>=200&&l.status<300||304===l.status)s({status:l.status,responseText:l.responseText});else{const n=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(l.status));n.response={status:l.status,responseText:l.responseText},a(n)}})),l.addEventListener("error",(function(e){a(e)})),l.open(t,e,!0),l.withCredentials=o,Object.keys(n).forEach(e=>{l.setRequestHeader(e,n[e])}),!i){const e=A("JSESSIONID");e&&l.setRequestHeader("Csrf-Token",y(e))}l.send(r)})}const M=".".concat("language-selector__link");"".concat(M,"--selected");var U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};parseInt;var x="object"==typeof U&&U&&U.Object===Object&&U,D="object"==typeof self&&self&&self.Object===Object&&self;x||D||Function("return this")(),Object.prototype.toString,Math.max,Math.min;"".concat(".member-nav-menu","__item-link"),"".concat(".member-nav-menu","__button");new RegExp("^(?:https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])");"".concat("tab-toggle","--active");const G={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(G).map(e=>G[e]);const J={};function H(e){const t=document.getElementById(e);if(!t&&void 0!==J[e])return J[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),J[e]=null,J[e];try{const n=t.firstChild;n.nodeType===Node.COMMENT_NODE?J[e]=JSON.parse(n.nodeValue):(console.warn("Error retrieving content with id: ".concat(e,". Use embedJson helper to embed this content")),J[e]=null)}catch(t){console.warn("Error fetching embedded content with id: ".concat(e)),J[e]=null}return t.parentNode.removeChild(t),J[e]}const q=["binlar","ask\\ jeeves","mozilla\\/4\\.0\\ \\(compatible\\;\\ msie\\ 6\\.0\\;\\ windows\\ nt\\ 5\\.1\\;1813\\)","companydatatree","genieo","microsoft\\+scheduled\\+cache\\+content\\+download\\+service","liferea","superfeedr","ez\\ publish\\ link\\ validator","htmlparser","argclrint","linkwalker","webtool","ask\\+jeeves","stackrambler","paros","^fdm\\+3\\.x","ms\\ search","indy\\+library","seznam","sitevigil","intergator","freedom(?!from)","google\\+page\\+speed\\+insights","znajdzfoto\\/image","riddler\\.io","^java\\/","twiceler","httpunit","ktxn","webcopier","mna\\+digital\\+circonus\\+check","stuff(?!nz)","updatepatrol","feedburner","hp\\+sitescope","crawler","gigablastopensource\\/","rpt\\-http","^fdm\\ 3\\.x","libwww\\-perl","((?=pital)|ca(?=pital))pita","bingpreview","oia\\.owa","^ahc\\/","thunderstone","microsoft\\ bits","alertsite","^python\\-requests\\/","dts\\ agent","tangjiutao","^inmon","linkscan","alexa\\ site\\ audit","webtrends(?!clientlibrary)","chkd","joedog","daumoa","typhoeus","loadimpactpageanalyzer","google\\ news","coldfusion","mna\\ digital\\ circonus\\ check","alexa\\+site\\+audit","getright","appengine","(?=crawler)crawl","ibot(?!ta)","jobo","python\\-httplib","powermarks","site24x7","proximic","yahoo\\+pipes","((?=aporter)|oper(?=aportable))aport","web\\+downloader","check\\_http","grabber","topsy\\.com\\/butterfly\\/","harvest","^inagist\\+url\\+resolver","fast","crescent(?!\\ build|\\+build)","sohu(?!ennews|video|news)","favorg","bloglines","fetch(?!tv)","wapt","microsoft\\+url\\+control","urchin","ning\\/1\\.0","pluck","google\\+news","spider","\\(compatible\\;\\+optimizer\\)","moreover\\/5\\.1","js\\-kit","server\\ density\\ external\\ llama","facebookexternalhit","ultraseek","catchpoint","yandex(?!\\ browser|\\+browser|mail)","echo(?!arena|fon|star)","^worldwatch\\/","combine(?!d)","winhttprequest","ez\\+publish\\+link\\+validator","jakarta","^webnotifier\\/","webmetrics","teoma","nerdbynature","ms\\+frontpage","nielsen","sucker","engagebdr","yahoofeedseeker","dts\\+agent","googleapps","holmes","plumtree","www\\-mechanize","google\\-hoteladsverifier","pingdom","drupal","sina\\_weibo","google\\ page\\ speed\\ insights","lisa","w3c\\_validator","^scan","yeti","snoopy","khte","trovit","atomz","httpcomponents","ms\\+search","google\\-http\\-java\\-client","spi\\_der","bubing","websitepulse","microsoft\\+bits","http\\_request2","ieautodiscovery","siteimprove","curl(?!ings)","go\\+1\\.1\\+package\\+http","^crowsnest\\/","email\\ exractor","utorrent","yahoocachesystem","shopwiki","justview","googlesecurityscanner","msnptc","rkg\\+url\\+verifier","monitor","bitvouseragent","((?=wormgame))worm","talktalk","help\\.coccoc\\.com","yahoo\\ pipes","heritrix","nutch","argus","kulturarw3","checkurl","universalsearch","amazon\\ route\\ 53\\ health\\ check\\ service","slurp","mozilla\\/5\\.0\\ \\(compatible\\;\\ msie\\ 5\\.0\\)","ezooms","kimengi\\/nineconnections\\.com","applesyndication","python\\-urllib","internal\\+zero\\-knowledge\\+agent","system\\+center\\+operations\\+manager","riverglassscanner","imgsizer","changedetection","nutscrape","feedzilla","contype","^lwp","\\(compatible\\;\\ optimizer\\)","infolink","outbrain","^prerender","admantx","^inagist\\ url\\ resolver","amazon\\+route\\+53\\+health\\+check\\+service","neustar","a6\\-indexer","comodo\\+ssl\\+checker","linkchecker","viglink","patric","newsnow","wasalive","scrapy","(?=gruber)grub","ruxitsynthetic","rkg\\ url\\ verifier","ocelli","webcapture","^kraken\\/","t\\-h\\-u\\-n\\-d\\-e\\-r\\-s\\-t\\-o\\-n\\-e","spider(?!solitaire)","isearch","hp\\ sitescope","maxamine","\\(simulated\\_by\\_webserver\\_stress\\_tool\\)","((?=obotics)|ther(?=obotfree))obot","yacy","twibble\\.io","google\\+wireless\\+transcoder","wget","internal\\ zero\\-knowledge\\ agent","google\\ wireless\\ transcoder","xenu","yahooseeker","advanced\\ email\\ extractor","feed43","ptst","reconnoiter","go\\ 1\\.1\\ package\\ http","advanced\\+email\\+extractor","linkdex","panscient\\.com","webcheck","linktiger","scooter","flipboard\\.com\\/browserproxy","evidon","twisted\\ pagegetter","cosmos","adbeat","sherlock","web\\ downloader","cookiereports","siteexplorer","miva","twisted\\+pagegetter","mfc\\_tear\\_sample","indy\\ library","b2w(?!tenisnew)","orangebot(?!swana)","lockss\\+cache","mozilla\\/4\\.0\\+\\(compatible\\;\\+msie\\+6\\.0\\;\\+windows\\+nt\\+5\\.1\\;1813\\)","yahooexternalcache","apache\\-httpclient\\/4\\.","archive\\.org","wesee\\:search","hiscan","ms\\ frontpage","tagscanner","google\\ web\\ preview","special\\_archiver","d24y\\-aegis","scoutjet","larbin","adsense\\-snapshot\\-google","keynote","skypeuripreview","clickajob","download\\+ninja","internet\\ ninja","^ltx71","ukonline","eventmachine\\ httpclient","nomad","mediapartners","twikle","microsoft\\ scheduled\\ cache\\ content\\ download\\ service","internet\\+ninja","scanalert","metauri","agentname","adr\\)","squider","isilo","teleport","automationtest","bordermanager","linklint","bot","templeton","rssreader","ichiro","(?=dialer\\-mobileapp)dialer","atomic\\_email\\_hunter","google\\+web\\+preview","longurl\\+api","longurl\\ api","internetseer","server\\+density\\+external\\+llama","topix","iopus","download\\ ninja","mozilla\\/5\\.0\\+\\(compatible\\;\\+msie\\+5\\.0\\)","europarchive","avantgo","flamingo\\_searchengine","lockss\\ cache","jobrapido","wesee\\:ads\\/","frontier","newspaper\\/0\\.0\\.","apachebench","flamingosearch","lydia","microsoft\\ url\\ control","phantomjs","system\\ center\\ operations\\ manager","^econtext\\/","akamai","cfschedule","searchme\\.com\\/support\\/","fortimail","comodo\\ ssl\\ checker","gomezagent","sitecon","webauto","golem","swcd","spundge\\/0\\.1","findlinks","^sjn","yandex","ia\\_archive","vagabondo","watchmouse","simplepie","1job","goldfire"].join("|");new RegExp(q,"i");const{ENTER:B,ESCAPE:z}=T;!function(e){const t=new RegExp("<(?!/?(?:"+e.allowedTags+")(?:[ \t\r\n]*/?>|[ \t\r\n]+(?:(?:(?:"+e.allowedAttributes+")(?:=([\"'])[^'\"<>]*\\1)?|(?:"+e.allowedURLAttributes+")=([\"'])(?:(?:"+e.allowedURLSchemes+")(?::|&#(?:58|x3a);)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\2)[ \t\r\n]*)+/?>))","i")}({allowedTags:"a|abbr|address|area|article|aside|audio|b|bdi|bdo|big|blockquote|br|button|center|cite|code|datalist|dd|del|details|dfn|div|dl|dt|em|fieldset|figcaption|figure|font|footer|h[1-6]|header|hgroup|hr|i|img|ins|kbd|label|legend|li|map|mark|marquee|nav|nobr|ol|p|pre|q|rp|rt|ruby|s|samp|section|small|source|span|strike|strong|sub|sup|table|tbody|td|tfoot|th|thead|time|tr|u|ul|var|video|wbr",allowedAttributes:"alt|aria-[a-z0-9_\\-]+|border|caption|checked|class|colgroup|color|cols|colspan|controls|coords|data-[a-z0-9_\\-]+|dir|disabled|height|hidden|hreflang|id|label|loop|marginheight|marginwidth|maxlength|method|multiple|name|preload|readonly|rel|required|reversed|role|rows|rowspan|spellcheck|tabindex|target|title|type|usemap|width|clear|headers|ismap|lang|start|datetime|accept|max|min|placeholder|size|step",allowedURLAttributes:"href|src",allowedURLSchemes:"https?|ftp|mailto"});class W{constructor(e,{actionButtonClassName:t="promo__action",dismissButtonClassName:n="promo__dismiss",lockScreenClassName:o="no-scroll",startCoolOffAfterImpression:i=!1}={}){if(!e)throw Error("An element must be provided to apptivation promo");this.promo=e,this.actionBtn=this.promo.querySelector(".".concat(t)),this.dismissBtn=this.promo.querySelector(".".concat(n)),this.overlay=this.promo.querySelector(".".concat("apptivation-promo__overlay")),this.containsOverlay=!!this.overlay,this.lockScreenClassName=o,this.clickHandler=this._dismissPromo.bind(this),this.actionBtn.addEventListener("click",this.clickHandler),this.dismissBtn.addEventListener("click",this.clickHandler);const r="true"===this.promo.dataset.enableAppDetection;this._initPromise=this._getInitializationParams(e,r),this._initPromise.then(({cooloffInMinutes:e,impressionsBeforeDisplay:t})=>{if(this.cooloffInMinutes=e,this.coolOffEnabled=this.cooloffInMinutes>0,this.impressionsBeforeDisplay=t,this.containsOverlay&&this.overlay.addEventListener("click",this.clickHandler),!this._hasMetImpressionThreshold(this.impressionsBeforeDisplay))return;let n=!this.coolOffEnabled;this.coolOffEnabled&&(n=this._hasCoolOffExpired(i),n&&this._setCoolOfStart("global:impression")),this._toggleShowPromo(n)})}_getInitializationParams(e,t){const n=this._getSanitizedDatasetNumber(e.dataset,"cooloffInMinutes"),o=this._getSanitizedDatasetNumber(e.dataset,"impressionsBeforeDisplay");return new Promise(e=>{t?window.appDetection.then(t=>{const i=t.find(e=>"com.linkedin.android"===e.id);e(i?{cooloffInMinutes:0,impressionsBeforeDisplay:0}:{cooloffInMinutes:n,impressionsBeforeDisplay:o})}).catch(()=>{e({cooloffInMinutes:n,impressionsBeforeDisplay:o})}):e({cooloffInMinutes:n,impressionsBeforeDisplay:o})})}isVisible(){return this._initPromise.then(()=>!this.promo.classList.contains("apptivation-promo--hidden"))}_getSanitizedDatasetNumber(e,t){const n=e[t]&&e[t].replace(/\D/g,""),o=parseInt(n,10);return Number.isNaN(o)?0:o}_hasCoolOffExpired(e){this.cooloffStartTimestampMap=this._getCoolOfStartMap();const t=e?"global:impression":"global:dismiss",n=60*this.cooloffInMinutes*1e3,o=this.cooloffStartTimestampMap[t],i=o?parseInt(o,10):0;return Date.now()-i>n}_hasMetImpressionThreshold(e){if(e<2)return!0;return!(function(e){if(!e)throw"impressionKey is required";return(JSON.parse(localStorage.getItem("guest-ui-lib:global-impression-count-map"))||{})[e]||0}("apptivation-promo")+1<e)||(function(e,t=1){if(!e)throw"impressionKey is required";const n=JSON.parse(localStorage.getItem("guest-ui-lib:global-impression-count-map"))||{},o=n[e]||0;n[e]=o+t,localStorage.setItem("guest-ui-lib:global-impression-count-map",JSON.stringify(n)),n[e]}("apptivation-promo"),!1)}_dismissPromo(e){e.preventDefault(),this.actionBtn.removeEventListener("click",this.clickHandler),this.dismissBtn.removeEventListener("click",this.clickHandler);const{target:t}=e,n="A"===t.tagName,o=t.getAttribute("href");this._toggleShowPromo(!1),this.coolOffEnabled&&this._setCoolOfStart("global:dismiss"),n&&location.assign(o)}_toggleShowPromo(e){this.promo.classList.toggle("apptivation-promo--hidden",!e),e&&this.promo.focus(),this.containsOverlay&&document.body.classList.toggle(this.lockScreenClassName,e)}_getCoolOfStartMap(){return JSON.parse(localStorage.getItem("guest-ui-lib:apptivation-promo-cooloff-start-timestamp-map"))||{}}_setCoolOfStart(e){this.cooloffStartTimestampMap[e]=Date.now(),localStorage.setItem("guest-ui-lib:apptivation-promo-cooloff-start-timestamp-map",JSON.stringify(this.cooloffStartTimestampMap))}}function V(){const e=(e="")=>!e||0===e.trim().length;return e.errorMessageSuffix="error_empty",e}function $(e){const t=(t="")=>t.length<e;return t.errorMessageSuffix="error_too_short",t}function K(e){const t=(t="")=>t.length>e;return t.errorMessageSuffix="error_too_long",t}V(),$(3),K(128),V(),$(6),K(400);var Q=window||e;Q.utag_data||(Q.utag_data={});const Y="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;Q.utag_cfg_ovrd=Q.utag_cfg_ovrd||{},Q.utag_cfg_ovrd.noview=!0,Q.utag_cfg_ovrd.nocookie=!0;Y&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(Q.navigator.userAgent);!function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}const e=function(){this.listeners={}};e.prototype.listeners=null,e.prototype.addEventListener=function(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.removeEventListener=function(e,t){if(e in this.listeners)for(var n=this.listeners[e],o=0,i=n.length;o<i;o++)if(n[o]===t)return void n.splice(o,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),n=0,o=t.length;n<o;n++)t[n].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();const Z={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},X={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:ee,GOOGLE_USER_FETCHED:te,INITIALIZED:ne}=Z,{INITIALIZATION:oe,AUTHENTICATION:ie}=X;EventTarget;const re=Z,se=X,{GOOGLE_USER_FETCHED:ae,GOOGLE_ERROR:le,INITIALIZED:ce}=re,{INITIALIZATION:ue}=se;".".concat("show-more-less","__list"),".".concat("show-more-less","__more-button"),".".concat("show-more-less","__less-button"),"".concat("show-more-less","__list--hide-after"),"".concat("show-more-less","__button--hide");var de;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes"}(de||(de={}));new Set(Object.values(de));Error;"".concat("filter-dropdown","--open")}).call(this,n(1))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t);var o=n(0),i="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",r=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",s=["b","del","em","i","s","strong","sub","sup"],a=s.concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","big","blockquote","br","button","center","cite","code","datalist","dd","details","dfn","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3","h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map","mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section","small","source","span","strike","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"]),l=[i,"alt|checked|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding"].join("|");function c(){}function u(e,t){if(t=t||"log",window&&window.jet&&"error"===t.toLowerCase())try{throw new Error(e)}catch(e){try{window.jet.error(e)}catch(e){}}"undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)}var d,h,p=(h=/[&<>"'\u0000\\=]/g,d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(h,(function(e){return d[e]}))}),m=function(){var e,t,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};e=document.createElement("div");var o={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};return t="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(i){return null==i?null:(i+"").replace(n,(function(n,i,s,a){return i?(l=i,o.hasOwnProperty(l)?o[l]:(e.innerHTML="&"+l+";",c=e[r],o[l]=c,c)):s||a?t(parseInt(s||a,s?16:10)||65533):"�";var l,c}))}}();var f=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function g(e){return/[<&]/.test(e)}var _,E=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var n=0,o=e.length;n<o;n++)t(e[n],n)};function v(e){e=f(e)?e:[e];var t,n,o,i=0,r="<(?!/?";return r+="(?:",E(e,(function(e,s){t=e.tags||a,n=e.attrs||l,o=e.checkUrlAttrs||!1,0!==s&&(r+="|"),r+="(?:"+t.join("|")+")",r+="(?:",r+="[ \t\r\n]*",r+="|[ \t\r\n]+",r+="(?:(?:",r+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++i+")?",o&&(r+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++i),r+=")[ \t\r\n]*)+",r+=")"})),r+=")",r+="/?>)",new RegExp(r,"i")}function y(e){return v({tags:e=e||a,checkUrlAttrs:!0})}function b(e,t){var n=(t=t||{}).allowTags,o=!1!==t.hasCustomElementMarkup;return n?!y(n).test(e):o?!b.R_UNSAFE_CUSTOM_ELEMENT.test(e):!b.R_UNSAFE_HTML.test(e)}function T(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function w(e,t,n){if(null==e)return null;e=e.toString();var o=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,(function(e,o){var i,r=e;if(n.hasOwnProperty(o))return n[o];if(t.hasOwnProperty(o)){if(!((i="string"==typeof(r=t[o]))||r instanceof c||"number"==typeof r))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");r=i?p(r):r.toString()}return n[o]=r,r}))}(e,t):e,i=e;return g(o)&&!b(o,n)&&(o=T(o),u("Content contains non-whitelisted tags or attributes:\nContent: "+i,"error")),o}function O(e,t){for(var n=+t.length,o=0,i=e.length;o<n;o++)e[i++]=t[o];return e.length=i,e}b.R_UNSAFE_HTML=y(),b.R_UNSAFE_CUSTOM_ELEMENT=v([{tags:a,checkUrlAttrs:!0},{tags:[(_={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[i,_.attrs].join("|"),checkUrlAttrs:!1}]);var S={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};S.optgroup=S.option,S.tbody=S.tfoot=S.colgroup=S.caption=S.thead,S.th=S.td;var N=/<([\w:]+)/;function I(e,t){var n,o,i,r,s,a,l,c=t.createDocumentFragment(),u=[];for(s=0,l=e.length;s<l;s++)if((r=e[s])||0===r)if("string"==typeof r){for(i=i||c.appendChild(t.createElement("div")),n=(N.exec(r)||["",""])[1].toLowerCase(),k(i,(o=S[n]||S._default)[1]+r+o[2]),a=o[0];a--;)i.lastChild&&i.lastChild.nodeType===Node.ELEMENT_NODE&&(i=i.lastChild);O(u,i.childNodes),(i=c.firstChild).textContent=""}else O(u,r.nodeType?[r]:r);for(c.textContent="",r=u[s=0];r;)c.appendChild(r),r=u[++s];return c}var L=w,C=w;function k(e,t,n){var o=w(t,n);return g(o)?e.innerHTML=o:e[r]=o,o}function A(e,t){if(!(this instanceof A))return new A(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}A.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new c,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(b(e,this._options)||(n=e,e=T(e),u("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});const P=/ /g,R=/[\s\u0000<>"]|%00/,F=/\\/,j=/([.]|%2e){2}/i;let M=new RegExp("^(?:https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])");function U(e){let t;if("string"!=typeof e)return u("jSecure Warning: url must be a string","error"),"invalid://";if(t=e.trim(),t.indexOf(" ")>-1&&(u("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(P,"+")),!M.test(t))return u("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(R.test(t))return u("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";let n=t.split("?")[0];return F.test(n)||j.test(n)||j.test(decodeURI(n))?(u("jSecure Error: malicious data found in url path: "+n,"error"),"invalid://"):e}const x={redirect(e){window&&(window.location.href=e)}};var D={ALLOWED_TAGS:a,FORMATTING_TAGS:s,htmlEncode:p,htmlUnencode:m,log:u,mk:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];let i,r="",s=n.length;return e&&e.forEach((function(e,t){r+=e,t<s&&(i=n[t],r+=i instanceof A?i:p(i))})),C(r)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=I([e],t);else{if(!f(e))return e;n=I(e,t)}return O([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:L,reEncode:function(e){return p(m(e))},_redirector:x,redirect:function(e){const t=U(e);t===e&&x.redirect(t)},sanitizeHTML:C,sanitizeUrl:U,setElementContent:k,text:function(e){return u("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),p(e)},unsafe:function(e){return e},UnsafeString:A};function G(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t?q(e):H(e)}function J(e){e.querySelectorAll(".inline-alert").forEach(e=>e.parentNode.removeChild(e))}function H(e){const t=e.querySelector(".alert");t&&t.classList.add("hidden")}function q(e){const t=e.nextElementSibling;t&&t.classList.contains("artdeco-inline-feedback")&&t.parentNode.removeChild(t)}function B(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.classList.remove("error"),t&&e.classList.remove("error--is-inline")}const z=/\!|\@|\#|\$|\%|\^|\&|\*|\+|\=|\||<|\>|\?|\:|\;/,W=/(.)\1{3}/,V=/linkedin/i,$=/\d\d/,K=new RegExp("([a-zA-Z0-9]+://)?([a-zA-Z0-9_]+:[a-zA-Z0-9_]+@)?([a-zA-Z0-9.-]+\\.[A-Za-z]{2,4})(:[0-9]+)?(/.*)?"),Q=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,Y=/^[\u4E00-\u9FFF|\u3400-\u4DBF|\uF900-\uFAFF]*$/,Z=/^[ぁ-ゔゞ゛゜ー]*$/,X=/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/,ee=e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length<=e};return t.errorMessagePrefix="i18n_tooLong_",t},te=e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length>=e};return t.errorMessagePrefix="i18n_tooShort_",t},ne=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!$.test(e)};ne.errorMessagePrefix="i18n_noConsecutiveDigits_";const oe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!z.test(e)};oe.errorMessagePrefix="i18n_noForbiddenCharacters_";const ie=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!W.test(e)};ie.errorMessagePrefix="i18n_noFourConsecutiveDuplicates_";const re=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!V.test(e)};re.errorMessagePrefix="i18n_noLinkedIn_";const se=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!K.test(e)};se.errorMessagePrefix="i18n_noUrl_";const ae=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Y.test(e)};ae.errorMessagePrefix="i18n_onlyChinese_";const le=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Z.test(e)};le.errorMessagePrefix="i18n_onlyPhonetic_";const ce=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==e.trim()};ce.errorMessagePrefix="i18n_required_";const ue=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Q.test(e)};ue.errorMessagePrefix="i18n_invalidFormat_";const de=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return X.test(e)};de.errorMessagePrefix="i18n_invalidFormat_";const he=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Q.test(e)||X.test(e)};he.errorMessagePrefix="i18n_invalidFormat_";const pe=[ee(50),oe,ne,ie,re,se],me=[ce].concat(pe),fe=[le,ee(50),ie],ge={"first-name":me,"last-name":me,"phonetic-first-name":fe,"phonetic-last-name":fe,"real-name":[ce,ae,ee(4),te(2)],"email-or-phone":[ce,ee(128),he],"email-address":[ce,ee(128),ue],"optional-email-address":[ee(128),(e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""===t||e(t)};return t.errorMessagePrefix=e.errorMessagePrefix,t})(ue)],"phone-number":[ce,de],password:[ce,te(6),ee(200)]},_e={button:!0,reset:!0,submit:!0,checkbox:!0},Ee=e=>e.type&&!_e[e.type],ve={"email-or-phone":"emailOrPhoneNumber","optional-email-address":"emailAddress","phone-number":"phoneNumber","email-address":"emailAddress",password:"password","first-name":"firstName","last-name":"lastName","phonetic-first-name":"phoneticFirstName","phonetic-last-name":"phoneticLastName"};function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};let t=e.name,n=e.value;const o=ge[t];if(!o)throw new Error("No validation rules for element named "+t);return o.reduce((e,o)=>(o(n)||e.push(o.errorMessagePrefix+t),e),[])}const be=/^http[s]?:\/\/(qprod\.)?www\.linkedin(?:-ei)?\.(com|cn)$/,Te={FIRST_NAME_INPUT:"#first-name",FIRST_NAME_LABEL:'[for="first-name"]',LAST_NAME_INPUT:"#last-name",LAST_NAME_LABEL:'[for="last-name"]',PHONETIC_FIRST_NAME_INPUT:"#phonetic-first-name",PHONETIC_LAST_NAME_INPUT:"#phonetic-last-name",EMAIL_INPUT:"#email-or-phone",EMAIL_LABEL:'[for="email-or-phone"]',PROFILE_CARD:".profile-card"},we={PHOTO:".profile-card__photo",NAME:".profile-card__info-name",NOT_YOU:".profile-card__not-you",EMAIL:".profile-card__info-email",EDIT_ICON:".profile-card__edit-icon",EDIT_PHOTO:{CANCEL_ICON:".profile-card__edit-photo-cancel-icon",MODAL:".profile-card__edit-photo-modal",TEXT:".profile-card__edit-photo-text"}},Oe="hidden",Se="src",Ne="required",Ie="FACEBOOK",Le="GOOGLE",Ce="WECHAT",ke="PageViewEvent",Ae="EntityActivityEvent",Pe="ControlInteractionEvent",Re="FOCUS",Fe="SHORT_PRESS",je="click",Me="view",Ue={ERROR_ALERT:"error-alert",ERROR_ALERT_DISMISS_BUTTON:"error-alert-dismiss-button",GOOGLE_ONE_TAP_SIGNUP_BUTTON:"google-one-tap-signup-button",GOOGLE_ONE_TAP_CLOSE_BUTTON:"google-one-tap-close-button",JOIN_WITH_GOOGLE_BUTTON:"join-with-google-button",JOIN_WITH_FACEBOOK_BUTTON:"join-with-facebook-button",AGREE_AND_JOIN_BUTTON:"agree-and-join-button",CONTINUE_BUTTON:"continue-button",CHALLENGE_DIALOG:"challenge-dialog",CHALLENGE_SOLVED:"challenge-solved",CHALLENGE_FAILED:"challenge-failed",PROFILE_CARD_NOT_YOU_BUTTON:"profile-card-not-you-button",DELETE_PHOTO_BUTTON:"delete-photo-button"},xe={GOOLE_ONE_TAP:{GOOGLE_ONE_TAP_SIGNUP_IGNORED:"google-one-tap-signup-ignored",GOOGLE_ONE_TAP_IMPRESSION:"google-one-tap-impression-success",GOOGLE_ONE_TAP_NO_ACCOUNT:"google-one-tap-no-account",GOOGLE_ONE_TAP_ERROR:"google-one-tap-error",GOOGLE_ONE_TAP_REQUEST_FAIL_ERROR:"google-one-tap-request-fail-error",GOOGLE_ONE_TAP_ILLEGAL_REQUEST_ERROR:"google-one-tap-illegal-request-error",GOOGLE_ONE_TAP_INITIALIZATION_ERROR:"google-one-tap-initialization-error",GOOGLE_ONE_TAP_CONFIGURATION_ERROR:"google-one-tap-configuration-error"},THIRD_PARTY_JOIN_BUTTON:{FACEBOOK_IMPRESSION:"facebook-impression",FACEBOOK_ERROR:"facebook-error",GOOGLE_IMPRESSION:"google-impression",GOOGLE_ERROR:"google-error",GAAP_ERROR:"gaap-error"},JOIN_REQUEST:{JOIN_REQUEST_SUCCESS:"request-success",JOIN_REQUEST_FAILURE:"request-failure",JOIN_REQUEST_FAILURE_WITH_GOOGLE_ONE_TAP:"request-failure-with-google-one-tap",JOIN_REQUEST_FAILURE_WITH_FACEBOOK:"request-failure-with-facebook",JOIN_REQUEST_FAILURE_WITH_GOOGLE:"request-failure-with-google"},ALERT:{VALIDATION_FAILURE_ALERT:"validation-failure-alert"}};function De(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const o=10,i=n===o;i||(window.tracking?window.tracking.then(n=>{n.fireTrackingEvent(e,t)}):window.setTimeout(()=>{De(e,t,n+1)},500))}function Ge(e,t){e.forEach(e=>{const n=t?e.target:e,i={header:{},pageType:"form",requestHeader:{interfaceLocale:o.d.getLocale(document)||null},trackingInfo:{clientTimestamp:Date.now(),pageTag:o.d.getPageTag(document)||null,source:"registration-ui-lib",formId:n.id}};De(ke,i),t&&t.unobserve(n)})}function Je(e){if(o.d.getPageKey(document)&&o.d.getPageKey)return`urn:li:control:${o.d.getPageKey(document)}-${e}`}function He(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!o.d.getPageKey(document)||!e.controlName)return;const t={header:{},requestHeader:{},controlUrn:Je(e.controlName),interactionType:e.interactionType||Re};De(Pe,t)}function qe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!o.d.getPageKey(document)||!e.trackingCode)return;const t={header:{},pageType:"form",requestHeader:{interfaceLocale:o.d.getLocale(document)||null},trackingCode:`${o.d.getPageKey(document)}-${e.trackingCode}`,activityType:e.activityType||je,pageKey:o.d.getPageKey(document),attributes:e.customData||{}};De(Ae,t)}function Be(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n?We(e,t):ze(e,t)}function ze(e,t){const n=e.querySelector(".alert");if(!n)throw new Error('showAlert has been called but no element exists that matches the selector ".alert"');const i=n.querySelector('p[class="alert-content"]');D.setElementContent(i,t||Object(o.b)("i18n_server_generic_error")),n.classList.remove("hidden"),He({controlName:Ue.ERROR_ALERT,interactionType:Fe})}function We(e,t){if(!Ee(e))throw new Error("you cannot show an alert for this type of element "+e.type);e.nextElementSibling&&e.nextElementSibling.classList.contains("artdeco-inline-feedback")?function(e,t){const n=e.querySelector(".artdeco-inline-feedback__message");D.setElementContent(n,t||Object(o.b)("i18n_server_generic_error"))}(e.nextElementSibling,t):function(e,t){e.insertAdjacentHTML("afterend",function(e){return`<div class="inline-alert artdeco-inline-feedback artdeco-inline-feedback--error" role="alert" tabindex="-1" aria-live="assertive">\n      <p class="artdeco-inline-feedback__message">\n        ${e}\n      </p>\n    </div>\n  `}(t))}(e,t)}function Ve(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.classList.add("error"),t&&e.classList.add("error--is-inline")}const $e=790,Ke=580,Qe="auth_popup",Ye=".third-party-join__container",Ze=".third-party-join__btn";class Xe{constructor(e){if(!e)throw new Error("No element passed in.");let t;switch(this.element=e,this.provider=Object(o.b)("dust-var-provider"),this.show(),this._setupGaapCallback(),this._attachEventListeners(),this.provider){case Ie:t=xe.THIRD_PARTY_JOIN_BUTTON.FACEBOOK_IMPRESSION;break;case Le:t=xe.THIRD_PARTY_JOIN_BUTTON.GOOGLE_IMPRESSION;break;case Ce:t=xe.THIRD_PARTY_JOIN_BUTTON.WECHAT_IMPRESSION}qe({trackingCode:t,activityType:Me})}onUserInfoFetch(){}onError(){}hide(){this.element.classList.add(Oe)}show(){this.element.classList.remove(Oe)}_setupGaapCallback(){window.thirdPartyCallback=(e,t)=>{if(this.gaapAuthWindow.close(),""!==t||0!==ye({name:"email-or-phone",value:e}).length)return this.onError(this.provider),qe({trackingCode:xe.THIRD_PARTY_JOIN_BUTTON.GAAP_ERROR,activityType:je,customData:{provider:this.provider,errorContent:t}}),Promise.reject(t);const n=function(e,t){return Object(o.e)(D.sanitizeUrl(`${Object(o.b)("dust-var-callbackUrl")}${e}?handle=${t}`)).then(e=>e.responseText)}(this.provider,e).then(t=>(this.element.classList.add(Oe),function(e,t){const n={id:t,phoneticFirstName:"",phoneticLastName:"",displayDigitalMediaAssetUrn:"",firstName:"",lastName:"",profilePictureUrl:""};if(!e)return n;return n.phoneticFirstName=e.phoneticFirstName,n.phoneticLastName=e.phoneticLastName,n.displayDigitalMediaAssetUrn=e.displayDigitalMediaAssetUrn,n.firstName=e.firstName,n.lastName=e.lastName,n.profilePictureUrl=e.profilePictureUrl,n}(t?JSON.parse(t):t,e))).catch(e=>{let t;switch(this.onError(this.provider),this.provider){case Ie:t=xe.THIRD_PARTY_JOIN_BUTTON.FACEBOOK_ERROR;break;case Le:t=xe.THIRD_PARTY_JOIN_BUTTON.GOOGLE_ERROR;break;case Ce:t=xe.THIRD_PARTY_JOIN_BUTTON.WECHAT_ERROR}throw qe({trackingCode:t,activityType:je,customData:{errorContent:e}}),e});return this.onUserInfoFetch(n),n}}_attachEventListeners(){this.element.querySelector(Ze).addEventListener("click",()=>{var e;let t;switch(this.gaapAuthWindow=(e=Object(o.b)("dust-var-authUrl"),window.open(D.sanitizeUrl(e),Qe,`width=${$e},height=${Ke}`)),this.provider){case Ie:t=Ue.JOIN_WITH_FACEBOOK_BUTTON;break;case Le:t=Ue.JOIN_WITH_GOOGLE_BUTTON;break;case Ce:t=Ue.JOIN_WITH_WECHAT_BUTTON}He({controlName:t,interactionType:Fe})})}}const et=new Set(["百里","淳于","第五","東方 ","东方","東閣 ","东阁","東郭 ","东郭","東門 ","东门","端木","獨孤 ","独孤","公孫 ","公孙","公羊","公冶","公西","毌丘","穀梁 ","谷梁","賀蘭 ","贺兰","赫連 ","赫连","賀若 ","贺若","皇甫","黄斯","呼延","兰向","令狐","甪里","閭丘 ","闾丘","万俟","慕容","納蘭 ","纳兰","南宮 ","南宫","歐陽 ","欧阳","沙吒","上官","申屠","司馬 ","司马","司徒","司空","司寇","太史","澹臺 ","澹台","拓跋","完顏 ","完颜","聞人 ","闻人","巫馬 ","巫马","夏侯","鮮于 ","鲜于","西門 ","西门","軒轅 ","轩辕","楊子 ","杨子","耶律","樂正 ","乐正","尉遲 ","尉迟","宇文","長孫 ","长孙","鍾離 ","钟离","諸葛 ","诸葛","祝融","子車 ","子车","左人"]);function tt(e){let t,n;switch(e.length){case 2:n=e.substring(0,1),t=e.substring(1);break;case 3:const o=e.substring(0,2);et.has(o)?(n=o,t=e.substring(2)):(n=e.substring(0,1),t=e.substring(1));break;case 4:n=e.substring(0,2),t=e.substring(2);break;default:throw new Error("Expected Real Name to be between 2-4 characters.",name)}return{firstName:t,lastName:n}}class nt{sendFingerprint(e,t,n){const o=this.getFingerprintData(),i=new XMLHttpRequest;o["x-f-uc"]=n,o.csrf_token=t,i.open("POST",e),i.setRequestHeader("Content-type","application/json"),i.send(JSON.stringify(o))}collectInitialFingerprint(e,t,n,o){setTimeout(()=>{this.sendFingerprint(e,t,n)},o)}collectFinalFingerprint(e,t,n){return()=>{if(navigator.sendBeacon&&"undefined"!=typeof FormData){let o=this.getFingerprintData();o.csrf_token=t;let i=new FormData;i.append("x-f-uc",n);for(let e in o)o.hasOwnProperty(e)&&i.append(e,o[e]);navigator.sendBeacon(e,i)}else this.sendFingerprint(e,t,n)}}getFingerprintData(){var e={};return"undefined"!=typeof Ubba_fetch&&(e=Ubba_fetch()),e}}var ot=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function it(){return Object(o.b)("dust-var-source")||null}function rt(){const e=Object(o.b)("dust-var-postOnboardingRedirectUrl");return e?{postOnboardingRedirectUrl:e}:null}function st(){const e=Object(o.b)("dust-var-invitationId"),t=Object(o.b)("dust-var-sharedKey");return e||t?{invitationId:e,sharedKey:t}:null}function at(){let e="default";const t=new nt;try{e=JSON.stringify(t.getFingerprintData())}catch(t){e="error while fetching the fingerprinting data : "+t}return e}function lt(e,t){return ot({},e,t)}var ct="delete me",ut="v=2&",dt={FIRST_AND_LAST_QUOTES:/^\"(.+)\"$/};class ht{constructor(){if(this.registrationUrl=Object(o.b)("registrationUrl"),!this.registrationUrl)throw new Error('Document missing embed with element ID === "registrationUrl"')}sendCreateAccountRequest(e){const t=e.emailOrPhoneNumber,n=e.emailAddress,i=e.phoneNumber;n||i||(t.includes("@")?e.emailAddress=t:e.phoneNumber=t),e.emailAddress&&(e.botDetectionInput=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now().toString();if(!e)throw new Error("emailAddress is a required field in botDetectionInput");const n=()=>Math.floor(9e8*Math.random())+1e8,o=`${n()}:${n()}:${n()}`;return{nonce:o,clientTimestampParamValue:t,clientOutput:"",jsVersion:"",email:e,requestId:`${e}:${o}`}}(e.emailAddress));const r={method:"POST",headers:{"Csrf-Token":this._getCsrfTokenFromBcookie(),Accept:"*/*","Content-Type":"application/json","X-NuxSupportsCp":"on"},sendCookies:!0,skipCsrfToken:!0,postData:JSON.stringify(e)};return Object(o.e)(this.registrationUrl,r).catch(e=>this._handleError(e)).then(e=>this._handleResponse(e))}_getCsrfTokenFromBcookie(){const e=(o.c.getCookie("bcookie")||"").trim();if(e!==ct)return e.replace(dt.FIRST_AND_LAST_QUOTES,"$1").replace(ut,"")}_handleError(e){if(e.response&&e.response.responseText)try{e.response.responseObj=JSON.parse(e.response.responseText)}catch(e){}throw e}_handleResponse(e){if(e.responseObj=JSON.parse(e.responseText),e.responseObj.challengeUrl){const t=new Error("Challenge Issued with Challenge URL: "+e.responseObj.challengeUrl);throw t.response=e,t}return e}}const pt=".challenge-dialog",mt=".challenge-dialog__close",ft=".challenge-dialog__iframe";class gt{constructor(e){if(!e)throw Error("Challenge URL is required");this.complete=!1,this.challengeDialogElem=document.querySelector(pt),this.challengeIframeElem=this.challengeDialogElem.querySelector(ft),this.challengeIframeElem.src=D.sanitizeUrl(e)}showChallenge(){return new Promise((e,t)=>{const n=this._handleDialogClose.bind(this,t);this._setupEventListeners(n=>{be.test(n.origin)&&n.data||t();const o=JSON.parse(n.data);if("CHALLENGE_SOLVED"===o.eventId)He({controlName:Ue.CHALLENGE_SOLVED,interactionType:Fe}),e(o.payload);else if("CHALLENGE_FAILED"===o.eventId)He({controlName:Ue.CHALLENGE_FAILED,interactionType:Fe}),t(o.payload);else if("FRAME_RESIZE"===o.eventId){if(document.querySelector(".challenge-dialog__modal-container")){const e=this.challengeIframeElem.contentDocument.body;this.challengeIframeElem.style.height=e.scrollHeight+"px"}}},n),this.challengeIframeElem.onload=()=>{this.challengeDialogElem.style.display="",this.challengeDialogElem.focus(),document.documentElement.style.overflow="hidden",He({controlName:Ue.CHALLENGE_DIALOG,interactionType:Re})}}).then(e=>(this._tearDownEventListeners(),this._cleanup(),e)).catch(e=>{throw this._tearDownEventListeners(),this._cleanup(),e})}_setupEventListeners(e,t){const n=this.challengeDialogElem.querySelector(mt);n.addEventListener("click",t),window.addEventListener("message",e,!1),this._tearDownEventListeners=()=>{n.removeEventListener("click",t),window.removeEventListener("message",e,!1)}}_tearDownEventListeners(){}_cleanup(){this.complete=!0,this.challengeIframeElem.onload=null,this.challengeDialogElem.style.display="none",this.challengeIframeElem.src="about:blank",document.documentElement.style.overflow=""}_handleDialogClose(e){this.complete||e("softFail")}_getCsrfTokenFromBcookie(){return(o.c.getCookie("bcookie")||"").trim().replace("v=2&","")}}var _t="validation-failed",Et="validation-succeeded",vt="account-creation-challenged",yt="account-creation-failed",bt="account-creation-succeeded",Tt="challenge-closed",wt="challenge-failed",Ot="challenge-succeeded",St="split-join-form-step-change",Nt="third-party-profile-card-toggled",It="global-error";function Lt(e,t){o.c.dispatchCustomEvent(e,St,{splitJoinStepNum:t})}function Ct(e,t){o.c.dispatchCustomEvent(e,It,{globalErrorMessage:t})}function kt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;const n=t.querySelectorAll(e);n.length&&Array.from(n).forEach(e=>e.classList.remove(Oe))}function At(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;const n=t.querySelectorAll(e);n.length&&Array.from(n).forEach(e=>e.classList.add(Oe))}function Pt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:document.body;const i=Rt(e,o);i&&i.setAttribute(t,n)}function Rt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;if(e)return t.querySelector(e);console.warn(`you attempted to get an element with a falsey selector: ${e}, this is probably a bug.`)}const Ft="join-form__form-input-container",jt="join-form__form-input-container--is-hidden",Mt="join-form__form-input-container--is-last-section";class Ut{constructor(e,t){if(!e)throw new Error("No element passed in.");this.elem=e,this.isNested=e.parentNode.classList.contains(Ft),this.requiredInputs=Array.from(e.querySelectorAll("input[required]")),this.elem.classList.add(`${Ft}--is-section-${t}`)}get isVisible(){return!this.elem.classList.contains(jt)}show(){this.elem.classList.remove(jt),this.requiredInputs.forEach(e=>e.setAttribute("required","required")),this.elem.querySelector("input").focus()}hide(){this.requiredInputs.forEach(e=>e.removeAttribute("required")),this.elem.classList.add(jt)}}class xt{constructor(e){this.currentSplitJoinSectionNum=0,this._joinFormElem=e,this.totalSplitJoinSections=this._joinFormElem.querySelectorAll("."+Ft).length;const t=this.totalSplitJoinSections>2,n=this._joinFormElem.querySelector(`.${Ft}:not(.${jt})`),o=t?this._joinFormElem.querySelector(`.${jt}:not(.${Mt})`):this._joinFormElem.querySelector("."+Mt),i=this._joinFormElem.querySelector("."+Mt);if(!n)throw new Error("Split join form must have a default visible section");if(!o)throw new Error("Split join form must have at least two sections");this._orderedSplitJoinSections=[new Ut(n,1),new Ut(o,2)],t&&this._orderedSplitJoinSections.push(new Ut(i,3)),this._orderedSplitJoinSections.forEach(e=>{e.elem.classList.contains(jt)&&e.requiredInputs.forEach(e=>{e.removeAttribute("required")})})}get sectionForCurrentStep(){return this._orderedSplitJoinSections[this.currentSplitJoinSectionNum]}get isLastStep(){return this.currentSplitJoinSectionNum+1===this.totalSplitJoinSections}get isFirstStep(){return 0===this.currentSplitJoinSectionNum}nextStep(){if(this.isLastStep)return;const e=this.sectionForCurrentStep;this.currentSplitJoinSectionNum+=1,this.sectionForCurrentStep.isNested&&this.sectionForCurrentStep.isVisible&&!this.isLastStep&&(this.currentSplitJoinSectionNum+=1);const t=this.sectionForCurrentStep;t.isNested||e.isNested?e.isNested&&this._hideNestedSectionParent(e):e.hide(),t.show(),Lt(this._joinFormElem,this.currentSplitJoinSectionNum)}prevStep(){if(this.isFirstStep)return;const e=this.sectionForCurrentStep;this.currentSplitJoinSectionNum-=1;const t=this.sectionForCurrentStep;e.isNested||t.isNested?t.isNested&&(e.hide(),this._showNestedSectionParent(t)):(e.hide(),t.show()),Lt(this._joinFormElem,this.currentSplitJoinSectionNum)}firstStep(){this.isFirstStep||(this.sectionForCurrentStep.isNested?this._hideNestedSectionParent(this.sectionForCurrentStep):this.sectionForCurrentStep.hide(),this.currentSplitJoinSectionNum=0,this.sectionForCurrentStep.isNested?this._showNestedSectionParent(this.sectionForCurrentStep):this.sectionForCurrentStep.show(),Lt(this._joinFormElem,this.currentSplitJoinSectionNum))}lastStep(){this.isLastStep||(this.sectionForCurrentStep.isNested?this._hideNestedSectionParent(this.sectionForCurrentStep):this.sectionForCurrentStep.hide(),this.currentSplitJoinSectionNum=this.totalSplitJoinSections-1,this.sectionForCurrentStep.show(),Lt(this._joinFormElem,this.currentSplitJoinSectionNum))}getSectionAtIndex(e){return this._orderedSplitJoinSections[e]}_hideNestedSectionParent(e){let t=e.elem;this._orderedSplitJoinSections.forEach(e=>{e.elem!==t&&e.elem.contains(t)&&e.hide()})}_showNestedSectionParent(e){let t=e.elem;this._orderedSplitJoinSections.forEach(e=>{e.elem!==t&&e.elem.contains(t)&&e.show()})}}const Dt=["userCanceled","operationCanceled"];class Gt{constructor(e){if(!e)throw new Error("No element passed in.");var t;this.joinForm=e,this.inputs=Array.from(this.joinForm.querySelectorAll("input")),this.inputNameToErrors={},this.registrationServerClient=new ht,this.isSplitJoinForm=Object(o.b)("dust-var-isSplitJoinForm"),this.isSmartLockEnabled="true"===Object(o.b)("dust-var-isSmartLockEnabled"),this.isMobile=Object(o.b)("dust-var-isMobile"),this.joinBtnProvider=Object(o.b)("dust-var-joinBtnProvider"),this.isInlineError=Object(o.b)("dust-var-isInlineError"),this.isSplitJoinForm&&(this.splitJoin=this._initSplitJoinForm()),this._attachEventListeners(),this._initThirdPartySignup(),t=[this.joinForm],o.c.onload(()=>{if(window.IntersectionObserver){const e=new IntersectionObserver(Ge,{threshold:1});t.forEach(t=>e.observe(t))}else Ge(t)})}get inputNameToElement(){return Object.defineProperty(this,"inputNameToElement",{value:this.inputs.reduce((e,t)=>(e[t.name]=t,e),{})}),this.inputNameToElement}get isThirdPartyJoinEnabled(){return this.isSmartLockEnabled||this.joinBtnProvider}get isThirdPartyProfileCardVisible(){const e=Rt(Te.PROFILE_CARD,this.joinForm);return e&&!e.classList.contains(Oe)}get thirdPartyAccountFields(){return{id:"",profilePictureUrl:"",firstName:"",lastName:"",phoneticFirstName:"",phoneticLastName:"",displayDigitalMediaAssetUrn:"",thirdPartyCredentials:{googleUserIdToken:"",thirdPartyProvider:""}}}get emailHandle(){const e=this.inputNameToElement["email-or-phone"],t=this.inputNameToElement["email-address"],n=e||t;let o=null;return n&&(o={input:"#"+n.id,label:`[for="${n.id}"]`}),Object.defineProperty(this,"emailHandle",{value:o}),this.emailHandle}get location(){return this._location||window.location}get inputsWithErrors(){const e=[];return this.inputs.filter(e=>this._isValidInput(e)).forEach(t=>{this.inputNameToErrors[t.name]||(this.inputNameToErrors[t.name]=ye(t)),this.inputNameToErrors[t.name].length&&e.push({inputName:t.name,errorMessageKeys:this.inputNameToErrors[t.name]})}),e}set location(e){this._location=e}_attachEventListeners(){let e;var t;this.joinForm.addEventListener("change",e=>this._handleChange(e)),this.joinForm.addEventListener("input",e=>this._handleInput(e)),this.joinForm.addEventListener("focusout",e=>this._handleFocusOut(e)),this.joinForm.addEventListener("submit",e=>this._handleSubmit(e)),this.joinForm.addEventListener("invalid",t=>{t.preventDefault(),e||(e=window.setTimeout(()=>{e=null,this._handleInvalidSubmit(t)},0))},!0),this.joinForm.querySelector("[type=submit]").addEventListener("click",e=>{He({controlName:this.isSplitJoinForm&&this.splitJoin.isLastStep?Ue.CONTINUE_BUTTON:Ue.AGREE_AND_JOIN_BUTTON,interactionType:Fe})}),this.joinForm.querySelector(Te.PROFILE_CARD)?(this.joinForm.querySelector(we.EDIT_ICON).addEventListener("click",()=>this._showPhotoModal()),this.joinForm.querySelector(we.EDIT_PHOTO.CANCEL_ICON).addEventListener("click",()=>this._hidePhotoModal()),this.joinForm.querySelector(we.NOT_YOU).addEventListener("click",()=>{this.location.reload(),He({controlName:Ue.PROFILE_CARD_NOT_YOU_BUTTON,interactionType:Fe})}),this.joinForm.querySelector(we.EDIT_PHOTO.TEXT).addEventListener("click",()=>this._removePhoto())):console.warn("Profile card element not found"),this.isInlineError||((t=this.joinForm).querySelector(".alert").querySelector(".wrapper").addEventListener("click",()=>{G(t),He({controlName:Ue.ERROR_ALERT_DISMISS_BUTTON,interactionType:Fe})}),this.joinForm.addEventListener(It,e=>{Be(this.joinForm,e.detail.globalErrorMessage)})),this.joinForm.addEventListener(St,e=>{let t=e.detail.splitJoinStepNum;this._handleSplitJoinStepChange(t)})}_thirdPartyJoinErrorAlert(e){switch(e){case Ie:Ct(this.joinForm,Object(o.b)("i18n_third_party_join_error-message-facebook"));break;case Le:Ct(this.joinForm,Object(o.b)("i18n_third_party_join_error-message-google"));break;case Ce:Ct(this.joinForm,Object(o.b)("i18n_third_party_join_error-message-wechat"))}}_handleInvalidSubmit(){const e=this.inputsWithErrors;return!!e.length&&(e.forEach(e=>{const t=this.inputNameToElement[e.inputName];Ve(t,this.isInlineError),this.isInlineError&&Be(t,Object(o.b)(e.errorMessageKeys[0]),this.isInlineError)}),this.isInlineError||Be(this.joinForm,Object(o.b)(e[0].errorMessageKeys[0])),this.inputNameToElement[e[0].inputName].focus(),qe({trackingCode:xe.ALERT.VALIDATION_FAILURE_ALERT,activityType:je,inputsWithErrors:e}),t=this.joinForm,n=e,o.c.dispatchCustomEvent(t,_t,n),!0);var t,n}_handleChange(e){const t=e.target;Ee(t)&&(t.value?t.classList.add("join-form-input__input--has-text"):t.classList.remove("join-form-input__input--has-text"),this.inputNameToErrors[t.name]=ye(t),0===this.inputNameToErrors[t.name].length&&(B(t,this.isInlineError),this.isInlineError&&G(t,this.isInlineError)))}_handleFocusOut(e){if(!this.isInlineError)return;const t=e.target;Ee(t)&&(this.inputNameToErrors[t.name]=ye(t),this.inputNameToErrors[t.name].length&&(Ve(t,this.isInlineError),Be(this.isInlineError?t:this.joinForm,Object(o.b)(this.inputNameToErrors[t.name][0]),this.isInlineError)))}_handleInput(e){if(!this.isInlineError)return;const t=e.target;Ee(t)&&(B(t,this.isInlineError),G(t,this.isInlineError))}_handleSubmit(e){if(e.preventDefault(),this.isInlineError?J(this.joinForm):G(this.joinForm),this._handleInvalidSubmit())return;if(this.isSplitJoinForm&&!this.splitJoin.isLastStep&&!this.isThirdPartyProfileCardVisible)return void this._handleSplitJoinSubmit();var t;t=this.joinForm,o.c.dispatchCustomEvent(t,Et);const n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return Array.from(e.elements).forEach(e=>{if(Ee(e)){const t=e.name,o=e.value;o&&("real-name"===t?n=ot({},n,tt(o)):n[ve[t]]=o)}}),n.source=it(),n.redirectInfo=rt(),n.invitationInfo=st(),n.sendConfirmationEmail=Object(o.b)("dust-var-sendConfirmationEmail"),"enabled"===Object(o.b)("dust-var-fpLixTreatment")&&(n.fpData=at()),n=lt(t,n),n}(this.joinForm,this.thirdPartyUserInfo);this._sendCreateAccountRequest(this.joinForm,n)}_handleSplitJoinSubmit(){this._hideGoogleSmartLock(),this._hideThirdPartyJoinContainer(),this.splitJoin.nextStep()}_resetSplitJoinForm(){this._resetThirdPartyJoin(),this.splitJoin.firstStep()}_resetThirdPartyJoin(){this.isSmartLockEnabled?this._showGoogleSmartLock():this.joinBtnProvider&&this._showThirdPartyJoinContainer(),this.isThirdPartyProfileCardVisible&&this._toggleProfilecard()}_handleSplitJoinStepChange(e){const t=Rt('.join-form__form-body-agreement[data-is-not-yielded="true"]',this.joinForm);if(!t)return;const n=Rt(".join-form__form-body-submit-button",this.joinForm);if(t.classList[this.splitJoin.isLastStep?"add":"remove"]("join-form__form-body-agreement--is-hidden"),this.splitJoin.isLastStep||this.splitJoin.isFirstStep){const e=this.splitJoin.isLastStep?Object(o.b)("i18n_continue"):this._lastSubmitBtnText;this._lastSubmitBtnText=n.value,n.classList[this.splitJoin.isLastStep?"add":"remove"]("join-form__form-body-submit-button--no-agreement-text"),n.value=e,D.setElementContent(n,e)}}_isValidInput(e){const t=Ee(e);if(!this.isSplitJoinForm)return t;let n=e.parentNode;for(;!n.classList.contains(Ft);)n=n.parentNode;return t&&!n.classList.contains(jt)}_getRequiredElemNames(){const e=["first-name","last-name"];let t=[];return this.inputs.forEach(n=>{n.hasAttribute("required")&&("real-name"===n.name?t=t.concat(e):t.push(n.name))}),t}_sendCreateAccountRequest(e,t){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.length&&e.forEach(e=>{const n=ve[e];if(!n||!t[n])throw new Error(n?`Missing required field ${n}.`:"No mapping exists for inputs named "+e)})}(this._getRequiredElemNames(),t),this.registrationServerClient.sendCreateAccountRequest(t).then(t=>{!function(e,t){o.c.dispatchCustomEvent(e,bt,t)}(e,t.responseObj),Object(o.b)("dust-var-cancelOnboardingRedirect")||D.redirect(t.responseObj&&t.responseObj.redirectUrl||"/"),qe({trackingCode:xe.JOIN_REQUEST.JOIN_REQUEST_SUCCESS,activityType:je})}).catch(n=>{const i=(n.response||{}).responseObj||{};i.challengeUrl?(!function(e,t){o.c.dispatchCustomEvent(e,vt,t)}(e,i),new gt(i.challengeUrl).showChallenge().then(n=>{!function(e){o.c.dispatchCustomEvent(e,Ot)}(e),t.submissionId=i.submissionId,t.resolvedChallengeUrl=n,t.requestSignature=i.requestSignature,this._sendCreateAccountRequest(e,t)}).catch(t=>{"softFail"===t?function(e){o.c.dispatchCustomEvent(e,Tt)}(e):function(e,t){o.c.dispatchCustomEvent(e,wt,t)}(e,t),Ct(this.joinForm,Object(o.b)("i18n_server_generic_error"))})):(!function(e,t){o.c.dispatchCustomEvent(e,yt,t)}(e,i),Ct(e,i.translatedMessage),this.isSplitJoinForm&&!this.isThirdPartyProfileCardVisible?this._resetSplitJoinForm():this._resetThirdPartyJoin()),function(e,t){if(qe({trackingCode:xe.JOIN_REQUEST.JOIN_REQUEST_FAILURE,activityType:je,customData:e}),!t)return;const n=t.thirdPartyProvider;var o,i=je;switch(n){case Ie:o=xe.JOIN_REQUEST.JOIN_REQUEST_FAILURE_WITH_FACEBOOK;break;case Le:o=xe.JOIN_REQUEST.JOIN_REQUEST_FAILURE_WITH_GOOGLE;break;default:o=xe.JOIN_REQUEST.JOIN_REQUEST_FAILURE_WITH_GOOGLE_ONE_TAP}qe({activityType:i,trackingCode:o})}(i,t.thirdPartyCredentials)})}_initThirdPartySignup(){this.isSmartLockEnabled?this._initSmartLock():this.joinBtnProvider&&(this.thirdPartyJoinButton=this._initThirdPartyJoinButton())}_initSmartLock(){return new Promise((e,t)=>{if(window.googleyolo)return e(window.googleyolo);const n=Object(o.b)("dust-var-smartLockScript");if(n){const o=document.createElement("script"),i=document.getElementsByTagName("script")[0];o.onerror=t,o.src=D.sanitizeUrl(n),i.parentNode.insertBefore(o,i),window.onGoogleYoloLoad=t=>(t.setTimeouts(15e3),this._renderGoogleSmartLock(t),e(t))}})}_renderGoogleSmartLock(e){e.hint({supportedAuthMethods:["https://accounts.google.com"],supportedIdTokenProviders:[{uri:"https://accounts.google.com",clientId:"990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com"}],context:"signUp"}).catch(e=>{this.joinBtnProvider&&!Dt.includes(e.type)&&(this.thirdPartyJoinButton=this._initThirdPartyJoinButton()),function(e){var t,n=Me;if("userCanceled"==e)He({controlName:Ue.GOOGLE_ONE_TAP_CLOSE_BUTTON,interactionType:Fe});else{switch(e){case"operationCanceled":n=je,t=xe.GOOLE_ONE_TAP.GOOGLE_ONE_TAP_SIGNUP_IGNORED;break;case"noCredentialsAvailable":t=xe.GOOLE_ONE_TAP.GOOGLE_ONE_TAP_NO_ACCOUNT;break;case"requestFailed":t=xe.GOOLE_ONE_TAP.GOOGLE_ONE_TAP_REQUEST_FAIL_ERROR;break;case"illegalConcurrentRequest":t=xe.GOOLE_ONE_TAP.GOOGLE_ONE_TAP_ILLEGAL_REQUEST_ERROR;break;case"initializationError":t=xe.GOOLE_ONE_TAP.GOOGLE_ONE_TAP_INITIALIZATION_ERROR;break;case"configurationError":t=xe.GOOLE_ONE_TAP.GOOGLE_ONE_TAP_CONFIGURATION_ERROR;break;default:t=xe.GOOLE_ONE_TAP.GOOGLE_ONE_TAP_ERROR}qe({activityType:n,trackingCode:t})}}(e.type)}).then(e=>{e&&(this._parseThirdPartyUserInfo(e),this.renderUserDetails(),He({controlName:Ue.GOOGLE_ONE_TAP_SIGNUP_BUTTON,interactionType:Fe}))})}_initSplitJoinForm(){return new xt(this.joinForm)}_initThirdPartyJoinButton(){if(this.isSplitJoinForm&&!this.splitJoin.isFirstStep)return;const e=new Xe(document.querySelector(Ye));return e.onError=e=>this._thirdPartyJoinErrorAlert(e),e.onUserInfoFetch=e=>{e.then(e=>{e&&(this._parseThirdPartyUserInfo(e),this.renderUserDetails())})},e}_parseThirdPartyUserInfo(e){if(this.thirdPartyUserInfo=this.thirdPartyAccountFields,e.displayName){const t=e.displayName.split(" ");e.firstName=t[0],e.lastName=t.length>1?t[1]:"",e.profilePictureUrl=e.profilePicture,e.thirdPartyCredentials={googleUserIdToken:e.idToken}}else e.thirdPartyCredentials={thirdPartyProvider:this.joinBtnProvider};Object.keys(this.thirdPartyAccountFields).forEach(t=>{e[t]&&(this.thirdPartyUserInfo[t]=e[t])})}renderUserDetails(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t=this.thirdPartyUserInfo;const n=t.phoneticFirstName,o=t.phoneticLastName,i=t.firstName,r=t.lastName,s=t.id,a=t.profilePictureUrl;let l;this._setPropertyValue(Te.FIRST_NAME_INPUT,i),this._setPropertyValue(Te.LAST_NAME_INPUT,r),this._setPropertyValue(Te.PHONETIC_FIRST_NAME_INPUT,n),this._setPropertyValue(Te.PHONETIC_LAST_NAME_INPUT,o),this.emailHandle&&(this._setPropertyValue(this.emailHandle.input,s),l=Rt(this.emailHandle.input,this.joinForm),this.inputNameToErrors[l.name]=ye(l)),(i&&r&&s&&l&&!this.inputNameToErrors[l.name].length||e&&a)&&(this._toggleProfilecard(),this.inputNameToElement.password.focus())}_renderProfilecard(){var e=this.thirdPartyUserInfo;const t=e.profilePictureUrl,n=e.firstName,o=e.lastName,i=e.id;Pt(we.PHOTO,Se,t,this.joinForm),t||(At(we.PHOTO,this.joinForm),At(we.EDIT_ICON,this.joinForm)),n&&o&&(Rt(we.NAME,this.joinForm).innerText=`${n} ${o}`),i&&(Rt(we.EMAIL,this.joinForm).innerText=i)}_toggleProfilecard(){var e,t;this.isThirdPartyProfileCardVisible?(At(Te.PROFILE_CARD,this.joinForm),this._showFieldsForThirdPartyProfileCard()):(this.isInlineError?J(this.joinForm):G(this.joinForm),kt(Te.PROFILE_CARD,this.joinForm),this._hideFieldsForThirdPartyProfileCard(),this._renderProfilecard()),e=this.joinForm,t=this.isThirdPartyProfileCardVisible,o.c.dispatchCustomEvent(e,Nt,{isProfileCardVisible:t})}_hideFieldsForThirdPartyProfileCard(){var e=this.thirdPartyUserInfo;const t=e.firstName,n=e.lastName,o=e.id;this.emailHandle&&o&&(At(this.emailHandle.input,this.joinForm),At(this.emailHandle.label,this.joinForm),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.body;const o=Rt(e,n);o&&o.removeAttribute(t)}(this.emailHandle.input,Ne,this.joinForm)),!this.isSplitJoinForm&t&&n&&(At(Te.FIRST_NAME_INPUT,this.joinForm),At(Te.FIRST_NAME_LABEL,this.joinForm),At(Te.LAST_NAME_INPUT,this.joinForm),At(Te.LAST_NAME_LABEL,this.joinForm))}_showFieldsForThirdPartyProfileCard(){this.emailHandle&&(kt(this.emailHandle.input,this.joinForm),kt(this.emailHandle.label,this.joinForm),Pt(this.emailHandle.input,Ne,"required",this.joinForm)),this.isSplitJoinForm||(kt(Te.FIRST_NAME_INPUT,this.joinForm),kt(Te.FIRST_NAME_LABEL,this.joinForm),kt(Te.LAST_NAME_INPUT,this.joinForm),kt(Te.LAST_NAME_LABEL,this.joinForm))}_showGoogleSmartLock(){this.isSmartLockEnabled&&this._renderGoogleSmartLock(window.googleyolo)}_hideGoogleSmartLock(){this.isSmartLockEnabled&&window.googleyolo&&window.googleyolo.cancelLastOperation()}_showThirdPartyJoinContainer(){this.joinBtnProvider&&this.thirdPartyJoinButton&&this.thirdPartyJoinButton.show()}_hideThirdPartyJoinContainer(){this.joinBtnProvider&&this.thirdPartyJoinButton&&this.thirdPartyJoinButton.hide()}_setPropertyValue(e,t){const n=Rt(e,this.joinForm);n&&t&&(n.value=t)}_showPhotoModal(){kt(we.EDIT_PHOTO.MODAL,this.joinForm)}_hidePhotoModal(){At(we.EDIT_PHOTO.MODAL,this.joinForm)}_removePhoto(){this._hidePhotoModal(),Pt(we.PHOTO,Se,"",this.joinForm),At(we.PHOTO,this.joinForm),At(we.EDIT_ICON,this.joinForm),this.thirdPartyUserInfo.profilePictureUrl="",He({controlName:Ue.DELETE_PHOTO_BUTTON,interactionType:Fe})}}function Jt(){"storage"in navigator&&"estimate"in navigator.storage&&navigator.storage.estimate().then(({quota:e})=>{e<12e7&&function(){o.d.getPageKey(document);if(document.querySelector('meta[name="clientSideIngraphs"]'))window.ingraphTracking.then(e=>{e.fireCounterIngraphMetric({metricsType:"privateBrowsingPageView"})})}()})}var Ht=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},qt=function(){function e(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,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),Bt=function(){function e(){Ht(this,e),this.EventType={};this.EventType[this.EventType.DomContentLoaded=0]="DomContentLoaded";this.EventType[this.EventType.Load=1]="Load";this.EventType[this.EventType.FullSnapshot=2]="FullSnapshot";this.EventType[this.EventType.IncrementalSnapshot=3]="IncrementalSnapshot";this.EventType[this.EventType.Meta=4]="Meta",this.IncrementalSource={};this.IncrementalSource[this.IncrementalSource.MouseMove=1]="MouseMove";this.IncrementalSource[this.IncrementalSource.MouseInteraction=2]="MouseInteraction";this.IncrementalSource[this.IncrementalSource.Scroll=3]="Scroll";this.IncrementalSource[this.IncrementalSource.ViewportResize=4]="ViewportResize";this.IncrementalSource[this.IncrementalSource.Input=5]="Input";this.IncrementalSource[this.IncrementalSource.TouchMove=6]="TouchMove",this.MouseInteractions={};this.MouseInteractions[this.MouseInteractions.MouseUp=0]="MouseUp";this.MouseInteractions[this.MouseInteractions.MouseDown=1]="MouseDown";this.MouseInteractions[this.MouseInteractions.Click=2]="Click";this.MouseInteractions[this.MouseInteractions.ContextMenu=3]="ContextMenu";this.MouseInteractions[this.MouseInteractions.DblClick=4]="DblClick";this.MouseInteractions[this.MouseInteractions.Focus=5]="Focus";this.MouseInteractions[this.MouseInteractions.Blur=6]="Blur";this.MouseInteractions[this.MouseInteractions.TouchStart=7]="TouchStart";this.MouseInteractions[this.MouseInteractions.touchEnd=8]="touchEnd",this.isCtrlDown=!1}return qt(e,[{key:"_assign",value:function(){var e=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};return e.apply(this,arguments)}},{key:"_spread",value:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(arguments[t]);return e}},{key:"hookSetter",value:function(e,t,n,o){var i=Object.getOwnPropertyDescriptor(e,t),r=this;return Object.defineProperty(e,t,o?n:{set:function(e){var t=this;setTimeout((function(){n.set.call(t,e)}),0),i&&i.set&&i.set.call(t,e)}}),function(){return r.hookSetter(e,t,i||{},!0)}}},{key:"on",value:function(e,t,n){null==n&&(n=document);var o={capture:!0,passive:!0};return n.addEventListener(e,t,o),function(){return n.removeEventListener(e,t,o)}}},{key:"throttle",value:function(e,t,n){null==n&&(n={});var o=null,i=0;return function(r){var s=Date.now();i||!1!==n.leading||(i=s);var a=t-(s-i),l=this,c=arguments;a<=0||a>t?(o&&(window.clearTimeout(o),o=null),i=s,e.apply(l,c)):o||!1===n.trailing||(o=window.setTimeout((function(){i=!1===n.leading?0:Date.now(),o=null,e.apply(l,c)}),a))}}},{key:"getWindowHeight",value:function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}},{key:"getWindowWidth",value:function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}},{key:"isTouchEvent",value:function(e){return Boolean(e.changedTouches)}},{key:"polyfill",value:function(){"NodeList"in window&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach)}},{key:"initKeyboardObserver",value:function(e){var t=this;function n(e){(void 0===e.key||"meta"!==e.key.toLowerCase()&&"control"!==e.key.toLowerCase())&&(void 0===e.keyCode||91!==e.keyCode&&17!==e.keyCode)||(t.isCtrlDown=!1)}function o(n){var o=!1,i=!1,r=!1;if(t.isCtrlDown)if(void 0!==n.key){var s=n.key.toLowerCase();"x"===s&&(o=!0),"c"===s?i=!0:"v"===s&&(r=!0)}else void 0!==n.keyCode&&(88===keyPressed&&(o=!0),67===keyPressed?i=!0:86===keyPressed&&(r=!0));else(void 0===n.key||"meta"!==n.key.toLowerCase()&&"control"!==n.key.toLowerCase())&&(void 0===n.keyCode||91!==n.keyCode&&17!==n.keyCode)||(t.isCtrlDown=!0);e({inputClassList:n.target.classList,isCut:o,isCopy:i,isPaste:r})}var i=["keydown","keyup"].map((function(e){return"keydown"===e?t.on(e,o):t.on(e,n)})),r=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),s=[[HTMLInputElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"]];return r&&r.set&&i.push.apply(i,t._spread(s.map((function(e){return t.hookSetter(e[0],e[1],{set:function(){eventHandler({target:this})}})})))),function(){i.forEach((function(e){return e()}))}}},{key:"initMoveObserver",value:function(e,t){var n=[],o=void 0,i=this,r=i.throttle((function(t){var r=Date.now()-o;e(n.map((function(e){return e.timeOffset-=r,e})),t?i.IncrementalSource.TouchMove:i.IncrementalSource.MouseMove),n=[],o=null}),500),s=i.throttle((function(e){var t=i.isTouchEvent(e)?e.changedTouches[0]:e,s=t.clientX,a=t.clientY;o||(o=Date.now()),n.push({x:s,y:a,timeOffset:Date.now()-o}),r(i.isTouchEvent(e))}),t,{trailing:!1}),a=[i.on("mousemove",s),i.on("touchmove",s)];return function(){a.forEach((function(e){return e()}))}}},{key:"initMouseInteractionObserver",value:function(e){var t=this,n=[];return Object.keys(t.MouseInteractions).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")})).forEach((function(o){var i=o.toLowerCase(),r=function(n){return function(o){var i=t.isTouchEvent(o)?o.changedTouches[0]:o,r=i.clientX,s=i.clientY;e({type:t.MouseInteractions[n],x:r,y:s})}}(o);n.push(t.on(i,r))})),function(){n.forEach((function(e){return e()}))}}},{key:"initScrollObserver",value:function(e){var t=this.throttle((function(t){if(t.target)if(t.target===document){var n=document.scrollingElement||document.documentElement;e({x:n.scrollLeft,y:n.scrollTop})}else e({x:t.target.scrollLeft,y:t.target.scrollTop})}),100);return this.on("scroll",t)}},{key:"initViewportResizeObserver",value:function(e){var t=this,n=t.throttle((function(){var n=t.getWindowHeight(),o=t.getWindowWidth();e({width:Number(o),height:Number(n)})}),200);return this.on("resize",n,window)}},{key:"mergeHooks",value:function(e,t){var n=this,o=e.mousemoveCb,i=e.mouseInteractionCb,r=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb;e.mousemoveCb=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t.mousemove&&t.mousemove.apply(t,n._spread(e)),o.apply(null,n._spread(e))},e.mouseInteractionCb=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];t.mouseInteraction&&t.mouseInteraction.apply(t,n._spread(e)),i.apply(null,n._spread(e))},e.scrollCb=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];t.scroll&&t.scroll.apply(t,n._spread(e)),r.apply(null,n._spread(e))},e.viewportResizeCb=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];t.viewportResize&&t.viewportResize.apply(t,n._spread(e)),s.apply(null,n._spread(e))},e.inputCb=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];t.input&&t.input.apply(t,n._spread(e)),a.apply(null,n._spread(e))}}},{key:"initObservers",value:function(e,t){null==t&&(t={}),this.mergeHooks(e,t);var n=this.initMoveObserver(e.mousemoveCb,e.mousemoveWait),o=this.initMouseInteractionObserver(e.mouseInteractionCb),i=this.initScrollObserver(e.scrollCb),r=this.initViewportResizeObserver(e.viewportResizeCb),s=this.initKeyboardObserver(e.keyboardCb);return function(){n(),o(),i(),r(),s()}}},{key:"wrapEvent",value:function(e){return this._assign(this._assign({},e),{timestamp:Date.now()})}},{key:"record",value:function(e){null==e&&(e={});var t=e.emit,n=e.checkoutEveryNms,o=e.hooks,i=50;if(void 0!==e.mousemoveWait&&(i=e.mousemoveWait),!t)throw new Error("emit function is required");this.polyfill();var r=void 0,s=this;function a(e,o){if(t(e,o),e.type===s.EventType.FullSnapshot)r=e;else if(e.type===s.EventType.IncrementalSnapshot){n&&e.timestamp-r.timestamp>n&&l(!0)}}function l(e){null==e&&(e=!1),a(s.wrapEvent({type:s.EventType.Meta,data:{href:window.location.href,width:s.getWindowWidth(),height:s.getWindowHeight()}}),e),a(s.wrapEvent({type:s.EventType.FullSnapshot,data:{node:{type:"Document"},initialOffset:{left:document.documentElement.scrollLeft,top:document.documentElement.scrollTop}}}))}try{var c=[];c.push(s.on("DOMContentLoaded",(function(){a(s.wrapEvent({type:s.EventType.DomContentLoaded,data:{}}))})));var u=function(){l(),c.push(s.initObservers({mousemoveCb:function(e,t){return a(s.wrapEvent({type:s.EventType.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return a(s.wrapEvent({type:s.EventType.IncrementalSnapshot,data:s._assign({source:s.IncrementalSource.MouseInteraction},e)}))},scrollCb:function(e){return a(s.wrapEvent({type:s.EventType.IncrementalSnapshot,data:s._assign({source:s.IncrementalSource.Scroll},e)}))},viewportResizeCb:function(e){return a(s.wrapEvent({type:s.EventType.IncrementalSnapshot,data:s._assign({source:s.IncrementalSource.ViewportResize},e)}))},keyboardCb:function(e){return a(s.wrapEvent({type:s.EventType.IncrementalSnapshot,data:s._assign({source:s.IncrementalSource.Input},e)}))},mousemoveWait:i},o))};return"interactive"===document.readyState||"complete"===document.readyState?u():c.push(s.on("load",(function(){a(s.wrapEvent({type:s.EventType.Load,data:{}})),u()}),window)),function(){c.forEach((function(e){return e()}))}}catch(e){console.log(e)}}}]),e}(),zt=function(){function e(){Ht(this,e),this.f=String.fromCharCode,this.n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",this.e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",this.t={}}return qt(e,[{key:"getBaseValue",value:function(e,t){if(!this.t[e]){this.t[e]={};for(var n=0;n<e.length;n++)this.t[e][e.charAt(n)]=n}return this.t[e][t]}},{key:"compressToBase64",value:function(e){if(null===e)return"";var t=this,n=this._compress(e,6,(function(e){return t.n.charAt(e)}));switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}}},{key:"decompressFromBase64",value:function(e){if(null===e)return"";if(""===e)return null;var t=this;return this._decompress(e.length,32,(function(n){return t.getBaseValue(t.n,e.charAt(n))}))}},{key:"compress",value:function(e){var t=this;return this._compress(e,16,(function(e){return t.f(e)}))}},{key:"_compress",value:function(e,t,n){if(null===e)return"";var o,i,r,s={},a={},l="",c="",u="",d=2,h=3,p=2,m=[],f=0,g=0;for(r=0;r<e.length;r+=1)if(l=e.charAt(r),Object.prototype.hasOwnProperty.call(s,l)||(s[l]=h++,a[l]=!0),c=u+l,Object.prototype.hasOwnProperty.call(s,c))u=c;else{if(Object.prototype.hasOwnProperty.call(a,u)){if(u.charCodeAt(0)<256){for(o=0;o<p;o++)f<<=1,g===t-1?(g=0,m.push(n(f)),f=0):g++;for(i=u.charCodeAt(0),o=0;o<8;o++)f=f<<1|1&i,g===t-1?(g=0,m.push(n(f)),f=0):g++,i>>=1}else{for(i=1,o=0;o<p;o++)f=f<<1|i,g===t-1?(g=0,m.push(n(f)),f=0):g++,i=0;for(i=u.charCodeAt(0),o=0;o<16;o++)f=f<<1|1&i,g===t-1?(g=0,m.push(n(f)),f=0):g++,i>>=1}0===--d&&(d=Math.pow(2,p),p++),delete a[u]}else for(i=s[u],o=0;o<p;o++)f=f<<1|1&i,g===t-1?(g=0,m.push(n(f)),f=0):g++,i>>=1;0===--d&&(d=Math.pow(2,p),p++),s[c]=h++,u=String(l)}if(""!==u){if(Object.prototype.hasOwnProperty.call(a,u)){if(u.charCodeAt(0)<256){for(o=0;o<p;o++)f<<=1,g===t-1?(g=0,m.push(n(f)),f=0):g++;for(i=u.charCodeAt(0),o=0;o<8;o++)f=f<<1|1&i,g===t-1?(g=0,m.push(n(f)),f=0):g++,i>>=1}else{for(i=1,o=0;o<p;o++)f=f<<1|i,g===t-1?(g=0,m.push(n(f)),f=0):g++,i=0;for(i=u.charCodeAt(0),o=0;o<16;o++)f=f<<1|1&i,g===t-1?(g=0,m.push(n(f)),f=0):g++,i>>=1}0===--d&&(d=Math.pow(2,p),p++),delete a[u]}else for(i=s[u],o=0;o<p;o++)f=f<<1|1&i,g===t-1?(g=0,m.push(n(f)),f=0):g++,i>>=1;0===--d&&(d=Math.pow(2,p),p++)}for(i=2,o=0;o<p;o++)f=f<<1|1&i,g===t-1?(g=0,m.push(n(f)),f=0):g++,i>>=1;for(;;){if(f<<=1,g===t-1){m.push(n(f));break}g++}return m.join("")}},{key:"decompress",value:function(e){return null===e?"":""===e?null:this._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))}},{key:"_decompress",value:function(e,t,n){var o=[],i=4,r=4,s=3,a="",l=[],c=void 0,u=void 0,d=void 0,h=void 0,p=void 0,m=void 0,f=void 0,g={val:n(0),position:t,index:1};for(c=0;c<3;c+=1)o[c]=c;for(d=0,p=Math.pow(2,2),m=1;m!==p;)h=g.val&g.position,g.position>>=1,0===g.position&&(g.position=t,g.val=n(g.index++)),d|=(h>0?1:0)*m,m<<=1;switch(d){case 0:for(d=0,p=Math.pow(2,8),m=1;m!==p;)h=g.val&g.position,g.position>>=1,0===g.position&&(g.position=t,g.val=n(g.index++)),d|=(h>0?1:0)*m,m<<=1;f=this.f(d);break;case 1:for(d=0,p=Math.pow(2,16),m=1;m!==p;)h=g.val&g.position,g.position>>=1,0===g.position&&(g.position=t,g.val=n(g.index++)),d|=(h>0?1:0)*m,m<<=1;f=this.f(d);break;case 2:return""}for(o[3]=f,u=f,l.push(f);;){if(g.index>e)return"";for(d=0,p=Math.pow(2,s),m=1;m!==p;)h=g.val&g.position,g.position>>=1,0===g.position&&(g.position=t,g.val=n(g.index++)),d|=(h>0?1:0)*m,m<<=1;switch(f=d){case 0:for(d=0,p=Math.pow(2,8),m=1;m!==p;)h=g.val&g.position,g.position>>=1,0===g.position&&(g.position=t,g.val=n(g.index++)),d|=(h>0?1:0)*m,m<<=1;o[r++]=this.f(d),f=r-1,i--;break;case 1:for(d=0,p=Math.pow(2,16),m=1;m!==p;)h=g.val&g.position,g.position>>=1,0===g.position&&(g.position=t,g.val=n(g.index++)),d|=(h>0?1:0)*m,m<<=1;o[r++]=this.f(d),f=r-1,i--;break;case 2:return l.join("")}if(0===i&&(i=Math.pow(2,s),s++),o[f])a=o[f];else{if(f!==r)return null;a=u+u.charAt(0)}l.push(a),o[r++]=u+a.charAt(0),u=a,0===--i&&(i=Math.pow(2,s),s++)}}}]),e}(),Wt=function(){function e(){Ht(this,e),this.PREFIX="dcts-",this.CPR=new zt}return qt(e,[{key:"compressAndSplitEvent",value:function(e){if(null==e)return[];var t=this.CPR.compressToBase64(JSON.stringify(e)),n=Math.floor(t.length/3)+1;return t.match(new RegExp(".{1,"+n+"}","g"))}},{key:"processTelemetry",value:function(e,t,n){var o=this.compressAndSplitEvent(e);if(null!=o){for(var i={},r=0;r<o.length;r++)i[this.PREFIX+r]=o[r];return i["x-f-uc"]=t,i.csrf_token=n,JSON.stringify(i)}return null}},{key:"getParamPrefix",value:function(){return this.PREFIX}}]),e}(),Vt=function(){function e(){Ht(this,e),this.processor=new Wt,this.DEFAULT_URL="/platform-telemetry/li/gather",this.timestone=new Bt,this.workerThread=null,this.events=[]}return qt(e,[{key:"init",value:function(e,t,n,o,i,r){var s=this;if(this.isExist(r)&&""!==r&&window.Worker){var a=this.convertWorkerUrl(r);null!==a&&(this.workerThread=new Worker(a),this.workerThread.onmessage=function(t){s.sendTelemetry(t.data,e)})}this.isExist(e)||(e=this.DEFAULT_URL);var l=0,c=6;null===o||isNaN(o)||(c=o);var u=this.timestone.record({emit:function(n,o){o&&s.events.length>0&&l<c?(s.collect(e,t,s.events,i),l+=1,s.events.splice(0,s.events.length)):l>=c&&(u(),s.isExist(s.workerThread)&&s.workerThread.terminate()),s.events.push(n)},checkoutEveryNms:n})}},{key:"collect",value:function(e,t,n,o){if(this.isExist(o)||(o=""),this.isExist(t)||(t="undefined-uc"),this.isExist(this.workerThread))this.workerThread.postMessage({events:n,useCase:t,csrfToken:o});else{var i=this.processor.processTelemetry(n,t,o);null!==i&&this.sendTelemetry(i,e)}}},{key:"collectFinalTelemetry",value:function(e,t,n){if(this.isExist(e)||(e=this.DEFAULT_URL),this.isExist(n)||(n=""),this.isExist(t)||(t="undefined-uc"),this.events.length>0)if(navigator.sendBeacon&&this.isExist(FormData)){var o=new FormData;o.append("x-f-uc",t),o.append("csrf_token",n);for(var i=this.processor.compressAndSplitEvent(this.events),r=0;r<i.length;r++)o.append(this.processor.getParamPrefix()+r,i[r]);navigator.sendBeacon(e,o)}else this.collect(e,t,this.events,"")}},{key:"sendTelemetry",value:function(e,t){var n=new XMLHttpRequest;n.open("POST",t),n.setRequestHeader("Content-Type","application/json"),n.send(e)}},{key:"isExist",value:function(e){return null!=e}},{key:"convertWorkerUrl",value:function(e){var t="https://"+window.location.host;if(0===e.indexOf(t)||0===e.indexOf("/"))return e;if(-1===e.indexOf(t)){var n=e.split(".com/");if(2===n.length)return"/"+n[1]}return null}}]),e}();o.c.onload(()=>{!function(){const e=document.querySelector(".apptivation-promo");e&&new o.a(e)}(),function(){const e=document.querySelector(".flip-card"),t=document.querySelector("title"),n=Object(o.b)("i18n_sign_up_title"),i=Object(o.b)("i18n_sign_in_title");e&&e.addEventListener("click",(function(e){e.target.classList.contains("form-toggle")&&(e.preventDefault(),e.currentTarget.classList.contains("show-login")?(e.currentTarget.classList.remove("show-login"),t.textContent=n):(e.currentTarget.classList.add("show-login"),t.textContent=i))}))}(),function(){const e=document.querySelector(".join-form");e&&new Gt(e)}(),Jt(),function(){const e=o.c.getCookie("JSESSIONID"),t=new Vt,n=document.querySelector('meta[name="platform-worker"]'),i=n&&n.content||"";t.init("/platform-telemetry/li/gather","ath",5e3,20,e,i),window.addEventListener("beforeunload",()=>{t.collectFinalTelemetry("/platform-telemetry/li/gather","ath",e)})}()})}]);