From 33d732e7b14cb1e41d4e77d4390c6243c9a32271 Mon Sep 17 00:00:00 2001 From: Egor Date: Wed, 20 Dec 2017 00:43:03 -0800 Subject: [PATCH] Deployed e838811 --- ...egasm-f0d8cb4159003febcd97513fdf8d636e.js} | 280 +++--- ...endor-272cdddc6b5a4e227837f5f4f680033f.js} | 805 ++++++++---------- index.html | 6 +- 3 files changed, 523 insertions(+), 568 deletions(-) rename assets/{huegasm-11cb0e4a5452af55d6cd91dff3a159f9.js => huegasm-f0d8cb4159003febcd97513fdf8d636e.js} (87%) rename assets/{vendor-3bbb22e25145c0f1c3f8f1c6105bfc35.js => vendor-272cdddc6b5a4e227837f5f4f680033f.js} (95%) diff --git a/assets/huegasm-11cb0e4a5452af55d6cd91dff3a159f9.js b/assets/huegasm-f0d8cb4159003febcd97513fdf8d636e.js similarity index 87% rename from assets/huegasm-11cb0e4a5452af55d6cd91dff3a159f9.js rename to assets/huegasm-f0d8cb4159003febcd97513fdf8d636e.js index c62c475..518e60d 100644 --- a/assets/huegasm-11cb0e4a5452af55d6cd91dff3a159f9.js +++ b/assets/huegasm-f0d8cb4159003febcd97513fdf8d636e.js @@ -12,11 +12,11 @@ var o="the 'cancel-all' template helper was invoked" e.default=Ember.Helper.helper(n)}),define("huegasm/helpers/ember-power-select-is-group",["exports","ember-power-select/helpers/ember-power-select-is-group"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"emberPowerSelectIsGroup",{enumerable:!0,get:function(){return t.emberPowerSelectIsGroup}})}),define("huegasm/helpers/ember-power-select-is-selected",["exports","ember-power-select/helpers/ember-power-select-is-selected"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"emberPowerSelectIsSelected",{enumerable:!0,get:function(){return t.emberPowerSelectIsSelected}})}),define("huegasm/helpers/ember-power-select-true-string-if-present",["exports","ember-power-select/helpers/ember-power-select-true-string-if-present"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"emberPowerSelectTrueStringIfPresent",{enumerable:!0,get:function(){return t.emberPowerSelectTrueStringIfPresent}})}),define("huegasm/helpers/eq",["exports","ember-truth-helpers/helpers/equal"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"equal",{enumerable:!0,get:function(){return t.equal}})}),define("huegasm/helpers/fixed-grid-layout",["exports","ember-collection/layouts/grid"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.Helper.helper(function(e,n){return new t.default(e[0],e[1])})}),define("huegasm/helpers/gt",["exports","ember-truth-helpers/helpers/gt"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"gt",{enumerable:!0,get:function(){return t.gt}})}) define("huegasm/helpers/gte",["exports","ember-truth-helpers/helpers/gte"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"gte",{enumerable:!0,get:function(){return t.gte}})}),define("huegasm/helpers/inline-svg",["exports","ember-inline-svg/helpers/inline-svg","huegasm/svgs"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}) var o=function(){return function(e,t){if(Array.isArray(e))return e -if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,s=!1,i=void 0 -try{for(var a,r=e[Symbol.iterator]();!(o=(a=r.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{!o&&r.return&&r.return()}finally{if(s)throw i}}return n}(e,t) +if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,s=!1,a=void 0 +try{for(var i,l=e[Symbol.iterator]();!(o=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{!o&&l.return&&l.return()}finally{if(s)throw a}}return n}(e,t) throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=void 0 -s=Ember.Helper&&Ember.Helper.helper?Ember.Helper.helper(function(e,s){var i=o(e,1)[0] -return(0,t.inlineSvg)(n.default,i,s)}):Ember.Handlebars.makeBoundHelper(function(e,o){return(0,t.inlineSvg)(n.default,e,o.hash||{})}),e.default=s}),define("huegasm/helpers/is-array",["exports","ember-truth-helpers/helpers/is-array"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return t.isArray}})}),define("huegasm/helpers/is-equal",["exports","ember-truth-helpers/helpers/is-equal"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isEqual",{enumerable:!0,get:function(){return t.isEqual}})}),define("huegasm/helpers/lt",["exports","ember-truth-helpers/helpers/lt"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"lt",{enumerable:!0,get:function(){return t.lt}})}),define("huegasm/helpers/lte",["exports","ember-truth-helpers/helpers/lte"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"lte",{enumerable:!0,get:function(){return t.lte}})}),define("huegasm/helpers/mixed-grid-layout",["exports","ember-collection/layouts/mixed-grid"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.Helper.helper(function(e,n){return new t.default(e[0])})}),define("huegasm/helpers/not-eq",["exports","ember-truth-helpers/helpers/not-equal"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"notEq",{enumerable:!0,get:function(){return t.notEq}})}),define("huegasm/helpers/not",["exports","ember-truth-helpers/helpers/not"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"not",{enumerable:!0,get:function(){return t.not}})}),define("huegasm/helpers/or",["exports","ember-truth-helpers/helpers/or"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"or",{enumerable:!0,get:function(){return t.or}})}),define("huegasm/helpers/percentage-columns-layout",["exports","ember-collection/layouts/percentage-columns"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.Helper.helper(function(e,n){return new t.default(e[0],e[1],e[2])})}),define("huegasm/helpers/perform",["exports","ember-concurrency/-helpers"],function(e,t){function n(e,n){return(0,t.taskHelperClosure)("perform","perform",e,n)}Object.defineProperty(e,"__esModule",{value:!0}),e.performHelper=n,e.default=Ember.Helper.helper(n)}),define("huegasm/helpers/task",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.Helper.helper(function(e){var t=function(e){return Array.isArray(e)?e:Array.from(e)}(e),n=t[0],o=t.slice(1) +s=Ember.Helper&&Ember.Helper.helper?Ember.Helper.helper(function(e,s){var a=o(e,1)[0] +return(0,t.inlineSvg)(n.default,a,s)}):Ember.Handlebars.makeBoundHelper(function(e,o){return(0,t.inlineSvg)(n.default,e,o.hash||{})}),e.default=s}),define("huegasm/helpers/is-array",["exports","ember-truth-helpers/helpers/is-array"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return t.isArray}})}),define("huegasm/helpers/is-equal",["exports","ember-truth-helpers/helpers/is-equal"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isEqual",{enumerable:!0,get:function(){return t.isEqual}})}),define("huegasm/helpers/lt",["exports","ember-truth-helpers/helpers/lt"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"lt",{enumerable:!0,get:function(){return t.lt}})}),define("huegasm/helpers/lte",["exports","ember-truth-helpers/helpers/lte"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"lte",{enumerable:!0,get:function(){return t.lte}})}),define("huegasm/helpers/mixed-grid-layout",["exports","ember-collection/layouts/mixed-grid"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.Helper.helper(function(e,n){return new t.default(e[0])})}),define("huegasm/helpers/not-eq",["exports","ember-truth-helpers/helpers/not-equal"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"notEq",{enumerable:!0,get:function(){return t.notEq}})}),define("huegasm/helpers/not",["exports","ember-truth-helpers/helpers/not"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"not",{enumerable:!0,get:function(){return t.not}})}),define("huegasm/helpers/or",["exports","ember-truth-helpers/helpers/or"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"or",{enumerable:!0,get:function(){return t.or}})}),define("huegasm/helpers/percentage-columns-layout",["exports","ember-collection/layouts/percentage-columns"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.Helper.helper(function(e,n){return new t.default(e[0],e[1],e[2])})}),define("huegasm/helpers/perform",["exports","ember-concurrency/-helpers"],function(e,t){function n(e,n){return(0,t.taskHelperClosure)("perform","perform",e,n)}Object.defineProperty(e,"__esModule",{value:!0}),e.performHelper=n,e.default=Ember.Helper.helper(n)}),define("huegasm/helpers/task",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.Helper.helper(function(e){var t=function(e){return Array.isArray(e)?e:Array.from(e)}(e),n=t[0],o=t.slice(1) return n._curry.apply(n,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1){var s=e.get("multipleBridgeIps") t.forEach(function(e){s.pushObject(e.internalipaddress)}),o="multiple"}else o="fail" e.set("bridgeFindStatus",o)}).fail(function(){e.set("bridgeFindStatus","fail")})},pingBridgeUser:function(){var e=this,t=this.get("bridgeIp"),n=this.get("bridgeUserNamePingIntervalProgress"),o=this.get("bridgeUsernamePingMaxTime") -null!==t&&n<100?(r.ajax("http://"+t+"/api",{data:JSON.stringify({devicetype:"huegasm"}),contentType:"application/json",type:"POST"}).done(function(t,n){e.isDestroyed||"success"!==n||t[0].error||(e.clearBridgePingIntervalHandle(),e.get("storage").set("huegasm.bridgeUsername",t[0].success.username),e.set("bridgeUsername",t[0].success.username))}).fail(function(){e.clearBridgePingIntervalHandle(),e.setProperties({bridgeConnectError:!0,bridgeConnectMessage:l('Your network and/or computer security settings are preventing Huegasm from connecting to your Hue bridge.
Feel free to contact us at huegasm.app@gmail.com if this is unexpected and you need help debugging the problem.')})}),this.incrementProperty("bridgeUserNamePingIntervalProgress",this.get("bridgeUsernamePingIntervalTime")/o*100)):this.clearBridgePingIntervalHandle()},clearBridgePingIntervalHandle:function(){clearInterval(this.get("bridgePingIntervalHandle")),this.set("bridgePingIntervalHandle",null)},actions:{retry:function(){this.onBridgeIpChange()},chooseBridge:function(e){this.set("bridgeIp",e),this.get("storage").set("huegasm.bridgeIp",e)},findBridgeByIp:function(){var e=this,t=this.get("manualBridgeIp") -"trial"===t.toLowerCase()||"offline"===t.toLowerCase()?this.setProperties({trial:!0,bridgeIp:"trial",bridgeUsername:"trial"}):r.ajax("http://"+t+"/api",{data:JSON.stringify({devicetype:"huegasm"}),contentType:"application/json",type:"POST"}).fail(function(){e.set("manualBridgeIpNotFound",!0),a(e,function(){this.set("manualBridgeIpNotFound",!1)},5e3)}).then(function(){e.send("chooseBridge",t)})}}})}),define("huegasm/pods/components/bridge-finder/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.HTMLBars.template({id:"V7xhQEDN",block:'{"symbols":["bridge"],"statements":[[4,"unless",[[20,["bridgeUsername"]]],null,{"statements":[[4,"if",[[20,["bridgeIp"]]],null,{"statements":[[4,"unless",[[20,["bridgeConnectError"]]],null,{"statements":[[0," "],[6,"svg"],[9,"version","1.2"],[9,"baseProfile","tiny"],[9,"id","press-bridge-button-img"],[9,"x","0px"],[9,"y","0px"],[9,"viewBox","0 0 345.5 335.5"],[9,"xml:space","preserve","http://www.w3.org/XML/1998/namespace"],[7],[0,"\\n "],[6,"path"],[9,"style"," fill: white; stroke: black;"],[9,"d","M164.7,288.7c8.3-21.9,40.4-18.1,40.4-18.1l-56.2-88.5c-16.7-0.6-30-14.3-30-31.1c0-17.2,13.9-31.2,31.2-31.2\\n c17.2,0,31.2,13.9,31.2,31.2c0,5.2-1.3,10.1-3.5,14.4c3.6,5.8,10.6,17.1,18.1,29.3l6,9.8c-7.2-11.8-0.9-20.7,5.3-23.3\\n c14-9.1,21.4,5.1,21.4,5.1l5.3,8.7c-5.3-8.7-4.8-16.3,2.8-20.7c0,0,4.8-3.4,9.4-2.7c5.1,0.8,11.8,6.2,19.6,19.7\\n c0.3,0.6,0.6,1.1,0.9,1.6c-2.4-5.9-6-19.8,6.4-25.9c12.2-5.2,18.8,3.1,18.8,3.1s2.2,3.2,5.6,8.4c1.8-9.3,2.7-18.8,2.7-28.6\\n C300,67.1,232.8,0,150,0C67.1,0,0,67.1,0,150s67.1,150,150,150c4.6,0,9.1-0.2,13.6-0.6C162.2,295.5,163.5,290.9,164.7,288.7z\\n M150,66.6c6.5,0,11.8,5.3,11.8,11.8c0,6.5-5.3,11.8-11.8,11.8c-6.5,0-11.8-5.3-11.8-11.8C138.2,71.9,143.5,66.6,150,66.6z\\n M79.7,161.8c-6.5,0-11.8-5.3-11.8-11.8c0-6.5,5.3-11.8,11.8-11.8c6.5,0,11.8,5.3,11.8,11.8C91.5,156.5,86.2,161.8,79.7,161.8z\\n M98.3,110c-6.5,0-11.8-5.3-11.8-11.8c0-6.5,5.3-11.8,11.8-11.8c6.5,0,11.8,5.3,11.8,11.8C110.1,104.7,104.8,110,98.3,110z"],[7],[8],[0,"\\n "],[6,"path"],[9,"style"," fill: white; stroke: #8089ff; stroke-width: 5px;"],[9,"d","M150.8,154.6c10.6-6.4,16.8-2.8,20.4,1.2c0.3-1.5,0.5-3.1,0.5-4.7c0-12-9.7-21.8-21.8-21.8c-12,0-21.8,9.7-21.8,21.8\\n c0,9.7,6.4,17.9,15.1,20.7C141.8,166.6,142.2,159.8,150.8,154.6z"],[7],[8],[0,"\\n "],[6,"path"],[9,"style"," fill: white; "],[9,"stroke","#000000"],[9,"stroke-width","7"],[9,"stroke-linecap","round"],[9,"stroke-linejoin","round"],[9,"stroke-miterlimit","10"],[9,"d","\\n M265.5,191.4c8.9,15.5-12.7-14.5,7.2-24.3c12.2-5.2,18.8,3.1,18.8,3.1s34.7,51.1,47.6,79.2c9.6,35.8-7,57.4-32.7,74\\n c-25.7,16.6-46,6.2-65.4-4.8c-19.4-11-47-13.6-64.2-12.8c-17.2,0.8-14.5-12.8-12.2-17.1c8.3-21.9,40.4-18.1,40.4-18.1L147.6,180\\n c0,0-12.9-15.6,3.2-25.4c16.1-9.7,22.2,3.7,24.3,6.6c0.9,1.3,10.2,16.4,20.6,33.3l6,9.8c-7.2-11.8-0.9-20.7,5.3-23.3\\n c14-9.1,21.4,5.1,21.4,5.1l5.3,8.7c-5.3-8.7-4.8-16.3,2.8-20.7c0,0,4.8-3.4,9.4-2.7C251,172.4,257.8,177.8,265.5,191.4z"],[7],[8],[0,"\\n "],[6,"line"],[9,"fill","none"],[9,"stroke","#000000"],[9,"stroke-width","7"],[9,"stroke-linecap","round"],[9,"stroke-linejoin","round"],[9,"stroke-miterlimit","10"],[9,"x1","266.9"],[9,"y1","194.1"],[9,"x2","278.3"],[9,"y2","213.9"],[7],[8],[0,"\\n "],[6,"line"],[9,"fill","none"],[9,"stroke","#000000"],[9,"stroke-width","7"],[9,"stroke-linecap","round"],[9,"stroke-linejoin","round"],[9,"stroke-miterlimit","10"],[9,"x1","233.1"],[9,"y1","194.1"],[9,"x2","252.9"],[9,"y2","227"],[7],[8],[0,"\\n "],[6,"line"],[9,"fill","none"],[9,"stroke","#000000"],[9,"stroke-width","7"],[9,"stroke-linecap","round"],[9,"stroke-linejoin","round"],[9,"stroke-miterlimit","10"],[9,"x1","200.6"],[9,"y1","203"],[9,"x2","226"],[9,"y2","241.6"],[7],[8],[0,"\\n "],[8],[0,"\\n\\n "],[1,[25,"paper-progress-linear",null,[["warn","value"],[true,[20,["bridgeUserNamePingIntervalProgress"]]]]],false],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"if",[[20,["isAuthenticating"]]],null,{"statements":[[0," "],[6,"p"],[7],[0,"\\n Your bridge IP is "],[6,"b"],[7],[1,[18,"bridgeIp"],false],[8],[0,"\\n "],[6,"br"],[7],[8],[0," Press the button on your bridge to authenticate Huegasm.\\n "],[8],[0,"\\n"]],"parameters":[]},{"statements":[[4,"if",[[20,["bridgeConnectError"]]],null,{"statements":[[0," "],[1,[18,"bridgeConnectMessage"],false],[0,"\\n"]],"parameters":[]},{"statements":[[0," "],[6,"p"],[7],[0,"You failed to press the button in time. "],[6,"a"],[9,"class","no-text-decoration"],[9,"href","#"],[3,"action",[[19,0,[]],"retry"]],[7],[0,"RETRY"],[8],[8],[0,"\\n"]],"parameters":[]}]],"parameters":[]}]],"parameters":[]},{"statements":[[4,"unless",[[20,["bridgeFindStatus"]]],null,{"statements":[[0," "],[1,[25,"paper-progress-circular",null,[["diameter"],[100]]],false],[0,"\\n "],[6,"p"],[7],[0,"Trying to find your bridge\'s IP."],[8],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"if",[[20,["bridgeFindMultiple"]]],null,{"statements":[[0," "],[6,"p"],[7],[0,"Multiple Hue bridges were found on your network. "],[6,"br"],[7],[8],[0," Please select the one you want to use with Huegasm."],[8],[0,"\\n\\n "],[6,"div"],[9,"id","bridge-button-group"],[7],[0,"\\n"],[4,"each",[[20,["multipleBridgeIps"]]],null,{"statements":[[0," "],[1,[25,"paper-radio",null,[["value","label","onChange"],[[19,1,[]],[19,1,[]],[25,"action",[[19,0,[]],"chooseBridge"],null]]]],false],[0,"\\n"]],"parameters":[1]},null],[0," "],[8],[0,"\\n"]],"parameters":[]},{"statements":[[4,"if",[[20,["bridgeFindFail"]]],null,{"statements":[[0," "],[6,"p"],[7],[0,"A hue bridge could not be automatically found on your network. "],[6,"br"],[7],[8],[0," Enter one manually? "],[6,"br"],[7],[8],[0,"(or type "],[6,"b"],[7],[0,"offline"],[8],[0," to look around)\\n "],[8],[0,"\\n\\n "],[6,"span"],[9,"id","bridge-input"],[7],[0,"\\n "],[1,[25,"paper-input",null,[["label","value","onChange"],["Hue bridge IP address",[20,["manualBridgeIp"]],[25,"action",[[19,0,[]],[25,"mut",[[20,["manualBridgeIp"]]],null]],null]]]],false],[0,"\\n\\n "],[6,"div"],[7],[0,"\\n "],[1,[25,"paper-button",null,[["onClick","raised","primary","label"],[[25,"action",[[19,0,[]],"findBridgeByIp"],null],true,true,"Find"]]],false],[0,"\\n "],[8],[0,"\\n "],[8],[0,"\\n\\n"],[4,"if",[[20,["manualBridgeIpNotFound"]]],null,{"statements":[[0," "],[6,"p"],[9,"class","bg-danger"],[7],[0,"\\n Could not find a bridge with that IP address.\\n "],[8],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},null]],"parameters":[]}]],"parameters":[]}]],"parameters":[]},null]],"hasEval":false}',meta:{moduleName:"huegasm/pods/components/bridge-finder/template.hbs"}})}),define("huegasm/pods/components/hue-controls/component",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}) -var t=Ember.A,n=Ember.Component,o=Ember.computed,s=Ember.isEmpty,i=Ember.isNone,a=Ember.run,r=a.later,l=a.scheduleOnce,c=Ember.inject,p=Ember.$ -e.default=n.extend({classNames:["container-fluid"],elementId:"hue-controls",lightsData:null,firstVisitApp:!0,activeLights:t(),tabList:["Lights","Music"],selectedTab:1,pauseLightUpdates:!1,displayNextFailure:!0,notify:c.service(),dimmerOnClass:o("dimmerOn",function(){return this.get("dimmerOn")?"dimmerOn md-menu-origin":"md-menu-origin"}),ready:o("lightsData","trial",function(){return this.get("trial")||!i(this.get("lightsData"))}),apiURL:o("bridgeIp","bridgeUsername",function(){return"http://"+this.get("bridgeIp")+"/api/"+this.get("bridgeUsername")}),tabData:o("tabList","selectedTab",function(){var e=[],t=this.get("selectedTab") +null!==t&&n<100?(l.ajax("http://"+t+"/api",{data:JSON.stringify({devicetype:"huegasm"}),contentType:"application/json",type:"POST"}).done(function(t,n){e.isDestroyed||"success"!==n||t[0].error||(e.clearBridgePingIntervalHandle(),e.get("storage").set("huegasm.bridgeUsername",t[0].success.username),e.set("bridgeUsername",t[0].success.username))}).fail(function(){e.clearBridgePingIntervalHandle(),e.setProperties({bridgeConnectError:!0,bridgeConnectMessage:r('Your network and/or computer security settings are preventing Huegasm from connecting to your Hue bridge.
Feel free to contact us at huegasm.app@gmail.com if this is unexpected and you need help debugging the problem.')})}),this.incrementProperty("bridgeUserNamePingIntervalProgress",this.get("bridgeUsernamePingIntervalTime")/o*100)):this.clearBridgePingIntervalHandle()},clearBridgePingIntervalHandle:function(){clearInterval(this.get("bridgePingIntervalHandle")),this.set("bridgePingIntervalHandle",null)},actions:{retry:function(){this.onBridgeIpChange()},chooseBridge:function(e){this.set("bridgeIp",e),this.get("storage").set("huegasm.bridgeIp",e)},findBridgeByIp:function(){var e=this,t=this.get("manualBridgeIp") +"trial"===t.toLowerCase()||"offline"===t.toLowerCase()?this.setProperties({trial:!0,bridgeIp:"trial",bridgeUsername:"trial"}):l.ajax("http://"+t+"/api",{data:JSON.stringify({devicetype:"huegasm"}),contentType:"application/json",type:"POST"}).fail(function(){e.set("manualBridgeIpNotFound",!0),i(e,function(){this.set("manualBridgeIpNotFound",!1)},5e3)}).then(function(){e.send("chooseBridge",t)})}}})}),define("huegasm/pods/components/bridge-finder/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.HTMLBars.template({id:"V7xhQEDN",block:'{"symbols":["bridge"],"statements":[[4,"unless",[[20,["bridgeUsername"]]],null,{"statements":[[4,"if",[[20,["bridgeIp"]]],null,{"statements":[[4,"unless",[[20,["bridgeConnectError"]]],null,{"statements":[[0," "],[6,"svg"],[9,"version","1.2"],[9,"baseProfile","tiny"],[9,"id","press-bridge-button-img"],[9,"x","0px"],[9,"y","0px"],[9,"viewBox","0 0 345.5 335.5"],[9,"xml:space","preserve","http://www.w3.org/XML/1998/namespace"],[7],[0,"\\n "],[6,"path"],[9,"style"," fill: white; stroke: black;"],[9,"d","M164.7,288.7c8.3-21.9,40.4-18.1,40.4-18.1l-56.2-88.5c-16.7-0.6-30-14.3-30-31.1c0-17.2,13.9-31.2,31.2-31.2\\n c17.2,0,31.2,13.9,31.2,31.2c0,5.2-1.3,10.1-3.5,14.4c3.6,5.8,10.6,17.1,18.1,29.3l6,9.8c-7.2-11.8-0.9-20.7,5.3-23.3\\n c14-9.1,21.4,5.1,21.4,5.1l5.3,8.7c-5.3-8.7-4.8-16.3,2.8-20.7c0,0,4.8-3.4,9.4-2.7c5.1,0.8,11.8,6.2,19.6,19.7\\n c0.3,0.6,0.6,1.1,0.9,1.6c-2.4-5.9-6-19.8,6.4-25.9c12.2-5.2,18.8,3.1,18.8,3.1s2.2,3.2,5.6,8.4c1.8-9.3,2.7-18.8,2.7-28.6\\n C300,67.1,232.8,0,150,0C67.1,0,0,67.1,0,150s67.1,150,150,150c4.6,0,9.1-0.2,13.6-0.6C162.2,295.5,163.5,290.9,164.7,288.7z\\n M150,66.6c6.5,0,11.8,5.3,11.8,11.8c0,6.5-5.3,11.8-11.8,11.8c-6.5,0-11.8-5.3-11.8-11.8C138.2,71.9,143.5,66.6,150,66.6z\\n M79.7,161.8c-6.5,0-11.8-5.3-11.8-11.8c0-6.5,5.3-11.8,11.8-11.8c6.5,0,11.8,5.3,11.8,11.8C91.5,156.5,86.2,161.8,79.7,161.8z\\n M98.3,110c-6.5,0-11.8-5.3-11.8-11.8c0-6.5,5.3-11.8,11.8-11.8c6.5,0,11.8,5.3,11.8,11.8C110.1,104.7,104.8,110,98.3,110z"],[7],[8],[0,"\\n "],[6,"path"],[9,"style"," fill: white; stroke: #8089ff; stroke-width: 5px;"],[9,"d","M150.8,154.6c10.6-6.4,16.8-2.8,20.4,1.2c0.3-1.5,0.5-3.1,0.5-4.7c0-12-9.7-21.8-21.8-21.8c-12,0-21.8,9.7-21.8,21.8\\n c0,9.7,6.4,17.9,15.1,20.7C141.8,166.6,142.2,159.8,150.8,154.6z"],[7],[8],[0,"\\n "],[6,"path"],[9,"style"," fill: white; "],[9,"stroke","#000000"],[9,"stroke-width","7"],[9,"stroke-linecap","round"],[9,"stroke-linejoin","round"],[9,"stroke-miterlimit","10"],[9,"d","\\n M265.5,191.4c8.9,15.5-12.7-14.5,7.2-24.3c12.2-5.2,18.8,3.1,18.8,3.1s34.7,51.1,47.6,79.2c9.6,35.8-7,57.4-32.7,74\\n c-25.7,16.6-46,6.2-65.4-4.8c-19.4-11-47-13.6-64.2-12.8c-17.2,0.8-14.5-12.8-12.2-17.1c8.3-21.9,40.4-18.1,40.4-18.1L147.6,180\\n c0,0-12.9-15.6,3.2-25.4c16.1-9.7,22.2,3.7,24.3,6.6c0.9,1.3,10.2,16.4,20.6,33.3l6,9.8c-7.2-11.8-0.9-20.7,5.3-23.3\\n c14-9.1,21.4,5.1,21.4,5.1l5.3,8.7c-5.3-8.7-4.8-16.3,2.8-20.7c0,0,4.8-3.4,9.4-2.7C251,172.4,257.8,177.8,265.5,191.4z"],[7],[8],[0,"\\n "],[6,"line"],[9,"fill","none"],[9,"stroke","#000000"],[9,"stroke-width","7"],[9,"stroke-linecap","round"],[9,"stroke-linejoin","round"],[9,"stroke-miterlimit","10"],[9,"x1","266.9"],[9,"y1","194.1"],[9,"x2","278.3"],[9,"y2","213.9"],[7],[8],[0,"\\n "],[6,"line"],[9,"fill","none"],[9,"stroke","#000000"],[9,"stroke-width","7"],[9,"stroke-linecap","round"],[9,"stroke-linejoin","round"],[9,"stroke-miterlimit","10"],[9,"x1","233.1"],[9,"y1","194.1"],[9,"x2","252.9"],[9,"y2","227"],[7],[8],[0,"\\n "],[6,"line"],[9,"fill","none"],[9,"stroke","#000000"],[9,"stroke-width","7"],[9,"stroke-linecap","round"],[9,"stroke-linejoin","round"],[9,"stroke-miterlimit","10"],[9,"x1","200.6"],[9,"y1","203"],[9,"x2","226"],[9,"y2","241.6"],[7],[8],[0,"\\n "],[8],[0,"\\n\\n "],[1,[25,"paper-progress-linear",null,[["warn","value"],[true,[20,["bridgeUserNamePingIntervalProgress"]]]]],false],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"if",[[20,["isAuthenticating"]]],null,{"statements":[[0," "],[6,"p"],[7],[0,"\\n Your bridge IP is "],[6,"b"],[7],[1,[18,"bridgeIp"],false],[8],[0,"\\n "],[6,"br"],[7],[8],[0," Press the button on your bridge to authenticate Huegasm.\\n "],[8],[0,"\\n"]],"parameters":[]},{"statements":[[4,"if",[[20,["bridgeConnectError"]]],null,{"statements":[[0," "],[1,[18,"bridgeConnectMessage"],false],[0,"\\n"]],"parameters":[]},{"statements":[[0," "],[6,"p"],[7],[0,"You failed to press the button in time. "],[6,"a"],[9,"class","no-text-decoration"],[9,"href","#"],[3,"action",[[19,0,[]],"retry"]],[7],[0,"RETRY"],[8],[8],[0,"\\n"]],"parameters":[]}]],"parameters":[]}]],"parameters":[]},{"statements":[[4,"unless",[[20,["bridgeFindStatus"]]],null,{"statements":[[0," "],[1,[25,"paper-progress-circular",null,[["diameter"],[100]]],false],[0,"\\n "],[6,"p"],[7],[0,"Trying to find your bridge\'s IP."],[8],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"if",[[20,["bridgeFindMultiple"]]],null,{"statements":[[0," "],[6,"p"],[7],[0,"Multiple Hue bridges were found on your network. "],[6,"br"],[7],[8],[0," Please select the one you want to use with Huegasm."],[8],[0,"\\n\\n "],[6,"div"],[9,"id","bridge-button-group"],[7],[0,"\\n"],[4,"each",[[20,["multipleBridgeIps"]]],null,{"statements":[[0," "],[1,[25,"paper-radio",null,[["value","label","onChange"],[[19,1,[]],[19,1,[]],[25,"action",[[19,0,[]],"chooseBridge"],null]]]],false],[0,"\\n"]],"parameters":[1]},null],[0," "],[8],[0,"\\n"]],"parameters":[]},{"statements":[[4,"if",[[20,["bridgeFindFail"]]],null,{"statements":[[0," "],[6,"p"],[7],[0,"A hue bridge could not be automatically found on your network. "],[6,"br"],[7],[8],[0," Enter one manually? "],[6,"br"],[7],[8],[0,"(or type "],[6,"b"],[7],[0,"offline"],[8],[0," to look around)\\n "],[8],[0,"\\n\\n "],[6,"span"],[9,"id","bridge-input"],[7],[0,"\\n "],[1,[25,"paper-input",null,[["label","value","onChange"],["Hue bridge IP address",[20,["manualBridgeIp"]],[25,"action",[[19,0,[]],[25,"mut",[[20,["manualBridgeIp"]]],null]],null]]]],false],[0,"\\n\\n "],[6,"div"],[7],[0,"\\n "],[1,[25,"paper-button",null,[["onClick","raised","primary","label"],[[25,"action",[[19,0,[]],"findBridgeByIp"],null],true,true,"Find"]]],false],[0,"\\n "],[8],[0,"\\n "],[8],[0,"\\n\\n"],[4,"if",[[20,["manualBridgeIpNotFound"]]],null,{"statements":[[0," "],[6,"p"],[9,"class","bg-danger"],[7],[0,"\\n Could not find a bridge with that IP address.\\n "],[8],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},null]],"parameters":[]}]],"parameters":[]}]],"parameters":[]},null]],"hasEval":false}',meta:{moduleName:"huegasm/pods/components/bridge-finder/template.hbs"}})}),define("huegasm/pods/components/hue-controls/component",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}) +var t=Ember.A,n=Ember.Component,o=Ember.computed,s=Ember.isEmpty,a=Ember.isNone,i=Ember.run,l=i.later,r=i.scheduleOnce,c=Ember.inject,p=Ember.$ +e.default=n.extend({classNames:["container-fluid"],elementId:"hue-controls",lightsData:null,firstVisitApp:!0,activeLights:t(),tabList:["Lights","Music"],selectedTab:1,pauseLightUpdates:!1,displayNextFailure:!0,notify:c.service(),dimmerOnClass:o("dimmerOn",function(){return this.get("dimmerOn")?"dimmerOn md-menu-origin":"md-menu-origin"}),ready:o("lightsData","trial",function(){return this.get("trial")||!a(this.get("lightsData"))}),apiURL:o("bridgeIp","bridgeUsername",function(){return"http://"+this.get("bridgeIp")+"/api/"+this.get("bridgeUsername")}),tabData:o("tabList","selectedTab",function(){var e=[],t=this.get("selectedTab") return this.get("tabList").forEach(function(n,o){var s=!1 -o===t&&(s=!0),e.push({name:n,selected:s})}),e}),didInsertElement:function(){if(!window.matchMedia||window.matchMedia("(min-width: 768px)").matches){new MutationObserver(function(e){!e.every(function(e){return s(e.addedNodes)||i(e.addedNodes[0].classList)||e.addedNodes[0].classList.contains("tooltip")})&&l("afterRender",function(){p(".bootstrap-tooltip").tooltip()})}).observe(p("#hue-controls")[0],{childList:!0,subtree:!0})}},init:function(){this._super.apply(this,arguments) +o===t&&(s=!0),e.push({name:n,selected:s})}),e}),didInsertElement:function(){if(!window.matchMedia||window.matchMedia("(min-width: 768px)").matches){new MutationObserver(function(e){!e.every(function(e){return s(e.addedNodes)||a(e.addedNodes[0].classList)||e.addedNodes[0].classList.contains("tooltip")})&&r("afterRender",function(){p(".bootstrap-tooltip").tooltip()})}).observe(p("#hue-controls")[0],{childList:!0,subtree:!0})}},init:function(){this._super.apply(this,arguments) var e=this.get("storage"),t=e.get("huegasm.firstVisitApp1") -this.set("canTryChrome",/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)),s(t)||this.set("firstVisitApp",!1),this.get("trial")||(this.updateLightData(),setInterval(this.updateLightData.bind(this),3e3)),i(e.get("huegasm.selectedTab"))||this.set("selectedTab",this.get("storage").get("huegasm.selectedTab"))},updateLightData:function(){var e=this,t=function(){i(e.get("lightsData"))?e.send("clearBridge"):e.get("displayNextFailure")&&(e.get("notify").warning({html:''}),e.set("displayNextFailure",!1),r(e,function(){e.set("displayNextFailure",!0)},3e4))} -this.get("pauseLightUpdates")||p.get(this.get("apiURL")+"/lights",function(n,o){i(n[0])||i(n[0].error)?"success"===o&&JSON.stringify(e.get("lightsData"))!==JSON.stringify(n)&&e.set("lightsData",n):t()}).fail(t)},actions:{tryAndroid:function(){window.open("https://play.google.com/store/apps/details?id=com.hoboman313.huegasm","_blank")},tryExtension:function(){chrome.webstore.install("https://chrome.google.com/webstore/detail/mbjanbdhcpohhfecjgbdpcfhnnbofooj")},changeTab:function(e){var t=this.get("tabList").indexOf(e) +this.set("canTryChrome",/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)),s(t)||this.set("firstVisitApp",!1),this.get("trial")||(this.updateLightData(),setInterval(this.updateLightData.bind(this),3e3)),a(e.get("huegasm.selectedTab"))||this.set("selectedTab",this.get("storage").get("huegasm.selectedTab"))},updateLightData:function(){var e=this,t=function(){a(e.get("lightsData"))?e.send("clearBridge"):e.get("displayNextFailure")&&(e.get("notify").warning({html:''}),e.set("displayNextFailure",!1),l(e,function(){e.set("displayNextFailure",!0)},3e4))} +this.get("pauseLightUpdates")||p.get(this.get("apiURL")+"/lights",function(n,o){a(n[0])||a(n[0].error)?"success"===o&&JSON.stringify(e.get("lightsData"))!==JSON.stringify(n)&&e.set("lightsData",n):t()}).fail(t)},actions:{tryAndroid:function(){window.open("https://play.google.com/store/apps/details?id=com.hoboman313.huegasm","_blank")},tryExtension:function(){chrome.webstore.install("https://chrome.google.com/webstore/detail/mbjanbdhcpohhfecjgbdpcfhnnbofooj")},changeTab:function(e){var t=this.get("tabList").indexOf(e) this.set("selectedTab",t),this.get("storage").set("huegasm.selectedTab",t)},clearBridge:function(){var e=this.get("storage") e.remove("huegasm.bridgeUsername"),e.remove("huegasm.bridgeIp"),location.reload()},toggleDimmer:function(){this.sendAction("toggleDimmer")},toggleLightsIcons:function(){this.sendAction("toggleLightsIcons")},clearAllSettings:function(){this.get("storage").clear(),location.reload()},email:function(){window.open("mailto:huegasm.app@gmail.com","_blank")},startIntro:function(){var e=this,t=introJs(),n=p("#player-bottom") -this.get("dimmerOn")&&this.send("toggleDimmer"),t.setOptions({steps:[{intro:"Welcome! This short tutorial will introduce you to Huegasm."},{element:"#music-tab",intro:"This is the music player. You'll use this to play music and synchronize it with your active lights.

TIP: Control which lights are active through the Lights tab."},{element:"#playlist",intro:"You can add and select music to play from your playlist here. You may listen to local audio files or stream music from Soundcloud.

TIP: Songs added through Soundcloud will be saved for when you visit this page again."},{element:p("#playlist md-menu")[0],intro:'You can add songs from SoundCloud by copy and pasting the URL shown here'},{element:"#player-area",intro:"The audio playback may be controlled with the controls here. Basic music visualization effects may be shown here by selecting them from the menu (eyeball icon in the bottom right)."},{element:"#beat-option-row",intro:"Sensitivity - The sensitivity of the beat detector (higher sensitivity results in more registered beats)
Color Range - The color range that the lights may change to on beat.
Brightness Range - The minimum (off-beat) and maximum (on-beat) brightness of the lights.
Flashing Transitions - Quickly flash the lights on beat
Colorloop - Slowly cycle the lights through all the colors while the music is playing
Ambience - When turned on, your lights will sporadically change color.
Blackout - When turned on, your lghts will turn off after flashing on a detected beat.

TIP: Your sensitivity settings are saved per song as indicated by the red star icon in the top left corner.",position:"top"},{element:"#beat-container",intro:"An interactive speaker that will bump when a beat is registered.

TIP: Click on the center of the speaker to simulate a beat.",position:"top"},{element:"#lights-tab",intro:"This is the lights tab. Here you'll be able to change various light properties:
Power - Turn the selected lights on/off
Brightness - The brightness level of the selected lights
Color - The color of the selected lights
Strobe - Selected lights will flash in sequential order
Colorloop - Selected lights will slowly cycle through all the colors
Randomize Hues - Randomize the hues (colors) of your selected lights
"},{element:"#active-lights",intro:"These icons represent the hue lights in your system. Active lights will be controlled by the application while the inactive lights will have a red X over them and will not be controlled.
You may toggle a light's state by clicking on it."},{element:p("#navigation .ember-basic-dropdown-trigger")[0],intro:"A few miscellaneous settings can be found here.

WARNING: clearing application settings will restore the application to its original state. This will even delete your playlist and any saved song beat preferences."},{intro:"And that's it...Hope you enjoy the application. ;)"}]}),t.onexit(function(){p("body").velocity("scroll",{duration:200})}),t.onchange(function(e){""===e.id||"music-tab"===e.id||"playlist"===e.id||"player-area"===e.id||"beat-option-row"===e.id||"beat-option-button-group"===e.id||"beat-container"===e.id||"using-mic-audio-tooltip"===e.id||"MD-MENU"===e.nodeName?p(".navigation-item").eq(1).click():p(".navigation-item").eq(0).click(),"music-tab"===e.id||"playlist"===e.id||"player-area"===e.id?n.hide():"beat-option-row"===e.id||"beat-option-button-group"===e.id||"beat-container"===e.id?n.show():"dimmer"===e.id&&p(document).click()}),t.onafterchange(function(t){"\x3c!----\x3e"===p(t).html()&&p(".introjs-nextbutton").click(),""===t.id?r(e,function(){p("body").velocity("scroll")},500):r(e,function(){p(".introjs-tooltip").velocity("scroll",{offset:-100})},500)}).start()},closeNotificationModal:function(){this.set("firstVisitApp",!1),this.get("storage").set("huegasm.firstVisitApp1",!1)}}})}),define("huegasm/pods/components/hue-controls/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.HTMLBars.template({id:"DqQ4EK6t",block:'{"symbols":["menu","content","tab"],"statements":[[4,"if",[[20,["ready"]]],null,{"statements":[[0," "],[6,"div"],[9,"id","navigation"],[9,"class","row"],[7],[0,"\\n "],[6,"div"],[9,"class","col-sm-10 col-sm-offset-1 col-xs-12"],[7],[0,"\\n"],[4,"each",[[20,["tabData"]]],null,{"statements":[[0," "],[6,"span"],[10,"class",[26,["navigation-item pointer text-uppercase ",[25,"if",[[19,3,["selected"]],"active"],null]]]],[3,"action",[[19,0,[]],"changeTab",[19,3,["name"]]]],[7],[1,[19,3,["name"]],false],[8],[0,"\\n"]],"parameters":[3]},null],[0,"\\n"],[4,"paper-menu",null,null,{"statements":[[4,"component",[[19,1,["trigger"]]],null,{"statements":[[4,"paper-button",null,[["iconButton"],[true]],{"statements":[[0," "],[1,[25,"paper-icon",["settings-icon"],[["class","size"],[[25,"concat",[[20,["dimmerOnClass"]]," no-blue-shadow"],null],28]]],false],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},null],[0," \\n"],[4,"component",[[19,1,["content"]]],[["width"],[3]],{"statements":[[4,"if",[[20,["canTryChrome"]]],null,{"statements":[[4,"component",[[19,2,["menu-item"]]],[["class","onClick"],["hidden-xs","tryExtension"]],{"statements":[[0," "],[1,[25,"paper-icon",["extension"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Try the Chrome Extension\\n"]],"parameters":[]},null]],"parameters":[]},null],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["class","onClick"],["visible-xs","tryAndroid"]],{"statements":[[0," "],[1,[25,"paper-icon",["extension"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Try the Android Extension\\n"]],"parameters":[]},null],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["onClick"],["toggleDimmer"]],{"statements":[[0," "],[1,[25,"paper-icon",["highlight"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Dark Mode: "],[6,"strong"],[7],[1,[25,"if",[[20,["dimmerOn"]],"On","Off"],null],false],[8],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["onClick"],["toggleLightsIcons"]],{"statements":[[0," "],[1,[25,"paper-icon",["lightbulb outline"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Active Lights: "],[6,"strong"],[7],[1,[25,"if",[[20,["lightsIconsOn"]],"Icons","Text"],null],false],[8],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["onClick"],["startIntro"]],{"statements":[[0," "],[1,[25,"paper-icon",["cached"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Restart Tutorial\\n"]],"parameters":[]},null],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["onClick"],["clearAllSettings"]],{"statements":[[0," "],[1,[25,"paper-icon",["settings backup restore"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Reset Settings\\n"]],"parameters":[]},null],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["onClick"],["email"]],{"statements":[[0," "],[1,[25,"paper-icon",["email"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Contact\\n"]],"parameters":[]},null]],"parameters":[2]},null]],"parameters":[1]},null],[0," "],[8],[0,"\\n "],[8],[0,"\\n\\n "],[1,[25,"light-group",null,[["lightsData","activeLights","syncLight","apiURL","dimmerOn","lightsIconsOn","storage","pauseLightUpdates"],[[20,["lightsData"]],[20,["activeLights"]],[20,["syncLight"]],[20,["apiURL"]],[20,["dimmerOn"]],[20,["lightsIconsOn"]],[20,["storage"]],[20,["pauseLightUpdates"]]]]],false],[0,"\\n\\n "],[6,"div"],[9,"id","huegasm-content"],[9,"class","row"],[7],[0,"\\n "],[1,[25,"lights-tab",null,[["active","apiURL","lightsData","activeLights","syncLight","trial","colorLoopOn","dimmerOn","playing","pauseLightUpdates"],[[25,"eq",[[20,["selectedTab"]],0],null],[20,["apiURL"]],[20,["lightsData"]],[20,["activeLights"]],[20,["syncLight"]],[20,["trial"]],[20,["colorLoopOn"]],[20,["dimmerOn"]],[20,["playing"]],[20,["pauseLightUpdates"]]]]],false],[0,"\\n\\n "],[1,[25,"music-tab",null,[["active","apiURL","lightsData","activeLights","pauseLightUpdates","dimmerOn","storage","colorLoopOn","playing","action"],[[25,"eq",[[20,["selectedTab"]],1],null],[20,["apiURL"]],[20,["lightsData"]],[20,["activeLights"]],[20,["pauseLightUpdates"]],[20,["dimmerOn"]],[20,["storage"]],[20,["colorLoopOn"]],[20,["playing"]],"startIntro"]]],false],[0,"\\n "],[8],[0,"\\n\\n"],[4,"if",[[20,["firstVisitApp"]]],null,{"statements":[[4,"paper-dialog",null,[["fullscreen","onClose","origin","clickOutsideToClose"],[[20,["fullscreen"]],[25,"action",[[19,0,[]],"closeNotificationModal"],null],[20,["dialogOrigin"]],true]],{"statements":[[4,"paper-dialog-content",null,null,{"statements":[[0," "],[6,"p"],[9,"class","promo-title"],[7],[0,"\\n Check out the "],[6,"a"],[9,"href","https://chrome.google.com/webstore/detail/huegasm-for-philips-hue-l/mbjanbdhcpohhfecjgbdpcfhnnbofooj"],[9,"target","_blank"],[7],[0,"Huegasm Chrome extension"],[8],[0,"\\n "],[8],[0,"\\n "],[6,"p"],[9,"class","promo-text"],[7],[0,"\\n "],[6,"a"],[9,"href","https://chrome.google.com/webstore/detail/huegasm-for-philips-hue-l/mbjanbdhcpohhfecjgbdpcfhnnbofooj"],[9,"target","_blank"],[7],[0,"\\n Huegasm Chrome"],[8],[0," allows for listening for music from either a Chrome tab, microphone or your entire system.\\n "],[6,"br"],[7],[8],[0,"In addition, you will be able to sync the color of your screen to your lights.\\n\\n "],[6,"a"],[9,"href","https://chrome.google.com/webstore/detail/huegasm-for-philips-hue-l/mbjanbdhcpohhfecjgbdpcfhnnbofooj"],[9,"target","_blank"],[7],[0,"\\n "],[6,"img"],[9,"class","promo-img hidden-xs"],[9,"src","assets/images/promo-c0e47948d528375db1ee3a1f6c91dd8d.png"],[7],[8],[0,"\\n "],[8],[0,"\\n "],[8],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"paper-dialog-actions",null,[["class"],["layout-row"]],{"statements":[[0," "],[6,"span"],[9,"class","flex"],[7],[8],[0,"\\n "],[4,"paper-button",null,[["primary","onClick"],[true,[25,"action",[[19,0,[]],"closeNotificationModal"],null]]],{"statements":[[0,"OK"]],"parameters":[]},null],[0,"\\n"]],"parameters":[]},null],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},null]],"parameters":[]},{"statements":[[0," "],[1,[25,"paper-progress-circular",null,[["diameter"],[100]]],false],[0,"\\n"]],"parameters":[]}],[0,"\\n"],[1,[25,"ember-notify",null,[["messageStyle","closeAfter"],["bootstrap",5000]]],false]],"hasEval":false}',meta:{moduleName:"huegasm/pods/components/hue-controls/template.hbs"}})}),define("huegasm/pods/components/huegasm-app/component",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}) +this.get("dimmerOn")&&this.send("toggleDimmer"),t.setOptions({steps:[{intro:"Welcome! This short tutorial will introduce you to Huegasm."},{element:"#music-tab",intro:"This is the music player. You'll use this to play music and synchronize it with your active lights.

TIP: Control which lights are active through the Lights tab."},{element:"#playlist",intro:"You can add and select music to play from your playlist here. You may listen to local audio files or stream music from Soundcloud.

TIP: Songs added through Soundcloud will be saved for when you visit this page again."},{element:p("#playlist md-menu")[0],intro:'You can add songs from SoundCloud by copy and pasting the URL shown here'},{element:"#player-area",intro:"The audio playback may be controlled with the controls here. Basic music visualization effects may be shown here by selecting them from the menu (eyeball icon in the bottom right)."},{element:"#beat-option-row",intro:"Sensitivity - The sensitivity of the beat detector (higher sensitivity results in more registered beats)
Color Range - The color range that the lights may change to on beat.
Brightness Range - The minimum (off-beat) and maximum (on-beat) brightness of the lights.
Flashing Transitions - Quickly flash the lights on beat
Colorloop - Slowly cycle the lights through all the colors while the music is playing
Ambience - When turned on, your lights will sporadically change color.
Blackout - When turned on, your lghts will turn off after flashing on a detected beat.

TIP: Your sensitivity settings are saved per song as indicated by the red star icon in the top left corner.",position:"top"},{element:"#beat-container",intro:"An interactive speaker that will bump when a beat is registered.

TIP: Click on the center of the speaker to simulate a beat.",position:"top"},{element:"#lights-tab",intro:"This is the lights tab. Here you'll be able to change various light properties:
Power - Turn the selected lights on/off
Brightness - The brightness level of the selected lights
Color - The color of the selected lights
Strobe - Selected lights will flash in sequential order
Colorloop - Selected lights will slowly cycle through all the colors
Randomize Hues - Randomize the hues (colors) of your selected lights
"},{element:"#active-lights",intro:"These icons represent the hue lights in your system. Active lights will be controlled by the application while the inactive lights will have a red X over them and will not be controlled.
You may toggle a light's state by clicking on it."},{element:p("#navigation .ember-basic-dropdown-trigger")[0],intro:"A few miscellaneous settings can be found here.

WARNING: clearing application settings will restore the application to its original state. This will even delete your playlist and any saved song beat preferences."},{intro:"And that's it...Hope you enjoy the application. ;)"}]}),t.onexit(function(){p("body").velocity("scroll",{duration:200})}),t.onchange(function(e){""===e.id||"music-tab"===e.id||"playlist"===e.id||"player-area"===e.id||"beat-option-row"===e.id||"beat-option-button-group"===e.id||"beat-container"===e.id||"using-mic-audio-tooltip"===e.id||"MD-MENU"===e.nodeName?p(".navigation-item").eq(1).click():p(".navigation-item").eq(0).click(),"music-tab"===e.id||"playlist"===e.id||"player-area"===e.id?n.hide():"beat-option-row"===e.id||"beat-option-button-group"===e.id||"beat-container"===e.id?n.show():"dimmer"===e.id&&p(document).click()}),t.onafterchange(function(t){"\x3c!----\x3e"===p(t).html()&&p(".introjs-nextbutton").click(),""===t.id?l(e,function(){p("body").velocity("scroll")},500):l(e,function(){p(".introjs-tooltip").velocity("scroll",{offset:-100})},500)}).start()},closeNotificationModal:function(){this.set("firstVisitApp",!1),this.get("storage").set("huegasm.firstVisitApp1",!1)}}})}),define("huegasm/pods/components/hue-controls/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.HTMLBars.template({id:"DqQ4EK6t",block:'{"symbols":["menu","content","tab"],"statements":[[4,"if",[[20,["ready"]]],null,{"statements":[[0," "],[6,"div"],[9,"id","navigation"],[9,"class","row"],[7],[0,"\\n "],[6,"div"],[9,"class","col-sm-10 col-sm-offset-1 col-xs-12"],[7],[0,"\\n"],[4,"each",[[20,["tabData"]]],null,{"statements":[[0," "],[6,"span"],[10,"class",[26,["navigation-item pointer text-uppercase ",[25,"if",[[19,3,["selected"]],"active"],null]]]],[3,"action",[[19,0,[]],"changeTab",[19,3,["name"]]]],[7],[1,[19,3,["name"]],false],[8],[0,"\\n"]],"parameters":[3]},null],[0,"\\n"],[4,"paper-menu",null,null,{"statements":[[4,"component",[[19,1,["trigger"]]],null,{"statements":[[4,"paper-button",null,[["iconButton"],[true]],{"statements":[[0," "],[1,[25,"paper-icon",["settings-icon"],[["class","size"],[[25,"concat",[[20,["dimmerOnClass"]]," no-blue-shadow"],null],28]]],false],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},null],[0," \\n"],[4,"component",[[19,1,["content"]]],[["width"],[3]],{"statements":[[4,"if",[[20,["canTryChrome"]]],null,{"statements":[[4,"component",[[19,2,["menu-item"]]],[["class","onClick"],["hidden-xs","tryExtension"]],{"statements":[[0," "],[1,[25,"paper-icon",["extension"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Try the Chrome Extension\\n"]],"parameters":[]},null]],"parameters":[]},null],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["class","onClick"],["visible-xs","tryAndroid"]],{"statements":[[0," "],[1,[25,"paper-icon",["extension"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Try the Android Extension\\n"]],"parameters":[]},null],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["onClick"],["toggleDimmer"]],{"statements":[[0," "],[1,[25,"paper-icon",["highlight"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Dark Mode: "],[6,"strong"],[7],[1,[25,"if",[[20,["dimmerOn"]],"On","Off"],null],false],[8],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["onClick"],["toggleLightsIcons"]],{"statements":[[0," "],[1,[25,"paper-icon",["lightbulb outline"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Active Lights: "],[6,"strong"],[7],[1,[25,"if",[[20,["lightsIconsOn"]],"Icons","Text"],null],false],[8],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["onClick"],["startIntro"]],{"statements":[[0," "],[1,[25,"paper-icon",["cached"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Restart Tutorial\\n"]],"parameters":[]},null],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["onClick"],["clearAllSettings"]],{"statements":[[0," "],[1,[25,"paper-icon",["settings backup restore"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Reset Settings\\n"]],"parameters":[]},null],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["onClick"],["email"]],{"statements":[[0," "],[1,[25,"paper-icon",["email"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Contact\\n"]],"parameters":[]},null]],"parameters":[2]},null]],"parameters":[1]},null],[0," "],[8],[0,"\\n "],[8],[0,"\\n\\n "],[1,[25,"light-group",null,[["lightsData","activeLights","syncLight","apiURL","dimmerOn","lightsIconsOn","storage","pauseLightUpdates"],[[20,["lightsData"]],[20,["activeLights"]],[20,["syncLight"]],[20,["apiURL"]],[20,["dimmerOn"]],[20,["lightsIconsOn"]],[20,["storage"]],[20,["pauseLightUpdates"]]]]],false],[0,"\\n\\n "],[6,"div"],[9,"id","huegasm-content"],[9,"class","row"],[7],[0,"\\n "],[1,[25,"lights-tab",null,[["active","apiURL","lightsData","activeLights","syncLight","trial","colorLoopOn","dimmerOn","playing","pauseLightUpdates"],[[25,"eq",[[20,["selectedTab"]],0],null],[20,["apiURL"]],[20,["lightsData"]],[20,["activeLights"]],[20,["syncLight"]],[20,["trial"]],[20,["colorLoopOn"]],[20,["dimmerOn"]],[20,["playing"]],[20,["pauseLightUpdates"]]]]],false],[0,"\\n\\n "],[1,[25,"music-tab",null,[["active","apiURL","lightsData","activeLights","pauseLightUpdates","dimmerOn","storage","colorLoopOn","playing","action"],[[25,"eq",[[20,["selectedTab"]],1],null],[20,["apiURL"]],[20,["lightsData"]],[20,["activeLights"]],[20,["pauseLightUpdates"]],[20,["dimmerOn"]],[20,["storage"]],[20,["colorLoopOn"]],[20,["playing"]],"startIntro"]]],false],[0,"\\n "],[8],[0,"\\n\\n"],[4,"if",[[20,["firstVisitApp"]]],null,{"statements":[[4,"paper-dialog",null,[["fullscreen","onClose","origin","clickOutsideToClose"],[[20,["fullscreen"]],[25,"action",[[19,0,[]],"closeNotificationModal"],null],[20,["dialogOrigin"]],true]],{"statements":[[4,"paper-dialog-content",null,null,{"statements":[[0," "],[6,"p"],[9,"class","promo-title"],[7],[0,"\\n Check out the "],[6,"a"],[9,"href","https://chrome.google.com/webstore/detail/huegasm-for-philips-hue-l/mbjanbdhcpohhfecjgbdpcfhnnbofooj"],[9,"target","_blank"],[7],[0,"Huegasm Chrome extension"],[8],[0,"\\n "],[8],[0,"\\n "],[6,"p"],[9,"class","promo-text"],[7],[0,"\\n "],[6,"a"],[9,"href","https://chrome.google.com/webstore/detail/huegasm-for-philips-hue-l/mbjanbdhcpohhfecjgbdpcfhnnbofooj"],[9,"target","_blank"],[7],[0,"\\n Huegasm Chrome"],[8],[0," allows for listening for music from either a Chrome tab, microphone or your entire system.\\n "],[6,"br"],[7],[8],[0,"In addition, you will be able to sync the color of your screen to your lights.\\n\\n "],[6,"a"],[9,"href","https://chrome.google.com/webstore/detail/huegasm-for-philips-hue-l/mbjanbdhcpohhfecjgbdpcfhnnbofooj"],[9,"target","_blank"],[7],[0,"\\n "],[6,"img"],[9,"class","promo-img hidden-xs"],[9,"src","assets/images/promo-c0e47948d528375db1ee3a1f6c91dd8d.png"],[7],[8],[0,"\\n "],[8],[0,"\\n "],[8],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"paper-dialog-actions",null,[["class"],["layout-row"]],{"statements":[[0," "],[6,"span"],[9,"class","flex"],[7],[8],[0,"\\n "],[4,"paper-button",null,[["primary","onClick"],[true,[25,"action",[[19,0,[]],"closeNotificationModal"],null]]],{"statements":[[0,"OK"]],"parameters":[]},null],[0,"\\n"]],"parameters":[]},null],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},null]],"parameters":[]},{"statements":[[0," "],[1,[25,"paper-progress-circular",null,[["diameter"],[100]]],false],[0,"\\n"]],"parameters":[]}],[0,"\\n"],[1,[25,"ember-notify",null,[["messageStyle","closeAfter"],["bootstrap",5000]]],false]],"hasEval":false}',meta:{moduleName:"huegasm/pods/components/hue-controls/template.hbs"}})}),define("huegasm/pods/components/huegasm-app/component",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}) var t=Ember.Component,n=Ember.isEmpty,o=Ember.$ e.default=t.extend({bridgeIp:null,bridgeUsername:null,trial:!1,ready:!1,elementId:"huegasm",classNameBindings:["bridgeUsername::display-flex"],init:function(){this._super.apply(this,arguments) var e=this.get("storage") n(e.get("huegasm.bridgeIp"))||n(e.get("huegasm.bridgeUsername"))||this.setProperties({bridgeIp:e.get("huegasm.bridgeIp"),bridgeUsername:e.get("huegasm.bridgeUsername")})},actions:{toggleDimmer:function(){this.sendAction("toggleDimmer")},toggleLightsIcons:function(){this.sendAction("toggleLightsIcons")},isReady:function(){this.set("ready",!0),o("html, body").velocity("scroll")}}})}),define("huegasm/pods/components/huegasm-app/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.HTMLBars.template({id:"5G7XKC/9",block:'{"symbols":[],"statements":[[4,"if",[[20,["bridgeUsername"]]],null,{"statements":[[0," "],[1,[25,"hue-controls",null,[["bridgeIp","bridgeUsername","trial","dimmerOn","lightsIconsOn","storage","toggleDimmer","toggleLightsIcons"],[[20,["bridgeIp"]],[20,["bridgeUsername"]],[20,["trial"]],[20,["dimmerOn"]],[20,["lightsIconsOn"]],[20,["storage"]],"toggleDimmer","toggleLightsIcons"]]],false],[0,"\\n"]],"parameters":[]},{"statements":[[4,"if",[[20,["ready"]]],null,{"statements":[[0," "],[1,[25,"bridge-finder",null,[["bridgeIp","bridgeUsername","trial","storage"],[[20,["bridgeIp"]],[20,["bridgeUsername"]],[20,["trial"]],[20,["storage"]]]]],false],[0,"\\n"]],"parameters":[]},{"statements":[[0," "],[6,"div"],[9,"class","ready-block"],[7],[0,"\\n "],[6,"div"],[9,"id","intro-background"],[7],[0,"\\n "],[6,"div"],[9,"id","intro-wrapper"],[7],[0,"\\n "],[6,"p"],[9,"id","intro"],[7],[0,"\\n Your lights meet your music\\n "],[8],[0,"\\n "],[6,"p"],[9,"id","intro-paragraph"],[7],[0,"\\n Huegasm is a free web application for managing and synchronizing your "],[6,"a"],[9,"target","_blank"],[9,"href","http://www2.meethue.com"],[7],[0,"Philips Hue lights"],[8],[0," with the beat of your music.\\n "],[8],[0,"\\n "],[8],[0,"\\n "],[8],[0,"\\n\\n "],[6,"p"],[7],[0,"Click "],[6,"a"],[9,"href","#"],[3,"action",[[19,0,[]],"isReady"]],[7],[0,"START"],[8],[0," to get started using Huegasm."],[8],[0,"\\n\\n "],[6,"div"],[9,"class","relative"],[7],[0,"\\n "],[1,[25,"paper-button",null,[["raised","primary","warn","onClick","class","label"],[true,true,true,[25,"action",[[19,0,[]],"isReady"],null],"go-button center-block","START"]]],false],[0,"\\n "],[6,"a"],[9,"href","https://www.youtube.com/watch?v=zi9J6Qg-MPw"],[9,"class","video-icon"],[9,"target","_blank"],[7],[0,"\\n "],[1,[25,"paper-icon",["ondemand video"],[["size"],[28]]],false],[0,"\\n "],[8],[0,"\\n "],[8],[0,"\\n "],[8],[0,"\\n"]],"parameters":[]}]],"parameters":[]}]],"hasEval":false}',meta:{moduleName:"huegasm/pods/components/huegasm-app/template.hbs"}})}),define("huegasm/pods/components/huegasm-footer/component",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}) var t=Ember.Component,n=Ember.computed e.default=t.extend({tagName:"footer",elementId:"footer",year:n(function(){return(new Date).getFullYear()})})}),define("huegasm/pods/components/huegasm-footer/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.HTMLBars.template({id:"+QhMLCJl",block:'{"symbols":[],"statements":[[6,"a"],[9,"href","https://chrome.google.com/webstore/detail/huegasm-for-philips-hue-l/mbjanbdhcpohhfecjgbdpcfhnnbofooj"],[9,"target","_blank"],[9,"rel","noopener noreferrer"],[9,"class","hidden-xs"],[7],[0,"\\n "],[6,"img"],[9,"src","assets/images/chrome-store-badge-1b0249927e76051b36b062700a7422e5.png"],[9,"alt","Available in the Chrome Web Store"],[7],[8],[0,"\\n"],[8],[0,"\\n\\n"],[6,"div"],[9,"id","footer-text"],[7],[0,"\\n © "],[1,[18,"year"],false],[0,"\\n\\n "],[6,"a"],[9,"href","http://www.nidratech.com/"],[9,"target","_blank"],[9,"rel","noopener noreferrer"],[7],[0,"\\n Nidratech Ltd\\n "],[8],[0,"\\n"],[8],[0,"\\n\\n"],[6,"a"],[9,"href","https://play.google.com/store/apps/details?id=com.hoboman313.huegasm"],[9,"target","_blank"],[9,"rel","noopener noreferrer"],[7],[0,"\\n "],[6,"img"],[9,"src","assets/images/google-play-badge-4be08e3cf4d01124257db037380272ea.png"],[9,"alt","Get it on the Google Play Store"],[7],[8],[0,"\\n"],[8]],"hasEval":false}',meta:{moduleName:"huegasm/pods/components/huegasm-footer/template.hbs"}})}),define("huegasm/pods/components/light-group/component",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}) -var t=Ember.A,n=Ember.Component,o=Ember.computed,s=Ember.isEmpty,i=Ember.isNone,a=Ember.observer,r=Ember.$ -e.default=n.extend({elementId:"active-lights",classNames:["light-group"],isHovering:!1,activeLights:t(),lightsList:o("lightsData","activeLights.[]","dimmerOn",function(){var e=this.get("lightsData"),n=this.get("activeLights"),o=this.get("dimmerOn"),s=t(),i=void 0,a=void 0 -for(var r in e)if(a="light-active",e.hasOwnProperty(r)&&e[r].state.reachable){switch(e[r].modelid){case"BSB001":i="bridge_v1" +var t=Ember.A,n=Ember.Component,o=Ember.computed,s=Ember.isEmpty,a=Ember.isNone,i=Ember.observer,l=Ember.$ +e.default=n.extend({elementId:"active-lights",classNames:["light-group"],isHovering:!1,activeLights:t(),lightsList:o("lightsData","activeLights.[]","dimmerOn",function(){var e=this.get("lightsData"),n=this.get("activeLights"),o=this.get("dimmerOn"),s=t(),a=void 0,i=void 0 +for(var l in e)if(i="light-active",e.hasOwnProperty(l)&&e[l].state.reachable){switch(e[l].modelid){case"BSB001":a="bridge_v1" break -case"BSB002":i="bridge_v2" +case"BSB002":a="bridge_v2" break -case"LCT001":case"LCT007":case"LCT010":case"LCT014":case"LTW010":case"LTW001":case"LTW004":case"LTW015":case"LWB004":case"LWB006":i="white_and_color_e27" +case"LCT001":case"LCT007":case"LCT010":case"LCT014":case"LTW010":case"LTW001":case"LTW004":case"LTW015":case"LWB004":case"LWB006":a="white_and_color_e27" break -case"LWB010":case"LWB014":i="white_e27" +case"LWB010":case"LWB014":a="white_e27" break -case"LCT002":i="br30" +case"LCT002":a="br30" break -case"LCT011":case"LTW011":i="br30_slim" +case"LCT011":case"LTW011":a="br30_slim" break -case"LCT003":i="gu10" +case"LCT003":a="gu10" break -case"LTW013":i="gu10_perfectfit" +case"LTW013":a="gu10_perfectfit" break -case"LST002":case"LST001":i="lightstrip" +case"LST002":case"LST001":a="lightstrip" break -case"LLC006":case"LLC010":i="iris" +case"LLC006":case"LLC010":a="iris" break -case"LLC005":case"LLC011":case"LLC012":case"LLC007":i="bloom" +case"LLC005":case"LLC011":case"LLC012":case"LLC007":a="bloom" break -case"LLC014":i="aura" +case"LLC014":a="aura" break -case"LLC013":i="storylight" +case"LLC013":a="storylight" break -case"LLC020":i="go" +case"LLC020":a="go" break -case"HBL001":case"HBL002":case"HBL003":i="beyond_ceiling_pendant_table" +case"HBL001":case"HBL002":case"HBL003":a="beyond_ceiling_pendant_table" break -case"HIL001":case"HIL002":i="impulse" +case"HIL001":case"HIL002":a="impulse" break -case"HEL001":case"HEL002":i="entity" +case"HEL001":case"HEL002":a="entity" break -case"HML001":case"HML002":case"HML003":case"HML004":case"HML005":i="phoenix_ceiling" +case"HML001":case"HML002":case"HML003":case"HML004":case"HML005":a="phoenix_ceiling" break -case"HML006":i="phoenix_down" +case"HML006":a="phoenix_down" break -case"LTP003":i="pendant_square" +case"LTP003":a="pendant_square" break -case"LTP002":i="pendant_round" +case"LTP002":a="pendant_round" break -case"LTP001":i="pendant_oval" +case"LTP001":a="pendant_oval" break -case"LDF002":case"LTF002":case"LTF001":case"LTC001":case"LTC002":case"LDF001":i="ceiling_square" +case"LDF002":case"LTF002":case"LTF001":case"LTC001":case"LTC002":case"LDF001":a="ceiling_square" break -case"LTC003":case"LTD001":i="ceiling_round" +case"LTC003":case"LTD001":a="ceiling_round" break -case"LDD002":i="floor" +case"LDD002":a="floor" break -case"LDD001":i="table" +case"LDD001":a="table" break -case"LDT001":case"MWM001":i="recessed" +case"LDT001":case"MWM001":a="recessed" break -case"SWT001":i="tap" +case"SWT001":a="tap" break -case"RWL021":i="hds" +case"RWL021":a="hds" break -case"SML001":i="motion_sensor" +case"SML001":a="motion_sensor" break -default:i="white_e27"}i=o?"assets/images/lights/filled/"+i+".svg":"assets/images/lights/outline/"+i+".svg",n.includes(r)||(a="light-inactive"),s.push({src:i,name:e[r].name,id:r,data:e[r],activeClass:a})}return s}),onActiveLightsChange:a("activeLights.[]",function(){this.get("storage").set("huegasm.activeLights",this.get("activeLights"))}),init:function(){this._super.apply(this,arguments) +default:a="white_e27"}a=o?"assets/images/lights/filled/"+a+".svg":"assets/images/lights/outline/"+a+".svg",n.includes(l)||(i="light-inactive"),s.push({src:a,name:e[l].name,id:l,data:e[l],activeClass:i})}return s}),onActiveLightsChange:i("activeLights.[]",function(){this.get("storage").set("huegasm.activeLights",this.get("activeLights"))}),init:function(){this._super.apply(this,arguments) var e=this.get("lightsData"),t=this.get("activeLights"),n=this.get("storage").get("huegasm.activeLights") -if(i(n))for(var o in e)e.hasOwnProperty(o)&&e[o].state.reachable&&t.pushObject(o) -else n.forEach(function(n){!i(e)&&e.hasOwnProperty(n)&&e[n].state.reachable&&t.pushObject(n)})},actions:{clickLight:function(e){var t=this.get("activeLights");-1!==t.indexOf(e)?t.removeObject(e):(t.pushObject(e),this.set("syncLight",e))},lightStartHover:function(e){if(!window.matchMedia||window.matchMedia("(min-width: 768px)").matches){var t=this.get("activeLights"),n=this.get("lightsList").filter(function(n){return"unreachable"!==n.activeClass&&n.id===e[0]&&-1!==t.indexOf(e)}) -s(n)||!0===this.get("noHover")||r.ajax(this.get("apiURL")+"/lights/"+e+"/state",{data:JSON.stringify({alert:"lselect"}),contentType:"application/json",type:"PUT"}),this.setProperties({pauseLightUpdates:!0,isHovering:!0})}},lightStopHover:function(e){if(!window.matchMedia||window.matchMedia("(min-width: 768px)").matches){var t=this.get("lightsList").filter(function(t){return"unreachable"!==t.activeClass&&t.id===e[0]}) -s(t)||!0===this.get("noHover")||r.ajax(this.get("apiURL")+"/lights/"+e+"/state",{data:JSON.stringify({alert:"none"}),contentType:"application/json",type:"PUT"}),this.setProperties({pauseLightUpdates:!1,isHovering:!1})}}}})}) +if(a(n))for(var o in e)e.hasOwnProperty(o)&&e[o].state.reachable&&t.pushObject(o) +else n.forEach(function(n){!a(e)&&e.hasOwnProperty(n)&&e[n].state.reachable&&t.pushObject(n)})},actions:{clickLight:function(e){var t=this.get("activeLights");-1!==t.indexOf(e)?t.removeObject(e):(t.pushObject(e),this.set("syncLight",e))},lightStartHover:function(e){if(!window.matchMedia||window.matchMedia("(min-width: 768px)").matches){var t=this.get("activeLights"),n=this.get("lightsList").filter(function(n){return"unreachable"!==n.activeClass&&n.id===e[0]&&-1!==t.indexOf(e)}) +s(n)||!0===this.get("noHover")||l.ajax(this.get("apiURL")+"/lights/"+e+"/state",{data:JSON.stringify({alert:"lselect"}),contentType:"application/json",type:"PUT"}),this.setProperties({pauseLightUpdates:!0,isHovering:!0})}},lightStopHover:function(e){if(!window.matchMedia||window.matchMedia("(min-width: 768px)").matches){var t=this.get("lightsList").filter(function(t){return"unreachable"!==t.activeClass&&t.id===e[0]}) +s(t)||!0===this.get("noHover")||l.ajax(this.get("apiURL")+"/lights/"+e+"/state",{data:JSON.stringify({alert:"none"}),contentType:"application/json",type:"PUT"}),this.setProperties({pauseLightUpdates:!1,isHovering:!1})}}}})}) define("huegasm/pods/components/light-group/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.HTMLBars.template({id:"jKTCPR4u",block:'{"symbols":["light"],"statements":[[4,"each",[[20,["lightsList"]]],null,{"statements":[[4,"if",[[20,["lightsIconsOn"]]],null,{"statements":[[0," "],[6,"div"],[10,"class",[26,[[19,1,["activeClass"]]," bootstrap-tooltip toggleable-light"]]],[9,"data-toggle","tooltip"],[9,"data-placement","top auto"],[10,"data-title",[19,1,["name"]],null],[3,"action",[[19,0,[]],"clickLight",[19,1,["id"]]]],[3,"action",[[19,0,[]],"lightStartHover",[19,1,["id"]]],[["on"],["mouseEnter"]]],[3,"action",[[19,0,[]],"lightStopHover",[19,1,["id"]]],[["on"],["mouseLeave"]]],[7],[0,"\\n "],[1,[25,"inline-svg",[[19,1,["src"]]],[["class"],["hue-light"]]],false],[0,"\\n "],[8],[0,"\\n"]],"parameters":[]},{"statements":[[0," "],[6,"div"],[10,"class",[26,[[19,1,["activeClass"]]," light-text toggleable-light"]]],[3,"action",[[19,0,[]],"clickLight",[19,1,["id"]]]],[3,"action",[[19,0,[]],"lightStartHover",[19,1,["id"]]],[["on"],["mouseEnter"]]],[3,"action",[[19,0,[]],"lightStopHover",[19,1,["id"]]],[["on"],["mouseLeave"]]],[7],[0,"\\n "],[6,"div"],[9,"class","light-text-content"],[7],[1,[19,1,["name"]],false],[8],[0,"\\n "],[8],[0,"\\n"]],"parameters":[]}]],"parameters":[1]},null]],"hasEval":false}',meta:{moduleName:"huegasm/pods/components/light-group/template.hbs"}})}),define("huegasm/pods/components/lights-tab/color-picker/component",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}) var t=Ember.Component,n=Ember.$ -e.default=t.extend({elementId:"color-picker",rgb:null,canvas:null,canvasContext:null,pressingDown:!1,mouseUp:function(){this.set("pressingDown",!1)},mouseMove:function(e){this.get("pressingDown")&&this.mouseDown(e)},mouseDown:function(e){var t=n(this.get("canvas")).offset(),o=Math.floor(e.pageX-t.left),s=Math.floor(e.pageY-t.top),i=this.get("canvasContext").getImageData(o,s,1,1).data -this.set("pressingDown",!0),0===i[0]&&0===i[1]&&0===i[2]||this.set("rgb",[i[0],i[1],i[2]])},didInsertElement:function(){var e=n("#picker")[0],t=e.getContext("2d"),o=new Image +e.default=t.extend({elementId:"color-picker",rgb:null,canvas:null,canvasContext:null,pressingDown:!1,mouseUp:function(){this.set("pressingDown",!1)},mouseMove:function(e){this.get("pressingDown")&&this.mouseDown(e)},mouseDown:function(e){var t=n(this.get("canvas")).offset(),o=Math.floor(e.pageX-t.left),s=Math.floor(e.pageY-t.top),a=this.get("canvasContext").getImageData(o,s,1,1).data +this.set("pressingDown",!0),0===a[0]&&0===a[1]&&0===a[2]||this.set("rgb",[a[0],a[1],a[2]])},didInsertElement:function(){var e=n("#picker")[0],t=e.getContext("2d"),o=new Image o.src="assets/images/colormap-83aafd17086eaab68b229a681c04139b.png",o.onload=function(){t.drawImage(o,0,0,o.width,o.height)},this.setProperties({canvas:e,canvasContext:t})}})}),define("huegasm/pods/components/lights-tab/color-picker/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.HTMLBars.template({id:"Jf5b2PPg",block:'{"symbols":[],"statements":[[6,"canvas"],[9,"id","picker"],[9,"width","256"],[9,"height","256"],[7],[8]],"hasEval":false}',meta:{moduleName:"huegasm/pods/components/lights-tab/color-picker/template.hbs"}})}),define("huegasm/pods/components/lights-tab/component",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}) -var t=Ember.Component,n=Ember.observer,o=Ember.computed,s=Ember.on,i=Ember.run,a=i.later,r=i.throttle,l=Ember.$,c=Ember.isEmpty +var t=Ember.Component,n=Ember.observer,o=Ember.computed,s=Ember.on,a=Ember.run,i=a.later,l=a.throttle,r=Ember.$,c=Ember.isEmpty e.default=t.extend({classNames:["col-sm-10","col-sm-offset-1","col-xs-12"],classNameBindings:["active::hidden"],elementId:"lights-tab",rgb:[255,255,255],lightsOn:!1,colorLoopOn:!1,lightsOnTxt:o("lightsOn",function(){return this.get("lightsOn")?"On":"Off"}),colorloopOnTxt:o("colorLoopOn",function(){return this.get("colorLoopOn")?"On":"Off"}),lightsBrightness:o("lightsData","activeLights.[]",function(){var e=this.get("lightsData"),t=this.get("activeLights"),n=0 return t.forEach(function(t){n+=e[t].state.bri}),n/t.length}),brightnessControlDisabled:o.not("lightsOn"),onColorLoopOnChange:n("colorLoopOn",function(){var e=this,t=this.get("lightsData"),n=this.get("activeLights"),o=this.get("colorLoopOn"),s=o?"colorloop":"none" -o!==n.some(function(e){return"colorloop"===t[e].state.effect})&&n.forEach(function(t){e.get("lightsData")[t].state.effect!==s&&l.ajax(e.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify({effect:s}),contentType:"application/json",type:"PUT"})})}),rgbPreview:n("rgb",function(){var e=this,t=this.get("rgb"),n=rgbToCie(t[0],t[1],t[2]) -this.set("colorLoopOn",!1),this.get("activeLights").forEach(function(t){l.ajax(e.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify({xy:n}),contentType:"application/json",type:"PUT"})}),this.set("colorLoopOn",!1),l(".color").css("background","rgb("+t[0]+","+t[1]+","+t[2]+")")}),onActiveLightsChange:n("activeLights.[]",function(){var e=this.get("lightsData"),t=this.get("activeLights"),n=null +o!==n.some(function(e){return"colorloop"===t[e].state.effect})&&n.forEach(function(t){e.get("lightsData")[t].state.effect!==s&&r.ajax(e.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify({effect:s}),contentType:"application/json",type:"PUT"})})}),rgbPreview:n("rgb",function(){var e=this,t=this.get("rgb"),n=rgbToCie(t[0],t[1],t[2]) +this.set("colorLoopOn",!1),this.get("activeLights").forEach(function(t){r.ajax(e.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify({xy:n}),contentType:"application/json",type:"PUT"})}),this.set("colorLoopOn",!1),r(".color").css("background","rgb("+t[0]+","+t[1]+","+t[2]+")")}),onActiveLightsChange:n("activeLights.[]",function(){var e=this.get("lightsData"),t=this.get("activeLights"),n=null if(!c(e)&&(t.forEach(function(t){var o=e[t] o&&o.state&&o.state.xy&&(null===n&&(n=[0,0]),n[0]+=o.state.xy[0],n[1]+=o.state.xy[1])}),n)){var o=cieToRgb(n[0]/t.length,n[1]/t.length) -l(".color").css("background","rgb("+Math.abs(o[0])+","+Math.abs(o[1])+","+Math.abs(o[2])+")")}}),systemLightsOnChange:s("init",n("lightsData.@each.state.on","activeLights.[]",function(){if(!this.get("strobeOn")){var e=this.getProperties("lightsData","activeLights"),t=e.lightsData,n=e.activeLights +r(".color").css("background","rgb("+Math.abs(o[0])+","+Math.abs(o[1])+","+Math.abs(o[2])+")")}}),systemLightsOnChange:s("init",n("lightsData.@each.state.on","activeLights.[]",function(){if(!this.get("strobeOn")){var e=this.getProperties("lightsData","activeLights"),t=e.lightsData,n=e.activeLights this.set("lightsOn",n.some(function(e){return!0===t[e].state.on}))}})),onLightsOnChange:n("lightsOn",function(){var e=this.get("activeLights").length -this.set("lightsOnDisabled",!0),r(this,this.changeLightsOnOff,69*e,!1)}),changeLightsOnOff:function(){var e=this,t=this.getProperties("lightsData","activeLights","lightsOn","apiURL"),n=t.lightsData,o=t.activeLights,s=t.lightsOn,i=t.apiURL,r=o.some(function(e){return!0===n[e].state.on}) -a(this,function(){e.set("lightsOnDisabled",!1)},800),s!==r&&o.forEach(function(e){l.ajax(i+"/lights/"+e+"/state",{data:JSON.stringify({on:s}),contentType:"application/json",type:"PUT"})})},changeLightsBrightness:function(){var e=this,t=this.getProperties("lightsData","lightsBrightness","activeLights"),n=t.lightsData,o=t.lightsBrightness,s=t.activeLights,i=!1 -s.forEach(function(e){i+=n[e].state.bri}),i/=s.length,o!==i&&s.forEach(function(t){l.ajax(e.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify({bri:o}),contentType:"application/json",type:"PUT"})})},onBrightnessChanged:n("lightsBrightness",function(){var e=this.get("activeLights").length -r(this,this.changeLightsBrightness,69*e,!1)}),onSyncLightsChanged:n("syncLight",function(){var e={on:this.get("lightsOn"),bri:this.get("lightsBrightness"),effect:this.get("colorLoopOn")?"colorloop":"none"},t=this.get("rgb"),n=this.get("syncLight") -255!==t[0]&&255!==t[1]&&255!==t[2]&&(e.xy=this.rgbToXy(t[0],t[1],t[2])),e.transitiontime=0,l.ajax(this.get("apiURL")+"/lights/"+n+"/state",{data:JSON.stringify(e),contentType:"application/json",type:"PUT"})}),didInsertElement:function(){this.onActiveLightsChange()},strobeOn:!1,strobeOnInervalHandle:null,preStrobeOnLightsDataCache:null,nextLightIdx:0,onStrobeOnChange:n("strobeOn",function(){var e=this,t=this.get("lightsData"),n=this.get("strobeOn") +this.set("lightsOnDisabled",!0),l(this,this.changeLightsOnOff,69*e,!1)}),changeLightsOnOff:function(){var e=this,t=this.getProperties("lightsData","activeLights","lightsOn","apiURL"),n=t.lightsData,o=t.activeLights,s=t.lightsOn,a=t.apiURL,l=o.some(function(e){return!0===n[e].state.on}) +i(this,function(){e.set("lightsOnDisabled",!1)},800),s!==l&&o.forEach(function(e){r.ajax(a+"/lights/"+e+"/state",{data:JSON.stringify({on:s}),contentType:"application/json",type:"PUT"})})},changeLightsBrightness:function(){var e=this,t=this.getProperties("lightsData","lightsBrightness","activeLights"),n=t.lightsData,o=t.lightsBrightness,s=t.activeLights,a=!1 +s.forEach(function(e){a+=n[e].state.bri}),a/=s.length,o!==a&&s.forEach(function(t){r.ajax(e.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify({bri:o}),contentType:"application/json",type:"PUT"})})},onBrightnessChanged:n("lightsBrightness",function(){var e=this.get("activeLights").length +l(this,this.changeLightsBrightness,69*e,!1)}),onSyncLightsChanged:n("syncLight",function(){var e={on:this.get("lightsOn"),bri:this.get("lightsBrightness"),effect:this.get("colorLoopOn")?"colorloop":"none"},t=this.get("rgb"),n=this.get("syncLight") +255!==t[0]&&255!==t[1]&&255!==t[2]&&(e.xy=this.rgbToXy(t[0],t[1],t[2])),e.transitiontime=0,r.ajax(this.get("apiURL")+"/lights/"+n+"/state",{data:JSON.stringify(e),contentType:"application/json",type:"PUT"})}),didInsertElement:function(){this.onActiveLightsChange()},strobeOn:!1,strobeOnInervalHandle:null,preStrobeOnLightsDataCache:null,nextLightIdx:0,onStrobeOnChange:n("strobeOn",function(){var e=this,t=this.get("lightsData"),n=this.get("strobeOn") if(n){this.set("preStrobeOnLightsDataCache",t) var o={transitiontime:0} -for(var s in t)t.hasOwnProperty(s)&&(t[s].state.on&&(o.on=!1),l.ajax(this.get("apiURL")+"/lights/"+s+"/state",{data:JSON.stringify(o),contentType:"application/json",type:"PUT"})) -this.set("strobeOnInervalHandle",setInterval(this.strobeStep.bind(this),500))}else{var i=this.get("preStrobeOnLightsDataCache"),r=function(t){l.ajax(e.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify({on:i[t].state.on,sat:i[t].state.sat}),contentType:"application/json",type:"PUT"})} -for(var c in t)t.hasOwnProperty(c)&&a(this,r,c,2e3) -a(this,this.onColorLoopOnChange,2e3),clearInterval(this.get("strobeOnInervalHandle"))}this.set("pauseLightUpdates",n)}),strobeStep:function(){var e=this.get("nextLightIdx")%this.get("activeLights").length,t=this.get("activeLights")[e],n={on:!0,transitiontime:0,alert:"select"} -this.get("colorLoopOn")&&(n.hue=Math.floor(65535*Math.random())),l.ajax(this.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify(n),contentType:"application/json",type:"PUT"}),l.ajax(this.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify({on:!1,transitiontime:0}),contentType:"application/json",type:"PUT"}),this.set("nextLightIdx",++e)},strobeOnTxt:o("strobeOn",function(){return this.get("strobeOn")?"On":"Off"}),dimmerOnClass:o("dimmerOn",function(){return this.get("dimmerOn")?"dimmerOn":null}),actions:{toggleDimmer:function(){this.sendAction("toggleDimmer")},randomizeHues:function(){var e=this -l(".dice").velocity({scale:1.1},100).velocity({scale:1},100),this.get("activeLights").forEach(function(t){var n={hue:Math.floor(65535*Math.random())} -!1===e.get("lightsData")[t].state.on&&(n.on=!0),l.ajax(e.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify(n),contentType:"application/json",type:"PUT"})}),a(function(){e.onActiveLightsChange()},1e3)}}})}),define("huegasm/pods/components/lights-tab/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.HTMLBars.template({id:"r7PTII4M",block:'{"symbols":["menu","content"],"statements":[[4,"paper-list",null,null,{"statements":[[4,"paper-item",null,null,{"statements":[[0," "],[1,[25,"paper-icon",["power-settings-new"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0,"\\n "],[6,"p"],[9,"data-toggle","tooltip"],[9,"data-placement","top auto"],[9,"class","bootstrap-tooltip lights-control-tooltip"],[9,"data-title","Turn the selected lights on/off"],[7],[0,"Power"],[8],[0,"\\n "],[1,[25,"paper-switch",null,[["value","onChange","disabled","skipProxy","label"],[[20,["lightsOn"]],[25,"action",[[19,0,[]],[25,"mut",[[20,["lightsOn"]]],null]],null],[25,"or",[[20,["trial"]],[20,["playing"]],[20,["lightsOnDisabled"]]],null],[20,["trial"]],[20,["lightsOnTxt"]]]]],false],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"paper-item",null,null,{"statements":[[0," "],[1,[25,"paper-icon",["brightness-4"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0,"\\n "],[6,"p"],[9,"data-toggle","tooltip"],[9,"data-placement","top auto"],[9,"class","layout flex-60 bootstrap-tooltip lights-control-tooltip"],[9,"data-title","The brightness level of the selected lights"],[7],[0,"Brightness"],[8],[0,"\\n "],[1,[25,"paper-slider",null,[["class","step","min","max","value","onChange","disabled"],["flex",10,1,254,[20,["lightsBrightness"]],[25,"action",[[19,0,[]],[25,"mut",[[20,["lightsBrightness"]]],null]],null],[20,["brightnessControlDisabled"]]]]],false],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"paper-item",null,[["elementId"],["color-row"]],{"statements":[[0," "],[1,[25,"paper-icon",["color-lens"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0,"\\n "],[6,"p"],[9,"data-toggle","tooltip"],[9,"data-placement","top auto"],[9,"class","bootstrap-tooltip lights-control-tooltip"],[9,"data-title","The color of the selected lights"],[7],[0,"Color"],[8],[0,"\\n\\n"],[4,"paper-menu",null,[["offset"],["0 -50"]],{"statements":[[4,"component",[[19,1,["trigger"]]],null,{"statements":[[4,"paper-button",null,[["iconButton"],[false]],{"statements":[[0," "],[1,[25,"paper-button",null,[["raised","class","disabled"],[true,"color",[25,"or",[[20,["trial"]],[20,["playing"]]],null]]]],false],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},null],[4,"component",[[19,1,["content"]]],[["class","width"],["color-content",0]],{"statements":[[4,"component",[[19,2,["menu-item"]]],null,{"statements":[[0," "],[1,[25,"lights-tab/color-picker",null,[["lightsData","activeLights","rgb"],[[20,["lightsData"]],[20,["activeLights"]],[20,["rgb"]]]]],false],[0,"\\n"]],"parameters":[]},null]],"parameters":[2]},null]],"parameters":[1]},null]],"parameters":[]},null],[0,"\\n"],[4,"paper-item",null,null,{"statements":[[0," "],[1,[25,"paper-icon",["flare"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0,"\\n "],[6,"p"],[9,"data-toggle","tooltip"],[9,"data-placement","top auto"],[9,"class","bootstrap-tooltip lights-control-tooltip"],[9,"data-title","Selected lights will flash in sequential order"],[7],[0,"Strobe"],[8],[0,"\\n "],[1,[25,"paper-switch",null,[["value","onChange","disabled","skipProxy","label"],[[20,["strobeOn"]],[25,"action",[[19,0,[]],[25,"mut",[[20,["strobeOn"]]],null]],null],[25,"or",[[20,["trial"]],[20,["playing"]]],null],[20,["trial"]],[20,["strobeOnTxt"]]]]],false],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"paper-item",null,null,{"statements":[[0," "],[1,[25,"paper-icon",["color-lens"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," "],[1,[25,"paper-icon",["loop"],[["id","class"],["loop-addition",[20,["dimmerOnClass"]]]]],false],[0,"\\n "],[6,"p"],[9,"data-toggle","tooltip"],[9,"data-placement","top auto"],[9,"class","bootstrap-tooltip lights-control-tooltip"],[9,"data-title","Selected lights will slowly cycle through all the colors"],[7],[0,"Colorloop"],[8],[0,"\\n "],[1,[25,"paper-switch",null,[["value","onChange","disabled","skipProxy","label"],[[20,["colorLoopOn"]],[25,"action",[[19,0,[]],[25,"mut",[[20,["colorLoopOn"]]],null]],null],[25,"or",[[20,["trial"]],[20,["playing"]]],null],[20,["trial"]],[20,["colorloopOnTxt"]]]]],false],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"paper-item",null,null,{"statements":[[0," "],[1,[25,"paper-icon",["shuffle"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0,"\\n "],[6,"p"],[9,"data-toggle","tooltip"],[9,"data-placement","top auto"],[9,"class","bootstrap-tooltip lights-control-tooltip"],[9,"data-title","Randomize the hues (colors) of your selected lights."],[7],[0,"Randomize Hues"],[8],[0,"\\n\\n "],[6,"svg"],[9,"xmlns","http://www.w3.org/2000/svg","http://www.w3.org/2000/xmlns/"],[9,"viewBox","0 0 512 512"],[9,"class","dice"],[3,"action",[[19,0,[]],"randomizeHues"]],[7],[0,"\\n "],[6,"path"],[9,"d","M0 0h512v512H0z"],[9,"fill","none"],[7],[8],[0,"\\n "],[6,"g"],[9,"transform","translate(0,0)"],[9,"style","touch-action: none;"],[7],[0,"\\n "],[6,"path"],[9,"fill","rgba(82, 67, 67, 0.9)"],[9,"d","M255.76 44.764c-6.176 0-12.353 1.384-17.137 4.152L85.87 137.276c-9.57 5.536-9.57 14.29 0 19.826l152.753 88.36c9.57 5.536 24.703 5.536 34.272 0l152.753-88.36c9.57-5.535 9.57-14.29 0-19.825l-152.753-88.36c-4.785-2.77-10.96-4.153-17.135-4.153zm.926 82.855a31.953 18.96 0 0 1 22.127 32.362 31.953 18.96 0 1 1-45.188-26.812 31.953 18.96 0 0 1 23.06-5.55zM75.67 173.84c-5.753-.155-9.664 4.336-9.664 12.28v157.696c0 11.052 7.57 24.163 17.14 29.69l146.93 84.848c9.57 5.526 17.14 1.156 17.14-9.895V290.76c0-11.052-7.57-24.16-17.14-29.688l-146.93-84.847c-2.69-1.555-5.225-2.327-7.476-2.387zm360.773.002c-2.25.06-4.783.83-7.474 2.385l-146.935 84.847c-9.57 5.527-17.14 18.638-17.14 29.69v157.7c0 11.05 7.57 15.418 17.14 9.89L428.97 373.51c9.57-5.527 17.137-18.636 17.137-29.688v-157.7c0-7.942-3.91-12.432-9.664-12.278zM89.297 195.77a31.236 18.008 58.094 0 1 33.818 41.183 31.236 18.008 58.094 1 1-45-25.98 31.236 18.008 58.094 0 1 11.182-15.203zm221.52 64.664A18.008 31.236 31.906 0 1 322 275.637a18.008 31.236 31.906 0 1-45 25.98 18.008 31.236 31.906 0 1 33.818-41.183zM145.296 289.1a31.236 18.008 58.094 0 1 33.818 41.183 31.236 18.008 58.094 0 1-45-25.98 31.236 18.008 58.094 0 1 11.182-15.203zm277.523 29.38A18.008 31.236 31.906 0 1 434 333.684a18.008 31.236 31.906 0 1-45 25.98 18.008 31.236 31.906 0 1 33.818-41.184zm-221.52 64.663a31.236 18.008 58.094 0 1 33.817 41.183 31.236 18.008 58.094 1 1-45-25.98 31.236 18.008 58.094 0 1 11.182-15.203z"],[7],[8],[0,"\\n "],[8],[0,"\\n "],[8],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},null]],"hasEval":false}',meta:{moduleName:"huegasm/pods/components/lights-tab/template.hbs"}})}),define("huegasm/pods/components/music-tab/add-soundcloud-sound-modal/component",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}) -var t=Ember.Component,n=Ember.observer,o=Ember.computed,s=Ember.isEmpty,i=Ember.isNone,a=Ember.run.later,r=Ember.$ -e.default=t.extend({url:null,onIsShowingModalChange:n("isShowingModal",function(){this.get("isShowingModal")&&(this.set("url",null),a(function(){r("md-input-container input").focus()},500))}),saveDisabled:o("url",function(){return i(this.get("url"))||s(this.get("url").trim())}),didInsertElement:function(){var e=this -r(document).keypress(function(t){e.get("saveDisabled")||13!==t.which||e.send("add")})},actions:{close:function(){this.sendAction()},add:function(){this.sendAction("action",this.get("url"))}}})}),define("huegasm/pods/components/music-tab/add-soundcloud-sound-modal/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.HTMLBars.template({id:"Vnfli3w0",block:'{"symbols":[],"statements":[[4,"if",[[20,["isShowingModal"]]],null,{"statements":[[4,"paper-dialog",null,[["fullscreen","onClose","origin","clickOutsideToClose"],[[20,["fullscreen"]],[25,"action",[[19,0,[]],"close"],null],[20,["dialogOrigin"]],true]],{"statements":[[4,"paper-dialog-content",null,null,{"statements":[[0," "],[6,"p"],[7],[0,"Enter a "],[6,"a"],[9,"href","https://soundcloud.com"],[9,"target","_blank"],[9,"rel","noopener noreferrer"],[7],[0,"SoundCloud"],[8],[0," track or playlist/set URL"],[8],[0,"\\n "],[6,"p"],[7],[0,"ex. https://soundcloud.com/mrsuicidesheep/tracks"],[8],[0,"\\n\\n "],[1,[25,"paper-input",null,[["label","class","icon","value","onChange"],["SoundCloud URL","full-width","search",[20,["url"]],[25,"action",[[19,0,[]],[25,"mut",[[20,["url"]]],null]],null]]]],false],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"paper-dialog-actions",null,[["class"],["layout-row"]],{"statements":[[0," "],[6,"span"],[9,"class","flex"],[7],[8],[0,"\\n "],[1,[25,"paper-button",null,[["onClick","label"],[[25,"action",[[19,0,[]],"close"],null],"Close"]]],false],[0," \\n "],[1,[25,"paper-button",null,[["class","onClick","disabled","primary","label"],["pull-right",[25,"action",[[19,0,[]],"add"],null],[20,["saveDisabled"]],true,"Add Music"]]],false],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},null]],"parameters":[]},null]],"hasEval":false}',meta:{moduleName:"huegasm/pods/components/music-tab/add-soundcloud-sound-modal/template.hbs"}})}),define("huegasm/pods/components/music-tab/component",["exports","huegasm/pods/components/music-tab/mixins/helpers","huegasm/pods/components/music-tab/mixins/visualizer"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}) -var o=Ember.Component,s=Ember.observer,i=Ember.isEmpty,a=Ember.isNone,r=Ember.$,l=Ember.run,c=l.later,p=l.next +for(var s in t)t.hasOwnProperty(s)&&(t[s].state.on&&(o.on=!1),r.ajax(this.get("apiURL")+"/lights/"+s+"/state",{data:JSON.stringify(o),contentType:"application/json",type:"PUT"})) +this.set("strobeOnInervalHandle",setInterval(this.strobeStep.bind(this),500))}else{var a=this.get("preStrobeOnLightsDataCache"),l=function(t){r.ajax(e.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify({on:a[t].state.on,sat:a[t].state.sat}),contentType:"application/json",type:"PUT"})} +for(var c in t)t.hasOwnProperty(c)&&i(this,l,c,2e3) +i(this,this.onColorLoopOnChange,2e3),clearInterval(this.get("strobeOnInervalHandle"))}this.set("pauseLightUpdates",n)}),strobeStep:function(){var e=this.get("nextLightIdx")%this.get("activeLights").length,t=this.get("activeLights")[e],n={on:!0,transitiontime:0,alert:"select"} +this.get("colorLoopOn")&&(n.hue=Math.floor(65535*Math.random())),r.ajax(this.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify(n),contentType:"application/json",type:"PUT"}),r.ajax(this.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify({on:!1,transitiontime:0}),contentType:"application/json",type:"PUT"}),this.set("nextLightIdx",++e)},strobeOnTxt:o("strobeOn",function(){return this.get("strobeOn")?"On":"Off"}),dimmerOnClass:o("dimmerOn",function(){return this.get("dimmerOn")?"dimmerOn":null}),actions:{toggleDimmer:function(){this.sendAction("toggleDimmer")},randomizeHues:function(){var e=this +r(".dice").velocity({scale:1.1},100).velocity({scale:1},100),this.get("activeLights").forEach(function(t){var n={hue:Math.floor(65535*Math.random())} +!1===e.get("lightsData")[t].state.on&&(n.on=!0),r.ajax(e.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify(n),contentType:"application/json",type:"PUT"})}),i(function(){e.onActiveLightsChange()},1e3)}}})}),define("huegasm/pods/components/lights-tab/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.HTMLBars.template({id:"r7PTII4M",block:'{"symbols":["menu","content"],"statements":[[4,"paper-list",null,null,{"statements":[[4,"paper-item",null,null,{"statements":[[0," "],[1,[25,"paper-icon",["power-settings-new"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0,"\\n "],[6,"p"],[9,"data-toggle","tooltip"],[9,"data-placement","top auto"],[9,"class","bootstrap-tooltip lights-control-tooltip"],[9,"data-title","Turn the selected lights on/off"],[7],[0,"Power"],[8],[0,"\\n "],[1,[25,"paper-switch",null,[["value","onChange","disabled","skipProxy","label"],[[20,["lightsOn"]],[25,"action",[[19,0,[]],[25,"mut",[[20,["lightsOn"]]],null]],null],[25,"or",[[20,["trial"]],[20,["playing"]],[20,["lightsOnDisabled"]]],null],[20,["trial"]],[20,["lightsOnTxt"]]]]],false],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"paper-item",null,null,{"statements":[[0," "],[1,[25,"paper-icon",["brightness-4"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0,"\\n "],[6,"p"],[9,"data-toggle","tooltip"],[9,"data-placement","top auto"],[9,"class","layout flex-60 bootstrap-tooltip lights-control-tooltip"],[9,"data-title","The brightness level of the selected lights"],[7],[0,"Brightness"],[8],[0,"\\n "],[1,[25,"paper-slider",null,[["class","step","min","max","value","onChange","disabled"],["flex",10,1,254,[20,["lightsBrightness"]],[25,"action",[[19,0,[]],[25,"mut",[[20,["lightsBrightness"]]],null]],null],[20,["brightnessControlDisabled"]]]]],false],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"paper-item",null,[["elementId"],["color-row"]],{"statements":[[0," "],[1,[25,"paper-icon",["color-lens"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0,"\\n "],[6,"p"],[9,"data-toggle","tooltip"],[9,"data-placement","top auto"],[9,"class","bootstrap-tooltip lights-control-tooltip"],[9,"data-title","The color of the selected lights"],[7],[0,"Color"],[8],[0,"\\n\\n"],[4,"paper-menu",null,[["offset"],["0 -50"]],{"statements":[[4,"component",[[19,1,["trigger"]]],null,{"statements":[[4,"paper-button",null,[["iconButton"],[false]],{"statements":[[0," "],[1,[25,"paper-button",null,[["raised","class","disabled"],[true,"color",[25,"or",[[20,["trial"]],[20,["playing"]]],null]]]],false],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},null],[4,"component",[[19,1,["content"]]],[["class","width"],["color-content",0]],{"statements":[[4,"component",[[19,2,["menu-item"]]],null,{"statements":[[0," "],[1,[25,"lights-tab/color-picker",null,[["lightsData","activeLights","rgb"],[[20,["lightsData"]],[20,["activeLights"]],[20,["rgb"]]]]],false],[0,"\\n"]],"parameters":[]},null]],"parameters":[2]},null]],"parameters":[1]},null]],"parameters":[]},null],[0,"\\n"],[4,"paper-item",null,null,{"statements":[[0," "],[1,[25,"paper-icon",["flare"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0,"\\n "],[6,"p"],[9,"data-toggle","tooltip"],[9,"data-placement","top auto"],[9,"class","bootstrap-tooltip lights-control-tooltip"],[9,"data-title","Selected lights will flash in sequential order"],[7],[0,"Strobe"],[8],[0,"\\n "],[1,[25,"paper-switch",null,[["value","onChange","disabled","skipProxy","label"],[[20,["strobeOn"]],[25,"action",[[19,0,[]],[25,"mut",[[20,["strobeOn"]]],null]],null],[25,"or",[[20,["trial"]],[20,["playing"]]],null],[20,["trial"]],[20,["strobeOnTxt"]]]]],false],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"paper-item",null,null,{"statements":[[0," "],[1,[25,"paper-icon",["color-lens"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," "],[1,[25,"paper-icon",["loop"],[["id","class"],["loop-addition",[20,["dimmerOnClass"]]]]],false],[0,"\\n "],[6,"p"],[9,"data-toggle","tooltip"],[9,"data-placement","top auto"],[9,"class","bootstrap-tooltip lights-control-tooltip"],[9,"data-title","Selected lights will slowly cycle through all the colors"],[7],[0,"Colorloop"],[8],[0,"\\n "],[1,[25,"paper-switch",null,[["value","onChange","disabled","skipProxy","label"],[[20,["colorLoopOn"]],[25,"action",[[19,0,[]],[25,"mut",[[20,["colorLoopOn"]]],null]],null],[25,"or",[[20,["trial"]],[20,["playing"]]],null],[20,["trial"]],[20,["colorloopOnTxt"]]]]],false],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"paper-item",null,null,{"statements":[[0," "],[1,[25,"paper-icon",["shuffle"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0,"\\n "],[6,"p"],[9,"data-toggle","tooltip"],[9,"data-placement","top auto"],[9,"class","bootstrap-tooltip lights-control-tooltip"],[9,"data-title","Randomize the hues (colors) of your selected lights."],[7],[0,"Randomize Hues"],[8],[0,"\\n\\n "],[6,"svg"],[9,"xmlns","http://www.w3.org/2000/svg","http://www.w3.org/2000/xmlns/"],[9,"viewBox","0 0 512 512"],[9,"class","dice"],[3,"action",[[19,0,[]],"randomizeHues"]],[7],[0,"\\n "],[6,"path"],[9,"d","M0 0h512v512H0z"],[9,"fill","none"],[7],[8],[0,"\\n "],[6,"g"],[9,"transform","translate(0,0)"],[9,"style","touch-action: none;"],[7],[0,"\\n "],[6,"path"],[9,"fill","rgba(82, 67, 67, 0.9)"],[9,"d","M255.76 44.764c-6.176 0-12.353 1.384-17.137 4.152L85.87 137.276c-9.57 5.536-9.57 14.29 0 19.826l152.753 88.36c9.57 5.536 24.703 5.536 34.272 0l152.753-88.36c9.57-5.535 9.57-14.29 0-19.825l-152.753-88.36c-4.785-2.77-10.96-4.153-17.135-4.153zm.926 82.855a31.953 18.96 0 0 1 22.127 32.362 31.953 18.96 0 1 1-45.188-26.812 31.953 18.96 0 0 1 23.06-5.55zM75.67 173.84c-5.753-.155-9.664 4.336-9.664 12.28v157.696c0 11.052 7.57 24.163 17.14 29.69l146.93 84.848c9.57 5.526 17.14 1.156 17.14-9.895V290.76c0-11.052-7.57-24.16-17.14-29.688l-146.93-84.847c-2.69-1.555-5.225-2.327-7.476-2.387zm360.773.002c-2.25.06-4.783.83-7.474 2.385l-146.935 84.847c-9.57 5.527-17.14 18.638-17.14 29.69v157.7c0 11.05 7.57 15.418 17.14 9.89L428.97 373.51c9.57-5.527 17.137-18.636 17.137-29.688v-157.7c0-7.942-3.91-12.432-9.664-12.278zM89.297 195.77a31.236 18.008 58.094 0 1 33.818 41.183 31.236 18.008 58.094 1 1-45-25.98 31.236 18.008 58.094 0 1 11.182-15.203zm221.52 64.664A18.008 31.236 31.906 0 1 322 275.637a18.008 31.236 31.906 0 1-45 25.98 18.008 31.236 31.906 0 1 33.818-41.183zM145.296 289.1a31.236 18.008 58.094 0 1 33.818 41.183 31.236 18.008 58.094 0 1-45-25.98 31.236 18.008 58.094 0 1 11.182-15.203zm277.523 29.38A18.008 31.236 31.906 0 1 434 333.684a18.008 31.236 31.906 0 1-45 25.98 18.008 31.236 31.906 0 1 33.818-41.184zm-221.52 64.663a31.236 18.008 58.094 0 1 33.817 41.183 31.236 18.008 58.094 1 1-45-25.98 31.236 18.008 58.094 0 1 11.182-15.203z"],[7],[8],[0,"\\n "],[8],[0,"\\n "],[8],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},null]],"hasEval":false}',meta:{moduleName:"huegasm/pods/components/lights-tab/template.hbs"}})}),define("huegasm/pods/components/music-tab/add-soundcloud-sound-modal/component",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}) +var t=Ember.Component,n=Ember.observer,o=Ember.computed,s=Ember.isEmpty,a=Ember.isNone,i=Ember.run.later,l=Ember.$ +e.default=t.extend({url:null,onIsShowingModalChange:n("isShowingModal",function(){this.get("isShowingModal")&&(this.set("url",null),i(function(){l("md-input-container input").focus()},500))}),saveDisabled:o("url",function(){return a(this.get("url"))||s(this.get("url").trim())}),didInsertElement:function(){var e=this +l(document).keypress(function(t){e.get("saveDisabled")||13!==t.which||e.send("add")})},actions:{close:function(){this.sendAction()},add:function(){this.sendAction("action",this.get("url"))}}})}),define("huegasm/pods/components/music-tab/add-soundcloud-sound-modal/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.HTMLBars.template({id:"Vnfli3w0",block:'{"symbols":[],"statements":[[4,"if",[[20,["isShowingModal"]]],null,{"statements":[[4,"paper-dialog",null,[["fullscreen","onClose","origin","clickOutsideToClose"],[[20,["fullscreen"]],[25,"action",[[19,0,[]],"close"],null],[20,["dialogOrigin"]],true]],{"statements":[[4,"paper-dialog-content",null,null,{"statements":[[0," "],[6,"p"],[7],[0,"Enter a "],[6,"a"],[9,"href","https://soundcloud.com"],[9,"target","_blank"],[9,"rel","noopener noreferrer"],[7],[0,"SoundCloud"],[8],[0," track or playlist/set URL"],[8],[0,"\\n "],[6,"p"],[7],[0,"ex. https://soundcloud.com/mrsuicidesheep/tracks"],[8],[0,"\\n\\n "],[1,[25,"paper-input",null,[["label","class","icon","value","onChange"],["SoundCloud URL","full-width","search",[20,["url"]],[25,"action",[[19,0,[]],[25,"mut",[[20,["url"]]],null]],null]]]],false],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"paper-dialog-actions",null,[["class"],["layout-row"]],{"statements":[[0," "],[6,"span"],[9,"class","flex"],[7],[8],[0,"\\n "],[1,[25,"paper-button",null,[["onClick","label"],[[25,"action",[[19,0,[]],"close"],null],"Close"]]],false],[0," \\n "],[1,[25,"paper-button",null,[["class","onClick","disabled","primary","label"],["pull-right",[25,"action",[[19,0,[]],"add"],null],[20,["saveDisabled"]],true,"Add Music"]]],false],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},null]],"parameters":[]},null]],"hasEval":false}',meta:{moduleName:"huegasm/pods/components/music-tab/add-soundcloud-sound-modal/template.hbs"}})}),define("huegasm/pods/components/music-tab/add-url-sound-modal/component",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}) +var t=Ember.Component,n=Ember.observer,o=Ember.computed,s=Ember.isEmpty,a=Ember.isNone,i=Ember.run.later,l=Ember.$ +e.default=t.extend({url:null,onIsShowingModalChange:n("isShowingModal",function(){this.get("isShowingModal")&&(this.set("url",null),i(function(){l("md-input-container input").focus()},500))}),saveDisabled:o("url",function(){return a(this.get("url"))||s(this.get("url").trim())}),didInsertElement:function(){var e=this +l(document).keypress(function(t){e.get("saveDisabled")||13!==t.which||e.send("add")})},actions:{close:function(){this.sendAction()},add:function(){this.sendAction("action",this.get("url"))}}})}),define("huegasm/pods/components/music-tab/add-url-sound-modal/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.HTMLBars.template({id:"h/K92ZAz",block:'{"symbols":[],"statements":[[4,"if",[[20,["isShowingModal"]]],null,{"statements":[[4,"paper-dialog",null,[["fullscreen","onClose","origin","clickOutsideToClose"],[[20,["fullscreen"]],[25,"action",[[19,0,[]],"close"],null],[20,["dialogOrigin"]],true]],{"statements":[[4,"paper-dialog-content",null,null,{"statements":[[0," "],[6,"p"],[7],[0,"Enter a direct audio stream URL."],[8],[0,"\\n "],[6,"p"],[7],[0,"ex. http://uk6.internet-radio.com:8213/;stream"],[8],[0,"\\n\\n "],[1,[25,"paper-input",null,[["label","class","icon","value","onChange"],["URL","full-width","search",[20,["url"]],[25,"action",[[19,0,[]],[25,"mut",[[20,["url"]]],null]],null]]]],false],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"paper-dialog-actions",null,[["class"],["layout-row"]],{"statements":[[0," "],[6,"span"],[9,"class","flex"],[7],[8],[0,"\\n "],[1,[25,"paper-button",null,[["onClick","label"],[[25,"action",[[19,0,[]],"close"],null],"Close"]]],false],[0," \\n "],[1,[25,"paper-button",null,[["class","onClick","disabled","primary","label"],["pull-right",[25,"action",[[19,0,[]],"add"],null],[20,["saveDisabled"]],true,"Add Music"]]],false],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},null]],"parameters":[]},null]],"hasEval":false}',meta:{moduleName:"huegasm/pods/components/music-tab/add-url-sound-modal/template.hbs"}})}),define("huegasm/pods/components/music-tab/component",["exports","huegasm/pods/components/music-tab/mixins/helpers","huegasm/pods/components/music-tab/mixins/visualizer"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}) +var o=Ember.Component,s=Ember.observer,a=Ember.isEmpty,i=Ember.isNone,l=Ember.$,r=Ember.run,c=r.later,p=r.next e.default=o.extend(t.default,n.default,{updatePageTitle:s("playQueuePointer",function(){var e="Huegasm",t=this.get("playQueuePointer"),n=this.get("playQueue") if(-1!==t){var o=n[t] o.title?(e=o.title,o.artist&&(e+=" - "+o.artist)):e=o.fileName,e+="- Huegasm"}document.title=e}),changePlayerControl:function(e,t,n){this.set(e,t),"threshold"===e&&this.get("kick").set({threshold:t}),n&&-1!==this.get("playQueuePointer")&&this.saveSongBeatPreferences(),this.get("storage").set("huegasm."+e,t)},saveSongBeatPreferences:function(){var e=this.get("playQueue")[this.get("playQueuePointer")] -if(e){var t=i(e.artist)?e.fileName:e.artist+"-"+e.title,n=this.get("songBeatPreferences") -n[t]={threshold:this.get("threshold")},this.set("usingBeatPreferences",!0),this.get("storage").set("huegasm.songBeatPreferences",n)}},loadSongBeatPreferences:function(){var e=this.get("playQueue")[this.get("playQueuePointer")],t=i(e.artist)?e.fileName:e.artist+"-"+e.title,n=this.get("songBeatPreferences")[t],o=this.get("oldBeatPrefCache"),s=null -a(n)?a(o)||(this.changePlayerControl("threshold",o.threshold),this.set("usingBeatPreferences",!1)):(s={threshold:this.get("threshold")},this.changePlayerControl("threshold",n.threshold),this.set("usingBeatPreferences",!0)),this.set("oldBeatPrefCache",s)},clearCurrentAudio:function(e){var t=this.get("dancer") +if(e){var t=a(e.artist)?e.fileName:e.artist+"-"+e.title,n=this.get("songBeatPreferences") +n[t]={threshold:this.get("threshold")},this.set("usingBeatPreferences",!0),this.get("storage").set("huegasm.songBeatPreferences",n)}},loadSongBeatPreferences:function(){var e=this.get("playQueue")[this.get("playQueuePointer")],t=a(e.artist)?e.fileName:e.artist+"-"+e.title,n=this.get("songBeatPreferences")[t],o=this.get("oldBeatPrefCache"),s=null +i(n)?i(o)||(this.changePlayerControl("threshold",o.threshold),this.set("usingBeatPreferences",!1)):(s={threshold:this.get("threshold")},this.changePlayerControl("threshold",n.threshold),this.set("usingBeatPreferences",!0)),this.set("oldBeatPrefCache",s)},clearCurrentAudio:function(e){var t=this.get("dancer") t.audio.pause&&t.pause(),e&&this.set("playQueuePointer",-1),this.setProperties({timeElapsed:0,timeTotal:0,playing:!1})},dragOver:function(){var e=this.get("dragLeaveTimeoutHandle") this.set("dragging",!0),e&&clearTimeout(e)},dragLeave:function(){var e=this -this.set("dragLeaveTimeoutHandle",setTimeout(function(){e.set("dragging",!1)},500))},simulateKick:function(){var e=this,t=this.get("activeLights"),n=this.get("lightsData"),o=null,s=this.get("flashingTransitions"),i=function(t,o,i,l){var c={bri:o,transitiontime:0} -s||(c.transitiontime=1),a(l)||(c.hue=l),e.get("blackoutMode")?(c.on=i,delete c[o]):!1===n[t].state.on&&(c.on=!0),r.ajax(e.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify(c),contentType:"application/json",type:"PUT"})},l=100 +this.set("dragLeaveTimeoutHandle",setTimeout(function(){e.set("dragging",!1)},500))},simulateKick:function(){var e=this,t=this.get("activeLights"),n=this.get("lightsData"),o=null,s=this.get("flashingTransitions"),a=function(t,o,a,r){var c={bri:o,transitiontime:0} +s||(c.transitiontime=1),i(r)||(c.hue=r),e.get("blackoutMode")?(c.on=a,delete c[o]):!1===n[t].state.on&&(c.on=!0),l.ajax(e.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify(c),contentType:"application/json",type:"PUT"})},r=100 if(t.length>0){var p=this.get("lastLightBopIndex"),u=void 0,d=this.get("brightnessRange"),h=void 0 if(u=Math.floor(Math.random()*t.length),t.length>1)for(;u===p;)u=Math.floor(Math.random()*t.length) if(h=t[u],this.set("lastLightBopIndex",u),!this.get("colorLoopOn")){var m=this.get("hueRange") -o=Math.floor(Math.random()*(m[1]-m[0]+1)+m[0])}s&&(l=80),c(this,function(){i(h,d[1],!0),c(e,i,h,d[0],!1,o,l)},this.get("beatDelay"))}this.set("paused",!0),c(this,function(){this.set("paused",!1)},200),r("#beat-speaker-center-outer").velocity({blur:3},100).velocity({blur:0},100),r("#beat-speaker-center-inner").velocity({scale:1.05},100).velocity({scale:1},100)},doAmbience:function(e){var t=this,n=this.get("activeLights") -if(e>.01&&!this.pauseAmbience&&n.length>0){var o=function(e,n){r.ajax(t.get("apiURL")+"/lights/"+e+"/state",{data:JSON.stringify(n),contentType:"application/json",type:"PUT"})},s=Math.floor(Math.random()*n.length) +o=Math.floor(Math.random()*(m[1]-m[0]+1)+m[0])}s&&(r=80),c(this,function(){a(h,d[1],!0),c(e,a,h,d[0],!1,o,r)},this.get("beatDelay"))}this.set("paused",!0),c(this,function(){this.set("paused",!1)},200),l("#beat-speaker-center-outer").velocity({blur:3},100).velocity({blur:0},100),l("#beat-speaker-center-inner").velocity({scale:1.05},100).velocity({scale:1},100)},doAmbience:function(e){var t=this,n=this.get("activeLights") +if(e>.01&&!this.pauseAmbience&&n.length>0){var o=function(e,n){l.ajax(t.get("apiURL")+"/lights/"+e+"/state",{data:JSON.stringify(n),contentType:"application/json",type:"PUT"})},s=Math.floor(Math.random()*n.length) if(n.length>1)for(;s===this.lastAmbienceLightIndex;)s=Math.floor(Math.random()*n.length) -var i=n[s],a=this.get("hueRange"),l=this.get("brightnessRange"),c=Math.floor(Math.random()*(a[1]-a[0]+1)+a[0]) -this.lastAmbienceLightIndex=s,o(i,{bri:Math.floor(l[1]/1.4),hue:c,transitiontime:Math.floor(4*Math.random())+4}),setTimeout(function(){c=Math.floor(Math.random()*(a[1]-a[0]+1)+a[0]),o(i,{bri:l[0],hue:c,transitiontime:Math.floor(4*Math.random())+4})},1e3),this.pauseAmbience=!0 +var a=n[s],i=this.get("hueRange"),r=this.get("brightnessRange"),c=Math.floor(Math.random()*(i[1]-i[0]+1)+i[0]) +this.lastAmbienceLightIndex=s,o(a,{bri:Math.floor(r[1]/1.4),hue:c,transitiontime:Math.floor(4*Math.random())+4}),setTimeout(function(){c=Math.floor(Math.random()*(i[1]-i[0]+1)+i[0]),o(a,{bri:r[0],hue:c,transitiontime:Math.floor(4*Math.random())+4})},1e3),this.pauseAmbience=!0 var p=Math.floor(1e3+2e3/n.length) setTimeout(function(){t.pauseAmbience=!1},p)}},init:function(){var e=this this._super.apply(this,arguments),window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame,window.cancelAnimationFrame=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame,navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia var t=new Dancer,n=this.get("storage"),o=t.createKick({threshold:this.get("threshold"),onKick:function(t,n){!1===e.get("paused")&&e.simulateKick(t,n)},offKick:function(t){e.get("ambienceMode")&&e.doAmbience(t)}}) -o.on(),this.setProperties({dancer:t,kick:o}),["volume","shuffle","repeat","volumeMuted","threshold","ambienceMode","blackoutMode","playerBottomDisplayed","songBeatPreferences","firstVisit","currentVisName","playQueue","playQueuePointer","flashingTransitions","hueRange","brightnessRange","beatDelay"].forEach(function(t){if(!a(n.get("huegasm."+t))){var o=n.get("huegasm."+t) -a(e.actions[t+"Changed"])?e.set(t,o):e.send(t+"Changed",o)}}),this.set("oldPlayQueueLength",this.get("playQueue.length")),SC.initialize({client_id:this.get("SC_CLIENT_ID")})},didInsertElement:function(){var e=this +o.on(),this.setProperties({dancer:t,kick:o}),["volume","shuffle","repeat","volumeMuted","threshold","ambienceMode","blackoutMode","playerBottomDisplayed","songBeatPreferences","firstVisit","currentVisName","playQueue","playQueuePointer","flashingTransitions","hueRange","brightnessRange","beatDelay"].forEach(function(t){if(!i(n.get("huegasm."+t))){var o=n.get("huegasm."+t) +i(e.actions[t+"Changed"])?e.set(t,o):e.send(t+"Changed",o)}}),this.set("oldPlayQueueLength",this.get("playQueue.length")),SC.initialize({client_id:this.get("SC_CLIENT_ID")})},didInsertElement:function(){var e=this this._super() var t=this -r("#file-input").on("change",function(){var e=this.files -t.send("handleNewFiles",e),this.value=null}),r(document).on("click",".alert",function(e){r(e.target).addClass("removed")}),r("#beat-container").on("mousedown","#beat-speaker-center-inner",function(e){e.preventDefault()}),r(document).keypress(function(t){32===t.which&&"text"!==t.target.type&&e.send("play")}),this.$().on("drop","#play-list-area",function(t){e.send("dropFiles",t.dataTransfer.files)}),r("#player-area").on("mousewheel",function(t){if(e.get("playQueueNotEmpty")){var n=5 +l("#file-input").on("change",function(){var e=this.files +t.send("handleNewFiles",e),this.value=null}),l(document).on("click",".alert",function(e){l(e.target).addClass("removed")}),l("#beat-container").on("mousedown","#beat-speaker-center-inner",function(e){e.preventDefault()}),l(document).keypress(function(t){32===t.which&&"text"!==t.target.type&&e.send("play")}),this.$().on("drop","#play-list-area",function(t){e.send("dropFiles",t.dataTransfer.files)}),l("#player-area").on("mousewheel",function(t){if(e.get("playQueueNotEmpty")){var n=5 t.deltaY<0&&(n*=-1) var o=e.get("volume")+n -e.send("volumeChanged",o<0?0:o),t.preventDefault()}}),this.get("firstVisit")&&(this.send("handleNewSoundCloudURL","https://soundcloud.com/mrsuicidesheep/candyland-speechless-feat-rkcb"),this.send("handleNewSoundCloudURL","https://soundcloud.com/dillistone/dillistone-lili-n-rude"),this.send("handleNewSoundCloudURL","https://soundcloud.com/mrsuicidesheep/vallis-alps-young-feki-remix"),this.send("handleNewSoundCloudURL","https://soundcloud.com/mrsuicidesheep/andrew-luce-when-to-love-you-feat-chelsea-cutler"),this.send("handleNewSoundCloudURL","https://soundcloud.com/mrsuicidesheep/ahh-ooh-carefree-with-me"),this.send("handleNewSoundCloudURL","https://soundcloud.com/mrsuicidesheep/clozee-red-forest"),this.send("handleNewSoundCloudURL","https://soundcloud.com/mrsuicidesheep/elo-method-subranger-solace"),this.send("handleNewSoundCloudURL","https://soundcloud.com/mrsuicidesheep/90-pounds-of-pete-waited-too-long-feat-devon-baldwin"),this.send("handleNewSoundCloudURL","https://soundcloud.com/mrsuicidesheep/draper-eyes-open"),this.send("handleNewSoundCloudURL","https://soundcloud.com/itspapaya/sunny"),this.send("handleNewSoundCloudURL","https://soundcloud.com/stonesthrow/nxworries-anderson-paak-knxwledge-suede"),this.get("storage").set("huegasm.firstVisit",!1),this.sendAction()),this.get("playerBottomDisplayed")||r("#player-bottom").hide()},actions:{clearPlaylist:function(){this.get("playQueue").clear()},setVisName:function(e){this.set("currentVisName",e)},hideTooltip:function(){r(".bootstrap-tooltip").tooltip("hide")},gotoSCURL:function(e){this.get("playing")&&this.send("play"),this.send("gotoURL",e)},gotoURL:function(e){r(".tooltip").remove(),window.open(e,"_blank")},handleNewSoundCloudURL:function(e){var t=this +e.send("volumeChanged",o<0?0:o),t.preventDefault()}}),this.get("firstVisit")&&(this.send("handleNewSoundCloudURL","https://soundcloud.com/mrsuicidesheep/candyland-speechless-feat-rkcb"),this.send("handleNewSoundCloudURL","https://soundcloud.com/dillistone/dillistone-lili-n-rude"),this.send("handleNewSoundCloudURL","https://soundcloud.com/mrsuicidesheep/vallis-alps-young-feki-remix"),this.send("handleNewSoundCloudURL","https://soundcloud.com/mrsuicidesheep/andrew-luce-when-to-love-you-feat-chelsea-cutler"),this.send("handleNewSoundCloudURL","https://soundcloud.com/mrsuicidesheep/ahh-ooh-carefree-with-me"),this.send("handleNewSoundCloudURL","https://soundcloud.com/mrsuicidesheep/clozee-red-forest"),this.send("handleNewSoundCloudURL","https://soundcloud.com/mrsuicidesheep/elo-method-subranger-solace"),this.send("handleNewSoundCloudURL","https://soundcloud.com/mrsuicidesheep/90-pounds-of-pete-waited-too-long-feat-devon-baldwin"),this.send("handleNewSoundCloudURL","https://soundcloud.com/mrsuicidesheep/draper-eyes-open"),this.send("handleNewSoundCloudURL","https://soundcloud.com/itspapaya/sunny"),this.send("handleNewSoundCloudURL","https://soundcloud.com/stonesthrow/nxworries-anderson-paak-knxwledge-suede"),this.get("storage").set("huegasm.firstVisit",!1),this.sendAction()),this.get("playerBottomDisplayed")||l("#player-bottom").hide()},actions:{clearPlaylist:function(){this.get("playQueue").clear()},setVisName:function(e){this.set("currentVisName",e)},hideTooltip:function(){l(".bootstrap-tooltip").tooltip("hide")},gotoSCURL:function(e){this.get("playing")&&this.send("play"),this.send("gotoURL",e)},gotoURL:function(e){l(".tooltip").remove(),window.open(e,"_blank")},handleNewSoundCloudURL:function(e){var t=this e&&SC.resolve(e).then(function(e){var n=function e(n){if("user"===n.kind)t.get("notify").alert({html:t.get("scUserNotSupportedHtml")}) else if("track"===n.kind)if(!0===n.streamable){var s=null -n.artwork_url?s=n.artwork_url.replace("large","t67x67"):n.user.avatar_url&&(s=n.user.avatar_url),r.get(s).done(function(){t.get("playQueue").pushObject({url:n.stream_url+"?client_id="+t.get("SC_CLIENT_ID"),fileName:n.title+" - "+n.user.username,artist:n.user.username,scUrl:n.permalink_url,title:n.title,picture:s})}).fail(function(){t.get("playQueue").pushObject({url:n.stream_url+"?client_id="+t.get("SC_CLIENT_ID"),fileName:n.title+" - "+n.user.username,artist:n.user.username,scUrl:n.permalink_url,title:n.title})})}else o.push(n.title) +n.artwork_url?s=n.artwork_url.replace("large","t67x67"):n.user.avatar_url&&(s=n.user.avatar_url),l.get(s).done(function(){t.get("playQueue").pushObject({url:n.stream_url+"?client_id="+t.get("SC_CLIENT_ID"),fileName:n.title+" - "+n.user.username,artist:n.user.username,scUrl:n.permalink_url,title:n.title,picture:s})}).fail(function(){t.get("playQueue").pushObject({url:n.stream_url+"?client_id="+t.get("SC_CLIENT_ID"),fileName:n.title+" - "+n.user.username,artist:n.user.username,scUrl:n.permalink_url,title:n.title})})}else o.push(n.title) else"playlist"===n.kind&&(!0===n.streamable?n.tracks.forEach(e):o.push(n.title))},o=[] -e instanceof Array?e.forEach(n):n(e),o.length>0&&t.get("notify").alert({html:t.get("notStreamableHtml")(o)}),-1===t.get("playQueuePointer")&&(t.get("firstVisit")?t.send("goToSong",0):t.send("next"))},function(){t.get("notify").alert({html:t.get("urlNotFoundHtml")(e)})}),this.set("isShowingAddSoundCloudModal",!1)},toggleIsShowingAddSoundCloudModal:function(){this.toggleProperty("isShowingAddSoundCloudModal")},slideTogglePlayerBottom:function(){var e=this.$("#player-bottom") -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"),i=this.get("playQueue") -if(s.audio&&this.clearCurrentAudio(!0),!a(i[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(),this.get("dancer").audio&&this.clearCurrentAudio(!0)},playerAreaPlay:function(){i(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"),i=this.get("lightsData") +e instanceof Array?e.forEach(n):n(e),o.length>0&&t.get("notify").alert({html:t.get("notStreamableHtml")(o)}),-1===t.get("playQueuePointer")&&(t.get("firstVisit")?t.send("goToSong",0):t.send("next"))},function(){t.get("notify").alert({html:t.get("urlNotFoundHtml")(e)})}),this.set("isShowingAddSoundCloudModal",!1)},toggleIsShowingAddSoundCloudModal:function(){this.toggleProperty("isShowingAddSoundCloudModal")},toggleIsShowingAddUrlModal:function(){this.toggleProperty("isShowingAddUrlModal")},slideTogglePlayerBottom:function(){var e=this.$("#player-bottom") +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 r=new Audio +r.src=this.get("playQueue")[e].url,r.crossOrigin="anonymous",r.oncanplay=function(){o.set("timeTotal",Math.floor(r.duration)),o.set("soundCloudFuckUps",0)},r.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"))},r.ontimeupdate=function(){o.set("timeElapsed",Math.floor(r.currentTime))},r.onended=function(){o.send("next")},s.load(r,1),this.set("playQueuePointer",e),this.loadSongBeatPreferences(),t&&this.send("play"),n&&p(this,function(){l(".track"+e).velocity("scroll",{container:l("#play-list-area"),duration:200})})}},removeAudio:function(e){this.get("playQueue").removeAt(e),l("body .tooltip").remove(),this.get("dancer").audio&&this.clearCurrentAudio(!0)},playerAreaPlay:function(){a(l("#player-controls:hover"))&&-1!==this.get("playQueuePointer")&&(this.send("play"),l("#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 a=this.get("preMusicLightsDataCache"),l=function(e){r.ajax(t.get("apiURL")+"/lights/"+e+"/state",{data:JSON.stringify({on:a[e].state.on,hue:a[e].state.hue,bri:a[e].state.bri}),contentType:"application/json",type:"PUT"})} -for(var p in i)i.hasOwnProperty(p)&&c(this,l,p,1e3) +var i=this.get("preMusicLightsDataCache"),r=function(e){l.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,r,p,1e3) e||this.set("timeElapsed",Math.floor(n.getTime()))}else{var u=this.get("timeTotal") if(this.get("volumeMuted")?n.setVolume(0):n.setVolume(this.get("volume")/100),this.get("timeElapsed")===u&&0!==u)return void this.send("next",!0) -r(window).trigger("resize"),this.set("preMusicLightsDataCache",i),n.play()}this.set("pauseLightUpdates",!s),this.toggleProperty("playing")}},volumeChanged:function(e){this.changePlayerControl("volume",e),this.get("playing")&&this.get("dancer").setVolume(e/100),this.get("volume")>0&&this.get("volumeMuted")&&this.changePlayerControl("volumeMuted",!1)},next:function(e){var t=this.get("playQueuePointer"),n=this.get("playQueue"),o=t+1,s=this.get("repeat"),i=this.get("shuffle") +l(window).trigger("resize"),this.set("preMusicLightsDataCache",a),n.play()}this.set("pauseLightUpdates",!s),this.toggleProperty("playing")}},volumeChanged:function(e){this.changePlayerControl("volume",e),this.get("playing")&&this.get("dancer").setVolume(e/100),this.get("volume")>0&&this.get("volumeMuted")&&this.changePlayerControl("volumeMuted",!1)},next:function(e){var t=this.get("playQueuePointer"),n=this.get("playQueue"),o=t+1,s=this.get("repeat"),a=this.get("shuffle") if(2===s)o=-1===t&&n.length>0?0:t -else if(i){var a=this.get("shufflePlayed") -if(a.length===n.length)return a.clear(),void this.send("play",!0) -do{o=Math.floor(Math.random()*n.length)}while(a.includes(n[o].url)) -a.pushObject(n[o].url)}else if(o>n.length-1){if(1!==s&&!e)return void this.send("play",!0) +else if(a){var i=this.get("shufflePlayed") +if(i.length===n.length)return i.clear(),void this.send("play",!0) +do{o=Math.floor(Math.random()*n.length)}while(i.includes(n[o].url)) +i.pushObject(n[o].url)}else if(o>n.length-1){if(1!==s&&!e)return void this.send("play",!0) o%=n.length}this.send("goToSong",o,!0,!0)},previous:function(){if(this.get("timeElapsed")>5)this.send("seekChanged",0) else{var e=this.get("playQueuePointer"),t=this.get("playQueue") -if(this.get("shuffle")&&!a(t[e])){var n=this.get("shufflePlayed"),o=this.get("shufflePlayed").indexOf(t[e].url),s=0 +if(this.get("shuffle")&&!i(t[e])){var n=this.get("shufflePlayed"),o=this.get("shufflePlayed").indexOf(t[e].url),s=0 n.length>0&&-1!==o&&((e=o-1)<0&&(e=n.length-1),t.some(function(t){return t.url===n[e]?(e=s,!0):(s++,!1)}))}else--e<0&&(e=t.length-1) this.send("goToSong",e,!0,!0)}},seekChanged:function(e){var t=this.get("dancer") -t.audio&&(t.audio.currentTime=Math.floor(this.get("timeTotal")*e/100))},volumeMutedChanged:function(e){var t=this.get("dancer"),n=a(e)?!this.get("volumeMuted"):e -this.changePlayerControl("volumeMuted",n),this.get("playing")&&(n?t.setVolume(0):t.setVolume(this.get("volume")/100))},addLocalAudio:function(){r("#file-input").click()},shuffleChanged:function(e){this.changePlayerControl("shuffle",a(e)?!this.get("shuffle"):e)},repeatChanged:function(e){this.changePlayerControl("repeat",a(e)?(this.get("repeat")+1)%3:e)},playerBottomDisplayedChanged:function(e){this.changePlayerControl("playerBottomDisplayed",e)},thresholdChanged:function(e){this.changePlayerControl("threshold",e,!0)},brightnessRangeChanged:function(e){this.changePlayerControl("brightnessRange",e)},hueRangeChanged:function(e){this.changePlayerControl("hueRange",e)},playQueuePointerChanged:function(e){this.send("goToSong",e,!1,!0)},clickSpeaker:function(){this.simulateKick(1)},dropFiles:function(e){this.setProperties({dragging:!1,draggingOverPlayListArea:!1}),this.send("handleNewFiles",e)},playerListAreaDragOver:function(){this.set("draggingOverPlayListArea",!0)},playerListAreaDragLeave:function(){this.set("draggingOverPlayListArea",!1)},handleNewFiles:function(e){var t=this,n=this.get("playQueue"),o=function(){var e=ID3.getAllTags("local"),o=null -if(e.picture){for(var s="",i=0;iSoundCloud user URLs are not supported.',tooManySoundCloudFuckUps:'',notStreamableHtml:function(e){return'"},urlNotFoundHtml:function(e){return'"},failedToPlayFileHtml:function(e){return'"},failedToDecodeFileHtml:function(e){return'"},scUrl:o("playQueuePointer","playQueue.[]",function(){var e=null,t=this.get("playQueue")[this.get("playQueuePointer")] +for(var s in e)if(e.hasOwnProperty(s)){var a=e[s];(a.type.startsWith("audio")||a.type.startsWith("video"))&&ID3.loadTags("local",o.bind(a),{dataReader:new FileAPIReader(a),tags:["title","artist","album","track","picture"]})}},toggleDimmer:function(){this.sendAction("toggleDimmer")}}})}),define("huegasm/pods/components/music-tab/mixins/helpers",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}) +var t=Ember.Mixin,n=Ember.observer,o=Ember.computed,s=Ember.isNone,a=Ember.run,i=Ember.$,l=Ember.inject,r=Ember.on,c=Ember.A +e.default=t.create({classNames:["col-sm-10","col-sm-offset-1","col-xs-12"],classNameBindings:["active::hidden"],elementId:"music-tab",dancer:null,notify:l.service(),beatOptions:{threshold:{range:{min:0,max:.5},step:.01,defaultValue:.3,pips:{mode:"values",values:[0,.5],density:10,format:{to:function(e){return e=0===e?"High":"Low"},from:function(e){return e}}}},hueRange:{range:{min:0,max:65535},step:1,defaultValue:.3,pips:{mode:"values",values:[0,25500,46920,65535],density:10,format:{to:function(e){return e=0===e||65535===e?"Red":25500===e?"Green":"Blue"},from:function(e){return e}}}},brightnessRange:{range:{min:1,max:254},step:1,defaultValue:0,pips:{mode:"values",values:[1,63,127,190,254],density:10,format:{to:function(e){return 63===e?e=25:127===e?e=50:190===e?e=75:254===e&&(e=100),e},from:function(e){return e}}}}},beatDelay:0,threshold:.3,hueRange:[0,65535],brightnessRange:[1,254],oldThreshold:null,playlistColumns:[100],playQueuePointer:-1,playQueue:c(),timeElapsed:0,timeTotal:0,lastLightBopIndex:0,colorLoopOn:!1,ambienceMode:!1,blackoutMode:!1,playerBottomDisplayed:!0,dragging:!1,draggingOverPlayListArea:!1,dragLeaveTimeoutHandle:null,isShowingAddSoundCloudModal:!1,isShowingUrlModal:!1,flashingTransitions:!1,repeat:0,shuffle:!1,volumeMuted:!1,volume:100,paused:!1,playing:!1,songBeatPreferences:{},usingBeatPreferences:!1,oldBeatPrefCache:null,storage:null,firstVisit:!0,soundCloudFuckUps:0,maxSoundCloudFuckUps:3,shufflePlayed:[],filledConnect:[!0,!1],hueRangeConnect:[!1,!0,!1],SC_CLIENT_ID:"aeec0034f58ecd85c2bd1deaecc41594",scUserNotSupportedHtml:'',tooManySoundCloudFuckUps:'',notStreamableHtml:function(e){return'"},urlNotFoundHtml:function(e){return'"},failedToPlayFileHtml:function(e){return'"},failedToDecodeFileHtml:function(e){return'"},scUrl:o("playQueuePointer","playQueue.[]",function(){var e=null,t=this.get("playQueue")[this.get("playQueuePointer")] return t&&t.scUrl&&(e=t.scUrl),e}),playQueueEmpty:o.empty("playQueue"),playQueueNotEmpty:o.notEmpty("playQueue"),playQueueMultiple:o("playQueue.[]",function(){return this.get("playQueue").length>1}),seekPosition:o("timeElapsed","timeTotal",function(){var e=this.get("timeTotal"),t=this.get("timeElapsed") return 0===e?0:t/e*100}),largeArtworkPic:o("playQueuePointer","currentVisName",function(){var e="",t=this.get("currentVisName"),n=this.get("playQueuePointer"),o=this.get("playQueue") -if(-1!==n&&"None"===t){var i=o[n] -s(i.picture)||(e=i.picture,i.scUrl&&(e=e.replace("67x67","500x500")))}return e}),repeatIcon:o("repeat",function(){return 2===this.get("repeat")?"repeat-one":"repeat"}),playingIcon:o("playing",function(){return this.get("playing")?"pause":this.get("timeElapsed")===this.get("timeTotal")&&0!==this.get("timeTotal")?"replay":"play-arrow"}),playListAreaClass:o("dragging","draggingOverPlayListArea","dimmerOn",function(){var e="pointer" +if(-1!==n&&"None"===t){var a=o[n] +s(a.picture)||(e=a.picture,a.scUrl&&(e=e.replace("67x67","500x500")))}return e}),repeatIcon:o("repeat",function(){return 2===this.get("repeat")?"repeat-one":"repeat"}),playingIcon:o("playing",function(){return this.get("playing")?"pause":this.get("timeElapsed")===this.get("timeTotal")&&0!==this.get("timeTotal")?"replay":"play-arrow"}),playListAreaClass:o("dragging","draggingOverPlayListArea","dimmerOn",function(){var e="pointer" return this.get("dragging")&&(e+=" drag-here-highlight"),this.get("draggingOverPlayListArea")&&(e+=" dragging-over"),this.get("dimmerOn")&&(e+=" dimmerOn"),e}),dimmerOnClass:o("dimmerOn",function(){return this.get("dimmerOn")?"dimmerOn":null}),volumeMutedClass:o("volumeMuted",function(){var e="player-control-icon volumeButton" return this.get("volumeMuted")&&(e+=" active"),e}),repeatClass:o("repeat",function(){return 0!==this.get("repeat")?"player-control-icon active":"player-control-icon"}),shuffleClass:o("shuffle",function(){return this.get("shuffle")?"player-control-icon active":"player-control-icon"}),volumeIcon:o("volumeMuted","volume",function(){var e=this.get("volume") -return this.get("volumeMuted")?"volume-off":e>=70?"volume-up":e>10?"volume-down":"volume-mute"}),beatDetectionAreaArrowIcon:o("playerBottomDisplayed",function(){return this.get("playerBottomDisplayed")?"keyboard-arrow-up":"keyboard-arrow-down"}),timeElapsedTxt:o("timeElapsed",function(){return this.formatTime(this.get("timeElapsed"))}),timeTotalTxt:o("timeTotal",function(){return this.formatTime(this.get("timeTotal"))}),onPlayQueueChange:n("playQueue.length",function(){var e=this,t=this.get("playQueue.length") -t>this.get("oldPlayQueueLength")&&i.once(this,function(){i.next(e,function(){a(".track"+(t-1)).velocity("scroll",{container:a("#play-list-area"),duration:200})})}),this.set("oldPlayQueueLength",t)}),playerAreaClickIcon:o("playing",function(){return this.get("playing")?"play-arrow":"pause"}),onOptionChange:n("flashingTransitions","playQueue.[]","playQueuePointer","ambienceMode","blackoutMode",function(e,t){var n=this +return this.get("volumeMuted")?"volume-off":e>=70?"volume-up":e>10?"volume-down":"volume-mute"}),beatDetectionAreaArrowIcon:o("playerBottomDisplayed",function(){return this.get("playerBottomDisplayed")?"keyboard-arrow-up":"keyboard-arrow-down"}),timeElapsedTxt:o("timeElapsed",function(){return this.formatTime(this.get("timeElapsed"))}),timeTotalTxt:o("timeTotal",function(){var e=this.get("timeTotal") +return this.formatTime(e===1/0?null:e)}),onPlayQueueChange:n("playQueue.length",function(){var e=this,t=this.get("playQueue.length") +t>this.get("oldPlayQueueLength")&&a.once(this,function(){a.next(e,function(){i(".track"+(t-1)).velocity("scroll",{container:i("#play-list-area"),duration:200})})}),this.set("oldPlayQueueLength",t)}),playerAreaClickIcon:o("playing",function(){return this.get("playing")?"play-arrow":"pause"}),onOptionChange:n("flashingTransitions","playQueue.[]","playQueuePointer","ambienceMode","blackoutMode",function(e,t){var n=this t=t.replace(".[]","") var o=this.get(t) if("playQueue"===t)o=o.filter(function(e){return!e.url.startsWith("blob:")}) -else if("blackoutMode"===t){var i={on:!0} -o&&(this.set("ambienceMode",!1),i.on=!1),this.get("playing")&&this.get("activeLights").forEach(function(e){a.ajax(n.get("apiURL")+"/lights/"+e+"/state",{data:JSON.stringify(i),contentType:"application/json",type:"PUT"})})}else o&&"ambienceMode"===t&&this.set("blackoutMode",!1) -s(o)||this.get("storage").set("huegasm."+t,o)}),onRepeatChange:l("init",n("repeat",function(){var e="Repeat all" -1===this.get("repeat")?e="Repeat one":2===this.get("repeat")&&(e="Repeat off"),this.changeTooltipText("repeat",e)})),onShuffleChange:l("init",n("shuffle",function(){var e="Shuffle" -this.get("shuffle")&&(this.get("shufflePlayed").clear(),e="Unshuffle"),this.changeTooltipText("shuffle",e)})),onVolumeMutedChange:l("init",n("volumeMuted",function(){var e="Mute",t=this.get("volumeMuted"),n=this.get("dancer"),o=0 -t?(e="Unmute",o=0):o=this.get("volume")/100,this.get("playing")&&n.setVolume(o),this.changeTooltipText("volumeMuted",e)})),onPrevChange:l("init",n("timeElapsed","playQueueNotEmpty","playQueue.[]",function(){if(this.get("playQueueNotEmpty")){var e="Previous";(this.get("timeElapsed")>5||1===this.get("playQueue").length)&&(e="Replay"),this.changeTooltipText("prev",e)}})),onPlayingChange:l("init",n("playing",function(){var e="Play" -this.get("playing")?e="Pause":this.get("timeElapsed")===this.get("timeTotal")&&0!==this.get("timeTotal")&&(e="Replay"),this.changeTooltipText("playing",e)})),changeTooltipText:function(e,t){a("#"+e+"Tooltip + .tooltip .tooltip-inner").html(t),a("#"+e+"Tooltip").attr("data-original-title",t),s(this.get(e+"TooltipTxt"))&&this.set(e+"TooltipTxt",t)},formatTime:function(e){return this.pad(Math.floor(e/60),2)+":"+this.pad(e%60,2)},pad:function(e,t){return("000000000"+e).substr(-t)}})}),define("huegasm/pods/components/music-tab/mixins/visualizer",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}) +else if("blackoutMode"===t){var a={on:!0} +o&&(this.set("ambienceMode",!1),a.on=!1),this.get("playing")&&this.get("activeLights").forEach(function(e){i.ajax(n.get("apiURL")+"/lights/"+e+"/state",{data:JSON.stringify(a),contentType:"application/json",type:"PUT"})})}else o&&"ambienceMode"===t&&this.set("blackoutMode",!1) +s(o)||this.get("storage").set("huegasm."+t,o)}),onRepeatChange:r("init",n("repeat",function(){var e="Repeat all" +1===this.get("repeat")?e="Repeat one":2===this.get("repeat")&&(e="Repeat off"),this.changeTooltipText("repeat",e)})),onShuffleChange:r("init",n("shuffle",function(){var e="Shuffle" +this.get("shuffle")&&(this.get("shufflePlayed").clear(),e="Unshuffle"),this.changeTooltipText("shuffle",e)})),onVolumeMutedChange:r("init",n("volumeMuted",function(){var e="Mute",t=this.get("volumeMuted"),n=this.get("dancer"),o=0 +t?(e="Unmute",o=0):o=this.get("volume")/100,this.get("playing")&&n.setVolume(o),this.changeTooltipText("volumeMuted",e)})),onPrevChange:r("init",n("timeElapsed","playQueueNotEmpty","playQueue.[]",function(){if(this.get("playQueueNotEmpty")){var e="Previous";(this.get("timeElapsed")>5||1===this.get("playQueue").length)&&(e="Replay"),this.changeTooltipText("prev",e)}})),onPlayingChange:r("init",n("playing",function(){var e="Play" +this.get("playing")?e="Pause":this.get("timeElapsed")===this.get("timeTotal")&&0!==this.get("timeTotal")&&(e="Replay"),this.changeTooltipText("playing",e)})),changeTooltipText:function(e,t){i("#"+e+"Tooltip + .tooltip .tooltip-inner").html(t),i("#"+e+"Tooltip").attr("data-original-title",t),s(this.get(e+"TooltipTxt"))&&this.set(e+"TooltipTxt",t)},formatTime:function(e){return null!==e?this.pad(Math.floor(e/60),2)+":"+this.pad(e%60,2):e},pad:function(e,t){return("000000000"+e).substr(-t)}})}),define("huegasm/pods/components/music-tab/mixins/visualizer",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}) var t=Ember.Mixin,n=Ember.observer,o=Ember.$ e.default=t.create({currentVisName:"None",visNames:["None","Bars","Wave"],onCurrentVisNameChange:n("currentVisName",function(){var e=this.get("currentVisName") if("None"===e){var t=o("#visualization")[0] -t.getContext("2d").clearRect(0,0,t.width,t.height)}this.get("storage").set("huegasm.currentVisName",e)}),didInsertElement:function(){var e=this,t=this.get("dancer"),n=o("#visualization")[0],s=o("#player-area"),i=n.getContext("2d"),a=s.height(),r=void 0 -n.height=a -var l=function(){r=s.width(),n.width=r} -l(),o(window).on("resize",l),t.bind("update",function(){var n=e.get("currentVisName"),o=i.createLinearGradient(0,0,0,a),s=document.hidden||document.msHidden||document.webkitHidden||document.mozHidden -if("None"!==n&&!s&&e.get("active"))if(i.clearRect(0,0,r,a),"Wave"===n){o.addColorStop(.6,"white"),o.addColorStop(0,"#0036FA"),i.lineWidth=1,i.strokeStyle=o -var l=t.getWaveform() -i.beginPath(),i.moveTo(0,a/2) -for(var c=0,p=l.length;ci.clientHeight&&(t(i,{position:"fixed",width:"100%",top:-s+"px"}),t(e,{overflowY:"scroll"})),i.clientWidth\n
\n ') -return i.appendChild(a[0]),a.on("wheel",t),a.on("touchmove",t),s.on("keydown",e),function(){a.off("wheel"),a.off("touchmove"),a[0].parentNode.removeChild(a[0]),s.off("keydown",e),delete o.disableScrollAround._enableScrolling}}() -return o.disableScrollAround._enableScrolling=function(){--o.disableScrollAround._count||(a(),r(),delete o.disableScrollAround._enableScrolling)}},enableScrolling:function(){var e=this.disableScrollAround._enableScrolling +var a=s.get(0).body,i=function(){var e=a.parentNode,n=e.getAttribute("style")||"",o=a.getAttribute("style")||"",s=a.scrollTop+a.parentElement.scrollTop,i=a.clientWidth +return a.scrollHeight>a.clientHeight&&(t(a,{position:"fixed",width:"100%",top:-s+"px"}),t(e,{overflowY:"scroll"})),a.clientWidth\n
\n ') +return a.appendChild(i[0]),i.on("wheel",t),i.on("touchmove",t),s.on("keydown",e),function(){i.off("wheel"),i.off("touchmove"),i[0].parentNode.removeChild(i[0]),s.off("keydown",e),delete o.disableScrollAround._enableScrolling}}() +return o.disableScrollAround._enableScrolling=function(){--o.disableScrollAround._count||(i(),l(),delete o.disableScrollAround._enableScrolling)}},enableScrolling:function(){var e=this.disableScrollAround._enableScrolling e&&e()},supplant:function(e,t,n){return n=n||/\{([^\{\}]*)\}/g,e.replace(n,function(e,n){var o=n.split("."),s=t -try{for(var i in o)o.hasOwnProperty(i)&&(s=s[o[i]])}catch(t){s=e}return"string"==typeof s||"number"==typeof s?s:e})},nextTick:function(e,t,n,o,s){for(;!s&&n',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+104f7cd1"}) +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+e838811a"}) diff --git a/assets/vendor-3bbb22e25145c0f1c3f8f1c6105bfc35.js b/assets/vendor-272cdddc6b5a4e227837f5f4f680033f.js similarity index 95% rename from assets/vendor-3bbb22e25145c0f1c3f8f1c6105bfc35.js rename to assets/vendor-272cdddc6b5a4e227837f5f4f680033f.js index 121b89e..4cab75c 100644 --- a/assets/vendor-3bbb22e25145c0f1c3f8f1c6105bfc35.js +++ b/assets/vendor-272cdddc6b5a4e227837f5f4f680033f.js @@ -64,10 +64,10 @@ return t.value=f,t.done=!0,t} return r.next=r}}return{next:h}}function h(){return{value:f,done:!0}}var f,m=Object.prototype.hasOwnProperty,g="function"==typeof Symbol?Symbol:{},v=g.iterator||"@@iterator",b=g.toStringTag||"@@toStringTag",y="object"==typeof module,w=e.regeneratorRuntime if(w)y&&(module.exports=w) else{(w=e.regeneratorRuntime=y?module.exports:{}).wrap=t -var _="suspendedStart",x="suspendedYield",E="executing",C="completed",T={},S=o.prototype=r.prototype -i.prototype=S.constructor=o,o.constructor=i,o[b]=i.displayName="GeneratorFunction",w.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor -return!!t&&(t===i||"GeneratorFunction"===(t.displayName||t.name))},w.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,o):(e.__proto__=o,b in e||(e[b]="GeneratorFunction")),e.prototype=Object.create(S),e},w.awrap=function(e){return new a(e)},s(l.prototype),w.async=function(e,n,r,i){var o=new l(t(e,n,r,i)) -return w.isGeneratorFunction(n)?o:o.next().then(function(e){return e.done?e.value:o.next()})},s(S),S[v]=function(){return this},S[b]="Generator",S.toString=function(){return"[object Generator]"},w.keys=function(e){var t=[] +var _="suspendedStart",x="suspendedYield",E="executing",C="completed",T={},O=o.prototype=r.prototype +i.prototype=O.constructor=o,o.constructor=i,o[b]=i.displayName="GeneratorFunction",w.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor +return!!t&&(t===i||"GeneratorFunction"===(t.displayName||t.name))},w.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,o):(e.__proto__=o,b in e||(e[b]="GeneratorFunction")),e.prototype=Object.create(O),e},w.awrap=function(e){return new a(e)},s(l.prototype),w.async=function(e,n,r,i){var o=new l(t(e,n,r,i)) +return w.isGeneratorFunction(n)?o:o.next().then(function(e){return e.done?e.value:o.next()})},s(O),O[v]=function(){return this},O[b]="Generator",O.toString=function(){return"[object Generator]"},w.keys=function(e){var t=[] for(var n in e)t.push(n) return t.reverse(),function n(){for(;t.length;){var r=t.pop() if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},w.values=d,p.prototype={constructor:p,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=f,this.done=!1,this.delegate=null,this.tryEntries.forEach(c),!e)for(var t in this)"t"===t.charAt(0)&&m.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=f)},stop:function(){this.done=!0 @@ -99,10 +99,10 @@ if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ke,"-$&").toLowerCase(),"st return n}function h(e,t,n,r){var i,o=1,s=20,a=r?function(){return r.cur()}:function(){return ae.css(e,t,"")},l=a(),u=n&&n[3]||(ae.cssNumber[t]?"":"px"),c=(ae.cssNumber[t]||"px"!==u&&+l)&&Me.exec(ae.css(e,t)) if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1 do{c/=o=o||".5",ae.style(e,t,c+u)}while(o!==(o=a()/l)&&1!==o&&--s)}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}function f(e){var t,n=e.ownerDocument,r=e.nodeName,i=Le[r] -return i||(t=n.body.appendChild(n.createElement(r)),i=ae.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),Le[r]=i,i)}function m(e,t){for(var n,r,i=[],o=0,s=e.length;o-1)i&&i.push(o) @@ -113,15 +113,15 @@ for(a in t)x(e,a,n,r,t[a],o) return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=w else if(!i)return e return 1===o&&(s=i,(i=function(e){return ae().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=ae.guid++)),e.each(function(){ae.event.add(this,t,i,r,n)})}function E(e,t){return i(e,"table")&&i(11!==t.nodeType?t:t.firstChild,"tr")?ae(">tbody",e)[0]||e:e}function C(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function T(e){var t=$e.exec(e.type) -return t?e.type=t[1]:e.removeAttribute("type"),e}function S(e,t){var n,r,i,o,s,a,l,u -if(1===t.nodeType){if(Oe.hasData(e)&&(o=Oe.access(e),s=Oe.set(t,o),u=o.events)){delete s.handle,s.events={} -for(i in u)for(n=0,r=u[i].length;n1&&"string"==typeof f&&!se.checkClone&&Ge.test(f))return e.each(function(n){var o=e.eq(n) m&&(t[0]=f.call(this,n,o.html())),P(o,t,r,i)}) if(d&&(o=b(t,e[0].ownerDocument,!1,e,i),s=o.firstChild,1===o.childNodes.length&&(o=s),s||i)){for(l=(a=ae.map(g(o,"script"),C)).length;p_.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[] +c=u.join(","),d=ge.test(e)&&p(t.parentNode)||t}if(c)try{return Q.apply(n,d.querySelectorAll(c)),n}catch(e){}finally{a===F&&t.removeAttribute("id")}}}return O(e.replace(oe,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>_.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[] return e}function r(e){return e[F]=!0,e}function i(e){var t=N.createElement("fieldset") try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)_.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex if(r)return r @@ -195,9 +195,9 @@ return s}function v(e,n,i,o,s,a){return o&&!o[F]&&(o=v(o)),s&&!s[F]&&(s=v(s,a)), return r}(n||"*",l.nodeType?[l]:l,[]),b=!e||!r&&n?v:g(v,h,e,l,u),y=i?s||(r?e:m||o)?[]:a:b 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]]=!(b[f[p]]=d)) 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!==O)||((t=n).nodeType?l(e,n,r):u(e,n,r)) +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 @@ -260,12 +260,12 @@ if(c)return n?0:c.slice(0) for(a=e,l=[],u=_.preFilter;a;){r&&!(i=se.exec(a))||(i&&(a=a.slice(i[0].length)||a),l.push(o=[])),r=!1,(i=ae.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(oe," ")}),a=a.slice(r.length)) for(s in _.filter)!(i=pe[s].exec(a))||u[s]&&!(i=u[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length)) if(!r)break}return n?a.length:a?t.error(e):V(e,l).slice(0)},T=t.compile=function(e,n){var i,o=[],s=[],a=U[e+" "] -if(!a){for(n||(n=C(e)),i=n.length;i--;)(a=b(n[i]))[F]?o.push(a):s.push(a);(a=U(e,function(e,n){var i=n.length>0,o=e.length>0,s=function(r,s,a,l,u){var c,p,d,h=0,f="0",m=r&&[],v=[],b=O,y=r||o&&_.find.TAG("*",u),w=H+=null==b?1:Math.random()||.1,x=y.length -for(u&&(O=s===N||s||u);f!==x&&null!=(c=y[f]);f++){if(o&&c){for(p=0,s||c.ownerDocument===N||(k(c),a=!R);d=e[p++];)if(d(c,s||N,a)){l.push(c) +if(!a){for(n||(n=C(e)),i=n.length;i--;)(a=b(n[i]))[F]?o.push(a):s.push(a);(a=U(e,function(e,n){var i=n.length>0,o=e.length>0,s=function(r,s,a,l,u){var c,p,d,h=0,f="0",m=r&&[],v=[],b=S,y=r||o&&_.find.TAG("*",u),w=H+=null==b?1:Math.random()||.1,x=y.length +for(u&&(S=s===N||s||u);f!==x&&null!=(c=y[f]);f++){if(o&&c){for(p=0,s||c.ownerDocument===N||(k(c),a=!R);d=e[p++];)if(d(c,s||N,a)){l.push(c) break}u&&(H=w)}i&&((c=!d&&c)&&h--,r&&m.push(c))}if(h+=f,i&&f!==h){for(p=0;d=n[p++];)d(m,v,s,a) if(r){if(h>0)for(;f--;)m[f]||v[f]||(v[f]=G.call(l)) -v=g(v)}Q.apply(l,v),u&&!r&&v.length>0&&h+n.length>1&&t.uniqueSort(l)}return u&&(H=w,O=b),m} -return i?r(s):s}(s,o))).selector=e}return a},S=t.select=function(e,t,n,r){var i,o,s,a,l,u="function"==typeof e&&e,c=!r&&C(e=u.selector||e) +v=g(v)}Q.apply(l,v),u&&!r&&v.length>0&&h+n.length>1&&t.uniqueSort(l)}return u&&(H=w,S=b),m} +return i?r(s):s}(s,o))).selector=e}return a},O=t.select=function(e,t,n,r){var i,o,s,a,l,u="function"==typeof e&&e,c=!r&&C(e=u.selector||e) if(n=n||[],1===c.length){if((o=c[0]=c[0].slice(0)).length>2&&"ID"===(s=o[0]).type&&9===t.nodeType&&R&&_.relative[o[1].type]){if(!(t=(_.find.ID(s.matches[0].replace(ve,be),t)||[])[0]))return n u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=pe.needsContext.test(e)?0:o.length;i--&&(s=o[i],!_.relative[a=s.type]);)if((l=_.find[a])&&(r=l(s.matches[0].replace(ve,be),ge.test(o[0].type)&&p(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&h(o)))return Q.apply(n,r),n break}}return(u||T(e,c))(r,t,!R,n,!t||ge.test(e)&&p(t.parentNode)||t),n},w.sortStable=F.split("").sort(W).join("")===F,w.detectDuplicates=!!A,k(),w.sortDetached=i(function(e){return 1&e.compareDocumentPosition(N.createElement("fieldset"))}),i(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&i(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(Z,function(e,t,n){var r @@ -316,28 +316,28 @@ ae.fn.ready=function(e){return Ce.then(e).catch(function(e){ae.readyException(e) var Te=function(e,t,n,r,i,o,s){var a=0,l=e.length,u=null==n if("object"===ae.type(n)){i=!0 for(a in n)Te(e,t,a,n[a],!0,o,s)}else if(void 0!==r&&(i=!0,ae.isFunction(r)||(s=!0),u&&(s?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(ae(e),n)})),t))for(;a1,null,!0)},removeData:function(e){return this.each(function(){Pe.remove(this,e)})}}),ae.extend({queue:function(e,t,n){var r -if(e)return t=(t||"fx")+"queue",r=Oe.get(e,t),n&&(!r||Array.isArray(n)?r=Oe.access(e,t,ae.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx" +if(e)return t=(t||"fx")+"queue",r=Se.get(e,t),n&&(!r||Array.isArray(n)?r=Se.access(e,t,ae.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx" var n=ae.queue(e,t),r=n.length,i=n.shift(),o=ae._queueHooks(e,t),s=function(){ae.dequeue(e,t)} "inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks" -return Oe.get(e,n)||Oe.access(e,n,{empty:ae.Callbacks("once memory").add(function(){Oe.remove(e,[t+"queue",n])})})}}),ae.fn.extend({queue:function(e,t){var n=2 +return Se.get(e,n)||Se.access(e,n,{empty:ae.Callbacks("once memory").add(function(){Se.remove(e,[t+"queue",n])})})}}),ae.fn.extend({queue:function(e,t){var n=2 return"string"!=typeof e&&(t=e,e="fx",n--),arguments.lengthx",se.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue})() var ze=$.documentElement,Ve=/^key/,Ue=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,We=/^([^.]*)(?:\.(.+)|)/ -ae.event={global:{},add:function(e,t,n,r,i){var o,s,a,l,u,c,p,d,h,f,m,g=Oe.get(e) -if(g)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&ae.find.matchesSelector(ze,i),n.guid||(n.guid=ae.guid++),(l=g.events)||(l=g.events={}),(s=g.handle)||(s=g.handle=function(t){return void 0!==ae&&ae.event.triggered!==t.type?ae.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(xe)||[""]).length;u--;)h=m=(a=We.exec(t[u])||[])[1],f=(a[2]||"").split(".").sort(),h&&(p=ae.event.special[h]||{},h=(i?p.delegateType:p.bindType)||h,p=ae.event.special[h]||{},c=ae.extend({type:h,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ae.expr.match.needsContext.test(i),namespace:f.join(".")},o),(d=l[h])||((d=l[h]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(e,r,f,s)||e.addEventListener&&e.addEventListener(h,s)),p.add&&(p.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,c):d.push(c),ae.event.global[h]=!0)},remove:function(e,t,n,r,i){var o,s,a,l,u,c,p,d,h,f,m,g=Oe.hasData(e)&&Oe.get(e) +ae.event={global:{},add:function(e,t,n,r,i){var o,s,a,l,u,c,p,d,h,f,m,g=Se.get(e) +if(g)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&ae.find.matchesSelector(ze,i),n.guid||(n.guid=ae.guid++),(l=g.events)||(l=g.events={}),(s=g.handle)||(s=g.handle=function(t){return void 0!==ae&&ae.event.triggered!==t.type?ae.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(xe)||[""]).length;u--;)h=m=(a=We.exec(t[u])||[])[1],f=(a[2]||"").split(".").sort(),h&&(p=ae.event.special[h]||{},h=(i?p.delegateType:p.bindType)||h,p=ae.event.special[h]||{},c=ae.extend({type:h,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ae.expr.match.needsContext.test(i),namespace:f.join(".")},o),(d=l[h])||((d=l[h]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(e,r,f,s)||e.addEventListener&&e.addEventListener(h,s)),p.add&&(p.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,c):d.push(c),ae.event.global[h]=!0)},remove:function(e,t,n,r,i){var o,s,a,l,u,c,p,d,h,f,m,g=Se.hasData(e)&&Se.get(e) if(g&&(l=g.events)){for(u=(t=(t||"").match(xe)||[""]).length;u--;)if(a=We.exec(t[u])||[],h=m=a[1],f=(a[2]||"").split(".").sort(),h){for(p=ae.event.special[h]||{},d=l[h=(r?p.delegateType:p.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)c=d[o],!i&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,p.remove&&p.remove.call(e,c)) s&&!d.length&&(p.teardown&&!1!==p.teardown.call(e,f,g.handle)||ae.removeEvent(e,h,g.handle),delete l[h])}else for(h in l)ae.event.remove(e,h+t[u],n,r,!0) -ae.isEmptyObject(l)&&Oe.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=ae.event.fix(e),l=new Array(arguments.length),u=(Oe.get(this,"events")||{})[a.type]||[],c=ae.event.special[a.type]||{} +ae.isEmptyObject(l)&&Se.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=ae.event.fix(e),l=new Array(arguments.length),u=(Se.get(this,"events")||{})[a.type]||[],c=ae.event.special[a.type]||{} for(l[0]=a,t=1;t\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) -if(!(se.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ae.isXMLDoc(e)))for(s=g(a),r=0,i=(o=g(e)).length;r0&&v(s,!l&&g(e,"script")),a},cleanData:function(e){for(var t,n,r,i=ae.event.special,o=0;void 0!==(n=e[o]);o++)if(Se(n)){if(t=n[Oe.expando]){if(t.events)for(r in t.events)i[r]?ae.event.remove(n,r):ae.removeEvent(n,r,t.handle) -n[Oe.expando]=void 0}n[Pe.expando]&&(n[Pe.expando]=void 0)}}}),ae.fn.extend({detach:function(e){return A(this,e,!0)},remove:function(e){return A(this,e)},text:function(e){return Te(this,function(e){return void 0===e?ae.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return P(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){E(this,e).appendChild(e)}})},prepend:function(){return P(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=E(this,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&&v(s,!l&&g(e,"script")),a},cleanData:function(e){for(var t,n,r,i=ae.event.special,o=0;void 0!==(n=e[o]);o++)if(Oe(n)){if(t=n[Se.expando]){if(t.events)for(r in t.events)i[r]?ae.event.remove(n,r):ae.removeEvent(n,r,t.handle) +n[Se.expando]=void 0}n[Pe.expando]&&(n[Pe.expando]=void 0)}}}),ae.fn.extend({detach:function(e){return A(this,e,!0)},remove:function(e){return A(this,e)},text:function(e){return Te(this,function(e){return void 0===e?ae.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return P(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){E(this,e).appendChild(e)}})},prepend:function(){return P(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=E(this,e) t.insertBefore(e,t.firstChild)}})},before:function(){return P(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return P(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ae.cleanData(g(e,!1)),e.textContent="") return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ae.clone(this,e,t)})},html:function(e){return Te(this,function(e){var t=this[0]||{},n=0,r=this.length if(void 0===e&&1===t.nodeType)return t.innerHTML @@ -406,20 +406,20 @@ return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.e var st,at,lt=/^(?:toggle|show|hide)$/,ut=/queueHooks$/ ae.Animation=ae.extend(q,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t) return h(n.elem,e,Me.exec(t),n),n}]},tweener:function(e,t){ae.isFunction(e)?(t=e,e=["*"]):e=e.match(xe) -for(var n,r=0,i=e.length;r-1)return!0 return!1}}) var ft=/\r/g @@ -465,13 +465,13 @@ return n||(e.selectedIndex=-1),o}}}}),ae.each(["radio","checkbox"],function(){ae var mt=/^(?:focusinfocus|focusoutblur)$/ ae.extend(ae.event,{trigger:function(t,n,r,i){var o,s,a,l,u,c,p,d=[r||$],h=re.call(t,"type")?t.type:t,f=re.call(t,"namespace")?t.namespace.split("."):[] if(s=a=r=r||$,3!==r.nodeType&&8!==r.nodeType&&!mt.test(h+ae.event.triggered)&&(h.indexOf(".")>-1&&(h=(f=h.split(".")).shift(),f.sort()),u=h.indexOf(":")<0&&"on"+h,t=t[ae.expando]?t:new ae.Event(h,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=f.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:ae.makeArray(n,[t]),p=ae.event.special[h]||{},i||!p.trigger||!1!==p.trigger.apply(r,n))){if(!i&&!p.noBubble&&!ae.isWindow(r)){for(l=p.delegateType||h,mt.test(l+h)||(s=s.parentNode);s;s=s.parentNode)d.push(s),a=s -a===(r.ownerDocument||$)&&d.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=d[o++])&&!t.isPropagationStopped();)t.type=o>1?l:p.bindType||h,(c=(Oe.get(s,"events")||{})[t.type]&&Oe.get(s,"handle"))&&c.apply(s,n),(c=u&&s[u])&&c.apply&&Se(s)&&(t.result=c.apply(s,n),!1===t.result&&t.preventDefault()) -return t.type=h,i||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(d.pop(),n)||!Se(r)||u&&ae.isFunction(r[h])&&!ae.isWindow(r)&&((a=r[u])&&(r[u]=null),ae.event.triggered=h,r[h](),ae.event.triggered=void 0,a&&(r[u]=a)),t.result}},simulate:function(e,t,n){var r=ae.extend(new ae.Event,n,{type:e,isSimulated:!0}) +a===(r.ownerDocument||$)&&d.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=d[o++])&&!t.isPropagationStopped();)t.type=o>1?l:p.bindType||h,(c=(Se.get(s,"events")||{})[t.type]&&Se.get(s,"handle"))&&c.apply(s,n),(c=u&&s[u])&&c.apply&&Oe(s)&&(t.result=c.apply(s,n),!1===t.result&&t.preventDefault()) +return t.type=h,i||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(d.pop(),n)||!Oe(r)||u&&ae.isFunction(r[h])&&!ae.isWindow(r)&&((a=r[u])&&(r[u]=null),ae.event.triggered=h,r[h](),ae.event.triggered=void 0,a&&(r[u]=a)),t.result}},simulate:function(e,t,n){var r=ae.extend(new ae.Event,n,{type:e,isSimulated:!0}) ae.event.trigger(r,null,t)}}),ae.fn.extend({trigger:function(e,t){return this.each(function(){ae.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0] if(n)return ae.event.trigger(e,t,n,!0)}}),ae.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){ae.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ae.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),se.focusin="onfocusin"in e,se.focusin||ae.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){ae.event.simulate(t,e.target,ae.event.fix(e))} -ae.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Oe.access(r,t) -i||r.addEventListener(e,n,!0),Oe.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Oe.access(r,t)-1 -i?Oe.access(r,t,i):(r.removeEventListener(e,n,!0),Oe.remove(r,t))}}}) +ae.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Se.access(r,t) +i||r.addEventListener(e,n,!0),Se.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Se.access(r,t)-1 +i?Se.access(r,t,i):(r.removeEventListener(e,n,!0),Se.remove(r,t))}}}) var gt=e.location,vt=ae.now(),bt=/\?/ ae.parseXML=function(t){var n if(!t||"string"!=typeof t)return null @@ -485,7 +485,7 @@ return r.join("&")},ae.fn.extend({serialize:function(){return ae.param(this.seri return e?ae.makeArray(e):this}).filter(function(){var e=this.type return this.name&&!ae(this).is(":disabled")&&xt.test(this.nodeName)&&!_t.test(e)&&(this.checked||!De.test(e))}).map(function(e,t){var n=ae(this).val() return null==n?null:Array.isArray(n)?ae.map(n,function(e){return{name:t.name,value:e.replace(wt,"\r\n")}}):{name:t.name,value:n.replace(wt,"\r\n")}}).get()}}) -var Et=/%20/g,Ct=/#.*$/,Tt=/([?&])_=[^&]*/,St=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,Pt=/^\/\//,At={},kt={},Nt="*/".concat("*"),Mt=$.createElement("a") +var Et=/%20/g,Ct=/#.*$/,Tt=/([?&])_=[^&]*/,Ot=/^(.*?):[ \t]*([^\r\n]*)$/gm,St=/^(?:GET|HEAD)$/,Pt=/^\/\//,At={},kt={},Nt="*/".concat("*"),Mt=$.createElement("a") Mt.href=gt.href,ae.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:gt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(gt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Nt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ae.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Y(Y(e,ae.ajaxSettings),t):Y(ae.ajaxSettings,e)},ajaxPrefilter:W(At),ajaxTransport:W(kt),ajax:function(t,n){function r(t,n,r,a){var u,d,h,w,_,x=n c||(c=!0,l&&e.clearTimeout(l),i=void 0,s=a||"",E.readyState=t>0?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) @@ -498,14 +498,14 @@ else if("*"!==l&&l!==o){if(!(s=u[l+" "+o]||u["* "+o]))for(i in u)if((a=i.split(" break}if(!0!==s)if(s&&e.throws)t=s(t) else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(f,w,E,u),u?(f.ifModified&&((_=E.getResponseHeader("Last-Modified"))&&(ae.lastModified[o]=_),(_=E.getResponseHeader("etag"))&&(ae.etag[o]=_)),204===t||"HEAD"===f.type?x="nocontent":304===t?x="notmodified":(x=w.state,d=w.data,u=!(h=w.error))):(h=x,!t&&x||(x="error",t<0&&(t=0))),E.status=t,E.statusText=(n||x)+"",u?v.resolveWith(m,[d,x,E]):v.rejectWith(m,[E,x,h]),E.statusCode(y),y=void 0,p&&g.trigger(u?"ajaxSuccess":"ajaxError",[E,f,u?d:h]),b.fireWith(m,[E,x]),p&&(g.trigger("ajaxComplete",[E,f]),--ae.active||ae.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{} var i,o,s,a,l,u,c,p,d,h,f=ae.ajaxSetup({},n),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?ae(m):ae.event,v=ae.Deferred(),b=ae.Callbacks("once memory"),y=f.statusCode||{},w={},_={},x="canceled",E={readyState:0,getResponseHeader:function(e){var t -if(c){if(!a)for(a={};t=St.exec(s);)a[t[1].toLowerCase()]=t[2] +if(c){if(!a)for(a={};t=Ot.exec(s);)a[t[1].toLowerCase()]=t[2] t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(e,t){return null==c&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t if(e)if(c)E.always(e[E.status]) 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=!Ot.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)),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["*"]) 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 @@ -611,13 +611,13 @@ var E,C=function(){function e(){i(this,e),this.lastRevision=null,this.lastValue= return t&&e.validate(t)||(n=this.lastValue=this.compute(),this.lastRevision=e.value()),n},e.prototype.invalidate=function(){this.lastRevision=null},e}(),T=function(e){function t(r,o){i(this,t) var s=n(this,e.call(this)) return s.tag=r.tag,s.reference=r,s.mapper=o,s}return r(t,e),t.prototype.compute=function(){var e=this.reference -return(0,this.mapper)(e.value())},t}(C),S=function(){function e(t){i(this,e),this.lastValue=null,this.lastRevision=null,this.initialized=!1,this.tag=t.tag,this.reference=t}return e.prototype.peek=function(){return this.initialized?this.lastValue:this.initialize()},e.prototype.revalidate=function(){if(!this.initialized)return this.initialize() +return(0,this.mapper)(e.value())},t}(C),O=function(){function e(t){i(this,e),this.lastValue=null,this.lastRevision=null,this.initialized=!1,this.tag=t.tag,this.reference=t}return e.prototype.peek=function(){return this.initialized?this.lastValue:this.initialize()},e.prototype.revalidate=function(){if(!this.initialized)return this.initialize() var e=this.reference,t=this.lastRevision,n=e.tag -if(n.validate(t))return O +if(n.validate(t))return S this.lastRevision=n.value() var r=this.lastValue,i=e.value() -return i===r?O:(this.lastValue=i,i)},e.prototype.initialize=function(){var e=this.reference,t=this.lastValue=e.value() -return this.lastRevision=e.tag.value(),this.initialized=!0,t},e}(),O="adb3b78e-3d22-4e4b-877a-6317c2c5c145",P=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.inner=t,this.tag=f}return e.prototype.value=function(){return this.inner},e}(),A=function(e){function t(n,r){a(this,t) +return i===r?S:(this.lastValue=i,i)},e.prototype.initialize=function(){var e=this.reference,t=this.lastValue=e.value() +return this.lastRevision=e.tag.value(),this.initialized=!0,t},e}(),S="adb3b78e-3d22-4e4b-877a-6317c2c5c145",P=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.inner=t,this.tag=f}return e.prototype.value=function(){return this.inner},e}(),A=function(e){function t(n,r){a(this,t) var i=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,n.valueReferenceFor(r))) return i.retained=!1,i.seen=!1,i.key=r.key,i.iterable=n,i.memo=n.memoReferenceFor(r),i}return l(t,e),t.prototype.update=function(e){this.retained=!0,this.iterable.updateValueReference(this.value,e),this.iterable.updateMemoReference(this.memo,e)},t.prototype.shouldRemove=function(){return!this.retained},t.prototype.reset=function(){this.retained=!1,this.seen=!1},t}(t.ListNode),k=function(){function e(n){a(this,e),this.map=(0,t.dict)(),this.list=new t.LinkedList,this.tag=n.tag,this.iterable=n}return e.prototype.isEmpty=function(){return(this.iterator=this.iterable.iterate()).isEmpty()},e.prototype.iterate=function(){var e=this.iterator||this.iterable.iterate() @@ -651,7 +651,7 @@ for(t=0,n=e.length;t",after:""},table:{depth:1,before:"",after:"
"},tbody:{depth:2,before:"",after:"
"},tfoot:{depth:2,before:"",after:"
"},thead:{depth:2,before:"",after:"
"},tr:{depth:3,before:"",after:"
"}},In="http://www.w3.org/2000/svg",jn={foreignObject:1,desc:1,title:1},Ln=Object.create(null);["b","big","blockquote","body","br","center","code","dd","div","dl","dt","em","embed","h1","h2","h3","h4","h5","h6","head","hr","i","img","li","listing","main","meta","nobr","ol","p","pre","ruby","s","small","span","strong","strike","sub","sup","table","tt","u","ul","var"].forEach(function(e){return Ln[e]=1}) +return this.others.push(e),t+1},e}(),Sn=["javascript:","vbscript:"],Pn=["A","BODY","LINK","IMG","IFRAME","BASE","FORM"],An=["EMBED"],kn=["href","src","background","action"],Nn=["src"],Mn={BUTTON:{type:!0,form:!0},INPUT:{type:!0,form:!0,autocorrect:!0,list:!0},SELECT:{form:!0},OPTION:{form:!0},TEXTAREA:{form:!0},LABEL:{form:!0},FIELDSET:{form:!0},LEGEND:{form:!0},OBJECT:{form:!0}},Rn={colgroup:{depth:2,before:"",after:"
"},table:{depth:1,before:"",after:"
"},tbody:{depth:2,before:"",after:"
"},tfoot:{depth:2,before:"",after:"
"},thead:{depth:2,before:"",after:"
"},tr:{depth:3,before:"",after:"
"}},In="http://www.w3.org/2000/svg",jn={foreignObject:1,desc:1,title:1},Ln=Object.create(null);["b","big","blockquote","body","br","center","code","dd","div","dl","dt","em","embed","h1","h2","h3","h4","h5","h6","head","hr","i","img","li","listing","main","meta","nobr","ol","p","pre","ruby","s","small","span","strong","strike","sub","sup","table","tt","u","ul","var"].forEach(function(e){return Ln[e]=1}) var Dn,Fn=/[\t-\r \xA0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]/,Bn="undefined"==typeof document?null:document,Hn=function(){function e(t){Ce(this,e),this.document=t,this.setupUselessElement()}return e.prototype.setupUselessElement=function(){this.uselessElement=this.document.createElement("div")},e.prototype.createElement=function(e,t){var n=void 0,r=void 0 if(t?(n=t.namespaceURI===In||"svg"===e,r=jn[t.tagName]):(n="svg"===e,r=!1),n&&!r){if(Ln[e])throw new Error("Cannot create a "+e+" inside an SVG context") -return this.document.createElementNS(In,e)}return this.document.createElement(e)},e.prototype.insertBefore=function(e,t,n){e.insertBefore(t,n)},e.prototype.insertHTMLBefore=function(e,t,n){return Se(this.uselessElement,e,t,n)},e.prototype.createTextNode=function(e){return this.document.createTextNode(e)},e.prototype.createComment=function(e){return this.document.createComment(e)},e}();(function(e){var t=function(e){function t(){return Ce(this,t),xe(this,e.apply(this,arguments))}return Ee(t,e),t.prototype.createElementNS=function(e,t){return this.document.createElementNS(e,t)},t.prototype.setAttribute=function(e,t,n,r){r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)},t}(Hn) +return this.document.createElementNS(In,e)}return this.document.createElement(e)},e.prototype.insertBefore=function(e,t,n){e.insertBefore(t,n)},e.prototype.insertHTMLBefore=function(e,t,n){return Oe(this.uselessElement,e,t,n)},e.prototype.createTextNode=function(e){return this.document.createTextNode(e)},e.prototype.createComment=function(e){return this.document.createComment(e)},e}();(function(e){var t=function(e){function t(){return Ce(this,t),xe(this,e.apply(this,arguments))}return Ee(t,e),t.prototype.createElementNS=function(e,t){return this.document.createElementNS(e,t)},t.prototype.setAttribute=function(e,t,n,r){r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)},t}(Hn) e.TreeConstruction=t var n=t n=function(e,t){return e&&_e(e)?function(e){function t(n){be(this,t) @@ -1134,10 +1134,10 @@ 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),Oe(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),Oe(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),Oe(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),Oe(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),Oe(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 +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 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 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) @@ -1164,7 +1164,7 @@ return this.handle+=3,t},e.prototype.sizeof=function(){return-1},e.prototype.fre for(e=0;e0&&void 0!==arguments[0])||arguments[0] this.lastIterated=this.artifacts.tag.value(),e&&this._tag.inner.update((0,n.combineSlice)(this.children))},r.prototype.evaluate=function(t){var r,i,o,s,a=this.artifacts,l=this.lastIterated -a.tag.validate(l)||(r=this.bounds,o=(i=t.dom).createComment(""),i.insertAfter(r.parentElement(),o,r.lastNode()),s=new cr(this,o),new n.IteratorSynchronizer({target:s,artifacts:a}).sync(),this.parentElement().removeChild(o)),e.prototype.evaluate.call(this,t)},r.prototype.vmForInsertion=function(e){var t=this.env,n=this.scope,r=this.dynamicScope,i=Ot.forInitialRender(this.env,this.bounds.parentElement(),e) +a.tag.validate(l)||(r=this.bounds,o=(i=t.dom).createComment(""),i.insertAfter(r.parentElement(),o,r.lastNode()),s=new cr(this,o),new n.IteratorSynchronizer({target:s,artifacts:a}).sync(),this.parentElement().removeChild(o)),e.prototype.evaluate.call(this,t)},r.prototype.vmForInsertion=function(e){var t=this.env,n=this.scope,r=this.dynamicScope,i=St.forInitialRender(this.env,this.bounds.parentElement(),e) return new gr(t,n,r,i)},r.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this),n=this.map,r=Object.keys(n).map(function(e){return JSON.stringify(e)+": "+n[e]._guid}).join(", "),i=t.details return i||(i=t.details={}),i.map="{"+r+"}",t},r}(lr),dr=function(){function e(t,n,r){De(this,e),this.vm=t,this.ops=n,this.exceptionHandler=r,this.vm=t,this.ops=n,this.current=n.head()}return e.prototype.goto=function(e){this.current=e},e.prototype.nextStatement=function(){var e=this.current,t=this.ops return e&&(this.current=t.nextNode(e)),e},e.prototype.handleException=function(){this.exceptionHandler&&this.exceptionHandler.handleException()},e}(),hr=function(){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.env=t,this.updating=n,this.bounds=r}return e.prototype.rerender=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{alwaysRevalidate:!1}).alwaysRevalidate,t=void 0!==e&&e,n=this.env,r=this.updating @@ -1218,7 +1218,7 @@ return null!==r?(qe.evaluate(this,r,r.type),i={done:!1,value:null}):(this.stack. if(-1===t)return null var n=e.program return this.pc+=4,n.opcode(t)},e.prototype.evaluateOpcode=function(e){qe.evaluate(this,e,e.type)},e.prototype.bindDynamicScope=function(e){var t,n,r=this.dynamicScope() -for(t=e.length-1;t>=0;t--)n=this.constants.getString(e[t]),r.set(n,this.stack.pop())},fr(e,[{key:"fp",get:function(){return this.stack.fp},set:function(e){this.stack.fp=e}},{key:"sp",get:function(){return this.stack.sp},set:function(e){this.stack.sp=e}}]),e}(),vr=function(){function e(t){Be(this,e),this.vm=t}return e.prototype.next=function(){return this.vm.next()},e}(),br=0,yr=function(){function e(t,n,r,i){Be(this,e),this.id=t,this.meta=n,this.env=r,this.entryPoint=null,this.layout=null,this.partial=null,this.block=null,this.scanner=new Tn(i,r),this.symbols=i.symbols,this.hasEval=i.hasEval}return e.prototype.render=function(e,t,n){var r=this.env,i=Ot.forInitialRender(r,t,null),o=this.asEntryPoint().compileDynamic(r),s=gr.initial(r,e,n,i,o) +for(t=e.length-1;t>=0;t--)n=this.constants.getString(e[t]),r.set(n,this.stack.pop())},fr(e,[{key:"fp",get:function(){return this.stack.fp},set:function(e){this.stack.fp=e}},{key:"sp",get:function(){return this.stack.sp},set:function(e){this.stack.sp=e}}]),e}(),vr=function(){function e(t){Be(this,e),this.vm=t}return e.prototype.next=function(){return this.vm.next()},e}(),br=0,yr=function(){function e(t,n,r,i){Be(this,e),this.id=t,this.meta=n,this.env=r,this.entryPoint=null,this.layout=null,this.partial=null,this.block=null,this.scanner=new Tn(i,r),this.symbols=i.symbols,this.hasEval=i.hasEval}return e.prototype.render=function(e,t,n){var r=this.env,i=St.forInitialRender(r,t,null),o=this.asEntryPoint().compileDynamic(r),s=gr.initial(r,e,n,i,o) return new vr(s)},e.prototype.asEntryPoint=function(){return this.entryPoint||(this.entryPoint=this.scanner.scanEntryPoint(this.compilationMeta())),this.entryPoint},e.prototype.asLayout=function(e,n){return this.layout||(this.layout=this.scanner.scanLayout(this.compilationMeta(),n||t.EMPTY_ARRAY,e)),this.layout},e.prototype.asPartial=function(){return this.partial||(this.partial=this.scanner.scanEntryPoint(this.compilationMeta(!0))),this.partial},e.prototype.asBlock=function(){return this.block||(this.block=this.scanner.scanBlock(this.compilationMeta())),this.block},e.prototype.compilationMeta=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0] return{templateMeta:this.meta,symbols:this.symbols,asPartial:e}},e}(),wr=function(){function e(t,r){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.scope=t,this.nameRef=r var i=this.varTag=n.UpdatableTag.create(n.CONSTANT_TAG) @@ -1231,7 +1231,7 @@ return o||(o=JSON.parse(i)),new yr(s,a,e,o)}}},e.NULL_REFERENCE=Ye,e.UNDEFINED_R 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 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=O,e.DOMChanges=Un,e.IDOMChanges=qn,e.DOMTreeConstruction=Wn,e.isWhitespace=function(e){return Fn.test(e)},e.insertHTMLBefore=Se,e.ElementStack=Ot,e.ConcreteBounds=xt}),e("@glimmer/util",["exports"],function(e){"use strict" +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" function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e){return e._guid=++y}function r(e){return e._guid||n(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){}function s(){return new o}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l,u="http://www.w3.org/1999/xlink",c="http://www.w3.org/XML/1998/namespace",p="http://www.w3.org/2000/xmlns/",d={"xlink:actuate":u,"xlink:arcrole":u,"xlink:href":u,"xlink:role":u,"xlink:show":u,"xlink:title":u,"xlink:type":u,"xml:base":c,"xml:lang":c,"xml:space":c,xmlns:p,"xmlns:xlink":p};(function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Warn=2]="Warn",e[e.Error=3]="Error"})(l||(e.LogLevel=l={})) var h=function(){function e(){t(this,e)}return e.prototype.log=function(){},e.prototype.warn=function(){},e.prototype.error=function(){},e.prototype.trace=function(){},e}(),f=void 0,m=function(){function e(n){var r=n.console,i=n.level t(this,e),this.f=f,this.force=f,this.console=r,this.level=i}return e.prototype.skipped=function(e){return e1&&void 0!==arguments[1]?arguments[1]:{}).stackTrace,n=void 0!==t&&t @@ -1252,14 +1252,14 @@ return null===t?this.append(e):(t.prev?t.prev.next=e:this._head=e,e.prev=t.prev, return t?(t.next=e,e.prev=t,e.next=null):this._head=e,this._tail=e},e.prototype.pop=function(){return this._tail?this.remove(this._tail):null},e.prototype.prepend=function(e){return this._head?this.insertBefore(e,this._head):this._head=this._tail=e},e.prototype.remove=function(e){return e.prev?e.prev.next=e.next:this._head=e.next,e.next?e.next.prev=e.prev:this._tail=e.prev,e},e}(),C=function(){function e(t,n){a(this,e),this._head=t,this._tail=n}return e.toList=function(e){var t=new E return e.forEachNode(function(e){return t.append(e.clone())}),t},e.prototype.forEachNode=function(e){for(var t=this._head;null!==t;)e(t),t=this.nextNode(t)},e.prototype.contains=function(e){for(var t=this._head;null!==t;){if(t===e)return!0 t=t.next}return!1},e.prototype.head=function(){return this._head},e.prototype.tail=function(){return this._tail},e.prototype.toArray=function(){var e=[] -return this.forEachNode(function(t){return e.push(t)}),e},e.prototype.nextNode=function(e){return e===this._tail?null:e.next},e.prototype.prevNode=function(e){return e===this._head?null:e.prev},e.prototype.isEmpty=function(){return!1},e}(),T=new C(null,null),S=function(){if(!("function"==typeof WeakMap))return!1 +return this.forEachNode(function(t){return e.push(t)}),e},e.prototype.nextNode=function(e){return e===this._tail?null:e.next},e.prototype.prevNode=function(e){return e===this._head?null:e.prev},e.prototype.isEmpty=function(){return!1},e}(),T=new C(null,null),O=function(){if(!("function"==typeof WeakMap))return!1 var e=new WeakMap -return"[object WeakMap]"===Object.prototype.toString.call(e)}(),O="undefined"!=typeof Uint32Array?Uint32Array:Array,P=S?Object.freeze([]):[] +return"[object WeakMap]"===Object.prototype.toString.call(e)}(),S="undefined"!=typeof Uint32Array?Uint32Array:Array,P=O?Object.freeze([]):[] e.getAttrNamespace=function(e){return d[e]||null},e.assert=function(e,t){if(!e)throw new Error(t||"assertion failure")},e.LOGGER=v,e.Logger=m,e.LogLevel=l,e.assign=function(e){var t,n,r,i,o for(t=1;t0&&(i=Xe.add(e,t,r),o=O(e,r,i,n)) +Ze>0&&(i=Xe.add(e,t,r),o=S(e,r,i,n)) h(e,r,[e,t],o)}(t,n,i))}}function w(t,n,r){var i=void 0===r?e.peekMeta(t):r,o=void 0!==i if(!o||i.isInitialized(t)){var s=t[n] if(null!==s&&"object"==typeof s&&s.isDescriptor&&s.didChange&&s.didChange(t,n),o&&i.peekWatching(n)>0&&(function(e,t,n){if(n.isSourceDestroying()||!n.hasDeps(t))return @@ -2033,15 +2033,15 @@ i&&(r=tt={}) _(w,e,t,r,n),i&&(tt=null)}(t,n,i),function(e,t,n){var r=n.readableChainWatchers() void 0!==r&&r.notify(t,!0,w)}(0,n,i),function(e,t,n){if(n.isSourceDestroying())return var r=t+":change",i=void 0 -Ze>0?(i=Je.add(e,t,r),O(e,r,i,n)):h(e,r,[e,t])}(t,n,i)),t[Qe]&&t[Qe](n),o){if(i.isSourceDestroying())return +Ze>0?(i=Je.add(e,t,r),S(e,r,i,n)):h(e,r,[e,t])}(t,n,i)),t[Qe]&&t[Qe](n),o){if(i.isSourceDestroying())return v(i,n)}}}function _(e,t,r,i,o){var s=void 0,a=n.guidFor(t),l=i[a] l||(l=i[a]={}),l[r]||(l[r]=!0,o.forEachInDeps(r,function(n,r){r&&(s=t[n],null!==s&&"object"==typeof s&&s.isDescriptor&&s._suspended===t||e(t,n,o))}))}function x(e,t,n){var r=n.readableChainWatchers() void 0!==r&&r.revalidate(t)}function E(){Ze++}function C(){--Ze<=0&&(Xe.clear(),Je.flush())}function T(e,t){E() -try{e.call(t)}finally{C()}}function S(e,t,n){var r,i=-1 +try{e.call(t)}finally{C()}}function O(e,t,n){var r,i=-1 for(r=e.length-3;r>=0;r-=3)if(t===e[r]&&n===e[r+1]){i=r -break}return i}function O(e,t,n,r){var i,o,s,a,l=r.matchingListeners(t) +break}return i}function S(e,t,n,r){var i,o,s,a,l=r.matchingListeners(t) if(void 0!==l){var u=[] -for(i=l.length-3;i>=0;i-=3)o=l[i],s=l[i+1],a=l[i+2],-1===S(n,o,s)&&(n.push(o,s,a),u.push(o,s,a)) +for(i=l.length-3;i>=0;i-=3)o=l[i],s=l[i+1],a=l[i+2],-1===O(n,o,s)&&(n.push(o,s,a),u.push(o,s,a)) return u}}function P(){this.isDescriptor=!0}function A(e,t,n,r,i){void 0===i&&(i=q(e)) var o=i.peekWatching(t),s=void 0!==o&&o>0,a=e[t] null!==a&&"object"==typeof a&&a.isDescriptor&&a.teardown(e,t,i) @@ -2076,11 +2076,11 @@ if(null!==s&&void 0!==s)for(i=0;i7&&66===e.charCodeAt(t-7)&&-1!==e.indexOf("inding",t-6)}function Oe(e,t){return function(e,t){t.forEachBindings(function(t,n){var r +u.hasOwnProperty("toString")&&(i.toString=u.toString)}else l.mixins&&(Te(l.mixins,t,n,r,i,o),l._without&&l._without.forEach(s))}function Oe(e){var t=e.length +return t>7&&66===e.charCodeAt(t-7)&&-1!==e.indexOf("inding",t-6)}function Se(e,t){return function(e,t){t.forEachBindings(function(t,n){var r n&&(r=t.slice(0,-7),n instanceof Ft?(n=n.copy()).to(r):n=new Ft(r,n),n.connect(e),e[t]=n)}),t.clearBindings()}(e,void 0===t?q(e):t),e}function Pe(e,t,n,r){var i=t.methodName,o=void 0,s=void 0 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 Ae(e,t,n,r){var i if(n)for(i=0;i=0;)if(Me(o[s],t,r))return!0 @@ -2231,7 +2231,7 @@ return n.isDescriptor=!0,n.altKey=t,n._dependentKeys=[t],n}return i.inherits(t,e n.peekWatching(t)&&Z(this,e,t,n)},t.prototype.teardown=function(e,t,n){n.peekWatching(t)&&ee(this,e,t,n)},t.prototype.willWatch=function(e,t,n){Z(this,e,t,n)},t.prototype.didUnwatch=function(e,t,n){ee(this,e,t,n)},t.prototype.get=function(e,t){var n=U(e,this.altKey),r=q(e),i=r.writableCache() return i[t]!==Ct&&(i[t]=Ct,Z(this,e,t,r)),n},t.prototype.set=function(e,t,n){return K(e,this.altKey,n)},t.prototype.readOnly=function(){return this.set=re,this},t.prototype.oneWay=function(){return this.set=ie,this},t}(P) Tt.prototype._meta=void 0,Tt.prototype.meta=te.prototype.meta -var St=[],Ot={},Pt=function(){var e="undefined"!=typeof window?window.performance||{}:{},t=e.now||e.mozNow||e.webkitNow||e.msNow||e.oNow +var Ot=[],St={},Pt=function(){var e="undefined"!=typeof window?window.performance||{}:{},t=e.now||e.mozNow||e.webkitNow||e.msNow||e.oNow return t?t.bind(e):function(){return+new Date}}() e.flaggedInstrument=void 0,e.flaggedInstrument=function(e,t,n){return n()} var At=void 0,kt={get onerror(){return At}},Nt=void 0,Mt=new l(["sync","actions","destroy"],{GUID_KEY:n.GUID_KEY,sync:{before:E,after:C},defaultQueue:"actions",onBegin:function(e){ce.currentRunLoop=e},onEnd:function(e,t){ce.currentRunLoop=t},onErrorTarget:kt,onErrorMethod:"onerror"}) @@ -2270,7 +2270,7 @@ void 0===t&&(ce.schedule("sync",this,"_sync"),this._direction=e),"back"===t&&"fw if(!i.isDestroyed&&this._readyToSync){var o=this._direction,s=this._fromObj,l=this._fromPath this._direction=void 0,"fwd"===o?(e=U(s,l),r&&a.log(" ",this.toString(),"->",e,s),this._oneWay?Y(i,this._to,e):be(i,this._to,this,"toDidChange",function(){Y(i,this._to,e)})):"back"===o&&(n=U(i,this._to),r&&a.log(" ",this.toString(),"<-",n,i),be(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])})(Ft,{from:function(e){return new this(void 0,e)},to:function(e){return new this(e,void 0)}}) var Bt=Array.prototype.concat,Ht=Array.isArray,qt={} -Se("notbound"),Se("fooBinding") +Oe("notbound"),Oe("fooBinding") var zt=function(){function t(e,i){this.properties=i var o,s,a,l=e&&e.length if(l>0){for(o=new Array(l),s=0;s0&&r.property.apply(r,t),r},e.cacheFor=ne,e.ComputedProperty=te,e.alias=function(e){return new Tt(e)},e.merge=function(e,t){if(null===t||"object"!=typeof t)return e var n,r=Object.keys(t),i=void 0 for(n=0;n1?t-1:0),r=1;r=0;o--)if(u=e[o],c=u.handler,p=c&&c.actions&&c.actions[a]){if(!0!==p.apply(c,r))return void("error"===a&&(s=(0,t.guidFor)(r[0]),c.router._markErrorAsHandled(s))) -l=!0}var d=S[a] +l=!0}var d=O[a] if(d)d.apply(this,[e].concat(r)) else if(!l&&!n)throw new i.Error("Nothing handled the action '"+a+"'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.")}function b(e,t,n){var r,i,o=e._routerMicrolib.applyIntent(t,n),s=o.handlerInfos,a=o.params for(r=0;r2)for(o=new Array(arguments.length-1),n=1;n2)&&(t=Array.prototype.slice.call(arguments,1)),e=(0,o.get)(e)||e,s(e,t)}function u(e){return e.split(/\s+/)}function c(e){return N.get(e)}function p(e){return v.get(e)}function d(e){return w.get(e)}function h(e){return C.get(e)}function f(e){return O.get(e)}function m(e){return A.get(e)}e.capitalize=e.underscore=e.classify=e.camelize=e.dasherize=e.decamelize=e.w=e.loc=e.fmt=void 0 +return e.replace(/%@([0-9]+)?/g,function(e,t){return t=t?parseInt(t,10)-1:s++,null===(e=o[t])?"(null)":void 0===e?"":(0,r.inspect)(e)})}function a(){return s.apply(void 0,arguments)}function l(e,t){return(!(0,i.isArray)(t)||arguments.length>2)&&(t=Array.prototype.slice.call(arguments,1)),e=(0,o.get)(e)||e,s(e,t)}function u(e){return e.split(/\s+/)}function c(e){return N.get(e)}function p(e){return v.get(e)}function d(e){return w.get(e)}function h(e){return C.get(e)}function f(e){return S.get(e)}function m(e){return A.get(e)}e.capitalize=e.underscore=e.classify=e.camelize=e.dasherize=e.decamelize=e.w=e.loc=e.fmt=void 0 var g=/[ _]/g,v=new t.Cache(1e3,function(e){return c(e).replace(g,"-")}),b=/(\-|\_|\.|\s)+(.)?/g,y=/(^|\/)([A-Z])/g,w=new t.Cache(1e3,function(e){return e.replace(b,function(e,t,n){return n?n.toUpperCase():""}).replace(y,function(e){return e.toLowerCase()})}),_=/^(\-|_)+(.)?/,x=/(.)(\-|\_|\.|\s)+(.)?/g,E=/(^|\/|\.)([a-z])/g,C=new t.Cache(1e3,function(e){var t,n=function(e,t,n){return n?"_"+n.toUpperCase():""},r=function(e,t,n,r){return t+(r?r.toUpperCase():"")},i=e.split("/") for(t=0;t0&&(n+=","),c(e[r])||(n+=p(e[r])) -return n}return null!=e&&"function"==typeof e.toString?e.toString():S.call(e)}var d=0,h=[],f={},m=t("__ember"+ +new Date),g={writable:!0,configurable:!0,enumerable:!1,value:null},v={name:m,descriptor:{configurable:!0,writable:!0,enumerable:!1,value:null}},b=r("OWNER"),y=Object.assign||i,w=/\.(_super|call\(this|apply\(this)/,_=Function.prototype.toString,x=_.call(function(){return this}).indexOf("return this")>-1?function(e){return w.test(_.call(e))}:function(){return!0} +return n}return null!=e&&"function"==typeof e.toString?e.toString():O.call(e)}var d=0,h=[],f={},m=t("__ember"+ +new Date),g={writable:!0,configurable:!0,enumerable:!1,value:null},v={name:m,descriptor:{configurable:!0,writable:!0,enumerable:!1,value:null}},b=r("OWNER"),y=Object.assign||i,w=/\.(_super|call\(this|apply\(this)/,_=Function.prototype.toString,x=_.call(function(){return this}).indexOf("return this")>-1?function(e){return w.test(_.call(e))}:function(){return!0} o.__hasSuper=!1 -var E=Object.prototype.toString,C=Array.isArray,T=r("NAME_KEY"),S=Object.prototype.toString,O=function(){if(!("function"==typeof WeakMap))return!1 +var E=Object.prototype.toString,C=Array.isArray,T=r("NAME_KEY"),O=Object.prototype.toString,S=function(){if(!("function"==typeof WeakMap))return!1 var e=new WeakMap return"[object WeakMap]"===Object.prototype.toString.call(e)}(),P="function"==typeof Proxy e.symbol=r,e.getOwner=function(e){return e[b]},e.setOwner=function(e,t){e[b]=t},e.OWNER=b,e.assign=y,e.assignPolyfill=i,e.dictionary=function(e){var t=Object.create(e) @@ -2992,7 +2992,7 @@ if("function"==typeof e.toString&&e.toString!==E)return e.toString() var n=void 0,r=[] for(var i in e)if(e.hasOwnProperty(i)){if("toString"===(n=e[i]))continue "function"==typeof n&&(n="function() { ... }"),n&&"function"!=typeof n.toString?r.push(i+": "+E.call(n)):r.push(i+": "+n)}return"{"+r.join(", ")+"}"},e.lookupDescriptor=function(e,t){for(var n,r=e;r;){if(n=Object.getOwnPropertyDescriptor(r,t))return n -r=Object.getPrototypeOf(r)}return null},e.canInvoke=u,e.tryInvoke=function(e,t,n){if(u(e,t))return l(e,t,n)},e.makeArray=function(e){return null===e||void 0===e?[]:C(e)?e:[e]},e.applyStr=l,e.NAME_KEY=T,e.toString=p,e.HAS_NATIVE_WEAKMAP=O,e.HAS_NATIVE_PROXY=P}),e("ember-views/compat/attrs",["exports","ember-utils"],function(e,t){"use strict" +r=Object.getPrototypeOf(r)}return null},e.canInvoke=u,e.tryInvoke=function(e,t,n){if(u(e,t))return l(e,t,n)},e.makeArray=function(e){return null===e||void 0===e?[]:C(e)?e:[e]},e.applyStr=l,e.NAME_KEY=T,e.toString=p,e.HAS_NATIVE_WEAKMAP=S,e.HAS_NATIVE_PROXY=P}),e("ember-views/compat/attrs",["exports","ember-utils"],function(e,t){"use strict" e.MUTABLE_CELL=void 0,e.MUTABLE_CELL=(0,t.symbol)("MUTABLE_CELL")}),e("ember-views/compat/fallback-view-registry",["exports","ember-utils"],function(e,t){"use strict" e.default=(0,t.dictionary)(null)}),e("ember-views/component_lookup",["exports","ember-debug","ember-runtime"],function(e,t,n){"use strict" e.default=n.Object.extend({componentFor:function(e,t,n){return t.factoryFor("component:"+e,n)},layoutFor:function(e,t,n){return t.lookup("template:components/"+e,n)}})}),e("ember-views/index",["exports","ember-views/system/jquery","ember-views/system/utils","ember-views/system/event_dispatcher","ember-views/component_lookup","ember-views/mixins/text_support","ember-views/views/core_view","ember-views/mixins/class_names_support","ember-views/mixins/child_views_support","ember-views/mixins/view_state_support","ember-views/mixins/view_support","ember-views/mixins/action_support","ember-views/compat/attrs","ember-views/system/lookup_partial","ember-views/utils/lookup-component","ember-views/system/action_manager","ember-views/compat/fallback-view-registry","ember-views/system/ext"],function(e,t,n,r,i,o,s,a,l,u,c,p,d,h,f,m,g){"use strict" @@ -3095,7 +3095,7 @@ if(0===r.length)throw new Error("You must provide a param `"+t+"`.") return r}function u(e,t,n){t.length>0&&47===t.charCodeAt(0)&&(t=t.substr(1)) var r,i,o,a,l=t.split("/"),u=void 0,c=void 0 for(r=0;r=0;--n)i(h,(r=p[n]).params),r.handler.inaccessibleByURL&&(u=null) -u&&(h.queryParams=e._visibleQueryParams||t.queryParams,o=c.recognizer.generate(d,h),s=e.isCausedByInitialTransition,a="replace"===u&&!e.isCausedByAbortingTransition,l=e.queryParamsOnly&&"replace"===u,s||a||l?c.replaceURL(o):c.updateURL(o))}}function S(e,t,n){var r,i=t[0]||"/",o=t[t.length-1],s={} +u&&(h.queryParams=e._visibleQueryParams||t.queryParams,o=c.recognizer.generate(d,h),s=e.isCausedByInitialTransition,a="replace"===u&&!e.isCausedByAbortingTransition,l=e.queryParamsOnly&&"replace"===u,s||a||l?c.replaceURL(o):c.updateURL(o))}}function O(e,t,n){var r,i=t[0]||"/",o=t[t.length-1],s={} o&&o.hasOwnProperty("queryParams")&&(s=H.call(t).queryParams) var l -return 0===t.length?(a(e,"Updating query params"),r=e.state.handlerInfos,l=new F({name:r[r.length-1].name,contexts:[],queryParams:s})):"/"===i.charAt(0)?(a(e,"Attempting URL transition to "+i),l=new B({url:i})):(a(e,"Attempting transition to "+i),l=new F({name:t[0],contexts:A.call(t,1),queryParams:s})),e.transitionByIntent(l,n)}function O(e,t){var n,r +return 0===t.length?(a(e,"Updating query params"),r=e.state.handlerInfos,l=new F({name:r[r.length-1].name,contexts:[],queryParams:s})):"/"===i.charAt(0)?(a(e,"Attempting URL transition to "+i),l=new B({url:i})):(a(e,"Attempting transition to "+i),l=new F({name:t[0],contexts:A.call(t,1),queryParams:s})),e.transitionByIntent(l,n)}function S(e,t){var n,r if(e.length!==t.length)return!1 for(n=0,r=e.length;n=0&&r;--n)i=t[n],e.add(t,{as:i.handler}),r="/"===i.path||""===i.path||".index"===i.handler.slice(-6)})},hasRoute:function(e){return this.recognizer.hasRoute(e)},getHandler:function(){},getSerializer:function(){},queryParamsTransition:function(e,t,n,r){var i,o=this return x(this,r,e),!t&&this.activeTransition?this.activeTransition:(i=new N(this),i.queryParamsOnly=!0,n.queryParams=P(this,r.handlerInfos,r.queryParams,i),i.promise=i.promise.then(function(e){return T(i,n),o.didTransition&&o.didTransition(o.currentHandlerInfos),e},null,d("Transition complete")),i)},transitionByIntent:function(e){try{return _.apply(this,arguments)}catch(t){return new N(this,e,null,t)}},reset:function(){this.state&&u(this.state.handlerInfos.slice().reverse(),function(e){f(e.handler,"exit")}),this.oldState=void 0,this.state=new m,this.currentHandlerInfos=null},activeTransition:null,handleURL:function(e){var t=A.call(arguments) -return"/"!==e.charAt(0)&&(t[0]="/"+e),S(this,t).method(null)},updateURL:function(){throw new Error("updateURL is not implemented")},replaceURL:function(e){this.updateURL(e)},transitionTo:function(){return S(this,arguments)},intermediateTransitionTo:function(){return S(this,arguments,!0)},refresh:function(e){var t=this.activeTransition,n=t?t.state:this.state,r=n.handlerInfos +return"/"!==e.charAt(0)&&(t[0]="/"+e),O(this,t).method(null)},updateURL:function(){throw new Error("updateURL is not implemented")},replaceURL:function(e){this.updateURL(e)},transitionTo:function(){return O(this,arguments)},intermediateTransitionTo:function(){return O(this,arguments,!0)},refresh:function(e){var t=this.activeTransition,n=t?t.state:this.state,r=n.handlerInfos a(this,"Starting a refresh transition") var i=new F({name:r[r.length-1].name,pivotHandler:e||r[0].handler,contexts:[],queryParams:this._changedQueryParams||n.queryParams||{}}),o=this.transitionByIntent(i,!1) -return t&&"replace"===t.urlMethod&&o.method(t.urlMethod),o},replaceWith:function(){return S(this,arguments).method("replace")},generate:function(e){var t,n,r=o(A.call(arguments,1)),s=r[0],a=r[1],l=new F({name:e,contexts:s}).applyToState(this.state,this.recognizer,this.getHandler,null,this.getSerializer),u={} +return t&&"replace"===t.urlMethod&&o.method(t.urlMethod),o},replaceWith:function(){return O(this,arguments).method("replace")},generate:function(e){var t,n,r=o(A.call(arguments,1)),s=r[0],a=r[1],l=new F({name:e,contexts:s}).applyToState(this.state,this.recognizer,this.getHandler,null,this.getSerializer),u={} for(t=0,n=l.handlerInfos.length;t0&&(o(e,t),setTimeout(function(){s(e,t)},n))}function r(e){return Array.isArray(e)?e:[e]}function i(e){var t=(e=String(e)).split(".") return t.length>1?t[1].length:0}function o(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function s(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function a(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||"") return{x:t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop}}function l(e,t){return 100/(t-e)}function u(e,t){return 100*t/(e[1]-e[0])}function c(e,t){for(var n=1;e>=t[n];)n+=1 @@ -3443,8 +3443,8 @@ break case"vertical":e.ort=1 break default:throw new Error("noUiSlider ("+B+"): 'orientation' option is invalid.")}}function T(e,n){if(!t(n))throw new Error("noUiSlider ("+B+"): 'margin' option must be numeric.") -if(0!==n&&(e.margin=e.spectrum.getMargin(n),!e.margin))throw new Error("noUiSlider ("+B+"): 'margin' option is only supported on linear sliders.")}function S(e,n){if(!t(n))throw new Error("noUiSlider ("+B+"): 'limit' option must be numeric.") -if(e.limit=e.spectrum.getMargin(n),!e.limit||e.handles<2)throw new Error("noUiSlider ("+B+"): 'limit' option is only supported on linear sliders with 2 or more handles.")}function O(e,n){if(!t(n))throw new Error("noUiSlider ("+B+"): 'padding' option must be numeric.") +if(0!==n&&(e.margin=e.spectrum.getMargin(n),!e.margin))throw new Error("noUiSlider ("+B+"): 'margin' option is only supported on linear sliders.")}function O(e,n){if(!t(n))throw new Error("noUiSlider ("+B+"): 'limit' option must be numeric.") +if(e.limit=e.spectrum.getMargin(n),!e.limit||e.handles<2)throw new Error("noUiSlider ("+B+"): 'limit' option is only supported on linear sliders with 2 or more handles.")}function S(e,n){if(!t(n))throw new Error("noUiSlider ("+B+"): 'padding' option must be numeric.") if(0!==n){if(e.padding=e.spectrum.getMargin(n),!e.padding)throw new Error("noUiSlider ("+B+"): 'padding' option is only supported on linear sliders.") if(e.padding<0)throw new Error("noUiSlider ("+B+"): 'padding' option must be a positive number.") if(e.padding>=50)throw new Error("noUiSlider ("+B+"): 'padding' option must be less than half the range.")}}function P(e,t){switch(t){case"ltr":e.dir=0 @@ -3460,7 +3460,7 @@ e.tooltips.forEach(function(e){if("boolean"!=typeof e&&("object"!=typeof e||"fun e.cssPrefix=t}function j(e,t){if(void 0!==t&&"object"!=typeof t)throw new Error("noUiSlider ("+B+"): 'cssClasses' must be an object.") if("string"==typeof e.cssPrefix){e.cssClasses={} for(var n in t)t.hasOwnProperty(n)&&(e.cssClasses[n]=e.cssPrefix+t[n])}else e.cssClasses=t}function L(e,t){if(!0!==t&&!1!==t)throw new Error("noUiSlider ("+B+"): 'useRequestAnimationFrame' option should be true (default) or false.") -e.useRequestAnimationFrame=t}function D(e){var t={margin:0,limit:0,padding:0,animate:!0,animationDuration:300,ariaFormat:H,format:H},n={step:{r:!1,t:v},start:{r:!0,t:y},connect:{r:!0,t:E},direction:{r:!0,t:P},snap:{r:!1,t:w},animate:{r:!1,t:_},animationDuration:{r:!1,t:x},range:{r:!0,t:b},orientation:{r:!1,t:C},margin:{r:!1,t:T},limit:{r:!1,t:S},padding:{r:!1,t:O},behaviour:{r:!0,t:A},multitouch:{r:!0,t:k},ariaFormat:{r:!1,t:M},format:{r:!1,t:R},tooltips:{r:!1,t:N},cssPrefix:{r:!1,t:I},cssClasses:{r:!1,t:j},useRequestAnimationFrame:{r:!1,t:L}},r={connect:!1,direction:"ltr",behaviour:"tap",multitouch:!1,orientation:"horizontal",cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},useRequestAnimationFrame:!0} +e.useRequestAnimationFrame=t}function D(e){var t={margin:0,limit:0,padding:0,animate:!0,animationDuration:300,ariaFormat:H,format:H},n={step:{r:!1,t:v},start:{r:!0,t:y},connect:{r:!0,t:E},direction:{r:!0,t:P},snap:{r:!1,t:w},animate:{r:!1,t:_},animationDuration:{r:!1,t:x},range:{r:!0,t:b},orientation:{r:!1,t:C},margin:{r:!1,t:T},limit:{r:!1,t:O},padding:{r:!1,t:S},behaviour:{r:!0,t:A},multitouch:{r:!0,t:k},ariaFormat:{r:!1,t:M},format:{r:!1,t:R},tooltips:{r:!1,t:N},cssPrefix:{r:!1,t:I},cssClasses:{r:!1,t:j},useRequestAnimationFrame:{r:!1,t:L}},r={connect:!1,direction:"ltr",behaviour:"tap",multitouch:!1,orientation:"horizontal",cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},useRequestAnimationFrame:!0} e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(n).forEach(function(i){if(void 0===e[i]&&void 0===r[i]){if(n[i].r)throw new Error("noUiSlider ("+B+"): '"+i+"' is required.") return!0}n[i].t(t,void 0===e[i]?r[i]:e[i])}),t.pips=e.pips var i=[["left","top"],["right","bottom"]] @@ -3493,7 +3493,7 @@ return e.pageOffset=t,e.points=[r,o],e.cursor=l||u,e}(o,r.pageOffset,r.target||t return e.split(" ").forEach(function(e){t.addEventListener(e,o,!!U&&{passive:!0}),s.push([e,o])}),s}function b(e){var t=100*(e-function(e,t){var n=e.getBoundingClientRect(),r=e.ownerDocument,i=r.documentElement,o=a(r) return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(o.x=0),t?n.top+o.y-i.clientTop:n.left+o.x-i.clientLeft}(L,i.ort))/g() return i.dir?100-t:t}function y(e,t,n,r){var i=n.slice(),o=[!e,e],s=[e,!e] -r=r.slice(),e&&r.reverse(),r.length>1?r.forEach(function(e,n){var r=O(i,e,i[e]+t,o[n],s[n],!1) +r=r.slice(),e&&r.reverse(),r.length>1?r.forEach(function(e,n){var r=S(i,e,i[e]+t,o[n],s[n],!1) !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] @@ -3509,9 +3509,9 @@ 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) 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=O(K,e,t,n,r,!1))&&(function(e,t){K[e]=t,Q[e]=$.fromStepping(t) +i.events.snap||n(W,i.cssClasses.tap,i.animationDuration),k(r,t,!0,!0),A(),w("slide",r,!0),w("update",r,!0),w("change",r,!0),w("set",r,!0),i.events.snap&&C(e,{handleNumbers:[r]})}function O(e){var t=b(e.calcPoint),n=$.getStep(t),r=$.fromStepping(n) +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(K,e,t,n,r,!1))&&(function(e,t){K[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] @@ -3531,10 +3531,10 @@ 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"] 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,S,{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),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] 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=O(K,e,0,!0,!0,!0),s=O(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){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]) 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.") @@ -3577,11 +3577,11 @@ o>1&&!n.firstMultiple?n.firstMultiple=C(t):1===o&&(n.firstMultiple=!1) var s=n.firstInput,a=n.firstMultiple,l=a?a.center:s.center,u=t.center=T(i) t.timeStamp=re(),t.deltaTime=t.timeStamp-s.timeStamp,t.angle=A(l,u),t.distance=P(l,u),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{} t.eventType!==pe&&o.eventType!==he||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}) -t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=O(t.deltaX,t.deltaY) -var c=S(t.deltaTime,t.deltaX,t.deltaY) +t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=S(t.deltaX,t.deltaY) +var c=O(t.deltaTime,t.deltaX,t.deltaY) t.overallVelocityX=c.x,t.overallVelocityY=c.y,t.overallVelocity=ne(c.x)>ne(c.y)?c.x:c.y,t.scale=a?function(e,t){return P(t[0],t[1],Ce)/P(e[0],e[1],Ce)}(a.pointers,i):1,t.rotation=a?function(e,t){return A(t[1],t[0],Ce)+A(e[1],e[0],Ce)}(a.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,i,o,s,a=e.lastInterval||t,l=t.timeStamp-a.timeStamp -if(t.eventType!=fe&&(l>ce||a.velocity===r)){var u=t.deltaX-a.deltaX,c=t.deltaY-a.deltaY,p=S(l,u,c) -i=p.x,o=p.y,n=ne(p.x)>ne(p.y)?p.x:p.y,s=O(u,c),e.lastInterval=t}else n=a.velocity,i=a.velocityX,o=a.velocityY,s=a.direction +if(t.eventType!=fe&&(l>ce||a.velocity===r)){var u=t.deltaX-a.deltaX,c=t.deltaY-a.deltaY,p=O(l,u,c) +i=p.x,o=p.y,n=ne(p.x)>ne(p.y)?p.x:p.y,s=S(u,c),e.lastInterval=t}else n=a.velocity,i=a.velocityX,o=a.velocityY,s=a.direction t.velocity=n,t.velocityX=i,t.velocityY=o,t.direction=s}(n,t) var p=e.element f(t.srcEvent.target,p)&&(p=t.srcEvent.target) @@ -3589,11 +3589,11 @@ t.target=p}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}f return{timeStamp:re(),pointers:t,center:T(t),deltaX:e.deltaX,deltaY:e.deltaY}}function T(e){var t=e.length if(1===t)return{x:te(e[0].clientX),y:te(e[0].clientY)} for(var n=0,r=0,i=0;i=ne(t)?e<0?ge:ve:t<0?be:ye}function P(e,t,n){n||(n=Ee) +return{x:te(n/t),y:te(r/t)}}function O(e,t,n){return{x:t/e||0,y:n/e||0}}function S(e,t){return e===t?me:ne(e)>=ne(t)?e<0?ge:ve:t<0?be:ye}function P(e,t,n){n||(n=Ee) var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]] return Math.sqrt(r*r+i*i)}function A(e,t,n){n||(n=Ee) var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]] -return 180*Math.atan2(i,r)/Math.PI}function k(){this.evEl=Se,this.evWin=Oe,this.pressed=!1,x.apply(this,arguments)}function N(){this.evEl=ke,this.evWin=Ne,x.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function M(){this.evTarget=Re,this.evWin=Ie,this.started=!1,x.apply(this,arguments)}function R(){this.evTarget=Le,this.targetIds={},x.apply(this,arguments)}function I(){x.apply(this,arguments) +return 180*Math.atan2(i,r)/Math.PI}function k(){this.evEl=Oe,this.evWin=Se,this.pressed=!1,x.apply(this,arguments)}function N(){this.evEl=ke,this.evWin=Ne,x.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function M(){this.evTarget=Re,this.evWin=Ie,this.started=!1,x.apply(this,arguments)}function R(){this.evTarget=Le,this.targetIds={},x.apply(this,arguments)}function I(){x.apply(this,arguments) var e=u(this.handler,this) this.touch=new R(this.manager,e),this.mouse=new k(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function j(e){var t=e.changedPointers[0] if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY} @@ -3612,7 +3612,7 @@ if(i!==r&&null!==i)for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])}return t}:Obj var ie=a(function(e,t,n){for(var i=Object.keys(t),o=0;o=0?e.step-2:0];(null!=x&&"forward"==this._direction&&"floating"==x.position||"backward"==this._direction&&"floating"==e.position)&&(u.style.opacity=0)}d.call(t,n),d.call(t,r) var E=document.querySelectorAll(".introjs-fixParent") if(E&&E.length>0)for(var C=E.length-1;C>=0;C--)E[C].className=E[C].className.replace(/introjs-fixParent/g,"").replace(/^\s+|\s+$/g,"") -g(),t._lastShowElementTimer&&clearTimeout(t._lastShowElementTimer),t._lastShowElementTimer=setTimeout(function(){null!=u&&(u.innerHTML=e.step),c.innerHTML=e.intro,f.style.display="block",a.call(t,e.element,f,p,u),t._options.showBullets&&(r.querySelector(".introjs-bullets li > a.active").className="",r.querySelector('.introjs-bullets li > a[data-stepnumber="'+e.step+'"]').className="active"),r.querySelector(".introjs-progress .introjs-progressbar").setAttribute("style","width:"+k.call(t)+"%;"),f.style.opacity=1,u&&(u.style.opacity=1),void 0!==y&&null!=y&&/introjs-donebutton/gi.test(y.className)?y.focus():void 0!==_&&null!=_&&_.focus(),m.call(t,e.scrollTo,e,c)},350)}else{var T=document.createElement("div"),S=document.createElement("div"),O=document.createElement("div"),P=document.createElement("div"),N=document.createElement("div"),M=document.createElement("div"),R=document.createElement("div"),I=document.createElement("div") -T.className=l,S.className="introjs-tooltipReferenceLayer",d.call(t,T),d.call(t,S),this._targetElement.appendChild(T),this._targetElement.appendChild(S),O.className="introjs-arrow",N.className="introjs-tooltiptext",N.innerHTML=e.intro,M.className="introjs-bullets",!1===this._options.showBullets&&(M.style.display="none") +g(),t._lastShowElementTimer&&clearTimeout(t._lastShowElementTimer),t._lastShowElementTimer=setTimeout(function(){null!=u&&(u.innerHTML=e.step),c.innerHTML=e.intro,f.style.display="block",a.call(t,e.element,f,p,u),t._options.showBullets&&(r.querySelector(".introjs-bullets li > a.active").className="",r.querySelector('.introjs-bullets li > a[data-stepnumber="'+e.step+'"]').className="active"),r.querySelector(".introjs-progress .introjs-progressbar").setAttribute("style","width:"+k.call(t)+"%;"),f.style.opacity=1,u&&(u.style.opacity=1),void 0!==y&&null!=y&&/introjs-donebutton/gi.test(y.className)?y.focus():void 0!==_&&null!=_&&_.focus(),m.call(t,e.scrollTo,e,c)},350)}else{var T=document.createElement("div"),O=document.createElement("div"),S=document.createElement("div"),P=document.createElement("div"),N=document.createElement("div"),M=document.createElement("div"),R=document.createElement("div"),I=document.createElement("div") +T.className=l,O.className="introjs-tooltipReferenceLayer",d.call(t,T),d.call(t,O),this._targetElement.appendChild(T),this._targetElement.appendChild(O),S.className="introjs-arrow",N.className="introjs-tooltiptext",N.innerHTML=e.intro,M.className="introjs-bullets",!1===this._options.showBullets&&(M.style.display="none") for(var j=document.createElement("ul"),L=(C=0,this._introItems.length);C1&&(I.appendChild(w),I.appendChild(_)),P.appendChild(I),a.call(t,e.element,P,O,H),m.call(this,e.scrollTo,e,P)}var q=t._targetElement.querySelector(".introjs-disableInteraction") +H.className="introjs-helperNumberLayer",H.innerHTML=e.step,O.appendChild(H)}P.appendChild(S),O.appendChild(P);(_=document.createElement("a")).onclick=function(){t._introItems.length-1!=t._currentStep&&i.call(t)},h(_),_.innerHTML=this._options.nextLabel;(w=document.createElement("a")).onclick=function(){0!=t._currentStep&&o.call(t)},h(w),w.innerHTML=this._options.prevLabel;(y=document.createElement("a")).className="introjs-button introjs-skipbutton",h(y),y.innerHTML=this._options.skipLabel,y.onclick=function(){t._introItems.length-1==t._currentStep&&"function"==typeof t._introCompleteCallback&&t._introCompleteCallback.call(t),s.call(t,t._targetElement)},I.appendChild(y),this._introItems.length>1&&(I.appendChild(w),I.appendChild(_)),P.appendChild(I),a.call(t,e.element,P,S,H),m.call(this,e.scrollTo,e,P)}var q=t._targetElement.querySelector(".introjs-disableInteraction") q&&q.parentNode.removeChild(q),e.disableInteraction&&function(){var e=document.querySelector(".introjs-disableInteraction") null===e&&((e=document.createElement("div")).className="introjs-disableInteraction",this._targetElement.appendChild(e)),d.call(this,e)}.call(t),void 0!==_&&null!=_&&_.removeAttribute("tabIndex"),void 0!==w&&null!=w&&w.removeAttribute("tabIndex"),0==this._currentStep&&this._introItems.length>1?(void 0!==y&&null!=y&&(y.className="introjs-button introjs-skipbutton"),void 0!==_&&null!=_&&(_.className="introjs-button introjs-nextbutton"),1==this._options.hidePrev?(void 0!==w&&null!=w&&(w.className="introjs-button introjs-prevbutton introjs-hidden"),void 0!==_&&null!=_&&(_.className+=" introjs-fullbutton")):void 0!==w&&null!=w&&(w.className="introjs-button introjs-prevbutton introjs-disabled"),void 0!==w&&null!=w&&(w.tabIndex="-1"),void 0!==y&&null!=y&&(y.innerHTML=this._options.skipLabel)):this._introItems.length-1==this._currentStep||1==this._introItems.length?(void 0!==y&&null!=y&&(y.innerHTML=this._options.doneLabel,y.className+=" introjs-donebutton"),void 0!==w&&null!=w&&(w.className="introjs-button introjs-prevbutton"),1==this._options.hideNext?(void 0!==_&&null!=_&&(_.className="introjs-button introjs-nextbutton introjs-hidden"),void 0!==w&&null!=w&&(w.className+=" introjs-fullbutton")):void 0!==_&&null!=_&&(_.className="introjs-button introjs-nextbutton introjs-disabled"),void 0!==_&&null!=_&&(_.tabIndex="-1")):(void 0!==y&&null!=y&&(y.className="introjs-button introjs-skipbutton"),void 0!==w&&null!=w&&(w.className="introjs-button introjs-prevbutton"),void 0!==_&&null!=_&&(_.className="introjs-button introjs-nextbutton"),void 0!==y&&null!=y&&(y.innerHTML=this._options.skipLabel)),void 0!==_&&null!=_&&_.focus(),function(e){if(e.element instanceof SVGElement)for(var t=e.element.parentNode;null!=e.element.parentNode&&t.tagName&&"body"!==t.tagName.toLowerCase();)"svg"===t.tagName.toLowerCase()&&v(t,"introjs-showElement introjs-relativePosition"),t=t.parentNode v(e.element,"introjs-showElement") @@ -3914,12 +3914,12 @@ n.stopPropagation&&n.stopPropagation(),null!=n.cancelBubble&&(n.cancelBubble=!0) var a=document.createElement("div") a.className="introjs-hint-dot" var l=document.createElement("div") -l.className="introjs-hint-pulse",s.appendChild(a),s.appendChild(l),s.setAttribute("data-step",r),o.targetElement=o.element,o.element=s,O.call(this,o.hintPosition,s,o.targetElement),n.appendChild(s)}}document.body.appendChild(n),void 0!==this._hintsAddedCallback&&this._hintsAddedCallback.call(this)}).call(this),document.addEventListener?(document.addEventListener("click",_.bind(this),!1),window.addEventListener("resize",E.bind(this),!0)):document.attachEvent&&(document.attachEvent("onclick",_.bind(this)),document.attachEvent("onresize",E.bind(this)))}function E(){for(var e=0,t=this._introItems.length;e0)for(var t=0;t0)for(var t=0;t0)for(var t=0;t0)for(var t=0;t=4&&"("===R?k++:(k&&k<5||k>=4&&")"===R&&--k<5)&&(k=0),0===N&&"r"===R||1===N&&"g"===R||2===N&&"b"===R||3===N&&"a"===R||N>=3&&"("===R?(3===N&&"a"===R&&(M=1),N++):M&&","===R?++M>3&&(N=M=0):(M&&N<(M?5:4)||N>=(M?4:3)&&")"===R&&--N<(M?5:4))&&(N=M=0)}}S===v.length&&O===m.length||(x.debug&&console.error('Trying to pattern match mis-matched strings ["'+m+'", "'+v+'"]'),s=r),s&&(P.length?(x.debug&&console.log('Pattern found "'+s+'" -> ',P,A,"["+v+","+m+"]"),v=P,m=A,w=_=""):s=r)}s||(v=(y=T(i,v))[0],_=y[1],m=(y=T(i,m))[0].replace(/^([+-\/*])=/,function(e,t){return E=t,""}),w=y[1],v=parseFloat(v)||0,m=parseFloat(m)||0,"%"===w&&(/^(fontSize|lineHeight)$/.test(i)?(m/=100,w="em"):/^scale/.test(i)?(m/=100,w=""):/(Red|Green|Blue)$/i.test(i)&&(m=m/100*255,w=""))) +break}s+=R,O++,S++,0===k&&"c"===R||1===k&&"a"===R||2===k&&"l"===R||3===k&&"c"===R||k>=4&&"("===R?k++:(k&&k<5||k>=4&&")"===R&&--k<5)&&(k=0),0===N&&"r"===R||1===N&&"g"===R||2===N&&"b"===R||3===N&&"a"===R||N>=3&&"("===R?(3===N&&"a"===R&&(M=1),N++):M&&","===R?++M>3&&(N=M=0):(M&&N<(M?5:4)||N>=(M?4:3)&&")"===R&&--N<(M?5:4))&&(N=M=0)}}O===v.length&&S===m.length||(x.debug&&console.error('Trying to pattern match mis-matched strings ["'+m+'", "'+v+'"]'),s=r),s&&(P.length?(x.debug&&console.log('Pattern found "'+s+'" -> ',P,A,"["+v+","+m+"]"),v=P,m=A,w=_=""):s=r)}s||(v=(y=T(i,v))[0],_=y[1],m=(y=T(i,m))[0].replace(/^([+-\/*])=/,function(e,t){return E=t,""}),w=y[1],v=parseFloat(v)||0,m=parseFloat(m)||0,"%"===w&&(/^(fontSize|lineHeight)$/.test(i)?(m/=100,w="em"):/^scale/.test(i)?(m/=100,w=""):/(Red|Green|Blue)$/i.test(i)&&(m=m/100*255,w=""))) if(/[\/*]/.test(E))w=_ else if(_!==w&&0!==v)if(0===m)w=_ else{a=a||function(){var r={myParent:e.parentNode||n.body,position:C.getPropertyValue(e,"position"),fontSize:C.getPropertyValue(e,"fontSize")},i=r.position===D.lastPosition&&r.myParent===D.lastParent,o=r.fontSize===D.lastFontSize @@ -4435,7 +4435,7 @@ case"/":m=v/m}p[i]={rootPropertyValue:c,startValue:v,currentValue:v,endValue:m,u for(var j in _)if(_.hasOwnProperty(j)){var L=C.Names.camelCase(j),B=R(_[j]) if(v(C.Lists.colors,L)){var H=B[0],q=B[1],z=B[2] if(C.RegEx.isHex.test(H)){for(var V=["Red","Green","Blue"],U=C.Values.hexToRgb(H),W=z?C.Values.hexToRgb(z):r,K=0;K1?t-1:0),r=1;r1?t-1:0),r=1;r0)return f(e)}),init:function(){this._super.apply(this,arguments),this.handleRootMouseDown=this.handleRootMouseDown.bind(this),this.touchStartHandler=this.touchStartHandler.bind(this),this.touchMoveHandler=this.touchMoveHandler.bind(this),this.wheelHandler=this.wheelHandler.bind(this) +return r&&r.attributes.id.value===t||l(r,t)}return!1}Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.Component.extend({layout:t.default,tagName:"",isTouchDevice:!!self.window&&"ontouchstart"in self.window,hasMoved:!1,animationClass:"",transitioningInClass:"ember-basic-dropdown--transitioning-in",transitionedInClass:"ember-basic-dropdown--transitioned-in",transitioningOutClass:"ember-basic-dropdown--transitioning-out",_contentTagName:(0,n.default)("div"),animationEnabled:Ember.computed(function(){return"test"!==Ember.getOwner(this).resolveRegistration("config:environment").environment}),to:Ember.computed("destination",{get:function(){return this.get("destination")},set:function(e,t){return void 0===t?this.get("destination"):t}}),style:Ember.computed("top","left","right","width","height",function(){var e="",t=this.getProperties("top","left","right","width","height"),n=t.top,r=t.left,i=t.right,o=t.width,s=t.height +if(n&&(e+="top: "+n+";"),r&&(e+="left: "+r+";"),i&&(e+="right: "+i+";"),o&&(e+="width: "+o+";"),s&&(e+="height: "+s),e.length>0)return Ember.String.htmlSafe(e)}),init:function(){this._super.apply(this,arguments),this.handleRootMouseDown=this.handleRootMouseDown.bind(this),this.touchStartHandler=this.touchStartHandler.bind(this),this.touchMoveHandler=this.touchMoveHandler.bind(this),this.wheelHandler=this.wheelHandler.bind(this) var e=this.get("dropdown") -this.scrollableAncestors=[],this.dropdownId="ember-basic-dropdown-content-"+e.uniqueId,this.get("animationEnabled")&&this.set("animationClass",this.get("transitioningInClass")),this.runloopAwareReposition=function(){p(e.actions.reposition)}},willDestroyElement:function(){this._super.apply(this,arguments),this._teardown()},didReceiveAttrs:function(){this._super.apply(this,arguments) -var e=this.get("oldDropdown")||{},t=this.get("dropdown"),n=this.getProperties("top","left","right","renderInPlace"),r=n.top,i=n.left,o=n.right,s=n.renderInPlace;(!e.isOpen||null===r&&null===i&&null===o&&!1===s)&&t.isOpen?d("afterRender",this,this.open):e.isOpen&&!t.isOpen&&this.close(),this.set("oldDropdown",t)},open:function(){var e=this.get("dropdown") +this.scrollableAncestors=[],this.dropdownId="ember-basic-dropdown-content-"+e.uniqueId,this.get("animationEnabled")&&this.set("animationClass",this.get("transitioningInClass")),this.runloopAwareReposition=function(){Ember.run.join(e.actions.reposition)}},willDestroyElement:function(){this._super.apply(this,arguments),this._teardown()},didReceiveAttrs:function(){this._super.apply(this,arguments) +var e=this.get("oldDropdown")||{},t=this.get("dropdown"),n=this.getProperties("top","left","right","renderInPlace"),r=n.top,i=n.left,o=n.right,s=n.renderInPlace;(!e.isOpen||null===r&&null===i&&null===o&&!1===s)&&t.isOpen?Ember.run.scheduleOnce("afterRender",this,this.open):e.isOpen&&!t.isOpen&&this.close(),this.set("oldDropdown",t)},open:function(){var e=this.get("dropdown") this.triggerElement=this.triggerElement||document.querySelector("[data-ebd-id="+e.uniqueId+"-trigger]"),this.dropdownElement=document.getElementById(this.dropdownId),self.document.addEventListener("mousedown",this.handleRootMouseDown,!0),this.get("isTouchDevice")&&(self.document.addEventListener("touchstart",this.touchStartHandler,!0),self.document.addEventListener("touchend",this.handleRootMouseDown,!0)) var t=this.get("onFocusIn") t&&this.dropdownElement.addEventListener("focusin",function(n){return t(e,n)}) @@ -4547,7 +4543,7 @@ n&&this.dropdownElement.addEventListener("focusout",function(t){return n(e,t)}) var r=this.get("onMouseEnter") r&&this.dropdownElement.addEventListener("mouseenter",function(t){return r(e,t)}) var i=this.get("onMouseLeave") -i&&this.dropdownElement.addEventListener("mouseleave",function(t){return i(e,t)}),e.actions.reposition(),this.get("renderInPlace")||(this.destinationElement=document.getElementById(this.get("destination"))),this.scrollableAncestors=this.getScrollableAncestors(),this.addGlobalEvents(),this.addScrollHandling(),this.startObservingDomMutations(),this.get("animationEnabled")&&d("afterRender",this,this.animateIn)},close:function(){this._teardown(),this.get("animationEnabled")&&this.animateOut(this.dropdownElement),this.dropdownElement=null},handleRootMouseDown:function(e){this.hasMoved||this.dropdownElement.contains(e.target)||this.triggerElement&&this.triggerElement.contains(e.target)?this.hasMoved=!1:l(e.target,this.dropdownId)?this.hasMoved=!1:this.get("dropdown").actions.close(e,!0)},addGlobalEvents:function(){self.window.addEventListener("resize",this.runloopAwareReposition),self.window.addEventListener("orientationchange",this.runloopAwareReposition)},startObservingDomMutations:function(){var e=this +i&&this.dropdownElement.addEventListener("mouseleave",function(t){return i(e,t)}),e.actions.reposition(),this.get("renderInPlace")||(this.destinationElement=document.getElementById(this.get("destination"))),this.scrollableAncestors=this.getScrollableAncestors(),this.addGlobalEvents(),this.addScrollHandling(),this.startObservingDomMutations(),this.get("animationEnabled")&&Ember.run.scheduleOnce("afterRender",this,this.animateIn)},close:function(){this._teardown(),this.get("animationEnabled")&&this.animateOut(this.dropdownElement),this.dropdownElement=null},handleRootMouseDown:function(e){this.hasMoved||this.dropdownElement.contains(e.target)||this.triggerElement&&this.triggerElement.contains(e.target)?this.hasMoved=!1:l(e.target,this.dropdownId)?this.hasMoved=!1:this.get("dropdown").actions.close(e,!0)},addGlobalEvents:function(){self.window.addEventListener("resize",this.runloopAwareReposition),self.window.addEventListener("orientationchange",this.runloopAwareReposition)},startObservingDomMutations:function(){var e=this this.mutationObserver=new MutationObserver(function(t){(t[0].addedNodes.length||t[0].removedNodes.length)&&e.runloopAwareReposition()}),this.mutationObserver.observe(this.dropdownElement,{childList:!0,subtree:!0})},removeGlobalEvents:function(){self.window.removeEventListener("resize",this.runloopAwareReposition),self.window.removeEventListener("orientationchange",this.runloopAwareReposition)},stopObservingDomMutations:function(){this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null)},animateIn:function(){var e=this a(this.dropdownElement,function(){e.set("animationClass",e.get("transitionedInClass"))})},animateOut:function(e){var t,n,r=this.get("renderInPlace")?e.parentElement.parentElement:e.parentElement,i=e.cloneNode(!0) i.id=i.id+"--clone" @@ -4559,14 +4555,14 @@ if(this.triggerElement)for(var t=(0,r.getScrollParent)(this.triggerElement.paren return e},addScrollHandling:function(){!0===this.get("preventScroll")?(this.addPreventScrollEvent(),this.removeScrollHandling=this.removePreventScrollEvent):(this.addScrollEvents(),this.removeScrollHandling=this.removeScrollEvents)},removeScrollHandling:function(){},addPreventScrollEvent:function(){self.document.addEventListener("wheel",this.wheelHandler,{capture:!0,passive:!1})},removePreventScrollEvent:function(){self.document.removeEventListener("wheel",this.wheelHandler,{capture:!0,passive:!1})},addScrollEvents:function(){var e=this self.window.addEventListener("scroll",this.runloopAwareReposition),this.scrollableAncestors.forEach(function(t){t.addEventListener("scroll",e.runloopAwareReposition)})},removeScrollEvents:function(){var e=this self.window.removeEventListener("scroll",this.runloopAwareReposition),this.scrollableAncestors.forEach(function(t){t.removeEventListener("scroll",e.runloopAwareReposition)})},_teardown:function(){this.removeGlobalEvents(),this.removeScrollHandling(),this.destinationElement=null,this.scrollableAncestors=[],this.stopObservingDomMutations(),self.document.removeEventListener("mousedown",this.handleRootMouseDown,!0),this.get("isTouchDevice")&&(self.document.removeEventListener("touchstart",this.touchStartHandler,!0),self.document.removeEventListener("touchend",this.handleRootMouseDown,!0))}})}),define("ember-basic-dropdown/components/basic-dropdown/trigger",["exports","ember-basic-dropdown/templates/components/basic-dropdown/trigger","ember-basic-dropdown/utils/computed-fallback-if-undefined"],function(e,t,n){"use strict" -function r(e){return o(e,function(){return this.get(e)?"true":null})}Object.defineProperty(e,"__esModule",{value:!0}) -var i=Ember.Component,o=Ember.computed,s=Ember.computed.readOnly,a=!!self.window&&"ontouchstart"in self.window -e.default=i.extend({layout:t.default,isTouchDevice:a,classNames:["ember-basic-dropdown-trigger"],role:(0,n.default)("button"),ariaRole:s("role"),tabindex:0,eventType:"mousedown",classNameBindings:["inPlaceClass","hPositionClass","vPositionClass"],attributeBindings:["ariaRole:role","style","uniqueId:data-ebd-id","tabIndex:tabindex","dropdownId:aria-owns","ariaLabel:aria-label","ariaLabelledBy:aria-labelledby","ariaDescribedBy:aria-describedby","aria-autocomplete","aria-activedescendant","aria-disabled","aria-expanded","aria-haspopup","aria-invalid","aria-pressed","aria-required","title"],init:function(){var e=this +function r(e){return Ember.computed(e,function(){return this.get(e)?"true":null})}Object.defineProperty(e,"__esModule",{value:!0}) +var i=!!self.window&&"ontouchstart"in self.window +e.default=Ember.Component.extend({layout:t.default,isTouchDevice:i,classNames:["ember-basic-dropdown-trigger"],role:(0,n.default)("button"),ariaRole:Ember.computed.readOnly("role"),tabindex:0,eventType:"mousedown",classNameBindings:["inPlaceClass","hPositionClass","vPositionClass"],attributeBindings:["ariaRole:role","style","uniqueId:data-ebd-id","tabIndex:tabindex","dropdownId:aria-owns","ariaLabel:aria-label","ariaLabelledBy:aria-labelledby","ariaDescribedBy:aria-describedby","aria-autocomplete","aria-activedescendant","aria-disabled","aria-expanded","aria-haspopup","aria-invalid","aria-pressed","aria-required","title"],init:function(){var e=this this._super.apply(this,arguments) var t=this.get("dropdown") -this.uniqueId=t.uniqueId+"-trigger",this.dropdownId=this.dropdownId||"ember-basic-dropdown-content-"+t.uniqueId,this._touchMoveHandler=this._touchMoveHandler.bind(this),this._mouseupHandler=function(){self.document.removeEventListener("mouseup",e._mouseupHandler,!0),self.document.body.classList.remove("ember-basic-dropdown-text-select-disabled")}},didInsertElement:function(){this._super.apply(this,arguments),this.addMandatoryHandlers(),this.addOptionalHandlers()},willDestroyElement:function(){this._super.apply(this,arguments),self.document.removeEventListener("touchmove",this._touchMoveHandler),self.document.removeEventListener("mouseup",this._mouseupHandler,!0)},"aria-disabled":r("dropdown.disabled"),"aria-expanded":r("dropdown.isOpen"),"aria-invalid":r("ariaInvalid"),"aria-pressed":r("ariaPressed"),"aria-required":r("ariaRequired"),tabIndex:o("dropdown.disabled","tabindex",function(){var e=this.get("tabindex") -return!1===e||this.get("dropdown.disabled")?void 0:e||0}).readOnly(),inPlaceClass:o("renderInPlace",function(){if(this.get("renderInPlace"))return"ember-basic-dropdown-trigger--in-place"}),hPositionClass:o("hPosition",function(){var e=this.get("hPosition") -if(e)return"ember-basic-dropdown-trigger--"+e}),vPositionClass:o("vPosition",function(){var e=this.get("vPosition") +this.uniqueId=t.uniqueId+"-trigger",this.dropdownId=this.dropdownId||"ember-basic-dropdown-content-"+t.uniqueId,this._touchMoveHandler=this._touchMoveHandler.bind(this),this._mouseupHandler=function(){self.document.removeEventListener("mouseup",e._mouseupHandler,!0),self.document.body.classList.remove("ember-basic-dropdown-text-select-disabled")}},didInsertElement:function(){this._super.apply(this,arguments),this.addMandatoryHandlers(),this.addOptionalHandlers()},willDestroyElement:function(){this._super.apply(this,arguments),self.document.removeEventListener("touchmove",this._touchMoveHandler),self.document.removeEventListener("mouseup",this._mouseupHandler,!0)},"aria-disabled":r("dropdown.disabled"),"aria-expanded":r("dropdown.isOpen"),"aria-invalid":r("ariaInvalid"),"aria-pressed":r("ariaPressed"),"aria-required":r("ariaRequired"),tabIndex:Ember.computed("dropdown.disabled","tabindex",function(){var e=this.get("tabindex") +return!1===e||this.get("dropdown.disabled")?void 0:e||0}).readOnly(),inPlaceClass:Ember.computed("renderInPlace",function(){if(this.get("renderInPlace"))return"ember-basic-dropdown-trigger--in-place"}),hPositionClass:Ember.computed("hPosition",function(){var e=this.get("hPosition") +if(e)return"ember-basic-dropdown-trigger--"+e}),vPositionClass:Ember.computed("vPosition",function(){var e=this.get("vPosition") if(e)return"ember-basic-dropdown-trigger--"+e}),actions:{handleMouseDown:function(e){var t=this.get("dropdown") if(!t.disabled){var n=this.get("onMouseDown") if((!n||!1!==n(t,e))&&"mousedown"===this.get("eventType")){if(0!==e.button)return @@ -4602,9 +4598,9 @@ if("relative"===x||"absolute"===x){var E=_.getBoundingClientRect() d-=E.left,h-=E.top _.offsetParent&&(d-=_.offsetParent.scrollLeft,h-=_.offsetParent.scrollTop)}b=s?f:b,s&&(w.width=b) var C=d+u -if("auto"===i||"auto-left"===i){var T=Math.min(y,d+b)-Math.max(0,d),S=Math.min(y,d+f)-Math.max(0,d+f-b) -i=b>T&&S>T?"right":b>S&&T>S?"left":a||"left"}else if("auto-right"===i){var O=Math.min(y,d+b)-Math.max(0,d),P=Math.min(y,d+f)-Math.max(0,d+f-b) -i=b>P&&O>P?"left":b>O&&P>O?"right":a||"right"}"right"===i?w.right=y-(C+f):w.left="center"===i?C+(f-b)/2:C +if("auto"===i||"auto-left"===i){var T=Math.min(y,d+b)-Math.max(0,d),O=Math.min(y,d+f)-Math.max(0,d+f-b) +i=b>T&&O>T?"right":b>O&&T>O?"left":a||"left"}else if("auto-right"===i){var S=Math.min(y,d+b)-Math.max(0,d),P=Math.min(y,d+f)-Math.max(0,d+f-b) +i=b>P&&S>P?"left":b>S&&P>S?"right":a||"right"}"right"===i?w.right=y-(C+f):w.left="center"===i?C+(f-b)/2:C var A=h if("relative"===window.getComputedStyle(document.body).getPropertyValue("position")||(A+=c),"above"===o)w.top=A-v else if("below"===o)w.top=A+m @@ -4620,8 +4616,7 @@ return"above"===o?(a.verticalPosition=o,s=s||t.getBoundingClientRect(),a.style={ if("fixed"===t.position)return document.body for(var i=e;i=i.parentElement;)if(t=self.window.getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i return document.body}}),define("ember-basic-dropdown/utils/computed-fallback-if-undefined",["exports"],function(e){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return t({get:function(){return e},set:function(t,n){return void 0===n?e:n}})} -var t=Ember.computed}),define("ember-basic-dropdown/utils/scroll-helpers",["exports"],function(e){"use strict" +Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return Ember.computed({get:function(){return e},set:function(t,n){return void 0===n?e:n}})}}),define("ember-basic-dropdown/utils/scroll-helpers",["exports"],function(e){"use strict" function t(e,n,r,i){var o=r.scrollWidth-r.clientWidth,s=r.scrollHeight-r.clientHeight,a=-r.scrollLeft,l=o-r.scrollLeft,u=-r.scrollTop,c=s-r.scrollTop r.scrollLeft=r.scrollLeft+e,r.scrollTop=r.scrollTop+n,e>l?e-=l:ec?n-=c:n0?"succeed":"cancel_previous"}},e.dropButKeepLatestPolicy={cancelReason:"it belongs to a 'keepLatest' Task that was already running",schedule:function(e){n(e),e.spliceTaskInstances(this.cancelReason,e.queuedTaskInstances,0,e.queuedTaskInstances.length-1)}}}),define("ember-concurrency/-cancelable-promise-helpers",["exports","ember-concurrency/-task-instance","ember-concurrency/utils"],function(e,t,n){"use strict" function r(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e) -case 1:case"end":return t.stop()}},s,this)}function i(e){return e}function o(e,n,r){return function(i){var o=r(i),s=a.defer() +case 1:case"end":return t.stop()}},s,this)}function i(e){return e}function o(e,n,r){return function(i){var o=r(i),s=Ember.RSVP.defer() e[n](i).then(s.resolve,s.reject) -var l=!1,u=function(){l||(l=!0,o.forEach(function(e){e&&(e instanceof t.default?e.cancel():"function"==typeof e.__ec_cancel__&&e.__ec_cancel__())}))},c=s.promise.finally(u) -return c.__ec_cancel__=u,c}}Object.defineProperty(e,"__esModule",{value:!0}),e.hash=e.race=e.allSettled=e.all=void 0 -var s=regeneratorRuntime.mark(r),a=Ember.RSVP,l=Ember.RSVP.Promise,u=o(l,"all",i) +var a=!1,l=function(){a||(a=!0,o.forEach(function(e){e&&(e instanceof t.default?e.cancel():"function"==typeof e.__ec_cancel__&&e.__ec_cancel__())}))},u=s.promise.finally(l) +return u.__ec_cancel__=l,u}}Object.defineProperty(e,"__esModule",{value:!0}),e.hash=e.race=e.allSettled=e.all=void 0 +var s=regeneratorRuntime.mark(r),a=o(Ember.RSVP.Promise,"all",i) e.all=function(e){if(0===e.length)return e for(var i=0;i"},_numRunningOrNumQueued:s.or("numRunning","numQueued"),isRunning:s.bool("_numRunningOrNumQueued"),isQueued:!1}) +var s=n.pop(),a=this +t._ComputedProperty.call(this,function(e){return o.create({fn:s,context:this,_origin:this,_taskGroupPath:a._taskGroupPath,_scheduler:(0,r.resolveScheduler)(a,this,o),_propertyName:e})})}Object.defineProperty(e,"__esModule",{value:!0}),e.TaskGroup=void 0,e.TaskGroupProperty=i +var o=e.TaskGroup=Ember.Object.extend(n.default,{isTaskGroup:!0,toString:function(){return""},_numRunningOrNumQueued:Ember.computed.or("numRunning","numQueued"),isRunning:Ember.computed.bool("_numRunningOrNumQueued"),isQueued:!1}) i.prototype=Object.create(t._ComputedProperty.prototype),(0,t.objectAssign)(i.prototype,r.propertyModifiers,{constructor:i})}),define("ember-concurrency/-task-instance",["exports","ember-concurrency/utils"],function(e,t){"use strict" -function n(e){return e&&e.name===m}function r(e){return function(){var t +function n(e){return e&&e.name===o}function r(e){return function(){var t return this._hasSubscribed=!0,(t=this.get("_promise"))[e].apply(t,arguments)}}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{} -return _.create(Object.assign({args:e,fn:t,context:this},n))._start()}Object.defineProperty(e,"__esModule",{value:!0}),e.PERFORM_TYPE_LINKED=e.PERFORM_TYPE_UNLINKED=e.PERFORM_TYPE_DEFAULT=void 0,e.getRunningInstance=function(){return y[y.length-1]},e.didCancel=n,e.go=i,e.wrap=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} +return p.create(Object.assign({args:e,fn:t,context:this},n))._start()}Object.defineProperty(e,"__esModule",{value:!0}),e.PERFORM_TYPE_LINKED=e.PERFORM_TYPE_UNLINKED=e.PERFORM_TYPE_DEFAULT=void 0,e.getRunningInstance=function(){return u[u.length-1]},e.didCancel=n,e.go=i,e.wrap=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} return function(){for(var n=arguments.length,r=Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:".cancel() was explicitly called" -if(!this.isCanceling&&!h(this,"isFinished")){f(this,"isCanceling",!0) -var n=h(this,"task._propertyName")||"" -f(this,"cancelReason","TaskInstance '"+n+"' was canceled because "+e+". For more information, see: http://ember-concurrency.com/#/docs/task-cancelation-help"),this.hasStarted?this._proceedSoon(t.YIELDABLE_CANCEL,null):this._finalize(null,3)}},_defer:null,_promise:d(function(){return this._defer=o(),this._maybeResolveDefer(),this._defer.promise}),_maybeResolveDefer:function(){this._defer&&this._completionState&&(1===this._completionState?this._defer.resolve(this.value):this._defer.reject(this.error))},then:r("then"),catch:r("catch"),finally:r("finally"),_finalize:function(e,t){var n=t,r=e -this._index++,this.isCanceling&&(n=3,r=new Error(this.cancelReason),(this._debug||Ember.ENV.DEBUG_TASKS)&&Ember.Logger.log(this.cancelReason),r.name=m,r.taskInstance=this),f(this,"_completionState",n),f(this,"_result",r),1===n?(f(this,"isSuccessful",!0),f(this,"value",r)):2===n?(f(this,"isError",!0),f(this,"error",r)):3===n&&f(this,"error",r),f(this,"isFinished",!0),this._dispose(),this._runFinalizeCallbacks()},_finalizeCallbacks:null,_onFinalize:function(e){this._finalizeCallbacks||(this._finalizeCallbacks=[]),this._finalizeCallbacks.push(e),this._completionState&&this._runFinalizeCallbacks()},_runFinalizeCallbacks:function(){if(this._maybeResolveDefer(),this._finalizeCallbacks){for(var e=0,t=this._finalizeCallbacks.length;e0&&void 0!==arguments[0]?arguments[0]:".cancel() was explicitly called" +if(!this.isCanceling&&!Ember.get(this,"isFinished")){Ember.set(this,"isCanceling",!0) +var n=Ember.get(this,"task._propertyName")||"" +Ember.set(this,"cancelReason","TaskInstance '"+n+"' was canceled because "+e+". For more information, see: http://ember-concurrency.com/#/docs/task-cancelation-help"),this.hasStarted?this._proceedSoon(t.YIELDABLE_CANCEL,null):this._finalize(null,3)}},_defer:null,_promise:Ember.computed(function(){return this._defer=Ember.RSVP.defer(),this._maybeResolveDefer(),this._defer.promise}),_maybeResolveDefer:function(){this._defer&&this._completionState&&(1===this._completionState?this._defer.resolve(this.value):this._defer.reject(this.error))},then:r("then"),catch:r("catch"),finally:r("finally"),_finalize:function(e,t){var n=t,r=e +this._index++,this.isCanceling&&(n=3,r=new Error(this.cancelReason),(this._debug||Ember.ENV.DEBUG_TASKS)&&Ember.Logger.log(this.cancelReason),r.name=o,r.taskInstance=this),Ember.set(this,"_completionState",n),Ember.set(this,"_result",r),1===n?(Ember.set(this,"isSuccessful",!0),Ember.set(this,"value",r)):2===n?(Ember.set(this,"isError",!0),Ember.set(this,"error",r)):3===n&&Ember.set(this,"error",r),Ember.set(this,"isFinished",!0),this._dispose(),this._runFinalizeCallbacks()},_finalizeCallbacks:null,_onFinalize:function(e){this._finalizeCallbacks||(this._finalizeCallbacks=[]),this._finalizeCallbacks.push(e),this._completionState&&this._runFinalizeCallbacks()},_runFinalizeCallbacks:function(){if(this._maybeResolveDefer(),this._finalizeCallbacks){for(var e=0,t=this._finalizeCallbacks.length;e"},_taskInstanceFactory:t.default,perform:function(){for(var e=arguments.length,n=Array(e),r=0;r"},_taskInstanceFactory:t.default,perform:function(){for(var e=arguments.length,n=Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:".cancelAll() was explicitly called on the Task" -this._scheduler.cancelAll(e)},group:n(function(){return this._taskGroupPath&&this.context.get(this._taskGroupPath)}),_scheduler:null})}),define("ember-concurrency/-wait-for",["exports","ember-concurrency/utils"],function(e,t){"use strict" -function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.waitForQueue=function(e){return new o(e)},e.waitForEvent=function(e,t){return new s(e,t)} +var t=Ember.computed.alias +e.default=Ember.Mixin.create({isRunning:Ember.computed.gt("numRunning",0),isQueued:Ember.computed.gt("numQueued",0),isIdle:Ember.computed("isRunning","isQueued",function(){return!this.get("isRunning")&&!this.get("isQueued")}),state:Ember.computed("isRunning","isQueued",function(){return this.get("isRunning")?"running":this.get("isQueued")?"queued":"idle"}),_propertyName:null,_origin:null,name:t("_propertyName"),concurrency:t("numRunning"),last:t("_scheduler.lastStarted"),lastRunning:t("_scheduler.lastRunning"),lastPerformed:t("_scheduler.lastPerformed"),lastSuccessful:t("_scheduler.lastSuccessful"),lastComplete:t("_scheduler.lastComplete"),lastErrored:t("_scheduler.lastErrored"),lastCanceled:t("_scheduler.lastCanceled"),lastIncomplete:t("_scheduler.lastIncomplete"),performCount:t("_scheduler.performCount"),numRunning:0,numQueued:0,_seenIndex:0,cancelAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".cancelAll() was explicitly called on the Task" +this._scheduler.cancelAll(e)},group:Ember.computed(function(){return this._taskGroupPath&&this.context.get(this._taskGroupPath)}),_scheduler:null})}),define("ember-concurrency/-wait-for",["exports","ember-concurrency/utils"],function(e,t){"use strict" +function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.waitForQueue=function(e){return new i(e)},e.waitForEvent=function(e,t){return new o(e,t)} var r=function(){function e(e,t){for(var n=0;n3?r-3:0),o=3;oh.offsetHeight,_=d.querySelector("md-option[selected]"),x=d.getElementsByTagName("md-option"),E=d.getElementsByTagName("md-optgroup"),C=void 0,T=void 0,S=void 0,O=void 0 +e.default=t.default.extend({layout:n.default,triggerComponent:"paper-select-menu-trigger",calculatePosition:function(e,t,n,o){var s=o.dropdown,a=i(t),l={target:i(e),parent:i("body"),selectEl:a.find("md-select-menu"),contentEl:a.find("md-content")},u=a.get(0),c=l.target[0].firstElementChild,p=l.parent.get(0),d=l.selectEl.get(0),h=l.contentEl.get(0),f=p.getBoundingClientRect(),m=c.getBoundingClientRect(),g={left:f.left+8,top:8,bottom:f.height-8,right:f.width-8-(s.get("floatingScrollbars")?16:0)},v=m.top-g.top,b=(m.left,m.left,m.width,g.bottom-(m.top+m.height)),y=f.width-16,w=h.scrollHeight>h.offsetHeight,_=d.querySelector("md-option[selected]"),x=d.getElementsByTagName("md-option"),E=d.getElementsByTagName("md-optgroup"),C=void 0,T=void 0,O=void 0,S=void 0 C=_||(E.length?E[0]:x.length?x[0]:h.firstElementChild||h),h.offsetWidth>y&&(h.style["max-width"]=y+"px") var P=C "MD-OPTGROUP"===(P.tagName||"").toUpperCase()&&(C=P=x[0]||h.firstElementChild||h),u.style.display="block" var A=d.getBoundingClientRect(),k=function(e){return e?{left:e.offsetLeft,top:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}:{left:0,top:0,width:0,height:0}}(C) if(C){var N=window.getComputedStyle(C) k.paddingLeft=parseInt(N.paddingLeft,10)||0,k.paddingRight=parseInt(N.paddingRight,10)||0}if(w){var M=h.offsetHeight/2 -h.scrollTop=k.top+k.height/2-M,vT&&S>T?"right":b>S&&T>S?"left":a||"left"}"right"===i?w.right=y-(C+f):w.left="center"===i?C+(f-b)/2:C -var O=h+c -if("above"===o)w.top=O-v -else if("below"===o)w.top=O+m -else{var P=O+m+vv -o="below"===l&&!P&&A?"above":"above"===l&&!A&&P?"below":l||(P?"below":"above"),w.top=O+("below"===o?m:-v)}if("below"===o){var k=e.querySelector("input").getBoundingClientRect(),N=k.top,M=k.height -w.top=O+(N-h)+M}return{horizontalPosition:i,verticalPosition:o,style:w}}function n(e,t,n,r){var i=r.horizontalPosition,o=r.verticalPosition,s=void 0,a={} +if("auto"===i){var T=Math.min(y,d+b)-Math.max(0,d),O=Math.min(y,d+f)-Math.max(0,d+f-b) +i=b>T&&O>T?"right":b>O&&T>O?"left":a||"left"}"right"===i?w.right=y-(C+f):w.left="center"===i?C+(f-b)/2:C +var S=h+c +if("above"===o)w.top=S-v +else if("below"===o)w.top=S+m +else{var P=S+m+vv +o="below"===l&&!P&&A?"above":"above"===l&&!A&&P?"below":l||(P?"below":"above"),w.top=S+("below"===o?m:-v)}if("below"===o){var k=e.querySelector("input").getBoundingClientRect(),N=k.top,M=k.height +w.top=S+(N-h)+M}return{horizontalPosition:i,verticalPosition:o,style:w}}function n(e,t,n,r){var i=r.horizontalPosition,o=r.verticalPosition,s=void 0,a={} if("auto"===i){var l=e.getBoundingClientRect() s=t.getBoundingClientRect() var u=window.pageXOffset+self.window.innerWidth @@ -5677,68 +5665,66 @@ e.default={param:"minlength",message:"Must have at least %@ characters.",validat function t(e,t){return!0===t&&!n(e)||!0!==t}Object.defineProperty(e,"__esModule",{value:!0}),e.required=t var n=Ember.isEmpty e.default={param:"required",message:"This is required.",validate:t}}),define("ember-power-select/components/power-select-multiple",["exports","ember-power-select/templates/components/power-select-multiple","ember-power-select/utils/computed-fallback-if-undefined"],function(e,t,n){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}) -var r=Ember.Component,i=Ember.computed,o=Ember.isEqual -e.default=r.extend({layout:t.default,triggerComponent:(0,n.default)("power-select-multiple/trigger"),beforeOptionsComponent:(0,n.default)(null),concatenatedTriggerClass:i("triggerClass",function(){var e=["ember-power-select-multiple-trigger"] -return this.get("triggerClass")&&e.push(this.get("triggerClass")),e.join(" ")}),selected:i({get:function(){return[]},set:function(e,t){return null===t||void 0===t?[]:t}}),computedTabIndex:i("tabindex","searchEnabled","triggerComponent",function(){return"power-select-multiple/trigger"===this.get("triggerComponent")&&!1!==this.get("searchEnabled")?"-1":this.get("tabindex")}),actions:{handleOpen:function(e,t){var n=this.get("onopen") +Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.Component.extend({layout:t.default,triggerComponent:(0,n.default)("power-select-multiple/trigger"),beforeOptionsComponent:(0,n.default)(null),concatenatedTriggerClass:Ember.computed("triggerClass",function(){var e=["ember-power-select-multiple-trigger"] +return this.get("triggerClass")&&e.push(this.get("triggerClass")),e.join(" ")}),selected:Ember.computed({get:function(){return[]},set:function(e,t){return null===t||void 0===t?[]:t}}),computedTabIndex:Ember.computed("tabindex","searchEnabled","triggerComponent",function(){return"power-select-multiple/trigger"===this.get("triggerComponent")&&!1!==this.get("searchEnabled")?"-1":this.get("tabindex")}),actions:{handleOpen:function(e,t){var n=this.get("onopen") if(n&&!1===n(e,t))return!1 this.focusInput()},handleFocus:function(e,t){var n=this.get("onfocus") n&&n(e,t),this.focusInput()},handleKeydown:function(e,t){var n=this.get("onkeydown") -return n&&!1===n(e,t)?(t.stopPropagation(),!1):13===t.keyCode&&e.isOpen?(t.stopPropagation(),void 0!==e.highlighted?e.selected&&-1!==e.selected.indexOf(e.highlighted)?(e.actions.close(t),!1):(e.actions.choose(e.highlighted,t),!1):(e.actions.close(t),!1)):void 0},buildSelection:function(e,t){for(var n=(t.selected||[]).slice(0),r=-1,i=0;i-1?n.splice(r,1):n.push(e),n}},focusInput:function(){var e=this.element.querySelector(".ember-power-select-trigger-multiple-input") e&&e.focus()}})}),define("ember-power-select/components/power-select-multiple/trigger",["exports","ember-power-select/templates/components/power-select-multiple/trigger"],function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}) -var n=Ember.Component,r=Ember.get,i=Ember.computed,o=Ember.inject.service,s=Ember.run.scheduleOnce,a=Ember.isBlank,l=Ember.String.htmlSafe,u=self.window&&self.window.navigator?self.window.navigator.userAgent:"",c=u.indexOf("MSIE ")>-1||u.indexOf("Trident/")>-1,p=!!self.window&&"ontouchstart"in self.window -e.default=n.extend({tagName:"",layout:t.default,textMeasurer:o(),_lastIsOpen:!1,didInsertElement:function(){var e=this +var n=self.window&&self.window.navigator?self.window.navigator.userAgent:"",r=n.indexOf("MSIE ")>-1||n.indexOf("Trident/")>-1,i=!!self.window&&"ontouchstart"in self.window +e.default=Ember.Component.extend({tagName:"",layout:t.default,textMeasurer:Ember.inject.service(),_lastIsOpen:!1,didInsertElement:function(){var e=this this._super.apply(this,arguments) var t=this.get("select") this.input=document.getElementById("ember-power-select-trigger-multiple-input-"+t.uniqueId) var n=this.input?window.getComputedStyle(this.input):null this.inputFont=n?n.fontStyle+" "+n.fontVariant+" "+n.fontWeight+" "+n.fontSize+"/"+n.lineHeight+" "+n.fontFamily:null -var r=document.getElementById("ember-power-select-multiple-options-"+t.uniqueId),i=function(t){var n=t.target.getAttribute("data-selected-index") +var r=document.getElementById("ember-power-select-multiple-options-"+t.uniqueId),o=function(t){var n=t.target.getAttribute("data-selected-index") if(n){t.stopPropagation(),t.preventDefault() var r=e.get("select"),i=e.selectedObject(r.selected,n) r.actions.choose(i)}} -p&&r.addEventListener("touchstart",i),r.addEventListener("mousedown",i)},didReceiveAttrs:function(){var e=this.get("oldSelect")||{},t=this.set("oldSelect",this.get("select")) -e.isOpen&&!t.isOpen&&s("actions",null,t.actions.search,"")},triggerMultipleInputStyle:i("select.searchText.length","select.selected.length",function(){var e=this.get("select") -if(s("actions",e.actions.reposition),e.selected&&0!==e.selected.length){var t=0 -return this.inputFont&&(t=this.get("textMeasurer").width(e.searchText,this.inputFont)),l("width: "+(t+25)+"px")}return l("width: 100%;")}),maybePlaceholder:i("placeholder","select.selected.length",function(){if(c)return null +i&&r.addEventListener("touchstart",o),r.addEventListener("mousedown",o)},didReceiveAttrs:function(){var e=this.get("oldSelect")||{},t=this.set("oldSelect",this.get("select")) +e.isOpen&&!t.isOpen&&Ember.run.scheduleOnce("actions",null,t.actions.search,"")},triggerMultipleInputStyle:Ember.computed("select.searchText.length","select.selected.length",function(){var e=this.get("select") +if(Ember.run.scheduleOnce("actions",e.actions.reposition),e.selected&&0!==e.selected.length){var t=0 +return this.inputFont&&(t=this.get("textMeasurer").width(e.searchText,this.inputFont)),Ember.String.htmlSafe("width: "+(t+25)+"px")}return Ember.String.htmlSafe("width: 100%;")}),maybePlaceholder:Ember.computed("placeholder","select.selected.length",function(){if(r)return null var e=this.get("select") -return e.selected&&0!==r(e.selected,"length")?"":this.get("placeholder")||""}),actions:{onInput:function(e){var t=this.get("onInput") -t&&!1===t(e)||this.get("select").actions.open(e)},onKeydown:function(e){var t=this.getProperties("onKeydown","select"),n=t.onKeydown,i=t.select +return e.selected&&0!==Ember.get(e.selected,"length")?"":this.get("placeholder")||""}),actions:{onInput:function(e){var t=this.get("onInput") +t&&!1===t(e)||this.get("select").actions.open(e)},onKeydown:function(e){var t=this.getProperties("onKeydown","select"),n=t.onKeydown,r=t.select if(n&&!1===n(e))return e.stopPropagation(),!1 -if(8===e.keyCode){if(e.stopPropagation(),a(e.target.value)){var o=i.selected[i.selected.length-1] -if(o){if(i.actions.select(this.get("buildSelection")(o,i),e),"string"==typeof o)i.actions.search(o) -else{var s=this.get("searchField") -i.actions.search(r(o,s))}i.actions.open(e)}}}else(e.keyCode>=48&&e.keyCode<=90||32===e.keyCode)&&e.stopPropagation()}},selectedObject:function(e,t){return e.objectAt?e.objectAt(t):r(e,t)}})}),define("ember-power-select/components/power-select",["exports","ember-power-select/templates/components/power-select","ember-power-select/utils/computed-fallback-if-undefined","ember-power-select/utils/group-utils","ember-concurrency"],function(e,t,n,r,i){"use strict" +if(8===e.keyCode){if(e.stopPropagation(),Ember.isBlank(e.target.value)){var i=r.selected[r.selected.length-1] +if(i){if(r.actions.select(this.get("buildSelection")(i,r),e),"string"==typeof i)r.actions.search(i) +else{var o=this.get("searchField") +r.actions.search(Ember.get(i,o))}r.actions.open(e)}}}else(e.keyCode>=48&&e.keyCode<=90||32===e.keyCode)&&e.stopPropagation()}},selectedObject:function(e,t){return e.objectAt?e.objectAt(t):Ember.get(e,t)}})}),define("ember-power-select/components/power-select",["exports","ember-power-select/templates/components/power-select","ember-power-select/utils/computed-fallback-if-undefined","ember-power-select/utils/group-utils","ember-concurrency"],function(e,t,n,r,i){"use strict" function o(e,t){return t&&e.push(t),e.join(" ")}function s(e){return e.toArray?e.toArray():e}Object.defineProperty(e,"__esModule",{value:!0}) -var a=Ember.Component,l=Ember.computed,u=Ember.run.scheduleOnce,c=Ember.getOwner,p=Ember.isEqual,d=Ember.get,h=Ember.set,f=Ember.isBlank,m=Ember.isArray,g=Ember.ArrayProxy,v=Object.assign||function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r0)}),actions:{registerAPI:function(e){if(e){var t=v({},this.get("publicAPI"),e) -t.actions=v({},e.actions,this._publicAPIActions),this.setProperties({publicAPI:t,optionsId:"ember-power-select-options-"+t.uniqueId}) +e&&e(null)},inTesting:Ember.computed(function(){return"test"===Ember.getOwner(this).resolveRegistration("config:environment").environment}),selected:Ember.computed({get:function(){return null},set:function(e,t){return t&&t.then?this.get("_updateSelectedTask").perform(t):Ember.run.scheduleOnce("actions",this,this.updateSelection,t),t}}),options:Ember.computed({get:function(){return[]},set:function(e,t,n){return t===n?t:(t&&t.then?this.get("_updateOptionsTask").perform(t):Ember.run.scheduleOnce("actions",this,this.updateOptions,t),t)}}),optionMatcher:Ember.computed("searchField","matcher",function(){var e=this.getProperties("matcher","searchField"),t=e.matcher,n=e.searchField +return n&&t===r.defaultMatcher?function(e,r){return t(Ember.get(e,n),r)}:function(e,n){return t(e,n)}}),concatenatedTriggerClasses:Ember.computed("triggerClass","publicAPI.isActive",function(){var e=["ember-power-select-trigger"] +return this.get("publicAPI.isActive")&&e.push("ember-power-select-trigger--active"),o(e,this.get("triggerClass"))}),concatenatedDropdownClasses:Ember.computed("dropdownClass","publicAPI.isActive",function(){var e=["ember-power-select-dropdown"] +return this.get("publicAPI.isActive")&&e.push("ember-power-select-dropdown--active"),o(e,this.get("dropdownClass"))}),mustShowSearchMessage:Ember.computed("publicAPI.{loading,searchText,resultsCount}","search","searchMessage",function(){var e=this.get("publicAPI") +return!e.loading&&0===e.searchText.length&&!!this.get("search")&&!!this.get("searchMessage")&&0===e.resultsCount}),mustShowNoMessages:Ember.computed("search","publicAPI.{lastSearchedText,resultsCount,loading}",function(){var e=this.get("publicAPI") +return!e.loading&&0===e.resultsCount&&(!this.get("search")||e.lastSearchedText.length>0)}),actions:{registerAPI:function(e){if(e){var t=a({},this.get("publicAPI"),e) +t.actions=a({},e.actions,this._publicAPIActions),this.setProperties({publicAPI:t,optionsId:"ember-power-select-options-"+t.uniqueId}) var n=this.get("registerAPI") n&&n(t)}},onOpen:function(e,t){var n=this.get("onopen") if(n&&!1===n(this.get("publicAPI"),t))return!1 t&&(this.openingEvent=t,"keydown"!==t.type||38!==t.keyCode&&40!==t.keyCode||t.preventDefault()),this.resetHighlighted()},onClose:function(e,t){var n=this.get("onclose") if(n&&!1===n(this.get("publicAPI"),t))return!1 t&&(this.openingEvent=null),this.updateState({highlighted:void 0})},onInput:function(e){var t=e.target.value,n=this.get("oninput"),r=this.get("publicAPI"),i=void 0 -n&&!1===(i=n(t,r,e))||r.actions.search("string"==typeof i?i:t)},highlight:function(e){e&&d(e,"disabled")||this.updateState({highlighted:e})},select:function(e,t){var n=this.get("publicAPI") -p(n.selected,e)||this.get("onchange")(e,n,t)},search:function(e){f(e)?this._resetSearch():this.get("search")?this._performSearch(e):this._performFilter(e)},choose:function(e,t){if(!(!this.get("inTesting")&&t&&t.clientY&&this.openingEvent&&this.openingEvent.clientY&&Math.abs(this.openingEvent.clientY-t.clientY)<2)){var n=this.get("publicAPI") +n&&!1===(i=n(t,r,e))||r.actions.search("string"==typeof i?i:t)},highlight:function(e){e&&Ember.get(e,"disabled")||this.updateState({highlighted:e})},select:function(e,t){var n=this.get("publicAPI") +Ember.isEqual(n.selected,e)||this.get("onchange")(e,n,t)},search:function(e){Ember.isBlank(e)?this._resetSearch():this.get("search")?this._performSearch(e):this._performFilter(e)},choose:function(e,t){if(!(!this.get("inTesting")&&t&&t.clientY&&this.openingEvent&&this.openingEvent.clientY&&Math.abs(this.openingEvent.clientY-t.clientY)<2)){var n=this.get("publicAPI") return n.actions.select(this.get("buildSelection")(e,n),t),this.get("closeOnSelect")?(n.actions.close(t),!1):void 0}},onTriggerKeydown:function(e,t){var n=this.get("onkeydown") return(!n||!1!==n(this.get("publicAPI"),t))&&(!t.ctrlKey&&!t.metaKey&&(t.keyCode>=48&&t.keyCode<=90||this._isNumpadKeyEvent(t)?void this.get("triggerTypingTask").perform(t):32===t.keyCode?this._handleKeySpace(t):this._routeKeydown(t)))},onKeydown:function(e){var t=this.get("onkeydown") return(!t||!1!==t(this.get("publicAPI"),e))&&this._routeKeydown(e)},scrollTo:function(e){if(self.document&&e){var t=this.get("publicAPI"),n=this.get("scrollTo") @@ -5756,14 +5742,14 @@ t&&t(this.get("publicAPI"),e)},onTriggerBlur:function(e,t){this.send("deactivate var n=this.get("onblur") n&&n(this.get("publicAPI"),t)},onBlur:function(e){this.send("deactivate") var t=this.get("onblur") -t&&t(this.get("publicAPI"),e)},activate:function(){u("actions",this,"setIsActive",!0)},deactivate:function(){u("actions",this,"setIsActive",!1)}},triggerTypingTask:(0,i.task)(regeneratorRuntime.mark(function e(t){var n,o,s,a,l -return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.get("publicAPI"),o=t.keyCode,this._isNumpadKeyEvent(t)&&(o-=48),s=n._expirableSearchText+String.fromCharCode(o),this.updateState({_expirableSearchText:s}),a=this.filter(n.options,s,!0),d(a,"length")>0&&void 0!==(l=(0,r.optionAtIndex)(a,0))&&(n.isOpen?(n.actions.highlight(l.option,t),n.actions.scrollTo(l.option,t)):n.actions.select(l.option,t)),e.next=9,(0,i.timeout)(1e3) +t&&t(this.get("publicAPI"),e)},activate:function(){Ember.run.scheduleOnce("actions",this,"setIsActive",!0)},deactivate:function(){Ember.run.scheduleOnce("actions",this,"setIsActive",!1)}},triggerTypingTask:(0,i.task)(regeneratorRuntime.mark(function e(t){var n,o,s,a,l +return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.get("publicAPI"),o=t.keyCode,this._isNumpadKeyEvent(t)&&(o-=48),s=n._expirableSearchText+String.fromCharCode(o),this.updateState({_expirableSearchText:s}),a=this.filter(n.options,s,!0),Ember.get(a,"length")>0&&void 0!==(l=(0,r.optionAtIndex)(a,0))&&(n.isOpen?(n.actions.highlight(l.option,t),n.actions.scrollTo(l.option,t)):n.actions.select(l.option,t)),e.next=9,(0,i.timeout)(1e3) case 9:this.updateState({_expirableSearchText:""}) case 10:case"end":return e.stop()}},e,this)})).restartable(),_updateSelectedTask:(0,i.task)(regeneratorRuntime.mark(function e(t){var n return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t case 2:n=e.sent,this.updateSelection(n) case 4:case"end":return e.stop()}},e,this)})).restartable(),_updateOptionsTask:(0,i.task)(regeneratorRuntime.mark(function e(t){var n -return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t instanceof g&&this.updateOptions(t.get("content")),this.updateState({loading:!0}),e.prev=2,e.next=5,t +return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t instanceof Ember.ArrayProxy&&this.updateOptions(t.get("content")),this.updateState({loading:!0}),e.prev=2,e.next=5,t case 5:n=e.sent,this.updateOptions(n) case 7:return e.prev=7,this.updateState({loading:!1}),e.finish(7) case 10:case"end":return e.stop()}},e,this,[[2,,7,10]])})).restartable(),handleAsyncSearchTask:(0,i.task)(regeneratorRuntime.mark(function e(t,n){var i,o @@ -5773,12 +5759,12 @@ break case 10:e.prev=10,e.t0=e.catch(0),this.updateState({lastSearchedText:t,loading:!1}) case 13:return e.prev=13,"function"==typeof n.cancel&&n.cancel(),e.finish(13) case 16:case"end":return e.stop()}},e,this,[[0,10,13,16]])})).restartable(),setIsActive:function(e){this.updateState({isActive:e})},filter:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2] -return(0,r.filterOptions)(e||[],t,this.get("optionMatcher"),n)},updateOptions:function(e){this._removeObserversInOptions(),e&&(e&&e.addObserver&&(e.addObserver("[]",this,this._updateOptionsAndResults),this._observedOptions=e),this._updateOptionsAndResults(e))},updateSelection:function(e){this._removeObserversInSelected(),m(e)?(e&&e.addObserver&&(e.addObserver("[]",this,this._updateSelectedArray),this._observedSelected=e),this._updateSelectedArray(e)):e!==this.get("publicAPI").selected&&this.updateState({selected:e,highlighted:e})},resetHighlighted:function(){var e=this.get("publicAPI"),t=this.get("defaultHighlighted"),n=void 0 -n="function"==typeof t?t(e):t,this.updateState({highlighted:n})},_updateOptionsAndResults:function(e){if(!d(this,"isDestroying")){var t=s(e),n=void 0 +return(0,r.filterOptions)(e||[],t,this.get("optionMatcher"),n)},updateOptions:function(e){this._removeObserversInOptions(),e&&(e&&e.addObserver&&(e.addObserver("[]",this,this._updateOptionsAndResults),this._observedOptions=e),this._updateOptionsAndResults(e))},updateSelection:function(e){this._removeObserversInSelected(),Ember.isArray(e)?(e&&e.addObserver&&(e.addObserver("[]",this,this._updateSelectedArray),this._observedSelected=e),this._updateSelectedArray(e)):e!==this.get("publicAPI").selected&&this.updateState({selected:e,highlighted:e})},resetHighlighted:function(){var e=this.get("publicAPI"),t=this.get("defaultHighlighted"),n=void 0 +n="function"==typeof t?t(e):t,this.updateState({highlighted:n})},_updateOptionsAndResults:function(e){if(!Ember.get(this,"isDestroying")){var t=s(e),n=void 0 if(this.get("search"))n=this.updateState({options:t,results:t,resultsCount:(0,r.countOptions)(t),loading:!1}) else{n=this.get("publicAPI") -var i=f(n.searchText)?t:this.filter(t,n.searchText) -n=this.updateState({results:i,options:t,resultsCount:(0,r.countOptions)(i),loading:!1})}n.isOpen&&this.resetHighlighted()}},_updateSelectedArray:function(e){d(this,"isDestroyed")||this.updateState({selected:s(e)})},_resetSearch:function(){var e=this.get("publicAPI").options +var i=Ember.isBlank(n.searchText)?t:this.filter(t,n.searchText) +n=this.updateState({results:i,options:t,resultsCount:(0,r.countOptions)(i),loading:!1})}n.isOpen&&this.resetHighlighted()}},_updateSelectedArray:function(e){Ember.get(this,"isDestroyed")||this.updateState({selected:s(e)})},_resetSearch:function(){var e=this.get("publicAPI").options this.get("handleAsyncSearchTask").cancelAll(),this.updateState({results:e,searchText:"",lastSearchedText:"",resultsCount:(0,r.countOptions)(e),loading:!1})},_performFilter:function(e){var t=this.filter(this.get("publicAPI").options,e) this.updateState({results:t,searchText:e,lastSearchedText:e,resultsCount:(0,r.countOptions)(t)}),this.resetHighlighted()},_performSearch:function(e){var t=this.get("search"),n=this.updateState({searchText:e}),i=t(e,n) if(i)if(i.then)this.get("handleAsyncSearchTask").perform(e,i) @@ -5788,60 +5774,49 @@ if(t.isOpen){e.preventDefault(),e.stopPropagation() var n=40===e.keyCode?1:-1,i=(0,r.advanceSelectableOption)(t.results,t.highlighted,n) t.actions.highlight(i,e),t.actions.scrollTo(i)}else t.actions.open(e)},_handleKeyEnter:function(e){var t=this.get("publicAPI") if(t.isOpen&&void 0!==t.highlighted)return t.actions.choose(t.highlighted,e),!1},_handleKeySpace:function(e){var t=this.get("publicAPI") -if(t.isOpen&&void 0!==t.highlighted)return e.preventDefault(),t.actions.choose(t.highlighted,e),!1},_handleKeyTab:function(e){this.get("publicAPI").actions.close(e)},_handleKeyESC:function(e){this.get("publicAPI").actions.close(e)},_removeObserversInOptions:function(){this._observedOptions&&this._observedOptions.removeObserver("[]",this,this._updateOptionsAndResults)},_removeObserversInSelected:function(){this._observedSelected&&this._observedSelected.removeObserver("[]",this,this._updateSelectedArray)},_isNumpadKeyEvent:function(e){return e.keyCode>=96&&e.keyCode<=105},updateState:function(e){var t=h(this,"publicAPI",v({},this.get("publicAPI"),e)),n=this.get("registerAPI") +if(t.isOpen&&void 0!==t.highlighted)return e.preventDefault(),t.actions.choose(t.highlighted,e),!1},_handleKeyTab:function(e){this.get("publicAPI").actions.close(e)},_handleKeyESC:function(e){this.get("publicAPI").actions.close(e)},_removeObserversInOptions:function(){this._observedOptions&&this._observedOptions.removeObserver("[]",this,this._updateOptionsAndResults)},_removeObserversInSelected:function(){this._observedSelected&&this._observedSelected.removeObserver("[]",this,this._updateSelectedArray)},_isNumpadKeyEvent:function(e){return e.keyCode>=96&&e.keyCode<=105},updateState:function(e){var t=Ember.set(this,"publicAPI",a({},this.get("publicAPI"),e)),n=this.get("registerAPI") return n&&n(t),t}})}),define("ember-power-select/components/power-select/before-options",["exports","ember-power-select/templates/components/power-select/before-options"],function(e,t){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}) -var n=Ember.Component,r=Ember.run.scheduleOnce -e.default=n.extend({tagName:"",layout:t.default,autofocus:!0,didInsertElement:function(){this._super.apply(this,arguments),this.get("autofocus")&&this.focusInput()},willDestroyElement:function(){this._super.apply(this,arguments),this.get("searchEnabled")&&r("actions",this,this.get("select").actions.search,"")},actions:{onKeydown:function(e){var t=this.get("onKeydown") +Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.Component.extend({tagName:"",layout:t.default,autofocus:!0,didInsertElement:function(){this._super.apply(this,arguments),this.get("autofocus")&&this.focusInput()},willDestroyElement:function(){this._super.apply(this,arguments),this.get("searchEnabled")&&Ember.run.scheduleOnce("actions",this,this.get("select").actions.search,"")},actions:{onKeydown:function(e){var t=this.get("onKeydown") if(!1===t(e))return!1 -if(13===e.keyCode){this.get("select").actions.close(e)}}},focusInput:function(){this.input=self.document.querySelector('.ember-power-select-search-input[aria-controls="'+this.get("listboxId")+'"]'),this.input&&r("afterRender",this.input,"focus")}})}),define("ember-power-select/components/power-select/options",["exports","ember-power-select/templates/components/power-select/options"],function(e,t){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}) -var n=Ember.Component,r=Ember.computed;(function(e){"function"!=typeof e.matches&&(e.matches=e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector),"function"!=typeof e.closest&&(e.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t -t=t.parentNode}return null})})(window.Element.prototype),e.default=n.extend({isTouchDevice:!!self.window&&"ontouchstart"in self.window,layout:t.default,tagName:"ul",attributeBindings:["role","aria-controls"],role:"listbox",didInsertElement:function(){var e=this +if(13===e.keyCode){this.get("select").actions.close(e)}}},focusInput:function(){this.input=self.document.querySelector('.ember-power-select-search-input[aria-controls="'+this.get("listboxId")+'"]'),this.input&&Ember.run.scheduleOnce("afterRender",this.input,"focus")}})}),define("ember-power-select/components/power-select/options",["exports","ember-power-select/templates/components/power-select/options"],function(e,t){"use strict" +Object.defineProperty(e,"__esModule",{value:!0}),function(e){"function"!=typeof e.matches&&(e.matches=e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector),"function"!=typeof e.closest&&(e.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t +t=t.parentNode}return null})}(window.Element.prototype),e.default=Ember.Component.extend({isTouchDevice:!!self.window&&"ontouchstart"in self.window,layout:t.default,tagName:"ul",attributeBindings:["role","aria-controls"],role:"listbox",didInsertElement:function(){var e=this if(this._super.apply(this,arguments),"group"!==this.get("role")){var t=function(t,n){var r=n.target.closest("[data-option-index]") if(r&&!r.closest("[aria-disabled=true]")){var i=r.getAttribute("data-option-index") t(e._optionFromIndex(i),n)}} if(this.element.addEventListener("mouseup",function(n){return t(e.get("select.actions.choose"),n)}),this.element.addEventListener("mouseover",function(n){return t(e.get("select.actions.highlight"),n)}),this.get("isTouchDevice")&&this._addTouchEvents(),"group"!==this.get("role")){var n=this.get("select") -n.actions.scrollTo(n.highlighted)}}},"aria-controls":r("select.uniqueId",function(){return"ember-power-select-trigger-"+this.get("select.uniqueId")}),_addTouchEvents:function(){var e=this,t=function t(){e.hasMoved=!0,e.element&&e.element.removeEventListener("touchmove",t)} +n.actions.scrollTo(n.highlighted)}}},"aria-controls":Ember.computed("select.uniqueId",function(){return"ember-power-select-trigger-"+this.get("select.uniqueId")}),_addTouchEvents:function(){var e=this,t=function t(){e.hasMoved=!0,e.element&&e.element.removeEventListener("touchmove",t)} this.element.addEventListener("touchstart",function(){e.element.addEventListener("touchmove",t)}),this.element.addEventListener("touchend",function(t){var n=t.target.closest("[data-option-index]") if(n)if(t.preventDefault(),e.hasMoved)e.hasMoved=!1 else{var r=n.getAttribute("data-option-index") e.get("select.actions.choose")(e._optionFromIndex(r),t)}})},_optionFromIndex:function(e){for(var t=e.split("."),n=this.get("options")[parseInt(t[0],10)],r=1;r-1)return a}else{if(s===n)return r r++}}return-1}(e)}function i(e,n){var r=0 return function e(i,o){if(!i||n<0)return{disabled:!1,option:void 0} -for(var s=0,a=u(i,"length");r<=n&&s3&&void 0!==arguments[3]&&arguments[3],s=l(),a=u(e,"length"),c=0;c0){var h={groupName:p.groupName,options:d} -p.hasOwnProperty("disabled")&&(h.disabled=p.disabled),s.push(h)}}else r(p,n)>=0&&s.push(p)}return s}function s(e,t,o){for(var s=n(e),a=Math.min(Math.max(r(e,t)+o,0),s-1),l=i(e,a),u=l.disabled,c=l.option;c&&u;){var p=i(e,a+=o) -u=p.disabled,c=p.option}return c}function a(e){return(""+e).replace(/[^\u0000-\u007E]/g,function(e){return c[e]||e})}Object.defineProperty(e,"__esModule",{value:!0}),e.isGroup=t,e.countOptions=n,e.indexOfOption=r,e.optionAtIndex=i,e.filterOptions=o,e.defaultHighlighted=function(e){var t=e.results,n=e.highlighted,i=e.selected,o=n||i +for(var s=0,a=Ember.get(i,"length");r<=n&&s3&&void 0!==arguments[3]&&arguments[3],s=Ember.A(),a=Ember.get(e,"length"),l=0;l0){var p={groupName:u.groupName,options:c} +u.hasOwnProperty("disabled")&&(p.disabled=u.disabled),s.push(p)}}else r(u,n)>=0&&s.push(u)}return s}function s(e,t,o){for(var s=n(e),a=Math.min(Math.max(r(e,t)+o,0),s-1),l=i(e,a),u=l.disabled,c=l.option;c&&u;){var p=i(e,a+=o) +u=p.disabled,c=p.option}return c}function a(e){return(""+e).replace(/[^\u0000-\u007E]/g,function(e){return l[e]||e})}Object.defineProperty(e,"__esModule",{value:!0}),e.isGroup=t,e.countOptions=n,e.indexOfOption=r,e.optionAtIndex=i,e.filterOptions=o,e.defaultHighlighted=function(e){var t=e.results,n=e.highlighted,i=e.selected,o=n||i return void 0===o||-1===r(t,o)?s(t,o,1):o},e.advanceSelectableOption=s,e.stripDiacritics=a,e.defaultMatcher=function(e,t){return a(e).toUpperCase().indexOf(a(t).toUpperCase())} -var l=Ember.A,u=Ember.get,c={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),define("ember-resolver/features",[],function(){"use strict"}),define("ember-resolver/index",["exports","ember-resolver/resolvers/classic"],function(e,t){"use strict" +var l={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),define("ember-resolver/features",[],function(){"use strict"}),define("ember-resolver/index",["exports","ember-resolver/resolvers/classic"],function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("ember-resolver/resolver",["exports","ember-resolver/resolvers/classic"],function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("ember-resolver/resolvers/classic/container-debug-adapter",["exports","ember-resolver/resolvers/classic/index"],function(e,t){"use strict" function n(e,t,n){var r=t.match(new RegExp("^/?"+n+"/(.+)/"+e+"$")) @@ -5930,56 +5904,33 @@ for(var r=e.split(/\n/),i=r.length,o=0;ot&&(i++,l=c)}var p=this.ctx.measureText(a[u]).width;(l+=p)>t&&(i++,l=p)}}return i},fitTextSize:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.width(e,n),i=this.ctx.font.match(/\d+/)[0] return Math.floor(parseFloat(i)*t/r)}})}),define("ember-truth-helpers/helpers/and",["exports","ember-truth-helpers/utils/truth-convert"],function(e,t){"use strict" function n(e){for(var n=0,r=e.length;nr}Object.defineProperty(e,"__esModule",{value:!0}),e.gt=t -var n=Ember.Helper.helper -e.default=n(t)}),define("ember-truth-helpers/helpers/gte",["exports"],function(e){"use strict" +return t.forceNumber&&("number"!=typeof n&&(n=Number(n)),"number"!=typeof r&&(r=Number(r))),n>r}Object.defineProperty(e,"__esModule",{value:!0}),e.gt=t,e.default=Ember.Helper.helper(t)}),define("ember-truth-helpers/helpers/gte",["exports"],function(e){"use strict" function t(e,t){var n=e[0],r=e[1] -return t.forceNumber&&("number"!=typeof n&&(n=Number(n)),"number"!=typeof r&&(r=Number(r))),n>=r}Object.defineProperty(e,"__esModule",{value:!0}),e.gte=t -var n=Ember.Helper.helper -e.default=n(t)}),define("ember-truth-helpers/helpers/is-array",["exports"],function(e){"use strict" -function t(e){for(var t=0,n=e.length;t=r}Object.defineProperty(e,"__esModule",{value:!0}),e.gte=t,e.default=Ember.Helper.helper(t)}),define("ember-truth-helpers/helpers/is-array",["exports"],function(e){"use strict" +function t(e){for(var t=0,n=e.length;t - + @@ -62,8 +62,8 @@ - - + +