diff --git a/assets/huegasm-0eee56226c3305ed702c75313bd6215a.js b/assets/huegasm-86fd68d3641615e0733585088613e3d1.js similarity index 93% rename from assets/huegasm-0eee56226c3305ed702c75313bd6215a.js rename to assets/huegasm-86fd68d3641615e0733585088613e3d1.js index c9e8ad1..7603cf4 100644 --- a/assets/huegasm-0eee56226c3305ed702c75313bd6215a.js +++ b/assets/huegasm-86fd68d3641615e0733585088613e3d1.js @@ -200,7 +200,7 @@ e instanceof Array?e.forEach(n):n(e),o.length>0&&t.get("notify").alert({html:t.g e.velocity(e.is(":visible")?"slideUp":"slideDown",{duration:300}),this.changePlayerControl("playerBottomDisplayed",!this.get("playerBottomDisplayed"))},goToSong:function(e,t,n){var o=this,s=this.get("dancer"),a=this.get("playQueue") if(s.audio&&this.clearCurrentAudio(!0),!i(a[e])){var l=new Audio l.src=this.get("playQueue")[e].url,l.crossOrigin="anonymous",l.oncanplay=function(){o.set("timeTotal",Math.floor(l.duration)),o.set("soundCloudFuckUps",0)},l.onerror=function(e){var t=o.get("playQueuePointer"),n=o.get("playQueue")[t] -o.get("soundCloudFuckUps")>=o.get("maxSoundCloudFuckUps")?(o.get("notify").alert({html:o.get("tooManySoundCloudFuckUps")}),o.send("play"),o.set("soundCloudFuckUps",0)):(n.local?o.send("removeAudio",t):o.send("next",!0),2===e.target.error.code?o.get("notify").alert({html:o.get("failedToDecodeFileHtml")(n.fileName)}):o.get("notify").alert({html:o.get("failedToPlayFileHtml")(n.fileName)}),o.set("usingBeatPreferences",!1),o.incrementProperty("soundCloudFuckUps"))},l.ontimeupdate=function(){o.set("timeElapsed",Math.floor(l.currentTime))},l.onended=function(){o.send("next")},s.load(l,1),this.set("playQueuePointer",e),this.loadSongBeatPreferences(),t&&this.send("play"),n&&p(this,function(){r(".track"+e).velocity("scroll",{container:r("#play-list-area"),duration:200})})}},removeAudio:function(e){this.get("playQueue").removeAt(e),r("body .tooltip").remove(),e===this.get("playQueuePointer")&&this.send("goToSong",e,!0,!0)},playerAreaPlay:function(){a(r("#player-controls:hover"))&&-1!==this.get("playQueuePointer")&&(this.send("play"),r("#play-notification").velocity({opacity:.8,scale:1},0).velocity({opacity:0,scale:3},500))},play:function(e){var t=this,n=this.get("dancer"),o=this.get("playQueuePointer"),s=this.get("playing"),a=this.get("lightsData") +o.get("soundCloudFuckUps")>=o.get("maxSoundCloudFuckUps")?(o.get("notify").alert({html:o.get("tooManySoundCloudFuckUps")}),o.send("play"),o.set("soundCloudFuckUps",0)):(n.local?o.send("removeAudio",t):o.send("next",!0),2===e.target.error.code?o.get("notify").alert({html:o.get("failedToDecodeFileHtml")(n.fileName)}):o.get("notify").alert({html:o.get("failedToPlayFileHtml")(n.fileName)}),o.set("usingBeatPreferences",!1),o.incrementProperty("soundCloudFuckUps"))},l.ontimeupdate=function(){o.set("timeElapsed",Math.floor(l.currentTime))},l.onended=function(){o.send("next")},s.load(l,1),this.set("playQueuePointer",e),this.loadSongBeatPreferences(),t&&this.send("play"),n&&p(this,function(){r(".track"+e).velocity("scroll",{container:r("#play-list-area"),duration:200})})}},removeAudio:function(e){this.get("playQueue").removeAt(e),r("body .tooltip").remove(),this.get("dancer").audio&&this.clearCurrentAudio(!0)},playerAreaPlay:function(){a(r("#player-controls:hover"))&&-1!==this.get("playQueuePointer")&&(this.send("play"),r("#play-notification").velocity({opacity:.8,scale:1},0).velocity({opacity:0,scale:3},500))},play:function(e){var t=this,n=this.get("dancer"),o=this.get("playQueuePointer"),s=this.get("playing"),a=this.get("lightsData") if(-1!==o){if(s){n.pause() var i=this.get("preMusicLightsDataCache"),l=function(e){r.ajax(t.get("apiURL")+"/lights/"+e+"/state",{data:JSON.stringify({on:i[e].state.on,hue:i[e].state.hue,bri:i[e].state.bri}),contentType:"application/json",type:"PUT"})} for(var p in a)a.hasOwnProperty(p)&&c(this,l,p,1e3) @@ -254,7 +254,7 @@ var l=t.getWaveform() a.beginPath(),a.moveTo(0,i/2) for(var c=0,p=l.length;c',beyond_ceiling_pendant_table:'',bloom:'',br30:'',br30_slim:'',bridge_v1:'',bridge_v2:'',ceiling_round:'',ceiling_square:'',entity:'',floor:'',go:'',gu10:'',gu10_perfectfit:'',hds:'',impulse:'',iris:'',lightstrip:'',motion_sensor:'',pendant_oval:'',pendant_round:'',pendant_square:'',phoenix_ceiling:'',phoenix_down:'',recessed:'',storylight:'',table:'',tap:'',white_and_color_e27:'',white_e27:''},outline:{aura:'',beyond_ceiling_pendant_table:'',bloom:'',br30:'',br30_slim:'',bridge_v1:'',bridge_v2:'',ceiling_round:'',ceiling_square:'',entity:'',floor:'',go:'',gu10:'',gu10_perfectfit:'',hds:'',impulse:'',iris:'',lightstrip:'',motion_sensor:'',par16:'',pendant_oval:'',pendant_round:'',pendant_square:'',phoenix_ceiling:'',phoenix_ceiling_2:'',phoenix_down:'',phoenix_pendant:'',phoenix_table:'',phoenix_wall:'',recessed:'',storylight:'',table:'',tap:'',white_and_color_e27:'',white_e27:''}}}},"safari-pinned-tab":''}}),define("huegasm/templates/application",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.HTMLBars.template({id:"sESP0Z+T",block:'{"symbols":[],"statements":[[1,[18,"welcome-page"],false],[0,"\\n"],[0,"\\n"],[1,[18,"outlet"],false]],"hasEval":false}',meta:{moduleName:"huegasm/templates/application.hbs"}})}),define("huegasm/templates/components/transition-group",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.HTMLBars.template({id:"Z/BMdkzA",block:'{"symbols":["&default"],"statements":[[11,1],[0,"\\n"]],"hasEval":false}',meta:{moduleName:"huegasm/templates/components/transition-group.hbs"}})}),define("huegasm/utils/clamp",["exports","ember-paper/utils/clamp"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("huegasm/config/environment",[],function(){try{var e="huegasm/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),n={default:JSON.parse(unescape(t))} -return Object.defineProperty(n,"__esModule",{value:!0}),n}catch(t){throw new Error('Could not read config from meta tag with name "'+e+'".')}}),runningTests||require("huegasm/app").default.create({name:"huegasm",version:"1.0.0+1a51f1f8"}) +return Object.defineProperty(n,"__esModule",{value:!0}),n}catch(t){throw new Error('Could not read config from meta tag with name "'+e+'".')}}),runningTests||require("huegasm/app").default.create({name:"huegasm",version:"1.0.0+67d1325c"}) diff --git a/assets/vendor-e25cb6887a41b507ac59d4842eec8f03.js b/assets/vendor-58e35bf5bca9623d31836ae231314fcc.js similarity index 99% rename from assets/vendor-e25cb6887a41b507ac59d4842eec8f03.js rename to assets/vendor-58e35bf5bca9623d31836ae231314fcc.js index 977e6bb..0f58487 100644 --- a/assets/vendor-e25cb6887a41b507ac59d4842eec8f03.js +++ b/assets/vendor-58e35bf5bca9623d31836ae231314fcc.js @@ -144,10 +144,10 @@ if(Array.isArray(t))ae.each(t,function(t,i){n||yt.test(e)?r(e,i):U(e+"["+("objec else if(n||"object"!==ae.type(t))r(e,t) else for(i in t)U(e+"["+i+"]",t[i],n,r)}function W(e){return function(t,n){"string"!=typeof t&&(n=t,t="*") var r,i=0,o=t.toLowerCase().match(xe)||[] -if(ae.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function K(e,t,n,r){function i(a){var l +if(ae.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Y(e,t,n,r){function i(a){var l return o[a]=!0,ae.each(e[a]||[],function(e,a){var u=a(t,n,r) return"string"!=typeof u||s||o[u]?s?!(l=u):void 0:(t.dataTypes.unshift(u),i(u),!1)}),l}var o={},s=e===kt -return i(t.dataTypes[0])||!o["*"]&&i("*")}function Y(e,t){var n,r,i=ae.ajaxSettings.flatOptions||{} +return i(t.dataTypes[0])||!o["*"]&&i("*")}function K(e,t){var n,r,i=ae.ajaxSettings.flatOptions||{} for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]) return r&&ae.extend(!0,e,r),e}var G=[],$=e.document,Q=Object.getPrototypeOf,X=G.slice,J=G.concat,Z=G.push,ee=G.indexOf,te={},ne=te.toString,re=te.hasOwnProperty,ie=re.toString,oe=ie.call(Object),se={},ae=function(e,t){return new ae.fn.init(e,t)},le=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ue=/^-ms-/,ce=/-([a-z])/g,pe=function(e,t){return t.toUpperCase()} ae.fn=ae.prototype={jquery:"3.2.1",constructor:ae,length:0,toArray:function(){return X.call(this)},get:function(e){return null==e?X.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ae.merge(this.constructor(),e) @@ -194,10 +194,10 @@ if(i&&i(b,y,l,u),o)for(c=g(y,f),o(c,[],l,u),p=c.length;p--;)(d=c[p])&&(y[f[p]]=! if(r){if(s||e){if(s){for(c=[],p=y.length;p--;)(d=y[p])&&c.push(b[p]=d) s(null,y=[],c,u)}for(p=y.length;p--;)(d=y[p])&&(c=s?J(r,d):h[p])>-1&&(r[c]=!(a[c]=d))}}else y=g(y===a?y.splice(m,y.length):y),s?s(null,a,y,u):Q.apply(a,y)})}function b(e){for(var t,n,r,i=e.length,o=_.relative[e[0].type],s=o||_.relative[" "],a=o?1:0,l=f(function(e){return e===t},s,!0),u=f(function(e){return J(t,e)>-1},s,!0),c=[function(e,n,r){var i=!o&&(r||n!==S)||((t=n).nodeType?l(e,n,r):u(e,n,r)) return t=null,i}];a1&&m(c),a>1&&h(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(oe,"$1"),n,a1&&m(c),a>1&&h(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(oe,"$1"),n,a+~]|"+ee+")"+ee+"*"),le=new RegExp("="+ee+"*([^\\]'\"]*?)"+ee+"*\\]","g"),ue=new RegExp(re),ce=new RegExp("^"+te+"$"),pe={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\.("+te+")"),TAG:new RegExp("^("+te+"|[*])"),ATTR:new RegExp("^"+ne),PSEUDO:new RegExp("^"+re),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},de=/^(?:input|select|textarea|button)$/i,he=/^h\d$/i,fe=/^[^{]+\{\s*\[native \w/,me=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ge=/[+~]/,ve=new RegExp("\\\\([\\da-f]{1,6}"+ee+"?|("+ee+")|.)","ig"),be=function(e,t,n){var r="0x"+t-65536 return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},ye=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,we=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},_e=function(){k()},xe=f(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"}) -try{Q.apply(Y=X.call(B.childNodes),B.childNodes),Y[B.childNodes.length].nodeType}catch(e){Q={apply:Y.length?function(e,t){$.apply(e,X.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}w=t.support={},E=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement +try{Q.apply(K=X.call(B.childNodes),B.childNodes),K[B.childNodes.length].nodeType}catch(e){Q={apply:K.length?function(e,t){$.apply(e,X.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}w=t.support={},E=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement return!!t&&"HTML"!==t.nodeName},k=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:B return r!==N&&9===r.nodeType&&r.documentElement?(N=r,M=N.documentElement,R=!E(N),B!==N&&(n=N.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",_e,!1):n.attachEvent&&n.attachEvent("onunload",_e)),w.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=i(function(e){return e.appendChild(N.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=fe.test(N.getElementsByClassName),w.getById=i(function(e){return M.appendChild(e).id=F,!N.getElementsByName||!N.getElementsByName(F).length}),w.getById?(_.filter.ID=function(e){var t=e.replace(ve,be) return function(e){return e.getAttribute("id")===t}},_.find.ID=function(e,t){if(void 0!==t.getElementById&&R){var n=t.getElementById(e) @@ -222,7 +222,7 @@ for(n=t;n=n.parentNode;)l.unshift(n) for(;a[r]===l[r];)r++ return r?s(a[r],l[r]):a[r]===B?-1:l[r]===B?1:0},N):N},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==N&&k(e),n=n.replace(le,"='$1']"),w.matchesSelector&&R&&!U[n+" "]&&(!j||!j.test(n))&&(!I||!I.test(n)))try{var r=L.call(e,n) if(r||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,N,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==N&&k(e),D(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==N&&k(e) -var n=_.attrHandle[t.toLowerCase()],r=n&&K.call(_.attrHandle,t.toLowerCase())?n(e,t,!R):void 0 +var n=_.attrHandle[t.toLowerCase()],r=n&&Y.call(_.attrHandle,t.toLowerCase())?n(e,t,!R):void 0 return void 0!==r?r:w.attributes||!R?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(ye,we)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0 if(A=!w.detectDuplicates,P=!w.sortStable&&e.slice(0),e.sort(W),A){for(;t=e[i++];)t===e[i]&&(r=n.push(i)) for(;r--;)e.splice(n[r],1)}return P=null,e},x=t.getText=function(e){var t,n="",r=0,i=e.nodeType @@ -366,8 +366,8 @@ return r&&(r===this||ae.contains(this,r))||(e.type=i.origType,n=i.handler.apply( if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ae(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this if("object"==typeof e){for(i in e)this.off(i,t,e[i]) return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=w),this.each(function(){ae.event.remove(this,e,n,t)})}}) -var Ke=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ye=/\s*$/g -ae.extend({htmlPrefilter:function(e){return e.replace(Ke,"<$1>")},clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),l=ae.contains(e.ownerDocument,e) +var Ye=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ke=/\s*$/g +ae.extend({htmlPrefilter:function(e){return e.replace(Ye,"<$1>")},clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),l=ae.contains(e.ownerDocument,e) if(!(se.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ae.isXMLDoc(e)))for(s=g(a),r=0,i=(o=g(e)).length;r0?4:0,u=t>=200&&t<300||304===t,r&&(w=function(e,t,n){for(var r,i,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type")) if(r)for(i in a)if(a[i]&&a[i].test(r)){l.unshift(i) break}if(l[0]in n)o=l[0] @@ -502,10 +502,10 @@ else for(t in e)y[t]=[y[t],e[t]] return this},abort:function(e){var t=e||x return i&&i.abort(t),r(0,t),this}} if(v.promise(E),f.url=((t||f.url||gt.href)+"").replace(Pt,gt.protocol+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(xe)||[""],null==f.crossDomain){u=$.createElement("a") -try{u.href=f.url,u.href=u.href,f.crossDomain=Mt.protocol+"//"+Mt.host!=u.protocol+"//"+u.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=ae.param(f.data,f.traditional)),K(At,f,n,E),c)return E;(p=ae.event&&f.global)&&0==ae.active++&&ae.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!St.test(f.type),o=f.url.replace(Ct,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Et,"+")):(h=f.url.slice(o.length),f.data&&(o+=(bt.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(Tt,"$1"),h=(bt.test(o)?"&":"?")+"_="+vt+++h),f.url=o+h),f.ifModified&&(ae.lastModified[o]&&E.setRequestHeader("If-Modified-Since",ae.lastModified[o]),ae.etag[o]&&E.setRequestHeader("If-None-Match",ae.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&E.setRequestHeader("Content-Type",f.contentType),E.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Nt+"; q=0.01":""):f.accepts["*"]) +try{u.href=f.url,u.href=u.href,f.crossDomain=Mt.protocol+"//"+Mt.host!=u.protocol+"//"+u.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=ae.param(f.data,f.traditional)),Y(At,f,n,E),c)return E;(p=ae.event&&f.global)&&0==ae.active++&&ae.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!St.test(f.type),o=f.url.replace(Ct,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Et,"+")):(h=f.url.slice(o.length),f.data&&(o+=(bt.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(Tt,"$1"),h=(bt.test(o)?"&":"?")+"_="+vt+++h),f.url=o+h),f.ifModified&&(ae.lastModified[o]&&E.setRequestHeader("If-Modified-Since",ae.lastModified[o]),ae.etag[o]&&E.setRequestHeader("If-None-Match",ae.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&E.setRequestHeader("Content-Type",f.contentType),E.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Nt+"; q=0.01":""):f.accepts["*"]) for(d in f.headers)E.setRequestHeader(d,f.headers[d]) if(f.beforeSend&&(!1===f.beforeSend.call(m,E,f)||c))return E.abort() -if(x="abort",b.add(f.complete),E.done(f.success),E.fail(f.error),i=K(kt,f,n,E)){if(E.readyState=1,p&&g.trigger("ajaxSend",[E,f]),c)return E +if(x="abort",b.add(f.complete),E.done(f.success),E.fail(f.error),i=Y(kt,f,n,E)){if(E.readyState=1,p&&g.trigger("ajaxSend",[E,f]),c)return E f.async&&f.timeout>0&&(l=e.setTimeout(function(){E.abort("timeout")},f.timeout)) try{c=!1,i.send(w,r)}catch(e){if(c)throw e r(-1,e)}}else r(-1,"No Transport") @@ -683,9 +683,9 @@ if(M(r))return Dt.insert(e,n,r) throw(0,t.unreachable)()}function L(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called") return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function D(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t) e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){var n,r,i,o=Object.getOwnPropertyNames(t) -for(n=0;n)` to debug this template."),t("this")}function U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t) +for(n=0;n)` to debug this template."),t("this")}function U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t) e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){var n,r,i,o=Object.getOwnPropertyNames(t) -for(n=0;n=n?Ke:this.stack.fromTop(t-e-1)},e.prototype.capture=function(){return new tt(this.tag,this.references)},Je(e,[{key:"tag",get:function(){var e=this._tag +return e<0||e>=n?Ye:this.stack.fromTop(t-e-1)},e.prototype.capture=function(){return new tt(this.tag,this.references)},Je(e,[{key:"tag",get:function(){var e=this._tag return e||(e=this._tag=(0,n.combineTagged)(this.references)),e}},{key:"references",get:function(){var e,t,n=this._references if(!n)for(e=this.length,n=this._references=new Array(e),t=0;t2&&void 0!==arguments[2]?arguments[2]:n.length c(this,e),this.tag=t,this.references=n,this.length=r}return e.prototype.at=function(e){return this.references[e]},e.prototype.value=function(){return this.references.map(this.valueOf)},e.prototype.get=function(e){var t,n=this.references,r=this.length -return"length"===e?Ve.create(r):(t=parseInt(e,10))<0||t>=r?Ke:n[t]},e.prototype.valueOf=function(e){return e.value()},e}(),nt=function(){function e(){c(this,e),this.length=0,this._tag=null,this._references=null,this._names=null,this._realNames=t.EMPTY_ARRAY}return e.prototype.setup=function(e,n,r,i){this.stack=e,this.length=n,this._tag=null,this._references=null,i?(this._names=r,this._realNames=t.EMPTY_ARRAY):(this._names=null,this._realNames=r)},e.prototype.has=function(e){return-1!==this.names.indexOf(e)},e.prototype.get=function(e){var t=this.names,n=this.length,r=t.indexOf(e) -return-1===r?Ke:this.stack.fromTop(n-r)},e.prototype.capture=function(){return new rt(this.tag,this.names,this.references)},e.prototype.sliceName=function(e){return e.slice(1)},Je(e,[{key:"tag",get:function(){return(0,n.combineTagged)(this.references)}},{key:"names",get:function(){var e=this._names +return"length"===e?Ve.create(r):(t=parseInt(e,10))<0||t>=r?Ye:n[t]},e.prototype.valueOf=function(e){return e.value()},e}(),nt=function(){function e(){c(this,e),this.length=0,this._tag=null,this._references=null,this._names=null,this._realNames=t.EMPTY_ARRAY}return e.prototype.setup=function(e,n,r,i){this.stack=e,this.length=n,this._tag=null,this._references=null,i?(this._names=r,this._realNames=t.EMPTY_ARRAY):(this._names=null,this._realNames=r)},e.prototype.has=function(e){return-1!==this.names.indexOf(e)},e.prototype.get=function(e){var t=this.names,n=this.length,r=t.indexOf(e) +return-1===r?Ye:this.stack.fromTop(n-r)},e.prototype.capture=function(){return new rt(this.tag,this.names,this.references)},e.prototype.sliceName=function(e){return e.slice(1)},Je(e,[{key:"tag",get:function(){return(0,n.combineTagged)(this.references)}},{key:"names",get:function(){var e=this._names return e||(e=this._names=this._realNames.map(this.sliceName)),e}},{key:"references",get:function(){var e,t,n,r=this._references if(!r)for(e=this.names,t=this.length,r=this._references=[],n=0;n2&&void 0!==arguments[2]?arguments[2]:t.program -Y(this,n) +K(this,n) var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called") return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,t,r,i)) -return o.component=new rn(o),o}return K(n,e),n.prototype.compileArgs=function(e,n,r){var i,o,s,a=0 +return o.component=new rn(o),o}return Y(n,e),n.prototype.compileArgs=function(e,n,r){var i,o,s,a=0 if(e){for(i=0;i4&&void 0!==arguments[4]?arguments[4]:null -this.fetch(He.s0),this.dup(He.sp,1),this.load(He.s0),this.pushBlock(r),this.pushBlock(i),this.compileArgs(t,n,!1),this.prepareArgs(He.s0),this.beginComponentTransaction(),this.pushDynamicScope(),this.createComponent(He.s0,null!==r,null!==i),this.registerComponentDestructor(He.s0),this.getComponentSelf(He.s0),this.getComponentLayout(He.s0),this.invokeDynamic(new fn(e&&e.scan())),this.popFrame(),this.popScope(),this.popDynamicScope(),this.commitComponentTransaction(),this.load(He.s0)},n.prototype.template=function(e){return e?new on(this.meta,e.statements,e.parameters):null},n}(function(){function e(n,r,i){Y(this,e),this.env=n,this.meta=r,this.program=i,this.labelsStack=new t.Stack,this.constants=i.constants,this.heap=i.heap,this.start=this.heap.malloc()}return e.prototype.upvars=function(e){return(0,t.fillNulls)(e)},e.prototype.reserve=function(e){this.push(e,0,0,0)},e.prototype.push=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0 +this.fetch(He.s0),this.dup(He.sp,1),this.load(He.s0),this.pushBlock(r),this.pushBlock(i),this.compileArgs(t,n,!1),this.prepareArgs(He.s0),this.beginComponentTransaction(),this.pushDynamicScope(),this.createComponent(He.s0,null!==r,null!==i),this.registerComponentDestructor(He.s0),this.getComponentSelf(He.s0),this.getComponentLayout(He.s0),this.invokeDynamic(new fn(e&&e.scan())),this.popFrame(),this.popScope(),this.popDynamicScope(),this.commitComponentTransaction(),this.load(He.s0)},n.prototype.template=function(e){return e?new on(this.meta,e.statements,e.parameters):null},n}(function(){function e(n,r,i){K(this,e),this.env=n,this.meta=r,this.program=i,this.labelsStack=new t.Stack,this.constants=i.constants,this.heap=i.heap,this.start=this.heap.malloc()}return e.prototype.upvars=function(e){return(0,t.fillNulls)(e)},e.prototype.reserve=function(e){this.push(e,0,0,0)},e.prototype.push=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0 this.heap.push(e),this.heap.push(t),this.heap.push(n),this.heap.push(r)},e.prototype.finalize=function(){return this.push(22),this.heap.finishMalloc(this.start),this.start},e.prototype.pushArgs=function(e){this.push(58,!0===e?1:0)},e.prototype.startLabels=function(){this.labelsStack.push(new an)},e.prototype.stopLabels=function(){this.labelsStack.pop().patch(this.program)},e.prototype.pushComponentManager=function(e){this.push(56,this.other(e))},e.prototype.pushDynamicComponentManager=function(){this.push(57)},e.prototype.prepareArgs=function(e){this.push(59,e)},e.prototype.createComponent=function(e,t,n){var r=(!0===t?1:0)|(!0===n?1:0)<<1 this.push(60,r,e)},e.prototype.registerComponentDestructor=function(e){this.push(61,e)},e.prototype.beginComponentTransaction=function(){this.push(65)},e.prototype.commitComponentTransaction=function(){this.push(66)},e.prototype.pushComponentOperations=function(){this.push(62)},e.prototype.getComponentSelf=function(e){this.push(63,e)},e.prototype.getComponentLayout=function(e){this.push(64,e)},e.prototype.didCreateElement=function(e){this.push(67,e)},e.prototype.didRenderLayout=function(e){this.push(68,e)},e.prototype.getPartialTemplate=function(){this.push(69)},e.prototype.resolveMaybeLocal=function(e){this.push(70,this.string(e))},e.prototype.debugger=function(e,t){this.push(71,this.constants.other(e),this.constants.array(t))},e.prototype.dynamicContent=function(e){this.push(26,this.other(e))},e.prototype.cautiousAppend=function(){this.dynamicContent(new qt)},e.prototype.trustingAppend=function(){this.dynamicContent(new Vt)},e.prototype.text=function(e){this.push(24,this.constants.string(e))},e.prototype.openPrimitiveElement=function(e){this.push(27,this.constants.string(e))},e.prototype.openElementWithOperations=function(e){this.push(28,this.constants.string(e))},e.prototype.openDynamicElement=function(){this.push(29)},e.prototype.flushElement=function(){this.push(33)},e.prototype.closeElement=function(){this.push(34)},e.prototype.staticAttr=function(e,t,n){var r=this.constants.string(e),i=t?this.constants.string(t):0,o=this.constants.string(n) this.push(30,r,o,i)},e.prototype.dynamicAttrNS=function(e,t,n){var r=this.constants.string(e),i=this.constants.string(t) @@ -1130,15 +1130,15 @@ return void 0===s?e.prototype.insertHTMLBefore.call(this,t,r,i):pe(t,s,n,i,r)},t var Vn,Un=zn=function(e,t,n){if(!e)return t if(!ve(e,n))return t var r=e.createElement("div") -return function(e){function t(){return he(this,t),fe(this,e.apply(this,arguments))}return me(t,e),t.prototype.insertHTMLBefore=function(t,i,o){return null===o||""===o?e.prototype.insertHTMLBefore.call(this,t,i,o):t.namespaceURI!==n?e.prototype.insertHTMLBefore.call(this,t,i,o):ge(t,r,o,i)},t}(t)}(Bn,zn,In),Wn=Dn.DOMTreeConstruction,Kn=function(){function e(t){Ae(this,e),this.attr=t}return e.prototype.setAttribute=function(e,t,n,r){var i=e.getAppendOperations(),o=function(e){return!1===e||void 0===e||null===e?null:!0===e?"":"function"==typeof e?null:String(e)}(n) -Re(o)||i.setAttribute(t,this.attr,o,r)},e.prototype.updateAttribute=function(e,t,n,r){null===n||void 0===n||!1===n?r?e.getDOM().removeAttributeNS(t,r,this.attr):e.getDOM().removeAttribute(t,this.attr):this.setAttribute(e,t,n)},e}(),Yn=function(e){function t(){return Ae(this,t),Se(this,e.apply(this,arguments))}return Pe(t,e),t.prototype.setAttribute=function(e,t,n){Re(n)||(t[this.attr]=n)},t.prototype.removeAttribute=function(e,t,n){var r=this.attr -n?e.getDOM().removeAttributeNS(t,n,r):e.getDOM().removeAttribute(t,r)},t.prototype.updateAttribute=function(e,t,n,r){t[this.attr]=n,Re(n)&&this.removeAttribute(e,t,r)},t}(Kn),Gn=function(e){function t(){return Ae(this,t),Se(this,e.apply(this,arguments))}return Pe(t,e),t.prototype.setAttribute=function(t,n,r){e.prototype.setAttribute.call(this,t,n,se(t,n,this.attr,r))},t.prototype.updateAttribute=function(t,n,r){e.prototype.updateAttribute.call(this,t,n,se(t,n,this.attr,r))},t}(Yn),$n=new(function(e){function t(){return Ae(this,t),Se(this,e.apply(this,arguments))}return Pe(t,e),t.prototype.setAttribute=function(e,t,n){t.value=H(n)},t.prototype.updateAttribute=function(e,t,n){var r=t,i=r.value,o=H(n) -i!==o&&(r.value=o)},t}(Kn))("value"),Qn=new(function(e){function t(){return Ae(this,t),Se(this,e.apply(this,arguments))}return Pe(t,e),t.prototype.setAttribute=function(e,t,n){null!==n&&void 0!==n&&!1!==n&&(t.selected=!0)},t.prototype.updateAttribute=function(e,t,n){var r=t -r.selected=!!n},t}(Yn))("selected"),Xn=function(e){function t(){return Ae(this,t),Se(this,e.apply(this,arguments))}return Pe(t,e),t.prototype.setAttribute=function(t,n,r){e.prototype.setAttribute.call(this,t,n,se(t,n,this.attr,r))},t.prototype.updateAttribute=function(t,n,r){e.prototype.updateAttribute.call(this,t,n,se(t,n,this.attr,r))},t}(Kn),Jn=function(){function e(e,t){var n,r +return function(e){function t(){return he(this,t),fe(this,e.apply(this,arguments))}return me(t,e),t.prototype.insertHTMLBefore=function(t,i,o){return null===o||""===o?e.prototype.insertHTMLBefore.call(this,t,i,o):t.namespaceURI!==n?e.prototype.insertHTMLBefore.call(this,t,i,o):ge(t,r,o,i)},t}(t)}(Bn,zn,In),Wn=Dn.DOMTreeConstruction,Yn=function(){function e(t){Ae(this,e),this.attr=t}return e.prototype.setAttribute=function(e,t,n,r){var i=e.getAppendOperations(),o=function(e){return!1===e||void 0===e||null===e?null:!0===e?"":"function"==typeof e?null:String(e)}(n) +Re(o)||i.setAttribute(t,this.attr,o,r)},e.prototype.updateAttribute=function(e,t,n,r){null===n||void 0===n||!1===n?r?e.getDOM().removeAttributeNS(t,r,this.attr):e.getDOM().removeAttribute(t,this.attr):this.setAttribute(e,t,n)},e}(),Kn=function(e){function t(){return Ae(this,t),Se(this,e.apply(this,arguments))}return Pe(t,e),t.prototype.setAttribute=function(e,t,n){Re(n)||(t[this.attr]=n)},t.prototype.removeAttribute=function(e,t,n){var r=this.attr +n?e.getDOM().removeAttributeNS(t,n,r):e.getDOM().removeAttribute(t,r)},t.prototype.updateAttribute=function(e,t,n,r){t[this.attr]=n,Re(n)&&this.removeAttribute(e,t,r)},t}(Yn),Gn=function(e){function t(){return Ae(this,t),Se(this,e.apply(this,arguments))}return Pe(t,e),t.prototype.setAttribute=function(t,n,r){e.prototype.setAttribute.call(this,t,n,se(t,n,this.attr,r))},t.prototype.updateAttribute=function(t,n,r){e.prototype.updateAttribute.call(this,t,n,se(t,n,this.attr,r))},t}(Kn),$n=new(function(e){function t(){return Ae(this,t),Se(this,e.apply(this,arguments))}return Pe(t,e),t.prototype.setAttribute=function(e,t,n){t.value=H(n)},t.prototype.updateAttribute=function(e,t,n){var r=t,i=r.value,o=H(n) +i!==o&&(r.value=o)},t}(Yn))("value"),Qn=new(function(e){function t(){return Ae(this,t),Se(this,e.apply(this,arguments))}return Pe(t,e),t.prototype.setAttribute=function(e,t,n){null!==n&&void 0!==n&&!1!==n&&(t.selected=!0)},t.prototype.updateAttribute=function(e,t,n){var r=t +r.selected=!!n},t}(Kn))("selected"),Xn=function(e){function t(){return Ae(this,t),Se(this,e.apply(this,arguments))}return Pe(t,e),t.prototype.setAttribute=function(t,n,r){e.prototype.setAttribute.call(this,t,n,se(t,n,this.attr,r))},t.prototype.updateAttribute=function(t,n,r){e.prototype.updateAttribute.call(this,t,n,se(t,n,this.attr,r))},t}(Yn),Jn=function(){function e(e,t){var n,r for(n=0;n1&&void 0!==arguments[1]?arguments[1]:0,i=new Array(r+1) -for(n=0;n<=r;n++)i[n]=Ke +for(n=0;n<=r;n++)i[n]=Ye return new e(i,null,null,null).init({self:t})},e.sized=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=new Array(n+1) -for(t=0;t<=n;t++)r[t]=Ke +for(t=0;t<=n;t++)r[t]=Ye return new e(r,null,null,null)},e.prototype.init=function(e){var t=e.self return this.slots[0]=t,this},e.prototype.getSelf=function(){return this.get(0)},e.prototype.getSymbol=function(e){return this.get(e)},e.prototype.getBlock=function(e){return this.get(e)},e.prototype.getEvalScope=function(){return this.evalScope},e.prototype.getPartialMap=function(){return this.partialMap},e.prototype.bind=function(e,t){this.set(e,t)},e.prototype.bindSelf=function(e){this.set(0,e)},e.prototype.bindSymbol=function(e,t){this.set(e,t)},e.prototype.bindBlock=function(e,t){this.set(e,t)},e.prototype.bindEvalScope=function(e){this.evalScope=e},e.prototype.bindPartialMap=function(e){this.partialMap=e},e.prototype.bindCallerScope=function(e){this.callerScope=e},e.prototype.getCallerScope=function(){return this.callerScope},e.prototype.child=function(){return new e(this.slots.slice(),this.callerScope,this.evalScope,this.partialMap)},e.prototype.get=function(e){if(e>=this.slots.length)throw new RangeError("BUG: cannot get $"+e+" from scope; length="+this.slots.length) return this.slots[e]},e.prototype.set=function(e,t){if(e>=this.slots.length)throw new RangeError("BUG: cannot get $"+e+" from scope; length="+this.slots.length) @@ -1226,8 +1226,8 @@ return this.varTag.inner.update(t.tag),t},e}();(function(e){e[e.Element=0]="Elem var _r=Object.freeze({get NodeType(){return nr}}) e.Simple=_r,e.templateFactory=function(e){var n=e.id,r=e.meta,i=e.block,o=void 0,s=n||"client-"+br++ return{id:s,meta:r,create:function(e,n){var a=n?(0,t.assign)({},n,r):r -return o||(o=JSON.parse(i)),new yr(s,a,e,o)}}},e.NULL_REFERENCE=Ye,e.UNDEFINED_REFERENCE=Ke,e.PrimitiveReference=Ve,e.ConditionalReference=Qe,e.OpcodeBuilderDSL=ln,e.compileLayout=function(e,t){var n=new Jt(t) -return e.compile(n),n.compile()},e.CompiledStaticTemplate=$t,e.CompiledDynamicTemplate=Qt,e.IAttributeManager=Kn,e.AttributeManager=Kn,e.PropertyManager=Yn,e.INPUT_VALUE_PROPERTY_MANAGER=$n,e.defaultManagers=ke,e.defaultAttributeManagers=Me,e.defaultPropertyManagers=Ne,e.readDOMAttr=function(e,t){var n=e.namespaceURI===In,r=ae(e,t),i=r.type,o=r.normalized +return o||(o=JSON.parse(i)),new yr(s,a,e,o)}}},e.NULL_REFERENCE=Ke,e.UNDEFINED_REFERENCE=Ye,e.PrimitiveReference=Ve,e.ConditionalReference=Qe,e.OpcodeBuilderDSL=ln,e.compileLayout=function(e,t){var n=new Jt(t) +return e.compile(n),n.compile()},e.CompiledStaticTemplate=$t,e.CompiledDynamicTemplate=Qt,e.IAttributeManager=Yn,e.AttributeManager=Yn,e.PropertyManager=Kn,e.INPUT_VALUE_PROPERTY_MANAGER=$n,e.defaultManagers=ke,e.defaultAttributeManagers=Me,e.defaultPropertyManagers=Ne,e.readDOMAttr=function(e,t){var n=e.namespaceURI===In,r=ae(e,t),i=r.type,o=r.normalized return n?e.getAttribute(o):"attr"===i?e.getAttribute(o):e[o]},e.Register=He,e.debugSlice=function(){},e.normalizeTextValue=H,e.setDebuggerCallback=function(e){Wt=e},e.resetDebuggerCallback=function(){Wt=V},e.getDynamicVar=function(e,t){var n=e.dynamicScope(),r=t.positional.at(0) return new wr(n,r)},e.BlockMacros=wn,e.InlineMacros=xn,e.compileList=X,e.compileExpression=Q,e.UpdatingVM=ar,e.RenderResult=hr e.isSafeString=N,e.Scope=Zn,e.Environment=or,e.PartialDefinition=function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.name=t,this.template=n},e.ComponentDefinition=function e(t,n,r){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this[Mt]=!0,this.name=t,this.manager=n,this.ComponentClass=r},e.isComponentDefinition=S,e.DOMChanges=Un,e.IDOMChanges=qn,e.DOMTreeConstruction=Wn,e.isWhitespace=function(e){return Fn.test(e)},e.insertHTMLBefore=Oe,e.ElementStack=St,e.ConcreteBounds=xt}),e("@glimmer/util",["exports"],function(e){"use strict" @@ -2007,11 +2007,11 @@ t=(this._environment||i.environment).hasDOM&&"string"==typeof e?document.querySe e.default=u}),e("ember-metal",["exports","ember-environment","ember-utils","ember-debug","ember-babel","@glimmer/reference","require","ember-console","backburner"],function(e,t,n,r,i,o,s,a,l){"use strict" function u(e,t,n,r,i){r||"function"!=typeof n||(r=n,n=null) var o=0 -i&&(o|=Ke),H(e).addToListeners(t,n,r,o),"function"==typeof e.didAddListener&&e.didAddListener(t,n,r)}function c(e,t,n,r){r||"function"!=typeof n||(r=n,n=null) +i&&(o|=Ye),H(e).addToListeners(t,n,r,o),"function"==typeof e.didAddListener&&e.didAddListener(t,n,r)}function c(e,t,n,r){r||"function"!=typeof n||(r=n,n=null) var i="function"==typeof e.didRemoveListener?e.didRemoveListener.bind(e):function(){} H(e).removeFromListeners(t,n,r,i)}function p(e,t,n,r,i){return d(e,[t],n,r,i)}function d(e,t,n,r,i){return r||"function"!=typeof n||(r=n,n=null),H(e).suspendListeners(t,n,r,i)}function h(t,r,i,o,s){var a,l,u,p,d if(void 0===o&&(o="object"==typeof(a=s||e.peekMeta(t))&&null!==a&&a.matchingListeners(r)),void 0===o||0===o.length)return!1 -for(l=o.length-3;l>=0;l-=3)u=o[l],p=o[l+1],d=o[l+2],p&&(d&Ye||(d&Ke&&c(t,r,u,p),u||(u=t),"string"==typeof p?i?n.applyStr(u,p,i):u[p]():i?p.apply(u,i):p.call(u))) +for(l=o.length-3;l>=0;l-=3)u=o[l],p=o[l+1],d=o[l+2],p&&(d&Ke||(d&Ye&&c(t,r,u,p),u||(u=t),"string"==typeof p?i?n.applyStr(u,p,i):u[p]():i?p.apply(u,i):p.call(u))) return!0}function f(t,n){var r,i,o,s=[],a=e.peekMeta(t),l=a&&a.matchingListeners(n) if(!l)return s for(r=0;r=0||"concatenatedProperties"===t||"mergedProperties"===t?r=function(e,t,r,i){var o=i[t]||e[t] return null===o||void 0===o?n.makeArray(r):zt(o)?null===r||void 0===r?o:qt.call(o,r):qt.call(n.makeArray(o),r)}(e,t,r,s):l&&l.indexOf(t)>-1?r=function(e,t,r,i){var o,s=i[t]||e[t] @@ -2116,7 +2116,7 @@ n&&(r=t.slice(0,-7),n instanceof Ht?(n=n.copy()).to(r):n=new Ht(r,n),n.connect(e return n[i]||r[i]?(o=r[i],t=n[i]):(s=e[i])&&null!==s&&"object"==typeof s&&s.isDescriptor?(t=s,o=void 0):(t=void 0,o=e[i]),{desc:t,value:o}}function Ie(e,t,n,r){var i if(n)for(i=0;i=0;o-=4)if(i[o]===e&&(!n||i[o+1]===t&&i[o+2]===n)){if(s!==this)return this._finalizeListeners(),this.removeFromListeners(e,t,n) "function"==typeof r&&r(e,t,i[o+2]),i.splice(o,4)}if(s._listenersFinalized)break @@ -2141,7 +2141,7 @@ for(r=0;r("+this._from+" -> "+this._to+")"+e},e.prototype.connect=function(e){var n,r=void 0,i=void 0,o=void 0 -return q(this._from)&&(n=function(e){return wt.get(e)}(this._from),(o=t.context.lookup[n])&&(r=o,i=function(e){return _t.get(e)}(this._from))),void 0===r&&(r=e,i=this._from),K(e,this._to,V(r,i)),we(r,i,this,"fromDidChange"),this._oneWay||we(e,this._to,this,"toDidChange"),u(e,"willDestroy",this,"disconnect"),this._to,this._from,this._oneWay,!o&&this._oneWay,this._readyToSync=!0,this._fromObj=r,this._fromPath=i,this._toObj=e,this},e.prototype.disconnect=function(){return _e(this._fromObj,this._fromPath,this,"fromDidChange"),this._oneWay||_e(this._toObj,this._to,this,"toDidChange"),this._readyToSync=!1,this},e.prototype.fromDidChange=function(){this._scheduleSync("fwd")},e.prototype.toDidChange=function(){this._scheduleSync("back")},e.prototype._scheduleSync=function(e){var t=this._direction +return q(this._from)&&(n=function(e){return wt.get(e)}(this._from),(o=t.context.lookup[n])&&(r=o,i=function(e){return _t.get(e)}(this._from))),void 0===r&&(r=e,i=this._from),Y(e,this._to,V(r,i)),we(r,i,this,"fromDidChange"),this._oneWay||we(e,this._to,this,"toDidChange"),u(e,"willDestroy",this,"disconnect"),this._to,this._from,this._oneWay,!o&&this._oneWay,this._readyToSync=!0,this._fromObj=r,this._fromPath=i,this._toObj=e,this},e.prototype.disconnect=function(){return _e(this._fromObj,this._fromPath,this,"fromDidChange"),this._oneWay||_e(this._toObj,this._to,this,"toDidChange"),this._readyToSync=!1,this},e.prototype.fromDidChange=function(){this._scheduleSync("fwd")},e.prototype.toDidChange=function(){this._scheduleSync("back")},e.prototype._scheduleSync=function(e){var t=this._direction void 0===t&&(ce.schedule("sync",this,"_sync"),this._direction=e),"back"===t&&"fwd"===e&&(this._direction="fwd")},e.prototype._sync=function(){var e,n,r=t.ENV.LOG_BINDINGS,i=this._toObj if(!i.isDestroyed&&this._readyToSync){var o=this._direction,s=this._fromObj,l=this._fromPath -this._direction=void 0,"fwd"===o?(e=V(s,l),r&&a.log(" ",this.toString(),"->",e,s),this._oneWay?K(i,this._to,e):Ee(i,this._to,this,"toDidChange",function(){K(i,this._to,e)})):"back"===o&&(n=V(i,this._to),r&&a.log(" ",this.toString(),"<-",n,i),Ee(s,l,this,"fromDidChange",function(){K(s,l,n)}))}},e}();(function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(Ht,{from:function(e){return new this(void 0,e)},to:function(e){return new this(e,void 0)}}) +this._direction=void 0,"fwd"===o?(e=V(s,l),r&&a.log(" ",this.toString(),"->",e,s),this._oneWay?Y(i,this._to,e):Ee(i,this._to,this,"toDidChange",function(){Y(i,this._to,e)})):"back"===o&&(n=V(i,this._to),r&&a.log(" ",this.toString(),"<-",n,i),Ee(s,l,this,"fromDidChange",function(){Y(s,l,n)}))}},e}();(function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(Ht,{from:function(e){return new this(void 0,e)},to:function(e){return new this(e,void 0)}}) var qt=Array.prototype.concat,zt=Array.isArray,Vt={} Ne("notbound"),Ne("fooBinding") var Ut=function(){function t(e,i){this.properties=i @@ -2288,21 +2288,21 @@ for(e=arguments.length,t=Array(e),n=0;n0},e.listenersFor=f @@ -2336,15 +2336,15 @@ void 0!==n&&n.destroy()} e.isWatching=function(e,t){return Q(e,t)>0},e.unwatch=X,e.watch=$,e.watcherCount=Q,e.libraries=Bt,e.Libraries=Ft,e.Map=ge,e.MapWithDefault=ve,e.OrderedSet=me,e.getProperties=function(e){var t={},n=arguments,r=1 for(2===arguments.length&&Array.isArray(arguments[1])&&(r=0,n=arguments[1]);r1?t-1:0),r=1;r1?r.forEach(function(e,n){var r=S(i,e,i[e]+t !1===r?t=0:(t=r-i[e],i[e]=r)}):o=s=[!0] var a=!1 r.forEach(function(e,r){a=k(e,n[e]+t,o[r],s[r])||a}),a&&r.forEach(function(e){w("update",e),w("slide",e)})}function w(e,t,n){Object.keys(X).forEach(function(r){var o=r.split(".")[0] -e===o&&X[r].forEach(function(e){e.call(q,Q.map(i.format.to),t,Q.slice(),n||!1,K.slice())})})}function _(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&E(e,t)}function x(e,t){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==t.buttonsProperty)return E(e,t) +e===o&&X[r].forEach(function(e){e.call(q,Q.map(i.format.to),t,Q.slice(),n||!1,Y.slice())})})}function _(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&E(e,t)}function x(e,t){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==t.buttonsProperty)return E(e,t) var n=(i.dir?-1:1)*(e.calcPoint-t.startCalcPoint) y(n>0,100*n/t.baseSize,t.locations,t.handleNumbers)}function E(t,n){n.handle&&(s(n.handle,i.cssClasses.active),G-=1),n.listeners.forEach(function(e){Z.removeEventListener(e[0],e[1])}),0===G&&(s(W,i.cssClasses.drag),A(),t.cursor&&(ee.style.cursor="",ee.removeEventListener("selectstart",e))),n.handleNumbers.forEach(function(e){w("change",e),w("set",e),w("end",e)})}function C(t,n){var r if(1===n.handleNumbers.length){var s=F[n.handleNumbers[0]] if(s.hasAttribute("disabled"))return!1 r=s.children[0],G+=1,o(r,i.cssClasses.active)}t.stopPropagation() -var a=[],l=v(V.move,Z,x,{target:t.target,handle:r,listeners:a,startCalcPoint:t.calcPoint,baseSize:g(),pageOffset:t.pageOffset,handleNumbers:n.handleNumbers,buttonsProperty:t.buttons,locations:K.slice()}),u=v(V.end,Z,E,{target:t.target,handle:r,listeners:a,handleNumbers:n.handleNumbers}),c=v("mouseout",Z,_,{target:t.target,handle:r,listeners:a,handleNumbers:n.handleNumbers}) +var a=[],l=v(V.move,Z,x,{target:t.target,handle:r,listeners:a,startCalcPoint:t.calcPoint,baseSize:g(),pageOffset:t.pageOffset,handleNumbers:n.handleNumbers,buttonsProperty:t.buttons,locations:Y.slice()}),u=v(V.end,Z,E,{target:t.target,handle:r,listeners:a,handleNumbers:n.handleNumbers}),c=v("mouseout",Z,_,{target:t.target,handle:r,listeners:a,handleNumbers:n.handleNumbers}) a.push.apply(a,l.concat(u,c)),t.cursor&&(ee.style.cursor=getComputedStyle(t.target).cursor,F.length>1&&o(W,i.cssClasses.drag),ee.addEventListener("selectstart",e,!1)),n.handleNumbers.forEach(function(e){w("start",e)})}function T(e){e.stopPropagation() var t=b(e.calcPoint),r=function(e){var t=100,n=!1 -return F.forEach(function(r,i){if(!r.hasAttribute("disabled")){var o=Math.abs(K[i]-e) +return F.forEach(function(r,i){if(!r.hasAttribute("disabled")){var o=Math.abs(Y[i]-e) o1&&(r&&t>0&&(n=Math.max(n,e[t-1]+i.margin)),o&&t1&&i.limit&&(r&&t>0&&(n=Math.min(n,e[t-1]+i.limit)),o&&t50?-1:1,n=3+(F.length+t*e) -F[e].childNodes[0].style.zIndex=n})}function k(e,t,n,r){return!1!==(t=S(K,e,t,n,r,!1))&&(function(e,t){K[e]=t,Q[e]=$.fromStepping(t) +Object.keys(X).forEach(function(e){"hover"===e.split(".")[0]&&X[e].forEach(function(e){e.call(q,r)})})}function S(e,t,n,r,o,s){return F.length>1&&(r&&t>0&&(n=Math.max(n,e[t-1]+i.margin)),o&&t1&&i.limit&&(r&&t>0&&(n=Math.min(n,e[t-1]+i.limit)),o&&t50?-1:1,n=3+(F.length+t*e) +F[e].childNodes[0].style.zIndex=n})}function k(e,t,n,r){return!1!==(t=S(Y,e,t,n,r,!1))&&(function(e,t){Y[e]=t,Q[e]=$.fromStepping(t) var n=function(){F[e].style[i.style]=P(t),N(e),N(e+1)} window.requestAnimationFrame&&i.useRequestAnimationFrame?window.requestAnimationFrame(n):n()}(e,t),!0)}function N(e){if(H[e]){var t=0,n=100 -0!==e&&(t=K[e-1]),e!==H.length-1&&(n=K[e]),H[e].style[i.style]=P(t),H[e].style[i.styleOposite]=P(100-n)}}function M(e,t){null!==e&&!1!==e&&("number"==typeof e&&(e=String(e)),!1===(e=i.format.from(e))||isNaN(e)||k(t,$.toStepping(e),!1,!1))}function R(e,t){var o=r(e),s=void 0===K[0] -t=void 0===t||!!t,o.forEach(M),i.animate&&!s&&n(W,i.cssClasses.tap,i.animationDuration),Y.forEach(function(e){k(e,K[e],!0,!1)}),A(),Y.forEach(function(e){w("update",e),null!==o[e]&&t&&w("set",e)})}function I(){var e=Q.map(i.format.to) +0!==e&&(t=Y[e-1]),e!==H.length-1&&(n=Y[e]),H[e].style[i.style]=P(t),H[e].style[i.styleOposite]=P(100-n)}}function M(e,t){null!==e&&!1!==e&&("number"==typeof e&&(e=String(e)),!1===(e=i.format.from(e))||isNaN(e)||k(t,$.toStepping(e),!1,!1))}function R(e,t){var o=r(e),s=void 0===Y[0] +t=void 0===t||!!t,o.forEach(M),i.animate&&!s&&n(W,i.cssClasses.tap,i.animationDuration),K.forEach(function(e){k(e,Y[e],!0,!1)}),A(),K.forEach(function(e){w("update",e),null!==o[e]&&t&&w("set",e)})}function I(){var e=Q.map(i.format.to) return 1===e.length?e[0]:e}function j(e,t){X[e]=X[e]||[],X[e].push(t),"update"===e.split(".")[0]&&F.forEach(function(e,t){w("update",t)})}var L,F,H,q,z,V=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},U=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var e=!1 try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}) -window.addEventListener("test",null,t)}catch(e){}return e}(),W=t,K=[],Y=[],G=0,$=i.spectrum,Q=[],X={},J=t.ownerDocument,Z=J.documentElement,ee=J.body +window.addEventListener("test",null,t)}catch(e){}return e}(),W=t,Y=[],K=[],G=0,$=i.spectrum,Q=[],X={},J=t.ownerDocument,Z=J.documentElement,ee=J.body if(W.noUiSlider)throw new Error("noUiSlider ("+B+"): Slider was already initialized.") return function(e){o(e,i.cssClasses.target),0===i.dir?o(e,i.cssClasses.ltr):o(e,i.cssClasses.rtl),0===i.ort?o(e,i.cssClasses.horizontal):o(e,i.cssClasses.vertical),L=u(e,i.cssClasses.base)}(W),function(e,t){F=[],(H=[]).push(p(t,e[0])) -for(var n=0;nn.stepAfter.startValue&&(i=n.stepAfter.startValue-r),o=r>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&r-n.stepBefore.highestStep,100===e?i=null:0===e&&(o=null) var s=$.countStepDecimals() return null!==i&&!1!==i&&(i=Number(i.toFixed(s))),null!==o&&!1!==o&&(o=Number(o.toFixed(s))),[o,i]})},on:j,off:function(e){var t=e&&e.split(".")[0],n=t&&e.substring(t.length) Object.keys(X).forEach(function(e){var r=e.split(".")[0],i=e.substring(r.length) -t&&t!==r||n&&n!==i||delete X[e]})},get:I,set:R,reset:function(e){R(i.start,e)},__moveHandles:function(e,t,n){y(e,t,K,n)},options:l,updateOptions:function(e,t){var n=I(),r=["margin","limit","padding","range","animate","snap","step","format"] +t&&t!==r||n&&n!==i||delete X[e]})},get:I,set:R,reset:function(e){R(i.start,e)},__moveHandles:function(e,t,n){y(e,t,Y,n)},options:l,updateOptions:function(e,t){var n=I(),r=["margin","limit","padding","range","animate","snap","step","format"] r.forEach(function(t){void 0!==e[t]&&(l[t]=e[t])}) var o=D(l) -r.forEach(function(t){void 0!==e[t]&&(i[t]=o[t])}),$=o.spectrum,i.margin=o.margin,i.limit=o.limit,i.padding=o.padding,i.pips&&m(i.pips),K=[],R(e.start||n,t)},target:W,removePips:f,pips:m},function(e){e.fixed||F.forEach(function(e,t){v(V.start,e.children[0],C,{handleNumbers:[t]})}),e.tap&&v(V.start,L,T,{}),e.hover&&v(V.move,L,O,{hover:!0}),e.drag&&H.forEach(function(t,n){if(!1!==t&&0!==n&&n!==H.length-1){var r=F[n-1],s=F[n],a=[t] +r.forEach(function(t){void 0!==e[t]&&(i[t]=o[t])}),$=o.spectrum,i.margin=o.margin,i.limit=o.limit,i.padding=o.padding,i.pips&&m(i.pips),Y=[],R(e.start||n,t)},target:W,removePips:f,pips:m},function(e){e.fixed||F.forEach(function(e,t){v(V.start,e.children[0],C,{handleNumbers:[t]})}),e.tap&&v(V.start,L,T,{}),e.hover&&v(V.move,L,O,{hover:!0}),e.drag&&H.forEach(function(t,n){if(!1!==t&&0!==n&&n!==H.length-1){var r=F[n-1],s=F[n],a=[t] o(t,i.cssClasses.draggable),e.fixed&&(a.push(r.children[0]),a.push(s.children[0])),a.forEach(function(e){v(V.start,e,C,{handles:[r,s],handleNumbers:[n-1,n]})})}})}(i.events),R(i.start),i.pips&&m(i.pips),i.tooltips&&function(){var e=F.map(d) j("update",function(t,n,r){if(e[n]){var o=t[n] -!0!==i.tooltips[n]&&(o=i.tooltips[n].to(r[n])),e[n].innerHTML=o}})}(),j("update",function(e,t,n,r,o){Y.forEach(function(e){var t=F[e],r=S(K,e,0,!0,!0,!0),s=S(K,e,100,!0,!0,!0),a=o[e],l=i.ariaFormat.to(n[e]) +!0!==i.tooltips[n]&&(o=i.tooltips[n].to(r[n])),e[n].innerHTML=o}})}(),j("update",function(e,t,n,r,o){K.forEach(function(e){var t=F[e],r=S(Y,e,0,!0,!0,!0),s=S(Y,e,100,!0,!0,!0),a=o[e],l=i.ariaFormat.to(n[e]) t.children[0].setAttribute("aria-valuemin",r.toFixed(1)),t.children[0].setAttribute("aria-valuemax",s.toFixed(1)),t.children[0].setAttribute("aria-valuenow",a.toFixed(1)),t.children[0].setAttribute("aria-valuetext",l)})}),q}var B="10.1.0" m.prototype.getMargin=function(e){var t=this.xNumSteps[0] if(t&&e/t%1!=0)throw new Error("noUiSlider ("+B+"): 'limit', 'margin' and 'padding' must be divisible by step.") @@ -3605,8 +3605,8 @@ if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY} this.lastTouches.push(n) var r=this.lastTouches,i=function(){var e=r.indexOf(n) e>-1&&r.splice(e,1)} -setTimeout(i,De)}}function L(e,t){this.manager=e,this.set(t)}function D(e){this.options=X({},this.defaults,e||{}),this.id=se++,this.manager=null,this.options.enable=p(this.options.enable,!0),this.state=Ye,this.simultaneous={},this.requireFail=[]}function F(e){return e&Je?"cancel":e&Qe?"end":e&$e?"move":e&Ge?"start":""}function B(e){return e==ye?"down":e==be?"up":e==ge?"left":e==ve?"right":""}function H(e,t){var n=t.manager -return n?n.get(e):e}function q(){D.apply(this,arguments)}function z(){q.apply(this,arguments),this.pX=null,this.pY=null}function V(){q.apply(this,arguments)}function U(){D.apply(this,arguments),this._timer=null,this._input=null}function W(){q.apply(this,arguments)}function K(){q.apply(this,arguments)}function Y(){D.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function G(e,t){return t=t||{},t.recognizers=p(t.recognizers,G.defaults.preset),new $(e,t)}function $(e,t){this.options=X({},G.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=function(e){var t=e.options.inputClass +setTimeout(i,De)}}function L(e,t){this.manager=e,this.set(t)}function D(e){this.options=X({},this.defaults,e||{}),this.id=se++,this.manager=null,this.options.enable=p(this.options.enable,!0),this.state=Ke,this.simultaneous={},this.requireFail=[]}function F(e){return e&Je?"cancel":e&Qe?"end":e&$e?"move":e&Ge?"start":""}function B(e){return e==ye?"down":e==be?"up":e==ge?"left":e==ve?"right":""}function H(e,t){var n=t.manager +return n?n.get(e):e}function q(){D.apply(this,arguments)}function z(){q.apply(this,arguments),this.pX=null,this.pY=null}function V(){q.apply(this,arguments)}function U(){D.apply(this,arguments),this._timer=null,this._input=null}function W(){q.apply(this,arguments)}function Y(){q.apply(this,arguments)}function K(){D.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function G(e,t){return t=t||{},t.recognizers=p(t.recognizers,G.defaults.preset),new $(e,t)}function $(e,t){this.options=X({},G.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=function(e){var t=e.options.inputClass return new(t||(le?N:ue?R:ae?I:k))(e,E)}(this),this.touchAction=new L(this,this.options.touchAction),Q(this,!0),s(this.options.recognizers,function(e){var t=this.add(new e[0](e[1])) e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function Q(e,t){var n=e.element if(n.style){var r @@ -3642,18 +3642,18 @@ if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)(func else if(i&&function(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){n.manager.emit(t,e)}var n=this,r=this.state r=Qe&&t(n.options.event+F(r))},tryEmit:function(e){if(this.canEmit())return this.emit(e) -this.state=32},canEmit:function(){for(var e=0;ethis.options.threshold||this.state&Ge)}}),l(K,q,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:we|_e,pointers:1},getTouchAction:function(){return z.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction +return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===Xe&&(e&&e.eventType&he?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=re(),this.manager.emit(this.options.event,this._input)))}}),l(W,q,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ve]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&Ge)}}),l(Y,q,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:we|_e,pointers:1},getTouchAction:function(){return z.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction return n&(we|_e)?t=e.overallVelocity:n&we?t=e.overallVelocityX:n&_e&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&ne(t)>this.options.velocity&&e.eventType&he},emit:function(e){var t=B(e.offsetDirection) -t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),l(Y,D,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ze]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance - + @@ -62,8 +62,8 @@ - - + +