// ### server injected code ### var gigya = window.gigya; if (typeof gigya == 'undefined' || !gigya.isGigya) { gigya = {isGigya: true}; } gigya.apiKey = '4_lQqzVWv9K_GcwNt1NjGAOQ'; gigya.defaultApiDomain = 'gigya.com'; gigya.dataCenter = 'eu1'; gigya.build = { "number": 17624, "version": "latest", "flavor": "base" }; gigya.gmidVersion = 'ver4'; if (typeof gigya.partnerSettings == 'undefined') { gigya.partnerSettings = { "authMode": "cookie", "globalConf": "\r\n{\r\n\r\n}\r\n\r\n", "captchaProvider": "Google", "plugins": { "connectWithoutLoginBehavior": "loginExistingUser", "defaultRegScreenSet": "2020DefaultTest-RegistrationLogin", "defaultMobileRegScreenSet": "2020DefaultTest-RegistrationLogin", "sessionExpiration": 0, "rememberSessionExpiration": 0, "apiDomain": "eu1.gigya.com" }, "ssoKey": "3_0eTp_O9N6Vk5LKY13auy6FzE5TRCYdoST1ofWeVDDEo4nTC48DLKU3b-SpkXxEsK", "baseDomains": "repsol.es,accounts.repsol.com" }; } gigya.providersConfig = { "facebook": { "appID": "745690488939923", "version": "v2.0" } }; gigya.samlConfig = { "errorPageURL": null, "proxyPageURL": null }; gigya.errorReport = { "enabled": true, "probability": 1 }; gigya.gmidVersion = 'ver4'; gigya.bypassCaptchaV1 = true if (gigya.__initialized) { console.warn('**** gigya.js loaded twice ****'); } else { gigya.__initialized = true; // ### end server injected code ### // API adapters /*! For license information please see gigya.adapters.web.min.js.LICENSE.txt */ !function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=363)}({0:function(e,t,i){"use strict";i.r(t),function(e){i.d(t,"__extends",(function(){return r})),i.d(t,"__assign",(function(){return o})),i.d(t,"__rest",(function(){return a})),i.d(t,"__decorate",(function(){return s})),i.d(t,"__param",(function(){return u})),i.d(t,"__metadata",(function(){return c})),i.d(t,"__awaiter",(function(){return l})),i.d(t,"__generator",(function(){return d})),i.d(t,"__exportStar",(function(){return g})),i.d(t,"__values",(function(){return f})),i.d(t,"__read",(function(){return p})),i.d(t,"__spread",(function(){return h})),i.d(t,"__spreadArrays",(function(){return v})),i.d(t,"__await",(function(){return y})),i.d(t,"__asyncGenerator",(function(){return w})),i.d(t,"__asyncDelegator",(function(){return m})),i.d(t,"__asyncValues",(function(){return _})),i.d(t,"__makeTemplateObject",(function(){return b})),i.d(t,"__importStar",(function(){return S})),i.d(t,"__importDefault",(function(){return k})),i.d(t,"__classPrivateFieldGet",(function(){return P})),i.d(t,"__classPrivateFieldSet",(function(){return I}));var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function r(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var o=function(){return(o=e||function(e){for(var t,i=1,n=arguments.length;i=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a}function u(e,t){return function(i,n){t(i,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,i,n){return new(i||(i=gigya.Promise))((function(r,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}function d(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return a}function h(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(i=r[e](t)).value instanceof y?gigya.Promise.resolve(i.value.v).then(u,c):l(o[0][2],i)}catch(e){l(o[0][3],e)}var i}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function m(e){var t,i;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,r){t[n]=e[n]?function(t){return(i=!i)?{value:y(e[n](t)),done:"return"===n}:r?r(t):t}:r}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e=f(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(t){return new gigya.Promise((function(n,r){(function(e,t,i,n){gigya.Promise.resolve(n).then((function(t){e({value:t,done:i})}),t)})(n,r,(t=e[i](t)).done,t.value)}))}}}function b(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}function k(e){return e&&e.__esModule?e:{default:e}}function P(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function I(e,t,i){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,i),i}}.call(this,i(0).__assign)},1:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return Object.defineProperty(e,"useNewOidcContextFlow",{get:function(){return this.get("useNewOidcContextFlow")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"redirectOnMissingOidcContext",{get:function(){return this.get("redirectOnMissingOidcContext")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"forceWebSdkBootstrap",{get:function(){return this.get("forceWebSdkBootstrap")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"hideSSOFrame",{get:function(){return this.get("hideSSOFrame")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"wcagContrastFix",{get:function(){return this.get("wcagContrastFix")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"newFormLinkInstanceElement",{get:function(){return this.get("newFormLinkInstanceElement")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"stopSendingReports",{get:function(){return this.get("stopSendingReports")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"setGroupApiDomainAfterLogin",{get:function(){return this.get("setGroupApiDomainAfterLogin")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"alwaysCheckCookieSave",{get:function(){return this.get("alwaysCheckCookieSave")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"fixPhoneTFATranslations",{get:function(){return this.get("fixPhoneTFATranslations")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"loadSsoFrameOnlyOnce",{get:function(){return this.get("loadSsoFrameOnlyOnce")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"setCookieSameSiteLaxSession",{get:function(){return this.get("setCookieSameSiteLaxSession")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"forceErrorReport",{get:function(){return this.get("forceErrorReport")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"skipSameScreenCheckOnSwitch",{get:function(){return this.get("skipSameScreenCheckOnSwitch")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"updateAccountInfoAsync",{get:function(){return this.get("updateAccountInfoAsync")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"sanitizeEvaluatedValue",{get:function(){return this.get("sanitizeEvaluatedValue")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useSessionVerify",{get:function(){return this.get("useSessionVerify")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useExtendedPhoneNumberRegex",{get:function(){return this.get("useExtendedPhoneNumberRegex")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"enforceAuthFlowRedirectForSocial",{get:function(){return this.get("enforceAuthFlowRedirectForSocial")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useDecodeURIComponent",{get:function(){return this.get("useDecodeURIComponent")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useOidcGetParamHashOldStyle",{get:function(){return this.get("useOidcGetParamHashOldStyle")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useViewportPollerAction",{get:function(){return this.get("useViewportPollerAction")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"ignoreInterruptionsInOidcPassiveLogin",{get:function(){return this.get("ignoreInterruptionsInOidcPassiveLogin")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"overrideAllChildContext",{get:function(){return this.get("overrideAllChildContext")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"initBackgroundWorker",{get:function(){return this.get("initBackgroundWorker")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"dispatchLoginEventWhenHandlerAdded",{get:function(){return this.get("dispatchLoginEventWhenHandlerAdded")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"enableLinkAccountsV2Fallback",{get:function(){return this.get("enableLinkAccountsV2Fallback")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"passLanguageParamsToReauthScreen",{get:function(){return this.get("passLanguageParamsToReauthScreen")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"dispatchAfterSubmitEventOnlyWhenScreenExists",{get:function(){return this.get("dispatchAfterSubmitEventOnlyWhenScreenExists")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useGetConsentStatusFromApiList",{get:function(){return this.get("useGetConsentStatusFromApiList")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"addGigSocialLoginParamToRedirectUrl",{get:function(){return this.get("addGigSocialLoginParamToRedirectUrl")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useSessionVerifyInOidcHostedPage",{get:function(){return this.get("useSessionVerifyInOidcHostedPage")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"initializeTfaProviders",{get:function(){return this.get("initializeTfaProviders")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"checkAllowEmptyForSpecialFields",{get:function(){return this.get("checkAllowEmptyForSpecialFields")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"sanitizeHashParams",{get:function(){return this.get("sanitizeHashParams")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useGigLangParam",{get:function(){return this.get("useGigLangParam")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"unicodeLettersNotSpecialChars",{get:function(){return this.get("unicodeLettersNotSpecialChars")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"ssoContinueSync",{get:function(){return this.get("ssoContinueSync")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"overrideParentSiteGlobalConfWithChildOne",{get:function(){return this.get("overrideParentSiteGlobalConfWithChildOne")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useNewPowSolution",{get:function(){return this.get("useNewPowSolution")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"oidcCookieContext",{get:function(){return this.get("oidcCookieContext")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useOuterWidthOnChromeMobile",{get:function(){return this.get("useOuterWidthOnChromeMobile")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"sendEmailVerificationCodeInForm",{get:function(){return this.get("sendEmailVerificationCodeInForm")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"checkTokenRenewDeprecation",{get:function(){return this.get("checkTokenRenewDeprecation")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"preventAutoSkipIfPhoneRequired",{get:function(){return this.get("preventAutoSkipIfPhoneRequired")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"redirectToErrorPageOnGetOidcContextDataFailure",{get:function(){return this.get("redirectToErrorPageOnGetOidcContextDataFailure")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useNewProfilePhotoRemoveBtn",{get:function(){return this.get("useNewProfilePhotoRemoveBtn")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"fireCaptchaOnErrorEvent",{get:function(){return this.get("fireCaptchaOnErrorEvent")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"seamlessSsoDisabled",{get:function(){return this.get("seamlessSsoDisabled")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"resetApiDomainOnBootstrap",{get:function(){return this.get("resetApiDomainOnBootstrap")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"mergeIncludeParamsForGetAccountInfo",{get:function(){return this.get("mergeIncludeParamsForGetAccountInfo")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"dispatchLoginEventForAuthCodeFlow",{get:function(){return this.get("dispatchLoginEventForAuthCodeFlow")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"forcePostForTfaAssertionEndpoints",{get:function(){return this.get("forcePostForTfaAssertionEndpoints")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useFullLang",{get:function(){return this.get("useFullLang")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"dontShowCaptchaError",{get:function(){return this.get("dontShowCaptchaError")},enumerable:!0,configurable:!0}),e.get=function(e){var t,i;return(null===(t=window.gigya._.config)||void 0===t?void 0:t.flags)&&(null===(i=window.gigya._.config)||void 0===i?void 0:i.flags[e])||!1},Object.defineProperty(e,"apiFlags",{get:function(){return[]},enumerable:!0,configurable:!0}),e}();t.FlagService=i},10:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(12),r=i(19),o=i(3);function a(e){return decodeURIComponent(e.replace(/\+/g," "))}function s(e,t){return e&&-1!==e.indexOf("?")?r.deserialize(e.split("#")[0].split("?")[1],"&",t):{}}t.URLEncode=function(e){return encodeURIComponent(e)},t.URLDecode=a,t.URLDecodeRecursive=function(e){for(var t="",i=e;i!=t;)i=a(t=i);return i},t.getParamsFromURL=s,t.getGigParamsFromURL=function(e){var t=e||{},i=t.url,r=t.paramPrefix,o=t.keysToLower,a=t.removePrefix,u=r||n.GIGYA_PARAM_PREFIX,c=s(i,o);return Object.keys(c).filter((function(e){return 0===e.indexOf(u)&&e!==u})).reduce((function(e,t){return e[a?t.slice(4):t]=c[t],e}),{})},t.getParamValueFromURL=function(e,t,i){if(null==t||""==t)return i;var n=t.indexOf("?");if(-1===n)return i;var r="&"+t.substr(n+1),o=r.toLowerCase().indexOf("&"+e.toLowerCase()+"=");if(-1===o)return i;var a=r.substr(o+(1+e.length+1))+"&";return o=a.indexOf("&"),a.substr(0,o)},t.addParamsToURL=function(e,t){var i=s(e);o.add(i,t);var n=e.split("#"),a=n[0].split("?")[0]+"?"+r.serialize(i,"&");return n.length>1&&(a+="#"+n[1]),a};t.getContextParamsFromUrl=function(e){var t=e||{},i=t.url,n=t.paramPrefix,r=t.unacceptableParams;return i?function(e,t){if(!t)return e;var i={};return Object.entries(e||{}).filter((function(e){var i=e[0];return!t.test(i)})).forEach((function(e){var t=e[0],n=e[1];return i[t]=n})),i}(window.gigya.utils.URL.getGigParamsFromURL({url:i,paramPrefix:n}),r):{}},t.getDeserializedParamFromUrl=function(e,t,i,n){var r;return void 0===i&&(i=""),void 0===n&&(n=!0),null!==(r=s(e,n)[n?t.toLowerCase():t])&&void 0!==r?r:i}},101:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isSignalRequest=function(e){return Boolean(e.signal)}},102:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(4),r=i(36),o=function(){function e(e,t,i){void 0===e&&(e=window.gigya.partnerSettings.ssoKey),void 0===t&&(t=window.gigya.utils.localStorage.initializeAdapter(window.gigya.utils.localStorage.CookieStorageAdapter)),void 0===i&&(i=n.localInfo.pageDomain),this._ssoKey=e,this._storage=t,this._pageDomain=i,this._cookieName="apiDomain_"+this._ssoKey}return e.prototype.get=function(){if(!r.seamlessSsoUtil.shouldDisableSeamlessSso())return this._ssoKey?this._storage.getItem(this._cookieName):void 0},e.prototype.set=function(e){r.seamlessSsoUtil.shouldDisableSeamlessSso()||this._ssoKey&&(window.gigya.logger.info("setting as group api domain for "+this._ssoKey),this._storage.removeItem(this._cookieName),this._storage.setItem(this._cookieName,e,void 0,this._pageDomain))},e}();t.GroupApiDomainService=o},103:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.GET="GET",e.POST="POST"}(t.RequestType||(t.RequestType={}))},11:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0);t.promisify=function(e,t){return void 0===t&&(t={}),new gigya.Promise((function(i){e(n.__assign(n.__assign({},t),{callback:function(e){i(e)}}))}))}},111:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.EXPIRATION_THRESHOLD=.8,t.ID_TOKEN_PARAM="idToken",t.SAPTCHA_TOKEN_PARAM="saptchaToken",t.SECOND_IN_MS=1e3},112:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(113),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.performChallenge=function(e){return this.calculateNonce(e)},t.prototype.calculateNonce=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t,i;return n.__generator(this,(function(n){switch(n.label){case 0:i=0,n.label=1;case 1:return[4,r.cryptoUtils.digest(e.algo,e.jti+"."+ ++i)];case 2:t=n.sent(),n.label=3;case 3:if(!new RegExp(e.pattern,"gi").test(t))return[3,1];n.label=4;case 4:return[2,i]}}))}))},t}(i(114).WorkerListener);t.PowChallengeService=o},113:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=function(){function e(){}return e.prototype.digest=function(e,t){return n.__awaiter(this,void 0,void 0,(function(){var i,r;return n.__generator(this,(function(n){switch(n.label){case 0:return i=(new TextEncoder).encode(t),[4,crypto.subtle.digest(e,i.buffer)];case 1:return r=n.sent(),[2,Array.from(new Uint8Array(r)).map((function(e){return e.toString(16).padStart(2,"0")})).join("")]}}))}))},e}();t.cryptoUtils=new r},114:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(92),o=function(){function e(){}return e.prototype.initialize=function(e){var t=this;this.worker=e,this.worker.onmessage=function(e){return t.onInitMessage(e)}},e.prototype.onInitMessage=function(e){var t=this;"init"===e.data.actionType&&(this.worker.onmessage=function(e){return t.handleAction(e)},this.worker.postMessage({actionType:r.workerUtil.getResponseActionType("init")}))},e.prototype.handleAction=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t,i,o,a,s;return n.__generator(this,(function(n){switch(n.label){case 0:if(e.data.actionType.startsWith("init"))return[2];if(!(t=this[e.data.actionType])&&"function"!=typeof t)throw new Error("Action not found");n.label=1;case 1:return n.trys.push([1,3,,4]),o=(i=this.worker).postMessage,a={actionType:r.workerUtil.getResponseActionType(e.data.actionType),id:e.data.id},[4,t.apply(this,e.data.args)];case 2:return o.apply(i,[(a.response=n.sent(),a)]),[3,4];case 3:return s=n.sent(),this.worker.postMessage({actionType:r.workerUtil.getResponseActionError(e.data.actionType),id:e.data.id,response:{error:s}}),[3,4];case 4:return[2]}}))}))},e}();t.WorkerListener=o},116:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(29),o=i(98),a=i(33),s=i(20),u=i(12),c=i(51);function l(){var e,t;return window.gigya.partnerSettings.ssoKey?!!(null===(t=null===(e=window.gigya.thisScript)||void 0===e?void 0:e.globalConf)||void 0===t?void 0:t.storageDomainOverride)||(window.gigya.logger.warn("Central login page must configure storageDomainOverride in webSDK Configuration"),!1):(window.gigya.logger.warn("Not in SSO Group"),!1)}t.ssoLogin=function(e){void 0===e&&(e={}),l()&&(window.gigya.utils.toggles.isOn("keepSessionOnSSOLogin")||r.remove(),window.gigya.accounts.sso.login(e))},t.continueSso=function(e){var t,i,u,c,d;return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var g,f,p,h,v,y,w,m;return n.__generator(this,(function(_){switch(_.label){case 0:return s.hold("ssoContinue","API"),g=window.gigya.logger.group("sso.continue"),f=function(e){return e&&window.gigya.logger.warn(e),s.release("ssoContinue","API"),g.end()},l()?(p=window.gigya.getUrlParam("ssoToken"),h=window.gigya.getUrlParam("scope"),p?(v=(null===(i=null===(t=window.gigya.thisScript)||void 0===t?void 0:t.globalConf)||void 0===i?void 0:i.APIKey)||(null===(u=window.gigya.thisScript)||void 0===u?void 0:u.APIKey),(w=r.get(v))?[3,2]:[4,o.syncGroupToken(v)]):[2,f("ssoToken must be present in the url")]):[2,f()];case 1:w=_.sent(),_.label=2;case 2:return(y=w)?(e.sdk="js_"+((null===(c=window.gigya.build)||void 0===c?void 0:c.version)||""),e.sdkBuild=(null===(d=window.gigya.build)||void 0===d?void 0:d.number)||0,g.end(),"device_sso"===h?(m=n.__assign({context:p,login_token:y},e),window.gigya.logger.info("redirect to oidc continue with params: ",m),window.gigya.fidm.oidc.op.redirectToContinue(n.__assign({opKey:window.gigya.partnerSettings.ssoKey},m))):(m={ssoToken:p,login_token:y,APIKey:v},window.gigya.logger.info("redirect to sso.continue with params: ",m),a.redirect("https://"+window.gigya._.getApiDomain()+"/accounts.sso.continue",[m,e],"POST")),[2]):[2,f("can't continue with SSO login, missing local session")]}}))}))},t.continueSsoSync=function(e){var t,i,o,s,u;void 0===e&&(e={});var c=window.gigya.logger.group("sso.continue"),d=function(e){return e&&window.gigya.logger.warn(e),c.end()};if(!l())return d();var g=window.gigya.getUrlParam("ssoToken"),f=window.gigya.getUrlParam("scope");if(!g)return d("ssoToken must be present in the url");var p=(null===(i=null===(t=window.gigya.thisScript)||void 0===t?void 0:t.globalConf)||void 0===i?void 0:i.APIKey)||(null===(o=window.gigya.thisScript)||void 0===o?void 0:o.APIKey),h=r.get(p);if(!h)return d("can't continue with SSO login, missing local session");if(e.sdk="js_"+((null===(s=window.gigya.build)||void 0===s?void 0:s.version)||""),e.sdkBuild=(null===(u=window.gigya.build)||void 0===u?void 0:u.number)||0,c.end(),"device_sso"===f){var v=n.__assign({context:g,login_token:h},e);window.gigya.logger.info("redirect to oidc continue with params: ",v),window.gigya.fidm.oidc.op.redirectToContinue(n.__assign({opKey:window.gigya.partnerSettings.ssoKey},v))}else{v={ssoToken:g,login_token:h,APIKey:p};window.gigya.logger.info("redirect to sso.continue with params: ",v),a.redirect("https://"+window.gigya._.getApiDomain()+"/accounts.sso.continue",[v,e],"POST")}},t.getSsoContext=function(e){var t;null==e||e.callback((null===(t=window.gigya._.sso)||void 0===t?void 0:t.context)||{})},t.setSsoContext=function(e){try{var t=(new c.default).getGigParamsFromURL().removeUnacceptableParams(new RegExp(u.GIGYA_INTERNAL_PARAM_PREFIX+"|"+u.GIGYA_INTERNAL_PARAMS+"|gig_ssoToken")).removePrefix().toObject(),i=(null==e?void 0:e.rpContext)?JSON.parse(e.rpContext):{};window.gigya._.sso.context=n.__assign(n.__assign({},t),i)}catch(e){window.gigya.logger.report("failed to set sso context")}}},12:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.gigyaPhone=0]="gigyaPhone",e[e.gigyaTotp=1]="gigyaTotp",e[e.gigyaPush=2]="gigyaPush",e[e.livelink=3]="livelink"}(t.EditableTfaProvidersTypes||(t.EditableTfaProvidersTypes={})),t.gigyaAssertionExpiration=3e5,t.sensitiveParamsOverride="login_token",t.sensitiveParamsOverrideNew="login_token|gigyaAssertion",t.GIGYA_PARAM_PREFIX="gig_",t.GIGYA_INTERNAL_PARAM_PREFIX=t.GIGYA_PARAM_PREFIX+"i_",t.GIGYA_INTERNAL_PARAMS=t.GIGYA_PARAM_PREFIX+"actions"},122:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(27),o=i(101),a=function(){function e(e,t,i,a,s){var u=this;void 0===t&&(t=r.getParentUrl()),void 0===i&&(i=r.getAllClassMethodsNames(e)),void 0===a&&(a=window.parent),void 0===s&&(s=window),this._service=e,this.origin=t,this._allowedMethods=i,this._target=a,this._win=s,this.stopCancellers=[],this._listening=!1,this.onRequest=function(e){return n.__awaiter(u,void 0,void 0,(function(){var t,i;return n.__generator(this,(function(n){switch(n.label){case 0:if(!r.validateOrigin(this.origin,e.origin))return[3,7];t=JSON.parse(e.data),n.label=1;case 1:return n.trys.push([1,6,,7]),o.isSignalRequest(t)?[4,this.handleSignalRequest(t)]:[3,3];case 2:return n.sent(),[3,5];case 3:return[4,this.handleProxyRequest(t)];case 4:n.sent(),n.label=5;case 5:return[3,7];case 6:return i=n.sent(),this.postError({res:i.message||i,id:t.id}),[3,7];case 7:return[2]}}))}))},this._serviceName=this.getServiceName(this._win)}return Object.defineProperty(e.prototype,"isListening",{get:function(){return this._listening},enumerable:!0,configurable:!0}),e.prototype.listen=function(e){var t=this;this.isListening||this._win.setTimeout((function(){t._win.addEventListener("message",t.onRequest,!0),t.postMessage({id:void 0,signal:"listening",res:e}),t._listening=!0}),1)},e.prototype.postError=function(e){e.signal="error",this.postMessage(e)},e.prototype.stopListen=function(){this.isListening&&(this._win.removeEventListener("message",this.onRequest,!0),this._listening=!1)},e.prototype.handleSignalRequest=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t,i,r;return n.__generator(this,(function(n){switch(n.label){case 0:switch(this.logServiceMismatch(e),e.signal){case"stop":return[3,1]}return[3,7];case 1:return[4,this.getCancelResult()];case 2:return t=n.sent(),i=void 0,t?[3,5]:(this.stopListen(),r=void 0,this.onStop&&(r=this.onStop()).then?[4,r]:[3,4]);case 3:r=n.sent(),n.label=4;case 4:return i={id:e.id,signal:"stop",res:r},[3,6];case 5:i={id:e.id,signal:"error",res:t},n.label=6;case 6:return this.postMessage(i),[3,8];case 7:return[3,8];case 8:return[2]}}))}))},e.prototype.getCancelResult=function(){return n.__awaiter(this,void 0,void 0,(function(){var e,t,i,r;return n.__generator(this,(function(n){switch(n.label){case 0:e=0,t=this.stopCancellers,n.label=1;case 1:return e0&&window.setTimeout((function(){t.send()}),i)},e.prototype.getCacheKey=function(){return this.method+"_"+window.gigya.utils.keyValue.serialize(this.params)},e.prototype.getFullUrl=function(){return this.getUrl().addToSearch(this.getFlattenParams()).href},e.prototype.addDefaultParams=function(){var e,t;this.params.sdk="js_"+((null===(e=window.gigya.build)||void 0===e?void 0:e.version)||""),this.params.sdkBuild=(null===(t=window.gigya.build)||void 0===t?void 0:t.number)||0},e.prototype.isRequestPathManipulated=function(){return this.getUrl().href.toLowerCase()!==(this.baseDomain+"/"+this.method).toLowerCase()||this.getUrl().search.length>0},e.prototype.getDataPendingTimeout=function(e){return e<=4?500:e<=8?1e3:e<=21?2e3:e<=39?5e3:-1},e.prototype.getRequestType=function(){return this.isForcePost||this.haveSensitiveParams()||this.requestOversize()?r.RequestType.POST:r.RequestType.GET},Object.defineProperty(e.prototype,"isForcePost",{get:function(){return this.settings.forcePost},enumerable:!0,configurable:!0}),e.prototype.requestOversize=function(){var e=this.getRequestUrlLength(),t=this.getUrlLengthFields();return e+t.extraLength>t.maxLength},e.prototype.getRequestUrlLength=function(){return(this.getUrl().href+window.gigya.utils.keyValue.serialize(this.getFlattenParams())).length},e.prototype.getUrlLengthFields=function(){var e=0;return(window.gigya.localInfo.isIE||window.gigya.localInfo.isEdgeLegacy)&&(e=2048),{extraLength:e,maxLength:4096}},e.prototype.getFlattenParams=function(){return window.gigya.utils.keyValue.deserialize(window.gigya.utils.keyValue.serialize(this.params))},e.prototype.haveSensitiveParams=function(){for(var e,t=s.FlagService.forcePostForTfaAssertionEndpoints?a.sensitiveParamsOverrideNew:a.sensitiveParamsOverride,i=0,n=null==t?void 0:t.split("|");i-1&&(r=r.substring(0,o)+":null")}return r},OldEvaluator}(),evaluator=new OldEvaluator;exports.default=evaluator},135:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Social=0]="Social",e[e.Sso=1]="Sso"}(t.OAuthMode||(t.OAuthMode={}))},14:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(4),r=i(37),o=i(9);t._popupContainers=[],t._pseudoContainers=[];var a=999999999,s=null;function u(){return++a}function c(e,t,i){e&&i&&(e.addEventListener?e.addEventListener(t,i,!0):e.attachEvent("on"+t,i))}function l(e,t,i){e&&i&&(e.removeEventListener?e.removeEventListener(t,i,!0):e.detachEvent("on"+t,i))}function d(){s&&(l(window,"hashchange",s),s=null,window.location.hash=window.location.hash.replace("|gigyaMobileDialog",""))}function g(e,t){void 0===t&&(t=window.document),t.body&&t.body.appendChild(e)}function f(e){var t=[];return"string"==typeof e.className&&(t=e.className.split(" ")),t}function p(e,t){if(!e)return!1;if(!t)return!0;if(!e.className)return!1;for(var i=!1,n=f(e),r=0;r=0;r--){var o=i[r],a=o.src.toLowerCase();if(""!==a)if(n.test(a)||a.indexOf("?apikey=")>-1)if(0===e.length||e.some((function(e){return a.indexOf(e)>-1}))){t=o;break}}return t},t.dispatch=function(e,t){var i;try{i=new Event(t)}catch(e){(i=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,{})}e.dispatchEvent(i)},t.addButtonSubmitListener=function(e,t,i,n){void 0===i&&(i="click"),e&&(e.setAttribute("role","button"),"-1"!=e.getAttribute("tabindex")&&e.setAttribute("tabindex","0"),c(e,i,(function(e){return t(e)})),c(e,"keydown",(function(e){13==(e.which||e.keyCode)&&(e.preventDefault(),t(e))})))},t.addEventListener=c,t.addActivationHandler=function(e,t){e&&t&&(this.addEventListener(e,"keydown",(function(e){"Space"!==e.code&&"Enter"!==e.code||t()})),this.addEventListener(e,"click",t))},t.removeEventListener=l,t.disableDefaultEventHandling=function(e){e.preventDefault?e.preventDefault():window.event&&(window.event.returnValue=!1)},t.addDialogBackListener=function(e){d(),s=function(t){t&&t.newURL&&-1==t.newURL.indexOf("|gigyaMobileDialog")&&(e(t),d())},window.setTimeout((function(){-1==window.location.hash.indexOf("|gigyaMobileDialog")&&(window.location.hash=window.location.hash+"|gigyaMobileDialog"),c(window,"hashchange",s)}),50)},t._removeDialogBackListener=d,t.prependToBody=function(e,t){void 0===t&&(t=window.document),t.body&&(t.body.insertBefore&&t.body.firstChild?t.body.insertBefore(e,t.body.firstChild):t.body.appendChild(e))},t.appendToBody=g,t.removeElement=function(e){e&&e.parentElement&&e.parentElement.removeChild(e)},t.isChildOf=function(e,t){for(var i=e.parentNode;i;){if(t==i)return!0;i=i.parentNode}return!1},t.isVisible=function(e){for(;e;){var t=getComputedStyle(e);if("none"===t.display||"hidden"===t.visibility)return!1;e=e.parentElement}return!0},t.getCenteredDivID=function(e){return"gig_"+n.localInfo.initTime.getTime().toString()+"_"+e},t.createElementWithAttributes=function(e,t){var i=document.createElement(e);if(t)for(var n in t)i[n]=t[n];return i},t.createTopLevelDiv=function(e){var t=document.createElement("div");return null!=t.style.zIndex&&(t.style.zIndex=""+u()),t.innerHTML="",e&&(t.id=e),document.body&&(document.body.insertBefore&&document.body.firstChild?document.body.insertBefore(t,document.body.firstChild):document.body.appendChild&&document.body.appendChild(t)),t},t.hideByID=function(e){var t=document.getElementById(e);t&&(t.style.display="none")},t.showByID=function(e){var t=document.getElementById(e);t&&(t.style.display=n.localInfo.isIE6?"TD"==t.tagName?"table-cell":"TR"==t.tagName||"TABLE"==t.tagName?"":"block":"")},t.clearByID=function(e){try{var t=document.getElementById(e);null!=t&&(t.innerHTML="")}catch(e){}},t.getHTMLSize=function(e,t){var i=document.createElement("div");i.style.position="absolute",i.style.left="-1000px",i.innerHTML=e,t.appendChild(i);var n=i.offsetWidth,r=i.offsetHeight;return i.parentNode.removeChild(i),{w:n,h:r}},t.getElementsByClass=function(e,t,i){if(!e)return[];var n=[];i&&p(e,t)&&n.push(e);for(var r=e.getElementsByTagName("*"),o=0;o=0;r--)(n[r]===t||i&&-1!==n[r].indexOf(t))&&n.splice(r,1);e.className=n.join(" ")}},t.getClassNames=f,t.isElementClass=p,t.cancelEvent=function(e){e&&("cancelable"in e?e.preventDefault():e.returnValue=!1)},t.createElement=function(e,t){var i=document.createElement("div");return t=t||"",i.innerHTML="<"+e+' name="'+t+'" id="'+t+'">",i.firstChild},t.setSize=function(e,t,i,n){if(null!=e&&null!=e.style){if(t){var o=(t=""+t).indexOf("%")>0;if(!isNaN(t)||o){var a=""+(o?t:t+"px");e.style.width!=a&&(e.style.width=a)}}if(i){var s=(i=""+i).indexOf("%")>0;if(!isNaN(t)||s){var c=""+(s?i:i+"px");e.style.height!==c&&(e.style.height=c)}}if(n&&t&&i){(null==e.style.zIndex||n)&&(e.style.zIndex=""+u());var l=r.getInnerSize(),d=r.getScroll(),g=d.top,f=d.left;e.style.top=Math.max(0,g+Math.floor((l.h-i)/2))+"px",e.style.left=Math.max(0,f+Math.floor((l.w-t)/2))+"px",e.style.visibility=""}}},t.createHiddenIframe=function(e){var t=document.createElement("iframe");return t.src=e,t.style.width="30px",t.style.height="10px",t.style.position="absolute",t.style.top="-1000px",t.style.left="-1000px",document.body?g(t):o.invokeOnPageLoad((function(){g(t)})),t},t.attributeEncode=function(e){return e.replace(//g,">").replace(/\"/g,""").replace(/\'/g,"'")},t.manipulateAttributes=function(e,t,i,n){void 0===n&&(n=function(){return!0}),e.forEach((function(e){e.attributes&&Array.prototype.slice.call(e.attributes).forEach((function(e){n(e)&&(e.value=e.value.replace(t,i))}))}))},t.textNodesUnder=function(e){for(var t,i=[],n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1);t=n.nextNode();)i.push(t);return i},t.isHTMLBooleanAttribute=function(e){return["autocomplete","autofocus","checked","disabled","hidden","readonly","required","selected"].indexOf(e)>-1},t.isBelongToGigyaFieldset=function e(t){return!(!t||t instanceof HTMLFormElement)&&(!!p(t.parentElement,"gigya-fieldset")||e(t.parentElement))},t.getClosestElement=function(e,t,i){for(void 0===i&&(i=document),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);e&&e!==i;e=e.parentNode)if(null==e?void 0:e.matches(t))return e;return null},t.createElementFromTemplate=function(e){var t;void 0===e&&(e="");var i=document.createElement("div");return i.innerHTML=null==e?void 0:e.trim(),null!==(t=i.firstChild)&&void 0!==t?t:i},t.isParentHasClass=function e(t,i){var n;return!!(null===(n=null==t?void 0:t.classList)||void 0===n?void 0:n.contains(i))||!!(null==t?void 0:t.parentElement)&&e(null==t?void 0:t.parentElement,i)}},143:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(102),o=i(171),a=i(123).GmidProvider.HasGmid,s=i(1);t.TokenKeys={GMID:"gig_gmid",UCID:"gig_ucid",GMID_TICKET:"gmidTicket",GMID_TICKET_EXPIRATION_TIME:"gmidTicketExpiration"};var u=function(){function e(e,t,i,n,a,s){void 0===n&&(n=new r.GroupApiDomainService),void 0===a&&(a=new o.RequestProvider),this._apiKey=e,this._hasGmid=t,this._domainResolver=i,this._groupApiDomainService=n,this._requestProvider=a,this.didFallback=!1,s&&(this._storage=s)}return e.prototype.getApiDomain=function(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){return[2,this._domainResolver.getApiDomain(e)]}))}))},e.prototype.bootstrap=function(e){return void 0===e&&(e=!1),n.__awaiter(this,void 0,void 0,(function(){var t,i,r,o,a,s;return n.__generator(this,(function(n){switch(n.label){case 0:return t=window.gigya.logger.group("bootstrap api service"),this._storage?[3,2]:(window.gigya.logger.debug("init storage"),i=this,[4,new gigya.Promise((function(e){window.gigya.utils.localStorage.waitForService((function(t){e(t)}))}))]);case 1:i._storage=n.sent(),n.label=2;case 2:return!this._hasGmid||e?[3,3]:(window.gigya.logger.info("already has gmid"),[3,10]);case 3:if(window.gigya.logger.info(this._hasGmid?"forcing bootstrap":"no gmid set"),this._useStorage||!this.canSaveGmidAsCookie())return[3,8];window.gigya.logger.info("save gmid as cookie"),n.label=4;case 4:return n.trys.push([4,6,,7]),[4,this.sendRequest({methodName:"accounts.webSdkBootstrap",params:{apiKey:this._apiKey}})];case 5:if(0!==(r=n.sent()).errorCode)throw"error bootstrapping sdk\n"+JSON.stringify(r,null,4);return[3,7];case 6:throw o=n.sent(),new Error("accounts.webSdkBootstrap failed: "+o);case 7:return[3,10];case 8:return window.gigya.logger.info("save gmid in storage"),[4,this.setupWithStorage(e)];case 9:n.sent(),this._useStorage=!0,n.label=10;case 10:return this._useStorage?[4,this.getGmidTicket()]:[3,12];case 11:return a=n.sent(),[3,13];case 12:s=window.gigya.utils.cookie.get("hasGmid")||(null==r?void 0:r.hasGmid),this.cleanStorage(),n.label=13;case 13:return t.end(),[2,{ticketInfo:a,hasGmid:s}]}}))}))},e.prototype.setGroupApiDomain=function(e){window.gigya._.getBaseDomain(window.gigya.partnerSettings.baseDomains,this._domainResolver.originDomain,["gigya.com","cn1.sapcdm.cn",window.gigya.defaultApiDomain])!==window.gigya.defaultApiDomain&&this._groupApiDomainService.set(e)},e.prototype.canSaveGmidAsCookie=function(){return s.FlagService.alwaysCheckCookieSave?this._domainResolver.isApiDomainFirstParty||this._domainResolver.canSaveGmidAsCookie:this._domainResolver.isApiDomainFirstParty||window.gigya.utils.cookie.canSaveCookie()},e.prototype.sendRequest=function(e){var i,r;return n.__awaiter(this,void 0,void 0,(function(){var o,a,u,c,l,d;return n.__generator(this,(function(n){switch(n.label){case 0:return e?(o=e.methodName,(a=window.gigya.utils.object.clone(e.params,!0,!0)).pageURL=this._domainResolver.originDomain,this._useStorage&&(a.gmid=this._storage.getItem(t.TokenKeys.GMID),a.ucid=this._storage.getItem(t.TokenKeys.UCID)),c="https://",[4,this.getApiDomain(null!==(r=null===(i=e.settings)||void 0===i?void 0:i.namespace)&&void 0!==r?r:e.methodName)]):(window.gigya.logger.error("ApiService: request data must has methodName and params"),[2]);case 1:u=c+n.sent(),n.label=2;case 2:return n.trys.push([2,4,,5]),[4,this._requestProvider.send(u,o,a,e.settings,e.headers)];case 3:return l=n.sent(),[3,5];case 4:return d=n.sent(),!s.FlagService.apiFlags.length||this.didFallback?l=d:(this.didFallback=!0,l=this.sendRequestFallback(u,o,a,e,d)),[3,5];case 5:return[2,l]}}))}))},e.prototype.setupWithStorage=function(e){var i;return n.__awaiter(this,void 0,void 0,(function(){var r,o,s,u,c,l;return n.__generator(this,(function(n){switch(n.label){case 0:return r=this._storage.getItem(t.TokenKeys.GMID),o=parseInt(this._storage.getItem(t.TokenKeys.GMID_TICKET_EXPIRATION_TIME)),s=Boolean(r),u=null===(i=window.gigya.utils.array.getArrayFromString(r,"."))||void 0===i?void 0:i[1],e&&u!==a.ver4||!s?(window.gigya.logger.info("getting gmid by endpoint"),[4,this.getIds()]):[3,2];case 1:if(!(c=n.sent()).gcid||!c.ucid)throw"ApiService getIDs: the request to the endpoint failed";return window.gigya.logger.info("setting gmid in storage"),this._storage.setItem(t.TokenKeys.GMID,c.gcid),this._storage.setItem(t.TokenKeys.UCID,c.ucid),l=this.createTicketResponse(c.gmidTicket),this.updateGmidTicket(l),[3,5];case 2:return window.gigya.utils.validation.isLaterThanNow(o)?[3,4]:[4,this.refreshGmidTicketFromServer()];case 3:return n.sent(),[3,5];case 4:window.gigya.logger.info("already has gmid in storage"),n.label=5;case 5:return[2]}}))}))},e.prototype.getGmidTicket=function(e){return void 0===e&&(e=!1),n.__awaiter(this,void 0,void 0,(function(){var i,r;return n.__generator(this,(function(n){switch(n.label){case 0:return(i=this._storage.getItem(t.TokenKeys.GMID_TICKET))||e?[3,1]:[2,void 0];case 1:return r=parseInt(this._storage.getItem(t.TokenKeys.GMID_TICKET_EXPIRATION_TIME)),!e&&i&&window.gigya.utils.validation.isLaterThanNow(r)?[2,{gmidTicket:i,expirationTime:parseInt(this._storage.getItem(t.TokenKeys.GMID_TICKET_EXPIRATION_TIME))}]:[3,2];case 2:return this.deleteGmidTicket(),[4,this.refreshGmidTicketFromServer()];case 3:return[2,n.sent()]}}))}))},e.prototype.sendReport=function(e,t){return n.__awaiter(this,void 0,void 0,(function(){var i,r;return n.__generator(this,(function(n){switch(n.label){case 0:return Math.floor(100*Math.random())<=5?[2]:(i={message:e,apiKey:window.gigya.apiKey,page:this._domainResolver.originDomain,buildVersion:window.gigya.build.version,format:"json",sdk:"web"},t&&(i.details=JSON.stringify(t)),r={methodName:"sdk.errorReport",params:i},[4,this.sendRequest(r)]);case 1:return n.sent(),[2]}}))}))},e.prototype.refreshGmidTicketFromServer=function(){return n.__awaiter(this,void 0,void 0,(function(){var e;return n.__generator(this,(function(i){switch(i.label){case 0:return window.gigya.logger.info("refreshing gmid ticket"),[4,this.createGmidTicket(this._storage.getItem(t.TokenKeys.GMID))];case 1:return(e=i.sent())&&e.gmidTicket&&this.updateGmidTicket(e),[2,e]}}))}))},e.prototype.updateGmidTicket=function(e){window.gigya.logger.info("updating gmid ticket",e),this._storage.setItem(t.TokenKeys.GMID_TICKET,e.gmidTicket),this._storage.setItem(t.TokenKeys.GMID_TICKET_EXPIRATION_TIME,String(e.expirationTime))},e.prototype.deleteGmidTicket=function(){this._storage.removeItem(t.TokenKeys.GMID_TICKET),this._storage.removeItem(t.TokenKeys.GMID_TICKET_EXPIRATION_TIME)},e.prototype.cleanStorage=function(){this._storage.removeItem(t.TokenKeys.GMID),this._storage.removeItem(t.TokenKeys.UCID),this.deleteGmidTicket()},e.prototype.getIds=function(){return this.sendRequest({methodName:"socialize.getIDs",params:{APIKey:this._apiKey,includeTicket:!0}})},e.prototype.createGmidTicket=function(e,t){var i=this;void 0===t&&(t=window.gigya.partnerSettings.gmidTicketExpiration||3600);var n={apiKey:this._apiKey,expires:t};return e&&(n.gmid=e),this.sendRequest({methodName:"socialize.getGmidTicket",params:n}).then((function(e){if(e&&e.gmidTicket)return i.createTicketResponse(e.gmidTicket);window.gigya.logger.error("Failed to establish gmidTicket",{response:JSON.stringify(e),method:"socialize.getGmidTicket"}),i.deleteGmidTicket()}))},e.prototype.createTicketResponse=function(e){var t=new Date;return t.setHours(t.getHours()+1),{gmidTicket:e,expirationTime:t.getTime()}},e.prototype.sendRequestFallback=function(e,t,i,r,o){return n.__awaiter(this,void 0,void 0,(function(){var a,u,c;return n.__generator(this,(function(n){switch(n.label){case 0:for(window.gigya.logger.report("ApiService: Fallback with api flags turned off",{baseDomain:e,methodName:t,params:i,data:r,err:o}),a=0,u=s.FlagService.apiFlags;a0;if(d===l)return!0;var g=r.localInfo.pageDomain;return(l=this._setCookieInternal(e,t,s,c,g,a))===d},e.prototype.get=function(e){return this._cookieStore.getCookie(e)},e.prototype.getCookieNamesByPrefix=function(e){var t;return(null===(t=this._cookieStore.getAllCookieNames())||void 0===t?void 0:t.filter((function(t){return t.startsWith(e)})))||[]},e.prototype.remove=function(e,t){void 0===t&&(t=r.localInfo.pageDomain),this._removeFromBaseDomains(e,t),this.set(e,"",-1,"",!1),this.set(e,"",-1,"",!0)},e.prototype.getInfiniteExpirationTimeInSeconds=function(){return 31536e3},e.prototype.canSaveCookie=function(t){void 0===t&&(t=null);try{return this.set(e.testCookieName,"true",1,t,null)}catch(e){return!1}},e.prototype.getDefaultDomain=function(e,t){return void 0===e&&(e=r.localInfo.pageDomain),void 0===t&&(t=r.localInfo.baseDomain||""),t.length>0&&e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length?t:e},e.prototype._getExpirationInMs=function(e){return null==e||""===e||isNaN(e)?1e3*this.getInfiniteExpirationTimeInSeconds():0==e?null:1e3*e},e.prototype._setCookieInternal=function(t,i,n,o,a,s){var u;void 0===s&&(s=e._getSameSiteMode());var c=0===(null!==(u=null===r.localInfo||void 0===r.localInfo?void 0:r.localInfo.protocol)&&void 0!==u?u:document.location.protocol).indexOf("https");return this._cookieStore.setCookie(t,i,{path:n,expires:o,domain:a,sameSite:s,secure:c}),!!this.get(t)||!!s&&("None"!==s&&this._fallbackToSameSiteNone(t,i,n,o,a,c),this.get(t)?(this._reportFallback("Setting SameSite=None",{name:t,value:i,sameSiteMode:s}),!0):(this._cookieStore.setCookie(t,i,{path:n,expires:o,domain:a,secure:c}),!!this.get(t)&&(this._reportFallback("Cookie established only without sameSite mode",{name:t,value:i,sameSiteMode:s}),!0)))},e.prototype._removeFromBaseDomains=function(e,t){for(var i=t.split("."),n=0;n-1||n.indexOf("iPad; CPU OS 12")>-1||n.indexOf("Macintosh; Intel Mac OS X 10_14")>-1&&n.indexOf("Version/")>-1&&n.indexOf("Safari")>-1||n.indexOf("Chrome/5")>-1&&n.indexOf("Chrome/6")>-1},e.prototype._fallbackToSameSiteNone=function(e,t,i,n,r,o){this._cookieStore.setCookie(e,t,{path:i,expires:n,domain:r,sameSite:"None",secure:o})},e.prototype._reportFallback=function(e,t){window.gigya.logger.report("Cookie Policy Fallback: "+e,n.__assign(n.__assign({},t),{isIframe:this._isIFrame()}),!1)},e.prototype._isIFrame=function(){var e;try{return(null===window||void 0===window?void 0:window.location)!==(null===(e=null===window||void 0===window?void 0:window.parent)||void 0===e?void 0:e.location)}catch(e){return!0}},e.testCookieName="gig3pctest",e}();t.CookieUtils=a,t.default=new a},19:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(10),r=i(5),o=i(1);function a(e){var t=unescape(e),i=n.URLDecode(e);return 0!==t.localeCompare(i)&&window.gigya.logger.report("urlDecoder and unescaped have different values",{unescapedResult:t,urlDecodeResult:i}),i}t.serialize=function(e,t){var i=[];for(var o in t||(t="&"),e)switch(typeof e[o]){case"function":break;case"object":null!=e[o]&&i.push(o+"="+n.URLEncode(r.serialize(e[o])));break;case"undefined":break;default:i.push(o+"="+n.URLEncode(e[o]))}return i.join(t)},t.deserialize=function(e,t,i,r){var s={};if(!e)return s;t||(t="&");for(var u=e.split(t),c=0;c-1?e.substring(0,i):e},t.LastIndexOf=function(e,t,i){void 0===i&&(i=0);for(var n=e.length;--n>=i;)if(e[n]===t)return n;return-1},t.ForEach=o,t.ForEachProp=function(e,t){for(var i in e)e.hasOwnProperty(i)&&t(e[i],i,e)},t.Some=function(e,t){for(var i=0;i47&&e<58||32==e||13==e||e>64&&e<91||e>95&&e<112||e>185&&e<193||e>218&&e<223},t.UnitMeasurementType={pixel:"px",percentage:"%",auto:""},t.getUnitMeasurementType=function(e){return void 0===e&&(e=""),null===e||"auto"==e?t.UnitMeasurementType.auto:-1!=e.indexOf("%")?t.UnitMeasurementType.percentage:t.UnitMeasurementType.pixel},t.getAttributesAsArray=u,t.endsWith=function(e,t){return-1!==e.indexOf(t,e.length-t.length)},t.hasIndex=function(e){return/\[[0-9]]|\.[0-9]/.test(e)},t.removeSerializedKeyLastEnumerator=function(e){return e.replace(/[0-9]\.(?=[^.]*$)/,"").replace(/\[[0-9]](?=[^\[]*$)/,"")},t.removeSerializedKeyEdgeProperty=function(e){return e.substr(0,e.lastIndexOf("."))},t.IETemplateElementPolyfill=function(e){if(void 0===e&&(e=document),!("content"in document.createElement("template")))for(var t,i,n,r=Array.prototype.slice.call(document.getElementsByTagName("template")),o=0;(t=r[o++])&&!t.content;){for(i=t.children,n=document.createDocumentFragment();i[0];)n.appendChild(i[0]);t.content=n}},t.replaceAttribute=function(e,t,i){try{o(null==e?void 0:e.querySelectorAll("["+t+"]"),(function(e){e.setAttribute(i,e.getAttribute(t)),e.removeAttribute(t)}))}catch(e){}},t.isDOMXSS=function(e){var t=document.createElement("span");return t.innerText=e,t.innerHTML!==e},t.delayedFocus=function(e,t){void 0===t&&(t=0),setTimeout((function(){return null==e?void 0:e.focus()}),t)},t.isPhoneNumber=function(e){return/^\+\d+$/.test(e)}},20:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i={};function n(e){if(!i[e])return!1;for(var t in i[e].ids)return!0;return!1}function r(e,t,n){i[e]||(i[e]={q:[],ids:{}}),i[e].q.push({func:t,args:n})}t._servicesStatus=function(){var e={};for(var t in i){var r=n(t);e[t]=r?{active:!0,waitingFor:i[t].ids,queuedCount:i[t].q.length}:{active:!1}}return e},t.isActive=n,t.release=function(e,t){if(window.gigya.logger.debug("releasing "+t+" queue by "+e),i[t]&&(delete i[t].ids[e],!n(t))){var r=i[t].q;for(i[t].q=[];r.length>0;){var o=r.splice(0,1)[0];try{o.func.apply(this,o.args)}catch(i){"object"==typeof console&&console.log&&console.log("Gigya: Exception while invoking queued method ("+t+": "+e+")")}if(n(t)){i[t].q=r;break}}}},t.hold=function(e,t){window.gigya.logger.debug("locking queue "+t+" by "+e),i[t]||(i[t]={q:[],ids:{}}),i[t].ids[e]=!0},t.waitFor=r,t.queueForExecution=function(e,t,i){i=i||[],n(e)?r(e,t,i):t.apply(this,i)}},217:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=function(e){function t(t,i,n,r,o){void 0===r&&(r={});var a=e.call(this,window.gigya.defaultApiDomain,t,i,r)||this;return a.methodName=t,a.params=i,a.callback=n,a.settings=r,a.headers=o,a}return n.__extends(t,e),t.prototype.sendAction=function(e){window.gigya.utils.object.add(this.params,this.getAuthParams()),window.gigya._.apiAdapters.web.apiService.sendRequest(this.json()).then(this.callback).catch((function(e){return console.error(e)}))},t.prototype.json=function(){return{methodName:this.methodName,params:this.params,settings:this.settings,headers:this.headers}},t}(i(173).BaseRequest);t.ApiRequest=r},218:function(e,t,i){(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(173),o=i(135),a=i(1),s=i(43),u=i(62),c=["twitter"],l=function(t){function i(e,i,n,r,o,a){void 0===a&&(a={});var s=t.call(this,i,n,r,a)||this;return s.id=e,s.baseUrl=i,s.methodName=n,s.params=r,s.callback=o,s.settings=a,s.windowName=s.methodName.replace(/\./g,"_").replace(/\//g,"")+"_"+(new Date).getTime(),s.requestID=s.windowName+(new Date).getTime(),s}return n.__extends(i,t),i.prototype.beforeRequest=function(){},i.prototype.afterResponse=function(e){e.dontClose&&"false"!==e.dontClose||window.gigya.utils.win.close(this.windowName),this.callback(e)},i.prototype.getAuthFlow=function(){return window.gigya.localInfo.isWindowsPhone||window.gigya.localInfo.isFacebookBrowser||this.enforceRedirectForSocial?"redirect":this.params.authFlow?this.params.authFlow:"popup"},i.prototype.getServerParamsString=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t,i;return n.__generator(this,(function(n){switch(n.label){case 0:return(t=this.getServerParams()).state=this.getState(this.requestID,this.methodName,this.getAuthFlow()),this.settings.oauthMode===o.OAuthMode.Sso&&(delete t.context,"redirect"!=this.getAuthFlow()&&t.redirectURL&&window.gigya.logger.warn('redirectURL is valid only for "Redirect" auth flow')),window.gigya.utils.object.add(t,this.getAuthParams()),[4,window.gigya._.apiAdapter.getGmidTicket()];case 1:return(i=n.sent())&&(t.gmidTicket=i),this.sentLoginToken=t.login_token,"device_sso"===window.gigya.utils.URL.getParamsFromURL(window.location.href).scope&&"line"===(null==e?void 0:e.name)&&(t.x_forceAuthentication=!0),[2,window.gigya.utils.keyValue.serialize(t)]}}))}))},i.prototype.sendAction=function(){return n.__awaiter(this,void 0,void 0,(function(){var e,t,i,r,o,a,s=this;return n.__generator(this,(function(n){switch(n.label){case 0:return this.beforeRequest(),this.params.provider&&(e=window.gigya.socialize._getProviderByName(this.params.provider)),[4,this.getServerParamsString(e)];case 1:return t=n.sent(),i={menubar:0,resizable:1,scrollbars:1,width:e?e.width:void 0,height:e?e.height:void 0},this.params.enablePopupLocation?(i.location=1,i.toolbar=1):i.toolbar=0,r=this.methodName.split("."),o=this.params.originalMethodName||r[r.length-1],window.gigya.legacyReports.report(o,this.params.APIKey,this.params.cid,this.params.source,this.params.sourceData,{sn:e?e.toString():null}),a=this.getUrl()+"?"+t,"redirect"===this.getAuthFlow()?window.gigya._.WindowProvider.top().document.location.href=a:(window.gigya.utils.xd.addMessageListener(this.requestID,this.params,!0,(function(e){s.afterResponse(e)})),window.gigya.utils.win.open(a,this.windowName,i)),[2]}}))}))},Object.defineProperty(i.prototype,"domain",{get:function(){return document.location.href.split("?")[0].split("#")[0]},enumerable:!0,configurable:!0}),i.prototype.getServerParams=function(){var e;switch(null===(e=this.settings)||void 0===e?void 0:e.oauthMode){case o.OAuthMode.Sso:return this._normalizeParamsForSSO();case o.OAuthMode.Social:default:return this._normalizeParamsForSocial()}},i.prototype.getState=function(e,t,i){var n;switch(null===(n=this.settings)||void 0===n?void 0:n.oauthMode){case o.OAuthMode.Sso:return this._createSSOStateParam(e,t,i);case o.OAuthMode.Social:default:return this._createSocialStateParam(e,t,i)}},i.prototype._normalizeParamsForSSO=function(){return e({APIKey:window.gigya.apiKey,redirectURL:window.top.document.location.href},this.params)},i.prototype._normalizeParamsForSocial=function(){var e={};for(var t in this.params)0!==t.indexOf("x_")&&null!=this.params[t]&&(e["x_"+t]=this.params[t],delete e[t]);e.x_APIKey&&(e.client_id=e.x_APIKey,delete e.x_APIKey),e.x_oauth_token&&(e.oauth_token=e.x_oauth_token,delete e.x_oauth_token),e.redirect_uri="/GS/AfterLogin.aspx",e.response_type=this.params.authCodeOnly?"code":"server_token",e.x_sdk="js_"+window.gigya.build.version,a.FlagService.enforceAuthFlowRedirectForSocial&&(e.x_authFlow=this.getAuthFlow());var i=window.gigya.utils.cookie.get("_gigRefUid_"+this.params.APIKey);return i&&(e.x_refUID=i),delete e.redirectURL,e},i.prototype._createSSOStateParam=function(e,t,i){var n=this._state;return n.id=e,n.context=this.params.context||{},n.gig_actions="sso.login",n.authFlow=i||"redirect",decodeURIComponent(JSON.stringify(n))},i.prototype._createSocialStateParam=function(e,t,i){var n=this._state;if(n.id=e,"redirect"===i){var r=window.gigya._.WindowProvider.top().document.location.href;n.sourceURL=r,this.params.redirectURL?(n.redirectURL=window.gigya.utils.URL.addParamsToURL(this.params.redirectURL,{gig_events:window.gigya.events.global.getEventsForOperation(t)}),a.FlagService.addGigSocialLoginParamToRedirectUrl&&(n.redirectURL=window.gigya.utils.URL.addParamsToURL(n.redirectURL,{gig_social_login:!0})),this.params.redirectMethod&&(n.redirectMethod=this.params.redirectMethod),n.addUserInfo=!0):(n.sourceURL=window.gigya.utils.URL.addParamsToURL(n.sourceURL,{gig_events:window.gigya.events.global.getEventsForOperation(t)}),a.FlagService.addGigSocialLoginParamToRedirectUrl&&(n.sourceURL=window.gigya.utils.URL.addParamsToURL(n.sourceURL,{gig_social_login:!0}))),(this.isLinkAccountsV2Flow(r)||u.default.getInstance().isLinkAccountsV2Flow())&&(n[s.LinkAccountsWithRedirectParam.Provider]=this.extractProviderSessionForLinkAccounts(r))}return this.params.provider&&"facebook"==this.params.provider.toLowerCase()&&(n.invite=this.params.invite),window.gigya.utils.keyValue.serialize(n)},Object.defineProperty(i.prototype,"_messagingMethod",{get:function(){return window.gigya.localInfo.isIE11&&window.indexedDB||window.gigya.localInfo.isAndroid&&this.params.provider&&"line"==this.params.provider.toLowerCase()?window.gigya._.MessagingMethod.LocalStorageListener:window.gigya.localInfo.messagingMethod},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_lid",{get:function(){return window.gigya.thisScript.globalConf.legacyCrossSiteMethod&&"localstorage"!==window.gigya.thisScript.globalConf.legacyCrossSiteMethod.toLowerCase()||window.gigya.localInfo.isIE&&window.navigator.msDoNotTrack?window.gigya.thisScript.globalConf.legacyCrossSiteMethod+":"+window.gigya.utils.xd._flashListenerID:window.gigya.utils.xd._flashListenerID},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_state",{get:function(){return{domain:this._domain,lid:this._lid,messaging:this._messagingMethod}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_domain",{get:function(){return document.location.href.split("?")[0].split("#")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"enforceRedirectForSocial",{get:function(){return a.FlagService.enforceAuthFlowRedirectForSocial&&window.gigya.utils.array.includes(c,this.params.provider)},enumerable:!0,configurable:!0}),i.prototype.isLinkAccountsV2Flow=function(e){var t=window.gigya.utils.URL.getParamsFromURL(e)||{},i=t.errorCode,r=n.__rest(t,["errorCode"]);return s.isLinkAccountsV2Interruption(i)&&s.isProviderSessionValid(r)},i.prototype.extractProviderSessionForLinkAccounts=function(e){var t=u.default.getInstance().getProviderSessionInfo();this.isLinkAccountsV2Flow(e)&&(t=window.gigya.utils.URL.getParamsFromURL(e));var i=s.getProviderSessionFromParams(t);return u.default.getInstance().checkAndUpdateProviderSessionInfo(i),window.gigya.utils.JSON.serialize(i)},i}(r.BaseRequest);t.OauthRequest=l}).call(this,i(0).__assign)},22:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i=0;function n(e){var n,r,o,a,s=null!==(r=null===(n=window.gigya.thisScript)||void 0===n?void 0:n.baseDomain)&&void 0!==r?r:"",u=null!==(a=null===(o=window.gigya.thisScript)||void 0===o?void 0:o.protocol)&&void 0!==a?a:"https";if(!s||/cdns?\.gigya\.com$/.test(s)){var c=t.CDN_HOSTS[u];c.length<=i&&(i=0),s=c[i++]}return e&&0!==e.indexOf("/")&&(e="/"+e),u+"://"+s+(e||"")}t.CDN_HOSTS={http:["cdn.gigya.com","cdn1.gigya.com","cdn2.gigya.com","cdn3.gigya.com"],https:["cdns.gigya.com","cdns1.gigya.com","cdns2.gigya.com","cdns3.gigya.com"]},t.getCdnResource=n,t.getImgCdnResource=function(){return n("/gs/i/")}},23:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(5),o=i(4),a=i(18),s=function(){function e(){}return e.getName=function(){return"AbstractAdapter"},e.prototype.setObject=function(e,t){this.setItem(e,r.serialize(t))},e.prototype.getObject=function(e,t){return r.deserialize(this.getItem(e),t)},e.prototype.isPersistent=function(){return!0},e}();t.AbstractLocalStorageAdapter=s;var u=function(e){function t(){var t=e.call(this)||this;return t.isLoaded=!1,t}return n.__extends(t,e),t.prototype.isReady=function(){return this.isLoaded},t.prototype.waitForService=function(e){var t=this;this.isReady()?e():setTimeout((function(){return t.waitForService(e)}),50)},t}(s);t.AbstractAsyncLocalStorageAdapter=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getItem=function(e){return this.storage[e]},t.prototype.setItem=function(e,t,i){try{this.storage[e]=t}catch(e){}},t.prototype.removeItem=function(e){this.storage.removeItem(e)},t}(s),l=function(e){function t(){var t=e.call(this)||this;return t.storage=window.localStorage,t}return n.__extends(t,e),t.getName=function(){return"LocalStorageAdapter"},t.isAvailable=function(){return o.localInfo.supportsLocalStorage},t}(c),d=function(e){function t(){var t=e.call(this)||this;return t.storage=window.sessionStorage,t}return n.__extends(t,e),t.getName=function(){return"SessionStorageAdapter"},t.isAvailable=function(){return o.localInfo.supportsSessionStorage},t}(c),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.isAvailable=function(){return o.localInfo.isFF&&window.globalStorage},t.getName=function(){return"FirefoxStorageAdapter"},t.prototype.getItem=function(e){return window.globalStorage[location.hostname][e]},t.prototype.setItem=function(e,t,i){try{window.globalStorage[location.hostname][e]=t}catch(e){}},t.prototype.removeItem=function(e){delete window.globalStorage[location.hostname][e]},t}(s),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.isAvailable=function(){return a.default.canSaveCookie()},t.getName=function(){return"CookieStorageAdapter"},t.prototype.getItem=function(e){return a.default.get(e)},t.prototype.setItem=function(e,t,i,n,r){void 0===r&&(r={}),a.default.set(e,t,i,n,r.dontUseRootPath,r.sameSite)},t.prototype.removeItem=function(e){a.default.remove(e)},t}(s);t.CookieStorageAdapter=f;var p=function(e){function t(){var t=e.call(this)||this;return t.memory={},t}return n.__extends(t,e),t.isAvailable=function(){return!0},t.getName=function(){return"MemoryStorageAdapter"},t.prototype.getItem=function(e){return this.memory[e]},t.prototype.setItem=function(e,t,i){this.memory[e]=t},t.prototype.removeItem=function(e){delete this.memory[e]},t.prototype.isPersistent=function(){return!1},t}(s);function h(e){var i=e.getName()||e.name;return t.instances[i]||(t.instances[i]=new e),t.instances[i]}function v(e){for(var i,n=0,r=t.adapters;n1?window.gigya.utils.keyValue.deserialize(n[1])[t]:null}}},3:function(e,t,i){(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n=i(5),r=i(32);function o(e,t,i){if(!e)return null;if(!t)return e;for(var n=e,r=t.split("."),o=0;on)return null;if(void 0===e||null==e)return r.default.isOn("removeUndefinedProperties")?e:null;if("function"==typeof e&&i)return null;if(e.constructor==Array){for(var u=[],c=0;c>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295)<<13|r>>>19))+((5*(r>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(u=0,i){case 3:u^=(255&e.charCodeAt(c+2))<<16;case 2:u^=(255&e.charCodeAt(c+1))<<8;case 1:r^=u=(65535&(u=(u=(65535&(u^=255&e.charCodeAt(c)))*a+(((u>>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295}return r^=e.length,r=2246822507*(65535&(r^=r>>>16))+((2246822507*(r>>>16)&65535)<<16)&4294967295,r=3266489909*(65535&(r^=r>>>13))+((3266489909*(r>>>16)&65535)<<16)&4294967295,(r^=r>>>16)>>>0},t.clone=a,t.merge=function e(t,i){for(var n={},r=0;r=0?n="accounts":-1==l.indexOf(n)&&(window.gigya.logger.error("trying to send request to an invalid domain"),n=l[0]),n+"."+e}return e}},t.getGigyaDomain=g,t.getBaseDomain=f,t.resolveApiDomain=p,t.getStorageDomain=function(){var e,t,i,n=h();if(n)return n;if(null===(t=null===(e=window.gigya.thisScript)||void 0===e?void 0:e.globalConf)||void 0===t?void 0:t.storageDomainOverride)return window.gigya.thisScript.globalConf.storageDomainOverride;if((null===(i=window.gigya.thisScript)||void 0===i?void 0:i.baseDomain)&&window.gigya.utils.toggles.isOn("useGigyaJsBaseDomain"))return window.gigya.thisScript.baseDomain;var r=window.gigya.defaultApiDomain;return window.gigya.utils.stringUtils.endsWith(r,"sapcdm.cn")&&"cn1"!==window.gigya.dataCenter&&(r="cn1.sapcdm.cn"),("global"!==window.gigya.dataCenter?"cdns."+window.gigya.dataCenter:"cdns")+"."+r}},31:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.setupConditionalFalseValue=function(e,t){var i=e.lastIndexOf("?"),n=e.substr(i+1,e.length),r=n.indexOf(":");-1===r?(e+=":",t&&(e+=t)):""===n.substr(r+1,n.length)&&(e=e.substr(0,e.length)+t);return e},e.prototype.escapeCharactersInConditionalValue=function(e){return e=(e=(e=e.replace(/\'/g,"'")).replace(/\?/g,"?'")).replace(/:/g,"':")},e.prototype.setUpLastFalseValue=function(e){var t=e.lastIndexOf("?"),i=e.substr(t+1,e.length),n=i.indexOf(":")+1,r=i.substr(n,i.length);"'"!=(r=window.gigya.utils.stringUtils.trim(r))[0]&&(r="'"+r),"'"!=r[r.length]&&(r+="'");var o=i.substr(0,n-1);return e=e.substr(0,t+1)+o+":"+r},e}();t.conditionalExpressionUtil=new i},32:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(3),r=function(){function e(){}return e.prototype.has=function(e){return void 0!==this._toggles[e]},e.prototype.get=function(e){return this._toggles[e]},e.prototype.isOn=function(e){return this.has(e)&&this.get(e)},Object.defineProperty(e.prototype,"_toggles",{get:function(){return n.merge([this._globalConfToggles,this._webSdkConfigToggles])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_globalConfToggles",{get:function(){var e,t;return(null===(t=null===(e=window.gigya.thisScript)||void 0===e?void 0:e.globalConf)||void 0===t?void 0:t.toggles)||{}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_webSdkConfigToggles",{get:function(){var e,t,i=(null===(t=null===(e=window.gigya._)||void 0===e?void 0:e.config)||void 0===t?void 0:t.toggles)||{};return Object.keys(i).reduce((function(e,t){return e[t]="on"===i[t],e}),{})},enumerable:!0,configurable:!0}),e}();t.default=new r},33:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(3),r=i(14),o=i(6);t.redirect=function(e,t,i,a,s){if(void 0===s&&(s=window.document),i&&"post"==i.toLowerCase()){var u=s.createElement("form"),c=[];u.setAttribute("accept-charset","UTF-8"),u.setAttribute("method","POST"),u.setAttribute("action",e),a&&u.setAttribute("target",a);var l=n.merge(t);for(var d in l)"number"!=typeof l[d]&&"boolean"!=typeof l[d]&&"string"!=typeof l[d]||"eventName"==d||c.push('");u.innerHTML=c.join(""),u.style.display="none",r.appendToBody(u,s),u.submit()}else{for(var g=new o.Uri(e),f={},p=0;p(new Date).getTime()},t.allDefinedOrAllUndefined=function(){for(var e=[],t=0;t0?[4,this.init(t,i-1)]:[3,21];case 20:return[2,n.sent()];case 21:return window.gigya.logger.error("error bootstrapping sdk",{type:"bootstrap failed",scope:"WebAdapter.init",error:_}),window.gigya.logger.debug("removing bootstrap indication"),this.getStorage().removeItem(e.bootstrapIndicationCookieName(window.gigya.thisScript.APIKey)),b={status:"FAIL_TO_BOOTSTRAP",statusMessage:"Web SDK failed to bootstrap",errorCode:500026,errorMessage:"Web SDK failed to bootstrap: "+(_.message||_)},window.gigya.events.dispatchErrorFromResponse({eventName:"init"},b),window.gigya.events.global.dispatchWhenHandlersAdded(["accounts.error","socialize.error"],b),t(),[3,22];case 22:return[2]}}))}))},e.prototype.resetAPIService=function(t){return void 0===t&&(t=!1),n.__awaiter(this,void 0,void 0,(function(){var i,r,o,a,s,u;return n.__generator(this,(function(n){switch(n.label){case 0:return i=window.gigya.logger.group("create api service"),this._apiServiceProxy?(window.gigya.logger.info("stopping current api service"),[4,this._apiServiceProxy.stop(!0)]):[3,2];case 1:n.sent(),this._apiServiceProxy=null,n.label=2;case 2:return r=l.GmidProvider.getGmidBootstrapIndicationToken(window.gigya),o=this.getStorage().getItem(e.bootstrapIndicationCookieName(window.gigya.thisScript.APIKey)),a=o===r,window.gigya.logger.info("has bootstrapped: "+a),s=window.gigya._.apiAdapters.web,u=this,[4,this.createApiService(a)];case 3:return s.apiService=u._apiService=n.sent(),[4,this.bootstrapApiService(t)];case 4:return n.sent(),i.end(),[2]}}))}))},e.prototype.bootstrapApiService=function(e){return void 0===e&&(e=!1),n.__awaiter(this,void 0,void 0,(function(){var t,i;return n.__generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this._apiService.bootstrap(e)];case 1:return t=n.sent(),[3,3];case 2:return i=n.sent(),window.gigya.logger.error("error bootstrapping sdk",{type:"webSdkBootstrap failed",scope:"ApiService.bootstrap",ex:i}),window.gigya.events.global.dispatchWhenHandlersAdded(["accounts.error","socialize.error"],{status:"FAIL_TO_BOOTSTRAP",statusMessage:"Web SDK bootstrap failure - APIService bootstrap",errorCode:500026,errorMessage:"Web SDK bootstrap failure: "+(i.message||i)}),[3,3];case 3:return(null==t?void 0:t.ticketInfo)?this.setGmidTicket(t.ticketInfo):(null==t?void 0:t.hasGmid)&&(this.bootstrapIndication=t.hasGmid,p.siteData.didForcedBootstrap=g.FlagService.forceWebSdkBootstrap?t.hasGmid:null),[2]}}))}))},e.prototype.createApiService=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t,i,r,o,a,c,l,f;return n.__generator(this,(function(n){switch(n.label){case 0:return t=window.gigya.thisScript.globalConf.storageProtocolOverride||"https",i=window.gigya.logger.configKey+"="+encodeURIComponent(JSON.stringify(window.gigya.logger.getConfig())),r=window.gigya.build.flavor?"&flavor="+window.gigya.build.flavor:"",o=t+"://"+d.getStorageDomain()+"/js/Api.htm?apiKey="+encodeURIComponent(window.gigya.thisScript.APIKey)+"&version="+window.gigya.build.version+"&build="+window.gigya.build.number+r+"#origin="+document.location.href+"&"+i,window.gigya.logger.info("opening api frame"),this._apiServiceProxy=new s.ServiceProxy(o,this.API_SERVICE_NAME),window.gigya.logger.info("creating api service"),[4,this._apiServiceProxy.init("Api Service")];case 1:if(a=n.sent(),window.gigya.partnerSettings.plugins.apiDomain=a.apiDomain,window.gigya._.getApiDomain=window.gigya._.apiDomainFactory(a.apiDomain,window.gigya.defaultApiDomain),c=window.gigya._.Uri.parse(a.apiDomain),window.gigya.logger.info("api domain is: "+c),window.gigya.logger.info("api domain is "+(a.isGroupApiDomain?"":"not ")+"group domain"),l="false"===window.gigya.thisScript.URLParams.bootstrap,!c.isBaseOf(o)||l||window.gigya.thisScript.globalConf.storageDomainOverride){if(window.gigya.logger.info("closing api frame"),this._apiServiceProxy.stop(!0).then((function(){return window.gigya.logger.info("api frame closed")})),this._apiServiceProxy=null,l?e=!0:a.hasGroupApiDomainChanged&&(e=!1),f=!0,g.FlagService.alwaysCheckCookieSave)try{f=window.gigya._.Uri.parse(window.gigya.localInfo.baseDomain||"").isBaseOf(c.domain)}catch(e){window.gigya.logger.report("Error evaluating first party domain",{baseDomain:window.gigya.localInfo.baseDomain,apiDomain:c.domain})}return window.gigya.logger.info("create and work with api service from top frame"),[2,new u.ApiService(window.gigya.thisScript.APIKey,e,{originDomain:location.href,isGroupApiDomain:a.isGroupApiDomain,getApiDomain:window.gigya._.getApiDomain,isApiDomainFirstParty:f,hasGroupApiDomainChanged:!1,canSaveGmidAsCookie:a.canSaveGmidAsCookie})]}return window.gigya.logger.info("api domain is gigya's so keep working with frame"),[2,this._apiServiceProxy.wrapWith(u.ApiService)]}}))}))},e.prototype.isSessionValid=function(e,t){var i=this;void 0===e&&(e={}),r.setFromGAC(e,(function(){t&&t(i.hasSessionToken(e))}))},e.prototype.hasSessionToken=function(e){return void 0===e&&(e={}),null!=r.get(e.APIKey)||null!=e.oauth_token},e.prototype.registerForNamespaceEvents=function(e){},e.prototype.onPluginEvent=function(e){},e.prototype.onJSLog=function(e,t){},e.prototype.sendRequest=function(e,t,i,r,a){return void 0===r&&(r={}),n.__awaiter(this,void 0,void 0,(function(){var s,u,c,l=this;return n.__generator(this,(function(n){switch(n.label){case 0:return[4,this.beforeRequest(e,t,r)];case 1:return n.sent(),s=function(e,t){l.afterResponse(c,e,(function(){"function"==typeof t&&t(window.gigya.utils.object.clone(e,!0))}))},u=function(e){s(e,i)},(c=new o.ApiRequest(e,t,u,r,a)).send(),window.gigya._.logoutMethods[e]&&window.gigya._.logoutBehaviour.logoutBeforeServerResponse&&this.clearSession(t),[2]}}))}))},e.prototype.clearSession=function(e,t){r.remove(e.APIKey),t&&t()},e.prototype.setGltexpFromSSO=function(e){var t;return void 0===e&&(e=window.gigya.thisScript.APIKey),n.__awaiter(this,void 0,void 0,(function(){var e;return n.__generator(this,(function(i){switch(i.label){case 0:return!window.gigya.partnerSettings.ssoKey||r.isValidGltExp()?[3,2]:[4,null===(t=this._ssoService)||void 0===t?void 0:t.getTokenExpiration()];case 1:if(0===(null==(e=i.sent())?void 0:e.errorCode)&&e.gltexp&&r.isValidGltExp(e.gltexp))return r.setGltexp(e.gltexp),[2,!0];i.label=2;case 2:return[2,!1]}}))}))},e.prototype.sendOauthRequest=function(e,t,i,n){var r=this;this.beforeRequest(e,t,n);var o="https://"+window.gigya._.getApiDomain("socialize"),s=new a.OauthRequest("",o,e,t,(function(e){r.afterResponse(s,e,(function(e){"0"!=e.errorCode?i(e):r.bootstrapApiService().then((function(){return i(e)}))}))}),n);s.send()},e.prototype.beforeRequest=function(e,t,i){var o,a;return void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(n){return(i.clearSession||i.clearSessionCondition&&i.clearSessionCondition(t))&&(window.gigya.logger.info("clearing session before request for "+e),r.remove(t.APIKey)),-2===Number(t.sessionExpiration)&&(null===(a=null===(o=window.gigya.thisScript)||void 0===o?void 0:o.globalConf)||void 0===a?void 0:a.storageDomainOverride)&&(window.gigya.logger.info("session expiration -2 was converted to 1 year fixed expiration"),t.sessionExpiration=window.gigya.utils.cookie.getInfiniteExpirationTimeInSeconds()),[2]}))}))},e.prototype.afterResponse=function(e,t,i){return n.__awaiter(this,void 0,void 0,(function(){var r=this;return n.__generator(this,(function(n){switch(n.label){case 0:return"Missing cookie"==t.errorDetails||"Session is invalid (Missing DeviceId)"==t.errorDetails||"Missing required parameter: gcid or ucid cookie"==t.errorDetails||400006===t.errorCode&&"missingKey"===t.errorFlags?(window.gigya.logger.info("missing cookie error - forcing bootstrap"),this._reBootstrapCount>=2?(window.gigya.logger.report("multiple reBootstrap error"),this._reBootstrapCount=0,i(t),[2]):(this._reBootstrapCount++,[4,this.bootstrapApiService(!0)])):[3,4];case 1:return n.sent(),g.FlagService.initBackgroundWorker?[4,S.powService.restart()]:[3,3];case 2:n.sent(),n.label=3;case 3:return window.gigya.logger.info("resending request"),e.send(),[2];case 4:this._reBootstrapCount=0,this.handleTokenResponse(e,t,(function(){r.logoutSsoIfNeeded(e,t,(function(){i(t)}))})),n.label=5;case 5:return[2]}}))}))},e.prototype.onSDKEvent=function(e){},e.prototype.getTokenParam=function(e,t){return r.getTokenParam(e,t)},e.prototype.establishSession=function(){return n.__awaiter(this,void 0,void 0,(function(){var e,t,i=this;return n.__generator(this,(function(n){switch(n.label){case 0:return"sso.login"===(e=window.gigya.utils.URL.getParamsFromURL(document.location.href)).gig_actions&&e.authCode?[4,w.promisify(window.gigya.accounts.session.verify,{ignoreApiQueue:!0})]:[3,4];case 1:return t=n.sent(),0===t.errorCode?[3,3]:[4,r.setFromAuthCode(e.authCode)];case 2:n.sent(),n.label=3;case 3:return[2,this.hasSessionToken()];case 4:return[4,new gigya.Promise((function(e){return i.isSessionValid(void 0,(function(t){return e(t)}))}))];case 5:return[2,n.sent()]}}))}))},e.prototype.checkReturnFromURL=function(){var e;return n.__awaiter(this,void 0,void 0,(function(){var t,i,o,a,s,u=this;return n.__generator(this,(function(n){switch(n.label){case 0:return t=window.gigya.utils.URL.getParamsFromURL(document.location.href),i=new RegExp(y.GIGYA_INTERNAL_PARAM_PREFIX+"|"+y.GIGYA_PARAM_PREFIX),o=window.gigya.utils.object.removePropertiesPrefix(t,i),"sso.login"!==(a=t.gig_actions)||t.authCode||this.syncSsoLogin(o),"magicLink"!==a?[3,2]:[4,this.handleMagicLink(o)];case 1:n.sent(),n.label=2;case 2:return"verifyLink"!==a?[3,4]:[4,this.handleDoiConfirmation(o)];case 3:n.sent(),n.label=4;case 4:return"confirmInvite"===a&&v.checkGroupInvitation(o),"groupInvitation"!==a?[3,6]:[4,this.handleGroupInvitation(o)];case 5:n.sent(),n.label=6;case 6:return this.shouldFinalizeLinkAccountsV2(t)?[4,this.finalizeLinkAccounts(t)]:[3,8];case 7:n.sent(),n.label=8;case 8:return t.gig_events?(200009==t.errorCode&&window.gigya.accounts.finalizeRegistration({regToken:t.regToken,callback:function(){var e;return null===(e=u._ssoService)||void 0===e?void 0:e.setToken(r.get(),t.expires_in||b.SessionExpiration.Forever)}}),0!=t.errorCode||null==r.get()?[3,10]:(window.gigya.logger.info("returned from redirection with error code"),[4,null===(e=this._ssoService)||void 0===e?void 0:e.setToken(r.get(),t.expires_in||b.SessionExpiration.Forever)])):[2];case 9:n.sent(),s=t.gig_events.split(","),-1!==window.gigya.utils.array.indexOf(s,"accounts.login")?window.gigya.accounts.getAccountInfo({extraProfileFields:"samlData",include:window.gigya.utils.stringUtils.mergeCommaSeparatedValues("profile,data,userinfo",window.gigya.thisScript.globalConf.include),callback:function(e){var t={errorCode:0,eventName:"accounts.login"};if(window.gigya.utils.object.extractProperties(e,t,"signature|UIDSig|timestamp|UIDSignature|signatureTimestamp|UID|profile|data|id_token"),window.gigya.events.global.dispatchWhenHandlerAdded(t),-1!==window.gigya.utils.array.indexOf(s,"socialize.login")){var i=window.gigya._.addUserInfoToEvent(e,{errorCode:0,eventName:"socialize.login"},!0);window.gigya.events.global.dispatchWhenHandlerAdded(i)}}}):window.gigya.socialize.getUserInfo({signIDs:!0,extraFields:"samlData",callback:function(e){for(var t=0;to.length&&t()},s=0;s=t.left&&e.right<=t.left+i.w},t.isRectFullyVisible=function(e){var t=r(),i=o();return e.top>=t.top&&e.bottom<=t.top+i.h&&e.left>=t.left&&e.right<=t.left+i.w},t.scrollIntoView=function(e){e&&e.scrollIntoView&&e.scrollIntoView()}},370:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(11),o=i(166),a=i(84);t.sessionAuthorize=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,i,r,o,a;return n.__generator(this,(function(n){switch(n.label){case 0:if(!window.gigya.isReady)return console.warn("**** gigya.session.authorize must be called AFTER gigya service ready ****"),[2,{errorMessage:"Bad Implementation: gigya.session.authorize"}];if(t=window.gigya.utils.URL.getParamsFromURL(document.location.href),i=t.gig_auth_token,r=t.gig_resource,!i)return[2,s(e,{errorMessage:"Missing required parameter: auth_token",errorCode:400002})];if(!r)return[2,s(e,{errorMessage:"Missing required parameter: resource",errorCode:400002})];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,g(i,r)];case 2:return o=n.sent(),[2,s(e,o)];case 3:return a=n.sent(),[2,s(e,{errorMessage:a})];case 4:return[2]}}))}))};var s=function(e,t){return"function"==typeof(null==e?void 0:e.callback)&&e.callback(t),t};function u(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){return[2,r.promisify(window.gigya.accounts.session.verify)]}))}))}function c(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){switch(e.label){case 0:return[4,u()];case 1:return[2,0===e.sent().errorCode]}}))}))}function l(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){return[2,a.makeAPIRequestAsync(window.gigya.accounts.token.elevate,{},{auth:{basic:e}})]}))}))}function d(e,t){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(i){switch(i.label){case 0:return[4,a.makeAPIRequestAsync(window.gigya.accounts.token.create,{resource:t,response_type:o.GigyaResponseType.JSSDK},{auth:{basic:e}})];case 1:return[2,i.sent()]}}))}))}function g(e,t){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(i){switch(i.label){case 0:return[4,c()];case 1:return i.sent()?[2,l(e)]:[4,d(e,t)];case 2:return i.sent(),[2,u()]}}))}))}t.elevateToken=l,t.createToken=d,t.setSession=g},38:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(70),o=i(30),a=i(27),s=i(1),u=i(72),c=i(36),l=0;t._requestTimeout=3e3;var d=function(){function e(){}return e.getInstance=function(t){return void 0===t&&(t=window.gigya.partnerSettings.ssoKey),n.__awaiter(this,void 0,void 0,(function(){var i,a,l,d;return n.__generator(this,(function(n){switch(n.label){case 0:return this._instance?[3,7]:t?[3,1]:[2,null];case 1:if(!s.FlagService.loadSsoFrameOnlyOnce||c.seamlessSsoUtil.shouldDisableSeamlessSso())return[3,6];i=window.gigya.utils.keyValue.serialize({APIKey:t,version:window.gigya.build.version,build:window.gigya.build.number||-1,sourceKey:window.gigya.thisScript.APIKey,oneFrame:!0,origin:window.gigya.localInfo.protocol+"://"+document.location.hostname,ssoSegment:window.gigya.partnerSettings.ssoSegment||"",flavor:window.gigya.build.flavor}),a="https://"+o.getStorageDomain()+"/js/sso.htm?"+i,n.label=2;case 2:return n.trys.push([2,4,,5]),[4,(l=new u.ServiceProxy(a,this.SSO_SERVICE_NAME)).init("SSO")];case 3:return n.sent(),this._instance=l.wrapWith(r.Sso),[3,5];case 4:return d=n.sent(),window.gigya.logger.error("error initialize sso frame",{scope:"SsoService.init",error:d}),this._instance=new e,[3,5];case 5:return[3,7];case 6:this._instance=new e,n.label=7;case 7:return[2,this._instance]}}))}))},e.prototype.checkTokenRenew=function(e){return new gigya.Promise((function(t){m({loginToken:e,callback:t})}))},e.prototype.getToken=function(){return new gigya.Promise((function(e){f({callback:e})}))},e.prototype.getTokenExpiration=function(){return new gigya.Promise((function(e){w({callback:e})}))},e.prototype.logout=function(){return new gigya.Promise((function(e){h({callback:e})}))},e.prototype.removeToken=function(){return new gigya.Promise((function(e){v({callback:e})}))},e.prototype.setGroupContext=function(e){return new gigya.Promise((function(t){_({groupContext:e,callback:t})}))},e.prototype.setToken=function(e,t,i){return new gigya.Promise((function(n){p({lt:e,expiration:t,gltexp:i,callback:n})}))},e.prototype.setTokenExpiration=function(e,t){return void 0===t&&(t=!0),new gigya.Promise((function(i){y({loginTokenExp:e,callback:i},t)}))},e.prototype.getGroupApiDomain=function(){return new gigya.Promise((function(e){S({callback:e})}))},e.prototype.setGroupApiDomain=function(e){return new gigya.Promise((function(t){b({callback:t,domain:e})}))},e.SSO_SERVICE_NAME="ssoService",e}();function g(e,i){if(!window.gigya.partnerSettings.ssoKey||c.seamlessSsoUtil.shouldDisableSeamlessSso())return window.gigya.logger.warn("SSO is disabled in Safari due to new Cookie Policy"),void(i&&i.callback&&i.callback({}));var n,r,u;n=i?window.gigya.utils.object.clone(i):{};var d=function(e){window.gigya.logger.debug("cleaning sso iframe"),r.parentNode.removeChild(r),clearTimeout(u),e&&(e.errorCode&&"string"==typeof e.errorCode&&(e.errorCode=Number(e.errorCode)),e.expires_in&&"string"==typeof e.expires_in&&(e.expires_in=Number(e.expires_in))),i&&i.callback&&i.callback(e)};n.m=e,n.d=window.gigya.localInfo.protocol+"://"+document.location.hostname,document.location.port&&(n.d+=":"+document.location.port),n.callbackID="gig_sso_cb"+(new Date).getTime()+"_"+l++,n.sAPIKey=window.gigya.thisScript.APIKey,n[window.gigya.logger.configKey]=JSON.stringify(window.gigya.logger.getConfig());var g=window.gigya.utils.keyValue.serialize(n),f=function(i){void 0===i&&(i=0),window.gigya.utils.xd.addMessageListener(n.callbackID,{},!1,d,window.gigya._.MessagingMethod.PostMessage),r=function(e){var t;s.FlagService.hideSSOFrame?t=a.createIframe("SSO Frame"):(t=document.createElement("iframe"),window.gigya.localInfo.isIOS||window.gigya.localInfo.isIOSChrome||window.gigya.localInfo.isAndroid?(t.style.width="0px",t.style.height="0px",t.style.display="none"):(t.style.width="30px",t.style.height="10px",t.style.position="absolute",t.style.top="-1000px",t.style.left="-1000px"));return t.id="gig_sso_"+e,window.gigya.utils.functions.addSrcToIFrameIfNeeded(t),t}(n.callbackID);var c=function(){u=setTimeout((function(){i<=0?window.gigya.logger.error("SSO Communication Timeout",{IE11PrivateMode:window.gigya.localInfo.isIE11&&!window.indexedDB,mode:e}):(window.gigya.utils.xd.removeMessageListener(n.callbackID),window.gigya.utils.DOM.removeElement(r),f(i-1))}),t._requestTimeout);var a=window.gigya.utils.keyValue.serialize({APIKey:window.gigya.partnerSettings.ssoKey,ssoSegment:window.gigya.partnerSettings.ssoSegment||"",version:window.gigya.build.version,build:window.gigya.build.number||-1,flavor:window.gigya.build.flavor});r.src="https://"+o.getStorageDomain()+"/js/sso.htm?"+a+"#"+g,window.gigya.utils.DOM.removeEventListener(r,"load",c)};window.gigya.utils.DOM.addEventListener(r,"load",c),window.gigya.logger.debug("opening sso iframe",n),document.body?window.gigya.utils.DOM.appendToBody(r):window.gigya.utils.functions.invokeOnPageLoad((function(){return window.gigya.utils.DOM.appendToBody(r)}))};f(3)}function f(e){window.gigya.logger.info("trying to get sso group login token"),g("getToken",{callback:function(i){t._storedLoginTokenExp=i.gltexp,e&&e.callback&&e.callback(i)}})}function p(e){e.gltexp||(e.gltexp=window.gigya.utils.cookie.get("gltexp_"+window.gigya.thisScript.APIKey)),g("setToken",e)}function h(e){g("logout",e)}function v(e){g("removeToken",e)}function y(e,i){void 0===i&&(i=!0),i&&t._storedLoginTokenExp&&e.loginTokenExp===t._storedLoginTokenExp?e.callback&&e.callback({gltexp:t._storedLoginTokenExp}):(t._storedLoginTokenExp=e.loginTokenExp,g("setLoginTokenExp",e))}function w(e){g("getLoginTokenExp",e)}function m(e){window.gigya.logger.info("verifying login token with sso group"),g("checkTokenRenew",e)}function _(e){g("setGroupContext",e)}function b(e){g("setGroupApiDomain",e)}function S(e){g("getGroupApiDomain",e)}t.SsoService=d,t._request=g,t.getGroupToken=f,t.setGroupToken=p,t.logout=h,t.removeGroupToken=v,t.setLoginTokenExp=y,t.getLoginTokenExp=w,t.checkTokenRenew=m,t.setGroupContextCookie=_,t.setGroupApiDomain=b,t.getGroupApiDomain=S},4:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=navigator.userAgent.toLowerCase();t.localInfo={baseDomain:"",isBrowserSupportsFilesAPI:"function"==typeof FileReader||"object"==typeof FileReader,initTime:new Date,version:0,pageDomain:document.location.hostname,protocol:"http:"==document.location.protocol?"http":"https",userAgent:r,isWin:-1!=r.indexOf("win"),isIE:-1!=r.indexOf("msie")||-1!=r.indexOf("mozilla")&&-1!=r.indexOf("trident"),isIE6:-1!=r.indexOf("msie 6."),isIE7:-1!=r.indexOf("msie 7."),isIE8:-1!=r.indexOf("msie 8."),isIE9:-1!=r.indexOf("msie 9."),isIE10:-1!=r.indexOf("msie 10."),isIE11:-1!=r.indexOf("mozilla")&&-1!=r.indexOf("trident/7.0"),isEdgeLegacy:-1!=r.indexOf("edge"),isEdge:RegExp(/edg(?!e)/).test(r),isIOS:-1!=r.indexOf("iphone")||-1!=r.indexOf("ipad")||-1!=r.indexOf("ipod"),isSafari534:-1!=r.indexOf("safari/534"),isWeChat:-1!=r.indexOf("micromessenger"),iosVersion:-1!=r.indexOf("applewebkit")&&-1!=r.indexOf("version/")?parseInt(r.split("version/")[1].split(" ")[0]):0,isAndroid:-1!=r.indexOf("android"),isAndroidBrowser:function(e){if(-1===e.indexOf("mozilla/5.0"))return!1;if(-1===e.indexOf("android 4"))return!1;if(-1===e.indexOf("applewebkit"))return!1;if(-1!==e.indexOf("windows phone"))return!1;var t=/chrome\/(\d+)/.exec(e);return!t||parseInt(t[1])<20}(r),currentBrowser:"",androidVersion:-1!=r.indexOf("android")?parseFloat(r.slice(r.indexOf("android")+8)):0,isChrome:-1!=r.indexOf("chrome")&&-1==r.indexOf("edg"),isGoogleBot:-1!=r.indexOf("googlebot"),isFF:-1!=r.indexOf("firefox"),isOpera:-1!=r.indexOf("opera"),isSafari:navigator.appVersion&&-1!=navigator.appVersion.toLowerCase().indexOf("safari")&&-1==navigator.appVersion.toLowerCase().indexOf("chrome")&&-1==r.indexOf("android"),isIOSWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isIOSChrome:-1!=r.indexOf("crios"),isMAC:navigator.appVersion&&-1!=navigator.appVersion.toLowerCase().indexOf("mac"),isWindowsPhone:-1!=r.indexOf("windows phone"),isFacebookBrowser:-1!=r.indexOf("fban")||-1!=r.indexOf("fbav"),supportsPostMessage:null!=window.postMessage&&(-1==r.indexOf("msie")||-1!=r.indexOf("iemobile")),supportsLocalStorage:!1,supportsSessionStorage:!1,supportsFlash:function(){var e=!1;try{if(navigator.mimeTypes&&null!=navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)e=!0;else new ActiveXObject("ShockwaveFlash.ShockwaveFlash")&&(e=!0)}catch(e){}return e}(),quirksMode:"BackCompat"==document.compatMode&&-1!=r.indexOf("msie"),backCompat:"BackCompat"==document.compatMode,isMobile:function(){var e=["iphone","ipod","android","midp","240x320","blackberry","netfront","nokia","panasonic","portalmmm","sharp","sie-","sonyericsson","symbian","windows ce","benq","mda","mot-","opera mini","philips","pocket pc","sagem","samsung","htc"];for(var t in e)if(-1!=r.indexOf(e[t]))return!0;return!1}(),isMobileApp:function(){if(!document.getElementsByTagName)return!1;for(var e=document.getElementsByTagName("meta"),t=0;to)return"[Too deep]";var a="",s="",u="";if(n){u="\t",s="\n";for(var c=0;c-1&&a.splice(t,1)}})),a.join(",")},filterParams:function(e){return delete e.instanceID,delete e.getInstance,e}},link:{name:"link",getLoginProviders:function(e,t,i){var n,r,o,a;return i?null===(a=null===(o=null===(r=null===(n=null==e?void 0:e.getConflictingAccount)||void 0===n?void 0:n.conflictingAccount)||void 0===r?void 0:r.loginProviders)||void 0===o?void 0:o.join(","))||void 0===a?void 0:a.toLowerCase():null},filterParams:function(e){return delete e.instanceID,delete e.getInstance,e}}},n.DeepFreeze(t.LoginModes)},59:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(6),r=i(35),o=i(71),a=i(23),s=i(19),u=i(60),c=i(10),l=["gigya-api.com","gigya-api.cn","gigya.com","my.gigya-ext.com","localhost"],d=function(){function e(e,t){void 0===e&&(e=o.default),void 0===t&&(t=l),this._global=e,this._defaultValidDomains=t}return e.prototype.getPageUrl=function(){return this._global.documentLocation().toString()},e.prototype.isValidDomain=function(e,t){for(var i=n.Uri.parse(t).domain,r=e.concat(this._defaultValidDomains),o=0;o=0&&s===i.length-a.length&&(0===s||"."===i.charAt(s-1)||"/"===i.charAt(s-1)))return!0}return!1},e.prototype.sendMessage=function(e,t,i){var n="";for(var r in e)null!=e[r]&&(n+=escape(r+"="+encodeURIComponent(e[r])+"&"));this._global.postMessageToParent(t+"="+n,i)},e.prototype.isValidGltExp=function(e){return u.isValid(e)},e.prototype.getMaxGltExp=function(e,t){return u.getMax(e,t)},e.prototype.decodeUrl=function(e){return c.URLDecodeRecursive(e)},e.prototype.deserialize=function(e){return s.deserialize(e)},e.prototype.getCookiesStorage=function(){return a.initializeAdapter(a.CookieStorageAdapter)},e.prototype.validations=function(){return r},e.prototype.UriFactory=function(e,t){return void 0===t&&(t=!0),new n.Uri(e,t)},e.prototype.getFragment=function(){var e=this.getPageUrl();return-1!==e.indexOf("#")?e.split("#")[1]:null},e}();t.SsoUtils=d},6:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(17),o=function(){function e(e,t){void 0===t&&(t=!0),this._anchor=document.createElement("a");var i="http:"==document.location.protocol?"http":"https";t&&-1===e.indexOf("://")&&"/"!==e.charAt(0)&&(e=i+"://"+e),this._anchor.href=e}return Object.defineProperty(e.prototype,"domain",{get:function(){return this._anchor.hostname},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._anchor.pathname},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"href",{get:function(){return this._anchor.href},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this._anchor.search.slice(1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this._anchor.hash.slice(1)},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this._anchor.href},e.prototype.addToSearch=function(e){for(var t in e){var i=e[t];if(("boolean"==typeof i||"number"==typeof i||"string"==typeof i)&&"eventName"!=t){var n=this._anchor.search?"&":"";this._anchor.search+=""+n+t+"="+encodeURIComponent(e[t])}}return this},e.prototype.fetch=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),n.__awaiter(this,void 0,void 0,(function(){var i,r;return n.__generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,5,,8]),window.fetch?[4,this.browserFetch(t)]:[3,2];case 1:return i=n.sent(),[3,4];case 2:return[4,this.xhr()];case 3:i=n.sent(),n.label=4;case 4:return[2,i];case 5:if(r=n.sent(),e<=0)throw new Error("fetch failed: "+r);return[4,this.delay(1)];case 6:return n.sent(),[4,this.fetch(e-1)];case 7:return[2,n.sent()];case 8:return[2]}}))}))},e.prototype.isBaseOf=function(t){return e.parse(t).isIn(this)},e.prototype.isIn=function(t){return"string"==typeof t&&(t=e.parse(t)),(this.domain==t.domain||this.isSubDomainOf(t))&&(!t.path||0==this.path.indexOf(t.path))},e.prototype.isForSubDomains=function(){return 0==this.domain.indexOf(".")},e.prototype.isSubDomainOf=function(e){var t="";return e.isForSubDomains()||(t="."),t+=e.domain,r.endsWith(this.domain,t)},e.parse=function(t,i){if(void 0===i&&(i=!0),t)return new e(t,i)},e.prototype.browserFetch=function(e){return void 0===e&&(e=!1),n.__awaiter(this,void 0,void 0,(function(){var t,i,r;return n.__generator(this,(function(n){switch(n.label){case 0:return t=this.toString(),i={},e&&(i.credentials="include"),[4,window.fetch(t,i)];case 1:if(!(r=n.sent()).ok)throw new Error("fetch failed");return[2,r.json()]}}))}))},e.prototype.xhr=function(){var e=this.toString();return new gigya.Promise((function(t,i){var n=new XMLHttpRequest;n.open("GET",e),n.send(),n.onerror=i,n.onload=function(){if(4!==n.readyState||200!==n.status)return i("xhr failed - "+n.status+" - "+n.statusText);try{var e=JSON.parse(n.responseText);return t(e)}catch(e){return i(e)}}}))},e.prototype.delay=function(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){return[2,new gigya.Promise((function(t){return setTimeout(t,e)}))]}))}))},e}();t.Uri=o},60:function(e,t){function i(e){return e?1e3*Number(e.substr(0,e.indexOf("_"))):0}Object.defineProperty(t,"__esModule",{value:!0}),t.isValid=function(e){return i(e)>Date.now()},t.getMax=function(){for(var e=[],t=0;t=0&&window.gigya.logger.report("oidc storage logs - set",{key:e,value:i[e]},!1)}window.sessionStorage.setItem("gigyaCache",r.serialize(i))}catch(e){}o.release("cache","cache_"+e)}}function s(e){a(e,null)}t.set=a,t.get=function e(t,i){if(void 0===i&&(i=-1),!n)return null;try{if(o.isActive("cache_"+t))return o.waitFor("cache_"+t,e,arguments),null;var a=window.sessionStorage.getItem("gigyaCache"),u=r.deserialize(a),c=u[t];if(c){var l=(new Date).getTime();return i<0||i+c.time>l?c.response:(t.indexOf("gig_oidcContext_")>=0&&window.gigya.logger.report("oidc storage logs - get",{key:t,value:u[t],cacheTime:c.time,currentTime:l},!1),s(t),null)}if(!c)return o.hold("cache","cache_"+t),null}catch(e){}return null},t.remove=s},62:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(83),o=i(43),a=function(e){function t(){return e.call(this,"providerSessionService")||this}return n.__extends(t,e),t.getInstance=function(){return this.instance||(this.instance=new t),this.instance},t.prototype.setProviderSessionInfo=function(e){this.updateGlobalData(e)},t.prototype.getProviderSessionInfo=function(){return this.getGlobalData()},t.prototype.clearProviderSessionInfo=function(){this.clearData()},t.prototype.updateProviderSessionInfo=function(e,t){var i=this.getProviderSessionInfo();i[e]=t,this.setProviderSessionInfo(i)},t.prototype.checkAndUpdateProviderSessionInfo=function(e){this.hasProviderSessionInfo()||this.setProviderSessionInfo(e)},t.prototype.hasProviderSessionInfo=function(){return Object.keys(this.getProviderSessionInfo()).length>0},t.prototype.isLinkAccountsV2Interruption=function(){var e=this.getProviderSessionInfo();return void 0!==e.errorCode&&o.isLinkAccountsV2Interruption(e.errorCode)},t.prototype.isLinkAccountsV2Flow=function(){var e=t.getInstance(),i=e.getProviderSessionInfo();return e.isLinkAccountsV2Interruption()&&o.isProviderSessionValid(i)},t.instance=null,t}(r.GlobalDataService);t.default=a},70:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(59),o=function(){function e(e,t,i,n,o,a){var s=this;void 0===n&&(n={validDomains:[],logoutURLs:{}}),void 0===o&&(o=new r.SsoUtils),void 0===a&&(a=o.getCookiesStorage()),this._apiKey=e,this._siteApiKey=t,this._ssoSegment=i,this._ssoConfig=n,this._utils=o,this._storage=a,this._checkFragment=function(){var e=s._utils.getFragment();e&&e!==s._currentFragment&&(s._currentFragment=e,s._start(s._utils.deserialize(e))),window.setTimeout(s._checkFragment,200)},this._storageKey=this._createKey("gig_loginToken")}return e.prototype.init=function(){this._checkFragment()},e.prototype._start=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t;return n.__generator(this,(function(i){switch(i.label){case 0:if(this._mode=e.m,this._requestDomain=e.d,this._lid=e.lid,this._callbackID=e.callbackID,this._siteApiKey=e.sAPIKey,!window.parent)return console.log("gigya sso: invalid use"),[2];if(!this._utils.isValidDomain(this._ssoConfig.validDomains,this._requestDomain))return console.log("gigya sso: "+this._requestDomain+" is not in valid domain: "+this._ssoConfig.validDomains.join(",")),[2];switch(e.m){case"logout":return[3,1];case"removeToken":return[3,3];case"getToken":return[3,5];case"setToken":return[3,7];case"setGroupContext":return[3,9];case"setLoginTokenExp":return[3,11];case"getLoginTokenExp":return[3,13];case"checkTokenRenew":return[3,15];case"setGroupApiDomain":return[3,17];case"getGroupApiDomain":return[3,19]}return[3,21];case 1:return[4,this.logout()];case 2:return t=i.sent(),[3,22];case 3:return[4,this.removeToken()];case 4:return i.sent(),[3,22];case 5:return[4,this.getToken()];case 6:return t=i.sent(),[3,22];case 7:return[4,this.setToken(e.lt,String(e.expiration),e.gltexp)];case 8:return i.sent(),[3,22];case 9:return[4,this.setGroupContext(e.groupContext)];case 10:return i.sent(),[3,22];case 11:return[4,this.setTokenExpiration(e.loginTokenExp)];case 12:return t=i.sent(),[3,22];case 13:return[4,this.getTokenExpiration()];case 14:return t=i.sent(),[3,22];case 15:return[4,this.checkTokenRenew(e.loginToken)];case 16:return t=i.sent(),[3,22];case 17:return[4,this.setGroupApiDomain(e.domain)];case 18:return i.sent(),[3,22];case 19:return[4,this.getGroupApiDomain()];case 20:return t=i.sent(),[3,22];case 21:t={errorCode:405001},i.label=22;case 22:return this._utils.sendMessage(t,this._callbackID,this._requestDomain),[2]}}))}))},e.prototype.getGroupApiDomain=function(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){return[2,{errorCode:0,domain:this._storage.getItem("apiDomain_"+this._apiKey)}]}))}))},e.prototype.setGroupApiDomain=function(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){return this._storage.setItem("apiDomain_"+this._apiKey,e),[2]}))}))},e.prototype.logout=function(){return n.__awaiter(this,void 0,void 0,(function(){var e;return n.__generator(this,(function(t){switch(t.label){case 0:return e=this._getLogoutURLs(),[4,this.removeToken()];case 1:return t.sent(),this._storage.removeItem(this._storageKey+"_visited"),[2,{logoutURLs:e}]}}))}))},e.prototype.removeToken=function(){return n.__awaiter(this,void 0,void 0,(function(){var e;return n.__generator(this,(function(t){return(e=this._storage.getItem(this._storageKey))&&(this._markRevokedLoginToken(e),this._storage.removeItem(this._storageKey)),this._storage.removeItem(this._storageKey+"_exp"),this._storage.removeItem(this._storageKey+"_gltexp"),this._storage.removeItem(this._storageKey+"_session"),this._storage.removeItem(this._storageKey+"_context"),[2]}))}))},e.prototype.getToken=function(){return n.__awaiter(this,void 0,void 0,(function(){var e,t,i,r,o,a,s,u,c;return n.__generator(this,(function(n){switch(n.label){case 0:return e=0,t=this._storage.getItem(this._storageKey),"undefined"===(i=this._storage.getItem(this._storageKey+"_exp"))?r=Date.now()-1e3:(r=Number(i),o=Date.now()+63072e6,r>o&&(r=Date.now()-1e3)),a=this._storage.getItem(this._storageKey+"_gltexp"),s=this._storage.getItem(this._storageKey+"_context"),u=a||"1"===this._storage.getItem(this._storageKey+"_session"),isNaN(r)||!(0===r&&!u||r>0&&(new Date).getTime()>r)?[3,2]:[4,this.removeToken()];case 1:n.sent(),t=void 0,n.label=2;case 2:return t?(this._markSiteVisited(),c={errorCode:e,login_token:t,expires_in:0===r?0:Math.round((r-(new Date).getTime())/1e3)},s&&(c.groupContext=s),0===r&&a&&(c.gltexp=a),[2,c]):[2,{errorCode:403005}]}}))}))},e.prototype.setToken=function(e,t,i){var r;return n.__awaiter(this,void 0,void 0,(function(){var o,a,s;return n.__generator(this,(function(n){switch(n.label){case 0:return e=e.split("|")[0],o=null===(r=this._storage.getItem(this._storageKey))||void 0===r?void 0:r.split("|")[0],e!==o&&this._markRevokedLoginToken(o),e&&this._storage.setItem(this._storageKey,e),t&&(0===(a="string"==typeof t&&t?Number(t):t)?t=0:(s=void 0,s=a&&-2!==a?1e3*Number(a):31536e6,a=Date.now()+s),this._storage.setItem(this._storageKey+"_exp",""+a),0===t&&this._storage.setItem(this._storageKey+"_session","1",0)),void 0===i?[3,2]:[4,this.setTokenExpiration(i)];case 1:n.sent(),n.label=2;case 2:return e?[4,this._markSiteVisited()]:[3,4];case 3:n.sent(),n.label=4;case 4:return[2]}}))}))},e.prototype.setGroupContext=function(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){return this._storage.setItem(this._storageKey+"_context",JSON.stringify(e)),[2]}))}))},e.prototype.setTokenExpiration=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t,i,r;return n.__generator(this,(function(n){switch(n.label){case 0:return this._utils.isValidGltExp(e)?[3,1]:(this._storage.removeItem(this._storageKey+"_gltexp"),e=null,[3,3]);case 1:return i=(t=this._utils).getMaxGltExp,r=[e],[4,this.getTokenExpiration()];case 2:e=i.apply(t,r.concat([n.sent().gltexp])),this._storage.setItem(this._storageKey+"_gltexp",e),this._storage.removeItem(this._storageKey+"_exp"),n.label=3;case 3:return[2,{errorCode:0,gltexp:e}]}}))}))},e.prototype.getTokenExpiration=function(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){return this._storage.getItem(this._storageKey)?[2,{errorCode:0,gltexp:this._storage.getItem(this._storageKey+"_gltexp")}]:[2,{errorCode:403005}]}))}))},e.prototype.checkTokenRenew=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t,i;return n.__generator(this,(function(n){switch(n.label){case 0:return[4,this.getToken()];case 1:return t=n.sent(),i=this._storage.getItem(this._storageKey+"_revoked_tokens")||"",i.indexOf(e)>=0?[3,3]:[4,this.setToken(e)];case 2:return n.sent(),[2,{errorCode:0}];case 3:return 0===t.errorCode&&i.indexOf(t.login_token)<0?(t.errorCode=403032,[2,t]):[2,{errorCode:403025}];case 4:return[2]}}))}))},e.prototype._markSiteVisited=function(){var e=this._storageKey+"_visited",t=this._storage.getItem(e)||"";-1===t.indexOf(this._siteApiKey)&&(t+=","+this._siteApiKey),this._storage.setItem(e,t)},e.prototype._markRevokedLoginToken=function(e){if(e){var t=this._storageKey+"_revoked_tokens",i=this._storage.getItem(t)||"",n=i.split(",");n.length>3&&n.splice(1,1),(i=n.join(",")).indexOf(e)<0&&(i+=","+e),this._storage.setItem(t,i)}},e.prototype._getLogoutURLs=function(){var e=this._storage.getItem(this._storageKey+"_visited");if(!e)return"";var t=[];for(var i in this._ssoConfig.logoutURLs)-1!==e.indexOf(","+i)&&t.push(this._ssoConfig.logoutURLs[i]);return t.join(",")},e.prototype._createKey=function(e){return e+"_"+this._apiKey+(this._ssoSegment?"_"+this._ssoSegment:"")},e}();t.Sso=o},71:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.documentLocation=function(){return document.location},e.prototype.postMessageToParent=function(e,t,i){window.parent.postMessage(e,t,i)},e}();t.GlobalProvider=i,t.default=new i},72:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(27),o=function(){function e(e,t,i,n,o,a,s){var u=this;void 0===i&&(i=6e4),void 0===n&&(n=r.generateId),void 0===o&&(o=r.createIframe),void 0===a&&(a=function(){return new gigya.Promise((function(e){document.body?e(document.body):document.addEventListener("DOMContentLoaded",(function(){return e(document.body)}))}))}),void 0===s&&(s=window),this.url=e,this._serviceName=t,this.timeout=i,this._idCreator=n,this._iframeCreator=o,this.getIframeHost=a,this._win=s,this._pendingReqs=[],this._mutationObservers=[],this.onResponse=function(e){var t=window.gigya.utils.JSON.parse(e.data);t&&u._pendingReqs[t.id]&&u.validateOrigin(e.origin)&&(u.logServiceMismatch(t),u._pendingReqs[t.id](t),delete u._pendingReqs[t.id])}}return Object.defineProperty(e.prototype,"isInit",{get:function(){return Boolean(this._iframe)},enumerable:!0,configurable:!0}),e.prototype.init=function(e){var t=this;return this.isInit?gigya.Promise.reject("proxy already initialized"):new gigya.Promise((function(i,n){t._iframe=t._iframeCreator(e),t._iframe.src=t.getIframeUrl(t.url,{serviceName:t._serviceName}),t.getIframeHost().then((function(e){t._iframeHost=e,t._iframeHost.appendChild(t._iframe),window.gigya.logger.isEnabled&&t.startObservingIFrameRemoval();var r=t._win.setTimeout((function(){return n("proxy init timeout")}),t.timeout),o=function(e){if(t.validateOrigin(e.origin)){var a=t._tryParseResponse(e.data);if(null==a?void 0:a.signal)switch(t.logServiceMismatch(a),t._win.clearTimeout(r),t._win.removeEventListener("message",o,!0),a.signal){case"listening":t._win.addEventListener("message",t.onResponse,!0),i(a.res);break;case"error":case"stop":n(a.res);break;default:n("unsupported response")}}};t._win.addEventListener("message",o,!0)}))}))},e.prototype.validateOrigin=function(e){var t;return!!this._iframe&&r.validateOrigin(null===(t=this._iframe)||void 0===t?void 0:t.src,e)},e.prototype.logServiceMismatch=function(e){this.validateService(null==e?void 0:e.serviceName)||window.gigya.logger.report("Service Proxy: Service name mismatch",{source:"ServiceProxy",reason:"Service name mismatch",currentServiceName:this._serviceName,responseServiceName:null==e?void 0:e.serviceName,msg:e},!1,!0)},e.prototype.validateService=function(e){return e&&e===this._serviceName},e.prototype.getIframeUrl=function(e,t){var i=t.serviceName;return window.gigya.utils.URL.addParamsToURL(e,{serviceName:i})},e.prototype.postToIFrame=function(e){var t;e.serviceName=this._serviceName;var i=this.registerMessage(e),n="object"==typeof e?JSON.stringify(e):e;return this._iframe.contentWindow.postMessage(n,null===(t=this._iframe)||void 0===t?void 0:t.src),i},e.prototype.registerMessage=function(e,t){var i=this;return void 0===t&&(t=this.timeout),new gigya.Promise((function(n,r){var o=i._win.setTimeout((function(){r("proxy request timeout")}),t);i._pendingReqs[e.id]=function(e){i._win.clearTimeout(o),"error"===e.signal?r(e.res):n(e.res)}}))},e.prototype.sendRequest=function(e,t){return this.postToIFrame({id:this._idCreator(),methodName:e,params:t})},e.prototype.stop=function(e){return void 0===e&&(e=!1),n.__awaiter(this,void 0,void 0,(function(){var t,i;return n.__generator(this,(function(n){switch(n.label){case 0:if(this.isInit)return[3,1];throw"proxy is not active";case 1:t=void 0,n.label=2;case 2:return n.trys.push([2,4,5,6]),[4,this.postToIFrame({id:this._idCreator(),signal:"stop"})];case 3:return[2,n.sent()];case 4:throw i=n.sent(),t=i,i;case 5:return t&&!e||(this._mutationObservers&&this._mutationObservers.length&&this.stopObservingIFrameRemoval(),this._win.removeEventListener("message",this.onResponse,!0),this._iframeHost.removeChild(this._iframe),delete this._iframe),[7];case 6:return[2]}}))}))},e.prototype.wrapWith=function(e){var t;if("function"==typeof e)t=r.getAllClassMethodsNames(e);else if(e instanceof Array)t=e;else{if("object"!=typeof e)throw"unsupported type for wrapper";t=Object.keys(e)}return this.proxyFromKeys(t)},e.prototype.proxyFromKeys=function(e){var t=this,i={};return e.forEach((function(e){return i[e]=function(){for(var i=[],n=0;n-1&&e%1==0&&e-1},T.prototype.set=function(e,t){var i=this.__data__,n=L(i,e);return n<0?i.push([e,t]):i[n][1]=t,this},C.prototype.clear=function(){this.__data__={hash:new x,map:new(P||T),string:new x}},C.prototype.delete=function(e){return D(this,e).delete(e)},C.prototype.get=function(e){return D(this,e).get(e)},C.prototype.has=function(e){return D(this,e).has(e)},C.prototype.set=function(e,t){return D(this,e).set(e,t),this};var N=G((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(V(e))return A?A.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var i=[];return r.test(e)&&i.push(""),e.replace(o,(function(e,t,n,r){i.push(n?r.replace(a,"$1"):t||e)})),i}));function U(e){if("string"==typeof e||V(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function G(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var i=function(){var n=arguments,r=t?t.apply(this,n):n[0],o=i.cache;if(o.has(r))return o.get(r);var a=e.apply(this,n);return i.cache=o.set(r,a),a};return i.cache=new(G.Cache||C),i}function K(e,t){return e===t||e!=e&&t!=t}G.Cache=C;var W=Array.isArray;function z(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function V(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==_.call(e)}e.exports=function(e,t,i){return null==e?e:M(e,t,i)}}).call(this,i(16))},83:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=function(){function e(e){this.key=e,window.gigya._.globalData[this.key]||(window.gigya._.globalData[this.key]={})}return e.getInstance=function(t){return this.instances[t]||(this.instances[t]=new e(t)),this.instances[t]},e.prototype.updateGlobalData=function(e){window.gigya._.globalData[this.key]=n.__assign(n.__assign({},window.gigya._.globalData[this.key]),e)},e.prototype.getGlobalData=function(){return window.gigya._.globalData[this.key]},e.prototype.clearData=function(){window.gigya._.globalData[this.key]={}},e.instances={},e}();t.GlobalDataService=r},84:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(11);t.makeAPIRequestAsync=function(e,t,i){void 0===t&&(t={});var o=i?n.__assign(n.__assign({},t),{_requestSettings:i}):t;return r.promisify(e,o)}},9:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(14),o=i(22),a=i(4),s=i(13);function u(e,t){s.default.callFunction(e,t)}t.callAsync=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(i){return[2,new gigya.Promise((function(i){u("gigya."+e,[n.__assign(n.__assign({},t),{callback:i})])}))]}))}))},t.callFunction=u,t.invokeOnPageLoad=function(e,t){if(!document.readyState&&document.body||"complete"===document.readyState||!t&&"interactive"===document.readyState&&document.body)e();else{var i=!1,n=function(){i||(i=!0,e())};window.setTimeout(n,2e4),r.addEventListener(window,"load",n),r.addEventListener(document,"DOMContentLoaded",n)}},t.createAlias=function(e,t){for(var i,n=e.split("."),r=window,o=0;o-1},q.prototype.set=function(e,t){var i=this.__data__,n=Q(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this},H.prototype.clear=function(){this.size=0,this.__data__={hash:new B,map:new(W||q),string:new B}},H.prototype.delete=function(e){var t=ue(this,e).delete(e);return this.size-=t?1:0,t},H.prototype.get=function(e){return ue(this,e).get(e)},H.prototype.has=function(e){return ue(this,e).has(e)},H.prototype.set=function(e,t){var i=ue(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this},$.prototype.clear=function(){this.__data__=new q,this.size=0},$.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},$.prototype.get=function(e){return this.__data__.get(e)},$.prototype.has=function(e){return this.__data__.has(e)},$.prototype.set=function(e,t){var i=this.__data__;if(i instanceof q){var n=i.__data__;if(!W||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new H(n)}return i.set(e,t),this.size=i.size,this};var ee,te=function(e,t,i){for(var n=-1,r=Object(e),o=i(e),a=o.length;a--;){var s=o[ee?a:++n];if(!1===t(r[s],s,r))break}return e};function ie(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":F&&F in Object(e)?function(e){var t=P.call(e,F),i=e[F];try{e[F]=void 0;var n=!0}catch(e){}var r=O.call(e);n&&(t?e[F]=i:delete e[F]);return r}(e):function(e){return O.call(e)}(e)}function ne(e){return Se(e)&&"[object Arguments]"==ie(e)}function re(e){return!(!be(e)||function(e){return!!I&&I in e}(e))&&(me(e)?x:n).test(function(e){if(null!=e){try{return k.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function oe(e){if(!be(e))return function(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t}(e);var t=de(e),i=[];for(var n in e)("constructor"!=n||!t&&P.call(e,n))&&i.push(n);return i}function ae(e,t,i,n,r){e!==t&&te(t,(function(o,a){if(r||(r=new $),be(o))!function(e,t,i,n,r,o,a){var s=ge(e,i),u=ge(t,i),c=a.get(u);if(c)return void J(e,i,c);var l=o?o(s,u,i+"",e,t,a):void 0,d=void 0===l;if(d){var g=ve(u),f=!g&&we(u),p=!g&&!f&&ke(u);l=u,g||f||p?ve(s)?l=s:Se(m=s)&&ye(m)?l=function(e,t){var i=-1,n=e.length;t||(t=Array(n));for(;++i-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(N?function(e,t){return N(e,"toString",{configurable:!0,enumerable:!1,value:(i=t,function(){return i}),writable:!0});var i}:Ae);function pe(e,t){return e===t||e!=e&&t!=t}var he=ne(function(){return arguments}())?ne:function(e){return Se(e)&&P.call(e,"callee")&&!D.call(e,"callee")},ve=Array.isArray;function ye(e){return null!=e&&_e(e.length)&&!me(e)}var we=U||function(){return!1};function me(e){if(!be(e))return!1;var t=ie(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function _e(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Se(e){return null!=e&&"object"==typeof e}var ke=p?function(e){return function(t){return e(t)}}(p):function(e){return Se(e)&&_e(e.length)&&!!o[ie(e)]};function Pe(e){return ye(e)?X(e,!0):oe(e)}var Ie,Oe=(Ie=function(e,t,i){ae(e,t,i)},se((function(e,t){var i=-1,n=t.length,r=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(r=Ie.length>3&&"function"==typeof r?(n--,r):void 0,o&&function(e,t,i){if(!be(i))return!1;var n=typeof t;return!!("number"==n?ye(i)&&le(t,i.length):"string"==n&&t in i)&&pe(i[t],e)}(t[0],t[1],o)&&(r=n<3?void 0:r,n=1),e=Object(e);++i=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,o){t(n,o,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,o){return new(n||(n=gigya.Promise))((function(i,r){function a(e){try{u(o.next(e))}catch(e){r(e)}}function s(e){try{u(o.throw(e))}catch(e){r(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((o=o.apply(e,t||[])).next())}))}function f(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function v(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof m?gigya.Promise.resolve(n.value.v).then(u,l):c(r[0][2],n)}catch(e){c(r[0][3],e)}var n}function u(e){s("next",e)}function l(e){s("throw",e)}function c(e,t){e(t),r.shift(),r.length&&s(r[0][0],r[0][1])}}function w(e){var t,n;return t={},o("next"),o("throw",(function(e){throw e})),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,i){t[o]=e[o]?function(t){return(n=!n)?{value:m(e[o](t)),done:"return"===o}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new gigya.Promise((function(o,i){(function(e,t,n,o){gigya.Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)})(o,i,(t=e[n](t)).done,t.value)}))}}}function b(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function O(e){return e&&e.__esModule?e:{default:e}}function x(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function I(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}}.call(this,n(0).__assign)},13:function(module,exports,__webpack_require__){Object.defineProperty(exports,"__esModule",{value:!0});var conditional_expression_util_1=__webpack_require__(31),conditionalFunction=new Function("screenset","passkeys","viewport","formData","profile","addresses","data","subscriptions","communications","preferences","accountInfo","tfaProviders","authMethods","conflictingAccount","consentStatements","identifier","schema","_account","value","return eval(value);"),OldEvaluator=function(){function OldEvaluator(){}return OldEvaluator.prototype.deserializeJson=function(json,defaultValue,scope){if(null!==json&&"object"==typeof json)return json;if(!json||!json.replace(/^\s+|\s+$/g,""))return defaultValue||{};try{var keys=[],values=[];if(scope)for(var key in scope)keys.push(key),values.push(scope[key]);var fn=eval("(function("+keys.join(",")+") { return "+json.trim()+"; })");return fn.apply(void 0,values)}catch(e){return console.warn("Error deserializing JavaScript",e),defaultValue||{}}},OldEvaluator.prototype.callFunction=function(path,arParams){var fn=eval(path),arParts=path.split(".");arParts.splice(arParts.length-1,1);var scope=eval(arParts.join("."));window.gigya.logger.report("eval usage",{method:"callFunction",evalValues:[path,arParts.join(".")]}),fn.apply(scope,arParams)},OldEvaluator.prototype.getFunctions=function(path){return eval(path)},OldEvaluator.prototype.getValue=function(e,t){try{return new Function("o","p",'return eval("o." + p)')(e,t)}catch(e){return""}},OldEvaluator.prototype.evaluateExpression=function(e,t,n){return conditionalFunction(t.screenset,t.passkeys,t.viewport,t.formData,t.profile,t.addresses,t.data,t.subscriptions,t.communications,t.preferences,t.accountInfo,t.tfaProviders,t.authMethods,t.conflictingAccount,t.consentStatements,t.identifier,t.schema,window.gigya.utils.object.expressionHelper(t),e.condition)},OldEvaluator.prototype.setupConditionalExpressionValue=function(e,t){var n=conditional_expression_util_1.conditionalExpressionUtil.setupConditionalFalseValue(e,t),o=conditional_expression_util_1.conditionalExpressionUtil.escapeCharactersInConditionalValue(n),i=conditional_expression_util_1.conditionalExpressionUtil.setUpLastFalseValue(o);if(!t){var r=i.lastIndexOf(":'"+t+"'");r>-1&&(i=i.substring(0,r)+":null")}return i},OldEvaluator}(),evaluator=new OldEvaluator;exports.default=evaluator},18:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(4),r=n(42),a=function(){function e(e){void 0===e&&(e=new r.CookieStore),this._cookieStore=e}return e.prototype.set=function(e,t,n,o,r,a){null==o&&(o=this.getDefaultDomain());var s=r?"":"/",u=this._getExpirationInMs(n),l=null;null!=u&&(l=new Date).setTime(l.getTime()+u);var c=this._setCookieInternal(e,t,s,l,o,a),f=!u||u>0;if(f===c)return!0;var d=i.localInfo.pageDomain;return(c=this._setCookieInternal(e,t,s,l,d,a))===f},e.prototype.get=function(e){return this._cookieStore.getCookie(e)},e.prototype.getCookieNamesByPrefix=function(e){var t;return(null===(t=this._cookieStore.getAllCookieNames())||void 0===t?void 0:t.filter((function(t){return t.startsWith(e)})))||[]},e.prototype.remove=function(e,t){void 0===t&&(t=i.localInfo.pageDomain),this._removeFromBaseDomains(e,t),this.set(e,"",-1,"",!1),this.set(e,"",-1,"",!0)},e.prototype.getInfiniteExpirationTimeInSeconds=function(){return 31536e3},e.prototype.canSaveCookie=function(t){void 0===t&&(t=null);try{return this.set(e.testCookieName,"true",1,t,null)}catch(e){return!1}},e.prototype.getDefaultDomain=function(e,t){return void 0===e&&(e=i.localInfo.pageDomain),void 0===t&&(t=i.localInfo.baseDomain||""),t.length>0&&e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length?t:e},e.prototype._getExpirationInMs=function(e){return null==e||""===e||isNaN(e)?1e3*this.getInfiniteExpirationTimeInSeconds():0==e?null:1e3*e},e.prototype._setCookieInternal=function(t,n,o,r,a,s){var u;void 0===s&&(s=e._getSameSiteMode());var l=0===(null!==(u=null===i.localInfo||void 0===i.localInfo?void 0:i.localInfo.protocol)&&void 0!==u?u:document.location.protocol).indexOf("https");return this._cookieStore.setCookie(t,n,{path:o,expires:r,domain:a,sameSite:s,secure:l}),!!this.get(t)||!!s&&("None"!==s&&this._fallbackToSameSiteNone(t,n,o,r,a,l),this.get(t)?(this._reportFallback("Setting SameSite=None",{name:t,value:n,sameSiteMode:s}),!0):(this._cookieStore.setCookie(t,n,{path:o,expires:r,domain:a,secure:l}),!!this.get(t)&&(this._reportFallback("Cookie established only without sameSite mode",{name:t,value:n,sameSiteMode:s}),!0)))},e.prototype._removeFromBaseDomains=function(e,t){for(var n=t.split("."),o=0;o-1||o.indexOf("iPad; CPU OS 12")>-1||o.indexOf("Macintosh; Intel Mac OS X 10_14")>-1&&o.indexOf("Version/")>-1&&o.indexOf("Safari")>-1||o.indexOf("Chrome/5")>-1&&o.indexOf("Chrome/6")>-1},e.prototype._fallbackToSameSiteNone=function(e,t,n,o,i,r){this._cookieStore.setCookie(e,t,{path:n,expires:o,domain:i,sameSite:"None",secure:r})},e.prototype._reportFallback=function(e,t){window.gigya.logger.report("Cookie Policy Fallback: "+e,o.__assign(o.__assign({},t),{isIframe:this._isIFrame()}),!1)},e.prototype._isIFrame=function(){var e;try{return(null===window||void 0===window?void 0:window.location)!==(null===(e=null===window||void 0===window?void 0:window.parent)||void 0===e?void 0:e.location)}catch(e){return!0}},e.testCookieName="gig3pctest",e}();t.CookieUtils=a,t.default=new a},23:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(5),r=n(4),a=n(18),s=function(){function e(){}return e.getName=function(){return"AbstractAdapter"},e.prototype.setObject=function(e,t){this.setItem(e,i.serialize(t))},e.prototype.getObject=function(e,t){return i.deserialize(this.getItem(e),t)},e.prototype.isPersistent=function(){return!0},e}();t.AbstractLocalStorageAdapter=s;var u=function(e){function t(){var t=e.call(this)||this;return t.isLoaded=!1,t}return o.__extends(t,e),t.prototype.isReady=function(){return this.isLoaded},t.prototype.waitForService=function(e){var t=this;this.isReady()?e():setTimeout((function(){return t.waitForService(e)}),50)},t}(s);t.AbstractAsyncLocalStorageAdapter=u;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.getItem=function(e){return this.storage[e]},t.prototype.setItem=function(e,t,n){try{this.storage[e]=t}catch(e){}},t.prototype.removeItem=function(e){this.storage.removeItem(e)},t}(s),c=function(e){function t(){var t=e.call(this)||this;return t.storage=window.localStorage,t}return o.__extends(t,e),t.getName=function(){return"LocalStorageAdapter"},t.isAvailable=function(){return r.localInfo.supportsLocalStorage},t}(l),f=function(e){function t(){var t=e.call(this)||this;return t.storage=window.sessionStorage,t}return o.__extends(t,e),t.getName=function(){return"SessionStorageAdapter"},t.isAvailable=function(){return r.localInfo.supportsSessionStorage},t}(l),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.isAvailable=function(){return r.localInfo.isFF&&window.globalStorage},t.getName=function(){return"FirefoxStorageAdapter"},t.prototype.getItem=function(e){return window.globalStorage[location.hostname][e]},t.prototype.setItem=function(e,t,n){try{window.globalStorage[location.hostname][e]=t}catch(e){}},t.prototype.removeItem=function(e){delete window.globalStorage[location.hostname][e]},t}(s),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.isAvailable=function(){return a.default.canSaveCookie()},t.getName=function(){return"CookieStorageAdapter"},t.prototype.getItem=function(e){return a.default.get(e)},t.prototype.setItem=function(e,t,n,o,i){void 0===i&&(i={}),a.default.set(e,t,n,o,i.dontUseRootPath,i.sameSite)},t.prototype.removeItem=function(e){a.default.remove(e)},t}(s);t.CookieStorageAdapter=p;var g=function(e){function t(){var t=e.call(this)||this;return t.memory={},t}return o.__extends(t,e),t.isAvailable=function(){return!0},t.getName=function(){return"MemoryStorageAdapter"},t.prototype.getItem=function(e){return this.memory[e]},t.prototype.setItem=function(e,t,n){this.memory[e]=t},t.prototype.removeItem=function(e){delete this.memory[e]},t.prototype.isPersistent=function(){return!1},t}(s);function v(e){var n=e.getName()||e.name;return t.instances[n]||(t.instances[n]=new e),t.instances[n]}function h(e){for(var n,o=0,i=t.adapters;o-1},e.prototype.isLogLevelSupported=function(e){return-1!=window.gigya.utils.array.indexOf(this.settings.logLevel,"*")||-1!=window.gigya.utils.array.indexOf(this.settings.logLevel,e)},e.prototype.setGltexpFromSSO=function(e){return gigya.Promise.resolve(!1)},e.prototype.obfuscate=function(e){return"base64"===this.obfuscationStrategy?btoa(e):e},e.prototype.unobfuscate=function(e,t){if("base64"===this.obfuscationStrategy){var n=atob(e);return t?JSON.parse(n):n}return e},e}();t.MobileAdapter=s},362:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.showPlugin=function(e,t){var n=e.split("."),o=n.splice(n.length-1,1)[0];n.length||(n=["socialize"]),"commentsUI"==e&&(n=["comments"]);var i="show"+window.gigya.utils.stringUtils.capitalize(o);n.push(i);for(var r=window.gigya;r&&n.length;)r=r[n.shift()];if("function"!=typeof r)return window.gigya.events.dispatchInvalidParamError(window.gigya.utils.object.merge([{plugin:e},t]),"plugin");r(t)}},4:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=navigator.userAgent.toLowerCase();t.localInfo={baseDomain:"",isBrowserSupportsFilesAPI:"function"==typeof FileReader||"object"==typeof FileReader,initTime:new Date,version:0,pageDomain:document.location.hostname,protocol:"http:"==document.location.protocol?"http":"https",userAgent:i,isWin:-1!=i.indexOf("win"),isIE:-1!=i.indexOf("msie")||-1!=i.indexOf("mozilla")&&-1!=i.indexOf("trident"),isIE6:-1!=i.indexOf("msie 6."),isIE7:-1!=i.indexOf("msie 7."),isIE8:-1!=i.indexOf("msie 8."),isIE9:-1!=i.indexOf("msie 9."),isIE10:-1!=i.indexOf("msie 10."),isIE11:-1!=i.indexOf("mozilla")&&-1!=i.indexOf("trident/7.0"),isEdgeLegacy:-1!=i.indexOf("edge"),isEdge:RegExp(/edg(?!e)/).test(i),isIOS:-1!=i.indexOf("iphone")||-1!=i.indexOf("ipad")||-1!=i.indexOf("ipod"),isSafari534:-1!=i.indexOf("safari/534"),isWeChat:-1!=i.indexOf("micromessenger"),iosVersion:-1!=i.indexOf("applewebkit")&&-1!=i.indexOf("version/")?parseInt(i.split("version/")[1].split(" ")[0]):0,isAndroid:-1!=i.indexOf("android"),isAndroidBrowser:function(e){if(-1===e.indexOf("mozilla/5.0"))return!1;if(-1===e.indexOf("android 4"))return!1;if(-1===e.indexOf("applewebkit"))return!1;if(-1!==e.indexOf("windows phone"))return!1;var t=/chrome\/(\d+)/.exec(e);return!t||parseInt(t[1])<20}(i),currentBrowser:"",androidVersion:-1!=i.indexOf("android")?parseFloat(i.slice(i.indexOf("android")+8)):0,isChrome:-1!=i.indexOf("chrome")&&-1==i.indexOf("edg"),isGoogleBot:-1!=i.indexOf("googlebot"),isFF:-1!=i.indexOf("firefox"),isOpera:-1!=i.indexOf("opera"),isSafari:navigator.appVersion&&-1!=navigator.appVersion.toLowerCase().indexOf("safari")&&-1==navigator.appVersion.toLowerCase().indexOf("chrome")&&-1==i.indexOf("android"),isIOSWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isIOSChrome:-1!=i.indexOf("crios"),isMAC:navigator.appVersion&&-1!=navigator.appVersion.toLowerCase().indexOf("mac"),isWindowsPhone:-1!=i.indexOf("windows phone"),isFacebookBrowser:-1!=i.indexOf("fban")||-1!=i.indexOf("fbav"),supportsPostMessage:null!=window.postMessage&&(-1==i.indexOf("msie")||-1!=i.indexOf("iemobile")),supportsLocalStorage:!1,supportsSessionStorage:!1,supportsFlash:function(){var e=!1;try{if(navigator.mimeTypes&&null!=navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)e=!0;else new ActiveXObject("ShockwaveFlash.ShockwaveFlash")&&(e=!0)}catch(e){}return e}(),quirksMode:"BackCompat"==document.compatMode&&-1!=i.indexOf("msie"),backCompat:"BackCompat"==document.compatMode,isMobile:function(){var e=["iphone","ipod","android","midp","240x320","blackberry","netfront","nokia","panasonic","portalmmm","sharp","sie-","sonyericsson","symbian","windows ce","benq","mda","mot-","opera mini","philips","pocket pc","sagem","samsung","htc"];for(var t in e)if(-1!=i.indexOf(e[t]))return!0;return!1}(),isMobileApp:function(){if(!document.getElementsByTagName)return!1;for(var e=document.getElementsByTagName("meta"),t=0;tr)return"[Too deep]";var a="",s="",u="";if(o){u="\t",s="\n";for(var l=0;l=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,i){t(n,i,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,i){return new(n||(n=gigya.Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))}function d(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function h(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof y?gigya.Promise.resolve(n.value.v).then(c,u):l(r[0][2],n)}catch(e){l(r[0][3],e)}var n}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),r.shift(),r.length&&s(r[0][0],r[0][1])}}function m(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,o){t[i]=e[i]?function(t){return(n=!n)?{value:y(e[i](t)),done:"return"===i}:o?o(t):t}:o}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new gigya.Promise((function(i,o){(function(e,t,n,i){gigya.Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,o,(t=e[n](t)).done,t.value)}))}}}function b(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function P(e){return e&&e.__esModule?e:{default:e}}function A(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}}.call(this,n(0).__assign)},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return Object.defineProperty(e,"useNewOidcContextFlow",{get:function(){return this.get("useNewOidcContextFlow")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"redirectOnMissingOidcContext",{get:function(){return this.get("redirectOnMissingOidcContext")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"forceWebSdkBootstrap",{get:function(){return this.get("forceWebSdkBootstrap")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"hideSSOFrame",{get:function(){return this.get("hideSSOFrame")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"wcagContrastFix",{get:function(){return this.get("wcagContrastFix")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"newFormLinkInstanceElement",{get:function(){return this.get("newFormLinkInstanceElement")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"stopSendingReports",{get:function(){return this.get("stopSendingReports")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"setGroupApiDomainAfterLogin",{get:function(){return this.get("setGroupApiDomainAfterLogin")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"alwaysCheckCookieSave",{get:function(){return this.get("alwaysCheckCookieSave")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"fixPhoneTFATranslations",{get:function(){return this.get("fixPhoneTFATranslations")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"loadSsoFrameOnlyOnce",{get:function(){return this.get("loadSsoFrameOnlyOnce")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"setCookieSameSiteLaxSession",{get:function(){return this.get("setCookieSameSiteLaxSession")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"forceErrorReport",{get:function(){return this.get("forceErrorReport")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"skipSameScreenCheckOnSwitch",{get:function(){return this.get("skipSameScreenCheckOnSwitch")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"updateAccountInfoAsync",{get:function(){return this.get("updateAccountInfoAsync")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"sanitizeEvaluatedValue",{get:function(){return this.get("sanitizeEvaluatedValue")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useSessionVerify",{get:function(){return this.get("useSessionVerify")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useExtendedPhoneNumberRegex",{get:function(){return this.get("useExtendedPhoneNumberRegex")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"enforceAuthFlowRedirectForSocial",{get:function(){return this.get("enforceAuthFlowRedirectForSocial")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useDecodeURIComponent",{get:function(){return this.get("useDecodeURIComponent")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useOidcGetParamHashOldStyle",{get:function(){return this.get("useOidcGetParamHashOldStyle")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useViewportPollerAction",{get:function(){return this.get("useViewportPollerAction")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"ignoreInterruptionsInOidcPassiveLogin",{get:function(){return this.get("ignoreInterruptionsInOidcPassiveLogin")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"overrideAllChildContext",{get:function(){return this.get("overrideAllChildContext")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"initBackgroundWorker",{get:function(){return this.get("initBackgroundWorker")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"dispatchLoginEventWhenHandlerAdded",{get:function(){return this.get("dispatchLoginEventWhenHandlerAdded")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"enableLinkAccountsV2Fallback",{get:function(){return this.get("enableLinkAccountsV2Fallback")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"passLanguageParamsToReauthScreen",{get:function(){return this.get("passLanguageParamsToReauthScreen")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"dispatchAfterSubmitEventOnlyWhenScreenExists",{get:function(){return this.get("dispatchAfterSubmitEventOnlyWhenScreenExists")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useGetConsentStatusFromApiList",{get:function(){return this.get("useGetConsentStatusFromApiList")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"addGigSocialLoginParamToRedirectUrl",{get:function(){return this.get("addGigSocialLoginParamToRedirectUrl")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useSessionVerifyInOidcHostedPage",{get:function(){return this.get("useSessionVerifyInOidcHostedPage")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"initializeTfaProviders",{get:function(){return this.get("initializeTfaProviders")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"checkAllowEmptyForSpecialFields",{get:function(){return this.get("checkAllowEmptyForSpecialFields")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"sanitizeHashParams",{get:function(){return this.get("sanitizeHashParams")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useGigLangParam",{get:function(){return this.get("useGigLangParam")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"unicodeLettersNotSpecialChars",{get:function(){return this.get("unicodeLettersNotSpecialChars")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"ssoContinueSync",{get:function(){return this.get("ssoContinueSync")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"overrideParentSiteGlobalConfWithChildOne",{get:function(){return this.get("overrideParentSiteGlobalConfWithChildOne")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useNewPowSolution",{get:function(){return this.get("useNewPowSolution")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"oidcCookieContext",{get:function(){return this.get("oidcCookieContext")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useOuterWidthOnChromeMobile",{get:function(){return this.get("useOuterWidthOnChromeMobile")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"sendEmailVerificationCodeInForm",{get:function(){return this.get("sendEmailVerificationCodeInForm")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"checkTokenRenewDeprecation",{get:function(){return this.get("checkTokenRenewDeprecation")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"preventAutoSkipIfPhoneRequired",{get:function(){return this.get("preventAutoSkipIfPhoneRequired")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"redirectToErrorPageOnGetOidcContextDataFailure",{get:function(){return this.get("redirectToErrorPageOnGetOidcContextDataFailure")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useNewProfilePhotoRemoveBtn",{get:function(){return this.get("useNewProfilePhotoRemoveBtn")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"fireCaptchaOnErrorEvent",{get:function(){return this.get("fireCaptchaOnErrorEvent")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"seamlessSsoDisabled",{get:function(){return this.get("seamlessSsoDisabled")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"resetApiDomainOnBootstrap",{get:function(){return this.get("resetApiDomainOnBootstrap")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"mergeIncludeParamsForGetAccountInfo",{get:function(){return this.get("mergeIncludeParamsForGetAccountInfo")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"dispatchLoginEventForAuthCodeFlow",{get:function(){return this.get("dispatchLoginEventForAuthCodeFlow")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"forcePostForTfaAssertionEndpoints",{get:function(){return this.get("forcePostForTfaAssertionEndpoints")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"useFullLang",{get:function(){return this.get("useFullLang")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"dontShowCaptchaError",{get:function(){return this.get("dontShowCaptchaError")},enumerable:!0,configurable:!0}),e.get=function(e){var t,n;return(null===(t=window.gigya._.config)||void 0===t?void 0:t.flags)&&(null===(n=window.gigya._.config)||void 0===n?void 0:n.flags[e])||!1},Object.defineProperty(e,"apiFlags",{get:function(){return[]},enumerable:!0,configurable:!0}),e}();t.FlagService=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(54),o=n(13);function r(e,t){for(var n=0;n-1?e.substring(0,n):e},t.LastIndexOf=function(e,t,n){void 0===n&&(n=0);for(var i=e.length;--i>=n;)if(e[i]===t)return i;return-1},t.ForEach=r,t.ForEachProp=function(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n,e)},t.Some=function(e,t){for(var n=0;n47&&e<58||32==e||13==e||e>64&&e<91||e>95&&e<112||e>185&&e<193||e>218&&e<223},t.UnitMeasurementType={pixel:"px",percentage:"%",auto:""},t.getUnitMeasurementType=function(e){return void 0===e&&(e=""),null===e||"auto"==e?t.UnitMeasurementType.auto:-1!=e.indexOf("%")?t.UnitMeasurementType.percentage:t.UnitMeasurementType.pixel},t.getAttributesAsArray=c,t.endsWith=function(e,t){return-1!==e.indexOf(t,e.length-t.length)},t.hasIndex=function(e){return/\[[0-9]]|\.[0-9]/.test(e)},t.removeSerializedKeyLastEnumerator=function(e){return e.replace(/[0-9]\.(?=[^.]*$)/,"").replace(/\[[0-9]](?=[^\[]*$)/,"")},t.removeSerializedKeyEdgeProperty=function(e){return e.substr(0,e.lastIndexOf("."))},t.IETemplateElementPolyfill=function(e){if(void 0===e&&(e=document),!("content"in document.createElement("template")))for(var t,n,i,o=Array.prototype.slice.call(document.getElementsByTagName("template")),r=0;(t=o[r++])&&!t.content;){for(n=t.children,i=document.createDocumentFragment();n[0];)i.appendChild(n[0]);t.content=i}},t.replaceAttribute=function(e,t,n){try{r(null==e?void 0:e.querySelectorAll("["+t+"]"),(function(e){e.setAttribute(n,e.getAttribute(t)),e.removeAttribute(t)}))}catch(e){}},t.isDOMXSS=function(e){var t=document.createElement("span");return t.innerText=e,t.innerHTML!==e},t.delayedFocus=function(e,t){void 0===t&&(t=0),setTimeout((function(){return null==e?void 0:e.focus()}),t)},t.isPhoneNumber=function(e){return/^\+\d+$/.test(e)}},function(e,t,n){(function(e){Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=n(32);function r(e,t,n){if(!e)return null;if(!t)return e;for(var i=e,o=t.split("."),r=0;ri)return null;if(void 0===e||null==e)return o.default.isOn("removeUndefinedProperties")?e:null;if("function"==typeof e&&n)return null;if(e.constructor==Array){for(var c=[],u=0;u>>16)*a&65535)<<16)&4294967295)<<15|c>>>17))*s+(((c>>>16)*s&65535)<<16)&4294967295)<<13|o>>>19))+((5*(o>>>16)&65535)<<16)&4294967295))+((58964+(r>>>16)&65535)<<16);switch(c=0,n){case 3:c^=(255&e.charCodeAt(u+2))<<16;case 2:c^=(255&e.charCodeAt(u+1))<<8;case 1:o^=c=(65535&(c=(c=(65535&(c^=255&e.charCodeAt(u)))*a+(((c>>>16)*a&65535)<<16)&4294967295)<<15|c>>>17))*s+(((c>>>16)*s&65535)<<16)&4294967295}return o^=e.length,o=2246822507*(65535&(o^=o>>>16))+((2246822507*(o>>>16)&65535)<<16)&4294967295,o=3266489909*(65535&(o^=o>>>13))+((3266489909*(o>>>16)&65535)<<16)&4294967295,(o^=o>>>16)>>>0},t.clone=a,t.merge=function e(t,n){for(var i={},o=0;or)return"[Too deep]";var a="",s="",c="";if(i){c="\t",s="\n";for(var u=0;u1&&(a+="#"+i[1]),a};t.getContextParamsFromUrl=function(e){var t=e||{},n=t.url,i=t.paramPrefix,o=t.unacceptableParams;return n?function(e,t){if(!t)return e;var n={};return Object.entries(e||{}).filter((function(e){var n=e[0];return!t.test(n)})).forEach((function(e){var t=e[0],i=e[1];return n[t]=i})),n}(window.gigya.utils.URL.getGigParamsFromURL({url:n,paramPrefix:i}),o):{}},t.getDeserializedParamFromUrl=function(e,t,n,i){var o;return void 0===n&&(n=""),void 0===i&&(i=!0),null!==(o=s(e,i)[i?t.toLowerCase():t])&&void 0!==o?o:n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.promisify=function(e,t){return void 0===t&&(t={}),new gigya.Promise((function(n){e(i.__assign(i.__assign({},t),{callback:function(e){n(e)}}))}))}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.gigyaPhone=0]="gigyaPhone",e[e.gigyaTotp=1]="gigyaTotp",e[e.gigyaPush=2]="gigyaPush",e[e.livelink=3]="livelink"}(t.EditableTfaProvidersTypes||(t.EditableTfaProvidersTypes={})),t.gigyaAssertionExpiration=3e5,t.sensitiveParamsOverride="login_token",t.sensitiveParamsOverrideNew="login_token|gigyaAssertion",t.GIGYA_PARAM_PREFIX="gig_",t.GIGYA_INTERNAL_PARAM_PREFIX=t.GIGYA_PARAM_PREFIX+"i_",t.GIGYA_INTERNAL_PARAMS=t.GIGYA_PARAM_PREFIX+"actions"},function(module,exports,__webpack_require__){Object.defineProperty(exports,"__esModule",{value:!0});var conditional_expression_util_1=__webpack_require__(31),conditionalFunction=new Function("screenset","passkeys","viewport","formData","profile","addresses","data","subscriptions","communications","preferences","accountInfo","tfaProviders","authMethods","conflictingAccount","consentStatements","identifier","schema","_account","value","return eval(value);"),OldEvaluator=function(){function OldEvaluator(){}return OldEvaluator.prototype.deserializeJson=function(json,defaultValue,scope){if(null!==json&&"object"==typeof json)return json;if(!json||!json.replace(/^\s+|\s+$/g,""))return defaultValue||{};try{var keys=[],values=[];if(scope)for(var key in scope)keys.push(key),values.push(scope[key]);var fn=eval("(function("+keys.join(",")+") { return "+json.trim()+"; })");return fn.apply(void 0,values)}catch(e){return console.warn("Error deserializing JavaScript",e),defaultValue||{}}},OldEvaluator.prototype.callFunction=function(path,arParams){var fn=eval(path),arParts=path.split(".");arParts.splice(arParts.length-1,1);var scope=eval(arParts.join("."));window.gigya.logger.report("eval usage",{method:"callFunction",evalValues:[path,arParts.join(".")]}),fn.apply(scope,arParams)},OldEvaluator.prototype.getFunctions=function(path){return eval(path)},OldEvaluator.prototype.getValue=function(e,t){try{return new Function("o","p",'return eval("o." + p)')(e,t)}catch(e){return""}},OldEvaluator.prototype.evaluateExpression=function(e,t,n){return conditionalFunction(t.screenset,t.passkeys,t.viewport,t.formData,t.profile,t.addresses,t.data,t.subscriptions,t.communications,t.preferences,t.accountInfo,t.tfaProviders,t.authMethods,t.conflictingAccount,t.consentStatements,t.identifier,t.schema,window.gigya.utils.object.expressionHelper(t),e.condition)},OldEvaluator.prototype.setupConditionalExpressionValue=function(e,t){var n=conditional_expression_util_1.conditionalExpressionUtil.setupConditionalFalseValue(e,t),i=conditional_expression_util_1.conditionalExpressionUtil.escapeCharactersInConditionalValue(n),o=conditional_expression_util_1.conditionalExpressionUtil.setUpLastFalseValue(i);if(!t){var r=o.lastIndexOf(":'"+t+"'");r>-1&&(o=o.substring(0,r)+":null")}return o},OldEvaluator}(),evaluator=new OldEvaluator;exports.default=evaluator},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),o=n(37),r=n(9);t._popupContainers=[],t._pseudoContainers=[];var a=999999999,s=null;function c(){return++a}function u(e,t,n){e&&n&&(e.addEventListener?e.addEventListener(t,n,!0):e.attachEvent("on"+t,n))}function l(e,t,n){e&&n&&(e.removeEventListener?e.removeEventListener(t,n,!0):e.detachEvent("on"+t,n))}function d(){s&&(l(window,"hashchange",s),s=null,window.location.hash=window.location.hash.replace("|gigyaMobileDialog",""))}function g(e,t){void 0===t&&(t=window.document),t.body&&t.body.appendChild(e)}function f(e){var t=[];return"string"==typeof e.className&&(t=e.className.split(" ")),t}function p(e,t){if(!e)return!1;if(!t)return!0;if(!e.className)return!1;for(var n=!1,i=f(e),o=0;o=0;o--){var r=n[o],a=r.src.toLowerCase();if(""!==a)if(i.test(a)||a.indexOf("?apikey=")>-1)if(0===e.length||e.some((function(e){return a.indexOf(e)>-1}))){t=r;break}}return t},t.dispatch=function(e,t){var n;try{n=new Event(t)}catch(e){(n=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,{})}e.dispatchEvent(n)},t.addButtonSubmitListener=function(e,t,n,i){void 0===n&&(n="click"),e&&(e.setAttribute("role","button"),"-1"!=e.getAttribute("tabindex")&&e.setAttribute("tabindex","0"),u(e,n,(function(e){return t(e)})),u(e,"keydown",(function(e){13==(e.which||e.keyCode)&&(e.preventDefault(),t(e))})))},t.addEventListener=u,t.addActivationHandler=function(e,t){e&&t&&(this.addEventListener(e,"keydown",(function(e){"Space"!==e.code&&"Enter"!==e.code||t()})),this.addEventListener(e,"click",t))},t.removeEventListener=l,t.disableDefaultEventHandling=function(e){e.preventDefault?e.preventDefault():window.event&&(window.event.returnValue=!1)},t.addDialogBackListener=function(e){d(),s=function(t){t&&t.newURL&&-1==t.newURL.indexOf("|gigyaMobileDialog")&&(e(t),d())},window.setTimeout((function(){-1==window.location.hash.indexOf("|gigyaMobileDialog")&&(window.location.hash=window.location.hash+"|gigyaMobileDialog"),u(window,"hashchange",s)}),50)},t._removeDialogBackListener=d,t.prependToBody=function(e,t){void 0===t&&(t=window.document),t.body&&(t.body.insertBefore&&t.body.firstChild?t.body.insertBefore(e,t.body.firstChild):t.body.appendChild(e))},t.appendToBody=g,t.removeElement=function(e){e&&e.parentElement&&e.parentElement.removeChild(e)},t.isChildOf=function(e,t){for(var n=e.parentNode;n;){if(t==n)return!0;n=n.parentNode}return!1},t.isVisible=function(e){for(;e;){var t=getComputedStyle(e);if("none"===t.display||"hidden"===t.visibility)return!1;e=e.parentElement}return!0},t.getCenteredDivID=function(e){return"gig_"+i.localInfo.initTime.getTime().toString()+"_"+e},t.createElementWithAttributes=function(e,t){var n=document.createElement(e);if(t)for(var i in t)n[i]=t[i];return n},t.createTopLevelDiv=function(e){var t=document.createElement("div");return null!=t.style.zIndex&&(t.style.zIndex=""+c()),t.innerHTML="",e&&(t.id=e),document.body&&(document.body.insertBefore&&document.body.firstChild?document.body.insertBefore(t,document.body.firstChild):document.body.appendChild&&document.body.appendChild(t)),t},t.hideByID=function(e){var t=document.getElementById(e);t&&(t.style.display="none")},t.showByID=function(e){var t=document.getElementById(e);t&&(t.style.display=i.localInfo.isIE6?"TD"==t.tagName?"table-cell":"TR"==t.tagName||"TABLE"==t.tagName?"":"block":"")},t.clearByID=function(e){try{var t=document.getElementById(e);null!=t&&(t.innerHTML="")}catch(e){}},t.getHTMLSize=function(e,t){var n=document.createElement("div");n.style.position="absolute",n.style.left="-1000px",n.innerHTML=e,t.appendChild(n);var i=n.offsetWidth,o=n.offsetHeight;return n.parentNode.removeChild(n),{w:i,h:o}},t.getElementsByClass=function(e,t,n){if(!e)return[];var i=[];n&&p(e,t)&&i.push(e);for(var o=e.getElementsByTagName("*"),r=0;r=0;o--)(i[o]===t||n&&-1!==i[o].indexOf(t))&&i.splice(o,1);e.className=i.join(" ")}},t.getClassNames=f,t.isElementClass=p,t.cancelEvent=function(e){e&&("cancelable"in e?e.preventDefault():e.returnValue=!1)},t.createElement=function(e,t){var n=document.createElement("div");return t=t||"",n.innerHTML="<"+e+' name="'+t+'" id="'+t+'">",n.firstChild},t.setSize=function(e,t,n,i){if(null!=e&&null!=e.style){if(t){var r=(t=""+t).indexOf("%")>0;if(!isNaN(t)||r){var a=""+(r?t:t+"px");e.style.width!=a&&(e.style.width=a)}}if(n){var s=(n=""+n).indexOf("%")>0;if(!isNaN(t)||s){var u=""+(s?n:n+"px");e.style.height!==u&&(e.style.height=u)}}if(i&&t&&n){(null==e.style.zIndex||i)&&(e.style.zIndex=""+c());var l=o.getInnerSize(),d=o.getScroll(),g=d.top,f=d.left;e.style.top=Math.max(0,g+Math.floor((l.h-n)/2))+"px",e.style.left=Math.max(0,f+Math.floor((l.w-t)/2))+"px",e.style.visibility=""}}},t.createHiddenIframe=function(e){var t=document.createElement("iframe");return t.src=e,t.style.width="30px",t.style.height="10px",t.style.position="absolute",t.style.top="-1000px",t.style.left="-1000px",document.body?g(t):r.invokeOnPageLoad((function(){g(t)})),t},t.attributeEncode=function(e){return e.replace(//g,">").replace(/\"/g,""").replace(/\'/g,"'")},t.manipulateAttributes=function(e,t,n,i){void 0===i&&(i=function(){return!0}),e.forEach((function(e){e.attributes&&Array.prototype.slice.call(e.attributes).forEach((function(e){i(e)&&(e.value=e.value.replace(t,n))}))}))},t.textNodesUnder=function(e){for(var t,n=[],i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1);t=i.nextNode();)n.push(t);return n},t.isHTMLBooleanAttribute=function(e){return["autocomplete","autofocus","checked","disabled","hidden","readonly","required","selected"].indexOf(e)>-1},t.isBelongToGigyaFieldset=function e(t){return!(!t||t instanceof HTMLFormElement)&&(!!p(t.parentElement,"gigya-fieldset")||e(t.parentElement))},t.getClosestElement=function(e,t,n){for(void 0===n&&(n=document),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);e&&e!==n;e=e.parentNode)if(null==e?void 0:e.matches(t))return e;return null},t.createElementFromTemplate=function(e){var t;void 0===e&&(e="");var n=document.createElement("div");return n.innerHTML=null==e?void 0:e.trim(),null!==(t=n.firstChild)&&void 0!==t?t:n},t.isParentHasClass=function e(t,n){var i;return!!(null===(i=null==t?void 0:t.classList)||void 0===i?void 0:i.contains(n))||!!(null==t?void 0:t.parentElement)&&e(null==t?void 0:t.parentElement,n)}},,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){function n(e){return e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")}Object.defineProperty(t,"__esModule",{value:!0}),t.trim=function(e){return e.replace(/^\s*(\S*(.*\S)?)\s*$/,"$1")},t.format=function(e){for(var t=[],n=1;n0;if(d===l)return!0;var g=o.localInfo.pageDomain;return(l=this._setCookieInternal(e,t,s,u,g,a))===d},e.prototype.get=function(e){return this._cookieStore.getCookie(e)},e.prototype.getCookieNamesByPrefix=function(e){var t;return(null===(t=this._cookieStore.getAllCookieNames())||void 0===t?void 0:t.filter((function(t){return t.startsWith(e)})))||[]},e.prototype.remove=function(e,t){void 0===t&&(t=o.localInfo.pageDomain),this._removeFromBaseDomains(e,t),this.set(e,"",-1,"",!1),this.set(e,"",-1,"",!0)},e.prototype.getInfiniteExpirationTimeInSeconds=function(){return 31536e3},e.prototype.canSaveCookie=function(t){void 0===t&&(t=null);try{return this.set(e.testCookieName,"true",1,t,null)}catch(e){return!1}},e.prototype.getDefaultDomain=function(e,t){return void 0===e&&(e=o.localInfo.pageDomain),void 0===t&&(t=o.localInfo.baseDomain||""),t.length>0&&e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length?t:e},e.prototype._getExpirationInMs=function(e){return null==e||""===e||isNaN(e)?1e3*this.getInfiniteExpirationTimeInSeconds():0==e?null:1e3*e},e.prototype._setCookieInternal=function(t,n,i,r,a,s){var c;void 0===s&&(s=e._getSameSiteMode());var u=0===(null!==(c=null===o.localInfo||void 0===o.localInfo?void 0:o.localInfo.protocol)&&void 0!==c?c:document.location.protocol).indexOf("https");return this._cookieStore.setCookie(t,n,{path:i,expires:r,domain:a,sameSite:s,secure:u}),!!this.get(t)||!!s&&("None"!==s&&this._fallbackToSameSiteNone(t,n,i,r,a,u),this.get(t)?(this._reportFallback("Setting SameSite=None",{name:t,value:n,sameSiteMode:s}),!0):(this._cookieStore.setCookie(t,n,{path:i,expires:r,domain:a,secure:u}),!!this.get(t)&&(this._reportFallback("Cookie established only without sameSite mode",{name:t,value:n,sameSiteMode:s}),!0)))},e.prototype._removeFromBaseDomains=function(e,t){for(var n=t.split("."),i=0;i-1||i.indexOf("iPad; CPU OS 12")>-1||i.indexOf("Macintosh; Intel Mac OS X 10_14")>-1&&i.indexOf("Version/")>-1&&i.indexOf("Safari")>-1||i.indexOf("Chrome/5")>-1&&i.indexOf("Chrome/6")>-1},e.prototype._fallbackToSameSiteNone=function(e,t,n,i,o,r){this._cookieStore.setCookie(e,t,{path:n,expires:i,domain:o,sameSite:"None",secure:r})},e.prototype._reportFallback=function(e,t){window.gigya.logger.report("Cookie Policy Fallback: "+e,i.__assign(i.__assign({},t),{isIframe:this._isIFrame()}),!1)},e.prototype._isIFrame=function(){var e;try{return(null===window||void 0===window?void 0:window.location)!==(null===(e=null===window||void 0===window?void 0:window.parent)||void 0===e?void 0:e.location)}catch(e){return!0}},e.testCookieName="gig3pctest",e}();t.CookieUtils=a,t.default=new a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),o=n(5),r=n(1);function a(e){var t=unescape(e),n=i.URLDecode(e);return 0!==t.localeCompare(n)&&window.gigya.logger.report("urlDecoder and unescaped have different values",{unescapedResult:t,urlDecodeResult:n}),n}t.serialize=function(e,t){var n=[];for(var r in t||(t="&"),e)switch(typeof e[r]){case"function":break;case"object":null!=e[r]&&n.push(r+"="+i.URLEncode(o.serialize(e[r])));break;case"undefined":break;default:n.push(r+"="+i.URLEncode(e[r]))}return n.join(t)},t.deserialize=function(e,t,n,o){var s={};if(!e)return s;t||(t="&");for(var c=e.split(t),u=0;u0;){var r=o.splice(0,1)[0];try{r.func.apply(this,r.args)}catch(n){"object"==typeof console&&console.log&&console.log("Gigya: Exception while invoking queued method ("+t+": "+e+")")}if(i(t)){n[t].q=o;break}}}},t.hold=function(e,t){window.gigya.logger.debug("locking queue "+t+" by "+e),n[t]||(n[t]={q:[],ids:{}}),n[t].ids[e]=!0},t.waitFor=o,t.queueForExecution=function(e,t,n){n=n||[],i(e)?o(e,t,n):t.apply(this,n)}},,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=0;function i(e){var i,o,r,a,s=null!==(o=null===(i=window.gigya.thisScript)||void 0===i?void 0:i.baseDomain)&&void 0!==o?o:"",c=null!==(a=null===(r=window.gigya.thisScript)||void 0===r?void 0:r.protocol)&&void 0!==a?a:"https";if(!s||/cdns?\.gigya\.com$/.test(s)){var u=t.CDN_HOSTS[c];u.length<=n&&(n=0),s=u[n++]}return e&&0!==e.indexOf("/")&&(e="/"+e),c+"://"+s+(e||"")}t.CDN_HOSTS={http:["cdn.gigya.com","cdn1.gigya.com","cdn2.gigya.com","cdn3.gigya.com"],https:["cdns.gigya.com","cdns1.gigya.com","cdns2.gigya.com","cdns3.gigya.com"]},t.getCdnResource=i,t.getImgCdnResource=function(){return i("/gs/i/")}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(5),r=n(4),a=n(18),s=function(){function e(){}return e.getName=function(){return"AbstractAdapter"},e.prototype.setObject=function(e,t){this.setItem(e,o.serialize(t))},e.prototype.getObject=function(e,t){return o.deserialize(this.getItem(e),t)},e.prototype.isPersistent=function(){return!0},e}();t.AbstractLocalStorageAdapter=s;var c=function(e){function t(){var t=e.call(this)||this;return t.isLoaded=!1,t}return i.__extends(t,e),t.prototype.isReady=function(){return this.isLoaded},t.prototype.waitForService=function(e){var t=this;this.isReady()?e():setTimeout((function(){return t.waitForService(e)}),50)},t}(s);t.AbstractAsyncLocalStorageAdapter=c;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getItem=function(e){return this.storage[e]},t.prototype.setItem=function(e,t,n){try{this.storage[e]=t}catch(e){}},t.prototype.removeItem=function(e){this.storage.removeItem(e)},t}(s),l=function(e){function t(){var t=e.call(this)||this;return t.storage=window.localStorage,t}return i.__extends(t,e),t.getName=function(){return"LocalStorageAdapter"},t.isAvailable=function(){return r.localInfo.supportsLocalStorage},t}(u),d=function(e){function t(){var t=e.call(this)||this;return t.storage=window.sessionStorage,t}return i.__extends(t,e),t.getName=function(){return"SessionStorageAdapter"},t.isAvailable=function(){return r.localInfo.supportsSessionStorage},t}(u),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.isAvailable=function(){return r.localInfo.isFF&&window.globalStorage},t.getName=function(){return"FirefoxStorageAdapter"},t.prototype.getItem=function(e){return window.globalStorage[location.hostname][e]},t.prototype.setItem=function(e,t,n){try{window.globalStorage[location.hostname][e]=t}catch(e){}},t.prototype.removeItem=function(e){delete window.globalStorage[location.hostname][e]},t}(s),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.isAvailable=function(){return a.default.canSaveCookie()},t.getName=function(){return"CookieStorageAdapter"},t.prototype.getItem=function(e){return a.default.get(e)},t.prototype.setItem=function(e,t,n,i,o){void 0===o&&(o={}),a.default.set(e,t,n,i,o.dontUseRootPath,o.sameSite)},t.prototype.removeItem=function(e){a.default.remove(e)},t}(s);t.CookieStorageAdapter=f;var p=function(e){function t(){var t=e.call(this)||this;return t.memory={},t}return i.__extends(t,e),t.isAvailable=function(){return!0},t.getName=function(){return"MemoryStorageAdapter"},t.prototype.getItem=function(e){return this.memory[e]},t.prototype.setItem=function(e,t,n){this.memory[e]=t},t.prototype.removeItem=function(e){delete this.memory[e]},t.prototype.isPersistent=function(){return!1},t}(s);function h(e){var n=e.getName()||e.name;return t.instances[n]||(t.instances[n]=new e),t.instances[n]}function v(e){for(var n,i=0,o=t.adapters;i=0}Object.defineProperty(t,"__esModule",{value:!0}),t.indexOf=function(e,t){for(var n=0;n=0;n--)e[n]==t&&e.splice(n,1)},t.removeByProperty=function(e,t,n){if(e)for(var i=e.length-1;i>=0;i--)e[i][t]==n&&e.splice(i,1)},t.getArrayFromString=function(e,t,n){return e&&"string"==typeof e?(n&&(e=e.toLowerCase()),(e=e.replace(/[ ]/g,"").replace(/,,/g,","))?e.split(t):[]):[]},t.intersect=function(e){for(var t=[],n=1;n=n;)if(e[i]===t)return i;return-1},t.forEach=n,t.forEachProp=function(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n,e)},t.some=i,t.every=function(e,t){for(var n=0;n1?window.gigya.utils.keyValue.deserialize(i[1])[t]:null}}},function(e,t,n){var i,o;Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(6),s=n(17),c=n(4),u=n(18);(null===(o=null===(i=window.gigya.partnerSettings)||void 0===i?void 0:i.baseDomains)||void 0===o?void 0:o.length)?r=window.gigya.partnerSettings.baseDomains:(window.self===window.top&&window.gigya.logger.warn("gigya: missing base domains for site"),r=[document.location.hostname]),c.localInfo.baseDomain=f(r);var l=["socialize","accounts","fidm","gm","comments","gcs","ids","ds","gscounters","reports"],d=["sdk","oauth","jsw/pow"];function g(e,t,n){void 0===t&&(t=window.gigya.dataCenter),void 0===n&&(n=window.gigya.defaultApiDomain),"sapcdm.cn"===n&&"cn1"!==t&&(n="cn1."+n);var i=t+"."+n;return e?e+"."+i:i}function f(e,t,n){if(void 0===e&&(e=window.gigya.partnerSettings.baseDomains),void 0===t&&(t=location.hostname),void 0===n&&(n=["gigya.com","cn1.sapcdm.cn","localhost",window.gigya.defaultApiDomain,"my.gigya-ext.com"]),!t)return"";"string"==typeof e&&(e=e.split(","));var i=a.Uri.parse(t);n&&(e=e.concat(n));for(var o=0,r=e;o=0?i="accounts":-1==l.indexOf(i)&&(window.gigya.logger.error("trying to send request to an invalid domain"),i=l[0]),i+"."+e}return e}},t.getGigyaDomain=g,t.getBaseDomain=f,t.resolveApiDomain=p,t.getStorageDomain=function(){var e,t,n,i=h();if(i)return i;if(null===(t=null===(e=window.gigya.thisScript)||void 0===e?void 0:e.globalConf)||void 0===t?void 0:t.storageDomainOverride)return window.gigya.thisScript.globalConf.storageDomainOverride;if((null===(n=window.gigya.thisScript)||void 0===n?void 0:n.baseDomain)&&window.gigya.utils.toggles.isOn("useGigyaJsBaseDomain"))return window.gigya.thisScript.baseDomain;var o=window.gigya.defaultApiDomain;return window.gigya.utils.stringUtils.endsWith(o,"sapcdm.cn")&&"cn1"!==window.gigya.dataCenter&&(o="cn1.sapcdm.cn"),("global"!==window.gigya.dataCenter?"cdns."+window.gigya.dataCenter:"cdns")+"."+o}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.prototype.setupConditionalFalseValue=function(e,t){var n=e.lastIndexOf("?"),i=e.substr(n+1,e.length),o=i.indexOf(":");-1===o?(e+=":",t&&(e+=t)):""===i.substr(o+1,i.length)&&(e=e.substr(0,e.length)+t);return e},e.prototype.escapeCharactersInConditionalValue=function(e){return e=(e=(e=e.replace(/\'/g,"'")).replace(/\?/g,"?'")).replace(/:/g,"':")},e.prototype.setUpLastFalseValue=function(e){var t=e.lastIndexOf("?"),n=e.substr(t+1,e.length),i=n.indexOf(":")+1,o=n.substr(i,n.length);"'"!=(o=window.gigya.utils.stringUtils.trim(o))[0]&&(o="'"+o),"'"!=o[o.length]&&(o+="'");var r=n.substr(0,i-1);return e=e.substr(0,t+1)+r+":"+o},e}();t.conditionalExpressionUtil=new n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),o=function(){function e(){}return e.prototype.has=function(e){return void 0!==this._toggles[e]},e.prototype.get=function(e){return this._toggles[e]},e.prototype.isOn=function(e){return this.has(e)&&this.get(e)},Object.defineProperty(e.prototype,"_toggles",{get:function(){return i.merge([this._globalConfToggles,this._webSdkConfigToggles])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_globalConfToggles",{get:function(){var e,t;return(null===(t=null===(e=window.gigya.thisScript)||void 0===e?void 0:e.globalConf)||void 0===t?void 0:t.toggles)||{}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_webSdkConfigToggles",{get:function(){var e,t,n=(null===(t=null===(e=window.gigya._)||void 0===e?void 0:e.config)||void 0===t?void 0:t.toggles)||{};return Object.keys(n).reduce((function(e,t){return e[t]="on"===n[t],e}),{})},enumerable:!0,configurable:!0}),e}();t.default=new o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),o=n(14),r=n(6);t.redirect=function(e,t,n,a,s){if(void 0===s&&(s=window.document),n&&"post"==n.toLowerCase()){var c=s.createElement("form"),u=[];c.setAttribute("accept-charset","UTF-8"),c.setAttribute("method","POST"),c.setAttribute("action",e),a&&c.setAttribute("target",a);var l=i.merge(t);for(var d in l)"number"!=typeof l[d]&&"boolean"!=typeof l[d]&&"string"!=typeof l[d]||"eventName"==d||u.push('");c.innerHTML=u.join(""),c.style.display="none",o.appendToBody(c,s),c.submit()}else{for(var g=new r.Uri(e),f={},p=0;p(new Date).getTime()},t.allDefinedOrAllUndefined=function(){for(var e=[],t=0;t=t.left&&e.right<=t.left+n.w},t.isRectFullyVisible=function(e){var t=o(),n=r();return e.top>=t.top&&e.bottom<=t.top+n.h&&e.left>=t.left&&e.right<=t.left+n.w},t.scrollIntoView=function(e){e&&e.scrollIntoView&&e.scrollIntoView()}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(70),r=n(30),a=n(27),s=n(1),c=n(72),u=n(36),l=0;t._requestTimeout=3e3;var d=function(){function e(){}return e.getInstance=function(t){return void 0===t&&(t=window.gigya.partnerSettings.ssoKey),i.__awaiter(this,void 0,void 0,(function(){var n,a,l,d;return i.__generator(this,(function(i){switch(i.label){case 0:return this._instance?[3,7]:t?[3,1]:[2,null];case 1:if(!s.FlagService.loadSsoFrameOnlyOnce||u.seamlessSsoUtil.shouldDisableSeamlessSso())return[3,6];n=window.gigya.utils.keyValue.serialize({APIKey:t,version:window.gigya.build.version,build:window.gigya.build.number||-1,sourceKey:window.gigya.thisScript.APIKey,oneFrame:!0,origin:window.gigya.localInfo.protocol+"://"+document.location.hostname,ssoSegment:window.gigya.partnerSettings.ssoSegment||"",flavor:window.gigya.build.flavor}),a="https://"+r.getStorageDomain()+"/js/sso.htm?"+n,i.label=2;case 2:return i.trys.push([2,4,,5]),[4,(l=new c.ServiceProxy(a,this.SSO_SERVICE_NAME)).init("SSO")];case 3:return i.sent(),this._instance=l.wrapWith(o.Sso),[3,5];case 4:return d=i.sent(),window.gigya.logger.error("error initialize sso frame",{scope:"SsoService.init",error:d}),this._instance=new e,[3,5];case 5:return[3,7];case 6:this._instance=new e,i.label=7;case 7:return[2,this._instance]}}))}))},e.prototype.checkTokenRenew=function(e){return new gigya.Promise((function(t){m({loginToken:e,callback:t})}))},e.prototype.getToken=function(){return new gigya.Promise((function(e){f({callback:e})}))},e.prototype.getTokenExpiration=function(){return new gigya.Promise((function(e){w({callback:e})}))},e.prototype.logout=function(){return new gigya.Promise((function(e){h({callback:e})}))},e.prototype.removeToken=function(){return new gigya.Promise((function(e){v({callback:e})}))},e.prototype.setGroupContext=function(e){return new gigya.Promise((function(t){_({groupContext:e,callback:t})}))},e.prototype.setToken=function(e,t,n){return new gigya.Promise((function(i){p({lt:e,expiration:t,gltexp:n,callback:i})}))},e.prototype.setTokenExpiration=function(e,t){return void 0===t&&(t=!0),new gigya.Promise((function(n){y({loginTokenExp:e,callback:n},t)}))},e.prototype.getGroupApiDomain=function(){return new gigya.Promise((function(e){S({callback:e})}))},e.prototype.setGroupApiDomain=function(e){return new gigya.Promise((function(t){b({callback:t,domain:e})}))},e.SSO_SERVICE_NAME="ssoService",e}();function g(e,n){if(!window.gigya.partnerSettings.ssoKey||u.seamlessSsoUtil.shouldDisableSeamlessSso())return window.gigya.logger.warn("SSO is disabled in Safari due to new Cookie Policy"),void(n&&n.callback&&n.callback({}));var i,o,c;i=n?window.gigya.utils.object.clone(n):{};var d=function(e){window.gigya.logger.debug("cleaning sso iframe"),o.parentNode.removeChild(o),clearTimeout(c),e&&(e.errorCode&&"string"==typeof e.errorCode&&(e.errorCode=Number(e.errorCode)),e.expires_in&&"string"==typeof e.expires_in&&(e.expires_in=Number(e.expires_in))),n&&n.callback&&n.callback(e)};i.m=e,i.d=window.gigya.localInfo.protocol+"://"+document.location.hostname,document.location.port&&(i.d+=":"+document.location.port),i.callbackID="gig_sso_cb"+(new Date).getTime()+"_"+l++,i.sAPIKey=window.gigya.thisScript.APIKey,i[window.gigya.logger.configKey]=JSON.stringify(window.gigya.logger.getConfig());var g=window.gigya.utils.keyValue.serialize(i),f=function(n){void 0===n&&(n=0),window.gigya.utils.xd.addMessageListener(i.callbackID,{},!1,d,window.gigya._.MessagingMethod.PostMessage),o=function(e){var t;s.FlagService.hideSSOFrame?t=a.createIframe("SSO Frame"):(t=document.createElement("iframe"),window.gigya.localInfo.isIOS||window.gigya.localInfo.isIOSChrome||window.gigya.localInfo.isAndroid?(t.style.width="0px",t.style.height="0px",t.style.display="none"):(t.style.width="30px",t.style.height="10px",t.style.position="absolute",t.style.top="-1000px",t.style.left="-1000px"));return t.id="gig_sso_"+e,window.gigya.utils.functions.addSrcToIFrameIfNeeded(t),t}(i.callbackID);var u=function(){c=setTimeout((function(){n<=0?window.gigya.logger.error("SSO Communication Timeout",{IE11PrivateMode:window.gigya.localInfo.isIE11&&!window.indexedDB,mode:e}):(window.gigya.utils.xd.removeMessageListener(i.callbackID),window.gigya.utils.DOM.removeElement(o),f(n-1))}),t._requestTimeout);var a=window.gigya.utils.keyValue.serialize({APIKey:window.gigya.partnerSettings.ssoKey,ssoSegment:window.gigya.partnerSettings.ssoSegment||"",version:window.gigya.build.version,build:window.gigya.build.number||-1,flavor:window.gigya.build.flavor});o.src="https://"+r.getStorageDomain()+"/js/sso.htm?"+a+"#"+g,window.gigya.utils.DOM.removeEventListener(o,"load",u)};window.gigya.utils.DOM.addEventListener(o,"load",u),window.gigya.logger.debug("opening sso iframe",i),document.body?window.gigya.utils.DOM.appendToBody(o):window.gigya.utils.functions.invokeOnPageLoad((function(){return window.gigya.utils.DOM.appendToBody(o)}))};f(3)}function f(e){window.gigya.logger.info("trying to get sso group login token"),g("getToken",{callback:function(n){t._storedLoginTokenExp=n.gltexp,e&&e.callback&&e.callback(n)}})}function p(e){e.gltexp||(e.gltexp=window.gigya.utils.cookie.get("gltexp_"+window.gigya.thisScript.APIKey)),g("setToken",e)}function h(e){g("logout",e)}function v(e){g("removeToken",e)}function y(e,n){void 0===n&&(n=!0),n&&t._storedLoginTokenExp&&e.loginTokenExp===t._storedLoginTokenExp?e.callback&&e.callback({gltexp:t._storedLoginTokenExp}):(t._storedLoginTokenExp=e.loginTokenExp,g("setLoginTokenExp",e))}function w(e){g("getLoginTokenExp",e)}function m(e){window.gigya.logger.info("verifying login token with sso group"),g("checkTokenRenew",e)}function _(e){g("setGroupContext",e)}function b(e){g("setGroupApiDomain",e)}function S(e){g("getGroupApiDomain",e)}t.SsoService=d,t._request=g,t.getGroupToken=f,t.setGroupToken=p,t.logout=h,t.removeGroupToken=v,t.setLoginTokenExp=y,t.getLoginTokenExp=w,t.checkTokenRenew=m,t.setGroupContextCookie=_,t.setGroupApiDomain=b,t.getGroupApiDomain=S},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(26),r=n(69),a=n(3),s=n(34),c=n(82);function u(e){return"on"===e.substring(0,2)?e:"on"+e.substring(0,1).toUpperCase()+e.substring(1)}var l={},d={};function g(e,t){var n=0,i=e.isInternal,o=e.eventName.split(",");r.addLog('Dispatching global event "'+e.eventName+'" with this event object',e);for(var d=0;d1?g.shift():"socialize",p=g[0],h=f+"_"+u(p),v=a.clone(l[h])||[],y=a.clone(e);y.isGlobal=!0,y.eventName=p,y.fullEventName=o[d],t&&(t.source&&(y.source=t.source),t.sourceData&&(y.sourceData=t.sourceData),t.context&&(y.context=t.context));var w=["component"];i||w.push("other");for(var m=0;m1?i.shift():"socialize",r=i[0];p(e,t,n,(function(i){if(0==i){var a="on"+r.substring(0,1).toUpperCase()+r.substring(1),s=o+"_"+a;d[s]||(d[s]=[]),d[s].push({eventObj:e,params:t,preProcess:n})}}))}function p(e,t,n,i){var o=function(e){var n=0;e.cancel||(n=g(e,t)),i&&i(n)};n?n(e,o):o(e)}t._activeNamespaces={},t.add=function(e,t,n,i,o,r){void 0===n&&(n="other"),void 0===o&&(o="socialize");var a=o+"_"+u(e);l[a]||(l[a]=[]);var s={handler:t,type:n,context:i,params:r,fullEventName:a};l[a].push(s),!this._activeNamespaces[o]&&window.gigya._.apiAdapter&&window.gigya._.apiAdapter.registerForNamespaceEvents(o),this._activeNamespaces[o]=1;var c=d[a];if(c&&"other"==n){d[a]=[];for(var g=0;g0&&a.forEach(u,(function(e){l[e]=f}))}else f={loaded:!1,onLoad:[n],onError:[t]};var h=function(){var t=document.createElement("script");t.async=!0,t.type="text/javascript",t.charset="UTF-8";var n=!1,i=function(){if(!n){if(f.onLoad&&f.onLoad.length)for(var e=0;e0&&a[0].appendChild(t);var s=function(){var n,i,r=new RegExp("^https?://cdns?.*"+window.gigya.defaultApiDomain+"/.*gigya.js").test(e)?(n=e,(i=o.Uri.parse(n)).addToSearch({version:window.gigya.build.version}),i.toString()):e;t.src=r,g&&Object.keys(g).forEach((function(e){t.setAttribute(e,g[e])}))};r.localInfo.iosVersion>=6?s():setTimeout(s,1)};r.localInfo.isIE?s.invokeOnPageLoad(h):h()}t.isLoaded=function(e){var t=d(e);return Boolean(l[t]&&l[t].loaded)},t.load=g,function(e){e[e.script=0]="script",e[e.image=1]="image",e[e.iframe=2]="iframe"}(i=t.ResourceTypes||(t.ResourceTypes={})),t.triggerResource=function(e,t,n,o){switch(void 0===n&&(n=i.image),void 0===o&&(o=5e3),n){case i.script:g(e,t,t,!1,o);break;case i.image:!function(e,t){var n=new Image,i=!1;n.onload=n.onerror=function(){i||(i=!0,t())},n.src=e}(e,t);break;case i.iframe:!function(e,t,n){void 0===n&&(n=5e3);var i=document.createElement("iframe");i.style.width="30px",i.style.height="10px",i.style.position="absolute",i.style.top="-1000px",i.style.left="-1000px",!0===n&&(n=0);var o=function(e){var i;!(i=e&&e.srcElement?e.srcElement:e&&e.target?e.target:this).loaded&&i.parentNode&&(i.loaded=!0,t(),!1!==n&&window.setTimeout((function(){try{document.body.removeChild(i)}catch(e){}}),n))};c.addEventListener(i,"load",o),c.addEventListener(i,"error",o),i.onload=function(e){o(e)},i.onerror=o,i.src=e,c.appendToBody(i)}(e,t,o);break;default:throw new Error("Unsupported resource type")}},t.loadService=function(e,t,n){var i=u.getCdnResource()+"/js/gigya.services."+e+".js";g(i,(function(){"object"==typeof console&&console.error&&(console.error("error loading gigya service "+e+" from url: "+i),t&&t())}),n,!0)}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){void 0===e&&(e=window),this._win=e}return e.prototype.setCookie=function(e,t,n){var i=e+"="+escape(t);n.path&&(i+="; path="+n.path),n.expires&&(i+="; expires="+n.expires.toUTCString()),n.domain&&-1!=n.domain.indexOf(".")&&(i+="; domain="+n.domain),n.sameSite&&(i+="; sameSite="+n.sameSite),n.secure&&(i+="; secure"),this._win.document.cookie=i},e.prototype.getCookie=function(e){e=e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1").replace(/^[ \t]+|[ \t]+$/g,"");var t=new RegExp("(?:^|;)\\s?"+e+"=(.*?)(?:;|$)"),n=this._win.document.cookie.match(t);return n&&unescape(n[1])},e.prototype.getAllCookieNames=function(){var e,t,n,i=null===(n=null===(t=null===(e=this._win)||void 0===e?void 0:e.document)||void 0===t?void 0:t.cookie)||void 0===n?void 0:n.split(";").filter((function(e){return Boolean(null==e?void 0:e.trim())}));return(null==i?void 0:i.map((function(e){var t;return null===(t=e.split("=")[0])||void 0===t?void 0:t.trim()})))||[]},e}();t.CookieStore=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(11),r=n(73);function a(e){var t,n=e.idToken,i=e.provider,o=e.code,r=e.access_token,a=e.lastName,s=e.firstName;return(t={})[i]={authToken:r,idToken:n,code:o,lastName:a,firstName:s},t}function s(e){var t;return null===(t=null==e?void 0:e.phones)||void 0===t?void 0:t[0]}function c(e){try{var t=e.gig_provider;return t?window.gigya.utils.JSON.deserialize(t):{}}catch(e){return window.gigya.logger.error("Error while getting provider session from params after redirect",e),{}}}function u(e){return e?{access_token:e.access_token,provider:e.provider,provider_uid:e.provider_uid,idToken:e.id_token||e.idToken,code:e.code,lastName:e.lastName,firstName:e.firstName}:null}function l(e){return Boolean((null==e?void 0:e.provider)&&(null==e?void 0:e.access_token))}!function(e){e.Provider="gig_provider",e.AccessToken="gig_access_token"}(t.LinkAccountsWithRedirectParam||(t.LinkAccountsWithRedirectParam={})),t.connectAccounts=function(e,t){return void 0===t&&(t={}),i.__awaiter(this,void 0,void 0,(function(){var n;return i.__generator(this,(function(r){return n=a(e),[2,o.promisify(window.gigya.accounts.notifySocialLogin,i.__assign(i.__assign({},t),{loginMode:"connect",providerSessions:n,ignoreApiQueue:!0}))]}))}))},t.extractProviderSessions=a,t.extractProviderInfoFromResponse=function(e){if(409003!=e.errorCode)return e;var t=u(e);return i.__assign(i.__assign({},e),{providerSessionInfo:t})},t.getLoginId=function(e){var t;return(null==e?void 0:e.loginID)||(null===(t=null==e?void 0:e.emails)||void 0===t?void 0:t[0])},t.getObfuscatedPhone=function(e){var t=s(e);return r.formatObfuscatedPhoneNumber(t)},t.getPhone=s,t.isLinkAccountsV2Interruption=function(e){return 409003===Number(e)},t.hasProviderSessionForLinkAccountsInParamsAfterRedirect=function(e){return l(c(e))},t.getProviderSessionForLinkAccountsAfterRedirect=c,t.getProviderSessionFromParams=u,t.isProviderSessionValid=l,t.hasProviderSessionInResponse=function(e){return Boolean(e.providerSessionInfo||e.sessionInfo&&l(e.sessionInfo))},t.getProviderSessionFromResponse=function(e){return e.providerSessionInfo||(l(e.sessionInfo)?e.sessionInfo:void 0)}},,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);function o(e){e.indexOf("?")>-1&&(e=e.substring(e.indexOf("?")+1)),e.indexOf("#")>-1&&(e=e.substring(e.indexOf("#")+1));for(var t=e.split(/&/),n={},i=0;i0&&-1===o.indexOf("mode")){var r="#"+(null==(a=o)?void 0:a.replace(/[^a-zA-Z0-9\-_=&/\[\]]/g,""));e+=o=i.FlagService.sanitizeHashParams?r:o,window.gigya.logger.report("Sanitize url hash params",{originalValue:o,sanitizedValue:r,hasDifferentValues:o!==r,source:"Url utils redirect",url:e})}}var a;n.location().href=e}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(93);t.CONTEXT_KEY_PREFIX="gig_oidcContext_";var r=function(){function e(){}return e.prototype.loadContext=function(e,t,n,i){i?o.getContext(e,n):o.loadContext(e,n)},e.prototype.removeContext=function(e){o.removeContext(e)},e.prototype.saveContext=function(e,t,n){o.saveContext(e,t,n)},e.prototype.loadContextAsPromise=function(e,t){var n=this;return new gigya.Promise((function(i){n.loadContext(e,t,(function(e){i(e)}))}))},e}(),a=function(){function e(e){void 0===e&&(e=new r),this.oldContextProvider=e}return e.prototype.contextKey=function(e){return""+t.CONTEXT_KEY_PREFIX+e},e.prototype.loadContext=function(e,t,n,i){var o,r=this.getContextFromLocalCache(e,null==t?void 0:t.clientID);if(!r||0===(null===(o=Object.keys(r))||void 0===o?void 0:o.length))return this.oldContextProvider.loadContext(e,t,n,i);n(null!=r?r:{})},e.prototype.removeContext=function(e){this.oldContextProvider.removeContext(e)},e.prototype.saveContext=function(e,t,n){this.oldContextProvider.saveContext(e,t,(function(){window.gigya.logger.info("Old context saved for backwards compatibility")})),(null==t?void 0:t.clientID)&&window.gigya.utils.localCache.set(this.contextKey(t.clientID),t),window.gigya.utils.localCache.set(this.contextKey(e),t),n()},e.prototype.getContextFromLocalCache=function(e,t){var n;return t&&(n=window.gigya.utils.localCache.get(this.contextKey(t),-1)),n||(n=window.gigya.utils.localCache.get(this.contextKey(e),-1)),n},e.prototype.loadContextAsPromise=function(e,t,n){var i=this;return new gigya.Promise((function(o){i.loadContext(e,t,(function(e){o(e)}),n)}))},e}(),s=function(){function e(){}return e.getInstance=function(t){var n=(void 0===t?{}:t).useNewContextProvider,o=void 0!==n&&n;return e._instance||(i.FlagService.useNewOidcContextFlow||!0===o?e._instance=new a:e._instance=new r),e._instance},e.reset=function(){this._instance=null},e}();t.ContextProvider=s},,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(61),o=n(3),r=function(){function e(){}return e.prototype.isSessionVerified=function(e,t){void 0===t&&(t=window.gigya.thisScript.APIKey);var n=this.createKey(e,t);return"true"===i.get(n)},e.prototype.setIsSessionVerified=function(e,t,n){void 0===n&&(n=window.gigya.thisScript.APIKey);var o=this.createKey(e,n);i.set(o,""+t)},e.prototype.createKey=function(e,t){var n=o.getMurmurHash(e+"_"+t,15).toString();return btoa(n)},e}();t.sessionData=new r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultApiSchema="ctag|APIKey|cid|oauth_token|source|sourceData|usePost|refUID|fb_UID|fb_at|fb_exp|environment|noAuth|httpStatusCodes",t.defaultOauthSchema="ctag|temporary_account|authFlow|connectWithoutLogin|provider|redirectMethod|redirect_uri|pendingRegistration|lang|regSource|extraPermissions|sessionExpiration|forceAuthentication|includeiRank|includeAllIdentities|extraFields|enabledProviders|disabledProviders|signIDs|openIDUsername|openIDURL|openIDProviderLogo|openIDProviderName|finalizeRegistration|include|actionAttributes|profileAttributes|googlePlayAppID|bp_channel_url|loginIfExists|includeUserInfo|redirectURL|authCodeOnly|enablePopupLocation|invite|regToken|loginMode|apiDomain|conflictHandling|forcePermissions|signKeys|dataCenter|forceAuthentication",t.postBookmarkSchema="provider|URL|url|title|description|target|cid|APIKey|shortURLs|source|sourceData|providerKey|thumbnailURL|tags|userAction|[providerCapability=actions]UserAction|actionAttributes|facebookDialogType",t.loginMethods={"socialize.login":1,"socialize.addConnection":1,"socialize.notifyLogin":1,"socialize.linkAccounts":1,"accounts.login":1,"accounts.otp.login":1,"accounts.auth.magiclink.email.login":1,"accounts.auth.otp.email.login":1,"accounts.auth.login":1,"accounts.socialLogin":1,"accounts.linkAccounts":1,"accounts.register":1,"accounts.finalizeRegistration":1,"accounts.notifySocialLogin":1},t.logoutMethods={"socialize.logout":1,"accounts.logout":1,"socialize.deleteAccount":1,"socialize.unlinkAccounts":1},function(e){e.client_id="client_id",e.redirect_uri="redirect_uri",e.issuer="issuer",e.issued_at="issued_at",e.expiration_time="expiration_time",e.errorCode="errorCode",e.status="status"}(t.OidcGetContextDataWhiteListSuccess||(t.OidcGetContextDataWhiteListSuccess={})),function(e){e.redirect_uri="redirect_uri",e.issuer="issuer",e.errorDetails="errorDetails",e.errorCode="errorCode",e.status="status"}(t.OidcGetContextDataWhiteListFailure||(t.OidcGetContextDataWhiteListFailure={}))},function(e,t){function n(){return Date.now()}Object.defineProperty(t,"__esModule",{value:!0}),t.now=n,t.getTimeBasedVersion=function(){var e=n();return 12e4*Math.floor(e/12e4)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),o=n(77),r=n(10),a=function(){function e(e){var t=this;void 0===e&&(e=window.gigya._.WindowProvider),this._win=e,this.currentParams=[],new URLSearchParams(e.location().search).forEach((function(e,n){var i;try{i={key:r.URLDecode(n),value:r.URLDecode(e)}}catch(t){i={key:n,value:e},window.gigya.logger.report("failed to decode url param",{urlParam:i})}t.currentParams.push(i)}))}return e.prototype.getGigParamsFromURL=function(e){return void 0===e&&(e=i.GIGYA_PARAM_PREFIX),this.currentParams=this.currentParams.filter((function(t){return 0===t.key.indexOf(e)&&t.key!==e})),this},e.prototype.removePrefix=function(e){return void 0===e&&(e=i.GIGYA_PARAM_PREFIX),this.currentParams.forEach((function(t){t.key.startsWith(e)&&(t.key=t.key.slice(e.length))})),this},e.prototype.keysToLower=function(){return this.currentParams.forEach((function(e){e.key=e.key.toLowerCase()})),this},e.prototype.removeUnacceptableParams=function(e){return e?(this.currentParams=this.currentParams.filter((function(t){return!e.test(t.key)})),this):this},e.prototype.toObject=function(){var e={};return this.currentParams.forEach((function(t){o(e,t.key,t.value)})),e},e}();t.default=a},function(e,t,n){(function(e){Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),o=/\/\/cdn(s)?\.(ru1\.)?gigya.com/,r=["gigya.js","socialize.js","socialize2.js","gsjssdk.js"];function a(t){void 0===t&&(t={}),window.gigya.logger.info("globalConf is updated",{updateObject:t}),e(window.gigya.thisScript.globalConf||{},t)}t.getGigyaScriptElement=function(){for(var e,t=document.getElementsByTagName("script"),n=function(n){var i=t[n],a=i.src.toLowerCase();if(""!==a&&((o.test(a)||a.indexOf("?apikey=")>-1)&&(0===r.length||r.some((function(e){return a.indexOf(e)>-1})))))return e=i,"break"},i=t.length-1;i>=0;i--){if("break"===n(i))break}return e},t.updateConfiguration=a,i.createAlias("gigya.updateConfiguration",a)}).call(this,n(0).__assign)},function(e,t){function n(e,t,n){void 0===n&&(n="&");var i=e.match(new RegExp(t+"=([^"+n+"]*)"));return i?i[1]:null}Object.defineProperty(t,"__esModule",{value:!0}),t.getParamValue=n,t.getReqParamValue=function(e,t){var i=n(e,t);return i?decodeURIComponent(i):null}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Screen_CONSTS={gigyaClass:"gigya-screen",conditionalAttributePrefix:"gigya-conditional",expressionAttributePrefix:"gigya-expression",cssClass:"data-css-class",dataVariantPercentage:"data-variant-percentage",dataVariantGroup:"data-variant-group",dataVariantOriginalScreen:"data-variant-original-screen",dataVariantTestId:"data-variant-test-id"}},,,,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),o=n(35),r=n(71),a=n(23),s=n(19),c=n(60),u=n(10),l=["gigya-api.com","gigya-api.cn","gigya.com","my.gigya-ext.com","localhost"],d=function(){function e(e,t){void 0===e&&(e=r.default),void 0===t&&(t=l),this._global=e,this._defaultValidDomains=t}return e.prototype.getPageUrl=function(){return this._global.documentLocation().toString()},e.prototype.isValidDomain=function(e,t){for(var n=i.Uri.parse(t).domain,o=e.concat(this._defaultValidDomains),r=0;r=0&&s===n.length-a.length&&(0===s||"."===n.charAt(s-1)||"/"===n.charAt(s-1)))return!0}return!1},e.prototype.sendMessage=function(e,t,n){var i="";for(var o in e)null!=e[o]&&(i+=escape(o+"="+encodeURIComponent(e[o])+"&"));this._global.postMessageToParent(t+"="+i,n)},e.prototype.isValidGltExp=function(e){return c.isValid(e)},e.prototype.getMaxGltExp=function(e,t){return c.getMax(e,t)},e.prototype.decodeUrl=function(e){return u.URLDecodeRecursive(e)},e.prototype.deserialize=function(e){return s.deserialize(e)},e.prototype.getCookiesStorage=function(){return a.initializeAdapter(a.CookieStorageAdapter)},e.prototype.validations=function(){return o},e.prototype.UriFactory=function(e,t){return void 0===t&&(t=!0),new i.Uri(e,t)},e.prototype.getFragment=function(){var e=this.getPageUrl();return-1!==e.indexOf("#")?e.split("#")[1]:null},e}();t.SsoUtils=d},function(e,t){function n(e){return e?1e3*Number(e.substr(0,e.indexOf("_"))):0}Object.defineProperty(t,"__esModule",{value:!0}),t.isValid=function(e){return n(e)>Date.now()},t.getMax=function(){for(var e=[],t=0;t=0&&window.gigya.logger.report("oidc storage logs - set",{key:e,value:n[e]},!1)}window.sessionStorage.setItem("gigyaCache",o.serialize(n))}catch(e){}r.release("cache","cache_"+e)}}function s(e){a(e,null)}t.set=a,t.get=function e(t,n){if(void 0===n&&(n=-1),!i)return null;try{if(r.isActive("cache_"+t))return r.waitFor("cache_"+t,e,arguments),null;var a=window.sessionStorage.getItem("gigyaCache"),c=o.deserialize(a),u=c[t];if(u){var l=(new Date).getTime();return n<0||n+u.time>l?u.response:(t.indexOf("gig_oidcContext_")>=0&&window.gigya.logger.report("oidc storage logs - get",{key:t,value:c[t],cacheTime:u.time,currentTime:l},!1),s(t),null)}if(!u)return r.hold("cache","cache_"+t),null}catch(e){}return null},t.remove=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(83),r=n(43),a=function(e){function t(){return e.call(this,"providerSessionService")||this}return i.__extends(t,e),t.getInstance=function(){return this.instance||(this.instance=new t),this.instance},t.prototype.setProviderSessionInfo=function(e){this.updateGlobalData(e)},t.prototype.getProviderSessionInfo=function(){return this.getGlobalData()},t.prototype.clearProviderSessionInfo=function(){this.clearData()},t.prototype.updateProviderSessionInfo=function(e,t){var n=this.getProviderSessionInfo();n[e]=t,this.setProviderSessionInfo(n)},t.prototype.checkAndUpdateProviderSessionInfo=function(e){this.hasProviderSessionInfo()||this.setProviderSessionInfo(e)},t.prototype.hasProviderSessionInfo=function(){return Object.keys(this.getProviderSessionInfo()).length>0},t.prototype.isLinkAccountsV2Interruption=function(){var e=this.getProviderSessionInfo();return void 0!==e.errorCode&&r.isLinkAccountsV2Interruption(e.errorCode)},t.prototype.isLinkAccountsV2Flow=function(){var e=t.getInstance(),n=e.getProviderSessionInfo();return e.isLinkAccountsV2Interruption()&&r.isProviderSessionValid(n)},t.instance=null,t}(o.GlobalDataService);t.default=a},function(e,t){function n(e){return window.gigya._.apiAdapters.web.tokenStore.get(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getLoginToken=n,t.getUid=function(e,t){void 0===t&&(t=!1),window.gigya.socialize.getUserInfo({ignoreInterruptions:t,callback:function(t){0===t.errorCode?e({UID:t.UID,UIDSignature:t.UIDSignature,signatureTimestamp:t.signatureTimestamp}):e()}})},t.activeUserExists=function(e,t){return!!n(e)&&!!t}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.isEmpty=function(){return 0===Object.keys(this.activityMap).length},e.registerActivity=function(e,t){this.activityMap.set(e,t)},e.getActivity=function(e,t){return this.activityMap.has(null==t?void 0:t.activityType)?new(this.activityMap.get(t.activityType))(e,t):null},e.activityMap=new Map,e}();t.ActivityLibrary=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(30),r=n(6),a=n(50);t.getSdkConfig=function(e,t){return void 0===e&&(e=(null===window.gigya||void 0===window.gigya?void 0:window.gigya.configHostnameOverride)||o.getStorageDomain()),void 0===t&&(t=0),i.__awaiter(this,void 0,void 0,(function(){var n;return i.__generator(this,(function(i){switch(i.label){case 0:return n=window.gigya.apiKey,[4,r.Uri.parse(e+"/sdk.config.get").addToSearch({apiKey:n,httpStatusCodes:!0,ver:a.getTimeBasedVersion()}).fetch(t)];case 1:return[2,i.sent()]}}))}))},t.getSsoContext=function(e,t,n){return void 0===t&&(t=o.resolveApiDomain()),void 0===n&&(n=0),i.__awaiter(this,void 0,void 0,(function(){var o;return i.__generator(this,(function(i){switch(i.label){case 0:o=window.gigya.apiKey,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.Uri.parse(t+"/accounts.sso.getContext").addToSearch({APIKey:o,ssoToken:e,format:"json"}).fetch(n)];case 2:return[2,i.sent()];case 3:return i.sent(),[2,{}];case 4:return[2]}}))}))},t.getConsentStatus=function(e){var t,n,o;return i.__awaiter(this,void 0,void 0,(function(){var a,s,c,u,l,d,g;return i.__generator(this,(function(i){switch(i.label){case 0:return a=(null==e?void 0:e.domain)||window.gigya._.getApiDomain("accounts"),s=(null==e?void 0:e.retries)||0,c=window.gigya.apiKey,u=a+"/sdk.getConsentStatus",l=(null===(t=window.gigya.build)||void 0===t?void 0:t.version)?"js_"+(null===(n=window.gigya.build)||void 0===n?void 0:n.version):null,d=(null===(o=window.gigya.build)||void 0===o?void 0:o.number)||null,g={apiKey:c,sdk:l,sdkBuild:d},[4,r.Uri.parse(u).addToSearch(g).fetch(s)];case 1:return[2,i.sent()]}}))}))}},,,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),o=n(5),r=n(26),a=n(41),s=n(22),c=n(9),u=n(18);function l(){var e=!window.gigya.localInfo.isNativeMobileApp&&u.default.get("_gig_dbgConsole_log");return void 0!==e&&null!=e?"1"===e:t.selectedConsoleLogLevels.length>0}function d(e,n,a){if(void 0===a&&(a=!1),l()||a){var s,c=e;if(null!=(n=i.clone(n,!0,!1,4,null,!0))&&(c+=":"+("object"==typeof n?"\n":"")+o.serialize(n,!0,!0)),a&&"object"==typeof console&&console.log&&console.log(c),l())t._log.push(c),document.getElementById("gigya_log"),s=-1!=r.indexOf(t.CONSOLE_LOG_LEVELS,e)?e:"log",window.gigya._.apiAdapter.onJSLog(s,c)}}function g(){a.load(s.getCdnResource("/js/gigya.services.socialize.plugins.log.min.js"),null,(function(){}),!0)}function f(){}function p(){}t.CONSOLE_LOG_LEVELS=["debug","info","log","warn","error"],t.selectedConsoleLogLevels=[],t._log=[],t.enable=function(){u.default.set("_gig_dbgConsole_log","1",null)},t.disable=function(){u.default.set("_gig_dbgConsole_log","0",null)},t._isEnabled=l,t.addLog=d,t.logCall=function(e,t,n){n||(n=t.lastSource),d("Calling "+e+(n&&n!=e?" for "+n:"")+(t.source&&n!=t.source?" initiated from "+t.source:"")+" with these params",t)},t.debug=g,t.showLog=function(){a.load(s.getCdnResource("/js/gigya.services.socialize.plugins.log.min.js"),null,(function(){}),!0)},t.show=f,t.showConfig=p,c.createAlias("gigya.debug",g)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(59),r=function(){function e(e,t,n,i,r,a){var s=this;void 0===i&&(i={validDomains:[],logoutURLs:{}}),void 0===r&&(r=new o.SsoUtils),void 0===a&&(a=r.getCookiesStorage()),this._apiKey=e,this._siteApiKey=t,this._ssoSegment=n,this._ssoConfig=i,this._utils=r,this._storage=a,this._checkFragment=function(){var e=s._utils.getFragment();e&&e!==s._currentFragment&&(s._currentFragment=e,s._start(s._utils.deserialize(e))),window.setTimeout(s._checkFragment,200)},this._storageKey=this._createKey("gig_loginToken")}return e.prototype.init=function(){this._checkFragment()},e.prototype._start=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){switch(n.label){case 0:if(this._mode=e.m,this._requestDomain=e.d,this._lid=e.lid,this._callbackID=e.callbackID,this._siteApiKey=e.sAPIKey,!window.parent)return console.log("gigya sso: invalid use"),[2];if(!this._utils.isValidDomain(this._ssoConfig.validDomains,this._requestDomain))return console.log("gigya sso: "+this._requestDomain+" is not in valid domain: "+this._ssoConfig.validDomains.join(",")),[2];switch(e.m){case"logout":return[3,1];case"removeToken":return[3,3];case"getToken":return[3,5];case"setToken":return[3,7];case"setGroupContext":return[3,9];case"setLoginTokenExp":return[3,11];case"getLoginTokenExp":return[3,13];case"checkTokenRenew":return[3,15];case"setGroupApiDomain":return[3,17];case"getGroupApiDomain":return[3,19]}return[3,21];case 1:return[4,this.logout()];case 2:return t=n.sent(),[3,22];case 3:return[4,this.removeToken()];case 4:return n.sent(),[3,22];case 5:return[4,this.getToken()];case 6:return t=n.sent(),[3,22];case 7:return[4,this.setToken(e.lt,String(e.expiration),e.gltexp)];case 8:return n.sent(),[3,22];case 9:return[4,this.setGroupContext(e.groupContext)];case 10:return n.sent(),[3,22];case 11:return[4,this.setTokenExpiration(e.loginTokenExp)];case 12:return t=n.sent(),[3,22];case 13:return[4,this.getTokenExpiration()];case 14:return t=n.sent(),[3,22];case 15:return[4,this.checkTokenRenew(e.loginToken)];case 16:return t=n.sent(),[3,22];case 17:return[4,this.setGroupApiDomain(e.domain)];case 18:return n.sent(),[3,22];case 19:return[4,this.getGroupApiDomain()];case 20:return t=n.sent(),[3,22];case 21:t={errorCode:405001},n.label=22;case 22:return this._utils.sendMessage(t,this._callbackID,this._requestDomain),[2]}}))}))},e.prototype.getGroupApiDomain=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return[2,{errorCode:0,domain:this._storage.getItem("apiDomain_"+this._apiKey)}]}))}))},e.prototype.setGroupApiDomain=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this._storage.setItem("apiDomain_"+this._apiKey,e),[2]}))}))},e.prototype.logout=function(){return i.__awaiter(this,void 0,void 0,(function(){var e;return i.__generator(this,(function(t){switch(t.label){case 0:return e=this._getLogoutURLs(),[4,this.removeToken()];case 1:return t.sent(),this._storage.removeItem(this._storageKey+"_visited"),[2,{logoutURLs:e}]}}))}))},e.prototype.removeToken=function(){return i.__awaiter(this,void 0,void 0,(function(){var e;return i.__generator(this,(function(t){return(e=this._storage.getItem(this._storageKey))&&(this._markRevokedLoginToken(e),this._storage.removeItem(this._storageKey)),this._storage.removeItem(this._storageKey+"_exp"),this._storage.removeItem(this._storageKey+"_gltexp"),this._storage.removeItem(this._storageKey+"_session"),this._storage.removeItem(this._storageKey+"_context"),[2]}))}))},e.prototype.getToken=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,t,n,o,r,a,s,c,u;return i.__generator(this,(function(i){switch(i.label){case 0:return e=0,t=this._storage.getItem(this._storageKey),"undefined"===(n=this._storage.getItem(this._storageKey+"_exp"))?o=Date.now()-1e3:(o=Number(n),r=Date.now()+63072e6,o>r&&(o=Date.now()-1e3)),a=this._storage.getItem(this._storageKey+"_gltexp"),s=this._storage.getItem(this._storageKey+"_context"),c=a||"1"===this._storage.getItem(this._storageKey+"_session"),isNaN(o)||!(0===o&&!c||o>0&&(new Date).getTime()>o)?[3,2]:[4,this.removeToken()];case 1:i.sent(),t=void 0,i.label=2;case 2:return t?(this._markSiteVisited(),u={errorCode:e,login_token:t,expires_in:0===o?0:Math.round((o-(new Date).getTime())/1e3)},s&&(u.groupContext=s),0===o&&a&&(u.gltexp=a),[2,u]):[2,{errorCode:403005}]}}))}))},e.prototype.setToken=function(e,t,n){var o;return i.__awaiter(this,void 0,void 0,(function(){var r,a,s;return i.__generator(this,(function(i){switch(i.label){case 0:return e=e.split("|")[0],r=null===(o=this._storage.getItem(this._storageKey))||void 0===o?void 0:o.split("|")[0],e!==r&&this._markRevokedLoginToken(r),e&&this._storage.setItem(this._storageKey,e),t&&(0===(a="string"==typeof t&&t?Number(t):t)?t=0:(s=void 0,s=a&&-2!==a?1e3*Number(a):31536e6,a=Date.now()+s),this._storage.setItem(this._storageKey+"_exp",""+a),0===t&&this._storage.setItem(this._storageKey+"_session","1",0)),void 0===n?[3,2]:[4,this.setTokenExpiration(n)];case 1:i.sent(),i.label=2;case 2:return e?[4,this._markSiteVisited()]:[3,4];case 3:i.sent(),i.label=4;case 4:return[2]}}))}))},e.prototype.setGroupContext=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this._storage.setItem(this._storageKey+"_context",JSON.stringify(e)),[2]}))}))},e.prototype.setTokenExpiration=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,o;return i.__generator(this,(function(i){switch(i.label){case 0:return this._utils.isValidGltExp(e)?[3,1]:(this._storage.removeItem(this._storageKey+"_gltexp"),e=null,[3,3]);case 1:return n=(t=this._utils).getMaxGltExp,o=[e],[4,this.getTokenExpiration()];case 2:e=n.apply(t,o.concat([i.sent().gltexp])),this._storage.setItem(this._storageKey+"_gltexp",e),this._storage.removeItem(this._storageKey+"_exp"),i.label=3;case 3:return[2,{errorCode:0,gltexp:e}]}}))}))},e.prototype.getTokenExpiration=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this._storage.getItem(this._storageKey)?[2,{errorCode:0,gltexp:this._storage.getItem(this._storageKey+"_gltexp")}]:[2,{errorCode:403005}]}))}))},e.prototype.checkTokenRenew=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.getToken()];case 1:return t=i.sent(),n=this._storage.getItem(this._storageKey+"_revoked_tokens")||"",n.indexOf(e)>=0?[3,3]:[4,this.setToken(e)];case 2:return i.sent(),[2,{errorCode:0}];case 3:return 0===t.errorCode&&n.indexOf(t.login_token)<0?(t.errorCode=403032,[2,t]):[2,{errorCode:403025}];case 4:return[2]}}))}))},e.prototype._markSiteVisited=function(){var e=this._storageKey+"_visited",t=this._storage.getItem(e)||"";-1===t.indexOf(this._siteApiKey)&&(t+=","+this._siteApiKey),this._storage.setItem(e,t)},e.prototype._markRevokedLoginToken=function(e){if(e){var t=this._storageKey+"_revoked_tokens",n=this._storage.getItem(t)||"",i=n.split(",");i.length>3&&i.splice(1,1),(n=i.join(",")).indexOf(e)<0&&(n+=","+e),this._storage.setItem(t,n)}},e.prototype._getLogoutURLs=function(){var e=this._storage.getItem(this._storageKey+"_visited");if(!e)return"";var t=[];for(var n in this._ssoConfig.logoutURLs)-1!==e.indexOf(","+n)&&t.push(this._ssoConfig.logoutURLs[n]);return t.join(",")},e.prototype._createKey=function(e){return e+"_"+this._apiKey+(this._ssoSegment?"_"+this._ssoSegment:"")},e}();t.Sso=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.prototype.documentLocation=function(){return document.location},e.prototype.postMessageToParent=function(e,t,n){window.parent.postMessage(e,t,n)},e}();t.GlobalProvider=n,t.default=new n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(27),r=function(){function e(e,t,n,i,r,a,s){var c=this;void 0===n&&(n=6e4),void 0===i&&(i=o.generateId),void 0===r&&(r=o.createIframe),void 0===a&&(a=function(){return new gigya.Promise((function(e){document.body?e(document.body):document.addEventListener("DOMContentLoaded",(function(){return e(document.body)}))}))}),void 0===s&&(s=window),this.url=e,this._serviceName=t,this.timeout=n,this._idCreator=i,this._iframeCreator=r,this.getIframeHost=a,this._win=s,this._pendingReqs=[],this._mutationObservers=[],this.onResponse=function(e){var t=window.gigya.utils.JSON.parse(e.data);t&&c._pendingReqs[t.id]&&c.validateOrigin(e.origin)&&(c.logServiceMismatch(t),c._pendingReqs[t.id](t),delete c._pendingReqs[t.id])}}return Object.defineProperty(e.prototype,"isInit",{get:function(){return Boolean(this._iframe)},enumerable:!0,configurable:!0}),e.prototype.init=function(e){var t=this;return this.isInit?gigya.Promise.reject("proxy already initialized"):new gigya.Promise((function(n,i){t._iframe=t._iframeCreator(e),t._iframe.src=t.getIframeUrl(t.url,{serviceName:t._serviceName}),t.getIframeHost().then((function(e){t._iframeHost=e,t._iframeHost.appendChild(t._iframe),window.gigya.logger.isEnabled&&t.startObservingIFrameRemoval();var o=t._win.setTimeout((function(){return i("proxy init timeout")}),t.timeout),r=function(e){if(t.validateOrigin(e.origin)){var a=t._tryParseResponse(e.data);if(null==a?void 0:a.signal)switch(t.logServiceMismatch(a),t._win.clearTimeout(o),t._win.removeEventListener("message",r,!0),a.signal){case"listening":t._win.addEventListener("message",t.onResponse,!0),n(a.res);break;case"error":case"stop":i(a.res);break;default:i("unsupported response")}}};t._win.addEventListener("message",r,!0)}))}))},e.prototype.validateOrigin=function(e){var t;return!!this._iframe&&o.validateOrigin(null===(t=this._iframe)||void 0===t?void 0:t.src,e)},e.prototype.logServiceMismatch=function(e){this.validateService(null==e?void 0:e.serviceName)||window.gigya.logger.report("Service Proxy: Service name mismatch",{source:"ServiceProxy",reason:"Service name mismatch",currentServiceName:this._serviceName,responseServiceName:null==e?void 0:e.serviceName,msg:e},!1,!0)},e.prototype.validateService=function(e){return e&&e===this._serviceName},e.prototype.getIframeUrl=function(e,t){var n=t.serviceName;return window.gigya.utils.URL.addParamsToURL(e,{serviceName:n})},e.prototype.postToIFrame=function(e){var t;e.serviceName=this._serviceName;var n=this.registerMessage(e),i="object"==typeof e?JSON.stringify(e):e;return this._iframe.contentWindow.postMessage(i,null===(t=this._iframe)||void 0===t?void 0:t.src),n},e.prototype.registerMessage=function(e,t){var n=this;return void 0===t&&(t=this.timeout),new gigya.Promise((function(i,o){var r=n._win.setTimeout((function(){o("proxy request timeout")}),t);n._pendingReqs[e.id]=function(e){n._win.clearTimeout(r),"error"===e.signal?o(e.res):i(e.res)}}))},e.prototype.sendRequest=function(e,t){return this.postToIFrame({id:this._idCreator(),methodName:e,params:t})},e.prototype.stop=function(e){return void 0===e&&(e=!1),i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){switch(i.label){case 0:if(this.isInit)return[3,1];throw"proxy is not active";case 1:t=void 0,i.label=2;case 2:return i.trys.push([2,4,5,6]),[4,this.postToIFrame({id:this._idCreator(),signal:"stop"})];case 3:return[2,i.sent()];case 4:throw n=i.sent(),t=n,n;case 5:return t&&!e||(this._mutationObservers&&this._mutationObservers.length&&this.stopObservingIFrameRemoval(),this._win.removeEventListener("message",this.onResponse,!0),this._iframeHost.removeChild(this._iframe),delete this._iframe),[7];case 6:return[2]}}))}))},e.prototype.wrapWith=function(e){var t;if("function"==typeof e)t=o.getAllClassMethodsNames(e);else if(e instanceof Array)t=e;else{if("object"!=typeof e)throw"unsupported type for wrapper";t=Object.keys(e)}return this.proxyFromKeys(t)},e.prototype.proxyFromKeys=function(e){var t=this,n={};return e.forEach((function(e){return n[e]=function(){for(var n=[],i=0;i-1&&e%1==0&&e-1},O.prototype.set=function(e,t){var n=this.__data__,i=L(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},E.prototype.clear=function(){this.__data__={hash:new x,map:new(A||O),string:new x}},E.prototype.delete=function(e){return R(this,e).delete(e)},E.prototype.get=function(e){return R(this,e).get(e)},E.prototype.has=function(e){return R(this,e).has(e)},E.prototype.set=function(e,t){return R(this,e).set(e,t),this};var N=z((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(H(e))return I?I.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return o.test(e)&&n.push(""),e.replace(r,(function(e,t,i,o){n.push(i?o.replace(a,"$1"):t||e)})),n}));function F(e){if("string"==typeof e||H(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function z(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){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),a};return n.cache=new(z.Cache||E),n}function K(e,t){return e===t||e!=e&&t!=t}z.Cache=E;var G=Array.isArray;function B(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function H(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==_.call(e)}e.exports=function(e,t,n){return null==e?e:j(e,t,n)}}).call(this,n(16))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(45);function o(e){var t=null;void 0!==window.onGigyaServiceReady&&(t=window.onGigyaServiceReady),window.onGigyaServiceReady=function(){t&&t.apply(this,arguments),e()}}t.ensureJsSdkLoaded=function(e,t,n,i,r){window.gigya&&window.gigya.isGigya?window.gigya.isReady?n():o(n):(!function(e,t,n,i){window.gigya=window.gigya||{},window.gigya.isGigya=!0;var o=function(e,t){void 0===t&&(t={});var n=new URL(e);return Object.keys(t).forEach((function(e){t[e]&&n.searchParams.append(e,t[e])})),n.toString()}("https://"+t+"/js/gigya.js?",{apiKey:e,version:n,build:i}),r=document.createElement("script");r.type="text/javascript",r.src=o,r.async=!0,document.getElementsByTagName("head")[0].appendChild(r)}(e,t,i,r),o(n))},t.findConfiguration=function(){var e,t,n=function(){for(var e,t=document.getElementsByTagName("script"),n=t.length-1;n>=0;n--){var i=t[n],o=i.src.toLowerCase();if(""!=o&&o.indexOf("?apikey=")>-1&&o.indexOf("gigya.oidc.")>-1){e=i;break}}return e}(),o=window.__gigyaConf||{};if(!n)throw new Error("failed to find script element");var r=i.urlParams(n.src).apiKey,a=i.urlParams(n.src).version,s=i.urlParams(n.src).buildNumber,c=(null===(t=null===(e=n.innerHTML)||void 0===e?void 0:e.replace(/^\s+|\s+$/g,""))||void 0===t?void 0:t.trim())||o.oidc;if(!c)throw new Error("No object params was found.");if(!r)throw new Error("failed to find api key");var u=document.createElement("a");return u.href=n.src,{apiKey:r,originHostname:u.hostname||function(e){var t=e.dc?"."+e.dc:"",n="gigya.com";e.hostname&&e.hostname.match(/(?:-st\d+)\.(gigya-api\.cn|sapcdm\.cn|gigya\.com)/)&&(n=e.hostname);return"cdns"+t+"."+n}(c),configJson:c,sdkVersion:a,buildNumber:s}},t.getCacheProvider=function(){var e,t,n,i;return null!==(i=null===(n=null===(t=null===(e=window.gigya._)||void 0===e?void 0:e.config)||void 0===t?void 0:t.flags)||void 0===n?void 0:n.oidcUseLocalStorage)&&void 0!==i&&i?window.gigya.utils.localCache:window.gigya.utils.sessionCache},t.isOidcSinglePageApp=function(e){if(!e.configJson)return!1;var t=window.gigya.utils.JSON.deserialize(e.configJson);return void 0===(null==t?void 0:t.loginURL)}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.navigator=function(){return window.navigator},e.document=function(){return window.document},e.screen=function(){return window.screen},e.location=function(){return window.location},e.top=function(){return window.top},e.history=function(){return window.history},e}();t.WindowProvider=n},,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),o=n(69),r=n(34),a=n(26),s=n(134);function c(e){return"on"===e.substring(0,2)?e:"on"+e.substring(0,1).toUpperCase()+e.substring(1)}function u(e,t){if(e&&e.eventName){var n=e.eventName;o.addLog('Dispatching widget event "'+n+'" for '+t.lastSource+" with this event object",e),r.handleSpecialFields(e);for(var i,a=n.split(","),s=0;sr.LogLevel.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"logLevel",{get:function(){return this.getConfig().logLevel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"palette",{get:function(){return c[this.getConfig().logTheme]},enumerable:!0,configurable:!0}),e.prototype.getNextColor=function(){return 0===this.getConfig().logTheme?"":(this._currColorIdx>=this.palette.length&&(this._currColorIdx=0),"#"+this.palette[this._currColorIdx++])},Object.defineProperty(e.prototype,"currentGroup",{get:function(){return this._groupsStack[this._groupsStack.length-1]},enumerable:!0,configurable:!0}),e.prototype.readLoggerConfigFromHash=function(){var e=null,t=a.getReqParamValue(location.hash,this.configKey);if(t)try{e=JSON.parse(decodeURIComponent(t))}catch(e){console.error("[Gigya]: exception while trying to parse logger config from hash",e)}return e},e.prototype.readLoggerConfigFromCookie=function(){try{var e=null,t=a.getParamValue(document.cookie,this.configKey,";");if(t)try{e=JSON.parse(t)}catch(e){console.error("[Gigya]: exception while trying to parse logger config from cookie",e)}return e}catch(e){return}},e.prototype.setLoggerConfigCookie=function(e){document.cookie=this.configKey+"="+JSON.stringify(e)},e.prototype.overrideClientLogs=function(){var e=this,t=this._global.Proxy;if(t)switch(this.getConfig().clientMuteLevel){case 0:break;case 2:this._global.console=new t(this._global.console,{get:function(){return l}});break;case 1:default:this._global.console=new t(this._global.console,{get:function(t,n){return-1!==["group","groupCollapsed","groupEnd"].indexOf(n)?function(){for(var t,i=[],r=0;r=this.logLevel||e>=u&&this.logLevel1)for(var n=1;n-1},W.prototype.set=function(e,t){var n=this.__data__,i=X(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},q.prototype.clear=function(){this.size=0,this.__data__={hash:new V,map:new(G||W),string:new V}},q.prototype.delete=function(e){var t=ce(this,e).delete(e);return this.size-=t?1:0,t},q.prototype.get=function(e){return ce(this,e).get(e)},q.prototype.has=function(e){return ce(this,e).has(e)},q.prototype.set=function(e,t){var n=ce(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},J.prototype.clear=function(){this.__data__=new W,this.size=0},J.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},J.prototype.get=function(e){return this.__data__.get(e)},J.prototype.has=function(e){return this.__data__.has(e)},J.prototype.set=function(e,t){var n=this.__data__;if(n instanceof W){var i=n.__data__;if(!G||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new q(i)}return n.set(e,t),this.size=n.size,this};var ee,te=function(e,t,n){for(var i=-1,o=Object(e),r=n(e),a=r.length;a--;){var s=r[ee?a:++i];if(!1===t(o[s],s,o))break}return e};function ne(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":U&&U in Object(e)?function(e){var t=A.call(e,U),n=e[U];try{e[U]=void 0;var i=!0}catch(e){}var o=k.call(e);i&&(t?e[U]=n:delete e[U]);return o}(e):function(e){return k.call(e)}(e)}function ie(e){return Se(e)&&"[object Arguments]"==ne(e)}function oe(e){return!(!be(e)||function(e){return!!C&&C in e}(e))&&(me(e)?x:i).test(function(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function re(e){if(!be(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=de(e),n=[];for(var i in e)("constructor"!=i||!t&&A.call(e,i))&&n.push(i);return n}function ae(e,t,n,i,o){e!==t&&te(t,(function(r,a){if(o||(o=new J),be(r))!function(e,t,n,i,o,r,a){var s=ge(e,n),c=ge(t,n),u=a.get(c);if(u)return void Y(e,n,u);var l=r?r(s,c,n+"",e,t,a):void 0,d=void 0===l;if(d){var g=ve(c),f=!g&&we(c),p=!g&&!f&&Pe(c);l=c,g||f||p?ve(s)?l=s:Se(m=s)&&ye(m)?l=function(e,t){var n=-1,i=e.length;t||(t=Array(i));for(;++n-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(N?function(e,t){return N(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ie);function pe(e,t){return e===t||e!=e&&t!=t}var he=ie(function(){return arguments}())?ie:function(e){return Se(e)&&A.call(e,"callee")&&!R.call(e,"callee")},ve=Array.isArray;function ye(e){return null!=e&&_e(e.length)&&!me(e)}var we=F||function(){return!1};function me(e){if(!be(e))return!1;var t=ne(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function _e(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Se(e){return null!=e&&"object"==typeof e}var Pe=p?function(e){return function(t){return e(t)}}(p):function(e){return Se(e)&&_e(e.length)&&!!r[ne(e)]};function Ae(e){return ye(e)?$(e,!0):re(e)}var Ce,ke=(Ce=function(e,t,n){ae(e,t,n)},se((function(e,t){var n=-1,i=t.length,o=i>1?t[i-1]:void 0,r=i>2?t[2]:void 0;for(o=Ce.length>3&&"function"==typeof o?(i--,o):void 0,r&&function(e,t,n){if(!be(n))return!1;var i=typeof t;return!!("number"==i?ye(n)&&le(t,n.length):"string"==i&&t in n)&&pe(n[t],e)}(t[0],t[1],r)&&(o=i<3?void 0:o,i=1),e=Object(e);++n-1&&(e=e.substring(e.indexOf("?")+1));for(var t=e.split(/&/),n={},i=0;i-1){i=!0;break}if(!i)for(o=0;o-1&&c.load("//cdn.optimizely.com/js/"+t.serviceParams.apiKey+".js")}}}function S(e){y.localInfo.isNativeMobileApp||"1"!=window.gigya._.apiAdapter.getStorage().getItem("gig_debug")?e():window.gigya.socialize.showDebugUI({ignoreApiQueue:!0,waitForDebug:!1,onLoad:e})}function P(){s.invokeOnPageLoad((function(){void 0!==window.gigya_omniture_conf&&c.load(u.getCdnResource("/js/GenesisExchange_Gigya.min.js"))}))}t.parseScriptRetries=0,t.init=function(){var e=this;window.gigya.logger.group("websdk root"),window.gigya.logger.info("partner settings:",window.gigya.partnerSettings),window.gigya.logger.info("local info:",y.localInfo);var t=window.gigya.logger.group("bootstrap websdk");r.hold("bootstrap","API"),(y.localInfo.isIE6||y.localInfo.isIE7||y.localInfo.isIE8||y.localInfo.isIE9||y.localInfo.isIE10)&&"undefined"!=typeof console&&void 0!==console.log&&console.log("Gigya: It looks like you're using an old version of Internet Explorer. This browser is not supported. Please upgrade to a newer version of IE."),C((function(n){return i.__awaiter(e,void 0,void 0,(function(){var e,o,c,u;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,_.default.fetchConfig(n,null===(c=window.gigya.thisScript)||void 0===c?void 0:c.baseDomain)];case 1:return i.sent(),(e=window.gigya.thisScript.globalConf.customEventMap)&&(window.gigya.logger.info("adding custom event map"),a.addMap(e)),window.gigya.logger.group("init api adapter"),k((function(){if(window.gigya.logger.groupEnd("init api adapter"),window.gigya.isReady=!0,"function"==typeof onGigyaServiceReady){window.gigya.logger.info("invoke local onGigyaServiceReady event");try{onGigyaServiceReady("socialize")}catch(e){window.gigya.logger.warn("gigya: error while invoking onGigyaServiceReady",e)}}if("function"==typeof window.gigya.thisScript.globalConf.onGigyaServiceReady){window.gigya.logger.info("invoke globalconf's onGigyaServiceReady event");try{window.gigya.thisScript.globalConf.onGigyaServiceReady("socialize")}catch(e){window.gigya.logger.warn("gigya: error while invoking onGigyaServiceReady injected from server",e)}}x((function(){r.release("bootstrap","API"),y.localInfo.isNativeMobileApp||(O(),I(),s.invokeOnPageLoad((function(){return window.setTimeout(window.gigya.socialize.trackReferrals,1e3)}))),t.end()}))})),P(),b(),o={sref:null===(u=document.referrer)||void 0===u?void 0:u.substr(0,1e3)},window.gigya.thisScript.globalConf.actionCounterPath&&(o.actionCounterPath=window.gigya.thisScript.globalConf.actionCounterPath),[2]}}))}))}))},t.loadABTesting=b,t.startDebugIfNeeded=S,t.loadOmniture=P;function A(e){void 0===e&&(e="en-US");var t,n,i=e.replace("en-US","en"),o=(e=e.replace("_","-").toLowerCase()).split("-"),r=o[0];switch(t=(t=o.length>1?o[1]:r).toUpperCase(),e){case"es-mx":n=e,t="ES";break;case"pt-br":case"zh-cn":case"zh-hk":case"zh-tw":case"te-st":case"fr-inf":case"de-inf":case"es-inf":case"nl-inf":case"lt-lt":case"lv-lv":case"et-ee":n=e;break;default:n=r}return{full:r+"-"+t,langCode:n,countryCode:t,originalLang:i}}function C(e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,a;return i.__generator(this,(function(i){switch(i.label){case 0:return!l.getGigyaScriptElement()||window.__gig_hidescript?[3,5]:(function(e){void 0===e&&(e=null);var t;window.gigya.logger.info("parsing gigya script");var n=l.getGigyaScriptElement();if(n&&!window.__gig_hidescript){var i=d.getParamsFromURL(n.src,!0)||{},o=g.deserialize(window.gigya.partnerSettings.siteGroupGlobalConf)||{},r=g.deserialize(window.gigya.partnerSettings.globalConf,{},{siteGroupGlobalConf:o})||{},a=g.deserialize(null===(t=n.innerHTML)||void 0===t?void 0:t.trim())||{},s=window.__gigyaConf||{};window.gigya.thisScript={scriptElement:n,protocol:0===n.src.indexOf("https:")?"https":"http",baseDomain:n.src.split("/")[2],APIKey:e||i.apikey,lang:A(i.lang||s.lang||a.lang||r.lang||o.lang),globalConf:f.merge([window.gigya.partnerSettings.plugins||{},o,r,a,s],!1),URLParams:i},window.gigya.thisScript.globalConf.lang=window.gigya.thisScript.lang.langCode,!window.gigya.thisScript.APIKey&&"object"==typeof console&&console.warn?console.warn("**** WARNING - Loading socialize.js without an APIKey parameter is unsupported and may result in an unexpected behavior. ****"):window.gigya.thisScript.globalConf.APIKey=window.gigya.thisScript.APIKey}}(),!window.gigya.thisScript.APIKey&&"object"==typeof console&&console.warn?console.warn("**** WARNING - Loading socialize.js without an APIKey parameter is unsupported and may result in an unexpected behavior. ****"):window.gigya.thisScript.globalConf.APIKey=window.gigya.thisScript.APIKey,n=!1,o.OidcFlowHandler.shouldReplaceContext()?[4,D()]:[3,2]);case 1:r=i.sent(),n=r.isContextReplaced,i.label=2;case 2:return window.gigya.utils.URL.getParamsFromURL(document.location.href).gig_ssoToken?[4,E()]:[3,4];case 3:(null==(a=i.sent())?void 0:a.apiKey)&&(window.gigya.logger.warn("APIKey changed. using APIKey: "+a.apiKey),window.gigya.apiKey=window.gigya.thisScript.APIKey=window.gigya.thisScript.globalConf.APIKey=a.apiKey,n=!0),m.setSsoContext(a),i.label=4;case 4:return e(n),[3,6];case 5:t.parseScriptRetries<10?(t.parseScriptRetries++,window.setTimeout((function(){C(e)}),200)):(window.gigya.thisScript={scriptElement:null,protocol:y.localInfo.protocol,baseDomain:"https://cdns.gigya.com",APIKey:"",lang:A(""),globalConf:{},URLParams:{}},e(!1)),i.label=6;case 6:return[2]}}))}))}function k(e){var t=window.__gigAPIAdapterSettings,n=function(e){void 0===e&&(e=window.__gigAPIAdapterSettings);var t;e&&e.getAPIKey()===window.gigya.thisScript.APIKey&&(t=e.getAdapterName());return t||"web"}(t);y.localInfo.isNativeMobileApp="mobile"===n,window.gigya.logger.info("selecting api adapter: "+n),window.gigya._.apiAdapter=window.gigya._.apiAdapters[n].newApiAdapter(t),s.createAlias("gigya.auth.loginToken.getTokenParam",window.gigya._.apiAdapter.getTokenParam),S((function(){window.gigya._.apiAdapter.init(e,3)}))}function I(){window.gigya.thisScript.globalConf.autoLogin&&(window.gigya.logger.info("triggering auto-login"),p.autoLogin(),h.autoLogin())}function x(e){var t=window.gigya.utils.URL.getParamsFromURL(document.location.href);t.mode&&"error"===t.mode?(window.gigya.events.global.dispatchWhenHandlersAdded(["accounts.error","socialize.error"],t),e()):t.errorCode&&t.regToken?(window.gigya.logger.info("returned from redirect with regToken (errorCode: "+t.errorCode+")"),v.checkCompleteRegistration(t,window.gigya.thisScript.globalConf,"",(function(){return e()}))):e()}function O(){r.queueForExecution("API",(function(){s.invokeOnPageLoad((function(){window.gigya.providersConfig.facebook&&(window.gigya.logger.info("loading facebook sdk"),p.load(!1)),window.gigya.providersConfig.googlePlus&&(window.gigya.logger.info("loading google plus sdk"),h.load())}))}))}function E(){return i.__awaiter(this,void 0,void 0,(function(){var e,t;return i.__generator(this,(function(n){return e=window.gigya.utils.URL.getParamsFromURL(document.location.href),t=e.gig_ssoToken,"device_sso"===e.scope?[2,window.gigya.fidm.oidc.op.getContext({opKey:window.gigya.partnerSettings.ssoKey,sso_token:t})]:[2,w.getSsoContext(t)]}))}))}function T(e){return f.merge([e.plugins||{},null==e?void 0:e.siteGroupGlobalConf,null==e?void 0:e.siteGlobalConf,null==e?void 0:e.scriptConf,null==e?void 0:e.__gigyaConf],!1)}function L(e,t){return g.deserialize(e,{},{siteGroupGlobalConf:t})||{}}function D(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return[4,(new o.OidcFlowHandler).handleOidcFlow()];case 1:return[2,e.sent()]}}))}))}t.parseLang=A,t.parseScriptElement=C,t.initApiAdapter=k,t.autoLogin=I,t.checkReturnFromRedirect=x,t.injectExternalSdks=O,t.getGlobalConfFromChildContext=T,t.deserializeGlobalConf=L}).call(this,n(0).__assign)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(29),r=n(98),a=n(33),s=n(20),c=n(12),u=n(51);function l(){var e,t;return window.gigya.partnerSettings.ssoKey?!!(null===(t=null===(e=window.gigya.thisScript)||void 0===e?void 0:e.globalConf)||void 0===t?void 0:t.storageDomainOverride)||(window.gigya.logger.warn("Central login page must configure storageDomainOverride in webSDK Configuration"),!1):(window.gigya.logger.warn("Not in SSO Group"),!1)}t.ssoLogin=function(e){void 0===e&&(e={}),l()&&(window.gigya.utils.toggles.isOn("keepSessionOnSSOLogin")||o.remove(),window.gigya.accounts.sso.login(e))},t.continueSso=function(e){var t,n,c,u,d;return void 0===e&&(e={}),i.__awaiter(this,void 0,void 0,(function(){var g,f,p,h,v,y,w,m;return i.__generator(this,(function(_){switch(_.label){case 0:return s.hold("ssoContinue","API"),g=window.gigya.logger.group("sso.continue"),f=function(e){return e&&window.gigya.logger.warn(e),s.release("ssoContinue","API"),g.end()},l()?(p=window.gigya.getUrlParam("ssoToken"),h=window.gigya.getUrlParam("scope"),p?(v=(null===(n=null===(t=window.gigya.thisScript)||void 0===t?void 0:t.globalConf)||void 0===n?void 0:n.APIKey)||(null===(c=window.gigya.thisScript)||void 0===c?void 0:c.APIKey),(w=o.get(v))?[3,2]:[4,r.syncGroupToken(v)]):[2,f("ssoToken must be present in the url")]):[2,f()];case 1:w=_.sent(),_.label=2;case 2:return(y=w)?(e.sdk="js_"+((null===(u=window.gigya.build)||void 0===u?void 0:u.version)||""),e.sdkBuild=(null===(d=window.gigya.build)||void 0===d?void 0:d.number)||0,g.end(),"device_sso"===h?(m=i.__assign({context:p,login_token:y},e),window.gigya.logger.info("redirect to oidc continue with params: ",m),window.gigya.fidm.oidc.op.redirectToContinue(i.__assign({opKey:window.gigya.partnerSettings.ssoKey},m))):(m={ssoToken:p,login_token:y,APIKey:v},window.gigya.logger.info("redirect to sso.continue with params: ",m),a.redirect("https://"+window.gigya._.getApiDomain()+"/accounts.sso.continue",[m,e],"POST")),[2]):[2,f("can't continue with SSO login, missing local session")]}}))}))},t.continueSsoSync=function(e){var t,n,r,s,c;void 0===e&&(e={});var u=window.gigya.logger.group("sso.continue"),d=function(e){return e&&window.gigya.logger.warn(e),u.end()};if(!l())return d();var g=window.gigya.getUrlParam("ssoToken"),f=window.gigya.getUrlParam("scope");if(!g)return d("ssoToken must be present in the url");var p=(null===(n=null===(t=window.gigya.thisScript)||void 0===t?void 0:t.globalConf)||void 0===n?void 0:n.APIKey)||(null===(r=window.gigya.thisScript)||void 0===r?void 0:r.APIKey),h=o.get(p);if(!h)return d("can't continue with SSO login, missing local session");if(e.sdk="js_"+((null===(s=window.gigya.build)||void 0===s?void 0:s.version)||""),e.sdkBuild=(null===(c=window.gigya.build)||void 0===c?void 0:c.number)||0,u.end(),"device_sso"===f){var v=i.__assign({context:g,login_token:h},e);window.gigya.logger.info("redirect to oidc continue with params: ",v),window.gigya.fidm.oidc.op.redirectToContinue(i.__assign({opKey:window.gigya.partnerSettings.ssoKey},v))}else{v={ssoToken:g,login_token:h,APIKey:p};window.gigya.logger.info("redirect to sso.continue with params: ",v),a.redirect("https://"+window.gigya._.getApiDomain()+"/accounts.sso.continue",[v,e],"POST")}},t.getSsoContext=function(e){var t;null==e||e.callback((null===(t=window.gigya._.sso)||void 0===t?void 0:t.context)||{})},t.setSsoContext=function(e){try{var t=(new u.default).getGigParamsFromURL().removeUnacceptableParams(new RegExp(c.GIGYA_INTERNAL_PARAM_PREFIX+"|"+c.GIGYA_INTERNAL_PARAMS+"|gig_ssoToken")).removePrefix().toObject(),n=(null==e?void 0:e.rpContext)?JSON.parse(e.rpContext):{};window.gigya._.sso.context=i.__assign(i.__assign({},t),n)}catch(e){window.gigya.logger.report("failed to set sso context")}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(87),r=n(119),a=n(52),s=n(10),c=n(4),u=n(6),l=function(e){function t(t,n,i,o){void 0===t&&(t=window),void 0===n&&(n=window.gigya.errorReport),void 0===i&&(i=function(){return 100*Math.random()}),void 0===o&&(o=r.loggerJsonp);var a=e.call(this,t)||this;a._global=t,a._errorReportConfig=n,a._random=i,a._jsonp=o;var s=a._errorReportConfig&&a._errorReportConfig.enabled,c=a.enrollErrorReporting();return s&&c&&(a._isErrorReporter=!0,a.setupMessageListener(),a._guid=a.generateGUID()),a}return i.__extends(t,e),t.prototype.enrollErrorReporting=function(){return(this._errorReportConfig&&this._errorReportConfig.probability)>=this._random()},t.prototype.setupMessageListener=function(){var e=this;this._global.addEventListener("message",(function(t){var n=window.gigya.dataCenter,i=window.gigya.defaultApiDomain.replace(/\./g,"."),r=new RegExp("cdns?."+n+"."+i+"$");if(t.origin.match(r))try{var a=JSON.parse(t.data);a.type===o.gigErrorReport&&e.report(a.message,a.details,a.includeStack)}catch(e){}}),!1)},t.prototype.getApiKey=function(){var e=window.gigya.thisScript&&window.gigya.thisScript.APIKey;if(!e){var t=a.getGigyaScriptElement();e=(s.getParamsFromURL(t&&t.src,!0)||{}).apikey}return e},t.prototype.createReportParams=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n=!1);var i={message:e,apiKey:this.getApiKey(),stack:n?(new Error).stack:"",page:c.localInfo&&c.localInfo.pageDomain,browser:c.localInfo&&c.localInfo.currentBrowser,buildVersion:window.gigya.build.version,buildNumber:window.gigya.build.number,format:"json",sdk:"web"};return"string"==typeof t&&(t={message:t}),t.guid=this._guid,i.details=JSON.stringify(t),i},t.prototype.report=function(e,t,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=!1),i||this._isErrorReporter)try{var o=this.createReportParams(e,t,n),r=location.protocol+"//"+this.apiDomain+"/sdk.errorReport";u.Uri.parse(r).addToSearch(o).fetch(0)}catch(e){}},t.prototype.generateGUID=function(){try{return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}catch(e){return""}},Object.defineProperty(t.prototype,"apiDomain",{get:function(){var e,t;return(null===(e=window.gigya.partnerSettings)||void 0===e?void 0:e.customAPIDomainPrefix)&&(null===c.localInfo||void 0===c.localInfo?void 0:c.localInfo.baseDomain.endsWith(window.gigya._.config.hostedPagesDomain))?c.localInfo.baseDomain:(null===(t=window.gigya.partnerSettings)||void 0===t?void 0:t.customAPIDomainPrefix)&&c.localInfo.baseDomain&&c.localInfo.baseDomain!==window.gigya.defaultApiDomain?window.gigya.partnerSettings.customAPIDomainPrefix+"."+c.localInfo.baseDomain:"accounts."+window.gigya.dataCenter+"."+window.gigya.defaultApiDomain},enumerable:!0,configurable:!0}),t}(o.BaseLogger);t.ParentLogger=l},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.disabled=0]="disabled",e[e.debug=1]="debug",e[e.info=2]="info",e[e.warn=3]="warn",e[e.error=4]="error"}(t.LogLevel||(t.LogLevel={}))},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.loggerJsonp=function(e,t){var n=document.createElement("script");n.src=e+"?"+t,n.type="text/javascript",n.onload=function(){document.getElementsByTagName("head")[0].removeChild(n)},document.getElementsByTagName("head")[0].appendChild(n)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(87),r=n(53),a=function(e){function t(t){void 0===t&&(t=window);var n=e.call(this,t)||this;return n._global=t,n}return i.__extends(t,e),t.prototype.report=function(e,t,n){void 0===n&&(n=!0);try{var i=document.createElement("a"),a=r.getReqParamValue(location.hash,"origin")||r.getReqParamValue(location.hash,"d");if(!a)return;i.href=a;var s=i.protocol+"//"+i.hostname+(i.port?":"+i.port:"");this._global.top.postMessage(JSON.stringify({type:o.gigErrorReport,message:e,details:t,includeStack:n}),s)}catch(e){console.error(e)}},t}(o.BaseLogger);t.IFrameLogger=a},,,,,,,,,,,,,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(13);t.fill=function e(t,n){"function"==typeof t&&(t=t(n)),t instanceof Array&&(t=t.join(""));var o=/(\$)(!?)([a-z_][a-z_.\d]*)([(][^()]*[)])?|(\$)(!?)\{([a-z_][a-z_.\d]*)([(][^()]*[)])?\}/gi;o.lastIndex=0;for(var r,a=t,s=o.exec(a);null!=s;){var c="!"==s[2+(r="$"==s[1]?0:4)],u=s[3+r],l=s[4+r];null==l&&(l="");"."==u.substring(0,1)&&(u=u.substring(1)),"DBG"==u.substring(0,3)&&(u=u.substring(3),1);for(var d="",g=u+l;g!=d;){d=g;var f=o.lastIndex;g=e(d,n),o.lastIndex=f}var p="",h=0;if(null!=n[u.split(".")[0]])try{p=i.default.getValue(n,g)}catch(e){}else p="$"+(c?"!":"")+g,h=1;a=c?a.replace(s[0],""):a.substr(0,s.index)+p+a.substr(s.index+s[0].length),o.lastIndex=s.index+h,s=o.exec(a)}return a}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Social=0]="Social",e[e.Sso=1]="Sso"}(t.OAuthMode||(t.OAuthMode={}))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),o=n(3),r=n(20);window.gigya.socialize||(window.gigya.socialize={}),window.gigya.gcs||(window.gigya.gcs={}),window.gigya.gm||(window.gigya.gm={}),window.gigya.comments||(window.gigya.comments={}),window.gigya.accounts||(window.gigya.accounts={}),window.gigya.gscounters||(window.gigya.gscounters={});var a={};t.getApi=function(e){return a[e]};var s=function(){function e(e,t){this.methodName=e,this.settings=t,this.addAlias(),a[e]=this}return e.prototype.preprocessRequest=function(e,t){this.settings.preprocessor?this.settings.preprocessor(e,t):t()},e.prototype.addAlias=function(){var e=this;i.createAlias("gigya."+this.methodName,(function(){for(var t,n=[],i=0;i0;){var e=i.clone(t.queue.splice(0,5),!0,!0);window.gigya.gscounters.sendReport({reports:e,noAuth:!a(e)})}}function a(e){for(var t=0;t0&&(n=e.allowCredentials.map((function(e){return i.__assign(i.__assign({},e),{id:o.base64URLStringToBuffer(e.id)})}))),i.__assign(i.__assign({},e),{challenge:o.base64URLStringToBuffer(e.challenge),allowCredentials:n})},e.prototype.createPKCredentialCreate=function(e){var t;return i.__assign(i.__assign({},e),{challenge:o.base64URLStringToBuffer(e.challenge),user:i.__assign(i.__assign({},e.user),{id:o.utf8StringToBuffer(e.user.id)}),excludeCredentials:null===(t=e.excludeCredentials)||void 0===t?void 0:t.map((function(e){return i.__assign(i.__assign({},e),{id:o.base64URLStringToBuffer(e.id)})}))})},e}();t.CredentialService=r;var a=function(){function e(){}return e.prototype.createNewAbortSignal=function(){this.controller&&this.controller.abort();var e=new AbortController;return this.controller=e,e.signal},e.prototype.abort=function(){var e;null===(e=this.controller)||void 0===e||e.abort(),this.controller=null},e}();t.default=new r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.utf8StringToBuffer=function(e){return(new TextEncoder).encode(e)},t.bufferToUTF8String=function(e){return new TextDecoder("utf-8").decode(e)},t.bufferToBase64URLString=function(e){for(var t=new Uint8Array(e),n="",i=0;i=0&&window.gigya.logger.report("oidc storage logs - set",{key:e,value:n[e]},!1)}window.localStorage.setItem("gigyaCache",o.serialize(n))}catch(e){}r.release("cache","cache_"+e)}}function s(e){a(e,null)}t.set=a,t.get=function e(t,n){if(void 0===n&&(n=-1),!i)return null;try{if(r.isActive("cache_"+t))return r.waitFor("cache_"+t,e,arguments),null;var a=window.localStorage.getItem("gigyaCache"),c=o.deserialize(a),u=c[t];if(u){var l=(new Date).getTime();return n<0||n+u.time>l?u.response:(t.indexOf("gig_oidcContext_")>=0&&window.gigya.logger.report("oidc storage logs - get",{key:t,value:c[t],cacheTime:u.time,currentTime:l},!1),s(t),null)}if(!u)return r.hold("cache","cache_"+t),null}catch(e){}return null},t.remove=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(){function e(){}return e.prototype.callGetScreenSets=function(e,t,n,i){void 0===n&&(n={}),window.gigya.accounts.getScreenSets(n,{lang:t,screenSetIDs:e,callback:i})},e.prototype.fetchScreenSetJs=function(e,t,n,o,r){var a,s;return void 0===r&&(r=2e4),i.__awaiter(this,void 0,void 0,(function(){var n,c,u;return i.__generator(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),n=this.getScreenSetScriptName(e,t),[4,window.gigya.scriptLoader.load(n,"/screensets/"+e+"/"+t,{apiKey:window.gigya.apiKey,sdk:"js_"+(null===(a=window.gigya.build)||void 0===a?void 0:a.version),sdkBuild:(null===(s=window.gigya.build)||void 0===s?void 0:s.number)||0},{timeout:r})];case 1:return(null==(c=i.sent().screenSet)?void 0:c.html)?(o({errorCode:0,screenSets:[c]}),[3,3]):(o({errorCode:404e3,screenSets:[]}),[2]);case 2:return"timeout"===(u=i.sent())?this.reportLoadError("screenset "+e+" didn't load in "+r+"ms"):this.reportLoadError("could not load screenset "+e,u),[3,3];case 3:return[2]}}))}))},e.prototype.getScreenSetScriptName=function(e,t){var n=["screenset",e];return t&&n.push(t),n.join("_")},e.prototype.reportLoadError=function(e,t){window.gigya.logger.report(e,{reportSource:"Bootstrap",reportMessage:e,errorData:t},!1,!0)},e}();t.screenSetFetchHelper=new o},function(e,t,n){(function(e){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(50),r=n(65),a=n(52),s=n(5),c=n(115),u=n(1),l=function(){function t(){}return t.prototype.callSkdConfigGet=function(e,t,n){var o,r;return i.__awaiter(this,void 0,void 0,(function(){var a;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.fetchSdkConfig(t,n)];case 1:return a=i.sent(),window.gigya._.config={flags:a.flags,plugins:a.plugins,api:a.api,hostedPagesDomain:a.hostedPagesDomain,toggles:null!==(o=a.toggles)&&void 0!==o?o:{},consent:{hasLicense:null!==(r=a.hasConsentLicense)&&void 0!==r&&r},passwordComplexity:a.passwordComplexity||null,captcha:a.captcha},e&&this.replaceContext(a),[2]}}))}))},t.prototype.fetchSdkConfigJs=function(e){return void 0===e&&(e=2e4),i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,window.gigya.scriptLoader.load("config","/js/config.js",{apiKey:window.gigya.apiKey,version:window.gigya.build.version,build:window.gigya.build.number,ver:o.getTimeBasedVersion(),flavor:window.gigya.build.flavor},{timeout:e})];case 1:return n.sent(),[3,3];case 2:return"timeout"===(t=n.sent())?this.reportConfigLoadError("config.js didn't load in "+e+"ms"):this.reportConfigLoadError("could not load config",t),[3,3];case 3:return[2]}}))}))},t.prototype.reportConfigLoadError=function(e,t){window.gigya.logger.report(e,{reportSource:"Bootstrap",reportMessage:e,errorData:t},!1,!0)},t.prototype.fetchSdkConfig=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var n;return i.__generator(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,4]),[4,r.getSdkConfig(e,t)];case 1:return[2,i.sent()];case 2:return n=i.sent(),window.gigya.logger.error("Error fetching sdk config with base domain. Running fallback",{error:n}),[4,r.getSdkConfig()];case 3:return[2,i.sent()];case 4:return[2]}}))}))},t.prototype.replaceContext=function(t){var n;e(window.gigya.thisScript.globalConf,t.plugins);var i,o={};try{var r=a.getGigyaScriptElement(),l=s.deserialize(null===(n=r.innerHTML)||void 0===n?void 0:n.trim())||{},d=window.__gigyaConf||{},g=s.deserialize(null==t?void 0:t.siteGroupGlobalConf)||{},f=c.deserializeGlobalConf(null==t?void 0:t.globalConf,g);o=c.getGlobalConfFromChildContext({siteGroupGlobalConf:g,siteGlobalConf:f,scriptConf:l,__gigyaConf:d,plugins:window.gigya.partnerSettings.plugins}),i=c.parseLang(f.lang||g.lang)||window.gigya.thisScript.lang,window.gigya.logger.report("Replace SSO Context")}catch(e){window.gigya.logger.error("Error in bootstrap trying replaceContext",{e:e})}u.FlagService.overrideAllChildContext&&(e(window.gigya.partnerSettings.plugins,t.plugins),e(window.gigya.partnerSettings,t.captcha),window.gigya.partnerSettings.baseDomains=t.api.baseDomains.join(","),window.gigya.thisScript.globalConf=o,window.gigya.thisScript.lang=i,window.gigya.thisScript.globalConf.lang=window.gigya.thisScript.lang.langCode,window.gigya.thisScript.globalConf.APIKey=window.gigya.thisScript.APIKey)},t}();t.configFetchHelper=new l}).call(this,n(0).__assign)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(136),r=n(202),a=n(20),s=function(e){function t(t,n,i,o,r,a){void 0===o&&(o={}),void 0===r&&(r={});var s=e.call(this,t,o)||this;return s.schema=n,s.requiresSession=i,s.settings=o,s.adapterSettings=r,s.altSessionParams=a,r.forceHttps=!0,void 0===r.requiresSession&&(r.requiresSession=function(){return i}),s}return i.__extends(t,e),t.prototype.run=function(e,t,n){var i,o=this;if(null===(i=this.settings.mode)||void 0===i?void 0:i.silent){this.settings.mode.warn&&window.gigya.logger.warn("Deprecated Feature: "+this.methodName);var s=e.callback;"function"==typeof s&&s()}else{var c=function(){new r.ServerApiRequest(o,e,n).start()};e.ignoreApiQueue?c():a.queueForExecution("API",(function(){c()}))}},t}(o.BaseApi);t.ServerApi=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2);!function(e){e.token="token",e.regToken="regToken",e.JSSDK="jssdk"}(t.GigyaResponseType||(t.GigyaResponseType={})),t.GigyaResource={preferencesCenter:"urn:gigya:schema:preferencesCenter"},i.DeepFreeze(t.GigyaResource),t.GigyaTokenType={bearerToken:"urn:gigya:token-type:bearer"},i.DeepFreeze(t.GigyaTokenType)},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(26),o=n(9);t._aliases={};var r=function(){function e(e,n,i,o,r,a,s){if(this.ID=e,this.displayName=n,this.width=i,this.height=o,this.explicitOnly=a,this.aliases=s,this.arDefaultCapabilities=r.split(","),this.name=n.toLowerCase().split(" ").join("").split("!").join("").split(".").join("").split("+").join("plus"),s){t._aliases||(t._aliases={});for(var c=s.split("|"),u=0;u-1&&this._handlers.splice(t,1)},e}();t.EventWrapper=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getMetaTag=function(e){for(var t=document.getElementsByTagName("meta"),n=0;n=6?n():window.setTimeout(n,10)}}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=window,i=function(){function e(){}return e.prototype.forceReset=function(){e.greCaptchaLoad=void 0},e.prototype.getInstance=function(e){return(null==e?void 0:e.isEnterprise)?grecaptcha.enterprise:grecaptcha},e.prototype.load=function(t){var i,o=this;return"undefined"!=typeof grecaptcha||e.greCaptchaLoad||(e.greCaptchaLoad=new gigya.Promise((function(r,a){var s=function(){var e,n=null===(e=o.getInstance(t))||void 0===e?void 0:e.ready;"undefined"!=typeof grecaptcha&&n?n(r):r()},c=function(){return clearTimeout(i),window.gigya.logger.debug("Loading google captcha from "+e.RECAPTCHA_DOMAIN),"undefined"!=typeof grecaptcha?(window.gigya.logger.debug("Aborting. Google captcha already loaded"),s()):t.googleCaptchaDomain===e.RECAPTCHA_DOMAIN?(window.gigya.logger.debug("Aborting. Already tried to load from "+e.RECAPTCHA_DOMAIN+" and failed'"),a("Failed to load google's captcha from "+e.RECAPTCHA_DOMAIN)):(t.googleCaptchaDomain=e.RECAPTCHA_DOMAIN,void window.gigya.utils.script.load(o.providerURL(t),a,s))};return i=setTimeout(c,e.RETRY_FROM_RECAPTCHA_TIMEOUT),t.callbackID&&(n[t.callbackID]=function(){delete n[t.callbackID],"undefined"!=typeof grecaptcha?s():a("Error while trying to load grecaptcha")}),window.gigya.logger.debug("Loading grecaptcha from "+o._domain(t)),window.gigya.utils.script.load(o.providerURL(t),c,s)}))),e.greCaptchaLoad},e.prototype.providerURL=function(e){var t="api";return(null==e?void 0:e.isEnterprise)&&(t="enterprise"),"//"+this._domain(e)+"/recaptcha/"+t+".js?"+this.loadQueryParams(e)},e.prototype.loadQueryParams=function(t){var n="";return n=t.type==e.V3_CAPTCHA_TYPE||t.type==e.ENTERPRISE_CAPTCHA_TYPE?"render="+t.siteKey:"render=explicit",t.callbackID&&(n+="&onload="+t.callbackID),t.lang&&(n+="&hl="+t.lang),n},e.prototype._domain=function(t){var n=0===window.gigya.dataCenter.toLowerCase().indexOf("cn1");return t.googleCaptchaDomain||(n?e.RECAPTCHA_DOMAIN:e.GOOGLE_DOMAIN)},e.V3_CAPTCHA_TYPE="reCaptchaV3",e.ENTERPRISE_CAPTCHA_TYPE="reCaptchaEnterpriseScore",e.RECAPTCHA_DOMAIN="www.recaptcha.net",e.GOOGLE_DOMAIN="www.google.com",e.RETRY_FROM_RECAPTCHA_TIMEOUT=3e3,e}();t.GoogleReCaptchaLoader=i,t.default=new i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),o=n(302),r=n(6),a=n(1),s=n(303);t.ALLOWED_REPORT_VALUE="a-zA-Z0-9-_/",t.NOT_ALLOWED_REPORT_CHARS_REGEX=new RegExp("[^"+t.ALLOWED_REPORT_VALUE+"]","g"),t.queue=[];var c;function u(){t.reports.forEach((function(e){var t;null===(t=window.gigya.defaultEventMaps)||void 0===t||t.push(e.config)}))}function l(){t.reports.forEach((function(e){s(window.gigya.defaultEventMaps,(function(t){return(null==t?void 0:t.id)===(null==e?void 0:e.id)}))}))}t.reports=[{id:o.defaultScreenSetReportID,config:o.defaultScreenSetReportConfig}],t.registerReports=u,t.removeReports=l,t.replaceNotAllowedReportChars=function(e,n){return e?e.replace(t.NOT_ALLOWED_REPORT_CHARS_REGEX,n):""},u(),c=setInterval((function(){if(a.FlagService.stopSendingReports)return l(),clearInterval(c);for(;t.queue&&t.queue.length>0;){var e=i.clone(null===t.queue||void 0===t.queue?void 0:t.queue.splice(0,5),!0,!0);try{var n="https://"+window.gigya._.apiDomainFactory()("reports")+"/reports.reportGenericEvents";r.Uri.parse(n).addToSearch({apiKey:window.gigya.thisScript.APIKey}).addToSearch({events:JSON.stringify(e)}).fetch(0)}catch(e){}}}),5e3)},function(e,t,n){(function(e){Object.defineProperty(t,"__esModule",{value:!0});var i,o,r=n(0),a=n(3),s=n(39),c=n(69),u=n(97),l=n(136),d=n(5),g=n(34),f=n(35),p=n(10),h=n(41),v=n(33),y=n(305),w=n(1),m=n(49),_=n(166);function b(e){return{status:"OK",statusMessage:"",errorCode:0,statusCode:0,errorMessage:"",errorDetails:"",statusReason:"",originalResponse:e}}s.add("onFBCRefreshed",(function(){i=!1}),"component"),function(e){e[e._unknown=0]="_unknown",e[e.facebook=1]="facebook",e[e.linkedin=2]="linkedin",e[e.samlProvider=3]="samlProvider",e[e.samlSession=4]="samlSession"}(o||(o={})),t.EndpointsRequiredFullLang=new Set(["accounts.verifyLogin"]);var S=function(){function n(e,t,n,i){void 0===i&&(i=null),this.api=e,this.params=a.merge([a.clone(t),e.settings.defaultParams]),this.originalParams=a.clone(t),this.callback=t.callback,this.riskAssessmentHandler=new y.RiskAssessmentHandlerTimeoutDecorator(i||new y.RiskAssessmentHandler),this.headers=n||{}}return n.prototype.start=function(){var e=this;window.gigya._.apiAdapter.isSessionValid(this.params,(function(t){return r.__awaiter(e,void 0,void 0,(function(){var e,n,i;return r.__generator(this,(function(o){switch(o.label){case 0:return!this.api.adapterSettings.requiresSession()||t||this.doesHaveAltSessionParam()?[3,1]:(window.gigya.logger.debug(this.api.methodName+": missing required session"),this.afterServerApiResponse(a.clone({status:"FAIL",errorMessage:"Unauthorized user",statusMessage:"Unauthorized user",errorCode:403005}),!1),[3,6]);case 1:return window.gigya.logger.debug("server request: "+this.api.methodName,this.params),this.api.adapterSettings.requiresSession()?[4,window.gigya._.apiAdapter.setGltexpFromSSO(this.params.APIKey)]:[3,3];case 2:return n=o.sent(),[3,4];case 3:n=!1,o.label=4;case 4:return e=n,[4,this.sendRequest(t)];case 5:i=o.sent(),e&&403005!==i.errorCode&&this.dispatchAccountsLoginEvent(i),o.label=6;case 6:return[2]}}))}))}))},n.prototype.sendRequest=function(e){var n=this,i=a.merge([this.api.adapterSettings,{cacheTimeout:this.params.cacheTimeout,forceGigyaDomain:!e&&this.api.adapterSettings.forceGigyaDomain}]);return new gigya.Promise((function(o){n.beforeRequest(e,(function(r){var a;if(r)n.afterServerApiResponse(r,e,o);else{s.dispatch({eventName:"beforeRequest",methodName:n.api.methodName,rawParams:n.originalParams,params:n.params},n.originalParams);var c=n.getMethodUrl();if(n.api.settings.oauth)window.gigya._.apiAdapter.sendOauthRequest(c,n.params,(function(t){n.afterServerApiResponse(t,e,o)}),i,n.headers);else{try{if(window.gigya.utils.toggles.isOn("useFullLangCode")&&t.EndpointsRequiredFullLang.has(c)){var u=window.gigya.thisScript.lang;window.gigya.logger.report("useFullLangCode toggle is enabled",{countryCode:u.countryCode,full:u.full,langCode:u.langCode,originalLang:u.originalLang,currentLangInParams:n.params.lang,ssoKey:window.gigya.partnerSettings.ssoKey,samlProxyUrl:null===(a=window.gigya.samlConfig)||void 0===a?void 0:a.proxyPageURL,source:"ServerApiRequest useFullLangCode toggle"},!1,!0),w.FlagService.useFullLang&&window.gigya.thisScript.lang.originalLang!==n.params.lang&&(n.params.lang=window.gigya.thisScript.lang.originalLang)}}catch(e){window.gigya.logger.error("Error while setting full lang code",e)}window.gigya._.apiAdapter.sendRequest(c,n.params,(function(t){n.afterServerApiResponse(t,e,o)}),i,n.headers)}}}))}))},n.prototype.getMethodUrl=function(){return this.api.settings.restUrl?this.constructRestUrl():this.api.methodName},n.prototype.constructRestUrl=function(){for(var e,t=/({(.*?)})/g,n=t.exec(this.api.settings.restUrl),i=this.api.settings.restUrl;null!==n;)i=i.replace(n[1],null!==(e=this.params[n[2]])&&void 0!==e?e:""),n=t.exec(this.api.settings.restUrl);return i},n.prototype.beforeRequest=function(e,t){var n,i=this;m.logoutMethods[this.api.methodName]&&(!e&&!this.params.regToken||window.gigya.partnerSettings.ssoLogoutUrl&&document.location.href==window.gigya.partnerSettings.ssoLogoutUrl)&&t(b(null)),this.handleDeprecatedParams(),this.handleCollections(),this.handleConnectWithoutLoginBehavior(e),(null===(n=this.params)||void 0===n?void 0:n.hasOwnProperty("_requestSettings"))&&this.handleMethodSettings(this.params._requestSettings);var o=this.params[this.params.provider+"ExtraPermissions"];this.params.extraPermissions=o||this.params.permissions,this.handleRiskAssessment().then((function(){i.api.preprocessRequest(i.params,(function(){i.setOverridableParams((function(){i.setNonOverridableParams(e,(function(){i.filterParams(i.params),c.logCall(i.api.methodName,i.originalParams,i.originalParams.lastSource),t()}))}))}))}))},n.prototype.setAuthorizationHeader=function(e){this.headers.Authorization=e},n.prototype.handleMethodSettings=function(e){var t;(null===(t=null==e?void 0:e.auth)||void 0===t?void 0:t.basic)&&this.setAuthorizationHeader("Bearer "+e.auth.basic)},n.prototype.setOverridableParams=function(e){a.merge([{},this.params]),e()},n.prototype.doesHaveAltSessionParam=function(){if(this.api.altSessionParams){for(var e=this.api.altSessionParams.split("|"),t=0;t0&&(this.params.UIDs+=","),this.params.UIDs+=e}},n.prototype.extractListOfGIGUIDs=function(e){var t=this;switch(typeof e){case"string":return e;case"object":if(void 0!==e.UID)return e.UID;if(e instanceof window.gigya.socialize.Collection){var n=[];return e.each((function(e,i){var o=t.extractListOfGIGUIDs(e);null!=o&&""!=o&&n.push(o)})),n.join(",")}}},n.prototype.handleConnectWithoutLoginBehavior=function(e){if("socialize.addConnection"===this.api.methodName){var t=this.params.connectWithoutLoginBehavior;"string"==typeof t&&(t=t.toLowerCase()),"loginexistinguser"===t&&(this.params.loginIfExists=!0),e||(this.api=l.getApi("socialize.login"),"alwayslogin"!==t&&(this.params.temporary_account=!0))}},n.prototype.filterParams=function(e){this.params=a.extractProperties(e,{},this.getFullSchema())},n.prototype.getFullSchema=function(){if(null==this.api.schema)return"";var e=(this.api.schema+"|"+m.defaultApiSchema).split("|");-1===e.indexOf("context")&&"string"==typeof this.params.context&&e.push("context");for(var t=0;t-1,friends:i.indexOf("friends")>-1,login:i.indexOf("login")>-1,status:i.indexOf("status")>-1,notifications:i.indexOf("notifications")>-1,contacts:i.indexOf("contacts")>-1,photos:i.indexOf("photos")>-1}}if(g.convertIdentitiesArrayToObject(n),"string"==typeof n.providers&&(n.providers=n.providers.split(",")),this.params.group&&!e.settings){var o=g.getGigyaSettings(this.params.group);e.settings=o}}break;case"socialize.getAvailableProviders":for(var r={},s=0;s0)for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];this.params[i]||t.push(i)}return!(t.length>0)||(this.dispatchInvalidParamError(t[0]),!1)},e.prototype.dispatchEvent=function(e,t){return void 0===t&&(t={}),t.eventName=e,this._eventDispatcher(t,this.params)},e.prototype.dispatchErrorFromResponse=function(e){return i.dispatchErrorFromResponse(this.params,e)},e.prototype.dispatchInvalidParamError=function(e){i.dispatchInvalidParamError(this.params,e)},e.prototype.getEvent=function(e){return this._eventWrappers[e]||(this.params[e]?this.params[e]instanceof Array||(this.params[e]=[this.params[e]]):this.params[e]=[],this._eventWrappers[e]=new r.EventWrapper(this.params[e])),this._eventWrappers[e]},e.prototype.addGlobalEventHandlers=function(e){for(var t in e)e.hasOwnProperty(t)&&this.addGlobalEventHandler(t,e[t])},e.prototype.addGlobalEventHandler=function(e,t,n,i){void 0===n&&(n=null),void 0===i&&(i="socialize"),this._globalEventHandlers[e]||(this._globalEventHandlers[e]=[]);var o=a.add(e,t,"component",n,i,this.params);this._globalEventHandlers[e].push(o)},e.prototype.removeGlobalEventHandlers=function(e){for(var t in e)e.hasOwnProperty(t)&&this.removeGlobalEventHandler(t,e[t])},e.prototype.removeGlobalEventHandler=function(e,t,n,i){void 0===n&&(n=null),void 0===i&&(i="socialize");var r=this._globalEventHandlers[e];if(r){var s=o.firstIndex(r,(function(e){return e.handler==t}));if(s>-1){var c=r[s];a.remove(c.fullEventName,c),r.splice(s,1)}}},e.prototype.prepareCallback=function(e){var t=this;return function(){for(var n=[],i=0;i1){var w=y[1].split("#")[0].split("&")[0];w!=window.gigya._.apiAdapter.getTokenParam(a.APIKey,"UUID")&&(g.sn="AddressBarShares",g.uuid=w,"_"==w&&delete g.uuid,document.location.replace("#"),p.trackAddressBarShares(),g.url=document.location.href.split("#")[0])}}g.uuid&&j(a.APIKey,g.uuid),g.sn&&!l&&p.report("linkback",a.APIKey,a.cid,d,null,g),(g.sn||l)&&r.dispatch(o.removeUndefined(s)),n=!0}"function"==typeof a.callback&&a.callback({status:"OK",statusMessage:"",operation:"trackReferrals",context:a.context,errorMessage:"",errorCode:0})}function D(e,t,n){e||(e=window.gigya.thisScript.globalConf.APIKey),t||(t={},-1!=document.location.href.indexOf("#")&&(t=f.deserialize(document.location.href.split("#")[1]))),n||(n={},-1!=document.location.href.indexOf("?")&&(n=f.deserialize(document.location.href.split("?")[1].split("#")[0]))),t.guid&&"_"!=t.guid&&j(e,t.guid);var i=t._giguuid||n._giguuid;i&&j(e,i)}function j(e,t){b.default.set(this.getGigRefUidCookieKey(e),t,null,null,null,"Lax")}function R(){for(var e=[],t=0;t0&&(i.form=a[0])}for(var s=0;s=9||i.localInfo.isEdgeLegacy||i.localInfo.isSafari&&a()>=4||i.localInfo.isGoogleBot},t.getVersion=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.create=function(e,t){return function(){for(var n=[],i=0;i/g,">").replace(/\"/g,""").replace(/'/g,"'").replace(/&#173;/g,"­")},t.sanitizeAttribute=function(e){return null==e||void 0===e?e:e.replace(/&/g,"&").replace(//g,">").replace(/\"/g,""").replace(/\=/g,"=")}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(14),o=function(){function e(){this.bindings=[]}return e.getInstance=function(){return e.self||(e.self=new e),e.self},e.prototype.bindTabLooping=function(e,t){if(!this.getListenerByContainer(e)){var n=this.createListener(e,t);window.addEventListener("keydown",n,!0)}},e.prototype.unbindTabLooping=function(e){var t=this.getListenerByContainer(e);t&&window.removeEventListener("keydown",t,!0)},e.prototype.getSortedTabbableElements=function(t,n){for(var i=this,o=0,r=t.querySelectorAll(e.selector),a=[],s=0;s0||e.offsetHeight>0)&&(!t||n.call(e,t))},e.prototype.getNextTabbableElement=function(e,t,n){var i=this.getSortedTabbableElements(e,n),o=i.indexOf(t);return-1===o?void 0:o!==i.length-1?i[o+1]:i[0]},e.prototype.getPreviousTabbableElement=function(e,t,n){var i=this.getSortedTabbableElements(e,n),o=i.indexOf(t);return-1===o?void 0:0!==o?i[o-1]:i[i.length-1]},e.prototype.sort=function(t,n){var i=this.getTabIndex(t)-this.getTabIndex(n);return 0!==i?i:Number(t.getAttribute(e.naturalTabOrder))-Number(n.getAttribute(e.naturalTabOrder))},e.prototype.getTabIndex=function(e){return 0===e.tabIndex?99999999:e.tabIndex},e.prototype.getListenerByContainer=function(e){for(var t=0,n=this.bindings;t=6?r():window.setTimeout(r,100)))}var n,r};window.addEventListener?window.addEventListener("message",g,!1):window.attachEvent&&window.attachEvent("onmessage",g),c=!0}},t.removeMessageListener=u},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.delayHelper={delay:function(e,t){setTimeout((function(){return e()}),t)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=n(3),r={},a={User:"personwithuid+isLoggedIn|false,isConnected|false,isSiteUser|false,identities|{},providers|[],timestamp,UIDSig,UIDSignature,signatureTimestamp,loginProvider,loginProviderUID,capabilities|{}",Friend:"personwithuid+timestamp,friendshipSig,friendshipSignature,signatureTimestamp,timestamp,isSiteUser|false,identities|{}",Identity:"person+isExpiredSession|false,allowsLogin|false,providerUID,provider,isLoginIdentity|false,missingPermissions",Contact:"provider,firstName,lastName,nickname,email,photoURL",person:"nickname,photoURL,thumbnailURL,birthDay|0,birthMonth|0,birthYear|0,gender,email,proxiedEmail,country,state,city,zip,firstName,lastName,profileURL,age|0",personwithuid:"person+UID,isSiteUID|false",UserAction:"actorUID,actorNickname,actionName,date|new Date(),targets|[],images|[],actionData1,actionData2,iconURL,title,linkBack,userMessage,description,actionLinks|[],mediaItems|[],subtitle"},s=function(e){var t={},n=a[e];-1!=n.indexOf("+")&&(t=s(n.split("+")[0]),n=n.split("+")[1]);for(var o=n.split(","),r=0;r1)try{c=i.deserialize(u[1],"")}catch(e){}t[u[0]]=c||""}return t},c=function(e){return function(t){var n=r[e];for(var i in n)this[i]=o.clone(n[i]);if("object"==typeof t)for(var i in t)"function"!=typeof t[i]&&(this[i]=o.clone(t[i]))}};for(var u in a)r[u]=s(u),window.gigya.socialize[u]=c(u);window.gigya.socialize.Collection=function(e,t){this.arr=e,this._key=t||""},window.gigya.socialize.Collection.prototype={asArray:function(){return this.arr},each:function(e){for(var t=0,n=this.arr[t];n;)e(n,t),t++,n=this.arr[t]},getById:function(e){return void 0===this._hash&&this._buildHash(),(this._hash?this._hash:this.arr)[e]},getSize:function(){return this.arr.length},_buildHash:function(){var e=this._hash={},t=this._key;this.each((function(n,i){e["function"==typeof n[t]?n[t]():n[t]]=n}))}},window.gigya.socialize.UserAction.prototype={clone:function(){return new window.gigya.socialize.UserAction(window.gigya.utils.object.clone(this,!0,!0))},getTemplate:function(){return this.titleTemplate},setTemplate:function(e){this.titleTemplate=e},getActor:function(e){return{UID:this.actorUID,nickname:this.actorNickname}},setActionName:function(e){return this.actionName=e,this},getActionName:function(e){return this.actionName},getTemplateFields:function(){var e=[];for(var t in this.templateFields)e.push(this.templateFields[t]);return new window.gigya.socialize.Collection(e,"fieldName")},setTemplateField:function(e,t,n){return this.templateFields[e]={fieldName:e,text:t,href:n},this},getTemplateField:function(e){return this.templateFields[e]?this.templateFields[e]:null},addTarget:function(e){return"object"==typeof e?(this.targets.push({UID:e.UID,nickname:e.nickname?e.nickname:""}),this):"string"==typeof e?(this.targets.push({UID:e,nickname:""}),this):void 0},addActionLink:function(e,t){return this.actionLinks.push({text:e,href:t||""}),this},addMediaItem:function(e){return this.mediaItems.push(e),this},setTitle:function(e){return e&&(this.title=e),this},setLinkBack:function(e){return e&&e.toString&&(e=e.toString()),e&&(this.linkBack=e),this},setUserMessage:function(e){return this.userMessage=e||"",this},setDescription:function(e){return this.description=e||"",this},addImage:function(e,t){this.addMediaItem({type:"image",src:e,href:t})},getImages:function(){return new window.gigya.socialize.Collection(this.images,"")},getTargets:function(){return new window.gigya.socialize.Collection(this.targets,"UID")},setIconURL:function(e){return this.iconURL=e,this},getIconURL:function(){return this.iconURL},getDate:function(){return this.date},setActionData1:function(e){return this.actionData1=e,this},getActionData1:function(e){return this.actionData1},setActionData2:function(e){return this.actionData2=e,this},getActionData2:function(e){return this.actionData2},setSubtitle:function(e){return this.subtitle=e,this},getSubtitle:function(){return this.subtitle}}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.scripts=new Map}return e.prototype.load=function(e,t,n,i){var o=this;void 0===n&&(n={});var r=(void 0===i?{timeout:2e4}:i).timeout;return new gigya.Promise((function(i,a){var s;o.scripts.set(e,{onReady:function(e){i(e),s&&clearTimeout(s)}}),o.loadScript(t,n),s=setTimeout((function(){s&&clearTimeout(s),a("timeout")}),r)}))},e.prototype.getScript=function(e){return this.scripts.get(e)},e.prototype.loadScript=function(e,t){var n=window.gigya._.Uri.parse(window.gigya._.getCdnResource(e)).addToSearch(t).toString();window.gigya.utils.script.load(n)},e}();t.scriptLoader=new n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(201);t.REPORT_EVENT_CATEGORIES={screenSets:"screenSets"},t.ScreenSetEvents=["afterScreenLoad","submit"],t.defaultScreenSetReportID="screen-set-report-events-map",t.defaultScreenSetReportConfig={id:t.defaultScreenSetReportID,defaultMethod:function(e){var n=e.abTesting,o=e.screenSetID,r=e.eventName;if(!n||!o||!r)return;var a=n.requestedScreenId,s=n.variantId,c=n.testId;if(!s||!c||!a)return;var u=o+"/"+a+"/"+c,l={eventCategory:t.REPORT_EVENT_CATEGORIES.screenSets,eventTime:Date.now(),eventType:r,eventData:s,eventId:i.replaceNotAllowedReportChars(u,"-")};i.queue.push(l)},eventMap:[{events:t.ScreenSetEvents.join(","),args:[function(e){return e}]}]}},function(e,t,n){(function(e,n){var i="[object Arguments]",o="[object Map]",r="[object Object]",a="[object Set]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,u=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g,g=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[i]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p[o]=p["[object Number]"]=p[r]=p["[object RegExp]"]=p[a]=p["[object String]"]=p["[object WeakMap]"]=!1;var h="object"==typeof e&&e&&e.Object===Object&&e,v="object"==typeof self&&self&&self.Object===Object&&self,y=h||v||Function("return this")(),w=t&&!t.nodeType&&t,m=w&&"object"==typeof n&&n&&!n.nodeType&&n,_=m&&m.exports===w&&h.process,b=function(){try{return _&&_.binding("util")}catch(e){}}(),S=b&&b.isTypedArray;function P(e,t){for(var n=-1,i=e?e.length:0;++ns))return!1;var u=r.get(e);if(u&&r.get(t))return u==t;var l=-1,d=!0,g=1&o?new se:void 0;for(r.set(e,t),r.set(t,e);++l-1},re.prototype.set=function(e,t){var n=this.__data__,i=le(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},ae.prototype.clear=function(){this.__data__={hash:new oe,map:new(V||re),string:new oe}},ae.prototype.delete=function(e){return me(this,e).delete(e)},ae.prototype.get=function(e){return me(this,e).get(e)},ae.prototype.has=function(e){return me(this,e).has(e)},ae.prototype.set=function(e,t){return me(this,e).set(e,t),this},se.prototype.add=se.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},se.prototype.has=function(e){return this.__data__.has(e)},ce.prototype.clear=function(){this.__data__=new re},ce.prototype.delete=function(e){return this.__data__.delete(e)},ce.prototype.get=function(e){return this.__data__.get(e)},ce.prototype.has=function(e){return this.__data__.has(e)},ce.prototype.set=function(e,t){var n=this.__data__;if(n instanceof re){var i=n.__data__;if(!V||i.length<199)return i.push([e,t]),this;n=this.__data__=new ae(i)}return n.set(e,t),this};var be=function(e){return U.call(e)};function Se(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||f.test(e))&&e>-1&&e%1==0&&eo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(o);++i-1&&e%1==0&&e<=9007199254740991}function Ne(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Fe(e){return!!e&&"object"==typeof e}function ze(e){return"symbol"==typeof e||Fe(e)&&"[object Symbol]"==U.call(e)}var Ke=S?function(e){return function(t){return e(t)}}(S):function(e){return Fe(e)&&Ue(e.length)&&!!p[U.call(e)]};function Ge(e){return Re(e)?ue(e):ve(e)}function Be(e){return e}n.exports=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,o=[],r=e.length;for(t=he(t);++i