//>>built
(function(f,h){var a,e,g=function(){},c=function(a){for(var d in a)return 0;return 1},k={}.toString,m=function(a){return"[object Function]"==k.call(a)},b=function(a){return"[object String]"==k.call(a)},d=function(a){return"[object Array]"==k.call(a)},p=function(a,d){if(a)for(var b=0;a[b];)d(a[b++])},n=function(a,d){for(var b in d)a[b]=d[b];return a},l=function(a,d){return n(Error(a),{src:"dojoLoader",info:d})},t=1,q=function(){return"_"+t++},r=function(a,d,b){return pa(a,d,b,0,r)},s=this,v=s.document,
w=v&&v.createElement("DiV"),x=r.has=function(a){return m(u[a])?u[a]=u[a](s,v,w):u[a]},u=x.cache=h.hasCache;x.add=function(a,d,b,c){(void 0===u[a]||c)&&(u[a]=d);return b&&x(a)};for(var A in f.has)x.add(A,f.has[A],0,1);r.async=1;var B=new Function("return eval(arguments[0]);");r.eval=function(a,d){return B(a+"\r\n////@ sourceURL\x3d"+d)};var y={},z=r.signal=function(a,b){var c=y[a];p(c&&c.slice(0),function(a){a.apply(null,d(b)?b:[b])})},G=r.on=function(a,d){var b=y[a]||(y[a]=[]);b.push(d);return{remove:function(){for(var a=
0;a<b.length;a++)if(b[a]===d){b.splice(a,1);break}}}},P=[],E={},M=[],Q={},I=r.map={},L=[],H={},D="",F={},C={},R={},K=0,J=function(a){var d,b,c,l;for(d in C)b=C[d],(c=d.match(/^url\:(.+)/))?F["url:"+na(c[1],a)]=b:"*now"==d?l=b:"*noref"!=d&&(c=ta(d,a),F[c.mid]=F["url:"+c.url]=b);l&&l(oa(a));C={}},N=function(a){return a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(a){return"\\"+a})},O=function(a,d){d.splice(0,d.length);for(var b in a)d.push([b,a[b],RegExp("^"+N(b)+"(/|$)"),b.length]);d.sort(function(a,
d){return d[3]-a[3]});return d},V=function(a,d){p(a,function(a){d.push([b(a[0])?RegExp("^"+N(a[0])+"$"):a[0],a[1]])})},T=function(a){var d=a.name;d||(d=a,a={name:d});a=n({main:"main"},a);a.location=a.location?a.location:d;a.packageMap&&(I[d]=a.packageMap);a.main.indexOf("./")||(a.main=a.main.substring(2));Q[d]=a},S=[],U=function(a,d,c){for(var l in a){"waitSeconds"==l&&(r.waitms=1E3*(a[l]||0));"cacheBust"==l&&(D=a[l]?b(a[l])?a[l]:(new Date).getTime()+"":"");if("baseUrl"==l||"combo"==l)r[l]=a[l];a[l]!==
u&&(r.rawConfig[l]=a[l],"has"!=l&&x.add("config-"+l,a[l],0,d))}r.baseUrl||(r.baseUrl="./");/\/$/.test(r.baseUrl)||(r.baseUrl+="/");for(l in a.has)x.add(l,a.has[l],0,d);p(a.packages,T);for(e in a.packagePaths)p(a.packagePaths[e],function(a){var d=e+"/"+a;b(a)&&(a={name:a});a.location=d;T(a)});O(n(I,a.map),L);p(L,function(a){a[1]=O(a[1],[]);"*"==a[0]&&(L.star=a)});O(n(E,a.paths),M);V(a.aliases,P);if(d)S.push({config:a.config});else for(l in a.config)d=ka(l,c),d.config=n(d.config||{},a.config[l]);a.cache&&
(J(),C=a.cache,a.cache["*noref"]&&J());z("config",[a,r.rawConfig])};x("dojo-cdn");var ca=v.getElementsByTagName("script");a=0;for(var W,$,aa,ea;a<ca.length;){W=ca[a++];if((aa=W.getAttribute("src"))&&(ea=aa.match(/(((.*)\/)|^)dojo\.js(\W|$)/i)))$=ea[3]||"",h.baseUrl=h.baseUrl||$,K=W;if(aa=W.getAttribute("data-dojo-config")||W.getAttribute("djConfig"))R=r.eval("({ "+aa+" })","data-dojo-config"),K=W}r.rawConfig={};U(h,1);x("dojo-cdn")&&((Q.dojo.location=$)&&($+="/"),Q.dijit.location=$+"../dijit/",Q.dojox.location=
$+"../dojox/");U(f,1);U(R,1);var fa=function(a){Da(function(){p(a.deps,Na)})},pa=function(a,c,e,p,f){var h;if(b(a)){if((h=ka(a,p,!0))&&h.executed)return h.result;throw l("undefinedModule",a);}d(a)||(U(a,0,p),a=c,c=e);if(d(a))if(a.length){e="require*"+q();for(var m,k=[],t=0;t<a.length;)m=a[t++],k.push(ka(m,p));h=n(la("",e,0,""),{injected:2,deps:k,def:c||g,require:p?p.require:r,gc:1});H[h.mid]=h;fa(h);var y=ya&&0!="sync";Da(function(){Ea(h,y)});h.executed||Z.push(h);Aa()}else c&&c();return f},oa=function(a){if(!a)return r;
var d=a.require;d||(d=function(b,c,l){return pa(b,c,l,a,d)},a.require=n(d,r),d.module=a,d.toUrl=function(d){return na(d,a)},d.toAbsMid=function(d){return ua(d,a)});return d},Z=[],ja=[],Y={},X=function(a){a.injected=1;Y[a.mid]=1;a.url&&(Y[a.url]=a.pack||1);Oa()},ba=function(a){a.injected=2;delete Y[a.mid];a.url&&delete Y[a.url];c(Y)&&Ba()},ia=r.idle=function(){return!ja.length&&c(Y)&&!Z.length&&!ya},ha=function(a,d){if(d)for(var b=0;b<d.length;b++)if(d[b][2].test(a))return d[b];return 0},ga=function(a){var d=
[],b,c;for(a=a.replace(/\\/g,"/").split("/");a.length;)b=a.shift(),".."==b&&d.length&&".."!=c?(d.pop(),c=d[d.length-1]):"."!=b&&d.push(c=b);return d.join("/")},la=function(a,d,b,c){return{pid:a,mid:d,pack:b,url:c,executed:0,def:0}},sa=function(a,d,b,c,e,n,g,h,f){var k,t,r,q;q=/^\./.test(a);if(/(^\/)|(\:)|(\.js$)/.test(a)||q&&!d)return la(0,a,0,a);a=ga(q?d.mid+"/../"+a:a);if(/^\./.test(a))throw l("irrationalPath",a);d&&(r=ha(d.mid,n));(r=(r=r||n.star)&&ha(a,r[1]))&&(a=r[1]+a.substring(r[3]));d=(ea=
a.match(/^([^\/]+)(\/(.+))?$/))?ea[1]:"";(k=b[d])?a=d+"/"+(t=ea[3]||k.main):d="";var y=0;p(h,function(d){var b=a.match(d[0]);b&&0<b.length&&(y=m(d[1])?a.replace(d[0],d[1]):d[1])});if(y)return sa(y,0,b,c,e,n,g,h,f);if(b=c[a])return f?la(b.pid,b.mid,b.pack,b.url):c[a];c=(r=ha(a,g))?r[1]+a.substring(r[3]):d?k.location+"/"+t:x("config-tlmSiblingOfDojo")?"../"+a:a;/(^\/)|(\:)/.test(c)||(c=e+c);return la(d,a,k,ga(c+".js"))},ta=function(a,d){return sa(a,d,Q,H,r.baseUrl,L,M,P)},va=function(a,d,b){return a.normalize?
a.normalize(d,function(a){return ua(a,b)}):ua(d,b)},ma=0,ka=function(a,d,b){var c,l;(c=a.match(/^(.+?)\!(.*)$/))?(l=ka(c[1],d,b),5===l.executed&&!l.load&&Fa(l),l.load?(c=va(l,c[2],d),a=l.mid+"!"+(l.dynamic?++ma+"!":"")+c):(c=c[2],a=l.mid+"!"+ ++ma+"!waitingForPlugin"),a={plugin:l,mid:a,req:oa(d),prid:c}):a=ta(a,d);return H[a.mid]||!b&&(H[a.mid]=a)},ua=r.toAbsMid=function(a,d){return ta(a,d).mid},na=r.toUrl=function(a,d){var b=ta(a+"/x",d),c=b.url;return Pa(0===b.pid?a:c.substring(0,c.length-5))},
da={injected:2,executed:5,def:3,result:3},wa=function(a){return H[a]=n({mid:a},da)},Ga=wa("require"),qa=wa("exports"),ra=wa("module"),za={},Ha=0,Fa=function(a){var d=a.result;a.dynamic=d.dynamic;a.normalize=d.normalize;a.load=d.load;return a},Ua=function(a){var d={};p(a.loadQ,function(b){var c=va(a,b.prid,b.req.module),l=a.dynamic?b.mid.replace(/waitingForPlugin$/,c):a.mid+"!"+c,c=n(n({},b),{mid:l,prid:c,injected:0});H[l]||Qa(H[l]=c);d[b.mid]=H[l];ba(b);delete H[b.mid]});a.loadQ=0;var b=function(a){for(var b=
a.deps||[],c=0;c<b.length;c++)(a=d[b[c].mid])&&(b[c]=a)},c;for(c in H)b(H[c]);p(Z,b)},Ia=function(d){r.trace("loader-finish-exec",[d.mid]);d.executed=5;d.defOrder=Ha++;d.loadQ&&(Fa(d),Ua(d));for(a=0;a<Z.length;)Z[a]===d?Z.splice(a,1):a++;/^require\*/.test(d.mid)&&delete H[d.mid]},Va=[],Ea=function(a,d){if(4===a.executed)return r.trace("loader-circular-dependency",[Va.concat(a.mid).join("-\x3e")]),!a.def||d?za:a.cjs&&a.cjs.exports;if(!a.executed){if(!a.def)return za;var b=a.mid,c=a.deps||[],e,n=[],
g=0;for(a.executed=4;e=c[g++];){e=e===Ga?oa(a):e===qa?a.cjs.exports:e===ra?a.cjs:Ea(e,d);if(e===za)return a.executed=0,r.trace("loader-exec-module",["abort",b]),za;n.push(e)}r.trace("loader-run-factory",[a.mid]);var b=a.def,p;if(x("config-dojo-loader-catches"))try{p=m(b)?b.apply(null,n):b}catch(h){z("error",a.result=l("factoryThrew",[a,h]))}else p=m(b)?b.apply(null,n):b;a.result=void 0===p&&a.cjs?a.cjs.exports:p;Ia(a)}return a.result},ya=0,Da=function(a){try{ya++,a()}finally{ya--}ia()&&z("idle",[])},
Aa=function(){ya||Da(function(){for(var a,d,b=0;b<Z.length;)a=Ha,d=Z[b],Ea(d),a!=Ha?b=0:b++})};void 0===x("dojo-loader-eval-hint-url")&&x.add("dojo-loader-eval-hint-url",1);var Pa=function(a){a+="";return a+(D?(/\?/.test(a)?"\x26":"?")+D:"")},Qa=function(a){var d=a.plugin;5===d.executed&&!d.load&&Fa(d);var b=function(d){a.result=d;ba(a);Ia(a);Aa()};d.load?d.load(a.prid,a.req,b):d.loadQ?d.loadQ.push(a):(d.loadQ=[a],Z.unshift(d),Na(d))},xa=0,Ja=0,Ka=0,Wa=function(a,d){x("config-stripStrict")&&(a=a.replace(/"use strict"/g,
""));Ka=1;if(x("config-dojo-loader-catches"))try{a===xa?xa.call(null):r.eval(a,x("dojo-loader-eval-hint-url")?d.url:d.mid)}catch(b){z("error",l("evalModuleThrew",d))}else a===xa?xa.call(null):r.eval(a,x("dojo-loader-eval-hint-url")?d.url:d.mid);Ka=0},Na=function(a){var d=a.mid,b=a.url;if(!a.executed&&!a.injected&&!(Y[d]||a.url&&(a.pack&&Y[a.url]===a.pack||1==Y[a.url])))if(X(a),a.plugin)Qa(a);else{var c=function(){Xa(a);if(2!==a.injected){if(x("dojo-enforceDefine")){z("error",l("noDefine",a));return}ba(a);
n(a,da);r.trace("loader-define-nonmodule",[a.url])}Aa()};(xa=F[d]||F["url:"+a.url])?(r.trace("loader-inject",["cache",a.mid,b]),Wa(xa,a),c()):(r.trace("loader-inject",["script",a.mid,b]),Ja=a,r.injectUrl(Pa(b),c,a),Ja=0)}},La=function(a,d,b){r.trace("loader-define-module",[a.mid,d]);if(2===a.injected)return z("error",l("multipleDefine",a)),a;n(a,{deps:d,def:b,cjs:{id:a.mid,uri:a.url,exports:a.result={},setExports:function(d){a.cjs.exports=d},config:function(){return a.config}}});for(var c=0;d[c];c++)d[c]=
ka(d[c],a);ba(a);!m(b)&&!d.length&&(a.result=b,Ia(a));return a},Xa=function(a,d){for(var b=[],c,l;ja.length;)l=ja.shift(),d&&(l[0]=d.shift()),c=l[0]&&ka(l[0])||a,b.push([c,l[1],l[2]]);J(a);p(b,function(a){fa(La.apply(null,a))})},Ca=0,Ba=g,Oa=g,Ba=function(){Ca&&clearTimeout(Ca);Ca=0},Oa=function(){Ba();r.waitms&&(Ca=window.setTimeout(function(){Ba();z("error",l("timeout",Y))},r.waitms))};x.add("ie-event-behavior",v.attachEvent&&"undefined"===typeof Windows&&("undefined"===typeof opera||"[object Opera]"!=
opera.toString()));var Ma=function(a,d,b,c){if(x("ie-event-behavior"))return a.attachEvent(b,c),function(){a.detachEvent(b,c)};a.addEventListener(d,c,!1);return function(){a.removeEventListener(d,c,!1)}},Ya=Ma(window,"load","onload",function(){r.pageLoaded=1;"complete"!=v.readyState&&(v.readyState="complete");Ya()}),ca=v.getElementsByTagName("script");for(a=0;!K;)if(!/^dojo/.test((W=ca[a++])&&W.type))K=W;r.injectUrl=function(a,d,b){b=b.node=v.createElement("script");var c=Ma(b,"load","onreadystatechange",
function(a){a=a||window.event;var b=a.target||a.srcElement;if("load"===a.type||/complete|loaded/.test(b.readyState))c(),e(),d&&d()}),e=Ma(b,"error","onerror",function(d){c();e();z("error",l("scriptError",[a,d]))});b.type="text/javascript";b.charset="utf-8";b.src=a;K.parentNode.insertBefore(b,K);return b};r.log=g;r.trace=g;var Ra=function(a,d,c){var e=arguments.length,n=["require","exports","module"],g=[0,a,d];1==e?g=[0,m(a)?n:[],a]:2==e&&b(a)?g=[a,m(d)?n:[],d]:3==e&&(g=[a,d,c]);r.trace("loader-define",
g.slice(0,2));if((e=g[0]&&ka(g[0]))&&!Y[e.mid])fa(La(e,g[1],g[2]));else if(!x("ie-event-behavior")||Ka)ja.push(g);else{e=e||Ja;if(!e)for(a in Y)if((n=H[a])&&n.node&&"interactive"===n.node.readyState){e=n;break}e?(J(e),fa(La(e,g[1],g[2]))):z("error",l("ieDefineFailed",g[0]));Aa()}};Ra.amd={vendor:"dojotoolkit.org"};n(n(r,h.loaderPatch),f.loaderPatch);G("error",function(a){try{if(console.error(a),a instanceof Error){for(var d in a)console.log(d+":",a[d]);console.log(".")}}catch(b){}});n(r,{uid:q,cache:F,
packs:Q});if(!s.define){s.define=Ra;s.require=r;p(S,function(a){U(a)});var Sa=R.deps||f.deps||h.deps,Ta=R.callback||f.callback||h.callback;r.boot=Sa||Ta?[Sa||[],Ta]:0}})(this.dojoConfig||this.djConfig||this.require||{},{async:0,baseUrl:"/assets/PWS171/javascripts/src/",hasCache:{"config-selectorEngine":"acme","config-tlmSiblingOfDojo":1,"dojo-built":1,"dojo-loader":1,dom:1,"host-browser":1},packages:[{location:".",name:"dojo"},{location:"../dijit",name:"dijit"},{location:"../dojox",name:"dojox"},
{location:"../hijit",name:"hijit"},{location:"../app",name:"app"},{location:"../waf",name:"waf"}]});
require({cache:{"dojo/domReady":function(){define(["./has"],function(f){function h(d){b.push(d);m&&a()}function a(){if(!d){for(d=!0;b.length;)try{b.shift()(g)}catch(a){console.log("Error on domReady callback: "+a)}d=!1;h._onQEmpty()}}var e=this,g=document,c={loaded:1,complete:1},k="string"!=typeof g.readyState,m=!!c[g.readyState],b=[],d;h.load=function(a,d,b){h(b)};h._Q=b;h._onQEmpty=function(){};k&&(g.readyState="loading");if(!m){var p=[],n=function(d){d=d||e.event;m||"readystatechange"==d.type&&
!c[g.readyState]||(k&&(g.readyState="complete"),m=1,a())},l=function(a,d){a.addEventListener(d,n,!1);b.push(function(){a.removeEventListener(d,n,!1)})};if(!f("dom-addeventlistener")){var l=function(a,d){d="on"+d;a.attachEvent(d,n);b.push(function(){a.detachEvent(d,n)})},t=g.createElement("div");try{t.doScroll&&null===e.frameElement&&p.push(function(){try{return t.doScroll("left"),1}catch(a){}})}catch(q){}}l(g,"DOMContentLoaded");l(e,"load");"onreadystatechange"in g?l(g,"readystatechange"):k||p.push(function(){return c[g.readyState]});
if(p.length){var r=function(){if(!m){for(var a=p.length;a--;)if(p[a]()){n("poller");return}setTimeout(r,30)}};r()}}return h})},"dojo/has":function(){define(["require","module"],function(f,h){var a=f.has||function(){};a.add("dom-addeventlistener",!!document.addEventListener);a.add("touch","ontouchstart"in document||0<window.navigator.msMaxTouchPoints);a.add("device-width",screen.availWidth||innerWidth);var e=document.createElement("form");a.add("dom-attributes-explicit",0==e.attributes.length);a.add("dom-attributes-specified-flag",
0<e.attributes.length&&40>e.attributes.length);a.clearElement=function(a){a.innerHTML="";return a};a.normalize=function(e,c){var h=e.match(/[\?:]|[^:\?]*/g),f=0,b=function(d){var c=h[f++];if(":"==c)return 0;if("?"==h[f++]){if(!d&&a(c))return b();b(!0);return b(d)}return c||0};return(e=b())&&c(e)};a.load=function(a,c,e){a?c([a],e):e()};return a})},"app/main":function(){define("dojo/parser dojo/domReady! waf/plugins/responsive_containers waf/plugins/placeholder waf/initialisers/compatibility waf/initialisers/device_detection waf/initialisers/feature_detection waf/initialisers/append_around waf/initialisers/responsive_images waf/initialisers/tracking waf/initialisers/ie7 waf/initialisers/custom_webtrends waf/ResponsiveStyleguide waf/components/accordion waf/components/alert_message waf/components/ask_andrew waf/components/bib_popup waf/components/box_list waf/components/branch_finder waf/components/breaking_news waf/components/browser_warning waf/components/contact_details waf/components/contact_us waf/components/content_promo_boxes waf/components/cookie_notification waf/components/country_selector waf/components/cta_box waf/components/customer_facts waf/components/exec_biography waf/components/filter waf/components/filter_select/base waf/components/footer waf/components/form waf/components/form_wizard waf/components/fx_calculator/base waf/components/fx_rates_table waf/components/header/base waf/components/header/brand_logo waf/components/header/divisions_nav waf/components/header/utility_header waf/components/hero_carousel waf/components/image_carousel waf/components/in_page_nav/scroll_spy waf/components/in_page_nav/sticky_nav waf/components/inline_contact waf/components/inline_table waf/components/interaction_box waf/components/jump_to waf/components/language_select waf/components/leaving_confirmation waf/components/link_list waf/components/link_and_launch waf/components/long_form_promo waf/components/masthead_search waf/components/media_object waf/components/modal_onload waf/components/nav_tray waf/components/pop_up_window waf/components/rtc/account_opening waf/components/rtc/base waf/components/rtc_static waf/components/search_box waf/components/search_results waf/components/share_actions waf/components/simple_tabs waf/components/skip_links waf/components/statistic waf/components/subfamily_teaser waf/components/subfamily_teaser_list waf/components/sub_section_nav waf/components/tabordion waf/components/tabs waf/components/tooltip waf/components/text waf/components/vertical_tabs waf/components/video".split(" "),
function(f){f.parse()})},"dojo/parser":function(){define("require ./_base/kernel ./_base/lang ./_base/array ./_base/config ./dom ./_base/window ./_base/url ./aspect ./promise/all ./date/stamp ./Deferred ./has ./query ./on ./ready".split(" "),function(f,h,a,e,g,c,k,m,b,d,p,n,l,t,q,r){function s(a){return eval("("+a+")")}function v(a){var d=a._nameCaseMap,b=a.prototype;if(!d||d._extendCnt<x){var d=a._nameCaseMap={},c;for(c in b)"_"!==c.charAt(0)&&(d[c.toLowerCase()]=c);d._extendCnt=x}return d}function w(d,
b){var c=d.join();if(!u[c]){for(var l=[],e=0,n=d.length;e<n;e++){var g=d[e];l[l.length]=u[g]=u[g]||a.getObject(g)||~g.indexOf("/")&&(b?b(g):f(g))}e=l.shift();u[c]=l.length?e.createSubclass?e.createSubclass(l):e.extend.apply(e,l):e}return u[c]}new Date("X");var x=0;b.after(a,"extend",function(){x++},!0);var u={},A={_clearCache:function(){x++;u={}},_functionFromScript:function(a,d){var b="",c="",l=a.getAttribute(d+"args")||a.getAttribute("args"),n=a.getAttribute("with"),l=(l||"").split(/\s*,\s*/);n&&
n.length&&e.forEach(n.split(/\s*,\s*/),function(a){b+="with("+a+"){";c+="}"});return new Function(l,b+a.innerHTML+c)},instantiate:function(a,d,b){d=d||{};b=b||{};var c=(b.scope||h._scopeName)+"Type",l="data-"+(b.scope||h._scopeName)+"-",n=l+"type",g=l+"mixins",p=[];e.forEach(a,function(a){var b=c in d?d[c]:a.getAttribute(n)||a.getAttribute(c);if(b){var l=a.getAttribute(g),b=l?[b].concat(l.split(/\s*,\s*/)):[b];p.push({node:a,types:b})}});return this._instantiate(p,d,b)},_instantiate:function(a,b,
c,l){function n(a){!b._started&&!c.noStart&&e.forEach(a,function(a){"function"===typeof a.startup&&!a._started&&a.startup()});return a}a=e.map(a,function(a){var d=a.ctor||w(a.types,c.contextRequire);if(!d)throw Error("Unable to resolve constructor for: '"+a.types.join()+"'");return this.construct(d,a.node,b,c,a.scripts,a.inherited)},this);return l?d(a).then(n):n(a)},construct:function(d,c,n,g,f,k){function r(d){R&&a.setObject(R,d);for(F=0;F<V.length;F++)b[V[F].advice||"after"](d,V[F].method,a.hitch(d,
V[F].func),!0);for(F=0;F<T.length;F++)T[F].call(d);for(F=0;F<S.length;F++)d.watch(S[F].prop,S[F].func);for(F=0;F<U.length;F++)q(d,U[F].event,U[F].func);return d}var w=d&&d.prototype;g=g||{};var u={};g.defaults&&a.mixin(u,g.defaults);k&&a.mixin(u,k);var x;l("dom-attributes-explicit")?x=c.attributes:l("dom-attributes-specified-flag")?x=e.filter(c.attributes,function(a){return a.specified}):(k=(/^input$|^img$/i.test(c.nodeName)?c:c.cloneNode(!1)).outerHTML.replace(/=[^\s"']+|="[^"]*"|='[^']*'/g,"").replace(/^\s*<[a-zA-Z0-9]*\s*/,
"").replace(/\s*>.*$/,""),x=e.map(k.split(/\s+/),function(a){var d=a.toLowerCase();return{name:a,value:"LI"==c.nodeName&&"value"==a||"enctype"==d?c.getAttribute(d):c.getAttributeNode(d).value}}));var A=g.scope||h._scopeName;k="data-"+A+"-";var D={};"dojo"!==A&&(D[k+"props"]="data-dojo-props",D[k+"type"]="data-dojo-type",D[k+"mixins"]="data-dojo-mixins",D[A+"type"]="dojoType",D[k+"id"]="data-dojo-id");for(var F=0,C,A=[],R,K;C=x[F++];){var J=C.name,N=J.toLowerCase();C=C.value;switch(D[N]||N){case "data-dojo-type":case "dojotype":case "data-dojo-mixins":break;
case "data-dojo-props":K=C;break;case "data-dojo-id":case "jsid":R=C;break;case "data-dojo-attach-point":case "dojoattachpoint":u.dojoAttachPoint=C;break;case "data-dojo-attach-event":case "dojoattachevent":u.dojoAttachEvent=C;break;case "class":u["class"]=c.className;break;case "style":u.style=c.style&&c.style.cssText;break;default:if(J in w||(J=v(d)[N]||J),J in w)switch(typeof w[J]){case "string":u[J]=C;break;case "number":u[J]=C.length?Number(C):NaN;break;case "boolean":u[J]="false"!=C.toLowerCase();
break;case "function":""===C||-1!=C.search(/[^\w\.]+/i)?u[J]=new Function(C):u[J]=a.getObject(C,!1)||new Function(C);A.push(J);break;default:N=w[J],u[J]=N&&"length"in N?C?C.split(/\s*,\s*/):[]:N instanceof Date?""==C?new Date(""):"now"==C?new Date:p.fromISOString(C):N instanceof m?h.baseUrl+C:s(C)}else u[J]=C}}for(x=0;x<A.length;x++)D=A[x].toLowerCase(),c.removeAttribute(D),c[D]=null;if(K)try{K=s.call(g.propsThis,"{"+K+"}"),a.mixin(u,K)}catch(O){throw Error(O.toString()+" in data-dojo-props\x3d'"+
K+"'");}a.mixin(u,n);f||(f=d&&(d._noScript||w._noScript)?[]:t("\x3e script[type^\x3d'dojo/']",c));var V=[],T=[],S=[],U=[];if(f)for(F=0;F<f.length;F++)D=f[F],c.removeChild(D),n=D.getAttribute(k+"event")||D.getAttribute("event"),g=D.getAttribute(k+"prop"),K=D.getAttribute(k+"method"),A=D.getAttribute(k+"advice"),x=D.getAttribute("type"),D=this._functionFromScript(D,k),n?"dojo/connect"==x?V.push({method:n,func:D}):"dojo/on"==x?U.push({event:n,func:D}):u[n]=D:"dojo/aspect"==x?V.push({method:K,advice:A,
func:D}):"dojo/watch"==x?S.push({prop:g,func:D}):T.push(D);d=(f=d.markupFactory||w.markupFactory)?f(u,c,d):new d(u,c);return d.then?d.then(r):r(d)},scan:function(a,d){function b(a){if(!a.inherited){a.inherited={};var d=a.node,c=b(a.parent),d={dir:d.getAttribute("dir")||c.dir,lang:d.getAttribute("lang")||c.lang,textDir:d.getAttribute(r)||c.textDir},l;for(l in d)d[l]&&(a.inherited[l]=d[l])}return a.inherited}var c=[],g=[],p={},k=(d.scope||h._scopeName)+"Type",m="data-"+(d.scope||h._scopeName)+"-",t=
m+"type",r=m+"textdir",m=m+"mixins",q=a.firstChild,s=d.inherited;if(!s){var u=function(a,d){return a.getAttribute&&a.getAttribute(d)||a.parentNode&&u(a.parentNode,d)},s={dir:u(a,"dir"),lang:u(a,"lang"),textDir:u(a,r)},v;for(v in s)s[v]||delete s[v]}for(var s={inherited:s},x,A;;)if(q)if(1!=q.nodeType)q=q.nextSibling;else if(x&&"script"==q.nodeName.toLowerCase())(J=q.getAttribute("type"))&&/^dojo\/\w/i.test(J)&&x.push(q),q=q.nextSibling;else if(A)q=q.nextSibling;else{var J=q.getAttribute(t)||q.getAttribute(k);
v=q.firstChild;if(!J&&(!v||3==v.nodeType&&!v.nextSibling))q=q.nextSibling;else{A=null;if(J){var N=q.getAttribute(m);x=N?[J].concat(N.split(/\s*,\s*/)):[J];try{A=w(x,d.contextRequire)}catch(O){}A||e.forEach(x,function(a){~a.indexOf("/")&&!p[a]&&(p[a]=!0,g[g.length]=a)});N=A&&!A.prototype._noScript?[]:null;s={types:x,ctor:A,parent:s,node:q,scripts:N};s.inherited=b(s);c.push(s)}else s={node:q,scripts:x,parent:s};x=N;A=q.stopParser||A&&A.prototype.stopParser&&!d.template;q=v}}else{if(!s||!s.node)break;
q=s.node.nextSibling;A=!1;s=s.parent;x=s.scripts}var V=new n;g.length?(l("dojo-debug-messages")&&console.warn("WARNING: Modules being Auto-Required: "+g.join(", ")),(d.contextRequire||f)(g,function(){V.resolve(e.filter(c,function(a){if(!a.ctor)try{a.ctor=w(a.types,d.contextRequire)}catch(b){}for(var c=a.parent;c&&!c.types;)c=c.parent;var l=a.ctor&&a.ctor.prototype;a.instantiateChildren=!(l&&l.stopParser&&!d.template);a.instantiate=!c||c.instantiate&&c.instantiateChildren;return a.instantiate}))})):
V.resolve(c);return V.promise},_require:function(d,b){var c=s("{"+d.innerHTML+"}"),l=[],e=[],g=new n,p=b&&b.contextRequire||f,h;for(h in c)l.push(h),e.push(c[h]);p(e,function(){for(var d=0;d<l.length;d++)a.setObject(l[d],arguments[d]);g.resolve(arguments)});return g.promise},_scanAmd:function(a,d){var b=new n,c=b.promise;b.resolve(!0);var l=this;t("script[type\x3d'dojo/require']",a).forEach(function(a){c=c.then(function(){return l._require(a,d)});a.parentNode.removeChild(a)});return c},parse:function(d,
b){var l;!b&&d&&d.rootNode?(b=d,l=b.rootNode):d&&a.isObject(d)&&!("nodeType"in d)?b=d:l=d;l=l?c.byId(l):k.body();b=b||{};var e=b.template?{template:!0}:{},n=[],g=this,p=this._scanAmd(l,b).then(function(){return g.scan(l,b)}).then(function(a){return g._instantiate(a,e,b,!0)}).then(function(a){return n=n.concat(a)}).otherwise(function(a){console.error("dojo/parser::parse() error",a);throw a;});a.mixin(n,p);return n}};h.parser=A;g.parseOnLoad&&r(100,A,"parse");return A})},"dojo/_base/kernel":function(){define(["../has",
"./config","require","module"],function(f,h,a,e){var g,c={},k={},m={config:h,global:this,dijit:c,dojox:k},c={dojo:["dojo",m],dijit:["dijit",c],dojox:["dojox",k]};e=a.map&&a.map[e.id.match(/[^\/]+/)[0]];for(g in e)c[g]?c[g][0]=e[g]:c[g]=[e[g],{}];for(g in c)e=c[g],e[1]._scopeName=e[0],h.noGlobals||(this[e[0]]=e[1]);m.scopeMap=c;m.baseUrl=m.config.baseUrl=a.baseUrl;m.isAsync=a.async;m.locale=h.locale;e="$Rev$".match(/\d+/);m.version={major:1,minor:9,patch:0,flag:"",revision:e?+e[0]:NaN,toString:function(){var a=
m.version;return a.major+"."+a.minor+"."+a.patch+a.flag+" ("+a.revision+")"}};Function("d","d.eval \x3d function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}")(m);m.exit=function(){};"undefined"!=typeof console||(console={});var c="assert count debug dir dirxml error group groupEnd info profile profileEnd time timeEnd trace warn log".split(" "),b;for(e=0;b=c[e++];)console[b]||function(){var a=b+"";console[a]="log"in console?function(){var b=Array.apply({},arguments);
b.unshift(a+":");console.log(b.join(" "))}:function(){};console[a]._fake=!0}();f.add("dojo-debug-messages",!!h.isDebug);m.deprecated=m.experimental=function(){};f("dojo-debug-messages")&&(m.deprecated=function(a,b,c){a="DEPRECATED: "+a;b&&(a+=" "+b);c&&(a+=" -- will be removed in version: "+c);console.warn(a)},m.experimental=function(a,b){var c="EXPERIMENTAL: "+a+" -- APIs subject to change without notice.";b&&(c+=" "+b);console.warn(c)});if(h.modulePaths){m.deprecated("dojo.modulePaths","use paths configuration");
f={};for(g in h.modulePaths)f[g.replace(/\./g,"/")]=h.modulePaths[g];a({paths:f})}m.moduleUrl=function(d,b){m.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var c=null;d&&(c=a.toUrl(d.replace(/\./g,"/")+(b?"/"+b:"")+"/*.*").replace(/\/\*\.\*/,"")+(b?"":"/"));return c};m._hasResource={};return m})},"dojo/_base/config":function(){define(["../has","require"],function(f,h){var a={},e=h.rawConfig,g;for(g in e)a[g]=e[g];a.locale||(a.locale=(navigator.language||navigator.userLanguage).toLowerCase());
return a})},"dojo/_base/lang":function(){define(["./kernel","../has","../sniff"],function(f,h){h.add("bug-for-in-skips-shadowed",function(){for(var a in{toString:1})return 0;return 1});var a=h("bug-for-in-skips-shadowed")?"hasOwnProperty valueOf isPrototypeOf propertyIsEnumerable toLocaleString toString constructor".split(" "):[],e=a.length,g=function(a,b,c){var l,e=0,g=f.global;if(!c)if(a.length){l=a[e++];try{c=f.scopeMap[l]&&f.scopeMap[l][1]}catch(h){}c=c||(l in g?g[l]:b?g[l]={}:void 0)}else return g;
for(;c&&(l=a[e++]);)c=l in c?c[l]:b?c[l]={}:void 0;return c},c=Object.prototype.toString,k=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))},m=/\{([^\}]+)\}/g,b={_extraNames:a,_mixin:function(d,b,c){var l,g,f,k={};for(l in b)if(g=b[l],!(l in d)||d[l]!==g&&(!(l in k)||k[l]!==g))d[l]=c?c(g):g;if(h("bug-for-in-skips-shadowed")&&b)for(f=0;f<e;++f)if(l=a[f],g=b[l],!(l in d)||d[l]!==g&&(!(l in k)||k[l]!==g))d[l]=c?c(g):g;return d},mixin:function(a,c){a||(a={});for(var e=1,l=arguments.length;e<
l;e++)b._mixin(a,arguments[e]);return a},setObject:function(a,b,c){var l=a.split(".");a=l.pop();return(c=g(l,!0,c))&&a?c[a]=b:void 0},getObject:function(a,b,c){return g(a.split("."),b,c)},exists:function(a,c){return void 0!==b.getObject(a,!1,c)},isString:function(a){return"string"==typeof a||a instanceof String},isArray:function(a){return a&&(a instanceof Array||"array"==typeof a)},isFunction:function(a){return"[object Function]"===c.call(a)},isObject:function(a){return void 0!==a&&(null===a||"object"==
typeof a||b.isArray(a)||b.isFunction(a))},isArrayLike:function(a){return a&&void 0!==a&&!b.isString(a)&&!b.isFunction(a)&&!(a.tagName&&"form"==a.tagName.toLowerCase())&&(b.isArray(a)||isFinite(a.length))},isAlien:function(a){return a&&!b.isFunction(a)&&/\{\s*\[native code\]\s*\}/.test(String(a))},extend:function(a,c){for(var e=1,l=arguments.length;e<l;e++)b._mixin(a.prototype,arguments[e]);return a},_hitchArgs:function(a,c){var e=b._toArray(arguments,2),l=b.isString(c);return function(){var g=b._toArray(arguments),
h=l?(a||f.global)[c]:c;return h&&h.apply(a||this,e.concat(g))}},hitch:function(a,c){if(2<arguments.length)return b._hitchArgs.apply(f,arguments);c||(c=a,a=null);if(b.isString(c)){a=a||f.global;if(!a[c])throw['lang.hitch: scope["',c,'"] is null (scope\x3d"',a,'")'].join("");return function(){return a[c].apply(a,arguments||[])}}return!a?c:function(){return c.apply(a,arguments||[])}},delegate:function(){function a(){}return function(c,e){a.prototype=c;var l=new a;a.prototype=null;e&&b._mixin(l,e);return l}}(),
_toArray:h("ie")?function(){function a(b,d,c){c=c||[];for(d=d||0;d<b.length;d++)c.push(b[d]);return c}return function(b){return(b.item?a:k).apply(this,arguments)}}():k,partial:function(a){return b.hitch.apply(f,[null].concat(b._toArray(arguments)))},clone:function(a){if(!a||"object"!=typeof a||b.isFunction(a))return a;if(a.nodeType&&"cloneNode"in a)return a.cloneNode(!0);if(a instanceof Date)return new Date(a.getTime());if(a instanceof RegExp)return RegExp(a);var c,e,l;if(b.isArray(a)){c=[];e=0;for(l=
a.length;e<l;++e)e in a&&c.push(b.clone(a[e]))}else c=a.constructor?new a.constructor:{};return b._mixin(c,a,b.clone)},trim:String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},replace:function(a,c,e){return a.replace(e||m,b.isFunction(c)?c:function(a,d){return b.getObject(d,!1,c)})}};b.mixin(f,b);return b})},"dojo/sniff":function(){define(["./has"],function(f){var h=navigator,a=h.userAgent,h=h.appVersion,e=parseFloat(h);f.add("air",0<=
a.indexOf("AdobeAIR"));f.add("msapp",parseFloat(a.split("MSAppHost/")[1])||void 0);f.add("khtml",0<=h.indexOf("Konqueror")?e:void 0);f.add("webkit",parseFloat(a.split("WebKit/")[1])||void 0);f.add("chrome",parseFloat(a.split("Chrome/")[1])||void 0);f.add("safari",0<=h.indexOf("Safari")&&!f("chrome")?parseFloat(h.split("Version/")[1]):void 0);f.add("mac",0<=h.indexOf("Macintosh"));f.add("quirks","BackCompat"==document.compatMode);if(a.match(/(iPhone|iPod|iPad)/)){var g=RegExp.$1.replace(/P/,"p"),c=
a.match(/OS ([\d_]+)/)?RegExp.$1:"1",c=parseFloat(c.replace(/_/,".").replace(/_/g,""));f.add(g,c);f.add("ios",c)}f.add("android",parseFloat(a.split("Android ")[1])||void 0);f.add("bb",(0<=a.indexOf("BlackBerry")||0<=a.indexOf("BB10"))&&parseFloat(a.split("Version/")[1])||void 0);f.add("svg","undefined"!==typeof SVGAngle);f("webkit")||(0<=a.indexOf("Opera")&&f.add("opera",9.8<=e?parseFloat(a.split("Version/")[1])||e:e),0<=a.indexOf("Gecko")&&(!f("khtml")&&!f("webkit"))&&f.add("mozilla",e),f("mozilla")&&
f.add("ff",parseFloat(a.split("Firefox/")[1]||a.split("Minefield/")[1])||void 0),document.all&&!f("opera")&&(a=parseFloat(h.split("MSIE ")[1])||void 0,(h=document.documentMode)&&(5!=h&&Math.floor(a)!=h)&&(a=h),f.add("ie",a)),f.add("wii","undefined"!=typeof opera&&opera.wiiremote));return f})},"dojo/_base/array":function(){define(["./kernel","../has","./lang"],function(f,h,a){function e(a){return k[a]=new Function("item","index","array",a)}function g(a){var b=!a;return function(c,l,g){var h=0,f=c&&
c.length||0,m;f&&"string"==typeof c&&(c=c.split(""));"string"==typeof l&&(l=k[l]||e(l));if(g)for(;h<f;++h){if(m=!l.call(g,c[h],h,c),a^m)return!m}else for(;h<f;++h)if(m=!l(c[h],h,c),a^m)return!m;return b}}function c(a){var c=1,e=0,l=0;a||(c=e=l=-1);return function(g,h,f,k){if(k&&0<c)return b.lastIndexOf(g,h,f);k=g&&g.length||0;var v=a?k+l:e;f===m?f=a?e:k+l:0>f?(f=k+f,0>f&&(f=e)):f=f>=k?k+l:f;for(k&&"string"==typeof g&&(g=g.split(""));f!=v;f+=c)if(g[f]==h)return f;return-1}}var k={},m,b={every:g(!1),
some:g(!0),indexOf:c(!0),lastIndexOf:c(!1),forEach:function(a,b,c){var l=0,g=a&&a.length||0;g&&"string"==typeof a&&(a=a.split(""));"string"==typeof b&&(b=k[b]||e(b));if(c)for(;l<g;++l)b.call(c,a[l],l,a);else for(;l<g;++l)b(a[l],l,a)},map:function(a,b,c,l){var g=0,f=a&&a.length||0;l=new (l||Array)(f);f&&"string"==typeof a&&(a=a.split(""));"string"==typeof b&&(b=k[b]||e(b));if(c)for(;g<f;++g)l[g]=b.call(c,a[g],g,a);else for(;g<f;++g)l[g]=b(a[g],g,a);return l},filter:function(a,b,c){var l=0,g=a&&a.length||
0,f=[],h;g&&"string"==typeof a&&(a=a.split(""));"string"==typeof b&&(b=k[b]||e(b));if(c)for(;l<g;++l)h=a[l],b.call(c,h,l,a)&&f.push(h);else for(;l<g;++l)h=a[l],b(h,l,a)&&f.push(h);return f},clearCache:function(){k={}}};a.mixin(f,b);return b})},"dojo/dom":function(){define(["./sniff","./_base/window"],function(f,h){if(7>=f("ie"))try{document.execCommand("BackgroundImageCache",!1,!0)}catch(a){}var e={};f("ie")?e.byId=function(a,e){if("string"!=typeof a)return a;var g=e||h.doc,b=a&&g.getElementById(a);
if(b&&(b.attributes.id.value==a||b.id==a))return b;g=g.all[a];if(!g||g.nodeName)g=[g];for(var d=0;b=g[d++];)if(b.attributes&&b.attributes.id&&b.attributes.id.value==a||b.id==a)return b}:e.byId=function(a,e){return("string"==typeof a?(e||h.doc).getElementById(a):a)||null};e.isDescendant=function(a,g){try{a=e.byId(a);for(g=e.byId(g);a;){if(a==g)return!0;a=a.parentNode}}catch(f){}return!1};f.add("css-user-select",function(a,e,g){if(!g)return!1;a=g.style;e=["Khtml","O","ms","Moz","Webkit"];g=e.length;
var b="userSelect";do if("undefined"!==typeof a[b])return b;while(g--&&(b=e[g]+"UserSelect"));return!1});var g=f("css-user-select");e.setSelectable=g?function(a,f){e.byId(a).style[g]=f?"":"none"}:function(a,g){a=e.byId(a);var f=a.getElementsByTagName("*"),b=f.length;if(g)for(a.removeAttribute("unselectable");b--;)f[b].removeAttribute("unselectable");else for(a.setAttribute("unselectable","on");b--;)f[b].setAttribute("unselectable","on")};return e})},"dojo/_base/window":function(){define(["./kernel",
"./lang","../sniff"],function(f,h,a){var e={global:f.global,doc:this.document||null,body:function(a){a=a||f.doc;return a.body||a.getElementsByTagName("body")[0]},setContext:function(a,c){f.global=e.global=a;f.doc=e.doc=c},withGlobal:function(a,c,h,m){var b=f.global;try{return f.global=e.global=a,e.withDoc.call(null,a.document,c,h,m)}finally{f.global=e.global=b}},withDoc:function(g,c,h,m){var b=e.doc,d=a("quirks"),p=a("ie"),n,l,t;try{f.doc=e.doc=g;f.isQuirks=a.add("quirks","BackCompat"==f.doc.compatMode,
!0,!0);if(a("ie")&&(t=g.parentWindow)&&t.navigator)n=parseFloat(t.navigator.appVersion.split("MSIE ")[1])||void 0,(l=g.documentMode)&&(5!=l&&Math.floor(n)!=l)&&(n=l),f.isIE=a.add("ie",n,!0,!0);h&&"string"==typeof c&&(c=h[c]);return c.apply(h,m||[])}finally{f.doc=e.doc=b,f.isQuirks=a.add("quirks",d,!0,!0),f.isIE=a.add("ie",p,!0,!0)}}};h.mixin(f,e);return e})},"dojo/_base/url":function(){define(["./kernel"],function(f){var h=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,a=/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/,
e=function(){for(var g=arguments,c=[g[0]],f=1;f<g.length;f++)if(g[f]){var m=new e(g[f]+""),c=new e(c[0]+"");if(""==m.path&&!m.scheme&&!m.authority&&!m.query)null!=m.fragment&&(c.fragment=m.fragment),m=c;else if(!m.scheme&&(m.scheme=c.scheme,!m.authority&&(m.authority=c.authority,"/"!=m.path.charAt(0)))){for(var c=(c.path.substring(0,c.path.lastIndexOf("/")+1)+m.path).split("/"),b=0;b<c.length;b++)"."==c[b]?b==c.length-1?c[b]="":(c.splice(b,1),b--):0<b&&(!(1==b&&""==c[0])&&".."==c[b]&&".."!=c[b-1])&&
(b==c.length-1?(c.splice(b,1),c[b-1]=""):(c.splice(b-1,2),b-=2));m.path=c.join("/")}c=[];m.scheme&&c.push(m.scheme,":");m.authority&&c.push("//",m.authority);c.push(m.path);m.query&&c.push("?",m.query);m.fragment&&c.push("#",m.fragment)}this.uri=c.join("");g=this.uri.match(h);this.scheme=g[2]||(g[1]?"":null);this.authority=g[4]||(g[3]?"":null);this.path=g[5];this.query=g[7]||(g[6]?"":null);this.fragment=g[9]||(g[8]?"":null);null!=this.authority&&(g=this.authority.match(a),this.user=g[3]||null,this.password=
g[4]||null,this.host=g[6]||g[7],this.port=g[9]||null)};e.prototype.toString=function(){return this.uri};return f._Url=e})},"dojo/aspect":function(){define([],function(){function f(a,b,c,g){var f=a[b],l="around"==b,h;if(l){var k=c(function(){return f.advice(this,arguments)});h={remove:function(){k&&(k=a=c=null)},advice:function(a,b){return k?k.apply(a,b):f.advice(a,b)}}}else h={remove:function(){if(h.advice){var l=h.previous,e=h.next;!e&&!l?delete a[b]:(l?l.next=e:a[b]=e,e&&(e.previous=l));a=c=h.advice=
null}},id:e++,advice:c,receiveArguments:g};if(f&&!l)if("after"==b){for(;f.next&&(f=f.next););f.next=h;h.previous=f}else"before"==b&&(a[b]=h,h.next=f,f.previous=h);else a[b]=h;return h}function h(c){return function(b,d,g,h){var l=b[d],k;if(!l||l.target!=b)b[d]=k=function(){for(var b=e,c=arguments,d=k.before;d;)c=d.advice.apply(this,c)||c,d=d.next;if(k.around)var l=k.around.advice(this,c);for(d=k.after;d&&d.id<b;){if(d.receiveArguments)var g=d.advice.apply(this,c),l=g===a?l:g;else l=d.advice.call(this,
l,c);d=d.next}return l},l&&(k.around={advice:function(a,b){return l.apply(a,b)}}),k.target=b;b=f(k||l,c,g,h);g=null;return b}}var a,e=0,g=h("after"),c=h("before"),k=h("around");return{before:c,around:k,after:g}})},"dojo/promise/all":function(){define(["../_base/array","../Deferred","../when"],function(f,h,a){var e=f.some;return function(g){var c,f;g instanceof Array?f=g:g&&"object"===typeof g&&(c=g);var m,b=[];if(c){f=[];for(var d in c)Object.hasOwnProperty.call(c,d)&&(b.push(d),f.push(c[d]));m={}}else f&&
(m=[]);if(!f||!f.length)return(new h).resolve(m);var p=new h;p.promise.always(function(){m=b=null});var n=f.length;e(f,function(d,e){c||b.push(e);a(d,function(a){p.isFulfilled()||(m[b[e]]=a,0===--n&&p.resolve(m))},p.reject);return p.isFulfilled()});return p.promise}})},"dojo/Deferred":function(){define(["./has","./_base/lang","./errors/CancelError","./promise/Promise","./promise/instrumentation"],function(f,h,a,e,g){var c=Object.freeze||function(){},k=function(a,b,c,d,e){2===b&&(p.instrumentRejected&&
0===a.length)&&p.instrumentRejected(c,!1,d,e);for(e=0;e<a.length;e++)m(a[e],b,c,d)},m=function(a,c,e,g){var f=a[c],h=a.deferred;if(f)try{var k=f(e);if(0===c)"undefined"!==typeof k&&d(h,c,k);else{if(k&&"function"===typeof k.then){a.cancel=k.cancel;k.then(b(h,1),b(h,2),b(h,0));return}d(h,1,k)}}catch(m){d(h,2,m)}else d(h,c,e);2===c&&p.instrumentRejected&&p.instrumentRejected(e,!!f,g,h.promise)},b=function(a,b){return function(c){d(a,b,c)}},d=function(a,b,c){if(!a.isCanceled())switch(b){case 0:a.progress(c);
break;case 1:a.resolve(c);break;case 2:a.reject(c)}},p=function(b){var d=this.promise=new e,g=this,f,h,s,v=!1,w=[];Error.captureStackTrace&&(Error.captureStackTrace(g,p),Error.captureStackTrace(d,p));this.isResolved=d.isResolved=function(){return 1===f};this.isRejected=d.isRejected=function(){return 2===f};this.isFulfilled=d.isFulfilled=function(){return!!f};this.isCanceled=d.isCanceled=function(){return v};this.progress=function(a,b){if(f){if(!0===b)throw Error("This deferred has already been fulfilled.");
return d}k(w,0,a,null,g);return d};this.resolve=function(a,b){if(f){if(!0===b)throw Error("This deferred has already been fulfilled.");return d}k(w,f=1,h=a,null,g);w=null;return d};var x=this.reject=function(a,b){if(f){if(!0===b)throw Error("This deferred has already been fulfilled.");return d}Error.captureStackTrace&&Error.captureStackTrace(s={},x);k(w,f=2,h=a,s,g);w=null;return d};this.then=d.then=function(a,b,c){var e=[c,a,b];e.cancel=d.cancel;e.deferred=new p(function(a){return e.cancel&&e.cancel(a)});
f&&!w?m(e,f,h,s):w.push(e);return e.deferred.promise};this.cancel=d.cancel=function(c,d){if(f){if(!0===d)throw Error("This deferred has already been fulfilled.");}else{if(b){var e=b(c);c="undefined"===typeof e?c:e}v=!0;if(f){if(2===f&&h===c)return c}else return"undefined"===typeof c&&(c=new a),x(c),c}};c(d)};p.prototype.toString=function(){return"[object Deferred]"};g&&g(p);return p})},"dojo/errors/CancelError":function(){define(["./create"],function(f){return f("CancelError",null,null,{dojoType:"cancel"})})},
"dojo/errors/create":function(){define(["../_base/lang"],function(f){return function(h,a,e,g){e=e||Error;var c=function(g){if(e===Error){Error.captureStackTrace&&Error.captureStackTrace(this,c);var f=Error.call(this,g),b;for(b in f)f.hasOwnProperty(b)&&(this[b]=f[b]);this.message=g;this.stack=f.stack}else e.apply(this,arguments);a&&a.apply(this,arguments)};c.prototype=f.delegate(e.prototype,g);c.prototype.name=h;return c.prototype.constructor=c}})},"dojo/promise/Promise":function(){define(["../_base/lang"],
function(f){function h(){throw new TypeError("abstract");}return f.extend(function(){},{then:function(a,e,g){h()},cancel:function(a,e){h()},isResolved:function(){h()},isRejected:function(){h()},isFulfilled:function(){h()},isCanceled:function(){h()},always:function(a){return this.then(a,a)},otherwise:function(a){return this.then(null,a)},trace:function(){return this},traceRejected:function(){return this},toString:function(){return"[object Promise]"}})})},"dojo/promise/instrumentation":function(){define(["./tracer",
"../has","../_base/lang","../_base/array"],function(f,h,a,e){function g(a,b,c){var d="";a&&a.stack&&(d+=a.stack);b&&b.stack&&(d+="\n    ----------------------------------------\n    rejected"+b.stack.split("\n").slice(1).join("\n").replace(/^\s+/," "));c&&c.stack&&(d+="\n    ----------------------------------------\n"+c.stack);console.error(a,d)}function c(a,b,c,d){b||g(a,c,d)}function k(a,c,g,f){c?e.some(b,function(c,d){if(c.error===a)return b.splice(d,1),!0}):e.some(b,function(b){return b.error===
a})||b.push({error:a,rejection:g,deferred:f,timestamp:(new Date).getTime()});d||(d=setTimeout(m,p))}function m(){var a=(new Date).getTime(),c=a-p;b=e.filter(b,function(a){return a.timestamp<c?(g(a.error,a.rejection,a.deferred),!1):!0});d=b.length?setTimeout(m,b[0].timestamp+p-a):!1}var b=[],d=!1,p=1E3;return function(b){var d=h("config-useDeferredInstrumentation");if(d){f.on("resolved",a.hitch(console,"log","resolved"));f.on("rejected",a.hitch(console,"log","rejected"));f.on("progress",a.hitch(console,
"log","progress"));var e=[];"string"===typeof d&&(e=d.split(","),d=e.shift());if("report-rejections"===d)b.instrumentRejected=c;else if("report-unhandled-rejections"===d||!0===d||1===d)b.instrumentRejected=k,p=parseInt(e[0],10)||p;else throw Error("Unsupported instrumentation usage \x3c"+d+"\x3e");}}})},"dojo/promise/tracer":function(){define(["../_base/lang","./Promise","../Evented"],function(f,h,a){function e(a){setTimeout(function(){c.apply(g,a)},0)}var g=new a,c=g.emit;g.emit=null;h.prototype.trace=
function(){var a=f._toArray(arguments);this.then(function(c){e(["resolved",c].concat(a))},function(c){e(["rejected",c].concat(a))},function(c){e(["progress",c].concat(a))});return this};h.prototype.traceRejected=function(){var a=f._toArray(arguments);this.otherwise(function(c){e(["rejected",c].concat(a))});return this};return g})},"dojo/Evented":function(){define(["./aspect","./on"],function(f,h){function a(){}var e=f.after;a.prototype={on:function(a,c){return h.parse(this,a,c,function(a,g){return e(a,
"on"+g,c,!0)})},emit:function(a,c){var e=[this];e.push.apply(e,arguments);return h.emit.apply(h,e)}};return a})},"dojo/on":function(){define(["./has!dom-addeventlistener?:./aspect","./_base/kernel","./sniff"],function(f,h,a){function e(c,d,e,g,l){if(g=d.match(/(.*):(.*)/))return d=g[2],g=g[1],m.selector(g,d).call(l,c,e);a("touch")&&(b.test(d)&&(e=B(e)),!a("event-orientationchange")&&"orientationchange"==d&&(d="resize",c=window,e=B(e)));t&&(e=t(e));if(c.addEventListener){var f=d in n,h=f?n[d]:d;c.addEventListener(h,
e,f);return{remove:function(){c.removeEventListener(h,e,f)}}}if(v&&c.attachEvent)return v(c,"on"+d,e);throw Error("Target must be an event emitter");}function g(){this.cancelable=!1;this.defaultPrevented=!0}function c(){this.bubbles=!1}var k=window.ScriptEngineMajorVersion;a.add("jscript",k&&k()+ScriptEngineMinorVersion()/10);a.add("event-orientationchange",a("touch")&&!a("android"));a.add("event-stopimmediatepropagation",window.Event&&!!window.Event.prototype&&!!window.Event.prototype.stopImmediatePropagation);
a.add("event-focusin",function(a,b,c){return"onfocusin"in c});a("touch")&&a.add("touch-can-modify-event-delegate",function(){var a=function(){};a.prototype=document.createEvent("MouseEvents");try{var b=new a;b.target=null;return null===b.target}catch(c){return!1}});var m=function(a,b,c,d){return"function"==typeof a.on&&"function"!=typeof b&&!a.nodeType?a.on(b,c):m.parse(a,b,c,e,d,this)};m.pausable=function(a,b,c,d){var e;a=m(a,b,function(){if(!e)return c.apply(this,arguments)},d);a.pause=function(){e=
!0};a.resume=function(){e=!1};return a};m.once=function(a,b,c,d){var e=m(a,b,function(){e.remove();return c.apply(this,arguments)});return e};m.parse=function(a,b,c,d,e,g){if(b.call)return b.call(g,a,c);if(-1<b.indexOf(",")){b=b.split(/\s*,\s*/);for(var l=[],f=0,h;h=b[f++];)l.push(d(a,h,c,e,g));l.remove=function(){for(var a=0;a<l.length;a++)l[a].remove()};return l}return d(a,b,c,e,g)};var b=/^touch/;m.selector=function(a,b,c){return function(d,e){function g(b){for(l=l&&l.matches?l:h.query;!l.matches(b,
a,d);)if(b==d||!1===c||!(b=b.parentNode)||1!=b.nodeType)return;return b}var l="function"==typeof a?{matches:a}:this,f=b.bubble;return f?m(d,f(g),e):m(d,b,function(a){var b=g(a.target);if(b)return e.call(b,a)})}};var d=[].slice,p=m.emit=function(a,b,e){var l=d.call(arguments,2),f="on"+b;if("parentNode"in a){var h=l[0]={},k;for(k in e)h[k]=e[k];h.preventDefault=g;h.stopPropagation=c;h.target=a;h.type=b;e=h}do a[f]&&a[f].apply(a,l);while(e&&e.bubbles&&(a=a.parentNode));return e&&e.cancelable&&e},n=a("event-focusin")?
{}:{focusin:"focus",focusout:"blur"};if(!a("event-stopimmediatepropagation"))var l=function(){this.modified=this.immediatelyStopped=!0},t=function(a){return function(b){if(!b.immediatelyStopped)return b.stopImmediatePropagation=l,a.apply(this,arguments)}};if(a("dom-addeventlistener"))m.emit=function(a,b,c){if(a.dispatchEvent&&document.createEvent){var d=(a.ownerDocument||document).createEvent("HTMLEvents");d.initEvent(b,!!c.bubbles,!!c.cancelable);for(var e in c)e in d||(d[e]=c[e]);return a.dispatchEvent(d)&&
d}return p.apply(m,arguments)};else{m._fixEvent=function(a,b){a||(a=(b&&(b.ownerDocument||b.document||b).parentWindow||window).event);if(!a)return a;try{q&&(a.type==q.type&&a.srcElement==q.target)&&(a=q)}catch(c){}if(!a.target)switch(a.target=a.srcElement,a.currentTarget=b||a.srcElement,"mouseover"==a.type&&(a.relatedTarget=a.fromElement),"mouseout"==a.type&&(a.relatedTarget=a.toElement),a.stopPropagation||(a.stopPropagation=w,a.preventDefault=x),a.type){case "keypress":var d="charCode"in a?a.charCode:
a.keyCode;10==d?(d=0,a.keyCode=13):13==d||27==d?d=0:3==d&&(d=99);a.charCode=d;d=a;d.keyChar=d.charCode?String.fromCharCode(d.charCode):"";d.charOrCode=d.keyChar||d.keyCode}return a};var q,r=function(a){this.handle=a};r.prototype.remove=function(){delete _dojoIEListeners_[this.handle]};var s=function(a){return function(b){b=m._fixEvent(b,this);var c=a.call(this,b);b.modified&&(q||setTimeout(function(){q=null}),q=b);return c}},v=function(b,c,d){d=s(d);if(((b.ownerDocument?b.ownerDocument.parentWindow:
b.parentWindow||b.window||window)!=top||5.8>a("jscript"))&&!a("config-_allow_leaks")){"undefined"==typeof _dojoIEListeners_&&(_dojoIEListeners_=[]);var e=b[c];if(!e||!e.listeners){var g=e,e=Function("event","var callee \x3d arguments.callee; for(var i \x3d 0; i\x3ccallee.listeners.length; i++){var listener \x3d _dojoIEListeners_[callee.listeners[i]]; if(listener){listener.call(this,event);}}");e.listeners=[];b[c]=e;e.global=this;g&&e.listeners.push(_dojoIEListeners_.push(g)-1)}e.listeners.push(b=
e.global._dojoIEListeners_.push(d)-1);return new r(b)}return f.after(b,c,d,!0)},w=function(){this.cancelBubble=!0},x=m._preventDefault=function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey)try{this.keyCode=0}catch(a){}this.defaultPrevented=!0;this.returnValue=!1;this.modified=!0}}if(a("touch"))var u=function(){},A=window.orientation,B=function(b){return function(c){var d=c.corrected;if(!d){var e=c.type;try{delete c.type}catch(g){}if(c.type){if(a("touch-can-modify-event-delegate"))u.prototype=
c,d=new u;else{var d={},l;for(l in c)d[l]=c[l]}d.preventDefault=function(){c.preventDefault()};d.stopPropagation=function(){c.stopPropagation()}}else d=c,d.type=e;c.corrected=d;if("resize"==e){if(A==window.orientation)return null;A=window.orientation;d.type="orientationchange";return b.call(this,d)}"rotation"in d||(d.rotation=0,d.scale=1);var e=d.changedTouches[0],f;for(f in e)delete d[f],d[f]=e[f]}return b.call(this,d)}};return m})},"dojo/when":function(){define(["./Deferred","./promise/Promise"],
function(f,h){return function(a,e,g,c){var k=a&&"function"===typeof a.then,m=k&&a instanceof h;if(k)m||(k=new f(a.cancel),a.then(k.resolve,k.reject,k.progress),a=k.promise);else return 1<arguments.length?e?e(a):a:(new f).resolve(a);return e||g||c?a.then(e,g,c):a}})},"dojo/date/stamp":function(){define(["../_base/lang","../_base/array"],function(f,h){var a={};f.setObject("dojo.date.stamp",a);a.fromISOString=function(e,g){a._isoRegExp||(a._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/);
var c=a._isoRegExp.exec(e),f=null;if(c){c.shift();c[1]&&c[1]--;c[6]&&(c[6]*=1E3);g&&(g=new Date(g),h.forEach(h.map("FullYear Month Date Hours Minutes Seconds Milliseconds".split(" "),function(a){return g["get"+a]()}),function(a,b){c[b]=c[b]||a}));f=new Date(c[0]||1970,c[1]||0,c[2]||1,c[3]||0,c[4]||0,c[5]||0,c[6]||0);100>c[0]&&f.setFullYear(c[0]||1970);var m=0,b=c[7]&&c[7].charAt(0);"Z"!=b&&(m=60*(c[8]||0)+(Number(c[9])||0),"-"!=b&&(m*=-1));b&&(m-=f.getTimezoneOffset());m&&f.setTime(f.getTime()+6E4*
m)}return f};a.toISOString=function(a,g){var c=function(a){return 10>a?"0"+a:a};g=g||{};var f=[],h=g.zulu?"getUTC":"get",b="";"time"!=g.selector&&(b=a[h+"FullYear"](),b=["0000".substr((b+"").length)+b,c(a[h+"Month"]()+1),c(a[h+"Date"]())].join("-"));f.push(b);if("date"!=g.selector){b=[c(a[h+"Hours"]()),c(a[h+"Minutes"]()),c(a[h+"Seconds"]())].join(":");h=a[h+"Milliseconds"]();g.milliseconds&&(b+="."+(100>h?"0":"")+c(h));if(g.zulu)b+="Z";else if("time"!=g.selector)var h=a.getTimezoneOffset(),d=Math.abs(h),
b=b+((0<h?"-":"+")+c(Math.floor(d/60))+":"+c(d%60));f.push(b)}return f.join("T")};return a})},"dojo/query":function(){define("./_base/kernel ./has ./dom ./on ./_base/array ./_base/lang ./selector/_loader ./selector/_loader!default".split(" "),function(f,h,a,e,g,c,k,m){function b(b,c){var d=function(d,e){if("string"==typeof e&&(e=a.byId(e),!e))return new c([]);var g="string"==typeof d?b(d,e):d?d.end&&d.on?d:[d]:[];return g.end&&g.on?g:new c(g)};d.matches=b.match||function(a,b,c){return 0<d.filter([a],
b,c).length};d.filter=b.filter||function(a,b,c){return d(b,c).filter(function(b){return-1<g.indexOf(a,b)})};if("function"!=typeof b){var e=b.search;b=function(a,b){return e(b||document,a)}}return d}h.add("array-extensible",function(){return 1==c.delegate([],{length:1}).length&&!h("bug-for-in-skips-shadowed")});var d=Array.prototype,p=d.slice,n=d.concat,l=g.forEach,t=function(a,b,d){b=[0].concat(p.call(b,0));d=d||f.global;return function(c){b[0]=c;return a.apply(d,b)}},q=function(a){var b=this instanceof
r&&h("array-extensible");"number"==typeof a&&(a=Array(a));var d=a&&"length"in a?a:arguments;if(b||!d.sort){for(var e=b?this:[],g=e.length=d.length,l=0;l<g;l++)e[l]=d[l];if(b)return e;d=e}c._mixin(d,s);d._NodeListCtor=function(a){return r(a)};return d},r=q,s=r.prototype=h("array-extensible")?[]:{};r._wrap=s._wrap=function(a,b,d){a=new (d||this._NodeListCtor||r)(a);return b?a._stash(b):a};r._adaptAsMap=function(a,b){return function(){return this.map(t(a,arguments,b))}};r._adaptAsForEach=function(a,
b){return function(){this.forEach(t(a,arguments,b));return this}};r._adaptAsFilter=function(a,b){return function(){return this.filter(t(a,arguments,b))}};r._adaptWithCondition=function(a,b,d){return function(){var c=arguments,e=t(a,c,d);if(b.call(d||f.global,c))return this.map(e);this.forEach(e);return this}};l(["slice","splice"],function(a){var b=d[a];s[a]=function(){return this._wrap(b.apply(this,arguments),"slice"==a?this:null)}});l(["indexOf","lastIndexOf","every","some"],function(a){var b=g[a];
s[a]=function(){return b.apply(f,[this].concat(p.call(arguments,0)))}});c.extend(q,{constructor:r,_NodeListCtor:r,toString:function(){return this.join(",")},_stash:function(a){this._parent=a;return this},on:function(a,b){var d=this.map(function(d){return e(d,a,b)});d.remove=function(){for(var a=0;a<d.length;a++)d[a].remove()};return d},end:function(){return this._parent?this._parent:new this._NodeListCtor(0)},concat:function(a){var b=p.call(this,0),d=g.map(arguments,function(a){return p.call(a,0)});
return this._wrap(n.apply(b,d),this)},map:function(a,b){return this._wrap(g.map(this,a,b),this)},forEach:function(a,b){l(this,a,b);return this},filter:function(a){var b=arguments,d=this,c=0;if("string"==typeof a){d=v._filterResult(this,b[0]);if(1==b.length)return d._stash(this);c=1}return this._wrap(g.filter(d,b[c],b[c+1]),this)},instantiate:function(a,b){var d=c.isFunction(a)?a:c.getObject(a);b=b||{};return this.forEach(function(a){new d(b,a)})},at:function(){var a=new this._NodeListCtor(0);l(arguments,
function(b){0>b&&(b=this.length+b);this[b]&&a.push(this[b])},this);return a._stash(this)}});var v=b(m,q);f.query=b(m,function(a){return q(a)});v.load=function(a,d,c){k.load(a,d,function(a){c(b(a,q))})};f._filterQueryResult=v._filterResult=function(a,b,d){return new q(v.filter(a,b,d))};f.NodeList=v.NodeList=q;return v})},"dojo/selector/_loader":function(){define(["../has","require"],function(f,h){var a=document.createElement("div");f.add("dom-qsa2.1",!!a.querySelectorAll);f.add("dom-qsa3",function(){try{return a.innerHTML=
"\x3cp class\x3d'TEST'\x3e\x3c/p\x3e",1==a.querySelectorAll(".TEST:empty").length}catch(e){}});var e;return{load:function(a,c,k,m){m=h;a="default"==a?f("config-selectorEngine")||"css3":a;a="css2"==a||"lite"==a?"./lite":"css2.1"==a?f("dom-qsa2.1")?"./lite":"./acme":"css3"==a?f("dom-qsa3")?"./lite":"./acme":"acme"==a?"./acme":(m=c)&&a;if("?"==a.charAt(a.length-1)){a=a.substring(0,a.length-1);var b=!0}if(b&&(f("dom-compliant-qsa")||e))return k(e);m([a],function(b){"./lite"!=a&&(e=b);k(b)})}}})},"dojo/selector/acme":function(){define(["../dom",
"../sniff","../_base/array","../_base/lang","../_base/window"],function(f,h,a,e,g){var c=e.trim,k=a.forEach,m="BackCompat"==g.doc.compatMode,b=!1,d=function(){return!0},p=function(a){a=0<="\x3e~+".indexOf(a.slice(-1))?a+" * ":a+" ";for(var d=function(b,d){return c(a.slice(b,d))},e=[],g=-1,l=-1,f=-1,h=-1,k=-1,n=-1,p=-1,m,r="",q="",t,s=0,v=a.length,w=null,u=null,x=function(){0<=n&&(w.id=d(n,s).replace(/\\/g,""),n=-1);if(0<=p){var a=p==s?null:d(p,s);w[0>"\x3e~+".indexOf(a)?"tag":"oper"]=a;p=-1}0<=k&&
(w.classes.push(d(k+1,s).replace(/\\/g,"")),k=-1)};r=q,q=a.charAt(s),s<v;s++)if("\\"!=r)if(w||(t=s,w={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return b?this.otag:this.tag}},p=s),m)q==m&&(m=null);else if("'"==q||'"'==q)m=q;else if(0<=g)if("]"==q){u.attr?u.matchFor=d(f||g+1,s):u.attr=d(g+1,s);if((g=u.matchFor)&&('"'==g.charAt(0)||"'"==g.charAt(0)))u.matchFor=g.slice(1,-1);u.matchFor&&(u.matchFor=u.matchFor.replace(/\\/g,""));w.attrs.push(u);u=null;g=f=-1}else"\x3d"==
q&&(f=0<="|~^$*".indexOf(r)?r:"",u.type=f+q,u.attr=d(g+1,s-f.length),f=s+1);else 0<=l?")"==q&&(0<=h&&(u.value=d(l+1,s)),h=l=-1):"#"==q?(x(),n=s+1):"."==q?(x(),k=s):":"==q?(x(),h=s):"["==q?(x(),g=s,u={}):"("==q?(0<=h&&(u={name:d(h+1,s),value:null},w.pseudos.push(u)),l=s):" "==q&&r!=q&&(x(),0<=h&&w.pseudos.push({name:d(h+1,s)}),w.loops=w.pseudos.length||w.attrs.length||w.classes.length,w.oquery=w.query=d(t,s),w.otag=w.tag=w.oper?null:w.tag||"*",w.tag&&(w.tag=w.tag.toUpperCase()),e.length&&e[e.length-
1].oper&&(w.infixOper=e.pop(),w.query=w.infixOper.query+" "+w.query),e.push(w),w=null);return e},n=function(a,b){return!a?b:!b?a:function(){return a.apply(window,arguments)&&b.apply(window,arguments)}},l=function(a,b){var d=b||[];a&&d.push(a);return d},t=function(a){return 1==a.nodeType},q=function(a,d){return!a?"":"class"==d?a.className||"":"for"==d?a.htmlFor||"":"style"==d?a.style.cssText||"":(b?a.getAttribute(d):a.getAttribute(d,2))||""},r={"*\x3d":function(a,b){return function(d){return 0<=q(d,
a).indexOf(b)}},"^\x3d":function(a,b){return function(d){return 0==q(d,a).indexOf(b)}},"$\x3d":function(a,b){return function(d){d=" "+q(d,a);var c=d.lastIndexOf(b);return-1<c&&c==d.length-b.length}},"~\x3d":function(a,b){var d=" "+b+" ";return function(b){return 0<=(" "+q(b,a)+" ").indexOf(d)}},"|\x3d":function(a,b){var d=b+"-";return function(c){c=q(c,a);return c==b||0==c.indexOf(d)}},"\x3d":function(a,b){return function(d){return q(d,a)==b}}},s="undefined"==typeof g.doc.firstChild.nextElementSibling,
v=!s?"nextElementSibling":"nextSibling",w=!s?"previousElementSibling":"previousSibling",x=s?t:d,u=function(a){for(;a=a[w];)if(x(a))return!1;return!0},A=function(a){for(;a=a[v];)if(x(a))return!1;return!0},B=function(a){var b=a.parentNode,b=7!=b.nodeType?b:b.nextSibling,d=0,c=b.children||b.childNodes,e=a._i||a.getAttribute("_i")||-1,g=b._l||("undefined"!==typeof b.getAttribute?b.getAttribute("_l"):-1);if(!c)return-1;c=c.length;if(g==c&&0<=e&&0<=g)return e;h("ie")&&"undefined"!==typeof b.setAttribute?
b.setAttribute("_l",c):b._l=c;e=-1;for(b=b.firstElementChild||b.firstChild;b;b=b[v])x(b)&&(h("ie")?b.setAttribute("_i",++d):b._i=++d,a===b&&(e=d));return e},y=function(a){return!(B(a)%2)},z=function(a){return B(a)%2},G={checked:function(a,b){return function(a){return!!("checked"in a?a.checked:a.selected)}},disabled:function(a,b){return function(a){return a.disabled}},enabled:function(a,b){return function(a){return!a.disabled}},"first-child":function(){return u},"last-child":function(){return A},"only-child":function(a,
b){return function(a){return u(a)&&A(a)}},empty:function(a,b){return function(a){var b=a.childNodes;for(a=a.childNodes.length-1;0<=a;a--){var d=b[a].nodeType;if(1===d||3==d)return!1}return!0}},contains:function(a,b){var d=b.charAt(0);if('"'==d||"'"==d)b=b.slice(1,-1);return function(a){return 0<=a.innerHTML.indexOf(b)}},not:function(a,b){var d=p(b)[0],c={el:1};"*"!=d.tag&&(c.tag=1);d.classes.length||(c.classes=1);var e=E(d,c);return function(a){return!e(a)}},"nth-child":function(a,b){var d=parseInt;
if("odd"==b)return z;if("even"==b)return y;if(-1!=b.indexOf("n")){var c=b.split("n",2),e=c[0]?"-"==c[0]?-1:d(c[0]):1,g=c[1]?d(c[1]):0,l=0,f=-1;0<e?0>g?g=g%e&&e+g%e:0<g&&(g>=e&&(l=g-g%e),g%=e):0>e&&(e*=-1,0<g&&(f=g,g%=e));if(0<e)return function(a){a=B(a);return a>=l&&(0>f||a<=f)&&a%e==g};b=g}var h=d(b);return function(a){return B(a)==h}}},P=9>h("ie")||9==h("ie")&&h("quirks")?function(a){var d=a.toLowerCase();"class"==d&&(a="className");return function(c){return b?c.getAttribute(a):c[a]||c[d]}}:function(a){return function(b){return b&&
b.getAttribute&&b.hasAttribute(a)}},E=function(a,c){if(!a)return d;c=c||{};var e=null;"el"in c||(e=n(e,t));"tag"in c||"*"!=a.tag&&(e=n(e,function(d){return d&&(b?d.tagName:d.tagName.toUpperCase())==a.getTag()}));"classes"in c||k(a.classes,function(a,b,d){var c=RegExp("(?:^|\\s)"+a+"(?:\\s|$)");e=n(e,function(a){return c.test(a.className)});e.count=b});"pseudos"in c||k(a.pseudos,function(a){var b=a.name;G[b]&&(e=n(e,G[b](b,a.value)))});"attrs"in c||k(a.attrs,function(a){var b,d=a.attr;a.type&&r[a.type]?
b=r[a.type](d,a.matchFor):d.length&&(b=P(d));b&&(e=n(e,b))});"id"in c||a.id&&(e=n(e,function(b){return!!b&&b.id==a.id}));e||"default"in c||(e=d);return e},M=function(a){return function(b,d,c){for(;b=b[v];)if(!s||t(b)){(!c||ca(b,c))&&a(b)&&d.push(b);break}return d}},Q=function(a){return function(b,d,c){for(b=b[v];b;){if(x(b)){if(c&&!ca(b,c))break;a(b)&&d.push(b)}b=b[v]}return d}},I=function(a){a=a||d;return function(b,d,c){for(var e=0,g=b.children||b.childNodes;b=g[e++];)x(b)&&((!c||ca(b,c))&&a(b,
e))&&d.push(b);return d}},L={},H=function(a){var b=L[a.query];if(b)return b;var c=a.infixOper,c=c?c.oper:"",e=E(a,{el:1}),h="*"==a.tag,k=g.doc.getElementsByClassName;if(c)k={el:1},h&&(k.tag=1),e=E(a,k),"+"==c?b=M(e):"~"==c?b=Q(e):"\x3e"==c&&(b=I(e));else if(a.id)e=!a.loops&&h?d:E(a,{el:1,id:1}),b=function(b,d){var c=f.byId(a.id,b.ownerDocument||b);if(c&&e(c)){if(9==b.nodeType)return l(c,d);for(var g=c.parentNode;g&&g!=b;)g=g.parentNode;if(g)return l(c,d)}};else if(k&&/\{\s*\[native code\]\s*\}/.test(String(k))&&
a.classes.length&&!m)var e=E(a,{el:1,classes:1,id:1}),n=a.classes.join(" "),b=function(a,b,d){b=l(0,b);for(var c,g=0,f=a.getElementsByClassName(n);c=f[g++];)e(c,a)&&ca(c,d)&&b.push(c);return b};else!h&&!a.loops?b=function(b,d,c){d=l(0,d);for(var e=0,g=a.getTag(),g=g?b.getElementsByTagName(g):[];b=g[e++];)ca(b,c)&&d.push(b);return d}:(e=E(a,{el:1,tag:1,id:1}),b=function(b,d,c){d=l(0,d);for(var g,f=0,h=(g=a.getTag())?b.getElementsByTagName(g):[];g=h[f++];)e(g,b)&&ca(g,c)&&d.push(g);return d});return L[a.query]=
b},D={},F={},C=function(a){var b=p(c(a));if(1==b.length){var d=H(b[0]);return function(a){if(a=d(a,[]))a.nozip=!0;return a}}return function(a){a=l(a);for(var d,c,e=b.length,g,f,h=0;h<e;h++){f=[];d=b[h];c=a.length-1;0<c&&(g={},f.nozip=!0);c=H(d);for(var k=0;d=a[k];k++)c(d,f,g);if(!f.length)break;a=f}return f}},R=h("ie")?"commentStrip":"nozip",K=!!g.doc.querySelectorAll,J=/\\[>~+]|n\+\d|([^ \\])?([>~+])([^ =])?/g,N=function(a,b,d,c){return d?(b?b+" ":"")+d+(c?" "+c:""):a},O=/([^[]*)([^\]]*])?/g,V=function(a,
b,d){return b.replace(J,N)+(d||"")},T=function(a,b){a=a.replace(O,V);if(K){var d=F[a];if(d&&!b)return d}if(d=D[a])return d;var d=a.charAt(0),c=-1==a.indexOf(" ");0<=a.indexOf("#")&&c&&(b=!0);if(K&&!b&&-1=="\x3e~+".indexOf(d)&&(!h("ie")||-1==a.indexOf(":"))&&!(m&&0<=a.indexOf("."))&&-1==a.indexOf(":contains")&&-1==a.indexOf(":checked")&&-1==a.indexOf("|\x3d")){var e=0<="\x3e~+".indexOf(a.charAt(a.length-1))?a+" *":a;return F[a]=function(b){try{if(!(9==b.nodeType||c))throw"";var d=b.querySelectorAll(e);
d[R]=!0;return d}catch(g){return T(a,!0)(b)}}}var g=a.match(/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g);return D[a]=2>g.length?C(a):function(a){for(var b=0,d=[],c;c=g[b++];)d=d.concat(C(c)(a));return d}},S=0,U=h("ie")?function(a){return b?a.getAttribute("_uid")||a.setAttribute("_uid",++S)||S:a.uniqueID}:function(a){return a._uid||(a._uid=++S)},ca=function(a,b){if(!b)return 1;var d=U(a);return!b[d]?b[d]=1:0},W=function(a){if(a&&a.nozip)return a;if(!a||!a.length)return[];if(2>a.length)return[a[0]];
var d=[];S++;var c,e;if(h("ie")&&b){var g=S+"";for(c=0;c<a.length;c++)if((e=a[c])&&e.getAttribute("_zipIdx")!=g)d.push(e),e.setAttribute("_zipIdx",g)}else if(h("ie")&&a.commentStrip)try{for(c=0;c<a.length;c++)(e=a[c])&&t(e)&&d.push(e)}catch(l){}else for(c=0;c<a.length;c++)if((e=a[c])&&e._zipIdx!=S)d.push(e),e._zipIdx=S;return d},$=function(a,d){d=d||g.doc;b="div"===(d.ownerDocument||d).createElement("div").tagName;var c=T(a)(d);return c&&c.nozip?c:W(c)};$.filter=function(b,d,c){for(var e=[],g=p(d),
g=1==g.length&&!/[^\w#\.]/.test(d)?E(g[0]):function(b){return-1!=a.indexOf($(d,f.byId(c)),b)},l=0,h;h=b[l];l++)g(h)&&e.push(h);return e};return $})},"dojo/ready":function(){define(["./_base/kernel","./has","require","./domReady","./_base/lang"],function(f,h,a,e,g){var c=0,k=[],m=0;h=function(){c=1;f._postLoad=f.config.afterOnLoad=!0;b()};var b=function(){if(!m){for(m=1;c&&(!e||0==e._Q.length)&&(a.idle?a.idle():1)&&k.length;){var b=k.shift();try{b()}catch(d){if(d.info=d.message,a.signal)a.signal("error",
d);else throw d;}}m=0}};a.on&&a.on("idle",b);e&&(e._onQEmpty=b);var d=f.ready=f.addOnLoad=function(a,d,c){var e=g._toArray(arguments);"number"!=typeof a?(c=d,d=a,a=1E3):e.shift();c=c?g.hitch.apply(f,e):function(){d()};c.priority=a;for(e=0;e<k.length&&a>=k[e].priority;e++);k.splice(e,0,c);b()},p=f.config.addOnLoad;if(p)d[g.isArray(p)?"apply":"call"](f,p);e?e(h):h();return d})},"waf/plugins/responsive_containers":function(){require("dojo/_base/window waf/plugins/sizzle dojo/topic dojo/on waf/lib/on_window_resize dojo/domReady!".split(" "),
function(f,h,a,e,g){var c=f.doc,k=f.global,m={},b=null,d=function(a,b,d,c,e){a=l(a);if(""!==a){var g;!c&&!e&&(g=/^([0-9]*.?[0-9]+)(px|em)$/.exec(d),null!=g&&(c=Number(g[1]),"NaN"!==c+""&&(e=g[2])));e&&(h.compile&&h.compile(a),void 0===m[a]&&(m[a]={}),void 0===m[a][b]&&(m[a][b]={}),m[a][b][d]=[c,e])}},p=function(a){if(a){var b=/(\[(min\-width|max\-width|min\-height|max\-height)\~\=(\'|\")([0-9]*.?[0-9]+)(px|em)(\'|\")\])(\[(min\-width|max\-width|min\-height|max\-height)\~\=(\'|\")([0-9]*.?[0-9]+)(px|em)(\'|\")\])?/gi;
a=a.split(",");var c,e,g,f,l,h,k,n;for(c=0;c<a.length;c++){e=null;for(h=l=0;0===h||null!=g;)g=b.exec(a[c]),null!=g&&(f=Number(g[4]),"NaN"!==f+""&&(null==e&&(e=a[c].substring(l,g.index),k=a[c].substring(g.index+g[1].length),0<k.length&&(n=k.indexOf(" "),0!==n&&(0<n&&(k=k.substring(0,n)),k=k.replace(/(\[(min\-width|max\-width|min\-height|max\-height)\~\=(\'|\")([0-9]*.?[0-9]+)(px|em)(\'|\")\])/gi,""),e+=k))),d(e,g[2],g[4]+g[5],f,g[5])),void 0===g[7]||""===g[7]?(l=g.index+g[1].length,e=null):b.lastIndex=
g.index+g[1].length),h++}}},n=function(a,d){null==b&&c.styleSheets[0]&&(b=void 0!==c.styleSheets[0].cssRules?"cssRules":"rules");if(a[b]&&0<a[b].length){var e=a.ownerNode||a.owningElement;if(d||null===e.getAttribute("data-responsivecontainers-bypass")&&null===e.getAttribute("data-responsivecontainers-processed")){var g,f,l;for(g=0;g<a[b].length;g++)if(l=a[b][g],l[b]&&0<l[b].length)for(f=0;f<l[b].length;f++)p(l[b][f].selectorText);else p(l.selectorText);e.setAttribute("data-responsivecontainers-processed",
"")}}},l=function(a){if(null==a)return"";var b="".trim;return b&&!b.call("\ufeff\u00a0")?b.call(a):(a+"").replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},t=function(a,b){var d=a.getAttribute(b);return d?(" "+d+" ").replace(/[\t\r\n]/g," "):" "},q=function(){var a,b,d,e,g,n,p;for(a in m)if(g=h(a,c.getElementById("page")),0<g.length)for(b=0;b<g.length;b++)for(d in n=g[b],m[a])for(e in m[a][d]){p=m[a][d][e][0];if("em"==m[a][d][e][1]){var q;if(k.getEmPixels){q=n;var y=f.doc,z=void 0;q||(q=z=y.createElement("body"),
z.style.cssText="font-size:1em!important;",y.documentElement.insertBefore(z,y.body));var G=y.createElement("i");G.style.cssText="position:absolute!important;visibility:hidden!important;width:1em!important;font-size:1em!important;padding:0!important;";q.appendChild(G);var P=G.clientWidth;z?y.documentElement.removeChild(z):q.removeChild(G);q=P}else q=16;p*=q}if("min-width"===d&&n.offsetWidth>=p||"max-width"===d&&n.offsetWidth<=p||"min-height"===d&&n.offsetHeight>=p||"max-height"===d&&n.offsetHeight<=
p)p=n,q=d,1===p.nodeType&&(y=l(e),""!==y&&(z=t(p,q),0>z.indexOf(" "+y+" ")&&p.setAttribute(q,l(z+y))));else if(p=n,q=d,1===p.nodeType&&(y=l(e),""!==y)){z=t(p,q);for(G=!1;0<=z.indexOf(" "+y+" ");)z=z.replace(" "+y+" "," "),G=!0;G&&p.setAttribute(q,l(z))}}a=c.documentElement.className;c.documentElement.className=" "+a;c.documentElement.className=a};k.responsiveContainers=function(a,b){if(a&&"object"===typeof a){if(a.cssRules||a.rules)n(a,!0);else{var c,e,g;for(c in a)for(e in a[c])if("string"===typeof a[c][e])d(c,
e,a[c][e]);else if("object"===typeof a[c][e])for(g=0;g<a[c][e].length;g++)d(c,e,a[c][e][g])}!0===b&&q()}else!a&&!b&&q()};k.responsiveContainers.selectors=function(){var a={},b,d,c;for(b in m)for(d in m[b])for(c in m[b][d])void 0===a[b]&&(a[b]={}),void 0===a[b][d]&&(a[b][d]=[]),a[b][d][a[b][d].length]=c;return a};(function(){var b;for(b=0;b<c.styleSheets.length;b++)n(c.styleSheets[b]);a.subscribe("responsive_containers/refresh",q);g(q,self);q()})()})},"waf/plugins/sizzle":function(){define(["dojo/_base/window"],
function(f){function h(a,b,d,c){var e,g,f,h,k;(b?b.ownerDocument||b:O)!==H&&L(b);b=b||H;d=d||[];if(!a||"string"!==typeof a)return d;if(1!==(h=b.nodeType)&&9!==h)return[];if(F&&!c){if(e=da.exec(a))if(f=e[1])if(9===h)if((g=b.getElementById(f))&&g.parentNode){if(g.id===f)return d.push(g),d}else return d;else{if(b.ownerDocument&&(g=b.ownerDocument.getElementById(f))&&J(b,g)&&g.id===f)return d.push(g),d}else{if(e[2])return Z.apply(d,b.getElementsByTagName(a)),d;if((f=e[3])&&B.getElementsByClassName&&b.getElementsByClassName)return Z.apply(d,
b.getElementsByClassName(f)),d}if(B.qsa&&(!C||!C.test(a))){g=e=N;f=b;k=9===h&&a;if(1===h&&"object"!==b.nodeName.toLowerCase()){h=l(a);(e=b.getAttribute("id"))?g=e.replace(Ga,"\\$\x26"):b.setAttribute("id",g);g="[id\x3d'"+g+"'] ";for(f=h.length;f--;)h[f]=g+t(h[f]);f=wa.test(a)&&p(b.parentNode)||b;k=h.join(",")}if(k)try{return Z.apply(d,f.querySelectorAll(k)),d}catch(n){}finally{e||b.removeAttribute("id")}}}return E(a.replace(ha,"$1"),b,d,c)}function a(){function a(d,c){b.push(d+" ")>y.cacheLength&&
delete a[b.shift()];return a[d+" "]=c}var b=[];return a}function e(a){a[N]=!0;return a}function g(a){var b=u.createElement("div");try{return!!a(b)}catch(d){return!1}finally{b.parentNode&&b.parentNode.removeChild(b)}}function c(a,b){for(var d=a.split("|"),c=a.length;c--;)y.attrHandle[d[c]]=b}function k(a,b){var d=b&&a,c=d&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||aa)-(~a.sourceIndex||aa);if(c)return c;if(d)for(;d=d.nextSibling;)if(d===b)return-1;return a?1:-1}function m(a){return function(b){return"input"===
b.nodeName.toLowerCase()&&b.type===a}}function b(a){return function(b){var d=b.nodeName.toLowerCase();return("input"===d||"button"===d)&&b.type===a}}function d(a){return e(function(b){b=+b;return e(function(d,c){for(var e,g=a([],d.length,b),f=g.length;f--;)if(d[e=g[f]])d[e]=!(c[e]=d[e])})})}function p(a){return a&&typeof a.getElementsByTagName!==$&&a}function n(){}function l(a,b){var d,c,e,g,f,l,k;if(f=U[a+" "])return b?0:f.slice(0);f=a;l=[];for(k=y.preFilter;f;){if(!d||(c=ga.exec(f)))c&&(f=f.slice(c[0].length)||
f),l.push(e=[]);d=!1;if(c=la.exec(f))d=c.shift(),e.push({value:d,type:c[0].replace(ha," ")}),f=f.slice(d.length);for(g in y.filter)if((c=ma[g].exec(f))&&(!k[g]||(c=k[g](c))))d=c.shift(),e.push({value:d,type:g,matches:c}),f=f.slice(d.length);if(!d)break}return b?f.length:f?h.error(a):U(a,l).slice(0)}function t(a){for(var b=0,d=a.length,c="";b<d;b++)c+=a[b].value;return c}function q(a,b,d){var c=b.dir,e=d&&"parentNode"===c,g=T++;return b.first?function(b,d,g){for(;b=b[c];)if(1===b.nodeType||e)return a(b,
d,g)}:function(b,d,f){var l,h,k=[V,g];if(f)for(;b=b[c];){if((1===b.nodeType||e)&&a(b,d,f))return!0}else for(;b=b[c];)if(1===b.nodeType||e){h=b[N]||(b[N]={});if((l=h[c])&&l[0]===V&&l[1]===g)return k[2]=l[2];h[c]=k;if(k[2]=a(b,d,f))return!0}}}function r(a){return 1<a.length?function(b,d,c){for(var e=a.length;e--;)if(!a[e](b,d,c))return!1;return!0}:a[0]}function s(a,b,d,c,e){for(var g,f=[],l=0,h=a.length,k=null!=b;l<h;l++)if(g=a[l])if(!d||d(g,c,e))f.push(g),k&&b.push(l);return f}function v(a,b,d,c,g,
f){c&&!c[N]&&(c=v(c));g&&!g[N]&&(g=v(g,f));return e(function(e,f,l,k){var n,p,m=[],q=[],t=f.length,r;if(!(r=e)){r=b||"*";for(var w=l.nodeType?[l]:l,v=[],u=0,E=w.length;u<E;u++)h(r,w[u],v);r=v}r=a&&(e||!b)?s(r,m,a,l,k):r;w=d?g||(e?a:t||c)?[]:f:r;d&&d(r,w,l,k);if(c){n=s(w,q);c(n,[],l,k);for(l=n.length;l--;)if(p=n[l])w[q[l]]=!(r[q[l]]=p)}if(e){if(g||a){if(g){n=[];for(l=w.length;l--;)if(p=w[l])n.push(r[l]=p);g(null,w=[],n,k)}for(l=w.length;l--;)if((p=w[l])&&-1<(n=g?Y.call(e,p):m[l]))e[n]=!(f[n]=p)}}else w=
s(w===f?w.splice(t,w.length):w),g?g(null,f,w,k):Z.apply(f,w)})}function w(a){var b,d,c,e=a.length,g=y.relative[a[0].type];d=g||y.relative[" "];for(var f=g?1:0,l=q(function(a){return a===b},d,!0),h=q(function(a){return-1<Y.call(b,a)},d,!0),k=[function(a,d,c){return!g&&(c||d!==M)||((b=d).nodeType?l(a,d,c):h(a,d,c))}];f<e;f++)if(d=y.relative[a[f].type])k=[q(r(k),d)];else{d=y.filter[a[f].type].apply(null,a[f].matches);if(d[N]){for(c=++f;c<e&&!y.relative[a[c].type];c++);return v(1<f&&r(k),1<f&&t(a.slice(0,
f-1).concat({value:" "===a[f-2].type?"*":""})).replace(ha,"$1"),d,f<c&&w(a.slice(f,c)),c<e&&w(a=a.slice(c)),c<e&&t(a))}k.push(d)}return r(k)}function x(a,b){var d=0<b.length,c=0<a.length,g=function(e,g,f,l,k){var n,p,m,q=0,t="0",r=e&&[],w=[],v=M,u=e||c&&y.find.TAG("*",k),E=V+=null==v?1:Math.random()||0.1,x=u.length;for(k&&(M=g!==H&&g);t!==x&&null!=(n=u[t]);t++){if(c&&n){for(p=0;m=a[p++];)if(m(n,g,f)){l.push(n);break}k&&(V=E)}d&&((n=!m&&n)&&q--,e&&r.push(n))}q+=t;if(d&&t!==q){for(p=0;m=b[p++];)m(r,
w,g,f);if(e){if(0<q)for(;t--;)!r[t]&&!w[t]&&(w[t]=pa.call(l));w=s(w)}Z.apply(l,w);k&&(!e&&0<w.length&&1<q+b.length)&&h.uniqueSort(l)}k&&(V=E,M=v);return r};return d?e(g):g}var u=f.doc,A,B,y,z,G,P,E,M,Q,I,L,H,D,F,C,R,K,J,N="sizzle"+-new Date,O=u,V=0,T=0,S=a(),U=a(),ca=a(),W=function(a,b){a===b&&(I=!0);return 0},$="undefined",aa=-2147483648,ea={}.hasOwnProperty,fa=[],pa=fa.pop,oa=fa.push,Z=fa.push,ja=fa.slice,Y=fa.indexOf||function(a){for(var b=0,d=this.length;b<d;b++)if(this[b]===a)return b;return-1},
X="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w#"),ba="\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)[\\x20\\t\\r\\n\\f]*(?:([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+X+")|)|)[\\x20\\t\\r\\n\\f]*\\]",ia=":((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+ba.replace(3,8)+")*)|.*)\\)|)",ha=RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),ga=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,
la=/^[\x20\t\r\n\f]*([>+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,sa=RegExp("\x3d[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]","g"),ta=RegExp(ia),va=RegExp("^"+X+"$"),ma={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,TAG:RegExp("^("+"(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w*")+")"),ATTR:RegExp("^"+ba),PSEUDO:RegExp("^"+ia),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)",
"i"),bool:RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:RegExp("^[\\x20\\t\\r\\n\\f]*[\x3e+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?\x3d[^-]|$)","i")},ka=/^(?:input|select|textarea|button)$/i,ua=/^h\d$/i,na=/^[^{]+\{\s*\[native \w/,da=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,wa=/[+~]/,Ga=/'|\\/g,qa=RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)",
"ig"),ra=function(a,b,d){a="0x"+b-65536;return a!==a||d?b:0>a?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,a&1023|56320)};try{Z.apply(fa=ja.call(O.childNodes),O.childNodes),fa[O.childNodes.length].nodeType}catch(za){Z={apply:fa.length?function(a,b){oa.apply(a,ja.call(b))}:function(a,b){for(var d=a.length,c=0;a[d++]=b[c++];);a.length=d-1}}}B=h.support={};G=h.isXML=function(a){return(a=a&&(a.ownerDocument||a).documentElement)?"HTML"!==a.nodeName:!1};L=h.setDocument=function(a){var b=
a?a.ownerDocument||a:O;a=b.defaultView;if(b===H||9!==b.nodeType||!b.documentElement)return H;H=b;D=b.documentElement;F=!G(b);a&&a!==a.top&&(a.addEventListener?a.addEventListener("unload",function(){L()},!1):a.attachEvent&&a.attachEvent("onunload",function(){L()}));B.attributes=g(function(a){a.className="i";return!a.getAttribute("className")});B.getElementsByTagName=g(function(a){a.appendChild(b.createComment(""));return!a.getElementsByTagName("*").length});B.getElementsByClassName=na.test(b.getElementsByClassName)&&
g(function(a){a.innerHTML="\x3cdiv class\x3d'a'\x3e\x3c/div\x3e\x3cdiv class\x3d'a i'\x3e\x3c/div\x3e";a.firstChild.className="i";return 2===a.getElementsByClassName("i").length});B.getById=g(function(a){D.appendChild(a).id=N;return!b.getElementsByName||!b.getElementsByName(N).length});B.getById?(y.find.ID=function(a,b){if(typeof b.getElementById!==$&&F){var d=b.getElementById(a);return d&&d.parentNode?[d]:[]}},y.filter.ID=function(a){var b=a.replace(qa,ra);return function(a){return a.getAttribute("id")===
b}}):(delete y.find.ID,y.filter.ID=function(a){var b=a.replace(qa,ra);return function(a){return(a=typeof a.getAttributeNode!==$&&a.getAttributeNode("id"))&&a.value===b}});y.find.TAG=B.getElementsByTagName?function(a,b){if(typeof b.getElementsByTagName!==$)return b.getElementsByTagName(a)}:function(a,b){var d,c=[],e=0,g=b.getElementsByTagName(a);if("*"===a){for(;d=g[e++];)1===d.nodeType&&c.push(d);return c}return g};y.find.CLASS=B.getElementsByClassName&&function(a,b){if(typeof b.getElementsByClassName!==
$&&F)return b.getElementsByClassName(a)};R=[];C=[];if(B.qsa=na.test(b.querySelectorAll))g(function(a){a.innerHTML="\x3cselect t\x3d''\x3e\x3coption selected\x3d''\x3e\x3c/option\x3e\x3c/select\x3e";a.querySelectorAll("[t^\x3d'']").length&&C.push("[*^$]\x3d[\\x20\\t\\r\\n\\f]*(?:''|\"\")");a.querySelectorAll("[selected]").length||C.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)");a.querySelectorAll(":checked").length||
C.push(":checked")}),g(function(a){var d=b.createElement("input");d.setAttribute("type","hidden");a.appendChild(d).setAttribute("name","D");a.querySelectorAll("[name\x3dd]").length&&C.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?\x3d");a.querySelectorAll(":enabled").length||C.push(":enabled",":disabled");a.querySelectorAll("*,:x");C.push(",.*:")});(B.matchesSelector=na.test(K=D.webkitMatchesSelector||D.mozMatchesSelector||D.oMatchesSelector||D.msMatchesSelector))&&g(function(a){B.disconnectedMatch=K.call(a,
"div");K.call(a,"[s!\x3d'']:x");R.push("!\x3d",ia)});C=C.length&&RegExp(C.join("|"));R=R.length&&RegExp(R.join("|"));J=(a=na.test(D.compareDocumentPosition))||na.test(D.contains)?function(a,b){var d=9===a.nodeType?a.documentElement:a,c=b&&b.parentNode;return a===c||!(!c||!(1===c.nodeType&&(d.contains?d.contains(c):a.compareDocumentPosition&&a.compareDocumentPosition(c)&16)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1};W=a?function(a,d){if(a===d)return I=!0,0;var c=!a.compareDocumentPosition-
!d.compareDocumentPosition;if(c)return c;c=(a.ownerDocument||a)===(d.ownerDocument||d)?a.compareDocumentPosition(d):1;return c&1||!B.sortDetached&&d.compareDocumentPosition(a)===c?a===b||a.ownerDocument===O&&J(O,a)?-1:d===b||d.ownerDocument===O&&J(O,d)?1:Q?Y.call(Q,a)-Y.call(Q,d):0:c&4?-1:1}:function(a,d){if(a===d)return I=!0,0;var c,e=0;c=a.parentNode;var g=d.parentNode,f=[a],l=[d];if(!c||!g)return a===b?-1:d===b?1:c?-1:g?1:Q?Y.call(Q,a)-Y.call(Q,d):0;if(c===g)return k(a,d);for(c=a;c=c.parentNode;)f.unshift(c);
for(c=d;c=c.parentNode;)l.unshift(c);for(;f[e]===l[e];)e++;return e?k(f[e],l[e]):f[e]===O?-1:l[e]===O?1:0};return b};h.matches=function(a,b){return h(a,null,null,b)};h.matchesSelector=function(a,b){(a.ownerDocument||a)!==H&&L(a);b=b.replace(sa,"\x3d'$1']");if(B.matchesSelector&&F&&(!R||!R.test(b))&&(!C||!C.test(b)))try{var d=K.call(a,b);if(d||B.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(c){}return 0<h(b,H,null,[a]).length};h.contains=function(a,b){(a.ownerDocument||a)!==
H&&L(a);return J(a,b)};h.attr=function(a,b){(a.ownerDocument||a)!==H&&L(a);var d=y.attrHandle[b.toLowerCase()],d=d&&ea.call(y.attrHandle,b.toLowerCase())?d(a,b,!F):void 0;return void 0!==d?d:B.attributes||!F?a.getAttribute(b):(d=a.getAttributeNode(b))&&d.specified?d.value:null};h.error=function(a){throw Error("Syntax error, unrecognized expression: "+a);};h.uniqueSort=function(a){var b,d=[],c=0,e=0;I=!B.detectDuplicates;Q=!B.sortStable&&a.slice(0);a.sort(W);if(I){for(;b=a[e++];)b===a[e]&&(c=d.push(e));
for(;c--;)a.splice(d[c],1)}Q=null;return a};z=h.getText=function(a){var b,d="",c=0;if(b=a.nodeType)if(1===b||9===b||11===b){if("string"===typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)d+=z(a)}else{if(3===b||4===b)return a.nodeValue}else for(;b=a[c++];)d+=z(b);return d};y=h.selectors={cacheLength:50,createPseudo:e,match:ma,attrHandle:{},find:{},relative:{"\x3e":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},
preFilter:{ATTR:function(a){a[1]=a[1].replace(qa,ra);a[3]=(a[4]||a[5]||"").replace(qa,ra);"~\x3d"===a[2]&&(a[3]=" "+a[3]+" ");return a.slice(0,4)},CHILD:function(a){a[1]=a[1].toLowerCase();"nth"===a[1].slice(0,3)?(a[3]||h.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&h.error(a[0]);return a},PSEUDO:function(a){var b,d=!a[5]&&a[2];if(ma.CHILD.test(a[0]))return null;if(a[3]&&void 0!==a[4])a[2]=a[4];else if(d&&ta.test(d)&&(b=l(d,!0))&&(b=
d.indexOf(")",d.length-b)-d.length))a[0]=a[0].slice(0,b),a[2]=d.slice(0,b);return a.slice(0,3)}},filter:{TAG:function(a){var b=a.replace(qa,ra).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=S[a+" "];return b||(b=RegExp("(^|[\\x20\\t\\r\\n\\f])"+a+"([\\x20\\t\\r\\n\\f]|$)"))&&S(a,function(a){return b.test("string"===typeof a.className&&a.className||typeof a.getAttribute!==$&&a.getAttribute("class")||"")})},ATTR:function(a,
b,d){return function(c){c=h.attr(c,a);if(null==c)return"!\x3d"===b;if(!b)return!0;c+="";return"\x3d"===b?c===d:"!\x3d"===b?c!==d:"^\x3d"===b?d&&0===c.indexOf(d):"*\x3d"===b?d&&-1<c.indexOf(d):"$\x3d"===b?d&&c.slice(-d.length)===d:"~\x3d"===b?-1<(" "+c+" ").indexOf(d):"|\x3d"===b?c===d||c.slice(0,d.length+1)===d+"-":!1}},CHILD:function(a,b,d,c,e){var g="nth"!==a.slice(0,3),f="last"!==a.slice(-4),l="of-type"===b;return 1===c&&0===e?function(a){return!!a.parentNode}:function(b,d,h){var k,n,p,m,q;d=g!==
f?"nextSibling":"previousSibling";var t=b.parentNode,r=l&&b.nodeName.toLowerCase();h=!h&&!l;if(t){if(g){for(;d;){for(n=b;n=n[d];)if(l?n.nodeName.toLowerCase()===r:1===n.nodeType)return!1;q=d="only"===a&&!q&&"nextSibling"}return!0}q=[f?t.firstChild:t.lastChild];if(f&&h){h=t[N]||(t[N]={});k=h[a]||[];m=k[0]===V&&k[1];p=k[0]===V&&k[2];for(n=m&&t.childNodes[m];n=++m&&n&&n[d]||(p=m=0)||q.pop();)if(1===n.nodeType&&++p&&n===b){h[a]=[V,m,p];break}}else if(h&&(k=(b[N]||(b[N]={}))[a])&&k[0]===V)p=k[1];else for(;n=
++m&&n&&n[d]||(p=m=0)||q.pop();)if((l?n.nodeName.toLowerCase()===r:1===n.nodeType)&&++p)if(h&&((n[N]||(n[N]={}))[a]=[V,p]),n===b)break;p-=e;return p===c||0===p%c&&0<=p/c}}},PSEUDO:function(a,b){var d,c=y.pseudos[a]||y.setFilters[a.toLowerCase()]||h.error("unsupported pseudo: "+a);return c[N]?c(b):1<c.length?(d=[a,a,"",b],y.setFilters.hasOwnProperty(a.toLowerCase())?e(function(a,d){for(var e,g=c(a,b),f=g.length;f--;)e=Y.call(a,g[f]),a[e]=!(d[e]=g[f])}):function(a){return c(a,0,d)}):c}},pseudos:{not:e(function(a){var b=
[],d=[],c=P(a.replace(ha,"$1"));return c[N]?e(function(a,b,d,e){e=c(a,null,e,[]);for(var g=a.length;g--;)if(d=e[g])a[g]=!(b[g]=d)}):function(a,e,g){b[0]=a;c(b,null,g,d);return!d.pop()}}),has:e(function(a){return function(b){return 0<h(a,b).length}}),contains:e(function(a){return function(b){return-1<(b.textContent||b.innerText||z(b)).indexOf(a)}}),lang:e(function(a){va.test(a||"")||h.error("unsupported lang: "+a);a=a.replace(qa,ra).toLowerCase();return function(b){var d;do if(d=F?b.lang:b.getAttribute("xml:lang")||
b.getAttribute("lang"))return d=d.toLowerCase(),d===a||0===d.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(a){var b=f.location&&f.location.hash;return b&&b.slice(1)===a.id},root:function(a){return a===D},focus:function(a){return a===u.activeElement&&(!u.hasFocus||u.hasFocus())&&!(!a.type&&!a.href&&!~a.tabIndex)},enabled:function(a){return!1===a.disabled},disabled:function(a){return!0===a.disabled},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===
b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return!0===a.selected},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(6>a.nodeType)return!1;return!0},parent:function(a){return!y.pseudos.empty(a)},header:function(a){return ua.test(a.nodeName)},input:function(a){return ka.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&
"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:d(function(){return[0]}),last:d(function(a,b){return[b-1]}),eq:d(function(a,b,d){return[0>d?d+b:d]}),even:d(function(a,b){for(var d=0;d<b;d+=2)a.push(d);return a}),odd:d(function(a,b){for(var d=1;d<b;d+=2)a.push(d);return a}),lt:d(function(a,b,d){for(b=0>d?d+b:d;0<=--b;)a.push(b);return a}),gt:d(function(a,b,d){for(d=0>d?d+b:d;++d<b;)a.push(d);return a})}};y.pseudos.nth=y.pseudos.eq;for(A in{radio:!0,checkbox:!0,
file:!0,password:!0,image:!0})y.pseudos[A]=m(A);for(A in{submit:!0,reset:!0})y.pseudos[A]=b(A);n.prototype=y.filters=y.pseudos;y.setFilters=new n;P=h.compile=function(a,b){var d,c=[],e=[],g=ca[a+" "];if(!g){b||(b=l(a));for(d=b.length;d--;)g=w(b[d]),g[N]?c.push(g):e.push(g);g=ca(a,x(e,c));g.selector=a}return g};E=h.select=function(a,b,d,c){var e,g,f,h,k="function"===typeof a&&a,n=!c&&l(a=k.selector||a);d=d||[];if(1===n.length){g=n[0]=n[0].slice(0);if(2<g.length&&"ID"===(f=g[0]).type&&B.getById&&9===
b.nodeType&&F&&y.relative[g[1].type]){if(b=(y.find.ID(f.matches[0].replace(qa,ra),b)||[])[0])k&&(b=b.parentNode);else return d;a=a.slice(g.shift().value.length)}for(e=ma.needsContext.test(a)?0:g.length;e--;){f=g[e];if(y.relative[h=f.type])break;if(h=y.find[h])if(c=h(f.matches[0].replace(qa,ra),wa.test(g[0].type)&&p(b.parentNode)||b)){g.splice(e,1);a=c.length&&t(g);if(!a)return Z.apply(d,c),d;break}}}(k||P(a,n))(c,b,!F,d,wa.test(a)&&p(b.parentNode)||b);return d};B.sortStable=N.split("").sort(W).join("")===
N;B.detectDuplicates=!!I;L();B.sortDetached=g(function(a){return a.compareDocumentPosition(u.createElement("div"))&1});g(function(a){a.innerHTML="\x3ca href\x3d'#'\x3e\x3c/a\x3e";return"#"===a.firstChild.getAttribute("href")})||c("type|href|height|width",function(a,b,d){if(!d)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)});(!B.attributes||!g(function(a){a.innerHTML="\x3cinput/\x3e";a.firstChild.setAttribute("value","");return""===a.firstChild.getAttribute("value")}))&&c("value",function(a,
b,d){if(!d&&"input"===a.nodeName.toLowerCase())return a.defaultValue});g(function(a){return null==a.getAttribute("disabled")})||c("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",function(a,b,d){var c;if(!d)return!0===a[b]?b.toLowerCase():(c=a.getAttributeNode(b))&&c.specified?c.value:null});return h})},"dojo/topic":function(){define(["./Evented"],function(f){var h=new f;return{publish:function(a,e){return h.emit.apply(h,
arguments)},subscribe:function(a,e){return h.on.apply(h,arguments)}}})},"waf/lib/on_window_resize":function(){define(["dojo/on","waf/lib/throttle_debounce"],function(f,h){return function(a,e){!Bank of America Corporation.isIE7&&!Bank of America Corporation.isIE8&&f(window,"resize",h.debounce(a,e,100))}})},"waf/lib/throttle_debounce":function(){define([],function(){var f={defaultDelay:15,throttle:function(h,a,e){var g=!1;e=e||f.defaultDelay;return function(){g||(g=!0,h.apply(a,arguments),setTimeout(function(){g=!1},e))}},throttleDelayed:function(h,
a,e){var g=!1;e=e||f.defaultDelay;return function(){if(!g){g=!0;var c=arguments;setTimeout(function(){g=!1;h.apply(a,c)},e)}}},debounce:function(h,a,e){var g;e=e||f.defaultDelay;return function(){g&&(clearTimeout(g),g=null);var c=arguments;g=setTimeout(function(){h.apply(a,c)},e)}}};return f})},"waf/plugins/placeholder":function(){define(["dojo/window","dojo/_base/array","dojo/on","dojo/keys","dojo/domReady!"],function(f,h,a,e){function g(){try{return document.activeElement}catch(a){}}function c(a,
b){var d;d=!!b&&a.value!==b;var c=a.value===a.getAttribute(B);if((d||c)&&"true"===a.getAttribute(y)){a.removeAttribute(y);a.value=a.value.replace(a.getAttribute(B),"");a.className=a.className.replace(x,"");d=a.getAttribute(E);0<=parseInt(d,10)&&(a.setAttribute("maxLength",d),a.removeAttribute(E));if(d=a.getAttribute(z))a.type=d;return!0}return!1}function k(a){var b;b=a.getAttribute(B);return""===a.value&&b?(a.setAttribute(y,"true"),a.value=b,a.className+=" "+w,b=a.getAttribute(E),b||(a.setAttribute(E,
a.maxLength),a.removeAttribute("maxLength")),(b=a.getAttribute(z))?a.type="text":"password"===a.type&&m(a,"text")&&a.setAttribute(z,"password"),!0):!1}function m(a,b){try{return a.type=b,!0}catch(d){return!1}}function b(a,b){var d;a.createTextRange?(d=a.createTextRange(),d.move("character",b),d.select()):a.selectionStart&&(a.focus(),a.setSelectionRange(b,b))}function d(a){return function(){Q&&a.value===a.getAttribute(B)&&"true"===a.getAttribute(y)?b(a,0):c(a)}}function p(a){return function(){k(a)}}
function n(a){return function(b){L=a.value;if("true"===a.getAttribute(y)&&L===a.getAttribute(B)&&0<=h.indexOf(v,b.keyCode))return b.preventDefault&&b.preventDefault(),!1}}function l(a){return function(){c(a,L);""===a.value&&(a.blur(),b(a,0))}}function t(a){return function(){a===g()&&(a.value===a.getAttribute(B)&&"true"===a.getAttribute(y))&&b(a,0)}}function q(a){return function(){var b=c,d,e,g,f,l,h;if(a&&a.getAttribute(B))b(a);else{g=a?a.getElementsByTagName("input"):u;f=a?a.getElementsByTagName("textarea"):
A;d=g?g.length:0;e=f?f.length:0;h=0;for(l=d+e;h<l;h++)e=h<d?g[h]:f[h-d],b(e)}}}function r(b){b.form&&(F=b.form,"string"===typeof F&&(F=document.getElementById(F)),F.getAttribute(G)||(a(F,"submit",q(F)),F.setAttribute(G,"true")));a(b,"focus",d(b));a(b,"blur",p(b));Q&&(a(b,"keydown",n(b)),a(b,"keyup",l(b)),a(b,"click",t(b)));b.setAttribute(P,"true");b.setAttribute(B,H);(Q||b!==g())&&k(b)}var s="text search url tel email password number textarea".split(" "),v=[e.ESCAPE,e.PAGE_UP,e.PAGE_DOWN,e.END,e.HOME,
e.LEFT_ARROW,e.RIGHT_ARROW,e.UP_ARROW,e.DOWN_ARROW,e.BACKSPACE,e.DELETE],w="placeholdersjs",x=RegExp("(?:^|\\s)"+w+"(?!\\S)"),u,A,B="data-placeholder-value",y="data-placeholder-active",z="data-placeholder-type",G="data-placeholder-submit",P="data-placeholder-bound",E="data-placeholder-maxlength";e=document.createElement("input");f=document.getElementsByTagName("head")[0];var M=document.documentElement,Q,I,L,H,D,F,C,R,K;if(void 0===e.placeholder){u=document.getElementsByTagName("input");A=document.getElementsByTagName("textarea");
Q="false"===M.getAttribute("data-placeholder-focus");I="false"!==M.getAttribute("data-placeholder-live");e=document.createElement("style");e.type="text/css";M=document.createTextNode("."+w+" { color:#ccc; }");e.styleSheet?e.styleSheet.cssText=M.nodeValue:e.appendChild(M);f.insertBefore(e,f.firstChild);K=0;for(R=u.length+A.length;K<R;K++)if(C=K<u.length?u[K]:A[K-u.length],H=C.attributes.placeholder)(H=H.nodeValue)&&0<=h.indexOf(s,C.type)&&r(C);D=setInterval(function(){K=0;for(R=u.length+A.length;K<
R;K++)if(C=K<u.length?u[K]:A[K-u.length],H=C.attributes.placeholder){if((H=H.nodeValue)&&0<=h.indexOf(s,C.type))if(C.getAttribute(P)||r(C),H!==C.getAttribute(B)||"password"===C.type&&!C.getAttribute(z))"password"===C.type&&(!C.getAttribute(z)&&m(C,"text"))&&C.setAttribute(z,"password"),C.value===C.getAttribute(B)&&(C.value=H),C.setAttribute(B,H)}else C.getAttribute(y)&&(c(C),C.removeAttribute(B));I||clearInterval(D)},100)}})},"dojo/window":function(){define("./_base/lang ./sniff ./_base/window ./dom ./dom-geometry ./dom-style ./dom-construct".split(" "),
function(f,h,a,e,g,c,k){h.add("rtl-adjust-position-for-verticalScrollBar",function(b,d){var c=a.body(d),e=k.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},c,"last"),f=k.create("div",{style:{overflow:"hidden",direction:"ltr"}},e,"last"),h=0!=g.position(f).x;e.removeChild(f);c.removeChild(e);return h});h.add("position-fixed-support",function(b,d){var c=a.body(d),e=k.create("span",{style:{visibility:"hidden",
position:"fixed",left:"1px",top:"1px"}},c,"last"),f=k.create("span",{style:{position:"fixed",left:"0",top:"0"}},e,"last"),h=g.position(f).x!=g.position(e).x;e.removeChild(f);c.removeChild(e);return h});var m={getBox:function(b){b=b||a.doc;var d="BackCompat"==b.compatMode?a.body(b):b.documentElement,c=g.docScroll(b);if(h("touch")){var e=m.get(b);b=e.innerWidth||d.clientWidth;d=e.innerHeight||d.clientHeight}else b=d.clientWidth,d=d.clientHeight;return{l:c.x,t:c.y,w:b,h:d}},get:function(a){if(h("ie")&&
m!==document.parentWindow){a.parentWindow.execScript("document._parentWindow \x3d window;","Javascript");var d=a._parentWindow;a._parentWindow=null;return d}return a.parentWindow||a.defaultView},scrollIntoView:function(b,d){try{b=e.byId(b);var f=b.ownerDocument||a.doc,k=a.body(f),l=f.documentElement||k.parentNode,m=h("ie"),q=h("webkit");if(!(b==k||b==l))if(!h("mozilla")&&(!m&&!q&&!h("opera"))&&"scrollIntoView"in b)b.scrollIntoView(!1);else{var r="BackCompat"==f.compatMode,s=Math.min(k.clientWidth||
l.clientWidth,l.clientWidth||k.clientWidth),v=Math.min(k.clientHeight||l.clientHeight,l.clientHeight||k.clientHeight),f=q||r?k:l,w=d||g.position(b),x=b.parentNode,q=function(a){return 6>=m||7==m&&r?!1:h("position-fixed-support")&&"fixed"==c.get(a,"position").toLowerCase()};if(!q(b))for(;x;){x==k&&(x=f);var u=g.position(x),A=q(x),B="rtl"==c.getComputedStyle(x).direction.toLowerCase();if(x==f){u.w=s;u.h=v;f==l&&(m&&B)&&(u.x+=f.offsetWidth-u.w);if(0>u.x||!m||9<=m)u.x=0;if(0>u.y||!m||9<=m)u.y=0}else{var y=
g.getPadBorderExtents(x);u.w-=y.w;u.h-=y.h;u.x+=y.l;u.y+=y.t;var z=x.clientWidth,G=u.w-z;0<z&&0<G&&(B&&h("rtl-adjust-position-for-verticalScrollBar")&&(u.x+=G),u.w=z);z=x.clientHeight;G=u.h-z;0<z&&0<G&&(u.h=z)}A&&(0>u.y&&(u.h+=u.y,u.y=0),0>u.x&&(u.w+=u.x,u.x=0),u.y+u.h>v&&(u.h=v-u.y),u.x+u.w>s&&(u.w=s-u.x));var P=w.x-u.x,E=w.y-u.y,M=P+w.w-u.w,Q=E+w.h-u.h,I,L;if(0<M*P&&(x.scrollLeft||x==f||x.scrollWidth>x.offsetHeight)){I=Math[0>P?"max":"min"](P,M);if(B&&(8==m&&!r||9<=m))I=-I;L=x.scrollLeft;x.scrollLeft+=
I;I=x.scrollLeft-L;w.x-=I}if(0<Q*E&&(x.scrollTop||x==f||x.scrollHeight>x.offsetHeight))I=Math.ceil(Math[0>E?"max":"min"](E,Q)),L=x.scrollTop,x.scrollTop+=I,I=x.scrollTop-L,w.y-=I;x=x!=f&&!A&&x.parentNode}}}catch(H){console.error("scrollIntoView: "+H),b.scrollIntoView(!1)}}};f.setObject("dojo.window",m);return m})},"dojo/dom-geometry":function(){define(["./sniff","./_base/window","./dom","./dom-style"],function(f,h,a,e){function g(a,b,c,e,g,f){f=f||"px";a=a.style;isNaN(b)||(a.left=b+f);isNaN(c)||(a.top=
c+f);0<=e&&(a.width=e+f);0<=g&&(a.height=g+f)}function c(a){return"button"==a.tagName.toLowerCase()||"input"==a.tagName.toLowerCase()&&"button"==(a.getAttribute("type")||"").toLowerCase()}function k(a){return"border-box"==m.boxModel||"table"==a.tagName.toLowerCase()||c(a)}var m={boxModel:"content-box"};f("ie")&&(m.boxModel="BackCompat"==document.compatMode?"border-box":"content-box");m.getPadExtents=function(b,c){b=a.byId(b);var g=c||e.getComputedStyle(b),f=e.toPixelValue,h=f(b,g.paddingLeft),k=f(b,
g.paddingTop),m=f(b,g.paddingRight),g=f(b,g.paddingBottom);return{l:h,t:k,r:m,b:g,w:h+m,h:k+g}};m.getBorderExtents=function(b,c){b=a.byId(b);var g=e.toPixelValue,f=c||e.getComputedStyle(b),h="none"!=f.borderLeftStyle?g(b,f.borderLeftWidth):0,k="none"!=f.borderTopStyle?g(b,f.borderTopWidth):0,m="none"!=f.borderRightStyle?g(b,f.borderRightWidth):0,g="none"!=f.borderBottomStyle?g(b,f.borderBottomWidth):0;return{l:h,t:k,r:m,b:g,w:h+m,h:k+g}};m.getPadBorderExtents=function(b,c){b=a.byId(b);var g=c||e.getComputedStyle(b),
f=m.getPadExtents(b,g),g=m.getBorderExtents(b,g);return{l:f.l+g.l,t:f.t+g.t,r:f.r+g.r,b:f.b+g.b,w:f.w+g.w,h:f.h+g.h}};m.getMarginExtents=function(b,c){b=a.byId(b);var g=c||e.getComputedStyle(b),f=e.toPixelValue,h=f(b,g.marginLeft),k=f(b,g.marginTop),m=f(b,g.marginRight),g=f(b,g.marginBottom);return{l:h,t:k,r:m,b:g,w:h+m,h:k+g}};m.getMarginBox=function(b,c){b=a.byId(b);var g=c||e.getComputedStyle(b),h=m.getMarginExtents(b,g),k=b.offsetLeft-h.l,q=b.offsetTop-h.t,r=b.parentNode,s=e.toPixelValue;if(f("mozilla")){var v=
parseFloat(g.left),g=parseFloat(g.top);!isNaN(v)&&!isNaN(g)?(k=v,q=g):r&&r.style&&(r=e.getComputedStyle(r),"visible"!=r.overflow&&(k+="none"!=r.borderLeftStyle?s(b,r.borderLeftWidth):0,q+="none"!=r.borderTopStyle?s(b,r.borderTopWidth):0))}else if((f("opera")||8==f("ie")&&!f("quirks"))&&r)r=e.getComputedStyle(r),k-="none"!=r.borderLeftStyle?s(b,r.borderLeftWidth):0,q-="none"!=r.borderTopStyle?s(b,r.borderTopWidth):0;return{l:k,t:q,w:b.offsetWidth+h.w,h:b.offsetHeight+h.h}};m.getContentBox=function(b,
c){b=a.byId(b);var g=c||e.getComputedStyle(b),h=b.clientWidth,k=m.getPadExtents(b,g),q=m.getBorderExtents(b,g);h?(g=b.clientHeight,q.w=q.h=0):(h=b.offsetWidth,g=b.offsetHeight);f("opera")&&(k.l+=q.l,k.t+=q.t);return{l:k.l,t:k.t,w:h-k.w-q.w,h:g-k.h-q.h}};m.setContentSize=function(b,c,e){b=a.byId(b);var f=c.w;c=c.h;k(b)&&(e=m.getPadBorderExtents(b,e),0<=f&&(f+=e.w),0<=c&&(c+=e.h));g(b,NaN,NaN,f,c)};var b={l:0,t:0,w:0,h:0};m.setMarginBox=function(d,h,n){d=a.byId(d);var l=n||e.getComputedStyle(d);n=h.w;
var t=h.h,q=k(d)?b:m.getPadBorderExtents(d,l),l=m.getMarginExtents(d,l);if(f("webkit")&&c(d)){var r=d.style;0<=n&&!r.width&&(r.width="4px");0<=t&&!r.height&&(r.height="4px")}0<=n&&(n=Math.max(n-q.w-l.w,0));0<=t&&(t=Math.max(t-q.h-l.h,0));g(d,h.l,h.t,n,t)};m.isBodyLtr=function(a){a=a||h.doc;return"ltr"==(h.body(a).dir||a.documentElement.dir||"ltr").toLowerCase()};m.docScroll=function(a){a=a||h.doc;var b=h.doc.parentWindow||h.doc.defaultView;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:
(b=f("quirks")?h.body(a):a.documentElement)&&{x:m.fixIeBiDiScrollLeft(b.scrollLeft||0,a),y:b.scrollTop||0}};f("ie")&&(m.getIeDocumentElementOffset=function(a){a=a||h.doc;a=a.documentElement;if(8>f("ie")){var b=a.getBoundingClientRect(),c=b.left,b=b.top;7>f("ie")&&(c+=a.clientLeft,b+=a.clientTop);return{x:0>c?0:c,y:0>b?0:b}}return{x:0,y:0}});m.fixIeBiDiScrollLeft=function(a,b){b=b||h.doc;var c=f("ie");if(c&&!m.isBodyLtr(b)){var e=f("quirks"),g=e?h.body(b):b.documentElement,k=h.global;6==c&&(!e&&k.frameElement&&
g.scrollHeight>g.clientHeight)&&(a+=g.clientLeft);return 8>c||e?a+g.clientWidth-g.scrollWidth:-a}return a};m.position=function(b,c){b=a.byId(b);var e=h.body(b.ownerDocument),g=b.getBoundingClientRect(),g={x:g.left,y:g.top,w:g.right-g.left,h:g.bottom-g.top};if(9>f("ie")){var k=m.getIeDocumentElementOffset(b.ownerDocument);g.x-=k.x+(f("quirks")?e.clientLeft+e.offsetLeft:0);g.y-=k.y+(f("quirks")?e.clientTop+e.offsetTop:0)}c&&(e=m.docScroll(b.ownerDocument),g.x+=e.x,g.y+=e.y);return g};m.getMarginSize=
function(b,c){b=a.byId(b);var g=m.getMarginExtents(b,c||e.getComputedStyle(b)),f=b.getBoundingClientRect();return{w:f.right-f.left+g.w,h:f.bottom-f.top+g.h}};m.normalizeEvent=function(a){"layerX"in a||(a.layerX=a.offsetX,a.layerY=a.offsetY);if(!f("dom-addeventlistener")){var b=a.target,b=b&&b.ownerDocument||document,c=f("quirks")?b.body:b.documentElement,e=m.getIeDocumentElementOffset(b);a.pageX=a.clientX+m.fixIeBiDiScrollLeft(c.scrollLeft||0,b)-e.x;a.pageY=a.clientY+(c.scrollTop||0)-e.y}};return m})},
"dojo/dom-style":function(){define(["./sniff","./dom"],function(f,h){function a(a,b,e){b=b.toLowerCase();if(f("ie")){if("auto"==e){if("height"==b)return a.offsetHeight;if("width"==b)return a.offsetWidth}if("fontweight"==b)switch(e){case 700:return"bold";default:return"normal"}}b in d||(d[b]=p.test(b));return d[b]?c(a,e):e}var e,g={};e=f("webkit")?function(a){var b;if(1==a.nodeType){var c=a.ownerDocument.defaultView;b=c.getComputedStyle(a,null);!b&&a.style&&(a.style.display="",b=c.getComputedStyle(a,
null))}return b||{}}:f("ie")&&(9>f("ie")||f("quirks"))?function(a){return 1==a.nodeType&&a.currentStyle?a.currentStyle:{}}:function(a){return 1==a.nodeType?a.ownerDocument.defaultView.getComputedStyle(a,null):{}};g.getComputedStyle=e;var c;c=f("ie")?function(a,b){if(!b)return 0;if("medium"==b)return 4;if(b.slice&&"px"==b.slice(-2))return parseFloat(b);var c=a.style,d=a.runtimeStyle,e=c.left,g=d.left;d.left=a.currentStyle.left;try{c.left=b,b=c.pixelLeft}catch(f){b=0}c.left=e;d.left=g;return b}:function(a,
b){return parseFloat(b)||0};g.toPixelValue=c;var k=function(a,b){try{return a.filters.item("DXImageTransform.Microsoft.Alpha")}catch(c){return b?{}:null}},m=9>f("ie")||10>f("ie")&&f("quirks")?function(a){try{return k(a).Opacity/100}catch(b){return 1}}:function(a){return e(a).opacity},b=9>f("ie")||10>f("ie")&&f("quirks")?function(a,c){""===c&&(c=1);var d=100*c;1===c?(a.style.zoom="",k(a)&&(a.style.filter=a.style.filter.replace(/\s*progid:DXImageTransform.Microsoft.Alpha\([^\)]+?\)/i,""))):(a.style.zoom=
1,k(a)?k(a,1).Opacity=d:a.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d"+d+")",k(a,1).Enabled=!0);if("tr"==a.tagName.toLowerCase())for(d=a.firstChild;d;d=d.nextSibling)"td"==d.tagName.toLowerCase()&&b(d,c);return c}:function(a,b){return a.style.opacity=b},d={left:!0,top:!0},p=/margin|padding|width|height|max|min|offset/,n={cssFloat:1,styleFloat:1,"float":1};g.get=function(b,c){var d=h.byId(b),e=arguments.length;if(2==e&&"opacity"==c)return m(d);c=n[c]?"cssFloat"in d.style?"cssFloat":
"styleFloat":c;var f=g.getComputedStyle(d);return 1==e?f:a(d,c,f[c]||d.style[c])};g.set=function(a,c,d){var e=h.byId(a),f=arguments.length,k="opacity"==c;c=n[c]?"cssFloat"in e.style?"cssFloat":"styleFloat":c;if(3==f)return k?b(e,d):e.style[c]=d;for(var m in c)g.set(a,m,c[m]);return g.getComputedStyle(e)};return g})},"dojo/dom-construct":function(){define("exports ./_base/kernel ./sniff ./_base/window ./dom ./dom-attr".split(" "),function(f,h,a,e,g,c){function k(a,b){var c=b.parentNode;c&&c.insertBefore(a,
b)}function m(a){if(a.canHaveChildren)try{a.innerHTML="";return}catch(c){}for(var d;d=a.lastChild;)b(d,a)}function b(b,c){b.firstChild&&m(b);c&&(a("ie")&&c.canHaveChildren&&"removeNode"in b?b.removeNode(!1):c.removeChild(b))}var d={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},p=/<\s*([\w\:]+)/,n={},l=0,t="__"+h._scopeName+
"ToDomId",q;for(q in d)d.hasOwnProperty(q)&&(h=d[q],h.pre="option"==q?'\x3cselect multiple\x3d"multiple"\x3e':"\x3c"+h.join("\x3e\x3c")+"\x3e",h.post="\x3c/"+h.reverse().join("\x3e\x3c/")+"\x3e");var r;8>=a("ie")&&(r=function(a){a.__dojo_html5_tested="yes";var b=s("div",{innerHTML:"\x3cnav\x3ea\x3c/nav\x3e",style:{visibility:"hidden"}},a.body);1!==b.childNodes.length&&"abbr article aside audio canvas details figcaption figure footer header hgroup mark meter nav output progress section summary time video".replace(/\b\w+\b/g,
function(b){a.createElement(b)});v(b)});f.toDom=function(b,c){c=c||e.doc;var g=c[t];g||(c[t]=g=++l+"",n[g]=c.createElement("div"));8>=a("ie")&&!c.__dojo_html5_tested&&c.body&&r(c);b+="";var f=b.match(p),h=f?f[1].toLowerCase():"",g=n[g];if(f&&d[h]){f=d[h];g.innerHTML=f.pre+b+f.post;for(f=f.length;f;--f)g=g.firstChild}else g.innerHTML=b;if(1==g.childNodes.length)return g.removeChild(g.firstChild);for(h=c.createDocumentFragment();f=g.firstChild;)h.appendChild(f);return h};f.place=function(a,b,c){b=g.byId(b);
"string"==typeof a&&(a=/^\s*</.test(a)?f.toDom(a,b.ownerDocument):g.byId(a));if("number"==typeof c){var d=b.childNodes;!d.length||d.length<=c?b.appendChild(a):k(a,d[0>c?0:c])}else switch(c){case "before":k(a,b);break;case "after":c=a;(d=b.parentNode)&&(d.lastChild==b?d.appendChild(c):d.insertBefore(c,b.nextSibling));break;case "replace":b.parentNode.replaceChild(a,b);break;case "only":f.empty(b);b.appendChild(a);break;case "first":if(b.firstChild){k(a,b.firstChild);break}default:b.appendChild(a)}return a};
var s=f.create=function(a,b,d,h){var l=e.doc;d&&(d=g.byId(d),l=d.ownerDocument);"string"==typeof a&&(a=l.createElement(a));b&&c.set(a,b);d&&f.place(a,d,h);return a};f.empty=function(a){m(g.byId(a))};var v=f.destroy=function(a){(a=g.byId(a))&&b(a,a.parentNode)}})},"dojo/dom-attr":function(){define("exports ./sniff ./_base/lang ./dom ./dom-style ./dom-prop".split(" "),function(f,h,a,e,g,c){function k(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified}var m={innerHTML:1,className:1,
htmlFor:h("ie"),value:1},b={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};f.has=function(a,g){var f=g.toLowerCase();return m[c.names[f]||g]||k(e.byId(a),b[f]||g)};f.get=function(d,g){d=e.byId(d);var f=g.toLowerCase(),h=c.names[f]||g,t=d[h];if(m[h]&&"undefined"!=typeof t||"href"!=h&&("boolean"==typeof t||a.isFunction(t)))return t;f=b[f]||g;return k(d,f)?d.getAttribute(f):null};f.set=function(d,h,k){d=e.byId(d);if(2==arguments.length){for(var l in h)f.set(d,l,h[l]);return d}l=
h.toLowerCase();var t=c.names[l]||h,q=m[t];if("style"==t&&"string"!=typeof k)return g.set(d,k),d;if(q||"boolean"==typeof k||a.isFunction(k))return c.set(d,h,k);d.setAttribute(b[l]||h,k);return d};f.remove=function(a,c){e.byId(a).removeAttribute(b[c.toLowerCase()]||c)};f.getNodeProp=function(a,g){a=e.byId(a);var f=g.toLowerCase(),h=c.names[f]||g;if(h in a&&"href"!=h)return a[h];f=b[f]||g;return k(a,f)?a.getAttribute(f):null}})},"dojo/dom-prop":function(){define("exports ./_base/kernel ./sniff ./_base/lang ./dom ./dom-style ./dom-construct ./_base/connect".split(" "),
function(f,h,a,e,g,c,k,m){var b={},d=0,p=h._scopeName+"attrid";f.names={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"};f.get=function(a,b){a=g.byId(a);var c=b.toLowerCase();return a[f.names[c]||b]};f.set=function(h,l,t){h=g.byId(h);if(2==arguments.length&&"string"!=typeof l){for(var q in l)f.set(h,q,l[q]);return h}q=l.toLowerCase();q=f.names[q]||l;if("style"==q&&"string"!=typeof t)return c.set(h,
t),h;if("innerHTML"==q)return a("ie")&&h.tagName.toLowerCase()in{col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1}?(k.empty(h),h.appendChild(k.toDom(t,h.ownerDocument))):h[q]=t,h;if(e.isFunction(t)){var r=h[p];r||(r=d++,h[p]=r);b[r]||(b[r]={});var s=b[r][q];if(s)m.disconnect(s);else try{delete h[q]}catch(v){}t?b[r][q]=m.connect(h,q,t):h[q]=null;return h}h[q]=t;return h}})},"dojo/_base/connect":function(){define("./kernel ../on ../topic ../aspect ./event ../mouse ./sniff ./lang ../keys".split(" "),
function(f,h,a,e,g,c,k,m){function b(a,b,d,g,l){g=m.hitch(d,g);if(!a||!a.addEventListener&&!a.attachEvent)return e.after(a||f.global,b,g,!0);"string"==typeof b&&"on"==b.substring(0,2)&&(b=b.substring(2));a||(a=f.global);if(!l)switch(b){case "keypress":b=t;break;case "mouseenter":b=c.enter;break;case "mouseleave":b=c.leave}return h(a,b,g,l)}function d(a){a.keyChar=a.charCode?String.fromCharCode(a.charCode):"";a.charOrCode=a.keyChar||a.keyCode}k.add("events-keypress-typed",function(){var a={charCode:0};
try{a=document.createEvent("KeyboardEvent"),(a.initKeyboardEvent||a.initKeyEvent).call(a,"keypress",!0,!0,null,!1,!1,!1,!1,9,3)}catch(b){}return 0==a.charCode&&!k("opera")});var p={106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39,229:113},n=k("mac")?"metaKey":"ctrlKey",l=function(a,b){var c=m.mixin({},a,b);d(c);c.preventDefault=function(){a.preventDefault()};c.stopPropagation=function(){a.stopPropagation()};return c},t;t=k("events-keypress-typed")?function(a,
b){var c=h(a,"keydown",function(a){var c=a.keyCode,d=13!=c&&32!=c&&(27!=c||!k("ie"))&&(48>c||90<c)&&(96>c||111<c)&&(186>c||192<c)&&(219>c||222<c)&&229!=c;if(d||a.ctrlKey){d=d?0:c;if(a.ctrlKey){if(3==c||13==c)return b.call(a.currentTarget,a);d=95<d&&106>d?d-48:!a.shiftKey&&65<=d&&90>=d?d+32:p[d]||d}c=l(a,{type:"keypress",faux:!0,charCode:d});b.call(a.currentTarget,c);if(k("ie"))try{a.keyCode=c.keyCode}catch(e){}}}),d=h(a,"keypress",function(a){var c=a.charCode;a=l(a,{charCode:32<=c?c:0,faux:!0});return b.call(this,
a)});return{remove:function(){c.remove();d.remove()}}}:k("opera")?function(a,b){return h(a,"keypress",function(a){var c=a.which;3==c&&(c=99);c=32>c&&!a.shiftKey?0:c;a.ctrlKey&&(!a.shiftKey&&65<=c&&90>=c)&&(c+=32);return b.call(this,l(a,{charCode:c}))})}:function(a,b){return h(a,"keypress",function(a){d(a);return b.call(this,a)})};var q={_keypress:t,connect:function(a,c,d,e,g){var f=arguments,h=[],l=0;h.push("string"==typeof f[0]?null:f[l++],f[l++]);var k=f[l+1];h.push("string"==typeof k||"function"==
typeof k?f[l++]:null,f[l++]);for(k=f.length;l<k;l++)h.push(f[l]);return b.apply(this,h)},disconnect:function(a){a&&a.remove()},subscribe:function(b,c,d){return a.subscribe(b,m.hitch(c,d))},publish:function(b,c){return a.publish.apply(a,[b].concat(c))},connectPublisher:function(a,b,c){var d=function(){q.publish(a,arguments)};return c?q.connect(b,c,d):q.connect(b,d)},isCopyKey:function(a){return a[n]}};q.unsubscribe=q.disconnect;m.mixin(f,q);return q})},"dojo/_base/event":function(){define(["./kernel",
"../on","../has","../dom-geometry"],function(f,h,a,e){if(h._fixEvent){var g=h._fixEvent;h._fixEvent=function(a,c){(a=g(a,c))&&e.normalizeEvent(a);return a}}var c={fix:function(a,c){return h._fixEvent?h._fixEvent(a,c):a},stop:function(c){a("dom-addeventlistener")||c&&c.preventDefault?(c.preventDefault(),c.stopPropagation()):(c=c||window.event,c.cancelBubble=!0,h._preventDefault.call(c))}};f.fixEvent=c.fix;f.stopEvent=c.stop;return c})},"dojo/mouse":function(){define(["./_base/kernel","./on","./has",
"./dom","./_base/window"],function(f,h,a,e,g){function c(a,g){var b=function(b,c){return h(b,a,function(a){if(g)return g(a,c);if(!e.isDescendant(a.relatedTarget,b))return c.call(this,a)})};b.bubble=function(b){return c(a,function(a,c){var e=b(a.target),g=a.relatedTarget;if(e&&e!=(g&&1==g.nodeType&&b(g)))return c.call(e,a)})};return b}a.add("dom-quirks",g.doc&&"BackCompat"==g.doc.compatMode);a.add("events-mouseenter",g.doc&&"onmouseenter"in g.doc.createElement("div"));a.add("events-mousewheel",g.doc&&
"onmousewheel"in g.doc);g=a("dom-quirks")&&a("ie")||!a("dom-addeventlistener")?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(a,c){return a.button&c},isLeft:function(a){return a.button&1},isMiddle:function(a){return a.button&4},isRight:function(a){return a.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(a,c){return a.button==c},isLeft:function(a){return 0==a.button},isMiddle:function(a){return 1==a.button},isRight:function(a){return 2==a.button}};f.mouseButtons=g;f=a("events-mousewheel")?"mousewheel":
function(a,c){return h(a,"DOMMouseScroll",function(a){a.wheelDelta=-a.detail;c.call(this,a)})};return{_eventHandler:c,enter:c("mouseover"),leave:c("mouseout"),wheel:f,isLeft:g.isLeft,isMiddle:g.isMiddle,isRight:g.isRight}})},"dojo/_base/sniff":function(){define(["./kernel","./lang","../sniff"],function(f,h,a){f._name="browser";h.mixin(f,{isBrowser:!0,isFF:a("ff"),isIE:a("ie"),isKhtml:a("khtml"),isWebKit:a("webkit"),isMozilla:a("mozilla"),isMoz:a("mozilla"),isOpera:a("opera"),isSafari:a("safari"),
isChrome:a("chrome"),isMac:a("mac"),isIos:a("ios"),isAndroid:a("android"),isWii:a("wii"),isQuirks:a("quirks"),isAir:a("air")});return a})},"dojo/keys":function(){define(["./_base/kernel","./sniff"],function(f,h){return f.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:h("webkit")?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,
SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,UP_DPAD:175,DOWN_DPAD:176,LEFT_DPAD:177,RIGHT_DPAD:178,copyKey:h("mac")&&!h("air")?h("safari")?91:224:17}})},"waf/initialisers/compatibility":function(){define(function(){"function"!==
typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});Array.prototype.indexOf||(Array.prototype.indexOf=function(f,h){for(var a=h||0,e=this.length;a<e;a++)if(this[a]===f)return a;return-1});window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(f){window.setTimeout(f,1E3/60)}})},"waf/initialisers/device_detection":function(){require(["dojo/query","dojo/dom-class","dojo/domReady!"],
function(f,h){-1<navigator.userAgent.indexOf("BB10")&&h.add(f("html")[0],"bb10");h.contains(f("html")[0],"lt-ie9")&&(window.Bank of America Corporation.isIE8=!0)})},"dojo/dom-class":function(){define(["./_base/lang","./_base/array","./dom"],function(f,h,a){function e(a){if("string"==typeof a||a instanceof String){if(a&&!c.test(a))return k[0]=a,k;a=a.split(c);a.length&&!a[0]&&a.shift();a.length&&!a[a.length-1]&&a.pop();return a}return!a?[]:h.filter(a,function(a){return a})}var g,c=/\s+/,k=[""],m={};return g={contains:function(b,
c){return 0<=(" "+a.byId(b).className+" ").indexOf(" "+c+" ")},add:function(b,c){b=a.byId(b);c=e(c);var g=b.className,f,g=g?" "+g+" ":" ";f=g.length;for(var h=0,k=c.length,m;h<k;++h)(m=c[h])&&0>g.indexOf(" "+m+" ")&&(g+=m+" ");f<g.length&&(b.className=g.substr(1,g.length-2))},remove:function(b,c){b=a.byId(b);var g;if(void 0!==c){c=e(c);g=" "+b.className+" ";for(var h=0,l=c.length;h<l;++h)g=g.replace(" "+c[h]+" "," ");g=f.trim(g)}else g="";b.className!=g&&(b.className=g)},replace:function(b,c,e){b=
a.byId(b);m.className=b.className;g.remove(m,e);g.add(m,c);b.className!==m.className&&(b.className=m.className)},toggle:function(b,c,f){b=a.byId(b);if(void 0===f){c=e(c);for(var h=0,l=c.length,k;h<l;++h)k=c[h],g[g.contains(b,k)?"remove":"add"](b,k)}else g[f?"add":"remove"](b,c);return f}}})},"waf/initialisers/feature_detection":function(){require(["dojo/query","dojo/dom-class","dojo/dom-construct","dojo/domReady!"],function(f,h,a){f=f("html")[0];a=a.create("a");a.style.cssText="width:"+" -webkit- -moz- -o- -ms- ".split(" ").join("calc(10px);width:");
a.style.length||h.add(f,"no-calc")})},"waf/initialisers/append_around":function(){require(["dojo/query","waf/plugins/append_around","dojo/domReady!"],function(f,h){var a=f(".append-around");if(a.length)for(var e=0;e<a.length;e++)h.appendAround(f(a[e]))})},"waf/plugins/append_around":function(){define("dojo/query dojo/dom-style dojo/dom-attr dojo/on dojo/NodeList-traverse dojo/NodeList-manipulate".split(" "),function(f,h,a,e){return{appendAround:function(g){function c(){if("none"===h.getComputedStyle(b).display){var c=
0;f("["+m+"\x3d'"+a.get(b,m)+"']").forEach(function(a){"none"!==h.getComputedStyle(a).display&&!c&&(k.appendTo(a),c++,b=a)})}}var k=f(g),m="data-set",b=k.parent()[0];c();e(window,"resize",c)}}})},"dojo/NodeList-traverse":function(){define(["./query","./_base/lang","./_base/array"],function(f,h,a){var e=f.NodeList;h.extend(e,{_buildArrayFromCallback:function(a){for(var c=[],e=0;e<this.length;e++){var f=a.call(this[e],this[e],c);f&&(c=c.concat(f))}return c},_getUniqueAsNodeList:function(e){for(var c=
[],f=0,h;h=e[f];f++)1==h.nodeType&&-1==a.indexOf(c,h)&&c.push(h);return this._wrap(c,null,this._NodeListCtor)},_getUniqueNodeListWithParent:function(a,c){var e=this._getUniqueAsNodeList(a),e=c?f._filterResult(e,c):e;return e._stash(this)},_getRelatedUniqueNodes:function(a,c){return this._getUniqueNodeListWithParent(this._buildArrayFromCallback(c),a)},children:function(a){return this._getRelatedUniqueNodes(a,function(a,e){return h._toArray(a.childNodes)})},closest:function(a,c){return this._getRelatedUniqueNodes(null,
function(e,h){do if(f._filterResult([e],a,c).length)return e;while(e!=c&&(e=e.parentNode)&&1==e.nodeType);return null})},parent:function(a){return this._getRelatedUniqueNodes(a,function(a,e){return a.parentNode})},parents:function(a){return this._getRelatedUniqueNodes(a,function(a,e){for(var g=[];a.parentNode;)a=a.parentNode,g.push(a);return g})},siblings:function(a){return this._getRelatedUniqueNodes(a,function(a,e){for(var g=[],b=a.parentNode&&a.parentNode.childNodes,d=0;d<b.length;d++)b[d]!=a&&
g.push(b[d]);return g})},next:function(a){return this._getRelatedUniqueNodes(a,function(a,e){for(var g=a.nextSibling;g&&1!=g.nodeType;)g=g.nextSibling;return g})},nextAll:function(a){return this._getRelatedUniqueNodes(a,function(a,e){for(var g=[],b=a;b=b.nextSibling;)1==b.nodeType&&g.push(b);return g})},prev:function(a){return this._getRelatedUniqueNodes(a,function(a,e){for(var g=a.previousSibling;g&&1!=g.nodeType;)g=g.previousSibling;return g})},prevAll:function(a){return this._getRelatedUniqueNodes(a,
function(a,e){for(var g=[],b=a;b=b.previousSibling;)1==b.nodeType&&g.push(b);return g})},andSelf:function(){return this.concat(this._parent)},first:function(){return this._wrap(this[0]&&[this[0]]||[],this)},last:function(){return this._wrap(this.length?[this[this.length-1]]:[],this)},even:function(){return this.filter(function(a,c){return 0!=c%2})},odd:function(){return this.filter(function(a,c){return 0==c%2})}});return e})},"dojo/NodeList-manipulate":function(){define(["./query","./_base/lang",
"./_base/array","./dom-construct","./NodeList-dom"],function(f,h,a,e){function g(a){var c="";a=a.childNodes;for(var e=0,f;f=a[e];e++)8!=f.nodeType&&(c=1==f.nodeType?c+g(f):c+f.nodeValue);return c}function c(a){for(;a.childNodes[0]&&1==a.childNodes[0].nodeType;)a=a.childNodes[0];return a}function k(a,c){"string"==typeof a?(a=e.toDom(a,c&&c.ownerDocument),11==a.nodeType&&(a=a.childNodes[0])):1==a.nodeType&&a.parentNode&&(a=a.cloneNode(!1));return a}var m=f.NodeList;h.extend(m,{_placeMultiple:function(a,
c){for(var g="string"==typeof a||a.nodeType?f(a):a,h=[],l=0;l<g.length;l++)for(var k=g[l],m=this.length,r=m-1,s;s=this[r];r--)0<l&&(s=this._cloneNode(s),h.unshift(s)),r==m-1?e.place(s,k,c):k.parentNode.insertBefore(s,k),k=s;h.length&&(h.unshift(0),h.unshift(this.length-1),Array.prototype.splice.apply(this,h));return this},innerHTML:function(a){return arguments.length?this.addContent(a,"only"):this[0].innerHTML},text:function(a){if(arguments.length){for(var c=0,f;f=this[c];c++)1==f.nodeType&&(e.empty(f),
f.appendChild(f.ownerDocument.createTextNode(a)));return this}for(var h="",c=0;f=this[c];c++)h+=g(f);return h},val:function(b){if(arguments.length){for(var c=h.isArray(b),e=0,g;g=this[e];e++){var f=g.nodeName.toUpperCase(),k=g.type,m=c?b[e]:b;if("SELECT"==f){f=g.options;for(k=0;k<f.length;k++){var r=f[k];r.selected=g.multiple?-1!=a.indexOf(b,r.value):r.value==m}}else"checkbox"==k||"radio"==k?g.checked=g.value==m:g.value=m}return this}if((g=this[0])&&1==g.nodeType){b=g.value||"";if("SELECT"==g.nodeName.toUpperCase()&&
g.multiple){b=[];f=g.options;for(k=0;k<f.length;k++)r=f[k],r.selected&&b.push(r.value);b.length||(b=null)}return b}},append:function(a){return this.addContent(a,"last")},appendTo:function(a){return this._placeMultiple(a,"last")},prepend:function(a){return this.addContent(a,"first")},prependTo:function(a){return this._placeMultiple(a,"first")},after:function(a){return this.addContent(a,"after")},insertAfter:function(a){return this._placeMultiple(a,"after")},before:function(a){return this.addContent(a,
"before")},insertBefore:function(a){return this._placeMultiple(a,"before")},remove:m.prototype.orphan,wrap:function(a){if(this[0]){a=k(a,this[0]);for(var d=0,e;e=this[d];d++){var g=this._cloneNode(a);e.parentNode&&e.parentNode.replaceChild(g,e);c(g).appendChild(e)}}return this},wrapAll:function(a){if(this[0]){a=k(a,this[0]);this[0].parentNode.replaceChild(a,this[0]);a=c(a);for(var d=0,e;e=this[d];d++)a.appendChild(e)}return this},wrapInner:function(a){if(this[0]){a=k(a,this[0]);for(var c=0;c<this.length;c++){var e=
this._cloneNode(a);this._wrap(h._toArray(this[c].childNodes),null,this._NodeListCtor).wrapAll(e)}}return this},replaceWith:function(a){a=this._normalize(a,this[0]);for(var c=0,e;e=this[c];c++)this._place(a,e,"before",0<c),e.parentNode.removeChild(e);return this},replaceAll:function(a){a=f(a);for(var c=this._normalize(this,this[0]),e=0,g;g=a[e];e++)this._place(c,g,"before",0<e),g.parentNode.removeChild(g);return this},clone:function(){for(var a=[],c=0;c<this.length;c++)a.push(this._cloneNode(this[c]));
return this._wrap(a,this,this._NodeListCtor)}});m.prototype.html||(m.prototype.html=m.prototype.innerHTML);return m})},"dojo/NodeList-dom":function(){define("./_base/kernel ./query ./_base/array ./_base/lang ./dom-class ./dom-construct ./dom-geometry ./dom-attr ./dom-style".split(" "),function(f,h,a,e,g,c,k,m,b){function d(a){return function(b,c,d){return 2==arguments.length?a["string"==typeof c?"get":"set"](b,c):a.set(b,c,d)}}var p=function(a){return 1==a.length&&"string"==typeof a[0]},n=function(a){var b=
a.parentNode;b&&b.removeChild(a)},l=h.NodeList,t=l._adaptWithCondition,q=l._adaptAsForEach,r=l._adaptAsMap;e.extend(l,{_normalize:function(a,b){var d=!0===a.parse;if("string"==typeof a.template){var g=a.templateFunc||f.string&&f.string.substitute;a=g?g(a.template,a):a}g=typeof a;"string"==g||"number"==g?(a=c.toDom(a,b&&b.ownerDocument),a=11==a.nodeType?e._toArray(a.childNodes):[a]):e.isArrayLike(a)?e.isArray(a)||(a=e._toArray(a)):a=[a];d&&(a._runParse=!0);return a},_cloneNode:function(a){return a.cloneNode(!0)},
_place:function(a,b,d,e){if(!(1!=b.nodeType&&"only"==d))for(var g,h=a.length,l=h-1;0<=l;l--){var k=e?this._cloneNode(a[l]):a[l];if(a._runParse&&f.parser&&f.parser.parse){g||(g=b.ownerDocument.createElement("div"));g.appendChild(k);f.parser.parse(g);for(k=g.firstChild;g.firstChild;)g.removeChild(g.firstChild)}l==h-1?c.place(k,b,d):b.parentNode.insertBefore(k,b);b=k}},position:r(k.position),attr:t(d(m),p),style:t(d(b),p),addClass:q(g.add),removeClass:q(g.remove),toggleClass:q(g.toggle),replaceClass:q(g.replace),
empty:q(c.empty),removeAttr:q(m.remove),marginBox:r(k.getMarginBox),place:function(a,b){var d=h(a)[0];return this.forEach(function(a){c.place(a,d,b)})},orphan:function(a){return(a?h._filterResult(this,a):this).forEach(n)},adopt:function(a,b){return h(a).place(this[0],b)._stash(this)},query:function(a){if(!a)return this;var b=new l;this.map(function(c){h(a,c).forEach(function(a){void 0!==a&&b.push(a)})});return b._stash(this)},filter:function(b){var c=arguments,d=this,e=0;if("string"==typeof b){d=
h._filterResult(this,c[0]);if(1==c.length)return d._stash(this);e=1}return this._wrap(a.filter(d,c[e],c[e+1]),this)},addContent:function(a,b){a=this._normalize(a,this[0]);for(var d=0,e;e=this[d];d++)a.length?this._place(a,e,b,0<d):c.empty(e);return this}});return l})},"waf/initialisers/responsive_images":function(){require(["waf/plugins/responsive_images","dojo/domReady!"],function(f){window.responsive_images=new f(".image-placeholder",{availableWidths:[240,320,460,580,640,880,1180,1520],onImagesReplaced:function(){window.Bank of America Corporation.is_responsive_images_loaded=
!0}})})},"waf/plugins/responsive_images":function(){define(["dojo/_base/window","dojo/query","dojo/topic"],function(f,h,a){function e(a,b){for(var c=0,d=a.length,e=[];c<d;c++)e[c]=b(a[c],c);return e}function g(a){return a}function c(a,d){var f=this,n=p;d=d||{};void 0!==a&&("string"===typeof a?(d.selector=a,a=void 0):"undefined"===typeof a.length&&(d=a,a=void 0));this.imagesOffScreen=[];this.viewportHeight=n.documentElement.clientHeight;this.selector=d.selector||".delayed-image-load";this.className=
d.className||"image-replace";this.gif=n.createElement("img");this.gif.src="data:image/gif;base64,R0lGODlhEAAJAIAAAP///wAAACH5BAEAAAAALAAAAAAQAAkAAAIKhI+py+0Po5yUFQA7";this.gif.className=this.className;this.gif.alt="";this.scrollDelay=d.scrollDelay||250;this.onResize=d.hasOwnProperty("onResize")?d.onResize:!0;this.lazyload=d.hasOwnProperty("lazyload")?d.lazyload:!1;this.scrolled=!1;this.availablePixelRatios=d.availablePixelRatios||[1,2];this.availableWidths=d.availableWidths||k;this.onImagesReplaced=
d.onImagesReplaced||function(){};this.widthsMap={};this.refreshPixelRatio();this.widthInterpolator=d.widthInterpolator||g;"function"!==typeof this.availableWidths&&("number"===typeof this.availableWidths.length?this.widthsMap=c.createWidthsMap(this.availableWidths,this.widthInterpolator):(this.widthsMap=this.availableWidths,this.availableWidths=m(this.availableWidths)),this.availableWidths=this.availableWidths.sort(function(a,b){return a-b}));a?(this.divs=e(a,g),this.selector=null):this.divs=e(h(this.selector),
g);this.changeDivsToEmptyImages();b(function(){f.init()})}var k,m,b,d,p=f.doc,n=f.global;b=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(a){n.setTimeout(a,1E3/60)};d=function(){return p.addEventListener?function(a,b,c){return a.addEventListener(b,c,!1)}:function(a,b,c){return a.attachEvent("on"+b,c)}}();k=[96,130,165,200,235,270,304,340,375,410,445,485,520,555,590,625,660,695,736];m="function"===typeof Object.keys?Object.keys:function(a){var b=[],c;for(c in a)b.push(c);
return b};c.prototype.scrollCheck=function(){this.scrolled&&(this.imagesOffScreen.length||n.clearInterval(this.interval),this.divs=this.imagesOffScreen.slice(0),this.imagesOffScreen.length=0,this.changeDivsToEmptyImages(),this.scrolled=!1)};c.prototype.init=function(){this.initialized=!0;this.checkImagesNeedReplacing(this.divs);this.onResize&&this.registerResizeEvent();this.lazyload&&this.registerScrollEvent()};c.prototype.createGif=function(a){if(a.className.match(RegExp("(^| )"+this.className+"( |$)")))return a;
var b=this.gif.cloneNode(!1);b.width=a.getAttribute("data-width");var c=a.getAttribute("data-class");b.className=(c?c+" ":"")+this.className;b.setAttribute("data-src",a.getAttribute("data-src"));b.setAttribute("alt",a.getAttribute("data-alt")||this.gif.alt);b.setAttribute("data-mrp",a.getAttribute("data-mrp"));a.parentNode.replaceChild(b,a);return b};c.prototype.changeDivsToEmptyImages=function(){var a=this;e(this.divs,function(b,c){a.lazyload?a.isThisElementOnScreen(b)?a.divs[c]=a.createGif(b):a.imagesOffScreen.push(b):
a.divs[c]=a.createGif(b)});this.initialized&&this.checkImagesNeedReplacing(this.divs)};c.prototype.isThisElementOnScreen=function(a){var b=c.getPageOffset(),d=0;if(a.offsetParent){do d+=a.offsetTop;while(a=a.offsetParent)}return d<this.viewportHeight+b?!0:!1};c.prototype.checkImagesNeedReplacing=function(a){var b=this;this.isResizing||(this.isResizing=!0,this.refreshPixelRatio(),e(a,function(a){b.replaceImagesBasedOnScreenDimensions(a)}),this.isResizing=!1,this.onImagesReplaced(a))};c.prototype.determineAppropriateHash=
function(a,b){if(""!==a.getAttribute("data-mrp")){var c=JSON.parse(a.getAttribute("data-mrp"));if(null!==c)return c[b]}};c.prototype.replaceImagesBasedOnScreenDimensions=function(a){var b,c;b="function"===typeof this.availableWidths?this.availableWidths(a):this.determineAppropriateResolution(a);c=this.determineAppropriateHash(a,b);b=this.changeImageSrcToUseNewImageDimensions(a.getAttribute("data-src"),b);void 0!==c&&(b=b+"\x26hash\x3d"+c);a.src=b};c.prototype.determineAppropriateResolution=function(a){return c.getClosestValue(a.clientWidth,
this.availableWidths)};c.prototype.refreshPixelRatio=function(){this.devicePixelRatio=c.getClosestValue(c.getPixelRatio(),this.availablePixelRatios)};c.prototype.changeImageSrcToUseNewImageDimensions=function(a,b){return a.replace(/{width}/g,c.transforms.width(b,this.widthsMap)).replace(/{pixel_ratio}/g,c.transforms.pixelRatio(this.devicePixelRatio))};c.getPixelRatio=function(a){return(a||n).devicePixelRatio||1};c.createWidthsMap=function(a,b){for(var c={},d=a.length;d--;)c[a[d]]=b(a[d]);return c};
c.transforms={pixelRatio:function(a){return 1===a?"":"-"+a+"x"},width:function(a,b){return b[a]||a}};c.getClosestValue=function(a,b){for(var c=b.length,d=b[c-1];c--;)a<=b[c]&&(d=b[c]);return d};c.prototype.registerResizeEvent=function(){var b=this;d(n,"resize",function(){b.checkImagesNeedReplacing(b.divs)});a.subscribe("responsive_images/resize",function(){b.checkImagesNeedReplacing(b.divs)})};c.prototype.registerScrollEvent=function(){var a=this;this.scrolled=!1;this.interval=n.setInterval(function(){a.scrollCheck()},
a.scrollDelay);d(n,"scroll",function(){a.scrolled=!0})};c.getPageOffsetGenerator=function(a){return a?function(){return n.pageYOffset}:function(){return p.documentElement.scrollTop}};c.getPageOffset=c.getPageOffsetGenerator(Object.prototype.hasOwnProperty.call(n,"pageYOffset"));c.applyEach=e;return c})},"waf/initialisers/tracking":function(){require("dojo/_base/array dojo/query dojo/topic dojo/dom-attr dojo/dom-class dojo/domReady!".split(" "),function(f,h,a,e,g){function c(a,c){m&&console.log(a);
window.TMS&&(c?window.TMS.trackView(a):window.TMS.trackEvent(a))}var k,m=!1;a.subscribe("filter_pagination",function(a){c({event_type:"click",event_category:"tool",event_action:"PaginationClick",tool_name:"Insight\x26ResearchPagination",Form_field_1:"Pagination : "+a.item_text},!0)});a.subscribe("filter_article_link",function(a){c({event_type:"click",event_category:"content",event_action:"onsite",event_content:"Insight\x26research | "+a.item_type+" | "+a.item_text,pages_url:a.item_href,search_scope:a.item_scope},
!0)});a.subscribe("filter_submit",function(a){c({event_type:"click",event_category:"tool",event_action:"SubmitSelection",tool_name:"FindInsights",pages_url:a.item_element},!0)});a.subscribe("filter_radio",function(a){c({event_type:"click",event_category:"tool",event_action:"ContentTypeChosen",event_content:"Insight\x26ResearchSelector",form_field_1:"ContentType : "+a.item_element},!0)});a.subscribe("filter_checkbox",function(a,d){c({event_type:"click",event_category:"tool",event_action:"TopicChosen",
event_content:"Insight\x26ResearchSelector",form_field_1:a.form_field_1+" : "+a.item_element},!0)});a.subscribe("insight_link",function(a){c({event_type:"click",event_category:"content",event_action:"onsite",event_content:"Insight\x26Research | "+a.item_element.innerText||a.item_element.textContent,pages_url:a.item_element.href},!0)});a.subscribe("vertical_tabs_teaser",function(a){c({event_type:"click",event_category:"content",event_action:"onsite",event_content:"Products\x26solutions | "+a.item_tab+
" | "+a.item_element.innerText||a.item_element.textContent,pages_url:a.item_element.href},!0)});a.subscribe("vertical_tabs_item",function(a){c({event_type:"click",event_category:"content",event_action:"onsite",event_content:"Products\x26solutions | "+a.item_tab+" | "+a.item_element.innerText||a.item_element.textContent,pages_url:a.item_element.href},!0)});a.subscribe("vertical_tabs",function(a){c({event_type:"click",event_category:"content",event_action:"onsite",event_content:"Products\x26solutions | "+
a.item_element.innerText||a.item_element.textContent},!0)});a.subscribe("new_nav_click",function(a){c({event_type:"click",event_category:"content",event_action:"tab",event_content:a.item_element.innerText||a.item_element.textContent},!0)});a.subscribe("video_play",function(a){m&&console.log(a);c({event_type:"click",event_category:"video",event_action:"play",video_id:a.src},!1)});a.subscribe("video_stop",function(a){m&&console.log(a)});a.subscribe("video_end",function(a){m&&console.log(a)});a.subscribe("video_progress",
function(a){m&&console.log(a);c({event_type:"click",event_category:"video",event_action:"interval",event_content:a.percent,video_id:a.src,video_duration:a.duration},!1)});a.subscribe("video_progress_complete",function(a){m&&console.log(a);c({event_type:"click",event_category:"video",event_action:"interval",event_content:"100",video_id:video_id,video_duration:a.duration},!1)});a.subscribe("request_callback",function(a){});a.subscribe("carousel",function(a){});a.subscribe("rtc/change_slide/end",function(a,
d){"email"===d?"business_interests"===a?c({event_type:"page",event_category:"tool",event_action:"ContactUsForm",tool_name:"ContactUsForm",page_url:"email-us/business-details/",page_title:"Email Us: Business Details",funnel_name:"email us",funnel_step:"2"},!0):"thank_you"===a?c({event_type:"page",event_category:"tool",event_action:"ContactUsForm",page_title:"Email Us: Thank you",page_url:"/email-us/thank-you",tool_name:"ContactUsForm",funnel_name:"email us",funnel_step:"3"},!0):"error"===a&&c({event_type:"page",
event_category:"tool",event_action:"ContactUsForm",page_title:"Email Us incomplete",page_url:"/email-us/error",tool_name:"ContactUsForm"},!1):"callback"===d&&("business_interests"===a?c({event_type:"page",event_category:"tool",event_action:"ContactUsForm",tool_name:"ContactUsForm",page_url:"callback/business-details/",page_title:"Callback: Business Details",funnel_name:"Callback",funnel_step:"2"},!1):"thank_you"===a?c({event_type:"page",event_category:"tool",event_action:"ContactUsForm",page_title:"callback: Thank you",
page_url:"/callback/thank-you",tool_name:"ContactUsForm",funnel_name:"Callback",funnel_step:"3"},!1):"error"===a&&c({event_type:"page",event_category:"tool",event_action:"ContactUsForm",page_title:"Callback: incomplete",page_url:"/callback/error",tool_name:"ContactUsForm"},!1))});a.subscribe("mailto_link_click",function(a){c({event_type:"click",tool_name:"EmailUsMailto",event_action:"Email us mailto",rtc_mail_to:a.email_address,rtc_mail_to_subject:a.subject},!1)});a.subscribe("ayb_click_open",function(){c({event_type:"page",
event_category:"tool",event_action:"InterestsForm",tool_name:"InterestsForm ",page_url:"interests/business-details",page_name:"Interests:  Business Details"},!0)});a.subscribe("ayb_click_save",function(a,d){var e=[];f.forEach(a.international_markets,function(a){e.push(a.defaultValue)});"thank_you"===d?(c({event_type:"click",event_category:"tool",event_action:"InterestsComplete",tool_name:"InterestsForm ",business_revenue_range:a.revenue,business_industry:a.sector,business_location:a.business_location,
business_market_interest:e},!1),c({event_type:"page",event_category:"tool",event_action:"InterestsForm",tool_name:"InterestsForm ",page_url:"interests/thank-you",page_title:"Interests:  Thank you"},!0)):"error"===d&&c({tool_name:"InterestsForm",page_url:"interests/error/",page_title:"Interests: incomplete"},!1)});a.subscribe("login_link_click",function(a){c({event_type:"Click",event_category:"tool",event_action:"login",event_content:a.type_of_login,tool_name:"UserLogin"},!1)});a.subscribe("share/link_click",
function(a){c({event_type:"click",event_category:"share",event_action:a.service},!1)});a.subscribe("request_callback",function(a){c({event_type:"click",event_category:"tool",tool_name:"ContactUsForm",event_action:"email"===a.type?"email us complete":"request callback complete",business_inquiry:""===a["other-topic"]?a.topic:"other topic",business_name:a.business_name,business_revenue_range:a.turnover,business_industry:a.sector,business_location:a.location,business_market_interest:a.interested_markets},
!1)});a.subscribe("contact/link_click",function(a){var d;a=a.name;"phone"===a?d="Contact us|Phone":"email"===a?d="Contact us|Email us":"branch"===a?d="Contact us|Find branch":"callback"===a&&(d="Contact us|Call back");void 0!==d&&(c({event_type:"click",event_category:"tool",event_action:d,tool_name:"ContactUs"},!1),c({event_type:"page",event_category:"tool",tool_name:"ContactUsForm",event_action:"ContactUsForm",page_url:"email-us/user-detalis/",page_title:"Email Us: User details",funnel_name:"email us",
funnel_step:"1"},!0))});a.subscribe("rtc_show",function(a){a=a.type;"callback"===a?c({tool_name:"ContactUsForm",page_url:"callback/user-details/",page_title:"Callback: User details",funnel_name:"Callback",funnel_step:"1"},!1):"email"===a&&c({tool_name:"ContactUsForm",page_url:"email-us/user-details/",page_title:"Email Us: User details",funnel_name:"email us",funnel_step:"1"},!1)});a.subscribe("fx_calculator",function(a){c({event_type:"click",event_category:"tool",event_action:"FXCalculatorUsed",tool_name:"fxcalculator",
order_total:a.outVal,country_code:a.outCur,exchange_rate:a.rate,transaction_currency_pair:a.currencyPair},!1)});a.subscribe("branch_finder/search",function(a){c({event_type:"click",event_category:"tool",tool_name:"branchLocator",event_action:a.trigger,search_term:a.location,search_results:a.number_of_results,search_scope:a.filters.join("|")},!1);k=a});a.subscribe("branch_finder/view_branch_details",function(a){a=h(".branch-description__branch-name",a.branch_details_element)[0];a=a.innerText||a.textContent;
c({event_type:"click",event_category:"tool",tool_name:"branchLocator",event_action:k.trigger,branch_selected:a,page_url:document.URL+"/"+a,page_title:"Branch finder: "+a},!1)});a.subscribe("search_results",function(a){});a.subscribe("external_link_lightbox/open",function(a){c({rtc_ip:window.location.host,page_url:document.URL,page_title:"Offsite Link Popup: "+a.label,event_action:"Offsite Link Popup: "+a.label,event_type:"exit_link",event_location:a.href},!1)});a.subscribe("external_link_lightbox/proceed",
function(a){c({rtc_ip:window.location.host,page_url:document.URL,page_title:"Offsite Link: "+a.label,event_action:"Offsite Link: "+a.label,event_type:"exit_link",event_location:a.href},!1)});a.subscribe("accordion.toggle_item",function(a){if(!a.is_open){var d=h(a.item_element).parent(".accordion"),d=g.contains(d[0],"accordion--rtc");a=h(".accordion__heading span",a.item_element)[0];a=a.innerText||a.textContent;d?c({event_type:"click",event_category:"tool",event_action:"ContactUsShown",tool_name:"ContactUs"},
!1):c({event_type:"click",event_category:"click",event_action:"accordian",event_content:a},!1)}});a.subscribe("accordion.link",function(a){c({event_type:"click",event_action:"News and media: "+a.item_element.innerText||a.item_element.textContent,event_location:a.item_element.href,page_url:document.URL},!1)});a.subscribe("masthead.link",function(a){c({event_type:"click",event_category:"click",event_action:"onsite",event_content:"Masthead: "+a.item_element.innerText||a.item_element.textContent,page_url:document.URL},
!1)});a.subscribe("masthead.logo",function(a){c({event_type:"click",event_action:"Masthead: Bank of America Corporation (logo)",event_location:a.item_element.href,page_url:document.URL},!1)});a.subscribe("promobox.link",function(a){c({event_type:"click",event_action:"Promo: "+a.item_element.innerText||a.item_element.textContent,event_location:a.item_element.href,page_url:document.URL},!1)});a.subscribe("tabordion.panel_click",function(a){c({event_type:"click",event_category:"click",event_action:"tab",event_content:"tabaudian|"+
a.active_item_number},!1)});a.subscribe("ask_andrew.submit_question",function(){c({event_type:"click",event_category:"tool",event_action:"QuestionRaised",tool_name:"AskAndrew"},!1)});a.subscribe("form_wizard.submit",function(a){c({event_type:"click",event_category:"tool",tool_name:"BusinessWizard",event_action:"Wizard complete",business_inquiry:a.topic,business_revenue_range:a.turnover,business_market_interest:a.interest},!1)})})},"waf/initialisers/ie7":function(){require("dojo/query dojo/dom-style dojo/dom-class waf/components/filter_select/base dojo/topic dojo/domReady!".split(" "),
function(f,h,a,e,g){function c(){m=f(".lt-ie8 .icon, .rtc__close-button");m.forEach(function(c){b=h.get(c,"wordSpacing");window.Bank of America Corporation.ie7[b]&&(c.innerHTML=p+window.Bank of America Corporation.ie7[b],a.add(c,"normalize-word-spacing"))})}function k(){d=f("blockquote p");d.forEach(function(a){a.innerHTML='"'+a.innerHTML+'"'})}a.contains(f("html")[0],"lt-ie8")&&(window.Bank of America Corporation.isIE7=!0);if(window.Bank of America Corporation.isIE7){var m,b,d,p="\x26#65279;";window.Bank of America Corporation.ie7={"-1px":"\x26#9654;","-2px":"\x26#10687;","-3px":"\x26#8220;","-4px":"\x26#8221;",
"-5px":"\x26#187;","-6px":"\x26#752;","-7px":"\x26#8964;","-8px":"\x26#60;","-9px":"\x26#62;","-10px":"\x26#8645;","-11px":"\x26#8644;","-12px":"\x26#8659;","-13px":"\x26#8634;","-14px":"\x26#116;","-15px":"\x26#102;","-16px":"\x26#103;","-17px":"\x26#108;","-18px":"\x26#9776;","-19px":"\x26#9873;","-20px":"\x26#9742;","-21px":"\x26#10697;","-22px":"\x26#9993;","-23px":"\x26#10148;","-24px":"\x26#8779;","-25px":"\x26#105;","-26px":"\x26#449;","-27px":"\x26#8811;","-28px":"\x26#8810;","-29px":"\x26#8814;",
"-30px":"\x26#10918;","-31px":"\x26#43;","-32px":"\x26#45;","-33px":"\x26#67;","-34px":"\x26#37;","-35px":"\x26#8962;","-36px":"\x26#1256;","-37px":"\x26#10686;","-38px":"\x26#9724;","-39px":"\x26#10004;","-40px":"\x26#9888;","-41px":"\x26#9099;","-42px":"\x26#10546;","-43px":"\x26#10531;","-44px":"\x26#8863;","-45px":"\x26#8635;","-46px":"\x26#8778;","-47px":"\x26#10000;","-48px":"\x26#8862;","-49px":"\x26#9899;","-50px":"\x26#9676;","-51px":"\x26#9636;","-52px":"\x26#9634;","-53px":"\x26#9865;",
"-54px":"\x26#9998;","-55px":"\x26#8595;","-56px":"\x26#58880;","-57px":"\x26#58881;","-58px":"\x26#58882;","-59px":"\x26#58883;","-60px":"\x26#58884;","-61px":"\x26#58885;","-62px":"\x26#58886;","-63px":"\x26#58887;","-64px":"\x26#58888;","-65px":"\x26#58889;","-66px":"\x26#58890;","-67px":"\x26#58891;","-68px":"\x26#58892;","-69px":"\x26#58893;","-70px":"\x26#8593;","-71px":"\x26#9022;"};c();k();g.subscribe("icons/set",c)}})},"waf/components/filter_select/base":function(){define("dojo/_base/declare waf/lib/node_handler waf/components/filter_select/utils waf/components/filter_select/collection waf/lib/language_dir dojo/dom-geometry dojo/query dojo/dom-attr dojo/on dojo/_base/array dojo/NodeList-data dojo/domReady!".split(" "),
function(f,h,a,e,g,c,k,m,b,d){var p=a.isMobile();k=k("[data-filterselect\x3d'true']");var n=0,l=0,t=f(null,{constructor:function(a,b){var c=this;this.items=a;this.slave=h.createSelect();this.suppressSearch=b;this.input=h.createTextInput();this.label=h.createLabel();this.span=h.createSpan();this.inputSlave=h.createDiv();this.setValue(this.items[0].value);this.slave.on("change",function(){c.setValue(c.slave.val())})},setPlaceholder:function(a){this.placeholder=a;return this},focusInput:function(){this.input[0].focus();
return this},toHTML:function(a){var b=this;a=this.node=h.createDiv().addClass("filter-select "+a);var c=h.createDiv().attr("data-view","desktop"),d=h.createDiv().attr("data-view","mobile"),e=h.createDiv().addClass("filter-select__input").appendTo(c),f=b.itemsWrap=h.createDiv().addClass("filter-select__items"),k=h.createDiv().addClass("filter-select__dropdown-button").html("\x3ci class\x3d'icon'\x3e\x3c/i\x3e").appendTo(c);this.node.on("mouseenter",function(){b.isMouseover=!0});this.node.on("mouseleave",
function(){b.isMouseover=!1});e.on("click",function(){b.focusInput()});k.on("click",function(){b.focusInput()});b.input.on("focus",function(){b.open();b.value&&b.setHighlightValue(b.value)});b.input.on("blur",function(){b.isMouseover||b.close()});b.input.on("keypress",function(a){var c=40===a.keyCode,d=38===a.keyCode;d?(a.preventDefault(),b.prev()):c&&b.next();if(d||c)b.isOpen||b.setValueOfHighlightItem()});b.input.on("keyup",function(a){var c=b.input.val(),d=40===a.keyCode,e=38===a.keyCode;a=13===
a.keyCode;var g=d||e;!g&&a?b.setValueOfHighlightItem().close():!g&&c&&!b.suppressSearch?b.match(c):e?b.prev():d?b.next():b.clearSearchMatchHighlighting();b.span[0].innerHTML+="!"});this.suppressSearch?(b.inputSlave.appendTo(e),b.input.style("position","absolute").style(g.relative_dir.left,"-9999px")):b.input.attr("placeholder",b.placeholder);b.input.attr("id","search-countries-"+n);b.label.attr("for","search-countries-"+n);b.label[0].innerHTML=window.Bank of America Corporation.translations.filter_select.label;b.span.attr("role",
"status");b.span.attr("aria-live","polite");b.span[0].innerHTML=l-1+" "+window.Bank of America Corporation.translations.filter_select.status;b.label.appendTo(e);b.input.appendTo(e);b.span.appendTo(e);b.items.each(function(a){var c=a.render().appendTo(f);c.on("mouseenter",function(){b.setHighlightValue(a.value,!0)});c.on("click",function(){b.setValueOfHighlightItem().close()});b.slave.append(h.createOption().val(a.value).html(a.label))});f.appendTo(c);b.slave.appendTo(d);p?d.appendTo(a):c.appendTo(a);return a},setValue:function(a){var b=
this.items.getItemByKeyValue("value",a);this.activeIndex=this.items.getIndexOf(b);this.setDisplayValue(b.label);this.value=a;this.changeHandler&&this.changeHandler(this);return this},getValue:function(){return this.value},setHighlightValue:function(a,b){var c=this.items.getItemByKeyValue("value",a);this.clearHighlightValue();this.highlightIndex=this.items.getIndexOf(c);c.setActive(!0);b||this.setItemsScroll(this.itemHeight*this.highlightIndex);return this},setValueOfHighlightItem:function(){this.setValue(this.getHighlightItem().value);
return this},clearHighlightValue:function(){this.items.each(function(a){a.setActive(!1)});return this},setItemsScroll:function(a){this.itemsWrap[0].scrollTop=a;return this},getItemsScroll:function(){return this.itemsWrap[0].scrollTop},next:function(){this.setHighlightValue(this.items[this.highlightIndex<this.items.length-1?this.highlightIndex+1:0].value);return this},prev:function(){this.setHighlightValue(this.items[0>=this.highlightIndex?this.items.length-1:this.highlightIndex-1].value);return this},
getActiveItem:function(){return this.items[this.activeIndex]},getHighlightItem:function(){return this.items[this.highlightIndex]},clearSearchMatchHighlighting:function(){this.items.each(function(a){a.node.html(a.label)});return this},match:function(a){var b=this,c=RegExp("\\b"+a,"i");b.clearHighlightValue();b.clearSearchMatchHighlighting();b.items.each(function(a){if(c.test(a.label))return a.node.html(a.label.replace(c,"\x3cspan data-role\x3d'highlight'\x3e"+a.label.match(c)+"\x3c/span\x3e")),b.setHighlightValue(a.value),
"break"});return this},setDisplayValue:function(b){this.suppressSearch?this.inputSlave.html(a.escape(b)):this.input.val(a.escape(b));return this},close:function(){this.setDisplayValue(this.getActiveItem().label);this.node.removeClass("filter-select--open");this.isOpen=!1;this.clearSearchMatchHighlighting();return this},open:function(){this.suppressSearch||this.setDisplayValue("");this.node.addClass("filter-select--open");this.isOpen=!0;this.itemHeight=c.getMarginBox(this.items[0].node[0]).h;this.itemsWrap.style("maxHeight",
this.itemHeight*this.maxView+"px");return this},setChangeHandler:function(a){this.changeHandler=a;return this},appendItem:function(a,b){this.items.append(new t.Item(a,b));return this},prependItem:function(a,b){this.items.prepend(new t.Item(a,b));return this},activeIndex:-1,highlightIndex:-1,value:null,isOpen:!1,isMouseover:!1,maxView:8,placeholder:window.Bank of America Corporation.translations.filter_select.placeholder});t.Item=f(null,{constructor:function(a,b){this.label=a;this.value=b;this.node=h.createDiv().html(this.label).addClass("filter-select-items__item")},
render:function(){return this.node},setActive:function(a){a?this.node.addClass("filter-select-items__item--active"):this.node.removeClass("filter-select-items__item--active");return this}});t.Items=f(e,{constructor:function(){}});d.forEach(k,function(c){var e=a.wrapNode(c),g="true"===m.get(c,"data-filterselect-suppresssearch")?!0:!1,f=m.get(c,"data-redirect-to"),h=m.get(c,"data-max-view"),k=m.get(c,"class"),p=new t.Items;d.forEach(e.children(),function(b){p.append(new t.Item(a.wrapNode(b).html(),
m.get(b,"value")));l++});g=new t(p,g);g.setChangeHandler(function(a){f?""!==a.value&&(window.location.href=decodeURI(f).replace(/\{value\}/,a.value)):(c.value=a.value,b.emit(c,"change",{bubbles:!0,cancelable:!0}))});h&&(g.maxView=h);e.after(g.toHTML(k));n++;l=0});return t})},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],function(f,h,a){function e(a,b){throw Error("declare"+(b?" "+b:"")+": "+a);}function g(a,b,c){var d,g,f,h,k,l,m,p=this._inherited=this._inherited||{};"string"==
typeof a&&(d=a,a=b,b=c);c=0;h=a.callee;(d=d||h.nom)||e("can't deduce a name to call inherited()",this.declaredClass);k=this.constructor._meta;f=k.bases;m=p.p;if(d!=y){if(p.c!==h&&(m=0,l=f[0],k=l._meta,k.hidden[d]!==h)){(g=k.chains)&&"string"==typeof g[d]&&e("calling chained method with inherited: "+d,this.declaredClass);do if(k=l._meta,g=l.prototype,k&&(g[d]===h&&g.hasOwnProperty(d)||k.hidden[d]===h))break;while(l=f[++m]);m=l?m:-1}if(l=f[++m])if(g=l.prototype,l._meta&&g.hasOwnProperty(d))c=g[d];else{h=
x[d];do if(g=l.prototype,(c=g[d])&&(l._meta?g.hasOwnProperty(d):c!==h))break;while(l=f[++m])}c=l&&c||x[d]}else{if(p.c!==h&&(m=0,(k=f[0]._meta)&&k.ctor!==h)){g=k.chains;for((!g||"manual"!==g.constructor)&&e("calling chained constructor with inherited",this.declaredClass);(l=f[++m])&&!((k=l._meta)&&k.ctor===h););m=l?m:-1}for(;(l=f[++m])&&!(c=(k=l._meta)?k.ctor:l););c=l&&c}p.c=c;p.p=m;if(c)return!0===b?c:c.apply(this,b||a)}function c(a,b){return"string"==typeof a?this.__inherited(a,b,!0):this.__inherited(a,
!0)}function k(a,b,c){var d=this.getInherited(a,b);if(d)return d.apply(this,c||b||a)}function m(a){for(var b=this.constructor._meta.bases,c=0,d=b.length;c<d;++c)if(b[c]===a)return!0;return this instanceof a}function b(b,c){for(var d in c)d!=y&&c.hasOwnProperty(d)&&(b[d]=c[d]);if(h("bug-for-in-skips-shadowed"))for(var e=a._extraNames,g=e.length;g;)d=e[--g],d!=y&&c.hasOwnProperty(d)&&(b[d]=c[d])}function d(a){v.safeMixin(this.prototype,a);return this}function p(a,b){return v([this].concat(a),b||{})}
function n(a,b){return function(){var c=arguments,d=c,e=c[0],g,f;f=a.length;var h;if(!(this instanceof c.callee))return s(c);if(b&&(e&&e.preamble||this.preamble)){h=Array(a.length);h[0]=c;for(g=0;;){if(e=c[0])(e=e.preamble)&&(c=e.apply(this,c)||c);e=a[g].prototype;(e=e.hasOwnProperty("preamble")&&e.preamble)&&(c=e.apply(this,c)||c);if(++g==f)break;h[g]=c}}for(g=f-1;0<=g;--g)e=a[g],(e=(f=e._meta)?f.ctor:e)&&e.apply(this,h?h[g]:c);(e=this.postscript)&&e.apply(this,d)}}function l(a,b){return function(){var c=
arguments,d=c,e=c[0];if(!(this instanceof c.callee))return s(c);b&&(e&&(e=e.preamble)&&(d=e.apply(this,d)||d),(e=this.preamble)&&e.apply(this,d));a&&a.apply(this,c);(e=this.postscript)&&e.apply(this,c)}}function t(a){return function(){var b=arguments,c=0,d,e;if(!(this instanceof b.callee))return s(b);for(;d=a[c];++c)if(d=(e=d._meta)?e.ctor:d){d.apply(this,b);break}(d=this.postscript)&&d.apply(this,b)}}function q(a,b,c){return function(){var d,e,g=0,f=1;c&&(g=b.length-1,f=-1);for(;d=b[g];g+=f)e=d._meta,
(d=(e?e.hidden:d.prototype)[a])&&d.apply(this,arguments)}}function r(a){A.prototype=a.prototype;a=new A;A.prototype=null;return a}function s(a){var b=a.callee,c=r(b);b.apply(c,a);return c}function v(f,h,k){"string"!=typeof f&&(k=h,h=f,f="");k=k||{};var s,A,I,L,H,D,F,C=1,R=h;if("[object Array]"==u.call(h)){C=f;I=[];L=[{cls:0,refs:[]}];D={};for(var K=1,J=h.length,N=0,O,V,T,S;N<J;++N){(O=h[N])?"[object Function]"!=u.call(O)&&e("mixin #"+N+" is not a callable constructor.",C):e("mixin #"+N+" is unknown. Did you use dojo.require to pull it in?",
C);V=O._meta?O._meta.bases:[O];T=0;for(O=V.length-1;0<=O;--O)S=V[O].prototype,S.hasOwnProperty("declaredClass")||(S.declaredClass="uniqName_"+B++),S=S.declaredClass,D.hasOwnProperty(S)||(D[S]={count:0,refs:[],cls:V[O]},++K),S=D[S],T&&T!==S&&(S.refs.push(T),++T.count),T=S;++T.count;L[0].refs.push(T)}for(;L.length;){T=L.pop();I.push(T.cls);for(--K;A=T.refs,1==A.length;){T=A[0];if(!T||--T.count){T=0;break}I.push(T.cls);--K}if(T){N=0;for(J=A.length;N<J;++N)T=A[N],--T.count||L.push(T)}}K&&e("can't build consistent linearization",
C);O=h[0];I[0]=O?O._meta&&O===I[I.length-O._meta.bases.length]?O._meta.bases.length:1:0;D=I;I=D[0];C=D.length-I;h=D[C]}else D=[0],h?"[object Function]"==u.call(h)?(I=h._meta,D=D.concat(I?I.bases:h)):e("base class is not a callable constructor.",f):null!==h&&e("unknown base class. Did you use dojo.require to pull it in?",f);if(h)for(A=C-1;;--A){s=r(h);if(!A)break;I=D[A];(I._meta?b:w)(s,I.prototype);L=new Function;L.superclass=h;L.prototype=s;h=s.constructor=L}else s={};v.safeMixin(s,k);I=k.constructor;
I!==x.constructor&&(I.nom=y,s.constructor=I);for(A=C-1;A;--A)(I=D[A]._meta)&&I.chains&&(F=w(F||{},I.chains));s["-chains-"]&&(F=w(F||{},s["-chains-"]));I=!F||!F.hasOwnProperty(y);D[0]=L=F&&"manual"===F.constructor?t(D):1==D.length?l(k.constructor,I):n(D,I);L._meta={bases:D,hidden:k,chains:F,parents:R,ctor:k.constructor};L.superclass=h&&h.prototype;L.extend=d;L.createSubclass=p;L.prototype=s;s.constructor=L;s.getInherited=c;s.isInstanceOf=m;s.inherited=z;s.__inherited=g;f&&(s.declaredClass=f,a.setObject(f,
L));if(F)for(H in F)s[H]&&("string"==typeof F[H]&&H!=y)&&(I=s[H]=q(H,D,"after"===F[H]),I.nom=H);return L}var w=a.mixin,x=Object.prototype,u=x.toString,A=new Function,B=0,y="constructor",z=f.config.isDebug?k:g;f.safeMixin=v.safeMixin=function(b,c){var d,e;for(d in c)if(e=c[d],(e!==x[d]||!(d in x))&&d!=y)"[object Function]"==u.call(e)&&(e.nom=d),b[d]=e;if(h("bug-for-in-skips-shadowed"))for(var g=a._extraNames,f=g.length;f;)if(d=g[--f],e=c[d],(e!==x[d]||!(d in x))&&d!=y)"[object Function]"==u.call(e)&&
(e.nom=d),b[d]=e;return b};return f.declare=v})},"waf/lib/node_handler":function(){define(["dojo/_base/declare","dojo/query"],function(f,h){var a=f(null,{constructor:function(){}});a.createNode=function(a){var g=h.NodeList();a=document.createElement(a);g.push(a);return g};a.createInput=function(){return a.createNode("input")};a.createLabel=function(){return a.createNode("label")};a.createSpan=function(){return a.createNode("span")};a.createTextInput=function(){return a.createInput().attr("type","text")};
a.createNumericInput=function(){return a.createTextInput()};a.createDiv=function(){return a.createNode("div")};a.createTable=function(){return a.createNode("table")};a.createTableHead=function(){return a.createNode("thead")};a.createTableBody=function(){return a.createNode("tbody")};a.createTr=function(){return a.createNode("tr")};a.createTd=function(){return a.createNode("td")};a.createTh=function(){return a.createNode("th")};a.createAnchor=function(){return a.createNode("a").attr("href","#")};a.createTextArea=
function(){return a.createNode("textarea")};a.createButton=function(){return a.createNode("button")};a.createSelect=function(){return a.createNode("select")};a.createOption=function(){return a.createNode("option")};a.createAbbr=function(){return a.createNode("abbr")};return a})},"waf/components/filter_select/utils":function(){define(["dojo/_base/declare","waf/lib/node_handler","dojo/query"],function(f,h,a){var e=f(null,{constructor:function(){}});e.loop=function(a,c){for(var e=a.length,f=0;f<e;)c(a[f]),
f++;return a};e.map=function(a,c,f){e.loop(c,function(c){a.append(f(c))});return a};e.isMobile=function(){var a=!0;try{document.createEvent("TouchEvent")}catch(c){a=!1}return a};e.escape=function(a){return h.createDiv().html(a).html()};e.wrapNode=function(e){var c=a.NodeList();c.push(e);return c};return e})},"waf/components/filter_select/collection":function(){define(["dojo/_base/array","dojo/_base/declare"],function(f,h){return h(null,{constructor:function(){},each:function(a){for(var e=this.length,
g=0,c;g<e;){c=a(this[g],g);if("break"===c)break;g++}return this},append:function(a){this.push(a);return a},prepend:function(a){this.unshift(a);return a},getItemById:function(a){return this.getItemByKeyValue("id",a)},getItemByKeyValue:function(a,e){for(var g=this.length,c,f;g--;)if(f=this[g],f[a]===e){c=f;break}return c},getIndexOf:function(a){for(var e=this.length,g=0;g<e&&this[g]!==a;)g++;return g},unshift:[].unshift,push:[].push,reverse:[].reverse,indexOf:[].indexOf,sort:[].sort,join:[].join,splice:[].splice,
length:0})})},"waf/lib/language_dir":function(){define(["dojo/query","dojo/dom-attr"],function(f,h){var a="rtl"===h.get(f("html")[0],"dir")?"rtl":"ltr";return{dir:a,relative_dir:{left:"rtl"===a?"right":"left",right:"rtl"===a?"left":"right"}}})},"dojo/NodeList-data":function(){define(["./_base/kernel","./query","./_base/lang","./_base/array","./dom-attr"],function(f,h,a,e,g){var c=h.NodeList,k={},m=0,b=function(a){var b=g.get(a,"data-dojo-dataid");b||(b="pid"+m++,g.set(a,"data-dojo-dataid",b));return b},
d=f._nodeData=function(c,d,e){var g=b(c),f;k[g]||(k[g]={});1==arguments.length&&(f=k[g]);"string"==typeof d?2<arguments.length?k[g][d]=e:f=k[g][d]:f=a.mixin(k[g],d);return f},p=f._removeNodeData=function(a,c){var d=b(a);k[d]&&(c?delete k[d][c]:delete k[d])};c._gcNodeData=f._gcNodeData=function(){var a=h("[data-dojo-dataid]").map(b),c;for(c in k)0>e.indexOf(a,c)&&delete k[c]};a.extend(c,{data:c._adaptWithCondition(d,function(a){return 0===a.length||1==a.length&&"string"==typeof a[0]}),removeData:c._adaptAsForEach(p)});
return c})},"waf/initialisers/custom_webtrends":function(){require(["dojo/query","dojo/topic","dojo/domReady!"],function(f,h){var a;(function(){a=f('a[href^\x3d"mailto"]');a.on("click",function(){var a=this.href,g=a.split("\x3d").slice(1)[0],a={email_address:a.replace(/mailto:/,"").split("?")[0],subject:g.split("\x26")[0]};h.publish("mailto_link_click",a)})})()})},"waf/ResponsiveStyleguide":function(){define(["dojo/_base/window","dojo/dom-class","dojo/on","dojo/query","dojo/domReady!"],function(f,
h,a,e){f=e(".toggle-grid");var g=e(".component-library__component-preview");f.on("click",function(a){a.preventDefault();h.toggle(this,"active");g.toggleClass("with-grid")});e(".component-library__code-wrapper").forEach(function(a){var g=e(".component-library__code-head",a),f=e(".component-library__code-body",a);g.on("click",function(a){a.preventDefault();g.toggleClass("is-on");f.toggleClass("is-hidden")})})})},"waf/components/accordion":function(){require("dojo/fx dojo/on dojo/query dojo/dom-class dojo/fx/easing dojo/dom-attr dojo/dom-style dojo/topic waf/lib/force_redraw dojo/window dojo/NodeList-traverse dojo/domReady!".split(" "),
function(f,h,a,e,g,c,k,m,b,d){function p(d,p){function n(a){c.set(u,"aria-selected",a?"true":"false");c.set(u,"aria-expanded",a?"true":"false");c.set(A,"aria-hidden",a?"false":"true")}function v(){h(u,"click",function(a){var b=e.contains(d,l.classes.active);n(!b);w(b?"close":"open");m.publish("accordion.toggle_item",{item_element:d,is_open:b});m.publish("accordion_"+p+".toggle_item",{item_element:d});a.preventDefault()});h(u,"keydown",function(a){39===a.keyCode||40===a.keyCode?m.publish("accordion_"+
p+".focus_item",{item_element:d,direction:"down"}):(37===a.keyCode||38===a.keyCode)&&m.publish("accordion_"+p+".focus_item",{item_element:d,direction:"up"})});h(B,"click, touchend",function(){m.publish("accordion.link",{item_element:this})})}function w(a){var c={open:{animation_type:"wipeIn",class_action:"add",visibility_end:"visible"},close:{animation_type:"wipeOut",class_action:"remove",visibility_end:"hidden"}};if("close"!==a||e.contains(d,l.classes.active))x&&x.stop(),x=f[c[a].animation_type]({node:A,
duration:window.Bank of America Corporation.isIE7?0:l.animation.duration,easing:window.Bank of America Corporation.isIE7||window.Bank of America Corporation.isIE8?null:g[l.animation.easing],onPlay:function(){e[c[a].class_action](d,l.classes.active);m.publish("responsive_containers/refresh");(window.Bank of America Corporation.isIE8||"open"!==a)&&b(".icon:before","{content:none !important}")},onEnd:function(){k.set(A,"visibility",c[a].visibility_end);window.Bank of America Corporation.isIE7&&m.publish("icons/set")}}).play()}var x,u=a(l.selectors.accordion_heading,d)[0],A=a(l.selectors.accordion_content,d)[0],B=
a(l.selectors.accordion_links,d),y=a(".accordion__inner",d);(function(){var b=a(d).parent()[0];768>t.w&&e.contains(b,l.classes.single)?(e.remove(d,l.classes.active),n(!1),"none"!==k.get(u,"display")&&k.set(A,"visibility","hidden")):e.contains(d,l.classes.active)?n(!0):(n(!1),"none"!==k.get(u,"display")&&k.set(A,"visibility","hidden"));v();y.length&&a(".accordion__inner",d).forEach(function(b){var c=a("\x3e *",b);2<c.length&&c.forEach(function(a,b){!e.contains(a,"contact-details--with-separator")&&
0<b?e.remove(c[b-1],"contact-details--with-separator"):b===c.length-1&&e.remove(a,"contact-details--with-separator")})})})();return{el:d,animate:w}}function n(b,d){var e=[],g="true"===c.get(b,l.toggle_all)||!1;(function(){a(l.selectors.accordion_item,b).forEach(function(a){a=p(a,d);e.push(a)})})();(function(){m.subscribe("accordion_"+d+".toggle_item",function(a){g&&e.forEach(function(b){a.item_element!==b.el&&b.animate("close")})});m.subscribe("accordion_"+d+".focus_item",function(b){var c;e.forEach(function(a,
d){b.item_element===a.el&&(c=d+("down"===b.direction?1:-1))});0>c&&(c=0);c>e.length-1&&(c=e.length-1);a(".accordion__heading a",e[c].el)[0].focus()})})()}var l={toggle_all:"data-toggle",selectors:{accordion_single:".accordion--single",accordion:".accordion",accordion_heading:".accordion__heading a",accordion_item:".accordion__item",accordion_content:".accordion__content",accordion_links:".accordion__content a"},classes:{active:"accordion__item--active",single:"accordion--single"},animation:{duration:300,
easing:"circInOut"}},t=d.getBox();a(l.selectors.accordion).forEach(function(a,b){n(a,b)})})},"dojo/fx":function(){define("./_base/lang ./Evented ./_base/kernel ./_base/array ./aspect ./_base/fx ./dom ./dom-style ./dom-geometry ./ready require".split(" "),function(f,h,a,e,g,c,k,m,b,d,p){a.isAsync||d(0,function(){p(["./fx/Toggler"])});a=a.fx={};d={_fire:function(a,b){this[a]&&this[a].apply(this,b||[]);return this}};var n=function(a){this._index=-1;this._animations=a||[];this._current=this._onAnimateCtx=
this._onEndCtx=null;this.duration=0;e.forEach(this._animations,function(a){this.duration+=a.duration;a.delay&&(this.duration+=a.delay)},this)};n.prototype=new h;f.extend(n,{_onAnimate:function(){this._fire("onAnimate",arguments)},_onEnd:function(){this._onAnimateCtx.remove();this._onEndCtx.remove();this._onAnimateCtx=this._onEndCtx=null;this._index+1==this._animations.length?this._fire("onEnd"):(this._current=this._animations[++this._index],this._onAnimateCtx=g.after(this._current,"onAnimate",f.hitch(this,
"_onAnimate"),!0),this._onEndCtx=g.after(this._current,"onEnd",f.hitch(this,"_onEnd"),!0),this._current.play(0,!0))},play:function(a,b){this._current||(this._current=this._animations[this._index=0]);if(!b&&"playing"==this._current.status())return this;var c=g.after(this._current,"beforeBegin",f.hitch(this,function(){this._fire("beforeBegin")}),!0),d=g.after(this._current,"onBegin",f.hitch(this,function(a){this._fire("onBegin",arguments)}),!0),e=g.after(this._current,"onPlay",f.hitch(this,function(a){this._fire("onPlay",
arguments);c.remove();d.remove();e.remove()}));this._onAnimateCtx&&this._onAnimateCtx.remove();this._onAnimateCtx=g.after(this._current,"onAnimate",f.hitch(this,"_onAnimate"),!0);this._onEndCtx&&this._onEndCtx.remove();this._onEndCtx=g.after(this._current,"onEnd",f.hitch(this,"_onEnd"),!0);this._current.play.apply(this._current,arguments);return this},pause:function(){if(this._current){var a=g.after(this._current,"onPause",f.hitch(this,function(b){this._fire("onPause",arguments);a.remove()}),!0);
this._current.pause()}return this},gotoPercent:function(a,b){this.pause();var c=this.duration*a;this._current=null;e.some(this._animations,function(a){if(a.duration<=c)return this._current=a,!0;c-=a.duration;return!1});this._current&&this._current.gotoPercent(c/this._current.duration,b);return this},stop:function(a){if(this._current){if(a){for(;this._index+1<this._animations.length;++this._index)this._animations[this._index].stop(!0);this._current=this._animations[this._index]}var b=g.after(this._current,
"onStop",f.hitch(this,function(a){this._fire("onStop",arguments);b.remove()}),!0);this._current.stop()}return this},status:function(){return this._current?this._current.status():"stopped"},destroy:function(){this._onAnimateCtx&&this._onAnimateCtx.remove();this._onEndCtx&&this._onEndCtx.remove()}});f.extend(n,d);a.chain=function(a){return new n(a)};var l=function(a){this._animations=a||[];this._connects=[];this.duration=this._finished=0;e.forEach(a,function(a){var b=a.duration;a.delay&&(b+=a.delay);
this.duration<b&&(this.duration=b);this._connects.push(g.after(a,"onEnd",f.hitch(this,"_onEnd"),!0))},this);this._pseudoAnimation=new c.Animation({curve:[0,1],duration:this.duration});var b=this;e.forEach("beforeBegin onBegin onPlay onAnimate onPause onStop onEnd".split(" "),function(a){b._connects.push(g.after(b._pseudoAnimation,a,function(){b._fire(a,arguments)},!0))})};f.extend(l,{_doAction:function(a,b){e.forEach(this._animations,function(c){c[a].apply(c,b)});return this},_onEnd:function(){++this._finished>
this._animations.length&&this._fire("onEnd")},_call:function(a,b){var c=this._pseudoAnimation;c[a].apply(c,b)},play:function(a,b){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this},gotoPercent:function(a,b){var c=this.duration*a;e.forEach(this._animations,function(a){a.gotoPercent(a.duration<c?1:c/a.duration,b)});this._call("gotoPercent",arguments);return this},stop:function(a){this._doAction("stop",
arguments);this._call("stop",arguments);return this},status:function(){return this._pseudoAnimation.status()},destroy:function(){e.forEach(this._connects,function(a){a.remove()})}});f.extend(l,d);a.combine=function(a){return new l(a)};a.wipeIn=function(a){var b=a.node=k.byId(a.node),d=b.style,e;a=c.animateProperty(f.mixin({properties:{height:{start:function(){e=d.overflow;d.overflow="hidden";if("hidden"==d.visibility||"none"==d.display)return d.height="1px",d.display="",d.visibility="",1;var a=m.get(b,
"height");return Math.max(a,1)},end:function(){return b.scrollHeight}}}},a));var h=function(){d.height="auto";d.overflow=e};g.after(a,"onStop",h,!0);g.after(a,"onEnd",h,!0);return a};a.wipeOut=function(a){var b=(a.node=k.byId(a.node)).style,d;a=c.animateProperty(f.mixin({properties:{height:{end:1}}},a));g.after(a,"beforeBegin",function(){d=b.overflow;b.overflow="hidden";b.display=""},!0);var e=function(){b.overflow=d;b.height="auto";b.display="none"};g.after(a,"onStop",e,!0);g.after(a,"onEnd",e,!0);
return a};a.slideTo=function(a){var d=null,e=null,h=function(a){return function(){var c=m.getComputedStyle(a),g=c.position;d="absolute"==g?a.offsetTop:parseInt(c.top)||0;e="absolute"==g?a.offsetLeft:parseInt(c.left)||0;"absolute"!=g&&"relative"!=g&&(c=b.position(a,!0),d=c.y,e=c.x,a.style.position="absolute",a.style.top=d+"px",a.style.left=e+"px")}}(a.node=k.byId(a.node));h();a=c.animateProperty(f.mixin({properties:{top:a.top||0,left:a.left||0}},a));g.after(a,"beforeBegin",h,!0);return a};return a})},
"dojo/_base/fx":function(){define("./kernel ./config ./lang ../Evented ./Color ../aspect ../sniff ../dom ../dom-style".split(" "),function(f,h,a,e,g,c,k,m,b){var d=a.mixin,p={},n=p._Line=function(a,b){this.start=a;this.end=b};n.prototype.getValue=function(a){return(this.end-this.start)*a+this.start};var l=p.Animation=function(b){d(this,b);a.isArray(this.curve)&&(this.curve=new n(this.curve[0],this.curve[1]))};l.prototype=new e;a.extend(l,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,
_getStep:function(){var a=this._percent,b=this.easing;return b?b(a):a},_fire:function(a,b){var c=b||[];if(this[a])if(h.debugAtAllCosts)this[a].apply(this,c);else try{this[a].apply(this,c)}catch(d){console.error("exception in animation handler for:",a),console.error(d)}return this},play:function(b,c){this._delayTimer&&this._clearTimer();if(c)this._stopTimer(),this._active=this._paused=!1,this._percent=0;else if(this._active&&!this._paused)return this;this._fire("beforeBegin",[this.node]);var d=b||
this.delay,e=a.hitch(this,"_play",c);if(0<d)return this._delayTimer=setTimeout(e,d),this;e();return this},_play:function(a){this._delayTimer&&this._clearTimer();this._startTime=(new Date).valueOf();this._paused&&(this._startTime-=this.duration*this._percent);this._active=!0;this._paused=!1;a=this.curve.getValue(this._getStep());this._percent||(this._startRepeatCount||(this._startRepeatCount=this.repeat),this._fire("onBegin",[a]));this._fire("onPlay",[a]);this._cycle();return this},pause:function(){this._delayTimer&&
this._clearTimer();this._stopTimer();if(!this._active)return this;this._paused=!0;this._fire("onPause",[this.curve.getValue(this._getStep())]);return this},gotoPercent:function(a,b){this._stopTimer();this._active=this._paused=!0;this._percent=a;b&&this.play();return this},stop:function(a){this._delayTimer&&this._clearTimer();if(!this._timer)return this;this._stopTimer();a&&(this._percent=1);this._fire("onStop",[this.curve.getValue(this._getStep())]);this._active=this._paused=!1;return this},status:function(){return this._active?
this._paused?"paused":"playing":"stopped"},_cycle:function(){if(this._active){var a=(new Date).valueOf(),a=0===this.duration?1:(a-this._startTime)/this.duration;1<=a&&(a=1);this._percent=a;this.easing&&(a=this.easing(a));this._fire("onAnimate",[this.curve.getValue(a)]);1>this._percent?this._startTimer():(this._active=!1,0<this.repeat?(this.repeat--,this.play(null,!0)):-1==this.repeat?this.play(null,!0):this._startRepeatCount&&(this.repeat=this._startRepeatCount,this._startRepeatCount=0),this._percent=
0,this._fire("onEnd",[this.node]),!this.repeat&&this._stopTimer())}return this},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer}});var t=0,q=null,r={run:function(){}};a.extend(l,{_startTimer:function(){this._timer||(this._timer=c.after(r,"run",a.hitch(this,"_cycle"),!0),t++);q||(q=setInterval(a.hitch(r,"run"),this.rate))},_stopTimer:function(){this._timer&&(this._timer.remove(),this._timer=null,t--);0>=t&&(clearInterval(q),q=null,t=0)}});var s=k("ie")?function(a){var c=
a.style;!c.width.length&&"auto"==b.get(a,"width")&&(c.width="auto")}:function(){};p._fade=function(e){e.node=m.byId(e.node);var g=d({properties:{}},e);e=g.properties.opacity={};e.start=!("start"in g)?function(){return+b.get(g.node,"opacity")||0}:g.start;e.end=g.end;e=p.animateProperty(g);c.after(e,"beforeBegin",a.partial(s,g.node),!0);return e};p.fadeIn=function(a){return p._fade(d({end:1},a))};p.fadeOut=function(a){return p._fade(d({end:0},a))};p._defaultEasing=function(a){return 0.5+Math.sin((a+
1.5)*Math.PI)/2};var v=function(a){this._properties=a;for(var b in a){var c=a[b];c.start instanceof g&&(c.tempColor=new g)}};v.prototype.getValue=function(b){var c={},d;for(d in this._properties){var e=this._properties[d],f=e.start;f instanceof g?c[d]=g.blendColors(f,e.end,b,e.tempColor).toCss():a.isArray(f)||(c[d]=(e.end-f)*b+f+("opacity"!=d?e.units||"px":0))}return c};p.animateProperty=function(e){var h=e.node=m.byId(e.node);e.easing||(e.easing=f._defaultEasing);e=new l(e);c.after(e,"beforeBegin",
a.hitch(e,function(){var c={},e;for(e in this.properties){if("width"==e||"height"==e)this.node.display="block";var f=this.properties[e];a.isFunction(f)&&(f=f(h));f=c[e]=d({},a.isObject(f)?f:{end:f});a.isFunction(f.start)&&(f.start=f.start(h));a.isFunction(f.end)&&(f.end=f.end(h));var k=0<=e.toLowerCase().indexOf("color"),l=function(a,c){var d={height:a.offsetHeight,width:a.offsetWidth}[c];if(void 0!==d)return d;d=b.get(a,c);return"opacity"==c?+d:k?d:parseFloat(d)};"end"in f?"start"in f||(f.start=
l(h,e)):f.end=l(h,e);k?(f.start=new g(f.start),f.end=new g(f.end)):f.start="opacity"==e?+f.start:parseFloat(f.start)}this.curve=new v(c)}),!0);c.after(e,"onAnimate",a.hitch(b,"set",e.node),!0);return e};p.anim=function(a,b,c,d,e,g){return p.animateProperty({node:a,duration:c||l.prototype.duration,properties:b,easing:d,onEnd:e}).play(g||0)};d(f,p);f._Animation=l;return p})},"dojo/_base/Color":function(){define(["./kernel","./lang","./array","./config"],function(f,h,a,e){var g=f.Color=function(a){a&&
this.setColor(a)};g.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:e.transparentColor||[0,0,0,0]};h.extend(g,{r:255,g:255,b:255,a:1,_set:function(a,e,g,b){this.r=a;this.g=e;this.b=g;this.a=b},setColor:function(a){h.isString(a)?g.fromString(a,this):h.isArray(a)?
g.fromArray(a,this):(this._set(a.r,a.g,a.b,a.a),a instanceof g||this.sanitize());return this},sanitize:function(){return this},toRgb:function(){return[this.r,this.g,this.b]},toRgba:function(){return[this.r,this.g,this.b,this.a]},toHex:function(){return"#"+a.map(["r","g","b"],function(a){a=this[a].toString(16);return 2>a.length?"0"+a:a},this).join("")},toCss:function(a){var e=this.r+", "+this.g+", "+this.b;return(a?"rgba("+e+", "+this.a:"rgb("+e)+")"},toString:function(){return this.toCss(!0)}});g.blendColors=
f.blendColors=function(c,e,f,b){var d=b||new g;a.forEach(["r","g","b","a"],function(a){d[a]=c[a]+(e[a]-c[a])*f;"a"!=a&&(d[a]=Math.round(d[a]))});return d.sanitize()};g.fromRgb=f.colorFromRgb=function(a,e){var f=a.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return f&&g.fromArray(f[1].split(/\s*,\s*/),e)};g.fromHex=f.colorFromHex=function(c,e){var f=e||new g,b=4==c.length?4:8,d=(1<<b)-1;c=Number("0x"+c.substr(1));if(isNaN(c))return null;a.forEach(["b","g","r"],function(a){var e=c&d;c>>=b;f[a]=4==
b?17*e:e});f.a=1;return f};g.fromArray=f.colorFromArray=function(a,e){var f=e||new g;f._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));isNaN(f.a)&&(f.a=1);return f.sanitize()};g.fromString=f.colorFromString=function(a,e){var f=g.named[a];return f&&g.fromArray(f,e)||g.fromRgb(a,e)||g.fromHex(a,e)};return g})},"dojo/fx/easing":function(){define(["../_base/lang"],function(f){var h={linear:function(a){return a},quadIn:function(a){return Math.pow(a,2)},quadOut:function(a){return-1*a*(a-2)},quadInOut:function(a){a*=
2;return 1>a?Math.pow(a,2)/2:-1*(--a*(a-2)-1)/2},cubicIn:function(a){return Math.pow(a,3)},cubicOut:function(a){return Math.pow(a-1,3)+1},cubicInOut:function(a){a*=2;return 1>a?Math.pow(a,3)/2:(Math.pow(a-2,3)+2)/2},quartIn:function(a){return Math.pow(a,4)},quartOut:function(a){return-1*(Math.pow(a-1,4)-1)},quartInOut:function(a){a*=2;return 1>a?Math.pow(a,4)/2:-0.5*(Math.pow(a-2,4)-2)},quintIn:function(a){return Math.pow(a,5)},quintOut:function(a){return Math.pow(a-1,5)+1},quintInOut:function(a){a*=
2;return 1>a?Math.pow(a,5)/2:(Math.pow(a-2,5)+2)/2},sineIn:function(a){return-1*Math.cos(a*(Math.PI/2))+1},sineOut:function(a){return Math.sin(a*(Math.PI/2))},sineInOut:function(a){return-1*(Math.cos(Math.PI*a)-1)/2},expoIn:function(a){return 0==a?0:Math.pow(2,10*(a-1))},expoOut:function(a){return 1==a?1:-1*Math.pow(2,-10*a)+1},expoInOut:function(a){if(0==a)return 0;if(1==a)return 1;a*=2;if(1>a)return Math.pow(2,10*(a-1))/2;--a;return(-1*Math.pow(2,-10*a)+2)/2},circIn:function(a){return-1*(Math.sqrt(1-
Math.pow(a,2))-1)},circOut:function(a){return Math.sqrt(1-Math.pow(a-1,2))},circInOut:function(a){a*=2;return 1>a?-0.5*(Math.sqrt(1-Math.pow(a,2))-1):0.5*(Math.sqrt(1-Math.pow(a-2,2))+1)},backIn:function(a){return Math.pow(a,2)*(2.70158*a-1.70158)},backOut:function(a){a-=1;return Math.pow(a,2)*(2.70158*a+1.70158)+1},backInOut:function(a){a*=2;if(1>a)return Math.pow(a,2)*(3.5949095*a-2.5949095)/2;a-=2;return(Math.pow(a,2)*(3.5949095*a+2.5949095)+2)/2},elasticIn:function(a){if(0==a||1==a)return a;a-=
1;return-1*Math.pow(2,10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)},elasticOut:function(a){return 0==a||1==a?a:Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1},elasticInOut:function(a){if(0==a)return 0;a*=2;if(2==a)return 1;var e=0.3*1.5,g=e/4;if(1>a)return a-=1,-0.5*Math.pow(2,10*a)*Math.sin((a-g)*2*Math.PI/e);a-=1;return 0.5*Math.pow(2,-10*a)*Math.sin((a-g)*2*Math.PI/e)+1},bounceIn:function(a){return 1-h.bounceOut(1-a)},bounceOut:function(a){a<1/2.75?a=7.5625*Math.pow(a,2):a<2/2.75?a=7.5625*Math.pow(a-
1.5/2.75,2)+0.75:a<2.5/2.75?(a-=2.25/2.75,a=7.5625*Math.pow(a,2)+0.9375):(a-=2.625/2.75,a=7.5625*Math.pow(a,2)+0.984375);return a},bounceInOut:function(a){return 0.5>a?h.bounceIn(2*a)/2:h.bounceOut(2*a-1)/2+0.5}};f.setObject("dojo.fx.easing",h);return h})},"waf/lib/force_redraw":function(){define([],function(){return function(f,h){var a=document.getElementsByTagName("head")[0],e=f+h,g=document.createElement("style");g.type="text/css";g.styleSheet?g.styleSheet.cssText=e:g.appendChild(document.createTextNode(e));
a.appendChild(g);setTimeout(function(){a.removeChild(g)},0)}})},"waf/components/alert_message":function(){require("dojo/on dojo/query dojo/dom-attr dojo/dom-class dojo/dom-style dojo/fx dojo/cookie dojo/domReady!".split(" "),function(f,h,a,e,g,c,k){var m=h(".alert-message");m.length&&m.forEach(function(b){var d=h(".alert-message__close",b)[0];k("alert_message_closed")||e.add(b,"alert-message--show");f(d,"click",function(d){d.preventDefault();a.set(b,"aria-hidden","true");g.set(b,{height:"",display:"block"});
c.wipeOut({node:b,duration:30}).play();k("alert_message_closed","true",{path:"/"})})})})},"dojo/cookie":function(){define(["./_base/kernel","./regexp"],function(f,h){f.cookie=function(a,e,g){var c=document.cookie,f;if(1==arguments.length)f=(f=c.match(RegExp("(?:^|; )"+h.escapeString(a)+"\x3d([^;]*)")))?decodeURIComponent(f[1]):void 0;else{g=g||{};c=g.expires;if("number"==typeof c){var m=new Date;m.setTime(m.getTime()+864E5*c);c=g.expires=m}c&&c.toUTCString&&(g.expires=c.toUTCString());e=encodeURIComponent(e);
var c=a+"\x3d"+e,b;for(b in g)c+="; "+b,m=g[b],!0!==m&&(c+="\x3d"+m);document.cookie=c}return f};f.cookie.isSupported=function(){"cookieEnabled"in navigator||(this("__djCookieTest__","CookiesAllowed"),navigator.cookieEnabled="CookiesAllowed"==this("__djCookieTest__"),navigator.cookieEnabled&&this("__djCookieTest__","",{expires:-1}));return navigator.cookieEnabled};return f.cookie})},"dojo/regexp":function(){define(["./_base/kernel","./_base/lang"],function(f,h){var a={};h.setObject("dojo.regexp",
a);a.escapeString=function(a,g){return a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(a){return g&&-1!=g.indexOf(a)?a:"\\"+a})};a.buildGroupRE=function(e,g,c){if(!(e instanceof Array))return g(e);for(var f=[],h=0;h<e.length;h++)f.push(g(e[h]));return a.group(f.join("|"),c)};a.group=function(a,g){return"("+(g?"?:":"")+a+")"};return a})},"waf/components/ask_andrew":function(){require(["dojo/query","dojo/on","dojo/topic","dojo/domReady!"],function(f,h,a){f(".ask-andrew-textarea").length&&f(".button--live-chat__text").forEach(function(e){h(e,
"click",function(){a.publish("ask_andrew.submit_question")})})})},"waf/components/bib_popup":function(){require(["dojo/query","dojo/dom-attr","dojo/on","dojo/has","dojo/domReady!"],function(f,h,a,e){f=f("a.business-internet-banking-popup");f.length&&a(f,"click",function(a){a.preventDefault();a=h.get(this,"href");var c=h.get(this,"data-mobile-url");e("touch")&&650>=window.innerWidth&&null!==c&&""!==c?window.location.href=c:window.bib_popup&&!window.bib_popup.closed?window.open("","bib","width\x3d1100,height\x3d1000,toolbar,scrollbars,resizable,status").focus():
(window.bib_popup=window.open(a,"bib","width\x3d1100,height\x3d1000,toolbar,scrollbars,resizable,status"),window.bib_popup.focus())})})},"waf/components/box_list":function(){require("dojo/query dojo/dom-geometry dojo/dom-style dojo/dom-class waf/lib/on_window_resize dojo/NodeList-dom dojo/domReady!".split(" "),function(f,h,a,e,g){function c(){k();g(k,this);if(e.contains(document.documentElement,"lt-ie9")){var a=f(".box-list__item:nth-child(3n)"),b=f(".box-list__item:nth-child(4n)"),c=f(".box-list__item:nth-child(4n-2)");
f(a).addClass("box-list__item--omega");f(b).addClass("box-list__item--even--light");f(c).addClass("box-list__item--even--dark")}}function k(){b.forEach(function(b){b=f(".box-list__item",b);var c=[],e;b.forEach(function(b){a.set(b,"height","");b=h.position(b).h;c.push(b)});e=Math.max.apply(null,c);m(b,e)})}function m(b,c){b.forEach(function(b){a.set(b,"height",c+"px")})}var b=f(".box-list");b.length&&c()})},"waf/components/branch_finder":function(){define("dijit/_WidgetBase waf/lib/google_maps dojo/dom dojo/dom-style dojo/dom-construct dojo/on dojo/query dojo/_base/lang dojo/_base/array dojo/request dojo/json dojo/_base/declare dojo/dom-class dojo/request/script dojo/dom-attr dojo/topic dojo/domReady!".split(" "),
function(f,h,a,e,g,c,k,m,b,d,p,n,l,t,q,r){var s=650>=window.innerWidth?!0:!1;return n([f],{web_service_url:null,default_lat_lng:[],country_zoom:null,icon_link:null,country_code:null,search_radius_km:null,branch_data:[],keyCodes:{carriage_return:13},postCreate:function(){this.setMapProperties();this.useUserLocation();this.bindUiEvents();this.initMap();this.getFilterAttributes()},getFilterAttributes:function(){function a(){for(var b=0;b<d.length;b++)k('input[value\x3d"'+d[b]+'"]').forEach(function(a){a.checked=
!0})}var b=window.location.href,d=-1<b.indexOf("filter\x3d")?b.split("filter\x3d")[1].split("_"):null;d&&(d[d.length-1]=d[d.length-1].split("#")[0],a());c.emit(k("[data-search-button]")[0],"click",{bubbles:!0,cancelable:!0})},initMap:function(){h.init();this.displayLoadingMessage(!0)},settingsError:function(){},setMapProperties:function(){var a=this.search_radius?this.search_radius:50,b=this.search_radius_unit;h.mapID="results__g-map";h.icon_link=this.icon_link;h.default_lat_lng=this.default_lat_lng;
h.country_zoom=this.country_zoom;h.country_code=this.country_code;"km"===b?this.search_radius_km=Math.round(a):"miles"===b&&(this.search_radius_km=Math.round(1.6*a))},useUserLocation:function(){"geolocation"in navigator&&this.getMyLocation()},bindUiEvents:function(){this.bindMainSearchBarActions();this.bindAdvancedSearchButtonActions();this.bindBranchInfoControlActions()},getBranchData:function(a){var b=this,c=b.getFilters();t.get(b.web_service_url,{jsonp:"callback",query:{lat:b.new_coords.lat(),
lng:b.new_coords.lng(),filter:c,radius:b.search_radius_km,limit:40,unit:b.search_radius_unit}}).then(function(d){var e={location:!a.location?b.new_coords.lat()+"|"+b.new_coords.lng():a.location,number_of_results:0,filters:c,trigger:a.trigger};b.branch_data=d;e.number_of_results=b.branch_data.length;b.populateDomWithResults();h.setUserMarker(b.new_coords);0<b.branch_data.length&&h.placeMarkerWithTooltip(b.new_coords,b.branch_data);a.focus_first_branch&&k(".results__branch-info-button")[0].focus();
r.publish("branch_finder/search",e);b.branch_data&&b.displayLoadingMessage(!1);b.displayLoadingMessage(!0)},function(a){return a})},getFilters:function(){var a=[],c=s?k(".branch-finder__search-panel__advanced-settings--mobile .branch-finder__advanced-settings__service-filter-wrap input:checked"):k(".branch-finder__search-panel__advanced-settings--desktop .branch-finder__advanced-settings__service-filter-wrap input:checked");b.forEach(c,function(b){a.push(q.get(b,"value"))});return a},hideBranchInfo:function(a){0===
a.ServiceTimes.length&&k(".branch-detail__opening-hours").style("display","none");0===a.ServiceFeatures.length&&k(".branch-detail__services").style("display","none");0===a.Phone.length&&0===a.Fax.length&&k(".branch-detail__contact-us").style("display","none")},getServiceTimeHTML:function(a){var c=g.toDom(k("#opening-hours-template").innerHTML()),d=m.clone(k(".opening-hours__wrapper-row",c)[0]),e=document.createElement("tbody");g.place(e,c);b.forEach(a,function(a){var b=m.clone(d);k(".opening-hours__label",
b).innerHTML(a.Label);k(".opening-hours__times",b).innerHTML(a.OpeningHours);g.place(b,e)});return c},formatServiceFeatures:function(a){var c='\x3cul class\x3d""\x3e';b.forEach(a,function(a){c=c+"\x3cli\x3e"+a+"\x3c/li\x3e"});return c+"\x3c/ul\x3e"},populateDomWithResults:function(){var a=this,c=a.branch_data,d=k("#results__branch-info-wrap")[0],f=k("#results__branch-info-wrap-details")[0],l,m;g.empty(d);g.empty(f);e.set(d,"display","block");e.set(f,"display","none");g.place(this.getNumberOfResultsHtml(c),
d);l=g.create("ul",{className:"branch-list"},d);m=g.create("ul",{className:"branch-detail"},f);c.length?b.forEach(c,function(b,c){var d=a.getServiceTimeHTML(b.ServiceTimes),e=g.toDom(k("#branch-info-template")[0].innerHTML),f=g.toDom(k("#branch-details-template")[0].innerHTML),h=k(".results__branch-contact-details",f)[0],p=k(".branch-detail__opening-hours",f)[0];k(".counter",e).innerHTML(c+1);k(".results__branch-name",e).innerHTML(b.Name);k(".results__branch-services",e).innerHTML(a.formatServices(b.BranchServices));
k(".results__branch-address",e).innerHTML(a.formatAddress(b.Address));k(".results__branch-distance",e).innerHTML(b.Distance);var n=k(".branch-description__branch-name",f);n.innerHTML(b.Name);q.set(n[0],"data-latitude",b.Latitude);q.set(n[0],"data-longitude",b.Longitude);k(".branch-description__branch-services",f).innerHTML(b.BranchServices.join(", "));k(".branch-description__branch-address",f).innerHTML(b.Address.join(""));k(".results__branch-distance",f).innerHTML(b.Distance);k(".services__list",
f).innerHTML(a.formatServiceFeatures(b.ServiceFeatures));k(".contact-us__phone-number",f).innerHTML(b.Phone);k(".contact-us__fax-number",f).innerHTML(b.Fax);0===b.Fax.length&&k(".contact-us__label-fax",f).style("display","none");0===b.Phone.length&&k(".contact-us__label-phone",f).style("display","none");q.set(h,"href",b.VCardProvider);g.place(e,l);g.place(f,m);g.place(d,p,"last");a.hideBranchInfo(b)}):(h.setZoomLevel(h.myLocationZoom),c=g.toDom(k("#no-results-template")[0].innerHTML),g.place(c,d),
h.resetMarkers());r.publish("icons/set")},formatServices:function(a){return'\x3cspan class\x3d"service__item"\x3e'+a.join(', \x3c/span\x3e\x3cspan class\x3d"service__item"\x3e')+"\x3c/span\x3e"},formatAddress:function(a){return'\x3cspan class\x3d"address__item"\x3e'+a.join('\x3c/span\x3e\x3cspan class\x3d"address__item"\x3e')+"\x3c/span\x3e"},getNumberOfResultsHtml:function(a){a=a.length;return k("#item-template")[0].innerHTML.replace("{{ n }}",a)},bindMainSearchBarActions:function(){var a=this;c(k("#branch-finder__search-panel"),
".input-location:keydown",function(b){b.keyCode===a.keyCodes.carriage_return&&(b.preventDefault(),a.getSearchLocation())});c(k("#branch-finder__search-panel"),".search-box__submit:click",function(b){b.preventDefault();a.getSearchLocation()});c(k(".branch-finder__intro__actions"),".branch-finder__search-panel__location-button:keydown",function(b){b.keyCode===a.keyCodes.carriage_return&&a.getMyLocation()});c(k("[data-search-button]"),"click",function(b){b.preventDefault();a.getSearchLocation()})},bindBranchInfoControlActions:function(){var a=
this;c(this.domNode,".branch-list \x3e li \x3e .results__branch-info-button:click",function(a){a.preventDefault();a=k(".branch-list \x3e li \x3e .results__branch-info-button").indexOf(this);h.hideShowDetails(a,!0)});c(this.domNode,".branch-list \x3e li \x3e .results__branch-info-button:keydown",function(b){var c=k(".branch-list \x3e li \x3e .results__branch-info-button").indexOf(this);b.keyCode===a.keyCodes.carriage_return&&(b.preventDefault(),h.hideShowDetails(c,!0))});c(this.domNode,".branch-detail__back-button:click",
function(a){a.preventDefault();h.hideShowDetails(k(".branch-detail__back-button").indexOf(this),!1);h.directionInstance.setMap(null)})},bindAdvancedSearchButtonActions:function(){var a=this,b=k(".branch-finder__toggle-advanced-search")[0];c(b,"click",function(c){c.preventDefault();a.toggleAdvancedPanel(b)})},toggleAdvancedPanel:function(a){var c="true"===a.getAttribute("aria-pressed");a.setAttribute("aria-pressed",c?"false":"true");a.setAttribute("aria-expanded",c?"false":"true");l.toggle(a,"active");
r.publish("icons/set");b.forEach(k(".branch-finder__search-panel__advanced-settings"),function(a){l.toggle(a,"branch-finder__hidden")})},displayLoadingMessage:function(a){a?(k(".search-result .overlay").style("display","block"),k(".search-result .loading-box").style("display","block")):(k(".search-result .overlay").style("display","none"),k(".search-result .loading-box").style("display","none"))},getMyLocation:function(){var a=this;h.getUserLatLng(function(b){"object"===typeof b&&(h.map.setCenter(b),
h.setUserMarker(b),a.new_coords=b,k(".branch-finder__search-panel__location-button")[0].blur());a.getBranchData({trigger:"geo-locate",focus_first_branch:!0})})},getSearchLocation:function(){var a=k("#branch-finder__search-panel .input-location")[0],b=a.value,a=q.get(a,"placeholder");b&&b!==a&&h.setCenterByAddress(b,this)}})})},"dijit/_WidgetBase":function(){define("require dojo/_base/array dojo/aspect dojo/_base/config dojo/_base/connect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/has dojo/_base/kernel dojo/_base/lang dojo/on dojo/ready dojo/Stateful dojo/topic dojo/_base/window ./Destroyable dojo/has!dojo-bidi?./_BidiMixin ./registry".split(" "),
function(f,h,a,e,g,c,k,m,b,d,p,n,l,t,q,r,s,v,w,x,u,A,B){function y(a){return function(b){m[b?"set":"remove"](this.domNode,a,b);this._set(a,b)}}l.add("dijit-legacy-requires",!t.isAsync);l.add("dojo-bidi",!1);l("dijit-legacy-requires")&&s(0,function(){f(["dijit/_base/manager"])});var z={};e=c("dijit._WidgetBase",[v,u],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:y("lang"),dir:"",_setDirAttr:y("dir"),"class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",
srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(a){this._set("ownerDocument",a)},attributeMap:{},_blankGif:e.blankGif||f.toUrl("dojo/resources/blank.gif"),_introspect:function(){var a=this.constructor;if(!a._setterAttrs){var b=a.prototype,c=a._setterAttrs=[],a=a._onMap={},d;for(d in b.attributeMap)c.push(d);for(d in b)/^on/.test(d)&&(a[d.substring(2).toLowerCase()]=d),/^_set[A-Z](.*)Attr$/.test(d)&&(d=d.charAt(4).toLowerCase()+d.substr(5,d.length-
9),(!b.attributeMap||!(d in b.attributeMap))&&c.push(d))}},postscript:function(a,b){this.create(a,b)},create:function(a,b){this._introspect();this.srcNodeRef=k.byId(b);this._connects=[];this._supportingWidgets=[];this.srcNodeRef&&"string"==typeof this.srcNodeRef.id&&(this.id=this.srcNodeRef.id);a&&(this.params=a,q.mixin(this,a));this.postMixInProperties();this.id||(this.id=B.getUniqueId(this.declaredClass.replace(/\./g,"_")),this.params&&delete this.params.id);this.ownerDocument=this.ownerDocument||
(this.srcNodeRef?this.srcNodeRef.ownerDocument:document);this.ownerDocumentBody=x.body(this.ownerDocument);B.add(this);this.buildRendering();var c;if(this.domNode){this._applyAttributes();var d=this.srcNodeRef;d&&(d.parentNode&&this.domNode!==d)&&(d.parentNode.replaceChild(this.domNode,d),c=!0);this.domNode.setAttribute("widgetId",this.id)}this.postCreate();c&&delete this.srcNodeRef;this._created=!0},_applyAttributes:function(){var a={},b;for(b in this.params||{})a[b]=this._get(b);h.forEach(this.constructor._setterAttrs,
function(b){if(!(b in a)){var c=this._get(b);c&&this.set(b,c)}},this);for(b in a)this.set(b,a[b])},postMixInProperties:function(){},buildRendering:function(){this.domNode||(this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div"));if(this.baseClass){var a=this.baseClass.split(" ");this.isLeftToRight()||(a=a.concat(h.map(a,function(a){return a+"Rtl"})));b.add(this.domNode,a)}},postCreate:function(){},startup:function(){this._started||(this._started=!0,h.forEach(this.getChildren(),function(a){!a._started&&
(!a._destroyed&&q.isFunction(a.startup))&&(a.startup(),a._started=!0)}))},destroyRecursive:function(a){this._beingDestroyed=!0;this.destroyDescendants(a);this.destroy(a)},destroy:function(a){function b(c){c.destroyRecursive?c.destroyRecursive(a):c.destroy&&c.destroy(a)}this._beingDestroyed=!0;this.uninitialize();h.forEach(this._connects,q.hitch(this,"disconnect"));h.forEach(this._supportingWidgets,b);this.domNode&&h.forEach(B.findWidgets(this.domNode,this.containerNode),b);this.destroyRendering(a);
B.remove(this.id);this._destroyed=!0},destroyRendering:function(a){this.bgIframe&&(this.bgIframe.destroy(a),delete this.bgIframe);this.domNode&&(a?m.remove(this.domNode,"widgetId"):d.destroy(this.domNode),delete this.domNode);this.srcNodeRef&&(a||d.destroy(this.srcNodeRef),delete this.srcNodeRef)},destroyDescendants:function(a){h.forEach(this.getChildren(),function(b){b.destroyRecursive&&b.destroyRecursive(a)})},uninitialize:function(){return!1},_setStyleAttr:function(a){var b=this.domNode;q.isObject(a)?
n.set(b,a):b.style.cssText=b.style.cssText?b.style.cssText+("; "+a):a;this._set("style",a)},_attrToDom:function(a,c,d){d=3<=arguments.length?d:this.attributeMap[a];h.forEach(q.isArray(d)?d:[d],function(d){var e=this[d.node||d||"domNode"];switch(d.type||"attribute"){case "attribute":q.isFunction(c)&&(c=q.hitch(this,c));d=d.attribute?d.attribute:/^on[A-Z][a-zA-Z]*$/.test(a)?a.toLowerCase():a;e.tagName?m.set(e,d,c):e.set(d,c);break;case "innerText":e.innerHTML="";e.appendChild(this.ownerDocument.createTextNode(c));
break;case "innerHTML":e.innerHTML=c;break;case "class":b.replace(e,c,this[a])}},this)},get:function(a){var b=this._getAttrNames(a);return this[b.g]?this[b.g]():this._get(a)},set:function(a,b){if("object"===typeof a){for(var c in a)this.set(c,a[c]);return this}c=this._getAttrNames(a);var d=this[c.s];if(q.isFunction(d))var e=d.apply(this,Array.prototype.slice.call(arguments,1));else{var d=this.focusNode&&!q.isFunction(this.focusNode)?"focusNode":"domNode",g=this[d]&&this[d].tagName,f;if(f=g)if(!(f=
z[g])){f=this[d];var h={},k;for(k in f)h[k.toLowerCase()]=!0;f=z[g]=h}k=f;c=a in this.attributeMap?this.attributeMap[a]:c.s in this?this[c.s]:k&&c.l in k&&"function"!=typeof b||/^aria-|^data-|^role$/.test(a)?d:null;null!=c&&this._attrToDom(a,b,c);this._set(a,b)}return e||this},_attrPairNames:{},_getAttrNames:function(a){var b=this._attrPairNames;if(b[a])return b[a];var c=a.replace(/^[a-z]|-[a-zA-Z]/g,function(a){return a.charAt(a.length-1).toUpperCase()});return b[a]={n:a+"Node",s:"_set"+c+"Attr",
g:"_get"+c+"Attr",l:c.toLowerCase()}},_set:function(a,b){var c=this[a];this[a]=b;if(this._created&&!(c===b||c!==c&&b!==b))this._watchCallbacks&&this._watchCallbacks(a,c,b),this.emit("attrmodified-"+a,{detail:{prevValue:c,newValue:b}})},_get:function(a){return this[a]},emit:function(a,b,c){b=b||{};void 0===b.bubbles&&(b.bubbles=!0);void 0===b.cancelable&&(b.cancelable=!0);b.detail||(b.detail={});b.detail.widget=this;var d,e=this["on"+a];e&&(d=e.apply(this,c?c:[b]));this._started&&!this._beingDestroyed&&
r.emit(this.domNode,a.toLowerCase(),b);return d},on:function(b,c){var d=this._onMap(b);return d?a.after(this,d,c,!0):this.own(r(this.domNode,b,c))[0]},_onMap:function(a){var b=this.constructor,c=b._onMap;if(!c){var c=b._onMap={},d;for(d in b.prototype)/^on/.test(d)&&(c[d.replace(/^on/,"").toLowerCase()]=d)}return c["string"==typeof a&&a.toLowerCase()]},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getChildren:function(){return this.containerNode?B.findWidgets(this.containerNode):
[]},getParent:function(){return B.getEnclosingWidget(this.domNode.parentNode)},connect:function(a,b,c){return this.own(g.connect(a,b,this,c))[0]},disconnect:function(a){a.remove()},subscribe:function(a,b){return this.own(w.subscribe(a,q.hitch(this,b)))[0]},unsubscribe:function(a){a.remove()},isLeftToRight:function(){return this.dir?"ltr"==this.dir:p.isBodyLtr(this.ownerDocument)},isFocusable:function(){return this.focus&&"none"!=n.get(this.domNode,"display")},placeAt:function(a,b){var c=!a.tagName&&
B.byId(a);c&&c.addChild&&(!b||"number"===typeof b)?c.addChild(this,b):(c=c?c.containerNode&&!/after|before|replace/.test(b||"")?c.containerNode:c.domNode:k.byId(a,this.ownerDocument),d.place(this.domNode,c,b),!this._started&&(this.getParent()||{})._started&&this.startup());return this},defer:function(a,b){var c=setTimeout(q.hitch(this,function(){c&&(c=null,this._destroyed||q.hitch(this,a)())}),b||0);return{remove:function(){c&&(clearTimeout(c),c=null);return null}}}});l("dojo-bidi")&&e.extend(A);
return e})},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","./when"],function(f,h,a,e){return f("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(a){var c=this._attrPairNames;return c[a]?c[a]:c[a]={s:"_"+a+"Setter",g:"_"+a+"Getter"}},postscript:function(a){a&&this.set(a)},_get:function(a,c){return"function"===typeof this[c.g]?this[c.g]():this[a]},get:function(a){return this._get(a,this._getAttrNames(a))},set:function(a,c){if("object"===typeof a){for(var f in a)a.hasOwnProperty(f)&&
"_watchCallbacks"!=f&&this.set(f,a[f]);return this}f=this._getAttrNames(a);var h=this._get(a,f);f=this[f.s];var b;"function"===typeof f?b=f.apply(this,Array.prototype.slice.call(arguments,1)):this[a]=c;if(this._watchCallbacks){var d=this;e(b,function(){d._watchCallbacks(a,h,c)})}return this},_changeAttrValue:function(a,c){var e=this.get(a);this[a]=c;this._watchCallbacks&&this._watchCallbacks(a,e,c);return this},watch:function(e,c){var f=this._watchCallbacks;if(!f)var h=this,f=this._watchCallbacks=
function(a,b,c,d){var e=function(d){if(d){d=d.slice();for(var e=0,g=d.length;e<g;e++)d[e].call(h,a,b,c)}};e(f["_"+a]);d||e(f["*"])};!c&&"function"===typeof e?(c=e,e="*"):e="_"+e;var b=f[e];"object"!==typeof b&&(b=f[e]=[]);b.push(c);var d={};d.unwatch=d.remove=function(){var d=a.indexOf(b,c);-1<d&&b.splice(d,1)};return d}})})},"dijit/Destroyable":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare"],function(f,h,a){return a("dijit.Destroyable",null,{destroy:function(a){this._destroyed=
!0},own:function(){f.forEach(arguments,function(a){var g="destroyRecursive"in a?"destroyRecursive":"destroy"in a?"destroy":"remove",c=h.before(this,"destroy",function(c){a[g](c)}),f=h.after(a,g,function(){c.remove();f.remove()},!0)},this);return arguments}})})},"dijit/registry":function(){define(["dojo/_base/array","dojo/sniff","dojo/_base/window","./main"],function(f,h,a,e){var g={},c={},k={length:0,add:function(a){if(c[a.id])throw Error("Tried to register widget with id\x3d\x3d"+a.id+" but that id is already registered");
c[a.id]=a;this.length++},remove:function(a){c[a]&&(delete c[a],this.length--)},byId:function(a){return"string"==typeof a?c[a]:a},byNode:function(a){return c[a.getAttribute("widgetId")]},toArray:function(){var a=[],b;for(b in c)a.push(c[b]);return a},getUniqueId:function(a){var b;do b=a+"_"+(a in g?++g[a]:g[a]=0);while(c[b]);return"dijit"==e._scopeName?b:e._scopeName+"_"+b},findWidgets:function(a,b){function d(a){for(a=a.firstChild;a;a=a.nextSibling)if(1==a.nodeType){var g=a.getAttribute("widgetId");
g?(g=c[g])&&e.push(g):a!==b&&d(a)}}var e=[];d(a);return e},_destroyAll:function(){e._curFocus=null;e._prevFocus=null;e._activeStack=[];f.forEach(k.findWidgets(a.body()),function(a){a._destroyed||(a.destroyRecursive?a.destroyRecursive():a.destroy&&a.destroy())})},getEnclosingWidget:function(a){for(;a;){var b=1==a.nodeType&&a.getAttribute("widgetId");if(b)return c[b];a=a.parentNode}return null},_hash:c};return e.registry=k})},"dijit/main":function(){define(["dojo/_base/kernel"],function(f){return f.dijit})},
"waf/lib/google_maps":function(){define("dojo/_base/declare dojo/_base/window dojo/dom dojo/dom-style dojo/dom-construct dojo/query dojo/topic".split(" "),function(f,h,a,e,g,c,k){var m=650>=window.innerWidth?!0:!1;return{mapID:null,map:null,icon_link:null,mapDim:null,viewPort:null,default_lat_lng:null,country_zoom:null,country_code:null,searchRadius:null,myLocationZoom:17,init:function(){var b,c;b=new google.maps.LatLng(this.default_lat_lng[0],this.default_lat_lng[1]);c={center:b,zoom:this.country_zoom,
minZoom:2,panControl:!0,streetViewControl:!0,mapTypeControl:!1,zoomControl:!0,scaleControl:!0};this.map=new google.maps.Map(a.byId(this.mapID),c);this.mapDim={height:a.byId(this.mapID).offsetHeight/2,width:a.byId(this.mapID).offsetWidth/2};new google.maps.DirectionsService;this.directionInstance=new google.maps.DirectionsRenderer;return b},getUserLatLng:function(a){function c(a){return!0===a?"Geolocation service failed.":"Your browser doesn't support geolocation."}var e,g;"geolocation"in navigator?
(e=!0,navigator.geolocation.getCurrentPosition(function(c){g=new google.maps.LatLng(c.coords.latitude,c.coords.longitude);a(g)},function(){a(c(e))})):(e=!1,a(c(e)))},returnUserLatlng:function(a){return a},setZoomLevel:function(a){this.map.setZoom(a)},setCenterByAddress:function(a,c){var e=this,g=new google.maps.Geocoder;g&&g.geocode({address:a,region:e.country_code},function(g,f){if(f===google.maps.GeocoderStatus.OK){var h=g[0].geometry;e.map.setCenter(h.location);e.setUserMarker(h.location);e.viewPort=
h.viewport;c&&(c.new_coords=h.location,c.getBranchData({location:a,trigger:"user-input"}));return h.location}"ZERO_RESULTS"===f&&(c.branch_data=[],c.populateDomWithResults())})},setCenter:function(a){this.map.setCenter(a)},zoomShowMarkers:function(a,c){var e=new google.maps.LatLngBounds,g;e.extend(a);g=5<c.length?4:0<c.length?c.length-1:-1;0<=g?(g=c[g],g=new google.maps.LatLng(g.Latitude,g.Longitude),e.extend(g),e=this.getZoomLevel(e),this.map.setZoom(e)):this.map.fitBounds(this.viewPort)},getZoomLevel:function(a){function c(a){a=
Math.sin(a*Math.PI/180);a=Math.log((1+a)/(1-a))/2;return Math.max(Math.min(a,Math.PI),-Math.PI)/2}var e=this.mapDim,g=a.getNorthEast(),f=a.getSouthWest();a=(c(g.lat())-c(f.lat()))/Math.PI;g=g.lng()-f.lng();g=(0>g?g+360:g)/360;a=Math.floor(Math.log(e.height/256/a)/Math.LN2);e=Math.floor(Math.log(e.width/256/g)/Math.LN2);return Math.min(a,e,21)},initUserMarker:function(a){this.userMarker=new google.maps.Marker({position:a,map:this.map,icon:this.gmUserIcon()});this.setCenter(a)},setUserMarker:function(a){this.userMarker?
this.userMarker.setPosition(a):this.initUserMarker(a)},placeMarkerWithTooltip:function(a,c){var e,g,f=[],h,k=[],m=[],s;this.resetMarkers();if(c){for(e=0;e<c.length;e++)g=c[e],h=this.gmNewMarker(g,e),h._index=e,f.push(h),s='\x3cp class\x3d"map-tooltip__name"\x3e'+g.Name+'\x3c/p\x3e\x3cp class\x3d"map-tooltip__services"\x3e'+g.BranchServices.join(", ")+'\x3c/p\x3e\x3cp class\x3d"map-tooltip__address"\x3e'+g.Address.join("")+'\x3c/p\x3e\x3cp class\x3d"map-tooltip__distance"\x3e'+g.Distance+"\x3c/p\x3e",
s=this.gmNewInfoWindow(this.newInfoWinStr(s),!0),s._index=e,s._isOpen=!1,k.push(s),g="\x3cp\x3e"+g.Name+"\x3c/p\x3e",g=this.gmNewInfoWindow(this.newInfoWinStr(g),!1),g._index=e,g._isOpen=!1,m.push(g),this.bindTooltip(h,s,g,e);this.markerArray=f;this.tooltipArray=k;this.tooltipArray2=m;this.tooltipOpenArray=[];this.zoomShowMarkers(a,c)}else this.markerArray=[],this.tooltipArray=[],this.tooltipArray2=[],this.tooltipOpenArray=[]},bindTooltip:function(a,c,e,g){var f=this;f.gmAddListener(a,"mouseover",
function(){c._isOpen||c.open(f.map,a)});f.gmAddListener(a,"mouseout",function(){c._isOpen||c.close()});f.gmAddListener(a,"click",function(){c.close();f.tooltipOpenArray[0]&&(f.tooltipOpenArray[0].close(),f.tooltipOpenArray[0]._isOpen=!1);c.open(f.map,a);c._isOpen=!0;f.hideShowDetails(g,!0);f.tooltipOpenArray[0]=c});f.gmAddListener(c,"closeclick",function(){c._isOpen=!1})},hideShowDetails:function(a,d){var g=c("#results__branch-info-wrap")[0],f=c("#results__branch-info-wrap-details")[0],h=c("body")[0];
this.resultsScrollPos=c(".branch-finder__results")[0].offsetTop;if(d){this.scrollPos=h.scrollTop;var t=c(".branch-detail \x3e li")[a],q=c(".branch-detail__back-button",t)[0];c(".results__numer-of-results").style("display","none");c(".branch-detail \x3eli").style("display","none");e.set(c(".branch-detail")[0],"display","block");e.set(t,"display","block");e.set(c(".branch-list")[0],"display","none");e.set(g,"display","none");e.set(f,"display","block");q.focus();this.tooltipOpenArray[0]&&(this.tooltipOpenArray[0].close(),
this.tooltipOpenArray[0]._isOpen=!1);this.tooltipArray[a].open(this.map,this.markerArray[a]);this.tooltipOpenArray[0]=this.tooltipArray[a];this.tooltipArray[a]._isOpen=!0;this.map.panTo(this.markerArray[a].getPosition());k.publish("branch_finder/view_branch_details",{branch_details_element:t});m&&(c('.tabs__link[href\x3d"#results__branch-info-wrap"]')[0].click(),h.scrollTop=this.resultsScrollPos)}else t=c(".branch-detail \x3e li")[a],c(".results__numer-of-results").style("display","block"),e.set(t,
"display","none"),e.set(c(".branch-detail")[0],"display","none"),e.set(c(".branch-list")[0],"display","block"),e.set(g,"display","block"),e.set(f,"display","none"),c(".results__branch-info-button")[a].focus(),m&&(h.scrollTop=this.scrollPos)},resetMarkers:function(){var a;if(this.markerArray&&0<this.markerArray.length)for(a=0;a<this.markerArray.length;a++)this.gmRemoveListener(this.markerArray[a]),this.markerArray[a].setMap(null),this.tooltipArray[a].close(),this.tooltipArray2[a].close();this.markerArray=
[];this.tooltipArray=[];this.tooltipArray2=[]},gmAddListener:function(a,c,e){google.maps.event.addListener(a,c,e)},gmRemoveListener:function(a){google.maps.event.clearInstanceListeners(a)},newInfoWinStr:function(a){return'\x3cdiv class\x3d"branch-finder__map-tooltip"\x3e'+a+"\x3c/div\x3e"},gmUserIcon:function(){return{url:this.icon_link+"user-marker.png",anchor:new google.maps.Point(0,29)}},gmNewIcon:function(a,c){return{url:this.icon_link+"map-marker-"+(c+1)+".png",anchor:new google.maps.Point(0,
58)}},gmNewMarker:function(a,c){var e={_isDisplayed:!0,icon:this.gmNewIcon(a,c),map:this.map,position:new google.maps.LatLng(a.Latitude,a.Longitude)};return new google.maps.Marker(e)},gmNewInfoWindow:function(a){return new google.maps.InfoWindow({content:a,maxWidth:1.4*this.mapDim.width})},displayMarker:function(a){a._isDisplayed||(a.setMap(this.map),a._isDisplayed=!0)},hideMarker:function(a){a._isDisplayed&&(a.setMap(null),a._isDisplayed=!1)},resizeMap:function(){google.maps.event.trigger(this.map,
"resize")},getDistanceBetween:function(a,c){return google.maps.geometry.spherical.computeDistanceBetween(a,c)}}})},"dojo/request":function(){define(["./request/default!"],function(f){return f})},"dojo/request/default":function(){define(["exports","require","../has"],function(f,h,a){var e=a("config-requestProvider");e||(e="./xhr");f.getPlatformDefaultId=function(){return"./xhr"};f.load=function(a,c,f,m){h(["platform"==a?"./xhr":e],function(a){f(a)})}})},"dojo/json":function(){define(["./has"],function(f){var h=
"undefined"!=typeof JSON;f.add("json-parse",h);f.add("json-stringify",h&&'{"a":1}'==JSON.stringify({a:0},function(a,g){return g||1}));if(f("json-stringify"))return JSON;var a=function(a){return('"'+a.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};return{parse:f("json-parse")?JSON.parse:function(a,g){if(g&&!/^([\s\[\{]*(?:"(?:\\.|[^"])*"|-?\d[\d\.]*(?:[Ee][+-]?\d+)?|null|true|false|)[\s\]\}]*(?:,|:|$))+$/.test(a))throw new SyntaxError("Invalid characters in JSON");
return eval("("+a+")")},stringify:function(e,g,c){function f(b,d,e){g&&(b=g(e,b));var n;n=typeof b;if("number"==n)return isFinite(b)?b+"":"null";if("boolean"==n)return b+"";if(null===b)return"null";if("string"==typeof b)return a(b);if("function"==n||"undefined"==n)return h;if("function"==typeof b.toJSON)return f(b.toJSON(e),d,e);if(b instanceof Date)return'"{FullYear}-{Month+}-{Date}T{Hours}:{Minutes}:{Seconds}Z"'.replace(/\{(\w+)(\+)?\}/g,function(a,c,d){a=b["getUTC"+c]()+(d?1:0);return 10>a?"0"+
a:a});if(b.valueOf()!==b)return f(b.valueOf(),d,e);var l=c?d+c:"",t=c?" ":"",q=c?"\n":"";if(b instanceof Array){var t=b.length,r=[];for(e=0;e<t;e++)n=f(b[e],l,e),"string"!=typeof n&&(n="null"),r.push(q+l+n);return"["+r.join(",")+q+d+"]"}r=[];for(e in b){var s;if(b.hasOwnProperty(e)){if("number"==typeof e)s='"'+e+'"';else if("string"==typeof e)s=a(e);else continue;n=f(b[e],l,e);"string"==typeof n&&r.push(q+l+s+":"+t+n)}}return"{"+r.join(",")+q+d+"}"}var h;"string"==typeof g&&(c=g,g=null);return f(e,
"","")}}})},"dojo/request/script":function(){define("module ./watch ./util ../_base/array ../_base/lang ../on ../dom ../dom-construct ../has ../_base/window".split(" "),function(f,h,a,e,g,c,k,m,b,d){function p(a,b){a.canDelete&&r._remove(a.id,b.options.frameDoc,!0)}function n(a){A&&A.length&&(e.forEach(A,function(a){r._remove(a.id,a.frameDoc);a.frameDoc=null}),A=[]);return a.options.jsonp?!a.data:!0}function l(a){return!!this.scriptLoaded}function t(a){return(a=a.options.checkString)&&eval("typeof("+
a+') !\x3d\x3d "undefined"')}function q(a,b){if(this.canDelete){var c=this.response.options;A.push({id:this.id,frameDoc:c.ioArgs?c.ioArgs.frameDoc:c.frameDoc});c.ioArgs&&(c.ioArgs.frameDoc=null);c.frameDoc=null}b?this.reject(b):this.resolve(a)}function r(b,d,e){var f=a.parseArgs(b,a.deepCopy({},d));b=f.url;d=f.options;var k=a.deferred(f,p,n,d.jsonp?null:d.checkString?t:l,q);g.mixin(k,{id:s+v++,canDelete:!1});d.jsonp&&(RegExp("[?\x26]"+d.jsonp+"\x3d").test(b)||(b+=(~b.indexOf("?")?"\x26":"?")+d.jsonp+
"\x3d"+(d.frameDoc?"parent.":"")+s+"_callbacks."+k.id),k.canDelete=!0,u[k.id]=function(a){f.data=a;k.handleResponse(f)});a.notify&&a.notify.emit("send",f,k.promise.cancel);if(!d.canAttach||d.canAttach(k)){var m=r._attach(k.id,b,d.frameDoc);if(!d.jsonp&&!d.checkString)var A=c(m,w,function(a){if("load"===a.type||x.test(m.readyState))A.remove(),k.scriptLoaded=a})}h(k);return e?k:k.promise}b.add("script-readystatechange",function(a,b){return"undefined"!==typeof b.createElement("script").onreadystatechange&&
("undefined"===typeof a.opera||"[object Opera]"!==a.opera.toString())});var s=f.id.replace(/[\/\.\-]/g,"_"),v=0,w=b("script-readystatechange")?"readystatechange":"load",x=/complete|loaded/,u=this[s+"_callbacks"]={},A=[];r.get=r;r._attach=function(a,b,c){c=c||d.doc;var e=c.createElement("script");e.type="text/javascript";e.src=b;e.id=a;e.async=!0;e.charset="utf-8";return c.getElementsByTagName("head")[0].appendChild(e)};r._remove=function(a,b,c){m.destroy(k.byId(a,b));u[a]&&(c?u[a]=function(){delete u[a]}:
delete u[a])};r._callbacksProperty=s+"_callbacks";return r})},"dojo/request/watch":function(){define("./util ../errors/RequestTimeoutError ../errors/CancelError ../_base/array ../_base/window ../has!host-browser?dom-addeventlistener?:../on:".split(" "),function(f,h,a,e,g,c){function k(){for(var a=+new Date,c=0,e;c<d.length&&(e=d[c]);c++){var g=e.response,f=g.options;if(e.isCanceled&&e.isCanceled()||e.isValid&&!e.isValid(g))d.splice(c--,1),m._onAction&&m._onAction();else if(e.isReady&&e.isReady(g))d.splice(c--,
1),e.handleResponse(g),m._onAction&&m._onAction();else if(e.startTime&&e.startTime+(f.timeout||0)<a)d.splice(c--,1),e.cancel(new h("Timeout exceeded",g)),m._onAction&&m._onAction()}m._onInFlight&&m._onInFlight(e);d.length||(clearInterval(b),b=null)}function m(a){a.response.options.timeout&&(a.startTime=+new Date);a.isFulfilled()||(d.push(a),b||(b=setInterval(k,50)),a.response.options.sync&&k())}var b=null,d=[];m.cancelAll=function(){try{e.forEach(d,function(b){try{b.cancel(new a("All requests canceled."))}catch(c){}})}catch(b){}};
g&&(c&&g.doc.attachEvent)&&c(g.global,"unload",function(){m.cancelAll()});return m})},"dojo/request/util":function(){define("exports ../errors/RequestError ../errors/CancelError ../Deferred ../io-query ../_base/array ../_base/lang ../promise/Promise".split(" "),function(f,h,a,e,g,c,k,m){function b(a){return p(a)}function d(a){return a.data||a.text}f.deepCopy=function(a,b){for(var c in b){var d=a[c],e=b[c];d!==e&&(d&&"object"===typeof d&&e&&"object"===typeof e?f.deepCopy(d,e):a[c]=e)}return a};f.deepCreate=
function(a,b){b=b||{};var c=k.delegate(a),d,e;for(d in a)(e=a[d])&&"object"===typeof e&&(c[d]=f.deepCreate(e,b[d]));return f.deepCopy(c,b)};var p=Object.freeze||function(a){return a};f.deferred=function(c,g,t,q,r,s){var v=new e(function(b){g&&g(v,c);return!b||!(b instanceof h)&&!(b instanceof a)?new a("Request canceled",c):b});v.response=c;v.isValid=t;v.isReady=q;v.handleResponse=r;t=v.then(b).otherwise(function(a){a.response=c;throw a;});f.notify&&t.then(k.hitch(f.notify,"emit","load"),k.hitch(f.notify,
"emit","error"));q=t.then(d);r=new m;for(var w in q)q.hasOwnProperty(w)&&(r[w]=q[w]);r.response=t;p(r);s&&v.then(function(a){s.call(v,a)},function(a){s.call(v,c,a)});v.promise=r;v.then=r.then;return v};f.addCommonMethods=function(a,b){c.forEach(b||["GET","POST","PUT","DELETE"],function(b){a[("DELETE"===b?"DEL":b).toLowerCase()]=function(c,d){d=k.delegate(d||{});d.method=b;return a(c,d)}})};f.parseArgs=function(a,b,c){var d=b.data,e=b.query;d&&!c&&"object"===typeof d&&(b.data=g.objectToQuery(d));e?
("object"===typeof e&&(e=g.objectToQuery(e)),b.preventCache&&(e+=(e?"\x26":"")+"request.preventCache\x3d"+ +new Date)):b.preventCache&&(e="request.preventCache\x3d"+ +new Date);a&&e&&(a+=(~a.indexOf("?")?"\x26":"?")+e);return{url:a,options:b,getHeader:function(a){return null}}};f.checkStatus=function(a){a=a||0;return 200<=a&&300>a||304===a||1223===a||!a}})},"dojo/errors/RequestError":function(){define(["./create"],function(f){return f("RequestError",function(f,a){this.response=a})})},"dojo/io-query":function(){define(["./_base/lang"],
function(f){var h={};return{objectToQuery:function(a){var e=encodeURIComponent,g=[],c;for(c in a){var k=a[c];if(k!=h[c]){var m=e(c)+"\x3d";if(f.isArray(k))for(var b=0,d=k.length;b<d;++b)g.push(m+e(k[b]));else g.push(m+e(k))}}return g.join("\x26")},queryToObject:function(a){var e=decodeURIComponent;a=a.split("\x26");for(var g={},c,h,m=0,b=a.length;m<b;++m)if(h=a[m],h.length){var d=h.indexOf("\x3d");0>d?(c=e(h),h=""):(c=e(h.slice(0,d)),h=e(h.slice(d+1)));"string"==typeof g[c]&&(g[c]=[g[c]]);f.isArray(g[c])?
g[c].push(h):g[c]=h}return g}}})},"dojo/errors/RequestTimeoutError":function(){define(["./create","./RequestError"],function(f,h){return f("RequestTimeoutError",null,h,{dojoType:"timeout"})})},"waf/components/breaking_news":function(){define(["dojo/on","dojo/query","dojo/dom-class","dojo/_base/fx","dojo/domReady!"],function(f,h,a,e){var g=h(".breaking-news");if(g.length){var c=h(".breaking-news__close");a.add(g[0],"breaking-news--visible");window.Bank of America Corporation.isIE7&&c.forEach(function(a){a.innerHTML="\x26#215;"});
f(c,"click",function(a){a.preventDefault();e.fadeOut({node:h(".breaking-news__wrap",g[0])[0],duration:300}).play();e.animateProperty({node:g[0],duration:500,properties:{height:0},onEnd:function(){g[0].remove()}}).play()})}})},"waf/components/browser_warning":function(){define("dojo/query dojo/_base/array dojo/dom-class dojo/dom-attr dojo/json dojo/_base/fx dojo/fx dojo/on dojo/dom-construct dojo/domReady!".split(" "),function(f,h,a,e,g,c,k,m,b){function d(){h.some(r,function(b,c){if(RegExp(b.regex).test(navigator.userAgent)){var d=
b.message;d.length&&t.innerHTML(d);a.add(l[0],"browser-warning--shown");return!0}c===r.length-1&&p()})}function p(){var a=f(".header--wedge .browser-warning");b.destroy(l[0]);b.destroy(a[0])}function n(){m(q,"click",function(a){a.preventDefault();var b,d;d=f(".header--wedge .browser-warning");a=c.animateProperty({node:l[0],duration:500,properties:{height:0}});d.length&&(b=c.animateProperty({node:d[0],duration:500,properties:{height:0}}));d=c.fadeOut({node:l[0],duration:500,onEnd:function(){p()}});
a.play();b&&b.play();d.play()})}var l=f(".browser-warning"),t=f(".browser-warning__body",l[0]),q=f(".browser-warning__close",l[0]),r=Bank of America Corporation.browser_warnings;l.length&&(d(),n())})},"waf/components/contact_details":function(){require(["dojo/query","dojo/dom-class","dojo/domReady!"],function(f,h){if(f(".contact-details").length&&window.Bank of America Corporation.isIE8){var a=f(".contact-details--full .contact-details__address").last()[0],e=f(".contact-details--with-image").last()[0];h.add(a,"js-last");h.add(e,"js-last")}})},
"waf/components/contact_us":function(){require("dojo/on dojo/html dojo/query dojo/dom-attr dojo/dom-class dojo/dom-style dojo/_base/array dojo/keys dojo/fx dojo/io-query dojo/topic waf/components/contact_us/track waf/components/contact_us/form_handler dojo/NodeList-traverse dojo/domReady!".split(" "),function(f,h,a,e,g,c,k,m,b,d,p){function n(b){b=a(y.panel+"["+z.panelId+'\x3d"'+b+'"]')[0];var c=a(y.content,b)[0],d=a(y.header,b)[0];e.set(b,"aria-hidden","false");e.set(b,"aria-expanded","true");e.set(c,
"aria-hidden","false");d.focus();w(b)}function l(b){b=a(y.panel+"["+z.panelId+'\x3d"'+b+'"]')[0];var c=a(y.content,b)[0],d=a('button[type\x3d"button"]',b);e.set(c,"aria-hidden","true");e.set(b,"aria-expanded","false");d.forEach(function(a){e.set(a,"disabled","disabled")});b&&b.scrollIntoView&&b.scrollIntoView()}function t(b,c){var d=a(y.panel+"["+z.panelId+'\x3d"'+b+'"]')[0],d=a(y.answer,d)[0];""!==c?h.set(d,c):h.set(d,"missing data")}function q(b){e.set(b,"aria-hidden","true");e.set(b,"aria-expanded",
"false");a(y.radio,b).forEach(function(a){e.set(a,"checked",!1)});a('select, input[type\x3d"text"], input[type\x3d"email"]',b).forEach(function(a){a.value=""});a(y.field+"["+z.linkId+"]",b).forEach(function(a){e.set(a,"aria-hidden","true")});e.remove(a(y.submit)[0],"disabled");r(b);v(b)}function r(b){a(y.errorFields+", input, select",b).forEach(function(a){g.remove(a,G.fieldError+" "+G.fieldErrorEmail);e.remove(a,"aria-invalid");e.remove(a,"aria-describedby")})}function s(){var b=a(y.panel)[0];a(y.radio,
b).forEach(function(a){a.checked&&(l(e.get(a,"name")),t(e.get(a,"name"),e.get(a,z.answer)),n(e.get(a,z.nextId)))})}function v(b){a(y.input+", "+y.select+', button[type\x3d"submit"]',b).forEach(function(a){e.set(a,"disabled","disabled")})}function w(b){a(y.input+", "+y.select+", button",b).forEach(function(a){e.remove(a,"disabled")})}function x(d){d=a(y.field+"["+z.linkId+'\x3d"'+d+'"]')[0];e.set(d,"aria-hidden","false");c.set(d,"display","none");b.wipeIn({node:d,duration:P}).play()}function u(c,d){if(c!==
d){var g=a('.contact-us__field[data-linkid\x3d"'+c+'"]')[0];b.wipeOut({node:g,duration:P,onEnd:function(){e.set(g,"aria-hidden","true")}}).play();a("input, select",g).forEach(function(a){a.value=""})}}function A(){f(a(y.headerLink),"click",function(b){b.preventDefault();b=a(this).parents(y.panel)[0];var c=e.get(b,z.panelId),d=e.get(b,z.panelHRI),g=e.get(b,z.panelId);e.get(b,z.panelHRI);var f=a(b).nextAll(y.panel);q(b);n(g);a(f).forEach(function(a){q(a)});p.publish("rtc_track/reset-panel",""!==d?d:
c)});f(a(y.label),"click",function(){var b=a(this).prev('input[type\x3d"radio"]')[0],c=a(this).parents(y.panel)[0],d=e.get(c,z.panelId),g=e.get(c,z.panelHRI),c=a(y.header,c)[0].outerText,f=a(this)[0].outerText,h=e.get(b,z.nextId),k=e.get(b,z.answer),m=e.get(b,z.link);null!==h?(setTimeout(function(){l(d);t(d,k);n(h)},70),b=e.get(a(y.panel+"["+z.panelId+'\x3d"'+h+'"]')[0],z.panelType),p.publish("rtc_track/option-select",c,""!==g?g:d,f,h,b)):null!==m&&setTimeout(function(){x(m)},70)});f(a(y.radio),"keyup",
function(b){var c=a(this).parents(y.panel)[0],d=e.get(c,z.panelId),g=e.get(c,z.panelHRI),c=a(y.header,c)[0].outerText,f=e.get(this,z.nextId),h=a(this).siblings(a(y.label))[0].outerText,k=e.get(this,z.answer),q=e.get(this,z.link);b.keyCode===m.SPACE&&(null!==f?(setTimeout(function(){l(d);t(d,k);n(f)},70),b=e.get(a(y.panel+"["+z.panelId+'\x3d"'+f+'"]')[0],z.panelType),p.publish("rtc_track/option-select",c,""!==g?g:d,h,f,b)):null!==q&&setTimeout(function(){x(q)},70))});f(a(y.select),"change",function(){var b=
e.get(this.options[this.selectedIndex],z.nextId),c=a(this).parents(y.panel)[0],d=e.get(c,z.panelId),f=e.get(c,z.panelHRI),h=g.contains(this,"haslinks"),m,q,r;b?(h=e.get(a(y.panel+"["+z.panelId+'\x3d"'+b+'"]')[0],z.panelType),c=a(y.header,c)[0].outerText,m=e.get(this.options[this.selectedIndex],z.answer),q=a(this.options[this.selectedIndex])[0].outerText,r=void 0,setTimeout(function(){l(d);n(b);t(d,m)},70),p.publish("rtc_track/option-select",c,""!==f?f:d,q,b,h)):h&&(r=e.get(this.options[this.selectedIndex],
z.link),q=m=c=void 0,k.forEach(this.options,function(a){null!==e.has(a,z.link)&&u(e.get(a,z.link),r)}),r&&setTimeout(function(){x(r)},70))});f(a(y.buttonNext),"click",function(){var b=a(this).parents(y.field)[0],c=a(this).parents(y.panel)[0],d=e.get(c,z.panelId),f=e.get(c,z.panelHRI),h=a(y.header,c)[0].outerText,k=e.get(this,z.nextId),m=a("input",b)[0],q=e.get(a("input",b)[0],z.answer),r=e.get(a(y.panel+"["+z.panelId+'\x3d"'+k+'"]')[0],z.panelType);""!==m.value?setTimeout(function(){l(d);n(k);t(d,
q);p.publish("rtc_track/option-select",h,""!==f?f:d,m.value,k,r)},70):(g.add(b,G.fieldError),e.set(m,"aria-invalid","true"),e.set(m,"aria-describedby",k+"-error"))});f(a(".contact-us__field--input-submit input"),"keyup",function(b){if(b.keyCode===m.ENTER){b.preventDefault();b.stopPropagation();var c=this;b=a(c).parents(y.field)[0];var d=a(c).parents(y.panel)[0],f=e.get(d,z.panelId),h=e.get(d,z.panelHRI),k=a(y.header,d)[0].outerText,q=e.get(a(y.buttonNext,b)[0],z.nextId),r=e.get(a(c)[0],z.answer),
s=e.get(a(y.panel+"["+z.panelId+'\x3d"'+q+'"]')[0],z.panelType);""!==c.value?setTimeout(function(){l(f);n(q);t(f,r);p.publish("rtc_track/option-select",k,""!==h?h:f,c.value,q,s)},70):(g.add(b,G.fieldError),e.set(c,"aria-invalid","true"),e.set(c,"aria-describedby",q+"-error"))}});p.subscribe("rtc_form/form-submit",function(a){v(a)});p.subscribe("rtc_form/form-success",function(a,b,c){l(a);t(a,b);n(c)});p.subscribe("rtc_form/form-error",function(a,b,c){l(a);t(a,b);n(c)})}function B(){a(y.disabledPanels).forEach(function(a){q(a)});
s();A()}var y={component:".contact-us",content:".contact-us__content",panel:".contact-us__panel",disabledPanels:'.contact-us__panel[aria-hidden\x3d"true"]',header:".contact-us__panel__header",headerLink:".contact-us__panel__change",field:".contact-us__field",errorFields:".contact-us__field--error",radio:'input[type\x3d"radio"]',label:".contact-us__content label",input:".contact-us__content input",select:".contact-us__content select",answer:".contact-us__panel__answer",submit:'button[type\x3d"submit"]',
buttonNext:".contact-us__button--next button"},z={panelId:"data-nodeid",panelHRI:"data-hri",panelType:"data-paneltype",nextId:"data-nextnode",answer:"data-answer",link:"data-link",linkId:"data-linkid"},G={fieldError:"contact-us__field--error",fieldErrorEmail:"contact-us__field--email-error"},P=100;a(y.component)[0]&&B()})},"dojo/html":function(){define("./_base/kernel ./_base/lang ./_base/array ./_base/declare ./dom ./dom-construct ./parser".split(" "),function(f,h,a,e,g,c,k){var m={};h.setObject("dojo.html",
m);var b=0;m._secureForInnerHtml=function(a){return a.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"")};m._emptyNode=c.empty;m._setNodeContent=function(a,b){c.empty(a);if(b)if("string"==typeof b&&(b=c.toDom(b,a.ownerDocument)),!b.nodeType&&h.isArrayLike(b))for(var e=b.length,g=0;g<b.length;g=e==b.length?g+1:0)c.place(b[g],a,"last");else c.place(b,a,"last");return a};m._ContentSetter=e("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:!1,extractContent:!1,
parseContent:!1,parserScope:f._scopeName,startup:!0,constructor:function(a,c){h.mixin(this,a||{});c=this.node=g.byId(this.node||c);this.id||(this.id=["Setter",c?c.id||c.tagName:"",b++].join("_"))},set:function(a,b){void 0!==a&&(this.content=a);b&&this._mixin(b);this.onBegin();this.setContent();var c=this.onEnd();return c&&c.then?c:this.node},setContent:function(){var a=this.node;if(!a)throw Error(this.declaredClass+": setContent given no node");try{a=m._setNodeContent(a,this.content)}catch(b){var c=
this.onContentError(b);try{a.innerHTML=c}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e)}}this.node=a},empty:function(){this.parseDeferred&&(this.parseDeferred.isResolved()||this.parseDeferred.cancel(),delete this.parseDeferred);this.parseResults&&this.parseResults.length&&(a.forEach(this.parseResults,function(a){a.destroy&&a.destroy()}),delete this.parseResults);c.empty(this.node)},onBegin:function(){var a=this.content;if(h.isString(a)&&
(this.cleanContent&&(a=m._secureForInnerHtml(a)),this.extractContent)){var b=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);b&&(a=b[1])}this.empty();this.content=a;return this.node},onEnd:function(){this.parseContent&&this._parse();return this.node},tearDown:function(){delete this.parseResults;delete this.parseDeferred;delete this.node;delete this.content},onContentError:function(a){return"Error occurred setting content: "+a},onExecError:function(a){return"Error occurred executing scripts: "+a},
_mixin:function(a){var b={},c;for(c in a)c in b||(this[c]=a[c])},_parse:function(){var b=this.node;try{var c={};a.forEach(["dir","lang","textDir"],function(a){this[a]&&(c[a]=this[a])},this);var e=this;this.parseDeferred=k.parse({rootNode:b,noStart:!this.startup,inherited:c,scope:this.parserScope}).then(function(a){return e.parseResults=a},function(a){e._onError("Content",a,"Error parsing in _ContentSetter#"+this.id)})}catch(g){this._onError("Content",g,"Error parsing in _ContentSetter#"+this.id)}},
_onError:function(a,b,c){a=this["on"+a+"Error"].call(this,b);c?console.error(c,b):a&&m._setNodeContent(this.node,a,!0)}});m.set=function(a,b,c){void 0==b&&(console.warn("dojo.html.set: no cont argument provided, using empty string"),b="");return c?(new m._ContentSetter(h.mixin(c,{content:b,node:a}))).set():m._setNodeContent(a,b,!0)};return m})},"waf/components/contact_us/track":function(){require(["dojo/query","dojo/topic","dojo/NodeList-traverse","dojo/domReady!"],function(f,h){function a(){h.subscribe("rtc_track/option-select",
function(a,g,c,f,h){return!0});h.subscribe("rtc_track/form-submit",function(a,g){return!0});h.subscribe("rtc_track/reset-panel",function(a){return!0})}f(".contact-us")[0]&&a()})},"waf/components/contact_us/form_handler":function(){require("dojo/on dojo/query dojo/dom-attr dojo/dom-class dojo/dom-style dojo/_base/array dojo/dom-form dojo/request/xhr dojo/topic dojo/keys dojo/NodeList-traverse dojo/domReady!".split(" "),function(f,h,a,e,g,c,k,m,b,d){function p(b){b=h('.contact-us__field:not([aria-hidden\x3d"true"]) ['+
s.required+"]",b);var d=/^.+@.+\..+$/,g=[],f=!0;c.forEach(b,function(b){var c=a.get(b,"id");e.remove(h(b).parents(w.field)[0],r.fieldErrorEmail+" "+r.fieldError);a.remove(b,"aria-invalid");a.remove(b,"aria-describedby");""===b.value?(e.add(h(b).parents(w.field)[0],r.fieldError),a.set(b,"aria-invalid","true"),a.set(b,"aria-describedby",c+"-error"),g.push(b),f=!1):"email"===a.get(b,"type")&&(null!==d.exec(b.value)?(e.remove(h(b).parents(w.field)[0],r.fieldError+" "+r.fieldErrorEmail),a.remove(b,"aria-invalid"),
a.remove(b,"aria-describedby"),f=!0):(e.add(h(b).parents(w.field)[0],r.fieldError+" "+r.fieldErrorEmail),a.set(b,"aria-invalid","true"),a.set(b,"aria-describedby",c+"-emailerror"),g.push(b),f=!1))});if(f)return!0;g[0].focus();return!1}function n(a){var b={};h("["+s.atlasTrack+"]",a).forEach(function(a){var c=a.getAttribute(s.atlasTrack);b[c]=a.value});return b}function l(c){function d(){b.publish("rtc_form/form-error",c,l,v.formError)}var e=h(w.form)[0],e=k.toObject(e),g=h(w.panel+"["+s.panelId+'\x3d"'+
c+'"]')[0],f=h(w.submit,g)[0],l=a.get(f,s.answer),f=a.get(h(w.form)[0],"action"),g=n(g);f?(m(f,{method:"POST",handleAs:"json",data:e}).then(function(a){!0===a.success?b.publish("rtc_form/form-success",c,l,v.formSuccess):d()},function(a){""!==a&&d()}),b.publish("rtc_track/form-submit",g)):d()}function t(){var c=h(w.expandedPanel)[0],d=a.get(c,s.panelId);h(w.submit,c)[0]&&p(c)&&(l(d),b.publish("rtc_form/form-submit",c))}function q(){f(h(w.field+' input[type\x3d"text"]'),"keyup",function(a){a.keyCode===
d.ENTER&&t()});f(h(w.form)[0],"submit",function(a){a.preventDefault();t()})}var r={fieldError:"contact-us__field--error",fieldErrorEmail:"contact-us__field--email-error"},s={answer:"data-answer",atlasTrack:"data-atlastrack-name",panelId:"data-nodeid",required:"aria-required"},v={formError:"form-error",formSuccess:"form-success"},w={expandedPanel:'.contact-us__panel[aria-expanded\x3d"true"]',form:".contact-us__form",field:".contact-us__field",panel:".contact-us__panel",submit:'button[type\x3d"submit"]'};
h(w.form)[0]&&q()})},"dojo/dom-form":function(){define(["./_base/lang","./dom","./io-query","./json"],function(f,h,a,e){var g={fieldToObject:function(a){var e=null;if(a=h.byId(a)){var g=a.name,b=(a.type||"").toLowerCase();if(g&&b&&!a.disabled)if("radio"==b||"checkbox"==b)a.checked&&(e=a.value);else if(a.multiple){e=[];for(a=[a.firstChild];a.length;)for(g=a.pop();g;g=g.nextSibling)if(1==g.nodeType&&"option"==g.tagName.toLowerCase())g.selected&&e.push(g.value);else{g.nextSibling&&a.push(g.nextSibling);
g.firstChild&&a.push(g.firstChild);break}}else e=a.value}return e},toObject:function(a){var e={};a=h.byId(a).elements;for(var m=0,b=a.length;m<b;++m){var d=a[m],p=d.name,n=(d.type||"").toLowerCase();if(p&&n&&0>"file|submit|image|reset|button".indexOf(n)&&!d.disabled){var l=e,t=p,d=g.fieldToObject(d);if(null!==d){var q=l[t];"string"==typeof q?l[t]=[q,d]:f.isArray(q)?q.push(d):l[t]=d}"image"==n&&(e[p+".x"]=e[p+".y"]=e[p].x=e[p].y=0)}}return e},toQuery:function(c){return a.objectToQuery(g.toObject(c))},
toJson:function(a,f){return e.stringify(g.toObject(a),null,f?4:0)}};return g})},"dojo/request/xhr":function(){define(["../errors/RequestError","./watch","./handlers","./util","../has"],function(f,h,a,e,g){function c(b,c){var d=b.xhr;b.status=b.xhr.status;b.text=d.responseText;"xml"===b.options.handleAs&&(b.data=d.responseXML);if(!c)try{a(b)}catch(g){c=g}c?this.reject(c):e.checkStatus(d.status)?this.resolve(b):(c=new f("Unable to load "+b.url+" status: "+d.status,b),this.reject(c))}function k(a){return this.xhr.getResponseHeader(a)}
function m(a,q,r){var x=e.parseArgs(a,e.deepCreate(t,q),g("native-formdata")&&q&&q.data&&q.data instanceof FormData);a=x.url;q=x.options;var u,A=e.deferred(x,n,b,d,c,function(){u&&u()}),B=x.xhr=m._create();if(!B)return A.cancel(new f("XHR was not created")),r?A:A.promise;x.getHeader=k;p&&(u=p(B,A,x));var y=q.data,z=!q.sync,G=q.method;try{B.open(G,a,z,q.user||l,q.password||l);q.withCredentials&&(B.withCredentials=q.withCredentials);var P=q.headers;a="application/x-www-form-urlencoded";if(P)for(var E in P)"content-type"===
E.toLowerCase()?a=P[E]:P[E]&&B.setRequestHeader(E,P[E]);a&&!1!==a&&B.setRequestHeader("Content-Type",a);(!P||!("X-Requested-With"in P))&&B.setRequestHeader("X-Requested-With","XMLHttpRequest");e.notify&&e.notify.emit("send",x,A.promise.cancel);B.send(y)}catch(M){A.reject(M)}h(A);B=null;return r?A:A.promise}g.add("native-xhr",function(){return"undefined"!==typeof XMLHttpRequest});g.add("dojo-force-activex-xhr",function(){return g("activex")&&!document.addEventListener&&"file:"===window.location.protocol});
g.add("native-xhr2",function(){if(g("native-xhr")){var a=new XMLHttpRequest;return"undefined"!==typeof a.addEventListener&&("undefined"===typeof opera||"undefined"!==typeof a.upload)}});g.add("native-formdata",function(){return"function"===typeof FormData});var b,d,p,n;g("native-xhr2")?(b=function(a){return!this.isFulfilled()},n=function(a,b){b.xhr.abort()},p=function(a,b,c){function d(a){b.handleResponse(c)}function e(a){a=new f("Unable to load "+c.url+" status: "+a.target.status,c);b.handleResponse(c,
a)}function g(a){a.lengthComputable&&(c.loaded=a.loaded,c.total=a.total,b.progress(c))}a.addEventListener("load",d,!1);a.addEventListener("error",e,!1);a.addEventListener("progress",g,!1);return function(){a.removeEventListener("load",d,!1);a.removeEventListener("error",e,!1);a.removeEventListener("progress",g,!1);a=null}}):(b=function(a){return a.xhr.readyState},d=function(a){return 4===a.xhr.readyState},n=function(a,b){var c=b.xhr,d=typeof c.abort;("function"===d||"object"===d||"unknown"===d)&&
c.abort()});var l,t={data:null,query:null,sync:!1,method:"GET"};m._create=function(){throw Error("XMLHTTP not available");};if(g("native-xhr")&&!g("dojo-force-activex-xhr"))m._create=function(){return new XMLHttpRequest};else if(g("activex"))try{new ActiveXObject("Msxml2.XMLHTTP"),m._create=function(){return new ActiveXObject("Msxml2.XMLHTTP")}}catch(q){try{new ActiveXObject("Microsoft.XMLHTTP"),m._create=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}catch(r){}}e.addCommonMethods(m);return m})},
"dojo/request/handlers":function(){define(["../json","../_base/kernel","../_base/array","../has","../selector/_loader"],function(f,h,a,e){function g(a){var c=m[a.options.handleAs];a.data=c?c(a):a.data||a.text;return a}e.add("activex","undefined"!==typeof ActiveXObject);e.add("dom-parser",function(a){return"DOMParser"in a});var c;if(e("activex")){var k=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML.DOMDocument"];c=function(b){var c=b.data;c&&(e("dom-qsa2.1")&&!c.querySelectorAll&&
e("dom-parser"))&&(c=(new DOMParser).parseFromString(b.text,"application/xml"));if(!c||!c.documentElement){var g=b.text;a.some(k,function(a){try{var b=new ActiveXObject(a);b.async=!1;b.loadXML(g);c=b}catch(e){return!1}return!0})}return c}}var m={javascript:function(a){return h.eval(a.text||"")},json:function(a){return f.parse(a.text||null)},xml:c};g.register=function(a,c){m[a]=c};return g})},"waf/components/content_promo_boxes":function(){require("dojo/query dojo/on dojo/dom-class dojo/dom-style waf/lib/equalise_heights waf/lib/on_window_resize dojo/domReady!".split(" "),
function(f,h,a,e,g,c){function k(){560<window.innerWidth?g(d):d.style("height","auto")}function m(){b.forEach(function(b,c){0===c%3-2&&a.add(b,"content-promo--last")})}var b=f(".content-promo"),d;h=f(".lt-ie9").length;b.length&&(d=f(".content-promo__copy",b[0]),h?m():(c(k,this),k()))})},"waf/lib/equalise_heights":function(){define(["dojo/_base/array","dojo/_base/lang","dojo/dom-style","dojo/dom-geometry","dojo/NodeList-dom"],function(f,h,a,e){function g(c,b,d){1>=c.length||f.forEach(c,function(c){a.set(c,
d,b+"px")})}function c(c,b){var d=0;c.forEach(function(c){a.set(c,b,"");c=e.getContentBox(c).h;c>d&&(d=c)});g(c,d,b)}function k(a,b){var c=[],f=0,h=0;a.forEach(function(a){var k=e.getContentBox(a),m=e.position(a);0===h&&(h=m.y);h===m.y?(c.push(a),k.h>f&&(f=k.h)):(g(c,f,b),c=[],f=0,h=m.y)});0<c.length&&g(c,f,b)}return function(a,b){if(a.length){var d=h.mixin(h.clone({use_y_offset:!1,use_min_height:!1}),b),e=!0===d.use_min_height?"minHeight":"height";a.style(e,"");d.use_y_offset?k(a,e):c(a,e)}}})},
"waf/components/cookie_notification":function(){define("dojo/query dojo/dom-class dojo/_base/fx dojo/cookie dojo/on dojo/dom-construct dojo/domReady!".split(" "),function(f,h,a,e,g,c){var k=f(".cookie-notification"),m=f(".cookie-notification--external"),b=f(".cookie-notification__close"),d=f(".cookie-notification--enabled")[0],p=f(".cookie-notification--disabled")[0],n=e("viewCount")||0;k&&(n*=1,3>n&&(m.style("display","block"),e("viewCount",n+1,{path:"/"})),g(b,"click",function(b){b.preventDefault();
var g=f(b.target).closest(".cookie-notification")[0];e("viewCount",3,{path:"/"});a.fadeOut({node:g,duration:500,onEnd:function(){c.destroy(g);e("viewCount")?h.add(d,"cookie-notification--visible"):h.add(p,"cookie-notification--visible")}}).play()}))})},"waf/components/country_selector":function(){require("dojo/query dojo/dom-attr dojo/dom-class dojo/on dojo/_base/array dojo/mouse dojo/touch dojo/_base/window dijit/focus dojo/keys dojo/topic dojo/domReady!".split(" "),function(f,h,a,e,g,c,k,m,b,d,
p){function n(){var a=h.get(y,"data-country-code");a&&h.set(Q,"src",s+a+".png")}function l(){"undefined"!==typeof P&&!a.contains(P,w)&&(g.forEach(E,function(a,b){var c=h.get(E[b],"data-country-code");c&&h.set(M[b],"src",s+c+".png")}),a.add(P,w))}function t(){u=!1;a.remove(B,v);b.focus(y);h.set(y,"aria-expanded","false")}function q(){e(y,"click",function(b){b.preventDefault();u?t():(u=!0,l(),a.add(B,v),h.set(y,"aria-expanded","true"));window.Bank of America Corporation.isIE7&&p.publish("icons/set")});e(A,"focusin",function(){t()});
e(m.doc,"keydown",function(a){a.keyCode===d.ESCAPE&&u&&t()});e(m.body(),"click, touchstart",function(a){L=f(a.target).parents(".country-selector__dropdown")[0];H=f(a.target).parents(".country-selector")[0];u&&(!L&&!H)&&t()});e(G,"click",function(b){b.preventDefault();f(G).forEach(function(a){h.set(a,"aria-selected","false")});f(z).removeClass(x);a.add(this.parentNode,x);h.set(this,"aria-selected","true")})}function r(){I=f("span span",y)[0];D=f(".country-selector__option__anchor \x3e span",B);I.innerHTML+=
"\x26#8206";g.forEach(D,function(a){a.innerHTML+="\x26#8206"});D=I=null}var s="/assets/PWS171/images/icons/flags/",v="country-selector--active",w="country-selector--loaded-flags",x="country-selector__region--active",u=!1,A=f("#country-selector__focus-catch")[0],B=f(".country-selector")[0];c=f(".country-selector__dropdown",B)[0];var y=f(".country-selector__current",B)[0],z=f(".country-selector__region",B),G=f(".country-selector__tab",B),P=f(".country-selector__global-list",B)[0],E=f(".country-selector__option",
B),M=f(".country-selector__country-flag",c),Q=f(".country-selector__country-flag--current",B)[0];c=f("html")[0];var I={},L={},H={},D={};B&&(n(),q(),"rtl"===h.get(c,"dir")&&a.contains(c,"lt-ie8")&&r())})},"dojo/touch":function(){define("./_base/kernel ./aspect ./dom ./dom-class ./_base/lang ./on ./has ./mouse ./domReady ./_base/window".split(" "),function(f,h,a,e,g,c,k,m,b,d){function p(a,b,d){return r&&d?function(a,b){return c(a,d,b)}:t?function(d,e){var g=c(d,b,e),f=c(d,a,function(a){(!z||(new Date).getTime()>
z+1E3)&&e.call(this,a)});return{remove:function(){g.remove();f.remove()}}}:function(b,d){return c(b,a,d)}}function n(a){do if(a.dojoClick)return a.dojoClick;while(a=a.parentNode)}function l(b,g,f){if(v=!b.target.disabled&&n(b.target))w=b.target,x=b.touches?b.touches[0].pageX:b.clientX,u=b.touches?b.touches[0].pageY:b.clientY,A=("object"==typeof v?v.x:"number"==typeof v?v:0)||4,B=("object"==typeof v?v.y:"number"==typeof v?v:0)||4,s||(s=!0,d.doc.addEventListener(g,function(a){v=v&&a.target==w&&Math.abs((a.touches?
a.touches[0].pageX:a.clientX)-x)<=A&&Math.abs((a.touches?a.touches[0].pageY:a.clientY)-u)<=B},!0),d.doc.addEventListener(f,function(b){if(v){y=(new Date).getTime();var d=b.target;"LABEL"===d.tagName&&(d=a.byId(d.getAttribute("for"))||d);setTimeout(function(){c.emit(d,"click",{bubbles:!0,cancelable:!0,_dojo_click:!0})})}},!0),b=function(a){d.doc.addEventListener(a,function(b){!b._dojo_click&&((new Date).getTime()<=y+1E3&&!("INPUT"==b.target.tagName&&e.contains(b.target,"dijitOffScreen")))&&(b.stopPropagation(),
b.stopImmediatePropagation&&b.stopImmediatePropagation(),"click"==a&&(("INPUT"!=b.target.tagName||"radio"==b.target.type||"checkbox"==b.target.type)&&"TEXTAREA"!=b.target.tagName)&&b.preventDefault())},!0)},b("click"),b("mousedown"),b("mouseup"))}var t=k("touch"),q=5>k("ios"),r=navigator.msPointerEnabled,s,v,w,x,u,A,B,y,z,G;t&&(r?b(function(){d.doc.addEventListener("MSPointerDown",function(a){l(a,"MSPointerMove","MSPointerUp")},!0)}):b(function(){function a(b){var c=g.delegate(b,{bubbles:!0});6<=
k("ios")&&(c.touches=b.touches,c.altKey=b.altKey,c.changedTouches=b.changedTouches,c.ctrlKey=b.ctrlKey,c.metaKey=b.metaKey,c.shiftKey=b.shiftKey,c.targetTouches=b.targetTouches);return c}G=d.body();d.doc.addEventListener("touchstart",function(a){z=(new Date).getTime();var b=G;G=a.target;c.emit(b,"dojotouchout",{relatedTarget:G,bubbles:!0});c.emit(G,"dojotouchover",{relatedTarget:b,bubbles:!0});l(a,"touchmove","touchend")},!0);c(d.doc,"touchmove",function(b){z=(new Date).getTime();var e=d.doc.elementFromPoint(b.pageX-
(q?0:d.global.pageXOffset),b.pageY-(q?0:d.global.pageYOffset));e&&(G!==e&&(c.emit(G,"dojotouchout",{relatedTarget:e,bubbles:!0}),c.emit(e,"dojotouchover",{relatedTarget:G,bubbles:!0}),G=e),c.emit(e,"dojotouchmove",a(b)))});c(d.doc,"touchend",function(b){z=(new Date).getTime();var e=d.doc.elementFromPoint(b.pageX-(q?0:d.global.pageXOffset),b.pageY-(q?0:d.global.pageYOffset))||d.body();c.emit(e,"dojotouchend",a(b))})}));h={press:p("mousedown","touchstart","MSPointerDown"),move:p("mousemove","dojotouchmove",
"MSPointerMove"),release:p("mouseup","dojotouchend","MSPointerUp"),cancel:p(m.leave,"touchcancel",t?"MSPointerCancel":null),over:p("mouseover","dojotouchover","MSPointerOver"),out:p("mouseout","dojotouchout","MSPointerOut"),enter:m._eventHandler(p("mouseover","dojotouchover","MSPointerOver")),leave:m._eventHandler(p("mouseout","dojotouchout","MSPointerOut"))};return f.touch=h})},"dijit/focus":function(){define("dojo/aspect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/Evented dojo/_base/lang dojo/on dojo/domReady dojo/sniff dojo/Stateful dojo/_base/window dojo/window ./a11y ./registry ./main".split(" "),
function(f,h,a,e,g,c,k,m,b,d,p,n,l,t,q,r,s){var v,w=new (h([n,k],{curNode:null,activeStack:[],constructor:function(){var b=m.hitch(this,function(b){a.isDescendant(this.curNode,b)&&this.set("curNode",null);a.isDescendant(this.prevNode,b)&&this.set("prevNode",null)});f.before(c,"empty",b);f.before(c,"destroy",b)},registerIframe:function(a){return this.registerWin(a.contentWindow,a)},registerWin:function(a,c){var d=this,e=a.document&&a.document.body;if(e){var g=b(a.document,"mousedown, touchstart",function(a){d._justMouseDowned=
!0;setTimeout(function(){d._justMouseDowned=!1},0);if(!a||!(a.target&&null==a.target.parentNode))d._onTouchNode(c||a.target,"mouse")}),f=b(e,"focusin",function(a){v=(new Date).getTime();if(a.target.tagName){var b=a.target.tagName.toLowerCase();"#document"==b||"body"==b||(q.isFocusable(a.target)?d._onFocusNode(c||a.target):d._onTouchNode(c||a.target))}}),h=b(e,"focusout",function(a){(new Date).getTime()<v+100||d._onBlurNode(c||a.target)});return{remove:function(){g.remove();f.remove();h.remove();e=
g=f=h=null}}}},_onBlurNode:function(a){this._clearFocusTimer&&clearTimeout(this._clearFocusTimer);this._clearFocusTimer=setTimeout(m.hitch(this,function(){this.set("prevNode",this.curNode);this.set("curNode",null)}),0);this._justMouseDowned||(this._clearActiveWidgetsTimer&&clearTimeout(this._clearActiveWidgetsTimer),this._clearActiveWidgetsTimer=setTimeout(m.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([])}),0))},_onTouchNode:function(a,b){this._clearActiveWidgetsTimer&&
(clearTimeout(this._clearActiveWidgetsTimer),delete this._clearActiveWidgetsTimer);g.contains(a,"dijitPopup")&&(a=a.firstChild);var c=[];try{for(;a;){var d=e.get(a,"dijitPopupParent");if(d)a=r.byId(d).domNode;else if(a.tagName&&"body"==a.tagName.toLowerCase()){if(a===l.body())break;a=t.get(a.ownerDocument).frameElement}else{var f=a.getAttribute&&a.getAttribute("widgetId"),h=f&&r.byId(f);h&&!("mouse"==b&&h.get("disabled"))&&c.unshift(f);a=a.parentNode}}}catch(k){}this._setStack(c,b)},_onFocusNode:function(a){a&&
9!=a.nodeType&&(this._clearFocusTimer&&(clearTimeout(this._clearFocusTimer),delete this._clearFocusTimer),this._onTouchNode(a),a!=this.curNode&&(this.set("prevNode",this.curNode),this.set("curNode",a)))},_setStack:function(a,b){var c=this.activeStack,d=c.length-1,e=a.length-1;if(a[e]!=c[d]){this.set("activeStack",a);var g;for(g=d;0<=g&&c[g]!=a[g];g--)if(d=r.byId(c[g]))d._hasBeenBlurred=!0,d.set("focused",!1),d._focusManager==this&&d._onBlur(b),this.emit("widget-blur",d,b);for(g++;g<=e;g++)if(d=r.byId(a[g]))d.set("focused",
!0),d._focusManager==this&&d._onFocus(b),this.emit("widget-focus",d,b)}},focus:function(a){if(a)try{a.focus()}catch(b){}}}));d(function(){var a=w.registerWin(t.get(document));p("ie")&&b(window,"unload",function(){a&&(a.remove(),a=null)})});s.focus=function(a){w.focus(a)};for(var x in w)/^_/.test(x)||(s.focus[x]="function"==typeof w[x]?m.hitch(w,x):w[x]);w.watch(function(a,b,c){s.focus[a]=c});return w})},"dijit/a11y":function(){define("dojo/_base/array dojo/dom dojo/dom-attr dojo/dom-style dojo/_base/lang dojo/sniff ./main".split(" "),
function(f,h,a,e,g,c,k){var m={_isElementShown:function(b){var c=e.get(b);return"hidden"!=c.visibility&&"collapsed"!=c.visibility&&"none"!=c.display&&"hidden"!=a.get(b,"type")},hasDefaultTabStop:function(b){switch(b.nodeName.toLowerCase()){case "a":return a.has(b,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return!0;case "iframe":var c;try{var e=b.contentDocument;if("designMode"in e&&"on"==e.designMode)return!0;c=e.body}catch(g){try{c=b.contentWindow.document.body}catch(f){return!1}}return c&&
("true"==c.contentEditable||c.firstChild&&"true"==c.firstChild.contentEditable);default:return"true"==b.contentEditable}},effectiveTabIndex:function(b){return a.get(b,"disabled")?void 0:a.has(b,"tabIndex")?+a.get(b,"tabIndex"):m.hasDefaultTabStop(b)?0:void 0},isTabNavigable:function(a){return 0<=m.effectiveTabIndex(a)},isFocusable:function(a){return-1<=m.effectiveTabIndex(a)},_getTabNavigable:function(b){function d(a){return a&&"input"==a.tagName.toLowerCase()&&a.type&&"radio"==a.type.toLowerCase()&&
a.name&&a.name.toLowerCase()}var e,g,f,h,k,r,s={},v=m._isElementShown,w=m.effectiveTabIndex,x=function(b){for(b=b.firstChild;b;b=b.nextSibling)if(!(1!=b.nodeType||9>=c("ie")&&"HTML"!==b.scopeName||!v(b))){var m=w(b);if(0<=m){if(0==m)e||(e=b),g=b;else if(0<m){if(!f||m<h)h=m,f=b;if(!k||m>=r)r=m,k=b}m=d(b);a.get(b,"checked")&&m&&(s[m]=b)}"SELECT"!=b.nodeName.toUpperCase()&&x(b)}};v(b)&&x(b);return{first:s[d(e)]||e,last:s[d(g)]||g,lowest:s[d(f)]||f,highest:s[d(k)]||k}},getFirstInTabbingOrder:function(a,
c){var e=m._getTabNavigable(h.byId(a,c));return e.lowest?e.lowest:e.first},getLastInTabbingOrder:function(a,c){var e=m._getTabNavigable(h.byId(a,c));return e.last?e.last:e.highest}};g.mixin(k,m);return m})},"waf/components/cta_box":function(){require(["dojo/query","dojo/dom-construct","waf/plugins/append_around","dojo/domReady!"],function(f,h,a){f=f(".cta-box__inner");var e;f.length&&(e=f.closest(".layout--3-3-3-3"),e.length&&(h.place('\x3cdiv class\x3d"cta-box cta-box--compact cta-box__mobile" data-set\x3d"cta-compact"\x3e\x3c/div\x3e',
e[0],"last"),a.appendAround(f)))})},"waf/components/customer_facts":function(){require("dojo/query dojo/has waf/lib/equalise_heights waf/lib/on_window_resize dojo/NodeList-dom dojo/domReady!".split(" "),function(f,h,a,e){a(f(".customer-facts__primary .customer-facts__facts-item__inner"));e(function(){a(f(".customer-facts__primary .customer-facts__facts-item__inner"))});8>=h("ie")&&f(".customer-facts__primary .customer-facts__facts-item:nth-child(even)").addClass("customer-facts__facts-item--even")})},
"waf/components/exec_biography":function(){require("dojo/_base/fx dojo/query dojo/on dojo/dom-class dojo/dom-style dojo/dom-attr dojo/fx/easing dojo/_base/array dojo/dom-geometry dojo/topic waf/lib/on_window_resize dojo/domReady!".split(" "),function(f,h,a,e,g,c,k,m,b,d,p){function n(){f.animateProperty({node:z[0],duration:Q?0:300,properties:{height:x},easing:k.circInOut,onPlay:l,onEnd:function(){e.contains(y[0],"exec-bio__more--open")&&g.set(z[0],"height",E?c.get(z[0],"data-open-height"):"auto");
window.Bank of America Corporation.isIE7&&d.publish("icons/set")}}).play()}function l(){e.toggle(y[0],"exec-bio__more--open");y.children("span").innerHTML(B);c.set(y[0],"data-state-text",A)}function t(a){y=h(a).closest(".exec-bio__more");z=y.siblings(".exec-bio__text");B=c.get(y[0],"data-state-text");A=y.children("span").innerHTML();M=c.get(z[0],"data-closed-height");e.contains(y[0],"exec-bio__more--open")?x=M?M:w:(G=z.children(),m.forEach(G,function(){x=c.get(z[0],"data-open-height")}))}function q(){m.forEach(r,function(a){z=
h(".exec-bio__text",a)[0];u=h(".exec-bio__text p",a).length;y=h(".exec-bio__more",a)[0];E=b.getContentBox(h(".exec-bio__text__inner",a)[0]).h;1===u&&b.getContentBox(h("p",a)[0]).h<=w?e.add(y,v):(e.remove(y,v),2>u||(P=b.getContentBox(h("p",a)[0]).h,c.set(z,{"data-closed-height":P,"data-open-height":E}),e.contains(h(".exec-bio__more",a)[0],"exec-bio__more--open")?g.set(z,"height",E+"px"):g.set(z,"height",P+"px")))})}var r=h(".exec-bio"),s=h(".exec-bio__more"),v="exec-bio__more--hidden",w=70,x=0,u,A,
B,y,z,G,P,E,M,Q=e.contains(h("html")[0],"lt-ie9");r.length&&(q(),p(q,this),a(s,"click",function(a){t(a.target);n();a.preventDefault()}))})},"waf/components/filter":function(){require("dojo/_base/window dojo/_base/array dojo/on dojo/query dojo/dom-class dojo/dom-attr dojo/topic dojo/domReady!".split(" "),function(f,h,a,e,g,c,k){function m(){var a="";h.forEach(t,function(b,c){if(!e(b).attr("disabled")[0]){a+=e(b).attr("data-target")+"\x3d";var d=dojo.query(b).children().children().children("input:checked");
h.forEach(d,function(b,c){a+=e(b).attr("data-src")});e(b).attr("data-target");c<t.length-1&&(a+="\x26")}});return a}function b(a){var b=a.split(",");h.forEach(t,function(a,d){h.forEach(b,function(b,d){e(a).attr("data-target")==b&&(g.add(a,"inactive"),c.set(a,"disabled","true"))})})}e(".filter__checkbox--all");var d=e(".filter__checkbox"),p=e(".filter__radio"),n=e(".article-promo__heading a"),l=e(".pagination__list-item a"),t=e(".filter__fieldset");(function(){a(d,"click",function(a){var b=dojo.query(this).parent(".filter__field"),
d=dojo.query(b).siblings(".filter__field");a=dojo.query(d).children(".filter__checkbox");d=d.children(".filter__checkbox--all");b=b.parent().siblings(".filter__legend");if(g.contains(this,"filter__checkbox--all"))1==this.checked&&a.attr("checked",!1);else if(1==this.checked)d.attr("checked",!1);else for(i=1;i<a.length;i++);a=c.get(this,"data-src");k.publish("filter_checkbox",{item_element:a,form_field_1:b.text()})});a(p,"click",function(a){h.forEach(t,function(a,b){g.remove(a,"inactive");c.remove(a,
"disabled")});a=c.get(this,"data-src");var d=c.get(this,"data-ignore");0<d.length&&b(d);k.publish("filter_radio",{item_element:a})})})();(function(){var b=e(".filter__submit");a(b,"click",function(a){a.preventDefault();a=c.get(this,"href");-1<a.indexOf("?")&&(a=a.substring(0,a.indexOf("?")+1));a+=m();c.set(this,"href",a);a=c.get(this,"href");k.publish("filter_submit",{item_element:a});window.location=a})})();(function(){a(n,"click",function(a){a=c.get(this,"href");var b=dojo.query(this).children("span").text(),
d=dojo.query(this).parent(".article-promo__heading").siblings(".article-promo__label").children("span").text(),e=m();k.publish("filter_article_link",{item_href:a,item_text:b,item_type:d,item_scope:e})})})();(function(){a(l,"click",function(a){k.publish("filter_pagination",{item_text:this.text})})})()})},"waf/components/footer":function(){require(["dojo/query","dojo/on","waf/lib/equalise_heights","waf/lib/on_window_resize","dojo/domReady!"],function(f,h,a,e){function g(){a(c)}if(!f(".lt-ie9").length){h=
f(".footer");h=f(".footer__primary__list",h[0]);var c=f(".footer__item",h[0]);e(g,this);g()}})},"waf/components/form":function(){require(["dojo/_base/window","dojo/on","dojo/query","dojo/dom-class","dojo/domReady!"],function(f,h,a,e){h(f.body(),".form--fancy__select select:focusin",function(){e.add(a(this).parents(".form--fancy__select")[0],"form--fancy__select--focus")});h(f.body(),".form--fancy__select select:focusout",function(){e.remove(a(this).parents(".form--fancy__select")[0],"form--fancy__select--focus")})})},
"waf/components/form_wizard":function(){require("dojo/on dojo/query dojo/dom-class dojo/dom-attr dojo/topic dojo/keys waf/lib/force_redraw dojo/domReady!".split(" "),function(f,h,a,e,g,c,k){function m(b){b=h(b).closest(".form-wizard__radio-group")[0];var c=l.indexOf(b),d=s*(c+1),g={},f={};a.add(b,"form-wizard__radio-group--complete");g=h(".form-wizard__radio-group--complete");d>r&&d/s<=q&&(f=l[q]?l[q]:l[c],g.length>c+1&&a.contains(f,"form-wizard__radio-group--complete")&&(d=s*g.length),d===s*l.length&&
(d=100,e.remove(h(".form-wizard__form .button")[0],"disabled")),n.style.width=d+"%",r=d,q=g.length>c+1?g.length+1:q+1)}function b(a){return e.get(h("input[name\x3d"+a+"]:checked")[0],"data-wt-value")}var d=h("form.form-wizard__form"),p=h(".form-wizard__form-element"),n=h(".form-wizard__progress-bar")[0],l=h(".form-wizard__radio-group"),t=h(".form-wizard__form-element:checked"),q=1,r=0,s=33.33;p[0]&&(t.forEach(function(a){m(a)}),f(p,"click",function(){m(this)}),f(p,"keyup",function(a){a.keyCode===
c.SPACE&&k(".form-wizard__form-element-label:after","{background-color: grey !important}")}),f(d,"submit",function(){var a={topic:b("business-type"),turnover:b("turnover"),interest:b("import-export")};g.publish("form_wizard.submit",a)}))})},"waf/components/fx_calculator/base":function(){require("dojo/query dojo/request/xhr dojo/json waf/components/fx_calculator/model waf/components/fx_calculator/view dojo/domReady!".split(" "),function(f,h,a,e,g){var c=f(".fx-calculator");if(c.length){var k=f("#fx_calculator_datasource");
k.length&&(k=k[0],f(c).forEach(function(c){h("/service/currencycalculator/getcurrencyrates",{method:"POST",data:{id:k.value},handleAs:"json"}).then(function(b){var d=b instanceof Object?b:a.parse(b),f=new e({buy_table:d.RatesTables.Buy,sell_table:d.RatesTables.Sell,local_currency:d.LocalCurrency});new g({el:c,model:f,selectors:{body:".fx-calculator__body",quantity_input:".fx-calculator__quantity",from_currency:".fx-calculator__select-currency--from",to_currency:".fx-calculator__select-currency--to",
sell_buy_switch:".fx-calculator__sell-buy-switch",sell_buy_switch_inner:".fx-calculator__sell-buy-switch-inner",sell_buy_switch_container:".fx-calculator__sell-buy-switch-container",sell_rate:".fx-calculator__sell",buy_rate:".fx-calculator__buy",calculate_button:".fx-calculator__button--calculate",clear_button:".fx-calculator__button--clear",result:".fx-calculator__result",result_title:".fx-calculator__result-title",result_date_time:".fx-calculator__date-time",result_container:".fx-calculator__result-container"},
classes:{body_active:"fx-calculator__body--active"},custom_messages:{buy:d.CustomMessages.Buy,sell:d.CustomMessages.Sell},local_currency:b.LocalCurrency})},function(a){console.log("error:",a)})}))}})},"waf/components/fx_calculator/model":function(){define(["dojo/topic"],function(f){return function(h){function a(){var a,c=e.data,f;if(c.from_currency_code===c.to_currency_code)return 1;c.is_sell?a=c.rates_tables.sell:c.is_buy&&(a=c.rates_tables.buy);for(var h=0;h<a.length;h++)a[h].Currency===c.from_currency_code&&
(f=a[h].Rates);for(a=0;a<f.length;a++)f[a].Currency===c.to_currency_code&&(e.data.rate=f[a].RateValue);return e.data.rate}var e=this;e.data={quantity:"",formated_quantity:null,from_currency_code:h.local_currency,to_currency_code:null,calculated_value:null,formated_calculated_value:null,rate:null,is_sell:!0,is_buy:!1,date:null,time:null,rates_tables:{buy:h.buy_table,sell:h.sell_table}};e.get=function(a){return e.data[a]};e.set=function(a,c){e.data[a]=c;f.publish("fx_calculator/model_updated",e.data)};
e.calculate=function(){var g,c=e.data,f=new Date;g=(c.quantity*a()).toFixed(2);var h=f.getFullYear(),b=f.getMonth()+1,d=f.getDate();e.set("date",h+"-"+(10>b?"0"+b:b)+"-"+(10>d?"0"+d:d));h=f.getHours();f=f.getMinutes();e.set("time",h+":"+f+" UTC");isNaN(g)?(e.set("calculated_value",0),e.set("formated_calculated_value",0),e.set("formated_quantity",0)):(e.set("calculated_value",g),e.set("formated_calculated_value",parseFloat(g).toLocaleString()),e.set("formated_quantity",parseInt(c.quantity,10).toLocaleString()))};
e.isDataComplete=function(){var a=e.data;return a.from_currency_code&&a.to_currency_code&&!isNaN(a.quantity)&&""!==a.quantity}}})},"waf/components/fx_calculator/view":function(){define(["dojo/on","dojo/query","dojo/topic","dojo/dom-attr","dojo/dom-class"],function(f,h,a,e,g){return function(c){function k(a){a.style.display="none";e.set(a,"aria-hidden","true")}function m(a){a.style.display="block";e.set(a,"aria-hidden","false")}function b(){var a=l.els;l.model.isDataComplete()?e.set(a.calculate_button,
"data-enabled","true"):e.set(a.calculate_button,"data-enabled","false")}function d(a,b){var c=!0,d=!1;a.checked&&("buy"===b&&(c=!1,d=!0),l.model.set("is_sell",c),l.model.set("is_buy",d))}function p(a){var b=l.els;"focus"===a.type?g.add(b.sell_buy_switch_inner,"active"):("blur"===a.type||"click"===a.type)&&g.remove(b.sell_buy_switch_inner,"active")}function n(){var h=l.els;f(h.quantity_input,"change, focus, blur, keyup, keydown",function(a){var d=a.type,f=this.value,k=/[^\d\.]/g;g.remove(h.body,c.classes.body_active);
"change"===d?l.model.set("quantity",f):"focus"===d?(e.set(h.body,"data-status","active"),g.add(h.body,c.classes.body_active)):"blur"===d?e.set(h.body,"data-status","inactive"):"keyup"===d?(this.value=f=f.replace(k,""),l.model.set("quantity",this.value),e.set(h.calculate_button,"data-enabled","true"),b()):"keydown"===d&&13===a.keyCode&&h.calculate_button.click()});f(h.clear_button,"click",function(a){a.preventDefault();h.quantity_input.value="";l.model.set("quantity","");k(h.result_container);m(h.quantity_input);
e.set(h.calculate_button,"data-enabled","false")});f(h.calculate_button,"click",function(b){b.preventDefault();l.model.isDataComplete()&&"true"===e.get(h.calculate_button,"data-enabled")&&(k(h.quantity_input),m(h.result_container),l.model.calculate(),a.publish("fx_calculator",{inVal:l.model.data.formated_quantity,inCur:l.model.data.from_currency_code,outVal:l.model.data.formated_calculated_value,outCur:l.model.data.to_currency_code,rate:l.model.data.rate,currencyPair:l.model.data.from_currency_code+
"-"+l.model.data.to_currency_code,conType:l.model.data.is_sell?"sell":"buy"}),l.render(l.model.data))});f(h.from_currency,"change",function(){var a=l.els;e.set(a.sell_buy_switch_container,"data-status","active");"buy"===e.get(a.sell_buy_switch,"data-current-value")?(l.model.set("is_sell",!1),l.model.set("is_buy",!0)):(l.model.set("is_sell",!0),l.model.set("is_buy",!1));l.model.set("from_currency_code",this.value);b()});f(h.to_currency,"change, focus",function(){l.model.set("to_currency_code",this.value);
b()});f(h.sell_rate,"change, click, focus, blur",function(a){p(a);d(this,"sell");g.replace(h.sell_buy_switch,"sell","buy")});f(h.buy_rate,"change, click, focus, blur",function(a){p(a);d(this,"buy");e.set(h.sell_buy_switch,"data-current-value","buy");g.replace(h.sell_buy_switch,"buy","sell")});f(h.sell_buy_switch,"click",function(){l.model.data.is_sell?h.buy_rate.click():h.sell_rate.click()})}var l=this;l.el=c.el;l.model=c.model;l.els={};l.render=function(a){var b=l.els,d,e;a.is_sell?(d=a.formated_calculated_value+
" \x3cspan\x3e "+a.to_currency_code+"\x3c/span\x3e",e=c.custom_messages.sell):a.is_buy&&(d=a.formated_calculated_value+"\x3cspan\x3e "+a.to_currency_code+"\x3c/span\x3e",e=c.custom_messages.buy);b.result.innerHTML=d;b.result_title.innerHTML=e;b.result_date_time.innerHTML=a.date+" "+a.time};(function(){var a=l.els,b,d=c.selectors;for(b in d)d.hasOwnProperty(b)&&(l.els[b]=h(d[b],l.el)[0]);e.set(l.els.from_currency,"value",c.local_currency);n();k(a.result_container)})()}})},"waf/components/fx_rates_table":function(){define("dojo/query dojo/on dojo/dom-style waf/lib/on_window_resize dojo/dom-geometry dojo/dom-class dojo/domReady!".split(" "),
function(f,h,a,e){function g(){var b=a.get(m[0],"width"),d=a.get(f(k.selectors.intro)[0],"width"),e=a.get(f(k.selectors.table)[0],"width");!k.breakpoints.table_breaks&&e>d&&(k.breakpoints.table_breaks=d);k.breakpoints.table_breaks&&b<=k.breakpoints.table_breaks?(m.attr("data-view","mobile"),c()):(m.attr("data-view","desktop"),f(k.selectors.table+" .hidden").removeClass("hidden"))}function c(){var a=f(k.selectors.select_currency)[0].value;f(k.selectors.table_head+" th").addClass("hidden");f(k.selectors.table_head+
' th[data-currency\x3d"'+a+'"]').removeClass("hidden");f(k.selectors.table_body+" td").addClass("hidden");f(k.selectors.table_body+' td[data-compared-with\x3d"'+a+'"]').removeClass("hidden")}var k={selectors:{component:".fx-rates-table",select_currency:".fx-rates-table__select-currency__select",intro:".fx-rates-table__intro",body:".fx-rates-table__body",table:".fx-rates-table__body table",table_head:".fx-rates-table__body thead",table_body:".fx-rates-table__body tbody"},breakpoints:{table_breaks:null}},
m=f(k.selectors.component);m.length&&(e(g,this),h(f(k.selectors.select_currency)[0],"change",c),g())})},"waf/components/header/base":function(){define("dojo/_base/lang dojo/on dojo/query dojo/mouse dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry ./logon_panel ./utility_header ./primary_nav ./primary_nav_new dojo/domReady!".split(" "),function(f,h,a,e,g,c,k,m,b,d,p,n){return new function(){function e(){!1!==q.shrink_header&&h(window,"scroll",function(){v||(v=!0,c.add(q.element,q.options.classes.animate));
t()})}function t(){!1!==q.shrink_header&&(m.docScroll().y>q.options.scroll_offset?window.Bank of America Corporation.isIE7||c.add(q.element,q.options.classes.shrunk):c.remove(q.element,q.options.classes.shrunk))}var q=this,r=!1;0<dojo.query(".header__primary").query(".primary-nav-new").length&&(r=!0);this.options={scroll_offset:50,shrink_header:!0,selectors:{header:".header",primary_nav:".primary-nav",primary_nav_new:".primary-nav-new",primary_container:".header__primary .header__container",logon_panel:".logon-panel",utility_header:".utility-header__control",
reduced:".header__primary--reduced",site_tools:".site-tools",base:"html"},classes:{fixed:"header--fixed",wedge:"header--wedge",shrunk:"header--shrunk",animate:"header--animate"}};var s,v=!1,w=!1;q.height=function(){return m.position(q.element).h};q.reduced=function(){return w};(function(){var h=a(q.options.selectors.base)[0];q.element=a(q.options.selectors.header)[0];w=0<a(".header__primary--reduced").length;if(q.element){if("rtl"===g.get(h,"dir")&&c.contains(h,"lt-ie8")){var m=a(q.options.selectors.site_tools)[0],
v=a(" \x3e li",m);k.place(v[0],m,"last");k.place(v[v.length-1],m,"first")}g.has(q.element,"data-shrink-header")&&(q.shrink_header="true"===g.get(q.element,"data-shrink-header")?!0:!1);a(q.options.selectors.primary_container,q.element);c.contains(h,"lt-ie9")||(e(),s=f.clone(q.element),g.set(s,"aria-hidden","true"),c.add(s,q.options.classes.wedge),k.place(s,q.element,"after"),c.add(q.element,q.options.classes.fixed),t());1>a(".logon-panel").length||new b(a(q.options.selectors.logon_panel,q.element)[0]);
!1==r?new p(a(q.options.selectors.primary_nav,q.element)[0],q):!0==r&&new n(a(q.options.selectors.primary_nav_new,q.element)[0],q);1>a(".utility-header").length||new d(a(q.options.selectors.utility_header,q.element)[0])}})()}})},"waf/components/header/logon_panel":function(){define("dojo/_base/window dojo/dom-class dojo/dom-attr dojo/keys dojo/on dijit/focus dojo/query dojo/topic".split(" "),function(f,h,a,e,g,c,k,m){return function(b){function d(){r=!1;h.remove(p.element,n.active);a.set(l,"aria-expanded",
"false");a.set(q[0],"aria-hidden","true")}var p=this;this.element=b;var n={active:"logon-panel--active"},l,t,q,r=!1;l=k(".logon-panel__button",p.element)[0];t=k(".logon-panel__link",p.element);q=k(".logon-panel__items",p.element);a.set(l,"aria-expanded",r?"true":"false");a.set(l,"role","button");a.set(q[0],"aria-hidden",r?"false":"true");(function(){g(l,"click",function(b){b.preventDefault();b.stopPropagation();r?d():(r=!0,h.add(p.element,n.active),a.set(l,"aria-expanded","true"),a.set(q[0],"aria-hidden",
"false"),c.focus(t[0]));window.Bank of America Corporation.isIE7&&m.publish("icons/set")});g(f.body(),"click",function(){r&&(d(),window.Bank of America Corporation.isIE7&&m.publish("icons/set"))});g(f.doc,"keyup",function(a){a.keyCode===e.ESCAPE&&r&&d()});g(t,"click",function(a){a={};a.type_of_login=k(this).innerHTML();m.publish("login_link_click",a)})})()}})},"waf/components/header/utility_header":function(){define("dojo/_base/window dojo/dom-class dojo/dom-construct dojo/keys dojo/on dojo/query dojo/domReady!".split(" "),function(f,h,a,e,g,
c){if(c(".utility-header").length)return function(k){function m(){g(p,"click",function(a){a.preventDefault();a.stopPropagation();l?b():(l=!0,h.add(p,d.button_active),h.add(n,d.header_active))});g(p,"focus",function(){h.add(n,d.header_active);h.add(p,d.button_active)});g(f.doc,"keyup",function(a){a.keyCode===e.ESCAPE&&l&&b()})}function b(){l=!1;h.remove(p,d.button_active);h.remove(n,d.header_active)}this.element=k;var d={button_active:"divisions-nav__link--active",header_active:"utility-header--open"},
p,n,l=!1;p=c(".divisions-nav__link")[0];n=c(".utility-header")[0];a.place(n,c(".header__primary")[0],"before");h.contains(p,"divisions-nav__title")||m()}})},"waf/components/header/primary_nav":function(){define("dojo/_base/array dojo/_base/window dojo/window dojo/keys dojo/mouse dojo/on dojo/query dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dijit/focus waf/lib/has_pointer_and_touch ./doormat dojo/topic waf/lib/language_dir dojo/NodeList-data dojo/NodeList-traverse dojo/domReady!".split(" "),
function(f,h,a,e,g,c,k,m,b,d,p,n,l,t,q,r,s){return function(f,w){function x(){H.forEach(function(a){var b=k(J.doormat,a)[0];b&&k(a).data("doormat",new q(b))});R=k(J.doormat);K=k(J.primary_nav)[0]}function u(a){var d=F?k(D).concat(F):k(D);c(a,"keydown",function(a){a.keyCode===e.ENTER&&a.preventDefault()});c(a,"keyup",function(a){a.keyCode===e.ENTER&&(a.preventDefault(),a=k(this).parent(J.item)[0],E(a),Q(a)?I(a,!0):window.location=m.get(this,"href"))});c(h.doc,"keyup",function(a){a.keyCode===e.ESCAPE&&
C&&l.focus(k("a",C)[0])});c(a,"focus",function(){M()});t||(c(H,g.enter,function(){E(this)}),c(H,g.leave,function(){M()}),c(d,g.enter,function(){var a=k(this).parent(J.item)[0];a!==C&&I(a)}));b.contains(k("html")[0],"lt-ie9")&&(c(window,"scroll",B),c(window,"resize",A));b.contains(k("html")[0],"lt-ie9")||(w.reduced()||c(window,"resize",function(){y();P()}),c(h.doc,"touchstart, pointerdown, MSPointerDown",function(a){C&&0===k(a.target).parents(J.item).length&&M()}),c(d,"touchstart, pointerdown, MSPointerDown",
function(a){a.preventDefault();a.stopPropagation();a=k(this).parent(J.item)[0];a!==C?(E(a),Q(a)?I(a):window.location=m.get(this,"href")):M()}),c(d,"click, touchend",function(){r.publish("masthead.link",{item_element:this})}),t&&c(d,"click",function(a){a.preventDefault()}))}function A(){var b=p.position(K).x,c,d;"ltr"!==s.dir&&(d=p.position(K).w,c=a.getBox().w,b=c-(d+b));R.style(s.relative_dir.left,b+"px")}function B(){var a=p.position(K).y+p.position(K).h-1;R.style("top",a+"px")}function y(){if(1!==
D.length){var a=z();a&&D.style("height",a+"px")}}function z(){D.style("height","auto");var a=[];D.forEach(function(b){a.push(n.get(b,"height"))});a.sort();var b=a.length-1;return a[b]>a[0]?a[b]:!1}function G(){F=k.NodeList();D.forEach(function(a){m.set(a,"tabindex",-1);var b=a.getElementsByTagName("strong")[0].innerHTML,b=d.create("a",{"class":N.hit_area,href:m.get(a,"href"),role:"menuitem","aria-haspopup":"true","aria-expanded":"false",innerHTML:"\x3cspan\x3e"+b+"\x3c/span\x3e"});d.place(b,a,"before");
F.push(b)});P()}function P(){var a=p.getContentBox(L.element).w,b=0;D.forEach(function(a){b+=p.getMarginBox(a).w});var c=(a-b)/D.length/2,a=Math.floor(c+1),c=Math.ceil(c+1);F.style({left:"-"+a+"px",right:"-"+c+"px"})}function E(a){M();C=a;b.add(a,N.open);m.set(a,"aria-expanded","true")}function M(){C&&(b.remove(C,N.open),m.set(C,"aria-expanded","false"),C=null)}function Q(a){return k(a).data("doormat")[0]}function I(a,b){var c=Q(a);c&&c.open(b)}var L=this;this.element=f;this.parent=w;var H,D,F,C=
null,R,K,J={doormat:".doormat",primary_nav:".primary-nav",item:".primary-nav__item",link:".primary-nav__link"},N={hit_area:"primary-nav__link-hit-area",open:"primary-nav__item--open"};H=k(J.item,L.element);if(D=k(J.link,L.element))x(),w.reduced()||(y(),G()),b.contains(k("html")[0],"lt-ie9")&&(A(),B()),u(w.reduced()?D:F)}})},"waf/lib/has_pointer_and_touch":function(){define([],function(){var f=!(!window.navigator.msPointerEnabled||!navigator.msMaxTouchPoints);return!(!window.PointerEvent||!navigator.maxTouchPoints)||
f})},"waf/components/header/doormat":function(){define("dojo/_base/array dojo/query dojo/on dojo/mouse dojo/dom-attr dojo/dom-class dojo/dom-geometry dojo/dom-style dijit/focus waf/lib/has_pointer_and_touch waf/lib/language_dir dojo/topic dojo/domReady!".split(" "),function(f,h,a,e,g,c,k,m,b,d,p,n){return function(l){function p(a){q();u&&m.set(u,"display","none");c.add(a.parent,s.options.classes.active);B.length&&c.add(s.element,s.options.classes.item_is_open)}function q(){f.forEach(v,function(a){c.remove(a.parent,
s.options.classes.active)})}function r(){if(!x){x=!0;var a=u?k.getContentBox(u).h:0;B.forEach(function(b){b=k.getContentBox(b).h;b>a&&(a=b)})}}var s=this;s.element=l;this.options={selectors:{default_description:".doormat__default-description",nav:".doormat-nav",link:".doormat-nav__link",sub_content:".doormat-nav__section-details, .doormat-nav--second-level",heading:".doormat__heading",all_links:".doormat-nav__link, .doormat__heading, .doormat-nav__sub-heading a, .doormat-nav__sub-link"},classes:{active:"doormat-nav__item--active",
item_is_open:"doormat--nav-item-is-open"}};var v=[],w,x=!1,u,A,B;s.open=function(a){q();B.length&&c.remove(s.element,s.options.classes.item_is_open);u&&m.set(u,"display","block");x||r();a&&b.focus(h("a",s.element)[0])};(function(){h(s.options.selectors.nav,s.element);u=h(s.options.selectors.default_description,s.element)[0];B=h(s.options.selectors.sub_content,s.element);A=h(s.options.selectors.heading,s.element);h(s.options.selectors.link,s.element).forEach(function(a){v.push({element:a,parent:h(a).parent("li")[0]})});
w=h(s.options.selectors.all_links,s.element)})();(function(){v&&f.forEach(v,function(b){a(b.element,"focus",function(){p(b)});a(b.element,"touchstart, pointerdown, MSPointerDown",function(a){a.preventDefault();a.stopPropagation();c.contains(b.parent,s.options.classes.active)?window.location=g.get(b.element,"href"):p(b)});d?a(b.element,"click",function(a){a.preventDefault()}):a(b.element,e.enter,function(){p(b)})});a(w,"click, touchend",function(){n.publish("masthead.link",{item_element:this})});a(A,
e.enter,function(){q()})})()}})},"waf/components/header/primary_nav_new":function(){define("dojo/_base/array dojo/_base/window dojo/window dojo/keys dojo/mouse dojo/on dojo/query dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dijit/focus waf/lib/has_pointer_and_touch waf/lib/wrap_icon_and_last_word ./doormat dojo/topic waf/lib/language_dir dojo/NodeList-data dojo/NodeList-traverse dojo/domReady!".split(" "),function(f,h,a,e,g,c,k,m,b,d,p,n,l,t,q,r,s,v){return function(g,
f){function u(){H.forEach(function(a){var b=k(J.doormat,a)[0];b&&k(a).data("doormat",new r(b))});R=k(J.doormat);K=k(J.primary_nav)[0]}function A(a){var d=F?k(D).concat(F):k(D);c(a,"keydown",function(a){a.keyCode===e.ENTER&&a.preventDefault()});c(a,"keyup",function(a){a.keyCode===e.ENTER&&(a.preventDefault(),a=k(this).parent(J.item)[0],a.classList.contains("primary-nav-new__item--open")?Q():(M(a),I(a)?I(a).open(!0):window.location=m.get(this,"href")))});c(h.doc,"keyup",function(a){a.keyCode===e.ESCAPE&&
C&&l.focus(k("a",C)[0])});c(a,"focus",function(){});t?(c(h.doc,"touchstart, pointerdown, MSPointerDown",function(a){C&&0===k(a.target).parents(J.item).length&&Q()}),c(d,"touchstart, pointerdown, MSPointerDown",function(a){a.preventDefault();a.stopPropagation();a=k(this).parent(J.item)[0];a!==C?(M(a),I(a)?I(a).open(void 0):window.location=m.get(this,"href")):Q()}),c(d,"click, touchend",function(){s.publish("masthead.link",{item_element:this})})):c(d,"click",function(a){a.preventDefault();a.stopPropagation();
var b=k(this).parent(J.item)[0];b.classList.contains("primary-nav-new__item--open")||0===k(a.target).parents(J.item).length?Q():(M(b),k(this).text(),s.publish("new_nav_click",{item_element:this}),I(b)?I(b).open(!0):window.location=m.get(this,"href"))});b.contains(k("html")[0],"lt-ie9")&&(c(window,"scroll",y),c(window,"resize",B));b.contains(k("html")[0],"lt-ie9")||(f.reduced()||c(window,"resize",function(){z();E()}),c(d,"click",function(a){a.preventDefault();a.stopPropagation()}))}function B(){var b=
p.position(K).x,c,d;"ltr"!==v.dir&&(d=p.position(K).w,c=a.getBox().w,b=c-(d+b));R.style(v.relative_dir.left,b+"px")}function y(){var a=p.position(K).y+p.position(K).h-1;R.style("top",a+"px")}function z(){if(1!==D.length){var a=G();a&&D.style("height",a+"px")}}function G(){D.style("height","auto");var a=[];D.forEach(function(b){a.push(n.get(b,"height"))});a.sort();var b=a.length-1;return a[b]>a[0]?a[b]:!1}function P(){F=k.NodeList();D.forEach(function(a){m.set(a,"tabindex",-1);var c=a.getElementsByTagName("strong")[0].innerHTML,
c=d.create("a",{"class":N.hit_area,href:m.get(a,"href"),role:"menuitem","aria-haspopup":"true","aria-expanded":"false",innerHTML:"\x3cspan\x3e"+c+"\x3c/span\x3e"});b.contains(k(a).parent()[0],N.has_doormat)||(m.remove(c,"aria-haspopup"),m.remove(c,"aria-expanded"));d.place(c,a,"before");F.push(c)});E()}function E(){var a=p.getContentBox(L.element).w,b=0;D.forEach(function(a){b+=p.getMarginBox(a).w});var c=(a-b)/D.length/2,a=Math.floor(c+6),c=Math.ceil(c+6);F.style({left:"-"+a+"px",right:"-"+c+"px"})}
function M(a){Q();C=a;b.add(a,N.open);m.set(a,"aria-expanded","true")}function Q(){C&&(b.remove(C,N.open),m.set(C,"aria-expanded","false"),C=null)}function I(a){return k(a).data("doormat")[0]}var L=this;this.element=g;this.parent=f;var H,D,F,C=null,R,K,J={doormat:".doormat-new",primary_nav:".primary-nav-new",item:".primary-nav-new__item",link:".primary-nav-new__link",insight_link:".image-text-promo__title",chevron:".icon"},N={hit_area:"primary-nav-new__link-hit-area",open:"primary-nav-new__item--open",
has_doormat:"primary-nav-new__item--doormat"};q(k(".image-text-promo__title"));(function(){H=k(J.item,L.element);if(D=k(J.link,L.element))u(),f.reduced()||(z(),P()),b.contains(k("html")[0],"lt-ie9")&&(B(),y()),A(f.reduced()?D:F),c(k(J.insight_link),"click",function(a){s.publish("insight_link",{item_element:this})})})()}})},"waf/lib/wrap_icon_and_last_word":function(){define(["dojo/query"],function(f){return function(h,a,e){a=void 0===a?"i":a;h.forEach(function(e){var c=f("span",e)[0],h=f(e).children(a)[0];
if(c&&h){var m=c.innerHTML.split(" "),c=m[m.length-1];m.pop();m=m.join(" ");e.innerHTML=m+(" \x3cspan\x3e"+c+h.outerHTML+"\x3c/span\x3e")}});e&&e()}})},"waf/components/header/brand_logo":function(){require(["dojo/on","dojo/query","dojo/topic","dojo/domReady!"],function(f,h,a){h=h(".brand__logo");f(h,"click, touchend",function(){a.publish("masthead.logo",{item_element:this})})})},"waf/components/header/divisions_nav":function(){require(["dojo/on","dojo/query","dojo/topic","dojo/domReady!"],function(f,
h,a){h=h(".divisions-nav__link");f(h,"click, touchend",function(){a.publish("masthead.link",{item_element:this})})})},"waf/components/hero_carousel":function(){require("dojo/on dojo/query dojo/dom-attr dojo/dom-class dojo/html waf/lib/equalise_heights dojo/_base/fx dijit/focus dojo/fx/easing dojo/dom-construct dojo/dom-geometry dojox/gesture/swipe waf/lib/wrap_icon_and_last_word dojo/topic waf/lib/on_window_resize waf/lib/utils dojo/domReady!".split(" "),function(f,h,a,e,g,c,k,m,b,d,p,n,l,t,q,r){var s=
h(".hero-carousel");s.length&&s.forEach(function(s){function w(b,c,d,f){b.forEach(function(b){e.remove(b,c);e.add(b,d);a.set(b,"aria-hidden","true")});e.remove(f,d);e.add(f,c);a.set(f,"aria-hidden","false")}function x(a){a=h(".hero-carousel__backgrounds-item[data-item-number\x3d'"+a+"']",s)[0];w(S,"hero-carousel__backgrounds-item--active","hero-carousel__backgrounds-item--inactive",a);B();t.publish("responsive_images/resize")}function u(a){a=h(".hero-carousel__slides-item[data-item-number\x3d'"+a+
"']",s)[0];w(ca,"hero-carousel__slides-item--active","hero-carousel__slides-item--inactive",a);r.isMobile()&&la&&m.focus(h(".button",a)[0])}function A(b){return parseInt(a.get(b,"data-item-number"),10)}function B(){var b=[],c,d,e,f;h(U).forEach(function(a){b.push(z(a))});c=y(b);h(U).forEach(function(b){d=a.get(b,"data-src");f=d.replace("{width}",c);a:{if(""!==b.getAttribute("data-mrp")){var g=JSON.parse(b.getAttribute("data-mrp"));if(g){e=g[c];break a}}e=void 0}e&&(f=f+"\x26hash\x3d"+e);a.set(b,"src",
f)})}function y(a){a=Math.max.apply(Math,a);isNaN(a)&&(a=240);return a}function z(b){var c=a.get(b,"data-src"),d=window.location.protocol+"//"+window.location.host,c=c.replace(d,"").indexOf("{width}");b=a.get(b,"src").replace(d,"");return parseInt(b.slice(c),10)}function G(a,b){var c=ba.style.left.replace("px",""),d=""===c?0:parseInt(c,10),e=0,f={},g=!1,h=-1*X*(S.length-1),f=function(){ba.style.left=d+"px";g=!0;d===e?g=!1:(b?(d+=Z,d>e&&(d=e),d<=e&&0>d-1&&window.requestAnimationFrame(f)):(d-=Z,d<e&&
(d=e),d>=e&&d+1>h&&window.requestAnimationFrame(f)),0>d&&d>h&&E(a))},e=!b?d-X:d+X;g||window.requestAnimationFrame(f)}function P(a){var b=-1*X*O.indexOf(a);a=ba.style.left.replace("px","");var c=""===a?0:parseInt(a,10),d={},e=b<c?!1:!0,f=(c-b)/X;0>f&&(f*=-1);d=function(){ba.style.left=c+"px";c!==b&&(e?(c+=Z*f,c>b&&(c=b),c<=b&&window.requestAnimationFrame(d)):(c-=Z*f,c<b&&(c=b),c>=b&&window.requestAnimationFrame(d)))};b!==c&&window.requestAnimationFrame(d)}function E(a,b){var c=!a?h(".hero-carousel__slide-triggers-item[data-item-number\x3d'"+
b+"']",s)[0]:a;O.forEach(function(a){e.remove(a,"hero-carousel__slide-triggers-item--inactive");e.remove(a,"hero-carousel__slide-triggers-item--active")});e.add(c,"hero-carousel__slide-triggers-item--active");M(a);f.emit(c,"click",{bubbles:!0,cancelable:!0})}function M(b){T.forEach(function(b){a.set(h(b)[0],"aria-selected","false")});a.set(h(".hero-carousel__mobile-aria-trigger",b)[0],"aria-selected","true")}function Q(b){var c=h(".js-hero-carousel__play-pause .visually-hidden",s)[0],d=a.get(c,"data-resumetext"),
f=a.get(c,"data-pausetext");switch(b){case "resume":e.remove(ha,"hero-carousel__play-pause--is-stopped");g.set(c,f);break;case "pause":e.add(ha,"hero-carousel__play-pause--is-stopped"),g.set(c,d)}}function I(){f(ha,"click",function(a){a.preventDefault();ea?(Q("resume"),ea=!1,R()):(Q("pause"),ea=!0,clearInterval(ga))});O.on("click",function(a){var b=A(h(a.target).closest(".hero-carousel__slide-triggers-item")[0]);M(this);r.isMobile()&&(a.preventDefault(),a=h(".hero-carousel__slide-triggers-item[data-item-number\x3d'"+
b+"']",s)[0],w(O,"hero-carousel__slide-triggers-item--active","hero-carousel__slide-triggers-item--inactive",a),P(a),x(b),u(b))});f(U,n,function(a){a.dx<ja&&(Y=!1)});f(U,n.end,function(){if(r.isMobile()){var a=O.indexOf(h(".hero-carousel__slide-triggers-item--active")[0]),b=0,b=Y?(!a?O.length:a)-1:a===O.length-1?0:a+1;G(O[b],Y);1===Math.abs(a-b)&&O[b].focus();ja=0;Y=!0}});f(W,"click",function(a){a.preventDefault();var b=!1,c=A(h(".hero-carousel__slide-triggers-item--active",s)[0]);e.contains(h(a.target).closest("li")[0],
"hero-carousel__actions-item--next")&&(b=!0);c=b?c===$?0:c+1:0===c?aa.length-1:c-1;E(!1,c)});f(O,"mouseenter, focusin",function(){e.add(h(".hero-carousel__slide-triggers-item-rollover",this)[0],"hero-carousel__slide-triggers-item-rollover--active")});f(O,"mouseleave, focusout",function(){e.remove(h(".hero-carousel__slide-triggers-item-rollover",this)[0],"hero-carousel__slide-triggers-item-rollover--active")});f(h(".button, .hero-carousel__slide-triggers-item-link-overlay",s),"focus",function(){Q("pause");
ea=!0;clearInterval(ga)});q(function(){r.isMobile()?(L(),ea=!0,clearInterval(ga),J()):ea&&(Q("pause"),ea=!1,N.style.width="",R());if(!r.isMobile()){a.remove(ba,"style");for(var b=S.length-1;0<=b;--b)a.remove(S[b],"style");window.responsive_images.checkImagesNeedReplacing(U)}K();e.remove(O[0],"hero-carousel__slide-triggers-item--inactive");e.add(O[0],"hero-carousel__slide-triggers-item--active");r.isMobile()&&(ba.style.left="0");C();c(h(".hero-carousel__slide-triggers-item-link",s));F()},oa)}function L(){O.forEach(function(b,
c){a.set(b,"data-item-number",c)});f.emit(O[0],"click",{bubbles:!0,cancelable:!0})}function H(){var b,c,d;O.forEach(function(e){b=h("img",e)[0];c=h(".hero-carousel__slide-triggers-item-link",e)[0];d=h(".hero-carousel__slide-triggers-item-rollover",e)[0];aa.push({item_number:a.get(e,"data-item-number"),src:a.get(b,"src"),data_src:a.get(b,"data-src"),href:a.get(c,"href"),data_url:a.get(c,"data-url"),text:c.innerHTML,rollover:d.innerHTML})})}function D(){var c,e,f,g,l;O.forEach(function(m,n){var p=h(".hero-carousel__slide-triggers-item-link-overlay",
m)[0];c=h("img",m)[0];e=h(".hero-carousel__slide-triggers-item-link",m)[0];f=h(".hero-carousel__slide-triggers-item-rollover",m)[0];l=n===$?0:n+1;g=d.create("img",{src:aa[l].src,"class":"fade-image"});h("img",m)[1]&&d.destroy(h("img",m)[1]);a.set(m,"data-item-number",aa[n].item_number);a.set(c,"src",aa[n].src);a.set(e,"href",aa[n].href);a.set(e,"data-url",aa[n].data_url);a.set(p,"href",aa[n].href);e.innerHTML=aa[n].text;f.innerHTML=aa[n].rollover;m.appendChild(g);k.animateProperty({node:g,easing:b.quadInOut,
duration:1250,properties:{opacity:0}}).play()})}function F(){var a=[],b,c=parseInt(N.style.width,10)/5;r.isMobile()?O.forEach(function(a){a.style.width=c+"px"}):(O.forEach(function(b,c){0!==c&&a.push(p.getContentBox(b).w)}),b=Math.min.apply(Math,a),O.forEach(function(a,c){0!==c&&(a.style.width=b-0.5+"px")}))}function C(){O.forEach(function(a,b){0!==b&&(a.style.width="")})}function R(){var b;!ia&&!r.isMobile()&&(ga=setInterval(function(){ea&&clearInterval(ga);b=aa.pop();aa.unshift(b);x(a.get(O[$],
"data-item-number"));u(a.get(O[$],"data-item-number"));D();c(h(".hero-carousel__slide-triggers-item-link"));window.Bank of America Corporation.isIE8&&r.triggerElementRender(h(".hero-carousel__slides-item--active")[0])},pa))}function K(){N.style.width=p.getContentBox(s).w-fa+"px"}function J(){X=window.innerWidth;ba.style.width=X*S.length+"px";for(var a=S.length-1;0<=a;--a)S[a].style.width=X+"px"}var N=h(".hero-carousel__slide-triggers",s)[0],O=h(".hero-carousel__slide-triggers-item",s),V=h(".hero-carousel__slide-triggers-item-link",
s),T=h(".hero-carousel__mobile-aria-trigger"),S=h(".hero-carousel__backgrounds-item",s),U=h(".hero-carousel__backgrounds-item img",s),ca=h(".hero-carousel__slides-item",s),W=h(".hero-carousel__actions-item",s),$=4,aa=[],ea=!1,fa=60,pa=2E4,oa=this,Z=30,ja=0,Y=!0,X=window.innerWidth,ba=h(".hero-carousel__backgrounds",s)[0],ia=a.has(s,"data-is-static"),ha=h(".js-hero-carousel__play-pause",s)[0],ga,la;(function(){r.isMobile()&&J();var a=setInterval(function(){window.Bank of America Corporation.is_responsive_images_loaded&&
(clearInterval(a),H(),r.isMobile()?(K(),F(),la=!1,f.emit(O[0],"click",{bubbles:!0,cancelable:!0}),la=!0):(R(),c(V),F()))},200);I();l(V)})()})})},"dojox/gesture/swipe":function(){define(["dojo/_base/kernel","dojo/_base/declare","./Base","../main"],function(f,h,a,e){f.experimental("dojox.gesture.swipe");f=h(a,{defaultEvent:"swipe",subEvents:["end"],press:function(a,c){c.touches&&2<=c.touches.length?delete a.context:(a.context||(a.context={x:0,y:0,t:0}),a.context.x=c.screenX,a.context.y=c.screenY,a.context.t=
(new Date).getTime(),this.lock(c.currentTarget))},move:function(a,c){this._recognize(a,c,"swipe")},release:function(a,c){this._recognize(a,c,"swipe.end");delete a.context;this.unLock()},cancel:function(a,c){delete a.context;this.unLock()},_recognize:function(a,c,e){if(a.context&&(a=this._getSwipeInfo(a,c)))a.type=e,this.fire(c.target,a)},_getSwipeInfo:function(a,c){var e,f,b={};f=a.context;b.time=(new Date).getTime()-f.t;e=c.screenX-f.x;f=c.screenY-f.y;if(0===e&&0===f)return null;b.dx=e;b.dy=f;return b}});
e.gesture.swipe=new f;e.gesture.swipe.Swipe=f;return e.gesture.swipe})},"dojox/gesture/Base":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/dom dojo/on dojo/touch dojo/has ../main".split(" "),function(f,h,a,e,g,c,k,m,b){f.experimental("dojox.gesture.Base");e.getObject("gesture",!0,b);return h(null,{defaultEvent:" ",subEvents:[],touchOnly:!1,_elements:null,constructor:function(a){e.mixin(this,a);this.init()},init:function(){this._elements=[];if(!m("touch")&&
this.touchOnly)console.warn("Gestures:[",this.defaultEvent,"] is only supported on touch devices!");else{var b=this.defaultEvent;this.call=this._handle(b);this._events=[b];a.forEach(this.subEvents,function(a){this[a]=this._handle(b+"."+a);this._events.push(b+"."+a)},this)}},_handle:function(a){var b=this;return function(e,f){var g=arguments;2<g.length&&(e=g[1],f=g[2]);if(!e||!e.nodeType&&!e.attachEvent&&!e.addEventListener)return c(e,a,f);var h=b._add(e,a,f);return{remove:function(){h.remove();b._remove(e,
a)}}}},_add:function(a,b,f){var g=this._getGestureElement(a);if(!g){var g={target:a,data:{},handles:{}},h=e.hitch(this,"_process",g,"press"),m=e.hitch(this,"_process",g,"move"),r=e.hitch(this,"_process",g,"release"),s=e.hitch(this,"_process",g,"cancel"),v=g.handles;this.touchOnly?(v.press=c(a,"touchstart",h),v.move=c(a,"touchmove",m),v.release=c(a,"touchend",r),v.cancel=c(a,"touchcancel",s)):(v.press=k.press(a,h),v.move=k.move(a,m),v.release=k.release(a,r),v.cancel=k.cancel(a,s));this._elements.push(g)}g.handles[b]=
!g.handles[b]?1:++g.handles[b];return c(a,b,f)},_getGestureElement:function(a){for(var b=0,c;b<this._elements.length;b++)if(c=this._elements[b],c.target===a)return c},_process:function(a,b,c){c._locking=c._locking||{};!c._locking[this.defaultEvent]&&!this.isLocked(c.currentTarget)&&(("INPUT"!=c.target.tagName||"radio"==c.target.type||"checkbox"==c.target.type)&&"TEXTAREA"!=c.target.tagName&&c.preventDefault(),c._locking[this.defaultEvent]=!0,this[b](a.data,c))},press:function(a,b){},move:function(a,
b){},release:function(a,b){},cancel:function(a,b){},fire:function(a,b){a&&b&&(b.bubbles=!0,b.cancelable=!0,c.emit(a,b.type,b))},_remove:function(b,c){var e=this._getGestureElement(b);if(e&&e.handles){e.handles[c]--;var f=e.handles;a.some(this._events,function(a){return 0<f[a]})||(this._cleanHandles(f),e=a.indexOf(this._elements,e),0<=e&&this._elements.splice(e,1))}},_cleanHandles:function(a){for(var b in a)a[b].remove&&a[b].remove(),delete a[b]},lock:function(a){this._lock=a},unLock:function(){this._lock=
null},isLocked:function(a){return!this._lock||!a?!1:this._lock!==a&&g.isDescendant(a,this._lock)},destroy:function(){a.forEach(this._elements,function(a){this._cleanHandles(a.handles)},this);this._elements=null}})})},"dojox/main":function(){define("dojox/main",["dojo/_base/kernel"],function(f){return f.dojox})},"waf/lib/utils":function(){define([],function(){return{isMobile:function(){return 680>=window.innerWidth?!0:!1},isTablet:function(){return 860>=window.innerWidth?!0:!1},isTouchDevice:function(){return"undefined"!==
typeof window.ontouchstart},triggerElementRender:function(f){f.className+=" render";f.className=f.className.replace(/(\s|^)render(\s|$)/," ")}}})},"waf/components/image_carousel":function(){require("dojo/query dojo/dom-style dojo/on dojo/dom-attr dojo/_base/fx dojo/fx/easing dojo/dom-class dojo/dom-geometry waf/lib/language_dir dojo/topic waf/lib/on_window_resize dojo/_base/array waf/initialisers/responsive_images dojo/domReady!".split(" "),function(f,h,a,e,g,c,k,m,b,d,p,n){c=f(".image-carousel");
c.length&&c.forEach(function(c,t){function q(a){function c(d,g){f(A.slide_list_item).forEach(function(c,f){f===d?(e.set(c,"data-state","active"),e.set(c,"style",b.relative_dir.left+":0;"),k=c):f===g?(e.set(c,"data-state","active"),e.set(c,"style","forward"===a?b.relative_dir.left+":"+B.width+"px":b.relative_dir.left+":-"+B.width+"px"),l=c):e.set(c,"data-state","inactive")})}var k,l,m=!1,n=!1;"forward"===a?B.current_slide_number===B.total_slides?(c(B.total_slides,0),n=!0):c(B.current_slide_number,
B.current_slide_number+1):"back"===a&&(0===B.current_slide_number?(c(0,B.total_slides),m=!0):c(B.current_slide_number,B.current_slide_number-1));(function(){var a=f("img",k)[0],b=f("img",l)[0];d.publish("carousel",{currentImage:{src:e.get(a,"src"),alt:e.get(a,"alt")},newImage:{src:e.get(b,"src"),alt:e.get(b,"alt")}})})();(function(){var c,d;z=!0;"ltr"===b.dir?(c={left:"forward"===a?"-"+B.width:B.width},d={left:"0"}):(c={right:"forward"===a?"-"+B.width:B.width},d={right:"0"});G||(G=!0,w());g.animateProperty({node:k,
duration:B.speed,properties:c,onEnd:function(a){z=!1;e.set(a,"data-state","inactive")}}).play();g.animateProperty({node:l,duration:B.speed,properties:d}).play();window.Bank of America Corporation.isIE7&&h.set(l,"display","block")})();"forward"===a?B.current_slide_number+=1:"back"===a&&(B.current_slide_number-=1);n?B.current_slide_number=0:m&&(B.current_slide_number=B.total_slides)}function r(){f(A.meta_current_slide)[0].innerHTML="0"+(B.current_slide_number+1)+" /\x26nbsp;";f(A.meta_total_slides)[0].innerHTML="0"+(B.total_slides+
1)}function s(){var a=f(A.slide_list_item)[B.current_slide_number];f(A.caption)[0].innerHTML=e.get(a,"data-caption")}function v(){B.width=m.getContentBox(f(A.this_carousel)[0]).w}function w(){var a=[],b,c,d,g,h,k,l,m,n,p,q;f(A.slide_image).forEach(function(c){k=e.get(c,"data-src");l=window.location.protocol;m=window.location.host;n=l+"//"+m;p=k.replace(n,"");b=p.indexOf("{width}");q=e.get(c,"src").replace(n,"");a.push(parseInt(q.slice(b),10))});(function(){var b=u(a);c=b.length?Math.max.apply(Math,
b):240})();f(A.slide_image).forEach(function(a){d=e.get(a,"data-src");h=d.replace("{width}",c);a:{var b=c;if(""!==a.getAttribute("data-mrp")){var f=JSON.parse(a.getAttribute("data-mrp"));if(f){g=f[b];break a}}g=void 0}g&&(h=h+"\x26hash\x3d"+g);e.set(a,"src",h)})}function x(a){return n.filter(n.map(a,function(a,b){return isNaN(a)?b:!1}),function(a){return a})}function u(a){var b=x(a);b.length&&n.forEach(b,function(b,c){a.splice(b-c,1)});return a}var A={this_carousel:"#image-carousel-"+t,image_carousel:".image-carousel",
slide_list_item:"#image-carousel-"+t+" .image-carousel__slide",slide_image:"#image-carousel-"+t+"  .image-carousel__slide img",meta_current_slide:"#image-carousel-"+t+"  .image-carousel__meta--current-slide",meta_total_slides:"#image-carousel-"+t+"  .image-carousel__meta--total-slides",caption:"#image-carousel-"+t+"  .image-carousel__caption p",control:"#image-carousel-"+t+"  .image-carousel__control",controls:"#image-carousel-"+t+"  .image-carousel__controls"},B={current_slide_number:0,total_slides:0,
width:0,speed:!0===window.Bank of America Corporation.isIE7?0:550},y=this,z=!1,G=!1;e.set(c,"id","image-carousel-"+t);B.total_slides=f(A.slide_list_item).length-1;0<B.total_slides&&e.set(f(A.controls)[0],"data-state","active");v();(function(){f(A.slide_list_item).forEach(function(a,b){0===b?e.set(a,"data-state","active"):e.set(a,"data-state","inactive")})})();r();s();(function(){a(f(A.control),"click",function(a){a.preventDefault();z||(a=k.contains(this,"image-carousel__control--next")?"forward":"back",q(a),r(),s())});
p(function(){v();w()},y)})()})})},"waf/components/in_page_nav/scroll_spy":function(){require("dojo/_base/array dojo/on dojo/query dojo/dom-geometry dojo/dom-class dojo/dom-attr dojo/dom-construct waf/components/header/base waf/lib/throttle_debounce dojo/topic dojo/NodeList-dom dojo/domReady!".split(" "),function(f,h,a,e,g,c,k,m,b,d){function p(){var b=a(".text").last()[0],b=a("h3",b).last();if(b.length){var c=e.position(z.last()[0]).y;e.position(b[0]).y<c||z.push(b[0])}}function n(){var b=1,d;z.forEach(function(e){var f=
a(e).text(),g="#"+b+"-"+q(f),g=k.create("li",{className:u.nav_item,innerHTML:'\x3ca class\x3d"'+u.nav_link+'" href\x3d"'+g+'"\x3e'+f+"\x3c/a\x3e"});d="#"+b+"-"+q(f);c.set(e,"data-scroll",d);k.place(g,w);b++})}function l(){var e=a("."+u.nav_link);h(window,"scroll",b.throttle(function(){r()},G,10));t(e);h(window,"load",function(){r();window.location.hash&&v(window.location.hash)});d.subscribe("text/addDropCap",function(){var b=a(".text__lead")[0],d;d=Bank of America Corporation.translations.in_page_nav.overview;var e;c.set(b,
"data-scroll","#overview");e=k.create("a",{className:u.nav_link,href:"#overview",innerHTML:d});d=k.create("li",{className:u.nav_item});k.place(e,d);k.place(d,w,"first");z.unshift(b);t(e)})}function t(a){h(a,"click",function(a){var b=c.get(a.target,"href");window.location.hash=b;v(b);a.preventDefault()})}function q(a){return a.replace(/[^\w ]+/g,"").replace(/ +/g,"-").toLowerCase()}function r(){var a,b;a=f.filter(z,function(a){b=e.position(a).y;return b<m.height()+A+1});if(a=a[a.length-1])a=c.get(a,
"data-scroll"),s(a)}function s(b){b!==y&&(b=a('[href*\x3d"'+b+'"]',w).closest("."+u.nav_item)[0],B&&g.remove(B,u.active),g.add(b,u.active),B=b,y=c.get(a("a",B)[0],"href"))}function v(b){if(b=a('[data-scroll\x3d"'+b+'"]')[0])b=e.position(b,!0).y,window.scrollTo(0,b-(m.height()+A))}var w=a(".in-page-nav")[0],x=a(".is-navigable")[0];if(w&&x){var u={nav_link:"in-page-nav__link",nav_item:"in-page-nav__item",active:"in-page-nav__item--active",navigable:"is-navigable",primary:"layout__primary",disclaimer_heading:"disclaimer__heading"},
A=30,B,y,z=a("."+u.navigable+" ."+u.primary+" .text h2"),G=this;p();n();l()}})},"waf/components/in_page_nav/sticky_nav":function(){require("dojo/_base/lang dojo/on dojo/query dojo/dom-geometry dojo/dom-style dojo/dom-class dojo/dom-attr dojo/dom-construct waf/components/header/base dojo/topic waf/lib/on_window_resize dojo/NodeList-dom dojo/domReady!".split(" "),function(f,h,a,e,g,c,k,m,b,d,p){function n(){1>=a(".layout--full").length||(B=e.position(a(".layout--full").last()[0]).h)}function l(){h(window,
"scroll, load",function(){t()});p(function(){n();q();t()},null);d.subscribe("navtray/open",function(){y&&c.add(v,G.tray)});d.subscribe("navtray/close",function(){y&&c.remove(v,G.tray)})}function t(){var a=e.position(w).y,c;c=e.position(v).h;var d=e.position(x).h,f=e.position(u).h,g=b.height()+A;c=d-(f+B+A+c+g);d=e.docScroll().y;f=d-c;g=b.height()+A;a<g?(d>c?s(g-f):s(g),r(!0)):r(!1)}function q(){g.set(v,"width",e.position(z).w+"px")}function r(a){a!==y&&(a?(q(e.position(z).w),c.add(v,G.sticky),y=!0):
(c.remove(v,G.sticky),y=!1))}function s(a){g.set(v,"top",a+"px");window.Bank of America Corporation.isIE7&&g.set(v,"left",e.position(v).x+"px")}var v=a(".in-page-nav")[0],w=a(".is-navigable")[0],x=a("body")[0],u=a(".footer")[0],A=20,B=0,y=!1,z,G={sticky:"in-page-nav--sticky",wedge:"in-page-nav--wedge",tray:"in-page-nav--with-tray"};v&&w&&(z=f.clone(v),k.set(z,"aria-hidden","true"),c.add(z,G.wedge),m.place(z,v,"after"),n(),l())})},"waf/components/inline_contact":function(){define("dojo/fx/Toggler dojo/query dojo/on dojo/dom-class dojo/fx dojo/dom-attr dojo/domReady!".split(" "),
function(f,h,a,e,g,c){function k(a){var k=h("."+m,h(this).parents(".inline-contact")[0])[0],n=new f({node:k,showDuration:window.Bank of America Corporation.isIE7?0:b,showFunc:g.wipeIn,hideDuration:window.Bank of America Corporation.isIE7?0:b,hideFunc:g.wipeOut});a.preventDefault();e.toggle(k,m+"--active");c.set(this,"aria-expanded","true"===c.get(this,"aria-expanded")?"false":"true");n[e.contains(k,m+"--active")?"show":"hide"]();e.contains(k,m+"--active")&&h(".inline-contact__item__additional",k)[0].focus()}a=h(".button--additional-information");
var m="button--additional-information--content",b=300;if(a[0])a.on("click",k)})},"dojo/fx/Toggler":function(){define(["../_base/lang","../_base/declare","../_base/fx","../aspect"],function(f,h,a,e){return h("dojo.fx.Toggler",null,{node:null,showFunc:a.fadeIn,hideFunc:a.fadeOut,showDuration:200,hideDuration:200,constructor:function(a){f.mixin(this,a);this.node=a.node;this._showArgs=f.mixin({},a);this._showArgs.node=this.node;this._showArgs.duration=this.showDuration;this.showAnim=this.showFunc(this._showArgs);
this._hideArgs=f.mixin({},a);this._hideArgs.node=this.node;this._hideArgs.duration=this.hideDuration;this.hideAnim=this.hideFunc(this._hideArgs);e.after(this.showAnim,"beforeBegin",f.hitch(this.hideAnim,"stop",!0),!0);e.after(this.hideAnim,"beforeBegin",f.hitch(this.showAnim,"stop",!0),!0)},show:function(a){return this.showAnim.play(a||0)},hide:function(a){return this.hideAnim.play(a||0)}})})},"waf/components/inline_table":function(){require("dojo/on dojo/query dojo/dom-construct dojo/_base/lang dojo/NodeList-manipulate dojo/dom-class dojo/domReady!".split(" "),
function(f,h,a,e,g,c){f=h(".inline-table table, .text table");f.length&&f.forEach(function(e){var f,b;b=a.create("div",{"class":"inline-table-wrapper"});c.contains(document.documentElement,"lt-ie9")&&(f=h("col:last-child",e)[0])&&c.add(f,"last-col");f=h("caption",e);h(e).wrap(b);e=h(e).closest(".inline-table-wrapper")[0];f.length&&(b=f[0].innerHTML,b=a.create("div",{"class":"inline-table__caption","aria-hidden":"true",innerHTML:b}),a.place(b,e,"before"),c.add(f[0],"inline-table-caption--offscreen"))})})},
"waf/components/interaction_box":function(){define("dojo/query dojo/on dojo/dom-attr dojo/dom-form dojo/_base/connect waf/lib/textarea_adjust waf/lib/on_window_resize dojo/domReady!".split(" "),function(f,h,a,e,g,c,k){function m(){p.on("click",function(b){b.preventDefault();var c=f(b.target).closest("a")[0],d=f(b.target).closest(".interaction-box")[0];b=a.get(c,"data-url");var e=a.get(c,"data-width"),g=a.get(c,"data-height"),d=f("textarea",d)[0].value,h=a.get(c,"data-SiteContext"),k=a.get(c,"data-StartContext"),
c=a.get(c,"data-NoFree");b&&(h&&(b+="\x26SiteContext\x3d"+h),k&&(b+="\x26StartContext\x3d"+k),d&&(b+="\x26Entry\x3d"+d),c&&(b+="\x26NoFree\x3d"+c),window.open(b,"VA","width\x3d"+e+",height\x3d"+g))});k(b,null);n&&h(n,"click",function(){h.emit(l,"click",{bubbles:!0,cancelable:!0})})}function b(){c(d,!0)}var d=f(".ask-andrew-textarea"),p=f(".ask-andrew-external-link"),n=f(".interaction-box__link--manage-preferences")[0],l=f(".sub-section-nav__list-anchor--manage-preferences")[0];d[0]&&(c(d),m())})},
"waf/lib/textarea_adjust":function(){define("dojo/query dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-style dojo/dom-geometry dojo/_base/connect dojo/domReady!".split(" "),function(f,h,a,e,g,c,k){function m(a){function c(){p.innerHTML=l.value;27===a.keyCode&&(l.value="");13===a.keyCode&&(a.preventDefault(),k.publish("textarea-adjust/submit",{evt:l}));1===l.value.length&&(p.innerHTML=q);b()}l=a.currentTarget;"paste"===a.type?setTimeout(function(){c()},100):c()}function b(){var b=c.position(p).h;
b<n.h&&g.set(l,"height",t.small+"px");b>=n.h&&g.set(l,"height",t.medium+"px");b>=2*n.h&&g.set(l,"height",t.large+"px");b>=3*n.h?a.add(l,"ask-andrew-textarea--scroll"):a.remove(l,"ask-andrew-textarea--scroll")}var d={},p={},n={},l={},t={},q="";return function(a,k){if(!(a instanceof Object)||!a[0])a=f(a);d=a;n=c.getContentBox(d[0]);q=h.get(d[0],"placeholder");p=p.style?p:e.create("p");g.set(p,{display:"block",position:"absolute",visibility:"hidden",maxWidth:n.w-4+"px"});p.innerHTML=q;e.place(p,d[0],
"after");var v=c.position(d[0]);t={small:v.h,medium:v.h+n.h,large:v.h+2*n.h+7};d.on("keyup, paste",m);l=d[0];b();k&&b()}})},"waf/components/jump_to":function(){define("dojo/on dojo/query dojo/dom-attr dojo/dom-class dojo/topic dojo/fx/easing dojo/dom-geometry dojo/domReady!".split(" "),function(f,h,a,e,g,c,k){function m(a){a=h(".accordion__heading a",a)[0];f.emit(a,"click",{bubbles:!0,cancelable:!0})}function b(a){var b=h(a).parents(".accordion__item")[0];n.forEach(function(a){e.contains(a,"accordion__item--active")&&
m(a)});m(b);d(a)}function d(a){if(h(".lt-ie9")[0]||window.Bank of America Corporation.isIE7)setTimeout(function(){window.scrollTo(0,k.docScroll().y+k.position(a).y);a.focus()},300);else{var b=0,c=0,d=k.getContentBox(h("#header")[0]).h,e=function(){window.scrollTo(0,c);c+=80;c<b?window.requestAnimationFrame(e):a.focus()};setTimeout(function(){b=k.docScroll().y+k.position(a).y-d;c=k.docScroll().y;window.requestAnimationFrame(e)},150)}}var p=h('[href*\x3d"jump-to-"]'),n=h(".accordion__item");(function(){f(p,"click",function(c){c.preventDefault();
c=a.get(this,"href");c=c.substring(c.indexOf("#"));c=h(c)[0];b(c)})})()})},"waf/components/language_select":function(){require(["dojo/query","dojo/on","dojo/dom-class","dojo/domReady!"],function(f,h,a){function e(){h(g,"mouseover, focusin",function(c){c.preventDefault();a.add(g,"language-selector--active")});h(g,"mouseout, focusout",function(c){c.preventDefault();a.remove(g,"language-selector--active")})}var g=f(".language-selector")[0];g&&!(1<g.length)&&e()})},"waf/components/leaving_confirmation":function(){require("dojo/on dojo/query dojo/dom-attr dojo/dom-class waf/components/lightbox dojo/topic dojo/dom-construct waf/lib/determine_share_title waf/lib/popup_window dojo/NodeList-traverse dojo/domReady!".split(" "),
function(f,h,a,e,g,c,k,m,b){function d(){h(".lightbox").forEach(function(a){e.contains(a,"lightbox--active")&&(e.remove(a,"lightbox--active"),M=a)});h(".lightbox-overlay").forEach(function(a){e.contains(a,"lightbox-overlay--active")&&(e.remove(a,"lightbox-overlay--active"),Q=a)})}function p(){f(h("body"),"a:click",function(b){function e(){b.preventDefault();A=h("."+w.focus_catch)[0];t();x.setPrimaryFocus(A);if(P){var d=g,k=window.location.href,l=m(),d=d.replace(/{title}/,encodeURIComponent(l));g=
d=d.replace(/{URL}/,encodeURIComponent(k))}a.set(B,"href",g);a.set(B,"data-label",f);x.show();c.publish("external_link_lightbox/open",{label:f,href:g})}var f=this.text,g=this.href;n(g,this)&&(d(),l(),"touchend"===b.type?setTimeout(function(){e()},1E3):e())})}function n(a,b){if(e.contains(b,w.internal_trigger))return G=!0;if(/^tel:/.test(a)||-1<a.indexOf(window.location.hostname))return!1;for(var c=0;c<v.length;c++)if(-1<a.indexOf(v[c]))return!1;if(-1!==b.className.indexOf(w.proceed_button)||(z=/^mailto:/.test(a)?
!0:!1)&&!r||-1!==b.className.indexOf(w.lightbox_close)||-1<b.className.indexOf(w.rtc_link)||-1<b.className.indexOf(w.rtc_close)||-1<b.className.indexOf(w.link_and_launch)||-1<b.className.indexOf(w.bib_popup)||-1<a.indexOf(E))return!1;P=h(b).parent(".share-actions__item").length;return!0}function l(){var b;b=z?r:G?s:q;x=g(b);u=h("."+w.lightbox_close,b.parentNode);B=h("."+w.proceed_button,b)[0];y=h("."+w.cancel_button,b);if(z||G)a.set(B,"target",""),G=z=!1}function t(){function a(){x.hide();M&&Q&&(e.add(M,
"lightbox--active"),e.add(Q,"lightbox-overlay--active"));Q=M=null}f(A,"blur",function(){k.destroy(A);x.setPrimaryFocus(B)});f(y,"click, touchend",function(b){b.preventDefault();a()});f(u,"click, touchend",function(b){b.preventDefault();a()});f(B,"click",function(){var a=this.getAttribute("data-label"),b=this.href;x.hide();c.publish("external_link_lightbox/proceed",{label:a,href:b})})}var q=h("#leaving-confirmation")[0],r=h("#leaving-confirmation--email")[0],s=h("#leaving-confirmation--internal")[0];
if(q){var v=window.Bank of America Corporation.domainWhitelist||[],w={proceed_button:"leaving-confirmation__proceed",internal_trigger:"leaving-confirmation-internal-trigger",cancel_button:"leaving-confirmation__close",focus_catch:"lightbox__focus-catch",lightbox_close:"lightbox__close",rtc_link:"cta-box__rac",rtc_close:"rtc__close-button",link_and_launch:"link-and-launch",bib_popup:"business-internet-banking-popup"},x,u,A,B,y,z=!1,G=!1,P=!1,E="#page",M,Q;p()}})},"waf/components/lightbox":function(){define("dojo/_base/lang dojo/on dojo/query dojo/window dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/keys dojo/topic dijit/focus waf/lib/page_scroll waf/lib/throttle_debounce waf/lib/utils dojo/domReady!".split(" "),
function(f,h,a,e,g,c,k,m,b,d,p,n,l,t,q){return function(r,s){function v(){I||(I=a("a, button, input, select, option",E));I.forEach(function(a){var b=g.get(a,"tabindex");b&&"-1"!==b&&g.set(a,"data-tabindex",b);g.set(a,"tabindex","-1")})}function w(){I&&I.forEach(function(a){var b=g.get(a,"data-tabindex");b?g.set(a,"tabindex",b):g.remove(a,"tabindex")})}function x(a,b){k.create("a",{"aria-hidden":"true","class":z.focus_catch,href:"#"},a,b)}function u(a){a=k.create("a",{"class":a,href:"#",title:window.Bank of America Corporation.translations&&
window.Bank of America Corporation.translations.lightbox&&window.Bank of America Corporation.translations.lightbox.close?window.Bank of America Corporation.translations.lightbox.close:"Close"});h(a,"click, touchend, keydown",function(a){"keydown"===a.type&&a.keyCode!==d.ENTER||(a.preventDefault(),A())});if(window.Bank of America Corporation.isIE7||window.Bank of America Corporation.isIE8)a.innerHTML="\x26#215;";return a}function A(b){h.emit(E,"before_hide",{bubbles:!1,cancelable:!0});L=!1;"function"===typeof H.before_hide&&!b?H.before_hide.call():(g.set(E,"aria-hidden","true"),g.set(E,"tabindex","-1"),c.remove(E,
z.active),c.remove(P,z.overlay_active),c.remove(G,z.no_scroll),a("iframe",E).forEach(function(a){g.set(a,"src","about:blank")}));h.emit(E,"after_hide",{bubbles:!1,cancelable:!0});l.unlock();v()}function B(){if(H.auto_size){b.set(E,"height","auto");b.set(M,"height","auto");var a="auto",c=0,d=e.getBox(),c=m.getMarginBox(E);c.h+2*H.spacing<d.h?c=(d.h-c.h)/2+"px":(c=H.spacing+"px",a=d.h-2*H.spacing+"px");b.set(E,"top",c);b.set(E,"height",a);b.set(M,"height",m.getMarginBox(E).h+"px")}}function y(){Q&&
n.focus(Q)}var z={active:"lightbox--active",container:"lightbox",focus_catch:"lightbox__focus-catch",inner:"lightbox__inner",overlay:"lightbox-overlay",overlay_active:"lightbox-overlay--active",close_button:"lightbox__close",auto_size:"lightbox--auto-size",scroll:"lightbox--scroll",no_scroll:"no-scroll"},G,P,E,M,Q,I,L=!1,H=f.mixin(f.clone({auto_size:!1,before_hide:!1,hide_on_overlay_click:!0,spacing:20,"class":null}),s),D=this;G=a("body")[0];l.setPersistPosition(!1);E=k.create("div",{"aria-hidden":!0,
"class":z.container,role:"dialog",tabindex:"-1"},G,"last");H.auto_size&&c.add(E,z.auto_size);H["class"]&&c.add(E,H["class"]);M=k.create("div",{"class":z.inner,role:"document"},E,"first");k.place(r,M,"first");x(M,"first");k.place(u(z.close_button),M,"last");x(M,"last");P=k.create("div",{"class":z.overlay},E,"after");(function(){H.hide_on_overlay_click&&h(P,"click, touchend",function(){A()});h(E,"keyup",function(a){27===a.keyCode&&A()});h(a("."+z.focus_catch,E),"focus",function(){y()});h(window,"resize, orientationchange",
t.debounce(function(){B()},D,100));p.subscribe("rtc/lightboxes_created",function(){v()})})();return{element:E,show:function(){q.isTablet()||l.lock();h.emit(E,"before_show",{bubbles:!1,cancelable:!0});L=!0;g.set(E,"aria-hidden","false");g.set(E,"tabindex","0");c.add(E,z.active);c.add(P,z.overlay_active);c.add(G,z.no_scroll);q.isTablet()&&window.scrollTo(0,0);B();y();h.emit(E,"after_show",{bubbles:!1,cancelable:!0});w();var a=parseInt(m.position(E).h,10),b=parseInt(m.position(M).h,10),d=parseInt(e.getBox().h,
10);b>a||a>d-40?c.add(E,z.scroll):c.remove(E,z.scroll)},hide:A,reposition:B,focus:y,makeCloseButton:u,visible:function(){return L},setPrimaryFocus:function(a){Q=a}}}})},"waf/lib/page_scroll":function(){define(["dojo/query","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/domReady!"],function(f,h,a,e){var g=f("body")[0],c=f(".page")[0],k=!0;return{setPersistPosition:function(a){k=a},lock:function(){if(c){var f=a.docScroll().y;h.add(g,"lock-scroll");k&&e.set(c,{marginTop:"-"+f+"px"})}},unlock:function(){if(c){var a=
Math.abs(parseInt(e.get(c,"marginTop"),10));h.remove(g,"lock-scroll");k&&(e.set(c,{marginTop:0}),g.style.display="none",g.offsetHeight,g.style.display="block",window.scrollTo(0,a))}}}})},"waf/lib/determine_share_title":function(){define(["dojo/query"],function(f){return function(){var h=f("[data-share-title]"),a=f("head title")[0].innerText;return h.length?h[0].getAttribute("data-share-title"):a}})},"waf/lib/popup_window":function(){define(["dojo/query"],function(f){return function(f,a,e,g){(f=window.open(f,
a,"scrollbars\x3dyes, width\x3d"+e+", height\x3d"+g+", top\x3d"+((window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height)/3-g/3+(void 0!==window.screenTop?window.screenTop:screen.top))+", left\x3d"+((window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width)/2-e/2+(void 0!==window.screenLeft?window.screenLeft:screen.left))))&&f.focus&&f.focus()}})},"waf/components/link_list":function(){require("dojo/query dojo/on dojo/_base/array dojo/dom-class dojo/dom-attr waf/lib/equalise_heights waf/lib/on_window_resize waf/lib/wrap_icon_and_last_word dojo/domReady!".split(" "),
function(f,h,a,e,g,c,k,m){function b(){560<window.innerWidth||560<document.documentElement.clientWidth||560<document.body.clientWidth?a.forEach(d,function(a){a=f(".link-list__list-item",a);c(a)}):a.forEach(p,function(a){g.set(a,"style","")})}var d=f(".link-list--horizontal"),p=f(".link-list__list-item");h=f(".link-list__link");d.length&&(k(b,this),m(h,"i",function(){setTimeout(function(){b()},20)}))})},"waf/components/link_and_launch":function(){require("dojo/query dojo/on dojo/dom-construct dojo/topic waf/components/static_modal dojo/domReady!".split(" "),
function(f,h,a,e,g){var c={},k=f(".rtc__link-and-launch-overlay")[0];h(f("#locale-select"),"change",function(){document.location.href="http://"+window.location.hostname+this.value});e.subscribe("overlay/ready",function(a){h(f(".rtc__button--primary",k)[0],"click",function(b){b.preventDefault();a.modal.hide(!0);k.style.display="none"});h(f(".rtc__button--cancel",k)[0],"click",function(a){a.preventDefault();k.style.display="none"})});c=function(){a.place(k,this.modal.element,"last");k.style.display=
"block";e.publish("overlay/ready",this)};g.build({links:".link-and-launch",beforeHide:!1,is_link_and_launch:!0});g.build({links:".link-and-launch--confirmation",beforeHide:c,is_link_and_launch:!0})})},"waf/components/static_modal":function(){define("dojo/_base/lang dojo/query dojo/on dojo/topic dojo/dom-attr waf/components/lightbox waf/lib/equalise_heights waf/lib/utils".split(" "),function(f,h,a,e,g,c,k,m){var b={},b=function(a){var b={},c="",e="";this.build_options={links:"data-modal-link",targets:"data-modal-target",
headings:".rtc__overlay-sections-item-title",containers:".rtc__overlay-sections-item-inner",is_link_and_launch:!1,link_and_launch_id:"data-modal-link"};a&&f.mixin(this.build_options,a);for(var b=!this.build_options.is_link_and_launch?h("["+this.build_options.links+"]"):h(this.build_options.links),g=0;g<b.length;g++)a={},a.el=b[g],a.link_id=this.build_options.is_link_and_launch?a.el.attributes[this.build_options.link_and_launch_id].value:a.el.attributes[this.build_options.links].value,this.bindEventHandler(a),
c=a.link_id+"|",0>e.indexOf(c)&&(e+=c,this.lightboxHandler(a))};b.prototype={bindEventHandler:function(b){var c="link/"+b.link_id;a(b.el,"click",function(a){a.preventDefault();b.modal&&h("iframe",b.modal.element).forEach(function(a){var b=g.get(a,"data-src");g.set(a,"src",b)});e.publish(c)})},lightboxHandler:function(a){var b=a.el.attributes["data-lightbox-src"]?a.el.attributes["data-lightbox-src"].value:!1,g="link/"+a.link_id,l="",t="function"===typeof this.build_options.beforeHide?f.hitch(this,
function(){this.build_options.beforeHide.call(a)}):!1,l=m.isTouchDevice()?"lightbox__scroll-wrapper":"";if(l=(b=this.build_options.is_link_and_launch?a.el.attributes.href.value:a.el.attributes["data-lightbox-src"]?a.el.attributes["data-lightbox-src"].value:!1)?'\x3cdiv class\x3d"'+l+'"\x3e\x3ciframe data-src\x3d"'+b+'" style\x3d"width:100%;height:100%;min-height:600px;"\x3e\x3c/iframe\x3e\x3c/div\x3e':h("["+this.build_options.targets+'\x3d"'+a.link_id+'"]')[0])a.modal=c(l,{auto_size:!0,before_hide:t}),
b||(!window.Bank of America Corporation.isIE7&&(!window.Bank of America Corporation.isIE8&&!m.isMobile())&&(k(h(this.build_options.headings,l)),k(h(this.build_options.containers,l))),l=null),e.subscribe(g,a.modal.show)}};return{build:function(a){new b(a)}}})},"waf/components/long_form_promo":function(){require(["dojo/on","dojo/query","dojo/topic","dojo/domReady!"],function(f,h,a){h=h("a.long-form-promo__heading");f(h,"click, touchend",function(){a.publish("promobox.link",{item_element:this})})})},"waf/components/masthead_search":function(){define("waf/components/masthead_search",
"dojo/_base/declare dijit/_WidgetBase dojo/query dojo/dom-construct dojo/topic dojo/on dojo/keys dojo/domReady!".split(" "),function(f,h,a,e,g,c,k){return f([h],{postCreate:function(){function e(a){var b=f.val();a.trim()&&(window.location.href=b+"?query\x3d"+encodeURIComponent(a.trim())+"\x26page\x3d1");return!1}var b=a(".search-box__input",this.domNode),d=a(".search-box__submit",this.domNode),f=a("#SearchResultUrl",this.domNode);c(b,"keydown",function(a){a.keyCode===k.ENTER&&(a.preventDefault(),
e(this.value))});c(d,"click",function(a){var c=b.val();a.preventDefault();e(c)})}})})},"waf/components/media_object":function(){require(["dojo/query","dojo/dom-class","dojo/NodeList-dom","dojo/domReady!"],function(f,h){h.contains(f("html")[0],"lt-ie9")&&f(".media-object--3-up:nth-child(3n+1)").addClass("js-nth-child-3n-plus-1")})},"waf/components/modal_onload":function(){require("dojo/query dojo/on dojo/dom-attr dojo/dom-class dojo/dom-style dojo/cookie waf/components/lightbox dojo/domReady!".split(" "),
function(f,h,a,e,g,c,k){function m(){h(n,"click, touchend",function(a){a.preventDefault();window.location.href=""});h(b,"click, touchend",function(){b.checked?e.remove(p,t.disabled_button):e.add(p,t.disabled_button)});h(l,"click, touchend",function(a){a.preventDefault();window.location.href=""});h(p,"click, touchend",function(a){a.preventDefault();a={path:"/",expires:90};b.checked&&(d.hide(),c(window.location.pathname,window.location.pathname,a))})}if(a=f("#leaving-confirmation--modal-onload")[0]){var b=
f("#leaving-confirmation__confirm")[0],d,p,n,l,t={proceed_button:"leaving-confirmation__proceed",cancel_button:"leaving-confirmation__close",close_cross:"lightbox__close",disabled_button:"button--disabled"};c(window.location.pathname)||(d=k(a,{hide_on_overlay_click:!1}),k=f(".lightbox__inner",d.element)[0],p=f("."+t.proceed_button,a)[0],n=f("."+t.cancel_button,a),l=f("."+t.close_cross,d.element),g.set(k,"height","100%"),g.set(k,"overflow-y","auto"),d.show(),m())}})},"waf/components/nav_tray":function(){define("dojo/_base/window dojo/keys dojo/on dojo/query dojo/topic dojo/dom-class dojo/dom-construct dojo/dom-style dojo/html dijit/focus waf/lib/page_scroll waf/lib/transition_end dojo/dom-attr dojo/domReady!".split(" "),
function(f,h,a,e,g,c,k,m,b,d,p,n,l){function t(){H&&(a(f.body(),"keyup",function(a){a.keyCode===h.ESCAPE&&F&&(C?v():s())}),a(H,"click",function(a){a.preventDefault();F?s():r()}),a(P,"click",function(a){a.preventDefault();a=this.href.split("#")[1];R=e("#"+a)[0];C=!0;L.removeClass(J.active_sub_view);c.add(A,J.show_sub_view);c.add(R,J.active_sub_view)}),a(E,"click",function(a){a.preventDefault();a=this.href.split("#")[1];R=e("#"+a)[0];C=!0;L.removeClass(J.active_sub_view);c.add(A,J.show_sub_view);c.add(R,
J.active_sub_view)}),a(B,"click",function(a){a.preventDefault();v();R=null;C=!1;c.remove(A,J.show_new_sub_view)}),a(Q,"click",function(){s()}),a(A,n,function(a){a.target===A&&(F?p.lock():(v(),z.scrollTop=0,p.unlock(),m.set(A,"display","none")))}),a(L,n,function(){C?(u(R),z.scrollTop=0):(x(),w())}),a(M,"click, touchend",function(){g.publish("masthead.link",{item_element:this})}),window.innerWidth<=D&&l.set(H,"tabindex","0"),a(window,"resize",function(){window.innerWidth<=D?l.set(H,"tabindex","0"):
l.set(H,"tabindex","-1")}))}function q(a){l.set(H,"aria-expanded",a)}function r(){F=!0;m.set(A,"display","block");l.set(A,"aria-hidden","false");q("true");setTimeout(function(){c.add(y,J.open);g.publish("navtray/open");e(".nav-tray__link")[0].focus();x()},15);e(K.aria_hide).forEach(function(a){l.set(a,"aria-hidden","true")})}function s(){F=!1;l.set(A,"aria-hidden","true");q("false");g.publish("navtray/close");c.remove(y,J.open);e(K.aria_hide).forEach(function(a){l.set(a,"aria-hidden","false")})}function v(){R=
null;C=!1;c.remove(A,J.show_sub_view)}function w(){I.forEach(function(a){a.scrollTop=0})}function x(){L.forEach(function(a){l.set(a,"aria-hidden","true")});d.focus(e("a:not(."+J.focus_trap+")",G)[0])}function u(a){L.forEach(function(a){l.set(a,"aria-hidden","true")});l.set(R,"aria-hidden","false");d.focus(e("a:not(."+J.focus_trap+")",a)[0])}if(!c.contains(document.documentElement,"lt-ie9")){var A=e(".nav-tray")[0];if(A){var B,y,z,G,P,E,M,Q,I,L,H,D=959,F=!1,C=!1,R=null,K={back_button:".nav-tray__back-button",
body:"body",default_view:".nav-tray__default-view",items_container:".nav-tray__items-container",link:".nav-tray__link--has-sub-links",new_link:".nav-tray-new__link--has-sub-links",all_links:".nav-tray__item a",page:".page",aria_hide:".page, .cookie-notification, .leaving-confirmation, .lightbox, .logon-panel",page_wrapper:".page-wrapper",sub_view:".nav-tray__sub-view",toggle_button:".nav-tray__toggle",aria_helper:".nav-tray__toggle--aria-helper"},J={active_sub_view:"nav-tray__sub-view--active",focus_trap:"nav-tray--focus-trap",
open:"nav-tray--open",page_mask:"page__mask",show_sub_view:"nav-tray--show-sub-view",show_new_sub_view:"nav-tray-new--show-sub-view"};y=e(K.body)[0];G=e(K.default_view)[0];b=e(K.page)[0];H=e(K.toggle_button)[0];P=e(K.link,A);E=e(K.new_link,A);M=e(K.all_links,A);L=e(K.sub_view,A);B=e(K.back_button,A);z=e(K.items_container,G)[0];L.query&&(I=L.query(K.items_container));Q=k.create("div",{"class":J.page_mask},b);t();q("false")}}})},"waf/lib/transition_end":function(){define([],function(){return"webkitTransitionEnd, oTransitionEnd, otransitionend, transitionend, msTransitionEnd"})},
"waf/components/pop_up_window":function(){require(["dojo/query","dojo/on","dojo/dom-attr","dojo/domReady!"],function(f,h,a){function e(){h(g,"click",function(c){c.preventDefault();var e=f(c.target).closest(".pop-up-window")[0];c=a.get(e,"data-url");var g=a.get(e,"data-name"),b=a.get(e,"data-top"),d=a.get(e,"data-left"),h=a.get(e,"data-width"),e=a.get(e,"data-height"),n="";c&&(b&&(n+="top\x3d"+b+","),d&&(n+="left\x3d"+d+","),h&&(n+="width\x3d"+h+","),e&&(n+="height\x3d"+e+","),window.open(c,g,n))})}
var g=f(".pop-up-window");1>g.length||e()})},"waf/components/rtc/account_opening":function(){define("dojo/on dojo/query dojo/dom-class dojo/dom-attr dojo/_base/array waf/lib/wrap_icon_and_last_word waf/lib/form_tooltip dojo/domReady!".split(" "),function(f,h,a,e,g,c,k){function m(){var b=!0;g.forEach(s,function(c,d){h("input:checked",c).length||(b=!1);b?a.remove(v,"button--disabled"):a.add(v,"button--disabled")});return b}function b(a){a=h('.form--fancy__group--checkboxes-group input[type\x3d"checkbox"]:not([data-reset])',
h(a).parents(".section")[0]);g.forEach(a,function(a){a.checked=!1})}function d(){f(p,"submit",function(a){m()||a.preventDefault()});f(r,"click",function(){e.get(this,"checked")&&b(this)});f(q,"click",function(){e.get(this,"checked")&&(r[0].checked=!1)});f(t,"click",function(){m()})}if(h(".form--fancy--mcbao").length){var p=h(".form--fancy--mcbao")[0],n=h(".heading--legend",p),l=h("label",p),t=h('input[type\x3d"checkbox"], input[type\x3d"radio"]',p),q=h('input[type\x3d"checkbox"]:not([data-reset])',
p),r=h('input[type\x3d"checkbox"][data-reset]',p),s=h(".section:not(.section--no-input)",p),v=h('input[type\x3d"submit"]',p)[0];c(l,"button");c(n,"button");d();k();m()}})},"waf/lib/form_tooltip":function(){define(["dojo/on","dojo/query","dojo/dom-attr","dojo/dom-class","dojo/_base/array"],function(f,h,a,e,g){return function(c){if(h(".form__tooltip-trigger").length){var e=h(".form__tooltip-trigger"),g,b,d,p;f(e,"click",function(e){e.preventDefault();g=h(this).parents("[aria-describedby]")[0];b="#"+
a.get(g,"aria-describedby");d=h(b)[0];p=a.get(d,"aria-hidden");a.set(d,"aria-hidden","true"===p?"false":"true");c&&c()})}}})},"waf/components/rtc/base":function(){require("dojo/_base/array dojo/on dojo/query dojo/string dojo/topic dijit/focus dojo/dom-attr dojo/dom-class dojo/dom-style dojo/dom-geometry dojo/dom-construct waf/lib/to_sentence waf/components/rtc/slider waf/components/about_your_business waf/plugins/append_around dojo/NodeList-traverse dojo/domReady!".split(" "),function(f,h,a,e,g,c,
k,m,b,d,p,n,l,t,q){function r(){var b=a(x.container)[0];b&&!window.Bank of America Corporation.isIE7&&!window.Bank of America Corporation.isIE8&&m.contains(b,u.rtc_append_around)&&q.appendAround(b)}function s(b){var c=a(".rtc__heading",b);c[0]&&(b="Skip Contact Us",window.Bank of America Corporation.translations&&(window.Bank of America Corporation.translations.rtc&&window.Bank of America Corporation.translations.rtc.skip_links)&&(b=window.Bank of America Corporation.translations.rtc.skip_links),b=p.toDom('\x3ca href\x3d"#skip-rtc" class\x3d"rtc__skip visually-hidden"\x3e'+b+"\x3c/a\x3e"),p.place(b,c[0],"before"),h(b,"click",function(){var b=
a('div[class*\x3d"layout--"]'),d=c.closest('div[class*\x3d"layout--"]');b.forEach(function(a,c){if(a===d[0]){var e=c+1;e<b.length&&(e=b[e],k.set(e,"id","skip-rtc"),k.set(e,"tabindex","-1"))}})}))}function v(){g.subscribe("rtc/change_slide/begin",function(b,c){function d(b,c){a("input",b).forEach(function(a){k.get(a,"value")===c&&(a.checked=!0)})}function g(c){var d=[];f.forEach("input div select span strong textarea".split(" "),function(e){e=a(".rtc__slides-item.active "+e+'[name\x3d"'+c+'"],'+(".rtc__slides-item.active "+
e+'[data-field-name\x3d"'+c+'"]')+","+(".rtc__slides-item.active "+e+'[data-name\x3d"'+c+'"]'),b);e.length&&d.push(e)});return d}function h(b,c){function e(g){b[g].forEach(function(b){if("INPUT"===b.nodeName)b.value=l[c];else if("DIV"===b.nodeName){var e=l[c];e instanceof Array||(e=[e]);f.forEach(e,function(a){d(b,a)})}else if("SELECT"===b.nodeName){for(e=0;e<b.options.length;e++)if(b.options[e].value===l[c]){b.selectedIndex=e;p=!0;break}!p&&a(b).closest(x.trigger_container)[0]&&(b.value="Other",
a(b).closest(x.trigger_container).children(x.trigger_target).children("textarea")[0].value=l[c])}else b.innerHTML=n(l[c])})}var g,k=b.length;for(g=0;g<k;g++)e(g)}var l=c.get(),m,p=!1;(function(){var c=k.get(b,"data-translation-key"),d=window.Bank of America Corporation.translations.rtc[c]||!1,g={topic:"\x3cstrong\x3e"+l.topic+"\x3c/strong\x3e"};if(d){if("request_a_callback"===c){var c="call_time"in l&&1===l.call_time.length?d.summary.single_selection:"call_time"in l&&2===l.call_time.length?d.summary.double_selection:d.summary.any_time,
h=0;f.forEach(l.call_time,function(a){h++;var b=a.toLowerCase();a=d.value_labels.call_time[b]||a;g["call_time_"+h]="\x3cstrong\x3e"+a+"\x3c/strong\x3e"})}else c=d.summary;a(x.summary,b)[0].innerHTML=e.substitute(c,g)}})();(function(){for(var a in l)(m=g(a))&&h(m,a)})()})}function w(){if(a(".rtc")[0]){var c=a(".rtc")[0].offsetHeight,d=a(".page")[0];b.set(d,"min-height",c+108+"px")}}var x={container:".rtc",summary:".rtc__summary",trigger_container:".rtc__form-trigger-container",trigger_target:".rtc__form-trigger-target"},
u={rtc_append_around:"rtc--append-around"},A=[{deeplink:["callback"],trigger:".rtc__actions-item-link--callback",content:".rtc__callback-slider",type:"callback"},{deeplink:["email"],trigger:".rtc__actions-item-link--email",content:".rtc__email-slider",type:"email"},{deeplink:["about"],trigger:".about-your-business__button",content:".about-your-business__slider",type:"about-your-business"},{deeplink:[],trigger:".cta-box__list-item--rac",content:".rtc__callback-slider",type:"callback"}];(function(){v();
w();r();a(x.container).forEach(function(b){s(b);f.forEach(A,function(c){var d=a(c.trigger,b)[0],e=a(c.content,b)[0],f=c.deeplink;c=c.type;if(d&&e){var g=l(e,c);"about-your-business"===c&&t.init();h(d,"click",function(a){a.preventDefault();g.show()});if(1<location.hash.length)for(d=0;d<f.length;d++)location.hash.substr(1)===f[d]&&g.show()}});g.publish("rtc/lightboxes_created");h(b,"a:click",function(a){m.contains(this.parentNode,"accordion__heading")||g.publish("contact/link_click",{name:k.get(a.target.parentNode,
"data-cta-name")})})})})()})},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(f,h){var a={};h.setObject("dojo.string",a);a.rep=function(a,f){if(0>=f||!a)return"";for(var c=[];;){f&1&&c.push(a);if(!(f>>=1))break;a+=a}return c.join("")};a.pad=function(e,f,c,h){c||(c="0");e=String(e);f=a.rep(c,Math.ceil((f-e.length)/c.length));return h?e+f:f+e};a.substitute=function(a,g,c,k){k=k||f.global;c=c?h.hitch(k,c):function(a){return a};return a.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,
function(a,b,d){a=h.getObject(b,!1,g);d&&(a=h.getObject(d,!1,k).call(k,a,b));return c(a,b).toString()})};a.trim=String.prototype.trim?h.trim:function(a){a=a.replace(/^\s+/,"");for(var f=a.length-1;0<=f;f--)if(/\S/.test(a.charAt(f))){a=a.substring(0,f+1);break}return a};return a})},"waf/lib/to_sentence":function(){define(["dojo/_base/lang"],function(f){return function(h,a){if(!(h instanceof Array))return h;!1!==a&&(a=!0);var e;e={words_connector:", ",two_words_connector:" and ",last_word_connector:", and "};
e=a&&window.Bank of America Corporation.translations.sentence?f.mixin(f.clone(e),window.Bank of America Corporation.translations.sentence):e;switch(h.length){case 0:return"";case 1:return h[0];case 2:return h[0]+e.two_words_connector+h[1];default:var g=h.slice(0),c=g.pop();return g.join(e.words_connector)+e.last_word_connector+c}}})},"waf/components/rtc/slider":function(){define("dojo/query dojo/on dojo/request dojo/topic dojo/dom-attr dojo/fx/easing dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/io-query dojo/keys dojo/window dojo/_base/array dojo/_base/fx dijit/focus waf/components/lightbox ./form ./model waf/lib/equalise_heights waf/lib/on_window_resize waf/lib/to_sentence waf/lib/text_replace waf/lib/language_dir dojo/NodeList-data dojo/domReady!".split(" "),
function(f,h,a,e,g,c,k,m,b,d,p,n,l,t,q,r,s,v,w,x,u,A,B,y){return function(z,G){function P(){ga.forEach(function(a,b){0===b?(T(a),k.replace(a,"active","inactive"),d.set(a,y.relative_dir.left,0)):k.replace(a,"inactive","active")})}function E(){return ga.filter("[data-hidden\x3dfalse]")}function M(a){var b=ga.filter('[data-name\x3d"'+a+'"]')[0];a="true"===g.get(b,"data-hidden");g.set(b,"data-hidden","false");b=E().indexOf(b);a&&b<=W.current_slide_number&&W.current_slide_number++;return b}function Q(a){var b=
null,b=a?M(a):W.current_slide_number+1;(function(a,b){E().forEach(function(c,e){e===a?(k.replace(c,"active","inactive"),d.set(c,y.relative_dir.left,0),oa=c):e===b?(k.replace(c,"active","inactive"),d.set(c,y.relative_dir.left,"forward"===pa?"100%":"-100%"),ba=c):k.replace(c,"inactive","active")})})(W.current_slide_number,b)}function I(){return"edit"===g.get(f(U.slide_active,z)[0],"data-name")}function L(){if(ia){if(ia.checked||I())da.persistAybData(),I()&&ka++}else da.persistAybData();e.publish("rtc/change_slide/begin",
z,da);S();var a=f(U.slide_title_replace,z)[0],b=document.createElement("span"),c=X.makeCloseButton(ca.close_button),d;a.innerHTML="";d=ma||1<ka?document.createTextNode(g.get(a,"data-edit-text")):document.createTextNode(g.get(a,"data-default-text"));b.appendChild(d);b.className="rtc__overlay-title-text";a.appendChild(b);a.appendChild(c);a=f(U.save_button,z)[0];b=document.createElement("span");a.innerHTML="";c=ma||1<ka?document.createTextNode(g.get(a,"data-edit-text")):document.createTextNode(g.get(a,
"data-default-text"));b.appendChild(c);a.appendChild(b);R()}function H(){na=!1;T(ba);k.replace(oa,"inactive","active");W.current_slide_number=E().indexOf(ba);var a=g.get(ba,"data-name");e.publish("rtc/change_slide/end",a,G);if("about-your-business"===G){for(var b=f(".about-your-business__slider input[type\x3dcheckbox]"),c=[],d={},d=0;d<b.length;d++)!0===b[d].checked&&c.push(b[d]);d={revenue:f("#ayb_turnover")[0].value,sector:f("#ayb_sector")[0].value,business_location:f("#ayb_location")[0].value,
international_markets:c};e.publish("ayb_click_save",d,a)}}function D(){return"forward"===pa?"-"+W.slider_width:W.slider_width}function F(){W.slider_width=b.getContentBox(ha).w}function C(a,b){if(!0!==na){na=!0;F();pa=a;Q(b);if(sa){var c,e;"ltr"===y.dir?(c={left:D()},e={left:"0"}):(c={right:D()},e={right:"0"});q.animateProperty({node:oa,duration:W.speed,properties:c,easing:W.easing,onBegin:L,onEnd:H}).play();q.animateProperty({node:ba,duration:W.speed,properties:e,easing:W.easing}).play()}else L(),
d.set(oa,y.relative_dir.left,D()),d.set(ba,y.relative_dir.left,0),H(),J(),X.reposition();if("back"===a&&(c=f("textarea[name\x3dother-topic]",z),c.length&&(c=c[0],""===c.value||" "===c.value)))c.value=""}}function R(){t.forEach(ua,function(a){a.validate()})}function K(){sa=ta<=l.getBox().w&&!window.Bank of America Corporation.isIE7;var a=f(U.slide_content,z);a.forEach(function(a){x(f(U.section_heading,a),{use_y_offset:!0});x(f(U.inner_container,a),{use_y_offset:!0,use_min_height:!0})});sa?x(a):a.style("height","auto");J();
X.reposition()}function J(){var a=ga.filter(".active")[0];a&&(W.slider_height=b.getContentBox(a).h,d.set(ha,"height",W.slider_height+"px"))}function N(){var a=f("textarea[name\x3dother-topic]",z)[0];t.forEach(f("input, select, textarea",z),function(a){"checkbox"===a.type||"radio"===a.type?a.checked=!1:"true"!==g.get(a,"data-preselect")&&!g.get(a,"data-placeholder-no-clear")&&(a.value="")});a&&(a.value="",h.emit(a,"blur",{bubbles:!0,cancelable:!0}))}function O(b){B.set({node:b,attr:"data-replacement-text",
animationType:"ellipses",className:"rtc__ellipses"});clearTimeout(la);a.post(ja?g.get(ja,"action"):"",{data:V(),handleAs:"json"}).then(function(a){la=setTimeout(function(){B.set({node:b,attr:"data-original-text"});a.success?(C("forward"),e.publish("request_callback",{event_type:"request_callback_event",topic:da.data.topic,message:da.data.message,business_name:da.data.business_name,turnover:da.data.turnover,sector:da.data.sector,location:da.data.location,interested_markets:da.data.market.join(","),
use_again:ia&&ia.checked,pref_time:da.data.call_time,type:G})):C("forward","error")},2E3)},function(){C("forward","error")})}function V(){var a=da.get(),b=f('meta[name\x3d"guid"]')[0],b=b?g.get(b,"content"):"",b={current_url:document.URL,editorial_id:b?b:""},c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c]instanceof Array?A(a[c],!1):a[c],d=d.replace(/</g,"").replace(/>/g,"");b[c]=d}return p.objectToQuery(b)}function T(a){if(X.visible()){var b=m.create("a",{href:"#","class":ca.focus_catch},a,"first");
X.setPrimaryFocus(b);X.visible()&&X.focus();h(b,"blur",function(){var c;c=null;c=f(U.inner_container,a)[0];var d=f(".form--fancy__group",c)[0];if(c=d?f("input, select",d)[0]:f("a",c)[0])m.destroy(b),X.setPrimaryFocus(f("."+ca.close_button,a)[0]),r.focus(c)})}}function S(){fa.forEach(function(a){g.has(a,"data-edit-text")&&(g.has(a,"data-default-text")||g.set(a,"data-default-text",a.innerHTML),a.innerHTML=ia&&ia.checked&&ma||va||ma?g.get(a,"data-edit-text"):g.get(a,"data-default-text"))})}var U={back_link:".rtc__button--back",
cancel_link:".rtc__button--cancel",change_details_link:".rtc__change-details",form:"form",heading:".rtc__overlay-title",inner_container:".rtc__overlay-sections-item-inner",save_button:".rtc__button--save",save_details_input:".rtc__save-details",section_heading:".rtc__overlay-sections-item-title",slide_active:".rtc__slides-item.active",slide_content:".rtc__overlay-content",slide_title_replace:".rtc__overlay-title--replace",slide:".rtc__slides-item",slider:".rtc__slides"},ca={close_button:"rtc__close-button",
focus_catch:"rtc__focus-catch"},W={current_slide_number:0,easing:c.expoInOut,slider_height:0,slider_width:0,speed:600},$=this,aa,ea,fa,pa,oa,Z,ja,Y,X,ba,ia,ha,ga,la,sa=!0,ta=1100,va=!1,ma=!1,ka=0,ua=[],na=!1,da=new w;ja=f(U.form,z)[0];ha=f(U.slider,z)[0];ga=f(U.slide,z);Z=f(U.heading,z);Y=ga.filter('[data-hidden\x3d"true"]');aa=f(U.back_link,z);ea=f(U.cancel_link,z);fa=f(U.change_details_link,z);ia=f(U.save_details_input,z)[0];(function(){X=s(z,{auto_size:!0,"class":"lightbox--rtc"});Z.forEach(function(a){m.place(X.makeCloseButton(ca.close_button),
a,"after")})})();(function(){h(X.element,"before_show",function(){N();da.restore();e.publish("rtc/change_slide/begin",z,da);R()});h(X.element,"before_hide",function(){N()});h(X.element,"after_show",function(){e.publish("rtc/slider_visible",G)});h(X.element,"after_hide",function(){W.current_slide_number=0;Y.attr("data-hidden","true");P()});ea.on("click, keydown",function(a){"keydown"===a.type&&a.keyCode!==n.ENTER||(a.preventDefault(),X.hide())});aa.on("click, keydown",function(a){"keydown"===a.type&&
a.keyCode!==n.ENTER||(a.preventDefault(),C("back","start"))});fa.on("click, keydown",function(a){"keydown"===a.type&&a.keyCode!==n.ENTER||(a.preventDefault(),va=!0,C("back","edit"))});"ontouchstart"in window||u(K,$);h(f("form",z),"keydown",function(a){a.keyCode===n.ENTER&&"BUTTON"!==document.activeElement.tagName&&a.preventDefault()});e.subscribe("rtc/optional_data_entered",function(){ma=!0});e.subscribe("rtc/other_topic_open_close",function(){K()})})();P();(function(){f(U.slide,z).forEach(function(a){ua.push(v(a,
{model:da,one_valid_required:"about-your-business"===G,on_commit:function(a){"submit"===g.get(a,"type")?O(a):C("forward")}}))})})();K();return{setWidth:F,show:function(){X.show();e.publish("rtc_show",{container:z,type:G});"ontouchstart"in window||T(ga[0]);(k.contains(f("html")[0],"lt-ie10")||!sa)&&K()},hide:function(){X.hide()}}}})},"waf/components/rtc/form":function(){define("dojo/on dojo/query dojo/dom-class dojo/dom-attr dojo/dom-style dojo/topic dojo/_base/array dojo/domReady!".split(" "),function(f,
h,a,e,g,c,k){return function(g,b){function d(){var a,b;s={};B=[];h(r.field,g).forEach(function(c){var d=e.get(c,"type");a=c.value;if("checkbox"===d||"radio"===d)b=e.get(h(c).closest(".form--fancy__group")[0],"data-field-name"),"checkbox"===d?(b in s||(s[b]=[]),c.checked&&(s[b].push(a),c.value&&-1!==k.indexOf(A,b)&&B.push(e.get(c,"data-id")))):c.checked&&(s[b]=a);else{if(d="SELECT"===c.tagName)d=(d=h(r.trigger_select,g)[0])?"true"===e.get(d,"data-other"):!1;d?(b=e.get(c,"name"),a=h(c).closest(r.trigger_container).children(r.trigger_target).children("textarea")[0].value||
" ",s[b]=a):(b=e.get(c,"name"),"DIV"!==c.tagName&&(s[b]=a,"SELECT"===c.tagName&&(c=h("option[value\x3d'"+a+"']",c)[0],-1!==k.indexOf(A,b)&&c.value&&B.push(e.get(c,"data-id")))))}})}function p(a){var b=[];h("input",v[a].element).forEach(function(a){a.checked&&b.push(a.value)});v[a].value=b.toString();return b}function n(){for(var b=0;b<x.length;b++)a.add(x[b].parentNode,"error");c.publish("icons/set");c.publish("rtc/other_topic_open_close")}function l(){for(var b=0;b<v.length;b++)a.remove(v[b].element.parentNode,
"error")}function t(){function a(b){"function"===typeof String.prototype.trim&&(b=b.trim());return b}var c,d=v.length,e,f=0,g;x=[];e={is_text:function(b){b=a(b);return"string"===typeof b&&" "!==b&&/^[A-Za-z ]{0,20}$/.test(b)?!0:!1},is_number:function(b){b=a(b);return" "!==b&&!isNaN(b)?!0:!1},is_checked:function(a){return 0===a.length?!0:0<a.length?!0:!1},has_value:function(b){b=a(b);return""!==b&&" "!==b},is_email:function(a){return/\S+@\S+\.\S+/.test(a)}};for(c=0;c<d;c++)g=v[c].is_checkbox_group?
p(c):v[c].element.value,e[v[c].type](g)?""===v[c].value?(x.push(v[c].element),f++):""===v[c].element.value&&(x.push(v[c].element),f++):(x.push(v[c].element),f++);return b.one_valid_required?f<d:0===f}function q(){w&&(t()?a.remove(w,"button--disabled"):a.add(w,"button--disabled"))}var r={commit_button:".rtc__button--primary",field:".rtc__form-input",trigger_target:".rtc__form-trigger-target",trigger_container:".rtc__form-trigger-container",trigger_select:".rtc__form-trigger-select"},s={},v=[],w,x=
[],u=!1,A=["turnover","sector","location","market"],B=[];w=h(r.commit_button,g)[0];(function(){h(r.field,g).forEach(function(a){"true"===e.get(a,"data-field-required")&&v.push({type:e.get(a,"data-validation-type"),element:a,is_checkbox_group:e.get(a,"data-checkbox-group")?!0:!1})})})();(function(){w&&(f(w,"click",function(a){a.preventDefault();if(t()&&b.on_commit){d();b.model.set(s);b.model.setGuids(B);b.on_commit(w);var e=A.length,f,g=[];for(a=0;a<e;a++)f=s[A[a]],"object"===typeof f?f.length&&g.push(f):
f&&g.push(f);0!==g.length&&c.publish("rtc/optional_data_entered")}else u=!0,l(),n()}),f(h(r.field,g),"change",function(a){a.preventDefault();q();u&&(l(),n())}),f(h(r.trigger_select,g),"keyup, change",function(){var b=h(this)[0].value,d,b=h(this).children("option[value\x3d'"+b+"']")[0];d=h(this).closest(r.trigger_container).children(r.trigger_target)[0];"rtc__form-trigger-input"===e.get(b,"class")?(e.set(h(r.trigger_select,g)[0],"data-other","true"),a.remove(d,"form--fancy__group--hidden")):(e.set(h(r.trigger_select,
g)[0],"data-other","false"),a.add(d,"form--fancy__group--hidden"));h(".rtc__callback-slider #other-topic-wrapper")[0]&&!a.contains(h(".rtc__callback-slider #other-topic-wrapper")[0],"form--fancy__group--hidden")&&(b=h("#rac_other-topic")[0],e.set(b,"data-field-required","true"),v.push({type:e.get(b,"data-validation-type"),element:b,is_checkbox_group:e.get(b,"data-checkbox-group")?!0:!1}));if(h(".rtc__callback-slider #other-topic-wrapper")[0]&&a.contains(h(".rtc__callback-slider #other-topic-wrapper")[0],
"form--fancy__group--hidden")){b=h("#rac_other-topic")[0];for(d=0;d<v.length;d++)v[d].element===b&&v.splice(d,1)}h(".rtc__slides--email #other-topic-wrapper")[0]&&!a.contains(h(".rtc__slides--email #other-topic-wrapper")[0],"form--fancy__group--hidden")&&(b=h("#email_other-topic")[0],e.set(b,"data-field-required","true"),v.push({type:e.get(b,"data-validation-type"),element:b,is_checkbox_group:e.get(b,"data-checkbox-group")?!0:!1}));if(h(".rtc__slides--email #other-topic-wrapper")[0]&&a.contains(h(".rtc__slides--email #other-topic-wrapper")[0],
"form--fancy__group--hidden")){b=h("#email_other-topic")[0];for(d=0;d<v.length;d++)v[d].element===b&&v.splice(d,1)}c.publish("rtc/other_topic_open_close")}));c.subscribe("rtc_show",function(){l();var b=h(r.trigger_select,g)[0],c;c=a.contains(h("html")[0],"lt-ie10");c=h(c?"option:selected":"option[selected]",b)[0];b&&(e.set(h(r.trigger_select,g)[0],"data-other","false"),a.add(h(r.trigger_target,g)[0],"form--fancy__group--hidden"),c=c?c.value:"",b.value=c);u=!1})})();q();return{validate:q}}})},"waf/components/rtc/model":function(){define(["dojo/cookie",
"dojo/query","dojo/_base/array","dojo/_base/json"],function(f,h,a,e){return function(){function g(b){var c={};a.forEach(m[b],function(a){h.data[a]&&(c[a]=h.data[a])});return e.toJson(c)}function c(b,c){c=e.fromJson(c);a.forEach(m[b],function(a){c[a]&&(h.data[a]=c[a])})}var h=this,m={ayb:["sector","turnover","location","market"],contact:["name","phone","business_name","call_time","email"]},b;this.data={};this.get=function(){return this.data};this.set=function(a){for(var b in a)a.hasOwnProperty(b)&&
(this.data[b]=a[b])};this.setGuids=function(a){b="";b=a.join("|")};this.reset=function(){this.data={}};this.restore=function(){h.reset();this.restoreAybData()};this.restoreAybData=function(){f("ayb_data")&&c("ayb",f("ayb_data"))};this.persistAybData=function(){var a={path:"/",expires:90};f("ayb_data",g("ayb"),a);f("aybDataKey",b,a)}}})},"dojo/_base/json":function(){define(["./kernel","../json"],function(f,h){f.fromJson=function(a){return eval("("+a+")")};f._escapeString=h.stringify;f.toJsonIndentStr=
"\t";f.toJson=function(a,e){return h.stringify(a,function(a,c){if(c){var e=c.__json__||c.json;if("function"==typeof e)return e.call(c)}return c},e&&f.toJsonIndentStr)};return f})},"waf/lib/text_replace":function(){define(["dojo/dom-attr"],function(f){return{set:function(h){var a=f.get(h.node,h.attr);"ellipses"===h.animationType&&(a+='\x3cspan class\x3d"'+h.className+'"\x3e\x3cspan\x3e.\x3c/span\x3e\x3cspan\x3e.\x3c/span\x3e\x3cspan\x3e.\x3c/span\x3e\x3c/span\x3e');h.node.innerHTML=a}}})},"waf/components/about_your_business":function(){define("dojo/query dojo/on dojo/dom-class dojo/dom-attr dojo/cookie dojo/_base/array dojo/html dojo/topic dojo/NodeList-traverse dojo/domReady!".split(" "),
function(f,h,a,e,g,c,k,m){function b(){g(s)&&p();d()}function d(){h(w,"click",function(){p()});h(v,"click",function(){m.publish("ayb_click_open")})}function p(){t&&a.remove(t,l);!a.contains(n,q.edit)&&!a.contains(w,q.disabled_button)&&(c.forEach(v,function(a){k.set(a,r)}),n.addClass(q.edit))}var n=f(".about-your-business"),l="layout--graphite",t=f("."+l)[0];if(n.length){var q={disabled_button:"button--disabled",edit:"about-your-business--is-edit"},r=e.get(f(".about-your-business__button")[0],"data-edit-text"),
s="ayb_data",v=f(".about-your-business__button a"),w=f(".about-your-business__submit")[0];return{init:b}}t&&a.remove(t,l)})},"waf/components/rtc_static":function(){define(["waf/components/static_modal","dojo/domReady!"],function(f){f.build()})},"waf/components/search_box":function(){require(["dojo/query","dojo/on","dojo/keys","dojo/dom-class","dojo/domReady!"],function(f,h,a,e){function g(){h(d,"click",c);h(d,"keyup",function(b){b.keyCode===a.TAB&&b.shiftKey&&c(b)});h(d,"keydown",function(b){b.keyCode!==
a.TAB||b.shiftKey||k()});h(p,"keyup",function(b){b.keyCode===a.TAB&&(b.shiftKey?k():c(b))});h(p,"keydown",function(b){b.keyCode!==a.TAB||b.shiftKey||c(b)});h(b,"click",k)}function c(a){(!l||0===n.value.length)&&a.preventDefault();e.remove(n,t.hidden_input);e.remove(d,t.disabled_button);n.focus();l=!0}function k(){l&&(e.add(n,t.hidden_input),e.add(d,t.disabled_button),n.blur(),l=!1)}var m=f(".search-box--header")[0];if(m){var b=f("#page")[0],d=f(".search-box__submit--disabled",m)[0],p=f(".search-box__focus-catch",
m)[0],n=f(".search-box__input",m)[0],l=!1,t={hidden_input:"search-box__input--hidden",disabled_button:"search-box__submit--disabled"};g()}})},"waf/components/search_results":function(){define("dojo/query dojo/on dojo/io-query dojo/request/xhr dojo/topic dojo/domReady".split(" "),function(f,h,a,e,g,c){c(function(){var c=f(".search-results"),m=f("#search_results_datasource")[0];c.length&&(f("#MaximumResults").on("change",function(){var b=this.value,c=a.queryToObject(decodeURIComponent(dojo.doc.location.search.slice(1)));
c.page=1;c.result=b;window.location.search="?"+a.objectToQuery(c)}),f(".tabs \x3e .tabs__list \x3e .tabs__tab \x3e a").forEach(function(b){var c=f(".tabs__label",b).attr("id");h(b,"click",function(){var b=a.queryToObject(decodeURIComponent(dojo.doc.location.search.slice(1)));b.tags=c;delete b.page;window.location.search="?"+a.objectToQuery(b)});var g=a.queryToObject(decodeURIComponent(dojo.doc.location.search.slice(1)));e("/service/search/resultcount",{method:"POST",data:{id:m.value,query:g.query,
tags:c},handleAs:"json"}).then(function(a){f(".tabs__count",b).innerHTML("("+a+")")},function(){})}),g.publish("search_results",{query:window.Bank of America Corporation.PAGE.oss,total_records:window.Bank of America Corporation.PAGE.oss_r,tab_item:window.Bank of America Corporation.PAGE.oss_scope,current_page:window.Bank of America Corporation.PAGE.oss_pg,total_page:window.Bank of America Corporation.PAGE.oss_pgt}))})})},"waf/components/share_actions":function(){require("dojo/query dojo/topic dojo/dom-attr waf/lib/popup_window waf/lib/determine_share_title dojo/NodeList-traverse dojo/domReady!".split(" "),function(f,
h,a,e,g){f=f(".share-actions");if(f.length)f.query("a").on("click",function(a){a.preventDefault()})})},"waf/components/simple_tabs":function(){define("dijit/_WidgetBase dojo/_base/declare dojo/query dojo/on dojo/dom-class dojo/dom-style dojo/_base/array dojo/dom-attr dojo/NodeList-traverse".split(" "),function(f,h,a,e,g,c,k,m){return h([f],{anchors:null,listItems:null,map_hash:"#results__g-map",branch_click_view:!1,current_item:a(".tabs__tab--selected")[0],hiddenClass:"hidden",postCreate:function(){this.anchors=
a("a",this.domNode);this.listItems=a("li",this.domNode);this.hideInitalTabContent();this.bindUiActions()},bindUiActions:function(){var b=this,c;e(this.anchors,"click",function(e){var f=a(this).closest("li")[0];c=e.target===this?e.target.hash:e.target.parentNode.hash;e.preventDefault();b.current_item!==f&&(b.current_item=f,b.toggleBranchDetail(c),k.forEach(b.listItems,function(c){g.remove(c,"tabs__tab--selected");m.set(a(".tabs__link",c)[0],"aria-selected","false");b.toggleContentVisibility(c)}),g.add(b.current_item,
"tabs__tab--selected"),m.set(a(".tabs__link",b.current_item)[0],"aria-selected","true"))})},toggleBranchDetail:function(b){var d=a(".branch-detail")[0];d&&(b===this.map_hash?c.set(d,"display","none"):c.set(d,"display","block"))},hideInitalTabContent:function(){k.forEach(this.listItems,function(b){g.contains(b,"tabs__tab--selected")||(b=a(b).children("a")[0],b=m.get(b,"href"),g.add(a(b)[0],"branch-finder__mobile-hidden"))})},toggleContentVisibility:function(b){b=a(b).children("a")[0];b=m.get(b,"href");
g.toggle(a(b)[0],this.hiddenClass)}})})},"waf/components/skip_links":function(){require(["dojo/query","dojo/on","dojo/dom-class","dojo/dom-attr","dojo/domReady!"],function(f,h,a,e){var g=f(".skip-links__inner"),c=f(".skip-links a");h(c,"focus",function(){a.add(g[0],"skip-links__inner--show")});h(c,"blur",function(){a.remove(g[0],"skip-links__inner--show")});h(c,"click",function(a){var c=a.currentTarget.href.split("#")[1],c=f("#"+c);a.preventDefault();e.set(c[0],"tabindex","0");c[0].focus()})})},"waf/components/statistic":function(){require(["dojo/query",
"dojo/_base/array","dojo/dom-class","dojo/domReady!"],function(f,h,a){f=f(".statistic__number");if(f.length){var e;h.forEach(f,function(f){e=f.innerHTML.length;5<e?a.add(f,"statistic__number--small"):3<e?a.add(f,"statistic__number--medium"):a.add(f,"statistic__number--large")})}})},"waf/components/subfamily_teaser":function(){require(["dojo/query","dojo/has","dojo/NodeList-dom","dojo/domReady!"],function(f,h){8===h("ie")&&f(".subfamily-teaser--secondary:nth-child(odd)").addClass("subfamily-teaser--secondary--odd")})},
"waf/components/subfamily_teaser_list":function(){require("dojo/on dojo/query dojo/dom-geometry dojo/dom-style waf/lib/on_window_resize dojo/dom-class waf/lib/equalise_heights dojo/domReady!".split(" "),function(f,h,a,e,g,c,k){function m(){b();g(b,this);c.contains(document.documentElement,"lt-ie9")&&d()}function b(){p.forEach(function(a){a=h(".subfamily-list__item",a);k(a)})}function d(){p.forEach(function(a){var b=4;c.contains(a,"subfamily-teaser-list--secondary")&&(b=3);a=h(".subfamily-list__item:nth-child("+
b+"n)",a);h(a).addClass("subfamily-list__item--omega")})}var p=h(".subfamily-teaser-list");p.length&&m()})},"waf/components/sub_section_nav":function(){require("dojo/_base/window dojo/query dojo/dom-construct dojo/dom-class dojo/dom-attr dojo/on dojo/dom-geometry waf/lib/on_window_resize waf/lib/internal_navigation dojo/keys dojo/domReady!".split(" "),function(f,h,a,e,g,c,k,m,b,d){function p(){var b=k.getContentBox(s[0]).w,c=k.getContentBox(v[0]).w;x=k.getContentBox(w[0]).w;c*v.length>b-x&&1<v.length?
(a.place(v[v.length-1],u[0],"first"),n()):c*(v.length+1)<b-x&&0<A.length&&(a.place(A[0],s[0],"last"),n())}function n(){v=h("\x3e .sub-section-nav__list-item",s[0]);A=h("\x3e .sub-section-nav__list-item",u[0]);l();A.length?e.add(w[0],"sub-section-nav__more-btn--show"):e.remove(w[0],"sub-section-nav__more-btn--show");q();p()}function l(){var a=h(".last");a.length&&e.remove(a[0],"last");e.add(v[v.length-1],"last")}function t(){var a=document.createElement("div"),b=document.createElement("a"),c=document.createElement("span"),
d=document.createElement("span"),e=g.get(s[0],"data-text-more"),f=document.createElement("i");a.className="sub-section-nav__more-btn";b.className="sub-section-nav__more-anchor";b.href="#";g.set(b,"aria-expanded","false");d.innerHTML=e;d.className="sub-section-nav__more-innerspan";f.className="icon";g.set(f,"aria-hidden","true");a.appendChild(b);s[0].appendChild(a);b.appendChild(c);c.appendChild(d);c.appendChild(f);g.set(b,"tabindex","0");g.set(b,"role","button");w=h(".sub-section-nav__more-btn");
r(a,b)}function q(){var b=h(".sub-section-nav__list-anchor--active").parent();b.parent()[0]===u[0]&&(a.place(b[0],s[0],"first"),v=h("\x3e .sub-section-nav__list-item",s[0]))}function r(a,b){function h(c){var d=c?"add":"remove";g.set(b,"aria-expanded",c?"true":"false");e[d](a,"sub-section-nav__more-btn--active")}window.navigator.msPointerEnabled?c(b,"click",function(a){a.preventDefault();h(!0)}):(c(b,"click, touchleave",function(b){b.preventDefault();b.stopPropagation();h(!e.contains(a,"sub-section-nav__more-btn--active"))}),
c(f.body(),"click",function(){e.contains(a,"sub-section-nav__more-btn--active")&&h(!1)}),c(a,"mouseover",function(a){a.stopPropagation();h(!0)}),c(a,"mouseout",function(a){a.stopPropagation();h(!1)}),c(B,"keydown",function(a){a.keyCode!==d.TAB||a.shiftKey||(a.stopPropagation(),h(!1))}),c(b,"keydown",function(a){a.keyCode===d.TAB&&a.shiftKey&&(a.stopPropagation(),h(!1))}),c(f.doc,"keyup",function(a){a.keyCode===d.ESCAPE&&h(!1)}))}var s=h(".sub-section-nav__list"),v,w,x,u,A,B;s.length&&(b(),m(p,this),
v=h("\x3e .sub-section-nav__list-item",s[0]),w=h(".sub-section-nav__more-btn"),B=v.last()[0],t(),u=document.createElement("ul"),u.className="sub-section-nav__drop-down-list",w[0].appendChild(u),u=h(".sub-section-nav__drop-down-list"),A=h("\x3e .sub-section-nav__list-item",u[0]),q(),l(),p())})},"waf/lib/internal_navigation":function(){define("dojo/query dojo/on dojo/_base/connect dojo/dom-class dojo/dom-attr dojo/dom-geometry dojo/domReady!".split(" "),function(f,h,a,e,g,c){function k(b){b.preventDefault();
a.publish("internal_navigation/click",[{el:b.currentTarget}])}if(f(".header__primary")[0]){var m=c.getMarginBox(f(".header__primary")[0]).h+c.getMarginBox(f(".header__secondary")[0]).h,b=0,d=0;a.subscribe("internal_navigation/click",function(a){for(var b=f("[data-internal-item]",f(a.el).parents("ul")[0]),c=b.length-1;0<=c;--c)e.remove(b[c],"sub-section-nav__list-anchor--active");e.add(a.el,"sub-section-nav__list-anchor--active")});a.subscribe("internal_navigation/click",function(a){for(var b=f(".sub-section-content__item",
f(a.el).parents(".sub-section-nav")[0]),c=b.length-1;0<=c;--c)e.remove(b[c],"sub-section-content__item--active"),g.get(b[c],"data-internal-content")===g.get(a.el,"data-internal-item")&&e.add(b[c],"sub-section-content__item--active")});a.subscribe("internal_navigation/click",function(a){a=c.docScroll().y+c.position(a.el).y;var e={},e=function(){window.scrollTo(0,b);b+=35;b<d&&window.requestAnimationFrame(e)};f(".lt-ie9")[0]||window.Bank of America Corporation.isIE7?(d=a-12,window.scrollTo(0,d)):(d=a-(m+12),setTimeout(function(){b=
c.docScroll().y;window.requestAnimationFrame(e)},25))});return function(){if(arguments.length)for(var a=arguments.length-1;0<=a;--a)h(f("[data-internal-item]",arguments[a][0]),"click",k);else h(f("[data-internal-item]"),"click",k)}}})},"waf/components/tabordion":function(){require("dojo/query dojo/keys dojo/_base/fx dojo/fx/easing dojo/on dojo/dom-construct dojo/dom-attr dojo/dom-class dojo/dom-geometry dojo/window waf/lib/equalise_heights waf/lib/on_window_resize dojo/topic dojo/NodeList-traverse dojo/domReady!".split(" "),
function(f,h,a,e,g,c,k,m,b,d,p,n,l){var t=f(".tabordion"),q=this;t.length&&t.forEach(function(r){function s(a){f(".js-focus-first",a)[0].focus()}var v=f(".tabordion__item",r),w=f(".tabordion__item-inner",r),x=f(".tabordion__item-title",r),u=f(".tabordion__content-area",r)[0],A,B,y,z,G,P={},E={open:function(b){a.animateProperty({node:u,duration:550,properties:{maxHeight:1E3,opacity:1,paddingTop:z?15:45,paddingRight:30,paddingBottom:45,paddingLeft:30},easing:e.circInOut,onEnd:b,beforeBegin:function(){z&&
(window.location.hash=k.get(A,"id"))}}).play()},close:function(b){a.animateProperty({node:u,duration:200,properties:{maxHeight:0,opacity:0,paddingTop:0,paddingBottom:0},easing:e.circInOut,onEnd:b}).play()},fadeIn:function(b){a.animateProperty({node:u,duration:300,properties:{opacity:1},onEnd:b}).play()},fadeOut:function(b){a.animateProperty({node:u,duration:300,properties:{opacity:0},onEnd:b}).play()},update:function(){u.innerHTML=M.getContent(A);E.open(function(){m.add(u,"tabordion__content-area--active");
k.set(u,"aria-hidden","false");f(".js-focus-first",u)[0].focus()});s(u)},move:function(){var a=z?A:M.getLastInRow();M.isActiveOnSameRowAsPrevious()?B===y?E.open(function(){k.set(u,"aria-hidden","false");s(u)}):E.open(function(){E.fadeOut(function(){u.innerHTML=M.getContent(A);E.fadeIn();k.set(u,"aria-hidden","false");s(u)})}):(m.remove(u,"tabordion__content-area--inactive"),E.close(function(){c.place(u,a,"after");m.remove(u,"tabordion__content-area--active");k.set(u,"aria-hidden","true");E.update()}))},
collapse:function(){k.set(u,"style","");m.add(u,"tabordion__content-area--inactive");m.remove(u,"tabordion__content-area--active")},resetPosition:function(){c.place(u,v[v.length-1],"after")}},M={getContent:function(){return f(".tabordion__item-content",A)[0].innerHTML},getLastInRow:function(){var a=b.position(A).y,c,d,e,g=v.length;for(e=B;e<g;e++)if(c=f(".tabordion__item[data-num\x3d'"+e+"']",r)[0],c=b.position(c).y,d=e,a!==c){d=e-1;break}return f('.tabordion__item[data-num\x3d"'+d+'"]',r)[0]},isActiveOnSameRowAsPrevious:function(){return"undefined"!==
typeof B&&"undefined"!==typeof y?P[B]===P[y]:!1},removeActiveState:function(){A&&(m.remove(A,"tabordion__item--active"),k.set(f(".tabordion__item-inner",A)[0],"aria-expanded","false"))},resetNumbers:function(){y=B="undefined"},setActive:function(a){A=a;v.forEach(function(a){m.remove(a,"tabordion__item--active");k.set(f(".tabordion__item-inner",a)[0],"aria-expanded","false")});m.add(a,"tabordion__item--active");k.set(f(".tabordion__item-inner",a)[0],"aria-expanded","true")},setActiveNumber:function(){B=
parseInt(k.get(A,"data-num"),10)},setPreviousActiveNumber:function(){y=B},setActiveVerticalPosition:function(){},setAttributes:function(){v.forEach(function(a,b){k.set(a,"data-num",b);k.set(a,"id","tabordion-item-"+b);k.set(f(".tabordion__item-inner",a)[0],"aria-expanded",a===A?"true":"false")})},setVerticalPositions:function(){var a,c;v.forEach(function(d){a=k.get(d,"data-num");c=b.position(d).y;P[a]=c})}};(function(){var a=v.children(".tabordion__item-content");w.forEach(function(a,b){0!==b&&c.place('\x3ca class\x3d"visually-hidden js-focus-previous-item" href\x3d"#" aria-hidden\x3d"true"\x3e\x3c/a\x3e',
a,"before");c.place('\x3ca class\x3d"visually-hidden js-focus-next-item" href\x3d"#" aria-hidden\x3d"true"\x3e\x3c/a\x3e',a,"after")});a.forEach(function(a,b){c.place('\x3ca href\x3d"#" class\x3d"visually-hidden js-focus-exit" aria-hidden\x3d"true"\x3e\x3c/a\x3e\x3ca href\x3d"#" class\x3d"visually-hidden js-focus-first" aria-hidden\x3d"true"\x3e\x3c/a\x3e',a,"first");b!==v.length-1&&c.place('\x3ca href\x3d"#" class\x3d"visually-hidden js-focus-last" aria-hidden\x3d"true"\x3e\x3c/a\x3e',a,"last")})})();
c.place('\x3ca href\x3d"#" class\x3d"js-exit-tabordion visually-hidden" aria-hidden\x3d"true"\x3e\x3c/a\x3e',r,"after");(function(){g(w,"click",function(a){a.preventDefault();var b=f(a.target).closest(".tabordion__item")[0];m.contains(b,"tabordion__item--active")?(m.remove(b,"tabordion__item--active"),k.set(f(".tabordion__item-inner",b)[0],"aria-expanded","false"),E.close(function(){m.remove(u,"tabordion__content-area--active");k.set(u,"aria-hidden","true")})):(M.setPreviousActiveNumber(),M.setActive(f(a.target).closest(".tabordion__item")[0]),
M.setActiveNumber(),M.setActiveVerticalPosition(),l.publish("tabordion.panel_click",{active_item_number:B+1}),E.move())});g(t,".js-focus-last:focusin",function(){f("#tabordion-item-"+(B+1)).children(".tabordion__item-inner")[0].focus()});g(t,".js-focus-first:keyup, .js-focus-exit:keyup",function(a){a.which===h.TAB&&a.shiftKey&&f("#tabordion-item-"+B).children(".tabordion__item-inner")[0].focus()});g(t,".js-focus-next-item:keyup",function(a){if(9===a.keyCode){var b=f(a.target),c=b.closest(".tabordion__item")[0],
c=parseInt(k.get(c,"data-num"),10);a=a.shiftKey?c:c+1;c=f("#tabordion-item-"+a);a===v.length?b.closest(".tabordion").next(".js-exit-tabordion")[0].focus():f(c).children(".tabordion__item-inner")[0].focus()}});g(t,".js-focus-previous-item:focusin",function(a){a=f(a.target).closest(".tabordion__item")[0];a=parseInt(k.get(a,"data-num"),10)-1;var b=f("#tabordion-item-"+a);-1!==a&&f(b).children(".tabordion__item-inner")[0].focus()});n(function(){G!==d.getBox().w&&(p(x),z=600>=b.getContentBox(r).w?!0:!1,
E.resetPosition(),E.collapse(),M.removeActiveState(),M.resetNumbers(),M.setVerticalPositions());G=d.getBox().w},q)})();M.setAttributes();M.setVerticalPositions();p(x);z=600>=b.getContentBox(r).w?!0:!1;G=d.getBox().w})})},"waf/components/tabs":function(){require(["dojo/query","dojo/dom-geometry","dojo/_base/array","dojo/domReady!"],function(f,h,a){if(window.Bank of America Corporation.isIE7){var e=f(".tabs");e.length&&a.forEach(e,function(e){var c=h.getContentBox(e).w;e=f(".tabs__tab",e);var k=c/e.length,m=0;a.forEach(e,
function(a){var b=k-h.getMarginExtents(a).w-h.getPadBorderExtents(a).w;a.style.width=b+"px";m+=h.getContentBox(a).w+h.getMarginExtents(a).w+h.getPadBorderExtents(a).w});c-=m;if(1===c)k=h.getContentBox(void 0).w;else for(var b=0;b<c;b++)k=h.getContentBox(void 0).w,e[b].style.width=k+1+"px"})}})},"waf/components/tooltip":function(){define("dojo/query dojo/on dojo/dom-class dojo/dom-attr dojo/dom-style dojo/dom-construct dojo/NodeList-traverse dojo/domReady!".split(" "),function(f,h,a,e,g,c){function k(a){var d=
this;this.trigger=a;this.td=a.closest("td");this.tip_container=c.create("div",{className:"tooltip-container"});this.close_button=c.create("i",{className:"icon js-tooltip-close",title:"close"});c.place(this.close_button,this.tip_container);h(this.trigger,"click",function(){d.showTip()});h(this.close_button,"click",function(){d.hideTip()})}f=f(".tooltip");var m=1;k.prototype.makeTip=function(){this.copy=c.create("span",{innerHTML:e.get(this.trigger,"title")});c.place(this.close_button,this.tip_container)};
k.prototype.showTip=function(){this.active||(this.makeTip(),g.set(this.tip_container,"z-index",m++),c.place(this.copy,this.tip_container),c.place(this.tip_container,this.td),this.active=!0)};k.prototype.hideTip=function(){c.destroy(this.tip_container);this.active=!1};f.forEach(function(a){new k(a)})})},"waf/components/text":function(){require("dojo/query dojo/dom-construct dojo/dom-class dojo/string dojo/topic dojo/domReady!".split(" "),function(f,h,a,e,g){function c(c){a.contains(c,"text--backtotop")&&
f("h2",c).forEach(function(a,b){if(0!==b){var d=h.toDom('\x3cp class\x3d"text__backtotop"\x3e\x3c/p\x3e'),e=h.toDom('\x3ca href\x3d"#"\x3e\x3cspan\x3e'+c.getAttribute("data-backtotop")+'\x3c/span\x3e\x3ci class\x3d"icon"\x3e\x3c/i\x3e\x3c/a\x3e');h.place(e,d);h.place(d,a,"before")}})}f(".text").forEach(function(h,m){c(h);if(0===m&&a.contains(h,"text--dropcap")){var b=f("\x3e p:first-child",h);0!==b.length&&(b=b[0],a.add(b,"text__lead"),g.publish("text/addDropCap"),b.innerHTML=e.trim(b.innerHTML),
b.innerHTML=b.innerHTML.replace(/^(\S)/,'\x3cspan class\x3d"text__drop-cap"\x3e$1\x3c/span\x3e'))}});f("a[name]").forEach(function(c){a.add(c,"text__named-anchor")});g.publish("icons/set")})},"waf/components/vertical_tabs":function(){require("dojo/_base/window dojo/_base/array dojo/on dojo/query dojo/dom-class dojo/dom-attr dijit/focus dojo/html dojo/dom-style dojo/topic dojo/domReady!".split(" "),function(f,h,a,e,g,c,k,m,b,d){function p(a){e(r).forEach(function(d){var f=c.get(d,"data-src"),f=JSON.parse(f),
h=dojo.query(d).children("a")[0],k=!1;if("show-all"==a)g.remove(d,n.item_inactive),c.set(h,"href",f[0].link),k=!0,c.set(h,"tabindex","-1"),c.set(h,"aria-hidden","false"),g.add(t[0],n.tab_active),e(v).forEach(function(a){b.set(a,{visibility:"hidden",opacity:0});setTimeout(function(){b.set(a,"display","none")},200)});else{g.remove(d,n.item_inactive);c.set(h,"href","#");c.set(h,"tabindex","-1");c.set(h,"aria-hidden","true");e(v).forEach(function(a){b.set(a,"display","block");setTimeout(function(){b.set(a,
{visibility:"visible",opacity:1})},200)});for(i=0;i<f.length;i++)f[i].id==a&&(c.set(h,"href",f[i].link),k=!0,c.set(h,"tabindex","0"),c.set(h,"aria-hidden","false"));k||g.add(d,n.item_inactive)}})}var n={tab_active:"vertical-tabs__tab--active",tab_all:"vertical-tabs__tab--all",item_inactive:"vertical-tabs__item--inactive",teaser_url:"vertical-tabs__teaser a",teaser_title:"vertical-tabs__teaser a span",teaser_body:"vertical-tabs__teaser p"},l=e(".vertical-tabs__tab"),t=e(".vertical-tabs__tab--all"),
q=e(".vertical-tabs__title-text");e(".vertical-tabs__link");e(".vertical-tabs__tab--active");var r=e(".vertical-tabs__item");e(".vertical-tabs__item:first-child");e(".vertical-tabs__item--inactive");var s=e(".vertical-tabs__url"),v=e(".vertical-tabs__teaser"),w=e(".vertical-tabs__teaser a");e(".vertical-tabs__teaser a span");e(".vertical-tabs__teaser p");(function(){a(l,"click",function(a){a.preventDefault();var b=c.get(e(this).children(".vertical-tabs__link")[0],"aria-selected");a=c.get(this,"id");
var f=c.get(this,"data-title"),h=c.get(this,"data-description"),k=c.get(this,"data-url"),r=c.get(this,"data-teaser-title"),s=c.get(t[0],"data-title");"true"==b?(g.remove(this,n.tab_active),b=e(this).children(".vertical-tabs__link")[0],console.log(b),c.set(b,"aria-selected","false"),e(q).forEach(function(a){m.set(a,s)}),p("show-all")):(b=e(this).children(".vertical-tabs__link")[0],d.publish("vertical_tabs",{item_element:this}),e(l).forEach(function(a){a=e(a).children(".vertical-tabs__link")[0];c.set(a,
"aria-selected","false")}),e(l).removeClass(n.tab_active),g.add(this,n.tab_active),c.set(b,"aria-selected","true"),p(a),e(v).forEach(function(a){var b=e(a).children().children().children().children("span"),d=e(a).children().children().children("a");a=e(a).children().children("p");m.set(b[0],r);m.set(a[0],h);c.set(d[0],"href",k)}),e(q).forEach(function(a){m.set(a,f)}))});a(s,"click",function(a){d.publish("vertical_tabs_item",{item_element:this,item_tab:e(".vertical-tabs__tab--active").text().replace(/\s/g,
"")})});a(w,"click",function(a){d.publish("vertical_tabs_teaser",{item_element:this,item_tab:e(".vertical-tabs__tab--active").text().replace(/\s/g,"")})})})()})},"waf/components/video":function(){require("dojo/_base/declare dojo/_base/array dojo/query dojo/dom-style dojo/on dojo/dom-class dojo/dom-geometry dojo/dom-attr dojo/has waf/Video waf/lib/on_window_resize waf/lib/node_handler waf/plugins/append_around dojo/NodeList-traverse dojo/domReady!".split(" "),function(f,h,a,e,g,c,k,m,b,d,p,n,l){BCL.videos=
BCL.videos||[];BCL.disabledVideos=BCL.disabledVideos||[];BCL.widthSmall=500;a(".js-video-big").forEach(function(b,c){var d=a(b).closest(".video")[0],e=a(b)[0],d=a(".js-video-small",d)[0],f=a(".video__overlay",e)[0];m.set(e,"data-set","video-append-around-"+c);m.set(d,"data-set","video-append-around-"+c);l.appendAround(f)});a(".video").forEach(function(b,d){var f=a(".video__holder .video__box",b),l=a(".video__holder",b)[0];0<f.length&&(k.getContentBox(b).w<=BCL.widthSmall||!c.contains(b,"video--inline"))&&
BCL.disabledVideos.push(f[0].id);g(a("video",b)[0],"play",function(){e.set(l,"z-index","15")});g(a("video",b)[0],"pause",function(){e.set(l,"z-index","0")});p(function(){0<BCL.disabledVideos.length&&0<f.length&&h.forEach(BCL.disabledVideos,function(a,c){a===f[0].id&&k.getContentBox(b).w<=BCL.widthSmall&&BCL.disabledVideos.splice(c,1)})},this)})})},"waf/Video":function(){define("dojo/_base/declare dojo/query dojo/on dojo/_base/lang dojo/dom-class dojo/dom-style dojo/dom-geometry dojo/_base/fx dijit/focus dojo/topic dojo/NodeList-traverse".split(" "),
function(f,h,a,e,g,c,k,m,b,d){var p=function(a,b){return function(){var c=arguments;window.setTimeout(function(){a.apply(b,c)},0)}},n=!1,l=!1,t=!1,q=!1,r=!1;return f(null,{constructor:function(a){this.id=a;this.video_meta={};this.parentEl=h("#"+a)[0].offsetParent;var b=this;window.videojs(a).ready(function(){b.bc_player=this;b.bc_player.on("loadeddata",function(){b.init()})})},init:function(){this.video_meta=this.bc_player.mediainfo;this.bind_method_contexts();this.bind_event_handlers()},bind_method_contexts:function(){this.handle_play=
e.hitch(this,this.handle_play);this.handle_stop=e.hitch(this,this.handle_stop);this.end=e.hitch(this,this.end);this.resize=e.hitch(this,this.resize)},bind_event_handlers:function(){a(this.bc_player,"play",p(this.handle_play,this));a(this.bc_player,"pause",p(this.handle_stop,this));a(this.bc_player,"ended",p(this.end,this));a(window,"orientationchange",this.resize)},handle_play:function(){d.publish("video_play",{topic:"video_play_event",event_type:"video_play",title:this.video_meta.name,src:this.video_meta.id});
c.set(this.parentEl,"z-index","15");a(this.bc_player,"progress",p(this.handle_progress,this))},handle_stop:function(){d.publish("video_stop",{topic:"video_stop_event",event_type:"video_stop",title:this.video_meta.name,src:this.video_meta.id});c.set(this.parentEl,"z-index","0")},handle_progress:function(){var a=100*this.bc_player.currentTime()/this.bc_player.duration(),b;20<=a&&40>a&&!n?(n=!0,b=20):40<=a&&60>a&&!l?(l=!0,b=40):60<=a&&80>a&&!t?(t=!0,b=60):80<=a&&!q&&(q=!0,b=80);b&&d.publish("video_progress",
{topic:"video_progress_event",event_type:"video_progress",title:this.video_meta.name,src:this.video_meta.id,percent:b});90<a&&!r&&(r=!0,d.publish("video_progress_complete",{topic:"video_progress_complete_event",event_type:"video_progress_complete",title:this.video_meta.name,src:this.video_meta.id,percent:a}))},play:function(){this.bc_player.play()},end:function(){d.publish("video_end",{topic:"video_end_event",event_type:"video_end",title:this.video_meta.name,src:this.video_meta.id})},pause:function(){this.bc_player.pause()},
resize:function(){var a=c.get(this.el,"width"),b=c.get(this.el,"height");this.bc_player.dimensions(a,b)}})})},"app/run":function(){require({baseUrl:"/assets/PWS171/javascripts/src/",packages:["dojo","dijit","dojox","hijit",{name:"app",location:"app",map:{}}]},["app"])}}});(function(){var f=this.require;f({cache:{}});!f.async&&f(["dojo"]);f.boot&&f.apply(null,f.boot)})();
//@ sourceMappingURL=dojo.js.map
