cdn.optimizely.com
Open in
urlscan Pro
2a02:26f0:fb:597::13b8
Public Scan
URL:
https://cdn.optimizely.com/js/275532918.js
Submission Tags: falconsandbox
Submission: On February 12 via api from US — Scanned from DE
Submission Tags: falconsandbox
Submission: On February 12 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
!(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=n(149),i=[t];i.push(n(151)),i.push(n(157)),i.push(n(160)),i.push(n(163)),i.push(n(165)),i.push(n(174)),i.push(n(177)),i.push(n(180)),i.push(n(184)),i.push(n(187)),i.push(n(191)),i.push(n(195)),i.push(n(200)),i.push(n(201)),i.push(n(202)),i.push(n(203)),i.push(n(206)),i.push(n(207)),i.push(n(211)),i.push(n(213)),i.push(n(216)),h.initializePlugins(i)}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);i.initialize();var r=n(83),a=n(23),o=n(16);n(129);var s=o.get("stores/directive"),u=n(91);if(!u.isCORSSupported())throw new Error("CORS is not supported on this browser, aborting.");var c,l=n(132),d=n(118),f=n(133),p={"layers": [{"holdback": 0, "activation": {}, "integrationSettings": {"18750410674": {}, "mixpanel": {}}, "integrationStringVersion": 2, "viewIds": ["20195527942"], "experiments": [{"weightDistributions": [{"entityId": "20183815191", "endOfRange": 10000}], "audienceName": "Everyone else", "name": "2021.03 | ECOM |Desktop|Gimlet|Engaged|Acquisition| Enable Signup Service From ECOM-13801", "bucketingStrategy": null, "variations": [{"id": "20198013881", "actions": [{"viewId": "20195527942", "changes": [{"dependencies": [], "type": "custom_code", "id": "cd173342c18b43eaba5d494283c81540", "value": function($){window.console.log("OPT - Original"); }}]}], "name": "Original"}, {"id": "20183815191", "actions": [{"viewId": "20195527942", "changes": [{"dependencies": [], "type": "custom_code", "id": "5d8e9ce78940474cb82986b110304a6c", "value": function($){window.console.log("OPT - SS enabled"); var essScript = document.createElement("script"), allScripts = document.getElementsByTagName("script"); /* pull in the sign up service script */ essScript.src = "https://go.docusign.com/static/jsaddons/enable_signup_service.js"; /* and put it before the first script cause we might not have the body or even the head element created yet... */ allScripts[0].parentNode.insertBefore(essScript, allScripts[0]); }}]}], "name": "Signup Service Enabled"}], "audienceIds": null, "changes": null, "id": "20188126961", "integrationSettings": null}], "id": "20199658454", "weightDistributions": null, "name": "2021.03 | ECOM |Desktop|Gimlet|Engaged|Acquisition| Enable Signup Service From ECOM-13801", "groupId": null, "commitId": "20218966151", "decisionMetadata": null, "policy": "single_experiment", "changes": null}], "visitorIdLocator": null, "listTargetingKeys": [], "groups": [], "views": [{"category": "other", "staticConditions": ["and", ["or", {"type": "url", "value": "https://go.docusign.com/o/trial/", "match": "simple"}]], "name": "GO.COM - Organic Trial LP - Step 1", "apiName": "275532918_gocom__organic_trial_lp__step_1", "tags": [], "undoOnDeactivation": false, "deactivationEnabled": false, "id": "11931296478"}, {"category": "other", "staticConditions": ["and", ["or", {"type": "url", "value": "https://go.docusign.com/o/trial/", "match": "simple"}]], "name": "GO.DS - All Organic Trial - First Step", "apiName": "275532918_gods__all_organic_trial__first_step", "tags": [], "undoOnDeactivation": false, "deactivationEnabled": false, "id": "16837420534"}, {"category": "other", "staticConditions": ["and", ["or", {"type": "url", "value": "go.docusign.", "match": "substring"}], ["or", {"type": "url", "value": "/o/trial/thankyou", "match": "substring"}, {"type": "url", "value": "/thankyou/bptrial", "match": "substring"}]], "name": "GO.DS - All Thank You Pageviews via PAGE LOAD", "apiName": "275532918_gods__all_thank_you_pageviews_via_page_load", "tags": [], "undoOnDeactivation": false, "deactivationEnabled": false, "id": "17743000061"}, {"category": "other", "staticConditions": ["or", ["or", {"type": "custom_code", "value": function jsCondition() { /* we need to run a regexp as the url will have some form 'thankyou' in the url ALONG with userstatus being in the url... BUT we dont want it to be case sensitive as it might change without us knowing... */ return /thankyou.*userstatus\=/gi.test(location.href); } }]], "name": "GO.DS - All Thank You Pageviews via PAGE LOAD with Signup Service", "apiName": "275532918_gods__all_thank_you_pageviews_via_page_load_with_signu", "tags": [], "undoOnDeactivation": false, "deactivationEnabled": false, "id": "18068940324"}, {"category": "other", "staticConditions": ["and", ["or", {"type": "url", "value": ".*checkoutds/checkout.*success.*", "match": "regex"}]], "activationType": "polling", "name": "ECOM | Purchase Confirmation | With Seat Count & Revenue", "apiName": "275532918_ecom__purchase_confirmation__with_seat_count", "tags": [], "undoOnDeactivation": false, "activationCode": /** * Sample Polling Function * Supply an expression to return a boolean inside a function. * For complete documentation, see https://developers.optimizely.com/x/solutions/javascript/topics/dynamic-websites/index.html#polling */ function pollingFn() { var w = window; if( w.Math && w.Math.round && w.seats && w.Math.round(w.seats) > 0 && w.recurringPrice && w.recurringPrice > 0 ){ w['optimizely'] = w['optimizely'] || []; w['optimizely'].push({ type: "event", eventName: "ecom_secure_ds_success_page_seat_count_and_revenue", tags: { revenue: ( w.isAnnual ? ( w.Math.round( (w.recurringPrice*100) / 12 ) ) : ( w.Math.round( (w.recurringPrice*100) ) ) ), value: w.Math.round(w.seats) } }); /* no need to poll anymore as we got what we need and sent the event to optimizely... */ return true; } else { /* it will poll again in 50ms */ return false; } } , "deactivationEnabled": false, "id": "18182571202"}, {"category": "other", "staticConditions": ["and", ["or", {"type": "url", "value": "go\\.docusign\\.(com|com.au)\\/trial\\/(ca\\-fr|jp\\-en|za|ph|ae|il|my|id|hk|nz|be|co|sg|se|fi|dk|at|no|ie|lu|is|ca|pe|ro|cl|pt|ar|pl|pr|jp\\-en)\\-(goog|msft|yhoo)\\-trynow", "match": "regex"}, {"type": "url", "value": "go\\.docusign\\.(com|com.au)\\/trial\\/productshot\\-(uk|germany|france)\\/l-trial", "match": "regex"}, {"type": "url", "value": "go\\.docusign\\.(com|com.au)\\/trial\\/.*productshot.*(colombia|austria|switzerland\\-en|en\\-it|\\_yt)", "match": "regex"}, {"type": "url", "value": "go\\.docusign\\.com\\/trial\\/us(\\-|\\_)(reason\\-re|productshot\\_yt|yhoo\\-reason)", "match": "regex"}]], "name": "URL Targeting for 2021.03 | ECOM |Desktop|Gimlet|Engaged|Acquisition| Enable Signup Service From ECOM-13801", "apiName": "275532918_url_targeting_for_copy_of_202103__ecom_desktopgimleten", "tags": [], "undoOnDeactivation": false, "deactivationEnabled": false, "id": "20195527942"}], "projectId": "275532918", "namespace": "a275532918", "tagGroups": [], "integrationSettings": [], "interestGroups": [], "dimensions": [{"segmentId": null, "id": "20077925567", "apiName": "DS_A", "name": "DocuSign Arya UUID"}], "audiences": [], "anonymizeIP": false, "plugins": [function(PluginManager) { PluginManager.registerAnalyticsTracker('18750410674', { preRedirectPolicy: 'PERSIST_BEFORE_REDIRECT', postRedirectPolicy: 'TRACK_IMMEDIATELY', nonRedirectPolicy: 'TRACK_IMMEDIATELY', trackLayerDecision: function(decisionData) { var extension = decisionData.integrationSettings && decisionData.integrationSettings['18750410674']; if (!extension) { return; } var campaign = { id: decisionData.layerId, name: decisionData.layerName, policy: decisionData.layerPolicy, integrationStringVersion: decisionData.integrationStringVersion, }; var campaignId = campaign.id; var experimentId = decisionData.experimentId; var variationId = decisionData.variationId; var isHoldback = decisionData.isLayerHoldback; extension.$fieldDefaults = []; (function(widg) { var i = 0; var field; for (; i < widg.$fieldDefaults.length; ++i) { field = widg.$fieldDefaults[i]; if (!widg.hasOwnProperty(field.name)) { widg[field.name] = field.default_value; } } })(extension); !function(t,e,n,i,o,u,p,r,a,f,s){r=e(function(){(f=t.optimizely)&&typeof f.push==i&&(a=t.DS_Arya)&&typeof a.g==i&&(a=a.g())&&(f.push({type:"user",attributes:a}),s=!s),(1000<u++||s)&&n(r)},10)}(window,setInterval,clearInterval,"function",0,0); }, serializeSettings: JSON.stringify, deserializeSettings: JSON.parse, }); } ], "visitorAttributes": [], "enableForceParameters": true, "accountId": "275532918", "events": [{"category": "other", "name": "WWW.ALL | Contact Sales Form Submission", "eventType": "custom", "viewId": null, "apiName": "Contact_Sales_Form_Submission", "id": "11488431574", "eventFilter": null}, {"category": "other", "name": "Organic Trial | Get Started Button | Page 1", "eventType": "click", "viewId": "11931296478", "apiName": "275532918_organic_trial__get_started_button__page_1", "id": "15040160115", "eventFilter": {"filterType": "target_selector", "selector": "#separate-multi-step_0 .button"}}, {"category": "other", "name": "Terms & Conditions - Step 1", "eventType": "click", "viewId": "11931296478", "apiName": "275532918_terms__conditions__step_1", "id": "16810160758", "eventFilter": {"filterType": "target_selector", "selector": "#formSubmitContainer_0 a[href*='terms']"}}, {"category": "other", "name": "Privacy Policy - Step 1", "eventType": "click", "viewId": "11931296478", "apiName": "275532918_privacy_policy__step_1", "id": "16816330155", "eventFilter": {"filterType": "target_selector", "selector": "#formSubmitContainer_0 a[href*='privacy']"}}, {"category": "other", "name": "Terms & Conditions - Step 2", "eventType": "click", "viewId": "11931296478", "apiName": "275532918_terms_and_conditions__step_2", "id": "16827770593", "eventFilter": {"filterType": "target_selector", "selector": "#formSubmitContainer_1 a[href*='terms']"}}, {"category": "other", "name": "Log In CTA Click", "eventType": "click", "viewId": "11931296478", "apiName": "275532918_log_in_link_first_view_click", "id": "16829810932", "eventFilter": {"filterType": "target_selector", "selector": "#page-container a[href*='account.docusign']"}}, {"category": "other", "name": "Get Started CTA - First Step CTA", "eventType": "click", "viewId": "16837420534", "apiName": "275532918_get_started_cta__first_step_cta", "id": "16841580097", "eventFilter": {"filterType": "target_selector", "selector": "#formSubmitContainer_0 .button"}}, {"category": "other", "name": "Learn More CTA Click", "eventType": "click", "viewId": "11931296478", "apiName": "275532918_learn_more_cta__first_view", "id": "16843610089", "eventFilter": {"filterType": "target_selector", "selector": "#page-container a[href*='support.docusign']"}}, {"category": "other", "name": "Buy Now And Save 10% Click | First View", "eventType": "click", "viewId": "11931296478", "apiName": "275532918_buy_now_and_save_10", "id": "16845640137", "eventFilter": {"filterType": "target_selector", "selector": "#formSubmitContainer_0 a[href*='secure.docusign.com/signup']"}}, {"category": "other", "name": "Privacy Policy - Step 2", "eventType": "click", "viewId": "11931296478", "apiName": "275532918_privacy_policy_link__step_2", "id": "16851180923", "eventFilter": {"filterType": "target_selector", "selector": "#formSubmitContainer_1 a[href*='privacy']"}}, {"category": "other", "name": "Scroll Depth", "eventType": "custom", "viewId": null, "apiName": "scroll_depth", "id": "18086181463", "eventFilter": null}, {"category": "other", "name": "WWW.COM | Universal Webinar Form Submission", "eventType": "custom", "viewId": null, "apiName": "Universal Webinar Form", "id": "18107570322", "eventFilter": null}, {"category": "other", "name": "ECOM | secure.ds | Success Page Seat Count And Revenue", "eventType": "custom", "viewId": null, "apiName": "ecom_secure_ds_success_page_seat_count_and_revenue", "id": "18199392805", "eventFilter": null}, {"category": "other", "name": "PNP Page | Buy Now Click", "eventType": "custom", "viewId": null, "apiName": "buy.now", "id": "19886021351", "eventFilter": null}, {"category": "other", "name": "SaveACopy Dialog - Create Account", "eventType": "custom", "viewId": null, "apiName": "sac_dialog_createaccount", "id": "20141820670", "eventFilter": null}, {"category": "other", "name": "Eloqua Prefilled Field Value Event", "eventType": "custom", "viewId": null, "apiName": "eloquaHasPrefilledFields", "id": "20333608532", "eventFilter": null}, {"category": "other", "name": "Ecom - Sparky Purchase", "eventType": "custom", "viewId": null, "apiName": "ecom_sparky_purchase", "id": "20579451445", "eventFilter": null}, {"category": "other", "name": "GO.DS - Organic Trial Form Field Change - Phone Number", "eventType": "custom", "viewId": null, "apiName": "gods_organic_trial_field_change_phone_number", "id": "20595980093", "eventFilter": null}, {"category": "other", "name": "WEB_EVENT_SPARKY_CHECKOUT_COMPLETE", "eventType": "custom", "viewId": null, "apiName": "WEB_EVENT_SPARKY_CHECKOUT_COMPLETE", "id": "20922980787", "eventFilter": null}], "experimental": {"trimPages": true}, "revision": "20878"},h=n(134),g="initializeOptimizelyPreview";if(h.initGlobalStore(p),d.populateDirectiveData(),s.clientHasAlreadyInitialized())return void a.warn("Main / Disabling because Optimizely has already initialized on this page load. Are there multiple snippets on the page?");if(s.shouldBailForDesktopApp())return void a.log("Main / Disabling because of desktop app.");if(s.conflictInObservingChanges())return void a.log("Main / Disabling: Observe Changes Indefinitely is on, but browser does not support it.");if(s.shouldLoadInnie())l.registerFunction("getProjectId",(function(){return p.projectId})),l.registerFunction("getAccountId",(function(){return p.accountId})),f.addScriptAsync("https://app.optimizely.com/js/innie.js"),a.log("Main / Disabling in favor of the editor client.");else if(s.shouldLoadPreview()){var v;v=s.isSlave()?window.optimizely:window.optimizely=window.optimizely||[],v.push({type:"load",data:p}),a.log("Main / Disabling in favor of the preview client."),n(148).setupPreviewGlobal(),n(148).pushToPreviewGlobal({type:"pushPreviewData",name:"liveCommitData",data:p}),s.isSlave()||(l.registerFunction("getProjectId",(function(){return p.projectId})),f.addScriptSync("https://cdn-assets-prod.s3.amazonaws.com/js/preview2/275532918.js"))}else if(s.shouldBootstrapDataForPreview()){l.registerFunction(g,(function(t){e(t),l.unregisterFunction(g)}));var m=s.isSlave()?PROJECT_ID_FOR_SLAVE_PREVIEW:l.getFunction("getProjectId")();c=t(s.getProjectToken(),m,s.getPreviewLayerIds()),f.addScriptSync(c),n(148).setupPreviewGlobal(),f.addScriptAsync("/dist/js/preview_ui.js")}else s.shouldBootstrapDataForEditor()?(l.registerFunction(g,(function(t){e(t),l.unregisterFunction(g)})),f.addScriptAsync(window.optimizely_editor_data_endpoint)):s.shouldInitialize()&&e(p);r.timeEnd("block")}try{i()}catch(e){try{n(120).handleError(e)}catch(e){console.log(e)}}}),(function(e,t,n){function i(){s();var e=F.getRumData();return e.extras=e.extras||{},e.extras.beacon={cjsTimeout:!0},e=v.pickBy(e,(function(e){return!v.isUndefined(e)})),a(e)}function r(e){var t=L.getPromise("RUM_FIRST_BEACON");return t?t.then(e):_.makeAsyncRequest("RUM_FIRST_BEACON",e)}function a(e){return v.isEmpty(e)?w.resolve():r((function(){return N.request({url:G,method:"POST",data:e,withCredentials:!0}).then((function(e){return _.resolveRequest("RUM_FIRST_BEACON",e),e}))["catch"]((function(e){throw A.error("POST to client-rum failed:",e),_.rejectRequest("RUM_FIRST_BEACON",e),e}))}))}function o(){var e=I.getCurrentScript();if(e)return e.src}function s(){var e={id:F.getRumId(),v:z,account:k.getAccountId(),project:k.getSnippetId()||k.getProjectId(),snippet:k.getSnippetId(),revision:k.getRevision(),clientVersion:P.getClientVersion(),hasSlave:!1,wxhr:!0,extras:{}},t=D.getPersistedBehaviorEventCount(),n=E.getEventCount();e["numBehaviorEvents"]=n;var i=n-t;v.extend(e.extras,{behaviorEventCountDiff:i,behaviorEventCountDecreased:i<0}),v.assign(e,u(),d()),S.dispatch(O.SET_RUM_DATA,{data:e})}function u(){var e=R.getGlobal("performance");if(e){var t,n=F.getScriptSrc();try{if(n){A.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;A.debug("Scanning resource timing entries with regex");var a=e.getEntriesByType("resource");t=v.find(a,(function(e){return r.test(e.name)}))}if(t)return v.mapValues(C.ResourceTimingAttributes,(function(e,n){var i=t[n];return"number"==typeof i?Math.round(1e3*(i||0))/1e3:"serverTiming"===n?i||[]:void 0}))}catch(e){return}}}function c(){try{return!I.querySelector("body")}catch(e){return null}}function l(){try{R.getGlobal("requestAnimationFrame")((function(){var e=F.getRumData().timebase;S.dispatch(O.SET_RUM_DATA,{data:{render:y.now()-(e||0)}})}))}catch(e){return}}function d(){return V.getDurationsFor(v.values(C.RUMPerformanceTimingAttributes))}function f(){var e=T.keys(),t=v.filter(v.map(e,(function(e){var t=D.getStorageKeyFromKey(e);return t?{key:e,isForeign:D.isForeignKey(e),category:t,size:e.length+T.getItem(e).length}:null}))),n=v.reduce(t,(function(e,t){var n=t.key,i=D.getIdFromKey(n);if(!i)return e;var r=t.isForeign?e.foreign:e.local;return r[i]=!0,e}),{local:{},foreign:{}}),i=v.chain(t).filter({isForeign:!0}).reduce((function(e,t){var n=t.key.split("_")[0];return e[n]=!0,e}),{}).value(),r={local:0,foreign:0},a={local:{},foreign:{}};v.forEach(t,(function(e){var t=e.isForeign?"foreign":"local";r[t]+=e.size,a[t][e.category]||(a[t][e.category]=0),a[t][e.category]+=e.size}));var o={numKeys:T.allKeys().length,sizeKeys:T.allKeys().toString().length,sizeValues:T.allValues().toString().length,idCounts:{local:v.keys(n.local).length,foreign:v.keys(n.foreign).length},foreignOriginCount:v.keys(i).length,byteTotals:r,byteTotalsByCategory:a},s=b.estimateStorage();return s.then((function(e){return v.assign(o,{storageEstimate:e})}))}function p(){var e=R.getGlobal("performance"),t=e?e.timing:{},n=V.getMarks()||{},i=F.getApiData(),r=F.getDOMObservationData(),o=B.get("state").getActiveExperimentIds(),s=F.getFeaturesNeededData(),u=I.parseUri(F.getScriptSrc()),c=F.getRumData()||{},l=c.extras||{};v.assign(l,{apiCalls:i,DOMObservationData:r,paintTimings:g(),activeExperimentIds:o,numPages:U.getNumberOfPages(),snippet:{scheme:u.protocol.slice(0,-1),host:u.host,path:u.pathname},networkInfo:h(),experimental:k.getExperimental(),featuresNeeded:s,beacon:{cjsOnload:!0}});var d=R.getGlobal("Prototype");d&&!v.isUndefined(d.Version)&&(l.prototypeJS=d.Version);var p=!1;p=!0;var m=M.getFrames();m.length&&(l.xdFramesLoaded=m.length);var _={id:F.getRumId(),v:z,project:k.getSnippetId()||k.getProjectId(),navigationTimings:t,userTimings:n,xd:p,apis:v.keys(i),extras:l,sampleRate:c.sampleRate};f().then((function(e){var t=v.assign(_,{lsMetrics:e});a(t)}))}function h(){var e=R.getGlobal("navigator");if(e&&e.connection)return v.pick(e.connection,["downlink","rtt","effectiveType"])}function g(){var e=R.getGlobal("performance");if(e)try{var t=e.getEntriesByType("paint");if(v.isEmpty(t))return;return v.reduce(t,(function(e,t){return e[t.name]=Math.round(t.startTime),e}),{})}catch(e){return}}var v=n(2),m=n(5),_=n(6),E=n(71),y=n(24),I=n(80),S=n(9),T=n(81).LocalStorage,A=n(23),b=n(90),w=n(12).Promise,D=n(74),R=n(40),N=n(91),O=n(7),C=n(25),x=n(16),L=x.get("stores/async_request"),P=x.get("stores/client_metadata"),k=x.get("stores/global"),F=x.get("stores/rum"),V=x.get("stores/performance"),M=x.get("stores/xdomain"),U=x.get("stores/view_data"),B=n(93),G="https://rum.optimizely.com/rum",j=3e3,z="1.0",H=.01;t.initialize=function(){var e,t=m.generate().replace(/-/g,"");e=Math.random()<H;var n=o();S.dispatch(O.SET_RUM_DATA,{id:t,RumHost:G,inRumSample:e,src:n,data:{id:t,sync:c(),timebase:y.now(),sampleRate:H,url:n,extras:{initialDOMState:I.getReadyState()}}})},t.queueBeacons=function(){return F.getSampleRum()?(l(),I.isLoaded()?R.setTimeout(p,j):R.addEventListener("load",p),new w(function(e,t){R.setTimeout((function(){i().then(e,t)}),j)}).catch((function(e){A.warn("RUM / Error sending data:",e)}))):w.resolve()}}),(function(e,t,n){e.exports=n(3)._.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 a(e,t){return u(De(e),pn)}function o(e,t){return!!e.length&&f(e,t,0)>-1}function s(e,t,n){for(var i=-1,r=e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function u(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function c(e,t,n){for(var i=-1,r=e.length;++i<r;){var a=e[i],o=t(a);if(null!=o&&(s===An?o===o:n(o,s)))var s=o,u=a}return u}function l(e,t,n,i){var r;return n(e,(function(e,n,a){if(t(e,n,a))return r=i?n:e,!1})),r}function d(e,t,n){for(var i=e.length,r=n?i:-1;n?r--:++r<i;)if(t(e[r],r,e))return r;return-1}function f(e,t,n){if(t!==t)return y(e,n);for(var i=n-1,r=e.length;++i<r;)if(e[i]===t)return i;return-1}function p(e,t,n,i,r){return r(e,(function(e,r,a){n=i?(i=!1,e):t(n,e,r,a)})),n}function h(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function g(e){return function(t){return e(t)}}function v(e,t){return Ee(t,(function(t){return e[t]}))}function m(e){return e&&e.Object===Object?e:null}function _(e,t){if(e!==t){var n=null===e,i=e===An,r=e===e,a=null===t,o=t===An,s=t===t;if(e>t&&!a||!r||n&&!o&&s||i&&s)return 1;if(e<t&&!n||!s||a&&!i&&r||o&&r)return-1}return 0}function E(e){return hi[e]}function y(e,t,n){for(var i=e.length,r=t+(n?0:-1);n?r--:++r<i;){var a=e[r];if(a!==a)return r}return-1}function I(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function S(e,t){return e="number"==typeof e||di.test(e)?+e:-1,t=null==t?Pn:t,e>-1&&e%1==0&&e<t}function T(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function A(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function b(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function w(e){if(zt(e)&&!dr(e)){if(e instanceof D)return e;if(Di.call(e,"__wrapped__"))return tt(e)}return new D(e)}function D(e,t){this.e=e,this.u=[],this.l=!!t}function R(){}function N(e,t){return C(e,t)&&delete e[t]}function O(e,t){if(Xi){var n=e[t];return n===Rn?An:n}return Di.call(e,t)?e[t]:An}function C(e,t){return Xi?e[t]!==An:Di.call(e,t)}function x(e,t,n){e[t]=Xi&&n===An?Rn:n}function L(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function P(){this.d={hash:new R,map:Ki?new Ki:[],string:new R}}function k(e){var t=this.d;return Ze(e)?N("string"==typeof e?t.string:t.hash,e):Ki?t.map["delete"](e):W(t.map,e)}function F(e){var t=this.d;return Ze(e)?O("string"==typeof e?t.string:t.hash,e):Ki?t.map.get(e):X(t.map,e)}function V(e){var t=this.d;return Ze(e)?C("string"==typeof e?t.string:t.hash,e):Ki?t.map.has(e):$(t.map,e)}function M(e,t){var n=this.d;return Ze(e)?x("string"==typeof e?n.string:n.hash,e,t):Ki?n.map.set(e,t):J(n.map,e,t),this}function U(e){var t=-1,n=e?e.length:0;for(this.d=new L;++t<n;)this.push(e[t])}function B(e,t){var n=e.d;if(Ze(t)){var i=n.d,r="string"==typeof t?i.string:i.hash;return r[t]===Rn}return n.has(t)}function G(e){var t=this.d;if(Ze(e)){var n=t.d,i="string"==typeof e?n.string:n.hash;i[e]=Rn}else t.set(e,Rn)}function j(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function z(){this.d={array:[],map:null}}function H(e){var t=this.d,n=t.array;return n?W(n,e):t.map["delete"](e)}function Y(e){var t=this.d,n=t.array;return n?X(n,e):t.map.get(e)}function K(e){var t=this.d,n=t.array;return n?$(n,e):t.map.has(e)}function q(e,t){var n=this.d,i=n.array;i&&(i.length<wn-1?J(i,e,t):(n.array=null,n.map=new L(i)));var r=n.map;return r&&r.set(e,t),this}function W(e,t){var n=Q(e,t);if(n<0)return!1;var i=e.length-1;return n==i?e.pop():ji.call(e,n,1),!0}function X(e,t){var n=Q(e,t);return n<0?An:e[n][1]}function $(e,t){return Q(e,t)>-1}function Q(e,t){for(var n=e.length;n--;)if(Ot(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===An||Ot(e,bi[n])&&!Di.call(i,n)?t:e}function ee(e,t,n){(n===An||Ot(e[t],n))&&("number"!=typeof t||n!==An||t in e)||(e[t]=n)}function te(e,t,n){var i=e[t];Di.call(e,t)&&Ot(i,n)&&(n!==An||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,a,o){var s;if(i&&(s=a?i(e,r,a,o):i(e)),s!==An)return s;if(!jt(e))return e;var u=dr(e);if(u){if(s=Xe(e),!t)return De(e,s)}else{var c=We(e),l=c==Bn||c==Gn;if(fr(e))return Oe(e,t);if(c==Hn||c==kn||l&&!a){if(I(e))return a?e:{};if(s=$e(l?{}:e),!t)return s=ne(s,e),n?Me(e,s):s}else{if(!pi[c])return a?e:{};s=Qe(e,c,t)}}o||(o=new j);var d=o.get(e);return d?d:(o.set(e,s),(u?tr:fe)(e,(function(r,a){te(s,a,re(r,t,n,i,a,e,o))})),n&&!u?Me(e,s):s)}function ae(e){return jt(e)?Bi(e):{}}function oe(e,t,n){if("function"!=typeof e)throw new TypeError(Dn);return setTimeout((function(){e.apply(An,n)}),t)}function se(e,t,n,i){var r=-1,a=o,u=!0,c=e.length,l=[],d=t.length;if(!c)return l;n&&(t=Ee(t,g(n))),i?(a=s,u=!1):t.length>=wn&&(a=B,u=!1,t=new U(t));e:for(;++r<c;){var f=e[r],p=n?n(f):f;if(u&&p===p){for(var h=d;h--;)if(t[h]===p)continue e;l.push(f)}else a(t,p,i)||l.push(f)}return l}function ue(e,t){var n=!0;return tr(e,(function(e,i,r){return n=!!t(e,i,r)})),n}function ce(e,t){var n=[];return tr(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n}function le(e,t,n,i){i||(i=[]);for(var r=-1,a=e.length;++r<a;){var o=e[r];t>0&&Pt(o)&&(n||dr(o)||xt(o))?t>1?le(o,t-1,n,i):u(i,o):n||(i[i.length]=o)}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 Bt(e[t])}))}function he(e,t,n,i,r){return e===t||(null==e||null==t||!jt(e)&&!zt(t)?e!==e&&t!==t:ge(e,t,he,n,i,r))}function ge(e,t,n,i,r,a){var o=dr(e),s=dr(t),u=Fn,c=Fn;o||(u=Oi.call(e),u=u==kn?Hn:u),s||(c=Oi.call(t),c=c==kn?Hn:c);var l=u==Hn&&!I(e),d=c==Hn&&!I(t),f=u==c;a||(a=[]);var p=vt(a,(function(t){return t[0]===e}));if(p&&p[1])return p[1]==t;if(a.push([e,t]),f&&!l){var h=o||Qt(e)?He(e,t,n,i,r,a):Ye(e,t,u,n,i,r,a);return a.pop(),h}if(!(r&xn)){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,a);return a.pop(),h}}if(!f)return!1;var h=Ke(e,t,n,i,r,a);return a.pop(),h}function ve(e){var t=typeof e;return"function"==t?e:null==e?vn:("object"==t?ye:be)(e)}function me(e){return Hi(Object(e))}function _e(e){e=null==e?e:Object(e);var t=[];for(var n in e)t.push(n);return t}function Ee(e,t){var n=-1,i=Lt(e)?Array(e.length):[];return tr(e,(function(e,r,a){i[++n]=t(e,r,a)})),i}function ye(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],An,Cn|xn)))return!1}return!0}}function Ie(e,t,n,i,r){if(e!==t){var a=dr(t)||Qt(t)?An:un(t);tr(a||t,(function(o,s){if(a&&(s=o,o=t[s]),jt(o))r||(r=new j),Se(e,t,s,n,Ie,i,r);else{var u=i?i(e[s],o,s+"",e,t,r):An;u===An&&(u=o),ee(e,s,u)}}))}}function Se(e,t,n,i,r,a,o){var s=e[n],u=t[n],c=o.get(u);if(c)return void ee(e,n,c);var l=a?a(s,u,n+"",e,t,o):An,d=l===An;d&&(l=u,dr(u)||Qt(u)?dr(s)?l=s:Pt(s)?l=De(s):(d=!1,l=re(u,!a)):Wt(u)||xt(u)?xt(s)?l=tn(s):!jt(s)||i&&Bt(s)?(d=!1,l=re(u,!a)):l=s:d=!1),o.set(u,l),d&&r(l,u,i,a,o),o["delete"](u),ee(e,n,l)}function Te(e,t){return e=Object(e),yt(t,(function(t,n){return n in e&&(t[n]=e[n]),t}),{})}function Ae(e,t){var n={};return de(e,(function(e,i){t(e,i)&&(n[i]=e)})),n}function be(e){return function(t){return null==t?An:t[e]}}function we(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 a=Array(r);++i<r;)a[i]=e[i+t];return a}function De(e){return we(e,0,e.length)}function Re(e,t){var n;return tr(e,(function(e,i,r){return n=t(e,i,r),!n})),!!n}function Ne(e,t){var n=e;return yt(t,(function(e,t){return t.func.apply(t.thisArg,u([e],t.args))}),n)}function Oe(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function Ce(e){var t=new e.constructor(e.byteLength);return new Fi(t).set(new Fi(e)),t}function xe(e){return yt(A(e),i,new e.constructor)}function Le(e){var t=new e.constructor(e.source,ci.exec(e));return t.lastIndex=e.lastIndex,t}function Pe(e){return yt(b(e),r,new e.constructor)}function ke(e){return er?Object(er.call(e)):{}}function Fe(e,t){var n=t?Ce(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ve(e,t,n,i){n||(n={});for(var r=-1,a=t.length;++r<a;){var o=t[r],s=i?i(n[o],e[o],o,n,e):e[o];te(n,o,s)}return n}function Me(e,t){return ir(e,ar(e),t)}function Ue(e){return Dt((function(t,n){var i=-1,r=n.length,a=r>1?n[r-1]:An;for(a="function"==typeof a?(r--,a):An,t=Object(t);++i<r;){var o=n[i];o&&e(t,o,i,a)}return t}))}function Be(e,t){return function(n,i){if(null==n)return n;if(!Lt(n))return e(n,i);for(var r=n.length,a=t?r:-1,o=Object(n);(t?a--:++a<r)&&i(o[a],a,o)!==!1;);return n}}function Ge(e){return function(t,n,i){for(var r=-1,a=Object(t),o=i(t),s=o.length;s--;){var u=o[e?s:++r];if(n(a[u],u,a)===!1)break}return t}}function je(e){return function(){var t=arguments,n=ae(e.prototype),i=e.apply(n,t);return jt(i)?i:n}}function ze(e,t,n,i){function r(){for(var t=-1,s=arguments.length,u=-1,c=i.length,l=Array(c+s),d=this&&this!==Ti&&this instanceof r?o:e;++u<c;)l[u]=i[u];for(;s--;)l[u++]=arguments[++t];return d.apply(a?n:this,l)}if("function"!=typeof e)throw new TypeError(Dn);var a=t&Nn,o=je(e);return r}function He(e,t,n,i,r,a){var o=-1,s=r&xn,u=r&Cn,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;for(var d=!0;++o<c;){var f,p=e[o],h=t[o];if(f!==An){if(f)continue;d=!1;break}if(u){if(!Re(t,(function(e){return p===e||n(p,e,i,r,a)}))){d=!1;break}}else if(p!==h&&!n(p,h,i,r,a)){d=!1;break}}return d}function Ye(e,t,n,i,r,a,o){switch(n){case Vn:case Mn:return+e==+t;case Un:return e.name==t.name&&e.message==t.message;case zn:return e!=+e?t!=+t:e==+t;case Yn:case qn:return e==t+""}return!1}function Ke(e,t,n,i,r,a){var o=r&xn,s=sn(e),u=s.length,c=sn(t),l=c.length;if(u!=l&&!o)return!1;for(var d=u;d--;){var f=s[d];if(!(o?f in t:Di.call(t,f)))return!1}for(var p=!0,h=o;++d<u;){f=s[d];var g,v=e[f],m=t[f];if(!(g===An?v===m||n(v,m,i,r,a):g)){p=!1;break}h||(h="constructor"==f)}if(p&&!h){var _=e.constructor,E=t.constructor;_!=E&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof E&&E instanceof E)&&(p=!1)}return p}function qe(e,t){var n=e[t];return Yt(n)?n:An}function We(e){return Oi.call(e)}function Xe(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&Di.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function $e(e){return"function"!=typeof e.constructor||et(e)?{}:ae(Mi(e))}function Qe(e,t,n){var i=e.constructor;switch(t){case $n:return Ce(e);case Vn:case Mn:return new i(+e);case Qn:case Jn:case Zn:case ei:case ti:case ni:case ii:case ri:case ai:return Fe(e,n);case jn:return xe(e);case zn:case qn:return new i(e);case Yn:return Le(e);case Kn:return Pe(e);case Wn:return ke(e)}}function Je(e){var t=e?e.length:An;return Gt(t)&&(dr(e)||$t(e)||xt(e))?h(t,String):null}function Ze(e){var t=typeof e;return"number"==t||"boolean"==t||"string"==t&&"__proto__"!=e||null==e}function et(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||bi;return e===n}function tt(e){var t=new D(e.e,e.l);return t.u=De(e.u),t}function nt(e){return ce(e,Boolean)}function it(e,t){return e&&e.length?d(e,ve(t,3)):-1}function rt(e){var t=e?e.length:0;return t?le(e,1):[]}function at(e){var t=e?e.length:0;return t?le(e,Ln):[]}function ot(e){return e?e[0]:An}function st(e,t,n){var i=e?e.length:0;n="number"==typeof n?n<0?Yi(i+n,0):n:0;for(var r=(n||0)-1,a=t===t;++r<i;){var o=e[r];if(a?o===t:o!==o)return r}return-1}function ut(e){var t=e?e.length:0;return t?e[t-1]:An}function ct(e,t,n){var i=e?e.length:0;return t=null==t?0:+t,n=n===An?i:+n,i?we(e,t,n):[]}function lt(e){var t=w(e);return t.l=!0,t}function dt(e,t){return t(e),e}function ft(e,t){return t(e)}function pt(){return Ne(this.e,this.u)}function ht(e,t,n){return t=n?An:t,ue(e,ve(t))}function gt(e,t){return ce(e,ve(t))}function vt(e,t){return l(e,ve(t),tr)}function mt(e,t){return tr(e,ie(t))}function _t(e,t,n,i){e=Lt(e)?e:pn(e),n=n&&!i?pr(n):0;var r=e.length;return n<0&&(n=Yi(r+n,0)),$t(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&f(e,t,n)>-1}function Et(e,t){return Ee(e,ve(t))}function yt(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 St(e,t,n){return t=n?An:t,Re(e,ve(t))}function Tt(e,t){var n=0;return t=ve(t),Ee(Ee(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})),be("value"))}function At(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=An),n}}function bt(e){if("function"!=typeof e)throw new TypeError(Dn);return function(){return!e.apply(this,arguments)}}function wt(e){return At(2,e)}function Dt(e,t){if("function"!=typeof e)throw new TypeError(Dn);return t=Yi(t===An?e.length-1:pr(t),0),function(){for(var n=arguments,i=-1,r=Yi(n.length-t,0),a=Array(r);++i<r;)a[i]=n[t+i];var o=Array(t+1);for(i=-1;++i<t;)o[i]=n[i];return o[t]=a,e.apply(this,o)}}function Rt(e){return jt(e)?dr(e)?De(e):ir(e,sn(e)):e}function Nt(e){return re(e,!0,!0)}function Ot(e,t){return e===t||e!==e&&t!==t}function Ct(e,t){return e>t}function xt(e){return Pt(e)&&Di.call(e,"callee")&&(!Gi.call(e,"callee")||Oi.call(e)==kn)}function Lt(e){return null!=e&&Gt(rr(e))&&!Bt(e)}function Pt(e){return zt(e)&&Lt(e)}function kt(e){return e===!0||e===!1||zt(e)&&Oi.call(e)==Vn}function Ft(e){return zt(e)&&Oi.call(e)==Mn}function Vt(e){if(Lt(e)&&(dr(e)||$t(e)||Bt(e.splice)||xt(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&&zi(e)}function Bt(e){var t=jt(e)?Oi.call(e):"";return t==Bn||t==Gn}function Gt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Pn}function jt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function zt(e){return!!e&&"object"==typeof e}function Ht(e){return qt(e)&&e!=+e}function Yt(e){return null!=e&&(Bt(e)?xi.test(wi.call(e)):zt(e)&&(I(e)?xi:li).test(e))}function Kt(e){return null===e}function qt(e){return"number"==typeof e||zt(e)&&Oi.call(e)==zn}function Wt(e){if(!zt(e)||Oi.call(e)!=Hn||I(e))return!1;var t=Mi(e);if(null===t)return!0;var n=t.constructor;return"function"==typeof n&&n instanceof n&&wi.call(n)==Ni}function Xt(e){return jt(e)&&Oi.call(e)==Yn}function $t(e){return"string"==typeof e||!dr(e)&&zt(e)&&Oi.call(e)==qn}function Qt(e){return zt(e)&&Gt(e.length)&&!!fi[Oi.call(e)]}function Jt(e){return e===An}function Zt(e,t){return e<t}function en(e){return Lt(e)?e.length?De(e):[]:pn(e)}function tn(e){return ir(e,un(e))}function nn(e){return"string"==typeof e?e:null==e?"":e+""}function rn(e,t){var n=ae(e);return t?gr(n,t):n}function an(e,t){return e&&fe(e,ie(t))}function on(e,t){return null!=e&&Di.call(e,t)}function sn(e){var t=et(e);if(!t&&!Lt(e))return me(e);var n=Je(e),i=!!n,r=n||[],a=r.length;for(var o in e)!Di.call(e,o)||i&&("length"==o||S(o,a))||t&&"constructor"==o||r.push(o);return r}function un(e){for(var t=-1,n=et(e),i=_e(e),r=i.length,a=Je(e),o=!!a,s=a||[],u=s.length;++t<r;){var c=i[t];o&&("length"==c||S(c,u))||"constructor"==c&&(n||!Di.call(e,c))||s.push(c)}return s}function cn(e,t){var n={};return t=ve(t,3),fe(e,(function(e,i,r){n[i]=t(e,i,r)})),n}function ln(e,t){return t=ve(t),Ae(e,(function(e,n){return!t(e,n)}))}function dn(e,t){return null==e?{}:Ae(e,ve(t))}function fn(e,t,n){var i=null==e?An:e[t];return i===An&&(i=n),Bt(i)?i.call(e):i}function pn(e){return e?v(e,sn(e)):[]}function hn(e){return e=nn(e),e&&si.test(e)?e.replace(oi,E):e}function gn(e){return function(){return e}}function vn(e){return e}function mn(e){return ye(gr({},e))}function _n(e,t,n){var i=sn(t),r=pe(t,i);null!=n||jt(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=pe(t,sn(t)));var a=!(jt(n)&&"chain"in n)||n.chain,o=Bt(e);return tr(r,(function(n){var i=t[n];e[n]=i,o&&(e.prototype[n]=function(){var t=this.l;if(a||t){var n=e(this.e),r=n.u=De(this.u);return r.push({func:i,args:arguments,thisArg:e}),n.l=t,n}return i.apply(e,u([this.value()],arguments))})})),e}function En(){return Ti._===this&&(Ti._=Ci),this}function yn(){}function In(e){var t=++Ri;return nn(e)+t}function Sn(e){return e&&e.length?c(e,vn,Ct):An}function Tn(e){return e&&e.length?c(e,vn,Zt):An}var An,bn="4.6.1",wn=200,Dn="Expected a function",Rn="__lodash_hash_undefined__",Nn=1,On=32,Cn=1,xn=2,Ln=1/0,Pn=9007199254740991,kn="[object Arguments]",Fn="[object Array]",Vn="[object Boolean]",Mn="[object Date]",Un="[object Error]",Bn="[object Function]",Gn="[object GeneratorFunction]",jn="[object Map]",zn="[object Number]",Hn="[object Object]",Yn="[object RegExp]",Kn="[object Set]",qn="[object String]",Wn="[object Symbol]",Xn="[object WeakMap]",$n="[object ArrayBuffer]",Qn="[object Float32Array]",Jn="[object Float64Array]",Zn="[object Int8Array]",ei="[object Int16Array]",ti="[object Int32Array]",ni="[object Uint8Array]",ii="[object Uint8ClampedArray]",ri="[object Uint16Array]",ai="[object Uint32Array]",oi=/[&<>"'`]/g,si=RegExp(oi.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[ai]=!0,fi[kn]=fi[Fn]=fi[$n]=fi[Vn]=fi[Mn]=fi[Un]=fi[Bn]=fi[jn]=fi[zn]=fi[Hn]=fi[Yn]=fi[Kn]=fi[qn]=fi[Xn]=!1;var pi={};pi[kn]=pi[Fn]=pi[$n]=pi[Vn]=pi[Mn]=pi[Qn]=pi[Jn]=pi[Zn]=pi[ei]=pi[ti]=pi[jn]=pi[zn]=pi[Hn]=pi[Yn]=pi[Kn]=pi[qn]=pi[Wn]=pi[ni]=pi[ii]=pi[ri]=pi[ai]=!0,pi[Un]=pi[Bn]=pi[Xn]=!1;var hi={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},gi={"function":!0,object:!0},vi=gi[typeof t]&&t&&!t.nodeType?t:An,mi=gi[typeof e]&&e&&!e.nodeType?e:An,_i=mi&&mi.exports===vi?vi:An,Ei=m(vi&&mi&&"object"==typeof n&&n),yi=m(gi[typeof self]&&self),Ii=m(gi[typeof window]&&window),Si=m(gi[typeof this]&&this),Ti=Ei||Ii!==(Si&&Si.window)&&Ii||yi||Si||Function("return this")(),Ai=Array.prototype,bi=Object.prototype,wi=Function.prototype.toString,Di=bi.hasOwnProperty,Ri=0,Ni=wi.call(Object),Oi=bi.toString,Ci=Ti._,xi=RegExp("^"+wi.call(Di).replace(ui,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Li=_i?An:An,Pi=Ti.Reflect,ki=Ti.Symbol,Fi=Ti.Uint8Array,Vi=Pi?Pi.enumerate:An,Mi=Object.getPrototypeOf,Ui=Object.getOwnPropertySymbols,Bi=Object.create,Gi=bi.propertyIsEnumerable,ji=Ai.splice,zi=Ti.isFinite,Hi=Object.keys,Yi=Math.max,Ki=qe(Ti,"Map"),qi=qe(Ti,"Set"),Wi=qe(Ti,"WeakMap"),Xi=qe(Object,"create"),$i=Ki?wi.call(Ki):"",Qi=qi?wi.call(qi):"",Ji=Wi?wi.call(Wi):"",Zi=ki?ki.prototype:An,er=Zi?Zi.valueOf:An,tr=Be(fe),nr=Ge();Vi&&!Gi.call({valueOf:1},"valueOf")&&(_e=function(e){return T(Vi(e))});var ir=Ve,rr=be("length"),ar=Ui||function(){return[]};(Ki&&We(new Ki)!=jn||qi&&We(new qi)!=Kn||Wi&&We(new Wi)!=Xn)&&(We=function(e){var t=Oi.call(e),n=t==Hn?e.constructor:null,i="function"==typeof n?wi.call(n):"";if(i)switch(i){case $i:return jn;case Qi:return Kn;case Ji:return Xn}return t});var or=Dt((function(e,t){return dr(e)||(e=null==e?[]:[Object(e)]),t=le(t,1),a(e,t)})),sr=Dt((function(e,t,n){return ze(e,Nn|On,t,n)})),ur=Dt((function(e,t){return oe(e,1,t)})),cr=Dt((function(e,t,n){return oe(e,hr(t)||0,n)})),lr=Dt((function(e,t){return ze(e,On,An,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){Ve(t,un(t),e,i)})),_r=Dt((function(e){return e.push(An,Z),mr.apply(An,e)})),Er=Ue((function(e,t,n){Ie(e,t,n)})),yr=Dt((function(e,t){return null==e?{}:(t=Ee(le(t,1),String),Te(e,se(un(e),t)))})),Ir=Dt((function(e,t){return null==e?{}:Te(e,le(t,1))})),Sr=ve;D.prototype=ae(w.prototype),D.prototype.constructor=D,R.prototype=Xi?Xi(null):bi,L.prototype.clear=P,L.prototype["delete"]=k,L.prototype.get=F,L.prototype.has=V,L.prototype.set=M,U.prototype.push=G,j.prototype.clear=z,j.prototype["delete"]=H,j.prototype.get=Y,j.prototype.has=K,j.prototype.set=q,w.assign=gr,w.assignIn=vr,w.before=At,w.bind=sr,w.chain=lt,w.compact=nt,w.concat=or,w.create=rn,w.defaults=_r,w.defer=ur,w.delay=cr,w.filter=gt,w.flatten=rt,w.flattenDeep=at,w.iteratee=Sr,w.keys=sn,w.map=Et,w.mapValues=cn,w.matches=mn,w.merge=Er,w.mixin=_n,w.negate=bt,w.omit=yr,w.omitBy=ln,w.once=wt,w.partial=lr,w.pick=Ir,w.pickBy=dn,w.slice=ct,w.sortBy=Tt,w.tap=dt,w.thru=ft,w.toArray=en,w.values=pn,w.extend=vr,_n(w,w),w.clone=Rt,w.cloneDeep=Nt,w.escape=hn,w.every=ht,w.find=vt,w.findIndex=it,w.forEach=mt,w.forOwn=an,w.has=on,w.head=ot,w.identity=vn,w.includes=_t,w.indexOf=st,w.isArguments=xt,w.isArray=dr,w.isBoolean=kt,w.isDate=Ft,w.isEmpty=Vt,w.isEqual=Mt,w.isFinite=Ut,w.isFunction=Bt,w.isNaN=Ht,w.isNull=Kt,w.isNumber=qt,w.isObject=jt,w.isRegExp=Xt,w.isString=$t,w.isUndefined=Jt,w.last=ut,w.max=Sn,w.min=Tn,w.noConflict=En,w.noop=yn,w.reduce=yt,w.result=fn,w.size=It,w.some=St,w.uniqueId=In,w.each=mt,w.first=ot,_n(w,(function(){var e={};return fe(w,(function(t,n){Di.call(w.prototype,n)||(e[n]=t)})),e})(),{chain:!1}),w.VERSION=bn,tr(["pop","join","replace","reverse","split","push","shift","sort","splice","unshift"],(function(e){var t=(/^(?:replace|split)$/.test(e)?String.prototype:Ai)[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|join|replace|shift)$/.test(e);w.prototype[e]=function(){var e=arguments;return i&&!this.l?t.apply(this.value(),e):this[n]((function(n){return t.apply(n,e)}))}})),w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=pt,(Ii||yi||{})._=w,vi&&mi&&(_i&&((mi.exports=w)._=w),vi._=w)}).call(this)}).call(t,n(4)(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){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(7),r=n(9),a=n(12).Promise,o=n(16),s=o.get("stores/async_request");t.makeAsyncRequest=function(e,t){var n=s.getPromise(e);if(n)return n;var o,u,c=new a(function(e,t){o=e,u=t});return r.dispatch(i.REGISTER_ASYNC_DEFERRED,{source:e,promise:c,resolver:o,rejecter:u}),t&&t(),c},t.resolveRequest=function(e,t){r.dispatch(i.RESOLVE_DEFERRED,{source:e,resolveWith:t})},t.rejectRequest=function(e,t){r.dispatch(i.REJECT_DEFERRED,{source:e,rejectWith:t})}}),(function(e,t,n){var i=n(8);e.exports=i({LOG:null,SET_LOGLEVEL:null,INITIALIZE_STATE:null,SET_DOMCONTENTLOADED:null,ACTIVATE:null,UPDATE_BEHAVIOR_STORE:null,DATA_LOADED:null,SET_CLIENT_NAME:null,SET_CLIENT_VERSION:null,LOAD_PERSISTED_LAYER_STATES:null,RECORD_GLOBAL_DECISION:null,RECORD_LAYER_DECISION:null,ENSURE_ORIGINAL_PUSHSTATE:null,ENSURE_ORIGINAL_REPLACESTATE:null,SET_VISITOR_ATTRIBUTES:null,SET_VISITOR_ATTRIBUTE_PENDING:null,LOAD_EXISTING_VISITOR_PROFILE:null,SET_VISITOR_EVENTS:null,SET_FOREIGN_VISITOR_EVENTS:null,SET_FOREIGN_VISITOR_EVENT_QUEUE:null,SET_VISITOR_ID:null,SET_VISITOR_ID_VIA_API:null,REFRESH_SESSION:null,LOAD_SESSION_STATE:null,UPDATE_VARIATION_ID_MAP:null,MERGE_VARIATION_ID_MAP:null,UPDATE_PREFERRED_LAYER_MAP:null,MERGE_PREFERRED_LAYER_MAP:null,RECORD_LAYER_DECISION_EVENT_ID:null,TRACK_VIEW_ACTIVATED_EVENT:null,REGISTER_ASYNC_DEFERRED:null,RESOLVE_DEFERRED:null,REJECT_DEFERRED:null,REGISTER_PLUGIN:null,ADD_CLEANUP_FN:null,CLEAR_CLEANUP_FN:null,ACTION_EXECUTED:null,REGISTER_ACTION:null,SET_VIEW_ACTIVE_STATE:null,UPDATE_PARSED_VIEW_METADATA:null,UPDATE_USER_SUPPLIED_METADATA:null,REGISTER_VIEWS:null,SET_GLOBAL_TAGS:null,SET_VIEW_BATCHING:null,RESET_VIEW_STATES:null,ATTACH_EVENT_STREAM_PUBLISHERS:null,DETACH_EVENT_STREAM_PUBLISHERS:null,LOAD_DIRECTIVE:null,SET_COOKIE_AGE:null,SET_COOKIE_DOMAIN:null,SET_COOKIE_AUTO_REFRESH:null,XDOMAIN_SET_DEFAULT_FRAME:null,XDOMAIN_ADD_FRAME:null,XDOMAIN_SET_MESSAGE:null,XDOMAIN_ADD_SUBSCRIBER:null,XDOMAIN_SET_CANONICAL_ORIGINS:null,XDOMAIN_SET_DISABLED:null, ADD_EMITTER_HANDLER:null,REMOVE_EMITTER_HANDLER:null,SET_INTEGRATION_SETTINGS:null,ADD_CHANGE:null,SET_CHANGE_APPLIER:null,REMOVE_ACTION_STATE:null,ANNOUNCE_PENDING_REDIRECT:null,LOAD_REDIRECT_DATA:null,REGISTER_TRACKED_REDIRECT_DATA:null,SET_PENDING_EVENT:null,REMOVE_PENDING_EVENT:null,LOAD_PENDING_EVENTS:null,SANDBOXED_FUNCTIONS_ADDED:null,SET_RUM_DATA:null,RECORD_API_USAGE:null,INITIALIZE_CHANGE_METRICS:null,RECORD_ACTIVATION_TYPE_USAGE:null,RECORD_AUDIENCE_USAGE:null,RECORD_CHANGE_MACROTASK_RATE:null,RECORD_CHANGE_OVERHEATED:null,RECORD_CHANGE_TYPE_USAGE:null,RECORD_DOM_OBSERVATION_OCCURENCE:null,RECORD_INTEGRATION_USAGE:null,RECORD_LAYER_FEATURE_USAGE:null,RECORD_LAYER_POLICY_USAGE:null,RECORD_RECOMMENDATIONS_USAGE:null,RECORD_VIEW_FEATURE_USAGE:null,RECORD_VIEWS_INITIALLY_ACTIVATED_COUNT:null,RECORD_VISITOR_ID_LOCATOR_USAGE:null,RECORD_VISITOR_ID_ERROR:null,RECORD_STICKY_BUCKETING_FEATURE:null,SET_PERFORMANCE_MARKS_DATA:null,FINALIZE_BATCH_SNAPSHOT:null,REGISTER_PREVIOUS_BATCH:null,REGISTER_TRACKER_VISITOR:null,REGISTER_TRACKER_EVENT:null,REGISTER_TRACKER_DECISION:null,RESET_TRACKER_EVENTS:null,RESET_TRACKER_PREVIOUS_BATCHES:null,RESET_TRACKER_STORE:null,SET_TRACKER_POLLING:null,SET_TRACKER_BATCHING:null,SET_TRACKER_SEND_EVENTS:null,SET_TRACKER_PERSISTABLE_STATE:null,SET_TRACKER_DIRTY:null,UPDATE_TRACKER_VISITOR_ATTRIBUTES:null,SET_UA_DATA:null})}),(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,n){var i=n(10);e.exports=i.create()}),(function(e,t,n){function i(e){e=e||{},this.f={},this.g={},this.I=0,this.S=[],this.T=[]}function r(e,t){return function(){var n=e.indexOf(t);n!==-1&&e.splice(n,1)}}var a=n(2),o=n(11);i.prototype.registerStores=function(e){a.forOwn(e,a.bind((function(e,t){this.f[t]=new o(t,this,e)}),this))},i.prototype.getStore=function(e){return this.f[e]},i.prototype.dispatch=function(e,t){this.dispatchId++,a.each(this.S,a.bind((function(n){n.call(this,e,t)}),this)),a.forOwn(this.f,(function(n){n.A(e,t)})),a.each(this.T,a.bind((function(n){n.call(this,e,t)}),this)),a.forOwn(this.f,a.bind((function(e,t){e.hasChanges()&&this.g[t]&&(e.resetChange(),a.each(this.g[t],(function(t){t(e)})))}),this))},i.prototype.reset=function(){this.g={},a.forOwn(this.f,(function(e,t){e.b()}))},i.prototype.getState=function(){var e={};return a.forOwn(this.f,(function(t,n){e[n]=t.w()})),e},i.prototype.onPreAction=function(e){var t=this.S;return t.push(e),r(t,e)},i.prototype.onPostAction=function(e){var t=this.T;return t.push(e),r(t,e)},i.prototype.D=function(e,t){this.g[e]||(this.g[e]=[]),this.g[e].push(t);var n=this.g[e];return r(n,t)},e.exports={create:function(e){return new i(e)}}}),(function(e,t,n){function i(e,t,n){this.R=e,this.N=t,this.O=0,this.C=!1,this.L={},r.extend(this,n),this.P={},this.initialize&&this.initialize()}var r=n(2);i.prototype.A=function(e,t){var n=this.L[e];n&&"function"==typeof n&&n.call(this,t,e)},i.prototype.w=function(){return r.cloneDeep(this.P)},i.prototype.on=function(e,t){this.L[e]=r.bind(t,this)},i.prototype.observe=function(e){return this.N.D(this.R,e)},i.prototype.emitChange=function(){this.C=!0,this.O++},i.prototype.hasChanges=function(){return this.C},i.prototype.resetChange=function(){this.C=!1},i.prototype.getStateId=function(){return this.O},i.prototype.b=function(){this.reset&&"function"==typeof this.reset&&this.reset(),this.initialize()},e.exports=i}),(function(e,t,n){e.exports=n(13)}),(function(e,t,n){(function(t,i){/*! * @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/stefanpenner/es6-promise/master/LICENSE * @version 4.1.0 */ !(function(t,n){e.exports=n()})(this,(function(){"use strict";function e(e){return"function"==typeof e||"object"==typeof e&&null!==e}function r(e){return"function"==typeof e}function a(e){X=e}function o(e){$=e}function s(){return function(){return t.nextTick(f)}}function u(){return"undefined"!=typeof W?function(){W(f)}:d()}function c(){var e=0,t=new Z(f),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function l(){var e=new MessageChannel;return e.port1.onmessage=f,function(){return e.port2.postMessage(0)}}function d(){var e=setTimeout;return function(){return e(f,1)}}function f(){for(var e=0;e<q;e+=2){var t=ne[e],n=ne[e+1];t(n),ne[e]=void 0,ne[e+1]=void 0}q=0}function p(){try{var e=n(15);return W=e.runOnLoop||e.runOnContext,u()}catch(e){return d()}}function h(e,t){var n=arguments,i=this,r=new this.constructor(v);void 0===r[re]&&k(r);var a=i._state;return a?!(function(){var e=n[a-1];$((function(){return x(a,r,e,i._result)}))})():R(i,r,e,t),r}function g(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(v);return A(n,e),n}function v(){}function m(){return new TypeError("You cannot resolve a promise with itself")}function _(){return new TypeError("A promises callback cannot return that same promise.")}function E(e){try{return e.then}catch(e){return ue.error=e,ue}}function y(e,t,n,i){try{e.call(t,n,i)}catch(e){return e}}function I(e,t,n){$((function(e){var i=!1,r=y(n,t,(function(n){i||(i=!0,t!==n?A(e,n):w(e,n))}),(function(t){i||(i=!0,D(e,t))}),"Settle: "+(e._label||" unknown promise"));!i&&r&&(i=!0,D(e,r))}),e)}function S(e,t){t._state===oe?w(e,t._result):t._state===se?D(e,t._result):R(t,void 0,(function(t){return A(e,t)}),(function(t){return D(e,t)}))}function T(e,t,n){t.constructor===e.constructor&&n===h&&t.constructor.resolve===g?S(e,t):n===ue?(D(e,ue.error),ue.error=null):void 0===n?w(e,t):r(n)?I(e,t,n):w(e,t)}function A(t,n){t===n?D(t,m()):e(n)?T(t,n,E(n)):w(t,n)}function b(e){e._onerror&&e._onerror(e._result),N(e)}function w(e,t){e._state===ae&&(e._result=t,e._state=oe,0!==e._subscribers.length&&$(N,e))}function D(e,t){e._state===ae&&(e._state=se,e._result=t,$(b,e))}function R(e,t,n,i){var r=e._subscribers,a=r.length;e._onerror=null,r[a]=t,r[a+oe]=n,r[a+se]=i,0===a&&e._state&&$(N,e)}function N(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var i=void 0,r=void 0,a=e._result,o=0;o<t.length;o+=3)i=t[o],r=t[o+n],i?x(n,i,r,a):r(a);e._subscribers.length=0}}function O(){this.error=null}function C(e,t){try{return e(t)}catch(e){return ce.error=e,ce}}function x(e,t,n,i){var a=r(n),o=void 0,s=void 0,u=void 0,c=void 0;if(a){if(o=C(n,i),o===ce?(c=!0,s=o.error,o.error=null):u=!0,t===o)return void D(t,_())}else o=i,u=!0;t._state!==ae||(a&&u?A(t,o):c?D(t,s):e===oe?w(t,o):e===se&&D(t,o))}function L(e,t){try{t((function(t){A(e,t)}),(function(t){D(e,t)}))}catch(t){D(e,t)}}function P(){return le++}function k(e){e[re]=le++,e._state=void 0,e._result=void 0,e._subscribers=[]}function F(e,t){this._instanceConstructor=e,this.promise=new e(v),this.promise[re]||k(this.promise),K(t)?(this._input=t,this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?w(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&w(this.promise,this._result))):D(this.promise,V())}function V(){return new Error("Array Methods must be provided an Array")}function M(e){return new F(this,e).promise}function U(e){var t=this;return new t(K(e)?function(n,i){for(var r=e.length,a=0;a<r;a++)t.resolve(e[a]).then(n,i)}:function(e,t){return t(new TypeError("You must pass an array to race."))})}function B(e){var t=this,n=new t(v);return D(n,e),n}function G(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function j(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function z(e){this[re]=P(),this._result=this._state=void 0,this._subscribers=[],v!==e&&("function"!=typeof e&&G(),this instanceof z?L(this,e):j())}function H(){var e=void 0;if("undefined"!=typeof i)e=i;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=z}var Y=void 0;Y=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var K=Y,q=0,W=void 0,X=void 0,$=function(e,t){ne[q]=e,ne[q+1]=t,q+=2,2===q&&(X?X(f):ie())},Q="undefined"!=typeof window?window:void 0,J=Q||{},Z=J.MutationObserver||J.WebKitMutationObserver,ee="undefined"==typeof self&&"undefined"!=typeof t&&"[object process]"==={}.toString.call(t),te="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,ne=new Array(1e3),ie=void 0;ie=ee?s():Z?c():te?l():void 0===Q?p():d();var re=Math.random().toString(36).substring(16),ae=void 0,oe=1,se=2,ue=new O,ce=new O,le=0;return F.prototype._enumerate=function(){for(var e=this.length,t=this._input,n=0;this._state===ae&&n<e;n++)this._eachEntry(t[n],n)},F.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,i=n.resolve;if(i===g){var r=E(e);if(r===h&&e._state!==ae)this._settledAt(e._state,t,e._result);else if("function"!=typeof r)this._remaining--,this._result[t]=e;else if(n===z){var a=new n(v);T(a,e,r),this._willSettleAt(a,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(i(e),t)},F.prototype._settledAt=function(e,t,n){var i=this.promise;i._state===ae&&(this._remaining--,e===se?D(i,n):this._result[t]=n),0===this._remaining&&w(i,this._result)},F.prototype._willSettleAt=function(e,t){var n=this;R(e,void 0,(function(e){return n._settledAt(oe,t,e)}),(function(e){return n._settledAt(se,t,e)}))},z.all=M,z.race=U,z.resolve=g,z.reject=B,z._setScheduler=a,z._setAsap=o,z._asap=$,z.prototype={constructor:z,then:h,"catch":function(e){return this.then(null,e)}},z.polyfill=H,z.Promise=z,z}))}).call(t,n(14),(function(){return this})())}),(function(e,t){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function r(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function a(e){if(d===clearTimeout)return clearTimeout(e);if((d===i||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function o(){g&&p&&(g=!1,p.length?h=p.concat(h):v=-1,h.length&&s())}function s(){if(!g){var e=r(o);g=!0;for(var t=h.length;t;){for(p=h,h=[];++v<t;)p&&p[v].run();v=-1,t=h.length}p=null,g=!1,a(e)}}function u(e,t){this.fun=e,this.array=t}function c(){}var l,d,f=e.exports={};!(function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{d="function"==typeof clearTimeout?clearTimeout:i}catch(e){d=i}})();var p,h=[],g=!1,v=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new u(e,t)),1!==h.length||g||r(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=c,f.addListener=c,f.once=c,f.off=c,f.removeListener=c,f.removeAllListeners=c,f.emit=c,f.prependListener=c,f.prependOnceListener=c,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}}),(function(e,t){}),(function(e,t,n){var i=n(2),r=n(17),a=n(9),o=n(18),s=r.create(),u={action_data:n(21),async_request:n(27),audience_data:n(28),change_data:n(29),cleanup:n(30),client_metadata:n(31),cookie_options:n(33),event_data:n(34),event_emitter:n(35),dimension_data:n(36),directive:n(37),global:n(38),history:n(39),integration_settings:n(41),layer:n(42),layer_data:n(43),log:n(45),observed_redirect:n(46),pending_events:n(47),performance:n(48),plugins:n(49),provider_status:n(50),pending_redirect:n(51),rum:n(52),sandbox:n(53),session:n(54),tracker_optimizely:n(55),ua_data:n(56),view:n(57),view_data:n(58),visitor:n(59),visitor_attribute_entity:n(60),visitor_events:n(61),visitor_events_manager:n(66),visitor_id:n(67),visitor_bucketing:n(68),xdomain:n(69)};u["group_data"]=n(70),a.registerStores(u),i.forOwn(u,(function(e,t){s.register("stores/"+t,a.getStore(t))})),s.register("core/plugins/matchers/key_value",o),e.exports=s}),(function(e,t,n){function i(){this.k={}}var r=n(2);i.prototype.register=function(e,t){if(1===arguments.length){var n=this;return void r.each(e,(function(e,t){n.register(t,e)}))}if(this.k[e])throw new Error("Module already registered for: "+e);this.k[e]=t},i.prototype.get=function(e){return this.k[e]},i.prototype.getModuleKeys=function(){var e=this.k;return r.keys(e)},i.prototype.evaluate=function(e){var t=e.length,n=e.slice(0,t-1),i=e[t-1];if("function"!=typeof i)throw new Error("Evaluate must take a function as last element in array");var a=r.map(n,r.bind(this.get,this));return i.apply(null,a)},i.prototype.reset=function(){this.k={}},e.exports={create:function(){return new i}}}),(function(e,t,n){var i=n(2),r=n(19).getFieldValue,a=n(20);e.exports=function(e,t){var n=r(e,t.name.split("."));return i.isArray(n)?i.some(n,i.partial(a.hasMatch,t.value,t.match)):a.hasMatch(t.value,t.match,n)}}),(function(e,t,n){var i=n(2);t.getFieldValue=function(e,t){i.isArray(t)||(t=[t]);for(var n=e,r=0;r<t.length;r++){var a=t[r];if(!i.isObject(n)||!n.hasOwnProperty(a))return;n=n[a]}return n},t.setFieldValue=function(e,t,n){if(!i.isArray(t)||i.isEmpty(t))throw new Error("Attempted to set an invalid key path: "+t);for(var r=e,a=0;a<t.length-1;a++){var o=t[a];i.isObject(r[o])||(r[o]={}),r=r[o]}r[t[t.length-1]]=n}}),(function(e,t,n){var i=n(2);t.hasMatch=function(e,t,n){var r=!i.isUndefined(n)&&null!==n,a=!i.isUndefined(e)&&null!==e,o=t||(a?"exact":"exists");switch(o){case"exists":return r;case"exact":return r&&String(n)===e;case"substring":return r&&String(n).indexOf(e)>-1;case"regex":try{if(a&&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){var i=n(2),r=n(7),a=n(22),o=n(23);e.exports={initialize:function(){this.P={actions:{},actionState:{}},this.on(r.DATA_LOADED,this.F),this.on(r.ACTION_EXECUTED,this.V),this.on(r.SET_CHANGE_APPLIER,this.M),this.on(r.REMOVE_ACTION_STATE,this.U)},F:function(e){var t=this;i.isEmpty(e.data.layers)||(i.each(e.data.layers,(function(e){var n;if(e.changes){var r="layerId:"+e.id;n={id:r,layerId:e.id,changeSet:e.changes,type:"layer"},a.deepFreeze(n),t.P.actions[r]=n}i.each(e.experiments,(function(r){if(r.changes){var o="experimentId:"+r.id;n={id:o,layerId:e.id,experimentId:r.id,changeSet:r.changes,type:"experiment"},a.deepFreeze(n),t.P.actions[o]=n}i.each(r.variations,(function(o){i.each(o.actions,(function(i){var s=i.pageId||i.viewId,u=r.id+":"+o.id+":"+s;n={id:u,layerId:e.id,experimentId:r.id,variationId:o.id,pageId:s,changeSet:i.changes,type:"variation"},a.deepFreeze(n),t.P.actions[u]=n}))}))}))})),this.emitChange())},V:function(e){var t=e.actionId;i.isUndefined(t)||this.P.actionState[t]||(this.P.actionState[t]={})},M:function(e){var t=e.actionId,n=e.changeId;return this.P.actionState[t]?void(this.P.actionState[t][n]=e.changeApplier):void o.warn("Action Data / Attempted to set changeApplier for inactive action: ",t)},U:function(e){delete this.P.actionState[e.actionId]},get:function(e){return a.safeReference(this.P.actions[e])},getActionState:function(e){return a.safeReference(this.P.actionState[e])},getByChangeId:function(e){return i.find(this.P.actions,{changeSet:[{id:e}]})},getAllActionIdsByPageId:function(e){return i.map(i.filter(this.P.actions,{pageId:e}),"id")},getChangeApplier:function(e,t){var n=this.P.actionState[t];if(n)return n[e]},getExperimentVariationActions:function(e,t){return a.safeReference(i.filter(this.P.actions,{experimentId:e,variationId:t}))},getLayerActions:function(e){return a.safeReference(i.filter(this.P.actions,{id:"layerId:"+e}))},getExperimentActions:function(e){return a.safeReference(i.filter(this.P.actions,{id:"experimentId:"+e}))},getAll:function(){return a.safeReference(i.values(this.P.actions))}}}),(function(e,t,n){var i=n(2),r=!1;t.deepFreeze=function e(t){r&&i.isObject(t)&&!i.isFunction(t)&&(i.forOwn(t,e),Object.freeze(t))},t.safeReference=function e(t){return r?!i.isObject(t)||i.isFunction(t)||Object.isFrozen(t)?t:i.isArray(t)?i.map(t,e):i.reduce(t,(function(t,n,i){return t[i]=e(n),t}),{}):i.cloneDeep(t)}}),(function(e,t,n){function i(){this.logLevel=null,this.logMatch=null,this.logs=[],this.timebase=o.now()}var r=n(2),a=n(7),o=n(24),s=n(25),u=n(9),c=n(26);i.prototype.B=function(){return!r.isNull(this.logLevel)},i.prototype.setLogLevel=function(e){var t=this.G(e);null===t?console.error("Unknown log level: "+e):this.logLevel!==t&&(this.log("Setting log level to "+t),this.logLevel=t,this.flush())},i.prototype.setLogMatcher=function(e){r.isString(e)?this.logMatcher=e:this.logMatcher="",this.logGroup=0},i.prototype.shouldLog=function(e){return this.B()&&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=r.some(t,(function(e){if(!r.isString(e))try{e=c.stringify(e)}catch(e){}return r.isString(e)&&r.includes(e,n)}));return i&&"GROUPSTART"===e&&this.logGroup++,i},i.prototype.storeLog=function(e,t){var n={logLevel:e,logMessage:t};u.dispatch(a.LOG,n)},i.prototype.flush=function(){var e=n(16),t=e.get("stores/log");this.logGroup=0;var i=t.getLogs();r.each(i,r.bind((function(e){this.j(e.logLevel,e.logMessage,!0)}),this))},i.prototype.j=function(e,t,n){var i,a=e;if(console)switch(e){case"GROUPSTART":i=console.groupCollapsed,a=s.LogLevel.DEBUG;break;case"GROUPEND":i=console.groupEnd,a=s.LogLevel.DEBUG;break;case s.LogLevel.ERROR:i=console.error;break;case s.LogLevel.WARN:i=console.warn;break;case s.LogLevel.DEBUG:i=console.debug;break;default:i=console.log}try{n||this.B()&&!this.shouldLog(a)||(r.isArray(t)&&r.isString(t[0])&&(t=this.z(t)),this.storeLog(e,t)),i&&this.shouldLog(a)&&this.matchesLogMessage(e,t)&&i.apply(console,t)}catch(e){console&&(console.error?console.error(e):console.log(e))}},i.prototype.debug=function(){this.j(s.LogLevel.DEBUG,[].slice.call(arguments))},i.prototype.log=function(){this.j(s.LogLevel.INFO,[].slice.call(arguments))},i.prototype.logAlways=function(){var e=this.z([].slice.call(arguments));console&&console.log&&console.log.apply&&console.log.apply(console,e),this.storeLog(s.LogLevel.INFO,e)},i.prototype.warn=function(){this.j(s.LogLevel.WARN,[].slice.call(arguments))},i.prototype.error=function(e){var t=[].slice.call(arguments);1===t.length&&e.stack?(this.j(s.LogLevel.ERROR,[this.H(),e]),this.j(s.LogLevel.INFO,[e.stack])):this.j(s.LogLevel.ERROR,t)},i.prototype.groupCollapsed=function(){this.j("GROUPSTART",[].slice.call(arguments))},i.prototype.groupEnd=function(){this.j("GROUPEND",[].slice.call(arguments))},i.prototype.z=function(e){var t=this.H().toString();return t.length<6&&(t=(" "+t).slice(-6)),[t+"| Optly / "+e[0]].concat(e.slice(1))},i.prototype.H=function(){return this.timebase?o.now()-this.timebase:0},i.prototype.G=function(e){return e&&(e=e.toUpperCase(),"TRUE"===e&&(e="INFO"),"FALSE"===e&&(e="OFF"),"ALL"===e&&(e="DEBUG"),!r.isUndefined(s.LogLevel[e]))?s.LogLevel[e]:null},e.exports=new i}),(function(e,t){t.now=function(){return+new Date}}),(function(e,t,n){var i=n(2),r=n(8);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},t.Lifecycle=r({preActivate:null,postVisitorProfileLoad:null,postViewsActivated:null,postActivate:null}),t.ViewActivationTypes={immediate:"immediate",manual:"manual",callback:"callback",polling:"polling",URLChanged:"url_changed",DOMChanged:"dom_changed"},t.StorageKeys={PENDING_EVENTS:"pending_events",RELAYED_EVENTS:"relayed_events"},t.PluginTypes=r({visitorProfileProviders:null,viewProviders:null,audienceMatchers:null,viewMatchers:null,analyticsTrackers:null,viewTagLocators:null,userFeatureDefs:null,apiModules:null,changeAppliers:null,deciders:null,eventImplementations:null,viewTriggers:null}),t.ResourceTimingAttributes=r({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,serverTiming:null}),t.RUMPerformanceTimingAttributes=r({blockTime:null}),t.AttributionTypes=r({FIRST_TOUCH:null,LAST_TOUCH:null}),t.SandboxedFunctions=r({XMLHttpRequest:null}),t.PerformanceData=r({performance_marks:null,resource_timing:null,performance_timing:null}),t.PerformanceCounters=r({mutation_observer_invocation:null,polling_invocation:null,match_selector_invocation:null}),t.VisitorStorageKeys={EVENTS:"events",EVENT_QUEUE:"event_queue",LAYER_MAP:"layer_map",LAYER_STATES:"layer_states",SESSION_STATE:"session_state",VISITOR_PROFILE:"visitor_profile",VARIATION_MAP:"variation_map",TRACKER_OPTIMIZELY:"tracker_optimizely"},t.AllStorageKeys=i.assign({},t.StorageKeys,t.VisitorStorageKeys),t.ListTargetingKeyTypes={COOKIE:"c",QUERY:"q",JS_VARIABLE:"j"},t.VisitorIdLocatorType={COOKIE:"cookie",JS_VARIABLE:"js",LOCALSTORAGE:"localStorage",QUERY:"query"}}),(function(e,t,n){function i(e){var t=[Array.prototype],n=[];r.each(t,(function(e){r.isUndefined(e.toJSON)||(n.push(e.toJSON),delete e.toJSON)}));var i,a;try{i=e()}catch(e){a=e}finally{r.each(n,(function(e,n){t[n].toJSON=e}))}if(a)throw a;return i}var r=n(2);t.stringify=function(){return i(r.bind((function(){return JSON.stringify.apply(null,this)}),arguments))},t.parse=JSON.parse}),(function(e,t,n){var i=n(7);e.exports={initialize:function(){this.P={},this.on(i.REGISTER_ASYNC_DEFERRED,this.Y),this.on(i.RESOLVE_DEFERRED,this.K),this.on(i.REJECT_DEFERRED,this.q)},getRequest:function(e){return this.P[e]},getPromise:function(e){var t=this.getRequest(e);if(t)return t.promise},Y:function(e){this.P[e.source]={promise:e.promise,resolver:e.resolver,rejecter:e.rejecter}},K:function(e){var t=this.getRequest(e.source);if(!t)throw new Error("No request registered for source: "+e.source);t.resolver(e.resolveWith)},q:function(e){var t=this.getRequest(e.source);if(!t)throw new Error("No request registered for source: "+e.source);if(!t.rejecter)throw new Error("No rejecter registered for source: "+e.source);t.rejecter(e.rejectWith)}}}),(function(e,t,n){function i(e,t){return t||(t={}),e?(r.each(e,(function(e){if(!r.isString(e)){if(r.isObject(e)){var n=e.type,a=e.name||"_";t[n]||(t[n]={}),t[n][a]=!0}r.isArray(e)&&i(e,t)}})),t):t}var r=n(2),a=n(7),o=n(22);e.exports={initialize:function(){this.P={audiences:{},featuresNeeded:{}},this.on(a.DATA_LOADED,this.F)},F:function(e){r.isEmpty(e.data.audiences)||(r.each(e.data.audiences,r.bind((function(e){o.deepFreeze(e),r.merge(this.P.featuresNeeded,i(e.conditions)),this.P.audiences[e.id]=e}),this)),this.emitChange())},getAll:function(){return o.safeReference(r.values(this.P.audiences))},getFeaturesNeeded:function(e){return o.safeReference(this.P.featuresNeeded[e]||{})},getAudiencesMap:function(){return o.safeReference(this.P.audiences)},get:function(e){return o.safeReference(this.P.audiences[e])},getAudienceName:function(e){var t=r.find(r.values(this.P.audiences),{id:e});return t.name||"Aud "+e}}}),(function(e,t,n){var i=n(2),r=n(7),a=n(22);e.exports={initialize:function(){this.P={},this.on(r.ADD_CHANGE,this.W),this.on(r.DATA_LOADED,this.F)},getChange:function(e){return this.P[e]},F:function(e){i.isEmpty(e.data.changes)||i.each(e.data.changes,i.bind(this.W,this))},W:function(e){a.deepFreeze(e),this.P[e.id]=e,this.emitChange()}}}),(function(e,t,n){var i=n(2),r=n(7),a=n(25);e.exports={initialize:function(){this.P={},i.each(a.Lifecycle,i.bind((function(e){this.P[e]=[]}),this)),this.on(r.ADD_CLEANUP_FN,this.X),this.on(r.CLEAR_CLEANUP_FN,this.Q)},getCleanupFns:function(e){return i.cloneDeep(this.P[e])},X:function(e){this.P[e.lifecycle].push(e.cleanupFn),this.emitChange()},Q:function(e){var t=this.P[e.lifecycle];if(e.cleanupFn){var n=t.indexOf(e.cleanupFn);n>-1&&(t.splice(n,1),this.emitChange())}else this.P[e.lifecycle]=[],this.emitChange()}}}),(function(e,t,n){var i=n(7),r=n(32);e.exports={initialize:function(){this.P={name:r.NAME,version:r.VERSION},this.on(i.SET_CLIENT_NAME,this.J),this.on(i.SET_CLIENT_VERSION,this.Z)},getClientName:function(){return this.P.name},getClientVersion:function(){return this.P.version},J:function(e){e&&(this.P.name=e),this.emitChange()},Z:function(e){e&&(this.P.version=e),this.emitChange()}}}),(function(e,t,n){t.VERSION="0.171.0",t.NAME="js"}),(function(e,t,n){var i=n(7),r=15552e3,a=!0;e.exports={initialize:function(){this.P={currentDomain:null,defaultAgeSeconds:r,autoRefresh:a},this.on(i.SET_COOKIE_DOMAIN,this.ee),this.on(i.SET_COOKIE_AGE,this.te),this.on(i.SET_COOKIE_AUTO_REFRESH,this.ne)},getCurrentDomain:function(){return this.P.currentDomain},getDefaultAgeInSeconds:function(){return this.P.defaultAgeSeconds},getAutoRefresh:function(){return this.P.autoRefresh},ee:function(e){this.P.currentDomain=e,this.emitChange()},te:function(e){this.P.defaultAgeSeconds=e,this.emitChange()},ne:function(e){this.P.autoRefresh=e,this.emitChange()}}}),(function(e,t,n){var i=n(2),r=n(7),a=n(22);e.exports={initialize:function(){this.P={},this.on(r.DATA_LOADED,this.F)},getAll:function(){return a.safeReference(i.values(this.P))},getEventsMap:function(){return a.safeReference(this.P)},get:function(e){return a.safeReference(this.P[e])},getByApiName:function(e){return a.safeReference(i.find(i.values(this.P),{apiName:e}))},getByPageId:function(e){return a.safeReference(i.filter(this.P,{pageId:e}))},F:function(e){i.isEmpty(e.data.events)||(i.each(e.data.events,i.bind((function(e){e.pageId||(e.pageId=e.viewId),a.deepFreeze(e),this.P[e.id]=e}),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(o),e.type&&e.name&&t.push(e.name),t.join("")):o}var r=n(2),a=n(7),o="|";e.exports={initialize:function(){this.P={handlers:{}},this.on(a.ADD_EMITTER_HANDLER,this.re),this.on(a.REMOVE_EMITTER_HANDLER,this.ae)},getHandlers:function(e,t){var n=[null,{type:e.type},{type:e.type,name:e.name}],a=[];return r.each(n,r.bind((function(e){var t=i(e),n=this.P.handlers[t];n&&(a=a.concat(n))}),this)),t&&(a=r.filter(a,(function(e){return!e.publicOnly}))),a},re:function(e){var t=i(e.filter);this.P.handlers[t]||(this.P.handlers[t]=[]),this.P.handlers[t].push({handler:e.handler,token:e.token,publicOnly:!!e.publicOnly,emitErrors:!!e.emitErrors}),this.emitChange()},ae:function(e){var t=!1,n=e.token;r.forOwn(this.P.handlers,r.bind((function(e,i){var a=r.filter(e,(function(e){return e.token!==n}));a.length!==e.length&&(t=!0,this.P.handlers[i]=a)}),this)),t&&this.emitChange()}}}),(function(e,t,n){var i=n(2),r=n(7),a=n(22);e.exports={initialize:function(){this.P={},this.on(r.DATA_LOADED,this.F)},F:function(e){i.isEmpty(e.data.dimensions)||(i.each(e.data.dimensions,i.bind((function(e){a.deepFreeze(e),this.P[e.id]=e}),this)),this.emitChange())},getAll:function(){return a.safeReference(i.values(this.P))},getById:function(e){return a.safeReference(this.P[e])},getByApiName:function(e){return a.safeReference(i.find(i.values(this.P),{apiName:e}))}}}),(function(e,t,n){var i=n(2),r=n(7);e.exports={initialize:function(){this.P={disabled:!1,forceAudienceIds:[],forceVariationIds:[],alreadyInitialized:!1,mutationObserverAPISupported:!1,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.oe)},getAll:function(){return i.cloneDeep(this.P)},conflictInObservingChanges:function(){return!this.P.mutationObserverAPISupported},isDisabled:function(){return this.P.disabled},isEditor:function(){return this.P.isEditor},clientHasAlreadyInitialized:function(){return this.P.alreadyInitialized},getForceAudienceIds:function(){return this.P.forceAudienceIds},getForceVariationIds:function(){return this.P.forceVariationIds},getPreviewLayerIds:function(){return this.P.previewLayerIds},getProjectToken:function(){return this.P.projectToken},getForceTracking:function(){return this.P.forceTracking},shouldActivate:function(){return!this.P.isEditor&&!this.isDisabled()},shouldBootstrapDataForPreview:function(){return this.P.isPreview},shouldBootstrapDataForEditor:function(){return this.P.isEditor},shouldInitialize:function(){return!(this.shouldLoadPreview()||this.isDisabled()||this.getProjectToken())},shouldLoadPreview:function(){return!(this.P.isPreview||this.P.isLegacyPreview||!this.getProjectToken()||this.P.isEditor)},shouldBailForDesktopApp:function(){return!this.P.isEditor&&this.P.isRunningInDesktopApp},shouldLoadInnie:function(){return!this.P.isSlave&&!this.P.isEditor&&this.P.isRunningInV2Editor},shouldObserveChangesIndefinitely:function(){return this.P.mutationObserverAPISupported},shouldObserveChangesUntilTimeout:function(){return!this.shouldObserveChangesIndefinitely()},shouldOptOut:function(){return this.P.shouldOptOut},shouldSendTrackingData:function(){return!this.P.trackingDisabled&&(!!this.P.forceTracking||!this.P.isPreview&&i.isEmpty(this.getForceVariationIds())&&i.isEmpty(this.getForceAudienceIds()))},isSlave:function(){return this.P.isSlave},isRunningInDesktopApp:function(){return this.P.isRunningInDesktopApp},isRunningInV2Editor:function(){return this.P.isRunningInV2Editor},oe:function(e){i.extend(this.P,e),this.emitChange()}}}),(function(e,t,n){var i=n(2),r=n(7),a=n(22);e.exports={initialize:function(){this.P={holdback:0,isGlobalHoldback:null,listTargetingKeys:[],revision:null,projectId:null,accountId:null,namespace:null,activationId:null,activationTimestamp:null,dcpServiceId:null,dcpKeyfieldLocators:[],recommenderServices:[],anonymizeIP:null,projectJS:null,snippetId:null,plugins:[],domContentLoaded:!1,experimental:{}},this.on(r.DATA_LOADED,this.se),this.on(r.ACTIVATE,this.ue),this.on(r.RECORD_GLOBAL_DECISION,this.ce),this.on(r.SET_DOMCONTENTLOADED,this.le)},getRevision:function(){return this.P.revision},getGlobalHoldbackThreshold:function(){return this.P.holdback},getProjectId:function(){return this.P.projectId},getSnippetId:function(){return this.P.snippetId},getAccountId:function(){return this.P.accountId},getNamespace:function(){return this.P.namespace},getActivationId:function(){return this.P.activationId},getActivationTimestamp:function(){return this.P.activationTimestamp},getAnonymizeIP:function(){return this.P.anonymizeIP},isGlobalHoldback:function(){return!!this.P.isGlobalHoldback},getListTargetingKeys:function(){return this.P.listTargetingKeys.slice()},getDCPServiceId:function(){return this.P.dcpServiceId},getDCPKeyfieldLocators:function(){return this.P.dcpKeyfieldLocators},getRecommenderServices:function(){return this.P.recommenderServices},getProjectJS:function(){return this.P.projectJS},getPlugins:function(){return this.P.plugins},getExperimental:function(){return a.safeReference(this.P.experimental)},domContentLoadedHasFired:function(){return this.P.domContentLoaded},ue:function(e){this.P.activationId=e.activationId,this.P.activationTimestamp=e.activationTimestamp,this.P.isGlobalHoldback=null},ce:function(e){var t=e.isGlobalHoldback;if(null!==this.P.isGlobalHoldback&&this.P.isGlobalHoldback!==t)throw new Error("Attempted to change already set global holdback!");this.P.isGlobalHoldback=t,this.emitChange()},se:function(e){var t=i.pick(e.data,["holdback","accountId","projectId","snippetId","namespace","revision","listTargetingKeys","dcpServiceId","dcpKeyfieldLocators","recommenderServices","anonymizeIP","plugins","projectJS","experimental"]);if(0!==i.keys(t).length){var n={listTargetingKeys:[],dcpServiceId:null,dcpKeyfieldLocators:[]};i.extend(this.P,n,t),this.emitChange()}},le:function(){this.P.domContentLoaded=!0,this.emitChange()}}}),(function(e,t,n){var i=n(2),r=n(7),a=n(40);e.exports={initialize:function(){this.P={originalPushState:null,originalReplaceState:null},this.on(r.ENSURE_ORIGINAL_PUSHSTATE,this.de),this.on(r.ENSURE_ORIGINAL_REPLACESTATE,this.fe)},getOriginalPushState:function(){return this.P.originalPushState},getOriginalReplaceState:function(){return this.P.originalReplaceState},de:function(){this.P.originalPushState||(this.P.originalPushState=i.bind(a.getGlobal("history").pushState,a.getGlobal("history")))},fe:function(){this.P.originalReplaceState||(this.P.originalReplaceState=i.bind(a.getGlobal("history").replaceState,a.getGlobal("history")))}}}),(function(e,t,n){var i=n(2),r=n(23);t.getUserAgent=function(){return window.navigator.userAgent},t.getLocationSearch=function(){return window.location.search},t.getNavigatorLanguage=function(){return window.navigator.language||window.navigator.userLanguage},t.getHref=function(){return window.location.href},t.getLocation=function(){return window.location},t.setLocation=function(e){window.location.replace(e)},t.setGlobal=function(e,t){window[e]=t},t.getGlobal=function(e){return window[e]},t.getGlobalByPath=function(e){for(var t=e.split("."),n=window;t.length;)try{n=n[t.shift()]}catch(t){throw r.error("Attempted to access nonexistent property. Path ",e),new Error("Attempted to access nonexistent property. Path ",e)}return n},t.addEventListener=function(){return window.addEventListener.apply(window,arguments)},t.removeEventListener=function(){return window.removeEventListener.apply(window,arguments)},t.isMutationObserverAPISupported=function(){return!i.isUndefined(window.MutationObserver)},t.alert=function(e){alert(e)},t.setTimeout=function(e,t){return setTimeout((function(){try{e()}catch(e){r.warn("Deferred function threw error:",e)}}),t)},t.setInterval=function(e,t){return setInterval((function(){try{e()}catch(e){r.warn("Polling function threw error:",e)}}),t)}}),(function(e,t,n){var i=n(2),r=n(7);e.exports={initialize:function(){this.P={},this.on(r.DATA_LOADED,this.F),this.on(r.SET_INTEGRATION_SETTINGS,this.pe)},F:function(e){i.isEmpty(e.data.integrationSettings)||(i.each(e.data.integrationSettings,i.bind((function(e){this.P[e.id]=e}),this)),this.emitChange())},pe:function(e){var t=this.P[e.id];t?i.extend(t,e):this.P[e.id]=e},getAll:function(){return i.cloneDeep(i.values(this.P))},get:function(e){return i.cloneDeep(this.P[e])},getReference:function(e){return this.P[e]}}}),(function(e,t,n){var i=n(2),r=n(7),a=n(23),o="*";e.exports={initialize:function(){this.P={},this.on(r.LOAD_PERSISTED_LAYER_STATES,this.he),this.on(r.RECORD_LAYER_DECISION,this.ge),this.on(r.RECORD_LAYER_DECISION_EVENT_ID,this.ve)},getLayerState:function(e,t){if(this.P[e]){var n=this.P[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,{pageId:t})):i.cloneDeep(n[o])}},getLayerStates:function(e){var t=[];for(var n in this.P)i.forEach(this.P[n],(function(n){(i.isUndefined(e)||n.namespace===e)&&t.push(i.cloneDeep(n))}));return t},getLayerStatesForAnalytics:function(){var e=[];for(var t in this.P)i.forEach(this.P[t],(function(t){e.push(i.pick(t,["layerId","decision","decisionEventId"]))}));return e},he:function(e){e.merge||(this.P={}), i.each(e.layerStates,i.bind((function(e){var t=e.layerId;e.pageId||(e.pageId=e.viewId);var n=e.pageId||o,r=this.P[t];if(i.isUndefined(r))this.P[t]={},this.P[t][n]=e;else{var a=r[n];(!a||e.decisionTimestamp>(a.decisionTimestamp||0))&&(this.P[t][n]=e)}}),this)),this.emitChange()},ge:function(e){var t={layerId:e.layerId,revision:e.revision,namespace:e.namespace,pageId:e.pageId,decisionTicket:e.decisionTicket,decision:e.decision,decisionActivationId:e.activationId,decisionTimestamp:e.timestamp,decisionEventId:null},n=this.P[e.layerId]||{};e.pageId?(delete n[o],n[e.pageId]=t):(n={},n[o]=t),this.P[e.layerId]=n,this.emitChange()},ve:function(e){var t=e.layerId,n=e.pageId||o;return this.P[t]?this.P[t][n]?(this.P[t][n].decisionEventId=e.decisionId,void this.emitChange()):void a.warn("Not recording decision event: Layer state not found for view",n):void a.warn("Not recording decision event: Campaign not registered",t)}}}),(function(e,t,n){var i=n(2),r=n(7),a=n(22),o=n(44);e.exports={initialize:function(){this.P={layers:{},experiments:{},variations:{}},this.on(r.DATA_LOADED,this.F)},F:function(e){if(!i.isEmpty(e.data.layers)){var t=this;i.each(e.data.layers,(function(e){i.each(e.experiments,(function(n){e.pageIds||(e.pageIds=e.viewIds),n.campaignName||o.isSingleExperimentPolicy(e.policy)?o.isSingleExperimentPolicy(e.policy)&&e.groupId&&(n.groupId=e.groupId):n.campaignName=e.name,i.each(n.variations,(function(e){i.each(e.actions,(function(e){e.pageId||(e.pageId=e.viewId)})),t.P.variations[e.id]=e})),t.P.experiments[n.id]=n})),a.deepFreeze(e),t.P.layers[e.id]=e})),this.emitChange()}},getAll:function(){return a.safeReference(i.values(this.P.layers))},getCampaignsMap:function(){return a.safeReference(this.P.layers)},getExperimentsMap:function(){return a.safeReference(this.P.experiments)},getVariationsMap:function(){return a.safeReference(this.P.variations)},getCount:function(){return i.keys(this.P.layers).length},getAllByPageIds:function(e){return a.safeReference(i.filter(this.P.layers,(function(t){return i.some(e,i.partial(i.includes,t.pageIds))})))},get:function(e){return a.safeReference(this.P.layers[e])},getLayerByExperimentId:function(e){var t=i.find(this.P.layers,(function(t){return i.find(t.experiments,{id:e})}));return a.safeReference(t)},getExperimentByVariationId:function(e){var t;return i.some(this.P.layers,(function(n){return i.some(n.experiments,(function(n){return i.find(n.variations,{id:e})&&(t=n),t})),t})),a.safeReference(t)}}}),(function(e,t){var n="single_experiment",i="multivariate";t.isSingleExperimentPolicy=function(e){return e===n||e===i}}),(function(e,t,n){var i=n(7);e.exports={initialize:function(){this.P={logs:[]},this.on(i.LOG,this.me)},getLogs:function(){return this.P.logs},me:function(e){this.P.logs.push(e),this.emitChange()},w:function(){return this.P.logs.slice()}}}),(function(e,t,n){var i=n(7),r=n(22);e.exports={initialize:function(){this.P={data:null,hasTracked:null},this.on(i.LOAD_REDIRECT_DATA,this._e),this.on(i.REGISTER_TRACKED_REDIRECT_DATA,this.Ee)},get:function(){return r.safeReference(this.P.data)},hasTracked:function(){return this.P.hasTracked},_e:function(e){r.deepFreeze(e),this.P.data=e,this.P.hasTracked=!1,this.emitChange()},Ee:function(){this.P.hasTracked=!0}}}),(function(e,t,n){var i=n(2),r=n(7),a=n(26),o=1e3;e.exports={initialize:function(){this.P={},this.on(r.SET_PENDING_EVENT,this.ye),this.on(r.REMOVE_PENDING_EVENT,this.Ie),this.on(r.LOAD_PENDING_EVENTS,this.Se)},getEvents:function(){return this.P},getEventsString:function(){return a.stringify(this.P)},ye:function(e){i.keys(this.P).length>=o&&this.Te();var t=e.id,n=e.retryCount;this.P[t]&&this.P[t].retryCount===n||(this.P[t]={id:t,timeStamp:e.timeStamp,data:e.data,retryCount:n},this.emitChange())},Ie:function(e){delete this.P[e.id],this.emitChange()},Se:function(e){this.P=e.events,this.Te(),this.emitChange()},Te:function(){for(var e=i.sortBy(this.P,"timeStamp"),t=0;t<=e.length-o;t++)delete this.P[e[t].id];this.emitChange()}}}),(function(e,t,n){var i=n(2),r=n(7),a=n(25);e.exports={initialize:function(){this.P={},this.P[a.PerformanceData.performance_marks]={},this.on(r.SET_PERFORMANCE_MARKS_DATA,this.Ae)},Ae:function(e){i.isUndefined(this.P[a.PerformanceData.performance_marks][e.name])&&(this.P[a.PerformanceData.performance_marks][e.name]=[]),this.P[a.PerformanceData.performance_marks][e.name].push(e.data),this.emitChange()},getMarks:function(){return i.mapValues(this.P[a.PerformanceData.performance_marks],(function(e){return i.map(e,(function(e){return[e.startTime,e.duration]}))}))},getDurationsFor:function(e){return i.reduce(e,i.bind((function(e,t){var n=this.P[a.PerformanceData.performance_marks][t];return n&&(e[t]=Math.round(i.reduce(n,(function(e,t){return e+t.duration}),0))),e}),this),{})}}}),(function(e,t,n){var i=n(2),r=n(7),a=n(25),o=n(23);e.exports={initialize:function(){this.P=i.mapValues(a.PluginTypes,(function(){return{}})),this.on(r.REGISTER_PLUGIN,this.be)},be:function(e){var t=e.type,n=e.name,i=e.plugin;if(!t||!n)throw new Error("Missing information needed to register plugins: "+t+":"+n);if(!this.P[t])throw new Error("Invalid plugin type specified: "+t);this.P[t][n]=i,o.debug("Plugin Store: Registering Plugin :",e)},getAllPlugins:function(e){if(e){if(this.P[e])return this.P[e];throw new Error("Invalid plugin type: "+e)}return this.P},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(2),r=n(7),a=n(19);e.exports={initialize:function(){this.P={},this.on(r.SET_VISITOR_ATTRIBUTE_PENDING,this.we)},getPendingAttributeValue:function(e){return e=i.isArray(e)?e.concat("pending"):[e,"pending"],a.getFieldValue(this.P,e)},we:function(e){a.setFieldValue(this.P,e.key,{pending:e.pending}),this.emitChange()}}}),(function(e,t,n){var i=n(2),r=n(7);e.exports={initialize:function(){this.P={layerId:null},this.on(r.ANNOUNCE_PENDING_REDIRECT,this._e)},isExpectingRedirect:function(){return i.isString(this.P.layerId)},getLayerId:function(){return this.P.layerId},_e:function(e){this.isExpectingRedirect()||(this.P.layerId=e.layerId,this.emitChange())}}}),(function(e,t,n){var i=n(2),r=n(7);e.exports={initialize:function(){this.P={inRumSample:!1,id:null,src:null,RumHost:null,data:{extras:{}},apis:{},DOMObservation:{},featuresNeeded:{}},this.on(r.SET_RUM_DATA,this.De),this.on(r.RECORD_API_USAGE,this.Re),this.on(r.INITIALIZE_CHANGE_METRICS,this.Ne),this.on(r.RECORD_ACTIVATION_TYPE_USAGE,this.Oe),this.on(r.RECORD_AUDIENCE_USAGE,this.Ce),this.on(r.RECORD_CHANGE_MACROTASK_RATE,this.xe),this.on(r.RECORD_CHANGE_OVERHEATED,this.Le),this.on(r.RECORD_CHANGE_TYPE_USAGE,this.Pe),this.on(r.RECORD_DOM_OBSERVATION_OCCURENCE,this.ke),this.on(r.RECORD_INTEGRATION_USAGE,this.Fe),this.on(r.RECORD_LAYER_FEATURE_USAGE,this.Ve),this.on(r.RECORD_LAYER_POLICY_USAGE,this.Me),this.on(r.RECORD_VIEW_FEATURE_USAGE,this.Ue),this.on(r.RECORD_VIEWS_INITIALLY_ACTIVATED_COUNT,this.Be),this.on(r.RECORD_VISITOR_ID_LOCATOR_USAGE,this.Ge),this.on(r.RECORD_VISITOR_ID_ERROR,this.je),this.on(r.RECORD_STICKY_BUCKETING_FEATURE,this.ze)},De:function(e){i.merge(this.P,e),this.emitChange()},Re:function(e){this.P.apis[e.methodName]||(this.P.apis[e.methodName]=0),this.P.apis[e.methodName]++,this.emitChange()},Ne:function(){i.isUndefined(this.P.data.extras.changeMacrotaskRate)&&(this.P.data.extras.changeMacrotaskRate=0),i.isUndefined(this.P.data.extras.numOverheatedChanges)&&(this.P.data.extras.numOverheatedChanges=0)},xe:function(e){i.isUndefined(this.P.data.extras.changeMacrotaskRate)&&(this.P.data.extras.changeMacrotaskRate=0),e.changeMacrotaskRate>this.P.data.extras.changeMacrotaskRate&&(this.P.data.extras.changeMacrotaskRate=e.changeMacrotaskRate),this.emitChange()},Le:function(){i.isUndefined(this.P.data.extras.numOverheatedChanges)&&(this.P.data.extras.numOverheatedChanges=0),this.P.data.extras.numOverheatedChanges++,this.emitChange()},ke:function(e){this.P.DOMObservation[e.counterName]||(this.P.DOMObservation[e.counterName]=0),this.P.DOMObservation[e.counterName]++,this.emitChange()},He:function(e,t,n){i.isUndefined(this.P.featuresNeeded[e])&&(this.P.featuresNeeded[e]={});var r=this.P.featuresNeeded[e];i.each(t,(function(e){r[e]||(r[e]={}),r[e][n]||(r[e][n]=!0)}))},Fe:function(e){this.He("integrations",e.integrations,e.layerId)},Pe:function(e){this.He("changeTypes",e.changeTypes,e.layerId)},Oe:function(e){this.He("activationTypes",[e.activationType],e.entityId),this.emitChange()},Ue:function(e){this.He("viewFeatures",e.featuresUsed,e.entityId),this.emitChange()},Ve:function(e){this.He("layerFeatures",[e.feature],e.entityId),this.emitChange()},Me:function(e){this.He("policy",[e.policy],e.layerId),this.emitChange()},Ce:function(e){this.He("audiences",e.audienceTypes,e.layerId),this.emitChange()},Be:function(e){this.P.data.extras.viewsInitiallyActivatedCount=e.viewsInitiallyActivatedCount,this.emitChange()},Ge:function(e){this.He("visitorIdLocatorType",[e.visitorIdLocatorType],e.entityId),this.emitChange()},je:function(e){this.P.data.extras.errorCustomVisitorId=e.isError,this.emitChange()},ze:function(e){this.He("stickyBucketing",[e.feature],e.id)},getSampleRum:function(){return this.P.inRumSample},getRumId:function(){return this.P.id},getRumHost:function(){return this.P.RumHost},getApiData:function(){return this.P.apis},getDOMObservationData:function(){return this.P.DOMObservation},getRumData:function(){return i.cloneDeep(this.P.data)},getScriptSrc:function(){return this.P.src},getFeaturesNeededData:function(){var e=this.P.featuresNeeded,t={};return i.forOwn(e,(function(e,n){var r=i.keys(e);i.isEmpty(r)||(t[n]={}),i.forEach(r,(function(r){t[n][r]=i.keys(e[r]).length}))})),t}}}),(function(e,t,n){var i=n(7);e.exports={initialize:function(){this.P={initialized:!1,natives:{}},this.on(i.SANDBOXED_FUNCTIONS_ADDED,this.Ye)},Ye:function(e){if(!e.sandboxedFunctions)throw new Error("No sandboxedFunctions found in payload");this.P.natives=e.sandboxedFunctions,this.P.initialized=!0,this.emitChange()},getAll:function(){return this.P.natives},get:function(e){if(!e)throw new Error("Missing name parameter");return this.P.natives[e]||null},isInitialized:function(){return this.P.initialized}}}),(function(e,t,n){var i=n(2),r=n(7),a=n(24),o=n(5),s=18e5;e.exports={initialize:function(){this.P={lastSessionTimestamp:0,sessionId:null},this.on(r.REFRESH_SESSION,this.Ke),this.on(r.LOAD_SESSION_STATE,this.qe)},getState:function(){return i.cloneDeep(this.P)},getSessionId:function(){return this.P.sessionId},qe:function(e){this.P.sessionId=e.sessionId,this.P.lastSessionTimestamp=e.lastSessionTimestamp,this.emitChange()},Ke:function(){var e=a.now(),t=this.P.lastSessionTimestamp;(!this.P.sessionId||e-t>s)&&(this.P.sessionId=o.generate()),this.P.lastSessionTimestamp=e,this.emitChange()}}}),(function(e,t,n){var i=n(2),r=n(7);e.exports={initialize:function(){this.We(),this.on(r.FINALIZE_BATCH_SNAPSHOT,this.Xe),this.on(r.REGISTER_PREVIOUS_BATCH,this.$e),this.on(r.REGISTER_TRACKER_VISITOR,this.Qe),this.on(r.REGISTER_TRACKER_EVENT,this.Je),this.on(r.REGISTER_TRACKER_DECISION,this.Ze),this.on(r.RESET_TRACKER_EVENTS,this.et),this.on(r.RESET_TRACKER_STORE,this.We),this.on(r.RESET_TRACKER_PREVIOUS_BATCHES,this.tt),this.on(r.SET_TRACKER_POLLING,this.nt),this.on(r.SET_TRACKER_BATCHING,this.it),this.on(r.SET_TRACKER_SEND_EVENTS,this.rt),this.on(r.SET_TRACKER_PERSISTABLE_STATE,this.ot),this.on(r.SET_TRACKER_DIRTY,this.st),this.on(r.UPDATE_TRACKER_VISITOR_ATTRIBUTES,this.ut)},getPersistableState:function(){return this.P.isDirty?this.hasEventsToSend()||this.hasPreviousBatchesToSend()?{data:this.P.data,decisions:this.P.decisions,decisionEvents:this.P.decisionEvents,previousBatches:this.P.previousBatches}:{}:null},ot:function(e){i.isEmpty(this.P.data)||i.isEmpty(e.data)||(this.Xe(),this.P.previousBatches.push(this.getEventBatch())),this.P.data=e.data||{},this.P.decisions=e.decisions||[],this.P.decisionEvents=e.decisionEvents||[],i.isEmpty(this.P.previousBatches)||i.isEmpty(e.previousBatches)?this.P.previousBatches=e.previousBatches||[]:this.P.previousBatches=this.P.previousBatches.concat(e.previousBatches),this.emitChange()},st:function(e){this.P.isDirty=e,this.emitChange()},Je:function(e){var t=this.ct();!i.isEmpty(t.snapshots)&&i.isEmpty(this.P.decisionEvents)||this.dt(),this.ft().events.push(e.event),this.P.decisions=e.decisions,this.st(!0)},Ze:function(e){this.P.decisionEvents.push(e.decisionEvent),this.P.decisions=e.decisions,this.st(!0)},Qe:function(e){i.isEmpty(this.P.data)?this.P.data=e.data:this.Xe(),this.P.data.visitors.push(e.visitor),this.P.decisions=e.decisions,this.P.decisionEvents=[],this.st(!0)},$e:function(e){this.P.previousBatches.push(e),this.st(!0)},We:function(){this.P={polling:!1,shouldBatch:!0,data:{},decisions:[],decisionEvents:[],canSend:!1,isDirty:!1,previousBatches:[]},this.emitChange()},et:function(){var e=this.ct();this.P.data.visitors=[e],e.snapshots=[],this.st(!0)},tt:function(){this.P.previousBatches=[],this.st(!0)},nt:function(e){this.P.polling=e,this.emitChange()},it:function(e){this.P.shouldBatch=e,this.emitChange()},rt:function(e){this.P.canSend=e,this.emitChange()},getEventBatch:function(){return i.cloneDeep(this.P.data)},getPreviousBatches:function(){return i.cloneDeep(this.P.previousBatches)},pt:function(){return this.P.decisionEvents.slice()},ht:function(){this.P.decisionEvents=[]},vt:function(){return this.P.decisions.slice()},isPolling:function(){return this.P.polling},shouldBatch:function(){return this.P.shouldBatch},ft:function(){return i.last(this.ct().snapshots)},ct:function(){return i.last(this.P.data.visitors)},dt:function(){var e=this.pt(),t=this.ct();t.snapshots.push({decisions:this.vt(),events:e}),this.ht(),this.st(!0)},Xe:function(){this.P.decisionEvents.length>0&&this.dt()},hasEventsToSend:function(){if(!i.isEmpty(this.P.decisionEvents))return!0;if(!i.isEmpty(this.P.data)){var e=i.some(this.P.data.visitors||[],(function(e){return e.snapshots.length>0}));if(e)return!0}return!1},hasPreviousBatchesToSend:function(){return!i.isEmpty(this.P.previousBatches)},canSend:function(){return this.P.canSend},ut:function(e){var t=this.ct();t&&(t.attributes=e.attributes)}}}),(function(e,t,n){var i=n(2),r=n(7);e.exports={initialize:function(){this.P={},this.on(r.SET_UA_DATA,this.F)},F:function(e){i.isEmpty(this.P)&&(this.P=e.data)},get:function(){return i.cloneDeep(this.P)}}}),(function(e,t,n){var i=n(2),r=n(7),a=n(23),o=!1,s={globalTags:{},viewStates:{},shouldBatch:!1};e.exports={initialize:function(){this.P=i.cloneDeep(s),this.on(r.REGISTER_VIEWS,this.mt),this.on(r.SET_VIEW_ACTIVE_STATE,this._t),this.on(r.UPDATE_PARSED_VIEW_METADATA,this.Et),this.on(r.UPDATE_USER_SUPPLIED_METADATA,this.yt),this.on(r.TRACK_VIEW_ACTIVATED_EVENT,this.It),this.on(r.SET_GLOBAL_TAGS,this.St),this.on(r.RESET_VIEW_STATES,this.Tt),this.on(r.SET_VIEW_BATCHING,this.it)},getAll:function(){var e={};for(var t in this.P.viewStates)e[t]=this.getViewState(t);return e},shouldBatch:function(){return this.P.shouldBatch},getViewState:function(e){var t=i.cloneDeep(this.P.viewStates[e]),n=this.P.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.P.viewStates[e]?this.P.viewStates[e].activationEventId:null},getActiveViewStates:function(){return i.reduce(this.P.viewStates,i.bind((function(e,t,n){return this.isViewActive(n)&&e.push(this.getViewState(n)),e}),this),[])},isViewActive:function(e){var t=this.P.viewStates[e];return t||a.warn("No Page registered with id",e),!!t.isActive},getGlobalTags:function(){return i.cloneDeep(this.P.globalTags)},Tt:function(){this.P.viewStates={},this.emitChange()},mt:function(e){i.each(e.views,i.bind((function(e){var t=e.id;o&&this.P.viewStates[t]||(this.P.viewStates[t]={id:t,isActive:i.isBoolean(e.isActive)?e.isActive:null,activatedTimestamp:null,activationEventId:null,parsedMetadata:{},userSuppliedMetadata:{}})}),this)),this.emitChange()},_t:function(e){var t=e.view.id;if(!this.P.viewStates[t])throw new Error("No view exists with id "+t);this.P.viewStates[t].isActive=e.isActive,e.isActive?this.P.viewStates[t].activatedTimestamp=e.timestamp:(this.P.viewStates[t].parsedMetadata={},this.P.viewStates[t].userSuppliedMetadata={}),this.emitChange()},Et:function(e){var t=e.pageId;if(!this.P.viewStates[t])throw new Error("No view exists with id "+t);i.assign(this.P.viewStates[t].parsedMetadata,e.metadata),this.emitChange()},yt:function(e){var t=e.pageId;if(!this.P.viewStates[t])throw new Error("No view exists with id "+t);i.assign(this.P.viewStates[t].userSuppliedMetadata,e.metadata),this.emitChange()},It:function(e){var t=e.pageId;this.P.viewStates[t]&&(this.P.viewStates[t].activationEventId=e.eventData.eventId,this.emitChange())},St:function(e){i.extend(this.P.globalTags,e),this.emitChange()},it:function(e){this.P.shouldBatch=e,this.emitChange()}}}),(function(e,t,n){var i=n(2),r=n(7),a=n(22);e.exports={initialize:function(){this.P={views:{},apiNamesToViews:{}},this.on(r.DATA_LOADED,this.F)},getAll:function(){return a.safeReference(i.values(this.P.views))},getPagesMap:function(){return a.safeReference(this.P.views)},get:function(e){return a.safeReference(this.P.views[e])},getByApiName:function(e){return a.safeReference(this.P.apiNamesToViews[e])},apiNameToId:function(e){var t=this.P.apiNamesToViews[e];if(t)return t.id},idToApiName:function(e){var t=this.P.views[e];if(t)return t.apiName},getNumberOfPages:function(){return i.keys(this.P.views).length},getAllViewsForActivationType:function(e){return i.filter(this.P.views,{activationType:e})},F:function(e){i.isEmpty(e.data.views)||(i.each(e.data.views,i.bind((function(e){a.deepFreeze(e),this.P.views[e.id]=e,this.P.apiNamesToViews[e.apiName]=e}),this)),this.emitChange())}}}),(function(e,t,n){var i=n(2),r=n(7),a=n(19);e.exports={initialize:function(){this.P={profile:{},metadata:{},visitorId:null},this.on(r.SET_VISITOR_ID_VIA_API,this.At),this.on(r.SET_VISITOR_ATTRIBUTES,this.bt),this.on(r.LOAD_EXISTING_VISITOR_PROFILE,this.wt)},getVisitorProfile:function(){return this.P.profile},getVisitorProfileMetadata:function(){return this.P.metadata},getAttribute:function(e){var t=this.P.profile;return i.cloneDeep(a.getFieldValue(t,e))},getAttributeMetadata:function(e){return i.cloneDeep(this.P.metadata[e])},getVisitorIdFromAPI:function(){return this.P.visitorId},wt:function(e){this.P.profile=e.profile,this.P.metadata=e.metadata,this.emitChange()},bt:function(e){i.each(e.attributes,i.bind((function(e){var t=e.key;a.setFieldValue(this.P.profile,t,e.value),e.metadata&&i.forOwn(e.metadata,i.bind((function(e,n){a.setFieldValue(this.P.metadata,t.concat(n),e)}),this))}),this)),this.emitChange()},At:function(e){this.P.visitorId=e,this.emitChange()}}}),(function(e,t,n){var i=n(2),r=n(7);e.exports={initialize:function(){this.P={},this.on(r.DATA_LOADED,this.Dt)},getCustomBehavioralAttributes:function(){return i.filter(this.P,(function(e){return!!e.rule_json}))},getVisitorAttribute:function(e){var t=i.values(this.P);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.P[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")},Dt:function(e){i.isEmpty(e.data.visitorAttributes)||(i.each(e.data.visitorAttributes,i.bind((function(e){this.P[e.id]=e}),this)),this.emitChange())}}}),(function(e,t,n){var i=(n(2),n(7));n(62).Event;e.exports={initialize:function(){this.P={events:[],foreignEvents:{},foreignEventQueues:{}},this.on(i.SET_VISITOR_EVENTS,this.F),this.on(i.SET_FOREIGN_VISITOR_EVENTS,this.Rt),this.on(i.SET_FOREIGN_VISITOR_EVENT_QUEUE,this.Nt)},getEvents:function(){return this.P.events},getForeignEvents:function(){return this.P.foreignEvents},getForeignEventQueues:function(){return this.P.foreignEventQueues},F:function(e){this.P.events=e,this.emitChange()},Rt:function(e){this.P.foreignEvents[e.key]=e.value},Nt:function(e){this.P.foreignEventQueues[e.key]=e.value}}}),(function(e,t,n){function i(e,t,n,i,r){this[o.FIELDS.NAME]=e,this[o.FIELDS.TYPE]=t,a.isString(n)&&n.trim().length>0&&(this[o.FIELDS.CATEGORY]=n),i&&a.keys(i).length>0&&(this[o.FIELDS.OPTIONS]=i),a.isUndefined(r)||(this[o.FIELDS.REVENUE]=r)}function r(e,t,n,i){this.eventBase=e,this[o.FIELDS.TIME]=t,a.isUndefined(n)||(this[o.FIELDS.SESSION_ID]=n),a.isUndefined(i)||(this[o.FIELDS.SESSION_INDEX]=i)}var a=n(2),o=n(63),s=n(19).getFieldValue,u=n(64);t.EventBase=i,i.prototype.digest=function(){var e=function(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(t)},t=[];if(t.push(e(o.FIELDS.NAME,this[o.FIELDS.NAME])),t.push(e(o.FIELDS.TYPE,this[o.FIELDS.TYPE])),this[o.FIELDS.CATEGORY]&&t.push(e(o.FIELDS.CATEGORY,this[o.FIELDS.CATEGORY])),this[o.FIELDS.REVENUE]&&t.push(e(o.FIELDS.REVENUE,this[o.FIELDS.REVENUE])),!this[o.FIELDS.OPTIONS])return t.join("&");var n=this[o.FIELDS.OPTIONS]||{},i=a.filter(a.keys(n),(function(e){return n.hasOwnProperty(e)}));i=i.sort();for(var r=0;r<i.length;r++)t.push(e(i[r],n[i[r]]));return t.join("&")},i.prototype.hash=function(){return this.hash_?this.hash_:(this.hash_=u.hashToHex(u.toByteString(this.digest()),u.Seed.BEHAVIOR_EVENT),this.hash_)},i.prototype.setHash=function(e){this.hash_=e},i.prototype.reHash=function(){this.hash_=null,this.hash()},i.prototype.equals=function(e){if(this.hash()!==e.hash())return!1;if(this[o.FIELDS.NAME]!==e[o.FIELDS.NAME]||this[o.FIELDS.TYPE]!==e[o.FIELDS.TYPE]||this[o.FIELDS.CATEGORY]!==e[o.FIELDS.CATEGORY]||this[o.FIELDS.REVENUE]!==e[o.FIELDS.REVENUE])return!1;if(!this[o.FIELDS.OPTIONS]&&!e[o.FIELDS.OPTIONS])return!0;var t=this[o.FIELDS.OPTIONS]||{},n=e[o.FIELDS.OPTIONS]||{},i=a.filter(a.keys(t),(function(e){return t.hasOwnProperty(e)})),r=a.filter(a.keys(n),(function(e){return n.hasOwnProperty(e)}));if(i.length!==r.length)return!1;for(var s=0;s<i.length;s++){var u=i[s];if(!n.hasOwnProperty(u)||t[u]!==n[u])return!1}return!0},i.prototype.getValueOrDefault=function(e,t){var n=s(this,e);return a.isUndefined(n)?t:n},i.prototype.setFieldValue=function(e,t){e!==o.FIELDS.NAME&&e!==o.FIELDS.TYPE&&e!==o.FIELDS.CATEGORY&&e!==o.FIELDS.REVENUE&&e!==o.FIELDS.OPTIONS||(this[e]=t,this.reHash())},t.Event=r,r.prototype.getValueOrDefault=function(e,t){if(0===e.length)return this;var n={};n[o.FIELDS.TIME]=this[o.FIELDS.TIME],n[o.FIELDS.SESSION_ID]=this[o.FIELDS.SESSION_ID],n[o.FIELDS.SESSION_INDEX]=this[o.FIELDS.SESSION_INDEX];var i=s(n,e);return a.isUndefined(i)?this.eventBase.getValueOrDefault(e,t):i},r.prototype.setFieldValue=function(e,t){e===o.FIELDS.TIME||e===o.FIELDS.SESSION_ID||e===o.FIELDS.SESSION_INDEX?this[e]=t:this.eventBase.setFieldValue(e,t)};var c={n:"name",y:"type",c:"category",r:"revenue",s:"session_id",o:"tags",si:"session_index"};r.prototype.readableEvent=function(){var e,t,n=function(e){return a.isString(e)?'"'+e+'"':e},i=this,r=[];a.each([o.FIELDS.NAME,o.FIELDS.TYPE,o.FIELDS.CATEGORY,o.FIELDS.REVENUE,o.FIELDS.SESSION_ID],(function(o){e=c[o],t=i.getValueOrDefault([o]),a.isUndefined(t)||r.push(e+": "+n(t))}));var s=[];if(e=c[o.FIELDS.OPTIONS],t=i.getValueOrDefault([o.FIELDS.OPTIONS]),a.isUndefined(t)||(a.each(t,(function(e,t){s.push(t+": "+String(n(e)))})),r.push(e+": {\n\t\t"+s.join(",\n\t\t")+"\n\t}")),t=i.getValueOrDefault([o.FIELDS.TIME]),a.isNumber(t)&&(t=n(new Date(t).toString())),!a.isUndefined(t)){var u="timestamp";r.push(u+": "+t)}return"{\n\t"+r.join(",\n\t")+"\n}"},r.prototype.toObject=function(e){var t,n,i={},r=this;a.each([o.FIELDS.NAME,o.FIELDS.TYPE,o.FIELDS.CATEGORY,o.FIELDS.REVENUE,o.FIELDS.OPTIONS,o.FIELDS.SESSION_INDEX],(function(e){t=c[e],n=r.getValueOrDefault([e],e===o.FIELDS.OPTIONS?{}:void 0),a.isUndefined(n)||(i[t]=n)}));var s=c[o.FIELDS.OPTIONS],u=c[o.FIELDS.REVENUE];if(e&&e.revenueAsTag&&i[u]&&(i[s]=i[s]||{},i[s][u]=i[u],delete i[u]),n=r.getValueOrDefault([o.FIELDS.TIME]),a.isNumber(n))if(e&&e.timeAsTimestamp){var l="timestamp";i[l]=new Date(n)}else{var d="time";i[d]=n}return i}}),(function(e,t){t.FIELDS={NAME:"n",TIME:"t",TYPE:"y",CATEGORY:"c",REVENUE:"r",SESSION_ID:"s",OPTIONS:"o",SESSION_INDEX:"si"},t.FIELDS_V0_2={name:t.FIELDS.NAME,time:t.FIELDS.TIME,type:t.FIELDS.TYPE,category:t.FIELDS.CATEGORY,tags:t.FIELDS.OPTIONS,session_index:t.FIELDS.SESSION_INDEX}}),(function(e,t,n){var i=n(65).v3,r={IGNORING:0,BUCKETING:1,FALLBACK:2,HOLDBACK:3,BEHAVIOR_EVENT:2716770798},a=Math.pow(2,32),o=function(e,t,n){return Math.floor(u(e,t)*n)},s=function(e,t){var n=i(e,t);return(n>>>16).toString(16)+(65535&n).toString(16)},u=function(e,t){var n=i(e,t);return(n>>>0)/a},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:o,hashToReal:u,toByteString:c}}),(function(e,t,n){!(function(){function t(e,t){for(var n,i=e.length,r=t^i,a=0;i>=4;)n=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<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,++a;switch(i){case 3:r^=(255&e.charCodeAt(a+2))<<16;case 2:r^=(255&e.charCodeAt(a+1))<<8;case 1:r^=255&e.charCodeAt(a),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,a,o,s,u,c;for(n=3&e.length,i=e.length-n,r=t,o=3432918353,s=461845907,c=0;c<i;)u=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,u=(65535&u)*o+(((u>>>16)*o&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,a=5*(65535&r)+((5*(r>>>16)&65535)<<16)&4294967295,r=(65535&a)+27492+(((a>>>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)*o+(((u>>>16)*o&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(7);e.exports={initialize:function(){this.P={baseMap:{},eventQueue:[],lastEvent:null,initialized:!1,cleared:!1},this.on(i.UPDATE_BEHAVIOR_STORE,this.Ot)},getBaseMap:function(){return this.P.baseMap},getEventQueue:function(){return this.P.eventQueue},getLastEvent:function(){return this.P.lastEvent},getCleared:function(){return this.P.cleared},getInitialized:function(){return this.P.initialized},Ot:function(e){this.P[e.key]=e.value}}}),(function(e,t,n){var i=n(2),r=n(7);e.exports={initialize:function(){this.P={randomId:null,visitorIdLocator:null},this.on(r.SET_VISITOR_ID,this.F),this.on(r.DATA_LOADED,this.Ct)},getBucketingId:function(){return this.getRandomId()},getRandomId:function(){return this.P.randomId},getVisitorIdLocator:function(){return this.P.visitorIdLocator},F:function(e){i.extend(this.P,e),this.emitChange()},Ct:function(e){i.isEmpty(e.data.visitorIdLocator)||(this.P.visitorIdLocator=e.data.visitorIdLocator,this.emitChange())}}}),(function(e,t,n){var i=n(2),r=n(7),a=n(26);e.exports={initialize:function(){this.P={variationIdMap:{},preferredLayerMap:{}},this.on(r.UPDATE_VARIATION_ID_MAP,this.xt),this.on(r.MERGE_VARIATION_ID_MAP,this.Lt),this.on(r.UPDATE_PREFERRED_LAYER_MAP,this.Pt),this.on(r.MERGE_PREFERRED_LAYER_MAP,this.kt)},getVariationIdMap:function(){return i.cloneDeep(this.P.variationIdMap)},getVariationIdMapString:function(){return a.stringify(this.P.variationIdMap)},xt:function(e){var t=this.P.variationIdMap,n=t[e.layerId]||{};n[e.experimentId]!==e.variationId&&(n[e.experimentId]=e.variationId,this.P.variationIdMap[e.layerId]=n,this.emitChange())},Lt:function(e){var t=this.getVariationIdMap(),n=e.variationIdMap;i.each(t||{},(function(e,t){n[t]?i.assign(n[t],e):n[t]=e})),this.P.variationIdMap=n,this.emitChange()},getPreferredLayerMap:function(){return i.cloneDeep(this.P.preferredLayerMap)},getPreferredLayerMapString:function(){return a.stringify(this.P.preferredLayerMap)},getPreferredLayerId:function(e){return this.P.preferredLayerMap[e]},Pt:function(e){this.P.preferredLayerMap[e.groupId]!==e.layerId&&(this.P.preferredLayerMap[e.groupId]=e.layerId,this.emitChange())},kt:function(e){var t=this.getPreferredLayerMap(),n=e.preferredLayerMap;i.assign(n,t),this.P.preferredLayerMap=n,this.emitChange()}}}),(function(e,t,n){var i=n(2),r=n(23),a=n(7),o=1e3;e.exports={initialize:function(){this.P={frames:[],defaultFrame:null,messages:[],subscribers:[],canonicalOrigins:null,disabled:!1},this.on(a.XDOMAIN_SET_DEFAULT_FRAME,this.Ft),this.on(a.XDOMAIN_ADD_FRAME,this.Vt),this.on(a.XDOMAIN_SET_MESSAGE,this.Mt),this.on(a.XDOMAIN_ADD_SUBSCRIBER,this.Ut),this.on(a.XDOMAIN_SET_CANONICAL_ORIGINS,this.Bt),this.on(a.XDOMAIN_SET_DISABLED,this.Gt)},getMessages:function(){return i.cloneDeep(this.P.messages)},getOffset:function(){return 0===this.P.messages.length?0:this.P.messages[0].data.id},getNextMessageId:function(){return this.P.messages.length+this.getOffset()},getMessageById:function(e){return this.P.messages[e-this.getOffset()]},getSubscribers:function(){return this.P.subscribers},getFrames:function(){return this.P.frames},getNextFrameId:function(){return this.P.frames.length},getDefaultFrame:function(){return this.P.defaultFrame},getCanonicalOrigins:function(){return i.cloneDeep(this.P.canonicalOrigins)},isDisabled:function(){return this.P.disabled},Ft:function(e){this.P.defaultFrame=e},Vt:function(e){this.P.frames.push(e)},Mt:function(e){for(this.P.messages[e.messageId-this.getOffset()]=e.message;this.P.messages.length>o;){var t=this.P.messages.shift();r.debug("XDomainStorage: Cleared old message: "+t.data.id)}},Ut:function(e){this.P.subscribers.push(e.subscriber)},Bt:function(e){this.P.canonicalOrigins=e.canonicalOrigins},Gt:function(e){this.P.disabled=e.disabled}}}),(function(e,t,n){var i=n(2),r=n(7),a=n(22);e.exports={initialize:function(){this.P={},this.on(r.DATA_LOADED,this.F)},F:function(e){i.isEmpty(e.data.groups)||(i.each(e.data.groups,i.bind((function(e){a.deepFreeze(e),this.P[e.id]=e}),this)),this.emitChange())},getAll:function(){return a.safeReference(i.values(this.P))},getGroupsMap:function(){return a.safeReference(this.P)},get:function(e){return a.safeReference(this.P[e])}}}),(function(e,t,n){var i=n(72);t.initializeStore=i.initialize,t.addEvent=i.addEvent,t.getEvents=i.getEvents,t.getEventCount=i.getEventCount}),(function(e,t,n){function i(e){y.dispatch(m.SET_VISITOR_EVENTS,e)}function r(e){y.dispatch(m.UPDATE_BEHAVIOR_STORE,{key:"baseMap",value:e})}function a(e){y.dispatch(m.UPDATE_BEHAVIOR_STORE,{key:"eventQueue",value:e})}function o(e){y.dispatch(m.UPDATE_BEHAVIOR_STORE,{key:"lastEvent",value:e})}function s(e){y.dispatch(m.UPDATE_BEHAVIOR_STORE,{key:"cleared",value:e})}function u(){y.dispatch(m.UPDATE_BEHAVIOR_STORE,{key:"initialized",value:!0})}function c(){return N.getEvents()}function l(){return O.getBaseMap()}function d(){return O.getEventQueue()}function f(){return O.getLastEvent()}function p(){return O.getCleared()}function h(){return O.getInitialized()}function g(){var e=c().concat(d()),t=!1;return e.length>x&&(e=e.slice(-x),t=!0),i(e),a([]),t}var v=n(2),m=n(7),_=n(24),E=n(73),y=n(9),I=n(23),S=n(74),T=t,A=n(62).Event,b=n(63),w=n(62).EventBase,D=n(89),R=n(16),N=R.get("stores/visitor_events"),O=R.get("stores/visitor_events_manager"),C={EVENTBASE:"eb",HASH:"h",TIMEBASE:"tb",TIMESTAMPS:"ts", DELTA:"d",INDEX:"i"},x=1e3;t.initialize=function(e,t){if(!h()){T.jt(e,t);var n=c();n.length>0&&o(n[n.length-1]);var i=d();i.length>0&&o(i[i.length-1]),u()}},t.addEvent=function(e){I.debug("Behavior store: adding event",e);var t=T.zt(e);o(t),a(d().concat(t)),D.reindexIfNecessary(f(),c(),d()),T.Ht(d())},t.getEvents=function(){return d().length>0&&(g()&&D.sessionize(c()),T.Yt(c()),T.Ht(d())),c()},t.getEventCount=function(){return d().length+c().length},T.jt=function(e,t){T.Kt(e,t)&&(T.Yt(c()),T.Ht(d())),D.sessionize(c())},T.Kt=function(e,t){if(0===e.length&&0===t.length)return i([]),a([]),!1;var n=!1,r=e[0]||t[0];return C.EVENTBASE in r?(i(T.qt(e)),a(T.qt(t))):(n=!0,i(T.Wt(e)),a(T.Wt(t))),d().length>0&&(g(),n=!0),i(T._updateBaseMapAndMaybeDedupe(c())),T._migrateEventBasesAndUpdateStore()&&(n=!0),n},T.Wt=function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n],r=T.Xt(i);t[n]=new A(r,i[b.FIELDS.TIME])}return t},T._migrateEventBasesAndUpdateStore=function(){var e=!1,t=T.$t();return D.applyMigrations(t)&&(e=!0,r({}),i(T._updateBaseMapAndMaybeDedupe(c())),a(T._updateBaseMapAndMaybeDedupe(d()))),e},T.Qt=function(){return _.now()},T.zt=function(e){var t,n=e.name,i=e.type||"default",r=e.category||E.OTHER,a=e.tags||{};e.revenue&&(t=e.revenue);var o=new w(n,i,r,a,t);o=T.Jt(o);var s=T.Qt(),u=new A(o,s,-1);return D.updateSessionId(f(),u),D.updateSessionIndex(f(),u),u},T._updateBaseMapAndMaybeDedupe=function(e){for(var t=0;t<e.length;t++)e[t].eventBase=T.Jt(e[t].eventBase);return e},T.Yt=function(e){var t=T.Zt(e);S.persistBehaviorEvents(t)},T.Ht=function(e){var t=T.Zt(e);S.persistBehaviorEventQueue(t)},T.en=function(){p()||(i([]),a([]),T.Yt(c()),T.Ht(d()),r({}),o(null),s(!0))},T.Jt=function(e){var t=e.hash(),n=l(),i=n[t];if(v.isUndefined(i))return n[t]=[e],r(n),e;for(var a=0;a<i.length;a++)if(e.equals(i[a]))return i[a];return i.push(e),r(n),e},T.$t=function(){var e=[],t=l();for(var n in t)t.hasOwnProperty(n)&&(e=e.concat(t[n]));return e},T.Zt=function(e){for(var t=function(e){var t={};t[b.FIELDS.NAME]=e.getValueOrDefault([b.FIELDS.NAME]),t[b.FIELDS.TYPE]=e.getValueOrDefault([b.FIELDS.TYPE]);var n=e.getValueOrDefault([b.FIELDS.CATEGORY]);v.isUndefined(n)||(t[b.FIELDS.CATEGORY]=n);var i=e.getValueOrDefault([b.FIELDS.REVENUE]);v.isUndefined(i)||(t[b.FIELDS.REVENUE]=i);var r=e.getValueOrDefault([b.FIELDS.OPTIONS]);return v.isUndefined(r)||(t[b.FIELDS.OPTIONS]=r),t},n=C,i=[],r="_idx_",a=0;a<e.length;a++){var o,s,u=e[a],c=u.eventBase;if(c.hasOwnProperty(r)){o=i[c[r]];var l=u[b.FIELDS.TIME]-(o[n.TIMEBASE]||0);s={},s[n.DELTA]=l,s[n.INDEX]=a,o[n.TIMESTAMPS].push(s)}else o={},o[n.EVENTBASE]=t(u),o[n.HASH]=c.hash(),o[n.TIMEBASE]=u[b.FIELDS.TIME],s={},s[n.DELTA]=0,s[n.INDEX]=a,o[n.TIMESTAMPS]=[s],i.push(o),c[r]=i.length-1}for(a=0;a<e.length;a++)delete e[a].eventBase[r];return i},T.Xt=function(e,t){var n=new w(e[b.FIELDS.NAME],e[b.FIELDS.TYPE],e[b.FIELDS.CATEGORY],e[b.FIELDS.OPTIONS],e[b.FIELDS.REVENUE]);return v.isUndefined(t)||n.setHash(t),n},T.qt=function(e){for(var t=C,n=[],i=0;i<e.length;i++)for(var r=e[i],a=T.Xt(r[t.EVENTBASE],r[t.HASH]),o=r[t.TIMEBASE],s=r[t.TIMESTAMPS],u=0;u<s.length;u++){var c=s[u],l=new A(a,o+c[t.DELTA]),d=c[t.INDEX];n[d]=l}return n},t.deserialize=function(e){return T.qt(e)},t.mergeAllEvents=function(e){var t=[].concat.apply([],e);return t.sort(D.sessionSortPredicate),D.sessionize(t),t}}),(function(e,t){e.exports={OTHER:"other"}}),(function(e,t,n){function i(){return c(j.LAYER_MAP)||{}}function r(e,t){R.dispatch(N.UPDATE_PREFERRED_LAYER_MAP,{groupId:e,layerId:t})}function a(){var e=Q.getPreferredLayerMapString();p(j.LAYER_MAP,e,!0)}function o(e){R.dispatch(N.SET_TRACKER_PERSISTABLE_STATE,e)}function s(e,t){function n(e,n){var i;t.attributionType&&(i=L.now()),R.dispatch(N.SET_VISITOR_ATTRIBUTES,{attributes:[{key:e,value:n,metadata:{lastModified:i}}]})}if(t.getter){var i=t.provides;if(D.isArray(i)||(i=[i]),!ee||!D.includes(["queryParams","url"],i[0])){var r=t.isSticky&&!D.isUndefined(V.getFieldValue(e,i));if(!r){var a;try{var o=P.evaluate(t.getter);D.isFunction(o)&&(o=o((function(){return V.getFieldValue(e,i)}),(function(e){n(i,e)}))),D.isUndefined(o)||(t.isAsync?(a=o.then((function(e){n(i,e)}),(function(e){U.warn('Failed to evaluate provider for "'+t.provides+'"; error was:',e)})),R.dispatch(N.SET_VISITOR_ATTRIBUTE_PENDING,{key:i,pending:a})):n(i,o))}catch(e){U.warn('Failed to evaluate getter for provider for "'+t.provides+'"; error was: '+e.message)}return a}}}}function u(){E(c(j.EVENTS)||[],c(j.EVENT_QUEUE)||[]);var e=f(j.LAYER_STATES);D.forEach(e,(function(e){e.item=D.map(e.item,d)})),y(l(e)),I(c(j.SESSION_STATE)||{}),A(c(j.VISITOR_PROFILE)||{});var n=c(j.TRACKER_OPTIMIZELY);n&&o(n),t.loadForeignData(),t.removeLegacySessionStateCookies()}function c(e){var t=h(e),n=M.getItem(t);return D.isString(n)&&(n=b(n)),n}function l(e){var t=[];return D.each(e,(function(e){D.each(e.item,(function(n){n.namespace=e.namespace,t.push(n)}))})),t}function d(e){var t;return t=e.layerId?e:{layerId:e.i,pageId:e.p,decisionTimestamp:e.t,decisionTicket:{audienceIds:e.a||[]},decision:{layerId:e.i,experimentId:e.x||null,variationId:e.v||null,isLayerHoldback:e.h||!1}}}function f(e){var t=$.getBucketingId(),n=[],i=t+"\\$\\$([^$]+?)\\$\\$"+e,r=new RegExp(i);return D.each(M.keys(),(function(e){var i=e.match(r);if(i){var a={namespace:i[1],userId:t,item:b(M.getItem(e))};n.push(a)}})),n}function p(e,t,n){try{var i=h(e);n||(t=F.stringify(t));try{M.setItem(i,t)}catch(e){throw U.warn("Visitor / Unable to set localStorage key, error was:",e),new Error("Unable to set localStorage")}w.setItem(i,t)}catch(e){U.warn("Unable to persist visitor data:",e.message)}}function h(e){var n=$.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 g(e,n){if(!$.getBucketingId())throw new Error("Cannot update local store because bucketingId not set");if(m(e)){var i=t.getStorageKeyFromKey(e);if(D.includes(j,i)){var r=h(i);if(!(e.indexOf(r)<=0)&&(n=b(n)))if(i===j.EVENT_QUEUE)R.dispatch(N.SET_FOREIGN_VISITOR_EVENT_QUEUE,{key:e,value:C.deserialize(n)});else if(i===j.EVENTS)R.dispatch(N.SET_FOREIGN_VISITOR_EVENTS,{key:e,value:C.deserialize(n)});else if(i===j.LAYER_STATES)R.dispatch(N.LOAD_PERSISTED_LAYER_STATES,{layerStates:D.map(n,d),merge:!0});else if(i===j.VARIATION_MAP)R.dispatch(N.MERGE_VARIATION_ID_MAP,{variationIdMap:n});else if(i===j.VISITOR_PROFILE){var a=["custom"],o=n;D.each(a,(function(e){var t=q.getPlugin(k.PluginTypes.visitorProfileProviders,e);if(t){if(o.profile&&o.metadata){var n=v(o,e,t.attributionType);if(!D.isEmpty(n)){var i=[];D.forOwn(n.data,(function(t,r){var a=n.metadata[r],o={key:[e,r],value:t,metadata:a};i.push(o)})),R.dispatch(N.SET_VISITOR_ATTRIBUTES,{attributes:i})}}}else U.debug("Attribute type",e,"not used by any audiences")}))}}}}function v(e,t,n){var i=J.getAttribute(t),r=J.getAttributeMetadata(t),a=e.profile[t],o=e.metadata[t];if(D.isEmpty(i))return{data:a,metadata:o};var s={};return D.forOwn(a,(function(e,t){var i;r&&r[t]&&(i=r[t].lastModified);var a;o&&o[t]&&(a=o[t].lastModified),(n===k.AttributionTypes.FIRST_TOUCH&&i>=a||n===k.AttributionTypes.LAST_TOUCH&&a>=i||D.isUndefined(i)&&a)&&(s.data=s.data||{},s.data[t]=e,a&&(s.metadata=s.metadata||{},s.metadata[t]=s.metadata[t]||{},s.metadata[t].lastModified=a))})),s}function m(e){var t=e.split("$$")[0];return t.indexOf("://")>0}function _(){var e=J.getVisitorProfile(),t=J.getVisitorProfileMetadata(),n=q.getAllPlugins(k.PluginTypes.visitorProfileProviders);if(n){var i=D.reduce(n,(function(e,t){return t.provides&&(e[t.provides]=t),e}),{});e=D.omitBy(e,(function(e,t){var n=i[t];return n&&n.isTransient}))}return{profile:e,metadata:t}}function E(e,t){O.initializeStore(e,t)}function y(e){R.dispatch(N.LOAD_PERSISTED_LAYER_STATES,{layerStates:D.filter(e,(function(e){return!!e.decision}))})}function I(e){e=D.extend({lastSessionTimestamp:0,sessionId:null},e),R.dispatch(N.LOAD_SESSION_STATE,e)}function S(e){var t,n=e.name;switch(e.type){case k.VisitorIdLocatorType.COOKIE:t=x.get(n);break;case k.VisitorIdLocatorType.JS_VARIABLE:t=z.getGlobalByPath(n);break;case k.VisitorIdLocatorType.LOCALSTORAGE:try{var i=z.getGlobal("localStorage");t=i.getItem(n)}catch(e){throw new Error("Unable to read localStorage: "+e.toString())}break;case k.VisitorIdLocatorType.QUERY:t=G.getQueryParamValue(n)}try{if(!t)throw U.error("Visitor / Customer provided visitor id cannot be found. Type:",e.type," Name:",n),new Error("Failure to obtain visitor id from "+e.type);if(!D.isString(t)&&!D.isNumber(t))throw U.error("Visitor / Customer provided visitor id is not a string or number. Type:",e.type," Name:",n," Id Type:",typeof t),new Error("Customer provided visitor id is not a string or number")}catch(e){throw W.getSampleRum()&&R.dispatch(N.RECORD_VISITOR_ID_ERROR,{isError:!0}),e}return W.getSampleRum()&&(R.dispatch(N.RECORD_VISITOR_ID_ERROR,{isError:!1}),R.dispatch(N.RECORD_VISITOR_ID_LOCATOR_USAGE,{visitorIdLocatorType:e.type,entityId:t})),String(t)}function T(){return"oeu"+L.now()+"r"+Math.random()}function A(e){var t,n,i=q.getAllPlugins(k.PluginTypes.visitorProfileProviders),r=D.filter(i,(function(e){return D.isFunction(e.restorer)}));e.profile&&e.metadata?(t=e.profile,n=e.metadata):(t=e,n={}),t=D.reduce(t,(function(e,t,n){var i=t,a=D.find(r,{provides:n});return a&&(i=a.restorer(t)),e[n]=i,e}),{}),R.dispatch(N.LOAD_EXISTING_VISITOR_PROFILE,{profile:t,metadata:n})}function b(e){try{return F.parse(e)}catch(t){return U.debug("Failed to parse: ",e,t),null}}var w,D=n(2),R=n(9),N=n(7),O=n(71),C=n(72),x=n(75),L=n(24),P=n(16),k=n(25),F=n(26),V=n(19),M=n(81).LocalStorage,U=n(23),B=n(12).Promise,G=n(84),j=n(25).VisitorStorageKeys,z=n(40);w=n(85);var H=P.get("stores/cookie_options"),Y=P.get("stores/global"),K=P.get("stores/layer"),q=P.get("stores/plugins"),W=P.get("stores/rum"),X=P.get("stores/session"),$=P.get("stores/visitor_id"),Q=P.get("stores/visitor_bucketing"),J=P.get("stores/visitor"),Z=P.get("stores/provider_status"),ee=!1;t.getOrGenerateId=function(){return{randomId:t.getCurrentId()||T()}},t.getCurrentId=function(){var e=$.getVisitorIdLocator();return J.getVisitorIdFromAPI()||(e?S(e):x.get(k.COOKIES.VISITOR_ID))},t.hasSomeData=function(){return M.keys().length>0},t.setId=function(e){var n=$.getBucketingId();R.dispatch(N.SET_VISITOR_ID,e),$.getBucketingId()!==n&&(u(),t.deleteOldLocalData(),w.deleteData(e));try{$.getVisitorIdLocator()||t.maybePersistVisitorId(e)}catch(e){if(U.error("Visitor / Unable to persist visitorId, disabling tracking"),R.dispatch(N.LOAD_DIRECTIVE,{trackingDisabled:!0}),e instanceof x.MismatchError)throw U.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 c(j.VARIATION_MAP)||{}},t.updateVariationIdMap=function(e,t,n){R.dispatch(N.UPDATE_VARIATION_ID_MAP,{layerId:e,experimentId:t,variationId:n})},t.persistVariationIdMap=function(){var e=Q.getVariationIdMapString();p(j.VARIATION_MAP,e,!0)},t.getPreferredLayerMap=i,t.updatePreferredLayerMap=r,t.persistTrackerOptimizelyData=function(e){p(j.TRACKER_OPTIMIZELY,e)},t.refreshSession=function(){R.dispatch(N.REFRESH_SESSION)},t.populateEagerVisitorData=function(e,n){var i=D.filter(e,(function(e){return!e.isLazy})),r=t.populateVisitorData(i,n);return r},t.populateLazyVisitorData=function(e,n){var i=D.filter(e,(function(e){return e.isLazy}));return t.populateVisitorData(i,n)},t.populateVisitorData=function(e,t){t=t||{};var n=D.partial(s,t),i=D(e).filter({isAsync:!0}).map(n).filter().value();return D.forEach(D.filter(e,(function(e){return!e.isAsync})),n),i.length>0?B.all(i):B.resolve()},t.persistBehaviorEvents=function(e){p(j.EVENTS,e)},t.persistBehaviorEventQueue=function(e){p(j.EVENT_QUEUE,e)},t.getPersistedBehaviorEventCount=function(){var e=c(j.EVENTS)||[],t=c(j.EVENT_QUEUE)||[];return C.deserialize(e).length+C.deserialize(t).length},t.persistLayerStates=function(){var e=K.getLayerStates(t.getNamespace());e=D.map(e,(function(e){return D.omit(e,"namespace")})),p(j.LAYER_STATES,e)},t.persistSessionState=function(){p(j.SESSION_STATE,X.getState())},t.persistVisitorProfile=function(){p(j.VISITOR_PROFILE,_())},t.persistVisitorBucketingStore=function(){t.persistVariationIdMap(),a()},t.getUserIdFromKey=function(e,n){var i;return D.includes(e,n)&&D.includes(e,"_")&&D.includes(e,"$$")&&D.includes(e.slice(e.indexOf("$$")),t.getNamespace())&&(i=e.slice(e.indexOf("_")+1,e.indexOf("$$"))),i},t.maybePersistVisitorId=function(e){e.randomId&&(H.getAutoRefresh()||t.getCurrentId()!==e.randomId?(x.set(k.COOKIES.VISITOR_ID,e.randomId),U.log("Persisting visitorId:",e.randomId)):U.log("Not persisting visitorId: value is not changed and also auto-refresh is disabled"))},t.getAttribute=function(e){return J.getAttribute(e)},t.getPendingAttributeValue=function(e){return Z.getPendingAttributeValue(e)},t.isForeignKey=m,t.checkKeyForVisitorId=function(e){var n=$.getBucketingId()||t.getCurrentId(),i=t.getIdFromKey(e);return!i||i===n},t.getIdFromKey=function(e){var n=e.split("$$")[0],i=t.getStorageKeyFromKey(e),r=D.includes(k.StorageKeys,i);if(r)return null;var a=n.indexOf("_"),o=a===-1;return o?n:n.substring(a+1)},t.getStorageKeyFromKey=function(e){var t,n=e.split("$$").pop(),i=n.indexOf("://")>-1;if(i){var r=n.indexOf("_");t=n.substring(r+1)}else t=n;return D.includes(D.values(k.AllStorageKeys),t)?t:null},t.deleteOldLocalData=function(){var e=M.keys();D.each(e,(function(e){t.isForeignKey(e)||t.checkKeyForVisitorId(e)||M.removeItem(e)}))},t.deleteOldForeignData=function(){var e=M.keys();D.each(e,(function(e){t.isForeignKey(e)&&M.removeItem(e)}))},t.loadForeignData=function(){D.each(M.keys(),(function(e){var t=M.getItem(e);t&&g(e,t)}))},t.getNamespace=function(){return Y.getNamespace()},t.serializeFieldKey=function(e){return D.isArray(e)?e.join("$$"):e},t.removeLegacySessionStateCookies=function(){var e=x.getAll();D.forEach(D.keys(e),(function(e){0===e.indexOf(k.COOKIES.SESSION_STATE+"$$")&&x.remove(e)}))}}),(function(e,t,n){function i(e,n){n!==!1&&(n=!0);for(var i,a,o=e.hostname.split("."),s=[],u=null,l=o.length-1;l>=0;l--)if(s.unshift(o[l]),i=s.join("."),!r.includes(g,i)){a={domain:n?"."+i:i};try{t.set(v,Math.random().toString(),a),t.remove(v,a),u=a.domain;break}catch(e){}}return d.dispatch(c.SET_COOKIE_DOMAIN,u),u}var r=n(2),a=n(76).create,o=n(24),s=n(80),u=n(40),c=n(7),l=n(16),d=n(9),f=l.get("stores/cookie_options"),p=t.SetError=a("CookieSetError"),h=t.MismatchError=a("CookieMismatchError");t.getAll=function(e){r.isUndefined(e)&&(e=!0);var n,i,a,o,u;n=s.getCookieString().split(/\s*;\s*/);var c={};for(a=0;a<n.length;a++)if(i=n[a],o=i.indexOf("="),o>0&&(u=t.safeDecodeURIComponent(i.substring(0,o)),void 0===c[u])){var l=i.substring(o+1);e&&(l=t.safeDecodeURIComponent(l)),c[u]=l}return c},t.safeDecodeURIComponent=function(e){try{return decodeURIComponent(e)}catch(t){return e}},t.get=function(e,n){var i=t.getAll(n);return i[e]},t.set=function(e,n,a,c){a=r.extend({encodeValue:!0},a),c!==!1&&(c=!0);var l=[];if(r.isUndefined(a.domain)){var d=f.getCurrentDomain();d||(d=i(u.getLocation(),!0)),a.domain=d}if(a.domain&&l.push("domain="+a.domain),r.isUndefined(a.path)&&(a.path="/"),a.path&&l.push("path="+a.path),r.isUndefined(a.expires)){var g=r.isUndefined(a.maxAge)?f.getDefaultAgeInSeconds():a.maxAge;a.expires=new Date(o.now()+1e3*g)}if(r.isUndefined(a.expires)||l.push("expires="+a.expires.toUTCString()),a.secure&&l.push("secure"),l=l.join(";"),s.setCookie(e+"="+(a.encodeValue?encodeURIComponent(n):n)+";"+l),c){var v=a.encodeValue,m=t.get(e,v);if(m!==n){if(!m)throw new p('Failed to set cookie "'+e+'"');throw new h('Expected "'+n+'" for "'+e+'", got "'+m+'"')}}},t.remove=function(e,n){for(var i=u.getLocation().hostname.split(".");i.length>0;)t.set(e,null,r.extend({},n,{domain:"."+i.join("."),expires:new Date(0)}),!1),i.shift()};var g=["optimizely.test"],v="optimizelyDomainTestCookie"}),(function(e,t,n){var i=n(77),r=i("InternalError");t.BaseError=r,t.create=function(e){return i(e,r)}}),(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=a(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(78)(),a=n(79);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){function i(){return"loading"===t.getReadyState()}var r=n(16),a=r.get("stores/global");t.getDocumentElement=function(){return document.documentElement},t.getCookieString=function(){return document.cookie||""},t.setCookie=function(e){document.cookie=e},t.querySelector=function(e){return document.querySelector(e)},t.querySelectorAll=function(e){return document.querySelectorAll(e)},t.parseUri=function(e){var n=t.createElement("a");return n.href=e,n},t.childrenOf=function(e){return Array.prototype.slice.call(e.querySelectorAll("*"))},t.createElement=function(e){return document.createElement(e)},t.isReady=function(){return a.domContentLoadedHasFired()||"interactive"===document.readyState||"complete"===document.readyState},t.isLoaded=function(){return"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(!i())throw new Error("Aborting attempt to write to already-loaded document");document.write(e)},t.appendToHead=function(e){return t.appendTo(document.head,e)},t.appendTo=function(e,t){e.appendChild(t)},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},t.parentElement=function(e){for(var t=e.parentNode;t.nodeType!==Node.ELEMENT_NODE;)t=t.parentNode;return t}}),(function(e,t,n){var i,r,a="optimizely_data",o=n(76).create,s=n(82),u=n(40),c=t.Error=o("StorageError");try{r=u.getGlobal("localStorage")}catch(e){throw new c("Unable to read localStorage: "+e.toString())}if(!r)throw new c("localStorage is undefined");i=s.create(r,a),t.LocalStorage=i,t.isOptimizelyKey=function(e){return e.slice(0,a.length)===a}}),(function(e,t,n){function i(e,t){this.tn=e,this.nn=t}var r=n(2),a=n(23),o="$$";i.prototype.rn=function(e){return[this.nn,e].join(o)},i.prototype.an=function(e){return e.replace(this.nn+o,"")},i.prototype.setItem=function(e,t){try{this.tn.setItem(this.rn(e),t)}catch(t){a.warn("Failed to save",e,"to localStorage:",t)}},i.prototype.removeItem=function(e){this.tn.removeItem(this.rn(e))},i.prototype.getItem=function(e){var t=null;try{t=this.tn.getItem(this.rn(e))}catch(e){}return t},i.prototype.keys=function(){var e=r.keys(this.tn);return r.map(r.filter(e,r.bind((function(e){return r.includes(e,this.nn)}),this)),r.bind(this.an,this))},i.prototype.allKeys=function(){return r.keys(this.tn)},i.prototype.allValues=function(){return r.values(this.tn)},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){function i(){return u.getGlobal("performance")}var r=n(7),a=n(76).create,o=n(24),s=n(9),u=n(40),c=n(16),l=c.get("stores/rum"),d="optimizely:",f=t.Error=a("PerformanceError");t.time=function(e){if(l.getSampleRum()){var t=i();if(t&&t.mark){var n=d+e;t.clearMarks(n+"Begin"),t.mark(n+"Begin")}}},t.timeEnd=function(e){if(l.getSampleRum()){var t=i();if(t&&t.mark){var n=d+e,a=t.getEntriesByName(n+"Begin");if(0===a.length)throw new f("Called timeEnd without matching time: "+e);t.clearMarks(n+"End"),t.mark(n+"End");var o=t.getEntriesByName(n+"End"),u=e+"Time",c=o[0].startTime-a[0].startTime;s.dispatch(r.SET_PERFORMANCE_MARKS_DATA,{name:u,data:{startTime:Math.round(1e3*a[0].startTime)/1e3,duration:Math.round(1e3*c)/1e3}})}}},t.now=function(){var e=i();return e?e.now():o.now()}}),(function(e,t,n){var i=n(2),r=n(40);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;i<t.length;i++){var a="",o="",s=t[i].split("=");s.length>0&&(a=s[0]),s.length>1&&(o=s[1]),n.push([a,o])}return n},t.getQueryParamValue=function(e){for(var n=t.getQueryParams(),i=0;i<n.length;i++)if(n[i][0]===e)return n[i][1]},t.queryStringFromMap=function(e){return i.map(e,(function(e,t){return t+"="+e})).join("&")}}),(function(e,t,n){function i(e){var t;if(!o.find(y.getFrames(),{origin:e.origin}))return void E.debug("XDomain","No frame found for origin: "+e.origin);try{t=g.parse(e.data)}catch(t){return void E.debug("XDomain","Ignoring malformed message event:",e)}if("ERROR"===t.type)l.dispatch(u.XDOMAIN_SET_DISABLED,{disabled:!0}),d.emitInternalError(new I("Xdomain Error: "+t.response));else if("SYNC"===t.type)o.each(y.getSubscribers(),(function(e){e(t.response.key,t.response.value)}));else{var n=y.getMessageById(t.id);if(!n){if(E.warn("XDomain","No stored message found for ID",t.id),o.isNumber(t.id)){var i=y.getNextMessageId();t.id>=i?d.emitInternalError(new I("Message ID is greater than expected maximum ID ("+t.id+">"+i+")")):t.id<0?d.emitInternalError(new I("Message ID is < 0: "+t.id)):d.emitInternalError(new I("No stored message found for message ID: "+t.id))}else d.emitInternalError(new I("Message ID is not a number: "+t.id));return}if(!n.resolver)return void E.warn("XDomain","Message already resolved, ignoring:",t.id);n.resolver(t.response),l.dispatch(u.XDOMAIN_SET_MESSAGE,{messageId:t.id,message:{data:{id:t.id,type:n.data.type,key:n.data.key},startTime:n.startTime,endTime:p.now()}})}}function r(e,t){return t||(t=y.getDefaultFrame()),new s(function(n){var i={data:o.extend({},e,{id:y.getNextMessageId()}),resolver:n};t?y.isDisabled()||a(i,t):l.dispatch(u.XDOMAIN_SET_MESSAGE,{messageId:i.data.id,message:i})})}function a(e,t){var n=e.data;l.dispatch(u.XDOMAIN_SET_MESSAGE,{messageId:e.data.id,message:o.extend({},e,{startTime:p.now()})}),t.target.postMessage(g.stringify(n),t.origin)}var o=n(2),s=n(12).Promise,u=n(7),c=n(16),l=n(9),d=n(86),f=n(76).create,p=n(24),h=n(80),g=n(26),v=n(88),m=n(74),_=n(40),E=n(23),y=c.get("stores/xdomain"),I=t.Error=f("XDomainStorageError");t.setItem=function(e,t,n){return r({type:"PUT",key:e,value:t},n)},t.getItem=function(e,t){return r({type:"GET",key:e},t)},t.fetchAll=function(e){return r({type:"GETALL"},e)},t.deleteData=function(e,t){return r({type:"DELETE",visitorId:e},t)},t.subscribe=function(e){l.dispatch(u.XDOMAIN_ADD_SUBSCRIBER,{subscriber:e})},t.loadIframe=function(e,t){return new s(function(n){var i=h.createElement("iframe");i.src=e+t,i.hidden=!0,i.setAttribute("tabindex","-1"),i.setAttribute("title","Optimizely Internal Frame"),i.style.display="none",i.height=0,i.width=0,i.onload=function(){var r={id:y.getNextFrameId(),target:i.contentWindow,origin:e,path:t};l.dispatch(u.XDOMAIN_ADD_FRAME,r),n(r)},h.appendTo(h.querySelector("body"),i)})},t.getXDomainUserId=function(e,t){var n,i={},r=o.keys(e);return o.each(t,(function(e){i[e]=[],o.each(r,(function(t){var r=m.getUserIdFromKey(t,e);!n&&r&&(n=r),r&&!o.includes(i[e],r)&&i[e].push(r)}))})),E.debug("XDomain: Found userIds:",i),n},t.load=function(e,n){_.addEventListener("message",i);var r=function(){return!!h.querySelector("body")},s=function(){return t.loadIframe(e,n)};return v.pollFor(r).then(s).then((function(e){l.dispatch(u.XDOMAIN_SET_DEFAULT_FRAME,e),y.isDisabled()||o.each(y.getMessages(),(function(t){t.startTime||a(t,e)}))}))}}),(function(e,t,n){var i=n(87);t.emitError=function(e,t,n){var r=!0;i.emit({type:"error",name:e.name||"Error",data:{error:e,metadata:t}},n||!1,r)},t.emitInternalError=function(e,n){t.emitError(e,n,!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(2),r=n(5),a=n(7),o=n(86),s=n(16),u=n(9),c=n(23),l=s.get("stores/event_emitter");t.on=function(e){return e.token||(e.token=r.generate()),u.dispatch(a.ADD_EMITTER_HANDLER,e),e.token},t.off=function(e){u.dispatch(a.REMOVE_EMITTER_HANDLER,{token:e})},t.emit=function(e,t,n){var r=l.getHandlers(e,t);i.each(r,(function(i){try{i.handler.call({$di:s},e)}catch(r){!n&&i.emitErrors?(c.error("Error in handler for event:",e,r),o.emitError(r,null,t)):c.warn("Suppressed error in handler for event:",e,r)}}))}}),(function(e,t,n){var i=n(2),r=n(12).Promise,a=n(40),o=100,s=50;t.pollFor=function(e,t,n){var u,c;return i.isFunction(n)?c=n:(u=n||o,c=function(){return u--,u<-1}),t=t||s,new r(function(n,i){!(function r(){var o;if(!c()){try{var s=e();if(s)return n(s)}catch(e){o=e}return a.setTimeout(r,t)}i(o||new Error("Poll timed out"))})()})}}),(function(e,t,n){function i(e,n){var i;i=t.isInSameSession(e,n)?e.getValueOrDefault([s.FIELDS.SESSION_ID]):n.getValueOrDefault([s.FIELDS.TIME]),n.setFieldValue(s.FIELDS.SESSION_ID,i)}function r(e,n,i){var r,a=e.getValueOrDefault([s.FIELDS.SESSION_INDEX]);r=t.isInSameSession(n,e)?a:i?a+1:a-1,n.setFieldValue(s.FIELDS.SESSION_INDEX,r)}var a=n(62).Event,o=n(24),s=n(63),u=n(62).EventBase;t.CURRENT_SESSION_INDEX=0;var c=18e5;t.isInSameSession=function(e,t){var n=e.getValueOrDefault([s.FIELDS.TIME],0),i=t.getValueOrDefault([s.FIELDS.TIME],0);return Math.abs(n-i)<c},t.updateSessionId=function(e,t){if(!e)return void t.setFieldValue(s.FIELDS.SESSION_ID,t.getValueOrDefault([s.FIELDS.TIME]));var n=e.getValueOrDefault([s.FIELDS.TIME]),r=e.getValueOrDefault([s.FIELDS.SESSION_ID]),o=t.getValueOrDefault([s.FIELDS.TIME]);n="number"!=typeof n?o-36e5:n,r="number"!=typeof r?n:r,e=new a(new u("",""),n,r),i(e,t)},t.updateSessionIndex=function(e,t){if(!e)return void t.setFieldValue(s.FIELDS.SESSION_INDEX,0);var n=e.getValueOrDefault([s.FIELDS.TIME]),i=e.getValueOrDefault([s.FIELDS.SESSION_INDEX]),o=t.getValueOrDefault([s.FIELDS.TIME]),c=e.getValueOrDefault([s.FIELDS.SESSION_ID]);n="number"!=typeof n?o-36e5:n,i="number"!=typeof i?0:i,c="number"!=typeof c?n:c,e=new a(new u("",""),n,c,i),r(e,t,!1)},t.sessionize=function(e){var n=e.length;if(0!==n){e[0].setFieldValue(s.FIELDS.SESSION_ID,e[0].getValueOrDefault([s.FIELDS.TIME]));for(var a=1;a<n;a++)i(e[a-1],e[a]);var u=t.CURRENT_SESSION_INDEX,l=e[n-1].getValueOrDefault([s.FIELDS.TIME]),d=o.now();d-l>c&&(u+=1),e[n-1].setFieldValue(s.FIELDS.SESSION_INDEX,u);for(var a=n-1;a>0;a--)r(e[a],e[a-1],!0)}},t.reindexIfNecessary=function(e,t,n){function i(e){for(var t=0;t<e.length;t++){var n=e[t].getValueOrDefault([s.FIELDS.SESSION_INDEX]);e[t].setFieldValue(s.FIELDS.SESSION_INDEX,n+1)}}e.getValueOrDefault([s.FIELDS.SESSION_INDEX])===-1&&(i(t),i(n))},t.sessionSortPredicate=function(e,t){return e[s.FIELDS.TIME]-t[s.FIELDS.TIME]},t.applyMigrations=function(e){return!1}}),(function(e,t,n){var i=n(12).Promise,r=n(40);t.estimateStorage=function(){var e=r.getGlobal("navigator");try{return e.storage.estimate()}catch(e){return i.resolve({usage:null,quota:null})}}}),(function(e,t,n){var i=n(2),r=n(7),a=n(24),o=n(9),s=n(26),u=n(23),c=n(12).Promise,l=n(92),d=3;t.isCORSSupported=function(){var e=l.get("XMLHttpRequest");return"withCredentials"in new e},t.request=function(e){return e=i.extend({method:"GET",async:!0,contentType:"text/plain;charset=UTF-8"},e),new c(function(n,r){if(!t.isCORSSupported())return r("CORS is not supported");var a=l.get("XMLHttpRequest"),o=new a;o.onload=function(){e.success&&e.success(o),n(o)},o.onerror=function(){e.error&&e.error(o),r(o)},i.isObject(e.data)&&(e.data=s.stringify(e.data)),o.open(e.method,e.url,e.async),e.withCredentials&&(o.withCredentials=e.withCredentials),o.setRequestHeader("Content-Type",e.contentType),o.send(e.data)})},t.retryableRequest=function(e,n,s,l){if(!n)return c.reject(new Error("No id specified for request."));if(!t.isCORSSupported())return c.reject(new Error("CORS is not supported."));i.isUndefined(l)&&(l=d),i.isUndefined(s)&&(s=0);var f={id:n,timeStamp:a.now(),data:e,retryCount:s};return o.dispatch(r.SET_PENDING_EVENT,f),u.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}),u.warn("Event ",f," could not be sent after ",l," attempts.")):(f.retryCount++,o.dispatch(r.SET_PENDING_EVENT,f),u.debug("Event ",f," failed to send, with error ",e," It will be retried ",l-s," times.")),e}))},t.sendBeacon=t.request}),(function(e,t,n){var i=n(2),r=n(7),a=n(24),o=n(16),s=n(80),u=n(25),c=n(9),l=n(23),d=o.get("stores/sandbox"),f=n(40);t.shouldSandbox=function(){return!1},t.get=function(e){if(!e)throw new Error("Name is required");if(t.shouldSandbox()){d.isInitialized()||p();var n=d.get(e);if(n)return n}return f.getGlobal(e)};var p=function(){try{var e="optimizely_"+a.now(),t=s.createElement("iframe");t.name=e,t.style.display="none",s.appendToHead(t);var n=t.contentWindow,o=t.contentDocument;o.write("<script></script>"),o.close();var d=i.mapValues(u.SandboxedFunctions,(function(e){return n[e]}));c.dispatch(r.SANDBOXED_FUNCTIONS_ADDED,{sandboxedFunctions:d}),t.parentNode.removeChild(t)}catch(e){l.warn("Unable to create a sandbox: ",e)}}}),(function(e,t,n){var i=n(2),r=n(23),a=n(94),o=n(16),s=o.get("stores/plugins"),u=n(7),c=n(25),l=n(9),d=!1,f=[n(107),n(108),n(128)],p=["clientMetadata","cookieDomain","disable","load","optOut","rum"];t.push=function(e,t){var n,a,o,s;if(!i.isArray(e)&&i.isObject(e))s=i.isUndefined(e.version)?1:e.version,n=e.type,o=[e];else if(i.isArray(e))s=0,n=e[0],o=e.slice(1);else{if(!i.isString(e))return r.warn("API / Ignoring non-array/object/string argument:",e),!1;s=0,n=e,o=[]}if(f[s]&&(a=f[s][n]),t&&p.indexOf(n)===-1)return r.debug("API / Ignoring non high priority function:",n,o),!1;if(!a)return r.warn('API / No function found for "'+n+'" (v'+s+") with arguments:",o),!1;r.log('API / Executing: "'+n,'" with arguments:',o);try{a.apply(null,o),l.dispatch(u.RECORD_API_USAGE,{methodName:s?"v"+s+"."+n:n})}catch(e){r.error(e)}return!0},t.get=function(e){if(d&&"state"!==e)return void r.warn('Module "'+e+'" not found.');r.log('API / Getting module: "'+e+'"');var t=a[e];return t?i.isArray(t)&&(t=o.evaluate(t)):t=s.getPlugin(c.PluginTypes.apiModules,e),t?(l.dispatch(u.RECORD_API_USAGE,{methodName:"get."+e}),t):void r.warn('Module "'+e+'" not found.')}}),(function(e,t,n){function i(e,t,n,i){var r=e.getLayerState(i),a=t.get(i),s=n.get();if(!r||!a)return s?{layer:{name:s.layerName,id:s.layerId,policy:s.layerPolicy,integrationStringVersion:s.integrationStringVersion},experiment:{name:s.experimentName,id:s.experimentId},variation:{name:s.variationName,id:s.variationId},isLayerHoldback:!1}:null;if(l.isSingleExperimentPolicy(a.policy)&&r.decision.isLayerHoldback)return null;var u=r.decision.experimentId,c=r.decision.variationId;if(!u||!c)return null;var d,f;return(d=o.find(a.experiments,{id:u}))?(f=o.find(d.variations,{id:c}),f?{layer:{name:a.name,id:a.id,policy:a.policy,integrationStringVersion:a.integrationStringVersion},experiment:{name:d.name,id:d.id},variation:{name:f.name,id:f.id},isLayerHoldback:r.decision.isLayerHoldback}:null):null}function r(e,t,n,i,r,s){var u=[],c=e.getLayerStates();s.onlySingleExperiments&&(c=o.filter(c,(function(e){var n=t.get(e.layerId);return n&&l.isSingleExperimentPolicy(n.policy)})));var f=o.map(c,(function(e){var t=!!e.decision.variationId,n=e.decisionActivationId&&e.decisionActivationId===i.getActivationId(),r=d.getExperimentAndVariation(),a=r?r.variationId:null,s=t&&e.decision.variationId===a;return o.extend(e,{isActive:t&&n||s,visitorRedirected:s})})),p=r?o.filter(f,r):f;return o.each(p,(function(e){var i=a(e,t,n,s.includeOfferConsistency);i&&u.push(i)})),u}function a(e,t,n,i){var r,a,s=e.layerId,u=t.get(s)||{},c=o.map(u.experiments,(function(e){ return o.pick(e,["id","name"])}));if(i||!u.decisionMetadata||!u.decisionMetadata.offerConsistency){var l={id:s,campaignName:u.name||null,experiment:null,allExperiments:c,variation:null,reason:e.decision.reason,isActive:!!e.isActive,visitorRedirected:e.visitorRedirected,isInCampaignHoldback:e.decision.isLayerHoldback};e.decision&&e.decision.experimentId&&(r=o.find(u.experiments,{id:e.decision.experimentId})),r&&(l.experiment=o.pick(r,["id","name","campaignName"])),r&&e.decision.variationId&&(a=o.find(r.variations,{id:e.decision.variationId})),a&&(l.variation=o.pick(a,["id","name"]));var d=o.map(e.decisionTicket.audienceIds,(function(e){return o.pick(n.get(e),["id","name"])}));return l.audiences=d,u.decisionMetadata&&u.decisionMetadata.offerConsistency&&(l.pageId=e.pageId),l}}var o=n(2),s=n(95),u=n(96),c=n(98),l=n(44),d=n(99);t.data=["stores/audience_data","stores/client_metadata","stores/event_data","stores/layer_data","stores/view_data","stores/group_data","stores/interest_group","stores/tag_group","stores/global",function(e,t,n,i,r,a,s,l,d){var f={},p={},h={},g={audiences:e.getAudiencesMap(),events:n.getEventsMap(),campaigns:f,pages:r.getPagesMap(),experiments:p,variations:h,projectId:d.getProjectId(),snippetId:d.getSnippetId(),accountId:d.getAccountId(),dcpServiceId:d.getDCPServiceId(),revision:d.getRevision(),clientName:t.getClientName(),clientVersion:t.getClientVersion()},v=c.dereferenceChangeId;return o.each(i.getAll(),(function(e){u.defineProperty(f,e.id,(function(){var t=o.extend({},e);return u.defineProperty(t,"changes",(function(){return o.map(e.changes,v)}),"campaign"),u.defineProperty(t,"experiments",(function(){return o.map(e.experiments,(function(e){return p[e.id]}))}),"campaign"),t}),"campaignMap","byId"),o.each(e.experiments,(function(e){u.defineProperty(p,e.id,(function(){var t=o.extend({},e);return u.defineProperty(t,"changes",(function(){return o.map(e.changes,v)}),"experiment"),u.defineProperty(t,"variations",(function(){return o.map(e.variations,(function(e){return h[e.id]}))}),"experiment"),t}),"experimentMap","byId"),o.each(e.variations,(function(e){u.defineProperty(h,e.id,(function(){var t=o.extend({},e);return u.defineProperty(t,"actions",(function(){return o.map(e.actions,(function(e){return o.extend({},e,{changes:o.map(e.changes,v)})}))}),"variation"),t}),"variationMap","byId")}))}))})),g.groups=a.getGroupsMap(),g}],t.visitor=["stores/visitor",function(e){return o.cloneDeep(e.getVisitorProfile())}],t.visitor_id=["stores/visitor_id",function(e){return{randomId:e.getRandomId()}}],t.state=["stores/audience_data","stores/layer_data","stores/layer","stores/view_data","stores/view","stores/global","stores/observed_redirect",function(e,t,n,a,u,c,f){return{getCampaignStates:function(i){var a={},s=r(n,t,e,c,i,{includeOfferConsistency:!1});return o.each(s,(function(e){a[e.id]=e})),a},getExperimentStates:function(i){var a=r(n,t,e,c,i,{includeOfferConsistency:!1,onlySingleExperiments:!0}),s=["audiences","variation","reason","visitorRedirected","isActive"],u=o.reduce(a,(function(e,t){var n=t.allExperiments[0];return e[n.id]=o.extend({},o.pick(t,s),{id:n.id,experimentName:n.name,isInExperimentHoldback:t.isInCampaignHoldback}),e}),{});return u},getCampaignStateLists:function(i){var a={},s=r(n,t,e,c,i,{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=u.getAll(),n=o.reduce(t,(function(e,t){var n=a.get(t.id);return e[t.id]=o.extend({},o.pick(n,["id","name","apiName","category","staticConditions","tags"]),o.pick(t,["isActive","metadata"])),e[t.id].isActive=!!e[t.id].isActive,e}),{});return e?o.pickBy(n,e):n},isGlobalHoldback:function(){return c.isGlobalHoldback()},getActivationId:function(){return c.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=d.getExperimentAndVariation();return e&&(e.referrer=d.getReferrer()),e},getDecisionString:function(e){if(!e)throw new Error("Must pass a config to getDecisionString");e=o.extend({maxLength:255,shouldCleanString:!1},e);var r=i(n,t,f,e.campaignId);return r?s.generateAnalyticsString(r.layer,r.experiment,r.variation,r.isLayerHoldback,e.maxLength,e.shouldCleanString):null},getDecisionObject:function(e){if(!e)throw new Error("Must pass a config to getDecisionObject");e=o.extend({maxLength:255,shouldCleanString:!1},e);var r=i(n,t,f,e.campaignId);if(!r)return null;var a=s.formatNamesAndIdsForAnalytics(r.layer,r.experiment,r.variation,e.shouldCleanString),u=o.mapValues(a.names,(function(t,n){return s.combineAndTruncateIdAndName(t,a.idStrings[n],e.maxLength)})),c={experiment:u.experiment,variation:u.variation};return l.isSingleExperimentPolicy(r.layer.policy)||o.extend(c,{campaign:u.layer,holdback:r.isLayerHoldback}),c}}}],t.utils=n(100).create(),t.jquery=["env/jquery",function(e){return e}],t.event_emitter=n(106)}),(function(e,t,n){function i(e){return e.replace(/[^a-zA-Z0-9\.\~\!\*\(\)\']+/g,"_")}function r(e){return!u.isEmpty(e)&&u.includes(["and","or","not"],e[0])}function a(e,t){var n="";return u.isEmpty(t)?n=d:(n=u.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}function o(e,n,i,r,a,o){if(!v.isSingleExperimentPolicy(e.policy)||!r){var s=!v.isSingleExperimentPolicy(e.policy)&&r,c=t.formatNamesAndIdsForAnalytics(e,n,i,o),d=[c.names.experiment,c.names.variation],p=[c.idStrings.experiment,c.idStrings.variation];v.isSingleExperimentPolicy(e.policy)||(d.unshift(c.names.layer),p.unshift(c.idStrings.layer));var h=u.reduce(p,(function(e,t){return e+t.length}),0),g=d.length-1+(s?1:0),m=g*l.length,_=h+m;if(s&&(_+=f.length),_>a)throw new Error("The analytics string size is too low to send the entity IDs.");for(var E=a-_,y=d.length,I=[],S=d.length-1;S>=0;S--){var T=d[S],A=Math.min(T.length,Math.floor(E/y));E-=A,y--,I.unshift(T.substring(0,A))}var b=u.map(I,(function(e,t){return e+p[t]}));return s&&b.push(f),b.join(l)}}function s(e,n,i,r,a,o){var s=r?f:p,c=3*l.length,d=t.formatNamesAndIdsForAnalytics(e,n,i,o),h=d.names,g=d.idStrings,m=u.reduce(g,(function(e,t){return e+t.length}),0);if(m+c+s.length>a)throw new Error("The analytics string size is too low to send the campaign, experiment, and variation IDs.");var _=a-m-c-s.length,E={};E.variation=Math.min(h.variation.length,Math.floor(_/3)),_-=E.variation,E.experiment=Math.min(h.experiment.length,Math.floor(_/2)),_-=E.experiment,E.layer=_;var y={};u.each(h,(function(e,t){y[t]=e.substring(0,E[t])}));var I=[];return v.isSingleExperimentPolicy(e.policy)||I.push(y.layer+g.layer),I=I.concat([y.experiment+g.experiment,y.variation+g.variation,s]),I.join(l)}var u=n(2),c=n(16),l=":",d="everyone_else",f="holdback",p="treatment",h="",g=n(23),v=n(44),m=!1;t.formatNamesAndIdsForAnalytics=function(e,t,n,o){var s={layer:e.name||h,experiment:t.name||h,variation:n.name||h};o&&(s=u.mapValues(s,i));var l=m?1===e.integrationStringVersion:!e.integrationStringVersion||1===e.integrationStringVersion;if(s.experiment===h&&l)if(r(t.audienceIds))s.experiment="Exp";else{var d=c.get("stores/audience_data");s.experiment=a(d,t.audienceIds)}var f={layer:"("+i(e.id)+")",experiment:"("+i(t.id)+")",variation:"("+i(n.id)+")"};return{names:s,idStrings:f}},t.combineAndTruncateIdAndName=function(e,t,n){var i=n-t.length;if(i<0&&(g.warn("maxLength must be at least long enough to fit the entity ID, which is length"+t.length+". Defaulting to only use entity ID as name."),e=h),e===h)return t;if(e.length>i){var r=Math.min(e.length,i);return e=e.substring(0,r),e+t}return e+" "+t},t.generateAnalyticsString=function(e,t,n,i,r,a){return e.integrationStringVersion&&2===e.integrationStringVersion?o(e,t,n,i,r,a):s(e,t,n,i,r,a)}}),(function(e,t,n){var i=n(97),r=n(7),a=n(9),o=n(23);t.defineProperty=function(e,t,n,s,u){i(e,t,(function(){var e=["prop",s,u||t].join(".");return o.debug('Evaluating getter: "'+e+'"'),a.dispatch(r.RECORD_API_USAGE,{methodName:e}),n()}),!0)}}),(function(e,t){"use strict";function n(e,t,n,i){Object.defineProperty(e,t,{get:function(){var e=n.call(this);return Object.defineProperty(this,t,{value:e,enumerable:!!i,writable:!0}),e},set:function(e){return Object.defineProperty(this,t,{value:e,enumerable:!!i,writable:!0}),e},enumerable:!!i,configurable:!0})}e.exports=n}),(function(e,t,n){function i(e){var n=r.cloneDeep(e);return n.changes&&(n.changes=r.map(n.changes,t.dereferenceChangeId)),n.experiments&&r.each(n.experiments,(function(e){e.changes&&(e.changes=r.map(e.changes,t.dereferenceChangeId)),e.variations&&r.each(e.variations,(function(e){e.actions&&r.each(e.actions,(function(e){e.changes&&(e.changes=r.map(e.changes,t.dereferenceChangeId))}))}))})),n}var r=n(2),a=n(16),o=n(22),s=n(96),u=a.get("stores/change_data");t.translateDecisionToCampaignDecision=function(e){return c(r.cloneDeep(e),{layerId:"campaignId",isLayerHoldback:"isCampaignHoldback"})},t.translateLayerEventToCampaignEvent=function(e){var t={};return s.defineProperty(t,"campaign",(function(){var t=i(e.data.layer);return t}),"campaignEvent"),t.decisionTicket=e.data.decisionTicket,t.decision=this.translateDecisionToCampaignDecision(e.data.decision),t.audiences=e.data.audiences,{type:"lifecycle",name:"campaignDecided",data:t}},t.translateViewActivatedToPageActivated=function(e){return{type:"lifecycle",name:"pageActivated",data:{page:e.data.view}}},t.dereferenceChangeId=function(e){var t=u.getChange(e);return t?o.safeReference(t):e};var c=function(e,t){var n=r.omit(e,r.keys(t));return r.each(t,(function(t,i){n[t]=e[i]})),n}}),(function(e,t,n){var i=n(2),r=n(16),a=r.get("stores/observed_redirect");t.getReferrer=function(){var e=a.get();return e?e.referrer:null},t.getExperimentAndVariation=function(){var e=a.get();return e&&i.isString(e.variationId)?i.pick(e,["experimentId","variationId"]):null}}),(function(e,t,n){var i=n(12).Promise,r=n(101).observeSelector,a=n(102).poll,o=n(104).waitForElement,s=n(105).waitUntil;t.create=function(){return{observeSelector:r,poll:a,Promise:i,waitForElement:o,waitUntil:s}}}),(function(e,t,n){function i(){if(f.shouldObserveChangesIndefinitely()){var e={attributes:!0,childList:!0,subtree:!0,characterData:!0},t=p.getDocumentElement(),n=new MutationObserver(function(){this.disconnect(),l.each(l.keys(_),a),this.observe(t,e)});return function(i){var r=_[i];n.observe(t,e),r.cancelObservation=function(){delete _[i],l.isEmpty(_)&&n.disconnect()}}}return function(e){var t=g.poll(l.partial(a,e));_[e].cancelObservation=function(){t(),delete _[e]}}}function r(e){var t=_[e];t&&t.cancelObservation&&t.cancelObservation()}function a(e){if(_[e]){if(o(_[e]))return 0===_[e].matchedCount&&l.isFunction(_[e].options.onTimeout)&&_[e].options.onTimeout(),void r(e);var t=document.querySelectorAll(_[e].selector);t.length&&(l.each(t,(function(t){t.sn&&t.sn[e]||_[e].callbackQueue.push(t)})),s(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 s(e){for(;_[e]&&_[e].callbackQueue.length;){var t=_[e].callbackQueue.shift();if(u(t,e),_[e].matchedCount=_[e].matchedCount+1,_[e].callback(t),_[e]&&_[e].options.once)return void r(e)}}function u(e,t){e.sn||(e.sn={}),e.sn[t]=!0}function c(e){try{document.querySelector(e)}catch(e){return!1}return!0}var l=n(2),d=(n(7),n(16)),f=d.get("stores/directive"),p=n(80),h=(n(25),n(9),n(5).generate),g=n(102),v=n(40),m=(d.get("stores/rum"),{once:!1,onTimeout:null,timeout:null}),_={},E=function(e){(E=i())(e)};t.observeSelector=function(e,t,n){if(!c(e))throw new Error("observeSelector expects a valid css selector as its first argument");if(!l.isFunction(t))throw new Error("observeSelector expects a function as its second argument");if(n&&(!l.isObject(n)||l.isFunction(n)))throw new Error("observeSelector expects an object as its third argument");var i=h();return n=l.assign({},m,n||{}),_[i]={callback:t,callbackQueue:[],matchedCount:0,options:n,selector:e,startTime:Date.now()},E(i),v.setTimeout(l.bind(a,null,i),0),l.partial(r,i)}}),(function(e,t,n){function i(e){l[e]&&a.each(l[e].callbacks,(function(e){e.call(null)}))}function r(e,t){l[t]&&l[t].callbacks[e]&&(delete l[t].callbacks[e],a.some(l[t].callbacks)||(clearInterval(l[t].id),delete l[t]))}var a=n(2),o=(n(7),n(16)),s=(n(25),n(9),n(5).generate),u=n(40),c=n(103).DEFAULT_INTERVAL,l=(o.get("stores/rum"),{});t.poll=function(e,t){a.isNumber(t)||(t=c),l[t]||(l[t]={callbacks:{},id:u.setInterval(a.partial(i,t),t)});var n=s();return l[t].callbacks[n]=e,a.partial(r,n,t)},t.cancelAll=function(){a.each(l,(function(e,t){clearInterval(e.id),delete l[t]}))}}),(function(e,t){e.exports={DEFAULT_INTERVAL:20}}),(function(e,t,n){var i=n(12).Promise,r=n(101).observeSelector;t.waitForElement=function(e){return new i(function(t,n){r(e,t,{once:!0})})}}),(function(e,t,n){var i=n(12).Promise,r=n(102).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){var i=n(87);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=a.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 a.isUndefined(t)||(n.revenue=t),n}function r(e){return a.isNumber(e)||a.isString(e)&&Number(e)==e}var a=n(2),o=n(108);t.activateGeoDelayedExperiments=function(e,t){t||(t=e.lists?"odds":"cdn3"),o.dataFromSource({data:e,source:t})},t.activateSiteCatalyst=function(e){e&&e.sVariable&&o.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),o.bucketVisitor(n)}},t.disable=function(e){o.disable({scope:e})},t.log=function(e){a.isUndefined(e)&&(e=!0),o.log({level:e?"INFO":"OFF"})},t.optOut=function(e){a.isUndefined(e)&&(e=!0),o.optOut({isOptOut:e})},t.setCookieDomain=function(e){o.cookieDomain({cookieDomain:e})},t.setCookieExpiration=function(e){o.cookieExpiration({cookieExpirationDays:e})},t.setDimensionValue=function(e,t){var n={};n[e]=t,o.user({attributes:n})},t.setUserId=function(e){o.user({userId:e})},t.storeThirdPartyData=function(e,t){o.dataFromSource({source:e,data:t})},t.trackEvent=function(e,t){o.event({eventName:e,tags:i(t)})}}),(function(e,t,n){function i(e){var t;return e.eventId&&(t=y.create(e.eventId,e.eventName,"custom")),R.updateAllViewTags(),function(){var n=p.trackCustomEvent(e.eventName,e.tags,t);n?b.log("API / Tracking custom event:",e.eventName,e.tags):b.log("API / Not tracking custom event:",e.eventName)}}function r(e){var t;return e.eventData&&(t=y.create(e.eventData.id,e.eventData.apiName,"click",e.eventData)),function(){var e=p.trackClickEvent(t);e?b.log("API / Tracking click event:",e):b.log("API / Not tracking click event:",e)}}function a(e){var t=e.eventData,n=A.createLayerState(t.layerId,t.experimentId,t.variationId,t.isLayerHoldback),i=A.createSingle(t.layerId,t.experimentId,t.variationId);return function(){A.recordLayerDecision(n.layerId,n.decisionTicket,n.decision),b.log("API / Tracking decision event:",n),p.trackDecisionEvent(n.decision,n.decisionTicket,i)}}function o(e){var t=R.create(e.eventData.id,e.eventData.apiName),n=R.createState(t.id);return function(){var e=p.trackViewActivation(t,n);e?b.log("API / Tracking pageview event:",e):b.log("API / Not tracking pageview event:",e)}}var s=n(2),u=n(7),c=n(93),l=n(94),d=n(109),f=n(25),p=n(110),h=n(117),g=n(6),v=n(76).create,m=n(24),_=n(118),E=n(120),y=n(121),I=n(87),S=n(9),T=n(26),A=n(113),b=n(23),w=n(122),D=n(114),R=n(123),N=n(74),O=n(16),C=O.get("stores/dimension_data"),x=O.get("stores/view"),L=O.get("stores/view_data"),P=O.get("stores/visitor_id"),k=O.get("stores/layer_data"),F=O.get("stores/directive"),V=!1,M=!1,U=V||M,B=86400,G=90,j=t.ApiListenerError=v("ApiListenerError");t.event=function(e){var t;switch(e.eventType){case"click":t=r(e);break;case"decision":t=a(e);break;case"pageview":t=o(e);break;case"custom":default:t=i(e)}P.getBucketingId()?t():S.dispatch(u.ADD_CLEANUP_FN,{lifecycle:f.Lifecycle.postActivate,cleanupFn:t})},t.clientMetadata=function(e){U&&(S.dispatch(u.SET_CLIENT_NAME,e.clientName),S.dispatch(u.SET_CLIENT_VERSION,e.clientVersion)),V&&e.forceVariationIds&&S.dispatch(u.LOAD_DIRECTIVE,{forceVariationIds:e.forceVariationIds})},t.priorRedirectString=function(e){U&&D.load(e.value)},t.microsnippetError=function(e){if(U){var t=e.errorData.metadata&&e.errorData.metadata.err||{};t.name=e.errorData.code;var n={engine:e.engine,msVersion:e.errorData.msVersion,requestId:e.errorData.requestId,projectId:e.errorData.projectId,snippetKey:e.errorData.snippetKey,args:e.errorData.args};E.handleError(t,n)}},t.rum=function(e){S.dispatch(u.SET_RUM_DATA,e.eventData)},t.initialViewStates=function(e){var t=s.map(e.states,(function(e,t){return{id:t,isActive:e}}));R.registerViews(t)},t.page=function(e){var t=L.getByApiName(e.pageName);if(!t)throw new Error('Unknown page "'+e.pageName+'"');var n=!e.hasOwnProperty("isActive")||e.isActive,i=function(){n?R.activateViaAPI(t,e.tags):(R.deactivate(t),b.log("API / Deactivated Page",R.description(t)))};P.getBucketingId()?i():S.dispatch(u.ADD_CLEANUP_FN,{lifecycle:f.Lifecycle.postViewsActivated,cleanupFn:i})},t.tags=function(e){R.setGlobalTags(e.tags)},t.user=function(e){U&&e.visitorId&&(P.getBucketingId()?(b.log("API / Setting visitor Id:",e.visitorId),N.setId({randomId:e.visitorId})):(b.log("API / Setting visitor Id for activation:",e.visitorId),S.dispatch(u.SET_VISITOR_ID_VIA_API,e.visitorId))),V&&s.each(["IP","location","queryParams","url"],(function(t){e[t]&&(b.log("API / Setting",t,":",e[t]),z(t,e[t],!1))})),b.log("API / Setting visitor custom attributes:",e.attributes),s.each(e.attributes,(function(e,t){var n,i,r=t,a=C.getById(t)||C.getByApiName(t);a&&(r=a.id,n=a.apiName,i=a.segmentId||a.id);var o={id:i,value:e};n&&(o.name=n),z(r,o,!0)}))};var z=function(e,t,n){var i=[{key:n?["custom",e]:[e],value:t,metadata:{lastModified:m.now()}}],r=function(){S.dispatch(u.SET_VISITOR_ATTRIBUTES,{attributes:i})};P.getBucketingId()?r():S.dispatch(u.ADD_CLEANUP_FN,{lifecycle:f.Lifecycle.postVisitorProfileLoad,cleanupFn:r})};t.optOut=function(e){var t=!e.hasOwnProperty("isOptOut")||e.isOptOut;_.setOptOut(t)},t.cookieExpiration=function(e){var t=e.cookieExpirationDays;t<G&&(b.error('Argument "cookieExpirationDays"=',t,"less than minimum days:",G,", setting to minimum."),t=G),b.log("API / Setting cookie age to",t,"days."),S.dispatch(u.SET_COOKIE_AGE,t*B)},t.extendCookieLifetime=function(e){e=s.extend({isEnabled:!0},e),b.log("API / Setting cookie automatic lifetime extension to",e.isEnabled),S.dispatch(u.SET_COOKIE_AUTO_REFRESH,e.isEnabled)},t.cookieDomain=function(e){b.log("API / Setting cookie domain to",e.cookieDomain),S.dispatch(u.SET_COOKIE_DOMAIN,e.cookieDomain)},t.disable=function(e){if(e.scope){if("tracking"!==e.scope)throw new Error('Unknown "scope" for disable: '+e.scope);b.log("API / Disabling tracking"),S.dispatch(u.LOAD_DIRECTIVE,{trackingDisabled:!0})}else b.log("API / Disabling everything"),S.dispatch(u.LOAD_DIRECTIVE,{disabled:!0})},t.log=function(e){var t=e.level,n=e.match;s.isUndefined(t)&&(t="INFO"),s.isUndefined(n)&&(n=""),b.setLogMatcher(n),b.setLogLevel(t)},t.registerModule=function(e){var t="custom/"+e.moduleName;if(l[t]||c.get(t))throw new Error('Module name "'+t+'" is reserved. Will not be registered as plugin.');w.registerApiModule(t,e.module)},t.dataFromSource=function(e){var t=e.source;g.makeAsyncRequest(t),g.resolveRequest(t,e.data)},t.addListener=function(e){if(!s.isFunction(e.handler))throw new Error("A handler function must be supplied");e=s.omit(e,"type"),e.publicOnly=!0,e.emitErrors=!0;var t=e.handler;e.handler=function(e){try{return t(e)}catch(e){throw new j(e)}},I.on(e)},t.removeListener=function(e){if(!e.token)throw new Error("Must supply a token to removeListener");I.off(e.token)},t.load=function(e){e.data=s.extend({},e.data),d.normalizeClientData(e.data),S.dispatch(u.DATA_LOADED,{data:e.data})},t.integrationSettings=function(e){if(!e.id)throw new Error("id is required");if(!e.settings)throw new Error("settings is required");S.dispatch(u.SET_INTEGRATION_SETTINGS,s.extend({},e.settings,{id:e.id}))},t.bucketVisitor=function(e){if(!e.variationId&&s.isUndefined(e.variationIndex)||e.variationId&&e.variationIndex)throw new Error("One of a variationId or a variationIndex is required.");if(!e.experimentId)throw new Error("An experimentId is required.");var t,n,i=e.campaignId;if(i){if(t=k.get(i),!t)throw new Error("Could not find layer "+i)}else if(t=k.getLayerByExperimentId(e.experimentId),i=t.id,!i)throw new Error("Could not find layer for experiment "+e.experimentId);if(n=s.find(t.experiments,{id:e.experimentId}),!n)throw new Error("Could not find experiment "+e.experimentId+" in layer "+i);var r=e.variationId;if(s.isUndefined(e.variationIndex)){if(!s.find(n.variations,{id:r}))throw new Error("Cound not find variation "+r+" in experiment "+e.experimentId)}else if(r=n.variations[e.variationIndex].id,!r)throw new Error("Could not find variation at index "+e.variationIndex+" in experiment "+e.experimentId);N.updateVariationIdMap(i,e.experimentId,r),P.getBucketingId()&&N.persistVariationIdMap()},t.waitForOriginSync=function(e){if(!s.isArray(e.canonicalOrigins))throw new Error("canonicalOrigins must be an array. Got: "+T.stringify(e.canonicalOrigins));s.each(e.canonicalOrigins,(function(e){if(!s.isString(e))throw new Error("Each item in canonicalOrigins must be a string. Found type "+typeof e)})),S.dispatch(u.XDOMAIN_SET_CANONICAL_ORIGINS,{canonicalOrigins:e.canonicalOrigins})},t.disableCrossOrigin=function(){b.log("API / cross origin tracking is DISABLED"),S.dispatch(u.XDOMAIN_SET_DISABLED,{disabled:!0})},t.activate=function(){F.shouldActivate()&&!V?(s.forEach(x.getActiveViewStates(),(function(e){R.deactivate(L.get(e.id))})),S.dispatch(u.RESET_VIEW_STATES),h.emitActivateEvent()):b.debug("Not activating.")},t.sendEvents=function(){h.emitSendEvents()},t.holdEvents=function(){h.emitHoldEvents()}}),(function(e,t,n){var i=n(2),r=n(25);t.normalizeClientData=function(e){!e.listTargetingKeys&&e.listTargetingCookies&&(e.listTargetingKeys=i.map(e.listTargetingCookies,(function(e){return{type:r.ListTargetingKeyTypes.COOKIE,key:e}})),delete e.listTargetingCookies)}}),(function(e,t,n){function i(e,t,n){var i=c({activeViewStates:j.getActiveViewStates(),visitorProfile:W.getVisitorProfile(),layerStates:H.getLayerStatesForAnalytics()}),r=n&&n.pageId?d(n):j.getActiveViewTags(),a=m.extend({},r,t),o=n&&n.category?n.category:w.OTHER;return m.extend(i,{eventEntityId:n&&n.id,eventApiName:e,eventCategory:o,eventTags:a})}function r(e,t){var n=c({activeViewStates:j.getActiveViewStates(),visitorProfile:W.getVisitorProfile(),layerStates:H.getLayerStatesForAnalytics()});return m.extend(n,{pageId:e.id,pageApiName:e.apiName,viewCategory:e.category,eventTags:t.metadata})}function a(e){var t=c({activeViewStates:j.getActiveViewStates(),visitorProfile:W.getVisitorProfile(),layerStates:H.getLayerStatesForAnalytics()}),n=e.config&&e.config.selector?e.config.selector:e.eventFilter.selector,i=e.apiName,r=e.category||w.OTHER,a=e.id,o=d(e);return m.extend(t,{eventApiName:i,eventCategory:r,eventEntityId:a,eventTags:o,pageId:e.pageId,selector:n})}function o(){var e=c({activeViewStates:[],visitorProfile:W.getVisitorProfile(),layerStates:H.getLayerStatesForAnalytics()});return m.extend(e,{eventTags:{}})}function s(e,t,n,i){var r=null,a=null,o=null;if(t.experimentId){var s=m.find(i.experiments,{id:t.experimentId});if(s&&(r=s.name||null,o=s.integrationSettings,t.variationId)){var u=m.find(s.variations,{id:t.variationId});u&&(a=u.name||null)}}var c=P.getReferrer()||A.getReferrer(),l={sessionId:G.getSessionId(),decisionTicketAudienceIds:n.audienceIds,visitorId:Q.getRandomId(),decisionId:e,activationId:B.getActivationId(),namespace:B.getNamespace(),timestamp:I.now(),pageId:n.pageId||null,variationId:t.variationId,variationName:a,experimentId:t.experimentId,experimentName:r,layerId:t.layerId,layerName:i.name,layerPolicy:i.policy,accountId:B.getAccountId(),projectId:B.getProjectId(),revision:String(B.getRevision()),clientName:U.getClientName(),clientVersion:U.getClientVersion(),referrer:c,integrationStringVersion:te?i.integrationStringVersion:i.integrationStringVersion||1,integrationSettings:m.extend({},i.integrationSettings,o)};return l}function u(e,t){var n=m.extend({},e,{isLayerHoldback:t,isGlobalHoldback:!1,clientName:m.isNull(e.clientName)?S.NAME:e.clientName,integrationStringVersion:te?e.integrationStringVersion:m.isNull(e.integrationStringVersion)?1:e.integrationStringVersion,anonymizeIP:m.isNull(B.getAnonymizeIP())?void 0:B.getAnonymizeIP(),activationId:B.getActivationId(),decisionTicketAudienceIds:[],sessionId:G.getSessionId(),activeViewStates:[],userFeatures:f(W.getVisitorProfile()),layerStates:H.getLayerStatesForAnalytics()});return n}function c(e){var t=P.getReferrer()||A.getReferrer(),n={eventId:M.generate(),timestamp:I.now(),revision:B.getRevision(),clientName:U.getClientName(),clientVersion:U.getClientVersion(),projectId:B.getProjectId(),accountId:B.getAccountId(),activationId:B.getActivationId(),sessionId:G.getSessionId(),isGlobalHoldback:B.isGlobalHoldback(),namespace:B.getNamespace(),referrer:t,visitorId:Q.getRandomId(),activeViewStates:e.activeViewStates,layerStates:e.layerStates,userFeatures:f(e.visitorProfile)};return n}function l(e){var t=j.getViewState(e),n=t&&t.isActive?t.metadata:{};return n}function d(e){var t={};return e.pageId?l(e.pageId):t}function f(e){var t=z.getAllPlugins(b.PluginTypes.visitorProfileProviders),n=m.filter(t,{shouldTrack:!0}),i={id:null,type:null,name:"",value:null,shouldIndex:!0};return m.reduce(n,(function(t,n){try{var r=n.provides,a=e[r],o=[];if(!m.isUndefined(a)){m.isObject(a)?o=m.map(a,(function(e,t){var n=m.isObject(e)?e:{value:e};return m.extend({},{type:r,name:t},n)})):o.push({type:r,value:a});var s=m(o).map((function(e){return m.pick(m.extend({},i,e),m.keys(i))})).filter((function(e){return!!e.value})).value();t=t.concat(s)}}catch(e){x.warn("Error evaluating userFeature against visitorProfile:",e)}return t}),[])}function p(e,t,n){var i=h(e,n);x.debug("Found "+i.length+" analytics integrations defining a "+e+" hook"),x.debug("Calling each with data: ",t),m.each(i,(function(e){try{x.debug("Calling plugin: "+e.name),e.hookFn(t),x.debug("Called plugin: "+e.name)}catch(e){x.error(e)}}))}function h(e,t){var n=[];return m.each(z.getAllPlugins(b.PluginTypes.analyticsTrackers),(function(i,r){if(i[e]&&(!t||!i[t]))try{n.push({name:r,hookFn:T.evaluate(i[e])})}catch(e){x.error(e)}})),n}function g(e,t,n){var i=v(e,t);x.debug("Found "+i.length+" analytics integrations defining a trackLayerDecision "+e+" timing of "+t.join("|")),x.debug("Calling each with data: ",n),m.each(i,(function(e){try{x.debug("Calling plugin: "+e.name),e.hookFn(n),x.debug("Called plugin: "+e.name)}catch(e){x.error(e)}}))}function v(e,t){var n=[];return m.each(z.getAllPlugins(b.PluginTypes.analyticsTrackers),(function(i,r){m.includes(t,i[e])&&n.push({name:r,hookFn:i.trackLayerDecision})})),n}var m=n(2),_=n(7),E=n(86),y=n(71),I=n(24),S=n(32),T=n(16),A=n(80),b=n(25),w=n(73),D=n(87),R=n(111),N=n(112),O=n(9),C=n(113),x=n(23),L=(n(83),n(12).Promise),P=n(99),k=n(114),F=n(116),V=n(115),M=n(5),U=T.get("stores/client_metadata"),B=T.get("stores/global"),G=T.get("stores/session"),j=T.get("stores/view"),z=T.get("stores/plugins"),H=T.get("stores/layer"),Y=T.get("stores/layer_data"),K=T.get("stores/observed_redirect"),q=T.get("stores/pending_redirect"),W=T.get("stores/visitor"),X=T.get("stores/directive"),$=T.get("stores/event_data"),Q=T.get("stores/visitor_id"),J="COOKIE",Z=!0,ee=1e3,te=!1;t.trackClientActivation=function(){if(X.shouldSendTrackingData()){var e=o();return p("onClientActivation",e),e}},t.trackCustomEvent=function(e,t,n){t=t||{},n||(n=$.getByApiName(e));var r=i(e,t,n),a={name:e,type:N.CUSTOM,category:r.eventCategory,tags:m.omit(r.eventTags,"revenue")};if(m.isUndefined(t.revenue)||(a.revenue=t.revenue),E.emitAnalyticsEvent({name:n?n.name||n.apiName:e,apiName:n?n.apiName:void 0,type:N.CUSTOM,tags:m.omit(r.eventTags,"revenue"),category:r.eventCategory,metrics:a.revenue?{revenue:a.revenue}:{}},!X.shouldSendTrackingData()),X.shouldSendTrackingData())return y.addEvent(a),p("onCustomEvent",r),r},t.trackDecisionEvent=function(e,t,n){n||(n=Y.get(e.layerId));var i=M.generate();O.dispatch(_.RECORD_LAYER_DECISION_EVENT_ID,{layerId:e.layerId,pageId:t.pageId,decisionId:i});var r=s(i,e,t,n),a=q.isExpectingRedirect(),o=q.getLayerId(),c=C.description(n);if(a&&o===n.id&&(k.persist(r,J),x.log("Relaying decision for redirect Campaign",c)),!X.shouldSendTrackingData())return void x.log("Analytics / Not tracking decision for Campaign",C.description(n));var l=u(r,e.isLayerHoldback);if(a&&o===n.id){var d=V.TrackLayerDecisionTimingFlags.preRedirectPolicy;l.timing=d,g(d,[V.PreRedirectPolicies.PERSIST_BEFORE_AND_TRACK_DURING_REDIRECT],l),x.log("Called trackLayerDecision for redirect Campaign",c,l)}else{var d=V.TrackLayerDecisionTimingFlags.nonRedirectPolicy;l.timing=d,g(d,[V.NonRedirectPolicies.TRACK_IMMEDIATELY],l),x.log("Called trackLayerDecision for non-redirect Campaign",c,l)}},t.trackPostRedirectDecisionEvent=function(){if(!X.shouldSendTrackingData())return L.resolve();if(K.hasTracked())return L.resolve();var e=K.get();if(!e)return L.resolve();var t=u(e,!1),n=V.TrackLayerDecisionTimingFlags.postRedirectPolicy;if(t.timing=n,g(n,[V.PostRedirectPolicies.TRACK_IMMEDIATELY],t),Z){var i=new L(function(e){var t=D.on({filter:{type:R.TYPES.LIFECYCLE,name:"originsSynced"},handler:function(){e(),D.off(t)}})}),r=F.makeTimeoutPromise(ee);return L.race([i,r]).then((function(){x.log("Calling trackers after successful sync")}),(function(e){x.warn("Calling trackers after failed sync:",e)})).then((function(){t=u(e,!1),t.timing=V.TrackLayerDecisionTimingFlags.postRedirectPolicy,g(V.TrackLayerDecisionTimingFlags.postRedirectPolicy,[V.PostRedirectPolicies.TRACK_AFTER_SYNC],t),O.dispatch(_.REGISTER_TRACKED_REDIRECT_DATA)}))["catch"]((function(e){x.error("Error when calling trackers after sync:",e)}))}return g(V.TrackLayerDecisionTimingFlags.postRedirectPolicy,[V.PostRedirectPolicies.TRACK_AFTER_SYNC],t),O.dispatch(_.REGISTER_TRACKED_REDIRECT_DATA),L.resolve()},t.trackClickEvent=function(e){var t=a(e),n={name:e.apiName,type:e.eventType,category:t.eventCategory,tags:t.eventTags};if(E.emitAnalyticsEvent({name:e.name||e.apiName,apiName:e?e.apiName:void 0,type:e.eventType,category:t.eventCategory,tags:t.eventTags,metrics:{}},!X.shouldSendTrackingData()),X.shouldSendTrackingData())return y.addEvent(n),p("onClickEvent",t),t},t.trackViewActivation=function(e,t){if(t||(t=j.getViewState(e.id)),!t.isActive)return void x.debug("Inactive view passed to `trackViewActivation`");var n=r(e,t);return E.emitAnalyticsEvent({name:e.name||n.pageApiName,apiName:n.pageApiName,type:N.PAGEVIEW,category:n.viewCategory,tags:n.eventTags,metrics:{}},!X.shouldSendTrackingData()),X.shouldSendTrackingData()?(y.addEvent({name:n.pageApiName,type:N.PAGEVIEW,category:n.viewCategory,tags:n.eventTags}),O.dispatch(_.TRACK_VIEW_ACTIVATED_EVENT,{pageId:e.id,eventData:n}),p("onPageActivated",n),n):void 0}}),(function(e,t){t.TYPES={ACTION:"action",ANALYTICS:"analytics",EDITOR:"editor",LIFECYCLE:"lifecycle"}}),(function(e,t){ e.exports={CLICK:"click",CUSTOM:"custom",ENGAGEMENT:"engagement",PAGEVIEW:"pageview"}}),(function(e,t,n){var i=n(2),r=n(7),a=n(24),o=n(16),s=n(9),u=o.get("stores/global"),c=o.get("stores/session"),l=2e3;t.recordLayerDecision=function(e,t,n){return s.dispatch(r.RECORD_LAYER_DECISION,{layerId:e,decision:n,decisionTicket:t,sessionId:c.getSessionId(),activationId:u.getActivationId(),timestamp:a.now(),revision:u.getRevision(),namespace:u.getNamespace(),pageId:t.pageId}),n},t.relatedAudienceIds=function(e){var t={},n=["and","or","not"];return i.each(e.experiments,(function(e){i.each(i.flattenDeep(e.audienceIds),(function(e){i.includes(n,e)||(t[e]=!0)}))})),i.keys(t)},t.getActivationTimeout=function(e){var t=e.activation;return t&&null!==t.timeout&&void 0!==t.timeout?t.timeout:l},t.description=function(e){return(e.name?'"'+e.name+'" ':"")+"("+e.id+")"},t.createSingle=function(e,t,n){var i={id:e,policy:"single_experiment",holdback:0,experiments:[{id:t||"",variations:[{id:n||"",actions:[]}]}],integrationStringVersion:1};return i},t.createLayerState=function(e,t,n,i){var r={layerId:e,decision:{layerId:e,experimentId:t,variationId:n,isLayerHoldback:i||!1},decisionTicket:{audienceIds:[]}};return r},t.getIntegrationTypes=function(e){return i.keys(i.reduce(i.keys(e.integrationSettings),(function(e,t){return i.isNaN(Number(t))||(t="custom"),e[t]=1,e}),{}))}}),(function(e,t,n){function i(e){try{var t=r(e)}catch(e){return m.error("Relay / Error computing redirect relay cookie: ",e),void p.emitError(e)}m.debug("Relay / Setting redirect relay cookie:",t);try{f.set(g.COOKIES.REDIRECT,t,{maxAge:5,encodeValue:!1})}catch(e){m.error("Relay / Failed to set redirect relay cookie",e),p.emitError(e)}}function r(e){var t=[],n=l.reduce(e,(function(e,n,i){var r=S[i];return r?(r.isMulti?l.forEach(n,(function(t,n){t=r.valueToValueString?r.valueToValueString(t,n):String(t),l.isNull(t)||(t=(r.encodeValueString||encodeURIComponent)(t),e.push(encodeURIComponent(r.relayName+y+n)+"="+t))})):l.isNull(n)||(n=(r.valueToValueString||String)(n),n=(r.encodeValueString||encodeURIComponent)(n),e.push(r.relayName+"="+n)),e):(t.push(i),e)}),[]);if(t.length)throw new Error("Relay / Don't know how to relay some fields:",t);return n.sort(),n.join("&")}function a(){var e=f.get(g.COOKIES.REDIRECT,!1);if(e)return m.log("Relay / Found redirect cookie:",e),e}function o(e){var t={},n=e.split("&");return l.forEach(n,(function(e){var n=e.split("=");if(2!==n.length)return void m.warn("Relay / Skipping invalid segment:",e);var i=f.safeDecodeURIComponent(n[0]),r=T[i];if(!r&&(r=l.find(I,(function(e){return e.isMulti&&0===i.indexOf(e.relayName+y)})),!r))return void m.warn("Relay / Skipping segment with unknown field identifier:",e,i);var a=n[1];try{if(r.isMulti){t[r.name]=t[r.name]||{};var o=i.substring(r.relayName.length+y.length);a=(r.decodeValueString||f.safeDecodeURIComponent)(a),a=(r.valueFromValueString||l.identity)(a,o),t[r.name][o]=a}else a=(r.decodeValueString||f.safeDecodeURIComponent)(a),a=(r.valueFromValueString||l.identity)(a),t[r.name]=a}catch(t){return m.warn("Relay / Skipping segment due to decode or parse error:",e,t),void p.emitError(t)}})),t}function s(e,t){var n=null;if(e){var i=E.getPlugin(g.PluginTypes.analyticsTrackers,t);if(i&&l.isFunction(i.serializeSettings))try{n=i.serializeSettings(e)}catch(e){m.warn("Analytics / Failed to persist integrationSettings for plugin:",t,e)}}return n}function u(e,t){var n=null,i=E.getPlugin(g.PluginTypes.analyticsTrackers,t);if(i&&l.isFunction(i.deserializeSettings))try{n=i.deserializeSettings(e)}catch(e){m.warn("Analytics / Failed to persist integrationSettings for plugin:",t,e)}return n}function c(e){var t=e.pageId||void 0;v.dispatch(d.RECORD_LAYER_DECISION,{layerId:e.layerId,decision:{layerId:e.layerId,experimentId:e.experimentId,variationId:e.variationId,isLayerHoldback:!1},decisionTicket:{audienceIds:e.decisionTicketAudienceIds,bucketingId:e.visitorId,globalHoldback:0,preferredVariationMap:void 0,pageId:t,activationId:e.activationId},sessionId:e.sessionId,activationId:e.activationId,timestamp:e.timestamp,revision:e.revision,namespace:e.namespace,pageId:t}),v.dispatch(d.RECORD_LAYER_DECISION_EVENT_ID,{layerId:e.layerId,pageId:t,decisionId:e.decisionId}),v.dispatch(d.ACTION_EXECUTED,{sessionId:e.sessionId,layerId:e.layerId,pageId:e.pageId,timestamp:e.timestamp,activationId:e.activationId})}var l=n(2),d=n(7),f=n(75),p=n(86),h=n(16),g=n(25),v=n(9),m=n(23),_=n(115),E=h.get("stores/plugins"),y=".",I=[{name:"sessionId",relayName:"s"},{name:"decisionTicketAudienceIds",relayName:"as",valueToValueString:function(e){return l.map(e,encodeURIComponent).join(",")},encodeValueString:l.identity,decodeValueString:l.identity,valueFromValueString:function(e){return l.map(e.split(","),f.safeDecodeURIComponent)}},{name:"decisionId",relayName:"d"},{name:"activationId",relayName:"aId"},{name:"pageId",relayName:"vId",isNullable:!0},{name:"variationId",relayName:"v",isNullable:!0},{name:"referrer",relayName:"r"},{name:"timestamp",relayName:"t",valueFromValueString:Number},{name:"visitorId",relayName:"i"},{name:"projectId",relayName:"p"},{name:"revision",relayName:"n"},{name:"clientName",relayName:"cN",isNullable:!0},{name:"clientVersion",relayName:"cV"},{name:"namespace",relayName:"ns"},{name:"accountId",relayName:"a"},{name:"layerId",relayName:"l"},{name:"layerName",relayName:"lN",isNullable:!0},{name:"layerPolicy",relayName:"lP"},{name:"experimentId",relayName:"x",isNullable:!0},{name:"experimentName",relayName:"xN",isNullable:!0},{name:"variationName",relayName:"vN",isNullable:!0},{name:"integrationStringVersion",relayName:"isv",valueFromValueString:Number,isNullable:!0},{name:"integrationSettings",relayName:"iS",isMulti:!0,valueToValueString:s,valueFromValueString:u,isNullable:!0}],S={},T={};l.forEach(I,(function(e){S[e.name]=e,T[e.relayName]=e})),t.persist=function(e,t){t===_.RedirectRelayMedia.COOKIE?i(e):m.error("Relay / Unsupported redirect relay medium: "+t)},t.load=function(e){if(e||(e=a()),e){var t=o(e);if(t){var n=[];return l.forEach(I,(function(e){(l.isNull(t[e.name])||l.isUndefined(t[e.name]))&&(e.isNullable?t[e.name]=null:(delete t[e.name],n.push(e.name)))})),n.length?void m.error("Relay / Observed redirect data with missing fields:",n):(v.dispatch(d.LOAD_REDIRECT_DATA,t),v.dispatch(d.ADD_CLEANUP_FN,{lifecycle:g.Lifecycle.postVisitorProfileLoad,cleanupFn:function(){c(t)}}),t)}}}}),(function(e,t,n){var i=n(8);t.TrackLayerDecisionTimingFlags=i({preRedirectPolicy:null,postRedirectPolicy:null,nonRedirectPolicy:null}),t.PreRedirectPolicies=i({PERSIST_BEFORE_AND_TRACK_DURING_REDIRECT:null,PERSIST_BEFORE_REDIRECT:null}),t.PostRedirectPolicies=i({TRACK_IMMEDIATELY:null,TRACK_AFTER_SYNC:null}),t.NonRedirectPolicies=i({TRACK_IMMEDIATELY:null}),t.RedirectRelayMedia=i({COOKIE:null})}),(function(e,t,n){var i=n(12).Promise,r=n(40);t.makeTimeoutPromise=function(e){return new i(function(t,n){r.setTimeout((function(){n(new Error("Timed out after "+e+" ms"))}),e)})}}),(function(e,t,n){function i(e){var t=["type","selector","attributes","value"],n=r.extend({},e);return n.changeSet=r.map(e.changeSet,(function(e){return r.pick(l.dereferenceChangeId(e),t)})),n}var r=n(2),a=n(16),o=a.get("stores/audience_data"),s=n(87),u=n(111),c=n(96),l=n(98);t.emitLayerDecided=function(e){var t=e.decisionTicket?e.decisionTicket.audienceIds:[],n=r.map(t,(function(e){return{id:e,name:o.get(e).name}})),i={type:u.TYPES.LIFECYCLE,name:"layerDecided",data:r.extend(e,{audiences:n})},a=l.translateLayerEventToCampaignEvent(i);s.emit(i),s.emit(a)},t.emitViewActivated=function(e){var t={type:u.TYPES.LIFECYCLE,name:"viewActivated",data:e},n=l.translateViewActivatedToPageActivated(t);s.emit(t),s.emit(n)},t.emitViewsActivated=function(e){var t={type:u.TYPES.LIFECYCLE,name:"viewsActivated",data:e};s.emit(t)},t.emitPageDeactivated=function(e){var t={type:u.TYPES.LIFECYCLE,name:"pageDeactivated",data:e};s.emit(t)},t.emitActivateEvent=function(){s.emit({type:u.TYPES.LIFECYCLE,name:"activate"},!0)},t.emitActivatedEvent=function(){s.emit({type:u.TYPES.LIFECYCLE,name:"activated"})},t.emitInitializedEvent=function(){var e={type:u.TYPES.LIFECYCLE,name:"initialized"};window.optimizely&&(window.optimizely.initialized=!0),s.emit(e)},t.emitOriginsSyncedEvent=function(){var e={type:u.TYPES.LIFECYCLE,name:"originsSynced"};s.emit(e)},t.emitActionAppliedEvent=function(e){var t={type:e.type,campaignId:e.layerId,pageId:e.pageId,experimentId:e.experimentId,variationId:e.variationId};c.defineProperty(t,"changes",(function(){return i(e).changeSet}),"actionAppliedEvent");var n={type:u.TYPES.ACTION,name:"applied",data:t};s.emit(n)},t.emitActionsForDecisionAppliedEvent=function(e,t){var n={decision:e};c.defineProperty(n,"actions",(function(){return r.map(t,i)}),"appliedAllForDecisionEvent");var a={type:u.TYPES.ACTION,name:"appliedAllForDecision",data:n};s.emit(a)},t.emitSendEvents=function(){var e={type:u.TYPES.ANALYTICS,name:"sendEvents"};s.emit(e)},t.emitHoldEvents=function(){var e={type:u.TYPES.ANALYTICS,name:"holdEvents"};s.emit(e)}}),(function(e,t,n){function i(){var e=Boolean(E.result(window.optimizely,"initialized"));b.dispatch(y.LOAD_DIRECTIVE,{alreadyInitialized:e})}function r(){b.dispatch(y.LOAD_DIRECTIVE,{mutationObserverAPISupported:O.isMutationObserverAPISupported()})}function a(){var e=O.getUserAgent()||"";if(!E.isString(e))return void w.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(E.includes(e,t))return w.warn("Directive / Matches bot:",t),!0};E.some(t,n)&&(w.log("Directive / Disabling tracking"),b.dispatch(y.LOAD_DIRECTIVE,{trackingDisabled:!0}))}function o(){var e=S.get(A.COOKIES.OPT_OUT),t=R.getQueryParamValue(C.OPT_OUT),n="You have successfully opted out of Optimizely for this domain.",i="You are NOT opted out of Optimizely for this domain.",r="true"===t||"false"===t;if(r){var a="true"===t;b.dispatch(y.LOAD_DIRECTIVE,{shouldOptOut:a}),O.alert(a?n:i)}else e&&b.dispatch(y.LOAD_DIRECTIVE,{shouldOptOut:"true"===e})}function s(){var e=!1,t=[C.AB_PREVIEW,C.DISABLE];t.push(C.EDITOR);for(var n=0;n<t.length;n++)if("true"===R.getQueryParamValue(t[n])){w.warn("Directive / Not activating because "+t[n]+" is set."),e=!0;break}b.dispatch(y.LOAD_DIRECTIVE,{disabled:e})}function u(){b.dispatch(y.LOAD_DIRECTIVE,{isPreview:!1})}function c(){var e=R.getQueryParamValue(C.LEGACY_PREVIEW);e&&w.log("Directive / Is legacy preview mode"),b.dispatch(y.LOAD_DIRECTIVE,{isLegacyPreview:!!e})}function l(){b.dispatch(y.LOAD_DIRECTIVE,{isEditor:!1})}function d(){b.dispatch(y.LOAD_DIRECTIVE,{isSlave:!1})}function f(){var e=O.getGlobal("optlyDesktop"),t=!(!e||E.isUndefined(e["p13nInner"]));t&&w.log("Directive / Is running in desktop app editor"),b.dispatch(y.LOAD_DIRECTIVE,{isRunningInDesktopApp:t})}function p(){var e="true"===R.getQueryParamValue(C.EDITOR_V2);e&&w.log("Directive / Is running in editor"),b.dispatch(y.LOAD_DIRECTIVE,{isRunningInV2Editor:e})}function h(){var e=S.get(A.COOKIES.TOKEN)||null,t=R.getQueryParamValue(C.TOKEN)||e;b.dispatch(y.LOAD_DIRECTIVE,{projectToken:t})}function g(){var e=S.get(A.COOKIES.PREVIEW),t=[],n=R.getQueryParamValue(C.FORCE_AUDIENCES);if(n)t=S.safeDecodeURIComponent(n).split(",");else if(e)try{var i=N.parse(e);t=i.forceAudienceIds}catch(t){var r=new D("Failed to parse previewCookie in registerForceAudienceIds: "+e),a={originalMessage:t.message,userError:!0};I.emitError(r,a)}t.length&&(w.log("Directive / Force Audience IDs:",t),b.dispatch(y.LOAD_DIRECTIVE,{forceAudienceIds:t}))}function v(){var e=S.get(A.COOKIES.PREVIEW),t=[],n=R.getQueryParamValue(C.FORCE_VARIATIONS);if(n)t=S.safeDecodeURIComponent(n).split(",");else if(e)try{var i=N.parse(e);t=i.forceVariationIds}catch(t){var r=new D("Failed to parse previewCookie in registerForceVariationIds: "+e),a={originalMessage:t.message,userError:!0};I.emitError(r,a)}t.length&&(w.log("Directive / Force Variation IDs:",t),b.dispatch(y.LOAD_DIRECTIVE,{forceVariationIds:t}))}function m(){var e=R.getQueryParamValue(C.FORCE_TRACKING);e&&b.dispatch(y.LOAD_DIRECTIVE,{forceTracking:e})}function _(){var e="OFF",t=R.getQueryParamValue("optimizely_log");if(t){var n=t.split(":");""!==n[0]&&(e=String(n[0]).toUpperCase()),"undefined"!=typeof n[1]&&w.setLogMatch(n[1])}w.setLogLevel(e)}var E=n(2),y=n(7),I=n(86),S=n(75),T=n(76).create,A=n(25),b=n(9),w=n(23),D=t.JSONParseError=T("JSONParseError"),R=n(119),N=n(26),O=n(40),C={AB_PREVIEW:"optimizely_show_preview",DISABLE:"optimizely_disable",EDITOR:"optimizely_editor",EDITOR_V2:"optimizely_p13n",FORCE_AUDIENCES:"optimizely_x_audiences",FORCE_VARIATIONS:"optimizely_x",LEGACY_PREVIEW:"optimizely_show_preview",OPT_OUT:"optimizely_opt_out",PREVIEW_LAYER_IDS:"optimizely_preview_layer_ids",TOKEN:"optimizely_token",FORCE_TRACKING:"optimizely_force_tracking"};t.populateDirectiveData=function(){_(),a(),i(),r(),o(),s(),l(),u(),c(),d(),f(),p(),h(),g(),v(),m()};var x=31536e3;t.setOptOut=function(e){e?(w.warn("Directive / Opting out"),S.set(A.COOKIES.OPT_OUT,"true",{maxAge:10*x},!0)):S.remove(A.COOKIES.OPT_OUT),b.dispatch(y.LOAD_DIRECTIVE,{shouldOptOut:e})}}),(function(e,t,n){var i=n(84),r=n(40);t.getLanguage=function(){return r.getNavigatorLanguage()},t.getQueryParams=i.getQueryParams,t.getQueryParamValue=i.getQueryParamValue,t.getUrl=function(){return r.getHref()}}),(function(e,t,n){function i(e){return e&&e.engine?e.engine:v?"edge-tracking":g?"edge-helper":f.getClientName()}var r=n(2),a=n(76).BaseError,o=n(24),s=n(16),u=n(80),c=n(23),l=n(40),d=n(91),f=s.get("stores/client_metadata"),p=s.get("stores/global"),h="https://errors.client.optimizely.com",g=!1,v=!1;t.handleError=function(e,t){function n(){return d.request({url:h+"/log",method:"POST",data:m,contentType:"application/json"}).then((function(e){c.log("Error Monitor / Logged error with response: ",e)}),(function(e){c.error("Failed to log error, response was: ",e)}))}var s=e.name||"Error",g=e.message||"",v=e.stack||null;e instanceof a&&(g instanceof Error?(g=g.message,v=e.message.stack):v=null);var m={timestamp:o.now(),clientEngine:i(t),clientVersion:f.getClientVersion(),accountId:p.getAccountId(),projectId:p.getProjectId(),errorClass:s,message:g,stacktrace:v},_=r.map(p.getExperimental(),(function(e,t){return{key:"exp_"+t,value:String(e)}}));t&&r.forEach(t,(function(e,t){r.isObject(e)||_.push({key:t,value:String(e)})}),[]),r.isEmpty(_)||(m.metadata=_),c.error("Logging error",m),u.isLoaded()?n():l.addEventListener("load",n)}}),(function(e,t,n){var i=n(2);t.create=function(e,t,n,r){var a=i.extend({category:"other"},r,{id:e,apiName:t,eventType:n});return a}}),(function(e,t,n){var i=n(2),r=n(7),a=n(16),o=n(25),s=n(87),u=n(9);t.registerApiModule=function(e,t){i.isArray(t)&&(t=a.evaluate(t)),u.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.apiModules,name:e,plugin:t})},t.registerDependency=function(e,t){var n=a.get(e);n||a.register(e,t)},t.registerVisitorProfileProvider=function(e){u.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.visitorProfileProviders,name:e.provides,plugin:e})},t.registerViewProvider=function(e){u.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.viewProviders,name:e.provides,plugin:e})},t.registerAudienceMatcher=function(e,t){u.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.audienceMatchers,name:e,plugin:t})},t.registerViewMatcher=function(e,t){u.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.viewMatchers,name:e,plugin:t})},t.registerAnalyticsTracker=function(e,t){u.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.analyticsTrackers,name:e,plugin:t})},t.registerViewTagLocator=function(e,t){u.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.viewTagLocators,name:e,plugin:t})},t.registerAudiencePlugin=function(e){e.dependencies&&i.each(e.dependencies,(function(e,n){t.registerDependency(n,e)}));var n,r="vendor."+e.vendor;n=i.isString(e.provider)?a.get(e.provider)(e.vendor):i.isFunction(e.provider)?e.provider(e.vendor):i.cloneDeep(e.provider),t.registerVisitorProfileProvider(i.extend(n,{provides:r}));var o;o=i.isString(e.matcher)?a.get(e.matcher):e.matcher;var s={fieldsNeeded:[r],match:function(e,t){return o(e[r],t)}};t.registerAudienceMatcher(r,s)},t.registerWidget=function(e){i.isArray(e)&&(e=a.evaluate(e));var t=s.on({filter:{type:"showWidget",name:e.widgetId},handler:e.showFn}),n=s.on({filter:{type:"hideWidget",name:e.widgetId},handler:e.hideFn});return{showToken:t,hideToken:n}},t.registerChangeApplier=function(e,t){u.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.changeAppliers,name:e,plugin:t})},t.registerDecider=function(e,t){u.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.deciders,name:e,plugin:t})},t.registerEventImplementation=function(e,t){u.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.eventImplementations,name:e,plugin:t})},t.registerViewTrigger=function(e,t){u.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.viewTriggers,name:e,plugin:t})}}),(function(e,t,n){function i(e,t){r.forEach(e,(function(e){if(e.eventType!==d.CUSTOM){var n=v.getPlugin(l.PluginTypes.eventImplementations,e.eventType);n?t?n.attach(e):n.detach(e):p.warn("No implementation found for event type:",e.eventType,"needed for event:",e)}}))}var r=n(2),a=n(7),o=n(117),s=n(124),u=n(24),c=n(16),l=n(25),d=n(112),f=n(9),p=n(23),h=n(125),g=c.get("stores/event_data"),v=c.get("stores/plugins"),m=c.get("stores/rum"),_=c.get("stores/view"),E=c.get("stores/view_data");t.parseViewTags=function(e){var n=t.evaluateViewTags(e);t.setParsedViewTags(e.id,n)},t.updateAllViewTags=function(){var e=_.getActiveViewStates();r.each(e,(function(e){var n=E.get(e.id);t.parseViewTags(n)}))},t.evaluateViewTags=function(e){if(!e.tags)return{};var t=r.reduce(e.tags,(function(e,t){try{e[t.apiName]=h.getTagValue(t)}catch(e){e instanceof h.Error?p.warn("Page / Ignoring unparseable tag",t,e):p.error(e)}return e}),{});return t},t.createViewTicket=function(){var e={};return r.each(v.getAllPlugins(l.PluginTypes.viewProviders),(function(t){e[t.provides]=c.evaluate(t.getter)})),e},t.registerViews=function(e){f.dispatch(a.REGISTER_VIEWS,{views:e})},t.activateViaAPI=function(e,n){n&&t.setUserSuppliedViewTags(e.id,n),t.activateMultiple([e],n)},t.getViewsAndActivate=function(e){var n=E.getAllViewsForActivationType(e);t.activateMultiple(n)},t.activateMultiple=function(e,n){var s=[];return r.each(e,(function(e){var u,c=_.getViewState(e.id),d=t.createViewTicket();if(c.isActive)if(e.deactivationEnabled)try{t.hasValidStaticConditions(e,d)||t.deactivate(e)}catch(n){p.error("Page / Error evaluating whether to deactivate page ",t.description(e),n)}else p.log("Not activating Page, already active ",t.description(e));else{try{if(u=t.hasValidStaticConditions(e,d),!u)return r.isBoolean(c.isActive)||t.setViewActiveState(e,!1),void p.log("Page / Failed to match page conditions for "+t.description(e),e.staticConditions)}catch(n){return r.isBoolean(c.isActive)||t.setViewActiveState(e,!1),void p.error("Page / Error evaluating whether to activate page ",t.description(e),n)}if(s.push(e),t.setViewActiveState(e,!0),p.log("Activated Page",t.description(e)),o.emitViewActivated({view:e,metadata:n}),m.getSampleRum()){var h=e.activationType||l.ViewActivationTypes.immediate;f.dispatch(a.RECORD_ACTIVATION_TYPE_USAGE,{activationType:h,entityId:e.id})}var v=g.getByPageId(e.id);i(v,!0)}})),r.isEmpty(s)||o.emitViewsActivated({views:s}),s},t.deactivate=function(e){var n=_.getViewState(e.id);if(!n.isActive)return void p.log("Not deactivating Page, already inactive ",t.description(e));t.setViewActiveState(e,!1),p.log("Deactivated Page",t.description(e)),o.emitPageDeactivated({page:e});var r=g.getByPageId(e.id);i(r,!1)},t.setViewActiveState=function(e,t){f.dispatch(a.SET_VIEW_ACTIVE_STATE,{view:e,timestamp:u.now(),isActive:t})},t.setGlobalTags=function(e){f.dispatch(a.SET_GLOBAL_TAGS,e)},t.setParsedViewTags=function(e,t){f.dispatch(a.UPDATE_PARSED_VIEW_METADATA,{pageId:e,metadata:t})},t.setUserSuppliedViewTags=function(e,t){f.dispatch(a.UPDATE_USER_SUPPLIED_METADATA,{pageId:e,metadata:t})},t.hasValidStaticConditions=function(e,t){var n={};if(r.isEmpty(e.staticConditions))return!0;var i=v.getAllPlugins(l.PluginTypes.viewMatchers);p.groupCollapsed("Page / Evaluating staticConditions:",e.staticConditions),p.debug("Matching to current value:",t);var o=s.evaluate(e.staticConditions,(function(e){var r=e.type,a=i[r];if(!a)throw new Error("Page / No matcher found for type="+r);return a&&(n[e.type]||(n[e.type]=!0)),a.match(t,e)}));return p.groupEnd(),m.getSampleRum()&&o&&f.dispatch(a.RECORD_VIEW_FEATURE_USAGE,{featuresUsed:r.keys(n),entityId:e.id}),o},t.description=function(e){return'"'+e.name+'" ('+e.id+")"},t.isActivationTypeImmediate=function(e){return e===l.ViewActivationTypes.immediate||!e},t.shouldTriggerImmediately=function(e){return e===l.ViewActivationTypes.DOMChanged||e===l.ViewActivationTypes.URLChanged||e===l.ViewActivationTypes.immediate||!e},t.create=function(e,t){var n={id:e,apiName:t,category:"other"};return n},t.createState=function(e){var t={id:e,isActive:!0,metadata:{},parsedMetadata:{},userSuppliedMetadata:{}};return t}}),(function(e,t,n){function i(e,t){for(var n,i,r=0;r<e.length;r++){if(n=o(e[r],t),n===!1)return!1;s.isUndefined(n)&&(i=!0)}if(!i)return!0}function r(e,t){for(var n,i=!1,r=0;r<e.length;r++){if(n=o(e[r],t),n===!0)return!0;s.isUndefined(n)&&(i=!0)}if(!i)return!1}function a(e,t){if(1!==e.length)return!1;var n=o(e[0],t);return s.isUndefined(n)?void 0:!n}function o(e,t){var n;if(s.isArray(e)){var i,r;e[0]in d?(i=e[0],r=e.slice(1)):(i=l.OR,r=e),c.groupCollapsed('Condition / Applying operator "'+i+'" with args',u.stringify(r));try{n=d[i](r,t),c.debug("Condition / Result:",n)}finally{c.groupEnd()}return n}return n=t(e),c.debug("Condition / Evaluated:",u.stringify(e),":",n),n}var s=n(2),u=n(26),c=n(23),l={AND:"and",OR:"or",NOT:"not"},d={};d[l.AND]=i,d[l.OR]=r,d[l.NOT]=a,e.exports={evaluate:o}}),(function(e,t,n){var i=n(25).PluginTypes,r=n(16),a=r.get("stores/plugins");t.getTagValue=function(e){var n=a.getPlugin(i.viewTagLocators,e.locatorType);if(!n)throw new t.Error("No locator registered for tag locatorType: "+e.locatorType);return n(e)},t.enums=n(126),t.Error=n(127).Error}),(function(e,t){t.locatorType={CSS_SELECTOR:"css_selector",JAVASCRIPT:"javascript",URL_REGEX:"url_regex"},t.valueType={STRING:"string",NUMBER:"number",CURRENCY:"currency"},t.nodeNames={INPUT:"INPUT",SELECT:"SELECT"}}),(function(e,t,n){var i=n(76).create;t.Error=i("TagError")}),(function(e,t){}),(function(e,t,n){var i=n(16);i.register("env/jquery",n(130))}),(function(e,t,n){n(40);e.exports=n(131)}),(function(e,t){/*! * jQuery JavaScript Library v1.6.4 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * * */ var n=(function(e,t){function n(e,n,i){if(i===t&&1===e.nodeType){var r="data-"+n.replace(B,"-$1").toLowerCase();if(i=e.getAttribute(r),"string"==typeof i){try{i="true"===i||"false"!==i&&("null"===i?null:F.isNaN(i)?U.test(i)?F.parseJSON(i):i:parseFloat(i))}catch(e){}F.data(e,n,i)}else i=t}return i}function i(e){for(var t in e)if("toJSON"!==t)return!1;return!0}function r(e,n,i){var r=n+"defer",a=n+"queue",o=n+"mark",s=F.data(e,r,t,!0);!s||"queue"!==i&&F.data(e,a,t,!0)||"mark"!==i&&F.data(e,o,t,!0)||setTimeout((function(){F.data(e,a,t,!0)||F.data(e,o,t,!0)||(F.removeData(e,r,!0),s.resolve())}),0)}function a(){return!1}function o(){return!0}function s(e,n,i){var r=F.extend({},i[0]);r.type=e,r.originalEvent={},r.liveFired=t,F.event.handle.call(n,r),r.isDefaultPrevented()&&i[0].preventDefault()}function u(e){var t,n,i,r,a,o,s,u,c,l,d,f,p=[],h=[],g=F._data(this,"events");if(e.liveFired!==this&&g&&g.live&&!e.target.disabled&&(!e.button||"click"!==e.type)){e.namespace&&(d=new RegExp("(^|\\.)"+e.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),e.liveFired=this;var v=g.live.slice(0);for(s=0;s<v.length;s++)a=v[s],a.origType.replace($,"")===e.type?h.push(a.selector):v.splice(s--,1);for(r=F(e.target).closest(h,e.currentTarget),u=0,c=r.length;u<c;u++)for(l=r[u],s=0;s<v.length;s++)a=v[s],l.selector!==a.selector||d&&!d.test(a.namespace)||l.elem.disabled||(o=l.elem,i=null,"mouseenter"!==a.preType&&"mouseleave"!==a.preType||(e.type=a.preType,i=F(e.relatedTarget).closest(a.selector)[0],i&&F.contains(o,i)&&(i=o)),i&&i===o||p.push({elem:o,handleObj:a,level:l.level}));for(u=0,c=p.length;u<c&&(r=p[u],!(n&&r.level>n))&&(e.currentTarget=r.elem,e.data=r.handleObj.data,e.handleObj=r.handleObj,f=r.handleObj.origHandler.apply(r.elem,arguments),f!==!1&&!e.isPropagationStopped()||(n=r.level,f===!1&&(t=!1),!e.isImmediatePropagationStopped()));u++);return t}}function c(e,t){return(e&&"*"!==e?e+".":"")+t.replace(J,"`").replace(Z,"&")}function l(e){return!e||!e.parentNode||11===e.parentNode.nodeType}function d(e,t,n){if(t=t||0,F.isFunction(t))return F.grep(e,(function(e,i){var r=!!t.call(e,i,e);return r===n}));if(t.nodeType)return F.grep(e,(function(e,i){return e===t===n}));if("string"==typeof t){var i=F.grep(e,(function(e){return 1===e.nodeType}));if(de.test(t))return F.filter(t,i,!n);t=F.filter(t,i)}return F.grep(e,(function(e,i){return F.inArray(e,t)>=0===n}))}function f(e,t){return F.nodeName(e,"table")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function p(e,t){if(1===t.nodeType&&F.hasData(e)){var n=F.expando,i=F.data(e),r=F.data(t,i);if(i=i[n]){var a=i.events;if(r=r[n]=F.extend({},i),a){delete r.handle,r.events={};for(var o in a)for(var s=0,u=a[o].length;s<u;s++)F.event.add(t,o+(a[o][s].namespace?".":"")+a[o][s].namespace,a[o][s],a[o][s].data)}}}}function h(e,t){var n;1===t.nodeType&&(t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),n=t.nodeName.toLowerCase(),"object"===n?t.outerHTML=e.outerHTML:"input"!==n||"checkbox"!==e.type&&"radio"!==e.type?"option"===n?t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue):(e.checked&&(t.defaultChecked=t.checked=e.checked),t.value!==e.value&&(t.value=e.value)),t.removeAttribute(F.expando))}function g(e){return"getElementsByTagName"in e?e.getElementsByTagName("*"):"querySelectorAll"in e?e.querySelectorAll("*"):[]}function v(e){"checkbox"!==e.type&&"radio"!==e.type||(e.defaultChecked=e.checked)}function m(e){F.nodeName(e,"input")?v(e):"getElementsByTagName"in e&&F.grep(e.getElementsByTagName("input"),v)}function _(e,t){t.src?F.ajax({url:t.src,async:!1,dataType:"script"}):F.globalEval((t.text||t.textContent||t.innerHTML||"").replace(Ae,"/*$0*/")),t.parentNode&&t.parentNode.removeChild(t)}function E(e,t,n){var i="width"===t?e.offsetWidth:e.offsetHeight,r="width"===t?Fe:Ve;return i>0?("border"!==n&&F.each(r,(function(){n||(i-=parseFloat(F.css(e,"padding"+this))||0),"margin"===n?i+=parseFloat(F.css(e,n+this))||0:i-=parseFloat(F.css(e,"border"+this+"Width"))||0})),i+"px"):(i=we(e,t,t),(i<0||null==i)&&(i=e.style[t]||0),i=parseFloat(i)||0,n&&F.each(r,(function(){i+=parseFloat(F.css(e,"padding"+this))||0,"padding"!==n&&(i+=parseFloat(F.css(e,"border"+this+"Width"))||0),"margin"===n&&(i+=parseFloat(F.css(e,n+this))||0)})),i+"px")}function y(e){return function(t,n){if("string"!=typeof t&&(n=t,t="*"),F.isFunction(n))for(var i,r,a,o=t.toLowerCase().split(Je),s=0,u=o.length;s<u;s++)i=o[s],a=/^\+/.test(i),a&&(i=i.substr(1)||"*"),r=e[i]=e[i]||[],r[a?"unshift":"push"](n)}}function I(e,n,i,r,a,o){a=a||n.dataTypes[0],o=o||{},o[a]=!0;for(var s,u=e[a],c=0,l=u?u.length:0,d=e===nt;c<l&&(d||!s);c++)s=u[c](n,i,r),"string"==typeof s&&(!d||o[s]?s=t:(n.dataTypes.unshift(s),s=I(e,n,i,r,s,o)));return!d&&s||o["*"]||(s=I(e,n,i,r,"*",o)),s}function S(e,n){var i,r,a=F.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((a[i]?e:r||(r={}))[i]=n[i]);r&&F.extend(!0,e,r)}function T(e,t,n,i){if(F.isArray(t))F.each(t,(function(t,r){n||Ge.test(e)?i(e,r):T(e+"["+("object"==typeof r||F.isArray(r)?t:"")+"]",r,n,i)}));else if(n||null==t||"object"!=typeof t)i(e,t);else for(var r in t)T(e+"["+r+"]",t[r],n,i)}function A(e,n,i){var r,a,o,s,u=e.contents,c=e.dataTypes,l=e.responseFields;for(a in l)a in i&&(n[l[a]]=i[a]);for(;"*"===c[0];)c.shift(),r===t&&(r=e.mimeType||n.getResponseHeader("content-type"));if(r)for(a in u)if(u[a]&&u[a].test(r)){c.unshift(a);break}if(c[0]in i)o=c[0];else{for(a in i){if(!c[0]||e.converters[a+" "+c[0]]){o=a;break}s||(s=a)}o=o||s}if(o)return o!==c[0]&&c.unshift(o),i[o]}function b(e,n){e.dataFilter&&(n=e.dataFilter(n,e.dataType));var i,r,a,o,s,u,c,l,d=e.dataTypes,f={},p=d.length,h=d[0];for(i=1;i<p;i++){if(1===i)for(r in e.converters)"string"==typeof r&&(f[r.toLowerCase()]=e.converters[r]);if(o=h,h=d[i],"*"===h)h=o;else if("*"!==o&&o!==h){if(s=o+" "+h,u=f[s]||f["* "+h],!u){l=t;for(c in f)if(a=c.split(" "),(a[0]===o||"*"===a[0])&&(l=f[a[1]+" "+h])){c=f[c],c===!0?u=l:l===!0&&(u=c);break}}u||l||F.error("No conversion from "+s.replace(" "," to ")),u!==!0&&(n=u?u(n):l(c(n)))}}return n}function w(){try{return new e.XMLHttpRequest}catch(e){}}function D(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function R(){return setTimeout(N,0),pt=F.now()}function N(){pt=t}function O(e,t){var n={};return F.each(mt.concat.apply([],mt.slice(0,t)),(function(){n[this]=e})),n}function C(e){if(!ht[e]){var t=L.body,n=F("<"+e+">").appendTo(t),i=n.css("display");n.remove(),"none"!==i&&""!==i||(lt||(lt=L.createElement("iframe"),lt.frameBorder=lt.width=lt.height=0),t.appendChild(lt),dt&<.createElement||(dt=(lt.contentWindow||lt.contentDocument).document,dt.write(("CSS1Compat"===L.compatMode?"<!doctype html>":"")+"<html><body>"),dt.close()),n=dt.createElement(e),dt.body.appendChild(n),i=F.css(n,"display"),t.removeChild(lt)),ht[e]=i}return ht[e]}function x(e){return F.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var L=e.document,P=e.navigator,k=e.location,F=(function(){function n(){if(!s.isReady){try{L.documentElement.doScroll("left")}catch(e){return void setTimeout(n,1)}s.ready()}}var i,r,a,o,s=function(e,t){return new s.fn.init(e,t,i)},u=e.jQuery,c=e.$,l=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,d=/\S/,f=/^\s+/,p=/\s+$/,h=/\d/,g=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,v=/^[\],:{}\s]*$/,m=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,_=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,E=/(?:^|:|,)(?:\s*\[)+/g,y=/(webkit)[ \/]([\w.]+)/,I=/(opera)(?:.*version)?[ \/]([\w.]+)/,S=/(msie) ([\w.]+)/,T=/(mozilla)(?:.*? rv:([\w.]+))?/,A=/-([a-z]|[0-9])/gi,b=/^-ms-/,w=function(e,t){return(t+"").toUpperCase()},D=P.userAgent,R=Object.prototype.toString,N=Object.prototype.hasOwnProperty,O=Array.prototype.push,C=Array.prototype.slice,x=String.prototype.trim,k=Array.prototype.indexOf,F={};return s.fn=s.prototype={constructor:s,init:function(e,n,i){var r,a,o,u;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("body"===e&&!n&&L.body)return this.context=L,this[0]=L.body,this.selector=e,this.length=1,this;if("string"==typeof e){if(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:l.exec(e),!r||!r[1]&&n)return!n||n.jquery?(n||i).find(e):this.constructor(n).find(e);if(r[1])return n=n instanceof s?n[0]:n,u=n?n.ownerDocument||n:L,o=g.exec(e),o?s.isPlainObject(n)?(e=[L.createElement(o[1])],s.fn.attr.call(e,n,!0)):e=[u.createElement(o[1])]:(o=s.buildFragment([r[1]],[u]),e=(o.cacheable?s.clone(o.fragment):o.fragment).childNodes),s.merge(this,e);if(a=L.getElementById(r[2]),a&&a.parentNode){if(a.id!==r[2])return i.find(e);this.length=1,this[0]=a}return this.context=L,this.selector=e,this}return s.isFunction(e)?i.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),s.makeArray(e,this))},selector:"",jquery:"1.6.4",length:0,size:function(){return this.length},toArray:function(){return C.call(this,0)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var i=this.constructor();return s.isArray(e)?O.apply(i,e):s.merge(i,e),i.prevObject=this,i.context=this.context,"find"===t?i.selector=this.selector+(this.selector?" ":"")+n:t&&(i.selector=this.selector+"."+t+"("+n+")"),i},each:function(e,t){return s.each(this,e,t)},ready:function(e){return s.bindReady(),a.done(e),this},eq:function(e){return e===-1?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(C.apply(this,arguments),"slice",C.call(arguments).join(","))},map:function(e){return this.pushStack(s.map(this,(function(t,n){return e.call(t,n,t)})))},end:function(){return this.prevObject||this.constructor(null)},push:O,sort:[].sort,splice:[].splice},s.fn.init.prototype=s.fn,s.extend=s.fn.extend=function(){var e,n,i,r,a,o,u=arguments[0]||{},c=1,l=arguments.length,d=!1;for("boolean"==typeof u&&(d=u,u=arguments[1]||{},c=2),"object"==typeof u||s.isFunction(u)||(u={}),l===c&&(u=this,--c);c<l;c++)if(null!=(e=arguments[c]))for(n in e)i=u[n],r=e[n],u!==r&&(d&&r&&(s.isPlainObject(r)||(a=s.isArray(r)))?(a?(a=!1,o=i&&s.isArray(i)?i:[]):o=i&&s.isPlainObject(i)?i:{},u[n]=s.extend(d,o,r)):r!==t&&(u[n]=r));return u},s.extend({noConflict:function(t){return e.$===s&&(e.$=c),t&&e.jQuery===s&&(e.jQuery=u),s},isReady:!1,readyWait:1,holdReady:function(e){e?s.readyWait++:s.ready(!0)},ready:function(e){if(e===!0&&!--s.readyWait||e!==!0&&!s.isReady){if(!L.body)return setTimeout(s.ready,1);if(s.isReady=!0,e!==!0&&--s.readyWait>0)return;a.resolveWith(L,[s]),s.fn.trigger&&s(L).trigger("ready").unbind("ready")}},bindReady:function(){if(!a){if(a=s._Deferred(),"complete"===L.readyState)return setTimeout(s.ready,1);if(L.addEventListener)L.addEventListener("DOMContentLoaded",o,!1),e.addEventListener("load",s.ready,!1);else if(L.attachEvent){L.attachEvent("onreadystatechange",o),e.attachEvent("onload",s.ready);var t=!1;try{t=null==e.frameElement}catch(e){}L.documentElement.doScroll&&t&&n()}}},isFunction:function(e){return"function"===s.type(e)},isArray:Array.isArray||function(e){return"array"===s.type(e)},isWindow:function(e){return e&&"object"==typeof e&&"setInterval"in e},isNaN:function(e){return null==e||!h.test(e)||isNaN(e)},type:function(e){return null==e?String(e):F[R.call(e)]||"object"},isPlainObject:function(e){if(!e||"object"!==s.type(e)||e.nodeType||s.isWindow(e))return!1;try{if(e.constructor&&!N.call(e,"constructor")&&!N.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}var n;for(n in e);return n===t||N.call(e,n)},isEmptyObject:function(e){for(var t in e)return!1;return!0},error:function(e){throw e},parseJSON:function(t){return"string"==typeof t&&t?(t=s.trim(t),e.JSON&&e.JSON.parse?e.JSON.parse(t):v.test(t.replace(m,"@").replace(_,"]").replace(E,""))?new Function("return "+t)():void s.error("Invalid JSON: "+t)):null},parseXML:function(n){var i,r;try{e.DOMParser?(r=new DOMParser,i=r.parseFromString(n,"text/xml")):(i=new ActiveXObject("Microsoft.XMLDOM"),i.async="false",i.loadXML(n))}catch(e){i=t}return i&&i.documentElement&&!i.getElementsByTagName("parsererror").length||s.error("Invalid XML: "+n),i},noop:function(){},globalEval:function(t){t&&d.test(t)&&(e.execScript||function(t){e["eval"].call(e,t)})(t)},camelCase:function(e){return e.replace(b,"ms-").replace(A,w)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toUpperCase()===t.toUpperCase()},each:function(e,n,i){var r,a=0,o=e.length,u=o===t||s.isFunction(e);if(i)if(u){for(r in e)if(n.apply(e[r],i)===!1)break}else for(;a<o&&n.apply(e[a++],i)!==!1;);else if(u){for(r in e)if(n.call(e[r],r,e[r])===!1)break}else for(;a<o&&n.call(e[a],a,e[a++])!==!1;);return e},trim:x?function(e){return null==e?"":x.call(e)}:function(e){return null==e?"":e.toString().replace(f,"").replace(p,"")},makeArray:function(e,t){var n=t||[];if(null!=e){var i=s.type(e);null==e.length||"string"===i||"function"===i||"regexp"===i||s.isWindow(e)?O.call(n,e):s.merge(n,e)}return n},inArray:function(e,t){if(!t)return-1;if(k)return k.call(t,e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},merge:function(e,n){var i=e.length,r=0;if("number"==typeof n.length)for(var a=n.length;r<a;r++)e[i++]=n[r];else for(;n[r]!==t;)e[i++]=n[r++];return e.length=i,e},grep:function(e,t,n){var i,r=[];n=!!n;for(var a=0,o=e.length;a<o;a++)i=!!t(e[a],a),n!==i&&r.push(e[a]);return r},map:function(e,n,i){var r,a,o=[],u=0,c=e.length,l=e instanceof s||c!==t&&"number"==typeof c&&(c>0&&e[0]&&e[c-1]||0===c||s.isArray(e));if(l)for(;u<c;u++)r=n(e[u],u,i),null!=r&&(o[o.length]=r);else for(a in e)r=n(e[a],a,i),null!=r&&(o[o.length]=r);return o.concat.apply([],o)},guid:1,proxy:function(e,n){if("string"==typeof n){var i=e[n];n=e,e=i}if(!s.isFunction(e))return t;var r=C.call(arguments,2),a=function(){return e.apply(n,r.concat(C.call(arguments)))};return a.guid=e.guid=e.guid||a.guid||s.guid++,a},access:function(e,n,i,r,a,o){var u=e.length;if("object"==typeof n){for(var c in n)s.access(e,c,n[c],r,a,i);return e}if(i!==t){r=!o&&r&&s.isFunction(i);for(var l=0;l<u;l++)a(e[l],n,r?i.call(e[l],l,a(e[l],n)):i,o);return e}return u?a(e[0],n):t},now:function(){return(new Date).getTime()},uaMatch:function(e){e=e.toLowerCase();var t=y.exec(e)||I.exec(e)||S.exec(e)||e.indexOf("compatible")<0&&T.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},sub:function(){function e(t,n){return new e.fn.init(t,n)}s.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(n,i){return i&&i instanceof s&&!(i instanceof e)&&(i=e(i)),s.fn.init.call(this,n,i,t)},e.fn.init.prototype=e.fn;var t=e(L);return e},browser:{}}),s.each("Boolean Number String Function Array Date RegExp Object".split(" "),(function(e,t){F["[object "+t+"]"]=t.toLowerCase()})),r=s.uaMatch(D),r.browser&&(s.browser[r.browser]=!0,s.browser.version=r.version),s.browser.webkit&&(s.browser.safari=!0),d.test(" ")&&(f=/^[\s\xA0]+/,p=/[\s\xA0]+$/),i=s(L),L.addEventListener?o=function(){L.removeEventListener("DOMContentLoaded",o,!1),s.ready()}:L.attachEvent&&(o=function(){"complete"===L.readyState&&(L.detachEvent("onreadystatechange",o),s.ready())}),s})(),V="done fail isResolved isRejected promise then always pipe".split(" "),M=[].slice;F.extend({_Deferred:function(){var e,t,n,i=[],r={done:function(){if(!n){var t,a,o,s,u,c=arguments;for(e&&(u=e,e=0),t=0,a=c.length;t<a;t++)o=c[t],s=F.type(o),"array"===s?r.done.apply(r,o):"function"===s&&i.push(o);u&&r.resolveWith(u[0],u[1])}return this},resolveWith:function(r,a){if(!n&&!e&&!t){a=a||[],t=1;try{for(;i[0];)i.shift().apply(r,a)}finally{e=[r,a],t=0}}return this},resolve:function(){return r.resolveWith(this,arguments),this},isResolved:function(){return!(!t&&!e)},cancel:function(){return n=1,i=[],this}};return r},Deferred:function(e){var t,n=F._Deferred(),i=F._Deferred();return F.extend(n,{then:function(e,t){return n.done(e).fail(t),this},always:function(){return n.done.apply(n,arguments).fail.apply(this,arguments)},fail:i.done,rejectWith:i.resolveWith,reject:i.resolve,isRejected:i.isResolved,pipe:function(e,t){return F.Deferred((function(i){F.each({done:[e,"resolve"],fail:[t,"reject"]},(function(e,t){var r,a=t[0],o=t[1];F.isFunction(a)?n[e]((function(){r=a.apply(this,arguments),r&&F.isFunction(r.promise)?r.promise().then(i.resolve,i.reject):i[o+"With"](this===n?i:this,[r])})):n[e](i[o])}))})).promise()},promise:function(e){if(null==e){if(t)return t;t=e={}}for(var i=V.length;i--;)e[V[i]]=n[V[i]];return e}}),n.done(i.cancel).fail(n.cancel),delete n.cancel,e&&e.call(n,n),n},when:function(e){function t(e){return function(t){n[e]=arguments.length>1?M.call(arguments,0):t,--a||o.resolveWith(o,M.call(n,0))}}var n=arguments,i=0,r=n.length,a=r,o=r<=1&&e&&F.isFunction(e.promise)?e:F.Deferred();if(r>1){for(;i<r;i++)n[i]&&F.isFunction(n[i].promise)?n[i].promise().then(t(i),o.reject):--a;a||o.resolveWith(o,n)}else o!==e&&o.resolveWith(o,r?[e]:[]);return o.promise()}}),F.support=(function(){var e,t,n,i,r,a,o,s,u,c,l,d,f,p,h,g,v=L.createElement("div"),m=L.documentElement;if(v.setAttribute("className","t"),v.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",e=v.getElementsByTagName("*"),t=v.getElementsByTagName("a")[0],!e||!e.length||!t)return{};n=L.createElement("select"),i=n.appendChild(L.createElement("option")),r=v.getElementsByTagName("input")[0],o={leadingWhitespace:3===v.firstChild.nodeType,tbody:!v.getElementsByTagName("tbody").length,htmlSerialize:!!v.getElementsByTagName("link").length,style:/top/.test(t.getAttribute("style")),hrefNormalized:"/a"===t.getAttribute("href"),opacity:/^0.55$/.test(t.style.opacity),cssFloat:!!t.style.cssFloat,checkOn:"on"===r.value,optSelected:i.selected,getSetAttribute:"t"!==v.className,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},r.checked=!0,o.noCloneChecked=r.cloneNode(!0).checked,n.disabled=!0,o.optDisabled=!i.disabled;try{delete v.test}catch(e){o.deleteExpando=!1}!v.addEventListener&&v.attachEvent&&v.fireEvent&&(v.attachEvent("onclick",(function(){o.noCloneEvent=!1})),v.cloneNode(!0).fireEvent("onclick")),r=L.createElement("input"),r.value="t",r.setAttribute("type","radio"),o.radioValue="t"===r.value,r.setAttribute("checked","checked"),v.appendChild(r),s=L.createDocumentFragment(),s.appendChild(v.firstChild),o.checkClone=s.cloneNode(!0).cloneNode(!0).lastChild.checked,v.innerHTML="",v.style.width=v.style.paddingLeft="1px",u=L.getElementsByTagName("body")[0],l=L.createElement(u?"div":"body"),d={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},u&&F.extend(d,{position:"absolute",left:"-1000px",top:"-1000px"});for(h in d)l.style[h]=d[h];if(l.appendChild(v),c=u||m,c.insertBefore(l,c.firstChild),o.appendChecked=r.checked,o.boxModel=2===v.offsetWidth,"zoom"in v.style&&(v.style.display="inline",v.style.zoom=1,o.inlineBlockNeedsLayout=2===v.offsetWidth,v.style.display="",v.innerHTML="<div style='width:4px;'></div>",o.shrinkWrapBlocks=2!==v.offsetWidth),v.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",f=v.getElementsByTagName("td"),g=0===f[0].offsetHeight,f[0].style.display="",f[1].style.display="none",o.reliableHiddenOffsets=g&&0===f[0].offsetHeight,v.innerHTML="",L.defaultView&&L.defaultView.getComputedStyle&&(a=L.createElement("div"),a.style.width="0",a.style.marginRight="0",v.appendChild(a),o.reliableMarginRight=0===(parseInt((L.defaultView.getComputedStyle(a,null)||{marginRight:0}).marginRight,10)||0)),l.innerHTML="",c.removeChild(l),v.attachEvent)for(h in{submit:1,change:1,focusin:1})p="on"+h,g=p in v,g||(v.setAttribute(p,"return;"),g="function"==typeof v[p]),o[h+"Bubbles"]=g;return l=s=n=i=u=a=v=r=null,o})(),F.boxModel=F.support.boxModel;var U=/^(?:\{.*\}|\[.*\])$/,B=/([A-Z])/g;F.extend({cache:{},uuid:0,expando:"jQuery"+(F.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?F.cache[e[F.expando]]:e[F.expando],!!e&&!i(e)},data:function(e,n,i,r){if(F.acceptData(e)){var a,o,s=F.expando,u="string"==typeof n,c=e.nodeType,l=c?F.cache:e,d=c?e[F.expando]:e[F.expando]&&F.expando;if(!(!d||r&&d&&l[d]&&!l[d][s])||!u||i!==t)return d||(c?e[F.expando]=d=++F.uuid:d=F.expando),l[d]||(l[d]={},c||(l[d].toJSON=F.noop)),"object"!=typeof n&&"function"!=typeof n||(r?l[d][s]=F.extend(l[d][s],n):l[d]=F.extend(l[d],n)),a=l[d],r&&(a[s]||(a[s]={}),a=a[s]),i!==t&&(a[F.camelCase(n)]=i),"events"!==n||a[n]?(u?(o=a[n],null==o&&(o=a[F.camelCase(n)])):o=a,o):a[s]&&a[s].events}},removeData:function(e,t,n){if(F.acceptData(e)){var r,a=F.expando,o=e.nodeType,s=o?F.cache:e,u=o?e[F.expando]:F.expando;if(s[u]&&(!t||(r=n?s[u][a]:s[u],!r||(r[t]||(t=F.camelCase(t)),delete r[t],i(r))))&&(!n||(delete s[u][a],i(s[u])))){var c=s[u][a];F.support.deleteExpando||!s.setInterval?delete s[u]:s[u]=null,c?(s[u]={},o||(s[u].toJSON=F.noop),s[u][a]=c):o&&(F.support.deleteExpando?delete e[F.expando]:e.removeAttribute?e.removeAttribute(F.expando):e[F.expando]=null)}}},_data:function(e,t,n){return F.data(e,t,n,!0)},acceptData:function(e){if(e.nodeName){var t=F.noData[e.nodeName.toLowerCase()];if(t)return!(t===!0||e.getAttribute("classid")!==t)}return!0}}),F.fn.extend({data:function(e,i){var r=null;if("undefined"==typeof e){if(this.length&&(r=F.data(this[0]),1===this[0].nodeType))for(var a,o=this[0].attributes,s=0,u=o.length;s<u;s++)a=o[s].name,0===a.indexOf("data-")&&(a=F.camelCase(a.substring(5)),n(this[0],a,r[a]));return r}if("object"==typeof e)return this.each((function(){F.data(this,e)}));var c=e.split(".");return c[1]=c[1]?"."+c[1]:"",i===t?(r=this.triggerHandler("getData"+c[1]+"!",[c[0]]),r===t&&this.length&&(r=F.data(this[0],e),r=n(this[0],e,r)),r===t&&c[1]?this.data(c[0]):r):this.each((function(){var t=F(this),n=[c[0],i];t.triggerHandler("setData"+c[1]+"!",n),F.data(this,e,i),t.triggerHandler("changeData"+c[1]+"!",n)}))},removeData:function(e){return this.each((function(){F.removeData(this,e)}))}}),F.extend({_mark:function(e,n){e&&(n=(n||"fx")+"mark",F.data(e,n,(F.data(e,n,t,!0)||0)+1,!0))},_unmark:function(e,n,i){if(e!==!0&&(i=n,n=e,e=!1),n){i=i||"fx";var a=i+"mark",o=e?0:(F.data(n,a,t,!0)||1)-1;o?F.data(n,a,o,!0):(F.removeData(n,a,!0),r(n,i,"mark"))}},queue:function(e,n,i){if(e){n=(n||"fx")+"queue";var r=F.data(e,n,t,!0);return i&&(!r||F.isArray(i)?r=F.data(e,n,F.makeArray(i),!0):r.push(i)),r||[]}},dequeue:function(e,t){t=t||"fx";var n=F.queue(e,t),i=n.shift();"inprogress"===i&&(i=n.shift()),i&&("fx"===t&&n.unshift("inprogress"),i.call(e,(function(){F.dequeue(e,t)}))),n.length||(F.removeData(e,t+"queue",!0),r(e,t,"queue"))}}),F.fn.extend({queue:function(e,n){return"string"!=typeof e&&(n=e,e="fx"),n===t?F.queue(this[0],e):this.each((function(){var t=F.queue(this,e,n);"fx"===e&&"inprogress"!==t[0]&&F.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){F.dequeue(this,e)}))},delay:function(e,t){return e=F.fx?F.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,(function(){var n=this;setTimeout((function(){F.dequeue(n,t)}),e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){function i(){--u||a.resolveWith(o,[o])}"string"!=typeof e&&(n=e,e=t),e=e||"fx";for(var r,a=F.Deferred(),o=this,s=o.length,u=1,c=e+"defer",l=e+"queue",d=e+"mark";s--;)(r=F.data(o[s],c,t,!0)||(F.data(o[s],l,t,!0)||F.data(o[s],d,t,!0))&&F.data(o[s],c,F._Deferred(),!0))&&(u++,r.done(i));return i(),a.promise()}});var G,j,z=/[\n\t\r]/g,H=/\s+/,Y=/\r/g,K=/^(?:button|input)$/i,q=/^(?:button|input|object|select|textarea)$/i,W=/^a(?:rea)?$/i,X=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i;F.fn.extend({attr:function(e,t){return F.access(this,e,t,!0,F.attr)},removeAttr:function(e){return this.each((function(){F.removeAttr(this,e)}))},prop:function(e,t){return F.access(this,e,t,!0,F.prop)},removeProp:function(e){return e=F.propFix[e]||e,this.each((function(){try{this[e]=t,delete this[e]}catch(e){}}))},addClass:function(e){var t,n,i,r,a,o,s;if(F.isFunction(e))return this.each((function(t){F(this).addClass(e.call(this,t,this.className))}));if(e&&"string"==typeof e)for(t=e.split(H),n=0,i=this.length;n<i;n++)if(r=this[n],1===r.nodeType)if(r.className||1!==t.length){for(a=" "+r.className+" ",o=0,s=t.length;o<s;o++)~a.indexOf(" "+t[o]+" ")||(a+=t[o]+" ");r.className=F.trim(a)}else r.className=e;return this},removeClass:function(e){var n,i,r,a,o,s,u;if(F.isFunction(e))return this.each((function(t){F(this).removeClass(e.call(this,t,this.className))}));if(e&&"string"==typeof e||e===t)for(n=(e||"").split(H),i=0,r=this.length;i<r;i++)if(a=this[i],1===a.nodeType&&a.className)if(e){for(o=(" "+a.className+" ").replace(z," "),s=0,u=n.length;s<u;s++)o=o.replace(" "+n[s]+" "," ");a.className=F.trim(o)}else a.className="";return this},toggleClass:function(e,t){var n=typeof e,i="boolean"==typeof t;return F.isFunction(e)?this.each((function(n){F(this).toggleClass(e.call(this,n,this.className,t),t)})):this.each((function(){if("string"===n)for(var r,a=0,o=F(this),s=t,u=e.split(H);r=u[a++];)s=i?s:!o.hasClass(r),o[s?"addClass":"removeClass"](r);else"undefined"!==n&&"boolean"!==n||(this.className&&F._data(this,"__className__",this.className),this.className=this.className||e===!1?"":F._data(this,"__className__")||"")}))},hasClass:function(e){for(var t=" "+e+" ",n=0,i=this.length;n<i;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(z," ").indexOf(t)>-1)return!0;return!1},val:function(e){var n,i,r=this[0];if(!arguments.length)return r?(n=F.valHooks[r.nodeName.toLowerCase()]||F.valHooks[r.type],n&&"get"in n&&(i=n.get(r,"value"))!==t?i:(i=r.value,"string"==typeof i?i.replace(Y,""):null==i?"":i)):t;var a=F.isFunction(e);return this.each((function(i){var r,o=F(this);1===this.nodeType&&(r=a?e.call(this,i,o.val()):e,null==r?r="":"number"==typeof r?r+="":F.isArray(r)&&(r=F.map(r,(function(e){return null==e?"":e+""}))),n=F.valHooks[this.nodeName.toLowerCase()]||F.valHooks[this.type],n&&"set"in n&&n.set(this,r,"value")!==t||(this.value=r))}))}}),F.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n=e.selectedIndex,i=[],r=e.options,a="select-one"===e.type;if(n<0)return null;for(var o=a?n:0,s=a?n+1:r.length;o<s;o++){var u=r[o];if(u.selected&&(F.support.optDisabled?!u.disabled:null===u.getAttribute("disabled"))&&(!u.parentNode.disabled||!F.nodeName(u.parentNode,"optgroup"))){if(t=F(u).val(),a)return t;i.push(t)}}return a&&!i.length&&r.length?F(r[n]).val():i},set:function(e,t){var n=F.makeArray(t);return F(e).find("option").each((function(){this.selected=F.inArray(F(this).val(),n)>=0})),n.length||(e.selectedIndex=-1),n}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(e,n,i,r){var a=e.nodeType;if(!e||3===a||8===a||2===a)return t;if(r&&n in F.attrFn)return F(e)[n](i);if(!("getAttribute"in e))return F.prop(e,n,i);var o,s,u=1!==a||!F.isXMLDoc(e);return u&&(n=F.attrFix[n]||n,s=F.attrHooks[n],s||(X.test(n)?s=j:G&&(s=G))),i!==t?null===i?(F.removeAttr(e,n),t):s&&"set"in s&&u&&(o=s.set(e,i,n))!==t?o:(e.setAttribute(n,""+i),i):s&&"get"in s&&u&&null!==(o=s.get(e,n))?o:(o=e.getAttribute(n),null===o?t:o)},removeAttr:function(e,t){var n;1===e.nodeType&&(t=F.attrFix[t]||t,F.attr(e,t,""),e.removeAttribute(t),X.test(t)&&(n=F.propFix[t]||t)in e&&(e[n]=!1))},attrHooks:{type:{set:function(e,t){if(K.test(e.nodeName)&&e.parentNode)F.error("type property can't be changed");else if(!F.support.radioValue&&"radio"===t&&F.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}},value:{get:function(e,t){return G&&F.nodeName(e,"button")?G.get(e,t):t in e?e.value:null},set:function(e,t,n){return G&&F.nodeName(e,"button")?G.set(e,t,n):void(e.value=t)}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,i){var r=e.nodeType;if(!e||3===r||8===r||2===r)return t;var a,o,s=1!==r||!F.isXMLDoc(e);return s&&(n=F.propFix[n]||n,o=F.propHooks[n]),i!==t?o&&"set"in o&&(a=o.set(e,i,n))!==t?a:e[n]=i:o&&"get"in o&&null!==(a=o.get(e,n))?a:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):q.test(e.nodeName)||W.test(e.nodeName)&&e.href?0:t}}}}),F.attrHooks.tabIndex=F.propHooks.tabIndex,j={get:function(e,n){var i;return F.prop(e,n)===!0||(i=e.getAttributeNode(n))&&i.nodeValue!==!1?n.toLowerCase():t},set:function(e,t,n){var i;return t===!1?F.removeAttr(e,n):(i=F.propFix[n]||n,i in e&&(e[i]=!0),e.setAttribute(n,n.toLowerCase())),n}},F.support.getSetAttribute||(G=F.valHooks.button={get:function(e,n){var i;return i=e.getAttributeNode(n),i&&""!==i.nodeValue?i.nodeValue:t},set:function(e,t,n){var i=e.getAttributeNode(n);return i||(i=L.createAttribute(n),e.setAttributeNode(i)),i.nodeValue=t+""}},F.each(["width","height"],(function(e,t){F.attrHooks[t]=F.extend(F.attrHooks[t],{set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}})}))),F.support.hrefNormalized||F.each(["href","src","width","height"],(function(e,n){F.attrHooks[n]=F.extend(F.attrHooks[n],{get:function(e){var i=e.getAttribute(n,2);return null===i?t:i}})})),F.support.style||(F.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||t},set:function(e,t){return e.style.cssText=""+t}}),F.support.optSelected||(F.propHooks.selected=F.extend(F.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),F.support.checkOn||F.each(["radio","checkbox"],(function(){F.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}})),F.each(["radio","checkbox"],(function(){F.valHooks[this]=F.extend(F.valHooks[this],{set:function(e,t){if(F.isArray(t))return e.checked=F.inArray(F(e).val(),t)>=0}})}));var $=/\.(.*)$/,Q=/^(?:textarea|input|select)$/i,J=/\./g,Z=/ /g,ee=/[^\w\s.|`]/g,te=function(e){return e.replace(ee,"\\$&")};F.event={add:function(e,n,i,r){if(3!==e.nodeType&&8!==e.nodeType){if(i===!1)i=a;else if(!i)return;var o,s;i.handler&&(o=i,i=o.handler),i.guid||(i.guid=F.guid++);var u=F._data(e);if(u){var c=u.events,l=u.handle;c||(u.events=c={}),l||(u.handle=l=function(e){return"undefined"==typeof F||e&&F.event.triggered===e.type?t:F.event.handle.apply(l.elem,arguments)}),l.elem=e,n=n.split(" ");for(var d,f,p=0;d=n[p++];){s=o?F.extend({},o):{handler:i,data:r},d.indexOf(".")>-1?(f=d.split("."),d=f.shift(),s.namespace=f.slice(0).sort().join(".")):(f=[],s.namespace=""),s.type=d,s.guid||(s.guid=i.guid);var h=c[d],g=F.event.special[d]||{};h||(h=c[d]=[],g.setup&&g.setup.call(e,r,f,l)!==!1||(e.addEventListener?e.addEventListener(d,l,!1):e.attachEvent&&e.attachEvent("on"+d,l))),g.add&&(g.add.call(e,s),s.handler.guid||(s.handler.guid=i.guid)),h.push(s),F.event.global[d]=!0}e=null}}},global:{},remove:function(e,n,i,r){if(3!==e.nodeType&&8!==e.nodeType){i===!1&&(i=a);var o,s,u,c,l,d,f,p,h,g,v=0,m=F.hasData(e)&&F._data(e),_=m&&m.events;if(m&&_)if(n&&n.type&&(i=n.handler,n=n.type),!n||"string"==typeof n&&"."===n.charAt(0)){n=n||"";for(s in _)F.event.remove(e,s+n)}else{for(n=n.split(" ");s=n[v++];)if(g=s,h=null,c=s.indexOf(".")<0,l=[],c||(l=s.split("."),s=l.shift(),d=new RegExp("(^|\\.)"+F.map(l.slice(0).sort(),te).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=_[s])if(i){for(f=F.event.special[s]||{},u=r||0;u<p.length&&(h=p[u],i.guid!==h.guid||((c||d.test(h.namespace))&&(null==r&&p.splice(u--,1),f.remove&&f.remove.call(e,h)),null==r));u++);(0===p.length||null!=r&&1===p.length)&&(f.teardown&&f.teardown.call(e,l)!==!1||F.removeEvent(e,s,m.handle),o=null,delete _[s])}else for(u=0;u<p.length;u++)h=p[u],(c||d.test(h.namespace))&&(F.event.remove(e,g,h.handler,u), p.splice(u--,1));if(F.isEmptyObject(_)){var E=m.handle;E&&(E.elem=null),delete m.events,delete m.handle,F.isEmptyObject(m)&&F.removeData(e,t,!0)}}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(n,i,r,a){var o,s=n.type||n,u=[];if(s.indexOf("!")>=0&&(s=s.slice(0,-1),o=!0),s.indexOf(".")>=0&&(u=s.split("."),s=u.shift(),u.sort()),r&&!F.event.customEvent[s]||F.event.global[s]){if(n="object"==typeof n?n[F.expando]?n:new F.Event(s,n):new F.Event(s),n.type=s,n.exclusive=o,n.namespace=u.join("."),n.namespace_re=new RegExp("(^|\\.)"+u.join("\\.(?:.*\\.)?")+"(\\.|$)"),!a&&r||(n.preventDefault(),n.stopPropagation()),!r)return void F.each(F.cache,(function(){var e=F.expando,t=this[e];t&&t.events&&t.events[s]&&F.event.trigger(n,i,t.handle.elem)}));if(3!==r.nodeType&&8!==r.nodeType){n.result=t,n.target=r,i=null!=i?F.makeArray(i):[],i.unshift(n);var c=r,l=s.indexOf(":")<0?"on"+s:"";do{var d=F._data(c,"handle");n.currentTarget=c,d&&d.apply(c,i),l&&F.acceptData(c)&&c[l]&&c[l].apply(c,i)===!1&&(n.result=!1,n.preventDefault()),c=c.parentNode||c.ownerDocument||c===n.target.ownerDocument&&e}while(c&&!n.isPropagationStopped());if(!n.isDefaultPrevented()){var f,p=F.event.special[s]||{};if((!p._default||p._default.call(r.ownerDocument,n)===!1)&&("click"!==s||!F.nodeName(r,"a"))&&F.acceptData(r)){try{l&&r[s]&&(f=r[l],f&&(r[l]=null),F.event.triggered=s,r[s]())}catch(e){}f&&(r[l]=f),F.event.triggered=t}}return n.result}}},handle:function(n){n=F.event.fix(n||e.event);var i=((F._data(this,"events")||{})[n.type]||[]).slice(0),r=!n.exclusive&&!n.namespace,a=Array.prototype.slice.call(arguments,0);a[0]=n,n.currentTarget=this;for(var o=0,s=i.length;o<s;o++){var u=i[o];if(r||n.namespace_re.test(u.namespace)){n.handler=u.handler,n.data=u.data,n.handleObj=u;var c=u.handler.apply(this,a);if(c!==t&&(n.result=c,c===!1&&(n.preventDefault(),n.stopPropagation())),n.isImmediatePropagationStopped())break}}return n.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(e){if(e[F.expando])return e;var n=e;e=F.Event(n);for(var i,r=this.props.length;r;)i=this.props[--r],e[i]=n[i];if(e.target||(e.target=e.srcElement||L),3===e.target.nodeType&&(e.target=e.target.parentNode),!e.relatedTarget&&e.fromElement&&(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),null==e.pageX&&null!=e.clientX){var a=e.target.ownerDocument||L,o=a.documentElement,s=a.body;e.pageX=e.clientX+(o&&o.scrollLeft||s&&s.scrollLeft||0)-(o&&o.clientLeft||s&&s.clientLeft||0),e.pageY=e.clientY+(o&&o.scrollTop||s&&s.scrollTop||0)-(o&&o.clientTop||s&&s.clientTop||0)}return null!=e.which||null==e.charCode&&null==e.keyCode||(e.which=null!=e.charCode?e.charCode:e.keyCode),!e.metaKey&&e.ctrlKey&&(e.metaKey=e.ctrlKey),e.which||e.button===t||(e.which=1&e.button?1:2&e.button?3:4&e.button?2:0),e},guid:1e8,proxy:F.proxy,special:{ready:{setup:F.bindReady,teardown:F.noop},live:{add:function(e){F.event.add(this,c(e.origType,e.selector),F.extend({},e,{handler:u,guid:e.handler.guid}))},remove:function(e){F.event.remove(this,c(e.origType,e.selector),e)}},beforeunload:{setup:function(e,t,n){F.isWindow(this)&&(this.onbeforeunload=n)},teardown:function(e,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}}},F.removeEvent=L.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){e.detachEvent&&e.detachEvent("on"+t,n)},F.Event=function(e,t){return this.preventDefault?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?o:a):this.type=e,t&&F.extend(this,t),this.timeStamp=F.now(),void(this[F.expando]=!0)):new F.Event(e,t)},F.Event.prototype={preventDefault:function(){this.isDefaultPrevented=o;var e=this.originalEvent;e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=o;var e=this.originalEvent;e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=o,this.stopPropagation()},isDefaultPrevented:a,isPropagationStopped:a,isImmediatePropagationStopped:a};var ne=function(e){var t=e.relatedTarget,n=!1,i=e.type;e.type=e.data,t!==this&&(t&&(n=F.contains(this,t)),n||(F.event.handle.apply(this,arguments),e.type=i))},ie=function(e){e.type=e.data,F.event.handle.apply(this,arguments)};if(F.each({mouseenter:"mouseover",mouseleave:"mouseout"},(function(e,t){F.event.special[e]={setup:function(n){F.event.add(this,t,n&&n.selector?ie:ne,e)},teardown:function(e){F.event.remove(this,t,e&&e.selector?ie:ne)}}})),F.support.submitBubbles||(F.event.special.submit={setup:function(e,t){return!F.nodeName(this,"form")&&(F.event.add(this,"click.specialSubmit",(function(e){var t=e.target,n=F.nodeName(t,"input")||F.nodeName(t,"button")?t.type:"";"submit"!==n&&"image"!==n||!F(t).closest("form").length||s("submit",this,arguments)})),void F.event.add(this,"keypress.specialSubmit",(function(e){var t=e.target,n=F.nodeName(t,"input")||F.nodeName(t,"button")?t.type:"";"text"!==n&&"password"!==n||!F(t).closest("form").length||13!==e.keyCode||s("submit",this,arguments)})))},teardown:function(e){F.event.remove(this,".specialSubmit")}}),!F.support.changeBubbles){var re,ae=function(e){var t=F.nodeName(e,"input")?e.type:"",n=e.value;return"radio"===t||"checkbox"===t?n=e.checked:"select-multiple"===t?n=e.selectedIndex>-1?F.map(e.options,(function(e){return e.selected})).join("-"):"":F.nodeName(e,"select")&&(n=e.selectedIndex),n},oe=function(e){var n,i,r=e.target;Q.test(r.nodeName)&&!r.readOnly&&(n=F._data(r,"_change_data"),i=ae(r),"focusout"===e.type&&"radio"===r.type||F._data(r,"_change_data",i),n!==t&&i!==n&&(null!=n||i)&&(e.type="change",e.liveFired=t,F.event.trigger(e,arguments[1],r)))};F.event.special.change={filters:{focusout:oe,beforedeactivate:oe,click:function(e){var t=e.target,n=F.nodeName(t,"input")?t.type:"";("radio"===n||"checkbox"===n||F.nodeName(t,"select"))&&oe.call(this,e)},keydown:function(e){var t=e.target,n=F.nodeName(t,"input")?t.type:"";(13===e.keyCode&&!F.nodeName(t,"textarea")||32===e.keyCode&&("checkbox"===n||"radio"===n)||"select-multiple"===n)&&oe.call(this,e)},beforeactivate:function(e){var t=e.target;F._data(t,"_change_data",ae(t))}},setup:function(e,t){if("file"===this.type)return!1;for(var n in re)F.event.add(this,n+".specialChange",re[n]);return Q.test(this.nodeName)},teardown:function(e){return F.event.remove(this,".specialChange"),Q.test(this.nodeName)}},re=F.event.special.change.filters,re.focus=re.beforeactivate}F.support.focusinBubbles||F.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){var n=F.event.fix(e);n.type=t,n.originalEvent={},F.event.trigger(n,null,n.target),n.isDefaultPrevented()&&e.preventDefault()}var i=0;F.event.special[t]={setup:function(){0===i++&&L.addEventListener(e,n,!0)},teardown:function(){0===--i&&L.removeEventListener(e,n,!0)}}})),F.each(["bind","one"],(function(e,n){F.fn[n]=function(e,i,r){var a;if("object"==typeof e){for(var o in e)this[n](o,i,e[o],r);return this}if(2!==arguments.length&&i!==!1||(r=i,i=t),"one"===n?(a=function(e){return F(this).unbind(e,a),r.apply(this,arguments)},a.guid=r.guid||F.guid++):a=r,"unload"===e&&"one"!==n)this.one(e,i,r);else for(var s=0,u=this.length;s<u;s++)F.event.add(this[s],e,a,i);return this}})),F.fn.extend({unbind:function(e,t){if("object"!=typeof e||e.preventDefault)for(var n=0,i=this.length;n<i;n++)F.event.remove(this[n],e,t);else for(var r in e)this.unbind(r,e[r]);return this},delegate:function(e,t,n,i){return this.live(t,n,i,e)},undelegate:function(e,t,n){return 0===arguments.length?this.unbind("live"):this.die(t,null,n,e)},trigger:function(e,t){return this.each((function(){F.event.trigger(e,t,this)}))},triggerHandler:function(e,t){if(this[0])return F.event.trigger(e,t,this[0],!0)},toggle:function(e){var t=arguments,n=e.guid||F.guid++,i=0,r=function(n){var r=(F.data(this,"lastToggle"+e.guid)||0)%i;return F.data(this,"lastToggle"+e.guid,r+1),n.preventDefault(),t[r].apply(this,arguments)||!1};for(r.guid=n;i<t.length;)t[i++].guid=n;return this.click(r)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var se={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};F.each(["live","die"],(function(e,n){F.fn[n]=function(e,i,r,o){var s,u,l,d,f=0,p=o||this.selector,h=o?this:F(this.context);if("object"==typeof e&&!e.preventDefault){for(var g in e)h[n](g,i,e[g],p);return this}if("die"===n&&!e&&o&&"."===o.charAt(0))return h.unbind(o),this;for((i===!1||F.isFunction(i))&&(r=i||a,i=t),e=(e||"").split(" ");null!=(s=e[f++]);)if(u=$.exec(s),l="",u&&(l=u[0],s=s.replace($,"")),"hover"!==s)if(d=s,se[s]?(e.push(se[s]+l),s+=l):s=(se[s]||s)+l,"live"===n)for(var v=0,m=h.length;v<m;v++)F.event.add(h[v],"live."+c(s,p),{data:i,selector:p,handler:r,origType:s,origHandler:r,preType:d});else h.unbind("live."+c(s,p),r);else e.push("mouseenter"+l,"mouseleave"+l);return this}})),F.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".split(" "),(function(e,t){F.fn[t]=function(e,n){return null==n&&(n=e,e=null),arguments.length>0?this.bind(t,e,n):this.trigger(t)},F.attrFn&&(F.attrFn[t]=!0)})),/*! * Sizzle CSS Selector Engine * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * More information: http://sizzlejs.com/ */ (function(){function e(e,t,n,i,r,a){for(var o=0,s=i.length;o<s;o++){var u=i[o];if(u){var c=!1;for(u=u[e];u;){if(u.sizcache===n){c=i[u.sizset];break}if(1!==u.nodeType||a||(u.sizcache=n,u.sizset=o),u.nodeName.toLowerCase()===t){c=u;break}u=u[e]}i[o]=c}}}function n(e,t,n,i,r,a){for(var o=0,s=i.length;o<s;o++){var u=i[o];if(u){var c=!1;for(u=u[e];u;){if(u.sizcache===n){c=i[u.sizset];break}if(1===u.nodeType)if(a||(u.sizcache=n,u.sizset=o),"string"!=typeof t){if(u===t){c=!0;break}}else if(l.filter(t,[u]).length>0){c=u;break}u=u[e]}i[o]=c}}}var i=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,r=0,a=Object.prototype.toString,o=!1,s=!0,u=/\\/g,c=/\W/;[0,0].sort((function(){return s=!1,0}));var l=function(e,t,n,r){n=n||[],t=t||L;var o=t;if(1!==t.nodeType&&9!==t.nodeType)return[];if(!e||"string"!=typeof e)return n;var s,u,c,p,h,v,m,E,y=!0,I=l.isXML(t),S=[],T=e;do if(i.exec(""),s=i.exec(T),s&&(T=s[3],S.push(s[1]),s[2])){p=s[3];break}while(s);if(S.length>1&&f.exec(e))if(2===S.length&&d.relative[S[0]])u=_(S[0]+S[1],t);else for(u=d.relative[S[0]]?[t]:l(S.shift(),t);S.length;)e=S.shift(),d.relative[e]&&(e+=S.shift()),u=_(e,u);else if(!r&&S.length>1&&9===t.nodeType&&!I&&d.match.ID.test(S[0])&&!d.match.ID.test(S[S.length-1])&&(h=l.find(S.shift(),t,I),t=h.expr?l.filter(h.expr,h.set)[0]:h.set[0]),t)for(h=r?{expr:S.pop(),set:g(r)}:l.find(S.pop(),1!==S.length||"~"!==S[0]&&"+"!==S[0]||!t.parentNode?t:t.parentNode,I),u=h.expr?l.filter(h.expr,h.set):h.set,S.length>0?c=g(u):y=!1;S.length;)v=S.pop(),m=v,d.relative[v]?m=S.pop():v="",null==m&&(m=t),d.relative[v](c,m,I);else c=S=[];if(c||(c=u),c||l.error(v||e),"[object Array]"===a.call(c))if(y)if(t&&1===t.nodeType)for(E=0;null!=c[E];E++)c[E]&&(c[E]===!0||1===c[E].nodeType&&l.contains(t,c[E]))&&n.push(u[E]);else for(E=0;null!=c[E];E++)c[E]&&1===c[E].nodeType&&n.push(u[E]);else n.push.apply(n,c);else g(c,n);return p&&(l(p,o,n,r),l.uniqueSort(n)),n};l.uniqueSort=function(e){if(v&&(o=s,e.sort(v),o))for(var t=1;t<e.length;t++)e[t]===e[t-1]&&e.splice(t--,1);return e},l.matches=function(e,t){return l(e,null,null,t)},l.matchesSelector=function(e,t){return l(t,null,null,[e]).length>0},l.find=function(e,t,n){var i;if(!e)return[];for(var r=0,a=d.order.length;r<a;r++){var o,s=d.order[r];if(o=d.leftMatch[s].exec(e)){var c=o[1];if(o.splice(1,1),"\\"!==c.substr(c.length-1)&&(o[1]=(o[1]||"").replace(u,""),i=d.find[s](o,t,n),null!=i)){e=e.replace(d.match[s],"");break}}}return i||(i="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName("*"):[]),{set:i,expr:e}},l.filter=function(e,n,i,r){for(var a,o,s=e,u=[],c=n,f=n&&n[0]&&l.isXML(n[0]);e&&n.length;){for(var p in d.filter)if(null!=(a=d.leftMatch[p].exec(e))&&a[2]){var h,g,v=d.filter[p],m=a[1];if(o=!1,a.splice(1,1),"\\"===m.substr(m.length-1))continue;if(c===u&&(u=[]),d.preFilter[p])if(a=d.preFilter[p](a,c,i,u,r,f)){if(a===!0)continue}else o=h=!0;if(a)for(var _=0;null!=(g=c[_]);_++)if(g){h=v(g,a,_,c);var E=r^!!h;i&&null!=h?E?o=!0:c[_]=!1:E&&(u.push(g),o=!0)}if(h!==t){if(i||(c=u),e=e.replace(d.match[p],""),!o)return[];break}}if(e===s){if(null!=o)break;l.error(e)}s=e}return c},l.error=function(e){throw"Syntax error, unrecognized expression: "+e};var d=l.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")},type:function(e){return e.getAttribute("type")}},relative:{"+":function(e,t){var n="string"==typeof t,i=n&&!c.test(t),r=n&&!i;i&&(t=t.toLowerCase());for(var a,o=0,s=e.length;o<s;o++)if(a=e[o]){for(;(a=a.previousSibling)&&1!==a.nodeType;);e[o]=r||a&&a.nodeName.toLowerCase()===t?a||!1:a===t}r&&l.filter(t,e,!0)},">":function(e,t){var n,i="string"==typeof t,r=0,a=e.length;if(i&&!c.test(t)){for(t=t.toLowerCase();r<a;r++)if(n=e[r]){var o=n.parentNode;e[r]=o.nodeName.toLowerCase()===t&&o}}else{for(;r<a;r++)n=e[r],n&&(e[r]=i?n.parentNode:n.parentNode===t);i&&l.filter(t,e,!0)}},"":function(t,i,a){var o,s=r++,u=n;"string"!=typeof i||c.test(i)||(i=i.toLowerCase(),o=i,u=e),u("parentNode",i,s,t,o,a)},"~":function(t,i,a){var o,s=r++,u=n;"string"!=typeof i||c.test(i)||(i=i.toLowerCase(),o=i,u=e),u("previousSibling",i,s,t,o,a)}},find:{ID:function(e,t,n){if("undefined"!=typeof t.getElementById&&!n){var i=t.getElementById(e[1]);return i&&i.parentNode?[i]:[]}},NAME:function(e,t){if("undefined"!=typeof t.getElementsByName){for(var n=[],i=t.getElementsByName(e[1]),r=0,a=i.length;r<a;r++)i[r].getAttribute("name")===e[1]&&n.push(i[r]);return 0===n.length?null:n}},TAG:function(e,t){if("undefined"!=typeof t.getElementsByTagName)return t.getElementsByTagName(e[1])}},preFilter:{CLASS:function(e,t,n,i,r,a){if(e=" "+e[1].replace(u,"")+" ",a)return e;for(var o,s=0;null!=(o=t[s]);s++)o&&(r^(o.className&&(" "+o.className+" ").replace(/[\t\n\r]/g," ").indexOf(e)>=0)?n||i.push(o):n&&(t[s]=!1));return!1},ID:function(e){return e[1].replace(u,"")},TAG:function(e,t){return e[1].replace(u,"").toLowerCase()},CHILD:function(e){if("nth"===e[1]){e[2]||l.error(e[0]),e[2]=e[2].replace(/^\+|\s*/g,"");var t=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec("even"===e[2]&&"2n"||"odd"===e[2]&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=t[1]+(t[2]||1)-0,e[3]=t[3]-0}else e[2]&&l.error(e[0]);return e[0]=r++,e},ATTR:function(e,t,n,i,r,a){var o=e[1]=e[1].replace(u,"");return!a&&d.attrMap[o]&&(e[1]=d.attrMap[o]),e[4]=(e[4]||e[5]||"").replace(u,""),"~="===e[2]&&(e[4]=" "+e[4]+" "),e},PSEUDO:function(e,t,n,r,a){if("not"===e[1]){if(!((i.exec(e[3])||"").length>1||/^\w/.test(e[3]))){var o=l.filter(e[3],t,n,!0^a);return n||r.push.apply(r,o),!1}e[3]=l(e[3],null,null,t)}else if(d.match.POS.test(e[0])||d.match.CHILD.test(e[0]))return!0;return e},POS:function(e){return e.unshift(!0),e}},filters:{enabled:function(e){return e.disabled===!1&&"hidden"!==e.type},disabled:function(e){return e.disabled===!0},checked:function(e){return e.checked===!0},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!!e.firstChild},empty:function(e){return!e.firstChild},has:function(e,t,n){return!!l(n[3],e).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){return"text"===e.getAttribute("type")},radio:function(e){return"radio"===e.type},checkbox:function(e){return"checkbox"===e.type},file:function(e){return"file"===e.type},password:function(e){return"password"===e.type},submit:function(e){return"submit"===e.type},image:function(e){return"image"===e.type},reset:function(e){return"reset"===e.type},button:function(e){return"button"===e.type||"button"===e.nodeName.toLowerCase()},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)}},setFilters:{first:function(e,t){return 0===t},last:function(e,t,n,i){return t===i.length-1},even:function(e,t){return t%2===0},odd:function(e,t){return t%2===1},lt:function(e,t,n){return t<n[3]-0},gt:function(e,t,n){return t>n[3]-0},nth:function(e,t,n){return n[3]-0===t},eq:function(e,t,n){return n[3]-0===t}},filter:{PSEUDO:function(e,t,n,i){var r=t[1],a=d.filters[r];if(a)return a(e,n,t,i);if("contains"===r)return(e.textContent||e.innerText||l.getText([e])||"").indexOf(t[3])>=0;if("not"===r){for(var o=t[3],s=0,u=o.length;s<u;s++)if(o[s]===e)return!1;return!0}l.error(r)},CHILD:function(e,t){var n=t[1],i=e;switch(n){case"only":case"first":for(;i=i.previousSibling;)if(1===i.nodeType)return!1;if("first"===n)return!0;i=e;case"last":for(;i=i.nextSibling;)if(1===i.nodeType)return!1;return!0;case"nth":var r=t[2],a=t[3];if(1===r&&0===a)return!0;var o=t[0],s=e.parentNode;if(s&&(s.sizcache!==o||!e.nodeIndex)){var u=0;for(i=s.firstChild;i;i=i.nextSibling)1===i.nodeType&&(i.nodeIndex=++u);s.sizcache=o}var c=e.nodeIndex-a;return 0===r?0===c:c%r===0&&c/r>=0}},ID:function(e,t){return 1===e.nodeType&&e.getAttribute("id")===t},TAG:function(e,t){return"*"===t&&1===e.nodeType||e.nodeName.toLowerCase()===t},CLASS:function(e,t){return(" "+(e.className||e.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(e,t){var n=t[1],i=d.attrHandle[n]?d.attrHandle[n](e):null!=e[n]?e[n]:e.getAttribute(n),r=i+"",a=t[2],o=t[4];return null==i?"!="===a:"="===a?r===o:"*="===a?r.indexOf(o)>=0:"~="===a?(" "+r+" ").indexOf(o)>=0:o?"!="===a?r!==o:"^="===a?0===r.indexOf(o):"$="===a?r.substr(r.length-o.length)===o:"|="===a&&(r===o||r.substr(0,o.length+1)===o+"-"):r&&i!==!1},POS:function(e,t,n,i){var r=t[2],a=d.setFilters[r];if(a)return a(e,n,t,i)}}},f=d.match.POS,p=function(e,t){return"\\"+(t-0+1)};for(var h in d.match)d.match[h]=new RegExp(d.match[h].source+/(?![^\[]*\])(?![^\(]*\))/.source),d.leftMatch[h]=new RegExp(/(^(?:.|\r|\n)*?)/.source+d.match[h].source.replace(/\\(\d+)/g,p));var g=function(e,t){return e=Array.prototype.slice.call(e,0),t?(t.push.apply(t,e),t):e};try{Array.prototype.slice.call(L.documentElement.childNodes,0)[0].nodeType}catch(e){g=function(e,t){var n=0,i=t||[];if("[object Array]"===a.call(e))Array.prototype.push.apply(i,e);else if("number"==typeof e.length)for(var r=e.length;n<r;n++)i.push(e[n]);else for(;e[n];n++)i.push(e[n]);return i}}var v,m;L.documentElement.compareDocumentPosition?v=function(e,t){return e===t?(o=!0,0):e.compareDocumentPosition&&t.compareDocumentPosition?4&e.compareDocumentPosition(t)?-1:1:e.compareDocumentPosition?-1:1}:(v=function(e,t){var n,i,r=[],a=[],s=e.parentNode,u=t.parentNode,c=s;if(e===t)return o=!0,0;if(s===u)return m(e,t);if(!s)return-1;if(!u)return 1;for(;c;)r.unshift(c),c=c.parentNode;for(c=u;c;)a.unshift(c),c=c.parentNode;n=r.length,i=a.length;for(var l=0;l<n&&l<i;l++)if(r[l]!==a[l])return m(r[l],a[l]);return l===n?m(e,a[l],-1):m(r[l],t,1)},m=function(e,t,n){if(e===t)return n;for(var i=e.nextSibling;i;){if(i===t)return-1;i=i.nextSibling}return 1}),l.getText=function(e){for(var t,n="",i=0;e[i];i++)t=e[i],3===t.nodeType||4===t.nodeType?n+=t.nodeValue:8!==t.nodeType&&(n+=l.getText(t.childNodes));return n},(function(){var e=L.createElement("div"),n="script"+(new Date).getTime(),i=L.documentElement;e.innerHTML="<a name='"+n+"'/>",i.insertBefore(e,i.firstChild),L.getElementById(n)&&(d.find.ID=function(e,n,i){if("undefined"!=typeof n.getElementById&&!i){var r=n.getElementById(e[1]);return r?r.id===e[1]||"undefined"!=typeof r.getAttributeNode&&r.getAttributeNode("id").nodeValue===e[1]?[r]:t:[]}},d.filter.ID=function(e,t){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return 1===e.nodeType&&n&&n.nodeValue===t}),i.removeChild(e),i=e=null})(),(function(){var e=L.createElement("div");e.appendChild(L.createComment("")),e.getElementsByTagName("*").length>0&&(d.find.TAG=function(e,t){var n=t.getElementsByTagName(e[1]);if("*"===e[1]){for(var i=[],r=0;n[r];r++)1===n[r].nodeType&&i.push(n[r]);n=i}return n}),e.innerHTML="<a href='#'></a>",e.firstChild&&"undefined"!=typeof e.firstChild.getAttribute&&"#"!==e.firstChild.getAttribute("href")&&(d.attrHandle.href=function(e){return e.getAttribute("href",2)}),e=null})(),L.querySelectorAll&&!(function(){var e=l,t=L.createElement("div"),n="__sizzle__";if(t.innerHTML="<p class='TEST'></p>",!t.querySelectorAll||0!==t.querySelectorAll(".TEST").length){l=function(t,i,r,a){if(i=i||L,!a&&!l.isXML(i)){var o=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(t);if(o&&(1===i.nodeType||9===i.nodeType)){if(o[1])return g(i.getElementsByTagName(t),r);if(o[2]&&d.find.CLASS&&i.getElementsByClassName)return g(i.getElementsByClassName(o[2]),r)}if(9===i.nodeType){if("body"===t&&i.body)return g([i.body],r);if(o&&o[3]){var s=i.getElementById(o[3]);if(!s||!s.parentNode)return g([],r);if(s.id===o[3])return g([s],r)}try{return g(i.querySelectorAll(t),r)}catch(e){}}else if(1===i.nodeType&&"object"!==i.nodeName.toLowerCase()){var u=i,c=i.getAttribute("id"),f=c||n,p=i.parentNode,h=/^\s*[+~]/.test(t);c?f=f.replace(/'/g,"\\$&"):i.setAttribute("id",f),h&&p&&(i=i.parentNode);try{if(!h||p)return g(i.querySelectorAll("[id='"+f+"'] "+t),r)}catch(e){}finally{c||u.removeAttribute("id")}}}return e(t,i,r,a)};for(var i in e)l[i]=e[i];t=null}})(),(function(){var e=L.documentElement,t=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector,n=!1;try{t.call(L.documentElement,"[test!='']:sizzle")}catch(e){n=!0}t&&(l.matchesSelector=function(e,i){if(i=i.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!l.isXML(e))try{if(n||!d.match.PSEUDO.test(i)&&!/!=/.test(i))return t.call(e,i)}catch(e){}return l(i,null,null,[e]).length>0})})(),(function(){var e=L.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>",e.getElementsByClassName&&0!==e.getElementsByClassName("e").length&&(e.lastChild.className="e",1!==e.getElementsByClassName("e").length&&(d.order.splice(1,0,"CLASS"),d.find.CLASS=function(e,t,n){if("undefined"!=typeof t.getElementsByClassName&&!n)return t.getElementsByClassName(e[1])},e=null))})(),L.documentElement.contains?l.contains=function(e,t){return e!==t&&(!e.contains||e.contains(t))}:L.documentElement.compareDocumentPosition?l.contains=function(e,t){return!!(16&e.compareDocumentPosition(t))}:l.contains=function(){return!1},l.isXML=function(e){var t=(e?e.ownerDocument||e:0).documentElement;return!!t&&"HTML"!==t.nodeName};var _=function(e,t){for(var n,i=[],r="",a=t.nodeType?[t]:t;n=d.match.PSEUDO.exec(e);)r+=n[0],e=e.replace(d.match.PSEUDO,"");e=d.relative[e]?e+"*":e;for(var o=0,s=a.length;o<s;o++)l(e,a[o],i);return l.filter(r,i)};F.find=l,F.expr=l.selectors,F.expr[":"]=F.expr.filters,F.unique=l.uniqueSort,F.text=l.getText,F.isXMLDoc=l.isXML,F.contains=l.contains})();var ue=/Until$/,ce=/^(?:parents|prevUntil|prevAll)/,le=/,/,de=/^.[^:#\[\.,]*$/,fe=Array.prototype.slice,pe=F.expr.match.POS,he={children:!0,contents:!0,next:!0,prev:!0};F.fn.extend({find:function(e){var t,n,i=this;if("string"!=typeof e)return F(e).filter((function(){for(t=0,n=i.length;t<n;t++)if(F.contains(i[t],this))return!0}));var r,a,o,s=this.pushStack("","find",e);for(t=0,n=this.length;t<n;t++)if(r=s.length,F.find(e,this[t],s),t>0)for(a=r;a<s.length;a++)for(o=0;o<r;o++)if(s[o]===s[a]){s.splice(a--,1);break}return s},has:function(e){var t=F(e);return this.filter((function(){for(var e=0,n=t.length;e<n;e++)if(F.contains(this,t[e]))return!0}))},not:function(e){return this.pushStack(d(this,e,!1),"not",e)},filter:function(e){return this.pushStack(d(this,e,!0),"filter",e)},is:function(e){return!!e&&("string"==typeof e?F.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,i,r=[],a=this[0];if(F.isArray(e)){var o,s,u={},c=1;if(a&&e.length){for(n=0,i=e.length;n<i;n++)s=e[n],u[s]||(u[s]=pe.test(s)?F(s,t||this.context):s);for(;a&&a.ownerDocument&&a!==t;){for(s in u)o=u[s],(o.jquery?o.index(a)>-1:F(a).is(o))&&r.push({selector:s,elem:a,level:c});a=a.parentNode,c++}}return r}var l=pe.test(e)||"string"!=typeof e?F(e,t||this.context):0;for(n=0,i=this.length;n<i;n++)for(a=this[n];a;){if(l?l.index(a)>-1:F.find.matchesSelector(a,e)){r.push(a);break}if(a=a.parentNode,!a||!a.ownerDocument||a===t||11===a.nodeType)break}return r=r.length>1?F.unique(r):r,this.pushStack(r,"closest",e)},index:function(e){return e?"string"==typeof e?F.inArray(this[0],F(e)):F.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n="string"==typeof e?F(e,t):F.makeArray(e&&e.nodeType?[e]:e),i=F.merge(this.get(),n);return this.pushStack(l(n[0])||l(i[0])?i:F.unique(i))},andSelf:function(){return this.add(this.prevObject)}}),F.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return F.dir(e,"parentNode")},parentsUntil:function(e,t,n){return F.dir(e,"parentNode",n)},next:function(e){return F.nth(e,2,"nextSibling")},prev:function(e){return F.nth(e,2,"previousSibling")},nextAll:function(e){return F.dir(e,"nextSibling")},prevAll:function(e){return F.dir(e,"previousSibling")},nextUntil:function(e,t,n){return F.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return F.dir(e,"previousSibling",n)},siblings:function(e){return F.sibling(e.parentNode.firstChild,e)},children:function(e){return F.sibling(e.firstChild)},contents:function(e){return F.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:F.makeArray(e.childNodes)}},(function(e,t){F.fn[e]=function(n,i){var r=F.map(this,t,n),a=fe.call(arguments);return ue.test(e)||(i=n),i&&"string"==typeof i&&(r=F.filter(i,r)),r=this.length>1&&!he[e]?F.unique(r):r,(this.length>1||le.test(i))&&ce.test(e)&&(r=r.reverse()),this.pushStack(r,e,a.join(","))}})),F.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?F.find.matchesSelector(t[0],e)?[t[0]]:[]:F.find.matches(e,t)},dir:function(e,n,i){for(var r=[],a=e[n];a&&9!==a.nodeType&&(i===t||1!==a.nodeType||!F(a).is(i));)1===a.nodeType&&r.push(a),a=a[n];return r},nth:function(e,t,n,i){t=t||1;for(var r=0;e&&(1!==e.nodeType||++r!==t);e=e[n]);return e},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var ge=/ jQuery\d+="(?:\d+|null)"/g,ve=/^\s+/,me=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,_e=/<([\w:]+)/,Ee=/<tbody/i,ye=/<|&#?\w+;/,Ie=/<(?:script|object|embed|option|style)/i,Se=/checked\s*(?:[^=]|=\s*.checked.)/i,Te=/\/(java|ecma)script/i,Ae=/^\s*<!(?:\[CDATA\[|\-\-)/,be={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};be.optgroup=be.option,be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,F.support.htmlSerialize||(be._default=[1,"div<div>","</div>"]),F.fn.extend({text:function(e){return F.isFunction(e)?this.each((function(t){var n=F(this);n.text(e.call(this,t,n.text()))})):"object"!=typeof e&&e!==t?this.empty().append((this[0]&&this[0].ownerDocument||L).createTextNode(e)):F.text(this)},wrapAll:function(e){if(F.isFunction(e))return this.each((function(t){F(this).wrapAll(e.call(this,t))}));if(this[0]){var t=F(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e})).append(this)}return this},wrapInner:function(e){return F.isFunction(e)?this.each((function(t){F(this).wrapInner(e.call(this,t))})):this.each((function(){var t=F(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){return this.each((function(){F(this).wrapAll(e)}))},unwrap:function(){return this.parent().each((function(){F.nodeName(this,"body")||F(this).replaceWith(this.childNodes)})).end()},append:function(){return this.domManip(arguments,!0,(function(e){1===this.nodeType&&this.appendChild(e)}))},prepend:function(){return this.domManip(arguments,!0,(function(e){1===this.nodeType&&this.insertBefore(e,this.firstChild)}))},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,(function(e){this.parentNode.insertBefore(e,this)}));if(arguments.length){var e=F(arguments[0]);return e.push.apply(e,this.toArray()),this.pushStack(e,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,(function(e){this.parentNode.insertBefore(e,this.nextSibling)}));if(arguments.length){var e=this.pushStack(this,"after",arguments);return e.push.apply(e,F(arguments[0]).toArray()),e}},remove:function(e,t){for(var n,i=0;null!=(n=this[i]);i++)e&&!F.filter(e,[n]).length||(t||1!==n.nodeType||(F.cleanData(n.getElementsByTagName("*")),F.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)for(1===e.nodeType&&F.cleanData(e.getElementsByTagName("*"));e.firstChild;)e.removeChild(e.firstChild);return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return F.clone(this,e,t)}))},html:function(e){if(e===t)return this[0]&&1===this[0].nodeType?this[0].innerHTML.replace(ge,""):null;if("string"!=typeof e||Ie.test(e)||!F.support.leadingWhitespace&&ve.test(e)||be[(_e.exec(e)||["",""])[1].toLowerCase()])F.isFunction(e)?this.each((function(t){var n=F(this);n.html(e.call(this,t,n.html()))})):this.empty().append(e);else{e=e.replace(me,"<$1></$2>");try{for(var n=0,i=this.length;n<i;n++)1===this[n].nodeType&&(F.cleanData(this[n].getElementsByTagName("*")),this[n].innerHTML=e)}catch(t){this.empty().append(e)}}return this},replaceWith:function(e){return this[0]&&this[0].parentNode?F.isFunction(e)?this.each((function(t){var n=F(this),i=n.html();n.replaceWith(e.call(this,t,i))})):("string"!=typeof e&&(e=F(e).detach()),this.each((function(){var t=this.nextSibling,n=this.parentNode;F(this).remove(),t?F(t).before(e):F(n).append(e)}))):this.length?this.pushStack(F(F.isFunction(e)?e():e),"replaceWith",e):this},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,i){var r,a,o,s,u=e[0],c=[];if(!F.support.checkClone&&3===arguments.length&&"string"==typeof u&&Se.test(u))return this.each((function(){F(this).domManip(e,n,i,!0)}));if(F.isFunction(u))return this.each((function(r){var a=F(this);e[0]=u.call(this,r,n?a.html():t),a.domManip(e,n,i)}));if(this[0]){if(s=u&&u.parentNode,r=F.support.parentNode&&s&&11===s.nodeType&&s.childNodes.length===this.length?{fragment:s}:F.buildFragment(e,this,c),o=r.fragment,a=1===o.childNodes.length?o=o.firstChild:o.firstChild){n=n&&F.nodeName(a,"tr");for(var l=0,d=this.length,p=d-1;l<d;l++)i.call(n?f(this[l],a):this[l],r.cacheable||d>1&&l<p?F.clone(o,!0,!0):o)}c.length&&F.each(c,_)}return this}}),F.buildFragment=function(e,t,n){var i,r,a,o;return t&&t[0]&&(o=t[0].ownerDocument||t[0]),o.createDocumentFragment||(o=L),1===e.length&&"string"==typeof e[0]&&e[0].length<512&&o===L&&"<"===e[0].charAt(0)&&!Ie.test(e[0])&&(F.support.checkClone||!Se.test(e[0]))&&(r=!0,a=F.fragments[e[0]],a&&1!==a&&(i=a)),i||(i=o.createDocumentFragment(),F.clean(e,o,i,n)),r&&(F.fragments[e[0]]=a?i:1),{fragment:i,cacheable:r}},F.fragments={},F.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){F.fn[e]=function(n){var i=[],r=F(n),a=1===this.length&&this[0].parentNode;if(a&&11===a.nodeType&&1===a.childNodes.length&&1===r.length)return r[t](this[0]),this;for(var o=0,s=r.length;o<s;o++){var u=(o>0?this.clone(!0):this).get();F(r[o])[t](u),i=i.concat(u)}return this.pushStack(i,e,r.selector)}})),F.extend({clone:function(e,t,n){var i,r,a,o=e.cloneNode(!0);if(!(F.support.noCloneEvent&&F.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||F.isXMLDoc(e)))for(h(e,o),i=g(e),r=g(o),a=0;i[a];++a)r[a]&&h(i[a],r[a]);if(t&&(p(e,o),n))for(i=g(e),r=g(o),a=0;i[a];++a)p(i[a],r[a]);return i=r=null,o},clean:function(e,t,n,i){var r;t=t||L,"undefined"==typeof t.createElement&&(t=t.ownerDocument||t[0]&&t[0].ownerDocument||L);for(var a,o,s=[],u=0;null!=(o=e[u]);u++)if("number"==typeof o&&(o+=""),o){if("string"==typeof o)if(ye.test(o)){o=o.replace(me,"<$1></$2>");var c=(_e.exec(o)||["",""])[1].toLowerCase(),l=be[c]||be._default,d=l[0],f=t.createElement("div");for(f.innerHTML=l[1]+o+l[2];d--;)f=f.lastChild;if(!F.support.tbody){var p=Ee.test(o),h="table"!==c||p?"<table>"!==l[1]||p?[]:f.childNodes:f.firstChild&&f.firstChild.childNodes;for(a=h.length-1;a>=0;--a)F.nodeName(h[a],"tbody")&&!h[a].childNodes.length&&h[a].parentNode.removeChild(h[a])}!F.support.leadingWhitespace&&ve.test(o)&&f.insertBefore(t.createTextNode(ve.exec(o)[0]),f.firstChild),o=f.childNodes}else o=t.createTextNode(o);var g;if(!F.support.appendChecked)if(o[0]&&"number"==typeof(g=o.length))for(a=0;a<g;a++)m(o[a]);else m(o);o.nodeType?s.push(o):s=F.merge(s,o)}if(n)for(r=function(e){return!e.type||Te.test(e.type)},u=0;s[u];u++)if(!i||!F.nodeName(s[u],"script")||s[u].type&&"text/javascript"!==s[u].type.toLowerCase()){if(1===s[u].nodeType){var v=F.grep(s[u].getElementsByTagName("script"),r);s.splice.apply(s,[u+1,0].concat(v))}n.appendChild(s[u])}else i.push(s[u].parentNode?s[u].parentNode.removeChild(s[u]):s[u]);return s},cleanData:function(e){for(var t,n,i,r=F.cache,a=F.expando,o=F.event.special,s=F.support.deleteExpando,u=0;null!=(i=e[u]);u++)if((!i.nodeName||!F.noData[i.nodeName.toLowerCase()])&&(n=i[F.expando])){if(t=r[n]&&r[n][a],t&&t.events){for(var c in t.events)o[c]?F.event.remove(i,c):F.removeEvent(i,c,t.handle);t.handle&&(t.handle.elem=null)}s?delete i[F.expando]:i.removeAttribute&&i.removeAttribute(F.expando),delete r[n]}}});var we,De,Re,Ne=/alpha\([^)]*\)/i,Oe=/opacity=([^)]*)/,Ce=/([A-Z]|^ms)/g,xe=/^-?\d+(?:px)?$/i,Le=/^-?\d/,Pe=/^([\-+])=([\-+.\de]+)/,ke={position:"absolute",visibility:"hidden",display:"block"},Fe=["Left","Right"],Ve=["Top","Bottom"];F.fn.css=function(e,n){return 2===arguments.length&&n===t?this:F.access(this,e,n,!0,(function(e,n,i){return i!==t?F.style(e,n,i):F.css(e,n)}))},F.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=we(e,"opacity","opacity");return""===n?"1":n}return e.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":F.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,i,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,o,s=F.camelCase(n),u=e.style,c=F.cssHooks[s];if(n=F.cssProps[s]||s,i===t)return c&&"get"in c&&(a=c.get(e,!1,r))!==t?a:u[n];if(o=typeof i,"string"===o&&(a=Pe.exec(i))&&(i=+(a[1]+1)*+a[2]+parseFloat(F.css(e,n)),o="number"),!(null==i||"number"===o&&isNaN(i)||("number"!==o||F.cssNumber[s]||(i+="px"),c&&"set"in c&&(i=c.set(e,i))===t)))try{u[n]=i}catch(e){}}},css:function(e,n,i){var r,a;return n=F.camelCase(n),a=F.cssHooks[n],n=F.cssProps[n]||n,"cssFloat"===n&&(n="float"),a&&"get"in a&&(r=a.get(e,!0,i))!==t?r:we?we(e,n):void 0},swap:function(e,t,n){var i={};for(var r in t)i[r]=e.style[r],e.style[r]=t[r];n.call(e);for(r in t)e.style[r]=i[r]}}),F.curCSS=F.css,F.each(["height","width"],(function(e,t){F.cssHooks[t]={get:function(e,n,i){var r;if(n)return 0!==e.offsetWidth?E(e,t,i):(F.swap(e,ke,(function(){r=E(e,t,i)})),r)},set:function(e,t){return xe.test(t)?(t=parseFloat(t),t>=0?t+"px":void 0):t}}})),F.support.opacity||(F.cssHooks.opacity={get:function(e,t){return Oe.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,r=F.isNaN(t)?"":"alpha(opacity="+100*t+")",a=i&&i.filter||n.filter||"";n.zoom=1,t>=1&&""===F.trim(a.replace(Ne,""))&&(n.removeAttribute("filter"),i&&!i.filter)||(n.filter=Ne.test(a)?a.replace(Ne,r):a+" "+r)}}),F((function(){F.support.reliableMarginRight||(F.cssHooks.marginRight={get:function(e,t){var n;return F.swap(e,{display:"inline-block"},(function(){n=t?we(e,"margin-right","marginRight"):e.style.marginRight})),n}})})),L.defaultView&&L.defaultView.getComputedStyle&&(De=function(e,n){var i,r,a;return n=n.replace(Ce,"-$1").toLowerCase(),(r=e.ownerDocument.defaultView)?((a=r.getComputedStyle(e,null))&&(i=a.getPropertyValue(n),""!==i||F.contains(e.ownerDocument.documentElement,e)||(i=F.style(e,n))),i):t}),L.documentElement.currentStyle&&(Re=function(e,t){var n,i=e.currentStyle&&e.currentStyle[t],r=e.runtimeStyle&&e.runtimeStyle[t],a=e.style;return!xe.test(i)&&Le.test(i)&&(n=a.left,r&&(e.runtimeStyle.left=e.currentStyle.left),a.left="fontSize"===t?"1em":i||0,i=a.pixelLeft+"px",a.left=n,r&&(e.runtimeStyle.left=r)),""===i?"auto":i}),we=De||Re,F.expr&&F.expr.filters&&(F.expr.filters.hidden=function(e){var t=e.offsetWidth,n=e.offsetHeight;return 0===t&&0===n||!F.support.reliableHiddenOffsets&&"none"===(e.style.display||F.css(e,"display"))},F.expr.filters.visible=function(e){return!F.expr.filters.hidden(e)});var Me,Ue,Be=/%20/g,Ge=/\[\]$/,je=/\r?\n/g,ze=/#.*$/,He=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ye=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Ke=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,qe=/^(?:GET|HEAD)$/,We=/^\/\//,Xe=/\?/,$e=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Qe=/^(?:select|textarea)/i,Je=/\s+/,Ze=/([?&])_=[^&]*/,et=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,tt=F.fn.load,nt={},it={},rt=["*/"]+["*"];try{Me=k.href}catch(e){Me=L.createElement("a"),Me.href="",Me=Me.href}Ue=et.exec(Me.toLowerCase())||[],F.fn.extend({load:function(e,n,i){if("string"!=typeof e&&tt)return tt.apply(this,arguments);if(!this.length)return this;var r=e.indexOf(" ");if(r>=0){var a=e.slice(r,e.length);e=e.slice(0,r)}var o="GET";n&&(F.isFunction(n)?(i=n,n=t):"object"==typeof n&&(n=F.param(n,F.ajaxSettings.traditional),o="POST"));var s=this;return F.ajax({url:e,type:o,dataType:"html",data:n,complete:function(e,t,n){n=e.responseText,e.isResolved()&&(e.done((function(e){n=e})),s.html(a?F("<div>").append(n.replace($e,"")).find(a):n)),i&&s.each(i,[n,t,e])}}),this},serialize:function(){return F.param(this.serializeArray())},serializeArray:function(){return this.map((function(){return this.elements?F.makeArray(this.elements):this})).filter((function(){return this.name&&!this.disabled&&(this.checked||Qe.test(this.nodeName)||Ye.test(this.type))})).map((function(e,t){var n=F(this).val();return null==n?null:F.isArray(n)?F.map(n,(function(e,n){return{name:t.name,value:e.replace(je,"\r\n")}})):{name:t.name,value:n.replace(je,"\r\n")}})).get()}}),F.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),(function(e,t){F.fn[t]=function(e){return this.bind(t,e)}})),F.each(["get","post"],(function(e,n){F[n]=function(e,i,r,a){return F.isFunction(i)&&(a=a||r,r=i,i=t),F.ajax({type:n,url:e,data:i,success:r,dataType:a})}})),F.extend({getScript:function(e,n){return F.get(e,t,n,"script")},getJSON:function(e,t,n){return F.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?S(e,F.ajaxSettings):(t=e,e=F.ajaxSettings),S(e,t),e},ajaxSettings:{url:Me,isLocal:Ke.test(Ue[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":rt},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":F.parseJSON,"text xml":F.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:y(nt),ajaxTransport:y(it),ajax:function(e,n){function i(e,n,i,o){if(2!==y){y=2,u&&clearTimeout(u),s=t,a=o||"",S.readyState=e>0?4:0;var c,d,_,E,I,T=n,w=i?A(f,S,i):t;if(e>=200&&e<300||304===e)if(f.ifModified&&((E=S.getResponseHeader("Last-Modified"))&&(F.lastModified[r]=E),(I=S.getResponseHeader("Etag"))&&(F.etag[r]=I)),304===e)T="notmodified",c=!0;else try{d=b(f,w),T="success",c=!0}catch(e){T="parsererror",_=e}else _=T,T&&!e||(T="error",e<0&&(e=0));S.status=e,S.statusText=""+(n||T),c?g.resolveWith(p,[d,T,S]):g.rejectWith(p,[S,T,_]),S.statusCode(m),m=t,l&&h.trigger("ajax"+(c?"Success":"Error"),[S,f,c?d:_]),v.resolveWith(p,[S,T]),l&&(h.trigger("ajaxComplete",[S,f]),--F.active||F.event.trigger("ajaxStop"))}}"object"==typeof e&&(n=e,e=t),n=n||{};var r,a,o,s,u,c,l,d,f=F.ajaxSetup({},n),p=f.context||f,h=p!==f&&(p.nodeType||p instanceof F)?F(p):F.event,g=F.Deferred(),v=F._Deferred(),m=f.statusCode||{},_={},E={},y=0,S={readyState:0,setRequestHeader:function(e,t){if(!y){var n=e.toLowerCase();e=E[n]=E[n]||e,_[e]=t}return this},getAllResponseHeaders:function(){return 2===y?a:null},getResponseHeader:function(e){var n;if(2===y){if(!o)for(o={};n=He.exec(a);)o[n[1].toLowerCase()]=n[2];n=o[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return y||(f.mimeType=e), this},abort:function(e){return e=e||"abort",s&&s.abort(e),i(0,e),this}};if(g.promise(S),S.success=S.done,S.error=S.fail,S.complete=v.done,S.statusCode=function(e){if(e){var t;if(y<2)for(t in e)m[t]=[m[t],e[t]];else t=e[S.status],S.then(t,t)}return this},f.url=((e||f.url)+"").replace(ze,"").replace(We,Ue[1]+"//"),f.dataTypes=F.trim(f.dataType||"*").toLowerCase().split(Je),null==f.crossDomain&&(c=et.exec(f.url.toLowerCase()),f.crossDomain=!(!c||c[1]==Ue[1]&&c[2]==Ue[2]&&(c[3]||("http:"===c[1]?80:443))==(Ue[3]||("http:"===Ue[1]?80:443)))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=F.param(f.data,f.traditional)),I(nt,f,n,S),2===y)return!1;if(l=f.global,f.type=f.type.toUpperCase(),f.hasContent=!qe.test(f.type),l&&0===F.active++&&F.event.trigger("ajaxStart"),!f.hasContent&&(f.data&&(f.url+=(Xe.test(f.url)?"&":"?")+f.data,delete f.data),r=f.url,f.cache===!1)){var T=F.now(),w=f.url.replace(Ze,"$1_="+T);f.url=w+(w===f.url?(Xe.test(f.url)?"&":"?")+"_="+T:"")}(f.data&&f.hasContent&&f.contentType!==!1||n.contentType)&&S.setRequestHeader("Content-Type",f.contentType),f.ifModified&&(r=r||f.url,F.lastModified[r]&&S.setRequestHeader("If-Modified-Since",F.lastModified[r]),F.etag[r]&&S.setRequestHeader("If-None-Match",F.etag[r])),S.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+rt+"; q=0.01":""):f.accepts["*"]);for(d in f.headers)S.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(f.beforeSend.call(p,S,f)===!1||2===y))return S.abort(),!1;for(d in{success:1,error:1,complete:1})S[d](f[d]);if(s=I(it,f,n,S)){S.readyState=1,l&&h.trigger("ajaxSend",[S,f]),f.async&&f.timeout>0&&(u=setTimeout((function(){S.abort("timeout")}),f.timeout));try{y=1,s.send(_,i)}catch(e){y<2?i(-1,e):F.error(e)}}else i(-1,"No Transport");return S},param:function(e,n){var i=[],r=function(e,t){t=F.isFunction(t)?t():t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=F.ajaxSettings.traditional),F.isArray(e)||e.jquery&&!F.isPlainObject(e))F.each(e,(function(){r(this.name,this.value)}));else for(var a in e)T(a,e[a],n,r);return i.join("&").replace(Be,"+")}}),F.extend({active:0,lastModified:{},etag:{}});var at=F.now(),ot=/(\=)\?(&|$)|\?\?/i;F.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return F.expando+"_"+at++}}),F.ajaxPrefilter("json jsonp",(function(t,n,i){var r="application/x-www-form-urlencoded"===t.contentType&&"string"==typeof t.data;if("jsonp"===t.dataTypes[0]||t.jsonp!==!1&&(ot.test(t.url)||r&&ot.test(t.data))){var a,o=t.jsonpCallback=F.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s=e[o],u=t.url,c=t.data,l="$1"+o+"$2";return t.jsonp!==!1&&(u=u.replace(ot,l),t.url===u&&(r&&(c=c.replace(ot,l)),t.data===c&&(u+=(/\?/.test(u)?"&":"?")+t.jsonp+"="+o))),t.url=u,t.data=c,e[o]=function(e){a=[e]},i.always((function(){e[o]=s,a&&F.isFunction(s)&&e[o](a[0])})),t.converters["script json"]=function(){return a||F.error(o+" was not called"),a[0]},t.dataTypes[0]="json","script"}})),F.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return F.globalEval(e),e}}}),F.ajaxPrefilter("script",(function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)})),F.ajaxTransport("script",(function(e){if(e.crossDomain){var n,i=L.head||L.getElementsByTagName("head")[0]||L.documentElement;return{send:function(r,a){n=L.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,r){(r||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,i&&n.parentNode&&i.removeChild(n),n=t,r||a(200,"success"))},i.insertBefore(n,i.firstChild)},abort:function(){n&&n.onload(0,1)}}}}));var st,ut=!!e.ActiveXObject&&function(){for(var e in st)st[e](0,1)},ct=0;F.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&w()||D()}:w,(function(e){F.extend(F.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})})(F.ajaxSettings.xhr()),F.support.ajax&&F.ajaxTransport((function(n){if(!n.crossDomain||F.support.cors){var i;return{send:function(r,a){var o,s,u=n.xhr();if(n.username?u.open(n.type,n.url,n.async,n.username,n.password):u.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)u[s]=n.xhrFields[s];n.mimeType&&u.overrideMimeType&&u.overrideMimeType(n.mimeType),n.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");try{for(s in r)u.setRequestHeader(s,r[s])}catch(e){}u.send(n.hasContent&&n.data||null),i=function(e,r){var s,c,l,d,f;try{if(i&&(r||4===u.readyState))if(i=t,o&&(u.onreadystatechange=F.noop,ut&&delete st[o]),r)4!==u.readyState&&u.abort();else{s=u.status,l=u.getAllResponseHeaders(),d={},f=u.responseXML,f&&f.documentElement&&(d.xml=f),d.text=u.responseText;try{c=u.statusText}catch(e){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=d.text?200:404}}catch(e){r||a(-1,e)}d&&a(s,c,d,l)},n.async&&4!==u.readyState?(o=++ct,ut&&(st||(st={},F(e).unload(ut)),st[o]=i),u.onreadystatechange=i):i()},abort:function(){i&&i(0,1)}}}}));var lt,dt,ft,pt,ht={},gt=/^(?:toggle|show|hide)$/,vt=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,mt=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];F.fn.extend({show:function(e,t,n){var i,r;if(e||0===e)return this.animate(O("show",3),e,t,n);for(var a=0,o=this.length;a<o;a++)i=this[a],i.style&&(r=i.style.display,F._data(i,"olddisplay")||"none"!==r||(r=i.style.display=""),""===r&&"none"===F.css(i,"display")&&F._data(i,"olddisplay",C(i.nodeName)));for(a=0;a<o;a++)i=this[a],i.style&&(r=i.style.display,""!==r&&"none"!==r||(i.style.display=F._data(i,"olddisplay")||""));return this},hide:function(e,t,n){if(e||0===e)return this.animate(O("hide",3),e,t,n);for(var i=0,r=this.length;i<r;i++)if(this[i].style){var a=F.css(this[i],"display");"none"===a||F._data(this[i],"olddisplay")||F._data(this[i],"olddisplay",a)}for(i=0;i<r;i++)this[i].style&&(this[i].style.display="none");return this},_toggle:F.fn.toggle,toggle:function(e,t,n){var i="boolean"==typeof e;return F.isFunction(e)&&F.isFunction(t)?this._toggle.apply(this,arguments):null==e||i?this.each((function(){var t=i?e:F(this).is(":hidden");F(this)[t?"show":"hide"]()})):this.animate(O("toggle",3),e,t,n),this},fadeTo:function(e,t,n,i){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=F.speed(t,n,i);return F.isEmptyObject(e)?this.each(r.complete,[!1]):(e=F.extend({},e),this[r.queue===!1?"each":"queue"]((function(){r.queue===!1&&F._mark(this);var t,n,i,a,o,s,u,c,l,d=F.extend({},r),f=1===this.nodeType,p=f&&F(this).is(":hidden");d.animatedProperties={};for(i in e){if(t=F.camelCase(i),i!==t&&(e[t]=e[i],delete e[i]),n=e[t],F.isArray(n)?(d.animatedProperties[t]=n[1],n=e[t]=n[0]):d.animatedProperties[t]=d.specialEasing&&d.specialEasing[t]||d.easing||"swing","hide"===n&&p||"show"===n&&!p)return d.complete.call(this);!f||"height"!==t&&"width"!==t||(d.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===F.css(this,"display")&&"none"===F.css(this,"float")&&(F.support.inlineBlockNeedsLayout?(a=C(this.nodeName),"inline"===a?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"))}null!=d.overflow&&(this.style.overflow="hidden");for(i in e)o=new F.fx(this,d,i),n=e[i],gt.test(n)?o["toggle"===n?p?"show":"hide":n]():(s=vt.exec(n),u=o.cur(),s?(c=parseFloat(s[2]),l=s[3]||(F.cssNumber[i]?"":"px"),"px"!==l&&(F.style(this,i,(c||1)+l),u=(c||1)/o.cur()*u,F.style(this,i,u+l)),s[1]&&(c=("-="===s[1]?-1:1)*c+u),o.custom(u,c,l)):o.custom(u,n,""));return!0})))},stop:function(e,t){return e&&this.queue([]),this.each((function(){var e=F.timers,n=e.length;for(t||F._unmark(!0,this);n--;)e[n].elem===this&&(t&&e[n](!0),e.splice(n,1))})),t||this.dequeue(),this}}),F.each({slideDown:O("show",1),slideUp:O("hide",1),slideToggle:O("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){F.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),F.extend({speed:function(e,t,n){var i=e&&"object"==typeof e?F.extend({},e):{complete:n||!n&&t||F.isFunction(e)&&e,duration:e,easing:n&&t||t&&!F.isFunction(t)&&t};return i.duration=F.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in F.fx.speeds?F.fx.speeds[i.duration]:F.fx.speeds._default,i.old=i.complete,i.complete=function(e){F.isFunction(i.old)&&i.old.call(this),i.queue!==!1?F.dequeue(this):e!==!1&&F._unmark(this)},i},easing:{linear:function(e,t,n,i){return n+i*e},swing:function(e,t,n,i){return(-Math.cos(e*Math.PI)/2+.5)*i+n}},timers:[],fx:function(e,t,n){this.options=t,this.elem=e,this.prop=n,t.orig=t.orig||{}}}),F.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(F.fx.step[this.prop]||F.fx.step._default)(this)},cur:function(){if(null!=this.elem[this.prop]&&(!this.elem.style||null==this.elem.style[this.prop]))return this.elem[this.prop];var e,t=F.css(this.elem,this.prop);return isNaN(e=parseFloat(t))?t&&"auto"!==t?t:0:e},custom:function(e,t,n){function i(e){return r.step(e)}var r=this,a=F.fx;this.startTime=pt||R(),this.start=e,this.end=t,this.unit=n||this.unit||(F.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,i.elem=this.elem,i()&&F.timers.push(i)&&!ft&&(ft=setInterval(a.tick,a.interval))},show:function(){this.options.orig[this.prop]=F.style(this.elem,this.prop),this.options.show=!0,this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur()),F(this.elem).show()},hide:function(){this.options.orig[this.prop]=F.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(e){var t,n,i=pt||R(),r=!0,a=this.elem,o=this.options;if(e||i>=o.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),o.animatedProperties[this.prop]=!0;for(t in o.animatedProperties)o.animatedProperties[t]!==!0&&(r=!1);if(r){if(null==o.overflow||F.support.shrinkWrapBlocks||F.each(["","X","Y"],(function(e,t){a.style["overflow"+t]=o.overflow[e]})),o.hide&&F(a).hide(),o.hide||o.show)for(var s in o.animatedProperties)F.style(a,s,o.orig[s]);o.complete.call(a)}return!1}return o.duration==1/0?this.now=i:(n=i-this.startTime,this.state=n/o.duration,this.pos=F.easing[o.animatedProperties[this.prop]](this.state,n,0,1,o.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},F.extend(F.fx,{tick:function(){for(var e=F.timers,t=0;t<e.length;++t)e[t]()||e.splice(t--,1);e.length||F.fx.stop()},interval:13,stop:function(){clearInterval(ft),ft=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){F.style(e.elem,"opacity",e.now)},_default:function(e){e.elem.style&&null!=e.elem.style[e.prop]?e.elem.style[e.prop]=("width"===e.prop||"height"===e.prop?Math.max(0,e.now):e.now)+e.unit:e.elem[e.prop]=e.now}}}),F.expr&&F.expr.filters&&(F.expr.filters.animated=function(e){return F.grep(F.timers,(function(t){return e===t.elem})).length});var _t=/^t(?:able|d|h)$/i,Et=/^(?:body|html)$/i;return"getBoundingClientRect"in L.documentElement?F.fn.offset=function(e){var t,n=this[0];if(e)return this.each((function(t){F.offset.setOffset(this,e,t)}));if(!n||!n.ownerDocument)return null;if(n===n.ownerDocument.body)return F.offset.bodyOffset(n);try{t=n.getBoundingClientRect()}catch(e){}var i=n.ownerDocument,r=i.documentElement;if(!t||!F.contains(r,n))return t?{top:t.top,left:t.left}:{top:0,left:0};var a=i.body,o=x(i),s=r.clientTop||a.clientTop||0,u=r.clientLeft||a.clientLeft||0,c=o.pageYOffset||F.support.boxModel&&r.scrollTop||a.scrollTop,l=o.pageXOffset||F.support.boxModel&&r.scrollLeft||a.scrollLeft,d=t.top+c-s,f=t.left+l-u;return{top:d,left:f}}:F.fn.offset=function(e){var t=this[0];if(e)return this.each((function(t){F.offset.setOffset(this,e,t)}));if(!t||!t.ownerDocument)return null;if(t===t.ownerDocument.body)return F.offset.bodyOffset(t);F.offset.initialize();for(var n,i=t.offsetParent,r=t,a=t.ownerDocument,o=a.documentElement,s=a.body,u=a.defaultView,c=u?u.getComputedStyle(t,null):t.currentStyle,l=t.offsetTop,d=t.offsetLeft;(t=t.parentNode)&&t!==s&&t!==o&&(!F.offset.supportsFixedPosition||"fixed"!==c.position);)n=u?u.getComputedStyle(t,null):t.currentStyle,l-=t.scrollTop,d-=t.scrollLeft,t===i&&(l+=t.offsetTop,d+=t.offsetLeft,!F.offset.doesNotAddBorder||F.offset.doesAddBorderForTableAndCells&&_t.test(t.nodeName)||(l+=parseFloat(n.borderTopWidth)||0,d+=parseFloat(n.borderLeftWidth)||0),r=i,i=t.offsetParent),F.offset.subtractsBorderForOverflowNotVisible&&"visible"!==n.overflow&&(l+=parseFloat(n.borderTopWidth)||0,d+=parseFloat(n.borderLeftWidth)||0),c=n;return"relative"!==c.position&&"static"!==c.position||(l+=s.offsetTop,d+=s.offsetLeft),F.offset.supportsFixedPosition&&"fixed"===c.position&&(l+=Math.max(o.scrollTop,s.scrollTop),d+=Math.max(o.scrollLeft,s.scrollLeft)),{top:l,left:d}},F.offset={initialize:function(){var e,t,n,i=L.body,r=L.createElement("div"),a=parseFloat(F.css(i,"marginTop"))||0,o="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";F.extend(r.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),r.innerHTML=o,i.insertBefore(r,i.firstChild),e=r.firstChild,t=e.firstChild,n=e.nextSibling.firstChild.firstChild,this.doesNotAddBorder=5!==t.offsetTop,this.doesAddBorderForTableAndCells=5===n.offsetTop,t.style.position="fixed",t.style.top="20px",this.supportsFixedPosition=20===t.offsetTop||15===t.offsetTop,t.style.position=t.style.top="",e.style.overflow="hidden",e.style.position="relative",this.subtractsBorderForOverflowNotVisible=t.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=i.offsetTop!==a,i.removeChild(r),F.offset.initialize=F.noop},bodyOffset:function(e){var t=e.offsetTop,n=e.offsetLeft;return F.offset.initialize(),F.offset.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(F.css(e,"marginTop"))||0,n+=parseFloat(F.css(e,"marginLeft"))||0),{top:t,left:n}},setOffset:function(e,t,n){var i=F.css(e,"position");"static"===i&&(e.style.position="relative");var r,a,o=F(e),s=o.offset(),u=F.css(e,"top"),c=F.css(e,"left"),l=("absolute"===i||"fixed"===i)&&F.inArray("auto",[u,c])>-1,d={},f={};l?(f=o.position(),r=f.top,a=f.left):(r=parseFloat(u)||0,a=parseFloat(c)||0),F.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(d.top=t.top-s.top+r),null!=t.left&&(d.left=t.left-s.left+a),"using"in t?t.using.call(e,d):o.css(d)}},F.fn.extend({position:function(){if(!this[0])return null;var e=this[0],t=this.offsetParent(),n=this.offset(),i=Et.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(F.css(e,"marginTop"))||0,n.left-=parseFloat(F.css(e,"marginLeft"))||0,i.top+=parseFloat(F.css(t[0],"borderTopWidth"))||0,i.left+=parseFloat(F.css(t[0],"borderLeftWidth"))||0,{top:n.top-i.top,left:n.left-i.left}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||L.body;e&&!Et.test(e.nodeName)&&"static"===F.css(e,"position");)e=e.offsetParent;return e}))}}),F.each(["Left","Top"],(function(e,n){var i="scroll"+n;F.fn[i]=function(n){var r,a;return n===t?(r=this[0])?(a=x(r),a?"pageXOffset"in a?a[e?"pageYOffset":"pageXOffset"]:F.support.boxModel&&a.document.documentElement[i]||a.document.body[i]:r[i]):null:this.each((function(){a=x(this),a?a.scrollTo(e?F(a).scrollLeft():n,e?n:F(a).scrollTop()):this[i]=n}))}})),F.each(["Height","Width"],(function(e,n){var i=n.toLowerCase();F.fn["inner"+n]=function(){var e=this[0];return e&&e.style?parseFloat(F.css(e,i,"padding")):null},F.fn["outer"+n]=function(e){var t=this[0];return t&&t.style?parseFloat(F.css(t,i,e?"margin":"border")):null},F.fn[i]=function(e){var r=this[0];if(!r)return null==e?null:this;if(F.isFunction(e))return this.each((function(t){var n=F(this);n[i](e.call(this,t,n[i]()))}));if(F.isWindow(r)){var a=r.document.documentElement["client"+n],o=r.document.body;return"CSS1Compat"===r.document.compatMode&&a||o&&o["client"+n]||a}if(9===r.nodeType)return Math.max(r.documentElement["client"+n],r.body["scroll"+n],r.documentElement["scroll"+n],r.body["offset"+n],r.documentElement["offset"+n]);if(e===t){var s=F.css(r,i),u=parseFloat(s);return F.isNaN(u)?s:u}return this.css(i,"string"==typeof e?e:e+"px")}})),F})(window);n.noConflict(!0),e.exports=n}),(function(e,t,n){var i=n(23),r=n(40),a="optimizelyDataApi";t.registerFunction=function(e,t){var n=r.getGlobal(a);n||(n={},r.setGlobal(a,n)),n[e]||(n[e]=t)},t.unregisterFunction=function(e){var t=r.getGlobal(a);t&&t[e]&&(t[e]=function(){i.log('Ignoring attempt to call "'+a+"."+e+'" which has been unregistered.')})},t.getFunction=function(e){return r.getGlobal(a)[e]}}),(function(e,t,n){var i=n(80),r=n(23),a=n(91);t.addScriptAsync=function(e,t){var n=i.querySelector("head"),a=i.createElement("script");a.type="text/javascript",a.async=!0,a.src=e,t&&(a.onload=t),n.insertBefore(a,n.firstChild),r.debug("Asynchronously requesting "+e)},t.addScriptSync=function(e,n){try{var o="optimizely_synchronous_script_"+Math.floor(1e5*Math.random());if(e.indexOf('"')!==-1)return void r.error("Blocked attempt to load unsafe script: "+e);i.write('<script id="'+o+'" src="'+e+'"></script>');var s=i.querySelector("#"+o);if(!s)throw new Error("Document.write failed to append script");s.onload=n,s.onerror=function(i){r.warn("Failed to load script ("+e+") synchronously:",i),t.addScriptAsync(e,n)}}catch(i){r.debug("Document.write failed for "+e+": "+i.message);var u=function(e){var t=new Function(e.responseText);t(),n&&n()};return a.request({url:e,async:!1,contentType:"text/plain",success:u})["catch"]((function(i){r.error("Failed to load "+e+" via synchronous XHR: "+i.message),t.addScriptAsync(e,n)}))}}}),(function(e,t,n){function i(){var e=null;D.isNumber(e)&&0===me.getCount()?(Q.log("Activating after delay of",e,"ms because no Experiments are running"),q.dispatch(x.SET_RUM_DATA,{data:{activateDfd:!0}}),ce.setTimeout(P.emitActivateEvent,e)):P.emitActivateEvent()}function r(e){Ne.handleError(e.data.error,e.data.metadata)}function a(){D.isArray(window.optimizely)&&(window.optimizely=D.filter(window.optimizely,(function(e){var t=!0;return!Re.push(e,t)})))}function o(){var e=n(85),i=!!ue.getCurrentId(),r=!!i&&ue.hasSomeData();i?r?Q.log("xd / Existing visitor; has data on this origin"):Q.log("xd / Existing visitor; new to this origin"):Q.log("xd / New visitor");var a=ge.getAccountId(),o="https://a275532918.cdn.optimizely.com".replace("__SUBDOMAIN__","a"+a+"."),u="/client_storage/a"+a+".html";e.subscribe((function(e,t){ue.checkKeyForVisitorId(e)&&$.setItem(e,t)}));var c=e.fetchAll().then((function(t){if(!be.getVisitorIdLocator()){var n=De.getCanonicalOrigins();if(n){var i=e.getXDomainUserId(t,n);i&&(Q.log("Syncing cross-origin visitor randomId:",i),ue.maybePersistVisitorId({randomId:i}))}}return ue.deleteOldForeignData(),t})).then(t.persistItemsWithId).then((function(e){if(ue.loadForeignData(),i&&!r){var t=!D.isEmpty(e);Q.debug("xd / Loaded foreign data? ",t),s(t)}Q.log("Loaded visitor data from foreign origins"),P.emitOriginsSyncedEvent()}),(function(e){throw i&&!r&&(Q.debug("xd / Failed to load foreign data:",e),s(!1,e)),e}));return ne.all([e.load(o,u)["catch"]((function(e){throw Q.debug("xd / Failed to load iframe:",e),i&&!r&&s(!1,e),e})),c["catch"]((function(e){Q.debug("xd / Ignored error syncing foreign data (expected if waitForOriginSync used):",e.message),Q.debug("xd / Enqueuing sync to happen after visitorId set."),q.dispatch(x.ADD_CLEANUP_FN,{lifecycle:z.Lifecycle.postVisitorProfileLoad,cleanupFn:P.emitOriginsSyncedEvent})}))])}function s(e,t){q.dispatch(x.SET_RUM_DATA,{data:{extras:{xdAttempt:e,xdError:t?t.toString():void 0}}})}function u(e){var t=Se.getVisitorProfile();return ue.populateEagerVisitorData(e,t)}function c(e,t,n){e=e||[];var i=ye.getAllPlugins(z.PluginTypes.visitorProfileProviders),r=ge.getGlobalHoldbackThreshold(),a=Se.getVisitorProfile();ue.populateLazyVisitorData(i,a);var o=be.getBucketingId();if(!o)throw new Error("bucketingId not set");var s,u=Se.getVisitorProfile();if(t&&!Le){var c=we.getVariationIdMap();s=c[t.id]}var l={bucketingId:o,visitorProfile:u,audiences:e,globalHoldback:r,preferredVariationMap:s,layer:t};return t&&n&&U.isPageIdRelevant(t)?D.map(n,(function(e){return U.createTicket(D.extend({},l,{pageId:e}))})):[U.createTicket(l)]}function l(e){return{bucketingId:be.getBucketingId(),preferredLayerId:we.getPreferredLayerMap()[e.id]}}function d(e){var n=me.getAllByPageIds(e),i=he.getForceVariationIds(),r=he.getForceAudienceIds(),a=!D.isEmpty(i);a&&Q.log("Force variations are in use. Disabling mutual exclusivity.");var o=a?{individual:n}:D.reduce(n,(function(e,t){return t.groupId?e.groups[t.groupId]||(e.groups[t.groupId]=ve.get(t.groupId)):e.individual.push(t),e}),{groups:{},individual:[]});Q.log("Deciding Campaigns/Experiments for Page(s)",e);var s=D.map(o.groups,W.description).join(", ");Q.log("Groups:",s);var u=D.map(o.individual,X.description).join(", ");Q.log("Campaigns/Experiments not in Groups (by Campaign id):",u);var c=D.map(o.groups,D.partial(f,i,r,e))||[],l=D.map(o.individual,(function(n){var a=D.filter(n.pageIds,D.partial(D.includes,e));return t.decideAndExecuteLayerASAP(i,r,a,n)})),d=c.concat(l);return ne.all(d).then((function(t){var n=D.filter(t,(function(e){return!!e}));return Q.log("All Campaigns/Experiments for Page(s) (by Campaign id)",e,"resolved:",D.map(n,X.description).join(", ")),n}))}function f(e,n,i,r){try{var a=l(r),o=U.decideGroup(r,a);if(o.reason)return Q.debug("Not activating Group",W.description(r),"; reason:",o.reason),Ie.getSampleRum()&&q.dispatch(x.RECORD_LAYER_FEATURE_USAGE,{feature:"mutex",entityId:r.id}),ne.resolve();var s=me.get(o.layerId);if(!s)return Q.debug("Visitor was bucketed into a Campaign ("+o.layerId+") which is not in this snippet"),ne.resolve();var u=D.filter(s.pageIds,D.partial(D.includes,i));return D.isEmpty(u)?(Q.debug("Not activating Group",W.description(r),"; reason: visitor was bucketed into a Campaign/Experiment not related to the currently-activating Page(s)"),ne.resolve()):(Ie.getSampleRum()&&q.dispatch(x.RECORD_LAYER_FEATURE_USAGE,{feature:"mutex",entityId:r.id}),t.decideAndExecuteLayerASAP(e,n,u,s))}catch(e){return Q.error("Error getting decision for Group",W.description(r),"; ",e),ne.reject(e)}}function p(e,t,n,i){return new ne(function(r,a){try{_(i,e,t,n,(function(a){D.each(a,(function(r){var a=r.pageId?[r.pageId]:n;Q.debug("Deciding layer: ",i,"with decisionTicket: ",r,"and actionViewIds: ",a),h(i,e,t,a,r)})),r(i)}))}catch(e){Q.error("Error getting decision for Campaign: "+X.description(i),e),a(e)}})}function h(e,n,i,r,a){var o=X.description(e);Q.log("Activating Campaign",o,"on Page(s)",r),i.length&&(Q.log("Applying force audienceIds:",i,"to Campaign",o),a=D.cloneDeep(a),a.audienceIds=i);var s=t.decideLayer(e,a,n),u=!(!n.length&&!i.length),c=t.getActionsForDecision(e,s,u),l=w(c.actions,r);if(c.maybeExecute&&g(l,e,s,r),D.forEach(r,(function(){L.trackDecisionEvent(s,a)})),P.emitLayerDecided({layer:e,decisionTicket:a,decision:s}),s.error)throw s.error;if(Ie.getSampleRum()){q.dispatch(x.RECORD_LAYER_POLICY_USAGE,{policy:e.policy,layerId:e.id});var d=m(c.actions);q.dispatch(x.RECORD_CHANGE_TYPE_USAGE,{changeTypes:D.keys(d),layerId:e.id}),D.isEmpty(e.integrationSettings)||q.dispatch(x.RECORD_INTEGRATION_USAGE,{integrations:X.getIntegrationTypes(e),layerId:e.id})}return U.isInCohort(s)?void(c.maybeExecute&&v(l,e,s,r)):void Q.log("Not activating Campaign: "+X.description(e)+"; not in the cohort because:",s.reason)}function g(e,t,n,i){var r=X.description(t);Q.log("Preparing actions",e,"for Campaign",r,"on Page(s)",i),D.forEach(e,C.prepareAction)}function v(e,t,n,i){var r=X.description(t);return Q.log("Executing actions",e,"for Campaign",r,"on Page(s)",i),ne.all(D.map(e,(function(e){return C.executePreparedAction(e).then(D.partial(P.emitActionAppliedEvent,e))}))).then((function(){Q.log("All page actions for",n,"applied:",e),P.emitActionsForDecisionAppliedEvent(n,e)}))["catch"]((function(e){Q.warn("Error evaluating page actions for decision",n,"because:",e)}))}function m(e){var t={};return D.each(e,(function(e){D.each(e.changeSet,(function(e){t[e.type]||(t[e.type]=!0)}))})),t}function _(e,t,n,i,r){if(t.length||n.length)return void r(c([],void 0,i));var a=X.relatedAudienceIds(e),o=D.reduce(a,(function(e,t){var n=de.get(t);return n&&e.push(n),e}),[]),s=ye.getAllPlugins(z.PluginTypes.audienceMatchers);if(Ie.getSampleRum()){var u={};if(D.each(o,(function(e){D.extend(u,E(e.conditions,s))})),!D.isEmpty(u)){var l=D.keys(u);q.dispatch(x.RECORD_AUDIENCE_USAGE,{audienceTypes:l,layerId:e.id})}}S(o,s,X.getActivationTimeout(e),(function(){var t=c(o,e,i);D.map(t,(function(t){y(t,o,e)})),r(t)}))}function E(e,t){var n={};return D.each(e,(function(e){D.isArray(e)?D.extend(n,E(e,t)):D.isObject(e)&&t[e.type]&&(n[e.type]=!0)})),n}function y(e,t,n){var i=D.map(e.audienceIds,D.bind(de.get,de)),r=D.filter(t,(function(t){return!D.includes(e.audienceIds,t.id)}));Q.log("When deciding Campaign",X.description(n),"visitor is in audiences:",I(i),"and not in audiences:",I(r))}function I(e){var t=[];return D.each(e,(function(e){t.push(e.name,e)})),t}function S(e,t,n,i){var r=D.reduce(e,(function(e,n){return D.extend(e,k.requiredAudienceFieldsForConditions(n.conditions,t))}),{}),a=D.reduce(r,(function(e,t){if(D.isUndefined(ue.getAttribute(t))){var n=ue.getPendingAttributeValue(t);D.isUndefined(n)||e.push(n)}return e}),[]);if(0===a.length)return i();var o=[].concat(e),s=ie.firstToResolve(D.map(a,(function(e){return ne.resolve(e).then((function(){var e=Se.getVisitorProfile();if(o=D.filter(o,(function(n){return D.isUndefined(k.isInAudience(e,n,t))})),!D.isEmpty(o))throw new Error("At least one audience is still pending")}))})));ne.race([s,new ne(function(e,t){ce.setTimeout(t,n)})]).then((function(){Q.log("Activating Campaign after pending Audiences resolved",e),i()}),(function(){Q.log("Activating Campaign after timeout on Audiences",e),i()}))}function T(e,t,n){var i,r=X.description(e);return i=n.length?U.getDummyLayerDecision(e,n):U.decideLayer(e,t),Q.log("Recording decision for Campaign",r,t,"->",i),X.recordLayerDecision(e.id,t,i),Le||(i.variationId&&i.experimentId&&ue.updateVariationIdMap(e.id,i.experimentId,i.variationId),e.groupId&&ue.updatePreferredLayerMap(e.groupId,e.id)),i}function A(e){var t=pe.getCleanupFns(e);if(t.length>0){for(;t.length>0;)t.shift()();q.dispatch(x.CLEAR_CLEANUP_FN,{lifecycle:e})}}function b(e,t,n){var i=X.description(e),r="NOT applying changes for Campaign",a={actions:[],maybeExecute:!1};return a.actions=[].concat(fe.getLayerActions(t.layerId)||[],fe.getExperimentActions(t.experimentId)||[],fe.getExperimentVariationActions(t.experimentId,t.variationId)||[]),!n&&ge.isGlobalHoldback()?(Q.log(r,i,"(visitor is in global holdback)"),a):t.isLayerHoldback?(Q.log(r,i,"(visitor is in layer holdback)"),a):t.experimentId&&t.variationId?(a.maybeExecute=!0,Q.log("Got Actions for Campaign:",i,a.actions),a):(Q.log(r,i,"(visitor is not eligible for any Experiments)"),a)}function w(e,t){return D.filter(e,(function(e){return D.isUndefined(e.pageId)||D.includes(t,e.pageId)}))}var D=n(2),R=n(76).create,N=t.ActivationCodeError=R("ActivationCodeError"),O=t.ProjectJSError=R("ProjectJSError"),C=n(135),x=n(7),L=n(110),P=n(117),k=n(139),F=n(86),V=n(109),M=n(24),U=n(140),B=n(16),G=n(118),j=n(80),z=n(25),H=n(87),Y=n(111),K=n(145),q=n(9),W=n(144),X=n(113),$=n(81).LocalStorage,Q=n(23),J=n(146),Z=n(83),ee=n(122),te=n(88),ne=n(12).Promise,ie=n(147),re=n(114),ae=n(116),oe=n(137),se=n(123),ue=n(74),ce=n(40),B=n(16),le=B.get("stores/session"),de=B.get("stores/audience_data"),fe=B.get("stores/action_data"),pe=B.get("stores/cleanup"),he=B.get("stores/directive"),ge=B.get("stores/global"),ve=B.get("stores/group_data"),me=B.get("stores/layer_data"),_e=B.get("stores/layer"),Ee=B.get("stores/pending_events"),ye=B.get("stores/plugins"),Ie=B.get("stores/rum"),Se=B.get("stores/visitor"),Te=B.get("stores/view_data"),Ae=B.get("stores/view"),be=B.get("stores/visitor_id"),we=B.get("stores/visitor_bucketing"),De=B.get("stores/xdomain"),Re=n(93),Ne=n(120),Oe=n(1),Ce=1e3,xe=!1,Le=!1,Pe=!1,ke=Le||Pe,Fe=1e3,Ve=t;t.initialize=function(e){return this.initGlobalStore(e.clientData),this.initializePlugins(e.plugins)},t.initGlobalStore=function(e){var e=e;V.normalizeClientData(e),H.on({filter:{type:"error"},handler:r}),q.dispatch(x.DATA_LOADED,{data:e}),Q.log("Initialized with DATA:",e)},t.initializePlugins=function(e){if(a(),G.setOptOut(he.shouldOptOut()),he.isDisabled()||he.shouldOptOut())return void Q.log("Controller / Is disabled");if(Oe.queueBeacons(),j.isReady()?q.dispatch(x.SET_DOMCONTENTLOADED):j.addReadyHandler((function(){q.dispatch(x.SET_DOMCONTENTLOADED)})),!ke){Z.time("projectJS");var n=ge.getProjectJS();if(D.isFunction(n))try{K.apply(n)}catch(e){Q.error("Error while executing projectJS: ",e),F.emitError(new O(e))}Z.timeEnd("projectJS")}D.each(e||[],(function(e){try{e(ee)}catch(e){F.emitInternalError(e)}})),D.each(ge.getPlugins()||[],(function(e){try{K.apply(e,[ee])}catch(e){F.emitError(e)}})),re.load();var r=H.on({filter:{type:"lifecycle",name:"activated"},handler:function(){Se.observe(ue.persistVisitorProfile),_e.observe(ue.persistLayerStates),le.observe(ue.persistSessionState),Ee.observe(J.persistPendingEvents),Le||we.observe(ue.persistVisitorBucketingStore),H.off(r)}});H.on({filter:{type:"lifecycle",name:"viewsActivated"},handler:t.onViewsActivated}),H.on({filter:{type:"lifecycle",name:"pageDeactivated"},handler:t.onPageDeactivated}),t.initializeApi();var o=J.getPendingEvents();if(o&&(q.dispatch(x.LOAD_PENDING_EVENTS,{events:o}),J.retryPendingEvents(o)),H.on({filter:{type:"lifecycle",name:"activate"},handler:t.activate}),P.emitInitializedEvent(),!he.shouldActivate())return ne.resolve();var s=[];if(De.isDisabled())i();else{var u=t.initializeXDomainStorage();s.push(u);var c=Boolean(De.getCanonicalOrigins());if(c){var l=ae.makeTimeoutPromise(Fe);ne.race([u,l])["catch"]((function(e){Q.error("Failed to initialize xDomain storage: ",e)})).then(i)["catch"](Ne.handleError)}else i()}return ne.all(s)},t.activate=function(){try{var e=[];Q.log("Activated client"),A(z.Lifecycle.preActivate);var t=M.now();q.dispatch(x.ACTIVATE,{activationId:String(t),activationTimestamp:t});var n=Te.getAll();se.registerViews(n),ue.setId(ue.getOrGenerateId()),e.push(L.trackPostRedirectDecisionEvent()),q.dispatch(x.MERGE_VARIATION_ID_MAP,{variationIdMap:ue.getVariationIdMap()}),q.dispatch(x.MERGE_PREFERRED_LAYER_MAP,{preferredLayerMap:ue.getPreferredLayerMap()}),A(z.Lifecycle.postVisitorProfileLoad),e.push(u(ye.getAllPlugins(z.PluginTypes.visitorProfileProviders)).then((function(){Q.log("Populated visitor profile")})));var i=c(),r=U.decideGlobal(i);Q.log("Made global decision",i,"->",r),q.dispatch(x.RECORD_GLOBAL_DECISION,r);var a=L.trackClientActivation();a?Q.log("Tracked activation event",a):Q.log("Not tracking activation event");var o=Ve.setUpViewActivation(n),s=[];return xe?s=se.activateMultiple(o):D.each(o,(function(e){s=s.concat(se.activateMultiple([e]))})),Le&&Ie.getSampleRum()&&q.dispatch(x.RECORD_VIEWS_INITIALLY_ACTIVATED_COUNT,{viewsInitiallyActivatedCount:s.length}),A(z.Lifecycle.postViewsActivated),A(z.Lifecycle.postActivate),P.emitActivatedEvent(),ne.all(e).then((function(){H.emit({type:Y.TYPES.LIFECYCLE,name:"activateDeferredDone"}),Q.log("All immediate effects of activation resolved")}),F.emitError)}catch(e){return F.emitError(e),ne.reject(e)}},Ve.setUpViewActivation=function(e){var t=[];return D.each(e,(function(e){D.isBoolean(Ae.getViewState(e.id).isActive)&&se.isActivationTypeImmediate(e.activationType)?Q.debug("Skipping page: already evaluated, presumably at the edge",se.description(e)):se.shouldTriggerImmediately(e.activationType)?t.push(e):e.activationType===z.ViewActivationTypes.callback?(Q.debug("Setting up conditional activation for Page",se.description(e)), Ve.activateViewOnCallback(e)):e.activationType===z.ViewActivationTypes.polling?(Q.debug("Setting up polling activation for Page",se.description(e)),te.pollFor(D.partial(K.apply,e.activationCode),null,D.partial(oe.isTimedOut,M.now())).then((function(){se.activateMultiple([e])}))["catch"]((function(t){Q.warn("Failed to activate view ",e,t)}))):e.activationType!==z.ViewActivationTypes.manual&&F.emitError(new Error("Unknown view activationType: "+e.activationType))})),t},Ve.activateViewOnCallback=function(e){var t=function(t){var n=D.extend({},t,{pageName:e.apiName,type:"page"});Re.push(n)},n={pageId:e.id};Object.defineProperty(n,"isActive",{get:function(){return Ae.isViewActive(e.id)}});try{K.apply(e.activationCode,[t,n])}catch(t){var i=new N("("+t.toString()+") in activationCode for "+se.description(e));F.emitError(i,{originalError:t,userError:!0})}},t.onViewsActivated=function(e){var t,n=e.data.views,i=D.map(n,"id");try{if(!be.getBucketingId())throw new Error("View activated with no visitorId set");var r=d(i)["catch"](F.emitError);return t=ne.all(D.map(n,(function(e){var t=function(){se.parseViewTags(e);var t=L.trackViewActivation(e);t?Q.log("Tracked activation for Page",se.description(e),t):Q.log("Not Tracking activation for Page",se.description(e))};return j.isReady()?ne.resolve(t()):te.pollFor(j.isReady,Ce).then(t)}))),ne.all([r,t])}catch(e){F.emitError(e)}},t.onPageDeactivated=function(e){var t=e.data.page,n=fe.getAllActionIdsByPageId(t.id);D.each(n,(function(e){var n=fe.getActionState(e);n&&(D.each(n,(function(e,n){if(e.cancel)try{e.cancel(),Q.debug("Controller / Canceled change",n,"observation due to deactivation of page:",t)}catch(e){Q.error("Controller / Error canceling change",n,"observation upon deactivation of page.",e)}if(t.undoOnDeactivation&&e.undo)try{e.undo(),Q.debug("Controller / Undid change",n,"due to deactivation of page:",t)}catch(e){Q.error("Controller / Error undoing change upon deactivation of page.",e)}})),q.dispatch(x.REMOVE_ACTION_STATE,{actionId:e}),Q.debug("Controller / Undid changes and/or canceled change observation due to deactivation of page:",t,e))}))},t.initializeApi=function(){var e={push:Re.push};Pe||(e.get=Re.get);var t=window.optimizely;D.isArray(t)&&D.each(t,(function(t){e.push(t)})),e.data={note:"Obsolete, use optimizely.get('data') instead"},e.state={},window.optimizely=e},t.persistItemsWithId=function(e){return D.each(e,(function(e,t){ue.checkKeyForVisitorId(t)&&$.setItem(t,e)})),e},t.initializeXDomainStorage=o,t.decideAndExecuteLayerASAP=p,t.decideLayer=T,t.getActionsForDecision=b}),(function(e,t,n){function i(e,t,n){var i=m.getActionState(t.id);if(!i)return void p.warn("Action / Attempted to prepare change for inactive action: ",t);var r=m.getChangeApplier(e.id,t.id);if(!a.isUndefined(r))return void p.warn("Action / Attempted to prepare a change which is already being applied: ",e);var s={changeId:e.id,actionId:t.id,changeApplier:y.create(e,t,n)};f.dispatch(o.SET_CHANGE_APPLIER,s)}function r(e,t,n,o){if(a.includes(o,t))return void p.error("Change with id "+t+" has circular dependencies: "+o.concat(t));if(!e[t]){var c=_.getChange(t);if(!c){var d="Change with id "+t+" is absent";return o.length&&(d+=" but listed as a dependency for "+o[o.length-1]),void p.warn(d)}e[t]=new h(function(d){var f=a.map(c.dependencies||[],(function(i){return r(e,i,n,o.concat([t]))}));if(c.src){var v="change_"+c.src,E=u.makeAsyncRequest(v,(function(){return g.addScriptAsync("https://cdn.optimizely.com/public/275532918/data"+c.src,(function(){u.resolveRequest(v)}))})).then((function(){var e=_.getChange(c.id);e||s.emitError(new S("Failed to load async change from src: "+c.src)),i(e,n,l.now())}));f.push(E)}h.all(f).then((function(){var e=l.now(),i=m.getChangeApplier(t,n.id);return i?(p.debug("Action / Applying change:",c),i.apply().then((function(t){t?p.log(t):p.debug("Action / Applied change for the first time in "+(l.now()-e)+"ms:",c),d()}))):(p.debug("Action / Not applying change ",t," - No changeApplier found."),void d())}))["catch"]((function(e){p.error("Action / Failed to apply change:",c,e),d()}))})}return e[t]}var a=n(2),o=n(7),s=n(86),u=n(6),c=n(76).create,l=n(24),d=n(16),f=n(9),p=n(23),h=n(12).Promise,g=n(133),v=d.get("stores/global"),m=d.get("stores/action_data"),_=d.get("stores/change_data"),E=d.get("stores/session"),y=n(136),I=n(137);I.initialize();var S=c("ActionError");t.prepareAction=function(e){p.debug("Action / Preparing:",e),f.dispatch(o.ACTION_EXECUTED,{actionId:e.id,sessionId:E.getSessionId(),layerId:e.layerId,pageId:e.pageId,timestamp:l.now(),activationId:v.getActivationId()});var t=l.now();a.forEach(e.changeSet,(function(n){var r=a.isObject(n)?n.id:n,s=_.getChange(r);s||(f.dispatch(o.ADD_CHANGE,n),s=_.getChange(n.id)),s.src||i(s,e,t)}))},t.executePreparedAction=function(e){p.debug("Action / Executing:",e);var t={},n=a.map(e.changeSet,(function(n){var i=a.isObject(n)?n.id:n;return r(t,i,e,[])}));return h.all(n).then((function(){p.debug("changes for action id="+e.id+" applied")}))}}),(function(e,t,n){var i=n(13).Promise,r=n(24),a=n(16),o=a.get("stores/plugins"),s=n(25),u=n(23);t.create=function(e,t,n){var a={identifier:e.id,action:t,startTime:n||r.now()};try{var c=o.getPlugin(s.PluginTypes.changeAppliers,e.type);if(!c)throw new Error("Unrecognized change type "+e.type);return new c(e,a)}catch(e){u.error("Change applier was never properly constructed:",e);var l={apply:function(){return i.reject(e)}};return l}}}),(function(e,t,n){function i(){"interactive"!==document.readyState&&"complete"!==document.readyState||(t.domReadyTime=Date.now())}var r=n(138),a=n(16).get("stores/directive");t.domReadyTime=null,t.initialize=function(){i(),document.addEventListener("readystatechange",i,!0)},t.isTimedOut=function(e){var n=Date.now();if(!t.domReadyTime||!e)return!1;var i=Math.max(e,t.domReadyTime);return a.isEditor()&&(i=t.domReadyTime),!(n-i<r.SELECTOR_POLLING_MAX_TIME)}}),(function(e,t){e.exports={SELECTOR_POLLING_MAX_TIME:2e3,CHANGE_DATA_KEY:"optimizelyChangeData",CHANGE_ID_ATTRIBUTE_PREFIX:"data-optly-"}}),(function(e,t,n){function i(e,t){return function(n){var i=n.type,a=t[i];if(!a)throw new Error("Audience / No matcher found for type="+i);if(a.fieldsNeeded)for(var s=r(a.fieldsNeeded,n),l=0;l<s.length;l++){var d=s[l],f=u.getFieldValue(e,d);if(o.isUndefined(f))return void c.debug("Audience / Required field",d,"for type",i,"has no value")}c.debug("Matching condition:",n,"to values:",e);var p=a.match(e,n);if(!o.isUndefined(p))return!!p}}function r(e,t){var n="function"==typeof e?e(t):e;return o.isString(n)&&(n=[n]),o.isArray(n)?n:(c.warn("Couldn't determine fieldsNeeded for matcher; assuming []"),[])}function a(e){return e.name?e.name+" ("+e.id+")":e.id}var o=n(2),s=n(124),u=n(19),c=n(23),l=n(74);t.isInAudience=function(e,t,n){var r=i(e,n);c.groupCollapsed("Checking audience",t.name,t.id,t),c.debug("Visitor Profile:",e);var o;try{var u=s.evaluate(t.conditions,r)}catch(e){o=e,u=!1}return c.groupEnd(),o&&c.error("Audience / Error evaluating audience",a(t),":",o),c.log("Is "+(u?"in":"NOT in")+" audience:",a(t)),u},t.requiredAudienceFieldsForConditions=function e(t,n){var i={};return o.each(t,(function(t){if(o.isArray(t))o.extend(i,e(t,n));else if(o.isObject(t)){var a=n[t.type];if(a){var s=r(a.fieldsNeeded,t);o.each(s,(function(e){i[l.serializeFieldKey(e)]=e}))}}})),i}}),(function(e,t,n){function i(e,t){E.debug("Decision / Deciding layer for group: ",m.description(e));var n,i,r=t.preferredLayerId,a=!!r;try{n=d.chooseWeightedCandidate(t.bucketingId,e.id,e.weightDistributions),n&&"None"!==n||(i='Group traffic allocation. Visitor maps to a "hole" in the bucket space left by an experiment or campaign that\'s since been removed from the group')}catch(e){i="Group traffic allocation. Visitor maps to a point in the bucket space which has never been covered by any experiment or campaign."}if(a&&(E.debug("Decision / Using preferredLayerMap to select layer for group:",m.description(e)),r!==n&&(v.dispatch(u.RECORD_STICKY_BUCKETING_FEATURE,{feature:"preferredLayer",id:e.id}),n=r)),i)return{layerId:null,reason:i};if(!s.find(e.weightDistributions,{entityId:n})){var o=a?" sticky-":" non-sticky ",c="Visitor was"+o+"bucketed into a campaign ("+n+") which is not in the group";if(!a)throw new p(c);return{layerId:null,reason:c}}return{layerId:n}}function r(e,t){for(var n=0;n<e.experiments.length;n++)for(var i=0;i<e.experiments[n].variations.length;i++)if(t.indexOf(e.experiments[n].variations[i].id)>-1)return{experimentId:e.experiments[n].id,variationId:e.experiments[n].variations[i].id};return null}function a(e){var t=I.getPlugin(g.PluginTypes.deciders,e);if(s.isEmpty(t))throw new Error("No deciders found for policy: "+e);return t}function o(e,t){var n=I.getAllPlugins(g.PluginTypes.audienceMatchers);return s.reduce(t,(function(t,i){return l.isInAudience(e,i,n)&&t.push(i.id),t}),[])}var s=n(2),u=n(7),c=n(86),l=n(139),d=n(141),f=n(142),p=n(143).DecisionError,h=n(16),g=n(25),v=n(9),m=n(144),_=n(113),E=n(23),y=n(44),I=h.get("stores/plugins"),S=h.get("stores/global"),T=h.get("stores/layer_data");t.isPageIdRelevant=function(e){if(!e)return!1;var t=a(e.policy);return s.isFunction(t.includePageIdInDecisionTicket)?t.includePageIdInDecisionTicket(e):t.includePageIdInDecisionTicket===!0},t.createTicket=function(e){var t=s.pick(e,["bucketingId","globalHoldback","preferredVariationMap","pageId"]);return s.extend(t,{audienceIds:o(e.visitorProfile,e.audiences),activationId:S.getActivationId()}),t},t.decideGlobal=function(e){var t=d.isHoldback(e.bucketingId,{id:null,holdback:e.globalHoldback});return{isGlobalHoldback:t}},t.decideGroup=i,t.decideLayer=function(e,t){E.debug("Deciding: ",e,t);var n,i,r=a(e.policy),o={layerId:e.id,experimentId:null,variationId:null,isLayerHoldback:d.isHoldback(t.bucketingId,e)};if(s.isEmpty(e.experiments))throw new p("No experiments in layer.");try{if(r.decideLayer){E.debug("Decision / Using decider's custom decideLayer.");var u=r.decideLayer(e,t);n=u.experiment,i=u.variation}else E.debug("Decision / Using default decideLayer behavior."),n=r.selectExperiment(e,t.audienceIds,t.bucketingId),i=f.selectVariation(n,t.audienceIds,t.bucketingId,t.activationId,t.preferredVariationMap)}catch(e){e instanceof p?o.reason=e.message:o.error=e}return o.experimentId=n?n.id:null,o.variationId=i?i.id:null,o.error&&(o.error.name="DecisionEngineError",c.emitError(o.error)),o},t.getDummyLayerDecision=function(e,t){var n,i=r(e,t);return i?(E.log("Decision / Applying force variation:",i.variationId,"to Campaign",_.description(e)),n={layerId:e.id,variationId:i.variationId,experimentId:i.experimentId,isLayerHoldback:!1,reason:"force"}):(E.log("No variation matches ids:",t,"in Campaign",_.description(e)),n={layerId:e.id,variationId:null,experimentId:null,isLayerHoldback:!1,reason:"force"}),n},t.isInCohort=function(e){if(!e.experimentId||!e.variationId)return!1;var t=T.get(e.layerId);return!(y.isSingleExperimentPolicy(t.policy)&&e.isLayerHoldback)}}),(function(e,t,n){var i=n(64),r=t.TOTAL_POINTS=1e4;t.bucketingNumber=function(e,t,n){var a=i.hashToInt(e+t,n,r);return a},t.isHoldback=function(e,n){return t.bucketingNumber(e,n.id,i.Seed.IGNORING)<(n.holdback||0)},t.chooseWeightedCandidate=function(e,n,r){for(var a=t.bucketingNumber(e,n,i.Seed.BUCKETING),o=0;o<r.length;o++)if(r[o].endOfRange>a)return r[o].entityId;throw new Error("Unable to choose candidate")}}),(function(e,t,n){var i=n(2),r=n(7),a=n(141),o=n(124),s=n(143).DecisionError,u=n(9),c=n(23),l="impression";t.isValidExperiment=function(e,t){var n,r=i.partial(i.includes,e);return c.groupCollapsed("Decision / Evaluating audiences for experiment:",t,e),n=!t.audienceIds||o.evaluate(t.audienceIds,r),c.groupEnd(),c.debug("Decision / Experiment",t,"is valid?",n),n},t.selectVariation=function(e,t,n,o,d){if(!e.variations||0===e.variations.length)throw new s('No variations in selected experiment "'+e.id+'"');if(!e.weightDistributions&&e.variations.length>1)throw new s('On selected experiment "'+e.id+'", weightDistributions must be defined if # variations > 1');var f;if(e.bucketingStrategy&&e.bucketingStrategy===l)if(1===e.variations.length)f=e.variations[0].id;else{var p=o;f=a.chooseWeightedCandidate(n+p,e.id,e.weightDistributions)}else if(f=1===e.variations.length?e.variations[0].id:a.chooseWeightedCandidate(n,e.id,e.weightDistributions),d&&d[e.id]){c.debug("Decision / Using preferredVariationMap to select variation for experiment:",e.id);var h=d[e.id];if(!i.find(e.variations,{id:h}))return u.dispatch(r.RECORD_STICKY_BUCKETING_FEATURE,{feature:"stoppedVariation",id:e.id}),c.debug("Decision / Preferred variation:",h,"not found on experiment:",e.id,". Visitor not bucketed."),null;h!==f&&(u.dispatch(r.RECORD_STICKY_BUCKETING_FEATURE,{feature:"preferredVariation",id:e.id}),f=h)}var g=i.find(e.variations,{id:f});if(g)return c.debug("Decision / Selected variation:",g),g;throw new s('Unable to find selected variation: "'+f+'".')},t.getExperimentById=function(e,t){var n=i.find(e.experiments,{id:t});if(n)return n;throw new s("Unable to find selected experiment.")},t.hasVariationActionsOnView=function(e,t){return c.debug("Decision / Checking variation:",e,"for actions on pageId:",t),!!i.find(e.actions,(function(e){return e.pageId===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){return r.map(e.weightDistributions,"entityId")}var r=n(2);t.description=function(e){var t=!!e.name,n=t?'"'+e.name+'" ':"",r=i(e).join(", ");return n+"(id "+e.id+", campaigns: "+r+")"}}),(function(module,exports,__webpack_require__){var createError=__webpack_require__(77),di=__webpack_require__(16),Logger=__webpack_require__(23),CSP_MODE=!1,EXEC_WITH_JQUERY=!0,ExecError=exports.Error=createError("ExecError");exports.apply=function(e,t){t=t||[],EXEC_WITH_JQUERY&&(t=t.concat(di.get("env/jquery")));try{return e.apply(void 0,t)}catch(n){throw Logger.warn("Error applying function",e,"with args:",t,n),new ExecError(n)}},exports.eval=function(str){if(CSP_MODE)throw new ExecError("eval is not supported in CSP mode");try{return EXEC_WITH_JQUERY&&(str="var $ = optimizely.get('jquery');"+str),eval(str)}catch(e){throw Logger.warn("Error executing JS:",str,e),new ExecError(e)}}}),(function(e,t,n){var i=n(2),r=n(86),a=n(25),o=n(26),s=n(81).LocalStorage,u=n(23),c=n(91),l=n(16),d=l.get("stores/pending_events"),f=a.StorageKeys.PENDING_EVENTS;t.persistPendingEvents=function(){try{var e=d.getEventsString();s.setItem(f,e),n(85).setItem(f,e)}catch(e){u.warn("PendingEvents / Unable to set localStorage key, error was: ",e),r.emitInternalError(e)}},t.getPendingEvents=function(){try{return o.parse(s.getItem(f))}catch(e){return null}},t.retryPendingEvents=function(e){i.forOwn(e,(function(e,t){c.retryableRequest(e.data,t,e.retryCount)})),i.isEmpty(e)||u.log("Retried pending events: ",e)}}),(function(e,t,n){var i=n(2),r=n(12).Promise;t.firstToResolve=function(e){return new r(function(t){i.each(e,(function(e){r.resolve(e).then(t,(function(){}))}))})}}),(function(e,t,n){function i(e){var t=!1;if(a.isArray(window.optimizely)&&a.each(window.optimizely,(function(n){a.isArray(n)&&"verifyPreviewProject"===n[0]&&String(n[1])===e&&(t=!0)})),!t)throw new Error("Preview projectId: "+e+" does not match expected")}function r(){s.on({filter:{type:u.TYPES.ANALYTICS,name:"trackEvent"},handler:f}),s.on({filter:{type:u.TYPES.LIFECYCLE,name:"viewActivated"},handler:f}),s.on({filter:{type:u.TYPES.LIFECYCLE,name:"layerDecided"},handler:f}),s.on({filter:{type:"error"},publicOnly:!0,handler:f})}var a=n(2),o=n(16),s=n(87),u=n(111),c=n(40),l=o.get("stores/directive"),d="optimizelyPreview",f=function(e){var t=c.getGlobal(d);t.push(e)};t.initialize=function(e){l.isSlave()&&i(e),r()},t.setupPreviewGlobal=function(){c.getGlobal(d)||c.setGlobal(d,[])},t.pushToPreviewGlobal=function(e){f(e)}}),(function(e,t,n){e.exports=function(e){e.registerVisitorProfileProvider(n(150))}}),(function(e,t){e.exports={provides:"visitorId",getter:["stores/visitor_id",function(e){return e.getRandomId()}]}}),(function(e,t,n){e.exports=function(e){e.registerVisitorProfileProvider(n(152)),e.registerAudienceMatcher("behavior",n(154))}}),(function(e,t,n){var i=n(153);e.exports={provides:"events",isTransient:!0,getter:[function(){return i.getEvents()}]}}),(function(e,t,n){var i=n(2),r=n(72),a=n(16),o=a.get("stores/visitor_events"),s=1e3;t.getEvents=function(){var e=r.getEvents(),t=[].concat.apply([],i.values(o.getForeignEvents())),n=[].concat.apply([],i.values(o.getForeignEventQueues())),a=r.mergeAllEvents([e,t,n]);return a.slice(a.length-s)}}),(function(e,t,n){var i=n(2),r=n(26),a=n(155),o=n(156);e.exports={fieldsNeeded:["events"],match:function(e,t){var n=[],s=r.parse(t.value);return n=i.isUndefined(s.version)?[s]:a.buildFromSpecV0_1(s),i.every(n,(function(t){return o.isSatisfied(t,e.events)}))}}}),(function(e,t,n){function i(e){return e=(e||"").toString().trim(),p[e]||e}function r(e,t,n){var i={where:t};if(e.count&&(i["limit"]=e.count),e.modifier===s.FREQUENCY_FILTERS.MOST_FREQUENT){var r=s.getFieldKeyPathForSource(e.name,n),a=s.aggregate("count"),o=s.aggregateField("count"),l=s.groupField(r);return u.extend(i,{select:[{field:l}],groupBy:s.groupBy([r]),aggregate:[a],orderBy:[{field:o,direction:"DESC"}]})}return u.extend(i,{orderBy:[{field:[c.FIELDS.TIME],direction:"DESC"}]})}function a(e){var t=[];if(u.isUndefined(e))throw new Error("rule is undefined");if(!u.isObject(e))throw new Error("rule is not an Object");"0.2"!==e["version"]&&t.push('version: not "0.2"'),e["filter"]&&(u.isArray(e["filter"])?u.each(e["filter"],(function(e,n){var i=s.validateFieldKeyPathV0_2(e["field"],s.FieldPurpose.FILTER);i&&t.push("filter["+n+"]: "+i);var r=s.validateComparatorAndValue(e["comparator"],e["value"]);r&&t.push("filter["+n+"]: "+r)})):t.push("filter: not an array"));var n=[],i=[];if(e["sort"]&&(e["reduce"]&&e["reduce"]["aggregator"]&&"nth"!==e["reduce"]["aggregator"]&&t.push("sort: superfluous because we can apply aggregator "+l.stringify(e["reduce"]["aggregator"])+" to unsorted items"),u.isArray(e["sort"])?u.each(e["sort"],(function(e,r){var a=s.validateFieldKeyPathV0_2(e["field"],s.FieldPurpose.SORT);a&&t.push("sort["+r+"]: "+a),e["field"]&&"frequency"===e["field"][0]?n.push(e):i.push(e);var u=o(e["direction"]);u&&t.push("sort["+r+"]: "+u)})):t.push("sort: not an array"),n.length&&i.length&&t.push('sort: sorting by non-["frequency"] field is pointless because we are going to sort the picked values by ["frequency"]'),n.length&&!e["pick"]&&t.push('sort: sorting by ["frequency"] is impossible because no values have been picked')),e["pick"]){e["reduce"]&&"count"===e["reduce"]["aggregator"]&&t.push('pick: superfluous because we can apply aggregator "count" to raw events');var r=s.validateFieldKeyPathV0_2(e["pick"]["field"]);r&&t.push("pick: "+r)}if(e["reduce"]){var a=e["reduce"]["aggregator"],c="aggregator "+(l.stringify(a)||String(a)),d=e["reduce"]["n"],f="index "+(l.stringify(d)||String(d));u.includes(["sum","avg","max","min","count","nth"],a)||t.push("reduce: "+c+" is unknown"),u.includes(["sum","avg","max","min"],a)&&(e["pick"]||t.push("reduce: "+c+" is impossible to use because no values have been picked")),"nth"===a?((!u.isNumber(d)||isNaN(d)||parseInt(d,10)!==d||d<0)&&t.push("reduce: "+f+" is not a non-negative integer (mandated by "+c+")"),e["sort"]||t.push('reduce: aggregator "nth" is meaningless without a specific sort order')):u.isUndefined(d)||t.push("reduce: "+f+" is defined (not mandated by "+c+")")}if(t.length)throw new Error(t.join("\n"))}function o(e){var t="direction "+(l.stringify(e)||String(e));if(!u.includes(["ascending","descending"],e))return t+' is not "ascending" or "descending"'}var s=t,u=n(2),c={FIELDS:n(63).FIELDS,FIELDS_V0_2:n(63).FIELDS_V0_2},l=n(26),d=n(23),f=n(156);s.MILLIS_IN_A_DAY=864e5,s.aggregateField=function(e,t){return u.isString(t)&&(t=[t]),t=t||f.DEFAULT_FIELD,[f.generateAlias(e,t)]},s.groupField=function(e){return u.isString(e)&&(e=[e]),e=e||f.DEFAULT_FIELD,[e.join(".")]};var p={"<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","==":"eq"};s.fieldComparison=function(e,t,n){return e=i(e),u.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:[c.FIELDS.TIME]}]},{value:t*s.MILLIS_IN_A_DAY}]}},s.rangeTimeComparison=function(e){return u.isArray(e)?{op:"between",args:[{field:[c.FIELDS.TIME]},{value:[e[0]||+new Date(0),e[1]||+new Date]}]}:(d.error("Rule builder","rangeTimeComparison passed invalid range",e),null)},s.groupBy=function(e){for(var t=[],n=0;n<e.length;n++)t[n]={field:e[n]};return t},s.aggregate=function(e,t){return u.isString(t)&&(t=[t]),t=t||f.DEFAULT_FIELD,{op:e,args:[{field:t}]}},s.SOURCE_TYPES={BEHAVIOR:"events",CUSTOM_BEHAVIOR:"custom_behavior",DCP:"dcp"},s.FREQUENCY_FILTERS={MOST_FREQUENT:"most_frequent",LEAST_FREQUENT:"least_frequent"},s.RECENCY_FILTERS={MOST_RECENT:"most_recent",LEAST_RECENT:"least_recent"},s.getFieldKeyPathForSource=function(e,t){t=t||s.SOURCE_TYPES.BEHAVIOR;var n=[];return u.isString(e)?(n=[e],t!==s.SOURCE_TYPES.BEHAVIOR||u.includes(u.values(c.FIELDS),e)||(n=[c.FIELDS.OPTIONS,e])):n=e,n},s.buildFromSpecV0_1=function(e){if(!(e.action||e.filters&&0!==e.filters.length))throw new Error('Audience spec must have an "action" field or at least one "filter" '+l.stringify(e));var t=s.fieldComparison("gt",c.FIELDS.TIME,0),n=[],i=[];if(e.action&&(i.push(s.fieldComparison("eq",c.FIELDS.NAME,e.action.value)),e.action.type&&i.push(s.fieldComparison("eq",c.FIELDS.TYPE,e.action.type))),e.time)if("last_days"===e.time.type)i.push(s.relativeTimeComparison("lte",e.time.days));else if("range"===e.time.type){var a=s.rangeTimeComparison([e.time.start,e.time.stop]);a&&i.push(a)}else d.error("Rule builder",'Audience spec has bad "time" type',e.time.type);if(t={op:"and",args:i},e.count&&n.push({where:s.fieldComparison(e.count.comparator,"0",e.count.value),from:{select:[{field:s.aggregateField("count")}],where:t,aggregate:[s.aggregate("count")]}}),e.filters&&u.each(e.filters,(function(r){var a,o,u=s.getFieldKeyPathForSource(r.name,e.source);if(r.modifier===s.FREQUENCY_FILTERS.MOST_FREQUENT?(a=s.aggregate("count"),o=s.aggregateField("count")):r.modifier===s.RECENCY_FILTERS.MOST_RECENT&&(a=s.aggregate("max",c.FIELDS.TIME),o=s.aggregateField("max",c.FIELDS.TIME)),a){var l=u,d=s.groupField(l);n.push({where:s.fieldComparison(r.comparator,"0",r.value),from:{select:[{field:d}],where:t,groupBy:s.groupBy([l]),aggregate:[a],orderBy:[{field:o,direction:"DESC"}],limit:1}})}else i.push(s.fieldComparison(r.comparator,u,r.value))})),e.pick){if(n.length>0)throw new Error('A "pick" clause must not be specified with "count" or "most_recent", "most_frequent" modifiers'+l.stringify(e));return[r(e.pick,t,e.source)]}return n.length>0?n:[{where:t}]},s.buildFromSpecV0_2=function(e){a(e);var t={where:{op:"and",args:u.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 u.extend(t,{aggregate:[{op:"count",args:[{field:["*"]}]}],select:[{field:["_count_*"]}]});var n=[],i=[];if(e["sort"]&&(u.each(e["sort"],(function(e){u.includes(["ascending","descending"],e["direction"])&&(u.includes(["time","age"],e["field"][0])&&i.push(e),"frequency"===e["field"][0]&&n.push(e))})),i.length&&!n.length&&(t["orderBy"]=u.filter(u.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"]&&u.includes(["avg","max","min","sum"],e["reduce"]["aggregator"]))return u.extend(t,{aggregate:[{op:e["reduce"]["aggregator"],args:[{field:r}]}],select:[{field:[f.generateAlias(e["reduce"]["aggregator"],r)]}]});t=n.length?u.extend(t,{groupBy:[{field:r}],aggregate:[{op:"count",args:[{field:["*"]}]}],orderBy:[{field:["_count_*"],direction:"ascending"===n[0]["direction"]?"ASC":"DESC"}],select:[{field:[r.join(".")]}]}):u.extend(t,{select:[{field:r}]})}if(e["reduce"]&&"nth"===e["reduce"]["aggregator"]){var o=e["reduce"]["n"];if(u.isNumber(o)&&o>=0&&Number(o)===Math.floor(Number(o)))return u.extend(t,{offset:o,limit:1})}return t},s.convertFieldKeyPathFromSpecV0_2=function(e){return"tags"===e[0]&&"revenue"===e[1]?["r"]:[c.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 "+(l.stringify(e)||String(e));if(!u.isArray(e)||!u.every(e,u.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=u.keys(c.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"]),u.includes(r,e[0])?n+" is not supported here":u.includes(i,e[0])?void 0:n+" is unknown"},s.validateComparatorAndValue=function(e,t){var n="comparator "+(l.stringify(e)||String(e)),i="value "+(l.stringify(t)||String(t));if(!u.isString(e)&&!u.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(!u.isNumber(t))return i+" is not a number (mandated by "+n+")";break;case"in":if(!u.isArray(t))return i+" is not an array (mandated by "+n+")";break;case"between":if(!(u.isArray(t)&&2===t.length&&u.isNumber(t[0])&&u.isNumber(t[1])&&t[0]<=t[1]))return i+" is not a pair of increasing numbers (mandated by "+n+")";break;case"regex":if(!(u.isString(t)||u.isArray(t)&&2===t.length&&u.isString(t[0])&&u.isString(t[1])))return i+" is not a pattern string or a [pattern string, flags string] array (mandated by "+n+")";break;case"exists":if(!u.isUndefined(t))return i+" is not undefined (mandated by "+n+")";break;default:return n+" is unknown"}}}),(function(e,t,n){var i=n(2),r=n(25),a=n(23),o=i.bind(a.log,a),s=n(24),u=n(19).getFieldValue,c=n(26),l=function(e,t,n){if(e.getValueOrDefault)return e.getValueOrDefault(t,n);if(!i.isArray(t))return n;var r=u(e,t);return"undefined"==typeof r&&(r=n),r},d=function(e){return"string"==typeof e?e.trim().toLowerCase():e};t.clause={WHERE:"where",GROUP_BY:"groupBy",AGGREGATE:"aggregate",HAVING:"having",ORDER_BY:"orderBy",SELECT:"select",OFFSET:"offset",LIMIT:"limit",FROM:"from"},t.DEFAULT_FIELD=["*"],t.booleanOperators={eq:function(e){var t=i.map(e,d);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]},gte:function(e){return e[0]>=e[1]},lte:function(e){return e[0]<=e[1]},"in":function(e){var t=i.map(e[1]||[],d);return i.includes(t,d(e[0]))},between:function(e){return e[1][0]<=e[0]&&e[0]<=e[1][1]},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 a.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]}},t.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)}},t.aggregateOperators={sum:function(e,n){for(var i=e[0]||t.DEFAULT_FIELD,r=0,a=0;a<n.length;a++)r+=l(n[a],i,0);return r},avg:function(e,n){if(0===n.length)return 0;for(var i=e[0]||t.DEFAULT_FIELD,r=0,a=0;a<n.length;a++)r+=l(n[a],i,0);return r/n.length},max:function(e,n){for(var i=e[0]||t.DEFAULT_FIELD,r=Number.NEGATIVE_INFINITY,a=0;a<n.length;a++)r=Math.max(r,l(n[a],i,Number.NEGATIVE_INFINITY));return r},min:function(e,n){for(var i=e[0]||t.DEFAULT_FIELD,r=Number.POSITIVE_INFINITY,a=0;a<n.length;a++)r=Math.min(r,l(n[a],i,Number.POSITIVE_INFINITY));return r},count:function(e,t){return t.length}};var f={now:function(){return s.now()}},p=function(e){return e in t.booleanOperators?t.booleanOperators[e]:e in t.arithmeticOperators?t.arithmeticOperators[e]:null},h=function(e,t){if(t.hasOwnProperty("value"))return t["value"];if(t.hasOwnProperty("field"))return l(e,t["field"]);if(t.hasOwnProperty("eval"))return t["eval"]in f?f[t["eval"]]():void a.error("Rules","Unknown function: "+t["eval"]);if(!t["op"])return void a.error("Rules","No operator specified: "+c.stringify(t));var n=p(t["op"]);if(!n)return void a.error("Rules","Unknown operator: "+t["op"]);var r=i.partial(h,e),o=t["args"]||[],s=i.map(o,(function(e){return r(e)}));return n(s,e)},g=function(e,t){var n={};if("undefined"==typeof e||!i.isArray(e)||0===e.length)return n["*"]={fieldValues:{},events:t},n;for(var r=i.map(e,(function(e){return e["field"]})),a=0;a<t.length;a++){for(var o=t[a],s=[],u={},d=0;d<r.length;d++){var f=r[d],p=l(o,f),h=f.join(".");u[h]=p,s.push(encodeURIComponent(h)+"="+encodeURIComponent(c.stringify(p)))}var g=s.join("&");n.hasOwnProperty(g)||(n[g]={fieldValues:u,events:[]}),n[g].events.push(o)}return n};t.generateAlias=function(e,t){return"_"+e+"_"+t.join(".")};var v=function(e,n){var r={};return i.each(n,(function(n,i){r[i]={};for(var o=0;o<e.length;o++){var s=e[o],u=s["op"];if(u in t.aggregateOperators){var c=(s["args"]&&s["args"][0]||{})["field"]||t.DEFAULT_FIELD,l=t.generateAlias(u,c),d=t.aggregateOperators[u]([c],n.events);r[i][l]=d}else a.error("Rules","Unknown aggregate operator "+u)}})),r},m=function(e,t){var n=[];return i.each(e,(function(e,r){var a=i.extend({},e.fieldValues),o=t[r]||{};i.extend(a,o),n.push(a)})),n},_=function(e,t){return i.isArray(e)?0===e.length?t:t.sort((function(t,n){for(var i=0;i<e.length;i++){var r=e[i],a=r["direction"]||"ASC",o="ASC"===a?1:-1,s=r["field"],u=l(t,s,0),c=l(n,s,0);if(u<c)return-o;if(u>c)return o}return 0})):(o("Rules","groupBy rule must be an array"),t)};t.rewrite=function(e){function n(e,s){if(i.isArray(e)&&("and"!==e[0]&&"or"!==e[0]&&"not"!==e[0]&&a.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(s&&e["op"]in t.aggregateOperators){var u=(e["args"]&&e["args"][0]||{})["field"]||t.DEFAULT_FIELD,c=t.generateAlias(e["op"],u);return c in o||(r.push({op:e["op"],args:e["args"]}),o[c]=!0),{field:[c]}}for(var l=[],d=e["args"]||[],f=0;f<d.length;f++)l[f]=n(d[f],s);return{op:e["op"],args:l}}var r=[],o={},s={};e.hasOwnProperty(t.clause.WHERE)&&(s[t.clause.WHERE]=n(e[t.clause.WHERE],!1)),e.hasOwnProperty(t.clause.HAVING)&&(s[t.clause.HAVING]=n(e[t.clause.HAVING],!0)),(e.hasOwnProperty(t.clause.AGGREGATE)||r.length>0)&&(s[t.clause.AGGREGATE]=(e[t.clause.AGGREGATE]||[]).concat(r));for(var u=[t.clause.GROUP_BY,t.clause.ORDER_BY,t.clause.SELECT,t.clause.OFFSET,t.clause.LIMIT],c=0;c<u.length;c++)e.hasOwnProperty(u[c])&&(s[u[c]]=e[u[c]]);return e.hasOwnProperty(t.clause.FROM)&&(s[t.clause.FROM]=t.rewrite(e[t.clause.FROM])),s};var E=function(e,n){n=n||0;var r=[];if(e.hasOwnProperty(t.clause.WHERE)?e[t.clause.WHERE]["op"]?e[t.clause.WHERE]["op"]in t.booleanOperators||r.push("Non-boolean WHERE clause operator"):r.push("Missing WHERE clause operator"):r.push("Missing WHERE clause"),e.hasOwnProperty(t.clause.HAVING)&&(e[t.clause.HAVING]["op"]?e[t.clause.HAVING]["op"]in t.booleanOperators||r.push("Non-boolean HAVING clause operator"):r.push("Missing HAVING clause operator")),e.hasOwnProperty(t.clause.GROUP_BY)&&!e.hasOwnProperty(t.clause.AGGREGATE)&&r.push("No AGGREGATE clause specified with GROUP_BY clause"), e.hasOwnProperty(t.clause.SELECT)){var a=e[t.clause.SELECT];if(i.isArray(a))for(var o=0;o<a.length;o++)a[o]["op"]&&a[o]["op"]in t.aggregateOperators&&r.push('In SELECT clause, aggregate operator "'+a[o]["op"]+'" specified in selector at index '+o);else r.push("SELECT clause must be an array")}if(e.hasOwnProperty(t.clause.OFFSET)){var s=e[t.clause.OFFSET];(!i.isNumber(s)||Number(s)<0||Number(s)!==Math.floor(Number(s)))&&r.push("OFFSET must be a non-negative integer")}if(e.hasOwnProperty(t.clause.LIMIT)){var u=e[t.clause.LIMIT];(!i.isNumber(u)||Number(u)<0||Number(u)!==Math.floor(Number(u)))&&r.push("LIMIT must be a non-negative integer")}return n>0&&(r=i.map(r,(function(e){return"Sub-rule "+n+": "+e}))),e.hasOwnProperty(t.clause.FROM)&&(r=r.concat(E(e[t.clause.FROM],n+1))),r},y=function(e,t){return i.map(t,(function(t){return i.map(e,(function(e){return h(t,e)}))}))},I=function(e,n){var r=n;if(e.hasOwnProperty(t.clause.FROM)&&(a.debug("Evaluating FROM clause:",e[t.clause.FROM]),r=I(e[t.clause.FROM],r),a.debug("Results after FROM:",r)),a.debug("Evaluating WHERE clause:",e[t.clause.WHERE]),r=i.filter(r,(function(n){return h(n,e[t.clause.WHERE])})),a.debug("Results after WHERE:",r),e.hasOwnProperty(t.clause.AGGREGATE)){a.debug("Evaluating AGGREGATE clause:",e[t.clause.AGGREGATE]);var o=g(e[t.clause.GROUP_BY],r),s=v(e[t.clause.AGGREGATE],o);r=m(o,s),a.debug("Results after AGGREGATE:",r)}e.hasOwnProperty(t.clause.HAVING)&&(a.debug("Evaluating HAVING clause:",e[t.clause.HAVING]),r=i.filter(r,(function(n){return h(n,e[t.clause.HAVING])})),a.debug("Results after HAVING:",r)),e.hasOwnProperty(t.clause.ORDER_BY)&&(a.debug("Evaluating ORDER_BY clause:",e[t.clause.ORDER_BY]),r=_(e[t.clause.ORDER_BY],r),a.debug("Results after ORDER_BY:",r));var u=0;e.hasOwnProperty(t.clause.OFFSET)&&(a.debug("Evaluating OFFSET clause:",e[t.clause.OFFSET]),u=Number(e[t.clause.OFFSET]));var c;return e.hasOwnProperty(t.clause.LIMIT)&&(a.debug("Evaluating LIMIT clause:",e[t.clause.LIMIT]),c=u+Number(e[t.clause.LIMIT])),(u>0||!i.isUndefined(c))&&(r=r.slice(u,c),a.debug("Results after OFFSET/LIMIT:",r)),e.hasOwnProperty(t.clause.SELECT)&&(a.debug("Evaluating SELECT clause:",e[t.clause.SELECT]),r=y(e[t.clause.SELECT],r),a.debug("Results after SELECT:",r)),r};t.execute=function(e,n){e=t.rewrite(e),a.shouldLog(r.LogLevel.DEBUG)&&a.groupCollapsed("Evaluating Behavioral Rule"),a.debug("Rule:",e,c.stringify(e)),a.debug("Events:",n);var i=E(e);if(i.length>0)throw new Error("Rule "+c.stringify(e)+" has violations: "+i.join("\n"));var o=I(e,n);return a.debug("Rule result:",o),a.shouldLog(r.LogLevel.DEBUG)&&a.groupEnd(),o},t.isSatisfied=function(e,n){try{return t.execute(e,n).length>0}catch(t){return a.error("Rules","Error "+t.toString()+" while evaluating rule "+c.stringify(e)),!1}}}),(function(e,t,n){e.exports=function(e){e.registerVisitorProfileProvider(n(158))}}),(function(e,t,n){var i=n(2),r=n(159),a=n(153),o=n(26),s=n(155);e.exports={provides:"customBehavior",shouldTrack:!0,isLazy:!1,getter:["stores/global","stores/visitor_attribute_entity",function(e,t){var n=e.getProjectId(),u=i.filter(i.map(t.getCustomBehavioralAttributes(n),(function(e){try{return{id:e.id,granularity:r.GRANULARITY.ALL,rule:s.buildFromSpecV0_2(o.parse(e.rule_json))}}catch(e){return}}))),c=a.getEvents();return r.evaluate(u,c)}]}}),(function(e,t,n){function i(e){if(0===e.length)return[];for(var t=e.length-1,n=o.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*s.MILLIS_IN_A_DAY;n-=n%s.MILLIS_IN_A_DAY;for(var i=e.length;i>0&&n<=e[i-1][o.FIELDS.TIME];)i--;return e.slice(i)}var a=n(23),o={FIELDS:n(63).FIELDS},s=n(155),u=n(156);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 o={};if(0===n.length){for(var s=0;s<e.length;s++)o[e[s].id]=e[s].defaultValue;return o}var c=i(n),l=r(n,60);for(s=0;s<e.length;s++){var d=e[s],f=n;d.granularity===t.GRANULARITY.CURRENT_SESSION?f=c:d.granularity===t.GRANULARITY.LAST_60_DAYS&&(f=l);try{var p=f;d.rule&&(p=u.execute(d.rule,f)),o[d.id]=d.defaultValue,1===p.length?o[d.id]=p[0][0]||d.defaultValue:a.debug("Behavior / Rule for",d.id,"returned",p.length,"results, expected 1")}catch(e){a.error("Behavior / Rule for",d.id,"failed with",e.message||"")}}return o}}),(function(e,t,n){e.exports=function(e){e.registerVisitorProfileProvider(n(161)),e.registerAudienceMatcher("first_session",n(162))}}),(function(e,t,n){var i=n(63),r=n(153),a=n(19).getFieldValue,o=n(89).CURRENT_SESSION_INDEX;e.exports={provides:"first_session",shouldTrack:!0,getter:[function(){var e=r.getEvents();if(e&&e.length>0){var t=e[0],n=a(t,[i.FIELDS.SESSION_INDEX]);return n===o}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(164))}}),(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 a(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 o(e,t){var n,o={revenueAsTag:!1,timeAsTimestamp:!0};if(c.isUndefined(t))return n=l.getEvents(e),r(n,o);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),o)}var s=a(t,c.values(d.RECENCY_FILTERS));if(s)throw new Error(s.join("\n"));return n=l.getEvents(e),r(i(n,t),o)}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=a(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),a=r(f.execute(n,i),{revenueAsTag:!0,timeAsTimestamp:!1});return(t.pick||t.reduce&&"count"===t.reduce.aggregator)&&(a=c.flatten(a)),t.reduce&&(a=a[0]),a}var c=n(2),l=n(153),d=n(155),f=n(156);e.exports=["stores/visitor_events",function(e){return{getEvents:c.partial(o,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(166)),e.registerVisitorProfileProvider(n(170)),e.registerVisitorProfileProvider(n(171)),e.registerAudienceMatcher("browser_version",n(172))}}),(function(e,t,n){var i=n(167);t.getId=function(){return i.get().browser.id},t.getVersion=function(){return i.get().browser.version}}),(function(e,t,n){var i=n(2),r=n(168),a=n(40),o=n(7),s=n(16),u=n(9),c=s.get("stores/ua_data");t.get=function(){var e=c.get();return i.isEmpty(e)&&(e=r.parseUA(a.getUserAgent()),u.dispatch(o.SET_UA_DATA,{data:e})),e}}),(function(e,t,n){function i(e){if(e=(e||"").toLowerCase(),e in u)return e;var t=a.keys(u);return a.find(t,(function(t){var n=u[t];return a.includes(n,e)}))||"unknown"}function r(e,t,n){return t?t:"unknown"===e?"unknown":n?"mobile":"desktop_laptop"}var a=n(2),o=n(169);t.parseUA=function(e){var t=new o(e),n=t.getBrowser(),a=t.getOS(),u=t.getDevice(),l=(a.name||"unknown").toLowerCase(),d=(n.name||"unknown").toLowerCase(),f=s(u.type,d,l);return{browser:{id:i(n.name),version:n.version},platform:{name:l,version:a.version},device:{model:c[u.model]||"unknown",type:r(d,u.type,f),isMobile:f}}};var s=function(e,t,n){if(a.includes(["mobile","tablet"],e))return!0;if(a.includes(["opera mini"],t))return!0;var i=["android","blackberry","ios","windows phone"];return!!a.includes(i,n)},u={gc:["chrome","chromium","silk","yandex","maxthon","chrome webview"],edge:["edge"],ie:["internet explorer","iemobile"],ff:["firefox","iceweasel"],opera:["opera","opera mini","opera tablet"],safari:["safari","mobile safari","webkit"],ucbrowser:["uc browser"]},c={iPhone:"iphone",iPad:"ipad"}}),(function(e,t,n){var i;/*! * UAParser.js v0.7.24 * Lightweight JavaScript-based User-Agent string parser * https://github.com/faisalman/ua-parser-js * * Copyright © 2012-2021 Faisal Salman <f@faisalman.com> * Licensed under MIT License */ !(function(r,a){"use strict";var o="0.7.24",s="",u="?",c="function",l="undefined",d="object",f="string",p="major",h="model",g="name",v="type",m="vendor",_="version",E="architecture",y="console",I="mobile",S="tablet",T="smarttv",A="wearable",b="embedded",w={extend:function(e,t){var n={};for(var i in e)t[i]&&t[i].length%2===0?n[i]=t[i].concat(e[i]):n[i]=e[i];return n},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.replace(/[^\d\.]/g,"").split(".")[0]:a},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},D={rgx:function(e,t){for(var n,i,r,o,s,u,l=0;l<t.length&&!s;){var f=t[l],p=t[l+1];for(n=i=0;n<f.length&&!s;)if(s=f[n++].exec(e))for(r=0;r<p.length;r++)u=s[++i],o=p[r],typeof o===d&&o.length>0?2==o.length?typeof o[1]==c?this[o[0]]=o[1].call(this,u):this[o[0]]=o[1]:3==o.length?typeof o[1]!==c||o[1].exec&&o[1].test?this[o[0]]=u?u.replace(o[1],o[2]):a:this[o[0]]=u?o[1].call(this,u,o[2]):a:4==o.length&&(this[o[0]]=u?o[3].call(this,u.replace(o[1],o[2])):a):this[o]=u?u:a;l+=2}},str:function(e,t){for(var n in t)if(typeof t[n]===d&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(w.has(t[n][i],e))return n===u?a:n}else if(w.has(t[n],e))return n===u?a:n;return e}},R={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2000:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},N={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]{3,6}).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[g,_],[/(opios)[\/\s]+([\w\.]+)/i],[[g,"Opera Mini"],_],[/\s(opr)\/([\w\.]+)/i],[[g,"Opera"],_],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[g,_],[/(konqueror)\/([\w\.]+)/i],[[g,"Konqueror"],_],[/(trident).+rv[:\s]([\w\.]{1,9}).+like\sgecko/i],[[g,"IE"],_],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[g,"Edge"],_],[/(yabrowser)\/([\w\.]+)/i],[[g,"Yandex"],_],[/(Avast)\/([\w\.]+)/i],[[g,"Avast Secure Browser"],_],[/(AVG)\/([\w\.]+)/i],[[g,"AVG Secure Browser"],_],[/(puffin)\/([\w\.]+)/i],[[g,"Puffin"],_],[/(focus)\/([\w\.]+)/i],[[g,"Firefox Focus"],_],[/(opt)\/([\w\.]+)/i],[[g,"Opera Touch"],_],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[g,"UCBrowser"],_],[/(comodo_dragon)\/([\w\.]+)/i],[[g,/_/g," "],_],[/(windowswechat qbcore)\/([\w\.]+)/i],[[g,"WeChat(Win) Desktop"],_],[/(micromessenger)\/([\w\.]+)/i],[[g,"WeChat"],_],[/(brave)\/([\w\.]+)/i],[[g,"Brave"],_],[/(whale)\/([\w\.]+)/i],[[g,"Whale"],_],[/(qqbrowserlite)\/([\w\.]+)/i],[g,_],[/(QQ)\/([\d\.]+)/i],[g,_],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[g,_],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[g,_],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[g,_],[/(MetaSr)[\/\s]?([\w\.]+)/i],[g],[/(LBBROWSER)/i],[g],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[_,[g,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[_,[g,"Facebook"]],[/FBAN\/FBIOS|FB_IAB\/FB4A/i],[[g,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[g,_],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[_,[g,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[g,/(.+)/,"$1 WebView"],_],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[g,/(.+(?:g|us))(.+)/,"$1 $2"],_],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[_,[g,"Android Browser"]],[/(coc_coc_browser)\/([\w\.]+)/i],[[g,"Coc Coc"],_],[/(sailfishbrowser)\/([\w\.]+)/i],[[g,"Sailfish Browser"],_],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[g,_],[/(dolfin)\/([\w\.]+)/i],[[g,"Dolphin"],_],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[g,"360 Browser"]],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[g,"Chrome"],_],[/(coast)\/([\w\.]+)/i],[[g,"Opera Coast"],_],[/fxios\/([\w\.-]+)/i],[_,[g,"Firefox"]],[/version\/([\w\.]+)\s.*mobile\/\w+\s(safari)/i],[_,[g,"Mobile Safari"]],[/version\/([\w\.]+)\s.*(mobile\s?safari|safari)/i],[_,g],[/webkit.+?(gsa)\/([\w\.]+)\s.*(mobile\s?safari|safari)(\/[\w\.]+)/i],[[g,"GSA"],_],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[g,[_,D.str,R.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[g,_],[/(navigator|netscape)\/([\w\.-]+)/i],[[g,"Netscape"],_],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(firefox)\/([\w\.]+)\s[\w\s\-]+\/[\w\.]+$/i,/(mozilla)\/([\w\.]+)\s.+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[g,_]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[E,"amd64"]],[/(ia32(?=;))/i],[[E,w.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[E,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[E,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[E,/ower/,"",w.lowerize]],[/(sun4\w)[;\)]/i],[[E,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[E,w.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[h,m,[v,S]],[/applecoremedia\/[\w\.]+ \((ipad)/],[h,[m,"Apple"],[v,S]],[/(apple\s{0,1}tv)/i],[[h,"Apple TV"],[m,"Apple"],[v,T]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[m,h,[v,S]],[/(kf[A-z]+)(\sbuild\/|\)).+silk\//i],[h,[m,"Amazon"],[v,S]],[/(sd|kf)[0349hijorstuw]+(\sbuild\/|\)).+silk\//i],[[h,D.str,R.device.amazon.model],[m,"Amazon"],[v,I]],[/android.+aft([\w])(\sbuild\/|\))/i],[h,[m,"Amazon"],[v,T]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[h,m,[v,I]],[/\((ip[honed|\s\w*]+);/i],[h,[m,"Apple"],[v,I]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[m,h,[v,I]],[/\(bb10;\s(\w+)/i],[h,[m,"BlackBerry"],[v,I]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[h,[m,"Asus"],[v,S]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[m,"Sony"],[h,"Xperia Tablet"],[v,S]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[h,[m,"Sony"],[v,I]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[m,h,[v,y]],[/android.+;\s(shield)\sbuild/i],[h,[m,"Nvidia"],[v,y]],[/(playstation\s[34portablevi]+)/i],[h,[m,"Sony"],[v,y]],[/(sprint\s(\w+))/i],[[m,D.str,R.device.sprint.vendor],[h,D.str,R.device.sprint.model],[v,I]],[/(htc)[;_\s-]{1,2}([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[m,[h,/_/g," "],[v,I]],[/(nexus\s9)/i],[h,[m,"HTC"],[v,S]],[/d\/huawei([\w\s-]+)[;\)]/i,/android.+\s(nexus\s6p|vog-[at]?l\d\d|ane-[at]?l[x\d]\d|eml-a?l\d\da?|lya-[at]?l\d[\dc]|clt-a?l\d\di?)/i],[h,[m,"Huawei"],[v,I]],[/android.+(bah2?-a?[lw]\d{2})/i],[h,[m,"Huawei"],[v,S]],[/(microsoft);\s(lumia[\s\w]+)/i],[m,h,[v,I]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[h,[m,"Microsoft"],[v,y]],[/(kin\.[onetw]{3})/i],[[h,/\./g," "],[m,"Microsoft"],[v,I]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[h,[m,"Motorola"],[v,I]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[h,[m,"Motorola"],[v,S]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[m,w.trim],[h,w.trim],[v,T]],[/hbbtv.+maple;(\d+)/i],[[h,/^/,"SmartTV"],[m,"Samsung"],[v,T]],[/\(dtv[\);].+(aquos)/i],[h,[m,"Sharp"],[v,T]],[/android.+((sch-i[89]0\d|shw-m380s|SM-P605|SM-P610|SM-P587|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[m,"Samsung"],h,[v,S]],[/smart-tv.+(samsung)/i],[m,[v,T],h],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[m,"Samsung"],h,[v,I]],[/sie-(\w*)/i],[h,[m,"Siemens"],[v,I]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[m,"Nokia"],h,[v,I]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[h,[m,"Acer"],[v,S]],[/android.+([vl]k\-?\d{3})\s+build/i],[h,[m,"LG"],[v,S]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[m,"LG"],h,[v,S]],[/linux;\snetcast.+smarttv/i,/lg\snetcast\.tv-201\d/i],[[m,"LG"],h,[v,T]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[h,[m,"LG"],[v,I]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[m,h,[v,S]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[h,[m,"Lenovo"],[v,S]],[/(lenovo)[_\s-]?([\w-]+)/i],[m,h,[v,I]],[/linux;.+((jolla));/i],[m,h,[v,I]],[/((pebble))app\/[\d\.]+\s/i],[m,h,[v,A]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[m,h,[v,I]],[/crkey/i],[[h,"Chromecast"],[m,"Google"],[v,T]],[/android.+;\s(glass)\s\d/i],[h,[m,"Google"],[v,A]],[/android.+;\s(pixel c)[\s)]/i],[h,[m,"Google"],[v,S]],[/android.+;\s(pixel( [2-9]a?)?( xl)?)[\s)]/i],[h,[m,"Google"],[v,I]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]?note?[\s_]?(?:\d\w)?)\sbuild/i,/android.+(redmi[\s\-_]?(?:note|k)?(?:[\s_]?[\w\s]+))(?:\sbuild|\))/i,/android.+(mi[\s\-_]?(?:a\d|one|one[\s_]plus|note lte)?[\s_]?(?:\d?\w?)[\s_]?(?:plus)?)\sbuild/i],[[h,/_/g," "],[m,"Xiaomi"],[v,I]],[/android.+(mi[\s\-_]?(?:pad)(?:[\s_]?[\w\s]+))(?:\sbuild|\))/i],[[h,/_/g," "],[m,"Xiaomi"],[v,S]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[h,[m,"Meizu"],[v,I]],[/(mz)-([\w-]{2,})/i],[[m,"Meizu"],h,[v,I]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[h,[m,"OnePlus"],[v,I]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[h,[m,"RCA"],[v,S]],[/android.+[;\/\s](Venue[\d\s]{2,7})\s+build/i],[h,[m,"Dell"],[v,S]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[h,[m,"Verizon"],[v,S]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(\S(?:.*\S)?)\s+build/i],[[m,"Barnes & Noble"],h,[v,S]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[h,[m,"NuVision"],[v,S]],[/android.+;\s(k88)\sbuild/i],[h,[m,"ZTE"],[v,S]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[h,[m,"Swiss"],[v,I]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[h,[m,"Swiss"],[v,S]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[h,[m,"Zeki"],[v,S]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[m,"Dragon Touch"],h,[v,S]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[h,[m,"Insignia"],[v,S]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[h,[m,"NextBook"],[v,S]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[m,"Voice"],h,[v,I]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[m,"LvTel"],h,[v,I]],[/android.+;\s(PH-1)\s/i],[h,[m,"Essential"],[v,I]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[h,[m,"Envizen"],[v,S]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[m,h,[v,S]],[/android.+[;\/]\s*(Trio[\s\w\-\.]+)\s+build/i],[h,[m,"MachSpeed"],[v,S]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[m,h,[v,S]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[h,[m,"Rotor"],[v,S]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[m,h,[v,S]],[/android .+?; ([^;]+?)(?: build|\) applewebkit).+? mobile safari/i],[h,[v,I]],[/android .+?;\s([^;]+?)(?: build|\) applewebkit).+?(?! mobile) safari/i],[h,[v,S]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[v,w.lowerize],m,h],[/[\s\/\(](smart-?tv)[;\)]/i],[[v,T]],[/(android[\w\.\s\-]{0,9});.+build/i],[h,[m,"Generic"]],[/(phone)/i],[[v,I]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[_,[g,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[_,[g,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[g,_],[/rv\:([\w\.]{1,9}).+(gecko)/i],[_,g]],os:[[/(xbox);\s+xbox\s([^\);]+)/i,/microsoft\s(windows)\s(vista|xp)/i],[g,_],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[g,[_,D.str,R.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[g,"Windows"],[_,D.str,R.os.windows.version]],[/\((bb)(10);/i],[[g,"BlackBerry"],_],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[g,_],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[g,"Symbian"],_],[/\((series40);/i],[g],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[g,"Firefox OS"],_],[/crkey\/([\d\.]+)/i],[_,[g,"Chromecast"]],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[g,_],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[g,"Chromium OS"],_],[/(sunos)\s?([\w\.\d]*)/i],[[g,"Solaris"],_],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[g,_],[/(haiku)\s(\w+)/i],[g,_],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[_,/_/g,"."],[g,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[g,"Mac OS"],[_,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[g,_]]},O=function(e,t){if("object"==typeof e&&(t=e,e=a),!(this instanceof O))return new O(e,t).getResult();var n=e||(r&&r.navigator&&r.navigator.userAgent?r.navigator.userAgent:s),i=t?w.extend(N,t):N;return this.getBrowser=function(){var e={name:a,version:a};return D.rgx.call(e,n,i.browser),e.major=w.major(e.version),e},this.getCPU=function(){var e={architecture:a};return D.rgx.call(e,n,i.cpu),e},this.getDevice=function(){var e={vendor:a,model:a,type:a};return D.rgx.call(e,n,i.device),e},this.getEngine=function(){var e={name:a,version:a};return D.rgx.call(e,n,i.engine),e},this.getOS=function(){var e={name:a,version:a};return D.rgx.call(e,n,i.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=e,this},this};O.VERSION=o,O.BROWSER={NAME:g,MAJOR:p,VERSION:_},O.CPU={ARCHITECTURE:E},O.DEVICE={MODEL:h,VENDOR:m,TYPE:v,CONSOLE:y,MOBILE:I,SMARTTV:T,TABLET:S,WEARABLE:A,EMBEDDED:b},O.ENGINE={NAME:g,VERSION:_},O.OS={NAME:g,VERSION:_},typeof t!==l?(typeof e!==l&&e.exports&&(t=e.exports=O),t.UAParser=O):(i=function(){return O}.call(t,n,t,e),!(i!==a&&(e.exports=i)))})("object"==typeof window?window:this)}),(function(e,t){e.exports={provides:"browserId",shouldTrack:!0,isSticky:!0,getter:["sources/browser_id",function(e){return e.getId()}]}}),(function(e,t){e.exports={provides:"browserVersion",getter:["sources/browser_id",function(e){return e.getVersion()}]}}),(function(e,t,n){var i=n(173).compareVersion;e.exports={fieldsNeeded:["browserVersion","browserId"],match:function(e,t){var n=t.value,r=e.browserId,a=e.browserVersion;if(0===n.indexOf(r)){var o=n.substr(r.length);return 0===i(a,o)}return!1}}}),(function(e,t,n){var i=n(2);t.compareVersion=function(e,t){if(!t)return 0;for(var n=t.toString().split("."),r=e.toString().split("."),a=0;a<n.length;a++){if(i.isUndefined(r[a]))return-1;if(isNaN(Number(r[a]))){if(r[a]!==n[a])return-1}else{if(Number(r[a])<Number(n[a]))return-1;if(Number(r[a])>Number(n[a]))return 1}}return 0}}),(function(e,t,n){e.exports=function(e){e.registerVisitorProfileProvider(n(175)),e.registerAudienceMatcher("campaign",n(176))}}),(function(e,t,n){var i=n(119);e.exports={provides:"campaign",shouldTrack:!0,isSticky:!0,getter:[function(){return i.getQueryParamValue("utm_campaign")}]}}),(function(e,t,n){var i=n(20);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(178));var t=n(179);e.registerAudienceMatcher("custom_attribute",t),e.registerAudienceMatcher("custom_dimension",t)}}),(function(e,t,n){var i=n(2),r=n(25),a=n(23),o=n(16),s=o.get("stores/dimension_data");e.exports={provides:"custom",attributionType:r.AttributionTypes.LAST_TOUCH,restorer:function(e){return i.reduce(e,(function(e,t,n){var r=n,o=s.getByApiName(n),u=s.getById(n),c=u;return i.isObject(t)?(!t.id&&o&&(c=o,r=o.id,i.extend(t,{id:c.segmentId||c.id})),t.name||c&&c.apiName&&(t.name=c.apiName),t.id||c||a.warn("Unable to determine ID for custom attribute:",n,"; segmentation is disabled."),e[r]=t,e):(a.error('Unable to restore custom attribute "'+n+'" because value is not an object'),e)}),{})},shouldTrack:!0}}),(function(e,t,n){var i=n(2),r=n(20);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(181)),e.registerVisitorProfileProvider(n(182)),e.registerAudienceMatcher("device",n(183))}}),(function(e,t,n){var i=n(167);t.getDevice=function(){var e=i.get().device;return"unknown"!==e.model?e.model:"tablet"===e.type?"tablet":e.isMobile?"mobile":"desktop"}}),(function(e,t){e.exports={provides:"device",shouldTrack:!0,isSticky:!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(185)),e.registerAudienceMatcher("device_type",n(186))}}),(function(e,t,n){var i=n(167);e.exports={provides:"device_type",shouldTrack:!0,isSticky:!0,getter:[function(){var e=i.get().device;switch(e.type){case"mobile":return"phone";case"tablet":case"desktop_laptop":return e.type;default:return"other"}}]}}),(function(e,t){e.exports={fieldsNeeded:["device_type"],match:function(e,t){return e.device_type===t.value}}}),(function(e,t,n){e.exports=function(e){e.registerVisitorProfileProvider(n(188)),e.registerAudienceMatcher("referrer",n(189))}}),(function(e,t,n){var i=n(80),r=n(99);e.exports={provides:"referrer",shouldTrack:!0,isSticky:!0,getter:[function(){var e=r.getReferrer()||i.getReferrer();return""===e&&(e=null),e}]}}),(function(e,t,n){var i=n(190);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 a(i(e))}function a(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<i;r++){var a=n[r],o=new RegExp("^"+a);e=e.replace(o,"")}return e}function o(e){var t=e.split("?");if(t[1]){var n=t[1].split("#"),i=n[0],r=n[1],a=i.split("&"),o=[];return s.each(a,(function(e){0!==e.indexOf(c)&&o.push(e)})),t[1]="",o.length>0&&(t[1]="?"+o.join("&")),r&&(t[1]+="#"+r),t.join("")}return e}var s=n(2);e.exports=function(e,t){e=o(e);var n=t.value;switch(t.match){case"exact":return e=a(e),e===a(n);case"regex":try{return Boolean(e.match(n))}catch(e){}return!1;case"simple":return e=r(e),n=r(n),e===n;case"substring":return e=a(e,!0),n=a(n,!0),e.indexOf(n)!==-1;default:return!1}};var u=["www."],c="optimizely_",l=["https?://.*?.?optimizelyedit.(com|test)/","https?://.*.?optimizelypreview.(com|test)/","https?://(edit|preview)(-hrd|-devel)?.optimizely.(com|test)/","https?://.*?.?optimizelyedit(-hrd)?.appspot.com/","https?://"]}),(function(e,t,n){e.exports=function(e){e.registerVisitorProfileProvider(n(192)),e.registerAudienceMatcher("source_type",n(194))}}),(function(e,t,n){var i=n(119),r=n(80),a=n(99),o=n(193),s=["google\\.\\w{2,3}(\\.\\w{2,3})?/(search|url)","bing\\.\\w{2,3}(\\.\\w{2,3})?/(search|url)","yahoo\\.\\w{2,3}(\\.\\w{2,3})?/search","baidu\\.\\w{2,3}(\\.\\w{2,3})?/","https://(www)?\\.google\\..*?/?$","https://search\\.yahoo\\..*?/?$","https://(www)?\\.bing\\..*?/?$"];e.exports={provides:"source_type",shouldTrack:!0,isSticky:!1,getter:[function(){return function(e,t){var n=function(){if(i.getQueryParamValue("utm_source")||i.getQueryParamValue("gclid")||i.getQueryParamValue("otm_source"))return"campaign";for(var e=a.getReferrer()||r.getReferrer(),t=0;t<s.length;t++){var n=s[t],u=e.match(n);if(u)return"search"}return e&&o.guessDomain(e)!==o.guessDomain(i.getUrl())?"referral":"direct"},u=function(e,t){return!e||"direct"!==t},c=e(),l=n();u(c,l)&&t(l)}}]}}),(function(e,t){t.guessDomain=function(e,t){if(!e)return"";try{return t?e.match(/:\/\/(.[^/]+)/)[1]:e.match(/:\/\/(?:www[0-9]?\.)?(.[^/:]+)/)[1]}catch(e){return""}}}),(function(e,t,n){var i=n(20);t.fieldsNeeded=["source_type"],t.match=function(e,t){return i.hasMatch(t.value,t.match,e.source_type)}}),(function(e,t,n){e.exports=function(e){e.registerVisitorProfileProvider(n(196)),e.registerVisitorProfileProvider(n(197)),e.registerAudienceMatcher("time_and_day",n(198))}}),(function(e,t,n){var i=n(24);e.exports={provides:"currentTimestamp",shouldTrack:!0,isLazy:!0,getter:[function(){return i.now()}]}}),(function(e,t){e.exports={provides:"offset",shouldTrack:!0,isLazy:!0,getter:[function(){return(new Date).getTimezoneOffset()}]}}),(function(e,t,n){var i=n(199);t.fieldsNeeded=["currentTimestamp"],t.match=function(e,t){return i.test(t.value,new Date(e.currentTimestamp))}}),(function(e,t,n){function i(e){var t=e.split(o);if(3!==t.length)throw new Error("Invalid time and day string "+e);var n=t[2].split(s);return{start_time:t[0],end_time:t[1],days:n}}function r(e){var t=e.split(u);if(2!==t.length)throw new Error("optly.timeAndDayInterval.timeStringToMinutes: Invalid time string "+e);return 60*parseInt(t[0],10)+parseInt(t[1],10)}var a=n(2),o="_",s=",",u=":";t.test=function(e,t){var n=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],o=i(e),s=r(o.start_time),u=r(o.end_time),c=60*t.getHours()+t.getMinutes(),l=n[t.getDay()];return c>=s&&c<=u&&a.includes(o.days,l)}}),(function(e,t,n){function i(e){var t=e.getGlobal(l);return t?e.getGlobal(t):null}var r=n(26),a=n(23),o=n(88),s=n(99),u=n(115),c=n(40),l="GoogleAnalyticsObject",d=150,f="google_universal_analytics",p=n(95),h=function(e){var t=e.integrationSettings;if(t&&t[f]&&e.experimentId&&e.variationId){var n={id:e.layerId,name:e.layerName,policy:e.layerPolicy,integrationStringVersion:e.integrationStringVersion},i={id:e.experimentId,name:e.experimentName},r={id:e.variationId,name:e.variationName},o=e.isLayerHoldback,s=p.generateAnalyticsString(n,i,r,o,d,!0);if(s)return g(s,t[f])["catch"]((function(e){a.warn("Tracker for",f,"failed:",e)}))}},g=function(e,t){var n=50,r=200;return o.pollFor((function(){return i(c)}),r,n).then((function(n){var i=t.universal_analytics_tracker,r=i?i+".":"",a=t.universal_analytics_slot,o=s.getReferrer();o&&n(r+"set","referrer",o);var u={nonInteraction:!0};u["dimension"+a]=e,n(r+"send","event","Optimizely","Assigned To Campaign",u)}))},v={preRedirectPolicy:u.PreRedirectPolicies.PERSIST_BEFORE_REDIRECT,postRedirectPolicy:u.PostRedirectPolicies.TRACK_IMMEDIATELY,nonRedirectPolicy:u.NonRedirectPolicies.TRACK_IMMEDIATELY,trackLayerDecision:h,serializeSettings:r.stringify,deserializeSettings:r.parse};e.exports=function(e){e.registerAnalyticsTracker("google_universal_analytics",v)}}),(function(e,t,n){function i(e,t,n,i){return r().then((function(r){p.log("Mixpanel variable found on window"),a(r);var c=T.formatNamesAndIdsForAnalytics(e,t,n,!1),l=u(c.names,c.idStrings,i,I,e.policy);o(r,l),s(r,e.policy,c)}))}function r(){var e=50,t=200;return g.pollFor((function(){return E.getGlobal(y)}),t,e)}function a(e){var t=v.getExperimentAndVariation(),n=v.getReferrer();if(t){var i;n&&(p.log("effectiveReferrer found, updating Mixpanel $referrer to:",n),i=_.guessDomain(n,!0),e.push(["register",{$referrer:n,$referring_domain:i}])),e.push((function(){l.call(this,n,i)}))}}function o(e,t){e.push(["register",t]),p.log("Mixpanel super property registered with:",t)}function s(e,t,n){var i,r,a;h.isSingleExperimentPolicy(t)?(a=I-R.length,r=c(n.names.experiment,n.idStrings.experiment,a),i=R+r):(a=I-D.length,r=c(n.names.layer,n.idStrings.layer,a),i=D+r),e.push(["track",i]),p.log("Optimizely Campaign Decision tracked in Mixpanel")}function u(e,t,n,i,r){var a=i-A.length-2,o={};d.each(e,(function(e,n){var r=t[n],s="layer"===n?a:i;o[n]=c(e,r,s)}));var s={};return s[o.experiment]=o.variation,h.isSingleExperimentPolicy(r)||(s[o.layer]=o.experiment,s[o.experiment]=n?b:o.variation,o.holdback=A+" ["+o.layer+"]",s[o.holdback]=n),s}function c(e,t,n){var i;if(e===w)i=t;else{var r=n-t.length;if(e.length>r){var a=Math.min(e.length,r);e=e.substring(0,a),i=e+t}else i=e+" "+t}return i}function l(e,t){this.get_config("save_referrer")&&(p.log("Calling register_once to potentially update $initial_referrer to:",e),this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:t||"$direct"}))}var d=n(2),f=n(26),p=n(23),h=n(44),g=n(88),v=n(99),m=n(115),_=n(193),E=n(40),y="mixpanel",I=255,S="mixpanel",T=n(95),A="HB",b="holdback",w="",D="Campaign Decided: ",R="Experiment Decided: ",N=function(e){var t=e.integrationSettings;if(t&&t[S]&&e.experimentId&&e.variationId){var n={id:e.layerId,name:e.layerName,policy:e.layerPolicy,integrationStringVersion:e.integrationStringVersion},r=e.isLayerHoldback;if(!(n.integrationStringVersion&&2===n.integrationStringVersion&&h.isSingleExperimentPolicy(e.layerPolicy)&&r)){var a={id:e.experimentId,name:e.experimentName},o={id:e.variationId,name:e.variationName};return i(n,a,o,r)["catch"]((function(e){p.warn("Tracker for",S,"failed:",e)}))}}},O={preRedirectPolicy:m.PreRedirectPolicies.PERSIST_BEFORE_REDIRECT,postRedirectPolicy:m.PostRedirectPolicies.TRACK_IMMEDIATELY,nonRedirectPolicy:m.NonRedirectPolicies.TRACK_IMMEDIATELY,trackLayerDecision:N,serializeSettings:f.stringify,deserializeSettings:f.parse};e.exports=function(e){e.registerAnalyticsTracker("mixpanel",O)}}),(function(e,t,n){function i(e){function t(e,t,n){try{u(t),e[n]=t}catch(e){C.emitError(new X("Bad value for eventTags["+n+"]: "+e.message))}return e}var n=O.keys(ne),i=O.omit(e,n),r=O.pick(e,n),a=O.reduce(i,t,{}),o=O.reduce(r,(function(e,n,i){var r=ne[i];r.excludeFeature||t(a,n,i);try{r.validate(n),e[i]=r.sanitize(n),a[i]=e[i]}catch(e){C.emitError(new X("Bad value for eventMetrics["+i+"]: "+e.message))}return e}),{});return o.tags=a,o}function r(e){var t=O.extend({entity_id:e.pageId,key:e.pageApiName,timestamp:e.timestamp,uuid:e.eventId,type:J},i(e.eventTags));return t}function a(e){return O.extend({entity_id:e.eventEntityId,key:e.eventApiName,timestamp:e.timestamp,uuid:e.eventId,type:e.eventCategory},i(e.eventTags))}function o(e){return O.extend({entity_id:e.eventEntityId,key:e.eventApiName,timestamp:e.timestamp,uuid:e.eventId,type:e.eventCategory},i(e.eventTags))}function s(e){return{entity_id:null,type:$,uuid:e.eventId,timestamp:e.timestamp}}function u(e){if(null==e)throw new Error("Feature value is null");if("object"==typeof e){var t;try{t=F.stringify(e)}catch(e){}throw new Error('Feature value is complex: "'+t||'[object]"')}}function c(e){if(null==e)throw new Error("Metric value is null");if(!O.isNumber(e))throw new Error("Metric value is not numeric")}function l(e){return O.reduce(e,(function(e,t){try{u(t.value),e.push({entity_id:t.id||null,key:t.name,type:t.type,value:t.value})}catch(e){V.warn("Error evaluating user feature",t,e)}return e}),[])}function d(e,t,n){K.dispatch(P.REGISTER_TRACKER_EVENT,{event:e,decisions:n}),f(t),D()}function f(e){var t=l(e);K.dispatch(P.UPDATE_TRACKER_VISITOR_ATTRIBUTES,{attributes:t})}function p(e){var t=l(e.userFeatures),n={account_id:e.accountId,anonymize_ip:e.anonymizeIP,client_name:e.clientName,client_version:e.clientVersion,project_id:e.projectId,visitors:[{session_id:g(e.sessionId),visitor_id:e.visitorId,attributes:t,snapshots:[{decisions:[{campaign_id:e.layerId,experiment_id:e.experimentId,variation_id:e.variationId,is_campaign_holdback:e.isLayerHoldback}],events:[{uuid:e.decisionId,entity_id:e.layerId,timestamp:e.timestamp,type:Q}]}]}]};K.dispatch(P.REGISTER_PREVIOUS_BATCH,n),D()}function h(e){var t=O.isNull(q.getAnonymizeIP())?void 0:q.getAnonymizeIP(),n={account_id:e.accountId,anonymize_ip:t,client_name:e.clientName,client_version:e.clientVersion,project_id:e.projectId,visitors:[]};n.revision=e.revision,Z&&(n.enrich_decisions=!0);var i={session_id:g(e.sessionId),visitor_id:e.visitorId,attributes:[],snapshots:[]},r=R(e.layerStates);K.dispatch(P.REGISTER_TRACKER_VISITOR,{data:n,visitor:i,decisions:r}),D()}function g(e){return oe?ae:e}function v(e){var t={entity_id:e.layerId,type:Q,uuid:e.decisionId,timestamp:e.timestamp};K.dispatch(P.REGISTER_TRACKER_DECISION,{decisionEvent:t,decisions:R(e.layerStates)}),f(e.userFeatures),D()}function m(){if(!W.canSend())return void V.debug("Not sending events (holding)");var e=W.hasEventsToSend(),t=W.hasPreviousBatchesToSend();return e||t?(t&&(O.each(W.getPreviousBatches(),_),K.dispatch(P.RESET_TRACKER_PREVIOUS_BATCHES)),void(e&&(K.dispatch(P.FINALIZE_BATCH_SNAPSHOT),_(W.getEventBatch()),K.dispatch(P.RESET_TRACKER_EVENTS)))):void V.debug("Not sending events because there are no events to send")}function _(e){V.debug("Sending ticket:",e);var t=x.generate();G.retryableRequest({url:L,method:"POST",data:E(e)},t)}function E(e){var t=O.extend({},O.pick(e,["account_id","anonymize_ip","client_name","client_version","enrich_decisions","project_id","revision"]),{visitors:O.map(e.visitors,y)});return t}function y(e){return{visitor_id:e.visitor_id,session_id:ae,attributes:O.map(e.attributes,I),snapshots:O.map(e.snapshots,S)}}function I(e){return w(e,{entity_id:"e",key:"k",type:"t",value:"v"})}function S(e){var t=e.events;return t=T(t),{activationTimestamp:q.getActivationTimestamp(),decisions:O.map(e.decisions,A),events:O.map(t,b)}}function T(e){var t=O.reduce(e,(function(e,t){var n,i=t.type===J&&O.isEmpty(t.tags)&&O.isEmpty(O.pick(t,O.keys(ne)));if(n=i?t.type:t.uuid,e[n]){var r=e[n].timestamp;t.timestamp>r&&(r=t.timestamp),e[n]=O.extend({},e[n],{key:e[n].key+"-"+(t.key||""),entity_id:e[n].entity_id+"-"+t.entity_id,timestamp:r})}else e[n]=t;return e}),{});return O.values(t)}function A(e){return w(e,{campaign_id:"c",experiment_id:"x",is_campaign_holdback:"h",variation_id:"v"})}function b(e){return e.key===Q&&(e.type=Q,delete e.key),w(e,{entity_id:"e",key:"k",quantity:"q",revenue:"$",tags:"a",timestamp:"t",uuid:"u",value:"v",type:"y"})}function w(e,t){return O.reduce(e,(function(e,n,i){return i in t&&(e[t[i]||i]=n),e}),{})}function D(){function e(){var t=!ie||z.isLoaded();t&&m(),W.isPolling()&&B.setTimeout(e,te)}return W.shouldBatch()?void(W.isPolling()||(B.setTimeout(e,te),K.dispatch(P.SET_TRACKER_POLLING,!0),B.setTimeout((function(){K.dispatch(P.SET_TRACKER_BATCHING,!1),K.dispatch(P.SET_TRACKER_POLLING,!1)}),ee))):void m()}function R(e){return O.map(e,(function(e){return{campaign_id:e.layerId,experiment_id:e.decision.experimentId,variation_id:e.decision.variationId,is_campaign_holdback:e.decision.isLayerHoldback}}))}function N(){var e=W.getPersistableState();if(e)try{V.debug("Persisting pending batch:",e),U.persistTrackerOptimizelyData(e),K.dispatch(P.SET_TRACKER_DIRTY,!1)}catch(e){V.debug("Failed to persist pending batch:",e)}}var O=n(2),C=n(86),x=n(5),L="https://logx.optimizely.com/v1/events",P=n(7),k=n(76).create,F=n(26),V=n(23),M=n(115),U=n(74),B=n(40),G=n(91),j=n(16),z=n(80),H=n(87),Y=n(111),K=n(9),q=j.get("stores/global"),W=j.get("stores/tracker_optimizely"),X=t.Error=k("OptimizelyTrackerError"),$="client_activation",Q="campaign_activated",J="view_activated",Z=!0,ee=1e4,te=1e3,ne={ revenue:{validate:c,sanitize:Math.floor,excludeFeature:!0},quantity:{validate:c,sanitize:Math.floor,excludeFeature:!0},value:{validate:c,sanitize:O.identity}},ie=!1,re=!1,ae="AUTO",oe=!0,se=function(e){e.timing===M.TrackLayerDecisionTimingFlags.postRedirectPolicy?p(e):v(e)},ue=[function(){return function(e){d(r(e),e.userFeatures,R(e.layerStates))}}],ce=[function(){return function(e){h(e),d(s(e),e.userFeatures,R(e.layerStates))}}],le=[function(){return function(e){d(o(e),e.userFeatures,R(e.layerStates))}}],de=[function(){return function(e){d(a(e),e.userFeatures,R(e.layerStates))}}],fe={trackLayerDecision:se,postRedirectPolicy:M.PostRedirectPolicies.TRACK_AFTER_SYNC,nonRedirectPolicy:M.NonRedirectPolicies.TRACK_IMMEDIATELY,onPageActivated:ue,onClientActivation:ce,onClickEvent:de,onCustomEvent:le};e.exports=function(e){e.registerAnalyticsTracker("optimizely",fe),H.on({filter:{type:Y.TYPES.ANALYTICS,name:"sendEvents"},handler:function(){K.dispatch(P.SET_TRACKER_SEND_EVENTS,!0),W.isPolling()||m()}}),H.on({filter:{type:Y.TYPES.ANALYTICS,name:"holdEvents"},handler:function(){K.dispatch(P.SET_TRACKER_SEND_EVENTS,!1)}}),K.dispatch(P.SET_TRACKER_SEND_EVENTS,!re);var t=H.on({filter:{type:"lifecycle",name:"activated"},handler:function(){W.observe(N),H.off(t)}})}}),(function(e,t,n){e.exports=function(e){e.registerViewProvider(n(204)),e.registerViewMatcher("url",n(205))}}),(function(e,t,n){var i=n(119);e.exports={provides:"url",getter:[function(){return i.getUrl()}]}}),(function(e,t,n){var i=n(190);e.exports={fieldsNeeded:["url"],match:function(e,t){return i(e.url,t)}}}),(function(e,t,n){var i=n(145),r="custom_code",a={match:function(e,t){return i.apply(t.value)}};e.exports=function(e){e.registerViewMatcher(r,a)}}),(function(e,t,n){function i(e){return"apiName: "+e.apiName+", selector: "+e.eventFilter.selector}var r=n(110),a=n(208),o=n(23),s=n(123);e.exports=function(e){var t=new a(function(e){s.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),o.debug("Started listening for click event ("+i(e)+"):",e)},detach:function(e){t.removeEvent(e),t.hasEvents()||t.unlisten(),o.debug("Stopped listening for click event ("+i(e)+"):",e)}})}}),(function(e,t,n){function i(e){this.handler=e,this.events=[],this.unlistenFn=null,this.clickHandler=a.bind((function(e){a.forEach(this.events,a.bind((function(t){try{var n=t.config&&t.config.selector?t.config.selector:t.eventFilter.selector;r(e,n,t)&&this.handler(t)}catch(e){o.emitError(new l("Unable to handle click for selector"+n+":"+e.message))}}),this))}),this)}function r(e,t,n){for(var i=e.target,r=0;i;){var s;try{s=c(i,t)}catch(s){var u={typeofElementValue:typeof i,nodeName:a.result(i,["nodeName"],null),nodeType:a.result(i,["nodeType"],null),targetName:a.result(e,["target","nodeName"],null),targetType:a.result(e,["target","nodeType"],null),numParentsTraversed:r,selector:t,errorMessage:s.message,eventId:n.id};return o.emitError(new l("Unable to evaluate match for element"),u),!1}if(s)return!0;i=i.parentElement,r++}return!1}var a=n(2),o=n(86),s=n(76).create,u=n(80),c=n(209),l=t.Error=s("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=a.filter(this.events,(function(t){return t.apiName!==e.apiName}))},e.exports=i}),(function(e,t,n){e.exports=n(210)}),(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<n.length;i++)if(n[i]==e)return!0;return!1}var i=Element.prototype,r=i.matches||i.matchesSelector||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector;e.exports=n}),(function(e,t,n){e.exports=function(e){e.registerApiModule("recommender",n(212))}}),(function(e,t,n){function i(e){return e===A.SELF_CONTAINED_MULTI_COL}function r(e){return e===A.SEPARATE_CATALOG_SINGLE_COL}function a(e,t){if(!i(t))return w in e?y.parse(e[w]):(I.warn('recommender / Expected key "'+w+'" not found'),[]);var n=new RegExp("^"+D+"(\\d+)$"),r=E.reduce(e,(function(t,i,r){var a=r.match(n);if(a){var o=y.parse(e[r]);o&&E.isObject(o)&&(t[a[1]]=o)}return t}),[]);return E.filter(r,(function(e){return!E.isUndefined(e)}))}function o(e,t){return[e,encodeURIComponent(t)].join("/")}function s(e,t){var n=function(e,t,n){if(!E.isArray(e)||E.isEmpty(e))throw new Error("No "+n+"s available");var i;if(t){if(i=E.find(e,{id:t}),!i)throw new Error("No "+n+" found with specified id "+t)}else{if(e.length>1)throw new Error("No "+n+" id specified when there are more than one available.");i=e[0]}return i},i=e.getRecommenderServices(),r=n(i,t&&t.recommenderServiceId,"recommender service");r.idTagName||(r.idTagName="id");var a=n(r.recommenders,t&&t.recommenderId,"recommender");return{recommenderService:r,recommender:a}}function u(e){var t=y.parse(e);return t.data}function c(e,t){return T.request({url:o(e,t)}).then((function(e){var t=u(e.response),n={};return b in t&&(n=y.parse(t[b])),n}))}function l(e,t,n,i){var s=!(!i||!i.fetchWithMetadata),c=i&&i.overrideServingUrl||t.servingUrl;return T.request({url:o(c,n)}).then((function(t){var n=[],o=u(t.response);return n=a(o,e.serviceVersion),s&&r(e.serviceVersion)?d(e,E.map(n,e.idTagName),i).then((function(e){return e=E.map(e,(function(e){return e instanceof Error&&(e={}),delete e["__proto__"],e})),E.merge(n,e)})):n}))}function d(e,t,n){var i=n&&n.overrideCatalogUrl||e.catalogUrl;return E.isString(t)?c(i,t):S.all(E.map(t,(function(e){return c(i,e)["catch"]((function(t){return I.warn("recommender / Failed to get recommendations for item:",e,t),t}))})))}function f(e,t,n){var i=s(e,n),r=i.recommenderService,a=i.recommender;return l(r,a,t,{overrideServingUrl:n&&n.overrideServingUrl,overrideCatalogUrl:n&&n.overrideCatalogUrl,fetchWithMetadata:!0})}function p(e,t,n){var i=s(e,n),a=i.recommenderService,o=i.recommender;if(!r(a.serviceVersion))throw new Error("Recommender service "+a.id+" serves self-contained recos. Use `fetchRecommendations` API call");return l(a,o,t,{overrideServingUrl:n&&n.overrideServingUrl,fetchWithMetadata:!1})}function h(e,t,n){var i=s(e,n),a=i.recommenderService;if(!r(a.serviceVersion))throw new Error("Recommender service "+a.id+" serves self-contained recos. Use `fetchRecommendations` API call");return E.isArray(t)&&t.length>R?S.reject("Cannot fetch more than "+R+" items"):d(a,t,n)}function g(e,t,n,i){return new v(e,t,n,i)}function v(e,t,n,i){this.recommenderSettings=t;var r=s(e,t);this.recommenderService=r.recommenderService,this.recommender=r.recommender,this.targetId=n,i&&(this.preFilter=i.preFilter,this.canonicalize=i.canonicalize,this.postFilter=i.postFilter),this._globalStore=e,this.reset()}function m(){var e={recosNoMeta:[],recosNoMetaOffset:0,recos:[],recosOffset:0};return I.debug("recommender / fetching recommended items for",this.targetId,"from recommender",this.recommender.id),r(this.recommenderService.serviceVersion)?p(this._globalStore,this.targetId,this.recommenderSettings).then(E.bind((function(t){return e.recosNoMeta=E.filter(t,this.preFilter),e}),this)):f(this._globalStore,this.targetId,this.recommenderSettings).then(E.bind((function(t){return e.recos=E(t).filter(this.preFilter).map(this.canonicalize).filter(this.postFilter).value(),e}),this))}function _(e){var t=e.numNeeded,n=e.buffer,i=n.recosNoMeta.length-n.recosNoMetaOffset;if(t<=0||i<=0)return S.resolve(e);var r=5,a=Math.max(t,r),o=E.slice(n.recosNoMeta,n.recosNoMetaOffset,n.recosNoMetaOffset+a),s=E.map(o,this.recommenderService.idTagName);n.recosNoMetaOffset+=s.length;var u=e.recosSoFar;return I.debug("recommender / fetching metadata for",s,"from recommender",this.recommender.id),h(this._globalStore,s,this.recommenderSettings).then(E.bind((function(i){i=E.map(i,(function(e){return e instanceof Error?{}:e})),n.recos=E(o).merge(i).map(this.canonicalize).filter(this.postFilter).value();var r=E.slice(n.recos,0,t);return n.recosOffset=r.length,e.recosSoFar=u.concat(r),e.numNeeded-=r.length,e.numNeeded>0?_.call(this,e):e}),this))}var E=n(2),y=n(26),I=n(23),S=n(12).Promise,T=n(91),A={SELF_CONTAINED_MULTI_COL:1,SEPARATE_CATALOG_SINGLE_COL:2},b="itemMetadata",w="recos",D="reco",R=20;v.prototype.reset=function(){this._bufferPromise=null},v.prototype.next=function(e){var t=Math.floor(E.isNumber(e)?e:1);if(t<=0)throw new Error("Invalid argument "+e+". Must be positive integer");this._bufferPromise||(this._bufferPromise=m.call(this));var n=this._bufferPromise.then(E.bind((function(e){var n=[],i=e.recos.length-e.recosOffset;return i>0&&(n=e.recos.slice(e.recosOffset,e.recosOffset+t),e.recosOffset+=n.length,t-=n.length),t<=0?{result:n,buffer:e}:_.call(this,{buffer:e,recosSoFar:n,numNeeded:t}).then((function(e){return{result:e.recosSoFar,buffer:e.buffer}}))}),this));return this._bufferPromise=n.then((function(e){return e.buffer})),n.then((function(e){return e.result}))},e.exports=["stores/global",function(e){return{fetchRecommendations:E.partial(f,e),fetchRecommendedItems:E.partial(p,e),fetchItemMetadata:E.partial(h,e),getRecommendationsFetcher:E.partial(g,e)}}]}),(function(e,t,n){function i(e,t){if(!r.isFunction(e.value))throw new Error("Custom code must be a function");this.change=e}var r=n(2),a=n(214),o=n(215),s=n(145);i.prototype.apply=function(){var e=a();try{s.apply(this.change.value),e.resolve()}catch(t){e.reject(t)}return e},e.exports=function(e){e.registerChangeApplier(o.changeType.CUSTOM_CODE,i)}}),(function(e,t,n){var i=n(2),r=n(12).Promise,a=function(){var e,t,n=new r(function(n,i){e=n,t=i});return n.resolve=function(){return e.apply(null,i.toArray(arguments)),n},n.reject=function(){return t.apply(null,i.toArray(arguments)),n},n};e.exports=a}),(function(e,t,n){var i=n(8);e.exports={changeType:{CUSTOM_CODE:"custom_code",ATTRIBUTE:"attribute",APPEND:"append",REARRANGE:"rearrange",REDIRECT:"redirect",WIDGET:"widget"},DOMInsertionType:{AFTER:"after",APPEND:"append",BEFORE:"before",PREPEND:"prepend"},insertAdjacentHTMLType:{AFTER_BEGIN:"afterbegin",AFTER_END:"afterend",BEFORE_BEGIN:"beforebegin",BEFORE_END:"beforeend"},selectorChangeType:{CLASS:"class",HTML:"html",HREF:"href",SRC:"src",STYLE:"style",TEXT:"text",HIDE:"hide",REMOVE:"remove"},changeApplierState:i({APPLIED:null,APPLYING:null,UNAPPLIED:null,UNDOING:null}),changeState:i({BLOCKED:null,UNAPPLIED:null,APPLIED:null,APPLYING:null,UNDOING:null,TIMED_OUT:null,IGNORED:null,ERROR:null})}}),(function(e,t,n){var i=n(142),r=n(143).DecisionError,a="single_experiment",o="multivariate",s={selectExperiment:function(e,t,n){if(e.experiments.length<1)throw new r("Unable to find experiment to bucket user into");var a=e.experiments[0];if(!i.isValidExperiment(t,a))throw new r('Audience conditions failed for experiment: "'+a.id+'".');return a}};e.exports=function(e){e.registerDecider(a,s),e.registerDecider(o,s)}})]);