var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,f,d){b!=Array.prototype&&b!=Object.prototype&&(b[f]=d.value)};$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_"; $jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var b=0;return function(f){return $jscomp.SYMBOL_PREFIX+(f||"")+b++}}(); $jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var b=$jscomp.global.Symbol.iterator;b||(b=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[b]&&$jscomp.defineProperty(Array.prototype,b,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(b){var f=0;return $jscomp.iteratorPrototype(function(){return fd&&(d=Math.max(0,f+d));if(null==h||h>f)h=f;h=Number(h);0>h&&(h=Math.max(0,f+h));for(d=Number(d||0);dd;)--h in this?this[--b]=this[h]:delete this[b];return this}},"es6","es3"); $jscomp.iteratorFromArray=function(b,f){$jscomp.initSymbolIterator();b instanceof String&&(b+="");var d=0,h={next:function(){if(dh;h++)f[h]=0;g[d]=f}})();(function(){for(var b=0,d= g.length;bh;h++)g[h]=0;d[f]=g}})();(function(){for(var b=0,d=w.length;bf?f:d.lastIndexOf(" ",b)}var m=p(b+Math.floor(k/l));b=function(b){var f=d.substring(b,m);kt){var u=b.substring(t,r.start);t=k(f,g,u);g+=t}u=b.substring(r.start,r.end);t=f;var x=g;h.save();h.font=q;h.fillStyle=n;h.fillText(u,x,l*(1+t));t=w(h,q,u);h.restore();g+=t;t=r.end;m+1==y&&r.end=l&&d<=l+m&&f>=p&&f<=p+q&&"fileSelect"==k.views[t].clickItem.action&& v(k)}J&&x(b)}function z(b){if(1==H){var d=b.layerX,f=b.layerY;void 0!=K&&("width"==K.focusType?(d=K.currentMovementY+(f-E[1]),f=K.height-K.focusHeight,K.movementY=d=d?d:0):"height"==K.focusType&&(d=K.currentMovementX+(d-E[0]),f=K.width-K.focusWidth,K.movementX=d=d?d:0),K.update(),k())}J&&x(b)}function x(b){var d=b.layerX;b=b.layerY;for(var f=[],g=0,k=J.length;g=p&&d<=p+q&&b>=m&&b<=m+n?(p=l.views[t].hoverItem.updateKey||"src",l.__storedValue|| (m=l[p],delete l[p],l.__storedValue=m,l.__storedKey=p,l[p]=l.views[t].hoverItem[p],l.activeHover=!0,f.push(l))):1==l.activeHover&&(p=l.__storedValue,m=l.__storedKey,delete l.__storedValue,delete l.__storedKey,l[m]=p,l.activeHover=!1,f.push(l))}0'} function AdvertisersTemplate(){this.index=''; this.fresh='

Oh no! It appears that we have no advertisers here. We should add some. Try it out - it\'s simple!

'} function AgenciesTemplate(){this.index='';this.fresh='

Oh no! It appears that we have no agencies here. We should add some. Try it out - it\'s simple!

'} function SegmentsTemplate(){this.index='

Manage Segments

ViewEdit
';this.fresh='

Oh no! It appears that we have no segments here. We should add some. Try it out - it\'s simple!

'} function AdGroupsTemplate(){this.index='

Create new group

Add

Manage Ad Groups

Edit
';this.fresh='

Oh no! It appears that we have no ad groups here. We should add some. Try it out - it\'s simple!

'} function BillingTemplate(){this.sidePanel='{{# sidePanel }}

Billing Overview:

Weekly budgets combined:

{{ weeklyBudgetsCombined }}

Payment History: more

{{# paymentHistory }}{{# pending }}{{/ pending }}

{{ date }} | {{ description }} | view

{{/ paymentHistory }}
{{/ sidePanel }}'; this.index='

Edit Billing

{{# sidePanel }}

Billing Overview:

Weekly budgets combined:

{{ weeklyBudgetsCombined }}

Payment History: more

{{# paymentHistory }}{{# pending }}{{/ pending }}

{{ date }} | {{ description }} | view

{{/ paymentHistory }}
{{/ sidePanel }}
'; this.card='
{{# billing.basic.lastFour }}

Payment info

{{/ billing.basic.lastFour }}

Payment info:

/

Billing address:

'; this.insertionOrder='
We will verify your insertion order amount and complete the deposit of new credit into your account. For expedited service please contact us

I/O amount

';this.paymentHistory='

Charge history:

{{# chargeHistory }}

{{ date }}

{{# charges }}

{{ campaignName }} | {{# success }}ID ({{ id }}) | {{ amount }}{{/ success }}{{^ success }}Declined{{/ success }}

{{/ charges }}
{{/ chargeHistory }}
'} function ManageAgencyTemplate(b){this.sidePanel="

{{ title }}:

{{# info }}

{{ title }}:{{ value }}

{{/ info }}
";this.index='
'+("

"+(!0===b?"Edit":"Create")+" Agency

")+"

{{ title }}:

{{# info }}

{{ title }}:{{ value }}

{{/ info }}
"+('")+"
";this.main='

Status:

Agency name:

Notes:

Agency fee:

IO Client:

Sales Rep:

Set username:

{{^ id }}

Set password:

{{/ id }}
'; this.chargeHistory='

Charge history:

{{# chargeHistory }}

{{ date }}

{{# charges }}

{{ campaignName }} | ID ({{ id }}) | {{ amount }}

{{/ charges }}
{{/ chargeHistory }}
'} function ManageSegmentsTemplate(b){this.sidePanel="{{# sidePanel }}

{{title}}:

{{# info }}

{{ title }}:{{ value }}

{{/ info }}
{{/ sidePanel }}
";this.index='
'+("

"+(!0===b?"Edit":"Create")+" Segment

")+"
{{# sidePanel }}

{{title}}:

{{# info }}

{{ title }}:{{ value }}

{{/ info }}
{{/ sidePanel }}
"+ ('")+"
";this.main='

Segment name:

Target consumers:

Previously spent between:

Last visited between:

';this.advanced= '

URLs visited:

SKUs viewed:

Minimum page views:

Include params:

Exclude params:

'} function UploadBannerAdsTemplate(){this.index='

Banner Ads - Upload

'+('

Add banners:

Select file(s)

Ad group:

Landing page url:

'+advancedAdsTemplate()+'

Result:

')+ '{{# sidePanel }}

Ads pending upload:

{{# ads }}
{{ image.name }}
Size {{ image.width }}x{{ image.height }} | {{ image.fileSize }}
{{/ ads }}
{{/ sidePanel }}
{{# saveState }}
'; this.sidePanel='{{# sidePanel }}

Ads pending upload:

{{# ads }}
{{ image.name }}
Size {{ image.width }}x{{ image.height }} | {{ image.fileSize }}
{{/ ads }}
{{/ sidePanel }}';this.footer='{{# saveState }}'} function ProductAdTemplate(){function b(b){return f.measureText(b).width}var f=document.createElement("canvas").getContext("2d");f.font="400 12px Arial";this.getTextWidth=b;this["300x250"]=function(){return function(d){function h(d){return b(d)+16}f.measureText(d.price);return{config:{width:300,height:250,views:[{title:"Main",managerView:!0,save:!0,key:"jsUpgrade"},{title:"Re-position background",managerView:!0}],updateItems:{2:{title:"Logo Image",key:"logo",set:"src",type:"logo"},4:{title:"Product Name", key:"name",set:"content",type:"input"},5:{title:"Product Price",key:"price",set:"content",type:"input",fn:function(b){return"$"+b}},6:{title:"Sale Positioning",key:"price",set:"x",fn:h,target:5}}},template:[{type:"rect",width:300,height:162,x:0,y:40,fill:"rgb(255, 255, 255)",views:{0:!0,1:!0}},{type:"image",scale:!0,src:d.imageURL,x:0,y:40,width:300,height:162,views:{0:!0,1:{adjustPosition:{editorFn:!0}}}},{type:"image",scale:!0,src:d.logo,x:0,y:0,width:300,height:40,views:{0:!0}},{type:"rect",width:300, height:48,x:0,y:202,fill:"rgb(255, 255, 255)",views:{0:!0}},{type:"text",content:function(b){return isDefined(b)&&24<=b.length?b.substr(0,21)+"...":b}(d.name),x:12,y:214,fontFamily:"Arial",fontWeight:400,fontSize:14,lineHeight:1.4,fontColor:"#000000",views:{0:!0}},{type:"text",content:"$"+d.price,x:12,y:232,fontFamily:"Arial",fontWeight:800,fontSize:12,lineHeight:1.4,fontColor:"#000000",views:{0:!0}},{type:"text",content:"On sale!",x:h("$"+d.price),y:233,fontFamily:"Arial",fontWeight:400,fontSize:10, lineHeight:1.4,fontColor:"#bf2b2b",views:{0:!0}},{type:"rect",width:90,height:34,x:202,y:208,fill:"rgb(191, 43, 43)",views:{0:!0}},{type:"text",content:"See More",x:212,y:214,fontFamily:"Arial",fontWeight:600,fontSize:16,lineHeight:1.4,fontColor:"#ffffff",views:{0:!0}}]}}}()} function TextAdTemplate(){function b(b){return f.measureText(b).width}var f=document.createElement("canvas").getContext("2d");f.font="700 32px Lato";this.getTextWidth=b;this["300x250"]=function(){return function(d){function h(b){return"> "+(isDefined(b)?b:"Button Text").toUpperCase()}function k(){f.font="500 16px Lato";var g=b(h(d.buttonText))+36,k=(300-g)/2;return{buttonX:k,buttonWidth:g,textX:k+18}}var n=k();return{config:{width:300,height:250,views:[{title:"Main",managerView:!0,save:!0,key:"jsUpgrade"}], updateItems:{2:{title:"Title",key:"adTitle",set:"content",type:"input"},3:{title:"Text",key:"adText",set:"content",type:"input"},4:{title:"Button",key:"buttonText",set:["width","x"],fn:function(){var b=k();return{x:b.buttonX,width:b.buttonWidth}},target:5},5:{title:"Button Text",key:"buttonText",set:["content","x"],type:"input",fn:function(){return{x:k().textX,content:h(d.buttonText)}}}}},template:[{type:"rect",width:300,height:191,x:0,y:0,fill:"rgb(21, 141, 212)",views:{0:!0,1:!0}},{type:"rect", width:300,height:59,x:0,y:191,fill:"rgb(51, 51, 51)",views:{0:!0}},{type:"text",content:d.adTitle,x:18,y:21,fontFamily:"Lato",fontWeight:700,fontSize:32,lineHeight:1.4,fontColor:"#ffffff",views:{0:!0}},{type:"postText",content:d.adText,x:22,y:76,maxWidth:252,fontFamily:"Lato",fontWeight:300,fontSize:20,lineHeight:1.4,fontColor:"#ffffff",views:{0:!0}},{type:"roundedRect",width:n.buttonWidth,height:31,x:n.buttonX,y:205,fill:"rgb(255, 138, 0)",radius:3,stroke:!1,views:{0:!0,1:!0}},{type:"postText",content:h(d.buttonText), x:n.textX,y:208,maxWidth:180,fontFamily:"Lato",fontWeight:500,fontSize:15,lineHeight:1.4,fontColor:"#ffffff",views:{0:!0}}]}}}()} function CreateDynamicAdsTemplate(){function b(){return'{{# preImageContent }}

Product name here{{# extendedName }} Product name extended...{{/ extendedName }}

Product price here

{{/ preImageContent }}
{{# postImageContent }}

Product name here{{# extendedName }} Product name extended...{{/ extendedName }}

Product price here

{{/ postImageContent }}
'}this.index= '

Dynamic Ads - Create

';this.stepOne='

Step 1.) Select your dynamic template

{{# adTemplates }}{{ buttonText }}{{/ adTemplates }}
';this.stepTwo=function(){var f='

Step 2.) Customize your dynamic template

Ad group:

Logo area image:

Button text:

Backup banner:

Select file

Backup landing page url:

'+ advancedAdsTemplate()+"
",d="

Preview ad:

"+b()+"
";return'
'+f+d+'
'}();this.adTemplate=b();this.adTemplatePreview='{{# preImageContent }}

Product Name

$Product Price

{{/ preImageContent }}
{{# postImageContent }}

Product Name

$Product Price

{{/ postImageContent }}
{{# footerContent }}

Product Name

$Product Price

{{/ footerContent }}
'; this.hidden=''} function advancedAdsTemplate(){return'

Advanced:

Available Macros:

{{AdID}} - Ad ID {{CampaignID}} - Campaign ID {{UUID}} - User ID {{Width}} - Width of ad {{Height}} - Height of Ad {{Size}} - Width x Height {{Domain}} - Impression Domain {{PageURL}} - Impression Page {{Referrer}} - Referring URL {{Cachebuster}} {{ClickURL}} - Ad Click URL {{EncodedClickURL}}

Imp Tracker:

Click Tracker:

'} function DomainListsTemplate(){this.index='
New List

Manage Domain Lists

Edit
';this.fresh='

Oh no! It appears that we have no domain lists here. We should add some. Try it out - it\'s simple!

'; this.edit='

List Name:

List Type:

Domains:

'} var adsDummyData={table:{columns:{"#":{title:"#",valueType:"number",sortable:!0,width:"72",centered:!0},name:{title:"Name",valueType:"string",sortable:!0,width:"180"},status:{title:"Status",valueType:"string",sortable:!0,width:"100"},size:{title:"Size",valueType:"string",sortable:!0,width:"112"},group:{title:"Group",valueType:"string",sortable:!0,width:"102"},impressions:{title:"Imps",valueType:"number",sortable:!0,width:"102",formatType:"locale",centered:!0},clicks:{title:"Clicks",valueType:"number", sortable:!0,width:"102",formatType:"locale",centered:!0},conversions:{title:"Conv",valueType:"number",sortable:!0,width:"102",formatType:"locale",centered:!0}},rows:null,maxPerPage:10},createAdOptions:{data:[{title:"Create Ads",value:""},{title:"Upload Banners",href:"/dashboard/ads/banners/upload",value:"uploadBanners"},{title:"Upload Native ads",href:"/dashboard/ads/native/upload",value:"uploadNative"},{title:"Upload Third Party Ads",href:"/dashboard/ads/thirdParty/upload",value:"uploadthirdParty"}, {title:"Use an ad building tool",href:"/dashboard/ads/selectType",value:"selection"}],options:{dropdownClass:"cool",menuItemClass:"cool",carrotClass:"cool",staticMenu:!0}},stats:{data:[{title:"Lifetime",value:"-1"},{title:"Today",value:"1"},{title:"Yesterday",value:"1/-1"},{title:"Week",value:"7"},{title:"Month",value:"30"}],options:{dropdownClass:"tidySmall royal",menuItemClass:"royal",carrotClass:"royal"}},adGroups:{data:null,options:{dropdownClass:"tidySmall royal",menuItemClass:"royal",carrotClass:"royal"}}, preview:{data:[{title:"Preview",value:"",placeholder:!0},{title:"Platform Preview",value:"local"},{title:"Live Web Preview",value:"live"}],options:{dropdownClass:"tidySmall fresh",menuItemClass:"fresh",carrotClass:"fresh",staticMenu:!0}}},adsButtonObj={pause:{color:"royal",text:"Pause",className:"tidySmall",confirmColor:"mist",confirmText:"Confirm?"},unpause:{color:"mint",text:"Un-Pause",className:"tidySmall",confirmColor:"mist",confirmText:"Confirm?"},duplicate:{color:"royal",text:"Duplicate",className:"tidySmall", confirmColor:"mist",confirmText:"Confirm?"},del:{color:"hot",text:"Delete",className:"tidySmall",confirmColor:"mist",confirmText:"Confirm?"}},clientsDummyData={table:{columns:{id:{title:"ID",valueType:"number",sortable:!0,width:"72"},name:{title:"Name",valueType:"string",sortable:!0,width:"300"},status:{title:"Status",valueType:"string",sortable:!0,width:"120"},numCmps:{title:"# of campaigns",valueType:"string",sortable:!0,width:"145"},spent7:{title:"Last 7 spent",valueType:"number",sortable:!0,width:"114", formatType:"currency"},spent30:{title:"Last 30 spent",valueType:"number",sortable:!0,width:"120",formatType:"currency"}},rows:null,maxPerPage:10}},AgencyTemplateData={table:{columns:{id:{title:"ID",valueType:"number",sortable:!0,width:"72"},name:{title:"Name",valueType:"string",sortable:!0,width:"800"}},rows:null,maxPerPage:10}},clientsButtonObj={del:{color:"hot",text:"Delete",className:"tidySmall",confirmColor:"mist",confirmText:"Confirm?"}},segmentsDummyData={table:{columns:{"#":{title:"#",valueType:"number", sortable:!0,width:"72"},name:{title:"Name",valueType:"string",sortable:!0,width:"674"},uniqueUsers:{title:"Unique Users",valueType:"number",sortable:!0,width:"126",formatType:"locale"}},rows:null,maxPerPage:10},createSegmentOptions:{data:[{title:"Create Segment"},{title:"Retargeting Segment",href:"/dashboard/segments/create",value:"meteoraSegment"},{title:"Event Segment",href:"/dashboard/eventSegments/create",value:"meteoraEvegment"}],options:{dropdownClass:"cool",menuItemClass:"cool",carrotClass:"cool", staticMenu:!0}}},segmentsButtonObj={duplicate:{color:"royal",text:"Duplicate",className:"tidySmall",confirmColor:"mist",confirmText:"Confirm?"},del:{color:"hot",text:"Delete",className:"tidySmall",confirmColor:"mist",confirmText:"Confirm?"}},adGroupsDummyData={table:{columns:{"#":{title:"#",valueType:"number",sortable:!0,width:"72"},name:{title:"Ad Group Name",valueType:"string",sortable:!0,width:"674"},adCount:{title:"# of Ads",valueType:"number",sortable:!0,width:"126",formatType:"locale"}},rows:null, maxPerPage:10}}; function getCreateClientData(){return{overview:{status:!0,credit:"$1,503",tracking:!0,segmentCount:123,adCount:445,campaignCount:3,roi:"$129,000",charges:"$3,839",weekSpend:"$12,499",lifeSpend:"$38,039"},chargeHistory:[{date:"05/01/14",charges:[{campaignName:"Campaign name",id:"121",amount:"$2,929.94"},{campaignName:"Campaign name",id:"124",amount:"$2,929.94"},{campaignName:"Campaign name",id:"12030",amount:"$2,929.94"}]},{date:"04/01/14",charges:[{campaignName:"Campaign name",id:"121",amount:"$2,929.94"}, {campaignName:"Campaign name",id:"124",amount:"$2,929.94"},{campaignName:"Campaign name",id:"12030",amount:"$2,929.94"}]}]}} function getCreateSegmentData(){return{targetConsumers:[{value:"Anyone"},{value:"Hasn't Converted"},{value:"Has Converted"}],previouslySpent:{start:0,end:1E3},lastVisited:{start:0,end:90},stats:{info:[{title:"Unique user count",value:367},{title:"Avg. Site Visits",value:"4.43"},{title:"Conversion rate",value:".2%"},{title:"Page Views",value:"1,624.00"},{title:"Avg. Order Value",value:"$29.45"},{title:"Avg. Page Views",value:"4.43"}],graph:{availableToTarget:"36,733",data:[{value:43,color:"#3a98d8", title:"Targeted users"},{value:57,color:"#f39b2c",title:"Non-targeted users"}]}}}}function domainListsDummyData(){return{table:{columns:{id:{title:"ID",valueType:"number",sortable:!0,width:"72"},name:{title:"List Name",valueType:"string",sortable:!0,width:"548"},type:{title:"List Type",valueType:"string",sortable:!0,width:"126"},domainsLen:{title:"# of Domains",valueType:"number",sortable:!0,width:"126",formatType:"locale"}},rows:[],maxPerPage:10}}} function get300x40LogoImage(){return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAAoCAIAAADL+VCAAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIg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mw5f78i4dY+hO2cnx45W8cy4jhsrzAzZVr+7XUo7p5+9xISkFoglhFkKCUyLVqDV56iqqUdUpn6YjhK4duzVB4lB6I4yN2lAJJQH97Sw/+tDDyodzGavae5mk0kr3pMYVCSUsB/az5npyw70NDRdHBBOnSShhITEQI4JJSQkCSUkJCQJJSQkCSUkJCQJJSSGIv4vwAA0S/Gt9jWmzwAAAABJRU5ErkJggg=="} var __dmaList=[{neilsen:"500",google:" 2",name:" Portland/Auburn"},{neilsen:"501",google:" 3",name:" New York"},{neilsen:"502",google:" 4",name:" Binghamton"},{neilsen:"503",google:" 5",name:" Macon"},{neilsen:"504",google:" 6",name:" Philadelphia"},{neilsen:"505",google:" 7",name:" Detroit"},{neilsen:"506",google:" 8",name:" Boston"},{neilsen:"507",google:" 9",name:" Savannah"},{neilsen:"508",google:" 10",name:" Pittsburgh"},{neilsen:"509",google:" 11",name:" Fort Wayne"},{neilsen:"510",google:" 12", name:" Cleveland"},{neilsen:"511",google:" 13",name:" Washington Dc"},{neilsen:"512",google:" 14",name:" Baltimore"},{neilsen:"513",google:" 15",name:" Flint/Saginaw/Bay City"},{neilsen:"514",google:" 16",name:" Buffalo"},{neilsen:"515",google:" 17",name:" Cincinnati"},{neilsen:"516",google:" 18",name:" Erie"},{neilsen:"517",google:" 19",name:" Charlotte"},{neilsen:"518",google:" 20",name:" Greensboro/High Point/Winston-Salem"},{neilsen:"519",google:" 21",name:" Charleston-Sc"},{neilsen:"520",google:" 22", name:" Augusta"},{neilsen:"521",google:" 23",name:" Providence/New Bedford"},{neilsen:"522",google:" 24",name:" Columbus-Ga"},{neilsen:"523",google:" 25",name:" Burlington/Plattsburgh"},{neilsen:"524",google:" 26",name:" Atlanta"},{neilsen:"525",google:" 27",name:" Albany-Ga"},{neilsen:"526",google:" 28",name:" Utica"},{neilsen:"527",google:" 29",name:" Indianapolis"},{neilsen:"528",google:" 30",name:" Miami/Fort Lauderdale"},{neilsen:"529",google:" 31",name:" Louisville"},{neilsen:"530",google:" 32", name:" Tallahassee/Thomasville"},{neilsen:"531",google:" 33",name:" Tri-Cities-Tn-Va"},{neilsen:"532",google:" 34",name:" Albany/Schenectady/Troy"},{neilsen:"533",google:" 35",name:" Hartford/New Haven"},{neilsen:"534",google:" 36",name:" Orlando/Daytona Beach/Melbourne"},{neilsen:"535",google:" 37",name:" Columbus-Oh"},{neilsen:"536",google:" 38",name:" Youngstown"},{neilsen:"537",google:" 39",name:" Bangor"},{neilsen:"538",google:" 40",name:" Rochester-Ny"},{neilsen:"539",google:" 41",name:" Tampa/Saint Petersburg"}, {neilsen:"540",google:" 42",name:" Traverse City/Cadillac"},{neilsen:"541",google:" 43",name:" Lexington"},{neilsen:"542",google:" 44",name:" Dayton"},{neilsen:"543",google:" 45",name:" Springfield/Holyoke"},{neilsen:"544",google:" 46",name:" Norfolk/Portsmouth/Newport News"},{neilsen:"545",google:" 47",name:" Greenville/New Bern/Washington"},{neilsen:"546",google:" 48",name:" Columbia-Sc"},{neilsen:"547",google:" 49",name:" Toledo"},{neilsen:"548",google:" 50",name:" West Palm Beach/Fort Pierce"}, {neilsen:"549",google:" 51",name:" Watertown"},{neilsen:"550",google:" 52",name:" Wilmington"},{neilsen:"551",google:" 53",name:" Lansing"},{neilsen:"552",google:" 54",name:" Presque Isle"},{neilsen:"553",google:" 55",name:" Marquette"},{neilsen:"554",google:" 56",name:" Wheeling/Steubenville"},{neilsen:"555",google:" 57",name:" Syracuse"},{neilsen:"556",google:" 58",name:" Richmond/Petersburg"},{neilsen:"557",google:" 59",name:" Knoxville"},{neilsen:"558",google:" 60",name:" Lima"},{neilsen:"559", google:" 61",name:" Bluefield/Beckley/Oak Hill"},{neilsen:"560",google:" 62",name:" Raleigh/Durham"},{neilsen:"561",google:" 63",name:" Jacksonville-Brunswick"},{neilsen:"563",google:" 64",name:" Grand Rapids/Kalamazoo/Battle Creek"},{neilsen:"564",google:" 65",name:" Charleston/Huntington"},{neilsen:"565",google:" 66",name:" Elmira"},{neilsen:"566",google:" 67",name:" Harrisburg/Lancaster/Lebanon/York"},{neilsen:"567",google:" 68",name:" Greenville/Spartanburg/Asheville/Anderson"},{neilsen:"569", google:" 69",name:" Harrisonburg"},{neilsen:"570",google:" 70",name:" Florence/Myrtle Beach"},{neilsen:"571",google:" 71",name:" Fort Myers/Naples"},{neilsen:"573",google:" 72",name:" Roanoke/Lynchburg"},{neilsen:"574",google:" 73",name:" Johnstown/Altoona"},{neilsen:"575",google:" 74",name:" Chattanooga"},{neilsen:"576",google:" 75",name:" Salisbury"},{neilsen:"577",google:" 76",name:" Wilkes Barre/Scranton"},{neilsen:"581",google:" 77",name:" Terre Haute"},{neilsen:"582",google:" 78",name:" Lafayette-In"}, {neilsen:"583",google:" 79",name:" Alpena"},{neilsen:"584",google:" 80",name:" Charlottesville"},{neilsen:"588",google:" 81",name:" South Bend/Elkhart"},{neilsen:"592",google:" 82",name:" Gainesville"},{neilsen:"596",google:" 83",name:" Zanesville"},{neilsen:"597",google:" 84",name:" Parkersburg"},{neilsen:"598",google:" 85",name:" Clarksburg/Weston"},{neilsen:"600",google:" 86",name:" Corpus Christi"},{neilsen:"602",google:" 87",name:" Chicago"},{neilsen:"603",google:" 88",name:" Joplin/Pittsburg"}, {neilsen:"604",google:" 89",name:" Columbia/Jefferson City"},{neilsen:"605",google:" 90",name:" Topeka"},{neilsen:"606",google:" 91",name:" Dothan"},{neilsen:"609",google:" 92",name:" Saint Louis"},{neilsen:"610",google:" 93",name:" Rockford"},{neilsen:"611",google:" 94",name:" Rochester/Mason City/Austin"},{neilsen:"612",google:" 95",name:" Shreveport"},{neilsen:"613",google:" 96",name:" Minneapolis/Saint Paul"},{neilsen:"616",google:" 97",name:" Kansas City"},{neilsen:"617",google:" 98",name:" Milwaukee"}, {neilsen:"618",google:" 99",name:" Houston"},{neilsen:"619",google:" 100",name:" Springfield-Mo"},{neilsen:"622",google:" 101",name:" New Orleans"},{neilsen:"623",google:" 102",name:" Dallas/Fort Worth"},{neilsen:"624",google:" 103",name:" Sioux City"},{neilsen:"625",google:" 104",name:" Waco/Temple/Bryan"},{neilsen:"626",google:" 105",name:" Victoria"},{neilsen:"627",google:" 106",name:" Wichita Falls/Lawton"},{neilsen:"628",google:" 107",name:" Monroe/El Dorado"},{neilsen:"630",google:" 108",name:" Birmingham"}, {neilsen:"631",google:" 109",name:" Ottumwa/Kirksville"},{neilsen:"632",google:" 110",name:" Paducah/Cape Girardeau/Harrisburg/Mt Vernon"},{neilsen:"633",google:" 111",name:" Odessa/Midland"},{neilsen:"634",google:" 112",name:" Amarillo"},{neilsen:"635",google:" 113",name:" Austin-Tx"},{neilsen:"636",google:" 114",name:" Harlingen/Weslaco/Brownsville/Mcallen"},{neilsen:"637",google:" 115",name:" Cedar Rapids/Waterloo/Dubuque"},{neilsen:"638",google:" 116",name:" Saint Joseph"},{neilsen:"639",google:" 117", name:" Jackson-Tn"},{neilsen:"640",google:" 118",name:" Memphis"},{neilsen:"641",google:" 119",name:" San Antonio"},{neilsen:"642",google:" 120",name:" Lafayette-La"},{neilsen:"643",google:" 121",name:" Lake Charles"},{neilsen:"644",google:" 122",name:" Alexandria-La"},{neilsen:"647",google:" 123",name:" Greenwood/Greenville"},{neilsen:"648",google:" 124",name:" Champaign/Springfield/Decatur"},{neilsen:"649",google:" 125",name:" Evansville"},{neilsen:"650",google:" 126",name:" Oklahoma City"},{neilsen:"651", google:" 127",name:" Lubbock"},{neilsen:"652",google:" 128",name:" Omaha"},{neilsen:"656",google:" 129",name:" Panama City"},{neilsen:"657",google:" 130",name:" Sherman-Tx/Ada-Ok"},{neilsen:"658",google:" 131",name:" Green Bay/Appleton"},{neilsen:"659",google:" 132",name:" Nashville"},{neilsen:"661",google:" 133",name:" San Angelo"},{neilsen:"662",google:" 134",name:" Abilene/Sweetwater"},{neilsen:"669",google:" 135",name:" Madison"},{neilsen:"670",google:" 136",name:" Fort Smith/Fayetteville/Springdale/Rogers"}, {neilsen:"671",google:" 137",name:" Tulsa"},{neilsen:"673",google:" 138",name:" Columbus/Tupelo/West Point"},{neilsen:"675",google:" 139",name:" Peoria/Bloomington"},{neilsen:"676",google:" 140",name:" Duluth/Superior"},{neilsen:"678",google:" 141",name:" Wichita/Hutchinson"},{neilsen:"679",google:" 142",name:" Des Moines/Ames"},{neilsen:"682",google:" 143",name:" Davenport/Rock Island/Moline"},{neilsen:"686",google:" 144",name:" Mobile/Pensacola/Fort Walton Beach"},{neilsen:"687",google:" 145",name:" Minot/Bismarck/Dickinson"}, {neilsen:"691",google:" 146",name:" Huntsville/Decatur/Florence"},{neilsen:"692",google:" 147",name:" Beaumont/Port Arthur"},{neilsen:"693",google:" 148",name:" Little Rock/Pine Bluff"},{neilsen:"698",google:" 149",name:" Montgomery/Selma"},{neilsen:"702",google:" 150",name:" La Crosse/Eau Claire"},{neilsen:"705",google:" 151",name:" Wausau/Rhinelander"},{neilsen:"709",google:" 152",name:" Tyler/Longview/Lufkin/Nacogdoches"},{neilsen:"710",google:" 153",name:" Hattiesburg/Laurel"},{neilsen:"711", google:" 154",name:" Meridian"},{neilsen:"716",google:" 155",name:" Baton Rouge"},{neilsen:"717",google:" 156",name:" Quincy/Hannibal/Keokuk"},{neilsen:"718",google:" 157",name:" Jackson-Ms"},{neilsen:"722",google:" 158",name:" Lincoln/Hastings/Kearney"},{neilsen:"724",google:" 159",name:" Fargo/Valley City"},{neilsen:"725",google:" 160",name:" Sioux Falls/Mitchell"},{neilsen:"734",google:" 161",name:" Jonesboro"},{neilsen:"736",google:" 162",name:" Bowling Green"},{neilsen:"737",google:" 163",name:" Mankato"}, {neilsen:"740",google:" 164",name:" North Platte"},{neilsen:"743",google:" 165",name:" Anchorage"},{neilsen:"744",google:" 166",name:" Honolulu"},{neilsen:"745",google:" 167",name:" Fairbanks"},{neilsen:"746",google:" 168",name:" Biloxi/Gulfport"},{neilsen:"747",google:" 169",name:" Juneau"},{neilsen:"749",google:" 170",name:" Laredo"},{neilsen:"751",google:" 171",name:" Denver"},{neilsen:"752",google:" 172",name:" Colorado Springs/Pueblo"},{neilsen:"753",google:" 173",name:" Phoenix"},{neilsen:"754", google:" 174",name:" Butte/Bozeman"},{neilsen:"755",google:" 175",name:" Great Falls"},{neilsen:"756",google:" 176",name:" Billings"},{neilsen:"757",google:" 177",name:" Boise"},{neilsen:"758",google:" 178",name:" Idaho Falls/Pocatello"},{neilsen:"759",google:" 179",name:" Cheyenne/Scottsbluff"},{neilsen:"760",google:" 180",name:" Twin Falls"},{neilsen:"762",google:" 181",name:" Missoula"},{neilsen:"764",google:" 182",name:" Rapid City"},{neilsen:"765",google:" 183",name:" El Paso"},{neilsen:"766", google:" 184",name:" Helena"},{neilsen:"767",google:" 185",name:" Casper/Riverton"},{neilsen:"770",google:" 186",name:" Salt Lake City"},{neilsen:"771",google:" 187",name:" Yuma/El Centro"},{neilsen:"773",google:" 188",name:" Grand Junction/Montrose"},{neilsen:"789",google:" 189",name:" Tucson/Sierra Vista"},{neilsen:"790",google:" 190",name:" Albuquerque/Santa Fe"},{neilsen:"798",google:" 191",name:" Glendive"},{neilsen:"800",google:" 192",name:" Bakersfield"},{neilsen:"801",google:" 193",name:" Eugene"}, {neilsen:"802",google:" 194",name:" Eureka"},{neilsen:"803",google:" 195",name:" Los Angeles"},{neilsen:"804",google:" 196",name:" Palm Springs"},{neilsen:"807",google:" 197",name:" San Francisco/Oakland/San Jose"},{neilsen:"810",google:" 198",name:" Yakima/Pasco/Richland/Kennewick"},{neilsen:"811",google:" 199",name:" Reno"},{neilsen:"813",google:" 200",name:" Medford/Klamath Falls"},{neilsen:"819",google:" 201",name:" Seattle/Tacoma"},{neilsen:"820",google:" 202",name:" Portland-Or"},{neilsen:"821", google:" 203",name:" Bend-Or"},{neilsen:"825",google:" 204",name:" San Diego"},{neilsen:"828",google:" 205",name:" Monterey/Salinas"},{neilsen:"839",google:" 206",name:" Las Vegas"},{neilsen:"855",google:" 207",name:" Santa Barbara/Santa Maria/San Luis Obispo"},{neilsen:"862",google:" 208",name:" Sacramento/Stockton/Modesto"},{neilsen:"866",google:" 209",name:" Fresno/Visalia"},{neilsen:"868",google:" 210",name:" Chico/Redding"},{neilsen:"881",google:" 211",name:" Spokane"}],$aa=$aa||{ready:[]},mustache= null,render=null;function Controllers(){}function coreController(b,f){mustache=new itsMustache;render=mustache.render;if($aa&&$aa.ready&&$aa.ready instanceof Array&&0<$aa.ready.length)for(var d=$aa.ready,h=0,k=d.length;h"),q=f.data,r=f.label||"Enter label name", p="function"===typeof f.filter?f.filter:null,u={},w={},A=0,y=isDefined(f.limit)?f.limit:-1,z=void 0,x=!1,v=function(b,f){function h(d){var f=document.createElement("tag"),g=document.createElement("p");g.textContent=p;b.className&&(r+=" "+b.className);f.className=r;f.appendChild(g);f.appendChild(d);A++;return f}function k(){var b=document.createElement("div");b.className="close";m.add(b,"click",l);return b}function l(){b.status=!1;m.removeAll(n);q.parentNode.removeChild(q);delete u[p];x&&d(g());A--; f(b)}var p=void 0,q=void 0,n=void 0,r="";b&&(p=b.name,n=k(),q=h(n),b.tag=q);return q};0n)for(m=m[l],n*=-1,q=0;q

{{ title }}

"}, n={one:{width:1,height:1},two:{width:2,height:1},three:{width:2,height:2}};(function(f,m){m=m.squares;for(var g=document.createDocumentFragment(),q=0,n=m.length;qf&&(f=n);b.style.height=f+20+"px"})(k,f)},DragController=function(b,f,d,h,k){function n(f){f&&f.preventDefault&&f.preventDefault();u.removeByTag("window");b.style.zIndex="";b.setAttribute("cssTransition",D);C.unbind();d(f);J&&l()}function g(b){q({clientX:y,clientY:z})}function m(){B&&clearTimeout(B);B=setTimeout(g,100)}function l(){x=b.offsetLeft;v=b.offsetTop}function q(d){E||(E={width:K.offsetWidth,height:K.offsetHeight}); H||(H={width:b.offsetWidth,height:b.offsetHeight});y=d.clientX;var f=y-w;z=d.clientY;var g=z-A-(F-window.scrollY);b.style.position="absolute";f=r(f+x);g=p(g+v);if(!h||h&&!1!==h(d,f,g))null!==f&&(b.style.left=f+"px"),null!==g&&(b.style.top=g+"px")}function r(b){if(!L&&!M||0<=b&&b+H.width<=E.width)return b;if(M)return null;if(0>b)return 0;if(b>E.width)return E.width-H.width}function p(b){if(!L&&!I||0<=b&&b+H.height<=E.height)return b;if(I)return null;if(0>b)return 0;if(b>E.height)return E.height-H.height} var u=new EventManager,w=null,A=null,y=null,z=null,x=null,v=null,F=null,C=void 0,B=null,I=k&&k.xOnly?!0:!1,M=k&&k.yOnly?!0:!1,L=k&&k.inBounds?!0:!1,J=k&&k.autoSet?!0:!1,K=b.parentNode,E=null,H=null,D=b.getAttribute("cssTransition")||"";this.setOffsets=l;this.exit=function(){u&&u.reset();L=J=K=E=H=D=y=z=x=v=F=C=srollTimer=I=M=b=f=d=h=k=u=w=A=null};l();u.add(b,"mousedown",function(d){d&&d.preventDefault&&d.preventDefault();F=window.scrollY;w=d.clientX;A=d.clientY;b.style.zIndex="10000";b.setAttribute("cssTransition", "none");u.add(window,"mousemove",q,"window");u.add(window,"mouseup",n,"window");C=new MouseScrollEvent(m);f(d)})},MouseScrollEvent=function(b){var f=new EventManager;f.add(window,"DOMMouseScroll",b);f.add(document,"mousewheel",b);this.unbind=function(){f.reset()}},CheckboxListContainer=function(b,f,d){function h(){forEach(l,function(b){b.unsetAll()})}function k(){forEach(l,function(b){b.exit&&b.exit()})}function n(b){var f=new CheckboxList(m,{title:b.title,data:b.data,api:b.api,apiData:b.apiData, apiFn:b.apiFn,config:b.config},function(f){d&&d({key:b.key,value:f})}),g=f.getElement();this.data=b.data;this.value=this.title=b.title;this.list=f;this.show=function(){g.classList.remove("noDisplay")};this.hide=function(){g.classList.add("noDisplay")};this.exit=function(){f&&f.exit&&f.exit();f=null};this.setAll=f.setAll;this.unsetAll=f.unsetAll}window.__listCount=0;var g='
',m=getElementFromString(g),l=[],q=null;forEach(f,function(b){l.push(new n(b))}); q=new ToggleNavigation(m.querySelector("header"),{data:l,className:"toggle"},function(b){forEach(l,function(d){d.title==b.title?d.show():d.hide()})});b.appendChild(m);this.setAll=function(){forEach(l,function(b){b.setAll()})};this.reset=this.unsetAll=h;this.getLists=function(){var b=[];forEach(l,function(d,f,g){b[g]=d});return b};this.exit=function(){l&&k();q&&q.exit();b=f=d=g=m=l=q=null}};function BenchTimer(){var b=new Date;this.check=function(){return new Date-b}} var CheckboxList=function(b,f,d){function h(b){!1!==f.searchable&&(F=new SearchContainer(B.querySelector("header"),f,b))}function k(){var b=f.data.length;!1!==f.pagination&&b>J&&(L=new Pagination(B,Math.ceil(b/J),5,l))}function n(b,d){var f=!1;forEach(b,function(b,g,h){if(d===b.index)return f=!0,!1});return f}function g(){forEach(D,function(b){b.unset()})}function m(b){K=b;r(getSimpleJSONCopy(b),1)}function l(b,d){d=K?getSimpleJSONCopy(K):null;r(d,b)}function q(b,d){var f=J*(d-1);d=f+J-1;forEach(b, function(g,h,k){(kd)&&b.splice(k,1)},!0)}function r(b,d){if(!isDefined(b)){b=D.length;for(var f=[],g=0;g

{{ . }}

",b)),l=new Checkbox(k,function(b){m=b;d&&d(x())},!0),m=!1;n(b)&&(l.set(),m=!0);this.getTitle=function(){return b};this.getValue=function(){return f};this.getName=function(){console.error("Warning, getName has been depreciated. Please update the calling function to use getTitle or getValue instead!");return b};this.getState=function(){return m};this.getElement=function(){return k};this.getIndex=function(){return g}; this.unset=function(){m=!1;l.unset()};this.set=function(){m=!0;l.set()};this.exit=function(){l&&l.exit();l=null}}function x(){var b=[];forEach(D,function(d,f,g){!0===d.getState()&&b.push({title:d.getTitle(),value:d.getValue()})});return b}function v(){forEach(D,function(b){b.exit&&b.exit()})}var F=null,C='

{{ title }}:

{{# data }}

{{ . }}{{#data}}{{name}}{{/data}}

{{/ data }}
',B=getElementFromString(render(C, f)),I=B.querySelector("list"),M=I.querySelectorAll("item"),L=null,J=f.pageSize||10,K=null,E=0,H=0,D=[],N={};dynamicList=[];this.getElement=function(){return B};this.setAll=function(){forEach(D,function(b){b.set()})};this.unsetAll=g;this.getList=function(){var b=[];forEach(D,function(d){b.push(d)});return b};this.reset=g;this.exit=function(){D&&v();L&&L.exit();F&&F.exit();b=f=d=F=C=B=I=M=J=K=D=null};isDefined(f.data)?(forEach(f.data,y),k(),h(m)):isDefined(f.api)&&h(w);b.appendChild(B)},Checkbox=function(b, f,d){function h(){n=!0;m.classList.add("active")}function k(){n=!1;m.classList.remove("active")}var n=!1,g=new EventManager,m=document.createElement("m-checkbox");g.add(m,"click",function(){n?k():h();f&&f(n)});!0!==d?b.appendChild(m):prependChild(b,m);this.unset=k;this.set=h;this.exit=function(){g&&g.reset();b=f=d=n=g=m=null}},Notification=function(b,f,d,h){function k(){var b=document.createElement("icon");b.className="close";n.add(b,"click",h);return b}var n=new EventManager,g=d.data,m=null,l=null; b&&f&&d&&(m=document.createElement("notification"),l=k(),d.id&&(m.id=d.id),d.className&&(m.className=d.className),d.cssTransition&&m.setAttribute("cssTransition",d.cssTransition),m.innerHTML=render(f,g),m.appendChild(l),b.appendChild(m));this.getElement=function(){return m};this.exit=function(){null!==m&&(removeChild(b,m),n&&n.reset(),n=g=m=l=null)}},Alert=function(b,f,d){function h(){var b=document.createElement("icon");b.className="close";n.add(b,"click",k);return b}function k(){null!==m&&removeChild(b, m);n&&n.reset();l=m=null}var n=new EventManager,g=d.data,m=null,l=null;b&&f&&d&&(m=document.createElement("alert"),l=h(),d.id&&(m.id=d.id),d.className&&(m.className=d.className),d.cssTransition&&m.setAttribute("cssTransition",d.cssTransition),m.innerHTML=render(f,g),m.appendChild(l),b.appendChild(m));this.getElement=function(){return m};this.exit=k},LoggedInAsNotification=function(b,f,d){function h(){g.classList.remove("noDisplay")}function k(){g.classList.add("noDisplay")}function n(b){b=document.createDocumentFragment(); m=getElementFromString(render(r.p,p));l=getElementFromString(r.a);b.appendChild(m);b.appendChild(l);q.reset();g.innerHTML="";g.appendChild(b);q.add(l,"click",d)}var g=document.getElementById("loggedInAs"),m=null,l=null,q=new EventManager,r=new function(){this.p="

Logged in as user id: {{ id }}.

";this.a=''+(f?"Return to main account":"Return to advertisers list")+""},p=b;this.show=h;this.hide=k;this.update=function(b){p=b;n(b);h()};this.exit=function(){q&&q.reset();k();q=r=g= null};n(p);h()},Autocomplete=function(b,f,d){function h(d){r(d.target,b)?"AC-MATCH"==d.target.tagName&&g(d.target.textContent):n()}function k(b){switch(b.keyCode){case 13:-1"+b.substring(d,d+f)+""+ b.substring(d+f)}function r(b,d){b=b.parentNode;return b==d?!0:b!=document.body?r(b,d):!1}var p=new EventManager,u="{{# . }}{{ . }}{{/ . }}",w=null,A=null,y=null,z=!1,x=-1;d=d||{};(function(){w=document.createElement("input");w.type="text";var b=d;b.placeholder&&(w.placeholder=b.placeholder);b.className&&(w.className=b.className)})();A=y=document.createElement("ac-matches");(function(){var d=b,f=w;d.appendChild(f);d.appendChild(y);p.add(f,"keyup",k)})();this.reset=n();this.exit= function(){p&&p.reset();b=f=d=p=u=w=A=y=z=x=null}},SearchContainer=function(b,f,d){function h(b){d(w.getMatches(b.target.value))}function k(b){clearTimeout(A);A=setTimeout(n,600)}function n(){new HttpRequest("GET",f.api+"/"+u.value,null,null,"json",g)}function g(b){b=isDefined(f.apiFn)?f.apiFn(b):b;d(b)}var m=new EventManager,l='',q=isDefined(f.data)?f.data: [],r=f.config||{},p=getElementFromString(render(l,r)),u=p.querySelector("input"),w=new Search(q),A=null;d&&(0=d?d:b)?q(x):v!=C&&vf&&(g=f);return b+" - "+g}function u(b){return function(b){return function(){q(b)}}(b)}function w(b){return function(b){return function(d){x=1;v=b+1;g()}}(b)}function A(b){return function(b){return function(d){x=1;v=v+b+1;g()}}(b)}var y=new EventManager,z=(new function(){this.previousButton=''; this.nextButton='';this.expandSection="

{{ . }}

";this.pagesSection='

{{ value }}

';this.pages="{{# pages }}"+this.pagesSection+"{{/ pages }}";this.beforeSections='{{# beforeSections }}'+this.expandSection+"{{/ beforeSections }}"; this.afterSections='{{# afterSections }}'+this.expandSection+"{{/ afterSections }}";this.beforeCheck="{{# beforeActive }}"+this.beforeSections+"{{/ beforeActive }}";this.afterCheck="{{# afterActive }}"+this.afterSections+"{{/ afterActive }}";this.index=""+this.previousButton+this.beforeCheck+""+this.pages+""+this.afterCheck+this.nextButton+ ""}).index,x=1,v=1,F=Math.ceil(f),C=null,B=null,I=null,M=[],L=[],J=[],K=null,E=null;d=r();C=Math.ceil(F/d);setTimeout(function(){b&&F&&g()},1);this.updatePageCount=function(b,f){v=x=1;b=Math.ceil(b/f);F!==b&&(F=b,C=Math.ceil(F/d),g(!0));h(1)};this.exit=function(){y&&y.reset();I=M=L=J=K=E=b=F=d=h=y=z=x=v=C=B=null}},ToggleInput=function(b,f,d){function h(){m?n():k()}function k(){m=!0;var b=r;b&&b.classList.remove("off");f&&f(!0)}function n(){m=!1;var b=r;b&&b.classList.add("off");f&&f(!1)} var g=new EventManager,m=!1,l=new function(b){this.trueLabel=b.trueLabel||"On";this.falseLabel=b.falseLabel||"Off";this.toggleTheme=b.toggleTheme||"royal";this.labelTheme=b.labelTheme||"fresh";this.switchTheme=b.switchTheme||"fresh";this.transition=b.transition||"";this.initialValue=b.initialValue||!0}(d||{}),q='

{{ trueLabel }}

{{ falseLabel }}

', r=getElementFromString(render(q,l));(function(){var b=d?d.initialValue:null,f=k;if(!1===b||isString(b)&&"off"==b.toLowerCase())f=n;f()})();g.add(r,"click",h);b.appendChild(r);this.toggle=h;this.reset=this.set=k;this.unset=n;this.getState=function(){return m};this.exit=function(){g&&g.reset();r.parentNode===b&&b.removeChild(r);g=d=f=b=r=q=l=m=null}},ToggleNavigation=function(b,f,d){function h(b,g,h){function k(){w&&w.unset();w={unset:l,index:g};b.classList.add("active");d&&d(q,g)}function l(){b.classList.remove("active")} var q=f.data[g];m.add(b,"click",k);h&&k();this.set=k;this.show=function(){b.classList.remove("noDisplay");delete u[g]};this.hide=function(){if(w.index===g)a:for(var d=0,f=p.length;d
",w=getElementFromString(u),A=w.querySelector("header"),y=w.querySelector("container"),z=new ToggleNavigation(A,r,function(b,f){b=p[f];var h=l[f];isDefined(h.initFn)&&g(h);null!==m&&y.removeChild(m);m=b;y.appendChild(m);isDefined(d)&&d(f)}); console.log("New tabbed container!",w,A,y);!0!==q.prepend?b.appendChild(w):prependChild(b,w);this.reset=z.reset;this.showTab=z.showTab;this.hideTab=z.hideTab;this.update=function(b){l=b;r=k(l);p=n(l)};this.exit=function(){z&&z.exit();b=f=m=l=q=r=p=u=w=A=y=z=null}},FileDataManager=function(){var b=void 0,f=void 0,d=void 0;b=new FileReader;f=document.querySelector("body");d=document.createElement("input");b.onload=function(b){window.prompt("Image Data",b.target.result)};d.type="file";f.innerHTML=""; f.appendChild(d);this.load=function(){b.readAsDataURL(d.files[0])}},__emc=0,EventManager=function(b){function f(b,d,f,h,k,p){this.t=b;this.type=d;this.fn=f;this.tag=h;this.keyID=k;this.is=p}function d(b){if(b){b.t.removeEventListener(b.type,b.fn);var d=b.keyID;delete k[d][b.id];0==k[d].length&&delete n[d]}}function h(b){b=k[b];for(var f in b)"length"!=f&&d(b[f])}var k={length:0},n={length:0};this.add=function(b,d,h,q){if(void 0===q||0!==q.indexOf("__")){b.addEventListener(d,h);a:{var g=n;for(var l in g)if("length"!== l&&g[l]==b){g=l;break a}g=null}null===g&&(g=n,void 0===k[g.length]&&(k[g.length]={length:0}),g[g.length]=b,g=g.length++);l=k[g];var m=l.length;l[m]=new f(b,d,h,q,g,m);return l.length++}console.error("Well, we've encountered an issue. It appears that a protected prefix was used in the tag for this add request. Please refer to the API documentation");return null};this.remove=function(b,f){isDefined(b)&&isDefined(f)?d(k[b][f]):console.error("Well shucks, it looks like I'm missing some information. Please include both target and id attributes to remove a single event.")}; this.removeAll=h;this.removeByTag=function(b){var f=k,g;for(g in f)if("length"!==g){var h=void 0,n=f[g],p=b;for(h in n)void 0!==p&&p!=n[h].tag||"length"==h||d(n[h])}};this.reset=function(){for(var b in k)h(b)}},Calendar=function(b,f,d){function h(b){if(isNumber(b))return l(k(new Date(1E3*b)));if(isDefined(b)&&"function"===typeof b.toUTCString)return l(k(b));if(isDefined(b)&&isDefined(b.month)&&isDefined(b.monthValue)&&isDefined(b.date)&&isDefined(b.year))return l(b);console.error("Oh noes!",b)}function k(b){return{month:y[b.getUTCMonth()], monthValue:b.getUTCMonth()+1,date:b.getUTCDate(),year:b.getUTCFullYear()}}function n(){l(x.getCurrentDay())}function g(b){var d=x.getMonth(b.month,b.year);this.monthName=b.month;this.yearValue=b.year;var f=A,g=d[0];d=x.getDaysBefore(g.name);var h=x.getNumberOfDays(g.month,g.year);h=7*Math.ceil((d+h)/7);if(0===d)d=g;else{g=x.getPreviousMonth(g.month,g.year);var k=x.getNumberOfDays(g.name,g.year);d=x.getDay(g.name,k-d+1,g.year)}d=x.getDays(d,h);this.days=f(d,b);this.daysOfWeek=x.getDaysOfWeek(this.days[0]); this.focusDay=p(this.days)}function m(b,f){b.element=f;z.add(f,"click",function(){var f=B.focusDay;isDefined(f)&&b.month==f.month?(f.element.classList.remove("focus"),b.element.classList.add("focus"),B.focusDay=b,d&&d(q(B.focusDay))):l(b)},"tmp")}function l(b,f){z.removeByTag("tmp");B=new g(b);b=getFragment();var h=getElementFromString;b.appendChild(h(render(v.header,B)));b.appendChild(h(render(v.month,B)));C.innerHTML="";C.appendChild(b);b=C;h=b.querySelector("header");z.add(h.querySelector("prev-button"), "click",u);z.add(h.querySelector("next-button"),"click",w);forEach(b.querySelector("days").querySelectorAll("day"),r);F=q(B.focusDay);!0!==f&&d&&d(F)}function q(b){b=isDefined(b)?b:x.getCurrentDay();var d={};d.date=b.date;d.display=b.date+" "+b.month+", "+b.year;d.month=b.month;d.year=b.year;d.monthValue=b.monthValue;d.toDate=function(){return new Date(d.year,d.monthValue-1,d.date,0,0,0,0)};d.toUnix=function(){return Math.round((new Date(d.year,d.monthValue-1,d.date,0,0,0,0)).getTime()/1E3)};return d} function r(b,d,f){new m(B.days[f],b)}function p(b){var d=null;forEach(b,function(b){if("focus"===b.className)return d=b,!1});return d}function u(){var b=B.focusDay;b=x.getPreviousMonth(b.month,b.year);l(x.getDay(b.name,1,b.year))}function w(){var b=B.focusDay;b=x.getNextMonth(b.month,b.year);l(x.getDay(b.name,1,b.year))}function A(b,d){forEach(b,function(b){var f=b.month===d.month?b.date===d.date?"focus":void 0:"grey";b.className=f});return b}var y="January February March April May June July August September October November December".split(" "), z=new EventManager,x=new CalendarAssistant,v=new function(){this.header='

{{ monthName }}, {{ yearValue }}

';this.month='
{{# daysOfWeek }}{{ abbreviation }}{{/ daysOfWeek }}
{{# days }}{{ date }}{{/ days }}
'},F,C=getElementFromString(''), B=null;this.setToPresent=n;this.set=h;this.get=function(){return F};this.exit=function(){z&&z.reset();b=f=d=z=x=v=C=B=null};f&&f.value?h(f.value):n();b.appendChild(C)},CalendarInput=function(b,f,d){function h(){n.removeAll(window);p.classList.add("noDisplay");u=!1}function k(b){isParentOfTarget(m,b.target)||h()}var n=new EventManager,g='',m=getElementFromString(g),l=m.querySelector("input"),q=null,r=new Calendar(m, f,function(b){l.value=b.display;null!=q&&b.month==q.month&&h();q=b;d&&d(b)}),p=m.querySelector("calendar"),u=!1;this.reset=function(){r.setToPresent()};this.exit=function(){n&&n.reset();r&&r.exit();b=f=d=n=g=m=l=q=r=p=u=null};this.set=r.set;this.get=r.get;h();n.add(m.querySelector("input"),"click",function(){u?h():(m.classList[400>b.getBoundingClientRect().top?"add":"remove"]("bottom"),n.add(window,"mousedown",k),p.classList.remove("noDisplay"),u=!0)});b.appendChild(m)},SlideInput=function(b,f,d){function h(b, d){return d<=b[1]?d>=b[0]?d:b[0]:b[1]}function k(b){function f(d,f,n,u){h||(h=g.getClientRects()[0]);if(d=isDefined(f)){if(d="start"==b)d=isDefined(q.nubs[1])?q.nubs[1].getLocation()-h.width>f:!0;if(d)d=!0;else{if(d="end"==b)d=isDefined(q.nubs[1])?q.nubs[0].getLocation()+h.width{{# separators }}{{/ separators }}{{# nubs }}{{/ nubs }}',p=getElementFromString(render(r,q)),u=p.querySelector("fill"),w=[];b.appendChild(p);(function(){var b=p.querySelectorAll("nub"); forEach(b,function(d,f,g){d=q.nubs[g];d.element=d.setElement(b[g]);d.setDrag(new DragController(b[g],d.dragStart,d.dragEnd,d.dragMove,{xOnly:!0,inBounds:!0,autoSet:!0}));d.setPosition(q.startValues[g])});m()})();d&&d(n());this.getValues=n;this.setValues=function(b){function d(d,f,g){d.setPosition(parseFloat(b[g]))}b.length==q.nubs.length&&forEach(q.nubs,d)};this.exit=function(){l();b=f=d=q=r=p=u=null}},ConfirmationButton=function(b,f,d){function h(){var b=l,d=g;q=0;d.confirmColor&&b.classList.remove(d.confirmColor); d.color&&b.classList.add(d.color);b.textContent=d.text;r&&clearTimeout(r);r=null}function k(b,d,f){return isDefined(d[b])?d[b]:f[b]}var n=new EventManager(!0),g=new function(b,d){this.text=k("text",b,d);this.confirmText=k("confirmText",b,d);!0!==b.noClass?(this.className=k("className",b,d),this.color=k("color",b,d),this.confirmColor=k("confirmColor",b,d)):(this.noClass=!0,this.confirmColor=this.color=this.className="")}(f,{className:"",color:"cool",confirmColor:"hot",text:"Click",confirmText:"Confirm"}), m='{{ text }}',l=getElementFromString(render(m,g)),q=0,r=null;this.exit=function(){n.reset();b=f=d=n=g=m=l=q=r=null};this.resetState=h;n.add(l,"click",function(b){b&&b.preventDefault&&b.preventDefault();if(0==q){b=l;var f=g;q=1;f.color&&b.classList.remove(f.color);f.confirmColor&&b.classList.add(f.confirmColor);b.textContent=f.confirmText;r&&clearTimeout(r);r=null;r=setTimeout(h,3E3)}else 1==q&&(h(),d&&d(!0))});b.appendChild(l)}, MultiSelect=function(b,f,d){function h(b,d){d=function(b){return function(d){k(d,b)}}(d);b.addEventListener("click",d)}function k(b,d){b&&b.preventDefault&&b.preventDefault();d.active?(d.active=!1,d.element.classList.remove("active")):(d.active=!0,d.element.classList.add("active"));b="";for(var g=0,h=0,k=m,l=k.length;hl||19f||k.push("Please set valid month")));d(b.year)||(2!==b.year.length||-1d&&b.removeChild(b.lastChild)}function popAnchor(b){b&&b.preventDefault&&b.preventDefault();pop("Pop!","Dashboard",b.target.getAttribute("href"))} function pop(b,f,d){window.history.pushState({foo:"bar"},f,d);isFunction(window.ic)&&window.intercomSetting&&(ic("reattach_activator"),ic("update",intercomSettings))}(function(b){var f=b.pushState;b.pushState=function(d){if("function"==typeof b.onpushstate)b.onpushstate({state:d});return f.apply(b,arguments)}})(window.history); function FileToImageData(b,f){function d(){null!==h.readAsDataURL.result&&h.readAsDataURL(k[b++])}var h=new FileReader,k=b.files,n=0,g=k.length,m=[];b=0;h.onload=function(b){var h=b.target.result;h&&m.push({e:b,result:h});n++ +1==g?f(m):d()};d()} function CalendarAssistant(){function b(d,g){function k(b,d){var g=[];m(b,d,function(b,d){d+=b.date;b=f(b.month,d,b.year);b.number=d;g.push(b)});return g}function l(){var l=h(d.month,d.year);return k(d,q).concat(b(f(l.name,1,l.year),g-q))}function m(b,d,f){for(var g=0;g=g?k(d,g):l()}function f(b,f,g){var h=parseFloat(g.toString().substr(2,2)),k={January:3,February:6,March:6,April:2,May:4,June:0,July:2,August:5,September:1,October:3,November:6, December:1}[b],l=h/4;0!=l%1?l=Math.floor(l):"January"!=b&&"February"!=b||(0!=h||0!=h%400)&&0==h||--k;h="Saturday Sunday Monday Tuesday Wednesday Thursday Friday".split(" ")[(4+h+l+k+parseFloat(f))%7];return new d(b,f,g,h,h.substr(0,3))}function d(b,d,f,g,h){this.month=b;this.monthValue=q[b];this.name=g;this.element=null;this.abbreviation=h||null;this.number=this.className=null;this.__defineGetter__("date",function(){return d});this.__defineSetter__("date",function(){return!1});this.__defineGetter__("year", function(){return f});this.__defineSetter__("year",function(){return!1})}function h(b,d){var f=q[b];void 0==d&&(d=k().year);"December"!==b?f=g[f]:(f=g[0],d++);return{name:f,year:d}}function k(){var b=new Date;return f(r[b.getMonth()],b.getDate(),b.getFullYear())}function n(b,d){var f=p[q[b]-1];if(b="February"===b)b=0!==d%4?!1:0===d%100&&0!==d%400?!1:!0;b&&f++;return f}var g="January February March April May June July August September October November December".split(" "),m=[{name:"Sunday",abbreviation:"Sn"}, {name:"Monday",abbreviation:"Mo"},{name:"Tuesday",abbreviation:"Tu"},{name:"Wednesday",abbreviation:"We"},{name:"Thursday",abbreviation:"Th"},{name:"Friday",abbreviation:"Fr"},{name:"Saturday",abbreviation:"Sa"}],l={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6},q={January:1,February:2,March:3,April:4,May:5,June:6,July:7,August:8,September:9,October:10,November:11,December:12},r="January February March April May June July August September October November December".split(" "), p=[31,28,31,30,31,30,31,31,30,31,30,31];this.numberofdays=p;this.getDaysOfWeek=function(b){b=b.name;for(var d=[],f=[],g=null,h=0,k=m.length;h

"+ b.title+'

');R.add(d.querySelector("input"),"change",function(d){d=d.target.value;n(b.key,d);f(b.updateKey,b,d)});return d}function l(b,d){function f(b){"input"!==b.type&&g(k,b,b.updateKey,d)}function g(b,d,f,g){function k(d){b[f][d]=l[d]}var l=h(d,g);b[f]=p.template[f];isString(d.set)?b[f][d.set]=l:forEach(d.set,k)}function h(b,d){return isDefined(b.fn)?b.fn(d):d}var k={};isDefined(w[b])&&forEach(w[b],f);u.updateData(k)}function m(b){var d={};forEach(b, function(b){d[b]=p.template[b]});return d}function n(b,d){function f(f){g[b]=d[f]}g&&(isString(d)?g[b]=d:forEach(d,f),l(b,d))}function t(b){n("landingURL",b.target.value)}function q(){d.ads.splice(F,1);K();u&&u.exit&&u.exit();x&&x.exit();v&&v.exit();b&&removeChild(O.adsContainer,b);b=name=price=imageURL=landingURL=g=p=u=main=position=x=null}g=new y(g);var p=U(g),r=p.config,C=b.querySelector("rows"),u=B(b,p),x=new ToggleNavigation(b.querySelector(".controls"),function(){var b=[];forEach(r.views,function(d){b.push({value:d.title})}); return{data:b,className:"toggle"}}(),function(b){b=b.value;"Main"==b?u.setView(0):"Re-position background"==b&&u.setView(1)}),v=new ConfirmationButton(b.querySelector(".close"),{color:"hot",text:"Close",className:"tidySmall",confirmColor:"mist",confirmText:"Confirm?"},q),F=f,w={};this.element=b;this.data=g;this.canvas=u;this.set=n;this.setIndex=function(b){F=b};this.remove=q;(function(){var d=b.querySelector(".landingURL");d&&R.add(d,"change",t)})();(function(){var b=r.updateItems,d;for(d in b){var f= b[d];f.updateKey=parseFloat(d);var g=f.key;isDefined(w[g])||(w[g]=[]);w[g].push(f)}})();(function(){var b=getFragment(),d;for(d in w)new h(d,w[d],b);C.insertBefore(b,C.childNodes[1])})()}function y(b){for(var d in b)this[d]=b[d];this.logo=get300x40LogoImage();this.adGroup=null;this.landingURL=""}function z(){var b=getElementFromString(render(P.ad,{}));O.adsContainer.insertBefore(b,O.createAnother);V.ads.push(v());x(b,null,V.ads.length-1)}function x(b,f,g){d.ads.push(new A(b,g,C(V.ads[g])))}function v(){var b= {};forEach(n,function(d){b[d.key]=""});return b}function F(b){var d=[{title:"Change Ad Group",value:"",placeholder:!0}];forEach(b,function(b){d.push({title:b.data.name,value:b.data.name})});return d}function C(b){var d={};forEach(n,function(f,g,h){d[f.key]=b[f.reference]});return d}function B(b,d){return isDefined(d)?(b=new CanvasRenderingTool(d.config,b.querySelector("canvas")),b.run(d.template),b):null}function I(){var b=[];isDefined(d.adGroup)||b.push("Please set an ad group");forEach(d.ads,function(d, f,g){var h=d.data;forEach(n,function(d,f,k){a:{for(var l in h)if(l==d.key&&isDefined(h[l])&&0f&&(f=b.lastIndexOf("/"));return b.substr(f+1)} function getKilobytesFromBytes(b){return Math.ceil(b/1E3)}function getRandomNumber(b,f){isDefined(b)||(b=0);isDefined(f)||(f=1E3);return Math.round(Math.random()*(f-b)+b)}function getRequiredPixel(b){return'