All Downloads are FREE. Search and download functionalities are using the official Maven repository.

assets.static.js.app.js Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
webpackJsonp([0],[function(t,e,n){(function(t){var e,a,r;window.utils=n(2),window.app=n(16),e=n(774),n(775),r=n(13),a=n(776),n(777),n(778),t(function(){return config.apiRoot?app.initialize():r.dialog.prompt({message:a(),callback:function(t){return function(t){return t&&localStorage.setItem("apiRootOverride",t),window.location=window.location.href}}(this)})})}).call(e,n(1))},,function(t,e,n){(function(e,a){var r,s,i,o=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};r=n(4),i=n(13),s=function(){function t(){}return t.TERMINAL_TASK_STATES=["TASK_KILLED","TASK_LOST","TASK_FAILED","TASK_FINISHED","TASK_ERROR"],t.DECOMMISION_STATES=["DECOMMISSIONING","DECOMMISSIONED","STARTING_DECOMMISSION","DECOMISSIONING","DECOMISSIONED","STARTING_DECOMISSION"],t.viewJSON=function(t,n){var a,s,l,u,c,p,d,h,f,m;if(null==t)return"function"==typeof n&&n({error:"Invalid model given"}),void console.error("Invalid model given");if(null!=t.synced&&!t.synced)return i.showLoading(),a=t.fetch(),a.done(function(e){return function(){return e.viewJSON(t)}}(this)),void a.error(function(t){return function(){return app.caughtError(),t.viewJSON(new Backbone.Model({message:"There was an error with the server"}))}}(this));for(i.hideLoading(),null==t.ignoreAttributes&&(t.ignoreAttributes=["id"]),f={},h=t.toJSON(),m=e.keys(h),u=0,d=m.length;d>u;u++)p=m[u],o.call(t.ignoreAttributes,p)<0&&(f[p]=h[p]);return c=JSON.stringify(f,void 0,4),s=e.extend(e.clone(i.dialog.buttons.YES),{text:"Close"}),l={text:"Copy",type:"button",className:"vex-dialog-button-secondary copy-button"},i.dialog.open({buttons:[s,l],message:"
"+e.escape(c)+"
",className:"vex vex-theme-default json-modal",afterOpen:function(t){var e,n;return t.parents(".vex").scrollTop(0),e=t.find(".copy-button"),e.attr("data-clipboard-text",t.find("pre").html()),n=new r(e[0])}})},t.setupCopyLinks=function(t){var n;return n=t.find(".horizontal-description-list li"),e.each(n,function(t){var n,s;return t=a(t),t.find("a").length?void 0:(s=t.find("p").html(),n=a("Copy"),t.find("h4").append(n),new r(n[0]))})},t.makeMeCopy=function(t){var n,s,i,o,l;return s=a(t.selector),i=t.linkText||"Copy",l=t.textSelector||".copy-text",o=s.find(l).html(),n=a(""+i+""),a(t.copyLink).html(n),new r(n[0])},t.fixTableColumns=function(t){var e,n,r,s,i,o,l;if(n=t.find("th"),n.length&&"fixed"!==t.css("table-layout")&&(t.css("table-layout","auto"),n.css("width","auto"),l=t.width(),o=void 0!==t.attr("data-sortable"),!o)){for(r=0,s=n.length;s>r;r++)e=n[r],e=a(e),i=e.width()/l*100,e.css("width",i+"%");return t.css("table-layout","fixed")}},t.pathToBreadcrumbs=function(t){var n,a;return null==t&&(t=""),n=t.split("/"),a=e.map(n,function(a){return function(a,r){return t=e.first(n,r),t.push(a),{name:a,path:t.join("/")}}}(this)),a.unshift({name:"root",path:""}),a},t.animatedExpansion=function(t,n){var r,s,i,o,l,u,c;return s=a(window).height(),i=t.offset().top,a("body").css("min-height",i+s+"px"),t.css("min-height",t.height()+"px"),t.animate({duration:1e3,minHeight:s+"px"}),l=function(e){return function(){return a(window).scrollTop(t.offset().top-20)}}(this),l(),setTimeout(l,200),c=1e3,o=function(t){return function(){return a(window).off("scroll",r)}}(this),u=function(e){return function(){return a("html, body").animate({minHeight:"0px"},c),t.animate({minHeight:"0px"},c),"function"==typeof n&&n(),o()}}(this),r=function(n){return function(){var n;return"undefined"!=typeof n&&null!==n&&cancelAnimationFrame(n),n=requestAnimationFrame(function(){var n,r,s,i,l,c,p,d,h;return t||o(),n=a(window),i=a(e.last(t.children())),i||u(),s=t.offset().top,r=i.height()+i.offset().top,h=n.scrollTop(),d=n.height()+h,c=s-50>h,l=h>s+50,l=l&&d>r,p=c||l,p?u():void 0})}}(this),setTimeout(function(e){return function(){return a(window).on("scroll",r),t.on("shrink",u)}}(this),100)},t.scrollTo=function(t,e){var n;return null==e&&(e=50),n=a(""+t).offset().top-e,a("html, body").animate({scrollTop:n+"px"},1e3)},t.getQueryParams=function(){return location.search?JSON.parse('{"'+decodeURI(location.search.substring(1).replace(/&/g,'","').replace(/\=/g,'":"'))+'"}'):{}},t.humanizeText=function(t){return t?(t=t.replace(/_/g," "),t=t.toLowerCase(),t=t[0].toUpperCase()+t.substr(1)):""},t.humanizeFileSize=function(t){var e,n,a;return n=1024,a=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],0===t?"0 B":(e=Math.min(Math.floor(Math.log(t)/Math.log(n)),a.length-1),+(t/Math.pow(n,e)).toFixed(2)+" "+a[e])},t.substituteTaskId=function(t,e){return t.replace("$TASK_ID",e)},t.getLabelClassFromTaskState=function(t){switch(t){case"TASK_STARTING":case"TASK_CLEANING":return"warning";case"TASK_STAGING":case"TASK_LAUNCHED":case"TASK_RUNNING":return"info";case"TASK_FINISHED":return"success";case"TASK_LOST":case"TASK_FAILED":case"TASK_LOST_WHILE_DOWN":case"TASK_ERROR":return"danger";case"TASK_KILLED":return"default";default:return"default"}},t.fileName=function(t){return t.substring(t.lastIndexOf("/")+1)},t.fuzzyAdjustScore=function(t,e){return e.original.id.toLowerCase().startsWith(t.toLowerCase())?10*e.score:e.original.id.toLowerCase().indexOf(t.toLowerCase())>-1?5*e.score:e.score},t.getTaskDataFromTaskId=function(t){var e;return e=t.split("-"),{id:t,rackId:e[e.length-1],host:e[e.length-2],instanceNo:e[e.length-3],startedAt:e[e.length-4],deployId:e[e.length-5],requestId:e.slice(0,+(e.length-6)+1||9e9).join("-")}},t.ignore404=function(t){return 404===t.status?app.caughtError():void 0},t.ignore400=function(t){return 400===t.status?app.caughtError():void 0},t}(),t.exports=s}).call(e,n(3),n(1))},,,,,,,,,,,function(t,e,n){var a;a=n(14),a.dialog=n(15),t.exports=a},,function(t,e,n){var a,r,s;(function(){var i;i=function(t,e){var n,a;return null==e?t.error("Vex is required to use vex.dialog"):(n=function(e){var n;return n={},t.each(e.serializeArray(),function(){return n[this.name]?(n[this.name].push||(n[this.name]=[n[this.name]]),n[this.name].push(this.value||"")):n[this.name]=this.value||""}),n},a={},a.buttons={YES:{text:"OK",type:"submit",className:"vex-dialog-button-primary"},NO:{text:"Cancel",type:"button",className:"vex-dialog-button-secondary",click:function(t,n){return t.data().vex.value=!1,e.close(t.data().vex.id)}}},a.defaultOptions={callback:function(t){},afterOpen:function(){},message:"Message",input:'',value:!1,buttons:[a.buttons.YES,a.buttons.NO],showCloseButton:!1,onSubmit:function(r){var s,i;return s=t(this),i=s.parent(),r.preventDefault(),r.stopPropagation(),i.data().vex.value=a.getFormValueOnSubmit(n(s)),e.close(i.data().vex.id)},focusFirstInput:!0},a.defaultAlertOptions={message:"Alert",buttons:[a.buttons.YES]},a.defaultConfirmOptions={message:"Confirm"},a.open=function(n){var r,s;return n=t.extend({},e.defaultOptions,a.defaultOptions,n),n.content=a.buildDialogForm(n),s=n.beforeClose,n.beforeClose=function(t,e){return n.callback(e.value),"function"==typeof s?s(t,e):void 0},r=e.open(n),n.focusFirstInput&&r.find('button[type="submit"], button[type="button"], input[type="submit"], input[type="button"], textarea, input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="time"], input[type="url"], input[type="week"]').first().focus(),r},a.alert=function(e){return"string"==typeof e&&(e={message:e}),e=t.extend({},a.defaultAlertOptions,e),a.open(e)},a.confirm=function(e){return"string"==typeof e?t.error("dialog.confirm(options) requires options.callback."):(e=t.extend({},a.defaultConfirmOptions,e),a.open(e))},a.prompt=function(e){var n;return"string"==typeof e?t.error("dialog.prompt(options) requires options.callback."):(n={message:'",input:''},e=t.extend({},n,e),a.open(e))},a.buildDialogForm=function(e){var n,r,s;return n=t('
'),s=t('
'),r=t('
'),n.append(s.append(e.message)).append(r.append(e.input)).append(a.buttonsToDOM(e.buttons)).bind("submit.vex",e.onSubmit),n},a.getFormValueOnSubmit=function(t){return t.vex||""===t.vex?"_vex-empty-value"===t.vex?!0:t.vex:t},a.buttonsToDOM=function(n){var a;return a=t('
'),t.each(n,function(r,s){var i;return i=t('').text(s.text).addClass(s.className+" vex-dialog-button "+(0===r?"vex-first ":"")+(r===n.length-1?"vex-last ":"")).bind("click.vex",function(n){return s.click?s.click(t(this).parents(e.getSelectorFromBaseClass(e.baseClassNames.content)),n):void 0}),i.appendTo(a)}),a},a)},r=[n(1),n(14)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}).call(this)},function(t,e,n){(function(e,a){var r,s,i,o,l,u,c=function(t,e){return function(){return t.apply(e,arguments)}};o=n(17),u=n(768),i=n(769),s=n(771),l=n(202),r=function(){function t(){this.getUsername=c(this.getUsername,this),this.globalRefresh=c(this.globalRefresh,this)}return t.prototype.views={},t.prototype.globalRefreshInterval=void 0,t.prototype.globalRefreshTime=6e4,t.prototype.blurred=!1,t.prototype.initialize=function(){var t,n;return this.setupGlobalErrorHandling(),this.setupUser(),this.$page=e("#page"),this.page=this.$page[0],t=e("body"),this.views.nav=new i,this.views.nav.render(),t.prepend(this.views.nav.$el),this.views.globalSearch=new s,this.views.globalSearch.render(),t.append(this.views.globalSearch.$el),e(".page-loader.fixed").hide(),this.router=new o,n=document.createElement("a"),n.href=config.appRoot||"/",Backbone.history.start({pushState:!0,root:n.pathname}),this.setRefreshInterval(),e(window).on("blur",function(t){return function(){return t.blurred=!0,clearInterval(t.globalRefreshInterval)}}(this)),e(window).on("focus",function(t){return function(){return t.blurred=!1,t.globalRefresh(),t.setRefreshInterval()}}(this))},t.prototype.setRefreshInterval=function(){return clearInterval(this.globalRefreshInterval),setInterval(this.globalRefresh,this.globalRefreshTime)},t.prototype.globalRefresh=function(){return"true"!==localStorage.getItem("suppressRefresh")?this.blurred?void clearInterval(this.globalRefreshInterval):this.currentController.refresh():void 0},t.prototype.caughtError=function(){return this.caughtThisError=!0},t.prototype.setupGlobalErrorHandling=function(){var t;return t=!1,e(window).on("beforeunload",function(){t=!0}),e(document).on("ajaxError",function(e){return function(n,r,s){var i,o,l,u,c;if(e.caughtThisError)return void(e.caughtThisError=!1);if(!s.suppressErrors&&"abort"!==r.statusText&&!(t||e.blurred&&"timeout"===r.statusText)){if(c=s.url.replace(config.appRoot,""),502===r.status)return Messenger().info({message:"Singularity is deploying, your requests cannot be handled. Things should resolve in a few seconds so just hang tight!"});if(401===r.status&&config.redirectOnUnauthorizedUrl)return window.location.href=config.redirectOnUnauthorizedUrl.replace("{URL}",encodeURIComponent(window.location.href));if("timeout"===r.statusText)return Messenger().error({message:"

A "+r.statusText+" error occurred while accessing:

"+c+"
"});if(0===r.status)return Messenger().error({message:"

Could not reach the Singularity API. Please make sure SingularityUI is properly set up.

If running through locally, this might be your browser blocking cross-domain requests.

"});try{u=JSON.parse(r.responseText).message||r.responseText}catch(p){if(200===r.status)throw console.error(r.responseText),Messenger().error({message:"

Expected JSON but received "+(r.responseText.startsWith("")?"html":"something else")+". The response has been saved to your js console.

"}),new Error("Expected JSON in response but received "+(r.responseText.startsWith("")?"html":"something else"));u=r.responseText}throw u=a.escape(u),i="message_"+Date.now(),l="#"+i,Messenger().error({message:'
\n

An uncaught error occurred with your request. The server said:

\n
'+u+"
\n

The error has been saved to your JS console. Copy error message.

\n
"}),console.error(r),o={selector:l,linkText:"Copy error message",copyLink:".copy-link"},utils.makeMeCopy(o),new Error("AJAX Error")}}}(this))},t.prototype.showPageLoader=function(){return this.$page.html("
")},t.prototype.showFixedPageLoader=function(){return this.$page.append("
")},t.prototype.hideFixedPageLoader=function(){return this.$page.find(".page-loader-fixed").remove()},t.prototype.bootstrapController=function(t){return this.currentController=t},t.prototype.showView=function(t){var n;return window.dispatchEvent(new Event("viewChange")),null!=(n=this.views.current)&&n.remove(),e(window).scrollTop(0),this.views.current=t,t.render(),this.page.children.length?(this.page.replaceChild(t.el,this.page.children[0]),l.init()):this.page.appendChild(t.el)},t.prototype.setupUser=function(){return this.user=new u,this.user.fetch()},t.prototype.getUsername=function(){return this.user.get("authenticated")?this.user.get("user").id:""},t}(),t.exports=new r}).call(e,n(1),n(3))},function(t,e,n){var a,r,s,i,o,l,u,c,p,d,h,f,m,y,v,g,_,b,k=function(t,e){function n(){this.constructor=t}for(var a in e)T.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},T={}.hasOwnProperty;a=n(18),m=n(216),p=n(220),c=n(226),i=n(228),u=n(237),d=n(261),g=n(272),y=n(286),l=n(587),f=n(591),o=n(595),r=n(598),s=n(609),v=n(666),b=n(762),_=n(2),h=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return k(e,t),e.prototype.routes={"(/)":"dashboard","status(/)":"status","requests/new(/)":"newRequest","requests/edit/:requestId":"editRequest","requests/:state/:subFilter/:searchFilter(/)":"requestsTable","requests/:state/:subFilter(/)":"requestsTable","requests/:state(/)":"requestsTable","requests(/)":"requestsTable","request/:requestId(/)":"requestDetail","request/:requestId/deploy/:deployId(/)":"deployDetail","request/:requestId/tail/*path":"aggregateTail","request/:requestId/taskSearch":"taskSearch","request/:requestId/deploy(/)":"newDeploy","tasks/:state/:requestsSubFilter/:searchFilter(/)":"tasksTable","tasks/:state/:requestsSubFilter(/)":"tasksTable","tasks/:state(/)":"tasksTable","tasks(/)":"tasksTable","task/:taskId(/)":"taskDetail","task/:taskId/files(/)*path":"taskFileBrowser","task/:taskId/tail/*path":"tail",taskSearch:"taskSearch","racks(/)":"racks","racks/:state(/)":"racks","slaves/:state(/)":"slaves","slaves(/)":"slaves","webhooks(/)":"webhooks","*anything":"notFound"},e.prototype.dashboard=function(){return app.bootstrapController(new a)},e.prototype.status=function(){return app.bootstrapController(new m)},e.prototype.newRequest=function(){return app.bootstrapController(new p)},e.prototype.editRequest=function(t){return null==t&&(t=""),app.bootstrapController(new c({requestId:t}))},e.prototype.requestsTable=function(t,e,n){return null==t&&(t="all"),null==e&&(e="all"),null==n&&(n=""),app.bootstrapController(new d({state:t,subFilter:e,searchFilter:n}))},e.prototype.requestDetail=function(t){return app.bootstrapController(new u({requestId:t}))},e.prototype.taskSearch=function(t){return app.bootstrapController(new v({requestId:t}))},e.prototype.newDeploy=function(t){return app.bootstrapController(new i({requestId:t}))},e.prototype.tasksTable=function(t,e,n){return null==t&&(t="active"),null==e&&(e="all"),null==n&&(n=""),app.bootstrapController(new g({state:t,requestsSubFilter:e,searchFilter:n}))},e.prototype.taskDetail=function(t){return app.bootstrapController(new y({taskId:t,filePath:null}))},e.prototype.taskFileBrowser=function(t,e){return null==e&&(e=""),app.bootstrapController(new y({taskId:t,filePath:e}))},e.prototype.tail=function(t,e){var n,a,r,i,o;return null==e&&(e=""),n=parseInt(window.location.hash.substr(1),10)||null,o=t.split("-"),r=o.slice(0,o.length-5).join("-"),a=_.getQueryParams(),i=a.search||"",e=e.replace(t,"$TASK_ID"),app.bootstrapController(new s({requestId:r,path:e,initialOffset:n,taskIds:[t],search:i,viewMode:"split"}))},e.prototype.racks=function(t){return null==t&&(t="all"),app.bootstrapController(new l({state:t}))},e.prototype.slaves=function(t){return null==t&&(t="all"),app.bootstrapController(new f({state:t}))},e.prototype.notFound=function(){return app.bootstrapController(new o)},e.prototype.deployDetail=function(t,e){return app.bootstrapController(new r({requestId:t,deployId:e}))},e.prototype.aggregateTail=function(t,e){var n,a,r,i,o;return null==e&&(e=""),n=parseInt(window.location.hash.substr(1),10)||null,a=_.getQueryParams(),i=a.taskIds?a.taskIds.split(","):[],o=a.viewMode||"split",r=a.search||"",app.bootstrapController(new s({requestId:t,path:e,initialOffset:n,taskIds:i,viewMode:o,search:r}))},e.prototype.webhooks=function(){return app.bootstrapController(new b)},e}(Backbone.Router),t.exports=h},function(t,e,n){var a,r,s,i,o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty;a=n(19),i=n(20),s=n(200),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.initialize=function(){return app.showPageLoader(),this.title("Dashboard"),this.collections.requests=new i([],{state:"all"}),this.collections.requests.fetch().done(function(t){return function(){return t.setView(new s({collection:t.collections.requests})),app.showView(t.view)}}(this))},e.prototype.refresh=function(){return this.collections.requests.fetch()},e}(a),t.exports=r},function(t,e,n){var a,r;r=n(2),a=function(){function t(t){this.title(""),"function"==typeof this.initialize&&this.initialize(t)}return t.prototype.view=void 0,t.prototype.subviews={},t.prototype.models={},t.prototype.collections={},t.prototype.initialize=function(){},t.prototype.refresh=function(){},t.prototype.setView=function(t){return this.view=t,this.view.on("refreshrequest",function(t){return function(){return t.refresh()}}(this))},t.prototype.title=function(t){return""===t?document.title=config.title:document.title=t+" - "+config.title},t.prototype.ignore404=r.ignore404,t.prototype.ignore400=r.ignore400,t}(),t.exports=a},function(t,e,n){(function(e,a){var r,s,i,o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty,u=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};r=n(21),s=n(24),i=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return o(n,t),n.prototype.model=s,n.prototype.comparator=function(t,e){var n,a,r,s;return(null!=(n=t.get("requestDeployState"))&&null!=(a=n.activeDeploy)?a.timestamp:void 0)-(null!=(r=e.get("requestDeployState"))&&null!=(s=r.activeDeploy)?s.timestamp:void 0)},n.prototype.propertyFilters={active:["request","requestDeployState"]},n.prototype.initialize=function(t,e){var n;return this.state=e.state,this.state=null==this.state||"all"===(n=this.state)||"activeDeploy"===n||"noDeploy"===n?"":this.state,this.state="cleaning"===this.state?"cleanup":this.state},n.prototype.url=function(){var t,n,a;return n="cleanup"===(a=this.state)||"pending"===a?"queued/":"",t=e.param({property:this.propertyFilters[this.state]||[]},!0),config.apiRoot+"/requests/"+n+this.state+"?"+(t||"")},n.prototype.getStarredRequests=function(){var t;return t=localStorage.getItem("starredRequests"),null==t?[]:JSON.parse(t)},n.prototype.isStarred=function(t){var e;return e=this.getStarredRequests(),u.call(e,t)>=0},n.prototype.getStarredOnly=function(){var t;return t=this.getStarredRequests(),a.isEmpty(t)?[]:this.filter(function(e){return function(e){var n;return n=e.get("request").id,u.call(t,n)>=0}}(this))},n.prototype.toggleStar=function(t){var e;return e=this.getStarredRequests(),u.call(e,t)>=0?e=a.without(e,t):e.push(t),localStorage.setItem("starredRequests",JSON.stringify(e))},n.prototype.getUserRequests=function(t){return this.filter(function(e){var n,a,r,s,i,o,l,u,c,p,d;if(d=e.get("request"),r=t.split("@")[0],n=null!=(u=e.get("requestDeployState"))&&null!=(c=u.activeDeploy)?c.user:void 0,n&&(a=n.split("@")[0],r===a))return!0;if(!d.owners)return!1;for(p=d.owners,s=0,i=p.length;i>s;s++)if(o=p[s],l=o.split("@")[0],r===l)return!0;return!1})},n.prototype.getUserRequestTotals=function(t){var e,n,a,r,s,i;for(i=this.getUserRequests(t),s={all:i.length,onDemand:0,worker:0,scheduled:0,runOnce:0,service:0},e=0,n=i.length;n>e;e++)a=i[e],r=a.get("type"),"ON_DEMAND"===r&&(s.onDemand+=1),"SCHEDULED"===r&&(s.scheduled+=1),"WORKER"===r&&(s.worker+=1),"RUN_ONCE"===r&&(s.runOnce+=1),"SERVICE"===r&&(s.service+=1);return s},n}(r),t.exports=i}).call(e,n(1),n(3))},function(t,e,n){var a,r,s=function(t,e){function n(){this.constructor=t}for(var a in e)i.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;r=n(22),a=function(t){function e(){e.__super__.constructor.apply(this,arguments),this.on("sync",function(t){return function(){return t.synced=!0,t.each(function(t){return t.synced=!0})}}(this)),this.on("reset",function(t){return function(){return t.synced=!1}}(this))}return s(e,t),e.prototype.model=r,e.prototype.synced=!1,e}(Backbone.Collection),t.exports=a},function(t,e,n){var a,r,s=function(t,e){function n(){this.constructor=t}for(var a in e)i.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;a=n(23),r=function(t){function e(){e.__super__.constructor.apply(this,arguments),this.on("sync",function(t){return function(){return t.synced=!0}}(this))}return s(e,t),e.prototype.synced=!1,e}(a.Model),t.exports=r},,function(t,e,n){(function(e,a){var r,s,i,o,l,u,c,p,d,h,f,m,y,v,g,_,b,k,T,w,M=function(t,e){return function(){return t.apply(e,arguments)}},x=function(t,e){function n(){this.constructor=t}for(var a in e)S.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},S={}.hasOwnProperty,L=function(t,e){return(+t%(e=+e)+e)%e};s=n(22),i=n(25),r=n(151),m=n(154),_=n(155),g=n(156),k=n(157),v=n(158),y=n(159),p=n(160),h=n(161),b=n(162),d=n(163),l=n(164),u=n(166),c=n(2),w=n(13),f=n(173),T=n(176),o=function(t){function n(){return this.promptCancelDeploy=M(this.promptCancelDeploy,this),this.promptStepDeploy=M(this.promptStepDeploy,this),this.promptExitCooldown=M(this.promptExitCooldown,this),this.promptBounce=M(this.promptBounce,this),this.promptRemove=M(this.promptRemove,this),this.promptRun=M(this.promptRun,this),this.getMostRecentlyRunTask=M(this.getMostRecentlyRunTask,this),this.promptUnpause=M(this.promptUnpause,this),this.promptEnableHealthchecks=M(this.promptEnableHealthchecks,this),this.promptDisableHealthchecks=M(this.promptDisableHealthchecks,this),this.promptDisableHealthchecksDuration=M(this.promptDisableHealthchecksDuration,this),this.promptScale=M(this.promptScale,this),this.checkScaleEvenNumberRacks=M(this.checkScaleEvenNumberRacks,this),this.promptScaleEvenNumberRacks=M(this.promptScaleEvenNumberRacks,this),this.callScale=M(this.callScale,this),this.promptPause=M(this.promptPause,this),this._parseDuration=M(this._parseDuration,this),this._validateDuration=M(this._validateDuration,this),this.cancelDeploy=M(this.cancelDeploy,this),this.stepDeploy=M(this.stepDeploy,this),this.destroy=M(this.destroy,this),this.enableHealthchecks=M(this.enableHealthchecks,this),this.disableHealthchecks=M(this.disableHealthchecks,this),this.exitCooldown=M(this.exitCooldown,this),this.bounce=M(this.bounce,this),this.cancelBounce=M(this.cancelBounce,this),this.makeSkipHealthchecksPermanent=M(this.makeSkipHealthchecksPermanent,this),this.makePausePermanent=M(this.makePausePermanent,this),this.makeScalePermanent=M(this.makeScalePermanent,this),this.scale=M(this.scale,this),this.pause=M(this.pause,this),this.unpause=M(this.unpause,this),this.url=M(this.url,this),n.__super__.constructor.apply(this,arguments)}return x(n,t),n.prototype.raw=!1,n.prototype.ignoreAttributes=["id","paused","deleted","hasActiveDeploy","canBeRunNow","canBeBounced","starred"],n.prototype.localStorageCommandLineInputKeyPrefix="runRequestCommandLineInput::",n.prototype.url=function(){return config.apiRoot+"/requests/request/"+this.get("id")},n.prototype.parse=function(t){var e,n,a,r,s,i,o;return null!=t.deployId?(t.id=t.deployId,t):(t.id=t.request.id,this.raw?t:(t.type=t.request.requestType,t.instances=t.request.instances||1,t.hasMoreThanOneInstance=t.instances>1,t.bounceAfterScale=t.request.bounceAfterScale,t.paused="PAUSED"===t.state,t.deleted="DELETED"===t.state,t.inCooldown="SYSTEM_COOLDOWN"===t.state,t.hasActiveDeploy=null!=t.activeDeploy||null!=(null!=(e=t.requestDeployState)?e.activeDeploy:void 0),t.daemon="WORKER"===(n=t.type)||"SERVICE"===n,t.canBeRunNow="ACTIVE"===t.state&&("SCHEDULED"===(a=t.type)||"ON_DEMAND"===a)&&t.hasActiveDeploy,t.canBeBounced=!("ACTIVE"!==(r=t.state)&&"SYSTEM_COOLDOWN"!==r||"WORKER"!==(s=t.type)&&"SERVICE"!==s),t.canBeScaled=("ACTIVE"===(i=t.state)||"SYSTEM_COOLDOWN"===i)&&t.hasActiveDeploy&&("WORKER"===(o=t.type)||"SERVICE"===o),t))},n.prototype.unpause=function(t){return e.ajax({url:this.url()+"/unpause",contentType:"application/json",type:"POST",data:JSON.stringify({message:t.message})})},n.prototype.hideEvenNumberAcrossRacksHint=function(t){var n;return this.attributes.request.hideEvenNumberAcrossRacksHint=!0,n=e.ajax({type:"POST",url:config.apiRoot+"/requests",contentType:"application/json",data:JSON.stringify(this.attributes.request)}),n.then(t)},n.prototype.pause=function(t,n,a){var r;return r={user:app.getUsername(),killTasks:t},a&&(r.message=a),n=this._parseDuration(n),n&&(r.durationMillis=n),e.ajax({url:this.url()+"/pause",type:"POST",contentType:"application/json",data:JSON.stringify(r)})},n.prototype.run=function(t,n,a){var r;return r={url:this.url()+"/run",type:"POST",contentType:"application/json",data:{}},r.data.commandLineArgs=t,a&&(r.data.runId=a),n&&(r.data.message=n),r.data=JSON.stringify(r.data),e.ajax(r)},n.prototype.scale=function(t){var n,a;return n={instances:t.instances},t.message&&(n.message=t.message),a=this._parseDuration(t.duration),a&&(n.durationMillis=a),e.ajax({url:this.url()+"/scale",type:"PUT",contentType:"application/json",data:JSON.stringify(n)})},n.prototype.makeScalePermanent=function(t){return e.ajax({url:this.url()+"/scale",type:"DELETE"}).then(function(e){return function(){return e.unset("expiringScale"),t()}}(this))},n.prototype.makePausePermanent=function(t){return e.ajax({url:this.url()+"/pause",type:"DELETE"}).then(function(e){return function(){return e.unset("expiringPause"),t()}}(this))},n.prototype.makeSkipHealthchecksPermanent=function(t){return e.ajax({url:this.url()+"/skipHealthchecks",type:"DELETE"}).then(function(e){return function(){return e.unset("expiringSkipHealthchecks"),t()}}(this))},n.prototype.cancelBounce=function(t){return e.ajax({url:this.url()+"/bounce",type:"DELETE"}).then(function(e){return function(){return e.unset("expiringBounce"),t()}}(this))},n.prototype.bounce=function(t){var n,a,r,s,i;return r=t.incremental,a=t.duration,i=t.skipHealthchecks,s=t.message,n={incremental:r,skipHealthchecks:i},s&&(n.message=s),a=this._parseDuration(a),a&&(n.durationMillis=a),e.ajax({type:"POST",url:this.url()+"/bounce",contentType:"application/json",data:JSON.stringify(n)})},n.prototype.exitCooldown=function(){return e.ajax({url:this.url()+"/exit-cooldown",type:"POST",contentType:"application/json",data:"{}"})},n.prototype.disableHealthchecks=function(t,n){var a;return a={skipHealthchecks:!0},t&&(a.message=t),n=this._parseDuration(n),n&&(a.durationMillis=n),e.ajax({type:"PUT",url:this.url()+"/skipHealthchecks",contentType:"application/json",data:JSON.stringify(a)})},n.prototype.enableHealthchecks=function(t,n){var a;return a={skipHealthchecks:!1},t&&(a.message=t),n=this._parseDuration(n),n&&(a.durationMillis=n),e.ajax({type:"PUT",url:this.url()+"/skipHealthchecks",contentType:"application/json",data:JSON.stringify(a)})},n.prototype.destroy=function(t){var n;return n={},t&&(n.message=t),e.ajax({type:"DELETE",url:this.url(),contentType:"application/json",data:JSON.stringify(n)})},n.prototype.stepDeploy=function(t,n){var a;return a={requestId:this.get("id"),deployId:t,targetActiveInstances:n},e.ajax({type:"POST",url:config.apiRoot+"/deploys/update",contentType:"application/json",data:JSON.stringify(a)})},n.prototype.cancelDeploy=function(t){return e.ajax({type:"DELETE",url:config.apiRoot+"/deploys/deploy/"+t+"/request/"+this.get("id")})},n.prototype._validateDuration=function(t,e,n){return this._parseDuration(t)?!0:(w.dialog.open({message:"Invalid duration specified, please try again.",callback:function(t){return t?e(n):void 0}}),!1)},n.prototype._parseDuration=function(t){var e,n;if(!t)return t;try{return 1e3*f.parse(t)}catch(n){return e=n,console.error("Error parsing duration input: "+t),null}},n.prototype.promptPause=function(t){return w.dialog.confirm({message:m({id:this.get("id"),scheduled:this.get("scheduled")}),callback:function(n){return function(a){var r,s,i;if(a)return s=!e(".vex #kill-tasks").is(":checked"),r=e(".vex #pause-expiration").val(),i=e(".vex #pause-message").val(),!r||r&&n._validateDuration(r,n.promptPause,t)?n.pause(s,r,i).done(t):void 0}}(this)})},n.prototype.callScale=function(t,e,n,a,r,s,i){return this.scale(t).done(function(a){return function(){return i?(a.attributes.request.instances=t.instances,a.hideEvenNumberAcrossRacksHint(function(){return e?a.bounce({incremental:n}).done(s):s()})):e?a.bounce({incremental:n}).done(s):s()}}(this))},n.prototype.promptScaleEvenNumberRacks=function(t){return w.dialog.open({message:g({instances:parseInt(t.data.instances),notOneInstance:1!==parseInt(t.data.instances),racks:this.racks.length,notOneRack:1!==this.racks.length,mod:t.mod,modNotOne:1!==t.mod,lower:parseInt(t.data.instances)-t.mod,higher:parseInt(t.data.instances)+this.racks.length-t.mod,config:config}),input:" ",buttons:[e.extend(a.clone(w.dialog.buttons.YES),{text:"Scale"}),w.dialog.buttons.NO],scaleData:t,callback:function(e){return function(n){return n?(t.data.instances=n.instances,e.callScale(t.data,t.bounce,t.incremental,t.message,t.duration,t.callback,n.optOut)):void 0}}(this)})},n.prototype.checkScaleEvenNumberRacks=function(t,e,n,a,r,s){var i;return i=L(t.instances,this.racks.length),i?this.promptScaleEvenNumberRacks({callback:s,data:t,mod:i,bounce:e,incremental:n,message:a,duration:r}):this.callScale(t,e,n,a,r,s,!1)},n.prototype.promptScale=function(t){return w.dialog.open({message:"Enter the desired number of instances to run for request:",input:_({id:this.get("id"),bounceAfterScale:this.get("bounceAfterScale"),placeholder:this.get("instances")}),buttons:[e.extend(a.clone(w.dialog.buttons.YES),{text:"Scale"}),w.dialog.buttons.NO],afterOpen:function(t){return t.find("#bounce").click(function(t){return function(){return e(".vex #bounce").is(":checked")?e(".vex #incremental-bounce-options").show():e(".vex #incremental-bounce-options").hide()}}(this))},callback:function(n){return function(a){var r,s,o,l;if(a)return r=e(".vex #bounce").is(":checked"),o=e(".vex #incremental-bounce").is(":checked"),l=e(".vex #scale-message").val(),s=e(".vex #scale-expiration").val(),!s||s&&n._validateDuration(s,n.promptScale,t)?"SERVICE"===n.attributes.request.requestType&&n.attributes.request.rackSensitive&&!n.attributes.request.hideEvenNumberAcrossRacksHint?n.racks?n.checkScaleEvenNumberRacks(a,r,o,l,s,t):(n.racks=new i([]), n.racks.fetch({success:function(){return n.checkScaleEvenNumberRacks(a,r,o,l,s,t)},error:function(){return app.caughtError(),n.callScale(a,r,o,l,s,t,!1)}})):n.callScale(a,r,o,l,s,t,!1):void 0}}(this)})},n.prototype.promptDisableHealthchecksDuration=function(t,n,r){var s;return s=this._parseDuration(n),36e5>s?w.dialog.confirm({message:"Are you sure you want to disable healthchecks for less than an hour? This may not be enough time for your service to get into a stable state.",buttons:[e.extend(a.clone(w.dialog.buttons.YES),{text:"Disable Healthchecks"}),w.dialog.buttons.NO],callback:function(e){return function(a){return a?e.disableHealthchecks(t,n).done(r):void 0}}(this)}):this.disableHealthchecks(t,n).done(r)},n.prototype.promptDisableHealthchecks=function(t){return w.dialog.open({message:"Turn off healthchecks for this request.",input:'\nIf an expiration duration is specified, this action will be reverted afterwards. Accepts any english time duration. (Days, Hr, Min...)\n',buttons:[e.extend(a.clone(w.dialog.buttons.YES),{text:"Disable Healthchecks"}),w.dialog.buttons.NO],callback:function(n){return function(a){var r,s;if(a)return r=e(".vex #disable-healthchecks-expiration").val(),s=e(".vex #disable-healthchecks-message").val(),r?n._validateDuration(r,n.promptDisableHealthchecks,t)?n.promptDisableHealthchecksDuration(s,r,t):void 0:n.disableHealthchecks(s,r).done(t)}}(this)})},n.prototype.promptEnableHealthchecks=function(t){return w.dialog.open({message:"Turn on healthchecks for this request.",input:'\n\nIf an expiration duration is specified, this action will be reverted afterwards. Accepts any english time duration. (Days, Hr, Min...)',buttons:[e.extend(a.clone(w.dialog.buttons.YES),{text:"Enable Healthchecks"}),w.dialog.buttons.NO],callback:function(n){return function(a){var r,s;if(a)return r=e(".vex #disable-healthchecks-expiration").val(),s=e(".vex #disable-healthchecks-message").val(),!r||r&&n._validateDuration(r,n.promptEnableHealthchecks,t)?n.enableHealthchecks(s,r).done(t):void 0}}(this)})},n.prototype.promptUnpause=function(t){return w.dialog.confirm({message:k({id:this.get("id")}),input:'',callback:function(e){return function(n){return n?e.unpause(n).done(t):void 0}}(this)})},n.prototype.getMostRecentlyRunTask=function(t){var e,n;return this.commands=[],e=new r([],{params:{requestId:this.get("id")}}),n=e.fetch(),n.success(function(n){return function(){var a,r,s;return e.models.length?(s=e.models[0].attributes.taskId.id,a=new l({taskId:s}),r=a.fetch(),r.success(function(){return n.commands=a.attributes.task.taskRequest.pendingTask.cmdLineArgsList,t()}),r.error(function(){return app.caughtError(),t()})):t()}}(this)),n.error(function(e){return function(){return app.caughtError(),t()}}(this))},n.prototype.promptRun=function(t,n){var r;return r=function(r){return function(){var s;return s=n?n.attributes.task.taskRequest.pendingTask.cmdLineArgsList:r.commands,w.dialog.prompt({message:"

"+(n?"Rerun":"Run")+" Task

",input:v({id:r.get("id"),commands:s,defaultFileName:c.fileName(config.runningTaskLogPath)}),buttons:[e.extend(a.clone(w.dialog.buttons.YES),{text:"Run now"}),w.dialog.buttons.NO],beforeClose:function(){var n,a,s,i;if(r.data!==!1)return r.data.filename&&(a=r.data.filename.trim()),s=r.data.message,(a&&0===a.length||!a)&&"autoTail"===r.data.afterStart?(e(window.noFilenameError).removeClass("hide"),!1):(null!=a&&localStorage.setItem("taskRunRedirectFilename",a),localStorage.setItem("taskRunAfterStart",r.data.afterStart),r.data.id=r.get("id"),"browse-to-sandbox"!==(i=r.data.afterStart)&&"autoTail"!==i||(r.data.runId=T.v4()),n=function(){var e;return"autoTail"===r.data.afterStart?(e=new u({runId:r.data.runId,requestId:r.id,autoTailFilename:r.data.filename,taskPollTimestamp:+new Date,pollingType:"autoTail"}),e.startTaskPolling()):"browse-to-sandbox"===r.data.afterStart&&(e=new u({runId:r.data.runId,requestId:r.id,taskPollTimestamp:+new Date,pollingType:"browse-to-sandbox"}),e.startTaskPolling()),t(r.data)},r.run(r.data.commandLineInput,s,r.data.runId).done(n),!0)},afterOpen:function(t){var n;return n=localStorage.getItem("taskRunAfterStart"),e("#filename").val(localStorage.getItem("taskRunRedirectFilename")||c.fileName(config.runningTaskLogPath)),e("#autoTail").prop("checked","autoTail"===n),e("#browse-to-sandbox").prop("checked","browse-to-sandbox"===n||!n),e("#stay-on-page").prop("checked","stay-on-page"===n),e("#add-cmd-line-arg").on("click",{removeCmdLineArg:r.removeCmdLineArg},r.addCmdLineArg),e(".remove-button").click(r.removeCmdLineArg),e("#stay-on-page").on("click",function(){return e("#filename").prop("disabled",!0)}),e("#browse-to-sandbox").on("click",function(){return e("#filename").prop("disabled",!0)}),e("#autoTail").on("click",function(){return e("#filename").prop("disabled",!1)}),"autoTail"===n&&e("#filename").prop("disabled",!1),t.bind("vexOpen",function(){var t;return t=document.getElementsByClassName("vex")[0],t.scrollTop=t.scrollHeight})},callback:function(t){return t.commandLineInput?("string"==typeof t.commandLineInput&&(""!==t.commandLineInput?t.commandLineInput=[t.commandLineInput.trim()]:t.commandLineInput=[]),1===t.commandLineInput.length&&""===t.commandLineInput[0]&&(t.commandLineInput=[])):t.commandLineInput=[],r.data=t}})}}(this),n?r():this.getMostRecentlyRunTask(r)},n.prototype.addCmdLineArg=function(t){var n;return t.preventDefault(),n=e("#cmd-line-inputs"),n.append('
\n
\n \n
'),e(".remove-button").click(t.data.removeCmdLineArg)},n.prototype.removeCmdLineArg=function(t){return t.preventDefault(),e(t.currentTarget).parent().remove()},n.prototype.promptRemove=function(t){return w.dialog.confirm({message:y({id:this.get("id")}),input:'',callback:function(e){return function(n){return n?e.destroy(n.message).done(t):void 0}}(this)})},n.prototype.promptBounce=function(t){return w.dialog.confirm({message:p({id:this.get("id"),config:config}),input:'',callback:function(n){return function(a){return a?(a.incremental=e(".vex #incremental-bounce").is(":checked"),a.skipHealthchecks=e(".vex #skip-healthchecks").is(":checked"),a.duration=e(".vex #bounce-expiration").val(),!a.duration||a.duration&&n._validateDuration(a.duration,n.promptBounce,t)?n.bounce(a).done(t):void 0):void 0}}(this)})},n.prototype.promptExitCooldown=function(t){return w.dialog.confirm({message:h({id:this.get("id")}),callback:function(e){return function(n){return n?e.exitCooldown().done(t):void 0}}(this)})},n.prototype.promptStepDeploy=function(t){var e,n,a;return a=this.get("pendingDeployState"),n=a.deployProgress.targetActiveInstances+a.deployProgress.deployInstanceCountPerStep,e=this.get("instances"),n>e&&(n=e),w.dialog.confirm({message:"

Advance Deploy

",input:b({id:a.deployMarker.deployId,placeholder:n,maxInstances:this.get("instances")}),callback:function(e){return function(n){return n?e.stepDeploy(a.deployMarker.deployId,n.instances).done(t):void 0}}(this)})},n.prototype.promptCancelDeploy=function(t){var e;return e=this.get("pendingDeployState"),w.dialog.confirm({message:d({id:e.deployMarker.deployId}),callback:function(n){return function(a){return a?n.cancelDeploy(e.deployMarker.deployId).done(t):void 0}}(this)})},n}(s),t.exports=o}).call(e,n(1),n(3))},function(t,e,n){(function(e){var a,r,s,i=function(t,e){return function(){return t.apply(e,arguments)}},o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty;a=n(21),r=n(26),s=function(t){function n(){return this.initialize=i(this.initialize,this),this.url=i(this.url,this),n.__super__.constructor.apply(this,arguments)}return o(n,t),n.prototype.model=r,n.prototype.url=function(){return config.apiRoot+"/racks"},n.prototype.initialize=function(t){},n.prototype.parse=function(t){return e.map(t,function(t){return function(t){return t}}(this))},n}(a),t.exports=s}).call(e,n(3))},function(t,e,n){var a,r,s=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=n(27),a=function(t){function e(){return this.url=s(this.url,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.type="rack",e.prototype.url=function(){return config.apiRoot+"/racks/rack/"+this.get("id")},e}(r),t.exports=a},function(t,e,n){(function(e){var a,r,s,i,o=function(t,e){return function(){return t.apply(e,arguments)}},l=function(t,e){function n(){this.constructor=t}for(var a in e)u.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=n(22),s=n(28),i=n(13),r=function(t){function a(){return this.promptReactivate=o(this.promptReactivate,this),this.promptDecommission=o(this.promptDecommission,this),this.promptFreeze=o(this.promptFreeze,this),this.promptRemove=o(this.promptRemove,this),this.host=o(this.host,this),this.reactivate=o(this.reactivate,this),this.decommission=o(this.decommission,this),this.freeze=o(this.freeze,this),this.remove=o(this.remove,this),this.parse=o(this.parse,this),a.__super__.constructor.apply(this,arguments)}return l(a,t),a.prototype.removeTemplates={DEAD:n(127),MISSING_ON_STARTUP:n(127),STARTING_DECOMISSION:n(147),STARTING_DECOMMISSION:n(147),DECOMMISSIONING:n(147),DECOMISSIONING:n(147),DECOMMISSIONED:n(147),DECOMISSIONED:n(147),ACTIVE:n(148)},a.prototype.decommissionTemplate=n(148),a.prototype.freezeTemplate=n(149),a.prototype.reactivateTemplate=n(150),a.prototype.parse=function(t){var e,n,a,r;if(t instanceof Array){for(e={},e.timestamp=0,a=0,r=t.length;r>a;a++)n=t[a],n.timestamp>e.timestamp&&(e=n);t=e}return null!=t.firstSeenAt&&(null!=t.decomissioningAt?t.uptime=t.decomissioningAt-t.firstSeenAt:null!=t.deadAt?t.uptime=t.deadAt-t.firstSeenAt:t.uptime=s()-t.firstSeenAt),null!=t.currentState&&(t.state=t.currentState.state,t.user=t.currentState.user),t},a.prototype.remove=function(t){var n;return n={},t&&(n.message=t),e.ajax({url:this.url(),type:"DELETE",contentType:"application/json",data:JSON.stringify(n)})},a.prototype.freeze=function(t){var n;return n={},t&&(n.message=t),e.ajax({url:this.url()+"/freeze",type:"POST",contentType:"application/json",data:JSON.stringify(n)})},a.prototype.decommission=function(t){var n;return n={},t&&(n.message=t),e.ajax({url:this.url()+"/decommission",type:"POST",contentType:"application/json",data:JSON.stringify(n)})},a.prototype.reactivate=function(t){var n;return n={},t&&(n.message=t),e.ajax({url:this.url()+"/activate",type:"POST",contentType:"application/json",data:JSON.stringify(n)})},a.prototype.host=function(){return this.get("host")},a.prototype.promptRemove=function(t){var n;return n=this.get("state"),i.dialog.confirm({message:this.removeTemplates[n]({id:this.id,host:this.host,type:this.type}),input:'',buttons:[e.extend({},i.dialog.buttons.YES,{text:"Remove",className:"vex-dialog-button-primary vex-dialog-button-primary-remove"}),i.dialog.buttons.NO],callback:function(e){return function(n){return n?e.remove(n.message).done(t):void 0}}(this)})},a.prototype.promptFreeze=function(t){var n;return n=this.get("state"),i.dialog.confirm({message:this.freezeTemplate({id:this.id,host:this.host,type:this.type}),input:'',buttons:[e.extend({},i.dialog.buttons.YES,{text:"Freeze",className:"vex-dialog-button-primary"}),i.dialog.buttons.NO],callback:function(e){return function(n){return n?e.freeze(n.message).done(t):void 0}}(this)})},a.prototype.promptDecommission=function(t){var n;return n=this.get("state"),i.dialog.open({message:this.decommissionTemplate({id:this.id,host:this.host,type:this.type}),input:'',buttons:[e.extend({},i.dialog.buttons.YES,{text:"Decommission",className:"vex-dialog-button-primary"}),i.dialog.buttons.NO],callback:function(e){return function(n){return n?e.decommission(n.message).done(t):void 0}}(this)})},a.prototype.promptReactivate=function(t){var n;return n=this.get("state"),i.dialog.confirm({message:this.reactivateTemplate({id:this.id,host:this.host,type:this.type}),input:'',buttons:[e.extend({},i.dialog.buttons.YES,{text:"Reactivate",className:"vex-dialog-button-primary"}),i.dialog.buttons.NO],callback:function(e){return function(n){return n?e.reactivate(n.message).done(t):void 0}}(this)})},a}(a),t.exports=r}).call(e,n(1))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return" "+t.escapeExpression((s=null!=(s=n.host||(null!=e?e.host:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"host",hash:{},data:r}):s))+"\n"},3:function(t,e,n,a,r){var s;return" "+t.escapeExpression((s=null!=(s=n.id||(null!=e?e.id:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"id",hash:{},data:r}):s))+"\n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i,o=null!=e?e:{};return"

\n Are you sure you want to remove this "+t.escapeExpression((i=null!=(i=n.type||(null!=e?e.type:e))?i:n.helperMissing,"function"==typeof i?i.call(o,{name:"type",hash:{},data:r}):i))+"?\n

\n\n
\n"+(null!=(s=n["if"].call(o,null!=e?e.host:e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(3,r,0),data:r}))?s:"")+"
\n"},useData:!0})},,,,,,,,,,,,,,,,,,,,function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return" "+t.escapeExpression((s=null!=(s=n.host||(null!=e?e.host:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"host",hash:{},data:r}):s))+"\n"},3:function(t,e,n,a,r){var s;return" "+t.escapeExpression((s=null!=(s=n.id||(null!=e?e.id:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"id",hash:{},data:r}):s))+"\n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression;return"

\n Are you sure you want to remove this "+c((i=null!=(i=n.type||(null!=e?e.type:e))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+"?\n

\n\n
\n"+(null!=(s=n["if"].call(o,null!=e?e.host:e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(3,r,0),data:r}))?s:"")+"
\n\n

\n Removing a decommissioned "+c((i=null!=(i=n.type||(null!=e?e.type:e))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+" will cause that slave to become active again if the mesos-slave process is still running.\n

\n"},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return" "+t.escapeExpression((s=null!=(s=n.host||(null!=e?e.host:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"host",hash:{},data:r}):s))+"\n"},3:function(t,e,n,a,r){var s;return" "+t.escapeExpression((s=null!=(s=n.id||(null!=e?e.id:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"id",hash:{},data:r}):s))+"\n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression;return"

\n Are you sure you want to to decommission this "+c((i=null!=(i=n.type||(null!=e?e.type:e))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+"?\n

\n
\n"+(null!=(s=n["if"].call(o,null!=e?e.host:e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(3,r,0),data:r}))?s:"")+"
\n\n

\n Decommissioning a "+c((i=null!=(i=n.type||(null!=e?e.type:e))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+" causes all tasks currently running on it to be rescheduled and executed elsewhere, as new tasks will no longer consider the "+c((i=null!=(i=n.type||(null!=e?e.type:e))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+" with id "+c((i=null!=(i=n.id||(null!=e?e.id:e))?i:l,typeof i===u?i.call(o,{name:"id",hash:{},data:r}):i))+" a valid target for execution. This process may take time as replacement tasks must be considered healthy before old tasks are killed.\n

\n"},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return" "+t.escapeExpression((s=null!=(s=n.host||(null!=e?e.host:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"host",hash:{},data:r}):s))+"\n"},3:function(t,e,n,a,r){var s;return" "+t.escapeExpression((s=null!=(s=n.id||(null!=e?e.id:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"id",hash:{},data:r}):s))+"\n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression;return"

\n Are you sure you want to to freeze this "+c((i=null!=(i=n.type||(null!=e?e.type:e))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+"?\n

\n
\n"+(null!=(s=n["if"].call(o,null!=e?e.host:e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(3,r,0),data:r}))?s:"")+"
\n\n

\n Freezing a "+c((i=null!=(i=n.type||(null!=e?e.type:e))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+" will prevent new tasks from being launched. Previously running tasks will be unaffected.\n

\n"},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return" "+t.escapeExpression((s=null!=(s=n.host||(null!=e?e.host:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"host",hash:{},data:r}):s))+"\n"},3:function(t,e,n,a,r){var s;return" "+t.escapeExpression((s=null!=(s=n.id||(null!=e?e.id:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"id",hash:{},data:r}):s))+"\n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression;return"

\n Are you sure you want to cancel decommission and reactivate this "+c((i=null!=(i=n.type||(null!=e?e.type:e))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+"??\n

\n\n
\n"+(null!=(s=n["if"].call(o,null!=e?e.host:e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(3,r,0),data:r}))?s:"")+"
\n\n

\n Reactivating a "+c((i=null!=(i=n.type||(null!=e?e.type:e))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+" will cancel the decommission without erasing the "+c((i=null!=(i=n.type||(null!=e?e.type:e))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+"'s history and move it back to the active state.\n

\n"},useData:!0})},function(t,e,n){(function(e,a){var r,s,i,o=function(t,e){return function(){return t.apply(e,arguments)}},l=function(t,e){function n(){this.constructor=t}for(var a in e)u.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},u={}.hasOwnProperty;s=n(152),i=n(153),r=function(t){function n(){return this.comparator=o(this.comparator,this),n.__super__.constructor.apply(this,arguments)}return l(n,t),n.prototype.model=i,n.prototype.getQueryParams=function(){return e.param(a.pick(this.params,a.identity))},n.prototype.url=function(){return this.params.requestId?config.apiRoot+"/history/request/"+this.params.requestId+"/tasks?"+this.getQueryParams():config.apiRoot+"/history/tasks?"+this.getQueryParams()},n.prototype.initialize=function(t,e){null==t&&(t=[]),this.params=e.params},n.prototype.comparator=function(t,e){return-(t.get("updatedAt")-e.get("updatedAt"))},n.prototype.parse=function(t){var e,n,a;for(e=0,n=t.length;n>e;e++)a=t[e],a.id=a.taskId.id;return t},n}(s),t.exports=r}).call(e,n(1),n(3))},function(t,e,n){(function(e){var a,r,s=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;a=n(21),r=function(t){function n(){this.fetch=s(this.fetch,this),n.__super__.constructor.apply(this,arguments),this.on("sync",function(t){return function(){return t.synced=!0,t.each(function(t){return t.synced=!0})}}(this)),this.on("reset",function(t){return function(){return t.synced=!1}}(this))}return i(n,t),n.prototype.synced=!1,n.prototype.atATime=5,n.prototype.currentPage=1,n.prototype.fetch=function(t){var a,r;return null==t&&(t={}),a={count:this.atATime,page:this.currentPage},r={reset:!0,data:e.extend(a,t.data)},n.__super__.fetch.call(this,e.extend(t,r))},n}(Backbone.Collection),t.exports=r}).call(e,n(3))},function(t,e,n){var a,r,s=function(t,e){function n(){this.constructor=t}for(var a in e)i.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;a=n(22),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.ignoreAttributes=["id","canBeRunNow"],e.prototype.url=function(){if(this.requestId&&this.runId)return config.apiRoot+"/history/request/"+this.requestId+"/run/"+this.runId;throw new Error("Insufficient data for a meaningful answer.\nCannot fetch individual TaskHistoryItem without "+(this.requestId?void 0:"requestId")+(this.requestId||this.runId?"":" and ")+(this.runId?"":"runId")+".")},e.prototype.initialize=function(t){this.taskId=t.taskId,this.updatedAt=t.updatedAt,this.lastTaskState=t.lastTaskState,this.requestId=t.requestId,this.runId=t.runId},e}(a),t.exports=r},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){return'

\n By default, tasks that are running for a request will be killed on pause.\n

\n \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i,o=null!=e?e:{};return"

Are you sure you want to pause this request?

\n
"+t.escapeExpression((i=null!=(i=n.id||(null!=e?e.id:e))?i:n.helperMissing,"function"==typeof i?i.call(o,{name:"id",hash:{},data:r}):i))+"
\n"+(null!=(s=n["if"].call(o,null!=e?e.scheduled:e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:"")+'
\n \n If an expiration duration is specified, this action will be reverted afterwards. Accepts any english time duration. (Days, Hr, Min...)\n \n
\n'},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){return" checked"},3:function(t,e,n,a,r){return" hidden"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression;return"
"+c((i=null!=(i=n.id||(null!=e?e.id:e))?i:l,typeof i===u?i.call(o,{name:"id",hash:{},data:r}):i))+'
\n\n
\n \n
\n\n
\n \n
\n\nIf an expiration duration is specified, this action will be reverted afterwards. Accepts any english time duration. (Days, Hr, Min...)\n'},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){return" instances\n"},3:function(t,e,n,a,r){return" instance\n"},5:function(t,e,n,a,r){return" racks.\n"},7:function(t,e,n,a,r){return" rack.\n"},9:function(t,e,n,a,r){var s;return" either "+t.escapeExpression((s=null!=(s=n.lower||(null!=e?e.lower:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"lower",hash:{},data:r}):s))+" or\n"},11:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return'
\n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression;return"

\n We cannot distribute "+c((i=null!=(i=n.instances||(null!=e?e.instances:e))?i:l,typeof i===u?i.call(o,{name:"instances",hash:{},data:r}):i))+" \n"+(null!=(s=n["if"].call(o,null!=e?e.notOneInstance:e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(3,r,0),data:r}))?s:"")+" evenly across our "+c((i=null!=(i=n.racks||(null!=e?e.racks:e))?i:l,typeof i===u?i.call(o,{name:"racks",hash:{},data:r}):i))+" \n"+(null!=(s=n["if"].call(o,null!=e?e.notOneRack:e,{name:"if",hash:{},fn:t.program(5,r,0),inverse:t.program(7,r,0),data:r}))?s:"")+" This will result in increased load on "+c((i=null!=(i=n.mod||(null!=e?e.mod:e))?i:l,typeof i===u?i.call(o,{name:"mod",hash:{},data:r}):i))+" \n"+(null!=(s=n["if"].call(o,null!=e?e.modNotOne:e,{name:"if",hash:{},fn:t.program(5,r,0),inverse:t.program(7,r,0),data:r}))?s:"")+"

\n

\n We suggest scaling to \n"+(null!=(s=n["if"].call(o,null!=e?e.lower:e,{name:"if",hash:{},fn:t.program(9,r,0),inverse:t.noop,data:r}))?s:"")+" "+c((i=null!=(i=n.higher||(null!=e?e.higher:e))?i:l,typeof i===u?i.call(o,{name:"higher",hash:{},data:r}):i))+' instances.\n How many instances would you like to scale to?\n

\n
\n'+(null!=(s=n["if"].call(o,null!=e?e.lower:e,{name:"if",hash:{},fn:t.program(11,r,0),inverse:t.noop,data:r}))?s:"")+'
\n
\n
\n
\n
\n \n
\n"},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return"

Are you sure you want to unpause the request?

\n
"+t.escapeExpression((s=null!=(s=n.id||(null!=e?e.id:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"id",hash:{},data:r}):s))+"
\n"},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){return'
\n
\n \n
\n'},3:function(t,e,n,a,r){return'
\n
\n \n
\n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression;return"

Are you sure you want to immediately launch a task for this request?

\n
"+c((i=null!=(i=n.id||(null!=e?e.id:e))?i:l,typeof i===u?i.call(o,{name:"id",hash:{},data:r}):i))+'
\n\n

Additional command line input: (optional)

\n
\n'+(null!=(s=n.each.call(o,null!=e?e.commands:e,{name:"each",hash:{},fn:t.program(1,r,0),inverse:t.program(3,r,0),data:r}))?s:"")+'
\n\n

Message: (optional)

\n
\n \n
\n
\nAfter triggering the run:\n

\n \n \n \n

\n\n
\n \n
\n'},useData:!0 })},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return"

Are you sure you want to remove this request?

\n
"+t.escapeExpression((s=null!=(s=n.id||(null!=e?e.id:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"id",hash:{},data:r}):s))+"
\n

\n If not paused, removing this request will kill all active\n and scheduled tasks and tasks for it will not run again\n unless it is reposted to Singularity.\n

\n"},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i,o=t.escapeExpression;return"

Are you sure you want to bounce this request?

\n
"+o((i=null!=(i=n.id||(null!=e?e.id:e))?i:n.helperMissing,"function"==typeof i?i.call(null!=e?e:{},{name:"id",hash:{},data:r}):i))+'
\n

\n Bouncing a request will cause replacement tasks to be scheduled\n (and under normal conditions) executed immediately.\n

\n\n\n\n
\n \n
\nIf an expiration duration is specified, this bounce will be aborted if not finished. Accepts any english time duration. (Days, Hr, Min...)\n'},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return"

Are you sure you want to remove this request from cooldown?

\n
"+t.escapeExpression((s=null!=(s=n.id||(null!=e?e.id:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"id",hash:{},data:r}):s))+"
\n"},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return"
"+u((s=null!=(s=n.id||(null!=e?e.id:e))?s:o,typeof s===l?s.call(i,{name:"id",hash:{},data:r}):s))+'
\n

Update the pending deploy to include this many instances (Can be higher or lower than the current target number of instances)

\n
\n \n
'},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return"

Are you sure you want to cancel this deploy?

\n
"+t.escapeExpression((s=null!=(s=n.id||(null!=e?e.id:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"id",hash:{},data:r}):s))+"
"},useData:!0})},function(t,e,n){(function(e){var a,r,s,i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty,l=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};a=n(22),r=n(165),s=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return i(n,t),n.prototype.url=function(){return config.apiRoot+"/history/task/"+this.taskId},n.prototype.initialize=function(t){this.taskId=t.taskId},n.prototype.parse=function(t){var n,a,s,i,o,u,c,p,d,h,f,m,y,v,g,_,b,k,T,w,M,x,S,L,D,E,I,Y,O,R,q,P,C;if(t.taskUpdates=e.sortBy(t.taskUpdates,function(t){return t.timestamp}),t.lastKnownState=e.last(t.taskUpdates).taskState,t.healthcheckResults=e.sortBy(t.healthcheckResults,function(t){return t.timestamp}).reverse(),null!=(g=t.task)&&null!=(_=g.mesosTask)&&null!=(L=_.executor)&&null!=(D=L.command)&&null!=(E=D.environment)&&(E.variables=e.sortBy(t.task.mesosTask.executor.command.environment.variables,"name")),y=[],(null!=(I=t.task)&&null!=(Y=I.taskRequest)&&null!=(O=Y.deploy)&&null!=(R=O.resources)?R.numPorts:void 0)>0)for(q=t.task.mesosTask.resources,a=0,c=q.length;c>a;a++)if(P=q[a],"ports"===P.name)for(b=P.ranges.range,i=0,p=b.length;p>i;i++)for(v=b[i],m=o=k=v.begin,T=v.end+1;T>=k?T>o:o>T;m=T>=k?++o:--o)y.push(m);for(t.ports=y,s=!0,w=t.taskUpdates,u=0,d=w.length;d>u;u++)if(C=w[u],M=C.taskState,l.call(utils.TERMINAL_TASK_STATES,M)>=0){s=!1;break}if(t.isStillRunning=s,null!=t.task.offer&&(t.slaveId=t.task.offer.slaveId.value,t.slave=new r({id:t.slaveId}),t.slave.fetch({async:!1,error:function(t){return function(){return app.caughtError()}}(this)}),x=t.slave.attributes.state,l.call(utils.DECOMMISION_STATES,x)>=0?t.decommissioning=!0:t.slave.attributes.state===!1&&(t.slaveMissing=!0)),t.isCleaning="TASK_CLEANING"===t.lastKnownState,t.requestId=t.task.taskId.requestId,t.shellCommandHistory)for(t.shellCommandHistory.sort(function(t){return function(t,e){return e.shellRequest.timestamp-t.shellRequest.timestamp}}(this)),S=t.shellCommandHistory,f=0,h=S.length;h>f;f++)n=S[f],n.shellUpdates=n.shellUpdates.sort(function(t){return function(t,e){return e.timestamp-t.timestamp}}(this));return t},n.prototype.parseResources=function(t){var n,a,r,s,i,o;return{cpus:null!=(n=null!=(a=e.find(t.mesosTask.resources,function(t){return"cpus"===t.name}))&&null!=(r=a.scalar)?r.value:void 0)?n:"",memoryMb:null!=(s=null!=(i=e.find(t.mesosTask.resources,function(t){return"mem"===t.name}))&&null!=(o=i.scalar)?o.value:void 0)?s:""}},n}(a),t.exports=s}).call(e,n(3))},function(t,e,n){var a,r,s=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;a=n(27),r=function(t){function e(){return this.url=s(this.url,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.type="slave",e.prototype.url=function(){return config.apiRoot+"/slaves/slave/"+this.get("id")},e}(a),t.exports=r},function(t,e,n){(function(e,a){var r,s,i,o,l,u,c,p,d,h,f,m,y,v,g,_,b=function(t,e){return function(){return t.apply(e,arguments)}},k=function(t,e){function n(){this.constructor=t}for(var a in e)T.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},T={}.hasOwnProperty,w=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};r=n(151),c=n(153),p=n(167),l=n(168),u=n(169),y=n(171),v=n(172),h=n(2),_=n(13),m=n(28),f=function(t,e){return setInterval(e,t)},g=function(t,e){return setTimeout(e,t)},o=1,i=m.duration(o,"minutes").asMilliseconds(),s=["autoTail","browse-to-sandbox"],d=function(t){function n(){return this.checkIfTaskFilesExist=b(this.checkIfTaskFilesExist,this),this.browseToSandbox=b(this.browseToSandbox,this),this.fetchTask=b(this.fetchTask,this),this.fetchTasks=b(this.fetchTasks,this),this.taskFound=b(this.taskFound,this),this.lastFileCheck=b(this.lastFileCheck,this),n.__super__.constructor.apply(this,arguments)}return k(n,t),n.prototype.initialize=function(t){var e;if(this.requestId=t.requestId,this.autoTailFilename=t.autoTailFilename,this.taskPollTimestamp=t.taskPollTimestamp,this.pollingType=t.pollingType,this.runId=t.runId,e=this.pollingType,w.call(s,e)<0)throw new Error(this.pollingType+" is not a valid polling type for the task poller. Valid polling types are: "+s);return this.possiblyRunningTask=new p({requestId:this.requestId,runId:this.runId}),this.possiblyCompleteTask=new c({requestId:this.requestId,runId:this.runId}),this.fetchTasks()},n.prototype.startTaskPolling=function(){return this.showTaskPollWaitingDialog(),this.stopTaskPolling(),this.taskPollInterval=f(2e3,function(t){return function(){return"autoTail"===t.pollingType&&t.autoTailTaskFiles&&t.autoTailTaskFiles.fetch().error(function(){return app.caughtError()}).success(function(){return t.checkIfTaskFilesExist()}),t.fetchTasks()}}(this)),this.taskTimeout=g(i,function(t){return function(){return t.stopTaskPolling(),_.close(),_.dialog.alert({message:v({autoTailFilename:"autoTail"===t.pollingType?t.autoTailFilename:"",timeout:o,problem:"TIMEOUT"}),buttons:[e.extend(a.clone(_.dialog.buttons.YES),{text:"OK"})]})}}(this))},n.prototype.lastFileCheck=function(){return _.close(),this.checkIfTaskFilesExist()?void 0:(this.stopTaskPolling(),_.dialog.alert({message:v({autoTailFilename:this.autoTailFilename,problem:"FILE_WONT_EXIST",taskLink:config.appRoot+"/task/"+this.taskPollTaskId}),buttons:[e.extend(a.clone(_.dialog.buttons.YES),{text:"OK"})]}))},n.prototype.taskFound=function(t){var n;return n=this.taskPollTimestamp,this.taskPollTaskId=t.id?t.id:t.get("taskId").id,"browse-to-sandbox"===this.pollingType?this.browseToSandbox():"autoTail"===this.pollingType&&(this.notFirstFound||(this.notFirstFound=!0,e(".task-poller-checklist").addClass("waiting-for-file"),this.autoTailTaskFiles=new u([],{taskId:this.taskPollTaskId})),t===this.possiblyCompleteTask)?this.lastFileCheck():void 0},n.prototype.fetchTasks=function(){return this.taskPollTaskId||this.fetchTask(this.possiblyRunningTask),this.fetchTask(this.possiblyCompleteTask)},n.prototype.fetchTask=function(t){var e;return e=t.fetch(),e.error(function(t){return h.ignore404(t),404===t.status?console.log("This 'not found' error was expected and may safely be ignored."):void 0}),e.success(function(e){return function(){return e.taskFound(t)}}(this))},n.prototype.browseToSandbox=function(){return this.stopTaskPolling(),app.router.navigate("#task/"+this.taskPollTaskId,{trigger:!0}),_.close()},n.prototype.checkIfTaskFilesExist=function(){return"autoTail"===this.pollingType&&this.autoTailTaskFiles&&this.autoTailTaskFiles.findWhere({name:this.autoTailFilename})?(this.stopTaskPolling(),app.router.navigate("#task/"+this.taskPollTaskId+"/tail/"+this.taskPollTaskId+"/"+this.autoTailFilename,{trigger:!0}),_.close()):void 0},n.prototype.stopTaskPolling=function(){return this.taskPollInterval&&clearInterval(this.taskPollInterval),this.taskTimeout?clearTimeout(this.taskTimeout):void 0},n.prototype.showTaskPollWaitingDialog=function(){return _.dialog.alert({overlayClosesOnClick:!1,message:y({autoTailFilename:this.autoTailFilename}),buttons:[e.extend(a.clone(_.dialog.buttons.NO),{text:"Close"})],afterOpen:function(t){return function(){return"autoTail"!==t.pollingType?e(".wait-for-file-exists").addClass("hide"):void 0}}(this),callback:function(t){return function(e){return t.stopTaskPolling()}}(this)})},n}(Backbone.View),t.exports=d}).call(e,n(1),n(3))},function(t,e,n){var a,r,s=function(t,e){function n(){this.constructor=t}for(var a in e)i.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;a=n(22),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.url=function(){return config.apiRoot+"/requests/request/"+this.requestId+"/run/"+this.runId},e.prototype.initialize=function(t){this.requestId=t.requestId,this.runId=t.runId},e}(a),t.exports=r},function(t,e,n){(function(e,a){var r,s,i,o=function(t,e){return function(){return t.apply(e,arguments)}},l=function(t,e){function n(){this.constructor=t}for(var a in e)u.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},u={}.hasOwnProperty;r=n(22),i=function(t,e){var n,a;return a=e.length-t.length,n=e.indexOf(t,a),-1!==n&&n===a},s=function(t){function r(){return this.promptRun=o(this.promptRun,this),this.runShellCommand=o(this.runShellCommand,this),this.kill=o(this.kill,this),this.url=o(this.url,this),r.__super__.constructor.apply(this,arguments)}return l(r,t),r.prototype.url=function(){return config.apiRoot+"/tasks/task/"+this.get("id")},r.prototype.initialize=function(){},r.prototype.ignoreAttributes=["id","host","cpus","memoryMb"],r.prototype.parse=function(t){var n,a,r,s,o,l,u,c,p;return(null!=(n=t.offer)?n.hostname:void 0)&&(t.host=null!=(a=t.offer)?a.hostname:void 0),window.config.commonHostnameSuffixToOmit.length>0&&i(window.config.commonHostnameSuffixToOmit,t.host)&&(t.host=t.host.substring(0,t.host.length-window.config.commonHostnameSuffixToOmit.length)),t.rackId||(t.rackId=null!=(r=t.taskId)?r.sanitizedRackId:void 0),null!=t.mesosTask&&(t.cpus=null!=(s=null!=(o=e.find(t.mesosTask.resources,function(t){return"cpus"===t.name}))&&null!=(l=o.scalar)?l.value:void 0)?s:"",t.memoryMb=null!=(u=null!=(c=e.find(t.mesosTask.resources,function(t){return"mem"===t.name}))&&null!=(p=c.scalar)?p.value:void 0)?u:""),null!=t.taskId?t.id=t.taskId.id:null!=t.pendingTask&&(t.id=t.pendingTask.pendingTaskId.requestId+"-"+t.pendingTask.pendingTaskId.nextRunAt+"-"+t.pendingTask.pendingTaskId.instanceNo),t},r.prototype.kill=function(t,e,n){var r;return null==e&&(e=!1),null==n&&(n=!1),r={override:e,waitForReplacementTask:n},t&&(r.message=t),a.ajax({url:this.url(),type:"DELETE",contentType:"application/json",data:JSON.stringify(r)})},r.prototype.runShellCommand=function(t,e){var n,r;return null==e&&(e=[]),r={user:app.getUsername()},n={name:t,options:e},a.ajax({url:this.url()+"/command?"+a.param(r),type:"POST",contentType:"application/json",data:JSON.stringify(n)})},r.prototype.promptRun=function(t){var e,a,r,s;return r=this.get("request"),a=r?r.id:this.get("pendingTask").pendingTaskId.requestId,e=n(24),s=new e({id:a}),s.promptRun(function(e){return function(){return t()}}(this))},r}(r),t.exports=s}).call(e,n(3),n(1))},function(t,e,n){(function(e,a){var r,s,i,o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty;r=n(21),s=n(170),i=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return o(n,t),n.prototype.url=function(){return config.apiRoot+"/sandbox/"+this.taskId+"/browse"},n.prototype.model=s,n.prototype.initialize=function(t,e){this.taskId=e.taskId,this.path=e.path},n.prototype.fetch=function(t){var a;return a=null!==this.path?{path:this.path}:{},n.__super__.fetch.call(this,e.extend(t||{},{data:a}))},n.prototype.parse=function(t){var n,a,r,s,i,o,l,u;for(l=t.files,this.currentDirectory=t.currentDirectory,s=0,o=l.length;o>s;s++)u=l[s],u.isDirectory="d"===u.mode[0],t.currentDirectory?u.uiPath=t.currentDirectory+"/"+u.name:u.uiPath=u.name,u.isDirectory||(u.uiPath=u.uiPath.replace(this.taskId,"$TASK_ID")),u.fullPath=t.fullPathToRoot+"/"+u.uiPath.replace("$TASK_ID",this.taskId),u.mtime=1e3*u.mtime,r="http",a=config.slaveHttpPort,config.slaveHttpsPort&&(r="https",a=config.slaveHttpsPort),u.downloadLink=r+"://"+t.slaveHostname+":"+a+"/files/download.json?path="+u.fullPath,u.taskId=this.taskId,u.isDirectory||(n=e.clone(u.name).replace(/^.*?\.(.*?)$/g,"$1"),i=-1!==n.indexOf("zip")||-1!==n.indexOf("gz"),u.isTailable=!i);return l},n.prototype.sortBy=function(t,n){var a;return a="name"===t?e.sortBy(this.models,function(t){return function(t){return t.attributes.isDirectory?"a"+t.attributes.name:"b"+t.attributes.name}}(this)):"size"===t?e.sortBy(this.models,function(t){return function(t){return t.attributes.isDirectory?-1:t.attributes.size}}(this)):e.sortBy(this.models,function(e){return function(e){return e.attributes[t]}}(this)),n||a.reverse(),this.models=a},n.prototype.comparator=function(t,e){return this.nameComparator(t,e)},n.prototype.nameComparator=function(t,e){return t.get("isDirectory")&&!e.get("isDirectory")?-1:!t.get("isDirectory")&&e.get("isDirectory")?1:t.get("name")>e.get("name")?1:t.get("name")= 4.0.0"],main:function(t,e,n,a,r){var s;return'

Launching

\n
    \n
  1. Waiting for task to launch
  2. \n
  3. Waiting for '+t.escapeExpression((s=null!=(s=n.autoTailFilename||(null!=e?e.autoTailFilename:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"autoTailFilename",hash:{},data:r}):s))+" to exist
  4. \n
\n
\n"},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s,i,o=null!=e?e:{};return" "+(null!=(s=n["if"].call(o,null!=e?e.autoTailFilename:e,{name:"if",hash:{},fn:t.program(2,r,0),inverse:t.program(4,r,0),data:r}))?s:"")+" did not exist after "+t.escapeExpression((i=null!=(i=n.timeout||(null!=e?e.timeout:e))?i:n.helperMissing,"function"==typeof i?i.call(o,{name:"timeout",hash:{},data:r}):i))+" minute(s).\n"},2:function(t,e,n,a,r){var s;return""+t.escapeExpression((s=null!=(s=n.autoTailFilename||(null!=e?e.autoTailFilename:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"autoTailFilename",hash:{},data:r}):s))+""},4:function(t,e,n,a,r){return"Task"},6:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return" The task has entered a terminal state and "+u((s=null!=(s=n.autoTailFilename||(null!=e?e.autoTailFilename:e))?s:o,typeof s===l?s.call(i,{name:"autoTailFilename",hash:{},data:r}):s))+" does not exist, and therefore never will. See the task page for more details.\n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing;return"

Failure

\n"+(null!=(s=(n.ifEqual||e&&e.ifEqual||o).call(i,null!=e?e.problem:e,"TIMEOUT",{name:"ifEqual",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=(n.ifEqual||e&&e.ifEqual||o).call(i,null!=e?e.problem:e,"FILE_WONT_EXIST",{name:"ifEqual",hash:{},fn:t.program(6,r,0),inverse:t.noop,data:r}))?s:"")},useData:!0})},,,,function(t,e,n){var a;(function(r){!function(s){"use strict";function i(){var t=s.crypto||s.msCrypto;if(!d&&t&&t.getRandomValues)try{var e=new Uint8Array(16);m=d=function(){return t.getRandomValues(e),e},d()}catch(n){}if(!d){var a=new Array(16);h=d=function(){for(var t,e=0;16>e;e++)0===(3&e)&&(t=4294967296*Math.random()),a[e]=t>>>((3&e)<<3)&255;return a},"undefined"!=typeof console&&console.warn&&console.warn("[SECURITY] node-uuid: crypto not usable, falling back to insecure Math.random()")}}function o(){try{var t=n(181).randomBytes;f=d=t&&function(){return t(16)},d()}catch(e){}}function l(t,e,n){var a=e&&n||0,r=0;for(e=e||[],t.toLowerCase().replace(/[0-9a-f]{2}/g,function(t){16>r&&(e[a+r++]=g[t])});16>r;)e[a+r++]=0;return e}function u(t,e){var n=e||0,a=v;return a[t[n++]]+a[t[n++]]+a[t[n++]]+a[t[n++]]+"-"+a[t[n++]]+a[t[n++]]+"-"+a[t[n++]]+a[t[n++]]+"-"+a[t[n++]]+a[t[n++]]+"-"+a[t[n++]]+a[t[n++]]+a[t[n++]]+a[t[n++]]+a[t[n++]]+a[t[n++]]}function c(t,e,n){var a=e&&n||0,r=e||[];t=t||{};var s=null!=t.clockseq?t.clockseq:T,i=null!=t.msecs?t.msecs:(new Date).getTime(),o=null!=t.nsecs?t.nsecs:M+1,l=i-w+(o-M)/1e4;if(0>l&&null==t.clockseq&&(s=s+1&16383),(0>l||i>w)&&null==t.nsecs&&(o=0),o>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");w=i,M=o,T=s,i+=122192928e5;var c=(1e4*(268435455&i)+o)%4294967296;r[a++]=c>>>24&255,r[a++]=c>>>16&255,r[a++]=c>>>8&255,r[a++]=255&c;var p=i/4294967296*1e4&268435455;r[a++]=p>>>8&255,r[a++]=255&p,r[a++]=p>>>24&15|16,r[a++]=p>>>16&255,r[a++]=s>>>8|128,r[a++]=255&s;for(var d=t.node||k,h=0;6>h;h++)r[a+h]=d[h];return e?e:u(r)}function p(t,e,n){var a=e&&n||0;"string"==typeof t&&(e="binary"===t?new y(16):null,t=null),t=t||{};var r=t.random||(t.rng||d)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e)for(var s=0;16>s;s++)e[a+s]=r[s];return e||u(r)}var d,h,f,m;s?i():o();for(var y="function"==typeof r?r:Array,v=[],g={},_=0;256>_;_++)v[_]=(_+256).toString(16).substr(1),g[v[_]]=_;var b=d(),k=[1|b[0],b[1],b[2],b[3],b[4],b[5]],T=16383&(b[6]<<8|b[7]),w=0,M=0,x=p;x.v1=c,x.v4=p,x.parse=l,x.unparse=u,x.BufferClass=y,x._rng=d,x._mathRNG=h,x._nodeRNG=f,x._whatwgRNG=m,"undefined"!=typeof t&&t.exports?t.exports=x:(a=function(){return x}.call(e,n,e,t),!(void 0!==a&&(t.exports=a)))}("undefined"!=typeof window?window:null)}).call(e,n(177).Buffer)},function(t,e,n){(function(t,a){/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ "use strict";function r(){function t(){}try{var e=new Uint8Array(1);return e.foo=function(){return 42},e.constructor=t,42===e.foo()&&e.constructor===t&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(n){return!1}}function s(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function t(e){return this instanceof t?(t.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof e?i(this,e):"string"==typeof e?o(this,e,arguments.length>1?arguments[1]:"utf8"):l(this,e)):arguments.length>1?new t(e,arguments[1]):new t(e)}function i(e,n){if(e=m(e,0>n?0:0|y(n)),!t.TYPED_ARRAY_SUPPORT)for(var a=0;n>a;a++)e[a]=0;return e}function o(t,e,n){"string"==typeof n&&""!==n||(n="utf8");var a=0|g(e,n);return t=m(t,a),t.write(e,n),t}function l(e,n){if(t.isBuffer(n))return u(e,n);if(V(n))return c(e,n);if(null==n)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(n.buffer instanceof ArrayBuffer)return p(e,n);if(n instanceof ArrayBuffer)return d(e,n)}return n.length?h(e,n):f(e,n)}function u(t,e){var n=0|y(e.length);return t=m(t,n),e.copy(t,0,0,n),t}function c(t,e){var n=0|y(e.length);t=m(t,n);for(var a=0;n>a;a+=1)t[a]=255&e[a];return t}function p(t,e){var n=0|y(e.length);t=m(t,n);for(var a=0;n>a;a+=1)t[a]=255&e[a];return t}function d(e,n){return t.TYPED_ARRAY_SUPPORT?(n.byteLength,e=t._augment(new Uint8Array(n))):e=p(e,new Uint8Array(n)),e}function h(t,e){var n=0|y(e.length);t=m(t,n);for(var a=0;n>a;a+=1)t[a]=255&e[a];return t}function f(t,e){var n,a=0;"Buffer"===e.type&&V(e.data)&&(n=e.data,a=0|y(n.length)),t=m(t,a);for(var r=0;a>r;r+=1)t[r]=255&n[r];return t}function m(e,n){t.TYPED_ARRAY_SUPPORT?(e=t._augment(new Uint8Array(n)),e.__proto__=t.prototype):(e.length=n,e._isBuffer=!0);var a=0!==n&&n<=t.poolSize>>>1;return a&&(e.parent=Q),e}function y(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function v(e,n){if(!(this instanceof v))return new v(e,n);var a=new t(e,n);return delete a.parent,a}function g(t,e){"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var a=!1;;)switch(e){case"ascii":case"binary":case"raw":case"raws":return n;case"utf8":case"utf-8":return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(t).length;default:if(a)return B(t).length;e=(""+e).toLowerCase(),a=!0}}function _(t,e,n){var a=!1;if(e=0|e,n=void 0===n||n===1/0?this.length:0|n,t||(t="utf8"),0>e&&(e=0),n>this.length&&(n=this.length),e>=n)return"";for(;;)switch(t){case"hex":return Y(this,e,n);case"utf8":case"utf-8":return L(this,e,n);case"ascii":return E(this,e,n);case"binary":return I(this,e,n);case"base64":return S(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,n);default:if(a)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),a=!0}}function b(t,e,n,a){n=Number(n)||0;var r=t.length-n;a?(a=Number(a),a>r&&(a=r)):a=r;var s=e.length;if(s%2!==0)throw new Error("Invalid hex string");a>s/2&&(a=s/2);for(var i=0;a>i;i++){var o=parseInt(e.substr(2*i,2),16);if(isNaN(o))throw new Error("Invalid hex string");t[n+i]=o}return i}function k(t,e,n,a){return $(B(e,t.length-n),t,n,a)}function T(t,e,n,a){return $(U(e),t,n,a)}function w(t,e,n,a){return T(t,e,n,a)}function M(t,e,n,a){return $(G(e),t,n,a)}function x(t,e,n,a){return $(W(e,t.length-n),t,n,a)}function S(t,e,n){return 0===e&&n===t.length?J.fromByteArray(t):J.fromByteArray(t.slice(e,n))}function L(t,e,n){n=Math.min(t.length,n);for(var a=[],r=e;n>r;){var s=t[r],i=null,o=s>239?4:s>223?3:s>191?2:1;if(n>=r+o){var l,u,c,p;switch(o){case 1:128>s&&(i=s);break;case 2:l=t[r+1],128===(192&l)&&(p=(31&s)<<6|63&l,p>127&&(i=p));break;case 3:l=t[r+1],u=t[r+2],128===(192&l)&&128===(192&u)&&(p=(15&s)<<12|(63&l)<<6|63&u,p>2047&&(55296>p||p>57343)&&(i=p));break;case 4:l=t[r+1],u=t[r+2],c=t[r+3],128===(192&l)&&128===(192&u)&&128===(192&c)&&(p=(15&s)<<18|(63&l)<<12|(63&u)<<6|63&c,p>65535&&1114112>p&&(i=p))}}null===i?(i=65533,o=1):i>65535&&(i-=65536,a.push(i>>>10&1023|55296),i=56320|1023&i),a.push(i),r+=o}return D(a)}function D(t){var e=t.length;if(Z>=e)return String.fromCharCode.apply(String,t);for(var n="",a=0;e>a;)n+=String.fromCharCode.apply(String,t.slice(a,a+=Z));return n}function E(t,e,n){var a="";n=Math.min(t.length,n);for(var r=e;n>r;r++)a+=String.fromCharCode(127&t[r]);return a}function I(t,e,n){var a="";n=Math.min(t.length,n);for(var r=e;n>r;r++)a+=String.fromCharCode(t[r]);return a}function Y(t,e,n){var a=t.length;(!e||0>e)&&(e=0),(!n||0>n||n>a)&&(n=a);for(var r="",s=e;n>s;s++)r+=H(t[s]);return r}function O(t,e,n){for(var a=t.slice(e,n),r="",s=0;st)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function q(e,n,a,r,s,i){if(!t.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(n>s||i>n)throw new RangeError("value is out of bounds");if(a+r>e.length)throw new RangeError("index out of range")}function P(t,e,n,a){0>e&&(e=65535+e+1);for(var r=0,s=Math.min(t.length-n,2);s>r;r++)t[n+r]=(e&255<<8*(a?r:1-r))>>>8*(a?r:1-r)}function C(t,e,n,a){0>e&&(e=4294967295+e+1);for(var r=0,s=Math.min(t.length-n,4);s>r;r++)t[n+r]=e>>>8*(a?r:3-r)&255}function N(t,e,n,a,r,s){if(e>r||s>e)throw new RangeError("value is out of bounds");if(n+a>t.length)throw new RangeError("index out of range");if(0>n)throw new RangeError("index out of range")}function A(t,e,n,a,r){return r||N(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(t,e,n,a,23,4),n+4}function F(t,e,n,a,r){return r||N(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(t,e,n,a,52,8),n+8}function j(t){if(t=z(t).replace(tt,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function H(t){return 16>t?"0"+t.toString(16):t.toString(16)}function B(t,e){e=e||1/0;for(var n,a=t.length,r=null,s=[],i=0;a>i;i++){if(n=t.charCodeAt(i),n>55295&&57344>n){if(!r){if(n>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(i+1===a){(e-=3)>-1&&s.push(239,191,189);continue}r=n;continue}if(56320>n){(e-=3)>-1&&s.push(239,191,189),r=n;continue}n=(r-55296<<10|n-56320)+65536}else r&&(e-=3)>-1&&s.push(239,191,189);if(r=null,128>n){if((e-=1)<0)break;s.push(n)}else if(2048>n){if((e-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(65536>n){if((e-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(1114112>n))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function U(t){for(var e=[],n=0;n>8,r=n%256,s.push(r),s.push(a);return s}function G(t){return J.toByteArray(j(t))}function $(t,e,n,a){for(var r=0;a>r&&!(r+n>=e.length||r>=t.length);r++)e[r+n]=t[r];return r}var J=n(178),K=n(179),V=n(180);e.Buffer=t,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50,t.poolSize=8192;var Q={};t.TYPED_ARRAY_SUPPORT=void 0!==a.TYPED_ARRAY_SUPPORT?a.TYPED_ARRAY_SUPPORT:r(),t.TYPED_ARRAY_SUPPORT?(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array):(t.prototype.length=void 0,t.prototype.parent=void 0),t.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.compare=function(e,n){if(!t.isBuffer(e)||!t.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var a=e.length,r=n.length,s=0,i=Math.min(a,r);i>s&&e[s]===n[s];)++s;return s!==i&&(a=e[s],r=n[s]),r>a?-1:a>r?1:0},t.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(e,n){if(!V(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new t(0);var a;if(void 0===n)for(n=0,a=0;a0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},t.prototype.compare=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:t.compare(this,e)},t.prototype.indexOf=function(e,n){function a(t,e,n){for(var a=-1,r=0;n+r2147483647?n=2147483647:-2147483648>n&&(n=-2147483648),n>>=0,0===this.length)return-1;if(n>=this.length)return-1;if(0>n&&(n=Math.max(this.length+n,0)),"string"==typeof e)return 0===e.length?-1:String.prototype.indexOf.call(this,e,n);if(t.isBuffer(e))return a(this,e,n);if("number"==typeof e)return t.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,n):a(this,[e],n);throw new TypeError("val must be string, number or Buffer")},t.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},t.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},t.prototype.write=function(t,e,n,a){if(void 0===e)a="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)a=e,n=this.length,e=0;else if(isFinite(e))e=0|e,isFinite(n)?(n=0|n,void 0===a&&(a="utf8")):(a=n,n=void 0);else{var r=a;a=e,e=0|n,n=r}var s=this.length-e;if((void 0===n||n>s)&&(n=s),t.length>0&&(0>n||0>e)||e>this.length)throw new RangeError("attempt to write outside buffer bounds");a||(a="utf8");for(var i=!1;;)switch(a){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return k(this,t,e,n);case"ascii":return T(this,t,e,n);case"binary":return w(this,t,e,n);case"base64":return M(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),i=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;t.prototype.slice=function(e,n){var a=this.length;e=~~e,n=void 0===n?a:~~n,0>e?(e+=a,0>e&&(e=0)):e>a&&(e=a),0>n?(n+=a,0>n&&(n=0)):n>a&&(n=a),e>n&&(n=e);var r;if(t.TYPED_ARRAY_SUPPORT)r=t._augment(this.subarray(e,n));else{var s=n-e;r=new t(s,void 0);for(var i=0;s>i;i++)r[i]=this[i+e]}return r.length&&(r.parent=this.parent||this),r},t.prototype.readUIntLE=function(t,e,n){t=0|t,e=0|e,n||R(t,e,this.length);for(var a=this[t],r=1,s=0;++s0&&(r*=256);)a+=this[t+--e]*r;return a},t.prototype.readUInt8=function(t,e){return e||R(t,1,this.length),this[t]},t.prototype.readUInt16LE=function(t,e){return e||R(t,2,this.length),this[t]|this[t+1]<<8},t.prototype.readUInt16BE=function(t,e){return e||R(t,2,this.length),this[t]<<8|this[t+1]},t.prototype.readUInt32LE=function(t,e){return e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},t.prototype.readUInt32BE=function(t,e){return e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},t.prototype.readIntLE=function(t,e,n){t=0|t,e=0|e,n||R(t,e,this.length);for(var a=this[t],r=1,s=0;++s=r&&(a-=Math.pow(2,8*e)),a},t.prototype.readIntBE=function(t,e,n){t=0|t,e=0|e,n||R(t,e,this.length);for(var a=e,r=1,s=this[t+--a];a>0&&(r*=256);)s+=this[t+--a]*r;return r*=128,s>=r&&(s-=Math.pow(2,8*e)),s},t.prototype.readInt8=function(t,e){return e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},t.prototype.readInt16LE=function(t,e){e||R(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt16BE=function(t,e){e||R(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt32LE=function(t,e){return e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},t.prototype.readInt32BE=function(t,e){return e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},t.prototype.readFloatLE=function(t,e){return e||R(t,4,this.length),K.read(this,t,!0,23,4)},t.prototype.readFloatBE=function(t,e){return e||R(t,4,this.length),K.read(this,t,!1,23,4)},t.prototype.readDoubleLE=function(t,e){return e||R(t,8,this.length),K.read(this,t,!0,52,8)},t.prototype.readDoubleBE=function(t,e){return e||R(t,8,this.length),K.read(this,t,!1,52,8)},t.prototype.writeUIntLE=function(t,e,n,a){t=+t,e=0|e,n=0|n,a||q(this,t,e,n,Math.pow(2,8*n),0);var r=1,s=0;for(this[e]=255&t;++s=0&&(s*=256);)this[e+r]=t/s&255;return e+n},t.prototype.writeUInt8=function(e,n,a){return e=+e,n=0|n,a||q(this,e,n,1,255,0),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=255&e,n+1},t.prototype.writeUInt16LE=function(e,n,a){return e=+e,n=0|n,a||q(this,e,n,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):P(this,e,n,!0),n+2},t.prototype.writeUInt16BE=function(e,n,a){return e=+e,n=0|n,a||q(this,e,n,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):P(this,e,n,!1),n+2},t.prototype.writeUInt32LE=function(e,n,a){return e=+e,n=0|n,a||q(this,e,n,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e):C(this,e,n,!0),n+4},t.prototype.writeUInt32BE=function(e,n,a){return e=+e,n=0|n,a||q(this,e,n,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):C(this,e,n,!1),n+4},t.prototype.writeIntLE=function(t,e,n,a){if(t=+t,e=0|e,!a){var r=Math.pow(2,8*n-1);q(this,t,e,n,r-1,-r)}var s=0,i=1,o=0>t?1:0;for(this[e]=255&t;++s>0)-o&255;return e+n},t.prototype.writeIntBE=function(t,e,n,a){if(t=+t,e=0|e,!a){var r=Math.pow(2,8*n-1);q(this,t,e,n,r-1,-r)}var s=n-1,i=1,o=0>t?1:0;for(this[e+s]=255&t;--s>=0&&(i*=256);)this[e+s]=(t/i>>0)-o&255;return e+n},t.prototype.writeInt8=function(e,n,a){return e=+e,n=0|n,a||q(this,e,n,1,127,-128),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[n]=255&e,n+1},t.prototype.writeInt16LE=function(e,n,a){return e=+e,n=0|n,a||q(this,e,n,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):P(this,e,n,!0),n+2},t.prototype.writeInt16BE=function(e,n,a){return e=+e,n=0|n,a||q(this,e,n,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):P(this,e,n,!1),n+2},t.prototype.writeInt32LE=function(e,n,a){return e=+e,n=0|n,a||q(this,e,n,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):C(this,e,n,!0),n+4},t.prototype.writeInt32BE=function(e,n,a){return e=+e,n=0|n,a||q(this,e,n,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):C(this,e,n,!1),n+4},t.prototype.writeFloatLE=function(t,e,n){return A(this,t,e,!0,n)},t.prototype.writeFloatBE=function(t,e,n){return A(this,t,e,!1,n)},t.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},t.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},t.prototype.copy=function(e,n,a,r){if(a||(a=0),r||0===r||(r=this.length),n>=e.length&&(n=e.length),n||(n=0),r>0&&a>r&&(r=a),r===a)return 0;if(0===e.length||0===this.length)return 0;if(0>n)throw new RangeError("targetStart out of bounds");if(0>a||a>=this.length)throw new RangeError("sourceStart out of bounds");if(0>r)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-na&&r>n)for(s=i-1;s>=0;s--)e[s+n]=this[s+a];else if(1e3>i||!t.TYPED_ARRAY_SUPPORT)for(s=0;i>s;s++)e[s+n]=this[s+a];else e._set(this.subarray(a,a+i),n);return i},t.prototype.fill=function(t,e,n){if(t||(t=0),e||(e=0),n||(n=this.length),e>n)throw new RangeError("end < start");if(n!==e&&0!==this.length){if(0>e||e>=this.length)throw new RangeError("start out of bounds");if(0>n||n>this.length)throw new RangeError("end out of bounds");var a;if("number"==typeof t)for(a=e;n>a;a++)this[a]=t;else{var r=B(t.toString()),s=r.length;for(a=e;n>a;a++)this[a]=r[a%s]}return this}},t.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(t.TYPED_ARRAY_SUPPORT)return new t(this).buffer;for(var e=new Uint8Array(this.length),n=0,a=e.length;a>n;n+=1)e[n]=this[n];return e.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var X=t.prototype;t._augment=function(e){return e.constructor=t,e._isBuffer=!0,e._set=e.set,e.get=X.get,e.set=X.set,e.write=X.write,e.toString=X.toString,e.toLocaleString=X.toString,e.toJSON=X.toJSON,e.equals=X.equals,e.compare=X.compare,e.indexOf=X.indexOf,e.copy=X.copy,e.slice=X.slice,e.readUIntLE=X.readUIntLE,e.readUIntBE=X.readUIntBE,e.readUInt8=X.readUInt8,e.readUInt16LE=X.readUInt16LE,e.readUInt16BE=X.readUInt16BE,e.readUInt32LE=X.readUInt32LE,e.readUInt32BE=X.readUInt32BE,e.readIntLE=X.readIntLE,e.readIntBE=X.readIntBE,e.readInt8=X.readInt8,e.readInt16LE=X.readInt16LE,e.readInt16BE=X.readInt16BE,e.readInt32LE=X.readInt32LE,e.readInt32BE=X.readInt32BE,e.readFloatLE=X.readFloatLE,e.readFloatBE=X.readFloatBE,e.readDoubleLE=X.readDoubleLE,e.readDoubleBE=X.readDoubleBE,e.writeUInt8=X.writeUInt8,e.writeUIntLE=X.writeUIntLE,e.writeUIntBE=X.writeUIntBE,e.writeUInt16LE=X.writeUInt16LE,e.writeUInt16BE=X.writeUInt16BE,e.writeUInt32LE=X.writeUInt32LE,e.writeUInt32BE=X.writeUInt32BE,e.writeIntLE=X.writeIntLE,e.writeIntBE=X.writeIntBE,e.writeInt8=X.writeInt8,e.writeInt16LE=X.writeInt16LE,e.writeInt16BE=X.writeInt16BE,e.writeInt32LE=X.writeInt32LE,e.writeInt32BE=X.writeInt32BE,e.writeFloatLE=X.writeFloatLE,e.writeFloatBE=X.writeFloatBE,e.writeDoubleLE=X.writeDoubleLE,e.writeDoubleBE=X.writeDoubleBE,e.fill=X.fill,e.inspect=X.inspect,e.toArrayBuffer=X.toArrayBuffer,e};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n(177).Buffer,function(){return this}())},function(t,e,n){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function e(t){var e=t.charCodeAt(0);return e===i||e===p?62:e===o||e===d?63:l>e?-1:l+10>e?e-l+26+26:c+26>e?e-c:u+26>e?e-u+26:void 0}function n(t){function n(t){u[p++]=t}var a,r,i,o,l,u;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=t.length;l="="===t.charAt(c-2)?2:"="===t.charAt(c-1)?1:0,u=new s(3*t.length/4-l),i=l>0?t.length-4:t.length;var p=0;for(a=0,r=0;i>a;a+=4,r+=3)o=e(t.charAt(a))<<18|e(t.charAt(a+1))<<12|e(t.charAt(a+2))<<6|e(t.charAt(a+3)),n((16711680&o)>>16),n((65280&o)>>8),n(255&o);return 2===l?(o=e(t.charAt(a))<<2|e(t.charAt(a+1))>>4,n(255&o)):1===l&&(o=e(t.charAt(a))<<10|e(t.charAt(a+1))<<4|e(t.charAt(a+2))>>2,n(o>>8&255),n(255&o)),u}function r(t){function e(t){return a.charAt(t)}function n(t){return e(t>>18&63)+e(t>>12&63)+e(t>>6&63)+e(63&t)}var r,s,i,o=t.length%3,l="";for(r=0,i=t.length-o;i>r;r+=3)s=(t[r]<<16)+(t[r+1]<<8)+t[r+2],l+=n(s);switch(o){case 1:s=t[t.length-1],l+=e(s>>2),l+=e(s<<4&63),l+="==";break;case 2:s=(t[t.length-2]<<8)+t[t.length-1],l+=e(s>>10),l+=e(s>>4&63),l+=e(s<<2&63),l+="="}return l}var s="undefined"!=typeof Uint8Array?Uint8Array:Array,i="+".charCodeAt(0),o="/".charCodeAt(0),l="0".charCodeAt(0),u="a".charCodeAt(0),c="A".charCodeAt(0),p="-".charCodeAt(0),d="_".charCodeAt(0);t.toByteArray=n,t.fromByteArray=r}(e)},function(t,e){e.read=function(t,e,n,a,r){var s,i,o=8*r-a-1,l=(1<>1,c=-7,p=n?r-1:0,d=n?-1:1,h=t[e+p];for(p+=d,s=h&(1<<-c)-1,h>>=-c,c+=o;c>0;s=256*s+t[e+p],p+=d,c-=8);for(i=s&(1<<-c)-1,s>>=-c,c+=a;c>0;i=256*i+t[e+p],p+=d,c-=8);if(0===s)s=1-u;else{if(s===l)return i?NaN:(h?-1:1)*(1/0);i+=Math.pow(2,a),s-=u}return(h?-1:1)*i*Math.pow(2,s-a)},e.write=function(t,e,n,a,r,s){var i,o,l,u=8*s-r-1,c=(1<>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,h=a?0:s-1,f=a?1:-1,m=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,i=c):(i=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-i))<1&&(i--,l*=2),e+=i+p>=1?d/l:d*Math.pow(2,1-p),e*l>=2&&(i++,l/=2),i+p>=c?(o=0,i=c):i+p>=1?(o=(e*l-1)*Math.pow(2,r),i+=p):(o=e*Math.pow(2,p-1)*Math.pow(2,r),i=0));r>=8;t[n+h]=255&o,h+=f,o/=256,r-=8);for(i=i<0;t[n+h]=255&i,h+=f,i/=256,u-=8);t[n+h-f]|=128*m}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){(function(t){function a(){var t=[].slice.call(arguments).join(" ");throw new Error([t,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}function r(t,e){for(var n in t)e(t[n],n)}var s=n(182);e.createHash=n(184),e.createHmac=n(197),e.randomBytes=function(e,n){if(!n||!n.call)return new t(s(e));try{n.call(this,void 0,new t(s(e)))}catch(a){n(a)}},e.getHashes=function(){return["sha1","sha256","sha512","md5","rmd160"]};var i=n(198)(e);e.pbkdf2=i.pbkdf2,e.pbkdf2Sync=i.pbkdf2Sync,r(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman"],function(t){e[t]=function(){a("sorry,",t,"is not implemented yet")}})}).call(e,n(177).Buffer)},function(t,e,n){(function(e,a){!function(){var r=("undefined"==typeof window?e:window)||{};_crypto=r.crypto||r.msCrypto||n(183),t.exports=function(t){if(_crypto.getRandomValues){var e=new a(t);return _crypto.getRandomValues(e),e}if(_crypto.randomBytes)return _crypto.randomBytes(t);throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}()}).call(e,function(){return this}(),n(177).Buffer)},function(t,e){},function(t,e,n){(function(e){function a(t){return function(){var n=[],a={update:function(t,a){return e.isBuffer(t)||(t=new e(t,a)),n.push(t),this},digest:function(a){var r=e.concat(n),s=t(r);return n=null,a?s.toString(a):s}};return a}}var r=n(185),s=a(n(194)),i=a(n(196));t.exports=function(t){return"md5"===t?new s:"rmd160"===t?new i:r(t)}}).call(e,n(177).Buffer)},function(t,e,n){var e=t.exports=function(t){var n=e[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n},a=n(177).Buffer,r=n(186)(a);e.sha1=n(187)(a,r),e.sha256=n(192)(a,r),e.sha512=n(193)(a,r)},function(t,e){t.exports=function(t){function e(e,n){this._block=new t(e),this._finalSize=n,this._blockSize=e,this._len=0,this._s=0}return e.prototype.init=function(){this._s=0,this._len=0},e.prototype.update=function(e,n){"string"==typeof e&&(n=n||"utf8",e=new t(e,n));for(var a=this._len+=e.length,r=this._s=this._s||0,s=0,i=this._block;a>r;){for(var o=Math.min(e.length,s+this._blockSize-r%this._blockSize),l=o-s,u=0;l>u;u++)i[r%this._blockSize+u]=e[u+s];r+=l,s+=l,r%this._blockSize===0&&this._update(i)}return this._s=r,this},e.prototype.digest=function(t){var e=8*this._len;this._block[this._len%this._blockSize]=128,this._block.fill(0,this._len%this._blockSize+1),e%(8*this._blockSize)>=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(e,this._blockSize-4);var n=this._update(this._block)||this._hash();return t?n.toString(t):n},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e}},function(t,e,n){var a=n(188).inherits;t.exports=function(t,e){function n(){return f.length?f.pop().init():this instanceof n?(this._w=h,e.call(this,64,56),this._h=null,void this.init()):new n}function r(t,e,n,a){return 20>t?e&n|~e&a:40>t?e^n^a:60>t?e&n|e&a|n&a:e^n^a}function s(t){return 20>t?1518500249:40>t?1859775393:60>t?-1894007588:-899497514}function i(t,e){return t+e|0}function o(t,e){return t<>>32-e}var l=0,u=4,c=8,p=12,d=16,h=new("undefined"==typeof Int32Array?Array:Int32Array)(80),f=[];return a(n,e),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,e.prototype.init.call(this),this},n.prototype._POOL=f,n.prototype._update=function(t){var e,n,a,l,u,c,p,d,h,f;e=c=this._a,n=p=this._b,a=d=this._c,l=h=this._d,u=f=this._e;for(var m=this._w,y=0;80>y;y++){var v=m[y]=16>y?t.readInt32BE(4*y):o(m[y-3]^m[y-8]^m[y-14]^m[y-16],1),g=i(i(o(e,5),r(y,n,a,l)),i(i(u,v),s(y)));u=l,l=a,a=o(n,30),n=e,e=g}this._a=i(e,c),this._b=i(n,p),this._c=i(a,d),this._d=i(l,h),this._e=i(u,f)},n.prototype._hash=function(){f.length<100&&f.push(this);var e=new t(20);return e.writeInt32BE(0|this._a,l),e.writeInt32BE(0|this._b,u),e.writeInt32BE(0|this._c,c),e.writeInt32BE(0|this._d,p),e.writeInt32BE(0|this._e,d),e},n}},function(t,e,n){(function(t,a){function r(t,n){var a={seen:[],stylize:i};return arguments.length>=3&&(a.depth=arguments[2]),arguments.length>=4&&(a.colors=arguments[3]),m(n)?a.showHidden=n:n&&e._extend(a,n),k(a.showHidden)&&(a.showHidden=!1),k(a.depth)&&(a.depth=2),k(a.colors)&&(a.colors=!1),k(a.customInspect)&&(a.customInspect=!0),a.colors&&(a.stylize=s),l(a,t,a.depth)}function s(t,e){var n=r.styles[e];return n?"["+r.colors[n][0]+"m"+t+"["+r.colors[n][1]+"m":t}function i(t,e){return t}function o(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}function l(t,n,a){if(t.customInspect&&n&&S(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(a,t);return _(r)||(r=l(t,r,a)),r}var s=u(t,n);if(s)return s;var i=Object.keys(n),m=o(i);if(t.showHidden&&(i=Object.getOwnPropertyNames(n)),x(n)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return c(n);if(0===i.length){if(S(n)){var y=n.name?": "+n.name:"";return t.stylize("[Function"+y+"]","special")}if(T(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(M(n))return t.stylize(Date.prototype.toString.call(n),"date");if(x(n))return c(n)}var v="",g=!1,b=["{","}"];if(f(n)&&(g=!0,b=["[","]"]),S(n)){var k=n.name?": "+n.name:"";v=" [Function"+k+"]"}if(T(n)&&(v=" "+RegExp.prototype.toString.call(n)),M(n)&&(v=" "+Date.prototype.toUTCString.call(n)),x(n)&&(v=" "+c(n)),0===i.length&&(!g||0==n.length))return b[0]+v+b[1];if(0>a)return T(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var w;return w=g?p(t,n,a,m,i):i.map(function(e){return d(t,n,a,m,e,g)}),t.seen.pop(),h(w,v,b)}function u(t,e){if(k(e))return t.stylize("undefined","undefined");if(_(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return g(e)?t.stylize(""+e,"number"):m(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,n,a,r){for(var s=[],i=0,o=e.length;o>i;++i)Y(e,String(i))?s.push(d(t,e,n,a,String(i),!0)):s.push("");return r.forEach(function(r){r.match(/^\d+$/)||s.push(d(t,e,n,a,r,!0))}),s}function d(t,e,n,a,r,s){var i,o,u;if(u=Object.getOwnPropertyDescriptor(e,r)||{value:e[r]},u.get?o=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(o=t.stylize("[Setter]","special")),Y(a,r)||(i="["+r+"]"),o||(t.seen.indexOf(u.value)<0?(o=y(n)?l(t,u.value,null):l(t,u.value,n-1),o.indexOf("\n")>-1&&(o=s?o.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+o.split("\n").map(function(t){return" "+t}).join("\n"))):o=t.stylize("[Circular]","special")),k(i)){if(s&&r.match(/^\d+$/))return o;i=JSON.stringify(""+r),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=t.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=t.stylize(i,"string"))}return i+": "+o}function h(t,e,n){var a=0,r=t.reduce(function(t,e){return a++,e.indexOf("\n")>=0&&a++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function f(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function y(t){return null===t}function v(t){return null==t}function g(t){return"number"==typeof t}function _(t){return"string"==typeof t}function b(t){return"symbol"==typeof t}function k(t){return void 0===t}function T(t){return w(t)&&"[object RegExp]"===D(t)}function w(t){return"object"==typeof t&&null!==t}function M(t){return w(t)&&"[object Date]"===D(t)}function x(t){return w(t)&&("[object Error]"===D(t)||t instanceof Error)}function S(t){return"function"==typeof t}function L(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function D(t){return Object.prototype.toString.call(t)}function E(t){return 10>t?"0"+t.toString(10):t.toString(10)}function I(){var t=new Date,e=[E(t.getHours()),E(t.getMinutes()),E(t.getSeconds())].join(":");return[t.getDate(),P[t.getMonth()],e].join(" ")}function Y(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var O=/%[sdj%]/g;e.format=function(t){if(!_(t)){for(var e=[],n=0;n=s)return t;switch(t){case"%s":return String(a[n++]);case"%d":return Number(a[n++]);case"%j":try{return JSON.stringify(a[n++])}catch(e){return"[Circular]"}default:return t}}),o=a[n];s>n;o=a[++n])i+=y(o)||!w(o)?" "+o:" "+r(o);return i},e.deprecate=function(n,r){function s(){if(!i){if(a.throwDeprecation)throw new Error(r);a.traceDeprecation?console.trace(r):console.error(r),i=!0}return n.apply(this,arguments)}if(k(t.process))return function(){return e.deprecate(n,r).apply(this,arguments)};if(a.noDeprecation===!0)return n;var i=!1;return s};var R,q={};e.debuglog=function(t){if(k(R)&&(R=a.env.NODE_DEBUG||""),t=t.toUpperCase(),!q[t])if(new RegExp("\\b"+t+"\\b","i").test(R)){var n=a.pid;q[t]=function(){var a=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,a)}}else q[t]=function(){};return q[t]},e.inspect=r,r.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},r.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=f,e.isBoolean=m,e.isNull=y,e.isNullOrUndefined=v,e.isNumber=g,e.isString=_,e.isSymbol=b,e.isUndefined=k,e.isRegExp=T,e.isObject=w,e.isDate=M,e.isError=x,e.isFunction=S,e.isPrimitive=L,e.isBuffer=n(190);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];e.log=function(){console.log("%s - %s",I(),e.format.apply(e,arguments))},e.inherits=n(191),e._extend=function(t,e){if(!e||!w(e))return t;for(var n=Object.keys(e),a=n.length;a--;)t[n[a]]=e[n[a]];return t}}).call(e,function(){return this}(),n(189))},function(t,e){function n(){u&&i&&(u=!1,i.length?l=i.concat(l):c=-1,l.length&&a())}function a(){if(!u){var t=setTimeout(n);u=!0;for(var e=l.length;e;){for(i=l,l=[];++c1)for(var n=1;n>>e|t<<32-e}function s(t,e){return t>>>e}function i(t,e,n){return t&e^~t&n}function o(t,e,n){return t&e^t&n^e&n}function l(t){return r(t,2)^r(t,13)^r(t,22)}function u(t){return r(t,6)^r(t,11)^r(t,25)}function c(t){return r(t,7)^r(t,18)^s(t,3)}function p(t){return r(t,17)^r(t,19)^s(t,10)}var d=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],h=new Array(64);return a(n,e),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._len=this._s=0,this},n.prototype._update=function(t){var e,n,a,r,s,h,f,m,y,v,g=this._w;e=0|this._a,n=0|this._b,a=0|this._c,r=0|this._d,s=0|this._e,h=0|this._f,f=0|this._g,m=0|this._h;for(var _=0;64>_;_++){var b=g[_]=16>_?t.readInt32BE(4*_):p(g[_-2])+g[_-7]+c(g[_-15])+g[_-16];y=m+u(s)+i(s,h,f)+d[_]+b,v=l(e)+o(e,n,a),m=f,f=h,h=s,s=r+y,r=a,a=n,n=e,e=y+v}this._a=e+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=r+this._d|0,this._e=s+this._e|0,this._f=h+this._f|0,this._g=f+this._g|0,this._h=m+this._h|0},n.prototype._hash=function(){var e=new t(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},n}},function(t,e,n){var a=n(188).inherits;t.exports=function(t,e){function n(){this.init(),this._w=l,e.call(this,128,112)}function r(t,e,n){return t>>>n|e<<32-n}function s(t,e,n){return t&e^~t&n}function i(t,e,n){return t&e^t&n^e&n}var o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],l=new Array(160);return a(n,e),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._al=-205731576,this._bl=-2067093701,this._cl=-23791573,this._dl=1595750129,this._el=-1377402159,this._fl=725511199,this._gl=-79577749,this._hl=327033209,this._len=this._s=0,this},n.prototype._update=function(t){var e,n,a,l,u,c,p,d,h,f,m,y,v,g,_,b,k=this._w;e=0|this._a,n=0|this._b,a=0|this._c,l=0|this._d,u=0|this._e,c=0|this._f,p=0|this._g,d=0|this._h,h=0|this._al,f=0|this._bl,m=0|this._cl,y=0|this._dl,v=0|this._el,g=0|this._fl,_=0|this._gl,b=0|this._hl;for(var T=0;80>T;T++){var w,M,x=2*T;if(16>T)w=k[x]=t.readInt32BE(4*x),M=k[x+1]=t.readInt32BE(4*x+4);else{var S=k[x-30],L=k[x-30+1],D=r(S,L,1)^r(S,L,8)^S>>>7,E=r(L,S,1)^r(L,S,8)^r(L,S,7);S=k[x-4],L=k[x-4+1];var I=r(S,L,19)^r(L,S,29)^S>>>6,Y=r(L,S,19)^r(S,L,29)^r(L,S,6),O=k[x-14],R=k[x-14+1],q=k[x-32],P=k[x-32+1];M=E+R,w=D+O+(E>>>0>M>>>0?1:0),M+=Y,w=w+I+(Y>>>0>M>>>0?1:0),M+=P,w=w+q+(P>>>0>M>>>0?1:0),k[x]=w,k[x+1]=M}var C=i(e,n,a),N=i(h,f,m),A=r(e,h,28)^r(h,e,2)^r(h,e,7),F=r(h,e,28)^r(e,h,2)^r(e,h,7),j=r(u,v,14)^r(u,v,18)^r(v,u,9),z=r(v,u,14)^r(v,u,18)^r(u,v,9),H=o[x],B=o[x+1],U=s(u,c,p),W=s(v,g,_),G=b+z,$=d+j+(b>>>0>G>>>0?1:0);G+=W,$=$+U+(W>>>0>G>>>0?1:0),G+=B,$=$+H+(B>>>0>G>>>0?1:0),G+=M,$=$+w+(M>>>0>G>>>0?1:0);var J=F+N,K=A+C+(F>>>0>J>>>0?1:0);d=p,b=_,p=c,_=g,c=u,g=v,v=y+G|0,u=l+$+(y>>>0>v>>>0?1:0)|0,l=a,y=m,a=n,m=f,n=e,f=h,h=G+J|0,e=$+K+(G>>>0>h>>>0?1:0)|0}this._al=this._al+h|0,this._bl=this._bl+f|0,this._cl=this._cl+m|0,this._dl=this._dl+y|0,this._el=this._el+v|0,this._fl=this._fl+g|0,this._gl=this._gl+_|0,this._hl=this._hl+b|0,this._a=this._a+e+(this._al>>>0>>0?1:0)|0,this._b=this._b+n+(this._bl>>>0>>0?1:0)|0,this._c=this._c+a+(this._cl>>>0>>0?1:0)|0,this._d=this._d+l+(this._dl>>>0>>0?1:0)|0,this._e=this._e+u+(this._el>>>0>>0?1:0)|0,this._f=this._f+c+(this._fl>>>0>>0?1:0)|0,this._g=this._g+p+(this._gl>>>0<_>>>0?1:0)|0,this._h=this._h+d+(this._hl>>>0>>0?1:0)|0},n.prototype._hash=function(){function e(t,e,a){n.writeInt32BE(t,a),n.writeInt32BE(e,a+4)}var n=new t(64);return e(this._a,this._al,0),e(this._b,this._bl,8),e(this._c,this._cl,16),e(this._d,this._dl,24),e(this._e,this._el,32),e(this._f,this._fl,40),e(this._g,this._gl,48),e(this._h,this._hl,56),n},n}},function(t,e,n){function a(t,e){t[e>>5]|=128<>>9<<4)+14]=e;for(var n=1732584193,a=-271733879,r=-1732584194,c=271733878,p=0;p>16)+(e>>16)+(n>>16);return a<<16|65535&n}function c(t,e){return t<>>32-e}var p=n(195);t.exports=function(t){return p.hash(t,a,16)}},function(t,e,n){(function(e){function n(t,n){if(t.length%s!==0){var a=t.length+(s-t.length%s);t=e.concat([t,i],a)}for(var r=[],o=n?t.readInt32BE:t.readInt32LE,l=0;l>>32-e}function l(t){var n=[1732584193,4023233417,2562383102,271733878,3285377520];"string"==typeof t&&(t=new e(t,"utf8"));var a=m(t),r=8*t.length,s=8*t.length;a[r>>>5]|=128<<24-r%32,a[(r+64>>>9<<4)+14]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);for(var i=0;ii;i++){var o=n[i];n[i]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var l=y(n);return new e(l)}t.exports=l;/** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ var u=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],p=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],d=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],h=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0],m=function(t){for(var e=[],n=0,a=0;n>>5]|=t[n]<<24-a%32;return e},y=function(t){for(var e=[],n=0;n<32*t.length;n+=8)e.push(t[n>>>5]>>>24-n%32&255);return e},v=function(t,e,l){for(var m=0;16>m;m++){var y=l+m,v=e[y];e[y]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8)}var g,_,b,k,T,w,M,x,S,L;w=g=t[0],M=_=t[1],x=b=t[2],S=k=t[3],L=T=t[4];for(var D,m=0;80>m;m+=1)D=g+e[l+u[m]]|0,D+=16>m?n(_,b,k)+h[0]:32>m?a(_,b,k)+h[1]:48>m?r(_,b,k)+h[2]:64>m?s(_,b,k)+h[3]:i(_,b,k)+h[4],D=0|D,D=o(D,p[m]),D=D+T|0,g=T,T=k,k=o(b,10),b=_,_=D,D=w+e[l+c[m]]|0,D+=16>m?i(M,x,S)+f[0]:32>m?s(M,x,S)+f[1]:48>m?r(M,x,S)+f[2]:64>m?a(M,x,S)+f[3]:n(M,x,S)+f[4],D=0|D,D=o(D,d[m]),D=D+L|0,w=L,L=S,S=o(x,10),x=M,M=D;D=t[1]+b+S|0,t[1]=t[2]+k+L|0,t[2]=t[3]+T+w|0,t[3]=t[4]+g+M|0,t[4]=t[0]+_+x|0,t[0]=D}}).call(e,n(177).Buffer)},function(t,e,n){(function(e){function a(t,n){if(!(this instanceof a))return new a(t,n);this._opad=l,this._alg=t;var i="sha512"===t?128:64;n=this._key=e.isBuffer(n)?n:new e(n),n.length>i?n=r(t).update(n).digest():n.lengthu;u++)o[u]=54^n[u],l[u]=92^n[u];this._hash=r(t).update(o)}var r=n(184),s=new e(128);s.fill(0),t.exports=a,a.prototype.update=function(t,e){return this._hash.update(t,e),this},a.prototype.digest=function(t){var e=this._hash.digest();return r(this._alg).update(this._opad).update(e).digest(t)}}).call(e,n(177).Buffer)},function(t,e,n){var a=n(199);t.exports=function(t,e){e=e||{};var n=a(t);return e.pbkdf2=n.pbkdf2,e.pbkdf2Sync=n.pbkdf2Sync,e}},function(t,e,n){(function(e){t.exports=function(t){function n(t,e,n,r,s,i){if("function"==typeof s&&(i=s,s=void 0),"function"!=typeof i)throw new Error("No callback provided to pbkdf2");setTimeout(function(){var o;try{o=a(t,e,n,r,s)}catch(l){return i(l)}i(void 0,o)})}function a(n,a,r,s,i){if("number"!=typeof r)throw new TypeError("Iterations not a number");if(0>r)throw new TypeError("Bad iterations");if("number"!=typeof s)throw new TypeError("Key length not a number");if(0>s)throw new TypeError("Bad key length");i=i||"sha1",e.isBuffer(n)||(n=new e(n)),e.isBuffer(a)||(a=new e(a));var o,l,u,c=1,p=new e(s),d=new e(a.length+4);a.copy(d,0,0,a.length);for(var h=1;c>=h;h++){d.writeUInt32BE(h,a.length);var f=t.createHmac(i,n).update(d).digest();if(!o&&(o=f.length,u=new e(o),c=Math.ceil(s/o),l=s-(c-1)*o,s>(Math.pow(2,32)-1)*o))throw new TypeError("keylen exceeds maximum length");f.copy(u,0,0,o);for(var m=1;r>m;m++){f=t.createHmac(i,n).update(f).digest();for(var y=0;o>y;y++)u[y]^=f[y]}var v=(h-1)*o,g=h==c?l:o;u.copy(p,v,0,g)}return p}return{pbkdf2:n,pbkdf2Sync:a}}}).call(e,n(177).Buffer)},function(t,e,n){(function(e,a){var r,s,i=function(t,e){return function(){return t.apply(e,arguments)}},o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=n(201),r=function(t){function r(){return this.getRequest=i(this.getRequest,this),this.unstar=i(this.unstar,this),this.sortTable=i(this.sortTable,this),this.sortCollection=i(this.sortCollection,this),this.renderTable=i(this.renderTable,this),this.render=i(this.render,this),this.initialize=i(this.initialize,this),r.__super__.constructor.apply(this,arguments)}return o(r,t),r.prototype.templateBase=n(213),r.prototype.templateRequestsTable=n(214),r.prototype.templateRequestsPausedBody=n(215),r.prototype.events=function(){return e.extend(r.__super__.events.apply(this,arguments),{'click [data-action="unstar"]':"unstar","click th[data-sort-attribute]":"sortTable",'click [data-action="viewJSON"]':"viewJson",'click [data-action="remove"]':"removeRequest",'click [data-action="unpause"]':"unpauseRequest"})},r.prototype.initialize=function(){return this.listenTo(app.user,"change",this.render),this.listenTo(this.collection,"sync",this.render)},r.prototype.render=function(){var t,n,a,s,i;return n=app.getUsername(),a={partials:{requestsBody:this.templateRequestsTable,requestsPausedBody:this.templateRequestsPausedBody}},i=this.collection.getUserRequestTotals(n),s=e.map(e.filter(this.collection.getUserRequests(app.getUsername()),function(t){return"PAUSED"===t.get("state")}),function(t){return t.toJSON()}),t={deployUser:n,collectionSynced:this.collection.synced,userRequestTotals:i||{},haveStarredRequests:this.collection.getStarredOnly().length,pausedRequests:{requests:s,haveRequests:s.length>0,requestsSubFilter:"",hideNewRequestButton:config.hideNewRequestButton,onDashboardPage:!0,collectionSynced:this.collection.synced}},this.$el.html(this.templateBase(t,a)),this.renderTable(),r.__super__.render.apply(this,arguments).afterRender()},r.prototype.renderTable=function(){var t,e,n,a;return this.sortCollection(),a=this.currentRequests,t=this.templateRequestsTable({starredRequests:a,requests:a}),e=this.$(".table-staged table"),n=e.find("tbody"),n.html(t)},r.prototype.sortCollection=function(){var t;return t=e.pluck(this.collection.getStarredOnly(),"attributes"),null!=this.sortAttribute?(t=e.sortBy(t,function(t){return function(e){var n,a,r,s,i;for(a=t.sortAttribute.split("."),i=e,r=0,s=a.length;s>r;r++)n=a[r],i=i[n],null==i&&(i="");return i}}(this)),this.sortAscending||(t=t.reverse())):t.reverse(),this.currentRequests=t},r.prototype.sortTable=function(t){var e,n,r;return this.isSorted=!0,n=a(t.currentTarget),r=n.attr("data-sort-attribute"),e=this.$("[data-sorted=true]"),e.removeAttr("data-sorted"),e.find("span").remove(),r===this.sortAttribute&&null!=this.sortAscending?this.sortAscending=!this.sortAscending:this.sortAscending="timestamp"!==r,this.sortAttribute=r,n.attr("data-sorted","true"),n.append(""),this.renderTable()},r.prototype.unstar=function(t){var e,n,r;return n=a(t.currentTarget),e=n.parents("tr"),r=e.data("request-id"),this.collection.toggleStar(r),e.remove(),0===this.$("tbody tr").length?this.render():void 0},r.prototype.getRequest=function(t){var e;return e=this.collection.models.filter(function(e){return e.id===t}),e?e[0]:void 0},r.prototype.viewJson=function(t){var e,n;return e=a(t.target).parents("tr").data("request-id"),n=this.getRequest(e),n?utils.viewJSON(n):void Messenger().error({message:"

Could not find request "+e+". Perhaps someone removed it?

"})},r.prototype.removeRequest=function(t){var e,n,r;return e=a(t.target).parents("tr"),n=e.data("request-id"),r=this.getRequest(n),r?r.promptRemove(function(t){return function(){return e.remove()}}(this)):void Messenger().error({message:"

Could not find request "+n+". Perhaps someone removed it first?

"})},r.prototype.unpauseRequest=function(t){var e,n,r;return e=a(t.target).parents("tr"),n=e.data("request-id"),r=this.getRequest(n),r?r.promptUnpause(function(t){return function(){return e.remove(),t.trigger("refreshrequest")}}(this)):void Messenger().error({message:"

Could not find request "+n+". Perhaps someone removed it?

"})},r}(s),t.exports=r}).call(e,n(3),n(1))},function(t,e,n){(function(e){var a,r,s,i=function(t,e){return function(){return t.apply(e,arguments)}},o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty;r=n(202),a=n(203),n(204)(e,document),s=function(t){function n(t){null==t&&(t={}),this.routeLink=i(this.routeLink,this),null!=t.subviews&&(this.subviews=t.subviews),n.__super__.constructor.call(this,t)}return o(n,t),n.prototype.subviews={},n.prototype.events=function(){return{"click a":"routeLink"}},n.prototype.remove=function(){var t,e,a,r,s;for(n.__super__.remove.apply(this,arguments),a=this.subviews,r=[],t=0,e=a.length;e>t;t++)s=a[t],r.push(s.remove());return r},n.prototype.routeLink=function(t){var n,a,r;return n=e(t.target),a=n.parents("a[href]"),a.length&&(n=a),r=n.attr("href"),"_blank"===n.attr("target")||"javascript:;"===r||"undefined"==typeof r||0!==r.indexOf(config.appRoot)?!0:t.metaKey||t.ctrlKey||t.shiftKey?void 0:(t.preventDefault(),r=r.replace(config.appRoot,""),app.router.navigate(r,{trigger:!0}))},n.prototype.afterRender=function(){return e(".linkify").linkify(),r.init(),e("table.paginated:not([id])").DataTable({ordering:!1,bFilter:!1,info:!1,lengthChange:!1,pageLength:5,pagingType:"simple",language:{paginate:{previous:'',next:''}}}),e("table.paginated").css("display","table")},n}(Backbone.View),t.exports=s}).call(e,n(1))},,,function(t,e,n){t.exports=n(205)["default"]},function(t,e,n){(function(t){"use strict";function a(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e["default"]=function(e){function n(t){return t=i["default"].normalize(t),this.each(function(){i["default"].helper(this,t,a)})}var a=arguments.length<=1||void 0===arguments[1]?null:arguments[1];e.fn=e.fn||{};try{a=a||window&&window.document||t&&t.document}catch(r){}if(!a)throw new Error("Cannot find document implementation. If you are in a non-browser environment like Node.js, pass the document implementation as the second argument to linkify/jquery");"function"!=typeof e.fn.linkify&&(e.fn.linkify=n,e(a).ready(function(){e("[data-linkify]").each(function(){var t=e(this),n=t.data(),a=n.linkify,r=n.linkifyNlbr,s={linkAttributes:n.linkifyAttributes,defaultProtocol:n.linkifyDefaultProtocol,events:n.linkifyEvents,format:n.linkifyFormat,formatHref:n.linkifyFormatHref,newLine:n.linkifyNewline,nl2br:!!r&&0!==r&&"false"!==r,tagName:n.linkifyTagname,target:n.linkifyTarget,linkClass:n.linkifyLinkclass,validate:n.linkifyValidate,ignoreTags:n.linkifyIgnoreTags},i="this"===a?t:t.find(a);i.linkify(s)})}))};var r=n(1),s=(a(r),n(206)),i=a(s);try{window.linkifyElement=i["default"]}catch(o){}}).call(e,function(){return this}())},function(t,e,n){(function(t){"use strict";function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function r(t,e,n){var a=n[n.length-1];t.replaceChild(a,e);for(var r=n.length-2;r>=0;r--)t.insertBefore(n[r],a),a=n[r]}function s(t,e,n){for(var a=[],r=0;r1?e-1:0),a=1;e>a;a++)n[a-1]=arguments[a];return"function"==typeof t?t.apply(void 0,n):t}function r(t,e){for(var n=0;nr;){for(var s=v,i=null,o=null,l=0,u=null,c=-1;n>r&&(o=s.next(e[r]));)i=null,s=o,s.accepts()?(c=0,u=s):c>=0&&c++,l++,r++;if(!(0>c)){r-=c,l-=c;var p=u.emit();a.push(new p(t.substr(r-l,l)))}}return a},P=v;e.State=r.CharacterState,e.TOKENS=a.text,e.run=q,e.start=P},function(t,e){"use strict";function n(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t){return t instanceof o||t instanceof k}e.__esModule=!0;var i=function(){function t(e){r(this,t),this.v=e}return t.prototype.toString=function(){return this.v+""},t}(),o=function(t){function e(){return r(this,e),n(this,t.apply(this,arguments))}return a(e,t),e}(i),l=function(t){function e(){return r(this,e),n(this,t.call(this,"@"))}return a(e,t),e}(i),u=function(t){function e(){return r(this,e),n(this,t.call(this,":"))}return a(e,t),e}(i),c=function(t){function e(){return r(this,e),n(this,t.call(this,"."))}return a(e,t),e}(i),p=function(t){function e(){return r(this,e),n(this,t.apply(this,arguments))}return a(e,t),e}(i),d=function(t){function e(){return r(this,e),n(this,t.apply(this,arguments))}return a(e,t),e}(i),h=function(t){function e(){return r(this,e),n(this,t.call(this,"\n"))}return a(e,t),e}(i),f=function(t){function e(){return r(this,e),n(this,t.apply(this,arguments))}return a(e,t),e}(i),m=function(t){function e(){return r(this,e),n(this,t.call(this,"+"))}return a(e,t),e}(i),y=function(t){function e(){return r(this,e),n(this,t.call(this,"#"))}return a(e,t),e}(i),v=function(t){function e(){return r(this,e),n(this,t.apply(this,arguments))}return a(e,t),e}(i),g=function(t){function e(){return r(this,e),n(this,t.call(this,"?"))}return a(e,t),e}(i),_=function(t){function e(){return r(this,e),n(this,t.call(this,"/"))}return a(e,t),e}(i),b=function(t){function e(){return r(this,e),n(this,t.apply(this,arguments))}return a(e,t),e}(i),k=function(t){function e(){return r(this,e),n(this,t.apply(this,arguments))}return a(e,t),e}(i),T=function(t){function e(){return r(this,e),n(this,t.apply(this,arguments))}return a(e,t),e}(i),w=function(t){function e(){return r(this,e),n(this,t.call(this,"{"))}return a(e,t),e}(i),M=function(t){function e(){return r(this,e),n(this,t.call(this,"["))}return a(e,t),e}(i),x=function(t){function e(){return r(this,e),n(this,t.call(this,"("))}return a(e,t),e}(i),S=function(t){function e(){return r(this,e),n(this,t.call(this,"}"))}return a(e,t),e}(i),L=function(t){function e(){return r(this,e),n(this,t.call(this,"]"))}return a(e,t),e}(i),D=function(t){function e(){return r(this,e),n(this,t.call(this,")"))}return a(e,t),e}(i),E={Base:i,DOMAIN:o,AT:l,COLON:u,DOT:c,PUNCTUATION:p,LOCALHOST:d,NL:h,NUM:f,PLUS:m,POUND:y,QUERY:g,PROTOCOL:v,SLASH:_,SYM:b,TLD:k,WS:T,OPENBRACE:w,OPENBRACKET:M,OPENPAREN:x,CLOSEBRACE:S,CLOSEBRACKET:L,CLOSEPAREN:D},I=function(){function t(e){r(this,t),this.v=e,this.type="token",this.isLink=!1}return t.prototype.toString=function(){for(var t=[],e=0;er&&(u=i.next(t[r]));)i=u,r++;if(r>=s)return[];for(;s-1>r;)u=new o(a),l.push(u),i.on(t[r],u),i=u,r++;return u=new o(n),l.push(u),i.on(t[s-1],u),l}e.__esModule=!0;var i=function(){function t(e){r(this,t),this.j=[],this.T=e||null}return t.prototype.on=function(t,e){if(t instanceof Array){for(var n=0;nn;){for(var s=Y,i=null,o=null,l=0,u=null,c=-1;e>n&&!(i=s.next(t[n]));)r.push(t[n++]);for(;e>n&&(o=i||s.next(t[n]));)i=null,s=o,s.accepts()?(c=0,u=s):c>=0&&c++,n++,l++;if(0>c)for(var p=n-l;n>p;p++)r.push(t[p]);else{r.length>0&&(a.push(new E(r)),r=[]),n-=c,l-=c;var d=u.emit();a.push(new d(t.slice(n-l,n)))}}return r.length>0&&a.push(new E(r)),a},ct=a.multi,pt=Y;e.State=r.TokenState,e.TOKENS=ct,e.run=ut,e.start=pt},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return"

"+t.escapeExpression((s=null!=(s=n.deployUser||(null!=e?e.deployUser:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"deployUser",hash:{},data:r}):s))+"

\n"},3:function(t,e,n,a,r){return"

Singularity

\n"},5:function(t,e,n,a,r){var s;return(null!=(s=n["if"].call(null!=e?e:{},null!=e?e.deployUser:e,{name:"if",hash:{},fn:t.program(6,r,0),inverse:t.noop,data:r}))?s:"")+'
\n
\n \n'+(null!=(s=t.invokePartial(a.requestsBody,e,{name:"requestsBody",data:r,indent:" ",helpers:n,partials:a,decorators:t.decorators}))?s:"")+"
\n
\n"},6:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression,p=t.lambda;return' \n
\n
\n \n'+(null!=(s=n["with"].call(o,null!=e?e.pausedRequests:e,{name:"with",hash:{},fn:t.program(7,r,0),inverse:t.noop,data:r}))?s:"")+"
\n
\n"},7:function(t,e,n,a,r){var s;return null!=(s=t.invokePartial(a.requestsPausedBody,e,{name:"requestsPausedBody",data:r,indent:" ",helpers:n,partials:a,decorators:t.decorators}))?s:""},9:function(t,e,n,a,r){return'
\n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i=null!=e?e:{};return"
\n"+(null!=(s=n["if"].call(i,null!=e?e.deployUser:e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(3,r,0),data:r}))?s:"")+"
\n\n"+(null!=(s=n["if"].call(i,null!=e?e.collectionSynced:e,{name:"if",hash:{},fn:t.program(5,r,0),inverse:t.program(9,r,0),data:r}))?s:"")},usePartial:!0,useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){return' \n \n \n \n \n \n \n \n \n \n \n \n \n'},3:function(t,e,n,a,r){var s,i,o=t.lambda,l=t.escapeExpression,u=null!=e?e:{},c=n.helperMissing;return' \n \n \n \n \n \n \n \n \n"},5:function(t,e,n,a,r){return" \n
RequestTypeStatusDeploy userInstances
\n \n \n \n \n \n '+l(o(null!=(s=null!=e?e.request:e)?s.id:s,e))+"\n \n \n "+l((n.humanizeText||e&&e.humanizeText||c).call(u,null!=(s=null!=e?e.request:e)?s.requestType:s,{name:"humanizeText",hash:{},data:r}))+'\n \n "+l((n.humanizeText||e&&e.humanizeText||c).call(u,null!=e?e.state:e,{name:"humanizeText",hash:{},data:r}))+'\n \n '+l((n.usernameFromEmail||e&&e.usernameFromEmail||c).call(u,null!=(s=null!=(s=null!=e?e.requestDeployState:e)?s.activeDeploy:s)?s.user:s,{name:"usernameFromEmail",hash:{},data:r}))+'\n \n '+l(o(null!=(s=null!=e?e.request:e)?s.instances:s,e))+"\n
\n"},7:function(t,e,n,a,r){return'

No starred requests

\n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i=null!=e?e:{};return(null!=(s=n["if"].call(i,null!=e?e.haveStarredRequests:e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n.each.call(i,null!=e?e.starredRequests:e,{name:"each",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?s:"")+"\n"+(null!=(s=n["if"].call(i,null!=e?e.haveStarredRequests:e,{name:"if",hash:{},fn:t.program(5,r,0),inverse:t.program(7,r,0),data:r}))?s:"")},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveRequests:e,{name:"if",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?s:""},2:function(t,e,n,a,r){var s,i=null!=e?e:{};return' \n \n \n \n \n \n'+(null!=(s=n.unless.call(i,null!=e?e.onDashboardPage:e,{name:"unless",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?s:"")+"\n"+(null!=(s=(n.ifInSubFilter||e&&e.ifInSubFilter||n.helperMissing).call(i,"SCHEDULED",null!=e?e.requestsSubFilter:e,{name:"ifInSubFilter",hash:{},fn:t.program(5,r,0),inverse:t.noop,data:r}))?s:"")+'\n \n \n \n \n'},3:function(t,e,n,a,r){return' \n'},5:function(t,e,n,a,r){return' \n'},7:function(t,e,n,a,r,s,i){var o,l,u=t.lambda,c=t.escapeExpression,p=null!=e?e:{},d=n.helperMissing;return' \n \n"+(null!=(o=n.unless.call(p,null!=i[1]?i[1].onDashboardPage:i[1],{name:"unless",hash:{},fn:t.program(8,r,0,s,i),inverse:t.noop,data:r}))?o:"")+"\n"+(null!=(o=(n.ifInSubFilter||e&&e.ifInSubFilter||d).call(p,"SCHEDULED",null!=i[1]?i[1].requestsSubFilter:i[1],{name:"ifInSubFilter",hash:{},fn:t.program(10,r,0,s,i),inverse:t.noop,data:r}))?o:"")+'\n \n \n"},8:function(t,e,n,a,r){var s;return' \n"},10:function(t,e,n,a,r){var s;return' \n"},11:function(t,e,n,a,r){var s;return" "+t.escapeExpression(t.lambda(null!=(s=null!=e?e.request:e)?s.quartzSchedule:s,e))+"\n"},13:function(t,e,n,a,r){var s;return null!=(s=(n.ifEqual||e&&e.ifEqual||n.helperMissing).call(null!=e?e:{},null!=(s=null!=e?e.request:e)?s.scheduleType:s,"quartz",{name:"ifEqual",hash:{},fn:t.program(14,r,0),inverse:t.program(16,r,0),data:r}))?s:""},14:function(t,e,n,a,r){var s;return" "+t.escapeExpression(t.lambda(null!=(s=null!=e?e.request:e)?s.schedule:s,e))+"\n"},16:function(t,e,n,a,r){var s,i=t.lambda,o=t.escapeExpression;return" "+o(i(null!=(s=null!=e?e.request:e)?s.schedule:s,e))+" "+o(i(null!=(s=null!=e?e.request:e)?s.scheduleType:s,e))+"\n"},18:function(t,e,n,a,r){var s,i,o=t.escapeExpression;return' \n \n \n'},20:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveRequests:e,{name:"if",hash:{},fn:t.program(21,r,0),inverse:t.program(23,r,0),data:r}))?s:""},21:function(t,e,n,a,r){return" \n
\n Name\n \n Type\n
\n \n Schedule \n \n
\n \n
\n'+(null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=e?e.request:e)?s.quartzSchedule:s,{name:"if",hash:{},fn:t.program(11,r,0),inverse:t.program(13,r,0),data:r}))?s:"")+"
\n"},23:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.collectionSynced:e,{name:"if",hash:{},fn:t.program(24,r,0),inverse:t.program(26,r,0),data:r}))?s:""},24:function(t,e,n,a,r){return'

No paused requests

\n'},26:function(t,e,n,a,r){return'
\n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r,s,i){var o,l=null!=e?e:{};return(null!=(o=n.unless.call(l,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(1,r,0,s,i),inverse:t.noop,data:r}))?o:"")+(null!=(o=n.each.call(l,null!=e?e.requests:e,{name:"each",hash:{},fn:t.program(7,r,0,s,i),inverse:t.noop,data:r}))?o:"")+(null!=(o=n.unless.call(l,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(20,r,0,s,i),inverse:t.noop,data:r}))?o:"")},useData:!0,useDepths:!0})},function(t,e,n){var a,r,s,i,o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty;a=n(19),r=n(217),i=n(218),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.initialize=function(){return app.showPageLoader(),this.title("Status"),this.models.state=new r,this.models.state.fetch().done(function(t){return function(){return t.setView(new i({model:t.models.state})),app.showView(t.view)}}(this))},e.prototype.refresh=function(){return this.models.state.fetch()},e}(a),t.exports=s},function(t,e,n){var a,r,s=function(t,e){function n(){this.constructor=t}for(var a in e)i.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;a=n(22),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.url=function(){return config.apiRoot+"/state"},e.prototype.requestDetail=function(){var t,e;return e=this.get("activeRequests")+this.get("pausedRequests")+this.get("cooldownRequests")+this.get("pendingRequests")+this.get("cleaningRequests"),t=[{type:"active",attribute:"activeRequests",label:"active",count:this.get("activeRequests"),percent:this.get("activeRequests")/e*100,link:"/requests/active"},{type:"paused",attribute:"pausedRequests",label:"paused",count:this.get("pausedRequests"),percent:this.get("pausedRequests")/e*100,link:"/requests/paused"},{type:"cooldown",attribute:"cooldownRequests",label:"cooling down",count:this.get("cooldownRequests"),percent:this.get("cooldownRequests")/e*100,link:"/requests/cooldown"},{type:"pending",attribute:"pendingRequests",label:"pending",count:this.get("pendingRequests"),percent:this.attributes.pendingRequests/e*100,link:"/requests/pending"},{type:"cleaning",attribute:"cleaningRequests",label:"cleaning",count:this.get("cleaningRequests"),percent:this.get("cleaningRequests")/e*100,link:"/requests/cleaning"}],{requests:t,total:e}},e.prototype.taskDetail=function(){var t,e;return e=this.get("activeTasks")+this.get("lateTasks")+this.get("scheduledTasks")+this.get("cleaningTasks")+this.get("lbCleanupTasks"),t=[{type:"active",attribute:"activeTasks",label:"active",count:this.get("activeTasks"),percent:this.get("activeTasks")/e*100,link:"/tasks"},{type:"scheduled",attribute:"scheduledTasks",label:"scheduled",count:this.get("scheduledTasks"),percent:this.get("scheduledTasks")/e*100,link:"/tasks/scheduled"},{type:"overdue",attribute:"lateTasks",label:"overdue",count:this.get("lateTasks"),percent:this.get("lateTasks")/e*100,link:"/tasks/scheduled"},{type:"cleaning",attribute:"cleaningTasks",label:"cleaning",count:this.get("cleaningTasks"),percent:this.get("cleaningTasks")/e*100,link:"/tasks/cleaning"},{type:"lbCleanup",attribute:"lbCleanupTasks",label:"load balancer cleanup",count:this.get("lbCleanupTasks"),percent:this.get("lbCleanupTasks")/e*100,link:"/tasks/lbcleanup"}],{tasks:t,total:e}},e}(a),t.exports=r},function(t,e,n){(function(e){var a,r,s=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=n(201),a=function(t){function a(){return this.render=s(this.render,this),a.__super__.constructor.apply(this,arguments)}return i(a,t),a.prototype.template=n(219),a.prototype.initialize=function(){return this.listenTo(this.model,"sync",this.render)},a.prototype.captureLastState=function(){return this.lastState=e.clone(this.model.toJSON())},a.prototype.render=function(){var t,n,r,s,i,o,l,u,c,p,d,h,f,m,y,v,g,_,b;for(d=!1,u=!1,b=this.model.attributes.hostStates,p=0,f=b.length;f>p;p++)c=b[p],"DRIVER_RUNNING"===c.driverStatus&&(u=!0,c.mesosConnected&&(d=!0));if(this.$el.html(this.template({state:this.model.toJSON(),synced:this.model.synced,tasks:this.model.taskDetail().tasks,requests:this.model.requestDetail().requests,totalRequests:this.model.requestDetail().total,totalTasks:this.model.taskDetail().total,hasLeader:u,isLeaderConnected:d})),null!=this.lastState){for(i={},g=[],e.each(e.keys(this.model.attributes),function(t){return function(e){return"number"==typeof t.model.attributes[e]?g.push(e):void 0}}(this)),h=0,m=g.length;m>h;h++)v=g[h],_=this.lastState[v],y=this.model.attributes[v],_!==y&&(i[v]={direction:(y>_?"inc":"dec")+"rease",difference:""+(y>_?"+":"-")+Math.abs(y-_)});l=function(t,e){return setTimeout(function(){return t.find("a").removeClass(e).find("changeDifference").remove().end().find(".changeDifference").fadeOut(1500)},2500)};for(r in i)o=i[r],s="changed-direction-"+o.direction,t=this.$el.find('[data-state-attribute="'+r+'"]').not('[data-type="column"]'),n=t.closest(".list-group-item"),n.find("a").addClass(s).append(""+o.difference+""),t.html(this.model.attributes[r]),l(n,s)}return this.$(".chart .chart__data-point[title]").tooltip({placement:"right"}),this.captureLastState(),a.__super__.render.apply(this,arguments).afterRender()},a}(r),t.exports=a}).call(e,n(3))},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression,p=t.lambda;return'
\n'+(null!=(s=n.unless.call(o,null!=e?e.hasLeader:e,{name:"unless",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n.unless.call(o,null!=e?e.isLeaderConnected:e,{name:"unless",hash:{},fn:t.program(4,r,0),inverse:t.noop,data:r}))?s:"")+'
\n
\n

Requests

\n
\n
\n
\n \n
\n
\n
\n \n
    \n"+(null!=(s=(n.ifGT||e&&e.ifGT||l).call(o,null!=(s=null!=e?e.state:e)?s.overProvisionedRequests:s,0,{name:"ifGT",hash:{},fn:t.program(17,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=(n.ifGT||e&&e.ifGT||l).call(o,null!=(s=null!=e?e.state:e)?s.underProvisionedRequests:s,0,{name:"ifGT",hash:{},fn:t.program(19,r,0),inverse:t.noop,data:r}))?s:"")+'
\n
\n
\n
\n
\n
\n
\n
\n
\n

Tasks

\n
\n
\n
\n \n
\n
\n
\n\n\n \n"+(null!=(s=(n.ifGT||e&&e.ifGT||l).call(o,null!=(s=null!=e?e.state:e)?s.maxTaskLag:s,0,{name:"ifGT",hash:{},fn:t.program(28,r,0),inverse:t.noop,data:r}))?s:"")+'
\n
\n
\n
\n
\n
\n
\n
\n \n \n
\n
\n

Deploys

\n
\n \n
\n
\n
\n
\n
\n

Singularity scheduler instances

\n
\n \n \n \n \n \n \n \n \n \n \n \n'+(null!=(s=n.each.call(o,null!=(s=null!=e?e.state:e)?s.hostStates:s,{name:"each",hash:{},fn:t.program(38,r,0),inverse:t.noop,data:r}))?s:"")+" \n
HostnameDriver statusConnected
\n
\n
\n"},2:function(t,e,n,a,r){return' \n'},4:function(t,e,n,a,r){return' \n'},6:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression;return" "+(null!=(s=n["if"].call(o,null!=e?e.link:e,{name:"if",hash:{},fn:t.program(7,r,0),inverse:t.noop,data:r}))?s:"")+'\n \n "+(null!=(s=n["if"].call(o,null!=e?e.link:e,{name:"if",hash:{},fn:t.program(9,r,0),inverse:t.noop,data:r}))?s:"")+"\n"},7:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return''},9:function(t,e,n,a,r){return""},11:function(t,e,n,a,r){var s;return'
  • \n'+(null!=(s=n["if"].call(null!=e?e:{},null!=e?e.link:e,{name:"if",hash:{},fn:t.program(12,r,0),inverse:t.program(15,r,0),data:r}))?s:"")+"
  • \n"},12:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression;return" \n "+c((i=null!=(i=n.count||(null!=e?e.count:e))?i:l,typeof i===u?i.call(o,{name:"count",hash:{},data:r}):i))+" "+c((i=null!=(i=n.label||(null!=e?e.label:e))?i:l,typeof i===u?i.call(o,{name:"label",hash:{},data:r}):i))+" "+(null!=(s=(n.ifGT||e&&e.ifGT||l).call(o,null!=e?e.percent:e,0,{name:"ifGT",hash:{},fn:t.program(13,r,0),inverse:t.noop,data:r}))?s:"")+"\n \n"},13:function(t,e,n,a,r){return"("+t.escapeExpression((n.fixedDecimal||e&&e.fixedDecimal||n.helperMissing).call(null!=e?e:{},null!=e?e.percent:e,{name:"fixedDecimal",hash:{place:"0"},data:r}))+"%)"},15:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return' '+u((s=null!=(s=n.count||(null!=e?e.count:e))?s:o,typeof s===l?s.call(i,{name:"count",hash:{},data:r}):s))+" "+u((s=null!=(s=n.label||(null!=e?e.label:e))?s:o,typeof s===l?s.call(i,{name:"label",hash:{},data:r}):s))+"\n"},17:function(t,e,n,a,r){var s;return"
  • \n "+t.escapeExpression(t.lambda(null!=(s=null!=e?e.state:e)?s.overProvisionedRequests:s,e))+"\n Over Provisioned\n
  • \n"},19:function(t,e,n,a,r){var s;return"
  • \n \n "+t.escapeExpression(t.lambda(null!=(s=null!=e?e.state:e)?s.underProvisionedRequests:s,e))+"\n Under Provisioned\n \n
  • \n"},21:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression;return" "+(null!=(s=n["if"].call(o,null!=e?e.link:e,{name:"if",hash:{},fn:t.program(7,r,0),inverse:t.noop,data:r}))?s:"")+"\n \n "+(null!=(s=n["if"].call(o,null!=e?e.link:e,{name:"if",hash:{},fn:t.program(9,r,0),inverse:t.noop,data:r}))?s:"")+"\n"},23:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression;return'
  • \n \n "+c((i=null!=(i=n.count||(null!=e?e.count:e))?i:l,typeof i===u?i.call(o,{name:"count",hash:{},data:r}):i))+" "+c((i=null!=(i=n.label||(null!=e?e.label:e))?i:l,typeof i===u?i.call(o,{name:"label",hash:{},data:r}):i))+" "+(null!=(s=(n.ifGT||e&&e.ifGT||l).call(o,null!=e?e.percent:e,0,{name:"ifGT",hash:{},fn:t.program(13,r,0),inverse:t.noop,data:r}))?s:"")+"\n \n
  • \n"},24:function(t,e,n,a,r){return"inactive-link"},26:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return'href="'+u((s=null!=(s=n.appRoot||(null!=e?e.appRoot:e))?s:o,typeof s===l?s.call(i,{name:"appRoot",hash:{},data:r}):s))+u((s=null!=(s=n.link||(null!=e?e.link:e))?s:o,typeof s===l?s.call(i,{name:"link",hash:{},data:r}):s))+'"'},28:function(t,e,n,a,r){var s;return"
      \n
    • \n Max Task Lag:\n \n "+t.escapeExpression((n.timestampDuration||e&&e.timestampDuration||n.helperMissing).call(null!=e?e:{},null!=(s=null!=e?e.state:e)?s.maxTaskLag:s,{name:"timestampDuration",hash:{},data:r}))+"\n \n
    • \n
    \n"},30:function(t,e,n,a,r){return"color-warning"},32:function(t,e,n,a,r){return"class='color-warning'"},34:function(t,e,n,a,r){return"text-muted"},36:function(t,e,n,a,r){var s;return'
  • \n '+t.escapeExpression((n.timestampDuration||e&&e.timestampDuration||n.helperMissing).call(null!=e?e:{},null!=(s=null!=e?e.state:e)?s.oldestDeploy:s,{name:"timestampDuration",hash:{},data:r}))+"\n since last deploy\n
  • \n"},38:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression;return" \n "+c((i=null!=(i=n.hostname||(null!=e?e.hostname:e))?i:l,typeof i===u?i.call(o,{name:"hostname",hash:{},data:r}):i))+"\n "+c((n.humanizeText||e&&e.humanizeText||l).call(o,null!=e?e.driverStatus:e,{name:"humanizeText",hash:{},data:r}))+"\n \n \n"+(null!=(s=(n.ifEqual||e&&e.ifEqual||l).call(o,null!=e?e.driverStatus:e,"DRIVER_RUNNING",{name:"ifEqual",hash:{},fn:t.program(41,r,0),inverse:t.noop,data:r}))?s:"")+' \n \n '+c((n.timestampDuration||e&&e.timestampDuration||l).call(o,null!=e?e.uptime:e,{name:"timestampDuration",hash:{},data:r}))+'\n \n \n'+(null!=(s=n["if"].call(o,null!=e?e.millisSinceLastOffer:e,{name:"if",hash:{},fn:t.program(46,r,0),inverse:t.program(48,r,0),data:r}))?s:"")+" \n \n"},39:function(t,e,n,a,r){return"color-success"},41:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.mesosConnected:e,{name:"if",hash:{},fn:t.program(42,r,0),inverse:t.program(44,r,0),data:r}))?s:""},42:function(t,e,n,a,r){return' \n'},44:function(t,e,n,a,r){return' \n'},46:function(t,e,n,a,r){return" "+t.escapeExpression((n.timestampDuration||e&&e.timestampDuration||n.helperMissing).call(null!=e?e:{},null!=e?e.millisSinceLastOffer:e,{name:"timestampDuration",hash:{},data:r}))+"\n"},48:function(t,e,n,a,r){return" —\n"},50:function(t,e,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.synced:e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(50,r,0),data:r}))?s:""},useData:!0})},function(t,e,n){var a,r,s,i,o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty;a=n(19),r=n(25),i=n(221),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.initialize=function(){return this.collections.racks=new r([]),this.setView(new i({racks:this.collections.racks})),this.collections.racks.fetch(),app.showView(this.view)},e}(a),t.exports=s},function(t,e,n){(function(e){var a,r,s=function(t,e){function n(){this.constructor=t}for(var a in e)i.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;a=n(222),r=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return s(n,t),n.prototype.handleChangeType=function(t){return t&&t.preventDefault(),this.requestType=e(t.currentTarget).data("type"),this.changeType(),this.renderFormElements()},n.prototype.saveRequest=function(){var t;return t=this.request.save(),t.done(function(t){return function(e){return t.lockdown=!1,t.alert("Your Request "+e.id+" has been created"),Backbone.history.navigate("/request/"+e.id,{trigger:!0})}}(this)),t.error(function(t){return function(e){return t.postSave(),app.caughtError(),t.alert("There was a problem saving your request. The server response has been logged to your JS console.",!1),console.error(e)}}(this))},n}(a),t.exports=r}).call(e,n(1))},function(t,e,n){(function(e,a){var r,s,i,o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty;r=n(223),s=n(24),i=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return o(r,t),r.prototype.template=n(225),r.prototype.taggables=function(){var t,n,a,r;return r=(null!=(n=this.model)&&null!=(a=n.get("request"))?a.requestType:void 0)||this.requestType,t=e.pluck(this.racks.toJSON(),"id"),[{name:"owners",selector:"#owners",options:{tags:[],containerCssClass:"select-owners hide-select2-spinner",dropdownCssClass:"hidden",selectOnBlur:!0}},{name:"rackAffinity",selector:"#rackAffinity-"+r,options:{tags:t,selectOnBlur:!0}}]},r.prototype.events=function(){return e.extend(r.__super__.events.apply(this,arguments),{"click #type .btn":"handleChangeType","change #schedule-type":"handleScheduleTypeChange"})},r.prototype.initialize=function(t){return this.requestId=t.requestId,this.racks=t.racks,r.__super__.initialize.apply(this,arguments)},r.prototype.renderFormElements=function(){var t,e,n,r,s;for(s=this.taggables(),t=0,n=s.length;n>t;t++)e=s[t],r=a.extend({},{tokenSeparators:[","," "]},e.options),this[e.name]=this.$(""+e.selector).select2(r);return this.scheduleSelect=this.generateSelectBox("#schedule-type",{containerCssClass:"select2-select-box select-box-small"})},r.prototype.handleChangeType=function(t){return t?t.preventDefault():void 0},r.prototype.handleScheduleTypeChange=function(t){var e,n;return e={schedule:"eg: */5 * * * *",quartzSchedule:"eg: 0 */5 * * * ?"},n=this.$("#schedule-type").val(),this.$("#schedule").attr("placeholder",e[n])},r.prototype.changeType=function(t){return t&&t.preventDefault(),this.$("#type .btn").removeClass("active"),this.$("#type [data-type='"+this.requestType+"']").addClass("active"),this.$(".expandable").addClass("hide"),this.$("#"+this.requestType+"-expandable").removeClass("hide"),this.checkForm()},r.prototype.submit=function(t){var e,n,a,r,i,o,l,u,c,p,d;return t.preventDefault(),this.$('button[type="submit"]').attr("disabled")?void 0:(this.$("[data-alert-location='form']").remove(),i={},i.id=(null!=(r=this.model)?r.id:void 0)||this.$("#id").val(),i.requestType=this.$("#type .active").data("type"),p=i.requestType,i.owners=this.getSelect2Val("#owners"),c=this.$("#slavePlacement").val(),c.length>0&&(i.slavePlacement=c),"SERVICE"!==p&&"WORKER"!==p||(i.daemon=!0,n=parseInt(this.$("#instances-"+p).val()),n&&(i.instances=n),d=parseInt(this.$("#waitAtLeast-"+p).val()),d&&(i.waitAtLeastMillisAfterTaskFinishesForReschedule=d),i.rackSensitive=this.$("#rack-sensitive-"+p).is(":checked"),i.hideEvenNumberAcrossRacksHint=this.$("#hide-distribute-across-racks-hint-"+p).is(":checked"),i.rackAffinity=this.getSelect2Val("#rackAffinity-"+p)),"SCHEDULED"!==p&&"ON_DEMAND"!==p&&"RUN_ONCE"!==p||(a=parseInt(this.$("#killOldNRL-"+p).val()),a&&(i.killOldNonLongRunningTasksAfterMillis=a)),"ON_DEMAND"!==p&&"RUN_ONCE"!==p||(i.daemon=!1),"SCHEDULED"===p&&(l=this.$("#schedule").val(),u=this.$("#schedule-type").val(),o=parseInt(this.$("#retries-on-failure").val()),e=parseInt(this.$("#scheduled-expected-runtime").val()),l&&(i[u]=l),"quartzSchedule"===u&&(i.schedule=""),o&&(i.numRetriesOnFailure=o),e&&(i.scheduledExpectedRuntimeMillis=e)),"SERVICE"===p&&(i.loadBalanced=this.$("#load-balanced").is(":checked")),this.request=new s(i),this.request.raw=!0,this.request.url=config.apiRoot+"/requests",this.request.isNew=function(){return!0},this.requestObject=i,this.lockdown=!0,this.$('button[type="submit"]').attr("disabled","disabled"),this.saveRequest())},r.prototype.afterRender=function(){return this.renderFormElements()},r}(r),t.exports=i}).call(e,n(3),n(1))},function(t,e,n){(function(e,a){var r,s,i,o=function(t,e){return function(){return t.apply(e,arguments)}},l=function(t,e){function n(){this.constructor=t}for(var a in e)u.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},u={}.hasOwnProperty;s=n(201),i=n(224),r=function(t){function n(){return this.getSelect2Val=o(this.getSelect2Val,this),this.setSelect2Val=o(this.setSelect2Val,this),this.multiList=o(this.multiList,this),this.multiMap=o(this.multiMap,this),this.valOrNothing=o(this.valOrNothing,this),n.__super__.constructor.apply(this,arguments)}return l(n,t),n.prototype.events=function(){return e.extend(n.__super__.events.apply(this,arguments),{"change input":"checkForm",'keyup input[type="text"]':"checkForm",'blur input[type="text"]':"checkForm","submit form":"submit","click #reset-button":"render"})},n.prototype.initialize=function(){return this.checkForm=e.debounce(this.checkForm,100)},n.prototype.render=function(t){var e;return t&&t.preventDefault(),this.$el.html(this.template({config:config,model:null!=(e=this.model)?e.toJSON():void 0})),this.checkForm(),this.afterRender()},n.prototype.afterRender=function(){},n.prototype.checkForm=function(){var t,e,n,r,s,i,o,l;if(!this.lockdown){for(this.checkMultiInputs(),l=!0,o=this.$(".required"),s=0,i=o.length;i>s;s++)n=o[s],e=a(n).children("input"),e.is(":visible")&&!e.val()&&(l=!1);return r=this.$("#type"),r.length&&!r.find(".active").length&&(l=!1),t=this.$('button[type="submit"]'),l?(t.removeAttr("disabled"),t.parent().attr("title",void 0),t.parent().tooltip("destroy")):(t.attr("disabled","disabled"),t.parent().attr("title","Please fill in all the required fields"),t.parent().tooltip({placement:"right"}))}},n.prototype.alert=function(t,e){var n;return null==e&&(e=!0),this.$("[data-alert-location='form']").remove(),n=e?"alert-success":"alert-danger",this.$("form").append("

    "+t+"

    ")},n.prototype.checkMultiInputs=function(){var t,n,r,s,i,o,l,u,c,p,d,h,f,m,y;for(m=this.$el.find(".multi-input"),y=[],l=0,d=m.length;d>l;l++){for(t=m[l],r=a(t).children(),s=a(e.first(r)),i=a(e.last(r)),p=0,h=r.length;h>p;p++)n=r[p],n=a(n),c=n[0]!==i[0],u=n[0]!==s[0],f=!n.is(":focus"),!n.val()&&c&&f&&n.remove();i.val()?(o=a(''),o.attr("class",i.attr("class")),o.attr("placeholder",i.attr("placeholder")),y.push(r.parent().append(o))):y.push(void 0)}return y},n.prototype.valOrNothing=function(t,e){var n,a;return n=null!=e?e.find(t):this.$(t),n.is(":visible")?"checkbox"===n.attr("type")?n.is(":checked"):(a=n.val(),a?a:n.parents(".required").length?"":void 0):void 0},n.prototype.base64Encode=function(t){return null!=t?btoa(t):void 0},n.prototype.multiMap=function(t){var n,r,s,i,o,l;if(r=this.$(t),r.is(":visible")){for(o={},s=0,i=r.length;i>s;s++)n=r[s],n=a(n),l=n.val().split("="),l.length<2||(l.length>2&&(l[1]=l.slice(1,l.length)),o[l[0]]=l[1]);return e.isEmpty(o)?void 0:o}},n.prototype.multiList=function(t){var n,r,s,i,o,l;if(r=this.$(t),r.is(":visible")){for(o=[],s=0,i=r.length;i>s;s++)n=r[s],n=a(n),l=n.val(),l&&o.push(l);return e.isEmpty(o)?void 0:o}},n.prototype.generateSelectBox=function(t,e){return null==e&&(e={}),this.$(t).select2(e)},n.prototype.setSelect2Val=function(t,e){return this.$(t).select2("val",e)},n.prototype.getSelect2Val=function(t){return this.$(t).select2("val")},n.prototype.renderTaggable=function(t,n){return n=e.map(n,function(t){return{id:t,text:t}}),t.select2("data",n)},n.prototype.postSave=function(){return this.lockdown=!1,this.checkForm(),this.$("#reset-button").removeClass("hide")},n}(s),t.exports=r}).call(e,n(3),n(1))},,function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s,i,o=t.escapeExpression,l=t.lambda;return' Editing '+o(l(null!=(s=null!=e?e.model:e)?s.id:s,e))+"\n"},3:function(t,e,n,a,r){return" New Request\n"},5:function(t,e,n,a,r){return"required"},7:function(t,e,n,a,r){return' \n \n'},9:function(t,e,n,a,r){return'

    \n'},11:function(t,e,n,a,r){var s,i=null!=e?e:{};return'
    \n \n
    \n'},12:function(t,e,n,a,r){return' class="subtle"'},14:function(t,e,n,a,r){return'disabled="disabled"'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i=null!=e?e:{};return'
    \n\n
    \n

    \n'+(null!=(s=n["if"].call(i,null!=(s=null!=e?e.model:e)?s.id:s,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(3,r,0),data:r}))?s:"")+'

    \n \n
    \n'+(null!=(s=n.unless.call(i,null!=(s=null!=e?e.model:e)?s.id:s,{name:"unless",hash:{},fn:t.program(7,r,0),inverse:t.noop,data:r}))?s:"")+'
    \n
    \n \n \n
    \n
    \n \n
    \n \n \n \n \n \n
    \n
    \n\n'+(null!=(s=n["if"].call(i,null!=(s=null!=e?e.model:e)?s.id:s,{name:"if",hash:{},fn:t.program(9,r,0),inverse:t.noop,data:r}))?s:"")+'\n
    \n \n \n
    \n\n \n\n \n\n \n\n \n\n \n\n
    \n \n \n \n \n
    \n \n\n
    \n
    \n'},useData:!0})},function(t,e,n){(function(e){var a,r,s,i,o,l=function(t,e){function n(){this.constructor=t}for(var a in e)u.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=n(19),r=n(25),s=n(24),o=n(227),i=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return l(n,t),n.prototype.initialize=function(t){return this.requestId=t.requestId,this.models.request=new s({id:this.requestId}),this.models.request.raw=!0,this.collections.racks=new r([]),this.setView(new o({requestId:this.requestId,model:this.models.request,racks:this.collections.racks})),e.when(this.models.request.fetch(),this.collections.racks.fetch()).then(function(t){return function(){return t.view.renderEditForm()}}(this)),app.showView(this.view)},n}(a),t.exports=i}).call(e,n(1))},function(t,e,n){(function(e,a){var r,s,i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=n(222),s=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return i(n,t),n.prototype.initialize=function(){return n.__super__.initialize.apply(this,arguments),app.$page.hide()},n.prototype.handleScheduleTypeChange=function(t){var a;return n.__super__.handleScheduleTypeChange.apply(this,arguments),a=e(t.currentTarget).val(),this.$("#schedule").val(this.model.get("request")[a])},n.prototype.renderEditForm=function(){var t,e,n,a,r,s,i;for(r=this.model.toJSON(),this.requestType=r.request.requestType,this.render(),this.changeType(),n=this.taggables(),t=0,e=n.length;e>t;t++)s=n[t],this.renderTaggable(this[s.name],r.request[s.name]);return this.$("#slavePlacement").val(r.request.slavePlacement),"SERVICE"===this.requestType,this.$("#instances-"+this.requestType).val(r.request.instances),this.$("#rack-sensitive-"+this.requestType).prop("checked",r.request.rackSensitive),this.$("#hide-distribute-across-racks-hint-"+this.requestType).prop("checked",r.request.hideEvenNumberAcrossRacksHint),this.$("#load-balanced").prop("checked",r.request.loadBalanced),"SCHEDULED"!==(a=this.requestType)&&"ON_DEMAND"!==a&&"RUN_ONCE"!==a||this.$("#killOldNRL-"+this.requestType).val(r.request.killOldNonLongRunningTasksAfterMillis),"WORKER"===this.requestType&&this.$("#waitAtLeast-"+this.requestType).val(r.request.waitAtLeastMillisAfterTaskFinishesForReschedule),"SCHEDULED"===this.requestType&&(this.$("#schedule").val(r.request.quartzSchedule),this.setSelect2Val("#schedule-type","quartzSchedule"),this.$("#retries-on-failure").val(r.request.numRetriesOnFailure),this.$("#scheduled-expected-runtime").val(r.request.scheduledExpectedRuntimeMillis)),i=this.$("#type .btn").prop("disabled",!0),this.$("[data-type='"+this.requestType+"']").prop("disabled",!1),this.$("[data-type='"+this.requestType+"']").attr("data-tooltip","cannot-change"),this.setTooltips(),app.$page.show()},n.prototype.setTooltips=function(){return this.$("[data-tooltip='cannot-change']").tooltip({title:"Option cannot be altered after creation",placement:"top",container:"body"})},n.prototype.saveRequest=function(){var t;return a.contains(["RUN_ONCE","ON_DEMAND"],this.requestType)&&this.model.unset("instances"),this.model.url=config.apiRoot+"/requests",this.model.isNew=function(){return!0},t=this.model.save(this.requestObject),t.done(function(t){return function(e){return t.lockdown=!1,t.alert("Your Request "+e.id+" has been updated"),Backbone.history.navigate("/request/"+e.id,{trigger:!0})}}(this)),t.error(function(t){return function(e){return t.postSave(),app.caughtError(),t.alert("There was a problem saving your request. The server response has been logged to your JS console.",!1),console.error(e)}}(this))},n}(r),t.exports=s}).call(e,n(1),n(3))},function(t,e,n){var a,r,s,i,o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty;a=n(19),s=n(229),i=n(24),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.initialize=function(t){var e;return e=t.requestId,app.showPageLoader(),this.title("New Deploy"),this.models.request=new i({id:e}),this.models.request.fetch().done(function(t){return function(){return t.setView(new s({model:t.models.request})),app.showView(t.view)}}(this))},e}(a),t.exports=r},function(t,e,n){(function(e,a){var r,s,i,o,l=function(t,e){function n(){this.constructor=t}for(var a in e)u.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},u={}.hasOwnProperty;s=n(223),r=n(230),o=n(28),i=function(t){function s(){return s.__super__.constructor.apply(this,arguments)}return l(s,t),s.prototype.template=n(231),s.prototype.artifactTemplates={embedded:n(232),external:n(233),s3:n(234)},s.prototype.portMapTemplate=n(235),s.prototype.volumeTemplate=n(236),s.prototype.events=function(){return e.extend(s.__super__.events.apply(this,arguments),{"change #executor-type":"changeExecutor","change #container-type":"changeContainer","click #artifact-button-row button":"addArtifact", "click .remove-button":"removeArtifact","click #docker-port-button-row button":"addPortMap","click .remove-port-button":"removePortMap","click #docker-volume-button-row button":"addVolume","click .remove-volume-button":"removeVolume"})},s.prototype.changeExecutor=function(t){var e;return t.preventDefault(),e=t.currentTarget.options[t.currentTarget.selectedIndex].value,"default"===e?(a(".custom-executor").addClass("hide"),a(".default-executor").removeClass("hide")):(a(".custom-executor").removeClass("hide"),a(".default-executor").addClass("hide"))},s.prototype.changeContainer=function(t){var e;return t.preventDefault(),e=t.currentTarget.options[t.currentTarget.selectedIndex].value,"docker"===e?a(".container-info").removeClass("hide"):a(".container-info").addClass("hide")},s.prototype.addArtifact=function(t){var e,n;return t.preventDefault(),n=a(t.currentTarget).data("artifact-type"),e=this.$("#custom-artifacts"),e.append(this.artifactTemplates[n]({timestamp:+o()}))},s.prototype.removeArtifact=function(t){return t.preventDefault(),a(t.currentTarget).parent().remove()},s.prototype.addPortMap=function(t){var e;return t.preventDefault(),e=this.$("#docker-port-mappings"),e.append(this.portMapTemplate({timestamp:+o()}))},s.prototype.removePortMap=function(t){return t.preventDefault(),a(t.currentTarget).parent().remove()},s.prototype.addVolume=function(t){var e;return t.preventDefault(),e=this.$("#docker-volumes"),e.append(this.volumeTemplate({timestamp:+o()}))},s.prototype.removeVolume=function(t){return t.preventDefault(),a(t.currentTarget).parent().remove()},s.prototype.parseIntList=function(t){return t?e.map(t,function(t){return parseInt(t)}):void 0},s.prototype.submit=function(t){var e,n,s,i,o,l,u,c,p,d,h,f,m,y,v,g,_,b,k,T,w;if(t.preventDefault(),!this.$('button[type="submit"]').attr("disabled")){if(this.$("[data-alert-location='form']").remove(),h={},h.requestId=this.model.id,h.id=this.$("#id").val(),m=this.$("#executor-type").val(),c=this.$("#command").val(),"default"===m)h.uris=this.multiList(".artifact-uri"),h.arguments=this.multiList(".cmd-line-arg"),h.command=c;else if(h.customExecutorCmd=this.valOrNothing("#custom-executor-command"),h.executorData={},h.executorData.cmd=c,h.executorData.extraCmdLineArgs=this.multiList(".extra-arg"),h.executorData.user=this.valOrNothing("#user"),h.executorData.sigKillProcessesAfterMillis=parseInt(this.valOrNothing("#kill-after-millis"))||void 0,h.executorData.successfulExitCodes=this.parseIntList(this.multiList(".successful-exit-code")),h.executorData.maxTaskThreads=this.valOrNothing("#max-task-threads"),h.executorData.loggingTag=this.valOrNothing("#logging-tag"),h.executorData.loggingExtraFields=this.multiMap(".extra-field"),h.executorData.preserveTaskSandboxAfterFinish=this.valOrNothing("#preserve-sandbox"),h.executorData.skipLogrotateAndCompress=this.valOrNothing("#skip-lr-compress"),h.executorData.loggingS3Bucket=this.valOrNothing("#logging-s3-bucket"),h.executorData.maxOpenFiles=this.valOrNothing("#max-open-files"),h.executorData.runningSentinel=this.valOrNothing("#running-sentinel"),n=a(".artifact"),n.length)for(y=0,_=n.length;_>y;y++)e=n[y],e=a(e),T=e.data("type"),"embedded"===T?(h.executorData.embeddedArtifacts||(h.executorData.embeddedArtifacts=[]),h.executorData.embeddedArtifacts.push({name:this.valOrNothing(".name",e),filename:this.valOrNothing(".filename",e),md5sum:this.valOrNothing(".md5",e),content:this.base64Encode(this.valOrNothing(".content",e))})):"external"===T?(h.executorData.externalArtifacts||(h.executorData.externalArtifacts=[]),h.executorData.externalArtifacts.push({name:this.valOrNothing(".name",e),filename:this.valOrNothing(".filename",e),md5sum:this.valOrNothing(".md5",e),url:this.valOrNothing(".url",e),filesize:parseInt(this.valOrNothing(".file-size",e))||void 0})):"s3"===T&&(h.executorData.s3Artifacts||(h.executorData.s3Artifacts=[]),h.executorData.s3Artifacts.push({name:this.valOrNothing(".name",e),filename:this.valOrNothing(".filename",e),md5sum:this.valOrNothing(".md5",e),s3Bucket:this.valOrNothing(".bucket",e),s3ObjectKey:this.valOrNothing(".object-key",e),filesize:parseInt(this.valOrNothing(".file-size",e))||void 0}));if(p=this.$("#container-type").val(),"docker"===p){if(h.containerInfo={},h.containerInfo.type="DOCKER",h.containerInfo.docker={},h.containerInfo.docker.image=this.$("#docker").val(),h.containerInfo.docker.network=this.$("#dockernetwork").val(),h.containerInfo.docker.parameters=this.multiMap(".docker-paramter"),h.containerInfo.docker.privileged=this.valOrNothing("#privileged"),h.containerInfo.docker.forcePullImage=this.valOrNothing("#force-pull"),i=a(".docker-port"),i.length)for(v=0,b=i.length;b>v;v++)s=i[v],s=a(s),h.containerInfo.docker.portMappings||(h.containerInfo.docker.portMappings=[]),h.containerInfo.docker.portMappings.push({containerPortType:this.valOrNothing(".cont-port-type",s),containerPort:this.valOrNothing(".cont-port",s),hostPortType:this.valOrNothing(".host-port-type",s),hostPort:this.valOrNothing(".host-port",s),protocol:this.valOrNothing(".protocol",s)});if(l=a(".docker-volume"),l.length)for(g=0,k=l.length;k>g;g++)o=l[g],o=a(o),h.containerInfo.volumes||(h.containerInfo.volumes=[]),h.containerInfo.volumes.push({containerPath:this.valOrNothing(".cont-path",o),hostPath:this.valOrNothing(".host-path",o),mode:this.valOrNothing(".volume-mode",o)})}return h.resources={cpus:parseFloat(this.valOrNothing("#cpus"))||config.defaultCpus,memoryMb:parseInt(this.valOrNothing("#memory-mb"))||config.defaultMemory,numPorts:parseInt(this.valOrNothing("#num-ports"))||0},h.env=this.multiMap(".env"),h.healthcheckUri=this.valOrNothing("#healthcheck-uri"),h.healthcheckIntervalSeconds=this.valOrNothing("#healthcheck-interval"),h.healthcheckTimeoutSeconds=this.valOrNothing("#healthcheck-timeout"),h.healthcheckPortIndex=this.valOrNothing("#healthcheck-port-index"),h.healthcheckMaxTotalTimeoutSeconds=this.valOrNothing("#total-healthcheck-timeout"),h.deployHealthTimeoutSeconds=this.valOrNothing("#deploy-healthcheck-timeout"),h.healthCheckProtocol=this.valOrNothing("#hc-protocol"),h.skipHealthchecksOnDeploy=this.valOrNothing("#skip-healthcheck"),h.considerHealthyAfterRunningForSeconds=this.valOrNothing("#consider-healthy-after"),h.serviceBasePath=this.valOrNothing("#service-base-path"),h.loadBalancerGroups=this.multiList(".lb-group"),h.loadBalancerOptions=this.multiMap(".lb-option"),h.loadBalancerPortIndex=this.valOrNothing("#lb-port-index"),f={},f.deploy=h,w=this.valOrNothing("#deploy-to-unpause"),w&&(f.unpauseOnSuccessfulDeploy=w),d=new r(f,{requestId:this.model.id}),u=d.save(),this.lockdown=!0,this.$('button[type="submit"]').attr("disabled","disabled"),u.error(function(t){return function(e){return t.postSave(),app.caughtError(),t.alert("There was a problem: "+e.responseText,!1)}}(this)),u.done(function(t){return function(){return t.lockdown=!1,t.postSave(),t.alert("Deploy successful!")}}(this))}},s}(s),t.exports=i}).call(e,n(3),n(1))},function(t,e,n){var a,r,s=function(t,e){function n(){this.constructor=t}for(var a in e)i.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;r=n(22),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.url=function(){return this.deployId?config.apiRoot+"/history/request/"+this.requestId+"/deploy/"+this.deployId:config.apiRoot+"/deploys"},e.prototype.isNew=function(){return!0},e.prototype.initialize=function(t,e){this.requestId=e.requestId,this.deployId=e.deployId},e}(r),t.exports=a},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s,i=null!=e?e:{};return'
    \n

    Deploy Health

    \n
    \n'+(null!=(s=(n.ifEqual||e&&e.ifEqual||n.helperMissing).call(i,null!=(s=null!=e?e.model:e)?s.type:s,"SERVICE",{name:"ifEqual",hash:{},fn:t.program(2,r,0),inverse:t.program(4,r,0),data:r}))?s:"")+"
    \n
    \n\n"+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=e?e.model:e)?s.request:s)?s.loadBalanced:s,{name:"if",hash:{},fn:t.program(6,r,0),inverse:t.noop,data:r}))?s:"")},2:function(t,e,n,a,r){return'

    Healthcheck

    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n'},4:function(t,e,n,a,r){return'
    \n \n \n
    \n'},6:function(t,e,n,a,r){var s;return'
    \n

    Load Balancer

    \n
    \n
    \n \n \n
    \n
    \n \n
    \n \n
    \n
    \n
    \n \n
    \n \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n'},7:function(t,e,n,a,r){return"required"},9:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=e?e.model:e)?s.paused:s,{name:"if",hash:{},fn:t.program(10,r,0),inverse:t.noop,data:r}))?s:""},10:function(t,e,n,a,r){return'
    \n
    \n \n
    \n
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=t.escapeExpression,u=t.lambda;return'

    \n New deploy for '+l(u(null!=(s=null!=e?e.model:e)?s.id:s,e))+'\n

    \n\n
    \n
    \n
    \n \n \n
    \n\n
    \n
    \n
    \n

    Executor Info

    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n\n
    \n
    \n

    Default Executor Settings

    \n\n \n
    \n \n
    \n \n \n
    \n \n
    \n
    \n
    \n\n
    \n
    \n

    Custom Executor Settingss

    \n\n
    \n \n \n
    \n\n
    \n \n
    \n \n
    \n
    \n\n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n \n
    \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n\n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n
    \n \n
    \n
    \n
    \n
    \n\n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n\n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n\n
    \n \n \n
    \n
    \n\n
    \n

    Custom executor artifacts

    \n\n
    \n\n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n\n
    \n
    \n
    \n

    Container Info

    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n\n
    \n
    \n

    Docker Settings

    \n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n\n
    \n \n
    \n \n
    \n
    \n\n
    \n\n
    \n
    \n \n
    \n
    \n\n
    \n\n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n\n
    \n

    Resources

    \n
    \n
    \n
    \n \n \n
    \n
    \n \n \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n\n
    \n

    Variables

    \n
    \n \n
    \n \n
    \n
    \n
    \n \n'+(null!=(s=n["if"].call(o,null!=(s=null!=e?e.model:e)?s.daemon:s,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:"")+"\n"+(null!=(s=n["if"].call(o,null!=(s=null!=e?e.model:e)?s.daemon:s,{name:"if",hash:{},fn:t.program(9,r,0),inverse:t.noop,data:r}))?s:"")+'\n
    \n \n \n \n \n
    \n
    \n\n
    \n\n
    \n
    \n'},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return'
    \n
    Embedded artifact
    \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n
    \n"},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return'
    \n
    External artifact
    \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n
    \n"},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return'
    \n
    S3 artifact
    \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n
    \n"},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return'
    \n
    Docker Port Mapping
    \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n
    \n'},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return'
    \n
    Docker Volume
    \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n
    \n'},useData:!0})},function(t,e,n){(function(e){var a,r,s,i,o,l,u,c,p,d,h,f,m,y,v,g,_=function(t,e){return function(){return t.apply(e,arguments)}},b=function(t,e){function n(){this.constructor=t}for(var a in e)k.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},k={}.hasOwnProperty;a=n(19),i=n(24),u=n(238),g=n(239),v=n(240),f=n(242),s=n(151),l=n(243),h=n(244),m=n(20),p=n(245),r=n(247),y=n(249),d=n(250),o=n(252),c=function(t){function a(){return this.addRequestInfo=_(this.addRequestInfo,this),a.__super__.constructor.apply(this,arguments)}return b(a,t),a.prototype.templates={requestHistoryMsg:n(254),stats:n(255),activeTasks:n(256),scheduledTasks:n(257),taskHistory:n(258),deployHistory:n(259),requestHistory:n(260)},a.prototype.initialize=function(t){return this.requestId=t.requestId,this.title(this.requestId),this.models.request=new i({id:this.requestId}),this.models.activeDeployStats=new u({requestId:this.requestId,deployId:void 0}),this.collections.taskCleanups=new v,this.collections.activeTasks=new f([],{requestId:this.requestId,state:"active"}),this.collections.scheduledTasks=new g([],{requestId:this.requestId,state:"scheduled"}),this.collections.requestHistory=new h([],{requestId:this.requestId}),this.collections.taskHistory=new s([],{params:{requestId:this.requestId}}),this.collections.deployHistory=new l([],{requestId:this.requestId}),this.collections.requests=new m([],{}),this.subviews.header=new d({model:this.models.request,taskCleanups:this.collections.taskCleanups,activeTasks:this.collections.activeTasks}),this.subviews.actionExpirations=new o({model:this.models.request}),this.subviews.requestHistoryMsg=new y({collection:this.collections.requestHistory,template:this.templates.requestHistoryMsg,extraRenderData:function(t){return function(e){return{request:t.models.request.toJSON()}}}(this)}),this.subviews.stats=new y({model:this.models.activeDeployStats,template:this.templates.stats}),this.subviews.activeTasks=new y({collection:this.collections.activeTasks,template:this.templates.activeTasks}),this.subviews.scheduledTasks=new y({collection:this.collections.scheduledTasks,template:this.templates.scheduledTasks,extraRenderData:function(t){return function(e){return{request:t.models.request.toJSON()}}}(this)}),this.subviews.taskHistory=new r({collection:this.collections.taskHistory,template:this.templates.taskHistory,extraRenderData:function(t){return function(e){return{request:t.models.request.toJSON()}}}(this)}),this.subviews.deployHistory=new r({collection:this.collections.deployHistory,template:this.templates.deployHistory}),this.subviews.requestHistory=new r({collection:this.collections.requestHistory,template:this.templates.requestHistory}),this.models.request.on("sync",function(t){return function(){var e;return e=t.models.request.get("activeDeploy"),null==(null!=e?e.id:void 0)||t.models.activeDeployStats.deployId?void 0:(t.models.activeDeployStats.deployId=e.id,t.models.activeDeployStats.fetch())}}(this)),this.setView(new p(e.extend({requestId:this.requestId,subviews:this.subviews},{model:this.models.request,collection:this.collections.requests}))),this.refresh(),app.showView(this.view)},a.prototype.addRequestInfo=function(){var t,e,n,a,r;for(n=this.collections.taskHistory.models,a=[],t=0,e=n.length;e>t;t++)r=n[t],a.push(r.attributes.canBeRunNow=this.models.request.attributes.canBeRunNow);return a},a.prototype.refresh=function(){var t,e;return t=this.models.request.fetch(),t.error(function(t){return function(){return t.ignore404,app.caughtError()}}(this)),t.success(function(t){return function(){return t.models.request.set("starred",t.collections.requests.isStarred(t.models.request.id))}}(this)),null!=this.models.activeDeployStats.deployId&&this.models.activeDeployStats.fetch().error(this.ignore404),this.collections.taskCleanups.fetch().error(this.ignore404),this.collections.activeTasks.fetch().error(this.ignore404),this.collections.scheduledTasks.fetch().error(this.ignore404),this.collections.scheduledTasks.fetch({reset:!0}).error(this.ignore404),1===this.collections.requestHistory.currentPage&&(e=this.collections.requestHistory.fetch(),e.error(function(t){return function(){return t.ignore404}}(this)),t.error(function(t){return function(){return e.done(function(){return 0===t.collections.requestHistory.length?app.router.notFound():void 0})}}(this))),t.done(function(t){return function(){return 1===t.collections.taskHistory.currentPage?t.collections.taskHistory.fetch({error:t.ignore404,success:t.addRequestInfo}):void 0}}(this)),1===this.collections.deployHistory.currentPage?this.collections.deployHistory.fetch().error(this.ignore404):void 0},a}(a),t.exports=c}).call(e,n(3))},function(t,e,n){var a,r,s=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;a=n(22),r=function(t){function e(){return this.initialize=s(this.initialize,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.propertyFilters=["deployResult"],e.prototype.url=function(){return config.apiRoot+"/history/request/"+this.requestId+"/deploy/"+this.deployId},e.prototype.initialize=function(t){this.requestId=t.requestId,this.deployId=t.deployId},e.prototype.parse=function(t){return t.id=t.deployMarker.requestId+"-"+t.deployMarker.deployId+"-"+t.deployMarker.timestamp},e}(a),t.exports=r},function(t,e,n){(function(e){var a,r,s,i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;a=n(21),r=n(168),s=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return i(n,t),n.prototype.model=r,n.prototype.comparatorMap={active:function(t,e){return t.get("taskId").startedAt-e.get("taskId").startedAt},scheduled:function(t,e){return t.get("pendingTask").pendingTaskId.nextRunAt-e.get("pendingTask").pendingTaskId.nextRunAt},cleaning:void 0},n.prototype.propertyFilterMap={active:["offer.hostname","taskId","mesosTask.resources","rackId","taskRequest.request.requestType"]},n.prototype.url=function(){var t,n;return n=null!=this.requestId?"/request/"+this.requestId:"",t=e.param({property:this.propertyFilterMap[this.state]||this.addPropertyString||[]},!0),config.apiRoot+"/tasks/"+this.state+n+"?"+t},n.prototype.initialize=function(t,e){return null==t&&(t=[]),this.state=e.state,this.requestId=e.requestId,this.addPropertyString=e.addPropertyString,this.comparator=this.comparatorMap[this.state]},n}(a),t.exports=s}).call(e,n(1))},function(t,e,n){var a,r,s,i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;a=n(21),r=n(241),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.model=r,e.prototype.comparator="timestamp",e.prototype.url=function(){return config.apiRoot+"/tasks/cleaning"},e}(a),t.exports=s},function(t,e,n){var a,r,s,i,o=function(t,e){return function(){return t.apply(e,arguments)}},l=function(t,e){function n(){this.constructor=t}for(var a in e)u.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},u={}.hasOwnProperty;s=n(22),r={USER_REQUESTED:function(t){var e;return"Task is being shut down due to being manually killed by "+(null!=(e=t.user)?e:"(anonymous)")+"."}},a={USER_REQUESTED:!0},i=function(t){function e(){return this.url=o(this.url,this),e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.url=function(){return config.apiRoot+"/tasks/task/"+this.get("id")},e.prototype.initialize=function(){},e.prototype.parse=function(t){var e,n;return r[t.cleanupType]&&(t.message=r[t.cleanupType](t)),t.isImmediate=null!=(e=a[t.cleanupType])?e:!1,t.id=t.taskId.id+"-"+t.timestamp,t.requestId=null!=(n=t.taskId)?n.requestId:void 0,t},e}(s),t.exports=i},function(t,e,n){var a,r,s,i=function(t,e){return function(){return t.apply(e,arguments)}},o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty;a=n(21),r=n(152),s=function(t){function e(){return this.initialize=i(this.initialize,this),this.url=i(this.url,this),e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.url=function(){return config.apiRoot+"/history/request/"+this.requestId+"/tasks/"+this.state},e.prototype.initialize=function(t,e){this.requestId=e.requestId,this.state=e.state},e.prototype.parse=function(t){var e,n,a;for(e=0,n=t.length;n>e;e++)a=t[e],a.id=a.taskId.id,a.deployId=a.taskId.deployId;return t=t.sort(function(t,e){return t.taskId.instanceNo>e.taskId.instanceNo})},e.prototype.getTasksForDeploy=function(t){return this.filter(function(e){return function(e){return e.get("taskId").deployId===t}}(this))},e}(r),t.exports=s},function(t,e,n){var a,r,s=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=n(152),a=function(t){function e(){return this.initialize=s(this.initialize,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.url=function(){return config.apiRoot+"/history/request/"+this.requestId+"/deploys"},e.prototype.comparator=void 0,e.prototype.initialize=function(t,e){this.requestId=e.requestId},e.prototype.parse=function(t){var e,n,a;for(n=0,a=t.length;a>n;n++)e=t[n],e.id=e.deployMarker.deployId;return t},e}(r),t.exports=a},function(t,e,n){(function(e){var a,r,s,i=function(t,e){return function(){return t.apply(e,arguments)}},o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty;r=n(152),a=n(22),s=function(t){function n(){return this.initialize=i(this.initialize,this),this.comparator=i(this.comparator,this),n.__super__.constructor.apply(this,arguments)}var r;return o(n,t),n.prototype.model=r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.idAttribute="createdAt",e}(a),n.prototype.url=function(){return config.apiRoot+"/history/request/"+this.requestId+"/requests"},n.prototype.comparator=function(t,e){return e.get("createdAt")-t.get("createdAt")},n.prototype.initialize=function(t,e){this.requestId=e.requestId},n.prototype.fetch=function(t){return null==t&&(t={}),t=e.extend(t,{data:e.extend(t.data||{},{orderDirection:"DESC"})}),n.__super__.fetch.call(this,t)},n}(r),t.exports=s}).call(e,n(3))},function(t,e,n){(function(e,a){var r,s,i,o,l,u=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function n(){this.constructor=t}for(var a in e)p.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},p={}.hasOwnProperty;l=n(201),r=n(230),i=n(169),o=n(164),s=function(t){function r(){return this.cancelDeploy=u(this.cancelDeploy,this),this.stepDeploy=u(this.stepDeploy,this),this.runTask=u(this.runTask,this),this.revertSkipHealthchecks=u(this.revertSkipHealthchecks,this),this.revertScale=u(this.revertScale,this),this.revertPause=u(this.revertPause,this),this.cancelBounce=u(this.cancelBounce,this),this.makeSkipHealthchecksPermanent=u(this.makeSkipHealthchecksPermanent,this),this.makePausePermanent=u(this.makePausePermanent,this),this.makeScalePermanent=u(this.makeScalePermanent,this),this.exitCooldownRequest=u(this.exitCooldownRequest,this),this.enableHealthchecks=u(this.enableHealthchecks,this),this.disableHealthchecks=u(this.disableHealthchecks,this),this.bounceRequest=u(this.bounceRequest,this),this.unpauseRequest=u(this.unpauseRequest,this),this.pauseRequest=u(this.pauseRequest,this),this.scaleRequest=u(this.scaleRequest,this),this.rerunTask=u(this.rerunTask,this),this.runRequest=u(this.runRequest,this),this.removeRequest=u(this.removeRequest,this),this.viewObjectJson=u(this.viewObjectJson,this),this.viewJson=u(this.viewJson,this),r.__super__.constructor.apply(this,arguments)}return c(r,t),r.prototype.template=n(246),r.prototype.events=function(){return e.extend(r.__super__.events.apply(this,arguments),{'click [data-action="viewJSON"]':"viewJson",'click [data-action="viewObjectJSON"]':"viewObjectJson",'click [data-action="remove"]':"removeRequest",'click [data-action="run-request-now"]':"runRequest",'click [data-action="rerun-task"]':"rerunTask",'click [data-action="pause"]':"pauseRequest",'click [data-action="scale"]':"scaleRequest",'click [data-action="unpause"]':"unpauseRequest",'click [data-action="bounce"]':"bounceRequest",'click [data-action="exit-cooldown"]':"exitCooldownRequest",'click [data-action="starToggle"]':"toggleStar",'click [data-action="disableHealthchecks"]':"disableHealthchecks",'click [data-action="enableHealthchecks"]':"enableHealthchecks",'click [data-action="run-now"]':"runTask",'click [data-action="expand-deploy-history"]':"flashDeployHistory",'click [data-action="makeScalePermanent"]':"makeScalePermanent",'click [data-action="makePausePermanent"]':"makePausePermanent",'click [data-action="makeSkipHealthchecksPermanent"]':"makeSkipHealthchecksPermanent",'click [data-action="cancelBounce"]':"cancelBounce",'click [data-action="revertPause"]':"revertPause",'click [data-action="revertScale"]':"revertScale",'click [data-action="revertSkipHealthchecks"]':"revertSkipHealthchecks",'click [data-action="stepDeploy"]':"stepDeploy",'click [data-action="cancelDeploy"]':"cancelDeploy"})},r.prototype.initialize=function(t){this.requestId=t.requestId},r.prototype.render=function(){return this.$el.html(this.template({config:config})),this.$("#header").html(this.subviews.header.$el),this.$("#request-history-msg").html(this.subviews.requestHistoryMsg.$el),this.$("#stats").html(this.subviews.stats.$el),this.$("#active-tasks").html(this.subviews.activeTasks.$el),this.$("#scheduled-tasks").html(this.subviews.scheduledTasks.$el),this.$("#task-history").html(this.subviews.taskHistory.$el),this.$("#deploy-history").html(this.subviews.deployHistory.$el),this.$("#request-history").html(this.subviews.requestHistory.$el),this.$("#request-action-expirations").html(this.subviews.actionExpirations.$el),r.__super__.render.apply(this,arguments).afterRender()},r.prototype.viewJson=function(t){var e,n,r,s;return e=a(t.currentTarget).parents("tr"),s=e.data("id"),r=e.data("collection"),n=this.subviews[r].collection,utils.viewJSON(n.get(s))},r.prototype.viewObjectJson=function(t){return utils.viewJSON(this.model)},r.prototype.removeRequest=function(t){return this.model.promptRemove(function(t){return function(){return app.router.navigate("requests",{trigger:!0})}}(this))},r.prototype.runRequest=function(t,e){var n,a;return n=function(t){return function(e){var n;return"browse-to-sandbox"!==(n=e.afterStart)&&"autoTail"!==n?(t.trigger("refreshrequest"),setTimeout(function(){return t.trigger("refreshrequest")},2500)):void 0}}(this),e?(a=new o({taskId:e}),a.fetch().done(function(t){return function(){return t.model.promptRun(n,a)}}(this))):this.model.promptRun(n)},r.prototype.rerunTask=function(t){var e;return e=t.target.getAttribute("data-taskId"),this.runRequest(t,e)},r.prototype.scaleRequest=function(t){return this.model.promptScale(function(t){return function(){return t.trigger("refreshrequest")}}(this))},r.prototype.pauseRequest=function(t){return this.model.promptPause(function(t){return function(){return t.trigger("refreshrequest")}}(this))},r.prototype.unpauseRequest=function(t){return this.model.promptUnpause(function(t){return function(){return t.trigger("refreshrequest")}}(this))},r.prototype.bounceRequest=function(t){return this.model.promptBounce(function(t){return function(){return t.trigger("refreshrequest")}}(this))},r.prototype.disableHealthchecks=function(t){return this.model.promptDisableHealthchecks(function(t){return function(){return t.trigger("refreshrequest")}}(this))},r.prototype.enableHealthchecks=function(t){return this.model.promptEnableHealthchecks(function(t){return function(){return t.trigger("refreshrequest")}}(this))},r.prototype.exitCooldownRequest=function(t){return this.model.promptExitCooldown(function(t){return function(){return t.trigger("refreshrequest")}}(this))},r.prototype.makeScalePermanent=function(t){return this.model.makeScalePermanent(function(t){return function(){return t.trigger("refreshrequest")}}(this))},r.prototype.makePausePermanent=function(t){return this.model.makePausePermanent(function(t){return function(){return t.trigger("refreshrequest")}}(this))},r.prototype.makeSkipHealthchecksPermanent=function(t){return this.model.makeSkipHealthchecksPermanent(function(t){return function(){return t.trigger("refreshrequest")}}(this))},r.prototype.cancelBounce=function(t){return this.model.cancelBounce(function(t){return function(){return t.trigger("refreshrequest")}}(this))},r.prototype.revertPause=function(t){return this.model.promptUnpause(function(t){return function(){return t.makePausePermanent()}}(this))},r.prototype.revertScale=function(t){return this.model.scale({instances:a(t.target).attr("data-revert-param")}),this.makeScalePermanent()},r.prototype.revertSkipHealthchecks=function(t){var e;return e=a(t.target).attr("data-revert-param"),"true"===e?this.model.disableHealthchecks():this.model.enableHealthchecks(),this.makeSkipHealthchecksPermanent()},r.prototype.runTask=function(t){var e;return e=a(t.target).parents("tr").data("id"),this.model.promptRun(function(t){return function(){return t.subviews.scheduledTasks.collection.remove(e),t.subviews.scheduledTasks.render(),setTimeout(function(){return t.trigger("refreshrequest")},3e3)}}(this))},r.prototype.flashDeployHistory=function(){return this.subviews.deployHistory.flash()},r.prototype.toggleStar=function(t){var e,n,r;return e=a(t.currentTarget),n=e.attr("data-id"),this.collection.toggleStar(n),r="true"===e.attr("data-starred"),r?e.attr("data-starred","false"):e.attr("data-starred","true")},r.prototype.stepDeploy=function(t){return this.model.promptStepDeploy(function(t){return function(){return t.trigger("refreshrequest")}}(this))},r.prototype.cancelDeploy=function(t){return this.model.promptCancelDeploy(function(t){return function(){return t.trigger("refreshrequest")}}(this))},r}(l),t.exports=s}).call(e,n(3),n(1))},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){return'\n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n'},useData:!0})},function(t,e,n){(function(e,a){var r,s,i=function(t,e){return function(){return t.apply(e,arguments)}},o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=n(201),r=function(t){function r(){return this.shrink=i(this.shrink,this),this.startShrink=i(this.startShrink,this),r.__super__.constructor.apply(this,arguments)}return o(r,t),r.prototype.buttonsTemplate=n(248),r.prototype.expanded=!1,r.prototype.containerMinHeight=0,r.prototype.events=function(){return e.extend(r.__super__.events.apply(this,arguments),{'click [data-action="next-page"]':"nextPage",'click [data-action="previous-page"]':"previousPage",'click [data-action="expand"]':"expand",'click [data-action="shrink"]':"startShrink"})},r.prototype.initialize=function(t){var e,n,a,r,s,i;for(this.params=t,r=this.params,this.collection=r.collection,this.template=r.template,s=["sync","reset"],i=[],n=0,a=s.length;a>n;n++)e=s[n],i.push(this.listenTo(this.collection,e,this.render));return i},r.prototype.renderData=function(){var t;return t={config:config,data:e.pluck(this.collection.models,"attributes"),synced:this.collection.synced},null!=this.params.extraRenderData&&e.extend(t,this.params.extraRenderData(this)),t},r.prototype.render=function(){var t,e,n,a,r,s;return this.collection.length||1===this.collection.currentPage?(r=this.$(".table-subview-buttons").length,this.$el.html(this.template(this.renderData())),this.$(".actions-column a[title]").tooltip(),this.$(".table-container").css("min-height",this.containerMinHeight+"px"),s=!(this.collection.length!==this.collection.atATime&&!r),t=this.$(".page-header h1, .page-header h2, .page-header h3"),t.length&&(t.find("small").remove(),!this.expanded&&s?t.append(''):this.expanded&&t.append('')),s?(a=1!==this.collection.currentPage,n=this.collection.length===this.collection.atATime,this.$el.append(this.buttonsTemplate({hasPrevButton:a,hasNextButton:n}))):void 0):(e=this.$('[data-action="next-page"]'),e.attr("disabled",!0),e.tooltip({title:"Nothing more!",placement:"right",delay:{show:100,hide:2e3}}),e.tooltip("show"),setTimeout(function(t){return function(){return e.tooltip("hide")}}(this),2e3),void(this.collection.currentPage-=1))},r.prototype.nextPage=function(){return this.collection.length===this.collection.atATime&&(this.collection.currentPage+=1),this.collection.fetch(),this.containerMinHeight=this.$(".table-container").height()},r.prototype.previousPage=function(){return 1!==this.collection.currentPage&&(this.collection.currentPage-=1),this.collection.fetch()},r.prototype.expand=function(){var t,e,n,r,s,i,o,l,u,c,p,d,h;return this.expanded=!0,utils.animatedExpansion(this.$el,this.shrink),o=this.$el.offset().top,i=this.$el.height(),e=this.$("table"),h=e.offset().top,d=e.height(),c=o-h,p=i-c-d,t=a(this.$("tbody tr")[0]),l=t.height(),u=a(window).height(),n=10,r=u-c-p-n,s=Math.floor(r/l),this.collection.atATime=s-1,this.collection.currentPage=1,this.collection.fetch()},r.prototype.startShrink=function(){return this.$el.trigger("shrink"),this.shrink()},r.prototype.shrink=function(){return this.expanded=!1,this.$(".table-container").css("min-height","0px"),this.containerMinHeight=0,this.collection.atATime=5,this.collection.currentPage=1,this.collection.fetch()},r.prototype.flash=function(){return a(window).scrollTop(this.$el.offset().top),this.$el.addClass("flash-background"),setTimeout(function(t){ return function(){return t.$el.removeClass("flash-background")}}(this),500)},r}(s),t.exports=r}).call(e,n(3),n(1))},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){return"disabled"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i=null!=e?e:{};return'
    \n
    \n \n \n
    \n
    \n'},useData:!0})},function(t,e,n){(function(e){var a,r,s=function(t,e){function n(){this.constructor=t}for(var a in e)i.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;r=n(201),a=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return s(n,t),n.prototype.expanded=!1,n.prototype.events=function(){return e.extend(n.__super__.events.apply(this,arguments),{'click [data-action="expandToggle"]':"expandToggle"})},n.prototype.initialize=function(t){var e,n,a,r,s;for(this.params=t,this.template=this.params.template,this.data=null!=this.collection?this.collection:this.model,r=["sync","add","remove","change","reset"],s=[],n=0,a=r.length;a>n;n++)e=r[n],s.push(this.listenTo(this.data,e,this.render));return s},n.prototype.render=function(){var t;if(this.data.synced||("function"==typeof(t=this.data).isEmpty?!t.isEmpty():!0))return this.$el.html(this.template(this.renderData())),this.$(".actions-column a[title]").tooltip(),this.$(".horizontal-description-list").length&&utils.setupCopyLinks(this.$el),n.__super__.render.apply(this,arguments).afterRender()},n.prototype.renderData=function(){var t;return t={config:config,data:this.data.toJSON(),synced:this.data.synced,expanded:this.expanded},null!=this.params.extraRenderData&&e.extend(t,this.params.extraRenderData(this)),t},n.prototype.expandToggle=function(t){return this.expanded=!this.expanded,this.render()},n.prototype.expandToggleIfClosed=function(){return this.expanded?void 0:this.expandToggle()},n}(r),t.exports=a}).call(e,n(3))},function(t,e,n){var a,r,s=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;a=n(201),r=function(t){function e(){return this.renderData=s(this.renderData,this),this.render=s(this.render,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.template=n(251),e.prototype.initialize=function(t){return this.model=t.model,this.taskCleanups=t.taskCleanups,this.activeTasks=t.activeTasks,this.listenTo(this.model,"change",this.render),this.listenTo(this.model,"sync",this.render),this.listenTo(this.taskCleanups,"change",this.render),this.listenTo(this.taskCleanups,"sync",this.render),this.listenTo(this.activeTasks,"change",this.render),this.listenTo(this.activeTasks,"sync",this.render)},e.prototype.render=function(){return this.model.synced?this.$el.html(this.template(this.renderData())):void 0},e.prototype.renderData=function(){var t,e,n;return t=this.taskCleanups.where({cleanupType:"BOUNCING",requestId:this.model.get("id")}),e=0,n=0,this.model.get("pendingDeploy")&&(e=this.activeTasks.where({deployId:this.model.get("pendingDeploy").id,lastTaskState:"TASK_RUNNING"}).length),this.model.get("pendingDeployState")&&this.model.get("pendingDeployState").deployProgress&&(n=this.model.get("pendingDeployState").deployProgress.timestamp+this.model.get("pendingDeployState").deployProgress.deployStepWaitTimeMs),{isBouncing:(null!=t?t.length:void 0)>0&&this.taskCleanups.synced&&this.activeTasks.synced,runningInstanceCount:this.activeTasks.where({lastTaskState:"TASK_RUNNING"}).length,deployingInstanceCount:e,isDeploying:!!this.model.get("pendingDeploy")&&this.model.synced&&this.activeTasks.synced,nextDeployStepTimestamp:n,config:config,data:this.model.toJSON(),synced:this.model.synced,canDisableHealthchecks:!(!this.model.toJSON().activeDeploy||!this.model.toJSON().activeDeploy.healthcheckUri||this.model.toJSON().paused||this.model.toJSON().expiringSkipHealthchecks),pauseDisabled:!!this.model.toJSON().expiringPause&&this.model.toJSON().expiringPause.startMillis+this.model.toJSON().expiringPause.expiringAPIRequestObject.durationMillis>(new Date).getTime(),scaleDisabled:!!this.model.toJSON().expiringScale&&this.model.toJSON().expiringScale.startMillis+this.model.toJSON().expiringScale.expiringAPIRequestObject.durationMillis>(new Date).getTime(),bounceDisabled:!!this.model.toJSON().expiringBounce&&this.model.toJSON().expiringBounce.startMillis+this.model.toJSON().expiringBounce.expiringAPIRequestObject.durationMillis>(new Date).getTime()}},e}(a),t.exports=r},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s,i,o=t.escapeExpression;return' \n Deploy\n \n'},3:function(t,e,n,a,r){var s;return null!=(s=n.unless.call(null!=e?e:{},null!=(s=null!=e?e.data:e)?s.deleted:s,{name:"unless",hash:{},fn:t.program(4,r,0),inverse:t.noop,data:r}))?s:""},4:function(t,e,n,a,r){var s,i=t.lambda,o=t.escapeExpression;return' \n'},6:function(t,e,n,a,r){var s,i=t.lambda,o=t.escapeExpression;return' \n'},8:function(t,e,n,a,r){var s;return' \n"},9:function(t,e,n,a,r){return"disabled"},11:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=e?e.data:e)?s.paused:s,{name:"if",hash:{},fn:t.program(12,r,0),inverse:t.program(14,r,0),data:r}))?s:""},12:function(t,e,n,a,r){var s;return' \n"},14:function(t,e,n,a,r){var s;return' \n"},16:function(t,e,n,a,r){var s;return' \n"},18:function(t,e,n,a,r){var s,i,o=t.escapeExpression;return' \n Edit\n \n'},20:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=(s=null!=e?e.data:e)?s.request:s)?s.skipHealthchecks:s,{name:"if",hash:{},fn:t.program(21,r,0),inverse:t.program(23,r,0),data:r}))?s:""},21:function(t,e,n,a,r){var s;return' \n'},23:function(t,e,n,a,r){var s;return' \n'},25:function(t,e,n,a,r){var s;return' \n'},27:function(t,e,n,a,r){var s,i,o=t.escapeExpression;return' \n"},29:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=t.escapeExpression,u=t.lambda;return'
    \n

    \n Deploy '+l(u(null!=(s=null!=(s=null!=e?e.data:e)?s.pendingDeploy:s)?s.id:s,e))+" is pending:\n"+(null!=(s=n["if"].call(o,null!=(s=null!=(s=null!=e?e.data:e)?s.pendingDeployState:s)?s.deployProgress:s,{name:"if",hash:{},fn:t.program(30,r,0),inverse:t.program(42,r,0),data:r}))?s:"")+' \n'+(null!=(s=n["if"].call(o,null!=(s=null!=(s=null!=e?e.data:e)?s.pendingDeployState:s)?s.deployProgress:s,{name:"if",hash:{},fn:t.program(44,r,0),inverse:t.noop,data:r}))?s:"")+' \n Cancel Deploy\n \n \n

    \n
    \n'},30:function(t,e,n,a,r){var s;return null!=(s=(n.ifEqual||e&&e.ifEqual||n.helperMissing).call(null!=e?e:{},null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.pendingDeployState:s)?s.deployProgress:s)?s.targetActiveInstances:s,null!=(s=null!=e?e.data:e)?s.instances:s,{name:"ifEqual",hash:{},fn:t.program(31,r,0),inverse:t.program(34,r,0),data:r}))?s:""},31:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u=t.escapeExpression;return" "+u((i=null!=(i=n.deployingInstanceCount||(null!=e?e.deployingInstanceCount:e))?i:l,"function"==typeof i?i.call(o,{name:"deployingInstanceCount",hash:{},data:r}):i))+" of "+u(t.lambda(null!=(s=null!=e?e.data:e)?s.instances:s,e))+" new tasks are currently running."+(null!=(s=(n.ifEqual||e&&e.ifEqual||l).call(o,null!=e?e.deployingInstanceCount:e,null!=(s=null!=e?e.data:e)?s.instances:s,{name:"ifEqual",hash:{},fn:t.program(32,r,0),inverse:t.noop,data:r}))?s:"")+"\n"},32:function(t,e,n,a,r){return" Waiting for new tasks to become healthy."},34:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.pendingDeployState:s)?s.deployProgress:s)?s.stepComplete:s,{name:"if",hash:{},fn:t.program(35,r,0),inverse:t.program(40,r,0),data:r}))?s:""},35:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.pendingDeployState:s)?s.deployProgress:s)?s.autoAdvanceDeploySteps:s,{name:"if",hash:{},fn:t.program(36,r,0),inverse:t.program(38,r,0),data:r}))?s:""},36:function(t,e,n,a,r){var s,i=t.lambda,o=t.escapeExpression;return" Finished deploying "+o(i(null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.pendingDeployState:s)?s.deployProgress:s)?s.targetActiveInstances:s,e))+" of "+o(i(null!=(s=null!=e?e.data:e)?s.instances:s,e))+" total instances, next deploy step "+o((n.timestampFromNow||e&&e.timestampFromNow||n.helperMissing).call(null!=e?e:{},null!=e?e.nextDeployStepTimestamp:e,{name:"timestampFromNow",hash:{},data:r}))+"\n"},38:function(t,e,n,a,r){var s,i=t.lambda,o=t.escapeExpression;return" Finished deploying "+o(i(null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.pendingDeployState:s)?s.deployProgress:s)?s.targetActiveInstances:s,e))+" of "+o(i(null!=(s=null!=e?e.data:e)?s.instances:s,e))+" total instances, waiting for manual trigger of next deploy step.\n"},40:function(t,e,n,a,r){var s,i,o=t.lambda,l=t.escapeExpression;return" Trying to deploy "+l(o(null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.pendingDeployState:s)?s.deployProgress:s)?s.targetActiveInstances:s,e))+" of "+l(o(null!=(s=null!=e?e.data:e)?s.instances:s,e))+" instances, "+l((i=null!=(i=n.deployingInstanceCount||(null!=e?e.deployingInstanceCount:e))?i:n.helperMissing,"function"==typeof i?i.call(null!=e?e:{},{name:"deployingInstanceCount",hash:{},data:r}):i))+" of "+l(o(null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.pendingDeployState:s)?s.deployProgress:s)?s.targetActiveInstances:s,e))+" new tasks are currently running.\n"},42:function(t,e,n,a,r){var s,i,o=t.escapeExpression;return" "+o((i=null!=(i=n.deployingInstanceCount||(null!=e?e.deployingInstanceCount:e))?i:n.helperMissing,"function"==typeof i?i.call(null!=e?e:{},{name:"deployingInstanceCount",hash:{},data:r}):i))+" of "+o(t.lambda(null!=(s=null!=e?e.data:e)?s.instances:s,e))+" new tasks are currently running.\n"},44:function(t,e,n,a,r){var s;return null!=(s=(n.ifNotEqual||e&&e.ifNotEqual||n.helperMissing).call(null!=e?e:{},null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.pendingDeployState:s)?s.deployProgress:s)?s.targetActiveInstances:s,null!=(s=null!=e?e.data:e)?s.instances:s,{name:"ifNotEqual",hash:{},fn:t.program(45,r,0),inverse:t.noop,data:r}))?s:""},45:function(t,e,n,a,r){return' \n Advance Deploy\n \n'},47:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=t.escapeExpression,u=t.lambda;return' Active deploy\n \n \n '+l(u(null!=(s=null!=(s=null!=e?e.data:e)?s.activeDeploy:s)?s.id:s,e))+"\n"+(null!=(s=n["with"].call(o,null!=(s=null!=e?e.data:e)?s.activeDeploy:s,{name:"with",hash:{},fn:t.program(48,r,0),inverse:t.noop,data:r}))?s:"")},48:function(t,e,n,a,r){var s,i=null!=e?e:{};return(null!=(s=n["if"].call(i,null!=(s=null!=e?e.metadata:e)?s.deployedBy:s,{name:"if",hash:{},fn:t.program(49,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=e?e.timestamp:e,{name:"if",hash:{},fn:t.program(51,r,0),inverse:t.noop,data:r}))?s:"")},49:function(t,e,n,a,r){var s;return" by "+t.escapeExpression((n.usernameFromEmail||e&&e.usernameFromEmail||n.helperMissing).call(null!=e?e:{},null!=(s=null!=e?e.metadata:e)?s.deployedBy:s,{name:"usernameFromEmail",hash:{},data:r}))+"\n"},51:function(t,e,n,a,r){return" —\n "+t.escapeExpression((n.timestampFromNow||e&&e.timestampFromNow||n.helperMissing).call(null!=e?e:{},null!=e?e.timestamp:e,{name:"timestampFromNow",hash:{},data:r}))+"\n"},53:function(t,e,n,a,r){return' \n No active deploy\n \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i=t.lambda,o=t.escapeExpression,l=null!=e?e:{},u=n.helperMissing;return'
    \n
    \n
    \n

    \n \n \n \n\n \n '+o((n.humanizeText||e&&e.humanizeText||u).call(l,null!=(s=null!=e?e.data:e)?s.state:s,{name:"humanizeText",hash:{},data:r}))+'\n \n\n \n '+o((n.humanizeText||e&&e.humanizeText||u).call(l,null!=(s=null!=e?e.data:e)?s.type:s,{name:"humanizeText",hash:{},data:r}))+"\n \n

    \n\n

    \n "+o(i(null!=(s=null!=e?e.data:e)?s.id:s,e))+'\n

    \n
    \n\n
    \n \n\n'+(null!=(s=n.unless.call(l,null!=(s=null!=e?e.config:e)?s.hideNewDeployButton:s,{name:"unless",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:"")+"\n"+(null!=(s=n["if"].call(l,null!=(s=null!=e?e.data:e)?s.canBeRunNow:s,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?s:"")+"\n"+(null!=(s=n["if"].call(l,null!=(s=null!=e?e.data:e)?s.inCooldown:s,{name:"if",hash:{},fn:t.program(6,r,0),inverse:t.noop,data:r}))?s:"")+"\n"+(null!=(s=n["if"].call(l,null!=(s=null!=e?e.data:e)?s.canBeScaled:s,{name:"if",hash:{},fn:t.program(8,r,0),inverse:t.noop,data:r}))?s:"")+"\n"+(null!=(s=n.unless.call(l,null!=(s=null!=e?e.data:e)?s.deleted:s,{name:"unless",hash:{},fn:t.program(11,r,0),inverse:t.noop,data:r}))?s:"")+"\n"+(null!=(s=n["if"].call(l,null!=(s=null!=e?e.data:e)?s.canBeBounced:s,{name:"if",hash:{},fn:t.program(16,r,0),inverse:t.noop,data:r}))?s:"")+"\n"+(null!=(s=n.unless.call(l,null!=(s=null!=e?e.config:e)?s.hideNewRequestButton:s,{name:"unless",hash:{},fn:t.program(18,r,0),inverse:t.noop,data:r}))?s:"")+"\n"+(null!=(s=n["if"].call(l,null!=e?e.canDisableHealthchecks:e,{name:"if",hash:{},fn:t.program(20,r,0),inverse:t.noop,data:r}))?s:"")+"\n"+(null!=(s=n.unless.call(l,null!=(s=null!=e?e.data:e)?s.deleted:s,{name:"unless",hash:{},fn:t.program(25,r,0),inverse:t.noop,data:r}))?s:"")+"
    \n
    \n\n"+(null!=(s=n["if"].call(l,null!=e?e.isBouncing:e,{name:"if",hash:{},fn:t.program(27,r,0),inverse:t.noop,data:r}))?s:"")+"\n"+(null!=(s=n["if"].call(l,null!=e?e.isDeploying:e,{name:"if",hash:{},fn:t.program(29,r,0),inverse:t.noop,data:r}))?s:"")+'\n
    \n'+(null!=(s=n["if"].call(l,null!=(s=null!=e?e.data:e)?s.activeDeploy:s,{name:"if",hash:{},fn:t.program(47,r,0),inverse:t.program(53,r,0),data:r}))?s:"")+'\n \n Deploy history\n \n
    \n
    \n'},useData:!0})},function(t,e,n){var a,r,s=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;a=n(201),r=function(t){function e(){return this.renderData=s(this.renderData,this),this.render=s(this.render,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.template=n(253),e.prototype.initialize=function(t){return this.model=t.model,this.listenTo(this.model,"change",this.render),this.listenTo(this.model,"sync",this.render)},e.prototype.render=function(){return this.model.synced?this.$el.html(this.template(this.renderData())):void 0},e.prototype.renderData=function(){var t,e,n,a;return n=[],a=this.model.toJSON(),t=a.request.skipHealthchecks,a.expiringScale&&a.expiringScale.startMillis+a.expiringScale.expiringAPIRequestObject.durationMillis>(new Date).getTime()&&n.push({action:"Scale (to "+a.request.instances+" instances)",user:a.expiringScale.user?a.expiringScale.user.split("@")[0]:"",endMillis:a.expiringScale.startMillis+a.expiringScale.expiringAPIRequestObject.durationMillis,canRevert:!0,cancelText:"Make Permanent",cancelAction:"makeScalePermanent",revertText:"Revert to "+a.expiringScale.revertToInstances+" "+(1===a.expiringScale.revertToInstances?"instance":"instances"),revertAction:"revertScale",revertParam:a.expiringScale.revertToInstances,message:a.expiringScale.expiringAPIRequestObject.message}),a.expiringBounce&&(e=a.expiringBounce.expiringAPIRequestObject.durationMillis?a.expiringBounce.startMillis+a.expiringBounce.expiringAPIRequestObject.durationMillis:a.expiringBounce.startMillis+60*config.defaultBounceExpirationMinutes*1e3,e>(new Date).getTime()&&n.push({action:"Bounce",user:a.expiringBounce.user?a.expiringBounce.user.split("@")[0]:"",endMillis:e,canRevert:!1,cancelText:"Cancel",cancelAction:"cancelBounce",message:a.expiringBounce.expiringAPIRequestObject.message})),a.expiringPause&&a.expiringPause.startMillis+a.expiringPause.expiringAPIRequestObject.durationMillis>(new Date).getTime()&&n.push({action:"Pause",user:a.expiringPause.user?a.expiringPause.user.split("@")[0]:"",endMillis:a.expiringPause.startMillis+a.expiringPause.expiringAPIRequestObject.durationMillis,canRevert:!0,cancelText:"Make Permanent",cancelAction:"makePausePermanent",revertText:"Unpause",revertAction:"revertPause",message:a.expiringPause.expiringAPIRequestObject.message}),a.expiringSkipHealthchecks&&a.expiringSkipHealthchecks.startMillis+a.expiringSkipHealthchecks.expiringAPIRequestObject.durationMillis>(new Date).getTime()&&(t=!1,n.push({action:a.expiringSkipHealthchecks.expiringAPIRequestObject.skipHealthchecks?"Disable Healthchecks":"Enable Healthchecks",user:a.expiringSkipHealthchecks.user?a.expiringSkipHealthchecks.user.split("@")[0]:"",endMillis:a.expiringSkipHealthchecks.startMillis+a.expiringSkipHealthchecks.expiringAPIRequestObject.durationMillis,canRevert:!0,cancelText:"Make Permanent",cancelAction:"makeSkipHealthchecksPermanent",revertText:a.expiringSkipHealthchecks.expiringAPIRequestObject.skipHealthchecks?"Enable Healthchecks":"Disable Healthchecks",revertAction:"revertSkipHealthchecks",revertParam:!a.expiringSkipHealthchecks.expiringAPIRequestObject.skipHealthchecks,message:a.expiringSkipHealthchecks.expiringAPIRequestObject.message})),{request:a,data:n,alertSkipHealthchecks:t}},e}(a),t.exports=r},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u=t.escapeExpression;return"
    \n Action Expiration: This request has an active "+u((i=null!=(i=n.action||(null!=e?e.action:e))?i:l,"function"==typeof i?i.call(o,{name:"action",hash:{},data:r}):i))+" request that expires "+u((n.timestampFromNow||e&&e.timestampFromNow||l).call(o,null!=e?e.endMillis:e,{name:"timestampFromNow",hash:{},data:r}))+".\n"+(null!=(s=n["if"].call(o,null!=e?e.canRevert:e,{name:"if",hash:{},fn:t.program(2,r,0),inverse:t.program(4,r,0),data:r}))?s:"")+(null!=(s=n["if"].call(o,null!=e?e.message:e,{name:"if",hash:{},fn:t.program(6,r,0),inverse:t.noop,data:r}))?s:"")+"
    \n"},2:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return' \n \n"},4:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return' \n"},6:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return"

    \n "+u((s=null!=(s=n.user||(null!=e?e.user:e))?s:o,typeof s===l?s.call(i,{name:"user",hash:{},data:r}):s))+" said:\n "+u((s=null!=(s=n.message||(null!=e?e.message:e))?s:o,typeof s===l?s.call(i,{name:"message",hash:{},data:r}):s))+"\n

    \n"},8:function(t,e,n,a,r){return' \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i=null!=e?e:{};return"\n"+(null!=(s=n.each.call(i,null!=e?e.data:e,{name:"each",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:"")+"\n"+(null!=(s=n["if"].call(i,null!=e?e.alertSkipHealthchecks:e,{name:"if",hash:{},fn:t.program(8,r,0),inverse:t.noop,data:r}))?s:"")},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return null!=(s=(n.ifEqual||e&&e.ifEqual||n.helperMissing).call(null!=e?e:{},null!=(s=null!=(s=null!=e?e.data:e)?s[0]:s)?s.eventType:s,"DELETED",{name:"ifEqual",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?s:""},2:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l=t.escapeExpression;return'
    \n
    \n

    \n \n Deleted\n \n \n '+l((n.humanizeText||e&&e.humanizeText||o).call(i,null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s[0]:s)?s.request:s)?s.requestType:s,{name:"humanizeText",hash:{},data:r}))+" \n \n

    \n

    \n "+l(t.lambda(null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s[0]:s)?s.request:s)?s.id:s,e))+" \n

    \n
    \n
    \n
    \n Note: This request was deleted "+l((n.timestampFromNow||e&&e.timestampFromNow||o).call(i,null!=(s=null!=(s=null!=e?e.data:e)?s[0]:s)?s.createdAt:s,{name:"timestampFromNow",hash:{},data:r}))+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=e?e.data:e)?s[0]:s)?s.user:s,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?s:"")+". All active and scheduled tasks will not run again unless it is reposted to Singularity.\n
    \n"},3:function(t,e,n,a,r){var s;return", by "+t.escapeExpression(t.lambda(null!=(s=null!=(s=null!=e?e.data:e)?s[0]:s)?s.user:s,e))},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return"\n"+(null!=(s=n.unless.call(null!=e?e:{},null!=e?e.request:e,{name:"unless",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:"")+"\n"},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s,i=t.lambda,o=t.escapeExpression;return' \n
    \n
    \n
    \n
    \n
    \n '+o(i(null!=(s=null!=(s=null!=e?e.data:e)?s.deployStatistics:s)?s.numSuccess:s,e))+'\n
    \n
    \n successful tasks\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n '+o(i(null!=(s=null!=(s=null!=e?e.data:e)?s.deployStatistics:s)?s.numFailures:s,e))+'\n
    \n
    \n failed tasks\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n '+o(i(null!=(s=null!=(s=null!=e?e.data:e)?s.deployStatistics:s)?s.numSequentialRetries:s,e))+'\n
    \n
    \n retries\n
    \n
    \n
    \n
    \n
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=e?e.data:e)?s.deployStatistics:s,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:""},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s,i,o=t.escapeExpression,l=t.lambda;return' \n View Aggregate Logs\n \n'},3:function(t,e,n,a,r,s,i){var o;return' \n \n \n \n \n \n \n \n \n \n \n \n \n'+(null!=(o=n.each.call(null!=e?e:{},null!=e?e.data:e,{ name:"each",hash:{},fn:t.program(4,r,0,s,i),inverse:t.noop,data:r}))?o:"")+" \n
    Name
    \n"},4:function(t,e,n,a,r,s,i){var o,l,u=t.lambda,c=t.escapeExpression,p=null!=e?e:{},d=n.helperMissing,h="function";return' \n \n \n \n '+c(u(null!=(o=null!=e?e.taskId:e)?o.id:o,e))+'\n \n \n \n \n \n '+c((n.humanizeText||e&&e.humanizeText||d).call(p,null!=e?e.lastTaskState:e,{name:"humanizeText",hash:{},data:r}))+'\n \n \n \n '+c(u(null!=(o=null!=e?e.taskId:e)?o.deployId:o,e))+'\n \n \n '+c((n.timestampFromNow||e&&e.timestampFromNow||d).call(p,null!=(o=null!=e?e.taskId:e)?o.startedAt:o,{name:"timestampFromNow",hash:{},data:r}))+'\n \n \n '+c((n.timestampFromNow||e&&e.timestampFromNow||d).call(p,null!=e?e.updatedAt:e,{name:"timestampFromNow",hash:{},data:r}))+'\n \n \n \n ...\n \n \n \n \n { }\n \n \n \n'},6:function(t,e,n,a,r){return'

    No active tasks

    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r,s,i){var o,l=null!=e?e:{};return'\n"+(null!=(o=n["if"].call(l,null!=e?e.data:e,{name:"if",hash:{},fn:t.program(3,r,0,s,i),inverse:t.program(6,r,0,s,i),data:r}))?o:"")},useData:!0,useDepths:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r,s,i){var o;return' \n \n \n \n \n \n \n \n \n \n'+(null!=(o=n.each.call(null!=e?e:{},null!=e?e.data:e,{name:"each",hash:{},fn:t.program(2,r,0,s,i),inverse:t.noop,data:r}))?o:"")+" \n
    \n Name\n \n Next run\n
    \n"},2:function(t,e,n,a,r,s,i){var o,l,u=null!=e?e:{},c=n.helperMissing,p="function",d=t.escapeExpression;return' \n \n '+d((l=null!=(l=n.id||(null!=e?e.id:e))?l:c,typeof l===p?l.call(u,{name:"id",hash:{},data:r}):l))+'\n \n \n '+d((n.timestampFromNow||e&&e.timestampFromNow||c).call(u,null!=(o=null!=(o=null!=e?e.pendingTask:e)?o.pendingTaskId:o)?o.nextRunAt:o,{name:"timestampFromNow",hash:{},data:r}))+"\n"+(null!=(o=(n.ifTimestampSecondsInPast||e&&e.ifTimestampSecondsInPast||c).call(u,null!=(o=null!=(o=null!=e?e.pendingTask:e)?o.pendingTaskId:o)?o.nextRunAt:o,null!=(o=null!=i[1]?i[1].config:i[1])?o.pendingWithinSeconds:o,{name:"ifTimestampSecondsInPast",hash:{},fn:t.program(3,r,0,s,i),inverse:t.program(5,r,0,s,i),data:r}))?o:"")+' \n \n'+(null!=(o=n.unless.call(u,null!=(o=null!=(o=null!=i[1]?i[1].request:i[1])?o.attributes:o)?o.daemon:o,{name:"unless",hash:{},fn:t.program(10,r,0,s,i),inverse:t.noop,data:r}))?o:"")+' \n { }\n \n \n \n'},3:function(t,e,n,a,r){return' OVERDUE\n'},5:function(t,e,n,a,r,s,i){var o;return null!=(o=(n.ifTimestampSecondsInFuture||e&&e.ifTimestampSecondsInFuture||n.helperMissing).call(null!=e?e:{},null!=(o=null!=(o=null!=e?e.pendingTask:e)?o.pendingTaskId:o)?o.nextRunAt:o,null!=(o=null!=i[1]?i[1].config:i[1])?o.pendingWithinSeconds:o,{name:"ifTimestampSecondsInFuture",hash:{},fn:t.program(6,r,0,s,i),inverse:t.program(8,r,0,s,i),data:r}))?o:""},6:function(t,e,n,a,r){return' SCHEDULED\n'},8:function(t,e,n,a,r){return' PENDING\n'},10:function(t,e,n,a,r){return' \n \n \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r,s,i){var o;return null!=(o=n["if"].call(null!=e?e:{},null!=e?e.data:e,{name:"if",hash:{},fn:t.program(1,r,0,s,i),inverse:t.noop,data:r}))?o:""},useData:!0,useDepths:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s,i,o=t.escapeExpression;return' \n \n'},3:function(t,e,n,a,r,s,i){var o;return'
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'+(null!=(o=n.each.call(null!=e?e:{},null!=e?e.data:e,{name:"each",hash:{},fn:t.program(4,r,0,s,i),inverse:t.noop,data:r}))?o:"")+" \n
    \n Name\n
    \n
    \n"},4:function(t,e,n,a,r,s,i){var o,l,u=t.lambda,c=t.escapeExpression,p=null!=e?e:{},d=n.helperMissing,h="function";return' \n \n \n \n '+c(u(null!=(o=null!=e?e.taskId:e)?o.id:o,e))+'\n \n \n \n \n '+c((n.humanizeText||e&&e.humanizeText||d).call(p,null!=e?e.lastTaskState:e,{name:"humanizeText",hash:{},data:r}))+'\n \n \n '+c(u(null!=(o=null!=e?e.taskId:e)?o.deployId:o,e))+'\n \n \n '+c((n.timestampFromNow||e&&e.timestampFromNow||d).call(p,null!=(o=null!=e?e.taskId:e)?o.startedAt:o,{name:"timestampFromNow",hash:{},data:r}))+'\n \n \n '+c((n.timestampFromNow||e&&e.timestampFromNow||d).call(p,null!=e?e.updatedAt:e,{name:"timestampFromNow",hash:{},data:r}))+'\n \n \n \n ···\n \n \n'+(null!=(o=n["if"].call(p,null!=e?e.canBeRunNow:e,{name:"if",hash:{},fn:t.program(5,r,0,s,i),inverse:t.program(7,r,0,s,i),data:r}))?o:"")+' \n \n { }\n \n \n \n'},5:function(t,e,n,a,r){var s;return' \n \n ↺\n \n \n'},7:function(t,e,n,a,r){return' \n'},9:function(t,e,n,a,r){return'
    \n No tasks\n
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r,s,i){var o,l=null!=e?e:{};return'\n"+(null!=(o=n["if"].call(l,null!=(o=null!=e?e.data:e)?o.length:o,{name:"if",hash:{},fn:t.program(3,r,0,s,i),inverse:t.program(9,r,0,s,i),data:r}))?o:"")},useData:!0,useDepths:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return'
    \n \n \n \n \n \n \n \n \n \n \n \n'+(null!=(s=n.each.call(null!=e?e:{},null!=e?e.data:e,{name:"each",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?s:"")+" \n
    Deploy IDStatus
    \n
    \n"},2:function(t,e,n,a,r){var s,i,o=t.lambda,l=t.escapeExpression,u=null!=e?e:{},c=n.helperMissing;return' \n \n \n '+l(o(null!=(s=null!=e?e.deployMarker:e)?s.deployId:s,e))+"\n \n \n \n "+l((n.humanizeText||e&&e.humanizeText||c).call(u,null!=(s=null!=e?e.deployResult:e)?s.deployState:s,{name:"humanizeText",hash:{},data:r}))+'\n \n \n '+l((n.usernameFromEmail||e&&e.usernameFromEmail||c).call(u,null!=(s=null!=e?e.deployMarker:e)?s.user:s,{name:"usernameFromEmail",hash:{},data:r}))+'\n \n \n '+l((n.timestampFromNow||e&&e.timestampFromNow||c).call(u,null!=(s=null!=e?e.deployMarker:e)?s.timestamp:s,{name:"timestampFromNow",hash:{},data:r}))+'\n \n \n \n { }\n \n \n \n'},4:function(t,e,n,a,r){return'
    \n No deploys\n
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return'\n'+(null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=e?e.data:e)?s.length:s,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(4,r,0),data:r}))?s:"")},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return'
    \n \n \n \n \n \n \n \n \n \n \n \n'+(null!=(s=n.each.call(null!=e?e:{},null!=e?e.data:e,{name:"each",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?s:"")+" \n
    \n State\n \n User\n
    \n
    \n"},2:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return' \n \n '+u((n.humanizeText||e&&e.humanizeText||o).call(i,null!=e?e.eventType:e,{name:"humanizeText",hash:{},data:r}))+"\n \n \n "+u((n.usernameFromEmail||e&&e.usernameFromEmail||o).call(i,null!=e?e.user:e,{name:"usernameFromEmail",hash:{},data:r}))+'\n \n \n '+u((n.timestampFromNow||e&&e.timestampFromNow||o).call(i,null!=e?e.createdAt:e,{name:"timestampFromNow",hash:{},data:r}))+'\n \n \n '+u((s=null!=(s=n.message||(null!=e?e.message:e))?s:o,typeof s===l?s.call(i,{name:"message",hash:{},data:r}):s))+'\n \n \n \n { }\n \n \n \n'},4:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.synced:e,{name:"if",hash:{},fn:t.program(5,r,0),inverse:t.program(7,r,0),data:r}))?s:""},5:function(t,e,n,a,r){return'
    \n No historical tasks\n
    \n'},7:function(t,e,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return'\n'+(null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=e?e.data:e)?s.length:s,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(4,r,0),data:r}))?s:"")},useData:!0})},function(t,e,n){(function(e,a){var r,s,i,o,l=function(t,e){function n(){this.constructor=t}for(var a in e)u.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},u={}.hasOwnProperty;r=n(19),s=n(20),o=n(262),i=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return l(n,t),n.prototype.initialize=function(t){return this.state=t.state,this.subFilter=t.subFilter,this.searchFilter=t.searchFilter,this.title("Requests"),this.collections.requests=new s([],{state:this.state}),this.setView(new o(e.extend({state:this.state,subFilter:this.subFilter,searchFilter:this.searchFilter},{collection:this.collections.requests}))),this.collections.requests.fetch(),app.showView(this.view)},n.prototype.refresh=function(){return a(window).scrollTop()>200||this.view.isSorted?void 0:this.collections.requests.fetch({reset:!0})},n}(r),t.exports=i}).call(e,n(3),n(1))},function(t,e,n){(function(e,a){var r,s,i,o,l,u,c=function(t,e){return function(){return t.apply(e,arguments)}},p=function(t,e){function n(){this.constructor=t}for(var a in e)d.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},d={}.hasOwnProperty,h=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};o=n(201),r=n(24),i=n(2),u=n(13),l=n(263),s=function(t){function s(){return this.showQuartz=c(this.showQuartz,this),this.searchChange=c(this.searchChange,this),this.updateUrl=c(this.updateUrl,this),this.handleScroll=c(this.handleScroll,this),this.sortTable=c(this.sortTable,this),this.renderTableChunk=c(this.renderTableChunk,this),this.renderTable=c(this.renderTable,this),this.afterRender=c(this.afterRender,this),this.render=c(this.render,this),this.filterCollection=c(this.filterCollection,this),this.fuzzySearch=c(this.fuzzySearch,this),this.events=c(this.events,this),s.__super__.constructor.apply(this,arguments)}return p(s,t),s.prototype.isSorted=!1,s.prototype.templateBase=n(264),s.prototype.templateFilter=n(265),s.prototype.bodyTemplateMap={all:n(266),active:n(267),cooldown:n(268),paused:n(215),pending:n(269),cleaning:n(270),activeDeploy:n(266),noDeploy:n(266)},s.prototype.quartzTemplate=n(271),s.prototype.haveSubfilter=["all","active","paused","cooldown","activeDeploy","noDeploy"],s.prototype.allRequestTypes=["SERVICE","WORKER","SCHEDULED","ON_DEMAND","RUN_ONCE"],s.prototype.renderProgress=0,s.prototype.renderAtOnce=100,s.prototype.currentRequests=[],s.prototype.events=function(){return e.extend(s.__super__.events.apply(this,arguments),{'click [data-action="viewJSON"]':"viewJson",'click [data-action="remove"]':"removeRequest",'click [data-action="scale"]':"scaleRequest",'click [data-action="unpause"]':"unpauseRequest",'click [data-action="starToggle"]':"toggleStar",'click [data-action="run-now"]':"runRequest",'click [data-action="show-quartz"]':"showQuartz","click [data-filter]":"changeFilters",'change input[type="search"]':"searchChange",'keyup input[type="search"]':"searchChange",'input input[type="search"]':"searchChange","click th[data-sort-attribute]":"sortTable"})},s.prototype.initialize=function(t){return this.state=t.state,this.subFilter=t.subFilter,this.searchFilter=t.searchFilter,this.bodyTemplate=this.bodyTemplateMap[this.state],this.listenTo(this.collection,"sync",this.render),this.fuzzySearch=e.memoize(this.fuzzySearch)},s.prototype.fuzzySearch=function(t,n){var a,r,s,o;return a={extract:function(t){return t.id}},o={extract:function(t){var e,n;return(null!=(e=t.requestDeployState)&&null!=(n=e.activeDeploy)?n.user:void 0)||""}},r=l.filter(t,n,a),s=l.filter(t,n,o),e.uniq(e.pluck(e.sortBy(e.union(s,r),function(e){return function(e){return i.fuzzyAdjustScore(t,e)}}(this)),"original").reverse())},s.prototype.filterCollection=function(){var t,n,a,r,s,i,o;if(o=e.pluck(this.collection.models,"attributes"),this.searchFilter&&(o=this.fuzzySearch(this.searchFilter,o)),a=this.state,h.call(this.haveSubfilter,a)>=0&&"all"!==this.subFilter&&(o=e.filter(o,function(t){return function(e){var n;return n=!1,-1!==t.subFilter.indexOf("SERVICE")&&(n=n||"SERVICE"===e.type),-1!==t.subFilter.indexOf("WORKER")&&(n=n||"WORKER"===e.type),-1!==t.subFilter.indexOf("SCHEDULED")&&(n=n||"SCHEDULED"===e.type),-1!==t.subFilter.indexOf("ON_DEMAND")&&(n=n||"ON_DEMAND"===e.type),-1!==t.subFilter.indexOf("RUN_ONCE")&&(n=n||"RUN_ONCE"===e.type),n}}(this))),"activeDeploy"!==(r=this.state)&&"noDeploy"!==r||(o=e.filter(o,function(t){return function(e){var n,a;return"activeDeploy"===t.state?!!(null!=(n=e.requestDeployState)?n.activeDeploy:void 0):"noDeploy"===t.state?!(null!=(a=e.requestDeployState)?a.activeDeploy:void 0):!0}}(this))),null!=this.sortAttribute?(o=e.sortBy(o,function(t){return function(e){var n,a,r,s,i;for(a=t.sortAttribute.split("."),i=e,r=0,s=a.length;s>r;r++)if(n=a[r],i=i[n],null==i)return null;return i}}(this)),this.sortAscending||(o=o.reverse())):this.searchFilter||o.reverse(),"all"===(s=this.state)||"active"===s||"activeDeploy"===s||"noDeploy"===s)for(t=0,n=o.length;n>t;t++)i=o[t],i.starred=this.collection.isStarred(i.id);return this.currentRequests=o},s.prototype.render=function(){var t,e,n,r,s;return t=a(".big-search-box"),this.prevSelectionStart=t[0].selectionStart,this.prevSelectionEnd=t[0].selectionEnd,e={config:config,requestsFilter:this.state,requestsSubFilter:this.subFilter,searchFilter:this.searchFilter,hasSubFilter:(r=this.state,h.call(this.haveSubfilter,r)>=0),collectionSynced:this.collection.synced,haveRequests:this.collection.length&&this.collection.synced},n={partials:{requestsBody:this.bodyTemplate}},s=this.state,h.call(this.haveSubfilter,s)>=0&&(n.partials.requestsFilter=this.templateFilter),this.$el.html(this.templateBase(e,n)),this.afterRender()},s.prototype.afterRender=function(){var t;return s.__super__.afterRender.apply(this,arguments),this.renderTable(),this.$(".actions-column a[title]").tooltip(),this.$(".has-tooltip").tooltip(),this.$(".schedule-header span#schedule").popover({animation:!1,placement:"auto",trigger:"hover",delay:{hide:400},container:"span#schedule",html:!0,content:"

    All schedules are in quartz format unless otherwise specified.

    ",template:''}).on({show:function(t){return this.showPopover(t)},hide:function(t){return this.hidePopover(t)}}),t=a(".big-search-box"),t[0].setSelectionRange(this.prevSelectionStart,this.prevSelectionEnd)},s.prototype.renderTable=function(){return this.$("table").length?(this.$("table").show(),this.$(".empty-table-message").remove(),this.$('input[type="search"]').removeAttr("disabled").attr("placeholder","Filter requests").focus(),a(window).scrollTop(0),this.filterCollection(),this.renderProgress=0,this.currentRequests.length?(this.renderTableChunk(),a(window).on("scroll",this.handleScroll)):(this.$("table").hide(),void this.$el.append('
    No requests that match your query
    '))):void 0},s.prototype.renderTableChunk=function(){var t,e,n,a,r,s;if(this===app.views.current)return a=0===this.renderProgress,r=this.renderAtOnce+this.renderProgress,s=this.currentRequests.slice(this.renderProgress,r),this.renderProgress=r,t=this.bodyTemplate({requests:s,rowsOnly:!0,requestsSubFilter:this.subFilter,hideNewRequestButton:config.hideNewRequestButton}),e=this.$(".table-staged table"),n=e.find("tbody"),a?(n.html(t),utils.fixTableColumns(e)):n.append(t)},s.prototype.hidePopover=function(t){var e;return e=a(this),e.data("forceHidePopover")?(e.data("forceHidePopover",!1),!0):(t.stopImmediatePropagation(),clearTimeout(e.data("popoverTO")),e.data("hoveringPopover",!1),e.data("waitingForPopoverTO",!0),e.data("popoverTO",setTimeout(function(){return e.data("hoveringPopover")?void 0:(e.data("forceHidePopover",!0),e.data("waitingForPopoverTO",!1),e.popover("hide"))},1500)),!1)},s.prototype.showPopover=function(t){var e;return e=a(this),e.data("hoveringPopover",!0),e.data("waitingForPopoverTO")?t.stopImmediatePropagation():void 0},s.prototype.sortTable=function(t){var e,n,r;return this.isSorted=!0,n=a(t.currentTarget),r=n.attr("data-sort-attribute"),e=this.$("[data-sorted=true]"),e.removeAttr("data-sorted"),e.find("span.glyphicon-chevron-up").remove(),e.find("span.glyphicon-chevron-down").remove(),r===this.sortAttribute&&null!=this.sortAscending?this.sortAscending=!this.sortAscending:this.sortAscending="timestamp"!==r,this.sortAttribute=r,n.attr("data-sorted","true"),n.append(""),this.renderTable()},s.prototype.handleScroll=function(){return this.renderProgress>=this.collection.length?void a(window).off("scroll"):(null!=this.animationFrameRequest&&window.cancelAnimationFrame(this.animationFrameRequest),this.animationFrameRequest=window.requestAnimationFrame(function(t){return function(){var e,n,r,s;return e=t.$("tbody"),s=e.height()+e.offset().top,n=a(window),r=n.scrollTop()+n.height(),r>=s?t.renderTableChunk():void 0}}(this)))},s.prototype.updateUrl=function(){return app.router.navigate("/requests/"+this.state+"/"+this.subFilter+"/"+this.searchFilter,{replace:!0})},s.prototype.viewJson=function(t){var e;return e=a(t.target).parents("tr").data("request-id"),utils.viewJSON(this.collection.get(e))},s.prototype.removeRequest=function(t){var e,n;return e=a(t.target).parents("tr"),n=e.data("request-id"),this.collection.get(n).promptRemove(function(t){return function(){return e.remove()}}(this))},s.prototype.unpauseRequest=function(t){var e,n;return e=a(t.target).parents("tr"),n=e.data("request-id"),this.collection.get(n).promptUnpause(function(t){return function(){return e.remove(),t.trigger("refreshrequest")}}(this))},s.prototype.scaleRequest=function(t){var e,n;return e=a(t.target).parents("tr"),n=e.data("request-id"),this.collection.get(n).promptScale(function(t){return function(){return e.addClass("flash"),t.trigger("refreshrequest")}}(this))},s.prototype.runRequest=function(t){var e,n,s;return e=a(t.target).parents("tr"),n=e.data("request-id"),s=new r({id:n}),s.promptRun(function(t){return function(n){var a;return"browse-to-sandbox"!==(a=n.afterStart)&&"autoTail"!==a?(e.addClass("flash"),setTimeout(function(){return e.removeClass("flash")},500),t.trigger("refreshrequest"),setTimeout(function(){return t.trigger("refreshrequest")},2500)):void 0}}(this))},s.prototype.toggleStar=function(t){var e,n,r,s;return n=a(t.currentTarget),e=n.parents("tr"),r=e.data("request-id"),this.collection.toggleStar(r),s="true"===n.attr("data-starred"),s?n.attr("data-starred","false"):n.attr("data-starred","true")},s.prototype.changeFilters=function(t){var n,r,s;return t.preventDefault(),s=a(t.currentTarget).data("filter"),n=this.subFilter?this.subFilter.split("-"):[],"all"===this.subFilter||0===e.difference(this.allRequestTypes,n).length?this.subFilter=s:(r=e.contains(n,s),r?n=e.without(n,s):n.push(s),0!==n.length&&0!==e.difference(this.allRequestTypes,n).length?this.subFilter=n.join("-"):this.subFilter="all"),this.updateUrl(),this.render()},s.prototype.searchChange=function(t){var e,n;if(this===app.views.current)return n=this.searchFilter,e=this.$("input[type='search']"),this.searchFilter=e.val(),this.searchFilter!==n?(this.updateUrl(),this.renderTable()):void 0},s.prototype.showQuartz=function(t){return u.dialog.alert({message:this.quartzTemplate}),t.stopPropogation()},s}(o),t.exports=s}).call(e,n(3),n(1))},,function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){return"active"},3:function(t,e,n,a,r){var s;return' \n'},5:function(t,e,n,a,r){var s;return'
    \n'+(null!=(s=t.invokePartial(a.requestsFilter,e,{name:"requestsFilter",data:r,indent:" ",helpers:n,partials:a,decorators:t.decorators}))?s:"")+"
    \n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression;return'
    \n
    \n \n\n'+(null!=(s=n.unless.call(o,null!=(s=null!=e?e.config:e)?s.hideNewRequestButton:s,{name:"unless",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?s:"")+'
    \n
    \n\n
    \n
    \n \n
    \n\n
    \n'+(null!=(s=n["if"].call(o,null!=e?e.hasSubFilter:e,{name:"if",hash:{},fn:t.program(5,r,0),inverse:t.noop,data:r}))?s:"")+'
    \n
    \n\n
    \n
    \n'+(null!=(s=t.invokePartial(a.requestsBody,e,{name:"requestsBody",data:r,indent:" ",helpers:n,partials:a,decorators:t.decorators}))?s:"")+"
    \n
    \n"},usePartial:!0,useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing;return' \n'},2:function(t,e,n,a,r){return'class="active"'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return null!=(s=n.unless.call(null!=e?e:{},null!=e?e.hideRequestTypeFilter:e,{name:"unless",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:""},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveRequests:e,{name:"if",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?s:""},2:function(t,e,n,a,r){var s;return' \n \n \n \n \n \n \n \n \n \n \n\n'+(null!=(s=(n.ifInSubFilter||e&&e.ifInSubFilter||n.helperMissing).call(null!=e?e:{},"SCHEDULED",null!=e?e.requestsSubFilter:e,{name:"ifInSubFilter",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?s:"")+'\n \n \n \n \n'},3:function(t,e,n,a,r){return' \n\n'},5:function(t,e,n,a,r,s,i){var o,l,u=t.lambda,c=t.escapeExpression,p=null!=e?e:{},d=n.helperMissing,h="function";return' \n \n \n \n \n \n \n \n \n\n"+(null!=(o=(n.ifInSubFilter||e&&e.ifInSubFilter||d).call(p,"SCHEDULED",null!=i[1]?i[1].requestsSubFilter:i[1],{name:"ifInSubFilter",hash:{},fn:t.program(6,r,0,s,i),inverse:t.noop,data:r}))?o:"")+'\n \n \n"},6:function(t,e,n,a,r){var s;return' \n"},7:function(t,e,n,a,r){var s;return" "+t.escapeExpression(t.lambda(null!=(s=null!=e?e.request:e)?s.quartzSchedule:s,e))+"\n"},9:function(t,e,n,a,r){var s;return null!=(s=(n.ifEqual||e&&e.ifEqual||n.helperMissing).call(null!=e?e:{},null!=(s=null!=e?e.request:e)?s.scheduleType:s,"quartz",{name:"ifEqual",hash:{},fn:t.program(10,r,0),inverse:t.program(12,r,0),data:r}))?s:""},10:function(t,e,n,a,r){var s;return" "+t.escapeExpression(t.lambda(null!=(s=null!=e?e.request:e)?s.schedule:s,e))+"\n"},12:function(t,e,n,a,r){var s,i=t.lambda,o=t.escapeExpression;return" "+o(i(null!=(s=null!=e?e.request:e)?s.schedule:s,e))+" "+o(i(null!=(s=null!=e?e.request:e)?s.scheduleType:s,e))+"\n"},14:function(t,e,n,a,r){var s;return' \n \n \n'},16:function(t,e,n,a,r){var s,i,o=t.escapeExpression;return' \n \n \n'},18:function(t,e,n,a,r){var s;return' \n \n \n'},20:function(t,e,n,a,r){var s,i,o=t.escapeExpression;return' \n \n \n'},22:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveRequests:e,{name:"if",hash:{},fn:t.program(23,r,0),inverse:t.program(25,r,0),data:r}))?s:""},23:function(t,e,n,a,r){return" \n
    \n \n Name\n \n Type\n \n State\n \n Instances\n \n Deploy ID\n \n Deploy user\n
    \n \n Schedule \n \n
    \n \n \n \n \n \n '+c(u(null!=(o=null!=e?e.request:e)?o.id:o,e))+"\n \n \n "+c((n.humanizeText||e&&e.humanizeText||d).call(p,null!=(o=null!=e?e.request:e)?o.requestType:o,{name:"humanizeText",hash:{},data:r}))+"\n \n "+c((n.humanizeText||e&&e.humanizeText||d).call(p,null!=e?e.state:e,{name:"humanizeText",hash:{},data:r}))+'\n \n '+c(u(null!=(o=null!=e?e.request:e)?o.instances:o,e))+'\n \n '+c(u(null!=(o=null!=(o=null!=e?e.requestDeployState:e)?o.activeDeploy:o)?o.deployId:o,e))+'\n \n '+c((n.usernameFromEmail||e&&e.usernameFromEmail||d).call(p,null!=(o=null!=(o=null!=e?e.requestDeployState:e)?o.activeDeploy:o)?o.user:o,{name:"usernameFromEmail",hash:{},data:r}))+'\n
    \n'+(null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=e?e.request:e)?s.quartzSchedule:s,{name:"if",hash:{},fn:t.program(7,r,0),inverse:t.program(9,r,0),data:r}))?s:"")+"
    \n"},25:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.collectionSynced:e,{name:"if",hash:{},fn:t.program(26,r,0),inverse:t.program(28,r,0),data:r}))?s:""},26:function(t,e,n,a,r){return'

    No requests

    \n'},28:function(t,e,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r,s,i){var o,l=null!=e?e:{};return(null!=(o=n.unless.call(l,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(1,r,0,s,i),inverse:t.noop,data:r}))?o:"")+(null!=(o=n.each.call(l,null!=e?e.requests:e,{name:"each",hash:{},fn:t.program(5,r,0,s,i),inverse:t.noop,data:r}))?o:"")+(null!=(o=n.unless.call(l,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(22,r,0,s,i),inverse:t.noop,data:r}))?o:"")},useData:!0,useDepths:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveRequests:e,{name:"if",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?s:""},2:function(t,e,n,a,r){var s;return' \n \n \n \n \n \n \n \n \n \n\n'+(null!=(s=(n.ifInSubFilter||e&&e.ifInSubFilter||n.helperMissing).call(null!=e?e:{},"SCHEDULED",null!=e?e.requestsSubFilter:e,{name:"ifInSubFilter",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?s:"")+'\n \n \n \n \n'},3:function(t,e,n,a,r){return' \n'},5:function(t,e,n,a,r,s,i){var o,l,u=t.lambda,c=t.escapeExpression,p=null!=e?e:{},d=n.helperMissing,h="function";return' \n \n \n \n \n \n \n \n\n"+(null!=(o=(n.ifInSubFilter||e&&e.ifInSubFilter||d).call(p,"SCHEDULED",null!=i[1]?i[1].requestsSubFilter:i[1],{name:"ifInSubFilter",hash:{},fn:t.program(6,r,0,s,i),inverse:t.noop,data:r}))?o:"")+'\n \n \n"},6:function(t,e,n,a,r){var s;return' \n"},7:function(t,e,n,a,r){var s;return" "+t.escapeExpression(t.lambda(null!=(s=null!=e?e.request:e)?s.quartzSchedule:s,e))+"\n"},9:function(t,e,n,a,r){var s;return null!=(s=(n.ifEqual||e&&e.ifEqual||n.helperMissing).call(null!=e?e:{},null!=(s=null!=e?e.request:e)?s.scheduleType:s,"quartz",{name:"ifEqual",hash:{},fn:t.program(10,r,0),inverse:t.program(12,r,0),data:r}))?s:""},10:function(t,e,n,a,r){var s;return" "+t.escapeExpression(t.lambda(null!=(s=null!=e?e.request:e)?s.schedule:s,e))+"\n"},12:function(t,e,n,a,r){var s,i=t.lambda,o=t.escapeExpression;return" "+o(i(null!=(s=null!=e?e.request:e)?s.schedule:s,e))+" "+o(i(null!=(s=null!=e?e.request:e)?s.scheduleType:s,e))+"\n"},14:function(t,e,n,a,r){var s,i,o=t.escapeExpression,l=null!=e?e:{},u=n.helperMissing;return' \n \n \n'+(null!=(s=(n.ifInSubFilter||e&&e.ifInSubFilter||u).call(l,null!=e?e.type:e,"WORKER,SERVICE",{name:"ifInSubFilter",hash:{},fn:t.program(15,r,0),inverse:t.noop,data:r}))?s:"")},15:function(t,e,n,a,r){var s;return' \n \n \n'},17:function(t,e,n,a,r){var s,i,o=t.escapeExpression;return' \n \n \n'},19:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveRequests:e,{name:"if",hash:{},fn:t.program(20,r,0),inverse:t.program(22,r,0),data:r}))?s:""},20:function(t,e,n,a,r){return" \n
    \n \n Name\n \n Type\n \n Instances\n \n Deploy ID\n \n Deploy user\n
    \n \n Schedule \n \n
    \n \n \n \n \n \n '+c(u(null!=(o=null!=e?e.request:e)?o.id:o,e))+"\n \n \n "+c((n.humanizeText||e&&e.humanizeText||d).call(p,null!=(o=null!=e?e.request:e)?o.requestType:o,{name:"humanizeText",hash:{},data:r}))+'\n \n '+c(u(null!=(o=null!=e?e.request:e)?o.instances:o,e))+'\n \n '+c(u(null!=(o=null!=(o=null!=e?e.requestDeployState:e)?o.activeDeploy:o)?o.deployId:o,e))+'\n \n '+c((n.usernameFromEmail||e&&e.usernameFromEmail||d).call(p,null!=(o=null!=(o=null!=e?e.requestDeployState:e)?o.activeDeploy:o)?o.user:o,{name:"usernameFromEmail",hash:{},data:r}))+'\n
    \n'+(null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=e?e.request:e)?s.quartzSchedule:s,{name:"if",hash:{},fn:t.program(7,r,0),inverse:t.program(9,r,0),data:r}))?s:"")+"
    \n"},22:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.collectionSynced:e,{name:"if",hash:{},fn:t.program(23,r,0),inverse:t.program(25,r,0),data:r}))?s:""},23:function(t,e,n,a,r){return'

    No requests

    \n'},25:function(t,e,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r,s,i){var o,l=null!=e?e:{};return(null!=(o=n.unless.call(l,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(1,r,0,s,i),inverse:t.noop,data:r}))?o:"")+(null!=(o=n.each.call(l,null!=e?e.requests:e,{name:"each",hash:{},fn:t.program(5,r,0,s,i),inverse:t.noop,data:r}))?o:"")+(null!=(o=n.unless.call(l,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(19,r,0,s,i),inverse:t.noop,data:r}))?o:"")},useData:!0,useDepths:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveRequests:e,{name:"if",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?s:""},2:function(t,e,n,a,r){var s;return' \n \n \n \n \n \n \n \n\n'+(null!=(s=(n.ifInSubFilter||e&&e.ifInSubFilter||n.helperMissing).call(null!=e?e:{},"SCHEDULED",null!=e?e.requestsSubFilter:e,{name:"ifInSubFilter",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?s:"")+'\n \n \n \n \n'},3:function(t,e,n,a,r){return' \n'},5:function(t,e,n,a,r,s,i){var o,l,u=t.lambda,c=t.escapeExpression,p=null!=e?e:{},d=n.helperMissing;return' \n \n \n \n\n"+(null!=(o=(n.ifInSubFilter||e&&e.ifInSubFilter||d).call(p,"SCHEDULED",null!=i[1]?i[1].requestsSubFilter:i[1],{name:"ifInSubFilter",hash:{},fn:t.program(6,r,0,s,i),inverse:t.noop,data:r}))?o:"")+'\n \n \n"},6:function(t,e,n,a,r){var s;return' \n"},7:function(t,e,n,a,r){var s;return" "+t.escapeExpression(t.lambda(null!=(s=null!=e?e.request:e)?s.quartzSchedule:s,e))+"\n"},9:function(t,e,n,a,r){var s;return null!=(s=(n.ifEqual||e&&e.ifEqual||n.helperMissing).call(null!=e?e:{},null!=(s=null!=e?e.request:e)?s.scheduleType:s,"quartz",{name:"ifEqual",hash:{},fn:t.program(10,r,0),inverse:t.program(12,r,0),data:r}))?s:""},10:function(t,e,n,a,r){var s;return" "+t.escapeExpression(t.lambda(null!=(s=null!=e?e.request:e)?s.schedule:s,e))+"\n"},12:function(t,e,n,a,r){var s,i=t.lambda,o=t.escapeExpression;return" "+o(i(null!=(s=null!=e?e.request:e)?s.schedule:s,e))+" "+o(i(null!=(s=null!=e?e.request:e)?s.scheduleType:s,e))+"\n"},14:function(t,e,n,a,r){var s,i,o=t.escapeExpression;return' \n \n \n'},16:function(t,e,n,a,r){var s,i,o=t.escapeExpression;return' \n \n \n'},18:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveRequests:e,{name:"if",hash:{},fn:t.program(19,r,0),inverse:t.program(21,r,0),data:r}))?s:""},19:function(t,e,n,a,r){return" \n
    \n Name\n \n Type\n
    \n \n Schedule \n \n
    \n \n
    \n'+(null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=e?e.request:e)?s.quartzSchedule:s,{name:"if",hash:{},fn:t.program(7,r,0),inverse:t.program(9,r,0),data:r}))?s:"")+"
    \n"},21:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.collectionSynced:e,{name:"if",hash:{},fn:t.program(22,r,0),inverse:t.program(24,r,0),data:r}))?s:""},22:function(t,e,n,a,r){return'

    No requests on cooldown

    \n'},24:function(t,e,n,a,r){return'
    \n'; },compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r,s,i){var o,l=null!=e?e:{};return(null!=(o=n.unless.call(l,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(1,r,0,s,i),inverse:t.noop,data:r}))?o:"")+(null!=(o=n.each.call(l,null!=e?e.requests:e,{name:"each",hash:{},fn:t.program(5,r,0,s,i),inverse:t.noop,data:r}))?o:"")+(null!=(o=n.unless.call(l,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(18,r,0,s,i),inverse:t.noop,data:r}))?o:"")},useData:!0,useDepths:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveRequests:e,{name:"if",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?s:""},2:function(t,e,n,a,r){return' \n \n \n \n \n \n \n \n'},4:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return' \n \n \n \n"},6:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveRequests:e,{name:"if",hash:{},fn:t.program(7,r,0),inverse:t.program(9,r,0),data:r}))?s:""},7:function(t,e,n,a,r){return" \n
    \n ID\n \n Pending Type\n
    '+u((s=null!=(s=n.requestId||(null!=e?e.requestId:e))?s:o,typeof s===l?s.call(i,{name:"requestId",hash:{},data:r}):s))+""+u((n.humanizeText||e&&e.humanizeText||o).call(i,null!=e?e.pendingType:e,{name:"humanizeText",hash:{},data:r}))+"
    \n"},9:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.collectionSynced:e,{name:"if",hash:{},fn:t.program(10,r,0),inverse:t.program(12,r,0),data:r}))?s:""},10:function(t,e,n,a,r){return'

    No pending requests

    \n'},12:function(t,e,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i=null!=e?e:{};return(null!=(s=n.unless.call(i,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n.each.call(i,null!=e?e.requests:e,{name:"each",hash:{},fn:t.program(4,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n.unless.call(i,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(6,r,0),inverse:t.noop,data:r}))?s:"")},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveRequests:e,{name:"if",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?s:""},2:function(t,e,n,a,r){return' \n \n \n \n \n \n \n \n \n \n'},4:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return' \n \n \n \n \n \n"},6:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveRequests:e,{name:"if",hash:{},fn:t.program(7,r,0),inverse:t.program(9,r,0),data:r}))?s:""},7:function(t,e,n,a,r){return" \n
    \n ID\n \n User\n \n Cleaning Type\n
    \n '+u((s=null!=(s=n.requestId||(null!=e?e.requestId:e))?s:o,typeof s===l?s.call(i,{name:"requestId",hash:{},data:r}):s))+'\n \n '+u((s=null!=(s=n.user||(null!=e?e.user:e))?s:o,typeof s===l?s.call(i,{name:"user",hash:{},data:r}):s))+'\n \n '+u((n.humanizeText||e&&e.humanizeText||o).call(i,null!=e?e.cleanupType:e,{name:"humanizeText",hash:{},data:r}))+"\n
    \n"},9:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.collectionSynced:e,{name:"if",hash:{},fn:t.program(10,r,0),inverse:t.program(12,r,0),data:r}))?s:""},10:function(t,e,n,a,r){return'

    No cleaning requests

    \n'},12:function(t,e,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i=null!=e?e:{};return(null!=(s=n.unless.call(i,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n.each.call(i,null!=e?e.requests:e,{name:"each",hash:{},fn:t.program(4,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n.unless.call(i,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(6,r,0),inverse:t.noop,data:r}))?s:"")},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){return'

    Quartz Schedule Format

    \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    ******(year optional)
    day of week (0 - 7, or use names)
    month (1 - 12)
    day of month (1 - 31)
    hour (0 - 23)
    min (0 - 59)
    seconds
    \n\n\n

    Special Characters

    \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    CharacterFunction
    *All values
    ?No specific value (day of month/day of week)
    -Used to specify ranges (10-12)
    ,Specify additional values (MON,WED,FRI)
    /Specify increments (S/N every Nth value of a set starting from value S)
    L\n
  • last day of week (7), or if used with a value last n day of month (ex. 6L - last friday of month)
  • \n
  • last day of the month, can also specify with an offset (ex. L-3)
  • \n
    WWeekday (15W, nearest weekday to 15th of the month) only for day of month
    #Nth XXX day of the month (6#3 - third friday of the month) only for day of week
    \n'},useData:!0})},function(t,e,n){(function(e,a){var r,s,i,o,l,u,c,p,d=function(t,e){function n(){this.constructor=t}for(var a in e)h.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},h={}.hasOwnProperty;r=n(19),o=n(273),l=n(239),u=n(274),s=n(240),i=n(275),p=n(277),c=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return d(n,t),n.prototype.initialize=function(t){return this.state=t.state,this.requestsSubFilter=t.requestsSubFilter,this.searchFilter=t.searchFilter,this.title("Tasks"),"decommissioning"===this.state?this.collections.tasks=new l([],{state:"active"}):"scheduled"===this.state?this.collections.tasks=new l([],{state:"scheduled",addPropertyString:"pendingTask"}):this.collections.tasks=new l([],{state:this.state}),this.collections.taskCleanups=new s,this.collections.taskKillRecords=new i,this.setView(new p(e.extend({state:this.state,requestsSubFilter:this.requestsSubFilter,searchFilter:this.searchFilter},{collection:this.collections.tasks,pendingTasks:this.collections.tasksPending,cleaningTasks:this.collections.taskCleanups,taskKillRecords:this.collections.taskKillRecords}))),this.view.on("getPendingTask",function(t){return function(e){return t.getPendingTask(e)}}(this)),this.refresh(),app.showView(this.view)},n.prototype.getPendingTask=function(t){return app.showFixedPageLoader(),this.collections.tasksPending=new u([],{requestID:t.requestId}),this.collections.tasksPending.fetch().done(function(e){return function(){return utils.viewJSON(e.collections.tasksPending.getTaskByRuntime(t.nextRunAt),function(t){return t.error?(Messenger().error({message:"

    This task is no longer pending.

    "}),e.refresh()):void 0}),app.hideFixedPageLoader()}}(this))},n.prototype.refresh=function(){return this.collections.taskCleanups.fetch(),this.collections.taskKillRecords.fetch(),a(window).scrollTop()>200||this.view.isSorted?void 0:this.collections.tasks.fetch({reset:!0})},n}(r),t.exports=c}).call(e,n(3),n(1))},function(t,e,n){var a,r,s,i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;a=n(22),r=n(24),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.ignoreAttributes=["id","host","cpus","memoryMb"],e}(a),t.exports=s},function(t,e,n){var a,r,s,i=function(t,e){return function(){return t.apply(e,arguments)}},o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty;a=n(21),r=n(273),s=function(t){function e(){return this.getTaskByRuntime=i(this.getTaskByRuntime,this),this.initialize=i(this.initialize,this),e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.model=r,e.prototype.url=function(){return config.apiRoot+"/tasks/scheduled/request/"+this.requestID},e.prototype.initialize=function(t,e){null==t&&(t=[]),this.requestID=e.requestID},e.prototype.getTaskByRuntime=function(t){var e,n,a,r;for(r=this.models,e=0,n=r.length;n>e;e++)if(a=r[e],a.get("pendingTask").pendingTaskId.nextRunAt===t)return a},e}(a),t.exports=s},function(t,e,n){var a,r,s,i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;a=n(21),r=n(276),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.model=r,e.prototype.comparator="timestamp",e.prototype.url=function(){return config.apiRoot+"/tasks/killed"},e}(a),t.exports=s},function(t,e,n){var a,r,s=function(t,e){function n(){this.constructor=t}for(var a in e)i.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;a=n(22),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.parse=function(t){return t.id=t.taskId.id+"-"+t.timestamp,t},e}(a),t.exports=r},function(t,e,n){(function(e,a){var r,s,i,o,l,u,c,p,d=function(t,e){return function(){return t.apply(e,arguments)}},h=function(t,e){function n(){this.constructor=t}for(var a in e)f.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},f={}.hasOwnProperty;l=n(201),r=n(24),s=n(278),u=n(263),c=n(279),o=n(2),p=n(14),i=function(t){function r(){return this.searchChange=d(this.searchChange,this),this.runTask=d(this.runTask,this),this.updateUrl=d(this.updateUrl,this),this.handleScroll=d(this.handleScroll,this),this.sortTable=d(this.sortTable,this),this.renderTableChunk=d(this.renderTableChunk,this),this.renderTable=d(this.renderTable,this),this.render=d(this.render,this),this.filterCollection=d(this.filterCollection,this),this.fuzzySearch=d(this.fuzzySearch,this),this.events=d(this.events,this),r.__super__.constructor.apply(this,arguments)}return h(r,t),r.prototype.isSorted=!1,r.prototype.templateBase=n(280),r.prototype.templateRequestFilter=n(265),r.prototype.bodyTemplateMap={active:n(281),scheduled:n(282),cleaning:n(283),lbcleanup:n(284),decommissioning:n(285)},r.prototype.renderProgress=0,r.prototype.renderAtOnce=100,r.prototype.currentTasks=[],r.prototype.allRequestTypes=["SERVICE","WORKER","SCHEDULED","ON_DEMAND","RUN_ONCE"],r.prototype.events=function(){return e.extend(r.__super__.events.apply(this,arguments),{'click [data-action="viewJSON"]':"viewJson",'click [data-action="remove"]':"removeTask",'click [data-action="run-now"]':"runTask",'change input[type="search"]':"searchChange",'keyup input[type="search"]':"searchChange",'input input[type="search"]':"searchChange","click th[data-sort-attribute]":"sortTable","click [data-filter]":"changeRequestFilters"})},r.prototype.initialize=function(t){return this.state=t.state,this.requestsSubFilter=t.requestsSubFilter,this.searchFilter=t.searchFilter,this.cleaningTasks=t.cleaningTasks,this.taskKillRecords=t.taskKillRecords,this.bodyTemplate=this.bodyTemplateMap[this.state],this.listenTo(this.collection,"sync",this.render),this.listenTo(this.cleaningTasks,"change",this.render),this.listenTo(this.taskKillRecords,"change",this.render),this.fuzzySearch=e.memoize(this.fuzzySearch),this.showDiskSpace=window.config.showTaskDiskSpace},r.prototype.fuzzySearch=function(t,n){var a,r,s,i,l,c;return a={extract:function(t){return""+t.host}},r={extract:function(t){return""+t.id}},s={extract:function(t){return""+t.rackId}},i=u.filter(t,n,a),l=u.filter(t,n,r),c=u.filter(t,n,s),e.uniq(e.pluck(e.sortBy(e.union(c,e.union(i,l)),function(e){return function(e){return o.fuzzyAdjustScore(t,e)}}(this)),"original").reverse())},r.prototype.filterCollection=function(){var t;return t=e.pluck(this.collection.models,"attributes"),this.searchFilter&&(t=this.fuzzySearch(this.searchFilter,t)),"all"!==this.requestsSubFilter&&"active"===this.state&&(t=e.filter(t,function(t){return function(e){var n;return n=!1,-1!==t.requestsSubFilter.indexOf("SERVICE")&&(n=n||"SERVICE"===e.taskRequest.request.requestType),-1!==t.requestsSubFilter.indexOf("WORKER")&&(n=n||"WORKER"===e.taskRequest.request.requestType),-1!==t.requestsSubFilter.indexOf("SCHEDULED")&&(n=n||"SCHEDULED"===e.taskRequest.request.requestType),-1!==t.requestsSubFilter.indexOf("ON_DEMAND")&&(n=n||"ON_DEMAND"===e.taskRequest.request.requestType),-1!==t.requestsSubFilter.indexOf("RUN_ONCE")&&(n=n||"RUN_ONCE"===e.taskRequest.request.requestType),n}}(this))),null!=this.sortAttribute?(t=e.sortBy(t,function(t){return function(e){var n,a,r,s,i;for(a=t.sortAttribute.split("."),i=e,r=0,s=a.length;s>r;r++)if(n=a[r],i=i[n],null==i)return null;return i}}(this)),this.sortAscending||(t=t.reverse())):this.searchFilter||"scheduled"!==this.state&&t.reverse(),this.currentTasks=t},r.prototype.render=function(){var t,e,n;return t=a(".big-search-box"),this.prevSelectionStart=t[0].selectionStart,this.prevSelectionEnd=t[0].selectionEnd,e={tasksFilter:this.state,searchFilter:this.searchFilter,collectionSynced:this.collection.synced,requestsSubFilter:this.requestsSubFilter,haveTasks:this.collection.length&&this.collection.synced,showDiskSpace:this.showDiskSpace,hideRequestTypeFilter:"active"!==this.state},n={partials:{tasksBody:this.bodyTemplate,requestsFilter:this.templateRequestFilter}},this.$el.html(this.templateBase(e,n)),this.renderTable(),r.__super__.render.apply(this,arguments).afterRender(),t=a(".big-search-box"),t[0].setSelectionRange(this.prevSelectionStart,this.prevSelectionEnd),this.$(".has-tooltip").tooltip()},r.prototype.renderTable=function(){return this.$("table").length?(this.$("table").show(),this.$(".empty-table-message").remove(),this.$('input[type="search"]').removeAttr("disabled").attr("placeholder","Filter tasks").focus(),a(window).scrollTop(0),this.filterCollection(),this.renderProgress=0,this.currentTasks.length?(this.renderTableChunk(),a(window).on("scroll",this.handleScroll)):(this.$("table").hide(),void this.$el.append('
    No tasks that match your query
    '))):void 0},r.prototype.renderTableChunk=function(){var t,n,a,r,s,i,o;if(this===app.views.current)return s=0===this.renderProgress,i=this.renderAtOnce+this.renderProgress,o=this.currentTasks.slice(this.renderProgress,i),this.renderProgress=i,r=e.union(e.pluck(e.map(this.cleaningTasks.where({cleanupType:"DECOMISSIONING"}),function(t){return t.toJSON()}),"taskId"),e.pluck(e.map(this.taskKillRecords.where({taskCleanupType:"DECOMISSIONING"}),function(t){return t.toJSON()}),"taskId")),t=this.bodyTemplate({tasks:o,rowsOnly:!0,decomissioning_tasks:r,config:config,showDiskSpace:this.showDiskSpace}),n=this.$(".table-staged table"),a=n.find("tbody"),s?(a.html(t),utils.fixTableColumns(n)):a.append(t),this.$(".actions-column a[title]").tooltip()},r.prototype.sortTable=function(t){var e,n,r;return this.isSorted=!0,n=a(t.currentTarget),r=n.attr("data-sort-attribute"),e=this.$("[data-sorted=true]"),e.removeAttr("data-sorted"),e.find("span").remove(),r===this.sortAttribute&&null!=this.sortAscending?this.sortAscending=!this.sortAscending:this.sortAscending="startedAt"!==r,this.sortAttribute=r,n.attr("data-sorted","true"),n.append(""),this.renderTable()},r.prototype.handleScroll=function(){return this.renderProgress>=this.collection.length?void a(window).off("scroll"):(null!=this.animationFrameRequest&&window.cancelAnimationFrame(this.animationFrameRequest),this.animationFrameRequest=window.requestAnimationFrame(function(t){return function(){var e,n,r,s;return e=t.$("tbody"),s=e.height()+e.offset().top,n=a(window),r=n.scrollTop()+n.height(),r>=s?t.renderTableChunk():void 0}}(this)))},r.prototype.updateUrl=function(){return app.router.navigate("/tasks/"+this.state+"/"+(this.requestsSubFilter?this.requestsSubFilter:"all")+"/"+this.searchFilter,{replace:!0})},r.prototype.viewJson=function(t){var e;return e={taskId:a(t.target).data("task-id"),requestId:a(t.target).data("request-id"),nextRunAt:a(t.target).data("nextrunat")},e.nextRunAt?this.trigger("getPendingTask",e):utils.viewJSON(this.collection.get(e.taskId))},r.prototype.removeTask=function(t){var e,n;return e=a(t.target).parents("tr"),n=e.data("task-id"),this.promptKill(n,function(){return e.remove()})},r.prototype.promptKill=function(t,e){return p.dialog.confirm({input:' Wait for replacement task to start before killing this task\n',buttons:[a.extend({},p.dialog.buttons.YES,{text:"Kill task",className:"vex-dialog-button-primary vex-dialog-button-primary-remove"}),p.dialog.buttons.NO],message:c({id:t}),callback:function(n){return function(r){var s,i;if(r)return i=a(".vex #wait-for-replacement-task").is(":checked"),s=n.collection.get(t).kill(r.message,!1,i),s.error(function(){return app.caughtError()}),"function"==typeof e?e():void 0}}(this)})},r.prototype.runTask=function(t){var e,n,r;return e=a(t.target).parents("tr"),n=e.data("task-id"),r=this.collection.get(n),r.promptRun(function(t){return function(){return e.remove()}}(this))},r.prototype.searchChange=function(t){var e,n;if(this===app.views.current)return n=this.searchFilter,e=this.$("input[type='search']"),this.searchFilter=e.val(),this.searchFilter!==n?(this.updateUrl(),this.renderTable()):void 0},r.prototype.changeRequestFilters=function(t){var n,r,s;return t.preventDefault(),s=a(t.currentTarget).data("filter"),n=this.requestsSubFilter?this.requestsSubFilter.split("-"):[],"all"===this.requestsSubFilter||0===e.difference(this.allRequestTypes,n).length?this.requestsSubFilter=s:(r=e.contains(n,s),r?n=e.without(n,s):n.push(s),0!==n.length&&0!==e.difference(this.allRequestTypes,n).length?this.requestsSubFilter=n.join("-"):this.requestsSubFilter="all"),this.updateUrl(),this.render()},r}(l),t.exports=i}).call(e,n(3),n(1))},function(t,e,n){var a,r,s,i=function(t,e){return function(){return t.apply(e,arguments)}},o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty;a=n(21),r=n(165),s=function(t){function e(){return this.initialize=i(this.initialize,this),this.url=i(this.url,this),e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.model=r,e.prototype.url=function(){return config.apiRoot+"/slaves"},e.prototype.initialize=function(t){},e}(a),t.exports=s},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return"

    Are you sure you want to kill this task?

    \n
    "+t.escapeExpression((s=null!=(s=n.id||(null!=e?e.id:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"id",hash:{},data:r}):s))+"
    \n

    \n Long running process will be started again instantly, scheduled\n tasks will behave as if the task failed and may be rescheduled\n to run in the future depending on whether or not the request\n has numRetriesOnFailure set.\n

    \n"},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){return'class="active"'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression;return'
    \n
    \n \n
    \n
    \n\n
    \n
    \n \n
    \n\n
    \n
    \n'+(null!=(s=t.invokePartial(a.requestsFilter,e,{name:"requestsFilter",data:r,indent:" ",helpers:n,partials:a,decorators:t.decorators}))?s:"")+'
    \n
    \n
    \n\n
    \n
    \n'+(null!=(s=t.invokePartial(a.tasksBody,e,{name:"tasksBody",data:r,indent:" ",helpers:n,partials:a,decorators:t.decorators}))?s:"")+"
    \n
    \n"},usePartial:!0,useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveTasks:e,{name:"if",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?s:""},2:function(t,e,n,a,r){return' \n \n \n \n \n \n \n \n \n \n \n \n \n'},4:function(t,e,n,a,r,s,i){var o,l,u=t.lambda,c=t.escapeExpression,p=null!=e?e:{},d=n.helperMissing,h="function";return' \n \n \n \n \n \n \n \n \n'},5:function(t,e,n,a,r){return" DECOM\n"; },7:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveTasks:e,{name:"if",hash:{},fn:t.program(8,r,0),inverse:t.program(10,r,0),data:r}))?s:""},8:function(t,e,n,a,r){return" \n
    \n Task ID\n \n Host\n \n CPUs\n \n Memory\n \n
    \n \n '+c(u(null!=(o=null!=e?e.taskId:e)?o.id:o,e))+'\n \n \n \n "+c((l=null!=(l=n.host||(null!=e?e.host:e))?l:d,typeof l===h?l.call(p,{name:"host",hash:{},data:r}):l))+"\n \n"+(null!=(o=(n.ifTaskInList||e&&e.ifTaskInList||d).call(p,null!=i[1]?i[1].decomissioning_tasks:i[1],null!=(o=null!=e?e.taskId:e)?o.id:o,{name:"ifTaskInList",hash:{},fn:t.program(5,r,0,s,i),inverse:t.noop,data:r}))?o:"")+' \n "+c((l=null!=(l=n.cpus||(null!=e?e.cpus:e))?l:d,typeof l===h?l.call(p,{name:"cpus",hash:{},data:r}):l))+'\n \n '+c((l=null!=(l=n.memoryMb||(null!=e?e.memoryMb:e))?l:d,typeof l===h?l.call(p,{name:"memoryMb",hash:{},data:r}):l))+' MB\n \n \n \n \n \n { }\n \n
    \n"},10:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.collectionSynced:e,{name:"if",hash:{},fn:t.program(11,r,0),inverse:t.program(13,r,0),data:r}))?s:""},11:function(t,e,n,a,r){return'

    No active tasks

    \n'},13:function(t,e,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r,s,i){var o,l=null!=e?e:{};return(null!=(o=n.unless.call(l,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(1,r,0,s,i),inverse:t.noop,data:r}))?o:"")+(null!=(o=n.each.call(l,null!=e?e.tasks:e,{name:"each",hash:{},fn:t.program(4,r,0,s,i),inverse:t.noop,data:r}))?o:"")+(null!=(o=n.unless.call(l,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(7,r,0,s,i),inverse:t.noop,data:r}))?o:"")},useData:!0,useDepths:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveTasks:e,{name:"if",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?s:""},2:function(t,e,n,a,r){return' \n \n \n \n \n \n \n \n \n \n \n'},4:function(t,e,n,a,r,s,i){var o,l,u=null!=e?e:{},c=n.helperMissing,p="function",d=t.escapeExpression,h=t.lambda;return' \n \n \n \n \n \n \n'},5:function(t,e,n,a,r){return' OVERDUE\n'},7:function(t,e,n,a,r,s,i){var o;return null!=(o=(n.ifTimestampSecondsInFuture||e&&e.ifTimestampSecondsInFuture||n.helperMissing).call(null!=e?e:{},null!=(o=null!=(o=null!=e?e.pendingTask:e)?o.pendingTaskId:o)?o.nextRunAt:o,null!=(o=null!=i[1]?i[1].config:i[1])?o.pendingWithinSeconds:o,{name:"ifTimestampSecondsInFuture",hash:{},fn:t.program(8,r,0,s,i),inverse:t.program(10,r,0,s,i),data:r}))?o:""},8:function(t,e,n,a,r){return' SCHEDULED\n'},10:function(t,e,n,a,r){return' PENDING\n'},12:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveTasks:e,{name:"if",hash:{},fn:t.program(13,r,0),inverse:t.program(15,r,0),data:r}))?s:""},13:function(t,e,n,a,r){return" \n
    \n Task ID\n \n Pending Type\n \n Deploy ID\n
    \n '+d((l=null!=(l=n.id||(null!=e?e.id:e))?l:c,typeof l===p?l.call(u,{name:"id",hash:{},data:r}):l))+'\n \n "+d((n.humanizeText||e&&e.humanizeText||c).call(u,null!=(o=null!=(o=null!=e?e.pendingTask:e)?o.pendingTaskId:o)?o.pendingType:o,{name:"humanizeText",hash:{},data:r}))+"\n \n "+d(h(null!=(o=null!=(o=null!=e?e.pendingTask:e)?o.pendingTaskId:o)?o.deployId:o,e))+'\n
    \n"},15:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.collectionSynced:e,{name:"if",hash:{},fn:t.program(16,r,0),inverse:t.program(18,r,0),data:r}))?s:""},16:function(t,e,n,a,r){return'

    No scheduled tasks

    \n'},18:function(t,e,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r,s,i){var o,l=null!=e?e:{};return(null!=(o=n.unless.call(l,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(1,r,0,s,i),inverse:t.noop,data:r}))?o:"")+(null!=(o=n.each.call(l,null!=e?e.tasks:e,{name:"each",hash:{},fn:t.program(4,r,0,s,i),inverse:t.noop,data:r}))?o:"")+(null!=(o=n.unless.call(l,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(12,r,0,s,i),inverse:t.noop,data:r}))?o:"")},useData:!0,useDepths:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveTasks:e,{name:"if",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?s:""},2:function(t,e,n,a,r){return' \n \n \n \n \n \n \n \n \n \n'},4:function(t,e,n,a,r){var s,i,o=t.lambda,l=t.escapeExpression,u=null!=e?e:{},c=n.helperMissing;return' \n \n \n \n \n \n'},5:function(t,e,n,a,r){var s;return null!=(s=(n.ifTimestampInPast||e&&e.ifTimestampInPast||n.helperMissing).call(null!=e?e:{},null!=(s=null!=(s=null!=e?e.pendingTask:e)?s.pendingTaskId:s)?s.nextRunAt:s,{name:"ifTimestampInPast",hash:{},fn:t.program(6,r,0),inverse:t.noop,data:r}))?s:""},6:function(t,e,n,a,r){return' OVERDUE\n'},8:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveTasks:e,{name:"if",hash:{},fn:t.program(9,r,0),inverse:t.program(11,r,0),data:r}))?s:""},9:function(t,e,n,a,r){return" \n
    \n Task ID\n \n Cleanup type\n
    \n \n '+l(o(null!=(s=null!=e?e.taskId:e)?s.id:s,e))+"\n \n \n "+l((n.humanizeText||e&&e.humanizeText||c).call(u,null!=e?e.cleanupType:e,{name:"humanizeText",hash:{},data:r}))+"\n \n"+(null!=(s=n["if"].call(u,null!=(s=null!=e?e.pendingTask:e)?s.pendingTaskId:s,{name:"if",hash:{},fn:t.program(5,r,0),inverse:t.noop,data:r}))?s:"")+'
    \n"},11:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.collectionSynced:e,{name:"if",hash:{},fn:t.program(12,r,0),inverse:t.program(14,r,0),data:r}))?s:""},12:function(t,e,n,a,r){return'

    No cleaning tasks

    \n'},14:function(t,e,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i=null!=e?e:{};return(null!=(s=n.unless.call(i,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n.each.call(i,null!=e?e.tasks:e,{name:"each",hash:{},fn:t.program(4,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n.unless.call(i,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(8,r,0),inverse:t.noop,data:r}))?s:"")},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveTasks:e,{name:"if",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?s:""},2:function(t,e,n,a,r){return' \n \n \n \n \n \n \n \n \n \n \n \n'},4:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression;return' \n \n \n \n \n \n \n \n'},6:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveTasks:e,{name:"if",hash:{},fn:t.program(7,r,0),inverse:t.program(9,r,0),data:r}))?s:""},7:function(t,e,n,a,r){return" \n
    \n Task ID\n \n Started At\n \n Host\n \n Rack\n \n Instance No\n
    \n \n '+c((i=null!=(i=n.id||(null!=e?e.id:e))?i:l,typeof i===u?i.call(o,{name:"id",hash:{},data:r}):i))+"\n \n \n "+c((n.timestampFromNow||e&&e.timestampFromNow||l).call(o,null!=e?e.startedAt:e,{name:"timestampFromNow",hash:{},data:r}))+"\n \n \n "+c((i=null!=(i=n.host||(null!=e?e.host:e))?i:l,typeof i===u?i.call(o,{name:"host",hash:{},data:r}):i))+"\n \n \n \n "+c((i=null!=(i=n.rackId||(null!=e?e.rackId:e))?i:l,typeof i===u?i.call(o,{name:"rackId",hash:{},data:r}):i))+"\n \n \n "+c((i=null!=(i=n.instanceNo||(null!=e?e.instanceNo:e))?i:l,typeof i===u?i.call(o,{name:"instanceNo",hash:{},data:r}):i))+'\n
    \n"},9:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.collectionSynced:e,{name:"if",hash:{},fn:t.program(10,r,0),inverse:t.program(12,r,0),data:r}))?s:""},10:function(t,e,n,a,r){return'

    No LB cleaning tasks

    \n'},12:function(t,e,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i=null!=e?e:{};return(null!=(s=n.unless.call(i,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n.each.call(i,null!=e?e.tasks:e,{name:"each",hash:{},fn:t.program(4,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n.unless.call(i,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(6,r,0),inverse:t.noop,data:r}))?s:"")},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r,s,i){var o,l=null!=e?e:{};return(null!=(o=n.unless.call(l,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(2,r,0,s,i),inverse:t.noop,data:r}))?o:"")+(null!=(o=n.each.call(l,null!=e?e.tasks:e,{name:"each",hash:{},fn:t.program(5,r,0,s,i),inverse:t.noop,data:r}))?o:"")+(null!=(o=n.unless.call(l,null!=e?e.rowsOnly:e,{name:"unless",hash:{},fn:t.program(8,r,0,s,i),inverse:t.noop,data:r}))?o:"")},2:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveTasks:e,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?s:""},3:function(t,e,n,a,r){return' \n \n \n \n \n \n \n \n \n \n \n \n \n'},5:function(t,e,n,a,r,s,i){var o;return null!=(o=(n.ifInSubFilter||e&&e.ifInSubFilter||n.helperMissing).call(null!=e?e:{},null!=(o=null!=e?e.taskId:e)?o.id:o,null!=i[1]?i[1].decomissioning_tasks:i[1],{name:"ifInSubFilter",hash:{},fn:t.program(6,r,0,s,i),inverse:t.noop,data:r}))?o:""},6:function(t,e,n,a,r){var s,i,o=t.lambda,l=t.escapeExpression,u=null!=e?e:{},c=n.helperMissing,p="function";return' \n \n \n \n \n \n \n \n \n'},8:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.haveTasks:e,{name:"if",hash:{},fn:t.program(9,r,0),inverse:t.program(11,r,0),data:r}))?s:""},9:function(t,e,n,a,r){return" \n
    \n Task ID\n \n CPUs\n \n Memory\n
    \n \n '+l(o(null!=(s=null!=e?e.taskId:e)?s.id:s,e))+'\n \n \n \n "+l((i=null!=(i=n.rackId||(null!=e?e.rackId:e))?i:c,typeof i===p?i.call(u,{name:"rackId",hash:{},data:r}):i))+'\n \n \n '+l((i=null!=(i=n.cpus||(null!=e?e.cpus:e))?i:c,typeof i===p?i.call(u,{name:"cpus",hash:{},data:r}):i))+'\n
    \n"},11:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.collectionSynced:e,{name:"if",hash:{},fn:t.program(12,r,0),inverse:t.program(14,r,0),data:r}))?s:""},12:function(t,e,n,a,r){return'

    No decommissioning tasks

    \n'},14:function(t,e,n,a,r){return'
    \n'},16:function(t,e,n,a,r){return'

    No decommissioning tasks

    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r,s,i){var o;return null!=(o=n["if"].call(null!=e?e:{},null!=e?e.decomissioning_tasks:e,{name:"if",hash:{},fn:t.program(1,r,0,s,i),inverse:t.program(16,r,0,s,i),data:r}))?o:""},useData:!0,useDepths:!0})},function(t,e,n){(function(e){var a,r,s,i,o,l,u,c,p,d,h,f,m,y,v,g,_,b,k,T=function(t,e){return function(){return t.apply(e,arguments)}},w=function(t,e){function n(){this.constructor=t}for(var a in e)M.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},M={}.hasOwnProperty;r=n(19),v=n(164),_=n(287),b=n(288),y=n(169),f=n(240),i=n(290),s=n(291),a=n(292),l=n(293),o=n(247),p=n(562),u=n(565),h=n(249),g=n(566),d=n(567),c=n(568),k=n(569),m=function(t){function r(){return this.getAlerts=T(this.getAlerts,this),r.__super__.constructor.apply(this,arguments)}return w(r,t),r.prototype.templates={overview:n(572),deployFailureNotification:n(573),healthcheckNotification:n(574),taskMetadataAlert:n(575),history:n(576),logs:n(577),lbUpdates:n(578),healthChecks:n(579),info:n(580),environment:n(581),resourceUsage:n(582),alerts:n(583),latestLog:n(584),shellCommands:n(585),taskMetadataTable:n(586)},r.prototype.initialize=function(t){return this.taskId=t.taskId,this.filePath=t.filePath,this.title(this.taskId),this.models.task=new v({taskId:this.taskId}),this.models.resourceUsage=new _({taskId:this.taskId}),this.collections.files=new y([],{taskId:this.taskId,path:this.filePath}),this.collections.logDirectory=new y([],{taskId:this.taskId,path:void 0}),this.collections.s3Logs=new b([],{taskId:this.taskId}),this.collections.taskCleanups=new f,this.collections.pendingDeploys=new i({state:"pending"}),this.collections.alerts=new a,this.subviews.overview=new p({collection:this.collections.taskCleanups,model:this.models.task,template:this.templates.overview}),this.subviews.deployFailureNotification=new h({model:this.models.task,template:this.templates.deployFailureNotification,extraRenderData:function(t){return function(e){return{deploy:t.deploy?t.deploy.toJSON():""}}}(this)}),this.subviews.healthcheckNotification=new u({model:this.models.task,template:this.templates.healthcheckNotification,pendingDeploys:this.collections.pendingDeploys}),this.subviews.taskErrorMetadata=new g({model:this.models.task,template:this.templates.taskMetadataAlert,level:"ERROR",alertClass:"danger",numberPerPage:5}),this.subviews.taskWarnMetadata=new g({model:this.models.task,template:this.templates.taskMetadataAlert,level:"WARN",alertClass:"warning",numberPerPage:1}),this.subviews.history=new h({model:this.models.task,template:this.templates.history}),this.subviews.latestLog=new c({task:this.models.task,logDir:this.collections.logDirectory,template:this.templates.latestLog}),this.subviews.fileBrowser=new l({collection:this.collections.files,model:this.models.task,scrollWhenReady:null!==this.filePath,slaveOffline:!1}),this.subviews.s3Logs=new o({collection:this.collections.s3Logs,template:this.templates.logs}),this.subviews.lbUpdates=new h({model:this.models.task,template:this.templates.lbUpdates}),this.subviews.healthChecks=new h({model:this.models.task,template:this.templates.healthChecks}),this.subviews.info=new h({model:this.models.task,template:this.templates.info}),this.subviews.environment=new h({model:this.models.task,template:this.templates.environment}),this.subviews.resourceUsage=new h({model:this.models.resourceUsage,template:this.templates.resourceUsage}),this.subviews.alerts=new h({collection:this.collections.alerts,template:this.templates.alerts}),this.subviews.shellCommands=new d({model:this.models.task,template:this.templates.shellCommands}),this.subviews.taskMetadataTable=new h({model:this.models.task,template:this.templates.taskMetadataTable}),this.setView(new k(e.extend({subviews:this.subviews,taskId:this.taskId},{model:this.models.task}))),this.refresh(),app.showView(this.view)},r.prototype.fetchResourceUsage=function(){var t;return null!=(t=this.models.resourceUsage)?t.fetch().done(function(t){return function(){return t.models.resourceUsage.get("previousUsage")&&t.models.resourceUsage.setCpuUsage(),t.models.resourceUsage.set("previousUsage",t.models.resourceUsage.toJSON()),t.resourcesFetched?void 0:(setTimeout(function(){return t.fetchResourceUsage()},2e3),t.resourcesFetched=!0)}}(this)).error(function(t){return function(){return app.caughtError(),delete t.models.resourceUsage}}(this)):void 0},r.prototype.getAlerts=function(){var t,e,n,a,r,i,o,l,u;return t=[],l=this.models.task,o=this.models.task.attributes.task.taskRequest.request.id,n=this.models.task.attributes.task.taskRequest.deploy.id,"SCHEDULED"===l.attributes.task.taskRequest.request.requestType&&l.get("isStillRunning")&&(a=new s({deployId:n,requestId:o}),r=a.fetch(),r.done(function(e){return function(){var e,n,r,s;return e=null!=(r=a.get("deployStatistics"))?r.averageRuntimeMillis:void 0,n=(new Date).getTime()-l.get("task").taskId.startedAt,s=window.config.warnIfScheduledJobIsRunningPastNextRunPct/100,n>e*s?t.push({title:"Warning:",message:"This scheduled task has been running longer than "+s+" times the average for the request and may be stuck.",level:"warning"}):void 0}}(this))),l.get("isStillRunning")||(u=l.get("taskUpdates"),e=u.filter(function(t){return function(t){var e;return-1!==(null!=(e=t.statusMessage)?e.indexOf("DECOMISSIONING"):void 0)&&"TASK_CLEANING"===t.taskState}}(this)),i=u.filter(function(t){return function(t){return"TASK_KILLED"===t.taskState}}(this)),e.length>0&&i.length>0&&t.push({message:"This task was replaced then killed by Singularity due to a slave decommissioning.",level:"warning"})),r?r.done(function(e){return function(){return e.collections.alerts.reset(t)}}(this)):this.collections.alerts.reset(t)},r.prototype.fetchDeployDetails=function(){return this.deploy=new s({deployId:this.models.task.attributes.task.taskId.deployId,requestId:this.models.task.attributes.task.taskId.requestId}),this.deploy.fetch().success(function(t){return function(){return t.subviews.deployFailureNotification.render(),t.subviews.healthcheckNotification.deploy=t.deploy,t.subviews.healthcheckNotification.render()}}(this)).error(function(t){return function(){return app.caughtError()}}(this))},r.prototype.refresh=function(){var t;return this.resourcesFetched=!1,this.collections.taskCleanups.fetch(),this.collections.pendingDeploys.fetch(),this.models.task.fetch().done(function(t){return function(){var n;return t.collections.files.fetch().error(t.ignore404),t.models.task.get("isStillRunning")&&t.fetchResourceUsage(),n=t.models.task.get("isStillRunning")?config.runningTaskLogPath:config.finishedTaskLogPath,n=n.replace("$TASK_ID",t.taskId),n=e.initial(n.split("/")).join("/"),t.collections.logDirectory.path=n,t.collections.logDirectory.fetch().error(function(e){return t.ignore400(e),t.ignore404(e),404===e.status?t.subviews.fileBrowser.slaveOffline=t.subviews.fileBrowser.render():void 0})}}(this)).success(function(t){return function(){return t.getAlerts(),t.fetchDeployDetails()}}(this)).error(function(t){return function(){return app.caughtError(),app.router.notFound()}}(this)),1===(null!=(t=this.collections.s3Logs)?t.currentPage:void 0)?this.collections.s3Logs.fetch().error(function(t){return function(){return app.caughtError(),delete t.collections.s3Logs}}(this)):void 0},r}(r),t.exports=m}).call(e,n(3))},function(t,e,n){var a,r,s=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;a=n(22),r=function(t){function e(){return this.initialize=s(this.initialize,this),this.url=s(this.url,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.url=function(){return config.apiRoot+"/tasks/task/"+this.taskId+"/statistics"},e.prototype.initialize=function(t){this.taskId=t.taskId},e.prototype.setCpuUsage=function(){var t,e,n,a,r,s;return a=this.get("previousUsage"),n=this.get("cpusSystemTimeSecs")+this.get("cpusUserTimeSecs"),r=a.cpusSystemTimeSecs+a.cpusUserTimeSecs,s=this.get("timestamp")-a.timestamp,e=(n-r)/s,t=e/this.get("cpusLimit")>1.1,this.set("cpuUsageExceeding",t),t?this.set("cpuUsageClassStatus","danger"):this.set("cpuUsageClassStatus","success"),this.set("cpuUsage",e)},e}(a),t.exports=r},function(t,e,n){var a,r,s,i=function(t,e){return function(){return t.apply(e,arguments)}},o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty;r=n(289),a=n(152),s=function(t){function e(){return this.initialize=i(this.initialize,this),e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.model=r,e.prototype.url=function(){return config.apiRoot+"/logs/task/"+this.taskId},e.prototype.initialize=function(t,e){this.taskId=e.taskId},e.prototype.parse=function(t){var e,n,a;for(e=0,n=t.length;n>e;e++)a=t[e],a.taskId=this.taskId;return t},e}(a),t.exports=s},function(t,e,n){var a,r,s=function(t,e){function n(){this.constructor=t}for(var a in e)i.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;a=n(22),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.idAttribute="key",e.prototype.parse=function(t){return t.shortKey=this._truncateToShortKey(t.key),t},e.prototype._truncateToShortKey=function(t){return t.substring(t.lastIndexOf("/")+1)},e}(a),t.exports=r},function(t,e,n){var a,r,s,i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;a=n(21),r=n(230),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.model=r,e.prototype.initialize=function(t){return this.state=t.state,this.state=null==this.state?"":this.state},e.prototype.url=function(){return config.apiRoot+"/deploys/"+this.state},e}(a),t.exports=s},function(t,e,n){var a,r,s=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;a=n(22),r=function(t){function e(){return this.initialize=s(this.initialize,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.propertyFilters=["deployResult"],e.prototype.url=function(){return config.apiRoot+"/history/request/"+this.requestId+"/deploy/"+this.deployId},e.prototype.initialize=function(t){this.requestId=t.requestId,this.deployId=t.deployId},e}(a),t.exports=r},function(t,e,n){var a,r,s=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t; }for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=n(21),a=function(t){function e(){return this.initialize=s(this.initialize,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.initialize=function(t){},e}(r),t.exports=a},function(t,e,n){(function(e,a){var r,s,i,o,l,u=function(t,e){function n(){this.constructor=t}for(var a in e)c.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},c={}.hasOwnProperty;s=n(294),i=n(446),l=n(201),o=n(447),r=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}var r;return u(n,t),r="",n.prototype.events=function(){return{"click [data-directory-path]":"navigate"}},n.prototype.initialize=function(t){return this.scrollWhenReady=t.scrollWhenReady,this.slaveOffline=t.slaveOffline,this.listenTo(this.collection,"sync",this.render),this.listenTo(this.collection,"error",this.catchAjaxError),this.listenTo(this.model,"sync",this.render),this.task=this.model,this.scrollAfterRender=-1!==Backbone.history.fragment.indexOf("/files")},n.prototype.render=function(){var t,n,r;return n=this.$el.offset().top,t=utils.pathToBreadcrumbs(this.collection.currentDirectory),i.render(s.createElement(o,{synced:this.collection.synced&&this.task.synced,files:e.pluck(this.collection.models,"attributes"),collection:this.collection,path:this.collection.path,breadcrumbs:t,task:this.task}),this.el),r=function(t){return function(){return a(window).scrollTop(t.$el.offset().top-20)}}(this),this.scrollAfterRender&&(this.scrollAfterRender=!1,r(),setTimeout(r,100)),this.$(".actions-column a[title]").tooltip()},n.prototype.catchAjaxError=function(){return app.caughtError(),this.render()},n}(l),t.exports=r}).call(e,n(3),n(1))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){(function(e){var a,r,s,i,o,l,u,c;i=n(294),o=n(448),r=n(449),s=n(560),a=n(558),u=n(561),c=n(2),l=i.createClass({sortBy:function(t,e){return this.props.collection.sortBy(t,e),this.forceUpdate()},columns:function(){var t;return t=this.sortBy,[{data:"Name",sortable:!0,doSort:function(e){return function(e){return t("name",e)}}(this)},{data:"Size",className:"hidden-xs",sortable:!0,doSort:function(e){return function(e){return t("size",e)}}(this)},{data:"Last Modified",className:"hidden-xs",sortable:!0,doSort:function(e){return function(e){return t("mtime",e)}}(this)},{className:"hidden-xs"}]},tableData:function(){var t;return t=[],this.props.collection.map(function(e){return function(n){var o,l,p,d,h;return o=n.attributes.isDirectory||n.attributes.isTailable?r:s,n.attributes.isDirectory?l=function(t){return e.navigate(n.attributes.uiPath,t)}:h=config.appRoot+"/task/"+e.props.task.taskId+"/tail/"+c.substituteTaskId(n.attributes.uiPath,e.props.task.taskId),d=n.attributes.isDirectory?"":c.humanizeFileSize(n.attributes.size),p={dataId:n.attributes.name,dataCollection:"files",data:[{component:o,prop:{text:i.createElement("span",null,i.createElement(a,{iconClass:n.attributes.isDirectory?"folder-open":"file"})," ",n.attributes.name),url:h,onClickFn:l}},{component:s,className:"hidden-xs",prop:{text:d}},{component:u,className:"hidden-xs",prop:{timestamp:n.attributes.mtime,display:"absoluteTimestamp"}}]},n.attributes.isDirectory?p.data.push({component:s,prop:{text:""}}):p.data.push({component:r,className:"hidden-xs actions-column",prop:{text:i.createElement(a,{iconClass:"download-alt"}),url:n.attributes.downloadLink,title:"Download",altText:"Download "+n.attributes.name,overlayTrigger:!0,overlayTriggerPlacement:"top",overlayToolTipContent:"Download "+n.attributes.name,overlayId:"downloadFile"+n.attributes.name}}),t.push(p)}}(this)),t},emptyTableMessage:function(){var t,n,a,r;if(n=this.props,r=n.task,a=n.slaveOffline,t="No files exist in task directory.",r.get("taskUpdates")&&r.get("taskUpdates").length>0)switch(e.last(r.get("taskUpdates")).taskState){case"TASK_LAUNCHED":case"TASK_STAGING":case"TASK_STARTING":t="Could not browse files. The task is still starting up.";break;case"TASK_KILLED":case"TASK_FAILED":case"TASK_LOST":case"TASK_FINISHED":t="No files exist in task directory. It may have been cleaned up."}return a&&(t="Task files are not availible because "+this.props.task.attributes.task.taskId.sanitizedHost+" is offline."),t},navigate:function(t,e){return e.preventDefault(),this.props.collection.path=""+t,app.router.navigate("#task/"+this.props.collection.taskId+"/files/"+this.props.collection.path),this.props.collection.fetch({reset:!0,done:this.forceUpdate}),this.clearTableSort()},renderBreadcrumbs:function(){var t;return t=[],this.props.breadcrumbs.map(function(e){return function(n,a){return t.push(i.createElement("li",{key:a},i.createElement("a",{onClick:function(t){return e.navigate(n.path,t)}},n.name)))}}(this)),t},renderTable:function(){return i.createElement(o,{noPages:!0,tableClassOpts:"table-striped files-table sortable-theme-bootstrap",columnHeads:this.columns(),tableRows:this.tableData(),emptyTableMessage:this.emptyTableMessage(),dataCollection:"taskFiles",ref:function(t){return function(e){return e?t.clearTableSort=e.clearSort:void 0}}(this)})},renderBreadcrumbsAndTable:function(){return this.props.task.slaveMissing?i.createElement("div",{className:"empty-table-message"},"Files can not be fetched because the slave is no longer available"):i.createElement("div",null,i.createElement("ul",{className:"breadcrumb"},this.renderBreadcrumbs()),this.renderTable())},render:function(){return i.createElement("div",null,i.createElement("div",{className:"page-header file-browser-header"},i.createElement("h2",null,"Files")),this.renderBreadcrumbsAndTable())}}),t.exports=l}).call(e,n(3))},function(t,e,n){var a,r,s,i,o,l;i=n(294),s=n(449),a=n(558),r=n(559),l=n(2),o=i.createClass({defaultSortDirectionAscending:!0,propTypes:{columnHeads:i.PropTypes.arrayOf(i.PropTypes.shape({data:i.PropTypes.string,className:i.PropTypes.string,doSort:i.PropTypes.func,sortable:i.PropTypes["boolean"],sortAttr:i.PropTypes.string})).isRequired,tableRows:i.PropTypes.arrayOf(i.PropTypes.shape({dataId:i.PropTypes.string.isRequired,className:i.PropTypes.string,data:i.PropTypes.arrayOf(i.PropTypes.shape({component:i.PropTypes.func.isRequired,prop:i.PropTypes.object,id:i.PropTypes.string,className:i.PropTypes.string})).isRequired})).isRequired,tableClassOpts:i.PropTypes.string,sortDirection:i.PropTypes.any,sortDirectionAscending:i.PropTypes.any,sortBy:i.PropTypes.string,customSorting:i.PropTypes.bool,emptyTableMessage:i.PropTypes.string,customPaging:i.PropTypes.bool,defaultRowsPerPage:i.PropTypes.number,rowsPerPageChoices:i.PropTypes.arrayOf(i.PropTypes.number),setRowsPerPage:i.PropTypes.func,pageNumber:i.PropTypes.number,pageDown:i.PropTypes.func,pageUp:i.PropTypes.func,noPages:i.PropTypes.bool,dataCollection:i.PropTypes.string},defaultRowsPerPageChoices:[5,10,15,20],getInitialState:function(){return{rowsPerPage:this.props.defaultRowsPerPage?this.props.defaultRowsPerPage:5,pageNumber:1}},rowsPerPage:function(){return this.props.rowsPerPage?this.props.rowsPerPage:this.state.rowsPerPage},setRowsPerPage:function(t){return this.props.customPaging?this.props.setRowsPerPage(t):this.setState({rowsPerPage:t})},rowsPerPageChoices:function(){return this.props.rowsPerPageChoices?this.props.rowsPerPageChoices:this.defaultRowsPerPageChoices},renderRowsPerPageChoices:function(){var t;return this.props.noPages?null:(t=[],this.rowsPerPageChoices().map(function(e){return function(n){return t.push(i.createElement(s,{key:n,prop:{url:"#",title:n+" rows per page",text:n,className:"half-roomy-right",onClickFn:function(){return e.setRowsPerPage(n)}}}))}}(this)),i.createElement("div",{title:"Rows Per Page",className:"pull-right"},"Results Per Page: ",t))},clearSort:function(){return this.props.customSorting?void 0:this.setState({sortBy:void 0,sortDirection:void 0})},sortDirection:function(){return this.props.customSorting?this.props.sortDirection:this.state.sortDirectionAscending},sortBy:function(){return this.props.customSorting?this.props.sortBy:this.state.sortBy},sortDirectionAscending:function(){return this.props.customSorting?this.props.sortDirectionAscending:!0},makeColumnHeadSortFn:function(t){return this.props.customSorting?t.doSort:function(e){return function(){var n;return n=e.state.sortBy===t.data?!e.state.sortDirectionAscending:e.defaultSortDirectionAscending,e.setState({sortDirectionAscending:n,sortBy:t.data}),t.doSort(n),e.forceUpdate()}}(this)},getSortableColumnHeadGlyphicon:function(t){return this.sortBy()===t.data?this.sortDirection()===this.sortDirectionAscending()?i.createElement(a,{iconClass:"chevron-up"}):i.createElement(a,{iconClass:"chevron-down"}):void 0},pageNumber:function(){return this.props.customPaging?this.props.pageNumber:this.state.pageNumber},pageUpDisabled:function(){return this.props.customPaging&&(this.props.isLastPage||this.props.tableRows.length=this.props.tableRows.length&&!this.props.customPaging},pageDown:function(){return 1!==this.pageNumber()?this.props.customPaging?this.props.pageDown():this.state.pageNumber>1?this.setState({pageNumber:this.state.pageNumber-1}):void 0:void 0},pageUp:function(){return this.pageUpDisabled()?void 0:this.props.customPaging?this.props.pageUp():this.pageUpDisabled()?void 0:this.setState({pageNumber:this.state.pageNumber+1})},renderPageButtons:function(){return this.props.noPages?null:i.createElement("div",null,i.createElement("div",{className:"col-xs-5"}),i.createElement("div",{className:"col-xs-1"},i.createElement(r,{prop:{iconClass:"chevron-left",btnClass:"default",ariaLabel:"pageDown",alt:"pageDown",className:{"col-xs-5":!0,hide:1===this.pageNumber()},onClick:this.pageDown}})),i.createElement("div",{className:"col-xs-1"},i.createElement(r,{prop:{iconClass:"chevron-right",btnClass:"default",ariaLabel:"pageUp",alt:"pageUp",className:{"col-xs-5":!0,hide:this.pageUpDisabled()},onClick:this.pageUp}})),i.createElement("div",{className:"col-xs-5"}))},getColumnHeadData:function(t){return t.sortable?i.createElement(s,{prop:{url:"#",title:"Sort By "+t.data,onClickFn:function(e){return function(n){var a;return n.preventDefault(),(a=e.makeColumnHeadSortFn(t))()}}(this),text:i.createElement("div",null,t.data," ",this.getSortableColumnHeadGlyphicon(t))}}):t.data},renderTableHeader:function(){return this.props.columnHeads.map(function(t){return function(e,n){return i.createElement("th",{key:n,className:e.className},t.getColumnHeadData(e))}}(this))},renderTableRow:function(t){return t.map(function(t){return function(t,e){var n;return"object"==typeof t?(n=t.component,i.createElement("td",{key:e,className:t.className},i.createElement(n,{prop:t.prop}))):i.createElement("td",{key:e},t)}}(this))},renderEmptyTable:function(){return i.createElement("div",{className:"empty-table-message"},this.props.emptyTableMessage)},displayThisRow:function(t){var e,n;return this.props.customPaging||this.props.noPages?!0:(n=(this.state.pageNumber-1)*this.rowsPerPage(),e=this.state.pageNumber*this.rowsPerPage()-1,t>=n&&e>=t)},renderTableData:function(){return this.props.tableRows.map(function(t){return function(e,n){return t.displayThisRow(n)?i.createElement("tr",{key:n,"data-id":e.dataId,"data-collection":e.dataCollection},t.renderTableRow(e.data)):void 0}}(this))},getClassName:function(){return"table "+this.props.tableClassOpts},render:function(){return 0===this.props.tableRows.length&&1===this.pageNumber()?this.renderEmptyTable():i.createElement("div",null,this.renderRowsPerPageChoices(),i.createElement("div",{className:"table-container"},i.createElement("table",{className:this.getClassName()},i.createElement("thead",null,i.createElement("tr",null,this.renderTableHeader())),i.createElement("tbody",null,this.renderTableData()))),this.renderPageButtons())}}),t.exports=o},function(t,e,n){var a,r,s,i;s=n(294),r=n(450),i=n(553),a=s.createClass({propTypes:{prop:s.PropTypes.shape({className:s.PropTypes.oneOfType([s.PropTypes.string,s.PropTypes.object]),url:s.PropTypes.string,onClickFn:s.PropTypes.func,title:s.PropTypes.string,text:s.PropTypes.node,id:s.PropTypes.string,overlayId:s.PropTypes.string,overlayToolTipContent:s.PropTypes.node,overlayTrigger:s.PropTypes["boolean"],overlayTriggerPlacement:s.PropTypes.oneOf(["top","bottom","left","right"])}).isRequired},getLink:function(){return s.createElement("a",{href:this.props.prop.url,title:this.props.prop.title,onClick:this.props.prop.onClickFn,className:this.props.prop.className,id:this.props.id,key:this.props.key},this.props.prop.text)},getToolTip:function(){return s.createElement(i,{id:this.props.prop.overlayId},this.props.prop.overlayToolTipContent)},render:function(){return this.props.prop.overlayTrigger?s.createElement(r,{placement:this.props.prop.overlayTriggerPlacement,overlay:this.getToolTip()},this.getLink()):this.getLink()}}),t.exports=a},function(t,e,n){"use strict";function a(t,e){return Array.isArray(e)?e.indexOf(t)>=0:t===e}var r=n(451)["default"],s=n(467)["default"],i=n(471)["default"];e.__esModule=!0;var o=n(472),l=i(o),u=n(474),c=i(u),p=n(294),d=i(p),h=n(446),f=i(h),m=n(503),y=(i(m),n(504)),v=i(y),g=n(552),_=i(g),b=d["default"].createClass({displayName:"OverlayTrigger",propTypes:r({},v["default"].propTypes,{trigger:d["default"].PropTypes.oneOfType([d["default"].PropTypes.oneOf(["click","hover","focus"]),d["default"].PropTypes.arrayOf(d["default"].PropTypes.oneOf(["click","hover","focus"]))]),delay:d["default"].PropTypes.number,delayShow:d["default"].PropTypes.number,delayHide:d["default"].PropTypes.number,defaultOverlayShown:d["default"].PropTypes.bool,overlay:d["default"].PropTypes.node.isRequired,onBlur:d["default"].PropTypes.func,onClick:d["default"].PropTypes.func,onFocus:d["default"].PropTypes.func,onMouseEnter:d["default"].PropTypes.func,onMouseLeave:d["default"].PropTypes.func,target:function(){},onHide:function(){},show:function(){}}),getDefaultProps:function(){return{defaultOverlayShown:!1,trigger:["hover","focus"]}},getInitialState:function(){return{isOverlayShown:this.props.defaultOverlayShown}},show:function(){this.setState({isOverlayShown:!0})},hide:function(){this.setState({isOverlayShown:!1})},toggle:function(){this.state.isOverlayShown?this.hide():this.show()},componentWillMount:function(){this.handleMouseOver=this.handleMouseOverOut.bind(null,this.handleDelayedShow),this.handleMouseOut=this.handleMouseOverOut.bind(null,this.handleDelayedHide)},componentDidMount:function(){this._mountNode=document.createElement("div"),this.renderOverlay()},renderOverlay:function(){f["default"].unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)},componentWillUnmount:function(){f["default"].unmountComponentAtNode(this._mountNode),this._mountNode=null,clearTimeout(this._hoverShowDelay),clearTimeout(this._hoverHideDelay)},componentDidUpdate:function(){this._mountNode&&this.renderOverlay()},getOverlayTarget:function(){return f["default"].findDOMNode(this)},getOverlay:function(){var t=r({},c["default"](this.props,s(v["default"].propTypes)),{show:this.state.isOverlayShown,onHide:this.hide,target:this.getOverlayTarget,onExit:this.props.onExit,onExiting:this.props.onExiting,onExited:this.props.onExited,onEnter:this.props.onEnter,onEntering:this.props.onEntering,onEntered:this.props.onEntered}),e=p.cloneElement(this.props.overlay,{placement:t.placement,container:t.container});return d["default"].createElement(v["default"],t,e)},render:function(){var t=d["default"].Children.only(this.props.children),e=t.props,n={"aria-describedby":this.props.overlay.props.id};return this._overlay=this.getOverlay(),n.onClick=_["default"](e.onClick,this.props.onClick),a("click",this.props.trigger)&&(n.onClick=_["default"](this.toggle,n.onClick)),a("hover",this.props.trigger)&&(n.onMouseOver=_["default"](this.handleMouseOver,this.props.onMouseOver,e.onMouseOver),n.onMouseOut=_["default"](this.handleMouseOut,this.props.onMouseOut,e.onMouseOut)),a("focus",this.props.trigger)&&(n.onFocus=_["default"](this.handleDelayedShow,this.props.onFocus,e.onFocus),n.onBlur=_["default"](this.handleDelayedHide,this.props.onBlur,e.onBlur)),p.cloneElement(t,n)},handleDelayedShow:function(){var t=this;if(null!=this._hoverHideDelay)return clearTimeout(this._hoverHideDelay),void(this._hoverHideDelay=null);if(!this.state.isOverlayShown&&null==this._hoverShowDelay){var e=null!=this.props.delayShow?this.props.delayShow:this.props.delay;return e?void(this._hoverShowDelay=setTimeout(function(){t._hoverShowDelay=null,t.show()},e)):void this.show()}},handleDelayedHide:function(){var t=this;if(null!=this._hoverShowDelay)return clearTimeout(this._hoverShowDelay),void(this._hoverShowDelay=null);if(this.state.isOverlayShown&&null==this._hoverHideDelay){var e=null!=this.props.delayHide?this.props.delayHide:this.props.delay;return e?void(this._hoverHideDelay=setTimeout(function(){t._hoverHideDelay=null,t.hide()},e)):void this.hide()}},handleMouseOverOut:function(t,e){var n=e.currentTarget,a=e.relatedTarget||e.nativeEvent.toElement;a&&(a===n||l["default"](n,a))||t(e)}});e["default"]=b,t.exports=e["default"]},function(t,e,n){"use strict";var a=n(452)["default"];e["default"]=a||function(t){for(var e=1;el;)for(var d,h=s(i[l++]),f=c?u(h).concat(c(h)):u(h),m=f.length,y=0;m>y;)p.call(h,d=f[y++])&&(n[d]=h[d]);return n}:Object.assign},function(t,e){var n=Object;t.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},function(t,e,n){var a=n(463);t.exports=function(t){return Object(a(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var a=n(465);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==a(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,n){t.exports={"default":n(468),__esModule:!0}},function(t,e,n){n(469),t.exports=n(457).Object.keys},function(t,e,n){var a=n(462);n(470)("keys",function(t){return function(e){return t(a(e))}})},function(t,e,n){var a=n(455),r=n(457),s=n(466);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],i={};i[t]=e(n),a(a.S+a.F*s(function(){n(1)}),"Object",i)}},function(t,e){"use strict";e["default"]=function(t){return t&&t.__esModule?t:{"default":t}},e.__esModule=!0},function(t,e,n){"use strict";var a=n(473),r=function(){var t=a&&document.documentElement;return t&&t.contains?function(t,e){return t.contains(e)}:t&&t.compareDocumentPosition?function(t,e){return t===e||!!(16&t.compareDocumentPosition(e))}:function(t,e){if(e)do if(e===t)return!0;while(e=e.parentNode);return!1}}();t.exports=r},function(t,e){"use strict";t.exports=!("undefined"==typeof window||!window.document||!window.document.createElement)},function(t,e,n){var a=n(475),r=n(492),s=n(494),i=n(495),o=n(502),l=o(function(t,e){return null==t?{}:"function"==typeof e[0]?i(t,r(e[0],e[1],3)):s(t,a(e))});t.exports=l},function(t,e,n){function a(t,e,n,u){u||(u=[]);for(var c=-1,p=t.length;++c-1&&t%1==0&&a>=t}var a=9007199254740991;t.exports=n},function(t,e,n){var a=n(488),r=n(486),s=n(484),i="[object Array]",o=Object.prototype,l=o.toString,u=a(Array,"isArray"),c=u||function(t){return s(t)&&r(t.length)&&l.call(t)==i};t.exports=c},function(t,e,n){function a(t,e){var n=null==t?void 0:t[e];return r(n)?n:void 0}var r=n(489);t.exports=a},function(t,e,n){function a(t){return null==t?!1:r(t)?p.test(u.call(t)):i(t)&&(s(t)?p:o).test(t)}var r=n(490),s=n(491),i=n(484),o=/^\[object .+?Constructor\]$/,l=Object.prototype,u=Function.prototype.toString,c=l.hasOwnProperty,p=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=a},function(t,e,n){function a(t){return r(t)&&o.call(t)==s}var r=n(482),s="[object Function]",i=Object.prototype,o=i.toString;t.exports=a},function(t,e){var n=function(){try{Object({toString:0}+"")}catch(t){return function(){return!1}}return function(t){return"function"!=typeof t.toString&&"string"==typeof(t+"")}}();t.exports=n},function(t,e,n){function a(t,e,n){if("function"!=typeof t)return r;if(void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,a,r){return t.call(e,n,a,r)};case 4:return function(n,a,r,s){return t.call(e,n,a,r,s)};case 5:return function(n,a,r,s,i){return t.call(e,n,a,r,s,i)}}return function(){return t.apply(e,arguments)}}var r=n(493);t.exports=a},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){function a(t,e){t=r(t);for(var n=-1,a=e.length,s={};++n0,v=d.enumErrorProps&&(t===w||t instanceof Error),g=d.enumPrototypes&&o(t);++a-1&&t%1==0&&e>t}var a=/^\d+$/,r=9007199254740991;t.exports=n},function(t,e){function n(t,e){if("function"!=typeof t)throw new TypeError(a);return e=r(void 0===e?t.length-1:+e||0,0),function(){for(var n=arguments,a=-1,s=r(n.length-e,0),i=Array(s);++a=0||Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a]);return n},e.__esModule=!0},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){var n={};for(var a in t)e.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a]);return n}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e>",null!=n[a]?t(n,a,r):e?new Error("Required prop '"+a+"' was not specified in '"+r+"'."):void 0}var n=e.bind(null,!1);return n.isRequired=e.bind(null,!0),n}e.__esModule=!0,e.errMsg=n,e.createChainableTypeChecker=a},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=n(446),s=a(r),i=n(521),o=a(i);e["default"]=function(t){return o["default"](s["default"].findDOMNode(t))},t.exports=e["default"]},function(t,e){"use strict";function n(t){return t&&t.ownerDocument||document}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){return t="function"==typeof t?t():t,i["default"].findDOMNode(t)||e}e.__esModule=!0,e["default"]=r;var s=n(446),i=a(s);t.exports=e["default"]},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){var n={};for(var a in t)e.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a]);return n}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;eo?-o:l>i?i-l:0}function s(t,e,n,a){var r=f.getContainerDimensions(n),s=r.width,i=t-a,o=t+a+e;return 0>i?-i:o>s?s-o:0}e.__esModule=!0;var i=n(520),o=a(i),l=n(526),u=a(l),c=n(528),p=a(c),d=n(538),h=a(d),f={getContainerDimensions:function(t){var e=void 0,n=void 0,a=void 0;if("BODY"===t.tagName)e=window.innerWidth,n=window.innerHeight,a=h["default"](o["default"](t).documentElement)||h["default"](t);else{var r=u["default"](t);e=r.width,n=r.height,a=h["default"](t)}return{width:e,height:n,scroll:a}},getPosition:function(t,e){var n="BODY"===e.tagName?u["default"](t):p["default"](t,e);return n},calcOverlayPosition:function(t,e,n,a,i){var o=f.getPosition(n,a),l=u["default"](e),c=l.height,p=l.width,d=void 0,h=void 0,m=void 0,y=void 0;if("left"===t||"right"===t){h=o.top+(o.height-c)/2,d="left"===t?o.left-p:o.left+o.width;var v=r(h,c,a,i);h+=v,y=50*(1-2*v/c)+"%",m=void 0}else{if("top"!==t&&"bottom"!==t)throw new Error('calcOverlayPosition(): No such placement of "'+t+'" found.');d=o.left+(o.width-p)/2,h="top"===t?o.top-c:o.top+o.height;var g=s(d,p,a,i);d+=g,m=50*(1-2*g/p)+"%",y=void 0}return{positionLeft:d,positionTop:h,arrowOffsetLeft:m,arrowOffsetTop:y}}};e["default"]=f,t.exports=e["default"]},function(t,e,n){"use strict";var a=n(472),r=n(527),s=n(521);t.exports=function(t){var e=s(t),n=r(e),i=e&&e.documentElement,o={top:0,left:0,height:0,width:0};if(e)return a(i,t)?(void 0!==t.getBoundingClientRect&&(o=t.getBoundingClientRect()),(o.width||o.height)&&(o={top:o.top+(n.pageYOffset||i.scrollTop)-(i.clientTop||0),left:o.left+(n.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:(null==o.width?t.offsetWidth:o.width)||0,height:(null==o.height?t.offsetHeight:o.height)||0}),o):o}},function(t,e){"use strict";t.exports=function(t){return t===t.window?t:9===t.nodeType?t.defaultView||t.parentWindow:!1}},function(t,e,n){"use strict";function a(t){return t.nodeName&&t.nodeName.toLowerCase()}function r(t,e){var n,r={top:0,left:0};return"fixed"===(0,m["default"])(t,"position")?n=t.getBoundingClientRect():(e=e||(0,u["default"])(t),n=(0,o["default"])(t),"html"!==a(e)&&(r=(0,o["default"])(e)),r.top+=parseInt((0,m["default"])(e,"borderTopWidth"),10)-(0,p["default"])(e)||0,r.left+=parseInt((0,m["default"])(e,"borderLeftWidth"),10)-(0,h["default"])(e)||0),s._extends({},n,{top:n.top-r.top-(parseInt((0,m["default"])(t,"marginTop"),10)||0),left:n.left-r.left-(parseInt((0,m["default"])(t,"marginLeft"),10)||0)})}var s=n(529);e.__esModule=!0,e["default"]=r;var i=n(526),o=s.interopRequireDefault(i),l=n(530),u=s.interopRequireDefault(l),c=n(538),p=s.interopRequireDefault(c),d=n(539),h=s.interopRequireDefault(d),f=n(531),m=s.interopRequireDefault(f);t.exports=e["default"]},function(t,e,n){var a,r,s;!function(n,i){r=[e],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(this,function(t){var e=t;e.interopRequireDefault=function(t){return t&&t.__esModule?t:{"default":t}},e._extends=Object.assign||function(t){for(var e=1;en;n++)e[n]=arguments[n];return e.filter(function(t){return null!=t}).reduce(function(t,e){if("function"!=typeof e)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===t?e:function(){for(var n=arguments.length,a=Array(n),r=0;n>r;r++)a[r]=arguments[r];t.apply(this,a),e.apply(this,a)}},null)}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{"default":t}}function r(t,e,n){var a=o.errMsg(t,e,n,". Expected an Element `type`");if("function"!=typeof t[e]){if(i["default"].isValidElement(t[e]))return new Error(a+", not an actual Element");if("string"!=typeof t[e])return new Error(a+" such as a tag name or return value of React.createClass(...)")}}e.__esModule=!0;var s=n(294),i=a(s),o=n(519);e["default"]=o.createChainableTypeChecker(r),t.exports=e["default"]},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{"default":t}}function r(t,e,n){var a=o.errMsg(t,e,n,". Expected an Element `type`");if("function"!=typeof t[e]){if(i["default"].isValidElement(t[e]))return new Error(a+", not an actual Element");if("string"!=typeof t[e])return new Error(a+" such as a tag name or return value of React.createClass(...)")}}e.__esModule=!0;var s=n(294),i=a(s),o=n(547);e["default"]=o.createChainableTypeChecker(r),t.exports=e["default"]},function(t,e){"use strict";function n(t,e,n,a){return"Invalid prop '"+e+"' of value '"+t[e]+"'"+(" supplied to '"+n+"'"+a)}function a(t){function e(e,n,a,r){return r=r||"<>",null!=n[a]?t(n,a,r):e?new Error("Required prop '"+a+"' was not specified in '"+r+"'."):void 0}var n=e.bind(null,!1);return n.isRequired=e.bind(null,!0),n}e.__esModule=!0,e.errMsg=n,e.createChainableTypeChecker=a},function(t,e,n){"use strict";var a=n(505)["default"],r=n(514)["default"],s=n(451)["default"],i=n(471)["default"];e.__esModule=!0;var o=n(294),l=i(o),u=n(524),c=i(u),p=n(549),d=i(p),h=n(551),f=i(h),m=function(t){function e(){r(this,e),t.apply(this,arguments)}return a(e,t),e.prototype.render=function(){var t=this.props.timeout||this.props.duration;return l["default"].createElement(d["default"],s({},this.props,{timeout:t,className:c["default"](this.props.className,"fade"),enteredClassName:"in",enteringClassName:"in"}),this.props.children)},e}(l["default"].Component);m.propTypes={"in":l["default"].PropTypes.bool,unmountOnExit:l["default"].PropTypes.bool,transitionAppear:l["default"].PropTypes.bool,timeout:l["default"].PropTypes.number,duration:f["default"](l["default"].PropTypes.number,"Use `timeout`."),onEnter:l["default"].PropTypes.func,onEntering:l["default"].PropTypes.func,onEntered:l["default"].PropTypes.func,onExit:l["default"].PropTypes.func,onExiting:l["default"].PropTypes.func,onExited:l["default"].PropTypes.func},m.defaultProps={"in":!1,timeout:300,unmountOnExit:!1,transitionAppear:!1},e["default"]=m,t.exports=e["default"]},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){var n={};for(var a in t)e.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a]);return n}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function o(){}e.__esModule=!0;var l=Object.assign||function(t){for(var e=1;en;n++)e[n]=arguments[n];return e.filter(function(t){return null!=t}).reduce(function(t,e){if("function"!=typeof e)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===t?e:function(){for(var n=arguments.length,a=Array(n),r=0;n>r;r++)a[r]=arguments[r];t.apply(this,a),e.apply(this,a)}},null)}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e,n){"use strict";var a=n(451)["default"],r=n(471)["default"];e.__esModule=!0;var s=n(294),i=r(s),o=n(524),l=r(o),u=n(554),c=r(u),p=n(557),d=r(p),h=i["default"].createClass({displayName:"Tooltip",propTypes:{id:d["default"](i["default"].PropTypes.oneOfType([i["default"].PropTypes.string,i["default"].PropTypes.number])),placement:i["default"].PropTypes.oneOf(["top","right","bottom","left"]),positionLeft:i["default"].PropTypes.number,positionTop:i["default"].PropTypes.number,arrowOffsetLeft:i["default"].PropTypes.oneOfType([i["default"].PropTypes.number,i["default"].PropTypes.string]),arrowOffsetTop:i["default"].PropTypes.oneOfType([i["default"].PropTypes.number,i["default"].PropTypes.string]),title:i["default"].PropTypes.node},getDefaultProps:function(){return{bsClass:"tooltip",placement:"right"}},render:function(){var t,e=(t={},t[c["default"].prefix(this.props)]=!0,t[this.props.placement]=!0,t),n=a({left:this.props.positionLeft,top:this.props.positionTop},this.props.style),r={left:this.props.arrowOffsetLeft,top:this.props.arrowOffsetTop};return i["default"].createElement("div",a({role:"tooltip"},this.props,{className:l["default"](this.props.className,e),style:n}),i["default"].createElement("div",{className:c["default"].prefix(this.props,"arrow"),style:r}),i["default"].createElement("div",{className:c["default"].prefix(this.props,"inner")},this.props.children))}});e["default"]=h,t.exports=e["default"]},function(t,e,n){"use strict";function a(t){return function(){for(var e=arguments.length,n=Array(e),a=0;e>a;a++)n[a]=arguments[a];var r=n[n.length-1];return"function"==typeof r?t.apply(void 0,n):function(e){return t.apply(void 0,n.concat([e]))}}}function r(t,e){return void 0===t&&(t={}),(t.bsClass||"").trim()?void 0:p["default"](!1),t.bsClass+(e?"-"+e:"")}var s=n(451)["default"],i=n(471)["default"];e.__esModule=!0;var o=n(294),l=n(555),u=i(l),c=n(556),p=i(c),d=n(503),h=(i(d),a(function(t,e){var n=e.propTypes||(e.propTypes={}),a=e.defaultProps||(e.defaultProps={});return n.bsClass=o.PropTypes.string,a.bsClass=t,e}));e.bsClass=h;var f=a(function(t,e,n){"string"!=typeof e&&(n=e,e=void 0);var a=n.STYLES||[],r=n.propTypes||{};t.forEach(function(t){-1===a.indexOf(t)&&a.push(t)});var i=o.PropTypes.oneOf(a);if(n.STYLES=i._values=a,n.propTypes=s({},r,{bsStyle:i}),void 0!==e){var l=n.defaultProps||(n.defaultProps={});l.bsStyle=e}return n});e.bsStyles=f;var m=a(function(t,e,n){"string"!=typeof e&&(n=e,e=void 0);var a=n.SIZES||[],r=n.propTypes||{};t.forEach(function(t){-1===a.indexOf(t)&&a.push(t)});var i=a.reduce(function(t,e){return u["default"].SIZES[e]&&u["default"].SIZES[e]!==e&&t.push(u["default"].SIZES[e]),t.concat(e)},[]),l=o.PropTypes.oneOf(i);if(l._values=i,n.SIZES=a,n.propTypes=s({},r,{bsSize:l}),void 0!==e){var c=n.defaultProps||(n.defaultProps={});c.bsSize=e}return n});e.bsSizes=m,e["default"]={prefix:r,getClassSet:function(t){var e={},n=r(t);if(n){var a=void 0;e[n]=!0,t.bsSize&&(a=u["default"].SIZES[t.bsSize]||a),a&&(e[r(t,a)]=!0),t.bsStyle&&(0===t.bsStyle.indexOf(r(t))?e[t.bsStyle]=!0:e[r(t,t.bsStyle)]=!0)}return e},addStyle:function(t,e){f(e,t)}};var y=a;e._curry=y},function(t,e,n){"use strict";var a=n(452)["default"],r=n(506)["default"],s=n(467)["default"];e.__esModule=!0;var i=function(t){return a(r({values:function(){var t=this;return s(this).map(function(e){return t[e]})}}),t)},o={SIZES:{large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"},GRID_COLUMNS:12},l=i({LARGE:"large",MEDIUM:"medium",SMALL:"small",XSMALL:"xsmall"});e.Sizes=l;var u=i({SUCCESS:"success",WARNING:"warning",DANGER:"danger",INFO:"info"});e.State=u;var c="default";e.DEFAULT=c;var p="primary";e.PRIMARY=p;var d="link";e.LINK=d;var h="inverse";e.INVERSE=h,e["default"]=o},function(t,e,n){"use strict";var a=function(t,e,n,a,r,s,i,o){if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,a,r,s,i,o],c=0;l=new Error(e.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};t.exports=a},function(t,e){"use strict";function n(t){return function(e,n,a){return null==e[n]?new Error("The prop '"+n+"' is required to make '"+a+"' accessible for users using assistive technologies such as screen readers"):t(e,n,a)}}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e,n){var a,r,s;r=n(294),s=n(524),a=r.createClass({render:function(){var t;return t=s("glyphicon","glyphicon-"+this.props.iconClass),r.createElement("span",{className:t,"aria-hidden":"true"})}}),t.exports=a},function(t,e,n){var a,r,s;r=n(294),s=n(524),a=r.createClass({propTypes:{prop:r.PropTypes.shape({ariaLabel:r.PropTypes.string.isRequired,className:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.object]),btn:r.PropTypes["boolean"],btnClass:r.PropTypes.string.isRequired,iconClass:r.PropTypes.string.isRequired,onClick:r.PropTypes.func.isRequired}).isRequired},render:function(){return r.createElement("button",{"aria-label":this.props.prop.ariaLabel,alt:this.props.prop.ariaLabel,className:s(this.props.prop.className,{btn:this.props.prop.btn!==!1},"btn-"+this.props.prop.btnClass,"glyphicon","glyphicon-"+this.props.prop.iconClass),onClick:this.props.prop.onClick})}}),t.exports=a},function(t,e,n){var a,r;r=n(294),a=r.createClass({propTypes:{prop:r.PropTypes.shape({text:r.PropTypes.node.isRequired,className:r.PropTypes.string}).isRequired},render:function(){return r.createElement("div",{className:this.props.prop.className},this.props.prop.text)}}),t.exports=a},function(t,e,n){var a,r,s;a=n(294),s=n(28),r=a.createClass({propTypes:{prop:a.PropTypes.shape({timestamp:a.PropTypes.number.isRequired,className:a.PropTypes.string,display:a.PropTypes.string.isRequired}).isRequired},timeStampFromNow:function(){var t;return t=s(this.props.prop.timestamp),a.createElement("div",{className:this.props.prop.className},t.fromNow()," (",t.format(window.config.timestampFormat),")")},absoluteTimestamp:function(){var t;return t=s(this.props.prop.timestamp),a.createElement("div",{className:this.props.prop.className},t.format(window.config.timestampFormat))},render:function(){return"timeStampFromNow"===this.props.prop.display?this.timeStampFromNow():"absoluteTimestamp"===this.props.prop.display?this.absoluteTimestamp():void 0}}),t.exports=r},function(t,e,n){(function(e,a){var r,s,i,o,l,u,c,p=function(t,e){return function(){return t.apply(e,arguments)}},d=function(t,e){function n(){this.constructor=t}for(var a in e)h.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},h={}.hasOwnProperty;s=n(201),r=n(168),l=n(279),o=n(563),i=n(564),c=n(13),u=function(t){function n(){return this.killTask=p(this.killTask,this),this.promptKillTask=p(this.promptKillTask,this),n.__super__.constructor.apply(this,arguments)}return d(n,t),n.prototype.events=function(){return e.extend(n.__super__.events.apply(this,arguments),{ 'click [data-action="remove"]':"promptKillTask"})},n.prototype.initialize=function(t){var n,a,s,i,o,l,u;for(this.collection=t.collection,this.model=t.model,this.template=t.template,this.taskModel=new r({id:this.model.taskId}),l=["sync","add","remove","change"],a=0,i=l.length;i>a;a++)n=l[a],this.listenTo(this.model,n,this.render);for(u=["add","reset"],s=0,o=u.length;o>s;s++)n=u[s],this.listenTo(this.collection,n,function(t){return function(){var n,a;return a=t.model.get("taskId"),n=e.last(t.collection.filter(function(t){return t.get("taskId").id===a})),n?t.model.set("cleanup",n.attributes):t.model.unset("cleanup")}}(this));return this.listenTo(this.model,"reset",function(t){return function(){return t.$el.empty()}}(this))},n.prototype.render=function(){return this.model.synced?this.$el.html(this.template(this.renderData())):void 0},n.prototype.renderData=function(){return{config:config,data:this.model.toJSON(),synced:this.model.synced&&this.collection.synced}},n.prototype.promptKillTask=function(){return this.model.fetch().done(function(t){return function(){return t.model.get("isStillRunning")?t.collection.fetch({reset:!0}).done(function(){var e,n,r,s;return t.model.has("cleanup")&&!t.model.get("cleanup").isImmediate?(e="Override",s=o):t.model.get("isCleaning")?(e="Destroy task",s=i):(e="Kill task",s=l),n="","WORKER"!==(r=t.model.get("task").taskRequest.request.requestType)&&"SERVICE"!==r||(n="checked"),c.dialog.confirm({buttons:[a.extend({},c.dialog.buttons.YES,{text:e,className:"vex-dialog-button-primary vex-dialog-button-primary-remove"}),c.dialog.buttons.NO],input:'\n',message:s({id:t.model.taskId}),callback:function(e){return e.waitForReplacementTask=a(".vex #wait-for-replacement-task").is(":checked"),e?t.killTask(e):void 0}})}):void 0}}(this))},n.prototype.killTask=function(t){return this.taskModel.kill(t.message,this.model.has("cleanup")||this.model.get("isCleaning"),t.waitForReplacementTask).done(function(t){return function(e){return t.collection.add([e],{parse:!0})}}(this)).error(function(t){return function(e){return 409===e.status?(app.caughtError(),t.collection.add([e.responseJSON],{parse:!0})):void 0}}(this))},n}(s),t.exports=u}).call(e,n(3),n(1))},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return"

    Are you sure you want to override kill this task?

    \n

    "+t.escapeExpression((s=null!=(s=n.id||(null!=e?e.id:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"id",hash:{},data:r}):s))+"
    \n

    \n This will override any pending cleanup operations, immediately initiate a graceful kill, and not wait for replacement tasks.\n

    "},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return"

    Are you sure you want to destroy this task?

    \n
    "+t.escapeExpression((s=null!=(s=n.id||(null!=e?e.id:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"id",hash:{},data:r}):s))+"
    \n

    \n This will override any pending cleanup operations and immediately send a kill request to the executor without waiting for replacement tasks.\n

    "},useData:!0})},function(t,e,n){(function(e){var a,r,s,i=function(t,e){return function(){return t.apply(e,arguments)}},o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty,u=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};r=n(201),a=n(168),s=function(t){function n(){return this.renderData=i(this.renderData,this),this.render=i(this.render,this),this.outsideDeployFailureKilledTask=i(this.outsideDeployFailureKilledTask,this),n.__super__.constructor.apply(this,arguments)}return o(n,t),n.prototype.noHealthcheckMessageStates=["TASK_FAILED","TASK_FINISHED","TASK_LOST"],n.prototype.events=function(){return e.extend(n.__super__.events.apply(this,arguments),{'click [data-action="viewHealthchecks"]':"triggerToggleHealthchecks"})},n.prototype.initialize=function(t){return this.model=t.model,this.template=t.template,this.pendingDeploys=t.pendingDeploys,this.listenTo(this.model,"change",this.render),this.listenTo(this.model,"sync",this.render),this.listenTo(this.pendingDeploys,"sync",this.render)},n.prototype.outsideDeployFailureKilledTask=function(){var t,e,n,a,r;if(r=this.model.get("taskUpdates"),!r)return!1;if(n=!1,this.deploy&&this.deploy.attributes.deployResult&&this.deploy.attributes.deployResult.deployFailures&&this.deploy.attributes.deployResult.deployFailures.map(function(t){return function(e){return e.taskId&&e.taskId.id===t.model.attributes.taskId?n=!0:void 0}}(this)),n)return!1;for(t=0,e=r.length;e>t;t++)if(a=r[t],a.statusMessage&&-1!==a.statusMessage.indexOf("DEPLOY_FAILED"))return!0;return!1},n.prototype.render=function(){var t;if(this.model.synced&&(t=this.model.attributes.lastKnownState,!(u.call(this.noHealthcheckMessageStates,t)>=0)))return this.$el.html(this.template(this.renderData()))},n.prototype.renderData=function(){var t,n,a,r,s,i,o,l,u,c,p,d;return d=this.model.get("taskUpdates"),u=this.model.get("task").taskId.requestId,t=this.model.get("task").taskId.deployId,n=this.pendingDeploys.find(function(e){return e.get("deployMarker")&&e.get("deployMarker").requestId===u&&e.get("deployMarker").deployId===t&&"WAITING"===e.get("currentDeployState")}),a=this.model.get("task").taskRequest.deploy.healthcheckMaxTotalTimeoutSeconds?this.model.get("task").taskRequest.deploy.healthcheckMaxTotalTimeoutSeconds:config.defaultDeployHealthTimeoutSeconds,s=this.model.get("task").taskRequest.deploy.healthcheckMaxRetries?this.model.get("task").taskRequest.deploy.healthcheckMaxRetries:config.defaultHealthcheckMaxRetries,p="Waiting for successful load balancer update",n&&n.get("deployProgress")&&n.get("deployProgress").stepComplete&&(r=this.model.get("task").taskId.instanceNo,c=n.get("deployProgress").targetActiveInstances,i=n.get("deployProgress").targetActiveInstances-n.get("deployProgress").deployInstanceCountPerStep,(c>=r&&r>i||!this.model.get("task").taskRequest.request.loadBalanced)&&(p="Waiting for subsequent deploy steps to complete")),{data:this.model.toJSON(),deployStatus:n,taskHealthyMessage:p,hasSuccessfulHealthcheck:(null!=(o=this.model.get("healthcheckResults"))?o.length:void 0)>0&&e.find(this.model.get("healthcheckResults"),function(t){return 200===t.statusCode}),lastHealthcheckFailed:(null!=(l=this.model.get("healthcheckResults"))?l.length:void 0)>0&&200!==this.model.get("healthcheckResults")[0].statusCode,healthcheckFailureReasonMessage:this.healthcheckFailureReasonMessage(),synced:this.model.synced,config:config,tooManyRetries:this.model.get("healthcheckResults").length>s&&0!==s,numberFailed:this.model.get("healthcheckResults").length,secondsElapsed:a,doNotDisplayHealthcheckNotification:this.outsideDeployFailureKilledTask()}},n.prototype.healthcheckFailureReasonMessage=function(){var t,e,n;return t=this.model.get("healthcheckResults"),t&&t.length>0&&t[0].errorMessage&&-1!==t[0].errorMessage.toLowerCase().indexOf("connection refused")?(n=this.model.attributes.task.taskRequest.deploy.healthcheckPortIndex||0,e=this.model.attributes.ports.length>n?this.model.attributes.ports[n]:!1,"a refused connection. It is possible your app did not start properly or was not listening on the anticipated port ("+e+"). Please check the logs for more details."):void 0},n.prototype.triggerToggleHealthchecks=function(){return this.trigger("toggleHealthchecks")},n}(r),t.exports=s}).call(e,n(3))},function(t,e,n){(function(e){var a,r,s=function(t,e){function n(){this.constructor=t}for(var a in e)i.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;r=n(201),a=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return s(n,t),n.prototype.currentPage=1,n.prototype.events=function(){return e.extend(n.__super__.events.apply(this,arguments),{'click [data-action="increase-page"]':"increasePage",'click [data-action="decrease-page"]':"decreasePage"})},n.prototype.initialize=function(t){var e,n,a,r,s;for(this.params=t,this.template=this.params.template,this.numberPerPage=this.params.numberPerPage||1,r=["sync","add","remove","change","reset"],s=[],n=0,a=r.length;a>n;n++)e=r[n],s.push(this.listenTo(this.model,e,this.render));return s},n.prototype.render=function(){var t;if(this.model.synced||("function"==typeof(t=this.model).isEmpty?!t.isEmpty():!0))return this.$el.html(this.template(this.renderData())),n.__super__.render.apply(this,arguments).afterRender()},n.prototype.renderData=function(){var t,e,n;return e=this.getMetadataElementsOfLevel(),n=this.getMetadataElementsOnPage(e),t={config:config,synced:this.model.synced,metadataElementToDisplay:n,alertClass:this.params.alertClass,currentPage:this.currentPage,isNotFirstPage:this.currentPage>1,isNotLastPage:this.getUpperBound()=t.length?t.slice(this.getLowerBound()):t.slice(this.getLowerBound(),+this.getUpperBound()+1||9e9)},n.prototype.increasePage=function(t){return t.preventDefault(),this.getUpperBound()>=this.getMetadataElementsOfLevel().length-1||(this.currentPage=this.currentPage+1),this.render()},n.prototype.decreasePage=function(t){return t.preventDefault(),this.currentPage<2||this.currentPage--,this.render()},n}(r),t.exports=a}).call(e,n(3))},function(t,e,n){(function(e){var a,r,s=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;a=n(249),r=function(t){function n(){return this.render=s(this.render,this),n.__super__.constructor.apply(this,arguments)}return i(n,t),n.prototype.initialize=function(t){return this.params=t,n.__super__.initialize.call(this,this.params),this.selectedCommandIndex=0,this.selectedCommandDescription=null},n.prototype.render=function(){return n.__super__.render.call(this),e("#cmd").prop("selectedIndex",this.selectedCommandIndex),this.selectedCommandDescription?e(".cmd-description").text(this.selectedCommandDescription):void 0},n}(a),t.exports=r}).call(e,n(1))},function(t,e,n){(function(e){var a,r,s=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;a=n(201),r=function(t){function n(){return this.renderData=s(this.renderData,this),this.render=s(this.render,this),n.__super__.constructor.apply(this,arguments)}return i(n,t),n.prototype.initialize=function(t){return this.task=t.task,this.logDir=t.logDir,this.template=t.template,this.listenTo(this.task,"change",this.render),this.listenTo(this.task,"sync",this.render),this.listenTo(this.logDir,"change",this.render),this.listenTo(this.logDir,"sync",this.render)},n.prototype.render=function(){return this.task.synced&&this.logDir.synced?this.$el.html(this.template(this.renderData())):void 0},n.prototype.renderData=function(){var t,n;return n=this.task.get("isStillRunning")?config.runningTaskLogPath:config.finishedTaskLogPath,n=e.last(n.split("/")),t=e.contains(e.map(e.pluck(this.logDir.toJSON(),"uiPath"),function(t){return e.last(t.split("/"))}),n),{data:this.task.toJSON(),fileExists:t,config:config}},n}(a),t.exports=r}).call(e,n(3))},function(t,e,n){(function(e,a){var r,s,i,o,l,u,c,p,d=function(t,e){return function(){return t.apply(e,arguments)}},h=function(t,e){function n(){this.constructor=t}for(var a in e)f.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},f={}.hasOwnProperty;l=n(201),r=n(168),s=n(169),i=n(164),p=n(13),u=n(570),c=function(t,e){return setInterval(e,t)},o=function(t){function o(){return this.pollForCmdFile=d(this.pollForCmdFile,this),this.pollForCommandStarted=d(this.pollForCommandStarted,this),this.viewJsonProperty=d(this.viewJsonProperty,this),this.toggleHealthchecks=d(this.toggleHealthchecks,this),o.__super__.constructor.apply(this,arguments)}return h(o,t),o.prototype.baseTemplate=n(571),o.prototype.events=function(){return e.extend(o.__super__.events.apply(this,arguments),{'click [data-action="viewObjectJSON"]':"viewJson",'click [data-action="viewJsonProperty"]':"viewJsonProperty",'submit [data-action="runShell"]':"executeCommand",'change [data-action="cmd"]':"cmdSelected"})},o.prototype.initialize=function(t){return this.taskId=t.taskId,this.subviews.healthcheckNotification.on("toggleHealthchecks",this.toggleHealthchecks)},o.prototype.render=function(){return this.$el.html(this.baseTemplate),this.$("#overview").html(this.subviews.overview.$el),this.$("#alerts").html(this.subviews.alerts.$el),this.$("#task-error-metadata").html(this.subviews.taskErrorMetadata.$el),this.$("#task-warn-metadata").html(this.subviews.taskWarnMetadata.$el),this.$("#deploy-failure-notification").html(this.subviews.deployFailureNotification.$el),this.$("#healthcheck-notification").html(this.subviews.healthcheckNotification.$el),this.$("#history").html(this.subviews.history.$el),this.$("#latest-log").html(this.subviews.latestLog.$el),this.$("#file-browser").html(this.subviews.fileBrowser.$el),this.$("#s3-logs").html(this.subviews.s3Logs.$el),this.$("#lb-updates").html(this.subviews.lbUpdates.$el),this.$("#health-checks").html(this.subviews.healthChecks.$el),this.$("#info").html(this.subviews.info.$el),this.$("#resources").html(this.subviews.resourceUsage.$el),this.$("#environment").html(this.subviews.environment.$el),this.$("#shell-commands").html(this.subviews.shellCommands.$el),this.$("#task-metadata-table").html(this.subviews.taskMetadataTable.$el),o.__super__.render.apply(this,arguments).afterRender()},o.prototype.toggleHealthchecks=function(){return this.subviews.healthChecks.expandToggleIfClosed()},o.prototype.viewJson=function(t){return utils.viewJSON(this.model)},o.prototype.viewJsonProperty=function(t){var e,n,r,s,i,o;e=a(t.target).data("index"),s=a(t.target).data("key"),r=a.extend(!0,{},this.model),r.synced=!0,i=r.attributes;for(n in i)f.call(i,n)&&(o=i[n],n!==s?r.unset(n,{silent:!0}):r.attributes[n].splice(0,r.attributes[n].length,o[e]));return utils.viewJSON(r)},o.prototype.executeCommand=function(t){var e,n,s,i;return t.preventDefault(),e=a("#cmd option:selected").text(),n=a("#cmd-option").val(),!this.$("#btn_exec").attr("disabled")&&e?(i=new r({id:this.taskId}),s=i.runShellCommand(e,n),s.success(function(t){return function(){var e;return e=s.responseJSON.timestamp,a("#cmd-confirm").text("Command Sent"),a("#open-log").is(":checked")?(t.executeCommandRedirect(),t.pollForCommandStarted(e)):void 0}}(this))):void 0},o.prototype.cmdSelected=function(t){var e,n,r,s,i,o;if(e=config.shellCommands.filter(function(t){return t.name===a("#cmd option:selected").text()})[0],this.subviews.shellCommands.selectedCommandIndex=a("#cmd").prop("selectedIndex"),this.subviews.shellCommands.selectedCommandDescription=e.description||"",a(".cmd-description").text(e.description||""),a("#btn_exec").prop("disabled",!1),i=a("#cmd-option"),i.empty(),e.options)for(a("#options").removeClass("hidden"),o=e.options,n=0,r=o.length;r>n;n++)s=o[n],i.append(a("").attr("value",s.name).text(s.name+(s.description?" ("+s.description+")":"")));else a("#options").addClass("hidden");return i.prop("disabled",!e.options)},o.prototype.executeCommandRedirect=function(){return p.open({message:"

    Waiting for command to run

    ",content:u,buttons:[p.dialog.buttons.NO],beforeClose:function(t){return function(){return!0}}(this)})},o.prototype.pollForCommandStarted=function(t){var e;return a("#statusText").html("Waiting for command to start..."),e=new i({taskId:this.taskId}),this.pollInterval=c(1e3,function(n){return function(){return e.fetch().done(function(){var a,r,s;return r=e.get("shellCommandHistory"),r&&n.cmdRequestIsFailed(r,t)?(clearInterval(n.pollInterval),p.close(),s=n.getCmdFailedMessage(r,t),p.dialog.alert("

    Command Failed

    "+s+"

    ")):r&&n.cmdRequestIsStarted(r,t)?(clearInterval(n.pollInterval),a=n.getCmdRequestOutputFilename(r,t),a?n.pollForCmdFile(a):p.close()):void 0})}}(this))},o.prototype.getCmdRequestOutputFilename=function(t,e){var n,a,r,s,i,o,l;for(a=0,s=t.length;s>a;a++)if(n=t[a],n.shellRequest.timestamp===e)for(o=n.shellUpdates,r=0,i=o.length;i>r;r++)if(l=o[r],"ACKED"===l.updateType)return l.outputFilename},o.prototype.cmdRequestIsStarted=function(t,e){var n,a,r,s,i,o,l;for(a=0,s=t.length;s>a;a++)if(n=t[a],n.shellRequest.timestamp===e)for(o=n.shellUpdates,r=0,i=o.length;i>r;r++)if(l=o[r],"STARTED"===l.updateType)return!0;return!1},o.prototype.cmdRequestIsFailed=function(t,e){var n,a,r,s,i,o,l;for(a=0,s=t.length;s>a;a++)if(n=t[a],n.shellRequest.timestamp===e)for(o=n.shellUpdates,r=0,i=o.length;i>r;r++)if(l=o[r],"FAILED"===l.updateType||"INVALID"===l.updateType)return!0;return!1},o.prototype.getCmdFailedMessage=function(t,e){var n,a,r,s,i,o,l;for(a=0,s=t.length;s>a;a++)if(n=t[a],n.shellRequest.timestamp===e)for(o=n.shellUpdates,r=0,i=o.length;i>r;r++)if(l=o[r],"FAILED"===l.updateType||"INVALID"===l.updateType)return l.message;return""},o.prototype.pollForCmdFile=function(t){var e;return a("#statusText").html("Waiting for "+t+" to exist..."),e=new s([],{taskId:this.taskId}),this.pollInterval=c(1e3,function(n){return function(){return e.fetch().done(function(){return n.containsFile(e.models,t)?(clearInterval(n.pollInterval),p.close(),app.router.navigate("task/"+n.taskId+"/tail/"+n.taskId+"/"+t,{trigger:!0})):void 0})}}(this))},o.prototype.containsFile=function(t,e){var n,a,r;for(a=0,r=t.length;r>a;a++)if(n=t[a],n.id===e)return!0;return!1},o}(l),t.exports=o}).call(e,n(3),n(1))},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){return"

    Command Queued

    \n
    \n\n

    \n \n

    \n"},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){return"
    \n
    \n
    \n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n
    \n"},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r,s,i){var o,l,u=null!=e?e:{},c=n.helperMissing,p="function",d=t.escapeExpression,h=t.lambda;return' \n"},3:function(t,e,n,a,r,s,i){var o;return(null!=(o=(n.withLast||e&&e.withLast||n.helperMissing).call(null!=e?e:{},null!=(o=null!=e?e.data:e)?o.taskUpdates:o,{name:"withLast",hash:{},fn:t.program(4,r,0,s,i),inverse:t.noop,data:r}))?o:"")+'
    \n'},4:function(t,e,n,a,r,s,i){var o,l=null!=e?e:{},u=n.helperMissing,c=t.escapeExpression;return'
    \n

    '+c((n.humanizeText||e&&e.humanizeText||u).call(l,null!=e?e.taskState:e,{name:"humanizeText",hash:{},data:r}))+(null!=(o=n["if"].call(l,null!=(o=null!=i[1]?i[1].data:i[1])?o.isStillRunning:o,{name:"if",hash:{},fn:t.program(5,r,0,s,i),inverse:t.noop,data:r}))?o:"")+"

    \n
    \n"},5:function(t,e,n,a,r,s,i){var o;return null!=(o=n["if"].call(null!=e?e:{},null!=(o=null!=i[1]?i[1].data:i[1])?o.cleanup:o,{name:"if",hash:{},fn:t.program(6,r,0,s,i),inverse:t.noop,data:r}))?o:""},6:function(t,e,n,a,r,s,i){var o;return" ("+t.escapeExpression((n.humanizeText||e&&e.humanizeText||n.helperMissing).call(null!=e?e:{},null!=(o=null!=(o=null!=i[1]?i[1].data:i[1])?o.cleanup:o)?o.cleanupType:o,{name:"humanizeText",hash:{},data:r}))+")"},8:function(t,e,n,a,r){return'
    \n'},10:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=e?e.data:e)?s.cleanup:s,{name:"if",hash:{},fn:t.program(11,r,0),inverse:t.program(16,r,0),data:r}))?s:""},11:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=(s=null!=e?e.data:e)?s.cleanup:s)?s.isImmediate:s,{name:"if",hash:{},fn:t.program(12,r,0),inverse:t.program(14,r,0),data:r}))?s:""},12:function(t,e,n,a,r){return' Destroy task \n'},14:function(t,e,n,a,r){return' Override cleanup \n'},16:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=e?e.data:e)?s.isCleaning:s,{name:"if",hash:{},fn:t.program(12,r,0),inverse:t.program(17,r,0),data:r}))?s:""},17:function(t,e,n,a,r){return' Kill task \n'},19:function(t,e,n,a,r){var s;return null!=(s=n.unless.call(null!=e?e:{},null!=(s=null!=e?e.data:e)?s.cleanup:s,{name:"unless",hash:{},fn:t.program(20,r,0),inverse:t.noop,data:r}))?s:""},20:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=e?e.data:e)?s.isCleaning:s,{name:"if",hash:{},fn:t.program(21,r,0),inverse:t.noop,data:r}))?s:""},21:function(t,e,n,a,r){return' \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r,s,i){var o,l=null!=e?e:{};return"
    \n"+(null!=(o=n["with"].call(l,null!=(o=null!=e?e.data:e)?o.task:o,{name:"with",hash:{},fn:t.program(1,r,0,s,i),inverse:t.noop,data:r}))?o:"")+'
    \n'+(null!=(o=n["if"].call(l,null!=(o=null!=e?e.data:e)?o.taskUpdates:o,{name:"if",hash:{},fn:t.program(3,r,0,s,i),inverse:t.program(8,r,0,s,i),data:r}))?o:"")+' \n JSON\n \n'+(null!=(o=n["if"].call(l,null!=(o=null!=e?e.data:e)?o.isStillRunning:o,{name:"if",hash:{},fn:t.program(10,r,0,s,i),inverse:t.noop,data:r}))?o:"")+"
    \n
    \n\n\n"+(null!=(o=n["if"].call(l,null!=(o=null!=e?e.data:e)?o.isStillRunning:o,{name:"if",hash:{},fn:t.program(19,r,0,s,i),inverse:t.noop,data:r}))?o:"")},useData:!0,useDepths:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r,s,i){var o;return null!=(o=(n.ifEqual||e&&e.ifEqual||n.helperMissing).call(null!=e?e:{},null!=(o=null!=(o=null!=e?e.deploy:e)?o.deployResult:o)?o.deployState:o,"FAILED",{name:"ifEqual",hash:{},fn:t.program(2,r,0,s,i),inverse:t.noop,data:r}))?o:""},2:function(t,e,n,a,r,s,i){var o;return null!=(o=(n.ifCauseOfFailure||e&&e.ifCauseOfFailure||n.helperMissing).call(null!=e?e:{},null!=e?e.data:e,null!=e?e.deploy:e,{name:"ifCauseOfFailure",hash:{},fn:t.program(3,r,0,s,i),inverse:t.program(12,r,0,s,i),data:r}))?o:""},3:function(t,e,n,a,r,s,i){var o,l,u=null!=e?e:{},c=n.helperMissing,p=t.escapeExpression,d=t.lambda;return' \n"},4:function(t,e,n,a,r,s,i){var o;return"

    The deploy failure was also caused by:

    \n
      \n"+(null!=(o=n.each.call(null!=e?e:{},null!=(o=null!=(o=null!=e?e.deploy:e)?o.deployResult:o)?o.deployFailures:o,{name:"each",hash:{},fn:t.program(5,r,0,s,i),inverse:t.noop,data:r}))?o:"")+"
    \n"},5:function(t,e,n,a,r,s,i){var o;return null!=(o=n["if"].call(null!=e?e:{},null!=e?e.taskId:e,{name:"if",hash:{},fn:t.program(6,r,0,s,i),inverse:t.program(10,r,0,s,i),data:r}))?o:""},6:function(t,e,n,a,r,s,i){var o;return null!=(o=(n.ifNotEqual||e&&e.ifNotEqual||n.helperMissing).call(null!=e?e:{},null!=(o=null!=e?e.taskId:e)?o.id:o,null!=(o=null!=i[1]?i[1].data:i[1])?o.taskId:o,{name:"ifNotEqual",hash:{},fn:t.program(7,r,0,s,i),inverse:t.noop,data:r}))?o:""},7:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u=t.escapeExpression,c=t.lambda;return"
  • "+u(c(null!=(s=null!=e?e.taskId:e)?s.id:s,e))+": "+u((n.humanizeText||e&&e.humanizeText||l).call(o,null!=e?e.reason:e,{name:"humanizeText",hash:{},data:r}))+" "+(null!=(s=n["if"].call(o,null!=e?e.message:e,{name:"if",hash:{},fn:t.program(8,r,0),inverse:t.noop,data:r}))?s:"")+"
  • \n"},8:function(t,e,n,a,r){var s;return"("+t.escapeExpression((s=null!=(s=n.message||(null!=e?e.message:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"message",hash:{},data:r}):s))+")"},10:function(t,e,n,a,r){var s,i=null!=e?e:{};return"
  • "+t.escapeExpression((n.humanizeText||e&&e.humanizeText||n.helperMissing).call(i,null!=e?e.reason:e,{name:"humanizeText",hash:{},data:r}))+" "+(null!=(s=n["if"].call(i,null!=e?e.message:e,{name:"if",hash:{},fn:t.program(8,r,0),inverse:t.noop,data:r}))?s:"")+"
  • \n"},12:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u=t.escapeExpression,c=t.lambda;return' \n"},13:function(t,e,n,a,r){return" This task was killed as a result of the failing deploy.\n"},15:function(t,e,n,a,r){return" The deploy failure was caused by:\n"},17:function(t,e,n,a,r){var s;return"
      \n"+(null!=(s=n.each.call(null!=e?e:{},null!=(s=null!=(s=null!=e?e.deploy:e)?s.deployResult:s)?s.deployFailures:s,{name:"each",hash:{},fn:t.program(18,r,0),inverse:t.noop,data:r}))?s:"")+"
    \n"},18:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.taskId:e,{name:"if",hash:{},fn:t.program(19,r,0),inverse:t.program(10,r,0),data:r}))?s:""},19:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u=t.escapeExpression,c=t.lambda;return"
  • "+u(c(null!=(s=null!=e?e.taskId:e)?s.id:s,e))+": "+u((n.humanizeText||e&&e.humanizeText||l).call(o,null!=e?e.reason:e,{name:"humanizeText",hash:{},data:r}))+" "+(null!=(s=n["if"].call(o,null!=e?e.message:e,{name:"if",hash:{},fn:t.program(8,r,0),inverse:t.noop,data:r}))?s:"")+"
  • \n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r,s,i){var o;return null!=(o=n["if"].call(null!=e?e:{},null!=e?e.deploy:e,{name:"if",hash:{},fn:t.program(1,r,0,s,i),inverse:t.noop,data:r}))?o:""},useData:!0,useDepths:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r,s,i){ var o;return null!=(o=n["if"].call(null!=e?e:{},null!=e?e.deployStatus:e,{name:"if",hash:{},fn:t.program(2,r,0,s,i),inverse:t.program(23,r,0,s,i),data:r}))?o:""},2:function(t,e,n,a,r){var s;return' \n"},3:function(t,e,n,a,r){var s,i,o=t.escapeExpression;return" Deploy "+o(t.lambda(null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskId:s)?s.deployId:s,e))+" is pending: "+o((i=null!=(i=n.taskHealthyMessage||(null!=e?e.taskHealthyMessage:e))?i:n.helperMissing,"function"==typeof i?i.call(null!=e?e:{},{name:"taskHealthyMessage",hash:{},data:r}):i))+"\n"},5:function(t,e,n,a,r){var s;return null!=(s=(n.ifGT||e&&e.ifGT||n.helperMissing).call(null!=e?e:{},null!=(s=null!=(s=null!=e?e.data:e)?s.healthcheckResults:s)?s.length:s,0,{name:"ifGT",hash:{},fn:t.program(6,r,0),inverse:t.program(21,r,0),data:r}))?s:""},6:function(t,e,n,a,r){var s;return" Deploy "+t.escapeExpression(t.lambda(null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskId:s)?s.deployId:s,e))+' is pending: Waiting for successful healthcheck response. View all healthchecks.\n
    \n
    \n \n \n \n \n \n \n \n \n \n \n'+(null!=(s=n["with"].call(null!=e?e:{},null!=(s=null!=(s=null!=e?e.data:e)?s.healthcheckResults:s)?s[0]:s,{name:"with",hash:{},fn:t.program(7,r,0),inverse:t.noop,data:r}))?s:"")+" \n
    TimestampDurationStatusMessage
    \n
    \n"},7:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u=t.escapeExpression;return" \n \n "+u((n.timestampFromNow||e&&e.timestampFromNow||l).call(o,null!=e?e.timestamp:e,{name:"timestampFromNow",hash:{},data:r}))+"\n \n \n "+u((i=null!=(i=n.durationMillis||(null!=e?e.durationMillis:e))?i:l,"function"==typeof i?i.call(o,{name:"durationMillis",hash:{},data:r}):i))+(null!=(s=n["if"].call(o,null!=e?e.durationMillis:e,{name:"if",hash:{},fn:t.program(8,r,0),inverse:t.noop,data:r}))?s:"")+"\n \n \n"+(null!=(s=n["if"].call(o,null!=e?e.statusCode:e,{name:"if",hash:{},fn:t.program(10,r,0),inverse:t.program(15,r,0),data:r}))?s:"")+' \n \n
    '+(null!=(s=n["if"].call(o,null!=e?e.errorMessage:e,{name:"if",hash:{},fn:t.program(17,r,0),inverse:t.program(19,r,0),data:r}))?s:"")+"
    \n \n \n"},8:function(t,e,n,a,r){return"ms"},10:function(t,e,n,a,r){var s;return null!=(s=(n.ifEqual||e&&e.ifEqual||n.helperMissing).call(null!=e?e:{},null!=e?e.statusCode:e,200,{name:"ifEqual",hash:{},fn:t.program(11,r,0),inverse:t.program(13,r,0),data:r}))?s:""},11:function(t,e,n,a,r){var s;return' HTTP '+t.escapeExpression((s=null!=(s=n.statusCode||(null!=e?e.statusCode:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"statusCode",hash:{},data:r}):s))+"\n"},13:function(t,e,n,a,r){var s;return' HTTP '+t.escapeExpression((s=null!=(s=n.statusCode||(null!=e?e.statusCode:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"statusCode",hash:{},data:r}):s))+"\n"},15:function(t,e,n,a,r){return' No Response\n'},17:function(t,e,n,a,r){var s;return t.escapeExpression((s=null!=(s=n.errorMessage||(null!=e?e.errorMessage:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"errorMessage",hash:{},data:r}):s))},19:function(t,e,n,a,r){var s;return t.escapeExpression((s=null!=(s=n.responseBody||(null!=e?e.responseBody:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"responseBody",hash:{},data:r}):s))},21:function(t,e,n,a,r){var s;return" Deploy "+t.escapeExpression(t.lambda(null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskId:s)?s.deployId:s,e))+" is pending: Waiting for task to become healthy.\n"},23:function(t,e,n,a,r,s,i){var o;return null!=(o=n["if"].call(null!=e?e:{},null!=e?e.lastHealthcheckFailed:e,{name:"if",hash:{},fn:t.program(24,r,0,s,i),inverse:t.noop,data:r}))?o:""},24:function(t,e,n,a,r,s,i){var o;return null!=(o=n["with"].call(null!=e?e:{},null!=(o=null!=(o=null!=e?e.data:e)?o.healthcheckResults:o)?o[0]:o,{name:"with",hash:{},fn:t.program(25,r,0,s,i),inverse:t.noop,data:r}))?o:""},25:function(t,e,n,a,r,s,i){var o,l,u=null!=e?e:{},c=n.helperMissing,p=t.escapeExpression;return' \n"},26:function(t,e,n,a,r,s,i){return t.escapeExpression(t.lambda(null!=i[1]?i[1].numberFailed:i[1],e))+" tries"},28:function(t,e,n,a,r,s,i){return t.escapeExpression(t.lambda(null!=i[1]?i[1].secondsElapsed:i[1],e))+" seconds"},30:function(t,e,n,a,r){var s;return'responded with HTTP '+t.escapeExpression((s=null!=(s=n.statusCode||(null!=e?e.statusCode:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"statusCode",hash:{},data:r}):s))+""},32:function(t,e,n,a,r){return"did not respond"},34:function(t,e,n,a,r){var s;return" in "+t.escapeExpression((s=null!=(s=n.durationMillis||(null!=e?e.durationMillis:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"durationMillis",hash:{},data:r}):s))+"ms"},36:function(t,e,n,a,r,s,i){return"

    \n The healthcheck failed because "+t.escapeExpression(t.lambda(null!=i[1]?i[1].healthcheckFailureReasonMessage:i[1],e))+"\n

    \n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r,s,i){var o;return null!=(o=n.unless.call(null!=e?e:{},null!=e?e.doNotDisplayHealthcheckNotification:e,{name:"unless",hash:{},fn:t.program(1,r,0,s,i),inverse:t.noop,data:r}))?o:""},useData:!0,useDepths:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r,s,i){var o;return null!=(o=n["if"].call(null!=e?e:{},null!=e?e.metadataElementToDisplay:e,{name:"if",hash:{},fn:t.program(2,r,0,s,i),inverse:t.noop,data:r}))?o:""},2:function(t,e,n,a,r,s,i){var o,l=null!=e?e:{};return(null!=(o=n.each.call(l,null!=e?e.metadataElementToDisplay:e,{name:"each",hash:{},fn:t.program(3,r,0,s,i),inverse:t.noop,data:r}))?o:"")+'
    \n \n
    \n"},3:function(t,e,n,a,r,s,i){var o,l,u=t.escapeExpression,c=null!=e?e:{},p=n.helperMissing,d="function";return'
    \n

    '+u((l=null!=(l=n.title||(null!=e?e.title:e))?l:p,typeof l===d?l.call(c,{name:"title",hash:{},data:r}):l))+"

    \n

    \n \n "+u((n.timestampFromNow||e&&e.timestampFromNow||p).call(c,null!=e?e.timestamp:e,{name:"timestampFromNow",hash:{},data:r}))+"\n Type "+u((l=null!=(l=n.type||(null!=e?e.type:e))?l:p,typeof l===d?l.call(c,{name:"type",hash:{},data:r}):l))+"\n"+(null!=(o=n["if"].call(c,null!=e?e.user:e,{name:"if",hash:{},fn:t.program(4,r,0,s,i),inverse:t.noop,data:r}))?o:"")+" \n

    \n"+(null!=(o=n["if"].call(c,null!=e?e.message:e,{name:"if",hash:{},fn:t.program(6,r,0,s,i),inverse:t.noop,data:r}))?o:"")+"
    \n"},4:function(t,e,n,a,r){var s;return" By "+t.escapeExpression((s=null!=(s=n.user||(null!=e?e.user:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"user",hash:{},data:r}):s))+"\n"},6:function(t,e,n,a,r){var s;return"

    "+t.escapeExpression((s=null!=(s=n.message||(null!=e?e.message:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"message",hash:{},data:r}):s))+"

    \n"},8:function(t,e,n,a,r){return'
  • \n'},10:function(t,e,n,a,r){return'
  • \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r,s,i){var o;return null!=(o=n["if"].call(null!=e?e:{},null!=e?e.synced:e,{name:"if",hash:{},fn:t.program(1,r,0,s,i),inverse:t.noop,data:r}))?o:""},useData:!0,useDepths:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r,s,i){var o;return' \n \n \n \n \n \n \n \n \n'+(null!=(o=(n.reverseEach||e&&e.reverseEach||n.helperMissing).call(null!=e?e:{},null!=(o=null!=e?e.data:e)?o.taskUpdates:o,{name:"reverseEach",hash:{},fn:t.program(2,r,0,s,i),inverse:t.noop,data:r}))?o:"")+" \n
    \n Status\n \n Message\n \n Time\n
    \n"},2:function(t,e,n,a,r,s,i){var o,l,u=null!=e?e:{},c=n.helperMissing,p=t.escapeExpression;return" \n \n "+p((n.humanizeText||e&&e.humanizeText||c).call(u,null!=e?e.taskState:e,{name:"humanizeText",hash:{},data:r}))+"\n \n \n"+(null!=(o=n["if"].call(u,null!=e?e.statusMessage:e,{name:"if",hash:{},fn:t.program(5,r,0,s,i),inverse:t.program(7,r,0,s,i),data:r}))?o:"")+' \n \n '+p((n.timestampFromNow||e&&e.timestampFromNow||c).call(u,null!=e?e.timestamp:e,{name:"timestampFromNow",hash:{},data:r}))+"\n \n \n"},3:function(t,e,n,a,r){return' class="medium-weight"'},5:function(t,e,n,a,r){var s;return" "+t.escapeExpression((s=null!=(s=n.statusMessage||(null!=e?e.statusMessage:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"statusMessage",hash:{},data:r}):s))+"\n"},7:function(t,e,n,a,r){return" —\n"},9:function(t,e,n,a,r){return'
    This task has no history yet
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r,s,i){var o;return'\n'+(null!=(o=n["if"].call(null!=e?e:{},null!=(o=null!=e?e.data:e)?o.taskUpdates:o,{name:"if",hash:{},fn:t.program(1,r,0,s,i),inverse:t.program(9,r,0,s,i),data:r}))?o:"")},useData:!0,useDepths:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return' \n'+(null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=e?e.data:e)?s.length:s,{name:"if",hash:{},fn:t.program(2,r,0),inverse:t.program(5,r,0),data:r}))?s:"")},2:function(t,e,n,a,r){var s;return'
    \n \n \n \n \n \n \n \n \n \n \n'+(null!=(s=n.each.call(null!=e?e:{},null!=e?e.data:e,{name:"each",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?s:"")+" \n
    Log fileSizeLast modified
    \n
    \n"},3:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return' \n \n \n '+u((n.trimS3File||e&&e.trimS3File||o).call(i,null!=e?e.shortKey:e,null!=e?e.taskId:e,{name:"trimS3File",hash:{},data:r}))+"\n \n \n \n "+u((n.humanizeFileSize||e&&e.humanizeFileSize||o).call(i,null!=e?e.size:e,{name:"humanizeFileSize",hash:{},data:r}))+'\n \n \n '+u((n.timestampFormatted||e&&e.timestampFormatted||o).call(i,null!=e?e.lastModified:e,{name:"timestampFormatted",hash:{},data:r}))+'\n \n \n \n \n \n \n \n'},5:function(t,e,n,a,r){return'
    \n No S3 logs\n
    \n'},7:function(t,e,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.synced:e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(7,r,0),data:r}))?s:""},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return null!=(s=(n.ifEqual||e&&e.ifEqual||n.helperMissing).call(null!=e?e:{},null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskRequest:s)?s.request:s)?s.loadBalanced:s,!0,{name:"ifEqual",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?s:""},2:function(t,e,n,a,r){var s;return' \n'+(null!=(s=(n.ifGT||e&&e.ifGT||n.helperMissing).call(null!=e?e:{},null!=(s=null!=(s=null!=e?e.data:e)?s.loadBalancerUpdates:s)?s.length:s,0,{name:"ifGT",hash:{},fn:t.program(3,r,0),inverse:t.program(6,r,0),data:r}))?s:"")},3:function(t,e,n,a,r){var s;return'
    \n \n \n \n \n \n \n \n \n \n \n \n'+(null!=(s=n.each.call(null!=e?e:{},null!=(s=null!=e?e.data:e)?s.loadBalancerUpdates:s,{name:"each",hash:{},fn:t.program(4,r,0),inverse:t.noop,data:r}))?s:"")+" \n
    TimestampRequest TypeStateMessage
    \n
    \n"},4:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u=t.escapeExpression,c="function";return" \n \n "+u((n.timestampFormatted||e&&e.timestampFormatted||l).call(o,null!=e?e.timestamp:e,{name:"timestampFormatted",hash:{},data:r}))+"\n \n \n "+u((n.humanizeText||e&&e.humanizeText||l).call(o,null!=(s=null!=e?e.loadBalancerRequestId:e)?s.requestType:s,{name:"humanizeText",hash:{},data:r}))+"\n \n \n "+u((n.humanizeText||e&&e.humanizeText||l).call(o,null!=e?e.loadBalancerState:e,{name:"humanizeText",hash:{},data:r}))+"\n \n \n "+u((i=null!=(i=n.message||(null!=e?e.message:e))?i:l,typeof i===c?i.call(o,{name:"message",hash:{},data:r}):i))+'\n \n \n \n { }\n \n \n \n'},6:function(t,e,n,a,r){return'
    \n No Load Balancer Info\n
    \n'},8:function(t,e,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.synced:e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(8,r,0),data:r}))?s:""},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.healthcheckUri:s,{name:"if",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?s:""},2:function(t,e,n,a,r){var s,i=null!=e?e:{},o=t.lambda,l=t.escapeExpression;return' \n
    \n
    \n Beginning on Task running, hit \n '+l(o(null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.healthcheckUri:s,e))+' \n with a \n'+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.healthcheckTimeoutSeconds:s,{name:"if",hash:{},fn:t.program(9,r,0),inverse:t.program(11,r,0),data:r}))?s:"")+' second timeout \n every \n'+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.healthcheckIntervalSeconds:s,{name:"if",hash:{},fn:t.program(13,r,0),inverse:t.program(15,r,0),data:r}))?s:"")+' second(s) \n until HTTP 200 is received,\n'+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.healthcheckMaxRetries:s,{name:"if",hash:{},fn:t.program(17,r,0),inverse:t.noop,data:r}))?s:"")+' or \n'+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.healthcheckMaxTotalTimeoutSeconds:s,{name:"if",hash:{},fn:t.program(19,r,0),inverse:t.program(21,r,0),data:r}))?s:"")+" seconds have elapsed.\n
    \n"+(null!=(s=(n.ifGT||e&&e.ifGT||n.helperMissing).call(i,null!=(s=null!=(s=null!=e?e.data:e)?s.healthcheckResults:s)?s.length:s,0,{name:"ifGT",hash:{},fn:t.program(23,r,0),inverse:t.program(38,r,0),data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.skipHealthChecksOnDeploy:s,{name:"if",hash:{},fn:t.program(40,r,0),inverse:t.noop,data:r}))?s:"")+"
    \n"},3:function(t,e,n,a,r){return" collapse\n"},5:function(t,e,n,a,r){return" view\n"},7:function(t,e,n,a,r){return"hide"},9:function(t,e,n,a,r){var s;return" "+t.escapeExpression(t.lambda(null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.healthcheckTimeoutSeconds:s,e))+"\n"},11:function(t,e,n,a,r){var s;return" "+t.escapeExpression(t.lambda(null!=(s=null!=e?e.config:e)?s.defaultHealthcheckTimeoutSeconds:s,e))+"\n"},13:function(t,e,n,a,r){var s;return" "+t.escapeExpression(t.lambda(null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.healthcheckIntervalSeconds:s,e))+"\n"},15:function(t,e,n,a,r){var s;return" "+t.escapeExpression(t.lambda(null!=(s=null!=e?e.config:e)?s.defaultHealthcheckIntervalSeconds:s,e))+"\n"},17:function(t,e,n,a,r){var s;return' '+t.escapeExpression(t.lambda(null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.healthcheckMaxRetries:s,e))+" retries have failed,\n"},19:function(t,e,n,a,r){var s;return" "+t.escapeExpression(t.lambda(null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.healthcheckMaxTotalTimeoutSeconds:s,e))+"\n"},21:function(t,e,n,a,r){var s;return" "+t.escapeExpression(t.lambda(null!=(s=null!=e?e.config:e)?s.defaultDeployHealthTimeoutSeconds:s,e))+"\n"},23:function(t,e,n,a,r){var s;return'
    \n \n \n \n \n \n \n \n \n \n \n'+(null!=(s=n.each.call(null!=e?e:{},null!=(s=null!=e?e.data:e)?s.healthcheckResults:s,{name:"each",hash:{},fn:t.program(24,r,0),inverse:t.noop,data:r}))?s:"")+" \n
    TimestampDurationStatusMessage
    \n
    \n"},24:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u=t.escapeExpression,c="function";return" \n \n "+u((n.timestampFormattedWithSeconds||e&&e.timestampFormattedWithSeconds||l).call(o,null!=e?e.timestamp:e,{name:"timestampFormattedWithSeconds",hash:{},data:r}))+"\n \n \n "+u((i=null!=(i=n.durationMillis||(null!=e?e.durationMillis:e))?i:l,typeof i===c?i.call(o,{name:"durationMillis",hash:{},data:r}):i))+(null!=(s=n["if"].call(o,null!=e?e.durationMillis:e,{name:"if",hash:{},fn:t.program(25,r,0),inverse:t.noop,data:r}))?s:"")+"\n \n \n"+(null!=(s=n["if"].call(o,null!=e?e.statusCode:e,{name:"if",hash:{},fn:t.program(27,r,0),inverse:t.program(32,r,0),data:r}))?s:"")+' \n \n
    '+(null!=(s=n["if"].call(o,null!=e?e.errorMessage:e,{name:"if",hash:{},fn:t.program(34,r,0),inverse:t.program(36,r,0),data:r}))?s:"")+'
    \n \n \n \n { }\n \n \n \n'},25:function(t,e,n,a,r){return"ms"},27:function(t,e,n,a,r){var s;return null!=(s=(n.ifEqual||e&&e.ifEqual||n.helperMissing).call(null!=e?e:{},null!=e?e.statusCode:e,200,{name:"ifEqual",hash:{},fn:t.program(28,r,0),inverse:t.program(30,r,0),data:r}))?s:""},28:function(t,e,n,a,r){var s;return' HTTP '+t.escapeExpression((s=null!=(s=n.statusCode||(null!=e?e.statusCode:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"statusCode",hash:{},data:r}):s))+"\n"},30:function(t,e,n,a,r){var s;return' HTTP '+t.escapeExpression((s=null!=(s=n.statusCode||(null!=e?e.statusCode:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"statusCode",hash:{},data:r}):s))+"\n"},32:function(t,e,n,a,r){return' No Response\n'},34:function(t,e,n,a,r){var s;return t.escapeExpression((s=null!=(s=n.errorMessage||(null!=e?e.errorMessage:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"errorMessage",hash:{},data:r}):s))},36:function(t,e,n,a,r){var s;return t.escapeExpression((s=null!=(s=n.responseBody||(null!=e?e.responseBody:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"responseBody",hash:{},data:r}):s))},38:function(t,e,n,a,r){return'
    \n No Healthchecks\n
    \n'},40:function(t,e,n,a,r){return'
    \n Healthchecks are disabled for this deploy\n
    \n'},42:function(t,e,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.synced:e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(42,r,0),data:r}))?s:""},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return'
  • \n
    \n

    Task ID

    \n

    '+t.escapeExpression(t.lambda(null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskId:s)?s.id:s,e))+"

    \n
    \n
  • \n"},3:function(t,e,n,a,r){var s;return'
  • \n
    \n

    Directory

    \n

    '+t.escapeExpression(t.lambda(null!=(s=null!=e?e.data:e)?s.directory:s,e))+"

    \n
    \n
  • \n"},5:function(t,e,n,a,r){var s;return'
  • \n
    \n

    Executor GUID

    \n

    '+t.escapeExpression(t.lambda(null!=(s=null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.mesosTask:s)?s.executor:s)?s.executorId:s)?s.value:s,e))+"

    \n
    \n
  • \n"},7:function(t,e,n,a,r){var s;return'
  • \n
    \n

    Hostname

    \n

    '+t.escapeExpression(t.lambda(null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.offer:s)?s.hostname:s,e))+"

    \n
    \n
  • \n"},9:function(t,e,n,a,r){var s;return'
  • \n
    \n

    Ports

    \n

    '+t.escapeExpression(t.lambda(null!=(s=null!=e?e.data:e)?s.ports:s,e))+"

    \n
    \n
  • \n"},11:function(t,e,n,a,r){var s;return'
  • \n
    \n

    Rack ID

    \n

    '+t.escapeExpression(t.lambda(null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.rackId:s,e))+"

    \n
    \n
  • \n"},13:function(t,e,n,a,r){var s;return'
  • \n
    \n

    Extra Cmd Line Arguments (for Deploy)

    \n

    '+t.escapeExpression(t.lambda(null!=(s=null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.executorData:s)?s.extraCmdLineArgs:s,e))+"

    \n
    \n
  • \n"},15:function(t,e,n,a,r){var s; return'
  • \n
    \n

    Extra Cmd Line Arguments (for Task)

    \n

    '+t.escapeExpression(t.lambda(null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskRequest:s)?s.pendingTask:s)?s.cmdLineArgsList:s,e))+"

    \n
    \n
  • \n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i=null!=e?e:{};return'\n\n
    \n
      \n'+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskId:s)?s.id:s,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=e?e.data:e)?s.directory:s,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.mesosTask:s)?s.executor:s)?s.executorId:s)?s.value:s,{name:"if",hash:{},fn:t.program(5,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.offer:s)?s.hostname:s,{name:"if",hash:{},fn:t.program(7,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=e?e.data:e)?s.ports:s,{name:"if",hash:{},fn:t.program(9,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.rackId:s,{name:"if",hash:{},fn:t.program(11,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.executorData:s)?s.extraCmdLineArgs:s,{name:"if",hash:{},fn:t.program(13,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskRequest:s)?s.pendingTask:s)?s.cmdLineArgsList:s,{name:"if",hash:{},fn:t.program(15,r,0),inverse:t.noop,data:r}))?s:"")+"
    \n
    \n"},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s,i=null!=e?e:{};return' \n
    \n
      \n'+(null!=(s=n.each.call(i,null!=(s=null!=(s=null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.mesosTask:s)?s.executor:s)?s.command:s)?s.environment:s)?s.variables:s,{name:"each",hash:{},fn:t.program(8,r,0),inverse:t.noop,data:r}))?s:"")+"
    \n
    \n"},2:function(t,e,n,a,r){return" collapse\n"},4:function(t,e,n,a,r){return" view\n"},6:function(t,e,n,a,r){return"hide"},8:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return'
  • \n
    \n

    '+u((s=null!=(s=n.name||(null!=e?e.name:e))?s:o,typeof s===l?s.call(i,{name:"name",hash:{},data:r}):s))+"

    \n

    "+u((s=null!=(s=n.value||(null!=e?e.value:e))?s:o,typeof s===l?s.call(i,{name:"value",hash:{},data:r}):s))+"

    \n
    \n
  • \n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=(s=null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.mesosTask:s)?s.executor:s)?s.command:s)?s.environment:s)?s.variables:s,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:""},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){return" collapse\n"},3:function(t,e,n,a,r){return" view\n"},5:function(t,e,n,a,r){return"hide"},7:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l=t.escapeExpression;return'
    \n
    \n

    Memory (rss vs limit)

    \n
    \n
    \n
    \n
    \n
    \n '+l((n.humanizeFileSize||e&&e.humanizeFileSize||o).call(i,null!=(s=null!=e?e.data:e)?s.memRssBytes:s,{name:"humanizeFileSize",hash:{},data:r}))+" / "+l((n.humanizeFileSize||e&&e.humanizeFileSize||o).call(i,null!=(s=null!=e?e.data:e)?s.memLimitBytes:s,{name:"humanizeFileSize",hash:{},data:r}))+"\n
    \n
    \n"},9:function(t,e,n,a,r){var s;return'
    \n
    \n

    CPU Usage

    \n
    \n
    \n'+(null!=(s=(n.ifAll||e&&e.ifAll||n.helperMissing).call(null!=e?e:{},null!=(s=null!=e?e.data:e)?s.cpuUsage:s,{name:"ifAll",hash:{},fn:t.program(10,r,0),inverse:t.program(13,r,0),data:r}))?s:"")+"
    \n
    \n"},10:function(t,e,n,a,r){var s,i=null!=e?e:{},o=t.lambda,l=t.escapeExpression,u=n.helperMissing;return(null!=(s=n["if"].call(i,null!=(s=null!=e?e.data:e)?s.cpuUsageExceeding:s,{name:"if",hash:{},fn:t.program(11,r,0),inverse:t.noop,data:r}))?s:"")+'
    \n
    \n
    \n '+l((n.fixedDecimal||e&&e.fixedDecimal||u).call(i,null!=(s=null!=e?e.data:e)?s.cpuUsage:s,{name:"fixedDecimal",hash:{},data:r}))+" used / "+l(o(null!=(s=null!=e?e.data:e)?s.cpusLimit:s,e))+" allocated CPUs\n"},11:function(t,e,n,a,r){return'

    CPU usage > 110% allocated

    \n'},13:function(t,e,n,a,r){return" Calculating...\n"},15:function(t,e,n,a,r){var s;return"
  • \n
    \n

    CPUs number of periods

    \n

    "+t.escapeExpression(t.lambda(null!=(s=null!=e?e.data:e)?s.cpusNrPeriods:s,e))+"

    \n
    \n
  • \n"},17:function(t,e,n,a,r){var s;return"
  • \n
    \n

    CPUs number throttled

    \n

    "+t.escapeExpression(t.lambda(null!=(s=null!=e?e.data:e)?s.cpusNrThrottled:s,e))+"

    \n
    \n
  • \n"},19:function(t,e,n,a,r){var s;return"
  • \n
    \n

    Throttled time (sec)

    \n

    "+t.escapeExpression(t.lambda(null!=(s=null!=e?e.data:e)?s.cpusThrottledTimeSecs:s,e))+"

    \n
    \n
  • \n"},21:function(t,e,n,a,r){var s;return"
  • \n
    \n

    Memory (anon)

    \n

    "+t.escapeExpression((n.humanizeFileSize||e&&e.humanizeFileSize||n.helperMissing).call(null!=e?e:{},null!=(s=null!=e?e.data:e)?s.memAnonBytes:s,{name:"humanizeFileSize",hash:{},data:r}))+"

    \n
    \n
  • \n"},23:function(t,e,n,a,r){var s;return"
  • \n
    \n

    Memory (file)

    \n

    "+t.escapeExpression((n.humanizeFileSize||e&&e.humanizeFileSize||n.helperMissing).call(null!=e?e:{},null!=(s=null!=e?e.data:e)?s.memFileBytes:s,{name:"humanizeFileSize",hash:{},data:r}))+"

    \n
    \n
  • \n"},25:function(t,e,n,a,r){var s;return"
  • \n
    \n

    Memory (mapped file)

    \n

    "+t.escapeExpression((n.humanizeFileSize||e&&e.humanizeFileSize||n.helperMissing).call(null!=e?e:{},null!=(s=null!=e?e.data:e)?s.memMappedFileBytes:s,{name:"humanizeFileSize",hash:{},data:r}))+"

    \n
    \n
  • \n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing;return'\n
    \n
    \n"+(null!=(s=(n.ifAll||e&&e.ifAll||o).call(i,null!=(s=null!=e?e.data:e)?s.memRssBytes:s,null!=(s=null!=e?e.data:e)?s.memLimitBytes:s,{name:"ifAll",hash:{},fn:t.program(7,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=(n.ifAll||e&&e.ifAll||o).call(i,null!=(s=null!=e?e.data:e)?s.cpusUserTimeSecs:s,null!=(s=null!=e?e.data:e)?s.cpusSystemTimeSecs:s,{name:"ifAll",hash:{},fn:t.program(9,r,0),inverse:t.noop,data:r}))?s:"")+"
    \n
    \n
      \n"+(null!=(s=n["if"].call(i,null!=(s=null!=e?e.data:e)?s.cpusNrPeriods:s,{name:"if",hash:{},fn:t.program(15,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=e?e.data:e)?s.cpusNrThrottled:s,{name:"if",hash:{},fn:t.program(17,r,0),inverse:t.noop,data:r}))?s:"")+"\n"+(null!=(s=n["if"].call(i,null!=(s=null!=e?e.data:e)?s.cpusThrottledTimeSecs:s,{name:"if",hash:{},fn:t.program(19,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=e?e.data:e)?s.memAnonBytes:s,{name:"if",hash:{},fn:t.program(21,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=e?e.data:e)?s.memFileBytes:s,{name:"if",hash:{},fn:t.program(23,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=e?e.data:e)?s.memMappedFileBytes:s,{name:"if",hash:{},fn:t.program(25,r,0),inverse:t.noop,data:r}))?s:"")+"
    \n
    \n
    \n"},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression;return' \n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return null!=(s=n.each.call(null!=e?e:{},null!=e?e.data:e,{name:"each",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:""},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s;return'\n \n\n
    \n
    \n

    \n'+(null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=e?e.data:e)?s.isStillRunning:s,{name:"if",hash:{},fn:t.program(2,r,0),inverse:t.program(4,r,0),data:r}))?s:"")+"

    \n
    \n
    \n\n"},2:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u=t.escapeExpression;return' \n '+(null!=(s=(n.filename||e&&e.filename||l).call(o,null!=(s=null!=e?e.config:e)?s.runningTaskLogPath:s,{name:"filename",hash:{},data:r}))?s:"")+"\n \n"},4:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u=t.escapeExpression;return' \n '+(null!=(s=(n.filename||e&&e.filename||l).call(o,null!=(s=null!=e?e.config:e)?s.finishedTaskLogPath:s,{name:"filename",hash:{},data:r}))?s:"")+"\n \n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.fileExists:e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:""},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r,s,i){var o;return null!=(o=n["if"].call(null!=e?e:{},null!=e?e.synced:e,{name:"if",hash:{},fn:t.program(2,r,0,s,i),inverse:t.noop,data:r}))?o:""},2:function(t,e,n,a,r,s,i){var o,l=null!=e?e:{};return' \n
    \n"+(null!=(o=(n.isRunningState||e&&e.isRunningState||n.helperMissing).call(l,null!=(o=null!=e?e.data:e)?o.taskUpdates:o,{name:"isRunningState",hash:{},fn:t.program(9,r,0,s,i),inverse:t.noop,data:r}))?o:"")+(null!=(o=n["if"].call(l,null!=(o=null!=(o=null!=e?e.data:e)?o.shellCommandHistory:o)?o.length:o,{name:"if",hash:{},fn:t.program(15,r,0,s,i),inverse:t.program(25,r,0,s,i),data:r}))?o:"")+"
    \n"},3:function(t,e,n,a,r){return" collapse\n"},5:function(t,e,n,a,r){return" view\n"},7:function(t,e,n,a,r){return"hide"},9:function(t,e,n,a,r){var s;return null!=(s=(n.isSingularityExecutor||e&&e.isSingularityExecutor||n.helperMissing).call(null!=e?e:{},null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.customExecutorCmd:s,{name:"isSingularityExecutor",hash:{},fn:t.program(10,r,0),inverse:t.noop,data:r}))?s:""},10:function(t,e,n,a,r){var s,i=null!=e?e:{};return'
    \n
    \n

    Execute a command

    \n
    \n \n \n"+(null!=(s=(n.withFirst||e&&e.withFirst||n.helperMissing).call(i,null!=(s=null!=e?e.config:e)?s.shellCommands:s,{name:"withFirst",hash:{},fn:t.program(13,r,0),inverse:t.noop,data:r}))?s:"")+'\n \n\n \n
    \n \n\n \n
    \n
    \n'},11:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return' \n"},13:function(t,e,n,a,r){var s;return'

    '+t.escapeExpression((s=null!=(s=n.description||(null!=e?e.description:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"description",hash:{},data:r}):s))+"

    \n"},15:function(t,e,n,a,r,s,i){var o;return'
    \n
    \n

    Command History

    \n
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n'+(null!=(o=n.each.call(null!=e?e:{},null!=(o=null!=e?e.data:e)?o.shellCommandHistory:o,{name:"each",hash:{},fn:t.program(16,r,0,s,i),inverse:t.noop,data:r}))?o:"")+" \n
    TimestampCommandOptionsUserStatusMessageLogs
    \n
    \n
    \n
    \n"},16:function(t,e,n,a,r,s,i){var o,l=t.lambda,u=t.escapeExpression,c=null!=e?e:{},p=n.helperMissing;return' \n \n '+u((n.timestampFormatted||e&&e.timestampFormatted||p).call(c,null!=(o=null!=e?e.shellRequest:e)?o.timestamp:o,{name:"timestampFormatted",hash:{},data:r}))+"\n \n \n "+u(l(null!=(o=null!=(o=null!=e?e.shellRequest:e)?o.shellCommand:o)?o.name:o,e))+"\n \n \n"+(null!=(o=n["if"].call(c,null!=(o=null!=(o=null!=(o=null!=e?e.shellRequest:e)?o.shellCommand:o)?o.options:o)?o.length:o,{name:"if",hash:{},fn:t.program(17,r,0,s,i),inverse:t.program(19,r,0,s,i),data:r}))?o:"")+" \n \n "+u(l(null!=(o=null!=e?e.shellRequest:e)?o.user:o,e))+"\n \n \n "+u((n.lastShellRequestStatus||e&&e.lastShellRequestStatus||p).call(c,null!=e?e.shellUpdates:e,{name:"lastShellRequestStatus",hash:{},data:r}))+"\n \n \n
      "+(null!=(o=n.each.call(c,null!=e?e.shellUpdates:e,{name:"each",hash:{},fn:t.program(21,r,0,s,i),inverse:t.noop,data:r}))?o:"")+"
    \n \n \n "+(null!=(o=(n.ifShellRequestHasOutputFilename||e&&e.ifShellRequestHasOutputFilename||p).call(c,null!=e?e.shellUpdates:e,{name:"ifShellRequestHasOutputFilename",hash:{},fn:t.program(23,r,0,s,i),inverse:t.noop,data:r}))?o:"")+"\n \n \n"},17:function(t,e,n,a,r){var s;return" "+t.escapeExpression(t.lambda(null!=(s=null!=(s=null!=e?e.shellRequest:e)?s.shellCommand:s)?s.options:s,e))+"\n"},19:function(t,e,n,a,r){return" (none)\n"},21:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l=t.escapeExpression;return"
  • "+l((n.timestampFormatted||e&&e.timestampFormatted||o).call(i,null!=e?e.timestamp:e,{name:"timestampFormatted",hash:{},data:r}))+": "+l((s=null!=(s=n.message||(null!=e?e.message:e))?s:o,"function"==typeof s?s.call(i,{name:"message",hash:{},data:r}):s))+"
  • "},23:function(t,e,n,a,r,s,i){var o,l,u=null!=e?e:{},c=n.helperMissing,p=t.escapeExpression,d=t.lambda;return'View'},25:function(t,e,n,a,r){return'
    \n No commands run\n
    \n'},27:function(t,e,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r,s,i){var o;return null!=(o=n["if"].call(null!=e?e:{},null!=(o=null!=e?e.data:e)?o.taskUpdates:o,{name:"if",hash:{},fn:t.program(1,r,0,s,i),inverse:t.program(27,r,0,s,i),data:r}))?o:""},useData:!0,useDepths:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s,i=null!=e?e:{};return' \n
    \n
    \n \n \n \n \n \n \n \n \n \n \n \n \n'+(null!=(s=n.each.call(i,null!=(s=null!=e?e.data:e)?s.taskMetadata:s,{name:"each",hash:{},fn:t.program(8,r,0),inverse:t.noop,data:r}))?s:"")+" \n
    \n Title\n \n Level\n \n Type\n \n Time\n \n User\n \n Message\n
    \n
    \n
    \n"},2:function(t,e,n,a,r){return" collapse\n"},4:function(t,e,n,a,r){return" view\n"},6:function(t,e,n,a,r){return"hide"},8:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression;return" \n \n "+c((i=null!=(i=n.title||(null!=e?e.title:e))?i:l,typeof i===u?i.call(o,{name:"title",hash:{},data:r}):i))+"\n \n \n "+c((i=null!=(i=n.level||(null!=e?e.level:e))?i:l,typeof i===u?i.call(o,{name:"level",hash:{},data:r}):i))+"\n \n \n "+c((i=null!=(i=n.type||(null!=e?e.type:e))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+'\n \n \n '+c((n.timestampFromNow||e&&e.timestampFromNow||l).call(o,null!=e?e.timestamp:e,{name:"timestampFromNow",hash:{},data:r}))+"\n \n \n"+(null!=(s=n["if"].call(o,null!=e?e.user:e,{name:"if",hash:{},fn:t.program(9,r,0),inverse:t.program(11,r,0),data:r}))?s:"")+" \n \n"+(null!=(s=n["if"].call(o,null!=e?e.message:e,{name:"if",hash:{},fn:t.program(13,r,0),inverse:t.program(11,r,0),data:r}))?s:"")+" \n \n"},9:function(t,e,n,a,r){var s;return" "+t.escapeExpression((s=null!=(s=n.user||(null!=e?e.user:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"user",hash:{},data:r}):s))+"\n"},11:function(t,e,n,a,r){return" —\n"},13:function(t,e,n,a,r){var s;return" "+t.escapeExpression((s=null!=(s=n.message||(null!=e?e.message:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"message",hash:{},data:r}):s))+"\n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=e?e.data:e)?s.taskMetadata:s,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:""},useData:!0})},function(t,e,n){(function(e){var a,r,s,i,o,l=function(t,e){function n(){this.constructor=t}for(var a in e)u.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=n(19),r=n(25),i=n(588),o=n(249),s=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return l(n,t),n.prototype.initialize=function(t){return this.state=t.state,app.showPageLoader(),this.title("Racks"),this.collections.racks=new r([]),this.setView(new i(e.extend({state:this.state},{collection:this.collections.racks}))),app.showView(this.view),this.refresh()},n.prototype.refresh=function(){return this.collections.racks.fetch()},n}(a),t.exports=s}).call(e,n(3))},function(t,e,n){(function(e,a){var r,s,i,o,l=function(t,e){return function(){return t.apply(e,arguments)}},u=function(t,e){function n(){this.constructor=t}for(var a in e)c.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},c={}.hasOwnProperty;o=n(201),r=n(26),s=n(25),i=function(t){function i(){return this.reactivateRack=l(this.reactivateRack,this),this.events=l(this.events,this),i.__super__.constructor.apply(this,arguments)}return u(i,t),i.prototype.template=n(589),i.prototype.rackTemplate=n(590),i.prototype.initialPageLoad=!0,i.prototype.initialize=function(t){var e,n,a,r;for(this.state=t.state,r=["sync","add","remove","change"],n=0,a=r.length;a>n;n++)e=r[n],this.listenTo(this.collection,e,this.render);return this.listenTo(this.collection,"reset",function(t){return function(){return t.$el.empty()}}(this))},i.prototype.events=function(){return e.extend(i.__super__.events.apply(this,arguments),{'click [data-action="remove"]':"removeRack",'click [data-action="decommission"]':"decommissionRack",'click [data-action="reactivate"]':"reactivateRack"})},i.prototype.render=function(){var t,e,n,a;if(this.collection.synced||("function"==typeof(e=this.collection).isEmpty?!e.isEmpty():!0)){if(this.$el.html(this.template()),t=new s(this.collection.filter(function(t){var e;return"ACTIVE"===(e=t.get("state"))})),n=new s(this.collection.filter(function(t){var e;return"DECOMMISSIONING"===(e=t.get("state"))||"DECOMMISSIONED"===e||"STARTING_DECOMMISSION"===e})),a=new s(this.collection.filter(function(t){var e;return"DEAD"===(e=t.get("state"))||"MISSING_ON_STARTUP"===e})),this.$("#active").html(this.rackTemplate({data:t.toJSON()})),this.$("#decommission").html(this.rackTemplate({data:n.toJSON()})),this.$("#inactive").html(this.rackTemplate({data:a.toJSON()})),this.$(".actions-column a[title]").tooltip(),this.state&&this.initialPageLoad){if("all"===this.state)return;utils.scrollTo("#"+this.state),this.initialPageLoad=!1}return i.__super__.render.apply(this,arguments).afterRender()}},i.prototype.removeRack=function(t){var e,n,s;return e=a(t.currentTarget),s=e.data("state"),n=new r({id:e.data("rack-id"),host:null,state:s}),n.promptRemove(function(t){return function(){return t.trigger("refreshrequest")}}(this))},i.prototype.decommissionRack=function(t){var e,n,s;return e=a(t.currentTarget),s=e.data("state"),n=new r({id:e.data("rack-id"),host:null,state:s}),n.promptDecommission(function(t){return function(){return t.trigger("refreshrequest")}}(this))},i.prototype.reactivateRack=function(t){var e,n,s;return e=a(t.currentTarget),s=e.data("state"),n=new r({id:e.data("rack-id"),host:null,state:s}),n.promptReactivate(function(t){return function(){return t.trigger("refreshrequest")}}(this))},i}(o),t.exports=i}).call(e,n(3),n(1))},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){return'
    \n

    Racks

    \n
    \n
    \n
    \n

    Active

    \n
    \n

    Decommissioning

    \n
    \n

    Inactive

    \n
    \n
    \n
    \n'},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing;return' \n \n \n \n \n \n'+(null!=(s=(n.ifInSubFilter||e&&e.ifInSubFilter||o).call(i,null!=(s=null!=(s=null!=e?e.data:e)?s[0]:s)?s.state:s,"DECOMMISSIONING,DECOMMISSIONED,STARTING_DECOMMISSION",{name:"ifInSubFilter",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=(n.ifInSubFilter||e&&e.ifInSubFilter||o).call(i,null!=(s=null!=(s=null!=e?e.data:e)?s[0]:s)?s.state:s,"FROZEN",{name:"ifInSubFilter",hash:{},fn:t.program(4,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=(n.ifInSubFilter||e&&e.ifInSubFilter||o).call(i,null!=(s=null!=(s=null!=e?e.data:e)?s[0]:s)?s.state:s,"ACTIVE",{name:"ifInSubFilter",hash:{},fn:t.program(6,r,0),inverse:t.noop,data:r}))?s:"")+' \n \n \n \n \n'+(null!=(s=n.each.call(i,null!=e?e.data:e,{name:"each",hash:{},fn:t.program(8,r,0),inverse:t.noop,data:r }))?s:"")+" \n
    IDCurrent StateUptimeMessage
    \n"},2:function(t,e,n,a,r){return" Decommissioned By\n"},4:function(t,e,n,a,r){return" Frozen By\n"},6:function(t,e,n,a,r){return" Activated By\n"},8:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression;return" \n "+c((i=null!=(i=n.id||(null!=e?e.id:e))?i:l,typeof i===u?i.call(o,{name:"id",hash:{},data:r}):i))+"\n "+c((n.humanizeText||e&&e.humanizeText||l).call(o,null!=e?e.state:e,{name:"humanizeText",hash:{},data:r}))+'\n '+c((n.timestampDuration||e&&e.timestampDuration||l).call(o,null!=e?e.uptime:e,{name:"timestampDuration",hash:{},data:r}))+"\n"+(null!=(s=(n.ifInSubFilter||e&&e.ifInSubFilter||l).call(o,null!=e?e.state:e,"ACTIVE,DECOMMISSIONING,DECOMMISSIONED,STARTING_DECOMMISSION,FROZEN",{name:"ifInSubFilter",hash:{},fn:t.program(9,r,0),inverse:t.noop,data:r}))?s:"")+" "+c(t.lambda(null!=(s=null!=e?e.currentState:e)?s.message:s,e))+'\n \n'+(null!=(s=(n.ifInSubFilter||e&&e.ifInSubFilter||l).call(o,null!=e?e.state:e,"DECOMMISSIONING,DECOMMISSIONED,STARTING_DECOMMISSION",{name:"ifInSubFilter",hash:{},fn:t.program(11,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=(n.ifInSubFilter||e&&e.ifInSubFilter||l).call(o,null!=e?e.state:e,"ACTIVE",{name:"ifInSubFilter",hash:{},fn:t.program(13,r,0),inverse:t.program(15,r,0),data:r}))?s:"")+" \n \n"},9:function(t,e,n,a,r){var s;return" "+t.escapeExpression((s=null!=(s=n.user||(null!=e?e.user:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"user",hash:{},data:r}):s))+"\n"},11:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return' \n \n \n'},13:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return' \n \n \n'},15:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return' \n \n \n'},17:function(t,e,n,a,r){return"

    No racks

    \n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=e?e.data:e)?s.length:s,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(17,r,0),data:r}))?s:""},useData:!0})},function(t,e,n){(function(e){var a,r,s,i,o,l=function(t,e){function n(){this.constructor=t}for(var a in e)u.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=n(19),s=n(278),o=n(592),r=n(249),i=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return l(n,t),n.prototype.initialize=function(t){return this.state=t.state,app.showPageLoader(),this.title("Slaves"),this.collections.slaves=new s([]),this.setView(new o(e.extend({state:this.state},{collection:this.collections.slaves}))),app.showView(this.view),this.refresh()},n.prototype.refresh=function(){return this.collections.slaves.fetch({reset:!0})},n}(a),t.exports=i}).call(e,n(3))},function(t,e,n){(function(e,a){var r,s,i,o,l=function(t,e){return function(){return t.apply(e,arguments)}},u=function(t,e){function n(){this.constructor=t}for(var a in e)c.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},c={}.hasOwnProperty;o=n(201),r=n(165),s=n(278),i=function(t){function i(){return this.reactivateSlave=l(this.reactivateSlave,this),this.decommissionSlave=l(this.decommissionSlave,this),this.freezeSlave=l(this.freezeSlave,this),this.removeSlave=l(this.removeSlave,this),this.events=l(this.events,this),i.__super__.constructor.apply(this,arguments)}return u(i,t),i.prototype.template=n(593),i.prototype.slaveTemplate=n(594),i.prototype.initialPageLoad=!0,i.prototype.initialize=function(t){var e,n,a,r;for(this.state=t.state,r=["sync","add","remove","change"],n=0,a=r.length;a>n;n++)e=r[n],this.listenTo(this.collection,e,this.render);return this.listenTo(this.collection,"reset",function(t){return function(){return t.$el.empty()}}(this))},i.prototype.events=function(){return e.extend(i.__super__.events.apply(this,arguments),{'click [data-action="remove"]':"removeSlave",'click [data-action="decommission"]':"decommissionSlave",'click [data-action="reactivate"]':"reactivateSlave",'click [data-action="freeze"]':"freezeSlave"})},i.prototype.render=function(){var t,e,n,a,r;if(this.collection.synced||("function"==typeof(e=this.collection).isEmpty?!e.isEmpty():!0)){if(this.$el.html(this.template()),t=new s(this.collection.filter(function(t){var e;return"ACTIVE"===(e=t.get("state"))})),a=new s(this.collection.filter(function(t){var e;return"FROZEN"===(e=t.get("state"))})),n=new s(this.collection.filter(function(t){var e;return"DECOMMISSIONING"===(e=t.get("state"))||"DECOMMISSIONED"===e||"STARTING_DECOMMISSION"===e})),r=new s(this.collection.filter(function(t){var e;return"DEAD"===(e=t.get("state"))||"MISSING_ON_STARTUP"===e})),this.$("#active").html(this.slaveTemplate({data:t.toJSON()})),this.$("#frozen").html(this.slaveTemplate({data:a.toJSON()})),this.$("#decommission").html(this.slaveTemplate({data:n.toJSON()})),this.$("#inactive").html(this.slaveTemplate({data:r.toJSON()})),this.$(".actions-column a[title]").tooltip(),this.state&&this.initialPageLoad){if("all"===this.state)return;utils.scrollTo("#"+this.state),this.initialPageLoad=!1}return i.__super__.render.apply(this,arguments).afterRender()}},i.prototype.removeSlave=function(t){var e,n,s;return e=a(t.currentTarget),s=e.data("state"),n=new r({id:e.data("slave-id"),host:e.data("slave-host"),state:s}),n.promptRemove(function(t){return function(){return t.trigger("refreshrequest")}}(this))},i.prototype.freezeSlave=function(t){var e,n,s;return e=a(t.currentTarget),s=e.data("state"),n=new r({id:e.data("slave-id"),host:e.data("slave-host"),state:s}),n.promptFreeze(function(t){return function(){return t.trigger("refreshrequest")}}(this))},i.prototype.decommissionSlave=function(t){var e,n,s;return e=a(t.currentTarget),s=e.data("state"),n=new r({id:e.data("slave-id"),host:e.data("slave-host"),state:s}),n.promptDecommission(function(t){return function(){return t.trigger("refreshrequest")}}(this))},i.prototype.reactivateSlave=function(t){var e,n,s;return e=a(t.currentTarget),s=e.data("state"),n=new r({id:e.data("slave-id"),host:e.data("slave-host"),state:s}),n.promptReactivate(function(t){return function(){return t.trigger("refreshrequest")}}(this))},i}(o),t.exports=i}).call(e,n(3),n(1))},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){return'
    \n

    Slaves

    \n
    \n
    \n
    \n

    Active

    \n
    \n

    Frozen

    \n
    \n

    Decommissioning

    \n
    \n

    Inactive

    \n
    \n
    \n
    \n'},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing;return' \n \n \n \n \n \n \n \n \n'+(null!=(s=(n.ifInSubFilter||e&&e.ifInSubFilter||o).call(i,null!=(s=null!=(s=null!=e?e.data:e)?s[0]:s)?s.state:s,"DECOMMISSIONING,DECOMMISSIONED,STARTING_DECOMMISSION",{name:"ifInSubFilter",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=(n.ifInSubFilter||e&&e.ifInSubFilter||o).call(i,null!=(s=null!=(s=null!=e?e.data:e)?s[0]:s)?s.state:s,"FROZEN",{name:"ifInSubFilter",hash:{},fn:t.program(4,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=(n.ifInSubFilter||e&&e.ifInSubFilter||o).call(i,null!=(s=null!=(s=null!=e?e.data:e)?s[0]:s)?s.state:s,"ACTIVE",{name:"ifInSubFilter",hash:{},fn:t.program(6,r,0),inverse:t.noop,data:r}))?s:"")+' \n \n \n \n \n'+(null!=(s=n.each.call(i,null!=e?e.data:e,{name:"each",hash:{},fn:t.program(8,r,0),inverse:t.noop,data:r}))?s:"")+" \n
    IDStateSinceRackHostMessage
    \n"},2:function(t,e,n,a,r){return" Decommissioned By\n"},4:function(t,e,n,a,r){return" Frozen By\n"},6:function(t,e,n,a,r){return" Activated By\n"},8:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression;return' \n \n '+c((i=null!=(i=n.id||(null!=e?e.id:e))?i:l,typeof i===u?i.call(o,{name:"id",hash:{},data:r}):i))+"\n \n "+c((n.humanizeText||e&&e.humanizeText||l).call(o,null!=e?e.state:e,{name:"humanizeText",hash:{},data:r}))+"\n "+c((n.timestampFormatted||e&&e.timestampFormatted||l).call(o,null!=(s=null!=e?e.currentState:e)?s.timestamp:s,{name:"timestampFormatted",hash:{},data:r}))+"\n "+c((i=null!=(i=n.rackId||(null!=e?e.rackId:e))?i:l,typeof i===u?i.call(o,{name:"rackId",hash:{},data:r}):i))+"\n "+c((i=null!=(i=n.host||(null!=e?e.host:e))?i:l,typeof i===u?i.call(o,{name:"host",hash:{},data:r}):i))+'\n \n '+c((n.timestampDuration||e&&e.timestampDuration||l).call(o,null!=e?e.uptime:e,{name:"timestampDuration",hash:{},data:r}))+"\n \n"+(null!=(s=(n.ifInSubFilter||e&&e.ifInSubFilter||l).call(o,null!=e?e.state:e,"ACTIVE,DECOMMISSIONING,DECOMMISSIONED,STARTING_DECOMMISSION,FROZEN",{name:"ifInSubFilter",hash:{},fn:t.program(9,r,0),inverse:t.noop,data:r}))?s:"")+" "+c(t.lambda(null!=(s=null!=e?e.currentState:e)?s.message:s,e))+'\n \n'+(null!=(s=(n.ifInSubFilter||e&&e.ifInSubFilter||l).call(o,null!=e?e.state:e,"DECOMMISSIONING,DECOMMISSIONED,STARTING_DECOMMISSION,FROZEN",{name:"ifInSubFilter",hash:{},fn:t.program(11,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=(n.ifInSubFilter||e&&e.ifInSubFilter||l).call(o,null!=e?e.state:e,"ACTIVE",{name:"ifInSubFilter",hash:{},fn:t.program(13,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=(n.ifInSubFilter||e&&e.ifInSubFilter||l).call(o,null!=e?e.state:e,"ACTIVE,FROZEN",{name:"ifInSubFilter",hash:{},fn:t.program(15,r,0),inverse:t.program(17,r,0),data:r}))?s:"")+" \n \n"},9:function(t,e,n,a,r){var s;return" "+t.escapeExpression((s=null!=(s=n.user||(null!=e?e.user:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"user",hash:{},data:r}):s))+"\n"},11:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return' \n \n \n'},13:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return' \n \n \n'},15:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return' \n \n \n'},17:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l="function",u=t.escapeExpression;return' \n \n \n'},19:function(t,e,n,a,r){return"

    No slaves

    \n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=e?e.data:e)?s.length:s,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(19,r,0),data:r}))?s:""},useData:!0})},function(t,e,n){var a,r,s,i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;a=n(19),s=n(596),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.initialize=function(){return this.title("Not Found"),this.setView(new s),app.showView(this.view)},e}(a),t.exports=r},function(t,e,n){var a,r,s=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=n(201),a=function(t){function e(){return this.render=s(this.render,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.template=n(597),e.prototype.render=function(){return this.$el.html(this.template({fragment:Backbone.history.fragment}))},e}(r),t.exports=a},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return'
    \n

    404

    \n

    Page not found

    \n
    \n\n

    Sorry, we could not find the page you were looking for.

    \n
    '+t.escapeExpression((s=null!=(s=n.fragment||(null!=e?e.fragment:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"fragment",hash:{},data:r}):s))+"
    \n"},useData:!0})},function(t,e,n){(function(e){var a,r,s,i,o,l,u,c,p,d,h=function(t,e){function n(){this.constructor=t}for(var a in e)f.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},f={}.hasOwnProperty;a=n(19),o=n(291),p=n(151),r=n(599),c=n(600),l=n(601),i=n(602),u=n(247),d=n(249),s=function(t){function a(){return a.__super__.constructor.apply(this,arguments)}return h(a,t),a.prototype.templates={header:n(604),info:n(605),taskHistory:n(606),activeTasks:n(607),healthChecks:n(608)},a.prototype.initialize=function(t){return this.requestId=t.requestId,this.deployId=t.deployId,this.title(this.requestId+" deploy "+this.deployId),this.models.deploy=new o({deployId:this.deployId,requestId:this.requestId}),this.collections.taskHistory=new p([],{params:{requestId:this.requestId,deployId:this.deployId}}),this.collections.activeTasks=new r([],{requestId:this.requestId,deployId:this.deployId}),this.collections.healthChecks=new l([]),this.subviews.header=new d({model:this.models.deploy,template:this.templates.header}),this.subviews.info=new d({model:this.models.deploy,template:this.templates.info}),this.subviews.taskHistory=new u({collection:this.collections.taskHistory,template:this.templates.taskHistory}),this.subviews.activeTasks=new d({collection:this.collections.activeTasks,template:this.templates.activeTasks}),this.subviews.healthChecks=new d({collection:this.collections.healthChecks,template:this.templates.healthChecks}),this.refresh(),this.setView(new i(e.extend({requestId:this.requestId,deployId:this.deployId,subviews:this.subviews},{model:this.models.deploy}))),app.showView(this.view)},a.prototype.refresh=function(){var t,e;return e=this.models.deploy.fetch(),t=this.collections.taskHistory.fetch(),t.error(function(t){return function(){return t.ignore404}}(this)),t=this.collections.activeTasks.fetch(),t.error(function(t){return function(){return t.ignore404}}(this)),t.done(function(t){return function(){var e,n,a,r,s,i;for(t.collections.healthChecks.reset(),r=t.collections.activeTasks.models,s=[],n=0,a=r.length;a>n;n++)i=r[n],e=new c({taskId:i.id}),s.push(e.fetch({success:function(){return e.get("durationMillis")?t.collections.healthChecks.add(e):void 0}}));return s}}(this))},a}(a),t.exports=s}).call(e,n(3))},function(t,e,n){var a,r,s,i=function(t,e){return function(){return t.apply(e,arguments)}},o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=n(242),a=n(21),r=function(t){function e(){return this.comparator=i(this.comparator,this),e.__super__.constructor.apply(this,arguments)}var n;return o(e,t),e.prototype.model=n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.ignoreAttributes=["id"],e}(Backbone.Model),e.prototype.url=function(){return config.apiRoot+"/history/request/"+this.requestId+"/deploy/"+this.deployId+"/tasks/active"},e.prototype.initialize=function(t,e){this.requestId=e.requestId,this.deployId=e.deployId},e.prototype.comparator=function(t,e){return-(t.get("updatedAt")-e.get("updatedAt"))},e.prototype.parse=function(t){var e,n,a;for(e=0,n=t.length;n>e;e++)a=t[e],a.id=a.taskId.id;return t},e}(a),t.exports=r},function(t,e,n){(function(e){var a,r,s,i=function(t,e){return function(){return t.apply(e,arguments)}},o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty;r=n(22),s=n(24),a=function(t){function n(){return this.initialize=i(this.initialize,this),this.url=i(this.url,this),n.__super__.constructor.apply(this,arguments)}return o(n,t),n.prototype.url=function(){return config.apiRoot+"/history/task/"+this.taskId},n.prototype.initialize=function(t){this.taskId=t.taskId},n.prototype.parse=function(t){var n;return n=e.last(t.healthcheckResults),n&&(n.id=n.taskId.id),n},n}(r),t.exports=a}).call(e,n(3))},function(t,e,n){var a,r,s,i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;a=n(21),s=n(600),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.model=s,e.prototype.initialize=function(t,e){null==t&&(t=[])},e}(a),t.exports=r},function(t,e,n){(function(e,a){var r,s,i,o=function(t,e){return function(){return t.apply(e,arguments)}},l=function(t,e){function n(){this.constructor=t}for(var a in e)u.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},u={}.hasOwnProperty;i=n(201),r=n(230),s=function(t){function r(){return this.viewObjectJson=o(this.viewObjectJson,this),this.viewJson=o(this.viewJson,this),r.__super__.constructor.apply(this,arguments)}return l(r,t),r.prototype.template=n(603),r.prototype.events=function(){return e.extend(r.__super__.events.apply(this,arguments),{'click [data-action="viewJSON"]':"viewJson",'click [data-action="viewObjectJSON"]':"viewObjectJson"})},r.prototype.initialize=function(t){this.requestId=t.requestId,this.deployId=t.deployId},r.prototype.render=function(){return this.$el.html(this.template({config:config})),this.$("#header").html(this.subviews.header.$el),this.$("#activeTasks").html(this.subviews.activeTasks.$el),this.$("#info").html(this.subviews.info.$el),this.$("#tasks").html(this.subviews.taskHistory.$el),this.$("#healthChecks").html(this.subviews.healthChecks.$el)},r.prototype.viewJson=function(t){var e,n,r,s;return e=a(t.currentTarget).parents("tr"),s=e.data("id"),r=e.data("collection"),n=this.subviews[r].collection,utils.viewJSON(n.get(s))},r.prototype.viewObjectJson=function(t){return utils.viewJSON(this.model)},r}(i),t.exports=s}).call(e,n(3),n(1))},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){return'\n
    \n\n
    \n
    \n\n
    \n
    \n\n
    \n
    \n \n
    \n'},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s,i=t.lambda,o=t.escapeExpression;return' \n '+o(i(null!=(s=null!=(s=null!=e?e.data:e)?s.deployResult:s)?s.deployState:s,e))+"\n \n"},3:function(t,e,n,a,r){return' \n pending\n \n'},5:function(t,e,n,a,r){var s,i=null!=e?e:{};return'
    \n
    \n
    \n
    Deploy had '+t.escapeExpression(t.lambda(null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.deployResult:s)?s.deployFailures:s)?s.length:s,e))+" failure"+(null!=(s=(n.ifNotEqual||e&&e.ifNotEqual||n.helperMissing).call(i,null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.deployResult:s)?s.deployFailures:s)?s.length:s,1,{name:"ifNotEqual",hash:{},fn:t.program(6,r,0),inverse:t.noop,data:r}))?s:"")+':
    \n
    \n'+(null!=(s=n.each.call(i,null!=(s=null!=(s=null!=e?e.data:e)?s.deployResult:s)?s.deployFailures:s,{name:"each",hash:{},fn:t.program(8,r,0),inverse:t.noop,data:r}))?s:"")+"
    \n
    \n
    \n
    \n"},6:function(t,e,n,a,r){return"s"},8:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.taskId:e,{name:"if",hash:{},fn:t.program(9,r,0),inverse:t.program(12,r,0),data:r}))?s:""},9:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u=t.escapeExpression,c=t.lambda;return' '+u(c(null!=(s=null!=e?e.taskId:e)?s.id:s,e))+": "+u((n.humanizeText||e&&e.humanizeText||l).call(o,null!=e?e.reason:e,{name:"humanizeText",hash:{},data:r}))+" (Instance "+u(c(null!=(s=null!=e?e.taskId:e)?s.instanceNo:s,e))+")"+(null!=(s=n["if"].call(o,null!=e?e.message:e,{name:"if",hash:{},fn:t.program(10,r,0),inverse:t.noop,data:r}))?s:"")+"\n"},10:function(t,e,n,a,r){var s;return": "+t.escapeExpression((s=null!=(s=n.message||(null!=e?e.message:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"message",hash:{},data:r}):s))},12:function(t,e,n,a,r){var s,i=null!=e?e:{};return'
  • '+t.escapeExpression((n.humanizeText||e&&e.humanizeText||n.helperMissing).call(i,null!=e?e.reason:e,{name:"humanizeText",hash:{},data:r}))+(null!=(s=n["if"].call(i,null!=e?e.message:e,{name:"if",hash:{},fn:t.program(10,r,0),inverse:t.noop,data:r}))?s:"")+"
  • \n"},14:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=(s=null!=e?e.data:e)?s.deployResult:s)?s.message:s,{name:"if",hash:{},fn:t.program(15,r,0),inverse:t.noop,data:r}))?s:""},15:function(t,e,n,a,r){var s;return'
    \n
    \n
    \n '+t.escapeExpression(t.lambda(null!=(s=null!=(s=null!=e?e.data:e)?s.deployResult:s)?s.message:s,e))+"\n
    \n
    \n
    \n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=t.escapeExpression,u=t.lambda;return'
    \n \n\n
    \n
    \n

    \n \n '+l(u(null!=(s=null!=e?e.data:e)?s.deployId:s,e))+"\n \n"+(null!=(s=n["if"].call(o,null!=(s=null!=(s=null!=e?e.data:e)?s.deployResult:s)?s.deployState:s,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(3,r,0),data:r}))?s:"")+'

    \n
    \n \n
    \n \n'+(null!=(s=n["if"].call(o,null!=(s=null!=(s=null!=e?e.data:e)?s.deployResult:s)?s.deployFailures:s,{name:"if",hash:{},fn:t.program(5,r,0),inverse:t.program(14,r,0),data:r}))?s:"")+"
    \n"},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l=t.escapeExpression;return'
  • \n
    \n

    InitiatedCopy

    \n

    '+l((n.timestampFromNow||e&&e.timestampFromNow||o).call(i,null!=(s=null!=(s=null!=e?e.data:e)?s.deployMarker:s)?s.timestamp:s,{name:"timestampFromNow",hash:{},data:r}))+"

    \n
    \n
  • \n"},3:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l=t.escapeExpression;return'
  • \n
    \n

    CompletedCopy

    \n

    '+l((n.timestampFromNow||e&&e.timestampFromNow||o).call(i,null!=(s=null!=(s=null!=e?e.data:e)?s.deployResult:s)?s.timestamp:s,{name:"timestampFromNow",hash:{},data:r}))+"

    \n
    \n
  • \n"},5:function(t,e,n,a,r){var s,i=t.lambda,o=t.escapeExpression;return'
  • \n
    \n

    CommandCopy

    \n

    '+o(i(null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.deploy:s)?s.executorData:s)?s.cmd:s,e))+"

    \n
    \n
  • \n"},7:function(t,e,n,a,r){var s,i=t.lambda,o=t.escapeExpression;return'
  • \n
    \n

    ResourcesCopy

    \n

    CPUs: '+o(i(null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.deploy:s)?s.resources:s)?s.cpus:s,e))+" | Memory (MB): "+o(i(null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.deploy:s)?s.resources:s)?s.memoryMb:s,e))+" | Ports: "+o(i(null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.deploy:s)?s.resources:s)?s.numPorts:s,e))+"\n

    \n
    \n
  • \n"},9:function(t,e,n,a,r){var s,i=t.lambda,o=t.escapeExpression;return'
  • \n
    \n

    Number of TasksCopy

    \n

    '+o(i(null!=(s=null!=(s=null!=e?e.data:e)?s.deployStatistics:s)?s.numTasks:s,e))+"

    \n
    \n
  • \n"; },11:function(t,e,n,a,r){var s,i=null!=e?e:{},o=n.helperMissing,l=t.escapeExpression;return'
  • \n
    \n

    Last Task StateCopy

    \n

    '+l((n.humanizeText||e&&e.humanizeText||o).call(i,null!=(s=null!=(s=null!=e?e.data:e)?s.deployStatistics:s)?s.lastTaskState:s,{name:"humanizeText",hash:{},data:r}))+"

    \n
    \n
  • \n"},13:function(t,e,n,a,r){var s,i=t.lambda,o=t.escapeExpression;return'
  • \n
    \n

    Sequential RetriesCopy

    \n

    '+o(i(null!=(s=null!=(s=null!=e?e.data:e)?s.deployStatistics:s)?s.numSequentialRetries:s,e))+"

    \n
    \n
  • \n"},15:function(t,e,n,a,r){var s,i=t.lambda,o=t.escapeExpression;return'
  • \n
    \n

    Average Runtime MillisecondsCopy

    \n

    '+o(i(null!=(s=null!=(s=null!=e?e.data:e)?s.deployStatistics:s)?s.averageRuntimeMillis:s,e))+"

    \n
    \n
  • \n"},17:function(t,e,n,a,r){var s,i=t.lambda,o=t.escapeExpression;return'
  • \n
    \n

    Extra Command Line ArgumentsCopy

    \n

    '+o(i(null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.deploy:s)?s.executorData:s)?s.extraCmdLineArgs:s,e))+"

    \n
    \n
  • \n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i=null!=e?e:{};return'
    \n\n
    \n
      \n'+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=e?e.data:e)?s.deployMarker:s)?s.timestamp:s,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=e?e.data:e)?s.deployResult:s)?s.timestamp:s,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.deploy:s)?s.executorData:s)?s.cmd:s,{name:"if",hash:{},fn:t.program(5,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.deploy:s)?s.resources:s)?s.cpus:s,{name:"if",hash:{},fn:t.program(7,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=e?e.data:e)?s.deployStatistics:s)?s.numTasks:s,{name:"if",hash:{},fn:t.program(9,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=e?e.data:e)?s.deployStatistics:s)?s.lastTaskState:s,{name:"if",hash:{},fn:t.program(11,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=e?e.data:e)?s.deployStatistics:s)?s.numSequentialRetries:s,{name:"if",hash:{},fn:t.program(13,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=e?e.data:e)?s.deployStatistics:s)?s.averageRuntimeMillis:s,{name:"if",hash:{},fn:t.program(15,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=e?e.data:e)?s.deploy:s)?s.executorData:s)?s.extraCmdLineArgs:s,{name:"if",hash:{},fn:t.program(17,r,0),inverse:t.noop,data:r}))?s:"")+"
    \n
    \n
    \n"},useData:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r,s,i){var o;return'
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n'+(null!=(o=n.each.call(null!=e?e:{},null!=e?e.data:e,{name:"each",hash:{},fn:t.program(2,r,0,s,i),inverse:t.noop,data:r}))?o:"")+" \n
    \n Name\n
    \n
    \n"},2:function(t,e,n,a,r,s,i){var o,l,u=t.lambda,c=t.escapeExpression,p=null!=e?e:{},d=n.helperMissing,h="function";return' \n \n \n \n '+c(u(null!=(o=null!=e?e.taskId:e)?o.id:o,e))+'\n \n \n \n \n \n '+c((n.humanizeText||e&&e.humanizeText||d).call(p,null!=e?e.lastTaskState:e,{name:"humanizeText",hash:{},data:r}))+'\n \n \n \n '+c(u(null!=(o=null!=e?e.taskId:e)?o.deployId:o,e))+'\n \n \n '+c((n.timestampFromNow||e&&e.timestampFromNow||d).call(p,null!=(o=null!=e?e.taskId:e)?o.startedAt:o,{name:"timestampFromNow",hash:{},data:r}))+'\n \n \n '+c((n.timestampFromNow||e&&e.timestampFromNow||d).call(p,null!=e?e.updatedAt:e,{name:"timestampFromNow",hash:{},data:r}))+'\n \n \n \n ...\n \n \n \n \n { }\n \n \n \n'},4:function(t,e,n,a,r){return'
    \n No tasks\n
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r,s,i){var o;return'\n'+(null!=(o=n["if"].call(null!=e?e:{},null!=(o=null!=e?e.data:e)?o.length:o,{name:"if",hash:{},fn:t.program(1,r,0,s,i),inverse:t.program(4,r,0,s,i),data:r}))?o:"")},useData:!0,useDepths:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r,s,i){var o;return'
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n'+(null!=(o=n.each.call(null!=e?e:{},null!=e?e.data:e,{name:"each",hash:{},fn:t.program(2,r,0,s,i),inverse:t.noop,data:r}))?o:"")+" \n
    \n Name\n
    \n
    \n"},2:function(t,e,n,a,r,s,i){var o,l,u=t.lambda,c=t.escapeExpression,p=null!=e?e:{},d=n.helperMissing,h="function";return' \n \n \n \n '+c(u(null!=(o=null!=e?e.taskId:e)?o.id:o,e))+'\n \n \n \n \n \n '+c((n.humanizeText||e&&e.humanizeText||d).call(p,null!=e?e.lastTaskState:e,{name:"humanizeText",hash:{},data:r}))+'\n \n \n \n '+c(u(null!=(o=null!=e?e.taskId:e)?o.deployId:o,e))+'\n \n \n '+c((n.timestampFromNow||e&&e.timestampFromNow||d).call(p,null!=(o=null!=e?e.taskId:e)?o.startedAt:o,{name:"timestampFromNow",hash:{},data:r}))+'\n \n \n '+c((n.timestampFromNow||e&&e.timestampFromNow||d).call(p,null!=e?e.updatedAt:e,{name:"timestampFromNow",hash:{},data:r}))+'\n \n \n \n ...\n \n \n \n \n { }\n \n \n \n'},4:function(t,e,n,a,r){return'
    \n No tasks\n
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r,s,i){var o;return'\n'+(null!=(o=n["if"].call(null!=e?e:{},null!=(o=null!=e?e.data:e)?o.length:o,{name:"if",hash:{},fn:t.program(1,r,0,s,i),inverse:t.program(4,r,0,s,i),data:r}))?o:"")},useData:!0,useDepths:!0})},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){var s,i=null!=e?e:{};return' \n
    \n
    \n \n \n \n \n \n \n \n \n \n \n \n'+(null!=(s=n.each.call(i,null!=e?e.data:e,{name:"each",hash:{},fn:t.program(8,r,0),inverse:t.noop,data:r}))?s:"")+" \n
    TaskTimestampDurationStatusMessage
    \n
    \n
    \n"},2:function(t,e,n,a,r){return" collapse\n"},4:function(t,e,n,a,r){return" view\n"},6:function(t,e,n,a,r){return"hide"},8:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=e?e.durationMillis:e,{name:"if",hash:{},fn:t.program(9,r,0),inverse:t.noop,data:r}))?s:""},9:function(t,e,n,a,r){var s,i,o=t.lambda,l=t.escapeExpression,u=null!=e?e:{},c=n.helperMissing,p="function";return' \n \n \n '+l(o(null!=(s=null!=e?e.taskId:e)?s.id:s,e))+"\n \n \n \n "+l((n.timestampFormattedWithSeconds||e&&e.timestampFormattedWithSeconds||c).call(u,null!=e?e.timestamp:e,{name:"timestampFormattedWithSeconds",hash:{},data:r}))+"\n \n \n "+l((i=null!=(i=n.durationMillis||(null!=e?e.durationMillis:e))?i:c,typeof i===p?i.call(u,{name:"durationMillis",hash:{},data:r}):i))+(null!=(s=n["if"].call(u,null!=e?e.durationMillis:e,{name:"if",hash:{},fn:t.program(10,r,0),inverse:t.noop,data:r}))?s:"")+"\n \n \n"+(null!=(s=n["if"].call(u,null!=e?e.statusCode:e,{name:"if",hash:{},fn:t.program(12,r,0),inverse:t.program(17,r,0),data:r}))?s:"")+' \n \n
    '+(null!=(s=n["if"].call(u,null!=e?e.errorMessage:e,{name:"if",hash:{},fn:t.program(19,r,0),inverse:t.program(21,r,0),data:r}))?s:"")+'
    \n \n \n \n { }\n \n \n \n'},10:function(t,e,n,a,r){return"ms"},12:function(t,e,n,a,r){var s;return null!=(s=(n.ifEqual||e&&e.ifEqual||n.helperMissing).call(null!=e?e:{},null!=e?e.statusCode:e,200,{name:"ifEqual",hash:{},fn:t.program(13,r,0),inverse:t.program(15,r,0),data:r}))?s:""},13:function(t,e,n,a,r){var s;return' HTTP '+t.escapeExpression((s=null!=(s=n.statusCode||(null!=e?e.statusCode:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"statusCode",hash:{},data:r}):s))+"\n"},15:function(t,e,n,a,r){var s;return' HTTP '+t.escapeExpression((s=null!=(s=n.statusCode||(null!=e?e.statusCode:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"statusCode",hash:{},data:r}):s))+"\n"},17:function(t,e,n,a,r){return' No Response\n'},19:function(t,e,n,a,r){var s;return t.escapeExpression((s=null!=(s=n.errorMessage||(null!=e?e.errorMessage:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"errorMessage",hash:{},data:r}):s))},21:function(t,e,n,a,r){var s;return t.escapeExpression((s=null!=(s=n.responseBody||(null!=e?e.responseBody:e))?s:n.helperMissing,"function"==typeof s?s.call(null!=e?e:{},{name:"responseBody",hash:{},data:r}):s))},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s;return null!=(s=n["if"].call(null!=e?e:{},null!=(s=null!=e?e.data:e)?s.length:s,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:""},useData:!0})},function(t,e,n){(function(e){var a,r,s,i,o,l,u,c,p,d,h=function(t,e){function n(){this.constructor=t}for(var a in e)f.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},f={}.hasOwnProperty;r=n(19),i=n(610),o=n(612),u=n(627),d=n(660),c=n(661),p=n(662),s=n(646),a=n(649),l=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return h(n,t),n.prototype.initialize=function(t){var n,r,i,l,h,f;return this.requestId=t.requestId,this.path=t.path,this.initialOffset=t.initialOffset,h=t.taskIds,f=t.viewMode,l=t.search,this.title("Tail of "+e.last(this.path.split("/"))),r={viewMode:f,colors:["Default","Light","Dark"],logRequestLength:3e4,activeRequest:{requestId:this.requestId}},i=[d["default"]],window.localStorage.enableReduxLogging&&i.push(c()),this.store=u.createStore(p,r,u.compose(u.applyMiddleware.apply(this,i))),n=h.length>0?this.store.dispatch(s.initialize(this.requestId,this.path,l,h)):this.store.dispatch(s.initializeUsingActiveTasks(this.requestId,this.path,l)),n.then(function(t){return function(){return t.store.dispatch(a.updateActiveTasks(t.requestId))}}(this)),this.view=new o(this.store),this.setView(this.view),app.showView(this.view),window.getStateJSON=function(t){return function(){return JSON.stringify(t.store.getState())}}(this)},n}(r),t.exports=l}).call(e,n(3))},function(t,e,n){(function(e,a){var r,s,i,o,l,u=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function n(){this.constructor=t}for(var a in e)p.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},p={}.hasOwnProperty;r=n(21),s=n(611),o=n(28),l=function(t){return function(t){return 0>t?0:t}}(this),i=function(t){function n(){return this.parse=u(this.parse,this),this.fetchOffset=u(this.fetchOffset,this),this.fetchFromStart=u(this.fetchFromStart,this),this.fetchNext=u(this.fetchNext,this),this.fetchInitialData=u(this.fetchInitialData,this),this.getStartOffsetOfLastLine=u(this.getStartOffsetOfLastLine,this),this.getMaxOffset=u(this.getMaxOffset,this),this.getMinOffset=u(this.getMinOffset,this),this.url=u(this.url,this),n.__super__.constructor.apply(this,arguments)}return c(n,t),n.prototype.model=s,n.prototype.comparator="offset",n.prototype.delimiter=/\n/,n.lastTimestamp=null,n.timestampIndex=0,n.grep="",n.nextOffset=null,n.prototype.baseRequestLength=3e4,n.prototype.state=new Backbone.Model({reachedEndOfFile:!1,moreToFetch:void 0,moreToFetchAtBeginning:void 0,pendingFetchPrev:!1,pendingFetchNext:!1}),n.prototype.url=function(){return config.apiRoot+"/sandbox/"+this.taskId+"/read"},n.prototype.initialize=function(t,e){this.taskId=e.taskId,this.path=e.path,this.ajaxError=e.ajaxError},n.prototype.getMinOffset=function(){return this.length>0?this.first().getStartOffset():0},n.prototype.getMaxOffset=function(){return this.length>0?this.last().getEndOffset():0},n.prototype.getStartOffsetOfLastLine=function(){return this.length>0?this.last().getStartOffset():0},n.prototype.fetchInitialData=function(t){var n;return null==t&&(t=e.noop),n=a.ajax({url:this.url(),data:{path:this.path,length:this.baseRequestLength}}),n.done(function(e){return function(n){var a,r;return a=Math.max(0,n.offset-e.baseRequestLength),e.ajaxError.set({present:!1}),r=e.fetch({data:{path:e.path,offset:a,length:e.initialRequestLength}}),e.trigger("initialdata"),r.done(function(){return e.state.set("reachedEndOfFile",!0),t()})}}(this)),n.error(function(t){return function(e){var n;return 400===(n=e.status)||404===n||500===n?(app.caughtError(),t.ajaxError.setFromErrorResponse(e)):void 0}}(this)),n},n.prototype.fetchPrevious=function(){return this.state.get("pendingFetchPrev")?void 0:(this.state.set("pendingFetchPrev",!0),this.fetch({data:{offset:Math.max(0,this.getMinOffset()-this.baseRequestLength),length:Math.min(this.getMinOffset(),this.baseRequestLength)}}).error(function(t){return function(t){return 404===t.status?app.caughtError():void 0}}(this)).done(function(t){return function(){return t.state.set("pendingFetchPrev",!1)}}(this)))},n.prototype.fetchNext=function(){return this.state.get("pendingFetchNext")?void 0:(this.state.set("pendingFetchNext",!0),this.fetch({data:{offset:this.nextOffset||this.getMaxOffset()}}).error(function(t){return function(t){return 404===t.status?app.caughtError():void 0}}(this)).done(function(t){return function(){return t.state.set("pendingFetchNext",!1)}}(this)))},n.prototype.fetchFromStart=function(){return this.fetch({data:{offset:0}})},n.prototype.fetchOffset=function(t){return this.fetch({data:{offset:t-1,done:function(t){return function(){return t.trigger("initialOffsetData")}}(this)}})},n.prototype.fetch=function(t){var a,r;return null==t&&(t={}),a={remove:!1,data:e.extend({path:this.path,length:this.baseRequestLength,grep:this.grep},t.data)},r=n.__super__.fetch.call(this,e.extend(t,a))},n.prototype.reset=function(){return this.state.set({moreToFetch:void 0,moreToFetchAtBeginning:void 0,reachedEndOfFile:!1}),n.__super__.reset.apply(this,arguments)},n.prototype.parse=function(t,n){var a,r,s,i,l,u,c,p;if(t.offset>=this.getMaxOffset()?(this.nextOffset=t.nextOffset||t.offset+t.data.length,this.state.set("reachedEndOfFile",0===t.data.length&&n.data.length>0)):this.nextOffset=null,0===t.data.length)return[];if(l=e.initial(t.data.match(/[^\n]*(\n|$)/g)),this.state.set("moreToFetch",t.data.length===n.data.length&&t.offset>=this.getMaxOffset()),this.state.set("moreToFetchAtBeginning",t.offset>0&&this.getMinOffset()>0),t.offset>0&&t.offset===this.getMaxOffset()&&(c=this.at(-1),c.get("data").endsWith("\n")||(c.set({data:c.get("data")+l[0]}),t.offset+=l[0].length,l=e.rest(l))),t.offset+t.data.length===this.getMinOffset()&&(c=this.at(0),s=e.last(l),s.endsWith("\n")||(c.set({data:s+c.get("data"),offset:c.get("offset")-s.length}),l=e.initial(l))),this.lastTimestamp=null,this.firstTimestamp=null,u=t.offset,p=l.map(function(t){return function(e){var n,a,r,s;return r=o(e),s=o(e,"HH:mm:ss.SSS"),r.isValid()||s.isValid()?(a=r.isValid()?r:s,t.lastTimestamp||(t.firstTimestamp=a),t.lastTimestamp=a,t.timestampIndex=0):(a=t.lastTimestamp,t.lastTimestamp&&t.timestampIndex++),n={data:e,offset:u,timestamp:a,timestampIndex:t.timestampIndex,taskId:t.taskId},u+=e.length,n}}(this)),this.firstTimestamp)for(a=0,i=p.length;i>a;a++)r=p[a],p.timestamp||(p.timestamp=this.firstTimestamp.subtract(1,"ms"));return p},n.merge=function(t){var e;return e=[].concat.apply([],t),e=e.sort(function(t){return function(t,e){return t.timestamp&&e.timestamp&&!t.timestamp.isSame(e.timestamp)?t.timestamp.isBefore(e.timestamp)?-1:1:t.taskId!==e.taskId?t.taskId>e.taskId?-1:1:t.timestampIndex!==e.timestampIndex?t.timestampIndex>e.timestampIndex?-1:1:0}}(this))},n}(r),t.exports=i}).call(e,n(3),n(1))},function(t,e,n){var a,r,s=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=n(22),a=function(t){function e(){return this.getEndOffset=s(this.getEndOffset,this),this.getStartOffset=s(this.getStartOffset,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.idAttribute="offset",e.prototype.getStartOffset=function(){return this.get("offset")},e.prototype.getEndOffset=function(){return this.get("offset")+this.get("data").length},e}(r),t.exports=a},function(t,e,n){(function(e){var a,r,s,i,o,l,u=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function n(){this.constructor=t}for(var a in e)p.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},p={}.hasOwnProperty;l=n(201),i=n(294),o=n(446),a=n(613),s=n(620).Provider,r=function(t){function n(){return this.handleViewChange=u(this.handleViewChange,this),n.__super__.constructor.apply(this,arguments)}return c(n,t),n.prototype.initialize=function(t){return window.addEventListener("viewChange",this.handleViewChange),this.component=i.createElement(s,{store:t},i.createElement(a,null))},n.prototype.handleViewChange=function(){var t;return t=o.unmountComponentAtNode(this.el),t?window.removeEventListener("viewChange",this.handleViewChange):void 0},n.prototype.render=function(){return e(this.el).addClass("tail-root"),o.render(this.component,this.el)},n}(l),t.exports=r}).call(e,n(1))},function(t,e,n){(function(e){var a,r,s,i,o,l,u,c,p,d,h,f=function(t,e){function n(){this.constructor=t}for(var a in e)m.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},m={}.hasOwnProperty;i=n(294),r=n(614),a=n(618),o=n(652),l=n(620).connect,p=n(646),d=p.updateGroups,h=p.updateTaskStatuses,s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,t),e.propTypes={taskGroupsCount:i.PropTypes.number.isRequired,ready:i.PropTypes.bool.isRequired,updateGroups:i.PropTypes.func.isRequired,updateTaskStatuses:i.PropTypes.func.isRequired},e.prototype.renderTaskGroups=function(){var t,e,n,a,r,s,l,u,c,p;for(c=[],p=4===this.props.taskGroupsCount?2:3,l=[],t=e=1,a=Math.min(this.props.taskGroupsCount,p);a>=1?a>=e:e>=a;t=a>=1?++e:--e)l.push(i.createElement(o,{key:t-1,taskGroupId:t-1,taskGroupContainerCount:Math.min(this.props.taskGroupsCount,p)}));if(c.push(l),this.props.taskGroupsCount>p){for(l=[],t=n=r=p+1,s=Math.min(this.props.taskGroupsCount,6);s>=r?s>=n:n>=s;t=s>=r?++n:--n)l.push(i.createElement(o,{key:t-1,taskGroupId:t-1,taskGroupContainerCount:Math.min(this.props.taskGroupsCount,6)-p}));c.push(l)}return u="row tail-row",c.length>1&&(u="row tail-row-half"),c.map(function(t,e){return i.createElement("div",{key:e,className:u},t)})},e.prototype.render=function(){return i.createElement("div",null,i.createElement(r,{enabled:this.props.ready,timeout:2e3,callback:this.props.updateGroups}),i.createElement(r,{enabled:!0,timeout:1e4,callback:this.props.updateTaskStatuses}),i.createElement(a,null),this.renderTaskGroups())},e}(i.Component),c=function(t){return{taskGroupsCount:t.taskGroups.length,ready:e.all(e.pluck(t.taskGroups,"ready"))}},u={updateGroups:d,updateTaskStatuses:h},t.exports=l(c,u)(s)}).call(e,n(3))},,,,,function(t,e,n){var a,r,s,i,o,l,u,c,p,d,h,f,m=function(t,e){function n(){this.constructor=t}for(var a in e)y.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},y={}.hasOwnProperty;s=n(294),a=n(619),i=n(650),o=n(651),l=n(620).connect,p=n(646),f=p.switchViewMode,h=p.scrollAllToTop,d=p.scrollAllToBottom,r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.propTypes={requestId:s.PropTypes.string.isRequired,path:s.PropTypes.string.isRequired,multipleTasks:s.PropTypes.bool.isRequired,viewMode:s.PropTypes.string.isRequired,switchViewMode:s.PropTypes.func.isRequired,scrollAllToBottom:s.PropTypes.func.isRequired,scrollAllToTop:s.PropTypes.func.isRequired},e.prototype.renderBreadcrumbs=function(){return this.props.path.split("/").map(function(t,e){return"$TASK_ID"===t?s.createElement("li",{key:e},s.createElement("span",{className:"label label-info"},"Task ID")):s.createElement("li",{key:e},t)})},e.prototype.renderViewButtons=function(){return this.props.multipleTasks?s.createElement("div",{className:"btn-group",role:"group",title:"Select View Type"},s.createElement("button",{type:"button",className:"btn btn-sm btn-default no-margin "+("unified"===this.props.viewMode?"active":void 0),onClick:function(t){return function(){return t.props.switchViewMode("unified")}}(this)},"Unified"),s.createElement("button",{type:"button",className:"btn btn-sm btn-default no-margin "+("split"===this.props.viewMode?"active":void 0),onClick:function(t){return function(){return t.props.switchViewMode("split")}}(this)},"Split")):void 0},e.prototype.renderAnchorButtons=function(){return this.props.taskGroupCount>1?s.createElement("span",null,s.createElement("a",{className:"btn btn-default btn-sm tail-bottom-button",onClick:this.props.scrollAllToBottom,title:"Scroll All to Bottom"},s.createElement("span",{className:"glyphicon glyphicon-chevron-down"})),s.createElement("a",{className:"btn btn-default btn-sm tail-top-button",onClick:this.props.scrollAllToTop,title:"Scroll All to Top"},s.createElement("span",{className:"glyphicon glyphicon-chevron-up"}))):void 0},e.prototype.render=function(){return s.createElement("div",{className:"tail-header"},s.createElement("div",{className:"row"},s.createElement("div",{className:"col-md-3"},s.createElement("ul",{className:"breadcrumb breadcrumb-request"},s.createElement("li",null,"Request ",s.createElement("a",{href:config.appRoot+"/request/"+this.props.requestId},this.props.requestId)))),s.createElement("div",{className:"col-md-6"},s.createElement("ul",{className:"breadcrumb"},this.renderBreadcrumbs())),s.createElement("div",{className:"col-md-3 hidden-xs tail-buttons"},s.createElement(i,null),s.createElement(o,null),s.createElement(a,null),this.renderViewButtons(),this.renderAnchorButtons())))},e}(s.Component),c=function(t){return{taskGroupCount:t.taskGroups.length,multipleTasks:t.taskGroups.length>1||t.taskGroups.length>0&&t.taskGroups[0].taskIds.length>1,path:t.path,viewMode:t.viewMode,requestId:t.activeRequest.requestId}},u={switchViewMode:f,scrollAllToBottom:d,scrollAllToTop:h},t.exports=l(c,u)(r)},function(t,e,n){var a,r,s,i,o,l,u,c=function(t,e){function n(){this.constructor=t}for(var a in e)p.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},p={}.hasOwnProperty;r=n(294),s=n(524),i=n(620).connect,u=n(646).selectLogColor,a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.renderColorChoices=function(){var t;return t=this.props.activeColor,this.props.colors.map(function(t){return function(e,n){var a,i;return i=e.toLowerCase().replace(" ","-"),a=s({active:t.props.activeColor===i}),r.createElement("li",{key:n,className:a},r.createElement("a",{onClick:function(){return t.props.selectLogColor(i)}},e))}}(this))},e.prototype.render=function(){return r.createElement("div",{className:"btn-group",title:"Select Color Scheme"},r.createElement("button",{type:"button",className:"btn btn-default btn-sm dropdown-toggle","data-toggle":"dropdown", "aria-haspopup":"true","aria-expanded":"false"},r.createElement("span",{className:"glyphicon glyphicon-adjust"})," ",r.createElement("span",{className:"caret"})),r.createElement("ul",{className:"dropdown-menu dropdown-menu-right"},this.renderColorChoices()))},e}(r.Component),l=function(t){return{colors:t.colors,activeColor:t.activeColor}},o={selectLogColor:u},t.exports=i(l,o)(a)},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e.connect=e.Provider=void 0;var r=n(621),s=a(r),i=n(624),o=a(i);e.Provider=s["default"],e.connect=o["default"]},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0,e["default"]=void 0;var o=n(294),l=n(622),u=a(l),c=n(623),p=(a(c),function(t){function e(n,a){r(this,e);var i=s(this,t.call(this,n,a));return i.store=n.store,i}return i(e,t),e.prototype.getChildContext=function(){return{store:this.store}},e.prototype.render=function(){var t=this.props.children;return o.Children.only(t)},e}(o.Component));e["default"]=p,p.propTypes={store:u["default"].isRequired,children:o.PropTypes.element.isRequired},p.childContextTypes={store:u["default"].isRequired}},function(t,e,n){"use strict";e.__esModule=!0;var a=n(294);e["default"]=a.PropTypes.shape({subscribe:a.PropTypes.func.isRequired,dispatch:a.PropTypes.func.isRequired,getState:a.PropTypes.func.isRequired})},function(t,e){"use strict";function n(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t);try{throw new Error(t)}catch(e){}}e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function o(t){return t.displayName||t.name||"Component"}function l(t,e){try{return t.apply(e)}catch(n){return L.value=n,L}}function u(t,e,n){var a=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],u=Boolean(t),d=t||M,f=void 0;f="function"==typeof e?e:e?(0,v["default"])(e):x;var y=n||S,g=a.pure,_=void 0===g?!0:g,b=a.withRef,T=void 0===b?!1:b,E=_&&y!==S,I=D++;return function(t){function e(t,e,n){var a=y(t,e,n);return a}var n="Connect("+o(t)+")",a=function(a){function o(t,e){r(this,o);var i=s(this,a.call(this,t,e));i.version=I,i.store=t.store||e.store,(0,w["default"])(i.store,'Could not find "store" in either the context or '+('props of "'+n+'". ')+"Either wrap the root component in a , "+('or explicitly pass "store" as a prop to "'+n+'".'));var l=i.store.getState();return i.state={storeState:l},i.clearCache(),i}return i(o,a),o.prototype.shouldComponentUpdate=function(){return!_||this.haveOwnPropsChanged||this.hasStoreStateChanged},o.prototype.computeStateProps=function(t,e){if(!this.finalMapStateToProps)return this.configureFinalMapState(t,e);var n=t.getState(),a=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(n,e):this.finalMapStateToProps(n);return a},o.prototype.configureFinalMapState=function(t,e){var n=d(t.getState(),e),a="function"==typeof n;return this.finalMapStateToProps=a?n:d,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,a?this.computeStateProps(t,e):n},o.prototype.computeDispatchProps=function(t,e){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(t,e);var n=t.dispatch,a=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(n,e):this.finalMapDispatchToProps(n);return a},o.prototype.configureFinalMapDispatch=function(t,e){var n=f(t.dispatch,e),a="function"==typeof n;return this.finalMapDispatchToProps=a?n:f,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,a?this.computeDispatchProps(t,e):n},o.prototype.updateStatePropsIfNeeded=function(){var t=this.computeStateProps(this.store,this.props);return this.stateProps&&(0,m["default"])(t,this.stateProps)?!1:(this.stateProps=t,!0)},o.prototype.updateDispatchPropsIfNeeded=function(){var t=this.computeDispatchProps(this.store,this.props);return this.dispatchProps&&(0,m["default"])(t,this.dispatchProps)?!1:(this.dispatchProps=t,!0)},o.prototype.updateMergedPropsIfNeeded=function(){var t=e(this.stateProps,this.dispatchProps,this.props);return this.mergedProps&&E&&(0,m["default"])(t,this.mergedProps)?!1:(this.mergedProps=t,!0)},o.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},o.prototype.trySubscribe=function(){u&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},o.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},o.prototype.componentDidMount=function(){this.trySubscribe()},o.prototype.componentWillReceiveProps=function(t){_&&(0,m["default"])(t,this.props)||(this.haveOwnPropsChanged=!0)},o.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},o.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},o.prototype.handleChange=function(){if(this.unsubscribe){var t=this.store.getState(),e=this.state.storeState;if(!_||e!==t){if(_&&!this.doStatePropsDependOnOwnProps){var n=l(this.updateStatePropsIfNeeded,this);if(!n)return;n===L&&(this.statePropsPrecalculationError=L.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:t})}}},o.prototype.getWrappedInstance=function(){return(0,w["default"])(T,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},o.prototype.render=function(){var e=this.haveOwnPropsChanged,n=this.hasStoreStateChanged,a=this.haveStatePropsBeenPrecalculated,r=this.statePropsPrecalculationError,s=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,r)throw r;var i=!0,o=!0;_&&s&&(i=n||e&&this.doStatePropsDependOnOwnProps,o=e&&this.doDispatchPropsDependOnOwnProps);var l=!1,u=!1;a?l=!0:i&&(l=this.updateStatePropsIfNeeded()),o&&(u=this.updateDispatchPropsIfNeeded());var d=!0;return d=l||u||e?this.updateMergedPropsIfNeeded():!1,!d&&s?s:(T?this.renderedElement=(0,p.createElement)(t,c({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=(0,p.createElement)(t,this.mergedProps),this.renderedElement)},o}(p.Component);return a.displayName=n,a.WrappedComponent=t,a.contextTypes={store:h["default"]},a.propTypes={store:h["default"]},(0,k["default"])(a,t)}}var c=Object.assign||function(t){for(var e=1;en;n++)e[n]=arguments[n];return function(t){return function(n,a,r){var i=t(n,a,r),l=i.dispatch,u=[],c={getState:i.getState,dispatch:function(t){return l(t)}};return u=e.map(function(t){return t(c)}),l=o["default"].apply(void 0,u)(i.dispatch),s({},i,{dispatch:l})}}}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;en;n++)e[n]=arguments[n];if(0===e.length)return function(t){return t};var a=function(){var t=e[e.length-1],n=e.slice(0,-1);return{v:function(){return n.reduceRight(function(t,e){return e(t)},t.apply(void 0,arguments))}}}();return"object"==typeof a?a.v:void 0}e.__esModule=!0,e["default"]=n},function(t,e,n){function a(t){if(!i(t)||d.call(t)!=o||s(t))return!1;var e=r(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==p}var r=n(641),s=n(642),i=n(643),o="[object Object]",l=Object.prototype,u=Function.prototype.toString,c=l.hasOwnProperty,p=u.call(Object),d=l.toString;t.exports=a},function(t,e){function n(t){return a(Object(t))}var a=Object.getPrototypeOf;t.exports=n},function(t,e){function n(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}t.exports=n},function(t,e){function n(t){return!!t&&"object"==typeof t}t.exports=n},function(t,e){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0};t.exports=function(t,e){if("string"!=typeof e)for(var r=Object.getOwnPropertyNames(e),s=0;se;e++)if(e in this&&this[e]===t)return e;return-1};r=n(647),c=n(649).fetchTasksForRequest,l=function(t,n,a,r){return null==a&&(a=void 0),null==r&&(r=0),r=Math.max(r,0),e.ajax({url:config.apiRoot+"/sandbox/"+t+"/read?"+e.param({path:n,length:r,offset:a})})},u=function(t){return e.ajax({url:config.apiRoot+"/history/task/"+t})},m=function(t,e,n){return function(s){var i;return i=r.defer(),c(t).done(function(r){var o;return o=a.sortBy(a.pluck(r,"taskId"),function(t){return t.instanceNo}).map(function(t){return t.id}),s(f(t,e,n,o)).then(function(){return i.resolve()})}),i.promise}},f=function(t,e,n,a){return function(s,i){var o,u,c;return c=i().viewMode,u="unified"===c?[a]:a.map(function(t){return[t]}),s(d(t,u,e,n)),o=u.map(function(t,n){var a,i;return a=t.map(function(t){var a,i;return i=r.defer(),a=e.replace("$TASK_ID",t),l(t,a).done(function(e){var n;return n=e.offset,s(h(t,n,a,!0)),i.resolve()}).error(function(e){var a;return a=e.status,404===a?(app.caughtError(),s(x(n,t)),i.resolve()):i.reject()}),i.promise}),i=t.map(function(t){return s(C(n,t))}),Promise.all(a,i).then(function(){return s(E(n)).then(function(){return s(I(n))})})}),Promise.all(o)}},d=function(t,e,n,a){return{requestId:t,taskIdGroups:e,path:n,search:a,type:"LOG_INIT"}},s=function(t,e){return{taskIds:t,search:e,type:"LOG_ADD_TASK_GROUP"}},h=function(t,e,n,a){return{taskId:t,offset:e,path:n,exists:a,type:"LOG_TASK_INIT"}},x=function(t,e){return{taskId:e,taskGroupId:t,type:"LOG_TASK_FILE_DOES_NOT_EXIST"}},I=function(t){return{taskGroupId:t,type:"LOG_TASK_GROUP_READY"}},O=function(t,e,n){return{taskGroupId:t,taskId:e,taskHistory:n,type:"LOG_TASK_HISTORY"}},p=function(t,e){return t.taskIds.map(function(t){return e[t]})},q=function(){return function(t,e){var n,a,r;r=e().tasks,n=[];for(a in r)n.push(l(a,r[a.path]).done(function(e){var n;return n=e.offset,t(S(a,n))}));return n}},P=function(){return function(t,e){return e().taskGroups.map(function(e,n){return!e.pendingRequests&&(e.top&&t(E(n)),e.bottom||e.tailing)?t(D(n)):void 0})}},N=function(){return function(t,e){var n,a,r;return n=e(),r=n.tasks,a=n.taskGroups,a.map(function(e,n){return p(e,r).map(function(e){var a,r;return a=e.taskId,r=e.terminated,r?Promise.resolve():t(C(n,a))})})}},C=function(t,e){return function(n,a){return u(e,["taskUpdates"]).done(function(a){return n(O(t,e,a))})}},D=function(t){return function(e,n){var a,r,s,i,o,u,c;return i=n(),c=i.tasks,u=i.taskGroups,a=i.logRequestLength,r=i.maxLines,o=u[t],c=p(o,c),o.pendingRequests?Promise.resolve():(e({taskGroupId:t,type:"LOG_REQUEST_START"}),s=c.map(function(n){var s,i,o,u,c,p;return c=n.taskId,s=n.exists,o=n.maxOffset,u=n.path,i=n.initialDataLoaded,i&&s!==!1?(p=l(c,u,o,a),p.done(function(n){var a,s,i;return a=n.data,i=n.offset,s=n.nextOffset,a.length>0?(s=i+a.length,e(M(t,c,a,i,s,!0,r))):void 0})):Promise.resolve()}),Promise.all(s).then(function(){return e({taskGroupId:t,type:"LOG_REQUEST_END"})}))}},E=function(t){return function(e,n){var r,s,i,o,u,c,d;return o=n(),d=o.tasks,c=o.taskGroups,r=o.logRequestLength,s=o.maxLines,u=c[t],d=p(u,d),a.all(d.map(function(t){var e;return e=t.minOffset,0===e}))?Promise.resolve():u.pendingRequests?Promise.resolve():(e({taskGroupId:t,type:"LOG_REQUEST_START"}),i=d.map(function(n){var a,i,o,u,c,p;return c=n.taskId,a=n.exists,o=n.minOffset,u=n.path,i=n.initialDataLoaded,o>0&&i&&a!==!1?(p=l(c,u,Math.max(o-r,0),Math.min(r,o)),p.done(function(n){var a,r,i;return a=n.data,i=n.offset,r=n.nextOffset,a.length>0?(r=i+a.length,e(M(t,c,a,i,r,!1,s))):void 0})):Promise.resolve()}),Promise.all(i).then(function(){return e({taskGroupId:t,type:"LOG_REQUEST_END"})}))}},M=function(t,e,n,a,r,s,i){return{taskGroupId:t,taskId:e,data:n,offset:a,nextOffset:r,append:s,maxLines:i,type:"LOG_TASK_DATA"}},S=function(t,e){return{taskId:t,filesize:e,type:"LOG_TASK_FILESIZE"}},Y=function(t,e){return function(n,a){return a().taskGroups[t].top!==e&&(n({taskGroupId:t,visible:e,type:"LOG_TASK_GROUP_TOP"}),e)?n(E(t)):void 0}},L=function(t,e,n){return null==n&&(n=!1),function(r,s){var i,o,l,u;return i=s(),l=i.taskGroups,u=i.tasks,o=l[t],o.tailing!==n&&(n===!1||a.all(p(o,u).map(function(t){var e,n;return n=t.maxOffset,e=t.filesize,n>=e})))&&r({taskGroupId:t,tailing:n,type:"LOG_TASK_GROUP_TAILING"}),o.bottom!==e&&(r({taskGroupId:t,visible:e,type:"LOG_TASK_GROUP_BOTTOM"}),e)?r(D(t)):void 0}},i=function(t){return{offset:t,type:"LOG_CLICK_OFFSET_LINK"}},k=function(t){return{color:t,type:"LOG_SELECT_COLOR"}},w=function(t){return function(e,n){var r,s,i,o,l,u,c;return i=n(),l=i.taskGroups,s=i.path,r=i.activeRequest,o=i.search,c=i.viewMode,"custom"!==t&&t!==c?(u=a.flatten(a.pluck(l,"taskIds")),e({viewMode:t,type:"LOG_SWITCH_VIEW_MODE"}),e(f(r.requestId,s,o,u))):void 0}},T=function(t){return function(e,n){var r,s,i,o,l;return o=n(),r=o.activeRequest,i=o.path,l=o.taskGroups,s=o.currentSearch,t!==s?e(f(r.requestId,i,t,a.flatten(a.pluck(l,"taskIds")))):void 0}},R=function(t){return function(e,n){var a,r,i,o,u,c;return r=n(),o=r.search,a=r.path,u=r.tasks,c=r.viewMode,t in u?Object.keys(u).length>1?e({taskId:t,type:"LOG_REMOVE_TASK"}):void 0:("split"===c&&e(s([t],o)),i=a.replace("$TASK_ID",t),l(t,i).done(function(a){var r;return r=a.offset,e(h(t,r,i,!0)),n().taskGroups.map(function(n,a){return A.call(n.taskIds,t)>=0?(e(C(a,t)),e(E(a)).then(function(){return e(I(a))})):void 0})}))}},y=function(t){return function(e,n){var a;return a=n().taskGroups[t].taskIds,e({taskGroupId:t,taskIds:a,type:"LOG_REMOVE_TASK_GROUP"})}},o=function(t){return function(e,n){var a;return a=n().taskGroups[t].taskIds,e({taskGroupId:t,taskIds:a,type:"LOG_EXPAND_TASK_GROUP"})}},b=function(t){return function(e,n){var a;return a=n().taskGroups[t].taskIds,e({taskGroupId:t,taskIds:a,type:"LOG_SCROLL_TO_TOP"}),e(D(t))}},g=function(){return function(t,e){return t({type:"LOG_SCROLL_ALL_TO_TOP"}),e().taskGroups.map(function(e,n){return t(D(n))})}},_=function(t){return function(e,n){var a;return a=n().taskGroups[t].taskIds,e({taskGroupId:t,taskIds:a,type:"LOG_SCROLL_TO_BOTTOM"}),e(E(t))}},v=function(){return function(t,e){return t({type:"LOG_SCROLL_ALL_TO_BOTTOM"}),e().taskGroups.map(function(e,n){return t(E(n))})}},t.exports={initialize:f,initializeUsingActiveTasks:m,taskGroupFetchNext:D,taskGroupFetchPrevious:E,clickPermalink:i,updateGroups:P,updateTaskStatuses:N,updateFilesizes:q,taskGroupTop:Y,taskGroupBottom:L,selectLogColor:k,switchViewMode:w,setCurrentSearch:T,toggleTaskLog:R,scrollToTop:b,scrollAllToTop:g,scrollToBottom:_,scrollAllToBottom:v,removeTaskGroup:y,expandTaskGroup:o}}).call(e,n(1),n(3))},function(t,e,n){(function(e,n){/*! * * Copyright 2009-2012 Kris Kowal under the terms of the MIT * license found at http://github.com/kriskowal/q/raw/master/LICENSE * * With parts by Tyler Close * Copyright 2007-2009 Tyler Close under the terms of the MIT X license found * at http://www.opensource.org/licenses/mit-license.html * Forked at ref_send.js version: 2009-05-11 * * With parts by Mark Miller * Copyright (C) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ !function(e){"use strict";if("function"==typeof bootstrap)bootstrap("promise",e);else{t.exports=e()}}(function(){"use strict";function t(t){return function(){return V.apply(t,arguments)}}function a(t){return t===Object(t)}function r(t){return"[object StopIteration]"===rt(t)||t instanceof G}function s(t,e){if(B&&e.stack&&"object"==typeof t&&null!==t&&t.stack&&-1===t.stack.indexOf(st)){for(var n=[],a=e;a;a=a.source)a.stack&&n.unshift(a.stack);n.unshift(t.stack);var r=n.join("\n"+st+"\n");t.stack=i(r)}}function i(t){for(var e=t.split("\n"),n=[],a=0;a=$&&ct>=a}function c(){if(B)try{throw new Error}catch(t){var e=t.stack.split("\n"),n=e[0].indexOf("@")>0?e[1]:e[2],a=l(n);if(!a)return;return W=a[0],a[1]}}function p(t,e,n){return function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(e+" is deprecated, use "+n+" instead.",new Error("").stack),t.apply(t,arguments)}}function d(t){return t instanceof y?t:b(t)?E(t):D(t)}function h(){function t(t){e=t,s.source=t,Z(n,function(e,n){d.nextTick(function(){t.promiseDispatch.apply(t,n)})},void 0),n=void 0,a=void 0}var e,n=[],a=[],r=et(h.prototype),s=et(y.prototype);if(s.promiseDispatch=function(t,r,s){var i=Q(arguments);n?(n.push(i),"when"===r&&s[1]&&a.push(s[1])):d.nextTick(function(){e.promiseDispatch.apply(e,i)})},s.valueOf=function(){if(n)return s;var t=g(e);return _(t)&&(e=t),t},s.inspect=function(){return e?e.inspect():{state:"pending"}},d.longStackSupport&&B)try{throw new Error}catch(i){s.stack=i.stack.substring(i.stack.indexOf("\n")+1)}return r.promise=s,r.resolve=function(n){e||t(d(n))},r.fulfill=function(n){e||t(D(n))},r.reject=function(n){e||t(L(n))},r.notify=function(t){e||Z(a,function(e,n){d.nextTick(function(){n(t)})},void 0)},r}function f(t){if("function"!=typeof t)throw new TypeError("resolver must be a function.");var e=h();try{t(e.resolve,e.reject,e.notify)}catch(n){e.reject(n)}return e.promise}function m(t){return f(function(e,n){for(var a=0,r=t.length;r>a;a++)d(t[a]).then(e,n)})}function y(t,e,n){void 0===e&&(e=function(t){return L(new Error("Promise does not support operation: "+t))}),void 0===n&&(n=function(){return{state:"unknown"}});var a=et(y.prototype);if(a.promiseDispatch=function(n,r,s){var i;try{i=t[r]?t[r].apply(a,s):e.call(a,r,s)}catch(o){i=L(o)}n&&n(i)},a.inspect=n,n){var r=n();"rejected"===r.state&&(a.exception=r.reason),a.valueOf=function(){var t=n();return"pending"===t.state||"rejected"===t.state?a:t.value}}return a}function v(t,e,n,a){return d(t).then(e,n,a)}function g(t){if(_(t)){var e=t.inspect();if("fulfilled"===e.state)return e.value}return t}function _(t){return t instanceof y}function b(t){return a(t)&&"function"==typeof t.then}function k(t){return _(t)&&"pending"===t.inspect().state}function T(t){return!_(t)||"fulfilled"===t.inspect().state}function w(t){return _(t)&&"rejected"===t.inspect().state}function M(){it.length=0,ot.length=0,ut||(ut=!0)}function x(t,n){ut&&("object"==typeof e&&"function"==typeof e.emit&&d.nextTick.runAfter(function(){-1!==X(ot,t)&&(e.emit("unhandledRejection",n,t),lt.push(t))}),ot.push(t),n&&"undefined"!=typeof n.stack?it.push(n.stack):it.push("(no stack) "+n))}function S(t){if(ut){var n=X(ot,t);-1!==n&&("object"==typeof e&&"function"==typeof e.emit&&d.nextTick.runAfter(function(){var a=X(lt,t);-1!==a&&(e.emit("rejectionHandled",it[n],t),lt.splice(a,1))}),ot.splice(n,1),it.splice(n,1))}}function L(t){var e=y({when:function(e){return e&&S(this),e?e(t):this}},function(){return this},function(){return{state:"rejected",reason:t}});return x(e,t),e}function D(t){return y({when:function(){return t},get:function(e){return t[e]},set:function(e,n){t[e]=n},"delete":function(e){delete t[e]},post:function(e,n){return null===e||void 0===e?t.apply(void 0,n):t[e].apply(t,n)},apply:function(e,n){return t.apply(e,n)},keys:function(){return at(t)}},void 0,function(){return{state:"fulfilled",value:t}})}function E(t){var e=h();return d.nextTick(function(){try{t.then(e.resolve,e.reject,e.notify)}catch(n){e.reject(n)}}),e.promise}function I(t){return y({isDef:function(){}},function(e,n){return C(t,e,n)},function(){return d(t).inspect()})}function Y(t,e,n){return d(t).spread(e,n)}function O(t){return function(){function e(t,e){var i;if("undefined"==typeof StopIteration){try{i=n[t](e)}catch(o){return L(o)}return i.done?d(i.value):v(i.value,a,s)}try{i=n[t](e)}catch(o){return r(o)?d(o.value):L(o)}return v(i,a,s)}var n=t.apply(this,arguments),a=e.bind(e,"next"),s=e.bind(e,"throw");return a()}}function R(t){d.done(d.async(t)())}function q(t){throw new G(t)}function P(t){return function(){return Y([this,N(arguments)],function(e,n){return t.apply(e,n)})}}function C(t,e,n){return d(t).dispatch(e,n)}function N(t){return v(t,function(t){var e=0,n=h();return Z(t,function(a,r,s){var i;_(r)&&"fulfilled"===(i=r.inspect()).state?t[s]=i.value:(++e,v(r,function(a){t[s]=a,0===--e&&n.resolve(t)},n.reject,function(t){n.notify({index:s,value:t})}))},void 0),0===e&&n.resolve(t),n.promise})}function A(t){if(0===t.length)return d.resolve();var e=d.defer(),n=0;return Z(t,function(a,r,s){function i(t){e.resolve(t)}function o(){n--,0===n&&e.reject(new Error("Can't get fulfillment value from any promise, all promises were rejected."))}function l(t){e.notify({index:s,value:t})}var u=t[s];n++,v(u,i,o,l)},void 0),e.promise}function F(t){return v(t,function(t){return t=tt(t,d),v(N(tt(t,function(t){return v(t,J,J)})),function(){return t})})}function j(t){return d(t).allSettled()}function z(t,e){return d(t).then(void 0,void 0,e)}function H(t,e){return d(t).nodeify(e)}var B=!1;try{throw new Error}catch(U){B=!!U.stack}var W,G,$=c(),J=function(){},K=function(){function t(){for(var t,e;r.next;)r=r.next,t=r.task,r.task=void 0,e=r.domain,e&&(r.domain=void 0,e.enter()),a(t,e);for(;u.length;)t=u.pop(),a(t);i=!1}function a(e,n){try{e()}catch(a){if(l)throw n&&n.exit(),setTimeout(t,0),n&&n.enter(),a;setTimeout(function(){throw a},0)}n&&n.exit()}var r={task:void 0,next:null},s=r,i=!1,o=void 0,l=!1,u=[];if(K=function(t){s=s.next={task:t,domain:l&&e.domain,next:null},i||(i=!0,o())},"object"==typeof e&&"[object process]"===e.toString()&&e.nextTick)l=!0,o=function(){e.nextTick(t)};else if("function"==typeof n)o="undefined"!=typeof window?n.bind(window,t):function(){n(t)};else if("undefined"!=typeof MessageChannel){var c=new MessageChannel;c.port1.onmessage=function(){o=p,c.port1.onmessage=t,t()};var p=function(){c.port2.postMessage(0)};o=function(){setTimeout(t,0),p()}}else o=function(){setTimeout(t,0)};return K.runAfter=function(t){u.push(t),i||(i=!0,o())},K}(),V=Function.call,Q=t(Array.prototype.slice),Z=t(Array.prototype.reduce||function(t,e){var n=0,a=this.length;if(1===arguments.length)for(;;){if(n in this){e=this[n++];break}if(++n>=a)throw new TypeError}for(;a>n;n++)n in this&&(e=t(e,this[n],n));return e}),X=t(Array.prototype.indexOf||function(t){for(var e=0;e2?t.resolve(Q(arguments,1)):t.resolve(n)}},d.Promise=f,d.promise=f,f.race=m,f.all=N,f.reject=L,f.resolve=d,d.passByCopy=function(t){return t},y.prototype.passByCopy=function(){return this},d.join=function(t,e){return d(t).join(e)},y.prototype.join=function(t){return d([this,t]).spread(function(t,e){if(t===e)return t;throw new Error("Can't join: not the same: "+t+" "+e)})},d.race=m,y.prototype.race=function(){return this.then(d.race)},d.makePromise=y,y.prototype.toString=function(){return"[object Promise]"},y.prototype.then=function(t,e,n){function a(e){try{return"function"==typeof t?t(e):e}catch(n){return L(n)}}function r(t){if("function"==typeof e){s(t,o);try{return e(t)}catch(n){return L(n)}}return L(t)}function i(t){return"function"==typeof n?n(t):t}var o=this,l=h(),u=!1;return d.nextTick(function(){o.promiseDispatch(function(t){u||(u=!0,l.resolve(a(t)))},"when",[function(t){u||(u=!0,l.resolve(r(t)))}])}),o.promiseDispatch(void 0,"when",[void 0,function(t){var e,n=!1;try{e=i(t)}catch(a){if(n=!0,!d.onerror)throw a;d.onerror(a)}n||l.notify(e)}]),l.promise},d.tap=function(t,e){return d(t).tap(e)},y.prototype.tap=function(t){return t=d(t),this.then(function(e){return t.fcall(e).thenResolve(e)})},d.when=v,y.prototype.thenResolve=function(t){return this.then(function(){return t})},d.thenResolve=function(t,e){return d(t).thenResolve(e)},y.prototype.thenReject=function(t){return this.then(function(){throw t})},d.thenReject=function(t,e){return d(t).thenReject(e)},d.nearer=g,d.isPromise=_,d.isPromiseAlike=b,d.isPending=k,y.prototype.isPending=function(){return"pending"===this.inspect().state},d.isFulfilled=T,y.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},d.isRejected=w,y.prototype.isRejected=function(){return"rejected"===this.inspect().state};var it=[],ot=[],lt=[],ut=!0;d.resetUnhandledRejections=M,d.getUnhandledReasons=function(){return it.slice()},d.stopUnhandledRejectionTracking=function(){M(),ut=!1},M(),d.reject=L,d.fulfill=D,d.master=I,d.spread=Y,y.prototype.spread=function(t,e){return this.all().then(function(e){return t.apply(void 0,e)},e)},d.async=O,d.spawn=R,d["return"]=q,d.promised=P,d.dispatch=C,y.prototype.dispatch=function(t,e){var n=this,a=h();return d.nextTick(function(){n.promiseDispatch(a.resolve,t,e)}),a.promise},d.get=function(t,e){return d(t).dispatch("get",[e])},y.prototype.get=function(t){return this.dispatch("get",[t])},d.set=function(t,e,n){return d(t).dispatch("set",[e,n])},y.prototype.set=function(t,e){return this.dispatch("set",[t,e])},d.del=d["delete"]=function(t,e){return d(t).dispatch("delete",[e])},y.prototype.del=y.prototype["delete"]=function(t){return this.dispatch("delete",[t])},d.mapply=d.post=function(t,e,n){return d(t).dispatch("post",[e,n])},y.prototype.mapply=y.prototype.post=function(t,e){return this.dispatch("post",[t,e])},d.send=d.mcall=d.invoke=function(t,e){return d(t).dispatch("post",[e,Q(arguments,2)])},y.prototype.send=y.prototype.mcall=y.prototype.invoke=function(t){return this.dispatch("post",[t,Q(arguments,1)])},d.fapply=function(t,e){return d(t).dispatch("apply",[void 0,e])},y.prototype.fapply=function(t){return this.dispatch("apply",[void 0,t])},d["try"]=d.fcall=function(t){return d(t).dispatch("apply",[void 0,Q(arguments,1)])},y.prototype.fcall=function(){return this.dispatch("apply",[void 0,Q(arguments)])},d.fbind=function(t){var e=d(t),n=Q(arguments,1);return function(){return e.dispatch("apply",[this,n.concat(Q(arguments))])}},y.prototype.fbind=function(){var t=this,e=Q(arguments);return function(){return t.dispatch("apply",[this,e.concat(Q(arguments))])}},d.keys=function(t){return d(t).dispatch("keys",[])},y.prototype.keys=function(){return this.dispatch("keys",[])},d.all=N,y.prototype.all=function(){return N(this)},d.any=A,y.prototype.any=function(){return A(this)},d.allResolved=p(F,"allResolved","allSettled"),y.prototype.allResolved=function(){return F(this)},d.allSettled=j,y.prototype.allSettled=function(){return this.then(function(t){return N(tt(t,function(t){function e(){return t.inspect()}return t=d(t),t.then(e,e)}))})},d.fail=d["catch"]=function(t,e){return d(t).then(void 0,e)},y.prototype.fail=y.prototype["catch"]=function(t){return this.then(void 0,t)},d.progress=z,y.prototype.progress=function(t){return this.then(void 0,void 0,t)},d.fin=d["finally"]=function(t,e){return d(t)["finally"](e)},y.prototype.fin=y.prototype["finally"]=function(t){return t=d(t),this.then(function(e){return t.fcall().then(function(){return e})},function(e){return t.fcall().then(function(){throw e})})},d.done=function(t,e,n,a){return d(t).done(e,n,a)},y.prototype.done=function(t,n,a){var r=function(t){d.nextTick(function(){if(s(t,i),!d.onerror)throw t;d.onerror(t)})},i=t||n||a?this.then(t,n,a):this;"object"==typeof e&&e&&e.domain&&(r=e.domain.bind(r)),i.then(void 0,r)},d.timeout=function(t,e,n){return d(t).timeout(e,n)},y.prototype.timeout=function(t,e){var n=h(),a=setTimeout(function(){e&&"string"!=typeof e||(e=new Error(e||"Timed out after "+t+" ms"),e.code="ETIMEDOUT"),n.reject(e)},t);return this.then(function(t){clearTimeout(a),n.resolve(t)},function(t){clearTimeout(a),n.reject(t)},n.notify),n.promise},d.delay=function(t,e){return void 0===e&&(e=t,t=void 0),d(t).delay(e)},y.prototype.delay=function(t){return this.then(function(e){var n=h();return setTimeout(function(){n.resolve(e)},t),n.promise})},d.nfapply=function(t,e){return d(t).nfapply(e)},y.prototype.nfapply=function(t){var e=h(),n=Q(t);return n.push(e.makeNodeResolver()),this.fapply(n).fail(e.reject),e.promise},d.nfcall=function(t){var e=Q(arguments,1);return d(t).nfapply(e)},y.prototype.nfcall=function(){var t=Q(arguments),e=h();return t.push(e.makeNodeResolver()),this.fapply(t).fail(e.reject),e.promise},d.nfbind=d.denodeify=function(t){var e=Q(arguments,1);return function(){var n=e.concat(Q(arguments)),a=h();return n.push(a.makeNodeResolver()),d(t).fapply(n).fail(a.reject),a.promise}},y.prototype.nfbind=y.prototype.denodeify=function(){var t=Q(arguments);return t.unshift(this),d.denodeify.apply(void 0,t)},d.nbind=function(t,e){var n=Q(arguments,2);return function(){function a(){return t.apply(e,arguments)}var r=n.concat(Q(arguments)),s=h();return r.push(s.makeNodeResolver()),d(a).fapply(r).fail(s.reject),s.promise}},y.prototype.nbind=function(){var t=Q(arguments,0);return t.unshift(this),d.nbind.apply(void 0,t)},d.nmapply=d.npost=function(t,e,n){return d(t).npost(e,n)},y.prototype.nmapply=y.prototype.npost=function(t,e){var n=Q(e||[]),a=h();return n.push(a.makeNodeResolver()),this.dispatch("post",[t,n]).fail(a.reject),a.promise},d.nsend=d.nmcall=d.ninvoke=function(t,e){var n=Q(arguments,2),a=h();return n.push(a.makeNodeResolver()),d(t).dispatch("post",[e,n]).fail(a.reject),a.promise},y.prototype.nsend=y.prototype.nmcall=y.prototype.ninvoke=function(t){var e=Q(arguments,1),n=h();return e.push(n.makeNodeResolver()),this.dispatch("post",[t,e]).fail(n.reject),n.promise},d.nodeify=H,y.prototype.nodeify=function(t){return t?void this.then(function(e){d.nextTick(function(){t(null,e)})},function(e){d.nextTick(function(){t(e)})}):this},d.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var ct=c();return d})}).call(e,n(189),n(648).setImmediate)},function(t,e,n){(function(t,a){function r(t,e){this._id=t,this._clearFn=e}var s=n(189).nextTick,i=Function.prototype.apply,o=Array.prototype.slice,l={},u=0;e.setTimeout=function(){return new r(i.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new r(i.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},e.setImmediate="function"==typeof t?t:function(t){var n=u++,a=arguments.length<2?!1:o.call(arguments,1);return l[n]=!0,s(function(){l[n]&&(a?t.apply(null,a):t.call(null),e.clearImmediate(n))}),n},e.clearImmediate="function"==typeof a?a:function(t){delete l[t]}}).call(e,n(648).setImmediate,n(648).clearImmediate)},function(t,e,n){(function(e){var n,a;n=function(t,n){var a;return null==n&&(n="active"),a={property:"taskId"},e.ajax({url:config.apiRoot+"/history/request/"+t+"/tasks/"+n+"?"+e.param(a)})},a=function(t){return function(e){return n(t).done(function(t){return e({tasks:t,type:"REQUEST_ACTIVE_TASKS"})})}},t.exports={updateActiveTasks:a,fetchTasksForRequest:n}}).call(e,n(1))},function(t,e,n){(function(e){var a,r,s,i,o,l,u,c=function(t,e){return function(){return t.apply(e,arguments)}},p=function(t,e){function n(){this.constructor=t}for(var a in e)d.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},d={}.hasOwnProperty;a=n(294),r=n(446),i=n(620).connect,u=n(646).setCurrentSearch,s=function(t){function n(t){this.handleSearchKeyDown=c(this.handleSearchKeyDown,this),this.toggleSearchDropdown=c(this.toggleSearchDropdown,this),this.handleSearchUpdate=c(this.handleSearchUpdate,this),this.handleSearchToggle=c(this.handleSearchToggle,this),n.__super__.constructor.call(this,t),this.state={searchValue:t.search}}return p(n,t),n.propTypes={search:a.PropTypes.string.isRequired},n.prototype.handleSearchToggle=function(){return r.findDOMNode(this.refs.searchInput).focus()},n.prototype.handleSearchUpdate=function(){return this.props.setCurrentSearch(this.state.searchValue)},n.prototype.toggleSearchDropdown=function(){return e(r.findDOMNode(this.refs.searchButton)).dropdown("toggle")},n.prototype.handleSearchKeyDown=function(t){return 13===t.keyCode?(this.handleSearchUpdate(),this.toggleSearchDropdown()):27===t.keyCode?(this.setState({searchValue:this.props.search}),this.toggleSearchDropdown()):void 0},n.prototype.render=function(){return a.createElement("div",{className:"btn-group",title:"Grep"},a.createElement("button",{ref:"searchButton",id:"searchDDToggle",type:"button",className:"btn btn-"+(""===this.props.search?"default":"info")+" btn-sm dropdown-toggle","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",onClick:this.handleSearchToggle},a.createElement("span",{className:"glyphicon glyphicon-search"})," ",a.createElement("span",{className:"caret"})),a.createElement("ul",{className:"dropdown-menu dropdown-menu-right"},a.createElement("li",null,a.createElement("div",{className:"input-group log-search"},a.createElement("input",{ref:"searchInput",type:"text",className:"form-control",placeholder:"Grep Logs",value:this.state.searchValue,onKeyDown:this.handleSearchKeyDown,onChange:function(t){return function(e){return t.setState({searchValue:e.target.value})}}(this)}),a.createElement("span",{className:"input-group-btn"},a.createElement("button",{className:"btn btn-info no-margin",type:"button",onClick:this.handleSearchUpdate},a.createElement("span",{className:"glyphicon glyphicon-search"})))))))},n}(a.Component),l=function(t){return{search:t.search}},o={setCurrentSearch:u},t.exports=i(l,o)(s)}).call(e,n(1))},function(t,e,n){(function(e){var a,r,s,i,o,l,u,c,p,d=function(t,e){function n(){this.constructor=t}for(var a in e)h.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},h={}.hasOwnProperty,f=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};r=n(294),a=n(450),i=n(553),p=n(646).toggleTaskLog,l=n(2).getHostFromTaskId,o=n(620).connect,s=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return d(n,t),n.prototype.getTaskListTooltip=function(t){return r.createElement(i,{id:t.taskId.id},"Host: ",t.taskId.host)},n.prototype.renderListItems=function(){var t;return this.props.activeTasks&&this.props.taskIds?(t=e.sortBy(this.props.activeTasks,function(t){return function(t){return t.taskId.instanceNo}}(this)).map(function(t){return function(e,n){var s;return r.createElement("li",{key:n},r.createElement(a,{placement:"left",overlay:t.getTaskListTooltip(e)},r.createElement("a",{onClick:function(){return t.props.toggleTaskLog(e.taskId.id)}},r.createElement("span",{className:"glyphicon glyphicon-"+(s=e.taskId.id,f.call(t.props.taskIds,s)>=0?"check":"unchecked")}),r.createElement("span",null," Instance ",e.taskId.instanceNo))))}}(this)),t.length>0?t:r.createElement("li",null,r.createElement("a",{className:"disabled"},"No running instances"))):r.createElement("li",null,r.createElement("a",{className:"disabled"},"Loading active tasks..."))},n.prototype.render=function(){return r.createElement("div",{className:"btn-group",title:"Select Instances"},r.createElement("button",{type:"button",className:"btn btn-default btn-sm dropdown-toggle","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},r.createElement("span",{className:"glyphicon glyphicon-tasks"})," ",r.createElement("span",{className:"caret"})),r.createElement("ul",{className:"dropdown-menu dropdown-menu-right"},this.renderListItems()))},n}(r.Component),c=function(t){return{activeTasks:t.activeRequest.activeTasks,taskIds:e.flatten(e.pluck(t.taskGroups,"taskIds"))}},u={toggleTaskLog:p},t.exports=o(c,u)(s)}).call(e,n(3))},function(t,e,n){(function(e){var a,r,s,i,o,l,u,c,p,d=function(t,e){function n(){this.constructor=t}for(var a in e)h.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},h={}.hasOwnProperty;i=n(294),l=n(653),s=n(655),r=n(658),a=n(659),u=n(524),c=n(620).connect,o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,t),e.propTypes={taskGroupId:i.PropTypes.number.isRequired,taskGroupContainerCount:i.PropTypes.number.isRequired,initialDataLoaded:i.PropTypes.bool.isRequired,fileExists:i.PropTypes.bool.isRequired,terminated:i.PropTypes.bool.isRequired},e.prototype.getContainerWidth=function(){return 12/this.props.taskGroupContainerCount},e.prototype.renderLogLines=function(){return this.props.logDataLoaded?i.createElement(s,{taskGroupId:this.props.taskGroupId}):this.props.initialDataLoaded&&!this.props.fileExists?i.createElement("div",{className:"tail-contents"},i.createElement(a,{fileName:this.props.path})):i.createElement(r,{centered:!0},"Loading logs...")},e.prototype.render=function(){var t;return t="col-md-"+this.getContainerWidth()+" tail-column",i.createElement("div",{className:t},i.createElement(l,{taskGroupId:this.props.taskGroupId}),this.renderLogLines())},e}(i.Component),p=function(t,n){var a,r;return n.taskGroupId in t.taskGroups?(a=t.taskGroups[n.taskGroupId],r=a.taskIds.map(function(e){return t.tasks[e]}),{initialDataLoaded:e.all(e.pluck(r,"initialDataLoaded")),logDataLoaded:e.all(e.pluck(r,"logDataLoaded")),fileExists:e.any(e.pluck(r,"exists")),terminated:e.all(e.pluck(r,"terminated")),path:t.path}):{initialDataLoaded:!1,fileExists:!1,logDataLoaded:!1,terminated:!1}},t.exports=c(p)(o)}).call(e,n(3))},function(t,e,n){var a,r,s,i,o,l,u,c,p,d,h,f,m,y,v=function(t,e){function n(){this.constructor=t}for(var a in e)g.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},g={}.hasOwnProperty;r=n(294),i=n(654),a=n(450),o=n(553),c=n(2).getTaskDataFromTaskId,l=n(620).connect,h=n(646),f=h.removeTaskGroup,u=h.expandTaskGroup,y=h.scrollToTop,m=h.scrollToBottom,s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return v(e,t),e.propTypes={taskGroupId:r.PropTypes.number.isRequired,tasks:r.PropTypes.array.isRequired},e.prototype.toggleLegend=function(){},e.prototype.getInstanceNoToolTip=function(t){return r.createElement(o,{id:t.id},"Deploy ID: ",t.deployId,r.createElement("br",null),"Host: ",t.host)},e.prototype.renderInstanceInfo=function(){var t;return this.props.tasks.length>1?r.createElement("span",{className:"instance-link"},"Viewing Instances ",this.props.tasks.map(function(t){var e;return e=t.taskId,c(e).instanceNo}).join(", ")):this.props.tasks.length>0?(t=c(this.props.tasks[0].taskId),r.createElement("span",null,r.createElement("div",{className:"width-constrained"},r.createElement(a,{placement:"bottom",overlay:this.getInstanceNoToolTip(t)},r.createElement("a",{className:"instance-link",href:config.appRoot+"/task/"+this.props.tasks[0].taskId},"Instance ",t.instanceNo))),r.createElement(i,{status:this.props.tasks[0].lastTaskStatus}))):r.createElement("div",{className:"width-constrained"})},e.prototype.renderTaskLegend=function(){return this.props.tasks.length>1?r.createElement("span",{className:"right-buttons"},r.createElement("a",{className:"action-link",onClick:this.toggleLegend},r.createElement("span",{className:"glyphicon glyphicon-menu-hamburger"}))):void 0},e.prototype.renderClose=function(){return this.props.taskGroupsCount>1?r.createElement("a",{className:"action-link",onClick:function(t){return function(){return t.props.removeTaskGroup(t.props.taskGroupId)}}(this),title:"Close Task"},r.createElement("span",{className:"glyphicon glyphicon-remove"})):void 0},e.prototype.renderExpand=function(){return this.props.taskGroupsCount>1?r.createElement("a",{className:"action-link",onClick:function(t){return function(){return t.props.expandTaskGroup(t.props.taskGroupId)}}(this),title:"Show only this Task"},r.createElement("span",{className:"glyphicon glyphicon-resize-full"})):void 0},e.prototype.render=function(){return r.createElement("div",{className:"individual-header"},this.renderClose(),this.renderExpand(),this.renderInstanceInfo(),this.renderTaskLegend(),r.createElement("span",{className:"right-buttons"},r.createElement("a",{className:"action-link",onClick:function(t){return function(){return t.props.scrollToBottom(t.props.taskGroupId)}}(this),title:"Scroll to Bottom"},r.createElement("span",{className:"glyphicon glyphicon-chevron-down"})),r.createElement("a",{className:"action-link",onClick:function(t){return function(){return t.props.scrollToTop(t.props.taskGroupId)}}(this),title:"Scroll to Top"},r.createElement("span",{className:"glyphicon glyphicon-chevron-up"}))))},e}(r.Component),d=function(t,e){return e.taskGroupId in t.taskGroups?{taskGroupsCount:t.taskGroups.length,tasks:t.taskGroups[e.taskGroupId].taskIds.map(function(e){return t.tasks[e]})}:{taskGroupsCount:t.taskGroups.length,tasks:[]}},p={scrollToTop:y,scrollToBottom:m,removeTaskGroup:f,expandTaskGroup:u},t.exports=l(d,p)(s)},function(t,e,n){var a,r,s,i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty,l=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};a=n(294),s=n(2),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return i(e,t),e.propTypes={status:a.PropTypes.string},e.prototype.getClassName=function(){var t;return t=this.props.status,l.call(s.TERMINAL_TASK_STATES,t)>=0?"bg-danger":"bg-info running"},e.prototype.render=function(){return this.props.status?a.createElement("div",{className:"status"},a.createElement("div",{className:"indicator "+this.getClassName()}),this.props.status.toLowerCase().replace("_"," ")):a.createElement("div",null)},e}(a.Component),t.exports=r},function(t,e,n){(function(e){var a,r,s,i,o,l,u,c,p,d,h,f=function(t,e){return function(){return t.apply(e,arguments)}},m=function(t,e){function n(){this.constructor=t}for(var a in e)y.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},y={}.hasOwnProperty;i=n(294),r=n(656),a=n(657),s=n(610),o=n(620).connect,c=n(646),h=c.taskGroupTop,d=c.taskGroupBottom,p=function(t){var e,n,a,r;for(r=0,e=0,n=t.length;n>e;e++)a=t[e],r+=a;return r},s=function(t){function e(){return this.handleScroll=f(this.handleScroll,this),e.__super__.constructor.apply(this,arguments)}return m(e,t),e.propTypes={taskGroupTop:i.PropTypes.func.isRequired,taskGroupBottom:i.PropTypes.func.isRequired,taskGroupId:i.PropTypes.number.isRequired,logLines:i.PropTypes.array.isRequired,initialDataLoaded:i.PropTypes.bool.isRequired,reachedStartOfFile:i.PropTypes.bool.isRequired,reachedEndOfFile:i.PropTypes.bool.isRequired,bytesRemainingBefore:i.PropTypes.number.isRequired,bytesRemainingAfter:i.PropTypes.number.isRequired,activeColor:i.PropTypes.string.isRequired},e.prototype.componentDidMount=function(){return window.addEventListener("resize",this.handleScroll)},e.prototype.componentWillUnmount=function(){return window.removeEventListener("resize",this.handleScroll)},e.prototype.componentDidUpdate=function(t,e){return t.updatedAt!==this.props.updatedAt?this.props.tailing?this.refs.tailContents.scrollTop=this.refs.tailContents.scrollHeight:this.props.prependedLineCount>0||this.props.linesRemovedFromTop>0?this.refs.tailContents.scrollTop+=20*(this.props.prependedLineCount-this.props.linesRemovedFromTop):this.handleScroll():void 0},e.prototype.renderLoadingPrevious=function(){return this.props.initialDataLoaded&&!this.props.reachedStartOfFile?this.props.search?i.createElement("div",null,"Searching for '",this.props.search,"'... (",a.filesize(this.props.bytesRemainingBefore)," remaining)"):i.createElement("div",null,"Loading previous... (",a.filesize(this.props.bytesRemainingBefore)," remaining)"):void 0},e.prototype.renderLogLines=function(){return this.props.logLines.map(function(t){return function(e){var n,a,s,o;return n=e.data,a=e.offset,s=e.taskId,o=e.timestamp,i.createElement(r,{content:n,key:s+"_"+a,offset:a,taskId:s,timestamp:o,isHighlighted:a===t.props.initialOffset,color:t.props.colorMap[s]})}}(this))},e.prototype.renderLoadingMore=function(){return this.props.terminated?null:this.props.initialDataLoaded?this.props.reachedEndOfFile?this.props.search?i.createElement("div",null,"Tailing for '",this.props.search,"'..."):i.createElement("div",null,"Tailing..."):this.props.search?i.createElement("div",null,"Searching for '",this.props.search,"'... (",a.filesize(this.props.bytesRemainingAfter)," remaining)"):i.createElement("div",null,"Loading more... (",a.filesize(this.props.bytesRemainingAfter)," remaining)"):void 0},e.prototype.handleScroll=function(){var t,e,n,a;return e=this.refs.tailContents,a=e.scrollTop,n=e.scrollHeight,t=e.clientHeight,t>a?this.props.taskGroupTop(this.props.taskGroupId,!0):this.props.taskGroupTop(this.props.taskGroupId,!1),a+t>n-t?this.props.taskGroupBottom(this.props.taskGroupId,!0,a+t>n-20):this.props.taskGroupBottom(this.props.taskGroupId,!1)},e.prototype.render=function(){return i.createElement("div",{className:"contents-container"},i.createElement("div",{className:"tail-contents "+this.props.activeColor,ref:"tailContents",onScroll:this.handleScroll},this.renderLoadingPrevious(),this.renderLogLines(),this.renderLoadingMore()))},e}(i.Component),u=function(t,n){var a,r,s,i,o,l,u,c;if(l=t.taskGroups[n.taskGroupId],c=l.taskIds.map(function(e){return t.tasks[e]}),a={},l.taskIds.length>1)for(r=0,o=l.taskIds,s=0,i=o.length;i>s;s++)u=o[s],a[u]="hsla("+360/l.taskIds.length*r+", 100%, 50%, 0.1)",r++;return{logLines:l.logLines,updatedAt:l.updatedAt,tailing:l.tailing,prependedLineCount:l.prependedLineCount,linesRemovedFromTop:l.linesRemovedFromTop,activeColor:t.activeColor,top:l.top,bottom:l.bottom,initialDataLoaded:e.all(e.pluck(c,"initialDataLoaded")),terminated:e.all(e.pluck(c,"terminated")),reachedStartOfFile:e.all(c.map(function(t){var e;return e=t.minOffset,0===e})),reachedEndOfFile:e.all(c.map(function(t){var e,n;return n=t.maxOffset,e=t.filesize,n>=e})),bytesRemainingBefore:p(e.pluck(c,"minOffset")),bytesRemainingAfter:p(c.map(function(t){var e,n;return e=t.filesize,n=t.maxOffset,Math.max(e-n,0)})),colorMap:a,search:t.search}},l={taskGroupTop:h,taskGroupBottom:d},t.exports=o(u,l)(s)}).call(e,n(3))},function(t,e,n){(function(e){ var a,r,s,i,o,l,u,c=function(t,e){function n(){this.constructor=t}for(var a in e)p.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},p={}.hasOwnProperty;r=n(294),s=n(524),o=n(620).connect,i=n(646).clickPermalink,a=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return c(n,t),n.propTypes={offset:r.PropTypes.number.isRequired,isHighlighted:r.PropTypes.bool.isRequired,content:r.PropTypes.string.isRequired,taskId:r.PropTypes.string.isRequired,showDebugInfo:r.PropTypes.bool,color:r.PropTypes.string,search:r.PropTypes.string,clickPermalink:r.PropTypes.func.isRequired},n.prototype.highlightContent=function(t){var n,a,i,o,l,u,c,p,d,h;if(p=this.props.search,!p||e.isEmpty(p))return this.props.showDebugInfo?this.props.offset+" | "+this.props.timestamp+" | "+t:t;for(c=RegExp(p,"g"),u=[];l=c.exec(t);)u.push(l);for(h=[],i=0,n=0,o=u.length;o>n;n++)l=u[n],a={text:t.slice(i,l.index),match:!1},d={text:t.slice(l.index,l.index+l[0].length),match:!0},h.push(a,d),i=l.index+l[0].length;return h.push({text:t.slice(i),match:!1}),h.map(function(t){return function(t,e){var n;return n=s({"search-match":t.match}),r.createElement("span",{key:e,className:n},t.text)}}(this))},n.prototype.render=function(){var t;return t=s({line:!0,highlightLine:this.props.isHighlighted}),r.createElement("div",{className:t,style:{backgroundColor:this.props.color}},r.createElement("a",{href:config.appRoot+"/task/"+this.props.taskId+"/tail/"+this.props.path+"#"+this.props.offset,className:"offset-link",onClick:function(t){return function(){return t.props.clickPermalink(t.props.offset)}}(this)},r.createElement("div",{className:"pre-line"},r.createElement("span",{className:"glyphicon glyphicon-link","data-offset":""+this.props.offset}))),r.createElement("span",null,this.highlightContent(this.props.content)))},n}(r.Component),u=function(t,e){return{search:t.search,showDebugInfo:t.showDebugInfo,path:t.path}},l={clickPermalink:i},t.exports=o(u,l)(a)}).call(e,n(3))},function(t,e,n){var a,r,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};!function(n,i){"object"===s(e)?t.exports=i():(a=[],r=function(){return n.Humanize=i()}.apply(e,a),!(void 0!==r&&(t.exports=r)))}(this,function(){var t=[{name:"second",value:1e3},{name:"minute",value:6e4},{name:"hour",value:36e5},{name:"day",value:864e5},{name:"week",value:6048e5}],e={P:Math.pow(2,50),T:Math.pow(2,40),G:Math.pow(2,30),M:Math.pow(2,20)},n=function(t){return"undefined"!=typeof t&&null!==t},a=function(t){return t!==t},r=function(t){return isFinite(t)&&!a(parseFloat(t))},i=function(t){var e=Object.prototype.toString.call(t);return"[object Array]"===e},o={intword:function(t,e){var n=arguments.length<=2||void 0===arguments[2]?2:arguments[2];return o.compactInteger(t,n)},compactInteger:function(t){var e=arguments.length<=1||void 0===arguments[1]?0:arguments[1];e=Math.max(e,0);var n=parseInt(t,10),a=0>n?"-":"",r=Math.abs(n),s=String(r),i=s.length,o=[13,10,7,4],l=["T","B","M","k"];if(1e3>r)return""+a+s;if(i>o[0]+3)return n.toExponential(e).replace("e+","x10^");for(var u=void 0,c=0;c=p){u=p;break}}var d=i-u+1,h=s.split(""),f=h.slice(0,d),m=h.slice(d,d+e+1),y=f.join(""),v=m.join("");v.length=r)return o.formatNumber(t/r,n,"")+" "+a+"B"}return t>=1024?o.formatNumber(t/1024,0)+" KB":o.formatNumber(t,0)+o.pluralize(t," byte")},filesize:function(){return o.fileSize.apply(o,arguments)},formatNumber:function(t){var e=arguments.length<=1||void 0===arguments[1]?0:arguments[1],n=arguments.length<=2||void 0===arguments[2]?",":arguments[2],a=arguments.length<=3||void 0===arguments[3]?".":arguments[3],r=function(t,e,n){return n?t.substr(0,n)+e:""},s=function(t,e,n){return t.substr(n).replace(/(\d{3})(?=\d)/g,"$1"+e)},i=function(t,e,n){return n?e+o.toFixed(Math.abs(t),n).split(".")[1]:""},l=o.normalizePrecision(e),u=0>t&&"-"||"",c=String(parseInt(o.toFixed(Math.abs(t||0),l),10)),p=c.length>3?c.length%3:0;return u+r(c,n,p)+s(c,n,p)+i(t,a,l)},toFixed:function(t,e){e=n(e)?e:o.normalizePrecision(e,0);var a=Math.pow(10,e);return(Math.round(t*a)/a).toFixed(e)},normalizePrecision:function(t,e){return t=Math.round(Math.abs(t)),a(t)?e:t},ordinal:function(t){var e=parseInt(t,10);if(0===e)return t;var n=e%100;if([11,12,13].indexOf(n)>=0)return e+"th";var a=e%10,r=void 0;switch(a){case 1:r="st";break;case 2:r="nd";break;case 3:r="rd";break;default:r="th"}return""+e+r},times:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(r(t)&&t>=0){var a=parseFloat(t),s=["never","once","twice"];if(n(e[a]))return String(e[a]);var i=n(s[a])&&s[a].toString();return i||a.toString()+" times"}return null},pluralize:function(t,e,a){return n(t)&&n(e)?(a=n(a)?a:e+"s",1===parseInt(t,10)?e:a):null},truncate:function(t){var e=arguments.length<=1||void 0===arguments[1]?100:arguments[1],n=arguments.length<=2||void 0===arguments[2]?"...":arguments[2];return t.length>e?t.substring(0,e-n.length)+n:t},truncateWords:function(t,e){for(var a=t.split(" "),r="",s=0;e>s;)n(a[s])&&(r+=a[s]+" "),s++;return a.length>e?r+"...":null},truncatewords:function(){return o.truncateWords.apply(o,arguments)},boundedNumber:function(t){var e=arguments.length<=1||void 0===arguments[1]?100:arguments[1],n=arguments.length<=2||void 0===arguments[2]?"+":arguments[2],a=void 0;return r(t)&&r(e)&&t>e&&(a=e+n),(a||t).toString()},truncatenumber:function(){return o.boundedNumber.apply(o,arguments)},oxford:function(t,e,a){var r=t.length,s=void 0;if(2>r)return String(t);if(2===r)return t.join(" and ");if(n(e)&&r>e){var i=r-e;s=e,a=n(a)?a:", and "+i+" "+o.pluralize(i,"other")}else s=-1,a=", and "+t[r-1];return t.slice(0,s).join(", ")+a},dictionary:function(t){var e=arguments.length<=1||void 0===arguments[1]?" is ":arguments[1],a=arguments.length<=2||void 0===arguments[2]?", ":arguments[2],r="";if(n(t)&&"object"===("undefined"==typeof t?"undefined":s(t))&&!i(t)){var o=[];for(var l in t)if(t.hasOwnProperty(l)){var u=t[l];o.push(""+l+e+u)}return o.join(a)}return r},frequency:function(t,e){if(!i(t))return null;var n=t.length,a=o.times(n);return 0===n?a+" "+e:e+" "+a},pace:function(e,n){var a=arguments.length<=2||void 0===arguments[2]?"time":arguments[2];if(0===e||0===n)return"No "+o.pluralize(0,a);for(var r="Approximately",s=void 0,i=void 0,l=e/n,u=0;u1){s=c.name;break}}s||(r="Less than",i=1,s=t[t.length-1].name);var p=Math.round(i);return a=o.pluralize(p,a),r+" "+p+" "+a+" per "+s},nl2br:function(t){var e=arguments.length<=1||void 0===arguments[1]?"
    ":arguments[1];return t.replace(/\n/g,e)},br2nl:function(t){var e=arguments.length<=1||void 0===arguments[1]?"\r\n":arguments[1];return t.replace(/\/g,e)},capitalize:function(t){var e=arguments.length<=1||void 0===arguments[1]?!1:arguments[1];return""+t.charAt(0).toUpperCase()+(e?t.slice(1).toLowerCase():t.slice(1))},capitalizeAll:function(t){return t.replace(/(?:^|\s)\S/g,function(t){return t.toUpperCase()})},titleCase:function(t){var e=/\b(a|an|and|at|but|by|de|en|for|if|in|of|on|or|the|to|via|vs?\.?)\b/i,n=/\S+[A-Z]+\S*/,a=/\s+/,r=/-/,s=void 0;return(s=function(t){for(var i=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],l=arguments.length<=2||void 0===arguments[2]?!0:arguments[2],u=[],c=t.split(i?r:a),p=0;p0?r.createElement("div",{className:"page-loader-with-message"},r.createElement("div",{className:t}),r.createElement("p",null,this.props.children)):r.createElement("div",{className:t})},e}(r.Component),t.exports=a},function(t,e,n){(function(e){var a,r,s=function(t,e){function n(){this.constructor=t}for(var a in e)i.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;r=n(294),a=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return s(n,t),n.prototype.render=function(){return r.createElement("div",{className:"lines-wrapper"},r.createElement("div",{className:"empty-table-message"},r.createElement("p",null,e.last(this.props.fileName.split("/"))," does not exist",this.props.fileName&&-1!==this.props.fileName.indexOf("$TASK_ID")?" in this task's directory":" for this task",".")))},n}(r.Component),t.exports=a}).call(e,n(3))},function(t,e){"use strict";function n(t){return function(e){var n=e.dispatch,a=e.getState;return function(e){return function(r){return"function"==typeof r?r(n,a,t):e(r)}}}}e.__esModule=!0;var a=n();a.withExtraArgument=n,e["default"]=a},function(t,e){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);ee;e++)if(e in this&&this[e]===t)return e;return-1};o=n(627).combineReducers,u=n(2).getTaskDataFromTaskId,c=n(28),i=function(t,e){return{taskIds:t,search:e,logLines:[],taskBuffer:{},prependedLineCount:0,linesRemovedFromTop:0,updatedAt:+new Date,top:!1,bottom:!1,tailing:!1,ready:!1,pendingRequests:!1,detectedTimestamp:!1}},d=function(t){return null==t&&(t=!1),{logLines:[],taskBuffer:{},top:!0,bottom:!0,updatedAt:+new Date,tailing:t}},h=function(t,e,n){var a;return a=Object.assign([],t),a[e]=Object.assign({},t[e],n),a},l=function(t,n){return e.filter(t,function(t){var e;return e=t.data,new RegExp(n).test(e)})},r=[[/^(\d{2}:\d{2}:\d{2}\.\d{3})/,"HH:mm:ss.SSS"],[/^[A-Z \[]+(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2},\d{3})/,"YYYY-MM-DD HH:mm:ss,SSS"],[/^\[(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2},\d{3})/,"YYYY-MM-DD HH:mm:ss,SSS"]],p=function(t){var e,n,a,s;for(n=0,a=r.length;a>n;n++)if(e=r[n],s=t.match(e[0]))return c(s,e[1]).valueOf();return null},s=function(t,e){return{offset:e,taskId:t,data:""}},a={LOG_INIT:function(t,e){var n,a;return a=e.taskIdGroups,n=e.search,a.map(function(t){return i(t,n)})},LOG_ADD_TASK_GROUP:function(t,n){var a,r;return r=n.taskIds,a=n.search,e.sortBy(t.concat(i(r,a)),function(t){return u(t.taskIds[0]).instanceNo})},LOG_REMOVE_TASK:function(t,n){var a,r,s,i,o,l,u;for(u=n.taskId,i=[],a=0,r=t.length;r>a;a++)if(l=t[a],f.call(l.taskIds,u)>=0){if(1===l.taskIds.length)continue;o=e.without(l.taskIds,u),s=l.logLines.filter(function(t){return t.taskId!==u}),i.push(Object.assign({},l,{tasksIds:newTasksIds,logLines:s}))}else i.push(l);return i},LOG_TASK_GROUP_TOP:function(t,e){var n,a;return n=e.taskGroupId,a=e.visible,h(t,n,{top:a,tailing:!1})},LOG_TASK_GROUP_BOTTOM:function(t,e){var n,a;return n=e.taskGroupId,a=e.visible,h(t,n,{bottom:a})},LOG_TASK_GROUP_READY:function(t,e){var n;return n=e.taskGroupId,h(t,n,{ready:!0,updatedAt:+new Date,top:!0,bottom:!0,tailing:!0})},LOG_TASK_GROUP_TAILING:function(t,e){var n,a;return a=e.taskGroupId,n=e.tailing,h(t,a,{tailing:n})},LOG_REMOVE_TASK_GROUP:function(t,e){var n,a,r,s,i;for(i=e.taskGroupId,r=[],n=a=0,s=t.length-1;s>=0?s>=a:a>=s;n=s>=0?++a:--a)n!==i&&r.push(t[n]);return r},LOG_EXPAND_TASK_GROUP:function(t,e){var n;return n=e.taskGroupId,[t[n]]},LOG_SCROLL_TO_TOP:function(t,e){var n;return n=e.taskGroupId,h(t,n,d())},LOG_SCROLL_ALL_TO_TOP:function(t){return t.map(function(t){return Object.assign({},t,d())})},LOG_SCROLL_TO_BOTTOM:function(t,e){var n;return n=e.taskGroupId,h(t,n,d(!0))},LOG_SCROLL_ALL_TO_BOTTOM:function(t){return t.map(function(t){return Object.assign({},t,d(!0))})},LOG_REQUEST_START:function(t,e){var n;return n=e.taskGroupId,h(t,n,{pendingRequests:!0})},LOG_REQUEST_END:function(t,e){var n;return n=e.taskGroupId,h(t,n,{pendingRequests:!1})},LOG_TASK_DATA:function(t,n){var a,r,i,o,u,c,d,h,f,m,y,v,g,_,b,k,T,w,M,x;return w=n.taskGroupId,M=n.taskId,_=n.offset,g=n.nextOffset,f=n.maxLines,i=n.data,a=n.append,T=t[w],0===i.length&&task.loadedData?t:(r=_,d=e.initial(i.match(/[^\n]*(\n|$)/g)).map(function(t){var e,n;return r+=t.length,t=t.replace("\r",""),n=p(t),n&&(e=!0),{timestamp:n,data:t,offset:r-t.length,taskId:M}}),k=T.taskBuffer[M]||s(M,0),a?(k.offset+k.data.length===_&&(o=e.first(d),d=e.rest(d),k={offset:k.offset,data:k.data+o.data,taskId:M},k.data.endsWith("\n")&&(k.timestamp=p(k.data),d.unshift(k),k=s(M,g))),d.length>0&&(u=e.last(d),u.data.endsWith("\n")||(k=u,d=e.initial(d)))):(g===k.offset&&(u=e.last(d),d=e.initial(d),k={offset:g-u.data.length,data:u.data+k.data,taskId:M},d.length>0&&(k.timestamp=p(k.data),d.push(k),k=s(M,_))),d.length>0&&(o=e.first(d),o.offset>0&&(k=o,d=e.rest(d)))),v=Object.assign({},T.taskBuffer),v[M]=k,c=T.logLines.length>0?e.last(T.logLines).timestamp:0,d=d.map(function(t){return t.timestamp?c=t.timestamp:t.timestamp=c,t}),b=0,h=0,x=+new Date,T.search&&(d=l(d,T.search)),m=Object.assign([],T.logLines),a?(m=m.concat(d),m.length>f&&(h=m.length-f,m=m.slice(m.length-f))):(m=d.concat(m),b=d.length,m.length>f&&(m=m.slice(0,f))),T.taskIds.length>1&&(m=e.sortBy(m,function(t){var e,n;return n=t.timestamp,e=t.offset,[n,e]})),y=Object.assign([],t),y[w]=Object.assign({},t[w],{taskBuffer:v,logLines:m,prependedLineCount:b,linesRemovedFromTop:h,updatedAt:x}),y)}},t.exports=function(t,e){return null==t&&(t=[]),e.type in a?a[e.type](t,e):t}}).call(e,n(3))},function(t,e){var n;n={LOG_INIT:function(t,e){var n;return n=e.requestId,Object.assign({},t,{requestId:n})},REQUEST_ACTIVE_TASKS:function(t,e){var n;return n=e.tasks,Object.assign({},t,{activeTasks:n})}},t.exports=function(t,e){return null==t&&(t={}),e.type in n?n[e.type](t,e):t}},function(t,e,n){(function(e){var n,a,r,s,i;i=function(t,e,n){var a;return a=Object.assign({},t),a[e]=Object.assign({},t[e],n),a},a=function(t,e){return null==e&&(e=0),{taskId:t,minOffset:e,maxOffset:e,filesize:e,initialDataLoaded:!1,logDataLoaded:!1,terminated:!1,exists:!1}},r=function(t){return t.length>0?e.last(e.sortBy(t,function(t){return t.timestamp})).taskState:null},s=function(t){return"TASK_FINISHED"===t||"TASK_KILLED"===t||"TASK_FAILED"===t||"TASK_LOST"===t||"TASK_ERROR"===t},n={LOG_INIT:function(t,e){var n,r,s,i,o,l,u,c;for(c=e.taskIdGroups,o={},n=0,s=c.length;s>n;n++)for(u=c[n],r=0,i=u.length;i>r;r++)l=u[r],o[l]=a(l);return o},LOG_ADD_TASK_GROUP:function(t,e){var n,r,s,i,o;for(o=e.taskIds,s=Object.assign({},t),n=0,r=o.length;r>n;n++)i=o[n],s[i]=a(i);return s},LOG_REMOVE_TASK:function(t,e){var n,a;return a=e.taskId,n=Object.assign({},t),delete n[a],n},LOG_TASK_INIT:function(t,e){var n,a,r,s;return s=e.taskId,r=e.path,a=e.offset,n=e.exists,i(t,s,{path:r,exists:n,minOffset:a,maxOffset:a,filesize:a,initialDataLoaded:!0})},LOG_TASK_FILE_DOES_NOT_EXIST:function(t,e){var n;return n=e.taskId,i(t,n,{exists:!1,initialDataLoaded:!0})},LOG_SCROLL_TO_TOP:function(t,e){var n,a,r,s,i;for(i=e.taskIds,r=Object.assign({},t),n=0,a=i.length;a>n;n++)s=i[n],r[s]=Object.assign({},t[s],{minOffset:0,maxOffset:0,logDataLoaded:!1});return r},LOG_SCROLL_ALL_TO_TOP:function(t){var e,n;e={};for(n in t)e[n]=Object.assign({},t[n],{minOffset:0,maxOffset:0,logDataLoaded:!1});return e},LOG_SCROLL_TO_BOTTOM:function(t,e){var n,a,r,s,i;for(i=e.taskIds,r=Object.assign({},t),n=0,a=i.length;a>n;n++)s=i[n],r[s]=Object.assign({},t[s],{minOffset:t[s].filesize,maxOffset:t[s].filesize,logDataLoaded:!1});return r},LOG_SCROLL_ALL_TO_BOTTOM:function(t){var e,n;e={};for(n in t)e[n]=Object.assign({},t[n],{minOffset:t[n].filesize,maxOffset:t[n].filesize,logDataLoaded:!1});return e},LOG_TASK_FILESIZE:function(t,e){var n,a;return a=e.taskId,n=e.filesize,i(t,a,{filesize:n})},LOG_TASK_DATA:function(t,e){var n,a,r,s,o,l,u;return u=e.taskId,o=e.offset,s=e.nextOffset,l=t[u],r=l.minOffset,a=l.maxOffset,n=l.filesize,i(t,u,{logDataLoaded:!0,minOffset:Math.min(r,o),maxOffset:Math.max(a,s),filesize:Math.max(s,n)})},LOG_TASK_HISTORY:function(t,e){var n,a,o;return o=e.taskId,a=e.taskHistory,n=r(a.taskUpdates),i(t,o,{lastTaskStatus:n,terminated:s(n)})},LOG_REMOVE_TASK_GROUP:function(t,e){var n,a,r,s,i;for(i=e.taskIds,r=Object.assign({},t),n=0,a=i.length;a>n;n++)s=i[n],delete r[s];return r},LOG_EXPAND_TASK_GROUP:function(t,e){var n,a,r,s,i;for(i=e.taskIds,r={},n=0,a=i.length;a>n;n++)s=i[n],r[s]=t[s];return r}},t.exports=function(t,e){return null==t&&(t={}),e.type in n?n[e.type](t,e):t}}).call(e,n(3))},function(t,e,n){var a,r,s,i,o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty;a=n(19),s=n(667),i=n(2),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.initialize=function(t){return this.requestId=t.requestId,this.formSubmitted=!1,this.title("Task Search"),this.params={},this.requestId?this.global=!1:this.global=!0,this.view=new s({requestId:this.requestId,global:this.global}),this.setView(this.view),this.view.render(),app.showView(this.view)},e}(a),t.exports=r},function(t,e,n){(function(e,a){var r,s,i,o,l,u=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function n(){this.constructor=t}for(var a in e)p.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},p={}.hasOwnProperty;r=n(294),s=n(446),l=n(201),i=n(668),o=function(t){function n(){return this.viewJson=u(this.viewJson,this),n.__super__.constructor.apply(this,arguments)}return c(n,t),n.prototype.events=function(){return e.extend(n.__super__.events.apply(this,arguments),{'click [data-action="viewJSON"]':"viewJson"})},n.prototype.viewJson=function(t){var e,n,r,s;return e=a(t.currentTarget).parents("tr"),s=e.data("id"),r=e.data("collection"),n=this.subviews[r].collection,utils.viewJSON(n.get(s))},n.prototype.initialize=function(t,e){this.requestId=t.requestId,this.global=t.global},n.prototype.render=function(){return a(this.el).addClass("task-search-root"),s.render(r.createElement(i,{initialRequestId:this.requestId,global:this.global,taskSearchViewSuper:n.__super__.render.apply(this,arguments)}),this.el)},n}(l),t.exports=o}).call(e,n(3),n(1))},function(t,e,n){(function(e){var a,r,s,i,o,l,u;i=n(294),u=n(2),r=n(669),l=n(670),a=n(756),s=n(761),o=i.createClass({countChoices:[5,10,25],defaultCount:10,defaultSortDirection:"DESC",getInitialState:function(){return{form:{requestId:this.props.initialRequestId||"",deployId:this.props.initialDeployId||"",host:this.props.initialHost||"",lastTaskStatus:this.props.initialTaskStatus||"",startedBefore:this.props.initialStartedBefore||"",startedAfter:this.props.initialStartedAfter||""},sortDirection:this.props.initialSortDirection||this.defaultSortDirection,queryParams:{requestId:this.props.initialRequestId||"",deployId:this.props.initialDeployId||"",host:this.props.initialHost||"",lastTaskStatus:this.props.initialTaskStatus||"",startedBefore:this.props.initialStartedBefore||"",startedAfter:this.props.initialStartedAfter||""},pageNumber:1,count:this.props.initialCount||this.defaultCount,hasDoneAnySearch:!1}},handleSubmit:function(t){return t.preventDefault(),this.setState({queryParams:this.state.form,pageNumber:1,hasDoneAnySearch:!0})},isAnyQueryParams:function(){return this.state.queryParams.requestId||this.state.queryParams.deployId||this.state.queryParams.host||this.state.queryParams.lastTaskStatus||this.state.queryParams.startedBefore||this.state.queryParams.startedAfter},updateReqeustId:function(t){var n;return this.props.global?(n=e.extend({},this.state.form),n.requestId=t.target.value,this.setState({form:n})):void 0},updateDeployId:function(t){var n;return n=e.extend({},this.state.form),n.deployId=t.target.value,this.setState({form:n})},updateHost:function(t){var n;return n=e.extend({},this.state.form),n.host=t.target.value,this.setState({form:n})},updateLastTaskStatus:function(t){var n;return n=e.extend({},this.state.form),n.lastTaskStatus=t.target.value,this.setState({form:n})},updateStartedBefore:function(t){var n;return n=e.extend({},this.state.form),n.startedBefore=t.date,this.setState({form:n})},updateStartedAfter:function(t){var n;return n=e.extend({},this.state.form),n.startedAfter=t.date,this.setState({form:n})},resetForm:function(){return this.setState(this.getInitialState())},updateSortDirection:function(t){return this.state.sortDirection===r.sortDirections()[0].value?this.setState({sortDirection:r.sortDirections()[1].value}):this.setState({sortDirection:r.sortDirections()[0].value})},updatePageNumber:function(t){return this.setState({pageNumber:t.target.value})},increasePageNumber:function(t){return this.setState({pageNumber:this.state.pageNumber+1})},setPageNumber:function(t){return t>0?this.setState({pageNumber:t}):void 0},decreasePageNumber:function(t){return this.state.pageNumber>1?this.setState({pageNumber:this.state.pageNumber-1}):void 0},updateCount:function(t){return this.setState({count:t})},clearRequestId:function(t){return this.props.global?this.setState({requestId:""}):void 0},clearDeployId:function(t){return this.setState({deployId:""})},clearHost:function(t){return this.setState({host:""})},clearSortDirection:function(t){return this.setState({sortDirection:""})},clearLastTaskStatus:function(t){return this.setState({lastTaskStatus:""})},clearStartedBefore:function(t){return this.setState({startedBefore:""})},clearStartedAfter:function(t){return this.setState({startedAfter:""})},render:function(){return i.createElement("div",null,i.createElement(s,{global:this.props.global,requestId:this.props.initialRequestId}),i.createElement("h2",null," Search Parameters "),i.createElement(l,{handleSubmit:this.handleSubmit,requestId:this.state.form.requestId,requestIdCurrentSearch:this.state.queryParams.requestId,global:this.props.global,updateReqeustId:this.updateReqeustId,deployId:this.state.form.deployId,updateDeployId:this.updateDeployId,deployIdCurrentSearch:this.state.queryParams.deployId,host:this.state.form.host,updateHost:this.updateHost,hostCurrentSearch:this.state.queryParams.host,lastTaskStatus:this.state.form.lastTaskStatus,updateLastTaskStatus:this.updateLastTaskStatus,lastTaskStatusCurrentSearch:this.state.queryParams.lastTaskStatus,startedAfter:this.state.form.startedAfter,updateStartedAfter:this.updateStartedAfter,startedAfterCurrentSearch:this.state.queryParams.startedAfter?this.state.queryParams.startedAfter.format(window.config.timestampFormat):void 0,startedBefore:this.state.form.startedBefore,updateStartedBefore:this.updateStartedBefore,startedBeforeCurrentSearch:this.state.queryParams.startedBefore?this.state.queryParams.startedBefore.format(window.config.timestampFormat):void 0,resetForm:this.resetForm}),i.createElement("h2",null,"Tasks"),i.createElement(a,{requestId:this.state.queryParams.requestId,deployId:this.state.queryParams.deployId,host:this.state.queryParams.host,lastTaskStatus:this.state.queryParams.lastTaskStatus,startedAfter:this.state.queryParams.startedAfter,startedBefore:this.state.queryParams.startedBefore,sortDirection:this.state.sortDirection,increasePageNumber:this.increasePageNumber,setPageNumber:this.setPageNumber,decreasePageNumber:this.decreasePageNumber,page:this.state.pageNumber,count:this.state.count,updateCount:this.updateCount,countChoices:this.countChoices,updateSortDirection:this.updateSortDirection,clearRequestId:this.clearRequestId,clearDeployId:this.clearDeployId,clearHost:this.clearHost,clearLastTaskStatus:this.clearLastTaskStatus,clearStartedAfter:this.clearStartedAfter,clearStartedBefore:this.clearStartedBefore,clearSortDirection:this.clearSortDirection,global:this.props.global,hasDoneAnySearch:this.state.hasDoneAnySearch,holdOffOnSearching:!(this.isAnyQueryParams()||this.state.hasDoneAnySearch)}))}}),t.exports=o}).call(e,n(1))},function(t,e){var n;n=function(){function t(){}return t.sortDirections=function(){return[{user:"Ascending",value:"ASC"},{user:"Descending",value:"DESC"}]},t.extendedTaskState=function(){return[{user:"Error",value:"TASK_ERROR"},{user:"Failed",value:"TASK_FAILED"},{user:"Finished",value:"TASK_FINISHED"},{user:"Killed",value:"TASK_KILLED"},{user:"Lost",value:"TASK_LOST"},{user:"Lost While Down",value:"TASK_LOST_WHILE_DOWN"}]},t}(),t.exports=n},function(t,e,n){var a,r,s,i,o,l,u,c;l=n(294),c=n(2),i=n(671),r=n(672),a=n(673),o=n(755),s=n(669),u=l.createClass({getRequestIdTitle:function(){return l.createElement("div",null,"Request ID",this.props.requestIdCurrentSearch?l.createElement("span",{className:"badge current-query-param"},this.props.requestIdCurrentSearch):void 0)},getDeployIdTitle:function(){return l.createElement("div",null,"Deploy ID",this.props.deployIdCurrentSearch?l.createElement("span",{className:"badge current-query-param"},this.props.deployIdCurrentSearch):void 0)},getHostTitle:function(){return l.createElement("div",null,"Host",this.props.hostCurrentSearch?l.createElement("span",{className:"badge current-query-param"},this.props.hostCurrentSearch):void 0)},getStartedBetweenTitle:function(){return l.createElement("div",null,"Started Between",this.props.startedAfterCurrentSearch&&this.props.startedBeforeCurrentSearch?l.createElement("span",{className:"badge current-query-param"},this.props.startedAfterCurrentSearch," - ",this.props.startedBeforeCurrentSearch):this.props.startedAfterCurrentSearch?l.createElement("span",{className:"badge current-query-param"},"After ",this.props.startedAfterCurrentSearch):this.props.startedBeforeCurrentSearch?l.createElement("span",{className:"badge current-query-param"},"Before ",this.props.startedBeforeCurrentSearch):void 0)},getLastTaskStatusTitle:function(){return l.createElement("div",null,"Last Task Status",this.props.lastTaskStatusCurrentSearch?l.createElement("span",{className:"badge current-query-param"},this.props.lastTaskStatusCurrentSearch):void 0)},render:function(){return l.createElement("div",{className:"jumbotron col-md-12"},l.createElement("form",{role:"form",onSubmit:this.props.handleSubmit,className:"form-vertical"},l.createElement("div",{className:"row"},l.createElement("div",{className:"col-md-4"},l.createElement("label",{htmlFor:"requestId"},this.getRequestIdTitle()),l.createElement(i,{title:this.getRequestIdTitle(),id:"requestId",prop:{value:this.props.requestId,inputType:"text",disabled:!this.props.global,updateFn:this.props.updateReqeustId}})),l.createElement("div",{className:"col-md-4"},l.createElement("label",{htmlFor:"deployId"},this.getDeployIdTitle()),l.createElement(i,{title:this.getDeployIdTitle(),id:"deployId",prop:{value:this.props.deployId,inputType:"text",updateFn:this.props.updateDeployId}})),l.createElement("div",{className:"col-md-4"},l.createElement("label",{htmlFor:"host"},this.getHostTitle()),l.createElement(i,{title:this.getHostTitle(),id:"host",prop:{value:this.props.host,inputType:"text",updateFn:this.props.updateHost}}))),l.createElement("div",{className:"row"},l.createElement("div",{className:"col-md-4"},l.createElement("label",{htmlFor:"executionStartedBetween"},this.getStartedBetweenTitle()),l.createElement(o,{id:"executionStartedBetween",title:this.getStartedBetweenTitle(),prop:{customClass:"form-inline",formItem1:{component:a, title:"Started After",id:"startedAfter",prop:{customClass:"col-xs-5 pull-left",value:this.props.startedAfter,inputType:"datetime",updateFn:this.props.updateStartedAfter}},separator:"-",formItem2:{component:a,title:"Started Before",id:"startedBefore",prop:{customClass:"col-xs-5 pull-right",value:this.props.startedBefore,inputType:"datetime",updateFn:this.props.updateStartedBefore}}}})),l.createElement("div",{className:"col-md-4"},l.createElement("label",{htmlFor:"lastTaskStatus"},this.getLastTaskStatusTitle()),l.createElement(r,{id:"lastTaskStatus",prop:{value:this.props.lastTaskStatus,choices:s.extendedTaskState(),inputType:"text",updateFn:this.props.updateLastTaskStatus}})),l.createElement("label",{htmlFor:"buttons"}," "),l.createElement("div",{className:"col-md-4",id:"buttons"},l.createElement("div",{className:"pull-right"},l.createElement("div",{className:"col-md-3"},l.createElement("button",{type:"submit",className:"btn btn-primary"},"Search"))),l.createElement("div",{className:"pull-right"},l.createElement("div",{className:"col-md-3"},l.createElement("button",{type:"button",className:"btn btn-danger",onClick:this.props.resetForm},"Clear")))))))}}),t.exports=u},function(t,e,n){var a,r,s,i;r=n(294),i=n(524),s=n(2),a=r.createClass({render:function(){return r.createElement("input",{className:i("form-control",this.props.prop.customClass),placeholder:this.props.prop.placeholder,type:this.props.prop.inputType,id:this.props.id,onChange:this.props.prop.updateFn,value:this.props.prop.value,disabled:this.props.prop.disabled,min:this.props.prop.min,max:this.props.prop.max,required:this.props.prop.required})}}),t.exports=a},function(t,e,n){var a,r,s,i;r=n(294),i=n(524),s=n(2),a=r.createClass({getValue:function(t){return"object"==typeof t?t.value:t},getUserReadable:function(t){return"object"==typeof t?t.user:t},dropDownOpts:function(){return this.props.prop.choices.map(function(t){return function(e,n){return r.createElement("option",{key:n,value:t.getValue(e)},t.getUserReadable(e))}}(this))},render:function(){return r.createElement("select",{id:this.props.id,className:i("form-control",this.props.prop.customClass),type:this.props.prop.inputType,onChange:this.props.prop.updateFn,value:this.props.prop.value,defaultValue:this.props.prop.defaultValue,required:!!this.props.prop.required},this.props.prop.forceChooseValue?void 0:r.createElement("option",{key:0,value:""}),this.dropDownOpts())}}),t.exports=a},function(t,e,n){(function(e){var a,r,s,i,o,l;i=n(294),l=n(28),r=n(671),s=n(558),o=n(674),a=i.createClass({componentWillReceiveProps:function(t){var n;return n="#"+this.props.id,o=e(n).data("datetimepicker"),o&&t.prop.value!==props.prop.value&&!t.prop.value?o.setDate(null):void 0},initializeDateTimePicker:function(){var t,n;return n="#"+this.props.id,t=this.props.prop.updateFn,e(function(){return e(n).datetimepicker({sideBySide:!0,format:window.config.timestampFormat}).on("dp.change",t)})},getValue:function(){var t;if(this.props.prop.value)return t=l(this.props.prop.value),t.format(window.config.timestampFormat)},render:function(){return i.createElement("div",{className:"input-group date "+this.props.prop.customClass,id:this.props.id},i.createElement(r,{id:this.props.id,prop:{updateFn:this.props.prop.updateFn,value:this.getValue(),size:this.props.prop.size,disabled:this.props.prop.disabled,type:this.props.prop.inputType,placeholder:this.props.prop.placeholder,required:this.props.prop.required,customClass:this.props.prop.customClass}}),i.createElement("span",{className:"input-group-addon",onMouseOver:this.initializeDateTimePicker},i.createElement(s,{iconClass:"calendar"})))}}),t.exports=a}).call(e,n(1))},function(t,e,n){var a,r,s;/*! version : 4.15.35 ========================================================= bootstrap-datetimejs https://github.com/Eonasdan/bootstrap-datetimepicker Copyright (c) 2015 Jonathan Peterson ========================================================= */ !function(i){"use strict";r=[n(1),n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t,e){"use strict";if(!e)throw new Error("bootstrap-datetimepicker requires Moment.js to be loaded first");var n=function(n,a){var r,s,i,o,l,u={},c=e().startOf("d"),p=c.clone(),d=!0,h=!1,f=!1,m=0,y=[{clsName:"days",navFnc:"M",navStep:1},{clsName:"months",navFnc:"y",navStep:1},{clsName:"years",navFnc:"y",navStep:10},{clsName:"decades",navFnc:"y",navStep:100}],v=["days","months","years","decades"],g=["top","bottom","auto"],_=["left","right","auto"],b=["default","top","bottom"],k={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",space:32,32:"space",t:84,84:"t","delete":46,46:"delete"},T={},w=function(t){if("string"!=typeof t||t.length>1)throw new TypeError("isEnabled expects a single character string parameter");switch(t){case"y":return-1!==i.indexOf("Y");case"M":return-1!==i.indexOf("M");case"d":return-1!==i.toLowerCase().indexOf("d");case"h":case"H":return-1!==i.toLowerCase().indexOf("h");case"m":return-1!==i.indexOf("m");case"s":return-1!==i.indexOf("s");default:return!1}},M=function(){return w("h")||w("m")||w("s")},x=function(){return w("y")||w("M")||w("d")},S=function(){var e=t("").append(t("").append(t("").addClass("prev").attr("data-action","previous").append(t("").addClass(a.icons.previous))).append(t("").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",a.calendarWeeks?"6":"5")).append(t("").addClass("next").attr("data-action","next").append(t("").addClass(a.icons.next)))),n=t("").append(t("").append(t("").attr("colspan",a.calendarWeeks?"8":"7")));return[t("
    ").addClass("datepicker-days").append(t("").addClass("table-condensed").append(e).append(t(""))),t("
    ").addClass("datepicker-months").append(t("
    ").addClass("table-condensed").append(e.clone()).append(n.clone())),t("
    ").addClass("datepicker-years").append(t("
    ").addClass("table-condensed").append(e.clone()).append(n.clone())),t("
    ").addClass("datepicker-decades").append(t("
    ").addClass("table-condensed").append(e.clone()).append(n.clone()))]},L=function(){var e=t(""),n=t(""),r=t("");return w("h")&&(e.append(t("
    ").append(t("").attr({href:"#",tabindex:"-1",title:"Increment Hour"}).addClass("btn").attr("data-action","incrementHours").append(t("").addClass(a.icons.up)))),n.append(t("").append(t("").addClass("timepicker-hour").attr({"data-time-component":"hours",title:"Pick Hour"}).attr("data-action","showHours"))),r.append(t("").append(t("").attr({href:"#",tabindex:"-1",title:"Decrement Hour"}).addClass("btn").attr("data-action","decrementHours").append(t("").addClass(a.icons.down))))),w("m")&&(w("h")&&(e.append(t("").addClass("separator")),n.append(t("").addClass("separator").html(":")),r.append(t("").addClass("separator"))),e.append(t("").append(t("").attr({href:"#",tabindex:"-1",title:"Increment Minute"}).addClass("btn").attr("data-action","incrementMinutes").append(t("").addClass(a.icons.up)))),n.append(t("").append(t("").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:"Pick Minute"}).attr("data-action","showMinutes"))),r.append(t("").append(t("").attr({href:"#",tabindex:"-1",title:"Decrement Minute"}).addClass("btn").attr("data-action","decrementMinutes").append(t("").addClass(a.icons.down))))),w("s")&&(w("m")&&(e.append(t("").addClass("separator")),n.append(t("").addClass("separator").html(":")),r.append(t("").addClass("separator"))),e.append(t("").append(t("").attr({href:"#",tabindex:"-1",title:"Increment Second"}).addClass("btn").attr("data-action","incrementSeconds").append(t("").addClass(a.icons.up)))),n.append(t("").append(t("").addClass("timepicker-second").attr({"data-time-component":"seconds",title:"Pick Second"}).attr("data-action","showSeconds"))),r.append(t("").append(t("").attr({href:"#",tabindex:"-1",title:"Decrement Second"}).addClass("btn").attr("data-action","decrementSeconds").append(t("").addClass(a.icons.down))))),s||(e.append(t("").addClass("separator")),n.append(t("").append(t("").addClass("separator"))),t("
    ").addClass("timepicker-picker").append(t("").addClass("table-condensed").append([e,n,r]))},D=function(){var e=t("
    ").addClass("timepicker-hours").append(t("
    ").addClass("table-condensed")),n=t("
    ").addClass("timepicker-minutes").append(t("
    ").addClass("table-condensed")),a=t("
    ").addClass("timepicker-seconds").append(t("
    ").addClass("table-condensed")),r=[L()];return w("h")&&r.push(e),w("m")&&r.push(n),w("s")&&r.push(a),r},E=function(){var e=[];return a.showTodayButton&&e.push(t("
    ").append(t("").attr({"data-action":"today",title:a.tooltips.today}).append(t("").addClass(a.icons.today)))),!a.sideBySide&&x()&&M()&&e.push(t("").append(t("").attr({"data-action":"togglePicker",title:"Select Time"}).append(t("").addClass(a.icons.time)))),a.showClear&&e.push(t("").append(t("").attr({"data-action":"clear",title:a.tooltips.clear}).append(t("").addClass(a.icons.clear)))),a.showClose&&e.push(t("").append(t("").attr({"data-action":"close",title:a.tooltips.close}).append(t("").addClass(a.icons.close)))),t("").addClass("table-condensed").append(t("").append(t("").append(e)))},I=function(){var e=t("
    ").addClass("bootstrap-datetimepicker-widget dropdown-menu"),n=t("
    ").addClass("datepicker").append(S()),r=t("
    ").addClass("timepicker").append(D()),i=t("
      ").addClass("list-unstyled"),o=t("
    • ").addClass("picker-switch"+(a.collapse?" accordion-toggle":"")).append(E());return a.inline&&e.removeClass("dropdown-menu"),s&&e.addClass("usetwentyfour"),w("s")&&!s&&e.addClass("wider"),a.sideBySide&&x()&&M()?(e.addClass("timepicker-sbs"),"top"===a.toolbarPlacement&&e.append(o),e.append(t("
      ").addClass("row").append(n.addClass("col-md-6")).append(r.addClass("col-md-6"))),"bottom"===a.toolbarPlacement&&e.append(o),e):("top"===a.toolbarPlacement&&i.append(o),x()&&i.append(t("
    • ").addClass(a.collapse&&M()?"collapse in":"").append(n)),"default"===a.toolbarPlacement&&i.append(o),M()&&i.append(t("
    • ").addClass(a.collapse&&x()?"collapse":"").append(r)),"bottom"===a.toolbarPlacement&&i.append(o),e.append(i))},Y=function(){var e,r={};return e=n.is("input")||a.inline?n.data():n.find("input").data(),e.dateOptions&&e.dateOptions instanceof Object&&(r=t.extend(!0,r,e.dateOptions)),t.each(a,function(t){var n="date"+t.charAt(0).toUpperCase()+t.slice(1);void 0!==e[n]&&(r[t]=e[n])}),r},O=function(){var e,r=(h||n).position(),s=(h||n).offset(),i=a.widgetPositioning.vertical,o=a.widgetPositioning.horizontal;if(a.widgetParent)e=a.widgetParent.append(f);else if(n.is("input"))e=n.after(f).parent();else{if(a.inline)return void(e=n.append(f));e=n,n.children().first().after(f)}if("auto"===i&&(i=s.top+1.5*f.height()>=t(window).height()+t(window).scrollTop()&&f.height()+n.outerHeight()t(window).width()?"right":"left"),"top"===i?f.addClass("top").removeClass("bottom"):f.addClass("bottom").removeClass("top"),"right"===o?f.addClass("pull-right"):f.removeClass("pull-right"),"relative"!==e.css("position")&&(e=e.parents().filter(function(){return"relative"===t(this).css("position")}).first()),0===e.length)throw new Error("datetimepicker component should be placed within a relative positioned container");f.css({top:"top"===i?"auto":r.top+n.outerHeight(),bottom:"top"===i?r.top+n.outerHeight():"auto",left:"left"===o?e===n?0:r.left:"auto",right:"left"===o?"auto":e.outerWidth()-n.outerWidth()-(e===n?0:r.left)})},R=function(t){"dp.change"===t.type&&(t.date&&t.date.isSame(t.oldDate)||!t.date&&!t.oldDate)||n.trigger(t)},q=function(t){"y"===t&&(t="YYYY"),R({type:"dp.update",change:t,viewDate:p.clone()})},P=function(t){f&&(t&&(l=Math.max(m,Math.min(3,l+t))),f.find(".datepicker > div").hide().filter(".datepicker-"+y[l].clsName).show())},C=function(){var e=t("
    "),n=p.clone().startOf("w").startOf("d");for(a.calendarWeeks===!0&&e.append(t(""),a.calendarWeeks&&r.append('"),u.push(r)),s="",n.isBefore(p,"M")&&(s+=" old"),n.isAfter(p,"M")&&(s+=" new"),n.isSame(c,"d")&&!d&&(s+=" active"),z(n,"d")||(s+=" disabled"),n.isSame(e(),"d")&&(s+=" today"),0!==n.day()&&6!==n.day()||(s+=" weekend"),r.append('"),n.add(1,"d");o.find("tbody").empty().append(u),B(),U(),W()}},$=function(){var e=f.find(".timepicker-hours table"),n=p.clone().startOf("d"),a=[],r=t("");for(p.hour()>11&&!s&&n.hour(12);n.isSame(p,"d")&&(s||p.hour()<12&&n.hour()<12||p.hour()>11);)n.hour()%4===0&&(r=t(""),a.push(r)),r.append('"),n.add(1,"h");e.empty().append(a)},J=function(){for(var e=f.find(".timepicker-minutes table"),n=p.clone().startOf("h"),r=[],s=t(""),i=1===a.stepping?5:a.stepping;p.isSame(n,"h");)n.minute()%(4*i)===0&&(s=t(""),r.push(s)),s.append('"),n.add(i,"m");e.empty().append(r)},K=function(){for(var e=f.find(".timepicker-seconds table"),n=p.clone().startOf("m"),a=[],r=t("");p.isSame(n,"m");)n.second()%20===0&&(r=t(""),a.push(r)),r.append('"),n.add(5,"s");e.empty().append(a)},V=function(){var t,e,n=f.find(".timepicker span[data-time-component]");s||(t=f.find(".timepicker [data-action=togglePeriod]"),e=c.clone().add(c.hours()>=12?-12:12,"h"),t.text(c.format("A")),z(e,"h")?t.removeClass("disabled"):t.addClass("disabled")),n.filter("[data-time-component=hours]").text(c.format(s?"HH":"hh")),n.filter("[data-time-component=minutes]").text(c.format("mm")),n.filter("[data-time-component=seconds]").text(c.format("ss")),$(),J(),K()},Q=function(){f&&(G(),V())},Z=function(t){var e=d?null:c;return t?(t=t.clone().locale(a.locale),1!==a.stepping&&t.minutes(Math.round(t.minutes()/a.stepping)*a.stepping%60).seconds(0),void(z(t)?(c=t,p=c.clone(),r.val(c.format(i)),n.data("date",c.format(i)),d=!1,Q(),R({type:"dp.change",date:c.clone(),oldDate:e})):(a.keepInvalid||r.val(d?"":c.format(i)),R({type:"dp.error",date:t})))):(d=!0,r.val(""),n.data("date",""),R({type:"dp.change",date:!1,oldDate:e}),void Q())},X=function(){var e=!1;return f?(f.find(".collapse").each(function(){var n=t(this).data("collapse");return n&&n.transitioning?(e=!0,!1):!0}),e?u:(h&&h.hasClass("btn")&&h.toggleClass("active"),f.hide(),t(window).off("resize",O),f.off("click","[data-action]"),f.off("mousedown",!1),f.remove(),f=!1,R({type:"dp.hide",date:c.clone()}),r.blur(),u)):u},tt=function(){Z(null)},et={next:function(){var t=y[l].navFnc;p.add(y[l].navStep,t),G(),q(t)},previous:function(){var t=y[l].navFnc;p.subtract(y[l].navStep,t),G(),q(t)},pickerSwitch:function(){P(1)},selectMonth:function(e){var n=t(e.target).closest("tbody").find("span").index(t(e.target));p.month(n),l===m?(Z(c.clone().year(p.year()).month(p.month())),a.inline||X()):(P(-1),G()),q("M")},selectYear:function(e){var n=parseInt(t(e.target).text(),10)||0;p.year(n),l===m?(Z(c.clone().year(p.year())),a.inline||X()):(P(-1),G()),q("YYYY")},selectDecade:function(e){var n=parseInt(t(e.target).data("selection"),10)||0;p.year(n),l===m?(Z(c.clone().year(p.year())),a.inline||X()):(P(-1),G()),q("YYYY")},selectDay:function(e){var n=p.clone();t(e.target).is(".old")&&n.subtract(1,"M"),t(e.target).is(".new")&&n.add(1,"M"),Z(n.date(parseInt(t(e.target).text(),10))),M()||a.keepOpen||a.inline||X()},incrementHours:function(){var t=c.clone().add(1,"h");z(t,"h")&&Z(t)},incrementMinutes:function(){var t=c.clone().add(a.stepping,"m");z(t,"m")&&Z(t)},incrementSeconds:function(){var t=c.clone().add(1,"s");z(t,"s")&&Z(t)},decrementHours:function(){var t=c.clone().subtract(1,"h");z(t,"h")&&Z(t)},decrementMinutes:function(){var t=c.clone().subtract(a.stepping,"m");z(t,"m")&&Z(t)},decrementSeconds:function(){var t=c.clone().subtract(1,"s");z(t,"s")&&Z(t)},togglePeriod:function(){Z(c.clone().add(c.hours()>=12?-12:12,"h"))},togglePicker:function(e){var n,r=t(e.target),s=r.closest("ul"),i=s.find(".in"),o=s.find(".collapse:not(.in)");if(i&&i.length){if(n=i.data("collapse"),n&&n.transitioning)return;i.collapse?(i.collapse("hide"),o.collapse("show")):(i.removeClass("in"),o.addClass("in")),r.is("span")?r.toggleClass(a.icons.time+" "+a.icons.date):r.find("span").toggleClass(a.icons.time+" "+a.icons.date)}},showPicker:function(){f.find(".timepicker > div:not(.timepicker-picker)").hide(),f.find(".timepicker .timepicker-picker").show()},showHours:function(){f.find(".timepicker .timepicker-picker").hide(),f.find(".timepicker .timepicker-hours").show()},showMinutes:function(){f.find(".timepicker .timepicker-picker").hide(),f.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){f.find(".timepicker .timepicker-picker").hide(),f.find(".timepicker .timepicker-seconds").show()},selectHour:function(e){var n=parseInt(t(e.target).text(),10);s||(c.hours()>=12?12!==n&&(n+=12):12===n&&(n=0)),Z(c.clone().hours(n)),et.showPicker.call(u)},selectMinute:function(e){Z(c.clone().minutes(parseInt(t(e.target).text(),10))),et.showPicker.call(u)},selectSecond:function(e){Z(c.clone().seconds(parseInt(t(e.target).text(),10))),et.showPicker.call(u)},clear:tt,today:function(){z(e(),"d")&&Z(e())},close:X},nt=function(e){return t(e.currentTarget).is(".disabled")?!1:(et[t(e.currentTarget).data("action")].apply(u,arguments),!1)},at=function(){var n,s={year:function(t){return t.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(t){return t.date(1).hours(0).seconds(0).minutes(0)},day:function(t){return t.hours(0).seconds(0).minutes(0)},hour:function(t){return t.seconds(0).minutes(0)},minute:function(t){return t.seconds(0)}};return r.prop("disabled")||!a.ignoreReadonly&&r.prop("readonly")||f?u:(void 0!==r.val()&&0!==r.val().trim().length?Z(st(r.val().trim())):a.useCurrent&&d&&(r.is("input")&&0===r.val().trim().length||a.inline)&&(n=e(),"string"==typeof a.useCurrent&&(n=s[a.useCurrent](n)),Z(n)),f=I(),C(),H(),f.find(".timepicker-hours").hide(),f.find(".timepicker-minutes").hide(),f.find(".timepicker-seconds").hide(),Q(),P(),t(window).on("resize",O),f.on("click","[data-action]",nt),f.on("mousedown",!1),h&&h.hasClass("btn")&&h.toggleClass("active"),f.show(),O(),a.focusOnShow&&!r.is(":focus")&&r.focus(),R({type:"dp.show"}),u)},rt=function(){return f?X():at()},st=function(t){return t=void 0===a.parseInputDate?e.isMoment(t)||t instanceof Date?e(t):e(t,o,a.useStrict):a.parseInputDate(t),t.locale(a.locale),t},it=function(t){var e,n,r,s,i=null,o=[],l={},c=t.which,p="p";T[c]=p;for(e in T)T.hasOwnProperty(e)&&T[e]===p&&(o.push(e),parseInt(e,10)!==c&&(l[e]=!0));for(e in a.keyBinds)if(a.keyBinds.hasOwnProperty(e)&&"function"==typeof a.keyBinds[e]&&(r=e.split(" "),r.length===o.length&&k[c]===r[r.length-1])){for(s=!0,n=r.length-2;n>=0;n--)if(!(k[r[n]]in l)){s=!1;break}if(s){i=a.keyBinds[e];break}}i&&(i.call(u,f),t.stopPropagation(),t.preventDefault())},ot=function(t){T[t.which]="r",t.stopPropagation(),t.preventDefault()},lt=function(e){var n=t(e.target).val().trim(),a=n?st(n):null;return Z(a),e.stopImmediatePropagation(),!1},ut=function(){r.on({change:lt,blur:a.debug?"":X,keydown:it,keyup:ot,focus:a.allowInputToggle?at:""}),n.is("input")?r.on({focus:at}):h&&(h.on("click",rt),h.on("mousedown",!1))},ct=function(){r.off({change:lt,blur:blur,keydown:it,keyup:ot,focus:a.allowInputToggle?X:""}),n.is("input")?r.off({focus:at}):h&&(h.off("click",rt),h.off("mousedown",!1))},pt=function(e){var n={};return t.each(e,function(){var t=st(this);t.isValid()&&(n[t.format("YYYY-MM-DD")]=!0)}),Object.keys(n).length?n:!1},dt=function(e){var n={};return t.each(e,function(){n[this]=!0}),Object.keys(n).length?n:!1},ht=function(){var t=a.format||"L LT";i=t.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(t){var e=c.localeData().longDateFormat(t)||t;return e.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(t){return c.localeData().longDateFormat(t)||t})}),o=a.extraFormats?a.extraFormats.slice():[],o.indexOf(t)<0&&o.indexOf(i)<0&&o.push(i),s=i.toLowerCase().indexOf("a")<1&&i.replace(/\[.*?\]/g,"").indexOf("h")<1,w("y")&&(m=2),w("M")&&(m=1),w("d")&&(m=0),l=Math.max(m,l),d||Z(c)};if(u.destroy=function(){X(),ct(),n.removeData("DateTimePicker"),n.removeData("date")},u.toggle=rt,u.show=at,u.hide=X,u.disable=function(){return X(),h&&h.hasClass("btn")&&h.addClass("disabled"),r.prop("disabled",!0),u},u.enable=function(){return h&&h.hasClass("btn")&&h.removeClass("disabled"),r.prop("disabled",!1),u},u.ignoreReadonly=function(t){if(0===arguments.length)return a.ignoreReadonly;if("boolean"!=typeof t)throw new TypeError("ignoreReadonly () expects a boolean parameter");return a.ignoreReadonly=t,u},u.options=function(e){if(0===arguments.length)return t.extend(!0,{},a);if(!(e instanceof Object))throw new TypeError("options() options parameter should be an object");return t.extend(!0,a,e),t.each(a,function(t,e){if(void 0===u[t])throw new TypeError("option "+t+" is not recognized!");u[t](e)}),u},u.date=function(t){if(0===arguments.length)return d?null:c.clone();if(!(null===t||"string"==typeof t||e.isMoment(t)||t instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");return Z(null===t?null:st(t)),u},u.format=function(t){if(0===arguments.length)return a.format;if("string"!=typeof t&&("boolean"!=typeof t||t!==!1))throw new TypeError("format() expects a sting or boolean:false parameter "+t);return a.format=t,i&&ht(),u},u.dayViewHeaderFormat=function(t){if(0===arguments.length)return a.dayViewHeaderFormat;if("string"!=typeof t)throw new TypeError("dayViewHeaderFormat() expects a string parameter");return a.dayViewHeaderFormat=t,u},u.extraFormats=function(t){if(0===arguments.length)return a.extraFormats;if(t!==!1&&!(t instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");return a.extraFormats=t,o&&ht(),u},u.disabledDates=function(e){if(0===arguments.length)return a.disabledDates?t.extend({},a.disabledDates):a.disabledDates;if(!e)return a.disabledDates=!1,Q(),u;if(!(e instanceof Array))throw new TypeError("disabledDates() expects an array parameter");return a.disabledDates=pt(e),a.enabledDates=!1,Q(),u},u.enabledDates=function(e){if(0===arguments.length)return a.enabledDates?t.extend({},a.enabledDates):a.enabledDates;if(!e)return a.enabledDates=!1,Q(),u;if(!(e instanceof Array))throw new TypeError("enabledDates() expects an array parameter");return a.enabledDates=pt(e),a.disabledDates=!1,Q(),u},u.daysOfWeekDisabled=function(t){if(0===arguments.length)return a.daysOfWeekDisabled.splice(0);if("boolean"==typeof t&&!t)return a.daysOfWeekDisabled=!1,Q(),u;if(!(t instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(a.daysOfWeekDisabled=t.reduce(function(t,e){return e=parseInt(e,10),e>6||0>e||isNaN(e)?t:(-1===t.indexOf(e)&&t.push(e),t)},[]).sort(),a.useCurrent&&!a.keepInvalid){for(var e=0;!z(c,"d");){if(c.add(1,"d"),7===e)throw"Tried 7 times to find a valid date";e++}Z(c)}return Q(),u},u.maxDate=function(t){if(0===arguments.length)return a.maxDate?a.maxDate.clone():a.maxDate;if("boolean"==typeof t&&t===!1)return a.maxDate=!1,Q(),u;"string"==typeof t&&("now"!==t&&"moment"!==t||(t=e()));var n=st(t);if(!n.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+t);if(a.minDate&&n.isBefore(a.minDate))throw new TypeError("maxDate() date parameter is before options.minDate: "+n.format(i));return a.maxDate=n,a.useCurrent&&!a.keepInvalid&&c.isAfter(t)&&Z(a.maxDate),p.isAfter(n)&&(p=n.clone().subtract(a.stepping,"m")),Q(),u},u.minDate=function(t){if(0===arguments.length)return a.minDate?a.minDate.clone():a.minDate;if("boolean"==typeof t&&t===!1)return a.minDate=!1,Q(),u;"string"==typeof t&&("now"!==t&&"moment"!==t||(t=e()));var n=st(t);if(!n.isValid())throw new TypeError("minDate() Could not parse date parameter: "+t);if(a.maxDate&&n.isAfter(a.maxDate))throw new TypeError("minDate() date parameter is after options.maxDate: "+n.format(i));return a.minDate=n,a.useCurrent&&!a.keepInvalid&&c.isBefore(t)&&Z(a.minDate),p.isBefore(n)&&(p=n.clone().add(a.stepping,"m")),Q(),u},u.defaultDate=function(t){if(0===arguments.length)return a.defaultDate?a.defaultDate.clone():a.defaultDate;if(!t)return a.defaultDate=!1,u;"string"==typeof t&&("now"!==t&&"moment"!==t||(t=e()));var n=st(t);if(!n.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+t);if(!z(n))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");return a.defaultDate=n,(a.defaultDate&&a.inline||""===r.val().trim()&&void 0===r.attr("placeholder"))&&Z(a.defaultDate),u},u.locale=function(t){if(0===arguments.length)return a.locale;if(!e.localeData(t))throw new TypeError("locale() locale "+t+" is not loaded from moment locales!");return a.locale=t,c.locale(a.locale),p.locale(a.locale),i&&ht(),f&&(X(),at()),u},u.stepping=function(t){return 0===arguments.length?a.stepping:(t=parseInt(t,10),(isNaN(t)||1>t)&&(t=1),a.stepping=t,u)},u.useCurrent=function(t){var e=["year","month","day","hour","minute"];if(0===arguments.length)return a.useCurrent;if("boolean"!=typeof t&&"string"!=typeof t)throw new TypeError("useCurrent() expects a boolean or string parameter");if("string"==typeof t&&-1===e.indexOf(t.toLowerCase()))throw new TypeError("useCurrent() expects a string parameter of "+e.join(", "));return a.useCurrent=t,u},u.collapse=function(t){if(0===arguments.length)return a.collapse;if("boolean"!=typeof t)throw new TypeError("collapse() expects a boolean parameter");return a.collapse===t?u:(a.collapse=t,f&&(X(),at()),u)},u.icons=function(e){if(0===arguments.length)return t.extend({},a.icons);if(!(e instanceof Object))throw new TypeError("icons() expects parameter to be an Object");return t.extend(a.icons,e),f&&(X(),at()),u},u.tooltips=function(e){if(0===arguments.length)return t.extend({},a.tooltips);if(!(e instanceof Object))throw new TypeError("tooltips() expects parameter to be an Object");return t.extend(a.tooltips,e),f&&(X(),at()),u},u.useStrict=function(t){if(0===arguments.length)return a.useStrict;if("boolean"!=typeof t)throw new TypeError("useStrict() expects a boolean parameter");return a.useStrict=t,u},u.sideBySide=function(t){if(0===arguments.length)return a.sideBySide;if("boolean"!=typeof t)throw new TypeError("sideBySide() expects a boolean parameter");return a.sideBySide=t,f&&(X(),at()),u},u.viewMode=function(t){if(0===arguments.length)return a.viewMode;if("string"!=typeof t)throw new TypeError("viewMode() expects a string parameter");if(-1===v.indexOf(t))throw new TypeError("viewMode() parameter must be one of ("+v.join(", ")+") value");return a.viewMode=t,l=Math.max(v.indexOf(t),m),P(),u},u.toolbarPlacement=function(t){if(0===arguments.length)return a.toolbarPlacement;if("string"!=typeof t)throw new TypeError("toolbarPlacement() expects a string parameter");if(-1===b.indexOf(t))throw new TypeError("toolbarPlacement() parameter must be one of ("+b.join(", ")+") value");return a.toolbarPlacement=t,f&&(X(),at()),u},u.widgetPositioning=function(e){if(0===arguments.length)return t.extend({},a.widgetPositioning);if("[object Object]"!=={}.toString.call(e))throw new TypeError("widgetPositioning() expects an object variable");if(e.horizontal){if("string"!=typeof e.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(e.horizontal=e.horizontal.toLowerCase(),-1===_.indexOf(e.horizontal))throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+_.join(", ")+")");a.widgetPositioning.horizontal=e.horizontal}if(e.vertical){if("string"!=typeof e.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(e.vertical=e.vertical.toLowerCase(),-1===g.indexOf(e.vertical))throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+g.join(", ")+")");a.widgetPositioning.vertical=e.vertical}return Q(),u},u.calendarWeeks=function(t){if(0===arguments.length)return a.calendarWeeks;if("boolean"!=typeof t)throw new TypeError("calendarWeeks() expects parameter to be a boolean value");return a.calendarWeeks=t,Q(),u},u.showTodayButton=function(t){if(0===arguments.length)return a.showTodayButton;if("boolean"!=typeof t)throw new TypeError("showTodayButton() expects a boolean parameter");return a.showTodayButton=t,f&&(X(),at()),u},u.showClear=function(t){if(0===arguments.length)return a.showClear;if("boolean"!=typeof t)throw new TypeError("showClear() expects a boolean parameter");return a.showClear=t,f&&(X(),at()),u},u.widgetParent=function(e){if(0===arguments.length)return a.widgetParent;if("string"==typeof e&&(e=t(e)),null!==e&&"string"!=typeof e&&!(e instanceof t))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");return a.widgetParent=e,f&&(X(),at()),u},u.keepOpen=function(t){if(0===arguments.length)return a.keepOpen;if("boolean"!=typeof t)throw new TypeError("keepOpen() expects a boolean parameter");return a.keepOpen=t,u},u.focusOnShow=function(t){if(0===arguments.length)return a.focusOnShow;if("boolean"!=typeof t)throw new TypeError("focusOnShow() expects a boolean parameter");return a.focusOnShow=t,u},u.inline=function(t){if(0===arguments.length)return a.inline;if("boolean"!=typeof t)throw new TypeError("inline() expects a boolean parameter");return a.inline=t,u},u.clear=function(){return tt(),u},u.keyBinds=function(t){return a.keyBinds=t,u},u.debug=function(t){if("boolean"!=typeof t)throw new TypeError("debug() expects a boolean parameter");return a.debug=t,u},u.allowInputToggle=function(t){if(0===arguments.length)return a.allowInputToggle;if("boolean"!=typeof t)throw new TypeError("allowInputToggle() expects a boolean parameter");return a.allowInputToggle=t,u},u.showClose=function(t){if(0===arguments.length)return a.showClose;if("boolean"!=typeof t)throw new TypeError("showClose() expects a boolean parameter");return a.showClose=t,u},u.keepInvalid=function(t){if(0===arguments.length)return a.keepInvalid;if("boolean"!=typeof t)throw new TypeError("keepInvalid() expects a boolean parameter");return a.keepInvalid=t,u},u.datepickerInput=function(t){if(0===arguments.length)return a.datepickerInput;if("string"!=typeof t)throw new TypeError("datepickerInput() expects a string parameter");return a.datepickerInput=t,u},u.parseInputDate=function(t){if(0===arguments.length)return a.parseInputDate;if("function"!=typeof t)throw new TypeError("parseInputDate() sholud be as function");return a.parseInputDate=t,u},u.disabledTimeIntervals=function(e){if(0===arguments.length)return a.disabledTimeIntervals?t.extend({},a.disabledTimeIntervals):a.disabledTimeIntervals;if(!e)return a.disabledTimeIntervals=!1,Q(),u;if(!(e instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");return a.disabledTimeIntervals=e,Q(),u},u.disabledHours=function(e){if(0===arguments.length)return a.disabledHours?t.extend({},a.disabledHours):a.disabledHours;if(!e)return a.disabledHours=!1,Q(),u;if(!(e instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(a.disabledHours=dt(e),a.enabledHours=!1,a.useCurrent&&!a.keepInvalid){for(var n=0;!z(c,"h");){if(c.add(1,"h"),24===n)throw"Tried 24 times to find a valid date";n++}Z(c)}return Q(),u},u.enabledHours=function(e){if(0===arguments.length)return a.enabledHours?t.extend({},a.enabledHours):a.enabledHours; if(!e)return a.enabledHours=!1,Q(),u;if(!(e instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(a.enabledHours=dt(e),a.disabledHours=!1,a.useCurrent&&!a.keepInvalid){for(var n=0;!z(c,"h");){if(c.add(1,"h"),24===n)throw"Tried 24 times to find a valid date";n++}Z(c)}return Q(),u},u.viewDate=function(t){if(0===arguments.length)return p.clone();if(!t)return p=c.clone(),u;if(!("string"==typeof t||e.isMoment(t)||t instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");return p=st(t),q(),u},n.is("input"))r=n;else if(r=n.find(a.datepickerInput),0===r.size())r=n.find("input");else if(!r.is("input"))throw new Error('CSS class "'+a.datepickerInput+'" cannot be applied to non input element');if(n.hasClass("input-group")&&(h=0===n.find(".datepickerbutton").size()?n.find(".input-group-addon"):n.find(".datepickerbutton")),!a.inline&&!r.is("input"))throw new Error("Could not initialize DateTimePicker without an input element");return t.extend(!0,a,Y()),u.options(a),ht(),ut(),r.prop("disabled")&&u.disable(),r.is("input")&&0!==r.val().trim().length?Z(st(r.val().trim())):a.defaultDate&&void 0===r.attr("placeholder")&&Z(a.defaultDate),a.inline&&at(),u};t.fn.datetimepicker=function(e){return this.each(function(){var a=t(this);a.data("DateTimePicker")||(e=t.extend(!0,{},t.fn.datetimepicker.defaults,e),a.data("DateTimePicker",n(a,e)))})},t.fn.datetimepicker.defaults={format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:e.locale(),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down",previous:"glyphicon glyphicon-chevron-left",next:"glyphicon glyphicon-chevron-right",today:"glyphicon glyphicon-screenshot",clear:"glyphicon glyphicon-trash",close:"glyphicon glyphicon-remove"},tooltips:{today:"Go to today",clear:"Clear selection",close:"Close the picker",selectMonth:"Select Month",prevMonth:"Previous Month",nextMonth:"Next Month",selectYear:"Select Year",prevYear:"Previous Year",nextYear:"Next Year",selectDecade:"Select Decade",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevCentury:"Previous Century",nextCentury:"Next Century"},useStrict:!1,sideBySide:!1,daysOfWeekDisabled:!1,calendarWeeks:!1,viewMode:"days",toolbarPlacement:"default",showTodayButton:!1,showClear:!1,showClose:!1,widgetPositioning:{horizontal:"auto",vertical:"auto"},widgetParent:null,ignoreReadonly:!1,keepOpen:!1,focusOnShow:!0,inline:!1,keepInvalid:!1,datepickerInput:".datepickerinput",keyBinds:{up:function(t){if(t){var n=this.date()||e();t.find(".datepicker").is(":visible")?this.date(n.clone().subtract(7,"d")):this.date(n.clone().add(this.stepping(),"m"))}},down:function(t){if(!t)return void this.show();var n=this.date()||e();t.find(".datepicker").is(":visible")?this.date(n.clone().add(7,"d")):this.date(n.clone().subtract(this.stepping(),"m"))},"control up":function(t){if(t){var n=this.date()||e();t.find(".datepicker").is(":visible")?this.date(n.clone().subtract(1,"y")):this.date(n.clone().add(1,"h"))}},"control down":function(t){if(t){var n=this.date()||e();t.find(".datepicker").is(":visible")?this.date(n.clone().add(1,"y")):this.date(n.clone().subtract(1,"h"))}},left:function(t){if(t){var n=this.date()||e();t.find(".datepicker").is(":visible")&&this.date(n.clone().subtract(1,"d"))}},right:function(t){if(t){var n=this.date()||e();t.find(".datepicker").is(":visible")&&this.date(n.clone().add(1,"d"))}},pageUp:function(t){if(t){var n=this.date()||e();t.find(".datepicker").is(":visible")&&this.date(n.clone().subtract(1,"M"))}},pageDown:function(t){if(t){var n=this.date()||e();t.find(".datepicker").is(":visible")&&this.date(n.clone().add(1,"M"))}},enter:function(){this.hide()},escape:function(){this.hide()},"control space":function(t){t.find(".timepicker").is(":visible")&&t.find('.btn[data-action="togglePeriod"]').click()},t:function(){this.date(e())},"delete":function(){this.clear()}},debug:!1,allowInputToggle:!1,disabledTimeIntervals:!1,disabledHours:!1,enabledHours:!1,viewDate:!1}})},function(t,e,n){var a;(function(t,r){//! moment.js //! version : 2.8.4 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com (function(s){function i(t,e,n){switch(arguments.length){case 2:return null!=t?t:e;case 3:return null!=t?t:null!=e?e:n;default:throw new Error("Implement me")}}function o(t,e){return It.call(t,e)}function l(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function u(t){Mt.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function c(t,e){var n=!0;return v(function(){return n&&(u(t),n=!1),e.apply(this,arguments)},e)}function p(t,e){ke[t]||(u(e),ke[t]=!0)}function d(t,e){return function(n){return b(t.call(this,n),e)}}function h(t,e){return function(n){return this.localeData().ordinal(t.call(this,n),e)}}function f(){}function m(t,e){e!==!1&&C(t),g(this,t),this._d=new Date(+t._d)}function y(t){var e=E(t),n=e.year||0,a=e.quarter||0,r=e.month||0,s=e.week||0,i=e.day||0,o=e.hour||0,l=e.minute||0,u=e.second||0,c=e.millisecond||0;this._milliseconds=+c+1e3*u+6e4*l+36e5*o,this._days=+i+7*s,this._months=+r+3*a+12*n,this._data={},this._locale=Mt.localeData(),this._bubble()}function v(t,e){for(var n in e)o(e,n)&&(t[n]=e[n]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function g(t,e){var n,a,r;if("undefined"!=typeof e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),"undefined"!=typeof e._i&&(t._i=e._i),"undefined"!=typeof e._f&&(t._f=e._f),"undefined"!=typeof e._l&&(t._l=e._l),"undefined"!=typeof e._strict&&(t._strict=e._strict),"undefined"!=typeof e._tzm&&(t._tzm=e._tzm),"undefined"!=typeof e._isUTC&&(t._isUTC=e._isUTC),"undefined"!=typeof e._offset&&(t._offset=e._offset),"undefined"!=typeof e._pf&&(t._pf=e._pf),"undefined"!=typeof e._locale&&(t._locale=e._locale),Ft.length>0)for(n in Ft)a=Ft[n],r=e[a],"undefined"!=typeof r&&(t[a]=r);return t}function _(t){return 0>t?Math.ceil(t):Math.floor(t)}function b(t,e,n){for(var a=""+Math.abs(t),r=t>=0;a.lengtha;a++)(n&&t[a]!==e[a]||!n&&Y(t[a])!==Y(e[a]))&&i++;return i+s}function D(t){if(t){var e=t.toLowerCase().replace(/(.)s$/,"$1");t=fe[t]||me[e]||e}return t}function E(t){var e,n,a={};for(n in t)o(t,n)&&(e=D(n),e&&(a[e]=t[n]));return a}function I(t){var e,n;if(0===t.indexOf("week"))e=7,n="day";else{if(0!==t.indexOf("month"))return;e=12,n="month"}Mt[t]=function(a,r){var i,o,l=Mt._locale[t],u=[];if("number"==typeof a&&(r=a,a=s),o=function(t){var e=Mt().utc().set(n,t);return l.call(Mt._locale,e,a||"")},null!=r)return o(r);for(i=0;e>i;i++)u.push(o(i));return u}}function Y(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=e>=0?Math.floor(e):Math.ceil(e)),n}function O(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function R(t,e,n){return dt(Mt([t,11,31+e-n]),e,n).week}function q(t){return P(t)?366:365}function P(t){return t%4===0&&t%100!==0||t%400===0}function C(t){var e;t._a&&-2===t._pf.overflow&&(e=t._a[Ot]<0||t._a[Ot]>11?Ot:t._a[Rt]<1||t._a[Rt]>O(t._a[Yt],t._a[Ot])?Rt:t._a[qt]<0||t._a[qt]>24||24===t._a[qt]&&(0!==t._a[Pt]||0!==t._a[Ct]||0!==t._a[Nt])?qt:t._a[Pt]<0||t._a[Pt]>59?Pt:t._a[Ct]<0||t._a[Ct]>59?Ct:t._a[Nt]<0||t._a[Nt]>999?Nt:-1,t._pf._overflowDayOfYear&&(Yt>e||e>Rt)&&(e=Rt),t._pf.overflow=e)}function N(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length&&t._pf.bigHour===s)),t._isValid}function A(t){return t?t.toLowerCase().replace("_","-"):t}function F(t){for(var e,n,a,r,s=0;s0;){if(a=j(r.slice(0,e).join("-")))return a;if(n&&n.length>=e&&L(r,n,!0)>=e-1)break;e--}s++}return null}function j(t){var e=null;if(!At[t]&&jt)try{e=Mt.locale(),n(676)("./"+t),Mt.locale(e)}catch(a){}return At[t]}function z(t,e){var n,a;return e._isUTC?(n=e.clone(),a=(Mt.isMoment(t)||S(t)?+t:+Mt(t))-+n,n._d.setTime(+n._d+a),Mt.updateOffset(n,!1),n):Mt(t).local()}function H(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function B(t){var e,n,a=t.match(Ut);for(e=0,n=a.length;n>e;e++)be[a[e]]?a[e]=be[a[e]]:a[e]=H(a[e]);return function(r){var s="";for(e=0;n>e;e++)s+=a[e]instanceof Function?a[e].call(r,t):a[e];return s}}function U(t,e){return t.isValid()?(e=W(e,t.localeData()),ye[e]||(ye[e]=B(e)),ye[e](t)):t.localeData().invalidDate()}function W(t,e){function n(t){return e.longDateFormat(t)||t}var a=5;for(Wt.lastIndex=0;a>=0&&Wt.test(t);)t=t.replace(Wt,n),Wt.lastIndex=0,a-=1;return t}function G(t,e){var n,a=e._strict;switch(t){case"Q":return ne;case"DDDD":return re;case"YYYY":case"GGGG":case"gggg":return a?se:Jt;case"Y":case"G":case"g":return oe;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return a?ie:Kt;case"S":if(a)return ne;case"SS":if(a)return ae;case"SSS":if(a)return re;case"DDD":return $t;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Qt;case"a":case"A":return e._locale._meridiemParse;case"x":return te;case"X":return ee;case"Z":case"ZZ":return Zt;case"T":return Xt;case"SSSS":return Vt;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return a?ae:Gt;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Gt;case"Do":return a?e._locale._ordinalParse:e._locale._ordinalParseLenient;default:return n=new RegExp(et(tt(t.replace("\\","")),"i"))}}function $(t){t=t||"";var e=t.match(Zt)||[],n=e[e.length-1]||[],a=(n+"").match(de)||["-",0,0],r=+(60*a[1])+Y(a[2]);return"+"===a[0]?-r:r}function J(t,e,n){var a,r=n._a;switch(t){case"Q":null!=e&&(r[Ot]=3*(Y(e)-1));break;case"M":case"MM":null!=e&&(r[Ot]=Y(e)-1);break;case"MMM":case"MMMM":a=n._locale.monthsParse(e,t,n._strict),null!=a?r[Ot]=a:n._pf.invalidMonth=e;break;case"D":case"DD":null!=e&&(r[Rt]=Y(e));break;case"Do":null!=e&&(r[Rt]=Y(parseInt(e.match(/\d{1,2}/)[0],10)));break;case"DDD":case"DDDD":null!=e&&(n._dayOfYear=Y(e));break;case"YY":r[Yt]=Mt.parseTwoDigitYear(e);break;case"YYYY":case"YYYYY":case"YYYYYY":r[Yt]=Y(e);break;case"a":case"A":n._isPm=n._locale.isPM(e);break;case"h":case"hh":n._pf.bigHour=!0;case"H":case"HH":r[qt]=Y(e);break;case"m":case"mm":r[Pt]=Y(e);break;case"s":case"ss":r[Ct]=Y(e);break;case"S":case"SS":case"SSS":case"SSSS":r[Nt]=Y(1e3*("0."+e));break;case"x":n._d=new Date(Y(e));break;case"X":n._d=new Date(1e3*parseFloat(e));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=$(e);break;case"dd":case"ddd":case"dddd":a=n._locale.weekdaysParse(e),null!=a?(n._w=n._w||{},n._w.d=a):n._pf.invalidWeekday=e;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":t=t.substr(0,1);case"gggg":case"GGGG":case"GGGGG":t=t.substr(0,2),e&&(n._w=n._w||{},n._w[t]=Y(e));break;case"gg":case"GG":n._w=n._w||{},n._w[t]=Mt.parseTwoDigitYear(e)}}function K(t){var e,n,a,r,s,o,l;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(s=1,o=4,n=i(e.GG,t._a[Yt],dt(Mt(),1,4).year),a=i(e.W,1),r=i(e.E,1)):(s=t._locale._week.dow,o=t._locale._week.doy,n=i(e.gg,t._a[Yt],dt(Mt(),s,o).year),a=i(e.w,1),null!=e.d?(r=e.d,s>r&&++a):r=null!=e.e?e.e+s:s),l=ht(n,a,r,o,s),t._a[Yt]=l.year,t._dayOfYear=l.dayOfYear}function V(t){var e,n,a,r,s=[];if(!t._d){for(a=Z(t),t._w&&null==t._a[Rt]&&null==t._a[Ot]&&K(t),t._dayOfYear&&(r=i(t._a[Yt],a[Yt]),t._dayOfYear>q(r)&&(t._pf._overflowDayOfYear=!0),n=lt(r,0,t._dayOfYear),t._a[Ot]=n.getUTCMonth(),t._a[Rt]=n.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=s[e]=a[e];for(;7>e;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[qt]&&0===t._a[Pt]&&0===t._a[Ct]&&0===t._a[Nt]&&(t._nextDay=!0,t._a[qt]=0),t._d=(t._useUTC?lt:ot).apply(null,s),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()+t._tzm),t._nextDay&&(t._a[qt]=24)}}function Q(t){var e;t._d||(e=E(t._i),t._a=[e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],V(t))}function Z(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function X(t){if(t._f===Mt.ISO_8601)return void at(t);t._a=[],t._pf.empty=!0;var e,n,a,r,i,o=""+t._i,l=o.length,u=0;for(a=W(t._f,t._locale).match(Ut)||[],e=0;e0&&t._pf.unusedInput.push(i),o=o.slice(o.indexOf(n)+n.length),u+=n.length),be[r]?(n?t._pf.empty=!1:t._pf.unusedTokens.push(r),J(r,n,t)):t._strict&&!n&&t._pf.unusedTokens.push(r);t._pf.charsLeftOver=l-u,o.length>0&&t._pf.unusedInput.push(o),t._pf.bigHour===!0&&t._a[qt]<=12&&(t._pf.bigHour=s),t._isPm&&t._a[qt]<12&&(t._a[qt]+=12),t._isPm===!1&&12===t._a[qt]&&(t._a[qt]=0),V(t),C(t)}function tt(t){return t.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,a,r){return e||n||a||r})}function et(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function nt(t){var e,n,a,r,s;if(0===t._f.length)return t._pf.invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;rs)&&(a=s,n=e));v(t,n||e)}function at(t){var e,n,a=t._i,r=le.exec(a);if(r){for(t._pf.iso=!0,e=0,n=ce.length;n>e;e++)if(ce[e][1].exec(a)){t._f=ce[e][0]+(r[6]||" ");break}for(e=0,n=pe.length;n>e;e++)if(pe[e][1].exec(a)){t._f+=pe[e][0];break}a.match(Zt)&&(t._f+="Z"),X(t)}else t._isValid=!1}function rt(t){at(t),t._isValid===!1&&(delete t._isValid,Mt.createFromInputFallback(t))}function st(t,e){var n,a=[];for(n=0;nt&&o.setFullYear(t),o}function lt(t){var e=new Date(Date.UTC.apply(null,arguments));return 1970>t&&e.setUTCFullYear(t),e}function ut(t,e){if("string"==typeof t)if(isNaN(t)){if(t=e.weekdaysParse(t),"number"!=typeof t)return null}else t=parseInt(t,10);return t}function ct(t,e,n,a,r){return r.relativeTime(e||1,!!n,t,a)}function pt(t,e,n){var a=Mt.duration(t).abs(),r=Et(a.as("s")),s=Et(a.as("m")),i=Et(a.as("h")),o=Et(a.as("d")),l=Et(a.as("M")),u=Et(a.as("y")),c=r0,c[4]=n,ct.apply({},c)}function dt(t,e,n){var a,r=n-e,s=n-t.day();return s>r&&(s-=7),r-7>s&&(s+=7),a=Mt(t).add(s,"d"),{week:Math.ceil(a.dayOfYear()/7),year:a.year()}}function ht(t,e,n,a,r){var s,i,o=lt(t,0,1).getUTCDay();return o=0===o?7:o,n=null!=n?n:r,s=r-o+(o>a?7:0)-(r>o?7:0),i=7*(e-1)+(n-r)+s+1,{year:i>0?t:t-1,dayOfYear:i>0?i:q(t-1)+i}}function ft(t){var e,n=t._i,a=t._f;return t._locale=t._locale||Mt.localeData(t._l),null===n||a===s&&""===n?Mt.invalid({nullInput:!0}):("string"==typeof n&&(t._i=n=t._locale.preparse(n)),Mt.isMoment(n)?new m(n,!0):(a?x(a)?nt(t):X(t):it(t),e=new m(t),e._nextDay&&(e.add(1,"d"),e._nextDay=s),e))}function mt(t,e){var n,a;if(1===e.length&&x(e[0])&&(e=e[0]),!e.length)return Mt();for(n=e[0],a=1;a=0?"+":"-";return e+b(Math.abs(t),6)},gg:function(){return b(this.weekYear()%100,2)},gggg:function(){return b(this.weekYear(),4)},ggggg:function(){return b(this.weekYear(),5)},GG:function(){return b(this.isoWeekYear()%100,2)},GGGG:function(){return b(this.isoWeekYear(),4)},GGGGG:function(){return b(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return Y(this.milliseconds()/100)},SS:function(){return b(Y(this.milliseconds()/10),2)},SSS:function(){return b(this.milliseconds(),3)},SSSS:function(){return b(this.milliseconds(),3)},Z:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+b(Y(t/60),2)+":"+b(Y(t)%60,2)},ZZ:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+b(Y(t/60),2)+b(Y(t)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},ke={},Te=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];ge.length;)St=ge.pop(),be[St+"o"]=h(be[St],St);for(;_e.length;)St=_e.pop(),be[St+St]=d(be[St],2);be.DDDD=d(be.DDD,3),v(f.prototype,{set:function(t){var e,n;for(n in t)e=t[n],"function"==typeof e?this[n]=e:this["_"+n]=e;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(t){return this._months[t.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(t){return this._monthsShort[t.month()]},monthsParse:function(t,e,n){var a,r,s;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;12>a;a++){if(r=Mt.utc([2e3,a]),n&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[a]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[a]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[a].test(t))return a;if(n&&"MMM"===e&&this._shortMonthsParse[a].test(t))return a;if(!n&&this._monthsParse[a].test(t))return a}},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(t){return this._weekdays[t.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(t){return this._weekdaysShort[t.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(t){return this._weekdaysMin[t.day()]},weekdaysParse:function(t){var e,n,a;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;7>e;e++)if(this._weekdaysParse[e]||(n=Mt([2e3,1]).day(e),a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(a.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e},_longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=e),e},isPM:function(t){return"p"===(t+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(t,e,n){var a=this._calendar[t];return"function"==typeof a?a.apply(e,[n]):a},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(t,e,n,a){var r=this._relativeTime[n];return"function"==typeof r?r(t,e,n,a):r.replace(/%d/i,t)},pastFuture:function(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)},ordinal:function(t){return this._ordinal.replace("%d",t)},_ordinal:"%d",_ordinalParse:/\d{1,2}/,preparse:function(t){return t},postformat:function(t){return t},week:function(t){return dt(t,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),Mt=function(t,e,n,a){var r;return"boolean"==typeof n&&(a=n,n=s),r={},r._isAMomentObject=!0,r._i=t,r._f=e,r._l=n,r._strict=a,r._isUTC=!1,r._pf=l(),ft(r)},Mt.suppressDeprecationWarnings=!1,Mt.createFromInputFallback=c("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),Mt.min=function(){var t=[].slice.call(arguments,0);return mt("isBefore",t)},Mt.max=function(){var t=[].slice.call(arguments,0);return mt("isAfter",t)},Mt.utc=function(t,e,n,a){var r;return"boolean"==typeof n&&(a=n,n=s),r={},r._isAMomentObject=!0,r._useUTC=!0,r._isUTC=!0,r._l=n,r._i=t,r._f=e,r._strict=a,r._pf=l(),ft(r).utc()},Mt.unix=function(t){return Mt(1e3*t)},Mt.duration=function(t,e){var n,a,r,s,i=t,l=null;return Mt.isDuration(t)?i={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(i={},e?i[e]=t:i.milliseconds=t):(l=Ht.exec(t))?(n="-"===l[1]?-1:1,i={y:0,d:Y(l[Rt])*n,h:Y(l[qt])*n,m:Y(l[Pt])*n,s:Y(l[Ct])*n,ms:Y(l[Nt])*n}):(l=Bt.exec(t))?(n="-"===l[1]?-1:1,r=function(t){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*n},i={y:r(l[2]),M:r(l[3]),d:r(l[4]),h:r(l[5]),m:r(l[6]),s:r(l[7]),w:r(l[8])}):"object"==typeof i&&("from"in i||"to"in i)&&(s=T(Mt(i.from),Mt(i.to)),i={},i.ms=s.milliseconds,i.M=s.months),a=new y(i),Mt.isDuration(t)&&o(t,"_locale")&&(a._locale=t._locale),a},Mt.version=Lt,Mt.defaultFormat=ue,Mt.ISO_8601=function(){},Mt.momentProperties=Ft,Mt.updateOffset=function(){},Mt.relativeTimeThreshold=function(t,e){return ve[t]===s?!1:e===s?ve[t]:(ve[t]=e,!0)},Mt.lang=c("moment.lang is deprecated. Use moment.locale instead.",function(t,e){return Mt.locale(t,e)}),Mt.locale=function(t,e){var n;return t&&(n="undefined"!=typeof e?Mt.defineLocale(t,e):Mt.localeData(t),n&&(Mt.duration._locale=Mt._locale=n)),Mt._locale._abbr},Mt.defineLocale=function(t,e){return null!==e?(e.abbr=t,At[t]||(At[t]=new f),At[t].set(e),Mt.locale(t),At[t]):(delete At[t],null)},Mt.langData=c("moment.langData is deprecated. Use moment.localeData instead.",function(t){return Mt.localeData(t)}),Mt.localeData=function(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Mt._locale;if(!x(t)){if(e=j(t))return e;t=[t]}return F(t)},Mt.isMoment=function(t){return t instanceof m||null!=t&&o(t,"_isAMomentObject")},Mt.isDuration=function(t){return t instanceof y};for(St=Te.length-1;St>=0;--St)I(Te[St]);Mt.normalizeUnits=function(t){return D(t)},Mt.invalid=function(t){var e=Mt.utc(NaN);return null!=t?v(e._pf,t):e._pf.userInvalidated=!0,e},Mt.parseZone=function(){return Mt.apply(null,arguments).parseZone()},Mt.parseTwoDigitYear=function(t){return Y(t)+(Y(t)>68?1900:2e3)},v(Mt.fn=m.prototype,{clone:function(){return Mt(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var t=Mt(this).utc();return 00:!1},parsingFlags:function(){return v({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(t){return this.zone(0,t)},local:function(t){return this._isUTC&&(this.zone(0,t),this._isUTC=!1,t&&this.add(this._dateTzOffset(),"m")),this},format:function(t){var e=U(this,t||Mt.defaultFormat);return this.localeData().postformat(e)},add:w(1,"add"),subtract:w(-1,"subtract"),diff:function(t,e,n){var a,r,s,i=z(t,this),o=6e4*(this.zone()-i.zone());return e=D(e),"year"===e||"month"===e?(a=432e5*(this.daysInMonth()+i.daysInMonth()),r=12*(this.year()-i.year())+(this.month()-i.month()),s=this-Mt(this).startOf("month")-(i-Mt(i).startOf("month")),s-=6e4*(this.zone()-Mt(this).startOf("month").zone()-(i.zone()-Mt(i).startOf("month").zone())),r+=s/a,"year"===e&&(r/=12)):(a=this-i,r="second"===e?a/1e3:"minute"===e?a/6e4:"hour"===e?a/36e5:"day"===e?(a-o)/864e5:"week"===e?(a-o)/6048e5:a),n?r:_(r)},from:function(t,e){return Mt.duration({to:this,from:t}).locale(this.locale()).humanize(!e)},fromNow:function(t){return this.from(Mt(),t)},calendar:function(t){var e=t||Mt(),n=z(e,this).startOf("day"),a=this.diff(n,"days",!0),r=-6>a?"sameElse":-1>a?"lastWeek":0>a?"lastDay":1>a?"sameDay":2>a?"nextDay":7>a?"nextWeek":"sameElse";return this.format(this.localeData().calendar(r,this,Mt(e)))},isLeapYear:function(){return P(this.year())},isDST:function(){return this.zone()+t):(n=Mt.isMoment(t)?+t:+Mt(t),n<+this.clone().startOf(e))},isBefore:function(t,e){var n;return e=D("undefined"!=typeof e?e:"millisecond"),"millisecond"===e?(t=Mt.isMoment(t)?t:Mt(t),+t>+this):(n=Mt.isMoment(t)?+t:+Mt(t),+this.clone().endOf(e)t?this:t}),max:c("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(t){return t=Mt.apply(null,arguments),t>this?this:t}),zone:function(t,e){var n,a=this._offset||0;return null==t?this._isUTC?a:this._dateTzOffset():("string"==typeof t&&(t=$(t)),Math.abs(t)<16&&(t=60*t),!this._isUTC&&e&&(n=this._dateTzOffset()),this._offset=t,this._isUTC=!0,null!=n&&this.subtract(n,"m"),a!==t&&(!e||this._changeInProgress?M(this,Mt.duration(a-t,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Mt.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(t){return t=t?Mt(t).zone():0,(this.zone()-t)%60===0},daysInMonth:function(){return O(this.year(),this.month())},dayOfYear:function(t){var e=Et((Mt(this).startOf("day")-Mt(this).startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},quarter:function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},weekYear:function(t){var e=dt(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==t?e:this.add(t-e,"y")},isoWeekYear:function(t){var e=dt(this,1,4).year;return null==t?e:this.add(t-e,"y")},week:function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},isoWeek:function(t){var e=dt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},weekday:function(t){var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},isoWeekday:function(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)},isoWeeksInYear:function(){return R(this.year(),1,4)},weeksInYear:function(){var t=this.localeData()._week;return R(this.year(),t.dow,t.doy)},get:function(t){return t=D(t),this[t]()},set:function(t,e){return t=D(t),"function"==typeof this[t]&&this[t](e),this},locale:function(t){var e;return t===s?this._locale._abbr:(e=Mt.localeData(t),null!=e&&(this._locale=e),this)},lang:c("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===s?this.localeData():this.locale(t)}),localeData:function(){return this._locale},_dateTzOffset:function(){return 15*Math.round(this._d.getTimezoneOffset()/15)}}),Mt.fn.millisecond=Mt.fn.milliseconds=_t("Milliseconds",!1),Mt.fn.second=Mt.fn.seconds=_t("Seconds",!1),Mt.fn.minute=Mt.fn.minutes=_t("Minutes",!1),Mt.fn.hour=Mt.fn.hours=_t("Hours",!0),Mt.fn.date=_t("Date",!0),Mt.fn.dates=c("dates accessor is deprecated. Use date instead.",_t("Date",!0)),Mt.fn.year=_t("FullYear",!0),Mt.fn.years=c("years accessor is deprecated. Use year instead.",_t("FullYear",!0)),Mt.fn.days=Mt.fn.day,Mt.fn.months=Mt.fn.month,Mt.fn.weeks=Mt.fn.week,Mt.fn.isoWeeks=Mt.fn.isoWeek,Mt.fn.quarters=Mt.fn.quarter,Mt.fn.toJSON=Mt.fn.toISOString,v(Mt.duration.fn=y.prototype,{_bubble:function(){var t,e,n,a=this._milliseconds,r=this._days,s=this._months,i=this._data,o=0;i.milliseconds=a%1e3,t=_(a/1e3),i.seconds=t%60,e=_(t/60),i.minutes=e%60,n=_(e/60),i.hours=n%24,r+=_(n/24),o=_(bt(r)),r-=_(kt(o)),s+=_(r/30),r%=30,o+=_(s/12),s%=12,i.days=r,i.months=s,i.years=o},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return _(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Y(this._months/12)},humanize:function(t){var e=pt(this,!t,this.localeData());return t&&(e=this.localeData().pastFuture(+this,e)),this.localeData().postformat(e)},add:function(t,e){var n=Mt.duration(t,e);return this._milliseconds+=n._milliseconds,this._days+=n._days,this._months+=n._months,this._bubble(),this},subtract:function(t,e){var n=Mt.duration(t,e);return this._milliseconds-=n._milliseconds,this._days-=n._days,this._months-=n._months,this._bubble(),this},get:function(t){return t=D(t),this[t.toLowerCase()+"s"]()},as:function(t){var e,n;if(t=D(t),"month"===t||"year"===t)return e=this._days+this._milliseconds/864e5,n=this._months+12*bt(e),"month"===t?n:n/12;switch(e=this._days+Math.round(kt(this._months/12)),t){case"week":return e/7+this._milliseconds/6048e5;case"day":return e+this._milliseconds/864e5;case"hour":return 24*e+this._milliseconds/36e5;case"minute":return 24*e*60+this._milliseconds/6e4;case"second": return 24*e*60*60+this._milliseconds/1e3;case"millisecond":return Math.floor(24*e*60*60*1e3)+this._milliseconds;default:throw new Error("Unknown unit "+t)}},lang:Mt.fn.lang,locale:Mt.fn.locale,toIsoString:c("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var t=Math.abs(this.years()),e=Math.abs(this.months()),n=Math.abs(this.days()),a=Math.abs(this.hours()),r=Math.abs(this.minutes()),s=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(t?t+"Y":"")+(e?e+"M":"")+(n?n+"D":"")+(a||r||s?"T":"")+(a?a+"H":"")+(r?r+"M":"")+(s?s+"S":""):"P0D"},localeData:function(){return this._locale}}),Mt.duration.fn.toString=Mt.duration.fn.toISOString;for(St in he)o(he,St)&&Tt(St.toLowerCase());Mt.duration.fn.asMilliseconds=function(){return this.as("ms")},Mt.duration.fn.asSeconds=function(){return this.as("s")},Mt.duration.fn.asMinutes=function(){return this.as("m")},Mt.duration.fn.asHours=function(){return this.as("h")},Mt.duration.fn.asDays=function(){return this.as("d")},Mt.duration.fn.asWeeks=function(){return this.as("weeks")},Mt.duration.fn.asMonths=function(){return this.as("M")},Mt.duration.fn.asYears=function(){return this.as("y")},Mt.locale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===Y(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),jt?r.exports=Mt:(a=function(t,e,n){return n.config&&n.config()&&n.config().noGlobal===!0&&(Dt.moment=xt),Mt}.call(e,n,e,r),!(a!==s&&(r.exports=a)),wt(!0))}).call(this)}).call(e,function(){return this}(),n(29)(t))},function(t,e,n){function a(t){return n(r(t))}function r(t){return s[t]||function(){throw new Error("Cannot find module '"+t+"'.")}()}var s={"./af":677,"./af.js":677,"./ar":678,"./ar-ma":679,"./ar-ma.js":679,"./ar-sa":680,"./ar-sa.js":680,"./ar.js":678,"./az":681,"./az.js":681,"./be":682,"./be.js":682,"./bg":683,"./bg.js":683,"./bn":684,"./bn.js":684,"./bo":685,"./bo.js":685,"./br":686,"./br.js":686,"./bs":687,"./bs.js":687,"./ca":688,"./ca.js":688,"./cs":689,"./cs.js":689,"./cv":690,"./cv.js":690,"./cy":691,"./cy.js":691,"./da":692,"./da.js":692,"./de":693,"./de-at":694,"./de-at.js":694,"./de.js":693,"./el":695,"./el.js":695,"./en-au":696,"./en-au.js":696,"./en-ca":697,"./en-ca.js":697,"./en-gb":698,"./en-gb.js":698,"./eo":699,"./eo.js":699,"./es":700,"./es.js":700,"./et":701,"./et.js":701,"./eu":702,"./eu.js":702,"./fa":703,"./fa.js":703,"./fi":704,"./fi.js":704,"./fo":705,"./fo.js":705,"./fr":706,"./fr-ca":707,"./fr-ca.js":707,"./fr.js":706,"./gl":708,"./gl.js":708,"./he":709,"./he.js":709,"./hi":710,"./hi.js":710,"./hr":711,"./hr.js":711,"./hu":712,"./hu.js":712,"./hy-am":713,"./hy-am.js":713,"./id":714,"./id.js":714,"./is":715,"./is.js":715,"./it":716,"./it.js":716,"./ja":717,"./ja.js":717,"./ka":718,"./ka.js":718,"./km":719,"./km.js":719,"./ko":720,"./ko.js":720,"./lb":721,"./lb.js":721,"./lt":722,"./lt.js":722,"./lv":723,"./lv.js":723,"./mk":724,"./mk.js":724,"./ml":725,"./ml.js":725,"./mr":726,"./mr.js":726,"./ms-my":727,"./ms-my.js":727,"./my":728,"./my.js":728,"./nb":729,"./nb.js":729,"./ne":730,"./ne.js":730,"./nl":731,"./nl.js":731,"./nn":732,"./nn.js":732,"./pl":733,"./pl.js":733,"./pt":734,"./pt-br":735,"./pt-br.js":735,"./pt.js":734,"./ro":736,"./ro.js":736,"./ru":737,"./ru.js":737,"./sk":738,"./sk.js":738,"./sl":739,"./sl.js":739,"./sq":740,"./sq.js":740,"./sr":741,"./sr-cyrl":742,"./sr-cyrl.js":742,"./sr.js":741,"./sv":743,"./sv.js":743,"./ta":744,"./ta.js":744,"./th":745,"./th.js":745,"./tl-ph":746,"./tl-ph.js":746,"./tr":747,"./tr.js":747,"./tzm":748,"./tzm-latn":749,"./tzm-latn.js":749,"./tzm.js":748,"./uk":750,"./uk.js":750,"./uz":751,"./uz.js":751,"./vi":752,"./vi.js":752,"./zh-cn":753,"./zh-cn.js":753,"./zh-tw":754,"./zh-tw.js":754};a.keys=function(){return Object.keys(s)},a.resolve=r,t.exports=a,a.id=676},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiem:function(t,e,n){return 12>t?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},a=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&10>=t%100?3:t%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},s=function(t){return function(e,n,s,i){var o=a(e),l=r[t][a(e)];return 2===o&&(l=l[n?0:1]),l.replace(/%d/i,e)}},i=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"];return t.defineLocale("ar",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},meridiem:function(t,e,n){return 12>t?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(t){return n[t]}).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};return t.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},meridiem:function(t,e,n){return 12>t?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(t){return n[t]}).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){var e={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};return t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiem:function(t,e,n){return 4>t?"gecə":12>t?"səhər":17>t?"gündüz":"axşam"},ordinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(t){if(0===t)return t+"-ıncı";var n=t%10,a=t%100-n,r=t>=100?100:null;return t+(e[n]||e[a]||e[r])},week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t,e){var n=t.split("_");return e%10===1&&e%100!==11?n[0]:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?n[1]:n[2]}function n(t,n,a){var r={mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===a?n?"хвіліна":"хвіліну":"h"===a?n?"гадзіна":"гадзіну":t+" "+e(r[a],+t)}function a(t,e){var n={nominative:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_"),accusative:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_")},a=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(e)?"accusative":"nominative";return n[a][t.month()]}function r(t,e){var n={nominative:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),accusative:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_")},a=/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/.test(e)?"accusative":"nominative";return n[a][t.day()]}return t.defineLocale("be",{months:a,monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:r,weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiem:function(t,e,n){return 4>t?"ночы":12>t?"раніцы":17>t?"дня":"вечара"},ordinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!==2&&t%10!==3||t%100===12||t%100===13?t+"-ы":t+"-і";case"D":return t+"-га";default:return t}},week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(t){var e=t%10,n=t%100;return 0===t?t+"-ев":0===n?t+"-ен":n>10&&20>n?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){var e={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};return t.defineLocale("bn",{months:"জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রুবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্রু_শনি".split("_"),weekdaysMin:"রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কএক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(t){return t.replace(/[১২৩৪৫৬৭৮৯০]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiem:function(t,e,n){return 4>t?"রাত":10>t?"শকাল":17>t?"দুপুর":20>t?"বিকেল":"রাত"},week:{dow:0,doy:6}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){var e={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};return t.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(t){return t.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiem:function(t,e,n){return 4>t?"མཚན་མོ":10>t?"ཞོགས་ཀས":17>t?"ཉིན་གུང":20>t?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t,e,n){var a={mm:"munutenn",MM:"miz",dd:"devezh"};return t+" "+r(a[n],t)}function n(t){switch(a(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}function a(t){return t>9?a(t%10):t}function r(t,e){return 2===e?s(t):t}function s(t){var e={m:"v",b:"v",d:"z"};return void 0===e[t.charAt(0)]?t:e[t.charAt(0)]+t.substring(1)}return t.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY LT",LLLL:"dddd, D [a viz] MMMM YYYY LT"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:n},ordinalParse:/\d{1,2}(añ|vet)/,ordinal:function(t){var e=1===t?"añ":"vet";return t+e},week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t,e,n){var a=t+" ";switch(n){case"m":return e?"jedna minuta":"jedne minute";case"mm":return a+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta";case"h":return e?"jedan sat":"jednog sata";case"hh":return a+=1===t?"sat":2===t||3===t||4===t?"sata":"sati";case"dd":return a+=1===t?"dan":"dana";case"MM":return a+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci";case"yy":return a+=1===t?"godina":2===t||3===t||4===t?"godine":"godina"}}return t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("ca",{months:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort:"gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(t,e){var n=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"è";return"w"!==e&&"W"!==e||(n="a"),t+n},week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t){return t>1&&5>t&&1!==~~(t/10)}function n(t,n,a,r){var s=t+" ";switch(a){case"s":return n||r?"pár sekund":"pár sekundami";case"m":return n?"minuta":r?"minutu":"minutou";case"mm":return n||r?s+(e(t)?"minuty":"minut"):s+"minutami";case"h":return n?"hodina":r?"hodinu":"hodinou";case"hh":return n||r?s+(e(t)?"hodiny":"hodin"):s+"hodinami";case"d":return n||r?"den":"dnem";case"dd":return n||r?s+(e(t)?"dny":"dní"):s+"dny";case"M":return n||r?"měsíc":"měsícem";case"MM":return n||r?s+(e(t)?"měsíce":"měsíců"):s+"měsíci";case"y":return n||r?"rok":"rokem";case"yy":return n||r?s+(e(t)?"roky":"let"):s+"lety"}}var a="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),r="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");return t.defineLocale("cs",{months:a,monthsShort:r,monthsParse:function(t,e){var n,a=[];for(n=0;12>n;n++)a[n]=new RegExp("^"+t[n]+"$|^"+e[n]+"$","i");return a}(a,r),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd D. MMMM YYYY LT"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("cv",{months:"кăрлач_нарăс_пуш_ака_май_çĕртме_утă_çурла_авăн_юпа_чӳк_раштав".split("_"),monthsShort:"кăр_нар_пуш_ака_май_çĕр_утă_çур_ав_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кĕçнерникун_эрнекун_шăматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кĕç_эрн_шăм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кç_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD-MM-YYYY",LL:"YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ]",LLL:"YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT",LLLL:"dddd, YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ĕнер] LT [сехетре]",nextWeek:"[Çитес] dddd LT [сехетре]",lastWeek:"[Иртнĕ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(t){var e=/сехет$/i.exec(t)?"рен":/çул$/i.exec(t)?"тан":"ран";return t+e},past:"%s каялла",s:"пĕр-ик çеккунт",m:"пĕр минут",mm:"%d минут",h:"пĕр сехет",hh:"%d сехет",d:"пĕр кун",dd:"%d кун",M:"пĕр уйăх",MM:"%d уйăх",y:"пĕр çул",yy:"%d çул"},ordinalParse:/\d{1,2}-мĕш/,ordinal:"%d-мĕш",week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},ordinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(t){var e=t,n="",a=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return e>20?n=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(n=a[e]),t+n},week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd [d.] D. MMMM YYYY LT"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t,e,n,a){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?r[n][0]:r[n][1]}return t.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Heute um] LT [Uhr]",sameElse:"L",nextDay:"[Morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[Gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t,e,n,a){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?r[n][0]:r[n][1]}return t.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Heute um] LT [Uhr]",sameElse:"L",nextDay:"[Morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[Gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(t,e){return/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(t,e,n){return t>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(t){return"μ"===(t+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT", lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(t,e){var n=this._calendarEl[t],a=e&&e.hours();return"function"==typeof n&&(n=n.apply(e)),n.replace("{}",a%12===1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},ordinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"D MMMM, YYYY",LLL:"D MMMM, YYYY LT",LLLL:"dddd, D MMMM, YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"),weekdaysShort:"Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Ĵa_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"D[-an de] MMMM, YYYY",LLL:"D[-an de] MMMM, YYYY LT",LLLL:"dddd, [la] D[-an de] MMMM, YYYY LT"},meridiem:function(t,e,n){return t>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"je %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},ordinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");return t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,a){return/-MMM-/.test(a)?n[t.month()]:e[t.month()]},weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mi_Ju_Vi_Sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY LT",LLLL:"dddd, D [de] MMMM [de] YYYY LT"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t,e,n,a){var r={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[t+" minuti",t+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[t+" tunni",t+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[t+" kuu",t+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[t+" aasta",t+" aastat"]};return e?r[n][2]?r[n][2]:r[n][1]:a?r[n][0]:r[n][1]}return t.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d päeva",M:e,MM:e,y:e,yy:e},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] LT",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] LT",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] LT",llll:"ddd, YYYY[ko] MMM D[a] LT"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){var e={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};return t.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},meridiem:function(t,e,n){return 12>t?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چندین ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(t){return t.replace(/[۰-۹]/g,function(t){return n[t]}).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"،")},ordinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t,e,a,r){var s="";switch(a){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"m":return r?"minuutin":"minuutti";case"mm":s=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":s=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":s=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":s=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":s=r?"vuoden":"vuotta"}return s=n(t,r)+" "+s}function n(t,e){return 10>t?e?r[t]:a[t]:t}var a="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),r=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",a[7],a[8],a[9]];return t.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] LT",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] LT",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] LT",llll:"ddd, Do MMM YYYY, [klo] LT"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D. MMMM, YYYY LT"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(t){return t+(1===t?"er":"")},week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(t){return t+(1===t?"er":"")}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("gl",{months:"Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro".split("_"),monthsShort:"Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),weekdays:"Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),weekdaysShort:"Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(t){return"uns segundos"===t?"nuns segundos":"en "+t},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY LT",LLLL:"dddd, D [ב]MMMM YYYY LT",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY LT",llll:"ddd, D MMM YYYY LT"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(t){return 2===t?"שעתיים":t+" שעות"},d:"יום",dd:function(t){return 2===t?"יומיים":t+" ימים"},M:"חודש",MM:function(t){return 2===t?"חודשיים":t+" חודשים"},y:"שנה",yy:function(t){return 2===t?"שנתיים":t+" שנים"}}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return t.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiem:function(t,e,n){return 4>t?"रात":10>t?"सुबह":17>t?"दोपहर":20>t?"शाम":"रात"},week:{dow:0,doy:6}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t,e,n){var a=t+" ";switch(n){case"m":return e?"jedna minuta":"jedne minute";case"mm":return a+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta";case"h":return e?"jedan sat":"jednog sata";case"hh":return a+=1===t?"sat":2===t||3===t||4===t?"sata":"sati";case"dd":return a+=1===t?"dan":"dana";case"MM":return a+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci";case"yy":return a+=1===t?"godina":2===t||3===t||4===t?"godine":"godina"}}return t.defineLocale("hr",{months:"sječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"),monthsShort:"sje._vel._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t,e,n,a){var r=t;switch(n){case"s":return a||e?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(a||e?" perc":" perce");case"mm":return r+(a||e?" perc":" perce");case"h":return"egy"+(a||e?" óra":" órája");case"hh":return r+(a||e?" óra":" órája");case"d":return"egy"+(a||e?" nap":" napja");case"dd":return r+(a||e?" nap":" napja");case"M":return"egy"+(a||e?" hónap":" hónapja");case"MM":return r+(a||e?" hónap":" hónapja");case"y":return"egy"+(a||e?" év":" éve");case"yy":return r+(a||e?" év":" éve")}return""}function n(t){return(t?"":"[múlt] ")+"["+a[this.day()]+"] LT[-kor]"}var a="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");return t.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D., LT",LLLL:"YYYY. MMMM D., dddd LT"},meridiem:function(t,e,n){return 12>t?n===!0?"de":"DE":n===!0?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t,e){var n={nominative:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_"),accusative:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_")},a=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(e)?"accusative":"nominative";return n[a][t.month()]}function n(t,e){var n="հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_");return n[t.month()]}function a(t,e){var n="կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_");return n[t.day()]}return t.defineLocale("hy-am",{months:e,monthsShort:n,weekdays:a,weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., LT",LLLL:"dddd, D MMMM YYYY թ., LT"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiem:function(t){return 4>t?"գիշերվա":12>t?"առավոտվա":17>t?"ցերեկվա":"երեկոյան"},ordinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-ին":t+"-րդ";default:return t}},week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"LT.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] LT",LLLL:"dddd, D MMMM YYYY [pukul] LT"},meridiem:function(t,e,n){return 11>t?"pagi":15>t?"siang":19>t?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t){return t%100===11?!0:t%10!==1}function n(t,n,a,r){var s=t+" ";switch(a){case"s":return n||r?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return n?"mínúta":"mínútu";case"mm":return e(t)?s+(n||r?"mínútur":"mínútum"):n?s+"mínúta":s+"mínútu";case"hh":return e(t)?s+(n||r?"klukkustundir":"klukkustundum"):s+"klukkustund";case"d":return n?"dagur":r?"dag":"degi";case"dd":return e(t)?n?s+"dagar":s+(r?"daga":"dögum"):n?s+"dagur":s+(r?"dag":"degi");case"M":return n?"mánuður":r?"mánuð":"mánuði";case"MM":return e(t)?n?s+"mánuðir":s+(r?"mánuði":"mánuðum"):n?s+"mánuður":s+(r?"mánuð":"mánuði");case"y":return n||r?"ár":"ári";case"yy":return e(t)?s+(n||r?"ár":"árum"):s+(n||r?"ár":"ári")}}return t.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] LT",LLLL:"dddd, D. MMMM YYYY [kl.] LT"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"D_L_Ma_Me_G_V_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"LTs秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日LT",LLLL:"YYYY年M月D日LT dddd"},meridiem:function(t,e,n){return 12>t?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t,e){var n={nominative:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),accusative:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},a=/D[oD] *MMMM?/.test(e)?"accusative":"nominative";return n[a][t.month()]}function n(t,e){var n={nominative:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),accusative:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_")},a=/(წინა|შემდეგ)/.test(e)?"accusative":"nominative";return n[a][t.day()]}return t.defineLocale("ka",{months:e,monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:n,weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(t){return/(წამი|წუთი|საათი|წელი)/.test(t)?t.replace(/ი$/,"ში"):t+"ში"},past:function(t){return/(წამი|წუთი|საათი|დღე|თვე)/.test(t)?t.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(t)?t.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},ordinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(t){return 0===t?t:1===t?t+"-ლი":20>t||100>=t&&t%20===0||t%100===0?"მე-"+t:t+"-ე"},week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("km",{months:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"), weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[ថ្ងៃនៈ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 LT",LLLL:"YYYY년 MMMM D일 dddd LT"},meridiem:function(t,e,n){return 12>t?"오전":"오후"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇초",ss:"%d초",m:"일분",mm:"%d분",h:"한시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한달",MM:"%d달",y:"일년",yy:"%d년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/(오전|오후)/,isPM:function(t){return"오후"===t}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t,e,n,a){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return e?r[n][0]:r[n][1]}function n(t){var e=t.substr(0,t.indexOf(" "));return r(e)?"a "+t:"an "+t}function a(t){var e=t.substr(0,t.indexOf(" "));return r(e)?"viru "+t:"virun "+t}function r(t){if(t=parseInt(t,10),isNaN(t))return!1;if(0>t)return!0;if(10>t)return t>=4&&7>=t;if(100>t){var e=t%10,n=t/10;return r(0===e?n:e)}if(1e4>t){for(;t>=10;)t/=10;return r(t)}return t/=1e3,r(t)}return t.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:a,s:"e puer Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d Méint",y:e,yy:"%d Joer"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t,e,n,a){return e?"kelios sekundės":a?"kelių sekundžių":"kelias sekundes"}function n(t,e,n,a){return e?r(n)[0]:a?r(n)[1]:r(n)[2]}function a(t){return t%10===0||t>10&&20>t}function r(t){return o[t].split("_")}function s(t,e,s,i){var o=t+" ";return 1===t?o+n(t,e,s[0],i):e?o+(a(t)?r(s)[1]:r(s)[0]):i?o+r(s)[1]:o+(a(t)?r(s)[1]:r(s)[2])}function i(t,e){var n=-1===e.indexOf("dddd HH:mm"),a=l[t.day()];return n?a:a.substring(0,a.length-2)+"į"}var o={m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"},l="sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_");return t.defineLocale("lt",{months:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:i,weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], LT [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, LT [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], LT [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, LT [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:e,m:n,mm:s,h:n,hh:s,d:n,dd:s,M:n,MM:s,y:n,yy:s},ordinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t,e,n){var a=t.split("_");return n?e%10===1&&11!==e?a[2]:a[3]:e%10===1&&11!==e?a[0]:a[1]}function n(t,n,r){return t+" "+e(a[r],t,n)}var a={mm:"minūti_minūtes_minūte_minūtes",hh:"stundu_stundas_stunda_stundas",dd:"dienu_dienas_diena_dienas",MM:"mēnesi_mēnešus_mēnesis_mēneši",yy:"gadu_gadus_gads_gadi"};return t.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, LT",LLLL:"YYYY. [gada] D. MMMM, dddd, LT"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"%s vēlāk",past:"%s agrāk",s:"dažas sekundes",m:"minūti",mm:n,h:"stundu",hh:n,d:"dienu",dd:n,M:"mēnesi",MM:n,y:"gadu",yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Во изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Во изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(t){var e=t%10,n=t%100;return 0===t?t+"-ев":0===n?t+"-ен":n>10&&20>n?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiem:function(t,e,n){return 4>t?"രാത്രി":12>t?"രാവിലെ":17>t?"ഉച്ച കഴിഞ്ഞ്":20>t?"വൈകുന്നേരം":"രാത്രി"}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return t.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%s नंतर",past:"%s पूर्वी",s:"सेकंद",m:"एक मिनिट",mm:"%d मिनिटे",h:"एक तास",hh:"%d तास",d:"एक दिवस",dd:"%d दिवस",M:"एक महिना",MM:"%d महिने",y:"एक वर्ष",yy:"%d वर्षे"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiem:function(t,e,n){return 4>t?"रात्री":10>t?"सकाळी":17>t?"दुपारी":20>t?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"LT.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] LT",LLLL:"dddd, D MMMM YYYY [pukul] LT"},meridiem:function(t,e,n){return 11>t?"pagi":15>t?"tengahari":19>t?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){var e={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};return t.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(t){return t.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tirs_ons_tors_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"H.mm",LTS:"LT.ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] LT",LLLL:"dddd D. MMMM YYYY [kl.] LT"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return t.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आइ._सो._मङ्_बु._बि._शु._श.".split("_"),longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiem:function(t,e,n){return 3>t?"राती":10>t?"बिहान":15>t?"दिउँसो":18>t?"बेलुका":20>t?"साँझ":"राती"},calendar:{sameDay:"[आज] LT",nextDay:"[भोली] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडी",s:"केही समय",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_");return t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,a){return/-MMM-/.test(a)?n[t.month()]:e[t.month()]},weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t){return 5>t%10&&t%10>1&&~~(t/10)%10!==1}function n(t,n,a){var r=t+" ";switch(a){case"m":return n?"minuta":"minutę";case"mm":return r+(e(t)?"minuty":"minut");case"h":return n?"godzina":"godzinę";case"hh":return r+(e(t)?"godziny":"godzin");case"MM":return r+(e(t)?"miesiące":"miesięcy");case"yy":return r+(e(t)?"lata":"lat")}}var a="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),r="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");return t.defineLocale("pl",{months:function(t,e){return/D MMMM/.test(e)?r[t.month()]:a[t.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"N_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:n,mm:n,h:n,hh:n,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:n,y:"rok",yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY LT",LLLL:"dddd, D [de] MMMM [de] YYYY LT"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] LT",LLLL:"dddd, D [de] MMMM [de] YYYY [às] LT"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t,e,n){var a={mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"},r=" ";return(t%100>=20||t>=100&&t%100===0)&&(r=" de "),t+r+a[n]}return t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:e,h:"o oră",hh:e,d:"o zi",dd:e,M:"o lună",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t,e){var n=t.split("_");return e%10===1&&e%100!==11?n[0]:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?n[1]:n[2]}function n(t,n,a){var r={mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===a?n?"минута":"минуту":t+" "+e(r[a],+t)}function a(t,e){var n={nominative:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),accusative:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_")},a=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(e)?"accusative":"nominative";return n[a][t.month()]}function r(t,e){var n={nominative:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),accusative:"янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек".split("_")},a=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(e)?"accusative":"nominative";return n[a][t.month()]}function s(t,e){var n={nominative:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),accusative:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_")},a=/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/.test(e)?"accusative":"nominative";return n[a][t.day()]}return t.defineLocale("ru",{months:a,monthsShort:r,weekdays:s,weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[й|я]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(){return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT"},lastWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:n,mm:n,h:"час",hh:n,d:"день",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(t){return/^(дня|вечера)$/.test(t)},meridiem:function(t,e,n){return 4>t?"ночи":12>t?"утра":17>t?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-й";case"D":return t+"-го";case"w":case"W":return t+"-я";default:return t}},week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t){return t>1&&5>t}function n(t,n,a,r){var s=t+" ";switch(a){case"s":return n||r?"pár sekúnd":"pár sekundami";case"m":return n?"minúta":r?"minútu":"minútou";case"mm":return n||r?s+(e(t)?"minúty":"minút"):s+"minútami";case"h":return n?"hodina":r?"hodinu":"hodinou";case"hh":return n||r?s+(e(t)?"hodiny":"hodín"):s+"hodinami";case"d":return n||r?"deň":"dňom";case"dd":return n||r?s+(e(t)?"dni":"dní"):s+"dňami";case"M":return n||r?"mesiac":"mesiacom";case"MM":return n||r?s+(e(t)?"mesiace":"mesiacov"):s+"mesiacmi";case"y":return n||r?"rok":"rokom";case"yy":return n||r?s+(e(t)?"roky":"rokov"):s+"rokmi"}}var a="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),r="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");return t.defineLocale("sk",{months:a,monthsShort:r,monthsParse:function(t,e){var n,a=[];for(n=0;12>n;n++)a[n]=new RegExp("^"+t[n]+"$|^"+e[n]+"$","i");return a}(a,r),weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd D. MMMM YYYY LT"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t,e,n){var a=t+" ";switch(n){case"m":return e?"ena minuta":"eno minuto";case"mm":return a+=1===t?"minuta":2===t?"minuti":3===t||4===t?"minute":"minut";case"h":return e?"ena ura":"eno uro";case"hh":return a+=1===t?"ura":2===t?"uri":3===t||4===t?"ure":"ur";case"dd":return a+=1===t?"dan":"dni";case"MM":return a+=1===t?"mesec":2===t?"meseca":3===t||4===t?"mesece":"mesecev";case"yy":return a+=1===t?"leto":2===t?"leti":3===t||4===t?"leta":"let"}}return t.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[prejšnja] dddd [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"%s nazaj",s:"nekaj sekund",m:e,mm:e,h:e,hh:e,d:"en dan",dd:e,M:"en mesec",MM:e,y:"eno leto",yy:e},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),meridiem:function(t,e,n){return 12>t?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){var e={words:{m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&4>=t?e[1]:e[2]},translate:function(t,n,a){var r=e.words[a];return 1===a.length?n?r[0]:r[1]:t+" "+e.correctGrammaticalCase(t,r)}};return t.defineLocale("sr",{months:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"],monthsShort:["jan.","feb.","mar.","apr.","maj","jun","jul","avg.","sep.","okt.","nov.","dec."],weekdays:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],weekdaysShort:["ned.","pon.","uto.","sre.","čet.","pet.","sub."],weekdaysMin:["ne","po","ut","sr","če","pe","su"],longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"; }},lastDay:"[juče u] LT",lastWeek:function(){var t=["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return t[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mesec",MM:e.translate,y:"godinu",yy:e.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){var e={words:{m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&4>=t?e[1]:e[2]},translate:function(t,n,a){var r=e.words[a];return 1===a.length?n?r[0]:r[1]:t+" "+e.correctGrammaticalCase(t,r)}};return t.defineLocale("sr-cyrl",{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],monthsShort:["јан.","феб.","мар.","апр.","мај","јун","јул","авг.","сеп.","окт.","нов.","дец."],weekdays:["недеља","понедељак","уторак","среда","четвртак","петак","субота"],weekdaysShort:["нед.","пон.","уто.","сре.","чет.","пет.","суб."],weekdaysMin:["не","по","ут","ср","че","пе","су"],longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var t=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return t[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"дан",dd:e.translate,M:"месец",MM:e.translate,y:"годину",yy:e.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"dddd LT",lastWeek:"[Förra] dddd[en] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}(e|a)/,ordinal:function(t){var e=t%10,n=1===~~(t%100/10)?"e":1===e?"a":2===e?"a":"e";return t+n},week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},ordinalParse:/\d{1,2}வது/,ordinal:function(t){return t+"வது"},meridiem:function(t,e,n){return t>=6&&10>=t?" காலை":t>=10&&14>=t?" நண்பகல்":t>=14&&18>=t?" எற்பாடு":t>=18&&20>=t?" மாலை":t>=20&&24>=t?" இரவு":t>=0&&6>=t?" வைகறை":void 0},week:{dow:0,doy:6}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา".split("_"),weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),longDateFormat:{LT:"H นาฬิกา m นาที",LTS:"LT s วินาที",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา LT",LLLL:"วันddddที่ D MMMM YYYY เวลา LT"},meridiem:function(t,e,n){return 12>t?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM DD, YYYY LT"},calendar:{sameDay:"[Ngayon sa] LT",nextDay:"[Bukas sa] LT",nextWeek:"dddd [sa] LT",lastDay:"[Kahapon sa] LT",lastWeek:"dddd [huling linggo] LT",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},ordinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};return t.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(t){if(0===t)return t+"'ıncı";var n=t%10,a=t%100-n,r=t>=100?100:null;return t+(e[n]||e[a]||e[r])},week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){function e(t,e){var n=t.split("_");return e%10===1&&e%100!==11?n[0]:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?n[1]:n[2]}function n(t,n,a){var r={mm:"хвилина_хвилини_хвилин",hh:"година_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===a?n?"хвилина":"хвилину":"h"===a?n?"година":"годину":t+" "+e(r[a],+t)}function a(t,e){var n={nominative:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),accusative:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_")},a=/D[oD]? *MMMM?/.test(e)?"accusative":"nominative";return n[a][t.month()]}function r(t,e){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},a=/(\[[ВвУу]\]) ?dddd/.test(e)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(e)?"genitive":"nominative";return n[a][t.day()]}function s(t){return function(){return t+"о"+(11===this.hours()?"б":"")+"] LT"}}return t.defineLocale("uk",{months:a,monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:r,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., LT",LLLL:"dddd, D MMMM YYYY р., LT"},calendar:{sameDay:s("[Сьогодні "),nextDay:s("[Завтра "),lastDay:s("[Вчора "),nextWeek:s("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return s("[Минулої] dddd [").call(this);case 1:case 2:case 4:return s("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiem:function(t,e,n){return 4>t?"ночі":12>t?"ранку":17>t?"дня":"вечора"},ordinalParse:/\d{1,2}-(й|го)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-й";case"D":return t+"-го";default:return t}},week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("uz",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"D MMMM YYYY, dddd LT"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY LT",LLLL:"dddd, D MMMM [năm] YYYY LT",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY LT",llll:"ddd, D MMM YYYY LT"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})})},function(t,e,n){var a,r,s;!function(i){r=[n(675)],a=i,s="function"==typeof a?a.apply(e,r):a,!(void 0!==s&&(t.exports=s))}(function(t){return t.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日LT",LLLL:"YYYY年MMMD日ddddLT",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日LT",llll:"YYYY年MMMD日ddddLT"},meridiem:function(t,e,n){var a=100*t+e;return 600>a?"凌晨":900>a?"早上":1130>a?"上午":1230>a?"中午":1800>a?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var e,n;return e=t().startOf("week"),n=this.unix()-e.unix()>=604800?"[下]":"[本]",0===this.minutes()?n+"dddAh点整":n+"dddAh点mm"},lastWeek:function(){var e,n;return e=t().startOf("week"),n=this.unix()a?"早上":1130>a?"上午":1230>a?"中午":1800>a?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"一分鐘",mm:"%d分鐘",h:"一小時",hh:"%d小時",d:"一天",dd:"%d天",M:"一個月",MM:"%d個月",y:"一年",yy:"%d年"}})})},function(t,e,n){var a,r,s;r=n(294),s=n(524),a=r.createClass({render:function(){var t,e;return t=this.props.prop.formItem1.component,e=this.props.prop.formItem2.component,r.createElement("div",{id:this.props.id,className:s(this.props.prop.customClass,"text-center")},r.createElement(t,{id:this.props.prop.formItem1.id,prop:this.props.prop.formItem1.prop}),this.props.prop.separator,r.createElement(e,{id:this.props.prop.formItem2.id,prop:this.props.prop.formItem2.prop}))}}),t.exports=a},function(t,e,n){var a,r,s,i,o,l,u,c;u=n(294),o=n(151),l=n(757),i=n(671),r=n(672),c=n(759),s=n(669),a=u.createClass({didQueryParamsChange:function(t){return t.requestId!==this.props.requestId?!0:t.global!==this.props.global?!0:t.deployId!==this.props.deployId?!0:t.host!==this.props.host?!0:t.lastTaskStatus!==this.props.lastTaskStatus?!0:t.startedBefore!==this.props.startedBefore?!0:t.startedAfter!==this.props.startedAfter?!0:t.sortDirection!==this.props.sortDirection?!0:t.page!==this.props.page?!0:t.count!==this.props.count},getInitialState:function(){return this.willFetch=!1,{loading:!0}},getEmptyTableMessage:function(){return this.props.holdOffOnSearching?"Enter parameters above to view tasks.":this.state.loading?"Loading Tasks...":"No Tasks Found"},fetchCollection:function(){return this.props.holdOffOnSearching||(this.willFetch=!1),this.collection=new o([],{params:{requestId:this.props.requestId,deployId:this.props.deployId,host:this.props.host,lastTaskStatus:this.props.lastTaskStatus,startedBefore:this.props.startedBefore?this.props.startedBefore.valueOf():void 0,startedAfter:this.props.startedAfter?this.props.startedAfter.valueOf():void 0,orderDirection:this.props.sortDirection,count:this.props.count,page:this.props.page}}),this.props.holdOffOnSearching?void 0:this.collection.fetch({success:function(t){return function(){return t.setState({loading:!1})}}(this)})},componentWillMount:function(){return this.fetchCollection()},componentWillReceiveProps:function(t){return this.didQueryParamsChange(t)||this.props.holdOffOnSearching&&!t.holdOffOnSearching?(this.willFetch=!0,this.setState({loading:!0})):void 0},renderPageNavBar:function(){return u.createElement(TableNavigationBar,{currentPage:this.collection.params.page,decreasePageNumber:this.props.decreasePageNumber,increasePageNumber:this.props.increasePageNumber,setPageNumber:this.props.setPageNumber,numberPerPage:this.props.count,objectsBeingDisplayed:"Tasks",numberPerPageChoices:this.props.countChoices,setNumberPerPage:this.props.updateCount,sortDirection:this.props.sortDirection,sortDirectionChoices:s.sortDirections(),setSortDirection:this.props.updateSortDirection})},render:function(){return this.willFetch&&this.fetchCollection(),u.createElement("div",{className:"col-xl-12"},u.createElement(c,{models:this.collection.models,sortDirection:this.props.sortDirection,sortDirectionAscending:s.sortDirections()[0].value,sortBy:"Started",sortableByStarted:!0,sortByStarted:this.props.updateSortDirection,rowsPerPageChoices:this.props.countChoices,setRowsPerPage:this.props.updateCount,pageNumber:this.collection.params.page,pageDown:this.props.decreasePageNumber,pageUp:this.props.increasePageNumber,emptyTableMessage:this.getEmptyTableMessage()}))}}),t.exports=a},function(t,e,n){var a,r,s;s=n(294),a=n(758),r=s.createClass({renderParameters:function(){return this.props.parameters.map(function(t){return function(t,e){return t.show?s.createElement("div",{key:e},s.createElement(a,{paramName:t.name,paramValue:t.value,clearFn:t.clearFn,cantClear:t.cantClear})):void 0}}(this))},render:function(){return s.createElement("div",{className:"row"},s.createElement("div",{className:"col-"+this.props.colSize},s.createElement("ul",{className:"list-group"},this.renderParameters())))}}),t.exports=r},function(t,e,n){var a,r,s,i;s=n(294),i=n(524),a=n(559),r=s.createClass({getClassName:function(){return i({"list-group-item":!0,disabled:this.props.prop.cantClear})},render:function(){return s.createElement("li",{className:i({"list-group-item":!0,disabled:this.props.prop.cantClear})},s.createElement("b",null,this.props.prop.paramName,":")," ",this.props.prop.paramValue,this.props.prop.cantClear?void 0:s.createElement(a,{prop:{ariaLabel:"Remove this parameter",iconClass:"remove",className:["remove-query-param","pull-right"],btnClass:"default",btn:!1,onClick:this.props.prop.clearFn}}))}}),t.exports=r},function(t,e,n){var a,r,s,i,o,l,u,c,p,d;o=n(294),l=n(448),p=n(561),u=n(760),s=n(449),r=n(559),a=n(558),i=n(560),d=n(2),c=o.createClass({render:function(){var t,e;return t=[{},{data:"Request ID",className:"hidden-sm hidden-xs",sortable:this.props.sortableByRequestId,doSort:this.props.sortByRequestId,sortAttr:"requestId"},{data:"Deploy ID",className:"hidden-sm hidden-xs",sortable:this.props.sortableByDeployId,doSort:this.props.sortByDeployId,sortAttr:"deployId"},{data:"Host",className:"hidden-sm hidden-xs",sortable:this.props.sortableByHost,doSort:this.props.sortByHost,sortAttr:"host"},{data:"Last Status",className:"hidden-sm hidden-xs",sortable:this.props.sortableByLastStatus,doSort:this.props.sortByLastStatus,sortAttr:"lastTaskState"},{data:"Started",className:"hidden-sm hidden-xs",sortable:this.props.sortableByStarted,doSort:this.props.sortByStarted,sortAttr:"startedAt"},{data:"Updated",className:"hidden-xs",sortable:this.props.sortableByUpdated,doSort:this.props.sortByUpdated,sortAttr:"updatedAt"},{className:"hidden-xs"},{className:"hidden-xs"}],e=[],this.props.models.map(function(t){var n;return n=function(e){return d.viewJSON(t)},e.push({dataId:t.taskId.id,dataCollection:"taskHistory",data:[{component:s,className:"actions-column",id:"linkForTask"+t.taskId.id,prop:{text:o.createElement(a,{iconClass:"link"}),url:window.config.appRoot+"/task/"+t.taskId.id,altText:"Task "+t.taskId.id,title:"Go To Task",overlayTrigger:!0,overlayTriggerPlacement:"top",overlayToolTipContent:"Go To Task",overlayId:"overlayForLinkToTask"+t.taskId.id}},{component:s,className:"hidden-sm hidden-xs long-link",prop:{text:t.taskId.requestId,url:window.config.appRoot+"/request/"+t.taskId.requestId+"/",altText:"Request "+t.taskId.requestId}},{component:s,className:"hidden-sm hidden-xs",prop:{text:t.taskId.deployId,url:window.config.appRoot+"/request/"+t.taskId.requestId+"/deploy/"+t.taskId.deployId,altText:"Deploy "+t.taskId.deployId}},{component:i,className:"hidden-sm hidden-xs",prop:{text:t.taskId.host}},{component:u,className:"hidden-sm hidden-xs",prop:{taskState:t.lastTaskState}},{component:p,className:"hidden-sm hidden-xs",prop:{timestamp:t.taskId.startedAt,display:"timeStampFromNow"}},{component:p,className:"hidden-xs",prop:{timestamp:t.updatedAt,display:"timeStampFromNow"}},{component:s,className:"hidden-xs actions-column",prop:{text:o.createElement(a,{iconClass:"option-horizontal"}),url:window.config.appRoot+"/request/"+t.taskId.requestId+"/tail/stdout/?taskIds="+t.taskId.id,title:"Log",altText:"Logs for task "+t.taskId.id,overlayTrigger:!0,overlayTriggerPlacement:"top",overlayToolTipContent:"Logs",overlayId:"overlayForLogsOfTask"+t.taskId.id}},{component:s,className:"hidden-xs actions-column",prop:{text:"{ }",url:"#",title:"JSON",onClickFn:n,altText:"View JSON for task "+t.taskId.id,id:t.taskId.id,overlayTrigger:!0,overlayTriggerPlacement:"top",overlayToolTipContent:"JSON",overlayId:"overlayForJSONOfTask"+t.taskId.id}}]})}),o.createElement(l,{tableClassOpts:"table-striped",columnHeads:t,tableRows:e,sortDirection:this.props.sortDirection,sortDirectionAscending:this.props.sortDirectionAscending,sortBy:this.props.sortBy,emptyTableMessage:this.props.emptyTableMessage||"No Tasks",customSorting:!0,customPaging:!0,rowsPerPageChoices:this.props.rowsPerPageChoices,setRowsPerPage:this.props.setRowsPerPage,pageNumber:this.props.pageNumber,pageDown:this.props.pageDown,pageUp:this.props.pageUp,dataCollection:"taskHistory"})}}),t.exports=c},function(t,e,n){var a,r,s,i;a=n(294),i=n(524),s=n(2),r=a.createClass({getLabelClass:function(){return s.getLabelClassFromTaskState(this.props.prop.taskState)},getClass:function(){return i("label","label-"+this.getLabelClass(),this.props.prop.className)},render:function(){return a.createElement("span",{className:this.getClass(),label:"Task State: "+s.humanizeText(this.props.prop.taskState)},s.humanizeText(this.props.prop.taskState))}}),t.exports=r},function(t,e,n){var a,r,s;s=n(294),a=n(558),r=s.createClass({render:function(){return s.createElement("div",null,this.props.global?void 0:s.createElement("a",{className:"btn btn-danger",href:window.config.appRoot+"/request/"+this.props.requestId,alt:"Return to Request "+this.props.requestId},s.createElement(a,{iconClass:"arrow-left"})," Back to ",this.props.requestId),s.createElement("h1",null,this.props.global?"Global":void 0," Historical Tasks"))}}),t.exports=r},function(t,e,n){var a,r,s,i,o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty;a=n(19),i=n(763),r=n(766),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.initialize=function(){return this.title("Webhooks"),this.collections.webhooks=new r([]),this.setView(new i({collections:this.collections,fetched:!1})),this.collections.webhooks.fetch().done(function(t){return function(){return app.showView(t.view),t.view.fetched=!0}}(this))},e.prototype.refresh=function(){return this.collections.webhooks.fetch().done(function(t){return function(){return t.view.fetched=!0}}(this))},e}(a),t.exports=s},function(t,e,n){(function(e){var a,r,s,i,o,l=function(t,e){function n(){this.constructor=t}for(var a in e)u.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=n(294),r=n(446),i=n(764),s=n(201),o=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return l(n,t),n.prototype.initialize=function(t,e){this.collections=t.collections,this.fetched=t.fetched},n.prototype.render=function(){return e(this.el).addClass("webhooks-root"),r.render(a.createElement(i,{fetched:this.fetched,collections:this.collections}),this.el)},n}(s),t.exports=o}).call(e,n(1))},function(t,e,n){(function(e){var a,r,s,i,o,l,u,c,p,d,h;o=n(294),l=n(446),p=n(2),u=n(448),i=n(560),c=n(561),r=n(449),a=n(558),s=n(765),h=n(14),d=o.createClass({defaultRowsPerPage:10,rowsPerPageChoices:[10,20],webhookTypes:["REQUEST","DEPLOY","TASK"],sortBy:function(t,e){return this.props.collections.webhooks.sortBy(t,e),this.forceUpdate()},webhookColumns:function(){var t;return t=this.sortBy,[{data:"URL",sortable:!0,doSort:function(e){return function(e){return t("uri",e)}}(this)},{data:"Type",sortable:!0,doSort:function(e){return function(e){return t("type",e)}}(this)},{data:"Timestamp",className:"hidden-xs",sortable:!0,doSort:function(e){return function(e){return t("timestamp",e)}}(this)},{data:"User",className:"hidden-xs",sortable:!0,doSort:function(e){return function(e){return t("user",e)}}(this)},{data:"Queue Size",sortable:!0,doSort:function(e){return function(e){return t("queueSize",e)}}(this)},{className:"hidden-xs"}]},deleteWebhook:function(t){return e.ajax({url:config.apiRoot+"/webhooks/?webhookId="+t.attributes.webhook.id,type:"DELETE",success:function(t){return function(){return t.props.collections.webhooks.fetch().done(function(){return t.forceUpdate()})}}(this)})},promptDeleteWebhook:function(t){var n;return n=function(t){return function(e){return t.deleteWebhook(e)}}(this),h.dialog.confirm({message:"
    ",afterOpen:function(n){return function(){return l.render(o.createElement("div",null,o.createElement("pre",null,"(",t.attributes.webhook.type,") ",t.attributes.webhook.uri),o.createElement("p",null,"Are you sure you want to delete this webhook?")),e(".delete-webhook").get(0))}}(this),callback:function(e){return function(e){return e?n(t):void 0}}(this)})},newWebhook:function(t,n){var a;return a={uri:t,type:n},app.user.attributes.authenticated&&(a.user=app.user.attributes.user.id),e.ajax({url:config.apiRoot+"/webhooks",type:"POST",contentType:"application/json",data:JSON.stringify(a),success:function(t){return function(){return t.props.collections.webhooks.fetch().done(function(){return t.forceUpdate()})}}(this)})},promptNewWebhook:function(){var t;return t=function(t){return function(e,n){return t.newWebhook(e,n)}}(this),h.dialog.open({message:"
    ",afterOpen:function(t){return function(){return t.validateInput=function(t){var e,n;try{return new URL(t),!0}catch(n){return e=n,!1}},t.renderedForm=l.render(o.createElement(s,{getErrors:function(){return t.errors},webhookTypes:t.webhookTypes,setType:function(e){return t.type=e},setUri:function(e){return t.uri=e}}),e(".new-webhook").get(0))}}(this),beforeClose:function(t){return function(){var e;return t.data?(t.errors=[],e=t.validateInput(t.uri),t.type||t.errors.push("Please select a type"),e||t.errors.push("Invalid URL entered"),e&&t.type||t.renderedForm.forceUpdate(),e&&t.type?(t.type="",t.uri="",!0):!1):!0}}(this),callback:function(e){return function(n){var a;return e.data=n,e.type&&n&&e.validateInput(e.uri)?(a=e.type,t(e.uri,a)):void 0}}(this)})},getWebhookTableData:function(){var t;return t=[],this.props.collections.webhooks.map(function(e){return function(n){return t.push({dataId:n.attributes.webhook.id,dataCollection:"webhooks",data:[{component:i,prop:{text:n.attributes.webhook.uri}},{component:i,prop:{text:p.humanizeText(n.attributes.webhook.type)}},{component:c,className:"hidden-xs",prop:{timestamp:n.attributes.webhook.timestamp,display:"absoluteTimestamp"}},{component:i,className:"hidden-xs",prop:{text:n.attributes.webhook.user||"N/A"}},{component:i,prop:{text:o.createElement("b",null,n.attributes.queueSize)}},{component:r,className:"hidden-xs actions-column",prop:{text:o.createElement(a,{iconClass:"trash"}),onClickFn:function(){return e.promptDeleteWebhook(n)},title:"Delete",altText:"Delete this webhook",overlayTrigger:!0,overlayTriggerPlacement:"top",overlayToolTipContent:"Delete This Webhook", overlayId:"deleteWebhook"+n.attributes.webhook.id}}]})}}(this)),t},render:function(){return o.createElement("div",null,o.createElement("div",{className:"row"},o.createElement("div",{className:"col-md-10"},o.createElement("span",{className:"h1"},"Webhooks")),o.createElement("div",{className:"col-md-2 button-container"},o.createElement("button",{className:"btn btn-success",alt:"Create a new webhook",title:"newWebhook",onClick:this.promptNewWebhook}," New Webhook "))),o.createElement(u,{defaultRowsPerPage:this.defaultRowsPerPage,rowsPerPageChoices:this.rowsPerPageChoices,tableClassOpts:"table-striped",columnHeads:this.webhookColumns(),tableRows:this.getWebhookTableData(),emptyTableMessage:"No Webhooks",dataCollection:"webhooks"}))}}),t.exports=d}).call(e,n(1))},function(t,e,n){var a,r,s,i;s=n(294),i=n(2),a=n(671),r=s.createClass({getInitialState:function(){return{selected:"",uri:""}},select:function(t){return this.setState({selected:t}),this.props.setType(t)},updateUri:function(t){return this.setState({uri:t.target.value}),this.props.setUri(t.target.value)},buttons:function(){var t;return t=[],this.props.webhookTypes.map(function(e){return function(n,a){return t.push(s.createElement("button",{key:a,"data-type":n,className:"btn btn-default "+(e.state.selected===n?"active":""),onClick:function(t){return t.preventDefault(),e.select(n)}},i.humanizeText(n)))}}(this)),t},alert:function(){var t,e;return t=this.props.getErrors(),t&&t.length>0?(e=[],t.length>1&&t.map(function(t,n){return e.push(s.createElement("li",{key:n},t))}),s.createElement("div",{className:"alert alert-danger"},1===t.length?t[0]:s.createElement("ul",null,e))):null},render:function(){return s.createElement("div",null,this.alert(),s.createElement("h3",null," New Webhook "),s.createElement("div",{className:"form-group"},s.createElement("label",null,"Type"),s.createElement("br",null),this.buttons()),s.createElement("div",{className:"form-group"},s.createElement("label",null,"URI"),s.createElement(a,{id:"uri",prop:{placeholder:"https://www.example.com/path/to/webhook",inputType:"text",updateFn:this.updateUri,value:this.state.uri,required:!0}})))}}),t.exports=r},function(t,e,n){(function(e){var a,r,s,i=function(t,e){return function(){return t.apply(e,arguments)}},o=function(t,e){function n(){this.constructor=t}for(var a in e)l.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty;a=n(21),s=n(767),r=function(t){function n(){return this.initialize=i(this.initialize,this),n.__super__.constructor.apply(this,arguments)}return o(n,t),n.prototype.model=s,n.prototype.initialize=function(t){},n.prototype.url=function(){return config.apiRoot+"/webhooks/summary"},n.prototype.sortBy=function(t,n){var a;return a="queueSize"===t?e.sortBy(this.models,function(t){return function(t){return t.attributes.queueSize}}(this)):e.sortBy(this.models,function(e){return function(e){return e.attributes.webhook[t]}}(this)),n||a.reverse(),this.models=a},n}(a),t.exports=r}).call(e,n(3))},function(t,e,n){var a,r,s=function(t,e){function n(){this.constructor=t}for(var a in e)i.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;a=n(22),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e}(a),t.exports=r},function(t,e){var n,a=function(t,e){function n(){this.constructor=t}for(var a in e)r.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},r={}.hasOwnProperty;n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.url=function(){return config.apiRoot+"/auth/user"},e}(Backbone.Model),t.exports=n},function(t,e,n){var a,r,s,i=function(t,e){function n(){this.constructor=t}for(var a in e)o.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;s=n(3),r=n(201),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.template=n(770),e.prototype.initialize=function(){return Backbone.history.on("route",function(t){return function(){return t.render()}}(this))},e.prototype.events=function(){return s.extend(e.__super__.events.apply(this,arguments),{"click .global-search-button":"showSearch"})},e.prototype.render=function(){var t,e;return t=null!=(e=Backbone.history.fragment)?e.split("/")[0]:void 0,"request"===t?t="requests":"task"===t&&(t="tasks"),this.$el.html(this.template({fragment:t,title:config.title}))},e.prototype.showSearch=function(){return app.views.globalSearch.show()},e}(r),t.exports=a},function(t,e,n){var a=n(128);t.exports=(a["default"]||a).template({1:function(t,e,n,a,r){return'class="active"'},compiler:[7,">= 4.0.0"],main:function(t,e,n,a,r){var s,i,o=null!=e?e:{},l=n.helperMissing,u="function",c=t.escapeExpression;return'\n'},useData:!0})},function(t,e,n){(function(e,a){var r,s,i,o,l,u=function(t,e){function n(){this.constructor=t}for(var a in e)c.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},c={}.hasOwnProperty;i=n(201),s=n(20),l=n(772),o=n(263),r=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return u(r,t),r.prototype.lastSearchQuery="",r.prototype.lastResponse=[],r.prototype.template=n(773),r.prototype.events=function(){return e.extend(r.__super__.events.apply(this,arguments),{'click [data-action="close-global-seach"]':"hide"})},r.prototype.initialize=function(){return this.requests=new s([],{all:"all"}),a(window).on("keydown",function(t){return function(e){var n,r,s,i,o,l;return r=a(e.target).is("body"),s=a(e.target).is(t.$('input[type="search"]')),i=e.metaKey||e.shiftKey||e.ctrlKey,l=(83===(o=e.keyCode)||84===o)&&!i,n=27===e.keyCode,n&&(r||s)?t.hide():l&&r?(t.show(),e.preventDefault()):void 0}}(this))},r.prototype.render=function(){return this.$el.html(this.template()),this.setUpTypeahead()},r.prototype.setUpTypeahead=function(){var t;return t=function(t){return function(n,a){var r,s,i;if(n)return n===t.lastSearchQuery?void a(t.lastResponse):(t.lastSearchQuery=n,r={extract:function(t){return t.id}},s=o.filter(n,t.requests.toJSON(),r),i=e.pluck(e.pluck(e.sortBy(s,function(t){return t.score}).reverse(),"original"),"id"),a(i.slice(0,10)))}}(this),t=e.debounce(t,200),this.$("input").typeahead({highlight:!0},{source:t,displayKey:function(t){return t}}),this.$("input").on("typeahead:selected",function(t){return function(e,n){return t.hide(),app.router.navigate("/request/"+n,{trigger:!0})}}(this))},r.prototype.reset=function(){return this.$("input").val(""),this.$("ul").removeClass("dropdown-menu-hidden"),this.$("li").remove()},r.prototype.show=function(){return this.requests.fetch().done(function(t){return function(){return t.reset(),t.$el.parent().addClass("global-search-active"),t.$("input").focus()}}(this))},r.prototype.hide=function(t){if(null!=t){if(null==a(t.target).data("action")==="close-global-seach")return;if(a(t.target).is("input"))return}return this.$el.parent().removeClass("global-search-active")},r.prototype.toggle=function(){return this.$el.parent().hasClass("global-search-active")?this.hide():this.show()},r}(i),t.exports=r}).call(e,n(3),n(1))},function(t,e,n){(function(t,e){/*! * typeahead.js 0.10.5 * https://github.com/twitter/typeahead.js * Copyright 2013-2014 Twitter, Inc. and other contributors; Licensed MIT */ !function(t){var n=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(t){return!t||/^\s*$/.test(t)},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isArray:t.isArray,isFunction:t.isFunction,isObject:t.isPlainObject,isUndefined:function(t){return"undefined"==typeof t},toStr:function(t){return n.isUndefined(t)||null===t?"":t+""},bind:t.proxy,each:function(e,n){function a(t,e){return n(e,t)}t.each(e,a)},map:t.map,filter:t.grep,every:function(e,n){var a=!0;return e?(t.each(e,function(t,r){return(a=n.call(null,r,t,e))?void 0:!1}),!!a):a},some:function(e,n){var a=!1;return e?(t.each(e,function(t,r){return(a=n.call(null,r,t,e))?!1:void 0}),!!a):a},mixin:t.extend,getUniqueId:function(){var t=0;return function(){return t++}}(),templatify:function(e){function n(){return String(e)}return t.isFunction(e)?e:n},defer:function(t){setTimeout(t,0)},debounce:function(t,e,n){var a,r;return function(){var s,i,o=this,l=arguments;return s=function(){a=null,n||(r=t.apply(o,l))},i=n&&!a,clearTimeout(a),a=setTimeout(s,e),i&&(r=t.apply(o,l)),r}},throttle:function(t,e){var n,a,r,s,i,o;return i=0,o=function(){i=new Date,r=null,s=t.apply(n,a)},function(){var l=new Date,u=e-(l-i);return n=this,a=arguments,0>=u?(clearTimeout(r),r=null,i=l,s=t.apply(n,a)):r||(r=setTimeout(o,u)),s}},noop:function(){}}}(),a="0.10.5",r=function(){"use strict";function t(t){return t=n.toStr(t),t?t.split(/\s+/):[]}function e(t){return t=n.toStr(t),t?t.split(/\W+/):[]}function a(t){return function(){var e=[].slice.call(arguments,0);return function(a){var r=[];return n.each(e,function(e){r=r.concat(t(n.toStr(a[e])))}),r}}}return{nonword:e,whitespace:t,obj:{nonword:a(e),whitespace:a(t)}}}(),s=function(){"use strict";function e(e){this.maxSize=n.isNumber(e)?e:100,this.reset(),this.maxSize<=0&&(this.set=this.get=t.noop)}function a(){this.head=this.tail=null}function r(t,e){this.key=t,this.val=e,this.prev=this.next=null}return n.mixin(e.prototype,{set:function(t,e){var n,a=this.list.tail;this.size>=this.maxSize&&(this.list.remove(a),delete this.hash[a.key]),(n=this.hash[t])?(n.val=e,this.list.moveToFront(n)):(n=new r(t,e),this.list.add(n),this.hash[t]=n,this.size++)},get:function(t){var e=this.hash[t];return e?(this.list.moveToFront(e),e.val):void 0},reset:function(){this.size=0,this.hash={},this.list=new a}}),n.mixin(a.prototype,{add:function(t){this.head&&(t.next=this.head,this.head.prev=t),this.head=t,this.tail=this.tail||t},remove:function(t){t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev},moveToFront:function(t){this.remove(t),this.add(t)}}),e}(),i=function(){"use strict";function t(t){this.prefix=["__",t,"__"].join(""),this.ttlKey="__ttl__",this.keyMatcher=new RegExp("^"+n.escapeRegExChars(this.prefix))}function e(){return(new Date).getTime()}function a(t){return JSON.stringify(n.isUndefined(t)?null:t)}function r(t){return JSON.parse(t)}var s,i;try{s=window.localStorage,s.setItem("~~~","!"),s.removeItem("~~~")}catch(o){s=null}return i=s&&window.JSON?{_prefix:function(t){return this.prefix+t},_ttlKey:function(t){return this._prefix(t)+this.ttlKey},get:function(t){return this.isExpired(t)&&this.remove(t),r(s.getItem(this._prefix(t)))},set:function(t,r,i){return n.isNumber(i)?s.setItem(this._ttlKey(t),a(e()+i)):s.removeItem(this._ttlKey(t)),s.setItem(this._prefix(t),a(r))},remove:function(t){return s.removeItem(this._ttlKey(t)),s.removeItem(this._prefix(t)),this},clear:function(){var t,e,n=[],a=s.length;for(t=0;a>t;t++)(e=s.key(t)).match(this.keyMatcher)&&n.push(e.replace(this.keyMatcher,""));for(t=n.length;t--;)this.remove(n[t]);return this},isExpired:function(t){var a=r(s.getItem(this._ttlKey(t)));return!!(n.isNumber(a)&&e()>a)}}:{get:n.noop,set:n.noop,remove:n.noop,clear:n.noop,isExpired:n.noop},n.mixin(t.prototype,i),t}(),o=function(){"use strict";function e(e){e=e||{},this.cancelled=!1,this.lastUrl=null,this._send=e.transport?a(e.transport):t.ajax,this._get=e.rateLimiter?e.rateLimiter(this._get):this._get,this._cache=e.cache===!1?new s(0):l}function a(e){return function(a,r){function s(t){n.defer(function(){o.resolve(t)})}function i(t){n.defer(function(){o.reject(t)})}var o=t.Deferred();return e(a,r,s,i),o}}var r=0,i={},o=6,l=new s(10);return e.setMaxPendingRequests=function(t){o=t},e.resetCache=function(){l.reset()},n.mixin(e.prototype,{_get:function(t,e,n){function a(e){n&&n(null,e),c._cache.set(t,e)}function s(){n&&n(!0)}function l(){r--,delete i[t],c.onDeckRequestArgs&&(c._get.apply(c,c.onDeckRequestArgs),c.onDeckRequestArgs=null)}var u,c=this;this.cancelled||t!==this.lastUrl||((u=i[t])?u.done(a).fail(s):o>r?(r++,i[t]=this._send(t,e).done(a).fail(s).always(l)):this.onDeckRequestArgs=[].slice.call(arguments,0))},get:function(t,e,a){var r;return n.isFunction(e)&&(a=e,e={}),this.cancelled=!1,this.lastUrl=t,(r=this._cache.get(t))?n.defer(function(){a&&a(null,r)}):this._get(t,e,a),!!r},cancel:function(){this.cancelled=!0}}),e}(),l=function(){"use strict";function e(e){e=e||{},e.datumTokenizer&&e.queryTokenizer||t.error("datumTokenizer and queryTokenizer are both required"),this.datumTokenizer=e.datumTokenizer,this.queryTokenizer=e.queryTokenizer,this.reset()}function a(t){return t=n.filter(t,function(t){return!!t}),t=n.map(t,function(t){return t.toLowerCase()})}function r(){return{ids:[],children:{}}}function s(t){for(var e={},n=[],a=0,r=t.length;r>a;a++)e[t[a]]||(e[t[a]]=!0,n.push(t[a]));return n}function i(t,e){function n(t,e){return t-e}var a=0,r=0,s=[];t=t.sort(n),e=e.sort(n);for(var i=t.length,o=e.length;i>a&&o>r;)t[a]e[r]?r++:(s.push(t[a]),a++,r++);return s}return n.mixin(e.prototype,{bootstrap:function(t){this.datums=t.datums,this.trie=t.trie},add:function(t){var e=this;t=n.isArray(t)?t:[t],n.each(t,function(t){var s,i;s=e.datums.push(t)-1,i=a(e.datumTokenizer(t)),n.each(i,function(t){var n,a,i;for(n=e.trie,a=t.split("");i=a.shift();)n=n.children[i]||(n.children[i]=r()),n.ids.push(s)})})},get:function(t){var e,r,o=this;return e=a(this.queryTokenizer(t)),n.each(e,function(t){var e,n,a,s;if(r&&0===r.length)return!1;for(e=o.trie,n=t.split("");e&&(a=n.shift());)e=e.children[a];return e&&0===n.length?(s=e.ids.slice(0),void(r=r?i(r,s):s)):(r=[],!1)}),r?n.map(s(r),function(t){return o.datums[t]}):[]},reset:function(){this.datums=[],this.trie=r()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),e}(),u=function(){"use strict";function e(t){return t.local||null}function r(e){var r,s;return s={url:null,thumbprint:"",ttl:864e5,filter:null,ajax:{}},(r=e.prefetch||null)&&(r=n.isString(r)?{url:r}:r,r=n.mixin(s,r),r.thumbprint=a+r.thumbprint,r.ajax.type=r.ajax.type||"GET",r.ajax.dataType=r.ajax.dataType||"json",!r.url&&t.error("prefetch requires url to be set")),r}function s(e){function a(t){return function(e){return n.debounce(e,t)}}function r(t){return function(e){return n.throttle(e,t)}}var s,i;return i={url:null,cache:!0,wildcard:"%QUERY",replace:null,rateLimitBy:"debounce",rateLimitWait:300,send:null,filter:null,ajax:{}},(s=e.remote||null)&&(s=n.isString(s)?{url:s}:s,s=n.mixin(i,s),s.rateLimiter=/^throttle$/i.test(s.rateLimitBy)?r(s.rateLimitWait):a(s.rateLimitWait),s.ajax.type=s.ajax.type||"GET",s.ajax.dataType=s.ajax.dataType||"json",delete s.rateLimitBy,delete s.rateLimitWait,!s.url&&t.error("remote requires url to be set")),s}return{local:e,prefetch:r,remote:s}}();!function(e){"use strict";function a(e){e&&(e.local||e.prefetch||e.remote)||t.error("one of local, prefetch, or remote is required"),this.limit=e.limit||5,this.sorter=s(e.sorter),this.dupDetector=e.dupDetector||c,this.local=u.local(e),this.prefetch=u.prefetch(e),this.remote=u.remote(e),this.cacheKey=this.prefetch?this.prefetch.cacheKey||this.prefetch.url:null,this.index=new l({datumTokenizer:e.datumTokenizer,queryTokenizer:e.queryTokenizer}),this.storage=this.cacheKey?new i(this.cacheKey):null}function s(t){function e(e){return e.sort(t)}function a(t){return t}return n.isFunction(t)?e:a}function c(){return!1}var p,d;return p=e.Bloodhound,d={data:"data",protocol:"protocol",thumbprint:"thumbprint"},e.Bloodhound=a,a.noConflict=function(){return e.Bloodhound=p,a},a.tokenizers=r,n.mixin(a.prototype,{_loadPrefetch:function(e){function n(t){s.clear(),s.add(e.filter?e.filter(t):t),s._saveToStorage(s.index.serialize(),e.thumbprint,e.ttl)}var a,r,s=this;return(a=this._readFromStorage(e.thumbprint))?(this.index.bootstrap(a),r=t.Deferred().resolve()):r=t.ajax(e.url,e.ajax).done(n),r},_getFromRemote:function(t,e){function n(t,n){e(t?[]:s.remote.filter?s.remote.filter(n):n)}var a,r,s=this;if(this.transport)return t=t||"",r=encodeURIComponent(t),a=this.remote.replace?this.remote.replace(this.remote.url,t):this.remote.url.replace(this.remote.wildcard,r),this.transport.get(a,this.remote.ajax,n)},_cancelLastRemoteRequest:function(){this.transport&&this.transport.cancel()},_saveToStorage:function(t,e,n){this.storage&&(this.storage.set(d.data,t,n),this.storage.set(d.protocol,location.protocol,n),this.storage.set(d.thumbprint,e,n))},_readFromStorage:function(t){var e,n={};return this.storage&&(n.data=this.storage.get(d.data),n.protocol=this.storage.get(d.protocol),n.thumbprint=this.storage.get(d.thumbprint)),e=n.thumbprint!==t||n.protocol!==location.protocol,n.data&&!e?n.data:null},_initialize:function(){function e(){r.add(n.isFunction(s)?s():s)}var a,r=this,s=this.local;return a=this.prefetch?this._loadPrefetch(this.prefetch):t.Deferred().resolve(),s&&a.done(e),this.transport=this.remote?new o(this.remote):null,this.initPromise=a.promise()},initialize:function(t){return!this.initPromise||t?this._initialize():this.initPromise},add:function(t){this.index.add(t)},get:function(t,e){function a(t){var a=s.slice(0);n.each(t,function(t){var e;return e=n.some(a,function(e){return r.dupDetector(t,e)}),!e&&a.push(t),a.length0||!this.transport)&&e&&e(s)},clear:function(){this.index.reset()},clearPrefetchCache:function(){this.storage&&this.storage.clear()},clearRemoteCache:function(){this.transport&&o.resetCache()},ttAdapter:function(){return n.bind(this.get,this)}}),a}(this);var c=function(){return{wrapper:'',dropdown:'',dataset:'
    ',suggestions:'',suggestion:'
    '}}(),p=function(){"use strict";var t={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return n.isMsie()&&n.mixin(t.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),n.isMsie()&&n.isMsie()<=7&&n.mixin(t.input,{marginTop:"-1px"}),t}(),d=function(){"use strict";function e(e){e&&e.el||t.error("EventBus initialized without el"),this.$el=t(e.el)}var a="typeahead:";return n.mixin(e.prototype,{trigger:function(t){var e=[].slice.call(arguments,1);this.$el.trigger(a+t,e)}}),e}(),h=function(){"use strict";function t(t,e,n,a){var r;if(!n)return this;for(e=e.split(u),n=a?l(n,a):n,this._callbacks=this._callbacks||{};r=e.shift();)this._callbacks[r]=this._callbacks[r]||{sync:[],async:[]},this._callbacks[r][t].push(n);return this}function n(e,n,a){return t.call(this,"async",e,n,a)}function a(e,n,a){return t.call(this,"sync",e,n,a)}function r(t){var e;if(!this._callbacks)return this;for(t=t.split(u);e=t.shift();)delete this._callbacks[e];return this}function s(t){var e,n,a,r,s;if(!this._callbacks)return this;for(t=t.split(u),a=[].slice.call(arguments,1);(e=t.shift())&&(n=this._callbacks[e]);)r=i(n.sync,this,[e].concat(a)),s=i(n.async,this,[e].concat(a)),r()&&c(s);return this}function i(t,e,n){function a(){for(var a,r=0,s=t.length;!a&&s>r;r+=1)a=t[r].apply(e,n)===!1;return!a}return a}function o(){var t;return t=window.setImmediate?function(t){e(function(){t()})}:function(t){setTimeout(function(){t()},0)}}function l(t,e){return t.bind?t.bind(e):function(){t.apply(e,[].slice.call(arguments,0))}}var u=/\s+/,c=o();return{onSync:a,onAsync:n,off:r,trigger:s}}(),f=function(t){"use strict";function e(t,e,a){for(var r,s=[],i=0,o=t.length;o>i;i++)s.push(n.escapeRegExChars(t[i]));return r=a?"\\b("+s.join("|")+")\\b":"("+s.join("|")+")",e?new RegExp(r):new RegExp(r,"i")}var a={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(r){function s(e){var n,a,s;return(n=o.exec(e.data))&&(s=t.createElement(r.tagName),r.className&&(s.className=r.className),a=e.splitText(n.index),a.splitText(n[0].length),s.appendChild(a.cloneNode(!0)),e.parentNode.replaceChild(s,a)),!!n}function i(t,e){for(var n,a=3,r=0;r








    ").addClass("cw").text("#"));n.isBefore(p.clone().endOf("w"));)e.append(t("").addClass("dow").text(n.format("dd"))),n.add(1,"d");f.find(".datepicker-days thead").append(e)},N=function(t){return a.disabledDates[t.format("YYYY-MM-DD")]===!0},A=function(t){return a.enabledDates[t.format("YYYY-MM-DD")]===!0},F=function(t){return a.disabledHours[t.format("H")]===!0},j=function(t){return a.enabledHours[t.format("H")]===!0},z=function(e,n){if(!e.isValid())return!1;if(a.disabledDates&&"d"===n&&N(e))return!1;if(a.enabledDates&&"d"===n&&!A(e))return!1;if(a.minDate&&e.isBefore(a.minDate,n))return!1;if(a.maxDate&&e.isAfter(a.maxDate,n))return!1;if(a.daysOfWeekDisabled&&"d"===n&&-1!==a.daysOfWeekDisabled.indexOf(e.day()))return!1;if(a.disabledHours&&("h"===n||"m"===n||"s"===n)&&F(e))return!1;if(a.enabledHours&&("h"===n||"m"===n||"s"===n)&&!j(e))return!1;if(a.disabledTimeIntervals&&("h"===n||"m"===n||"s"===n)){var r=!1;if(t.each(a.disabledTimeIntervals,function(){return e.isBetween(this[0],this[1])?(r=!0,!1):void 0}),r)return!1}return!0},H=function(){for(var e=[],n=p.clone().startOf("y").startOf("d");n.isSame(p,"y");)e.push(t("").attr("data-action","selectMonth").addClass("month").text(n.format("MMM"))),n.add(1,"M");f.find(".datepicker-months td").empty().append(e)},B=function(){var e=f.find(".datepicker-months"),n=e.find("th"),r=e.find("tbody").find("span");n.eq(0).find("span").attr("title",a.tooltips.prevYear),n.eq(1).attr("title",a.tooltips.selectYear),n.eq(2).find("span").attr("title",a.tooltips.nextYear),e.find(".disabled").removeClass("disabled"),z(p.clone().subtract(1,"y"),"y")||n.eq(0).addClass("disabled"),n.eq(1).text(p.year()),z(p.clone().add(1,"y"),"y")||n.eq(2).addClass("disabled"),r.removeClass("active"),c.isSame(p,"y")&&!d&&r.eq(c.month()).addClass("active"),r.each(function(e){z(p.clone().month(e),"M")||t(this).addClass("disabled")})},U=function(){var t=f.find(".datepicker-years"),e=t.find("th"),n=p.clone().subtract(5,"y"),r=p.clone().add(6,"y"),s="";for(e.eq(0).find("span").attr("title",a.tooltips.nextDecade),e.eq(1).attr("title",a.tooltips.selectDecade),e.eq(2).find("span").attr("title",a.tooltips.prevDecade),t.find(".disabled").removeClass("disabled"),a.minDate&&a.minDate.isAfter(n,"y")&&e.eq(0).addClass("disabled"),e.eq(1).text(n.year()+"-"+r.year()),a.maxDate&&a.maxDate.isBefore(r,"y")&&e.eq(2).addClass("disabled");!n.isAfter(r,"y");)s+=''+n.year()+"",n.add(1,"y");t.find("td").html(s)},W=function(){var t=f.find(".datepicker-decades"),n=t.find("th"),r=e(p.isBefore(e({y:1999}))?{y:1899}:{y:1999}),s=r.clone().add(100,"y"),i="";for(n.eq(0).find("span").attr("title",a.tooltips.prevCentury),n.eq(2).find("span").attr("title",a.tooltips.nextCentury),t.find(".disabled").removeClass("disabled"),(r.isSame(e({y:1900}))||a.minDate&&a.minDate.isAfter(r,"y"))&&n.eq(0).addClass("disabled"),n.eq(1).text(r.year()+"-"+s.year()),(r.isSame(e({y:2e3}))||a.maxDate&&a.maxDate.isBefore(s,"y"))&&n.eq(2).addClass("disabled");!r.isAfter(s,"y");)i+=''+(r.year()+1)+" - "+(r.year()+12)+"",r.add(12,"y");i+="",t.find("td").html(i)},G=function(){var n,r,s,i,o=f.find(".datepicker-days"),l=o.find("th"),u=[];if(x()){for(l.eq(0).find("span").attr("title",a.tooltips.prevMonth),l.eq(1).attr("title",a.tooltips.selectMonth),l.eq(2).find("span").attr("title",a.tooltips.nextMonth),o.find(".disabled").removeClass("disabled"),l.eq(1).text(p.format(a.dayViewHeaderFormat)),z(p.clone().subtract(1,"M"),"M")||l.eq(0).addClass("disabled"),z(p.clone().add(1,"M"),"M")||l.eq(2).addClass("disabled"),n=p.clone().startOf("M").startOf("w").startOf("d"),i=0;42>i;i++)0===n.weekday()&&(r=t("
    '+n.week()+"'+n.date()+"
    '+n.format(s?"HH":"hh")+"
    '+n.format("mm")+"
    '+n.format("ss")+"