Update git submodules
This commit is contained in:
1 parent
8248dfa004
commit
6b0e29ad55
8 files changed
+14
-12
No files matched your search
@@ -1,2 +1,2 @@
|
||||
""" DO NOT MODIFY. Auto-generated by build_frontend script """
|
||||
VERSION = "da794fc1ed833dc07e99c1e2f0d319be"
|
||||
VERSION = "28c0680cf6ebd969dc5710c22d9c4075"
|
||||
@@ -11,12 +11,14 @@ window.PolymerGestures={},function(a){var b=!1,c=document.createElement("meta");
|
||||
LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ThisExpression:"ThisExpression",UnaryExpression:"UnaryExpression"},V={UnexpectedToken:"Unexpected token %0",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared"};var ab=H,bb=L;a.esprima={parse:R}}(this),function(a){"use strict";function b(a,b,d,e){var f;try{if(f=c(a),f.scopeIdent&&(d.nodeType!==Node.ELEMENT_NODE||"TEMPLATE"!==d.tagName||"bind"!==b&&"repeat"!==b))throw Error("as and in can only be used within <template bind/repeat>")}catch(g){return void console.error("Invalid expression syntax: "+a,g)}return function(a,b,c){var d=f.getBinding(a,e,c);return f.scopeIdent&&d&&(b.polymerExpressionScopeIdent_=f.scopeIdent,f.indexIdent&&(b.polymerExpressionIndexIdent_=f.indexIdent)),d}}function c(a){var b=q[a];if(!b){var c=new j;esprima.parse(a,c),b=new l(c),q[a]=b}return b}function d(a){this.value=a,this.valueFn_=void 0}function e(a){this.name=a,this.path=Path.get(a)}function f(a,b,c){this.computed="["==c,this.dynamicDeps="function"==typeof a||a.dynamicDeps||this.computed&&!(b instanceof d),this.simplePath=!this.dynamicDeps&&(b instanceof e||b instanceof d)&&(a instanceof f||a instanceof e),this.object=this.simplePath?a:i(a),this.property=!this.computed||this.simplePath?b:i(b)}function g(a,b){this.name=a,this.args=[];for(var c=0;c<b.length;c++)this.args[c]=i(b[c])}function h(){throw Error("Not Implemented")}function i(a){return"function"==typeof a?a:a.valueFn()}function j(){this.expression=null,this.filters=[],this.deps={},this.currentPath=void 0,this.scopeIdent=void 0,this.indexIdent=void 0,this.dynamicDeps=!1}function k(a){this.value_=a}function l(a){if(this.scopeIdent=a.scopeIdent,this.indexIdent=a.indexIdent,!a.expression)throw Error("No expression found.");this.expression=a.expression,i(this.expression),this.filters=a.filters,this.dynamicDeps=a.dynamicDeps}function m(a){return String(a).replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()})}function n(a,b){for(;a[t]&&!Object.prototype.hasOwnProperty.call(a,b);)a=a[t];return a}function o(a){switch(a){case"":return!1;case"false":case"null":case"true":return!0}return isNaN(Number(a))?!1:!0}function p(){}var q=Object.create(null);d.prototype={valueFn:function(){if(!this.valueFn_){var a=this.value;this.valueFn_=function(){return a}}return this.valueFn_}},e.prototype={valueFn:function(){if(!this.valueFn_){var a=(this.name,this.path);this.valueFn_=function(b,c){return c&&c.addPath(b,a),a.getValueFrom(b)}}return this.valueFn_},setValue:function(a,b){return 1==this.path.length&&(a=n(a,this.path[0])),this.path.setValueFrom(a,b)}},f.prototype={get fullPath(){if(!this.fullPath_){var a=this.object instanceof f?this.object.fullPath.slice():[this.object.name];a.push(this.property instanceof e?this.property.name:this.property.value),this.fullPath_=Path.get(a)}return this.fullPath_},valueFn:function(){if(!this.valueFn_){var a=this.object;if(this.simplePath){var b=this.fullPath;this.valueFn_=function(a,c){return c&&c.addPath(a,b),b.getValueFrom(a)}}else if(this.computed){var c=this.property;this.valueFn_=function(b,d,e){var f=a(b,d,e),g=c(b,d,e);return d&&d.addPath(f,[g]),f?f[g]:void 0}}else{var b=Path.get(this.property.name);this.valueFn_=function(c,d,e){var f=a(c,d,e);return d&&d.addPath(f,b),b.getValueFrom(f)}}}return this.valueFn_},setValue:function(a,b){if(this.simplePath)return this.fullPath.setValueFrom(a,b),b;var c=this.object(a),d=this.property instanceof e?this.property.name:this.property(a);return c[d]=b}},g.prototype={transform:function(a,b,c,d,e){var f=a,g=f[this.name];if(!g&&(g=c[this.name],!g))return void console.error("Cannot find function or filter: "+this.name);if(d?g=g.toModel:"function"==typeof g.toDOM&&(g=g.toDOM),"function"!=typeof g)return void console.error("Cannot find function or filter: "+this.name);for(var h=e||[],j=0;j<this.args.length;j++)h.push(i(this.args[j])(a,b,c));return g.apply(f,h)}};var r={"+":function(a){return+a},"-":function(a){return-a},"!":function(a){return!a}},s={"+":function(a,b){return a+b},"-":function(a,b){return a-b},"*":function(a,b){return a*b},"/":function(a,b){return a/b},"%":function(a,b){return a%b},"<":function(a,b){return b>a},">":function(a,b){return a>b},"<=":function(a,b){return b>=a},">=":function(a,b){return a>=b},"==":function(a,b){return a==b},"!=":function(a,b){return a!=b},"===":function(a,b){return a===b},"!==":function(a,b){return a!==b},"&&":function(a,b){return a&&b},"||":function(a,b){return a||b}};j.prototype={createUnaryExpression:function(a,b){if(!r[a])throw Error("Disallowed operator: "+a);return b=i(b),function(c,d,e){return r[a](b(c,d,e))}},createBinaryExpression:function(a,b,c){if(!s[a])throw Error("Disallowed operator: "+a);switch(b=i(b),c=i(c),a){case"||":return this.dynamicDeps=!0,function(a,d,e){return b(a,d,e)||c(a,d,e)};case"&&":return this.dynamicDeps=!0,function(a,d,e){return b(a,d,e)&&c(a,d,e)}}return functiLine truncated
|
||||
|
||||
if(this.removeAttribute("value"),c)return j(this,"value",b);var e=b,f=m(this,"value",e);return j(this,"value",e.open(k(this,"value",d))),t(this,a,f)},HTMLOptionElement.prototype.bind=function(a,b,c){if("value"!==a)return HTMLElement.prototype.bind.call(this,a,b,c);if(this.removeAttribute("value"),c)return q(this,b);var d=b,e=m(this,"value",d);return q(this,d.open(r(this))),t(this,a,e)},HTMLSelectElement.prototype.bind=function(a,c,d){if("selectedindex"===a&&(a="selectedIndex"),"selectedIndex"!==a&&"value"!==a)return HTMLElement.prototype.bind.call(this,a,c,d);if(this.removeAttribute(a),d)return j(this,a,c);var e=c,f=m(this,a,e);return j(this,a,e.open(k(this,a))),b(this,a,f)}}(this),function(a){"use strict";function b(a){if(!a)throw new Error("Assertion failed")}function c(a){for(var b;b=a.parentNode;)a=b;return a}function d(a,b){if(b){for(var d,e="#"+b;!d&&(a=c(a),a.protoContent_?d=a.protoContent_.querySelector(e):a.getElementById&&(d=a.getElementById(b)),!d&&a.templateCreator_);)a=a.templateCreator_;return d}}function e(a){return"template"==a.tagName&&"http://www.w3.org/2000/svg"==a.namespaceURI}function f(a){return"TEMPLATE"==a.tagName&&"http://www.w3.org/1999/xhtml"==a.namespaceURI}function g(a){return Boolean(L[a.tagName]&&a.hasAttribute("template"))}function h(a){return void 0===a.isTemplate_&&(a.isTemplate_="TEMPLATE"==a.tagName||g(a)),a.isTemplate_}function i(a,b){var c=a.querySelectorAll(N);h(a)&&b(a),G(c,b)}function j(a){function b(a){HTMLTemplateElement.decorate(a)||j(a.content)}i(a,b)}function k(a,b){Object.getOwnPropertyNames(b).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))})}function l(a){var b=a.ownerDocument;if(!b.defaultView)return b;var c=b.templateContentsOwner_;if(!c){for(c=b.implementation.createHTMLDocument("");c.lastChild;)c.removeChild(c.lastChild);b.templateContentsOwner_=c}return c}function m(a){if(!a.stagingDocument_){var b=a.ownerDocument;if(!b.stagingDocument_){b.stagingDocument_=b.implementation.createHTMLDocument(""),b.stagingDocument_.isStagingDocument=!0;var c=b.stagingDocument_.createElement("base");c.href=document.baseURI,b.stagingDocument_.head.appendChild(c),b.stagingDocument_.stagingDocument_=b.stagingDocument_}a.stagingDocument_=b.stagingDocument_}return a.stagingDocument_}function n(a){var b=a.ownerDocument.createElement("template");a.parentNode.insertBefore(b,a);for(var c=a.attributes,d=c.length;d-->0;){var e=c[d];K[e.name]&&("template"!==e.name&&b.setAttribute(e.name,e.value),a.removeAttribute(e.name))}return b}function o(a){var b=a.ownerDocument.createElement("template");a.parentNode.insertBefore(b,a);for(var c=a.attributes,d=c.length;d-->0;){var e=c[d];b.setAttribute(e.name,e.value),a.removeAttribute(e.name)}return a.parentNode.removeChild(a),b}function p(a,b,c){var d=a.content;if(c)return void d.appendChild(b);for(var e;e=b.firstChild;)d.appendChild(e)}function q(a){P?a.__proto__=HTMLTemplateElement.prototype:k(a,HTMLTemplateElement.prototype)}function r(a){a.setModelFn_||(a.setModelFn_=function(){a.setModelFnScheduled_=!1;var b=z(a,a.delegate_&&a.delegate_.prepareBinding);w(a,b,a.model_)}),a.setModelFnScheduled_||(a.setModelFnScheduled_=!0,Observer.runEOM_(a.setModelFn_))}function s(a,b,c,d){if(a&&a.length){for(var e,f=a.length,g=0,h=0,i=0,j=!0;f>h;){var g=a.indexOf("{{",h),k=a.indexOf("[[",h),l=!1,m="}}";if(k>=0&&(0>g||g>k)&&(g=k,l=!0,m="]]"),i=0>g?-1:a.indexOf(m,g+2),0>i){if(!e)return;e.push(a.slice(h));break}e=e||[],e.push(a.slice(h,g));var n=a.slice(g+2,i).trim();e.push(l),j=j&&l;var o=d&&d(n,b,c);e.push(null==o?Path.get(n):null),e.push(o),h=i+2}return h===f&&e.push(""),e.hasOnePath=5===e.length,e.isSimplePath=e.hasOnePath&&""==e[0]&&""==e[4],e.onlyOneTime=j,e.combinator=function(a){for(var b=e[0],c=1;c<e.length;c+=4){var d=e.hasOnePath?a:a[(c-1)/4];void 0!==d&&(b+=d),b+=e[c+3]}return b},e}}function t(a,b,c,d){if(b.hasOnePath){var e=b[3],f=e?e(d,c,!0):b[2].getValueFrom(d);return b.isSimplePath?f:b.combinator(f)}for(var g=[],h=1;h<b.length;h+=4){var e=b[h+2];g[(h-1)/4]=e?e(d,c):b[h+1].getValueFrom(d)}return b.combinator(g)}function u(a,b,c,d){var e=b[3],f=e?e(d,c,!1):new PathObserver(d,b[2]);return b.isSimplePath?f:new ObserverTransform(f,b.combinator)}function v(a,b,c,d){if(b.onlyOneTime)return t(a,b,c,d);if(b.hasOnePath)return u(a,b,c,d);for(var e=new CompoundObserver,f=1;f<b.length;f+=4){var g=b[f],h=b[f+2];if(h){var i=h(d,c,g);g?e.addPath(i):e.addObserver(i)}else{var j=b[f+1];g?e.addPath(j.getValueFrom(d)):e.addPath(d,j)}}return new ObserverTransform(e,b.combinator)}function w(a,b,c,d){for(var e=0;e<b.length;e+=2){var f=b[e],g=b[e+1],h=v(f,g,a,c),i=a.bind(f,h,g.onlyOneTime);i&&d&&d.push(i)}if(a.bindFinished(),b.isTemplate){a.model_=c;var j=a.processBindingDirectives_(b);d&&j&&d.push(j)}}function x(a,b,c){var d=a.getAttribute(b);return s(""==d?"{{}}":d,b,a,c)}function y(a,c){b(a);for(var d=[],e=0;e<a.attributes.length;e++){for(var f=a.attributes[e],g=f.name,i=f.value;"_"===g[0];)g=g.substring(1);if(!h(a)||g!==J&&g!==H&Line truncated
|
||||
b&&b.classList.remove(c),a&&a.classList.add(c)},injectBoundHTML:function(a,b){var c=document.createElement("template");c.innerHTML=a;var d=this.instanceTemplate(c);return b&&(b.textContent="",b.appendChild(d)),d}},c=function(){},d={};b.asyncMethod=b.async,a.api.instance.utils=b,a.nop=c,a.nob=d}(Polymer),function(a){var b=window.WebComponents?WebComponents.flags.log:{},c="on-",d={EVENT_PREFIX:c,addHostListeners:function(){var a=this.eventDelegates;b.events&&Object.keys(a).length>0&&console.log("[%s] addHostListeners:",this.localName,a);for(var c in a){var d=a[c];PolymerGestures.addEventListener(this,c,this.element.getEventHandler(this,this,d))}},dispatchMethod:function(a,c,d){if(a){b.events&&console.group("[%s] dispatch [%s]",a.localName,c);var e="function"==typeof c?c:a[c];e&&e[d?"apply":"call"](a,d),b.events&&console.groupEnd(),Polymer.flush()}}};a.api.instance.events=d,a.addEventListener=function(a,b,c,d){PolymerGestures.addEventListener(wrap(a),b,c,d)},a.removeEventListener=function(a,b,c,d){PolymerGestures.removeEventListener(wrap(a),b,c,d)}}(Polymer),function(a){var b={copyInstanceAttributes:function(){var a=this._instanceAttributes;for(var b in a)this.hasAttribute(b)||this.setAttribute(b,a[b])},takeAttributes:function(){if(this._publishLC)for(var a,b=0,c=this.attributes,d=c.length;(a=c[b])&&d>b;b++)this.attributeToProperty(a.name,a.value)},attributeToProperty:function(b,c){var b=this.propertyForAttribute(b);if(b){if(c&&c.search(a.bindPattern)>=0)return;var d=this[b],c=this.deserializeValue(c,d);c!==d&&(this[b]=c)}},propertyForAttribute:function(a){var b=this._publishLC&&this._publishLC[a];return b},deserializeValue:function(b,c){return a.deserializeValue(b,c)},serializeValue:function(a,b){return"boolean"===b?a?"":void 0:"object"!==b&&"function"!==b&&void 0!==a?a:void 0},reflectPropertyToAttribute:function(a){var b=typeof this[a],c=this.serializeValue(this[a],b);void 0!==c?this.setAttribute(a,c):"boolean"===b&&this.removeAttribute(a)}};a.api.instance.attributes=b}(Polymer),function(a){function b(a,b){return a===b?0!==a||1/a===1/b:f(a)&&f(b)?!0:a!==a&&b!==b}function c(a,b){return void 0===b&&null===a?b:null===b||void 0===b?a:b}var d=window.WebComponents?WebComponents.flags.log:{},e={object:void 0,type:"update",name:void 0,oldValue:void 0},f=Number.isNaN||function(a){return"number"==typeof a&&isNaN(a)},g={createPropertyObserver:function(){var a=this._observeNames;if(a&&a.length){var b=this._propertyObserver=new CompoundObserver(!0);this.registerObserver(b);for(var c,d=0,e=a.length;e>d&&(c=a[d]);d++)b.addPath(this,c),this.observeArrayValue(c,this[c],null)}},openPropertyObserver:function(){this._propertyObserver&&this._propertyObserver.open(this.notifyPropertyChanges,this)},notifyPropertyChanges:function(a,b,c){var d,e,f={};for(var g in b)if(d=c[2*g+1],e=this.observe[d]){var h=b[g],i=a[g];this.observeArrayValue(d,i,h),f[e]||(void 0!==h&&null!==h||void 0!==i&&null!==i)&&(f[e]=!0,this.invokeMethod(e,[h,i,arguments]))}},invokeMethod:function(a,b){var c=this[a]||a;"function"==typeof c&&c.apply(this,b)},deliverChanges:function(){this._propertyObserver&&this._propertyObserver.deliver()},observeArrayValue:function(a,b,c){var e=this.observe[a];if(e&&(Array.isArray(c)&&(d.observe&&console.log("[%s] observeArrayValue: unregister observer [%s]",this.localName,a),this.closeNamedObserver(a+"__array")),Array.isArray(b))){d.observe&&console.log("[%s] observeArrayValue: register observer [%s]",this.localName,a,b);var f=new ArrayObserver(b);f.open(function(a){this.invokeMethod(e,[a])},this),this.registerNamedObserver(a+"__array",f)}},emitPropertyChangeRecord:function(a,c,d){if(!b(c,d)&&(this._propertyChanged(a,c,d),Observer.hasObjectObserve)){var f=this._objectNotifier;f||(f=this._objectNotifier=Object.getNotifier(this)),e.object=this,e.name=a,e.oldValue=d,f.notify(e)}},_propertyChanged:function(a){this.reflect[a]&&this.reflectPropertyToAttribute(a)},bindProperty:function(a,b,d){if(d)return void(this[a]=b);var e=this.element.prototype.computed;if(e&&e[a]){var f=a+"ComputedBoundObservable_";return void(this[f]=b)}return this.bindToAccessor(a,b,c)},bindToAccessor:function(a,c,d){function e(b,c){j[f]=b;var d=j[h];d&&"function"==typeof d.setValue&&d.setValue(b),j.emitPropertyChangeRecord(a,b,c)}var f=a+"_",g=a+"Observable_",h=a+"ComputedBoundObservable_";this[g]=c;var i=this[f],j=this,k=c.open(e);if(d&&!b(i,k)){var l=d(i,k);b(k,l)||(k=l,c.setValue&&c.setValue(k))}e(k,i);var m={close:function(){c.close(),j[g]=void 0,j[h]=void 0}};return this.registerObserver(m),m},createComputedProperties:function(){if(this._computedNames)for(var a=0;a<this._computedNames.length;a++){var b=this._computedNames[a],c=this.computed[b];try{var d=PolymerExpressions.getExpression(c),e=d.getBinding(this,this.element.syntax);this.bindToAccessor(b,e)}catch(f){console.error("Failed to create computed property",f)}}},registerObserver:function(a){return this._observers?void this._observers.push(a):void(this._observers=[a])},closeObservers:function(){if(thiLine truncated
|
||||
b&&b.classList.remove(c),a&&a.classList.add(c)},injectBoundHTML:function(a,b){var c=document.createElement("template");c.innerHTML=a;var d=this.instanceTemplate(c);return b&&(b.textContent="",b.appendChild(d)),d}},c=function(){},d={};b.asyncMethod=b.async,a.api.instance.utils=b,a.nop=c,a.nob=d}(Polymer),function(a){var b=window.WebComponents?WebComponents.flags.log:{},c="on-",d={EVENT_PREFIX:c,addHostListeners:function(){var a=this.eventDelegates;b.events&&Object.keys(a).length>0&&console.log("[%s] addHostListeners:",this.localName,a);for(var c in a){var d=a[c];PolymerGestures.addEventListener(this,c,this.element.getEventHandler(this,this,d))}},dispatchMethod:function(a,c,d){if(a){b.events&&console.group("[%s] dispatch [%s]",a.localName,c);var e="function"==typeof c?c:a[c];e&&e[d?"apply":"call"](a,d),b.events&&console.groupEnd(),Polymer.flush()}}};a.api.instance.events=d,a.addEventListener=function(a,b,c,d){PolymerGestures.addEventListener(wrap(a),b,c,d)},a.removeEventListener=function(a,b,c,d){PolymerGestures.removeEventListener(wrap(a),b,c,d)}}(Polymer),function(a){var b={copyInstanceAttributes:function(){var a=this._instanceAttributes;for(var b in a)this.hasAttribute(b)||this.setAttribute(b,a[b])},takeAttributes:function(){if(this._publishLC)for(var a,b=0,c=this.attributes,d=c.length;(a=c[b])&&d>b;b++)this.attributeToProperty(a.name,a.value)},attributeToProperty:function(b,c){var b=this.propertyForAttribute(b);if(b){if(c&&c.search(a.bindPattern)>=0)return;var d=this[b],c=this.deserializeValue(c,d);c!==d&&(this[b]=c)}},propertyForAttribute:function(a){var b=this._publishLC&&this._publishLC[a];return b},deserializeValue:function(b,c){return a.deserializeValue(b,c)},serializeValue:function(a,b){return"boolean"===b?a?"":void 0:"object"!==b&&"function"!==b&&void 0!==a?a:void 0},reflectPropertyToAttribute:function(a){var b=typeof this[a],c=this.serializeValue(this[a],b);void 0!==c?this.setAttribute(a,c):"boolean"===b&&this.removeAttribute(a)}};a.api.instance.attributes=b}(Polymer),function(a){function b(a,b){return a===b?0!==a||1/a===1/b:f(a)&&f(b)?!0:a!==a&&b!==b}function c(a,b){return void 0===b&&null===a?b:null===b||void 0===b?a:b}var d=window.WebComponents?WebComponents.flags.log:{},e={object:void 0,type:"update",name:void 0,oldValue:void 0},f=Number.isNaN||function(a){return"number"==typeof a&&isNaN(a)},g={createPropertyObserver:function(){var a=this._observeNames;if(a&&a.length){var b=this._propertyObserver=new CompoundObserver(!0);this.registerObserver(b);for(var c,d=0,e=a.length;e>d&&(c=a[d]);d++)b.addPath(this,c),this.observeArrayValue(c,this[c],null)}},openPropertyObserver:function(){this._propertyObserver&&this._propertyObserver.open(this.notifyPropertyChanges,this)},notifyPropertyChanges:function(a,b,c){var d,e,f={};for(var g in b)if(d=c[2*g+1],e=this.observe[d]){var h=b[g],i=a[g];this.observeArrayValue(d,i,h),f[e]||(void 0!==h&&null!==h||void 0!==i&&null!==i)&&(f[e]=!0,this.invokeMethod(e,[h,i,arguments]))}},invokeMethod:function(a,b){var c=this[a]||a;"function"==typeof c&&c.apply(this,b)},deliverChanges:function(){this._propertyObserver&&this._propertyObserver.deliver()},observeArrayValue:function(a,b,c){var e=this.observe[a];if(e&&(Array.isArray(c)&&(d.observe&&console.log("[%s] observeArrayValue: unregister observer [%s]",this.localName,a),this.closeNamedObserver(a+"__array")),Array.isArray(b))){d.observe&&console.log("[%s] observeArrayValue: register observer [%s]",this.localName,a,b);var f=new ArrayObserver(b);f.open(function(a){this.invokeMethod(e,[a])},this),this.registerNamedObserver(a+"__array",f)}},emitPropertyChangeRecord:function(a,c,d){if(!b(c,d)&&(this._propertyChanged(a,c,d),Observer.hasObjectObserve)){var f=this._objectNotifier;f||(f=this._objectNotifier=Object.getNotifier(this)),e.object=this,e.name=a,e.oldValue=d,f.notify(e)}},_propertyChanged:function(a){this.reflect[a]&&this.reflectPropertyToAttribute(a)},bindProperty:function(a,b,d){if(d)return void(this[a]=b);var e=this.element.prototype.computed;if(e&&e[a]){var f=a+"ComputedBoundObservable_";return void(this[f]=b)}return this.bindToAccessor(a,b,c)},bindToAccessor:function(a,c,d){function e(b,c){j[f]=b;var d=j[h];d&&"function"==typeof d.setValue&&d.setValue(b),j.emitPropertyChangeRecord(a,b,c)}var f=a+"_",g=a+"Observable_",h=a+"ComputedBoundObservable_";this[g]=c;var i=this[f],j=this,k=c.open(e);if(d&&!b(i,k)){var l=d(i,k);b(k,l)||(k=l,c.setValue&&c.setValue(k))}e(k,i);var m={close:function(){c.close(),j[g]=void 0,j[h]=void 0}};return this.registerObserver(m),m},createComputedProperties:function(){if(this._computedNames)for(var a=0;a<this._computedNames.length;a++){var b=this._computedNames[a],c=this.computed[b];try{var d=PolymerExpressions.getExpression(c),e=d.getBinding(this,this.element.syntax);this.bindToAccessor(b,e)}catch(f){console.error("Failed to create computed property",f)}}},registerObserver:function(a){return this._observers?void this._observers.push(a):void(this._observers=[a])},closeObservers:function(){if(thiLine truncated
|
||||
|
||||
},lt.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){Ct(e);var r=d(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}},e)},lt.prototype.__iterator=function(t,e){var n=this._iter.__iterator(wn,e);return new b(function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){Ct(r);var i=d(r);return T(t,i?r.get(0):r[0],i?r.get(1):r[1],e)}}})},ct.prototype.cacheResult=st.prototype.cacheResult=ft.prototype.cacheResult=lt.prototype.cacheResult=jt,t(Lt,F),Lt.prototype.toString=function(){return this.__toString("Map {","}")},Lt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Lt.prototype.set=function(t,e){return Jt(this,t,e)},Lt.prototype.setIn=function(t,e){return this.updateIn(t,hn,function(){return e})},Lt.prototype.remove=function(t){return Jt(this,t,hn)},Lt.prototype.deleteIn=function(t){return this.updateIn(t,function(){return hn})},Lt.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},Lt.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=oe(this,zt(t),e,n);return r===hn?void 0:r},Lt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Bt()},Lt.prototype.merge=function(){return ne(this,void 0,arguments)},Lt.prototype.mergeWith=function(t){var e=an.call(arguments,1);return ne(this,t,e)},Lt.prototype.mergeIn=function(t){var e=an.call(arguments,1);return this.updateIn(t,Bt(),function(t){return t.merge.apply(t,e)})},Lt.prototype.mergeDeep=function(){return ne(this,re(void 0),arguments)},Lt.prototype.mergeDeepWith=function(t){var e=an.call(arguments,1);return ne(this,re(t),e)},Lt.prototype.mergeDeepIn=function(t){var e=an.call(arguments,1);return this.updateIn(t,Bt(),function(t){return t.mergeDeep.apply(t,e)})},Lt.prototype.sort=function(t){return Ee(It(this,t))},Lt.prototype.sortBy=function(t,e){return Ee(It(this,e,t))},Lt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Lt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new r)},Lt.prototype.asImmutable=function(){return this.__ensureOwner()},Lt.prototype.wasAltered=function(){return this.__altered},Lt.prototype.__iterator=function(t,e){return new Kt(this,t,e)},Lt.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},Lt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ht(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Lt.isMap=Pt;var Pn="@@__IMMUTABLE_MAP__@@",qn=Lt.prototype;qn[Pn]=!0,qn[sn]=qn.remove,qn.removeIn=qn.deleteIn,qt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,u=i.length;u>o;o++)if(J(n,i[o][0]))return i[o][1];return r},qt.prototype.update=function(t,e,r,o,u,a,s){for(var c=u===hn,f=this.entries,l=0,h=f.length;h>l&&!J(o,f[l][0]);l++);var p=h>l;if(p?f[l][1]===u:c)return this;if(n(s),(c||!p)&&n(a),!c||1!==f.length){if(!p&&!c&&f.length>=Wn)return Qt(t,f,o,u);var _=t&&t===this.ownerID,v=_?f:i(f);return p?c?l===h-1?v.pop():v[l]=v.pop():v[l]=[o,u]:v.push([o,u]),_?(this.entries=v,this):new qt(t,v)}},Ut.prototype.get=function(t,e,n,r){void 0===e&&(e=et(n));var i=1<<((0===t?e:e>>>t)&ln),o=this.bitmap;return 0===(o&i)?r:this.nodes[ue(o&i-1)].get(t+cn,e,n,r)},Ut.prototype.update=function(t,e,n,r,i,o,u){void 0===n&&(n=et(r));var a=(0===e?n:n>>>e)&ln,s=1<<a,c=this.bitmap,f=0!==(c&s);if(!f&&i===hn)return this;var l=ue(c&s-1),h=this.nodes,p=f?h[l]:void 0,_=Yt(p,t,e+cn,n,r,i,o,u);if(_===p)return this;if(!f&&_&&h.length>=Gn)return ee(t,h,c,a,_);if(f&&!_&&2===h.length&&Xt(h[1^l]))return h[1^l];if(f&&_&&1===h.length&&Xt(_))return _;var v=t&&t===this.ownerID,d=f?_?c:c^s:c|s,y=f?_?ae(h,l,_,v):ce(h,l,v):se(h,l,_,v);return v?(this.bitmap=d,this.nodes=y,this):new Ut(t,d,y)},Wt.prototype.get=function(t,e,n,r){void 0===e&&(e=et(n));var i=(0===t?e:e>>>t)&ln,o=this.nodes[i];return o?o.get(t+cn,e,n,r):r},Wt.prototype.update=function(t,e,n,r,i,o,u){void 0===n&&(n=et(r));var a=(0===e?n:n>>>e)&ln,s=i===hn,c=this.nodes,f=c[a];if(s&&!f)return this;var l=Yt(f,t,e+cn,n,r,i,o,u);if(l===f)return this;var h=this.count;if(f){if(!l&&(h--,Vn>h))return te(t,c,h,a)}else h++;var p=t&&t===this.ownerID,_=ae(c,a,l,p);return p?(this.count=h,this.nodes=_,this):new Wt(t,h,_)},Gt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,u=i.length;u>o;o++)if(J(n,i[o][0]))return i[o][1];return r},Gt.prototype.update=function(t,e,r,o,u,a,s){void 0===r&&(r=et(o));var c=u===hn;if(r!==this.keyHash)return c?this:(n(s),n(a),Zt(this,t,e,r,[o,u]));for(var f=this.entries,l=0,h=f.length;h>l&&!J(o,f[l][0]);l++);var p=h>l;if(p?f[l][1]===u:c)return this;if(n(s),(c||!p)&&n(a),c&&2===h)return new Vt(t,this.keyHash,f[1^l]);var _=t&&t===this.ownerID,v=_?f:i(f);return p?c?l===h-1?v.pop():v[l]=v.pop():v[l]=[o,u]:v.push([o,u]),_?(this.entries=v,this):new Gt(t,this.keyHaLine truncated
|
||||
return n}function _e(t,e){return t===A?e:t}function ve(t,e,n,r){return t!==A&&Vo.call(r,n)?t:e}function de(t,e,n){var r=Pa(e);eu.apply(r,Gu(e));for(var i=-1,o=r.length;++i<o;){var u=r[i],a=t[u],s=n(a,e[u],u,t,e);(s===s?s===a:a!==a)&&(a!==A||u in t)||(t[u]=s)}return t}function ye(t,e){for(var n=-1,r=null==t,i=!r&&Kn(t),o=i&&t.length,u=e.length,a=No(u);++n<u;){var s=e[n];i?a[n]=$n(s,o)?t[s]:A:a[n]=r?A:t[s]}return a}function ge(t,e,n){n||(n={});for(var r=-1,i=e.length;++r<i;){var o=e[r];n[o]=t[o]}return n}function me(t,e,n){var r=typeof t;return"function"==r?e===A?t:rn(t,e,n):null==t?_o:"object"==r?Le(t):e===A?bo(t):Pe(t,e)}function we(t,e,n,r,i,o,u){var a;if(n&&(a=i?n(t,r,i):n(t)),a!==A)return a;if(!Oi(t))return t;var s=Sa(t);if(s){if(a=Un(t),!e)return te(t,a)}else{var c=$o.call(t),f=c==Z;if(c!=et&&c!=H&&(!f||i))return $t[c]?Gn(t,c,e):i?t:{};if(a=Wn(f?{}:t),!e)return xu(a,t)}o||(o=[]),u||(u=[]);for(var l=o.length;l--;)if(o[l]==t)return u[l];return o.push(t),u.push(a),(s?ee:ke)(t,function(r,i){a[i]=we(r,e,n,i,t,o,u)}),a}function be(t,e,n){if("function"!=typeof t)throw new Lo($);return ou(function(){t.apply(A,n)},e)}function Te(t,e){var n=t?t.length:0,r=[];if(!n)return r;var i=-1,o=Pn(),u=o==a,s=u&&e.length>=200?Pu(e):null,c=e.length;s&&(o=Zt,u=!1,e=s);t:for(;++i<n;){var f=t[i];if(u&&f===f){for(var l=c;l--;)if(e[l]===f)continue t;r.push(f)}else o(e,f,0)<0&&r.push(f)}return r}function Ee(t,e){var n=!0;return Du(t,function(t,r,i){return n=!!e(t,r,i)}),n}function Oe(t,e,n,r){var i=t.length;for(n=null==n?0:+n||0,0>n&&(n=-n>i?0:i+n),r=r===A||r>i?i:+r||0,0>r&&(r+=i),i=n>r?0:r>>>0,n>>>=0;i>n;)t[n++]=e;return t}function Ie(t,e){var n=[];return Du(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function Se(t,e,n,r){var i;return n(t,function(t,n,o){return e(t,n,o)?(i=r?n:t,!1):void 0}),i}function Ae(t,e,n){for(var r=-1,i=t.length,o=-1,u=[];++r<i;){var a=t[r];if(m(a)&&Kn(a)&&(n||Sa(a)||yi(a))){e&&(a=Ae(a,e,n));for(var s=-1,c=a.length;++s<c;)u[++o]=a[s]}else n||(u[++o]=a)}return u}function Ne(t,e){return Ru(t,e,Wi)}function ke(t,e){return Ru(t,e,Pa)}function Ce(t,e){return zu(t,e,Pa)}function xe(t,e){for(var n=-1,r=e.length,i=-1,o=[];++n<r;){var u=e[n];Na(t[u])&&(o[++i]=u)}return o}function Me(t,e,n){if(null!=t){n!==A&&n in ir(t)&&(e=[n]);for(var r=-1,i=e.length;null!=t&&++r<i;)t=t[e[r]];return r&&r==i?t:A}}function De(t,e,n,r,i,o){if(t===e)return!0;var u=typeof t,a=typeof e;return"function"!=u&&"object"!=u&&"function"!=a&&"object"!=a||null==t||null==e?t!==t&&e!==e:je(t,e,De,n,r,i,o)}function je(t,e,n,r,i,o,u){var a=Sa(t),s=Sa(e),c=B,f=B;a||(c=$o.call(t),c==H?c=et:c!=et&&(a=Mi(t))),s||(f=$o.call(e),f==H?f=et:f!=et&&(s=Mi(e)));var l=c==et,h=f==et,p=c==f;if(p&&!a&&!l)return jn(t,e,c);if(!i){var _=l&&Vo.call(t,"__wrapped__"),v=h&&Vo.call(e,"__wrapped__");if(_||v)return n(_?t.value():t,v?e.value():e,r,i,o,u)}if(!p)return!1;o||(o=[]),u||(u=[]);for(var d=o.length;d--;)if(o[d]==t)return u[d]==e;o.push(t),u.push(e);var y=(a?Dn:Rn)(t,e,n,r,i,o,u);return o.pop(),u.pop(),y}function Re(t,e,n,r,i){for(var o=-1,u=e.length,a=!i;++o<u;)if(a&&r[o]?n[o]!==t[e[o]]:!(e[o]in t))return!1;for(o=-1;++o<u;){var s=e[o],c=t[s],f=n[o];if(a&&r[o])var l=c!==A||s in t;else l=i?i(c,f,s):A,l===A&&(l=De(f,c,i,!0));if(!l)return!1}return!0}function ze(t,e){var n=-1,r=Kn(t)?No(t.length):[];return Du(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function Le(t){var e=Pa(t),n=e.length;if(!n)return po(!0);if(1==n){var r=e[0],i=t[r];if(Yn(i))return function(t){return null==t?!1:t[r]===i&&(i!==A||r in ir(t))}}for(var o=No(n),u=No(n);n--;)i=t[e[n]],o[n]=i,u[n]=Yn(i);return function(t){return null!=t&&Re(ir(t),e,o,u)}}function Pe(t,e){var n=Sa(t),r=Hn(t)&&Yn(e),i=t+"";return t=or(t),function(o){if(null==o)return!1;var u=i;if(o=ir(o),!(!n&&r||u in o)){if(o=1==t.length?o:Me(o,Fe(t,0,-1)),null==o)return!1;u=wr(t),o=ir(o)}return o[u]===e?e!==A||u in o:De(e,o[u],null,!0)}}function qe(t,e,n,r,i){if(!Oi(t))return t;var o=Kn(e)&&(Sa(e)||Mi(e));if(!o){var u=Pa(e);eu.apply(u,Gu(e))}return ee(u||e,function(a,s){if(u&&(s=a,a=e[s]),m(a))r||(r=[]),i||(i=[]),Ue(t,e,s,qe,n,r,i);else{var c=t[s],f=n?n(c,a,s,t,e):A,l=f===A;l&&(f=a),!o&&f===A||!l&&(f===f?f===c:c!==c)||(t[s]=f)}}),t}function Ue(t,e,n,r,i,o,u){for(var a=o.length,s=e[n];a--;)if(o[a]==s)return void(t[n]=u[a]);var c=t[n],f=i?i(c,s,n,t,e):A,l=f===A;l&&(f=s,Kn(s)&&(Sa(s)||Mi(s))?f=Sa(c)?c:Kn(c)?te(c):[]:ka(s)||yi(s)?f=yi(c)?Ri(c):ka(c)?c:{}:l=!1),o.push(s),u.push(f),l?t[n]=r(f,s,i,o,u):(f===f?f!==c:c===c)&&(t[n]=f)}function We(t){return function(e){return null==e?A:e[t]}}function Ge(t){var e=t+"";return t=or(t),function(n){return Me(n,t,e)}}function Ve(t,e){for(var n=t?e.length:0;n--;){var r=parseFloat(e[n]);if(r!=i&&$n(r)){var i=r;uu.call(t,r,1)}}return t}function Ke(t,e){return t+Zo(wu()*(e-t+1))}function $e(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function Fe(t,e,n){var r=-1,i=t.length;e=null==e?0:+e||0,0>e&&(e=-e>i?0:i+e),n=n===A||n>i?i:+n||0,0>n&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=No(i);++r<i;)o[r]=t[r+e]Line truncated
|
||||
},lt.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){kt(e);var r=d(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}},e)},lt.prototype.__iterator=function(t,e){var n=this._iter.__iterator(wn,e);return new b(function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){kt(r);var i=d(r);return T(t,i?r.get(0):r[0],i?r.get(1):r[1],e)}}})},ct.prototype.cacheResult=st.prototype.cacheResult=ft.prototype.cacheResult=lt.prototype.cacheResult=Rt,t(Lt,F),Lt.prototype.toString=function(){return this.__toString("Map {","}")},Lt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Lt.prototype.set=function(t,e){return Jt(this,t,e)},Lt.prototype.setIn=function(t,e){return this.updateIn(t,hn,function(){return e})},Lt.prototype.remove=function(t){return Jt(this,t,hn)},Lt.prototype.deleteIn=function(t){return this.updateIn(t,function(){return hn})},Lt.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},Lt.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=oe(this,zt(t),e,n);return r===hn?void 0:r},Lt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Bt()},Lt.prototype.merge=function(){return ne(this,void 0,arguments)},Lt.prototype.mergeWith=function(t){var e=an.call(arguments,1);return ne(this,t,e)},Lt.prototype.mergeIn=function(t){var e=an.call(arguments,1);return this.updateIn(t,Bt(),function(t){return t.merge.apply(t,e)})},Lt.prototype.mergeDeep=function(){return ne(this,re(void 0),arguments)},Lt.prototype.mergeDeepWith=function(t){var e=an.call(arguments,1);return ne(this,re(t),e)},Lt.prototype.mergeDeepIn=function(t){var e=an.call(arguments,1);return this.updateIn(t,Bt(),function(t){return t.mergeDeep.apply(t,e)})},Lt.prototype.sort=function(t){return Ee(It(this,t))},Lt.prototype.sortBy=function(t,e){return Ee(It(this,e,t))},Lt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Lt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new r)},Lt.prototype.asImmutable=function(){return this.__ensureOwner()},Lt.prototype.wasAltered=function(){return this.__altered},Lt.prototype.__iterator=function(t,e){return new Kt(this,t,e)},Lt.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},Lt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ht(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Lt.isMap=Pt;var Pn="@@__IMMUTABLE_MAP__@@",qn=Lt.prototype;qn[Pn]=!0,qn[sn]=qn.remove,qn.removeIn=qn.deleteIn,qt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,u=i.length;u>o;o++)if(J(n,i[o][0]))return i[o][1];return r},qt.prototype.update=function(t,e,r,o,u,a,s){for(var c=u===hn,f=this.entries,l=0,h=f.length;h>l&&!J(o,f[l][0]);l++);var p=h>l;if(p?f[l][1]===u:c)return this;if(n(s),(c||!p)&&n(a),!c||1!==f.length){if(!p&&!c&&f.length>=Wn)return Zt(t,f,o,u);var _=t&&t===this.ownerID,v=_?f:i(f);return p?c?l===h-1?v.pop():v[l]=v.pop():v[l]=[o,u]:v.push([o,u]),_?(this.entries=v,this):new qt(t,v)}},Ut.prototype.get=function(t,e,n,r){void 0===e&&(e=et(n));var i=1<<((0===t?e:e>>>t)&ln),o=this.bitmap;return 0===(o&i)?r:this.nodes[ue(o&i-1)].get(t+cn,e,n,r)},Ut.prototype.update=function(t,e,n,r,i,o,u){void 0===n&&(n=et(r));var a=(0===e?n:n>>>e)&ln,s=1<<a,c=this.bitmap,f=0!==(c&s);if(!f&&i===hn)return this;var l=ue(c&s-1),h=this.nodes,p=f?h[l]:void 0,_=Yt(p,t,e+cn,n,r,i,o,u);if(_===p)return this;if(!f&&_&&h.length>=Gn)return ee(t,h,c,a,_);if(f&&!_&&2===h.length&&Xt(h[1^l]))return h[1^l];if(f&&_&&1===h.length&&Xt(_))return _;var v=t&&t===this.ownerID,d=f?_?c:c^s:c|s,y=f?_?ae(h,l,_,v):ce(h,l,v):se(h,l,_,v);return v?(this.bitmap=d,this.nodes=y,this):new Ut(t,d,y)},Wt.prototype.get=function(t,e,n,r){void 0===e&&(e=et(n));var i=(0===t?e:e>>>t)&ln,o=this.nodes[i];return o?o.get(t+cn,e,n,r):r},Wt.prototype.update=function(t,e,n,r,i,o,u){void 0===n&&(n=et(r));var a=(0===e?n:n>>>e)&ln,s=i===hn,c=this.nodes,f=c[a];if(s&&!f)return this;var l=Yt(f,t,e+cn,n,r,i,o,u);if(l===f)return this;var h=this.count;if(f){if(!l&&(h--,Vn>h))return te(t,c,h,a)}else h++;var p=t&&t===this.ownerID,_=ae(c,a,l,p);return p?(this.count=h,this.nodes=_,this):new Wt(t,h,_)},Gt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,u=i.length;u>o;o++)if(J(n,i[o][0]))return i[o][1];return r},Gt.prototype.update=function(t,e,r,o,u,a,s){void 0===r&&(r=et(o));var c=u===hn;if(r!==this.keyHash)return c?this:(n(s),n(a),Qt(this,t,e,r,[o,u]));for(var f=this.entries,l=0,h=f.length;h>l&&!J(o,f[l][0]);l++);var p=h>l;if(p?f[l][1]===u:c)return this;if(n(s),(c||!p)&&n(a),c&&2===h)return new Vt(t,this.keyHash,f[1^l]);var _=t&&t===this.ownerID,v=_?f:i(f);return p?c?l===h-1?v.pop():v[l]=v.pop():v[l]=[o,u]:v.push([o,u]),_?(this.entries=v,this):new Gt(t,this.keyHaLine truncated
|
||||
|
||||
}(),fu=function(){var t=nu&&Ai(t=jo.assign)&&t;try{if(t){var e=nu({1:0});e[0]=1}}catch(n){try{t(e,"xo")}catch(n){}return!e[1]&&t}return!1}(),lu=Ai(lu=No.isArray)&&lu,hu=Ai(hu=jo.create)&&hu,pu=t.isFinite,_u=Ai(_u=jo.keys)&&_u,vu=Mo.max,du=Mo.min,yu=Ai(yu=ko.now)&&yu,gu=Ai(gu=Do.isFinite)&&gu,mu=t.parseInt,wu=Mo.random,bu=Do.NEGATIVE_INFINITY,Tu=Do.POSITIVE_INFINITY,Eu=Mo.pow(2,32)-1,Ou=Eu-1,Iu=Eu>>>1,Su=cu?cu.BYTES_PER_ELEMENT:0,Au=Mo.pow(2,53)-1,Nu=su&&new su,ku={},Cu=e.support={};!function(t){var e=function(){this.x=t},n=arguments,r=[];e.prototype={valueOf:t,y:t};for(var i in new e)r.push(i);Cu.funcDecomp=/\bthis\b/.test(function(){return this}),Cu.funcNames="string"==typeof xo.name;try{Cu.dom=11===Wo.createDocumentFragment().nodeType}catch(o){Cu.dom=!1}try{Cu.nonEnumArgs=!ru.call(n,1)}catch(o){Cu.nonEnumArgs=!0}}(1,0),e.templateSettings={escape:Et,evaluate:Ot,interpolate:It,variable:"",imports:{_:e}};var xu=fu||function(t,e){return null==e?t:ge(e,Gu(e),ge(e,Pa(e),t))},Mu=function(){function e(){}return function(n){if(Oi(n)){e.prototype=n;var r=new e;e.prototype=null}return r||t.Object()}}(),Du=fn(ke),ju=fn(Ce,!0),Ru=ln(),zu=ln(!0),Lu=Nu?function(t,e){return Nu.set(t,e),t}:_o;Jo||(on=Bo&&au?function(t){var e=t.byteLength,n=cu?Zo(e/Su):0,r=n*Su,i=new Bo(e);if(n){var o=new cu(i,0,n);o.set(new cu(t,0,n))}return e!=r&&(o=new au(i,r),o.set(new au(t,r))),i}:po(null));var Pu=hu&&iu?function(t){return new Xt(t)}:po(null),qu=Nu?function(t){return Nu.get(t)}:wo,Uu=function(){return Cu.funcNames?"constant"==po.name?We("name"):function(t){for(var e=t.name,n=ku[e],r=n?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}:po("")}(),Wu=We("length"),Gu=Qo?function(t){return Qo(ir(t))}:po([]),Vu=function(){var t=0,e=0;return function(n,r){var i=pa(),o=W-(i-e);if(e=i,o>0){if(++t>=U)return n}else t=0;return Lu(n,r)}}(),Ku=li(function(t,e){return Kn(t)?Te(t,Ae(e,!1,!0)):[]}),$u=gn(),Fu=gn(!0),Hu=li(function(t,e){e=Ae(e);var n=ye(t,e);return Ve(t,e.sort(o)),n}),Bu=xn(),Ju=xn(!0),Yu=li(function(t){return Xe(Ae(t,!1,!0))}),Xu=li(function(t,e){return Kn(t)?Te(t,e):[]}),Zu=li(xr),Qu=li(function(t){var e=t.length,n=t[e-2],r=t[e-1];return e>2&&"function"==typeof n?e-=2:(n=e>1&&"function"==typeof r?(--e,r):A,r=A),t.length=e,Mr(t,n,r)}),ta=li(function(t,e){return ye(t,Ae(e))}),ea=sn(function(t,e,n){Vo.call(t,n)?++t[n]:t[n]=1}),na=yn(Du),ra=yn(ju,!0),ia=bn(ee,Du),oa=bn(ne,ju),ua=sn(function(t,e,n){Vo.call(t,n)?t[n].push(e):t[n]=[e]}),aa=sn(function(t,e,n){t[n]=e}),sa=li(function(t,e,n){var r=-1,i="function"==typeof e,o=Hn(e),u=Kn(t)?No(t.length):[];return Du(t,function(t){var a=i?e:o&&null!=t&&t[e];u[++r]=a?a.apply(t,n):Vn(t,e,n)}),u}),ca=sn(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),fa=An(fe,Du),la=An(le,ju),ha=li(function(t,e){if(null==t)return[];var n=e[2];return n&&Fn(e[0],e[1],n)&&(e.length=1),Je(t,Ae(e),[])}),pa=yu||function(){return(new ko).getTime()},_a=li(function(t,e,n){var r=k;if(n.length){var i=b(n,_a.placeholder);r|=j}return Mn(t,r,e,n,i)}),va=li(function(t,e){e=e.length?Ae(e):Li(t);for(var n=-1,r=e.length;++n<r;){var i=e[n];t[i]=Mn(t[i],k,t)}return t}),da=li(function(t,e,n){var r=k|C;if(n.length){var i=b(n,da.placeholder);r|=j}return Mn(e,r,t,n,i)}),ya=vn(M),ga=vn(D),ma=li(function(t,e){return be(t,1,e)}),wa=li(function(t,e,n){return be(t,e,n)}),ba=wn(),Ta=wn(!0),Ea=Sn(j),Oa=Sn(R),Ia=li(function(t,e){return Mn(t,L,null,null,null,Ae(e))}),Sa=lu||function(t){return m(t)&&Jn(t.length)&&$o.call(t)==B};Cu.dom||(wi=function(t){return!!t&&1===t.nodeType&&m(t)&&!ka(t)});var Aa=gu||function(t){return"number"==typeof t&&pu(t)},Na=s(/x/)||au&&!s(au)?function(t){return $o.call(t)==Z}:s,ka=tu?function(t){if(!t||$o.call(t)!=et)return!1;var e=t.valueOf,n=Ai(e)&&(n=tu(e))&&tu(n);return n?t==n||tu(t)==n:er(t)}:er,Ca=cn(function(t,e,n){return n?de(t,e,n):xu(t,e)}),xa=li(function(t){var e=t[0];return null==e?e:(t.push(_e),Ca.apply(A,t))}),Ma=mn(ke),Da=mn(Ce),ja=Tn(Ru),Ra=Tn(zu),za=En(ke),La=En(Ce),Pa=_u?function(t){var e=null!=t&&t.constructor;return"function"==typeof e&&e.prototype===t||"function"!=typeof t&&Kn(t)?nr(t):Oi(t)?_u(t):[]}:nr,qa=On(!0),Ua=On(),Wa=cn(qe),Ga=li(function(t,e){if(null==t)return{};if("function"!=typeof e[0]){var e=ae(Ae(e),zo);return Zn(t,Te(Wi(t),e))}var n=rn(e[0],e[1],3);return Qn(t,function(t,e,r){return!n(t,e,r)})}),Va=li(function(t,e){return null==t?{}:"function"==typeof e[0]?Qn(t,rn(e[0],e[1],3)):Zn(t,Ae(e))}),Ka=pn(function(t,e,n){return e=e.toLowerCase(),t+(n?e.charAt(0).toUpperCase()+e.slice(1):e)}),$a=pn(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Fa=In(),Ha=In(!0);8!=mu(Wt+"08")&&(no=function(t,e,n){return(n?Fn(t,e,n):null==e)?e=0:e&&(e=+e),t=uo(t),mu(t,e||(Rt.test(t)?16:10))});var Ba=pn(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Ja=pn(function(t,e,n){return t+(n?" ":"")+(e.charAt(0).toUpperCase()+e.slice(1))}),Ya=li(function(t,e){try{return t.apply(A,e)}catch(n){return Ei(n)?n:new Co(n)}}),Xa=li(function(t,e){return function(n){return Vn(nLine truncated
|
||||
return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.__proto__=e)},f=n(1),l=u(f),h=n(2),p=u(h),_=n(3),v=u(_);try{var d=localStorage}catch(y){var d={}}var g="PREF_AUTH_TOKEN",m=null,w="PREF_USE_STREAMING",b=!0,T=function(t){function e(){a(this,e),null!=t&&t.apply(this,arguments)}return c(e,t),s(e,[{key:"useStreaming",get:function(){return i(w,b)}},{key:"hasAuthToken",get:function(){return null!==this.authToken}},{key:"authToken",get:function(){return i(g,m)}}]),e}(v["default"]),E=new T;E.dispatchToken=l["default"].register(function(t){switch(t.actionType){case p["default"].ACTION_VALID_AUTH_TOKEN:t.rememberLogin&&(r(g,t.authToken),E.emitChange());break;case p["default"].ACTION_LOG_OUT:o(g)&&E.emitChange();break;case p["default"].ACTION_STREAM_START:r(w,!0),E.emitChange();break;case p["default"].ACTION_STREAM_STOP:r(w,!1),E.emitChange()}}),e["default"]=E,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t.entityId}function i(t){b=b.set(t.entity_id,w["default"].fromJSON(t))}function o(t,e){var n=e?new f.Map:b;b=n.withMutations(function(e){return t.forEach(function(t){return e.set(t.entity_id,w["default"].fromJSON(t))}),e})}Object.defineProperty(e,"__esModule",{value:!0});var u=function(t){return t&&t.__esModule?t:{"default":t}},a=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.__proto__=e)},f=n(4),l=n(1),h=u(l),p=n(2),_=u(p),v=n(3),d=u(v),y=n(10),g=u(y),m=n(15),w=u(m),b=new f.Map,T=function(t){function e(){a(this,e),null!=t&&t.apply(this,arguments)}return c(e,t),s(e,[{key:"all",get:function(){return b.valueSeq().sortBy(r)}},{key:"get",value:function(t){return t=t.toLowerCase(),b.get(t)||null}},{key:"gets",value:function(t){return t=t.map(function(t){return t.toLowerCase()}),b.valueSeq().filter(function(e){return-1!==t.indexOf(e.entityId)}).sortBy(r)}},{key:"entityIDs",get:function(){return b.keySeq().sort()}},{key:"domains",get:function(){return b.keySeq().map(function(t){return t.split(".")[0]}).sort().toOrderedSet()}}]),e}(d["default"]),E=new T;E.dispatchToken=h["default"].register(function(t){switch(t.actionType){case _["default"].ACTION_NEW_STATES:(!g["default"].isStreaming||t.replace)&&(o(t.states,t.replace),E.emitChange());break;case _["default"].ACTION_REMOTE_EVENT_RECEIVED:t.event.event_type===_["default"].REMOTE_EVENT_STATE_CHANGED&&(i(t.event.data.new_state),E.emitChange());break;case _["default"].ACTION_LOG_OUT:b=new f.Map,E.emitChange()}}),e["default"]=E,t.exports=e["default"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t&&t.__esModule?t:{"default":t}},i=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.__proto__=e)},a=n(6),s=r(a),c=n(1),f=r(c),l=n(2),h=r(l),p=n(3),_=r(p),v=6e4,d=null,y={},g={},m=function(t){function e(){i(this,e),null!=t&&t.apply(this,arguments)}return u(e,t),o(e,[{key:"isStale",value:function(){var t=void 0===arguments[0]?null:arguments[0],e=null===t?d:y[t]||null;return null===e||(new Date).getTime()-e.getTime()>v}},{key:"get",value:function(t){return g[t]||null}},{key:"all",get:function(){return s["default"].sortBy(s["default"].values(g),function(t){return t[0].entityId})}}]),e}(_["default"]),w=new m;w.dispatchToken=f["default"].register(function(t){switch(t.actionType){case h["default"].ACTION_NEW_STATE_HISTORY:s["default"].forEach(t.stateHistory,function(t){if(0!==t.length){var e=t[0].entityId;g[e]=t,y[e]=new Date}}),t.isFetchAll&&(d=new Date),w.emitChange();break;case h["default"].ACTION_LOG_OUT:d=null,y={},g={},w.emitChange()}}),e["default"]=w,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return-1!==y.indexOf(t)}function i(){return y.length===v}ObLine truncated
|
||||
return n}function _e(t,e){return t===A?e:t}function ve(t,e,n,r){return t!==A&&Vo.call(r,n)?t:e}function de(t,e,n){var r=Pa(e);eu.apply(r,Gu(e));for(var i=-1,o=r.length;++i<o;){var u=r[i],a=t[u],s=n(a,e[u],u,t,e);(s===s?s===a:a!==a)&&(a!==A||u in t)||(t[u]=s)}return t}function ye(t,e){for(var n=-1,r=null==t,i=!r&&Kn(t),o=i&&t.length,u=e.length,a=No(u);++n<u;){var s=e[n];i?a[n]=$n(s,o)?t[s]:A:a[n]=r?A:t[s]}return a}function ge(t,e,n){n||(n={});for(var r=-1,i=e.length;++r<i;){var o=e[r];n[o]=t[o]}return n}function me(t,e,n){var r=typeof t;return"function"==r?e===A?t:rn(t,e,n):null==t?_o:"object"==r?Le(t):e===A?bo(t):Pe(t,e)}function we(t,e,n,r,i,o,u){var a;if(n&&(a=i?n(t,r,i):n(t)),a!==A)return a;if(!Oi(t))return t;var s=Sa(t);if(s){if(a=Un(t),!e)return te(t,a)}else{var c=$o.call(t),f=c==Q;if(c!=et&&c!=H&&(!f||i))return $t[c]?Gn(t,c,e):i?t:{};if(a=Wn(f?{}:t),!e)return xu(a,t)}o||(o=[]),u||(u=[]);for(var l=o.length;l--;)if(o[l]==t)return u[l];return o.push(t),u.push(a),(s?ee:Ce)(t,function(r,i){a[i]=we(r,e,n,i,t,o,u)}),a}function be(t,e,n){if("function"!=typeof t)throw new Lo($);return ou(function(){t.apply(A,n)},e)}function Te(t,e){var n=t?t.length:0,r=[];if(!n)return r;var i=-1,o=Pn(),u=o==a,s=u&&e.length>=200?Pu(e):null,c=e.length;s&&(o=Qt,u=!1,e=s);t:for(;++i<n;){var f=t[i];if(u&&f===f){for(var l=c;l--;)if(e[l]===f)continue t;r.push(f)}else o(e,f,0)<0&&r.push(f)}return r}function Ee(t,e){var n=!0;return Du(t,function(t,r,i){return n=!!e(t,r,i)}),n}function Oe(t,e,n,r){var i=t.length;for(n=null==n?0:+n||0,0>n&&(n=-n>i?0:i+n),r=r===A||r>i?i:+r||0,0>r&&(r+=i),i=n>r?0:r>>>0,n>>>=0;i>n;)t[n++]=e;return t}function Ie(t,e){var n=[];return Du(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function Se(t,e,n,r){var i;return n(t,function(t,n,o){return e(t,n,o)?(i=r?n:t,!1):void 0}),i}function Ae(t,e,n){for(var r=-1,i=t.length,o=-1,u=[];++r<i;){var a=t[r];if(m(a)&&Kn(a)&&(n||Sa(a)||yi(a))){e&&(a=Ae(a,e,n));for(var s=-1,c=a.length;++s<c;)u[++o]=a[s]}else n||(u[++o]=a)}return u}function Ne(t,e){return ju(t,e,Wi)}function Ce(t,e){return ju(t,e,Pa)}function ke(t,e){return zu(t,e,Pa)}function xe(t,e){for(var n=-1,r=e.length,i=-1,o=[];++n<r;){var u=e[n];Na(t[u])&&(o[++i]=u)}return o}function Me(t,e,n){if(null!=t){n!==A&&n in ir(t)&&(e=[n]);for(var r=-1,i=e.length;null!=t&&++r<i;)t=t[e[r]];return r&&r==i?t:A}}function De(t,e,n,r,i,o){if(t===e)return!0;var u=typeof t,a=typeof e;return"function"!=u&&"object"!=u&&"function"!=a&&"object"!=a||null==t||null==e?t!==t&&e!==e:Re(t,e,De,n,r,i,o)}function Re(t,e,n,r,i,o,u){var a=Sa(t),s=Sa(e),c=B,f=B;a||(c=$o.call(t),c==H?c=et:c!=et&&(a=Mi(t))),s||(f=$o.call(e),f==H?f=et:f!=et&&(s=Mi(e)));var l=c==et,h=f==et,p=c==f;if(p&&!a&&!l)return Rn(t,e,c);if(!i){var _=l&&Vo.call(t,"__wrapped__"),v=h&&Vo.call(e,"__wrapped__");if(_||v)return n(_?t.value():t,v?e.value():e,r,i,o,u)}if(!p)return!1;o||(o=[]),u||(u=[]);for(var d=o.length;d--;)if(o[d]==t)return u[d]==e;o.push(t),u.push(e);var y=(a?Dn:jn)(t,e,n,r,i,o,u);return o.pop(),u.pop(),y}function je(t,e,n,r,i){for(var o=-1,u=e.length,a=!i;++o<u;)if(a&&r[o]?n[o]!==t[e[o]]:!(e[o]in t))return!1;for(o=-1;++o<u;){var s=e[o],c=t[s],f=n[o];if(a&&r[o])var l=c!==A||s in t;else l=i?i(c,f,s):A,l===A&&(l=De(f,c,i,!0));if(!l)return!1}return!0}function ze(t,e){var n=-1,r=Kn(t)?No(t.length):[];return Du(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function Le(t){var e=Pa(t),n=e.length;if(!n)return po(!0);if(1==n){var r=e[0],i=t[r];if(Yn(i))return function(t){return null==t?!1:t[r]===i&&(i!==A||r in ir(t))}}for(var o=No(n),u=No(n);n--;)i=t[e[n]],o[n]=i,u[n]=Yn(i);return function(t){return null!=t&&je(ir(t),e,o,u)}}function Pe(t,e){var n=Sa(t),r=Hn(t)&&Yn(e),i=t+"";return t=or(t),function(o){if(null==o)return!1;var u=i;if(o=ir(o),!(!n&&r||u in o)){if(o=1==t.length?o:Me(o,Fe(t,0,-1)),null==o)return!1;u=wr(t),o=ir(o)}return o[u]===e?e!==A||u in o:De(e,o[u],null,!0)}}function qe(t,e,n,r,i){if(!Oi(t))return t;var o=Kn(e)&&(Sa(e)||Mi(e));if(!o){var u=Pa(e);eu.apply(u,Gu(e))}return ee(u||e,function(a,s){if(u&&(s=a,a=e[s]),m(a))r||(r=[]),i||(i=[]),Ue(t,e,s,qe,n,r,i);else{var c=t[s],f=n?n(c,a,s,t,e):A,l=f===A;l&&(f=a),!o&&f===A||!l&&(f===f?f===c:c!==c)||(t[s]=f)}}),t}function Ue(t,e,n,r,i,o,u){for(var a=o.length,s=e[n];a--;)if(o[a]==s)return void(t[n]=u[a]);var c=t[n],f=i?i(c,s,n,t,e):A,l=f===A;l&&(f=s,Kn(s)&&(Sa(s)||Mi(s))?f=Sa(c)?c:Kn(c)?te(c):[]:Ca(s)||yi(s)?f=yi(c)?ji(c):Ca(c)?c:{}:l=!1),o.push(s),u.push(f),l?t[n]=r(f,s,i,o,u):(f===f?f!==c:c===c)&&(t[n]=f)}function We(t){return function(e){return null==e?A:e[t]}}function Ge(t){var e=t+"";return t=or(t),function(n){return Me(n,t,e)}}function Ve(t,e){for(var n=t?e.length:0;n--;){var r=parseFloat(e[n]);if(r!=i&&$n(r)){var i=r;uu.call(t,r,1)}}return t}function Ke(t,e){return t+Qo(wu()*(e-t+1))}function $e(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function Fe(t,e,n){var r=-1,i=t.length;e=null==e?0:+e||0,0>e&&(e=-e>i?0:i+e),n=n===A||n>i?i:+n||0,0>n&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=No(i);++r<i;)o[r]=t[r+e]Line truncated
|
||||
|
||||
}(),fu=function(){var t=nu&&Ai(t=Ro.assign)&&t;try{if(t){var e=nu({1:0});e[0]=1}}catch(n){try{t(e,"xo")}catch(n){}return!e[1]&&t}return!1}(),lu=Ai(lu=No.isArray)&&lu,hu=Ai(hu=Ro.create)&&hu,pu=t.isFinite,_u=Ai(_u=Ro.keys)&&_u,vu=Mo.max,du=Mo.min,yu=Ai(yu=Co.now)&&yu,gu=Ai(gu=Do.isFinite)&&gu,mu=t.parseInt,wu=Mo.random,bu=Do.NEGATIVE_INFINITY,Tu=Do.POSITIVE_INFINITY,Eu=Mo.pow(2,32)-1,Ou=Eu-1,Iu=Eu>>>1,Su=cu?cu.BYTES_PER_ELEMENT:0,Au=Mo.pow(2,53)-1,Nu=su&&new su,Cu={},ku=e.support={};!function(t){var e=function(){this.x=t},n=arguments,r=[];e.prototype={valueOf:t,y:t};for(var i in new e)r.push(i);ku.funcDecomp=/\bthis\b/.test(function(){return this}),ku.funcNames="string"==typeof xo.name;try{ku.dom=11===Wo.createDocumentFragment().nodeType}catch(o){ku.dom=!1}try{ku.nonEnumArgs=!ru.call(n,1)}catch(o){ku.nonEnumArgs=!0}}(1,0),e.templateSettings={escape:Et,evaluate:Ot,interpolate:It,variable:"",imports:{_:e}};var xu=fu||function(t,e){return null==e?t:ge(e,Gu(e),ge(e,Pa(e),t))},Mu=function(){function e(){}return function(n){if(Oi(n)){e.prototype=n;var r=new e;e.prototype=null}return r||t.Object()}}(),Du=fn(Ce),Ru=fn(ke,!0),ju=ln(),zu=ln(!0),Lu=Nu?function(t,e){return Nu.set(t,e),t}:_o;Jo||(on=Bo&&au?function(t){var e=t.byteLength,n=cu?Qo(e/Su):0,r=n*Su,i=new Bo(e);if(n){var o=new cu(i,0,n);o.set(new cu(t,0,n))}return e!=r&&(o=new au(i,r),o.set(new au(t,r))),i}:po(null));var Pu=hu&&iu?function(t){return new Xt(t)}:po(null),qu=Nu?function(t){return Nu.get(t)}:wo,Uu=function(){return ku.funcNames?"constant"==po.name?We("name"):function(t){for(var e=t.name,n=Cu[e],r=n?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}:po("")}(),Wu=We("length"),Gu=Zo?function(t){return Zo(ir(t))}:po([]),Vu=function(){var t=0,e=0;return function(n,r){var i=pa(),o=W-(i-e);if(e=i,o>0){if(++t>=U)return n}else t=0;return Lu(n,r)}}(),Ku=li(function(t,e){return Kn(t)?Te(t,Ae(e,!1,!0)):[]}),$u=gn(),Fu=gn(!0),Hu=li(function(t,e){e=Ae(e);var n=ye(t,e);return Ve(t,e.sort(o)),n}),Bu=xn(),Ju=xn(!0),Yu=li(function(t){return Xe(Ae(t,!1,!0))}),Xu=li(function(t,e){return Kn(t)?Te(t,e):[]}),Qu=li(xr),Zu=li(function(t){var e=t.length,n=t[e-2],r=t[e-1];return e>2&&"function"==typeof n?e-=2:(n=e>1&&"function"==typeof r?(--e,r):A,r=A),t.length=e,Mr(t,n,r)}),ta=li(function(t,e){return ye(t,Ae(e))}),ea=sn(function(t,e,n){Vo.call(t,n)?++t[n]:t[n]=1}),na=yn(Du),ra=yn(Ru,!0),ia=bn(ee,Du),oa=bn(ne,Ru),ua=sn(function(t,e,n){Vo.call(t,n)?t[n].push(e):t[n]=[e]}),aa=sn(function(t,e,n){t[n]=e}),sa=li(function(t,e,n){var r=-1,i="function"==typeof e,o=Hn(e),u=Kn(t)?No(t.length):[];return Du(t,function(t){var a=i?e:o&&null!=t&&t[e];u[++r]=a?a.apply(t,n):Vn(t,e,n)}),u}),ca=sn(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),fa=An(fe,Du),la=An(le,Ru),ha=li(function(t,e){if(null==t)return[];var n=e[2];return n&&Fn(e[0],e[1],n)&&(e.length=1),Je(t,Ae(e),[])}),pa=yu||function(){return(new Co).getTime()},_a=li(function(t,e,n){var r=C;if(n.length){var i=b(n,_a.placeholder);r|=R}return Mn(t,r,e,n,i)}),va=li(function(t,e){e=e.length?Ae(e):Li(t);for(var n=-1,r=e.length;++n<r;){var i=e[n];t[i]=Mn(t[i],C,t)}return t}),da=li(function(t,e,n){var r=C|k;if(n.length){var i=b(n,da.placeholder);r|=R}return Mn(e,r,t,n,i)}),ya=vn(M),ga=vn(D),ma=li(function(t,e){return be(t,1,e)}),wa=li(function(t,e,n){return be(t,e,n)}),ba=wn(),Ta=wn(!0),Ea=Sn(R),Oa=Sn(j),Ia=li(function(t,e){return Mn(t,L,null,null,null,Ae(e))}),Sa=lu||function(t){return m(t)&&Jn(t.length)&&$o.call(t)==B};ku.dom||(wi=function(t){return!!t&&1===t.nodeType&&m(t)&&!Ca(t)});var Aa=gu||function(t){return"number"==typeof t&&pu(t)},Na=s(/x/)||au&&!s(au)?function(t){return $o.call(t)==Q}:s,Ca=tu?function(t){if(!t||$o.call(t)!=et)return!1;var e=t.valueOf,n=Ai(e)&&(n=tu(e))&&tu(n);return n?t==n||tu(t)==n:er(t)}:er,ka=cn(function(t,e,n){return n?de(t,e,n):xu(t,e)}),xa=li(function(t){var e=t[0];return null==e?e:(t.push(_e),ka.apply(A,t))}),Ma=mn(Ce),Da=mn(ke),Ra=Tn(ju),ja=Tn(zu),za=En(Ce),La=En(ke),Pa=_u?function(t){var e=null!=t&&t.constructor;return"function"==typeof e&&e.prototype===t||"function"!=typeof t&&Kn(t)?nr(t):Oi(t)?_u(t):[]}:nr,qa=On(!0),Ua=On(),Wa=cn(qe),Ga=li(function(t,e){if(null==t)return{};if("function"!=typeof e[0]){var e=ae(Ae(e),zo);return Qn(t,Te(Wi(t),e))}var n=rn(e[0],e[1],3);return Zn(t,function(t,e,r){return!n(t,e,r)})}),Va=li(function(t,e){return null==t?{}:"function"==typeof e[0]?Zn(t,rn(e[0],e[1],3)):Qn(t,Ae(e))}),Ka=pn(function(t,e,n){return e=e.toLowerCase(),t+(n?e.charAt(0).toUpperCase()+e.slice(1):e)}),$a=pn(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Fa=In(),Ha=In(!0);8!=mu(Wt+"08")&&(no=function(t,e,n){return(n?Fn(t,e,n):null==e)?e=0:e&&(e=+e),t=uo(t),mu(t,e||(jt.test(t)?16:10))});var Ba=pn(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Ja=pn(function(t,e,n){return t+(n?" ":"")+(e.charAt(0).toUpperCase()+e.slice(1))}),Ya=li(function(t,e){try{return t.apply(A,e)}catch(n){return Ei(n)?n:new ko(n)}}),Xa=li(function(t,e){return function(n){return Vn(nLine truncated
|
||||
|
||||
},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t&&t.__esModule?t:{"default":t}},i=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.__proto__=e)},a=n(4),s=n(1),c=r(s),f=n(2),l=r(f),h=n(3),p=r(h),_=n(36),v=r(_),d=6e4,y=null,g=new a.List,m=function(t){function e(){i(this,e),null!=t&&t.apply(this,arguments)}return u(e,t),o(e,[{key:"isStale",value:function(){return null===y||(new Date).getTime()-y.getTime()>d}},{key:"all",get:function(){return g}}]),e}(p["default"]),w=new m;w.dispatchToken=c["default"].register(function(t){switch(t.actionType){case l["default"].ACTION_NEW_LOGBOOK:g=new a.List(t.logbookEntries.map(function(t){return v["default"].fromJSON(t)})),y=new Date,w.emitChange();break;case l["default"].ACTION_LOG_OUT:y=null,g=new a.List,w.emitChange()}}),e["default"]=w,t.exports=e["default"]},function(t,e,n){"use strict";function r(){return y.size}Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return t&&t.__esModule?t:{"default":t}},o=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.__proto__=e)},s=n(4),c=n(1),f=i(c),l=n(2),h=i(l),p=n(3),_=i(p),v=n(37),d=i(v),y=new s.List,g=function(t){function e(){o(this,e),null!=t&&t.apply(this,arguments)}return a(e,t),u(e,[{key:"hasNewNotifications",value:function(t){return!t||t+1<y.size}},{key:"lastNotification",get:function(){return y.last()}}]),e}(_["default"]),m=new g;m.dispatchToken=f["default"].register(function(t){switch(t.actionType){case h["default"].ACTION_NEW_NOTIFICATION:y=y.push(new d["default"](r(),t.message)),m.emitChange();break;case h["default"].ACTION_LOG_OUT:y=new s.List,m.emitChange()}}),e["default"]=m,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t.entityId}function i(t){b=b.set(t.entity_id,w["default"].fromJSON(t))}function o(t,e){var n=e?new f.Map:b;b=n.withMutations(function(e){return t.forEach(function(t){return e.set(t.entity_id,w["default"].fromJSON(t))}),e})}Object.defineProperty(e,"__esModule",{value:!0});var u=function(t){return t&&t.__esModule?t:{"default":t}},a=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.__proto__=e)},f=n(4),l=n(1),h=u(l),p=n(2),_=u(p),v=n(3),d=u(v),y=n(14),g=u(y),m=n(11),w=u(m),b=new f.Map,T=function(t){function e(){a(this,e),null!=t&&t.apply(this,arguments)}return c(e,t),s(e,[{key:"all",get:function(){return b.valueSeq().sortBy(r)}},{key:"get",value:function(t){return t=t.toLowerCase(),b.get(t)||null}},{key:"gets",value:function(t){return t=t.map(function(t){return t.toLowerCase()}),b.valueSeq().filter(function(e){return-1!==t.indexOf(e.entityId)}).sortBy(r)}},{key:"entityIDs",get:function(){return b.keySeq().sort()}},{key:"domains",get:function(){return b.keySeq().map(function(t){return t.split(".")[0]}).sort().toOrderedSet()}}]),e}(d["default"]),E=new T;E.dispatchToken=h["default"].register(function(t){switch(t.actionType){case _["default"].ACTION_NEW_STATES:(!g["default"].isStreaming||t.replace)&&(o(t.states,t.replace),E.emitChange());break;case _["default"].ACTION_REMOTE_EVENT_RECEIVED:t.event.event_type===_["default"].REMOTE_EVENT_STATE_CHANGED&&(i(t.event.data.new_state),E.emitChange());break;case _["default"].ACTION_LOG_OUT:b=new f.Map,E.emitChange()}}),e["default"]=E,t.exports=e["default"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t&&t.__esModule?Line truncated
|
||||
|
||||
return+this>+input}else{inputMs=isMoment(input)?+input:+local__createLocal(input);return inputMs<+this.clone().startOf(units)}}function isBefore(input,units){var inputMs;units=normalizeUnits(typeof units!=="undefined"?units:"millisecond");if(units==="millisecond"){input=isMoment(input)?input:local__createLocal(input);return+this<+input}else{inputMs=isMoment(input)?+input:+local__createLocal(input);return+this.clone().endOf(units)<inputMs}}function isBetween(from,to,units){return this.isAfter(from,units)&&this.isBefore(to,units)}function isSame(input,units){var inputMs;units=normalizeUnits(units||"millisecond");if(units==="millisecond"){input=isMoment(input)?input:local__createLocal(input);return+this===+input}else{inputMs=+local__createLocal(input);return+this.clone().startOf(units)<=inputMs&&inputMs<=+this.clone().endOf(units)}}function absFloor(number){if(number<0){return Math.ceil(number)}else{return Math.floor(number)}}function diff(input,units,asFloat){var that=cloneWithOffset(input,this),zoneDelta=(that.utcOffset()-this.utcOffset())*6e4,delta,output;units=normalizeUnits(units);if(units==="year"||units==="month"||units==="quarter"){output=monthDiff(this,that);if(units==="quarter"){output=output/3}else if(units==="year"){output=output/12}}else{delta=this-that;output=units==="second"?delta/1e3:units==="minute"?delta/6e4:units==="hour"?delta/36e5:units==="day"?(delta-zoneDelta)/864e5:units==="week"?(delta-zoneDelta)/6048e5:delta}return asFloat?output:absFloor(output)}function monthDiff(a,b){var wholeMonthDiff=(b.year()-a.year())*12+(b.month()-a.month()),anchor=a.clone().add(wholeMonthDiff,"months"),anchor2,adjust;if(b-anchor<0){anchor2=a.clone().add(wholeMonthDiff-1,"months");adjust=(b-anchor)/(anchor-anchor2)}else{anchor2=a.clone().add(wholeMonthDiff+1,"months");adjust=(b-anchor)/(anchor2-anchor)}return-(wholeMonthDiff+adjust)}utils_hooks__hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";function toString(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function moment_format__toISOString(){var m=this.clone().utc();if(0<m.year()&&m.year()<=9999){if("function"===typeof Date.prototype.toISOString){return this.toDate().toISOString()}else{return formatMoment(m,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}}else{return formatMoment(m,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}}function format(inputString){var output=formatMoment(this,inputString||utils_hooks__hooks.defaultFormat);return this.localeData().postformat(output)}function from(time,withoutSuffix){return create__createDuration({to:this,from:time}).locale(this.locale()).humanize(!withoutSuffix)}function fromNow(withoutSuffix){return this.from(local__createLocal(),withoutSuffix)}function locale(key){var newLocaleData;if(key===undefined){return this._locale._abbr}else{newLocaleData=locale_locales__getLocale(key);if(newLocaleData!=null){this._locale=newLocaleData}return this}}var lang=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(key){if(key===undefined){return this.localeData()}else{return this.locale(key)}});function localeData(){return this._locale}function startOf(units){units=normalizeUnits(units);switch(units){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}if(units==="week"){this.weekday(0)}if(units==="isoWeek"){this.isoWeekday(1)}if(units==="quarter"){this.month(Math.floor(this.month()/3)*3)}return this}function endOf(units){units=normalizeUnits(units);if(units===undefined||units==="millisecond"){return this}return this.startOf(units).add(1,units==="isoWeek"?"week":units).subtract(1,"ms")}function to_type__valueOf(){return+this._d-(this._offset||0)*6e4}function unix(){return Math.floor(+this/1e3)}function toDate(){return this._offset?new Date(+this):this._d}function toArray(){var m=this;return[m.year(),m.month(),m.date(),m.hour(),m.minute(),m.second(),m.millisecond()]}function moment_valid__isValid(){return valid__isValid(this)}function parsingFlags(){return extend({},this._pf)}function invalidAt(){return this._pf.overflow}addFormatToken(0,["gg",2],0,function(){return this.weekYear()%100});addFormatToken(0,["GG",2],0,function(){return this.isoWeekYear()%100});function addWeekYearFormatToken(token,getter){addFormatToken(0,[token,token.length],0,getter)}addWeekYearFormatToken("gggg","weekYear");addWeekYearFormatToken("ggggg","weekYear");addWeekYearFormatToken("GGGG","isoWeekYear");addWeekYearFormatToken("GGGGG","isoWeekYear");addUnitAlias("weekYear","gg");addUnitAlias("isoWeekYear","GG");addRegexToken("G",matchSigned);addRegexToken("g",matchSigned);addRegexToken("GG",match1to2,match2);addRegexToken("gg",match1to2,match2);addRegexToken("GGGG",match1to4,match4);addRegexToken("gggg",match1to4,match4);addRegexToken("GGGGG",match1to6,match6);addRegexToken("ggggg",match1to6,match6);adLine truncated
|
||||
Vendored
+1
-1
Submodule homeassistant/external/netdisco updated: a5b3dd56a5...b2cad7c2b9.
Vendored
+1
-1
Submodule homeassistant/external/noop updated: 45fae73c1f...4eaeb3367f.
Vendored
+1
-1
Submodule homeassistant/external/nzbclients updated: f9f9ba3693...f01997498f.
Vendored
+1
-1
Submodule homeassistant/external/pymysensors updated: 75e0f50571...cd5ef892ee.
Vendored
+1
-1
Submodule homeassistant/external/pywemo updated: 7f6c383ded...ca94e41faa.
Reference in new issue
Block a user