!(function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)})([(function(e,t,n){function i(){function e(e){var t=[d];t.push(n(136)),t.push(n(142)),t.push(n(145)),t.push(n(148)),t.push(n(150)),t.push(n(159)),t.push(n(162)),t.push(n(165)),t.push(n(169)),t.push(n(173)),t.push(n(177)),t.push(n(182)),t.push(n(184)),{ADOBE_ANALYTICS:!1,AVRO:!0,GOOGLE_CLASSIC_ANALYTICS:!1,GOOGLE_UNIVERSAL_ANALYTICS:!0,MIXPANEL:!1}.CLICKTALE&&t.push(n(185)),t.push(n(186)),t.push(n(189)),t.push(n(193)),t.push(n(198)),v.initialize({clientData:e,plugins:t})}function t(e,t,n){return"/dist/preview_data.js?token=__TOKEN__&preview_layer_ids=__PREVIEW_LAYER_IDS__".replace("__TOKEN__",e).replace("__PROJECT_ID__",t).replace("__PREVIEW_LAYER_IDS__",n.join(",")).replace("__GET_ONLY_PREVIEW_LAYERS__",!0)}window.performance&&window.performance.mark&&window.performance.mark("optimizely:blockBegin");var i=n(1),r=n(59),o=n(5),a=n(11);o.onPreAction(r.onPreAction),o.onPostAction(r.onPostAction);var s=n(19),u=s.get("stores/directive"),c=n(60);if(!c.isCORSSupported())throw new Error("CORS is not supported on this browser, aborting.");var l,d=n(70),f=n(85),p=n(78),h=n(87),g={"layers": [{"holdback": 0, "activation": {}, "integrationSettings": {"google_universal_analytics": {"universal_analytics_tracker": "tealium_0", "universal_analytics_slot": "28"}}, "viewIds": ["8286962520"], "experiments": [{"weightDistributions": [{"entityId": "8286527638", "endOfRange": 3333}, {"entityId": "8286991789", "endOfRange": 6666}, {"entityId": "8287547211", "endOfRange": 10000}], "audienceName": null, "name": null, "bucketingStrategy": null, "variations": [{"id": "8286527638", "actions": [{"viewId": "8286962520", "changes": []}], "name": null}, {"id": "8286991789", "actions": [{"viewId": "8286962520", "changes": [{"selector": ".grid-5", "dependencies": [], "attributes": {"style": "padding:10px 40px 0px 0px;", "html": "
\n\n | \nIF YOU STOP HERE | \n IF YOU CONTINUE | \n
\n\nCustomize Your Vehicle | \n | \n | \n
\n\nSee What Others Paid | \n | \n | \n
\n\nMarket Average Pricing | \n | \n | \n
\n\nReal Prices on Actual Cars | \n— | \n | \n
\n\nView Local Inventory | \n— | \n | \n
\n\nDiscounted Pricing | \n— | \n | \n
\n\nGet Multiple Dealer Offers | \n— | \n | \n
\n\nSee All Fees and Accessories | \n— | \n | \n
\n
"}, "type": "attribute", "id": "D861EF27-14D1-4C04-A590-905CEA0C998C", "css": {"width": "452px", "border-style": "none"}}, {"selector": ".grid-5 tr:nth-of-type(9) > td:nth-of-type(1)", "dependencies": ["D861EF27-14D1-4C04-A590-905CEA0C998C"], "attributes": {"style": "padding:17px 28px;"}, "type": "attribute", "id": "1FD77EEF-7D06-4FED-BCF5-FDC884CE5223", "css": {"color": "rgb(52, 52, 52, 1)", "font-size": "14px"}}, {"selector": ".grid-5 tr:nth-of-type(8) > td:nth-of-type(1)", "dependencies": ["1FD77EEF-7D06-4FED-BCF5-FDC884CE5223"], "attributes": {"style": "padding:17px 28px;"}, "type": "attribute", "id": "D8A61CEA-6E1F-4CFD-B8CE-655AA5806419", "css": {"color": "rgb(52, 52, 52, 1)", "font-size": "14px"}}, {"selector": ".grid-5 tr:nth-of-type(7) > td:nth-of-type(1)", "dependencies": ["D8A61CEA-6E1F-4CFD-B8CE-655AA5806419"], "attributes": {"style": "padding:17px 28px;"}, "type": "attribute", "id": "39349A28-1F18-48FC-B23B-3CA959BBF06F", "css": {"color": "rgb(52, 52, 52, 1)", "font-size": "14px"}}, {"selector": ".grid-5 tr:nth-of-type(6) > td:nth-of-type(1)", "dependencies": ["39349A28-1F18-48FC-B23B-3CA959BBF06F"], "attributes": {"style": "padding:17px 28px;"}, "type": "attribute", "id": "A5B805C1-E99E-4836-A22C-ECE4A7137975", "css": {"color": "rgb(52, 52, 52, 1)", "font-size": "14px"}}, {"selector": ".grid-5 tr:nth-of-type(5) > td:nth-of-type(1)", "dependencies": ["A5B805C1-E99E-4836-A22C-ECE4A7137975"], "attributes": {"style": "padding:17px 28px;"}, "type": "attribute", "id": "ACB46A40-9DBE-415B-A48C-F7DE274335A0", "css": {"color": "rgb(52, 52, 52, 1)", "font-size": "14px"}}, {"selector": ".grid-5 tr:nth-of-type(4) > td:nth-of-type(1)", "dependencies": ["ACB46A40-9DBE-415B-A48C-F7DE274335A0"], "attributes": {"style": "padding:17px 28px;"}, "type": "attribute", "id": "86A57A34-3409-4E5A-97C2-038C96109B29", "css": {"color": "rgb(52, 52, 52, 1)", "font-size": "14px"}}, {"selector": ".grid-5 tr:nth-of-type(3) > td:nth-of-type(1)", "dependencies": ["86A57A34-3409-4E5A-97C2-038C96109B29"], "attributes": {"style": "padding:17px 28px;"}, "type": "attribute", "id": "DF710EFE-8EF7-4C50-B825-50B2D020993F", "css": {"color": "rgb(52, 52, 52, 1)", "font-size": "14px"}}, {"selector": ".grid-5 tr:nth-of-type(2) > td:nth-of-type(1)", "dependencies": ["DF710EFE-8EF7-4C50-B825-50B2D020993F"], "attributes": {"style": "padding:17px 28px;"}, "type": "attribute", "id": "25C85C41-2E74-4AA3-B8E2-420A298CF47A", "css": {"color": "rgb(52, 52, 52, 1)", "font-size": "14px"}}, {"selector": "th:nth-of-type(2)", "dependencies": ["25C85C41-2E74-4AA3-B8E2-420A298CF47A"], "attributes": {"style": "padding:15px 8px;"}, "type": "attribute", "id": "A81759EA-424D-42C3-85F6-BF833B9A10D3", "css": {"color": "rgba(195, 195, 195, 1)", "font-size": "10px", "font-weight": "700"}}, {"selector": "th:nth-of-type(3)", "dependencies": ["A81759EA-424D-42C3-85F6-BF833B9A10D3"], "attributes": {"style": "padding:15px 8px;"}, "type": "attribute", "id": "A6DCC073-BB3F-49B8-8BDC-A913994E4068", "css": {"color": "rgba(195, 195, 195, 1)", "font-size": "10px", "font-weight": "700"}}, {"selector": ".inner.cf > .disclaimer", "dependencies": ["A6DCC073-BB3F-49B8-8BDC-A913994E4068"], "attributes": {"html": "\u00a9 and \u2122 TrueCar, Inc. All rights reserved.\n
\nTerms of Service |\nPrivacy Policy"}, "type": "attribute", "id": "D841A7D9-F8E3-4B84-97F4-CF52CA6F3B3A", "css": {}}]}], "name": null}, {"id": "8287547211", "actions": [{"viewId": "8286962520", "changes": [{"selector": ".grid-5", "dependencies": [], "attributes": {"style": "padding:10px 40px 0px 0px;", "html": "\n\n | \nIF YOU STOP HERE | \n IF YOU CONTINUE | \n
\n\nCustomize Your Vehicle | \n | \n | \n
\n\nSee What Others Paid | \n | \n | \n
\n\nMarket Average Pricing | \n | \n | \n
\n\nReal Prices on Actual Cars | \n— | \n | \n
\n\nView Local Inventory | \n— | \n | \n
\n\nDiscounted Pricing | \n— | \n | \n
\n\nGet Multiple Dealer Offers | \n— | \n | \n
\n\nSee All Fees and Accessories | \n— | \n | \n
\n
"}, "type": "attribute", "id": "F01803F7-85D9-4FB3-B17D-8CF78C21B633", "css": {"width": "452px", "border-style": "solid", "border-width": "0px"}}, {"selector": ".grid-5 tr:nth-of-type(2) > td:nth-of-type(1)", "dependencies": ["F01803F7-85D9-4FB3-B17D-8CF78C21B633"], "attributes": {"style": "padding:17px 28px;"}, "type": "attribute", "id": "572D0305-02E5-4ABC-AFDD-A673C4085B3D", "css": {"color": "rgb(52, 52, 52, 1)", "font-size": "14px"}}, {"selector": ".grid-5 tr:nth-of-type(3) > td:nth-of-type(1)", "dependencies": ["572D0305-02E5-4ABC-AFDD-A673C4085B3D"], "attributes": {"style": "padding:17px 28px;"}, "type": "attribute", "id": "52C14FA5-355A-4731-90B2-708CEEB79F3B", "css": {"color": "rgb(52, 52, 52, 1)", "font-size": "14px"}}, {"selector": ".grid-5 tr:nth-of-type(4) > td:nth-of-type(1)", "dependencies": ["52C14FA5-355A-4731-90B2-708CEEB79F3B"], "attributes": {"style": "padding:17px 28px;"}, "type": "attribute", "id": "5ED28B1A-31D9-498C-91F6-909908294076", "css": {"color": "rgb(52, 52, 52, 1)", "font-size": "14px"}}, {"selector": ".grid-5 tr:nth-of-type(5) > td:nth-of-type(1)", "dependencies": ["5ED28B1A-31D9-498C-91F6-909908294076"], "attributes": {"style": "padding:17px 28px;"}, "type": "attribute", "id": "69E24ADA-590A-4D9C-A93F-E59B87421C24", "css": {"color": "rgb(52, 52, 52, 1)", "font-size": "14px"}}, {"selector": ".grid-5 tr:nth-of-type(6) > td:nth-of-type(1)", "dependencies": ["69E24ADA-590A-4D9C-A93F-E59B87421C24"], "attributes": {"style": "padding:17px 28px;"}, "type": "attribute", "id": "614CD843-3E85-49C2-B711-A6BF33D2748B", "css": {"color": "rgb(52, 52, 52, 1)", "font-size": "14px"}}, {"selector": ".grid-5 tr:nth-of-type(7) > td:nth-of-type(1)", "dependencies": ["614CD843-3E85-49C2-B711-A6BF33D2748B"], "attributes": {"style": "padding:17px 28px;"}, "type": "attribute", "id": "1AE86FBF-B2A7-496F-8E95-B9A1F4EA69AE", "css": {"color": "rgb(52, 52, 52, 1)", "font-size": "14px"}}, {"selector": ".grid-5 tr:nth-of-type(8) > td:nth-of-type(1)", "dependencies": ["1AE86FBF-B2A7-496F-8E95-B9A1F4EA69AE"], "attributes": {"style": "padding:17px 28px;"}, "type": "attribute", "id": "7F001BD3-922D-4A29-9B1D-76769CE7D36A", "css": {"color": "rgb(52, 52, 52, 1)", "font-size": "14px"}}, {"selector": ".grid-5 tr:nth-of-type(9) > td:nth-of-type(1)", "dependencies": ["7F001BD3-922D-4A29-9B1D-76769CE7D36A"], "attributes": {"style": "padding:17px 28px;"}, "type": "attribute", "id": "B7A7A2AC-434C-4923-A976-C2C51938F01D", "css": {"color": "rgb(52, 52, 52, 1)", "font-size": "14px"}}, {"selector": "th:nth-of-type(2)", "dependencies": ["B7A7A2AC-434C-4923-A976-C2C51938F01D"], "attributes": {"style": "padding:15px 8px;"}, "type": "attribute", "id": "2533A73B-D4FC-406A-A295-20430EA6ABB9", "css": {"color": "rgba(195, 195, 195, 1)", "font-size": "10px", "font-weight": "700"}}, {"selector": "th:nth-of-type(3)", "dependencies": ["2533A73B-D4FC-406A-A295-20430EA6ABB9"], "attributes": {"style": "padding:15px 8px;"}, "type": "attribute", "id": "66BA1E2E-9E33-4545-B4FD-2D5520CE8C47", "css": {"color": "rgba(195, 195, 195, 1)", "font-size": "10px", "font-weight": "700"}}, {"selector": ".next_steps", "dependencies": ["66BA1E2E-9E33-4545-B4FD-2D5520CE8C47"], "attributes": {"html": "\n \n Your Dealers will search local inventory and contact you with Guaranteed Savings offers on vehicles that match your preferences.\n \n \n"}, "type": "attribute", "id": "A7254C0D-3AD1-4114-90EB-188959EBF293", "css": {}}, {"selector": "h1", "dependencies": ["A7254C0D-3AD1-4114-90EB-188959EBF293"], "attributes": {"style": ""}, "type": "attribute", "id": "11032A7A-13A7-4FB1-A2E3-505E12643D4A", "css": {}}, {"selector": ".inner.cf > .disclaimer", "dependencies": ["11032A7A-13A7-4FB1-A2E3-505E12643D4A"], "attributes": {"html": "\u00a9 and \u2122 TrueCar, Inc. All rights reserved.\n
\nTerms of Service |\nPrivacy Policy"}, "type": "attribute", "id": "C60F7E17-D6EC-4271-AF15-D624C3A59299", "css": {}}]}], "name": null}], "audienceIds": null, "changes": null, "id": "8284129326", "integrationSettings": null}], "id": "8280816123", "weightDistributions": null, "name": null, "commitId": "8282089654", "decisionMetadata": null, "policy": "single_experiment", "changes": null}], "listTargetingCookies": [], "views": [{"category": "landing_page", "staticConditions": ["and", ["or", {"type": "url", "value": "prices-new", "match": "substring"}]], "name": null, "tags": [], "apiName": "price_report", "id": "8069417165"}, {"category": "landing_page", "staticConditions": ["and", ["or", {"type": "url", "value": "https://www.truecar.com/#/search", "match": "substring"}]], "name": null, "tags": [], "activationType": "polling", "activationCode": function pollingFn() {
// return document.querySelectorAll(".search-filter-list").length > 0;
return document.querySelectorAll(".aside-value-prop").length > 0;
}, "apiName": "shop_new_modal_1", "id": "8192663309"}, {"category": "home", "staticConditions": ["and", ["or", {"type": "url", "value": "https://www.truecar.com/", "match": "simple"}]], "name": null, "tags": [], "activationCode": function pollingFn() {
return document.querySelectorAll(".main-buttons").length > 0;
}, "apiName": "truecar_homepage", "id": "8212840029"}, {"category": "other", "staticConditions": ["and", ["or", {"type": "url", "value": "https://www.truecar.com/my/dashboard/", "match": "substring"}]], "name": null, "tags": [], "apiName": "post_prospect_1", "id": "8227494197"}, {"category": "landing_page", "staticConditions": ["and", ["or", {"type": "url", "value": "truecar.com/prices-new", "match": "substring"}]], "name": null, "tags": [], "activationType": "polling", "activationCode": function pollingFn() {
return document.querySelectorAll("#what_dialog.zip").length > 0;
}, "apiName": "price_report__seo_modal_1", "id": "8236475664"}, {"category": "product_detail", "staticConditions": ["and", ["or", {"type": "url", "value": "/listing/", "match": "substring"}], ["not", ["or", {"type": "url", "value": "/listings/", "match": "substring"}]]], "name": null, "tags": [], "apiName": "used_car_vdp", "id": "8243230070"}, {"category": "landing_page", "staticConditions": ["and", ["or", {"type": "url", "value": "https://www.truecar.com/m/dash/", "match": "substring"}]], "name": null, "tags": [], "apiName": "mobile_web_price_report__logged_in", "id": "8268761634"}, {"category": "landing_page", "staticConditions": ["and", ["or", {"type": "url", "value": "https://www.truecar.com/m/prices-new", "match": "substring"}]], "name": null, "tags": [], "apiName": "price_report__w_mobile_web", "id": "8269182553"}, {"category": "landing_page", "staticConditions": ["and", ["or", {"type": "url", "value": "https://www.truecar.com/m/local-car-prices", "match": "substring"}]], "name": null, "tags": [], "apiName": "mobile_web__local_price_report", "id": "8270271802"}, {"category": "other", "staticConditions": ["and", ["or", {"type": "url", "value": ".*.truecar\\.com\\/dash\\/..*\\/dealer", "match": "regex"}]], "name": null, "tags": [], "apiName": "next_steps_1_2_3_4", "id": "8286962520"}, {"category": "other", "staticConditions": ["and", ["or", {"type": "url", "value": ".*.truecar\\.com\\/dash\\/..*\\/dealer", "match": "regex"}]], "name": null, "tags": [], "apiName": "next_steps_1_2_3", "id": "8288592742"}], "projectId": "8074900146", "namespace": "8074900146", "integrationSettings": [], "dimensions": [], "audiences": [], "anonymizeIP": false, "projectJS": function(){(function(history){
var pushState = history.pushState;
history.pushState = function(state) {
if (typeof history.onpushstate == "function") {
window.onpopstate({state: state});
}
return pushState.apply(history, arguments);
};
})(window.history);
var currentUrl = document.location.hostname + document.location.pathname;
onPotentialRouteChange = function () {
window.setTimeout(function() {
var newUrl = document.location.hostname + document.location.pathname;
if (newUrl !== currentUrl) {
onRouteChange();
}
currentUrl = newUrl;
}, 10);
};
history.onpushstate = onPotentialRouteChange;
window.onpopstate = onPotentialRouteChange;
onRouteChange = function() {
window.optimizely = window.optimizely || [];
window.optimizely.push({type: 'activate'});
};
window.addEventListener("hashchange", function() {
window.optimizely = window.optimizely || [];
optimizely.push({type: 'activate'});
}, false);
// ONLY on used cars, when a modal is opened or closed, keep track of the state
// and trigger optimizely to activate when it changes
// commented out to show Optimizely
(function () {
if (window.location.href.indexOf("used-cars-for-sale/") !== -1) {
var oldModalOpenState = !!document.querySelectorAll(".modal-dialog").length;
setInterval(function () {
var newModalOpenState = !!document.querySelectorAll(".modal-dialog").length;
if (oldModalOpenState !== newModalOpenState) {
optimizely.push({type: 'activate'});
oldModalOpenState = newModalOpenState;
}
}, 300);
}
})();
}, "visitorAttributes": [], "accountId": "7921835024", "events": [{"category": "other", "name": null, "eventType": "click", "viewId": "8068689924", "apiName": "clicked_on_car_make", "id": "8072132289", "eventFilter": {"filterType": "target_selector", "selector": "ul > li > a.ng-binding"}}, {"category": "other", "name": null, "eventType": "click", "viewId": "8212840029", "apiName": "clicked_shop_new_or_shop_used", "id": "8212030043", "eventFilter": {"filterType": "target_selector", "selector": ".main-buttons"}}, {"category": "other", "name": null, "eventType": "click", "viewId": "8212840029", "apiName": "clicked_a_brand_1", "id": "8212840030", "eventFilter": {"filterType": "target_selector", "selector": ".makes > ul > li"}}, {"category": "other", "name": null, "eventType": "click", "viewId": "8212840029", "apiName": "clicked_shop_new_2", "id": "8216370444", "eventFilter": {"filterType": "target_selector", "selector": ".btn-start.btn-primary-solid"}}, {"category": "other", "name": null, "eventType": "click", "viewId": "8212840029", "apiName": "clicked_shop_used_2", "id": "8218580016", "eventFilter": {"filterType": "target_selector", "selector": ".btn-start.btn-tertiary"}}, {"category": "convert", "name": null, "eventType": "click", "viewId": "8243230070", "apiName": "clicked_lead_submit_1", "id": "8235216460", "eventFilter": {"filterType": "target_selector", "selector": "#lead-submit"}}, {"category": "convert", "name": null, "eventType": "click", "viewId": "8069417165", "apiName": "clicked_cta_any_orange_button", "id": "8235455347", "eventFilter": {"filterType": "target_selector", "selector": ".dealers.button.btn.btn-primary.btn-large, .btn.btn-primary.btn-large.btn-wide, .locate-dealers.orange-button"}}, {"category": "other", "name": null, "eventType": "click", "viewId": "8251589544", "apiName": "clicked_shop_new_1", "id": "8249687387", "eventFilter": {"filterType": "target_selector", "selector": ".btn-start.btn-primary-solid"}}, {"category": "other", "name": null, "eventType": "click", "viewId": "8251589544", "apiName": "clicked_shop_used_1", "id": "8253501363", "eventFilter": {"filterType": "target_selector", "selector": ".btn-start.btn-tertiary"}}, {"category": "convert", "name": null, "eventType": "click", "viewId": "8269182553", "apiName": "clicked_cta_any_orange_button_1", "id": "8270271804", "eventFilter": {"filterType": "target_selector", "selector": ".btn.btn-large.btn-primary.btn-wide.faux-submit"}}], "revision": "166"},v=n(88);if(f.populateDirectiveData(),u.shouldBailForDesktopApp())return void a.log("Main / Disabling because of desktop app.");if(u.shouldLoadInnie())h.registerFunction("getProjectId",(function(){return g.projectId})),p.addScriptAsync("https://app.optimizely.com/js/innie.js"),a.log("Main / Disabling in favor of the editor client.");else if(u.shouldLoadPreview()){var m;m=u.isSlave()?window.optimizely:window.optimizely=window.optimizely||[],m.push({type:"load",data:g}),a.log("Main / Disabling in favor of the preview client."),n(135).setupPreviewGlobal(),n(135).pushToPreviewGlobal({type:"pushPreviewData",name:"liveCommitData",data:g}),u.isSlave()||(h.registerFunction("getProjectId",(function(){return g.projectId})),p.addScriptSync("https://optimizely.s3.amazonaws.com/js/preview2/8074900146.js"))}else if(u.shouldBootstrapDataForPreview()){h.registerFunction("initializeOptimizelyPreview",e);var _=u.isSlave()?PROJECT_ID_FOR_SLAVE_PREVIEW:h.getFunction("getProjectId")();l=t(u.getProjectToken(),_,u.getPreviewLayerIds()),p.addScriptSync(l),n(135).setupPreviewGlobal(),p.addScriptAsync("/dist/js/preview_ui.js")}else u.shouldBootstrapDataForEditor()?(h.registerFunction("initializeOptimizelyPreview",e),p.addScriptAsync(window.optimizely_editor_data_endpoint)):u.shouldInitialize()&&e(g);i.timeEnd("block")}try{i()}catch(e){try{n(133).handleError(e)}catch(e){console.log(e)}}}),(function(e,t,n){function i(){return u.getGlobal("performance")}var r=n(2),o=n(5),a=n(11),s=n(14),u=n(16),c=n(17),l=n(12),d="optimizely:",f=t.Error=r("PerformanceError");t.time=function(e){var t=i();if(t&&t.mark){var n=d+e;t.clearMarks(n+"Begin"),t.mark(n+"Begin")}},t.timeEnd=function(e){var t=i();if(t&&t.mark){var n=d+e,r=t.getEntriesByName(n+"Begin");if(0===r.length)throw new f("Called timeEnd without matching time: "+e);t.clearMarks(n+"End"),t.mark(n+"End");var s=t.getEntriesByName(n+"End"),u=e+"Time";if(o.dispatch(c.SET_PERFORMANCE_MARKS_DATA,{name:u,data:{start:r[0].startTime,end:s[0].startTime}}),a.shouldLog(l.LogLevel.INFO)){var p=d+u;t.measure(p,n+"Begin",n+"End")}else t.clearMarks(n+"Begin"),t.clearMarks(n+"End")}},t.now=function(){var e=i();return e?e.now():s.now()}}),(function(e,t,n){function i(e,t){function n(t){if(!(this instanceof n))return new n(t);try{throw new Error(t)}catch(t){t.name=e,this.stack=t.stack}r&&this.stack&&(this.stack=o(this.stack,e,t)),this.message=t||"",this.name=e}return n.prototype=new(t||Error),n.prototype.constructor=n,n.prototype.inspect=function(){return this.message?"["+e+": "+this.message+"]":"["+e+"]"},n.prototype.name=e,n}var r=n(3)(),o=n(4);e.exports=i}),(function(e,t){"use strict";e.exports=function(){var e=new Error("yep");return!!e.stack&&"Error: yep\n"===e.stack.substr(0,11)}}),(function(e,t){"use strict";e.exports=function(e,t,n){var i=t;return n&&(i+=": "+n),e=i+e.slice(e.indexOf("\n"))}}),(function(e,t,n){var i=n(6);e.exports=i.create()}),(function(e,t,n){function i(e){e=e||{},this.e={},this.t={},this.i=0,this.a=[],this.u=[]}function r(e,t){return function(){var n=e.indexOf(t);n!==-1&&e.splice(n,1)}}var o=n(7),a=n(8);i.prototype.registerStores=function(e){a.forOwn(e,function(e,t){this.e[t]=new o(t,this,e)}.bind(this))},i.prototype.getStore=function(e){return this.e[e]},i.prototype.dispatch=function(e,t){this.dispatchId++,a.each(this.a,function(n){n.call(this,e,t)}.bind(this)),a.forOwn(this.e,(function(n){n.l(e,t)})),a.each(this.u,function(n){n.call(this,e,t)}.bind(this)),a.forOwn(this.e,function(e,t){e.hasChanges()&&this.t[t]&&(e.resetChange(),a.each(this.t[t],(function(t){t(e)})))}.bind(this))},i.prototype.reset=function(){this.t={},a.forOwn(this.e,(function(e,t){e.d()}))},i.prototype.getState=function(){var e={};return a.forOwn(this.e,(function(t,n){e[n]=t.f()})),e},i.prototype.onPreAction=function(e){var t=this.a;return t.push(e),r(t,e)},i.prototype.onPostAction=function(e){var t=this.u;return t.push(e),r(t,e)},i.prototype.h=function(e,t){this.t[e]||(this.t[e]=[]),this.t[e].push(t);var n=this.t[e];return r(n,t)},e.exports={create:function(e){return new i(e)}}}),(function(e,t,n){function i(e,t,n){this.g=e,this.v=t,this.I=0,this.T=!1,this.w={},r.extend(this,n),this.b={},this.initialize&&this.initialize()}var r=n(8);i.prototype.l=function(e,t){var n=this.w[e];n&&"function"==typeof n&&n.call(this,t,e)},i.prototype.f=function(){return r.cloneDeep(this.b)},i.prototype.on=function(e,t){this.w[e]=t.bind(this)},i.prototype.observe=function(e){return this.v.h(this.g,e)},i.prototype.emitChange=function(){this.T=!0,this.I++},i.prototype.hasChanges=function(){return this.T},i.prototype.resetChange=function(){this.T=!1},i.prototype.getStateId=function(){return this.I},i.prototype.d=function(){this.reset&&"function"==typeof this.reset&&this.reset(),this.initialize()},e.exports=i}),(function(e,t,n){e.exports=n(9)._.noConflict()}),(function(e,t,n){(function(e,n){(function(){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){return u(De(e),pn)}function a(e,t){return!!e.length&&f(e,t,0)>-1}function s(e,t,n){for(var i=-1,r=e.length;++it&&!o||!r||n&&!a&&s||i&&s)return 1;if(e-1&&e%1==0&&e-1}function Q(e,t){for(var n=e.length;n--;)if(xt(e[n][0],t))return n;return-1}function J(e,t,n){var i=Q(e,t);i<0?e.push([t,n]):e[i][1]=n}function Z(e,t,n,i){return e===bn||xt(e,Si[n])&&!Di.call(i,n)?t:e}function ee(e,t,n){(n===bn||xt(e[t],n))&&("number"!=typeof t||n!==bn||t in e)||(e[t]=n)}function te(e,t,n){var i=e[t];Di.call(e,t)&&xt(i,n)&&(n!==bn||t in e)||(e[t]=n)}function ne(e,t){return e&&ir(t,sn(t),e)}function ie(e){return"function"==typeof e?e:vn}function re(e,t,n,i,r,o,a){var s;if(i&&(s=o?i(e,r,o,a):i(e)),s!==bn)return s;if(!Bt(e))return e;var u=dr(e);if(u){if(s=$e(e),!t)return De(e,s)}else{var c=Ke(e),l=c==Gn||c==jn;if(fr(e))return xe(e,t);if(c==zn||c==Pn||l&&!o){if(I(e))return o?e:{};if(s=Xe(l?{}:e),!t)return s=ne(s,e),n?Me(e,s):s}else{if(!pi[c])return o?e:{};s=Qe(e,c,t)}}a||(a=new B);var d=a.get(e);return d?d:(a.set(e,s),(u?tr:fe)(e,(function(r,o){te(s,o,re(r,t,n,i,o,e,a))})),n&&!u?Me(e,s):s)}function oe(e){return Bt(e)?Gi(e):{}}function ae(e,t,n){if("function"!=typeof e)throw new TypeError(Dn);return setTimeout((function(){e.apply(bn,n)}),t)}function se(e,t,n,i){var r=-1,o=a,u=!0,c=e.length,l=[],d=t.length;if(!c)return l;n&&(t=ye(t,g(n))),i?(o=s,u=!1):t.length>=An&&(o=G,u=!1,t=new U(t));e:for(;++r0&&kt(a)&&(n||dr(a)||Rt(a))?t>1?le(a,t-1,n,i):u(i,a):n||(i[i.length]=a)}return i}function de(e,t){return null==e?e:nr(e,t,un)}function fe(e,t){return e&&nr(e,t,sn)}function pe(e,t){return ce(t,(function(t){return Gt(e[t])}))}function he(e,t,n,i,r){return e===t||(null==e||null==t||!Bt(e)&&!Ht(t)?e!==e&&t!==t:ge(e,t,he,n,i,r))}function ge(e,t,n,i,r,o){var a=dr(e),s=dr(t),u=Vn,c=Vn;a||(u=xi.call(e),u=u==Pn?zn:u),s||(c=xi.call(t),c=c==Pn?zn:c);var l=u==zn&&!I(e),d=c==zn&&!I(t),f=u==c;o||(o=[]);var p=vt(o,(function(t){return t[0]===e}));if(p&&p[1])return p[1]==t;if(o.push([e,t]),f&&!l){var h=a||Qt(e)?ze(e,t,n,i,r,o):qe(e,t,u,n,i,r,o);return o.pop(),h}if(!(r&Rn)){var g=l&&Di.call(e,"__wrapped__"),v=d&&Di.call(t,"__wrapped__");if(g||v){var h=n(g?e.value():e,v?t.value():t,i,r,o);return o.pop(),h}}if(!f)return!1;var h=Ye(e,t,n,i,r,o);return o.pop(),h}function ve(e){var t=typeof e;return"function"==t?e:null==e?vn:("object"==t?Ee:Se)(e)}function me(e){return zi(Object(e))}function _e(e){e=null==e?e:Object(e);var t=[];for(var n in e)t.push(n);return t}function ye(e,t){var n=-1,i=Lt(e)?Array(e.length):[];return tr(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Ee(e){var t=sn(e);return function(n){var i=t.length;if(null==n)return!i;for(n=Object(n);i--;){var r=t[i];if(!(r in n&&he(e[r],n[r],bn,Cn|Rn)))return!1}return!0}}function Ie(e,t,n,i,r){if(e!==t){var o=dr(t)||Qt(t)?bn:un(t);tr(o||t,(function(a,s){if(o&&(s=a,a=t[s]),Bt(a))r||(r=new B),Te(e,t,s,n,Ie,i,r);else{var u=i?i(e[s],a,s+"",e,t,r):bn;u===bn&&(u=a),ee(e,s,u)}}))}}function Te(e,t,n,i,r,o,a){var s=e[n],u=t[n],c=a.get(u);if(c)return void ee(e,n,c);var l=o?o(s,u,n+"",e,t,a):bn,d=l===bn;d&&(l=u,dr(u)||Qt(u)?dr(s)?l=s:kt(s)?l=De(s):(d=!1,l=re(u,!o)):Kt(u)||Rt(u)?Rt(s)?l=tn(s):!Bt(s)||i&&Gt(s)?(d=!1,l=re(u,!o)):l=s:d=!1),a.set(u,l),d&&r(l,u,i,o,a),a.delete(u),ee(e,n,l)}function we(e,t){return e=Object(e),Et(t,(function(t,n){return n in e&&(t[n]=e[n]),t}),{})}function be(e,t){var n={};return de(e,(function(e,i){t(e,i)&&(n[i]=e)})),n}function Se(e){return function(t){return null==t?bn:t[e]}}function Ae(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(r);++i1?n[r-1]:bn;for(o="function"==typeof o?(r--,o):bn,t=Object(t);++ic))return!1;for(var d=!0;++a-1:!!r&&f(e,t,n)>-1}function yt(e,t){return ye(e,ve(t))}function Et(e,t,n){return p(e,ve(t),n,arguments.length<3,tr)}function It(e){return null==e?0:(e=Lt(e)?e:sn(e),e.length)}function Tt(e,t,n){return t=n?bn:t,Oe(e,ve(t))}function wt(e,t){var n=0;return t=ve(t),ye(ye(e,(function(e,i,r){return{value:e,index:n++,criteria:t(e,i,r)}})).sort((function(e,t){return _(e.criteria,t.criteria)||e.index-t.index})),Se("value"))}function bt(e,t){var n;if("function"!=typeof t)throw new TypeError(Dn);return e=pr(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=bn),n}}function St(e){if("function"!=typeof e)throw new TypeError(Dn);return function(){return!e.apply(this,arguments)}}function At(e){return bt(2,e)}function Dt(e,t){if("function"!=typeof e)throw new TypeError(Dn);return t=qi(t===bn?e.length-1:pr(t),0),function(){for(var n=arguments,i=-1,r=qi(n.length-t,0),o=Array(r);++it}function Rt(e){return kt(e)&&Di.call(e,"callee")&&(!ji.call(e,"callee")||xi.call(e)==Pn)}function Lt(e){return null!=e&&jt(rr(e))&&!Gt(e)}function kt(e){return Ht(e)&&Lt(e)}function Pt(e){return e===!0||e===!1||Ht(e)&&xi.call(e)==Fn}function Vt(e){return Ht(e)&&xi.call(e)==Mn}function Ft(e){if(Lt(e)&&(dr(e)||Xt(e)||Gt(e.splice)||Rt(e)))return!e.length;for(var t in e)if(Di.call(e,t))return!1;return!0}function Mt(e,t){return he(e,t)}function Ut(e){return"number"==typeof e&&Hi(e)}function Gt(e){var t=Bt(e)?xi.call(e):"";return t==Gn||t==jn}function jt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=kn}function Bt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ht(e){return!!e&&"object"==typeof e}function zt(e){return Wt(e)&&e!=+e}function qt(e){return null!=e&&(Gt(e)?Ri.test(Ai.call(e)):Ht(e)&&(I(e)?Ri:li).test(e))}function Yt(e){return null===e}function Wt(e){return"number"==typeof e||Ht(e)&&xi.call(e)==Hn}function Kt(e){if(!Ht(e)||xi.call(e)!=zn||I(e))return!1;var t=Mi(e);if(null===t)return!0;var n=t.constructor;return"function"==typeof n&&n instanceof n&&Ai.call(n)==Ni}function $t(e){return Bt(e)&&xi.call(e)==qn}function Xt(e){return"string"==typeof e||!dr(e)&&Ht(e)&&xi.call(e)==Wn}function Qt(e){return Ht(e)&&jt(e.length)&&!!fi[xi.call(e)]}function Jt(e){return e===bn}function Zt(e,t){return e"'`]/g,si=RegExp(ai.source),ui=/[\\^$.*+?()[\]{}|]/g,ci=/\w*$/,li=/^\[object .+?Constructor\]$/,di=/^(?:0|[1-9]\d*)$/,fi={};fi[Qn]=fi[Jn]=fi[Zn]=fi[ei]=fi[ti]=fi[ni]=fi[ii]=fi[ri]=fi[oi]=!0,fi[Pn]=fi[Vn]=fi[Xn]=fi[Fn]=fi[Mn]=fi[Un]=fi[Gn]=fi[Bn]=fi[Hn]=fi[zn]=fi[qn]=fi[Yn]=fi[Wn]=fi[$n]=!1;var pi={};pi[Pn]=pi[Vn]=pi[Xn]=pi[Fn]=pi[Mn]=pi[Qn]=pi[Jn]=pi[Zn]=pi[ei]=pi[ti]=pi[Bn]=pi[Hn]=pi[zn]=pi[qn]=pi[Yn]=pi[Wn]=pi[Kn]=pi[ni]=pi[ii]=pi[ri]=pi[oi]=!0,pi[Un]=pi[Gn]=pi[$n]=!1;var hi={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},gi={function:!0,object:!0},vi=gi[typeof t]&&t&&!t.nodeType?t:bn,mi=gi[typeof e]&&e&&!e.nodeType?e:bn,_i=mi&&mi.exports===vi?vi:bn,yi=m(vi&&mi&&"object"==typeof n&&n),Ei=m(gi[typeof self]&&self),Ii=m(gi[typeof window]&&window),Ti=m(gi[typeof this]&&this),wi=yi||Ii!==(Ti&&Ti.window)&&Ii||Ei||Ti||Function("return this")(),bi=Array.prototype,Si=Object.prototype,Ai=Function.prototype.toString,Di=Si.hasOwnProperty,Oi=0,Ni=Ai.call(Object),xi=Si.toString,Ci=wi._,Ri=RegExp("^"+Ai.call(Di).replace(ui,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Li=_i?wi.Buffer:bn,ki=wi.Reflect,Pi=wi.Symbol,Vi=wi.Uint8Array,Fi=ki?ki.enumerate:bn,Mi=Object.getPrototypeOf,Ui=Object.getOwnPropertySymbols,Gi=Object.create,ji=Si.propertyIsEnumerable,Bi=bi.splice,Hi=wi.isFinite,zi=Object.keys,qi=Math.max,Yi=We(wi,"Map"),Wi=We(wi,"Set"),Ki=We(wi,"WeakMap"),$i=We(Object,"create"),Xi=Yi?Ai.call(Yi):"",Qi=Wi?Ai.call(Wi):"",Ji=Ki?Ai.call(Ki):"",Zi=Pi?Pi.prototype:bn,er=Zi?Zi.valueOf:bn,tr=Ge(fe),nr=je();Fi&&!ji.call({valueOf:1},"valueOf")&&(_e=function(e){return w(Fi(e))});var ir=Fe,rr=Se("length"),or=Ui||function(){return[]};(Yi&&Ke(new Yi)!=Bn||Wi&&Ke(new Wi)!=Yn||Ki&&Ke(new Ki)!=$n)&&(Ke=function(e){var t=xi.call(e),n=t==zn?e.constructor:null,i="function"==typeof n?Ai.call(n):"";if(i)switch(i){case Xi:return Bn;case Qi:return Yn;case Ji:return $n}return t});var ar=Dt((function(e,t){return dr(e)||(e=null==e?[]:[Object(e)]),t=le(t,1),o(e,t)})),sr=Dt((function(e,t,n){return He(e,Nn|xn,t,n)})),ur=Dt((function(e,t){return ae(e,1,t)})),cr=Dt((function(e,t,n){return ae(e,hr(t)||0,n)})),lr=Dt((function(e,t){return He(e,xn,bn,t)})),dr=Array.isArray,fr=Li?function(e){return e instanceof Li}:gn(!1),pr=Number,hr=Number,gr=Ue((function(e,t){ir(t,sn(t),e)})),vr=Ue((function(e,t){ir(t,un(t),e)})),mr=Ue((function(e,t,n,i){Fe(t,un(t),e,i)})),_r=Dt((function(e){return e.push(bn,Z),mr.apply(bn,e)})),yr=Ue((function(e,t,n){Ie(e,t,n)})),Er=Dt((function(e,t){return null==e?{}:(t=ye(le(t,1),String),we(e,se(un(e),t)))})),Ir=Dt((function(e,t){return null==e?{}:we(e,le(t,1))})),Tr=ve;D.prototype=oe(A.prototype),D.prototype.constructor=D,O.prototype=$i?$i(null):Si,L.prototype.clear=k,L.prototype.delete=P,L.prototype.get=V,L.prototype.has=F,L.prototype.set=M,U.prototype.push=j,B.prototype.clear=H,B.prototype.delete=z,B.prototype.get=q,B.prototype.has=Y,B.prototype.set=W,A.assign=gr,A.assignIn=vr,A.before=bt,A.bind=sr,A.chain=lt,A.compact=nt,A.concat=ar,A.create=rn,A.defaults=_r,A.defer=ur,A.delay=cr,A.filter=gt,A.flatten=rt,A.flattenDeep=ot,A.iteratee=Tr,A.keys=sn,A.map=yt,A.mapValues=cn,A.matches=mn,A.merge=yr,A.mixin=_n,A.negate=St,A.omit=Er,A.omitBy=ln,A.once=At,A.partial=lr,A.pick=Ir,A.pickBy=dn,A.slice=ct,A.sortBy=wt,A.tap=dt,A.thru=ft,A.toArray=en,A.values=pn,A.extend=vr,_n(A,A),A.clone=Ot,A.cloneDeep=Nt,A.escape=hn,A.every=ht,A.find=vt,A.findIndex=it,A.forEach=mt,A.forOwn=on,A.has=an,A.head=at,A.identity=vn,A.includes=_t,A.indexOf=st,A.isArguments=Rt,A.isArray=dr,A.isBoolean=Pt,A.isDate=Vt,A.isEmpty=Ft,A.isEqual=Mt,A.isFinite=Ut,A.isFunction=Gt,A.isNaN=zt,A.isNull=Yt,A.isNumber=Wt,A.isObject=Bt,A.isRegExp=$t,A.isString=Xt,A.isUndefined=Jt,A.last=ut,A.max=Tn,A.min=wn,A.noConflict=yn,A.noop=En,A.reduce=Et,A.result=fn,A.size=It,A.some=Tt,A.uniqueId=In,A.each=mt,A.first=at,_n(A,(function(){var e={};return fe(A,(function(t,n){Di.call(A.prototype,n)||(e[n]=t)})),e})(),{chain:!1}),A.VERSION=Sn,tr(["pop","join","replace","reverse","split","push","shift","sort","splice","unshift"],(function(e){var t=(/^(?:replace|split)$/.test(e)?String.prototype:bi)[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|join|replace|shift)$/.test(e);A.prototype[e]=function(){var e=arguments;return i&&!this.D?t.apply(this.value(),e):this[n]((function(n){return t.apply(n,e)}))}})),A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=pt,(Ii||Ei||{})._=A,vi&&mi&&(_i&&((mi.exports=A)._=A),vi._=A)}).call(this)}).call(t,n(10)(e),(function(){return this})())}),(function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}}),(function(e,t,n){function i(e){e=o.extend({logLevel:"ERROR",logMatch:""},e),this.setLogMatcher(e.logMatch),this.setLogLevel(e.logLevel),this.logs=[],this.timebase=s.now()}function r(){var e=u.getQueryParamValue("optimizely_log");if(e){var t=e.split(":"),n=""===t[0]?"OFF":String(t[0]).toUpperCase(),i="undefined"==typeof t[1]?"":t[1];return{logLevel:n,logMatch:i}}return{logLevel:"OFF",logMatch:""}}var o=n(8),a=n(12),s=n(14),u=n(15),c=n(5),l=n(17),d=n(18);i.prototype.setLogLevel=function(e){var t=this.N(e),n=this.logLevel;null===t?console.error("Unknown log level: "+e):(this.logLevel=t,this.logLevel>a.LogLevel.OFF&&(console.log("Setting log level to "+t),o.isUndefined(n)||this.flush()))},i.prototype.setLogMatcher=function(e){o.isString(e)?this.logMatcher=e:this.logMatcher="",this.logGroup=0},i.prototype.shouldLog=function(e){return this.logLevel>=e},i.prototype.matchesLogMessage=function(e,t){var n=this.logMatcher;if(!this.logMatcher)return!0;if(this.logGroup)return"GROUPSTART"===e?this.logGroup++:"GROUPEND"===e&&this.logGroup--,!0;var i=o.some(t,(function(e){if(!o.isString(e))try{e=d.stringify(e)}catch(e){}return o.isString(e)&&o.includes(e,n)}));return i&&"GROUPSTART"===e&&this.logGroup++,i},i.prototype.storeLog=function(e,t){var n={logLevel:e,logMessage:t};c.dispatch(l.LOG,n)},i.prototype.flush=function(){var e=n(19),t=e.get("stores/log");this.logGroup=0;var i=t.getLogs();o.each(i,function(e){this.x(e.logLevel,e.logMessage,!0)}.bind(this))},i.prototype.x=function(e,t,n){var i,r=e;if(console)switch(e){case"GROUPSTART":i=console.groupCollapsed,r=a.LogLevel.DEBUG;break;case"GROUPEND":i=console.groupEnd,r=a.LogLevel.DEBUG;break;case a.LogLevel.ERROR:i=console.error;break;case a.LogLevel.WARN:i=console.warn;break;case a.LogLevel.DEBUG:i=console.debug;break;default:i=console.log}try{!n&&this.shouldLog(r)&&(o.isArray(t)&&o.isString(t[0])&&(t=this.C(t)),this.storeLog(e,t)),i&&this.shouldLog(r)&&this.matchesLogMessage(e,t)&&i.apply(console,t)}catch(e){console&&(console.error?console.error(e):console.log(e))}},i.prototype.debug=function(){this.x(a.LogLevel.DEBUG,[].slice.call(arguments))},i.prototype.log=function(){this.x(a.LogLevel.INFO,[].slice.call(arguments))},i.prototype.logAlways=function(){var e=this.C([].slice.call(arguments));console&&console.log&&console.log.apply&&console.log.apply(console,e),this.storeLog(a.LogLevel.INFO,e)},i.prototype.warn=function(){this.x(a.LogLevel.WARN,[].slice.call(arguments))},i.prototype.error=function(e){var t=[].slice.call(arguments);1===t.length&&e.stack?(this.x(a.LogLevel.ERROR,[this.R(),e]),this.x(a.LogLevel.INFO,[e.stack])):this.x(a.LogLevel.ERROR,t)},i.prototype.groupCollapsed=function(){this.x("GROUPSTART",[].slice.call(arguments))},i.prototype.groupEnd=function(){this.x("GROUPEND",[].slice.call(arguments))},i.prototype.C=function(e){var t=this.R().toString();return t.length<6&&(t=(" "+t).slice(-6)),[t+"| Optly / "+e[0]].concat(e.slice(1))},i.prototype.R=function(){return this.timebase?s.now()-this.timebase:0},i.prototype.N=function(e){return e&&(e=e.toUpperCase(),"TRUE"===e&&(e="INFO"),"FALSE"===e&&(e="OFF"),!o.isUndefined(a.LogLevel[e]))?a.LogLevel[e]:null},e.exports=new i(r())}),(function(e,t,n){var i=n(13);t.COOKIES={OPT_OUT:"optimizelyOptOut",PREVIEW:"optimizelyPreview",REDIRECT:"optimizelyRedirectData",SESSION_STATE:"optimizelySessionState",TOKEN:"optimizelyToken",VISITOR_ID:"optimizelyEndUserId",VISITOR_UUID:"optimizelyPPID"},t.LayerActivationTypes={CONDITIONAL:"conditional",IMMEDIATE:"immediate",MANUAL:"manual",READY:"ready",TIMEOUT:"timeout"},t.LogLevel={OFF:0,ERROR:1,WARN:2,INFO:3,DEBUG:4,ALL:5},t.Lifecycle=i({preActivate:null,postVisitorProfileLoad:null,postViewsActivated:null,postActivate:null}),t.ViewActivationTypes=i({immediate:null,manual:null,callback:null,polling:null}),t.StorageKeys={PENDING_EVENTS:"pending_events"},t.PluginTypes=i({visitorProfileProviders:null,viewProviders:null,audienceMatchers:null,viewMatchers:null,analyticsTrackers:null,viewTagLocators:null,userFeatureDefs:null,apiModules:null,changeAppliers:null,deciders:null,eventImplementations:null}),t.ResourceTimingAttributes=i({connectStart:null,connectEnd:null,decodedBodySize:null,domainLookupStart:null,domainLookupEnd:null,duration:null,encodedBodySize:null,fetchStart:null,
requestStart:null,responseStart:null,responseEnd:null,secureConnectionStart:null,startTime:null,transferSize:null}),t.RUMPerformanceTimingAttributes=i({blockTime:null}),t.AttributionTypes=i({FIRST_TOUCH:null,LAST_TOUCH:null}),t.SandboxedFunctions=i({XMLHttpRequest:null}),t.PerformanceData=i({performance_marks:null,resource_timing:null,performance_timing:null}),t.VisitorStorageKeys={EVENTS:"events",EVENT_QUEUE:"event_queue",LAYER_STATES:"layer_states",SESSION_STATE:"session_state",VISITOR_PROFILE:"visitor_profile",VARIATION_MAP:"variation_map"}}),(function(e,t){"use strict";var n=function(e){var t,n={};if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};e.exports=n}),(function(e,t){t.now=function(){return+new Date}}),(function(e,t,n){var i=n(8),r=n(16);t.getQueryParams=function(){var e=r.getLocationSearch()||"";if(0===e.indexOf("?")&&(e=e.substring(1)),0===e.length)return[];for(var t=e.split("&"),n=[],i=0;i0&&(o=s[0]),s.length>1&&(a=s[1]),n.push([o,a])}return n},t.getQueryParamValue=function(e){for(var n=t.getQueryParams(),i=0;i-1&&(t.splice(n,1),this.emitChange())}else this.b[e.lifecycle]=[],this.emitChange()}}}),(function(e,t,n){var i=n(17),r=31536e4;e.exports={initialize:function(){this.b={currentDomain:null,defaultAgeSeconds:r},this.on(i.SET_COOKIE_DOMAIN,this.B),this.on(i.SET_COOKIE_AGE,this.H)},getCurrentDomain:function(){return this.b.currentDomain},getDefaultAgeInSeconds:function(){return this.b.defaultAgeSeconds},B:function(e){this.b.currentDomain=e,this.emitChange()},H:function(e){this.b.defaultAgeSeconds=e,this.emitChange()}}}),(function(e,t,n){var i=n(8),r=n(17);e.exports={initialize:function(){this.b={},this.on(r.DATA_LOADED,this.k)},getAll:function(){return i.cloneDeep(i.values(this.b))},get:function(e){return i.cloneDeep(this.b[e])},getByApiName:function(e){return i.find(i.values(this.b),{apiName:e})},getByViewId:function(e){return i.cloneDeep(i.filter(this.b,{viewId:e}))},k:function(e){i.isEmpty(e.data.events)||(i.each(e.data.events,function(e){this.b[e.id]=e}.bind(this)),this.emitChange())}}}),(function(e,t,n){function i(e){var t=[];return e&&r.isObject(e)?(e.type&&t.push(e.type),t.push(a),e.type&&e.name&&t.push(e.name),t.join("")):a}var r=n(8),o=n(17),a="|";e.exports={initialize:function(){this.b={handlers:{}},this.on(o.ADD_EMITTER_HANDLER,this.z),this.on(o.REMOVE_EMITTER_HANDLER,this.q)},getHandlers:function(e,t){var n=[null,{type:e.type},{type:e.type,name:e.name}],o=[];return r.each(n,function(e){var t=i(e),n=this.b.handlers[t];n&&(o=o.concat(n))}.bind(this)),t&&(o=r.filter(o,(function(e){return!e.publicOnly}))),r.map(o,(function(e){return e.handler}))},z:function(e){var t=i(e.filter);this.b.handlers[t]||(this.b.handlers[t]=[]),this.b.handlers[t].push({handler:e.handler,token:e.token,publicOnly:!!e.publicOnly}),this.emitChange()},q:function(e){var t=!1,n=e.token;r.forOwn(this.b.handlers,(function(e,i){r.each(e,(function(i,r){i.token===n&&(t=!0,e.splice(r,1))}))})),t&&this.emitChange()}}}),(function(e,t,n){var i=n(8),r=n(17);e.exports={initialize:function(){this.b={},this.on(r.DATA_LOADED,this.k)},k:function(e){i.isEmpty(e.data.dimensions)||(i.each(e.data.dimensions,function(e){this.b[e.id]=e}.bind(this)),this.emitChange())},getAll:function(){return i.cloneDeep(i.values(this.b))},getById:function(e){return i.cloneDeep(this.b[e])},getByApiName:function(e){return i.cloneDeep(i.find(i.values(this.b),{apiName:e}))}}}),(function(e,t,n){var i=n(8),r=n(17);e.exports={initialize:function(){this.b={disabled:!1,forceAudienceIds:[],forceVariationIds:[],isEditor:!1,isPreview:!1,isLegacyPreview:!1,isSlave:!1,previewLayerIds:[],projectToken:null,shouldOptOut:!1,trackingDisabled:!1,isRunningInV2Editor:!1,isRunningInDesktopApp:!1,forceTracking:!1},this.on(r.LOAD_DIRECTIVE,this.Y)},getAll:function(){return i.cloneDeep(this.b)},isDisabled:function(){return this.b.disabled},isEditor:function(){return this.b.isEditor},getForceAudienceIds:function(){return this.b.forceAudienceIds},getForceVariationIds:function(){return this.b.forceVariationIds},getPreviewLayerIds:function(){return this.b.previewLayerIds},getProjectToken:function(){return this.b.projectToken},getForceTracking:function(){return this.b.forceTracking},shouldActivate:function(){return!this.b.isEditor&&!this.isDisabled()},shouldBootstrapDataForPreview:function(){return this.b.isPreview},shouldBootstrapDataForEditor:function(){return this.b.isEditor},shouldInitialize:function(){return!(this.shouldOptOut()||this.shouldLoadPreview()||this.isDisabled()||this.getProjectToken())},shouldLoadPreview:function(){return!(this.b.isPreview||this.b.isLegacyPreview||!this.getProjectToken()||this.b.isEditor)},shouldBailForDesktopApp:function(){return!this.b.isEditor&&this.b.isRunningInDesktopApp},shouldLoadInnie:function(){return!this.b.isSlave&&!this.b.isEditor&&this.b.isRunningInV2Editor},shouldOptOut:function(){return this.b.shouldOptOut},shouldSendTrackingData:function(){return!this.b.trackingDisabled&&(!!this.b.forceTracking||!this.b.isPreview&&i.isEmpty(this.getForceVariationIds())&&i.isEmpty(this.getForceAudienceIds()))},isSlave:function(){return this.b.isSlave},isRunningInDesktopApp:function(){return this.b.isRunningInDesktopApp},isRunningInV2Editor:function(){return this.b.isRunningInV2Editor},Y:function(e){i.extend(this.b,e),this.emitChange()}}}),(function(e,t,n){var i=n(8),r=n(17);e.exports={initialize:function(){this.b={holdback:0,isGlobalHoldback:null,listTargetingCookies:[],revision:null,projectId:null,accountId:null,namespace:null,activationId:null,dcpServiceId:null,dcpKeyfieldLocators:[],recommenderServices:[],anonymizeIP:null,projectJS:null,snippetId:null,plugins:[]},this.on(r.DATA_LOADED,this.W),this.on(r.ACTIVATE,this.K),this.on(r.RECORD_GLOBAL_DECISION,this.X)},getRevision:function(){return this.b.revision},getGlobalHoldbackThreshold:function(){return this.b.holdback},getProjectId:function(){return this.b.projectId},getSnippetId:function(){return this.b.snippetId},getAccountId:function(){return this.b.accountId},getNamespace:function(){return this.b.namespace},getActivationId:function(){return this.b.activationId},getAnonymizeIP:function(){return this.b.anonymizeIP},isGlobalHoldback:function(){return!!this.b.isGlobalHoldback},getListTargetingCookieNames:function(){return this.b.listTargetingCookies.slice()},getDCPServiceId:function(){return this.b.dcpServiceId},getDCPKeyfieldLocators:function(){return this.b.dcpKeyfieldLocators},getRecommenderServices:function(){return this.b.recommenderServices},getProjectJS:function(){return this.b.projectJS},getPlugins:function(){return this.b.plugins},K:function(e){this.b.activationId=e.activationId,this.b.isGlobalHoldback=null},X:function(e){var t=e.isGlobalHoldback;if(null!==this.b.isGlobalHoldback&&this.b.isGlobalHoldback!==t)throw new Error("Attempted to change already set global holdback!");this.b.isGlobalHoldback=t,this.emitChange()},W:function(e){var t=i.pick(e.data,["holdback","accountId","projectId","snippetId","namespace","revision","listTargetingCookies","dcpServiceId","dcpKeyfieldLocators","recommenderServices","anonymizeIP","plugins","projectJS"]);if(0!==i.keys(t).length){var n={listTargetingCookies:[],dcpServiceId:null,dcpKeyfieldLocators:[]};i.extend(this.b,n,t),this.emitChange()}}}}),(function(e,t,n){var i=n(17);e.exports={initialize:function(){this.b={effectiveReferrer:null,effectiveVariationId:null},this.on(i.INITIALIZE_STATE,this.Q)},getEffectiveReferrer:function(){return this.b.effectiveReferrer},getEffectiveVariationId:function(){return this.b.effectiveVariationId},Q:function(e){e.effectiveReferrer&&(this.b.effectiveReferrer=e.effectiveReferrer),e.effectiveVariationId&&(this.b.effectiveVariationId=e.effectiveVariationId),this.emitChange()}}}),(function(e,t,n){var i=n(8),r=n(17);e.exports={initialize:function(){this.b={},this.on(r.DATA_LOADED,this.k),this.on(r.SET_INTEGRATION_SETTINGS,this.J)},k:function(e){i.isEmpty(e.data.integrationSettings)||(i.each(e.data.integrationSettings,function(e){this.b[e.id]=e}.bind(this)),this.emitChange())},J:function(e){var t=this.b[e.id];t?i.extend(t,e):this.b[e.id]=e},getAll:function(){return i.cloneDeep(i.values(this.b))},get:function(e){return i.cloneDeep(this.b[e])},getReference:function(e){return this.b[e]}}}),(function(e,t,n){var i=n(8),r=n(11),o=n(17),a="*";e.exports={initialize:function(){this.b={},this.on(o.LOAD_PERSISTED_LAYER_STATES,this.Z),this.on(o.RECORD_LAYER_DECISION,this.ee),this.on(o.TRACK_DECISION_EVENT,this.te),this.on(o.ACTION_EXECUTED,this.ne)},getLayerState:function(e,t){if(this.b[e]){var n=this.b[e];if(i.keys(n).length>1&&!t)throw new Error("View Id must be specified when more than one layerState for layer.");return t?i.cloneDeep(i.find(n,{viewId:t})):i.cloneDeep(n[a])}},getLayerStates:function(e){var t=[];for(var n in this.b)i.forEach(this.b[n],(function(n){(i.isUndefined(e)||n.namespace===e)&&t.push(i.cloneDeep(n))}));return t},Z:function(e){e.merge||(this.b={}),i.each(e.layerStates,function(e){var t=e.layerId,n=e.viewId||a,r=this.b[t];if(i.isUndefined(r))this.b[t]={},this.b[t][n]=e;else{var o=r[n];(!o||e.decisionTimestamp>(o.decisionTimestamp||0))&&(this.b[t][n]=e)}}.bind(this)),this.emitChange()},ne:function(e){var t=e.action.layerId,n=e.action.viewId;if(!this.b[t])return void r.warn("No Campaign registered for action executed",e);var i;this.b[t][n]?i=this.b[t][n]:this.b[t][a]&&(i=this.b[t][a]),i&&(i.actionTriggered=!0,i.actionSessionId=e.sessionId,i.actionActivationId=e.activationId,i.actionTimestamp=e.timestamp),this.emitChange()},ee:function(e){var t={layerId:e.layerId,revision:e.revision,decision:e.decision,decisionSessionId:e.sessionId,decisionActivationId:e.activationId,decisionTimestamp:e.timestamp,decisionEventId:null,actionTriggered:!1,actionSessionId:null,actionActivationId:null,actionTimestamp:null,decisionTicket:e.decisionTicket,decisionTicketTimestamp:e.timestamp,namespace:e.namespace,viewId:e.viewId},n=this.b[e.layerId]||{};e.viewId?(delete n[a],n[e.viewId]=t):(n={},n[a]=t),this.b[e.layerId]=n,this.emitChange()},te:function(e){var t=e.layerId,n=e.decisionEvent.decisionTicket.viewId||a;return this.b[t]?this.b[t][n]?(this.b[t][n].decisionEventId=e.decisionEvent.decisionId,void this.emitChange()):void r.warn("Not recording decision event: Layer state not found for view",n):void r.warn("Not recording decision event: Campaign not registered",t)}}}),(function(e,t,n){var i=n(8),r=n(17);e.exports={initialize:function(){this.b={},this.on(r.DATA_LOADED,this.k)},k:function(e){i.isEmpty(e.data.layers)||(i.each(e.data.layers,function(e){this.b[e.id]=e}.bind(this)),this.emitChange())},getAll:function(){return i.cloneDeep(i.values(this.b))},getCount:function(){return i.keys(this.b).length},getAllByViewId:function(e){return i.cloneDeep(i.filter(i.values(this.b),(function(t){return i.includes(t.viewIds,e)})))},get:function(e){return i.cloneDeep(this.b[e])},getLayerByExperimentId:function(e){var t=i.values(this.b),n=i.find(t,(function(t){return i.find(t.experiments,{id:e})}));return n},getExperimentByVariationId:function(e){var t,n=i.values(i.cloneDeep(this.b));return i.some(n,(function(n){return i.some(n.experiments,(function(n){return i.find(n.variations,{id:e})&&(t=n),t})),t})),t}}}),(function(e,t,n){var i=n(17);e.exports={initialize:function(){this.b={logs:[]},this.on(i.LOG,this.re)},getLogs:function(){return this.b.logs},re:function(e){this.b.logs.push(e),this.emitChange()},f:function(){return this.b.logs.slice()}}}),(function(e,t,n){var i=n(8),r=n(17),o=1e3;e.exports={initialize:function(){this.b={},this.on(r.SET_PENDING_EVENT,this.oe),this.on(r.REMOVE_PENDING_EVENT,this.ae),this.on(r.LOAD_PENDING_EVENTS,this.se)},getEvents:function(){return this.b},oe:function(e){i.keys(this.b).length>=o&&this.ue();var t=e.id,n=e.retryCount;this.b[t]&&this.b[t].retryCount===n||(this.b[t]={id:t,timeStamp:e.timeStamp,data:e.data,retryCount:n},this.emitChange())},ae:function(e){delete this.b[e.id],this.emitChange()},se:function(e){this.b=e.events,this.ue(),this.emitChange()},ue:function(){for(var e=i.sortBy(this.b,"timeStamp"),t=0;t<=e.length-o;t++)delete this.b[e[t].id];this.emitChange()}}}),(function(e,t,n){var i=n(8),r=n(17),o=n(12);e.exports={initialize:function(){this.b={},this.b[o.PerformanceData.performance_marks]={},this.b[o.PerformanceData.resource_timing]=[],this.on(r.SET_PERFORMANCE_DATA,this.ce),this.on(r.SET_PERFORMANCE_MARKS_DATA,this.le),this.on(r.SET_RESOURCE_TIMING_DATA,this.de)},ce:function(e){i.extend(this.b,e.data),this.emitChange()},le:function(e){i.isUndefined(this.b[o.PerformanceData.performance_marks][e.name])&&(this.b[o.PerformanceData.performance_marks][e.name]=[]),this.b[o.PerformanceData.performance_marks][e.name].push(e.data),this.emitChange()},de:function(e){this.b[o.PerformanceData.resource_timing].push(e.data),this.emitChange()},get:function(){return i.cloneDeep(this.b)},getMarks:function(){return i.cloneDeep(this.b[o.PerformanceData.performance_marks])}}}),(function(e,t,n){var i=n(17),r=n(12),o=n(8),a=n(11);e.exports={initialize:function(){this.b=o.mapValues(r.PluginTypes,(function(){return{}})),this.on(i.REGISTER_PLUGIN,this.fe)},fe:function(e){var t=e.type,n=e.name,i=e.plugin;if(!(t&&n&&i))throw new Error("Missing information needed to register plugins: "+t+":"+n);if(!this.b[t])throw new Error("Invalid plugin type specified: "+t);this.b[t][n]=i,a.debug("Plugin Store: Registering Plugin :",e)},getAllPlugins:function(e){if(e){if(this.b[e])return this.b[e];throw new Error("Invalid plugin type: "+e)}return this.b},getPlugin:function(e,t){if(!t||!e)throw new Error("Missing plugin parameters");var n=this.getAllPlugins(e);return n[t]||null}}}),(function(e,t,n){var i=n(17);e.exports={initialize:function(){this.b={},this.on(i.SET_VISITOR_ATTRIBUTE_PENDING,this.pe)},getPendingAttributeValue:function(e){if(this.b[e])return this.b[e].pending},pe:function(e){this.b[e.key]={pending:e.pending},this.emitChange()}}}),(function(e,t,n){var i=n(8),r=n(17);e.exports={initialize:function(){this.b={inRumSample:!1,src:null,RumHost:null,data:{}},this.on(r.SET_RUM_DATA,this.ce)},ce:function(e){i.merge(this.b,e),this.emitChange()},getSampleRum:function(){return this.b.inRumSample},getRumHost:function(){return this.b.RumHost},getRumData:function(){return i.cloneDeep(this.b.data)},getScriptSrc:function(){return this.b.src}}}),(function(e,t,n){var i=n(17);e.exports={initialize:function(){this.b={initialized:!1,natives:{}},this.on(i.SANDBOXED_FUNCTIONS_ADDED,this.he)},he:function(e){if(!e.sandboxedFunctions)throw new Error("No sandboxedFunctions found in payload");this.b.natives=e.sandboxedFunctions,this.b.initialized=!0,this.emitChange()},getAll:function(){return this.b.natives},get:function(e){if(!e)throw new Error("Missing name parameter");return this.b.natives[e]||null},isInitialized:function(){return this.b.initialized}}}),(function(e,t,n){var i=n(8),r=n(17),o=n(14),a=n(44),s=18e5;e.exports={initialize:function(){this.b={lastSessionTimestamp:0,sessionId:null},this.on(r.REFRESH_SESSION,this.ge),this.on(r.LOAD_SESSION_STATE,this.ve)},getState:function(){return i.cloneDeep(this.b)},getSessionId:function(){return this.b.sessionId},ve:function(e){this.b.sessionId=e.sessionId,this.b.lastSessionTimestamp=e.lastSessionTimestamp,this.emitChange()},ge:function(){var e=o.now(),t=this.b.lastSessionTimestamp;(!this.b.sessionId||e-t>s)&&(this.b.sessionId=a.generate()),this.b.lastSessionTimestamp=e,this.emitChange()}}}),(function(e,t){t.generate=function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)}}),(function(e,t,n){var i=n(8),r=n(11),o=n(17),a={globalTags:{},viewStates:{}};e.exports={initialize:function(){this.b=i.cloneDeep(a),this.on(o.REGISTER_VIEWS,this.me),this.on(o.SET_VIEW_ACTIVE_STATE,this._e),this.on(o.UPDATE_PARSED_VIEW_METADATA,this.ye),this.on(o.UPDATE_USER_SUPPLIED_METADATA,this.Ee),this.on(o.TRACK_VIEW_ACTIVATED_EVENT,this.Ie),this.on(o.SET_GLOBAL_TAGS,this.Te),this.on(o.ACTIVATE,this.we)},getAll:function(){var e={};for(var t in this.b.viewStates)e[t]=this.getViewState(t);return e},getViewState:function(e){var t=i.cloneDeep(this.b.viewStates[e]),n=this.b.globalTags;return t.metadata=i.extend({},t.parsedMetadata,n,t.userSuppliedMetadata),t},getActiveViewTags:function(){var e=this.getActiveViewStates(),t=i.map(e,(function(e){return e.metadata})),n=[{}].concat(t);return i.extend.apply(i,n)},getActivationEventId:function(e){return this.b.viewStates[e]?this.b.viewStates[e].activationEventId:null},getActiveViewStates:function(){return i.reduce(this.b.viewStates,function(e,t,n){return this.isViewActive(n)&&e.push(this.getViewState(n)),e}.bind(this),[])},isViewActive:function(e){var t=this.b.viewStates[e];return t||r.warn("No Page registered with id",e),!!t.isActive},getGlobalTags:function(){return i.cloneDeep(this.b.globalTags)},we:function(){var e=i.cloneDeep(a);i.isEmpty(this.b.globalTags)||(e.globalTags=this.b.globalTags),this.b=e,this.emitChange()},me:function(e){i.each(e.views,function(e){var t=e.id;this.b.viewStates[t]={id:t,isActive:!1,activatedTimestamp:null,activationEventId:null,parsedMetadata:{},userSuppliedMetadata:{}}}.bind(this)),this.emitChange()},_e:function(e){var t=e.view.id;if(!this.b.viewStates[t])throw new Error("No view exists with id "+t);this.b.viewStates[t].isActive=e.isActive,e.isActive?this.b.viewStates[t].activatedTimestamp=e.timestamp:(this.b.viewStates[t].parsedMetadata={},this.b.viewStates[t].userSuppliedMetadata={}),this.emitChange()},ye:function(e){var t=e.viewId;if(!this.b.viewStates[t])throw new Error("No view exists with id "+t);i.merge(this.b.viewStates[t].parsedMetadata,e.metadata),this.emitChange()},Ee:function(e){var t=e.viewId;if(!this.b.viewStates[t])throw new Error("No view exists with id "+t);i.merge(this.b.viewStates[t].userSuppliedMetadata,e.metadata),this.emitChange()},Ie:function(e){var t=e.viewId;this.b.viewStates[t]&&(this.b.viewStates[t].activationEventId=e.eventData.eventId,this.emitChange())},Te:function(e){i.extend(this.b.globalTags,e),this.emitChange()}}}),(function(e,t,n){var i=n(8),r=n(17);e.exports={initialize:function(){this.b={},this.on(r.DATA_LOADED,this.k)},getAll:function(){return i.cloneDeep(i.values(this.b))},get:function(e){return i.cloneDeep(this.b[e])},getByApiName:function(e){return i.cloneDeep(i.find(i.values(this.b),{apiName:e}))},k:function(e){i.isEmpty(e.data.views)||(i.each(e.data.views,function(e){this.b[e.id]=e}.bind(this)),this.emitChange())}}}),(function(e,t,n){var i=n(8),r=n(17);e.exports={initialize:function(){this.b={profile:{},metadata:{}},this.on(r.SET_VISITOR_ATTRIBUTES,this.be),this.on(r.LOAD_EXISTING_VISITOR_PROFILE,this.Se)},getVisitorProfile:function(){return this.b.profile},getVisitorProfileMetadata:function(){return this.b.metadata},getAttribute:function(e,t){var n=this.b.profile;return t&&(n=n[t]||{}),i.cloneDeep(n[e])},getAttributeMetadata:function(e){return i.cloneDeep(this.b.metadata[e])},Se:function(e){this.b.profile=e.profile,this.b.metadata=e.metadata,this.emitChange()},be:function(e){var t,n;i.each(e.attributes,function(e){t=this.b.profile,n=this.b.metadata,e.type&&(t=this.b.profile[e.type]=this.b.profile[e.type]||{}),t[e.key]=e.value,e.metadata&&i.forOwn(e.metadata,function(t,i){e.type&&(n=this.b.metadata[e.type]=this.b.metadata[e.type]||{}),n[e.key]=n[e.key]||{},n[e.key][i]=t}.bind(this))}.bind(this)),this.emitChange()}}}),(function(e,t,n){var i=n(8),r=n(17);e.exports={initialize:function(){this.b={},this.on(r.DATA_LOADED,this.Ae)},getCustomBehavioralAttributes:function(){return i.filter(this.b,(function(e){return!!e.rule_json}))},getVisitorAttribute:function(e){var t=i.values(this.b);if(e.datasourceId&&(t=i.filter(t,{dcp_datasource_id:String(e.datasourceId)})),e.attributeName&&e.attributeId)throw new Error("Must not specify both attribute name and attribute ID");if(e.attributeId){var n=this.b[e.attributeId];if(!n)throw new Error("Unrecognized attribute ID: "+e.attributeId);return n}if(e.attributeName){var r=i.filter(t,{name:e.attributeName});if(!r.length)throw new Error("Unrecognized attribute name: "+e.attributeName);if(r.length>1)throw new Error("Too many attributes with name: "+e.attributeName);return r[0]}throw new Error("Must specify attribute name or attribute ID")},Ae:function(e){i.isEmpty(e.data.visitorAttributes)||(i.each(e.data.visitorAttributes,function(e){this.b[e.id]=e}.bind(this)),this.emitChange())}}}),(function(e,t,n){var i=(n(8),n(17));n(50).Event;e.exports={initialize:function(){this.b={events:[],foreignEvents:{},foreignEventQueues:{}},this.on(i.SET_VISITOR_EVENTS,this.k),this.on(i.SET_FOREIGN_VISITOR_EVENTS,this.De),this.on(i.SET_FOREIGN_VISITOR_EVENT_QUEUE,this.Oe)},getEvents:function(){return this.b.events},getForeignEvents:function(){return this.b.foreignEvents},getForeignEventQueues:function(){return this.b.foreignEventQueues},k:function(e){this.b.events=e,this.emitChange()},De:function(e){this.b.foreignEvents[e.key]=e.value},Oe:function(e){this.b.foreignEventQueues[e.key]=e.value}}}),(function(e,t,n){function i(e,t,n,i,r){this[a.FIELDS.NAME]=e,this[a.FIELDS.TYPE]=t,o.isString(n)&&n.trim().length>0&&(this[a.FIELDS.CATEGORY]=n),i&&o.keys(i).length>0&&(this[a.FIELDS.OPTIONS]=i),o.isUndefined(r)||(this[a.FIELDS.REVENUE]=r)}function r(e,t,n){this.eventBase=e,this[a.FIELDS.TIME]=t,o.isUndefined(n)||(this[a.FIELDS.SESSION_ID]=n)}var o=n(8),a=n(51),s=n(52),u=n(54).getFieldValue;t.EventBase=i,i.prototype.digest=function(){var e=function(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(t)},t=[];if(t.push(e(a.FIELDS.NAME,this[a.FIELDS.NAME])),t.push(e(a.FIELDS.TYPE,this[a.FIELDS.TYPE])),this[a.FIELDS.CATEGORY]&&t.push(e(a.FIELDS.CATEGORY,this[a.FIELDS.CATEGORY])),this[a.FIELDS.REVENUE]&&t.push(e(a.FIELDS.REVENUE,this[a.FIELDS.REVENUE])),!this[a.FIELDS.OPTIONS])return t.join("&");var n=this[a.FIELDS.OPTIONS]||{},i=o.filter(o.keys(n),(function(e){return n.hasOwnProperty(e)}));i=i.sort();for(var r=0;r>>16).toString(16)+(65535&n).toString(16)},u=function(e,t){var n=i(e,t);return(n>>>0)/o},c=function(e){var t=String.fromCharCode;return e.replace(/[\S\s]/gi,(function(e){e=e.charCodeAt(0);var n=t(255&e);return e>255&&(n=t(e>>>8&255)+n),e>65535&&(n=t(e>>>16)+n),n}))};e.exports={Seed:r,hashToHex:s,hashToInt:a,hashToReal:u,toByteString:c}}),(function(e,t,n){!(function(){function t(e,t){for(var n,i=e.length,r=t^i,o=0;i>=4;)n=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24,n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16),n^=n>>>24,n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^n,i-=4,++o;switch(i){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r^=255&e.charCodeAt(o),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)}return r^=r>>>13,r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16),r^=r>>>15,r>>>0}function n(e,t){var n,i,r,o,a,s,u,c;for(n=3&e.length,i=e.length-n,r=t,a=3432918353,s=461845907,c=0;c>>16)*a&65535)<<16)&4294967295,u=u<<15|u>>>17,u=(65535&u)*s+(((u>>>16)*s&65535)<<16)&4294967295,r^=u,r=r<<13|r>>>19,o=5*(65535&r)+((5*(r>>>16)&65535)<<16)&4294967295,r=(65535&o)+27492+(((o>>>16)+58964&65535)<<16);switch(u=0,n){case 3:u^=(255&e.charCodeAt(c+2))<<16;case 2:u^=(255&e.charCodeAt(c+1))<<8;case 1:u^=255&e.charCodeAt(c),u=(65535&u)*a+(((u>>>16)*a&65535)<<16)&4294967295,u=u<<15|u>>>17,u=(65535&u)*s+(((u>>>16)*s&65535)<<16)&4294967295,r^=u}return r^=e.length,r^=r>>>16,r=2246822507*(65535&r)+((2246822507*(r>>>16)&65535)<<16)&4294967295,r^=r>>>13,r=3266489909*(65535&r)+((3266489909*(r>>>16)&65535)<<16)&4294967295,r^=r>>>16,r>>>0}var i=n;i.v2=t,i.v3=n;e.exports=i})()}),(function(e,t,n){var i=n(8);t.getFieldValue=function(e,t){if(i.isArray(t)){for(var n=e,r=0;r50&&(r=r.substr(0,50)+"..."),o.groupCollapsed("DISPATCH: "+e+" | "+r),o.logAlways("payload: ",t)}},t.onPostAction=function(e,t){o.shouldLog(i(e))&&(o.logAlways("stores:",this.getState()),o.groupEnd())}}),(function(e,t,n){var i=n(8),r=n(17),o=n(5),a=n(61).Promise,s=n(11),u=n(14),c=n(68),l=n(18),d=3;t.isCORSSupported=function(){var e=c.get("XMLHttpRequest");return"withCredentials"in new e},t.request=function(e){return e=i.extend({method:"GET",async:!0},e),new a(function(n,r){if(!t.isCORSSupported())return r("CORS is not supported");var o=c.get("XMLHttpRequest"),a=new o;a.onload=function(){e.success&&e.success(a),n(a)},a.onerror=function(){e.error&&e.error(a),r(a)},i.isObject(e.data)&&(e.data=l.stringify(e.data)),a.open(e.method,e.url,e.async),e.contentType&&a.setRequestHeader("Content-Type",e.contentType),a.send(e.data)})},t.retryableRequest=function(e,n,c,l){if(!n)return a.reject(new Error("No id specified for request."));if(!t.isCORSSupported())return a.reject(new Error("CORS is not supported."));i.isUndefined(l)&&(l=d),i.isUndefined(c)&&(c=0);var f={id:n,timeStamp:u.now(),data:e,retryCount:c};return o.dispatch(r.SET_PENDING_EVENT,f),s.debug("Sending event ",n),t.request(e).then((function(e){return o.dispatch(r.REMOVE_PENDING_EVENT,{id:n}),e}),(function(e){throw f.retryCount>=l?(o.dispatch(r.REMOVE_PENDING_EVENT,{id:n}),s.warn("Event ",f," could not be sent after ",l," attempts.")):(f.retryCount++,o.dispatch(r.SET_PENDING_EVENT,f),s.debug("Event ",f," failed to send, with error ",e," It will be retried ",l-c," times.")),e}))},t.sendBeacon=t.request}),(function(e,t,n){var i,r="undefined"!=typeof window;r&&(i=window.Promise);var o=n(62);r&&(window.Promise=i),e.exports=o}),(function(e,t,n){var i;(function(e,r,o,a){/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
* @version 2.3.0
*/
(function(){"use strict";function s(e){return"function"==typeof e||"object"==typeof e&&null!==e}function u(e){return"function"==typeof e}function c(e){return"object"==typeof e&&null!==e}function l(e){K=e}function d(e){J=e}function f(){var t=e.nextTick,n=e.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/);return Array.isArray(n)&&"0"===n[1]&&"10"===n[2]&&(t=r),function(){t(m)}}function p(){return function(){W(m)}}function h(){var e=0,t=new te(m),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function g(){var e=new MessageChannel;return e.port1.onmessage=m,function(){e.port2.postMessage(0)}}function v(){return function(){setTimeout(m,1)}}function m(){for(var e=0;e1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(65),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate}),(function(e,t,n){(function(e,t){!(function(e,n){"use strict";function i(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n"),l.close();var d=i.mapValues(o.SandboxedFunctions,(function(e){return n[e]}));s.dispatch(u.SANDBOXED_FUNCTIONS_ADDED,{sandboxedFunctions:d}),t.parentNode.removeChild(t)}catch(e){c.warn("Unable to create a sandbox: ",e)}}}),(function(e,t){function n(){return"loading"===t.getReadyState()}t.getCookieString=function(){return document.cookie||""},t.setCookie=function(e){document.cookie=e},t.querySelector=function(e){return document.querySelector(e)},t.createElement=function(e){return document.createElement(e)},t.isReady=function(){return"interactive"===document.readyState||"complete"===document.readyState},t.addReadyHandler=function(e){return document.addEventListener("DOMContentLoaded",e),function(){t.removeReadyHandler(e)}},t.removeReadyHandler=function(e){return function(){document.removeEventListener("DOMContentLoaded",e)}},t.getReferrer=function(){return document.referrer},t.getReadyState=function(){return document.readyState},t.write=function(e){if(!n())throw new Error("Aborting attempt to write to already-loaded document");document.write(e)},t.appendToHead=function(e){return document.head.appendChild(e)},t.addEventListener=function(e,t,n){return document.addEventListener(e,t,n),function(){document.removeEventListener(e,t,n)}},t.getCurrentScript=function(){if(document.currentScript)return document.currentScript}}),(function(e,t,n){e.exports=function(e){e.registerVisitorProfileProvider(n(71)),e.registerDependency("providers/default_jsonp",n(72)),e.registerDependency("helpers/generate_analytics_value",n(73)),e.registerDependency("matchers/key_value",n(74)),e.registerDependency("sources/browser",n(58)),e.registerDependency("sources/geo",n(76)),e.registerDependency("sources/jsonp",n(79)),e.registerDependency("sources/poll",n(80)),e.registerDependency("env/date",n(14)),e.registerDependency("env/document",n(69)),e.registerDependency("env/local_storage",n(81)),e.registerDependency("env/window",n(16))}}),(function(e,t){e.exports={provides:"visitorId",getter:["stores/visitor_id",function(e){return e.getRandomId()}]}}),(function(e,t){e.exports=function(e){return{isAsync:!0,getter:["sources/jsonp","stores/integration_settings",function(t,n){var i=n.get(e),r=t.buildURL(i.url,i.cbParam);return t.fetchData(e,r)}]}}}),(function(e,t,n){function i(e){return e.replace(/[^a-zA-Z0-9\.\~\!\*\(\)\']+/g,"_")}function r(e){return!a.isEmpty(e)&&a.includes(["and","or","not"],e[0])}function o(e,t){var n="";return a.isEmpty(t)?n=u:(n=a.reduce(t,(function(t,n){var r=e.get(n);return r?t+i(r.name?r.name:r.id)+",":t}),""),n=n.slice(0,-1)),n}var a=n(8),s=":",u="everyone_else",c="holdback",l="treatment",d="",f="single_experiment";t.formatNamesAndIdsForAnalytics=function(e,t,n,s,u){var c={layer:t.name||d,experiment:n.name||d,variation:s.name||d};u&&(c=a.mapValues(c,i)),c.experiment===d&&(r(n.audienceIds)?c.experiment="Exp":c.experiment=o(e,n.audienceIds));var l={layer:"("+i(t.id)+")",experiment:"("+i(n.id)+")",variation:"("+i(s.id)+")"};return{names:c,idStrings:l}},t.generateAnalyticsString=function(e,n,i,r,o,u){var d=o?c:l,p=3*s.length,h=t.formatNamesAndIdsForAnalytics(e,n,i,r,!0),g=h.names,v=h.idStrings,m=a.reduce(v,(function(e,t){return e+t.length}),0);if(m+p+d.length>u)throw new Error("The analytics string size is too low to send the campaign, experiment, and variation IDs.");var _=u-m-p-d.length,y={};y.variation=Math.min(g.variation.length,Math.floor(_/3)),_-=y.variation,y.experiment=Math.min(g.experiment.length,Math.floor(_/2)),_-=y.experiment,y.layer=_;var E={};a.each(g,(function(e,t){E[t]=e.substring(0,y[t])}));var I=[];return n.policy!==f&&I.push(E.layer+v.layer),I=I.concat([E.experiment+v.experiment,E.variation+v.variation,d]),I.join(s)}}),(function(e,t,n){var i=n(8),r=n(75),o=n(54).getFieldValue;e.exports=function(e,t){var n=o(e,t.name.split("."));return i.isArray(n)?i.some(n,i.partial(r.hasMatch,t.value,t.match)):r.hasMatch(t.value,t.match,n)}}),(function(e,t,n){var i=n(8);t.hasMatch=function(e,t,n){var r=!i.isUndefined(n)&&null!==n,o=!i.isUndefined(e)&&null!==e,a=t||(o?"exact":"exists");switch(a){case"exists":return r;case"exact":return r&&String(n)===e;case"substring":return r&&String(n).indexOf(e)>-1;case"regex":try{if(o&&r){var s=new RegExp(e);return s.test(String(n))}return!1}catch(e){}return!1;case"range":var u=e.split(":"),c=parseFloat(u[0]),l=parseFloat(u[1]),d=parseFloat(n);return d>=c&&d<=l;default:return!1}}}),(function(e,t,n){function i(){o.addScriptAsync(s)}var r=n(77),o=n(78),a="cdn3";t.getIP=function(){return r.makeAsyncRequest(a,i).then((function(e){return e.ip}))},t.getIPDerivedGeolocation=function(){return r.makeAsyncRequest(a,i).then((function(e){return e.location}))};var s="//cdn3.optimizely.com/js/geo2.js"}),(function(e,t,n){var i=n(61).Promise,r=n(5),o=n(17),a=n(19),s=a.get("stores/async_request");t.makeAsyncRequest=function(e,t){var n=s.getPromise(e);if(n)return n;var a,u,c=new i(function(e,t){a=e,u=t});return t&&t(),r.dispatch(o.REGISTER_ASYNC_DEFERRED,{source:e,promise:c,resolver:a,rejecter:u}),c},t.resolveRequest=function(e,t){r.dispatch(o.RESOLVE_DEFERRED,{source:e,resolveWith:t})},t.rejectRequest=function(e,t){r.dispatch(o.REJECT_DEFERRED,{source:e,rejectWith:t})}}),(function(e,t,n){var i=n(69),r=n(11),o=n(60);t.addScriptAsync=function(e,t){var n=i.querySelector("head"),o=i.createElement("script");o.type="text/javascript",o.async=!0,o.src=e,t&&(o.onload=t),n.insertBefore(o,n.firstChild),r.debug("Asynchronously requesting "+e)},t.addScriptSync=function(e,n){try{var a="optimizely_synchronous_script_"+Math.floor(1e5*Math.random());if(e.indexOf('"')!==-1)return void r.error("Blocked attempt to load unsafe script: "+e);if(i.write(''),!i.querySelector("#"+a))throw new Error("Document.write failed to append script");n&&n()}catch(i){r.debug("Document.write failed for "+e+": "+i.message);var s=function(e){var t=new Function(e.responseText);t(),n&&n()};return o.request({url:e,async:!1,contentType:"text/plain",success:s}).catch((function(i){r.error("Failed to load "+e+" via synchronous XHR: "+i.message),t.addScriptAsync(e,n)}))}}}),(function(e,t,n){function i(e){return"optimizely_"+e}function r(e,t){return u.makeAsyncRequest(t,(function(){o.setGlobal(e,(function(n){a.debug("JSONP","Got response from",t,n),u.resolveRequest(t,n),o.setGlobal(e,void 0)}))}))}var o=n(16),a=n(11),s=n(78),u=n(77);t.buildURL=function(e,t){return e+(e.indexOf("?")===-1?"?":"&")+t+"=%cb%"},t.fetchData=function(e,t,n){return n||(n=i(e)),o.getGlobal(n)?(a.debug("JSONP / Found existing callback function for",e),u.makeAsyncRequest(e)):(t&&s.addScriptAsync(t.replace("%cb%",n)),r(n,e))}}),(function(e,t,n){var i=n(8),r=n(61).Promise,o=100,a=50;t.pollFor=function(e,t,n){var s,u;return i.isFunction(n)?u=n:(s=n||o,u=function(){return s--,s<-1}),t=t||a,new r(function(n,i){!(function r(){var o;if(!u()){try{var a=e();if(a)return n(a)}catch(e){o=e}return setTimeout(r,t)}i(o||new Error("Poll timed out"))})()})}}),(function(e,t,n){var i,r=n(2),o="optimizely_data",a=n(82),s=n(16),u=n(83),c=t.Error=r("StorageError"),l=s.getGlobal("localStorage");l?i=a.create(l,o):(u.emitError(new c("Failed to initialize localStorage")),i=a.mockStorage),t.LocalStorage=i}),(function(e,t,n){function i(e,t){this.Fe=e,this.Me=t}var r=n(8),o=n(11),a=n(18),s="$$";i.prototype.Ue=function(e){return[this.Me,e].join(s)},i.prototype.Ge=function(e){return e.replace(this.Me+s,"")},i.prototype.setItem=function(e,t){try{this.Fe.setItem(this.Ue(e),a.stringify(t))}catch(t){o.warn("Failed to save",e,"to localStorage:",t)}},i.prototype.removeItem=function(e){this.Fe.removeItem(this.Ue(e))},i.prototype.getItem=function(e){try{return a.parse(this.Fe.getItem(this.Ue(e)))}catch(e){}return null},i.prototype.keys=function(){var e=r.keys(this.Fe);return r.map(e,this.Ge.bind(this))},e.exports={create:function(e,t){return new i(e,t)},mockStorage:{keys:function(){},getItem:function(e){},removeItem:function(e){},setItem:function(e,t){}}}}),(function(e,t,n){var i=n(84);t.emitError=function(e,t){i.emit({type:"error",name:e.name||"Error",data:{error:e,metadata:t}},!0,!0)},t.emitAnalyticsEvent=function(e,t){var n={type:"analytics",name:"trackEvent",data:e};i.emit(n,t)}}),(function(e,t,n){var i=n(8),r=n(44),o=n(5),a=n(17),s=n(19),u=n(11),c=n(83),l=s.get("stores/event_emitter");t.on=function(e){return e.token||(e.token=r.generate()),o.dispatch(a.ADD_EMITTER_HANDLER,e),e.token},t.off=function(e){o.dispatch(a.REMOVE_EMITTER_HANDLER,{token:e})},t.emit=function(e,t,n){var r=l.getHandlers(e,t);i.each(r,(function(t){try{t.call({$di:s},e)}catch(t){u.warn("Error in event emitter handler",e,t),n||c.emitError(t)}}))}}),(function(e,t,n){function i(){var e=S.getUserAgent()||"";if(!v.isString(e))return void m.warn("Directive / userAgent not a string");e=e.toLowerCase();var t=["googlebot","yahoo! slurp","bingbot","bingpreview","msnbot","keynote","ktxn","khte","gomezagent","alertsite","yottaamonitor","pingdom.com_bot","aihitbot","baiduspider","adsbot-google","mediapartners-google","applebot","catchpoint","phantomjs","moatbot","facebookexternalhit"],n=function(t){if(v.includes(e,t))return m.warn("Directive / Matches bot:",t),!0};v.some(t,n)&&(m.log("Directive / Disabling tracking"),E.dispatch(_.LOAD_DIRECTIVE,{trackingDisabled:!0}))}function r(){var e=I.get(T.COOKIES.OPT_OUT),n=O.getQueryParamValue(N.OPT_OUT);e?n===e||"true"!==n&&"false"!==n?E.dispatch(_.LOAD_DIRECTIVE,{shouldOptOut:"true"===e}):t.setOptOut("true"===n):"true"===n&&t.setOptOut(!0)}function o(){var e=!1,t=[N.AB_PREVIEW,N.DISABLE];t.push(N.EDITOR);for(var n=0;n=0;c--)if(s.unshift(o[c]),i=s.join("."),!a.includes(v,i)){r={domain:n?"."+i:i};try{t.set(m,Math.random().toString(),r),t.remove(m,r),u=r.domain;break}catch(e){}}return l.dispatch(d.SET_COOKIE_DOMAIN,u),u}var o=n(2),a=n(8),s=n(14),u=n(69),c=n(16),l=n(5),d=n(17),f=n(19),p=f.get("stores/cookie_options"),h=t.SetError=o("CookieSetError"),g=t.MismatchError=o("CookieMismatchError");t.getAll=function(){var e,t,n,r,o;e=u.getCookieString().split(/\s*;\s*/);var a={};for(n=0;n0&&(o=i(t.substring(0,r)),void 0===a[o]&&(a[o]=i(t.substring(r+1))));return a},t.get=function(e){var n=t.getAll();return n[e]},t.set=function(e,n,i,o){i=i||{},o!==!1&&(o=!0);var l=[];if(a.isUndefined(i.domain)){var d=p.getCurrentDomain();d||(d=r(c.getLocation(),!0)),i.domain=d}if(i.domain&&l.push("domain="+i.domain),a.isUndefined(i.path)&&(i.path="/"),i.path&&l.push("path="+i.path),a.isUndefined(i.expires)){var f=a.isUndefined(i.maxAge)?p.getDefaultAgeInSeconds():i.maxAge;i.expires=new Date(s.now()+1e3*f)}if(a.isUndefined(i.expires)||l.push("expires="+i.expires.toUTCString()),i.secure&&l.push("secure"),l=l.join(";"),u.setCookie(e+"="+encodeURIComponent(n)+";"+l),o){var v=t.get(e);if(v!==n){if(!v)throw new h('Failed to set cookie "'+e+'"');throw new g('Expected "'+n+'" for "'+e+'", got "'+v+'"')}}},t.remove=function(e,n){t.set(e,null,a.extend({},n,{expires:new Date(0)}),!1)};var v=["optimizely.test"],m="optimizelyDomainTestCookie"}),(function(e,t,n){var i=n(16),r="optimizelyDataApi";t.registerFunction=function(e,t){var n=i.getGlobal(r);n||(n={},i.setGlobal(r,n)),n[e]||(n[e]=t)},t.getFunction=function(e){return i.getGlobal(r)[e]}}),(function(e,t,n){function i(){var e=null;h.isNumber(e)&&0===W.getCount()?(x.log("Activating after delay of",e,"ms because no Experiments are running"),y.dispatch(N.SET_RUM_DATA,{data:{activateDfd:!0}}),setTimeout(E.emitActivateEvent,e)):E.emitActivateEvent()}function r(){h.isArray(window.optimizely)&&(window.optimizely=h.filter(window.optimizely,(function(e){var t=!0;return!ne.push(e,t)})))}function o(){var e={get:ne.get,push:ne.push},t=window.optimizely;h.isArray(t)&&h.each(t,(function(t){e.push(t)})),e.data={note:"Obsolete, use optimizely.get('data') instead"},e.state={},window.optimizely=e}function a(e){var t=q.getVisitorProfile();return T.populateEagerVisitorData(e,t)}function s(e,t,n){e=e||[];var i=Y.getAllPlugins(C.PluginTypes.visitorProfileProviders),r=$.getGlobalHoldbackThreshold(),o=q.getVisitorProfile();T.populateLazyVisitorData(i,o);var a=ee.getBucketingId();if(!a)throw new Error("bucketingId not set");var s,u=q.getVisitorProfile();if(t){var c=ee.getVariationIdMap();s=c[t.id]}var l;n&&(l=n.id);var d={bucketingId:a,visitorProfile:u,audiences:e,globalHoldback:r,preferredVariationMap:s,viewId:l,layer:t};return S.createTicket(d)}function u(e){var t=W.getAllByViewId(e.id),n=Z.getForceVariationIds(),i=Z.getForceAudienceIds(),r=h.map(t,w.description).join(", "),o=D.description(e);return x.log("Deciding Campaigns for Page",o,":",r),_.all(h.map(t,(function(t){return new _(function(r){try{c(t,n,i,e,(function(a){x.log("Activated Campaign",w.description(t),"on Page",o);var s=d(t,a,n,i),u=h.filter(s,(function(t){return h.isUndefined(t.viewId)||t.viewId===e.id}));h.isEmpty(u)||(x.log("Executing actions",u,"for Campaign",w.description(t),"Page",o),h.each(u,(function(e){b.execute(e).then((function(){E.emitActionAppliedEvent(e)}))}))),r()}))}catch(e){x.error("Error getting decisionTicket: ",e)}})}))).then((function(){return x.log("All Campaigns for Page",o,"resolved:",r),t}))}function c(e,t,n,i,r){if(t.length||n.length)r(s([],void 0,i));else{var o=w.relatedAudienceIds(e),a=h.reduce(o,(function(e,t){var n=K.get(t);return n&&e.push(n),e}),[]);l(a,w.getActivationTimeout(e),(function(){function t(e){var t=[];return h.each(e,(function(e){t.push(e.name,e)})),t}var n=s(a,e,i),o=h.map(n.audienceIds,K.get.bind(K)),u=h.filter(a,(function(e){return!h.includes(n.audienceIds,e.id)}));x.log("When deciding Campaign",w.description(e),"visitor is in audiences:",t(o),"and not in audiences:",t(u)),r(n)}))}}function l(e,t,n){var i={},r=Y.getAllPlugins(C.PluginTypes.audienceMatchers);h.each(e,(function(e){var t=L.requiredAudienceFields(e,r);h.each(t,(function(e){i[e]=!0}))}));var o=h.reduce(i,(function(e,t,n){if(h.isUndefined(T.getAttribute(n))){var i=T.getPendingAttributeValue(n);h.isUndefined(i)||e.push(i)}return e}),[]);if(0===o.length)return n();var a=k.firstToResolve(h.map(o,(function(t){return _.resolve(t).then((function(){var t=q.getVisitorProfile(),n=h.map(e,(function(e){return L.isInAudience(t,e,r)}));if(h.some(n,h.isUndefined))throw new Error("Some audience is undefined")}))})));_.race([a,new _(function(e,n){setTimeout(n,t)})]).then((function(){x.log("Activating Campaign after pending Audiences resolved",e),n()}),(function(){x.log("Activating Campaign after timeout on Audiences",e),n()}))}function d(e,t,n,i){var r,o=w.description(e);n.length?r=S.getDummyLayerDecision(e,n):(i.length&&(x.log("Applying force audienceIds:",i,"to Campaign",o),t=h.cloneDeep(t),t.audienceIds=i),r=S.decideLayer(e,t)),x.log("Recording decision for Campaign",o,t,"->",r),w.recordLayerDecision(e.id,t,r),r.variationId&&r.experimentId&&(T.updateVariationIdMap(e.id,r.experimentId,r.variationId),T.persistVariationId()),E.emitLayerDecided({layer:e,decisionTicket:t,decision:r});var a=O.trackDecisionEvent(r,t);if(a?x.log("Tracked decision event for Campaign",o,a):x.log("Analytics / Not tracking decision event for Campaign",o),$.isGlobalHoldback()&&!n.length&&!i.length)return x.log("NOT applying Variation for Campaign",o,"(visitor is in global holdback)"),[];if(r.isLayerHoldback)return x.log("NOT applying Variation for Campaign",o,"(visitor is in layer holdback)"),[];if(!r.experimentId||!r.variationId)return x.log("NOT applying Variation for Campaign",o,"(visitor is not eligible for any Experiments)"),[];var s=p(e.id,r);return s}function f(e){var t=H.getCleanupFns(e);if(t.length>0){for(;t.length>0;)t.shift()();y.dispatch(N.CLEAR_CLEANUP_FN,{lifecycle:e})}}function p(e,t){return[].concat(X.getLayerActions(e)||[],X.getExperimentActions(t.experimentId)||[],X.getExperimentVariationActions(t.experimentId,t.variationId)||[])}var h=n(8),g=n(44),v=n(2),m=(t.JSONParseError=v("JSONParseError"),t.ActivationCodeError=v("ActivationCodeError")),_=n(61).Promise,y=n(5),E=n(89),I=n(83),T=n(92),w=n(97),b=n(98),S=(n(18),n(102)),A=n(108),D=n(109),O=n(114),N=n(17),x=n(11),C=(n(81).LocalStorage,n(116),n(12)),R=n(84),L=n(107),k=n(117),P=n(90),V=n(80),F=n(69),M=n(86),U=n(99),G=n(118),j=n(19),B=j.get("stores/layer"),H=j.get("stores/cleanup"),z=j.get("stores/session"),q=j.get("stores/visitor"),Y=j.get("stores/plugins"),W=j.get("stores/layer_data"),K=j.get("stores/audience_data"),$=j.get("stores/global"),X=j.get("stores/action_data"),Q=j.get("stores/view_data"),J=j.get("stores/view"),Z=j.get("stores/directive"),ee=j.get("stores/visitor_id"),te=j.get("stores/pending_events"),ne=(j.get("stores/xdomain"),n(119)),ie=n(133),re=n(134),oe=1e3,ae=t;t.initialize=function(e){var n=3e3;if(re.initialize(),setTimeout(re.send,n),R.on({filter:{type:"error"},handler:function(e){ie.handleError(e.data.error,e.data.metadata)}}),y.dispatch(N.DATA_LOADED,{data:e.clientData}),x.log("Initialized with DATA:",e.clientData),r(),Z.isDisabled())return void x.log("Controller / Is disabled");var a,s,u=M.get(C.COOKIES.REDIRECT);if(u){x.debug("Found redirect data:",u);var c=u.match(/^([^|]+)\|(.*)/);c&&(s=c[1],a=c[2],y.dispatch(N.INITIALIZE_STATE,{effectiveVariationId:s,effectiveReferrer:a}))}var l=$.getProjectJS();if(h.isFunction(l))try{l()}catch(e){x.error("Error while executing projectJS: ",e)}var d=[].concat(e.plugins||[],$.getPlugins()||[]);h.each(d,(function(e){try{e(A)}catch(e){ie.handleError(e)}})),q.observe(T.persistVisitorProfile),B.observe(T.persistLayerStates),z.observe(T.persistSessionState),te.observe(G.persistPendingEvents),R.on({filter:{type:"lifecycle",name:"viewActivated"},handler:t.onViewActivated}),o();var f=G.getPendingEvents();if(f&&(y.dispatch(N.LOAD_PENDING_EVENTS,{events:f}),G.retryPendingEvents(f)),R.on({filter:{type:"lifecycle",name:"activate"},handler:t.activate}),E.emitInitializedEvent(),!Z.shouldActivate())return _.resolve();var p=[];return i(),_.all(p)},t.activate=function(){try{var e=[];x.log("Activated client"),h.forEach(J.getActiveViewStates(),(function(e){D.deactivate(Q.get(e.id))})),f(C.Lifecycle.preActivate),y.dispatch(N.ACTIVATE,{activationId:g.generate()}),D.registerViews(Q.getAll()),T.setId(T.getIdFromCookies()),y.dispatch(N.MERGE_VARIATION_ID_MAP,{variationIdMap:T.getVariationIdMap()}),T.persistVariationId(),f(C.Lifecycle.postVisitorProfileLoad),
e.push(a(Y.getAllPlugins(C.PluginTypes.visitorProfileProviders)).then((function(){x.log("Populated visitor profile")})));var t=s(),n=S.decideGlobal(t);x.log("Made global decision",t,"->",n),y.dispatch(N.RECORD_GLOBAL_DECISION,n);var i=O.trackClientActivation();return i?x.log("Tracked activation event",i):x.log("Not tracking activation event"),ae.setUpViewActivation(),f(C.Lifecycle.postViewsActivated),f(C.Lifecycle.postActivate),_.all(e).then((function(){R.emit({type:P.TYPES.LIFECYCLE,name:"activateDeferredDone"}),x.log("All immediate effects of activation resolved")}),ie.handleError)}catch(e){ie.handleError(e)}},ae.setUpViewActivation=function(){var e=Q.getAll();h.each(e,(function(e){e.activationType?e.activationType===C.ViewActivationTypes.callback?(x.debug("Setting up conditional activation for Page",D.description(e)),ae.activateViewOnCallback(e)):e.activationType===C.ViewActivationTypes.polling&&(x.debug("Setting up polling activation for Page",D.description(e)),V.pollFor(e.activationCode,null,h.partial(U.isTimedOut,Date.now())).then((function(){D.activate(e)})).catch((function(t){x.warn("Failed to activate view ",e,t)}))):D.activate(e)}))},ae.activateViewOnCallback=function(e){var t=function(t){var n=h.extend({},t,{pageName:e.apiName,type:"page"});ne.push(n)},n={pageId:e.id};Object.defineProperty(n,"isActive",{get:function(){return J.isViewActive(e.id)}});try{e.activationCode(t,n)}catch(t){var i=new m("("+t.toString()+") in activationCode for "+D.description(e));I.emitError(i,{originalError:t,userError:!0})}},t.onViewActivated=function(e){var t=e.data.view;try{if(!ee.getBucketingId())throw new Error("View activated with no visitorId set");var n,i=u(t).catch(ie.handleError),r=function(){D.parseViewTags(t);var e=O.trackViewActivation(t);e?x.log("Tracked activation for Page",D.description(t),e):x.log("Not Tracking activation for Page",D.description(t))};return n=F.isReady()?_.resolve(r()):V.pollFor(F.isReady,oe).then(r),_.all([i,n])}catch(e){ie.handleError(e)}}}),(function(e,t,n){var i=n(8),r=n(19),o=r.get("stores/audience_data"),a=n(84),s=n(90),u=n(91);t.emitLayerDecided=function(e){var t=e.decisionTicket?e.decisionTicket.audienceIds:[],n=i.map(t,(function(e){return{id:e,name:o.get(e).name}})),r={type:"lifecycle",name:"layerDecided",data:i.extend(e,{audiences:n})},s=u.translateLayerEventToCampaignEvent(r);a.emit(r),a.emit(s)},t.emitViewActivated=function(e){var t={type:"lifecycle",name:"viewActivated",data:e},n=u.translateViewActivatedToPageActivated(t);a.emit(t),a.emit(n)},t.emitActivateEvent=function(){a.emit({type:"lifecycle",name:"activate"},!0)},t.emitInitializedEvent=function(){var e={type:"lifecycle",name:"initialized"};a.emit(e)},t.emitOriginsSyncedEvent=function(){var e={type:"lifecycle",name:"originsSynced"};a.emit(e)},t.emitActionAppliedEvent=function(e){var t=["type","selector","attributes","value"],n=i.map(e.changeSet,(function(e){return i.pick(e,t)})),r={type:s.TYPES.ACTION,name:"applied",data:{changes:n,campaignId:e.layerId,pageId:e.viewId,experimentId:e.experimentId,variationId:e.variationId}};a.emit(r)}}),(function(e,t){t.TYPES={ACTION:"action",ANALYTICS:"analytics",EDITOR:"editor",MIGRATE_PROJECT_DATA_START:"migrate_project_data_start",MIGRATE_PROJECT_DATA_DONE:"migrate_project_data_done",LIFECYCLE:"lifecycle"}}),(function(e,t,n){var i=n(8);t.translateDecisionToCampaignDecision=function(e){return r(i.cloneDeep(e),{layerId:"campaignId",isLayerHoldback:"isCampaignHoldback"})},t.translateLayerEventToCampaignEvent=function(e){var t={};return t.campaign=this.translateLayerToCampaign(e.data.layer),t.decisionTicket=e.data.decisionTicket,t.decision=this.translateDecisionToCampaignDecision(e.data.decision),t.audiences=e.data.audiences,{type:"lifecycle",name:"campaignDecided",data:t}},t.translateLayerToCampaign=function(e){var t=i.cloneDeep(e);t.pageIds=e.viewIds,delete t.viewIds;var n=this;return i.forEach(e.experiments,(function(e,r){i.forEach(e.variations,(function(e,i){var o=t.experiments[r].variations[i].actions;t.experiments[r].variations[i].actions=n.translateActionsToCampaignActions(o)}))})),t},t.translateActionsToCampaignActions=function(e){var t=[];return i.forEach(e,(function(e){t.push({pageId:e.viewId,changes:e.changes})})),t},t.translateViewActivatedToPageActivated=function(e){return{type:"lifecycle",name:"pageActivated",data:this.translateViewEventDataToPageEventData(e.data)}},t.translateViewEventDataToPageEventData=function(e){return{page:i.cloneDeep(e.view)}};var r=function(e,t){var n=i.omit(e,i.keys(t));return i.each(t,(function(t,i){n[t]=e[i]})),n}}),(function(e,t,n){function i(e,t){function n(e,n){var i;t.attributionType&&(i=b.now()),I.dispatch(O.SET_VISITOR_ATTRIBUTES,{attributes:[{key:e,value:n,metadata:{lastModified:i}}]})}if(t.getter){var i,r=t.provides;if(!t.isSticky||E.isUndefined(e[r]))try{var o=T.evaluate(t.getter);E.isFunction(o)&&(o=o((function(){return e[r]}),(function(e){return n(r,e)}))),E.isUndefined(o)||(t.isAsync?(i=o.then((function(e){n(r,e)}),(function(e){C.warn('Failed to evaluate provider for "'+t.provides+'"; error was:',e)})),I.dispatch(O.SET_VISITOR_ATTRIBUTE_PENDING,{key:r,pending:i})):n(r,o))}catch(e){C.warn('Failed to evaluate getter for provider for "'+t.provides+'"; error was: '+e.message)}return i}}function r(e){var t=c(e),n=w.getItem(t);if(!n){var i=l(e);n=w.getItem(i),s(e,n)}return n}function o(e){var t=[];return E.each(e,(function(e){E.each(e.item,(function(n){n.namespace=e.namespace,t.push(n)}))})),t}function a(e){var t=F.getBucketingId(),n=[],i=t+"\\$\\$([^$]+?)\\$\\$"+e,r=new RegExp(i);return E.each(w.keys(),(function(e){var i=e.match(r);if(i){var o={namespace:i[1],userId:t,item:w.getItem(e)};n.push(o)}})),n}function s(e,t){var n=c(e),i=l(e);w.setItem(n,t),w.removeItem(i)}function u(e,t){try{var n=c(e);try{w.removeItem(l(e)),w.setItem(n,t)}catch(e){throw C.warn("Visitor / Unable to set localStorage key, error was:",e),new Error("Unable to set localStorage")}}catch(e){C.warn("Unable to persist visitor data:",e.message)}}function c(e){var n=F.getBucketingId();if(!n)throw new Error("Visitor bucketingId not set");var i=t.getNamespace();if(!i)throw new Error("Namespace is not set");return[n,i,e].join("$$")}function l(e){var t=F.getBucketingId();if(!t)throw new Error("Cannot get legacy key: visitor bucketingId not set");return[t,e].join("$$")}function d(e,t){if(p(e,c(R.EVENT_QUEUE)))I.dispatch(O.SET_FOREIGN_VISITOR_EVENT_QUEUE,{key:e,value:x.deserialize(t)});else if(p(e,c(R.EVENTS)))I.dispatch(O.SET_FOREIGN_VISITOR_EVENTS,{key:e,value:x.deserialize(t)});else if(p(e,c(R.LAYER_STATES)))I.dispatch(O.LOAD_PERSISTED_LAYER_STATES,{layerStates:t,merge:!0});else if(p(e,c(R.VARIATION_MAP)))I.dispatch(O.MERGE_VARIATION_ID_MAP,{variationIdMap:t});else if(p(e,c(R.VISITOR_PROFILE))){var n=["custom"],i=t;E.each(n,(function(e){var t=P.getPlugin(A.PluginTypes.visitorProfileProviders,e);if(t){if(i.profile&&i.metadata){var n=f(i,e,t.attributionType);if(!E.isEmpty(n)){var r=[];E.forOwn(n.data,(function(t,i){var o=n.metadata[i],a={key:i,value:t,type:e,metadata:o};r.push(a)})),I.dispatch(O.SET_VISITOR_ATTRIBUTES,{attributes:r})}}}else C.debug("Attribute type",e,"not used by any audiences")}))}}function f(e,t,n){var i=M.getAttribute(t),r=M.getAttributeMetadata(t),o=e.profile[t],a=e.metadata[t];if(E.isEmpty(i))return{data:o,metadata:a};var s={};return E.forOwn(o,(function(e,t){var i;r&&r[t]&&(i=r[t].lastModified);var o;a&&a[t]&&(o=a[t].lastModified),(n===A.AttributionTypes.FIRST_TOUCH&&i>=o||n===A.AttributionTypes.LAST_TOUCH&&o>=i||E.isUndefined(i)&&o)&&(s.data=s.data||{},s.data[t]=e,o&&(s.metadata=s.metadata||{},s.metadata[t]=s.metadata[t]||{},s.metadata[t].lastModified=o))})),s}function p(e,t){return e.indexOf(t)>0}function h(){var e=M.getVisitorProfile(),t=M.getVisitorProfileMetadata(),n=P.getAllPlugins(A.PluginTypes.visitorProfileProviders);if(n){var i=E.reduce(n,(function(e,t){return t.provides&&(e[t.provides]=t),e}),{});e=E.omitBy(e,(function(e,t){var n=i[t];return n&&n.isTransient}))}return{profile:e,metadata:t}}function g(e,t){N.initializeStore(e,t)}function v(e){I.dispatch(O.LOAD_PERSISTED_LAYER_STATES,{layerStates:E.filter(e,(function(e){return!!e.decision}))})}function m(e){e=E.extend({lastSessionTimestamp:0,sessionId:null},e),I.dispatch(O.LOAD_SESSION_STATE,e)}function _(){return"oeu"+b.now()+"r"+Math.random()}function y(e){var t,n,i=P.getAllPlugins(A.PluginTypes.visitorProfileProviders),r=E.filter(i,(function(e){return E.isFunction(e.restorer)}));e.profile&&e.metadata?(t=e.profile,n=e.metadata):(t=e,n={}),t=E.reduce(t,(function(e,t,n){var i=t,o=E.find(r,{provides:n});return o&&(i=o.restorer(t)),e[n]=i,e}),{}),I.dispatch(O.LOAD_EXISTING_VISITOR_PROFILE,{profile:t,metadata:n})}var E=n(8),I=n(5),T=n(19),w=n(81).LocalStorage,b=n(14),S=n(86),A=n(12),D=n(61).Promise,O=n(17),N=n(93),x=n(94),C=n(11),R=n(12).VisitorStorageKeys,L=T.get("stores/global"),k=T.get("stores/layer"),P=T.get("stores/plugins"),V=T.get("stores/session"),F=T.get("stores/visitor_id"),M=T.get("stores/visitor"),U=T.get("stores/provider_status");t.getIdFromCookies=function(){var e,t=S.get(A.COOKIES.VISITOR_ID);return e=S.get(A.COOKIES.VISITOR_UUID),t||(t=_()),{randomId:t,UUID:e}},t.setId=function(e){var n=F.getBucketingId();if(I.dispatch(O.SET_VISITOR_ID,e),F.getBucketingId()!==n){t.loadData();try{t.persistVisitorId(e)}catch(e){if(e instanceof S.MismatchError)throw C.error("Visitor / Cookie not set to correct value:",e),new Error("Cookie mismatch error while persisting visitorId");throw e}}t.refreshSession()},t.getVariationIdMap=function(){return r(R.VARIATION_MAP)||{}},t.updateVariationIdMap=function(e,t,n){I.dispatch(O.UPDATE_VARIATION_ID_MAP,{layerId:e,experimentId:t,variationId:n})},t.persistVariationId=function(){var e=F.getVariationIdMap();u(R.VARIATION_MAP,e)},t.refreshSession=function(){I.dispatch(O.REFRESH_SESSION)},t.populateEagerVisitorData=function(e,n){var i=E.filter(e,(function(e){return!e.isLazy}));return t.populateVisitorData(i,n)},t.populateLazyVisitorData=function(e,n){var i=E.filter(e,(function(e){return e.isLazy}));return t.populateVisitorData(i,n)},t.populateVisitorData=function(e,t){t=t||{};var n=E.partial(i,t),r=E(e).filter({isAsync:!0}).map(n).filter().value();return E.forEach(E.filter(e,(function(e){return!e.isAsync})),n),r.length>0?D.all(r):D.resolve()},t.loadData=function(){g(r(R.EVENTS)||[],r(R.EVENT_QUEUE)||[]);var e=a(R.LAYER_STATES);v(o(e)),m(r(R.SESSION_STATE)||{}),y(r(R.VISITOR_PROFILE)||{}),t.loadForeignData(),t.removeLegacySessionStateCookies()},t.persistBehaviorEvents=function(e){u(R.EVENTS,e)},t.persistBehaviorEventQueue=function(e){u(R.EVENT_QUEUE,e)},t.persistLayerStates=function(){var e=k.getLayerStates(t.getNamespace());e=E.map(e,(function(e){return E.omit(e,"namespace")})),u(R.LAYER_STATES,e)},t.persistSessionState=function(){u(R.SESSION_STATE,V.getState())},t.persistVisitorProfile=function(){u(R.VISITOR_PROFILE,h())},t.getUserIdFromKey=function(e,n){var i;return E.includes(e,n)&&E.includes(e,"_")&&E.includes(e,"$$")&&E.includes(e.slice(e.indexOf("$$")),t.getNamespace())&&(i=e.slice(e.indexOf("_")+1,e.indexOf("$$"))),i},t.persistVisitorId=function(e){E.isUndefined(e.UUID)?e.randomId&&S.set(A.COOKIES.VISITOR_ID,e.randomId):null===e.UUID?S.remove(A.COOKIES.VISITOR_UUID):S.set(A.COOKIES.VISITOR_UUID,e.UUID)},t.getAttribute=function(e){return M.getAttribute(e)},t.getPendingAttributeValue=function(e){return U.getPendingAttributeValue(e)},t.loadForeignData=function(){E.each(w.keys(),(function(e){var t=w.getItem(e);t&&d(e,t)}))},t.getNamespace=function(){return L.getNamespace()},t.removeLegacySessionStateCookies=function(){var e=S.getAll();E.forEach(E.keys(e),(function(e){0===e.indexOf(A.COOKIES.SESSION_STATE+"$$")&&S.remove(e)}))}}),(function(e,t,n){var i=n(94);t.initializeStore=i.initialize,t.addEvent=i.addEvent,t.getEvents=i.getEvents,t.usageInBytes=i.usageInBytes}),(function(e,t,n){function i(e){_.dispatch(E.SET_VISITOR_EVENTS,e)}function r(e){_.dispatch(E.UPDATE_BEHAVIOR_STORE,{key:"baseMap",value:e})}function o(e){_.dispatch(E.UPDATE_BEHAVIOR_STORE,{key:"eventQueue",value:e})}function a(e){_.dispatch(E.UPDATE_BEHAVIOR_STORE,{key:"lastEvent",value:e})}function s(e){_.dispatch(E.UPDATE_BEHAVIOR_STORE,{key:"cleared",value:e})}function u(){_.dispatch(E.UPDATE_BEHAVIOR_STORE,{key:"initialized",value:!0})}function c(){return!0}function l(){return x.getEvents()}function d(){return C.getBaseMap()}function f(){return C.getEventQueue()}function p(){return C.getLastEvent()}function h(){return C.getCleared()}function g(){return C.getInitialized()}function v(){return i(l().concat(f())),o([]),l().length>L&&(i(l().slice(-L)),!0)}var m=n(8),_=n(5),y=n(11),E=n(17),I=n(95),T=n(92),w=n(14),b=t,S=n(50).EventBase,A=n(50).Event,D=n(51),O=n(96),N=n(19),x=N.get("stores/visitor_events"),C=N.get("stores/visitor_events_manager"),R={EVENTBASE:"eb",HASH:"h",TIMEBASE:"tb",TIMESTAMPS:"ts",DELTA:"d",INDEX:"i"},L=1e3;t.initialize=function(e,t){if(!c())return void b.je();if(!g()){b.Be(e,t);var n=l();n.length>0&&a(n[n.length-1]);var i=f();i.length>0&&a(i[i.length-1]),u()}},t.addEvent=function(e){if(!c())return void b.je();y.debug("Behavior store: adding event",e);var t=b.He(e);a(t),o(f().concat(t)),b.ze(f())},t.getEvents=function(){return c()?(f().length>0&&(v()&&O.sessionize(l()),b.qe(l()),b.ze(f())),l()):(b.je(),[])},b.Be=function(e,t){b.Ye(e,t)&&(b.qe(l()),b.ze(f())),O.sessionize(l())},b.Ye=function(e,t){if(0===e.length&&0===t.length)return i([]),o([]),!1;var n=!1,r=e[0]||t[0];return R.EVENTBASE in r?(i(b.We(e)),o(b.We(t))):(n=!0,i(b.Ke(e)),o(b.Ke(t))),f().length>0&&(v(),n=!0),i(b._updateBaseMapAndMaybeDedupe(l())),b._migrateEventBasesAndUpdateStore()&&(n=!0),n},b.Ke=function(e){for(var t=[],n=0;n-1)return{experimentId:e.experiments[n].id,variationId:e.experiments[n].variations[i].id};return null}function r(e){var t=v.getPlugin(c.PluginTypes.deciders,e);if(a.isEmpty(t))throw new Error("No deciders found for policy: "+e);return t}function o(e,t){var n=v.getAllPlugins(c.PluginTypes.audienceMatchers);return a.reduce(t,(function(t,i){return f.isInAudience(e,i,n)&&t.push(i.id),t}),[])}var a=n(8),s=n(103),u=n(104),c=n(12),l=n(11),d=n(83),f=n(107),p=n(105).DecisionError,h=n(97),g=n(19),v=g.get("stores/plugins"),m=g.get("stores/global");t.createTicket=function(e){var t;if(e.layer){var n=!1,i=r(e.layer.policy);a.isFunction(i.includeViewIdInDecisionTicket)?n=i.includeViewIdInDecisionTicket(e.layer):i.includeViewIdInDecisionTicket===!0&&(n=!0),n&&(t=e.viewId)}var s={bucketingId:e.bucketingId,audienceIds:o(e.visitorProfile,e.audiences),globalHoldback:e.globalHoldback,preferredVariationMap:e.preferredVariationMap,activationId:m.getActivationId(),viewId:t};return s},t.decideGlobal=function(e){var t=s.isHoldback(e.bucketingId,{id:null,holdback:e.globalHoldback});return{isGlobalHoldback:t}},t.decideLayer=function(e,t){l.debug("Deciding: ",e,t);var n,i,o=r(e.policy),c={layerId:e.id,experimentId:null,variationId:null,isLayerHoldback:s.isHoldback(t.bucketingId,e)};if(a.isEmpty(e.experiments))throw new p("No experiments in layer.");try{if(o.decideLayer){l.debug("Decision / Using decider's custom decideLayer.");var f=o.decideLayer(e,t);n=f.experiment,i=f.variation}else l.debug("Decision / Using default decideLayer behavior."),n=o.selectExperiment(e,t.audienceIds,t.bucketingId),i=u.selectVariation(n,t.audienceIds,t.bucketingId,t.activationId,t.preferredVariationMap)}catch(e){e instanceof p?c.reason=e.message:c.error=e}return c.experimentId=n?n.id:null,c.variationId=i?i.id:null,c.error?(c.error.name="DecisionEngineError",d.emitError(c.error)):c.experimentId&&c.variationId||l.log("Decision / Not in Campaign",h.description(e),"because:",c.reason),c},t.getDummyLayerDecision=function(e,t){var n,r=i(e,t);return r?(l.log("Decision / Applying force variation:",r.variationId,"to Campaign",h.description(e)),n={layerId:e.id,variationId:r.variationId,experimentId:r.experimentId,isLayerHoldback:!1,reason:"force"}):(l.log("No variation matches ids:",t,"in Campaign",h.description(e)),n={layerId:e.id,variationId:null,experimentId:null,isLayerHoldback:!1,reason:"force"}),n}}),(function(e,t,n){var i=n(52),r=t.TOTAL_POINTS=1e4,o=function(e,t,n){var o=i.hashToInt(e+t,n,r);return o};t.isHoldback=function(e,t){return o(e,t.id,i.Seed.IGNORING)<(t.holdback||0)},t.chooseWeightedCandidate=function(e,t,n){for(var r=o(e,t,i.Seed.BUCKETING),a=0;ar)return n[a].entityId;throw new Error("Unable to choose candidate")}}),(function(e,t,n){var i=n(8),r=n(103),o=n(105).DecisionError,a=n(106),s=n(11),u="impression";t.isValidExperiment=function(e,t){var n,r=i.partial(i.includes,e);return s.groupCollapsed("Decision / Evaluating audiences for experiment:",t,e),n=!t.audienceIds||a.evaluate(t.audienceIds,r),s.groupEnd(),s.debug("Decision / Experiment",t,"is valid?",n),n},t.selectVariation=function(e,t,n,a,c){if(!e.variations||0===e.variations.length)throw new o('No variations in selected experiment "'+e.id+'"');if(!e.weightDistributions&&e.variations.length>1)throw new o('On selected experiment "'+e.id+'", weightDistributions must be defined if # variations > 1');var l;if(e.bucketingStrategy&&e.bucketingStrategy===u)if(1===e.variations.length)l=e.variations[0].id;else{var d=a;l=r.chooseWeightedCandidate(n+d,e.id,e.weightDistributions)}else if(c&&c[e.id]){s.debug("Decision / Using preferredVariationMap to select variation for experiment:",e.id);var f=c[e.id];if(!i.find(e.variations,{id:f}))return s.debug("Decision / Preferred variation:",f,"not found on experiment:",e.id,". Visitor not bucketed."),null;l=f}else l=1===e.variations.length?e.variations[0].id:r.chooseWeightedCandidate(n,e.id,e.weightDistributions);var p=i.find(e.variations,{id:l});if(p)return s.debug("Decision / Selected variation:",p),p;throw new o('Unable to find selected variation: "'+l+'".')},t.getExperimentById=function(e,t){var n=i.find(e.experiments,{id:t});if(n)return n;throw new o("Unable to find selected experiment.")},t.hasVariationActionsOnView=function(e,t){return s.debug("Decision / Checking variation:",e,"for actions on viewId:",t),!!i.find(e.actions,(function(e){return e.viewId===t&&!i.isEmpty(e.changes)}))}}),(function(e,t){function n(e){this.message=e}n.prototype=new Error,t.DecisionError=n}),(function(e,t,n){function i(e,t){for(var n,i,r=0;r=i?g.emitError(new E("Message ID is greater than expected maximum ID ("+t.id+">"+i+")")):t.id<0?g.emitError(new E("Message ID is < 0: "+t.id)):g.emitError(new E("No stored message found for message ID: "+t.id))}else g.emitError(new E("Message ID is not a number: "+t.id.toString()));return}n.resolver(t.response),c.dispatch(l.XDOMAIN_SET_MESSAGE,{messageId:t.id,message:a.extend({},n,{endTime:h.now(),response:t.response})})}}function r(e,t){return t||(t=y.getDefaultFrame()),new s(function(n){var i={data:a.extend({},e,{id:y.getNextMessageId()}),resolver:n};t?o(i,t):c.dispatch(l.XDOMAIN_SET_MESSAGE,{messageId:i.data.id,message:i})})}function o(e,t){var n=e.data;c.dispatch(l.XDOMAIN_SET_MESSAGE,{messageId:e.data.id,message:a.extend({},e,{startTime:h.now()})}),t.target.postMessage(m.stringify(n),t.origin)}var a=n(8),s=n(61).Promise,u=n(2),c=n(5),l=n(17),d=n(19),f=n(69),p=n(16),h=n(14),g=n(83),v=n(92),m=n(18),_=n(11),y=d.get("stores/xdomain"),E=t.Error=u("XDomainStorageError");t.setItem=function(e,t,n){return r({type:"PUT",key:e,value:m.stringify(t)},n)},t.getItem=function(e,t){return r({type:"GET",key:e},t)},t.fetchAll=function(e){return r({type:"GETALL"},e)},t.subscribe=function(e){c.dispatch(l.XDOMAIN_ADD_SUBSCRIBER,{subscriber:e})},t.loadIframe=function(e,t){return new s(function(n){var i=f.createElement("iframe");i.src=e+t,f.appendToHead(i),i.onload=function(){var r={id:y.getNextFrameId(),target:i.contentWindow,origin:e,path:t};c.dispatch(l.XDOMAIN_ADD_FRAME,r),n(r)}})},t.loadCanonicalOrigins=function(e){c.dispatch(l.XDOMAIN_SET_CANONICAL_ORIGINS,{canonicalOrigins:e})},t.getXDomainUserId=function(e,t){var n,i={};return a.each(t,(function(t){i[t]=[],a.each(a.keys(e),(function(e){var r=v.getUserIdFromKey(e,t);!n&&r&&(n=r),r&&!a.includes(i[t],r)&&i[t].push(r)}))})),_.debug("XDomain: Found userIds:",i),n},t.load=function(e,n){return p.addEventListener("message",i),t.loadIframe(e,n).then((function(e){c.dispatch(l.XDOMAIN_SET_DEFAULT_FRAME,e),a.each(y.getMessages(),(function(t){t.startTime||o(t,e)}))}))}}),(function(e,t,n){var i=n(61).Promise,r=n(8);t.firstToResolve=function(e){return new i(function(t){r.each(e,(function(e){i.resolve(e).then(t)}))})}}),(function(e,t,n){var i=n(8),r=n(81).LocalStorage,o=n(11),a=n(60),s=n(12),u=n(83),c=n(19),l=c.get("stores/pending_events"),d=s.StorageKeys.PENDING_EVENTS;t.persistPendingEvents=function(){try{var e=l.getEvents();r.setItem(d,e)}catch(e){o.warn("PendingEvents / Unable to set localStorage key, error was: ",e),u.emitError(e)}},t.getPendingEvents=function(){return r.getItem(d)},t.retryPendingEvents=function(e){i.forOwn(e,(function(e,t){a.retryableRequest(e.data,t,e.retryCount)})),i.isEmpty(e)||o.log("Retried pending events: ",e)}}),(function(e,t,n){var i=n(8),r=n(11),o=n(120),a=n(19),s=a.get("stores/plugins"),u=n(12),c=[n(130),n(131),n(132)],l=["disable","load"];t.push=function(e,t){var n,o,a,s;if(!i.isArray(e)&&i.isObject(e))s=i.isUndefined(e.version)?1:e.version,n=e.type,a=[e];else if(i.isArray(e))s=0,n=e[0],a=e.slice(1);else{if(!i.isString(e))return r.warn("API / Ignoring non-array/object/string argument:",e),!1;s=0,n=e,a=[]}if(c[s]&&(o=c[s][n]),t&&l.indexOf(n)===-1)return r.debug("API / Ignoring non high priority function:",n,a),!1;if(!o)return r.warn('API / No function found for "'+n+'" (v'+s+") with arguments:",a),!1;r.log('API / Executing: "'+n,'" with arguments:',a);try{o.apply(null,a)}catch(e){r.error(e)}return!0},t.get=function(e){var t=o[e];return t?(i.isArray(t)&&(t=a.evaluate(t)),t):(t=s.getPlugin(u.PluginTypes.apiModules,e))?t:void r.warn('Module "'+e+'" not found.')}}),(function(e,t,n){function i(e,t,n,i,a,u,c){var l=[],d=e.getLayerStates();c.policy===s&&(d=o.filter(d,(function(e){var n=t.get(e.layerId);return n&&n.policy===s})));var f=o.map(d,(function(e){var t=!!e.decision.variationId,n=e.decisionActivationId&&e.decisionActivationId===i.getActivationId(),r=t&&a.getEffectiveVariationId()===e.decision.variationId;return o.extend(e,{isActive:t&&n||r,visitorRedirected:r})})),p=u?o.filter(f,u):f;return o.each(p,(function(e){var i=r(e,t,n,c.includeOfferConsistency);i&&l.push(i)})),l}function r(e,t,n,i){var r,a,u=e.layerId,c=t.get(u)||{},l=o.map(c.experiments,(function(e){return o.pick(e,["id","name"])}));if(i||!c.decisionMetadata||!c.decisionMetadata.offerConsistency){var d={id:u,campaignName:c.name||null,experiment:null,allExperiments:l,variation:null,reason:e.decision.reason,isActive:e.isActive,visitorRedirected:e.visitorRedirected,isInCampaignHoldback:e.decision.isLayerHoldback};e.decision&&e.decision.experimentId&&(r=o.find(c.experiments,{id:e.decision.experimentId})),r&&(d.experiment=o.pick(r,["id","name"]),c.policy!==s&&(d.experiment.campaignName=c.name||null)),r&&e.decision.variationId&&(a=o.find(r.variations,{id:e.decision.variationId})),a&&(d.variation=o.pick(a,["id","name"]));var f=o.map(e.decisionTicket.audienceIds,(function(e){return o.pick(n.get(e),["id","name"])}));return d.audiences=f,c.decisionMetadata&&c.decisionMetadata.offerConsistency&&(d.pageId=e.viewId),d}}var o=n(8),a=n(115),s="single_experiment";t.data=["stores/audience_data","stores/event_data","stores/layer_data","stores/view_data","stores/global",function(e,t,n,i,r){var u={audiences:{},events:{},campaigns:{},pages:{},experiments:{},variations:{},projectId:r.getProjectId(),snippetId:r.getSnippetId(),accountId:r.getAccountId(),dcpServiceId:r.getDCPServiceId(),revision:r.getRevision(),clientVersion:a.VERSION};return o.each(e.getAll(),(function(e){u.audiences[e.id]=e})),o.each(t.getAll(),(function(e){u.events[e.id]=e,u.events[e.id].pageId=e.viewId})),o.each(n.getAll(),(function(e){u.campaigns[e.id]=e,u.campaigns[e.id].pageIds=e.viewIds,o.each(e.experiments,(function(t){u.experiments[t.id]=t,e.policy!==s&&(t.campaignName=e.name||null),o.each(t.variations,(function(e){u.variations[e.id]=e,o.each(u.variations[e.id].actions,(function(e){e.pageId=e.viewId}))}))}))})),o.each(i.getAll(),(function(e){u.pages[e.id]=e})),u}],t.session=["stores/session",function(e){return e.getState()}],t.visitor=["stores/visitor",function(e){return o.cloneDeep(e.getVisitorProfile())}],t.visitor_id=["stores/visitor_id",function(e){return{randomId:e.getRandomId(),UUID:e.getUUID()}}],t.state=["stores/audience_data","stores/layer_data","stores/layer","stores/view_data","stores/view","stores/global","stores/global_state",function(e,t,n,r,a,u,c){return{getCampaignStates:function(r){var a={},s=i(n,t,e,u,c,r,{includeOfferConsistency:!1});return o.each(s,(function(e){a[e.id]=e})),a},getExperimentStates:function(r){var a=i(n,t,e,u,c,r,{includeOfferConsistency:!1,policy:s}),l=["audiences","variation","reason","visitorRedirected","isActive"],d=o.reduce(a,(function(e,t){var n=t.allExperiments[0];return e[n.id]=o.extend({},o.pick(t,l),{id:n.id,experimentName:n.name,isInExperimentHoldback:t.isInCampaignHoldback}),e}),{});return d},getCampaignStateLists:function(r){var a={},s=i(n,t,e,u,c,r,{includeOfferConsistency:!0});return o.each(s,(function(e){var t=e.id;a[t]||(a[t]=[]),a[t].push(e)})),a},getPageStates:function(e){var t=a.getAll(),n=e?o.filter(t,e):t;return o.reduce(n,(function(e,t){var n=r.get(t.id);return e[t.id]=o.extend({},o.pick(n,["id","name","apiName","category","staticConditions","tags"]),o.pick(t,["isActive","metadata"])),e}),{})},isGlobalHoldback:function(){return u.isGlobalHoldback()},getActivationId:function(){return u.getActivationId()},getVariationMap:function(){var e=n.getLayerStates(),i={};return o.each(e,(function(e){var n=t.get(e.layerId);if(e.decision&&e.decision.experimentId&&(i[e.decision.experimentId]={id:e.decision.variationId,name:null,index:null},n)){var r=o.find(n.experiments,{id:e.decision.experimentId});if(r&&e.decision.variationId)var a=o.find(r.variations,{id:e.decision.variationId}),s=o.findIndex(r.variations,{id:e.decision.variationId});a&&(i[e.decision.experimentId]={id:e.decision.variationId,name:a.name,index:s})}})),i},getActiveExperimentIds:function(){var e={};return o.each(this.getCampaignStateLists({isActive:!0}),(function(t){o.each(t,(function(t){e[t.experiment.id]=!0}))})),o.keys(e)},getRedirectInfo:function(){var e=null,n=c.getEffectiveVariationId();if(n){var i=t.getExperimentByVariationId(n),r=i?i.id:null;e={experimentId:r,variationId:n,referrer:c.getEffectiveReferrer()}}return e}}}],t.utils=n(121).create(),t.jquery=n(127),t.event_emitter=n(129)}),(function(e,t,n){var i=n(61).Promise,r=n(122).observeSelector,o=n(125).waitForElement,a=n(126).waitUntil,s=n(123).poll;t.create=function(){return{observeSelector:r,poll:s,Promise:i,waitForElement:o,waitUntil:a}}}),(function(e,t,n){function i(e){f[e]&&(f[e].cancelPolling(),delete f[e])}function r(e){if(f[e]){if(o(f[e]))return 0===f[e].matchedCount&&d.isFunction(f[e].options.onTimeout)&&f[e].options.onTimeout(),void i(e);var t=document.querySelectorAll(f[e].selector);t.length&&(d.each(t,(function(t){t.et&&t.et[e]||f[e].callbackQueue.push(t)})),a(e))}}function o(e){var t=e.options.timeout;if(null!==t)if("function"==typeof t)try{return t()}catch(e){}else if(Date.now()-e.startTime>t)return!0;return!1}function a(e){for(;f[e]&&f[e].callbackQueue.length;){var t=f[e].callbackQueue.shift();if(s(t,e),f[e].matchedCount=f[e].matchedCount+1,f[e].callback(t),f[e].options.once)return void i(e)}}function s(e,t){e.et||(e.et={}),e.et[t]=!0}function u(e){try{document.querySelector(e)}catch(e){return!1}return!0}var c=n(123),l=n(44).generate,d=n(8),f={},p={once:!1,onTimeout:null,timeout:null};t.observeSelector=function(e,t,n){if(!u(e))throw new Error("observeSelector expects a valid css selector as its first argument");if(!d.isFunction(t))throw new Error("observeSelector expects a function as its second argument");if(n&&(!d.isObject(n)||d.isFunction(n)))throw new Error("observeSelector expects an object as its third argument");var o=l();return n=d.merge({},p,n||{}),f[o]={callback:t,callbackQueue:[],cancelPolling:c.poll(d.partial(r,o)),matchedCount:0,options:n,selector:e,startTime:Date.now()},setTimeout(r.bind(null,o),0),d.partial(i,o)}}),(function(e,t,n){function i(e){u[e]&&o.each(u[e].callbacks,(function(e){e.call(null)}))}function r(e,t){u[t]&&u[t].callbacks[e]&&(delete u[t].callbacks[e],o.some(u[t].callbacks)||(clearInterval(u[t].id),delete u[t]))}var o=n(8),a=n(44).generate,s=n(124).DEFAULT_INTERVAL,u={};t.poll=function(e,t){o.isNumber(t)||(t=s),u[t]||(u[t]={callbacks:{},id:setInterval(o.partial(i,t),t)});var n=a();return u[t].callbacks[n]=e,o.partial(r,n,t)},t.cancelAll=function(){o.each(u,(function(e,t){clearInterval(e.id),delete u[t]}))}}),(function(e,t){e.exports={DEFAULT_INTERVAL:20}}),(function(e,t,n){var i=n(61).Promise,r=n(122).observeSelector;t.waitForElement=function(e){return new i(function(t,n){r(e,t,{once:!0})})}}),(function(e,t,n){var i=n(61).Promise,r=n(123).poll;t.waitUntil=function(e){return new i(function(t,n){if(e())return void t();var i=r((function(){e()&&(i(),t())}))})}}),(function(e,t,n){n(16);e.exports=n(128)}),(function(e,t,n){var i,r;/** @license
* jQuery JavaScript Library v1.11.3 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseJSON,-ajax/parseXML,-ajax/script,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-deprecated,-effects,-effects/Tween,-effects/animatedSelector,-effects/support,-wrap,-offset,-dimensions
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2015-11-13T19:53Z
*/
!(function(t,n){"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)})("undefined"!=typeof window?window:this,(function(n,o){function a(e){var t="length"in e&&e.length,n=W.type(e);return"function"!==n&&!W.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e))}function s(e,t,n){if(W.isFunction(t))return W.grep(e,(function(e,i){return!!t.call(e,i,e)!==n}));if(t.nodeType)return W.grep(e,(function(e){return e===t!==n}));if("string"==typeof t){if(te.test(t))return W.filter(t,e,n);t=W.filter(t,e)}return W.grep(e,(function(e){return W.inArray(e,t)>=0!==n}))}function u(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function c(e){var t=ce[e]={};return W.each(e.match(ue)||[],(function(e,n){t[n]=!0})),t}function l(){ie.addEventListener?(ie.removeEventListener("DOMContentLoaded",d,!1),n.removeEventListener("load",d,!1)):(ie.detachEvent("onreadystatechange",d),n.detachEvent("onload",d))}function d(){(ie.addEventListener||"load"===event.type||"complete"===ie.readyState)&&(l(),W.ready())}function f(e,t,n){if(void 0===n&&1===e.nodeType){var i="data-"+t.replace(he,"-$1").toLowerCase();if(n=e.getAttribute(i),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:pe.test(n)?W.parseJSON(n):n)}catch(e){}W.data(e,t,n)}else n=void 0}return n}function p(e){var t;for(t in e)if(("data"!==t||!W.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function h(e,t,n,i){if(W.acceptData(e)){var r,o,a=W.expando,s=e.nodeType,u=s?W.cache:e,c=s?e[a]:e[a]&&a;if(c&&u[c]&&(i||u[c].data)||void 0!==n||"string"!=typeof t)return c||(c=s?e[a]=F.pop()||W.guid++:a),u[c]||(u[c]=s?{}:{toJSON:W.noop}),"object"!=typeof t&&"function"!=typeof t||(i?u[c]=W.extend(u[c],t):u[c].data=W.extend(u[c].data,t)),o=u[c],i||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[W.camelCase(t)]=n),"string"==typeof t?(r=o[t],null==r&&(r=o[W.camelCase(t)])):r=o,r}}function g(e,t,n){if(W.acceptData(e)){var i,r,o=e.nodeType,a=o?W.cache:e,s=o?e[W.expando]:W.expando;if(a[s]){if(t&&(i=n?a[s]:a[s].data)){W.isArray(t)?t=t.concat(W.map(t,W.camelCase)):t in i?t=[t]:(t=W.camelCase(t),t=t in i?[t]:t.split(" ")),r=t.length;for(;r--;)delete i[t[r]];if(n?!p(i):!W.isEmptyObject(i))return}(n||(delete a[s].data,p(a[s])))&&(o?W.cleanData([e],!0):q.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function v(){return!0}function m(){return!1}function _(){try{return ie.activeElement}catch(e){}}function y(e){var t=Se.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function E(e,t){var n,i,r=0,o=typeof e.getElementsByTagName!==fe?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==fe?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(i=n[r]);r++)!t||W.nodeName(i,t)?o.push(i):W.merge(o,E(i,t));return void 0===t||t&&W.nodeName(e,t)?W.merge([e],o):o}function I(e){ye.test(e.type)&&(e.defaultChecked=e.checked)}function T(e,t){return W.nodeName(e,"table")&&W.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function w(e){return e.type=(null!==W.find.attr(e,"type"))+"/"+e.type,e}function b(e){var t=Ve.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function S(e,t){for(var n,i=0;null!=(n=e[i]);i++)W._data(n,"globalEval",!t||W._data(t[i],"globalEval"))}function A(e,t){if(1===t.nodeType&&W.hasData(e)){var n,i,r,o=W._data(e),a=W._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(i=0,r=s[n].length;i")).appendTo(t.documentElement),t=(je[0].contentWindow||je[0].contentDocument).document,t.write(),t.close(),n=O(e,t),je.detach()),ze[e]=n),n}function x(e,t){return{get:function(){var n=e();if(null!=n)return n?void delete this.get:(this.get=t).apply(this,arguments)}}}function C(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),i=t,r=tt.length;r--;)if(t=tt[r]+n,t in e)return t;return i}function R(e,t){for(var n,i,r,o=[],a=0,s=e.length;a=0&&n=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==W.type(e)||e.nodeType||W.isWindow(e))return!1;try{if(e.constructor&&!z.call(e,"constructor")&&!z.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(q.ownLast)for(t in e)return z.call(e,t);for(t in e);return void 0===t||z.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?B[H.call(e)]||"object":typeof e},globalEval:function(e){e&&W.trim(e)&&(n.execScript||function(e){n.eval.call(n,e)})(e)},camelCase:function(e){return e.replace($,"ms-").replace(X,Q)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var i,r=0,o=e.length,s=a(e);if(n){if(s)for(;rT.cacheLength&&delete e[t.shift()],e[n+" "]=i}var t=[];return e}function i(e){return e[U]=!0,e}function r(e){var t=R.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),i=e.length;i--;)T.attrHandle[n[i]]=t}function a(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||W)-(~e.sourceIndex||W);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function c(e){return i((function(t){return t=+t,i((function(n,i){for(var r,o=e([],n.length,t),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))}))}))}function l(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function d(){}function f(e){for(var t=0,n=e.length,i="";t1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function g(e,n,i){for(var r=0,o=n.length;r-1&&(i[c]=!(a[c]=d))}}else y=v(y===a?y.splice(h,y.length):y),o?o(null,a,y,u):J.apply(a,y)}))}function _(e){for(var t,n,i,r=e.length,o=T.relative[e[0].type],a=o||T.relative[" "],s=o?1:0,u=p((function(e){return e===t}),a,!0),c=p((function(e){return ee(t,e)>-1}),a,!0),l=[function(e,n,i){var r=!o&&(i||n!==O)||((t=n).nodeType?u(e,n,i):c(e,n,i));return t=null,r}];s1&&h(l),s>1&&f(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ue,"$1"),n,s0,o=e.length>0,a=function(i,a,s,u,c){var l,d,f,p=0,h="0",g=i&&[],m=[],_=O,y=i||o&&T.find.TAG("*",c),E=j+=null==_?1:Math.random()||.1,I=y.length;for(c&&(O=a!==R&&a);h!==I&&null!=(l=y[h]);h++){if(o&&l){for(d=0;f=e[d++];)if(f(l,a,s)){u.push(l);break}c&&(j=E)}r&&((l=!f&&l)&&p--,i&&g.push(l))}if(p+=h,r&&h!==p){for(d=0;f=n[d++];)f(g,m,a,s);if(i){if(p>0)for(;h--;)g[h]||m[h]||(m[h]=X.call(u));m=v(m)}J.apply(u,m),c&&!i&&m.length>0&&p+n.length>1&&t.uniqueSort(u)}return c&&(j=E,O=_),g};return r?i(a):a}var E,I,T,w,b,S,A,D,O,N,x,C,R,L,k,P,V,F,M,U="sizzle"+1*new Date,G=e.document,j=0,B=0,H=n(),z=n(),q=n(),Y=function(e,t){return e===t&&(x=!0),0},W=1<<31,K={}.hasOwnProperty,$=[],X=$.pop,Q=$.push,J=$.push,Z=$.slice,ee=function(e,t){for(var n=0,i=e.length;n+~]|"+ne+")"+ne+"*"),de=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),fe=new RegExp(ae),pe=new RegExp("^"+re+"$"),he={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie.replace("w","w*")+")"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},ge=/^(?:input|select|textarea|button)$/i,ve=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,_e=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,Ee=/'|\\/g,Ie=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),Te=function(e,t,n){var i="0x"+t-65536;return i!==i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},we=function(){C()};try{J.apply($=Z.call(G.childNodes),G.childNodes),$[G.childNodes.length].nodeType}catch(e){J={apply:$.length?function(e,t){Q.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}I=t.support={},b=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},C=t.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:G;return i!==R&&9===i.nodeType&&i.documentElement?(R=i,L=i.documentElement,n=i.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",we,!1):n.attachEvent&&n.attachEvent("onunload",we)),k=!b(i),I.attributes=r((function(e){return e.className="i",!e.getAttribute("className")})),I.getElementsByTagName=r((function(e){return e.appendChild(i.createComment("")),!e.getElementsByTagName("*").length})),I.getElementsByClassName=me.test(i.getElementsByClassName),I.getById=r((function(e){return L.appendChild(e).id=U,!i.getElementsByName||!i.getElementsByName(U).length})),I.getById?(T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&k){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},T.filter.ID=function(e){var t=e.replace(Ie,Te);return function(e){return e.getAttribute("id")===t}}):(delete T.find.ID,T.filter.ID=function(e){var t=e.replace(Ie,Te);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),T.find.TAG=I.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):I.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},T.find.CLASS=I.getElementsByClassName&&function(e,t){if(k)return t.getElementsByClassName(e)},V=[],P=[],(I.qsa=me.test(i.querySelectorAll))&&(r((function(e){L.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&P.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||P.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+U+"-]").length||P.push("~="),e.querySelectorAll(":checked").length||P.push(":checked"),e.querySelectorAll("a#"+U+"+*").length||P.push(".#.+[+~]")})),r((function(e){var t=i.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&P.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||P.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),P.push(",.*:")}))),(I.matchesSelector=me.test(F=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&r((function(e){I.disconnectedMatch=F.call(e,"div"),F.call(e,"[s!='']:x"),V.push("!=",ae)})),P=P.length&&new RegExp(P.join("|")),V=V.length&&new RegExp(V.join("|")),t=me.test(L.compareDocumentPosition),M=t||me.test(L.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Y=t?function(e,t){if(e===t)return x=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!I.sortDetached&&t.compareDocumentPosition(e)===n?e===i||e.ownerDocument===G&&M(G,e)?-1:t===i||t.ownerDocument===G&&M(G,t)?1:N?ee(N,e)-ee(N,t):0:4&n?-1:1)}:function(e,t){if(e===t)return x=!0,0;var n,r=0,o=e.parentNode,s=t.parentNode,u=[e],c=[t];if(!o||!s)return e===i?-1:t===i?1:o?-1:s?1:N?ee(N,e)-ee(N,t):0;if(o===s)return a(e,t);for(n=e;n=n.parentNode;)u.unshift(n);for(n=t;n=n.parentNode;)c.unshift(n);for(;u[r]===c[r];)r++;return r?a(u[r],c[r]):u[r]===G?-1:c[r]===G?1:0},i):R},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==R&&C(e),n=n.replace(de,"='$1']"),I.matchesSelector&&k&&(!V||!V.test(n))&&(!P||!P.test(n)))try{var i=F.call(e,n);if(i||I.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return t(n,R,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==R&&C(e),M(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==R&&C(e);var n=T.attrHandle[t.toLowerCase()],i=n&&K.call(T.attrHandle,t.toLowerCase())?n(e,t,!k):void 0;return void 0!==i?i:I.attributes||!k?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],i=0,r=0;if(x=!I.detectDuplicates,N=!I.sortStable&&e.slice(0),e.sort(Y),x){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return N=null,e},w=t.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=w(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=w(t);return n},T=t.selectors={cacheLength:50,createPseudo:i,match:he,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Ie,Te),e[3]=(e[3]||e[4]||e[5]||"").replace(Ie,Te),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&fe.test(n)&&(t=S(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Ie,Te).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=H[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&H(e,(function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,n,i){return function(r){var o=t.attr(r,e);return null==o?"!="===n:!n||(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o.replace(se," ")+" ").indexOf(i)>-1:"|="===n&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,u){var c,l,d,f,p,h,g=o!==a?"nextSibling":"previousSibling",v=t.parentNode,m=s&&t.nodeName.toLowerCase(),_=!u&&!s;if(v){if(o){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===m:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?v.firstChild:v.lastChild],a&&_){for(l=v[U]||(v[U]={}),c=l[e]||[],p=c[0]===j&&c[1],f=c[0]===j&&c[2],d=p&&v.childNodes[p];d=++p&&d&&d[g]||(f=p=0)||h.pop();)if(1===d.nodeType&&++f&&d===t){l[e]=[j,p,f];break}}else if(_&&(c=(t[U]||(t[U]={}))[e])&&c[0]===j)f=c[1];else for(;(d=++p&&d&&d[g]||(f=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==m:1!==d.nodeType)||!++f||(_&&((d[U]||(d[U]={}))[e]=[j,f]),d!==t)););return f-=r,f===i||f%i===0&&f/i>=0}}},PSEUDO:function(e,n){var r,o=T.pseudos[e]||T.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[U]?o(n):o.length>1?(r=[e,e,"",n],T.setFilters.hasOwnProperty(e.toLowerCase())?i((function(e,t){for(var i,r=o(e,n),a=r.length;a--;)i=ee(e,r[a]),e[i]=!(t[i]=r[a])})):function(e){return o(e,0,r)}):o}},pseudos:{not:i((function(e){var t=[],n=[],r=A(e.replace(ue,"$1"));return r[U]?i((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:i((function(e){return function(n){return t(e,n).length>0}})),contains:i((function(e){return e=e.replace(Ie,Te),function(t){return(t.textContent||t.innerText||w(t)).indexOf(e)>-1}})),lang:i((function(e){return pe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(Ie,Te).toLowerCase(),function(t){var n;do if(n=k?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===L},focus:function(e){return e===R.activeElement&&(!R.hasFocus||R.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!T.pseudos.empty(e)},header:function(e){return ve.test(e.nodeName)},input:function(e){return ge.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c((function(){return[0]})),last:c((function(e,t){return[t-1]})),eq:c((function(e,t,n){return[n<0?n+t:n]})),even:c((function(e,t){for(var n=0;n=0;)e.push(i);return e})),gt:c((function(e,t,n){for(var i=n<0?n+t:n;++i2&&"ID"===(a=o[0]).type&&I.getById&&9===t.nodeType&&k&&T.relative[o[1].type]){if(t=(T.find.ID(a.matches[0].replace(Ie,Te),t)||[])[0],!t)return n;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=he.needsContext.test(e)?0:o.length;r--&&(a=o[r],!T.relative[s=a.type]);)if((u=T.find[s])&&(i=u(a.matches[0].replace(Ie,Te),ye.test(o[0].type)&&l(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&f(o),!e)return J.apply(n,i),n;break}}return(c||A(e,d))(i,t,!k,n,ye.test(e)&&l(t.parentNode)||t),n},I.sortStable=U.split("").sort(Y).join("")===U,I.detectDuplicates=!!x,C(),I.sortDetached=r((function(e){return 1&e.compareDocumentPosition(R.createElement("div"))})),r((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||o("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),I.attributes&&r((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||o("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),r((function(e){return null==e.getAttribute("disabled")}))||o(te,(function(e,t,n){var i;if(!n)return e[t]===!0?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),t})(n);W.find=J,W.expr=J.selectors,W.expr[":"]=W.expr.pseudos,W.unique=J.uniqueSort,W.text=J.getText,W.isXMLDoc=J.isXML,W.contains=J.contains;var Z=W.expr.match.needsContext,ee=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,te=/^.[^:#\[\.,]*$/;W.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?W.find.matchesSelector(i,e)?[i]:[]:W.find.matches(e,W.grep(t,(function(e){return 1===e.nodeType})))},W.fn.extend({find:function(e){var t,n=[],i=this,r=i.length;if("string"!=typeof e)return this.pushStack(W(e).filter((function(){for(t=0;t1?W.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(s(this,e||[],!1))},not:function(e){return this.pushStack(s(this,e||[],!0))},is:function(e){return!!s(this,"string"==typeof e&&Z.test(e)?W(e):e||[],!1).length}});var ne,ie=n.document,re=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,oe=W.fn.init=function(e,t){var n,i;if(!e)return this;if("string"==typeof e){if(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:re.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||ne).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof W?t[0]:t,W.merge(this,W.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:ie,!0)),ee.test(n[1])&&W.isPlainObject(t))for(n in t)W.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if(i=ie.getElementById(n[2]),i&&i.parentNode){if(i.id!==n[2])return ne.find(e);this.length=1,this[0]=i}return this.context=ie,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):W.isFunction(e)?"undefined"!=typeof ne.ready?ne.ready(e):e(W):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),W.makeArray(e,this))};oe.prototype=W.fn,ne=W(ie);var ae=/^(?:parents|prev(?:Until|All))/,se={children:!0,contents:!0,next:!0,prev:!0};W.extend({dir:function(e,t,n){for(var i=[],r=e[t];r&&9!==r.nodeType&&(void 0===n||1!==r.nodeType||!W(r).is(n));)1===r.nodeType&&i.push(r),r=r[t];return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),W.fn.extend({has:function(e){var t,n=W(e,this),i=n.length;return this.filter((function(){for(t=0;t-1:1===n.nodeType&&W.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?W.unique(o):o)},index:function(e){return e?"string"==typeof e?W.inArray(this[0],W(e)):W.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(W.unique(W.merge(this.get(),W(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),W.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return W.dir(e,"parentNode")},parentsUntil:function(e,t,n){return W.dir(e,"parentNode",n)},next:function(e){return u(e,"nextSibling")},prev:function(e){return u(e,"previousSibling")},nextAll:function(e){return W.dir(e,"nextSibling")},prevAll:function(e){return W.dir(e,"previousSibling")},nextUntil:function(e,t,n){return W.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return W.dir(e,"previousSibling",n)},siblings:function(e){return W.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return W.sibling(e.firstChild)},contents:function(e){return W.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:W.merge([],e.childNodes)}},(function(e,t){W.fn[e]=function(n,i){var r=W.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=W.filter(i,r)),this.length>1&&(se[e]||(r=W.unique(r)),ae.test(e)&&(r=r.reverse())),this.pushStack(r)}}));var ue=/\S+/g,ce={};W.Callbacks=function(e){e="string"==typeof e?ce[e]||c(e):W.extend({},e);var t,n,i,r,o,a,s=[],u=!e.once&&[],l=function(c){for(n=e.memory&&c,i=!0,o=a||0,a=0,r=s.length,t=!0;s&&o-1;)s.splice(i,1),t&&(i<=r&&r--,i<=o&&o--)})),this},has:function(e){return e?W.inArray(e,s)>-1:!(!s||!s.length)},empty:function(){return s=[],r=0,this},disable:function(){return s=u=n=void 0,this},disabled:function(){return!s},lock:function(){return u=void 0,n||d.disable(),this},locked:function(){return!u},fireWith:function(e,n){return!s||i&&!u||(n=n||[],n=[e,n.slice?n.slice():n],t?u.push(n):l(n)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!i}};return d},W.extend({Deferred:function(e){var t=[["resolve","done",W.Callbacks("once memory"),"resolved"],["reject","fail",W.Callbacks("once memory"),"rejected"],["notify","progress",W.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return W.Deferred((function(n){W.each(t,(function(t,o){var a=W.isFunction(e[t])&&e[t];r[o[1]]((function(){var e=a&&a.apply(this,arguments);e&&W.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===i?n.promise():this,a?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?W.extend(e,i):i}},r={};return i.pipe=i.then,W.each(t,(function(e,o){var a=o[2],s=o[3];i[o[1]]=a.add,s&&a.add((function(){n=s}),t[1^e][2].disable,t[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=a.fireWith})),i.promise(r),e&&e.call(r,r),r},when:function(e){var t,n,i,r=0,o=M.call(arguments),a=o.length,s=1!==a||e&&W.isFunction(e.promise)?a:0,u=1===s?e:W.Deferred(),c=function(e,n,i){return function(r){n[e]=this,i[e]=arguments.length>1?M.call(arguments):r,i===t?u.notifyWith(n,i):--s||u.resolveWith(n,i)}};if(a>1)for(t=new Array(a),n=new Array(a),i=new Array(a);r0||(le.resolveWith(ie,[W]),W.fn.triggerHandler&&(W(ie).triggerHandler("ready"),W(ie).off("ready")))}}}),W.ready.promise=function(e){if(!le)if(le=W.Deferred(),"complete"===ie.readyState)setTimeout(W.ready);else if(ie.addEventListener)ie.addEventListener("DOMContentLoaded",d,!1),n.addEventListener("load",d,!1);else{ie.attachEvent("onreadystatechange",d),n.attachEvent("onload",d);var t=!1;try{t=null==n.frameElement&&ie.documentElement}catch(e){}t&&t.doScroll&&!(function e(){if(!W.isReady){try{t.doScroll("left")}catch(t){return setTimeout(e,50)}l(),W.ready()}})()}return le.promise(e)};var de,fe="undefined";for(de in W(q))break;q.ownLast="0"!==de,q.inlineBlockNeedsLayout=!1,W((function(){var e,t,n,i;n=ie.getElementsByTagName("body")[0],n&&n.style&&(t=ie.createElement("div"),i=ie.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),typeof t.style.zoom!==fe&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",q.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(i))})),(function(){var e=ie.createElement("div");if(null==q.deleteExpando){q.deleteExpando=!0;try{delete e.test}catch(e){q.deleteExpando=!1}}e=null})(),W.acceptData=function(e){var t=W.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||t!==!0&&e.getAttribute("classid")===t)};var pe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,he=/([A-Z])/g;W.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?W.cache[e[W.expando]]:e[W.expando],!!e&&!p(e)},data:function(e,t,n){return h(e,t,n)},removeData:function(e,t){return g(e,t)},_data:function(e,t,n){return h(e,t,n,!0)},_removeData:function(e,t){return g(e,t,!0)}}),W.fn.extend({data:function(e,t){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(r=W.data(o),1===o.nodeType&&!W._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&(i=a[n].name,0===i.indexOf("data-")&&(i=W.camelCase(i.slice(5)),f(o,i,r[i])));W._data(o,"parsedAttrs",!0)}return r}return"object"==typeof e?this.each((function(){W.data(this,e)})):arguments.length>1?this.each((function(){W.data(this,e,t)})):o?f(o,e,W.data(o,e)):void 0},removeData:function(e){return this.each((function(){W.removeData(this,e)}))}}),W.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=W._data(e,t),n&&(!i||W.isArray(n)?i=W._data(e,t,W.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=W.queue(e,t),i=n.length,r=n.shift(),o=W._queueHooks(e,t),a=function(){W.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,a,o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return W._data(e,n)||W._data(e,n,{empty:W.Callbacks("once memory").add((function(){W._removeData(e,t+"queue"),W._removeData(e,n)}))})}}),W.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.lengtha",q.leadingWhitespace=3===t.firstChild.nodeType,q.tbody=!t.getElementsByTagName("tbody").length,q.htmlSerialize=!!t.getElementsByTagName("link").length,q.html5Clone="<:nav>"!==ie.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,n.appendChild(e),q.appendChecked=e.checked,t.innerHTML="",q.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,n.appendChild(t),t.innerHTML="",q.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,q.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",(function(){q.noCloneEvent=!1})),t.cloneNode(!0).click()),null==q.deleteExpando){q.deleteExpando=!0;try{delete t.test}catch(e){q.deleteExpando=!1}}})(),(function(){var e,t,i=ie.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})t="on"+e,(q[e+"Bubbles"]=t in n)||(i.setAttribute(t,"t"),q[e+"Bubbles"]=i.attributes[t].expando===!1);i=null})();var Ee=/^(?:input|select|textarea)$/i,Ie=/^key/,Te=/^(?:mouse|pointer|contextmenu)|click/,we=/^(?:focusinfocus|focusoutblur)$/,be=/^([^.]*)(?:\.(.+)|)$/;W.event={global:{},add:function(e,t,n,i,r){var o,a,s,u,c,l,d,f,p,h,g,v=W._data(e);if(v){for(n.handler&&(u=n,n=u.handler,r=u.selector),n.guid||(n.guid=W.guid++),(a=v.events)||(a=v.events={}),(l=v.handle)||(l=v.handle=function(e){return typeof W===fe||e&&W.event.triggered===e.type?void 0:W.event.dispatch.apply(l.elem,arguments)},l.elem=e),t=(t||"").match(ue)||[""],s=t.length;s--;)o=be.exec(t[s])||[],p=g=o[1],h=(o[2]||"").split(".").sort(),p&&(c=W.event.special[p]||{},p=(r?c.delegateType:c.bindType)||p,c=W.event.special[p]||{},d=W.extend({type:p,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&W.expr.match.needsContext.test(r),namespace:h.join(".")},u),(f=a[p])||(f=a[p]=[],f.delegateCount=0,c.setup&&c.setup.call(e,i,h,l)!==!1||(e.addEventListener?e.addEventListener(p,l,!1):e.attachEvent&&e.attachEvent("on"+p,l))),c.add&&(c.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),r?f.splice(f.delegateCount++,0,d):f.push(d),W.event.global[p]=!0);e=null}},remove:function(e,t,n,i,r){var o,a,s,u,c,l,d,f,p,h,g,v=W.hasData(e)&&W._data(e);if(v&&(l=v.events)){for(t=(t||"").match(ue)||[""],c=t.length;c--;)if(s=be.exec(t[c])||[],p=g=s[1],h=(s[2]||"").split(".").sort(),p){for(d=W.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,f=l[p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=f.length;o--;)a=f[o],!r&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||i&&i!==a.selector&&("**"!==i||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,d.remove&&d.remove.call(e,a));
u&&!f.length&&(d.teardown&&d.teardown.call(e,h,v.handle)!==!1||W.removeEvent(e,p,v.handle),delete l[p])}else for(p in l)W.event.remove(e,p+t[c],n,i,!0);W.isEmptyObject(l)&&(delete v.handle,W._removeData(e,"events"))}},trigger:function(e,t,i,r){var o,a,s,u,c,l,d,f=[i||ie],p=z.call(e,"type")?e.type:e,h=z.call(e,"namespace")?e.namespace.split("."):[];if(s=l=i=i||ie,3!==i.nodeType&&8!==i.nodeType&&!we.test(p+W.event.triggered)&&(p.indexOf(".")>=0&&(h=p.split("."),p=h.shift(),h.sort()),a=p.indexOf(":")<0&&"on"+p,e=e[W.expando]?e:new W.Event(p,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=h.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:W.makeArray(t,[e]),c=W.event.special[p]||{},r||!c.trigger||c.trigger.apply(i,t)!==!1)){if(!r&&!c.noBubble&&!W.isWindow(i)){for(u=c.delegateType||p,we.test(u+p)||(s=s.parentNode);s;s=s.parentNode)f.push(s),l=s;l===(i.ownerDocument||ie)&&f.push(l.defaultView||l.parentWindow||n)}for(d=0;(s=f[d++])&&!e.isPropagationStopped();)e.type=d>1?u:c.bindType||p,o=(W._data(s,"events")||{})[e.type]&&W._data(s,"handle"),o&&o.apply(s,t),o=a&&s[a],o&&o.apply&&W.acceptData(s)&&(e.result=o.apply(s,t),e.result===!1&&e.preventDefault());if(e.type=p,!r&&!e.isDefaultPrevented()&&(!c._default||c._default.apply(f.pop(),t)===!1)&&W.acceptData(i)&&a&&i[p]&&!W.isWindow(i)){l=i[a],l&&(i[a]=null),W.event.triggered=p;try{i[p]()}catch(e){}W.event.triggered=void 0,l&&(i[a]=l)}return e.result}},dispatch:function(e){e=W.event.fix(e);var t,n,i,r,o,a=[],s=M.call(arguments),u=(W._data(this,"events")||{})[e.type]||[],c=W.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){for(a=W.event.handlers.call(this,e,u),t=0;(r=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,o=0;(i=r.handlers[o++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(i.namespace)||(e.handleObj=i,e.data=i.data,n=((W.event.special[i.origType]||{}).handle||i.handler).apply(r.elem,s),void 0!==n&&(e.result=n)===!1&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,o,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(r=[],o=0;o=0:W.find(n,this,null,[u]).length),r[n]&&r.push(i);r.length&&a.push({elem:u,handlers:r})}return s]","i"),Oe=/^\s+/,Ne=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,xe=/<([\w:]+)/,Ce=/\s*$/g,Me={option:[1,""],legend:[1,""],area:[1,""],param:[1,""],thead:[1,""],tr:[2,""],col:[2,""],td:[3,""],_default:q.htmlSerialize?[0,"",""]:[1,"X","
"]},Ue=y(ie),Ge=Ue.appendChild(ie.createElement("div"));Me.optgroup=Me.option,Me.tbody=Me.tfoot=Me.colgroup=Me.caption=Me.thead,Me.th=Me.td,W.extend({clone:function(e,t,n){var i,r,o,a,s,u=W.contains(e.ownerDocument,e);if(q.html5Clone||W.isXMLDoc(e)||!De.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Ge.innerHTML=e.outerHTML,Ge.removeChild(o=Ge.firstChild)),!(q.noCloneEvent&&q.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||W.isXMLDoc(e)))for(i=E(o),s=E(e),a=0;null!=(r=s[a]);++a)i[a]&&D(r,i[a]);if(t)if(n)for(s=s||E(e),i=i||E(o),a=0;null!=(r=s[a]);a++)A(r,i[a]);else A(e,o);return i=E(o,"script"),i.length>0&&S(i,!u&&E(e,"script")),i=s=r=null,o},buildFragment:function(e,t,n,i){for(var r,o,a,s,u,c,l,d=e.length,f=y(t),p=[],h=0;h$2>")+l[2],r=l[0];r--;)s=s.lastChild;if(!q.leadingWhitespace&&Oe.test(o)&&p.push(t.createTextNode(Oe.exec(o)[0])),!q.tbody)for(o="table"!==u||Ce.test(o)?""!==l[1]||Ce.test(o)?0:s:s.firstChild,r=o&&o.childNodes.length;r--;)W.nodeName(c=o.childNodes[r],"tbody")&&!c.childNodes.length&&o.removeChild(c);for(W.merge(p,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=f.lastChild}else p.push(t.createTextNode(o));for(s&&f.removeChild(s),q.appendChecked||W.grep(E(p,"input"),I),h=0;o=p[h++];)if((!i||W.inArray(o,i)===-1)&&(a=W.contains(o.ownerDocument,o),s=E(f.appendChild(o),"script"),a&&S(s),n))for(r=0;o=s[r++];)Pe.test(o.type||"")&&n.push(o);return s=null,f},cleanData:function(e,t){for(var n,i,r,o,a=0,s=W.expando,u=W.cache,c=q.deleteExpando,l=W.event.special;null!=(n=e[a]);a++)if((t||W.acceptData(n))&&(r=n[s],o=r&&u[r])){if(o.events)for(i in o.events)l[i]?W.event.remove(n,i):W.removeEvent(n,i,o.handle);u[r]&&(delete u[r],c?delete n[s]:typeof n.removeAttribute!==fe?n.removeAttribute(s):n[s]=null,F.push(r))}}}),W.fn.extend({text:function(e){return _e(this,(function(e){return void 0===e?W.text(this):this.empty().append((this[0]&&this[0].ownerDocument||ie).createTextNode(e))}),null,e,arguments.length)},append:function(){return this.domManip(arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=T(this,e);t.appendChild(e)}}))},prepend:function(){return this.domManip(arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=T(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},remove:function(e,t){for(var n,i=e?W.filter(e,this):this,r=0;null!=(n=i[r]);r++)t||1!==n.nodeType||W.cleanData(E(n)),n.parentNode&&(t&&W.contains(n.ownerDocument,n)&&S(E(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&W.cleanData(E(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&W.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return W.clone(this,e,t)}))},html:function(e){return _e(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(Ae,""):void 0;if("string"==typeof e&&!Le.test(e)&&(q.htmlSerialize||!De.test(e))&&(q.leadingWhitespace||!Oe.test(e))&&!Me[(xe.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Ne,"<$1>$2>");try{for(;n1&&"string"==typeof f&&!q.checkClone&&ke.test(f))return this.each((function(n){var i=l.eq(n);p&&(e[0]=f.call(this,n,i.html())),i.domManip(e,t)}));if(c&&(s=W.buildFragment(e,this[0].ownerDocument,!1,this),n=s.firstChild,1===s.childNodes.length&&(s=n),n)){for(o=W.map(E(s,"script"),w),r=o.length;u | t |
",r=e.getElementsByTagName("td"),r[0].style.cssText="margin:0;border:0;padding:0;display:none",s=0===r[0].offsetHeight,s&&(r[0].style.display="",r[1].style.display="none",s=0===r[0].offsetHeight),t.removeChild(i))}var t,i,r,o,a,s,u;t=ie.createElement("div"),t.innerHTML=" a",r=t.getElementsByTagName("a")[0],i=r&&r.style,i&&(i.cssText="float:left;opacity:.5",q.opacity="0.5"===i.opacity,q.cssFloat=!!i.cssFloat,t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",q.clearCloneStyle="content-box"===t.style.backgroundClip,q.boxSizing=""===i.boxSizing||""===i.MozBoxSizing||""===i.WebkitBoxSizing,W.extend(q,{reliableHiddenOffsets:function(){return null==s&&e(),s},boxSizingReliable:function(){return null==a&&e(),a},pixelPosition:function(){return null==o&&e(),o},reliableMarginRight:function(){return null==u&&e(),u}}))})(),W.swap=function(e,t,n,i){var r,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];r=n.apply(e,i||[]);for(o in t)e.style[o]=a[o];return r};var Ke=/alpha\([^)]*\)/i,$e=/opacity\s*=\s*([^)]*)/,Xe=/^(none|table(?!-c[ea]).+)/,Qe=new RegExp("^("+ge+")(.*)$","i"),Je=new RegExp("^([+-])=("+ge+")","i"),Ze={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"},tt=["Webkit","O","Moz","ms"];W.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=He(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:q.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=W.camelCase(t),u=e.style;if(t=W.cssProps[s]||(W.cssProps[s]=C(u,s)),a=W.cssHooks[t]||W.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:u[t];if(o=typeof n,"string"===o&&(r=Je.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(W.css(e,t)),o="number"),null!=n&&n===n&&("number"!==o||W.cssNumber[s]||(n+="px"),q.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,i)))))try{u[t]=n}catch(e){}}},css:function(e,t,n,i){var r,o,a,s=W.camelCase(t);return t=W.cssProps[s]||(W.cssProps[s]=C(e.style,s)),a=W.cssHooks[t]||W.cssHooks[s],a&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=He(e,t,i)),"normal"===o&&t in et&&(o=et[t]),""===n||n?(r=parseFloat(o),n===!0||W.isNumeric(r)?r||0:o):o}}),W.each(["height","width"],(function(e,t){W.cssHooks[t]={get:function(e,n,i){if(n)return Xe.test(W.css(e,"display"))&&0===e.offsetWidth?W.swap(e,Ze,(function(){return P(e,t,i)})):P(e,t,i)},set:function(e,n,i){var r=i&&Be(e);return L(e,n,i?k(e,t,i,q.boxSizing&&"border-box"===W.css(e,"boxSizing",!1,r),r):0)}}})),q.opacity||(W.cssHooks.opacity={get:function(e,t){return $e.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,r=W.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=i&&i.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===W.trim(o.replace(Ke,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=Ke.test(o)?o.replace(Ke,r):o+" "+r)}}),W.cssHooks.marginRight=x(q.reliableMarginRight,(function(e,t){if(t)return W.swap(e,{display:"inline-block"},He,[e,"marginRight"])})),W.each({margin:"",padding:"",border:"Width"},(function(e,t){W.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+ve[i]+t]=o[i]||o[i-2]||o[0];return r}},qe.test(e)||(W.cssHooks[e+t].set=L)})),W.fn.extend({css:function(e,t){return _e(this,(function(e,t,n){var i,r,o={},a=0;if(W.isArray(t)){for(i=Be(e),r=t.length;a1)},show:function(){return R(this,!0)},hide:function(){return R(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){me(this)?W(this).show():W(this).hide()}))}}),W.fn.delay=function(e,t){return e=W.fx?W.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,(function(t,n){var i=setTimeout(t,e);n.stop=function(){clearTimeout(i)}}))},(function(){var e,t,n,i,r;t=ie.createElement("div"),t.setAttribute("className","t"),t.innerHTML=" a",i=t.getElementsByTagName("a")[0],n=ie.createElement("select"),r=n.appendChild(ie.createElement("option")),e=t.getElementsByTagName("input")[0],i.style.cssText="top:1px",q.getSetAttribute="t"!==t.className,q.style=/top/.test(i.getAttribute("style")),q.hrefNormalized="/a"===i.getAttribute("href"),q.checkOn=!!e.value,q.optSelected=r.selected,q.enctype=!!ie.createElement("form").enctype,n.disabled=!0,q.optDisabled=!r.disabled,e=ie.createElement("input"),e.setAttribute("value",""),q.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),q.radioValue="t"===e.value})();var nt=/\r/g;W.fn.extend({val:function(e){var t,n,i,r=this[0];{if(arguments.length)return i=W.isFunction(e),this.each((function(n){var r;1===this.nodeType&&(r=i?e.call(this,n,W(this).val()):e,null==r?r="":"number"==typeof r?r+="":W.isArray(r)&&(r=W.map(r,(function(e){return null==e?"":e+""}))),t=W.valHooks[this.type]||W.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}));if(r)return t=W.valHooks[r.type]||W.valHooks[r.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(nt,""):null==n?"":n)}}}),W.extend({valHooks:{option:{get:function(e){var t=W.find.attr(e,"value");return null!=t?t:W.trim(W.text(e))}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,o="select-one"===e.type||r<0,a=o?null:[],s=o?r+1:i.length,u=r<0?s:o?r:0;u=0)try{i.selected=n=!0}catch(e){i.scrollHeight}else i.selected=!1;return n||(e.selectedIndex=-1),r}}}}),W.each(["radio","checkbox"],(function(){W.valHooks[this]={set:function(e,t){if(W.isArray(t))return e.checked=W.inArray(W(e).val(),t)>=0}},q.checkOn||(W.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var it,rt,ot=W.expr.attrHandle,at=/^(?:checked|selected)$/i,st=q.getSetAttribute,ut=q.input;W.fn.extend({attr:function(e,t){return _e(this,W.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){W.removeAttr(this,e)}))}}),W.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute===fe?W.prop(e,t,n):(1===o&&W.isXMLDoc(e)||(t=t.toLowerCase(),i=W.attrHooks[t]||(W.expr.match.bool.test(t)?rt:it)),void 0===n?i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=W.find.attr(e,t),null==r?void 0:r):null!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):void W.removeAttr(e,t))},removeAttr:function(e,t){var n,i,r=0,o=t&&t.match(ue);if(o&&1===e.nodeType)for(;n=o[r++];)i=W.propFix[n]||n,W.expr.match.bool.test(n)?ut&&st||!at.test(n)?e[i]=!1:e[W.camelCase("default-"+n)]=e[i]=!1:W.attr(e,n,""),e.removeAttribute(st?n:i)},attrHooks:{type:{set:function(e,t){if(!q.radioValue&&"radio"===t&&W.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),rt={set:function(e,t,n){return t===!1?W.removeAttr(e,n):ut&&st||!at.test(n)?e.setAttribute(!st&&W.propFix[n]||n,n):e[W.camelCase("default-"+n)]=e[n]=!0,n}},W.each(W.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=ot[t]||W.find.attr;ot[t]=ut&&st||!at.test(t)?function(e,t,i){var r,o;return i||(o=ot[t],ot[t]=r,r=null!=n(e,t,i)?t.toLowerCase():null,ot[t]=o),r}:function(e,t,n){if(!n)return e[W.camelCase("default-"+t)]?t.toLowerCase():null}})),ut&&st||(W.attrHooks.value={set:function(e,t,n){return W.nodeName(e,"input")?void(e.defaultValue=t):it&&it.set(e,t,n)}}),st||(it={set:function(e,t,n){var i=e.getAttributeNode(n);if(i||e.setAttributeNode(i=e.ownerDocument.createAttribute(n)),i.value=t+="","value"===n||t===e.getAttribute(n))return t}},ot.id=ot.name=ot.coords=function(e,t,n){var i;if(!n)return(i=e.getAttributeNode(t))&&""!==i.value?i.value:null},W.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:it.set},W.attrHooks.contenteditable={set:function(e,t,n){it.set(e,""!==t&&t,n)}},W.each(["width","height"],(function(e,t){W.attrHooks[t]={set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}}}))),q.style||(W.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var ct=/^(?:input|select|textarea|button|object)$/i,lt=/^(?:a|area)$/i;W.fn.extend({prop:function(e,t){return _e(this,W.prop,e,t,arguments.length>1)},removeProp:function(e){return e=W.propFix[e]||e,this.each((function(){try{this[e]=void 0,delete this[e]}catch(e){}}))}}),W.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var i,r,o,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return o=1!==a||!W.isXMLDoc(e),o&&(t=W.propFix[t]||t,r=W.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=W.find.attr(e,"tabindex");return t?parseInt(t,10):ct.test(e.nodeName)||lt.test(e.nodeName)&&e.href?0:-1}}}}),q.hrefNormalized||W.each(["href","src"],(function(e,t){W.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),q.optSelected||(W.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),W.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){W.propFix[this.toLowerCase()]=this})),q.enctype||(W.propFix.enctype="encoding");var dt=/[\t\r\n\f]/g;W.fn.extend({addClass:function(e){var t,n,i,r,o,a,s=0,u=this.length,c="string"==typeof e&&e;if(W.isFunction(e))return this.each((function(t){W(this).addClass(e.call(this,t,this.className))}));if(c)for(t=(e||"").match(ue)||[];s=0;)i=i.replace(" "+r+" "," ");a=e?W.trim(i):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):W.isFunction(e)?this.each((function(n){W(this).toggleClass(e.call(this,n,this.className,t),t)})):this.each((function(){if("string"===n)for(var t,i=0,r=W(this),o=e.match(ue)||[];t=o[i++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else n!==fe&&"boolean"!==n||(this.className&&W._data(this,"__className__",this.className),this.className=this.className||e===!1?"":W._data(this,"__className__")||"")}))},hasClass:function(e){for(var t=" "+e+" ",n=0,i=this.length;n=0)return!0;return!1}}),W.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(e,t){W.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),W.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),W.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!q.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||W.css(e,"display"))},W.expr.filters.visible=function(e){return!W.expr.filters.hidden(e)};var ft=/%20/g,pt=/\[\]$/,ht=/\r?\n/g,gt=/^(?:submit|button|image|reset|file)$/i,vt=/^(?:input|select|textarea|keygen)/i;W.param=function(e,t){var n,i=[],r=function(e,t){t=W.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=W.ajaxSettings&&W.ajaxSettings.traditional),W.isArray(e)||e.jquery&&!W.isPlainObject(e))W.each(e,(function(){r(this.name,this.value)}));else for(n in e)V(n,e[n],t,r);return i.join("&").replace(ft,"+")},W.fn.extend({serialize:function(){return W.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=W.prop(this,"elements");return e?W.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!W(this).is(":disabled")&&vt.test(this.nodeName)&&!gt.test(e)&&(this.checked||!ye.test(e))})).map((function(e,t){var n=W(this).val();return null==n?null:W.isArray(n)?W.map(n,(function(e){return{name:t.name,value:e.replace(ht,"\r\n")}})):{name:t.name,value:n.replace(ht,"\r\n")}})).get()}}),W.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||ie;var i=ee.exec(e),r=!n&&[];return i?[t.createElement(i[1])]:(i=W.buildFragment([e],t,r),r&&r.length&&W(r).remove(),W.merge([],i.childNodes))},i=[],r=function(){return W}.apply(t,i),!(void 0!==r&&(e.exports=r));var mt=n.jQuery,_t=n.$;return W.noConflict=function(e){return n.$===W&&(n.$=_t),e&&n.jQuery===W&&(n.jQuery=mt),W},typeof o===fe&&(n.jQuery=n.$=W),W}))}),(function(e,t,n){var i=n(84);t.on=function(e){return e.publicOnly=!0,i.on(e)},t.off=i.off,t.emit=function(e){i.emit(e)}}),(function(e,t,n){function i(e){var t,n={};if(e)if(r(e))t=Number(e);else{if("object"!=typeof e)throw new Error("tracker","Revenue argument",e,"not a number.");if(n=o.extend({},e),"revenue"in n){if(!r(n.revenue))throw new Error("tracker","Revenue value",n.revenue,"not a number.");t=Number(n.revenue),delete n.revenue}}return o.isUndefined(t)||(n.revenue=t),n}function r(e){return o.isNumber(e)||o.isString(e)&&Number(e)==e}var o=n(8),a=n(131);t.activateGeoDelayedExperiments=function(e,t){t||(t=e.lists?"odds":"cdn3"),a.dataFromSource({data:e,source:t})},t.activateSiteCatalyst=function(e){e&&e.sVariable&&a.integrationSettings({id:"adobe_analytics",settings:{sVariableReference:e.sVariable}})},t.bucketUser=t.bucketVisitor=function(e,t){if(e&&t){var n={experimentId:String(e)};t>256?n.variationId=String(t):n.variationIndex=String(t),
a.bucketVisitor(n)}},t.disable=function(e){a.disable({scope:e})},t.log=function(e){o.isUndefined(e)&&(e=!0),a.log({level:e?"INFO":"OFF"})},t.optOut=function(e){o.isUndefined(e)&&(e=!0),a.optOut({isOptOut:e})},t.setCookieDomain=function(e){a.cookieDomain({cookieDomain:e})},t.setCookieExpiration=function(e){a.cookieExpiration({cookieExpirationDays:e})},t.setDimensionValue=function(e,t){var n={};n[e]=t,a.user({attributes:n})},t.setUserId=function(e){a.user({userId:e})},t.storeThirdPartyData=function(e,t){a.dataFromSource({source:e,data:t})},t.trackEvent=function(e,t){a.event({eventName:e,tags:i(t)})}}),(function(e,t,n){var i=n(8),r=n(17),o=n(12),a=n(119),s=n(120),u=n(114),c=n(77),l=n(85),d=n(84),f=n(5),p=n(11),h=n(108),g=n(109),v=n(92),m=n(89),_=n(116),y=n(18),E=n(14),I=n(19),T=I.get("stores/dimension_data"),w=I.get("stores/view_data"),b=I.get("stores/visitor_id"),S=I.get("stores/layer_data"),A=I.get("stores/directive"),D=86400,O=90;t.event=function(e){g.updateAllViewTags();var t=function(){var t=u.trackCustomEvent(e.eventName,e.tags);t?p.log("API / Tracking custom event:",e.eventName,e.tags):p.log("API / Not tracking custom event:",e.eventName)};b.getBucketingId()?t():f.dispatch(r.ADD_CLEANUP_FN,{lifecycle:o.Lifecycle.postActivate,cleanupFn:t})},t.page=function(e){var t=w.getByApiName(e.pageName);if(!t)throw new Error('Unknown page "'+e.pageName+'"');var n=!e.hasOwnProperty("isActive")||e.isActive,i=function(){n?g.activate(t,e.tags):(g.deactivate(t),p.log("API / Deactivated Page",g.description(t)))};b.getBucketingId()?i():f.dispatch(r.ADD_CLEANUP_FN,{lifecycle:o.Lifecycle.postViewsActivated,cleanupFn:i})},t.tags=function(e){g.setGlobalTags(e.tags)},t.user=function(e){i.each(e,(function(e,t){"userId"===t?(p.log("API / Setting visitor UUID to",e),v.persistVisitorId({UUID:e})):"attributes"===t&&(p.log("API / Setting visitor attributes:",e),i.each(e,(function(e,t){var n,i=t,a="custom",s=T.getById(t)||T.getByApiName(t);s&&(i=s.id,n=s.segmentId||s.id);var u=function(){f.dispatch(r.SET_VISITOR_ATTRIBUTES,{attributes:[{key:i,value:{id:n,value:e},type:a,metadata:{lastModified:E.now()}}]})};b.getBucketingId()?u():f.dispatch(r.ADD_CLEANUP_FN,{lifecycle:o.Lifecycle.postVisitorProfileLoad,cleanupFn:u})})))}))},t.optOut=function(e){var t=!e.hasOwnProperty("isOptOut")||e.isOptOut;l.setOptOut(t)},t.cookieExpiration=function(e){var t=e.cookieExpirationDays;t=1&&c.includes(_.RUMPerformanceTimingAttributes,n)&&(e[n]=Math.round(t[0].end-t[0].start)),e}),{})}function a(){var e=v.getGlobal("performance");if(e){var t,n=w.getScriptSrc();try{if(n){g.debug("Using derived script src: ",n);var i=e.getEntriesByName(n);i.length>0&&(t=i[0])}if(!t){var r=/\/\/[^.]+\.optimizely\.(com|test)\/(js|api\/client)\/[\d]+\.js/gi;g.debug("Scanning resource timing entries with regex");var o=e.getEntriesByType("resource");t=c.find(o,(function(e){return r.test(e.name)}))}if(t)return c.mapValues(_.ResourceTimingAttributes,(function(e,n){return t[n]||0}))}catch(e){return}}}function s(){try{return!m.querySelector("body")}catch(e){return null}}function u(){try{v.getGlobal("requestAnimationFrame")((function(){var e=w.getRumData().timebase;h.dispatch(y.SET_RUM_DATA,{data:{render:d.now()-(e||0)}})}))}catch(e){return}}var c=n(8),l=n(61).Promise,d=n(14),f=n(60),p=n(93),h=n(5),g=n(11),v=n(16),m=n(69),_=n(12),y=n(17),E=n(19),I=E.get("stores/global"),T=E.get("stores/visitor_id"),w=E.get("stores/rum"),b=E.get("stores/performance"),S="https://rum.optimizely.com/rum",A=.003;t.initialize=function(){if(h.dispatch(y.SET_RUM_DATA,{RumHost:S,inRumSample:Math.random()":"gt",">=":"gte","=":"eq","==":"eq"};s.fieldComparison=function(e,t,n){return e=i(e),d.isString(t)&&(t=[t]),"exists"===e?{op:e,args:[{field:t}]}:{op:e,args:[{field:t},{value:n}]}},s.relativeTimeComparison=function(e,t){return{op:i(e),args:[{op:"-",args:[{eval:"now"},{field:[u.FIELDS.TIME]}]},{value:t*s.MILLIS_IN_A_DAY}]}},s.rangeTimeComparison=function(e){return d.isArray(e)?{op:"between",args:[{field:[u.FIELDS.TIME]},{value:e[0]||+new Date(0)},{value:e[1]||+new Date}]}:(l.error("Rule builder","rangeTimeComparison passed invalid range",e),null)},s.groupBy=function(e){for(var t=[],n=0;n0)throw new Error('A "pick" clause must not be specified with "count" or "most_recent", "most_frequent" modifiers'+f.stringify(e));return[r(e.pick,t,e.source)]}return n.length>0?n:[{where:t}]},s.buildFromSpecV0_2=function(e){o(e);var t={where:{op:"and",args:d.map(e.filter||[],(function(e){return"age"===e.field[0]?s.relativeTimeComparison(e.comparator||"eq",e.value/s.MILLIS_IN_A_DAY):s.fieldComparison(e.comparator||"eq",s.convertFieldKeyPathFromSpecV0_2(e.field),e.value)}))}};if(e.reduce&&"count"===e.reduce.aggregator)return d.extend(t,{aggregate:[{op:"count",args:[{field:["*"]}]}],select:[{field:["_count_*"]}]});var n=[],i=[];if(e.sort&&(d.each(e.sort,(function(e){d.includes(["ascending","descending"],e.direction)&&(d.includes(["time","age"],e.field[0])&&i.push(e),"frequency"===e.field[0]&&n.push(e))})),i.length&&!n.length&&(t.orderBy=d.filter(d.map(i,(function(e){return"time"===e.field[0]?{field:s.convertFieldKeyPathFromSpecV0_2(["time"]),direction:"ascending"===e.direction?"ASC":"DESC"}:"age"===e.field[0]?{field:s.convertFieldKeyPathFromSpecV0_2(["time"]),direction:"ascending"===e.direction?"DESC":"ASC"}:void 0}))))),e.pick&&e.pick.field){var r=s.convertFieldKeyPathFromSpecV0_2(e.pick.field);if(e.reduce&&d.includes(["avg","max","min","sum"],e.reduce.aggregator))return d.extend(t,{aggregate:[{op:e.reduce.aggregator,args:[{field:r}]}],select:[{field:[c.generateAlias(e.reduce.aggregator,r)]}]});t=n.length?d.extend(t,{groupBy:[{field:r}],aggregate:[{op:"count",args:[{field:["*"]}]}],orderBy:[{field:["_count_*"],direction:"ascending"===n[0].direction?"ASC":"DESC"}],select:[{field:[r.join(".")]}]}):d.extend(t,{select:[{field:r}]})}if(e.reduce&&"nth"===e.reduce.aggregator){var a=e.reduce.n;if(d.isNumber(a)&&a>=0&&Number(a)===Math.floor(Number(a)))return d.extend(t,{offset:a,limit:1})}return t},s.convertFieldKeyPathFromSpecV0_2=function(e){return"tags"===e[0]&&"revenue"===e[1]?["r"]:[u.FIELDS_V0_2[e[0]]].concat(e.slice(1))},s.FieldPurpose={FILTER:"filter",SORT:"sort",PICK:"pick"},s.validateFieldKeyPathV0_2=function(e,t){var n="field "+(f.stringify(e)||String(e));if(!d.isArray(e)||!d.every(e,d.isString))return n+" is not an array of strings";if("tags"===e[0]&&e.length>2||"tags"!==e[0]&&e.length>1)return n+" includes too many strings";if("tags"===e[0]&&e.length<2)return n+" does not specify an exact tag";if(e.length<1)return n+" does not specify a top-level field";var i=d.keys(u.FIELDS_V0_2),r=["age","frequency"];return t===s.FieldPurpose.FILTER&&(i.push("age"),r=["frequency"]),t===s.FieldPurpose.SORT&&(i=["time","age","frequency"],r=["name","type","category","tags"]),d.includes(r,e[0])?n+" is not supported here":d.includes(i,e[0])?void 0:n+" is unknown"},s.validateComparatorAndValue=function(e,t){var n="comparator "+(f.stringify(e)||String(e)),i="value "+(f.stringify(t)||String(t));if(!d.isString(e)&&!d.isUndefined(e))return n+" is not a string";switch(e){case void 0:case"eq":case"is":case"contains":break;case"lt":case"gt":case"lte":case"gte":if(!d.isNumber(t))return i+" is not a number (mandated by "+n+")";break;case"in":if(!d.isArray(t))return i+" is not an array (mandated by "+n+")";break;case"between":if(!(d.isArray(t)&&2===t.length&&d.isNumber(t[0])&&d.isNumber(t[1])&&t[0]<=t[1]))return i+" is not a pair of increasing numbers (mandated by "+n+")";break;case"regex":if(!(d.isString(t)||d.isArray(t)&&2===t.length&&d.isString(t[0])&&d.isString(t[1])))return i+" is not a pattern string or a [pattern string, flags string] array (mandated by "+n+")";break;case"exists":if(!d.isUndefined(t))return i+" is not undefined (mandated by "+n+")";break;default:return n+" is unknown"}}}),(function(e,t,n){var i=n(8),r=n(12),o=n(11),a=o.log.bind(o),s=n(14),u=n(54).getFieldValue,c=n(18),l=t;l.getValueOrDefault=function(e,t,n){if(e.getValueOrDefault)return e.getValueOrDefault(t,n);var i=u(e,t);return"undefined"==typeof i&&(i=n),i},l.maybeTrimLowerCase=function(e){return"string"==typeof e?e.trim().toLowerCase():e},l.clause={WHERE:"where",GROUP_BY:"groupBy",AGGREGATE:"aggregate",HAVING:"having",ORDER_BY:"orderBy",SELECT:"select",OFFSET:"offset",LIMIT:"limit",FROM:"from"},l.DEFAULT_FIELD=["*"],l.booleanOperators={eq:function(e){var t=i.map(e,l.maybeTrimLowerCase);return t[0]==t[1]},is:function(e){return e[0]===e[1]},gt:function(e){return e[0]>e[1]},lt:function(e){return e[0]=e[1]},lte:function(e){return e[0]<=e[1]},in:function(e){var t=i.map(e[1]||[],l.maybeTrimLowerCase);return i.includes(t,l.maybeTrimLowerCase(e[0]))},between:function(e){return e[1]<=e[0]&&e[0]<=e[2]},contains:function(e){var t=i.map(e,(function(e){return"string"==typeof e?e.toLowerCase():e}));return(t[0]||"").indexOf(t[1])!==-1},regex:function(e){try{var t,n;return i.isString(e[1])?(t=e[1],n="i"):(t=e[1][0]||"",n=e[1][1]||""),new RegExp(t,n).test(e[0])}catch(e){return o.error("Rules",'In operator "regex", error: '+(e.message||"invalid RegExp /"+[t,n].join("/"))),!1}},exists:function(e){return"undefined"!=typeof e[0]},and:function(e){return i.every(e,(function(e){return e}))},or:function(e){return i.some(e,(function(e){return e}))},not:function(e){return!e[0]}},l.arithmeticOperators={"+":function(e){return(e[0]||0)+(e[1]||0)},"-":function(e){return(e[0]||0)-(e[1]||0)},"/":function(e){return(e[0]||0)/(e[1]||1)},"%":function(e){return(e[0]||0)%(e[1]||1)}},l.aggregateOperators={sum:function(e,t){for(var n=e[0]||l.DEFAULT_FIELD,i=0,r=0;rc)return a}return 0})):(a("Rules","groupBy rule must be an array"),t)},l.rewrite=function(e){function t(e,a){if(i.isArray(e)&&("and"!==e[0]&&"or"!==e[0]&&"not"!==e[0]&&o.error("Rules","Unexpected operation "+e[0]+". Continuing optimistically."),e={op:e[0],args:e.slice(1)}),e.hasOwnProperty("field")||e.hasOwnProperty("value")||e.hasOwnProperty("eval"))return e;if(a&&e.op in l.aggregateOperators){var s=(e.args&&e.args[0]||{}).field||l.DEFAULT_FIELD,u=l.generateAlias(e.op,s);return u in r||(n.push({op:e.op,args:e.args}),r[u]=!0),{field:[u]}}for(var c=[],d=e.args||[],f=0;f0)&&(a[l.clause.AGGREGATE]=(e[l.clause.AGGREGATE]||[]).concat(n));for(var s=[l.clause.GROUP_BY,l.clause.ORDER_BY,l.clause.SELECT,l.clause.OFFSET,l.clause.LIMIT],u=0;u0&&(n=i.map(n,(function(e){return"Sub-rule "+t+": "+e}))),e.hasOwnProperty(l.clause.FROM)&&(n=n.concat(l.verify(e[l.clause.FROM],t+1))),n},l.select=function(e,t){return i.map(t,(function(t){return i.map(e,(function(e){return l.operate(t,e)}))}))},l.executeRecursively=function(e,t){var n=t;if(e.hasOwnProperty(l.clause.FROM)&&(o.debug("Evaluating FROM clause:",e[l.clause.FROM]),n=l.executeRecursively(e[l.clause.FROM],n),o.debug("Results after FROM:",n)),o.debug("Evaluating WHERE clause:",e[l.clause.WHERE]),n=i.filter(n,(function(t){return l.operate(t,e[l.clause.WHERE])})),o.debug("Results after WHERE:",n),e.hasOwnProperty(l.clause.AGGREGATE)){o.debug("Evaluating AGGREGATE clause:",e[l.clause.AGGREGATE]);var r=l.groupBy(e[l.clause.GROUP_BY],n),a=l.aggregate(e[l.clause.AGGREGATE],r);n=l.project(r,a),o.debug("Results after AGGREGATE:",n)}e.hasOwnProperty(l.clause.HAVING)&&(o.debug("Evaluating HAVING clause:",e[l.clause.HAVING]),n=i.filter(n,(function(t){return l.operate(t,e[l.clause.HAVING])})),o.debug("Results after HAVING:",n)),e.hasOwnProperty(l.clause.ORDER_BY)&&(o.debug("Evaluating ORDER_BY clause:",e[l.clause.ORDER_BY]),n=l.orderBy(e[l.clause.ORDER_BY],n),o.debug("Results after ORDER_BY:",n));var s=0;e.hasOwnProperty(l.clause.OFFSET)&&(o.debug("Evaluating OFFSET clause:",e[l.clause.OFFSET]),s=Number(e[l.clause.OFFSET]));var u;return e.hasOwnProperty(l.clause.LIMIT)&&(o.debug("Evaluating LIMIT clause:",e[l.clause.LIMIT]),u=s+Number(e[l.clause.LIMIT])),(s>0||!i.isUndefined(u))&&(n=n.slice(s,u),o.debug("Results after OFFSET/LIMIT:",n)),e.hasOwnProperty(l.clause.SELECT)&&(o.debug("Evaluating SELECT clause:",e[l.clause.SELECT]),n=l.select(e[l.clause.SELECT],n),o.debug("Results after SELECT:",n)),n},l.execute=function(e,t){e=l.rewrite(e),o.shouldLog(r.LogLevel.DEBUG)&&o.groupCollapsed("Evaluating Behavioral Rule"),o.debug("Rule:",e,c.stringify(e)),o.debug("Events:",t);var n=l.verify(e);if(n.length>0)throw new Error("Rule "+c.stringify(e)+" has violations: "+n.join("\n"));var i=l.executeRecursively(e,t);return o.debug("Rule result:",i),o.shouldLog(r.LogLevel.DEBUG)&&o.groupEnd(),i},l.isSatisfied=function(e,t){try{return l.execute(e,t).length>0}catch(t){return o.error("Rules","Error "+t.toString()+" while evaluating rule "+c.stringify(e)),!1}}}),(function(e,t,n){e.exports=function(e){e.registerVisitorProfileProvider(n(143))}}),(function(e,t,n){var i=n(144),r=n(138),o=n(140),a=n(8),s=n(18);e.exports={provides:"customBehavior",shouldTrack:!0,isLazy:!1,getter:["stores/global","stores/visitor_attribute_entity","stores/visitor_events","stores/visitor",function(e,t,n){var u=e.getProjectId(),c=a.filter(a.map(t.getCustomBehavioralAttributes(u),(function(e){try{return{id:e.id,granularity:i.GRANULARITY.ALL,rule:o.buildFromSpecV0_2(s.parse(e.rule_json))}}catch(e){return}}))),l=r.getEvents(n);return i.evaluate(c,l)}]}}),(function(e,t,n){function i(e){if(0===e.length)return[];for(var t=e.length-1,n=a.FIELDS.SESSION_ID,i=e[t][n];t>0&&i===e[t-1][n];)t--;return e.slice(t)}function r(e,t){if(0===e.length||t<=0)return[];var n=+new Date-t*u.MILLIS_IN_A_DAY;n-=n%u.MILLIS_IN_A_DAY;for(var i=e.length;i>0&&n<=e[i-1][a.FIELDS.TIME];)i--;return e.slice(i)}var o=n(11),a={FIELDS:n(51).FIELDS},s=n(141),u=n(140);t.GRANULARITY={ALL:"all",CURRENT_SESSION:"current_session",LAST_30_DAYS:"last_30_days",LAST_60_DAYS:"last_60_days"},t.evaluate=function(e,n){var a={};if(0===n.length){for(var u=0;u0){var n=o(t[0],[a.FIELDS.SESSION_ID]);return i.every(t,(function(e){return e[a.FIELDS.SESSION_ID]===n}))}return!0}]}}),(function(e,t){e.exports={fieldsNeeded:["first_session"],match:function(e){return!!e.first_session}}}),(function(e,t,n){e.exports=function(e){e.registerApiModule("behavior",n(149))}}),(function(e,t,n){function i(e,t){var n=d.buildFromSpecV0_1(t);if(1!==n.length)throw new Error("Invalid query descriptor; verify that no aggregators are specified");return f.execute(n[0],e)}function r(e,t){return c.map(e,(function(e){return c.isFunction(e.toObject)?e.toObject(t):e}))}function o(e,t){if(!e)return["Descriptor not defined"];var n=[];return e.count&&n.push('Unexpected "count" clause specified'),e.pick&&e.pick.modifier&&t.indexOf(e.pick.modifier)===-1&&n.push('Invalid "pick" modifier "'+e.pick.modifier+'"'),c.each(e.filters,(function(e){c.isUndefined(e.modifier)||n.push('Unexpected "filter" modifier "'+e.modifier+'"')})),n.length>0?n:void 0}function a(e,t){var n,a={revenueAsTag:!1,timeAsTimestamp:!0};if(c.isUndefined(t))return n=l.getEvents(e),r(n,a);if(c.isNumber(t)){if(t<=0)throw new Error("Count must be a positive integer, got "+t);return n=l.getEvents(e),r(n.slice(-t),a)}var s=o(t,c.values(d.RECENCY_FILTERS));if(s)throw new Error(s.join("\n"));return n=l.getEvents(e),r(i(n,t),a)}function s(e,t){if(t=c.cloneDeep(t)||{},!t.pick)throw new Error('No "pick" clause provided in query descriptor');if(!t.pick.name)throw new Error('No field name provided in "pick" clause');t.pick.modifier=t.pick.modifier||d.FREQUENCY_FILTERS.MOST_FREQUENT;var n=o(t,c.values(d.FREQUENCY_FILTERS));if(n)throw new Error(n.join("\n"));var r=l.getEvents(e);return i(r,t)}function u(e,t){var n=d.buildFromSpecV0_2(t),i=l.getEvents(e),o=r(f.execute(n,i),{revenueAsTag:!0,timeAsTimestamp:!1});return(t.pick||t.reduce&&"count"===t.reduce.aggregator)&&(o=c.flatten(o)),t.reduce&&(o=o[0]),o}var c=n(8),l=n(138),d=n(140),f=n(141);e.exports=["stores/visitor_events",function(e){return{getEvents:c.partial(a,e),getByFrequency:c.partial(s,e),
query:c.partial(u,e)}}]}),(function(e,t,n){e.exports=function(e){e.registerDependency("sources/browser_id",n(151)),e.registerVisitorProfileProvider(n(155)),e.registerVisitorProfileProvider(n(156)),e.registerAudienceMatcher("browser_version",n(157))}}),(function(e,t,n){var i=n(152),r=n(16);t.getId=function(){return i.parseUA(r.getUserAgent()).browser.id},t.getVersion=function(){return i.parseUA(r.getUserAgent()).browser.version}}),(function(e,t,n){var i=n(153),r=n(8);t.parseUA=function(e){var t=new i(e),n=t.getBrowser(),r=t.getOS(),c=t.getDevice(),l=s(c),d=u(r.name),f=a(c.type,l,d);return{browser:{id:o(n.name),version:n.version},platform:{id:d,version:r.version},device:{id:l,type:c.type||(f?"mobile":"desktop"),isMobile:f}}};var o=function(e){if(e=(e||"").toLowerCase(),e in c)return e;var t=function(t){return t.toLowerCase()===e};for(var n in c)if(r.some(c[n]||[],t))return n;return"unknown"},a=function(e,t,n){if(r.includes(["mobile","tablet"],e))return!0;if(t&&"unknown"!==t)for(var i in l)if(t===l[i])return!0;var o=["android","blackberry","ios","windows phone"];return!!r.includes(o,n)},s=function(e){return e.model in l?l[e.model]:e.type||"unknown"},u=function(e){return(e||"unknown").toLowerCase()},c={gc:["Chrome","chromium","silk","yandex","maxthon"],edge:["Edge"],ie:["Internet Explorer","iemobile"],ff:["Firefox","iceweasel"],opera:["Opera","opera mini","opera tablet"],safari:["Safari","mobile safari","webkit"],ucbrowser:["UC Browser"]},l={iPhone:"iphone",iPad:"ipad"}}),(function(e,t,n){var i;!(function(r,o){"use strict";var a="0.7.9",s="",u="?",c="function",l="undefined",d="object",f="string",p="major",h="model",g="name",v="type",m="vendor",_="version",y="architecture",E="console",I="mobile",T="tablet",w="smarttv",b="wearable",S="embedded",A={extend:function(e,t){for(var n in t)"browser cpu device engine os".indexOf(n)!==-1&&t[n].length%2===0&&(e[n]=t[n].concat(e[n]));return e},has:function(e,t){return"string"==typeof e&&t.toLowerCase().indexOf(e.toLowerCase())!==-1},lowerize:function(e){return e.toLowerCase()},major:function(e){return typeof e===f?e.split(".")[0]:o}},D={rgx:function(){for(var e,t,n,i,r,a,s,u=0,f=arguments;u0?2==r.length?typeof r[1]==c?e[r[0]]=r[1].call(this,s):e[r[0]]=r[1]:3==r.length?typeof r[1]!==c||r[1].exec&&r[1].test?e[r[0]]=s?s.replace(r[1],r[2]):o:e[r[0]]=s?r[1].call(this,s,r[2]):o:4==r.length&&(e[r[0]]=s?r[3].call(this,s.replace(r[1],r[2])):o):e[r]=s?s:o;u+=2}return e},str:function(e,t){for(var n in t)if(typeof t[n]===d&&t[n].length>0){for(var i=0;iNumber(n[o]))return 1}}return 0}}),(function(e,t,n){e.exports=function(e){e.registerVisitorProfileProvider(n(160)),e.registerAudienceMatcher("campaign",n(161))}}),(function(e,t){e.exports={provides:"campaign",shouldTrack:!0,isSticky:!0,getter:["sources/browser",function(e){return e.getQueryParamValue("utm_campaign")}]}}),(function(e,t,n){var i=n(75);e.exports={fieldsNeeded:["campaign"],match:function(e,t){return i.hasMatch(t.value,t.match,e.campaign)}}}),(function(e,t,n){e.exports=function(e){e.registerVisitorProfileProvider(n(163));var t=n(164);e.registerAudienceMatcher("custom_attribute",t),e.registerAudienceMatcher("custom_dimension",t)}}),(function(e,t,n){var i=n(8),r=n(11),o=n(12),a=n(19),s=a.get("stores/dimension_data");e.exports={provides:"custom",attributionType:o.AttributionTypes.LAST_TOUCH,restorer:function(e){return i.reduce(e,(function(e,t,n){var o=t;if(!i.isObject(t)){var a=s.getById(n)||s.getByApiName(n);a?o={id:a.segmentId||a.id,value:t}:r.warn("Unable to determine ID for custom attribute:",n,"; segmentation is disabled.")}return e[n]=o,e}),{})},shouldTrack:!0}}),(function(e,t,n){var i=n(8),r=n(75);t.match=function(e,t){var n;return e.custom&&(n=e.custom[t.name]),i.isObject(n)&&(n=n.value),r.hasMatch(t.value,t.match,n)}}),(function(e,t,n){e.exports=function(e){e.registerDependency("sources/device",n(166)),e.registerVisitorProfileProvider(n(167)),e.registerAudienceMatcher("device",n(168))}}),(function(e,t,n){var i=n(152),r=n(16);t.getDevice=function(){var e=i.parseUA(r.getUserAgent()).device;return"unknown"!==e.id?e.id:"tablet"===e.type?"tablet":e.isMobile?"mobile":"desktop"}}),(function(e,t){e.exports={provides:"device",shouldTrack:!0,getter:["sources/device",function(e){return e.getDevice()}]}}),(function(e,t){e.exports={fieldsNeeded:["device"],match:function(e,t){return e.device===t.value}}}),(function(e,t,n){e.exports=function(e){e.registerVisitorProfileProvider(n(170)),e.registerAudienceMatcher("referrer",n(171))}}),(function(e,t,n){var i=n(69);e.exports={provides:"referrer",shouldTrack:!0,isSticky:!0,getter:["stores/global_state",function(e){var t=e.getEffectiveReferrer()||i.getReferrer();return""===t&&(t=null),t}]}}),(function(e,t,n){var i=n(172);t.fieldsNeeded=["referrer"],t.match=function(e,t){return null!==e.referrer&&i(e.referrer,t)}}),(function(e,t,n){function i(e){var t=e.indexOf("?");return t!==-1&&(e=e.substring(0,t)),t=e.indexOf("#"),t!==-1&&(e=e.substring(0,t)),e}function r(e){return o(i(e))}function o(e,t){e=e.replace("/?","?"),e=e.toLowerCase().replace(/[\/&?]+$/,"");var n=l.slice(0);t||(n=n.concat(u));for(var i=n.length,r=0;r=s&&c<=u&&o.includes(a.days,l)}}),(function(e,t,n){e.exports=function(e){e.registerAnalyticsTracker("avro",n(183))}}),(function(e,t,n){function i(e){var t=m.omit(e,F),n=m.pick(e,F),i=[],r=[];return m.forOwn(t,(function(e,t){var n=h({type:A,name:t,value:e});n&&i.push(n)})),m.forOwn(n,(function(e,t){try{v(e),r.push({name:t,value:e})}catch(e){y.emitError(new V("Bad value for eventMetrics["+t+"]: "+e.message))}})),{eventFeatures:i,eventMetrics:r}}function r(e,t,n){var r=u(e,t,n),o=i(e.eventTags);return o.eventFeatures.push(h({type:S,name:"",value:e.viewCategory})),m.extend(r,o,{eventEntityId:e.viewId,eventType:D,eventName:e.viewId})}function o(e,t,n,i){var r=u(e,t,n),o=e.event.viewId,a=[],s=[];if(a.push(h({type:w,name:"selector",value:e.selector})),a.push(h({type:w,name:"view_id",value:e.event.viewId})),o){var c=i.getActivationEventId(e.event.viewId);c&&s.push({eventId:i.getActivationEventId(e.event.viewId),relationship:M.VIEW_ACTIVATED})}return m.forOwn(e.eventTags,(function(e,t){var n=h({type:A,name:t,value:e},x);n&&a.push(n)})),m.extend(r,{eventEntityId:e.event.id,eventType:e.event.category,eventName:e.event.apiName,eventFeatures:a,relatedEvents:s})}function a(e,t,n){var r=u(e,t,n),o=i(e.eventTags);return m.extend(r,o,{eventEntityId:e.eventEntityId,eventType:e.eventCategory,eventName:e.eventApiName})}function s(e,t,n){var i=u(e,t,n);return m.extend(i,{eventType:N,eventName:O})}function u(e,t,n){var i=d(e.userFeatures),r=f(e.activeViewStates,n),o=l(e.layerStates,t),a=m.isNull(k.getAnonymizeIP())?void 0:k.getAnonymizeIP();return{eventId:e.eventId,anonymizeIP:a,timestamp:e.timestamp,revision:e.revision,clientEngine:e.clientEngine,clientVersion:e.clientVersion,projectId:e.projectId,accountId:e.accountId,activationId:e.activationId,sessionId:e.sessionId,visitorId:e.visitorId,visitorUUID:e.visitorUUID,eventFeatures:[],eventMetrics:[],relatedEvents:[],layerStates:o,userFeatures:i,activeViews:r,isGlobalHoldback:e.isGlobalHoldback}}function c(e,t){var n=e.decisionTicket,i=e.decision,r=m.map(n.audienceIds,(function(e){return{id:e,name:t.getAudienceName(e)||"Untitled Audience "+e}})),o=d(e.userFeatures),a=m.isNull(k.getAnonymizeIP())?void 0:k.getAnonymizeIP();return{decisionId:e.decisionId,anonymizeIP:a,timestamp:e.timestamp,revision:e.revision,clientEngine:e.clientEngine,clientVersion:e.clientVersion,projectId:e.projectId,accountId:e.accountId,layerId:i.layerId,activationId:e.activationId,sessionId:e.sessionId,visitorId:P.getRandomId(),visitorUUID:P.getUUID(),decisionTicket:{audiences:r,bucketingId:n.bucketingId},decision:p(i),userFeatures:o,isGlobalHoldback:k.isGlobalHoldback()}}function l(e,t){return m.map(e,(function(e){var n=null,i=e.decisionTicket;if(i){var r=m.map(i.audienceIds,(function(e){var n;try{n=t.getAudienceName(e)}catch(e){}return{id:e,name:n||null}}));n={audiences:r,bucketingId:i.bucketingId}}return{layerId:e.layerId,revision:e.revision,decisionTicket:n,decision:p(e.decision),decisionActivationId:e.decisionActivationId,decisionSessionId:e.decisionSessionId,decisionEventId:e.decisionEventId,decisionTimestamp:e.decisionTimestamp,actionTriggered:e.actionTriggered,actionSessionId:e.actionSessionId,actionActivationId:e.actionActivationId,actionTimestamp:e.actionTimestamp}}))}function d(e){return m.reduce(e,(function(e,t){try{g(t.value),e.push(m.pick(t,["id","type","name","shouldIndex","value"]))}catch(e){x.warn("Error evaluating user feature",t,e)}return e}),[])}function f(e,t){return m.map(e,(function(e){var n=[];try{var i=t.get(e.id);n.push(h({type:S,name:"",value:i.category}))}catch(t){x.error("Unable to find Page category for Page with id",e.id)}return m.forOwn(e.metadata,(function(e,t){var i=h({type:b,name:t,value:e},x);i&&n.push(i)})),{viewId:e.id,activatedTimestamp:e.activatedTimestamp,viewFeatures:n}}))}function p(e){return m.pick(e,["experimentId","variationId","isLayerHoldback"])}function h(e){var t=m.extend({id:null,shouldIndex:!0},e);try{g(e.value)}catch(t){return void x.error("Error evaluating feature:",e,t)}return t}function g(e){if(null==e)throw new Error("Feature value is null");if("object"==typeof e){var t;try{t=C.stringify(e)}catch(e){}throw new Error('Feature value is complex: "'+t||'[object]"')}}function v(e){if(null==e)throw new Error("Metric value is null");if(!m.isNumber(e))throw new Error("Metric value is not numeric");if(Math.floor(e)!==e)throw new Error("Metric value "+e+" is not an integer")}var m=n(8),_=n(2),y=n(83),E="https://logx.optimizely.com",I=E+"/log/decision",T=E+"/log/event",w="event",b="view_tag",S="view_category",A="tags",D="view_activated",O="client_activation",N="client_activation",x=n(11),C=n(18),R=n(60),L=n(19),k=L.get("stores/global"),P=L.get("stores/visitor_id"),V=t.Error=_("AvroError"),F=["revenue","quantity"],M={VIEW_ACTIVATED:"view_activation"};t.onLayerDecision=["stores/audience_data",function(e){return function(t){var n=c(t,e);R.retryableRequest({url:I,contentType:"application/json",method:"POST",data:n},n.decisionId)}}],t.onPageActivated=["stores/audience_data","stores/view_data",function(e,t){return function(n){var i=r(n,e,t,x);R.retryableRequest({url:T,contentType:"application/json",method:"POST",data:i},i.eventId)}}],t.onClientActivation=["stores/audience_data","stores/view_data",function(e,t){return function(n){var i=s(n,e,t,x);R.retryableRequest({url:T,contentType:"application/json",method:"POST",data:i},i.eventId)}}],t.onCustomEvent=["stores/audience_data","stores/view_data",function(e,t){return function(n){var i=a(n,e,t);R.retryableRequest({url:T,contentType:"application/json",method:"POST",data:i},i.eventId)}}],t.onClickEvent=["stores/audience_data","stores/view_data","stores/view",function(e,t,n){return function(i){var r=o(i,e,t,n);R.retryableRequest({url:T,contentType:"application/json",method:"POST",data:r},r.eventId)}}]}),(function(e,t,n){function i(e){var t=e.getGlobal(u);return t?e.getGlobal(t):null}var r=n(8),o=n(11),a=n(19),s=a.get("stores/global_state"),u="GoogleAnalyticsObject",c=150,l="google_universal_analytics",d=n(73),f=["env/window","sources/poll","stores/layer_data","stores/audience_data",function(e,t,n,a){return function(u){var f=u.decision.layerId,p=u.decision.experimentId,h=u.decision.variationId,g=n.get(f),v=u.decision.isLayerHoldback,m=r.find(g.experiments,{id:p});if(m){var _=m.integrationSettings||g.integrationSettings||{};if(_){var y=_[l];if(y){var E=r.find(m.variations,{id:h});if(E){var I=y.universal_analytics_tracker,T=I?I+".":"",w=y.universal_analytics_slot,b=d.generateAnalyticsString(a,g,m,E,v,c),S=50,A=200,D=function(){var t=i(e);if(t){var n=s.getEffectiveReferrer();n&&t(T+"set","referrer",n);var r={nonInteraction:!0};return r["dimension"+w]=b,t(T+"send","event","Optimizely","Assigned To Campaign",r),!0}};return t.pollFor(D,A,S).catch((function(e){o.warn("Tracker for",l,"failed:",e)}))}}}}}}],p={onLayerDecision:f};e.exports=function(e){e.registerAnalyticsTracker("google_universal_analytics",p)}}),(function(e,t,n){function i(){var e=[],t={queue:e,push:e.push.bind(e)};l.on({filter:{type:"action",name:"applied"},handler:u.partial(r,t)}),o(t)}function r(e,t){var n=g.get(t.data.campaignId),i=n.integrationSettings;if(i&&!u.isUndefined(i[I])){var r=a(t.data,n);r&&(e.push(r),c.log("Pushing action.applied event to ClickTale queue. Data:",t))}}function o(e){var t=50,n=200;return d.pollFor((function(){return s()}),n,t).then((function(){u.each(e.queue,f.getGlobal(E)),e.push=f.getGlobal(E)}),(function(e){throw new Error("Polling for ClickTale timed out:",e)})).catch((function(e){c.warn("Error in ClickTale plugin:",e)}))}function a(e,t){var n=!1,i=u.find(t.experiments,{id:e.experimentId});if(i){var r=u.find(i.variations,{id:e.variationId});if(r)return v.generateAnalyticsString(h,t,i,r,n,m)}}function s(){var e=f.getGlobal(_),t=f.getGlobal(y),n=f.getGlobal(E);return u.isFunction(e)&&u.isFunction(t)&&u.isFunction(n)&&t()}var u=n(8),c=n(11),l=n(84),d=n(80),f=n(16),p=n(19),h=p.get("stores/audience_data"),g=p.get("stores/layer_data"),v=n(73),m=255,_="ClickTale",y="ClickTaleIsRecording",E="ClicktaleIntegrationExperienceHandler",I="clicktale";e.exports=i}),(function(e,t,n){e.exports=function(e){e.registerViewProvider(n(187)),e.registerViewMatcher("url",n(188))}}),(function(e,t){e.exports={provides:"url",getter:["sources/browser",function(e){return e.getUrl()}]}}),(function(e,t,n){var i=n(172);e.exports={fieldsNeeded:["url"],match:function(e,t){return i(e.url,t)}}}),(function(e,t,n){var i=n(190),r=n(114),o=n(11),a=n(109);e.exports=function(e){var t=new i(function(e){a.updateAllViewTags();var t=r.trackClickEvent(e);t?o.log("Tracking click event:",e):o.log("Not tracking click event:",e)});e.registerEventImplementation("click",{attach:function(e){t.hasEvents()||t.listen(),t.addEvent(e)},detach:function(e){t.removeEvent(e),t.hasEvents()||t.unlisten()}})}}),(function(e,t,n){function i(e){this.handler=e,this.events=[],this.unlistenFn=null,this.clickHandler=function(e){o.forEach(this.events,function(t){try{var n=t.config&&t.config.selector?t.config.selector:t.eventFilter.selector;r(e,n)&&this.handler(t)}catch(e){c.emitError(new l("Unable to handle click for selector"+n+":"+e.message))}}.bind(this))}.bind(this)}function r(e,t){for(var n=e.target;n;){if(s(n,t))return!0;n=n.parentElement}return!1}var o=n(8),a=n(2),s=n(191),u=n(69),c=n(83),l=t.Error=a("ClickDelegateError");i.prototype.listen=function(){this.unlistenFn=u.addEventListener("click",this.clickHandler,!0)},i.prototype.unlisten=function(){this.unlistenFn&&(this.unlistenFn(),this.unlistenFn=null)},i.prototype.hasEvents=function(){return this.events.length>0},i.prototype.addEvent=function(e){this.events.push(e)},i.prototype.removeEvent=function(e){this.events=o.filter(this.events,(function(t){return t.apiName!==e.apiName}))},e.exports=i}),(function(e,t,n){e.exports=n(192)}),(function(e,t){"use strict";function n(e,t){if(r)return r.call(e,t);for(var n=e.parentNode.querySelectorAll(t),i=0;i