// ### server injected code ###
var gigya = window.gigya;
if (typeof gigya == 'undefined' || !gigya.isGigya) { gigya = { isGigya: true } };
gigya.env='prod';
gigya.gaeDomain='chat.gigya.com';
gigya.defaultApiDomain='gigya.com';
gigya.dataCenter='au1';
gigya.build={"number":10174,"version":"latest","chico":true};

if (typeof gigya.partnerSettings == 'undefined') {
    gigya.partnerSettings={"authMode":"cookie","captchaProvider":"Google","siteGroupGlobalConf":"{\n    // A comma-delimited list of provider names to enable.\n    enabledProviders: '*',\n    \n    // Enable SSO token\n    enableSSOToken: true,\n\n    // Define the language of Gigya's user interface and error message.\n    lang: 'en',\n    \n    // Bind globally to events.\n    // See: http://developers.gigya.com/display/GD/Events#Events-OverridingtheDefaultEventMap\n    customEventMap: {\n        eventMap: [{\n            events: '*',\n            args: [function(e) {\n                return e;\n            }],\n            method: function(e) {\n                if (e.fullEventName === 'login') {\n                    // Handle login event here.\n                } else if (e.fullEventName === 'logout') {\n                    // Handle logout event here.\n                }\n            }\n        }]\n    }\n}","plugins":{"connectWithoutLoginBehavior":"loginExistingUser","defaultRegScreenSet":"Default-RegistrationLogin","defaultMobileRegScreenSet":"Default-RegistrationLogin","sessionExpiration":0,"rememberSessionExpiration":-2,"apiDomain":"au1.gigya.com"},"ssoKey":"3_DHeg1ce5-HbfRNLEbQs6kLcA5kfRcyCq-3o7EJJgM8qCyMJzLQeqGmgeiuQJzD8b","baseDomains":"abc.net.au,secure-abc.net.au,abc-stage.net.au"};
}
gigya.providersConfig = {};
gigya.samlConfig = {"errorPageURL":null,"proxyPageURL":null};

gigya.errorReport = {"enabled":true,"probability":2};
gigya.bypassCaptchaV1 = true;

if (gigya.canary && gigya.canary.isActive) {} else if (gigya.__initialized) { console.warn('**** gigya.js loaded twice ****'); }
else {
gigya.__initialized = true;
// ### end server injected code ###
// API adapters
!function(e){var t={};function i(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=t,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(o,n,function(t){return e[t]}.bind(null,n));return o},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=231)}({0:function(e,t,i){"use strict";i.r(t),function(e){i.d(t,"__extends",function(){return n}),i.d(t,"__assign",function(){return r}),i.d(t,"__rest",function(){return a}),i.d(t,"__decorate",function(){return s}),i.d(t,"__param",function(){return g}),i.d(t,"__metadata",function(){return d}),i.d(t,"__awaiter",function(){return c}),i.d(t,"__generator",function(){return u}),i.d(t,"__exportStar",function(){return l}),i.d(t,"__values",function(){return p}),i.d(t,"__read",function(){return w}),i.d(t,"__spread",function(){return y}),i.d(t,"__await",function(){return f}),i.d(t,"__asyncGenerator",function(){return h}),i.d(t,"__asyncDelegator",function(){return m}),i.d(t,"__asyncValues",function(){return v}),i.d(t,"__makeTemplateObject",function(){return _}),i.d(t,"__importStar",function(){return b}),i.d(t,"__importDefault",function(){return k});var o=function(e,t){return(o=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 n(e,t){function i(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var r=function(){return(r=e||function(e){for(var t,i=1,o=arguments.length;i<o;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function a(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&(i[o[n]]=e[o[n]])}return i}function s(e,t,i,o){var n,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(r<3?n(a):r>3?n(t,i,a):n(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a}function g(e,t){return function(i,o){t(i,o,e)}}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,i,o){return new(i||(i=gigya.Promise))(function(n,r){function a(e){try{g(o.next(e))}catch(e){r(e)}}function s(e){try{g(o.throw(e))}catch(e){r(e)}}function g(e){e.done?n(e.value):new i(function(t){t(e.value)}).then(a,s)}g((o=o.apply(e,t||[])).next())})}function u(e,t){var i,o,n,r,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[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(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(n=2&r[0]?o.return:r[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,r[1])).done)return n;switch(o=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=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(!(n=(n=a.trys).length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){a.label=r[1];break}if(6===r[0]&&a.label<n[1]){a.label=n[1],n=r;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(r);break}n[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],o=0}finally{i=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function l(e,t){for(var i in e)t.hasOwnProperty(i)||(t[i]=e[i])}function p(e){var t="function"==typeof Symbol&&e[Symbol.iterator],i=0;return t?t.call(e):{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}}}function w(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var o,n,r=i.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return a}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(w(arguments[t]));return e}function f(e){return this instanceof f?(this.v=e,this):new f(e)}function h(e,t,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,n=i.apply(e,t||[]),r=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(e){n[e]&&(o[e]=function(t){return new gigya.Promise(function(i,o){r.push([e,t,i,o])>1||s(e,t)})})}function s(e,t){try{(i=n[e](t)).value instanceof f?gigya.Promise.resolve(i.value.v).then(g,d):c(r[0][2],i)}catch(e){c(r[0][3],e)}var i}function g(e){s("next",e)}function d(e){s("throw",e)}function c(e,t){e(t),r.shift(),r.length&&s(r[0][0],r[0][1])}}function m(e){var t,i;return t={},o("next"),o("throw",function(e){throw e}),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,n){t[o]=e[o]?function(t){return(i=!i)?{value:f(e[o](t)),done:"return"===o}:n?n(t):t}:n}}function v(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e=p(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(i){t[i]=e[i]&&function(t){return new gigya.Promise(function(o,n){(function(e,t,i,o){gigya.Promise.resolve(o).then(function(t){e({value:t,done:i})},t)})(o,n,(t=e[i](t)).done,t.value)})}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function b(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}}}.call(this,i(0).__assign)},119:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),n=i(48),r=function(){function e(e,t,i,o,r,a){var s=this;void 0===t&&(t=6e4),void 0===i&&(i=n.generateId),void 0===o&&(o=n.createIframe),void 0===r&&(r=function(){return new gigya.Promise(function(e){document.body?e(document.body):document.addEventListener("DOMContentLoaded",function(){return e(document.body)})})}),void 0===a&&(a=window),this.url=e,this.timeout=t,this._idCreator=i,this._iframeCreator=o,this.getIframeHost=r,this._win=a,this._pendingReqs=[],this._mutationObservers=[],this.onResponse=function(e){var t=window.gigya.utils.JSON.parse(e.data);t&&s._pendingReqs[t.id]&&s.validateOrigin(e.origin)&&(s._pendingReqs[t.id](t),delete s._pendingReqs[t.id])}}return Object.defineProperty(e.prototype,"isInit",{get:function(){return Boolean(this._iframe)},enumerable:!0,configurable:!0}),e.prototype.init=function(){var e=this;return this.isInit?gigya.Promise.reject("proxy already initialized"):new gigya.Promise(function(t,i){e._iframe=e._iframeCreator(),e._iframe.src=e.url,e.getIframeHost().then(function(o){e._iframeHost=o,e._iframeHost.appendChild(e._iframe),window.gigya.logger.isEnabled&&e.startObservingIFrameRemoval();var n=e._win.setTimeout(function(){return i("proxy init timeout")},e.timeout),r=function(o){if(e.validateOrigin(o.origin)){var a=JSON.parse(o.data);if(a.signal)switch(e._win.clearTimeout(n),e._win.removeEventListener("message",r,!0),a.signal){case"listening":e._win.addEventListener("message",e.onResponse,!0),t(a.res);break;case"error":case"stop":i(a.res);break;default:i("unsupported response")}}};e._win.addEventListener("message",r,!0)})})},e.prototype.validateOrigin=function(e){return n.validateOrigin(this._iframe.src,e)},e.prototype.postToIFrame=function(e){var t=this.registerMessage(e),i="object"==typeof e?JSON.stringify(e):e;return this._iframe.contentWindow.postMessage(i,this._iframe.src),t},e.prototype.registerMessage=function(e,t){var i=this;return void 0===t&&(t=this.timeout),new gigya.Promise(function(o,n){var r=i._win.setTimeout(function(){n("proxy request timeout")},t);i._pendingReqs[e.id]=function(e){i._win.clearTimeout(r),"error"===e.signal?n(e.res):o(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),o.__awaiter(this,void 0,void 0,function(){var t,i;return o.__generator(this,function(o){switch(o.label){case 0:if(this.isInit)return[3,1];throw"proxy is not active";case 1:t=void 0,o.label=2;case 2:return o.trys.push([2,4,5,6]),[4,this.postToIFrame({id:this._idCreator(),signal:"stop"})];case 3:return[2,o.sent()];case 4:throw i=o.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=n.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=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return t.sendRequest(e,i)}}),i},e.prototype.startObservingIFrameRemoval=function(){for(var e=this._iframe;e.parentElement;)this.addMutationObserver(e),e=e.parentElement},e.prototype.stopObservingIFrameRemoval=function(){this._mutationObservers.forEach(function(e){e&&e.disconnect&&e.disconnect()}),this._mutationObservers=[]},e.prototype.addMutationObserver=function(e){var t=this,i=new MutationObserver(function(i){for(var o=0,n=i;o<n.length;o++){var r=n[o];if("childList"==r.type&&r.removedNodes.length)for(var a=0;a<r.removedNodes.length;a++)if(r.removedNodes.item(a)===e)return window.gigya.logger.warn("### Gigya's service proxy has been unexpectedly detached from the DOM. This may cause unexpected behavior including a complete loss of service. ###"),void t.stopObservingIFrameRemoval()}});i.observe(e.parentElement,{childList:!0,subtree:!1}),this._mutationObservers.push(i)},e}();t.ServiceProxy=r},120:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),n=function(e){function t(t,i,o,n){void 0===n&&(n={});var r=e.call(this,window.gigya.defaultApiDomain,t,i,n)||this;return r.methodName=t,r.params=i,r.callback=o,r.settings=n,r}return o.__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}},t}(i(78).BaseRequest);t.ApiRequest=n},121:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),n=function(e){function t(t,i,o,n,r,a){void 0===a&&(a={});var s=e.call(this,i,o,n,a)||this;return s.id=t,s.baseUrl=i,s.methodName=o,s.params=n,s.callback=r,s.settings=a,s.windowName=s.methodName.replace(/\./g,"_").replace(/\//g,"")+"_"+(new Date).getTime(),s.requestID=s.windowName+(new Date).getTime(),s}return o.__extends(t,e),t.prototype.beforeRequest=function(){},t.prototype.afterResponse=function(e){e.dontClose&&"false"!==e.dontClose||window.gigya.utils.win.close(this.windowName),this.callback(e)},t.prototype.getAuthFlow=function(){return window.gigya.localInfo.isWindowsPhone||window.gigya.localInfo.isFacebookBrowser?"redirect":this.params.authFlow?this.params.authFlow:"popup"},t.prototype.getStateString=function(){var e=window.gigya.utils.xd._flashListenerID;(window.gigya.thisScript.globalConf.legacyCrossSiteMethod&&"localstorage"!==window.gigya.thisScript.globalConf.legacyCrossSiteMethod.toLowerCase()||window.gigya.localInfo.isIE&&window.navigator.msDoNotTrack)&&(e=window.gigya.thisScript.globalConf.legacyCrossSiteMethod+":"+window.gigya.utils.xd._flashListenerID);var t=this.getAuthFlow(),i={domain:document.location.href.split("?")[0].split("#")[0],id:this.requestID,lid:e,messaging:window.gigya.localInfo.messagingMethod};return window.gigya.localInfo.isIE11&&window.indexedDB&&(i.messaging=window.gigya._.MessagingMethod.LocalStorageListener),window.gigya.localInfo.isAndroid&&this.params.provider&&"line"==this.params.provider.toLowerCase()&&(i.messaging=window.gigya._.MessagingMethod.LocalStorageListener),"redirect"===t&&(i.sourceURL=window.top.document.location.href,this.params.redirectURL?(i.redirectURL=window.gigya.utils.URL.addParamsToURL(this.params.redirectURL,{gig_events:window.gigya.events.global.getEventsForOperation(this.methodName)}),this.params.redirectMethod&&(i.redirectMethod=this.params.redirectMethod),i.addUserInfo=!0):i.sourceURL=window.gigya.utils.URL.addParamsToURL(i.sourceURL,{gig_events:window.gigya.events.global.getEventsForOperation(this.methodName)})),this.params.provider&&"facebook"==this.params.provider.toLowerCase()&&(i.invite=this.params.invite),window.gigya.utils.keyValue.serialize(i)},t.prototype.getServerParamsString=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.format="jsonp",e.x_sdk="js_"+window.gigya.build.version;var i=window.gigya.utils.cookie.get("_gigRefUid_"+this.params.APIKey);i&&(e.x_refUID=i),e.state=this.getStateString(),window.gigya.utils.object.add(e,this.getAuthParams());var o=window.gigya._.apiAdapter.getGmidTicket();return o&&(e.gmidTicket=o),delete e.redirectURL,this.sentLoginToken=e.login_token,window.gigya.utils.keyValue.serialize(e)},t.prototype.sendAction=function(){var e=this;this.beforeRequest();var t,i=this.getServerParamsString();this.params.provider&&(t=window.gigya.socialize._getProviderByName(this.params.provider));var o={menubar:0,resizable:1,scrollbars:1,width:t?t.width:void 0,height:t?t.height:void 0};this.params.enablePopupLocation?(o.location=1,o.toolbar=1):o.toolbar=0;var n=this.methodName.split("."),r=this.params.originalMethodName||n[n.length-1];window.gigya.reports.report(r,this.params.APIKey,this.params.cid,this.params.source,this.params.sourceData,{sn:t?t.toString():null});var a=this.getUrl()+"?"+i;"redirect"===this.getAuthFlow()?window.top.document.location.href=a:(window.gigya.utils.xd.addMessageListener(this.requestID,this.params,!0,function(t){e.afterResponse(t)}),window.gigya.utils.win.open(a,this.windowName,o))},t}(i(78).BaseRequest);t.OauthRequest=n},231:function(e,t,i){(function(e){Object.defineProperty(t,"__esModule",{value:!0});var o=i(57),n=i(76),r=i(119),a=i(48),s=i(58),g=i(34),d=i(232),c=i(77),u=i(120),l=i(78),p=i(233),w=i(121),y=i(60),f=i(59),h=i(234);window.gigya.services||(window.gigya.services={}),window.gigya.services.proxy||(window.gigya.services.proxy={}),window.gigya.services.proxy.utils||(window.gigya.services.proxy.utils={}),window.gigya._||(window.gigya._={}),window.gigya._.apiAdapters||(window.gigya._.apiAdapters={}),window.gigya._.apiAdapters.web||(window.gigya._.apiAdapters.web={}),window.gigya._.apiAdapters.web.sso||(window.gigya._.apiAdapters.web.sso={}),window.gigya._.apiAdapters.web.tokenStore||(window.gigya._.apiAdapters.web.tokenStore={}),e(window.gigya.services.proxy,o,n,r),e(window.gigya.services.proxy.utils,a),e(window.gigya.services,s,g,d),e(window.gigya,c),e(window.gigya._.apiAdapters.web,u,l,p,w,h),e(window.gigya._.apiAdapters.web.sso,y),e(window.gigya._.apiAdapters.web.tokenStore,f),window.gigya.setSSOToken=window.gigya._.apiAdapters.web.setSSOToken,window.gigya.syncGroupGltExp=window.gigya._.apiAdapters.web.syncGroupGltExp}).call(this,i(0).__assign)},232:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},233:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),n=i(59),r=i(60);t.setSSOToken=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.__awaiter(this,void 0,void 0,function(){var t,i,r,a,s,g,d;return o.__generator(this,function(o){switch(o.label){case 0:return t=window.gigya.utils.object.merge([window.gigya.thisScript.globalConf,e]),i=t.redirectURL||document.location.href,r=window.gigya._.apiAdapter.getGmidTicket(),(a=n.get(t.APIKey))&&!window.gigya._.apiAdapters.isSessionFromSso&&(r||window.gigya.partnerSettings.ssoKey)?[3,1]:(window.gigya.utils.HTTP.redirect(i,[{}],"GET","_top"),[3,4]);case 1:return window.gigya.logger.info("retrieving gmid ticket"),(s=r)?[3,3]:[4,window.gigya._.apiAdapters.web.apiService.getGmidTicket(!0)];case 2:s=o.sent().gmidTicket,o.label=3;case 3:r=s,g={apiKey:t.APIKey,apiDomain:window.gigya._.getApiDomain(),gmidTicket:r,sessionExpiration:n.getCurrentSessionExpiration()||t.sessionExpiration,loginToken:a,redirectURL:i},window.gigya.logger.info("redirecting to SSOGateway"),d="https://"+window.gigya._.getGigyaDomain("socialize")+"/gs/SSOGateway.aspx",window.gigya.utils.HTTP.redirect(d,[g],"POST","_top"),o.label=4;case 4:return[2]}})})},t.syncGroupGltExp=function(e){return void 0===e&&(e=n.getGltexpCookie()),window.gigya.partnerSettings.ssoKey?new gigya.Promise(function(t){return r.setLoginTokenExp({loginTokenExp:e,callback:t},!1)}).then(function(t){var i=t.gltexp&&t.gltexp!==e;return i&&n.setGltexp(t.gltexp),{hasChanged:i,oldExpiration:window.gigya.utils.gltexp.getMillis(e),newExpiration:window.gigya.utils.gltexp.getMillis(t.gltexp||e)}}):gigya.Promise.resolve()}},234:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),n=i(59),r=i(60),a=i(120),s=i(121),g=i(119),d=i(58);window.gigya.isGigya||(window.gigya.isGigya=!0);t.newApiAdapter=function(e){return new c(e)};var c=function(){function e(e){this.adapterSettings=e,this.name="Web"}return e.prototype.init=function(e){return o.__awaiter(this,void 0,void 0,function(){var t,i,a,s,g,d,c=this;return o.__generator(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),t=window.gigya.partnerSettings.customAPIDomainPrefix||"ver2",i=window.gigya.utils.cookie.get("gig_hasGmid")===t,window.gigya.logger.info("has bootstrapped: "+i),a=window.gigya.logger.group("create api service"),s=window.gigya._.apiAdapters.web,[4,this.createApiService(i)];case 1:return s.apiService=o.sent(),a.end(),[4,window.gigya._.apiAdapters.web.apiService.bootstrap()];case 2:return(g=o.sent()).ticketInfo?this.setGmidTicket(g.ticketInfo):window.gigya.utils.cookie.set("gig_hasGmid",t),window.gigya.utils.functions.createAlias("gigya.auth.loginToken.get",n.get),window.gigya.partnerSettings.ssoKey&&window.gigya.canary&&window.gigya.canary.config.probability&&this.syncCanaryWithSSO(),this.isSessionValid(void 0,function(t){if(t&&window.gigya.services.accountService.verifyLogin().then(function(e){e||window.gigya.events.global.dispatch({eventName:"logout,accounts.logout"})}),c.checkReturnFromURL(),window.gigya.logger.info("user is "+(t?"":"not ")+"logged-in"),window.gigya.partnerSettings.ssoKey){window.gigya.logger.info("sso group sync - "+window.gigya.partnerSettings.ssoKey);var i=function(t){n.setFromSsoResponse(t),e()};if(t){var o=n.get();r.checkTokenRenew({loginToken:o,callback:i})}else r.getGroupToken({callback:i})}else e()}),[3,4];case 3:return d=o.sent(),window.gigya.logger.error("error bootstrapping sdk",{type:"bootstrap failed",scope:"WebAdapter.init",error:d}),window.gigya.events.dispatchErrorFromResponse({eventName:"init"},{status:"FAIL_TO_BOOTSTRAP",statusMessage:"Web SDK failed to bootstrap",errorCode:500026,errorMessage:"Web SDK failed to bootstrap: "+(d.message||d)}),e(),[3,4];case 4:return[2]}})})},e.prototype.syncCanaryWithSSO=function(){var e=window.gigya.utils.cookie.get(window.gigya.canary.config.cookiesNames.isCanary),t=window.gigya.utils.cookie.get(window.gigya.canary.config.cookiesNames.version);r.syncCanaryIndication({isCanary:e,canaryVersion:t,callback:function(i){i&&0===i.errorCode&&(i.isCanary&&i.isCanary!==e&&window.gigya.utils.cookie.set(window.gigya.canary.config.cookiesNames.isCanary,i.isCanary),i.canaryVersion&&i.canaryVersion!==t&&window.gigya.utils.cookie.set(window.gigya.canary.config.cookiesNames.version,i.canaryVersion))}})},e.prototype.createApiService=function(e){return o.__awaiter(this,void 0,void 0,function(){var t,i,n,r,a,s,c,u;return o.__generator(this,function(o){switch(o.label){case 0:return t=window.gigya.thisScript.globalConf.storageDomainOverride||"cdns."+window.gigya.dataCenter+"."+window.gigya.defaultApiDomain,i=window.gigya.thisScript.globalConf.storageProtocolOverride||"https",n=window.gigya.logger.configKey+"="+encodeURIComponent(JSON.stringify(window.gigya.logger.getConfig())),r=i+"://"+t+"/gs/webSdk/Api.aspx?apiKey="+encodeURIComponent(window.gigya.thisScript.APIKey)+"&version="+window.gigya.build.version+"#origin="+document.location.href+"&hasGmid="+e+"&"+n,window.gigya.logger.info("opening api frame"),a=new g.ServiceProxy(r),window.gigya.logger.info("creating api service"),[4,a.init()];case 1:return s=o.sent(),window.gigya.partnerSettings.plugins.apiDomain=s.apiDomain,window.gigya._.getApiDomain=window.gigya._.apiDomainFactory(s.apiDomain,window.gigya.defaultApiDomain),c=window.gigya._.Uri.parse(s.apiDomain),window.gigya.logger.info("api domain is: "+c),window.gigya.logger.info("api domain is "+(s.isGroupApiDomain?"":"not ")+"group domain"),u="false"===window.gigya.thisScript.URLParams.bootstrap,c.isBaseOf(r)&&!u?(window.gigya.logger.info("api domain is gigya's so keep working with frame"),[2,a.wrapWith(d.ApiService)]):(window.gigya.logger.info("closing api frame"),a.stop(!0),u?e=!0:s.hasGroupApiDomainChanged&&(e=!1),window.gigya.logger.info("create and work with api service from top frame"),[2,new d.ApiService(window.gigya.thisScript.APIKey,e,{originDomain:location.href,isGroupApiDomain:s.isGroupApiDomain,getApiDomain:window.gigya._.getApiDomain,isApiDomainFirstParty:!0,hasGroupApiDomainChanged:!1})])}})})},e.prototype.isSessionValid=function(e,t){void 0===e&&(e={}),n.setFromGAC(e,function(){if(t){var i=null!=n.get(e.APIKey)||null!=e.oauth_token;t(i)}})},e.prototype.registerForNamespaceEvents=function(e){},e.prototype.onPluginEvent=function(e){},e.prototype.onJSLog=function(e,t){},e.prototype.sendRequest=function(e,t,i,o){var n=this;void 0===o&&(o={}),this.beforeRequest(e,t,o);var r=new a.ApiRequest(e,t,function(e){!function(e,t){n.afterResponse(r,e,function(){"function"==typeof t&&t(window.gigya.utils.object.clone(e,!0))})}(e,i)},o);r.send(),window.gigya._.logoutMethods[e]&&window.gigya._.logoutBehaviour.logoutBeforeServerResponse&&this.clearSession(t)},e.prototype.clearSession=function(e,t){n.remove(e.APIKey),t&&t()},e.prototype.setGltexpFromSSO=function(e){return void 0===e&&(e=window.gigya.thisScript.APIKey),window.gigya.partnerSettings.ssoKey&&!n.isValidGltExp()?new gigya.Promise(function(e){r.getLoginTokenExp({callback:function(t){var i=!1;t&&0==t.errorCode&&t.gltexp&&n.isValidGltExp(t.gltexp)&&(n.setGltexp(t.gltexp),i=!0),e(i)}})}):gigya.Promise.resolve(!1)},e.prototype.sendOauthRequest=function(e,t,i,o){var n=this;this.beforeRequest(e,t,o);var r=(o.forceHttps?"https":"http")+"://"+window.gigya._.getApiDomain("socialize"),a=new s.OauthRequest("",r,e,t,function(e){n.afterResponse(a,e,function(e){"0"!=e.errorCode?i(e):window.gigya._.apiAdapters.web.apiService.bootstrap().then(function(t){n.setGmidTicket(t.ticketInfo),i(e)})})},o);a.send()},e.prototype.beforeRequest=function(e,t,i){void 0===i&&(i={}),(i.clearSession||i.clearSessionCondition&&i.clearSessionCondition(t))&&(window.gigya.logger.info("clearing session before request for "+e),n.remove(t.APIKey)),!window.gigya.utils.localStorage.getItem("_gig_3pc_enabled")&&window.gigya.thisScript.globalConf.enableSSOToken&&window.gigya._.loginMethods[e]&&(t.includeSSOToken=!0),i.forceHttps=this.useHttps(t,i)},e.prototype.afterResponse=function(e,t,i){var o=this;this.handleTokenResponse(e,t,function(){o.logoutSsoIfNeeded(e,t,function(){i(t)})})},e.prototype.useHttps=function(e,t){return void 0===t&&(t={}),e&&(n.get()||e.regToken||e.oauth_token)&&!e.noAuth||t.forceHttps||"https"===window.gigya.thisScript.protocol},e.prototype.onSDKEvent=function(e){},e.prototype.getTokenParam=function(e,t){return n.getTokenParam(e,t)},e.prototype.checkReturnFromURL=function(){var e=window.gigya.utils.URL.getParamsFromURL(document.location.href);e.gig_events&&0==e.errorCode&&null!=n.get()&&(window.gigya.logger.info("returned from redirection with error code"),r.setGroupTokenFromResponse(n.get(),e.expires_in,function(t){var i=e.gig_events.split(",");-1!==window.gigya.utils.array.indexOf(i,"accounts.login")?window.gigya.accounts.getAccountInfo({extraProfileFields:"samlData",include:"profile,data,userinfo",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"),window.gigya.events.global.dispatchWhenHandlerAdded(t),-1!==window.gigya.utils.array.indexOf(i,"socialize.login")){var o=window.gigya._.addUserInfoToEvent(e,{errorCode:0,eventName:"socialize.login"},!0);window.gigya.events.global.dispatchWhenHandlerAdded(o)}}}):window.gigya.socialize.getUserInfo({signIDs:!0,extraFields:"samlData",callback:function(e){for(var t=0;t<i.length;t++){var o=window.gigya._.addUserInfoToEvent(e,{errorCode:0,eventName:i[t]},!0);window.gigya.events.global.dispatchWhenHandlerAdded(o)}}})}))},e.prototype.setNewLoginTokenFromResponse=function(e,t,i){var o=t.sessionInfo?t.sessionInfo.login_token:t.login_token;if(o){var a=null!=t.sessionInfo?t.sessionInfo.expires_in:t.expires_in,s=e.params.sessionExpiration;(!a||0==a)&&s<0&&(a=window.gigya.utils.cookie.getInfiniteExpirationTimeInSeconds()),n.set(e.params.APIKey,o,a,s),window.gigya.utils.cookie.remove("gltexp_"+e.params.APIKey),window.gigya.reports.trackAddressBarShares(),r.setGroupTokenFromResponse(o,a,i)}else i()},e.prototype.onInvalidTokenResponse=function(e,t){e.paramsLoginToken?t():r.getGroupToken({callback:function(i){i&&i.login_token&&i.login_token.split("|")[0]!==e.sentLoginToken&&!e.paramsLoginToken?window.gigya._.apiAdapters.web.apiService.bootstrap().then(function(t){n.setFromSsoResponse(i,e.params.APIKey),e.params.login_token=void 0,e.send()},function(e){}):(n.remove(e.params.APIKey),e.settings.requiresSession()?t():(delete e.params.login_token,delete e.sentLoginToken,e.send(t)))}})},e.prototype.handleTokenResponse=function(e,t,i){var o=this;if(403030==(t=window.gigya.utils.object.clone(t)).errorCode){if(this.shouldWaitForService(e,t))return}else 409012==t.errorCode&&(this._gmidTicket=null,window.gigya.utils.localStorage.removeItem("_gig_gmidt"));e.sentLoginToken&&window.gigya._.logoutMethods[e.methodName]&&0==t.errorCode&&t.logoutActiveSession&&this.clearSession(e.params),window.gigya.partnerSettings.ssoKey&&e.sentLoginToken&&0==t.errorCode&&e.params.loginTokenExp&&r.setLoginTokenExp({loginTokenExp:e.params.loginTokenExp}),this.setNewLoginTokenFromResponse(e,t,function(){e.sentLoginToken&&403005==t.errorCode?o.onInvalidTokenResponse(e,i):i()})},e.prototype.logoutSsoIfNeeded=function(e,t,i){var o=this;window.gigya.partnerSettings.ssoKey&&window.gigya._.logoutMethods[e.methodName]&&0==t.errorCode&&t.logoutActiveSession&&document.location.href!=window.gigya.partnerSettings.ssoLogoutUrl?r.logout({callback:function(n){var r;void 0!==e.params.sustainLogoutURLs&&(r=!e.params.sustainLogoutURLs),o.loadLogoutUrls(n.logoutURLs,i,{UID:t.UID,UIDSignature:t.UIDSignature,signatureTimestamp:t.signatureTimestamp},r)}}):i()},e.prototype.loadLogoutUrls=function(e,t,i,o){for(var n=0,r=e?e.split(","):[],a=function(){++n>r.length&&t()},s=0;s<r.length;s++)if(r[s]){var g=window.gigya.utils.URL.addParamsToURL(r[s],i);this.loadLogoutUrl(g,a,o)}else a();a()},e.prototype.loadLogoutUrl=function(e,t,i){void 0===i&&(i=5e3);var o=document.createElement("iframe");o.src=e,o.style.position="absolute",o.style.top="-1000px",o.style.left="-1000px";var n=!1,r=function(){n=!0,!1!==i&&o.parentElement.removeChild(o),t()};window.setTimeout(function(){n||r()},i),o.onload=function(){r()},window.gigya.utils.DOM.appendToBody(o)},e.prototype.shouldWaitForService=function(e,t){return!!e.params.retryPossible&&(e.params.retryPossible=!1,window.gigya.external.facebook.runWhenLoaded(function(){e.send()}),!0)},e.prototype.getGmidTicket=function(){return this._gmidTicket&&this.refreshGmidTicket(),this._gmidTicket},e.prototype.refreshGmidTicket=function(){var e=this;window.gigya._.apiAdapters.web.apiService.getGmidTicket(!0).then(function(t){return e.setGmidTicket(t)})},e.prototype.setGmidTicket=function(e){var t=this;if(e&&e.gmidTicket){window.gigya.logger.info("set gmidTicket (set auto-refresh)"),this._gmidTicket=e.gmidTicket;var i=this.calculateGmidTicketNextRun(e.expirationTime);setTimeout(function(){return t.refreshGmidTicket()},i)}else window.gigya.logger.info("clean gmidTicket"),delete this._gmidTicket},e.prototype.calculateGmidTicketNextRun=function(e){return new Date(e).getTime()-(new Date).getTime()},e}();t.WebAdapter=c},34:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i="apiDomain",o=function(){function e(e,t){void 0===e&&(e=window.gigya.partnerSettings.ssoKey),void 0===t&&(t=window.gigya.utils.localStorage.initializeAdapter(window.gigya.utils.localStorage.CookieStorageAdapter)),this._ssoKey=e,this._storage=t,this._cookieName=i+"_"+this._ssoKey}return e.prototype.get=function(){return this._ssoKey?this._storage.getItem(this._cookieName):void 0},e.prototype.set=function(e){this._ssoKey&&this._storage.setItem(this._cookieName,e)},e}();t.GroupApiDomainService=o},48:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getParentUrl=function(e,t){return void 0===e&&(e=window),void 0===t&&(t=document),e.location!=e.parent.location?t.referrer:t.location.href},t.getBodyElement=function(e){return void 0===e&&(e=document),new gigya.Promise(function(t){e.body?t(e.body):e.addEventListener("DOMContentLoaded",function(){return t(e.body)})})},t.validateOrigin=function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())},t.createIframe=function(e){void 0===e&&(e=document);var t=e.createElement("iframe");return t.style.position="absolute",t.style.height="0px",t.style.width="0px",t.style.display="none",t};var i=1;t.generateId=function(){return String(i++)},t.getAllClassMethodsNames=function(e){var t=[],i=e.prototype;do{try{var o=Object.getOwnPropertyNames(i).map(function(e){return e.toString()}).sort().filter(function(e,o,n){return"function"==typeof i[e]&&"constructor"!==e&&(0==o||e!==n[o-1])&&-1===t.indexOf(e)});t=t.concat(o)}catch(e){for(var n=Object.getOwnPropertyNames(i).map(function(e){return e.toString()}).sort(),r=(o=[],0);r<n.length;r++){var a=n[r];"function"!=typeof i[a]||"constructor"===a||0!=r&&a===n[r-1]||-1!==t.indexOf(a)||o.push(a)}t=t.concat(o)}}while((i=Object.getPrototypeOf(i))&&Object.getPrototypeOf(i));return t}},57:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isSignalRequest=function(e){return Boolean(e.signal)}},58:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),n=i(34);t.TokenKeys={GMID:"gig_gmid",UCID:"gig_ucid",GMID_TICKET:"gmidTicket",GMID_TICKET_EXPIRATION_TIME:"gmidTicketExpiration"};var r=function(){function e(e,t,i,o,r,a){void 0===o&&(o=new n.GroupApiDomainService),void 0===r&&(r=window.gigya.JsonpRequest),this._apiKey=e,this._hasGmid=t,this._domainResolver=i,this._groupApiDomainService=o,this._requestClass=r,a&&(this._storage=a)}return e.prototype.getApiDomain=function(e){return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(t){return[2,this._domainResolver.getApiDomain(e)]})})},e.prototype.bootstrap=function(){return o.__awaiter(this,void 0,void 0,function(){var e,t,i,n;return o.__generator(this,function(o){switch(o.label){case 0:return e=window.gigya.logger.group("bootstrap api service"),this._storage?[3,2]:(window.gigya.logger.debug("init storage"),t=this,[4,new gigya.Promise(function(e){window.gigya.utils.localStorage.waitForService(function(t){e(t)})})]);case 1:t._storage=o.sent(),o.label=2;case 2:return this._hasGmid?(window.gigya.logger.info("already has gmid"),[3,7]):[3,3];case 3:return window.gigya.logger.info("no gmid set"),this.canSaveGmidAsCookie()?(window.gigya.logger.info("save gmid as cookie"),[4,this.sendRequest({methodName:"accounts.webSdkBootstrap",params:{apiKey:this._apiKey},settings:{forceHttps:!0}})]):[3,5];case 4:if(0!=(i=o.sent()).errorCode)throw window.gigya.logger.error("error bootstrapping sdk",{type:"bootstrap failed",scope:"ApiService.bootstrap",res:i}),"error bootstrapping sdk\n"+JSON.stringify(i,null,4);return[3,7];case 5:return window.gigya.logger.info("save gmid in storage"),[4,this.setupWithStorage()];case 6:o.sent(),this._useStorage=!0,o.label=7;case 7:return this._useStorage?[4,this.getGmidTicket()]:[3,9];case 8:return n=o.sent(),[3,10];case 9:this.cleanStorage(),o.label=10;case 10:return e.end(),[2,{ticketInfo:n}]}})})},e.prototype.setGroupApiDomain=function(e){return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(t){return window.gigya._.getBaseDomain(window.gigya.partnerSettings.baseDomains.split(","),this._domainResolver.originDomain,["gigya.com","gigya-api.cn",window.gigya.defaultApiDomain])===window.gigya.defaultApiDomain&&this._groupApiDomainService.set(e),[2]})})},e.prototype.canSaveGmidAsCookie=function(){return this._domainResolver.isApiDomainFirstParty||window.gigya.utils.cookie.canSaveCookie()},e.prototype.sendRequest=function(e){var i=this;return new gigya.Promise(function(o,n){if(!e){var r="ApiService: request data must has methodName and params";return window.gigya.logger.error(r),n(r)}var a=e.methodName,s=window.gigya.utils.object.clone(e.params,!0,!0);s.pageURL=i._domainResolver.originDomain,i._useStorage&&(s.gmid=i._storage.getItem(t.TokenKeys.GMID),s.ucid=i._storage.getItem(t.TokenKeys.UCID)),i.getApiDomain(a).then(function(t){new i._requestClass("https://"+t,a,s,function(e){var t=window.gigya.utils.JSON.serialize(e);window.gigya.utils.JSON.deserialize(t,void 0)||(e={errorCode:400004,errorMessage:"Invalid parameter format.\nOne of the parameters of this request has been set with a value which is not in the expected format."}),o(e)},e.settings).send()})})},e.prototype.setupWithStorage=function(){return o.__awaiter(this,void 0,void 0,function(){var e,i,n,r;return o.__generator(this,function(o){switch(o.label){case 0:return e=Boolean(this._storage.getItem(t.TokenKeys.GMID)),i=parseInt(this._storage.getItem(t.TokenKeys.GMID_TICKET_EXPIRATION_TIME)),e?[3,2]:(window.gigya.logger.info("getting gmid by endpoint"),[4,this.getIds()]);case 1:if(!(n=o.sent()).gcid||!n.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,n.gcid),this._storage.setItem(t.TokenKeys.UCID,n.ucid),r=this.createTicketResponse(n.gmidTicket),this.updateGmidTicket(r),[3,3];case 2:window.gigya.utils.validation.isLaterThanNow(i)?window.gigya.logger.info("already has gmid in storage"):this.refreshGmidTicketFromServer(),o.label=3;case 3:return[2]}})})},e.prototype.getGmidTicket=function(e){return void 0===e&&(e=!1),o.__awaiter(this,void 0,void 0,function(){var i,n;return o.__generator(this,function(o){switch(o.label){case 0:return(i=this._storage.getItem(t.TokenKeys.GMID_TICKET))||e?[3,1]:[2,void 0];case 1:return n=parseInt(this._storage.getItem(t.TokenKeys.GMID_TICKET_EXPIRATION_TIME)),!e&&i&&window.gigya.utils.validation.isLaterThanNow(n)?[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,o.sent()]}})})},e.prototype.refreshGmidTicketFromServer=function(){return o.__awaiter(this,void 0,void 0,function(){var e;return o.__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},settings:{forceHttps:!0}})},e.prototype.createGmidTicket=function(e,t){var i=this;void 0===t&&(t=window.gigya.gmidTicketExpiration);var o={apiKey:this._apiKey,expires:t};return e&&(o.gmid=e),this.sendRequest({methodName:"socialize.getGmidTicket",params:o,settings:{forceHttps:!0}}).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}();t.ApiService=r},59:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var o,n=i(0),r=i(60),a={};function s(e){return void 0===e&&(e=window.gigya.thisScript.APIKey),window.gigya.utils.cookie.get("gltexp_"+e)}function g(e){return void 0===e&&(e=window.gigya.thisScript.APIKey),e?"glt_"+e:"_gig_lt"}function d(e){void 0===e&&(e=window.gigya.thisScript.APIKey);var t=window.gigya.utils.cookie.get(g(e));return t?t.split("|")[0]:null}function c(e,t,i,n){window.gigya.utils.localStorage.removeItem("gigyaSettings"),window.gigya.logger.info("setting a new login token"),e||(e=window.gigya.thisScript.APIKey),e?(window.gigya.utils.cookie.set("glt_"+e,t,i),window.gigya.utils.cookie.remove("gac_"+e)):window.gigya.utils.cookie.set("_gig_lt",t,i),o=n}function u(e){var t=this;void 0===e&&(e={}),window.gigya.accounts.verifyLogin({include:"profile,data",extraProfileFields:"samlData",callback:function(i){0==i.errorCode&&(window.gigya._.apiAdapters.isSessionFromSso=!0),window.gigya.events.global.dispatchWhenHandlerAdded({eventName:"socialize.login"},null,function(t,o){window.gigya.socialize.getUserInfo({signIDs:!0,extraFields:"samlData",callback:function(n){t||(t={}),t=window.gigya.utils.object.merge([t,e]),0==i.errorCode&&0==n.errorCode?t=window.gigya._.addUserInfoToEvent(n,{eventName:"login"},!0):t.cancel=!0,o(t)}})}),window.gigya.events.global.dispatchWhenHandlerAdded({eventName:"accounts.login"},null,function(o,r){return n.__awaiter(t,void 0,void 0,function(){return n.__generator(this,function(t){switch(t.label){case 0:return o||(o={}),o=window.gigya.utils.object.merge([o,e]),0!=i.errorCode?[3,3]:(o.eventName="accounts.login",i.UID?[3,2]:[4,new gigya.Promise(function(e){return window.gigya.accounts.getAccountInfo({callback:e})})]);case 1:i=t.sent(),t.label=2;case 2:return window.gigya.utils.object.extractProperties(i,o,"signature|UIDSig|timestamp|UIDSignature|signatureTimestamp|UID|profile|data"),[3,4];case 3:o.cancel=!0,t.label=4;case 4:return r(o),[2]}})})})}})}function l(e){void 0===e&&(e=window.gigya.thisScript.APIKey),window.gigya.partnerSettings.ssoKey&&(window.gigya.logger.info("removing group login token"),r.removeGroupToken()),d(e)&&window.gigya.logger.info("removing login token"),window.gigya.utils.cookie.remove("glt_"+e),window.gigya.utils.cookie.remove("_gig_lt"),window.gigya.utils.cookie.remove("gltexp_"+e)}function p(){var e=window.gigya.utils.cookie.getDefaultDomain();return window.gigya.utils.stringUtils.endsWith(e,window.gigya.defaultApiDomain)}t.activeNamespaces={},t.isValidGltExp=function(e){return void 0===e&&(e=s()),!e||window.gigya.utils.gltexp.isValid(e)},t.getGltexpCookie=s,t.setGltexp=function(e,t){void 0===t&&(t=window.gigya.thisScript.APIKey),e&&!p()&&(window.gigya.utils.cookie.remove("gltexp_"+t),window.gigya.utils.cookie.set("gltexp_"+t,e))},t.get=d,t.set=c,t.getCurrentSessionExpiration=function(){return o},t.setFromGAC=function(e,t){if(window.gigya.thisScript.APIKey){var i=window.gigya.utils.cookie.get("gac_"+window.gigya.thisScript.APIKey);if(i&&!e.neverTryGAC){if('"'===i.charAt(0)&&'"'===i.charAt(i.length-1)&&(i=i.substring(1,i.length-1)),a[i])return void t();a[i]=!0,window.gigya.socialize.updateRefUID(),window.gigya.socialize.notifyLogin({ignoreApiQueue:!0,neverTryGAC:!0,authCode:i,APIKey:window.gigya.thisScript.APIKey,client_id:window.gigya.thisScript.APIKey},{callback:function(){window.gigya.utils.cookie.remove("gac_"+window.gigya.thisScript.APIKey),t(),window.gigya.socialize.refreshUI({neverTryGAC:!0})}})}else t()}else t()},t.setFromSsoResponse=function(e,t){if(void 0===t&&(t=window.gigya.thisScript.APIKey),e)switch(e.errorCode){case 403005:window.gigya.logger.info("no group session found"),l(t);break;case 403025:window.gigya.logger.info("existing group session was revoked"),l(t),window.gigya.events.global.dispatchWhenHandlerAdded({eventName:"accounts.logout"}),window.gigya.events.global.dispatchWhenHandlerAdded({eventName:"logout"});break;case 403032:case 0:if(!e.login_token)return;window.gigya.logger.info("new session from group");var i=void 0;if(!p()){i=e.gltexp?window.gigya.utils.cookie.getInfiniteExpirationTimeInSeconds():e.expires_in,c(t,e.login_token,i);var o="gltexp_"+t;e.gltexp&&!window.gigya.utils.cookie.get(o)&&window.gigya.utils.cookie.set(o,e.gltexp)}u({expires_in:i});break;default:throw window.gigya.logger.error("sso: unsupported response"),"gigya: unsupported response from sso"}},t.dispatchLoginEvent=u,t.remove=l,t.migrateExisting=function(){var e=window.gigya.utils.cookie.get("_gig_lt");e&&window.gigya.thisScript.APIKey&&!d(window.gigya.thisScript.APIKey)&&(window.gigya.utils.cookie.remove("_gig_lt"),c(window.gigya.thisScript.APIKey,e))},t.getTokenParam=function(e,t){var i=window.gigya.utils.cookie.get(g(e));if(i){var o=i.split("|");return o.length>1?window.gigya.utils.keyValue.deserialize(o[1])[t]:null}}},60:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i=0;function o(e,o){if(window.gigya.partnerSettings.ssoKey){var n,r,a;(n=o?window.gigya.utils.object.clone(o):{}).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()+"_"+i++,window.gigya.utils.xd.addMessageListener(n.callbackID,{},!1,function(e){window.gigya.logger.debug("cleaning sso iframe"),r.parentNode.removeChild(r),clearTimeout(a),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))),o&&o.callback&&o.callback(e)},window.gigya._.MessagingMethod.PostMessage),n.sAPIKey=window.gigya.thisScript.APIKey,n[window.gigya.logger.configKey]=JSON.stringify(window.gigya.logger.getConfig());var s=window.gigya.utils.keyValue.serialize(n);r=function(e){var 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 g=function(){a=setTimeout(function(){window.gigya.logger.error("SSO Communication Timeout",{IE11PrivateMode:window.gigya.localInfo.isIE11&&!window.indexedDB})},t._requestTimeout);var e=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});r.src=(window.gigya.thisScript.globalConf.storageProtocolOverride||"https")+"://"+(window.gigya.thisScript.globalConf.storageDomainOverride||window.gigya._.getGigyaDomain("cdns"))+"/gs/sso.htm?"+e+"#"+s,window.gigya.utils.DOM.removeEventListener(r,"load",g)};window.gigya.utils.DOM.addEventListener(r,"load",g),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)})}else o&&o.callback&&o.callback({})}function n(e){e.gltexp||(e.gltexp=window.gigya.utils.cookie.get("gltexp_"+window.gigya.thisScript.APIKey)),o("setToken",e)}t._requestTimeout=3e3,t._request=o,t.getGroupToken=function(e){window.gigya.logger.info("trying to get sso group login token"),o("getToken",{callback:function(i){t._storedLoginTokenExp=i.gltexp,e&&e.callback&&e.callback(i)}})},t.setGroupTokenFromResponse=function(e,t,i){var o;if(0===(t="string"==typeof t&&t?Number(t):t))o=0;else{var r=void 0;r=t?1e3*Number(t):47304e7,o=Date.now()+r}n({lt:e,expiration:o,callback:i})},t.setGroupToken=n,t.logout=function(e){o("logout",e)},t.removeGroupToken=function(e){o("removeToken",e)},t.setLoginTokenExp=function(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,o("setLoginTokenExp",e))},t.getLoginTokenExp=function(e){o("getLoginTokenExp",e)},t.checkTokenRenew=function(e){window.gigya.logger.info("verifying login token with sso group"),o("checkTokenRenew",e)},t.syncCanaryIndication=function(e){o("syncCanaryIndication",e)}},76:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),n=i(48),r=i(57),a=function(){function e(e,t,i,a){var s=this;void 0===t&&(t=n.getParentUrl()),void 0===i&&(i=window.parent),void 0===a&&(a=window),this._service=e,this.origin=t,this._target=i,this._win=a,this.stopCancellers=[],this._listening=!1,this.onRequest=function(e){return o.__awaiter(s,void 0,void 0,function(){var t,i;return o.__generator(this,function(o){switch(o.label){case 0:if(!n.validateOrigin(this.origin,e.origin))return[3,7];t=JSON.parse(e.data),o.label=1;case 1:return o.trys.push([1,6,,7]),r.isSignalRequest(t)?[4,this.handleSignalRequest(t)]:[3,3];case 2:return o.sent(),[3,5];case 3:return[4,this.handleProxyRequest(t)];case 4:o.sent(),o.label=5;case 5:return[3,7];case 6:return i=o.sent(),this.postError({res:i.message||i,id:t.id}),[3,7];case 7:return[2]}})})}}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.stopListen=function(){this.isListening&&(this._win.removeEventListener("message",this.onRequest,!0),this._listening=!1)},e.prototype.handleSignalRequest=function(e){return o.__awaiter(this,void 0,void 0,function(){var t,i,n;return o.__generator(this,function(o){switch(o.label){case 0:switch(e.signal){case"stop":return[3,1]}return[3,7];case 1:return[4,this.getCancelResult()];case 2:return t=o.sent(),i=void 0,t?[3,5]:(this.stopListen(),n=void 0,this.onStop&&(n=this.onStop()).then?[4,n]:[3,4]);case 3:n=o.sent(),o.label=4;case 4:return i={id:e.id,signal:"stop",res:n},[3,6];case 5:i={id:e.id,signal:"error",res:t},o.label=6;case 6:return this.postMessage(i),[3,8];case 7:return[3,8];case 8:return[2]}})})},e.prototype.getCancelResult=function(){return o.__awaiter(this,void 0,void 0,function(){var e,t,i,n;return o.__generator(this,function(o){switch(o.label){case 0:e=0,t=this.stopCancellers,o.label=1;case 1:return e<t.length?(i=t[e],(n=i()).then?[4,n]:[3,3]):[3,5];case 2:n=o.sent(),o.label=3;case 3:if(n)return[2,n];o.label=4;case 4:return e++,[3,1];case 5:return[2,void 0]}})})},e.prototype.handleProxyRequest=function(e){return o.__awaiter(this,void 0,void 0,function(){var t;return o.__generator(this,function(i){switch(i.label){case 0:return this.validateRequest(e),[4,this.forwardToService(e)];case 1:return t=i.sent(),this.postMessage({id:e.id,res:t}),[2]}})})},e.prototype.validateRequest=function(e){if(!e.id||!e.methodName)throw"proxy request in invalid format"},e.prototype.forwardToService=function(e){return o.__awaiter(this,void 0,void 0,function(){var t,i;return o.__generator(this,function(o){switch(o.label){case 0:return t=this._service[e.methodName],(i=t.apply(this._service,e.params))&&i.then?[4,i]:[3,2];case 1:i=o.sent(),o.label=2;case 2:return[2,i]}})})},e.prototype.postMessage=function(e){var t="object"==typeof e?JSON.stringify(e):e;this._target.postMessage(t,this.origin)},e.prototype.postError=function(e){e.signal="error",this.postMessage(e)},e}();t.ProxyListener=a},77:function(e,t){function i(e,t){if(!t&&e&&(t=e.context),t){var i=o[t];i&&i.handleResponse(e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.callback=i;var o={},n="gigyaRequestForms_"+Date.now(),r=function(){function e(e,t,i,o,n,r){var a=this;void 0===n&&(n={}),void 0===r&&(r=function(e,t,i){var o=i.jsSdkRequestId;if(o)return o;if(i.disableCache||window.gigya.localInfo.isSafari||window.gigya.localInfo.isIE10&&e.indexOf("accounts.getAccountInfo")>-1)return"R"+(new Date).getTime()+"_"+Math.random();var n=window.gigya.utils.object.clone(t);for(var r in n)n.hasOwnProperty(r)&&(0!==r.indexOf("fb_")&&"source"!==r&&"sourceData"!==r||delete n[r]);return"R"+window.gigya.utils.object.getMurmurHash(Math.random().toString()+e+window.gigya.utils.object.getHash(n))}(t,i,n)),this.baseDomain=e,this.method=t,this.params=i,this.callback=o,this.settings=n,this.id=r,this.getUrl=function(){return a.baseDomain+"/"+a.method},this.ifrName="gigyaPostIframe_"+(new Date).getTime(),this.retry=0}return e.prototype.send=function(e){var t=this;if(!this.inProgress){o[this.id]=this,this.inProgress=!0,this.addDefaultParams();var r=window.gigya.utils.keyValue.serialize(this.params);if(e||!this.settings.cacheTimeout){var a=0;window.gigya.localInfo.isIE&&(a=2048);var s=this.getUrl()+"?"+r;s.length+a<=4096&&!this.settings.forcePost?window.gigya.utils.script.load(s,function(){i({context:t.id,errorCode:500026,errorMessage:"Network_error"})}):window.gigya.utils.functions.invokeOnPageLoad(function(){var e=document.getElementById(n);null==e&&((e=document.createElement("span")).id=n,e.style.display="none",window.gigya.utils.DOM.appendToBody(e));var i=t.getPostContainer();e.appendChild(i)})}else{var g=this.getCacheKey();window.gigya.utils.sessionCache.get(g,this.settings.cacheTimeout,function(e){e?(delete t.settings.cacheTimeout,i(e,t.id)):(t.inProgress=!1,t.send(!0))})}}},e.prototype.handleResponse=function(e){var t=this;if(this.settings.cacheTimeout&&window.gigya.utils.sessionCache.set(this.getCacheKey(),0==e.errorCode?e:null),null!=this.retryTimerID&&window.clearTimeout(this.retryTimerID),this.inProgress=!1,100001==e.errorCode){var i=this.getDataPendingTimeout(this.retry++);if(i>0)return void window.setTimeout(function(){t.send()},i)}else this.dispose(),this.callback(e)},e.prototype.addDefaultParams=function(){this.params.format="jsonp",this.params.callback="gigya.callback",this.params.context=this.id},e.prototype.getCacheKey=function(){return this.method+"_"+window.gigya.utils.keyValue.serialize(this.params)},e.prototype.createParamFormElements=function(){var e=document.createDocumentFragment();for(var t in this.params){var i=window.gigya.utils.DOM.createElementWithAttributes("textarea",{name:t,value:"object"==typeof this.params[t]?window.gigya.utils.URL.URLEncode(window.gigya.utils.JSON.serialize(this.params[t])):this.params[t]});e.appendChild(i)}return e},e.prototype.getPostContainer=function(){var e,t=this;if(!this.postContainerElem){e=document.createElement("span");var i,o=this.ifrName+"form",n=this.id,r=window.gigya.utils.DOM.createElementWithAttributes("form",{acceptCharset:"UTF-8",id:o,method:"post",action:this.getUrl()+"?context="+this.id+"&&saveResponseID="+this.id,target:this.ifrName}),a=window.gigya.utils.DOM.createElementWithAttributes("input",{type:"hidden",name:"utf8",value:"&#x2713;"}),s=window.gigya.utils.DOM.createElementWithAttributes("input",{type:"submit"});r.appendChild(this.createParamFormElements()),r.appendChild(a),r.appendChild(s),e.appendChild(r);var g=window.gigya.utils.DOM.createElement("iframe",this.ifrName);g.setAttribute("id",this.ifrName),window.gigya.utils.functions.addSrcToIFrameIfNeeded(g),window.gigya.utils.DOM.addEventListener(g,"load",function(){i?t.getSavedFormResponse(n):(window.setTimeout(function(){var e=document.getElementById(o);e&&e.submit()},10),i=!0)}),e.appendChild(g),this.postContainerElem=e}return e},e.prototype.getSavedFormResponse=function(t){var i=this;new e(this.baseDomain,"socialize.getSavedResponse",{APIKey:this.params.APIKey,saveResponseID:this.id,ucid:this.params.ucid,noAuth:!0,sdk:"js_"+window.gigya.build.version},function(e){i.handleResponse(e)},void 0,t).send()},e.prototype.getDataPendingTimeout=function(e){return e<=4?500:e<=8?1e3:e<=21?2e3:e<=39?5e3:-1},e.prototype.dispose=function(){delete o[this.id],this.postContainerElem&&window.gigya.utils.DOM.removeElement(this.postContainerElem),delete this.postContainerElem},e}();t.JsonpRequest=r},78:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var o=i(59),n=5,r=function(){function e(e,t,i,o,r){void 0===o&&(o={}),void 0===r&&(r=n),this.baseUrl=e,this.methodName=t,this.params=i,this.settings=o,this._maxTries=r,this._tries=0,this.params.sdk="js_"+window.gigya.build.version}return e.prototype.getUrl=function(){return this.baseUrl+"/"+this.methodName},e.prototype.send=function(e){this._tries++,this._tries<=this._maxTries?this.sendAction():e&&e()},e.prototype.getAuthParams=function(){var e={};if(this.params.oauth_token)this.params.authMode="token";else if(!this.params.noAuth&&!this.params.regToken){var t=o.get(this.params.APIKey);if(t){this.sentLoginToken=t;var i=o.getGltexpCookie(this.params.APIKey);null!=i&&(e.loginTokenExp=i),e.login_token=t}e.authMode="cookie"}return delete this.params.noAuth,window.gigya.localInfo.isAndroidBrowser&&(delete this.params.login_token,delete this.params.loginTokenExp,delete this.params.authMode),e},e}();t.BaseRequest=r}});
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=228)}({0:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"__extends",function(){return r}),n.d(t,"__assign",function(){return i}),n.d(t,"__rest",function(){return a}),n.d(t,"__decorate",function(){return u}),n.d(t,"__param",function(){return s}),n.d(t,"__metadata",function(){return c}),n.d(t,"__awaiter",function(){return l}),n.d(t,"__generator",function(){return f}),n.d(t,"__exportStar",function(){return d}),n.d(t,"__values",function(){return p}),n.d(t,"__read",function(){return y}),n.d(t,"__spread",function(){return g}),n.d(t,"__await",function(){return v}),n.d(t,"__asyncGenerator",function(){return h}),n.d(t,"__asyncDelegator",function(){return b}),n.d(t,"__asyncValues",function(){return _}),n.d(t,"__makeTemplateObject",function(){return w}),n.d(t,"__importStar",function(){return m}),n.d(t,"__importDefault",function(){return S});var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=e||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n}function u(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var u=e.length-1;u>=0;u--)(r=e[u])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function s(e,t){return function(n,o){t(n,o,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,o){return new(n||(n=gigya.Promise))(function(r,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function u(e){try{s(o.throw(e))}catch(e){i(e)}}function s(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(a,u)}s((o=o.apply(e,t||[])).next())})}function f(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function d(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function h(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(e){r[e]&&(o[e]=function(t){return new gigya.Promise(function(n,o){i.push([e,t,n,o])>1||u(e,t)})})}function u(e,t){try{(n=r[e](t)).value instanceof v?gigya.Promise.resolve(n.value.v).then(s,c):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function s(e){u("next",e)}function c(e){u("throw",e)}function l(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}function b(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,r){t[o]=e[o]?function(t){return(n=!n)?{value:v(e[o](t)),done:"return"===o}:r?r(t):t}:r}}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,r){(function(e,t,n,o){gigya.Promise.resolve(o).then(function(t){e({value:t,done:n})},t)})(o,r,(t=e[n](t)).done,t.value)})}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function m(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 S(e){return e&&e.__esModule?e:{default:e}}}.call(this,n(0).__assign)},228:function(e,t,n){(function(e){Object.defineProperty(t,"__esModule",{value:!0});var o=n(229),r=n(230);window.gigya._||(window.gigya._={}),window.gigya._.apiAdapters||(window.gigya._.apiAdapters={}),window.gigya._.apiAdapters.mobile||(window.gigya._.apiAdapters.mobile={}),e(window.gigya._.apiAdapters.mobile,o,r)}).call(this,n(0).__assign)},229:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);t.newApiAdapter=function(e){return new a(e)},t.mobileCallbacks={};var r=["is_session_valid","send_request","send_oauth_request","get_ids","on_plugin_event","on_custom_event","register_for_namespace_events"],i={logLevel:[]},a=function(){function e(e){this.nativeProxy=e,this.name="Mobile"}return e.prototype.init=function(e){return o.__awaiter(this,void 0,void 0,function(){var t=this;return o.__generator(this,function(n){return this.nativeProxy&&"function"==typeof this.nativeProxy.getFeatures?this.features=window.gigya.utils.JSON.deserialize(this.nativeProxy.getFeatures()):this.features=r,this.nativeProxy&&"function"==typeof this.nativeProxy.getSettings?(this.settings=window.gigya.utils.JSON.deserialize(this.nativeProxy.getSettings()),this.settings.logLevel=window.gigya.utils.array.getArrayFromString(this.settings.logLevel||i.logLevel.join(","),",")):this.settings=i,this.nativeProxy&&"function"==typeof this.nativeProxy.getObfuscationStrategy&&(this.obfuscationStrategy=this.nativeProxy.getObfuscationStrategy()),window.gigya._.getApiDomain=window.gigya._.apiDomainFactory(window.gigya.partnerSettings.plugins.apiDomain,window.gigya.defaultApiDomain),window.gigya.events.addMap({defaultMethod:function(e){t.onPluginEvent(e)},eventMap:[{events:"*",args:["$event"]}]}),this.sendToMobile("get_ids",{},function(n){for(var o in t.ucid=n.ucid,t.gcid=n.gcid,window.gigya.events.global._activeNamespaces)t.registerForNamespaceEvents(o);window.gigya.localInfo.isNativeMobileApp=!0,e()}),[2]})})},e.prototype.getTokenParam=function(e,t){return""},e.prototype.onPluginEvent=function(e){e.isGlobal||this.sendToMobile("on_plugin_event",e)},e.prototype.onCustomEvent=function(e){this.sendToMobile("on_custom_event",e)},e.prototype.onJSLog=function(e,t){if(this.isLogLevelSupported(e)){var n={logType:e,logInfo:t};this.sendToMobile("on_js_log",n)}},e.prototype.registerForNamespaceEvents=function(e){this.sendToMobile("register_for_namespace_events",{namespace:e})},e.prototype.getGmidTicket=function(e){if(e){return this.sendRequest("socialize.getGmidTicket",{expires:30},function(t){e(t.gmidTicket)},{forceHttps:!0}),""}},e.prototype.clearSession=function(e,t){this.sendToMobile("clear_session",e,t)},e.prototype.isSessionValid=function(e,t){this.sendToMobile("is_session_valid",{},t)},e.prototype.sendRequest=function(e,t,n,o){this.sendToMobile("send_request",t,n,e,o)},e.prototype.sendOauthRequest=function(e,t,n,o){this.sendToMobile("send_oauth_request",t,n,e,o)},e.prototype.sendToMobile=function(e,n,o,r,i){var a=this;if(void 0===r&&(r=""),this.isActionSupported(e)){n&&delete n.APIKey;var u="";o&&(u=(new Date).getTime()+"_"+Math.random(),t.mobileCallbacks[u]=function(e){o(a.unobfuscate(e,!0)),delete t.mobileCallbacks[u]});var s=this.obfuscate(window.gigya.utils.keyValue.serialize(n)),c=window.gigya.utils.keyValue.serialize(i),l="callbackID="+u+"&params="+encodeURIComponent(s)+"&settings="+encodeURIComponent(c);if(this.nativeProxy.sendToMobile){if(!this.nativeProxy.sendToMobile(e,r,l)){var f="The Native Mobile SDK does not support feature "+e;window.gigya.logger.error(f),t.mobileCallbacks[u]({errorCode:400096,errorMessage:f})}}else this.sendWithIframe(e,r,l,u)}else o&&o({errorCode:400096,errorMessage:"Mobile SDK does not support feature "+e})},e.prototype.sendWithIframe=function(e,n,o,r){var i=document.createElement("iframe");function a(){if(i)try{document.documentElement.removeChild(i),i.remove()}catch(e){}}if(i.style.display="none",i.src="gsapi://"+e+"/"+n+"?"+o,r&&t.mobileCallbacks[r]){var u=t.mobileCallbacks[r];t.mobileCallbacks[r]=function(e){u(e),a()}}else window.setTimeout(function(){return a()},300);window.setTimeout(function(){return document.documentElement.appendChild(i)},0)},e.prototype.onSDKEvent=function(e){e&&e.user&&window.gigya._.convertIdentitiesArrayToObject(e.user),window.gigya.events.global.dispatch(e)},e.prototype.isActionSupported=function(e){return!!e&&window.gigya.utils.array.indexOf(this.features,e)>-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=a},230: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 r="show"+window.gigya.utils.stringUtils.capitalize(o);n.push(r);for(var i=window.gigya;i&&n.length;)i=i[n.shift()];if("function"!=typeof i)return window.gigya.events.dispatchInvalidParamError(window.gigya.utils.object.merge([{plugin:e},t]),"plugin");i(t)}}});
// end API adapters
!function(e){var t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.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 o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));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=162)}([function(e,t,i){"use strict";i.r(t),function(e){i.d(t,"__extends",function(){return o}),i.d(t,"__assign",function(){return r}),i.d(t,"__rest",function(){return a}),i.d(t,"__decorate",function(){return s}),i.d(t,"__param",function(){return c}),i.d(t,"__metadata",function(){return l}),i.d(t,"__awaiter",function(){return u}),i.d(t,"__generator",function(){return g}),i.d(t,"__exportStar",function(){return d}),i.d(t,"__values",function(){return p}),i.d(t,"__read",function(){return f}),i.d(t,"__spread",function(){return h}),i.d(t,"__await",function(){return m}),i.d(t,"__asyncGenerator",function(){return v}),i.d(t,"__asyncDelegator",function(){return w}),i.d(t,"__asyncValues",function(){return y}),i.d(t,"__makeTemplateObject",function(){return b}),i.d(t,"__importStar",function(){return _}),i.d(t,"__importDefault",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 o(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var r=function(){return(r=e||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(i[n[o]]=e[n[o]])}return i}function s(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a}function c(e,t){return function(i,n){t(i,n,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,i,n){return new(i||(i=gigya.Promise))(function(o,r){function a(e){try{c(n.next(e))}catch(e){r(e)}}function s(e){try{c(n.throw(e))}catch(e){r(e)}}function c(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(a,s)}c((n=n.apply(e,t||[])).next())})}function g(e,t){var i,n,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(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=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++,n=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).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]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function d(e,t){for(var i in e)t.hasOwnProperty(i)||(t[i]=e[i])}function p(e){var t="function"==typeof Symbol&&e[Symbol.iterator],i=0;return t?t.call(e):{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}}}function f(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,o,r=i.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return a}function h(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function m(e){return this instanceof m?(this.v=e,this):new m(e)}function v(e,t,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=i.apply(e,t||[]),r=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new gigya.Promise(function(i,n){r.push([e,t,i,n])>1||s(e,t)})})}function s(e,t){try{(i=o[e](t)).value instanceof m?gigya.Promise.resolve(i.value.v).then(c,l):u(r[0][2],i)}catch(e){u(r[0][3],e)}var i}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),r.shift(),r.length&&s(r[0][0],r[0][1])}}function w(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,o){t[n]=e[n]?function(t){return(i=!i)?{value:m(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function y(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e=p(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,o){(function(e,t,i,n){gigya.Promise.resolve(n).then(function(t){e({value:t,done:i})},t)})(n,o,(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 _(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 I(e){return e&&e.__esModule?e:{default:e}}}.call(this,i(0).__assign)},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(21),o=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:o,isWin:-1!=o.indexOf("win"),isIE:-1!=o.indexOf("msie")||-1!=o.indexOf("mozilla")&&-1!=o.indexOf("trident"),isIE6:-1!=o.indexOf("msie 6."),isIE7:-1!=o.indexOf("msie 7."),isIE8:-1!=o.indexOf("msie 8."),isIE9:-1!=o.indexOf("msie 9."),isIE10:-1!=o.indexOf("msie 10."),isIE11:-1!=o.indexOf("mozilla")&&-1!=o.indexOf("trident/7.0"),isEdge:-1!=o.indexOf("edge"),isIOS:-1!=o.indexOf("iphone")||-1!=o.indexOf("ipad")||-1!=o.indexOf("ipod"),isSafari534:-1!=o.indexOf("safari/534"),isWeChat:-1!=o.indexOf("micromessenger"),iosVersion:-1!=o.indexOf("applewebkit")&&-1!=o.indexOf("version/")?parseInt(o.split("version/")[1].split(" ")[0]):0,isAndroid:-1!=o.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}(o),currentBrowser:"",androidVersion:-1!=o.indexOf("android")?parseFloat(o.slice(o.indexOf("android")+8)):0,isChrome:-1!=o.indexOf("chrome")&&-1==o.indexOf("edge"),isGoogleBot:-1!=o.indexOf("googlebot"),isFF:-1!=o.indexOf("firefox"),isOpera:-1!=o.indexOf("opera"),isSafari:navigator.appVersion&&-1!=navigator.appVersion.toLowerCase().indexOf("safari")&&-1==navigator.appVersion.toLowerCase().indexOf("chrome")&&-1==o.indexOf("android"),isIOSWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isIOSChrome:-1!=o.indexOf("crios"),isMAC:!(!navigator.appVersion||-1==navigator.appVersion.toLowerCase().indexOf("mac")),isWindowsPhone:-1!=o.indexOf("windows phone"),isFacebookBrowser:-1!=o.indexOf("fban")||-1!=o.indexOf("fbav"),supportsPostMessage:null!=window.postMessage&&(-1==o.indexOf("msie")||-1!=o.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!=o.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!=o.indexOf(e[t]))return!0;return!1}(),isMobileApp:function(){if(!document.getElementsByTagName)return!1;for(var e=document.getElementsByTagName("meta"),t=0;t<e.length;t++)if("viewport"==e[t].getAttribute("name")){var i=e[t].getAttribute("content");if(i&&-1!==i.indexOf("width=device-width"))return!0}return!1}(),isNativeMobileApp:!1,isTouch:function(){if("ontouchstart"in window)return!0;if("onmsgesturechange"in window)try{return new ActiveXObject("htmlfile"),!1}catch(e){return!0}return!1}(),messagingMethod:0};var r=function(e){try{var t=window[e];if(!t)return!1;var i="_gig_localStorage_test",n="just checking for localStorage";t.setItem(i,n);var o=t.getItem(i)===n;return t.removeItem(i),o}catch(e){return!1}};t.localInfo.supportsLocalStorage=r("localStorage"),t.localInfo.supportsSessionStorage=r("sessionStorage"),t.localInfo.isIE11&&!window.indexedDB&&(t.localInfo.supportsPostMessage=!1),t.localInfo.isMAC=t.localInfo.isMAC&&!t.localInfo.isIOS;var a=t.localInfo.isWin?"windows":t.localInfo.isWindowsPhone?"winphone":t.localInfo.isIOS?"ios-v"+t.localInfo.iosVersion:t.localInfo.isMAC?"mac":t.localInfo.isAndroid?"android":"";a&&(a+=" ");var s,c=t.localInfo.isChrome?"chrome":t.localInfo.isFF?"firefox":t.localInfo.isSafari?"safari":t.localInfo.isEdge?"edge":t.localInfo.isIE11?"ie11":t.localInfo.isIE10?"ie10":t.localInfo.isIE9?"ie9":t.localInfo.isIE8?"ie8":"";t.localInfo.currentBrowser=a+c,window.gigya.partnerSettings&&window.gigya.partnerSettings.baseDomains?s=window.gigya.partnerSettings.baseDomains.split(","):(window.self===window.top&&console.log("gigya: missing base domains for site"),s=[document.location.hostname]),t.localInfo.baseDomain=n.getBaseDomain(s)},,function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(4);function o(e,t,i){if(!t)return e;for(var n=e,o=t.split("."),r=0;r<o.length;r++){var a=o[r],s=null;a.match(/\[[0-9]]/)&&(s=Number(a.match(/\[[0-9]]/)[0].replace(/[\[\]]/g,""))),a=a.split(/\[[0-9]]/).join("");var c=(s||0===s)&&n[a]?n[a][s]:n[a];if(i&&!n[a]?n[a]={}:i&&!c&&!1!==c&&(n[a]=[]),!c&&!1!==c)return null;n=c}return n}function r(e,t,i,n,o,a){if(void 0===n&&(n=20),void 0===o&&(o=0),o>n)return null;if(void 0===e||null==e)return null;if("function"==typeof e&&i)return null;if(e.constructor==Array){for(var s=[],c=0;c<e.length;c++)i&&"function"==typeof e[c]||(s[c]=t?r(e[c],t,i,n,o+1,a):e[c]);return s}if("object"==typeof e){var l={};for(var u in e)a&&"context"==u||i&&"function"==typeof e[u]||(l[u]=t?r(e[u],t,i,n,o+1,a):e[u]);return l}return e}function a(e,t,i){if(null!=e){if(null==t&&(t={}),e.constructor==Array)for(var n=0;n<e.length;n++)a(e[n],t,i);else if(i){var o=i.split("|"),s={};for(var c in e)s[c.toLowerCase()]=1;for(var l=0;l<o.length;l++){var u=o[l];s[u.toLowerCase()]&&(t[u]=e[u])}}else t=r(e,!1);return t}}t.removeUndefined=function(e){var t={};for(var i in e)null!=e[i]&&null!=e[i]&&(t[i]=e[i]);return t},t.expressionHelper=function(e){return e=e||{},{getField:function(t){if(t){var i,n=t.split("."),o=e;for(i=0;i<n.length;++i){if(null==o[n[i]])return;o=o[n[i]]}return o}}}},t.getPropertyBySerializedName=o,t.setPropertyBySerializedName=function(e,t,i){var n=t.split("."),r=n.pop();o(e,n.join("."),!0)[r]=i},t.add=function(e,t,i){for(var n in t)i&&void 0!==e[n]||(e[n]=t[n])},t.getHash=function(e){var t=[];for(var i in e){var o;"object"==typeof e[i]?o=n.serialize(e[i],!1):e[i]&&(o=e[i].toString()),t.push(i+"="+o)}return t.sort().join("&")},t.getMurmurHash=function(e,t){var i,n,o,r,a,s,c,l;for(t||(t=0),i=3&e.length,n=e.length-i,o=t,a=3432918353,s=461845907,l=0;l<n;)c=255&e.charCodeAt(l)|(255&e.charCodeAt(++l))<<8|(255&e.charCodeAt(++l))<<16|(255&e.charCodeAt(++l))<<24,++l,o=27492+(65535&(r=5*(65535&(o=(o^=c=(65535&(c=(c=(65535&c)*a+(((c>>>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,i){case 3:c^=(255&e.charCodeAt(l+2))<<16;case 2:c^=(255&e.charCodeAt(l+1))<<8;case 1:o^=c=(65535&(c=(c=(65535&(c^=255&e.charCodeAt(l)))*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=r,t.merge=function e(t,i){for(var n={},o=0;o<t.length;o++)if(t[o]&&t[o].length)for(var r=0;r<t[o].length;r++)for(var a in t[o][r])n[a]=t[o][r][a];else if(i)for(var a in t[o])"object"!=typeof n[a]||n[a]instanceof Array?n[a]=t[o][a]:n[a]=e([n[a],t[o][a]],!0);else for(var a in t[o])n[a]=t[o][a];return n},t.unflatten=function(e){if(Object(e)!==e||Array.isArray(e))return e;var t={};for(var i in e){for(var n=t,o="",r=i.split("."),a=0;a<r.length;a++){var s=!isNaN(Number(r[a]));n=n[o]||(n[o]=s?[]:{}),o=r[a]}n[o]=e[i]}return t[""]||{}},t.flatten=function(e,t){void 0===t&&(t=!1);var i={};return function e(n,o){if(Object(n)!==n)i[o]=n;else if(Array.isArray(n)){for(var r=n.length,a=0;a<r;a++){var s=t?o+"["+a+"]":o+"."+a;e(n[a],o?s:String(a))}0===r&&(i[o]=[])}else{var c=!0;for(var l in n)c=!1,e(n[l],o?o+"."+l:l);c&&""!==o&&(i[o]={})}}(e,""),i},t.extractProperties=a,t.extractProperty=function(e,t){return a(e,void 0,t)[t]},t.parseToObject=function(e){try{var t=window.JSON.parse(e);if("object"==typeof t)return t}catch(e){}}},function(module,exports,__webpack_require__){Object.defineProperty(exports,"__esModule",{value:!0});var LocalInfo_1=__webpack_require__(1);function serialize(e,t,i,n,o){if(void 0===t&&(t=!1),void 0===i&&(i=!1),void 0===n&&(n=0),void 0===o&&(o=20),LocalInfo_1.localInfo.isIE8){if(n||(n=0),n>o)return"[Too deep]";var r="",a="",s="";if(i){s="\t",a="\n";for(var c=0;c<n+1;c++)r+=s}var l=typeof e;if("function"==l)return l.toString();if("object"!=l||null===e)return"string"==l&&(e='"'+e.replace(/(\"|\\)/g,"\\$1").replace(/\r\n|\r|\n/g,"\\n")+'"'),String(e);var u,g,d=[],p=e&&e.constructor==Array;if(p)for(c=0;c<e.length;c++)l=typeof(g=e[c]),null==g||"undefined"==l?g="":"string"==l?g='"'+g.replace(/(\"|\\)/g,"\\$1").replace(/\r\n|\r|\n/g,"\\n")+'"':"function"==l?g=t?"Function":"":g.parentNode&&g.innerHTML?g="HTMLElement":g.constructor==Date?g="":"object"==l&&null!==g&&(g=serialize(g,t,i,n+1)),""!=String(g)&&d.push(r+s+String(g));else for(u in e)l=typeof(g=e[u]),null==g||"undefined"==l?g=String(g):"string"==l?g='"'+g.replace(/(\"|\\)/g,"\\$1").replace(/\r\n|\r|\n/g,"\\n")+'"':"function"==l?g=t?"Function":"":g.parentNode&&g.innerHTML?g="HTMLElement":g.constructor==Date?g="":"object"==l&&null!==g&&(g=a+serialize(g,t,i,n+1)),""!=String(g)&&d.push(r+s+'"'+u.replace(/(\"|\\)/g,"\\$1").replace(/\r\n|\r|\n/g,"\\n")+'":'+String(g));return a+r+(p?"[":"{")+a+d.join(","+a)+a+r+(p?"]":"}")}return window.JSON.stringify(e)}function deserialize(json,defaultValue,scope){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||{}}}function parse(e,t){if(LocalInfo_1.localInfo.isIE8)return deserialize(e,t);try{return window.JSON.parse(e)}catch(e){return t||{}}}exports.serialize=serialize,exports.deserialize=deserialize,exports.parse=parse},function(module,exports,__webpack_require__){Object.defineProperty(exports,"__esModule",{value:!0});var DOMUtils=__webpack_require__(6),cdn_1=__webpack_require__(8),LocalInfo_1=__webpack_require__(1);function callFunction(name,arParams){var fn=eval(name),arParts=name.split(".");arParts.splice(arParts.length-1,1);var scope=eval(arParts.join("."));fn.apply(scope,arParams)}function invokeOnPageLoad(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),DOMUtils.addEventListener(window,"load",n),DOMUtils.addEventListener(document,"DOMContentLoaded",n)}}function createAlias(e,t){for(var i=e.split("."),n=window,o=0;o<i.length-1;o++){var r=i[o];n[r]||(n[r]={}),n=n[r]}n[i[i.length-1]]=t}function debounce(e,t){var i=void 0;return function(){void 0!==i&&clearTimeout(i),i=setTimeout(function(){i=void 0,e()},t)}}function addSrcToIFrameIfNeeded(e,t){void 0===t&&(t=cdn_1.getCdnResource("/")),(LocalInfo_1.localInfo.isIOSWebView||LocalInfo_1.localInfo.isIOS&&LocalInfo_1.localInfo.isWeChat)&&e.setAttribute("src",t)}exports.callFunction=callFunction,exports.invokeOnPageLoad=invokeOnPageLoad,exports.createAlias=createAlias,exports.debounce=debounce,exports.addSrcToIFrameIfNeeded=addSrcToIFrameIfNeeded},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(25),r=i(5);t._popupContainers=[],t._pseudoContainers=[];var a=999999999,s=null;function c(){return++a}function l(e,t,i){e&&i&&(e.addEventListener?e.addEventListener(t,i,!0):e.attachEvent("on"+t,i))}function u(e,t,i){i&&(e.removeEventListener?e.removeEventListener(t,i,!0):e.detachEvent("on"+t,i))}function g(){s&&(u(window,"hashchange",s),s=null,window.location.hash=window.location.hash.replace("|gigyaMobileDialog",""))}function d(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))}function p(e){var t=[];return"string"==typeof e.className&&(t=e.className.split(" ")),t}function f(e,t){if(!e)return!1;if(!t)return!0;if(!e.className)return!1;for(var i=!1,n=p(e),o=0;o<n.length;o++)if(n[o]===t){i=!0;break}return i}t.getNextZIndex=c,t.getGigyaScriptElement=function(e){for(var t,i=document.getElementsByTagName("script"),n=/\/\/cdn(s)?\.(ru1\.)?gigya.com/,o=i.length-1;o>=0;o--){var r=i[o],a=r.src.toLowerCase();if(""!==a&&(n.test(a)||a.indexOf("?apikey=")>-1)&&(0===e.length||e.some(function(e){return a.indexOf(e)>-1}))){t=r;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"),l(e,i,function(e){return t(e)}),l(e,"keydown",function(e){13==(e.which||e.keyCode)&&(e.preventDefault(),t(e))}))},t.addEventListener=l,t.removeEventListener=u,t.disableDefaultEventHandling=function(e){e.preventDefault?e.preventDefault():window.event&&(window.event.returnValue=!1)},t.addDialogBackListener=function(e){g(),s=function(t){t&&t.newURL&&-1==t.newURL.indexOf("|gigyaMobileDialog")&&(e(t),g())},window.setTimeout(function(){-1==window.location.hash.indexOf("|gigyaMobileDialog")&&(window.location.hash=window.location.hash+"|gigyaMobileDialog"),l(window,"hashchange",s)},50)},t._removeDialogBackListener=g,t.appendToBody=d,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=""+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=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,o=i.offsetHeight;return i.parentNode.removeChild(i),{w:n,h:o}},t.getElementsByClass=function(e,t,i){if(!e)return[];var n=[];i&&f(e,t)&&n.push(e);for(var o=e.getElementsByTagName("*"),r=0;r<o.length;r++)f(o[r],t)&&n.push(o[r]);return n||[]},t.getElementsByAttribute=function(e,t,i,n){for(var o=[],r=e.getElementsByTagName(t),a=0;a<r.length;a++)r[a].getAttribute(i)==n&&o.push(r[a]);return o},t.getElementPosition=function(e){if(!e)return{left:0,top:0,bottom:0,right:0};var t=e.getBoundingClientRect(),i=o.getScroll(),n=t.left+i.left,r=t.top+i.top;return{left:n,top:r,right:n+t.width,bottom:r+t.height}},t.addClassToElement=function(e,t){if(e){var i=e.className?p(e):[],n=i.length,o=t.split(" ");for(var r in o){var a=!1;if(!o[r])break;for(var s in i)if(i[s]===o[r]){a=!0;break}a||i.push(o[r])}i.length!==n&&(e.className=i.join(" "))}},t.removeClassFromElement=function(e,t,i){if(void 0===i&&(i=!1),e){for(var n=p(e),o=n.length-1;o>=0;o--)(n[o]===t||i&&-1!==n[o].indexOf(t))&&n.splice(o,1);e.className=n.join(" ")}},t.getClassNames=p,t.isElementClass=f,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+'"></'+e+">",i.firstChild},t.setSize=function(e,t,i,n){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(i){var s=(i=""+i).indexOf("%")>0;if(!isNaN(t)||s){var l=""+(s?i:i+"px");e.style.height!==l&&(e.style.height=l)}}if(n&&t&&i){(null==e.style.zIndex||n)&&(e.style.zIndex=""+c());var u=o.getInnerSize(),g=o.getScroll(),d=g.top,p=g.left;e.style.top=Math.max(0,d+Math.floor((u.h-i)/2))+"px",e.style.left=Math.max(0,p+Math.floor((u.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?d(t):r.invokeOnPageLoad(function(){d(t)}),t},t.attributeEncode=function(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&#39;")},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}},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(17),o=i(3);function r(e){return decodeURIComponent(e.replace(/\+/g," "))}function a(e,t){return e&&-1!==e.indexOf("?")?n.deserialize(e.split("#")[0].split("?")[1],"&",t):{}}t.URLEncode=function(e){return encodeURIComponent(e)},t.URLDecode=r,t.URLDecodeRecursive=function(e){for(var t="",i=e;i!=t;)i=r(t=i);return i},t.getParamsFromURL=a,t.getParamValueFromURL=function(e,t,i){if(null==t||""==t)return i;var n=t.indexOf("?");if(-1===n)return i;var o="&"+t.substr(n+1),r=o.toLowerCase().indexOf("&"+e.toLowerCase()+"=");if(-1===r)return i;var a=o.substr(r+(1+e.length+1))+"&";return r=a.indexOf("&"),a.substr(0,r)},t.addParamsToURL=function(e,t){var i=a(e);o.add(i,t);var r=e.split("#"),s=r[0].split("?")[0]+"?"+n.serialize(i,"&");return r.length>1&&(s+="#"+r[1]),s}},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=0;function r(e){var i=window.gigya.thisScript?window.gigya.thisScript.baseDomain:"",r=window.gigya.thisScript?window.gigya.thisScript.protocol:n.localInfo.protocol;if(!i||/cdns?\.gigya\.com$/.test(i)){var a=t.CDN_HOSTS[r];a.length<=o&&(o=0),i=a[o++]}return e&&0!==e.indexOf("/")&&(e="/"+e),r+"://"+i+(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=r,t.getImgCdnResource=function(){return r("/gs/i/")}},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(15),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,"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])}}},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,n.endsWith(this.domain,t)},e.parse=function(t,i){if(void 0===i&&(i=!0),t)return new e(t,i)},e}();t.Uri=o},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(1);function o(){return n.localInfo.baseDomain||""}function r(e,t){return void 0===e&&(e=n.localInfo.pageDomain),void 0===t&&(t=o()),t.length>0&&e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length?t:e}function a(e){e=e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1").replace(/^[ \t]+|[ \t]+$/g,"");var t=new RegExp("(?:^|;)\\s?"+e+"=(.*?)(?:;|$)"),i=document.cookie.match(t);return i&&unescape(i[1])}function s(e,t,i,o,s){var c,l=n.localInfo.pageDomain;null==o&&(o=r()),c=null==i||""===i||isNaN(i)?31536e6:0==i?null:1e3*i;var u=new Date;u.setTime(u.getTime()+c);var g=e+"="+escape(t)+(s?"":"; path=/")+(null==c?"":"; expires="+u.toUTCString())+(o&&""!=o&&-1!=o.indexOf(".")?"; domain="+o:"");document.cookie=g,c&&!(c>0)||a(e)||(g=e+"="+escape(t)+(s?"":"; path=/")+(null==c?"":"; expires="+u.toUTCString())+(l&&""!=l&&-1!=l.indexOf(".")?"; domain="+l:""),document.cookie=g)}function c(){return 31536e3}t._getBaseDomain=o,t.getDefaultDomain=r,t.get=a,t.set=s,t.remove=function(e){var t=n.localInfo.pageDomain,i=o();i.length>0&&t.length>=i.length&&t.lastIndexOf(i)===t.length-i.length&&(s(e,"",-1,i),s(e,"",-1,i,!0)),s(e,"",-1,n.localInfo.pageDomain),s(e,"",-1,n.localInfo.pageDomain,!0),s(e,"",-1,""),s(e,"",-1,"",!0)},t.getInfiniteExpirationTimeInSeconds=c,t.canSaveCookie=function(e){void 0===e&&(e=document);var t=new Date((new Date).getTime()+1e3);return e.cookie="gig3pctest=true;expires="+t.toGMTString(),-1!==e.cookie.indexOf("gig3pctest")}},function(e,t){function i(e,t){for(var i=0;i<e.length;++i)t(e[i],i,e)}function n(e,t){for(var i=0;i<e.length;++i)if(t(e[i],i,e))return!0;return!1}function o(e,t){var i=-1;return n(e,function(e,n,o){return!!t(e,n,o)&&(i=n,!0)}),i}Object.defineProperty(t,"__esModule",{value:!0}),t.indexOf=function(e,t){for(var i=0;i<e.length;i++)if(e[i]==t)return i;return-1},t.clone=function(e){for(var t=[],i=0;i<e.length;i++)t[i]=e[i];return t},t.removeByValue=function(e,t){if(e)for(var i=e.length-1;i>=0;i--)e[i]==t&&e.splice(i,1)},t.removeByProperty=function(e,t,i){if(e)for(var n=e.length-1;n>=0;n--)e[n][t]==i&&e.splice(n,1)},t.getArrayFromString=function(e,t,i){return e&&"string"==typeof e?(i&&(e=e.toLowerCase()),(e=e.replace(/[ ]/g,"").replace(/,,/g,","))?e.split(t):[]):[]},t.intersect=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(null==e)return[];for(var n=[],o=arguments.length,r=0,a=e.length;r<a;r++){var s=e[r];if(-1==this.indexOf(n,s)){for(var c=1;c<o;c++){var l=arguments[c];if(null==l||-1==this.indexOf(l,s))break}c===o&&n.push(s)}}return n},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=i,t.forEachProp=function(e,t){for(var i in e)e.hasOwnProperty(i)&&t(e[i],i,e)},t.some=n,t.every=function(e,t){for(var i=0;i<e.length;++i)if(!t(e[i],i,e))return!1;return!0},t.everyProp=function(e,t){for(var i in e)if(e.hasOwnProperty(i)&&!t(e[i],i,e))return!1;return!0},t.map=function(e,t){var n=new Array;return i(e,function(e,i,o){return n.push(t(e,i,o))}),n},t.firstIndex=o,t.first=function(e,t){return e[o(e,t)]},t.getAllEnumValues=function(e){var t=[];for(var i in e)"number"==typeof e[i]&&t.push(e[i]);return t},t.getUniqueValues=function(e){for(var t=0;t<e.length;++t)for(var i=t+1;i<e.length;i++)e[t]===e[i]&&e.splice(i,1);return e}},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n,o=i(9),r=i(1),a=i(11),s=i(5),c=i(6),l=i(8),u={};function g(e){return e.replace(/^http(s?):\/\/cdn(s?)[0-9]*.gigya.com\//,"http$1://cdn$2.gigya.com/")}function d(e,t,i,n,c,l){var d;if(void 0===c&&(c=5e3),0===e.indexOf("//")&&(e=r.localInfo.protocol+":"+e),n){var p=g(e);if(u[p])return void(u[p].loaded?(window.gigya.logger.debug("script was already loaded:",{src:e}),i&&i()):(u[p].onLoad.push(i),u[p].onError.push(t)));d=u[p]={loaded:!1,onLoad:[i],onError:[t]},l&&l.length>0&&a.forEach(l,function(e){u[e]=d})}else d={loaded:!1,onLoad:[i],onError:[t]};var f=function(){var t=document.createElement("script");t.async=!0,t.type="text/javascript",t.charset="UTF-8";var i=!1,n=function(){if(!i){if(d.onLoad&&d.onLoad.length)for(var e=0;e<d.onLoad.length;e++)"function"==typeof d.onLoad[e]&&d.onLoad[e]();d.loaded=!0,d.onError=d.onLoad=null,i=!0,!0===c&&(c=0),!1!==c&&setTimeout(function(){t.parentNode&&t.parentNode.removeChild(t)},c)}};t.onload=n,t.onreadystatechange=function(){"loaded"===this.readyState&&n()},t.onerror=function(){for(var t=0;t<d.onError.length;t++)"function"==typeof d.onError[t]&&d.onError[t]();delete u[e]};var a=document.getElementsByTagName("head");a&&a.length>0&&a[0].appendChild(t);var s=function(){var i,n,r=new RegExp("^https?://cdns?.*"+window.gigya.defaultApiDomain).test(e)?(i=e,(n=o.Uri.parse(i)).addToSearch({version:window.gigya.build.version}),n.toString()):e;t.src=r};r.localInfo.iosVersion>=6?s():setTimeout(s,1)};r.localInfo.isIE?s.invokeOnPageLoad(f):f()}t.isLoaded=function(e){var t=g(e);return Boolean(u[t]&&u[t].loaded)},t.load=d,function(e){e[e.script=0]="script",e[e.image=1]="image",e[e.iframe=2]="iframe"}(n=t.ResourceTypes||(t.ResourceTypes={})),t.triggerResource=function(e,t,i,o){switch(void 0===i&&(i=n.image),void 0===o&&(o=5e3),i){case n.script:d(e,t,t,!1,o);break;case n.image:!function(e,t){var i=new Image,n=!1;i.onload=i.onerror=function(){n||(n=!0,t())},i.src=e}(e,t);break;case n.iframe:!function(e,t,i){void 0===i&&(i=5e3);var n=document.createElement("iframe");n.style.width="30px",n.style.height="10px",n.style.position="absolute",n.style.top="-1000px",n.style.left="-1000px",!0===i&&(i=0);var o=function(e){var n;!(n=e&&e.srcElement?e.srcElement:e&&e.target?e.target:this).loaded&&n.parentNode&&(n.loaded=!0,t(),!1!==i&&window.setTimeout(function(){try{document.body.removeChild(n)}catch(e){}},i))};c.addEventListener(n,"load",o),c.addEventListener(n,"error",o),n.onload=function(e){o(e)},n.onerror=o,n.src=e,c.appendToBody(n)}(e,t,o);break;default:throw new Error("Unsupported resource type")}},t.loadService=function(e,t,i){var n=l.getCdnResource()+"/js/gigya.services."+e+".js";d(n,function(){"object"==typeof console&&console.error&&(console.error("error loading gigya service "+e+" from url: "+n),t&&t())},i,!0)}},,,function(e,t){function i(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=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];for(var n=0;n<arguments.length-1;n++)null!=arguments[n+1]&&(e=e.split("{"+n+"}").join(arguments[n+1]));return e},t.capitalize=function(e){return e.substring(0,1).toUpperCase()+e.substring(1)},t.endsWith=function(e,t){return-1!==e.indexOf(t,e.length-t.length)},t.escapeRegExp=i,t.replaceAll=function(e,t,n){return t?e.replace(new RegExp(i(t),"g"),n):e}},,function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(7),o=i(4);t.serialize=function(e,t){var i=[];for(var r in t||(t="&"),e)switch(typeof e[r]){case"function":break;case"object":null!=e[r]&&i.push(r+"="+n.URLEncode(o.serialize(e[r])));break;case"undefined":break;default:i.push(r+"="+n.URLEncode(e[r]))}return i.join(t)},t.deserialize=function(e,t,i,o){var r={};if(!e)return r;t||(t="&");for(var a=e.split(t),s=0;s<a.length;s++){var c=a[s],l=c.indexOf("=");if(-1===l)r[u=i?c.toLowerCase():c]="1";else{var u=c.substr(0,l);i&&(u=u.toLowerCase());var g=c.substr(l+1).replace(/\+/g," ");try{r[u]=o?unescape(g):n.URLDecode(g)}catch(e){r[u]=unescape(g)}}}return r}},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(4),r=i(1),a=i(12),s=i(10),c=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=c;var l=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}(c);t.AbstractAsyncLocalStorageAdapter=l;var u=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}(c),g=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 r.localInfo.supportsLocalStorage},t}(u),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 r.localInfo.supportsSessionStorage},t}(u),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__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,i){try{window.globalStorage[location.hostname][e]=t}catch(e){}},t.prototype.removeItem=function(e){delete window.globalStorage[location.hostname][e]},t}(c),f=function(e){function t(){var t=e.call(this)||this;return t.loadSwfStore(function(e){t.isLoaded=!0}),t}return n.__extends(t,e),t.isAvailable=function(){return r.localInfo.supportsFlash&&(r.localInfo.isIE||r.localInfo.isEdge)},t.getName=function(){return"FlashAsyncStorageAdapter"},t.prototype.loadSwfStore=function(e){var t=this;window.SwfStore?this.initializeSwfStore(function(){return t.loadSwfStore(e)}):a.load("https://cdns.gigya.com/gs/js/swfstore.min.js",function(){console.log("Failed to load Gigya SwfStore."),e(!1)},function(){t.initializeSwfStore(e)},!0)},t.prototype.initializeSwfStore=function(e){this.swfStore=new SwfStore({namespace:"gigSSO",swf_url:"https://cdns.gigya.com/gs/swf/swfstore.swf",onready:function(){e(!0)},onerror:function(){console.log("Failed to initialize Gigya SwfStore."),e(!1)}})},t.prototype.getItem=function(e){return this.swfStore.get(e)},t.prototype.setItem=function(e,t,i){this.swfStore.set(e,t)},t.prototype.removeItem=function(e){this.swfStore.clear(e)},t}(l),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.isAvailable=function(){return s.canSaveCookie()},t.getName=function(){return"CookieStorageAdapter"},t.prototype.getItem=function(e){return s.get(e)},t.prototype.setItem=function(e,t,i){s.set(e,t,i)},t.prototype.removeItem=function(e){s.remove(e)},t}(c);t.CookieStorageAdapter=h;var m=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}(c);function v(e){var i=e.getName()||e.name;return t.instances[i]||(t.instances[i]=new e),t.instances[i]}function w(e){for(var i,n=0,o=t.adapters;n<o.length;n++){var r=o[n];if(r.isAvailable()){if(r.prototype instanceof l&&!e)continue;i=v(r);break}}return i||(i=v(m)),e&&(i instanceof l?i.waitForService(function(){e(i)}):e(i)),i}t.adapters=[g,d,p,f,h,m],t.instances={},t.initializeAdapter=v,t.waitForService=w;var y=w();t.getItem=function(e){return y.getItem(e)},t.setItem=function(e,t,i){return y.setItem(e,t,i)},t.removeItem=function(e){return y.removeItem(e)},t.setObject=function(e,t){return y.setObject(e,t)},t.getObject=function(e,t){return y.getObject(e,t)}},function(e,t){function i(e,t,i){void 0===i&&(i="&");var n=e.match(new RegExp(t+"=([^"+i+"]*)"));return n?n[1]:null}Object.defineProperty(t,"__esModule",{value:!0}),t.getParamValue=i,t.getReqParamValue=function(e,t){var n=i(e,t);return n?decodeURIComponent(n):null}},,function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(9),o=i(15),r=i(1),a=["socialize","accounts","fidm","gm","comments","gcs","ids","ds","gscounters"];function s(e,t,i){void 0===t&&(t=window.gigya.dataCenter),void 0===i&&(i=window.gigya.defaultApiDomain);var n=t+"."+i;return e?e+"."+n:n}function c(e,t,i,n){return void 0===e&&(e=window.gigya.partnerSettings&&window.gigya.partnerSettings.customAPIDomainPrefix),void 0===t&&(t=r.localInfo.baseDomain),void 0===i&&(i=window.gigya.dataCenter),void 0===n&&(n=window.gigya.defaultApiDomain),e&&t&&t!==n?e+"."+t:s(void 0,i,n)}t.apiDomainFactory=function(e,t){void 0===e&&(e=c()),void 0===t&&(t=window.gigya.defaultApiDomain);var i=n.Uri.parse(e).isIn(n.Uri.parse(t));return function(t){if(t&&i){var n=t.split(".")[0];return-1==a.indexOf(n)&&(window.gigya.logger.error("trying to send request to an invalid domain"),n=a[0]),n+"."+e}return e}},t.getGigyaDomain=s,t.getBaseDomain=function(e,t,i){if(void 0===e&&(e=window.gigya.partnerSettings.baseDomains.split(",")),void 0===t&&(t=location.hostname),void 0===i&&(i=["gigya.com","gigya-api.cn",window.gigya.defaultApiDomain]),!t)return"";var r=n.Uri.parse(t);i&&(e=e.concat(i));for(var a=0;a<e.length;a++){var s=o.replaceAll(e[a],"*",""),c=n.Uri.parse(s);if(r.isIn(c))return c.isForSubDomains()?r.domain:c.domain}return r.domain},t.resolveApiDomain=c},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(18),r=i(4),a=i(3),s=i(7);function c(e){if(null!=e.identities){if(e.identities.constructor==Array){var t=e.identities;e.identities={};for(var i=0;i<t.length;i++)e.identities[t[i].provider]=new window.gigya.socialize.Identity(t[i])}}else e.identities={}}!function(e){e[e.LocalStorageListener=0]="LocalStorageListener",e[e.PostMessage=1]="PostMessage",e[e.Flash=2]="Flash"}(t.MessagingMethod||(t.MessagingMethod={})),t.checkCompleteRegistration=function(e,t,i,o){var r,a,s=!1;if(206005==e.errorCode)window.gigya.logger.info("finalizing registration after email verification"),s=!0,window.gigya.accounts.finalizeRegistration({regToken:e.regToken,ignoreApiQueue:!0,callback:o});else if(!t.dontHandleScreenSet&&((e.regToken||t.regToken)&&(200010==e.errorCode||403043==e.errorCode)||206001==e.errorCode||206002==e.errorCode||206003==e.errorCode||403101==e.errorCode||403102==e.errorCode||403110==e.errorCode||403100==e.errorCode)){var c;403110==e.errorCode&&(a=!0,c=!0),t.defaultMobileRegScreenSet&&n.localInfo.isMobile?r=t.defaultMobileRegScreenSet:t.defaultRegScreenSet&&(r=t.defaultRegScreenSet)}r?(window.gigya.logger.info("showing screenset '"+r+"' for errorCode "+e.errorCode),window.gigya.logger.group(r),window.gigya.accounts.showScreenSet({ignoreApiQueue:!0,newModal:c,screenSet:r,initialMethod:i,initialResponse:e,onError:function(t){o(e)},onHide:function(t){if(window.gigya.logger.groupEnd(r),"finished"===t.reason&&t.user){var i={errorCode:0,userInfo:t.user};o(i,!0,a)}else o(e)}})):s||o(e)},t.getGigyaSettings=function(e){var t=o.getObject("gigyaSettings");return r.serialize(t[e])},t.setGigyaSettings=function(e,t){var i,n=o.getObject("gigyaSettings",((i={})[e]={},i));for(var a in t)n[e][a]=t[a];o.setItem("gigyaSettings",r.serialize(n))},t.delGigyaSettings=function(e){if(e){var t=o.getObject("gigyaSettings");t&&(delete t[e],o.setItem("gigyaSettings",r.serialize(t)))}else o.removeItem("gigyaSettings")},t.handleSpecialFields=function(e){var t=window.gigya.socialize.Collection,i=function(e,t){for(var i=[],n=0,o=e[n];o;)i.push(new t(o)),i[n].identities&&c(i[n]),o=e[++n];return i};if(e.photos&&(e.photos=new t(e.photos,"photoID")),e.albums&&(e.albums=new t(e.albums,"albumID")),e.contacts&&(e.contacts=new t(i(e.contacts,window.gigya.socialize.Contact),"email")),e.friend&&(e.friend=new t(i(e.friend,window.gigya.socialize.Friend),"UID")),e.user&&(e.user=new window.gigya.socialize.User(e.user)),e.friends&&e.friends instanceof Array){for(var n=[],o=0;o<e.friends.length;o++)n.push(e.friends[o].UID);e.UIDs=n.join(","),e.friends=new t(i(e.friends,window.gigya.socialize.Friend),"UID")}},t.convertIdentitiesArrayToObject=c,t.addUserInfoToEvent=function(e,t,i,n){var o=e.user||e.userInfo;return null==t&&(t={}),null!=o&&(t.user=a.clone(o),null!=e.isLoggedIn&&(t.user.isLoggedIn=e.isLoggedIn),null!=e.isSiteUID&&(t.user.isSiteUID=e.isSiteUID),null!=e.iRank&&(t.user.iRank=e.iRank)),i&&(a.extractProperties(e,t,"signature|UIDSig|timestamp|UIDSignature|signatureTimestamp|UID|signKeysUIDSignature"),null!=t.user&&(t.UID=o.UID,t.isSiteUID=o.isSiteUID)),t},t.sendEmailNative=function(e){var t=e.userAction||{},i=t.title||"",n=t.linkBack||"";document.location.href="mailto:?to=&subject="+s.URLEncode(i)+"&body="+s.URLEncode(n),window.gigya.socialize.sendEmail(e,{dontSendEmail:!0})}},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 o(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 o=n(t);e[t]=o?{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 o=i[t].q;for(i[t].q=[];o.length>0;){var r=o.splice(0,1)[0];try{r.func.apply(this,r.args)}catch(i){"object"==typeof console&&console.log&&console.log("Gigya: Exception while invoking queued method ("+t+": "+e+")")}if(n(t)){i[t].q=o;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=o,t.queueForExecution=function(e,t,i){i=i||[],n(e)?o(e,t,i):t.apply(this,i)}},,function(e,t){function i(){var e=0,t=0;return"number"==typeof window.pageYOffset?(t=window.pageYOffset,e=window.pageXOffset):document.body&&(document.body.scrollLeft||document.body.scrollTop)?(t=document.body.scrollTop,e=document.body.scrollLeft):document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)&&(t=document.documentElement.scrollTop,e=document.documentElement.scrollLeft),{left:e,top:t}}function n(){var e,t,i=document.documentElement,n=document.body;return window.innerHeight?(e=window.innerHeight,t=window.innerWidth):(0==(e=i.clientHeight)&&(e=n.clientHeight),0==(t=i.clientWidth)&&(t=n.clientWidth)),{w:t,h:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getScroll=i,t.getFullSize=function(){var e=document.documentElement,t=document.body,i=e.clientHeight;0==i&&(i=t.clientHeight);var n=e.clientWidth;return 0==n&&(n=t.clientWidth),{w:n,h:i}},t.getOrientation=function(){var e=parseInt(window.orientation||"0");return e<0&&(e+=360),e},t.getInnerSize=n,t.getMiddleCenter=function(){var e=i(),t=n();return{top:e.top+Math.floor(t.h/2),left:e.left+Math.floor(t.w/2)}},t.isRectHorizontallyVisible=function(e){var t=i(),o=n();return e.left>=t.left&&e.right<=t.left+o.w},t.isRectFullyVisible=function(e){var t=i(),o=n();return e.top>=t.top&&e.bottom<=t.top+o.h&&e.left>=t.left&&e.right<=t.left+o.w},t.scrollIntoView=function(e){e&&e.scrollIntoView&&e.scrollIntoView()}},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(11),o=i(33),r=i(3),a=i(22),s=i(40);function c(e){return"on"===e.substring(0,2)?e:"on"+e.substring(0,1).toUpperCase()+e.substring(1)}var l={},u={};function g(e,t){var i=0,n=e.isInternal,u=e.eventName.split(",");o.addLog('Dispatching global event "'+e.eventName+'" with this event object',e);for(var g=0;g<u.length;g++){var d=u[g].split("."),p=d.length>1?d.shift():"socialize",f=d[0],h=p+"_"+c(f),m=r.clone(l[h])||[],v=r.clone(e);v.isGlobal=!0,v.eventName=f,v.fullEventName=u[g],t&&(t.source&&(v.source=t.source),t.sourceData&&(v.sourceData=t.sourceData),t.context&&(v.context=t.context));var w=["component"];n||w.push("other");for(var y=0;y<w.length;y++)for(var b=w[y],_=0;_<m.length;_++){var I=m[_];if(I.type==b){var S=r.clone(v);!S.context&&I.context&&(S.context=I.context),S.context||delete S.context,"component"!==b&&(i++,a.handleSpecialFields(S)),I.params&&I.params.signKey&&(S.UIDSignature=e.signKeysUIDSignature[I.params.signKey],delete S.signKeysUIDSignature);try{I.handler(S)}catch(t){o.addLog('Error while trying to invoke "'+e.eventName+'" global event handler',t)}}}n||s._dispatchFromMaps(v,!0);var A=window.GenesisExchange_Gigya,P=window.gigya_omniture_conf,C=window.myOmnitureIntegrationFunc;if(!n&&void 0!==A&&void 0!==P&&"socialize"==p)new A(P).processAction(v),void 0!==C&&C(P,v)}return i}function d(e,t,i,n){var o=function(e){var i=0;e.cancel||(i=g(e,t)),n&&n(i)};i?i(e,o):o(e)}t._activeNamespaces={},t.add=function(e,t,i,n,o,r){void 0===i&&(i="other"),void 0===o&&(o="socialize");var a=o+"_"+c(e);l[a]||(l[a]=[]);var s={handler:t,type:i,context:n,params:r,fullEventName:a};l[a].push(s),!this._activeNamespaces[o]&&window.gigya._.apiAdapter&&window.gigya._.apiAdapter.registerForNamespaceEvents(o),this._activeNamespaces[o]=1;var g=u[a];if(g&&"other"==i){u[a]=[];for(var p=0;p<g.length;p++){var f=g[p];d(f.eventObj,f.params,f.preProcess)}}return s},t.remove=function(e,t){l[e]&&n.removeByValue(l[e],t)},t.dispatch=g,t.dispatchWhenHandlerAdded=function(e,t,i){void 0===t&&(t={});var n=e.eventName.split("."),o=n.length>1?n.shift():"socialize",r=n[0];d(e,t,i,function(n){if(0==n){var a="on"+r.substring(0,1).toUpperCase()+r.substring(1),s=o+"_"+a;u[s]||(u[s]=[]),u[s].push({eventObj:e,params:t,preProcess:i})}})},t.getEventsForOperation=function(e){var t=[];return-1!=e.toLowerCase().indexOf("login")?(this._activeNamespaces.socialize&&t.push("socialize.login"),this._activeNamespaces.accounts&&t.push("accounts.login")):-1!=e.toLowerCase().indexOf("addconnection")&&this._activeNamespaces.socialize&&t.push("socialize.connectionAdded"),t.join(",")}},function(e,t,i){var n;Object.defineProperty(t,"__esModule",{value:!0});var o=i(43),r=i(19);t.gigErrorReport="gigErrorReport";var a={logLevel:o.LogLevel.disabled,clientMuteLevel:0,logTheme:1},s=((n={})[0]=[""],n[1]=["38f689","009FD4","b381b3","71b6ef","64c162","977bd8","d168a4","4c71d2","84b466","7d638a","799fb7","8fdf98","dc7767","0a70f5","38b159","af721b","bfaf6f"],n[2]=["40806A","003636","9B59B6","DB0A5B","7928A1","522032","0000E0","00202A","000036","005555","1D781D","4F5A65","765AB0","000000","3C1362","000060","591D77"],n),c=o.LogLevel.warn,l=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i]},u=function(){function e(e){this._global=e,this._groupsStack=[],this._currColorIdx=0,this.configKey="gig_loggerConfig",this._console=this._global.console,this.isEnabled&&this.overrideClientLogs()}return e.prototype.getConfig=function(){return this._config||(this._config=this.readLoggerConfigFromHash()||this.readLoggerConfigFromCookie()||a),this._config},Object.defineProperty(e.prototype,"isEnabled",{get:function(){return this.getConfig().logLevel>o.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 s[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=r.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(){var e=null,t=r.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},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,i){return-1!==["group","groupCollapsed","groupEnd"].indexOf(i)?function(){for(var t,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return(t=e._console).log.apply(t,["client has called console."+i].concat(n))}:t[i]}})}},e.prototype.getFormattedLogArgs=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=this.currentGroup),{text:t?"%c█"+e:"%c"+e,css:t?"color: "+t.color+";":""}},e.prototype.restoreHangingGroups=function(e){for(;e.length;){var t=e.shift();this._groupsStack.push(t);var i=this.getFormattedLogArgs(" %c[RESTORED - "+t.groupTitle+"]");this._console.groupCollapsed(i.text,i.css,"color: #b0b0b0b0;")}},e.prototype.endGroup=function(e){var t=this.getFormattedLogArgs(" [END - "+e.groupTitle+"]",e);this._console.log(t.text,t.css),this._console.groupEnd()},e.prototype.log=function(e){if(this.isEnabled&&e>=this.logLevel||e>=c&&this.logLevel<c){var t=o.LogLevel[e],i=e===o.LogLevel.debug?o.LogLevel[o.LogLevel.info]:t,n=this.getFormattedLogArgs(" %c["+t+"]");return this._console[i].bind(this._console,n.text,n.css,e<=o.LogLevel.info?"color: #b0b0b0b0;":"")}return l},e.prototype.getJsonFromError=function(e){return{name:e.name,message:e.message,stack:e.stack}},Object.defineProperty(e.prototype,"debug",{get:function(){return this.log(o.LogLevel.debug)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"info",{get:function(){return this.log(o.LogLevel.info)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"warn",{get:function(){return this.log(o.LogLevel.warn)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"error",{get:function(){var e=this;return function(t,i){i&&"object"==typeof i&&Object.keys(i).forEach(function(t){i[t]instanceof Error&&(i[t]=e.getJsonFromError(i[t]))}),e.log(o.LogLevel.error).apply(e,[t].concat([i])),e.report(t,i)}},enumerable:!0,configurable:!0}),e.prototype.group=function(e,t){var i=this;if(void 0===t&&(t=!0),this.isEnabled){var n=this.getNextColor();this._groupsStack.push({groupTitle:e,color:n});var o=this.getFormattedLogArgs(" [START - "+e+"]");!function(){for(var e,n,o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];t?(e=i._console).groupCollapsed.apply(e,o):(n=i._console).group.apply(n,o)}(o.text,o.css)}return{end:function(){return i.groupEnd(e)},endWhen:function(t){"function"==typeof t&&(t=t()),t&&t.then?t.then(function(){return i.groupEnd(e)}):i.groupEnd(e)}}},e.prototype.groupEnd=function(e){if(this.isEnabled){for(var t=[],i=this._groupsStack.pop();i.groupTitle!==e&&this._groupsStack.length;)t.unshift(i),i=this._groupsStack.pop(),this._console.groupEnd();this.endGroup(i),t.length&&this.restoreHangingGroups(t)}},e.prototype.enable=function(e,t,i){void 0===e&&(e=o.LogLevel.info),void 0===t&&(t=1),void 0===i&&(i=1),this.setLoggerConfigCookie({logLevel:e,clientMuteLevel:t,logTheme:i})},e.prototype.disable=function(){this.setLoggerConfigCookie({logLevel:o.LogLevel.disabled,clientMuteLevel:a.clientMuteLevel,logTheme:a.logTheme})},e}();t.BaseLogger=u},,,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isExplicitTrue=function(e){var t=(""+e).toLowerCase();return"true"==t||"1"==t},t.isExplicitFalse=function(e){var t=(""+e).toLowerCase();return"false"==t||"0"==t},t.isLaterThanNow=function(e){return e>(new Date).getTime()},t.allDefinedOrAllUndefined=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=e.some(function(e){return void 0===e}),n=e.some(function(e){return void 0!==e});return n&&!i||!n&&i}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i=/\/\/cdn(s)?\.(ru1\.)?gigya.com/,n=["gigya.js","socialize.js","socialize2.js","gsjssdk.js"];t.getGigyaScriptElement=function(){for(var e,t=document.getElementsByTagName("script"),o=function(o){var r=t[o],a=r.src.toLowerCase();if(""!==a&&(i.test(a)||a.indexOf("?apikey=")>-1)&&(0===n.length||n.some(function(e){return a.indexOf(e)>-1})))return e=r,"break"},r=t.length-1;r>=0&&"break"!==o(r);r--);return e}},,function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(10),o=i(3),r=i(4),a=i(11),s=i(12),c=i(8),l=i(5);function u(){var e=n.get("_gig_dbgConsole_log");return void 0!==e&&null!=e?"1"===e:t.selectedConsoleLogLevels.length>0}function g(e,i,n){if(void 0===n&&(n=!1),u()||n){var s,c=e;if(null!=(i=o.clone(i,!0,!1,4,null,!0))&&(c+=":"+("object"==typeof i?"\n":"")+r.serialize(i,!0,!0)),n&&"object"==typeof console&&console.log&&console.log(c),u())t._log.push(c),document.getElementById("gigya_log"),s=-1!=a.indexOf(t.CONSOLE_LOG_LEVELS,e)?e:"log",window.gigya._.apiAdapter.onJSLog(s,c)}}function d(){s.load(c.getCdnResource("/js/gigya.services.socialize.plugins.log.min.js"),null,function(){},!0)}function p(){}function f(){}t.CONSOLE_LOG_LEVELS=["debug","info","log","warn","error"],t.selectedConsoleLogLevels=[],t._log=[],t.enable=function(){n.set("_gig_dbgConsole_log","1",null)},t.disable=function(){n.set("_gig_dbgConsole_log","0",null)},t._isEnabled=u,t.addLog=g,t.logCall=function(e,t,i){i||(i=t.lastSource),g("Calling "+e+(i&&i!=e?" for "+i:"")+(t.source&&i!=t.source?" initiated from "+t.source:"")+" with these params",t)},t.debug=d,t.showLog=function(){s.load(c.getCdnResource("/js/gigya.services.socialize.plugins.log.min.js"),null,function(){},!0)},t.show=p,t.showConfig=f,l.createAlias("gigya.debug",d)},,,function(e,t,i){(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n=i(37);e(window.gigya,{Promise:n})}).call(this,i(0).__assign)},function(e,t,i){(function(t,i){var n;n=function(){"use strict";function e(e){return"function"==typeof e}var n=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=0,r=void 0,a=void 0,s=function(e,t){f[o]=e,f[o+1]=t,2===(o+=2)&&(a?a(h):b())},c="undefined"!=typeof window?window:void 0,l=c||{},u=l.MutationObserver||l.WebKitMutationObserver,g="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){var e=setTimeout;return function(){return e(h,1)}}var f=new Array(1e3);function h(){for(var e=0;e<o;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}o=0}var m,v,w,y,b=void 0;function _(e,t){var i=this,n=new this.constructor(A);void 0===n[S]&&j(n);var o=i._state;if(o){var r=arguments[o-1];s(function(){return z(o,n,r,i._result)})}else M(i,n,e,t);return n}function I(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(A);return O(t,e),t}g?b=function(){return t.nextTick(h)}:u?(v=0,w=new u(h),y=document.createTextNode(""),w.observe(y,{characterData:!0}),b=function(){y.data=v=++v%2}):d?((m=new MessageChannel).port1.onmessage=h,b=function(){return m.port2.postMessage(0)}):b=void 0===c?function(){try{var e=Function("return this")().require("vertx");return void 0!==(r=e.runOnLoop||e.runOnContext)?function(){r(h)}:p()}catch(e){return p()}}():p();var S=Math.random().toString(36).substring(2);function A(){}var P=void 0,C=1,L=2,x={error:null};function k(e){try{return e.then}catch(e){return x.error=e,x}}function D(t,i,n){i.constructor===t.constructor&&n===_&&i.constructor.resolve===I?function(e,t){t._state===C?U(e,t._result):t._state===L?T(e,t._result):M(t,void 0,function(t){return O(e,t)},function(t){return T(e,t)})}(t,i):n===x?(T(t,x.error),x.error=null):void 0===n?U(t,i):e(n)?function(e,t,i){s(function(e){var n=!1,o=function(e,t,i,n){try{e.call(t,i,n)}catch(e){return e}}(i,t,function(i){n||(n=!0,t!==i?O(e,i):U(e,i))},function(t){n||(n=!0,T(e,t))},e._label);!n&&o&&(n=!0,T(e,o))},e)}(t,i,n):U(t,i)}function O(e,t){var i,n;e===t?T(e,new TypeError("You cannot resolve a promise with itself")):(n=typeof(i=t),null===i||"object"!==n&&"function"!==n?U(e,t):D(e,t,k(t)))}function E(e){e._onerror&&e._onerror(e._result),N(e)}function U(e,t){e._state===P&&(e._result=t,e._state=C,0!==e._subscribers.length&&s(N,e))}function T(e,t){e._state===P&&(e._state=L,e._result=t,s(E,e))}function M(e,t,i,n){var o=e._subscribers,r=o.length;e._onerror=null,o[r]=t,o[r+C]=i,o[r+L]=n,0===r&&e._state&&s(N,e)}function N(e){var t=e._subscribers,i=e._state;if(0!==t.length){for(var n=void 0,o=void 0,r=e._result,a=0;a<t.length;a+=3)n=t[a],o=t[a+i],n?z(i,n,o,r):o(r);e._subscribers.length=0}}function z(t,i,n,o){var r=e(n),a=void 0,s=void 0,c=void 0,l=void 0;if(r){if((a=function(e,t){try{return e(t)}catch(e){return x.error=e,x}}(n,o))===x?(l=!0,s=a.error,a.error=null):c=!0,i===a)return void T(i,new TypeError("A promises callback cannot return that same promise."))}else a=o,c=!0;i._state!==P||(r&&c?O(i,a):l?T(i,s):t===C?U(i,a):t===L&&T(i,a))}var R=0;function j(e){e[S]=R++,e._state=void 0,e._result=void 0,e._subscribers=[]}var F=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(A),this.promise[S]||j(this.promise),n(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?U(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&U(this.promise,this._result))):T(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===P&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var i=this._instanceConstructor,n=i.resolve;if(n===I){var o=k(e);if(o===_&&e._state!==P)this._settledAt(e._state,t,e._result);else if("function"!=typeof o)this._remaining--,this._result[t]=e;else if(i===B){var r=new i(A);D(r,e,o),this._willSettleAt(r,t)}else this._willSettleAt(new i(function(t){return t(e)}),t)}else this._willSettleAt(n(e),t)},e.prototype._settledAt=function(e,t,i){var n=this.promise;n._state===P&&(this._remaining--,e===L?T(n,i):this._result[t]=i),0===this._remaining&&U(n,this._result)},e.prototype._willSettleAt=function(e,t){var i=this;M(e,void 0,function(e){return i._settledAt(C,t,e)},function(e){return i._settledAt(L,t,e)})},e}(),B=function(){function t(e){this[S]=R++,this._result=this._state=void 0,this._subscribers=[],A!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t(function(t){O(e,t)},function(t){T(e,t)})}catch(t){T(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var i=this.constructor;return e(t)?this.then(function(e){return i.resolve(t()).then(function(){return e})},function(e){return i.resolve(t()).then(function(){throw e})}):this.then(t,t)},t}();return B.prototype.then=_,B.all=function(e){return new F(this,e).promise},B.race=function(e){var t=this;return n(e)?new t(function(i,n){for(var o=e.length,r=0;r<o;r++)t.resolve(e[r]).then(i,n)}):new t(function(e,t){return t(new TypeError("You must pass an array to race."))})},B.resolve=I,B.reject=function(e){var t=new this(A);return T(t,e),t},B._setScheduler=function(e){a=e},B._setAsap=function(e){s=e},B._asap=s,B.polyfill=function(){var e=void 0;if(void 0!==i)e=i;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=B},B.Promise=B,B},e.exports=n()}).call(this,i(38),i(39))},function(e,t){var i,n,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(i===setTimeout)return setTimeout(e,0);if((i===r||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:r}catch(e){i=r}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var c,l=[],u=!1,g=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):g=-1,l.length&&p())}function p(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(c=l,l=[];++g<t;)c&&c[g].run();g=-1,t=l.length}c=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];l.push(new f(e,t)),1!==l.length||u||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"==typeof window&&(i=window)}e.exports=i},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(3),o=i(33),r=i(22),a=i(11),s=i(94);function c(e){return"on"===e.substring(0,2)?e:"on"+e.substring(0,1).toUpperCase()+e.substring(1)}function l(e,t){if(e&&e.eventName){var i=e.eventName;o.addLog('Dispatching widget event "'+i+'" for '+t.lastSource+" with this event object",e),r.handleSpecialFields(e);for(var n,a=i.split(","),s=0;s<a.length;s++){var l=a[s],d=c(l);if(t&&(t.context&&(e.context=t.context),t.source&&(e.source=t.source),t.sourceData&&(e.sourceData=t.sourceData),t.containerID&&(e.sourceContainerID=t.containerID),t.instanceID&&(e.instanceID=t.instanceID)),t[d]&&(n=u(t[d],e)),void 0===n&&(n=!0),-1==l.indexOf("login")&&-1==l.indexOf("logout")&&"connectionRemoved"!=l&&"connectionAdded"!=l){g(e);var p=window.GenesisExchange_Gigya,f=window.gigya_omniture_conf,h=window.myOmnitureIntegrationFunc;if(void 0!==p&&void 0!==f)new p(f).processAction(e),void 0!==h&&h(f,e)}}return n}}function u(e,t){var i;try{"function"==typeof e?i=e(t):e instanceof Array?a.forEach(e,function(e){"function"==typeof e?e(t):o.addLog("Not a function registered to event: "+e,e)}):o.addLog("Not a function or function array registered to event",e)}catch(t){o.addLog("Error invoking function registered to event",e)}return i}function g(e,t){void 0===t&&(t=!1);for(var i=[],n=!1,r=0;r<window.gigya.defaultEventMaps.length;r++){for(var a=window.gigya.defaultEventMaps[r].eventMap,c=window.gigya.defaultEventMaps[r].defaultMethod,l=0;l<a.length;l++){var u=a[l],g=[];u.args||(u.args=[]);for(var d=0;d<u.args.length;d++)"$event"==u.args[d]?g.push(e):g.push(s.fill(u.args[d],e));var p=","+u.events.toLowerCase()+",";if(-1!=p.indexOf(",*,")||(-1!=p.indexOf(",on"+e.eventName.toLowerCase()+",")||-1!=p.indexOf(","+e.eventName.toLowerCase()+","))&&(!e.source&&!u.sources||!u.sources||-1!=u.sources.indexOf(e.source))){i.push(u);var f=u.method?u.method:c;try{f.apply(this,g)}catch(e){o.addLog("Error invoking function registered to events map's method",f)}u.override&&(n=!0)}}if(n)break}}t.addMap=function(e){window.gigya.defaultEventMaps.splice(0,0,e)},t.dispatchErrorFromResponse=function(e,t,i){t||(t={});var o=t;o.response&&(o=o.response);var r={eventName:"error",status:o.status?o.status:"FAIL",statusMessage:o.statusMessage?o.statusMessage:"General Server Error",errorMessage:o.errorMessage?o.errorMessage:"General Server Error",errorDetails:o.errorDetails?o.errorDetails:"",errorCode:o.errorCode?o.errorCode:500001,response:t};n.add(r,i),l(r,e)},t.dispatchInvalidParamError=function(e,t){var i={eventName:"error"};void 0===e[t]||null==e[t]?(i.errorCode=400002,i.errorMessage="Missing_required_parameter ("+t+")"):(i.errorCode=400006,i.errorMessage="Invalid_parameter_value ("+t+")"),i.status=i.errorCode,i.statusMessage=i.errorMessage,l(i,e)},t.dispatchForWidget=l,t.dispatchEventObject=u,t._dispatchFromMaps=g},function(e,t,i){(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n=i(42),o=i(45);window.gigya.logger||e(window.gigya,{logger:window===window.top?new n.ParentLogger:new o.IFrameLogger})}).call(this,i(0).__assign)},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(27),r=i(44),a=i(31),s=i(7),c=i(1),l=function(e){function t(t,i,n,o,a){void 0===t&&(t=window),void 0===i&&(i=window.gigya.errorReport),void 0===n&&(n=window.gigya.canary),void 0===o&&(o=function(){return 100*Math.random()}),void 0===a&&(a=r.loggerJsonp);var s=e.call(this,t)||this;s._global=t,s._errorReportConfig=i,s._canaryConfig=n,s._random=o,s._jsonp=a;var c=s._errorReportConfig&&s._errorReportConfig.enabled,l=s._canaryConfig&&s._canaryConfig.isActive,u=s.enrollErrorReporting();return c&&(l||u)&&(s._isErrorReporter=!0,s.setupMessageListener()),s}return n.__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 i=window.gigya.dataCenter,n=window.gigya.defaultApiDomain.replace(/\./g,"."),r=new RegExp("cdns?."+i+"."+n+"$");if(t.origin.match(r))try{var a=JSON.parse(t.data);a.type===o.gigErrorReport&&e.report(a.message,a.details)}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){var i={message:e,apiKey:this.getApiKey(),stack:(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,callback:"gigya.callback",format:"jsonp",sdk:"web"};return t&&(i.details=JSON.stringify(t)),Object.keys(i).map(function(e){return e+"="+encodeURIComponent(i[e])}).join("&")},t.prototype.report=function(e,t){if(this._isErrorReporter)try{var i=this.createReportParams(e,t),n=location.protocol+"//accounts."+window.gigya.dataCenter+"."+window.gigya.defaultApiDomain+"/sdk.errorReport";this._jsonp(n,i)}catch(e){}},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 i=document.createElement("script");i.src=e+"?"+t,i.type="text/javascript",i.onload=function(){document.getElementsByTagName("head")[0].removeChild(i)},document.getElementsByTagName("head")[0].appendChild(i)}},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(27),r=i(19),a=function(e){function t(t){void 0===t&&(t=window);var i=e.call(this,t)||this;return i._global=t,i}return n.__extends(t,e),t.prototype.report=function(e,t){try{var i=document.createElement("a");i.href=r.getReqParamValue(location.hash,"origin")||r.getReqParamValue(location.hash,"d");var n=i.protocol+"//"+i.hostname+(i.port?":"+i.port:"");this._global.top.postMessage(JSON.stringify({type:o.gigErrorReport,message:e,details:t}),n)}catch(e){console.error(e)}},t}(o.BaseLogger);t.IFrameLogger=a},,,,,,,function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(3);function o(e,i,o,r,s,c,l){void 0===c&&(c={}),void 0===l&&(l=!1);var u=n.removeUndefined({name:e,time:(new Date).getTime().toString(),source:r,sourceData:s,reportData:c,cid:o});if(l){var g=[u];window.gigya.gscounters.sendReport({reports:g,noAuth:!a(g)})}else t.queue||(t.queue=[]),t.queue.push(u)}function r(){for(;t.queue&&t.queue.length>0;){var e=n.clone(t.queue.splice(0,5),!0,!0);window.gigya.gscounters.sendReport({reports:e,noAuth:!a(e)})}}function a(e){for(var t=0;t<e.length;t++){var i=e[t];if("loadc"!==i.name&&"load"!==i.name||"loadc"===i.name&&i.reportData&&i.reportData.actionCounterPath)return!0}return!1}t.trackAddressBarShares=function(){if(window.gigya.thisScript.globalConf.trackAddressBarShares){var e=window.gigya._.apiAdapter.getTokenParam(window.gigya.thisScript.APIKey,"UUID"),t=document.location.href.split("#");1!=t.length&&""!=t[1]&&"guid=_"!=t[1]||document.location.replace("#guid="+(e||"_"))}},t.report=o,t.init=function(){setInterval(r,5e3)},t.reportLoad=function(e,t){if(!t._reportedLoad){t._reportedLoad=!0;var i="load";if("gigya.socialize.plugins.reactions.showReactionsBarUI"==e)return;"gigya.socialize.plugins.simpleshare.showSimpleShareUI"==e&&(i="loadSimple"),o(i,t.APIKey,t.cid,t.source,t.sourceData)}}},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(5),o=i(3),r=i(23);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;n.createAlias("gigya."+this.methodName,function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var n=o.merge([t]),a=function(){var t=o.merge([window.gigya.thisScript.globalConf,n]);e.run(t,n)};window.gigya.thisScript&&window.gigya.thisScript.globalConf?a():r.queueForExecution("API",a)})},e}();t.BaseApi=s},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(3),o=i(26),r=i(6),a=i(12),s=i(1),c=[];function l(){if("undefined"!=typeof FB){window.gigya.providersConfig.facebook&&window.gigya.providersConfig.facebook.appID&&FB&&FB.getLoginStatus&&FB.getLoginStatus(function(e){t.initializedTime=new Date,t.isConnected="connected"==e.status,t.isLoggedIn="unknown"!=e.status,o.dispatch({eventName:"FBCRefreshed"})},!0)}}function u(){var e={};if("undefined"!=typeof FB&&FB.getAuthResponse)try{var t=FB.getAuthResponse();t&&(null!=t.userID&&(e.fb_UID=t.userID),null!=t.accessToken&&(e.fb_at=t.accessToken),null!=t.expiresIn&&(e.fb_exp=t.expiresIn))}catch(e){}return e}t.isLoggedIn=!1,t.isConnected=!1,t.isLoaded=function(){return null!=t.initializedTime},t.load=function(e){if(!t.initializedTime){t.initializedTime=null,window.setInterval(function(){l()},27e5),window.fbAsyncInit=function(){var i=n.clone(window.gigya.thisScript.globalConf.facebookInitParams);i||(i={}),window.gigya.providersConfig.facebook?(i.appId=window.gigya.providersConfig.facebook.appID,i.version=window.gigya.providersConfig.facebook.version):i.version="v1.0",i.status=!1,i.cookie=!0,i.xfbml=!0,i.oauth=!0,FB.init(i),1!=e?FB.getLoginStatus(function(e){t.initializedTime=new Date,t.isConnected="connected"==e.status,t.isLoggedIn="unknown"!=e.status,o.dispatch({eventName:"facebookLoaded",isLoggedIn:t.isLoggedIn,isConnected:t.isConnected}),window.gigya.socialize.addEventHandlers({listenerType:"component"},{listenerDescription:"listener for updating Facebook Connect session",onLogin:function(){l()},onConnect:function(){l()},onLogout:function(){l()}})},!0):(t.initializedTime=new Date,o.dispatch({eventName:"facebookLoaded",isLoggedIn:t.isLoggedIn,isConnected:t.isConnected}))};var i=document.createElement("div");i.id="fb-root",r.appendToBody(i),a.load(s.localInfo.protocol+"://connect.facebook.net/"+window.gigya.thisScript.lang.full.replace("-","_")+"/sdk.js",null,function(){"none"==document.documentElement.style.display&&(document.documentElement.style.display="")},!0)}},t.refreshSession=l,t.retryPending=function(){for(var e=c,t=0;t<e.length;t++)e[t]();c=[]},t.runWhenLoaded=function(e){c.push(e)},t.getParams=u,t.autoLogin=function(){window.gigya.socialize.waitForService({service:"facebook",callback:function(){window.gigya._.apiAdapter.isSessionValid(window.gigya.thisScript.globalConf,function(e){var t=u();!e&&t&&t.fb_at&&!window.gigya._.autoLoginInProgress&&(window.gigya._.autoLoginInProgress=!0,window.gigya.socialize.notifyLogin({providerSessions:{facebook:{authToken:t.fb_at,tokenExpiresIn:t.fb_exp}}}))})}})}},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(3),o=i(6),r=i(9);t.redirect=function(e,t,i,a,s){if(void 0===s&&(s=window.document),i&&"post"==i.toLowerCase()){var c=s.createElement("form"),l=[];c.setAttribute("accept-charset","UTF-8"),c.setAttribute("method","POST"),c.setAttribute("action",e),a&&c.setAttribute("target",a);var u=n.merge(t);for(var g in u)"number"!=typeof u[g]&&"boolean"!=typeof u[g]&&"string"!=typeof u[g]||"eventName"==g||l.push('<textarea name="'+encodeURIComponent(g)+'">'+u[g].toString().replace(/\&/g,"&amp;")+"</textarea>");c.innerHTML=l.join(""),c.style.display="none",o.appendToBody(c,s),c.submit()}else{for(var d=new r.Uri(e),p={},f=0;f<t.length;f++){var h=t[f];for(var m in h)if(h.hasOwnProperty(m)){var v=h[m];p[m]=v}}d.addToSearch(p),s.location.href=d.toString()}}},,,,,,,,,,,,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e._undefined=0]="_undefined",e[e.desktop=1]="desktop",e[e.mobile=2]="mobile",e[e.auto=3]="auto"}(t.DeviceTypes||(t.DeviceTypes={}))},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(26);t.isLoaded=function(){return null!=t.initializedTime},t.load=function(){var e=this;if(!t.initializedTime&&window.gigya.providersConfig.googlePlus){t.initializedTime=null;var i=document.createElement("script");i.type="text/javascript",i.async=!0,window.__gigya_handleClientLoad=function(){return e.handleClientLoad()},i.src="https://apis.google.com/js/client.js?onload=__gigya_handleClientLoad";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(i,n)}},t.handleClientLoad=function(){try{delete window.__gigya_handleClientLoad}catch(e){window.__gigya_handleClientLoad=void 0}t.initializedTime=new Date,n.dispatch({eventName:"googlePlusLoaded"})},t.refreshSession=function(){},t.autoLogin=function(){window.gigya.socialize.waitForService({service:"googlePlus",callback:function(){window.gigya._.apiAdapter.isSessionValid(window.gigya.thisScript.globalConf,function(e){e||gapi.auth.authorize({client_id:window.gigya.providersConfig.googlePlus.clientId,scope:window.gigya.providersConfig.googlePlus.scopes,immediate:!0,response_type:"code"},function(e){e&&e.code&&!window.gigya._.autoLoginInProgress&&(window.gigya._.autoLoginInProgress=!0,window.gigya.socialize.notifyLogin({providerSessions:{googlePlus:{token:e.code}}}))})})}})}},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(100),o=i(96),r=i(102),a=i(18),s=i(6),c=i(5);t.defaultApiSchema="ctag|APIKey|cid|oauth_token|source|sourceData|usePost|refUID|fb_UID|fb_at|fb_exp|environment|noAuth",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",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.socialLogin":1,"accounts.linkAccounts":1,"accounts.register":1,"accounts.finalizeRegistration":1};var l=function(e){return"link"!==e.loginMode&&"reAuth"!==e.loginMode},u=function(e,t){t()},g=function(e,t){e.noAuth=!0,t()};t.logoutBehaviour={logoutBeforeServerResponse:!0,alwaysSendLogoutToServer:!1},t.logoutMethods={"socialize.logout":1,"accounts.logout":1,"socialize.deleteAccount":1,"socialize.unlinkAccounts":1};var d=function(e,t){window.gigya.partnerSettings.ssoKey&&(e.signIDs=!0),t()},p=function(){return!t.logoutBehaviour.alwaysSendLogoutToServer};t.arApiList=[new n.ServerApi("socialize.login",t.defaultOauthSchema,!1,{oauth:!0},{preprocessor:u,clearSessionCondition:l,forceHttps:!0}),new n.ServerApi("socialize.addConnection",t.defaultOauthSchema,!1,{oauth:!0},{forceHttps:!0}),new n.ServerApi("socialize.requestPermissions",t.defaultOauthSchema,!0,{oauth:!0,defaultParams:{forcePermissions:!0}}),new n.ServerApi("accounts.socialLogin",t.defaultOauthSchema,!1,{oauth:!0},{preprocessor:u,clearSessionCondition:l,forceHttps:!0}),new o.UiApi("showDebugUI","socialize.plugins.debug",{},{},"",{allowPopup:!0}),o.UiApi.createApi("showMyPhotoUI","accounts","profilePhoto.MyPhotoPlugin","accounts.plugins.profilePhoto"),o.UiApi.createApi("showRatingUI","comments","rating.RatingPlugin","comments.plugins.rating"),o.UiApi.createApi("runJsUnitTests","_","JsUtRunner.Jasmine.JasmineUtRunnerPlugin","_.plugins.jsUtRunner"),o.UiApi.createApi("loadBasePlugin","_","Mock.MockPlugin","_.plugins.mock"),new o.UiApi("showCommentsUI","comments.plugins.comments",{width:500},{},"",{apiName:"comments.showCommentsUI1"}),new o.UiApi("showCommentsUI","comments.plugins.comments2",{width:500},{},"",{apiName:"comments.showCommentsUI2"}),o.UiApi.versionSelector("showCommentsUI","comments","2",[{versionName:"1",method:window.gigya.comments.showCommentsUI1,additionalParams:{ctag:"comments_v1"}},{versionName:"2",method:window.gigya.comments.showCommentsUI2,additionalParams:{ctag:"comments_v2"},isSupported:function(){return r.isModern()}}]),new o.UiApi("showShareUI","socialize.plugins.share",{width:520,height:320},{width:595,height:324},"userAction",{allowPopup:!0,preprocessor:function(e,t){var i=e.operationMode;i&&(i=i.toLowerCase().replace(/ /g,"")),e.containerID||(delete e.width,delete e.height),window.gigya._.apiAdapter.isSessionValid(e,function(n){"simpleshare"==i||"autodetect"==i&&!n?window.gigya.socialize.showSimpleShareUI(e):t()})}}),o.UiApi.createApi("showMessageUI","_","messages.MessagesPlugin","_.plugins.messages"),new o.UiApi("showLoginUI_v1","socialize.plugins.login",{width:120,height:110},{width:280,height:220},"",{allowPopup:!0}),o.UiApi.createApi("showLoginUI_v2","socialize","login_v2.LoginPlugin","socialize.plugins.login_v2"),o.UiApi.versionSelector("showLoginUI","socialize","1",[{versionName:"1",method:window.gigya.socialize.showLoginUI_v1},{versionName:"2",method:window.gigya.socialize.showLoginUI_v2}]),new o.UiApi("showAddConnectionsUI_v1","socialize.plugins.login",{width:110,height:65},{width:250,height:200},"",{allowPopup:!0}),o.UiApi.createApi("showAddConnectionsUI_v2","socialize","login_v2.LoginPlugin","socialize.plugins.login_v2"),o.UiApi.versionSelector("showAddConnectionsUI","socialize","1",[{versionName:"1",method:window.gigya.socialize.showAddConnectionsUI_v1},{versionName:"2",method:window.gigya.socialize.showAddConnectionsUI_v2}]),o.UiApi.createApi("showEditConnectionsUI","socialize","editConnections.EditConnectionPlugin","socialize.plugins.edit"),new o.UiApi("showShareBarUI","socialize.plugins.reactions",{shareCountCacheTimeout:30},{},"userAction|shareButtons"),new o.UiApi("showReactionsBarUI","socialize.plugins.reactions",{},{},"userAction|barID|reactions",{preprocessor:function(e,t){e.barID||(e.barID=e.itemID),t()}}),new o.UiApi("showMiniShareUI","socialize.plugins.minishare",{width:320,height:153},{},"",{allowPopup:!0}),new o.UiApi("showBookmarkUI","socialize.plugins.bookmark",{width:310,height:250},{width:310,height:310}),new o.UiApi("showSimpleShareUI","socialize.plugins.simpleShare",{width:280,height:175},{},"userAction",{allowPopup:!0,dontLoadPluginsCore:!0,waitForAPIQueue:!0}),new o.UiApi("showShareMobileUI","socialize.plugins.shareMobile",{},{},"userAction",{allowPopup:!0}),new o.UiApi("showUserStatusUI","gm.plugins.userStatus",{width:300,hidePoints:!1,hideActions:!1},{},"",{requireSession:!0}),new o.UiApi("showAchievementsUI","gm.plugins.achievements",{width:300,height:100,excludeChallenges:"_default"}),new o.UiApi("showChallengeStatusUI","gm.plugins.achievements",{width:300,height:100,challenge:"_default"}),new o.UiApi("showLeaderboardUI","gm.plugins.leaderboard",{width:300},{},"",{preprocessor:function(e,t){e&&e.height&&(e.height=null),t()}}),new o.UiApi("showNotifications","gm.plugins.notifications",{},{},"",{preprocessor:function(e,t){var i=a.getObject("gmSettings");if(!i||!i.disableNotifications){if(e.containerID="gigNotifications",!document.getElementById(e.containerID)){var n=document.createElement("div");n.id=e.containerID,n.style.position="absolute",n.style.left="-1000px",n.setAttribute("role","alert"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),s.appendToBody(n)}t()}}}),new o.UiApi("showTfaUI","accounts.plugins.tfa",{width:325}),o.UiApi.createApi("showScreenSet","accounts","ScreenSet.ScreenSetPlugin","accounts.plugins.screenSet",void 0,["hideScreenSet","switchScreen"]),new n.ServerApi("socialize.getAvailableProviders","enabledProviders|disabledProviders|requiredCapabilities"),new n.ServerApi("socialize.notifyLogin","siteUID|UIDTimestamp|UIDSig|UIDNonce|provider|authToken|tokenSecret|regSource|tokenExpiration|sessionHandle|sessionHandleExpiration|userInfo|providerSessions|sessionExpiration|authCode|includeAllIdentitiesincludeiRank|group|settings|extraFields|signIDs|newUser|actionAttributes|profileAttributes|bp_channel_url|signKeys",!1,void 0,{forceHttps:!0,clearSession:!0}),new n.ServerApi("socialize.shortenURL","URL"),new n.ServerApi("socialize.convertAction","userAction|[providerCapability=actions]UserAction|provider"),new n.ServerApi("socialize.getReactionsCount","barID|buttonIDs|reportLoad"),new n.ServerApi("socialize.incrementReactionsCount","barID|buttonID|count|actionAttributes|profileAttributes"),new n.ServerApi("socialize.deleteAccount",void 0,!0),new n.ServerApi("socialize.delUserSettings","group|settings",!0),new n.ServerApi("socialize.getContacts","enabledProviders|disabledProviders",!0),new n.ServerApi("socialize.getFriendsInfo","enabledProviders|disabledProviders|detailLevel|UIDs|siteUsersOnly|requiredCapabilities|signIDs",!0),new n.ServerApi("socialize.getRawData","provider|UID|fields|dataFormat|path",!0),new n.ServerApi("socialize.getSessionInfo","provider|paddingMode|encrypt|signIDs|encryptAll",!0),new n.ServerApi("socialize.getUserInfo","enabledProviders|disabledProviders|signIDs|includeiRank|includeAllIdentities|extraFields|group|settings|includeOpenidUID",!0),new n.ServerApi("socialize.getUserSettings","group|settings|regToken",!0,void 0,{forceHttps:!0},"regToken"),new n.ServerApi("socialize.checkin","enabledProviders|disabledProviders|placeID|comment|latitude|longitude|actionAttributes|profileAttributes",!0),new n.ServerApi("socialize.logout","signIDs|samlContext|sustainLogoutURLs",!0,{preprocessor:d,disableCache:!0},{requiresSession:p}),new n.ServerApi("socialize.notifyRegistration","siteUID|UIDTimestamp|UIDSig",!0),new n.ServerApi("socialize.publishUserAction","userAction|[providerCapability=actions]UserAction|enabledProviders|disabledProviders|target|shortURLs|userLocation|tags|actionAttributes|profileAttributes",!0),new n.ServerApi("socialize.removeConnection","provider|lastIdentityHandling|removeLoginID",!0),new n.ServerApi("socialize.setStatus","shortURLs|status|[providerCapability=status]Status|enabledProviders|disabledProviders|userLocation|actionAttributes|profileAttributes",!0),new n.ServerApi("socialize.setUID","siteUID|UIDTimestamp|UIDSig",!0),new n.ServerApi("socialize.setUserSettings","group|settings|regToken",!0,void 0,{forceHttps:!0},"regToken"),new n.ServerApi("socialize.unlinkAccounts",void 0,!0),new n.ServerApi("socialize.sendEmail","dontSendEmail|companyName|lang|emails|emailSubject|emailBody|linkBack|senderEmail|senderName|userMsg|shortURLs|userAction|[providerCapability=actions]UserAction|actionAttributes|profileAttributes|captchaTicket|lang",!1,void 0,{forceHttps:!0}),new n.ServerApi("socialize.facebookGraphOperation","graphPath|graphParams|authRequired|method|authType"),new n.ServerApi("socialize.getTopShares","age|tag|limit"),new n.ServerApi("socialize.notifySSOLogin","bp_channel_url"),new n.ServerApi("gm.getChallengeStatus","UID|includeChallenges|excludeChallenges|details|lang|actionAttributes|profileAttributes"),new n.ServerApi("gm.resetLevelStatus","challenges|actionAttributes|profileAttributes",!0),new n.ServerApi("gm.getTopUsers","challenge|totalCount|friendsCount|includeSelf|period|lang|actionAttributes|profileAttributes"),new n.ServerApi("gm.getChallengeConfig","UID|includeChallenges|excludeChallenges|lang|actionAttributes|profileAttributes|expandActions"),new n.ServerApi("gm.notifyAction","action|operation|challengeIDs|actionAttributes|profileAttributes",!0),new n.ServerApi("comments.updateComment","categoryID|streamID|commentID|commentText|commentTitle|ratings|mediaItems|taggedUsers"),new n.ServerApi("comments.postComment","categoryID|streamID|parentID|guestName|guestEmail|commentText|anonymous|mediaItems|privacy|feedID|userAction|[providerCapability=actions]UserAction|scope|enabledProviders|disabledProviders|shortURLs|commentTitle|ratings|tags|taggedUsers|streamTags|actionAttributes|profileAttributes"),new n.ServerApi("comments.getComments","categoryID|streamID|includeSettings|start|startTS|threadLimit|sort|threaded|threadDepth|includeStreamInfo|includeOpenidUID|includeUID|includeReplies|tags|dataFormat|markupType|includeUserOptions|includeUserComments|includeRatingsDims|includeUserHighlighting|pinnedCommentID|lang"),new n.ServerApi("comments.setStreamInfo","categoryID|streamID|streamTitle|streamURL|streamInfoSig|streamTags"),new n.ServerApi("comments.getTopStreams","categoryID|limit|maxStreamAge|includeLastComment|streamTag|minRatingsCount"),new n.ServerApi("comments.getTopRatedStreams","categoryID|limit|maxStreamAge|ratingClass|minRatingsCount|streamTag"),new n.ServerApi("comments.getStreamInfo","categoryID|streamID|streamIDs|includeLastComment|includeRatingsDims|includeRatingDetails"),new n.ServerApi("comments.flagComment","categoryID|streamID|commentID|actionAttributes|profileAttributes"),new n.ServerApi("comments.vote","categoryID|streamID|commentID|vote|actionAttributes|profileAttributes",!0),new n.ServerApi("comments.getUserVotes","categoryID|streamID",!0),new n.ServerApi("comments.getUserComments","categoryID|streamID|tag|senderUID|start|limit|sort|includeReplies|includeStreamInfo|includeUserHighlighting",!0),new n.ServerApi("comments.getFriendsComments","categoryID|streamID|start|limit|includeUID|sort|includeReplies|includeStreamInfo",!0),new n.ServerApi("comments.getThread","categoryID|streamID|commentID|start|includeUID|limit|threadDepth|sort"),new n.ServerApi("comments.deleteComment","categoryID|streamID|commentID",!0),new n.ServerApi("comments.getRelatedUsers","categoryID|streamID|parentCommentID|usernamePrefix|limit"),new n.ServerApi("comments.analyzeMediaItem","categoryID|urls"),new n.ServerApi("comments.subscribe","categoryID|streamID|email|lang"),new n.ServerApi("comments.unsubscribe","categoryID|streamID|unsubscribeToken"),new n.ServerApi("comments.setUserOptions","replyNotifications|notificationsEmail|notificationsLanguage",!0),new n.ServerApi("comments.getUserOptions","ServerApiKey",!0),new n.ServerApi("gcs.getUserData","type|fields",!0),new n.ServerApi("gcs.setUserData","data|type|updateBehavior",!0),new n.ServerApi("gcs.search","expTime|querySig|query"),new n.ServerApi("gcs.getSchema","schemaType"),new n.ServerApi("accounts.b2b.registerOrganization","organization|requester",!1,void 0,{forceHttps:!0,forcePost:!0}),new n.ServerApi("accounts.b2b.getOrganizationSchema","",!1,{preprocessor:g}),new n.ServerApi("accounts.login","loginID|password|sessionExpiration|targetEnv|regToken|include|actionAttributes|profileAttributes|includeUserInfo|includeDynamicSchema|bp_channel_url|captchaToken|captchaText|loginMode|signKeys|lang",!1,void 0,{preprocessor:u,clearSessionCondition:l,forceHttps:!0,forcePost:!0}),new n.ServerApi("accounts.linkAccounts","loginID|password|sessionExpiration|targetEnv|include|regToken|includeUserInfo|bp_channel_url|signKeys",!1,void 0,{forceHttps:!0,forcePost:!0}),new n.ServerApi("accounts.initRegistration","sdk|isLite",!1,void 0,{clearSession:!0}),new n.ServerApi("accounts.register","username|email|password|UID|regToken|siteUID|secretQuestion|secretAnswer|regSource|profile|preferences|displayedPreferences|data|captchaText|captchaToken|lang|hashedPassword|pwHashAlgorithm|skipVerification|finalizeRegistration|targetEnv|sessionExpiration|include|actionAttributes|profileAttributes|includeUserInfo|bp_channel_url|signKeys|subscriptions",!1,void 0,{forceHttps:!0,forcePost:!0}),new n.ServerApi("accounts.finalizeRegistration","regToken|targetEnv|include|includeUserInfo|bp_channel_url|allowAccountsLinking|signKeys|subscriptions"),new n.ServerApi("accounts.captchaImage","regToken"),new n.ServerApi("accounts.importProfilePhoto","regToken|URL|publish"),new n.ServerApi("accounts.setProfilePhoto","regToken|publish|photoBytes"),new n.ServerApi("accounts.resetPassword","lang|loginID|passwordResetToken|secretAnswer|securityFields|newPassword|email",!1,void 0,{forceHttps:!0,forcePost:!0}),new n.ServerApi("accounts.isAvailableLoginID","loginID"),new n.ServerApi("accounts.resendVerificationCode","regToken|email"),new n.ServerApi("accounts.getCaptcha",""),new n.ServerApi("accounts.getPolicies","sections"),new n.ServerApi("accounts.getSchema","sections|schemaType",!1,{preprocessor:g}),new n.ServerApi("accounts.verifyLogin","include|extraProfileFields|targetEnv",!0),new n.ServerApi("accounts.getAccountInfo","include|extraProfileFields|regToken",!0,{},{},"regToken"),new n.ServerApi("accounts.setAccountInfo","profile|preferences|displayedPreferences|data|regToken|oldPassword|password|newPassword|addLoginEmails|removeLoginEmails|username|secretQuestion|secretAnswer|requirePasswordChange|conflictHandling|tfaStatus|rba|subscriptions|preferences|lang",!0,void 0,{forceHttps:!0,forcePost:!0},"regToken"),new n.ServerApi("accounts.logout","signIDs|samlContext|sustainLogoutURLs",!0,{preprocessor:d,disableCache:!0},{requiresSession:p}),new n.ServerApi("accounts.search","expTime|querySig|query"),new n.ServerApi("accounts.getScreenSets","screenSetIDs|include|lang|screenSetVersion",!1,{preprocessor:g},{forceHttps:!0}),new n.ServerApi("accounts.getConflictingAccount","regToken|loginID"),new n.ServerApi("accounts.incrementCounters","counters",!0,{preprocessor:function(e,t){var i=e.actionCounterPath,n=e.counters;if(i&&n)for(var o=0;o<n.length;o++){var r=n[o];"object"!=typeof r||r.path||(r.path=i)}t()}}),new n.ServerApi("accounts.getCounters","counters",!0),new n.ServerApi("accounts.getJWT","fields|expiration",!0),new n.ServerApi("accounts.tfa.getProviders","regToken",!0,{},{},"regToken"),new n.ServerApi("accounts.tfa.initTFA","provider|mode|regToken",!1,{},{forceHttps:!0}),new n.ServerApi("accounts.tfa.finalizeTFA","gigyaAssertion|providerAssertion|tempDevice|regToken",!0,{},{},"regToken"),new n.ServerApi("accounts.tfa.deactivateProvider","provider",!0),new n.ServerApi("accounts.tfa.unregisterDevice","allDevices",!0),new n.ServerApi("accounts.tfa.backupcodes.get","gigyaAssertion",!0),new n.ServerApi("accounts.tfa.backupcodes.create","gigyaAssertion",!0),new n.ServerApi("accounts.tfa.backupcodes.verify","gigyaAssertion|code|regToken",!1),new n.ServerApi("accounts.tfa.phone.getRegisteredPhoneNumbers","gigyaAssertion",!1,{preprocessor:g},{forceHttps:!0}),new n.ServerApi("accounts.tfa.phone.removePhone","gigyaAssertion|phoneId",!1,{},{forceHttps:!0}),new n.ServerApi("accounts.tfa.phone.sendVerificationCode","gigyaAssertion|lang|phoneID|phone|method|regToken",!1,{},{forceHttps:!0}),new n.ServerApi("accounts.tfa.phone.completeVerification","gigyaAssertion|phvToken|code|regToken",!1,{},{forceHttps:!0}),new n.ServerApi("accounts.tfa.email.getEmails","gigyaAssertion",!1,{preprocessor:g},{forceHttps:!0}),new n.ServerApi("accounts.tfa.email.sendVerificationCode","emailID|gigyaAssertion|lang|regToken",!1,{},{forceHttps:!0}),new n.ServerApi("accounts.tfa.email.completeVerification","gigyaAssertion|phvToken|code|regToken",!1,{},{forceHttps:!0}),new n.ServerApi("accounts.tfa.totp.register","gigyaAssertion",!1,{},{forceHttps:!0}),new n.ServerApi("accounts.tfa.totp.verify","gigyaAssertion|sctToken|code|regToken",!1,{},{forceHttps:!0}),new n.ServerApi("accounts.b2b.delegatedAdminLogin","orgId",!0,{},{forceHttps:!0}),new n.ServerApi("ds.store","type|data|oid|updateBehavior"),new n.ServerApi("ds.get","type|data|oid|fields"),new n.ServerApi("ds.search","expTime|querySig|query"),new n.ServerApi("ds.getSchema",""),new n.ServerApi("ds.delete","type|oid|fields"),new n.ServerApi("ids.getAccountInfo","include|extraProfileFields",!0),new n.ServerApi("ids.setAccountInfo","profile|preferences|data|oldPassword|password|newPassword|addLoginEmails|removeLoginEmails|username|secretQuestion|secretAnswer|requirePasswordChange|lang",!1,void 0,{forceHttps:!0,forcePost:!0}),new n.ServerApi("ids.search","expTime|querySig|query"),new n.ServerApi("gscounters.sendReport","reports",!1,void 0,{forceGigyaDomain:!0})],c.createAlias("gigya.socialize.showCommentsUI",window.gigya.comments.showCommentsUI),c.createAlias("gigya.socialize.showRatingUI",window.gigya.comments.showRatingUI),c.createAlias("gigya.services.socialize",window.gigya.socialize),c.createAlias("gigya.services.gcs",window.gigya.gcs),c.createAlias("gigya.services.gm",window.gigya.gm),c.createAlias("gigya.services.comments",window.gigya.comments),c.createAlias("gigya.services.accounts",window.gigya.accounts),c.createAlias("gigya.socialize.connect",window.gigya.socialize.addConnection),c.createAlias("gigya.socialize.disconnect",window.gigya.socialize.removeConnection),c.createAlias("gigya.socialize.linkAccounts",window.gigya.socialize.setUID),c.createAlias("gigya.socialize.showConnectUI",window.gigya.socialize.showAddConnectionsUI),c.createAlias("gigya.showDebugUI",window.gigya.socialize.showDebugUI)},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<arguments.length;t++)e[t]=arguments[t];if(e&&e.length)return e.sort(function(e,t){return i(t)-i(e)})[0]},t.getMillis=i},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n,o=i(4),r=i(23);try{n=Boolean(window.sessionStorage)}catch(e){n=!1}function a(e,t){if(n){var i;try{i=o.deserialize(window.sessionStorage.getItem("gigyaCache")),null==t&&i[e]?delete i[e]:i[e]={response:t,time:(new Date).getTime()},window.sessionStorage.setItem("gigyaCache",o.serialize(i))}catch(e){}r.release("cache","cache_"+e)}}function s(e){a(e,null)}t.set=a,t.get=function e(t,i,a){if(n)try{if(!r.isActive("cache_"+t)){var c=window.sessionStorage.getItem("gigyaCache"),l=o.deserialize(c)[t];if(l){if(i&&i+l.time>(new Date).getTime())return void a(l.response);s(t),l=null}if(!l)return r.hold("cache","cache_"+t),void a(null)}if(r.isActive("cache_"+t))return void r.waitFor("cache_"+t,e,arguments)}catch(e){a(null)}else"function"==typeof a&&a(null)},t.remove=s},,,,,,,,,,,,,,,,,,,,,,,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.fill=function e(t,i){"function"==typeof t&&(t=t(i)),t instanceof Array&&(t=t.join(""));var n=/(\$)(!?)([a-z_][a-z_.\d]*)([(][^()]*[)])?|(\$)(!?)\{([a-z_][a-z_.\d]*)([(][^()]*[)])?\}/gi;n.lastIndex=0;for(var o,r=t,a=n.exec(r);null!=a;){var s="!"==a[2+(o="$"==a[1]?0:4)],c=a[3+o],l=a[4+o];null==l&&(l=""),"."==c.substring(0,1)&&(c=c.substring(1)),"DBG"==c.substring(0,3)&&(c=c.substring(3));for(var u="",g=c+l;g!=u;){u=g;var d=n.lastIndex;g=e(u,i),n.lastIndex=d}var p="",f=0;if(null!=i[c.split(".")[0]])try{p=new Function("o","p",'return eval("o." + p)')(i,g)}catch(e){}else p="$"+(s?"!":"")+g,f=1;r=s?r.replace(a[0],""):r.substr(0,a.index)+p+r.substr(a.index+a[0].length),n.lastIndex=a.index+f,a=n.exec(r)}return r}},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(11),o=i(5);t._aliases={};var r=function(){function e(e,i,n,o,r,a,s){if(this.ID=e,this.displayName=i,this.width=n,this.height=o,this.explicitOnly=a,this.aliases=s,this.arDefaultCapabilities=r.split(","),this.name=i.toLowerCase().split(" ").join("").split("!").join("").split(".").join("").split("+").join("plus"),s){t._aliases||(t._aliases={});for(var c=s.split("|"),l=0;l<c.length;l++)t._aliases[c[l]]=this.name}switch(this.name){case"messenger":this.displayName="Microsoft";break;case"customopenid":this.displayName="OpenID";break;case"paypaloauth":this.displayName="PayPal"}}return e.prototype.toString=function(){return this.name},e}();function a(e,i){void 0===i&&(i=t.arProviders);for(var n=0;n<i.length;n++)if(i[n].name.toLowerCase()===e.toLowerCase())return i[n]}function s(e){if(null!=e){for(var i=e.split(","),n=0;n<i.length;n++){var o=i[n].replace(/^\s+|\s+$/g,"");t._aliases[o]&&(i[n]=t._aliases[o])}return i.join(",")}}function c(e,i){void 0===i&&(i=t.arProviders);for(var n=0;n<i.length;n++)if(i[n].ID===e)return i[n]}function l(e,i,n){void 0===i&&(i=""),void 0===n&&(n=t.arProviders);var o=(i=i.toLowerCase()).split(" ").join("").split(".").join("").toLowerCase().split(",");o=p(o,n);for(var r=0;r<o.length;r++)for(var a=0;a<e.length;a++){var s=e[a],c=s.name||s.toString();c&&(c=c.toLowerCase()),c===o[r]&&e.splice(a,1)}return e}function u(e,t){null==t&&(t=[]);for(var i=[],n=0;n<e.length;n++){for(var o=e[n],r=!0,a=0;a<t.length;a++){for(var s=!1,c=0;c<o.arDefaultCapabilities.length;c++)if(o.arDefaultCapabilities[c].toLowerCase()==t[a].toLowerCase()){s=!0;break}if(!s){r=!1;break}}r&&i.push(o)}return i}function g(){return t.arProviders.concat()}function d(e,i){void 0===i&&(i=t.arProviders);var o=(""+(e=s(e=(""+e).split(" ").join("").split(".").join("").toLowerCase()))).split(",");o=p(o,i);for(var r=[],c=0;c<o.length;c++){var l=a(o[c],i);null!=l&&-1==n.indexOf(r,l)&&r.push(l)}return r}function p(e,i){i||(i=t.arProviders);for(var n=[],o=0;o<e.length;o++)if("*"==e[o])for(var r=0;r<i.length;r++){for(var a=!1,s=0;s<e.length;s++)e[s].toLowerCase()===i[r].name.toLowerCase()&&(a=!0);a||i[r].explicitOnly||n.push(i[r].name)}else n.push(e[o]);return n}t.Provider=r,t.arProviders=[new r(64,"Facebook",650,400,"login,friends,places,status,actions,photos"),new r(9012,"Twitter",800,440,"login,friends,notifications,actions,status,places,checkins"),new r(72,"Google+",560,600,"login,contacts",!1,"google|googleplus"),new r(9042,"LinkedIn",865,450,"login,friends,status,actions,notifications,contacts"),new r(9058,"Amazon",785,510,"login"),new r(9803,"Yahoo",500,567,"login,friends,contacts,notifications"),new r(1047,"Messenger",380,540,"login, friends",!1,"messenger|microsoft"),new r(9832,"Instagram",440,420,"login,photos"),new r(9222,"Odnoklassniki",888,425,"login"),new r(9007,"FourSquare",1e3,650,"login,friends,places,checkins"),new r(8191,"Renren",450,350,"login,friends,status,actions"),new r(8203,"QQ",570,460,"login,actions"),new r(9821,"Sina",640,380,"login,status,actions"),new r(4228,"Mixi",1e3,720,"login,friends,actions,photos",!0),new r(9830,"Yahoo! JAPAN",980,700,"login",!0),new r(8205,"Spiceworks",640,380,"login",!0),new r(9041,"VKontakte",610,510,"login,friends,photos,status,actions"),new r(9800,"AOL",530,720,"login"),new r(4096,"WordPress",700,540,"login"),new r(256,"Blogger",760,400,"login"),new r(4218,"Netlog",730,590,"login",!0),new r(4224,"Orange France",730,590,"login",!0),new r(5002,"Livedoor",970,700,"login",!0),new r(5004,"Fox News",730,590,"login",!0),new r(1051,"PayPal",400,550,"login",!0),new r(9219,"Xing",785,510,"login,friends",!0),new r(8206,"WeChat",730,590,"login",!1,"wechat|weixin"),new r(4121,"Custom OpenID",730,590,"login",!0),new r(4122,"Custom SAML",730,590,"login",!0),new r(10001,"OpenID Connect",730,590,"login",!0),new r(6002,"Site",730,590,"",!0),new r(1052,"PayPalOAuth",730,590,"login",!0),new r(8207,"Line",730,590,"login"),new r(20001,"Kakao",500,600,"login",!0),new r(20002,"Naver",780,555,"login",!0),new r(20003,"DocCheck",874,844,"login",!0)],t.getProviderByName=a,t.replaceProviderAliases=s,t.getProviderById=c,t.hideProvidersByName=l,t.getProvidersForRequiredCapabilities=u,t.getAllProviders=g,t.getProvidersByName=d,t.replaceWildcard=p,o.createAlias("gigya.socialize.getAllProviders",g),o.createAlias("gigya.socialize.replaceProviderAliases",s),o.createAlias("gigya.socialize.getProvidersByName",d),o.createAlias("gigya.socialize._getProviderByName",a),o.createAlias("gigya.socialize.hideProvidersByName",l),o.createAlias("gigya.socialize._getProviderByID",c),o.createAlias("gigya.socialize.getProvidersForRequiredCapabilities",u)},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(53),r=i(97),a=i(5),s=i(3),c=i(33),l=i(98),u=i(11),g=i(23),d=i(26),p=i(52),f=i(8),h=i(12),m=i(40),v=i(95),w=i(6);t.__pluginsCoreLoaded=!1;var y={showReactionsBarUI:["barID"],showCommentsUI:["categoryID","streamID"]},b=function(e){function i(t,n,o,r,a,s){void 0===o&&(o={}),void 0===r&&(r={}),void 0===a&&(a=""),void 0===s&&(s={});var c=e.call(this,i.getApiName(n,t,s),s)||this;return c.methodName=t,c.jsName=n,c.settings=s,s.defaultParams=o||{},s.defaultPopupParams=r||{},s.requiredParams=a||"",c}return n.__extends(i,e),i.getApiName=function(e,t,i){return void 0===i&&(i={}),i.apiName||e.split(".")[0]+"."+t},i.versionSelector=function(e,t,i,n,o){void 0===o&&(o="version");var c=new r.VersionSelector(e,n,i);return a.createAlias("gigya."+t+"."+e,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=e[0],n=e[1];n||(n=i,i=null),n||(n={},e.push(n));var r=s.merge([{},i,n]);c.callVersion(""+r[o],n,e)}),c},i.createApi=function(e,t,n,o,r,a){void 0===r&&(r={}),r.useBasePlugin=!0;var s=new i(e,o,null,null,null,r);return s.namespace=t,s.className=n,s.instanceMethods=a||[],s.addInstanceMethodsAliases(),s},i.prototype.addInstanceMethodsAliases=function(){for(var e=0;e<this.instanceMethods.length;e++)this.createInstanceMethodAlias(this.instanceMethods[e])},i.prototype.createInstanceMethodAlias=function(e){var t=this;a.createAlias("gigya."+this.namespace+"."+e,function(i){if(t.injectionInfo){var n=t.getPublicMethod(e),o=l.getPluginInstance(i,t.injectionInfo);if(o){var r=[];u.forEach(n.argNames,function(e){e&&void 0!==i[e]&&r.push(i[e])}),o[n.instanceMethod].apply(o,r)}else c.addLog("couldn't find instance",t,!1)}else c.addLog("invalid injection info",t,!1)})},i.prototype.getPublicMethod=function(e){var t;if(this.injectionInfo.publicMethods&&(t=this.injectionInfo.publicMethods[e]),!t)throw new Error("public method "+e+" is not configured for "+this.injectionInfo.name);return t},i.prototype.preprocessRequest=function(t,i){var n=this;e.prototype.preprocessRequest.call(this,t,function(){t.source||n.setSourceData(t),i&&i()})},i.prototype.run=function(e,t){var i=this;!this.settings.waitForAPIQueue||e.ignoreApiQueue?this.startUI(e,t):g.queueForExecution("API",function(){i.startUI(e,t)})},i.prototype.startUI=function(e,t){var i=this;e=s.clone(e),this.prepareParameters(e),this.preprocessRequest(e,function(){i.settings.useBasePlugin?(window.gigya.logger.info("loading modern plugin"),i.loadPluginJS(e,function(n){g.queueForExecution("UI",function(){n&&i.className&&(i.pluginType=i.getPluginType(),i.injectionInfo=i.pluginType.injectionInfo(i));var o=function(){i.startPlugin(e,t)};0==e.waitForDebug?o():g.queueForExecution("debug",o)})})):(window.gigya.logger.info("loading legacy plugin"),i.legacyStartUI(e,t))})},i.prototype.startPlugin=function(e,t){var i=this;d.dispatch({eventName:"beforePluginRequest",methodName:this.methodName,params:e,explicitParams:t},e);var n=e.originalMethodName||this.methodName;if(c.logCall(n,e),p.reportLoad(n,e),this.pluginType){if(e){var o=l.getPluginInstance(e,this.injectionInfo);o&&o.dispose&&!e._allowMultipleInstances&&!e.newModal&&o.dispose()}var r=new this.pluginType(e,t,this.injectionInfo);if(l.setPluginInstance(e,this.injectionInfo,r),r.onDisposedEvent().add(function(){return l.removePluginInstance(e,i.injectionInfo)}),window.gigya.logger.info("starting plugin "+this.injectionInfo.name+" with params",r.params),r.start(),r.containerID){var s=document.getElementById(r.containerID);s&&(s.gigyaPluginInstance=r)}e.getInstance&&e.getInstance(r)}else a.callFunction("gigya."+this.jsName+"."+this.methodName,[e,e,e])},i.prototype.loadPluginJS=function(e,i){if(this.wasPluginJSLoaded(e))window.gigya.logger.info("plugin was already loaded"),i&&i(!1);else{var n,o=!1,r=f.getCdnResource("/js/"),a="gigya.services."+this.jsName,s=r+a+".min.js"+(e.lang?"?lang="+e.lang:""),c=r+"gigya.services.plugins.base.min.js?services="+a+(e.lang?"&lang="+e.lang:"");t.__pluginsCoreLoaded?n=s:(window.gigya.logger.debug("locking queue to fetch basePlugin"),n=c,t.__pluginsCoreLoaded=!0,o=!0,g.hold("pluginsJS","UI")),window.gigya.logger.info("loading "+a),h.load(n,null,function(){o&&g.release("pluginsJS","UI"),i&&i(!0)},!0,void 0,[s,c])}},i.prototype.wasPluginJSLoaded=function(e){this.jsName,this.methodName;var t="gigya.services."+this.jsName+".js";try{var i=this.getPluginType(),n=window.gigya.i18n[t][e.lang]}catch(e){return!1}return void 0!==i&&void 0!==n},i.prototype.getPluginType=function(){for(var e=s.expressionHelper(window.gigya),t=0,i=["_.plugins."+this.className,this.jsName+"."+this.methodName];t<i.length;t++){var n=i[t],o=e.getField(n);if(o)return o}},i.prototype.setSourceData=function(e){if("socialize.showSimpleShareUI"==this.methodName?e.source="socialize.showShareUI":e.source=e.originalMethodName||this.methodName,!e.sourceData&&y[this.methodName]){for(var t,i={},n=0;n<y[this.methodName].length;n++){var o=y[this.methodName][n];null!=e[o]&&(t=!0,i[o]=e[o])}t&&(e.sourceData=i)}e.pluginsStack||(e.pluginsStack=[]),e.pluginsStack.push({source:this.methodName}),e.lastSource=this.methodName},i.prototype.validateRequiredParams=function(e){for(var t=this.settings.requiredParams.split("|"),i=0;i<t.length;i++){var n=t[i];if(""!=n&&(null==e[n]||""==e[n]))return m.dispatchInvalidParamError(e,n),!1}return!0},i.prototype.setDefaultParams=function(e){var t=!e.containerID||e.isPopup;for(var i in this.settings.defaultParams)null==e[i]&&(t&&this.settings.defaultPopupParams[i]?e[i]=this.settings.defaultPopupParams[i]:e[i]=this.settings.defaultParams[i]);if(t)for(var i in this.settings.defaultPopupParams)e[i]||(e[i]=this.settings.defaultParams[i])},i.prototype.prepareParameters=function(e){for(var t in e)-1!=t.toLowerCase().indexOf("provider")&&"string"==typeof e[t]&&(e[t]=v.replaceProviderAliases(e[t]));e.lang||(e.lang=window.gigya.thisScript.lang.langCode),e.source?e.isPopup=!1:this.setSourceData(e)},i.prototype.legacyStartUI=function(e,t){var i=this,n=e.containerID;if(this.settings.ignoreContainerId)e.containerID="",n="";else if(null==e.containerID&&!this.settings.allowPopup||e.containerID&&!document.getElementById(e.containerID))return void m.dispatchInvalidParamError(e,"containerID");var o=this.settings.allowPopup&&(!n||e.isPopup);o&&this.settings.useNewModal&&(e.useNewModal=!0),this.setDefaultParams(e),this.settings.allowPopup||o||w.clearByID(n),this.validateRequiredParams(e)&&this.loadPluginJS(e,function(){var n=function(){i.prepareContainer(e,o,function(){i.startPlugin(e,t)})};g.queueForExecution("UI",function(){0==e.waitForDebug?n():g.queueForExecution("debug",n)})})},i.prototype.prepareContainer=function(e,t,i){var n=this;if(document.body){var o,r=e.containerID;if(t&&(r=w.getCenteredDivID(this.methodName),e.newModal&&(r+=(new Date).getTime()),e.containerID=r,e.isPopup=!0,document.getElementById(r)||((o=w.createTopLevelDiv(r)).style.position="absolute")),!(o=o||document.getElementById(r)))return m.dispatchInvalidParamError(e,"containerID"),void i();var a=o.Reqs?o.Reqs:o.Reqs=[],s=a.length+"@0@"+r;e.rid=s;a[a.length]={rid:s,container:o,method:this.methodName,context:e.context,c:e,p:e,i:e,operation:this.methodName,isHTML:!0};if(o&&o.style){o.style.display="",o.style.visibility="";var c=document.getElementById("gigya_ifr_"+r);c&&(c.style.display="",c.style.visibility="");null!=c&&(w.setSize(c,e.width,e.height,t),c.style.visibility="visible"),w.setSize(o,e.width,e.height,t)}var l=this.methodName.split(".").pop();o.setAttribute&&o.setAttribute("gigid",(e.source&&e.source!=l?e.source+"_":"")+l),i()}else window.setTimeout(function(){n.prepareContainer(e,t,i)},200)},i}(o.BaseApi);t.UiApi=b},function(module,exports,__webpack_require__){Object.defineProperty(exports,"__esModule",{value:!0});var arrayUtils=__webpack_require__(11),VersionSelector=function(){function VersionSelector(e,t,i){if(this.methodName=e,this._versions=t,!this._versions||this._versions.length<1)throw new Error(this.methodName+": required at least one valid version");if(i){if(this._defaultVersionIndex=this.findVersionIndexOrDefault(i),-1==this._defaultVersionIndex)throw new Error(this.methodName+": default version is not defined as a version")}else this._defaultVersionIndex=0}return VersionSelector.prototype.callVersion=function(e,t,i){void 0===t&&(t={}),void 0===i&&(i=[t]);var n=this.findVersionIndexOrDefault(e);if(-1==n)throw Error("gigya plugin version doesn't exist");var o=this.findSupportedVersion(n);if(!o)throw new Error(e+": could not find supported version for this browser");this.invokeVersionMethod(o,t,i)},VersionSelector.prototype.findSupportedVersion=function(e){for(var t=this._versions.length,i=0;i<t;++i){var n=this._versions[(e-i+t)%t];if(!n.isSupported||n.isSupported({directCall:0==i}))return n}},VersionSelector.prototype.findVersionIndexOrDefault=function(e){var t=-1;return e&&(t=arrayUtils.firstIndex(this._versions,function(t){return t.versionName==e})),-1==t&&(t=void 0!==this._defaultVersionIndex?this._defaultVersionIndex:-1),t},VersionSelector.prototype.invokeVersionMethod=function(version,params,args){var versionMethod;switch(void 0===params&&(params={}),void 0===args&&(args=[params]),typeof version.method){case"function":versionMethod=version.method;break;case"string":versionMethod=eval(version.method),params.selectedMethodName=version.method;break;default:throw Error(this.methodName+" "+version.versionName+": unsupported gigya-version method")}for(var field in version.additionalParams)params[field]=version.additionalParams[field];params.originalMethodName=this.methodName,versionMethod.apply(this,args)},VersionSelector}();exports.VersionSelector=VersionSelector},function(e,t){function i(e,t){return e.instanceID?e.instanceID:e.isPopup?"gigya-modal-plugin-container-"+t.methodName:e.containerID?e.containerID:t.name}Object.defineProperty(t,"__esModule",{value:!0}),t.instances={},t.getPluginInstance=function(e,n){var o=i(e,n);return t.instances[o]},t.setPluginInstance=function(e,n,o,r){void 0===r&&(r=!1);var a=i(e,n);if(!r)for(var s=a,c=2;t.instances[a];c++)a=s+c.toString();e.instanceID=a,t.instances[a]=o},t.removePluginInstance=function(e,n){delete t.instances[i(e,n)],delete e.instanceID}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){void 0===e&&(e=[]),this._handlers=e}return e.prototype.add=function(e){this._handlers.push(e)},e.prototype.remove=function(e){var t=this._handlers.indexOf(e);t>-1&&this._handlers.splice(t,1)},e}();t.EventWrapper=i},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(53),r=i(101),a=i(23),s=function(e){function t(t,i,n,o,r,a){void 0===o&&(o={}),void 0===r&&(r={});var s=e.call(this,t,o)||this;return s.schema=i,s.requiresSession=n,s.settings=o,s.adapterSettings=r,s.altSessionParams=a,void 0===r.requiresSession&&(r.requiresSession=function(){return n}),s}return n.__extends(t,e),t.prototype.run=function(e,t){var i=this,n=function(){new r.ServerApiRequest(i,e).start()};e.ignoreApiQueue?n():a.queueForExecution("API",function(){n()})},t}(o.BaseApi);t.ServerApi=s},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n,o,r=i(0),a=i(3),s=i(26),c=i(69),l=i(33),u=i(10),g=i(54),d=i(53),p=i(4),f=i(22),h=i(30),m=i(7),v=i(12),w=i(55);function y(e){return{status:"OK",statusMessage:"",errorCode:0,statusCode:0,errorMessage:"",errorDetails:"",statusReason:"",originalResponse:e}}s.add("onFBCRefreshed",function(){n=!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={}));var b=[{methodName:"accounts.verifyLogin",restriction:"suppressLoginEvent"}],_=function(){function e(e,t){this.api=e,this.params=a.merge([a.clone(t),e.settings.defaultParams]),this.originalParams=a.clone(t),this.callback=t.callback}return e.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,i,n;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 i=o.sent(),[3,4];case 3:i=!1,o.label=4;case 4:return e=i,[4,this.sendRequest(t)];case 5:n=o.sent(),e&&403005!==n.errorCode&&this.dispatchAccountsLoginEvent(n),o.label=6;case 6:return[2]}})})})},e.prototype.sendRequest=function(e){var t=this,i=a.merge([this.api.adapterSettings,{cacheTimeout:this.params.cacheTimeout,forceGigyaDomain:!e&&this.api.adapterSettings.forceGigyaDomain}]);return new gigya.Promise(function(n){t.beforeRequest(e,function(o){o?t.afterServerApiResponse(o,e,n):(s.dispatch({eventName:"beforeRequest",methodName:t.api.methodName,rawParams:t.originalParams,params:t.params},t.originalParams),t.api.settings.oauth?window.gigya._.apiAdapter.sendOauthRequest(t.api.methodName,t.params,function(i){t.afterServerApiResponse(i,e,n)},i):window.gigya._.apiAdapter.sendRequest(t.api.methodName,t.params,function(i){t.afterServerApiResponse(i,e,n)},i))})})},e.prototype.beforeRequest=function(e,t){var i=this;c.logoutMethods[this.api.methodName]&&(!e&&!this.params.regToken||window.gigya.partnerSettings.ssoLogoutUrl&&document.location.href==window.gigya.partnerSettings.ssoLogoutUrl)&&t(y(null)),this.handleDeprecatedParams(),this.handleCollections(),this.handleConnectWithoutLoginBehavior(e);var n=this.params[this.params.provider+"ExtraPermissions"];this.params.extraPermissions=n||this.params.permissions,this._initialMethod=this.params.initialMethod,this.api.preprocessRequest(this.params,function(){i.setOverridableParams(function(){i.setNonOverridableParams(e,function(){i.filterParams(i.params),l.logCall(i.api.methodName,i.originalParams,i.originalParams.lastSource),t()})})})},e.prototype.setOverridableParams=function(e){a.merge([{},this.params]),e()},e.prototype.doesHaveAltSessionParam=function(){if(this.api.altSessionParams){for(var e=this.api.altSessionParams.split("|"),t=0;t<e.length;t++)if(this.params[e[t]])return!0;return!1}},e.prototype.setNonOverridableParams=function(e,t){if(null!=this.params.APIKey){var i=u.get("gltexp_"+this.params.APIKey);null!=i&&(this.params.loginTokenExp=i)}var o=u.get("_gigRefUid_"+this.params.APIKey);if(o&&(e||c.loginMethods[this.api.methodName])&&(this.params.refUID=o),window.gigya.providersConfig.facebook&&!n){var r=g.getParams();for(var a in r)this.params[a]=r[a];n=!0}0===this.api.methodName.indexOf("accounts.")&&(s._activeNamespaces.socialize&&null==this.params.includeUserInfo&&(this.params.includeUserInfo=!0),this.params.include=this.params.include?this.params.include+",":"profile,data"),"accounts.getSchema"===this.api.methodName&&(this.params.includeDynamicSchema="clientOnly"),this.params.targetEnv="jssdk",t()},e.prototype.handleDeprecatedParams=function(){this.params.pendingRegistration?this.params.pending_registration=this.params.pendingRegistration:this.params.newUsersPendingRegistration&&(this.params.pending_registration=this.params.newUsersPendingRegistration),this.params.alwaysForceAuthentication&&(this.params.forceAuthentication=!0),this.params.timestamp&&(this.params.UIDTimestamp=this.params.timestamp,delete this.params.timestamp),this.params.signature&&0===this.api.methodName.indexOf("socialize.")&&(this.params.UIDSig=this.params.signature,delete this.params.signature),this.params.nonce&&(this.params.UIDNonce=this.params.nonce,delete this.params.nonce),this.params.format&&!this.params.dataFormat&&(this.params.dataFormat=this.params.format,delete this.params.format)},e.prototype.handleCollections=function(){if(this.params.recipients&&(this.params.recipients=this.extractListOfGIGUIDs(this.params.recipients)),this.params.friends){var e=this.extractListOfGIGUIDs(this.params.friends);this.params.UIDs.length>0&&(this.params.UIDs+=","),this.params.UIDs+=e}},e.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 i=[];return e.each(function(e,n){var o=t.extractListOfGIGUIDs(e);null!=o&&""!=o&&i.push(o)}),i.join(",")}}},e.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=d.getApi("socialize.login"),"alwayslogin"!==t&&(this.params.temporary_account=!0))}},e.prototype.filterParams=function(e){this.params=a.extractProperties(e,{},this.getFullSchema())},e.prototype.getFullSchema=function(){if(null==this.api.schema)return"";for(var e=(this.api.schema+"|"+c.defaultApiSchema).split("|"),t=0;t<e.length;t++){var i=e[t];if(-1!==i.toLowerCase().indexOf("[providercapability=")){for(var n=i.toLowerCase().split("=")[1].split("]")[0],o=i.split("]")[1],r=window.gigya.socialize.getProvidersForRequiredCapabilities(window.gigya.socialize.getProvidersByName("*"),[n]),a=[],s=0;s<r.length;s++)a.push(r[s].name+o);e[t]=a.join("|")}}return e.join("|")},e.prototype.preprocessServerResponse=function(e){e.userInfo&&0!==this.api.methodName.indexOf("accounts.")&&("string"==typeof e.userInfo&&(e.userInfo=p.parse(e.userInfo,void 0)),e.userInfo&&((e=a.merge([e.userInfo,e])).errorCode=e.userInfo.errorCode,delete e.userInfo)),e.accountInfo&&"string"==typeof e.accountInfo&&(e.accountInfo=p.parse(e.accountInfo,void 0),e.accountInfo&&delete(e=a.merge([e.accountInfo,e])).accountInfo);try{e.settings&&"string"==typeof e.settings&&(e.settings=p.parse(e.settings))}catch(e){}return e},e.prototype.getExpiredSessionResponse=function(e){switch(this.api.methodName){case"socialize.setUserSettings":this.originalParams.disableLocalSettings||(f.setGigyaSettings(this.params.group,this.params.settings),e=y(e));break;case"socialize.delUserSettings":this.originalParams.disableLocalSettings||(f.delGigyaSettings(this.params.group),e=y(e));break;case"socialize.getUserSettings":if(!this.originalParams.disableLocalSettings){var t=f.getGigyaSettings(this.params.group);(e=y(e)).settings=t}break;case"socialize.getUserInfo":e.status="OK",e.statusMessage="",e.errorCode=0,e.statusCode=0,e.errorMessage="",e.errorDetails="",e.statusReason="";break;case"accounts.logout":case"socialize.logout":e=y(e)}return e},e.prototype.afterServerApiResponse=function(e,t,i){var n=this;isNaN(Number(window.gigya.thisScript.globalConf.verifyLoginInterval))||"accounts.verifyLogin"!==this.api.methodName||0===e.errorCode||window.gigya._.apiAdapter.clearSession({APIKey:window.gigya.thisScript.APIKey}),f.checkCompleteRegistration(e,this.originalParams,this.api.methodName,function(o,r,a){e=o,403005==(e=n.preprocessServerResponse(e)).errorCode&&(e=n.getExpiredSessionResponse(e)),0==e.errorCode&&(t||c.loginMethods[n.api.methodName])&&u.remove("_gigRefUid_"+n.originalParams.APIKey),n.handleMethodResponse(e,function(o){e=o,n.addDefaultResponseProperties(e),f.handleSpecialFields(e),n.logoutFromProvidersIfNeeded(e,function(o){if(o)n.sendRequest(t).then(i);else{if(r||n.generateEventsFromResponse(e,t),a)return window.gigya.logger.info("retrying request"),void n.sendRequest(t).then(i);if(s.dispatch({eventName:"afterResponse",methodName:n.api.methodName,filteredParams:n.params,response:e},n.originalParams),"function"==typeof n.callback){l.addLog("Calling callback for "+n.api.methodName+" with this response object",e);try{n.callback(e)}catch(e){console.error(e)}}n.api.settings.postprocessor&&n.api.settings.postprocessor(n.originalParams,e),i&&i(e)}})})})},e.prototype.addDefaultResponseProperties=function(e){delete e.statusCode,delete e.statusReason,e.errorCode=e.errorCode||0,e.status=e.status||(0==e.errorCode?"OK":"FAIL"),e.errorMessage=e.errorMessage||"",e.statusMessage=e.statusMessage||e.errorMessage,e.requestParams=this.originalParams,e.requestParams.password&&delete e.requestParams.password,e.context=this.originalParams.context;var t=this.api.methodName.split(".")[0];e.operation="socialize"==t?this.api.methodName.split(".")[1]:"/"+this.api.methodName},e.prototype.handleMethodResponse=function(e,t){if(0==e.errorCode)switch(this.api.methodName){case"accounts.socialLogin":case"socialize.login":e.newUser="true"==String(e.x_newUser),delete e.x_newUser;case"socialize.notifyLogin":case"socialize.addConnection":case"accounts.linkAccounts":case"accounts.finalizeRegistration":case"accounts.login":case"accounts.register":case"socialize.getUserInfo":if(delete e.login_token,delete e.expires_in,delete e.id,e.code&&(e.authCode=e.code,delete e.code),!(e.authCode||"socialize.notifyLogin"==this.api.methodName&&this.params.authCode)){var i=e;if(e.userInfo&&(i=e.userInfo,delete e.userInfo),-1==this.api.methodName.indexOf("accounts.")?(e={user:i},a.extractProperties(i,e,"status|statusMessage|callId|errorCode|errorMessage|errorDetails|settings|context|UIDSig|timestamp|UIDSignature|signatureTimestamp|UID|profile|data|newUser|signKeysUIDSignature"),e.user.hasOwnProperty("UIDSig")&&(e.signature=e.user.UIDSig),i.profile&&delete i.profile,i.data&&delete i.data,delete i.status,delete i.statusMessage,delete i.callId,delete i.errorCode,delete i.errorMessage,delete i.errorDetails,delete i.settings,delete i.context):e!=i&&(e.user=i),""==i.age||isNaN(parseInt(i.age))||(i.age=parseInt(i.age)),i.suppressEvents&&(e.suppressEvents=!0),"string"==typeof i.capabilities){var n=i.capabilities;n||(n=""),"object"!=typeof i.capabilities&&(i.capabilities={}),n=n.toLowerCase(),i.capabilities={actions:n.indexOf("actions")>-1,friends:n.indexOf("friends")>-1,login:n.indexOf("login")>-1,status:n.indexOf("status")>-1,notifications:n.indexOf("notifications")>-1,contacts:n.indexOf("contacts")>-1,photos:n.indexOf("photos")>-1}}if(f.convertIdentitiesArrayToObject(i),"string"==typeof i.providers&&(i.providers=i.providers.split(",")),this.params.group&&!e.settings){var o=f.getGigyaSettings(this.params.group);e.settings=o}}break;case"socialize.getAvailableProviders":for(var r={},s=0;s<e.availableProviders.length;s++)r[e.availableProviders[s].name]=e.availableProviders[s];e.availableProviders=r}"socialize.removeConnection"===this.api.methodName&&0==e.errorCode?window.gigya.socialize.getUserInfo(this.originalParams,{callback:function(e){t(e)}}):t(e)},e.prototype.logoutFromProvidersIfNeeded=function(e,t){var i=e.errorCode;if(c.logoutMethods[this.api.methodName]&&0==i){e.logoutActiveSession&&window.gigya._.apiAdapter.clearSession(this.params.APIKey);var n,r=new Array,a=5e3,s=0;if(e.connectedProviders?n=e.connectedProviders.toLowerCase():e.provider&&(n=e.provider.toLowerCase()),n&&!h.isExplicitFalse(this.originalParams.forceProvidersLogout))for(var l=n.split(","),u=0;u<l.length;++u){var g=l[u],d=o[g],p=null,f=5e3;0===g.indexOf("saml-")&&(d=o.samlProvider,p=g.substring("saml-".length),f=!1,a=1e4,s=5e3),r.push({type:d,data:p,removeAfter:f})}if(e.samlContext&&e.connectedSamlSessions){var m=e.samlContext,v=e.connectedSamlSessions.split(",");for(u=0;u<v.length;++u)r.push({type:o.samlSession,data:{samlContext:m,samlSession:v[u]},removeAfter:!1}),a=1e4,s=5e3}if(r.length){var w=0,y=!1,b=function(){y||(y=!0,t(!1))};window.setTimeout(b,a);var _=function(){++w===r.length&&window.setTimeout(b,s)};for(u=0;u<r.length;u++)this.logoutFromProvider(r[u],_)}else t(!1)}else 403013==e.errorCode&&"accounts.verifyLogin"!==this.api.methodName?window.gigya.accounts.verifyLogin({callback:function(e){0==e.errorCode?t(!0):t(!1)}}):t(!1)},e.prototype.logoutFromProvider=function(e,t){var i="",n=!1,r=!0,a=""+window.gigya._.getApiDomain("fidm");switch(e.type){case o.facebook:if(window.gigya.providersConfig.facebook)return void window.gigya.socialize.waitForService({service:"facebook",callback:function(){g.isLoggedIn&&FB.logout?FB.logout(function(){g.refreshSession(),u.remove("fblo_"+window.gigya.providersConfig.facebook.appID),t()}):t()}});break;case o.samlProvider:i=m.addParamsToURL("https://"+a+"/saml/v2.0/"+this.params.APIKey+"/sp/jsslo",{name:e.data}),n=!0,r=!1;break;case o.samlSession:i=m.addParamsToURL("https://"+a+"/saml/v2.0/"+this.params.APIKey+"/idp/slo/continue/",e.data),n=!0,r=!1}if(i){r&&(i+=(new Date).getTime());var s,c=n?v.ResourceTypes.iframe:v.ResourceTypes.image;s=e.removeAfter,v.triggerResource(i,t,c,s)}else t()},e.prototype.generateEventsFromResponse=function(e,t){var i,n=this;if(0==e.errorCode)switch(this.api.methodName){case"accounts.logout":case"socialize.logout":case"socialize.unlinkAccounts":case"socialize.deleteAccount":i={eventName:"logout,accounts.logout"};break;case"socialize.linkAccounts":case"socialize.setUID":f.addUserInfoToEvent(e,i,!0);break;case"socialize.removeConnection":i={eventName:"connectionRemoved,disconnect",provider:this.params.provider||""},f.addUserInfoToEvent(e,i);break;case"socialize.addConnection":!t&&e.user.isLoggedIn?(i={eventName:"login",provider:this.params.provider},f.addUserInfoToEvent(e,i,!0)):(i={eventName:"connectionAdded,connect",provider:this.params.provider},f.addUserInfoToEvent(e,i));break;case"accounts.linkAccounts":case"accounts.finalizeRegistration":case"accounts.login":case"accounts.register":case"accounts.socialLogin":this.hasRestrictionForInitialMethod(this._initialMethod,"suppressLoginEvent")||this.dispatchAccountsLoginEvent(e);case"socialize.finalizeRegistration":case"socialize.register":case"socialize.login":if(!e.user&&!e.authCode)break;i={eventName:"login"};var o=this.params.provider;if(!o&&e.providerSessions)for(var r in e.providerSessions){o=r;break}i.provider=o||"site",i.loginMode=this.originalParams.loginMode||"standard",i.newUser=e.newUser||!1,e.authCode&&(i.authCode=e.authCode),f.addUserInfoToEvent(e,i,!0),e.user&&o&&(o=o.toLowerCase(),u.set("_gig_llp",o),u.set("_gig_llu",e.user.firstName||""));break;case"socialize.notifyLogin":this.params.authCode||(i||(i={eventName:"login"}),i.provider="site",f.addUserInfoToEvent(e,i,!0));break;case"gm.notifyAction":s.dispatch({eventName:"actionNotified",isInternal:!0})}c.loginMethods[this.api.methodName]&&this.originalParams.redirectURL&&i&&i.user&&0==e.errorCode&&w.redirect(this.originalParams.redirectURL,[i,i.user],this.originalParams.redirectMethod),0==e.errorCode&&i&&"login"===i.eventName&&!e.profile&&s._activeNamespaces.accounts&&-1===this.api.methodName.indexOf("accounts")&&window.gigya.accounts.getAccountInfo(this.originalParams,{include:"profile,data",includeUserInfo:!1,callback:function(e){n.dispatchAccountsLoginEvent(e)}}),null!=i&&(i.context=this.originalParams.context,s.dispatch(i,this.originalParams))},e.prototype.dispatchAccountsLoginEvent=function(e){var t={eventName:"accounts.login",remember:h.isExplicitTrue(this.originalParams.remember),provider:this.originalParams.provider?this.originalParams.provider.toLowerCase():"",loginMode:this.originalParams.loginMode||"standard"};a.extractProperties(e,t,"newUser|signature|UIDSig|timestamp|UIDSignature|signatureTimestamp|UID|profile|data|signKeysUIDSignature"),s.dispatch(t,this.originalParams)},e.prototype.hasRestrictionForInitialMethod=function(e,t){var i=b.map(function(e){return e.methodName}).indexOf(e);return i>=0&&b[i].restriction===t},e}();t.ServerApiRequest=_},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=navigator.userAgent.toLowerCase(),r={version:null};function a(){if(r.version)return r.version;try{var e=o.match(/(opera|chrome|safari|firefox|msie|trident.*rv:)\/?\s*(\.?\d+(\.\d+)*)/i);if(e[2]){var t=e[2].split(".")[0];if(!isNaN(parseInt(t)))return r.version=parseInt(t)}}catch(e){}return 0}t.isModern=function(){return n.localInfo.isChrome||n.localInfo.isFF||n.localInfo.isOpera||n.localInfo.isIOSWebView||n.localInfo.isIE&&a()>=9||n.localInfo.isEdge||n.localInfo.isSafari&&a()>=4||n.localInfo.isGoogleBot},t.getVersion=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getMetaTag=function(e){for(var t=document.getElementsByTagName("meta"),i=0;i<t.length;i++)if(t[i].getAttribute("property")==e&&t[i].getAttribute("content"))return t[i].getAttribute("content")}},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(7),r=i(55),a=i(26);function s(e,t,i,n){var o;return"string"==typeof e?(o=parseInt(e),-1!==e.indexOf("%")&&(o=.01*parseInt(e)*t,n&&(o-=n/2))):o=e,o=Math.round(o),isNaN(o)&&void 0!==i&&(o=s(i,t,void 0,n)),o}t._openedWindows={},t._uniqueWindowCounter=0,t._calcPixels=s,t.open=function(e,i,c){c||(c={menubar:0,toolbar:0,resizable:1,scrollbars:1}),c.width=s(c.width,screen.width,960),c.height=s(c.height,screen.height,680),c.left=s(c.left,screen.width,"50%",c.width),c.top=s(c.top,screen.height,"50%",c.height);var l="";for(var u in c)l+=","+u+"="+c[u];l=l.substr(1);var g=n.localInfo.isIE&&e.length>2048||e.length>4096,d=e;g&&(d="",n.localInfo.isIE&&(d="about:blank")),i||(i="_gigWindow_"+(new Date).getTime()+"_"+ ++t._uniqueWindowCounter);var p=window.open(d,i,l);p&&p.focus&&p.focus(),t._openedWindows[i]=p;var f=o.getParamsFromURL(e);return g&&r.redirect(e.split("?")[0],[f],"POST",i),a.dispatch({eventName:"windowOpened",url:e,params:f}),null!=t._openedWindows[i]},t.close=function(e){if(null!=t._openedWindows[e]){var i=function(){try{null!=t._openedWindows[e]&&t._openedWindows[e].close(),delete t._openedWindows[e]}catch(e){}};n.localInfo.iosVersion>=6?i():window.setTimeout(i,10)}}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.now=function(){return Date.now()}},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(23),o=i(52),r=i(40),a=i(5),s=i(12),c=i(10),l=i(8),u=i(31),g=i(7),d=i(4),p=i(3),f=i(18),h=i(54),m=i(68),v=i(22);function w(){}function y(){if(window.gigya.abTesting)for(var e in window.gigya.abTesting)if("optimizely"===e){var t=window.gigya.abTesting[e];if(t.serviceParams&&t.serviceParams.hasOwnProperty("apiKey")){var i=window.location.pathname,n=!1;if(t.disabledPaths)for(var o=0;o<t.disabledPaths.length;o++)if(t.disabledPaths[o].indexOf(i)>-1){n=!0;break}if(!n)for(o=0;o<t.enabledPaths.length;o++)i.indexOf(t.enabledPaths[o])>-1&&s.load("//cdn.optimizely.com/js/"+t.serviceParams.apiKey+".js")}}}function b(e){"1"==c.get("gig_debug")?window.gigya.socialize.showDebugUI({ignoreApiQueue:!0,waitForDebug:!1,onLoad:e}):e()}function _(){a.invokeOnPageLoad(function(){void 0!==window.gigya_omniture_conf&&s.load(l.getCdnResource("/js/GenesisExchange_Gigya.min.js"))})}function I(e){e||(e="en-US");var t,i,n=(e=e.replace("_","-").toLowerCase()).split("-"),o=n[0];switch(t=(t=n.length>1?n[1]:o).toUpperCase(),e){case"es-mx":i=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":i=e;break;default:i=o}return{full:o+"-"+t,langCode:i,countryCode:t}}function S(e){var i=u.getGigyaScriptElement();if(i&&!window.__gig_hidescript){window.gigya.logger.info("parsing gigya script");var n=g.getParamsFromURL(i.src,!0)||{},o=d.deserialize(window.gigya.partnerSettings.siteGroupGlobalConf)||{},r=d.deserialize(window.gigya.partnerSettings.globalConf,{},{siteGroupGlobalConf:o})||{},a=d.deserialize(i.innerHTML)||{},s=window.__gigyaConf||{};window.gigya.thisScript={scriptElement:i,protocol:0===i.src.indexOf("https:")?"https":"http",baseDomain:i.src.split("/")[2],APIKey:n.apikey,lang:I(n.lang||s.lang||a.lang||r.lang||o.lang),globalConf:p.merge([window.gigya.partnerSettings.plugins||{},o,r,a,s],!1),URLParams:n},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,e()}else t.parseScriptRetries<10?(t.parseScriptRetries++,window.setTimeout(function(){S(e)},200)):(window.gigya.thisScript={scriptElement:null,protocol:window.gigya.localInfo.protocol,baseDomain:"https"===window.gigya.localInfo.protocol?"https://cdns.gigya.com":"http://cdn.gigya.com",APIKey:"",lang:I(""),globalConf:{},URLParams:{}},e())}function A(e){var t="web",i=window.__gigAPIAdapterSettings,n=window.gigya.localInfo.supportsLocalStorage,o="__gigAPIAdapterSettings_"+window.gigya.thisScript.APIKey+"_"+window.gigya.build.version;if(i&&"mobile"==i.getAdapterName()&&i.getAPIKey()==window.gigya.thisScript.APIKey){if(t="mobile",n){var r={apiKey:i.getAPIKey?i.getAPIKey():null,adapterName:i.getAdapterName?i.getAdapterName():null,features:i.getFeatures?i.getFeatures():null,settings:i.getSettings?i.getSettings():null};f.setItem(o,d.serialize(r))}}else if(n){var s=d.deserialize(f.getItem(o));"mobile"===s.adapterName&&(t="mobile",i={},s.apiKey&&(i.getAPIKey=function(){return s.apiKey}),s.adapterName&&(i.getAdapterName=function(){return s.adapterName}),s.features&&(i.getFeatures=function(){return s.features}),s.settings&&(i.getSettings=function(){return s.settings}))}window.gigya.logger.info("selecting api adapter: "+t),window.gigya._.apiAdapter=window.gigya._.apiAdapters[t].newApiAdapter(i),a.createAlias("gigya.auth.loginToken.getTokenParam",window.gigya._.apiAdapter.getTokenParam),b(function(){window.gigya._.apiAdapter.init(e)})}function P(){window.gigya.thisScript.globalConf.autoLogin&&(window.gigya.logger.info("triggering auto-login"),h.autoLogin(),m.autoLogin())}function C(e){var t=g.getParamsFromURL(document.location.href);t.errorCode&&t.regToken?v.checkCompleteRegistration(t,window.gigya.thisScript.globalConf,"",function(){return e()}):e()}function L(){var e,t=window.gigya.localInfo;t.isIE11&&!window.indexedDB?(e=v.MessagingMethod.Flash,window.gigya.thisScript.globalConf.legacyCrossSiteMethod="localConnection"):e=t.supportsPostMessage?v.MessagingMethod.PostMessage:v.MessagingMethod.Flash,t.messagingMethod=e,window.gigya.logger.info("selected messaging method is: "+v.MessagingMethod[e])}function x(){n.queueForExecution("API",function(){a.invokeOnPageLoad(function(){window.gigya.providersConfig.facebook&&(window.gigya.logger.info("loading facebook sdk"),h.load(!1)),window.gigya.providersConfig.googlePlus&&(window.gigya.logger.info("loading google plus sdk"),m.load())})})}t.parseScriptRetries=0,t.init=function(){window.gigya.logger.group("websdk root"),window.gigya.logger.info("partner settings:",window.gigya.partnerSettings),window.gigya.logger.info("local info:",window.gigya.localInfo);var e=window.gigya.logger.group("bootstrap websdk");n.hold("bootstrap","API"),(window.gigya.localInfo.isIE6||window.gigya.localInfo.isIE7||window.gigya.localInfo.isIE8||window.gigya.localInfo.isIE9||window.gigya.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."),o.init(),S(function(){L();var t=window.gigya.thisScript.globalConf.customEventMap;t&&(window.gigya.logger.info("adding custom event map"),r.addMap(t)),window.gigya.logger.group("init api adapter"),A(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)}}C(function(){n.release("bootstrap","API"),x(),P(),o.trackAddressBarShares(),a.invokeOnPageLoad(function(){return window.setTimeout(window.gigya.socialize.trackReferrals,1e3)}),e.end()})}),_(),y();var i={sref:document.referrer};window.gigya.thisScript.globalConf.actionCounterPath&&(i.actionCounterPath=window.gigya.thisScript.globalConf.actionCounterPath),o.report("loadc",window.gigya.thisScript.APIKey,null,null,null,i)})},t.warnOnUnsupportedBrowser=w,t.loadABTesting=y,t.startDebugIfNeeded=b,t.loadOmniture=_,t.parseLang=I,t.parseScriptElement=S,t.initApiAdapter=A,t.autoLogin=P,t.checkReturnFromRedirect=C,t.setMessagingMethod=L,t.injectExternalSdks=x},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){(function(e){Object.defineProperty(t,"__esModule",{value:!0}),i(163);var n=i(54),o=i(68),r=i(103),a=i(106),s=i(69),c=i(100),l=i(101);window.gigya._||(window.gigya._={}),window.gigya._.bootstrap||(window.gigya._.bootstrap={}),window.gigya.external||(window.gigya.external={}),window.gigya.external.facebook||(window.gigya.external.facebook={}),window.gigya.external.googlePlus||(window.gigya.external.googlePlus={}),window.gigya.external.opengraph||(window.gigya.external.opengraph={}),e(window.gigya._,s,c,l),e(window.gigya._.bootstrap,a),e(window.gigya.external.facebook,n),e(window.gigya.external.googlePlus,o),e(window.gigya.external.opengraph,r),window.gigya.build||(window.gigya.build={version:"",number:0}),window.gigya.providersConfig||(window.gigya.providersConfig={}),window.gigya.isGigya||(window.gigya.isGigya=!0),window.gigya.partnerSettings||(window.gigya.partnerSettings={authMode:"cookie",baseDomains:"",captchaProvider:"Google",plugins:{apiDomain:"us1.gigya-api.com"},invisibleRecaptcha:{siteKey:""},recaptchaV2:{siteKey:""},funCaptcha:{siteKey:""}}),a.init()}).call(this,i(0).__assign)},function(e,t,i){(function(e){Object.defineProperty(t,"__esModule",{value:!0}),i(36);var n=i(164),o=i(8),r=i(165),a=i(40),s=i(26),c=i(166),l=i(167),u=i(22),g=i(33),d=i(1),p=i(95),f=i(52),h=i(168),m=i(169),v=i(53),w=i(96),y=i(98),b=i(170),_=i(97),I=i(171),S=i(99),A=i(67),P=i(172),C=i(173),L=i(174),x=i(175);i(176),i(106),i(183),i(184),i(41),window.gigya._||(window.gigya._={}),window.gigya.events||(window.gigya.events={}),window.gigya.events.global||(window.gigya.events.global={}),window.gigya.log||(window.gigya.log={}),window.gigya._.providers||(window.gigya._.providers={}),window.gigya.reports||(window.gigya.reports={}),window.gigya._.apiAdapters||(window.gigya._.apiAdapters={}),window.gigya._.plugins||(window.gigya._.plugins=y),window.gigya._.UI||(window.gigya._.UI={}),window.gigya._.api||(window.gigya._.api={}),window.gigya._.saml||(window.gigya._.saml={}),window.gigya.fidm||(window.gigya.fidm={}),window.gigya.fidm.saml||(window.gigya.fidm.saml={}),window.gigya.services||(window.gigya.services={}),e(window.gigya,n,c,l,d,m,r,{Promise:gigya.Promise}),e(window.gigya._,o,u,v,w,I,S,A,P),e(window.gigya.events,a),e(window.gigya.events.global,s),e(window.gigya.log,g),e(window.gigya._.providers,p),e(window.gigya.reports,f),e(window.gigya._.apiAdapters,h),e(window.gigya._.UI,b),e(window.gigya._.api,_),e(window.gigya._.saml,C),e(window.gigya.fidm.saml,L),e(window.gigya.services,x)}).call(this,i(0).__assign)},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isReady=!1},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultEventMaps=window.gigya.defaultEventMaps||[]},function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isSessionFromSso=!1},function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(23),o=i(5);t.registerPlugin=function(e){n.queueForExecution("UI",e)},t.attachPlugin=function(e,t,i,n){t||(t="socialize"),window.gigya[t]||(window.gigya[t]={}),window.gigya[t].plugins||(window.gigya[t].plugins={}),window.gigya[t].plugins[i]||(window.gigya[t].plugins[i]={instances:[]});var r=window.gigya[t].plugins[i];if(r[n]||(r[n]=function(n){var o="gigya."+t+".plugins."+i+".instances["+r.instances.length+"]",a=new e(n,o);r.instances.push(a)}),e.StaticApi)for(var a in e.StaticApi){var s=e.StaticApi[a],c=e[s];o.createAlias("gigya."+t+".plugins."+i+"."+a,c)}}},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(40),o=i(11),r=i(99),a=i(26),s=i(3),c=function(){function e(t,i,o){for(var r in void 0===o&&(o=!0),this.params=t,this.explicitParams=i,this._logger=window.gigya.logger,this._eventDispatcher=function(e,t){return n.dispatchForWidget(e,t)},this._errorDispatcher=window.gigya.events,this._globalEventsManager=window.gigya.events.global,this._isDisposed=!1,this._eventWrappers={},this._globalEventHandlers={},this._id=++e.instanceCounter,this.params=t?s.clone(t):{},this.explicitParams=i?s.clone(i):{},o&&this.validateParams(),t)e[r]&&(e[r]=t[r])}return e.prototype.onErrorEvent=function(){return this.getEvent("onError")},e.prototype.onDisposedEvent=function(){return this.getEvent("onDisposed")},e.prototype.getType=function(){return this.constructor.name||this.getFunctionName(this.constructor)},e.prototype.getFunctionName=function(e){var t=e.toString();return t=(t=t.substr("function ".length)).substr(0,t.indexOf("("))},e.prototype.getConfig=function(){return this.error(e.NOT_IMPLEMENTED_ERROR,400096),{}},e.prototype.toString=function(){return this.getType()+" "+this.id()},e.prototype.id=function(){return this._id},e.prototype.warn=function(e,t){var i=this.id()+" "+this.getType()+" - "+e;this._logger.info(i,t)},e.prototype.error=function(e,t,i){void 0===t&&(t=300001);var n={errorMessage:e,errorCode:t,errorDetails:this.id(),info:i};this.warn(e,n),this.dispatchEvent("error",n)},e.prototype.validateParams=function(e){e||(e=this.getConfig().requiredParams||[]),this.getConfig().defaultParams&&(this.params=s.merge([this.getConfig().defaultParams,this.params]));var t=[];if(e.length>0)for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];this.params[n]||t.push(n)}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){n.dispatchErrorFromResponse(this.params,e)},e.prototype.dispatchInvalidParamError=function(e){n.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,i,n){void 0===i&&(i=null),void 0===n&&(n="socialize"),this._globalEventHandlers[e]||(this._globalEventHandlers[e]=[]);var o=a.add(e,t,"component",i,n,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,i,n){void 0===i&&(i=null),void 0===n&&(n="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 i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(!t._isDisposed)return e.apply(this,i)}},e.prototype.dispose=function(){for(var e in this._globalEventHandlers)if(this._globalEventHandlers.hasOwnProperty(e))for(var t in this._globalEventHandlers[e]){var i=this._globalEventHandlers[e][t];a.remove(i.fullEventName,i)}this._globalEventHandlers={},this._eventWrappers={},this.params={},this._isDisposed=!0},e.instanceCounter=0,e.NOT_IMPLEMENTED_ERROR="Abstract method not implemented",e}();t.BaseObject=c},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(3),o=i(26),r=i(30),a=i(54),s=i(68),c=i(69),l=i(103),u=i(104),g=i(1),d=i(15),p=i(17),f=i(52),h=i(33),m=i(22),v=i(10),w=i(12),y=i(8),b=i(55),_=i(5);function I(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=n.merge([window.gigya.thisScript.globalConf,e]),r=i.namespace?i.namespace:"socialize";for(var a in i)0==a.indexOf("on")&&o.add(a,i[a],i.listenerType,i.context,r,i);"function"==typeof i.callback&&i.callback({status:"OK",statusMessage:"",errorCode:0,errorMessage:"",operation:"addEventHandlers",context:i.context})}function S(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];I(n.merge([e,{namespace:"accounts"}]))}function A(){var e=n.merge([window.gigya.thisScript.globalConf,arguments]);window.gigya.socialize.getUserInfo(e,{callback:function(t){var i=t.user,o={loggedIn:!!i&&r.isExplicitTrue(i.isLoggedIn)};n.extractProperties(t,o,"status|statusMessage|callId|errorCode|errorMessage|errorDetails|context"),e.callback&&e.callback(o)}})}function P(){var e=n.merge([window.gigya.thisScript.globalConf,arguments]),t=e.service;if(t){t=t.toLowerCase();var i=e.callback;"fbconnect"!=t&&"facebook"!=t||(a.isLoaded()?i({context:e.context}):window.gigya.socialize.addEventHandlers({listenerType:"component"},{onFacebookLoaded:i,context:e.context})),"googleplus"==t&&(s.isLoaded()?i({context:e.context}):window.gigya.socialize.addEventHandlers({listenerType:"component"},{onGooglePlusLoaded:i,context:e.context}))}}function C(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=n.merge([window.gigya.thisScript.globalConf,e]);i.APIKey||(i.APIKey=window.gigya.thisScript.APIKey);var r={};if(n.extractProperties([i],r,c.postBookmarkSchema),!r.url&&r.URL&&(r.url=r.URL,delete r.URL),r.sdk="js_"+window.gigya.build.version,!r.url&&r.userAction&&!r.userAction.linkBack)for(var a=document.getElementsByTagName("meta"),s=0;s<a.length;s++)if("og:url"===a[s].getAttribute("property")&&a[s].getAttribute("content")){r.url=a[s].getAttribute("content");break}r.url||!r.userAction||r.userAction.linkBack||(r.url=document.location.href),r.provider=r.provider?(r.provider+"").toLowerCase():"","facebook"===r.provider&&(r.providerKey=l.getMetaTag("fb:app_id"));var m=window.gigya._.apiAdapter.getGmidTicket();m&&(r.gmidTicket=m);var v,w=window.gigya._.bookmarkSize[r.provider]||{},y={width:i.popupWidth||w.w,height:i.popupHeight||w.h,top:i.popupPositionY,left:i.popupPositionX,menubar:0,resizable:1,scrollbars:1};if(i.enablePopupLocation?(y.location=1,y.toolbar=1):y.toolbar=0,(window.gigya._.apiAdapters.web?window.gigya._.apiAdapters.web.tokenStore:void 0)&&(r.login_token=window.gigya._.apiAdapters.web.tokenStore.get()),"twitter"===r.provider&&g.localInfo.isIOS){var b=r.userAction||{},_={url:b.linkBack||r.url,text:b.title||r.title},I="https://twitter.com/intent/tweet?{0}";v=d.format(I,p.serialize(_));var S=i.sourceData?n.clone(i.sourceData):{};S.provider=r.provider,S.url=_.url,f.report("share",i.APIKey,i.cid,i.source,S,{tags:i.tags})}else{_=p.serialize(r),I="https://"+window.gigya._.getApiDomain("socialize")+"/gs/bookmark.aspx?{0}";v=d.format(I,_)}h.logCall("postBookmark",r),o.dispatch({eventName:"beforeRequest",methodName:"socialize.postBookmark",rawParams:i,params:r}),u.open(v,"gs_bookmark_"+r.provider,y)}function L(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=n.merge([window.gigya.thisScript.globalConf,e]),r=i.callback;window.gigya.socialize.getUserInfo(i,{callback:function(e){var t={eventName:"login",isInternal:!0};i.provider&&(t.provider=i.provider),m.addUserInfoToEvent(e,t,!0),i.context&&(t.context=i.context),o.dispatch(t),"function"==typeof r&&r(e)}})}function x(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i,r={"digg.com":"digg","stumbleupon.com":"stumbleupon","technorati.com":"technorati","t.co":"twitter","plus.url.google.com":"googlePlus","facebook.com":"facebook","linkedin.com":"linkedIn","pinterest.com":"pinterest","mixi.jp":"mixi","b.hatena.ne.jp":"hatena","line.me":"line"},a=n.merge([window.gigya.thisScript.globalConf,e]),s={eventName:"linkback",CID:a.cid},c={},l={};-1!=document.location.href.indexOf("#")&&(l=p.deserialize(document.location.href.split("#")[1])),-1!=document.location.href.indexOf("?")&&(c=p.deserialize(document.location.href.split("?")[1].split("#")[0])),window.gigya.socialize.updateRefUID(a.APIKey,l,c);var u=null!=l._gus||null!=c._gus;if(u&&(s.CID=l._gucid||c._gucid,s.shortCode=l._gsc||c._gsc,s.provider=l._gup||c._gup),!i){var g,d={url:document.location.href,ref:document.referrer};if(c.fb_ref){var h=p.deserialize(c.fb_ref,":");d.uuid=h.uu,d.sn=h.p,g=h.s}else if(document.referrer&&-1!=document.referrer.indexOf("://")){var m=document.referrer.split("://")[1].split("/")[0];0==m.indexOf("www.")&&(m=m.split("www.")[1]),r[m]&&(s.provider=d.sn=r[m])}if(!d.sn&&(!document.referrer||-1==document.referrer.indexOf("http://soc.li")&&-1==document.referrer.indexOf("https://shr.gs"))){var w=document.location.href.split("#guid=");if(w.length>1){var y=w[1].split("#")[0].split("&")[0];y!=window.gigya._.apiAdapter.getTokenParam(a.APIKey,"UUID")&&(d.sn="AddressBarShares",d.uuid=y,"_"==y&&delete d.uuid,document.location.replace("#"),f.trackAddressBarShares(),d.url=document.location.href.split("#")[0])}}d.uuid&&v.set("_gigRefUid_"+a.APIKey,d.uuid),d.sn&&!u&&f.report("linkback",a.APIKey,a.cid,g,null,d),(d.sn||u)&&o.dispatch(n.removeUndefined(s)),i=!0}"function"==typeof a.callback&&a.callback({status:"OK",statusMessage:"",operation:"trackReferrals",context:a.context,errorMessage:"",errorCode:0})}function k(e,t,i){e||(e=window.gigya.thisScript.globalConf.APIKey),t||(t={},-1!=document.location.href.indexOf("#")&&(t=p.deserialize(document.location.href.split("#")[1]))),i||(i={},-1!=document.location.href.indexOf("?")&&(i=p.deserialize(document.location.href.split("?")[1].split("#")[0]))),t.guid&&"_"!=t.guid&&v.set("_gigRefUid_"+e,t.guid);var n=t._giguuid||i._giguuid;n&&v.set("_gigRefUid_"+e,n)}function D(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=n.merge([window.gigya.thisScript.globalConf,e]);if("function"==typeof i.callback){var o={status:"OK",statusMessage:"",operation:"hideUI",context:i.context,errorMessage:"",errorCode:0};i.callback(o)}}function O(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i={},o=n.merge([window.gigya.thisScript.globalConf,e]),r=document.getElementById(o.form);if(!r){var a=document.getElementsByName(o.form);a&&a.length>0&&(o.form=a[0])}for(var s=0;s<r.elements.length;s++){var c=r.elements[s];if(c.name){for(var l=c.name.split("."),u=i,g=0;g<l.length-1;g++){var d=l[g];u[d]||(u[d]={}),u=u[d]}u[l[l.length-1]]=c.value}}o.data=i,window.gigya.gcs.setUserData(o)}function E(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=n.merge([window.gigya.thisScript.globalConf,e]);w.load(y.getCdnResource("/js/gigya.services.socialize.plugins.shareCounts.min.js"),null,function(){window.gigya.socialize.plugins.shareCounts.getProviderShareCounts(i)},!0)}function U(e){if(e&&e.orgId){var t=window.open("","_blank");window.gigya.accounts.b2b.delegatedAdminLogin({orgId:e.orgId,callback:function(i){0!==i.errorCode?(t.close(),"function"==typeof e.onError&&e.onError(i)):i.targetUrl&&i.id_token?b.redirect(i.targetUrl,[{id_token:i.id_token}],"POST",void 0,t.document):(t.close(),window.gigya.logger.error("accounts.b2b.delegatedAdminLogin - missing required params",{targetURL:i.targetUrl,id_token:i.id_token}))}})}else window.gigya.logger.warn("gigya.accounts.b2b.openDelegatedAdminLogin - missing orgId parameter.")}t.bookmarkSize={facebook:{w:640,h:370},twitter:{w:880,h:585},messenger:{w:710,h:905},linkedin:{w:560,h:500},yahoobookmarks:{w:840,h:975},digg:{w:1010,h:1045},googlebookmarks:{w:710,h:905},mixi:{w:640,h:470},googleplus:{w:496,h:420}},t.socializeAddEventHandlers=I,t.accountsAddEventHandlers=S,t.isLoggedIn=A,t.waitForService=P,t.postBookmark=C,t.refreshUI=L,t.trackReferrals=x,t.updateRefUID=k,t.hideUI=D,t.submitUserForm=O,t.getProviderShareCounts=E,t.openDelegateAdminHandler=U,window.gigya.socialize.updateRefUID=k,window.gigya.socialize.hideUI=D,window.gigya.gcs.submitUserForm=O,window.gigya.socialize.getProviderShareCounts=E,window.gigya.socialize.addEventHandlers=I,window.gigya.accounts.addEventHandlers=S,window.gigya.socialize.isLoggedIn=A,window.gigya.socialize.waitForService=P,window.gigya.socialize.postBookmark=C,window.gigya.socialize.refreshUI=L,window.gigya.socialize.trackReferrals=x,_.createAlias("gigya.accounts.b2b.openDelegatedAdminLogin",U),_.createAlias("gigya.accounts.setSSOToken",window.gigya.setSSOToken)},function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(7),o=i(3);function r(){var e=window.gigya.samlConfig&&window.gigya.samlConfig.proxyPageURL;return e||window.gigya.logger.warn("missing proxy page url"),e}t.initSSO=function(e){var t=r(),i=n.addParamsToURL(t,o.merge([{mode:"initSSO"},e]));window.gigya.thisScript.globalConf.enableSSOToken?window.gigya.setSSOToken({redirectURL:i}):window.location.href=i},t.continueSSO=function(){var e=r(),t=n.getParamsFromURL(location.href),i=n.addParamsToURL(e,{mode:"afterLogin",samlContext:t.samlContext});window.location.href=i}},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(105),r=i(10),a=function(){function e(){}return e.prototype.verifyLogin=function(){return n.__awaiter(this,void 0,void 0,function(){var e,t;return n.__generator(this,function(i){return e=Number(window.gigya.thisScript.globalConf.verifyLoginInterval),isNaN(e)?[2,!0]:(e<=0&&(e=1),t=3600*Math.ceil(e)*1e3,o.now()<this.lastVerification+t?[2,!0]:(this.lastVerification=o.now(),[2,new gigya.Promise(function(e){window.gigya.accounts.verifyLogin({ignoreApiQueue:!0,callback:function(t){e(0===t.errorCode)}})})]))})})},Object.defineProperty(e.prototype,"lastVerification",{get:function(){return Number(r.get("gig_last_ver_"+window.gigya.thisScript.APIKey))},set:function(e){r.set("gig_last_ver_"+window.gigya.thisScript.APIKey,String(e))},enumerable:!0,configurable:!0}),e}();t.AccountService=a,t.accountService=new a},function(e,t,i){(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n=i(11),o=i(102),r=i(10),a=i(105),s=i(177),c=i(6),l=i(21),u=i(5),g=i(31),d=i(70),p=i(55),f=i(4),h=i(178),m=i(17),v=i(18),w=i(179),y=i(3),b=i(23),_=i(180),I=i(12),S=i(71),A=i(19),P=i(15),C=i(181),L=i(94),x=i(9),k=i(7),D=i(30),O=i(25),E=i(104),U=i(182);window.gigya._||(window.gigya._={}),window.gigya.utils||(window.gigya.utils={}),window.gigya.utils.array||(window.gigya.utils.array={}),window.gigya.utils.browser||(window.gigya.utils.browser={}),window.gigya.utils.cookie||(window.gigya.utils.cookie={}),window.gigya.utils.date||(window.gigya.utils.date={}),window.gigya.utils.delegate||(window.gigya.utils.delegate={}),window.gigya.utils.DOM||(window.gigya.utils.DOM={}),window.gigya.utils.functions||(window.gigya.utils.functions={}),window.gigya.utils.gltexp||(window.gigya.utils.gltexp={}),window.gigya.utils.HTTP||(window.gigya.utils.HTTP={}),window.gigya.utils.JSON||(window.gigya.utils.JSON={}),window.gigya.utils.keyboard||(window.gigya.utils.keyboard={}),window.gigya.utils.keyValue||(window.gigya.utils.keyValue={}),window.gigya.utils.localStorage||(window.gigya.utils.localStorage={}),window.gigya.utils.mouse||(window.gigya.utils.mouse={}),window.gigya.utils.object||(window.gigya.utils.object={}),window.gigya.utils.queue||(window.gigya.utils.queue={}),window.gigya.utils.sanitize||(window.gigya.utils.sanitize={}),window.gigya.utils.script||(window.gigya.utils.script={}),window.gigya.utils.sessionCache||(window.gigya.utils.sessionCache={}),window.gigya.utils.stringUtils||(window.gigya.utils.stringUtils={}),window.gigya.utils.templates||(window.gigya.utils.templates={}),window.gigya.utils.URL||(window.gigya.utils.URL={}),window.gigya.utils.validation||(window.gigya.utils.validation={}),window.gigya.utils.viewport||(window.gigya.utils.viewport={}),window.gigya.utils.win||(window.gigya.utils.win={}),window.gigya.utils.xd||(window.gigya.utils.xd={}),e(window.gigya._,x,l),e(window.gigya.utils.array,n),e(window.gigya.utils.browser,o),e(window.gigya.utils.cookie,r),e(window.gigya.utils.date,a),e(window.gigya.utils.delegate,s),e(window.gigya.utils.DOM,c),e(window.gigya.utils.functions,u),e(window.gigya.utils,g,A,C),e(window.gigya.utils.gltexp,d),e(window.gigya.utils.HTTP,p),e(window.gigya.utils.JSON,f),e(window.gigya.utils.keyboard,h),e(window.gigya.utils.keyValue,m),e(window.gigya.utils.localStorage,v),e(window.gigya.utils.mouse,w),e(window.gigya.utils.object,y),e(window.gigya.utils.queue,b),e(window.gigya.utils.sanitize,_),e(window.gigya.utils.script,I),e(window.gigya.utils.sessionCache,S),e(window.gigya.utils.stringUtils,P),e(window.gigya.utils.templates,L),e(window.gigya.utils.URL,k),e(window.gigya.utils.validation,D),e(window.gigya.utils.viewport,O),e(window.gigya.utils.win,E),e(window.gigya.utils.xd,U)}).call(this,i(0).__assign)},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.create=function(e,t){return function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return t.apply(e,i)}}},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(6);t.onHotKeyClicked=function(e,t){var i=e.elementContext?e.elementContext:document.body;n.addEventListener(i,"keyup",function(i){i.which==e.key&&t()})}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i=null;t.getPosition=function(){var e=0,t=0;if(document.body){var n=i;return n||(n={clientX:0,clientY:0}),n.pageX||n.pageY?(e=n.pageX,t=n.pageY):(n.clientX||n.clientY)&&(e=n.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,t=n.clientY+document.body.scrollTop+document.documentElement.scrollTop),{x:e,y:t}}}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeHTML=function(e){return null==e||void 0===e?e:e.replace(/&/g,"&#38;").replace(/</g,"&#60;").replace(/>/g,"&#62;").replace(/\"/g,"&#34;").replace(/'/g,"&#39;").replace(/&#38;#173;/g,"&#173;")},t.sanitizeAttribute=function(e){return null==e||void 0===e?e:e.replace(/&/g,"&#38;").replace(/</g,"&#60;").replace(/>/g,"&#62;").replace(/\"/g,"&#34;").replace(/\=/g,"&#61;")}},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(6),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 i=this.createListener(e,t);window.addEventListener("keydown",i,!0)}},e.prototype.unbindTabLooping=function(e){var t=this.getListenerByContainer(e);t&&window.removeEventListener("keydown",t,!0)},e.prototype.getSortedTabbableElements=function(t,i){for(var n=this,o=0,r=t.querySelectorAll(e.selector),a=[],s=0;s<r.length;++s){var c=r[s];this.isTabbable(c,i)&&(c.setAttribute(e.naturalTabOrder,String(o)),o++,a.push(c))}return a.sort(function(e,t){return n.sort(e,t)}),a},e.prototype.createListener=function(e,t){var i=this,o=function(o){var r=document.activeElement;if(9===o.keyCode&&e.contains(r)){var a=o.shiftKey?i.getPreviousTabbableElement(e,r,t):i.getNextTabbableElement(e,r,t);a&&(a.focus(),n.cancelEvent(o))}};return this.bindings.push({container:e,listener:o}),o},e.prototype.isTabbable=function(e,t){var i=e.matches||e.msMatchesSelector;return-1!==e.tabIndex&&(e.offsetWidth>0||e.offsetHeight>0)&&(!t||i.call(e,t))},e.prototype.getNextTabbableElement=function(e,t,i){var n=this.getSortedTabbableElements(e,i),o=n.indexOf(t);return-1===o?void 0:o!==n.length-1?n[o+1]:n[0]},e.prototype.getPreviousTabbableElement=function(e,t,i){var n=this.getSortedTabbableElements(e,i),o=n.indexOf(t);return-1===o?void 0:0!==o?n[o-1]:n[n.length-1]},e.prototype.sort=function(t,i){var n=this.getTabIndex(t)-this.getTabIndex(i);return 0!==n?n:Number(t.getAttribute(e.naturalTabOrder))-Number(i.getAttribute(e.naturalTabOrder))},e.prototype.getTabIndex=function(e){return 0===e.tabIndex?99999999:e.tabIndex},e.prototype.getListenerByContainer=function(e){for(var t=0,i=this.bindings;t<i.length;t++){var n=i[t];if(n.container===e)return n.listener}},e.naturalTabOrder="data-natural-tab-order",e.selector=["a:not([disabled])","button:not([disabled])","input:not([disabled])","[tabindex]:not([disabled])"].join(","),e}();t.Tabbable=o,t.tabbable=o.getInstance()},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(17),o=i(3),r=i(6),a=i(22),s=i(5),c={};t._flashListenerID="flid"+(new Date).getTime();var l=!1,u={};function g(e){delete c[e]}t._onFlashMessage=function(e){var t=n.deserialize(e,null,null,!0),i=t.id,o=c[i];if(null!=o){if("function"==typeof o.callback){var r=o.context;o.callback(t,r)}g(i)}},t.addMessageListener=function(e,i,d,p,f){if(c[e]={callback:p,context:i,t:(new Date).getTime()},f||(f=window.gigya.localInfo.messagingMethod,window.gigya.localInfo.isIE11&&d&&window.indexedDB&&(f=a.MessagingMethod.LocalStorageListener),window.gigya.localInfo.isAndroid&&i&&i.provider&&"line"==i.provider.toLowerCase()&&(f=a.MessagingMethod.LocalStorageListener)),f==a.MessagingMethod.LocalStorageListener||f==a.MessagingMethod.PostMessage){if(f==a.MessagingMethod.LocalStorageListener&&d&&function(e){var t=document.createElement("iframe");t.style.width="30px",t.style.height="10px",t.style.position="absolute",t.style.top="-1000px",t.style.left="-1000px",t.id=e,t.src="https://cdns.gigya.com/gs/LocalStorageListener.htm?mode=receive&id="+encodeURIComponent(e),r.appendToBody(t)}(e),!l){var h=function(e){if(e&&e.data&&"string"==typeof e.data){var t=e.data.split("=")[0];c[t]&&(i=e,r=function(){var e=i.data.split("="),t=c[e[0]];if(null!=t){if("function"==typeof t.callback){var o=unescape(e[1]),r=n.deserialize(o,null,null,!0),a=t.context;t.callback(r,a)}g(e[0]);var s=document.getElementById(e[0]);s&&s.parentElement&&s.parentElement.removeChild(s)}},(i=o.clone(i))&&i.data&&i.data.split&&(window.gigya.localInfo.iosVersion>=6?r():window.setTimeout(r,100)))}var i,r};window.addEventListener?window.addEventListener("message",h,!1):window.attachEvent&&window.attachEvent("onmessage",h),l=!0}}else{var m="localstorage";window.gigya.thisScript.globalConf.legacyCrossSiteMethod&&"localstorage"!=window.gigya.thisScript.globalConf.legacyCrossSiteMethod.toLowerCase()&&(m=window.gigya.thisScript.globalConf.legacyCrossSiteMethod),u[m]||window.setTimeout(function(){var e=document.createElement("div");e.style.width="1px",e.style.height="1px",e.style.overflow="hidden",e.style.position="absolute",e.style.left="-1000px";var i=t._flashListenerID;"localstorage"!=m&&(i=m+":"+t._flashListenerID);var n,o=window.gigya.localInfo.protocol+"://"+document.location.href.split("?")[0].split("#")[0].split("/")[2],a=(new Date).getTime(),c=document.createElement("object"),l="https://cdns.gigya.com/GS/swf/eventsBroadcaster2.swf";c.setAttribute("id","eventsBroadcaster"+a),c.setAttribute("codebase","https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"),c.setAttribute("width","50"),c.setAttribute("height","50"),c.setAttribute("src",l),c.setAttribute("data",l),c.setAttribute("style","display:inline"),(n=document.createElement("param")).name="movie",n.setAttribute("value",l),c.appendChild(n),(n=document.createElement("param")).setAttribute("name","allowScriptAccess"),n.setAttribute("value","always"),c.appendChild(n),(n=document.createElement("param")).setAttribute("name","FlashVars"),n.setAttribute("value","action=listen&id="+i+"&eventName=loginComplete&callback=gigya.utils.xd._onFlashMessage&domain="+o),c.appendChild(n),e.appendChild(c),s.invokeOnPageLoad(function(){r.appendToBody(e),c.setAttribute("type","application/x-shockwave-flash"),c.setAttribute("classid","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000")}),u[m]=!0},500)}},t.removeMessageListener=g},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(4),o=i(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={},i=a[e];-1!=i.indexOf("+")&&(t=s(i.split("+")[0]),i=i.split("+")[1]);for(var o=i.split(","),r=0;r<o.length;r++){var c="",l=o[r].split("|");if(l.length>1)try{c=n.deserialize(l[1],"")}catch(e){}t[l[0]]=c||""}return t},c=function(e){return function(t){var i=r[e];for(var n in i)this[n]=o.clone(i[n]);if("object"==typeof t)for(var n in t)"function"!=typeof t[n]&&(this[n]=o.clone(t[n]))}};for(var l in a)r[l]=s(l),window.gigya.socialize[l]=c(l);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,i=this.arr[t];i;)e(i,t),t++,i=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(i,n){e["function"==typeof i[t]?i[t]():i[t]]=i})}},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,i){return this.templateFields[e]={fieldName:e,text:t,href:i},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){}]);
}
