function menubar(n,t){this.$id=$("#"+n);this.$rootItems=this.$id.children("li");this.$items=this.$id.find(".menu-item").not(".separator");this.$parents=this.$id.find(".menu-parent");this.$allItems=this.$parents.add(this.$items);this.$activeItem=null;this.$parentActive=null;this.vmenu=t;this.bChildOpen=!1;this.keys={tab:9,enter:13,esc:27,space:32,left:37,up:38,right:39,down:40};this.bindHandlers()}function _toConsumableArray(n){if(Array.isArray(n)){for(var t=0,i=Array(n.length);t<n.length;t++)i[t]=n[t];return i}return Array.from(n)}var energy_journey,_slice;$(function(){$('.soe-callout[role="button"]').click(function(){window.open(String($(this).attr("data-url")),"_self")})});$("#openSearch").on("show.bs.collapse",function(){$("#openSearchBtn").addClass("active")});$("#openSearch").on("hide.bs.collapse",function(){$("#openSearchBtn").removeClass("active")});if(window.matchMedia||(window.matchMedia=function(){"use strict";var t=window.styleMedia||window.media;if(!t){var n=document.createElement("style"),i=document.getElementsByTagName("script")[0],r=null;n.type="text/css";n.id="matchmediajs-test";i.parentNode.insertBefore(n,i);r="getComputedStyle"in window&&window.getComputedStyle(n,null)||n.currentStyle;t={matchMedium:function(t){var i="@media "+t+"{ #matchmediajs-test { width: 1px; } }";return n.styleSheet?n.styleSheet.cssText=i:n.textContent=i,r.width==="1px"}}}return function(n){return{matches:t.matchMedium(n||"all"),media:n||"all"}}}()),function(n){n.fn.equalHeightColumns=function(t){var i,r;return t=n.extend({},n.equalHeightColumns.defaults,t),i=t.height,r=n(this),n(this).each(function(){t.children&&(r=n(this).children(t.children));t.height||(t.children?r.each(function(){n(this).height()>i&&(i=n(this).height())}):n(this).height()>i&&(i=n(this).height()))}),t.minHeight&&i<t.minHeight&&(i=t.minHeight),t.maxHeight&&i>t.maxHeight&&(i=t.maxHeight),r.animate({height:i},t.speed),n(this)};n.equalHeightColumns={version:1,defaults:{children:!1,height:0,minHeight:0,maxHeight:0,speed:0}}}(jQuery),$(window).load(function(){$(".soe-eh").each(function(){$(this).find(".soe-eh-box").equalHeightColumns()})}),$(window).resize(function(){matchMedia("all and (min-width: 768px)").matches&&$(".soe-eh").each(function(){$(this).find(".soe-eh-box").css({height:"auto"});$(this).find(".soe-eh-box").equalHeightColumns()})}),$(function(){$('[data-toggle="popover"]').popover()}),!function(){Function&&Function.prototype&&Function.prototype.bind&&(/MSIE [678]/.test(navigator.userAgent)||(window.__twttr&&window.__twttr.widgets&&window.__twttr.widgets.loaded&&window.twttr.widgets.load&&window.twttr.widgets.load(),window.__twttr&&window.__twttr.widgets&&window.__twttr.widgets.init||!function(n){function t(i){if(r[i])return r[i].exports;var u=r[i]={exports:{},id:i,loaded:!1};return n[i].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var u=window.__twttrll,r,i;return window.__twttrll=function(r,f){for(var s,e,h=0,o=[];h<r.length;h++)e=r[h],i[e]&&o.push.apply(o,i[e]),i[e]=0;for(s in f)n[s]=f[s];for(u&&u(r,f);o.length;)o.shift().call(null,null,t)},r={},i={0:0},t.e=function(){},t.e=function(n,r){if(0===i[n])return r.call(null,null,t);if(void 0!==i[n])i[n].push(r);else{i[n]=[r];var f=document.getElementsByTagName("head")[0],u=document.createElement("script");u.type="text/javascript";u.charset="utf-8";u.async=!0;u.onerror=function(){var t=i[n];for(u.onerror=null,delete i[n];t.length;)t.shift().call(null,new Error("failed to load chunk"))};u.src=t.p+"js/"+({1:"dm_button",2:"button",3:"grid",4:"moment",5:"periscope_on_air",6:"timeline",7:"tweet"}[n]||n)+"."+{1:"2feb01ade71883759dfeb6473b407b30",2:"7db838345f9545c91ea4497f64abb814",3:"b9326220cb2fe1c5e632e0b8f3eb99ed",4:"93f4c797ec11904310cf67237b297681",5:"97b9f758aae0736b4050c57ff0fb8702",6:"3446415aa5dcfb9e8bae390a9c98fd40",7:"31f33e39d2a7460ec27ff780a68c9992"}[n]+".js";f.appendChild(u)}},t.m=n,t.c=r,t.p="https://platform.twitter.com/",t(0)}([function(n,t,i){var u,o=i(1),s=i(9),h=i(14),r=i(16),c=i(18),l=i(19),a=i(31),f=i(33),v=i(263),y=i(274),p=i(275),e=i(242);i(276);e.emitter.trigger(e.START);c.set("widgets.init",!0);r.set("init",!0);p();u=new o;h.exposeReadyPromise(u.promise,r.base,"_e");r.set("widgets",v);r.set("widgets.load",f.load);r.set("events",a);y(function(){u.resolve(r.base);l.attachTo(s);f.loadPage()})},function(n,t,i){function r(){var n=this;this.promise=new u(function(t,i){n.resolve=t;n.reject=i})}var u=i(2);n.exports=r},function(n,t,i){var r=i(3).Promise,u=i(7),f=i(8);n.exports=f.hasPromiseSupport()?u.Promise:r},function(n,t,i){var r;(function(n){(function(){"use strict";function wt(n){return"function"==typeof n||"object"==typeof n&&null!==n}function d(n){return"function"==typeof n}function bt(n){return"object"==typeof n&&null!==n}function kt(n){nt=n}function dt(n){s=n}function gt(){var t=process.nextTick,n=process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/);return Array.isArray(n)&&"0"===n[1]&&"10"===n[2]&&(t=setImmediate),function(){t(l)}}function ni(){return function(){ot(l)}}function ti(){var n=0,i=new at(l),t=document.createTextNode("");return i.observe(t,{characterData:!0}),function(){t.data=n=++n%2}}function ii(){var n=new MessageChannel;return n.port1.onmessage=l,function(){n.port2.postMessage(0)}}function rt(){return function(){setTimeout(l,1)}}function l(){for(var t,i,n=0;n<y;n+=2)t=p[n],i=p[n+1],t(i),p[n]=void 0,p[n+1]=void 0;y=0}function ri(){try{var n=i(5);return ot=n.runOnLoop||n.runOnContext,ni()}catch(n){return rt()}}function a(){}function ui(){return new TypeError("You cannot resolve a promise with itself")}function fi(){return new TypeError("A promises callback cannot return that same promise.")}function ei(n){try{return n.then}catch(n){return k.error=n,k}}function oi(n,t,i,r){try{n.call(t,i,r)}catch(n){return n}}function si(n,t,i){s(function(n){var r=!1,f=oi(i,t,function(i){r||(r=!0,t!==i?v(n,i):e(n,i))},function(t){r||(r=!0,u(n,t))},"Settle: "+(n._label||" unknown promise"));!r&&f&&(r=!0,u(n,f))},n)}function hi(n,t){t._state===w?e(n,t._result):t._state===c?u(n,t._result):b(t,void 0,function(t){v(n,t)},function(t){u(n,t)})}function ci(n,t){if(t.constructor===n.constructor)hi(n,t);else{var i=ei(t);i===k?u(n,k.error):void 0===i?e(n,t):d(i)?si(n,t,i):e(n,t)}}function v(n,t){n===t?u(n,ui()):wt(t)?ci(n,t):e(n,t)}function li(n){n._onerror&&n._onerror(n._result);g(n)}function e(n,t){n._state===h&&(n._result=t,n._state=w,0!==n._subscribers.length&&s(g,n))}function u(n,t){n._state===h&&(n._state=c,n._result=t,s(li,n))}function b(n,t,i,r){var u=n._subscribers,f=u.length;n._onerror=null;u[f]=t;u[f+w]=i;u[f+c]=r;0===f&&n._state&&s(g,n)}function g(n){var i=n._subscribers,e=n._state,r,u,f,t;if(0!==i.length){for(f=n._result,t=0;t<i.length;t+=3)r=i[t],u=i[t+e],r?ft(e,r,u,f):u(f);n._subscribers.length=0}}function ut(){this.error=null}function ai(n,t){try{return n(t)}catch(n){return tt.error=n,tt}}function ft(n,t,i,r){var f,s,o,l,a=d(i);if(a){if(f=ai(i,r),f===tt?(l=!0,s=f.error,f=null):o=!0,t===f)return void u(t,fi())}else f=r,o=!0;t._state!==h||(a&&o?v(t,f):l?u(t,s):n===w?e(t,f):n===c&&u(t,f))}function vi(n,t){try{t(function(t){v(n,t)},function(t){u(n,t)})}catch(t){u(n,t)}}function o(n,t){var i=this;i._instanceConstructor=n;i.promise=new n(a);i._validateInput(t)?(i._input=t,i.length=t.length,i._remaining=t.length,i._init(),0===i.length?e(i.promise,i._result):(i.length=i.length||0,i._enumerate(),0===i._remaining&&e(i.promise,i._result))):u(i.promise,i._validationError())}function yi(n){return new vt(this,n).promise}function pi(n){function e(n){v(t,n)}function o(n){u(t,n)}var r=this,t=new r(a),f,i;if(!ht(n))return u(t,new TypeError("You must pass an array to race.")),t;for(f=n.length,i=0;t._state===h&&i<f;i++)b(r.resolve(n[i]),void 0,e,o);return t}function wi(n){var i=this,t;return n&&"object"==typeof n&&n.constructor===i?n:(t=new i(a),v(t,n),t)}function bi(n){var i=this,t=new i(a);return u(t,n),t}function ki(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");}function di(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");}function f(n){this._id=er++;this._state=void 0;this._result=void 0;this._subscribers=[];a!==n&&(d(n)||ki(),this instanceof f||di(),vi(this,n))}function gi(){var n,t;if("undefined"!=typeof global)n=global;else if("undefined"!=typeof self)n=self;else try{n=Function("return this")()}catch(n){throw new Error("polyfill failed because global object is unavailable in this environment");}t=n.Promise;t&&"[object Promise]"===Object.prototype.toString.call(t.resolve())&&!t.cast||(n.Promise=yt)}var et,vt,pt,it;et=Array.isArray?Array.isArray:function(n){return"[object Array]"===Object.prototype.toString.call(n)};var ot,nt,st,ht=et,y=0,s=({}.toString,function(n,t){p[y]=n;p[y+1]=t;y+=2;2===y&&(nt?nt(l):st())}),ct="undefined"!=typeof window?window:void 0,lt=ct||{},at=lt.MutationObserver||lt.WebKitMutationObserver,nr="undefined"!=typeof process&&"[object process]"==={}.toString.call(process),tr="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,p=new Array(1e3);st=nr?gt():at?ti():tr?ii():void 0===ct?ri():rt();var h=void 0,w=1,c=2,k=new ut,tt=new ut;o.prototype._validateInput=function(n){return ht(n)};o.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")};o.prototype._init=function(){this._result=new Array(this.length)};vt=o;o.prototype._enumerate=function(){for(var n=this,i=n.length,r=n.promise,u=n._input,t=0;r._state===h&&t<i;t++)n._eachEntry(u[t],t)};o.prototype._eachEntry=function(n,t){var i=this,r=i._instanceConstructor;bt(n)?n.constructor===r&&n._state!==h?(n._onerror=null,i._settledAt(n._state,t,n._result)):i._willSettleAt(r.resolve(n),t):(i._remaining--,i._result[t]=n)};o.prototype._settledAt=function(n,t,i){var r=this,f=r.promise;f._state===h&&(r._remaining--,n===c?u(f,i):r._result[t]=i);0===r._remaining&&e(f,r._result)};o.prototype._willSettleAt=function(n,t){var i=this;b(n,void 0,function(n){i._settledAt(w,t,n)},function(n){i._settledAt(c,t,n)})};var ir=yi,rr=pi,ur=wi,fr=bi,er=0,yt=f;f.all=ir;f.race=rr;f.resolve=ur;f.reject=fr;f._setScheduler=kt;f._setAsap=dt;f._asap=s;f.prototype={constructor:f,then:function(n,t){var u=this,i=u._state,r,f,e;return i===w&&!n||i===c&&!t?this:(r=new this.constructor(a),f=u._result,i?(e=arguments[i-1],s(function(){ft(i,r,e,f)})):b(u,r,n,t),r)},"catch":function(n){return this.then(null,n)}};pt=gi;it={Promise:yt,polyfill:pt};i(6).amd?(r=function(){return it}.call(t,i,t,n),!(void 0!==r&&(n.exports=r))):"undefined"!=typeof n&&n.exports&&(n.exports=it)}).call(this)}).call(t,i(4)(n))},function(n){n.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children=[],n.webpackPolyfill=1),n}},function(){},function(n){n.exports=function(){throw new Error("define cannot be used indirect");}},function(n){n.exports=window},function(n,t,i){function o(n){return n=n||r,n.devicePixelRatio?n.devicePixelRatio>=1.5:!!n.matchMedia&&n.matchMedia("only screen and (min-resolution: 144dpi)").matches}function f(n){return n=n||u,/(Trident|MSIE|Edge[\/ ]?\d)/.test(n)}function s(n){return n=n||u,/MSIE 9/.test(n)}function h(n){return n=n||u,/MSIE 10/.test(n)}function c(n){return n=n||u,/(iPad|iPhone|iPod)/.test(n)}function l(n){return n=n||u,/^Mozilla\/5\.0 \(Linux; (U; )?Android/.test(n)}function a(n,t){return n=n||r,t=t||u,n.postMessage&&!(f(t)&&n.opener)}function v(n,t,i){return n=n||r,t=t||e,i=i||u,"ontouchstart"in n||/Opera Mini/.test(i)||t.msMaxTouchPoints>0}function y(){var n=d.body.style;return void 0!==n.transition||void 0!==n.webkitTransition||void 0!==n.mozTransition||void 0!==n.oTransition||void 0!==n.msTransition}function p(){return!!r.IntersectionObserver}function w(){return!!(r.Promise&&r.Promise.resolve&&r.Promise.reject&&r.Promise.all&&r.Promise.race&&function(){var n;return new r.Promise(function(t){n=t}),g.isType("function",n)}())}function b(){return r.performance&&r.performance.getEntriesByType}function k(){try{return r.localStorage.setItem("local_storage_support_test","true"),"undefined"!=typeof r.localStorage}catch(n){return!1}}var d=i(9),e=(i(10),i(13)),r=i(7),g=i(12),u=e.userAgent;n.exports={retina:o,anyIE:f,ie9:s,ie10:h,ios:c,android:l,canPostMessage:a,touch:v,cssTransitions:y,hasPromiseSupport:w,hasIntersectionObserverSupport:p,hasPerformanceInformation:b,hasLocalStorageSupport:k}},function(n){n.exports=document},function(n,t,i){function s(){e("info",f.toRealArray(arguments))}function a(){e("warn",f.toRealArray(arguments))}function h(){e("error",f.toRealArray(arguments))}function v(n){l&&(o[n]=c())}function y(n){var t;l&&(o[n]?(t=c(),s("_twitter",n,t-o[n])):h("timeEnd() called before time() for id: ",n))}function c(){return r.performance&&+r.performance.now()||+new Date}function e(n,t){if(r[u]&&r[u][n])switch(t.length){case 1:r[u][n](t[0]);break;case 2:r[u][n](t[0],t[1]);break;case 3:r[u][n](t[0],t[1],t[2]);break;case 4:r[u][n](t[0],t[1],t[2],t[3]);break;case 5:r[u][n](t[0],t[1],t[2],t[3],t[4]);break;default:0!==t.length&&r[u].warn&&r[u].warn("too many params passed to logger."+n)}}var p=i(11),r=i(7),f=i(12),u="console",o={},l=f.contains(p.href,"tw_debug=true");n.exports={info:s,warn:a,error:h,time:v,timeEnd:y}},function(n){n.exports=location},function(n,t,i){function h(n){return s(arguments).slice(1).forEach(function(t){r(t,function(t,i){n[t]=i})}),n}function f(n){return r(n,function(t,i){u(i)&&(f(i),o(i)&&delete n[t]);void 0!==i&&null!==i&&""!==i||delete n[t]}),n}function r(n,t){var i;for(i in n)n.hasOwnProperty&&!n.hasOwnProperty(i)||t(i,n[i]);return n}function e(n){return{}.toString.call(n).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function c(n,t){return n==e(t)}function u(n){return n===Object(n)}function o(n){var t;if(!u(n))return!1;if(Object.keys)return!Object.keys(n).length;for(t in n)if(n.hasOwnProperty(t))return!1;return!0}function l(n,t){v.setTimeout(function(){n.call(t||null)},0)}function s(n){return n?Array.prototype.slice.call(n):[]}function a(n,t){return!(!n||!n.indexOf)&&n.indexOf(t)>-1}var v=i(7);n.exports={aug:h,async:l,compact:f,contains:a,forIn:r,isObject:u,isEmptyObject:o,toType:e,isType:c,toRealArray:s}},function(n){n.exports=navigator},function(n,t,i){function u(n,t,i){t.ready=r(n.then,n);i&&Array.isArray(t[i])&&(t[i].forEach(r(n.then,n)),delete t[i])}var r=i(15);n.exports={exposeReadyPromise:u}},function(n,t,i){var r=i(12);n.exports=function(n,t){var i=Array.prototype.slice.call(arguments,2);return function(){var u=r.toRealArray(arguments);return n.apply(t,i.concat(u))}}},function(n,t,i){var r=i(17);n.exports=new r("twttr")},function(n,t,i){function u(n){return r.isType("string",n)?n.split("."):r.isType("array",n)?n:[]}function e(n,t){var f=u(t),i=f.slice(0,-1);return i.reduce(function(n,t,u){if(n[t]=n[t]||{},!r.isObject(n[t]))throw new Error(i.slice(0,u+1).join(".")+" is already defined with a value.");return n[t]},n)}function f(n,t){t=t||o;t[n]=t[n]||{};Object.defineProperty(this,"base",{value:t[n]});Object.defineProperty(this,"name",{value:n})}var o=i(7),r=i(12);r.aug(f.prototype,{get:function(n){var t=u(n);return t.reduce(function(n,t){if(r.isObject(n))return n[t]},this.base)},set:function(n,t,i){var o=u(n),r=e(this.base,n),f=o.slice(-1);return i&&f in r?r[f]:r[f]=t},init:function(n,t){return this.set(n,t,!0)},unset:function(n){var t=u(n),i=this.get(t.slice(0,-1));i&&delete i[t.slice(-1)]},aug:function(n){var t=this.get(n),i=r.toRealArray(arguments).slice(1);if(t="undefined"!=typeof t?t:{},i.unshift(t),!i.every(r.isObject))throw new Error("Cannot augment non-object.");return this.set(n,r.aug.apply(null,i))},call:function(n){var t=this.get(n),i=r.toRealArray(arguments).slice(1);if(!r.isType("function",t))throw new Error("Function "+n+"does not exist.");return t.apply(null,i)},fullPath:function(n){var t=u(n);return t.unshift(this.name),t.join(".")}});n.exports=f},function(n,t,i){var r=i(17);n.exports=new r("__twttr")},function(n,t,i){function r(n){var t=e.href,i="original_referer="+t;return[n,i].join(n.indexOf("?")==-1?"?":"&")}function u(n){var i,t;n.altKey||n.metaKey||n.shiftKey||(i=s.closest(function(n){return"A"===n.tagName||"AREA"===n.tagName},n.target),i&&c.isIntentURL(i.href)&&(t=r(i.href),t=t.replace(/^http[:]/,"https:"),t=t.replace(/^\/\//,"https://"),h.open(t,i),o.preventDefault(n)))}function f(n){n.addEventListener("click",u,!1)}var e=i(11),o=i(20),s=i(22),h=i(24),c=i(25);n.exports={attachTo:f}},function(n,t,i){function o(n){var t=n.getAttribute("data-twitter-event-id");return t?t:(n.setAttribute("data-twitter-event-id",++h),h)}function c(n,t,i){for(var r=0,u=n&&n.length||0,r=0;r<u;r++)if(n[r].call(t,i,t),i.ceaseImmediately)return!1}function f(n,t,i){for(var r=i||n.target||n.srcElement,o=k.list(r).map(function(n){return"."+n}),e=o.concat(r.tagName),u=0,s=e.length;u<s;u++)if(c(t[e[u]],r,n)===!1)return;n.cease||r!==this&&f.call(this,n,t,r.parentElement||r.parentNode)}function l(n,t,i,r){function u(r){f.call(n,r,i[t])}a(n,u,t,r);n.addEventListener(t,u,!1)}function a(n,t,i,r){n.id&&(u[n.id]=u[n.id]||[],u[n.id].push({el:n,listener:t,type:i,rootId:r}))}function v(n){var t=u[n];t&&(t.forEach(function(n){n.el.removeEventListener(n.type,n.listener,!1);delete r[n.rootId]}),delete u[n])}function y(n,t,i,u){var f=o(n);r[f]=r[f]||{};r[f][t]||(r[f][t]={},l(n,t,r[f],f));r[f][t][i]=r[f][t][i]||[];r[f][t][i].push(u)}function p(n,t,i){var u=o(t),e=r[u]&&r[u];f.call(t,{target:i},e[n])}function w(n){return e(n),s(n),!1}function s(n){n&&n.preventDefault?n.preventDefault():n.returnValue=!1}function e(n){n&&(n.cease=!0)&&n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function b(n){n&&(n.ceaseImmediately=!0,e(n),n.stopImmediatePropagation())}var k=i(21),r={},h=-1,u={};n.exports={stop:w,stopPropagation:e,stopImmediatePropagation:b,preventDefault:s,delegate:y,simulate:p,removeDelegatesForWidget:v}},function(n,t,i){function r(n){return new RegExp("\\b"+n+"\\b","g")}function u(n,t){return n.classList?void n.classList.add(t):void(r(t).test(n.className)||(n.className+=" "+t))}function f(n,t){return n.classList?void n.classList.remove(t):void(n.className=n.className.replace(r(t)," "))}function h(n,t,i){return void 0===i&&n.classList&&n.classList.toggle?n.classList.toggle(t,i):(i?u(n,t):f(n,t),i)}function c(n,t,i){return n.classList&&e(n,t)?(f(n,t),void u(n,i)):void(n.className=n.className.replace(r(t),i))}function e(n,t){return n.classList?n.classList.contains(t):s.contains(o(n),t)}function o(n){return s.toRealArray(n.classList?n.classList:n.className.match(l))}var s=i(12),l=/\b([\w-_]+)\b/g;n.exports={add:u,remove:f,replace:c,toggle:h,present:e,list:o}},function(n,t,i){function u(n){return function(t){return!!t.tagName&&e(t,n)}}function r(n,t,i){var e;if(t)return i=i||t&&t.ownerDocument,e=f.isType("function",n)?n:u(n),t===i?e(t)?t:void 0:e(t)?t:r(e,t.parentNode,i)}var f=i(12),e=i(23);n.exports={closest:r}},function(n,t,i){function f(n,t){if(u)return u.call(n,t)}var e=i(7),r=e.HTMLElement,u=r.prototype.matches||r.prototype.matchesSelector||r.prototype.webkitMatchesSelector||r.prototype.mozMatchesSelector||r.prototype.msMatchesSelector||r.prototype.oMatchesSelector;n.exports=f},function(n,t,i){function o(n,t){c.open(n,{},t)}function s(n,t){var i=l.decodeURL(t);switch(n){case"favorite":case"like":return{tweet_id:i.tweet_id};case"follow":return{screen_name:i.screen_name,user_id:i.user_id};case"retweet":return{source_tweet_id:i.tweet_id};default:return{}}}function h(n,t,i){var r=(u.intentType(n)||"").toLowerCase();u.isTwitterURL(n)&&(o(n,i),t&&f.trigger("click",{target:t,region:"intent",type:"click",data:{}}),t&&e[r]&&e[r].forEach(function(i){f.trigger(i,{target:t,region:"intent",type:i,data:s(r,n)})}))}function r(n){this.srcEl=[];this.element=n}var u=i(25),c=i(28),f=i(31),l=i(26),e={favorite:["favorite","like"],follow:["follow"],like:["favorite","like"],retweet:["retweet"],tweet:["tweet"]};r.open=h;n.exports=r},function(n,t,i){function r(n){return"string"==typeof n&&h.test(n)&&RegExp.$1.length<=20}function u(n){if(r(n))return RegExp.$1}function f(n,t){var i=s.decodeURL(n);if(t=t||!1,i.screen_name=u(n),i.screen_name)return s.url("https://twitter.com/intent/"+(t?"follow":"user"),i)}function l(n){return f(n,!0)}function e(n){return"string"==typeof n&&ht.test(n)}function a(n,t){if(t=void 0===t||t,e(n))return(t?"#":"")+RegExp.$1}function v(n){return pt.test(n)||wt.test(n)}function o(n){return"string"==typeof n&&et.test(n)}function y(n){return o(n)&&RegExp.$1}function p(n){return ot.test(n)}function w(n){return st.test(n)}function b(n){return c.test(n)}function k(n){return kt.test(n)}function d(n){return dt.test(n)}function g(n){return lt.test(n)&&RegExp.$1}function nt(n){return ct.test(n)&&RegExp.$1}function tt(n){return c.test(n)&&RegExp.$1}function it(n){return at.test(n)&&RegExp.$1}function rt(n){return!!vt.test(n)&&{ownerScreenName:RegExp.$1,slug:RegExp.$2}}function ut(n){return!!yt.test(n)&&{ownerScreenName:RegExp.$1,slug:RegExp.$2}}function ft(n){return bt.test(n)&&RegExp.$1}var s=i(26),h=/(?:^|(?:https?:)?\/\/(?:www\.)?twitter\.com(?::\d+)?(?:\/intent\/(?:follow|user)\/?\?screen_name=|(?:\/#!)?\/))@?([\w]+)(?:\?|&|$)/i,et=/(?:^|(?:https?:)?\/\/(?:www\.)?twitter\.com(?::\d+)?\/(?:#!\/)?[\w_]+\/status(?:es)?\/)(\d+)/i,ot=/^http(s?):\/\/(\w+\.)*twitter\.com([:\/]|$)/i,st=/^http(s?):\/\/pbs\.twimg\.com\//,ht=/^#?([^.,<>!\s\/#\-()'"]+)$/,c=/twitter\.com(?::\d{2,4})?\/intent\/(\w+)/,ct=/^https?:\/\/(?:www\.)?twitter\.com\/\w+\/timelines\/(\d+)/i,lt=/^https?:\/\/(?:www\.)?twitter\.com\/i\/moments\/(\d+)/i,at=/^https?:\/\/(?:www\.)?twitter\.com\/(\w+)\/(?:likes|favorites)/i,vt=/^https?:\/\/(?:www\.)?twitter\.com\/(\w+)\/lists\/([\w-]+)/i,yt=/^https?:\/\/(?:www\.)?twitter\.com\/(\w+)\/([\w-]+)/i,pt=/^https?:\/\/(?:www\.)?twitter\.com\/hashtag\/([\w-]+)/i,wt=/^https?:\/\/(?:www\.)?twitter\.com\/search/i,bt=/^https?:\/\/(?:www\.)?twitter\.com\/i\/live\/(\d+)/i,kt=/^https?:\/\/syndication\.twitter\.com\/settings/i,dt=/^https?:\/\/(localhost|platform)\.twitter\.com(?::\d+)?\/widgets\/widget_iframe\.(.+)/i;n.exports={isHashTag:e,hashTag:a,isSearchUrl:v,isScreenName:r,screenName:u,isStatus:o,status:y,intentForProfileURL:f,intentForFollowURL:l,isTwitterURL:p,isTwimgURL:w,isIntentURL:b,isSettingsURL:k,isWidgetIframeURL:d,regexen:{profile:h},momentId:g,collectionId:nt,intentType:tt,likesScreenName:it,listScreenNameAndSlug:rt,listLegacyScreenNameAndSlug:ut,eventId:ft}},function(n,t,i){function f(n){return encodeURIComponent(n).replace(/\+/g,"%2B").replace(/'/g,"%27")}function e(n){return decodeURIComponent(n)}function r(n){var t=[];return u.forIn(n,function(n,i){var r=f(n);u.isType("array",i)||(i=[i]);i.forEach(function(n){c.hasValue(n)&&t.push(r+"="+f(n))})}),t.sort().join("&")}function o(n){var i,t={};return n?(i=n.split("&"),i.forEach(function(n){var r=n.split("="),i=e(r[0]),f=e(r[1]);if(2==r.length)return u.isType("array",t[i])?void t[i].push(f):i in t?(t[i]=[t[i]],void t[i].push(f)):void(t[i]=f)}),t):{}}function s(n,t){var i=r(t);return i.length>0?u.contains(n,"?")?n+"&"+r(t):n+"?"+r(t):n}function h(n){var t=n&&n.split("?");return 2==t.length?o(t[1]):{}}var c=i(27),u=i(12);n.exports={url:s,decodeURL:h,decode:o,encode:r,encodePart:f,decodePart:e}},function(n,t,i){function r(n){return void 0!==n&&null!==n&&""!==n}function e(n){return u(n)&&n%1==0}function c(n){return"string"===f.toType(n)}function o(n){return u(n)&&!e(n)}function u(n){return r(n)&&!isNaN(n)}function l(n){return r(n)&&"array"==f.toType(n)}function s(n){return f.contains(b,n)}function h(n){return f.contains(w,n)}function a(n){return!!r(n)&&(!!h(n)||!s(n)&&!!n)}function v(n){if(u(n))return n}function y(n){if(o(n))return n}function p(n){if(e(n))return parseInt(n,10)}var f=i(12),w=[!0,1,"1","on","ON","true","TRUE","yes","YES"],b=[!1,0,"0","off","OFF","false","FALSE","no","NO"];n.exports={hasValue:r,isInt:e,isFloat:o,isNumber:u,isString:c,isArray:l,isTruthValue:h,isFalseValue:s,asInt:p,asFloat:y,asNumber:v,asBoolean:a}},function(n,t,i){function s(n){var t=[];return p.forIn(n,function(n,i){t.push(n+"="+i)}),t.join(",")}function h(){return w+y.generate()}function f(n,t){function i(n){return Math.round(n/2)}return n>t?{coordinate:0,size:t}:{coordinate:i(t)-i(n),size:n}}function r(n,t,i){var r,u;t=e.parse(t);i=i||{};r=f(t.width,i.width||b);t.left=r.coordinate;t.width=r.size;u=f(t.height,i.height||k);t.top=u.coordinate;t.height=u.size;this.win=n;this.features=s(t)}var e,u=i(7),c=i(29),l=i(20),a=i(22),o=i(8),v=i(25),y=i(30),p=i(12),w="intent_",b=u.screen.width,k=u.screen.height;e=(new c).defaults({width:550,height:520,personalbar:"0",toolbar:"0",location:"1",scrollbars:"1",resizable:"1"});r.prototype.open=function(n,t){var i=t&&"click"==t.type&&a.closest("a",t.target),r=t&&(t.altKey||t.metaKey||t.shiftKey),u=i&&(o.ios()||o.android());if(v.isTwitterURL(n))return r||u?this:(this.name=h(),this.popup=this.win.open(n,this.name,this.features),t&&l.preventDefault(t),this)};r.open=function(n,t,i){var f=new r(u,t);return f.open(n,i)};n.exports=r},function(n,t,i){function f(n){return function(t){return e.hasValue(t[n])}}function r(){this.assertions=[];this._defaults={}}var e=i(27),u=i(12);r.prototype.assert=function(n,t){return this.assertions.push({fn:n,msg:t||"assertion failed"}),this};r.prototype.defaults=function(n){return this._defaults=n||this._defaults,this};r.prototype.require=function(n){var t=this;return n=Array.isArray(n)?n:u.toRealArray(arguments),n.forEach(function(n){t.assert(f(n),"required: "+n)}),this};r.prototype.parse=function(n){var t,i;if(t=u.aug({},this._defaults,n||{}),i=this.assertions.reduce(function(n,i){return i.fn(t)||n.push(i.msg),n},[]),i.length>0)throw new Error(i.join("\n"));return t};n.exports=r},function(n){function i(){return t+String(+new Date)+Math.floor(1e5*Math.random())+u++}function r(){return t+String(f++)}var t="i",u=0,f=0;n.exports={generate:i,deterministic:r}},function(n,t,i){function r(){return u.get("events")||{}}var u=i(16),f=i(32),e=i(12);n.exports=e.aug(r(),f.Emitter)},function(n,t,i){function f(){return r.aug(function(){},u)}var r=i(12),e=i(15),u={bind:function(n,t){return this._handlers=this._handlers||{},this._handlers[n]=this._handlers[n]||[],this._handlers[n].push(t)},unbind:function(n,t){var i;this._handlers&&this._handlers[n]&&(t?(i=this._handlers[n].indexOf(t),i>=0&&this._handlers[n].splice(i,1)):this._handlers[n]=[])},trigger:function(n,t){var i=this._handlers&&this._handlers[n];t=t||{};t.type=n;i&&i.forEach(function(n){r.async(e(n,this,t))})}};n.exports={Emitter:u,makeEmitter:f}},function(n,t,i){function c(n){return n.reduce(function(n,t){return n.concat(d.reduce(function(n,i){return n.concat(i(t))},[]))},[])}function u(){var n=y.val("widgets:autoload")||!0;return!s.isFalseValue(n)&&(s.isTruthValue(n)?r.body:r.querySelectorAll(n))}function f(n){var t;return n=n||r.body,n=n.length?b.toRealArray(n):[n],o.pause(),t=e.allResolved(c(n).map(function(n){return v.addWidget(n)})).then(function(n){w.trigger("loaded",{widgets:n});h.emitter.trigger(h.ALL_WIDGETS_RENDERED,{widgets:n})}),e.always(t,function(){o.resume()}),t}function l(){var n=u();return k.load(),n===!1?a.resolve():(p.set("widgets.loaded",!0),f(n))}var r=i(9),a=i(2),e=i(34),v=i(35),y=i(42),p=i(18),o=i(43),w=i(31),s=i(27),b=i(12),k=i(74),d=i(81),h=i(242);n.exports={load:f,loadPage:l,_getPageLoadTarget:u}},function(n,t,i){function f(n,t){return n.then(t,t)}function e(n){var t;return n=n||[],t=n.length,n=n.filter(u),t?t!==n.length?r.reject("non-Promise passed to .some"):new r(function(t,i){function u(){r+=1;r===n.length&&i()}var r=0;n.forEach(function(n){n.then(t,u)})}):r.reject("no promises passed to .some")}function o(n){var t;return void 0===n?r.reject(new Error("undefined is not an object")):Array.isArray(n)?(t=n.length,t?new r(function(i,r){function e(){s+=1;s===t&&(0===f.length?r():i(f))}function o(n){f.push(n);e()}var s=0,f=[];n.forEach(function(n){u(n)?n.then(o,e):o(n)})}):r.resolve([])):r.reject(new Error("Type error"))}function s(n){function t(){}return r.all((n||[]).map(function(n){return f(n,t)}))}function u(n){return n instanceof r}function h(n,t){var i=new c;return setTimeout(function(){i.reject(new Error("Promise timed out"))},t),n.then(function(n){i.resolve(n)},function(n){i.reject(n)}),i.promise}var r=i(2),c=i(1);n.exports={always:f,allResolved:o,some:e,isPromise:u,allSettled:s,timeout:h}},function(n,t,i){function u(n){return n.reduce(function(n,t){return n[t.className]=n[t.className]||[],n[t.className].push(t),n},{})}function f(n){var t=n.map(o.fromRawTask),i=u(t);l.forIn(i,function(n,t){c.allSettled(t.map(function(n){return n.initialize()})).then(function(){t.forEach(function(n){h.all([n.hydrate(),n.insertIntoDom()]).then(r(n.render,n)).then(r(n.success,n),r(n.fail,n))})})})}function e(n){return a.add(n)}var o=i(36),s=i(40),h=i(2),c=i(34),r=i(15),l=i(12),a=new s(f);n.exports={addWidget:e}},function(n,t,i){function o(n){var t=n.srcEl||n.targetEl;return t.ownerDocument.defaultView}function r(n,t){this._widget=null;this._sandbox=null;this._hydrated=!1;this._insertedIntoDom=!1;this._Sandbox=n.Sandbox;this._factory=n.factory;this._widgetParams=n.parameters;this._resolve=t;this._className=n.className;this._renderedClassName=n.className+"-rendered";this._errorClassName=n.className+"-error";this._srcEl=n.srcEl;this._targetGlobal=o(n);this._insertionStrategy=function(t){var i=n.srcEl,r=n.targetEl;i?r.insertBefore(t,i):r.appendChild(t)}}var s=i(21),h=i(37),f=i(31),e=i(39),u=i(2),c=i(34);r.fromRawTask=function(n){return new r(n.input,n.taskDoneDeferred.resolve)};r.prototype.initialize=function(){var n=this,t=new this._Sandbox(this._targetGlobal);return this._factory(this._widgetParams,t).then(function(i){return n._widget=i,n._sandbox=t,i})};r.prototype.insertIntoDom=function(){var n=this;return this._widget?this._sandbox.insert(this._widget.id,{"class":[this._className,this._renderedClassName].join(" ")},null,this._insertionStrategy).then(function(){n._insertedIntoDom=!0}):u.reject(new Error("cannot insert widget into DOM before it is initialized"))};r.prototype.hydrate=function(){var n=this;return this._widget?this._widget.hydrate().then(function(){n._hydrated=!0}):u.reject(new Error("cannot hydrate widget before it is initialized"))};r.prototype.render=function(){function i(){n._sandbox.onResize(function(){return n._widget.resize().then(function(){f.trigger("resize",{target:n._sandbox.sandboxEl})})})}function r(){return e(n._srcEl).then(function(){return n._sandbox.sandboxEl})}function t(t){return e(n._sandbox.sandboxEl).then(function(){return u.reject(t)})}var n=this;return this._hydrated?this._insertedIntoDom?n._widget.render(n._sandbox).then(function(){return i(),n._widget.show()}).then(r,t):t(new Error("cannot render widget before DOM insertion")):t(new Error("cannot render widget before hydration"))};r.prototype.fail=function(){var n=this;return this._srcEl?c.always(h.write(function(){s.add(n._srcEl,n._errorClassName)}),function(){f.trigger("rendered",{target:n._srcEl});n._resolve(n._srcEl)}):(n._resolve(),u.resolve())};r.prototype.success=function(){f.trigger("rendered",{target:this._sandbox.sandboxEl});this._resolve(this._sandbox.sandboxEl)};n.exports=r},function(n,t,i){function r(n,t){return function(){try{t.resolve(n.call(this))}catch(n){t.reject(n)}}}function e(n,t){n.call(t)}function o(n,t){var i=new f;return u.read(r(n,i),t),i.promise}function s(n,t){var i=new f;return u.write(r(n,i),t),i.promise}function h(n,t,i){var e=new f;return c.isType("function",n)&&(i=t,t=n,n=1),u.defer(n,r(t,e),i),e.promise}var u=i(38),f=i(1),c=i(12);n.exports={sync:e,read:o,write:s,defer:h}},function(n,t,i){var r;!function(){"use strict";function u(){this.frames=[];this.lastId=0;this.raf=e;this.batch={hash:{},read:[],write:[],mode:null}}var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(n){return window.setTimeout(n,1e3/60)},f;u.prototype.read=function(n,t){var i=this.add("read",n,t),r=i.id,u;return this.batch.read.push(i.id),u="reading"===this.batch.mode||this.batch.scheduled,u?r:(this.scheduleBatch(),r)};u.prototype.write=function(n,t){var i=this.add("write",n,t),r=this.batch.mode,u=i.id,f;return this.batch.write.push(i.id),f="writing"===r||"reading"===r||this.batch.scheduled,f?u:(this.scheduleBatch(),u)};u.prototype.defer=function(n,t,i){"function"==typeof n&&(i=t,t=n,n=1);var r=this,u=n-1;return this.schedule(u,function(){r.run({fn:t,ctx:i})})};u.prototype.clear=function(n){var t,i,r;if("function"==typeof n)return this.clearFrame(n);n=Number(n);t=this.batch.hash[n];t&&(i=this.batch[t.type],r=i.indexOf(n),delete this.batch.hash[n],~r&&i.splice(r,1))};u.prototype.clearFrame=function(n){var t=this.frames.indexOf(n);~t&&this.frames.splice(t,1)};u.prototype.scheduleBatch=function(){var n=this;this.schedule(0,function(){n.batch.scheduled=!1;n.runBatch()});this.batch.scheduled=!0};u.prototype.uniqueId=function(){return++this.lastId};u.prototype.flush=function(n){for(var t;t=n.shift();)this.run(this.batch.hash[t])};u.prototype.runBatch=function(){try{this.batch.mode="reading";this.flush(this.batch.read);this.batch.mode="writing";this.flush(this.batch.write);this.batch.mode=null}catch(n){throw this.runBatch(),n;}};u.prototype.add=function(n,t,i){var r=this.uniqueId();return this.batch.hash[r]={id:r,fn:t,ctx:i,type:n}};u.prototype.run=function(n){var t=n.ctx||this,i=n.fn;if(delete this.batch.hash[n.id],!this.onError)return i.call(t);try{i.call(t)}catch(n){this.onError(n)}};u.prototype.loop=function(){function n(){var i=t.frames.shift();t.frames.length?r(n):t.looping=!1;i&&i()}var i,t=this,r=this.raf,u=!1;this.looping||(i=setTimeout(function(){u=!0;n()},500),r(function(){u||(clearTimeout(i),n())}),this.looping=!0)};u.prototype.schedule=function(n,t){return this.frames[n]?this.schedule(n+1,t):(this.loop(),this.frames[n]=t)};f=new u;"undefined"!=typeof n&&n.exports?n.exports=f:(r=function(){return f}.call(t,i,t,n),!(void 0!==r&&(n.exports=r)))}()},function(n,t,i){function r(n){return u.write(function(){n&&n.parentNode&&n.parentNode.removeChild(n)})}var u=i(37);n.exports=r},function(n,t,i){function r(n){this._inputsQueue=[];this._task=n;this._hasFlushBeenScheduled=!1}var u=i(1),f=i(41),e=i(15);r.prototype.add=function(n){var t=new u;return this._inputsQueue.push({input:n,taskDoneDeferred:t}),this._hasFlushBeenScheduled||(this._hasFlushBeenScheduled=!0,f(e(this._flush,this))),t.promise};r.prototype._flush=function(){try{this._task.call(null,this._inputsQueue)}catch(n){this._inputsQueue.forEach(function(t){t.taskDoneDeferred.reject(n)})}this._inputsQueue=[];this._hasFlushBeenScheduled=!1};n.exports=r},function(n,t,i){var r=i(3).Promise;n.exports=r._asap},function(n,t,i){function u(n){var i,t,u,f=0;for(r={},n=n||e,i=n.getElementsByTagName("meta");i[f];f++){if(t=i[f],/^twitter:/.test(t.getAttribute("name")))u=t.getAttribute("name").replace(/^twitter:/,"");else{if(!/^twitter:/.test(t.getAttribute("property")))continue;u=t.getAttribute("property").replace(/^twitter:/,"")}r[u]=t.getAttribute("content")||t.getAttribute("value")}}function f(n){return r[n]}var r,e=i(9);u();n.exports={init:u,val:f}},function(n,t,i){function r(n){n.forEach(function(n){var t=n.input.namespace,i=n.input.data,r=n.input.offsite,u=n.input.version;a.clientEvent(t,i,r,u);n.taskDoneDeferred.resolve()})}function e(n){function t(){n.forEach(function(n){n.taskDoneDeferred.resolve()})}function i(){n.forEach(function(n){n.taskDoneDeferred.reject()})}u.init();n.forEach(function(n){var t=n.input.namespace,i=n.input.data,r=n.input.offsite,f=n.input.version;u.clientEvent(t,i,r,f)});u.flush().then(t,i)}function o(n){var u,t,i;if(0!==n.length){if(1===n.length)return r(n);u=l(n,function(n){return v.noticeSeen(n.input.namespace)});t=u.true;i=u.false;t&&t.length>0&&r(t.slice(0,1));i&&(1===i.length?r:e)(i)}}function s(n,t,i,r){return f.add({namespace:n,data:t,offsite:i,version:r})}function h(){f.pause()}function c(){f.resume()}var l=i(44),u=i(45),a=i(72),v=i(51),y=i(73),f=new y(o);n.exports={scribe:s,pause:h,resume:c}},function(n){function t(n,t){return n.reduce(function(n,i){var r=t(i);return n[r]=n[r]||[],n[r].push(i),n},{})}n.exports=t},function(n,t,i){function b(){function n(n){it.body.appendChild(n)}return w?e.promise:(r=new ot(rt),r.insert("rufous-sandbox",null,{display:"none"},n).then(function(){r.setTitle("Twitter analytics iframe");u=c();o=l();e.resolve([u,o])}),w=!0,e.promise)}function k(n,t){var e,i,o;s.isObject(n)&&s.isObject(t)&&(o=f.flattenClientEventPayload(n,t),e=u.firstChild,e.value=+(+e.value||o.dnt||0),i=r.createElement("input"),i.type="hidden",i.name="l",i.value=f.stringify(o),u.appendChild(i))}function d(n,t){var i=!s.isObject(n),r=!!t&&!s.isObject(t);return i||r}function g(n,t,i,r){d(n,t)||(v&&v(arguments),e.promise.then(function(){k(f.formatClientEventNamespace(n),f.formatClientEventData(t,i,r))}))}function nt(){return e.promise.then(function(){var n;return u.children.length<=2?a.reject():(n=a.all([r.doc.body.appendChild(u),r.doc.body.appendChild(o)]).then(function(n){var t=n[0],i=n[1];return i.addEventListener("load",function(){tt(t,i)()}),t.submit(),n}),u=c(),o=l(),n)})}function tt(n,t){return function(){var i=n.parentNode;i&&(i.removeChild(n),i.removeChild(t))}}function c(){var n=r.createElement("form"),t=r.createElement("input"),i=r.createElement("input");return h++,n.action=f.CLIENT_EVENT_ENDPOINT,n.method="POST",n.target=p+h,n.id=ht+h,t.type="hidden",t.name="dnt",t.value=ft.enabled(),i.type="hidden",i.name="tfw_redirect",i.value=f.RUFOUS_REDIRECT,n.appendChild(t),n.appendChild(i),n}function l(){var n=p+h;return ut({id:n,name:n,width:0,height:0,border:0},{display:"none"},r.doc)}var u,o,r,it=i(9),rt=i(7),ut=i(46),ft=i(47),et=i(1),a=i(2),f=i(51),s=i(12),ot=i(54),st=i(18),v=st.get("scribeCallback"),y=Math.floor(1e3*Math.random())+"_",p="rufous-frame-"+y+"-",ht="rufous-form-"+y+"-",h=0,w=!1,e=new et;n.exports={clientEvent:g,flush:nt,init:b}},function(n,t,i){var u=i(9),r=i(12);n.exports=function(n,t,i){var f;if(i=i||u,n=n||{},t=t||{},n.name){try{f=i.createElement('<iframe name="'+n.name+'"><\/iframe>')}catch(t){f=i.createElement("iframe");f.name=n.name}delete n.name}else f=i.createElement("iframe");return n.id&&(f.id=n.id,delete n.id),f.allowtransparency="true",f.scrolling="no",f.setAttribute("frameBorder",0),f.setAttribute("allowTransparency",!0),r.forIn(n,function(n,t){f.setAttribute(n,t)}),r.forIn(t,function(n,t){f.style[n]=t}),f}},function(n,t,i){function e(){f=!0}function o(n,t){return!!f||!!c.asBoolean(l.val("dnt"))||!!r.isUrlSensitive(t||h.host)||!(!u.isFramed()||!r.isUrlSensitive(u.rootDocumentLocation()))||(n=a.test(n||s.referrer)&&RegExp.$1,!(!n||!r.isUrlSensitive(n)))}var s=i(9),h=i(11),u=i(48),r=i(50),c=i(27),l=i(42),f=!1,a=/https?:\/\/([^\/]+).*/i;n.exports={setOn:e,enabled:o}},function(n,t,i){function f(n){return n&&c.isType("string",n)&&(r=n),r}function e(){return u}function o(){return r!==u}var s=i(11),h=i(49),c=i(12),r=h.getCanonicalURL()||s.href,u=r;n.exports={isFramed:o,rootDocumentLocation:f,currentDocumentLocation:e}},function(n,t,i){function u(n,t){var r,i;return t=t||o,/^https?:\/\//.test(n)?n:/^\/\//.test(n)?t.protocol+n:(r=t.host+(t.port.length?":"+t.port:""),0!==n.indexOf("/")&&(i=t.pathname.split("/"),i.pop(),i.push(n),n="/"+i.join("/")),[t.protocol,"//",r,n].join(""))}function f(){for(var n,i=r.getElementsByTagName("link"),t=0;i[t];t++)if(n=i[t],"canonical"==n.rel)return u(n.href)}function e(){for(var i,n,u,e=r.getElementsByTagName("a"),o=r.getElementsByTagName("link"),h=[e,o],f=0,t=0;i=h[f];f++)for(t=0;n=i[t];t++)if(/\bme\b/.test(n.rel)&&(u=s.screenName(n.href)))return u}var r=i(9),o=i(11),s=i(25);n.exports={absolutize:u,getCanonicalURL:f,getScreenNameFromPage:e}},function(n,t,i){function u(n){return n in r?r[n]:r[n]=o.test(n)}function f(){return u(e.host)}var e=i(11),o=/^[^#?]*\.(gov|mil)(:\d+)?([#?].*)?$/i,r={};n.exports={isUrlSensitive:u,isHostPageSensitive:f}},function(n,t,i){function u(n,t){var i;return t=t||{},n&&n.nodeType===Node.ELEMENT_NODE?(i=n.getAttribute("data-scribe"),i&&i.split(" ").forEach(function(n){var r=n.trim().split(":"),i=r[0],u=r[1];i&&u&&!t[i]&&(t[i]=u)}),u(n.parentNode,t)):t}function f(n){return r.aug({client:"tfw"},n||{})}function o(n,t,i){var r=n&&n.widget_origin||y.referrer;return n=e("tfw_client_event",n,r),n.client_version=nt,n.format_version=void 0!==i?i:1,t||(n.widget_origin=r),n}function e(n,t,i){return t=t||{},r.aug({},t,{_category_:n,triggered_on:t.triggered_on||+new Date,dnt:w.enabled(i)})}function s(n,t){var i={};return t=t||{},t.association_namespace=f(n),i[it]=t,i}function h(n,t){return r.aug({},t,{event_namespace:n})}function c(n){return"notice"===n.element&&"seen"===n.action}function l(n){var t,i=Array.prototype.toJSON;return delete Array.prototype.toJSON,t=p.stringify(n),i&&(Array.prototype.toJSON=i),t}function a(n){var t=g.closest("[data-expanded-url]",n),i=t&&t.getAttribute("data-expanded-url");return i&&d.isTwitterURL(i)?"twitter_url":"url"}function v(n){var t,i,u,f,e,o;return n.item_ids&&n.item_ids.length>1?(t=Math.floor(n.item_ids.length/2),i=n.item_ids.slice(0,t),u={},f=n.item_ids.slice(t),e={},i.forEach(function(t){u[t]=n.item_details[t]}),f.forEach(function(t){e[t]=n.item_details[t]}),o=[r.aug({},n,{item_ids:i,item_details:u}),r.aug({},n,{item_ids:f,item_details:e})]):[n]}var y=i(9),p=i(52),w=i(47),r=i(12),b=i(53),k=i(18),d=i(25),g=i(22),nt=b.version,tt=k.get("clientEventEndpoint")||"https://syndication.twitter.com/i/jot",it=1;n.exports={extractTermsFromDOM:u,clickEventElement:a,flattenClientEventPayload:h,formatGenericEventData:e,formatClientEventData:o,formatClientEventNamespace:f,formatTweetAssociation:s,noticeSeen:c,splitLogEntry:v,stringify:l,AUDIENCE_ENDPOINT:"https://syndication.twitter.com/i/jot/syndication",CLIENT_EVENT_ENDPOINT:tt,RUFOUS_REDIRECT:"https://platform.twitter.com/jot.html"}},function(n,t,i){var u=i(7),r=u.JSON;n.exports={stringify:r.stringify||r.encode,parse:r.parse||r.decode}},function(n){n.exports={version:"55635d65:1524605671737"}},function(n,t,i){var r=i(55),u=i(64);n.exports=r.build([u])},function(n,t,i){var r=i(56),u=i(59),f=i(15);r=Object.create(r);r.build=f(r.build,null,u);n.exports=r},function(n,t,i){function r(){return o.toRealArray(arguments)}function u(n,t,i){var r=new n;return t=e(f(t||[])),t.forEach(function(n){n.call(null,r)}),r.build(i)}var f=i(57),e=i(58),o=i(12);n.exports={couple:r,build:u}},function(n,t,i){function r(n){var t=[];return n.forEach(function(n){var i=u.isType("array",n)?r(n):[n];t=t.concat(i)}),t}var u=i(12);n.exports=r},function(n){function t(n){return n.filter(function(t,i){return n.indexOf(t)===i})}n.exports=t},function(n,t,i){function r(){u.apply(this,arguments)}var u=i(60),f=i(12),e=i(63);r.prototype=Object.create(u.prototype);f.aug(r.prototype,{factory:e});n.exports=r},function(n,t,i){function e(n,t,i){var r=this[t];if(!r)throw new Error(t+" does not exist");this[t]=n(r,i)}function f(){this.Component=this.factory();this._adviceArgs=[];this._lastArgs=[]}var r=i(61),u=i(12),o=i(62);u.aug(f.prototype,{factory:o,build:function(n){var t=this;return this.Component,u.aug(this.Component.prototype.boundParams,n),this._adviceArgs.concat(this._lastArgs).forEach(function(n){e.apply(t.Component.prototype,n)}),delete this._lastArgs,delete this._adviceArgs,this.Component},params:function(n){var t=this.Component.prototype.paramConfigs;n=n||{};this.Component.prototype.paramConfigs=u.aug({},n,t)},define:function(n,t){if(n in this.Component.prototype)throw new Error(n+" has previously been defined");this.override(n,t)},defineStatic:function(n,t){this.Component[n]=t},override:function(n,t){this.Component.prototype[n]=t},defineProperty:function(n,t){if(n in this.Component.prototype)throw new Error(n+" has previously been defined");this.overrideProperty(n,t)},overrideProperty:function(n,t){var i=u.aug({configurable:!0},t);Object.defineProperty(this.Component.prototype,n,i)},before:function(n,t){this._adviceArgs.push([r.before,n,t])},after:function(n,t){this._adviceArgs.push([r.after,n,t])},around:function(n,t){this._adviceArgs.push([r.around,n,t])},last:function(n,t){this._lastArgs.push([r.after,n,t])}});n.exports=f},function(n,t,i){function u(n,t){return function(){var i,u=this,f=arguments;return i=t.apply(this,arguments),r.isPromise(i)?i.then(function(){return n.apply(u,f)}):n.apply(this,arguments)}}function f(n,t){return function(){function u(n,t){return r.isPromise(t)?t.then(function(){return n}):n}var i,f=this,e=arguments;return i=n.apply(this,arguments),r.isPromise(i)?i.then(function(n){return u(n,t.apply(f,e))}):u(i,t.apply(this,arguments))}}function e(n,t){return function(){var i=o.toRealArray(arguments);return i.unshift(s(n,this)),t.apply(this,i)}}var r=i(34),o=i(12),s=i(15);n.exports={before:u,after:f,around:e}},function(n,t,i){function u(){return!0}function f(n){return n}function e(n,t,i){var u=null;return n.some(function(n){if(n=r.isType("function",n)?n():n,t(n))return u=i(n),!0}),u}function o(){function n(n){var t=this;n=n||{};this.params=Object.keys(this.paramConfigs).reduce(function(i,r){var o=[],h=t.boundParams,s=t.paramConfigs[r],c=s.validate||u,l=s.transform||f;if(r in h&&o.push(h[r]),r in n&&o.push(n[r]),o="fallback"in s?o.concat(s.fallback):o,i[r]=e(o,c,l),s.required&&null==i[r])throw new Error(r+" is a required parameter");return i},{});this.initialize()}return r.aug(n.prototype,{paramConfigs:{},boundParams:{},initialize:function(){}}),n}var r=i(12);n.exports=o},function(n,t,i){function e(){function n(n){t.apply(this,arguments);Object.defineProperty(this,"targetGlobal",{value:n})}var t=o();return n.prototype=Object.create(t.prototype),f.aug(n.prototype,{id:null,initialized:!1,width:0,height:0,sandboxEl:null,insert:function(){return s.reject()},onResize:function(){},addClass:function(n){var t=this.sandboxEl;return n=Array.isArray(n)?n:[n],r.write(function(){n.forEach(function(n){u.add(t,n)})})},removeClass:function(n){var t=this.sandboxEl;return n=Array.isArray(n)?n:[n],r.write(function(){n.forEach(function(n){u.remove(t,n)})})},styleSelf:function(n){var t=this;return r.write(function(){f.forIn(n,function(n,i){t.sandboxEl.style[n]=i})})}}),n}var u=i(21),r=i(37),o=i(62),s=i(2),f=i(12);n.exports=e},function(n,t,i){function h(n,t,i,r){return t=c.aug({id:n},it,t),i=c.aug({},rt,i),nt(t,i,r)}function a(n){try{n.contentWindow.document}catch(n){return u.reject(n)}return u.resolve(n)}function v(n,t,i,u,f){var o=new s,c=tt.generate(),e=h(n,t,i,f);return l.set(["sandbox",c],function(){var n=e.contentWindow.document,t="<!DOCTYPE html><html><head><\/head><body><\/body><\/html>";r.write(function(){n.write(t)}).then(function(){n.close();o.resolve(e)})}),e.src=["javascript:",'document.write("");',"try { window.parent.document; }",'catch (e) { document.domain="'+p.domain+'"; }',"window.parent."+l.fullPath(["sandbox",c])+"();"].join(""),e.addEventListener("error",o.reject,!1),r.write(function(){u.parentNode.replaceChild(e,u)}),o.promise}function y(n){n.overrideProperty("id",{get:function(){return this.sandboxEl&&this.sandboxEl.id}});n.overrideProperty("initialized",{get:function(){return!!this.win}});n.overrideProperty("width",{get:function(){return this._width}});n.overrideProperty("height",{get:function(){return this._height}});n.overrideProperty("sandboxEl",{get:function(){return this.iframeEl}});n.defineProperty("iframeEl",{get:function(){return this._iframe}});n.defineProperty("rootEl",{get:function(){return this.doc&&this.doc.documentElement}});n.defineProperty("widgetEl",{get:function(){return this.doc&&this.doc.body.firstElementChild}});n.defineProperty("win",{get:function(){return this.iframeEl&&this.iframeEl.contentWindow}});n.defineProperty("doc",{get:function(){return this.win&&this.win.document}});n.define("_updateCachedDimensions",function(){var n=this;return r.read(function(){var i,t=f(n.sandboxEl);"visible"==n.sandboxEl.style.visibility?n._width=t.width:(i=f(n.sandboxEl.parentElement).width,n._width=Math.min(t.width,i));n._height=t.height})});n.define("_setTargetToBlank",function(){var n=this.createElement("base");n.target="_blank";this.doc.head.appendChild(n)});n.define("_didResize",function(){var n=this,t=this._resizeHandlers.slice(0);return this._updateCachedDimensions().then(function(){t.forEach(function(t){t(n)})})});n.define("setTitle",function(n){this.iframeEl.title=n});n.override("createElement",function(n){return this.doc.createElement(n)});n.override("createFragment",function(){return this.doc.createDocumentFragment()});n.override("htmlToElement",function(n){var t;return t=this.createElement("div"),t.innerHTML=n,t.firstElementChild});n.override("hasSelectedText",function(){return!!w.getSelectedText(this.win)});n.override("addRootClass",function(n){var t=this.rootEl;return n=Array.isArray(n)?n:[n],this.initialized?r.write(function(){n.forEach(function(n){o.add(t,n)})}):u.reject(new Error("sandbox not initialized"))});n.override("removeRootClass",function(n){var t=this.rootEl;return n=Array.isArray(n)?n:[n],this.initialized?r.write(function(){n.forEach(function(n){o.remove(t,n)})}):u.reject(new Error("sandbox not initialized"))});n.override("hasRootClass",function(n){return o.present(this.rootEl,n)});n.define("addStyleSheet",function(n,t){var i,f=new s;return this.initialized?(i=this.createElement("link"),i.type="text/css",i.rel="stylesheet",i.href=n,i.addEventListener("load",f.resolve,!1),i.addEventListener("error",f.reject,!1),r.write(e(t,null,i)).then(function(){return k(n).then(f.resolve,f.reject),f.promise})):u.reject(new Error("sandbox not initialized"))});n.override("prependStyleSheet",function(n){var t=this.doc;return this.addStyleSheet(n,function(n){var i=t.head.firstElementChild;return i?t.head.insertBefore(n,i):t.head.appendChild(n)})});n.override("appendStyleSheet",function(n){var t=this.doc;return this.addStyleSheet(n,function(n){return t.head.appendChild(n)})});n.define("addCss",function(n,t){var i;return d.inlineStyle()?(i=this.createElement("style"),i.type="text/css",i.appendChild(this.doc.createTextNode(n)),r.write(e(t,null,i))):u.resolve()});n.override("prependCss",function(n){var t=this.doc;return this.addCss(n,function(n){var i=t.head.firstElementChild;return i?t.head.insertBefore(n,i):t.head.appendChild(n)})});n.override("appendCss",function(n){var t=this.doc;return this.addCss(n,function(n){return t.head.appendChild(n)})});n.override("makeVisible",function(){var n=this;return this.styleSelf(ut).then(function(){n._updateCachedDimensions()})});n.override("injectWidgetEl",function(n){var t=this;return this.initialized?this.widgetEl?u.reject(new Error("widget already injected")):r.write(function(){t.doc.body.appendChild(n)}):u.reject(new Error("sandbox not initialized"))});n.override("matchHeightToContent",function(){var t,n=this;return r.read(function(){t=n.widgetEl?f(n.widgetEl).height:0}),r.write(function(){n.sandboxEl.style.height=t+"px"}).then(function(){return n._updateCachedDimensions()})});n.override("matchWidthToContent",function(){var t,n=this;return r.read(function(){t=n.widgetEl?f(n.widgetEl).width:0}),r.write(function(){n.sandboxEl.style.width=t+"px"}).then(function(){return n._updateCachedDimensions()})});n.after("initialize",function(){this._iframe=null;this._width=this._height=0;this._resizeHandlers=[]});n.override("insert",function(n,t,i,f){var o=this,l=new s,y=this.targetGlobal.document,c=h(n,t,i,y);return r.write(e(f,null,c)),c.addEventListener("load",function(){a(c).then(null,e(v,null,n,t,i,c,y)).then(l.resolve,l.reject)},!1),c.addEventListener("error",l.reject,!1),l.promise.then(function(n){var t=g(o._didResize,ot,o);return o._iframe=n,o.win.addEventListener("resize",t,!1),u.all([o._setTargetToBlank(),o.addRootClass(ft),o.prependCss(et)])})});n.override("onResize",function(n){this._resizeHandlers.push(n)});n.after("styleSelf",function(){return this._updateCachedDimensions()})}var p=i(9),o=i(21),r=i(37),w=i(65),b=i(55),k=i(66),d=i(67),g=i(68),nt=i(46),f=(i(10),i(69)),s=i(1),u=i(2),c=i(12),l=i(18),tt=i(30),e=i(15),it={allowfullscreen:"true"},rt={position:"absolute",visibility:"hidden",display:"block",width:"0px",height:"0px",padding:"0",border:"none"},ut={position:"static",visibility:"visible"},ft="SandboxRoot",et=".SandboxRoot { display: none; }",ot=50;n.exports=b.couple(i(70),y)},function(n,t,i){function r(n){return n=n||f,n.getSelection&&n.getSelection()}function u(n){var t=r(n);return t?t.toString():""}var f=i(7);n.exports={getSelection:r,getSelectedText:u}},function(n,t,i){function u(n){var t=new e,i=f.createElement("img");return i.onload=i.onerror=function(){r.setTimeout(t.resolve,50)},i.src=n,r.setTimeout(t.reject,o),t.promise}var f=i(9),r=i(7),e=i(1),o=2e4;n.exports=u},function(n,t,i){function e(){return v+a.generate()}function o(){var i=e(),n=r.createElement("div"),t=r.createElement("style"),o="."+i+" { visibility: hidden; }";return!!r.body&&(l.asBoolean(c.val("widgets:csp"))&&(u=!1),void 0!==u?u:(n.style.display="none",s.add(n,i),t.type="text/css",t.appendChild(r.createTextNode(o)),r.body.appendChild(t),r.body.appendChild(n),u="hidden"===h.getComputedStyle(n).visibility,f(n),f(t),u))}var u,s=i(21),r=i(9),h=i(7),c=i(42),f=i(39),l=i(27),a=i(30),v="csptest";n.exports={inlineStyle:o}},function(n,t,i){function u(n,t,i){function u(){var o=i||this,s=arguments,h=+new Date;return r.clearTimeout(f),h-e>t?(e=h,void n.apply(o,s)):void(f=r.setTimeout(function(){u.apply(o,s)},t))}var f,e=0;return i=i||null,u}var r=i(7);n.exports=u},function(n){function t(n){var t=n.getBoundingClientRect();return{width:t.width,height:t.height}}n.exports=t},function(n,t,i){function u(n){n.define("createElement",r);n.define("createFragment",r);n.define("htmlToElement",r);n.define("hasSelectedText",r);n.define("addRootClass",r);n.define("removeRootClass",r);n.define("hasRootClass",r);n.define("prependStyleSheet",r);n.define("appendStyleSheet",r);n.define("prependCss",r);n.define("appendCss",r);n.define("makeVisible",r);n.define("injectWidgetEl",r);n.define("matchHeightToContent",r);n.define("matchWidthToContent",r)}var r=i(71);n.exports=u},function(n){function t(){throw new Error("unimplemented method");}n.exports=t},function(n,t,i){function b(n,t,i){return e(n,t,i,2)}function e(n,t,i,f){var e=!u.isObject(n),o=!!t&&!u.isObject(t);e||o||(y&&y(arguments),s(r.formatClientEventNamespace(n),r.formatClientEventData(t,i,f),r.CLIENT_EVENT_ENDPOINT))}function k(n,t,i,u){var f=r.extractTermsFromDOM(n.target||n.srcElement);f.action=u||"click";e(f,t,i)}function s(n,t,i){var e,f;i&&u.isObject(n)&&u.isObject(t)&&(e=r.flattenClientEventPayload(n,t),f={l:r.stringify(e)},r.noticeSeen(n)&&(f.notice_seen=!0),e.dnt&&(f.dnt=1),v(o.url(i,f)))}function h(n,t,i,f){var e,o=!u.isObject(n),s=!!t&&!u.isObject(t);if(!o&&!s)return e=r.flattenClientEventPayload(r.formatClientEventNamespace(n),r.formatClientEventData(t,i,f)),c(e)}function c(n){return f.push(n),f}function d(){var n,t;return f.length>1&&h({page:"widgets_js",component:"scribe_pixel",action:"batch_log"},{}),n=f,f=[],t=n.reduce(function(t,i,r){var f=t.length,u=f&&t[f-1],e=r+1==n.length;return e&&i.event_namespace&&"batch_log"==i.event_namespace.action&&(i.message=["entries:"+r,"requests:"+f].join("/")),l(i).forEach(function(n){var i=a(n);(!u||u.urlLength+i>p)&&(u={urlLength:w,items:[]},t.push(u));u.urlLength+=i;u.items.push(n)}),t},[]),t.map(function(n){var t={l:n.items};return g.enabled()&&(t.dnt=1),v(o.url(r.CLIENT_EVENT_ENDPOINT,t))})}function l(n){return Array.isArray(n)||(n=[n]),n.reduce(function(n,t){var i,u=r.stringify(t),f=a(u);return w+f<p?n=n.concat(u):(i=r.splitLogEntry(t),i.length>1&&(n=n.concat(l(i)))),n},[])}function a(n){return encodeURIComponent(n).length+3}function v(n){var t=new Image;return t.src=n}var g=i(47),o=i(26),r=i(51),u=i(12),nt=i(18),y=nt.get("scribeCallback"),p=2083,f=[],tt=o.url(r.CLIENT_EVENT_ENDPOINT,{dnt:0,l:""}),w=encodeURIComponent(tt).length;n.exports={_enqueueRawObject:c,scribe:s,clientEvent:e,clientEvent2:b,enqueueClientEvent:h,flushClientEvents:d,interaction:k}},function(n,t,i){function r(n,t){this._inputsQueue=[];this._task=n;this._isPaused=!1;this._flushDelay=t&&t.flushDelay||e;this._pauseLength=t&&t.pauseLength||o;this._flushTimeout=void 0}var f=i(1),u=i(15),e=100,o=3e3;r.prototype.add=function(n){var t=new f;return this._inputsQueue.push({input:n,taskDoneDeferred:t}),this._scheduleFlush(),t.promise};r.prototype._scheduleFlush=function(){this._isPaused||(clearTimeout(this._flushTimeout),this._flushTimeout=setTimeout(u(this._flush,this),this._flushDelay))};r.prototype._flush=function(){try{this._task.call(null,this._inputsQueue)}catch(n){this._inputsQueue.forEach(function(t){t.taskDoneDeferred.reject(n)})}this._inputsQueue=[];this._flushTimeout=void 0};r.prototype.pause=function(n){clearTimeout(this._flushTimeout);this._isPaused=!0;!n&&this._pauseLength&&setTimeout(u(this.resume,this),this._pauseLength)};r.prototype.resume=function(){this._isPaused=!1;this._scheduleFlush()};n.exports=r},function(n,t,i){function e(){f.load()}function o(){return u().then(function(n){return Object.keys(n)})}function s(n){return u().then(function(t){if(!t[n])throw new Error("Experiment not found");return t[n]})}function r(n){return f.settingsLoaded().then(function(t){return t[n]})}function h(){return r("isBucketed")}function c(){return r("shouldObtainCookieConsent")}function u(){return r("experiments")}var f=i(75);n.exports={isBucketed:h,shouldObtainCookieConsent:c,getExperiments:u,getExperiment:s,getExperimentKeys:o,load:e}},function(n,t,i){function h(){var t,n,i,o;return s.ie9()||s.ie10()||"http:"!==r.protocol&&"https:"!==r.protocol?void u().resolve(f()):(t={origin:r.origin,settingsEndpoint:v.settings()},n=k.url(e.resourceBaseUrl+e.widgetIframeHtmlPath,t),i=function(t){var i;if(n.substr(0,t.origin.length)===t.origin)try{i="string"==typeof t.data?y.parse(t.data):t.data;i.namespace===p.settings&&u().resolve(f(i.settings))}catch(t){}},nt.addEventListener("message",i),o=l({src:n},{display:"none"}),void a.body.appendChild(o))}function f(n){var t=n||{is_bucketed:!1,should_obtain_cookie_consent:!0,experiments:{}};return new d(t.is_bucketed,t.should_obtain_cookie_consent,t.experiments)}function c(){var n,t,i;return n=new o,t=b.get("experimentOverride"),u().promise.then(function(r){t&&(i={},i[t.name]={bucket:t.assignment},r.experiments=g.aug(r.experiments,i));n.resolve(r)}).catch(function(t){n.reject(t)}),n.promise}var e=i(76),l=i(46),o=i(1),a=i(9),v=i(77),s=i(8),y=i(52),r=i(11),p=(i(10),i(78)),w=i(79),b=i(18),k=i(26),d=i(80),g=i(12),nt=i(7),u=w(function(){return new o});n.exports={load:h,settingsLoaded:c}},function(n){n.exports={tweetButtonHtmlPath:"/widgets/tweet_button.59df888963e9d6219f6e6c7ff5d8b951.{{lang}}.html",followButtonHtmlPath:"/widgets/follow_button.59df888963e9d6219f6e6c7ff5d8b951.{{lang}}.html",hubHtmlPath:"/widgets/hub.html",widgetIframeHtmlPath:"/widgets/widget_iframe.59df888963e9d6219f6e6c7ff5d8b951.html",resourceBaseUrl:"https://platform.twitter.com"}},function(n,t,i){function s(){f.init("backendHost",e)}function h(){f.unset("backendHost",e)}function c(n){var t=n||[];return t.unshift("cookie/consent"),r(o(),t)}function l(n){var t=n||[];return t.unshift("settings"),r(o(),t)}function a(n){var t=n||[];return t.unshift("video/event"),r(u(),t)}function v(n){var t=n||[];return t.unshift("grid/collection"),r(u(),t)}function y(n){var t=n||[];return t.unshift("moments"),r(u(),t)}function p(n){var t=n||[];return t.unshift("timeline"),r(u(),t)}function w(n){var t=n||[];return t.unshift("widgets/timelines"),r(u(),t)}function b(n){var t=n||[];return t.unshift("tweets.json"),r(u(),t)}function k(n){var t=n||[];return t.unshift("widgets/video"),r(u(),t)}function r(n,t){var i=[n];return t.forEach(function(n){i.push(d(n))}),i.join("/")}function d(n){var t=(n||"").toString(),i=g(t)?1:0,r=nt(t)?-1:void 0;return t.slice(i,r)}function g(n){return"/"===n.slice(0,1)}function nt(n){return"/"===n.slice(-1)}var f=i(18),tt="https://cdn.syndication.twimg.com",e="https://syndication.twitter.com",u=function(){return f.get("backendHost")||tt},o=function(){return f.get("settingsSvcHost")||e};n.exports={cookieConsent:c,disableCDN:s,enableCDN:h,eventVideo:a,grid:v,moment:y,settings:l,timeline:p,timelinePreconfigured:w,tweetBatch:b,video:k}},function(n){n.exports={settings:"twttr.settings"}},function(n){function t(n){var t,i=!1;return function(){return i?t:(i=!0,t=n.apply(this,arguments))}}n.exports=t},function(n){function t(n,t,i){this.isBucketed=n;this.shouldObtainCookieConsent=t;this.experiments=i||{}}n.exports=t},function(n,t,i){n.exports=[i(82),i(114),i(128),i(163),i(174),i(180),i(225),i(244),i(249)]},function(n,t,i){function r(n){var i=n.getAttribute("data-show-screen-name"),r=s(n),u=n.getAttribute("href"),h=n.getAttribute("data-screen-name"),c=i?e.asBoolean(i):null,l=n.getAttribute("data-size"),t=f.decodeURL(u),a=t.recipient_id,v=n.getAttribute("data-text")||t.text,y=n.getAttribute("data-welcome-message-id")||t.welcomeMessageId;return o.aug(r,{screenName:h,showScreenName:c,size:l,text:v,userId:a,welcomeMessageId:y})}function u(n){var t=h(n,l);return t.map(function(n){return c(r(n),n.parentNode,n)})}var f=i(26),e=i(27),o=i(12),s=i(83),h=i(85)(),c=i(87),l="a.twitter-dm-button";n.exports=u},function(n,t,i){function f(n){var i=n.href&&n.href.split("?")[1],t=i?o.decode(i):{},f={lang:s(n),width:n.getAttribute("data-width")||n.getAttribute("width"),height:n.getAttribute("data-height")||n.getAttribute("height"),related:n.getAttribute("data-related"),partner:n.getAttribute("data-partner")};return r.asBoolean(n.getAttribute("data-dnt"))&&e.setOn(),u.forIn(f,function(n,i){var u=t[n];t[n]=r.hasValue(u)?u:i}),u.compact(t)}var e=i(47),r=i(27),o=i(26),u=i(12),s=i(84);n.exports=f},function(n,t,i){function r(n){var t;if(n)return t=n.lang||n.getAttribute("data-lang"),u.isType("string",t)?t:r(n.parentElement)}var u=i(12);n.exports=r},function(n,t,i){var r=i(86),u=i(30);n.exports=function(){var n="data-twitter-extracted-"+u.generate();return function(t,i){function u(t){return!t.hasAttribute(n)}function f(t){return t.setAttribute(n,"true"),t}return r(t,i).filter(u).map(f)}}},function(n,t,i){function r(n,t){return f(n,t)?[n]:u.toRealArray(n.querySelectorAll(t))}var u=i(12),f=i(23);n.exports=r},function(n,t,i){function r(n,t,i){return new u(f,e,"twitter-dm-button",n,t,i)}var u=i(88),f=i(89),e=i(110);n.exports=r},function(n){function t(n,t,i,r,u,f){this.factory=n;this.Sandbox=t;this.srcEl=f;this.targetEl=u;this.parameters=r;this.className=i}t.prototype.destroy=function(){this.srcEl=this.targetEl=null};n.exports=t},function(n,t,i){function r(n,t){var r=new u;return i.e(1,function(u){var f;if(u)return r.reject(u);try{f=i(90);r.resolve(new f(n,t))}catch(n){r.reject(n)}}),r.promise}var u=i(1);n.exports=r},,function(n,t,i){var r=i(56),u=i(92),f=i(15);r=Object.create(r);r.build=f(r.build,null,u);n.exports=r},function(n,t,i){function r(){u.apply(this,arguments);this.Widget=this.Component}var u=i(60),f=i(12),e=i(93);r.prototype=Object.create(u.prototype);f.aug(r.prototype,{factory:e,build:function(){return u.prototype.build.apply(this,arguments)},selectors:function(n){var t=this.Widget.prototype.selectors;n=n||{};this.Widget.prototype.selectors=f.aug({},n,t)}});n.exports=r},function(n,t,i){function f(){function n(n,i){t.apply(this,arguments);this.id=c+h();this.sandbox=i}var t=o();return n.prototype=Object.create(t.prototype),u.aug(n.prototype,{selectors:{},hydrate:function(){return r.resolve()},prepForInsertion:function(){},render:function(){return r.resolve()},show:function(){return r.resolve()},resize:function(){return r.resolve()},select:function(n,t){return 1===arguments.length&&(t=n,n=this.el),n?(t=this.selectors[t]||t,u.toRealArray(n.querySelectorAll(t))):[]},selectOne:function(){return this.select.apply(this,arguments)[0]},selectLast:function(){return this.select.apply(this,arguments).pop()},on:function(n,t,i){function f(n){u.addEventListener(n,i,!1)}function o(n){e.delegate(u,n,r,i)}var r,u=this.el;this.el&&(n=(n||"").split(/\s+/),2===arguments.length?i=t:r=t,r=this.selectors[r]||r,i=s(i,this),n.forEach(r?o:f))}}),n}var r=i(2),e=i(20),o=i(62),u=i(12),s=i(15),h=i(94),c="twitter-widget-";n.exports=f},function(n){function t(){return String(i++)}var i=0;n.exports=t},,function(n,t,i){function o(n){return"dark"===n?"dark":"light"}function r(n,t,i){var r,u;return i=o(i),r=c.isRtlLang(t)?"rtl":"ltr",u=[n,f.css,i,r,"css"].join("."),e.resourceBaseUrl+"/css/"+u}function s(){return e.resourceBaseUrl+"/css/"+["periscope_on_air",f.css,"css"].join(".")}function h(){return e.resourceBaseUrl+"/css/"+["dm_button",f.css,"css"].join(".")}var c=i(97),f=i(100),u=i(15),e=i(76);n.exports={dmButton:h,tweet:u(r,null,"tweet"),timeline:u(r,null,"timeline"),video:u(r,null,"video"),moment:u(r,null,"moment"),grid:u(r,null,"grid"),periscopeOnAir:s}},function(n,t,i){function u(n){return n=String(n).toLowerCase(),e.contains(o,n)}function f(n){return n=(n||"").toLowerCase(),n=n.replace("_","-"),r(n)?n:(n=n.replace(/-.*/,""),r(n)?n:"en")}var e=i(12),r=i(98),o=["ar","fa","he","ur"];n.exports={isRtlLang:u,matchLanguage:f}},function(n,t,i){function r(n){return"en"===n||u.contains(f,n)}var u=i(12),f=i(99);n.exports=r},function(n){n.exports=["hi","zh-cn","fr","zh-tw","msa","fil","fi","sv","pl","ja","ko","de","it","pt","es","ru","id","tr","da","no","nl","hu","fa","ar","ur","he","th","cs","uk","vi","ro","bn","el","en-gb","gu","kn","mr","ta","bg","ca","hr","sr","sk"]},function(n){n.exports={css:"e783991e0672c909d3fc09a8416757c3"}},,function(n,t,i){function u(n){n.define("injectRefUrlParams",function(n){n.getAttribute(r)||(n.setAttribute(r,!0),n.href=f(n.href))});n.after("render",function(){this.on("click","A",function(n,t){e.isTwitterURL(t.href)&&this.injectRefUrlParams(t)})})}var f=i(103),e=i(25),r="data-url-ref-attrs-injected";n.exports=u},function(n,t,i){function r(n){return u.url(n,{ref_src:e,ref_url:f.rootDocumentLocation()})}var u=i(26),f=i(48),e="twsrc^tfw";n.exports=r},function(n,t,i){function h(n){n.params({partner:{fallback:l(r.val,r,"partner")}});n.define("scribeItems",function(){return{}});n.define("scribeNamespace",function(){return{client:"tfw"}});n.define("scribeData",function(){return{widget_origin:u.rootDocumentLocation(),widget_frame:u.isFramed()&&u.currentDocumentLocation(),widget_partner:this.params.partner,widget_site_screen_name:s(r.val("site")),widget_site_user_id:o.asNumber(r.val("site:id")),widget_creator_screen_name:s(r.val("creator")),widget_creator_user_id:o.asNumber(r.val("creator:id"))}});n.define("scribe",function(n,t,i){n=e.aug(this.scribeNamespace(),n||{});t=e.aug(this.scribeData(),t||{});c.scribe(n,t,!1,i)});n.define("scribeInteraction",function(n,t,i){var r=f.extractTermsFromDOM(n.target);r.action=n.type;"url"===r.element&&(r.element=f.clickEventElement(n.target));this.scribe(r,t,i)})}var c=i(43),f=i(51),u=i(48),e=i(12),l=i(15),r=i(42),o=i(27),s=i(105);n.exports=h},function(n){function t(n){return n&&"@"===n[0]?n.substr(1):n}n.exports=t},,function(n,t,i){function r(n,t){var i,r;if(n)return r=t?[n,t]:[n],i=o(r),{item_ids:Object.keys(i),item_details:i}}function u(n){n.selectors({tweetIdInfo:".js-tweetIdInfo",quotedTweetInfo:'[data-tweet-item-type="23"]'});n.define("scribeClickInteraction",function(n,t){var i=f.closest(this.selectors.tweetIdInfo,t,this.el),u=i&&i.querySelector(this.selectors.quotedTweetInfo);this.scribeInteraction(n,r(i,u))});n.after("render",function(){this.on("click","A",this.scribeClickInteraction);this.on("click","BUTTON",this.scribeClickInteraction)})}var f=i(22),e=i(91),o=i(108);n.exports=e.couple(i(104),u)},function(n,t,i){function u(n){return n?(n=Array.isArray(n)?n:[n],n.reduce(function(n,t){var i=t.getAttribute("data-tweet-id"),u=t.getAttribute("data-rendered-tweet-id")||i,f=t.getAttribute("data-tweet-item-type")===r.QUOTE_TWEET.toString();return f?n[i]={item_type:r.QUOTE_TWEET}:i===u?n[u]={item_type:r.TWEET}:i&&(n[u]={item_type:r.RETWEET,target_type:r.TWEET,target_id:i}),n},{})):{}}var r=i(109);n.exports=u},function(n){n.exports={TWEET:0,RETWEET:10,CUSTOM_TIMELINE:17,LIVE_VIDEO_EVENT:28,QUOTE_TWEET:23}},function(n,t,i){var r=i(111),u=i(54);n.exports=r.isSupported()?r:u},function(n,t,i){var r=i(55),u=i(112);n.exports=r.build([u])},function(n,t,i){function s(n){n.defineStatic("isSupported",function(){return!!c.HTMLElement.prototype.createShadowRoot&&e.inlineStyle()&&!p.android()});n.overrideProperty("id",{get:function(){return this.sandboxEl&&this.sandboxEl.id}});n.overrideProperty("initialized",{get:function(){return!!this._shadowHost}});n.overrideProperty("width",{get:function(){return this._width}});n.overrideProperty("height",{get:function(){return this._height}});n.overrideProperty("sandboxEl",{get:function(){return this._shadowHost}});n.define("_updateCachedDimensions",function(){var n=this;return u.read(function(){var i,t=o(n.sandboxEl);"visible"==n.sandboxEl.style.visibility?n._width=t.width:(i=o(n.sandboxEl.parentElement).width,n._width=Math.min(t.width,i));n._height=t.height})});n.define("_didResize",function(){var n=this,t=this._resizeHandlers.slice(0);return this._updateCachedDimensions().then(function(){t.forEach(function(t){t(n)})})});n.override("createElement",function(n){return this.targetGlobal.document.createElement(n)});n.override("createFragment",function(){return this.targetGlobal.document.createDocumentFragment()});n.override("htmlToElement",function(n){var t;return t=this.createElement("div"),t.innerHTML=n,t.firstElementChild});n.override("hasSelectedText",function(){return!!a.getSelectedText(this.targetGlobal)});n.override("addRootClass",function(n){var t=this._shadowRootBody;return n=Array.isArray(n)?n:[n],this.initialized?u.write(function(){n.forEach(function(n){f.add(t,n)})}):r.reject(new Error("sandbox not initialized"))});n.override("removeRootClass",function(n){var t=this._shadowRootBody;return n=Array.isArray(n)?n:[n],this.initialized?u.write(function(){n.forEach(function(n){f.remove(t,n)})}):r.reject(new Error("sandbox not initialized"))});n.override("hasRootClass",function(n){return f.present(this._shadowRootBody,n)});n.override("addStyleSheet",function(n,t){return this.addCss('@import url("'+n+'");',t).then(function(){return y(n)})});n.override("prependStyleSheet",function(n){var t=this._shadowRoot;return this.addStyleSheet(n,function(n){var i=t.firstElementChild;return i?t.insertBefore(n,i):t.appendChild(n)})});n.override("appendStyleSheet",function(n){var t=this._shadowRoot;return this.addStyleSheet(n,function(n){return t.appendChild(n)})});n.override("addCss",function(n,t){var i;return this.initialized?e.inlineStyle()?(i=this.createElement("style"),i.type="text/css",i.appendChild(this.targetGlobal.document.createTextNode(n)),u.write(w(t,null,i))):r.resolve():r.reject(new Error("sandbox not initialized"))});n.override("prependCss",function(n){var t=this._shadowRoot;return this.addCss(n,function(n){var i=t.firstElementChild;return i?t.insertBefore(n,i):t.appendChild(n)})});n.override("appendCss",function(n){var t=this._shadowRoot;return this.addCss(n,function(n){return t.appendChild(n)})});n.override("makeVisible",function(){return this.styleSelf(nt)});n.override("injectWidgetEl",function(n){function i(){var n=b(t._didResize,d,t);new h(t._shadowRootBody,n)}var t=this;return this.initialized?this._shadowRootBody.firstElementChild?r.reject(new Error("widget already injected")):u.write(function(){t._shadowRootBody.appendChild(n)}).then(function(){return t._updateCachedDimensions()}).then(i):r.reject(new Error("sandbox not initialized"))});n.override("matchHeightToContent",function(){return r.resolve()});n.override("matchWidthToContent",function(){return r.resolve()});n.override("insert",function(n,t,i,f){var o=this.targetGlobal.document,e=this._shadowHost=o.createElement(tt),h=this._shadowRoot=e.createShadowRoot(),s=this._shadowRootBody=o.createElement("div");return k.forIn(t||{},function(n,t){e.setAttribute(n,t)}),e.id=n,h.appendChild(s),l.delegate(s,"click","A",function(n,t){t.hasAttribute("target")||t.setAttribute("target","_blank")}),r.all([this.styleSelf(g),this.addRootClass(it),this.prependCss(rt),u.write(f.bind(null,e))])});n.override("onResize",function(n){this._resizeHandlers.push(n)});n.after("initialize",function(){this._shadowHost=this._shadowRoot=this._shadowRootBody=null;this._width=this._height=0;this._resizeHandlers=[]});n.after("styleSelf",function(){return this._updateCachedDimensions()})}var h=i(113),c=i(7),f=i(21),l=i(20),u=i(37),a=i(65),v=i(55),y=i(66),e=i(67),p=i(8),o=i(69),w=i(15),b=i(68),r=i(2),k=i(12),d=50,g={position:"absolute",visibility:"hidden",display:"block",transform:"rotate(0deg)"},nt={position:"static",visibility:"visible"},tt="twitterwidget",it="SandboxRoot",rt=".SandboxRoot { display: none; }";n.exports=v.couple(i(70),s)},function(n){!function(){var t=function(n,i){function s(){this.q=[];this.add=function(n){this.q.push(n)};var n,t;this.call=function(){for(n=0,t=this.q.length;n<t;n++)this.q[n].call()}}function h(n,t){return n.currentStyle?n.currentStyle[t]:window.getComputedStyle?window.getComputedStyle(n,null).getPropertyValue(t):n.style[t]}function f(n,t){var u,f;if(n.resizedAttached){if(n.resizedAttached)return void n.resizedAttached.add(t)}else n.resizedAttached=new s,n.resizedAttached.add(t);n.resizeSensor=document.createElement("div");n.resizeSensor.className="resize-sensor";u="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;";f="position: absolute; left: 0; top: 0; transition: 0s;";n.resizeSensor.style.cssText=u;n.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="'+u+'"><div style="'+f+'"><\/div><\/div><div class="resize-sensor-shrink" style="'+u+'"><div style="'+f+' width: 200%; height: 200%"><\/div><\/div>';n.appendChild(n.resizeSensor),{fixed:1,absolute:1}[h(n,"position")]||(n.style.position="relative");var e,o,i=n.resizeSensor.childNodes[0],c=i.childNodes[0],r=n.resizeSensor.childNodes[1],l=(r.childNodes[0],function(){c.style.width=i.offsetWidth+10+"px";c.style.height=i.offsetHeight+10+"px";i.scrollLeft=i.scrollWidth;i.scrollTop=i.scrollHeight;r.scrollLeft=r.scrollWidth;r.scrollTop=r.scrollHeight;e=n.offsetWidth;o=n.offsetHeight});l();var y=function(){n.resizedAttached&&n.resizedAttached.call()},a=function(n,t,i){n.attachEvent?n.attachEvent("on"+t,i):n.addEventListener(t,i)},v=function(){n.offsetWidth==e&&n.offsetHeight==o||y();l()};a(i,"scroll",v);a(r,"scroll",v)}var u=Object.prototype.toString.call(n),e="[object Array]"===u||"[object NodeList]"===u||"[object HTMLCollection]"===u||"undefined"!=typeof jQuery&&n instanceof jQuery||"undefined"!=typeof Elements&&n instanceof Elements,r,o;if(e)for(r=0,o=n.length;r<o;r++)f(n[r],i);else f(n,i);this.detach=function(){if(e)for(var i=0,r=n.length;i<r;i++)t.detach(n[i]);else t.detach(n)}};t.detach=function(n){n.resizeSensor&&(n.removeChild(n.resizeSensor),delete n.resizeSensor,delete n.resizedAttached)};"undefined"!=typeof n&&"undefined"!=typeof n.exports?n.exports=t:window.ResizeSensor=t}()},function(n,t,i){function r(n){var t=o(n),i={screenName:f.screenName(n.href),showScreenName:"false"!==n.getAttribute("data-show-screen-name"),showCount:"false"!==n.getAttribute("data-show-count"),size:n.getAttribute("data-size"),count:n.getAttribute("data-count"),preview:n.getAttribute("data-preview")};return e.forIn(i,function(n,i){var r=t[n];t[n]=c.hasValue(r)?r:i}),t.screenName=t.screenName||t.screen_name,t}function u(n){var t=s(n,l);return t.map(function(n){return h(r(n),n.parentNode,n)})}var f=i(25),e=i(12),o=i(83),s=i(85)(),h=i(115),c=i(27),l="a.twitter-follow-button";n.exports=u},function(n,t,i){function r(n,t,i){return new u(f,e,"twitter-follow-button",n,t,i)}var u=i(88),f=i(116),e=i(121);n.exports=r},function(n,t,i){function r(n,t){var r=new u;return i.e(2,function(u){var f;if(u)return r.reject(u);try{f=i(117);r.resolve(new f(n,t))}catch(n){r.reject(n)}}),r.promise}var u=i(1);n.exports=r},,,,function(n,t,i){function r(n){n.define("widgetDataAttributes",function(){return{}});n.define("setDataAttributes",function(){var n=this.sandbox.sandboxEl;f.forIn(this.widgetDataAttributes(),function(t,i){u.hasValue(i)&&n.setAttribute("data-"+t,i)})});n.after("render",function(){this.setDataAttributes()})}var u=i(27),f=i(12);n.exports=r},function(n,t,i){var r=i(55),u=i(122);n.exports=r.build([u])},function(n,t,i){function o(n){n.overrideProperty("id",{get:function(){return this.sandboxEl&&this.sandboxEl.id}});n.overrideProperty("initialized",{get:function(){return!!this.iframeEl}});n.overrideProperty("width",{get:function(){return this._width}});n.overrideProperty("height",{get:function(){return this._height}});n.overrideProperty("sandboxEl",{get:function(){return this.iframeEl}});n.defineProperty("iframeEl",{get:function(){return this._iframe}});n.define("updateCachedDimensions",function(){var n=this;return this.initialized?u.read(function(){n._width=n.sandboxEl.offsetWidth;n._height=n.sandboxEl.offsetHeight}):r.resolve()});n.define("setTitle",function(n){this.iframeEl.title=n});n.define("makeVisible",function(){return this.styleSelf(y)});n.define("didResize",function(){var n=this,t=n._resizeHandlers.length>0;return this.updateCachedDimensions().then(function(){t&&n._resizeHandlers.forEach(function(t){t(n)})})});n.define("loadDocument",function(n){var t=new l;return this.initialized?this.iframeEl.src?r.reject(new Error("widget already loaded")):(this.iframeEl.addEventListener("load",t.resolve,!1),this.iframeEl.addEventListener("error",t.reject,!1),this.iframeEl.src=n,t.promise):r.reject(new Error("sandbox not initialized"))});n.after("initialize",function(){this._iframe=null;this._width=this._height=0;this._resizeHandlers=[]});n.override("insert",function(n,t,i,r){var o=this;return t=f.aug({id:n},t),i=f.aug({},v,i),this._iframe=c(t,i),e[n]=this,this.onResize(h(function(){o.makeVisible()})),u.write(a(r,null,this._iframe))});n.override("onResize",function(n){this._resizeHandlers.push(n)});n.after("styleSelf",function(){return this.updateCachedDimensions()})}var u=i(37),s=i(123),h=i(79),c=i(46),l=i(1),r=i(2),a=i(15),f=i(12),v={position:"absolute",visibility:"hidden",width:"0px",height:"0px"},y={position:"static",visibility:"visible"},e={};s(function(n,t,i){var r=e[n];if(r)return t=t||1,i=i||1,r.styleSelf({width:t+"px",height:i+"px"}).then(function(){r.didResize()})});n.exports=o},function(n,t,i){function f(n){(new o).attachReceiver(new s.Receiver(e,"twttr.button")).bind("twttr.private.trigger",function(n,t){var i=u(this);h.trigger(n,{target:i,region:t,type:n,data:{}})}).bind("twttr.private.resizeButton",function(t){var i=u(this),f=i&&i.id,e=r.asInt(t.width),o=r.asInt(t.height);f&&void 0!==e&&void 0!==o&&n(f,e,o)})}var e=i(7),o=i(124),s=i(126),h=i(31),r=i(27),u=i(127);n.exports=f},function(n,t,i){function f(n){this.registry=n||{}}function c(n){return r.isType("string",n)?p.parse(n):n}function l(n){var t,i,u;return!!r.isObject(n)&&(t=n.jsonrpc===s,i=r.isType("string",n.method),u=!("id"in n)||h(n.id),t&&i&&u)}function h(n){var t,i,u;return t=r.isType("string",n),i=r.isType("number",n),u=null===n,t||i||u}function a(n){return r.isObject(n)&&!r.isType("function",n)}function v(n,t){return{jsonrpc:s,id:n,result:t}}function e(n,t){return{jsonrpc:s,id:h(n)?n:null,error:t}}function y(n){return u.all(n).then(function(n){return n=n.filter(function(n){return void 0!==n}),n.length?n:void 0})}var p=i(52),o=i(125),r=i(12),u=i(2),w=i(34),s="2.0";f.prototype._invoke=function(n,t){var e,i,f;e=this.registry[n.method];i=n.params||[];i=r.isType("array",i)?i:[i];try{f=e.apply(t.source||null,i)}catch(n){f=u.reject(n.message)}return w.isPromise(f)?f:u.resolve(f)};f.prototype._processRequest=function(n,t){function r(t){return v(n.id,t)}function f(){return e(n.id,o.INTERNAL_ERROR)}var i;return l(n)?(i="params"in n&&!a(n.params)?u.resolve(e(n.id,o.INVALID_PARAMS)):this.registry[n.method]?this._invoke(n,{source:t}).then(r,f):u.resolve(e(n.id,o.METHOD_NOT_FOUND)),null!=n.id?i:u.resolve()):u.resolve(e(n.id,o.INVALID_REQUEST))};f.prototype.attachReceiver=function(n){return n.attachTo(this),this};f.prototype.bind=function(n,t){return this.registry[n]=t,this};f.prototype.receive=function(n,t){var i,s,f,h=this;try{n=c(n)}catch(n){return u.resolve(e(null,o.PARSE_ERROR))}return t=t||null,i=r.isType("array",n),s=i?n:[n],f=s.map(function(n){return h._processRequest(n,t)}),i?y(f):f[0]};n.exports=f},function(n){n.exports={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INTERNAL_ERROR:{code:-32603,message:"Internal error"}}},function(n,t,i){function o(n,t,i){var r;n&&n.postMessage&&(e?r=(i||"")+a.stringify(t):i?(r={},r[i]=t):r=t,n.postMessage(r,"*"))}function s(n){return r.isType("string",n)?n:"JSONRPC"}function h(n,t){return t?r.isType("string",n)&&0===n.indexOf(t)?n.substring(t.length):n[t]?n[t]:void 0:n}function c(n,t){var i=n.document;this.filter=s(t);this.server=null;this.isTwitterFrame=u.isTwitterURL(i.location.href);n.addEventListener("message",f(this._onMessage,this),!1)}function l(n,t){this.pending={};this.target=n;this.isTwitterHost=u.isTwitterURL(y.href);this.filter=s(t);p.addEventListener("message",f(this._onMessage,this),!1)}function v(n){return arguments.length>0&&(e=!!n),e}var y=i(11),p=i(7),a=i(52),w=i(1),b=i(8),r=i(12),u=i(25),f=i(15),e=b.ie9();r.aug(c.prototype,{_onMessage:function(n){var t,i=this;this.server&&(this.isTwitterFrame&&!u.isTwitterURL(n.origin)||(t=h(n.data,this.filter),t&&this.server.receive(t,n.source).then(function(t){t&&o(n.source,t,i.filter)})))},attachTo:function(n){this.server=n},detach:function(){this.server=null}});r.aug(l.prototype,{_processResponse:function(n){var t=this.pending[n.id];t&&(t.resolve(n),delete this.pending[n.id])},_onMessage:function(n){var t;if((!this.isTwitterHost||u.isTwitterURL(n.origin))&&(t=h(n.data,this.filter))){if(r.isType("string",t))try{t=a.parse(t)}catch(n){return}t=r.isType("array",t)?t:[t];t.forEach(f(this._processResponse,this))}},send:function(n){var t=new w;return n.id?this.pending[n.id]=t:t.resolve(),o(this.target,n,this.filter),t.promise}});n.exports={Receiver:c,Dispatcher:l,_stringifyPayload:v}},function(n,t,i){function r(n){for(var t,r=u.getElementsByTagName("iframe"),i=0;r[i];i++)if(t=r[i],t.contentWindow===n)return t}var u=i(9);n.exports=r},function(n,t,i){function r(n){var t=s(n),i={collectionId:o.collectionId(n.href),chrome:n.getAttribute("data-chrome"),limit:n.getAttribute("data-limit")};return e.forIn(i,function(n,i){var r=t[n];t[n]=f.hasValue(r)?r:i}),t}function u(n){var t=h(n,l);return t.map(function(n){return c(r(n),n.parentNode,n)})}var f=i(27),e=i(12),o=i(25),s=i(83),h=i(85)(),c=i(129),l="a.twitter-grid";n.exports=u},function(n,t,i){function r(n,t,i){return new u(f,e,"twitter-grid",n,t,i)}var u=i(88),f=i(130),e=i(54);n.exports=r},function(n,t,i){function r(n,t){var r=new u;return i.e(3,function(u){var f;if(u)return r.reject(u);try{f=i(131);r.resolve(new f(n,t))}catch(n){r.reject(n)}}),r.promise}var u=i(1);n.exports=r},,,,function(n,t,i){function f(n){if(n)return n.replace(/[^\w$]/g,"_")}function e(){return l+a++}function o(n,t,i,o){var v,l,a;return o=f(o||e()),v=r.fullPath(["callbacks",o]),l=u.createElement("script"),a=new s,t=h.aug({},t,{callback:v,suppress_response_codes:!0}),r.set(["callbacks",o],function(n){var t,u;t=i(n||!1);n=t.resp;u=t.success;u?a.resolve(n):a.reject(n);l.onload=l.onreadystatechange=null;l.parentNode&&l.parentNode.removeChild(l);r.unset(["callbacks",o])}),l.onerror=function(){a.reject(new Error("failed to fetch "+l.src))},l.src=c.url(n,t),l.async="async",u.body.appendChild(l),a.promise}var u=i(9),r=i(18),s=i(1),h=i(12),c=i(26),l="cb",a=0;n.exports={fetch:o}},function(n,t,i){function r(n){var i,t;return i=n.headers&&n.headers.status,t=n&&!n.error&&200===i,!t&&n.headers&&n.headers.message&&u.warn(n.headers.message),{success:t,resp:n}}var u=i(10);n.exports=r},function(n){function t(){var n=(new Date).toString().match(/(GMT[+-]?\d+)/);return n&&n[0]||"GMT"}n.exports={getTimezoneOffset:t}},function(n){function t(){return Math.floor(+new Date/9e5)}n.exports=t},function(n,t,i){var u=i(9),f=i(27),r=u.createElement("div");n.exports=function(n){return f.isNumber(n)&&(n+="px"),r.style.width="",r.style.width=n,r.style.width||null}},function(n,t,i){function e(n){n.after("prepForInsertion",function(n){u.sizeIframes(n,this.sandbox.width,f,r.sync)});n.after("resize",function(){u.sizeIframes(this.el,this.sandbox.width,f,r.write)})}var r=i(37),u=i(140),f=375;n.exports=e},function(n,t,i){function u(n,t){n.getAttribute("data-image")?o(n,t):h(n,t)}function b(n){var t=n.split(" ");this.url=decodeURIComponent(t[0].trim());this.width=+t[1].replace(/w$/,"").trim()}function k(n,t,i){var f,o,r,e,u;if(o=s(n),r=t.split(",").map(function(n){return new b(n.trim())}),i)for(u=0;u<r.length;u++)r[u].url===i&&(f=r[u]);return e=r.reduce(function(n,t){return t.width<n.width&&t.width>=o?t:n},r[0]),f&&f.width>e.width?f:e}function o(n,t){var i,u,f,r,o;i=y.decodeURL(n.src).name;u=i&&p(w,function(n){if(e[n]===i)return n});r=s(t)||680;u>=r||(f=n.getAttribute("data-image"),o=p(w,function(n){if(n>=r)return n})||4096,n.src=y.url(f,{format:"jpg",name:e[o]}))}function s(n){return v.devicePixelRatio?n*v.devicePixelRatio:n}function h(n,t){var i,r=n.getAttribute("data-srcset"),u=n.src;r&&(i=k(t,r,u),n.src=i.url)}function d(n,t){t=void 0!==t?!!t:it.retina();r.toRealArray(n.getElementsByTagName("IMG")).forEach(function(n){var i=n.getAttribute("data-src-1x")||n.getAttribute("src"),r=n.getAttribute("data-src-2x");t&&r?n.src=r:i&&(n.src=i)})}function c(n,t,i){n&&(r.toRealArray(n.querySelectorAll(".NaturalImage-image")).forEach(function(n){i(function(){u(n,t)})}),r.toRealArray(n.querySelectorAll(".CroppedImage-image")).forEach(function(n){i(function(){u(n,t/2)})}),r.toRealArray(n.querySelectorAll("img.autosized-media")).forEach(function(n){i(function(){u(n,t);n.removeAttribute("width");n.removeAttribute("height")})}))}function l(n,t,i,u){n&&r.toRealArray(n.querySelectorAll("iframe.autosized-media, .wvp-player-container")).forEach(function(n){var r=a(n.getAttribute("data-width"),n.getAttribute("data-height"),rt.effectiveWidth(n.parentElement)||t,i);u(function(){n.setAttribute("width",r.width);n.setAttribute("height",r.height);ut.present(n,"wvp-player-container")?(n.style.width=r.width,n.style.height=r.height):(n.width=r.width,n.height=r.height)})})}function g(n,t,i,r){c(n,t,r);l(n,t,i,r)}function a(n,t,i,r,u,f){return i=i||n,r=r||t,u=u||0,f=f||0,n>i&&(t*=i/n,n=i),t>r&&(n*=r/t,t=r),n<u&&(t*=u/n,n=u),t<f&&(n*=f/t,t=f),{width:Math.floor(n),height:Math.floor(t)}}function f(n,t,i,u){r.toRealArray(n.querySelectorAll(t)).forEach(function(n){var r=n.getAttribute("style")||n.getAttribute("data-style"),t=u.test(r)&&RegExp.$1;t&&(n.setAttribute("data-csp-fix",!0),n.style[i]=t)})}function nt(n){tt.inlineStyle()||(f(n,".MediaCard-widthConstraint","maxWidth",ft),f(n,".MediaCard-mediaContainer","paddingBottom",st),f(n,".CroppedImage-image","top",et),f(n,".CroppedImage-image","left",ot))}var v=i(7),r=i(12),tt=i(67),y=i(26),p=i(141),it=i(8),rt=i(142),ut=i(21),ft=/max-width:\s*([\d.]+px)/,et=/top:\s*(-?[\d.]+%)/,ot=/left:\s*(-?[\d.]+%)/,st=/padding-bottom:\s*([\d.]+%)/,e={64:"tiny",120:"120x120",240:"240x240",360:"360x360",680:"small",900:"900x900",1200:"medium",2048:"large",4096:"4096x4096"},w=Object.keys(e).sort(function(n,t){return n-t});n.exports={scaleDimensions:a,retinize:d,setSrcForImgs:c,sizeIframes:l,constrainMedia:g,fixMediaCardLayout:nt,__setSrcFromSet:h,__setSrcFromImage:o,__setImageSrc:u}},function(n){n.exports=function(n,t,i){for(var u,r=0;r<n.length;r++)if(u=t.call(i,n[r],r,n))return u}},function(n){function t(n){return n&&1===n.nodeType?n.offsetWidth||t(n.parentNode):0}n.exports={effectiveWidth:t}},function(n,t,i){function r(n){return n.replace(/-(.)/g,function(n,t){return t.toUpperCase()})}function u(n){return(n||"").split(";").reduce(function(n,t){var i,u;return h.test(t.trim())&&(i=RegExp.$1,u=RegExp.$2,n[r(i)]=u),n},{})}function f(n){var t=u(n.getAttribute("data-style"));0!==Object.keys(t).length&&(n.setAttribute("data-csp-fix","true"),s.forIn(t,function(t,i){n.style[t]=i}))}function e(n){n.selectors({cspForcedStyle:".js-cspForcedStyle"});n.after("prepForInsertion",function(n){o.inlineStyle()||this.select(n,"cspForcedStyle").forEach(f)})}var o=i(67),s=(i(10),i(12)),h=/^([a-zA-Z-]+):\s*(.+)$/;n.exports=e},function(n,t,i){function u(n){n.define("injectPublisherMetadataParams",function(n){n.getAttribute(r)||(n.setAttribute(r,!0),n.href=f(n.href))});n.after("render",function(){this.on("click","A",function(n,t){e.isStatus(t.href)&&this.injectPublisherMetadataParams(t)})})}var f=i(145),e=i(25),r="data-url-pubmeta-attrs-injected";n.exports=u},function(n,t,i){function f(n){var t={};return r.val("site")&&(t.tfw_site=u(r.val("site"))),r.val("creator")&&(t.tfw_creator=u(r.val("creator"))),e.url(n,t)}var u=i(105),r=i(42),e=i(26);n.exports=f},function(n,t,i){function r(n){n.after("prepForInsertion",function(n){u.retinize(n)})}var u=i(140);n.exports=r},function(n,t,i){function f(n){n.after("prepForInsertion",function(n){u.setSrcForImgs(n,this.sandbox.width,r.sync)});n.after("resize",function(){u.setSrcForImgs(this.el,this.sandbox.width,r.write)})}var r=i(37),u=i(140);n.exports=f},function(n){function t(n){n.after("render",function(){var n=this.el.getAttribute(i);n&&this.sandbox.setTitle&&this.sandbox.setTitle(n)})}var i="data-iframe-title";n.exports=t},function(n,t,i){function f(n){return n.every(s.isInt)}function e(n){var t=n.map(function(n){return{size:+n,className:u+n}}).sort(function(n,t){return n.size-t.size});return t.unshift({size:0,className:h}),t}function o(n){n.params({breakpoints:{required:!0,validate:f,transform:e}});n.define("getClassForWidth",function(n){for(var r,i,t=this.params.breakpoints.length-1;t>=0;t--)if(i=this.params.breakpoints[t],n>i.size){r=i.className;break}return r});n.after("initialize",function(){this.allBreakpoints=this.params.breakpoints.map(function(n){return n.className})});n.define("recalculateBreakpoints",function(){var n=this.getClassForWidth(this.sandbox.width);return n&&this.sandbox.hasRootClass(n)?r.resolve():r.all([this.sandbox.removeRootClass(this.allBreakpoints),this.sandbox.addRootClass(n)])});n.after("render",function(){return this.recalculateBreakpoints()});n.after("resize",function(){return this.recalculateBreakpoints()})}var r=i(2),s=i(27),u="env-bp-",h=u+"min";n.exports=o},,function(n,t,i){function o(n,t,i){var s,e=new f,o=u(n,i);if(o)return(s=r.createPlayerForTweet(o.element,t,o.options))?(e.resolve(s),e.promise):e.reject(new Error("unable to create tweet video player"))}function s(n,t,i){var e,o=new f,s=u(n,i);return s?(e=r.createPlayerForLiveVideo(s.element,t,s.options),e.on("ready",function(){e.playPreview();o.resolve(e)}),o.promise):o.reject(new Error("unable to initialize event video player"))}function h(n){var t=n.querySelector(".wvp-player-container"),i=t&&r.findPlayerForElement(t);if(i)return i.teardown()}function c(n){return r.findPlayerForElement(n)}function u(n,t){var i,u;if(t=t||{},u={scribeContext:t.scribeContext||{client:"tfw"},languageCode:t.languageCode,hideControls:t.hideControls||!1,addTwitterBranding:t.addBranding||!1,widgetOrigin:t.widgetOrigin,borderRadius:t.borderRadius},i=l(n,".wvp-player-container"),i.length>0)return e&&r.setBaseUrl(e),{element:i[0],options:u}}var f=i(1),l=i(86),r=i(152),e=null;n.exports={insertForTweet:o,insertForEvent:s,remove:h,find:c}},function(n,t,i){var r;!function(u,f){r=function(){return u.TwitterVideoPlayer=f()}.call(t,i,t,n);!(void 0!==r&&(n.exports=r))}(this,function(){function u(t){var i,u,f,r;t&&t.data&&t.data.params&&t.data.params[0]&&(i=t.data.params[0],u=t.data.id,i&&i.context&&"TwitterVideoPlayer"===i.context&&(f=i.playerId,delete i.playerId,delete i.context,r=n[f],r&&r.processMessage(t.data.method,i,u)))}function f(n,t,i){var r=Object.keys(i).filter(function(n){return null!=i[n]}).map(function(n){var t=i[n];return encodeURIComponent(n)+"="+encodeURIComponent(t)}).join("&");return r&&(r="?"+r),n+t+r}function t(t,i,e,s){var l=t.ownerDocument,a=l.defaultView,h,c;if(a.addEventListener("message",u),this.playerId=o++,h={embed_source:"clientlib",player_id:this.playerId,rpc_init:1},this.scribeParams={},this.scribeParams.suppressScribing=s&&s.suppressScribing,!this.scribeParams.suppressScribing){if(!s.scribeContext)throw"video_player: Missing scribe context";if(!s.scribeContext.client)throw"video_player: Scribe context missing client property";this.scribeParams.client=s.scribeContext.client;this.scribeParams.page=s.scribeContext.page;this.scribeParams.section=s.scribeContext.section;this.scribeParams.component=s.scribeContext.component}return this.scribeParams.debugScribe=s&&s.scribeContext&&s.scribeContext.debugScribing,this.scribeParams.scribeUrl=s&&s.scribeContext&&s.scribeContext.scribeUrl,this.promotedLogParams=s.promotedContext,this.adRequestCallback=s.adRequestCallback,s.languageCode&&(h.language_code=s.languageCode),"tfw"===this.scribeParams.client&&(h.use_syndication_guest_id=!0),c=f(r,i,h),this.videoIframe=document.createElement("iframe"),this.videoIframe.setAttribute("src",c),this.videoIframe.setAttribute("allowfullscreen",""),this.videoIframe.setAttribute("id",e),this.videoIframe.setAttribute("style","width: 100%; height: 100%; position: absolute; top: 0; left: 0;"),this.domElement=t,this.domElement.appendChild(this.videoIframe),n[this.playerId]=this,this.eventCallbacks={},this.emitEvent=function(n,t){var i=this.eventCallbacks[n];"undefined"!=typeof i&&i.forEach(function(n){n.apply(this.playerInterface,[t])}.bind(this))},this.jsonRpc=function(n){var t=this.videoIframe.contentWindow;n.jsonrpc="2.0";t&&t.postMessage&&t.postMessage(JSON.stringify(n),"*")},this.jsonRpcCall=function(n,t){this.jsonRpc({method:n,params:t})},this.jsonRpcResult=function(n,t){this.jsonRpc({result:n,id:t})},this.processMessage=function(n,t,i){switch(n){case"requestPlayerConfig":this.jsonRpcResult({scribeParams:this.scribeParams,promotedLogParams:this.promotedLogParams,squareCorners:s.squareCorners,borderRadius:s.borderRadius,hideControls:s.hideControls,embedded:s.addTwitterBranding,widgetOrigin:s.widgetOrigin,ignoreFineGrainGeoblocking:s.ignoreFineGrainGeoblocking},i);break;case"videoPlayerAdStart":this.emitEvent("adStart",t);break;case"videoPlayerAdEnd":this.emitEvent("adEnd",t);break;case"videoPlayerPlay":this.emitEvent("play",t);break;case"videoPlayerPause":this.emitEvent("pause",t);break;case"videoPlayerMute":this.emitEvent("mute",t);break;case"videoPlayerUnmute":this.emitEvent("unmute",t);break;case"videoPlayerPlaybackComplete":this.emitEvent("playbackComplete",t);break;case"videoPlayerReady":this.emitEvent("ready",t);break;case"videoView":this.emitEvent("view",t);break;case"debugLoggingEvent":this.emitEvent("logged",t);break;case"requestDynamicAd":"function"==typeof this.adRequestCallback?this.jsonRpcResult(this.adRequestCallback(),i):this.jsonRpcResult({},i);break;case"videoPlayerError":t&&"NO_COOKIES_ERROR"===t.error_category?this.emitEvent("noCookiesError",t):t&&"GEOBLOCK_ERROR"===t.error_category&&this.emitEvent("geoblockError",t)}},this.playerInterface={on:function(n,t){return"undefined"==typeof this.eventCallbacks[n]&&(this.eventCallbacks[n]=[]),this.eventCallbacks[n].push(t),this.playerInterface}.bind(this),off:function(n,t){var i,r;return"undefined"==typeof t?delete this.eventCallbacks[n]:(i=this.eventCallbacks[n],"undefined"!=typeof i&&(r=i.indexOf(t),r>-1&&i.splice(r,1))),this.playerInterface}.bind(this),play:function(){return this.jsonRpcCall("play"),this.playerInterface}.bind(this),pause:function(){return this.jsonRpcCall("pause"),this.playerInterface}.bind(this),mute:function(){return this.jsonRpcCall("mute"),this.playerInterface}.bind(this),unmute:function(){return this.jsonRpcCall("unmute"),this.playerInterface}.bind(this),playPreview:function(){return this.jsonRpcCall("autoPlayPreview"),this.playerInterface}.bind(this),pausePreview:function(){return this.jsonRpcCall("autoPlayPreviewStop"),this.playerInterface}.bind(this),updatePosition:function(n){return this.jsonRpcCall("updatePosition",[n]),this.playerInterface}.bind(this),updateLayoutBreakpoint:function(n){return this.jsonRpcCall("updateLayoutBreakpoint",[n]),this.playerInterface}.bind(this),enterFullScreen:function(){return this.jsonRpcCall("enterFullScreen"),this.playerInterface}.bind(this),exitFullScreen:function(){return this.jsonRpcCall("exitFullScreen"),this.playerInterface}.bind(this),teardown:function(){this.eventCallbacks={};t.removeChild(this.videoIframe);this.videoIframe=void 0;delete n[this.playerId]}.bind(this)},this.playerInterface}var r="https://twitter.com",e=/^https?:\/\/([a-zA-Z0-9]+\.)*twitter.com(:\d+)?$/,i={suppressScribing:!1,squareCorners:!1,hideControls:!1,addTwitterBranding:!1},o=0,n={};return{setBaseUrl:function(n){e.test(n)?r=n:window.console.error("newBaseUrl "+n+" not allowed")},createPlayerForTweet:function(n,r,u){var f="/i/videos/tweet/"+r,e="player_tweet_"+r;return new t(n,f,e,u||i)},createPlayerForDm:function(n,r,u){var f="/i/videos/dm/"+r,e="player_dm_"+r;return new t(n,f,e,u||i)},createPlayerForLiveVideo:function(n,r,u){var f="/i/videos/live_video/"+r,e="player_live_video_"+r;return new t(n,f,e,u||i)},findPlayerForElement:function(t){var r,i;for(r in n)if(n.hasOwnProperty(r)&&(i=n[r],i&&i.domElement===t))return i.playerInterface;return null}}})},function(n,t,i){function f(n){n.selectors({clickToOpen:".js-clickToOpenTarget"});n.define("shouldOpenTarget",function(n){var t=r.closest("A",n.target,this.el),i=r.closest("BUTTON",n.target,this.el),u=this.sandbox.hasSelectedText();return!t&&!i&&!u});n.define("openTarget",function(n,t){var i=t&&t.getAttribute(s);i&&(e(i),this.scribeOpenClick(n))});n.define("attemptToOpenTarget",function(n,t){this.shouldOpenTarget(n)&&this.openTarget(n,t)});n.define("scribeOpenClick",function(n){var t=u.extractTermsFromDOM(n.target),i={associations:u.formatTweetAssociation(t)};this.scribe({section:"chrome",action:"click"},i)});n.after("render",function(){this.on("click","clickToOpen",this.attemptToOpenTarget)})}var r=i(22),e=i(154),o=i(91),u=i(51),s="data-click-to-open-target";n.exports=o.couple(i(104),f)},function(n,t,i){function u(n){r.isTwitterURL(n)&&(n=o(n));r.isStatus(n)&&(n=e(n));f.open(n)}var f=i(7),e=i(145),o=i(103),r=i(25);n.exports=u},function(n,t,i){function e(n){n.params({productName:{required:!0},dataSource:{required:!1},related:{required:!1},partner:{fallback:l(u.val,u,"partner")}});n.selectors({timeline:".timeline",tweetIdInfo:".js-tweetIdInfo"});n.define("injectWebIntentParams",function(n){var t=r.closest(this.selectors.timeline,n,this.el),i=r.closest(this.selectors.tweetIdInfo,n,this.el);n.getAttribute(f)||(n.setAttribute(f,!0),n.href=h.url(n.href,{tw_w:this.params.dataSource&&this.params.dataSource.id,tw_i:i&&i.getAttribute("data-tweet-id"),tw_p:this.params.productName,related:this.params.related,partner:this.params.partner,query:t&&t.getAttribute("data-search-query"),profile_id:t&&t.getAttribute("data-profile-id"),original_referer:s.rootDocumentLocation()}))});n.after("render",function(){this.on("click","A",function(n,t){c.isIntentURL(t.href)&&(this.injectWebIntentParams(t),o.open(t.href,this.sandbox.sandboxEl,n))})})}var r=i(22),u=i(42),o=i(24),s=i(48),h=i(26),c=i(25),l=i(15),f="data-url-params-injected";n.exports=e},function(n,t,i){function u(n){n.before("render",function(){r.ios()&&this.sandbox.addRootClass("env-ios");r.ie9()&&this.sandbox.addRootClass("ie9");r.touch()&&this.sandbox.addRootClass("is-touch")})}var r=i(8);n.exports=u},function(n,t,i){function r(n){n.params({pageForAudienceImpression:{required:!0}});n.before("hydrate",function(){u.scribeAudienceImpression(this.params.pageForAudienceImpression)})}var u=i(158);n.exports=r},function(n,t,i){function e(){return u.formatGenericEventData("syndicated_impression",{})}function o(){r("tweet")}function s(){r("timeline")}function h(){r("video")}function c(){r("partnertweet")}function r(n){a.isHostPageSensitive()||f[n]||(f[n]=!0,l.scribe(u.formatClientEventNamespace({page:n,action:"impression"}),e(),u.AUDIENCE_ENDPOINT))}var l=i(72),u=i(51),a=i(50),f={};n.exports={scribeAudienceImpression:r,scribePartnerTweetAudienceImpression:c,scribeTweetAudienceImpression:o,scribeTimelineAudienceImpression:s,scribeVideoAudienceImpression:h}},function(n,t,i){function r(n){var t={action:"dimensions"},i=new f(e);n.after("show",function(){var n,r,u;i.nextBoolean()&&(n=this.sandbox.width,r=this.sandbox.height,u={widget_width:n,widget_height:r},this.scribe(t,u))})}var u=i(91),f=i(160),e=1;n.exports=u.couple(i(104),r)},function(n){function t(n){this.percentage=n}t.prototype.nextBoolean=function(){return 100*Math.random()<this.percentage};n.exports=t},,function(n,t,i){function u(n){var t={transparent:!1,hideBorder:!1,hideHeader:!1,hideFooter:!1,hideScrollBar:!1};return n=n||"",r.contains(n,"transparent")&&(t.transparent=!0),r.contains(n,"noborders")&&(t.hideBorder=!0),r.contains(n,"noheader")&&(t.hideHeader=!0),r.contains(n,"nofooter")&&(t.hideFooter=!0),r.contains(n,"noscrollbar")&&(t.hideScrollBar=!0),t}var r=i(12);n.exports=u},function(n,t,i){function r(n){var t=s(n),i={momentId:o.momentId(n.href),chrome:n.getAttribute("data-chrome"),limit:n.getAttribute("data-limit")};return e.forIn(i,function(n,i){var r=t[n];t[n]=f.hasValue(r)?r:i}),t}function u(n){var t=h(n,l);return t.map(function(n){return c(r(n),n.parentNode,n)})}var f=i(27),e=i(12),o=i(25),s=i(83),h=i(85)(),c=i(164),l="a.twitter-moment";n.exports=u},function(n,t,i){function r(n,t,i){return new u(f,e,"twitter-moment",n,t,i)}var u=i(88),f=i(165),e=i(54);n.exports=r},function(n,t,i){function r(n,t){var r=new u;return i.e(4,function(u){var f;if(u)return r.reject(u);try{f=i(166);r.resolve(new f(n,t))}catch(n){r.reject(n)}}),r.promise}var u=i(1);n.exports=r},,,,function(n,t,i){function r(n){n.selectors({inViewportMarker:".js-inViewportScribingTarget"});n.define("scribeInViewportSeen",function(n,t){var i=u.extractTermsFromDOM(n);i.action="seen";this.scribe(i,t,e.version)});n.after("show",function(){var n=this.selectors.inViewportMarker,t=this.select(n);t.forEach(function(n){n&&o.inViewportOnce(n,this.sandbox.sandboxEl,function(){this.scribeInViewportSeen(n,this.scribeItems())}.bind(this))},this)})}var u=i(51),f=i(91),e=i(53),o=i(170);n.exports=f.couple(i(104),r)},function(n,t,i){var s=i(171),h=i(68),f=i(172),u=i(7),e=i(8),c=50,o=function(n){return(u.requestIdleCallback||u.requestAnimationFrame||function(n){n()})(n)},r=function(){this.observers=[]};r.prototype._register=function(n,t,i){var r,h=this;return e.hasIntersectionObserverSupport()?(r=new u.IntersectionObserver(function(n){n.forEach(function(n){n.intersectionRatio>=1&&(o(i),h._unregister(r))})},{threshold:1}),r.observe(n),r):(r={update:function(u,f){s(n,{viewportWidth:u,viewportHeight:f,sandboxEl:t})&&(i(),h._unregister(r))}},this.observers.push(r),1===this.observers.length&&(this.unlisten=f.addScrollListener(this._onViewportChange.bind(this))),this._onViewportChange(),r)};r.prototype._unregister=function(n){var t;e.hasIntersectionObserverSupport()&&n instanceof u.IntersectionObserver?n.disconnect():(t=this.observers.indexOf(n),t>-1&&(this.observers.splice(t,1),0===this.observers.length&&this.unlisten&&this.unlisten()))};r.prototype._onViewportChange=function(){h(o(function(){this._notify(f.getWidth(),f.getHeight())}.bind(this)),c,this)};r.prototype._notify=function(n,t){this.observers.forEach(function(i){i.update(n,t)})};r.prototype.inViewportOnce=function(n,t,i){return this._register(n,t,i)};n.exports=new r},function(n,t,i){function u(n,t){var e,o,i,u;return t=t||{},o=t.viewportWidth||r.innerWidth,e=t.viewportHeight||r.innerHeight,i=n.getBoundingClientRect(),n.ownerDocument!==f&&t.sandboxEl&&(u=t.sandboxEl.getBoundingClientRect(),i={top:i.top+u.top,bottom:i.bottom+u.top,left:i.left+u.left,right:i.right+u.left}),i.top>=0&&i.left>=0&&i.bottom<=e&&i.right<=o}var f=i(9),r=i(7);n.exports=u},function(n,t,i){var r=i(7),u={_addListener:function(n,t){var u,i=function(){t()};return r.addEventListener(n,i),u=function(){r.removeEventListener(n,i)}},addScrollListener:function(n){return this._addListener("scroll",n)},getHeight:function(){return r.innerHeight},getWidth:function(){return r.innerWidth}};n.exports=u},,function(n,t,i){function r(n){var t=e(n),i=n.getAttribute("href"),r=n.getAttribute("data-size"),u=c.exec(i)[1];return f.aug(t,{username:u,size:r})}function u(n){var t=o(n,h);return t.map(function(n){return s(r(n),n.parentNode,n)})}var f=i(12),e=i(83),o=i(85)(),s=i(175),h="a.periscope-on-air",c=/^https?:\/\/(?:www\.)?(?:periscope|pscp)\.tv\/@?([a-zA-Z0-9_]+)\/?$/i;n.exports=u},function(n,t,i){function r(n,t,i){return new u(f,e,"periscope-on-air",n,t,i)}var u=i(88),f=i(176),e=i(54);n.exports=r},function(n,t,i){function r(n,t){var r=new u;return i.e(5,function(u){var f;if(u)return r.reject(u);try{f=i(177);r.resolve(new f(n,t))}catch(n){r.reject(n)}}),r.promise}var u=i(1);n.exports=r},,,,function(n,t,i){function r(n){var r=h(n),i=n.getAttribute("data-show-replies"),t={widgetId:n.getAttribute("data-widget-id"),chrome:n.getAttribute("data-chrome"),tweetLimit:n.getAttribute("data-tweet-limit"),ariaLive:n.getAttribute("data-aria-polite"),theme:n.getAttribute("data-theme"),linkColor:n.getAttribute("data-link-color"),borderColor:n.getAttribute("data-border-color"),showReplies:i?f.asBoolean(i):null,profileScreenName:n.getAttribute("data-screen-name"),profileUserId:n.getAttribute("data-user-id"),favoritesScreenName:n.getAttribute("data-favorites-screen-name"),favoritesUserId:n.getAttribute("data-favorites-user-id"),likesScreenName:n.getAttribute("data-likes-screen-name"),likesUserId:n.getAttribute("data-likes-user-id"),listOwnerScreenName:n.getAttribute("data-list-owner-screen-name"),listOwnerUserId:n.getAttribute("data-list-owner-id"),listId:n.getAttribute("data-list-id"),listSlug:n.getAttribute("data-list-slug"),customTimelineId:n.getAttribute("data-custom-timeline-id"),staticContent:n.getAttribute("data-static-content"),url:n.href};return t=e.aug(t,r),t.dataSource=o(t),t.useLegacyDefaults=t.dataSource instanceof s,t}function u(n){var t=c(n,a);return t.map(function(n){return l(r(n),n.parentNode,n)})}var f=i(27),e=i(12),o=i(181),s=i(196),h=i(83),c=i(85)(),l=i(198),a="a.twitter-timeline,div.twitter-timeline";n.exports=u},function(n,t,i){function c(n){var i,t;return i=(n.sourceType+"").toLowerCase(),t=y[i],t?new t(n):null}function r(n){return a(p,function(t){try{return new t(n)}catch(n){}})}function l(n){return n?c(n)||r(n):null}var a=i(141),u=i(182),f=i(186),e=i(188),o=i(190),v=i(192),s=i(194),h=i(196),y={collection:u,event:f,likes:e,list:o,profile:s,widget:h,url:r},p=[h,s,e,u,o,f,v];n.exports=l},function(n,t,i){var r=i(183);n.exports=r.build([i(184),i(185)])},function(n,t,i){var r=i(56),u=i(60),f=i(15);r=Object.create(r);r.build=f(r.build,null,u);n.exports=r},function(n,t,i){function r(n){if(!n||!n.headers)throw new Error("unexpected response schema");return{html:n.body,config:n.config,pollInterval:1e3*parseInt(n.headers.xPolling,10)||null,maxCursorPosition:n.headers.maxPosition,minCursorPosition:n.headers.minPosition}}function u(n){if(n&&n.headers)throw new Error(n.headers.status);throw n instanceof Error?n:new Error(n);}function o(n){n.params({instanceId:{required:!0,fallback:y.deterministic},lang:{required:!0,transform:c.matchLanguage,fallback:"en"},tweetLimit:{transform:v.asInt}});n.defineProperty("endpoint",{get:function(){throw new Error("endpoint not specified");}});n.defineProperty("pollEndpoint",{get:function(){return this.endpoint}});n.define("cbId",function(n){var t=n?"_new":"_old";return"tl_"+this.params.instanceId+"_"+this.id+t});n.define("queryParams",function(){return{lang:this.params.lang,tz:l.getTimezoneOffset(),t:s(),domain:h.host,tweet_limit:this.params.tweetLimit,dnt:a.enabled()}});n.define("fetch",function(){return f.fetch(this.endpoint,this.queryParams(),e,this.cbId()).then(r,u)});n.define("poll",function(n,t){var i,o;return n=n||{},i={since_id:n.sinceId,max_id:n.maxId,min_position:n.minPosition,max_position:n.maxPosition},o=p.aug(this.queryParams(),i),f.fetch(this.pollEndpoint,o,e,this.cbId(t)).then(r,u)})}var s=i(137),f=i(134),e=i(135),h=i(11),c=i(97),l=i(136),a=i(47),v=i(27),y=i(30),p=i(12);n.exports=o},function(n,t,i){function r(n,t){return f.collectionId(n)||t}function u(n){n.params({id:{},url:{}});n.overrideProperty("id",{get:function(){var n=r(this.params.url,this.params.id);return s+n}});n.overrideProperty("endpoint",{get:function(){return o.timeline(["collection"])}});n.around("queryParams",function(n){return e.aug(n(),{collection_id:r(this.params.url,this.params.id)})});n.before("initialize",function(){if(!r(this.params.url,this.params.id))throw new Error("one of url or id is required");})}var f=i(25),e=i(12),o=i(77),s="collection:";n.exports=u},function(n,t,i){var r=i(183);n.exports=r.build([i(184),i(187)])},function(n,t,i){function r(n,t){return f.eventId(n)||t}function u(n){n.params({id:{},url:{}});n.overrideProperty("id",{get:function(){var n=r(this.params.url,this.params.id);return s+n}});n.overrideProperty("endpoint",{get:function(){return o.timeline(["event"])}});n.around("queryParams",function(n){return e.aug(n(),{event_id:r(this.params.url,this.params.id)})});n.before("initialize",function(){if(!r(this.params.url,this.params.id))throw new Error("one of url or id is required");})}var f=i(25),e=i(12),o=i(77),s="event:";n.exports=u},function(n,t,i){var r=i(183);n.exports=r.build([i(184),i(189)])},function(n,t,i){function r(n){return f.likesScreenName(n.url)||n.screenName}function u(n){n.params({screenName:{},userId:{},url:{}});n.overrideProperty("id",{get:function(){var n=r(this.params)||this.params.userId;return s+n}});n.overrideProperty("endpoint",{get:function(){return o.timeline(["likes"])}});n.define("_getLikesQueryParam",function(){var n=r(this.params);return n?{screen_name:n}:{user_id:this.params.userId}});n.around("queryParams",function(n){return e.aug(n(),this._getLikesQueryParam())});n.before("initialize",function(){if(!r(this.params)&&!this.params.userId)throw new Error("screen name or user id is required");})}var f=i(25),e=i(12),o=i(77),s="likes:";n.exports=u},function(n,t,i){var r=i(183);n.exports=r.build([i(184),i(191)])},function(n,t,i){function r(n){var t=o.listScreenNameAndSlug(n.url)||n;return u.compact({screen_name:t.ownerScreenName,user_id:t.ownerUserId,list_slug:t.slug})}function e(n){n.params({id:{},ownerScreenName:{},ownerUserId:{},slug:{},url:{}});n.overrideProperty("id",{get:function(){var n,t,i;return this.params.id?f+this.params.id:(n=r(this.params),t=n&&n.list_slug.replace(/-/g,"_"),i=n&&(n.screen_name||n.user_id),f+(i+":"+t))}});n.overrideProperty("endpoint",{get:function(){return s.timeline(["list"])}});n.define("_getListQueryParam",function(){return this.params.id?{list_id:this.params.id}:r(this.params)});n.around("queryParams",function(n){return u.aug(n(),this._getListQueryParam())});n.before("initialize",function(){var n=r(this.params);if(u.isEmptyObject(n)&&!this.params.id)throw new Error("qualified slug or list id required");})}var o=i(25),u=i(12),s=i(77),f="list:";n.exports=e},function(n,t,i){var r=i(183);n.exports=r.build([i(184),i(193)])},function(n,t,i){function r(n){n.params({previewParams:{required:!0,validate:u.isObject}});n.overrideProperty("id",{get:function(){return"preview"}});n.overrideProperty("endpoint",{get:function(){return f.timelinePreconfigured(["preview"])}});n.override("queryParams",function(){return this.params.previewParams})}var u=i(27),f=i(77);n.exports=r},function(n,t,i){var r=i(183);n.exports=r.build([i(184),i(195)])},function(n,t,i){function r(n,t){return e.screenName(n)||t}function f(n){n.params({showReplies:{fallback:!1,transform:o.asBoolean},screenName:{},userId:{},url:{}});n.overrideProperty("id",{get:function(){var n=r(this.params.url,this.params.screenName);return h+(n||this.params.userId)}});n.overrideProperty("endpoint",{get:function(){return s.timeline(["profile"])}});n.define("_getProfileQueryParam",function(){var n=r(this.params.url,this.params.screenName),t=n?{screen_name:n}:{user_id:this.params.userId};return u.aug(t,{with_replies:this.params.showReplies?"true":"false"})});n.around("queryParams",function(n){return u.aug(n(),this._getProfileQueryParam())});n.before("initialize",function(){var n=r(this.params.url,this.params.screenName);if(!n&&!this.params.userId)throw new Error("screen name or user id is required");})}var e=i(25),o=i(27),u=i(12),s=i(77),h="profile:";n.exports=f},function(n,t,i){var r=i(183);n.exports=r.build([i(184),i(197)])},function(n,t,i){function f(n){n.params({widgetId:{required:!0},profileShowReplies:{fallback:!1,transform:r.asBoolean},showReplies:{fallback:!1,transform:r.asBoolean},profileScreenName:{},screenName:{},profileUserId:{},userId:{},favoritesScreenName:{},favoritesUserId:{},listOwnerScreenName:{},listOwnerUserId:{},listOwnerId:{},listId:{},listSlug:{},customTimelineId:{},previewParams:{}});n.overrideProperty("id",{get:function(){return this.params.widgetId}});n.overrideProperty("endpoint",{get:function(){return u.timelinePreconfigured([this.params.widgetId])}});n.overrideProperty("pollEndpoint",{get:function(){return u.timelinePreconfigured(["paged",this.params.widgetId])}});n.define("_getWidgetQueryParams",function(){var n=this.params.profileScreenName||this.params.screenName,t=this.params.profileUserId||this.params.userId,r=this.params.profileShowReplies||this.params.showReplies,i=this.params.listOwnerUserId||this.params.listOwnerId;return n||t?{override_type:"user",override_id:t,override_name:n,with_replies:r?"true":"false"}:this.params.favoritesScreenName||this.params.favoritesUserId?{override_type:"favorites",override_id:this.params.favoritesUserId,override_name:this.params.favoritesScreenName}:this.params.listOwnerScreenName||i||this.params.listId||this.params.listSlug?{override_type:"list",override_owner_id:i,override_owner_name:this.params.listOwnerScreenName,override_id:this.params.listId,override_name:this.params.listSlug}:this.params.customTimelineId?{override_type:"custom",override_id:this.params.customTimelineId}:void 0});n.around("queryParams",function(n){return e.aug(n(),this._getWidgetQueryParams())})}var r=i(27),e=i(12),u=i(77);n.exports=f},function(n,t,i){function r(n,t,i){return new u(f,e,"twitter-timeline",n,t,i)}var u=i(88),f=i(199),e=i(54);n.exports=r},function(n,t,i){function r(n,t){var r=new u;return i.e(6,function(u){var f;if(u)return r.reject(u);try{f=i(200);r.resolve(new f(n,t))}catch(n){r.reject(n)}}),r.promise}var u=i(1);n.exports=r},,,,,,,,,,,,,,,,,,,,,,,,,,function(n,t,i){function u(n){var c=s(n),t=n.getElementsByTagName("A"),u=t&&t[t.length-1],l=u&&e.status(u.href),f=n.getAttribute("data-conversation"),v="none"==f||"hidden"==f||r.present(n,"tw-hide-thread"),h=n.getAttribute("data-cards"),y="none"==h||"hidden"==h||r.present(n,"tw-hide-media"),i=n.getAttribute("data-align")||n.getAttribute("align"),p=n.getAttribute("data-link-color"),w=n.getAttribute("data-theme");return!i&&a.test(n.className)&&(i=RegExp.$1),o.aug(c,{tweetId:l,hideThread:v,hideCard:y,align:i,linkColor:p,theme:w})}function f(n){var t=h(n,l);return t.map(function(n){return c(u(n),n.parentNode,n)})}var r=i(21),e=i(25),o=i(12),s=i(83),h=i(85)(),c=i(226),l="blockquote.twitter-tweet",a=/\btw-align-(left|right|center)\b/;n.exports=f},function(n,t,i){function r(n,t,i){return new u(f,e,"twitter-tweet",n,t,i)}var u=i(88),f=i(227),e=i(110);n.exports=r},function(n,t,i){function r(n,t){var r=new u;return i.e(7,function(u){var f;if(u)return r.reject(u);try{f=i(228);r.resolve(new f(n,t))}catch(n){r.reject(n)}}),r.promise}var u=i(1);n.exports=r},,,,,function(n,t,i){function f(n){return n.input.lang||w}function e(n,t){var i={ids:[],lang:n,tz:y.getTimezoneOffset()};return i=t.reduce(function(n,t){return n.ids.push(t.input.id),n},i),i.ids=i.ids.sort().join(","),i}function o(n,t){n.forEach(function(n){var i=t[n.input.id];i?n.taskDoneDeferred.resolve(i):n.taskDoneDeferred.reject(new Error("not found"))})}function s(n){n.forEach(function(n){n.taskDoneDeferred.reject(new Error("request failed"))})}function h(n,t){var i=a(t,f);p.forIn(i,function(t,i){var u=e(t,i),f=r(o,null,i),h=r(s,null,i);l.fetch(n,u,c).then(f,h)})}function u(n){this.requestQueue=new v(r(h,null,n))}var c=i(233),l=i(134),a=i(44),v=i(40),y=i(136),p=i(12),r=i(15),w="en";u.prototype.fetch=function(n,t){return this.requestQueue.add({id:n,lang:t})};n.exports=u},function(n){function t(n){return{success:!0,resp:n}}n.exports=t},,,,,,,,function(n,t,i){function o(){e++;f()}function f(){r&&r.length===e&&(u.emitter.trigger(u.ALL_WIDGETS_AND_IMAGES_LOADED,r),r=null)}var r,u=i(242),e=0;u.emitter.bind(u.ALL_WIDGETS_RENDERED,function(n){r=n.widgets;f()});n.exports={reportImagesLoadForAWidget:o}},function(n,t,i){var r=i(32),u=r.makeEmitter();n.exports={emitter:u,START:"start",ALL_WIDGETS_RENDERED:"all_widgets_rendered",ALL_WIDGETS_AND_IMAGES_LOADED:"all_widgets_and_images_loaded"}},,function(n,t,i){function u(n){var t=o(n),i={screenName:n.getAttribute("data-button-screen-name"),text:n.getAttribute("data-text"),type:n.getAttribute("data-type"),size:n.getAttribute("data-size"),url:n.getAttribute("data-url"),hashtags:n.getAttribute("data-hashtags"),via:n.getAttribute("data-via"),buttonHashtag:n.getAttribute("data-button-hashtag")};return e.forIn(i,function(n,i){var r=t[n];t[n]=c.hasValue(r)?r:i}),t.screenName=t.screenName||t.screen_name,t.buttonHashtag=t.buttonHashtag||t.button_hashtag||t.hashtag,r.present(n,a)&&(t.type="hashtag"),r.present(n,v)&&(t.type="mention"),t}function f(n){var t=s(n,l);return t.map(function(n){return h(u(n),n.parentNode,n)})}var r=i(21),e=i(12),o=i(83),s=i(85)(),h=i(245),c=i(27),l="a.twitter-share-button, a.twitter-mention-button, a.twitter-hashtag-button",a="twitter-hashtag-button",v="twitter-mention-button";n.exports=f},function(n,t,i){function r(n,t,i){var r=n&&n.type||"share",o="hashtag"==r?"twitter-hashtag-button":"mention"==r?"twitter-mention-button":"twitter-share-button";return new u(f,e,o,n,t,i)}var u=i(88),f=i(246),e=i(121);n.exports=r},function(n,t,i){function r(n,t){var r=new u;return i.e(2,function(u){var f;if(u)return r.reject(u);try{f=i(247);r.resolve(new f(n,t))}catch(n){r.reject(n)}}),r.promise}var u=i(1);n.exports=r},,,function(n,t,i){function u(n){var u=e(n),i=n.getElementsByTagName("A"),f=i&&i[i.length-1],t={url:f.href};return t=r.aug({},t,r.compact(u)),t.dataSource=h(t),t}function f(n){var t=o(n,c);return t.map(function(n){return s(u(n),n.parentNode,n)})}var r=i(12),e=i(83),o=i(85)(),s=i(250),h=i(255),c="blockquote.twitter-video";n.exports=f},function(n,t,i){function r(n,t,i){return new u(f,e,"twitter-video",n,t,i)}var u=i(88),f=i(251),e=i(254);n.exports=r},function(n,t,i){function r(n,t){var r=new u;return i.e(7,function(u){var f;if(u)return r.reject(u);try{f=i(252);r.resolve(new f(n,t))}catch(n){r.reject(n)}}),r.promise}var u=i(1);n.exports=r},,,function(n,t,i){function u(n){n.overrideProperty("sandboxEl",{get:function(){return this._constrainingWrapper}});n.override("makeVisible",function(){var n=this.iframeEl;return r.write(function(){n.style.visibility="visible"})});n.define("setWrapperSize",function(n,t){var i=this,u=n/t,f=100/u+"%",e=s*u+"px";return r.write(function(){i._constrainingWrapper.style.maxWidth=e;i._iframeWrapper.style.paddingBottom=f})});n.after("initialize",function(){this._constrainingWrapper=this._iframeWrapper=null});n.around("insert",function(n,t,i,r,u){var s=this.targetGlobal.document,f=this._constrainingWrapper=s.createElement("div"),e=this._iframeWrapper=s.createElement("div");return f.id=t,f.className=(i||{}).class,f.style.minWidth=o+"px",f.style.position="relative",f.style.margin=h,e.style.position="relative",e.style.height="0px",f.appendChild(e),n(void 0,null,null,function(n){n.style.position="absolute";n.style.top="0px";n.style.bottom="0px";n.style.width="100%";n.style.height="100%";e.appendChild(n);u(f)})})}var r=i(37),f=i(55),e=i(64),o=320,s=500,h="10px 0px";n.exports=f.build([e,u])},function(n,t,i){function u(n){var i,t;return i=(n.sourceType+"").toLowerCase(),t=r[i],t?new t(n):null}function f(n){return o(Object.keys(r),function(t){var i=r[t];try{return new i(n)}catch(n){}})}function e(n){return n?u(n)||f(n):null}var o=i(141),r=i(256);n.exports=e},function(n,t,i){var r=i(257),u=i(260);n.exports={tweet:r,event:u}},function(n,t,i){var r=i(183);n.exports=r.build([i(258),i(259)])},function(n,t,i){function r(n){n.params({lang:{required:!0,transform:u.matchLanguage,fallback:"en"}});n.defineProperty("identifier",{get:function(){throw new Error("identifier not specified");}});n.defineProperty("name",{get:function(){throw new Error("name not specified");}});n.defineProperty("scribeItemType",{get:function(){throw new Error("scribeItemType not specified");}});n.define("fetch",function(){throw new Error("fetch not specified");})}var u=i(97);n.exports=r},function(n,t,i){function r(n,t){return t||f.status(n)}function u(n){n.params({id:{},url:{}});n.overrideProperty("identifier",{get:function(){return r(this.params.url,this.params.id)}});n.override("fetch",function(){return s.fetch(this.identifier,this.params.lang)});n.overrideProperty("scribeItemType",{get:function(){return h.TWEET}});n.overrideProperty("name",{get:function(){return"tweet"}});n.before("initialize",function(){if(!r(this.params.url,this.params.id))throw new Error("one of url or id is required");})}var f=i(25),e=i(77),o=i(232),s=new o(e.video()),h=i(109);n.exports=u},function(n,t,i){var r=i(183);n.exports=r.build([i(258),i(261)])},function(n,t,i){function r(n,t){return f.eventId(n)||t}function u(n){n.params({id:{},url:{}});n.overrideProperty("identifier",{get:function(){return r(this.params.url,this.params.id)}});n.override("fetch",function(){var n={lang:this.params.lang,event_id:this.identifier};return e.fetch(o.eventVideo(),n)});n.overrideProperty("scribeItemType",{get:function(){return s.LIVE_VIDEO_EVENT}});n.overrideProperty("name",{get:function(){return"event"}});n.before("initialize",function(){if(!r(this.params.url,this.params.id))throw new Error("one of url or id is required");})}var f=i(25),e=i(262),o=i(77),s=i(109);n.exports=u},function(n,t,i){function r(n,t){return o.fetch(n,t,u).then(f,e)}function u(n){return{success:!n.error,resp:n}}function f(n){return n.data.html}function e(n){return s.reject(n.error.detail)}var o=i(134),s=i(2);n.exports={fetch:r}},function(n,t,i){var r=i(12);n.exports=r.aug({},i(264),i(266),i(267),i(268),i(269),i(270),i(271),i(272),i(273))},function(n,t,i){var r=i(87),u=i(265),f=u(["userId"],{},r);n.exports={createDMButton:f}},function(n,t,i){function f(n,t,i){var f;return n=n||[],t=t||{},f="ƒ("+n.join(", ")+", target, [options]);",function(){var h,c,l,a,v=Array.prototype.slice.apply(arguments,[0,n.length]),y=Array.prototype.slice.apply(arguments,[n.length]);return y.forEach(function(n){if(n)return n.nodeType===Node.ELEMENT_NODE?void(l=n):r.isType("function",n)?void(h=n):void(r.isType("object",n)&&(c=n))}),v.length!==n.length||0===y.length?(h&&r.async(function(){h(!1)}),u.reject(new Error("Not enough parameters. Expected: "+f))):l?(c=r.aug({},c||{},t),n.forEach(function(n){c[n]=v.shift()}),s.asBoolean(c.dnt)&&o.setOn(),a=e.addWidget(i(c,l)),h&&a.then(h,function(){h(!1)}),a):(h&&r.async(function(){h(!1)}),u.reject(new Error("No target element specified. Expected: "+f)))}}var u=i(2),e=i(35),o=i(47),s=i(27),r=i(12);n.exports=f},function(n,t,i){var r=i(115),u=i(265),f=u(["screenName"],{},r);n.exports={createFollowButton:f}},function(n,t,i){var r=i(129),u=i(265),f=u(["collectionId"],{},r);n.exports={createGridFromCollection:f}},function(n,t,i){var r=i(164),u=i(265),f=u(["momentId"],{},r);n.exports={createMoment:f}},function(n,t,i){var r=i(175),u=i(265),f=u(["username"],{},r);n.exports={createPeriscopeOnAirButton:f}},function(n,t,i){function s(n){var t,i=r.toRealArray(arguments).slice(1);return r.isObject(n)||u.isString(n)?(n=n||{},i.forEach(function(n){r.isType("object",n)&&(t=n,h(t))}),t||(t={},i.push(t)),u.isString(n)&&(n=r.aug({},t,{sourceType:"widget",widgetId:n})),n.lang=t.lang,n.tweetLimit=t.tweetLimit,n.showReplies=t.showReplies,t.dataSource=f(n),t.useLegacyDefaults=t.dataSource instanceof a,e.apply(this,i)):p.reject("data source must be a string or an object.")}function h(n){n.ariaLive=n.ariaPolite}var c=i(11),l=i(25),r=i(12),u=i(27),f=i(181),a=i(196),v=i(198),y=i(265),e=y([],{},v),p=i(2),o={createTimeline:s};l.isTwitterURL(c.href)&&(o.createTimelinePreview=function(n,t,i){var r={previewParams:n,useLegacyDefaults:!0,isPreviewTimeline:!0};return r.dataSource=f(r),e(t,r,i)});n.exports=o},function(n,t,i){function f(n){return function(){return r.toRealArray(arguments).slice(1).forEach(function(n){r.isType("object",n)&&(n.hideCard="none"==n.cards||"hidden"==n.cards,n.hideThread="none"==n.conversation||"hidden"==n.conversation)}),n.apply(this,arguments)}}var r=i(12),e=i(226),o=i(265),u=f(o(["tweetId"],{},e));n.exports={createTweet:u,createTweetEmbed:u}},function(n,t,i){function r(n){return function(){return e.toRealArray(arguments).slice(1).forEach(function(n){e.isType("object",n)&&(n.screenName=n.screenName||n.screen_name,n.buttonHashtag=n.buttonHashtag||n.button_hashtag||n.hashtag)}),n.apply(this,arguments)}}var e=i(12),u=i(245),f=i(265),o=f(["url"],{type:"share"},u),s=f(["buttonHashtag"],{type:"hashtag"},u),h=f(["screenName"],{type:"mention"},u);n.exports={createShareButton:r(o),createHashtagButton:r(s),createMentionButton:r(h)}},function(n,t,i){function f(n){var t,i=r.toRealArray(arguments).slice(1),f=n||{};return i.forEach(function(n){r.isType("object",n)&&(t=n)}),t||(t={},i.push(t)),(u.isString(n)||u.isNumber(n))&&(f={sourceType:"tweet",id:n}),f.lang=t.lang,t.dataSource=s(f),h.apply(this,i)}var e=i(250),o=i(265),r=i(12),u=i(27),s=i(255),h=o([],{},e);n.exports={createVideo:f}},function(n,t,i){function s(){var n,t;for(u=1,n=0,t=f.length;n<t;n++)f[n]()}var h,c,e,r=i(9),l=i(7),u=0,f=[],a=!1,o=r.createElement("a");/^loade|c/.test(r.readyState)&&(u=1);r.addEventListener&&r.addEventListener("DOMContentLoaded",c=function(){r.removeEventListener("DOMContentLoaded",c,a);s()},a);o.doScroll&&r.attachEvent("onreadystatechange",h=function(){/^c/.test(r.readyState)&&(r.detachEvent("onreadystatechange",h),s())});e=o.doScroll?function(n){l.self!=l.top?u?n():f.push(n):!function(){try{o.doScroll("left")}catch(t){return setTimeout(function(){e(n)},50)}n()}()}:function(n){u?n():f.push(n)};n.exports=e},function(n,t,i){var r=i(53),u=i(18);n.exports=function(){u.set("buildVersion",r.version)}},function(n,t,i){i(277);i(241);i(281)},function(n,t,i){var f=i(278),r=i(242),e=i(280),u=new f;r.emitter.bind(r.START,function(){u.start()});r.emitter.bind(r.ALL_WIDGETS_RENDERED,function(){u.end();e(u.duration(),{action:"render"})})},function(n,t,i){function r(){}var u=i(279);r.prototype.start=function(){this._startTime=u()};r.prototype.end=function(){this._duration=u()-this._startTime};r.prototype.duration=function(){return this._duration};n.exports=r},function(n,t,i){var r=i(7);n.exports=function(){return r.performance&&r.performance.now?r.performance.now():Date.now()}},function(n,t,i){var u=i(43),r=i(48),f=i(12);n.exports=function(n,t){var i={widget_origin:r.rootDocumentLocation(),widget_frame:r.isFramed()?r.currentDocumentLocation():null,duration_ms:n},e=f.aug(t,{page:"page",component:"performance"});u.scribe(e,i)}},function(n,t,i){function s(n,t,i){var r=Object.keys(n).reduce(function(t,r){return i(r)?t+n[r]:t},0);c(r,{element:t,action:"resource"})}function r(n){return n.performance.getEntriesByType("resource").filter(function(n){return e.isTwimgURL(n.name)||e.isTwitterURL(n.name)}).reduce(function(n,t){return n[t.name]=t.duration,n},{})}function h(n){return n.reduce(function(n,t){return o.aug(n,r(t.contentDocument.defaultView))},{})}var u=i(242),c=i(280),f=i(282),e=i(25),l=i(7),o=i(12),a=i(8),v=i(111);u.emitter.bind(u.ALL_WIDGETS_AND_IMAGES_LOADED,function(n){var t,i,u=[];a.hasPerformanceInformation()&&(t=r(l),v.isSupported()||(u=h(n)),i=o.aug({},t,u),Object.keys(f).forEach(function(n){s(i,n,f[n])}))})},function(n,t,i){var r=i(25),u={all:function(){return!0},image:function(n){return r.isTwimgURL(n)},settings:function(n){return r.isSettingsURL(n)},widget_iframe:function(n){return r.isWidgetIframeURL(n)}};n.exports=u}])))}(),$(document).ready(function(){var n=new menubar("nav",!1)}),menubar.prototype.bindHandlers=function(){var n=this;this.$items.mouseenter(function(){return $(this).addClass("menu-hover"),!0});this.$items.mouseout(function(){return $(this).removeClass("menu-hover"),!0});this.$parents.mouseenter(function(t){return n.handleMouseEnter($(this),t)});this.$parents.mouseleave(function(t){return n.handleMouseLeave($(this),t)});this.$allItems.click(function(t){return n.handleClick($(this),t)});this.$allItems.keydown(function(t){return n.handleKeyDown($(this),t)});this.$allItems.keypress(function(t){return n.handleKeyPress($(this),t)});this.$allItems.focus(function(t){return n.handleFocus($(this),t)});this.$allItems.blur(function(t){return n.handleBlur($(this),t)});$(document).click(function(t){return n.handleDocumentClick(t)})},menubar.prototype.handleMouseEnter=function(n){return n.addClass("menu-hover"),n.attr("aria-haspopup")=="true"&&(n.children("ul").show().attr("aria-hidden","false"),this.bChildOpen=!0),!0},menubar.prototype.handleMouseOut=function(n){return n.removeClass("menu-hover"),!0},menubar.prototype.handleMouseLeave=function(n){var t=n.find(".menu-focus");return t=t.add(n.find(".menu-focus")),n.removeClass("menu-hover"),t.length>0&&(this.bChildOpen=!1,t.removeClass("menu-focus"),this.$activeItem=n,n.focus()),n.children("ul").hide().attr("aria-hidden","true"),!0},menubar.prototype.handleClick=function(n){var t=n.parent();return t.is(".root-level")?(n.children("ul").first().show().attr("aria-hidden","false"),this.bChildOpen=!0):(this.$allItems.removeClass("menu-hover menu-focus"),this.$id.find("ul").not(".root-level").hide().attr("aria-hidden","true")),!0},menubar.prototype.handleFocus=function(n){var t,i;if(this.$activeItem==null)this.$activeItem=n;else if(n[0]!=this.$activeItem[0])return!0;return t=this.$activeItem.parentsUntil("div").filter("li"),this.$allItems.removeClass("menu-focus"),this.$activeItem.addClass("menu-focus"),t.addClass("menu-focus"),this.vmenu==!0&&(this.bChildOpen==!0?(i=n.parent(),i.is(".root-level")&&n.attr("aria-haspopup")=="true"&&n.children("ul").show().attr("aria-hidden","false")):this.vmenu=!1),!0},menubar.prototype.handleBlur=function(n){return n.removeClass("menu-focus"),!0},menubar.prototype.handleKeyDown=function(n,t){var i,r;if(t.altKey||t.ctrlKey)return!0;switch(t.keyCode){case this.keys.tab:this.$id.find("ul").hide().attr("aria-hidden","true");this.$allItems.removeClass("menu-focus");this.$activeItem=null;this.bChildOpen==!1;break;case this.keys.esc:return i=n.parent(),i.is(".root-level")?n.children("ul").first().hide().attr("aria-hidden","true"):(this.$activeItem=i.parent(),this.bChildOpen=!1,this.$activeItem.focus(),i.hide().attr("aria-hidden","true")),t.stopPropagation(),!1;case this.keys.enter:case this.keys.space:return n.hasClass("menu-parent")?(r=n.parent(),r.is(".root-level")?window.location=n.find("a").eq(0).attr("href"):(this.$allItems.removeClass("menu-hover"),this.$allItems.removeClass("menu-focus"),this.$id.find("ul").not(".root-level").hide().attr("aria-hidden","true"),this.$activeItem=null),t.stopPropagation(),!1):(window.location=n.find("a").attr("href"),!1);case this.keys.left:return this.$activeItem=this.vmenu==!0&&i.is(".root-level")?this.moveUp(n):this.moveToPrevious(n),this.$activeItem.focus(),t.stopPropagation(),!1;case this.keys.right:return this.$activeItem=this.vmenu==!0&&i.is(".root-level")?this.moveDown(n):this.moveToNext(n),this.$activeItem.focus(),t.stopPropagation(),!1;case this.keys.up:return this.$activeItem=this.vmenu==!0&&i.is(".root-level")?this.moveToPrevious(n):this.moveUp(n),this.$activeItem.focus(),t.stopPropagation(),!1;case this.keys.down:return this.$activeItem=this.vmenu==!0&&i.is(".root-level")?this.moveToNext(n):this.moveDown(n),this.$activeItem.focus(),t.stopPropagation(),!1}return!0},menubar.prototype.moveToNext=function(n){var o=n.parent(),f=o.children("li"),s=f.length,e=f.index(n),i=null,r,u,t;if(o.is(".root-level"))i=e<s-1?n.next():f.first(),n.attr("aria-haspopup")=="true"&&(t=n.children("ul").first(),t.attr("aria-hidden")=="false"&&(t.hide().attr("aria-hidden","true"),this.bChildOpen=!0)),n.removeClass("menu-focus"),i.attr("aria-haspopup")=="true"&&this.bChildOpen==!0&&(t=i.children("ul").first(),t.show().attr("aria-hidden","false"),this.vmenu||(i=t.children("li").first()));else if(n.attr("aria-haspopup")=="true")t=n.children("ul").first(),i=t.children("li").first(),t.show().attr("aria-hidden","false"),this.bChildOpen=!0;else{if(this.vmenu==!0)return n;r=null;u=null;r=n.parentsUntil("div").filter("ul").not(".root-level");r.hide().attr("aria-hidden","true");r.find("li").removeClass("menu-focus");r.last().parent().removeClass("menu-focus");u=r.last().parent();e=this.$rootItems.index(u);i=e<this.$rootItems.length-1?u.next():this.$rootItems.first();i.attr("aria-haspopup")=="true"&&(t=i.children("ul").first(),i=t.children("li").first(),t.show().attr("aria-hidden","false"),this.bChildOpen=!0)}return i},menubar.prototype.moveToPrevious=function(n){var r=n.parent(),f=r.children("li"),s=f.length,e=f.index(n),t=null,i;if(r.is(".root-level"))t=e>0?n.prev():f.last(),n.attr("aria-haspopup")=="true"&&(i=n.children("ul").first(),i.attr("aria-hidden")=="false"&&(i.hide().attr("aria-hidden","true"),this.bChildOpen=!0)),n.removeClass("menu-focus"),t.attr("aria-haspopup")=="true"&&this.bChildOpen==!0&&(i=t.children("ul").first(),i.show().attr("aria-hidden","false"),this.vmenu||(t=i.children("li").first()));else{var u=r.parent(),o=u.parent();this.vmenu!=!0&&o.is(".root-level")?(r.hide().attr("aria-hidden","true"),n.removeClass("menu-focus"),u.removeClass("menu-focus"),e=this.$rootItems.index(u),t=e>0?u.prev():this.$rootItems.last(),t.addClass("menu-focus"),t.attr("aria-haspopup")=="true"&&(i=t.children("ul").first(),i.show().attr("aria-hidden","false"),this.bChildOpen=!0,t=i.children("li").first())):(t=r.parent(),r.hide().attr("aria-hidden","true"),n.removeClass("menu-focus"),this.vmenu==!0&&(this.bChildOpen=!1))}return t},menubar.prototype.moveDown=function(n,t){var h=n.parent(),r=h.children("li").not(".separator"),e=r.length,f=r.index(n),u=null,o=null,s,i,c;if(h.is(".root-level"))return n.attr("aria-haspopup")!="true"?n:(o=n.children("ul").first(),u=o.children("li").first(),o.show().attr("aria-hidden","false"),this.bChildOpen=!0,u);if(t){for(s=!1,i=f+1,i==e&&(i=0);i!=f;){if(c=r.eq(i).find("a").html().charAt(0),c.toLowerCase()==t){s=!0;break}i=i+1;i==e&&(i=0)}return s==!0?(u=r.eq(i),n.removeClass("menu-focus"),u):n}return u=f<e-1?r.eq(f+1):r.first(),n.removeClass("menu-focus"),u},menubar.prototype.moveUp=function(n){var i=n.parent(),t=i.children("li").not(".separator"),f=t.length,r=t.index(n),u=null;return i.is(".root-level")?n:(u=r>0?t.eq(r-1):t.last(),n.removeClass("menu-focus"),u)},menubar.prototype.handleKeyPress=function(n,t){if(t.altKey||t.ctrlKey||t.shiftKey)return!0;switch(t.keyCode){case this.keys.tab:return!0;case this.keys.esc:case this.keys.enter:case this.keys.space:case this.keys.up:case this.keys.down:case this.keys.left:case this.keys.right:return t.stopPropagation(),!1;default:var i=String.fromCharCode(t.which);return this.$activeItem=this.moveDown(n,i),this.$activeItem.focus(),t.stopPropagation(),!1}return!0},menubar.prototype.handleDocumentClick=function(){var n=this.$id.find("ul").not(".root-level");return n.hide().attr("aria-hidden","true"),this.$allItems.removeClass("menu-focus"),this.$activeItem=null,!0},menubar.prototype.getCurrentParent=function(){},energy_journey=function(n,t){this.target=n;this.start=t;this.result_count=0;this.scroll_results=[]},energy_journey.prototype.init=function(){var t=this,n=0;$("#results").find(".result-item").each(function(){$id=String("scroll-id-"+n);t.scroll_results.push($id);$(this).attr("id",$id);++n});this.scroll_init()},energy_journey.prototype.scroll_init=function(){var t=this,n=$(window).scrollTop();t.scroll_update(n);$(window).scroll(function(){n=$(window).scrollTop();t.scroll_update(n)});$("#"+this.target).scroll(function(){n=$(window).scrollTop();t.scroll_update(n)})},energy_journey.prototype.scroll_update=function(n){for(var t,i=0;i<this.scroll_results.length;i++)t=$("#"+this.scroll_results[i]),this.scroll_check(n,t,760)&&t&&!t.hasClass("active")&&t.addClass("active")},energy_journey.prototype.scroll_check=function(n,t,i){if($(t).length){var i=i!=undefined?i:0,r=$(t).offset().top-i,u=$(t).height();return n>=r?!0:!1}return!1},$(".form-quiz").each(function(){var u=$(this).attr("data-result"),n=$(this).attr("data-card"),o=$(this),h=$("#"+n).find(".quiz-message").eq(0),f=$("#"+n).find(".quiz-correct").eq(0),i=$("#"+n).find(".quiz-incorrect").eq(0),t=$("#"+n).find(".card-a").eq(0),r=$("#"+n).find(".card-b").eq(0),s=!1,e=!1;_height=$(t).height()>$(r).height()?$(t).height():$(r).height();_width=$(t).width();$(t).height(_height);$(r).height(_height);$("#"+n).height(_height);$("#"+n).parent().height(_height);$(f).hide();$(i).hide();$('input[type="radio"]').click(function(t){if(e){t.preventDefault();return}$(this).attr("value")==u?(s=!0,$(this).parent().parent().addClass("has-success"),$(f).show()):($(this).parent().parent().addClass("has-error"),$('input[type="radio"]').each(function(){$(this).attr("value")==u&&($(this).parent().parent().addClass("has-success"),$(i).find("span.answer").eq(0).html($(this).parent().find("span").eq(0).html()),$(i).show())}));$(o).velocity({opacity:0},{duration:799,delay:399,complete:function(){$("#"+n).toggleClass("answer")}});e=!0})}),_slice=Array.prototype.slice,!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):n.parsley=t(n.jQuery)}(this,function(n){"use strict";function nt(n,t){return n.parsleyAdaptedCallback||(n.parsleyAdaptedCallback=function(){var i=Array.prototype.slice.call(arguments,0);i.unshift(this);n.apply(t||pt,i)}),n.parsleyAdaptedCallback}function u(n){return 0===n.lastIndexOf(et,0)?n.substr(et.length):n}function st(){var t=this,i=window||global;n.extend(this,{isNativeEvent:function(n){return n.originalEvent&&n.originalEvent.isTrusted!==!1},fakeInputEvent:function(i){t.isNativeEvent(i)&&n(i.target).trigger("input")},misbehaves:function(i){t.isNativeEvent(i)&&(t.behavesOk(i),n(document).on("change.inputevent",i.data.selector,t.fakeInputEvent),t.fakeInputEvent(i))},behavesOk:function(i){t.isNativeEvent(i)&&n(document).off("input.inputevent",i.data.selector,t.behavesOk).off("change.inputevent",i.data.selector,t.misbehaves)},install:function(){var f,u,r;if(!i.inputEventPatched)for(i.inputEventPatched="0.0.3",f=["select",'input[type="checkbox"]','input[type="radio"]','input[type="file"]'],u=0;u<f.length;u++){r=f[u];n(document).on("input.inputevent",r,{selector:r},t.behavesOk).on("change.inputevent",r,{selector:r},t.misbehaves)}},uninstall:function(){delete i.inputEventPatched;n(document).off(".inputevent")}})}var ht=1,y={},ct={attr:function(n,t,i){var r,u,f,e=new RegExp("^"+t,"i");if("undefined"==typeof i)i={};else for(r in i)i.hasOwnProperty(r)&&delete i[r];if("undefined"==typeof n||"undefined"==typeof n[0])return i;for(f=n[0].attributes,r=f.length;r--;)u=f[r],u&&u.specified&&e.test(u.name)&&(i[this.camelize(u.name.slice(t.length))]=this.deserializeValue(u.value));return i},checkAttr:function(n,t,i){return n.is("["+t+i+"]")},setAttr:function(n,t,i,r){n[0].setAttribute(this.dasherize(t+i),String(r))},generateID:function(){return""+ht++},deserializeValue:function(t){var i;try{return t?"true"==t||("false"==t?!1:"null"==t?null:isNaN(i=Number(t))?/^[\[\{]/.test(t)?n.parseJSON(t):t:i):t}catch(r){return t}},camelize:function(n){return n.replace(/-+(.)?/g,function(n,t){return t?t.toUpperCase():""})},dasherize:function(n){return n.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()},warn:function(){var n;window.console&&"function"==typeof window.console.warn&&(n=window.console).warn.apply(n,arguments)},warnOnce:function(n){y[n]||(y[n]=!0,this.warn.apply(this,arguments))},_resetWarnings:function(){y={}},trimString:function(n){return n.replace(/^\s+|\s+$/g,"")},namespaceEvents:function(t,i){return t=this.trimString(t||"").split(/\s+/),t[0]?n.map(t,function(n){return n+"."+i}).join(" "):""},difference:function(t,i){var r=[];return n.each(t,function(n,t){-1==i.indexOf(t)&&r.push(t)}),r},all:function(t){return n.when.apply(n,_toConsumableArray(t).concat([42,42]))},objectCreate:Object.create||function(){var n=function(){};return function(t){if(arguments.length>1)throw Error("Second argument not supported");if("object"!=typeof t)throw TypeError("Argument must be an object");n.prototype=t;var i=new n;return n.prototype=null,i}}(),_SubmitSelector:'input[type="submit"], button:submit'},t=ct,tt={namespace:"data-parsley-",inputs:"input, textarea, select",excluded:"input[type=button], input[type=submit], input[type=reset], input[type=hidden]",priorityEnabled:!0,multiple:null,group:null,uiEnabled:!0,validationThreshold:3,focus:"first",trigger:!1,triggerAfterFailure:"input",errorClass:"parsley-error",successClass:"parsley-success",classHandler:function(){},errorsContainer:function(){},errorsWrapper:'<ul class="parsley-errors-list"><\/ul>',errorTemplate:"<li><\/li>"},r=function(){this.__id__=t.generateID()},w,l,a,o,it,f,b,k,rt,d,ut,e,g,h,v,i,ft,ot;r.prototype={asyncSupport:!0,_pipeAccordingToValidationResult:function(){var i=this,t=function(){var t=n.Deferred();return!0!==i.validationResult&&t.reject(),t.resolve().promise()};return[t,t]},actualizeOptions:function(){return t.attr(this.$element,this.options.namespace,this.domOptions),this.parent&&this.parent.actualizeOptions&&this.parent.actualizeOptions(),this},_resetOptions:function(n){this.domOptions=t.objectCreate(this.parent.options);this.options=t.objectCreate(this.domOptions);for(var i in n)n.hasOwnProperty(i)&&(this.options[i]=n[i]);this.actualizeOptions()},_listeners:null,on:function(n,t){this._listeners=this._listeners||{};var i=this._listeners[n]=this._listeners[n]||[];return i.push(t),this},subscribe:function(t,i){n.listenTo(this,t.toLowerCase(),i)},off:function(n,t){var i=this._listeners&&this._listeners[n],r;if(i)if(t)for(r=i.length;r--;)i[r]===t&&i.splice(r,1);else delete this._listeners[n];return this},unsubscribe:function(t){n.unsubscribeTo(this,t.toLowerCase())},trigger:function(n,t,i){var u,r,f;if(t=t||this,r=this._listeners&&this._listeners[n],r)for(f=r.length;f--;)if(u=r[f].call(t,t,i),u===!1)return u;return this.parent?this.parent.trigger(n,t,i):!0},reset:function(){if("ParsleyForm"!==this.__class__)return this._resetUI(),this._trigger("reset");for(var n=0;n<this.fields.length;n++)this.fields[n].reset();this._trigger("reset")},destroy:function(){if(this._destroyUI(),"ParsleyForm"!==this.__class__)return this.$element.removeData("Parsley"),this.$element.removeData("ParsleyFieldMultiple"),void this._trigger("destroy");for(var n=0;n<this.fields.length;n++)this.fields[n].destroy();this.$element.removeData("Parsley");this._trigger("destroy")},asyncIsValid:function(n,i){return t.warnOnce("asyncIsValid is deprecated; please use whenValid instead"),this.whenValid({group:n,force:i})},_findRelated:function(){return this.options.multiple?this.parent.$element.find("["+this.options.namespace+'multiple="'+this.options.multiple+'"]'):this.$element}};var lt={string:function(n){return n},integer:function(n){if(isNaN(n))throw'Requirement is not an integer: "'+n+'"';return parseInt(n,10)},number:function(n){if(isNaN(n))throw'Requirement is not a number: "'+n+'"';return parseFloat(n)},reference:function(t){var i=n(t);if(0===i.length)throw'No such reference: "'+t+'"';return i},boolean:function(n){return"false"!==n},object:function(n){return t.deserializeValue(n)},regexp:function(n){var t="";return/^\/.*\/(?:[gimy]*)$/.test(n)?(t=n.replace(/.*\/([gimy]*)$/,"$1"),n=n.replace(new RegExp("^/(.*?)/"+t+"$"),"$1")):n="^"+n+"$",new RegExp(n,t)}},at=function(n,i){var u=n.match(/^\s*\[(.*)\]\s*$/),r;if(!u)throw'Requirement is not an array: "'+n+'"';if(r=u[1].split(",").map(t.trimString),r.length!==i)throw"Requirement has "+r.length+" values when "+i+" are needed";return r},c=function(n,t){var i=lt[n||"string"];if(!i)throw'Unknown requirement specification: "'+n+'"';return i(t)},vt=function(n,t,i){var f=null,e={},r,u;for(r in n)r?(u=i(r),"string"==typeof u&&(u=c(n[r],u)),e[r]=u):f=c(n[r],t);return[f,e]},p=function(t){n.extend(!0,this,t)};if(p.prototype={validate:function(t,i){if(this.fn)return arguments.length>3&&(i=[].slice.call(arguments,1,-1)),this.fn.call(this,t,i);if(n.isArray(t)){if(!this.validateMultiple)throw"Validator `"+this.name+"` does not handle multiple values";return this.validateMultiple.apply(this,arguments)}if(this.validateNumber)return isNaN(t)?!1:(arguments[0]=parseFloat(arguments[0]),this.validateNumber.apply(this,arguments));if(this.validateString)return this.validateString.apply(this,arguments);throw"Validator `"+this.name+"` only handles multiple values";},parseRequirements:function(t,i){var r,f,u;if("string"!=typeof t)return n.isArray(t)?t:[t];if(r=this.requirementType,n.isArray(r)){for(f=at(t,r.length),u=0;u<f.length;u++)f[u]=c(r[u],f[u]);return f}return n.isPlainObject(r)?vt(r,t,i):[c(r,t)]},requirementType:"string",priority:2},w=function(n,t){this.__class__="ParsleyValidatorRegistry";this.locale="en";this.init(n||{},t||{})},l={email:/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,number:/^-?(\d*\.)?\d+(e[-+]?\d+)?$/i,integer:/^-?\d+$/,digits:/^\d+$/,alphanum:/^\w+$/i,url:new RegExp("^(?:(?:https?|ftp)://)?(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:/\\S*)?$","i")},l.range=l.number,a=function(n){var t=(""+n).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},w.prototype={init:function(t,i){this.catalog=i;this.validators=n.extend({},this.validators);for(var r in t)this.addValidator(r,t[r].fn,t[r].priority);window.Parsley.trigger("parsley:validator:init")},setLocale:function(n){if("undefined"==typeof this.catalog[n])throw new Error(n+" is not available in the catalog");return this.locale=n,this},addCatalog:function(n,t,i){return"object"==typeof t&&(this.catalog[n]=t),!0===i?this.setLocale(n):this},addMessage:function(n,t,i){return"undefined"==typeof this.catalog[n]&&(this.catalog[n]={}),this.catalog[n][t]=i,this},addMessages:function(n,t){for(var i in t)this.addMessage(n,i,t[i]);return this},addValidator:function(n){if(this.validators[n])t.warn('Validator "'+n+'" is already defined.');else if(tt.hasOwnProperty(n))return void t.warn('"'+n+'" is a restricted keyword and is not a valid validator name.');return this._setValidator.apply(this,arguments)},updateValidator:function(n){return this.validators[n]?this._setValidator.apply(this,arguments):(t.warn('Validator "'+n+'" is not already defined.'),this.addValidator.apply(this,arguments))},removeValidator:function(n){return this.validators[n]||t.warn('Validator "'+n+'" is not defined.'),delete this.validators[n],this},_setValidator:function(n,t,i){"object"!=typeof t&&(t={fn:t,priority:i});t.validate||(t=new p(t));this.validators[n]=t;for(var r in t.messages||{})this.addMessage(r,n,t.messages[r]);return this},getErrorMessage:function(n){var t,i;return"type"===n.name?(i=this.catalog[this.locale][n.name]||{},t=i[n.requirements]):t=this.formatMessage(this.catalog[this.locale][n.name],n.requirements),t||this.catalog[this.locale].defaultMessage||this.catalog.en.defaultMessage},formatMessage:function(n,t){if("object"==typeof t){for(var i in t)n=this.formatMessage(n,t[i]);return n}return"string"==typeof n?n.replace(/%s/i,t):""},validators:{notblank:{validateString:function(n){return/\S/.test(n)},priority:2},required:{validateMultiple:function(n){return n.length>0},validateString:function(n){return/\S/.test(n)},priority:512},type:{validateString:function(n,t){var e=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],o=e.step,r=void 0===o?"1":o,s=e.base,h=void 0===s?0:s,c=l[t],u,f,i;if(!c)throw new Error("validator type `"+t+"` is not supported");return c.test(n)?"number"===t&&!/^any$/i.test(r||"")&&((u=Number(n),f=Math.max(a(r),a(h)),a(u)>f)||(i=function(n){return Math.round(n*Math.pow(10,f))},(i(u)-i(h))%i(r)!=0))?!1:!0:!1},requirementType:{"":"string",step:"string",base:"number"},priority:256},pattern:{validateString:function(n,t){return t.test(n)},requirementType:"regexp",priority:64},minlength:{validateString:function(n,t){return n.length>=t},requirementType:"integer",priority:30},maxlength:{validateString:function(n,t){return n.length<=t},requirementType:"integer",priority:30},length:{validateString:function(n,t,i){return n.length>=t&&n.length<=i},requirementType:["integer","integer"],priority:30},mincheck:{validateMultiple:function(n,t){return n.length>=t},requirementType:"integer",priority:30},maxcheck:{validateMultiple:function(n,t){return n.length<=t},requirementType:"integer",priority:30},check:{validateMultiple:function(n,t,i){return n.length>=t&&n.length<=i},requirementType:["integer","integer"],priority:30},min:{validateNumber:function(n,t){return n>=t},requirementType:"number",priority:30},max:{validateNumber:function(n,t){return t>=n},requirementType:"number",priority:30},range:{validateNumber:function(n,t,i){return n>=t&&i>=n},requirementType:["number","number"],priority:30},equalto:{validateString:function(t,i){var r=n(i);return r.length?t===r.val():t===i},priority:256}}},o={},it=function yt(n,t,i){for(var f,u,e=[],o=[],r=0;r<n.length;r++){for(f=!1,u=0;u<t.length;u++)if(n[r].assert.name===t[u].assert.name){f=!0;break}f?o.push(n[r]):e.push(n[r])}return{kept:o,added:e,removed:i?[]:yt(t,n,!0).added}},o.Form={_actualizeTriggers:function(){var n=this;this.$element.on("submit.Parsley",function(t){n.onSubmitValidate(t)});this.$element.on("click.Parsley",t._SubmitSelector,function(t){n.onSubmitButton(t)});!1!==this.options.uiEnabled&&this.$element.attr("novalidate","")},focus:function(){var t,n;if(this._focusedField=null,!0===this.validationResult||"none"===this.options.focus)return null;for(t=0;t<this.fields.length;t++)if(n=this.fields[t],!0!==n.validationResult&&n.validationResult.length>0&&"undefined"==typeof n.options.noFocus&&(this._focusedField=n.$element,"first"===this.options.focus))break;return null===this._focusedField?null:this._focusedField.focus()},_destroyUI:function(){this.$element.off(".Parsley")}},o.Field={_reflowUI:function(){if(this._buildUI(),this._ui){var n=it(this.validationResult,this._ui.lastValidationResult);this._ui.lastValidationResult=this.validationResult;this._manageStatusClass();this._manageErrorsMessages(n);this._actualizeTriggers();!n.kept.length&&!n.added.length||this._failedOnce||(this._failedOnce=!0,this._actualizeTriggers())}},getErrorsMessages:function(){if(!0===this.validationResult)return[];for(var t=[],n=0;n<this.validationResult.length;n++)t.push(this.validationResult[n].errorMessage||this._getErrorMessage(this.validationResult[n].assert));return t},addError:function(n){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=t.message,u=t.assert,i=t.updateClass,f=void 0===i?!0:i;this._buildUI();this._addError(n,{message:r,assert:u});f&&this._errorClass()},updateError:function(n){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=t.message,u=t.assert,i=t.updateClass,f=void 0===i?!0:i;this._buildUI();this._updateError(n,{message:r,assert:u});f&&this._errorClass()},removeError:function(n){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],t=i.updateClass,r=void 0===t?!0:t;this._buildUI();this._removeError(n);r&&this._manageStatusClass()},_manageStatusClass:function(){this.hasConstraints()&&this.needsValidation()&&!0===this.validationResult?this._successClass():this.validationResult.length>0?this._errorClass():this._resetClass()},_manageErrorsMessages:function(t){if("undefined"==typeof this.options.errorsMessagesDisabled){if("undefined"!=typeof this.options.errorMessage)return t.added.length||t.kept.length?(this._insertErrorWrapper(),0===this._ui.$errorsWrapper.find(".parsley-custom-error-message").length&&this._ui.$errorsWrapper.append(n(this.options.errorTemplate).addClass("parsley-custom-error-message")),this._ui.$errorsWrapper.addClass("filled").find(".parsley-custom-error-message").html(this.options.errorMessage)):this._ui.$errorsWrapper.removeClass("filled").find(".parsley-custom-error-message").remove();for(var i=0;i<t.removed.length;i++)this._removeError(t.removed[i].assert.name);for(i=0;i<t.added.length;i++)this._addError(t.added[i].assert.name,{message:t.added[i].errorMessage,assert:t.added[i].assert});for(i=0;i<t.kept.length;i++)this._updateError(t.kept[i].assert.name,{message:t.kept[i].errorMessage,assert:t.kept[i].assert})}},_addError:function(t,i){var r=i.message,u=i.assert;this._insertErrorWrapper();this._ui.$errorsWrapper.addClass("filled").append(n(this.options.errorTemplate).addClass("parsley-"+t).html(r||this._getErrorMessage(u)))},_updateError:function(n,t){var i=t.message,r=t.assert;this._ui.$errorsWrapper.addClass("filled").find(".parsley-"+n).html(i||this._getErrorMessage(r))},_removeError:function(n){this._ui.$errorsWrapper.removeClass("filled").find(".parsley-"+n).remove()},_getErrorMessage:function(n){var t=n.name+"Message";return"undefined"!=typeof this.options[t]?window.Parsley.formatMessage(this.options[t],n.requirements):window.Parsley.getErrorMessage(n)},_buildUI:function(){if(!this._ui&&!1!==this.options.uiEnabled){var t={};this.$element.attr(this.options.namespace+"id",this.__id__);t.$errorClassHandler=this._manageClassHandler();t.errorsWrapperId="parsley-id-"+(this.options.multiple?"multiple-"+this.options.multiple:this.__id__);t.$errorsWrapper=n(this.options.errorsWrapper).attr("id",t.errorsWrapperId);t.lastValidationResult=[];t.validationInformationVisible=!1;this._ui=t}},_manageClassHandler:function(){if("string"==typeof this.options.classHandler&&n(this.options.classHandler).length)return n(this.options.classHandler);var t=this.options.classHandler.call(this,this);return"undefined"!=typeof t&&t.length?t:this._inputHolder()},_inputHolder:function(){return!this.options.multiple||this.$element.is("select")?this.$element:this.$element.parent()},_insertErrorWrapper:function(){var i;if(0!==this._ui.$errorsWrapper.parent().length)return this._ui.$errorsWrapper.parent();if("string"==typeof this.options.errorsContainer){if(n(this.options.errorsContainer).length)return n(this.options.errorsContainer).append(this._ui.$errorsWrapper);t.warn("The errors container `"+this.options.errorsContainer+"` does not exist in DOM")}else"function"==typeof this.options.errorsContainer&&(i=this.options.errorsContainer.call(this,this));return"undefined"!=typeof i&&i.length?i.append(this._ui.$errorsWrapper):this._inputHolder().after(this._ui.$errorsWrapper)},_actualizeTriggers:function(){var i,r=this,n=this._findRelated();n.off(".Parsley");this._failedOnce?n.on(t.namespaceEvents(this.options.triggerAfterFailure,"Parsley"),function(){r.validate()}):(i=t.namespaceEvents(this.options.trigger,"Parsley"))&&n.on(i,function(n){r._eventValidate(n)})},_eventValidate:function(n){!(!/key|input/.test(n.type)||this._ui&&this._ui.validationInformationVisible)&&this.getValue().length<=this.options.validationThreshold||this.validate()},_resetUI:function(){this._failedOnce=!1;this._actualizeTriggers();"undefined"!=typeof this._ui&&(this._ui.$errorsWrapper.removeClass("filled").children().remove(),this._resetClass(),this._ui.lastValidationResult=[],this._ui.validationInformationVisible=!1)},_destroyUI:function(){this._resetUI();"undefined"!=typeof this._ui&&this._ui.$errorsWrapper.remove();delete this._ui},_successClass:function(){this._ui.validationInformationVisible=!0;this._ui.$errorClassHandler.removeClass(this.options.errorClass).addClass(this.options.successClass)},_errorClass:function(){this._ui.validationInformationVisible=!0;this._ui.$errorClassHandler.removeClass(this.options.successClass).addClass(this.options.errorClass)},_resetClass:function(){this._ui.$errorClassHandler.removeClass(this.options.successClass).removeClass(this.options.errorClass)}},f=function(t,i,r){this.__class__="ParsleyForm";this.$element=n(t);this.domOptions=i;this.options=r;this.parent=window.Parsley;this.fields=[];this.validationResult=null},b={pending:null,resolved:!0,rejected:!1},f.prototype={onSubmitValidate:function(n){var u=this,r,i;!0!==n.parsley&&(r=this._$submitSource||this.$element.find(t._SubmitSelector).first(),(this._$submitSource=null,this.$element.find(".parsley-synthetic-submit-button").prop("disabled",!0),r.is("[formnovalidate]"))||(i=this.whenValidate({event:n}),"resolved"===i.state()&&!1!==this._trigger("submit")||(n.stopImmediatePropagation(),n.preventDefault(),"pending"===i.state()&&i.done(function(){u._submit(r)}))))},onSubmitButton:function(t){this._$submitSource=n(t.currentTarget)},_submit:function(t){if(!1!==this._trigger("submit")){if(t){var i=this.$element.find(".parsley-synthetic-submit-button").prop("disabled",!1);0===i.length&&(i=n('<input class="parsley-synthetic-submit-button" type="hidden">').appendTo(this.$element));i.attr({name:t.attr("name"),value:t.attr("value")})}this.$element.trigger(n.extend(n.Event("submit"),{parsley:!0}))}},validate:function(i){if(arguments.length>=1&&!n.isPlainObject(i)){t.warnOnce("Calling validate on a parsley form without passing arguments as an object is deprecated.");var r=_slice.call(arguments),u=r[0],f=r[1],e=r[2];i={group:u,force:f,event:e}}return b[this.whenValidate(i).state()]},whenValidate:function(){var f,i=this,r=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],o=r.group,s=r.force,u=r.event,e;return this.submitEvent=u,u&&(this.submitEvent=n.extend({},u,{preventDefault:function(){t.warnOnce("Using `this.submitEvent.preventDefault()` is deprecated; instead, call `this.validationResult = false`");i.validationResult=!1}})),this.validationResult=!0,this._trigger("validate"),this._refreshFields(),e=this._withoutReactualizingFormOptions(function(){return n.map(i.fields,function(n){return n.whenValidate({force:s,group:o})})}),(f=t.all(e).done(function(){i._trigger("success")}).fail(function(){i.validationResult=!1;i.focus();i._trigger("error")}).always(function(){i._trigger("validated")})).pipe.apply(f,_toConsumableArray(this._pipeAccordingToValidationResult()))},isValid:function(i){if(arguments.length>=1&&!n.isPlainObject(i)){t.warnOnce("Calling isValid on a parsley form without passing arguments as an object is deprecated.");var r=_slice.call(arguments),u=r[0],f=r[1];i={group:u,force:f}}return b[this.whenValid(i).state()]},whenValid:function(){var u=this,i=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],f=i.group,e=i.force,r;return this._refreshFields(),r=this._withoutReactualizingFormOptions(function(){return n.map(u.fields,function(n){return n.whenValid({group:f,force:e})})}),t.all(r)},_refreshFields:function(){return this.actualizeOptions()._bindFields()},_bindFields:function(){var i=this,r=this.fields;return this.fields=[],this.fieldsMappedById={},this._withoutReactualizingFormOptions(function(){i.$element.find(i.options.inputs).not(i.options.excluded).each(function(n,t){var r=new window.Parsley.Factory(t,{},i);"ParsleyField"!==r.__class__&&"ParsleyFieldMultiple"!==r.__class__||!0===r.options.excluded||"undefined"==typeof i.fieldsMappedById[r.__class__+"-"+r.__id__]&&(i.fieldsMappedById[r.__class__+"-"+r.__id__]=r,i.fields.push(r))});n.each(t.difference(r,i.fields),function(n,t){t._trigger("reset")})}),this},_withoutReactualizingFormOptions:function(n){var i=this.actualizeOptions,t;return this.actualizeOptions=function(){return this},t=n(),this.actualizeOptions=i,t},_trigger:function(n){return this.trigger("form:"+n)}},k=function(t,i,r,u,f){if(!/ParsleyField/.test(t.__class__))throw new Error("ParsleyField or ParsleyFieldMultiple instance expected");var o=window.Parsley._validatorRegistry.validators[i],e=new p(o);n.extend(this,{validator:e,name:i,requirements:r,priority:u||t.options[i+"Priority"]||e.priority,isDomConstraint:!0===f});this._parseRequirements(t.options)},rt=function(n){var t=n[0].toUpperCase();return t+n.slice(1)},k.prototype={validate:function(n,t){var i;return(i=this.validator).validate.apply(i,[n].concat(_toConsumableArray(this.requirementList),[t]))},_parseRequirements:function(n){var t=this;this.requirementList=this.validator.parseRequirements(this.requirements,function(i){return n[t.name+rt(i)]})}},d=function(t,i,r,u){this.__class__="ParsleyField";this.$element=n(t);"undefined"!=typeof u&&(this.parent=u);this.options=r;this.domOptions=i;this.constraints=[];this.constraintsByName={};this.validationResult=!0;this._bindConstraints()},ut={pending:null,resolved:!0,rejected:!1},d.prototype={validate:function(i){arguments.length>=1&&!n.isPlainObject(i)&&(t.warnOnce("Calling validate on a parsley field without passing arguments as an object is deprecated."),i={options:i});var r=this.whenValidate(i);if(!r)return!0;switch(r.state()){case"pending":return null;case"resolved":return!0;case"rejected":return this.validationResult}},whenValidate:function(){var t,n=this,i=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],u=i.force,r=i.group;return this.refreshConstraints(),!r||this._isInGroup(r)?(this.value=this.getValue(),this._trigger("validate"),(t=this.whenValid({force:u,value:this.value,_refreshed:!0}).always(function(){n._reflowUI()}).done(function(){n._trigger("success")}).fail(function(){n._trigger("error")}).always(function(){n._trigger("validated")})).pipe.apply(t,_toConsumableArray(this._pipeAccordingToValidationResult()))):void 0},hasConstraints:function(){return 0!==this.constraints.length},needsValidation:function(n){return"undefined"==typeof n&&(n=this.getValue()),!(!n.length&&!this._isRequired()&&"undefined"==typeof this.options.validateIfEmpty)},_isInGroup:function(t){return n.isArray(this.options.group)?-1!==n.inArray(t,this.options.group):this.options.group===t},isValid:function(i){var r;if(arguments.length>=1&&!n.isPlainObject(i)){t.warnOnce("Calling isValid on a parsley field without passing arguments as an object is deprecated.");var u=_slice.call(arguments),f=u[0],e=u[1];i={force:f,value:e}}return r=this.whenValid(i),r?ut[r.state()]:!0},whenValid:function(){var s=this,r=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],f=r.force,h=void 0===f?!1:f,i=r.value,e=r.group,c=r._refreshed,o,u;if(c||this.refreshConstraints(),!e||this._isInGroup(e))return(this.validationResult=!0,!this.hasConstraints())?n.when():("undefined"!=typeof i&&null!==i||(i=this.getValue()),!this.needsValidation(i)&&!0!==h)?n.when():(o=this._getGroupedConstraints(),u=[],n.each(o,function(r,f){var e=t.all(n.map(f,function(n){return s._validateConstraint(i,n)}));return u.push(e),"rejected"===e.state()?!1:void 0}),t.all(u))},_validateConstraint:function(i,r){var u=this,f=r.validate(i,this);return!1===f&&(f=n.Deferred().reject()),t.all([f]).fail(function(n){u.validationResult instanceof Array||(u.validationResult=[]);u.validationResult.push({assert:r,errorMessage:"string"==typeof n&&n})})},getValue:function(){var n;return n="function"==typeof this.options.value?this.options.value(this):"undefined"!=typeof this.options.value?this.options.value:this.$element.val(),"undefined"==typeof n||null===n?"":this._handleWhitespace(n)},refreshConstraints:function(){return this.actualizeOptions()._bindConstraints()},addConstraint:function(n,t,i,r){if(window.Parsley._validatorRegistry.validators[n]){var u=new k(this,n,t,i,r);"undefined"!==this.constraintsByName[u.name]&&this.removeConstraint(u.name);this.constraints.push(u);this.constraintsByName[u.name]=u}return this},removeConstraint:function(n){for(var t=0;t<this.constraints.length;t++)if(n===this.constraints[t].name){this.constraints.splice(t,1);break}return delete this.constraintsByName[n],this},updateConstraint:function(n,t,i){return this.removeConstraint(n).addConstraint(n,t,i)},_bindConstraints:function(){for(var t,i=[],r={},n=0;n<this.constraints.length;n++)!1===this.constraints[n].isDomConstraint&&(i.push(this.constraints[n]),r[this.constraints[n].name]=this.constraints[n]);this.constraints=i;this.constraintsByName=r;for(t in this.options)this.addConstraint(t,this.options[t],void 0,!0);return this._bindHtml5Constraints()},_bindHtml5Constraints:function(){(this.$element.hasClass("required")||this.$element.attr("required"))&&this.addConstraint("required",!0,void 0,!0);"string"==typeof this.$element.attr("pattern")&&this.addConstraint("pattern",this.$element.attr("pattern"),void 0,!0);"undefined"!=typeof this.$element.attr("min")&&"undefined"!=typeof this.$element.attr("max")?this.addConstraint("range",[this.$element.attr("min"),this.$element.attr("max")],void 0,!0):"undefined"!=typeof this.$element.attr("min")?this.addConstraint("min",this.$element.attr("min"),void 0,!0):"undefined"!=typeof this.$element.attr("max")&&this.addConstraint("max",this.$element.attr("max"),void 0,!0);"undefined"!=typeof this.$element.attr("minlength")&&"undefined"!=typeof this.$element.attr("maxlength")?this.addConstraint("length",[this.$element.attr("minlength"),this.$element.attr("maxlength")],void 0,!0):"undefined"!=typeof this.$element.attr("minlength")?this.addConstraint("minlength",this.$element.attr("minlength"),void 0,!0):"undefined"!=typeof this.$element.attr("maxlength")&&this.addConstraint("maxlength",this.$element.attr("maxlength"),void 0,!0);var n=this.$element.attr("type");return"undefined"==typeof n?this:"number"===n?this.addConstraint("type",["number",{step:this.$element.attr("step"),base:this.$element.attr("min")||this.$element.attr("value")}],void 0,!0):/^(email|url|range)$/i.test(n)?this.addConstraint("type",n,void 0,!0):this},_isRequired:function(){return"undefined"==typeof this.constraintsByName.required?!1:!1!==this.constraintsByName.required.requirements},_trigger:function(n){return this.trigger("field:"+n)},_handleWhitespace:function(n){return!0===this.options.trimValue&&t.warnOnce('data-parsley-trim-value="true" is deprecated, please use data-parsley-whitespace="trim"'),"squish"===this.options.whitespace&&(n=n.replace(/\s{2,}/g," ")),"trim"!==this.options.whitespace&&"squish"!==this.options.whitespace&&!0!==this.options.trimValue||(n=t.trimString(n)),n},_getGroupedConstraints:function(){var t;if(!1===this.options.priorityEnabled)return[this.constraints];for(var i=[],r={},n=0;n<this.constraints.length;n++)t=this.constraints[n].priority,r[t]||i.push(r[t]=[]),r[t].push(this.constraints[n]);return i.sort(function(n,t){return t[0].priority-n[0].priority}),i}},e=d,g=function(){this.__class__="ParsleyFieldMultiple"},g.prototype={addElement:function(n){return this.$elements.push(n),this},refreshConstraints:function(){var i,r,t;if(this.constraints=[],this.$element.is("select"))return this.actualizeOptions()._bindConstraints(),this;for(r=0;r<this.$elements.length;r++)if(n("html").has(this.$elements[r]).length)for(i=this.$elements[r].data("ParsleyFieldMultiple").refreshConstraints().constraints,t=0;t<i.length;t++)this.addConstraint(i[t].name,i[t].requirements,i[t].priority,i[t].isDomConstraint);else this.$elements.splice(r,1);return this},getValue:function(){if("function"==typeof this.options.value)return this.options.value(this);if("undefined"!=typeof this.options.value)return this.options.value;if(this.$element.is("input[type=radio]"))return this._findRelated().filter(":checked").val()||"";if(this.$element.is("input[type=checkbox]")){var t=[];return this._findRelated().filter(":checked").each(function(){t.push(n(this).val())}),t}return this.$element.is("select")&&null===this.$element.val()?[]:this.$element.val()},_init:function(){return this.$elements=[this.$element],this}},h=function(t,i,r){this.$element=n(t);var u=this.$element.data("Parsley");if(u)return"undefined"!=typeof r&&u.parent===window.Parsley&&(u.parent=r,u._resetOptions(u.options)),"object"==typeof i&&n.extend(u.options,i),u;if(!this.$element.length)throw new Error("You must bind Parsley on an existing element.");if("undefined"!=typeof r&&"ParsleyForm"!==r.__class__)throw new Error("Parent instance must be a ParsleyForm instance");return this.parent=r||window.Parsley,this.init(i)},h.prototype={init:function(n){return this.__class__="Parsley",this.__version__="2.4.4",this.__id__=t.generateID(),this._resetOptions(n),this.$element.is("form")||t.checkAttr(this.$element,this.options.namespace,"validate")&&!this.$element.is(this.options.inputs)?this.bind("parsleyForm"):this.isMultiple()?this.handleMultiple():this.bind("parsleyField")},isMultiple:function(){return this.$element.is("input[type=radio], input[type=checkbox]")||this.$element.is("select")&&"undefined"!=typeof this.$element.attr("multiple")},handleMultiple:function(){var u,i,e=this,f,r;if(this.options.multiple||("undefined"!=typeof this.$element.attr("name")&&this.$element.attr("name").length?this.options.multiple=u=this.$element.attr("name"):"undefined"!=typeof this.$element.attr("id")&&this.$element.attr("id").length&&(this.options.multiple=this.$element.attr("id"))),this.$element.is("select")&&"undefined"!=typeof this.$element.attr("multiple"))return this.options.multiple=this.options.multiple||this.__id__,this.bind("parsleyFieldMultiple");if(!this.options.multiple)return t.warn("To be bound by Parsley, a radio, a checkbox and a multiple select input must have either a name or a multiple option.",this.$element),this;for(this.options.multiple=this.options.multiple.replace(/(:|\.|\[|\]|\{|\}|\$)/g,""),"undefined"!=typeof u&&n('input[name="'+u+'"]').each(function(t,i){n(i).is("input[type=radio], input[type=checkbox]")&&n(i).attr(e.options.namespace+"multiple",e.options.multiple)}),f=this._findRelated(),r=0;r<f.length;r++)if(i=n(f.get(r)).data("Parsley"),"undefined"!=typeof i){this.$element.data("ParsleyFieldMultiple")||i.addElement(this.$element);break}return this.bind("parsleyField",!0),i||this.bind("parsleyFieldMultiple")},bind:function(i,u){var o;switch(i){case"parsleyForm":o=n.extend(new f(this.$element,this.domOptions,this.options),new r,window.ParsleyExtend)._bindFields();break;case"parsleyField":o=n.extend(new e(this.$element,this.domOptions,this.options,this.parent),new r,window.ParsleyExtend);break;case"parsleyFieldMultiple":o=n.extend(new e(this.$element,this.domOptions,this.options,this.parent),new g,new r,window.ParsleyExtend)._init();break;default:throw new Error(i+"is not a supported Parsley type");}return this.options.multiple&&t.setAttr(this.$element,this.options.namespace,"multiple",this.options.multiple),"undefined"!=typeof u?(this.$element.data("ParsleyFieldMultiple",o),o):(this.$element.data("Parsley",o),o._actualizeTriggers(),o._trigger("init"),o)}},v=n.fn.jquery.split("."),parseInt(v[0])<=1&&parseInt(v[1])<8)throw"The loaded version of jQuery is too old. Please upgrade to 1.8.x or better.";v.forEach||t.warn("Parsley requires ES5 to run properly. Please include https://github.com/es-shims/es5-shim");i=n.extend(new r,{$element:n(document),actualizeOptions:null,_resetOptions:null,Factory:h,version:"2.4.4"});n.extend(e.prototype,o.Field,r.prototype);n.extend(f.prototype,o.Form,r.prototype);n.extend(h.prototype,r.prototype);n.fn.parsley=n.fn.psly=function(i){if(this.length>1){var r=[];return this.each(function(){r.push(n(this).parsley(i))}),r}return n(this).length?new h(this,i):void t.warn("You must bind Parsley on an existing element.")};"undefined"==typeof window.ParsleyExtend&&(window.ParsleyExtend={});i.options=n.extend(t.objectCreate(tt),window.ParsleyConfig);window.ParsleyConfig=i.options;window.Parsley=window.psly=i;window.ParsleyUtils=t;ft=window.Parsley._validatorRegistry=new w(window.ParsleyConfig.validators,window.ParsleyConfig.i18n);window.ParsleyValidator={};n.each("setLocale addCatalog addMessage addMessages getErrorMessage formatMessage addValidator updateValidator removeValidator".split(" "),function(i,r){window.Parsley[r]=n.proxy(ft,r);window.ParsleyValidator[r]=function(){var n;return t.warnOnce("Accessing the method '"+r+"' through ParsleyValidator is deprecated. Simply call 'window.Parsley."+r+"(...)'"),(n=window.Parsley)[r].apply(n,arguments)}});window.Parsley.UI=o;window.ParsleyUI={removeError:function(n,i,r){var u=!0!==r;return t.warnOnce("Accessing ParsleyUI is deprecated. Call 'removeError' on the instance directly. Please comment in issue 1073 as to your need to call this method."),n.removeError(i,{updateClass:u})},getErrorsMessages:function(n){return t.warnOnce("Accessing ParsleyUI is deprecated. Call 'getErrorsMessages' on the instance directly."),n.getErrorsMessages()}};n.each("addError updateError".split(" "),function(n,i){window.ParsleyUI[i]=function(n,r,u,f,e){var o=!0!==e;return t.warnOnce("Accessing ParsleyUI is deprecated. Call '"+i+"' on the instance directly. Please comment in issue 1073 as to your need to call this method."),n[i](r,{message:u,assert:f,updateClass:o})}});!1!==window.ParsleyConfig.autoBind&&n(function(){n("[data-parsley-validate]").length&&n("[data-parsley-validate]").parsley()});var pt=n({}),s=function(){t.warnOnce("Parsley's pubsub module is deprecated; use the 'on' and 'off' methods on parsley instances or window.Parsley")},et="parsley:";return n.listen=function(n,t){var i;if(s(),"object"==typeof arguments[1]&&"function"==typeof arguments[2]&&(i=arguments[1],t=arguments[2]),"function"!=typeof t)throw new Error("Wrong parameters");window.Parsley.on(u(n),nt(t,i))},n.listenTo=function(n,t,i){if(s(),!(n instanceof e||n instanceof f))throw new Error("Must give Parsley instance");if("string"!=typeof t||"function"!=typeof i)throw new Error("Wrong parameters");n.on(u(t),nt(i))},n.unsubscribe=function(n,t){if(s(),"string"!=typeof n||"function"!=typeof t)throw new Error("Wrong arguments");window.Parsley.off(u(n),t.parsleyAdaptedCallback)},n.unsubscribeTo=function(n,t){if(s(),!(n instanceof e||n instanceof f))throw new Error("Must give Parsley instance");n.off(u(t))},n.unsubscribeAll=function(t){s();window.Parsley.off(u(t));n("form,input,textarea,select").each(function(){var i=n(this).data("Parsley");i&&i.off(u(t))})},n.emit=function(n,t){var o,i,r;s();i=t instanceof e||t instanceof f;r=Array.prototype.slice.call(arguments,i?2:1);r.unshift(u(n));i||(t=window.Parsley);(o=t).trigger.apply(o,_toConsumableArray(r))},n.extend(!0,i,{asyncValidators:{"default":{fn:function(n){return n.status>=200&&n.status<300},url:!1},reverse:{fn:function(n){return n.status<200||n.status>=300},url:!1}},addAsyncValidator:function(n,t,r,u){return i.asyncValidators[n]={fn:t,url:r||!1,options:u||{}},this}}),i.addValidator("remote",{requirementType:{"":"string",validator:"string",reverse:"boolean",options:"object"},validateString:function(t,r,u,f){var o,s,l={},e=u.validator||(!0===u.reverse?"reverse":"default"),a,h,c;if("undefined"==typeof i.asyncValidators[e])throw new Error("Calling an undefined async validator: `"+e+"`");return r=i.asyncValidators[e].url||r,r.indexOf("{value}")>-1?r=r.replace("{value}",encodeURIComponent(t)):l[f.$element.attr("name")||f.$element.attr("id")]=t,a=n.extend(!0,u.options||{},i.asyncValidators[e].options),o=n.extend(!0,{},{url:r,data:l,type:"GET"},a),f.trigger("field:ajaxoptions",f,o),s=n.param(o),"undefined"==typeof i._remoteCache&&(i._remoteCache={}),h=i._remoteCache[s]=i._remoteCache[s]||n.ajax(o),c=function(){var t=i.asyncValidators[e].fn.call(f,h,r,u);return t||(t=n.Deferred().reject()),n.when(t)},h.then(c,c)},priority:-1}),i.on("form:submit",function(){i._remoteCache={}}),window.ParsleyExtend.addAsyncValidator=function(){return ParsleyUtils.warnOnce("Accessing the method `addAsyncValidator` through an instance is deprecated. Simply call `Parsley.addAsyncValidator(...)`"),i.addAsyncValidator.apply(i,arguments)},i.addMessages("en",{defaultMessage:"This value seems to be invalid.",type:{email:"This value should be a valid email.",url:"This value should be a valid url.",number:"This value should be a valid number.",integer:"This value should be a valid integer.",digits:"This value should be digits.",alphanum:"This value should be alphanumeric."},notblank:"This value should not be blank.",required:"This value is required.",pattern:"This value seems to be invalid.",min:"This value should be greater than or equal to %s.",max:"This value should be lower than or equal to %s.",range:"This value should be between %s and %s.",minlength:"This value is too short. It should have %s characters or more.",maxlength:"This value is too long. It should have %s characters or fewer.",length:"This value length is invalid. It should be between %s and %s characters long.",mincheck:"You must select at least %s choices.",maxcheck:"You must select %s choices or fewer.",check:"You must select between %s and %s choices.",equalto:"This value should be the same."}),i.setLocale("en"),ot=new st,ot.install(),i}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4");}(jQuery);+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(void 0!==i.style[n])return{end:t[n]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t();n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));"string"==typeof i&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.3.7";t.TRANSITION_DURATION=150;t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,""));r=n("#"===u?[]:u);i&&i.preventDefault();r.length||(r=f.closest(".alert"));r.trigger(i=n.Event("close.bs.alert"));i.isDefaultPrevented()||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())};r=n.fn.alert;n.fn.alert=u;n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f="object"==typeof i&&i;r||u.data("bs.button",r=new t(this,f));"toggle"==i?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.3.7";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var i="disabled",r=this.$element,f=r.is("input")?"val":"html",u=r.data();t+="Text";null==u.resetText&&r.data("resetText",r[f]());setTimeout(n.proxy(function(){r[f](null==u[t]?this.options[t]:u[t]);"loadingText"==t?(this.isLoading=!0,r.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(i).removeAttr(i).prop(i,!1))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target).closest(".btn");i.call(r,"toggle");n(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i),e="string"==typeof i?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));"number"==typeof i?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this));"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,r;t.VERSION="3.3.7";t.TRANSITION_DURATION=600;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0};t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.getItemForDirection=function(n,t){var i=this.getItemIndex(t),f="prev"==n&&0===i||"next"==n&&i==this.$items.length-1,r,u;return f&&!this.options.wrap?t:(r="prev"==n?-1:1,u=(i+r)%this.$items.length,this.$items.eq(u))};t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1||n<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f="next"==i?"left":"right",a=this,o,s,h,c;return u.hasClass("active")?this.sliding=!1:(o=u[0],s=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),(this.$element.trigger(s),!s.isDefaultPrevented())?((this.sliding=!0,l&&this.pause(),this.$indicators.length)&&(this.$indicators.find(".active").removeClass("active"),h=n(this.$indicators.children()[this.getItemIndex(u)]),h&&h.addClass("active")),c=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active");e.removeClass(["active",f].join(" "));a.sliding=!1;setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this):void 0)};u=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this};r=function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())};n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i);!r&&f.toggle&&/show|hide/.test(i)&&(f.toggle=!1);r||u.data("bs.collapse",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$trigger=n('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()},u;t.VERSION="3.3.7";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!(r&&r.length&&(f=r.data("bs.collapse"),f&&f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented()))){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-"));this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}};t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented()))return i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},n.support.transition?void this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION):u.call(this)};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};u=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":u.data();i.call(f,o)})}(jQuery);+function(n){"use strict";function r(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function u(t){t&&3===t.which||(n(o).remove(),n(i).each(function(){var u=n(this),i=r(u),f={relatedTarget:this};i.hasClass("open")&&(t&&"click"==t.type&&/input|textarea/i.test(t.target.tagName)&&n.contains(i[0],t.target)||(i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented()||(u.attr("aria-expanded","false"),i.removeClass("open").trigger(n.Event("hidden.bs.dropdown",f)))))}))}function e(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));"string"==typeof i&&u[i].call(r)})}var o=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.7";t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=r(f),o=i.hasClass("open"),u(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(n(this)).on("click",u),e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus").attr("aria-expanded","true");i.toggleClass("open").trigger(n.Event("shown.bs.dropdown",e))}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,u;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=r(e),s=o.hasClass("open"),!s&&27!=t.which||s&&27==t.which)return 27==t.which&&o.find(i).trigger("focus"),e.trigger("click");h=" li:not(.disabled):visible a";f=o.find(".dropdown-menu"+h);f.length&&(u=f.index(t.target),38==t.which&&u>0&&u--,40==t.which&&u<f.length-1&&u++,~u||(u=0),f.eq(u).trigger("focus"))}};f=n.fn.dropdown;n.fn.dropdown=e;n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",u).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i,t.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",t.prototype.keydown)}(jQuery);+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),"object"==typeof i&&i);u||f.data("bs.modal",u=new t(this,e));"string"==typeof i?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);this.$dialog=this.$element.find(".modal-dialog");this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=!1;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.3.7";t.TRANSITION_DURATION=300;t.BACKDROP_TRANSITION_DURATION=150;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(u);this.isShown||u.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){n(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})}),this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body);r.$element.show().scrollTop(0);r.adjustDialog();f&&r.$element[0].offsetWidth;r.$element.addClass("in");r.enforceFocus();u=n.Event("shown.bs.modal",{relatedTarget:i});f?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)}))};t.prototype.hide=function(i){i&&i.preventDefault();i=n.Event("hide.bs.modal");this.$element.trigger(i);this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){document===n.target||this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){27==n.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")};t.prototype.resize=function(){this.isShown?n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this)):n(window).off("resize.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$body.removeClass("modal-open");n.resetAdjustments();n.resetScrollbar();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){if(r=n.support.transition&&f,this.$backdrop=n(document.createElement("div")).addClass("modal-backdrop "+f).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(n.target===n.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop();i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()};t.prototype.handleUpdate=function(){this.adjustDialog()};t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){var n=window.innerWidth,t;n||(t=document.documentElement.getBoundingClientRect(),n=t.right-Math.abs(t.left));this.bodyIsOverflowing=document.body.clientWidth<n;this.scrollbarWidth=this.measureScrollbar()};t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";this.bodyIsOverflowing&&this.$body.css("padding-right",n+this.scrollbarWidth)};t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){n.isDefaultPrevented()||u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f="object"==typeof i&&i;!r&&/destroy|hide/.test(i)||(r||u.data("bs.tooltip",r=new t(this,f)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.type=null;this.options=null;this.enabled=null;this.timeout=null;this.hoverState=null;this.$element=null;this.inState=null;this.init("tooltip",n,t)},i;t.VERSION="3.3.7";t.TRANSITION_DURATION=150;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};t.prototype.init=function(t,i,r){var f,e,u,o,s;if(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(n.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],"click"==u)this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else"manual"!=u&&(o="hover"==u?"mouseenter":"focusin",s="hover"==u?"mouseleave":"focusout",this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this)));this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState["focusin"==t.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())};t.prototype.isInStateTrue=function(){for(var n in this.inState)if(this.inState[n])return!0;return!1};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState["focusout"==t.type?"focus":"hover"]=!1),!i.isInStateTrue())return clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()};t.prototype.show=function(){var c=n.Event("show.bs."+this.type),l,p,e,w,h;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,r=this.tip(),a=this.getUID(this.type);this.setContent();r.attr("id",a);this.$element.attr("aria-describedby",a);this.options.animation&&r.addClass("fade");var i="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(i);y&&(i=i.replace(v,"")||"top");r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this);this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);this.$element.trigger("inserted.bs."+this.type);var f=this.getPosition(),o=r[0].offsetWidth,s=r[0].offsetHeight;y&&(p=i,e=this.getPosition(this.$viewport),i="bottom"==i&&f.bottom+s>e.bottom?"top":"top"==i&&f.top-s<e.top?"bottom":"right"==i&&f.right+o>e.width?"left":"left"==i&&f.left-o<e.left?"right":i,r.removeClass(p).addClass(i));w=this.getCalculatedOffset(i,f,o,s);this.applyPlacement(w,i);h=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type);u.hoverState=null;"out"==n&&u.leave(u)};n.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",h).emulateTransitionEnd(t.TRANSITION_DURATION):h()}};t.prototype.applyPlacement=function(t,i){var r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top+=o;t.left+=s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;"top"==i&&f!=e&&(t.top=t.top+e-f);u=this.getViewportAdjustedDelta(i,t,h,f);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(i),a=c?2*u.left-l+h:2*u.top-e+f,v=c?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(a,r[0][v],c)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(i){function f(){"in"!=r.hoverState&&u.detach();r.$element&&r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type);i&&i()}var r=this,u=n(this.$tip),e=n.Event("hide.bs."+this.type);if(this.$element.trigger(e),!e.isDefaultPrevented())return u.removeClass("in"),n.support.transition&&u.hasClass("fade")?u.one("bsTransitionEnd",f).emulateTransitionEnd(t.TRANSITION_DURATION):f(),this.hoverState=null,this};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||"string"!=typeof n.attr("data-original-title"))&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(t){t=t||this.$element;var r=t[0],u="BODY"==r.tagName,i=r.getBoundingClientRect();null==i.width&&(i=n.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var f=window.SVGElement&&r instanceof window.SVGElement,e=u?{top:0,left:0}:f?null:t.offset(),o={scroll:u?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},s=u?{width:n(window).width(),height:n(window).height()}:null;return n.extend({},i,o,s,e)};t.prototype.getCalculatedOffset=function(n,t,i,r){return"bottom"==n?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==n?{top:t.top-r,left:t.left+t.width/2-i/2}:"left"==n?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.right&&(f.left=u.left+u.width-c)),f):f};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)};t.prototype.getUID=function(n){do n+=~~(1e6*Math.random());while(document.getElementById(n));return n};t.prototype.tip=function(){if(!this.$tip&&(this.$tip=n(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout);this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type);n.$tip&&n.$tip.detach();n.$tip=null;n.$arrow=null;n.$viewport=null;n.$element=null})};i=n.fn.tooltip;n.fn.tooltip=r;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f="object"==typeof i&&i;!r&&/destroy|hide/.test(i)||(r||u.data("bs.popover",r=new t(this,f)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.7";t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof t?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||("function"==typeof n.content?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};i=n.fn.popover;n.fn.popover=r;n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function t(i,r){this.$body=n(document.body);this.$scrollElement=n(n(i).is(document.body)?window:i);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",n.proxy(this.process,this));this.refresh();this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f="object"==typeof i&&i;r||u.data("bs.scrollspy",r=new t(this,f));"string"==typeof i&&r[i]()})}t.VERSION="3.3.7";t.DEFAULTS={offset:10};t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};t.prototype.refresh=function(){var t=this,i="offset",r=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop());this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var n,i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(void 0===t[n+1]||i<t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};t.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=n.fn.scrollspy;n.fn.scrollspy=i;n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));"string"==typeof i&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.7";t.TRANSITION_DURATION=150;t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),e=n.Event("hide.bs.tab",{relatedTarget:t[0]}),o=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(e),t.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]});t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}};t.prototype.activate=function(i,r,u){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);o?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade");i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);u&&u()}var f=r.find("> .active"),o=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&o?f.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e();f.removeClass("in")};u=n.fn.tab;n.fn.tab=r;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=u,this};i=function(t){t.preventDefault();r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f="object"==typeof i&&i;r||u.data("bs.affix",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=null;this.unpin=null;this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.3.7";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(null!=i&&"top"==this.affixed)return u<i&&"top";if("bottom"==this.affixed)return null!=i?!(u+this.unpin<=f.top)&&"bottom":!(u+e<=n-r)&&"bottom";var o=null==this.affixed,s=o?u:f.top,h=o?e:t;return null!=i&&u<=i?"top":null!=r&&s+h>=n-r&&"bottom"};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=Math.max(n(document).height(),n(document.body).height());if("object"!=typeof r&&(u=f=r),"function"==typeof f&&(f=r.top(this.$element)),"function"==typeof u&&(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(null!=this.unpin&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i;this.unpin="bottom"==i?this.getPinnedOffset():null;this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}"bottom"==i&&this.$element.offset({top:h-s-u})}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};null!=t.offsetBottom&&(t.offset.bottom=t.offsetBottom);null!=t.offsetTop&&(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery)