Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: appengine/swarming/elements/build/elements.html

Issue 2359993002: Medium sized improvements to bot-list and task-list (Closed) Base URL: git@github.com:luci/luci-py@master
Patch Set: condense loop Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | appengine/swarming/elements/build/js/js.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html><html><head><meta charset="UTF-8"> </head><body><div hidden="" by -vulcanize=""><script>!function(){function e(){document.body.removeAttribute("un resolved")}window.WebComponents?addEventListener("WebComponentsReady",e):"intera ctive"===document.readyState||"complete"===document.readyState?e():addEventListe ner("DOMContentLoaded",e)}(),window.Polymer={Settings:function(){for(var e,t=win dow.Polymer||{},r=location.search.slice(1).split("&"),i=0;i<r.length&&(e=r[i]);i ++)e=e.split("="),e[0]&&(t[e[0]]=e[1]||!0);return t.wantShadow="shadow"===t.dom, t.hasShadow=Boolean(Element.prototype.createShadowRoot),t.nativeShadow=t.hasShad ow&&!window.ShadowDOMPolyfill,t.useShadow=t.wantShadow&&t.hasShadow,t.hasNativeI mports=Boolean("import"in document.createElement("link")),t.useNativeImports=t.h asNativeImports,t.useNativeCustomElements=!window.CustomElements||window.CustomE lements.useNative,t.useNativeShadow=t.useShadow&&t.nativeShadow,t.usePolyfillPro to=!t.useNativeCustomElements&&!Object.__proto__,t.hasNativeCSSProperties=!navig ator.userAgent.match("AppleWebKit/601")&&window.CSS&&CSS.supports&&CSS.supports( "box-shadow","0 0 0 var(--foo)"),t.useNativeCSSProperties=t.hasNativeCSSProperti es&&t.lazyRegister&&t.useNativeCSSProperties,t}()},function(){var e=window.Polym er;window.Polymer=function(e){"function"==typeof e&&(e=e.prototype),e||(e={});va r r=t(e);e=r.prototype;var i={prototype:e};return e.extends&&(i.extends=e.extend s),Polymer.telemetry._registrate(e),document.registerElement(e.is,i),r};var t=fu nction(e){var t=Polymer.Base;return e.extends&&(t=Polymer.Base._getExtendedProto type(e.extends)),e=Polymer.Base.chainObject(e,t),e.registerCallback(),e.construc tor};if(e)for(var r in e)Polymer[r]=e[r];Polymer.Class=t}(),Polymer.telemetry={r egistrations:[],_regLog:function(e){console.log("["+e.is+"]: registered")},_regi strate:function(e){this.registrations.push(e),Polymer.log&&this._regLog(e)},dump Registrations:function(){this.registrations.forEach(this._regLog)}},Object.defin eProperty(window,"currentImport",{enumerable:!0,configurable:!0,get:function(){r eturn(document._currentScript||document.currentScript).ownerDocument}}),Polymer. RenderStatus={_ready:!1,_callbacks:[],whenReady:function(e){this._ready?e():this ._callbacks.push(e)},_makeReady:function(){this._ready=!0;for(var e=0;e<this._ca llbacks.length;e++)this._callbacks[e]();this._callbacks=[]},_catchFirstRender:fu nction(){requestAnimationFrame(function(){Polymer.RenderStatus._makeReady()})},_ afterNextRenderQueue:[],_waitingNextRender:!1,afterNextRender:function(e,t,r){th is._watchNextRender(),this._afterNextRenderQueue.push([e,t,r])},hasRendered:func tion(){return this._ready},_watchNextRender:function(){if(!this._waitingNextRend er){this._waitingNextRender=!0;var e=function(){Polymer.RenderStatus._flushNextR ender()};this._ready?requestAnimationFrame(e):this.whenReady(e)}},_flushNextRend er:function(){var e=this;setTimeout(function(){e._flushRenderCallbacks(e._afterN extRenderQueue),e._afterNextRenderQueue=[],e._waitingNextRender=!1})},_flushRend erCallbacks:function(e){for(var t,r=0;r<e.length;r++)t=e[r],t[1].apply(t[0],t[2] ||Polymer.nar)}},window.HTMLImports?HTMLImports.whenReady(function(){Polymer.Ren derStatus._catchFirstRender()}):Polymer.RenderStatus._catchFirstRender(),Polymer .ImportStatus=Polymer.RenderStatus,Polymer.ImportStatus.whenLoaded=Polymer.Impor tStatus.whenReady,function(){"use strict";var e=Polymer.Settings;Polymer.Base={_ _isPolymerInstance__:!0,_addFeature:function(e){this.extend(this,e)},registerCal lback:function(){this._desugarBehaviors(),this._doBehavior("beforeRegister"),thi s._registerFeatures(),e.lazyRegister||this.ensureRegisterFinished()},createdCall back:function(){this.__hasRegisterFinished||this._ensureRegisterFinished(this.__ proto__),Polymer.telemetry.instanceCount++,this.root=this,this._doBehavior("crea ted"),this._initFeatures()},ensureRegisterFinished:function(){this._ensureRegist erFinished(this)},_ensureRegisterFinished:function(t){t.__hasRegisterFinished!== t.is&&(t.__hasRegisterFinished=t.is,t._finishRegisterFeatures&&t._finishRegister Features(),t._doBehavior("registered"),e.usePolyfillProto&&t!==this&&t.extend(th is,t))},attachedCallback:function(){var e=this;Polymer.RenderStatus.whenReady(fu nction(){e.isAttached=!0,e._doBehavior("attached")})},detachedCallback:function( ){var e=this;Polymer.RenderStatus.whenReady(function(){e.isAttached=!1,e._doBeha vior("detached")})},attributeChangedCallback:function(e,t,r){this._attributeChan gedImpl(e),this._doBehavior("attributeChanged",[e,t,r])},_attributeChangedImpl:f unction(e){this._setAttributeToProperty(this,e)},extend:function(e,t){if(e&&t)fo r(var r,i=Object.getOwnPropertyNames(t),o=0;o<i.length&&(r=i[o]);o++)this.copyOw nProperty(r,t,e);return e||t},mixin:function(e,t){for(var r in t)e[r]=t[r];retur n e},copyOwnProperty:function(e,t,r){var i=Object.getOwnPropertyDescriptor(t,e); i&&Object.defineProperty(r,e,i)},_logger:function(e,t){switch(1===t.length&&Arra y.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":console[e].apply(c onsole,t)}},_log:function(){var e=Array.prototype.slice.call(arguments,0);this._ logger("log",e)},_warn:function(){var e=Array.prototype.slice.call(arguments,0); this._logger("warn",e)},_error:function(){var e=Array.prototype.slice.call(argum ents,0);this._logger("error",e)},_logf:function(){return this._logPrefix.concat( this.is).concat(Array.prototype.slice.call(arguments,0))}},Polymer.Base._logPref ix=function(){var e=window.chrome&&!/edge/i.test(navigator.userAgent)||/firefox/ i.test(navigator.userAgent);return e?["%c[%s::%s]:","font-weight: bold; backgrou nd-color:#EEEE00;"]:["[%s::%s]:"]}(),Polymer.Base.chainObject=function(e,t){retu rn e&&t&&e!==t&&(Object.__proto__||(e=Polymer.Base.extend(Object.create(t),e)),e .__proto__=t),e},Polymer.Base=Polymer.Base.chainObject(Polymer.Base,HTMLElement. prototype),window.CustomElements?Polymer.instanceof=CustomElements.instanceof:Po lymer.instanceof=function(e,t){return e instanceof t},Polymer.isInstance=functio n(e){return Boolean(e&&e.__isPolymerInstance__)},Polymer.telemetry.instanceCount =0}(),function(){function e(){if(s)for(var e,t=document._currentScript||document .currentScript,r=t&&t.ownerDocument||document,i=r.querySelectorAll("dom-module") ,o=i.length-1;o>=0&&(e=i[o]);o--){if(e.__upgraded__)return;CustomElements.upgrad e(e)}}var t={},r={},i=function(e){return t[e]||r[e.toLowerCase()]},o=function(){ return document.createElement("dom-module")};o.prototype=Object.create(HTMLEleme nt.prototype),Polymer.Base.extend(o.prototype,{constructor:o,createdCallback:fun ction(){this.register()},register:function(e){e=e||this.id||this.getAttribute("n ame")||this.getAttribute("is"),e&&(this.id=e,t[e]=this,r[e.toLowerCase()]=this)} ,import:function(t,r){if(t){var o=i(t);return o||(e(),o=i(t)),o&&r&&(o=o.querySe lector(r)),o}}});var s=window.CustomElements&&!CustomElements.useNative;document .registerElement("dom-module",o)}(),Polymer.Base._addFeature({_prepIs:function() {if(!this.is){var e=(document._currentScript||document.currentScript).parentNode ;if("dom-module"===e.localName){var t=e.id||e.getAttribute("name")||e.getAttribu te("is");this.is=t}}this.is&&(this.is=this.is.toLowerCase())}}),Polymer.Base._ad dFeature({behaviors:[],_desugarBehaviors:function(){this.behaviors.length&&(this .behaviors=this._desugarSomeBehaviors(this.behaviors))},_desugarSomeBehaviors:fu nction(e){var t=[];e=this._flattenBehaviorsList(e);for(var r=e.length-1;r>=0;r-- ){var i=e[r];t.indexOf(i)===-1&&(this._mixinBehavior(i),t.unshift(i))}return t}, _flattenBehaviorsList:function(e){for(var t=[],r=0;r<e.length;r++){var i=e[r];i instanceof Array?t=t.concat(this._flattenBehaviorsList(i)):i?t.push(i):this._war n(this._logf("_flattenBehaviorsList","behavior is null, check for missing or 404 import"))}return t},_mixinBehavior:function(e){for(var t,r=Object.getOwnPropert yNames(e),i=0;i<r.length&&(t=r[i]);i++)Polymer.Base._behaviorProperties[t]||this .hasOwnProperty(t)||this.copyOwnProperty(t,e,this)},_prepBehaviors:function(){th is._prepFlattenedBehaviors(this.behaviors)},_prepFlattenedBehaviors:function(e){ for(var t=0,r=e.length;t<r;t++)this._prepBehavior(e[t]);this._prepBehavior(this) },_doBehavior:function(e,t){for(var r=0;r<this.behaviors.length;r++)this._invoke Behavior(this.behaviors[r],e,t);this._invokeBehavior(this,e,t)},_invokeBehavior: function(e,t,r){var i=e[t];i&&i.apply(this,r||Polymer.nar)},_marshalBehaviors:fu nction(){for(var e=0;e<this.behaviors.length;e++)this._marshalBehavior(this.beha viors[e]);this._marshalBehavior(this)}}),Polymer.Base._behaviorProperties={hostA ttributes:!0,beforeRegister:!0,registered:!0,properties:!0,observers:!0,listener s:!0,created:!0,attached:!0,detached:!0,attributeChanged:!0,ready:!0},Polymer.Ba se._addFeature({_getExtendedPrototype:function(e){return this._getExtendedNative Prototype(e)},_nativePrototypes:{},_getExtendedNativePrototype:function(e){var t =this._nativePrototypes[e];if(!t){var r=this.getNativePrototype(e);t=this.extend (Object.create(r),Polymer.Base),this._nativePrototypes[e]=t}return t},getNativeP rototype:function(e){return Object.getPrototypeOf(document.createElement(e))}}), Polymer.Base._addFeature({_prepConstructor:function(){this._factoryArgs=this.ext ends?[this.extends,this.is]:[this.is];var e=function(){return this._factory(argu ments)};this.hasOwnProperty("extends")&&(e.extends=this.extends),Object.definePr operty(this,"constructor",{value:e,writable:!0,configurable:!0}),e.prototype=thi s},_factory:function(e){var t=document.createElement.apply(document,this._factor yArgs);return this.factoryImpl&&this.factoryImpl.apply(t,e),t}}),Polymer.nob=Obj ect.create(null),Polymer.Base._addFeature({properties:{},getPropertyInfo:functio n(e){var t=this._getPropertyInfo(e,this.properties);if(!t)for(var r=0;r<this.beh aviors.length;r++)if(t=this._getPropertyInfo(e,this.behaviors[r].properties))ret urn t;return t||Polymer.nob},_getPropertyInfo:function(e,t){var r=t&&t[e];return "function"==typeof r&&(r=t[e]={type:r}),r&&(r.defined=!0),r},_prepPropertyInfo:f unction(){this._propertyInfo={};for(var e=0;e<this.behaviors.length;e++)this._ad dPropertyInfo(this._propertyInfo,this.behaviors[e].properties);this._addProperty Info(this._propertyInfo,this.properties),this._addPropertyInfo(this._propertyInf o,this._propertyEffects)},_addPropertyInfo:function(e,t){if(t){var r,i;for(var o in t)r=e[o],i=t[o],("_"!==o[0]||i.readOnly)&&(e[o]?(r.type||(r.type=i.type),r.r eadOnly||(r.readOnly=i.readOnly)):e[o]={type:"function"==typeof i?i:i.type,readO nly:i.readOnly,attribute:Polymer.CaseMap.camelToDashCase(o)})}}}),Polymer.CaseMa p={_caseMap:{},_rx:{dashToCamel:/-[a-z]/g,camelToDash:/([A-Z])/g},dashToCamelCas e:function(e){return this._caseMap[e]||(this._caseMap[e]=e.indexOf("-")<0?e:e.re place(this._rx.dashToCamel,function(e){return e[1].toUpperCase()}))},camelToDash Case:function(e){return this._caseMap[e]||(this._caseMap[e]=e.replace(this._rx.c amelToDash,"-$1").toLowerCase())}},Polymer.Base._addFeature({_addHostAttributes: function(e){this._aggregatedAttributes||(this._aggregatedAttributes={}),e&&this. mixin(this._aggregatedAttributes,e)},_marshalHostAttributes:function(){this._agg regatedAttributes&&this._applyAttributes(this,this._aggregatedAttributes)},_appl yAttributes:function(e,t){for(var r in t)if(!this.hasAttribute(r)&&"class"!==r){ var i=t[r];this.serializeValueToAttribute(i,r,this)}},_marshalAttributes:functio n(){this._takeAttributesToModel(this)},_takeAttributesToModel:function(e){if(thi s.hasAttributes())for(var t in this._propertyInfo){var r=this._propertyInfo[t];t his.hasAttribute(r.attribute)&&this._setAttributeToProperty(e,r.attribute,t,r)}} ,_setAttributeToProperty:function(e,t,r,i){if(!this._serializing&&(r=r||Polymer. CaseMap.dashToCamelCase(t),i=i||this._propertyInfo&&this._propertyInfo[r],i&&!i. readOnly)){var o=this.getAttribute(t);e[r]=this.deserialize(o,i.type)}},_seriali zing:!1,reflectPropertyToAttribute:function(e,t,r){this._serializing=!0,r=void 0 ===r?this[e]:r,this.serializeValueToAttribute(r,t||Polymer.CaseMap.camelToDashCa se(e)),this._serializing=!1},serializeValueToAttribute:function(e,t,r){var i=thi s.serialize(e);r=r||this,void 0===i?r.removeAttribute(t):r.setAttribute(t,i)},de serialize:function(e,t){switch(t){case Number:e=Number(e);break;case Boolean:e=n ull!=e;break;case Object:try{e=JSON.parse(e)}catch(e){}break;case Array:try{e=JS ON.parse(e)}catch(t){e=null,console.warn("Polymer::Attributes: couldn`t decode A rray as JSON")}break;case Date:e=new Date(e);break;case String:}return e},serial ize:function(e){switch(typeof e){case"boolean":return e?"":void 0;case"object":i f(e instanceof Date)return e.toString();if(e)try{return JSON.stringify(e)}catch( e){return""}default:return null!=e?e:void 0}}}),Polymer.version="1.6.0",Polymer. Base._addFeature({_registerFeatures:function(){this._prepIs(),this._prepBehavior s(),this._prepConstructor(),this._prepPropertyInfo()},_prepBehavior:function(e){ this._addHostAttributes(e.hostAttributes)},_marshalBehavior:function(e){},_initF eatures:function(){this._marshalHostAttributes(),this._marshalBehaviors()}})</sc ript> <script>Polymer.Base._addFeature({_prepTemplate:function(){void 0===this._ template&&(this._template=Polymer.DomModule.import(this.is,"template")),this._te mplate&&this._template.hasAttribute("is")&&this._warn(this._logf("_prepTemplate" ,"top-level Polymer template must not be a type-extension, found",this._template ,"Move inside simple <template>.")),this._template&&!this._template.content&&win dow.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decor ate(this._template)},_stampTemplate:function(){this._template&&(this.root=this.i nstanceTemplate(this._template))},instanceTemplate:function(e){var t=document.im portNode(e._content||e.content,!0);return t}}),function(){var e=Polymer.Base.att achedCallback;Polymer.Base._addFeature({_hostStack:[],ready:function(){},_regist erHost:function(e){this.dataHost=e=e||Polymer.Base._hostStack[Polymer.Base._host Stack.length-1],e&&e._clients&&e._clients.push(this),this._clients=null,this._cl ientsReadied=!1},_beginHosting:function(){Polymer.Base._hostStack.push(this),thi s._clients||(this._clients=[])},_endHosting:function(){Polymer.Base._hostStack.p op()},_tryReady:function(){this._readied=!1,this._canReady()&&this._ready()},_ca nReady:function(){return!this.dataHost||this.dataHost._clientsReadied},_ready:fu nction(){this._beforeClientsReady(),this._template&&(this._setupRoot(),this._rea dyClients()),this._clientsReadied=!0,this._clients=null,this._afterClientsReady( ),this._readySelf()},_readyClients:function(){this._beginDistribute();var e=this ._clients;if(e)for(var t,o=0,i=e.length;o<i&&(t=e[o]);o++)t._ready();this._finis hDistribute()},_readySelf:function(){this._doBehavior("ready"),this._readied=!0, this._attachedPending&&(this._attachedPending=!1,this.attachedCallback())},_befo reClientsReady:function(){},_afterClientsReady:function(){},_beforeAttached:func tion(){},attachedCallback:function(){this._readied?(this._beforeAttached(),e.cal l(this)):this._attachedPending=!0}})}(),Polymer.ArraySplice=function(){function e(e,t,o){return{index:e,removed:t,addedCount:o}}function t(){}var o=0,i=1,n=2,s= 3;return t.prototype={calcEditDistances:function(e,t,o,i,n,s){for(var r=s-n+1,d= o-t+1,a=new Array(r),l=0;l<r;l++)a[l]=new Array(d),a[l][0]=l;for(var h=0;h<d;h++ )a[0][h]=h;for(l=1;l<r;l++)for(h=1;h<d;h++)if(this.equals(e[t+h-1],i[n+l-1]))a[l ][h]=a[l-1][h-1];else{var u=a[l-1][h]+1,c=a[l][h-1]+1;a[l][h]=u<c?u:c}return a}, spliceOperationsFromEditDistances:function(e){for(var t=e.length-1,r=e[0].length -1,d=e[t][r],a=[];t>0||r>0;)if(0!=t)if(0!=r){var l,h=e[t-1][r-1],u=e[t-1][r],c=e [t][r-1];l=u<c?u<h?u:h:c<h?c:h,l==h?(h==d?a.push(o):(a.push(i),d=h),t--,r--):l== u?(a.push(s),t--,d=u):(a.push(n),r--,d=c)}else a.push(s),t--;else a.push(n),r--; return a.reverse(),a},calcSplices:function(t,r,d,a,l,h){var u=0,c=0,_=Math.min(d -r,h-l);if(0==r&&0==l&&(u=this.sharedPrefix(t,a,_)),d==t.length&&h==a.length&&(c =this.sharedSuffix(t,a,_-u)),r+=u,l+=u,d-=c,h-=c,d-r==0&&h-l==0)return[];if(r==d ){for(var f=e(r,[],0);l<h;)f.removed.push(a[l++]);return[f]}if(l==h)return[e(r,[ ],d-r)];var m=this.spliceOperationsFromEditDistances(this.calcEditDistances(t,r, d,a,l,h));f=void 0;for(var p=[],v=r,g=l,b=0;b<m.length;b++)switch(m[b]){case o:f &&(p.push(f),f=void 0),v++,g++;break;case i:f||(f=e(v,[],0)),f.addedCount++,v++, f.removed.push(a[g]),g++;break;case n:f||(f=e(v,[],0)),f.addedCount++,v++;break; case s:f||(f=e(v,[],0)),f.removed.push(a[g]),g++}return f&&p.push(f),p},sharedPr efix:function(e,t,o){for(var i=0;i<o;i++)if(!this.equals(e[i],t[i]))return i;ret urn o},sharedSuffix:function(e,t,o){for(var i=e.length,n=t.length,s=0;s<o&&this. equals(e[--i],t[--n]);)s++;return s},calculateSplices:function(e,t){return this. calcSplices(e,0,e.length,t,0,t.length)},equals:function(e,t){return e===t}},new t}(),Polymer.domInnerHTML=function(){function e(e){switch(e){case"&":return"&amp ;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":retu rn"&nbsp;"}}function t(t){return t.replace(r,e)}function o(t){return t.replace(d ,e)}function i(e){for(var t={},o=0;o<e.length;o++)t[e[o]]=!0;return t}function n (e,i,n){switch(e.nodeType){case Node.ELEMENT_NODE:for(var r,d=e.localName,h="<"+ d,u=e.attributes,c=0;r=u[c];c++)h+=" "+r.name+'="'+t(r.value)+'"';return h+=">", a[d]?h:h+s(e,n)+"</"+d+">";case Node.TEXT_NODE:var _=e.data;return i&&l[i.localN ame]?_:o(_);case Node.COMMENT_NODE:return"\x3c!--"+e.data+"--\x3e";default:throw console.error(e),new Error("not implemented")}}function s(e,t){e instanceof HTM LTemplateElement&&(e=e.content);for(var o,i="",s=Polymer.dom(e).childNodes,r=0,d =s.length;r<d&&(o=s[r]);r++)i+=n(o,e,t);return i}var r=/[&\u00A0"]/g,d=/[&\u00A0 <>]/g,a=i(["area","base","br","col","command","embed","hr","img","input","keygen ","link","meta","param","source","track","wbr"]),l=i(["style","script","xmp","if rame","noembed","noframes","plaintext","noscript"]);return{getInnerHTML:s}}(),fu nction(){"use strict";var e=Element.prototype.insertBefore,t=Element.prototype.a ppendChild,o=Element.prototype.removeChild;Polymer.TreeApi={arrayCopyChildNodes: function(e){for(var t=[],o=0,i=e.firstChild;i;i=i.nextSibling)t[o++]=i;return t} ,arrayCopyChildren:function(e){for(var t=[],o=0,i=e.firstElementChild;i;i=i.next ElementSibling)t[o++]=i;return t},arrayCopy:function(e){for(var t=e.length,o=new Array(t),i=0;i<t;i++)o[i]=e[i];return o}},Polymer.TreeApi.Logical={hasParentNod e:function(e){return Boolean(e.__dom&&e.__dom.parentNode)},hasChildNodes:functio n(e){return Boolean(e.__dom&&void 0!==e.__dom.childNodes)},getChildNodes:functio n(e){return this.hasChildNodes(e)?this._getChildNodes(e):e.childNodes},_getChild Nodes:function(e){if(!e.__dom.childNodes){e.__dom.childNodes=[];for(var t=e.__do m.firstChild;t;t=t.__dom.nextSibling)e.__dom.childNodes.push(t)}return e.__dom.c hildNodes},getParentNode:function(e){return e.__dom&&void 0!==e.__dom.parentNode ?e.__dom.parentNode:e.parentNode},getFirstChild:function(e){return e.__dom&&void 0!==e.__dom.firstChild?e.__dom.firstChild:e.firstChild},getLastChild:function(e ){return e.__dom&&void 0!==e.__dom.lastChild?e.__dom.lastChild:e.lastChild},getN extSibling:function(e){return e.__dom&&void 0!==e.__dom.nextSibling?e.__dom.next Sibling:e.nextSibling},getPreviousSibling:function(e){return e.__dom&&void 0!==e .__dom.previousSibling?e.__dom.previousSibling:e.previousSibling},getFirstElemen tChild:function(e){return e.__dom&&void 0!==e.__dom.firstChild?this._getFirstEle mentChild(e):e.firstElementChild},_getFirstElementChild:function(e){for(var t=e. __dom.firstChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__dom.nextSibling;return t},getLastElementChild:function(e){return e.__dom&&void 0!==e.__dom.lastChild?t his._getLastElementChild(e):e.lastElementChild},_getLastElementChild:function(e) {for(var t=e.__dom.lastChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__dom.previo usSibling;return t},getNextElementSibling:function(e){return e.__dom&&void 0!==e .__dom.nextSibling?this._getNextElementSibling(e):e.nextElementSibling},_getNext ElementSibling:function(e){for(var t=e.__dom.nextSibling;t&&t.nodeType!==Node.EL EMENT_NODE;)t=t.__dom.nextSibling;return t},getPreviousElementSibling:function(e ){return e.__dom&&void 0!==e.__dom.previousSibling?this._getPreviousElementSibli ng(e):e.previousElementSibling},_getPreviousElementSibling:function(e){for(var t =e.__dom.previousSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__dom.previousSi bling;return t},saveChildNodes:function(e){if(!this.hasChildNodes(e)){e.__dom=e. __dom||{},e.__dom.firstChild=e.firstChild,e.__dom.lastChild=e.lastChild,e.__dom. childNodes=[];for(var t=e.firstChild;t;t=t.nextSibling)t.__dom=t.__dom||{},t.__d om.parentNode=e,e.__dom.childNodes.push(t),t.__dom.nextSibling=t.nextSibling,t._ _dom.previousSibling=t.previousSibling}},recordInsertBefore:function(e,t,o){if(t .__dom.childNodes=null,e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var i=e.firs tChild;i;i=i.nextSibling)this._linkNode(i,t,o);else this._linkNode(e,t,o)},_link Node:function(e,t,o){e.__dom=e.__dom||{},t.__dom=t.__dom||{},o&&(o.__dom=o.__dom ||{}),e.__dom.previousSibling=o?o.__dom.previousSibling:t.__dom.lastChild,e.__do m.previousSibling&&(e.__dom.previousSibling.__dom.nextSibling=e),e.__dom.nextSib ling=o||null,e.__dom.nextSibling&&(e.__dom.nextSibling.__dom.previousSibling=e), e.__dom.parentNode=t,o?o===t.__dom.firstChild&&(t.__dom.firstChild=e):(t.__dom.l astChild=e,t.__dom.firstChild||(t.__dom.firstChild=e)),t.__dom.childNodes=null}, recordRemoveChild:function(e,t){e.__dom=e.__dom||{},t.__dom=t.__dom||{},e===t.__ dom.firstChild&&(t.__dom.firstChild=e.__dom.nextSibling),e===t.__dom.lastChild&& (t.__dom.lastChild=e.__dom.previousSibling);var o=e.__dom.previousSibling,i=e.__ dom.nextSibling;o&&(o.__dom.nextSibling=i),i&&(i.__dom.previousSibling=o),e.__do m.parentNode=e.__dom.previousSibling=e.__dom.nextSibling=void 0,t.__dom.childNod es=null}},Polymer.TreeApi.Composed={getChildNodes:function(e){return Polymer.Tre eApi.arrayCopyChildNodes(e)},getParentNode:function(e){return e.parentNode},clea rChildNodes:function(e){e.textContent=""},insertBefore:function(t,o,i){return e. call(t,o,i||null)},appendChild:function(e,o){return t.call(e,o)},removeChild:fun ction(e,t){return o.call(e,t)}}}(),Polymer.DomApi=function(){"use strict";var e= Polymer.Settings,t=Polymer.TreeApi,o=function(e){this.node=i?o.wrap(e):e},i=e.ha sShadow&&!e.nativeShadow;o.wrap=window.wrap?window.wrap:function(e){return e},o. prototype={flush:function(){Polymer.dom.flush()},deepContains:function(e){if(thi s.node.contains(e))return!0;for(var t=e,o=e.ownerDocument;t&&t!==o&&t!==this.nod e;)t=Polymer.dom(t).parentNode||t.host;return t===this.node},queryDistributedEle ments:function(e){for(var t,i=this.getEffectiveChildNodes(),n=[],s=0,r=i.length; s<r&&(t=i[s]);s++)t.nodeType===Node.ELEMENT_NODE&&o.matchesSelector.call(t,e)&&n .push(t);return n},getEffectiveChildNodes:function(){for(var e,t=[],o=this.child Nodes,i=0,r=o.length;i<r&&(e=o[i]);i++)if(e.localName===n)for(var d=s(e).getDist ributedNodes(),a=0;a<d.length;a++)t.push(d[a]);else t.push(e);return t},observeN odes:function(e){if(e)return this.observer||(this.observer=this.node.localName== =n?new o.DistributedNodesObserver(this):new o.EffectiveNodesObserver(this)),this .observer.addListener(e)},unobserveNodes:function(e){this.observer&&this.observe r.removeListener(e)},notifyObserver:function(){this.observer&&this.observer.noti fy()},_query:function(e,o,i){o=o||this.node;var n=[];return this._queryElements( t.Logical.getChildNodes(o),e,i,n),n},_queryElements:function(e,t,o,i){for(var n, s=0,r=e.length;s<r&&(n=e[s]);s++)if(n.nodeType===Node.ELEMENT_NODE&&this._queryE lement(n,t,o,i))return!0},_queryElement:function(e,o,i,n){var s=o(e);return s&&n .push(e),i&&i(s)?s:void this._queryElements(t.Logical.getChildNodes(e),o,i,n)}}; var n=o.CONTENT="content",s=o.factory=function(e){return e=e||document,e.__domAp i||(e.__domApi=new o.ctor(e)),e.__domApi};o.hasApi=function(e){return Boolean(e. __domApi)},o.ctor=o,Polymer.dom=function(e,t){return e instanceof Event?Polymer. EventApi.factory(e):o.factory(e,t)};var r=Element.prototype;return o.matchesSele ctor=r.matches||r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r. oMatchesSelector||r.webkitMatchesSelector,o}(),function(){"use strict";var e=Pol ymer.Settings,t=Polymer.DomApi,o=t.factory,i=Polymer.TreeApi,n=Polymer.domInnerH TML.getInnerHTML,s=t.CONTENT;if(!e.useShadow){var r=Element.prototype.cloneNode, d=Document.prototype.importNode;Polymer.Base.extend(t.prototype,{_lazyDistribute :function(e){e.shadyRoot&&e.shadyRoot._distributionClean&&(e.shadyRoot._distribu tionClean=!1,Polymer.dom.addDebouncer(e.debounce("_distribute",e._distributeCont ent)))},appendChild:function(e){return this.insertBefore(e)},insertBefore:functi on(e,n){if(n&&i.Logical.getParentNode(n)!==this.node)throw Error("The ref_node t o be inserted before is not a child of this node");if(e.nodeType!==Node.DOCUMENT _FRAGMENT_NODE){var r=i.Logical.getParentNode(e);r?(t.hasApi(r)&&o(r).notifyObse rver(),this._removeNode(e)):this._removeOwnerShadyRoot(e)}if(!this._addNode(e,n) ){n&&(n=n.localName===s?this._firstComposedNode(n):n);var d=this.node._isShadyRo ot?this.node.host:this.node;n?i.Composed.insertBefore(d,e,n):i.Composed.appendCh ild(d,e)}return this.notifyObserver(),e},_addNode:function(e,t){var o=this.getOw nerRoot();if(o){var n=this._maybeAddInsertionPoint(e,this.node);o._invalidInsert ionPoints||(o._invalidInsertionPoints=n),this._addNodeToHost(o.host,e)}i.Logical .hasChildNodes(this.node)&&i.Logical.recordInsertBefore(e,this.node,t);var s=thi s._maybeDistribute(e)||this.node.shadyRoot;if(s)if(e.nodeType===Node.DOCUMENT_FR AGMENT_NODE)for(;e.firstChild;)i.Composed.removeChild(e,e.firstChild);else{var r =i.Composed.getParentNode(e);r&&i.Composed.removeChild(r,e)}return s},removeChil d:function(e){if(i.Logical.getParentNode(e)!==this.node)throw Error("The node to be removed is not a child of this node: "+e);if(!this._removeNode(e)){var t=thi s.node._isShadyRoot?this.node.host:this.node,o=i.Composed.getParentNode(e);t===o &&i.Composed.removeChild(t,e)}return this.notifyObserver(),e},_removeNode:functi on(e){var t,n=i.Logical.hasParentNode(e)&&i.Logical.getParentNode(e),s=this._own erShadyRootForNode(e);return n&&(t=o(e)._maybeDistributeParent(),i.Logical.recor dRemoveChild(e,n),s&&this._removeDistributedChildren(s,e)&&(s._invalidInsertionP oints=!0,this._lazyDistribute(s.host))),this._removeOwnerShadyRoot(e),s&&this._r emoveNodeFromHost(s.host,e),t},replaceChild:function(e,t){return this.insertBefo re(e,t),this.removeChild(t),e},_hasCachedOwnerRoot:function(e){return Boolean(vo id 0!==e._ownerShadyRoot)},getOwnerRoot:function(){return this._ownerShadyRootFo rNode(this.node)},_ownerShadyRootForNode:function(e){if(e){var t=e._ownerShadyRo ot;if(void 0===t){if(e._isShadyRoot)t=e;else{var o=i.Logical.getParentNode(e);t= o?o._isShadyRoot?o:this._ownerShadyRootForNode(o):null}(t||document.documentElem ent.contains(e))&&(e._ownerShadyRoot=t)}return t}},_maybeDistribute:function(e){ var t=e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&!e.__noContent&&o(e).querySelect or(s),n=t&&i.Logical.getParentNode(t).nodeType!==Node.DOCUMENT_FRAGMENT_NODE,r=t ||e.localName===s;if(r){var d=this.getOwnerRoot();d&&this._lazyDistribute(d.host )}var a=this._nodeNeedsDistribution(this.node);return a&&this._lazyDistribute(th is.node),a||r&&!n},_maybeAddInsertionPoint:function(e,t){var n;if(e.nodeType!==N ode.DOCUMENT_FRAGMENT_NODE||e.__noContent)e.localName===s&&(i.Logical.saveChildN odes(t),i.Logical.saveChildNodes(e),n=!0);else for(var r,d,a,l=o(e).querySelecto rAll(s),h=0;h<l.length&&(r=l[h]);h++)d=i.Logical.getParentNode(r),d===e&&(d=t),a =this._maybeAddInsertionPoint(r,d),n=n||a;return n},_updateInsertionPoints:funct ion(e){for(var t,n=e.shadyRoot._insertionPoints=o(e.shadyRoot).querySelectorAll( s),r=0;r<n.length;r++)t=n[r],i.Logical.saveChildNodes(t),i.Logical.saveChildNode s(i.Logical.getParentNode(t))},_nodeNeedsDistribution:function(e){return e&&e.sh adyRoot&&t.hasInsertionPoint(e.shadyRoot)},_addNodeToHost:function(e,t){e._eleme ntAdd&&e._elementAdd(t)},_removeNodeFromHost:function(e,t){e._elementRemove&&e._ elementRemove(t)},_removeDistributedChildren:function(e,t){for(var n,s=e._insert ionPoints,r=0;r<s.length;r++){var d=s[r];if(this._contains(t,d))for(var a=o(d).g etDistributedNodes(),l=0;l<a.length;l++){n=!0;var h=a[l],u=i.Composed.getParentN ode(h);u&&i.Composed.removeChild(u,h)}}return n},_contains:function(e,t){for(;t; ){if(t==e)return!0;t=i.Logical.getParentNode(t)}},_removeOwnerShadyRoot:function (e){if(this._hasCachedOwnerRoot(e))for(var t,o=i.Logical.getChildNodes(e),n=0,s= o.length;n<s&&(t=o[n]);n++)this._removeOwnerShadyRoot(t);e._ownerShadyRoot=void 0},_firstComposedNode:function(e){for(var t,i,n=o(e).getDistributedNodes(),s=0,r =n.length;s<r&&(t=n[s]);s++)if(i=o(t).getDestinationInsertionPoints(),i[i.length -1]===e)return t},querySelector:function(e){var o=this._query(function(o){return t.matchesSelector.call(o,e)},this.node,function(e){return Boolean(e)})[0];retur n o||null},querySelectorAll:function(e){return this._query(function(o){return t. matchesSelector.call(o,e)},this.node)},getDestinationInsertionPoints:function(){ return this.node._destinationInsertionPoints||[]},getDistributedNodes:function() {return this.node._distributedNodes||[]},_clear:function(){for(;this.childNodes. length;)this.removeChild(this.childNodes[0])},setAttribute:function(e,t){this.no de.setAttribute(e,t),this._maybeDistributeParent()},removeAttribute:function(e){ this.node.removeAttribute(e),this._maybeDistributeParent()},_maybeDistributePare nt:function(){if(this._nodeNeedsDistribution(this.parentNode))return this._lazyD istribute(this.parentNode),!0},cloneNode:function(e){var t=r.call(this.node,!1); if(e)for(var i,n=this.childNodes,s=o(t),d=0;d<n.length;d++)i=o(n[d]).cloneNode(! 0),s.appendChild(i);return t},importNode:function(e,t){var n=this.node instanceo f Document?this.node:this.node.ownerDocument,s=d.call(n,e,!1);if(t)for(var r,a=i .Logical.getChildNodes(e),l=o(s),h=0;h<a.length;h++)r=o(n).importNode(a[h],!0),l .appendChild(r);return s},_getComposedInnerHTML:function(){return n(this.node,!0 )}}),Object.defineProperties(t.prototype,{activeElement:{get:function(){var e=do cument.activeElement;if(!e)return null;var t=!!this.node._isShadyRoot;if(this.no de!==document){if(!t)return null;if(this.node.host===e||!this.node.host.contains (e))return null}for(var i=o(e).getOwnerRoot();i&&i!==this.node;)e=i.host,i=o(e). getOwnerRoot();return this.node===document?i?null:e:i===this.node?e:null},config urable:!0},childNodes:{get:function(){var e=i.Logical.getChildNodes(this.node);r eturn Array.isArray(e)?e:i.arrayCopyChildNodes(this.node)},configurable:!0},chil dren:{get:function(){return i.Logical.hasChildNodes(this.node)?Array.prototype.f ilter.call(this.childNodes,function(e){return e.nodeType===Node.ELEMENT_NODE}):i .arrayCopyChildren(this.node)},configurable:!0},parentNode:{get:function(){retur n i.Logical.getParentNode(this.node)},configurable:!0},firstChild:{get:function( ){return i.Logical.getFirstChild(this.node)},configurable:!0},lastChild:{get:fun ction(){return i.Logical.getLastChild(this.node)},configurable:!0},nextSibling:{ get:function(){return i.Logical.getNextSibling(this.node)},configurable:!0},prev iousSibling:{get:function(){return i.Logical.getPreviousSibling(this.node)},conf igurable:!0},firstElementChild:{get:function(){return i.Logical.getFirstElementC hild(this.node)},configurable:!0},lastElementChild:{get:function(){return i.Logi cal.getLastElementChild(this.node)},configurable:!0},nextElementSibling:{get:fun ction(){return i.Logical.getNextElementSibling(this.node)},configurable:!0},prev iousElementSibling:{get:function(){return i.Logical.getPreviousElementSibling(th is.node)},configurable:!0},textContent:{get:function(){var e=this.node.nodeType; if(e===Node.TEXT_NODE||e===Node.COMMENT_NODE)return this.node.textContent;for(va r t,o=[],i=0,n=this.childNodes;t=n[i];i++)t.nodeType!==Node.COMMENT_NODE&&o.push (t.textContent);return o.join("")},set:function(e){var t=this.node.nodeType;t=== Node.TEXT_NODE||t===Node.COMMENT_NODE?this.node.textContent=e:(this._clear(),e&& this.appendChild(document.createTextNode(e)))},configurable:!0},innerHTML:{get:f unction(){var e=this.node.nodeType;return e===Node.TEXT_NODE||e===Node.COMMENT_N ODE?null:n(this.node)},set:function(e){var t=this.node.nodeType;if(t!==Node.TEXT _NODE||t!==Node.COMMENT_NODE){this._clear();var o=document.createElement("div"); o.innerHTML=e;for(var n=i.arrayCopyChildNodes(o),s=0;s<n.length;s++)this.appendC hild(n[s])}},configurable:!0}}),t.hasInsertionPoint=function(e){return Boolean(e &&e._insertionPoints.length)}}}(),function(){"use strict";var e=Polymer.Settings ,t=Polymer.TreeApi,o=Polymer.DomApi;if(e.useShadow){Polymer.Base.extend(o.protot ype,{querySelectorAll:function(e){return t.arrayCopy(this.node.querySelectorAll( e))},getOwnerRoot:function(){for(var e=this.node;e;){if(e.nodeType===Node.DOCUME NT_FRAGMENT_NODE&&e.host)return e;e=e.parentNode}},importNode:function(e,t){var o=this.node instanceof Document?this.node:this.node.ownerDocument;return o.impor tNode(e,t)},getDestinationInsertionPoints:function(){var e=this.node.getDestinat ionInsertionPoints&&this.node.getDestinationInsertionPoints();return e?t.arrayCo py(e):[]},getDistributedNodes:function(){var e=this.node.getDistributedNodes&&th is.node.getDistributedNodes();return e?t.arrayCopy(e):[]}}),Object.definePropert ies(o.prototype,{activeElement:{get:function(){var e=o.wrap(this.node),t=e.activ eElement;return e.contains(t)?t:null},configurable:!0},childNodes:{get:function( ){return t.arrayCopyChildNodes(this.node)},configurable:!0},children:{get:functi on(){return t.arrayCopyChildren(this.node)},configurable:!0},textContent:{get:fu nction(){return this.node.textContent},set:function(e){return this.node.textCont ent=e},configurable:!0},innerHTML:{get:function(){return this.node.innerHTML},se t:function(e){return this.node.innerHTML=e},configurable:!0}});var i=function(e) {for(var t=0;t<e.length;t++)n(e[t])},n=function(e){o.prototype[e]=function(){ret urn this.node[e].apply(this.node,arguments)}};i(["cloneNode","appendChild","inse rtBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySe lector"]);var s=function(e){for(var t=0;t<e.length;t++)r(e[t])},r=function(e){Ob ject.defineProperty(o.prototype,e,{get:function(){return this.node[e]},configura ble:!0})};s(["parentNode","firstChild","lastChild","nextSibling","previousSiblin g","firstElementChild","lastElementChild","nextElementSibling","previousElementS ibling"])}}(),Polymer.Base.extend(Polymer.dom,{_flushGuard:0,_FLUSH_MAX:100,_nee dsTakeRecords:!Polymer.Settings.useNativeCustomElements,_debouncers:[],_staticFl ushList:[],_finishDebouncer:null,flush:function(){for(this._flushGuard=0,this._p repareFlush();this._debouncers.length&&this._flushGuard<this._FLUSH_MAX;){for(;t his._debouncers.length;)this._debouncers.shift().complete();this._finishDebounce r&&this._finishDebouncer.complete(),this._prepareFlush(),this._flushGuard++}this ._flushGuard>=this._FLUSH_MAX&&console.warn("Polymer.dom.flush aborted. Flush ma y not be complete.")},_prepareFlush:function(){this._needsTakeRecords&&CustomEle ments.takeRecords();for(var e=0;e<this._staticFlushList.length;e++)this._staticF lushList[e]()},addStaticFlush:function(e){this._staticFlushList.push(e)},removeS taticFlush:function(e){var t=this._staticFlushList.indexOf(e);t>=0&&this._static FlushList.splice(t,1)},addDebouncer:function(e){this._debouncers.push(e),this._f inishDebouncer=Polymer.Debounce(this._finishDebouncer,this._finishFlush)},_finis hFlush:function(){Polymer.dom._debouncers=[]}}),Polymer.EventApi=function(){"use strict";var e=Polymer.DomApi.ctor,t=Polymer.Settings;e.Event=function(e){this.e vent=e},t.useShadow?e.Event.prototype={get rootTarget(){return this.event.path[0 ]},get localTarget(){return this.event.target},get path(){var e=this.event.path; return Array.isArray(e)||(e=Array.prototype.slice.call(e)),e}}:e.Event.prototype ={get rootTarget(){return this.event.target},get localTarget(){for(var e=this.ev ent.currentTarget,t=e&&Polymer.dom(e).getOwnerRoot(),o=this.path,i=0;i<o.length; i++)if(Polymer.dom(o[i]).getOwnerRoot()===t)return o[i]},get path(){if(!this.eve nt._path){for(var e=[],t=this.rootTarget;t;){e.push(t);var o=Polymer.dom(t).getD estinationInsertionPoints();if(o.length){for(var i=0;i<o.length-1;i++)e.push(o[i ]);t=o[o.length-1]}else t=Polymer.dom(t).parentNode||t.host}e.push(window),this. event._path=e}return this.event._path}};var o=function(t){return t.__eventApi||( t.__eventApi=new e.Event(t)),t.__eventApi};return{factory:o}}(),function(){"use strict";var e=Polymer.DomApi.ctor,t=Polymer.Settings.useShadow;Object.defineProp erty(e.prototype,"classList",{get:function(){return this._classList||(this._clas sList=new e.ClassList(this)),this._classList},configurable:!0}),e.ClassList=func tion(e){this.domApi=e,this.node=e.node},e.ClassList.prototype={add:function(){th is.node.classList.add.apply(this.node.classList,arguments),this._distributeParen t()},remove:function(){this.node.classList.remove.apply(this.node.classList,argu ments),this._distributeParent()},toggle:function(){this.node.classList.toggle.ap ply(this.node.classList,arguments),this._distributeParent()},_distributeParent:f unction(){t||this.domApi._maybeDistributeParent()},contains:function(){return th is.node.classList.contains.apply(this.node.classList,arguments)}}}(),function(){ "use strict";var e=Polymer.DomApi.ctor,t=Polymer.Settings;if(e.EffectiveNodesObs erver=function(e){this.domApi=e,this.node=this.domApi.node,this._listeners=[]},e .EffectiveNodesObserver.prototype={addListener:function(e){this._isSetup||(this. _setup(),this._isSetup=!0);var t={fn:e,_nodes:[]};return this._listeners.push(t) ,this._scheduleNotify(),t},removeListener:function(e){var t=this._listeners.inde xOf(e);t>=0&&(this._listeners.splice(t,1),e._nodes=[]),this._hasListeners()||(th is._cleanup(),this._isSetup=!1)},_setup:function(){this._observeContentElements( this.domApi.childNodes)},_cleanup:function(){this._unobserveContentElements(this .domApi.childNodes)},_hasListeners:function(){return Boolean(this._listeners.len gth)},_scheduleNotify:function(){this._debouncer&&this._debouncer.stop(),this._d ebouncer=Polymer.Debounce(this._debouncer,this._notify),this._debouncer.context= this,Polymer.dom.addDebouncer(this._debouncer)},notify:function(){this._hasListe ners()&&this._scheduleNotify()},_notify:function(){this._beforeCallListeners(),t his._callListeners()},_beforeCallListeners:function(){this._updateContentElement s()},_updateContentElements:function(){this._observeContentElements(this.domApi. childNodes)},_observeContentElements:function(e){for(var t,o=0;o<e.length&&(t=e[ o]);o++)this._isContent(t)&&(t.__observeNodesMap=t.__observeNodesMap||new WeakMa p,t.__observeNodesMap.has(this)||t.__observeNodesMap.set(this,this._observeConte nt(t)))},_observeContent:function(e){var t=this,o=Polymer.dom(e).observeNodes(fu nction(){t._scheduleNotify()});return o._avoidChangeCalculation=!0,o},_unobserve ContentElements:function(e){for(var t,o,i=0;i<e.length&&(t=e[i]);i++)this._isCon tent(t)&&(o=t.__observeNodesMap.get(this),o&&(Polymer.dom(t).unobserveNodes(o),t .__observeNodesMap.delete(this)))},_isContent:function(e){return"content"===e.lo calName},_callListeners:function(){for(var e,t=this._listeners,o=this._getEffect iveNodes(),i=0;i<t.length&&(e=t[i]);i++){var n=this._generateListenerInfo(e,o);( n||e._alwaysNotify)&&this._callListener(e,n)}},_getEffectiveNodes:function(){ret urn this.domApi.getEffectiveChildNodes()},_generateListenerInfo:function(e,t){if (e._avoidChangeCalculation)return!0;for(var o,i=e._nodes,n={target:this.node,add edNodes:[],removedNodes:[]},s=Polymer.ArraySplice.calculateSplices(t,i),r=0;r<s. length&&(o=s[r]);r++)for(var d,a=0;a<o.removed.length&&(d=o.removed[a]);a++)n.re movedNodes.push(d);for(r=0,o;r<s.length&&(o=s[r]);r++)for(a=o.index;a<o.index+o. addedCount;a++)n.addedNodes.push(t[a]);return e._nodes=t,n.addedNodes.length||n. removedNodes.length?n:void 0},_callListener:function(e,t){return e.fn.call(this. node,t)},enableShadowAttributeTracking:function(){}},t.useShadow){var o=e.Effect iveNodesObserver.prototype._setup,i=e.EffectiveNodesObserver.prototype._cleanup; Polymer.Base.extend(e.EffectiveNodesObserver.prototype,{_setup:function(){if(!th is._observer){var e=this;this._mutationHandler=function(t){t&&t.length&&e._sched uleNotify()},this._observer=new MutationObserver(this._mutationHandler),this._bo undFlush=function(){e._flush()},Polymer.dom.addStaticFlush(this._boundFlush),thi s._observer.observe(this.node,{childList:!0})}o.call(this)},_cleanup:function(){ this._observer.disconnect(),this._observer=null,this._mutationHandler=null,Polym er.dom.removeStaticFlush(this._boundFlush),i.call(this)},_flush:function(){this. _observer&&this._mutationHandler(this._observer.takeRecords())},enableShadowAttr ibuteTracking:function(){if(this._observer){this._makeContentListenersAlwaysNoti fy(),this._observer.disconnect(),this._observer.observe(this.node,{childList:!0, attributes:!0,subtree:!0});var e=this.domApi.getOwnerRoot(),t=e&&e.host;t&&Polym er.dom(t).observer&&Polymer.dom(t).observer.enableShadowAttributeTracking()}},_m akeContentListenersAlwaysNotify:function(){for(var e,t=0;t<this._listeners.lengt h;t++)e=this._listeners[t],e._alwaysNotify=e._isContentListener}})}}(),function( ){"use strict";var e=Polymer.DomApi.ctor,t=Polymer.Settings;e.DistributedNodesOb server=function(t){e.EffectiveNodesObserver.call(this,t)},e.DistributedNodesObse rver.prototype=Object.create(e.EffectiveNodesObserver.prototype),Polymer.Base.ex tend(e.DistributedNodesObserver.prototype,{_setup:function(){},_cleanup:function (){},_beforeCallListeners:function(){},_getEffectiveNodes:function(){return this .domApi.getDistributedNodes()}}),t.useShadow&&Polymer.Base.extend(e.DistributedN odesObserver.prototype,{_setup:function(){if(!this._observer){var e=this.domApi. getOwnerRoot(),t=e&&e.host;if(t){var o=this;this._observer=Polymer.dom(t).observ eNodes(function(){o._scheduleNotify()}),this._observer._isContentListener=!0,thi s._hasAttrSelect()&&Polymer.dom(t).observer.enableShadowAttributeTracking()}}},_ hasAttrSelect:function(){var e=this.node.getAttribute("select");return e&&e.matc h(/[[.]+/)},_cleanup:function(){var e=this.domApi.getOwnerRoot(),t=e&&e.host;t&& Polymer.dom(t).unobserveNodes(this._observer),this._observer=null}})}(),function (){function e(e,t){t._distributedNodes.push(e);var o=e._destinationInsertionPoin ts;o?o.push(t):e._destinationInsertionPoints=[t]}function t(e){var t=e._distribu tedNodes;if(t)for(var o=0;o<t.length;o++){var i=t[o]._destinationInsertionPoints ;i&&i.splice(i.indexOf(e)+1,i.length)}}function o(e,t){var o=u.Logical.getParent Node(e);o&&o.shadyRoot&&h.hasInsertionPoint(o.shadyRoot)&&o.shadyRoot._distribut ionClean&&(o.shadyRoot._distributionClean=!1,t.shadyRoot._dirtyRoots.push(o))}fu nction i(e,t){var o=t._destinationInsertionPoints;return o&&o[o.length-1]===e}fu nction n(e){return"content"==e.localName}function s(e){for(;e&&r(e);)e=e.domHost ;return e}function r(e){for(var t,o=u.Logical.getChildNodes(e),i=0;i<o.length;i+ +)if(t=o[i],t.localName&&"content"===t.localName)return e.domHost}function d(e){ for(var t,o=0;o<e._insertionPoints.length;o++)t=e._insertionPoints[o],h.hasApi(t )&&Polymer.dom(t).notifyObserver()}function a(e){h.hasApi(e)&&Polymer.dom(e).not ifyObserver()}function l(e){if(c&&e)for(var t=0;t<e.length;t++)CustomElements.up grade(e[t])}var h=Polymer.DomApi,u=Polymer.TreeApi;Polymer.Base._addFeature({_pr epShady:function(){this._useContent=this._useContent||Boolean(this._template)},_ setupShady:function(){this.shadyRoot=null,this.__domApi||(this.__domApi=null),th is.__dom||(this.__dom=null),this._ownerShadyRoot||(this._ownerShadyRoot=void 0)} ,_poolContent:function(){this._useContent&&u.Logical.saveChildNodes(this)},_setu pRoot:function(){this._useContent&&(this._createLocalRoot(),this.dataHost||l(u.L ogical.getChildNodes(this)))},_createLocalRoot:function(){this.shadyRoot=this.ro ot,this.shadyRoot._distributionClean=!1,this.shadyRoot._hasDistributed=!1,this.s hadyRoot._isShadyRoot=!0,this.shadyRoot._dirtyRoots=[];var e=this.shadyRoot._ins ertionPoints=!this._notes||this._notes._hasContent?this.shadyRoot.querySelectorA ll("content"):[];u.Logical.saveChildNodes(this.shadyRoot);for(var t,o=0;o<e.leng th;o++)t=e[o],u.Logical.saveChildNodes(t),u.Logical.saveChildNodes(t.parentNode) ;this.shadyRoot.host=this},get domHost(){var e=Polymer.dom(this).getOwnerRoot(); return e&&e.host},distributeContent:function(e){if(this.shadyRoot){this.shadyRoo t._invalidInsertionPoints=this.shadyRoot._invalidInsertionPoints||e;var t=s(this );Polymer.dom(this)._lazyDistribute(t)}},_distributeContent:function(){this._use Content&&!this.shadyRoot._distributionClean&&(this.shadyRoot._invalidInsertionPo ints&&(Polymer.dom(this)._updateInsertionPoints(this),this.shadyRoot._invalidIns ertionPoints=!1),this._beginDistribute(),this._distributeDirtyRoots(),this._fini shDistribute())},_beginDistribute:function(){this._useContent&&h.hasInsertionPoi nt(this.shadyRoot)&&(this._resetDistribution(),this._distributePool(this.shadyRo ot,this._collectPool())); 1 <!DOCTYPE html><html><head><meta charset="UTF-8"> </head><body><div hidden="" by -vulcanize=""><script>!function(){function e(){document.body.removeAttribute("un resolved")}window.WebComponents?addEventListener("WebComponentsReady",e):"intera ctive"===document.readyState||"complete"===document.readyState?e():addEventListe ner("DOMContentLoaded",e)}(),window.Polymer={Settings:function(){var e=window.Po lymer||{};if(!e.noUrlSettings)for(var t,r=location.search.slice(1).split("&"),i= 0;i<r.length&&(t=r[i]);i++)t=t.split("="),t[0]&&(e[t[0]]=t[1]||!0);return e.want Shadow="shadow"===e.dom,e.hasShadow=Boolean(Element.prototype.createShadowRoot), e.nativeShadow=e.hasShadow&&!window.ShadowDOMPolyfill,e.useShadow=e.wantShadow&& e.hasShadow,e.hasNativeImports=Boolean("import"in document.createElement("link") ),e.useNativeImports=e.hasNativeImports,e.useNativeCustomElements=!window.Custom Elements||window.CustomElements.useNative,e.useNativeShadow=e.useShadow&&e.nativ eShadow,e.usePolyfillProto=!e.useNativeCustomElements&&!Object.__proto__,e.hasNa tiveCSSProperties=!navigator.userAgent.match("AppleWebKit/601")&&window.CSS&&CSS .supports&&CSS.supports("box-shadow","0 0 0 var(--foo)"),e.useNativeCSSPropertie s=e.hasNativeCSSProperties&&e.lazyRegister&&e.useNativeCSSProperties,e}()},funct ion(){var e=window.Polymer;window.Polymer=function(e){"function"==typeof e&&(e=e .prototype),e||(e={});var r=t(e);e=r.prototype;var i={prototype:e};return e.exte nds&&(i.extends=e.extends),Polymer.telemetry._registrate(e),document.registerEle ment(e.is,i),r};var t=function(e){var t=Polymer.Base;return e.extends&&(t=Polyme r.Base._getExtendedPrototype(e.extends)),e=Polymer.Base.chainObject(e,t),e.regis terCallback(),e.constructor};if(e)for(var r in e)Polymer[r]=e[r];Polymer.Class=t }(),Polymer.telemetry={registrations:[],_regLog:function(e){console.log("["+e.is +"]: registered")},_registrate:function(e){this.registrations.push(e),Polymer.lo g&&this._regLog(e)},dumpRegistrations:function(){this.registrations.forEach(this ._regLog)}},Object.defineProperty(window,"currentImport",{enumerable:!0,configur able:!0,get:function(){return(document._currentScript||document.currentScript).o wnerDocument}}),Polymer.RenderStatus={_ready:!1,_callbacks:[],whenReady:function (e){this._ready?e():this._callbacks.push(e)},_makeReady:function(){this._ready=! 0;for(var e=0;e<this._callbacks.length;e++)this._callbacks[e]();this._callbacks= []},_catchFirstRender:function(){requestAnimationFrame(function(){Polymer.Render Status._makeReady()})},_afterNextRenderQueue:[],_waitingNextRender:!1,afterNextR ender:function(e,t,r){this._watchNextRender(),this._afterNextRenderQueue.push([e ,t,r])},hasRendered:function(){return this._ready},_watchNextRender:function(){i f(!this._waitingNextRender){this._waitingNextRender=!0;var e=function(){Polymer. RenderStatus._flushNextRender()};this._ready?requestAnimationFrame(e):this.whenR eady(e)}},_flushNextRender:function(){var e=this;setTimeout(function(){e._flushR enderCallbacks(e._afterNextRenderQueue),e._afterNextRenderQueue=[],e._waitingNex tRender=!1})},_flushRenderCallbacks:function(e){for(var t,r=0;r<e.length;r++)t=e [r],t[1].apply(t[0],t[2]||Polymer.nar)}},window.HTMLImports?HTMLImports.whenRead y(function(){Polymer.RenderStatus._catchFirstRender()}):Polymer.RenderStatus._ca tchFirstRender(),Polymer.ImportStatus=Polymer.RenderStatus,Polymer.ImportStatus. whenLoaded=Polymer.ImportStatus.whenReady,function(){"use strict";var e=Polymer. Settings;Polymer.Base={__isPolymerInstance__:!0,_addFeature:function(e){this.ext end(this,e)},registerCallback:function(){"max"===e.lazyRegister?this.beforeRegis ter&&this.beforeRegister():(this._desugarBehaviors(),this._doBehavior("beforeReg ister")),this._registerFeatures(),e.lazyRegister||this.ensureRegisterFinished()} ,createdCallback:function(){this.__hasRegisterFinished||this._ensureRegisterFini shed(this.__proto__),Polymer.telemetry.instanceCount++,this.root=this,this._doBe havior("created"),this._initFeatures()},ensureRegisterFinished:function(){this._ ensureRegisterFinished(this)},_ensureRegisterFinished:function(t){t.__hasRegiste rFinished===t.is&&t.is||("max"===e.lazyRegister&&(t._desugarBehaviors(),t._doBeh aviorOnly("beforeRegister")),t.__hasRegisterFinished=t.is,t._finishRegisterFeatu res&&t._finishRegisterFeatures(),t._doBehavior("registered"),e.usePolyfillProto& &t!==this&&t.extend(this,t))},attachedCallback:function(){var e=this;Polymer.Ren derStatus.whenReady(function(){e.isAttached=!0,e._doBehavior("attached")})},deta chedCallback:function(){var e=this;Polymer.RenderStatus.whenReady(function(){e.i sAttached=!1,e._doBehavior("detached")})},attributeChangedCallback:function(e,t, r){this._attributeChangedImpl(e),this._doBehavior("attributeChanged",[e,t,r])},_ attributeChangedImpl:function(e){this._setAttributeToProperty(this,e)},extend:fu nction(e,t){if(e&&t)for(var r,i=Object.getOwnPropertyNames(t),o=0;o<i.length&&(r =i[o]);o++)this.copyOwnProperty(r,t,e);return e||t},mixin:function(e,t){for(var r in t)e[r]=t[r];return e},copyOwnProperty:function(e,t,r){var i=Object.getOwnPr opertyDescriptor(t,e);i&&Object.defineProperty(r,e,i)},_logger:function(e,t){swi tch(1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"err or":console[e].apply(console,t)}},_log:function(){var e=Array.prototype.slice.ca ll(arguments,0);this._logger("log",e)},_warn:function(){var e=Array.prototype.sl ice.call(arguments,0);this._logger("warn",e)},_error:function(){var e=Array.prot otype.slice.call(arguments,0);this._logger("error",e)},_logf:function(){return t his._logPrefix.concat(this.is).concat(Array.prototype.slice.call(arguments,0))}} ,Polymer.Base._logPrefix=function(){var e=window.chrome&&!/edge/i.test(navigator .userAgent)||/firefox/i.test(navigator.userAgent);return e?["%c[%s::%s]:","font- weight: bold; background-color:#EEEE00;"]:["[%s::%s]:"]}(),Polymer.Base.chainObj ect=function(e,t){return e&&t&&e!==t&&(Object.__proto__||(e=Polymer.Base.extend( Object.create(t),e)),e.__proto__=t),e},Polymer.Base=Polymer.Base.chainObject(Pol ymer.Base,HTMLElement.prototype),window.CustomElements?Polymer.instanceof=Custom Elements.instanceof:Polymer.instanceof=function(e,t){return e instanceof t},Poly mer.isInstance=function(e){return Boolean(e&&e.__isPolymerInstance__)},Polymer.t elemetry.instanceCount=0}(),function(){function e(){if(s)for(var e,t=document._c urrentScript||document.currentScript,r=t&&t.ownerDocument||document,i=r.querySel ectorAll("dom-module"),o=i.length-1;o>=0&&(e=i[o]);o--){if(e.__upgraded__)return ;CustomElements.upgrade(e)}}var t={},r={},i=function(e){return t[e]||r[e.toLower Case()]},o=function(){return document.createElement("dom-module")};o.prototype=O bject.create(HTMLElement.prototype),Polymer.Base.extend(o.prototype,{constructor :o,createdCallback:function(){this.register()},register:function(e){e=e||this.id ||this.getAttribute("name")||this.getAttribute("is"),e&&(this.id=e,t[e]=this,r[e .toLowerCase()]=this)},import:function(t,r){if(t){var o=i(t);return o||(e(),o=i( t)),o&&r&&(o=o.querySelector(r)),o}}});var s=window.CustomElements&&!CustomEleme nts.useNative;document.registerElement("dom-module",o)}(),Polymer.Base._addFeatu re({_prepIs:function(){if(!this.is){var e=(document._currentScript||document.cur rentScript).parentNode;if("dom-module"===e.localName){var t=e.id||e.getAttribute ("name")||e.getAttribute("is");this.is=t}}this.is&&(this.is=this.is.toLowerCase( ))}}),Polymer.Base._addFeature({behaviors:[],_desugarBehaviors:function(){this.b ehaviors.length&&(this.behaviors=this._desugarSomeBehaviors(this.behaviors))},_d esugarSomeBehaviors:function(e){var t=[];e=this._flattenBehaviorsList(e);for(var r=e.length-1;r>=0;r--){var i=e[r];t.indexOf(i)===-1&&(this._mixinBehavior(i),t. unshift(i))}return t},_flattenBehaviorsList:function(e){for(var t=[],r=0;r<e.len gth;r++){var i=e[r];i instanceof Array?t=t.concat(this._flattenBehaviorsList(i)) :i?t.push(i):this._warn(this._logf("_flattenBehaviorsList","behavior is null, ch eck for missing or 404 import"))}return t},_mixinBehavior:function(e){for(var t, r=Object.getOwnPropertyNames(e),i=0;i<r.length&&(t=r[i]);i++)Polymer.Base._behav iorProperties[t]||this.hasOwnProperty(t)||this.copyOwnProperty(t,e,this)},_prepB ehaviors:function(){this._prepFlattenedBehaviors(this.behaviors)},_prepFlattened Behaviors:function(e){for(var t=0,r=e.length;t<r;t++)this._prepBehavior(e[t]);th is._prepBehavior(this)},_doBehavior:function(e,t){for(var r=0;r<this.behaviors.l ength;r++)this._invokeBehavior(this.behaviors[r],e,t);this._invokeBehavior(this, e,t)},_doBehaviorOnly:function(e,t){for(var r=0;r<this.behaviors.length;r++)this ._invokeBehavior(this.behaviors[r],e,t)},_invokeBehavior:function(e,t,r){var i=e [t];i&&i.apply(this,r||Polymer.nar)},_marshalBehaviors:function(){for(var e=0;e< this.behaviors.length;e++)this._marshalBehavior(this.behaviors[e]);this._marshal Behavior(this)}}),Polymer.Base._behaviorProperties={hostAttributes:!0,beforeRegi ster:!0,registered:!0,properties:!0,observers:!0,listeners:!0,created:!0,attache d:!0,detached:!0,attributeChanged:!0,ready:!0},Polymer.Base._addFeature({_getExt endedPrototype:function(e){return this._getExtendedNativePrototype(e)},_nativePr ototypes:{},_getExtendedNativePrototype:function(e){var t=this._nativePrototypes [e];if(!t){var r=this.getNativePrototype(e);t=this.extend(Object.create(r),Polym er.Base),this._nativePrototypes[e]=t}return t},getNativePrototype:function(e){re turn Object.getPrototypeOf(document.createElement(e))}}),Polymer.Base._addFeatur e({_prepConstructor:function(){this._factoryArgs=this.extends?[this.extends,this .is]:[this.is];var e=function(){return this._factory(arguments)};this.hasOwnProp erty("extends")&&(e.extends=this.extends),Object.defineProperty(this,"constructo r",{value:e,writable:!0,configurable:!0}),e.prototype=this},_factory:function(e) {var t=document.createElement.apply(document,this._factoryArgs);return this.fact oryImpl&&this.factoryImpl.apply(t,e),t}}),Polymer.nob=Object.create(null),Polyme r.Base._addFeature({properties:{},getPropertyInfo:function(e){var t=this._getPro pertyInfo(e,this.properties);if(!t)for(var r=0;r<this.behaviors.length;r++)if(t= this._getPropertyInfo(e,this.behaviors[r].properties))return t;return t||Polymer .nob},_getPropertyInfo:function(e,t){var r=t&&t[e];return"function"==typeof r&&( r=t[e]={type:r}),r&&(r.defined=!0),r},_prepPropertyInfo:function(){this._propert yInfo={};for(var e=0;e<this.behaviors.length;e++)this._addPropertyInfo(this._pro pertyInfo,this.behaviors[e].properties);this._addPropertyInfo(this._propertyInfo ,this.properties),this._addPropertyInfo(this._propertyInfo,this._propertyEffects )},_addPropertyInfo:function(e,t){if(t){var r,i;for(var o in t)r=e[o],i=t[o],("_ "!==o[0]||i.readOnly)&&(e[o]?(r.type||(r.type=i.type),r.readOnly||(r.readOnly=i. readOnly)):e[o]={type:"function"==typeof i?i:i.type,readOnly:i.readOnly,attribut e:Polymer.CaseMap.camelToDashCase(o)})}}}),Polymer.CaseMap={_caseMap:{},_rx:{das hToCamel:/-[a-z]/g,camelToDash:/([A-Z])/g},dashToCamelCase:function(e){return th is._caseMap[e]||(this._caseMap[e]=e.indexOf("-")<0?e:e.replace(this._rx.dashToCa mel,function(e){return e[1].toUpperCase()}))},camelToDashCase:function(e){return this._caseMap[e]||(this._caseMap[e]=e.replace(this._rx.camelToDash,"-$1").toLow erCase())}},Polymer.Base._addFeature({_addHostAttributes:function(e){this._aggre gatedAttributes||(this._aggregatedAttributes={}),e&&this.mixin(this._aggregatedA ttributes,e)},_marshalHostAttributes:function(){this._aggregatedAttributes&&this ._applyAttributes(this,this._aggregatedAttributes)},_applyAttributes:function(e, t){for(var r in t)if(!this.hasAttribute(r)&&"class"!==r){var i=t[r];this.seriali zeValueToAttribute(i,r,this)}},_marshalAttributes:function(){this._takeAttribute sToModel(this)},_takeAttributesToModel:function(e){if(this.hasAttributes())for(v ar t in this._propertyInfo){var r=this._propertyInfo[t];this.hasAttribute(r.attr ibute)&&this._setAttributeToProperty(e,r.attribute,t,r)}},_setAttributeToPropert y:function(e,t,r,i){if(!this._serializing&&(r=r||Polymer.CaseMap.dashToCamelCase (t),i=i||this._propertyInfo&&this._propertyInfo[r],i&&!i.readOnly)){var o=this.g etAttribute(t);e[r]=this.deserialize(o,i.type)}},_serializing:!1,reflectProperty ToAttribute:function(e,t,r){this._serializing=!0,r=void 0===r?this[e]:r,this.ser ializeValueToAttribute(r,t||Polymer.CaseMap.camelToDashCase(e)),this._serializin g=!1},serializeValueToAttribute:function(e,t,r){var i=this.serialize(e);r=r||thi s,void 0===i?r.removeAttribute(t):r.setAttribute(t,i)},deserialize:function(e,t) {switch(t){case Number:e=Number(e);break;case Boolean:e=null!=e;break;case Objec t:try{e=JSON.parse(e)}catch(e){}break;case Array:try{e=JSON.parse(e)}catch(t){e= null,console.warn("Polymer::Attributes: couldn`t decode Array as JSON")}break;ca se Date:e=new Date(e);break;case String:}return e},serialize:function(e){switch( typeof e){case"boolean":return e?"":void 0;case"object":if(e instanceof Date)ret urn e.toString();if(e)try{return JSON.stringify(e)}catch(e){return""}default:ret urn null!=e?e:void 0}}}),Polymer.version="1.6.1",Polymer.Base._addFeature({_regi sterFeatures:function(){this._prepIs(),this._prepBehaviors(),this._prepConstruct or(),this._prepPropertyInfo()},_prepBehavior:function(e){this._addHostAttributes (e.hostAttributes)},_marshalBehavior:function(e){},_initFeatures:function(){this ._marshalHostAttributes(),this._marshalBehaviors()}})</script> <script>Polymer.B ase._addFeature({_prepTemplate:function(){void 0===this._template&&(this._templa te=Polymer.DomModule.import(this.is,"template")),this._template&&this._template. hasAttribute("is")&&this._warn(this._logf("_prepTemplate","top-level Polymer tem plate must not be a type-extension, found",this._template,"Move inside simple <t emplate>.")),this._template&&!this._template.content&&window.HTMLTemplateElement &&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(this._template)},_s tampTemplate:function(){this._template&&(this.root=this.instanceTemplate(this._t emplate))},instanceTemplate:function(e){var t=document.importNode(e._content||e. content,!0);return t}}),function(){var e=Polymer.Base.attachedCallback;Polymer.B ase._addFeature({_hostStack:[],ready:function(){},_registerHost:function(e){this .dataHost=e=e||Polymer.Base._hostStack[Polymer.Base._hostStack.length-1],e&&e._c lients&&e._clients.push(this),this._clients=null,this._clientsReadied=!1},_begin Hosting:function(){Polymer.Base._hostStack.push(this),this._clients||(this._clie nts=[])},_endHosting:function(){Polymer.Base._hostStack.pop()},_tryReady:functio n(){this._readied=!1,this._canReady()&&this._ready()},_canReady:function(){retur n!this.dataHost||this.dataHost._clientsReadied},_ready:function(){this._beforeCl ientsReady(),this._template&&(this._setupRoot(),this._readyClients()),this._clie ntsReadied=!0,this._clients=null,this._afterClientsReady(),this._readySelf()},_r eadyClients:function(){this._beginDistribute();var e=this._clients;if(e)for(var t,o=0,i=e.length;o<i&&(t=e[o]);o++)t._ready();this._finishDistribute()},_readySe lf:function(){this._doBehavior("ready"),this._readied=!0,this._attachedPending&& (this._attachedPending=!1,this.attachedCallback())},_beforeClientsReady:function (){},_afterClientsReady:function(){},_beforeAttached:function(){},attachedCallba ck:function(){this._readied?(this._beforeAttached(),e.call(this)):this._attached Pending=!0}})}(),Polymer.ArraySplice=function(){function e(e,t,o){return{index:e ,removed:t,addedCount:o}}function t(){}var o=0,i=1,n=2,s=3;return t.prototype={c alcEditDistances:function(e,t,o,i,n,s){for(var r=s-n+1,d=o-t+1,a=new Array(r),l= 0;l<r;l++)a[l]=new Array(d),a[l][0]=l;for(var h=0;h<d;h++)a[0][h]=h;for(l=1;l<r; l++)for(h=1;h<d;h++)if(this.equals(e[t+h-1],i[n+l-1]))a[l][h]=a[l-1][h-1];else{v ar u=a[l-1][h]+1,c=a[l][h-1]+1;a[l][h]=u<c?u:c}return a},spliceOperationsFromEdi tDistances:function(e){for(var t=e.length-1,r=e[0].length-1,d=e[t][r],a=[];t>0|| r>0;)if(0!=t)if(0!=r){var l,h=e[t-1][r-1],u=e[t-1][r],c=e[t][r-1];l=u<c?u<h?u:h: c<h?c:h,l==h?(h==d?a.push(o):(a.push(i),d=h),t--,r--):l==u?(a.push(s),t--,d=u):( a.push(n),r--,d=c)}else a.push(s),t--;else a.push(n),r--;return a.reverse(),a},c alcSplices:function(t,r,d,a,l,h){var u=0,c=0,_=Math.min(d-r,h-l);if(0==r&&0==l&& (u=this.sharedPrefix(t,a,_)),d==t.length&&h==a.length&&(c=this.sharedSuffix(t,a, _-u)),r+=u,l+=u,d-=c,h-=c,d-r==0&&h-l==0)return[];if(r==d){for(var f=e(r,[],0);l <h;)f.removed.push(a[l++]);return[f]}if(l==h)return[e(r,[],d-r)];var m=this.spli ceOperationsFromEditDistances(this.calcEditDistances(t,r,d,a,l,h));f=void 0;for( var p=[],v=r,g=l,b=0;b<m.length;b++)switch(m[b]){case o:f&&(p.push(f),f=void 0), v++,g++;break;case i:f||(f=e(v,[],0)),f.addedCount++,v++,f.removed.push(a[g]),g+ +;break;case n:f||(f=e(v,[],0)),f.addedCount++,v++;break;case s:f||(f=e(v,[],0)) ,f.removed.push(a[g]),g++}return f&&p.push(f),p},sharedPrefix:function(e,t,o){fo r(var i=0;i<o;i++)if(!this.equals(e[i],t[i]))return i;return o},sharedSuffix:fun ction(e,t,o){for(var i=e.length,n=t.length,s=0;s<o&&this.equals(e[--i],t[--n]);) s++;return s},calculateSplices:function(e,t){return this.calcSplices(e,0,e.lengt h,t,0,t.length)},equals:function(e,t){return e===t}},new t}(),Polymer.domInnerHT ML=function(){function e(e){switch(e){case"&":return"&amp;";case"<":return"&lt;" ;case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function t( t){return t.replace(r,e)}function o(t){return t.replace(d,e)}function i(e){for(v ar t={},o=0;o<e.length;o++)t[e[o]]=!0;return t}function n(e,i,n){switch(e.nodeTy pe){case Node.ELEMENT_NODE:for(var r,d=e.localName,h="<"+d,u=e.attributes,c=0;r= u[c];c++)h+=" "+r.name+'="'+t(r.value)+'"';return h+=">",a[d]?h:h+s(e,n)+"</"+d+ ">";case Node.TEXT_NODE:var _=e.data;return i&&l[i.localName]?_:o(_);case Node.C OMMENT_NODE:return"\x3c!--"+e.data+"--\x3e";default:throw console.error(e),new E rror("not implemented")}}function s(e,t){e instanceof HTMLTemplateElement&&(e=e. content);for(var o,i="",s=Polymer.dom(e).childNodes,r=0,d=s.length;r<d&&(o=s[r]) ;r++)i+=n(o,e,t);return i}var r=/[&\u00A0"]/g,d=/[&\u00A0<>]/g,a=i(["area","base ","br","col","command","embed","hr","img","input","keygen","link","meta","param" ,"source","track","wbr"]),l=i(["style","script","xmp","iframe","noembed","nofram es","plaintext","noscript"]);return{getInnerHTML:s}}(),function(){"use strict";v ar e=Element.prototype.insertBefore,t=Element.prototype.appendChild,o=Element.pr ototype.removeChild;Polymer.TreeApi={arrayCopyChildNodes:function(e){for(var t=[ ],o=0,i=e.firstChild;i;i=i.nextSibling)t[o++]=i;return t},arrayCopyChildren:func tion(e){for(var t=[],o=0,i=e.firstElementChild;i;i=i.nextElementSibling)t[o++]=i ;return t},arrayCopy:function(e){for(var t=e.length,o=new Array(t),i=0;i<t;i++)o [i]=e[i];return o}},Polymer.TreeApi.Logical={hasParentNode:function(e){return Bo olean(e.__dom&&e.__dom.parentNode)},hasChildNodes:function(e){return Boolean(e._ _dom&&void 0!==e.__dom.childNodes)},getChildNodes:function(e){return this.hasChi ldNodes(e)?this._getChildNodes(e):e.childNodes},_getChildNodes:function(e){if(!e .__dom.childNodes){e.__dom.childNodes=[];for(var t=e.__dom.firstChild;t;t=t.__do m.nextSibling)e.__dom.childNodes.push(t)}return e.__dom.childNodes},getParentNod e:function(e){return e.__dom&&void 0!==e.__dom.parentNode?e.__dom.parentNode:e.p arentNode},getFirstChild:function(e){return e.__dom&&void 0!==e.__dom.firstChild ?e.__dom.firstChild:e.firstChild},getLastChild:function(e){return e.__dom&&void 0!==e.__dom.lastChild?e.__dom.lastChild:e.lastChild},getNextSibling:function(e){ return e.__dom&&void 0!==e.__dom.nextSibling?e.__dom.nextSibling:e.nextSibling}, getPreviousSibling:function(e){return e.__dom&&void 0!==e.__dom.previousSibling? e.__dom.previousSibling:e.previousSibling},getFirstElementChild:function(e){retu rn e.__dom&&void 0!==e.__dom.firstChild?this._getFirstElementChild(e):e.firstEle mentChild},_getFirstElementChild:function(e){for(var t=e.__dom.firstChild;t&&t.n odeType!==Node.ELEMENT_NODE;)t=t.__dom.nextSibling;return t},getLastElementChild :function(e){return e.__dom&&void 0!==e.__dom.lastChild?this._getLastElementChil d(e):e.lastElementChild},_getLastElementChild:function(e){for(var t=e.__dom.last Child;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__dom.previousSibling;return t},get NextElementSibling:function(e){return e.__dom&&void 0!==e.__dom.nextSibling?this ._getNextElementSibling(e):e.nextElementSibling},_getNextElementSibling:function (e){for(var t=e.__dom.nextSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__dom.n extSibling;return t},getPreviousElementSibling:function(e){return e.__dom&&void 0!==e.__dom.previousSibling?this._getPreviousElementSibling(e):e.previousElement Sibling},_getPreviousElementSibling:function(e){for(var t=e.__dom.previousSiblin g;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__dom.previousSibling;return t},saveChi ldNodes:function(e){if(!this.hasChildNodes(e)){e.__dom=e.__dom||{},e.__dom.first Child=e.firstChild,e.__dom.lastChild=e.lastChild,e.__dom.childNodes=[];for(var t =e.firstChild;t;t=t.nextSibling)t.__dom=t.__dom||{},t.__dom.parentNode=e,e.__dom .childNodes.push(t),t.__dom.nextSibling=t.nextSibling,t.__dom.previousSibling=t. previousSibling}},recordInsertBefore:function(e,t,o){if(t.__dom.childNodes=null, e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var i=e.firstChild;i;i=i.nextSiblin g)this._linkNode(i,t,o);else this._linkNode(e,t,o)},_linkNode:function(e,t,o){e. __dom=e.__dom||{},t.__dom=t.__dom||{},o&&(o.__dom=o.__dom||{}),e.__dom.previousS ibling=o?o.__dom.previousSibling:t.__dom.lastChild,e.__dom.previousSibling&&(e._ _dom.previousSibling.__dom.nextSibling=e),e.__dom.nextSibling=o||null,e.__dom.ne xtSibling&&(e.__dom.nextSibling.__dom.previousSibling=e),e.__dom.parentNode=t,o? o===t.__dom.firstChild&&(t.__dom.firstChild=e):(t.__dom.lastChild=e,t.__dom.firs tChild||(t.__dom.firstChild=e)),t.__dom.childNodes=null},recordRemoveChild:funct ion(e,t){e.__dom=e.__dom||{},t.__dom=t.__dom||{},e===t.__dom.firstChild&&(t.__do m.firstChild=e.__dom.nextSibling),e===t.__dom.lastChild&&(t.__dom.lastChild=e.__ dom.previousSibling);var o=e.__dom.previousSibling,i=e.__dom.nextSibling;o&&(o._ _dom.nextSibling=i),i&&(i.__dom.previousSibling=o),e.__dom.parentNode=e.__dom.pr eviousSibling=e.__dom.nextSibling=void 0,t.__dom.childNodes=null}},Polymer.TreeA pi.Composed={getChildNodes:function(e){return Polymer.TreeApi.arrayCopyChildNode s(e)},getParentNode:function(e){return e.parentNode},clearChildNodes:function(e) {e.textContent=""},insertBefore:function(t,o,i){return e.call(t,o,i||null)},appe ndChild:function(e,o){return t.call(e,o)},removeChild:function(e,t){return o.cal l(e,t)}}}(),Polymer.DomApi=function(){"use strict";var e=Polymer.Settings,t=Poly mer.TreeApi,o=function(e){this.node=i?o.wrap(e):e},i=e.hasShadow&&!e.nativeShado w;o.wrap=window.wrap?window.wrap:function(e){return e},o.prototype={flush:functi on(){Polymer.dom.flush()},deepContains:function(e){if(this.node.contains(e))retu rn!0;for(var t=e,o=e.ownerDocument;t&&t!==o&&t!==this.node;)t=Polymer.dom(t).par entNode||t.host;return t===this.node},queryDistributedElements:function(e){for(v ar t,i=this.getEffectiveChildNodes(),n=[],s=0,r=i.length;s<r&&(t=i[s]);s++)t.nod eType===Node.ELEMENT_NODE&&o.matchesSelector.call(t,e)&&n.push(t);return n},getE ffectiveChildNodes:function(){for(var e,t=[],o=this.childNodes,i=0,r=o.length;i< r&&(e=o[i]);i++)if(e.localName===n)for(var d=s(e).getDistributedNodes(),a=0;a<d. length;a++)t.push(d[a]);else t.push(e);return t},observeNodes:function(e){if(e)r eturn this.observer||(this.observer=this.node.localName===n?new o.DistributedNod esObserver(this):new o.EffectiveNodesObserver(this)),this.observer.addListener(e )},unobserveNodes:function(e){this.observer&&this.observer.removeListener(e)},no tifyObserver:function(){this.observer&&this.observer.notify()},_query:function(e ,o,i){o=o||this.node;var n=[];return this._queryElements(t.Logical.getChildNodes (o),e,i,n),n},_queryElements:function(e,t,o,i){for(var n,s=0,r=e.length;s<r&&(n= e[s]);s++)if(n.nodeType===Node.ELEMENT_NODE&&this._queryElement(n,t,o,i))return! 0},_queryElement:function(e,o,i,n){var s=o(e);return s&&n.push(e),i&&i(s)?s:void this._queryElements(t.Logical.getChildNodes(e),o,i,n)}};var n=o.CONTENT="conten t",s=o.factory=function(e){return e=e||document,e.__domApi||(e.__domApi=new o.ct or(e)),e.__domApi};o.hasApi=function(e){return Boolean(e.__domApi)},o.ctor=o,Pol ymer.dom=function(e,t){return e instanceof Event?Polymer.EventApi.factory(e):o.f actory(e,t)};var r=Element.prototype;return o.matchesSelector=r.matches||r.match esSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.web kitMatchesSelector,o}(),function(){"use strict";var e=Polymer.Settings,t=Polymer .DomApi,o=t.factory,i=Polymer.TreeApi,n=Polymer.domInnerHTML.getInnerHTML,s=t.CO NTENT;if(!e.useShadow){var r=Element.prototype.cloneNode,d=Document.prototype.im portNode;Polymer.Base.extend(t.prototype,{_lazyDistribute:function(e){e.shadyRoo t&&e.shadyRoot._distributionClean&&(e.shadyRoot._distributionClean=!1,Polymer.do m.addDebouncer(e.debounce("_distribute",e._distributeContent)))},appendChild:fun ction(e){return this.insertBefore(e)},insertBefore:function(e,n){if(n&&i.Logical .getParentNode(n)!==this.node)throw Error("The ref_node to be inserted before is not a child of this node");if(e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var r=i .Logical.getParentNode(e);r?(t.hasApi(r)&&o(r).notifyObserver(),this._removeNode (e)):this._removeOwnerShadyRoot(e)}if(!this._addNode(e,n)){n&&(n=n.localName===s ?this._firstComposedNode(n):n);var d=this.node._isShadyRoot?this.node.host:this. node;n?i.Composed.insertBefore(d,e,n):i.Composed.appendChild(d,e)}return this.no tifyObserver(),e},_addNode:function(e,t){var o=this.getOwnerRoot();if(o){var n=t his._maybeAddInsertionPoint(e,this.node);o._invalidInsertionPoints||(o._invalidI nsertionPoints=n),this._addNodeToHost(o.host,e)}i.Logical.hasChildNodes(this.nod e)&&i.Logical.recordInsertBefore(e,this.node,t);var s=this._maybeDistribute(e)|| this.node.shadyRoot;if(s)if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(;e.firs tChild;)i.Composed.removeChild(e,e.firstChild);else{var r=i.Composed.getParentNo de(e);r&&i.Composed.removeChild(r,e)}return s},removeChild:function(e){if(i.Logi cal.getParentNode(e)!==this.node)throw Error("The node to be removed is not a ch ild of this node: "+e);if(!this._removeNode(e)){var t=this.node._isShadyRoot?thi s.node.host:this.node,o=i.Composed.getParentNode(e);t===o&&i.Composed.removeChil d(t,e)}return this.notifyObserver(),e},_removeNode:function(e){var t,n=i.Logical .hasParentNode(e)&&i.Logical.getParentNode(e),s=this._ownerShadyRootForNode(e);r eturn n&&(t=o(e)._maybeDistributeParent(),i.Logical.recordRemoveChild(e,n),s&&th is._removeDistributedChildren(s,e)&&(s._invalidInsertionPoints=!0,this._lazyDist ribute(s.host))),this._removeOwnerShadyRoot(e),s&&this._removeNodeFromHost(s.hos t,e),t},replaceChild:function(e,t){return this.insertBefore(e,t),this.removeChil d(t),e},_hasCachedOwnerRoot:function(e){return Boolean(void 0!==e._ownerShadyRoo t)},getOwnerRoot:function(){return this._ownerShadyRootForNode(this.node)},_owne rShadyRootForNode:function(e){if(e){var t=e._ownerShadyRoot;if(void 0===t){if(e. _isShadyRoot)t=e;else{var o=i.Logical.getParentNode(e);t=o?o._isShadyRoot?o:this ._ownerShadyRootForNode(o):null}(t||document.documentElement.contains(e))&&(e._o wnerShadyRoot=t)}return t}},_maybeDistribute:function(e){var t=e.nodeType===Node .DOCUMENT_FRAGMENT_NODE&&!e.__noContent&&o(e).querySelector(s),n=t&&i.Logical.ge tParentNode(t).nodeType!==Node.DOCUMENT_FRAGMENT_NODE,r=t||e.localName===s;if(r) {var d=this.getOwnerRoot();d&&this._lazyDistribute(d.host)}var a=this._nodeNeeds Distribution(this.node);return a&&this._lazyDistribute(this.node),a||r&&!n},_may beAddInsertionPoint:function(e,t){var n;if(e.nodeType!==Node.DOCUMENT_FRAGMENT_N ODE||e.__noContent)e.localName===s&&(i.Logical.saveChildNodes(t),i.Logical.saveC hildNodes(e),n=!0);else for(var r,d,a,l=o(e).querySelectorAll(s),h=0;h<l.length& &(r=l[h]);h++)d=i.Logical.getParentNode(r),d===e&&(d=t),a=this._maybeAddInsertio nPoint(r,d),n=n||a;return n},_updateInsertionPoints:function(e){for(var t,n=e.sh adyRoot._insertionPoints=o(e.shadyRoot).querySelectorAll(s),r=0;r<n.length;r++)t =n[r],i.Logical.saveChildNodes(t),i.Logical.saveChildNodes(i.Logical.getParentNo de(t))},_nodeNeedsDistribution:function(e){return e&&e.shadyRoot&&t.hasInsertion Point(e.shadyRoot)},_addNodeToHost:function(e,t){e._elementAdd&&e._elementAdd(t) },_removeNodeFromHost:function(e,t){e._elementRemove&&e._elementRemove(t)},_remo veDistributedChildren:function(e,t){for(var n,s=e._insertionPoints,r=0;r<s.lengt h;r++){var d=s[r];if(this._contains(t,d))for(var a=o(d).getDistributedNodes(),l= 0;l<a.length;l++){n=!0;var h=a[l],u=i.Composed.getParentNode(h);u&&i.Composed.re moveChild(u,h)}}return n},_contains:function(e,t){for(;t;){if(t==e)return!0;t=i. Logical.getParentNode(t)}},_removeOwnerShadyRoot:function(e){if(this._hasCachedO wnerRoot(e))for(var t,o=i.Logical.getChildNodes(e),n=0,s=o.length;n<s&&(t=o[n]); n++)this._removeOwnerShadyRoot(t);e._ownerShadyRoot=void 0},_firstComposedNode:f unction(e){for(var t,i,n=o(e).getDistributedNodes(),s=0,r=n.length;s<r&&(t=n[s]) ;s++)if(i=o(t).getDestinationInsertionPoints(),i[i.length-1]===e)return t},query Selector:function(e){var o=this._query(function(o){return t.matchesSelector.call (o,e)},this.node,function(e){return Boolean(e)})[0];return o||null},querySelecto rAll:function(e){return this._query(function(o){return t.matchesSelector.call(o, e)},this.node)},getDestinationInsertionPoints:function(){return this.node._desti nationInsertionPoints||[]},getDistributedNodes:function(){return this.node._dist ributedNodes||[]},_clear:function(){for(;this.childNodes.length;)this.removeChil d(this.childNodes[0])},setAttribute:function(e,t){this.node.setAttribute(e,t),th is._maybeDistributeParent()},removeAttribute:function(e){this.node.removeAttribu te(e),this._maybeDistributeParent()},_maybeDistributeParent:function(){if(this._ nodeNeedsDistribution(this.parentNode))return this._lazyDistribute(this.parentNo de),!0},cloneNode:function(e){var t=r.call(this.node,!1);if(e)for(var i,n=this.c hildNodes,s=o(t),d=0;d<n.length;d++)i=o(n[d]).cloneNode(!0),s.appendChild(i);ret urn t},importNode:function(e,t){var n=this.node instanceof Document?this.node:th is.node.ownerDocument,s=d.call(n,e,!1);if(t)for(var r,a=i.Logical.getChildNodes( e),l=o(s),h=0;h<a.length;h++)r=o(n).importNode(a[h],!0),l.appendChild(r);return s},_getComposedInnerHTML:function(){return n(this.node,!0)}}),Object.definePrope rties(t.prototype,{activeElement:{get:function(){var e=document.activeElement;if (!e)return null;var t=!!this.node._isShadyRoot;if(this.node!==document){if(!t)re turn null;if(this.node.host===e||!this.node.host.contains(e))return null}for(var i=o(e).getOwnerRoot();i&&i!==this.node;)e=i.host,i=o(e).getOwnerRoot();return t his.node===document?i?null:e:i===this.node?e:null},configurable:!0},childNodes:{ get:function(){var e=i.Logical.getChildNodes(this.node);return Array.isArray(e)? e:i.arrayCopyChildNodes(this.node)},configurable:!0},children:{get:function(){re turn i.Logical.hasChildNodes(this.node)?Array.prototype.filter.call(this.childNo des,function(e){return e.nodeType===Node.ELEMENT_NODE}):i.arrayCopyChildren(this .node)},configurable:!0},parentNode:{get:function(){return i.Logical.getParentNo de(this.node)},configurable:!0},firstChild:{get:function(){return i.Logical.getF irstChild(this.node)},configurable:!0},lastChild:{get:function(){return i.Logica l.getLastChild(this.node)},configurable:!0},nextSibling:{get:function(){return i .Logical.getNextSibling(this.node)},configurable:!0},previousSibling:{get:functi on(){return i.Logical.getPreviousSibling(this.node)},configurable:!0},firstEleme ntChild:{get:function(){return i.Logical.getFirstElementChild(this.node)},config urable:!0},lastElementChild:{get:function(){return i.Logical.getLastElementChild (this.node)},configurable:!0},nextElementSibling:{get:function(){return i.Logica l.getNextElementSibling(this.node)},configurable:!0},previousElementSibling:{get :function(){return i.Logical.getPreviousElementSibling(this.node)},configurable: !0},textContent:{get:function(){var e=this.node.nodeType;if(e===Node.TEXT_NODE|| e===Node.COMMENT_NODE)return this.node.textContent;for(var t,o=[],i=0,n=this.chi ldNodes;t=n[i];i++)t.nodeType!==Node.COMMENT_NODE&&o.push(t.textContent);return o.join("")},set:function(e){var t=this.node.nodeType;t===Node.TEXT_NODE||t===Nod e.COMMENT_NODE?this.node.textContent=e:(this._clear(),e&&this.appendChild(docume nt.createTextNode(e)))},configurable:!0},innerHTML:{get:function(){var e=this.no de.nodeType;return e===Node.TEXT_NODE||e===Node.COMMENT_NODE?null:n(this.node)}, set:function(e){var t=this.node.nodeType;if(t!==Node.TEXT_NODE||t!==Node.COMMENT _NODE){this._clear();var o=document.createElement("div");o.innerHTML=e;for(var n =i.arrayCopyChildNodes(o),s=0;s<n.length;s++)this.appendChild(n[s])}},configurab le:!0}}),t.hasInsertionPoint=function(e){return Boolean(e&&e._insertionPoints.le ngth)}}}(),function(){"use strict";var e=Polymer.Settings,t=Polymer.TreeApi,o=Po lymer.DomApi;if(e.useShadow){Polymer.Base.extend(o.prototype,{querySelectorAll:f unction(e){return t.arrayCopy(this.node.querySelectorAll(e))},getOwnerRoot:funct ion(){for(var e=this.node;e;){if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.hos t)return e;e=e.parentNode}},importNode:function(e,t){var o=this.node instanceof Document?this.node:this.node.ownerDocument;return o.importNode(e,t)},getDestinat ionInsertionPoints:function(){var e=this.node.getDestinationInsertionPoints&&thi s.node.getDestinationInsertionPoints();return e?t.arrayCopy(e):[]},getDistribute dNodes:function(){var e=this.node.getDistributedNodes&&this.node.getDistributedN odes();return e?t.arrayCopy(e):[]}}),Object.defineProperties(o.prototype,{active Element:{get:function(){var e=o.wrap(this.node),t=e.activeElement;return e.conta ins(t)?t:null},configurable:!0},childNodes:{get:function(){return t.arrayCopyChi ldNodes(this.node)},configurable:!0},children:{get:function(){return t.arrayCopy Children(this.node)},configurable:!0},textContent:{get:function(){return this.no de.textContent},set:function(e){return this.node.textContent=e},configurable:!0} ,innerHTML:{get:function(){return this.node.innerHTML},set:function(e){return th is.node.innerHTML=e},configurable:!0}});var i=function(e){for(var t=0;t<e.length ;t++)n(e[t])},n=function(e){o.prototype[e]=function(){return this.node[e].apply( this.node,arguments)}};i(["cloneNode","appendChild","insertBefore","removeChild" ,"replaceChild","setAttribute","removeAttribute","querySelector"]);var s=functio n(e){for(var t=0;t<e.length;t++)r(e[t])},r=function(e){Object.defineProperty(o.p rototype,e,{get:function(){return this.node[e]},configurable:!0})};s(["parentNod e","firstChild","lastChild","nextSibling","previousSibling","firstElementChild", "lastElementChild","nextElementSibling","previousElementSibling"])}}(),Polymer.B ase.extend(Polymer.dom,{_flushGuard:0,_FLUSH_MAX:100,_needsTakeRecords:!Polymer. Settings.useNativeCustomElements,_debouncers:[],_staticFlushList:[],_finishDebou ncer:null,flush:function(){for(this._flushGuard=0,this._prepareFlush();this._deb ouncers.length&&this._flushGuard<this._FLUSH_MAX;){for(;this._debouncers.length; )this._debouncers.shift().complete();this._finishDebouncer&&this._finishDebounce r.complete(),this._prepareFlush(),this._flushGuard++}this._flushGuard>=this._FLU SH_MAX&&console.warn("Polymer.dom.flush aborted. Flush may not be complete.")},_ prepareFlush:function(){this._needsTakeRecords&&CustomElements.takeRecords();for (var e=0;e<this._staticFlushList.length;e++)this._staticFlushList[e]()},addStati cFlush:function(e){this._staticFlushList.push(e)},removeStaticFlush:function(e){ var t=this._staticFlushList.indexOf(e);t>=0&&this._staticFlushList.splice(t,1)}, addDebouncer:function(e){this._debouncers.push(e),this._finishDebouncer=Polymer. Debounce(this._finishDebouncer,this._finishFlush)},_finishFlush:function(){Polym er.dom._debouncers=[]}}),Polymer.EventApi=function(){"use strict";var e=Polymer. DomApi.ctor,t=Polymer.Settings;e.Event=function(e){this.event=e},t.useShadow?e.E vent.prototype={get rootTarget(){return this.event.path[0]},get localTarget(){re turn this.event.target},get path(){var e=this.event.path;return Array.isArray(e) ||(e=Array.prototype.slice.call(e)),e}}:e.Event.prototype={get rootTarget(){retu rn this.event.target},get localTarget(){for(var e=this.event.currentTarget,t=e&& Polymer.dom(e).getOwnerRoot(),o=this.path,i=0;i<o.length;i++)if(Polymer.dom(o[i] ).getOwnerRoot()===t)return o[i]},get path(){if(!this.event._path){for(var e=[], t=this.rootTarget;t;){e.push(t);var o=Polymer.dom(t).getDestinationInsertionPoin ts();if(o.length){for(var i=0;i<o.length-1;i++)e.push(o[i]);t=o[o.length-1]}else t=Polymer.dom(t).parentNode||t.host}e.push(window),this.event._path=e}return th is.event._path}};var o=function(t){return t.__eventApi||(t.__eventApi=new e.Even t(t)),t.__eventApi};return{factory:o}}(),function(){"use strict";var e=Polymer.D omApi.ctor,t=Polymer.Settings.useShadow;Object.defineProperty(e.prototype,"class List",{get:function(){return this._classList||(this._classList=new e.ClassList(t his)),this._classList},configurable:!0}),e.ClassList=function(e){this.domApi=e,t his.node=e.node},e.ClassList.prototype={add:function(){this.node.classList.add.a pply(this.node.classList,arguments),this._distributeParent()},remove:function(){ this.node.classList.remove.apply(this.node.classList,arguments),this._distribute Parent()},toggle:function(){this.node.classList.toggle.apply(this.node.classList ,arguments),this._distributeParent()},_distributeParent:function(){t||this.domAp i._maybeDistributeParent()},contains:function(){return this.node.classList.conta ins.apply(this.node.classList,arguments)}}}(),function(){"use strict";var e=Poly mer.DomApi.ctor,t=Polymer.Settings;if(e.EffectiveNodesObserver=function(e){this. domApi=e,this.node=this.domApi.node,this._listeners=[]},e.EffectiveNodesObserver .prototype={addListener:function(e){this._isSetup||(this._setup(),this._isSetup= !0);var t={fn:e,_nodes:[]};return this._listeners.push(t),this._scheduleNotify() ,t},removeListener:function(e){var t=this._listeners.indexOf(e);t>=0&&(this._lis teners.splice(t,1),e._nodes=[]),this._hasListeners()||(this._cleanup(),this._isS etup=!1)},_setup:function(){this._observeContentElements(this.domApi.childNodes) },_cleanup:function(){this._unobserveContentElements(this.domApi.childNodes)},_h asListeners:function(){return Boolean(this._listeners.length)},_scheduleNotify:f unction(){this._debouncer&&this._debouncer.stop(),this._debouncer=Polymer.Deboun ce(this._debouncer,this._notify),this._debouncer.context=this,Polymer.dom.addDeb ouncer(this._debouncer)},notify:function(){this._hasListeners()&&this._scheduleN otify()},_notify:function(){this._beforeCallListeners(),this._callListeners()},_ beforeCallListeners:function(){this._updateContentElements()},_updateContentElem ents:function(){this._observeContentElements(this.domApi.childNodes)},_observeCo ntentElements:function(e){for(var t,o=0;o<e.length&&(t=e[o]);o++)this._isContent (t)&&(t.__observeNodesMap=t.__observeNodesMap||new WeakMap,t.__observeNodesMap.h as(this)||t.__observeNodesMap.set(this,this._observeContent(t)))},_observeConten t:function(e){var t=this,o=Polymer.dom(e).observeNodes(function(){t._scheduleNot ify()});return o._avoidChangeCalculation=!0,o},_unobserveContentElements:functio n(e){for(var t,o,i=0;i<e.length&&(t=e[i]);i++)this._isContent(t)&&(o=t.__observe NodesMap.get(this),o&&(Polymer.dom(t).unobserveNodes(o),t.__observeNodesMap.dele te(this)))},_isContent:function(e){return"content"===e.localName},_callListeners :function(){for(var e,t=this._listeners,o=this._getEffectiveNodes(),i=0;i<t.leng th&&(e=t[i]);i++){var n=this._generateListenerInfo(e,o);(n||e._alwaysNotify)&&th is._callListener(e,n)}},_getEffectiveNodes:function(){return this.domApi.getEffe ctiveChildNodes()},_generateListenerInfo:function(e,t){if(e._avoidChangeCalculat ion)return!0;for(var o,i=e._nodes,n={target:this.node,addedNodes:[],removedNodes :[]},s=Polymer.ArraySplice.calculateSplices(t,i),r=0;r<s.length&&(o=s[r]);r++)fo r(var d,a=0;a<o.removed.length&&(d=o.removed[a]);a++)n.removedNodes.push(d);for( r=0,o;r<s.length&&(o=s[r]);r++)for(a=o.index;a<o.index+o.addedCount;a++)n.addedN odes.push(t[a]);return e._nodes=t,n.addedNodes.length||n.removedNodes.length?n:v oid 0},_callListener:function(e,t){return e.fn.call(this.node,t)},enableShadowAt tributeTracking:function(){}},t.useShadow){var o=e.EffectiveNodesObserver.protot ype._setup,i=e.EffectiveNodesObserver.prototype._cleanup;Polymer.Base.extend(e.E ffectiveNodesObserver.prototype,{_setup:function(){if(!this._observer){var e=thi s;this._mutationHandler=function(t){t&&t.length&&e._scheduleNotify()},this._obse rver=new MutationObserver(this._mutationHandler),this._boundFlush=function(){e._ flush()},Polymer.dom.addStaticFlush(this._boundFlush),this._observer.observe(thi s.node,{childList:!0})}o.call(this)},_cleanup:function(){this._observer.disconne ct(),this._observer=null,this._mutationHandler=null,Polymer.dom.removeStaticFlus h(this._boundFlush),i.call(this)},_flush:function(){this._observer&&this._mutati onHandler(this._observer.takeRecords())},enableShadowAttributeTracking:function( ){if(this._observer){this._makeContentListenersAlwaysNotify(),this._observer.dis connect(),this._observer.observe(this.node,{childList:!0,attributes:!0,subtree:! 0});var e=this.domApi.getOwnerRoot(),t=e&&e.host;t&&Polymer.dom(t).observer&&Pol ymer.dom(t).observer.enableShadowAttributeTracking()}},_makeContentListenersAlwa ysNotify:function(){for(var e,t=0;t<this._listeners.length;t++)e=this._listeners [t],e._alwaysNotify=e._isContentListener}})}}(),function(){"use strict";var e=Po lymer.DomApi.ctor,t=Polymer.Settings;e.DistributedNodesObserver=function(t){e.Ef fectiveNodesObserver.call(this,t)},e.DistributedNodesObserver.prototype=Object.c reate(e.EffectiveNodesObserver.prototype),Polymer.Base.extend(e.DistributedNodes Observer.prototype,{_setup:function(){},_cleanup:function(){},_beforeCallListene rs:function(){},_getEffectiveNodes:function(){return this.domApi.getDistributedN odes()}}),t.useShadow&&Polymer.Base.extend(e.DistributedNodesObserver.prototype, {_setup:function(){if(!this._observer){var e=this.domApi.getOwnerRoot(),t=e&&e.h ost;if(t){var o=this;this._observer=Polymer.dom(t).observeNodes(function(){o._sc heduleNotify()}),this._observer._isContentListener=!0,this._hasAttrSelect()&&Pol ymer.dom(t).observer.enableShadowAttributeTracking()}}},_hasAttrSelect:function( ){var e=this.node.getAttribute("select");return e&&e.match(/[[.]+/)},_cleanup:fu nction(){var e=this.domApi.getOwnerRoot(),t=e&&e.host;t&&Polymer.dom(t).unobserv eNodes(this._observer),this._observer=null}})}(),function(){function e(e,t){t._d istributedNodes.push(e);var o=e._destinationInsertionPoints;o?o.push(t):e._desti nationInsertionPoints=[t]}function t(e){var t=e._distributedNodes;if(t)for(var o =0;o<t.length;o++){var i=t[o]._destinationInsertionPoints;i&&i.splice(i.indexOf( e)+1,i.length)}}function o(e,t){var o=u.Logical.getParentNode(e);o&&o.shadyRoot& &h.hasInsertionPoint(o.shadyRoot)&&o.shadyRoot._distributionClean&&(o.shadyRoot. _distributionClean=!1,t.shadyRoot._dirtyRoots.push(o))}function i(e,t){var o=t._ destinationInsertionPoints;return o&&o[o.length-1]===e}function n(e){return"cont ent"==e.localName}function s(e){for(;e&&r(e);)e=e.domHost;return e}function r(e) {for(var t,o=u.Logical.getChildNodes(e),i=0;i<o.length;i++)if(t=o[i],t.localName &&"content"===t.localName)return e.domHost}function d(e){for(var t,o=0;o<e._inse rtionPoints.length;o++)t=e._insertionPoints[o],h.hasApi(t)&&Polymer.dom(t).notif yObserver()}function a(e){h.hasApi(e)&&Polymer.dom(e).notifyObserver()}function l(e){if(c&&e)for(var t=0;t<e.length;t++)CustomElements.upgrade(e[t])}var h=Polym er.DomApi,u=Polymer.TreeApi;Polymer.Base._addFeature({_prepShady:function(){this ._useContent=this._useContent||Boolean(this._template)},_setupShady:function(){t his.shadyRoot=null,this.__domApi||(this.__domApi=null),this.__dom||(this.__dom=n ull),this._ownerShadyRoot||(this._ownerShadyRoot=void 0)},_poolContent:function( ){this._useContent&&u.Logical.saveChildNodes(this)},_setupRoot:function(){this._ useContent&&(this._createLocalRoot(),this.dataHost||l(u.Logical.getChildNodes(th is)))},_createLocalRoot:function(){this.shadyRoot=this.root,this.shadyRoot._dist ributionClean=!1,this.shadyRoot._hasDistributed=!1,this.shadyRoot._isShadyRoot=! 0,this.shadyRoot._dirtyRoots=[];var e=this.shadyRoot._insertionPoints=!this._not es||this._notes._hasContent?this.shadyRoot.querySelectorAll("content"):[];u.Logi cal.saveChildNodes(this.shadyRoot);for(var t,o=0;o<e.length;o++)t=e[o],u.Logical .saveChildNodes(t),u.Logical.saveChildNodes(t.parentNode);this.shadyRoot.host=th is},get domHost(){var e=Polymer.dom(this).getOwnerRoot();return e&&e.host},distr ibuteContent:function(e){if(this.shadyRoot){this.shadyRoot._invalidInsertionPoin ts=this.shadyRoot._invalidInsertionPoints||e;var t=s(this);Polymer.dom(this)._la zyDistribute(t)}},_distributeContent:function(){this._useContent&&!this.shadyRoo t._distributionClean&&(this.shadyRoot._invalidInsertionPoints&&(Polymer.dom(this )._updateInsertionPoints(this),this.shadyRoot._invalidInsertionPoints=!1),this._ beginDistribute(),this._distributeDirtyRoots(),this._finishDistribute())},_begin Distribute:function(){this._useContent&&h.hasInsertionPoint(this.shadyRoot)&&(th is._resetDistribution(),this._distributePool(this.shadyRoot,this._collectPool()) );
2 },_distributeDirtyRoots:function(){for(var e,t=this.shadyRoot._dirtyRoots,o=0,i= t.length;o<i&&(e=t[o]);o++)e._distributeContent();this.shadyRoot._dirtyRoots=[]} ,_finishDistribute:function(){if(this._useContent){if(this.shadyRoot._distributi onClean=!0,h.hasInsertionPoint(this.shadyRoot))this._composeTree(),d(this.shadyR oot);else if(this.shadyRoot._hasDistributed){var e=this._composeNode(this);this. _updateChildNodes(this,e)}else u.Composed.clearChildNodes(this),this.appendChild (this.shadyRoot);this.shadyRoot._hasDistributed||a(this),this.shadyRoot._hasDist ributed=!0}},elementMatches:function(e,t){return t=t||this,h.matchesSelector.cal l(t,e)},_resetDistribution:function(){for(var e=u.Logical.getChildNodes(this),o= 0;o<e.length;o++){var i=e[o];i._destinationInsertionPoints&&(i._destinationInser tionPoints=void 0),n(i)&&t(i)}for(var s=this.shadyRoot,r=s._insertionPoints,d=0; d<r.length;d++)r[d]._distributedNodes=[]},_collectPool:function(){for(var e=[],t =u.Logical.getChildNodes(this),o=0;o<t.length;o++){var i=t[o];n(i)?e.push.apply( e,i._distributedNodes):e.push(i)}return e},_distributePool:function(e,t){for(var i,n=e._insertionPoints,s=0,r=n.length;s<r&&(i=n[s]);s++)this._distributeInserti onPoint(i,t),o(i,this)},_distributeInsertionPoint:function(t,o){for(var i,n=!1,s =0,r=o.length;s<r;s++)i=o[s],i&&this._matchesContentSelect(i,t)&&(e(i,t),o[s]=vo id 0,n=!0);if(!n)for(var d=u.Logical.getChildNodes(t),a=0;a<d.length;a++)e(d[a], t)},_composeTree:function(){this._updateChildNodes(this,this._composeNode(this)) ;for(var e,t,o=this.shadyRoot._insertionPoints,i=0,n=o.length;i<n&&(e=o[i]);i++) t=u.Logical.getParentNode(e),t._useContent||t===this||t===this.shadyRoot||this._ updateChildNodes(t,this._composeNode(t))},_composeNode:function(e){for(var t=[], o=u.Logical.getChildNodes(e.shadyRoot||e),s=0;s<o.length;s++){var r=o[s];if(n(r) )for(var d=r._distributedNodes,a=0;a<d.length;a++){var l=d[a];i(r,l)&&t.push(l)} else t.push(r)}return t},_updateChildNodes:function(e,t){for(var o,i=u.Composed. getChildNodes(e),n=Polymer.ArraySplice.calculateSplices(t,i),s=0,r=0;s<n.length& &(o=n[s]);s++){for(var d,a=0;a<o.removed.length&&(d=o.removed[a]);a++)u.Composed .getParentNode(d)===e&&u.Composed.removeChild(e,d),i.splice(o.index+r,1);r-=o.ad dedCount}for(var o,l,s=0;s<n.length&&(o=n[s]);s++)for(l=i[o.index],a=o.index,d;a <o.index+o.addedCount;a++)d=t[a],u.Composed.insertBefore(e,d,l),i.splice(a,0,d)} ,_matchesContentSelect:function(e,t){var o=t.getAttribute("select");if(!o)return !0;if(o=o.trim(),!o)return!0;if(!(e instanceof Element))return!1;var i=/^(:not\( )?[*.#[a-zA-Z_|]/;return!!i.test(o)&&this.elementMatches(o,e)},_elementAdd:funct ion(){},_elementRemove:function(){}});var c=window.CustomElements&&!CustomElemen ts.useNative}(),Polymer.Settings.useShadow&&Polymer.Base._addFeature({_poolConte nt:function(){},_beginDistribute:function(){},distributeContent:function(){},_di stributeContent:function(){},_finishDistribute:function(){},_createLocalRoot:fun ction(){this.createShadowRoot(),this.shadowRoot.appendChild(this.root),this.root =this.shadowRoot}}),Polymer.Async={_currVal:0,_lastVal:0,_callbacks:[],_twiddleC ontent:0,_twiddle:document.createTextNode(""),run:function(e,t){return t>0?~setT imeout(e,t):(this._twiddle.textContent=this._twiddleContent++,this._callbacks.pu sh(e),this._currVal++)},cancel:function(e){if(e<0)clearTimeout(~e);else{var t=e- this._lastVal;if(t>=0){if(!this._callbacks[t])throw"invalid async handle: "+e;th is._callbacks[t]=null}}},_atEndOfMicrotask:function(){for(var e=this._callbacks. length,t=0;t<e;t++){var o=this._callbacks[t];if(o)try{o()}catch(e){throw t++,thi s._callbacks.splice(0,t),this._lastVal+=t,this._twiddle.textContent=this._twiddl eContent++,e}}this._callbacks.splice(0,e),this._lastVal+=e}},new window.Mutation Observer(function(){Polymer.Async._atEndOfMicrotask()}).observe(Polymer.Async._t widdle,{characterData:!0}),Polymer.Debounce=function(){function e(e,t,i){return e?e.stop():e=new o(this),e.go(t,i),e}var t=Polymer.Async,o=function(e){this.cont ext=e;var t=this;this.boundComplete=function(){t.complete()}};return o.prototype ={go:function(e,o){var i;this.finish=function(){t.cancel(i)},i=t.run(this.boundC omplete,o),this.callback=e},stop:function(){this.finish&&(this.finish(),this.fin ish=null,this.callback=null)},complete:function(){if(this.finish){var e=this.cal lback;this.stop(),e.call(this.context)}}},e}(),Polymer.Base._addFeature({_setupD ebouncers:function(){this._debouncers={}},debounce:function(e,t,o){return this._ debouncers[e]=Polymer.Debounce.call(this,this._debouncers[e],t,o)},isDebouncerAc tive:function(e){var t=this._debouncers[e];return!(!t||!t.finish)},flushDebounce r:function(e){var t=this._debouncers[e];t&&t.complete()},cancelDebouncer:functio n(e){var t=this._debouncers[e];t&&t.stop()}}),Polymer.DomModule=document.createE lement("dom-module"),Polymer.Base._addFeature({_registerFeatures:function(){this ._prepIs(),this._prepBehaviors(),this._prepConstructor(),this._prepTemplate(),th is._prepShady(),this._prepPropertyInfo()},_prepBehavior:function(e){this._addHos tAttributes(e.hostAttributes)},_initFeatures:function(){this._registerHost(),thi s._template&&(this._poolContent(),this._beginHosting(),this._stampTemplate(),thi s._endHosting()),this._marshalHostAttributes(),this._setupDebouncers(),this._mar shalBehaviors(),this._tryReady()},_marshalBehavior:function(e){}})</script> <scr ipt>Polymer.nar=[],Polymer.Annotations={parseAnnotations:function(e){var t=[],n= e._content||e.content;return this._parseNodeAnnotations(n,t,e.hasAttribute("stri p-whitespace")),t},_parseNodeAnnotations:function(e,t,n){return e.nodeType===Nod e.TEXT_NODE?this._parseTextNodeAnnotation(e,t):this._parseElementAnnotations(e,t ,n)},_bindingRegex:function(){var e="(?:[a-zA-Z_$][\\w.:$\\-*]*)",t="(?:[-+]?[0- 9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",n="(?:'(?:[^'\\\\]|\\\\.)*')",r='(?:"(?:[^"\ \\\]|\\\\.)*")',s="(?:"+n+"|"+r+")",i="(?:"+e+"|"+t+"|"+s+"\\s*)",o="(?:"+i+"(?: ,\\s*"+i+")*)",a="(?:\\(\\s*(?:"+o+"?)\\)\\s*)",l="("+e+"\\s*"+a+"?)",h="(\\[\\[ |{{)\\s*",c="(?:]]|}})",u="(?:(!)\\s*)?",f=h+u+l+c;return new RegExp(f,"g")}(),_ parseBindings:function(e){for(var t,n=this._bindingRegex,r=[],s=0;null!==(t=n.ex ec(e));){t.index>s&&r.push({literal:e.slice(s,t.index)});var i,o,a,l=t[1][0],h=B oolean(t[2]),c=t[3].trim();"{"==l&&(a=c.indexOf("::"))>0&&(o=c.substring(a+2),c= c.substring(0,a),i=!0),r.push({compoundIndex:r.length,value:c,mode:l,negate:h,ev ent:o,customEvent:i}),s=n.lastIndex}if(s&&s<e.length){var u=e.substring(s);u&&r. push({literal:u})}if(r.length)return r},_literalFromParts:function(e){for(var t= "",n=0;n<e.length;n++){var r=e[n].literal;t+=r||""}return t},_parseTextNodeAnnot ation:function(e,t){var n=this._parseBindings(e.textContent);if(n){e.textContent =this._literalFromParts(n)||" ";var r={bindings:[{kind:"text",name:"textContent" ,parts:n,isCompound:1!==n.length}]};return t.push(r),r}},_parseElementAnnotation s:function(e,t,n){var r={bindings:[],events:[]};return"content"===e.localName&&( t._hasContent=!0),this._parseChildNodesAnnotations(e,r,t,n),e.attributes&&(this. _parseNodeAttributeAnnotations(e,r,t),this.prepElement&&this.prepElement(e)),(r. bindings.length||r.events.length||r.id)&&t.push(r),r},_parseChildNodesAnnotation s:function(e,t,n,r){if(e.firstChild)for(var s=e.firstChild,i=0;s;){var o=s.nextS ibling;if("template"!==s.localName||s.hasAttribute("preserve-content")||this._pa rseTemplate(s,i,n,t),s.nodeType===Node.TEXT_NODE){for(var a=o;a&&a.nodeType===No de.TEXT_NODE;)s.textContent+=a.textContent,o=a.nextSibling,e.removeChild(a),a=o; r&&!s.textContent.trim()&&(e.removeChild(s),i--)}if(s.parentNode){var l=this._pa rseNodeAnnotations(s,n,r);l&&(l.parent=t,l.index=i)}s=o,i++}},_parseTemplate:fun ction(e,t,n,r){var s=document.createDocumentFragment();s._notes=this.parseAnnota tions(e),s.appendChild(e.content),n.push({bindings:Polymer.nar,events:Polymer.na r,templateContent:s,parent:r,index:t})},_parseNodeAttributeAnnotations:function( e,t){for(var n,r=Array.prototype.slice.call(e.attributes),s=r.length-1;n=r[s];s- -){var i,o=n.name,a=n.value;"on-"===o.slice(0,3)?(e.removeAttribute(o),t.events. push({name:o.slice(3),value:a})):(i=this._parseNodeAttributeAnnotation(e,o,a))?t .bindings.push(i):"id"===o&&(t.id=a)}},_parseNodeAttributeAnnotation:function(e, t,n){var r=this._parseBindings(n);if(r){var s=t,i="property";"$"==t[t.length-1]& &(t=t.slice(0,-1),i="attribute");var o=this._literalFromParts(r);o&&"attribute"= =i&&e.setAttribute(t,o),"input"===e.localName&&"value"===s&&e.setAttribute(s,"") ,e.removeAttribute(s);var a=Polymer.CaseMap.dashToCamelCase(t);return"property"= ==i&&(t=a),{kind:i,name:t,propertyName:a,parts:r,literal:o,isCompound:1!==r.leng th}}},findAnnotatedNode:function(e,t){var n=t.parent&&Polymer.Annotations.findAn notatedNode(e,t.parent);if(!n)return e;for(var r=n.firstChild,s=0;r;r=r.nextSibl ing)if(t.index===s++)return r}},function(){function e(e,t){return e.replace(a,fu nction(e,r,s,i){return r+"'"+n(s.replace(/["']/g,""),t)+"'"+i})}function t(t,r){ for(var s in l)for(var i,o,a,c=l[s],u=0,f=c.length;u<f&&(i=c[u]);u++)"*"!==s&&t. localName!==s||(o=t.attributes[i],a=o&&o.value,a&&a.search(h)<0&&(o.value="style "===i?e(a,r):n(a,r)))}function n(e,t){if(e&&"#"===e[0])return e;var n=s(t);retur n n.href=e,n.href||e}function r(e,t){return i||(i=document.implementation.create HTMLDocument("temp"),o=i.createElement("base"),i.head.appendChild(o)),o.href=t,n (e,i)}function s(e){return e.__urlResolver||(e.__urlResolver=e.createElement("a" ))}var i,o,a=/(url\()([^)]*)(\))/g,l={"*":["href","src","style","url"],form:["ac tion"]},h=/\{\{|\[\[/;Polymer.ResolveUrl={resolveCss:e,resolveAttrs:t,resolveUrl :r}}(),Polymer.Base._addFeature({_prepAnnotations:function(){if(this._template){ var e=this;Polymer.Annotations.prepElement=function(t){e._prepElement(t)},this._ template._content&&this._template._content._notes?this._notes=this._template._co ntent._notes:(this._notes=Polymer.Annotations.parseAnnotations(this._template),t his._processAnnotations(this._notes)),Polymer.Annotations.prepElement=null}else this._notes=[]},_processAnnotations:function(e){for(var t=0;t<e.length;t++){for( var n=e[t],r=0;r<n.bindings.length;r++)for(var s=n.bindings[r],i=0;i<s.parts.len gth;i++){var o=s.parts[i];if(!o.literal){var a=this._parseMethod(o.value);a?o.si gnature=a:o.model=this._modelForPath(o.value)}}if(n.templateContent){this._proce ssAnnotations(n.templateContent._notes);var l=n.templateContent._parentProps=thi s._discoverTemplateParentProps(n.templateContent._notes),h=[];for(var c in l){va r u="_parent_"+c;h.push({index:n.index,kind:"property",name:u,propertyName:u,par ts:[{mode:"{",model:c,value:c}]})}n.bindings=n.bindings.concat(h)}}},_discoverTe mplateParentProps:function(e){for(var t,n={},r=0;r<e.length&&(t=e[r]);r++){for(v ar s,i=0,o=t.bindings;i<o.length&&(s=o[i]);i++)for(var a,l=0,h=s.parts;l<h.lengt h&&(a=h[l]);l++)if(a.signature){for(var c=a.signature.args,u=0;u<c.length;u++){v ar f=c[u].model;f&&(n[f]=!0)}a.signature.dynamicFn&&(n[a.signature.method]=!0)}e lse a.model&&(n[a.model]=!0);if(t.templateContent){var p=t.templateContent._pare ntProps;Polymer.Base.mixin(n,p)}}return n},_prepElement:function(e){Polymer.Reso lveUrl.resolveAttrs(e,this._template.ownerDocument)},_findAnnotatedNode:Polymer. Annotations.findAnnotatedNode,_marshalAnnotationReferences:function(){this._temp late&&(this._marshalIdNodes(),this._marshalAnnotatedNodes(),this._marshalAnnotat edListeners())},_configureAnnotationReferences:function(){for(var e=this._notes, t=this._nodes,n=0;n<e.length;n++){var r=e[n],s=t[n];this._configureTemplateConte nt(r,s),this._configureCompoundBindings(r,s)}},_configureTemplateContent:functio n(e,t){e.templateContent&&(t._content=e.templateContent)},_configureCompoundBind ings:function(e,t){for(var n=e.bindings,r=0;r<n.length;r++){var s=n[r];if(s.isCo mpound){for(var i=t.__compoundStorage__||(t.__compoundStorage__={}),o=s.parts,a= new Array(o.length),l=0;l<o.length;l++)a[l]=o[l].literal;var h=s.name;i[h]=a,s.l iteral&&"property"==s.kind&&(t._configValue?t._configValue(h,s.literal):t[h]=s.l iteral)}}},_marshalIdNodes:function(){this.$={};for(var e,t=0,n=this._notes.leng th;t<n&&(e=this._notes[t]);t++)e.id&&(this.$[e.id]=this._findAnnotatedNode(this. root,e))},_marshalAnnotatedNodes:function(){if(this._notes&&this._notes.length){ for(var e=new Array(this._notes.length),t=0;t<this._notes.length;t++)e[t]=this._ findAnnotatedNode(this.root,this._notes[t]);this._nodes=e}},_marshalAnnotatedLis teners:function(){for(var e,t=0,n=this._notes.length;t<n&&(e=this._notes[t]);t++ )if(e.events&&e.events.length)for(var r,s=this._findAnnotatedNode(this.root,e),i =0,o=e.events;i<o.length&&(r=o[i]);i++)this.listen(s,r.name,r.value)}}),Polymer. Base._addFeature({listeners:{},_listenListeners:function(e){var t,n,r;for(r in e )r.indexOf(".")<0?(t=this,n=r):(n=r.split("."),t=this.$[n[0]],n=n[1]),this.liste n(t,n,e[r])},listen:function(e,t,n){var r=this._recallEventHandler(this,t,e,n);r ||(r=this._createEventHandler(e,t,n)),r._listening||(this._listen(e,t,r),r._list ening=!0)},_boundListenerKey:function(e,t){return e+":"+t},_recordEventHandler:f unction(e,t,n,r,s){var i=e.__boundListeners;i||(i=e.__boundListeners=new WeakMap );var o=i.get(n);o||(o={},i.set(n,o));var a=this._boundListenerKey(t,r);o[a]=s}, _recallEventHandler:function(e,t,n,r){var s=e.__boundListeners;if(s){var i=s.get (n);if(i){var o=this._boundListenerKey(t,r);return i[o]}}},_createEventHandler:f unction(e,t,n){var r=this,s=function(e){r[n]?r[n](e,e.detail):r._warn(r._logf("_ createEventHandler","listener method `"+n+"` not defined"))};return s._listening =!1,this._recordEventHandler(r,t,e,n,s),s},unlisten:function(e,t,n){var r=this._ recallEventHandler(this,t,e,n);r&&(this._unlisten(e,t,r),r._listening=!1)},_list en:function(e,t,n){e.addEventListener(t,n)},_unlisten:function(e,t,n){e.removeEv entListener(t,n)}}),function(){"use strict";function e(e){for(var t,n=0;n<m.leng th;n++)t=m[n],e?document.addEventListener(t,P,!0):document.removeEventListener(t ,P,!0)}function t(){if(!g){S.mouse.mouseIgnoreJob||e(!0);var t=function(){e(),S. mouse.target=null,S.mouse.mouseIgnoreJob=null};S.mouse.mouseIgnoreJob=Polymer.De bounce(S.mouse.mouseIgnoreJob,t,d)}}function n(e){var t=e.type;if(m.indexOf(t)== =-1)return!1;if("mousemove"===t){var n=void 0===e.buttons?1:e.buttons;return e i nstanceof window.MouseEvent&&!v&&(n=y[e.which]||0),Boolean(1&n)}var r=void 0===e .button?0:e.button;return 0===r}function r(e){if("click"===e.type){if(0===e.deta il)return!0;var t=E.findOriginalTarget(e),n=t.getBoundingClientRect(),r=e.pageX, s=e.pageY;return!(r>=n.left&&r<=n.right&&s>=n.top&&s<=n.bottom)}return!1}functio n s(e){for(var t,n=Polymer.dom(e).path,r="auto",s=0;s<n.length;s++)if(t=n[s],t[u ]){r=t[u];break}return r}function i(e,t,n){e.movefn=t,e.upfn=n,document.addEvent Listener("mousemove",t),document.addEventListener("mouseup",n)}function o(e){doc ument.removeEventListener("mousemove",e.movefn),document.removeEventListener("mo useup",e.upfn),e.movefn=null,e.upfn=null}var a=Polymer.DomApi.wrap,l="string"==t ypeof document.head.style.touchAction,h="__polymerGestures",c="__polymerGestures Handled",u="__polymerGesturesTouchAction",f=25,p=5,_=2,d=2500,m=["mousedown","mo usemove","mouseup","click"],y=[0,1,4,2],v=function(){try{return 1===new MouseEve nt("test",{buttons:1}).buttons}catch(e){return!1}}(),g=navigator.userAgent.match (/iP(?:[oa]d|hone)|Android/),P=function(e){if(e[c]={skip:!0},"click"===e.type){f or(var t=Polymer.dom(e).path,n=0;n<t.length;n++)if(t[n]===S.mouse.target)return; e.preventDefault(),e.stopPropagation()}},S={mouse:{target:null,mouseIgnoreJob:nu ll},touch:{x:0,y:0,id:-1,scrollDecided:!1}},E={gestures:{},recognizers:[],deepTa rgetFind:function(e,t){for(var n=document.elementFromPoint(e,t),r=n;r&&r.shadowR oot;)r=r.shadowRoot.elementFromPoint(e,t),r&&(n=r);return n},findOriginalTarget: function(e){return e.path?e.path[0]:e.target},handleNative:function(e){var n,r=e .type,s=a(e.currentTarget),i=s[h];if(i){var o=i[r];if(o){if(!e[c]&&(e[c]={},"tou ch"===r.slice(0,5))){var u=e.changedTouches[0];if("touchstart"===r&&1===e.touche s.length&&(S.touch.id=u.identifier),S.touch.id!==u.identifier)return;l||"touchst art"!==r&&"touchmove"!==r||E.handleTouchAction(e),"touchend"===r&&(S.mouse.targe t=Polymer.dom(e).rootTarget,t())}if(n=e[c],!n.skip){for(var f,p=E.recognizers,_= 0;_<p.length;_++)f=p[_],o[f.name]&&!n[f.name]&&f.flow&&f.flow.start.indexOf(e.ty pe)>-1&&f.reset&&f.reset();for(_=0,f;_<p.length;_++)f=p[_],o[f.name]&&!n[f.name] &&(n[f.name]=!0,f[r](e))}}}},handleTouchAction:function(e){var t=e.changedTouche s[0],n=e.type;if("touchstart"===n)S.touch.x=t.clientX,S.touch.y=t.clientY,S.touc h.scrollDecided=!1;else if("touchmove"===n){if(S.touch.scrollDecided)return;S.to uch.scrollDecided=!0;var r=s(e),i=!1,o=Math.abs(S.touch.x-t.clientX),a=Math.abs( S.touch.y-t.clientY);e.cancelable&&("none"===r?i=!0:"pan-x"===r?i=a>o:"pan-y"=== r&&(i=o>a)),i?e.preventDefault():E.prevent("track")}},add:function(e,t,n){e=a(e) ;var r=this.gestures[t],s=r.deps,i=r.name,o=e[h];o||(e[h]=o={});for(var l,c,u=0; u<s.length;u++)l=s[u],g&&m.indexOf(l)>-1||(c=o[l],c||(o[l]=c={_count:0}),0===c._ count&&e.addEventListener(l,this.handleNative),c[i]=(c[i]||0)+1,c._count=(c._cou nt||0)+1);e.addEventListener(t,n),r.touchAction&&this.setTouchAction(e,r.touchAc tion)},remove:function(e,t,n){e=a(e);var r=this.gestures[t],s=r.deps,i=r.name,o= e[h];if(o)for(var l,c,u=0;u<s.length;u++)l=s[u],c=o[l],c&&c[i]&&(c[i]=(c[i]||1)- 1,c._count=(c._count||1)-1,0===c._count&&e.removeEventListener(l,this.handleNati ve));e.removeEventListener(t,n)},register:function(e){this.recognizers.push(e);f or(var t=0;t<e.emits.length;t++)this.gestures[e.emits[t]]=e},findRecognizerByEve nt:function(e){for(var t,n=0;n<this.recognizers.length;n++){t=this.recognizers[n ];for(var r,s=0;s<t.emits.length;s++)if(r=t.emits[s],r===e)return t}return null} ,setTouchAction:function(e,t){l&&(e.style.touchAction=t),e[u]=t},fire:function(e ,t,n){var r=Polymer.Base.fire(t,n,{node:e,bubbles:!0,cancelable:!0});if(r.defaul tPrevented){var s=n.preventer||n.sourceEvent;s&&s.preventDefault&&s.preventDefau lt()}},prevent:function(e){var t=this.findRecognizerByEvent(e);t.info&&(t.info.p revent=!0)},resetMouseCanceller:function(){S.mouse.mouseIgnoreJob&&S.mouse.mouse IgnoreJob.complete()}};E.register({name:"downup",deps:["mousedown","touchstart", "touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},e mits:["down","up"],info:{movefn:null,upfn:null},reset:function(){o(this.info)},m ousedown:function(e){if(n(e)){var t=E.findOriginalTarget(e),r=this,s=function(e) {n(e)||(r.fire("up",t,e),o(r.info))},a=function(e){n(e)&&r.fire("up",t,e),o(r.in fo)};i(this.info,s,a),this.fire("down",t,e)}},touchstart:function(e){this.fire(" down",E.findOriginalTarget(e),e.changedTouches[0],e)},touchend:function(e){this. fire("up",E.findOriginalTarget(e),e.changedTouches[0],e)},fire:function(e,t,n,r) {E.fire(t,e,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:r,prevent:function( e){return E.prevent(e)}})}}),E.register({name:"track",touchAction:"none",deps:[" mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchs tart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",s tarted:!1,moves:[],addMove:function(e){this.moves.length>_&&this.moves.shift(),t his.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info. state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y= 0,this.info.prevent=!1,o(this.info)},hasMovedEnough:function(e,t){if(this.info.p revent)return!1;if(this.info.started)return!0;var n=Math.abs(this.info.x-e),r=Ma th.abs(this.info.y-t);return n>=p||r>=p},mousedown:function(e){if(n(e)){var t=E. findOriginalTarget(e),r=this,s=function(e){var s=e.clientX,i=e.clientY;r.hasMove dEnough(s,i)&&(r.info.state=r.info.started?"mouseup"===e.type?"end":"track":"sta rt","start"===r.info.state&&E.prevent("tap"),r.info.addMove({x:s,y:i}),n(e)||(r. info.state="end",o(r.info)),r.fire(t,e),r.info.started=!0)},a=function(e){r.info .started&&s(e),o(r.info)};i(this.info,s,a),this.info.x=e.clientX,this.info.y=e.c lientY}},touchstart:function(e){var t=e.changedTouches[0];this.info.x=t.clientX, this.info.y=t.clientY},touchmove:function(e){var t=E.findOriginalTarget(e),n=e.c hangedTouches[0],r=n.clientX,s=n.clientY;this.hasMovedEnough(r,s)&&("start"===th is.info.state&&E.prevent("tap"),this.info.addMove({x:r,y:s}),this.fire(t,n),this .info.state="track",this.info.started=!0)},touchend:function(e){var t=E.findOrig inalTarget(e),n=e.changedTouches[0];this.info.started&&(this.info.state="end",th is.info.addMove({x:n.clientX,y:n.clientY}),this.fire(t,n,e))},fire:function(e,t, n){var r,s=this.info.moves[this.info.moves.length-2],i=this.info.moves[this.info .moves.length-1],o=i.x-this.info.x,a=i.y-this.info.y,l=0;return s&&(r=i.x-s.x,l= i.y-s.y),E.fire(e,"track",{state:this.info.state,x:t.clientX,y:t.clientY,dx:o,dy :a,ddx:r,ddy:l,sourceEvent:t,preventer:n,hover:function(){return E.deepTargetFin d(t.clientX,t.clientY)}})}}),E.register({name:"tap",deps:["mousedown","click","t ouchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touc hend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x =NaN,this.info.y=NaN,this.info.prevent=!1},save:function(e){this.info.x=e.client X,this.info.y=e.clientY},mousedown:function(e){n(e)&&this.save(e)},click:functio n(e){n(e)&&this.forward(e)},touchstart:function(e){this.save(e.changedTouches[0] ,e)},touchend:function(e){this.forward(e.changedTouches[0],e)},forward:function( e,t){var n=Math.abs(e.clientX-this.info.x),s=Math.abs(e.clientY-this.info.y),i=E .findOriginalTarget(e);(isNaN(n)||isNaN(s)||n<=f&&s<=f||r(e))&&(this.info.preven t||E.fire(i,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}});var C ={x:"pan-x",y:"pan-y",none:"none",all:"auto"};Polymer.Base._addFeature({_setupGe stures:function(){this.__polymerGestures=null},_listen:function(e,t,n){E.gesture s[t]?E.add(e,t,n):e.addEventListener(t,n)},_unlisten:function(e,t,n){E.gestures[ t]?E.remove(e,t,n):e.removeEventListener(t,n)},setScrollDirection:function(e,t){ t=t||this,E.setTouchAction(t,C[e]||"auto")}}),Polymer.Gestures=E}(),function(){" use strict";if(Polymer.Base._addFeature({$$:function(e){return Polymer.dom(this. root).querySelector(e)},toggleClass:function(e,t,n){n=n||this,1==arguments.lengt h&&(t=!n.classList.contains(e)),t?Polymer.dom(n).classList.add(e):Polymer.dom(n) .classList.remove(e)},toggleAttribute:function(e,t,n){n=n||this,1==arguments.len gth&&(t=!n.hasAttribute(e)),t?Polymer.dom(n).setAttribute(e,""):Polymer.dom(n).r emoveAttribute(e)},classFollows:function(e,t,n){n&&Polymer.dom(n).classList.remo ve(e),t&&Polymer.dom(t).classList.add(e)},attributeFollows:function(e,t,n){n&&Po lymer.dom(n).removeAttribute(e),t&&Polymer.dom(t).setAttribute(e,"")},getEffecti veChildNodes:function(){return Polymer.dom(this).getEffectiveChildNodes()},getEf fectiveChildren:function(){var e=Polymer.dom(this).getEffectiveChildNodes();retu rn e.filter(function(e){return e.nodeType===Node.ELEMENT_NODE})},getEffectiveTex tContent:function(){for(var e,t=this.getEffectiveChildNodes(),n=[],r=0;e=t[r];r+ +)e.nodeType!==Node.COMMENT_NODE&&n.push(Polymer.dom(e).textContent);return n.jo in("")},queryEffectiveChildren:function(e){var t=Polymer.dom(this).queryDistribu tedElements(e);return t&&t[0]},queryAllEffectiveChildren:function(e){return Poly mer.dom(this).queryDistributedElements(e)},getContentChildNodes:function(e){var t=Polymer.dom(this.root).querySelector(e||"content");return t?Polymer.dom(t).get DistributedNodes():[]},getContentChildren:function(e){return this.getContentChil dNodes(e).filter(function(e){return e.nodeType===Node.ELEMENT_NODE})},fire:funct ion(e,t,n){n=n||Polymer.nob;var r=n.node||this;t=null===t||void 0===t?{}:t;var s =void 0===n.bubbles||n.bubbles,i=Boolean(n.cancelable),o=n._useCache,a=this._get Event(e,s,i,o);return a.detail=t,o&&(this.__eventCache[e]=null),r.dispatchEvent( a),o&&(this.__eventCache[e]=a),a},__eventCache:{},_getEvent:function(e,t,n,r){va r s=r&&this.__eventCache[e];return s&&s.bubbles==t&&s.cancelable==n||(s=new Even t(e,{bubbles:Boolean(t),cancelable:n})),s},async:function(e,t){var n=this;return Polymer.Async.run(function(){e.call(n)},t)},cancelAsync:function(e){Polymer.Asy nc.cancel(e)},arrayDelete:function(e,t){var n;if(Array.isArray(e)){if(n=e.indexO f(t),n>=0)return e.splice(n,1)}else{var r=this._get(e);if(n=r.indexOf(t),n>=0)re turn this.splice(e,n,1)}},transform:function(e,t){t=t||this,t.style.webkitTransf orm=e,t.style.transform=e},translate3d:function(e,t,n,r){r=r||this,this.transfor m("translate3d("+e+","+t+","+n+")",r)},importHref:function(e,t,n,r){var s=docume nt.createElement("link");s.rel="import",s.href=e;var i=Polymer.Base.importHref.i mported=Polymer.Base.importHref.imported||{},o=i[s.href],a=o||s,l=this;if(t){var h=function(e){return e.target.__firedLoad=!0,e.target.removeEventListener("load ",h),t.call(l,e)};a.addEventListener("load",h)}if(n){var c=function(e){return e. target.__firedError=!0,e.target.removeEventListener("error",c),n.call(l,e)};a.ad dEventListener("error",c)}return o?(o.__firedLoad&&o.dispatchEvent(new Event("lo ad")),o.__firedError&&o.dispatchEvent(new Event("error"))):(i[s.href]=s,r=Boolea n(r),r&&s.setAttribute("async",""),document.head.appendChild(s)),a},create:funct ion(e,t){var n=document.createElement(e);if(t)for(var r in t)n[r]=t[r];return n} ,isLightDescendant:function(e){return this!==e&&this.contains(e)&&Polymer.dom(th is).getOwnerRoot()===Polymer.dom(e).getOwnerRoot()},isLocalDescendant:function(e ){return this.root===Polymer.dom(e).getOwnerRoot()}}),!Polymer.Settings.useNativ eCustomElements){var e=Polymer.Base.importHref;Polymer.Base.importHref=function( t,n,r,s){CustomElements.ready=!1;var i=function(e){if(CustomElements.upgradeDocu mentTree(document),CustomElements.ready=!0,n)return n.call(this,e)};return e.cal l(this,t,i,r,s)}}}(),Polymer.Bind={prepareModel:function(e){Polymer.Base.mixin(e ,this._modelApi)},_modelApi:{_notifyChange:function(e,t,n){n=void 0===n?this[e]: n,t=t||Polymer.CaseMap.camelToDashCase(e)+"-changed",this.fire(t,{value:n},{bubb les:!1,cancelable:!1,_useCache:!0})},_propertySetter:function(e,t,n,r){var s=thi s.__data__[e];return s===t||s!==s&&t!==t||(this.__data__[e]=t,"object"==typeof t &&this._clearPath(e),this._propertyChanged&&this._propertyChanged(e,t,s),n&&this ._effectEffects(e,t,n,s,r)),s},__setProperty:function(e,t,n,r){r=r||this;var s=r ._propertyEffects&&r._propertyEffects[e];s?r._propertySetter(e,t,s,n):r[e]=t},_e ffectEffects:function(e,t,n,r,s){for(var i,o=0,a=n.length;o<a&&(i=n[o]);o++)i.fn .call(this,e,this[e],i.effect,r,s)},_clearPath:function(e){for(var t in this.__d ata__)0===t.indexOf(e+".")&&(this.__data__[t]=void 0)}},ensurePropertyEffects:fu nction(e,t){e._propertyEffects||(e._propertyEffects={});var n=e._propertyEffects [t];return n||(n=e._propertyEffects[t]=[]),n},addPropertyEffect:function(e,t,n,r ){var s=this.ensurePropertyEffects(e,t),i={kind:n,effect:r,fn:Polymer.Bind["_"+n +"Effect"]};return s.push(i),i},createBindings:function(e){var t=e._propertyEffe cts;if(t)for(var n in t){var r=t[n];r.sort(this._sortPropertyEffects),this._crea teAccessors(e,n,r)}},_sortPropertyEffects:function(){var e={compute:0,annotation :1,annotatedComputation:2,reflect:3,notify:4,observer:5,complexObserver:6,functi on:7};return function(t,n){return e[t.kind]-e[n.kind]}}(),_createAccessors:funct ion(e,t,n){var r={get:function(){return this.__data__[t]}},s=function(e){this._p ropertySetter(t,e,n)},i=e.getPropertyInfo&&e.getPropertyInfo(t);i&&i.readOnly?i. computed||(e["_set"+this.upper(t)]=s):r.set=s,Object.defineProperty(e,t,r)},uppe r:function(e){return e[0].toUpperCase()+e.substring(1)},_addAnnotatedListener:fu nction(e,t,n,r,s,i){e._bindListeners||(e._bindListeners=[]);var o=this._notedLis tenerFactory(n,r,this._isStructured(r),i),a=s||Polymer.CaseMap.camelToDashCase(n )+"-changed";e._bindListeners.push({index:t,property:n,path:r,changedFn:o,event: a})},_isStructured:function(e){return e.indexOf(".")>0},_isEventBogus:function(e ,t){return e.path&&e.path[0]!==t},_notedListenerFactory:function(e,t,n,r){return function(s,i,o){o?this._notifyPath(this._fixPath(t,e,o),i):(i=s[e],r&&(i=!i),n? this.__data__[t]!=i&&this.set(t,i):this[t]=i)}},prepareInstance:function(e){e.__ data__=Object.create(null)},setupBindListeners:function(e){for(var t,n=e._bindLi steners,r=0,s=n.length;r<s&&(t=n[r]);r++){var i=e._nodes[t.index];this._addNotif yListener(i,e,t.event,t.changedFn)}},_addNotifyListener:function(e,t,n,r){e.addE ventListener(n,function(e){return t._notifyListener(r,e)})}},Polymer.Base.extend (Polymer.Bind,{_shouldAddListener:function(e){return e.name&&"attribute"!=e.kind &&"text"!=e.kind&&!e.isCompound&&"{"===e.parts[0].mode},_annotationEffect:functi on(e,t,n){e!=n.value&&(t=this._get(n.value),this.__data__[n.value]=t),this._appl yEffectValue(n,t)},_reflectEffect:function(e,t,n){this.reflectPropertyToAttribut e(e,n.attribute,t)},_notifyEffect:function(e,t,n,r,s){s||this._notifyChange(e,n. event,t)},_functionEffect:function(e,t,n,r,s){n.call(this,e,t,r,s)},_observerEff ect:function(e,t,n,r){var s=this[n.method];s?s.call(this,t,r):this._warn(this._l ogf("_observerEffect","observer method `"+n.method+"` not defined"))},_complexOb serverEffect:function(e,t,n){var r=this[n.method];if(r){var s=Polymer.Bind._mars halArgs(this.__data__,n,e,t);s&&r.apply(this,s)}else n.dynamicFn||this._warn(thi s._logf("_complexObserverEffect","observer method `"+n.method+"` not defined"))} ,_computeEffect:function(e,t,n){var r=this[n.method];if(r){var s=Polymer.Bind._m arshalArgs(this.__data__,n,e,t);if(s){var i=r.apply(this,s);this.__setProperty(n .name,i)}}else n.dynamicFn||this._warn(this._logf("_computeEffect","compute meth od `"+n.method+"` not defined"))},_annotatedComputationEffect:function(e,t,n){va r r=this._rootDataHost||this,s=r[n.method];if(s){var i=Polymer.Bind._marshalArgs (this.__data__,n,e,t);if(i){var o=s.apply(r,i);this._applyEffectValue(n,o)}}else n.dynamicFn||r._warn(r._logf("_annotatedComputationEffect","compute method `"+n .method+"` not defined"))},_marshalArgs:function(e,t,n,r){for(var s=[],i=t.args, o=i.length>1||t.dynamicFn,a=0,l=i.length;a<l;a++){var h,c=i[a],u=c.name;if(c.lit eral?h=c.value:n===u?h=r:(h=e[u],void 0===h&&c.structured&&(h=Polymer.Base._get( u,e))),o&&void 0===h)return;if(c.wildcard){var f=0===n.indexOf(u+".");s[a]={path :f?n:u,value:f?r:h,base:h}}else s[a]=h}return s}}),Polymer.Base._addFeature({_ad dPropertyEffect:function(e,t,n){var r=Polymer.Bind.addPropertyEffect(this,e,t,n) ;r.pathFn=this["_"+r.kind+"PathEffect"]},_prepEffects:function(){Polymer.Bind.pr epareModel(this),this._addAnnotationEffects(this._notes)},_prepBindings:function (){Polymer.Bind.createBindings(this)},_addPropertyEffects:function(e){if(e)for(v ar t in e){var n=e[t];if(n.observer&&this._addObserverEffect(t,n.observer),n.com puted&&(n.readOnly=!0,this._addComputedEffect(t,n.computed)),n.notify&&this._add PropertyEffect(t,"notify",{event:Polymer.CaseMap.camelToDashCase(t)+"-changed"}) ,n.reflectToAttribute){var r=Polymer.CaseMap.camelToDashCase(t);"-"===r[0]?this. _warn(this._logf("_addPropertyEffects","Property "+t+" cannot be reflected to at tribute "+r+' because "-" is not a valid starting attribute name. Use a lowercas e first letter for the property instead.')):this._addPropertyEffect(t,"reflect", {attribute:r})}n.readOnly&&Polymer.Bind.ensurePropertyEffects(this,t)}},_addComp utedEffect:function(e,t){for(var n,r=this._parseMethod(t),s=r.dynamicFn,i=0;i<r. args.length&&(n=r.args[i]);i++)this._addPropertyEffect(n.model,"compute",{method :r.method,args:r.args,trigger:n,name:e,dynamicFn:s});s&&this._addPropertyEffect( r.method,"compute",{method:r.method,args:r.args,trigger:null,name:e,dynamicFn:s} )},_addObserverEffect:function(e,t){this._addPropertyEffect(e,"observer",{method :t,property:e})},_addComplexObserverEffects:function(e){if(e)for(var t,n=0;n<e.l ength&&(t=e[n]);n++)this._addComplexObserverEffect(t)},_addComplexObserverEffect :function(e){var t=this._parseMethod(e);if(!t)throw new Error("Malformed observe r expression '"+e+"'");for(var n,r=t.dynamicFn,s=0;s<t.args.length&&(n=t.args[s] );s++)this._addPropertyEffect(n.model,"complexObserver",{method:t.method,args:t. args,trigger:n,dynamicFn:r});r&&this._addPropertyEffect(t.method,"complexObserve r",{method:t.method,args:t.args,trigger:null,dynamicFn:r})},_addAnnotationEffect s:function(e){for(var t,n=0;n<e.length&&(t=e[n]);n++)for(var r,s=t.bindings,i=0; i<s.length&&(r=s[i]);i++)this._addAnnotationEffect(r,n)},_addAnnotationEffect:fu nction(e,t){Polymer.Bind._shouldAddListener(e)&&Polymer.Bind._addAnnotatedListen er(this,t,e.name,e.parts[0].value,e.parts[0].event,e.parts[0].negate);for(var n= 0;n<e.parts.length;n++){var r=e.parts[n];r.signature?this._addAnnotatedComputati onEffect(e,r,t):r.literal||("attribute"===e.kind&&"-"===e.name[0]?this._warn(thi s._logf("_addAnnotationEffect","Cannot set attribute "+e.name+' because "-" is n ot a valid attribute starting character')):this._addPropertyEffect(r.model,"anno tation",{kind:e.kind,index:t,name:e.name,propertyName:e.propertyName,value:r.val ue,isCompound:e.isCompound,compoundIndex:r.compoundIndex,event:r.event,customEve nt:r.customEvent,negate:r.negate}))}},_addAnnotatedComputationEffect:function(e, t,n){var r=t.signature;if(r.static)this.__addAnnotatedComputationEffect("__stati c__",n,e,t,null);else{for(var s,i=0;i<r.args.length&&(s=r.args[i]);i++)s.literal ||this.__addAnnotatedComputationEffect(s.model,n,e,t,s);r.dynamicFn&&this.__addA nnotatedComputationEffect(r.method,n,e,t,null)}},__addAnnotatedComputationEffect :function(e,t,n,r,s){this._addPropertyEffect(e,"annotatedComputation",{index:t,i sCompound:n.isCompound,compoundIndex:r.compoundIndex,kind:n.kind,name:n.name,neg ate:r.negate,method:r.signature.method,args:r.signature.args,trigger:s,dynamicFn :r.signature.dynamicFn})},_parseMethod:function(e){var t=e.match(/([^\s]+?)\(([\ s\S]*)\)/);if(t){var n={method:t[1],static:!0};if(this.getPropertyInfo(n.method) !==Polymer.nob&&(n.static=!1,n.dynamicFn=!0),t[2].trim()){var r=t[2].replace(/\\ ,/g,"&comma;").split(",");return this._parseArgs(r,n)}return n.args=Polymer.nar, n}},_parseArgs:function(e,t){return t.args=e.map(function(e){var n=this._parseAr g(e);return n.literal||(t.static=!1),n},this),t},_parseArg:function(e){var t=e.t rim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),n={name:t},r=t[0];switch("- "===r&&(r=t[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':n.value=t.slice(1,-1) ,n.literal=!0;break;case"#":n.value=Number(t),n.literal=!0}return n.literal||(n. model=this._modelForPath(t),n.structured=t.indexOf(".")>0,n.structured&&(n.wildc ard=".*"==t.slice(-2),n.wildcard&&(n.name=t.slice(0,-2)))),n},_marshalInstanceEf fects:function(){Polymer.Bind.prepareInstance(this),this._bindListeners&&Polymer .Bind.setupBindListeners(this)},_applyEffectValue:function(e,t){var n=this._node s[e.index],r=e.name;if(t=this._computeFinalAnnotationValue(n,r,t,e),!e.customEve nt||n[r]!==t)if("attribute"==e.kind)this.serializeValueToAttribute(t,r,n);else{v ar s=n._propertyInfo&&n._propertyInfo[r];if(s&&s.readOnly)return;this.__setPrope rty(r,t,!1,n)}},_computeFinalAnnotationValue:function(e,t,n,r){if(r.negate&&(n=! n),r.isCompound){var s=e.__compoundStorage__[t];s[r.compoundIndex]=n,n=s.join("" )}return"attribute"!==r.kind&&("className"===t&&(n=this._scopeElementClass(e,n)) ,("textContent"===t||"input"==e.localName&&"value"==t)&&(n=void 0==n?"":n)),n},_ executeStaticEffects:function(){this._propertyEffects&&this._propertyEffects.__s tatic__&&this._effectEffects("__static__",null,this._propertyEffects.__static__) }}),function(){var e=Polymer.Settings.usePolyfillProto;Polymer.Base._addFeature( {_setupConfigure:function(e){if(this._config={},this._handlers=[],this._aboveCon fig=null,e)for(var t in e)void 0!==e[t]&&(this._config[t]=e[t])},_marshalAttribu tes:function(){this._takeAttributesToModel(this._config)},_attributeChangedImpl: function(e){var t=this._clientsReadied?this:this._config;this._setAttributeToPro perty(t,e)},_configValue:function(e,t){var n=this._propertyInfo[e];n&&n.readOnly ||(this._config[e]=t)},_beforeClientsReady:function(){this._configure()},_config ure:function(){this._configureAnnotationReferences(),this._aboveConfig=this.mixi n({},this._config);for(var e={},t=0;t<this.behaviors.length;t++)this._configureP roperties(this.behaviors[t].properties,e);this._configureProperties(this.propert ies,e),this.mixin(e,this._aboveConfig),this._config=e,this._clients&&this._clien ts.length&&this._distributeConfig(this._config)},_configureProperties:function(t ,n){for(var r in t){var s=t[r];if(!e&&this.hasOwnProperty(r)&&this._propertyEffe cts&&this._propertyEffects[r])n[r]=this[r],delete this[r];else if(void 0!==s.val ue){var i=s.value;"function"==typeof i&&(i=i.call(this,this._config)),n[r]=i}}}, _distributeConfig:function(e){var t=this._propertyEffects;if(t)for(var n in e){v ar r=t[n];if(r)for(var s,i=0,o=r.length;i<o&&(s=r[i]);i++)if("annotation"===s.ki nd){var a=this._nodes[s.effect.index],l=s.effect.propertyName,h="attribute"==s.e ffect.kind,c=a._propertyEffects&&a._propertyEffects[l];if(a._configValue&&(c||!h )){var u=n===s.effect.value?e[n]:this._get(s.effect.value,e);u=this._computeFina lAnnotationValue(a,l,u,s.effect),h&&(u=a.deserialize(this.serialize(u),a._proper tyInfo[l].type)),a._configValue(l,u)}}}},_afterClientsReady:function(){this._exe cuteStaticEffects(),this._applyConfig(this._config,this._aboveConfig),this._flus hHandlers()},_applyConfig:function(e,t){for(var n in e)void 0===this[n]&&this.__ setProperty(n,e[n],n in t); 2 },_distributeDirtyRoots:function(){for(var e,t=this.shadyRoot._dirtyRoots,o=0,i= t.length;o<i&&(e=t[o]);o++)e._distributeContent();this.shadyRoot._dirtyRoots=[]} ,_finishDistribute:function(){if(this._useContent){if(this.shadyRoot._distributi onClean=!0,h.hasInsertionPoint(this.shadyRoot))this._composeTree(),d(this.shadyR oot);else if(this.shadyRoot._hasDistributed){var e=this._composeNode(this);this. _updateChildNodes(this,e)}else u.Composed.clearChildNodes(this),this.appendChild (this.shadyRoot);this.shadyRoot._hasDistributed||a(this),this.shadyRoot._hasDist ributed=!0}},elementMatches:function(e,t){return t=t||this,h.matchesSelector.cal l(t,e)},_resetDistribution:function(){for(var e=u.Logical.getChildNodes(this),o= 0;o<e.length;o++){var i=e[o];i._destinationInsertionPoints&&(i._destinationInser tionPoints=void 0),n(i)&&t(i)}for(var s=this.shadyRoot,r=s._insertionPoints,d=0; d<r.length;d++)r[d]._distributedNodes=[]},_collectPool:function(){for(var e=[],t =u.Logical.getChildNodes(this),o=0;o<t.length;o++){var i=t[o];n(i)?e.push.apply( e,i._distributedNodes):e.push(i)}return e},_distributePool:function(e,t){for(var i,n=e._insertionPoints,s=0,r=n.length;s<r&&(i=n[s]);s++)this._distributeInserti onPoint(i,t),o(i,this)},_distributeInsertionPoint:function(t,o){for(var i,n=!1,s =0,r=o.length;s<r;s++)i=o[s],i&&this._matchesContentSelect(i,t)&&(e(i,t),o[s]=vo id 0,n=!0);if(!n)for(var d=u.Logical.getChildNodes(t),a=0;a<d.length;a++)e(d[a], t)},_composeTree:function(){this._updateChildNodes(this,this._composeNode(this)) ;for(var e,t,o=this.shadyRoot._insertionPoints,i=0,n=o.length;i<n&&(e=o[i]);i++) t=u.Logical.getParentNode(e),t._useContent||t===this||t===this.shadyRoot||this._ updateChildNodes(t,this._composeNode(t))},_composeNode:function(e){for(var t=[], o=u.Logical.getChildNodes(e.shadyRoot||e),s=0;s<o.length;s++){var r=o[s];if(n(r) )for(var d=r._distributedNodes,a=0;a<d.length;a++){var l=d[a];i(r,l)&&t.push(l)} else t.push(r)}return t},_updateChildNodes:function(e,t){for(var o,i=u.Composed. getChildNodes(e),n=Polymer.ArraySplice.calculateSplices(t,i),s=0,r=0;s<n.length& &(o=n[s]);s++){for(var d,a=0;a<o.removed.length&&(d=o.removed[a]);a++)u.Composed .getParentNode(d)===e&&u.Composed.removeChild(e,d),i.splice(o.index+r,1);r-=o.ad dedCount}for(var o,l,s=0;s<n.length&&(o=n[s]);s++)for(l=i[o.index],a=o.index,d;a <o.index+o.addedCount;a++)d=t[a],u.Composed.insertBefore(e,d,l),i.splice(a,0,d)} ,_matchesContentSelect:function(e,t){var o=t.getAttribute("select");if(!o)return !0;if(o=o.trim(),!o)return!0;if(!(e instanceof Element))return!1;var i=/^(:not\( )?[*.#[a-zA-Z_|]/;return!!i.test(o)&&this.elementMatches(o,e)},_elementAdd:funct ion(){},_elementRemove:function(){}});var c=window.CustomElements&&!CustomElemen ts.useNative}(),Polymer.Settings.useShadow&&Polymer.Base._addFeature({_poolConte nt:function(){},_beginDistribute:function(){},distributeContent:function(){},_di stributeContent:function(){},_finishDistribute:function(){},_createLocalRoot:fun ction(){this.createShadowRoot(),this.shadowRoot.appendChild(this.root),this.root =this.shadowRoot}}),Polymer.Async={_currVal:0,_lastVal:0,_callbacks:[],_twiddleC ontent:0,_twiddle:document.createTextNode(""),run:function(e,t){return t>0?~setT imeout(e,t):(this._twiddle.textContent=this._twiddleContent++,this._callbacks.pu sh(e),this._currVal++)},cancel:function(e){if(e<0)clearTimeout(~e);else{var t=e- this._lastVal;if(t>=0){if(!this._callbacks[t])throw"invalid async handle: "+e;th is._callbacks[t]=null}}},_atEndOfMicrotask:function(){for(var e=this._callbacks. length,t=0;t<e;t++){var o=this._callbacks[t];if(o)try{o()}catch(e){throw t++,thi s._callbacks.splice(0,t),this._lastVal+=t,this._twiddle.textContent=this._twiddl eContent++,e}}this._callbacks.splice(0,e),this._lastVal+=e}},new window.Mutation Observer(function(){Polymer.Async._atEndOfMicrotask()}).observe(Polymer.Async._t widdle,{characterData:!0}),Polymer.Debounce=function(){function e(e,t,i){return e?e.stop():e=new o(this),e.go(t,i),e}var t=Polymer.Async,o=function(e){this.cont ext=e;var t=this;this.boundComplete=function(){t.complete()}};return o.prototype ={go:function(e,o){var i;this.finish=function(){t.cancel(i)},i=t.run(this.boundC omplete,o),this.callback=e},stop:function(){this.finish&&(this.finish(),this.fin ish=null,this.callback=null)},complete:function(){if(this.finish){var e=this.cal lback;this.stop(),e.call(this.context)}}},e}(),Polymer.Base._addFeature({_setupD ebouncers:function(){this._debouncers={}},debounce:function(e,t,o){return this._ debouncers[e]=Polymer.Debounce.call(this,this._debouncers[e],t,o)},isDebouncerAc tive:function(e){var t=this._debouncers[e];return!(!t||!t.finish)},flushDebounce r:function(e){var t=this._debouncers[e];t&&t.complete()},cancelDebouncer:functio n(e){var t=this._debouncers[e];t&&t.stop()}}),Polymer.DomModule=document.createE lement("dom-module"),Polymer.Base._addFeature({_registerFeatures:function(){this ._prepIs(),this._prepBehaviors(),this._prepConstructor(),this._prepTemplate(),th is._prepShady(),this._prepPropertyInfo()},_prepBehavior:function(e){this._addHos tAttributes(e.hostAttributes)},_initFeatures:function(){this._registerHost(),thi s._template&&(this._poolContent(),this._beginHosting(),this._stampTemplate(),thi s._endHosting()),this._marshalHostAttributes(),this._setupDebouncers(),this._mar shalBehaviors(),this._tryReady()},_marshalBehavior:function(e){}})</script> <scr ipt>Polymer.nar=[],Polymer.Annotations={parseAnnotations:function(e){var t=[],n= e._content||e.content;return this._parseNodeAnnotations(n,t,e.hasAttribute("stri p-whitespace")),t},_parseNodeAnnotations:function(e,t,n){return e.nodeType===Nod e.TEXT_NODE?this._parseTextNodeAnnotation(e,t):this._parseElementAnnotations(e,t ,n)},_bindingRegex:function(){var e="(?:[a-zA-Z_$][\\w.:$\\-*]*)",t="(?:[-+]?[0- 9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",n="(?:'(?:[^'\\\\]|\\\\.)*')",r='(?:"(?:[^"\ \\\]|\\\\.)*")',s="(?:"+n+"|"+r+")",i="(?:"+e+"|"+t+"|"+s+"\\s*)",o="(?:"+i+"(?: ,\\s*"+i+")*)",a="(?:\\(\\s*(?:"+o+"?)\\)\\s*)",l="("+e+"\\s*"+a+"?)",h="(\\[\\[ |{{)\\s*",c="(?:]]|}})",u="(?:(!)\\s*)?",f=h+u+l+c;return new RegExp(f,"g")}(),_ parseBindings:function(e){for(var t,n=this._bindingRegex,r=[],s=0;null!==(t=n.ex ec(e));){t.index>s&&r.push({literal:e.slice(s,t.index)});var i,o,a,l=t[1][0],h=B oolean(t[2]),c=t[3].trim();"{"==l&&(a=c.indexOf("::"))>0&&(o=c.substring(a+2),c= c.substring(0,a),i=!0),r.push({compoundIndex:r.length,value:c,mode:l,negate:h,ev ent:o,customEvent:i}),s=n.lastIndex}if(s&&s<e.length){var u=e.substring(s);u&&r. push({literal:u})}if(r.length)return r},_literalFromParts:function(e){for(var t= "",n=0;n<e.length;n++){var r=e[n].literal;t+=r||""}return t},_parseTextNodeAnnot ation:function(e,t){var n=this._parseBindings(e.textContent);if(n){e.textContent =this._literalFromParts(n)||" ";var r={bindings:[{kind:"text",name:"textContent" ,parts:n,isCompound:1!==n.length}]};return t.push(r),r}},_parseElementAnnotation s:function(e,t,n){var r={bindings:[],events:[]};return"content"===e.localName&&( t._hasContent=!0),this._parseChildNodesAnnotations(e,r,t,n),e.attributes&&(this. _parseNodeAttributeAnnotations(e,r,t),this.prepElement&&this.prepElement(e)),(r. bindings.length||r.events.length||r.id)&&t.push(r),r},_parseChildNodesAnnotation s:function(e,t,n,r){if(e.firstChild)for(var s=e.firstChild,i=0;s;){var o=s.nextS ibling;if("template"!==s.localName||s.hasAttribute("preserve-content")||this._pa rseTemplate(s,i,n,t),s.nodeType===Node.TEXT_NODE){for(var a=o;a&&a.nodeType===No de.TEXT_NODE;)s.textContent+=a.textContent,o=a.nextSibling,e.removeChild(a),a=o; r&&!s.textContent.trim()&&(e.removeChild(s),i--)}if(s.parentNode){var l=this._pa rseNodeAnnotations(s,n,r);l&&(l.parent=t,l.index=i)}s=o,i++}},_parseTemplate:fun ction(e,t,n,r){var s=document.createDocumentFragment();s._notes=this.parseAnnota tions(e),s.appendChild(e.content),n.push({bindings:Polymer.nar,events:Polymer.na r,templateContent:s,parent:r,index:t})},_parseNodeAttributeAnnotations:function( e,t){for(var n,r=Array.prototype.slice.call(e.attributes),s=r.length-1;n=r[s];s- -){var i,o=n.name,a=n.value;"on-"===o.slice(0,3)?(e.removeAttribute(o),t.events. push({name:o.slice(3),value:a})):(i=this._parseNodeAttributeAnnotation(e,o,a))?t .bindings.push(i):"id"===o&&(t.id=a)}},_parseNodeAttributeAnnotation:function(e, t,n){var r=this._parseBindings(n);if(r){var s=t,i="property";"$"==t[t.length-1]& &(t=t.slice(0,-1),i="attribute");var o=this._literalFromParts(r);o&&"attribute"= =i&&e.setAttribute(t,o),"input"===e.localName&&"value"===s&&e.setAttribute(s,"") ,e.removeAttribute(s);var a=Polymer.CaseMap.dashToCamelCase(t);return"property"= ==i&&(t=a),{kind:i,name:t,propertyName:a,parts:r,literal:o,isCompound:1!==r.leng th}}},findAnnotatedNode:function(e,t){var n=t.parent&&Polymer.Annotations.findAn notatedNode(e,t.parent);if(!n)return e;for(var r=n.firstChild,s=0;r;r=r.nextSibl ing)if(t.index===s++)return r}},function(){function e(e,t){return e.replace(a,fu nction(e,r,s,i){return r+"'"+n(s.replace(/["']/g,""),t)+"'"+i})}function t(t,r){ for(var s in l)for(var i,o,a,h=l[s],u=0,f=h.length;u<f&&(i=h[u]);u++)"*"!==s&&t. localName!==s||(o=t.attributes[i],a=o&&o.value,a&&a.search(c)<0&&(o.value="style "===i?e(a,r):n(a,r)))}function n(e,t){if(e&&h.test(e))return e;var n=s(t);return n.href=e,n.href||e}function r(e,t){return i||(i=document.implementation.createH TMLDocument("temp"),o=i.createElement("base"),i.head.appendChild(o)),o.href=t,n( e,i)}function s(e){return e.__urlResolver||(e.__urlResolver=e.createElement("a") )}var i,o,a=/(url\()([^)]*)(\))/g,l={"*":["href","src","style","url"],form:["act ion"]},h=/(^\/)|(^#)|(^[\w-\d]*:)/,c=/\{\{|\[\[/;Polymer.ResolveUrl={resolveCss: e,resolveAttrs:t,resolveUrl:r}}(),Polymer.Base._addFeature({_prepAnnotations:fun ction(){if(this._template){var e=this;Polymer.Annotations.prepElement=function(t ){e._prepElement(t)},this._template._content&&this._template._content._notes?thi s._notes=this._template._content._notes:(this._notes=Polymer.Annotations.parseAn notations(this._template),this._processAnnotations(this._notes)),Polymer.Annotat ions.prepElement=null}else this._notes=[]},_processAnnotations:function(e){for(v ar t=0;t<e.length;t++){for(var n=e[t],r=0;r<n.bindings.length;r++)for(var s=n.bi ndings[r],i=0;i<s.parts.length;i++){var o=s.parts[i];if(!o.literal){var a=this._ parseMethod(o.value);a?o.signature=a:o.model=this._modelForPath(o.value)}}if(n.t emplateContent){this._processAnnotations(n.templateContent._notes);var l=n.templ ateContent._parentProps=this._discoverTemplateParentProps(n.templateContent._not es),h=[];for(var c in l){var u="_parent_"+c;h.push({index:n.index,kind:"property ",name:u,propertyName:u,parts:[{mode:"{",model:c,value:c}]})}n.bindings=n.bindin gs.concat(h)}}},_discoverTemplateParentProps:function(e){for(var t,n={},r=0;r<e. length&&(t=e[r]);r++){for(var s,i=0,o=t.bindings;i<o.length&&(s=o[i]);i++)for(va r a,l=0,h=s.parts;l<h.length&&(a=h[l]);l++)if(a.signature){for(var c=a.signature .args,u=0;u<c.length;u++){var f=c[u].model;f&&(n[f]=!0)}a.signature.dynamicFn&&( n[a.signature.method]=!0)}else a.model&&(n[a.model]=!0);if(t.templateContent){va r p=t.templateContent._parentProps;Polymer.Base.mixin(n,p)}}return n},_prepEleme nt:function(e){Polymer.ResolveUrl.resolveAttrs(e,this._template.ownerDocument)}, _findAnnotatedNode:Polymer.Annotations.findAnnotatedNode,_marshalAnnotationRefer ences:function(){this._template&&(this._marshalIdNodes(),this._marshalAnnotatedN odes(),this._marshalAnnotatedListeners())},_configureAnnotationReferences:functi on(){for(var e=this._notes,t=this._nodes,n=0;n<e.length;n++){var r=e[n],s=t[n];t his._configureTemplateContent(r,s),this._configureCompoundBindings(r,s)}},_confi gureTemplateContent:function(e,t){e.templateContent&&(t._content=e.templateConte nt)},_configureCompoundBindings:function(e,t){for(var n=e.bindings,r=0;r<n.lengt h;r++){var s=n[r];if(s.isCompound){for(var i=t.__compoundStorage__||(t.__compoun dStorage__={}),o=s.parts,a=new Array(o.length),l=0;l<o.length;l++)a[l]=o[l].lite ral;var h=s.name;i[h]=a,s.literal&&"property"==s.kind&&(t._configValue?t._config Value(h,s.literal):t[h]=s.literal)}}},_marshalIdNodes:function(){this.$={};for(v ar e,t=0,n=this._notes.length;t<n&&(e=this._notes[t]);t++)e.id&&(this.$[e.id]=th is._findAnnotatedNode(this.root,e))},_marshalAnnotatedNodes:function(){if(this._ notes&&this._notes.length){for(var e=new Array(this._notes.length),t=0;t<this._n otes.length;t++)e[t]=this._findAnnotatedNode(this.root,this._notes[t]);this._nod es=e}},_marshalAnnotatedListeners:function(){for(var e,t=0,n=this._notes.length; t<n&&(e=this._notes[t]);t++)if(e.events&&e.events.length)for(var r,s=this._findA nnotatedNode(this.root,e),i=0,o=e.events;i<o.length&&(r=o[i]);i++)this.listen(s, r.name,r.value)}}),Polymer.Base._addFeature({listeners:{},_listenListeners:funct ion(e){var t,n,r;for(r in e)r.indexOf(".")<0?(t=this,n=r):(n=r.split("."),t=this .$[n[0]],n=n[1]),this.listen(t,n,e[r])},listen:function(e,t,n){var r=this._recal lEventHandler(this,t,e,n);r||(r=this._createEventHandler(e,t,n)),r._listening||( this._listen(e,t,r),r._listening=!0)},_boundListenerKey:function(e,t){return e+" :"+t},_recordEventHandler:function(e,t,n,r,s){var i=e.__boundListeners;i||(i=e._ _boundListeners=new WeakMap);var o=i.get(n);o||(o={},i.set(n,o));var a=this._bou ndListenerKey(t,r);o[a]=s},_recallEventHandler:function(e,t,n,r){var s=e.__bound Listeners;if(s){var i=s.get(n);if(i){var o=this._boundListenerKey(t,r);return i[ o]}}},_createEventHandler:function(e,t,n){var r=this,s=function(e){r[n]?r[n](e,e .detail):r._warn(r._logf("_createEventHandler","listener method `"+n+"` not defi ned"))};return s._listening=!1,this._recordEventHandler(r,t,e,n,s),s},unlisten:f unction(e,t,n){var r=this._recallEventHandler(this,t,e,n);r&&(this._unlisten(e,t ,r),r._listening=!1)},_listen:function(e,t,n){e.addEventListener(t,n)},_unlisten :function(e,t,n){e.removeEventListener(t,n)}}),function(){"use strict";function e(e){for(var t,n=0;n<m.length;n++)t=m[n],e?document.addEventListener(t,P,!0):doc ument.removeEventListener(t,P,!0)}function t(){if(!g){S.mouse.mouseIgnoreJob||e( !0);var t=function(){e(),S.mouse.target=null,S.mouse.mouseIgnoreJob=null};S.mous e.mouseIgnoreJob=Polymer.Debounce(S.mouse.mouseIgnoreJob,t,d)}}function n(e){var t=e.type;if(m.indexOf(t)===-1)return!1;if("mousemove"===t){var n=void 0===e.but tons?1:e.buttons;return e instanceof window.MouseEvent&&!v&&(n=y[e.which]||0),Bo olean(1&n)}var r=void 0===e.button?0:e.button;return 0===r}function r(e){if("cli ck"===e.type){if(0===e.detail)return!0;var t=E.findOriginalTarget(e),n=t.getBoun dingClientRect(),r=e.pageX,s=e.pageY;return!(r>=n.left&&r<=n.right&&s>=n.top&&s< =n.bottom)}return!1}function s(e){for(var t,n=Polymer.dom(e).path,r="auto",s=0;s <n.length;s++)if(t=n[s],t[u]){r=t[u];break}return r}function i(e,t,n){e.movefn=t ,e.upfn=n,document.addEventListener("mousemove",t),document.addEventListener("mo useup",n)}function o(e){document.removeEventListener("mousemove",e.movefn),docum ent.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}var a=Polyme r.DomApi.wrap,l="string"==typeof document.head.style.touchAction,h="__polymerGes tures",c="__polymerGesturesHandled",u="__polymerGesturesTouchAction",f=25,p=5,_= 2,d=2500,m=["mousedown","mousemove","mouseup","click"],y=[0,1,4,2],v=function(){ try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}(), g=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),P=function(e){var t=e.so urceCapabilities;if((!t||t.firesTouchEvents)&&(e[c]={skip:!0},"click"===e.type)) {for(var n=Polymer.dom(e).path,r=0;r<n.length;r++)if(n[r]===S.mouse.target)retur n;e.preventDefault(),e.stopPropagation()}},S={mouse:{target:null,mouseIgnoreJob: null},touch:{x:0,y:0,id:-1,scrollDecided:!1}},E={gestures:{},recognizers:[],deep TargetFind:function(e,t){for(var n=document.elementFromPoint(e,t),r=n;r&&r.shado wRoot;)r=r.shadowRoot.elementFromPoint(e,t),r&&(n=r);return n},findOriginalTarge t:function(e){return e.path?e.path[0]:e.target},handleNative:function(e){var n,r =e.type,s=a(e.currentTarget),i=s[h];if(i){var o=i[r];if(o){if(!e[c]&&(e[c]={},"t ouch"===r.slice(0,5))){var u=e.changedTouches[0];if("touchstart"===r&&1===e.touc hes.length&&(S.touch.id=u.identifier),S.touch.id!==u.identifier)return;l||"touch start"!==r&&"touchmove"!==r||E.handleTouchAction(e),"touchend"===r&&(S.mouse.tar get=Polymer.dom(e).rootTarget,t())}if(n=e[c],!n.skip){for(var f,p=E.recognizers, _=0;_<p.length;_++)f=p[_],o[f.name]&&!n[f.name]&&f.flow&&f.flow.start.indexOf(e. type)>-1&&f.reset&&f.reset();for(_=0,f;_<p.length;_++)f=p[_],o[f.name]&&!n[f.nam e]&&(n[f.name]=!0,f[r](e))}}}},handleTouchAction:function(e){var t=e.changedTouc hes[0],n=e.type;if("touchstart"===n)S.touch.x=t.clientX,S.touch.y=t.clientY,S.to uch.scrollDecided=!1;else if("touchmove"===n){if(S.touch.scrollDecided)return;S. touch.scrollDecided=!0;var r=s(e),i=!1,o=Math.abs(S.touch.x-t.clientX),a=Math.ab s(S.touch.y-t.clientY);e.cancelable&&("none"===r?i=!0:"pan-x"===r?i=a>o:"pan-y"= ==r&&(i=o>a)),i?e.preventDefault():E.prevent("track")}},add:function(e,t,n){e=a( e);var r=this.gestures[t],s=r.deps,i=r.name,o=e[h];o||(e[h]=o={});for(var l,c,u= 0;u<s.length;u++)l=s[u],g&&m.indexOf(l)>-1||(c=o[l],c||(o[l]=c={_count:0}),0===c ._count&&e.addEventListener(l,this.handleNative),c[i]=(c[i]||0)+1,c._count=(c._c ount||0)+1);e.addEventListener(t,n),r.touchAction&&this.setTouchAction(e,r.touch Action)},remove:function(e,t,n){e=a(e);var r=this.gestures[t],s=r.deps,i=r.name, o=e[h];if(o)for(var l,c,u=0;u<s.length;u++)l=s[u],c=o[l],c&&c[i]&&(c[i]=(c[i]||1 )-1,c._count=(c._count||1)-1,0===c._count&&e.removeEventListener(l,this.handleNa tive));e.removeEventListener(t,n)},register:function(e){this.recognizers.push(e) ;for(var t=0;t<e.emits.length;t++)this.gestures[e.emits[t]]=e},findRecognizerByE vent:function(e){for(var t,n=0;n<this.recognizers.length;n++){t=this.recognizers [n];for(var r,s=0;s<t.emits.length;s++)if(r=t.emits[s],r===e)return t}return nul l},setTouchAction:function(e,t){l&&(e.style.touchAction=t),e[u]=t},fire:function (e,t,n){var r=Polymer.Base.fire(t,n,{node:e,bubbles:!0,cancelable:!0});if(r.defa ultPrevented){var s=n.preventer||n.sourceEvent;s&&s.preventDefault&&s.preventDef ault()}},prevent:function(e){var t=this.findRecognizerByEvent(e);t.info&&(t.info .prevent=!0)},resetMouseCanceller:function(){S.mouse.mouseIgnoreJob&&S.mouse.mou seIgnoreJob.complete()}};E.register({name:"downup",deps:["mousedown","touchstart ","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]} ,emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){o(this.info)} ,mousedown:function(e){if(n(e)){var t=E.findOriginalTarget(e),r=this,s=function( e){n(e)||(r.fire("up",t,e),o(r.info))},a=function(e){n(e)&&r.fire("up",t,e),o(r. info)};i(this.info,s,a),this.fire("down",t,e)}},touchstart:function(e){this.fire ("down",E.findOriginalTarget(e),e.changedTouches[0],e)},touchend:function(e){thi s.fire("up",E.findOriginalTarget(e),e.changedTouches[0],e)},fire:function(e,t,n, r){E.fire(t,e,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:r,prevent:functio n(e){return E.prevent(e)}})}}),E.register({name:"track",touchAction:"none",deps: ["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touc hstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start" ,started:!1,moves:[],addMove:function(e){this.moves.length>_&&this.moves.shift() ,this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset:function(){this.inf o.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info. y=0,this.info.prevent=!1,o(this.info)},hasMovedEnough:function(e,t){if(this.info .prevent)return!1;if(this.info.started)return!0;var n=Math.abs(this.info.x-e),r= Math.abs(this.info.y-t);return n>=p||r>=p},mousedown:function(e){if(n(e)){var t= E.findOriginalTarget(e),r=this,s=function(e){var s=e.clientX,i=e.clientY;r.hasMo vedEnough(s,i)&&(r.info.state=r.info.started?"mouseup"===e.type?"end":"track":"s tart","start"===r.info.state&&E.prevent("tap"),r.info.addMove({x:s,y:i}),n(e)||( r.info.state="end",o(r.info)),r.fire(t,e),r.info.started=!0)},a=function(e){r.in fo.started&&s(e),o(r.info)};i(this.info,s,a),this.info.x=e.clientX,this.info.y=e .clientY}},touchstart:function(e){var t=e.changedTouches[0];this.info.x=t.client X,this.info.y=t.clientY},touchmove:function(e){var t=E.findOriginalTarget(e),n=e .changedTouches[0],r=n.clientX,s=n.clientY;this.hasMovedEnough(r,s)&&("start"=== this.info.state&&E.prevent("tap"),this.info.addMove({x:r,y:s}),this.fire(t,n),th is.info.state="track",this.info.started=!0)},touchend:function(e){var t=E.findOr iginalTarget(e),n=e.changedTouches[0];this.info.started&&(this.info.state="end", this.info.addMove({x:n.clientX,y:n.clientY}),this.fire(t,n,e))},fire:function(e, t,n){var r,s=this.info.moves[this.info.moves.length-2],i=this.info.moves[this.in fo.moves.length-1],o=i.x-this.info.x,a=i.y-this.info.y,l=0;return s&&(r=i.x-s.x, l=i.y-s.y),E.fire(e,"track",{state:this.info.state,x:t.clientX,y:t.clientY,dx:o, dy:a,ddx:r,ddy:l,sourceEvent:t,preventer:n,hover:function(){return E.deepTargetF ind(t.clientX,t.clientY)}})}}),E.register({name:"tap",deps:["mousedown","click", "touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","to uchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info .x=NaN,this.info.y=NaN,this.info.prevent=!1},save:function(e){this.info.x=e.clie ntX,this.info.y=e.clientY},mousedown:function(e){n(e)&&this.save(e)},click:funct ion(e){n(e)&&this.forward(e)},touchstart:function(e){this.save(e.changedTouches[ 0],e)},touchend:function(e){this.forward(e.changedTouches[0],e)},forward:functio n(e,t){var n=Math.abs(e.clientX-this.info.x),s=Math.abs(e.clientY-this.info.y),i =E.findOriginalTarget(e);(isNaN(n)||isNaN(s)||n<=f&&s<=f||r(e))&&(this.info.prev ent||E.fire(i,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}});var C={x:"pan-x",y:"pan-y",none:"none",all:"auto"};Polymer.Base._addFeature({_setup Gestures:function(){this.__polymerGestures=null},_listen:function(e,t,n){E.gestu res[t]?E.add(e,t,n):e.addEventListener(t,n)},_unlisten:function(e,t,n){E.gesture s[t]?E.remove(e,t,n):e.removeEventListener(t,n)},setScrollDirection:function(e,t ){t=t||this,E.setTouchAction(t,C[e]||"auto")}}),Polymer.Gestures=E}(),function() {"use strict";if(Polymer.Base._addFeature({$$:function(e){return Polymer.dom(thi s.root).querySelector(e)},toggleClass:function(e,t,n){n=n||this,1==arguments.len gth&&(t=!n.classList.contains(e)),t?Polymer.dom(n).classList.add(e):Polymer.dom( n).classList.remove(e)},toggleAttribute:function(e,t,n){n=n||this,1==arguments.l ength&&(t=!n.hasAttribute(e)),t?Polymer.dom(n).setAttribute(e,""):Polymer.dom(n) .removeAttribute(e)},classFollows:function(e,t,n){n&&Polymer.dom(n).classList.re move(e),t&&Polymer.dom(t).classList.add(e)},attributeFollows:function(e,t,n){n&& Polymer.dom(n).removeAttribute(e),t&&Polymer.dom(t).setAttribute(e,"")},getEffec tiveChildNodes:function(){return Polymer.dom(this).getEffectiveChildNodes()},get EffectiveChildren:function(){var e=Polymer.dom(this).getEffectiveChildNodes();re turn e.filter(function(e){return e.nodeType===Node.ELEMENT_NODE})},getEffectiveT extContent:function(){for(var e,t=this.getEffectiveChildNodes(),n=[],r=0;e=t[r]; r++)e.nodeType!==Node.COMMENT_NODE&&n.push(Polymer.dom(e).textContent);return n. join("")},queryEffectiveChildren:function(e){var t=Polymer.dom(this).queryDistri butedElements(e);return t&&t[0]},queryAllEffectiveChildren:function(e){return Po lymer.dom(this).queryDistributedElements(e)},getContentChildNodes:function(e){va r t=Polymer.dom(this.root).querySelector(e||"content");return t?Polymer.dom(t).g etDistributedNodes():[]},getContentChildren:function(e){return this.getContentCh ildNodes(e).filter(function(e){return e.nodeType===Node.ELEMENT_NODE})},fire:fun ction(e,t,n){n=n||Polymer.nob;var r=n.node||this;t=null===t||void 0===t?{}:t;var s=void 0===n.bubbles||n.bubbles,i=Boolean(n.cancelable),o=n._useCache,a=this._g etEvent(e,s,i,o);return a.detail=t,o&&(this.__eventCache[e]=null),r.dispatchEven t(a),o&&(this.__eventCache[e]=a),a},__eventCache:{},_getEvent:function(e,t,n,r){ var s=r&&this.__eventCache[e];return s&&s.bubbles==t&&s.cancelable==n||(s=new Ev ent(e,{bubbles:Boolean(t),cancelable:n})),s},async:function(e,t){var n=this;retu rn Polymer.Async.run(function(){e.call(n)},t)},cancelAsync:function(e){Polymer.A sync.cancel(e)},arrayDelete:function(e,t){var n;if(Array.isArray(e)){if(n=e.inde xOf(t),n>=0)return e.splice(n,1)}else{var r=this._get(e);if(n=r.indexOf(t),n>=0) return this.splice(e,n,1)}},transform:function(e,t){t=t||this,t.style.webkitTran sform=e,t.style.transform=e},translate3d:function(e,t,n,r){r=r||this,this.transf orm("translate3d("+e+","+t+","+n+")",r)},importHref:function(e,t,n,r){var s=docu ment.createElement("link");s.rel="import",s.href=e;var i=Polymer.Base.importHref .imported=Polymer.Base.importHref.imported||{},o=i[s.href],a=o||s,l=this;if(t){v ar h=function(e){return e.target.__firedLoad=!0,e.target.removeEventListener("lo ad",h),t.call(l,e)};a.addEventListener("load",h)}if(n){var c=function(e){return e.target.__firedError=!0,e.target.removeEventListener("error",c),n.call(l,e)};a. addEventListener("error",c)}return o?(o.__firedLoad&&o.dispatchEvent(new Event(" load")),o.__firedError&&o.dispatchEvent(new Event("error"))):(i[s.href]=s,r=Bool ean(r),r&&s.setAttribute("async",""),document.head.appendChild(s)),a},create:fun ction(e,t){var n=document.createElement(e);if(t)for(var r in t)n[r]=t[r];return n},isLightDescendant:function(e){return this!==e&&this.contains(e)&&Polymer.dom( this).getOwnerRoot()===Polymer.dom(e).getOwnerRoot()},isLocalDescendant:function (e){return this.root===Polymer.dom(e).getOwnerRoot()}}),!Polymer.Settings.useNat iveCustomElements){var e=Polymer.Base.importHref;Polymer.Base.importHref=functio n(t,n,r,s){CustomElements.ready=!1;var i=function(e){if(CustomElements.upgradeDo cumentTree(document),CustomElements.ready=!0,n)return n.call(this,e)};return e.c all(this,t,i,r,s)}}}(),Polymer.Bind={prepareModel:function(e){Polymer.Base.mixin (e,this._modelApi)},_modelApi:{_notifyChange:function(e,t,n){n=void 0===n?this[e ]:n,t=t||Polymer.CaseMap.camelToDashCase(e)+"-changed",this.fire(t,{value:n},{bu bbles:!1,cancelable:!1,_useCache:!0})},_propertySetter:function(e,t,n,r){var s=t his.__data__[e];return s===t||s!==s&&t!==t||(this.__data__[e]=t,"object"==typeof t&&this._clearPath(e),this._propertyChanged&&this._propertyChanged(e,t,s),n&&th is._effectEffects(e,t,n,s,r)),s},__setProperty:function(e,t,n,r){r=r||this;var s =r._propertyEffects&&r._propertyEffects[e];s?r._propertySetter(e,t,s,n):r[e]!==t &&(r[e]=t)},_effectEffects:function(e,t,n,r,s){for(var i,o=0,a=n.length;o<a&&(i= n[o]);o++)i.fn.call(this,e,this[e],i.effect,r,s)},_clearPath:function(e){for(var t in this.__data__)0===t.indexOf(e+".")&&(this.__data__[t]=void 0)}},ensureProp ertyEffects:function(e,t){e._propertyEffects||(e._propertyEffects={});var n=e._p ropertyEffects[t];return n||(n=e._propertyEffects[t]=[]),n},addPropertyEffect:fu nction(e,t,n,r){var s=this.ensurePropertyEffects(e,t),i={kind:n,effect:r,fn:Poly mer.Bind["_"+n+"Effect"]};return s.push(i),i},createBindings:function(e){var t=e ._propertyEffects;if(t)for(var n in t){var r=t[n];r.sort(this._sortPropertyEffec ts),this._createAccessors(e,n,r)}},_sortPropertyEffects:function(){var e={comput e:0,annotation:1,annotatedComputation:2,reflect:3,notify:4,observer:5,complexObs erver:6,function:7};return function(t,n){return e[t.kind]-e[n.kind]}}(),_createA ccessors:function(e,t,n){var r={get:function(){return this.__data__[t]}},s=funct ion(e){this._propertySetter(t,e,n)},i=e.getPropertyInfo&&e.getPropertyInfo(t);i& &i.readOnly?i.computed||(e["_set"+this.upper(t)]=s):r.set=s,Object.definePropert y(e,t,r)},upper:function(e){return e[0].toUpperCase()+e.substring(1)},_addAnnota tedListener:function(e,t,n,r,s,i){e._bindListeners||(e._bindListeners=[]);var o= this._notedListenerFactory(n,r,this._isStructured(r),i),a=s||Polymer.CaseMap.cam elToDashCase(n)+"-changed";e._bindListeners.push({index:t,property:n,path:r,chan gedFn:o,event:a})},_isStructured:function(e){return e.indexOf(".")>0},_isEventBo gus:function(e,t){return e.path&&e.path[0]!==t},_notedListenerFactory:function(e ,t,n,r){return function(s,i,o){o?this._notifyPath(this._fixPath(t,e,o),i):(i=s[e ],r&&(i=!i),n?this.__data__[t]!=i&&this.set(t,i):this[t]=i)}},prepareInstance:fu nction(e){e.__data__=Object.create(null)},setupBindListeners:function(e){for(var t,n=e._bindListeners,r=0,s=n.length;r<s&&(t=n[r]);r++){var i=e._nodes[t.index]; this._addNotifyListener(i,e,t.event,t.changedFn)}},_addNotifyListener:function(e ,t,n,r){e.addEventListener(n,function(e){return t._notifyListener(r,e)})}},Polym er.Base.extend(Polymer.Bind,{_shouldAddListener:function(e){return e.name&&"attr ibute"!=e.kind&&"text"!=e.kind&&!e.isCompound&&"{"===e.parts[0].mode},_annotatio nEffect:function(e,t,n){e!=n.value&&(t=this._get(n.value),this.__data__[n.value] =t),this._applyEffectValue(n,t)},_reflectEffect:function(e,t,n){this.reflectProp ertyToAttribute(e,n.attribute,t)},_notifyEffect:function(e,t,n,r,s){s||this._not ifyChange(e,n.event,t)},_functionEffect:function(e,t,n,r,s){n.call(this,e,t,r,s) },_observerEffect:function(e,t,n,r){var s=this[n.method];s?s.call(this,t,r):this ._warn(this._logf("_observerEffect","observer method `"+n.method+"` not defined" ))},_complexObserverEffect:function(e,t,n){var r=this[n.method];if(r){var s=Poly mer.Bind._marshalArgs(this.__data__,n,e,t);s&&r.apply(this,s)}else n.dynamicFn|| this._warn(this._logf("_complexObserverEffect","observer method `"+n.method+"` n ot defined"))},_computeEffect:function(e,t,n){var r=this[n.method];if(r){var s=P olymer.Bind._marshalArgs(this.__data__,n,e,t);if(s){var i=r.apply(this,s);this._ _setProperty(n.name,i)}}else n.dynamicFn||this._warn(this._logf("_computeEffect" ,"compute method `"+n.method+"` not defined"))},_annotatedComputationEffect:func tion(e,t,n){var r=this._rootDataHost||this,s=r[n.method];if(s){var i=Polymer.Bin d._marshalArgs(this.__data__,n,e,t);if(i){var o=s.apply(r,i);this._applyEffectVa lue(n,o)}}else n.dynamicFn||r._warn(r._logf("_annotatedComputationEffect","compu te method `"+n.method+"` not defined"))},_marshalArgs:function(e,t,n,r){for(var s=[],i=t.args,o=i.length>1||t.dynamicFn,a=0,l=i.length;a<l;a++){var h,c=i[a],u=c .name;if(c.literal?h=c.value:n===u?h=r:(h=e[u],void 0===h&&c.structured&&(h=Poly mer.Base._get(u,e))),o&&void 0===h)return;if(c.wildcard){var f=0===n.indexOf(u+" .");s[a]={path:f?n:u,value:f?r:h,base:h}}else s[a]=h}return s}}),Polymer.Base._a ddFeature({_addPropertyEffect:function(e,t,n){var r=Polymer.Bind.addPropertyEffe ct(this,e,t,n);r.pathFn=this["_"+r.kind+"PathEffect"]},_prepEffects:function(){P olymer.Bind.prepareModel(this),this._addAnnotationEffects(this._notes)},_prepBin dings:function(){Polymer.Bind.createBindings(this)},_addPropertyEffects:function (e){if(e)for(var t in e){var n=e[t];if(n.observer&&this._addObserverEffect(t,n.o bserver),n.computed&&(n.readOnly=!0,this._addComputedEffect(t,n.computed)),n.not ify&&this._addPropertyEffect(t,"notify",{event:Polymer.CaseMap.camelToDashCase(t )+"-changed"}),n.reflectToAttribute){var r=Polymer.CaseMap.camelToDashCase(t);"- "===r[0]?this._warn(this._logf("_addPropertyEffects","Property "+t+" cannot be r eflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.')):this._addPropertyEffec t(t,"reflect",{attribute:r})}n.readOnly&&Polymer.Bind.ensurePropertyEffects(this ,t)}},_addComputedEffect:function(e,t){for(var n,r=this._parseMethod(t),s=r.dyna micFn,i=0;i<r.args.length&&(n=r.args[i]);i++)this._addPropertyEffect(n.model,"co mpute",{method:r.method,args:r.args,trigger:n,name:e,dynamicFn:s});s&&this._addP ropertyEffect(r.method,"compute",{method:r.method,args:r.args,trigger:null,name: e,dynamicFn:s})},_addObserverEffect:function(e,t){this._addPropertyEffect(e,"obs erver",{method:t,property:e})},_addComplexObserverEffects:function(e){if(e)for(v ar t,n=0;n<e.length&&(t=e[n]);n++)this._addComplexObserverEffect(t)},_addComplex ObserverEffect:function(e){var t=this._parseMethod(e);if(!t)throw new Error("Mal formed observer expression '"+e+"'");for(var n,r=t.dynamicFn,s=0;s<t.args.length &&(n=t.args[s]);s++)this._addPropertyEffect(n.model,"complexObserver",{method:t. method,args:t.args,trigger:n,dynamicFn:r});r&&this._addPropertyEffect(t.method," complexObserver",{method:t.method,args:t.args,trigger:null,dynamicFn:r})},_addAn notationEffects:function(e){for(var t,n=0;n<e.length&&(t=e[n]);n++)for(var r,s=t .bindings,i=0;i<s.length&&(r=s[i]);i++)this._addAnnotationEffect(r,n)},_addAnnot ationEffect:function(e,t){Polymer.Bind._shouldAddListener(e)&&Polymer.Bind._addA nnotatedListener(this,t,e.name,e.parts[0].value,e.parts[0].event,e.parts[0].nega te);for(var n=0;n<e.parts.length;n++){var r=e.parts[n];r.signature?this._addAnno tatedComputationEffect(e,r,t):r.literal||("attribute"===e.kind&&"-"===e.name[0]? this._warn(this._logf("_addAnnotationEffect","Cannot set attribute "+e.name+' be cause "-" is not a valid attribute starting character')):this._addPropertyEffect (r.model,"annotation",{kind:e.kind,index:t,name:e.name,propertyName:e.propertyNa me,value:r.value,isCompound:e.isCompound,compoundIndex:r.compoundIndex,event:r.e vent,customEvent:r.customEvent,negate:r.negate}))}},_addAnnotatedComputationEffe ct:function(e,t,n){var r=t.signature;if(r.static)this.__addAnnotatedComputationE ffect("__static__",n,e,t,null);else{for(var s,i=0;i<r.args.length&&(s=r.args[i]) ;i++)s.literal||this.__addAnnotatedComputationEffect(s.model,n,e,t,s);r.dynamicF n&&this.__addAnnotatedComputationEffect(r.method,n,e,t,null)}},__addAnnotatedCom putationEffect:function(e,t,n,r,s){this._addPropertyEffect(e,"annotatedComputati on",{index:t,isCompound:n.isCompound,compoundIndex:r.compoundIndex,kind:n.kind,n ame:n.name,negate:r.negate,method:r.signature.method,args:r.signature.args,trigg er:s,dynamicFn:r.signature.dynamicFn})},_parseMethod:function(e){var t=e.match(/ ([^\s]+?)\(([\s\S]*)\)/);if(t){var n={method:t[1],static:!0};if(this.getProperty Info(n.method)!==Polymer.nob&&(n.static=!1,n.dynamicFn=!0),t[2].trim()){var r=t[ 2].replace(/\\,/g,"&comma;").split(",");return this._parseArgs(r,n)}return n.arg s=Polymer.nar,n}},_parseArgs:function(e,t){return t.args=e.map(function(e){var n =this._parseArg(e);return n.literal||(t.static=!1),n},this),t},_parseArg:functio n(e){var t=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),n={name:t},r= t[0];switch("-"===r&&(r=t[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':n.value =t.slice(1,-1),n.literal=!0;break;case"#":n.value=Number(t),n.literal=!0}return n.literal||(n.model=this._modelForPath(t),n.structured=t.indexOf(".")>0,n.struct ured&&(n.wildcard=".*"==t.slice(-2),n.wildcard&&(n.name=t.slice(0,-2)))),n},_mar shalInstanceEffects:function(){Polymer.Bind.prepareInstance(this),this._bindList eners&&Polymer.Bind.setupBindListeners(this)},_applyEffectValue:function(e,t){va r n=this._nodes[e.index],r=e.name;if(t=this._computeFinalAnnotationValue(n,r,t,e ),"attribute"==e.kind)this.serializeValueToAttribute(t,r,n);else{var s=n._proper tyInfo&&n._propertyInfo[r];if(s&&s.readOnly)return;this.__setProperty(r,t,!1,n)} },_computeFinalAnnotationValue:function(e,t,n,r){if(r.negate&&(n=!n),r.isCompoun d){var s=e.__compoundStorage__[t];s[r.compoundIndex]=n,n=s.join("")}return"attri bute"!==r.kind&&("className"===t&&(n=this._scopeElementClass(e,n)),("textContent "===t||"input"==e.localName&&"value"==t)&&(n=void 0==n?"":n)),n},_executeStaticE ffects:function(){this._propertyEffects&&this._propertyEffects.__static__&&this. _effectEffects("__static__",null,this._propertyEffects.__static__)}}),function() {var e=Polymer.Settings.usePolyfillProto;Polymer.Base._addFeature({_setupConfigu re:function(e){if(this._config={},this._handlers=[],this._aboveConfig=null,e)for (var t in e)void 0!==e[t]&&(this._config[t]=e[t])},_marshalAttributes:function() {this._takeAttributesToModel(this._config)},_attributeChangedImpl:function(e){va r t=this._clientsReadied?this:this._config;this._setAttributeToProperty(t,e)},_c onfigValue:function(e,t){var n=this._propertyInfo[e];n&&n.readOnly||(this._confi g[e]=t)},_beforeClientsReady:function(){this._configure()},_configure:function() {this._configureAnnotationReferences(),this._configureInstanceProperties(),this. _aboveConfig=this.mixin({},this._config);for(var e={},t=0;t<this.behaviors.lengt h;t++)this._configureProperties(this.behaviors[t].properties,e);this._configureP roperties(this.properties,e),this.mixin(e,this._aboveConfig),this._config=e,this ._clients&&this._clients.length&&this._distributeConfig(this._config)},_configur eInstanceProperties:function(){for(var t in this._propertyEffects)!e&&this.hasOw nProperty(t)&&(this._configValue(t,this[t]),delete this[t])},_configurePropertie s:function(e,t){for(var n in e){var r=e[n];if(void 0!==r.value){var s=r.value;"f unction"==typeof s&&(s=s.call(this,this._config)),t[n]=s}}},_distributeConfig:fu nction(e){var t=this._propertyEffects;if(t)for(var n in e){var r=t[n];if(r)for(v ar s,i=0,o=r.length;i<o&&(s=r[i]);i++)if("annotation"===s.kind){var a=this._node s[s.effect.index],l=s.effect.propertyName,h="attribute"==s.effect.kind,c=a._prop ertyEffects&&a._propertyEffects[l];if(a._configValue&&(c||!h)){var u=n===s.effec t.value?e[n]:this._get(s.effect.value,e);u=this._computeFinalAnnotationValue(a,l ,u,s.effect),h&&(u=a.deserialize(this.serialize(u),a._propertyInfo[l].type)),a._ configValue(l,u)}}}},_afterClientsReady:function(){this._executeStaticEffects(), this._applyConfig(this._config,this._aboveConfig),
3 },_notifyListener:function(e,t){if(!Polymer.Bind._isEventBogus(t,t.target)){var n,r;if(t.detail&&(n=t.detail.value,r=t.detail.path),this._clientsReadied)return e.call(this,t.target,n,r);this._queueHandler([e,t.target,n,r])}},_queueHandler:f unction(e){this._handlers.push(e)},_flushHandlers:function(){for(var e,t=this._h andlers,n=0,r=t.length;n<r&&(e=t[n]);n++)e[0].call(this,e[1],e[2],e[3]);this._ha ndlers=[]}})}(),function(){"use strict";Polymer.Base._addFeature({notifyPath:fun ction(e,t,n){var r={},s=this._get(e,this,r);1===arguments.length&&(t=s),r.path&& this._notifyPath(r.path,t,n)},_notifyPath:function(e,t,n){var r=this._propertySe tter(e,t);if(r!==t&&(r===r||t===t))return this._pathEffector(e,t),n||this._notif yPathUp(e,t),!0},_getPathParts:function(e){if(Array.isArray(e)){for(var t=[],n=0 ;n<e.length;n++)for(var r=e[n].toString().split("."),s=0;s<r.length;s++)t.push(r [s]);return t}return e.toString().split(".")},set:function(e,t,n){var r,s=n||thi s,i=this._getPathParts(e),o=i[i.length-1];if(i.length>1){for(var a=0;a<i.length- 1;a++){var l=i[a];if(r&&"#"==l[0]?s=Polymer.Collection.get(r).getItem(l):(s=s[l] ,r&&parseInt(l,10)==l&&(i[a]=Polymer.Collection.get(r).getKey(s))),!s)return;r=A rray.isArray(s)?s:null}if(r){var h,c,u=Polymer.Collection.get(r);"#"==o[0]?(c=o, h=u.getItem(c),o=r.indexOf(h),u.setItem(c,t)):parseInt(o,10)==o&&(h=s[o],c=u.get Key(h),i[a]=c,u.setItem(c,t))}s[o]=t,n||this._notifyPath(i.join("."),t)}else s[e ]=t},get:function(e,t){return this._get(e,t)},_get:function(e,t,n){for(var r,s=t ||this,i=this._getPathParts(e),o=0;o<i.length;o++){if(!s)return;var a=i[o];r&&"# "==a[0]?s=Polymer.Collection.get(r).getItem(a):(s=s[a],n&&r&&parseInt(a,10)==a&& (i[o]=Polymer.Collection.get(r).getKey(s))),r=Array.isArray(s)?s:null}return n&& (n.path=i.join(".")),s},_pathEffector:function(e,t){var n=this._modelForPath(e), r=this._propertyEffects&&this._propertyEffects[n];if(r)for(var s,i=0;i<r.length& &(s=r[i]);i++){var o=s.pathFn;o&&o.call(this,e,t,s.effect)}this._boundPaths&&thi s._notifyBoundPaths(e,t)},_annotationPathEffect:function(e,t,n){if(n.value===e|| 0===n.value.indexOf(e+"."))Polymer.Bind._annotationEffect.call(this,e,t,n);else if(0===e.indexOf(n.value+".")&&!n.negate){var r=this._nodes[n.index];if(r&&r._no tifyPath){var s=this._fixPath(n.name,n.value,e);r._notifyPath(s,t,!0)}}},_comple xObserverPathEffect:function(e,t,n){this._pathMatchesEffect(e,n)&&Polymer.Bind._ complexObserverEffect.call(this,e,t,n)},_computePathEffect:function(e,t,n){this. _pathMatchesEffect(e,n)&&Polymer.Bind._computeEffect.call(this,e,t,n)},_annotate dComputationPathEffect:function(e,t,n){this._pathMatchesEffect(e,n)&&Polymer.Bin d._annotatedComputationEffect.call(this,e,t,n)},_pathMatchesEffect:function(e,t) {var n=t.trigger.name;return n==e||0===n.indexOf(e+".")||t.trigger.wildcard&&0== =e.indexOf(n+".")},linkPaths:function(e,t){this._boundPaths=this._boundPaths||{} ,t?this._boundPaths[e]=t:this.unlinkPaths(e)},unlinkPaths:function(e){this._boun dPaths&&delete this._boundPaths[e]},_notifyBoundPaths:function(e,t){for(var n in this._boundPaths){var r=this._boundPaths[n];0==e.indexOf(n+".")?this._notifyPat h(this._fixPath(r,n,e),t):0==e.indexOf(r+".")&&this._notifyPath(this._fixPath(n, r,e),t)}},_fixPath:function(e,t,n){return e+n.slice(t.length)},_notifyPathUp:fun ction(e,t){var n=this._modelForPath(e),r=Polymer.CaseMap.camelToDashCase(n),s=r+ this._EVENT_CHANGED;this.fire(s,{path:e,value:t},{bubbles:!1,_useCache:!0})},_mo delForPath:function(e){var t=e.indexOf(".");return t<0?e:e.slice(0,t)},_EVENT_CH ANGED:"-changed",notifySplices:function(e,t){var n={},r=this._get(e,this,n);this ._notifySplices(r,n.path,t)},_notifySplices:function(e,t,n){var r={keySplices:Po lymer.Collection.applySplices(e,n),indexSplices:n},s=t+".splices";this._notifyPa th(s,r),this._notifyPath(t+".length",e.length),this.__data__[s]={keySplices:null ,indexSplices:null}},_notifySplice:function(e,t,n,r,s){this._notifySplices(e,t,[ {index:n,addedCount:r,removed:s,object:e,type:"splice"}])},push:function(e){var t={},n=this._get(e,this,t),r=Array.prototype.slice.call(arguments,1),s=n.length, i=n.push.apply(n,r);return r.length&&this._notifySplice(n,t.path,s,r.length,[]), i},pop:function(e){var t={},n=this._get(e,this,t),r=Boolean(n.length),s=Array.pr ototype.slice.call(arguments,1),i=n.pop.apply(n,s);return r&&this._notifySplice( n,t.path,n.length,0,[i]),i},splice:function(e,t){var n={},r=this._get(e,this,n); t=t<0?r.length-Math.floor(-t):Math.floor(t),t||(t=0);var s=Array.prototype.slice .call(arguments,1),i=r.splice.apply(r,s),o=Math.max(s.length-2,0);return(o||i.le ngth)&&this._notifySplice(r,n.path,t,o,i),i},shift:function(e){var t={},n=this._ get(e,this,t),r=Boolean(n.length),s=Array.prototype.slice.call(arguments,1),i=n. shift.apply(n,s);return r&&this._notifySplice(n,t.path,0,0,[i]),i},unshift:funct ion(e){var t={},n=this._get(e,this,t),r=Array.prototype.slice.call(arguments,1), s=n.unshift.apply(n,r);return r.length&&this._notifySplice(n,t.path,0,r.length,[ ]),s},prepareModelNotifyPath:function(e){this.mixin(e,{fire:Polymer.Base.fire,_g etEvent:Polymer.Base._getEvent,__eventCache:Polymer.Base.__eventCache,notifyPath :Polymer.Base.notifyPath,_get:Polymer.Base._get,_EVENT_CHANGED:Polymer.Base._EVE NT_CHANGED,_notifyPath:Polymer.Base._notifyPath,_notifyPathUp:Polymer.Base._noti fyPathUp,_pathEffector:Polymer.Base._pathEffector,_annotationPathEffect:Polymer. Base._annotationPathEffect,_complexObserverPathEffect:Polymer.Base._complexObser verPathEffect,_annotatedComputationPathEffect:Polymer.Base._annotatedComputation PathEffect,_computePathEffect:Polymer.Base._computePathEffect,_modelForPath:Poly mer.Base._modelForPath,_pathMatchesEffect:Polymer.Base._pathMatchesEffect,_notif yBoundPaths:Polymer.Base._notifyBoundPaths,_getPathParts:Polymer.Base._getPathPa rts})}})}(),Polymer.Base._addFeature({resolveUrl:function(e){var t=Polymer.DomMo dule.import(this.is),n="";if(t){var r=t.getAttribute("assetpath")||"";n=Polymer. ResolveUrl.resolveUrl(r,t.ownerDocument.baseURI)}return Polymer.ResolveUrl.resol veUrl(e,n)}}),Polymer.CssParse=function(){return{parse:function(e){return e=this ._clean(e),this._parseCss(this._lex(e),e)},_clean:function(e){return e.replace(t his._rx.comments,"").replace(this._rx.port,"")},_lex:function(e){for(var t={star t:0,end:e.length},n=t,r=0,s=e.length;r<s;r++)switch(e[r]){case this.OPEN_BRACE:n .rules||(n.rules=[]);var i=n,o=i.rules[i.rules.length-1];n={start:r+1,parent:i,p revious:o},i.rules.push(n);break;case this.CLOSE_BRACE:n.end=r+1,n=n.parent||t}r eturn t},_parseCss:function(e,t){var n=t.substring(e.start,e.end-1);if(e.parsedC ssText=e.cssText=n.trim(),e.parent){var r=e.previous?e.previous.end:e.parent.sta rt;n=t.substring(r,e.start-1),n=this._expandUnicodeEscapes(n),n=n.replace(this._ rx.multipleSpaces," "),n=n.substring(n.lastIndexOf(";")+1);var s=e.parsedSelecto r=e.selector=n.trim();e.atRule=0===s.indexOf(this.AT_START),e.atRule?0===s.index Of(this.MEDIA_START)?e.type=this.types.MEDIA_RULE:s.match(this._rx.keyframesRule )&&(e.type=this.types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(this._rx.m ultipleSpaces).pop()):0===s.indexOf(this.VAR_START)?e.type=this.types.MIXIN_RULE :e.type=this.types.STYLE_RULE}var i=e.rules;if(i)for(var o,a=0,l=i.length;a<l&&( o=i[a]);a++)this._parseCss(o,t);return e},_expandUnicodeEscapes:function(e){retu rn e.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var e=arguments[1],t=6-e.len gth;t--;)e="0"+e;return"\\"+e})},stringify:function(e,t,n){n=n||"";var r="";if(e .cssText||e.rules){var s=e.rules;if(s&&!this._hasMixinRules(s))for(var i,o=0,a=s .length;o<a&&(i=s[o]);o++)r=this.stringify(i,t,r);else r=t?e.cssText:this.remove CustomProps(e.cssText),r=r.trim(),r&&(r=" "+r+"\n")}return r&&(e.selector&&(n+= e.selector+" "+this.OPEN_BRACE+"\n"),n+=r,e.selector&&(n+=this.CLOSE_BRACE+"\n\n ")),n},_hasMixinRules:function(e){return 0===e[0].selector.indexOf(this.VAR_STAR T)},removeCustomProps:function(e){return e=this.removeCustomPropAssignment(e),th is.removeCustomPropApply(e)},removeCustomPropAssignment:function(e){return e.rep lace(this._rx.customProp,"").replace(this._rx.mixinProp,"")},removeCustomPropApp ly:function(e){return e.replace(this._rx.mixinApply,"").replace(this._rx.varAppl y,"")},types:{STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BR ACE:"{",CLOSE_BRACE:"}",_rx:{comments:/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//gim,port: /@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gi m,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinAp ply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]* \)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_ START:"--",MEDIA_START:"@media",AT_START:"@"}}(),Polymer.StyleUtil=function(){va r e=Polymer.Settings;return{NATIVE_VARIABLES:Polymer.Settings.useNativeCSSProper ties,MODULE_STYLES_SELECTOR:"style, link[rel=import][type~=css], template",INCLU DE_ATTR:"include",toCssText:function(e,t){return"string"==typeof e&&(e=this.pars er.parse(e)),t&&this.forEachRule(e,t),this.parser.stringify(e,this.NATIVE_VARIAB LES)},forRulesInStyles:function(e,t,n){if(e)for(var r,s=0,i=e.length;s<i&&(r=e[s ]);s++)this.forEachRuleInStyle(r,t,n)},forActiveRulesInStyles:function(e,t,n){if (e)for(var r,s=0,i=e.length;s<i&&(r=e[s]);s++)this.forEachRuleInStyle(r,t,n,!0)} ,rulesForStyle:function(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=thi s.parser.parse(e.textContent)),e.__cssRules},isKeyframesSelector:function(e){ret urn e.parent&&e.parent.type===this.ruleTypes.KEYFRAMES_RULE},forEachRuleInStyle: function(e,t,n,r){var s,i,o=this.rulesForStyle(e);t&&(s=function(n){t(n,e)}),n&& (i=function(t){n(t,e)}),this.forEachRule(o,s,i,r)},forEachRule:function(e,t,n,r) {if(e){var s=!1;if(r&&e.type===this.ruleTypes.MEDIA_RULE){var i=e.selector.match (this.rx.MEDIA_MATCH);i&&(window.matchMedia(i[1]).matches||(s=!0))}e.type===this .ruleTypes.STYLE_RULE?t(e):n&&e.type===this.ruleTypes.KEYFRAMES_RULE?n(e):e.type ===this.ruleTypes.MIXIN_RULE&&(s=!0);var o=e.rules;if(o&&!s)for(var a,l=0,h=o.le ngth;l<h&&(a=o[l]);l++)this.forEachRule(a,t,n,r)}},applyCss:function(e,t,n,r){va r s=this.createScopeStyle(e,t);return this.applyStyle(s,n,r)},applyStyle:functio n(e,t,n){t=t||document.head;var r=n&&n.nextSibling||t.firstChild;return this.__l astHeadApplyNode=e,t.insertBefore(e,r)},createScopeStyle:function(e,t){var n=doc ument.createElement("style");return t&&n.setAttribute("scope",t),n.textContent=e ,n},__lastHeadApplyNode:null,applyStylePlaceHolder:function(e){var t=document.cr eateComment(" Shady DOM styles for "+e+" "),n=this.__lastHeadApplyNode?this.__la stHeadApplyNode.nextSibling:null,r=document.head;return r.insertBefore(t,n||r.fi rstChild),this.__lastHeadApplyNode=t,t},cssFromModules:function(e,t){for(var n=e .trim().split(" "),r="",s=0;s<n.length;s++)r+=this.cssFromModule(n[s],t);return r},cssFromModule:function(e,t){var n=Polymer.DomModule.import(e);return n&&!n._c ssText&&(n._cssText=this.cssFromElement(n)),!n&&t&&console.warn("Could not find style data in module named",e),n&&n._cssText||""},cssFromElement:function(e){for (var t,n="",r=e.content||e,s=Polymer.TreeApi.arrayCopy(r.querySelectorAll(this.M ODULE_STYLES_SELECTOR)),i=0;i<s.length;i++)if(t=s[i],"template"===t.localName)n+ =this.cssFromElement(t);else if("style"===t.localName){var o=t.getAttribute(this .INCLUDE_ATTR);o&&(n+=this.cssFromModules(o,!0)),t=t.__appliedElement||t,t.paren tNode.removeChild(t),n+=this.resolveCss(t.textContent,e.ownerDocument)}else t.im port&&t.import.body&&(n+=this.resolveCss(t.import.body.textContent,t.import));re turn n},isTargetedBuild:function(t){return e.useNativeShadow?"shadow"===t:"shady "===t},cssBuildTypeForModule:function(e){var t=Polymer.DomModule.import(e);if(t) return this.getCssBuildType(t)},getCssBuildType:function(e){return e.getAttribut e("css-build")},rx:{VAR_ASSIGN:/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:([^;{]*)|{([ ^}]*)})(?:(?=[;\s}])|$)/gi,MIXIN_MATCH:/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,VA R_MATCH:/(^|\W+)var\([\s]*([^,)]*)[\s]*,?[\s]*((?:[^,()]*)|(?:[^;()]*\([^;)]*\)+ ))[\s]*?\)/gi,VAR_CONSUMED:/(--[\w-]+)\s*([:,;)]|$)/gi,ANIMATION_MATCH:/(animati on\s*:)|(animation-name\s*:)/,MEDIA_MATCH:/@media[^(]*(\([^)]*\))/,IS_VAR:/^--/, BRACKETED:/\{[^}]*\}/g,HOST_PREFIX:"(?:^|[^.#[:])",HOST_SUFFIX:"($|[.:[\\s>+~])" },resolveCss:Polymer.ResolveUrl.resolveCss,parser:Polymer.CssParse,ruleTypes:Pol ymer.CssParse.types}}(),Polymer.StyleTransformer=function(){var e=Polymer.StyleU til,t=Polymer.Settings,n={dom:function(e,t,n,r){this._transformDom(e,t||"",n,r)} ,_transformDom:function(e,t,n,r){e.setAttribute&&this.element(e,t,n,r);for(var s =Polymer.dom(e).childNodes,i=0;i<s.length;i++)this._transformDom(s[i],t,n,r)},el ement:function(e,t,n,s){if(n)s?e.removeAttribute(r):e.setAttribute(r,t);else if( t)if(e.classList)s?(e.classList.remove(r),e.classList.remove(t)):(e.classList.ad d(r),e.classList.add(t));else if(e.getAttribute){var i=e.getAttribute(g);s?i&&e. setAttribute(g,i.replace(r,"").replace(t,"")):e.setAttribute(g,(i?i+" ":"")+r+" "+t)}},elementStyles:function(n,r){for(var s,i=n._styles,o="",a=n.__cssBuild,l=0 ,h=i.length;l<h&&(s=i[l]);l++){var c=e.rulesForStyle(s);o+=t.useNativeShadow||"s hady"===a?e.toCssText(c,r):this.css(c,n.is,n.extends,r,n._scopeCssViaAttr)+"\n\n "}return o.trim()},css:function(t,n,r,s,i){var o=this._calcHostScope(n,r);n=this ._calcElementScope(n,i);var a=this;return e.toCssText(t,function(e){e.isScoped|| (a.rule(e,n,o),e.isScoped=!0),s&&s(e,n,o)})},_calcElementScope:function(e,t){ret urn e?t?m+e+y:d+e:""},_calcHostScope:function(e,t){return t?"[is="+e+"]":e},rule :function(e,t,n){this._transformRule(e,this._transformComplexSelector,t,n)},_tra nsformRule:function(e,t,n,r){e.selector=e.transformedSelector=this._transformRul eCss(e,t,n,r)},_transformRuleCss:function(t,n,r,s){var o=t.selector.split(i);if( !e.isKeyframesSelector(t))for(var a,l=0,h=o.length;l<h&&(a=o[l]);l++)o[l]=n.call (this,a,r,s);return o.join(i)},_transformComplexSelector:function(e,t,n){var r=! 1,s=!1,a=this;return e=e.trim(),e=e.replace(P,l+" $1"),e=e.replace(o,function(e, i,o){if(r)o=o.replace(_," ");else{var l=a._transformCompoundSelector(o,i,t,n);r= r||l.stop,s=s||l.hostContext,i=l.combinator,o=l.value}return i+o}),s&&(e=e.repla ce(f,function(e,t,r,s){return t+r+" "+n+s+i+" "+t+n+r+s})),e},_transformCompound Selector:function(e,t,n,r){var s=e.search(_),i=!1;e.indexOf(u)>=0?i=!0:e.indexOf (l)>=0?e=this._transformHostSelector(e,r):0!==s&&(e=n?this._transformSimpleSelec tor(e,n):e),e.indexOf(p)>=0&&(t="");var o;return s>=0&&(e=e.replace(_," "),o=!0) ,{value:e,combinator:t,stop:o,hostContext:i}},_transformSimpleSelector:function( e,t){var n=e.split(v);return n[0]+=t,n.join(v)},_transformHostSelector:function( e,t){var n=e.match(c),r=n&&n[2].trim()||"";if(r){if(r[0].match(a))return e.repla ce(c,function(e,n,r){return t+r});var s=r.split(a)[0];return s===t?r:S}return e. replace(l,t)},documentRule:function(e){e.selector=e.parsedSelector,this.normaliz eRootSelector(e),t.useNativeShadow||this._transformRule(e,this._transformDocumen tSelector)},normalizeRootSelector:function(e){e.selector===h&&(e.selector="html" )},_transformDocumentSelector:function(e){return e.match(_)?this._transformCompl exSelector(e,s):this._transformSimpleSelector(e.trim(),s)},SCOPE_NAME:"style-sco pe"},r=n.SCOPE_NAME,s=":not(["+r+"]):not(."+r+")",i=",",o=/(^|[\s>+~]+)((?:\[.+? \]|[^\s>+~=\[])+)/g,a=/[[.:#*]/,l=":host",h=":root",c=/(:host)(?:\(((?:\([^)(]*\ )|[^)(]*)+?)\))/,u=":host-context",f=/(.*)(?::host-context)(?:\(((?:\([^)(]*\)|[ ^)(]*)+?)\))(.*)/,p="::content",_=/::content|::shadow|\/deep\//,d=".",m="["+r+"~ =",y="]",v=":",g="class",P=new RegExp("^("+p+")"),S="should_not_match";return n} (),Polymer.StyleExtends=function(){var e=Polymer.StyleUtil;return{hasExtends:fun ction(e){return Boolean(e.match(this.rx.EXTEND))},transform:function(t){var n=e. rulesForStyle(t),r=this;return e.forEachRule(n,function(e){if(r._mapRuleOntoPare nt(e),e.parent)for(var t;t=r.rx.EXTEND.exec(e.cssText);){var n=t[1],s=r._findExt endor(n,e);s&&r._extendRule(e,s)}e.cssText=e.cssText.replace(r.rx.EXTEND,"")}),e .toCssText(n,function(e){e.selector.match(r.rx.STRIP)&&(e.cssText="")},!0)},_map RuleOntoParent:function(e){if(e.parent){for(var t,n=e.parent.map||(e.parent.map= {}),r=e.selector.split(","),s=0;s<r.length;s++)t=r[s],n[t.trim()]=e;return n}},_ findExtendor:function(e,t){return t.parent&&t.parent.map&&t.parent.map[e]||this. _findExtendor(e,t.parent)},_extendRule:function(e,t){e.parent!==t.parent&&this._ cloneAndAddRuleToParent(t,e.parent),e.extends=e.extends||[],e.extends.push(t),t. selector=t.selector.replace(this.rx.STRIP,""),t.selector=(t.selector&&t.selector +",\n")+e.selector,t.extends&&t.extends.forEach(function(t){this._extendRule(e,t )},this)},_cloneAndAddRuleToParent:function(e,t){e=Object.create(e),e.parent=t,e .extends&&(e.extends=e.extends.slice()),t.rules.push(e)},rx:{EXTEND:/@extends\(( [^)]*)\)\s*?;/gim,STRIP:/%[^,]*$/}}}(),Polymer.ApplyShim=function(){"use strict" ;function e(e,t){e=e.trim(),p[e]=t}function t(e){return e=e.trim(),p[e]}function n(e){for(var t,n,r=e.split(";"),s={},i=0;i<r.length;i++)t=r[i],t&&(n=t.split(": "),n.length>1&&(s[n[0].trim()]=n.slice(1).join(":")));return s}function r(r,s,i, a){if(i){c.lastIndex=0;var l=c.exec(i);if(l){var h=l[2];t(h)&&(a="@apply "+h+";" )}}if(!a)return r;var u=o(a),p=r.slice(0,r.indexOf("--")),_=n(u),d=t(s),m=_;d?m= Polymer.Base.mixin(d,_):e(s,m);var y,v,g=[];for(y in m)v=_[y],void 0===v&&(v="in itial"),g.push(s+f+y+": "+v);return p+g.join("; ")+";"}function s(e,t,n,r){retur n r&&0===r.indexOf("--")?[t,"var(",n,", var(",r,"));"].join(""):e}function i(e,n ){e=e.replace(u,"");var r=[],s=t(e);if(s){var i,o,a;for(i in s)a=n&&n[i],o=[i,": var(",e,f,i],a&&o.push(",",a),o.push(")"),r.push(o.join(""))}return r.join("; " )}function o(e){for(var t;t=l.exec(e);){var r=t[0],s=t[1],o=t.index,a=o+r.indexO f("@apply"),h=o+r.length,c=e.slice(0,a),u=e.slice(h),f=n(c),p=i(s,f);e=[c,p,u].j oin(""),l.lastIndex=o+p.length}return e}var a=Polymer.StyleUtil,l=a.rx.MIXIN_MAT CH,h=a.rx.VAR_ASSIGN,c=a.rx.VAR_MATCH,u=/;\s*/m,f="_-_",p={},_={_map:p,_separato r:f,transform:function(e){a.forRulesInStyles(e,this._boundTransformRule)},transf ormRule:function(e){e.cssText=this.transformCssText(e.parsedCssText),":root"===e .selector&&(e.selector=":host > *")},transformCssText:function(e){return e=e.rep lace(c,s),e=e.replace(h,r),o(e)}};return _._boundTransformRule=_.transformRule.b ind(_),_}(),function(){var e=Polymer.Base._prepElement,t=Polymer.Settings.useNat iveShadow,n=Polymer.StyleUtil,r=Polymer.StyleTransformer,s=Polymer.StyleExtends, i=Polymer.ApplyShim,o=Polymer.Settings;Polymer.Base._addFeature({_prepElement:fu nction(t){this._encapsulateStyle&&"shady"!==this.__cssBuild&&r.element(t,this.is ,this._scopeCssViaAttr),e.call(this,t)},_prepStyles:function(){void 0===this._en capsulateStyle&&(this._encapsulateStyle=!t),t||(this._scopeStyle=n.applyStylePla ceHolder(this.is)),this.__cssBuild=n.cssBuildTypeForModule(this.is)},_prepShimSt yles:function(){if(this._template){var e=n.isTargetedBuild(this.__cssBuild);if(o .useNativeCSSProperties&&"shadow"===this.__cssBuild&&e)return;this._styles=this. _styles||this._collectStyles(),o.useNativeCSSProperties&&!this.__cssBuild&&i.tra nsform(this._styles);var s=o.useNativeCSSProperties&&e?this._styles.length&&this ._styles[0].textContent.trim():r.elementStyles(this);this._prepStyleProperties() ,!this._needsStyleProperties()&&s&&n.applyCss(s,this.is,t?this._template.content :null,this._scopeStyle)}else this._styles=[]},_collectStyles:function(){var e=[] ,t="",r=this.styleModules;if(r)for(var i,o=0,a=r.length;o<a&&(i=r[o]);o++)t+=n.c ssFromModule(i);t+=n.cssFromModule(this.is);var l=this._template&&this._template .parentNode;if(!this._template||l&&l.id.toLowerCase()===this.is||(t+=n.cssFromEl ement(this._template)),t){var h=document.createElement("style");h.textContent=t, s.hasExtends(h.textContent)&&(t=s.transform(h)),e.push(h)}return e},_elementAdd: function(e){this._encapsulateStyle&&(e.__styleScoped?e.__styleScoped=!1:r.dom(e, this.is,this._scopeCssViaAttr))},_elementRemove:function(e){this._encapsulateSty le&&r.dom(e,this.is,this._scopeCssViaAttr,!0)},scopeSubtree:function(e,n){if(!t) {var r=this,s=function(e){if(e.nodeType===Node.ELEMENT_NODE){var t=e.getAttribut e("class");e.setAttribute("class",r._scopeElementClass(e,t));for(var n,s=e.query SelectorAll("*"),i=0;i<s.length&&(n=s[i]);i++)t=n.getAttribute("class"),n.setAtt ribute("class",r._scopeElementClass(n,t))}};if(s(e),n){var i=new MutationObserve r(function(e){for(var t,n=0;n<e.length&&(t=e[n]);n++)if(t.addedNodes)for(var r=0 ;r<t.addedNodes.length;r++)s(t.addedNodes[r])});return i.observe(e,{childList:!0 ,subtree:!0}),i}}}})}(),Polymer.StyleProperties=function(){"use strict";function e(e,t){var n=parseInt(e/32),r=1<<e%32;t[n]=(t[n]||0)|r}var t=Polymer.DomApi.mat chesSelector,n=Polymer.StyleUtil,r=Polymer.StyleTransformer,s=Polymer.Settings;r eturn{decorateStyles:function(e,t){var s=this,i={},o=[],a=0,l=r._calcHostScope(t .is,t.extends);n.forRulesInStyles(e,function(e,r){s.decorateRule(e),e.index=a++, s.whenHostOrRootRule(t,e,r,function(r){if(e.parent.type===n.ruleTypes.MEDIA_RULE &&(t.__notStyleScopeCacheable=!0),r.isHost){var s=r.selector.split(" ").some(fun ction(e){return 0===e.indexOf(l)&&e.length!==l.length});t.__notStyleScopeCacheab le=t.__notStyleScopeCacheable||s}}),s.collectPropertiesInCssText(e.propertyInfo. cssText,i)},function(e){o.push(e)}),e._keyframes=o;var h=[];for(var c in i)h.pus h(c);return h},decorateRule:function(e){if(e.propertyInfo)return e.propertyInfo; var t={},n={},r=this.collectProperties(e,n);return r&&(t.properties=n,e.rules=nu ll),t.cssText=this.collectCssText(e),e.propertyInfo=t,t},collectProperties:funct ion(e,t){var n=e.propertyInfo;if(!n){for(var r,s,i=this.rx.VAR_ASSIGN,o=e.parsed CssText;r=i.exec(o);)t[r[1].trim()]=(r[2]||r[3]).trim(),s=!0;return s}if(n.prope rties)return Polymer.Base.mixin(t,n.properties),!0},collectCssText:function(e){r eturn this.collectConsumingCssText(e.parsedCssText)},collectConsumingCssText:fun ction(e){return e.replace(this.rx.BRACKETED,"").replace(this.rx.VAR_ASSIGN,"")}, collectPropertiesInCssText:function(e,t){for(var n;n=this.rx.VAR_CONSUMED.exec(e );){var r=n[1];":"!==n[2]&&(t[r]=!0)}},reify:function(e){for(var t,n=Object.getO wnPropertyNames(e),r=0;r<n.length;r++)t=n[r],e[t]=this.valueForProperty(e[t],e)} ,valueForProperty:function(e,t){if(e)if(e.indexOf(";")>=0)e=this.valueForPropert ies(e,t);else{var n=this,r=function(e,r,s,i){var o=n.valueForProperty(t[s],t)||n .valueForProperty(t[i]||i,t)||i;return r+(o||"")};e=e.replace(this.rx.VAR_MATCH, r)}return e&&e.trim()||""},valueForProperties:function(e,t){for(var n,r,s=e.spli t(";"),i=0;i<s.length;i++)if(n=s[i]){if(this.rx.MIXIN_MATCH.lastIndex=0,r=this.r x.MIXIN_MATCH.exec(n))n=this.valueForProperty(t[r[1]],t);else{var o=n.indexOf(": ");if(o!==-1){var a=n.substring(o);a=a.trim(),a=this.valueForProperty(a,t)||a,n= n.substring(0,o)+a}}s[i]=n&&n.lastIndexOf(";")===n.length-1?n.slice(0,-1):n||""} return s.join(";")},applyProperties:function(e,t){var n="";e.propertyInfo||this. decorateRule(e),e.propertyInfo.cssText&&(n=this.valueForProperties(e.propertyInf o.cssText,t)),e.cssText=n},applyKeyframeTransforms:function(e,t){var n=e.cssText ,r=e.cssText;if(null==e.hasAnimations&&(e.hasAnimations=this.rx.ANIMATION_MATCH. test(n)),e.hasAnimations){var s;if(null==e.keyframeNamesToTransform){e.keyframeN amesToTransform=[];for(var i in t)s=t[i],r=s(n),n!==r&&(n=r,e.keyframeNamesToTra nsform.push(i))}else{for(var o=0;o<e.keyframeNamesToTransform.length;++o)s=t[e.k eyframeNamesToTransform[o]],n=s(n);r=n}}e.cssText=r},propertyDataFromStyles:func tion(r,s){var i={},o=this,a=[];return n.forActiveRulesInStyles(r,function(n){n.p ropertyInfo||o.decorateRule(n);var r=n.transformedSelector||n.parsedSelector;s&& n.propertyInfo.properties&&r&&t.call(s,r)&&(o.collectProperties(n,i),e(n.index,a ))}),{properties:i,key:a}},whenHostOrRootRule:function(e,t,n,i){if(t.propertyInf o||self.decorateRule(t),t.propertyInfo.properties){var o=e.is?r._calcHostScope(e .is,e.extends):"html",a=t.parsedSelector,l=":root"===a,h=0===a.indexOf(":host"), c=e.__cssBuild||n.__cssBuild;if("shady"===c&&(l=a===o+"> *."+o||a.indexOf("html" )!==-1,h=!l&&0===a.indexOf(o)),"shadow"===c&&(l=":host > *"===a||"html"===a,h=h& &!l),l||h){var u=o;h&&(s.useNativeShadow&&!t.transformedSelector&&(t.transformed Selector=r._transformRuleCss(t,r._transformComplexSelector,e.is,o)),u=t.transfor medSelector||o),i({selector:u,isHost:h,isRoot:l})}}},hostAndRootPropertiesForSco pe:function(e){var r={},s={},i=this;return n.forActiveRulesInStyles(e._styles,fu nction(n,o){i.whenHostOrRootRule(e,n,o,function(o){var a=e._element||e;t.call(a, o.selector)&&(o.isHost?i.collectProperties(n,r):i.collectProperties(n,s))})}),{r ootProps:s,hostProps:r}},transformStyles:function(e,t,n){var i=this,o=r._calcHos tScope(e.is,e.extends),a=e.extends?"\\"+o.slice(0,-1)+"\\]":o,l=new RegExp(this. rx.HOST_PREFIX+a+this.rx.HOST_SUFFIX),h=this._elementKeyframeTransforms(e,n);ret urn r.elementStyles(e,function(r){i.applyProperties(r,t),s.useNativeShadow||Poly mer.StyleUtil.isKeyframesSelector(r)||!r.cssText||(i.applyKeyframeTransforms(r,h ),i._scopeSelector(r,l,o,e._scopeCssViaAttr,n))})},_elementKeyframeTransforms:fu nction(e,t){var n=e._styles._keyframes,r={};if(!s.useNativeShadow&&n)for(var i=0 ,o=n[i];i<n.length;o=n[++i])this._scopeKeyframes(o,t),r[o.keyframesName]=this._k eyframesRuleTransformer(o);return r},_keyframesRuleTransformer:function(e){retur n function(t){return t.replace(e.keyframesNameRx,e.transformedKeyframesName)}},_ scopeKeyframes:function(e,t){e.keyframesNameRx=new RegExp(e.keyframesName,"g"),e .transformedKeyframesName=e.keyframesName+"-"+t,e.transformedSelector=e.transfor medSelector||e.selector,e.selector=e.transformedSelector.replace(e.keyframesName ,e.transformedKeyframesName)},_scopeSelector:function(e,t,n,s,i){e.transformedSe lector=e.transformedSelector||e.selector;for(var o,a=e.transformedSelector,l=s?" ["+r.SCOPE_NAME+"~="+i+"]":"."+i,h=a.split(","),c=0,u=h.length;c<u&&(o=h[c]);c++ )h[c]=o.match(t)?o.replace(n,l):l+" "+o;e.selector=h.join(",")},applyElementScop eSelector:function(e,t,n,s){var i=s?e.getAttribute(r.SCOPE_NAME):e.getAttribute( "class")||"",o=n?i.replace(n,t):(i?i+" ":"")+this.XSCOPE_NAME+" "+t;i!==o&&(s?e. setAttribute(r.SCOPE_NAME,o):e.setAttribute("class",o))},applyElementStyle:funct ion(e,t,r,i){var o=i?i.textContent||"":this.transformStyles(e,t,r),a=e._customSt yle;return a&&!s.useNativeShadow&&a!==i&&(a._useCount--,a._useCount<=0&&a.parent Node&&a.parentNode.removeChild(a)),s.useNativeShadow?e._customStyle?(e._customSt yle.textContent=o,i=e._customStyle):o&&(i=n.applyCss(o,r,e.root,e._scopeStyle)): i?i.parentNode||n.applyStyle(i,null,e._scopeStyle):o&&(i=n.applyCss(o,r,null,e._ scopeStyle)),i&&(i._useCount=i._useCount||0,e._customStyle!=i&&i._useCount++,e._ customStyle=i),i},mixinCustomStyle:function(e,t){var n;for(var r in t)n=t[r],(n| |0===n)&&(e[r]=n)},updateNativeStyleProperties:function(e,t){for(var n=0;n<e.sty le.length;n++)e.style.removeProperty(e.style[n]);for(var r in t)null!==t[r]&&e.s tyle.setProperty(r,t[r])},rx:n.rx,XSCOPE_NAME:"x-scope"}}(),function(){Polymer.S tyleCache=function(){this.cache={}},Polymer.StyleCache.prototype={MAX:100,store: function(e,t,n,r){t.keyValues=n,t.styles=r;var s=this.cache[e]=this.cache[e]||[] ;s.push(t),s.length>this.MAX&&s.shift()},retrieve:function(e,t,n){var r=this.cac he[e];if(r)for(var s,i=r.length-1;i>=0;i--)if(s=r[i],n===s.styles&&this._objects Equal(t,s.keyValues))return s},clear:function(){this.cache={}},_objectsEqual:fun ction(e,t){var n,r;for(var s in e)if(n=e[s],r=t[s],!("object"==typeof n&&n?this. _objectsStrictlyEqual(n,r):n===r))return!1;return!Array.isArray(e)||e.length===t .length},_objectsStrictlyEqual:function(e,t){return this._objectsEqual(e,t)&&thi s._objectsEqual(t,e)}}}(),Polymer.StyleDefaults=function(){var e=Polymer.StylePr operties,t=Polymer.StyleCache,n=Polymer.Settings.useNativeCSSProperties,r={_styl es:[],_properties:null,customStyle:{},_styleCache:new t,_element:Polymer.DomApi. wrap(document.documentElement),addStyle:function(e){this._styles.push(e),this._p roperties=null},get _styleProperties(){return this._properties||(e.decorateStyle s(this._styles,this),this._styles._scopeStyleProperties=null,this._properties=e. hostAndRootPropertiesForScope(this).rootProps,e.mixinCustomStyle(this._propertie s,this.customStyle),e.reify(this._properties)),this._properties},hasStylePropert ies:function(){return Boolean(this._properties)},_needsStyleProperties:function( ){},_computeStyleProperties:function(){return this._styleProperties},updateStyle s:function(t){this._properties=null,t&&Polymer.Base.mixin(this.customStyle,t),th is._styleCache.clear();for(var r,s=0;s<this._styles.length;s++)r=this._styles[s] ,r=r.__importElement||r,r._apply();n&&e.updateNativeStyleProperties(document.doc umentElement,this.customStyle)}};return r}(),function(){"use strict";var e=Polym er.Base.serializeValueToAttribute,t=Polymer.StyleProperties,n=Polymer.StyleTrans former,r=Polymer.StyleDefaults,s=Polymer.Settings.useNativeShadow,i=Polymer.Sett ings.useNativeCSSProperties;Polymer.Base._addFeature({_prepStyleProperties:funct ion(){i||(this._ownStylePropertyNames=this._styles&&this._styles.length?t.decora teStyles(this._styles,this):null)},customStyle:null,getComputedStyleValue:functi on(e){return!i&&this._styleProperties&&this._styleProperties[e]||getComputedStyl e(this).getPropertyValue(e)},_setupStyleProperties:function(){this.customStyle={ },this._styleCache=null,this._styleProperties=null,this._scopeSelector=null,this ._ownStyleProperties=null,this._customStyle=null},_needsStyleProperties:function (){return Boolean(!i&&this._ownStylePropertyNames&&this._ownStylePropertyNames.l ength)},_beforeAttached:function(){this._scopeSelector&&!this.__stylePropertiesI nvalid||!this._needsStyleProperties()||(this.__stylePropertiesInvalid=!1,this._u pdateStyleProperties())},_findStyleHost:function(){for(var e,t=this;e=Polymer.do m(t).getOwnerRoot();){if(Polymer.isInstance(e.host))return e.host;t=e.host}retur n r},_updateStyleProperties:function(){var e,n=this._findStyleHost();n._styleCac he||(n._styleCache=new Polymer.StyleCache);var r=t.propertyDataFromStyles(n._sty les,this),i=!this.__notStyleScopeCacheable;i&&(r.key.customStyle=this.customStyl e,e=n._styleCache.retrieve(this.is,r.key,this._styles));var a=Boolean(e);a?this. _styleProperties=e._styleProperties:this._computeStyleProperties(r.properties),t his._computeOwnStyleProperties(),a||(e=o.retrieve(this.is,this._ownStyleProperti es,this._styles));var l=Boolean(e)&&!a,h=this._applyStyleProperties(e);a||(h=h&& s?h.cloneNode(!0):h,e={style:h,_scopeSelector:this._scopeSelector,_styleProperti es:this._styleProperties},i&&(r.key.customStyle={},this.mixin(r.key.customStyle, this.customStyle),n._styleCache.store(this.is,e,r.key,this._styles)),l||o.store( this.is,Object.create(e),this._ownStyleProperties,this._styles))},_computeStyleP roperties:function(e){var n=this._findStyleHost();n._styleProperties||n._compute StyleProperties();var r=Object.create(n._styleProperties),s=t.hostAndRootPropert iesForScope(this);this.mixin(r,s.hostProps),e=e||t.propertyDataFromStyles(n._sty les,this).properties,this.mixin(r,e),this.mixin(r,s.rootProps),t.mixinCustomStyl e(r,this.customStyle),t.reify(r),this._styleProperties=r},_computeOwnStyleProper ties:function(){for(var e,t={},n=0;n<this._ownStylePropertyNames.length;n++)e=th is._ownStylePropertyNames[n],t[e]=this._styleProperties[e];this._ownStylePropert ies=t},_scopeCount:0,_applyStyleProperties:function(e){var n=this._scopeSelector ;this._scopeSelector=e?e._scopeSelector:this.is+"-"+this.__proto__._scopeCount++ ;var r=t.applyElementStyle(this,this._styleProperties,this._scopeSelector,e&&e.s tyle);return s||t.applyElementScopeSelector(this,this._scopeSelector,n,this._sco peCssViaAttr),r},serializeValueToAttribute:function(t,n,r){if(r=r||this,"class"= ==n&&!s){var i=r===this?this.domHost||this.dataHost:this;i&&(t=i._scopeElementCl ass(r,t))}r=this.shadyRoot&&this.shadyRoot._hasDistributed?Polymer.dom(r):r,e.ca ll(this,t,n,r)},_scopeElementClass:function(e,t){return s||this._scopeCssViaAttr ||(t=(t?t+" ":"")+a+" "+this.is+(e._scopeSelector?" "+l+" "+e._scopeSelector:"") ), 3 this._flushHandlers()},_applyConfig:function(e,t){for(var n in e)void 0===this[n ]&&this.__setProperty(n,e[n],n in t)},_notifyListener:function(e,t){if(!Polymer. Bind._isEventBogus(t,t.target)){var n,r;if(t.detail&&(n=t.detail.value,r=t.detai l.path),this._clientsReadied)return e.call(this,t.target,n,r);this._queueHandler ([e,t.target,n,r])}},_queueHandler:function(e){this._handlers.push(e)},_flushHan dlers:function(){for(var e,t=this._handlers,n=0,r=t.length;n<r&&(e=t[n]);n++)e[0 ].call(this,e[1],e[2],e[3]);this._handlers=[]}})}(),function(){"use strict";Poly mer.Base._addFeature({notifyPath:function(e,t,n){var r={},s=this._get(e,this,r); 1===arguments.length&&(t=s),r.path&&this._notifyPath(r.path,t,n)},_notifyPath:fu nction(e,t,n){var r=this._propertySetter(e,t);if(r!==t&&(r===r||t===t))return th is._pathEffector(e,t),n||this._notifyPathUp(e,t),!0},_getPathParts:function(e){i f(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)for(var r=e[n].toString().sp lit("."),s=0;s<r.length;s++)t.push(r[s]);return t}return e.toString().split(".") },set:function(e,t,n){var r,s=n||this,i=this._getPathParts(e),o=i[i.length-1];if (i.length>1){for(var a=0;a<i.length-1;a++){var l=i[a];if(r&&"#"==l[0]?s=Polymer. Collection.get(r).getItem(l):(s=s[l],r&&parseInt(l,10)==l&&(i[a]=Polymer.Collect ion.get(r).getKey(s))),!s)return;r=Array.isArray(s)?s:null}if(r){var h,c,u=Polym er.Collection.get(r);"#"==o[0]?(c=o,h=u.getItem(c),o=r.indexOf(h),u.setItem(c,t) ):parseInt(o,10)==o&&(h=s[o],c=u.getKey(h),i[a]=c,u.setItem(c,t))}s[o]=t,n||this ._notifyPath(i.join("."),t)}else s[e]=t},get:function(e,t){return this._get(e,t) },_get:function(e,t,n){for(var r,s=t||this,i=this._getPathParts(e),o=0;o<i.lengt h;o++){if(!s)return;var a=i[o];r&&"#"==a[0]?s=Polymer.Collection.get(r).getItem( a):(s=s[a],n&&r&&parseInt(a,10)==a&&(i[o]=Polymer.Collection.get(r).getKey(s))), r=Array.isArray(s)?s:null}return n&&(n.path=i.join(".")),s},_pathEffector:functi on(e,t){var n=this._modelForPath(e),r=this._propertyEffects&&this._propertyEffec ts[n];if(r)for(var s,i=0;i<r.length&&(s=r[i]);i++){var o=s.pathFn;o&&o.call(this ,e,t,s.effect)}this._boundPaths&&this._notifyBoundPaths(e,t)},_annotationPathEff ect:function(e,t,n){if(n.value===e||0===n.value.indexOf(e+"."))Polymer.Bind._ann otationEffect.call(this,e,t,n);else if(0===e.indexOf(n.value+".")&&!n.negate){va r r=this._nodes[n.index];if(r&&r._notifyPath){var s=this._fixPath(n.name,n.value ,e);r._notifyPath(s,t,!0)}}},_complexObserverPathEffect:function(e,t,n){this._pa thMatchesEffect(e,n)&&Polymer.Bind._complexObserverEffect.call(this,e,t,n)},_com putePathEffect:function(e,t,n){this._pathMatchesEffect(e,n)&&Polymer.Bind._compu teEffect.call(this,e,t,n)},_annotatedComputationPathEffect:function(e,t,n){this. _pathMatchesEffect(e,n)&&Polymer.Bind._annotatedComputationEffect.call(this,e,t, n)},_pathMatchesEffect:function(e,t){var n=t.trigger.name;return n==e||0===n.ind exOf(e+".")||t.trigger.wildcard&&0===e.indexOf(n+".")},linkPaths:function(e,t){t his._boundPaths=this._boundPaths||{},t?this._boundPaths[e]=t:this.unlinkPaths(e) },unlinkPaths:function(e){this._boundPaths&&delete this._boundPaths[e]},_notifyB oundPaths:function(e,t){for(var n in this._boundPaths){var r=this._boundPaths[n] ;0==e.indexOf(n+".")?this._notifyPath(this._fixPath(r,n,e),t):0==e.indexOf(r+"." )&&this._notifyPath(this._fixPath(n,r,e),t)}},_fixPath:function(e,t,n){return e+ n.slice(t.length)},_notifyPathUp:function(e,t){var n=this._modelForPath(e),r=Pol ymer.CaseMap.camelToDashCase(n),s=r+this._EVENT_CHANGED;this.fire(s,{path:e,valu e:t},{bubbles:!1,_useCache:!0})},_modelForPath:function(e){var t=e.indexOf("."); return t<0?e:e.slice(0,t)},_EVENT_CHANGED:"-changed",notifySplices:function(e,t) {var n={},r=this._get(e,this,n);this._notifySplices(r,n.path,t)},_notifySplices: function(e,t,n){var r={keySplices:Polymer.Collection.applySplices(e,n),indexSpli ces:n},s=t+".splices";this._notifyPath(s,r),this._notifyPath(t+".length",e.lengt h),this.__data__[s]={keySplices:null,indexSplices:null}},_notifySplice:function( e,t,n,r,s){this._notifySplices(e,t,[{index:n,addedCount:r,removed:s,object:e,typ e:"splice"}])},push:function(e){var t={},n=this._get(e,this,t),r=Array.prototype .slice.call(arguments,1),s=n.length,i=n.push.apply(n,r);return r.length&&this._n otifySplice(n,t.path,s,r.length,[]),i},pop:function(e){var t={},n=this._get(e,th is,t),r=Boolean(n.length),s=Array.prototype.slice.call(arguments,1),i=n.pop.appl y(n,s);return r&&this._notifySplice(n,t.path,n.length,0,[i]),i},splice:function( e,t){var n={},r=this._get(e,this,n);t=t<0?r.length-Math.floor(-t):Math.floor(t), t||(t=0);var s=Array.prototype.slice.call(arguments,1),i=r.splice.apply(r,s),o=M ath.max(s.length-2,0);return(o||i.length)&&this._notifySplice(r,n.path,t,o,i),i} ,shift:function(e){var t={},n=this._get(e,this,t),r=Boolean(n.length),s=Array.pr ototype.slice.call(arguments,1),i=n.shift.apply(n,s);return r&&this._notifySplic e(n,t.path,0,0,[i]),i},unshift:function(e){var t={},n=this._get(e,this,t),r=Arra y.prototype.slice.call(arguments,1),s=n.unshift.apply(n,r);return r.length&&this ._notifySplice(n,t.path,0,r.length,[]),s},prepareModelNotifyPath:function(e){thi s.mixin(e,{fire:Polymer.Base.fire,_getEvent:Polymer.Base._getEvent,__eventCache: Polymer.Base.__eventCache,notifyPath:Polymer.Base.notifyPath,_get:Polymer.Base._ get,_EVENT_CHANGED:Polymer.Base._EVENT_CHANGED,_notifyPath:Polymer.Base._notifyP ath,_notifyPathUp:Polymer.Base._notifyPathUp,_pathEffector:Polymer.Base._pathEff ector,_annotationPathEffect:Polymer.Base._annotationPathEffect,_complexObserverP athEffect:Polymer.Base._complexObserverPathEffect,_annotatedComputationPathEffec t:Polymer.Base._annotatedComputationPathEffect,_computePathEffect:Polymer.Base._ computePathEffect,_modelForPath:Polymer.Base._modelForPath,_pathMatchesEffect:Po lymer.Base._pathMatchesEffect,_notifyBoundPaths:Polymer.Base._notifyBoundPaths,_ getPathParts:Polymer.Base._getPathParts})}})}(),Polymer.Base._addFeature({resolv eUrl:function(e){var t=Polymer.DomModule.import(this.is),n="";if(t){var r=t.getA ttribute("assetpath")||"";n=Polymer.ResolveUrl.resolveUrl(r,t.ownerDocument.base URI)}return Polymer.ResolveUrl.resolveUrl(e,n)}}),Polymer.CssParse=function(){re turn{parse:function(e){return e=this._clean(e),this._parseCss(this._lex(e),e)},_ clean:function(e){return e.replace(this._rx.comments,"").replace(this._rx.port," ")},_lex:function(e){for(var t={start:0,end:e.length},n=t,r=0,s=e.length;r<s;r++ )switch(e[r]){case this.OPEN_BRACE:n.rules||(n.rules=[]);var i=n,o=i.rules[i.rul es.length-1];n={start:r+1,parent:i,previous:o},i.rules.push(n);break;case this.C LOSE_BRACE:n.end=r+1,n=n.parent||t}return t},_parseCss:function(e,t){var n=t.sub string(e.start,e.end-1);if(e.parsedCssText=e.cssText=n.trim(),e.parent){var r=e. previous?e.previous.end:e.parent.start;n=t.substring(r,e.start-1),n=this._expand UnicodeEscapes(n),n=n.replace(this._rx.multipleSpaces," "),n=n.substring(n.lastI ndexOf(";")+1);var s=e.parsedSelector=e.selector=n.trim();e.atRule=0===s.indexOf (this.AT_START),e.atRule?0===s.indexOf(this.MEDIA_START)?e.type=this.types.MEDIA _RULE:s.match(this._rx.keyframesRule)&&(e.type=this.types.KEYFRAMES_RULE,e.keyfr amesName=e.selector.split(this._rx.multipleSpaces).pop()):0===s.indexOf(this.VAR _START)?e.type=this.types.MIXIN_RULE:e.type=this.types.STYLE_RULE}var i=e.rules; if(i)for(var o,a=0,l=i.length;a<l&&(o=i[a]);a++)this._parseCss(o,t);return e},_e xpandUnicodeEscapes:function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,functio n(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e})},stringify:f unction(e,t,n){n=n||"";var r="";if(e.cssText||e.rules){var s=e.rules;if(s&&!this ._hasMixinRules(s))for(var i,o=0,a=s.length;o<a&&(i=s[o]);o++)r=this.stringify(i ,t,r);else r=t?e.cssText:this.removeCustomProps(e.cssText),r=r.trim(),r&&(r=" " +r+"\n")}return r&&(e.selector&&(n+=e.selector+" "+this.OPEN_BRACE+"\n"),n+=r,e. selector&&(n+=this.CLOSE_BRACE+"\n\n")),n},_hasMixinRules:function(e){return 0== =e[0].selector.indexOf(this.VAR_START)},removeCustomProps:function(e){return e=t his.removeCustomPropAssignment(e),this.removeCustomPropApply(e)},removeCustomPro pAssignment:function(e){return e.replace(this._rx.customProp,"").replace(this._r x.mixinProp,"")},removeCustomPropApply:function(e){return e.replace(this._rx.mix inApply,"").replace(this._rx.varApply,"")},types:{STYLE_RULE:1,KEYFRAMES_RULE:7, MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE:"{",CLOSE_BRACE:"}",_rx:{comments:/\/\*[ ^*]*\*+([^\/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}] +)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{} ;]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gi m,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*ke yframes/,multipleSpaces:/\s+/g},VAR_START:"--",MEDIA_START:"@media",AT_START:"@" }}(),Polymer.StyleUtil=function(){var e=Polymer.Settings;return{NATIVE_VARIABLES :Polymer.Settings.useNativeCSSProperties,MODULE_STYLES_SELECTOR:"style, link[rel =import][type~=css], template",INCLUDE_ATTR:"include",toCssText:function(e,t){re turn"string"==typeof e&&(e=this.parser.parse(e)),t&&this.forEachRule(e,t),this.p arser.stringify(e,this.NATIVE_VARIABLES)},forRulesInStyles:function(e,t,n){if(e) for(var r,s=0,i=e.length;s<i&&(r=e[s]);s++)this.forEachRuleInStyle(r,t,n)},forAc tiveRulesInStyles:function(e,t,n){if(e)for(var r,s=0,i=e.length;s<i&&(r=e[s]);s+ +)this.forEachRuleInStyle(r,t,n,!0)},rulesForStyle:function(e){return!e.__cssRul es&&e.textContent&&(e.__cssRules=this.parser.parse(e.textContent)),e.__cssRules} ,isKeyframesSelector:function(e){return e.parent&&e.parent.type===this.ruleTypes .KEYFRAMES_RULE},forEachRuleInStyle:function(e,t,n,r){var s,i,o=this.rulesForSty le(e);t&&(s=function(n){t(n,e)}),n&&(i=function(t){n(t,e)}),this.forEachRule(o,s ,i,r)},forEachRule:function(e,t,n,r){if(e){var s=!1;if(r&&e.type===this.ruleType s.MEDIA_RULE){var i=e.selector.match(this.rx.MEDIA_MATCH);i&&(window.matchMedia( i[1]).matches||(s=!0))}e.type===this.ruleTypes.STYLE_RULE?t(e):n&&e.type===this. ruleTypes.KEYFRAMES_RULE?n(e):e.type===this.ruleTypes.MIXIN_RULE&&(s=!0);var o=e .rules;if(o&&!s)for(var a,l=0,h=o.length;l<h&&(a=o[l]);l++)this.forEachRule(a,t, n,r)}},applyCss:function(e,t,n,r){var s=this.createScopeStyle(e,t);return this.a pplyStyle(s,n,r)},applyStyle:function(e,t,n){t=t||document.head;var r=n&&n.nextS ibling||t.firstChild;return this.__lastHeadApplyNode=e,t.insertBefore(e,r)},crea teScopeStyle:function(e,t){var n=document.createElement("style");return t&&n.set Attribute("scope",t),n.textContent=e,n},__lastHeadApplyNode:null,applyStylePlace Holder:function(e){var t=document.createComment(" Shady DOM styles for "+e+" "), n=this.__lastHeadApplyNode?this.__lastHeadApplyNode.nextSibling:null,r=document. head;return r.insertBefore(t,n||r.firstChild),this.__lastHeadApplyNode=t,t},cssF romModules:function(e,t){for(var n=e.trim().split(" "),r="",s=0;s<n.length;s++)r +=this.cssFromModule(n[s],t);return r},cssFromModule:function(e,t){var n=Polymer .DomModule.import(e);return n&&!n._cssText&&(n._cssText=this.cssFromElement(n)), !n&&t&&console.warn("Could not find style data in module named",e),n&&n._cssText ||""},cssFromElement:function(e){for(var t,n="",r=e.content||e,s=Polymer.TreeApi .arrayCopy(r.querySelectorAll(this.MODULE_STYLES_SELECTOR)),i=0;i<s.length;i++)i f(t=s[i],"template"===t.localName)n+=this.cssFromElement(t);else if("style"===t. localName){var o=t.getAttribute(this.INCLUDE_ATTR);o&&(n+=this.cssFromModules(o, !0)),t=t.__appliedElement||t,t.parentNode.removeChild(t),n+=this.resolveCss(t.te xtContent,e.ownerDocument)}else t.import&&t.import.body&&(n+=this.resolveCss(t.i mport.body.textContent,t.import));return n},isTargetedBuild:function(t){return e .useNativeShadow?"shadow"===t:"shady"===t},cssBuildTypeForModule:function(e){var t=Polymer.DomModule.import(e);if(t)return this.getCssBuildType(t)},getCssBuildT ype:function(e){return e.getAttribute("css-build")},_findMatchingParen:function( e,t){for(var n=0,r=t,s=e.length;r<s;r++)switch(e[r]){case"(":n++;break;case")":i f(0===--n)return r}return-1},processVariableAndFallback:function(e,t){var n=e.in dexOf("var(");if(n===-1)return t(e,"","","");var r=this._findMatchingParen(e,n+3 ),s=e.substring(n+4,r),i=e.substring(0,n),o=this.processVariableAndFallback(e.su bstring(r+1),t),a=s.indexOf(",");if(a===-1)return t(i,s.trim(),"",o);var l=s.sub string(0,a).trim(),h=s.substring(a+1).trim();return t(i,l,h,o)},rx:{VAR_ASSIGN:/ (?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:([^;{]*)|{([^}]*)})(?:(?=[;\s}])|$)/gi,MIXIN _MATCH:/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,VAR_CONSUMED:/(--[\w-]+)\s*([:,;)] |$)/gi,ANIMATION_MATCH:/(animation\s*:)|(animation-name\s*:)/,MEDIA_MATCH:/@medi a[^(]*(\([^)]*\))/,IS_VAR:/^--/,BRACKETED:/\{[^}]*\}/g,HOST_PREFIX:"(?:^|[^.#[:] )",HOST_SUFFIX:"($|[.:[\\s>+~])"},resolveCss:Polymer.ResolveUrl.resolveCss,parse r:Polymer.CssParse,ruleTypes:Polymer.CssParse.types}}(),Polymer.StyleTransformer =function(){var e=Polymer.StyleUtil,t=Polymer.Settings,n={dom:function(e,t,n,r){ this._transformDom(e,t||"",n,r)},_transformDom:function(e,t,n,r){e.setAttribute& &this.element(e,t,n,r);for(var s=Polymer.dom(e).childNodes,i=0;i<s.length;i++)th is._transformDom(s[i],t,n,r)},element:function(e,t,n,s){if(n)s?e.removeAttribute (r):e.setAttribute(r,t);else if(t)if(e.classList)s?(e.classList.remove(r),e.clas sList.remove(t)):(e.classList.add(r),e.classList.add(t));else if(e.getAttribute) {var i=e.getAttribute(g);s?i&&e.setAttribute(g,i.replace(r,"").replace(t,"")):e. setAttribute(g,(i?i+" ":"")+r+" "+t)}},elementStyles:function(n,r){for(var s,i=n ._styles,o="",a=n.__cssBuild,l=0,h=i.length;l<h&&(s=i[l]);l++){var c=e.rulesForS tyle(s);o+=t.useNativeShadow||"shady"===a?e.toCssText(c,r):this.css(c,n.is,n.ext ends,r,n._scopeCssViaAttr)+"\n\n"}return o.trim()},css:function(t,n,r,s,i){var o =this._calcHostScope(n,r);n=this._calcElementScope(n,i);var a=this;return e.toCs sText(t,function(e){e.isScoped||(a.rule(e,n,o),e.isScoped=!0),s&&s(e,n,o)})},_ca lcElementScope:function(e,t){return e?t?m+e+y:d+e:""},_calcHostScope:function(e, t){return t?"[is="+e+"]":e},rule:function(e,t,n){this._transformRule(e,this._tra nsformComplexSelector,t,n)},_transformRule:function(e,t,n,r){e.selector=e.transf ormedSelector=this._transformRuleCss(e,t,n,r)},_transformRuleCss:function(t,n,r, s){var o=t.selector.split(i);if(!e.isKeyframesSelector(t))for(var a,l=0,h=o.leng th;l<h&&(a=o[l]);l++)o[l]=n.call(this,a,r,s);return o.join(i)},_transformComplex Selector:function(e,t,n){var r=!1,s=!1,a=this;return e=e.trim(),e=e.replace(P,l+ " $1"),e=e.replace(o,function(e,i,o){if(r)o=o.replace(_," ");else{var l=a._trans formCompoundSelector(o,i,t,n);r=r||l.stop,s=s||l.hostContext,i=l.combinator,o=l. value}return i+o}),s&&(e=e.replace(f,function(e,t,r,s){return t+r+" "+n+s+i+" "+ t+n+r+s})),e},_transformCompoundSelector:function(e,t,n,r){var s=e.search(_),i=! 1;e.indexOf(u)>=0?i=!0:e.indexOf(l)>=0?e=this._transformHostSelector(e,r):0!==s& &(e=n?this._transformSimpleSelector(e,n):e),e.indexOf(p)>=0&&(t="");var o;return s>=0&&(e=e.replace(_," "),o=!0),{value:e,combinator:t,stop:o,hostContext:i}},_t ransformSimpleSelector:function(e,t){var n=e.split(v);return n[0]+=t,n.join(v)}, _transformHostSelector:function(e,t){var n=e.match(c),r=n&&n[2].trim()||"";if(r) {if(r[0].match(a))return e.replace(c,function(e,n,r){return t+r});var s=r.split( a)[0];return s===t?r:S}return e.replace(l,t)},documentRule:function(e){e.selecto r=e.parsedSelector,this.normalizeRootSelector(e),t.useNativeShadow||this._transf ormRule(e,this._transformDocumentSelector)},normalizeRootSelector:function(e){e. selector===h&&(e.selector="html")},_transformDocumentSelector:function(e){return e.match(_)?this._transformComplexSelector(e,s):this._transformSimpleSelector(e. trim(),s)},SCOPE_NAME:"style-scope"},r=n.SCOPE_NAME,s=":not(["+r+"]):not(."+r+") ",i=",",o=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,a=/[[.:#*]/,l=":host",h=":ro ot",c=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,u=":host-context",f=/(.*)(?::ho st-context)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))(.*)/,p="::content",_=/::content|::s hadow|\/deep\//,d=".",m="["+r+"~=",y="]",v=":",g="class",P=new RegExp("^("+p+")" ),S="should_not_match";return n}(),Polymer.StyleExtends=function(){var e=Polymer .StyleUtil;return{hasExtends:function(e){return Boolean(e.match(this.rx.EXTEND)) },transform:function(t){var n=e.rulesForStyle(t),r=this;return e.forEachRule(n,f unction(e){if(r._mapRuleOntoParent(e),e.parent)for(var t;t=r.rx.EXTEND.exec(e.cs sText);){var n=t[1],s=r._findExtendor(n,e);s&&r._extendRule(e,s)}e.cssText=e.css Text.replace(r.rx.EXTEND,"")}),e.toCssText(n,function(e){e.selector.match(r.rx.S TRIP)&&(e.cssText="")},!0)},_mapRuleOntoParent:function(e){if(e.parent){for(var t,n=e.parent.map||(e.parent.map={}),r=e.selector.split(","),s=0;s<r.length;s++)t =r[s],n[t.trim()]=e;return n}},_findExtendor:function(e,t){return t.parent&&t.pa rent.map&&t.parent.map[e]||this._findExtendor(e,t.parent)},_extendRule:function( e,t){e.parent!==t.parent&&this._cloneAndAddRuleToParent(t,e.parent),e.extends=e. extends||[],e.extends.push(t),t.selector=t.selector.replace(this.rx.STRIP,""),t. selector=(t.selector&&t.selector+",\n")+e.selector,t.extends&&t.extends.forEach( function(t){this._extendRule(e,t)},this)},_cloneAndAddRuleToParent:function(e,t) {e=Object.create(e),e.parent=t,e.extends&&(e.extends=e.extends.slice()),t.rules. push(e)},rx:{EXTEND:/@extends\(([^)]*)\)\s*?;/gim,STRIP:/%[^,]*$/}}}(),Polymer.A pplyShim=function(){"use strict";function e(e,t){e=e.trim(),m[e]={properties:t,d ependants:{}}}function t(e){return e=e.trim(),m[e]}function n(e,t){var n=_.exec( t);return n&&(t=n[1]?y._getInitialValueForProperty(e):"apply-shim-inherit"),t}fu nction r(e){for(var t,r,s,i,o=e.split(";"),a={},l=0;l<o.length;l++)s=o[l],s&&(i= s.split(":"),i.length>1&&(t=i[0].trim(),r=n(t,i.slice(1).join(":")),a[t]=r));ret urn a}function s(e){var t=y.__currentElementProto,n=t&&t.is;for(var r in e.depen dants)r!==n&&(e.dependants[r].__applyShimInvalid=!0)}function i(n,i,o,a){if(o&&h .processVariableAndFallback(o,function(e,n){n&&t(n)&&(a="@apply "+n+";")}),!a)re turn n;var c=l(a),u=n.slice(0,n.indexOf("--")),f=r(c),p=f,_=t(i),m=_&&_.properti es;m?(p=Object.create(m),p=Polymer.Base.mixin(p,f)):e(i,p);var y,v,g=[],P=!1;for (y in p)v=f[y],void 0===v&&(v="initial"),!m||y in m||(P=!0),g.push(i+d+y+": "+v) ;return P&&s(_),_&&(_.properties=p),o&&(u=n+";"+u),u+g.join("; ")+";"}function o (e,t,n){return"var("+t+",var("+n+"));"}function a(n,r){n=n.replace(p,"");var s=[ ],i=t(n);if(i||(e(n,{}),i=t(n)),i){var o=y.__currentElementProto;o&&(i.dependant s[o.is]=o);var a,l,h;for(a in i.properties)h=r&&r[a],l=[a,": var(",n,d,a],h&&l.p ush(",",h),l.push(")"),s.push(l.join(""))}return s.join("; ")}function l(e){for( var t;t=c.exec(e);){var n=t[0],s=t[1],i=t.index,o=i+n.indexOf("@apply"),l=i+n.le ngth,h=e.slice(0,o),u=e.slice(l),f=r(h),p=a(s,f);e=[h,p,u].join(""),c.lastIndex= i+p.length}return e}var h=Polymer.StyleUtil,c=h.rx.MIXIN_MATCH,u=h.rx.VAR_ASSIGN ,f=/var\(\s*(--[^,]*),\s*(--[^)]*)\)/g,p=/;\s*/m,_=/^\s*(initial)|(inherit)\s*$/ ,d="_-_",m={},y={_measureElement:null,_map:m,_separator:d,transform:function(e,t ){this.__currentElementProto=t,h.forRulesInStyles(e,this._boundTransformRule),t. __applyShimInvalid=!1,this.__currentElementProto=null},transformRule:function(e) {e.cssText=this.transformCssText(e.parsedCssText),":root"===e.selector&&(e.selec tor=":host > *")},transformCssText:function(e){return e=e.replace(f,o),e=e.repla ce(u,i),l(e)},_getInitialValueForProperty:function(e){return this._measureElemen t||(this._measureElement=document.createElement("meta"),this._measureElement.sty le.all="initial",document.head.appendChild(this._measureElement)),window.getComp utedStyle(this._measureElement).getPropertyValue(e)}};return y._boundTransformRu le=y.transformRule.bind(y),y}(),function(){var e=Polymer.Base._prepElement,t=Pol ymer.Settings.useNativeShadow,n=Polymer.StyleUtil,r=Polymer.StyleTransformer,s=P olymer.StyleExtends,i=Polymer.ApplyShim,o=Polymer.Settings;Polymer.Base._addFeat ure({_prepElement:function(t){this._encapsulateStyle&&"shady"!==this.__cssBuild& &r.element(t,this.is,this._scopeCssViaAttr),e.call(this,t)},_prepStyles:function (){void 0===this._encapsulateStyle&&(this._encapsulateStyle=!t),t||(this._scopeS tyle=n.applyStylePlaceHolder(this.is)),this.__cssBuild=n.cssBuildTypeForModule(t his.is)},_prepShimStyles:function(){if(this._template){var e=n.isTargetedBuild(t his.__cssBuild);if(o.useNativeCSSProperties&&"shadow"===this.__cssBuild&&e)retur n;this._styles=this._styles||this._collectStyles(),o.useNativeCSSProperties&&!th is.__cssBuild&&i.transform(this._styles,this);var s=o.useNativeCSSProperties&&e? this._styles.length&&this._styles[0].textContent.trim():r.elementStyles(this);th is._prepStyleProperties(),!this._needsStyleProperties()&&s&&n.applyCss(s,this.is ,t?this._template.content:null,this._scopeStyle)}else this._styles=[]},_collectS tyles:function(){var e=[],t="",r=this.styleModules;if(r)for(var i,o=0,a=r.length ;o<a&&(i=r[o]);o++)t+=n.cssFromModule(i);t+=n.cssFromModule(this.is);var l=this. _template&&this._template.parentNode;if(!this._template||l&&l.id.toLowerCase()== =this.is||(t+=n.cssFromElement(this._template)),t){var h=document.createElement( "style");h.textContent=t,s.hasExtends(h.textContent)&&(t=s.transform(h)),e.push( h)}return e},_elementAdd:function(e){this._encapsulateStyle&&(e.__styleScoped?e. __styleScoped=!1:r.dom(e,this.is,this._scopeCssViaAttr))},_elementRemove:functio n(e){this._encapsulateStyle&&r.dom(e,this.is,this._scopeCssViaAttr,!0)},scopeSub tree:function(e,n){if(!t){var r=this,s=function(e){if(e.nodeType===Node.ELEMENT_ NODE){var t=e.getAttribute("class");e.setAttribute("class",r._scopeElementClass( e,t));for(var n,s=e.querySelectorAll("*"),i=0;i<s.length&&(n=s[i]);i++)t=n.getAt tribute("class"),n.setAttribute("class",r._scopeElementClass(n,t))}};if(s(e),n){ var i=new MutationObserver(function(e){for(var t,n=0;n<e.length&&(t=e[n]);n++)if (t.addedNodes)for(var r=0;r<t.addedNodes.length;r++)s(t.addedNodes[r])});return i.observe(e,{childList:!0,subtree:!0}),i}}}})}(),Polymer.StyleProperties=functio n(){"use strict";function e(e,t){var n=parseInt(e/32),r=1<<e%32;t[n]=(t[n]||0)|r }var t=Polymer.DomApi.matchesSelector,n=Polymer.StyleUtil,r=Polymer.StyleTransfo rmer,s=navigator.userAgent.match("Trident"),i=Polymer.Settings;return{decorateSt yles:function(e,t){var s=this,i={},o=[],a=0,l=r._calcHostScope(t.is,t.extends);n .forRulesInStyles(e,function(e,r){s.decorateRule(e),e.index=a++,s.whenHostOrRoot Rule(t,e,r,function(r){if(e.parent.type===n.ruleTypes.MEDIA_RULE&&(t.__notStyleS copeCacheable=!0),r.isHost){var s=r.selector.split(" ").some(function(e){return 0===e.indexOf(l)&&e.length!==l.length});t.__notStyleScopeCacheable=t.__notStyleS copeCacheable||s}}),s.collectPropertiesInCssText(e.propertyInfo.cssText,i)},func tion(e){o.push(e)}),e._keyframes=o;var h=[];for(var c in i)h.push(c);return h},d ecorateRule:function(e){if(e.propertyInfo)return e.propertyInfo;var t={},n={},r= this.collectProperties(e,n);return r&&(t.properties=n,e.rules=null),t.cssText=th is.collectCssText(e),e.propertyInfo=t,t},collectProperties:function(e,t){var n=e .propertyInfo;if(!n){for(var r,s,i,o=this.rx.VAR_ASSIGN,a=e.parsedCssText;r=o.ex ec(a);)s=(r[2]||r[3]).trim(),"inherit"!==s&&(t[r[1].trim()]=s),i=!0;return i}if( n.properties)return Polymer.Base.mixin(t,n.properties),!0},collectCssText:functi on(e){return this.collectConsumingCssText(e.parsedCssText)},collectConsumingCssT ext:function(e){return e.replace(this.rx.BRACKETED,"").replace(this.rx.VAR_ASSIG N,"")},collectPropertiesInCssText:function(e,t){for(var n;n=this.rx.VAR_CONSUMED .exec(e);){var r=n[1];":"!==n[2]&&(t[r]=!0)}},reify:function(e){for(var t,n=Obje ct.getOwnPropertyNames(e),r=0;r<n.length;r++)t=n[r],e[t]=this.valueForProperty(e [t],e)},valueForProperty:function(e,t){if(e)if(e.indexOf(";")>=0)e=this.valueFor Properties(e,t);else{var r=this,s=function(e,n,s,i){var o=r.valueForProperty(t[n ],t);return o&&"initial"!==o?"apply-shim-inherit"===o&&(o="inherit"):o=r.valueFo rProperty(t[s]||s,t)||s,e+(o||"")+i};e=n.processVariableAndFallback(e,s)}return e&&e.trim()||""},valueForProperties:function(e,t){for(var n,r,s=e.split(";"),i=0 ;i<s.length;i++)if(n=s[i]){if(this.rx.MIXIN_MATCH.lastIndex=0,r=this.rx.MIXIN_MA TCH.exec(n))n=this.valueForProperty(t[r[1]],t);else{var o=n.indexOf(":");if(o!== -1){var a=n.substring(o);a=a.trim(),a=this.valueForProperty(a,t)||a,n=n.substrin g(0,o)+a}}s[i]=n&&n.lastIndexOf(";")===n.length-1?n.slice(0,-1):n||""}return s.j oin(";")},applyProperties:function(e,t){var n="";e.propertyInfo||this.decorateRu le(e),e.propertyInfo.cssText&&(n=this.valueForProperties(e.propertyInfo.cssText, t)),e.cssText=n},applyKeyframeTransforms:function(e,t){var n=e.cssText,r=e.cssTe xt;if(null==e.hasAnimations&&(e.hasAnimations=this.rx.ANIMATION_MATCH.test(n)),e .hasAnimations){var s;if(null==e.keyframeNamesToTransform){e.keyframeNamesToTran sform=[];for(var i in t)s=t[i],r=s(n),n!==r&&(n=r,e.keyframeNamesToTransform.pus h(i))}else{for(var o=0;o<e.keyframeNamesToTransform.length;++o)s=t[e.keyframeNam esToTransform[o]],n=s(n);r=n}}e.cssText=r},propertyDataFromStyles:function(r,s){ var i={},o=this,a=[];return n.forActiveRulesInStyles(r,function(n){n.propertyInf o||o.decorateRule(n);var r=n.transformedSelector||n.parsedSelector;s&&n.property Info.properties&&r&&t.call(s,r)&&(o.collectProperties(n,i),e(n.index,a))}),{prop erties:i,key:a}},whenHostOrRootRule:function(e,t,n,s){if(t.propertyInfo||self.de corateRule(t),t.propertyInfo.properties){var o=e.is?r._calcHostScope(e.is,e.exte nds):"html",a=t.parsedSelector,l=":root"===a,h=0===a.indexOf(":host"),c=e.__cssB uild||n.__cssBuild;if("shady"===c&&(l=a===o+" > *."+o||a.indexOf("html")!==-1,h= !l&&0===a.indexOf(o)),"shadow"===c&&(l=":host > *"===a||"html"===a,h=h&&!l),l||h ){var u=o;h&&(i.useNativeShadow&&!t.transformedSelector&&(t.transformedSelector= r._transformRuleCss(t,r._transformComplexSelector,e.is,o)),u=t.transformedSelect or||t.parsedSelector),s({selector:u,isHost:h,isRoot:l})}}},hostAndRootProperties ForScope:function(e){var r={},s={},i=this;return n.forActiveRulesInStyles(e._sty les,function(n,o){i.whenHostOrRootRule(e,n,o,function(o){var a=e._element||e;t.c all(a,o.selector)&&(o.isHost?i.collectProperties(n,r):i.collectProperties(n,s))} )}),{rootProps:s,hostProps:r}},transformStyles:function(e,t,n){var s=this,o=r._c alcHostScope(e.is,e.extends),a=e.extends?"\\"+o.slice(0,-1)+"\\]":o,l=new RegExp (this.rx.HOST_PREFIX+a+this.rx.HOST_SUFFIX),h=this._elementKeyframeTransforms(e, n);return r.elementStyles(e,function(r){s.applyProperties(r,t),i.useNativeShadow ||Polymer.StyleUtil.isKeyframesSelector(r)||!r.cssText||(s.applyKeyframeTransfor ms(r,h),s._scopeSelector(r,l,o,e._scopeCssViaAttr,n))})},_elementKeyframeTransfo rms:function(e,t){var n=e._styles._keyframes,r={};if(!i.useNativeShadow&&n)for(v ar s=0,o=n[s];s<n.length;o=n[++s])this._scopeKeyframes(o,t),r[o.keyframesName]=t his._keyframesRuleTransformer(o);return r},_keyframesRuleTransformer:function(e) {return function(t){return t.replace(e.keyframesNameRx,e.transformedKeyframesNam e)}},_scopeKeyframes:function(e,t){e.keyframesNameRx=new RegExp(e.keyframesName, "g"),e.transformedKeyframesName=e.keyframesName+"-"+t,e.transformedSelector=e.tr ansformedSelector||e.selector,e.selector=e.transformedSelector.replace(e.keyfram esName,e.transformedKeyframesName)},_scopeSelector:function(e,t,n,s,i){e.transfo rmedSelector=e.transformedSelector||e.selector;for(var o,a=e.transformedSelector ,l=s?"["+r.SCOPE_NAME+"~="+i+"]":"."+i,h=a.split(","),c=0,u=h.length;c<u&&(o=h[c ]);c++)h[c]=o.match(t)?o.replace(n,l):l+" "+o;e.selector=h.join(",")},applyEleme ntScopeSelector:function(e,t,n,s){var i=s?e.getAttribute(r.SCOPE_NAME):e.getAttr ibute("class")||"",o=n?i.replace(n,t):(i?i+" ":"")+this.XSCOPE_NAME+" "+t;i!==o& &(s?e.setAttribute(r.SCOPE_NAME,o):e.setAttribute("class",o))},applyElementStyle :function(e,t,r,o){var a=o?o.textContent||"":this.transformStyles(e,t,r),l=e._cu stomStyle;return l&&!i.useNativeShadow&&l!==o&&(l._useCount--,l._useCount<=0&&l. parentNode&&l.parentNode.removeChild(l)),i.useNativeShadow?e._customStyle?(e._cu stomStyle.textContent=a,o=e._customStyle):a&&(o=n.applyCss(a,r,e.root,e._scopeSt yle)):o?o.parentNode||n.applyStyle(o,null,e._scopeStyle):a&&(o=n.applyCss(a,r,nu ll,e._scopeStyle)),o&&(o._useCount=o._useCount||0,e._customStyle!=o&&o._useCount ++,e._customStyle=o),s&&(o.textContent=o.textContent),o},mixinCustomStyle:functi on(e,t){var n;for(var r in t)n=t[r],(n||0===n)&&(e[r]=n)},updateNativeStylePrope rties:function(e,t){var n=e.__customStyleProperties;if(n)for(var r=0;r<n.length; r++)e.style.removeProperty(n[r]);var s=[];for(var i in t)null!==t[i]&&(e.style.s etProperty(i,t[i]),s.push(i));e.__customStyleProperties=s},rx:n.rx,XSCOPE_NAME:" x-scope"}}(),function(){Polymer.StyleCache=function(){this.cache={}},Polymer.Sty leCache.prototype={MAX:100,store:function(e,t,n,r){t.keyValues=n,t.styles=r;var s=this.cache[e]=this.cache[e]||[];s.push(t),s.length>this.MAX&&s.shift()},retrie ve:function(e,t,n){var r=this.cache[e];if(r)for(var s,i=r.length-1;i>=0;i--)if(s =r[i],n===s.styles&&this._objectsEqual(t,s.keyValues))return s},clear:function() {this.cache={}},_objectsEqual:function(e,t){var n,r;for(var s in e)if(n=e[s],r=t [s],!("object"==typeof n&&n?this._objectsStrictlyEqual(n,r):n===r))return!1;retu rn!Array.isArray(e)||e.length===t.length},_objectsStrictlyEqual:function(e,t){re turn this._objectsEqual(e,t)&&this._objectsEqual(t,e)}}}(),Polymer.StyleDefaults =function(){var e=Polymer.StyleProperties,t=Polymer.StyleCache,n=Polymer.Setting s.useNativeCSSProperties,r={_styles:[],_properties:null,customStyle:{},_styleCac he:new t,_element:Polymer.DomApi.wrap(document.documentElement),addStyle:functio n(e){this._styles.push(e),this._properties=null},get _styleProperties(){return t his._properties||(e.decorateStyles(this._styles,this),this._styles._scopeStylePr operties=null,this._properties=e.hostAndRootPropertiesForScope(this).rootProps,e .mixinCustomStyle(this._properties,this.customStyle),e.reify(this._properties)), this._properties},hasStyleProperties:function(){return Boolean(this._properties) },_needsStyleProperties:function(){},_computeStyleProperties:function(){return t his._styleProperties},updateStyles:function(t){this._properties=null,t&&Polymer. Base.mixin(this.customStyle,t),this._styleCache.clear();for(var r,s=0;s<this._st yles.length;s++)r=this._styles[s],r=r.__importElement||r,r._apply();n&&e.updateN ativeStyleProperties(document.documentElement,this.customStyle)}};return r}(),fu nction(){"use strict";var e=Polymer.Base.serializeValueToAttribute,t=Polymer.Sty leProperties,n=Polymer.StyleTransformer,r=Polymer.StyleDefaults,s=Polymer.Settin gs.useNativeShadow,i=Polymer.Settings.useNativeCSSProperties;Polymer.Base._addFe ature({_prepStyleProperties:function(){i||(this._ownStylePropertyNames=this._sty les&&this._styles.length?t.decorateStyles(this._styles,this):null)},customStyle: null,getComputedStyleValue:function(e){return!i&&this._styleProperties&&this._st yleProperties[e]||getComputedStyle(this).getPropertyValue(e)},_setupStylePropert ies:function(){this.customStyle={},this._styleCache=null,this._styleProperties=n ull,this._scopeSelector=null,this._ownStyleProperties=null,this._customStyle=nul l},_needsStyleProperties:function(){return Boolean(!i&&this._ownStylePropertyNam es&&this._ownStylePropertyNames.length)},_validateApplyShim:function(){if(this._ _applyShimInvalid){Polymer.ApplyShim.transform(this._styles,this.__proto__);var e=n.elementStyles(this);if(s){var t=this._template.content.querySelector("style" );t&&(t.textContent=e)}else{var r=this._scopeStyle&&this._scopeStyle.nextSibling ;r&&(r.textContent=e)}}},_beforeAttached:function(){this._scopeSelector&&!this._ _stylePropertiesInvalid||!this._needsStyleProperties()||(this.__stylePropertiesI nvalid=!1,this._updateStyleProperties())},_findStyleHost:function(){for(var e,t= this;e=Polymer.dom(t).getOwnerRoot();){if(Polymer.isInstance(e.host))return e.ho st;t=e.host}return r},_updateStyleProperties:function(){var e,n=this._findStyleH ost();n._styleProperties||n._computeStyleProperties(),n._styleCache||(n._styleCa che=new Polymer.StyleCache);
4 t},updateStyles:function(e){e&&this.mixin(this.customStyle,e),i?t.updateNativeSt yleProperties(this,this.customStyle):(this.isAttached?this._needsStyleProperties ()?this._updateStyleProperties():this._styleProperties=null:this.__styleProperti esInvalid=!0,this._styleCache&&this._styleCache.clear(),this._updateRootStyles() )},_updateRootStyles:function(e){e=e||this.root;for(var t,n=Polymer.dom(e)._quer y(function(e){return e.shadyRoot||e.shadowRoot}),r=0,s=n.length;r<s&&(t=n[r]);r+ +)t.updateStyles&&t.updateStyles()}}),Polymer.updateStyles=function(e){r.updateS tyles(e),Polymer.Base._updateRootStyles(document)};var o=new Polymer.StyleCache; Polymer.customStyleCache=o;var a=n.SCOPE_NAME,l=t.XSCOPE_NAME}(),Polymer.Base._a ddFeature({_registerFeatures:function(){this._prepIs(),this._prepConstructor(),t his._prepStyles()},_finishRegisterFeatures:function(){this._prepTemplate(),this. _prepShimStyles(),this._prepAnnotations(),this._prepEffects(),this._prepBehavior s(),this._prepPropertyInfo(),this._prepBindings(),this._prepShady()},_prepBehavi or:function(e){this._addPropertyEffects(e.properties),this._addComplexObserverEf fects(e.observers),this._addHostAttributes(e.hostAttributes)},_initFeatures:func tion(){this._setupGestures(),this._setupConfigure(),this._setupStyleProperties() ,this._setupDebouncers(),this._setupShady(),this._registerHost(),this._template& &(this._poolContent(),this._beginHosting(),this._stampTemplate(),this._endHostin g(),this._marshalAnnotationReferences()),this._marshalInstanceEffects(),this._ma rshalBehaviors(),this._marshalHostAttributes(),this._marshalAttributes(),this._t ryReady()},_marshalBehavior:function(e){e.listeners&&this._listenListeners(e.lis teners)}}),function(){var e,t=Polymer.StyleProperties,n=Polymer.StyleUtil,r=Poly mer.CssParse,s=Polymer.StyleDefaults,i=Polymer.StyleTransformer,o=Polymer.ApplyS him,a=Polymer.Debounce,l=Polymer.Settings;Polymer({is:"custom-style",extends:"st yle",_template:null,properties:{include:String},ready:function(){this.__appliedE lement=this.__appliedElement||this,this.__cssBuild=n.getCssBuildType(this),this. __appliedElement!==this&&(this.__appliedElement.__cssBuild=this.__cssBuild),this ._tryApply()},attached:function(){this._tryApply()},_tryApply:function(){if(!thi s._appliesToDocument&&this.parentNode&&"dom-module"!==this.parentNode.localName) {this._appliesToDocument=!0;var e=this.__appliedElement;if(l.useNativeCSSPropert ies||(this.__needsUpdateStyles=s.hasStyleProperties(),s.addStyle(e)),e.textConte nt||this.include)this._apply(!0);else{var t=this,n=new MutationObserver(function (){n.disconnect(),t._apply(!0)});n.observe(e,{childList:!0})}}},_updateStyles:fu nction(){Polymer.updateStyles()},_apply:function(e){var t=this.__appliedElement; if(this.include&&(t.textContent=n.cssFromModules(this.include,!0)+t.textContent) ,t.textContent){var r=this.__cssBuild,s=n.isTargetedBuild(r);if(!l.useNativeCSSP roperties||!s){var a=n.rulesForStyle(t);if(s||n.forEachRule(a,function(e){i.docu mentRule(e),l.useNativeCSSProperties&&!r&&o.transformRule(e)}),l.useNativeCSSPro perties)t.textContent=n.toCssText(a);else{var h=this,c=function(){h._flushCustom Properties()};e?Polymer.RenderStatus.whenReady(c):c()}}}},_flushCustomProperties :function(){this.__needsUpdateStyles?(this.__needsUpdateStyles=!1,e=a(e,this._up dateStyles)):this._applyCustomProperties()},_applyCustomProperties:function(){va r e=this.__appliedElement;this._computeStyleProperties();var s=this._styleProper ties,i=n.rulesForStyle(e);i&&(e.textContent=n.toCssText(i,function(e){var n=e.cs sText=e.parsedCssText;e.propertyInfo&&e.propertyInfo.cssText&&(n=r.removeCustomP ropAssignment(n),e.cssText=t.valueForProperties(n,s))}))}})}(),Polymer.Templatiz er={properties:{__hideTemplateChildren__:{observer:"_showHideChildren"}},_instan ceProps:Polymer.nob,_parentPropPrefix:"_parent_",templatize:function(e){if(this. _templatized=e,e._content||(e._content=e.content),e._content._ctor)return this.c tor=e._content._ctor,void this._prepParentProperties(this.ctor.prototype,e);var t=Object.create(Polymer.Base);this._customPrepAnnotations(t,e),this._prepParentP roperties(t,e),t._prepEffects(),this._customPrepEffects(t),t._prepBehaviors(),t. _prepPropertyInfo(),t._prepBindings(),t._notifyPathUp=this._notifyPathUpImpl,t._ scopeElementClass=this._scopeElementClassImpl,t.listen=this._listenImpl,t._showH ideChildren=this._showHideChildrenImpl,t.__setPropertyOrig=this.__setProperty,t. __setProperty=this.__setPropertyImpl;var n=this._constructorImpl,r=function(e,t) {n.call(this,e,t)};r.prototype=t,t.constructor=r,e._content._ctor=r,this.ctor=r} ,_getRootDataHost:function(){return this.dataHost&&this.dataHost._rootDataHost|| this.dataHost},_showHideChildrenImpl:function(e){for(var t=this._children,n=0;n< t.length;n++){var r=t[n];Boolean(e)!=Boolean(r.__hideTemplateChildren__)&&(r.nod eType===Node.TEXT_NODE?e?(r.__polymerTextContent__=r.textContent,r.textContent=" "):r.textContent=r.__polymerTextContent__:r.style&&(e?(r.__polymerDisplay__=r.st yle.display,r.style.display="none"):r.style.display=r.__polymerDisplay__)),r.__h ideTemplateChildren__=e}},__setPropertyImpl:function(e,t,n,r){r&&r.__hideTemplat eChildren__&&"textContent"==e&&(e="__polymerTextContent__"),this.__setPropertyOr ig(e,t,n,r)},_debounceTemplate:function(e){Polymer.dom.addDebouncer(this.debounc e("_debounceTemplate",e))},_flushTemplates:function(){Polymer.dom.flush()},_cust omPrepEffects:function(e){var t=e._parentProps;for(var n in t)e._addPropertyEffe ct(n,"function",this._createHostPropEffector(n));for(n in this._instanceProps)e. _addPropertyEffect(n,"function",this._createInstancePropEffector(n))},_customPre pAnnotations:function(e,t){e._template=t;var n=t._content;if(!n._notes){var r=e. _rootDataHost;r&&(Polymer.Annotations.prepElement=function(){r._prepElement()}), n._notes=Polymer.Annotations.parseAnnotations(t),Polymer.Annotations.prepElement =null,this._processAnnotations(n._notes)}e._notes=n._notes,e._parentProps=n._par entProps},_prepParentProperties:function(e,t){var n=this._parentProps=e._parentP rops;if(this._forwardParentProp&&n){var r,s=e._parentPropProto;if(!s){for(r in t his._instanceProps)delete n[r];s=e._parentPropProto=Object.create(null),t!=this& &(Polymer.Bind.prepareModel(s),Polymer.Base.prepareModelNotifyPath(s));for(r in n){var i=this._parentPropPrefix+r,o=[{kind:"function",effect:this._createForward PropEffector(r),fn:Polymer.Bind._functionEffect},{kind:"notify",fn:Polymer.Bind. _notifyEffect,effect:{event:Polymer.CaseMap.camelToDashCase(i)+"-changed"}}];Pol ymer.Bind._createAccessors(s,i,o)}}var a=this;t!=this&&(Polymer.Bind.prepareInst ance(t),t._forwardParentProp=function(e,t){a._forwardParentProp(e,t)}),this._ext endTemplate(t,s),t._pathEffector=function(e,t,n){return a._pathEffectorImpl(e,t, n)}}},_createForwardPropEffector:function(e){return function(t,n){this._forwardP arentProp(e,n)}},_createHostPropEffector:function(e){var t=this._parentPropPrefi x;return function(n,r){this.dataHost._templatized[t+e]=r}},_createInstancePropEf fector:function(e){return function(t,n,r,s){s||this.dataHost._forwardInstancePro p(this,e,n)}},_extendTemplate:function(e,t){var n=Object.getOwnPropertyNames(t); t._propertySetter&&(e._propertySetter=t._propertySetter);for(var r,s=0;s<n.lengt h&&(r=n[s]);s++){var i=e[r],o=Object.getOwnPropertyDescriptor(t,r);Object.define Property(e,r,o),void 0!==i&&e._propertySetter(r,i)}},_showHideChildren:function( e){},_forwardInstancePath:function(e,t,n){},_forwardInstanceProp:function(e,t,n) {},_notifyPathUpImpl:function(e,t){var n=this.dataHost,r=e.indexOf("."),s=r<0?e: e.slice(0,r);n._forwardInstancePath.call(n,this,e,t),s in n._parentProps&&n._tem platized._notifyPath(n._parentPropPrefix+e,t)},_pathEffectorImpl:function(e,t,n) {if(this._forwardParentPath&&0===e.indexOf(this._parentPropPrefix)){var r=e.subs tring(this._parentPropPrefix.length),s=this._modelForPath(r);s in this._parentPr ops&&this._forwardParentPath(r,t)}Polymer.Base._pathEffector.call(this._templati zed,e,t,n)},_constructorImpl:function(e,t){this._rootDataHost=t._getRootDataHost (),this._setupConfigure(e),this._registerHost(t),this._beginHosting(),this.root= this.instanceTemplate(this._template),this.root.__noContent=!this._notes._hasCon tent,this.root.__styleScoped=!0,this._endHosting(),this._marshalAnnotatedNodes() ,this._marshalInstanceEffects(),this._marshalAnnotatedListeners();for(var n=[],r =this.root.firstChild;r;r=r.nextSibling)n.push(r),r._templateInstance=this;this. _children=n,t.__hideTemplateChildren__&&this._showHideChildren(!0),this._tryRead y()},_listenImpl:function(e,t,n){var r=this,s=this._rootDataHost,i=s._createEven tHandler(e,t,n),o=function(e){e.model=r,i(e)};s._listen(e,t,o)},_scopeElementCla ssImpl:function(e,t){var n=this._rootDataHost;return n?n._scopeElementClass(e,t) :t},stamp:function(e){if(e=e||{},this._parentProps){var t=this._templatized;for( var n in this._parentProps)void 0===e[n]&&(e[n]=t[this._parentPropPrefix+n])}ret urn new this.ctor(e,this)},modelForElement:function(e){for(var t;e;)if(t=e._temp lateInstance){if(t.dataHost==this)return t;e=t.dataHost}else e=e.parentNode}},Po lymer({is:"dom-template",extends:"template",_template:null,behaviors:[Polymer.Te mplatizer],ready:function(){this.templatize(this)}}),Polymer._collections=new We akMap,Polymer.Collection=function(e){Polymer._collections.set(e,this),this.userA rray=e,this.store=e.slice(),this.initMap()},Polymer.Collection.prototype={constr uctor:Polymer.Collection,initMap:function(){for(var e=this.omap=new WeakMap,t=th is.pmap={},n=this.store,r=0;r<n.length;r++){var s=n[r];s&&"object"==typeof s?e.s et(s,r):t[s]=r}},add:function(e){var t=this.store.push(e)-1;return e&&"object"== typeof e?this.omap.set(e,t):this.pmap[e]=t,"#"+t},removeKey:function(e){(e=this. _parseKey(e))&&(this._removeFromMap(this.store[e]),delete this.store[e])},_remov eFromMap:function(e){e&&"object"==typeof e?this.omap.delete(e):delete this.pmap[ e]},remove:function(e){var t=this.getKey(e);return this.removeKey(t),t},getKey:f unction(e){var t;if(t=e&&"object"==typeof e?this.omap.get(e):this.pmap[e],void 0 !=t)return"#"+t},getKeys:function(){return Object.keys(this.store).map(function( e){return"#"+e})},_parseKey:function(e){if(e&&"#"==e[0])return e.slice(1)},setIt em:function(e,t){if(e=this._parseKey(e)){var n=this.store[e];n&&this._removeFrom Map(n),t&&"object"==typeof t?this.omap.set(t,e):this.pmap[t]=e,this.store[e]=t}} ,getItem:function(e){if(e=this._parseKey(e))return this.store[e]},getItems:funct ion(){var e=[],t=this.store;for(var n in t)e.push(t[n]);return e},_applySplices: function(e){for(var t,n,r={},s=0;s<e.length&&(n=e[s]);s++){n.addedKeys=[];for(va r i=0;i<n.removed.length;i++)t=this.getKey(n.removed[i]),r[t]=r[t]?null:-1;for(i =0;i<n.addedCount;i++){var o=this.userArray[n.index+i];t=this.getKey(o),t=void 0 ===t?this.add(o):t,r[t]=r[t]?null:1,n.addedKeys.push(t)}}var a=[],l=[];for(t in r)r[t]<0&&(this.removeKey(t),a.push(t)),r[t]>0&&l.push(t);return[{removed:a,adde d:l}]}},Polymer.Collection.get=function(e){return Polymer._collections.get(e)||n ew Polymer.Collection(e)},Polymer.Collection.applySplices=function(e,t){var n=Po lymer._collections.get(e);return n?n._applySplices(t):null},Polymer({is:"dom-rep eat",extends:"template",_template:null,properties:{items:{type:Array},as:{type:S tring,value:"item"},indexAs:{type:String,value:"index"},sort:{type:Function,obse rver:"_sortChanged"},filter:{type:Function,observer:"_filterChanged"},observe:{t ype:String,observer:"_observeChanged"},delay:Number,renderedItemCount:{type:Numb er,notify:!0,readOnly:!0},initialCount:{type:Number,observer:"_initializeChunkin g"},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,compute d:"_computeFrameTime(targetFramerate)"}},behaviors:[Polymer.Templatizer],observe rs:["_itemsChanged(items.*)"],created:function(){this._instances=[],this._pool=[ ],this._limit=1/0;var e=this;this._boundRenderChunk=function(){e._renderChunk()} },detached:function(){this.__isDetached=!0;for(var e=0;e<this._instances.length; e++)this._detachInstance(e)},attached:function(){if(this.__isDetached){this.__is Detached=!1;for(var e=Polymer.dom(Polymer.dom(this).parentNode),t=0;t<this._inst ances.length;t++)this._attachInstance(t,e)}},ready:function(){this._instanceProp s={__key__:!0},this._instanceProps[this.as]=!0,this._instanceProps[this.indexAs] =!0,this.ctor||this.templatize(this)},_sortChanged:function(e){var t=this._getRo otDataHost();this._sortFn=e&&("function"==typeof e?e:function(){return t[e].appl y(t,arguments)}),this._needFullRefresh=!0,this.items&&this._debounceTemplate(thi s._render)},_filterChanged:function(e){var t=this._getRootDataHost();this._filte rFn=e&&("function"==typeof e?e:function(){return t[e].apply(t,arguments)}),this. _needFullRefresh=!0,this.items&&this._debounceTemplate(this._render)},_computeFr ameTime:function(e){return Math.ceil(1e3/e)},_initializeChunking:function(){this .initialCount&&(this._limit=this.initialCount,this._chunkCount=this.initialCount ,this._lastChunkTime=performance.now())},_tryRenderChunk:function(){this.items&& this._limit<this.items.length&&this.debounce("renderChunk",this._requestRenderCh unk)},_requestRenderChunk:function(){requestAnimationFrame(this._boundRenderChun k)},_renderChunk:function(){var e=performance.now(),t=this._targetFrameTime/(e-t his._lastChunkTime);this._chunkCount=Math.round(this._chunkCount*t)||1,this._lim it+=this._chunkCount,this._lastChunkTime=e,this._debounceTemplate(this._render)} ,_observeChanged:function(){this._observePaths=this.observe&&this.observe.replac e(".*",".").split(" ")},_itemsChanged:function(e){if("items"==e.path)Array.isArr ay(this.items)?this.collection=Polymer.Collection.get(this.items):this.items?thi s._error(this._logf("dom-repeat","expected array for `items`, found",this.items) ):this.collection=null,this._keySplices=[],this._indexSplices=[],this._needFullR efresh=!0,this._initializeChunking(),this._debounceTemplate(this._render);else i f("items.splices"==e.path)this._keySplices=this._keySplices.concat(e.value.keySp lices),this._indexSplices=this._indexSplices.concat(e.value.indexSplices),this._ debounceTemplate(this._render);else{var t=e.path.slice(6);this._forwardItemPath( t,e.value),this._checkObservedPaths(t)}},_checkObservedPaths:function(e){if(this ._observePaths){e=e.substring(e.indexOf(".")+1);for(var t=this._observePaths,n=0 ;n<t.length;n++)if(0===e.indexOf(t[n]))return this._needFullRefresh=!0,void(this .delay?this.debounce("render",this._render,this.delay):this._debounceTemplate(th is._render))}},render:function(){this._needFullRefresh=!0,this._debounceTemplate (this._render),this._flushTemplates()},_render:function(){this._needFullRefresh? (this._applyFullRefresh(),this._needFullRefresh=!1):this._keySplices.length&&(th is._sortFn?this._applySplicesUserSort(this._keySplices):this._filterFn?this._app lyFullRefresh():this._applySplicesArrayOrder(this._indexSplices)),this._keySplic es=[],this._indexSplices=[];for(var e=this._keyToInstIdx={},t=this._instances.le ngth-1;t>=0;t--){var n=this._instances[t];n.isPlaceholder&&t<this._limit?n=this. _insertInstance(t,n.__key__):!n.isPlaceholder&&t>=this._limit&&(n=this._downgrad eInstance(t,n.__key__)),e[n.__key__]=t,n.isPlaceholder||n.__setProperty(this.ind exAs,t,!0)}this._pool.length=0,this._setRenderedItemCount(this._instances.length ),this.fire("dom-change"),this._tryRenderChunk()},_applyFullRefresh:function(){v ar e,t=this.collection;if(this._sortFn)e=t?t.getKeys():[];else{e=[];var n=this.i tems;if(n)for(var r=0;r<n.length;r++)e.push(t.getKey(n[r]))}var s=this;for(this. _filterFn&&(e=e.filter(function(e){return s._filterFn(t.getItem(e))})),this._sor tFn&&e.sort(function(e,n){return s._sortFn(t.getItem(e),t.getItem(n))}),r=0;r<e. length;r++){var i=e[r],o=this._instances[r];o?(o.__key__=i,!o.isPlaceholder&&r<t his._limit&&o.__setProperty(this.as,t.getItem(i),!0)):r<this._limit?this._insert Instance(r,i):this._insertPlaceholder(r,i)}for(var a=this._instances.length-1;a> =r;a--)this._detachAndRemoveInstance(a)},_numericSort:function(e,t){return e-t}, _applySplicesUserSort:function(e){for(var t,n,r=this.collection,s={},i=0;i<e.len gth&&(n=e[i]);i++){for(var o=0;o<n.removed.length;o++)t=n.removed[o],s[t]=s[t]?n ull:-1;for(o=0;o<n.added.length;o++)t=n.added[o],s[t]=s[t]?null:1}var a=[],l=[]; for(t in s)s[t]===-1&&a.push(this._keyToInstIdx[t]),1===s[t]&&l.push(t);if(a.len gth)for(a.sort(this._numericSort),i=a.length-1;i>=0;i--){var h=a[i];void 0!==h&& this._detachAndRemoveInstance(h)}var c=this;if(l.length){this._filterFn&&(l=l.fi lter(function(e){return c._filterFn(r.getItem(e))})),l.sort(function(e,t){return c._sortFn(r.getItem(e),r.getItem(t))});var u=0;for(i=0;i<l.length;i++)u=this._i nsertRowUserSort(u,l[i])}},_insertRowUserSort:function(e,t){for(var n=this.colle ction,r=n.getItem(t),s=this._instances.length-1,i=-1;e<=s;){var o=e+s>>1,a=this. _instances[o].__key__,l=this._sortFn(n.getItem(a),r);if(l<0)e=o+1;else{if(!(l>0) ){i=o;break}s=o-1}}return i<0&&(i=s+1),this._insertPlaceholder(i,t),i},_applySpl icesArrayOrder:function(e){for(var t,n=0;n<e.length&&(t=e[n]);n++){for(var r=0;r <t.removed.length;r++)this._detachAndRemoveInstance(t.index);for(r=0;r<t.addedKe ys.length;r++)this._insertPlaceholder(t.index+r,t.addedKeys[r])}},_detachInstanc e:function(e){var t=this._instances[e];if(!t.isPlaceholder){for(var n=0;n<t._chi ldren.length;n++){var r=t._children[n];Polymer.dom(t.root).appendChild(r)}return t}},_attachInstance:function(e,t){var n=this._instances[e];n.isPlaceholder||t.i nsertBefore(n.root,this)},_detachAndRemoveInstance:function(e){var t=this._detac hInstance(e);t&&this._pool.push(t),this._instances.splice(e,1)},_insertPlacehold er:function(e,t){this._instances.splice(e,0,{isPlaceholder:!0,__key__:t})},_stam pInstance:function(e,t){var n={__key__:t};return n[this.as]=this.collection.getI tem(t),n[this.indexAs]=e,this.stamp(n)},_insertInstance:function(e,t){var n=this ._pool.pop();n?(n.__setProperty(this.as,this.collection.getItem(t),!0),n.__setPr operty("__key__",t,!0)):n=this._stampInstance(e,t);var r=this._instances[e+1],s= r&&!r.isPlaceholder?r._children[0]:this,i=Polymer.dom(this).parentNode;return Po lymer.dom(i).insertBefore(n.root,s),this._instances[e]=n,n},_downgradeInstance:f unction(e,t){var n=this._detachInstance(e);return n&&this._pool.push(n),n={isPla ceholder:!0,__key__:t},this._instances[e]=n,n},_showHideChildren:function(e){for (var t=0;t<this._instances.length;t++)this._instances[t]._showHideChildren(e)},_ forwardInstanceProp:function(e,t,n){if(t==this.as){var r;r=this._sortFn||this._f ilterFn?this.items.indexOf(this.collection.getItem(e.__key__)):e[this.indexAs],t his.set("items."+r,n)}},_forwardInstancePath:function(e,t,n){0===t.indexOf(this. as+".")&&this._notifyPath("items."+e.__key__+"."+t.slice(this.as.length+1),n)},_ forwardParentProp:function(e,t){for(var n,r=this._instances,s=0;s<r.length&&(n=r [s]);s++)n.isPlaceholder||n.__setProperty(e,t,!0)},_forwardParentPath:function(e ,t){for(var n,r=this._instances,s=0;s<r.length&&(n=r[s]);s++)n.isPlaceholder||n. _notifyPath(e,t,!0)},_forwardItemPath:function(e,t){if(this._keyToInstIdx){var n =e.indexOf("."),r=e.substring(0,n<0?e.length:n),s=this._keyToInstIdx[r],i=this._ instances[s];i&&!i.isPlaceholder&&(n>=0?(e=this.as+"."+e.substring(n+1),i._notif yPath(e,t,!0)):i.__setProperty(this.as,t,!0))}},itemForElement:function(e){var t =this.modelForElement(e);return t&&t[this.as]},keyForElement:function(e){var t=t his.modelForElement(e);return t&&t.__key__},indexForElement:function(e){var t=th is.modelForElement(e);return t&&t[this.indexAs]}}),Polymer({is:"array-selector", _template:null,properties:{items:{type:Array,observer:"clearSelection"},multi:{t ype:Boolean,value:!1,observer:"clearSelection"},selected:{type:Object,notify:!0} ,selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}},clearSelec tion:function(){if(Array.isArray(this.selected))for(var e=0;e<this.selected.leng th;e++)this.unlinkPaths("selected."+e);else this.unlinkPaths("selected"),this.un linkPaths("selectedItem");this.multi?this.selected&&!this.selected.length||(this .selected=[],this._selectedColl=Polymer.Collection.get(this.selected)):(this.sel ected=null,this._selectedColl=null),this.selectedItem=null},isSelected:function( e){return this.multi?void 0!==this._selectedColl.getKey(e):this.selected==e},des elect:function(e){if(this.multi){if(this.isSelected(e)){var t=this._selectedColl .getKey(e);this.arrayDelete("selected",e),this.unlinkPaths("selected."+t)}}else this.selected=null,this.selectedItem=null,this.unlinkPaths("selected"),this.unli nkPaths("selectedItem")},select:function(e){var t=Polymer.Collection.get(this.it ems),n=t.getKey(e);if(this.multi)if(this.isSelected(e))this.toggle&&this.deselec t(e);else{this.push("selected",e);var r=this._selectedColl.getKey(e);this.linkPa ths("selected."+r,"items."+n)}else this.toggle&&e==this.selected?this.deselect() :(this.selected=e,this.selectedItem=e,this.linkPaths("selected","items."+n),this .linkPaths("selectedItem","items."+n))}}),Polymer({is:"dom-if",extends:"template ",_template:null,properties:{if:{type:Boolean,value:!1,observer:"_queueRender"}, restamp:{type:Boolean,value:!1,observer:"_queueRender"}},behaviors:[Polymer.Temp latizer],_queueRender:function(){this._debounceTemplate(this._render)},detached: function(){this.parentNode&&(this.parentNode.nodeType!=Node.DOCUMENT_FRAGMENT_NO DE||Polymer.Settings.hasShadow&&this.parentNode instanceof ShadowRoot)||this._te ardownInstance()},attached:function(){this.if&&this.ctor&&this.async(this._ensur eInstance)},render:function(){this._flushTemplates()},_render:function(){this.if ?(this.ctor||this.templatize(this),this._ensureInstance(),this._showHideChildren ()):this.restamp&&this._teardownInstance(),!this.restamp&&this._instance&&this._ showHideChildren(),this.if!=this._lastIf&&(this.fire("dom-change"),this._lastIf= this.if)},_ensureInstance:function(){var e=Polymer.dom(this).parentNode;if(e){va r t=Polymer.dom(e);if(this._instance){var n=this._instance._children;if(n&&n.len gth){var r=Polymer.dom(this).previousSibling;if(r!==n[n.length-1])for(var s,i=0; i<n.length&&(s=n[i]);i++)t.insertBefore(s,this)}}else{this._instance=this.stamp( );var o=this._instance.root;t.insertBefore(o,this)}}},_teardownInstance:function (){if(this._instance){var e=this._instance._children;if(e&&e.length)for(var t,n= Polymer.dom(Polymer.dom(e[0]).parentNode),r=0;r<e.length&&(t=e[r]);r++)n.removeC hild(t);this._instance=null}},_showHideChildren:function(){var e=this.__hideTemp lateChildren__||!this.if;this._instance&&this._instance._showHideChildren(e)},_f orwardParentProp:function(e,t){this._instance&&(this._instance[e]=t)},_forwardPa rentPath:function(e,t){this._instance&&this._instance._notifyPath(e,t,!0)}}),Pol ymer({is:"dom-bind",extends:"template",_template:null,created:function(){var e=t his;Polymer.RenderStatus.whenReady(function(){"loading"==document.readyState?doc ument.addEventListener("DOMContentLoaded",function(){e._markImportsReady()}):e._ markImportsReady()})},_ensureReady:function(){this._readied||this._readySelf()}, _markImportsReady:function(){this._importsReady=!0,this._ensureReady()},_registe rFeatures:function(){this._prepConstructor()},_insertChildren:function(){var e=P olymer.dom(Polymer.dom(this).parentNode);e.insertBefore(this.root,this)},_remove Children:function(){if(this._children)for(var e=0;e<this._children.length;e++)th is.root.appendChild(this._children[e])},_initFeatures:function(){},_scopeElement Class:function(e,t){return this.dataHost?this.dataHost._scopeElementClass(e,t):t },_prepConfigure:function(){var e={};for(var t in this._propertyEffects)e[t]=thi s[t];var n=this._setupConfigure;this._setupConfigure=function(){n.call(this,e)}} ,attached:function(){this._importsReady&&this.render()},detached:function(){this ._removeChildren()},render:function(){this._ensureReady(),this._children||(this. _template=this,this._prepAnnotations(),this._prepEffects(),this._prepBehaviors() ,this._prepConfigure(),this._prepBindings(),this._prepPropertyInfo(),Polymer.Bas e._initFeatures.call(this),this._children=Polymer.TreeApi.arrayCopyChildNodes(th is.root)),this._insertChildren(),this.fire("dom-change")}})</script> <script>win dow.SwarmingBehaviors=window.SwarmingBehaviors||{},function(){SwarmingBehaviors. CommonBehavior={_botLink:function(n){if(n)return"/newui/bot?id="+n},_botListLink :function(n,e){n=n||[],e=e||[];var t=[];n.forEach(function(n){t.push(n.key+":"+n .value)});var i={filters:t,columns:e};return"/newui/botlist?"+sk.query.fromParam Set(i)},_getJsonAsync:function(n,e,t,i,o){if(!n||!e||!t)return void console.log( "Need at least a polymer element to bind to, a busy element, and a url");this.se t(t,!0);var s=new Date;this._jsonAsync=this._jsonAsync||{},this._jsonAsync[n]=s, o&&(e=e+"?"+sk.query.fromParamSet(o)),sk.request("GET",e,"",i).then(JSON.parse). then(function(e){return this._jsonAsync[n]!==s?(console.log("ignoring result bec ause a second request happened."),void this.set(t,!1)):(this.set(n,e),void this. set(t,!1))}.bind(this)).catch(function(i){return console.log("Reason for failure of request to "+e,i),this._jsonAsync[n]!==s?(console.log("ignoring failure beca use a second request happened."),void this.set(t,!1)):(this.set(n,!1),void this. set(t,!1))}.bind(this))},_humanDuration:function(n){return sk.human.strDuration( n)||"0s"},_not:function(n){return!n},_or:function(){for(var n=!1,e=0;e<arguments .length;e++)n=n||arguments[e];return n},_taskLink:function(n){if(n)return"/newui /task?id="+n},_timeDiffApprox:function(n){return n?sk.human.diffDate(n.getTime() ):"eons"},_timeDiffExact:function(n,e){return n?(e||(e=new Date),this._humanDura tion((e.getTime()-n.getTime())/1e3)):"eons"}}}()</script> <script>Polymer.AppLay out=Polymer.AppLayout||{},Polymer.AppLayout._scrollEffects=Polymer.AppLayout._sc rollEffects||{},Polymer.AppLayout.scrollTimingFunction=function(o,l,e,r){return o/=r,-e*o*(o-2)+l},Polymer.AppLayout.registerEffect=function(o,l){if(null!=Polym er.AppLayout._scrollEffects[o])throw new Error("effect `"+o+"` is already regist ered.");Polymer.AppLayout._scrollEffects[o]=l},Polymer.AppLayout.scroll=function (o){o=o||{};var l=document.documentElement,e=o.target||l,r="scrollBehavior"in e. style&&e.scroll,t="app-layout-silent-scroll",s=o.top||0,c=o.left||0,i=e===l?wind ow.scrollTo:function(o,l){e.scrollLeft=o,e.scrollTop=l};if("smooth"===o.behavior )if(r)e.scroll(o);else{var n=Polymer.AppLayout.scrollTimingFunction,a=Date.now() ,p=e===l?window.pageYOffset:e.scrollTop,u=e===l?window.pageXOffset:e.scrollLeft, y=s-p,f=c-u,m=300,L=function o(){var l=Date.now(),e=l-a;e<m?(i(n(e,u,f,m),n(e,p, y,m)),requestAnimationFrame(o)):i(c,s)}.bind(this);L()}else"silent"===o.behavior ?(l.classList.add(t),clearInterval(Polymer.AppLayout._scrollTimer),Polymer.AppLa yout._scrollTimer=setTimeout(function(){l.classList.remove(t),Polymer.AppLayout. _scrollTimer=null},100),i(c,s)):i(c,s)}</script> <style>[hidden]{display:none!im portant}</style> <style is="custom-style">:root{--layout:{display:-ms-flexbox;di splay:-webkit-flex;display:flex};--layout-inline:{display:-ms-inline-flexbox;dis play:-webkit-inline-flex;display:inline-flex};--layout-horizontal:{@apply(--layo ut);-ms-flex-direction:row;-webkit-flex-direction:row;flex-direction:row};--layo ut-horizontal-reverse:{@apply(--layout);-ms-flex-direction:row-reverse;-webkit-f lex-direction:row-reverse;flex-direction:row-reverse};--layout-vertical:{@apply( --layout);-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction :column};--layout-vertical-reverse:{@apply(--layout);-ms-flex-direction:column-r everse;-webkit-flex-direction:column-reverse;flex-direction:column-reverse};--la yout-wrap:{-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap};--layout-wr ap-reverse:{-ms-flex-wrap:wrap-reverse;-webkit-flex-wrap:wrap-reverse;flex-wrap: wrap-reverse};--layout-flex-auto:{-ms-flex:1 1 auto;-webkit-flex:1 1 auto;flex:1 1 auto};--layout-flex-none:{-ms-flex:none;-webkit-flex:none;flex:none};--layout -flex:{-ms-flex:1 1 0px;-webkit-flex:1;flex:1;-webkit-flex-basis:0px;flex-basis: 0px};--layout-flex-2:{-ms-flex:2;-webkit-flex:2;flex:2};--layout-flex-3:{-ms-fle x:3;-webkit-flex:3;flex:3};--layout-flex-4:{-ms-flex:4;-webkit-flex:4;flex:4};-- layout-flex-5:{-ms-flex:5;-webkit-flex:5;flex:5};--layout-flex-6:{-ms-flex:6;-we bkit-flex:6;flex:6};--layout-flex-7:{-ms-flex:7;-webkit-flex:7;flex:7};--layout- flex-8:{-ms-flex:8;-webkit-flex:8;flex:8};--layout-flex-9:{-ms-flex:9;-webkit-fl ex:9;flex:9};--layout-flex-10:{-ms-flex:10;-webkit-flex:10;flex:10};--layout-fle x-11:{-ms-flex:11;-webkit-flex:11;flex:11};--layout-flex-12:{-ms-flex:12;-webkit -flex:12;flex:12};--layout-start:{-ms-flex-align:start;-webkit-align-items:flex- start;align-items:flex-start};--layout-center:{-ms-flex-align:center;-webkit-ali gn-items:center;align-items:center};--layout-end:{-ms-flex-align:end;-webkit-ali gn-items:flex-end;align-items:flex-end};--layout-baseline:{-ms-flex-align:baseli ne;-webkit-align-items:baseline;align-items:baseline};--layout-start-justified:{ -ms-flex-pack:start;-webkit-justify-content:flex-start;justify-content:flex-star t};--layout-center-justified:{-ms-flex-pack:center;-webkit-justify-content:cente r;justify-content:center};--layout-end-justified:{-ms-flex-pack:end;-webkit-just ify-content:flex-end;justify-content:flex-end};--layout-around-justified:{-ms-fl ex-pack:distribute;-webkit-justify-content:space-around;justify-content:space-ar ound};--layout-justified:{-ms-flex-pack:justify;-webkit-justify-content:space-be tween;justify-content:space-between};--layout-center-center:{@apply(--layout-cen ter);@apply(--layout-center-justified)};--layout-self-start:{-ms-align-self:flex -start;-webkit-align-self:flex-start;align-self:flex-start};--layout-self-center :{-ms-align-self:center;-webkit-align-self:center;align-self:center};--layout-se lf-end:{-ms-align-self:flex-end;-webkit-align-self:flex-end;align-self:flex-end} ;--layout-self-stretch:{-ms-align-self:stretch;-webkit-align-self:stretch;align- self:stretch};--layout-self-baseline:{-ms-align-self:baseline;-webkit-align-self :baseline;align-self:baseline};--layout-start-aligned:{-ms-flex-line-pack:start; -ms-align-content:flex-start;-webkit-align-content:flex-start;align-content:flex -start};--layout-end-aligned:{-ms-flex-line-pack:end;-ms-align-content:flex-end; -webkit-align-content:flex-end;align-content:flex-end};--layout-center-aligned:{ -ms-flex-line-pack:center;-ms-align-content:center;-webkit-align-content:center; align-content:center};--layout-between-aligned:{-ms-flex-line-pack:justify;-ms-a lign-content:space-between;-webkit-align-content:space-between;align-content:spa ce-between};--layout-around-aligned:{-ms-flex-line-pack:distribute;-ms-align-con tent:space-around;-webkit-align-content:space-around;align-content:space-around} ;--layout-block:{display:block};--layout-invisible:{visibility:hidden!important} ;--layout-relative:{position:relative};--layout-fit:{position:absolute;top:0;rig ht:0;bottom:0;left:0};--layout-scroll:{-webkit-overflow-scrolling:touch;overflow :auto};--layout-fullbleed:{margin:0;height:100vh};--layout-fixed-top:{position:f ixed;top:0;left:0;right:0};--layout-fixed-right:{position:fixed;top:0;right:0;bo ttom:0};--layout-fixed-bottom:{position:fixed;right:0;bottom:0;left:0};--layout- fixed-left:{position:fixed;top:0;bottom:0;left:0};}</style> <dom-module id="app- drawer" assetpath="/res/imp/bower_components/app-layout/app-drawer/"> <template> <style>:host{position:fixed;top:-120px;right:0;bottom:-120px;left:0;visibility: hidden;transition:visibility .2s ease}:host([opened]){visibility:visible}:host([ persistent]){width:var(--app-drawer-width,256px)}:host([persistent][position=lef t]){right:auto}:host([persistent][position=right]){left:auto}#contentContainer{p osition:absolute;top:0;bottom:0;left:0;width:var(--app-drawer-width,256px);paddi ng:120px 0;transition:.2s ease;transition-property:-webkit-transform;transition- property:transform;-webkit-transform:translate3d(-100%,0,0);transform:translate3 d(-100%,0,0);background-color:#FFF;@apply(--app-drawer-content-container)}:host( [position=right])>#contentContainer{right:0;left:auto;-webkit-transform:translat e3d(100%,0,0);transform:translate3d(100%,0,0)}:host([swipe-open])>#contentContai ner::after{position:fixed;top:0;bottom:0;left:100%;visibility:visible;width:20px ;content:''}:host([swipe-open][position=right])>#contentContainer::after{right:1 00%;left:auto}:host([opened])>#contentContainer{-webkit-transform:translate3d(0, 0,0);transform:translate3d(0,0,0)}#scrim{position:absolute;top:0;right:0;bottom: 0;left:0;transition:opacity .2s ease;-webkit-transform:translateZ(0);transform:t ranslateZ(0);opacity:0;background:var(--app-drawer-scrim-background,rgba(0,0,0,. 5))}:host([opened])>#scrim{opacity:1}:host([opened][persistent])>#scrim{visibili ty:hidden;opacity:0}</style> <div id="scrim" on-tap="close"></div> <div id="cont entContainer"> <content></content> </div> </template> <script>Polymer({is:"app-d rawer",properties:{opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0 },persistent:{type:Boolean,value:!1,reflectToAttribute:!0},align:{type:String,va lue:"left"},position:{type:String,readOnly:!0,reflectToAttribute:!0},swipeOpen:{ type:Boolean,value:!1,reflectToAttribute:!0},noFocusTrap:{type:Boolean,value:!1} },observers:["resetLayout(position, isAttached)","_resetPosition(align, isAttach ed)"],_translateOffset:0,_trackDetails:null,_drawerState:0,_boundEscKeydownHandl er:null,_firstTabStop:null,_lastTabStop:null,ready:function(){this._setTransitio nDuration("0s")},attached:function(){Polymer.RenderStatus.afterNextRender(this,f unction(){this._setTransitionDuration(""),this._boundEscKeydownHandler=this._esc KeydownHandler.bind(this),this._resetDrawerState(),this.addEventListener("transi tionend",this._transitionend.bind(this)),this.addEventListener("keydown",this._t abKeydownHandler.bind(this)),this.listen(this,"track","_track"),this.setScrollDi rection("y")})},detached:function(){document.removeEventListener("keydown",this. _boundEscKeydownHandler)},open:function(){this.opened=!0},close:function(){this. opened=!1},toggle:function(){this.opened=!this.opened},getWidth:function(){retur n this.$.contentContainer.offsetWidth},resetLayout:function(){this.fire("app-dra wer-reset-layout")},_isRTL:function(){return"rtl"===window.getComputedStyle(this ).direction},_resetPosition:function(){switch(this.align){case"start":return voi d this._setPosition(this._isRTL()?"right":"left");case"end":return void this._se tPosition(this._isRTL()?"left":"right")}this._setPosition(this.align)},_escKeydo wnHandler:function(t){var i=27;t.keyCode===i&&(t.preventDefault(),this.close())} ,_track:function(t){if(!this.persistent)switch(t.preventDefault(),t.detail.state ){case"start":this._trackStart(t);break;case"track":this._trackMove(t);break;cas e"end":this._trackEnd(t)}},_trackStart:function(t){this._drawerState=this._DRAWE R_STATE.TRACKING,this._setTransitionDuration("0s"),this.style.visibility="visibl e";var i=this.$.contentContainer.getBoundingClientRect();"left"===this.position? this._translateOffset=i.left:this._translateOffset=i.right-window.innerWidth,thi s._trackDetails=[]},_trackMove:function(t){this._translateDrawer(t.detail.dx+thi s._translateOffset),this._trackDetails.push({dx:t.detail.dx,timeStamp:Date.now() })},_trackEnd:function(t){var i=t.detail.dx+this._translateOffset,e=this.getWidt h(),s="left"===this.position,n=s?i>=0||i<=-e:i<=0||i>=e;if(!n){var a=this._track Details;if(this._trackDetails=null,this._flingDrawer(t,a),this._drawerState===th is._DRAWER_STATE.FLINGING)return}var r=e/2;t.detail.dx<-r?this.opened="right"=== this.position:t.detail.dx>r&&(this.opened="left"===this.position),n&&this._reset DrawerState(),this._setTransitionDuration(""),this._resetDrawerTranslate(),this. style.visibility=""},_calculateVelocity:function(t,i){for(var e,s=Date.now(),n=s -100,a=0,r=i.length-1;a<=r;){var o=a+r>>1,h=i[o];h.timeStamp>=n?(e=h,r=o-1):a=o+ 1}if(e){var d=t.detail.dx-e.dx,l=s-e.timeStamp||1;return d/l}return 0},_flingDra wer:function(t,i){var e=this._calculateVelocity(t,i);if(!(Math.abs(e)<this._MIN_ FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;var s,n=t.detail .dx+this._translateOffset,a=this.getWidth(),r="left"===this.position,o=e>0,h=!o& &r,d=o&&!r;s=h?-(n+a):d?a-n:-n,o?(e=Math.max(e,this._MIN_TRANSITION_VELOCITY),th is.opened="left"===this.position):(e=Math.min(e,-this._MIN_TRANSITION_VELOCITY), this.opened="right"===this.position),this._setTransitionDuration(this._FLING_INI TIAL_SLOPE*s/e+"ms"),this._setTransitionTimingFunction(this._FLING_TIMING_FUNCTI ON),this._resetDrawerTranslate()}},_transitionend:function(t){var i=Polymer.dom( t).rootTarget;i!==this.$.contentContainer&&i!==this.$.scrim||(this._drawerState= ==this._DRAWER_STATE.FLINGING&&(this._setTransitionDuration(""),this._setTransit ionTimingFunction(""),this.style.visibility=""),this._resetDrawerState())},_setT ransitionDuration:function(t){this.$.contentContainer.style.transitionDuration=t ,this.$.scrim.style.transitionDuration=t},_setTransitionTimingFunction:function( t){this.$.contentContainer.style.transitionTimingFunction=t,this.$.scrim.style.t ransitionTimingFunction=t},_translateDrawer:function(t){var i=this.getWidth();"l eft"===this.position?(t=Math.max(-i,Math.min(t,0)),this.$.scrim.style.opacity=1+ t/i):(t=Math.max(0,Math.min(t,i)),this.$.scrim.style.opacity=1-t/i),this.transla te3d(t+"px","0","0",this.$.contentContainer)},_resetDrawerTranslate:function(){t his.$.scrim.style.opacity="",this.transform("",this.$.contentContainer)},_resetD rawerState:function(){var t=this._drawerState;this.opened?this._drawerState=this .persistent?this._DRAWER_STATE.OPENED_PERSISTENT:this._DRAWER_STATE.OPENED:this. _drawerState=this._DRAWER_STATE.CLOSED,t!==this._drawerState&&(this._drawerState ===this._DRAWER_STATE.OPENED?(this._setKeyboardFocusTrap(),document.addEventList ener("keydown",this._boundEscKeydownHandler),document.body.style.overflow="hidde n"):(document.removeEventListener("keydown",this._boundEscKeydownHandler),docume nt.body.style.overflow=""),t!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-tr ansitioned"))},_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var t=['a[ href]:not([tabindex="-1"])','area[href]:not([tabindex="-1"])','input:not([disabl ed]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','textar ea:not([disabled]):not([tabindex="-1"])','button:not([disabled]):not([tabindex=" -1"])','iframe:not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])','[content Editable=true]:not([tabindex="-1"])'].join(","),i=Polymer.dom(this).querySelecto rAll(t);i.length>0?(this._firstTabStop=i[0],this._lastTabStop=i[i.length-1]):(th is._firstTabStop=null,this._lastTabStop=null);var e=this.getAttribute("tabindex" );e&&parseInt(e,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus ()}},_tabKeydownHandler:function(t){if(!this.noFocusTrap){var i=9;this._drawerSt ate===this._DRAWER_STATE.OPENED&&t.keyCode===i&&(t.shiftKey?this._firstTabStop&& Polymer.dom(t).localTarget===this._firstTabStop&&(t.preventDefault(),this._lastT abStop.focus()):this._lastTabStop&&Polymer.dom(t).localTarget===this._lastTabSto p&&(t.preventDefault(),this._firstTabStop.focus()))}},_MIN_FLING_THRESHOLD:.2,_M IN_TRANSITION_VELOCITY:1.2,_FLING_TIMING_FUNCTION:"cubic-bezier(0.667, 1, 0.667, 1)",_FLING_INITIAL_SLOPE:1.5,_DRAWER_STATE:{INIT:0,OPENED:1,OPENED_PERSISTENT:2 ,CLOSED:3,TRACKING:4,FLINGING:5}})</script> </dom-module> <script>Polymer({is:"i ron-media-query",properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,not ify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1} ,_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},_mq:{va lue:null}},attached:function(){this.style.display="none",this.queryChanged()},de tached:function(){this._remove()},_add:function(){this._mq&&this._mq.addListener (this._boundMQHandler)},_remove:function(){this._mq&&this._mq.removeListener(thi s._boundMQHandler),this._mq=null},queryChanged:function(){this._remove();var e=t his.query;e&&(this.full||"("===e[0]||(e="("+e+")"),this._mq=window.matchMedia(e) ,this._add(),this.queryHandler(this._mq))},queryHandler:function(e){this._setQue ryMatches(e.matches)}})</script> <script>Polymer.IronResizableBehavior={properti es:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifying Descendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notification s":"_onIronRequestResizeNotifications"},created:function(){this._interestedResiz ables=[],this._boundNotifyResize=this.notifyResize.bind(this)},attached:function (){this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,canc elable:!0}),this._parentResizable||(window.addEventListener("resize",this._bound NotifyResize),this.notifyResize())},detached:function(){this._parentResizable?th is._parentResizable.stopResizeNotificationsFor(this):window.removeEventListener( "resize",this._boundNotifyResize),this._parentResizable=null},notifyResize:funct ion(){this.isAttached&&(this._interestedResizables.forEach(function(e){this.resi zerShouldNotify(e)&&this._notifyDescendant(e)},this),this._fireResize())},assign ParentResizable:function(e){this._parentResizable=e},stopResizeNotificationsFor: function(e){var i=this._interestedResizables.indexOf(e);i>-1&&(this._interestedR esizables.splice(i,1),this.unlisten(e,"iron-resize","_onDescendantIronResize"))} ,resizerShouldNotify:function(e){return!0},_onDescendantIronResize:function(e){r eturn this._notifyingDescendant?void e.stopPropagation():void(Polymer.Settings.u seShadow||this._fireResize())},_fireResize:function(){this.fire("iron-resize",nu ll,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var i= e.path?e.path[0]:e.target;i!==this&&(this._interestedResizables.indexOf(i)===-1& &(this._interestedResizables.push(i),this.listen(i,"iron-resize","_onDescendantI ronResize")),i.assignParentResizable(this),this._notifyDescendant(i),e.stopPropa gation())},_parentResizableChanged:function(e){e&&window.removeEventListener("re size",this._boundNotifyResize)},_notifyDescendant:function(e){this.isAttached&&( this._notifyingDescendant=!0,e.notifyResize(),this._notifyingDescendant=!1)}}</s cript> <dom-module id="app-drawer-layout" assetpath="/res/imp/bower_components/a pp-layout/app-drawer-layout/"> <template> <style>:host{display:block}:host([full bleed]){@apply(--layout-fit)}#contentContainer{position:relative;height:100%;tra nsition:var(--app-drawer-layout-content-transition,none)}#contentContainer:not(. narrow)>::content [drawer-toggle]{display:none}</style> <div id="contentContaine r"> <content select=":not(app-drawer)"></content> </div> <content id="drawerCont ent" select="app-drawer"></content> <iron-media-query query="[[_computeMediaQuer y(forceNarrow, responsiveWidth)]]" on-query-matches-changed="_onQueryMatchesChan ged"></iron-media-query> </template> <script>Polymer({is:"app-drawer-layout",beh aviors:[Polymer.IronResizableBehavior],properties:{forceNarrow:{type:Boolean,val ue:!1},responsiveWidth:{type:String,value:"640px"},narrow:{type:Boolean,readOnly :!0,notify:!0}},listeners:{tap:"_tapHandler","app-drawer-reset-layout":"resetLay out"},observers:["resetLayout(narrow, isAttached)"],get drawer(){return Polymer. dom(this.$.drawerContent).getDistributedNodes()[0]},_tapHandler:function(e){var t=Polymer.dom(e).localTarget;t&&t.hasAttribute("drawer-toggle")&&this.drawer.tog gle()},resetLayout:function(){this.debounce("_resetLayout",function(){var e=this .drawer,t=this.$.contentContainer;if(this.narrow)e.opened=e.persistent=!1,t.clas sList.add("narrow"),t.style.marginLeft="",t.style.marginRight="";else{e.opened=e .persistent=!0,t.classList.remove("narrow");var r=this.drawer.getWidth();"right" ==e.position?(t.style.marginLeft="",t.style.marginRight=r+"px"):(t.style.marginL eft=r+"px",t.style.marginRight="")}this.notifyResize()})},_onQueryMatchesChanged :function(e){this._setNarrow(e.detail.value)},_computeMediaQuery:function(e,t){r eturn e?"(min-width: 0px)":"(max-width: "+t+")"}})</script> </dom-module> <dom-m odule id="app-grid-style" assetpath="/res/imp/bower_components/app-layout/app-gr id/"> <template> <style>:host{--app-grid-expandible-item:{-webkit-flex-basis:cal c((100% - .1px)/ var(--app-grid-columns,1) * var(--app-grid-expandible-item-colu mns,1) - (var(--app-grid-gutter,0px) * (var(--app-grid-columns,1) - var(--app-gr id-expandible-item-columns,1))))!important;flex-basis:calc((100% - .1px)/ var(-- app-grid-columns,1) * var(--app-grid-expandible-item-columns,1) - (var(--app-gri d-gutter,0px) * (var(--app-grid-columns,1) - var(--app-grid-expandible-item-colu mns,1))))!important;max-width:calc((100% - .1px)/ var(--app-grid-columns,1) * va r(--app-grid-expandible-item-columns,1) - (var(--app-grid-gutter,0px) * (var(--a pp-grid-columns,1) - var(--app-grid-expandible-item-columns,1))))!important};}.a pp-grid{display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-direction :row;-webkit-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;-webkit-fl ex-wrap:wrap;flex-wrap:wrap;margin-top:var(--app-grid-gutter,0);margin-left:var( --app-grid-gutter,0)}.app-grid>*{-ms-flex:1 1 100%;-webkit-flex:1;flex:1;-webkit -flex-basis:calc((100% - .1px - (var(--app-grid-gutter,0px) * var(--app-grid-col umns,1)))/ var(--app-grid-columns,1));flex-basis:calc((100% - .1px - (var(--app- grid-gutter,0px) * var(--app-grid-columns,1)))/ var(--app-grid-columns,1));max-w idth:calc((100% - .1px - (var(--app-grid-gutter,0px) * var(--app-grid-columns,1) ))/ var(--app-grid-columns,1));margin-bottom:var(--app-grid-gutter,0);margin-rig ht:var(--app-grid-gutter,0);height:var(--app-grid-item-height);box-sizing:border -box}.app-grid[has-aspect-ratio]>*{position:relative}.app-grid[has-aspect-ratio] >::before{display:block;content:"";padding-top:var(--app-grid-item-height,100%)} .app-grid[has-aspect-ratio]>*>*{position:absolute;top:0;right:0;bottom:0;left:0} </style> </template> </dom-module> <script>Polymer.IronScrollTargetBehavior={pro perties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScr ollTarget}}},observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_scrol lTargetChanged:function(t,l){var o;this._oldScrollTarget&&(o=this._oldScrollTarg et===this._doc?window:this._oldScrollTarget,o.removeEventListener("scroll",this. _boundScrollHandler),this._oldScrollTarget=null),l&&("document"===t?this.scrollT arget=this._doc:"string"==typeof t?this.scrollTarget=this.domHost?this.domHost.$ [t]:Polymer.dom(this.ownerDocument).querySelector("#"+t):this._isValidScrollTarg et()&&(o=t===this._doc?window:t,this._boundScrollHandler=this._boundScrollHandle r||this._scrollHandler.bind(this),this._oldScrollTarget=t,o.addEventListener("sc roll",this._boundScrollHandler)))},_scrollHandler:function(){},get _defaultScrol lTarget(){return this._doc},get _doc(){return this.ownerDocument.documentElement },get _scrollTop(){return this._isValidScrollTarget()?this.scrollTarget===this._ doc?window.pageYOffset:this.scrollTarget.scrollTop:0},get _scrollLeft(){return t his._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageXOffset:this .scrollTarget.scrollLeft:0},set _scrollTop(t){this.scrollTarget===this._doc?wind ow.scrollTo(window.pageXOffset,t):this._isValidScrollTarget()&&(this.scrollTarge t.scrollTop=t)},set _scrollLeft(t){this.scrollTarget===this._doc?window.scrollTo (t,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLef t=t)},scroll:function(t,l){this.scrollTarget===this._doc?window.scrollTo(t,l):th is._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=t,this.scrollTarget.scr ollTop=l)},get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scro llTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scr ollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._d oc?window.innerHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:fun ction(){return this.scrollTarget instanceof HTMLElement}}</script> <script>Polym er.AppScrollEffectsBehavior=[Polymer.IronScrollTargetBehavior,{properties:{effec ts:{type:String},effectsConfig:{type:Object,value:function(){return{}}},disabled :{type:Boolean,reflectToAttribute:!0,value:!1}},observers:["_effectsChanged(effe cts, effectsConfig, isAttached)"],_updateScrollState:function(){},isOnScreen:fun ction(){return!1},isContentBelow:function(){return!1},_effectsRunFn:null,_effect s:null,get _clampedScrollTop(){return Math.max(0,this._scrollTop)},detached:func tion(){this._tearDownEffects()},createEffect:function(t,e){var f=Polymer.AppLayo ut._scrollEffects[t];if(!f)throw new ReferenceError(this._getUndefinedMsg(t));va r n=this._boundEffect(f,e||{});return n.setUp(),n},_effectsChanged:function(t,e, f){this._tearDownEffects(),""!==t&&f&&(t.split(" ").forEach(function(t){var f;"" !==t&&((f=Polymer.AppLayout._scrollEffects[t])?this._effects.push(this._boundEff ect(f,e[t])):this._warn(this._logf("_effectsChanged",this._getUndefinedMsg(t)))) },this),this._setUpEffect())},_layoutIfDirty:function(){return this.offsetWidth} ,_boundEffect:function(t,e){e=e||{};var f=parseFloat(e.startsAt||0),n=parseFloat (e.endsAt||1),s=n-f,c=Function(),i=0===f&&1===n?t.run:function(e,n){t.run.call(t his,Math.max(0,(e-f)/s),n)};return{setUp:t.setUp?t.setUp.bind(this,e):c,run:t.ru n?i.bind(this):c,tearDown:t.tearDown?t.tearDown.bind(this):c}},_setUpEffect:func tion(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forE ach(function(t){t.setUp()!==!1&&this._effectsRunFn.push(t.run)},this))},_tearDow nEffects:function(){this._effects&&this._effects.forEach(function(t){t.tearDown( )}),this._effectsRunFn=[],this._effects=[]},_runEffects:function(t,e){this._effe ctsRunFn&&this._effectsRunFn.forEach(function(f){f(t,e)})},_scrollHandler:functi on(){this.disabled||this._updateScrollState(this._clampedScrollTop)},_getDOMRef: function(t){this._warn(this._logf("_getDOMRef","`"+t+"` is undefined"))},_getUnd efinedMsg:function(t){return"Scroll effect `"+t+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+t+".html ?"}}]</script> <dom-m odule id="app-header" assetpath="/res/imp/bower_components/app-layout/app-header /"> <template> <style>:host{position:relative;display:block;transition-timing-fu nction:linear;transition-property:-webkit-transform;transition-property:transfor m}:host::after{position:absolute;right:0;bottom:-5px;left:0;width:100%;height:5p x;content:"";transition:opacity .4s;pointer-events:none;opacity:0;box-shadow:ins et 0 5px 6px -3px rgba(0,0,0,.4);will-change:opacity;@apply(--app-header-shadow) }:host([shadow])::after{opacity:1}#contentContainer>::content [condensed-title]{ -webkit-transform-origin:left top;transform-origin:left top;white-space:nowrap;o pacity:0}#contentContainer>::content [main-title]{-webkit-transform-origin:left top;transform-origin:left top;white-space:nowrap}#background{@apply(--layout-fit );overflow:hidden}#backgroundFrontLayer,#backgroundRearLayer{@apply(--layout-fit );height:100%;pointer-events:none;background-size:cover}#backgroundFrontLayer{@a pply(--app-header-background-front-layer)}#backgroundRearLayer{opacity:0;@apply( --app-header-background-rear-layer)}#contentContainer{position:relative;width:10 0%;height:100%}:host([disabled]),:host([disabled]) #backgroundFrontLayer,:host([ disabled]) #backgroundRearLayer,:host([disabled]) ::content>[sticky],:host([disa bled]) ::content>app-toolbar:first-of-type,:host([disabled])::after,:host-contex t(.app-layout-silent-scroll),:host-context(.app-layout-silent-scroll) #backgroun dFrontLayer,:host-context(.app-layout-silent-scroll) #backgroundRearLayer,:host- context(.app-layout-silent-scroll) ::content>[sticky],:host-context(.app-layout- silent-scroll) ::content>app-toolbar:first-of-type,:host-context(.app-layout-sil ent-scroll)::after{transition:none!important}</style> <div id="contentContainer" > <content id="content"></content> </div> </template> <script>Polymer({is:"app-h eader",behaviors:[Polymer.AppScrollEffectsBehavior,Polymer.IronResizableBehavior ],properties:{condenses:{type:Boolean,value:!1},fixed:{type:Boolean,value:!1},re veals:{type:Boolean,value:!1},shadow:{type:Boolean,reflectToAttribute:!0,value:! 1}},observers:["resetLayout(isAttached, condenses, fixed)"],listeners:{"iron-res ize":"_resizeHandler"},_height:0,_dHeight:0,_stickyElTop:0,_stickyEl:null,_top:0 ,_progress:0,_wasScrollingDown:!1,_initScrollTop:0,_initTimestamp:0,_lastTimesta mp:0,_lastScrollTop:0,get _maxHeaderTop(){return this.fixed?this._dHeight:this._ height+5},_getStickyEl:function(){for(var t,e=Polymer.dom(this.$.content).getDis tributedNodes(),i=0;i<e.length;i++)if(e[i].nodeType===Node.ELEMENT_NODE){var s=e [i];if(s.hasAttribute("sticky")){t=s;break}t||(t=s)}return t},resetLayout:functi on(){this.fire("app-header-reset-layout"),this.debounce("_resetLayout",function( ){if(0!==this.offsetWidth||0!==this.offsetHeight){var t=this._clampedScrollTop,e =0===this._height||0===t,i=this.disabled;this._height=this.offsetHeight,this._st ickyEl=this._getStickyEl(),this.disabled=!0,e||this._updateScrollState(0,!0),thi s._mayMove()?this._dHeight=this._stickyEl?this._height-this._stickyEl.offsetHeig ht:0:this._dHeight=0,this._stickyElTop=this._stickyEl?this._stickyEl.offsetTop:0 ,this._setUpEffect(),e?this._updateScrollState(t,!0):(this._updateScrollState(th is._lastScrollTop,!0),this._layoutIfDirty()),this.disabled=i}})},_updateScrollSt ate:function(t,e){if(0!==this._height){var i=0,s=0,o=this._top,r=(this._lastScro llTop,this._maxHeaderTop),h=t-this._lastScrollTop,n=Math.abs(h),a=t>this._lastSc rollTop,l=Date.now();if(this._mayMove()&&(s=this._clamp(this.reveals?o+h:t,0,r)) ,t>=this._dHeight&&(s=this.condenses&&!this.fixed?Math.max(this._dHeight,s):s,th is.style.transitionDuration="0ms"),this.reveals&&!this.disabled&&n<100&&((l-this ._initTimestamp>300||this._wasScrollingDown!==a)&&(this._initScrollTop=t,this._i nitTimestamp=l),t>=r))if(Math.abs(this._initScrollTop-t)>30||n>10){a&&t>=r?s=r:! a&&t>=this._dHeight&&(s=this.condenses&&!this.fixed?this._dHeight:0);var _=h/(l- this._lastTimestamp);this.style.transitionDuration=this._clamp((s-o)/_,0,300)+"m s"}else s=this._top;i=0===this._dHeight?t>0?1:0:s/this._dHeight,e||(this._lastSc rollTop=t,this._top=s,this._wasScrollingDown=a,this._lastTimestamp=l),(e||i!==th is._progress||o!==s||0===t)&&(this._progress=i,this._runEffects(i,s),this._trans formHeader(s))}},_mayMove:function(){return this.condenses||!this.fixed},willCon dense:function(){return this._dHeight>0&&this.condenses},isOnScreen:function(){r eturn 0!==this._height&&this._top<this._height},isContentBelow:function(){return 0===this._top?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTo p>=0},_transformHeader:function(t){this.translate3d(0,-t+"px",0),this._stickyEl& &this.condenses&&t>=this._stickyElTop&&this.translate3d(0,Math.min(t,this._dHeig ht)-this._stickyElTop+"px",0,this._stickyEl)},_resizeHandler:function(){this.res etLayout()},_clamp:function(t,e,i){return Math.min(i,Math.max(e,t))},_ensureBgCo ntainers:function(){this._bgContainer||(this._bgContainer=document.createElement ("div"),this._bgContainer.id="background",this._bgRear=document.createElement("d iv"),this._bgRear.id="backgroundRearLayer",this._bgContainer.appendChild(this._b gRear),this._bgFront=document.createElement("div"),this._bgFront.id="backgroundF rontLayer",this._bgContainer.appendChild(this._bgFront),Polymer.dom(this.root).i nsertBefore(this._bgContainer,this.$.contentContainer))},_getDOMRef:function(t){ switch(t){case"backgroundFrontLayer":return this._ensureBgContainers(),this._bgF ront;case"backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;ca se"background":return this._ensureBgContainers(),this._bgContainer;case"mainTitl e":return Polymer.dom(this).querySelector("[main-title]");case"condensedTitle":r eturn Polymer.dom(this).querySelector("[condensed-title]")}return null},getScrol lState:function(){return{progress:this._progress,top:this._top}}})</script> </do m-module> <dom-module id="app-header-layout" assetpath="/res/imp/bower_component s/app-layout/app-header-layout/"> <template> <style>:host{display:block;position :relative;z-index:0}:host>::content>app-header{@apply(--layout-fixed-top);z-inde x:1}:host([has-scrolling-region]){height:100%}:host([has-scrolling-region])>::co ntent>app-header{position:absolute}:host([has-scrolling-region])>#contentContain er{@apply(--layout-fit);overflow-y:auto;-webkit-overflow-scrolling:touch}:host([ fullbleed]){@apply(--layout-vertical);@apply(--layout-fit)}:host([fullbleed])>#c ontentContainer{@apply(--layout-vertical);@apply(--layout-flex)}#contentContaine r{position:relative;z-index:0}</style> <content id="header" select="app-header"> </content> <div id="contentContainer"> <content></content> </div> </template> <s cript>Polymer({is:"app-header-layout",behaviors:[Polymer.IronResizableBehavior], properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},li steners:{"iron-resize":"_resizeHandler","app-header-reset-layout":"resetLayout"} ,observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return P olymer.dom(this.$.header).getDistributedNodes()[0]},resetLayout:function(){this. _updateScroller(),this.debounce("_resetLayout",this._updateContentPosition)},_up dateContentPosition:function(){var e=this.header;if(this.isAttached&&e){var t=e. offsetHeight;if(this.hasScrollingRegion)e.style.left="",e.style.right="";else{va r i=this.getBoundingClientRect(),o=document.documentElement.clientWidth-i.right; e.style.left=i.left+"px",e.style.right=o+"px"}var n=this.$.contentContainer.styl e;e.fixed&&!e.willCondense()&&this.hasScrollingRegion?(n.marginTop=t+"px",n.padd ingTop=""):(n.paddingTop=t+"px",n.marginTop="")}},_updateScroller:function(){if( this.isAttached){var e=this.header;e&&(e.scrollTarget=this.hasScrollingRegion?th is.$.contentContainer:this.ownerDocument.documentElement)}},_resizeHandler:funct ion(){this.resetLayout()}})</script> </dom-module> <dom-module id="app-scrollpos -control" assetpath="/res/imp/bower_components/app-layout/app-scrollpos-control/ "> <script>Polymer({is:"app-scrollpos-control",behaviors:[Polymer.IronScrollTarg etBehavior],properties:{selected:{type:String,observer:"_selectedChanged"},reset :{type:Boolean,value:!1}},observers:["_updateScrollPos(selected, reset)"],create d:function(){this._scrollposMap={}},_selectedChanged:function(e,s){null!=s&&(thi s._scrollposMap[s]={x:this._scrollLeft,y:this._scrollTop})},_updateScrollPos:fun ction(e,s){this.debounce("_updateScrollPos",function(){var e=this._scrollposMap[ this.selected];null==e||this.reset?this.scroll(0,0):this.scroll(e.x,e.y)})}})</s cript> </dom-module> <dom-module id="app-toolbar" assetpath="/res/imp/bower_comp onents/app-layout/app-toolbar/"> <template> <style>:host{position:relative;@appl y(--layout-horizontal);@apply(--layout-center);height:64px;padding:0 16px;pointe r-events:none;font-size:var(--app-toolbar-font-size,20px)}:host>::content>*{poin ter-events:auto}:host>::content>paper-icon-button{font-size:0}:host>::content>[c ondensed-title],:host>::content>[main-title]{pointer-events:none;@apply(--layout -flex)}:host>::content>[bottom-item]{position:absolute;right:0;bottom:0;left:0}: host>::content>[top-item]{position:absolute;top:0;right:0;left:0}:host>::content >[spacer]{margin-left:64px}</style> <content></content> </template> <script>Poly mer({is:"app-toolbar"})</script> </dom-module> <dom-module id="app-box" assetpat h="/res/imp/bower_components/app-layout/app-box/"> <template> <style>:host{posit ion:relative;display:block}#background{@apply(--layout-fit);overflow:hidden;heig ht:100%}#backgroundFrontLayer{min-height:100%;pointer-events:none;background-siz e:cover;@apply(--app-box-background-front-layer)}#contentContainer{position:rela tive;width:100%;height:100%}:host([disabled]),:host([disabled]) #backgroundFront Layer{transition:none!important}</style> <div id="background"> <div id="backgrou ndFrontLayer"> <content select="[background]"></content> </div> </div> <div id=" contentContainer"> <content id="content"></content> </div> </template> <script>P olymer({is:"app-box",behaviors:[Polymer.AppScrollEffectsBehavior,Polymer.IronRes izableBehavior],listeners:{"iron-resize":"_resizeHandler"},_progress:0,attached: function(){this.resetLayout()},resetLayout:function(){this.debounce("_resetLayou t",function(){if(0!==this.offsetWidth||0!==this.offsetHeight){var e=this._clampe dScrollTop,t=this.disabled;this.disabled=!0,this._elementTop=this._getElementTop (),this._elementHeight=this.offsetHeight,this._cachedScrollTargetHeight=this._sc rollTargetHeight,this._setUpEffect(),this._updateScrollState(e),this.disabled=t} },1)},_getElementTop:function(){for(var e=this,t=0;e&&e!==this.scrollTarget;)t+= e.offsetTop,e=e.offsetParent;return t},_updateScrollState:function(e){if(this.is OnScreen()){var t=this._elementTop-e;this._progress=1-(t+this._elementHeight)/th is._cachedScrollTargetHeight,this._runEffects(this._progress,e)}},isOnScreen:fun ction(){return this._elementTop<this._scrollTop+this._cachedScrollTargetHeight&& this._elementTop+this._elementHeight>this._scrollTop},_resizeHandler:function(){ this.resetLayout()},_getDOMRef:function(e){return"background"===e?this.$.backgro und:"backgroundFrontLayer"===e?this.$.backgroundFrontLayer:void 0},getScrollStat e:function(){return{progress:this._progress}}})</script> </dom-module> <dom-modu le id="iron-flex" assetpath="/res/imp/bower_components/iron-flex-layout/"> <temp late> <style>.layout.horizontal,.layout.vertical{display:-ms-flexbox;display:-we bkit-flex;display:flex}.layout.inline{display:-ms-inline-flexbox;display:-webkit -inline-flex;display:inline-flex}.layout.horizontal{-ms-flex-direction:row;-webk it-flex-direction:row;flex-direction:row}.layout.vertical{-ms-flex-direction:col umn;-webkit-flex-direction:column;flex-direction:column}.layout.wrap{-ms-flex-wr ap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap}.layout.center,.layout.center-cent er{-ms-flex-align:center;-webkit-align-items:center;align-items:center}.layout.c enter-center,.layout.center-justified{-ms-flex-pack:center;-webkit-justify-conte nt:center;justify-content:center}.flex{-ms-flex:1 1 0px;-webkit-flex:1;flex:1;-w ebkit-flex-basis:0px;flex-basis:0px}.flex-auto{-ms-flex:1 1 auto;-webkit-flex:1 1 auto;flex:1 1 auto}.flex-none{-ms-flex:none;-webkit-flex:none;flex:none}</styl e> </template> </dom-module> <dom-module id="iron-flex-reverse" assetpath="/res/ imp/bower_components/iron-flex-layout/"> <template> <style>.layout.horizontal-re verse,.layout.vertical-reverse{display:-ms-flexbox;display:-webkit-flex;display: flex}.layout.horizontal-reverse{-ms-flex-direction:row-reverse;-webkit-flex-dire ction:row-reverse;flex-direction:row-reverse}.layout.vertical-reverse{-ms-flex-d irection:column-reverse;-webkit-flex-direction:column-reverse;flex-direction:col umn-reverse}.layout.wrap-reverse{-ms-flex-wrap:wrap-reverse;-webkit-flex-wrap:wr ap-reverse;flex-wrap:wrap-reverse}</style> </template> </dom-module> <dom-module id="iron-flex-alignment" assetpath="/res/imp/bower_components/iron-flex-layout/ "> <template> <style>.layout.start{-ms-flex-align:start;-webkit-align-items:flex -start;align-items:flex-start}.layout.center,.layout.center-center{-ms-flex-alig n:center;-webkit-align-items:center;align-items:center}.layout.end{-ms-flex-alig n:end;-webkit-align-items:flex-end;align-items:flex-end}.layout.baseline{-ms-fle x-align:baseline;-webkit-align-items:baseline;align-items:baseline}.layout.start -justified{-ms-flex-pack:start;-webkit-justify-content:flex-start;justify-conten t:flex-start}.layout.center-center,.layout.center-justified{-ms-flex-pack:center ;-webkit-justify-content:center;justify-content:center}.layout.end-justified{-ms -flex-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.layout .around-justified{-ms-flex-pack:distribute;-webkit-justify-content:space-around; justify-content:space-around}.layout.justified{-ms-flex-pack:justify;-webkit-jus tify-content:space-between;justify-content:space-between}.self-start{-ms-align-s elf:flex-start;-webkit-align-self:flex-start;align-self:flex-start}.self-center{ -ms-align-self:center;-webkit-align-self:center;align-self:center}.self-end{-ms- align-self:flex-end;-webkit-align-self:flex-end;align-self:flex-end}.self-stretc h{-ms-align-self:stretch;-webkit-align-self:stretch;align-self:stretch}.self-bas eline{-ms-align-self:baseline;-webkit-align-self:baseline;align-self:baseline}; .layout.start-aligned{-ms-flex-line-pack:start;-ms-align-content:flex-start;-web kit-align-content:flex-start;align-content:flex-start}.layout.end-aligned{-ms-fl ex-line-pack:end;-ms-align-content:flex-end;-webkit-align-content:flex-end;align -content:flex-end}.layout.center-aligned{-ms-flex-line-pack:center;-ms-align-con tent:center;-webkit-align-content:center;align-content:center}.layout.between-al igned{-ms-flex-line-pack:justify;-ms-align-content:space-between;-webkit-align-c ontent:space-between;align-content:space-between}.layout.around-aligned{-ms-flex -line-pack:distribute;-ms-align-content:space-around;-webkit-align-content:space -around;align-content:space-around}</style> </template> </dom-module> <dom-modul e id="iron-flex-factors" assetpath="/res/imp/bower_components/iron-flex-layout/" > <template> <style>.flex,.flex-1{-ms-flex:1 1 0px;-webkit-flex:1;flex:1;-webkit -flex-basis:0px;flex-basis:0px}.flex-2{-ms-flex:2;-webkit-flex:2;flex:2}.flex-3{ -ms-flex:3;-webkit-flex:3;flex:3}.flex-4{-ms-flex:4;-webkit-flex:4;flex:4}.flex- 5{-ms-flex:5;-webkit-flex:5;flex:5}.flex-6{-ms-flex:6;-webkit-flex:6;flex:6}.fle x-7{-ms-flex:7;-webkit-flex:7;flex:7}.flex-8{-ms-flex:8;-webkit-flex:8;flex:8}.f lex-9{-ms-flex:9;-webkit-flex:9;flex:9}.flex-10{-ms-flex:10;-webkit-flex:10;flex :10}.flex-11{-ms-flex:11;-webkit-flex:11;flex:11}.flex-12{-ms-flex:12;-webkit-fl ex:12;flex:12}</style> </template> </dom-module> <dom-module id="iron-positionin g" assetpath="/res/imp/bower_components/iron-flex-layout/"> <template> <style>.b lock{display:block}[hidden]{display:none!important}.invisible{visibility:hidden! important}.relative{position:relative}.fit{position:absolute;top:0;right:0;botto m:0;left:0}body.fullbleed{margin:0;height:100vh}.scroll{-webkit-overflow-scrolli ng:touch;overflow:auto}.fixed-bottom,.fixed-left,.fixed-right,.fixed-top{positio n:fixed}.fixed-top{top:0;left:0;right:0}.fixed-right{top:0;right:0;bottom:0}.fix ed-bottom{right:0;bottom:0;left:0}.fixed-left{top:0;bottom:0;left:0}</style> </t emplate> </dom-module> <script>!function(){var e={},t={},i=null;Polymer.IronMeta =Polymer({is:"iron-meta",properties:{type:{type:String,value:"default",observer: "_typeChanged"},key:{type:String,observer:"_keyChanged"},value:{type:Object,noti fy:!0,observer:"_valueChanged"},self:{type:Boolean,observer:"_selfChanged"},list :{type:Array,notify:!0}},hostAttributes:{hidden:!0},factoryImpl:function(e){if(e )for(var t in e)switch(t){case"type":case"key":case"value":this[t]=e[t]}},create d:function(){this._metaDatas=e,this._metaArrays=t},_keyChanged:function(e,t){thi s._resetRegistration(t)},_valueChanged:function(e){this._resetRegistration(this. key)},_selfChanged:function(e){e&&(this.value=this)},_typeChanged:function(i){th is._unregisterKey(this.key),e[i]||(e[i]={}),this._metaData=e[i],t[i]||(t[i]=[]), this.list=t[i],this._registerKeyValue(this.key,this.value)},byKey:function(e){re turn this._metaData&&this._metaData[e]},_resetRegistration:function(e){this._unr egisterKey(e),this._registerKeyValue(this.key,this.value)},_unregisterKey:functi on(e){this._unregister(e,this._metaData,this.list)},_registerKeyValue:function(e ,t){this._register(e,t,this._metaData,this.list)},_register:function(e,t,i,a){e& &i&&void 0!==t&&(i[e]=t,a.push(t))},_unregister:function(e,t,i){if(e&&t&&e in t) {var a=t[e];delete t[e],this.arrayDelete(i,a)}}}),Polymer.IronMeta.getIronMeta=f unction(){return null===i&&(i=new Polymer.IronMeta),i},Polymer.IronMetaQuery=Pol ymer({is:"iron-meta-query",properties:{type:{type:String,value:"default",observe r:"_typeChanged"},key:{type:String,observer:"_keyChanged"},value:{type:Object,no tify:!0,readOnly:!0},list:{type:Array,notify:!0}},factoryImpl:function(e){if(e)f or(var t in e)switch(t){case"type":case"key":this[t]=e[t]}},created:function(){t his._metaDatas=e,this._metaArrays=t},_keyChanged:function(e){this._setValue(this ._metaData&&this._metaData[e])},_typeChanged:function(i){this._metaData=e[i],thi s.list=t[i],this.key&&this._keyChanged(this.key)},byKey:function(e){return this. _metaData&&this._metaData[e]}})}()</script> <dom-module id="iron-icon" assetpath ="/res/imp/bower_components/iron-icon/"> <template> <style>:host{@apply(--layout -inline);@apply(--layout-center-center);position:relative;vertical-align:middle; fill:var(--iron-icon-fill-color,currentcolor);stroke:var(--iron-icon-stroke-colo r,none);width:var(--iron-icon-width,24px);height:var(--iron-icon-height,24px)}</ style> </template> <script>Polymer({is:"iron-icon",properties:{icon:{type:String ,observer:"_iconChanged"},theme:{type:String,observer:"_updateIcon"},src:{type:S tring,observer:"_srcChanged"},_meta:{value:Polymer.Base.create("iron-meta",{type :"iconset"}),observer:"_updateIcon"}},_DEFAULT_ICONSET:"icons",_iconChanged:func tion(i){var t=(i||"").split(":");this._iconName=t.pop(),this._iconsetName=t.pop( )||this._DEFAULT_ICONSET,this._updateIcon()},_srcChanged:function(i){this._updat eIcon()},_usesIconset:function(){return this.icon||!this.src},_updateIcon:functi on(){this._usesIconset()?(this._img&&this._img.parentNode&&Polymer.dom(this.root ).removeChild(this._img),""===this._iconName?this._iconset&&this._iconset.remove Icon(this):this._iconsetName&&this._meta&&(this._iconset=this._meta.byKey(this._ iconsetName),this._iconset?(this._iconset.applyIcon(this,this._iconName,this.the me),this.unlisten(window,"iron-iconset-added","_updateIcon")):this.listen(window ,"iron-iconset-added","_updateIcon"))):(this._iconset&&this._iconset.removeIcon( this),this._img||(this._img=document.createElement("img"),this._img.style.width= "100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this. src,Polymer.dom(this.root).appendChild(this._img))}})</script> </dom-module> <sc ript>Polymer({is:"iron-iconset-svg",properties:{name:{type:String,observer:"_nam eChanged"},size:{type:Number,value:24}},attached:function(){this.style.display=" none"},getIconNames:function(){return this._icons=this._createIconMap(),Object.k eys(this._icons).map(function(e){return this.name+":"+e},this)},applyIcon:functi on(e,t){e=e.root||e,this.removeIcon(e);var n=this._cloneIcon(t);if(n){var o=Poly mer.dom(e);return o.insertBefore(n,o.childNodes[0]),e._svgIcon=n}return null},re moveIcon:function(e){e._svgIcon&&(Polymer.dom(e).removeChild(e._svgIcon),e._svgI con=null)},_nameChanged:function(){new Polymer.IronMeta({type:"iconset",key:this .name,value:this}),this.async(function(){this.fire("iron-iconset-added",this,{no de:window})})},_createIconMap:function(){var e=Object.create(null);return Polyme r.dom(this).querySelectorAll("[id]").forEach(function(t){e[t.id]=t}),e},_cloneIc on:function(e){return this._icons=this._icons||this._createIconMap(),this._prepa reSvgClone(this._icons[e],this.size)},_prepareSvgClone:function(e,t){if(e){var n =e.cloneNode(!0),o=document.createElementNS("http://www.w3.org/2000/svg","svg"), i=n.getAttribute("viewBox")||"0 0 "+t+" "+t;return o.setAttribute("viewBox",i),o .setAttribute("preserveAspectRatio","xMidYMid meet"),o.style.cssText="pointer-ev ents: none; display: block; width: 100%; height: 100%;",o.appendChild(n).removeA ttribute("id"),o}return null}})</script> <iron-iconset-svg name="icons" size="24 "> <svg><defs> <g id="3d-rotation"><path d="M7.52 21.48C4.25 19.94 1.91 16.76 1. 55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81-1.33 1.32zm.89-6.52c-.19 0-. 37-.03-.52-.08-.16-.06-.29-.13-.4-.24-.11-.1-.2-.22-.26-.37-.06-.14-.09-.3-.09-. 47h-1.3c0 .36.07.68.21.95.14.27.33.5.56.69.24.18.51.32.82.41.3.1.62.15.96.15.37 0 .72-.05 1.03-.15.32-.1.6-.25.83-.44s.42-.43.55-.72c.13-.29.2-.61.2-.97 0-.19-. 02-.38-.07-.56-.05-.18-.12-.35-.23-.51-.1-.16-.24-.3-.4-.43-.17-.13-.37-.23-.61- .31.2-.09.37-.2.52-.33.15-.13.27-.27.37-.42.1-.15.17-.3.22-.46.05-.16.07-.32.07- .48 0-.36-.06-.68-.18-.96-.12-.28-.29-.51-.51-.69-.2-.19-.47-.33-.77-.43C9.1 8.0 5 8.76 8 8.39 8c-.36 0-.69.05-1 .16-.3.11-.57.26-.79.45-.21.19-.38.41-.51.67-.12 .26-.18.54-.18.85h1.3c0-.17.03-.32.09-.45s.14-.25.25-.34c.11-.09.23-.17.38-.22.1 5-.05.3-.08.48-.08.4 0 .7.1.89.31.19.2.29.49.29.86 0 .18-.03.34-.08.49-.05.15-.1 4.27-.25.37-.11.1-.25.18-.41.24-.16.06-.36.09-.58.09H7.5v1.03h.77c.22 0 .42.02.6 .07s.33.13.45.23c.12.11.22.24.29.4.07.16.1.35.1.57 0 .41-.12.72-.35.93-.23.23-.5 5.33-.95.33zm8.55-5.92c-.32-.33-.7-.59-1.14-.77-.43-.18-.92-.27-1.46-.27H12v8h2. 3c.55 0 1.06-.09 1.51-.27.45-.18.84-.43 1.16-.76.32-.33.57-.73.74-1.19.17-.47.26 -.99.26-1.57v-.4c0-.58-.09-1.1-.26-1.57-.18-.47-.43-.87-.75-1.2zm-.39 3.16c0 .42 -.05.79-.14 1.13-.1.33-.24.62-.43.85-.19.23-.43.41-.71.53-.29.12-.62.18-.99.18h- .91V9.12h.97c.72 0 1.27.23 1.64.69.38.46.57 1.12.57 1.99v.4zM12 0l-.66.03 3.81 3 .81 1.33-1.33c3.27 1.55 5.61 4.72 5.96 8.48h1.5C23.44 4.84 18.29 0 12 0z"></path ></g> <g id="accessibility"><path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9- 2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"></path></g> <g id="accessible"><circl e cx="12" cy="4" r="2"></circle><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l- 1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19- .26C10.76 7.11 10 8.04 10 9.09V15c0 1.1.9 2 2 2h5v5h2v-5.5c0-1.1-.9-2-2-2h-3v-3. 45c1.29 1.07 3.25 1.94 5 1.95zm-6.17 5c-.41 1.16-1.52 2-2.83 2-1.66 0-3-1.34-3-3 0-1.31.84-2.41 2-2.83V12.1c-2.28.46-4 2.48-4 4.9 0 2.76 2.24 5 5 5 2.42 0 4.44- 1.72 4.9-4h-2.07z"></path></g> <g id="account-balance"><path d="M4 10v7h3v-7H4zm 6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z"></pat h></g> <g id="account-balance-wallet"><path d="M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0 -2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h9zm-9-2h10V8H12v8zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1 .5-.67 1.5-1.5 1.5z"></path></g> <g id="account-box"><path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1H6v-1z"> </path></g> <g id="account-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34 -3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"></path></g> <g id="add"><path d="M19 13h-6v6h-2 v-6H5v-2h6V5h2v6h6v2z"></path></g> <g id="add-alert"><path d="M10.01 21.01c0 1.1 .89 1.99 1.99 1.99s1.99-.89 1.99-1.99h-3.98zm8.87-4.19V11c0-3.25-2.25-5.97-5.29- 6.69v-.72C13.59 2.71 12.88 2 12 2s-1.59.71-1.59 1.59v.72C7.37 5.03 5.12 7.75 5.1 2 11v5.82L3 18.94V20h18v-1.06l-2.12-2.12zM16 13.01h-3v3h-2v-3H8V11h3V8h2v3h3v2.0 1z"></path></g> <g id="add-box"><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"></pa th></g> <g id="add-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4. 48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"></path></g> <g id="add -circle-outline"><path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8- 8 8 3.59 8 8-3.59 8-8 8z"></path></g> <g id="add-shopping-cart"><path d="M11 9h2 V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2- 2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm-9.83-3.25l.03-.12. 9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.86-7.01L19.42 4h-.01l-1.1 2-2.76 5H8.53l- .13-.27L6.16 6l-.95-2-.94-2H1v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1 .9 2 2 2h12v-2H7.42c-.13 0-.25-.11-.25-.25z"></path></g> <g id="alarm"><path d=" M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1. 53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-9 4.03-9 9s4. 02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.1 3 7 7-3.13 7-7 7z"></path></g> <g id="alarm-add"><path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4. 97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7- 7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm1-11h-2v3H8v2h3v3h2v-3h3v-2h-3V9z"></path></ g> <g id="alarm-off"><path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.5 2 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.4 3C10.35 6.16 11.16 6 12 6zm10-.28l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM2.92 2.2 9L1.65 3.57 2.98 4.9l-1.11.93 1.42 1.42 1.11-.94.8.8C3.83 8.69 3 10.75 3 13c0 4. 97 4.02 9 9 9 2.25 0 4.31-.83 5.89-2.2l2.2 2.2 1.27-1.27L3.89 3.27l-.97-.98zm13. 55 16.1C15.26 19.39 13.7 20 12 20c-3.87 0-7-3.13-7-7 0-1.7.61-3.26 1.61-4.47l9.8 6 9.86zM8.02 3.28L6.6 1.86l-.86.71 1.42 1.42.86-.71z"></path></g> <g id="alarm-o n"><path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s- 4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm-1.46-5.47 L8.41 12.4l-1.06 1.06 3.18 3.18 6-6-1.06-1.06-4.93 4.95z"></path></g> <g id="all -out"><path d="M16.21 4.16l4 4v-4zm4 12l-4 4h4zm-12 4l-4-4v4zm-4-12l4-4h-4zm12.9 5-.95c-2.73-2.73-7.17-2.73-9.9 0s-2.73 7.17 0 9.9 7.17 2.73 9.9 0 2.73-7.16 0-9. 9zm-1.1 8.8c-2.13 2.13-5.57 2.13-7.7 0s-2.13-5.57 0-7.7 5.57-2.13 7.7 0 2.13 5.5 7 0 7.7z"></path></g> <g id="android"><path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83. 67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h 1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8 2 8.67 2 9.5v7c0 .83.67 1.5 1.5 1.5S5 17. 33 5 16.5v-7C5 8.67 4.33 8 3.5 8zm17 0c-.83 0-1.5.67-1.5 1.5v7c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5zm-4.97-5.84l1.3-1.3c.2-.2.2-.51 0-. 71-.2-.2-.51-.2-.71 0l-1.48 1.48C13.85 1.23 12.95 1 12 1c-.96 0-1.86.23-2.66.63L 7.85.15c-.2-.2-.51-.2-.71 0-.2.2-.2.51 0 .71l1.31 1.31C6.97 3.26 6 5.01 6 7h12c0 -1.99-.97-3.75-2.47-4.84zM10 5H9V4h1v1zm5 0h-1V4h1v1z"></path></g> <g id="announ cement"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1 -.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z"></path></g> <g id="apps"><path d="M4 8 h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4 h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"></path></g> <g id="archive">< path d="M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3 .46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17 -.93-.46-1.27zM12 17.5L6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z "></path></g> <g id="arrow-back"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1. 41-1.41L7.83 13H20v-2z"></path></g> <g id="arrow-downward"><path d="M20 12l-1.41 -1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"></path></g> <g id="arrow-dro p-down"><path d="M7 10l5 5 5-5z"></path></g> <g id="arrow-drop-down-circle"><pat h d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4- 4h8l-4 4z"></path></g> <g id="arrow-drop-up"><path d="M7 14l5-5 5 5z"></path></g > <g id="arrow-forward"><path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L 12 20l8-8z"></path></g> <g id="arrow-upward"><path d="M4 12l1.41 1.41L11 7.83V20 h2V7.83l5.58 5.59L20 12l-8-8-8 8z"></path></g> <g id="aspect-ratio"><path d="M19 12h-2v3h-3v2h5v-5zM7 9h3V7H5v5h2V9zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c 1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"></path></g> <g id="as sessment"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c 0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"></path></g> <g id= "assignment"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c- 1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h1 0v2z"></path></g> <g id="assignment-ind"><path d="M19 3h-4.18C14.4 1.84 13.3 1 1 2 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c 0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 4c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1.4c0-2 4-3.1 6-3.1s6 1.1 6 3.1V19z"></path></g> <g id="assignment-late"><path d="M19 3h-4.18C14.4 1.84 13 .3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-6 15h-2v-2h2v2zm0-4h-2V8h2v6zm-1-9c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"></path></g> <g id="assignment-return"><path d="M19 3h -4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1- 1 .45-1 1-1zm4 12h-4v3l-5-5 5-5v3h4v4z"></path></g> <g id="assignment-returned"> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 15l-5-5h3V9h4v4h3l-5 5z"></path></g> <g id="assign ment-turned-in"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H 5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-2 14l-4-4 1.41-1.41L10 14.17l6.59-6 .59L18 9l-8 8z"></path></g> <g id="attachment"><path d="M2 12.5C2 9.46 4.46 7 7. 5 7H18c2.21 0 4 1.79 4 4s-1.79 4-4 4H9.5C8.12 15 7 13.88 7 12.5S8.12 10 9.5 10H1 7v2H9.41c-.55 0-.55 1 0 1H18c1.1 0 2-.9 2-2s-.9-2-2-2H7.5C5.57 9 4 10.57 4 12.5S 5.57 16 7.5 16H17v2H7.5C4.46 18 2 15.54 2 12.5z"></path></g> <g id="autorenew">< path d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c- .45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"> </path></g> <g id="backspace"><path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 1 4 13.41 10.41 17 9 15.59 12.59 12 9 8.41 10.41 7 14 10.59 17.59 7 19 8.41 15.41 12 19 15.59z"></path></g> <g id="backup"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.7 6 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"></path>< /g> <g id="block"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S 17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.5 5 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 1 2c0 4.42-3.58 8-8 8z"></path></g> <g id="book"><path d="M18 2H6c-1.1 0-2 .9-2 2v 16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z">< /path></g> <g id="bookmark"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5 c0-1.1-.9-2-2-2z"></path></g> <g id="bookmark-border"><path d="M17 3H7c-1.1 0-1. 99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"></path></ g> <g id="bug-report"><path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1 .62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .3 4.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-. 33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2 h4v2z"></path></g> <g id="build"><path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2 -2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l 9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"></path></g> <g id="cached">< path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19 .54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97. 25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"></pa th></g> <g id="camera-enhance"><path d="M9 3L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2h-3.17L15 3H9zm3 15c-2.76 0-5-2.24-5-5s 2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-1l1.25-2.75L16 13l-2.75-1.25L12 9l-1.25 2.75 L8 13l2.75 1.25z"></path></g> <g id="cancel"><path d="M12 2C6.47 2 2 6.47 2 12s4 .47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15. 59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"></path></ g> <g id="card-giftcard"><path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3- 3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.8 9 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08 L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v6z"></path>< /g> <g id="card-membership"><path d="M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2zm0 13H4v-2h16v2zm0-5H4V4h 16v6z"></path></g> <g id="card-travel"><path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1 .11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0 -1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H4v-2h16v2zm0-5H4V8h3v2h2V8h6v2h2V8h3v6z"></p ath></g> <g id="change-history"><path d="M12 7.77L18.39 18H5.61L12 7.77M12 4L2 2 0h20L12 4z"></path></g> <g id="check"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"></path></g> <g id="check-box"><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L1 0 14.17l7.59-7.59L19 8l-9 9z"></path></g> <g id="check-box-outline-blank"><path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0- 1.1-.9-2-2-2z"></path></g> <g id="check-circle"><path d="M12 2C6.48 2 2 6.48 2 1 2s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7 .59L19 8l-9 9z"></path></g> <g id="chevron-left"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"></path></g> <g id="chevron-right"><path d="M10 6L8.59 7 .41 13.17 12l-4.58 4.59L10 18l6-6z"></path></g> <g id="chrome-reader-mode"><path d="M13 12h7v1.5h-7zm0-2.5h7V11h-7zm0 5h7V16h-7zM21 4H3c-1.1 0-2 .9-2 2v13c0 1.1 .9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15h-9V6h9v13z"></path></g> <g id= "class"><path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0- 1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"></path></g> <g id="clear"><path d="M19 6 .41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path></g> <g id="close"><path d="M19 6.41L17.59 5 12 10.59 6 .41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></pa th></g> <g id="cloud"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5 .64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2. 64-2.05-4.78-4.65-4.96z"></path></g> <g id="cloud-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.5 14H8c-1.66 0-3-1.34-3- 3s1.34-3 3-3l.14.01C8.58 8.28 10.13 7 12 7c2.21 0 4 1.79 4 4h.5c1.38 0 2.5 1.12 2.5 2.5S17.88 16 16.5 16z"></path></g> <g id="cloud-done"><path d="M19.35 10.04C 18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM10 17l-3.5-3.5 1.41- 1.41L10 14.17 15.18 9l1.41 1.41L10 17z"></path></g> <g id="cloud-download"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 1 0.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"></path></g> <g id="cloud-off"><path d="M19.35 10.04C18.6 7 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c 3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-.64 2.11-1.56 2.62l1.45 1 .45C23.16 18.16 24 16.68 24 15c0-2.64-2.05-4.78-4.65-4.96zM3 5.27l2.75 2.74C2.56 8.15 0 10.77 0 14c0 3.31 2.69 6 6 6h11.73l2 2L21 20.73 4.27 4 3 5.27zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h1.73z"></path></g> <g id="cloud-queue"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10 .91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 1 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3z"></path></g> <g id="cloud-upload"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 1 0.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"></path></g> <g id="code"><path d="M9.4 16.6L4.8 12l4.6 -4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"></path>< /g> <g id="compare-arrows"><path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v -3H22V8h-7.01V5L11 9l3.99 4z"></path></g> <g id="content-copy"><path d="M16 1H4c -1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-. 9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"></path></g> <g id="content-cut"><path d ="M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s 1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1L9.64 7.64zM6 8c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm0 12c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm6-7.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5zM19 3l-6 6 2 2 7-7V3z"></path></g> <g id="content-paste"><path d="M19 2h-4.18C14.4.84 13. 3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2 -2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5 V4h2v3h10V4h2v16z"></path></g> <g id="copyright"><path d="M10.08 10.86c.05-.33.1 6-.62.3-.87s.34-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52 .36s.25.33.34.53.13.42.14.64h1.79c-.02-.47-.11-.9-.28-1.29s-.4-.73-.7-1.01-.66-. 5-1.08-.66-.88-.23-1.39-.23c-.65 0-1.22.11-1.7.34s-.88.53-1.2.92-.56.84-.71 1.36 S8 11.29 8 11.87v.27c0 .58.08 1.12.23 1.64s.39.97.71 1.35.72.69 1.2.91 1.05.34 1 .7.34c.47 0 .91-.08 1.32-.23s.77-.36 1.08-.63.56-.58.74-.94.29-.74.3-1.15h-1.79c -.01.21-.06.4-.15.58s-.21.33-.36.46-.32.23-.52.3c-.19.07-.39.09-.6.1-.36-.01-.66 -.08-.89-.23-.25-.16-.45-.37-.59-.62s-.25-.55-.3-.88-.08-.67-.08-1v-.27c0-.35.03 -.68.08-1.01zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm 0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></g> <g id="cr eate"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.3 9.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1 .83z"></path></g> <g id="create-new-folder"><path d="M20 6h-8l-2-2H4c-1.11 0-1.9 9.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3 v3h-2v-3h-3v-2h3V9h2v3h3v2z"></path></g> <g id="credit-card"><path d="M20 4H4c-1 .11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2 zm0 14H4v-6h16v6zm0-10H4V6h16v2z"></path></g> <g id="dashboard"><path d="M3 13h8 V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"></path></g> <g id="date- range"><path d="M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H 6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2 -2zm0 16H5V9h14v11z"></path></g> <g id="delete"><path d="M6 19c0 1.1.9 2 2 2h8c1 .1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"></path></g> <g id="descr iption"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2- .9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"></path></g> <g id="dns"><path d="M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v -6c0-.55-.45-1-1-1zM7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM20 3H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1zM7 9c-1.1 0-2 -.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path></g> <g id="done"><path d="M9 16.2L4 .8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"></path></g> <g id="done-all"><path d= "M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"></pa th></g> <g id="donut-large"><path d="M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3. 08c-3-.48-6-3.4-6-6.92s3-6.44 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13 18.92V22c5-.47 8.53-4 9-9h-3.03c-.43 3-2.97 5.49-5.97 5.92 z"></path></g> <g id="donut-small"><path d="M11 9.16V2c-5 .5-9 4.79-9 10s4 9.5 9 10v-7.16c-1-.41-2-1.52-2-2.84s1-2.43 2-2.84zM14.86 11H22c-.48-4.75-4-8.53-9-9v7 .16c1 .3 1.52.98 1.86 1.84zM13 14.84V22c5-.47 8.52-4.25 9-9h-7.14c-.34.86-.86 1. 54-1.86 1.84z"></path></g> <g id="drafts"><path d="M21.99 8c0-.72-.37-1.35-.94-1 .7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10 zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"></path></g> <g id="eject"><path d="M5 1 7h14v2H5zm7-12L5.33 15h13.34z"></path></g> <g id="error"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v 6z"></path></g> <g id="error-outline"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C 6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 2 0c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></g> <g id="event "><path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.8 9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"></path></g> <g id="event-seat"><path d="M4 18v3h3v-3h10v3h3v-6H4zm15-8h3v3h-3zM2 10h3v3H2zm 15 3H7V5c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v8z"></path></g> <g id="exit-to-app"><pat h d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5 c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1- .9-2-2-2z"></path></g> <g id="expand-less"><path d="M12 8l-6 6 1.41 1.41L12 10.8 3l4.59 4.58L18 14z"></path></g> <g id="expand-more"><path d="M16.59 8.59L12 13.1 7 7.41 8.59 6 10l6 6 6-6z"></path></g> <g id="explore"><path d="M12 10.9c-.61 0- 1.1.49-1.1 1.1s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm2.19 12.19L6 18l3.81-8. 19L18 6l-3.81 8.19z"></path></g> <g id="extension"><path d="M20.5 11H19V7c0-1.1- .9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8 H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.4 9 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2. 5-1.12 2.5-2.5S21.88 11 20.5 11z"></path></g> <g id="face"><path d="M9 11.75c-.6 9 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm 6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25 -1.25zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4 .41 0-8-3.59-8-8 0-.29.02-.58.05-.86 2.36-1.05 4.23-2.98 5.21-5.37C11.07 8.33 14 .05 10 17.42 10c.78 0 1.53-.09 2.25-.26.21.71.33 1.47.33 2.26 0 4.41-3.59 8-8 8z "></path></g> <g id="favorite"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"></path></g> <g id="favor ite-border"><path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4. 42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12 .28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8 .5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"></path></g> <g id="feedback"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"></path></g> <g id="file-download"><path d="M19 9h- 4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"></path></g> <g id="file-upload"><path d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"></path></g> <g id="filter-list"><path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"></path></g> <g id="find-in-page"><p ath d="M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 . 85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L20 19.59zM9 13c0 1.66 1.34 3 3 3s3-1.34 3-3-1. 34-3-3-3-3 1.34-3 3z"></path></g> <g id="find-replace"><path d="M11 6c1.38 0 2.6 3.56 3.54 1.46L12 10h6V4l-2.05 2.05C14.68 4.78 12.93 4 11 4c-3.53 0-6.43 2.61-6. 92 6H6.1c.46-2.28 2.48-4 4.9-4zm5.64 9.14c.66-.9 1.12-1.97 1.28-3.14H15.9c-.46 2 .28-2.48 4-4.9 4-1.38 0-2.63-.56-3.54-1.46L10 12H4v6l2.05-2.05C7.32 17.22 9.07 1 8 11 18c1.55 0 2.98-.51 4.14-1.36L20 21.49 21.49 20l-4.85-4.86z"></path></g> <g id="fingerprint"><path d="M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12. 01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2 .52 9.86 2 12.01 2c2.13 0 3.99.47 6.03 1.52.25.13.34.43.21.67-.09.18-.26.28-.44. 28zM3.5 9.72c-.1 0-.2-.03-.29-.09-.23-.16-.28-.47-.12-.7.99-1.4 2.25-2.5 3.75-3. 27C9.98 4.04 14 4.03 17.15 5.65c1.5.77 2.76 1.86 3.75 3.25.16.22.11.54-.12.7-.23 .16-.54.11-.7-.12-.9-1.26-2.04-2.25-3.39-2.94-2.87-1.47-6.54-1.47-9.4.01-1.36.7- 2.5 1.7-3.4 2.96-.08.14-.23.21-.39.21zm6.25 12.07c-.13 0-.26-.05-.35-.15-.87-.87 -1.34-1.43-2.01-2.64-.69-1.23-1.05-2.73-1.05-4.34 0-2.97 2.54-5.39 5.66-5.39s5.6 6 2.42 5.66 5.39c0 .28-.22.5-.5.5s-.5-.22-.5-.5c0-2.42-2.09-4.39-4.66-4.39-2.57 0-4.66 1.97-4.66 4.39 0 1.44.32 2.77.93 3.85.64 1.15 1.08 1.64 1.85 2.42.19.2.19 .51 0 .71-.11.1-.24.15-.37.15zm7.17-1.85c-1.19 0-2.24-.3-3.1-.89-1.49-1.01-2.38- 2.65-2.38-4.39 0-.28.22-.5.5-.5s.5.22.5.5c0 1.41.72 2.74 1.94 3.56.71.48 1.54.71 2.54.71.24 0 .64-.03 1.04-.1.27-.05.53.13.58.41.05.27-.13.53-.41.58-.57.11-1.07 .12-1.21.12zM14.91 22c-.04 0-.09-.01-.13-.02-1.59-.44-2.63-1.03-3.72-2.1-1.4-1.3 9-2.17-3.24-2.17-5.22 0-1.62 1.38-2.94 3.08-2.94 1.7 0 3.08 1.32 3.08 2.94 0 1.0 7.93 1.94 2.08 1.94s2.08-.87 2.08-1.94c0-3.77-3.25-6.83-7.25-6.83-2.84 0-5.44 1. 58-6.61 4.03-.39.81-.59 1.76-.59 2.8 0 .78.07 2.01.67 3.61.1.26-.03.55-.29.64-.2 6.1-.55-.04-.64-.29-.49-1.31-.73-2.61-.73-3.96 0-1.2.23-2.29.68-3.24 1.33-2.79 4 .28-4.6 7.51-4.6 4.55 0 8.25 3.51 8.25 7.83 0 1.62-1.38 2.94-3.08 2.94s-3.08-1.3 2-3.08-2.94c0-1.07-.93-1.94-2.08-1.94s-2.08.87-2.08 1.94c0 1.71.66 3.31 1.87 4.5 1.95.94 1.86 1.46 3.27 1.85.27.07.42.35.35.61-.05.23-.26.38-.47.38z"></path></g> <g id="flag"><path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"></path></g> <g id=" flight-land"><path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62 -.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8 .95l-.93-2.32-1.45-.39v5.17l1.6.43 5.31 1.43z"></path></g> <g id="flight-takeoff "><path d="M2.5 19h19v2h-19zm19.57-9.36c-.21-.8-1.04-1.28-1.84-1.06L14.92 10l-6. 9-6.43-1.93.51 4.14 7.17-4.97 1.33-1.97-1.54-1.45.39 1.82 3.16.77 1.33 1.6-.43 5 .31-1.42 4.35-1.16L21 11.49c.81-.23 1.28-1.05 1.07-1.85z"></path></g> <g id="fli p-to-back"><path d="M9 7H7v2h2V7zm0 4H7v2h2v-2zm0-8c-1.11 0-2 .9-2 2h2V3zm4 12h- 2v2h2v-2zm6-12v2h2c0-1.1-.9-2-2-2zm-6 0h-2v2h2V3zM9 17v-2H7c0 1.1.89 2 2 2zm10-4 h2v-2h-2v2zm0-4h2V7h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zM5 7H3v12c0 1.1.89 2 2 2h12v-2 H5V7zm10-2h2V3h-2v2zm0 12h2v-2h-2v2z"></path></g> <g id="flip-to-front"><path d= "M3 13h2v-2H3v2zm0 4h2v-2H3v2zm2 4v-2H3c0 1.1.89 2 2 2zM3 9h2V7H3v2zm12 12h2v-2h -2v2zm4-18H9c-1.11 0-2 .9-2 2v10c0 1.1.89 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2 -2zm0 12H9V5h10v10zm-8 6h2v-2h-2v2zm-4 0h2v-2H7v2z"></path></g> <g id="folder">< path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1. 1-.9-2-2-2h-8l-2-2z"></path></g> <g id="folder-open"><path d="M20 6h-8l-2-2H4c-1 .1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4 V8h16v10z"></path></g> <g id="folder-shared"><path d="M20 6h-8l-2-2H4c-1.1 0-1.9 9.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-5 3c1.1 0 2 . 9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm4 8h-8v-1c0-1.33 2.67-2 4-2s4 .67 4 2v1z"></p ath></g> <g id="font-download"><path d="M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H 9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13h-2.09z"></path></g> <g id="forward"><path d="M12 8V4l8 8-8 8v-4H4V8z"></path></g> <g id="fullscreen"><path d="M7 14H5v5h5 v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"></path></g> <g id="fullscreen-exit"><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3 h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"></path></g> <g id="gavel"><path d="M1 21h12v2H1 zM5.245 8.07l2.83-2.827 14.14 14.142-2.828 2.828zM12.317 1l5.657 5.656-2.83 2.83 -5.654-5.66zM3.825 9.485l5.657 5.657-2.828 2.828-5.657-5.657z"></path></g> <g id ="gesture"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25. 42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1 .95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78. 64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2 .5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48 -2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.5 2.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36 .36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87- 2.76-.3 2.69-1.43 3.48-2.13 3.48z"></path></g> <g id="get-app"><path d="M19 9h-4 V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"></path></g> <g id="gif"><path d="M11.5 9H13v6 h-1.5zM9 9H6c-.6 0-1 .5-1 1v4c0 .5.4 1 1 1h3c.6 0 1-.5 1-1v-2H8.5v1.5h-2v-3H10V1 0c0-.5-.4-1-1-1zm10 1.5V9h-4.5v6H16v-2h2v-1.5h-2v-1z"></path></g> <g id="grade"> <path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5 .46 4.73L5.82 21z"></path></g> <g id="group-work"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1. 12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zM9.5 8c0-1.38 1.12-2.5 2.5-2.5s 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8zm6.5 9.5c-1.38 0-2.5-1.12-2.5-2 .5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"></path></g> <g id="help" ><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 1 7h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17- 2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4 -4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"></path></g> <g id="help-outline"><path d ="M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1 .79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4 -4-4z"></path></g> <g id="highlight-off"><path d="M14.59 8L12 10.59 9.41 8 8 9.4 1 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM 12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8 -3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></g> <g id="history"><path d ="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7 -3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"></path></g> <g id="home"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"></path></g> <g id="ho urglass-empty"><path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L1 8 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"></path></g> <g id="hourglass-full"><path d="M6 2v6h.01L6 8.01 10 12l-4 4 .0 1.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6z"></path></g> <g id="ht tp"><path d="M4.5 11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5v2zm2.5-.5h1.5V15H10v-4.5h1.5 V9H7v1.5zm5.5 0H14V15h1.5v-4.5H17V9h-4.5v1.5zm9-1.5H18v6h1.5v-2h2c.8 0 1.5-.7 1. 5-1.5v-1c0-.8-.7-1.5-1.5-1.5zm0 2.5h-2v-1h2v1z"></path></g> <g id="https"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h 12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2 -2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"></path></g > <g id="important-devices"><path d="M23 11.01L18 11c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-9c0-.55-.45-.99-1-.99zM23 20h-5v-7h5v7zM20 2H2C.89 2 0 2.89 0 4v12c0 1.1.89 2 2 2h7v2H7v2h8v-2h-2v-2h2v-2H2V4h18v5h2V4c0-1.11-.9-2-2-2 zm-8.03 7L11 6l-.97 3H7l2.47 1.76-.94 2.91 2.47-1.8 2.47 1.8-.94-2.91L15 9h-3.03 z"></path></g> <g id="inbox"><path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1 .1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3 -1.34-3-3H4.99V5H19v10z"></path></g> <g id="indeterminate-check-box"><path d="M1 9 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10 H7v-2h10v2z"></path></g> <g id="info"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"></path></g> <g id="info-outline"><path d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.5 9 8-8 8zM11 9h2V7h-2v2z"></path></g> <g id="input"><path d="M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v- 14c0-1.11-.9-2-2-2zM11 16l4-4-4-4v3H1v2h10v3z"></path></g> <g id="invert-colors" ><path d="M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9. 95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 19.59 c-1.6 0-3.11-.62-4.24-1.76C6.62 16.69 6 15.19 6 13.59s.62-3.11 1.76-4.24L12 5.1v 14.49z"></path></g> <g id="label"><path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"></path></g> <g id="label-outline"><path d="M17.63 5.84C17.27 5. 33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.2 7-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l3.55 5L16 17z"></path></g> <g id=" language"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1 .91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91 -3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9- 4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM 12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .6 8-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93- 4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.3 1.26 2s-.1 1.36-.26 2h-3.38z"></path></g> <g id="launch"><path d="M19 19H5V5h7V3 H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9. 83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"></path></g> <g id="lightbulb-outline"><pat h d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.3 8 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3- 5.74 0-3.86-3.14-7-7-7zm2.85 11.1l-.85.6V16h-4v-2.3l-.85-.6C7.8 12.16 7 10.63 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1z"></path></g> <g id="line -style"><path d="M3 16h5v-2H3v2zm6.5 0h5v-2h-5v2zm6.5 0h5v-2h-5v2zM3 20h2v-2H3v2 zm4 0h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM3 12h8v-2H3v2zm10 0 h8v-2h-8v2zM3 4v4h18V4H3z"></path></g> <g id="line-weight"><path d="M3 17h18v-2H 3v2zm0 3h18v-1H3v1zm0-7h18v-3H3v3zm0-9v4h18V4H3z"></path></g> <g id="link"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7 c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s- 1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></g> <g id="list "><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7 v2zM7 7v2h14V7H7z"></path></g> <g id="lock"><path d="M18 8h-1V6c0-2.76-2.24-5-5- 5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9- 2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39- 3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"></path></g> <g id="lock-open"><path d="M 12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3 .24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v 10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z"></path>< /g> <g id="lock-outline"><path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h 12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9V6zM18 20H6V10h12v10z"></path></g> <g id="loyalty"><path d="M21.41 11.5 8l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36 .36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1. 06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7zm1 1.77 8.27L13 19.54l-4.27-4.27C8.28 14.81 8 14.19 8 13.5c0-1.38 1.12-2.5 2.5-2.5. 69 0 1.32.28 1.77.74l.73.72.73-.73c.45-.45 1.08-.73 1.77-.73 1.38 0 2.5 1.12 2.5 2.5 0 .69-.28 1.32-.73 1.77z"></path></g> <g id="mail"><path d="M20 4H4c-1.1 0- 1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8- 5V6l8 5 8-5v2z"></path></g> <g id="markunread"><path d="M20 4H4c-1.1 0-1.99.9-1. 99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8 -5v2z"></path></g> <g id="markunread-mailbox"><path d="M20 6H10v6H8V4h6V0H6v6H4c -1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2z"></path></g > <g id="menu"><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"></path></ g> <g id="more-horiz"><path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path></g> <g id="more-vert"><path d="M12 8c1.1 0 2-.9 2-2s -.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6 c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path></g> <g id="motorcycle"><pa th d="M19.44 9.03L15.41 5H11v2h3.59l2 2H5c-2.8 0-5 2.2-5 5s2.2 5 5 5c2.46 0 4.45 -1.69 4.9-4h1.65l2.77-2.77c-.21.54-.32 1.14-.32 1.77 0 2.8 2.2 5 5 5s5-2.2 5-5c0 -2.65-1.97-4.77-4.56-4.97zM7.82 15C7.4 16.15 6.28 17 5 17c-1.63 0-3-1.37-3-3s1.3 7-3 3-3c1.28 0 2.4.85 2.82 2H5v2h2.82zM19 17c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.3 4 3 3-1.34 3-3 3z"></path></g> <g id="move-to-inbox"><path d="M19 3H4.99c-1.11 0 -1.98.9-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12h- 4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10zm-3-5h-2V7h-4v3H8l4 4 4-4z"></path> </g> <g id="next-week"><path d="M20 7h-4V5c0-.55-.22-1.05-.59-1.41C15.05 3.22 14 .55 3 14 3h-4c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zM10 5h4v2h-4V5zm1 13.5l-1-1 3-3-3-3 1-1 4 4-4 4z"></path>< /g> <g id="note-add"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H1 3z"></path></g> <g id="offline-pin"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm5 16H7v-2h10v2zm-6.7-4L7 10.7l1.4-1.4 1.9 1.9 5.3-5.3 L17 7.3 10.3 14z"></path></g> <g id="opacity"><path d="M17.66 8L12 2.35 6.34 8C4 .78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.3 5S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.2 4 4.38C17.38 10.77 17.99 12 18 14H6z"></path></g> <g id="open-in-browser"><path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2 -2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"></path></g> <g id="open-in-new "><path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2 v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"></path></g> <g id ="open-with"><path d="M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l -5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"></path></g> <g id="pageview"><p ath d="M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2 -2zm-3.21 14.21l-2.91-2.91c-.69.44-1.51.7-2.39.7C9.01 16 7 13.99 7 11.5S9.01 7 1 1.5 7 16 9.01 16 11.5c0 .88-.26 1.69-.7 2.39l2.91 2.9-1.42 1.42z"></path></g> <g id="pan-tool"><path d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.1 9L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2 .46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S1 5 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"></path></g> <g id="payment"><path d="M20 4H4c-1.11 0-1. 99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4 v-6h16v6zm0-10H4V6h16v2z"></path></g> <g id="perm-camera-mic"><path d="M20 5h-3. 17L15 3H9L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v-2.09c-2.83-.48-5-2.94-5-5 .91h2c0 2.21 1.79 4 4 4s4-1.79 4-4h2c0 2.97-2.17 5.43-5 5.91V21h7c1.1 0 2-.9 2-2 V7c0-1.1-.9-2-2-2zm-6 8c0 1.1-.9 2-2 2s-2-.9-2-2V9c0-1.1.9-2 2-2s2 .9 2 2v4z"></ path></g> <g id="perm-contact-calendar"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1c0-2 4-3.1 6-3.1s6 1.1 6 3. 1v1z"></path></g> <g id="perm-data-setting"><path d="M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.0 2-.16.04-.32.04-.49 0-.17-.01-.33-.04-.49l1.06-.83c.09-.08.12-.21.06-.32l-1-1.73 c-.06-.11-.19-.15-.31-.11l-1.24.5c-.26-.2-.54-.37-.85-.49l-.19-1.32c-.01-.12-.12 -.21-.24-.21h-2c-.12 0-.23.09-.25.21l-.19 1.32c-.3.13-.59.29-.85.49l-1.24-.5c-.1 1-.04-.24 0-.31.11l-1 1.73c-.06.11-.04.24.06.32l1.06.83c-.02.16-.03.32-.03.49 0 .17.01.33.03.49l-1.06.83c-.09.08-.12.21-.06.32l1 1.73c.06.11.19.15.31.11l1.24-.5 c.26.2.54.37.85.49l.19 1.32c.02.12.12.21.25.21h2c.12 0 .23-.09.25-.21l.19-1.32c. 3-.13.59-.29.84-.49l1.25.5c.11.04.24 0 .31-.11l1-1.73c.06-.11.03-.24-.06-.32l-1. 07-.83zm-3.71 1.01c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5 -1.5 1.5z"></path></g> <g id="perm-device-information"><path d="M13 7h-2v2h2V7zm 0 4h-2v6h2v-6zm4-9.99L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0 -1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"></path></g> <g id="perm-identity"><path d ="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m 0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.3 3-4-8-4z"></path></g> <g id="perm-media"><path d="M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2V6zm20-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-. 9 2-2V6c0-1.1-.9-2-2-2zM7 15l4.5-6 3.5 4.51 2.5-3.01L21 15H7z"></path></g> <g id ="perm-phone-msg"><path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.0 2.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1zM12 3v10l3-3h6V3h-9z"></path></g> <g id="perm- scan-wifi"><path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"></path></g> <g id="pets"><circle cx="4. 5" cy="9.5" r="2.5"></circle><circle cx="9" cy="5.5" r="2.5"></circle><circle cx ="15" cy="5.5" r="2.5"></circle><circle cx="19.5" cy="9.5" r="2.5"></circle><pat h d="M17.34 14.86c-.87-1.02-1.6-1.89-2.48-2.91-.46-.54-1.05-1.08-1.75-1.32-.11-. 04-.22-.07-.33-.09-.25-.04-.52-.04-.78-.04s-.53 0-.79.05c-.11.02-.22.05-.33.09-. 7.24-1.28.78-1.75 1.32-.87 1.02-1.6 1.89-2.48 2.91-1.31 1.31-2.92 2.76-2.62 4.79 .29 1.02 1.02 2.03 2.33 2.32.73.15 3.06-.44 5.54-.44h.18c2.48 0 4.81.58 5.54.44 1.31-.29 2.04-1.31 2.33-2.32.31-2.04-1.3-3.49-2.61-4.8z"></path></g> <g id="pict ure-in-picture"><path d="M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z"></path>< /g> <g id="picture-in-picture-alt"><path d="M19 11h-8v6h8v-6zm4 8V4.98C23 3.88 2 2.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H3V4. 97h18v14.05z"></path></g> <g id="play-for-work"><path d="M11 5v5.59H7.5l4.5 4.5 4.5-4.5H13V5h-2zm-5 9c0 3.31 2.69 6 6 6s6-2.69 6-6h-2c0 2.21-1.79 4-4 4s-4-1.79- 4-4H6z"></path></g> <g id="polymer"><path d="M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.89-12.63L19.5 12 15 20h4l4.5-8z"></path></g> <g id="power-settings- new"><path d="M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3 .87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"></path></g> <g i d="pregnant-woman"><path d="M9 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm 7 9c-.01-1.34-.83-2.51-2-3 0-1.66-1.34-3-3-3s-3 1.34-3 3v7h2v5h3v-5h3v-4z"></pat h></g> <g id="print"><path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66 -1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z m-1-9H6v4h12V3z"></path></g> <g id="query-builder"><path d="M11.99 2C6.47 2 2 6. 48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8 -3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.6 7z"></path></g> <g id="question-answer"><path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h1 1l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"></path></g> <g id="radio-button-checked"><path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></g> <g id="radio-button-unchecked"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8- 8 8 3.58 8 8-3.58 8-8 8z"></path></g> <g id="receipt"><path d="M18 17H6v-2h12v2z m0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1 .5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2 l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2v20z"></path></g> <g id="record-voice-over" ><circle cx="9" cy="9" r="4"></circle><path d="M9 15c-2.67 0-8 1.34-8 4v2h16v-2c 0-2.66-5.33-4-8-4zm7.76-9.64l-1.68 1.69c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2 .02 2.02-5.07 0-7.27zM20.07 2l-1.63 1.63c2.77 3.02 2.77 7.56 0 10.74L20.07 16c3. 9-3.89 3.91-9.95 0-14z"></path></g> <g id="redeem"><path d="M20 6h-2.18c.11-.31. 18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 1 0.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1. 11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1- 1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10. 83 14.92 8H20v6z"></path></g> <g id="redo"><path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3. 73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"></path></g> <g id="refresh"><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2 .55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.1 4.69 4.22 1.78L13 11h7V4l-2.35 2.35z"></path></g> <g id="remove"><path d="M19 13 H5v-2h14v2z"></path></g> <g id="remove-circle"><path d="M12 2C6.48 2 2 6.48 2 12 s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"></path></g> <g id="r emove-circle-outline"><path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 1 0 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3 .59 8-8 8z"></path></g> <g id="reorder"><path d="M3 15h18v-2H3v2zm0 4h18v-2H3v2z m0-8h18V9H3v2zm0-6v2h18V5H3z"></path></g> <g id="reply"><path d="M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"></path></g> <g id="reply-all"><path d ="M7 8V5l-7 7 7 7v-3l-4-4 4-4zm6 1V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-1 1-11z"></path></g> <g id="report"><path d="M15.73 3H8.27L3 8.27v7.46L8.27 21h7.4 6L21 15.73V8.27L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3 1.3zm1-4.3h-2V7h2v6z"></path></g> <g id="repo rt-problem"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"></path> </g> <g id="restore"><path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c 0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8. 27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21- 3.5-2.08V8H12z"></path></g> <g id="room"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2. 5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"></path></g> <g id="rounded-corner" ><path d="M19 19h2v2h-2v-2zm0-2h2v-2h-2v2zM3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H 3v2zm0-4h2V3H3v2zm4 0h2V3H7v2zm8 16h2v-2h-2v2zm-4 0h2v-2h-2v2zm4 0h2v-2h-2v2zm-8 0h2v-2H7v2zm-4 0h2v-2H3v2zM21 8c0-2.76-2.24-5-5-5h-5v2h5c1.65 0 3 1.35 3 3v5h2V 8z"></path></g> <g id="rowing"><path d="M8.5 14.5L4 19l1.5 1.5L9 17h2l-2.5-2.5zM 15 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 20.01L18 24l-2.99-3.01V19.5l- 7.1-7.09c-.31.05-.61.07-.91.07v-2.16c1.66.03 3.61-.87 4.67-2.04l1.4-1.55c.19-.21 .43-.38.69-.5.29-.14.62-.23.96-.23h.03C15.99 6.01 17 7.02 17 8.26v5.75c0 .84-.35 1.61-.92 2.16l-3.58-3.58v-2.27c-.63.52-1.43 1.02-2.29 1.39L16.5 18H18l3 3.01z"> </path></g> <g id="save"><path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c 1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3 zm3-10H5V5h10v4z"></path></g> <g id="schedule"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.5 8-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"> </path></g> <g id="search"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1. 57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 1 4 7.01 14 9.5 11.99 14 9.5 14z"></path></g> <g id="select-all"><path d="M3 5h2V3 c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h 2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2 h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z"></path></g> <g id="sen d"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"></path></g> <g id="settings"> <path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.2 4-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l- .38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17. 59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c -.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.2 2.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .4 6-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.4 6c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3 .5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"></path></g> <g id="settings-applicati ons"><path d="M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm7-7H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-1.75 9c0 .23-.0 2.46-.05.68l1.48 1.16c.13.11.17.3.08.45l-1.4 2.42c-.09.15-.27.21-.43.15l-1.74-.7 c-.36.28-.76.51-1.18.69l-.26 1.85c-.03.17-.18.3-.35.3h-2.8c-.17 0-.32-.13-.35-.2 9l-.26-1.85c-.43-.18-.82-.41-1.18-.69l-1.74.7c-.16.06-.34 0-.43-.15l-1.4-2.42c-. 09-.15-.05-.34.08-.45l1.48-1.16c-.03-.23-.05-.46-.05-.69 0-.23.02-.46.05-.68l-1. 48-1.16c-.13-.11-.17-.3-.08-.45l1.4-2.42c.09-.15.27-.21.43-.15l1.74.7c.36-.28.76 -.51 1.18-.69l.26-1.85c.03-.17.18-.3.35-.3h2.8c.17 0 .32.13.35.29l.26 1.85c.43.1 8.82.41 1.18.69l1.74-.7c.16-.06.34 0 .43.15l1.4 2.42c.09.15.05.34-.08.45l-1.48 1 .16c.03.23.05.46.05.69z"></path></g> <g id="settings-backup-restore"><path d="M1 4 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2-9c-4.97 0-9 4.03-9 9H0l4 4 4 -4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.91-.49-4.06-1.3l-1.42 1.4 4C8.04 20.3 9.94 21 12 21c4.97 0 9-4.03 9-9s-4.03-9-9-9z"></path></g> <g id="set tings-bluetooth"><path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-1 8.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71 -4.3-4.29 4.3-4.29zM13 3.83l1.88 1.88L13 7.59V3.83zm1.88 10.46L13 16.17v-3.76l1. 88 1.88z"></path></g> <g id="settings-brightness"><path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z M8 16h2.5l1.5 1.5 1.5-1.5H16v-2.5l1.5-1.5-1.5-1.5V8h-2.5L12 6.5 10.5 8H8v2.5L6.5 12 8 13.5V16zm4-7c1.66 0 3 1.34 3 3s-1.34 3-3 3V9z"></path></g> <g id="settings -cell"><path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM16 .01L8 0C6.9 0 6 .9 6 2v16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V2c0-1.1-.9-1.99-2-1.99zM16 16H8V4h8v12 z"></path></g> <g id="settings-ethernet"><path d="M7.77 6.76L6.23 5.48.82 12l5.4 1 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v 2zm6.77-7.52l-1.54 1.28L20.58 12l-4.35 5.24 1.54 1.28L23.18 12l-5.41-6.52z"></pa th></g> <g id="settings-input-antenna"><path d="M12 5c-3.87 0-7 3.13-7 7h2c0-2.7 6 2.24-5 5-5s5 2.24 5 5h2c0-3.87-3.13-7-7-7zm1 9.29c.88-.39 1.5-1.26 1.5-2.29 0- 1.38-1.12-2.5-2.5-2.5S9.5 10.62 9.5 12c0 1.02.62 1.9 1.5 2.29v3.3L7.59 21 9 22.4 1l3-3 3 3L16.41 21 13 17.59v-3.3zM12 1C5.93 1 1 5.93 1 12h2c0-4.97 4.03-9 9-9s9 4.03 9 9h2c0-6.07-4.93-11-11-11z"></path></g> <g id="settings-input-component">< path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V 23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6. 16 18.4 7 17.3 7 16v-2H1v2zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6h-2zm-8- 4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18 c1.16-.41 2-1.51 2-2.82v-2h-6v2z"></path></g> <g id="settings-input-composite">< path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V 23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6. 16 18.4 7 17.3 7 16v-2H1v2zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6h-2zm-8- 4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18 c1.16-.41 2-1.51 2-2.82v-2h-6v2z"></path></g> <g id="settings-input-hdmi"><path d="M18 7V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3H5v6l3 6v3h8v-3l3-6V7h-1zM8 4h8v3h- 2V5h-1v2h-2V5h-1v2H8V4z"></path></g> <g id="settings-input-svideo"><path d="M8 1 1.5c0-.83-.67-1.5-1.5-1.5S5 10.67 5 11.5 5.67 13 6.5 13 8 12.33 8 11.5zm7-5c0-.8 3-.67-1.5-1.5-1.5h-3C9.67 5 9 5.67 9 6.5S9.67 8 10.5 8h3c.83 0 1.5-.67 1.5-1.5zM 8.5 15c-.83 0-1.5.67-1.5 1.5S7.67 18 8.5 18s1.5-.67 1.5-1.5S9.33 15 8.5 15zM12 1 C5.93 1 1 5.93 1 12s4.93 11 11 11 11-4.93 11-11S18.07 1 12 1zm0 20c-4.96 0-9-4.0 4-9-9s4.04-9 9-9 9 4.04 9 9-4.04 9-9 9zm5.5-11c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm-2 5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"></path></g> <g id="settings-overscan"><path d ="M12.01 5.5L10 8h4l-1.99-2.5zM18 10v4l2.5-1.99L18 10zM6 10l-2.5 2.01L6 14v-4zm8 6h-4l2.01 2.5L14 16zm7-13H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V 5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"></path></g> <g id="settings-phone">< path d="M13 9h-2v2h2V9zm4 0h-2v2h2V9zm3 6.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74 -.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25- 1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 1 7 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1zM19 9v2h2V9h-2z"></path></g> <g id="se ttings-power"><path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l -1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4. 06 2.88-5.12L7.44 4.44C5.36 5.88 4 8.28 4 11c0 4.42 3.58 8 8 8s8-3.58 8-8c0-2.72 -1.36-5.12-3.44-6.56zM15 24h2v-2h-2v2z"></path></g> <g id="settings-remote"><pat h d="M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1 -1-1zm-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM7.05 6.05l1.41 1.41C9.37 6.56 10.62 6 12 6s2.63.56 3.54 1.46l1.41-1.41C15.68 4.78 13.93 4 12 4s-3.68.78-4 .95 2.05zM12 0C8.96 0 6.21 1.23 4.22 3.22l1.41 1.41C7.26 3.01 9.51 2 12 2s4.74 1 .01 6.36 2.64l1.41-1.41C17.79 1.23 15.04 0 12 0z"></path></g> <g id="settings-vo ice"><path d="M7 24h2v-2H7v2zm5-11c1.66 0 2.99-1.34 2.99-3L15 4c0-1.66-1.34-3-3- 3S9 2.34 9 4v6c0 1.66 1.34 3 3 3zm-1 11h2v-2h-2v2zm4 0h2v-2h-2v2zm4-14h-1.7c0 3- 2.54 5.1-5.3 5.1S6.7 13 6.7 10H5c0 3.41 2.72 6.23 6 6.72V20h2v-3.28c3.28-.49 6-3 .31 6-6.72z"></path></g> <g id="shop"><path d="M16 6V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H2v13c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6h-6zm-6-2h4v2h-4V4zM9 1 8V9l7.5 4L9 18z"></path></g> <g id="shop-two"><path d="M3 9H1v11c0 1.11.89 2 2 2 h14c1.11 0 2-.89 2-2H3V9zm15-4V3c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H5v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5h-5zm-6-2h4v2h-4V3zm0 12V8l5.5 3-5.5 4z"></pa th></g> <g id="shopping-basket"><path d="M17.21 9l-4.38-6.56c-.19-.28-.51-.42-.8 3-.42-.32 0-.64.14-.83.43L6.79 9H2c-.55 0-1 .45-1 1 0 .09.01.18.04.27l2.54 9.27c .23.84 1 1.46 1.92 1.46h13c.92 0 1.69-.62 1.93-1.46l2.54-9.27L23 10c0-.55-.45-1- 1-1h-4.79zM9 9l3-4.4L15 9H9zm3 8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></ path></g> <g id="shopping-cart"><path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s 2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03 l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.9 9.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"></path></g> <g id="sort"><path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"></path></g> <g id="speaker-notes"><p ath d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z M8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-3h-8V6h 8v2z"></path></g> <g id="spellcheck"><path d="M12.45 16h2.09L9.43 3H7.57L2.46 16 h2.09l1.12-3h5.64l1.14 3zm-6.02-5L8.5 5.48 10.57 11H6.43zm15.16.59l-8.09 8.09L9. 83 16l-1.41 1.41 5.09 5.09L23 13l-1.41-1.41z"></path></g> <g id="star"><path d=" M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L 5.82 21z"></path></g> <g id="star-border"><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.7 6 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15 .4z"></path></g> <g id="star-half"><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4. 04 4.38.38-3.32 2.88 1 4.28L12 15.4z"></path></g> <g id="stars"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4. 24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23L16.23 18z"></path></g> <g id="store"><path d="M20 4H4v2h16V4zm1 10v-2l-1-5H 4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"></path></g> <g id="subdirectory-a rrow-left"><path d="M11 9l1.42 1.42L8.83 14H18V4h2v12H8.83l3.59 3.58L11 21l-6-6 6-6z"></path></g> <g id="subdirectory-arrow-right"><path d="M19 15l-6 6-1.42-1.4 2L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"></path></g> <g id="subject"><path d="M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z"></path></g> < g id="supervisor-account"><path d="M16.5 12c1.38 0 2.49-1.12 2.49-2.5S17.88 7 16 .5 7C15.12 7 14 8.12 14 9.5s1.12 2.5 2.5 2.5zM9 11c1.66 0 2.99-1.34 2.99-3S10.66 5 9 5C7.34 5 6 6.34 6 8s1.34 3 3 3zm7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0 -1.83-3.67-2.75-5.5-2.75zM9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.3 7-3.47C10.5 13.1 9.66 13 9 13z"></path></g> <g id="swap-horiz"><path d="M6.99 11 L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"></path></g> <g id="swap-vert"><path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14 h2V6.99h3L9 3z"></path></g> <g id="swap-vertical-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM6.5 9L10 5.5 13.5 9H11v4H9V 9H6.5zm11 6L14 18.5 10.5 15H13v-4h2v4h2.5z"></path></g> <g id="system-update-alt "><path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1 .1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"></path></g > <g id="tab"><path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2- 2V5c0-1.1-.9-2-2-2zm0 16H3V5h10v4h8v10z"></path></g> <g id="tab-unselected"><pat h d="M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v -2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v-2h-2v2zM9 5h2V3H9v2zM5 21h2v-2H5v2zM5 5h2V3H5v2zm16 16c1.1 0 2-.9 2-2h-2v2zm0-8h2v-2h-2v2 zm-8 8h2v-2h-2v2zm4 0h2v-2h-2v2z"></path></g> <g id="text-format"><path d="M5 17 v2h14v-2H5zm4.5-4.2h5l.9 2.2h2.1L12.75 4h-1.5L6.5 15h2.1l.9-2.2zM12 5.98L13.87 1 1h-3.74L12 5.98z"></path></g> <g id="theaters"><path d="M18 3v2h-2V3H8v2H6V3H4v1 8h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2 h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"></path></g> <g id="thumb-down"><path d="M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36. 58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z"></path></g> <g id="thumb-up"><p ath d="M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79- .44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z"></path></g> <g id="thumbs-up-down"><path d="M12 6c0-.55-.45-1-1-1H5.82l.66-3.18.02-.23c0-.31-. 13-.59-.33-.8L5.38 0 .44 4.94C.17 5.21 0 5.59 0 6v6.5c0 .83.67 1.5 1.5 1.5h6.75c .62 0 1.15-.38 1.38-.91l2.26-5.29c.07-.17.11-.36.11-.55V6zm10.5 4h-6.75c-.62 0-1 .15.38-1.38.91l-2.26 5.29c-.07.17-.11.36-.11.55V18c0 .55.45 1 1 1h5.18l-.66 3.18 -.02.24c0 .31.13.59.33.8l.79.78 4.94-4.94c.27-.27.44-.65.44-1.06v-6.5c0-.83-.67- 1.5-1.5-1.5z"></path></g> <g id="timeline"><path d="M23 8c0 1.1-.9 2-2 2-.18 0-. 35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-. 36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07 .33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9. 36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.0 7.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2z" ></path></g> <g id="toc"><path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm1 6 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"></path></g> <g id="today"><path d= "M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2- .9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"></path></g> <g id="toll">< path d="M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0- 6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM3 12c0-2.61 1.67-4.83 4-5.65V4.26C3 .55 5.15 1 8.27 1 12s2.55 6.85 6 7.74v-2.09c-2.33-.82-4-3.04-4-5.65z"></path></g > <g id="touch-app"><path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3 .74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4.54-2.26c-.17-.07-.35-.11-.54-.11H13v-6c0-.83-.67-1.5-1.5-1.5S 10 6.67 10 7.5v10.74l-3.43-.72c-.08-.01-.15-.03-.24-.03-.31 0-.59.13-.79.33l-.79 .8 4.94 4.94c.27.27.65.44 1.06.44h6.79c.75 0 1.33-.55 1.44-1.28l.75-5.27c.01-.07 .02-.14.02-.2 0-.62-.38-1.16-.91-1.38z"></path></g> <g id="track-changes"><path d="M19.07 4.93l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c 0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s6-2.69 6-6c 0-1.66-.67-3.16-1.76-4.24l-1.41 1.41C15.55 9.9 16 10.9 16 12c0 2.21-1.79 4-4 4s- 4-1.79-4-4c0-1.86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2 -2c0-.74-.4-1.38-1-1.72V2h-1C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-2. 76-1.12-5.26-2.93-7.07z"></path></g> <g id="translate"><path d="M12.87 15.07l-2. 54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.9 2 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l -5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4 .5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"></path></g> <g id="trending-down"><pat h d="M16 18l2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6z"></p ath></g> <g id="trending-flat"><path d="M22 12l-4-4v3H3v2h15v3z"></path></g> <g id="trending-up"><path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"></path></g> <g id="turned-in"><path d="M17 3H7c-1.1 0-1.99.9- 1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"></path></g> <g id="turned-in-not"><path d ="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V 5h10v13z"></path></g> <g id="unarchive"><path d="M20.55 5.22l-1.39-1.68C18.88 3. 21 18.47 3 18 3H6c-.47 0-.88.21-1.15.55L3.46 5.22C3.17 5.57 3 6.01 3 6.5V19c0 1. 1.89 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.49-.17-.93-.45-1.28zM12 9.5l5.5 5.5H14v2h-4v -2H6.5L12 9.5zM5.12 5l.82-1h12l.93 1H5.12z"></path></g> <g id="undo"><path d="M1 2.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3 .54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"></path></g> <g id= "unfold-less"><path d="M7.41 18.59L8.83 20 12 16.83 15.17 20l1.41-1.41L12 14l-4. 59 4.59zm9.18-13.18L15.17 4 12 7.17 8.83 4 7.41 5.41 12 10l4.59-4.59z"></path></ g> <g id="unfold-more"><path d="M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"></path> </g> <g id="update"><path d="M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-. 1-2.73 2.71-2.73 7.08 0 9.79 2.73 2.71 7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11- .02-12.58 3.51-3.47 9.14-3.47 12.65 0L21 3v7.12zM12.5 8v4.25l3.5 2.08-.72 1.21L1 1 13V8h1.5z"></path></g> <g id="verified-user"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59 L18 9l-8 8z"></path></g> <g id="view-agenda"><path d="M20 13H3c-.55 0-1 .45-1 1v 6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zm0-10H3c-.55 0-1 .45-1 1v 6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1z"></path></g> <g id="view- array"><path d="M4 18h3V5H4v13zM18 5v13h3V5h-3zM8 18h9V5H8v13z"></path></g> <g i d="view-carousel"><path d="M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z"></pa th></g> <g id="view-column"><path d="M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V 5h-5z"></path></g> <g id="view-day"><path d="M2 21h19v-3H2v3zM20 8H3c-.55 0-1 .4 5-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zM2 3v3h19V3H2z"></pa th></g> <g id="view-headline"><path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H 4v2zm0-6v2h16V5H4z"></path></g> <g id="view-list"><path d="M4 14h4v-4H4v4zm0 5h4 v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"></path></g> < g id="view-module"><path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6 h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z"></path></g> <g id="view-quilt"><path d="M10 18h5v-6h-5v6zm-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"></path></g> <g id ="view-stream"><path d="M4 18h17v-6H4v6zM4 5v6h17V5H4z"></path></g> <g id="view- week"><path d="M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-. 55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-. 55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-. 55-.45-1-1-1z"></path></g> <g id="visibility"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"></path></g> <g id="visibility-off"><path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.7 3-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4. 27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-. 3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.0 8.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2 .53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34 -3-3-3l-.17.01z"></path></g> <g id="warning"><path d="M1 21h22L12 2 1 21zm12-3h- 2v-2h2v2zm0-4h-2v-4h2v4z"></path></g> <g id="watch-later"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2. 7-.8 1.3z"></path></g> <g id="weekend"><path d="M21 10c-1.1 0-2 .9-2 2v3H5v-3c0- 1.1-.9-2-2-2s-2 .9-2 2v5c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2zm-3-5 H6c-1.1 0-2 .9-2 2v2.15c1.16.41 2 1.51 2 2.82V14h12v-2.03c0-1.3.84-2.4 2-2.82V7c 0-1.1-.9-2-2-2z"></path></g> <g id="work"><path d="M20 6h-4V4c0-1.11-.89-2-2-2h- 4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2- .89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"></path></g> <g id="youtube-searched- for"><path d="M17.01 14h-.8l-.27-.27c.98-1.14 1.57-2.61 1.57-4.23 0-3.59-2.91-6. 5-6.5-6.5s-6.5 3-6.5 6.5H2l3.84 4 4.16-4H6.51C6.51 7 8.53 5 11.01 5s4.5 2.01 4.5 4.5c0 2.48-2.02 4.5-4.5 4.5-.65 0-1.26-.14-1.82-.38L7.71 15.1c.97.57 2.09.9 3.3 .9 1.61 0 3.08-.59 4.22-1.57l.27.27v.79l5.01 4.99L22 19l-4.99-5z"></path></g> <g id="zoom-in"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.9 1 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79 l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"></path></g> <g id="zoom-out" ><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"></path></g> </defs></svg> </iron-iconset-svg> <script>!function (){"use strict";function e(e,t){var n="";if(e){var i=e.toLowerCase();" "===i||v. test(i)?n="space":f.test(i)?n="esc":1==i.length?t&&!u.test(i)||(n=i):n=c.test(i) ?i.replace("arrow",""):"multiply"==i?"*":i}return n}function t(e){var t="";retur n e&&(e in o?t=o[e]:h.test(e)?(e=parseInt(e.replace("U+","0x"),16),t=String.from CharCode(e).toLowerCase()):t=e.toLowerCase()),t}function n(e){var t="";return Nu mber(e)&&(t=e>=65&&e<=90?String.fromCharCode(32+e):e>=112&&e<=123?"f"+(e-112):e> =48&&e<=57?String(e-48):e>=96&&e<=105?String(e-96):d[e]),t}function i(i,r){retur n e(i.key,r)||t(i.keyIdentifier)||n(i.keyCode)||e(i.detail?i.detail.key:i.detail ,r)||""}function r(e,t){var n=i(t,e.hasModifiers);return n===e.key&&(!e.hasModif iers||!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altK ey&&!!t.metaKey==!!e.metaKey)}function s(e){return 1===e.length?{combo:e,key:e,e vent:"keydown"}:e.split("+").reduce(function(e,t){var n=t.split(":"),i=n[0],r=n[ 1];return i in y?(e[y[i]]=!0,e.hasModifiers=!0):(e.key=i,e.event=r||"keydown"),e },{combo:e.split(":").shift()})}function a(e){return e.trim().split(" ").map(fun ction(e){return s(e)})}var o={"U+0008":"backspace","U+0009":"tab","U+001B":"esc" ,"U+0020":"space","U+007F":"del"},d={8:"backspace",9:"tab",13:"enter",27:"esc",3 3:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"rig ht",40:"down",46:"del",106:"*"},y={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey", meta:"metaKey"},u=/[a-z0-9*]/,h=/U\+/,c=/^arrow/,v=/^space(bar)?/,f=/^escape$/;P olymer.IronA11yKeysBehavior={properties:{keyEventTarget:{type:Object,value:funct ion(){return this}},stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundK eyHandlers:{type:Array,value:function(){return[]}},_imperativeKeyBindings:{type: Object,value:function(){return{}}}},observers:["_resetKeyEventListeners(keyEvent Target, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyB indings()},attached:function(){this._listenKeyEventListeners()},detached:functio n(){this._unlistenKeyEventListeners()},addOwnKeyBinding:function(e,t){this._impe rativeKeyBindings[e]=t,this._prepKeyBindings(),this._resetKeyEventListeners()},r emoveOwnKeyBindings:function(){this._imperativeKeyBindings={},this._prepKeyBindi ngs(),this._resetKeyEventListeners()},keyboardEventMatchesKeys:function(e,t){for (var n=a(t),i=0;i<n.length;++i)if(r(n[i],e))return!0;return!1},_collectKeyBindin gs:function(){var e=this.behaviors.map(function(e){return e.keyBindings});return e.indexOf(this.keyBindings)===-1&&e.push(this.keyBindings),e},_prepKeyBindings: function(){this._keyBindings={},this._collectKeyBindings().forEach(function(e){f or(var t in e)this._addKeyBinding(t,e[t])},this);for(var e in this._imperativeKe yBindings)this._addKeyBinding(e,this._imperativeKeyBindings[e]);for(var t in thi s._keyBindings)this._keyBindings[t].sort(function(e,t){var n=e[0].hasModifiers,i =t[0].hasModifiers;return n===i?0:n?-1:1})},_addKeyBinding:function(e,t){a(e).fo rEach(function(e){this._keyBindings[e.event]=this._keyBindings[e.event]||[],this ._keyBindings[e.event].push([e,t])},this)},_resetKeyEventListeners:function(){th is._unlistenKeyEventListeners(),this.isAttached&&this._listenKeyEventListeners() },_listenKeyEventListeners:function(){this.keyEventTarget&&Object.keys(this._key Bindings).forEach(function(e){var t=this._keyBindings[e],n=this._onKeyBindingEve nt.bind(this,t);this._boundKeyHandlers.push([this.keyEventTarget,e,n]),this.keyE ventTarget.addEventListener(e,n)},this)},_unlistenKeyEventListeners:function(){f or(var e,t,n,i;this._boundKeyHandlers.length;)e=this._boundKeyHandlers.pop(),t=e [0],n=e[1],i=e[2],t.removeEventListener(n,i)},_onKeyBindingEvent:function(e,t){i f(this.stopKeyboardEventPropagation&&t.stopPropagation(),!t.defaultPrevented)for (var n=0;n<e.length;n++){var i=e[n][0],s=e[n][1];if(r(i,t)&&(this._triggerKeyHan dler(i,s,t),t.defaultPrevented))return}},_triggerKeyHandler:function(e,t,n){var i=Object.create(e);i.keyboardEvent=n;var r=new CustomEvent(e.event,{detail:i,can celable:!0});this[t].call(this,r),r.defaultPrevented&&n.preventDefault()}}}()</s cript> <script>Polymer.IronControlState={properties:{focused:{type:Boolean,value :!1,notify:!0,readOnly:!0,reflectToAttribute:!0},disabled:{type:Boolean,value:!1 ,notify:!0,observer:"_disabledChanged",reflectToAttribute:!0},_oldTabIndex:{type :Number},_boundFocusBlurHandler:{type:Function,value:function(){return this._foc usBlurHandler.bind(this)}}},observers:["_changedControlState(focused, disabled)" ],ready:function(){this.addEventListener("focus",this._boundFocusBlurHandler,!0) ,this.addEventListener("blur",this._boundFocusBlurHandler,!0)},_focusBlurHandler :function(e){if(e.target===this)this._setFocused("focus"===e.type);else if(!this .shadowRoot){var t=Polymer.dom(e).localTarget;this.isLightDescendant(t)||this.fi re(e.type,{sourceEvent:e},{node:this,bubbles:e.bubbles,cancelable:e.cancelable}) }},_disabledChanged:function(e,t){this.setAttribute("aria-disabled",e?"true":"fa lse"),this.style.pointerEvents=e?"none":"",e?(this._oldTabIndex=this.tabIndex,th is._setFocused(!1),this.tabIndex=-1,this.blur()):void 0!==this._oldTabIndex&&(th is.tabIndex=this._oldTabIndex)},_changedControlState:function(){this._controlSta teChanged&&this._controlStateChanged()}}</script> <script>Polymer.IronButtonStat eImpl={properties:{pressed:{type:Boolean,readOnly:!0,value:!1,reflectToAttribute :!0,observer:"_pressedChanged"},toggles:{type:Boolean,value:!1,reflectToAttribut e:!0},active:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},pointerDown :{type:Boolean,readOnly:!0,value:!1},receivedFocusFromKeyboard:{type:Boolean,rea dOnly:!0},ariaActiveAttribute:{type:String,value:"aria-pressed",observer:"_ariaA ctiveAttributeChanged"}},listeners:{down:"_downHandler",up:"_upHandler",tap:"_ta pHandler"},observers:["_detectKeyboardFocus(focused)","_activeChanged(active, ar iaActiveAttribute)"],keyBindings:{"enter:keydown":"_asyncClick","space:keydown": "_spaceKeyDownHandler","space:keyup":"_spaceKeyUpHandler"},_mouseEventRe:/^mouse /,_tapHandler:function(){this.toggles?this._userActivate(!this.active):this.acti ve=!1},_detectKeyboardFocus:function(e){this._setReceivedFocusFromKeyboard(!this .pointerDown&&e)},_userActivate:function(e){this.active!==e&&(this.active=e,this .fire("change"))},_downHandler:function(e){this._setPointerDown(!0),this._setPre ssed(!0),this._setReceivedFocusFromKeyboard(!1)},_upHandler:function(){this._set PointerDown(!1),this._setPressed(!1)},_spaceKeyDownHandler:function(e){var t=e.d etail.keyboardEvent,i=Polymer.dom(t).localTarget;this.isLightDescendant(i)||(t.p reventDefault(),t.stopImmediatePropagation(),this._setPressed(!0))},_spaceKeyUpH andler:function(e){var t=e.detail.keyboardEvent,i=Polymer.dom(t).localTarget;thi s.isLightDescendant(i)||(this.pressed&&this._asyncClick(),this._setPressed(!1))} ,_asyncClick:function(){this.async(function(){this.click()},1)},_pressedChanged: function(e){this._changedButtonState()},_ariaActiveAttributeChanged:function(e,t ){t&&t!=e&&this.hasAttribute(t)&&this.removeAttribute(t)},_activeChanged:functio n(e,t){this.toggles?this.setAttribute(this.ariaActiveAttribute,e?"true":"false") :this.removeAttribute(this.ariaActiveAttribute),this._changedButtonState()},_con trolStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButt onState()},_changedButtonState:function(){this._buttonStateChanged&&this._button StateChanged()}},Polymer.IronButtonState=[Polymer.IronA11yKeysBehavior,Polymer.I ronButtonStateImpl]</script> <dom-module id="paper-ripple" assetpath="/res/imp/b ower_components/paper-ripple/"> <template> <style>:host{display:block;position:a bsolute;border-radius:inherit;overflow:hidden;top:0;left:0;right:0;bottom:0;poin ter-events:none}:host([animating]){-webkit-transform:translate(0,0);transform:tr anslate3d(0,0,0)}#background,#waves,.wave,.wave-container{pointer-events:none;po sition:absolute;top:0;left:0;width:100%;height:100%}#background,.wave{opacity:0} #waves,.wave{overflow:hidden}.wave,.wave-container{border-radius:50%}:host(.circ le) #background,:host(.circle) #waves{border-radius:50%}:host(.circle) .wave-con tainer{overflow:hidden}</style> <div id="background"></div> <div id="waves"></di v> </template> </dom-module> <script>!function(){function t(t){this.element=t,th is.width=this.boundingRect.width,this.height=this.boundingRect.height,this.size= Math.max(this.width,this.height)}function i(t){this.element=t,this.color=window. getComputedStyle(t).color,this.wave=document.createElement("div"),this.waveConta iner=document.createElement("div"),this.wave.style.backgroundColor=this.color,th is.wave.classList.add("wave"),this.waveContainer.classList.add("wave-container") ,Polymer.dom(this.waveContainer).appendChild(this.wave),this.resetInteractionSta te()}var e={distance:function(t,i,e,n){var s=t-e,o=i-n;return Math.sqrt(s*s+o*o) },now:window.performance&&window.performance.now?window.performance.now.bind(win dow.performance):Date.now};t.prototype={get boundingRect(){return this.element.g etBoundingClientRect()},furthestCornerDistanceFrom:function(t,i){var n=e.distanc e(t,i,0,0),s=e.distance(t,i,this.width,0),o=e.distance(t,i,0,this.height),a=e.di stance(t,i,this.width,this.height);return Math.max(n,s,o,a)}},i.MAX_RADIUS=300,i .prototype={get recenters(){return this.element.recenters},get center(){return t his.element.center},get mouseDownElapsed(){var t;return this.mouseDownStart?(t=e .now()-this.mouseDownStart,this.mouseUpStart&&(t-=this.mouseUpElapsed),t):0},get mouseUpElapsed(){return this.mouseUpStart?e.now()-this.mouseUpStart:0},get mous eDownElapsedSeconds(){return this.mouseDownElapsed/1e3},get mouseUpElapsedSecond s(){return this.mouseUpElapsed/1e3},get mouseInteractionSeconds(){return this.mo useDownElapsedSeconds+this.mouseUpElapsedSeconds},get initialOpacity(){return th is.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacit yDecayVelocity},get radius(){var t=this.containerMetrics.width*this.containerMet rics.width,e=this.containerMetrics.height*this.containerMetrics.height,n=1.1*Mat h.min(Math.sqrt(t+e),i.MAX_RADIUS)+5,s=1.1-.2*(n/i.MAX_RADIUS),o=this.mouseInter actionSeconds/s,a=n*(1-Math.pow(80,-o));return Math.abs(a)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-this.mouseUpElapsedSeconds*thi s.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){var t=.3*this.mo useUpElapsedSeconds,i=this.opacity;return Math.max(0,Math.min(t,i))},get isOpaci tyFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,i .MAX_RADIUS)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacit y&&this.radius>=Math.min(this.maxRadius,i.MAX_RADIUS)},get isAnimationComplete() {return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius}, get translationFraction(){return Math.min(1,this.radius/this.containerMetrics.si ze*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFrac tion*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStar t+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown( ){return this.mouseDownStart&&!this.mouseUpStart},resetInteractionState:function (){this.maxRadius=0,this.mouseDownStart=0,this.mouseUpStart=0,this.xStart=0,this .yStart=0,this.xEnd=0,this.yEnd=0,this.slideDistance=0,this.containerMetrics=new t(this.element)},draw:function(){var t,i,e;this.wave.style.opacity=this.opacity ,t=this.radius/(this.containerMetrics.size/2),i=this.xNow-this.containerMetrics. width/2,e=this.yNow-this.containerMetrics.height/2,this.waveContainer.style.webk itTransform="translate("+i+"px, "+e+"px)",this.waveContainer.style.transform="tr anslate3d("+i+"px, "+e+"px, 0)",this.wave.style.webkitTransform="scale("+t+","+t +")",this.wave.style.transform="scale3d("+t+","+t+",1)"},downAction:function(t){ var i=this.containerMetrics.width/2,n=this.containerMetrics.height/2;this.resetI nteractionState(),this.mouseDownStart=e.now(),this.center?(this.xStart=i,this.yS tart=n,this.slideDistance=e.distance(this.xStart,this.yStart,this.xEnd,this.yEnd )):(this.xStart=t?t.detail.x-this.containerMetrics.boundingRect.left:this.contai nerMetrics.width/2,this.yStart=t?t.detail.y-this.containerMetrics.boundingRect.t op:this.containerMetrics.height/2),this.recenters&&(this.xEnd=i,this.yEnd=n,this .slideDistance=e.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)),this.max Radius=this.containerMetrics.furthestCornerDistanceFrom(this.xStart,this.yStart) ,this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetric s.size)/2+"px",this.waveContainer.style.left=(this.containerMetrics.width-this.c ontainerMetrics.size)/2+"px",this.waveContainer.style.width=this.containerMetric s.size+"px",this.waveContainer.style.height=this.containerMetrics.size+"px"},upA ction:function(t){this.isMouseDown&&(this.mouseUpStart=e.now())},remove:function (){Polymer.dom(this.waveContainer.parentNode).removeChild(this.waveContainer)}}, Polymer({is:"paper-ripple",behaviors:[Polymer.IronA11yKeysBehavior],properties:{ initialOpacity:{type:Number,value:.25},opacityDecayVelocity:{type:Number,value:. 8},recenters:{type:Boolean,value:!1},center:{type:Boolean,value:!1},ripples:{typ e:Array,value:function(){return[]}},animating:{type:Boolean,readOnly:!0,reflectT oAttribute:!0,value:!1},holdDown:{type:Boolean,value:!1,observer:"_holdDownChang ed"},noink:{type:Boolean,value:!1},_animating:{type:Boolean},_boundAnimate:{type :Function,value:function(){return this.animate.bind(this)}}},get target(){return this.keyEventTarget},keyBindings:{"enter:keydown":"_onEnterKeydown","space:keyd own":"_onSpaceKeydown","space:keyup":"_onSpaceKeyup"},attached:function(){11==th is.parentNode.nodeType?this.keyEventTarget=Polymer.dom(this).getOwnerRoot().host :this.keyEventTarget=this.parentNode;var t=this.keyEventTarget;this.listen(t,"up ","uiUpAction"),this.listen(t,"down","uiDownAction")},detached:function(){this.u nlisten(this.keyEventTarget,"up","uiUpAction"),this.unlisten(this.keyEventTarget ,"down","uiDownAction"),this.keyEventTarget=null},get shouldKeepAnimating(){for( var t=0;t<this.ripples.length;++t)if(!this.ripples[t].isAnimationComplete)return !0;return!1},simulatedRipple:function(){this.downAction(null),this.async(functio n(){this.upAction()},1)},uiDownAction:function(t){this.noink||this.downAction(t) },downAction:function(t){if(!(this.holdDown&&this.ripples.length>0)){var i=this. addRipple();i.downAction(t),this._animating||(this._animating=!0,this.animate()) }},uiUpAction:function(t){this.noink||this.upAction(t)},upAction:function(t){thi s.holdDown||(this.ripples.forEach(function(i){i.upAction(t)}),this._animating=!0 ,this.animate())},onAnimationComplete:function(){this._animating=!1,this.$.backg round.style.backgroundColor=null,this.fire("transitionend")},addRipple:function( ){var t=new i(this);return Polymer.dom(this.$.waves).appendChild(t.waveContainer ),this.$.background.style.backgroundColor=t.color,this.ripples.push(t),this._set Animating(!0),t},removeRipple:function(t){var i=this.ripples.indexOf(t);i<0||(th is.ripples.splice(i,1),t.remove(),this.ripples.length||this._setAnimating(!1))}, animate:function(){if(this._animating){var t,i;for(t=0;t<this.ripples.length;++t )i=this.ripples[t],i.draw(),this.$.background.style.opacity=i.outerOpacity,i.isO pacityFullyDecayed&&!i.isRestingAtMaxRadius&&this.removeRipple(i);this.shouldKee pAnimating||0!==this.ripples.length?window.requestAnimationFrame(this._boundAnim ate):this.onAnimationComplete()}},_onEnterKeydown:function(){this.uiDownAction() ,this.async(this.uiUpAction,1)},_onSpaceKeydown:function(){this.uiDownAction()}, _onSpaceKeyup:function(){this.uiUpAction()},_holdDownChanged:function(t,i){void 0!==i&&(t?this.downAction():this.upAction())}})}()</script> <script>Polymer.Pape rRippleBehavior={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_ripp leContainer:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ens ureRipple()},_downHandler:function(e){Polymer.IronButtonStateImpl._downHandler.c all(this,e),this.pressed&&this.ensureRipple(e)},ensureRipple:function(e){if(!thi s.hasRipple()){this._ripple=this._createRipple(),this._ripple.noink=this.noink;v ar i=this._rippleContainer||this.root;if(i&&Polymer.dom(i).appendChild(this._rip ple),e){var n=Polymer.dom(this._rippleContainer||this),t=Polymer.dom(e).rootTarg et;n.deepContains(t)&&this._ripple.uiDownAction(e)}}},getRipple:function(){retur n this.ensureRipple(),this._ripple},hasRipple:function(){return Boolean(this._ri pple)},_createRipple:function(){return document.createElement("paper-ripple")},_ noinkChanged:function(e){this.hasRipple()&&(this._ripple.noink=e)}}</script> <sc ript>Polymer.PaperButtonBehaviorImpl={properties:{elevation:{type:Number,reflect ToAttribute:!0,readOnly:!0}},observers:["_calculateElevation(focused, disabled, active, pressed, receivedFocusFromKeyboard)","_computeKeyboardClass(receivedFocu sFromKeyboard)"],hostAttributes:{role:"button",tabindex:"0",animated:!0},_calcul ateElevation:function(){var e=1;this.disabled?e=0:this.active||this.pressed?e=4: this.receivedFocusFromKeyboard&&(e=3),this._setElevation(e)},_computeKeyboardCla ss:function(e){this.toggleClass("keyboard-focus",e)},_spaceKeyDownHandler:functi on(e){Polymer.IronButtonStateImpl._spaceKeyDownHandler.call(this,e),this.hasRipp le()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},_spaceKeyU pHandler:function(e){Polymer.IronButtonStateImpl._spaceKeyUpHandler.call(this,e) ,this.hasRipple()&&this._ripple.uiUpAction()}},Polymer.PaperButtonBehavior=[Poly mer.IronButtonState,Polymer.IronControlState,Polymer.PaperRippleBehavior,Polymer .PaperButtonBehaviorImpl]</script> <style is="custom-style">:root{--shadow-trans ition:{transition:box-shadow .28s cubic-bezier(.4,0,.2,1)};--shadow-none:{box-sh adow:none};--shadow-elevation-2dp:{box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 3px 1px -2px rgba(0,0,0,.2)};--shadow-elevation-3dp:{box -shadow:0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12),0 3px 3px -2px r gba(0,0,0,.4)};--shadow-elevation-4dp:{box-shadow:0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12),0 2px 4px -1px rgba(0,0,0,.4)};--shadow-elevation-6dp :{box-shadow:0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.4)};--shadow-elevation-8dp:{box-shadow:0 8px 10px 1px rgba(0,0 ,0,.14),0 3px 14px 2px rgba(0,0,0,.12),0 5px 5px -3px rgba(0,0,0,.4)};--shadow-e levation-12dp:{box-shadow:0 12px 16px 1px rgba(0,0,0,.14),0 4px 22px 3px rgba(0, 0,0,.12),0 6px 7px -4px rgba(0,0,0,.4)};--shadow-elevation-16dp:{box-shadow:0 16 px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12),0 8px 10px -5px rgba( 0,0,0,.4)};}</style> <dom-module id="paper-material-shared-styles" assetpath="/r es/imp/bower_components/paper-material/"> <template> <style>:host{display:block; position:relative}:host([elevation="1"]){@apply(--shadow-elevation-2dp)}:host([e levation="2"]){@apply(--shadow-elevation-4dp)}:host([elevation="3"]){@apply(--sh adow-elevation-6dp)}:host([elevation="4"]){@apply(--shadow-elevation-8dp)}:host( [elevation="5"]){@apply(--shadow-elevation-16dp)}</style> </template> </dom-modu le> <style is="custom-style">:root{--google-red-100:#f4c7c3;--google-red-300:#e6 7c73;--google-red-500:#db4437;--google-red-700:#c53929;--google-blue-100:#c6dafc ;--google-blue-300:#7baaf7;--google-blue-500:#4285f4;--google-blue-700:#3367d6;- -google-green-100:#b7e1cd;--google-green-300:#57bb8a;--google-green-500:#0f9d58; --google-green-700:#0b8043;--google-yellow-100:#fce8b2;--google-yellow-300:#f7cb 4d;--google-yellow-500:#f4b400;--google-yellow-700:#f09300;--google-grey-100:#f5 f5f5;--google-grey-300:#e0e0e0;--google-grey-500:#9e9e9e;--google-grey-700:#6161 61;--paper-red-50:#ffebee;--paper-red-100:#ffcdd2;--paper-red-200:#ef9a9a;--pape r-red-300:#e57373;--paper-red-400:#ef5350;--paper-red-500:#f44336;--paper-red-60 0:#e53935;--paper-red-700:#d32f2f;--paper-red-800:#c62828;--paper-red-900:#b71c1 c;--paper-red-a100:#ff8a80;--paper-red-a200:#ff5252;--paper-red-a400:#ff1744;--p aper-red-a700:#d50000;--paper-pink-50:#fce4ec;--paper-pink-100:#f8bbd0;--paper-p ink-200:#f48fb1;--paper-pink-300:#f06292;--paper-pink-400:#ec407a;--paper-pink-5 00:#e91e63;--paper-pink-600:#d81b60;--paper-pink-700:#c2185b;--paper-pink-800:#a d1457;--paper-pink-900:#880e4f;--paper-pink-a100:#ff80ab;--paper-pink-a200:#ff40 81;--paper-pink-a400:#f50057;--paper-pink-a700:#c51162;--paper-purple-50:#f3e5f5 ;--paper-purple-100:#e1bee7;--paper-purple-200:#ce93d8;--paper-purple-300:#ba68c 8;--paper-purple-400:#ab47bc;--paper-purple-500:#9c27b0;--paper-purple-600:#8e24 aa;--paper-purple-700:#7b1fa2;--paper-purple-800:#6a1b9a;--paper-purple-900:#4a1 48c;--paper-purple-a100:#ea80fc;--paper-purple-a200:#e040fb;--paper-purple-a400: #d500f9;--paper-purple-a700:#aa00ff;--paper-deep-purple-50:#ede7f6;--paper-deep- purple-100:#d1c4e9;--paper-deep-purple-200:#b39ddb;--paper-deep-purple-300:#9575 cd;--paper-deep-purple-400:#7e57c2;--paper-deep-purple-500:#673ab7;--paper-deep- purple-600:#5e35b1;--paper-deep-purple-700:#512da8;--paper-deep-purple-800:#4527 a0;--paper-deep-purple-900:#311b92;--paper-deep-purple-a100:#b388ff;--paper-deep -purple-a200:#7c4dff;--paper-deep-purple-a400:#651fff;--paper-deep-purple-a700:# 6200ea;--paper-indigo-50:#e8eaf6;--paper-indigo-100:#c5cae9;--paper-indigo-200:# 9fa8da;--paper-indigo-300:#7986cb;--paper-indigo-400:#5c6bc0;--paper-indigo-500: #3f51b5;--paper-indigo-600:#3949ab;--paper-indigo-700:#303f9f;--paper-indigo-800 :#283593;--paper-indigo-900:#1a237e;--paper-indigo-a100:#8c9eff;--paper-indigo-a 200:#536dfe;--paper-indigo-a400:#3d5afe;--paper-indigo-a700:#304ffe;--paper-blue -50:#e3f2fd;--paper-blue-100:#bbdefb;--paper-blue-200:#90caf9;--paper-blue-300:# 64b5f6;--paper-blue-400:#42a5f5;--paper-blue-500:#2196f3;--paper-blue-600:#1e88e 5;--paper-blue-700:#1976d2;--paper-blue-800:#1565c0;--paper-blue-900:#0d47a1;--p aper-blue-a100:#82b1ff;--paper-blue-a200:#448aff;--paper-blue-a400:#2979ff;--pap er-blue-a700:#2962ff;--paper-light-blue-50:#e1f5fe;--paper-light-blue-100:#b3e5f c;--paper-light-blue-200:#81d4fa;--paper-light-blue-300:#4fc3f7;--paper-light-bl ue-400:#29b6f6;--paper-light-blue-500:#03a9f4;--paper-light-blue-600:#039be5;--p aper-light-blue-700:#0288d1;--paper-light-blue-800:#0277bd;--paper-light-blue-90 0:#01579b;--paper-light-blue-a100:#80d8ff;--paper-light-blue-a200:#40c4ff;--pape r-light-blue-a400:#00b0ff;--paper-light-blue-a700:#0091ea;--paper-cyan-50:#e0f7f a;--paper-cyan-100:#b2ebf2;--paper-cyan-200:#80deea;--paper-cyan-300:#4dd0e1;--p aper-cyan-400:#26c6da;--paper-cyan-500:#00bcd4;--paper-cyan-600:#00acc1;--paper- cyan-700:#0097a7;--paper-cyan-800:#00838f;--paper-cyan-900:#006064;--paper-cyan- a100:#84ffff;--paper-cyan-a200:#18ffff;--paper-cyan-a400:#00e5ff;--paper-cyan-a7 00:#00b8d4;--paper-teal-50:#e0f2f1;--paper-teal-100:#b2dfdb;--paper-teal-200:#80 cbc4;--paper-teal-300:#4db6ac;--paper-teal-400:#26a69a;--paper-teal-500:#009688; --paper-teal-600:#00897b;--paper-teal-700:#00796b;--paper-teal-800:#00695c;--pap er-teal-900:#004d40;--paper-teal-a100:#a7ffeb;--paper-teal-a200:#64ffda;--paper- teal-a400:#1de9b6;--paper-teal-a700:#00bfa5;--paper-green-50:#e8f5e9;--paper-gre en-100:#c8e6c9;--paper-green-200:#a5d6a7;--paper-green-300:#81c784;--paper-green -400:#66bb6a;--paper-green-500:#4caf50;--paper-green-600:#43a047;--paper-green-7 00:#388e3c;--paper-green-800:#2e7d32;--paper-green-900:#1b5e20;--paper-green-a10 0:#b9f6ca;--paper-green-a200:#69f0ae;--paper-green-a400:#00e676;--paper-green-a7 00:#00c853;--paper-light-green-50:#f1f8e9;--paper-light-green-100:#dcedc8;--pape r-light-green-200:#c5e1a5;--paper-light-green-300:#aed581;--paper-light-green-40 0:#9ccc65;--paper-light-green-500:#8bc34a;--paper-light-green-600:#7cb342;--pape r-light-green-700:#689f38;--paper-light-green-800:#558b2f;--paper-light-green-90 0:#33691e;--paper-light-green-a100:#ccff90;--paper-light-green-a200:#b2ff59;--pa per-light-green-a400:#76ff03;--paper-light-green-a700:#64dd17;--paper-lime-50:#f 9fbe7;--paper-lime-100:#f0f4c3;--paper-lime-200:#e6ee9c;--paper-lime-300:#dce775 ;--paper-lime-400:#d4e157;--paper-lime-500:#cddc39;--paper-lime-600:#c0ca33;--pa per-lime-700:#afb42b;--paper-lime-800:#9e9d24;--paper-lime-900:#827717;--paper-l ime-a100:#f4ff81;--paper-lime-a200:#eeff41;--paper-lime-a400:#c6ff00;--paper-lim e-a700:#aeea00;--paper-yellow-50:#fffde7;--paper-yellow-100:#fff9c4;--paper-yell ow-200:#fff59d;--paper-yellow-300:#fff176;--paper-yellow-400:#ffee58;--paper-yel low-500:#ffeb3b;--paper-yellow-600:#fdd835;--paper-yellow-700:#fbc02d;--paper-ye llow-800:#f9a825;--paper-yellow-900:#f57f17;--paper-yellow-a100:#ffff8d;--paper- yellow-a200:#ffff00;--paper-yellow-a400:#ffea00;--paper-yellow-a700:#ffd600;--pa per-amber-50:#fff8e1;--paper-amber-100:#ffecb3;--paper-amber-200:#ffe082;--paper -amber-300:#ffd54f;--paper-amber-400:#ffca28;--paper-amber-500:#ffc107;--paper-a mber-600:#ffb300;--paper-amber-700:#ffa000;--paper-amber-800:#ff8f00;--paper-amb er-900:#ff6f00;--paper-amber-a100:#ffe57f;--paper-amber-a200:#ffd740;--paper-amb er-a400:#ffc400;--paper-amber-a700:#ffab00;--paper-orange-50:#fff3e0;--paper-ora nge-100:#ffe0b2;--paper-orange-200:#ffcc80;--paper-orange-300:#ffb74d;--paper-or ange-400:#ffa726;--paper-orange-500:#ff9800;--paper-orange-600:#fb8c00;--paper-o range-700:#f57c00;--paper-orange-800:#ef6c00;--paper-orange-900:#e65100;--paper- orange-a100:#ffd180;--paper-orange-a200:#ffab40;--paper-orange-a400:#ff9100;--pa per-orange-a700:#ff6500;--paper-deep-orange-50:#fbe9e7;--paper-deep-orange-100:# ffccbc;--paper-deep-orange-200:#ffab91;--paper-deep-orange-300:#ff8a65;--paper-d eep-orange-400:#ff7043;--paper-deep-orange-500:#ff5722;--paper-deep-orange-600:# f4511e;--paper-deep-orange-700:#e64a19;--paper-deep-orange-800:#d84315;--paper-d eep-orange-900:#bf360c;--paper-deep-orange-a100:#ff9e80;--paper-deep-orange-a200 :#ff6e40;--paper-deep-orange-a400:#ff3d00;--paper-deep-orange-a700:#dd2c00;--pap er-brown-50:#efebe9;--paper-brown-100:#d7ccc8;--paper-brown-200:#bcaaa4;--paper- brown-300:#a1887f;--paper-brown-400:#8d6e63;--paper-brown-500:#795548;--paper-br own-600:#6d4c41;--paper-brown-700:#5d4037;--paper-brown-800:#4e342e;--paper-brow n-900:#3e2723;--paper-grey-50:#fafafa;--paper-grey-100:#f5f5f5;--paper-grey-200: #eeeeee;--paper-grey-300:#e0e0e0;--paper-grey-400:#bdbdbd;--paper-grey-500:#9e9e 9e;--paper-grey-600:#757575;--paper-grey-700:#616161;--paper-grey-800:#424242;-- paper-grey-900:#212121;--paper-blue-grey-50:#eceff1;--paper-blue-grey-100:#cfd8d c;--paper-blue-grey-200:#b0bec5;--paper-blue-grey-300:#90a4ae;--paper-blue-grey- 400:#78909c;--paper-blue-grey-500:#607d8b;--paper-blue-grey-600:#546e7a;--paper- blue-grey-700:#455a64;--paper-blue-grey-800:#37474f;--paper-blue-grey-900:#26323 8;--dark-divider-opacity:0.12;--dark-disabled-opacity:0.38;--dark-secondary-opac ity:0.54;--dark-primary-opacity:0.87;--light-divider-opacity:0.12;--light-disabl ed-opacity:0.3;--light-secondary-opacity:0.7;--light-primary-opacity:1.0}</style > <style is="custom-style">:root{--primary-text-color:var(--light-theme-text-col or);--primary-background-color:var(--light-theme-background-color);--secondary-t ext-color:var(--light-theme-secondary-color);--disabled-text-color:var(--light-t heme-disabled-color);--divider-color:var(--light-theme-divider-color);--error-co lor:var(--paper-deep-orange-a700);--primary-color:var(--paper-indigo-500);--ligh t-primary-color:var(--paper-indigo-100);--dark-primary-color:var(--paper-indigo- 700);--accent-color:var(--paper-pink-a200);--light-accent-color:var(--paper-pink -a100);--dark-accent-color:var(--paper-pink-a400);--light-theme-background-color :#ffffff;--light-theme-base-color:#000000;--light-theme-text-color:var(--paper-g rey-900);--light-theme-secondary-color:#737373;--light-theme-disabled-color:#9b9 b9b;--light-theme-divider-color:#dbdbdb;--dark-theme-background-color:var(--pape r-grey-900);--dark-theme-base-color:#ffffff;--dark-theme-text-color:#ffffff;--da rk-theme-secondary-color:#bcbcbc;--dark-theme-disabled-color:#646464;--dark-them e-divider-color:#3c3c3c;--text-primary-color:var(--dark-theme-text-color);--defa ult-primary-color:var(--primary-color)}</style> <dom-module id="paper-fab" asset path="/res/imp/bower_components/paper-fab/"> <template strip-whitespace=""> <sty le include="paper-material-shared-styles">:host{@apply(--layout-vertical);@apply (--layout-center-center);background:var(--paper-fab-background,--accent-color);b order-radius:50%;box-sizing:border-box;color:var(--text-primary-color);cursor:po inter;height:56px;min-width:0;outline:0;padding:16px;position:relative;-moz-user -select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none;widt h:56px;z-index:0;-webkit-tap-highlight-color:transparent;-webkit-tap-highlight-c olor:transparent;@apply(--paper-fab)}[hidden]{display:none!important}:host([mini ]){width:40px;height:40px;padding:8px;@apply(--paper-fab-mini)}:host([disabled]) {color:var(--paper-fab-disabled-text,--paper-grey-500);background:var(--paper-fa b-disabled-background,--paper-grey-300);@apply(--paper-fab-disabled)}iron-icon{@ apply(--paper-fab-iron-icon)}span{width:100%;white-space:nowrap;overflow:hidden; text-overflow:ellipsis;text-align:center}:host(.keyboard-focus){background:var(- -paper-fab-keyboard-focus-background,--paper-pink-900)}</style> <iron-icon id="i con" hidden$="{{!_computeIsIconFab(icon, src)}}" src="[[src]]" icon="[[icon]]">< /iron-icon> <span hidden$="{{_computeIsIconFab(icon, src)}}">{{label}}</span> </ template> <script>Polymer({is:"paper-fab",behaviors:[Polymer.PaperButtonBehavior ],properties:{src:{type:String,value:""},icon:{type:String,value:""},mini:{type: Boolean,value:!1,reflectToAttribute:!0},label:{type:String,observer:"_labelChang ed"}},_labelChanged:function(){this.setAttribute("aria-label",this.label)},_comp uteIsIconFab:function(e,t){return e.length>0||t.length>0}})</script> </dom-modul e> <script>Polymer.PaperSpinnerBehavior={listeners:{animationend:"__reset",webki tAnimationEnd:"__reset"},properties:{active:{type:Boolean,value:!1,reflectToAttr ibute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:" __altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses: function(e,t){return[e||t?"active":"",t?"cooldown":""].join(" ")},__activeChange d:function(e,t){this.__setAriaHidden(!e),this.__coolingDown=!e&&t},__altChanged: function(e){e===this.getPropertyInfo("alt").value?this.alt=this.getAttribute("ar ia-label")||e:(this.__setAriaHidden(""===e),this.setAttribute("aria-label",e))}, __setAriaHidden:function(e){var t="aria-hidden";e?this.setAttribute(t,"true"):th is.removeAttribute(t)},__reset:function(){this.active=!1,this.__coolingDown=!1}} </script> <dom-module id="paper-spinner-styles" assetpath="/res/imp/bower_compon ents/paper-spinner/"> <template> <style>:host{display:inline-block;position:rela tive;width:28px;height:28px;--paper-spinner-container-rotation-duration:1568ms;- -paper-spinner-expand-contract-duration:1333ms;--paper-spinner-full-cycle-durati on:5332ms;--paper-spinner-cooldown-duration:400ms}#spinnerContainer{width:100%;h eight:100%;direction:ltr}#spinnerContainer.active{-webkit-animation:container-ro tate var(--paper-spinner-container-rotation-duration) linear infinite;animation: container-rotate var(--paper-spinner-container-rotation-duration) linear infinit e}@-webkit-keyframes container-rotate{to{-webkit-transform:rotate(360deg)}}@keyf rames container-rotate{to{transform:rotate(360deg)}}.spinner-layer{position:abso lute;width:100%;height:100%;opacity:0;white-space:nowrap;border-color:var(--pape r-spinner-color,--google-blue-500)}.layer-1{border-color:var(--paper-spinner-lay er-1-color,--google-blue-500)}.layer-2{border-color:var(--paper-spinner-layer-2- color,--google-red-500)}.layer-3{border-color:var(--paper-spinner-layer-3-color, --google-yellow-500)}.layer-4{border-color:var(--paper-spinner-layer-4-color,--g oogle-green-500)}.active .spinner-layer{-webkit-animation-name:fill-unfill-rotat e;-webkit-animation-duration:var(--paper-spinner-full-cycle-duration);-webkit-an imation-timing-function:cubic-bezier(.4,0,.2,1);-webkit-animation-iteration-coun t:infinite;animation-name:fill-unfill-rotate;animation-duration:var(--paper-spin ner-full-cycle-duration);animation-timing-function:cubic-bezier(.4,0,.2,1);anima tion-iteration-count:infinite;opacity:1}.active .spinner-layer.layer-1{-webkit-a nimation-name:fill-unfill-rotate,layer-1-fade-in-out;animation-name:fill-unfill- rotate,layer-1-fade-in-out}.active .spinner-layer.layer-2{-webkit-animation-name :fill-unfill-rotate,layer-2-fade-in-out;animation-name:fill-unfill-rotate,layer- 2-fade-in-out}.active .spinner-layer.layer-3{-webkit-animation-name:fill-unfill- rotate,layer-3-fade-in-out;animation-name:fill-unfill-rotate,layer-3-fade-in-out }.active .spinner-layer.layer-4{-webkit-animation-name:fill-unfill-rotate,layer- 4-fade-in-out;animation-name:fill-unfill-rotate,layer-4-fade-in-out}@-webkit-key frames fill-unfill-rotate{12.5%{-webkit-transform:rotate(135deg)}25%{-webkit-tra nsform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg)}50%{-webkit-transfo rm:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg)}75%{-webkit-transform:r otate(810deg)}87.5%{-webkit-transform:rotate(945deg)}to{-webkit-transform:rotate (1080deg)}}@keyframes fill-unfill-rotate{12.5%{transform:rotate(135deg)}25%{tran sform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg) }62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rot ate(945deg)}to{transform:rotate(1080deg)}}@-webkit-keyframes layer-1-fade-in-out {0%{opacity:1}25%{opacity:1}26%{opacity:0}89%{opacity:0}90%{opacity:1}to{opacity :1}}@keyframes layer-1-fade-in-out{0%{opacity:1}25%{opacity:1}26%{opacity:0}89%{ opacity:0}90%{opacity:1}to{opacity:1}}@-webkit-keyframes layer-2-fade-in-out{0%{ opacity:0}15%{opacity:0}25%{opacity:1}50%{opacity:1}51%{opacity:0}to{opacity:0}} @keyframes layer-2-fade-in-out{0%{opacity:0}15%{opacity:0}25%{opacity:1}50%{opac ity:1}51%{opacity:0}to{opacity:0}}@-webkit-keyframes layer-3-fade-in-out{0%{opac ity:0}40%{opacity:0}50%{opacity:1}75%{opacity:1}76%{opacity:0}to{opacity:0}}@key frames layer-3-fade-in-out{0%{opacity:0}40%{opacity:0}50%{opacity:1}75%{opacity: 1}76%{opacity:0}to{opacity:0}}@-webkit-keyframes layer-4-fade-in-out{0%{opacity: 0}65%{opacity:0}75%{opacity:1}90%{opacity:1}to{opacity:0}}@keyframes layer-4-fad e-in-out{0%{opacity:0}65%{opacity:0}75%{opacity:1}90%{opacity:1}to{opacity:0}}.c ircle-clipper{display:inline-block;position:relative;width:50%;height:100%;overf low:hidden;border-color:inherit}.spinner-layer::after{left:45%;width:10%;border- top-style:solid}.circle-clipper::after,.spinner-layer::after{content:'';box-sizi ng:border-box;position:absolute;top:0;border-width:var(--paper-spinner-stroke-wi dth,3px);border-color:inherit;border-radius:50%}.circle-clipper::after{bottom:0; width:200%;border-style:solid;border-bottom-color:transparent!important}.circle- clipper.left::after{left:0;border-right-color:transparent!important;-webkit-tran sform:rotate(129deg);transform:rotate(129deg)}.circle-clipper.right::after{left: -100%;border-left-color:transparent!important;-webkit-transform:rotate(-129deg); transform:rotate(-129deg)}.active .circle-clipper::after,.active .gap-patch::aft er{-webkit-animation-duration:var(--paper-spinner-expand-contract-duration);-web kit-animation-timing-function:cubic-bezier(.4,0,.2,1);-webkit-animation-iteratio n-count:infinite;animation-duration:var(--paper-spinner-expand-contract-duration );animation-timing-function:cubic-bezier(.4,0,.2,1);animation-iteration-count:in finite}.active .circle-clipper.left::after{-webkit-animation-name:left-spin;anim ation-name:left-spin}.active .circle-clipper.right::after{-webkit-animation-name :right-spin;animation-name:right-spin}@-webkit-keyframes left-spin{0%{-webkit-tr ansform:rotate(130deg)}50%{-webkit-transform:rotate(-5deg)}to{-webkit-transform: rotate(130deg)}}@keyframes left-spin{0%{transform:rotate(130deg)}50%{transform:r otate(-5deg)}to{transform:rotate(130deg)}}@-webkit-keyframes right-spin{0%{-webk it-transform:rotate(-130deg)}50%{-webkit-transform:rotate(5deg)}to{-webkit-trans form:rotate(-130deg)}}@keyframes right-spin{0%{transform:rotate(-130deg)}50%{tra nsform:rotate(5deg)}to{transform:rotate(-130deg)}}#spinnerContainer.cooldown{-we bkit-animation:container-rotate var(--paper-spinner-container-rotation-duration) linear infinite,fade-out var(--paper-spinner-cooldown-duration) cubic-bezier(.4 ,0,.2,1);animation:container-rotate var(--paper-spinner-container-rotation-durat ion) linear infinite,fade-out var(--paper-spinner-cooldown-duration) cubic-bezie r(.4,0,.2,1)}@-webkit-keyframes fade-out{0%{opacity:1}to{opacity:0}}@keyframes f ade-out{0%{opacity:1}to{opacity:0}}</style> </template> </dom-module> <dom-modul e id="paper-spinner-lite" assetpath="/res/imp/bower_components/paper-spinner/"> <template strip-whitespace=""> <style include="paper-spinner-styles"></style> <d iv id="spinnerContainer" class-name="[[__computeContainerClasses(active, __cooli ngDown)]]"> <div class="spinner-layer"> <div class="circle-clipper left"></div> <div class="circle-clipper right"></div> </div> </div> </template> <script>Polym er({is:"paper-spinner-lite",behaviors:[Polymer.PaperSpinnerBehavior]})</script> </dom-module> <script>!function(){"use strict";Polymer.IronJsonpLibraryBehavior= {properties:{libraryLoaded:{type:Boolean,value:!1,notify:!0,readOnly:!0},library ErrorMessage:{type:String,value:null,notify:!0,readOnly:!0}},observers:["_librar yUrlChanged(libraryUrl)"],_libraryUrlChanged:function(r){this._isReady&&this.lib raryUrl&&this._loadLibrary()},_libraryLoadCallback:function(r,i){r?(console.warn ("Library load failed:",r.message),this._setLibraryErrorMessage(r.message)):(thi s._setLibraryErrorMessage(null),this._setLibraryLoaded(!0),this.notifyEvent&&thi s.fire(this.notifyEvent,i))},_loadLibrary:function(){r.require(this.libraryUrl,t his._libraryLoadCallback.bind(this),this.callbackName)},ready:function(){this._i sReady=!0,this.libraryUrl&&this._loadLibrary()}};var r={apiMap:{},require:functi on(r,t,e){var a=this.nameFromUrl(r);this.apiMap[a]||(this.apiMap[a]=new i(a,r,e) ),this.apiMap[a].requestNotify(t)},nameFromUrl:function(r){return r.replace(/[\: \/\%\?\&\.\=\-\,]/g,"_")+"_api"}},i=function(r,i,t){if(this.notifiers=[],!t){if( !(i.indexOf(this.callbackMacro)>=0))return void(this.error=new Error("IronJsonpL ibraryBehavior a %%callback%% parameter is required in libraryUrl"));t=r+"_loade d",i=i.replace(this.callbackMacro,t)}this.callbackName=t,window[this.callbackNam e]=this.success.bind(this),this.addScript(i)};i.prototype={callbackMacro:"%%call back%%",loaded:!1,addScript:function(r){var i=document.createElement("script");i .src=r,i.onerror=this.handleError.bind(this);var t=document.querySelector("scrip t")||document.body;t.parentNode.insertBefore(i,t),this.script=i},removeScript:fu nction(){this.script.parentNode&&this.script.parentNode.removeChild(this.script) ,this.script=null},handleError:function(r){this.error=new Error("Library failed to load"),this.notifyAll(),this.cleanup()},success:function(){this.loaded=!0,thi s.result=Array.prototype.slice.call(arguments),this.notifyAll(),this.cleanup()}, cleanup:function(){delete window[this.callbackName]},notifyAll:function(){this.n otifiers.forEach(function(r){r(this.error,this.result)}.bind(this)),this.notifie rs=[]},requestNotify:function(r){this.loaded||this.error?r(this.error,this.resul t):this.notifiers.push(r)}}}()</script> <script>Polymer({is:"iron-jsonp-library" ,behaviors:[Polymer.IronJsonpLibraryBehavior],properties:{libraryUrl:String,call backName:String,notifyEvent:String}})</script> <script>Polymer({is:"google-js-ap i",behaviors:[Polymer.IronJsonpLibraryBehavior],properties:{libraryUrl:{type:Str ing,value:"https://apis.google.com/js/api.js?onload=%%callback%%"},notifyEvent:{ type:String,value:"js-api-load"}},get api(){return gapi}})</script> <script>!fun ction(){var e={appPackageName:"apppackagename",clientId:"clientid",cookiePolicy: "cookiepolicy",hostedDomain:"hostedDomain",openidPrompt:"prompt",requestVisibleA ctions:"requestvisibleactions"},t={_clientId:null,get clientId(){return this._cl ientId},set clientId(e){if(this._clientId&&e&&e!=this._clientId)throw new Error( "clientId cannot change. Values do not match. New: "+e+" Old:"+this._clientId);e &&e!=this._clientId&&(this._clientId=e,this.initAuth2())},_cookiePolicy:"single_ host_origin",get cookiePolicy(){return this._cookiePolicy},set cookiePolicy(e){e &&(this._cookiePolicy=e)},_appPackageName:"",get appPackageName(){return this._a ppPackageName},set appPackageName(e){if(this._appPackageName&&e&&e!=this._appPac kageName)throw new Error("appPackageName cannot change. Values do not match. New : "+e+" Old: "+this._appPackageName);e&&(this._appPackageName=e)},_requestVisibl eActions:"",get requestVisibleactions(){return this._requestVisibleActions},set requestVisibleactions(e){if(this._requestVisibleActions&&e&&e!=this._requestVisi bleActions)throw new Error("requestVisibleactions cannot change. Values do not m atch. New: "+e+" Old: "+this._requestVisibleActions);e&&(this._requestVisibleAct ions=e)},_hostedDomain:"",get hostedDomain(){return this._hostedDomain},set host edDomain(e){if(this._hostedDomain&&e&&e!=this._hostedDomain)throw new Error("hos tedDomain cannot change. Values do not match. New: "+e+" Old: "+this._hostedDoma in);e&&(this._hostedDomain=e)},_openidPrompt:"",get openidPrompt(){return this._ openidPrompt},set openidPrompt(e){if("string"!=typeof e)throw new Error("openidP rompt must be a string. Received "+typeof e);if(e){var t=e.split(" ");t=t.map(fu nction(e){return e.trim()}),t=t.filter(function(e){return e});var i={none:0,logi n:0,consent:0,select_account:0};t.forEach(function(e){if("none"==e&&t.length>1)t hrow new Error("none cannot be combined with other openidPrompt values");if(!(e in i))throw new Error("invalid openidPrompt value "+e+". Valid values: "+Object. keys(i).join(", "))})}this._openidPrompt=e},_offline:!1,get offline(){return thi s._offline},set offline(e){this._offline=e,this.updateAdditionalAuth()},_offline AlwaysPrompt:!1,get offlineAlwaysPrompt(){return this._offlineAlwaysPrompt},set offlineAlwaysPrompt(e){this._offlineAlwaysPrompt=e,this.updateAdditionalAuth()}, offlineGranted:!1,_apiLoader:null,_requestedScopeArray:[],get requestedScopes(){ return this._requestedScopeArray.join(" ")},_signedIn:!1,_grantedScopeArray:[],_ needAdditionalAuth:!0,_hasPlusScopes:!1,signinAwares:[],init:function(){this._ap iLoader=document.createElement("google-js-api"),this._apiLoader.addEventListener ("js-api-load",this.loadAuth2.bind(this))},loadAuth2:function(){gapi.load("auth2 ",this.initAuth2.bind(this))},initAuth2:function(){if("gapi"in window&&"auth2"in window.gapi&&this.clientId){var e=gapi.auth2.init({client_id:this.clientId,cook ie_policy:this.cookiePolicy,scope:this.requestedScopes,hosted_domain:this.hosted Domain});e.currentUser.listen(this.handleUserUpdate.bind(this)),e.then(function( ){},function(e){console.error(e)})}},handleUserUpdate:function(e){var t=e.isSign edIn();if(t!=this._signedIn){this._signedIn=t;for(var i=0;i<this.signinAwares.le ngth;i++)this.signinAwares[i]._setSignedIn(t)}this._grantedScopeArray=this.strTo ScopeArray(e.getGrantedScopes()),this.updateAdditionalAuth();for(var n=e.getAuth Response(),i=0;i<this.signinAwares.length;i++)this.signinAwares[i]._updateScopeS tatus(n)},setOfflineCode:function(e){for(var t=0;t<this.signinAwares.length;t++) this.signinAwares[t]._updateOfflineCode(e)},strToScopeArray:function(e){if(!e)re turn[];for(var t=e.replace(/\ +/g," ").trim().split(" "),i=0;i<t.length;i++)t[i] =t[i].toLowerCase(),"https://www.googleapis.com/auth/userinfo.profile"===t[i]&&( t[i]="profile"),"https://www.googleapis.com/auth/userinfo.email"===t[i]&&(t[i]=" email");return t.filter(function(e,t,i){return i.indexOf(e)===t})},isPlusScope:f unction(e){return e.indexOf("/auth/games")>-1||e.indexOf("auth/plus.")>-1&&e.ind exOf("auth/plus.me")<0},hasGrantedScopes:function(e){for(var t=this.strToScopeAr ray(e),i=0;i<t.length;i++)if(this._grantedScopeArray.indexOf(t[i])===-1)return!1 ;return!0},requestScopes:function(e){for(var t=this.strToScopeArray(e),i=!1,n=0; n<t.length;n++)this._requestedScopeArray.indexOf(t[n])===-1&&(this._requestedSco peArray.push(t[n]),i=!0);i&&(this.updateAdditionalAuth(),this.updatePlusScopes() )},updateAdditionalAuth:function(){var e=!1;if(!this.offlineAlwaysPrompt&&!this. offline||this.offlineGranted){for(var t=0;t<this._requestedScopeArray.length;t++ )if(this._grantedScopeArray.indexOf(this._requestedScopeArray[t])===-1){e=!0;bre ak}}else e=!0;if(this._needAdditionalAuth!=e){this._needAdditionalAuth=e;for(var t=0;t<this.signinAwares.length;t++)this.signinAwares[t]._setNeedAdditionalAuth( e)}},updatePlusScopes:function(){for(var e=!1,t=0;t<this._requestedScopeArray.le ngth;t++)if(this.isPlusScope(this._requestedScopeArray[t])){e=!0;break}if(this._ hasPlusScopes!=e){this._hasPlusScopes=e;for(var t=0;t<this.signinAwares.length;t ++)this.signinAwares[t]._setHasPlusScopes(e)}},attachSigninAware:function(e){thi s.signinAwares.indexOf(e)==-1?(this.signinAwares.push(e),e._setNeedAdditionalAut h(this._needAdditionalAuth),e._setSignedIn(this._signedIn),e._setHasPlusScopes(t his._hasPlusScopes)):console.warn("signinAware attached more than once",e)},deta chSigninAware:function(e){var t=this.signinAwares.indexOf(e);t!=-1?this.signinAw ares.splice(t,1):console.warn("Trying to detach unattached signin-aware")},getMi ssingScopes:function(){return this._requestedScopeArray.filter(function(e){retur n this._grantedScopeArray.indexOf(e)===-1}.bind(this)).join(" ")},assertAuthInit ialized:function(){if(!this.clientId)throw new Error("AuthEngine not initialized . clientId has not been configured.");if(!("gapi"in window))throw new Error("Aut hEngine not initialized. gapi has not loaded.");if(!("auth2"in window.gapi))thro w new Error("AuthEngine not initialized. auth2 not loaded.")},signIn:function(){ this.assertAuthInitialized();var i={scope:this.getMissingScopes()};Object.keys(e ).forEach(function(t){this[t]&&""!==this[t]&&(i[e[t]]=this[t])},this);var n,o=ga pi.auth2.getAuthInstance().currentUser.get();console.log(o,o.getGrantedScopes()) ,this.offline||this.offlineAlwaysPrompt?(i.redirect_uri="postmessage",this.offli neAlwaysPrompt&&(i.approval_prompt="force"),n=gapi.auth2.getAuthInstance().grant OfflineAccess(i)):o.getGrantedScopes()?(console.log("a",i),n=o.grant(i)):(consol e.log("b"),n=gapi.auth2.getAuthInstance().signIn(i)),n.then(function(e){var i;e. code?(t.offlineGranted=!0,i=gapi.auth2.getAuthInstance().currentUser.get(),t.set OfflineCode(e.code)):i=e;i.getAuthResponse()},function(e){"Access denied."!==e.r eason&&this.signinAwares.forEach(function(t){t.errorNotify(e)})}.bind(this))},si gnOut:function(){this.assertAuthInitialized(),gapi.auth2.getAuthInstance().signO ut().then(function(){},function(e){console.error(e)})}};t.init(),Polymer({is:"go ogle-signin-aware",properties:{appPackageName:{type:String,observer:"_appPackage NameChanged"},clientId:{type:String,observer:"_clientIdChanged"},cookiePolicy:{t ype:String,observer:"_cookiePolicyChanged"},requestVisibleActions:{type:String,o bserver:"_requestVisibleActionsChanged"},hostedDomain:{type:String,observer:"_ho stedDomainChanged"},offline:{type:Boolean,value:!1,observer:"_offlineChanged"},o fflineAlwaysPrompt:{type:Boolean,value:!1,observer:"_offlineAlwaysPromptChanged" },scopes:{type:String,value:"profile",observer:"_scopesChanged"},openidPrompt:{t ype:String,value:"",observer:"_openidPromptChanged"},signedIn:{type:Boolean,noti fy:!0,readOnly:!0},isAuthorized:{type:Boolean,notify:!0,readOnly:!0,value:!1},ne edAdditionalAuth:{type:Boolean,notify:!0,readOnly:!0},hasPlusScopes:{type:Boolea n,value:!1,notify:!0,readOnly:!0}},attached:function(){t.attachSigninAware(this) },detached:function(){t.detachSigninAware(this)},signIn:function(){t.signIn()},s ignOut:function(){t.signOut()},errorNotify:function(e){this.fire("google-signin- aware-error",e)},_appPackageNameChanged:function(e,i){t.appPackageName=e},_clien tIdChanged:function(e,i){t.clientId=e},_cookiePolicyChanged:function(e,i){t.cook iePolicy=e},_requestVisibleActionsChanged:function(e,i){t.requestVisibleActions= e},_hostedDomainChanged:function(e,i){t.hostedDomain=e},_offlineChanged:function (e,i){t.offline=e},_offlineAlwaysPromptChanged:function(e,i){t.offlineAlwaysProm pt=e},_scopesChanged:function(e,i){t.requestScopes(e),this._updateScopeStatus(vo id 0)},_openidPromptChanged:function(e,i){t.openidPrompt=e},_updateScopeStatus:f unction(e){var i=this.signedIn&&t.hasGrantedScopes(this.scopes);i!==this.isAutho rized&&(this._setIsAuthorized(i),i?this.fire("google-signin-aware-success",e):th is.fire("google-signin-aware-signed-out",e))},_updateOfflineCode:function(e){e&& this.fire("google-signin-offline-success",{code:e})}})}()</script> <dom-module i d="auth-signin" assetpath="/res/imp/common/"> <template> <style>#avatar{border-r adius:5px}a{color:#fff}.center{vertical-align:middle}</style> <google-signin-awa re id="aware" client-id="[[client_id]]" scopes="email" on-google-signin-aware-su ccess="_onSignin" on-google-signin-aware-signed-out="_onSignout"> </google-signi n-aware> <template is="dom-if" if="[[!signed_in]]"> <div id="signinContainer"> < a on-tap="signIn" href="#">Sign in</a> </div> </template> <template is="dom-if" if="[[signed_in]]"> <img class="center" id="avatar" src="[[profile.imageUrl]]" w idth="30" height="30"> <span class="center">[[profile.email]]</span> <span class ="center">|</span> <a class="center" on-tap="signOut" href="#">Sign out</a> </te mplate> </template> <script>"use strict";Polymer({is:"auth-signin",properties:{a uth_headers:{type:Object,computed:"_makeHeader(auth_response)",notify:!0},auth_r esponse:{type:Object,notify:!0},client_id:{type:String},profile:{type:Object,rea dOnly:!0,notify:!0},signed_in:{type:Boolean,readOnly:!0,value:!1,notify:!0}},att ached:function(){if(this.client_id){window.setTimeout(function(){if("gapi"in win dow&&"auth2"in window.gapi&&!this.signed_in&&!this._signingIn){var i=gapi.auth2. getAuthInstance().currentUser.get();i&&i.getAuthResponse().access_token?this._on Signin():this.$.aware.signIn()}else window.setTimeout(this.attached.bind(this))} .bind(this),300)}},_onSignin:function(){this._signingIn=!0;var i=gapi.auth2.getA uthInstance().currentUser.get(),t=i.getBasicProfile();this._setProfile({email:t. getEmail(),imageUrl:t.getImageUrl()}),this.set("auth_response",i.getAuthResponse ()),this._setSigned_in(!0),this.fire("auth-signin"),this.async(function(){consol e.log("reloading credentials"),i.reloadAuthResponse(),this._onSignin()},1e3*this .auth_response.expires_in),this._signingIn=!1},_onSignout:function(i){this._setS igned_in(!1),this._setProfile(null)},_makeHeader:function(i){return i?{authoriza tion:i.token_type+" "+i.access_token}:{}},signIn:function(){this.$.aware.signIn( )},signOut:function(){this.$.aware.signOut()}})</script> </dom-module><dom-modul e id="swarming-app" assetpath="/res/imp/common/"> <template> <style include="iro n-flex">:host{position:absolute;top:0;bottom:0;left:0;right:0}app-toolbar{backgr ound-color:#1F78B4;color:#fff}app-toolbar a{color:#fff}.left{margin-right:15px}. right{margin-left:15px}.main-content{padding:3px}.main-content a{color:#1F78B4}. small,auth-signin{font-size:.7em}paper-fab{position:fixed;bottom:5px;right:5px;b ackground-color:#1F78B4}paper-spinner-lite{--paper-spinner-color:var(--google-ye llow-500)}</style> <app-header-layout> <app-header fixed=""> <app-toolbar> <div class="title left">[[name]]</div> <paper-spinner-lite class="left" active="[[_or (busy,_busy1,_busy2)]]"></paper-spinner-lite> <a class="left" href="/newui/">Hom e</a> <a class="left" href="/newui/botlist">Bot List</a> <a class="left" href="/ newui/tasklist">Task List</a> <div class="flex"></div> <div class="small right"> Server: <a href$="[[_versionLink(server_version)]]"> [[server_version.server_ve rsion]] </a> </div> <auth-signin class="right" client_id="[[client_id]]" auth_he aders="{{auth_headers}}" profile="{{profile}}" signed_in="{{signed_in}}"> </auth -signin> </app-toolbar> </app-header> <div class="main-content"> <content></cont ent> </div> <a target="_blank" href="https://bugs.chromium.org/p/chromium/issues /entry?components=Infra%3EPlatform%3ESwarming&amp;owner=kjlubick@chromium.org&am p;status=Assigned"> <paper-fab mini="" icon="icons:bug-report"></paper-fab> </a> </app-header-layout> </template> <script>Polymer({is:"swarming-app",behaviors:[ SwarmingBehaviors.CommonBehavior],properties:{busy:{type:Boolean},client_id:{typ e:String},name:{type:String},auth_headers:{type:Object,notify:!0,observer:"_load "},permissions:{type:Object,value:function(){return{}},notify:!0},profile:{type: Object,notify:!0},server_version:{type:Object,notify:!0},signed_in:{type:Boolean ,value:!1,notify:!0},_busy1:{type:Boolean,value:!1},_busy2:{type:Boolean,value:! 1}},_load:function(){this._getJsonAsync("permissions","/_ah/api/swarming/v1/serv er/permissions","_busy1",this.auth_headers),this._getJsonAsync("server_version", "/_ah/api/swarming/v1/server/details","_busy2",this.auth_headers)},_versionLink: function(e){if(e&&e.server_version){var i=e.server_version.split("-");if(2===i.l ength)return"https://github.com/luci/luci-py/commit/"+i[1]}}})</script> </dom-mo dule> <dom-module id="swarming-app-style" assetpath="/res/imp/common/"> <style>* {font-family:sans-serif}a[href]{color:#1F78B4}button{min-width:5.14em;background -color:#fff;color:#1f78b4;text-align:center;text-transform:uppercase;outline:0;b order-radius:3px;padding:.6em 1.2em;border:solid #d3d3d3 1px;margin:.6em;cursor: pointer}button:hover{background:#eee}button:focus{background-color:#ddd;transiti on:background-color .1s cubic-bezier(.4,0,.2,1)}button.raised:active,button:acti ve{background-color:#999;transition:background-color .1s cubic-bezier(.4,0,.2,1) }button:disabled{color:#999}button.action:active{background-color:#A6CEE3;transi tion:background-color .1s color .1s cubic-bezier(.4,0,.2,1)}button.action{color: #fff;background:#1f78b4;border:none}button.action:disabled{color:#fff;background :#999;border:none}button.raised{transition:box-shadow .1s cubic-bezier(.4,0,.2,1 );box-shadow:5px 5px 18px 0 rgba(0,0,0,.3)}button.raised:active{box-shadow:2px 2 px 5px 0 rgba(0,0,0,.1)}option,select{padding:.4em 1.2em;background-color:#fff;b order:none;line-height:20px;vertical-align:middle}select{overflow-y:auto}</style > </dom-module> <dom-module id="swarming-index" assetpath="/res/imp/index/"> <te mplate> <style include="swarming-app-style">.command{font-family:monospace;margi n-bottom:10px;margin-top:10px;white-space:pre-wrap;background-color:#f5f5f5;bord er:1px solid #ccc;border-radius:4px}</style> <swarming-app client_id="[[client_i d]]" auth_headers="{{auth_headers}}" permissions="{{_permissions}}" server_versi on="{{_server_version}}" name="Swarming Server" busy="[[_busy]]"> <h2>Service St atus</h2> <div>Server Version: [[_server_version.server_version]]</div> <ul> <li > <a href="/stats">Usage statistics</a> </li> <li> <a href="/restricted/mapreduc e/status">Map Reduce Jobs</a> </li> <li> <a href$="[[_makeInstancesUrl(_server_v ersion,_project_id)]]">View version's instances on Cloud Console</a> </li> <li> <a></a><a href$="[[_makeErrorUrl(_project_id)]]">View server errors on Cloud Con sole</a> </li> <li> <a></a><a href$="[[_makeLogUrl(_project_id)]]">View logs for HTTP 5xx on Cloud Console</a> </li> </ul> <h2>Configuration</h2> <ul> <li> <a h ref="/restricted/config">View server config</a> </li> <li> <a href="/restricted/ upload/bootstrap">View/upload bootstrap.py</a> </li> <li> <a href="/restricted/u pload/bot_config">View/upload bot_config.py</a> </li> <li> <a href="/auth/groups ">View/edit user groups</a> </li> </ul> <div hidden$="[[_cannotBootstrap(_permis sions)]]"> <h2>Bootstrapping a bot</h2> To bootstrap a bot, run one of these (al l links are valid for 1 hour): <ol> <li> <strong> TL;DR; </strong> <pre class="c ommand">python -c "import urllib; exec urllib.urlopen('[[_host_url]]/bootstrap?t ok=[[_bootstrap_token]]').read()"</pre> </li> <li> Escaped version to pass as a ssh argument: <pre class="command">'python -c "import urllib; exec urllib.urlope n('"'[[_host_url]]/bootstrap?tok=[[_bootstrap_token]]'"').read()"'</pre> </li> < li> Manually: <pre class="command" style="margin-bottom:0">mkdir bot; cd bot 4 var r=t.propertyDataFromStyles(n._styles,this),i=!this.__notStyleScopeCacheable; i&&(r.key.customStyle=this.customStyle,e=n._styleCache.retrieve(this.is,r.key,th is._styles));var a=Boolean(e);a?this._styleProperties=e._styleProperties:this._c omputeStyleProperties(r.properties),this._computeOwnStyleProperties(),a||(e=o.re trieve(this.is,this._ownStyleProperties,this._styles));var l=Boolean(e)&&!a,h=th is._applyStyleProperties(e);a||(h=h&&s?h.cloneNode(!0):h,e={style:h,_scopeSelect or:this._scopeSelector,_styleProperties:this._styleProperties},i&&(r.key.customS tyle={},this.mixin(r.key.customStyle,this.customStyle),n._styleCache.store(this. is,e,r.key,this._styles)),l||o.store(this.is,Object.create(e),this._ownStyleProp erties,this._styles))},_computeStyleProperties:function(e){var n=this._findStyle Host();n._styleProperties||n._computeStyleProperties();var r=Object.create(n._st yleProperties),s=t.hostAndRootPropertiesForScope(this);this.mixin(r,s.hostProps) ,e=e||t.propertyDataFromStyles(n._styles,this).properties,this.mixin(r,e),this.m ixin(r,s.rootProps),t.mixinCustomStyle(r,this.customStyle),t.reify(r),this._styl eProperties=r},_computeOwnStyleProperties:function(){for(var e,t={},n=0;n<this._ ownStylePropertyNames.length;n++)e=this._ownStylePropertyNames[n],t[e]=this._sty leProperties[e];this._ownStyleProperties=t},_scopeCount:0,_applyStyleProperties: function(e){var n=this._scopeSelector;this._scopeSelector=e?e._scopeSelector:thi s.is+"-"+this.__proto__._scopeCount++;var r=t.applyElementStyle(this,this._style Properties,this._scopeSelector,e&&e.style);return s||t.applyElementScopeSelector (this,this._scopeSelector,n,this._scopeCssViaAttr),r},serializeValueToAttribute: function(t,n,r){if(r=r||this,"class"===n&&!s){var i=r===this?this.domHost||this. dataHost:this;i&&(t=i._scopeElementClass(r,t))}r=this.shadyRoot&&this.shadyRoot. _hasDistributed?Polymer.dom(r):r,e.call(this,t,n,r)},_scopeElementClass:function (e,t){return s||this._scopeCssViaAttr||(t=(t?t+" ":"")+a+" "+this.is+(e._scopeSe lector?" "+l+" "+e._scopeSelector:"")),t},updateStyles:function(e){e&&this.mixin (this.customStyle,e),i?t.updateNativeStyleProperties(this,this.customStyle):(thi s.isAttached?this._needsStyleProperties()?this._updateStyleProperties():this._st yleProperties=null:this.__stylePropertiesInvalid=!0,this._styleCache&&this._styl eCache.clear(),this._updateRootStyles())},_updateRootStyles:function(e){e=e||thi s.root;for(var t,n=Polymer.dom(e)._query(function(e){return e.shadyRoot||e.shado wRoot}),r=0,s=n.length;r<s&&(t=n[r]);r++)t.updateStyles&&t.updateStyles()}}),Pol ymer.updateStyles=function(e){r.updateStyles(e),Polymer.Base._updateRootStyles(d ocument)};var o=new Polymer.StyleCache;Polymer.customStyleCache=o;var a=n.SCOPE_ NAME,l=t.XSCOPE_NAME}(),Polymer.Base._addFeature({_registerFeatures:function(){t his._prepIs(),this._prepConstructor(),this._prepStyles()},_finishRegisterFeature s:function(){this._prepTemplate(),this._prepShimStyles(),this._prepAnnotations() ,this._prepEffects(),this._prepBehaviors(),this._prepPropertyInfo(),this._prepBi ndings(),this._prepShady()},_prepBehavior:function(e){this._addPropertyEffects(e .properties),this._addComplexObserverEffects(e.observers),this._addHostAttribute s(e.hostAttributes)},_initFeatures:function(){this._setupGestures(),this._setupC onfigure(),this._setupStyleProperties(),this._setupDebouncers(),this._setupShady (),this._registerHost(),this._template&&(this._validateApplyShim(),this._poolCon tent(),this._beginHosting(),this._stampTemplate(),this._endHosting(),this._marsh alAnnotationReferences()),this._marshalInstanceEffects(),this._marshalBehaviors( ),this._marshalHostAttributes(),this._marshalAttributes(),this._tryReady()},_mar shalBehavior:function(e){e.listeners&&this._listenListeners(e.listeners)}}),func tion(){var e,t=Polymer.StyleProperties,n=Polymer.StyleUtil,r=Polymer.CssParse,s= Polymer.StyleDefaults,i=Polymer.StyleTransformer,o=Polymer.ApplyShim,a=Polymer.D ebounce,l=Polymer.Settings;Polymer({is:"custom-style",extends:"style",_template: null,properties:{include:String},ready:function(){this.__appliedElement=this.__a ppliedElement||this,this.__cssBuild=n.getCssBuildType(this),this.__appliedElemen t!==this&&(this.__appliedElement.__cssBuild=this.__cssBuild),this._tryApply()},a ttached:function(){this._tryApply()},_tryApply:function(){if(!this._appliesToDoc ument&&this.parentNode&&"dom-module"!==this.parentNode.localName){this._appliesT oDocument=!0;var e=this.__appliedElement;if(l.useNativeCSSProperties||(this.__ne edsUpdateStyles=s.hasStyleProperties(),s.addStyle(e)),e.textContent||this.includ e)this._apply(!0);else{var t=this,n=new MutationObserver(function(){n.disconnect (),t._apply(!0)});n.observe(e,{childList:!0})}}},_updateStyles:function(){Polyme r.updateStyles()},_apply:function(e){var t=this.__appliedElement;if(this.include &&(t.textContent=n.cssFromModules(this.include,!0)+t.textContent),t.textContent) {var r=this.__cssBuild,s=n.isTargetedBuild(r);if(!l.useNativeCSSProperties||!s){ var a=n.rulesForStyle(t);if(s||n.forEachRule(a,function(e){i.documentRule(e),l.u seNativeCSSProperties&&!r&&o.transformRule(e)}),l.useNativeCSSProperties)t.textC ontent=n.toCssText(a);else{var h=this,c=function(){h._flushCustomProperties()};e ?Polymer.RenderStatus.whenReady(c):c()}}}},_flushCustomProperties:function(){thi s.__needsUpdateStyles?(this.__needsUpdateStyles=!1,e=a(e,this._updateStyles)):th is._applyCustomProperties()},_applyCustomProperties:function(){var e=this.__appl iedElement;this._computeStyleProperties();var s=this._styleProperties,i=n.rulesF orStyle(e);i&&(e.textContent=n.toCssText(i,function(e){var n=e.cssText=e.parsedC ssText;e.propertyInfo&&e.propertyInfo.cssText&&(n=r.removeCustomPropAssignment(n ),e.cssText=t.valueForProperties(n,s))}))}})}(),Polymer.Templatizer={properties: {__hideTemplateChildren__:{observer:"_showHideChildren"}},_instanceProps:Polymer .nob,_parentPropPrefix:"_parent_",templatize:function(e){if(this._templatized=e, e._content||(e._content=e.content),e._content._ctor)return this.ctor=e._content. _ctor,void this._prepParentProperties(this.ctor.prototype,e);var t=Object.create (Polymer.Base);this._customPrepAnnotations(t,e),this._prepParentProperties(t,e), t._prepEffects(),this._customPrepEffects(t),t._prepBehaviors(),t._prepPropertyIn fo(),t._prepBindings(),t._notifyPathUp=this._notifyPathUpImpl,t._scopeElementCla ss=this._scopeElementClassImpl,t.listen=this._listenImpl,t._showHideChildren=thi s._showHideChildrenImpl,t.__setPropertyOrig=this.__setProperty,t.__setProperty=t his.__setPropertyImpl;var n=this._constructorImpl,r=function(e,t){n.call(this,e, t)};r.prototype=t,t.constructor=r,e._content._ctor=r,this.ctor=r},_getRootDataHo st:function(){return this.dataHost&&this.dataHost._rootDataHost||this.dataHost}, _showHideChildrenImpl:function(e){for(var t=this._children,n=0;n<t.length;n++){v ar r=t[n];Boolean(e)!=Boolean(r.__hideTemplateChildren__)&&(r.nodeType===Node.TE XT_NODE?e?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textConten t=r.__polymerTextContent__:r.style&&(e?(r.__polymerDisplay__=r.style.display,r.s tyle.display="none"):r.style.display=r.__polymerDisplay__)),r.__hideTemplateChil dren__=e}},__setPropertyImpl:function(e,t,n,r){r&&r.__hideTemplateChildren__&&"t extContent"==e&&(e="__polymerTextContent__"),this.__setPropertyOrig(e,t,n,r)},_d ebounceTemplate:function(e){Polymer.dom.addDebouncer(this.debounce("_debounceTem plate",e))},_flushTemplates:function(){Polymer.dom.flush()},_customPrepEffects:f unction(e){var t=e._parentProps;for(var n in t)e._addPropertyEffect(n,"function" ,this._createHostPropEffector(n));for(n in this._instanceProps)e._addPropertyEff ect(n,"function",this._createInstancePropEffector(n))},_customPrepAnnotations:fu nction(e,t){e._template=t;var n=t._content;if(!n._notes){var r=e._rootDataHost;r &&(Polymer.Annotations.prepElement=function(){r._prepElement()}),n._notes=Polyme r.Annotations.parseAnnotations(t),Polymer.Annotations.prepElement=null,this._pro cessAnnotations(n._notes)}e._notes=n._notes,e._parentProps=n._parentProps},_prep ParentProperties:function(e,t){var n=this._parentProps=e._parentProps;if(this._f orwardParentProp&&n){var r,s=e._parentPropProto;if(!s){for(r in this._instancePr ops)delete n[r];s=e._parentPropProto=Object.create(null),t!=this&&(Polymer.Bind. prepareModel(s),Polymer.Base.prepareModelNotifyPath(s));for(r in n){var i=this._ parentPropPrefix+r,o=[{kind:"function",effect:this._createForwardPropEffector(r) ,fn:Polymer.Bind._functionEffect},{kind:"notify",fn:Polymer.Bind._notifyEffect,e ffect:{event:Polymer.CaseMap.camelToDashCase(i)+"-changed"}}];Polymer.Bind._crea teAccessors(s,i,o)}}var a=this;t!=this&&(Polymer.Bind.prepareInstance(t),t._forw ardParentProp=function(e,t){a._forwardParentProp(e,t)}),this._extendTemplate(t,s ),t._pathEffector=function(e,t,n){return a._pathEffectorImpl(e,t,n)}}},_createFo rwardPropEffector:function(e){return function(t,n){this._forwardParentProp(e,n)} },_createHostPropEffector:function(e){var t=this._parentPropPrefix;return functi on(n,r){this.dataHost._templatized[t+e]=r}},_createInstancePropEffector:function (e){return function(t,n,r,s){s||this.dataHost._forwardInstanceProp(this,e,n)}},_ extendTemplate:function(e,t){var n=Object.getOwnPropertyNames(t);t._propertySett er&&(e._propertySetter=t._propertySetter);for(var r,s=0;s<n.length&&(r=n[s]);s++ ){var i=e[r],o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,o) ,void 0!==i&&e._propertySetter(r,i)}},_showHideChildren:function(e){},_forwardIn stancePath:function(e,t,n){},_forwardInstanceProp:function(e,t,n){},_notifyPathU pImpl:function(e,t){var n=this.dataHost,r=e.indexOf("."),s=r<0?e:e.slice(0,r);n. _forwardInstancePath.call(n,this,e,t),s in n._parentProps&&n._templatized._notif yPath(n._parentPropPrefix+e,t)},_pathEffectorImpl:function(e,t,n){if(this._forwa rdParentPath&&0===e.indexOf(this._parentPropPrefix)){var r=e.substring(this._par entPropPrefix.length),s=this._modelForPath(r);s in this._parentProps&&this._forw ardParentPath(r,t)}Polymer.Base._pathEffector.call(this._templatized,e,t,n)},_co nstructorImpl:function(e,t){this._rootDataHost=t._getRootDataHost(),this._setupC onfigure(e),this._registerHost(t),this._beginHosting(),this.root=this.instanceTe mplate(this._template),this.root.__noContent=!this._notes._hasContent,this.root. __styleScoped=!0,this._endHosting(),this._marshalAnnotatedNodes(),this._marshalI nstanceEffects(),this._marshalAnnotatedListeners();for(var n=[],r=this.root.firs tChild;r;r=r.nextSibling)n.push(r),r._templateInstance=this;this._children=n,t._ _hideTemplateChildren__&&this._showHideChildren(!0),this._tryReady()},_listenImp l:function(e,t,n){var r=this,s=this._rootDataHost,i=s._createEventHandler(e,t,n) ,o=function(e){e.model=r,i(e)};s._listen(e,t,o)},_scopeElementClassImpl:function (e,t){var n=this._rootDataHost;return n?n._scopeElementClass(e,t):t},stamp:funct ion(e){if(e=e||{},this._parentProps){var t=this._templatized;for(var n in this._ parentProps)void 0===e[n]&&(e[n]=t[this._parentPropPrefix+n])}return new this.ct or(e,this)},modelForElement:function(e){for(var t;e;)if(t=e._templateInstance){i f(t.dataHost==this)return t;e=t.dataHost}else e=e.parentNode}},Polymer({is:"dom- template",extends:"template",_template:null,behaviors:[Polymer.Templatizer],read y:function(){this.templatize(this)}}),Polymer._collections=new WeakMap,Polymer.C ollection=function(e){Polymer._collections.set(e,this),this.userArray=e,this.sto re=e.slice(),this.initMap()},Polymer.Collection.prototype={constructor:Polymer.C ollection,initMap:function(){for(var e=this.omap=new WeakMap,t=this.pmap={},n=th is.store,r=0;r<n.length;r++){var s=n[r];s&&"object"==typeof s?e.set(s,r):t[s]=r} },add:function(e){var t=this.store.push(e)-1;return e&&"object"==typeof e?this.o map.set(e,t):this.pmap[e]=t,"#"+t},removeKey:function(e){(e=this._parseKey(e))&& (this._removeFromMap(this.store[e]),delete this.store[e])},_removeFromMap:functi on(e){e&&"object"==typeof e?this.omap.delete(e):delete this.pmap[e]},remove:func tion(e){var t=this.getKey(e);return this.removeKey(t),t},getKey:function(e){var t;if(t=e&&"object"==typeof e?this.omap.get(e):this.pmap[e],void 0!=t)return"#"+t },getKeys:function(){return Object.keys(this.store).map(function(e){return"#"+e} )},_parseKey:function(e){if(e&&"#"==e[0])return e.slice(1)},setItem:function(e,t ){if(e=this._parseKey(e)){var n=this.store[e];n&&this._removeFromMap(n),t&&"obje ct"==typeof t?this.omap.set(t,e):this.pmap[t]=e,this.store[e]=t}},getItem:functi on(e){if(e=this._parseKey(e))return this.store[e]},getItems:function(){var e=[], t=this.store;for(var n in t)e.push(t[n]);return e},_applySplices:function(e){for (var t,n,r={},s=0;s<e.length&&(n=e[s]);s++){n.addedKeys=[];for(var i=0;i<n.remov ed.length;i++)t=this.getKey(n.removed[i]),r[t]=r[t]?null:-1;for(i=0;i<n.addedCou nt;i++){var o=this.userArray[n.index+i];t=this.getKey(o),t=void 0===t?this.add(o ):t,r[t]=r[t]?null:1,n.addedKeys.push(t)}}var a=[],l=[];for(t in r)r[t]<0&&(this .removeKey(t),a.push(t)),r[t]>0&&l.push(t);return[{removed:a,added:l}]}},Polymer .Collection.get=function(e){return Polymer._collections.get(e)||new Polymer.Coll ection(e)},Polymer.Collection.applySplices=function(e,t){var n=Polymer._collecti ons.get(e);return n?n._applySplices(t):null},Polymer({is:"dom-repeat",extends:"t emplate",_template:null,properties:{items:{type:Array},as:{type:String,value:"it em"},indexAs:{type:String,value:"index"},sort:{type:Function,observer:"_sortChan ged"},filter:{type:Function,observer:"_filterChanged"},observe:{type:String,obse rver:"_observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!0,re adOnly:!0},initialCount:{type:Number,observer:"_initializeChunking"},targetFrame rate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"_computeFram eTime(targetFramerate)"}},behaviors:[Polymer.Templatizer],observers:["_itemsChan ged(items.*)"],created:function(){this._instances=[],this._pool=[],this._limit=1 /0;var e=this;this._boundRenderChunk=function(){e._renderChunk()}},detached:func tion(){this.__isDetached=!0;for(var e=0;e<this._instances.length;e++)this._detac hInstance(e)},attached:function(){if(this.__isDetached){this.__isDetached=!1;for (var e=Polymer.dom(Polymer.dom(this).parentNode),t=0;t<this._instances.length;t+ +)this._attachInstance(t,e)}},ready:function(){this._instanceProps={__key__:!0}, this._instanceProps[this.as]=!0,this._instanceProps[this.indexAs]=!0,this.ctor|| this.templatize(this)},_sortChanged:function(e){var t=this._getRootDataHost();th is._sortFn=e&&("function"==typeof e?e:function(){return t[e].apply(t,arguments)} ),this._needFullRefresh=!0,this.items&&this._debounceTemplate(this._render)},_fi lterChanged:function(e){var t=this._getRootDataHost();this._filterFn=e&&("functi on"==typeof e?e:function(){return t[e].apply(t,arguments)}),this._needFullRefres h=!0,this.items&&this._debounceTemplate(this._render)},_computeFrameTime:functio n(e){return Math.ceil(1e3/e)},_initializeChunking:function(){this.initialCount&& (this._limit=this.initialCount,this._chunkCount=this.initialCount,this._lastChun kTime=performance.now())},_tryRenderChunk:function(){this.items&&this._limit<thi s.items.length&&this.debounce("renderChunk",this._requestRenderChunk)},_requestR enderChunk:function(){requestAnimationFrame(this._boundRenderChunk)},_renderChun k:function(){var e=performance.now(),t=this._targetFrameTime/(e-this._lastChunkT ime);this._chunkCount=Math.round(this._chunkCount*t)||1,this._limit+=this._chunk Count,this._lastChunkTime=e,this._debounceTemplate(this._render)},_observeChange d:function(){this._observePaths=this.observe&&this.observe.replace(".*",".").spl it(" ")},_itemsChanged:function(e){if("items"==e.path)Array.isArray(this.items)? this.collection=Polymer.Collection.get(this.items):this.items?this._error(this._ logf("dom-repeat","expected array for `items`, found",this.items)):this.collecti on=null,this._keySplices=[],this._indexSplices=[],this._needFullRefresh=!0,this. _initializeChunking(),this._debounceTemplate(this._render);else if("items.splice s"==e.path)this._keySplices=this._keySplices.concat(e.value.keySplices),this._in dexSplices=this._indexSplices.concat(e.value.indexSplices),this._debounceTemplat e(this._render);else{var t=e.path.slice(6);this._forwardItemPath(t,e.value),this ._checkObservedPaths(t)}},_checkObservedPaths:function(e){if(this._observePaths) {e=e.substring(e.indexOf(".")+1);for(var t=this._observePaths,n=0;n<t.length;n++ )if(0===e.indexOf(t[n]))return this._needFullRefresh=!0,void(this.delay?this.deb ounce("render",this._render,this.delay):this._debounceTemplate(this._render))}}, render:function(){this._needFullRefresh=!0,this._debounceTemplate(this._render), this._flushTemplates()},_render:function(){this._needFullRefresh?(this._applyFul lRefresh(),this._needFullRefresh=!1):this._keySplices.length&&(this._sortFn?this ._applySplicesUserSort(this._keySplices):this._filterFn?this._applyFullRefresh() :this._applySplicesArrayOrder(this._indexSplices)),this._keySplices=[],this._ind exSplices=[];for(var e=this._keyToInstIdx={},t=this._instances.length-1;t>=0;t-- ){var n=this._instances[t];n.isPlaceholder&&t<this._limit?n=this._insertInstance (t,n.__key__):!n.isPlaceholder&&t>=this._limit&&(n=this._downgradeInstance(t,n._ _key__)),e[n.__key__]=t,n.isPlaceholder||n.__setProperty(this.indexAs,t,!0)}this ._pool.length=0,this._setRenderedItemCount(this._instances.length),this.fire("do m-change"),this._tryRenderChunk()},_applyFullRefresh:function(){var e,t=this.col lection;if(this._sortFn)e=t?t.getKeys():[];else{e=[];var n=this.items;if(n)for(v ar r=0;r<n.length;r++)e.push(t.getKey(n[r]))}var s=this;for(this._filterFn&&(e=e .filter(function(e){return s._filterFn(t.getItem(e))})),this._sortFn&&e.sort(fun ction(e,n){return s._sortFn(t.getItem(e),t.getItem(n))}),r=0;r<e.length;r++){var i=e[r],o=this._instances[r];o?(o.__key__=i,!o.isPlaceholder&&r<this._limit&&o._ _setProperty(this.as,t.getItem(i),!0)):r<this._limit?this._insertInstance(r,i):t his._insertPlaceholder(r,i)}for(var a=this._instances.length-1;a>=r;a--)this._de tachAndRemoveInstance(a)},_numericSort:function(e,t){return e-t},_applySplicesUs erSort:function(e){for(var t,n,r=this.collection,s={},i=0;i<e.length&&(n=e[i]);i ++){for(var o=0;o<n.removed.length;o++)t=n.removed[o],s[t]=s[t]?null:-1;for(o=0; o<n.added.length;o++)t=n.added[o],s[t]=s[t]?null:1}var a=[],l=[];for(t in s)s[t] ===-1&&a.push(this._keyToInstIdx[t]),1===s[t]&&l.push(t);if(a.length)for(a.sort( this._numericSort),i=a.length-1;i>=0;i--){var h=a[i];void 0!==h&&this._detachAnd RemoveInstance(h)}var c=this;if(l.length){this._filterFn&&(l=l.filter(function(e ){return c._filterFn(r.getItem(e))})),l.sort(function(e,t){return c._sortFn(r.ge tItem(e),r.getItem(t))});var u=0;for(i=0;i<l.length;i++)u=this._insertRowUserSor t(u,l[i])}},_insertRowUserSort:function(e,t){for(var n=this.collection,r=n.getIt em(t),s=this._instances.length-1,i=-1;e<=s;){var o=e+s>>1,a=this._instances[o]._ _key__,l=this._sortFn(n.getItem(a),r);if(l<0)e=o+1;else{if(!(l>0)){i=o;break}s=o -1}}return i<0&&(i=s+1),this._insertPlaceholder(i,t),i},_applySplicesArrayOrder: function(e){for(var t,n=0;n<e.length&&(t=e[n]);n++){for(var r=0;r<t.removed.leng th;r++)this._detachAndRemoveInstance(t.index);for(r=0;r<t.addedKeys.length;r++)t his._insertPlaceholder(t.index+r,t.addedKeys[r])}},_detachInstance:function(e){v ar t=this._instances[e];if(!t.isPlaceholder){for(var n=0;n<t._children.length;n+ +){var r=t._children[n];Polymer.dom(t.root).appendChild(r)}return t}},_attachIns tance:function(e,t){var n=this._instances[e];n.isPlaceholder||t.insertBefore(n.r oot,this)},_detachAndRemoveInstance:function(e){var t=this._detachInstance(e);t& &this._pool.push(t),this._instances.splice(e,1)},_insertPlaceholder:function(e,t ){this._instances.splice(e,0,{isPlaceholder:!0,__key__:t})},_stampInstance:funct ion(e,t){var n={__key__:t};return n[this.as]=this.collection.getItem(t),n[this.i ndexAs]=e,this.stamp(n)},_insertInstance:function(e,t){var n=this._pool.pop();n? (n.__setProperty(this.as,this.collection.getItem(t),!0),n.__setProperty("__key__ ",t,!0)):n=this._stampInstance(e,t);var r=this._instances[e+1],s=r&&!r.isPlaceho lder?r._children[0]:this,i=Polymer.dom(this).parentNode;return Polymer.dom(i).in sertBefore(n.root,s),this._instances[e]=n,n},_downgradeInstance:function(e,t){va r n=this._detachInstance(e);return n&&this._pool.push(n),n={isPlaceholder:!0,__k ey__:t},this._instances[e]=n,n},_showHideChildren:function(e){for(var t=0;t<this ._instances.length;t++)this._instances[t]._showHideChildren(e)},_forwardInstance Prop:function(e,t,n){if(t==this.as){var r;r=this._sortFn||this._filterFn?this.it ems.indexOf(this.collection.getItem(e.__key__)):e[this.indexAs],this.set("items. "+r,n)}},_forwardInstancePath:function(e,t,n){0===t.indexOf(this.as+".")&&this._ notifyPath("items."+e.__key__+"."+t.slice(this.as.length+1),n)},_forwardParentPr op:function(e,t){for(var n,r=this._instances,s=0;s<r.length&&(n=r[s]);s++)n.isPl aceholder||n.__setProperty(e,t,!0)},_forwardParentPath:function(e,t){for(var n,r =this._instances,s=0;s<r.length&&(n=r[s]);s++)n.isPlaceholder||n._notifyPath(e,t ,!0)},_forwardItemPath:function(e,t){if(this._keyToInstIdx){var n=e.indexOf(".") ,r=e.substring(0,n<0?e.length:n),s=this._keyToInstIdx[r],i=this._instances[s];i& &!i.isPlaceholder&&(n>=0?(e=this.as+"."+e.substring(n+1),i._notifyPath(e,t,!0)): i.__setProperty(this.as,t,!0))}},itemForElement:function(e){var t=this.modelForE lement(e);return t&&t[this.as]},keyForElement:function(e){var t=this.modelForEle ment(e);return t&&t.__key__},indexForElement:function(e){var t=this.modelForElem ent(e);return t&&t[this.indexAs]}}),Polymer({is:"array-selector",_template:null, properties:{items:{type:Array,observer:"clearSelection"},multi:{type:Boolean,val ue:!1,observer:"clearSelection"},selected:{type:Object,notify:!0},selectedItem:{ type:Object,notify:!0},toggle:{type:Boolean,value:!1}},clearSelection:function() {if(Array.isArray(this.selected))for(var e=0;e<this.selected.length;e++)this.unl inkPaths("selected."+e);else this.unlinkPaths("selected"),this.unlinkPaths("sele ctedItem");this.multi?this.selected&&!this.selected.length||(this.selected=[],th is._selectedColl=Polymer.Collection.get(this.selected)):(this.selected=null,this ._selectedColl=null),this.selectedItem=null},isSelected:function(e){return this. multi?void 0!==this._selectedColl.getKey(e):this.selected==e},deselect:function( e){if(this.multi){if(this.isSelected(e)){var t=this._selectedColl.getKey(e);this .arrayDelete("selected",e),this.unlinkPaths("selected."+t)}}else this.selected=n ull,this.selectedItem=null,this.unlinkPaths("selected"),this.unlinkPaths("select edItem")},select:function(e){var t=Polymer.Collection.get(this.items),n=t.getKey (e);if(this.multi)if(this.isSelected(e))this.toggle&&this.deselect(e);else{this. push("selected",e);var r=this._selectedColl.getKey(e);this.linkPaths("selected." +r,"items."+n)}else this.toggle&&e==this.selected?this.deselect():(this.selected =e,this.selectedItem=e,this.linkPaths("selected","items."+n),this.linkPaths("sel ectedItem","items."+n))}}),Polymer({is:"dom-if",extends:"template",_template:nul l,properties:{if:{type:Boolean,value:!1,observer:"_queueRender"},restamp:{type:B oolean,value:!1,observer:"_queueRender"}},behaviors:[Polymer.Templatizer],_queue Render:function(){this._debounceTemplate(this._render)},detached:function(){this .parentNode&&(this.parentNode.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||Polymer.Set tings.hasShadow&&this.parentNode instanceof ShadowRoot)||this._teardownInstance( )},attached:function(){this.if&&this.ctor&&this.async(this._ensureInstance)},ren der:function(){this._flushTemplates()},_render:function(){this.if?(this.ctor||th is.templatize(this),this._ensureInstance(),this._showHideChildren()):this.restam p&&this._teardownInstance(),!this.restamp&&this._instance&&this._showHideChildre n(),this.if!=this._lastIf&&(this.fire("dom-change"),this._lastIf=this.if)},_ensu reInstance:function(){var e=Polymer.dom(this).parentNode;if(e){var t=Polymer.dom (e);if(this._instance){var n=this._instance._children;if(n&&n.length){var r=Poly mer.dom(this).previousSibling;if(r!==n[n.length-1])for(var s,i=0;i<n.length&&(s= n[i]);i++)t.insertBefore(s,this)}}else{this._instance=this.stamp();var o=this._i nstance.root;t.insertBefore(o,this)}}},_teardownInstance:function(){if(this._ins tance){var e=this._instance._children;if(e&&e.length)for(var t,n=Polymer.dom(Pol ymer.dom(e[0]).parentNode),r=0;r<e.length&&(t=e[r]);r++)n.removeChild(t);this._i nstance=null}},_showHideChildren:function(){var e=this.__hideTemplateChildren__| |!this.if;this._instance&&this._instance._showHideChildren(e)},_forwardParentPro p:function(e,t){this._instance&&this._instance.__setProperty(e,t,!0)},_forwardPa rentPath:function(e,t){this._instance&&this._instance._notifyPath(e,t,!0)}}),Pol ymer({is:"dom-bind",extends:"template",_template:null,created:function(){var e=t his;Polymer.RenderStatus.whenReady(function(){"loading"==document.readyState?doc ument.addEventListener("DOMContentLoaded",function(){e._markImportsReady()}):e._ markImportsReady()})},_ensureReady:function(){this._readied||this._readySelf()}, _markImportsReady:function(){this._importsReady=!0,this._ensureReady()},_registe rFeatures:function(){this._prepConstructor()},_insertChildren:function(){var e=P olymer.dom(Polymer.dom(this).parentNode);e.insertBefore(this.root,this)},_remove Children:function(){if(this._children)for(var e=0;e<this._children.length;e++)th is.root.appendChild(this._children[e])},_initFeatures:function(){},_scopeElement Class:function(e,t){return this.dataHost?this.dataHost._scopeElementClass(e,t):t },_configureInstanceProperties:function(){},_prepConfigure:function(){var e={};f or(var t in this._propertyEffects)e[t]=this[t];var n=this._setupConfigure;this._ setupConfigure=function(){n.call(this,e)}},attached:function(){this._importsRead y&&this.render()},detached:function(){this._removeChildren()},render:function(){ this._ensureReady(),this._children||(this._template=this,this._prepAnnotations() ,this._prepEffects(),this._prepBehaviors(),this._prepConfigure(),this._prepBindi ngs(),this._prepPropertyInfo(),Polymer.Base._initFeatures.call(this),this._child ren=Polymer.TreeApi.arrayCopyChildNodes(this.root)),this._insertChildren(),this. fire("dom-change")}})</script> <script>window.SwarmingBehaviors=window.SwarmingB ehaviors||{},function(){SwarmingBehaviors.CommonBehavior={_botLink:function(n){i f(n)return"/newui/bot?id="+n},_botListLink:function(n,e){n=n||[],e=e||[];var t=[ ];n.forEach(function(n){t.push(n.key+":"+n.value)});var i={f:t,c:e};return"/newu i/botlist?"+sk.query.fromParamSet(i)},_getJsonAsync:function(n,e,t,i,o){if(!n||! e||!t)return void console.log("Need at least a polymer element to bind to, a bus y element, and a url");this.set(t,!0);var s=new Date;this._jsonAsync=this._jsonA sync||{},this._jsonAsync[n]=s,o&&(e=e+"?"+sk.query.fromParamSet(o)),sk.request(" GET",e,"",i).then(JSON.parse).then(function(e){return this._jsonAsync[n]!==s?(co nsole.log("ignoring result because a second request happened."),void this.set(t, !1)):(this.set(n,e),void this.set(t,!1))}.bind(this)).catch(function(i){return c onsole.log("Reason for failure of request to "+e,i),this._jsonAsync[n]!==s?(cons ole.log("ignoring failure because a second request happened."),void this.set(t,! 1)):(this.set(n,!1),void this.set(t,!1))}.bind(this))},_humanDuration:function(n ){return sk.human.strDuration(n)||"0s"},_not:function(n){return!n},_or:function( ){for(var n=!1,e=0;e<arguments.length;e++)n=n||arguments[e];return n},_taskLink: function(n){if(n)return"/newui/task?id="+n},_timeDiffApprox:function(n){return n ?sk.human.diffDate(n.getTime()):"eons"},_timeDiffExact:function(n,e){return n?(e ||(e=new Date),this._humanDuration((e.getTime()-n.getTime())/1e3)):"eons"}}}()</ script> <script>Polymer.AppLayout=Polymer.AppLayout||{},Polymer.AppLayout._scrol lEffects=Polymer.AppLayout._scrollEffects||{},Polymer.AppLayout.scrollTimingFunc tion=function(o,l,e,r){return o/=r,-e*o*(o-2)+l},Polymer.AppLayout.registerEffec t=function(o,l){if(null!=Polymer.AppLayout._scrollEffects[o])throw new Error("ef fect `"+o+"` is already registered.");Polymer.AppLayout._scrollEffects[o]=l},Pol ymer.AppLayout.scroll=function(o){o=o||{};var l=document.documentElement,e=o.tar get||l,r="scrollBehavior"in e.style&&e.scroll,t="app-layout-silent-scroll",s=o.t op||0,c=o.left||0,i=e===l?window.scrollTo:function(o,l){e.scrollLeft=o,e.scrollT op=l};if("smooth"===o.behavior)if(r)e.scroll(o);else{var n=Polymer.AppLayout.scr ollTimingFunction,a=Date.now(),p=e===l?window.pageYOffset:e.scrollTop,u=e===l?wi ndow.pageXOffset:e.scrollLeft,y=s-p,f=c-u,m=300,L=function o(){var l=Date.now(), e=l-a;e<m?(i(n(e,u,f,m),n(e,p,y,m)),requestAnimationFrame(o)):i(c,s)}.bind(this) ;L()}else"silent"===o.behavior?(l.classList.add(t),clearInterval(Polymer.AppLayo ut._scrollTimer),Polymer.AppLayout._scrollTimer=setTimeout(function(){l.classLis t.remove(t),Polymer.AppLayout._scrollTimer=null},100),i(c,s)):i(c,s)}</script> < style>[hidden]{display:none!important}</style> <style is="custom-style">:root{-- layout:{display:-ms-flexbox;display:-webkit-flex;display:flex};--layout-inline:{ display:-ms-inline-flexbox;display:-webkit-inline-flex;display:inline-flex};--la yout-horizontal:{@apply(--layout);-ms-flex-direction:row;-webkit-flex-direction: row;flex-direction:row};--layout-horizontal-reverse:{@apply(--layout);-ms-flex-d irection:row-reverse;-webkit-flex-direction:row-reverse;flex-direction:row-rever se};--layout-vertical:{@apply(--layout);-ms-flex-direction:column;-webkit-flex-d irection:column;flex-direction:column};--layout-vertical-reverse:{@apply(--layou t);-ms-flex-direction:column-reverse;-webkit-flex-direction:column-reverse;flex- direction:column-reverse};--layout-wrap:{-ms-flex-wrap:wrap;-webkit-flex-wrap:wr ap;flex-wrap:wrap};--layout-wrap-reverse:{-ms-flex-wrap:wrap-reverse;-webkit-fle x-wrap:wrap-reverse;flex-wrap:wrap-reverse};--layout-flex-auto:{-ms-flex:1 1 aut o;-webkit-flex:1 1 auto;flex:1 1 auto};--layout-flex-none:{-ms-flex:none;-webkit -flex:none;flex:none};--layout-flex:{-ms-flex:1 1 0px;-webkit-flex:1;flex:1;-web kit-flex-basis:0px;flex-basis:0px};--layout-flex-2:{-ms-flex:2;-webkit-flex:2;fl ex:2};--layout-flex-3:{-ms-flex:3;-webkit-flex:3;flex:3};--layout-flex-4:{-ms-fl ex:4;-webkit-flex:4;flex:4};--layout-flex-5:{-ms-flex:5;-webkit-flex:5;flex:5};- -layout-flex-6:{-ms-flex:6;-webkit-flex:6;flex:6};--layout-flex-7:{-ms-flex:7;-w ebkit-flex:7;flex:7};--layout-flex-8:{-ms-flex:8;-webkit-flex:8;flex:8};--layout -flex-9:{-ms-flex:9;-webkit-flex:9;flex:9};--layout-flex-10:{-ms-flex:10;-webkit -flex:10;flex:10};--layout-flex-11:{-ms-flex:11;-webkit-flex:11;flex:11};--layou t-flex-12:{-ms-flex:12;-webkit-flex:12;flex:12};--layout-start:{-ms-flex-align:s tart;-webkit-align-items:flex-start;align-items:flex-start};--layout-center:{-ms -flex-align:center;-webkit-align-items:center;align-items:center};--layout-end:{ -ms-flex-align:end;-webkit-align-items:flex-end;align-items:flex-end};--layout-b aseline:{-ms-flex-align:baseline;-webkit-align-items:baseline;align-items:baseli ne};--layout-start-justified:{-ms-flex-pack:start;-webkit-justify-content:flex-s tart;justify-content:flex-start};--layout-center-justified:{-ms-flex-pack:center ;-webkit-justify-content:center;justify-content:center};--layout-end-justified:{ -ms-flex-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end};--l ayout-around-justified:{-ms-flex-pack:distribute;-webkit-justify-content:space-a round;justify-content:space-around};--layout-justified:{-ms-flex-pack:justify;-w ebkit-justify-content:space-between;justify-content:space-between};--layout-cent er-center:{@apply(--layout-center);@apply(--layout-center-justified)};--layout-s elf-start:{-ms-align-self:flex-start;-webkit-align-self:flex-start;align-self:fl ex-start};--layout-self-center:{-ms-align-self:center;-webkit-align-self:center; align-self:center};--layout-self-end:{-ms-align-self:flex-end;-webkit-align-self :flex-end;align-self:flex-end};--layout-self-stretch:{-ms-align-self:stretch;-we bkit-align-self:stretch;align-self:stretch};--layout-self-baseline:{-ms-align-se lf:baseline;-webkit-align-self:baseline;align-self:baseline};--layout-start-alig ned:{-ms-flex-line-pack:start;-ms-align-content:flex-start;-webkit-align-content :flex-start;align-content:flex-start};--layout-end-aligned:{-ms-flex-line-pack:e nd;-ms-align-content:flex-end;-webkit-align-content:flex-end;align-content:flex- end};--layout-center-aligned:{-ms-flex-line-pack:center;-ms-align-content:center ;-webkit-align-content:center;align-content:center};--layout-between-aligned:{-m s-flex-line-pack:justify;-ms-align-content:space-between;-webkit-align-content:s pace-between;align-content:space-between};--layout-around-aligned:{-ms-flex-line -pack:distribute;-ms-align-content:space-around;-webkit-align-content:space-arou nd;align-content:space-around};--layout-block:{display:block};--layout-invisible :{visibility:hidden!important};--layout-relative:{position:relative};--layout-fi t:{position:absolute;top:0;right:0;bottom:0;left:0};--layout-scroll:{-webkit-ove rflow-scrolling:touch;overflow:auto};--layout-fullbleed:{margin:0;height:100vh}; --layout-fixed-top:{position:fixed;top:0;left:0;right:0};--layout-fixed-right:{p osition:fixed;top:0;right:0;bottom:0};--layout-fixed-bottom:{position:fixed;righ t:0;bottom:0;left:0};--layout-fixed-left:{position:fixed;top:0;bottom:0;left:0}; }</style> <dom-module id="app-drawer" assetpath="/res/imp/bower_components/app-l ayout/app-drawer/"> <template> <style>:host{position:fixed;top:-120px;right:0;bo ttom:-120px;left:0;visibility:hidden;transition-property:visibility}:host([opene d]){visibility:visible}:host([persistent]){width:var(--app-drawer-width,256px)}: host([persistent][position=left]){right:auto}:host([persistent][position=right]) {left:auto}#contentContainer{position:absolute;top:0;bottom:0;left:0;width:var(- -app-drawer-width,256px);padding:120px 0;transition-property:-webkit-transform;t ransition-property:transform;-webkit-transform:translate3d(-100%,0,0);transform: translate3d(-100%,0,0);background-color:#FFF;@apply(--app-drawer-content-contain er)}:host([position=right])>#contentContainer{right:0;left:auto;-webkit-transfor m:translate3d(100%,0,0);transform:translate3d(100%,0,0)}:host([swipe-open])>#con tentContainer::after{position:fixed;top:0;bottom:0;left:100%;visibility:visible; width:20px;content:''}:host([swipe-open][position=right])>#contentContainer::aft er{right:100%;left:auto}:host([opened])>#contentContainer{-webkit-transform:tran slate3d(0,0,0);transform:translate3d(0,0,0)}#scrim{position:absolute;top:0;right :0;bottom:0;left:0;transition-property:opacity;-webkit-transform:translateZ(0);t ransform:translateZ(0);opacity:0;background:var(--app-drawer-scrim-background,rg ba(0,0,0,.5))}:host([opened])>#scrim{opacity:1}:host([opened][persistent])>#scri m{visibility:hidden;opacity:0}</style> <div id="scrim" on-tap="close"></div> <di v id="contentContainer"> <content></content> </div> </template> <script>Polymer( {is:"app-drawer",properties:{opened:{type:Boolean,value:!1,notify:!0,reflectToAt tribute:!0},persistent:{type:Boolean,value:!1,reflectToAttribute:!0},transitionD uration:{type:Number,value:200},align:{type:String,value:"left"},position:{type: String,readOnly:!0,reflectToAttribute:!0},swipeOpen:{type:Boolean,value:!1,refle ctToAttribute:!0},noFocusTrap:{type:Boolean,value:!1}},observers:["resetLayout(p osition, isAttached)","_resetPosition(align, isAttached)","_styleTransitionDurat ion(transitionDuration)","_openedPersistentChanged(opened, persistent)"],_transl ateOffset:0,_trackDetails:null,_drawerState:0,_boundEscKeydownHandler:null,_firs tTabStop:null,_lastTabStop:null,attached:function(){this._styleTransitionDuratio n(0),Polymer.RenderStatus.afterNextRender(this,function(){this._styleTransitionD uration(this.transitionDuration),this._boundEscKeydownHandler=this._escKeydownHa ndler.bind(this),this._resetDrawerState(),this.$.scrim.addEventListener("transit ionend",this._transitionend.bind(this)),this.$.contentContainer.addEventListener ("transitionend",this._transitionend.bind(this)),this.addEventListener("keydown" ,this._tabKeydownHandler.bind(this)),this.listen(this,"track","_track"),this.set ScrollDirection("y")}),this.fire("app-drawer-attached")},detached:function(){doc ument.removeEventListener("keydown",this._boundEscKeydownHandler)},open:function (){this.opened=!0},close:function(){this.opened=!1},toggle:function(){this.opene d=!this.opened},getWidth:function(){return this.$.contentContainer.offsetWidth}, resetLayout:function(){this.fire("app-drawer-reset-layout")},_isRTL:function(){r eturn"rtl"===window.getComputedStyle(this).direction},_resetPosition:function(){ switch(this.align){case"start":return void this._setPosition(this._isRTL()?"righ t":"left");case"end":return void this._setPosition(this._isRTL()?"left":"right") }this._setPosition(this.align)},_escKeydownHandler:function(t){var i=27;t.keyCod e===i&&(t.preventDefault(),this.close())},_track:function(t){if(!this.persistent )switch(t.preventDefault(),t.detail.state){case"start":this._trackStart(t);break ;case"track":this._trackMove(t);break;case"end":this._trackEnd(t)}},_trackStart: function(t){this._drawerState=this._DRAWER_STATE.TRACKING,this._styleTransitionD uration(0),this.style.visibility="visible";var i=this.$.contentContainer.getBoun dingClientRect();"left"===this.position?this._translateOffset=i.left:this._trans lateOffset=i.right-window.innerWidth,this._trackDetails=[]},_trackMove:function( t){this._translateDrawer(t.detail.dx+this._translateOffset),this._trackDetails.p ush({dx:t.detail.dx,timeStamp:Date.now()})},_trackEnd:function(t){var i=t.detail .dx+this._translateOffset,e=this.getWidth(),n="left"===this.position,s=n?i>=0||i <=-e:i<=0||i>=e;if(!s){var a=this._trackDetails;if(this._trackDetails=null,this. _flingDrawer(t,a),this._drawerState===this._DRAWER_STATE.FLINGING)return}var r=e /2;t.detail.dx<-r?this.opened="right"===this.position:t.detail.dx>r&&(this.opene d="left"===this.position),s&&this._resetDrawerState(),this._styleTransitionDurat ion(this.transitionDuration),this._resetDrawerTranslate(),this.style.visibility= ""},_calculateVelocity:function(t,i){for(var e,n=Date.now(),s=n-100,a=0,r=i.leng th-1;a<=r;){var o=a+r>>1,h=i[o];h.timeStamp>=s?(e=h,r=o-1):a=o+1}if(e){var l=t.d etail.dx-e.dx,d=n-e.timeStamp||1;return l/d}return 0},_flingDrawer:function(t,i) {var e=this._calculateVelocity(t,i);if(!(Math.abs(e)<this._MIN_FLING_THRESHOLD)) {this._drawerState=this._DRAWER_STATE.FLINGING;var n,s=t.detail.dx+this._transla teOffset,a=this.getWidth(),r="left"===this.position,o=e>0,h=!o&&r,l=o&&!r;n=h?-( s+a):l?a-s:-s,o?(e=Math.max(e,this._MIN_TRANSITION_VELOCITY),this.opened="left"= ==this.position):(e=Math.min(e,-this._MIN_TRANSITION_VELOCITY),this.opened="righ t"===this.position),this._styleTransitionDuration(this._FLING_INITIAL_SLOPE*n/e) ,this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION),this._resetDra werTranslate()}},_transitionend:function(){this._drawerState===this._DRAWER_STAT E.FLINGING&&(this._styleTransitionDuration(this.transitionDuration),this._styleT ransitionTimingFunction(""),this.style.visibility=""),this._resetDrawerState()}, _styleTransitionDuration:function(t){this.style.transitionDuration=t+"ms",this.$ .contentContainer.style.transitionDuration=t+"ms",this.$.scrim.style.transitionD uration=t+"ms"},_styleTransitionTimingFunction:function(t){this.$.contentContain er.style.transitionTimingFunction=t,this.$.scrim.style.transitionTimingFunction= t},_translateDrawer:function(t){var i=this.getWidth();"left"===this.position?(t= Math.max(-i,Math.min(t,0)),this.$.scrim.style.opacity=1+t/i):(t=Math.max(0,Math. min(t,i)),this.$.scrim.style.opacity=1-t/i),this.translate3d(t+"px","0","0",this .$.contentContainer)},_resetDrawerTranslate:function(){this.$.scrim.style.opacit y="",this.transform("",this.$.contentContainer)},_resetDrawerState:function(){va r t=this._drawerState;this.opened?this._drawerState=this.persistent?this._DRAWER _STATE.OPENED_PERSISTENT:this._DRAWER_STATE.OPENED:this._drawerState=this._DRAWE R_STATE.CLOSED,t!==this._drawerState&&(this._drawerState===this._DRAWER_STATE.OP ENED?(this._setKeyboardFocusTrap(),document.addEventListener("keydown",this._bou ndEscKeydownHandler),document.body.style.overflow="hidden"):(document.removeEven tListener("keydown",this._boundEscKeydownHandler),document.body.style.overflow=" "),t!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},_setKeybo ardFocusTrap:function(){if(!this.noFocusTrap){var t=['a[href]:not([tabindex="-1" ])','area[href]:not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"] )','select:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([ tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','iframe:not([tabi ndex="-1"])','[tabindex]:not([tabindex="-1"])','[contentEditable=true]:not([tabi ndex="-1"])'].join(","),i=Polymer.dom(this).querySelectorAll(t);i.length>0?(this ._firstTabStop=i[0],this._lastTabStop=i[i.length-1]):(this._firstTabStop=null,th is._lastTabStop=null);var e=this.getAttribute("tabindex");e&&parseInt(e,10)>-1?t his.focus():this._firstTabStop&&this._firstTabStop.focus()}},_tabKeydownHandler: function(t){if(!this.noFocusTrap){var i=9;this._drawerState===this._DRAWER_STATE .OPENED&&t.keyCode===i&&(t.shiftKey?this._firstTabStop&&Polymer.dom(t).localTarg et===this._firstTabStop&&(t.preventDefault(),this._lastTabStop.focus()):this._la stTabStop&&Polymer.dom(t).localTarget===this._lastTabStop&&(t.preventDefault(),t his._firstTabStop.focus()))}},_openedPersistentChanged:function(){0===this.trans itionDuration&&this._resetDrawerState()},_MIN_FLING_THRESHOLD:.2,_MIN_TRANSITION _VELOCITY:1.2,_FLING_TIMING_FUNCTION:"cubic-bezier(0.667, 1, 0.667, 1)",_FLING_I NITIAL_SLOPE:1.5,_DRAWER_STATE:{INIT:0,OPENED:1,OPENED_PERSISTENT:2,CLOSED:3,TRA CKING:4,FLINGING:5}})</script> </dom-module> <script>Polymer({is:"iron-media-que ry",properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query :{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHand ler:{value:function(){return this.queryHandler.bind(this)}},_mq:{value:null}},at tached:function(){this.style.display="none",this.queryChanged()},detached:functi on(){this._remove()},_add:function(){this._mq&&this._mq.addListener(this._boundM QHandler)},_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHan dler),this._mq=null},queryChanged:function(){this._remove();var e=this.query;e&& (this.full||"("===e[0]||(e="("+e+")"),this._mq=window.matchMedia(e),this._add(), this.queryHandler(this._mq))},queryHandler:function(e){this._setQueryMatches(e.m atches)}})</script> <script>Polymer.IronResizableBehavior={properties:{_parentRe sizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{t ype:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRe questResizeNotifications"},created:function(){this._interestedResizables=[],this ._boundNotifyResize=this.notifyResize.bind(this)},attached:function(){this.fire( "iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0}),t his._parentResizable||(window.addEventListener("resize",this._boundNotifyResize) ,this.notifyResize())},detached:function(){this._parentResizable?this._parentRes izable.stopResizeNotificationsFor(this):window.removeEventListener("resize",this ._boundNotifyResize),this._parentResizable=null},notifyResize:function(){this.is Attached&&(this._interestedResizables.forEach(function(e){this.resizerShouldNoti fy(e)&&this._notifyDescendant(e)},this),this._fireResize())},assignParentResizab le:function(e){this._parentResizable=e},stopResizeNotificationsFor:function(e){v ar i=this._interestedResizables.indexOf(e);i>-1&&(this._interestedResizables.spl ice(i,1),this.unlisten(e,"iron-resize","_onDescendantIronResize"))},resizerShoul dNotify:function(e){return!0},_onDescendantIronResize:function(e){return this._n otifyingDescendant?void e.stopPropagation():void(Polymer.Settings.useShadow||thi s._fireResize())},_fireResize:function(){this.fire("iron-resize",null,{node:this ,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var i=e.path?e.path [0]:e.target;i!==this&&(this._interestedResizables.indexOf(i)===-1&&(this._inter estedResizables.push(i),this.listen(i,"iron-resize","_onDescendantIronResize")), i.assignParentResizable(this),this._notifyDescendant(i),e.stopPropagation())},_p arentResizableChanged:function(e){e&&window.removeEventListener("resize",this._b oundNotifyResize)},_notifyDescendant:function(e){this.isAttached&&(this._notifyi ngDescendant=!0,e.notifyResize(),this._notifyingDescendant=!1)}}</script> <dom-m odule id="app-drawer-layout" assetpath="/res/imp/bower_components/app-layout/app -drawer-layout/"> <template> <style>:host{display:block}:host([fullbleed]){@appl y(--layout-fit)}#contentContainer{position:relative;height:100%;transition:var(- -app-drawer-layout-content-transition,none)}#contentContainer:not(.narrow)>::con tent [drawer-toggle]{display:none}</style> <div id="contentContainer"> <content select=":not(app-drawer)"></content> </div> <content id="drawerContent" select=" app-drawer"></content> <iron-media-query query="[[_computeMediaQuery(forceNarrow , responsiveWidth)]]" on-query-matches-changed="_onQueryMatchesChanged"></iron-m edia-query> </template> <script>Polymer({is:"app-drawer-layout",behaviors:[Polym er.IronResizableBehavior],properties:{forceNarrow:{type:Boolean,value:!1},respon siveWidth:{type:String,value:"640px"},narrow:{type:Boolean,readOnly:!0,notify:!0 },openedWhenNarrow:{type:Boolean,value:!1}},listeners:{tap:"_tapHandler","app-dr awer-attached":"_resetDrawerState","app-drawer-reset-layout":"resetLayout","iron -resize":"resetLayout"},observers:["resetLayout(narrow, isAttached)","_narrowCha nged(narrow, isAttached)"],get drawer(){return Polymer.dom(this.$.drawerContent) .getDistributedNodes()[0]},_tapHandler:function(e){var t=Polymer.dom(e).localTar get;if(t&&t.hasAttribute("drawer-toggle")){var r=this.drawer;r&&!r.persistent&&r .toggle()}},resetLayout:function(){this.debounce("_resetLayout",function(){var e =this.drawer,t=this.$.contentContainer;if(this.narrow||!e)t.style.marginLeft="", t.style.marginRight="";else{var r=e.getWidth();"right"==e.position?(t.style.marg inLeft="",t.style.marginRight=r+"px"):(t.style.marginLeft=r+"px",t.style.marginR ight="")}})},_resetDrawerState:function(){this.debounce("_resetDrawerState",func tion(){var e=this.drawer;e&&(this.narrow?(e.opened=this.openedWhenNarrow,e.persi stent=!1):e.opened=e.persistent=!0)})},_narrowChanged:function(e){this.toggleCla ss("narrow",e,this.$.contentContainer),this._resetDrawerState(),this.notifyResiz e()},_onQueryMatchesChanged:function(e){this._setNarrow(e.detail.value)},_comput eMediaQuery:function(e,t){return e?"(min-width: 0px)":"(max-width: "+t+")"}})</s cript> </dom-module> <dom-module id="app-grid-style" assetpath="/res/imp/bower_c omponents/app-layout/app-grid/"> <template> <style>:host{--app-grid-expandible-i tem:{-webkit-flex-basis:calc((100% - .1px)/ var(--app-grid-columns,1) * var(--ap p-grid-expandible-item-columns,1) - var(--app-grid-gutter,0px))!important;flex-b asis:calc((100% - .1px)/ var(--app-grid-columns,1) * var(--app-grid-expandible-i tem-columns,1) - var(--app-grid-gutter,0px))!important;max-width:calc((100% - .1 px)/ var(--app-grid-columns,1) * var(--app-grid-expandible-item-columns,1) - var (--app-grid-gutter,0px))!important};}.app-grid{display:-ms-flexbox;display:-webk it-flex;display:flex;-ms-flex-direction:row;-webkit-flex-direction:row;flex-dire ction:row;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap;padding-top:v ar(--app-grid-gutter,0);padding-left:var(--app-grid-gutter,0);box-sizing:border- box}.app-grid>*{-ms-flex:1 1 100%;-webkit-flex:1;flex:1;-webkit-flex-basis:calc( (100% - .1px - (var(--app-grid-gutter,0px) * var(--app-grid-columns,1)))/ var(-- app-grid-columns,1));flex-basis:calc((100% - .1px - (var(--app-grid-gutter,0px) * var(--app-grid-columns,1)))/ var(--app-grid-columns,1));max-width:calc((100% - .1px - (var(--app-grid-gutter,0px) * var(--app-grid-columns,1)))/ var(--app-gri d-columns,1));margin-bottom:var(--app-grid-gutter,0);margin-right:var(--app-grid -gutter,0);height:var(--app-grid-item-height);box-sizing:border-box}.app-grid[ha s-aspect-ratio]>*{position:relative}.app-grid[has-aspect-ratio]>::before{display :block;content:"";padding-top:var(--app-grid-item-height,100%)}.app-grid[has-asp ect-ratio]>*>*{position:absolute;top:0;right:0;bottom:0;left:0}</style> </templa te> </dom-module> <script>Polymer.IronScrollTargetBehavior={properties:{scrollTa rget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},obse rvers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0, _scrollTargetChanged:function(t,l){this._oldScrollTarget&&(this._toggleScrollLis tener(!1,this._oldScrollTarget),this._oldScrollTarget=null),l&&("document"===t?t his.scrollTarget=this._doc:"string"==typeof t?this.scrollTarget=this.domHost?thi s.domHost.$[t]:Polymer.dom(this.ownerDocument).querySelector("#"+t):this._isVali dScrollTarget()&&(this._boundScrollHandler=this._boundScrollHandler||this._scrol lHandler.bind(this),this._oldScrollTarget=t,this._toggleScrollListener(this._sho uldHaveListener,t)))},_scrollHandler:function(){},get _defaultScrollTarget(){ret urn this._doc},get _doc(){return this.ownerDocument.documentElement},get _scroll Top(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pa geYOffset:this.scrollTarget.scrollTop:0},get _scrollLeft(){return this._isValidS crollTarget()?this.scrollTarget===this._doc?window.pageXOffset:this.scrollTarget .scrollLeft:0},set _scrollTop(t){this.scrollTarget===this._doc?window.scrollTo(w indow.pageXOffset,t):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=t )},set _scrollLeft(t){this.scrollTarget===this._doc?window.scrollTo(t,window.pag eYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=t)},scroll: function(t,l){this.scrollTarget===this._doc?window.scrollTo(t,l):this._isValidSc rollTarget()&&(this.scrollTarget.scrollLeft=t,this.scrollTarget.scrollTop=l)},ge t _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===th is._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeig ht(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.inn erHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:function(){retur n this.scrollTarget instanceof HTMLElement},_toggleScrollListener:function(t,l){ if(this._boundScrollHandler){var e=l===this._doc?window:l;t?e.addEventListener(" scroll",this._boundScrollHandler):e.removeEventListener("scroll",this._boundScro llHandler)}},toggleScrollListener:function(t){this._shouldHaveListener=t,this._t oggleScrollListener(t,this.scrollTarget)}}</script> <script>Polymer.AppScrollEff ectsBehavior=[Polymer.IronScrollTargetBehavior,{properties:{effects:{type:String },effectsConfig:{type:Object,value:function(){return{}}},disabled:{type:Boolean, reflectToAttribute:!0,value:!1},threshold:{type:Number,value:0},thresholdTrigger ed:{type:Boolean,notify:!0,readOnly:!0,reflectToAttribute:!0}},observers:["_effe ctsChanged(effects, effectsConfig, isAttached)"],_updateScrollState:function(){} ,isOnScreen:function(){return!1},isContentBelow:function(){return!1},_effectsRun Fn:null,_effects:null,get _clampedScrollTop(){return Math.max(0,this._scrollTop) },detached:function(){this._tearDownEffects()},createEffect:function(t,e){var f= Polymer.AppLayout._scrollEffects[t];if(!f)throw new ReferenceError(this._getUnde finedMsg(t));var n=this._boundEffect(f,e||{});return n.setUp(),n},_effectsChange d:function(t,e,f){this._tearDownEffects(),""!==t&&f&&(t.split(" ").forEach(funct ion(t){var f;""!==t&&((f=Polymer.AppLayout._scrollEffects[t])?this._effects.push (this._boundEffect(f,e[t])):this._warn(this._logf("_effectsChanged",this._getUnd efinedMsg(t))))},this),this._setUpEffect())},_layoutIfDirty:function(){return th is.offsetWidth},_boundEffect:function(t,e){e=e||{};var f=parseFloat(e.startsAt|| 0),n=parseFloat(e.endsAt||1),s=n-f,i=function(){},r=0===f&&1===n?t.run:function( e,n){t.run.call(this,Math.max(0,(e-f)/s),n)};return{setUp:t.setUp?t.setUp.bind(t his,e):i,run:t.run?r.bind(this):i,tearDown:t.tearDown?t.tearDown.bind(this):i}}, _setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],t his._effects.forEach(function(t){t.setUp()!==!1&&this._effectsRunFn.push(t.run)} ,this))},_tearDownEffects:function(){this._effects&&this._effects.forEach(functi on(t){t.tearDown()}),this._effectsRunFn=[],this._effects=[]},_runEffects:functio n(t,e){this._effectsRunFn&&this._effectsRunFn.forEach(function(f){f(t,e)})},_scr ollHandler:function(){if(!this.disabled){var t=this._clampedScrollTop;this._upda teScrollState(t),this.threshold>0&&this._setThresholdTriggered(t>=this.threshold )}},_getDOMRef:function(t){this._warn(this._logf("_getDOMRef","`"+t+"` is undefi ned"))},_getUndefinedMsg:function(t){return"Scroll effect `"+t+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+t+".html ?"}}]< /script> <dom-module id="app-header" assetpath="/res/imp/bower_components/app-la yout/app-header/"> <template> <style>:host{position:relative;display:block;trans ition-timing-function:linear;transition-property:-webkit-transform;transition-pr operty:transform}:host::after{position:absolute;right:0;bottom:-5px;left:0;width :100%;height:5px;content:"";transition:opacity .4s;pointer-events:none;opacity:0 ;box-shadow:inset 0 5px 6px -3px rgba(0,0,0,.4);will-change:opacity;@apply(--app -header-shadow)}:host([shadow])::after{opacity:1}::content [condensed-title],::c ontent [main-title]{-webkit-transform-origin:left top;transform-origin:left top; white-space:nowrap}::content [condensed-title]{opacity:0}#background{@apply(--la yout-fit);overflow:hidden}#backgroundFrontLayer,#backgroundRearLayer{@apply(--la yout-fit);height:100%;pointer-events:none;background-size:cover}#backgroundFront Layer{@apply(--app-header-background-front-layer)}#backgroundRearLayer{opacity:0 ;@apply(--app-header-background-rear-layer)}#contentContainer{position:relative; width:100%;height:100%}:host([disabled]),:host([disabled]) #backgroundFrontLayer ,:host([disabled]) #backgroundRearLayer,:host([disabled]) ::content>[sticky],:ho st([disabled]) ::content>app-toolbar:first-of-type,:host([disabled])::after,:hos t-context(.app-layout-silent-scroll),:host-context(.app-layout-silent-scroll) #b ackgroundFrontLayer,:host-context(.app-layout-silent-scroll) #backgroundRearLaye r,:host-context(.app-layout-silent-scroll) ::content>[sticky],:host-context(.app -layout-silent-scroll) ::content>app-toolbar:first-of-type,:host-context(.app-la yout-silent-scroll)::after{transition:none!important}</style> <div id="contentCo ntainer"> <content id="content"></content> </div> </template> <script>Polymer({i s:"app-header",behaviors:[Polymer.AppScrollEffectsBehavior,Polymer.IronResizable Behavior],properties:{condenses:{type:Boolean,value:!1},fixed:{type:Boolean,valu e:!1},reveals:{type:Boolean,value:!1},shadow:{type:Boolean,reflectToAttribute:!0 ,value:!1}},observers:["resetLayout(isAttached, condenses, fixed)"],listeners:{" iron-resize":"_resizeHandler"},_height:0,_dHeight:0,_stickyElTop:0,_stickyEl:nul l,_top:0,_progress:0,_wasScrollingDown:!1,_initScrollTop:0,_initTimestamp:0,_las tTimestamp:0,_lastScrollTop:0,get _maxHeaderTop(){return this.fixed?this._dHeigh t:this._height+5},_getStickyEl:function(){for(var t,e=Polymer.dom(this.$.content ).getDistributedNodes(),i=0;i<e.length;i++)if(e[i].nodeType===Node.ELEMENT_NODE) {var s=e[i];if(s.hasAttribute("sticky")){t=s;break}t||(t=s)}return t},resetLayou t:function(){this.fire("app-header-reset-layout"),this.debounce("_resetLayout",f unction(){if(0!==this.offsetWidth||0!==this.offsetHeight){var t=this._clampedScr ollTop,e=0===this._height||0===t,i=this.disabled;this._height=this.offsetHeight, this._stickyEl=this._getStickyEl(),this.disabled=!0,e||this._updateScrollState(0 ,!0),this._mayMove()?this._dHeight=this._stickyEl?this._height-this._stickyEl.of fsetHeight:0:this._dHeight=0,this._stickyElTop=this._stickyEl?this._stickyEl.off setTop:0,this._setUpEffect(),e?this._updateScrollState(t,!0):(this._updateScroll State(this._lastScrollTop,!0),this._layoutIfDirty()),this.disabled=i}})},_update ScrollState:function(t,e){if(0!==this._height){var i=0,s=0,o=this._top,r=(this._ lastScrollTop,this._maxHeaderTop),h=t-this._lastScrollTop,n=Math.abs(h),a=t>this ._lastScrollTop,l=Date.now();if(this._mayMove()&&(s=this._clamp(this.reveals?o+h :t,0,r)),t>=this._dHeight&&(s=this.condenses&&!this.fixed?Math.max(this._dHeight ,s):s,this.style.transitionDuration="0ms"),this.reveals&&!this.disabled&&n<100&& ((l-this._initTimestamp>300||this._wasScrollingDown!==a)&&(this._initScrollTop=t ,this._initTimestamp=l),t>=r))if(Math.abs(this._initScrollTop-t)>30||n>10){a&&t> =r?s=r:!a&&t>=this._dHeight&&(s=this.condenses&&!this.fixed?this._dHeight:0);var _=h/(l-this._lastTimestamp);this.style.transitionDuration=this._clamp((s-o)/_,0 ,300)+"ms"}else s=this._top;i=0===this._dHeight?t>0?1:0:s/this._dHeight,e||(this ._lastScrollTop=t,this._top=s,this._wasScrollingDown=a,this._lastTimestamp=l),(e ||i!==this._progress||o!==s||0===t)&&(this._progress=i,this._runEffects(i,s),thi s._transformHeader(s))}},_mayMove:function(){return this.condenses||!this.fixed} ,willCondense:function(){return this._dHeight>0&&this.condenses},isOnScreen:func tion(){return 0!==this._height&&this._top<this._height},isContentBelow:function( ){return 0===this._top?this._clampedScrollTop>0:this._clampedScrollTop-this._max HeaderTop>=0},_transformHeader:function(t){this.translate3d(0,-t+"px",0),this._s tickyEl&&this.condenses&&t>=this._stickyElTop&&this.translate3d(0,Math.min(t,thi s._dHeight)-this._stickyElTop+"px",0,this._stickyEl)},_resizeHandler:function(){ this.resetLayout()},_clamp:function(t,e,i){return Math.min(i,Math.max(e,t))},_en sureBgContainers:function(){this._bgContainer||(this._bgContainer=document.creat eElement("div"),this._bgContainer.id="background",this._bgRear=document.createEl ement("div"),this._bgRear.id="backgroundRearLayer",this._bgContainer.appendChild (this._bgRear),this._bgFront=document.createElement("div"),this._bgFront.id="bac kgroundFrontLayer",this._bgContainer.appendChild(this._bgFront),Polymer.dom(this .root).insertBefore(this._bgContainer,this.$.contentContainer))},_getDOMRef:func tion(t){switch(t){case"backgroundFrontLayer":return this._ensureBgContainers(),t his._bgFront;case"backgroundRearLayer":return this._ensureBgContainers(),this._b gRear;case"background":return this._ensureBgContainers(),this._bgContainer;case" mainTitle":return Polymer.dom(this).querySelector("[main-title]");case"condensed Title":return Polymer.dom(this).querySelector("[condensed-title]")}return null}, getScrollState:function(){return{progress:this._progress,top:this._top}}})</scri pt> </dom-module> <dom-module id="app-header-layout" assetpath="/res/imp/bower_c omponents/app-layout/app-header-layout/"> <template> <style>:host{display:block; position:relative;z-index:0}:host>::content>app-header{@apply(--layout-fixed-top );z-index:1}:host([has-scrolling-region]){height:100%}:host([has-scrolling-regio n])>::content>app-header{position:absolute}:host([has-scrolling-region])>#conten tContainer{@apply(--layout-fit);overflow-y:auto;-webkit-overflow-scrolling:touch }:host([fullbleed]){@apply(--layout-vertical);@apply(--layout-fit)}:host([fullbl eed])>#contentContainer{@apply(--layout-vertical);@apply(--layout-flex)}#content Container{position:relative;z-index:0}</style> <content id="header" select="app- header"></content> <div id="contentContainer"> <content></content> </div> </temp late> <script>Polymer({is:"app-header-layout",behaviors:[Polymer.IronResizableBe havior],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute :!0}},listeners:{"iron-resize":"_resizeHandler","app-header-reset-layout":"reset Layout"},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){ return Polymer.dom(this.$.header).getDistributedNodes()[0]},resetLayout:function (){this._updateScroller(),this.debounce("_resetLayout",this._updateContentPositi on)},_updateContentPosition:function(){var e=this.header;if(this.isAttached&&e){ var t=e.offsetHeight;if(this.hasScrollingRegion)e.style.left="",e.style.right="" ;else{var i=this.getBoundingClientRect(),o=document.documentElement.clientWidth- i.right;e.style.left=i.left+"px",e.style.right=o+"px"}var n=this.$.contentContai ner.style;e.fixed&&!e.willCondense()&&this.hasScrollingRegion?(n.marginTop=t+"px ",n.paddingTop=""):(n.paddingTop=t+"px",n.marginTop="")}},_updateScroller:functi on(){if(this.isAttached){var e=this.header;e&&(e.scrollTarget=this.hasScrollingR egion?this.$.contentContainer:this.ownerDocument.documentElement)}},_resizeHandl er:function(){this.resetLayout()}})</script> </dom-module> <dom-module id="app-s crollpos-control" assetpath="/res/imp/bower_components/app-layout/app-scrollpos- control/"> <script>Polymer({is:"app-scrollpos-control",behaviors:[Polymer.IronSc rollTargetBehavior],properties:{selected:{type:String,observer:"_selectedChanged "},reset:{type:Boolean,value:!1}},observers:["_updateScrollPos(selected, reset)" ],created:function(){this._scrollposMap={}},_selectedChanged:function(e,s){null! =s&&(this._scrollposMap[s]={x:this._scrollLeft,y:this._scrollTop})},_updateScrol lPos:function(e,s){this.debounce("_updateScrollPos",function(){var e=this._scrol lposMap[this.selected];null==e||this.reset?this.scroll(0,0):this.scroll(e.x,e.y) })}})</script> </dom-module> <dom-module id="app-toolbar" assetpath="/res/imp/bo wer_components/app-layout/app-toolbar/"> <template> <style>:host{@apply(--layout -horizontal);@apply(--layout-center);position:relative;height:64px;padding:0 16p x;pointer-events:none;font-size:var(--app-toolbar-font-size,20px)}::content>*{po inter-events:auto}::content>paper-icon-button{font-size:0}::content>[condensed-t itle],::content>[main-title]{pointer-events:none;@apply(--layout-flex)}::content >[bottom-item]{position:absolute;right:0;bottom:0;left:0}::content>[top-item]{po sition:absolute;top:0;right:0;left:0}::content>[spacer]{margin-left:64px}</style > <content></content> </template> <script>Polymer({is:"app-toolbar"})</script> < /dom-module> <dom-module id="app-box" assetpath="/res/imp/bower_components/app-l ayout/app-box/"> <template> <style>:host{position:relative;display:block}#backgr ound{@apply(--layout-fit);overflow:hidden;height:100%}#backgroundFrontLayer{min- height:100%;pointer-events:none;background-size:cover;@apply(--app-box-backgroun d-front-layer)}#contentContainer{position:relative;width:100%;height:100%}:host( [disabled]),:host([disabled]) #backgroundFrontLayer{transition:none!important}</ style> <div id="background"> <div id="backgroundFrontLayer"> <content select="[b ackground]"></content> </div> </div> <div id="contentContainer"> <content id="co ntent"></content> </div> </template> <script>Polymer({is:"app-box",behaviors:[Po lymer.AppScrollEffectsBehavior,Polymer.IronResizableBehavior],listeners:{"iron-r esize":"_resizeHandler"},_progress:0,attached:function(){this.resetLayout()},res etLayout:function(){this.debounce("_resetLayout",function(){if(0!==this.offsetWi dth||0!==this.offsetHeight){var e=this._clampedScrollTop,t=this.disabled;this.di sabled=!0,this._elementTop=this._getElementTop(),this._elementHeight=this.offset Height,this._cachedScrollTargetHeight=this._scrollTargetHeight,this._setUpEffect (),this._updateScrollState(e),this.disabled=t}},1)},_getElementTop:function(){fo r(var e=this,t=0;e&&e!==this.scrollTarget;)t+=e.offsetTop,e=e.offsetParent;retur n t},_updateScrollState:function(e){if(this.isOnScreen()){var t=this._elementTop -e;this._progress=1-(t+this._elementHeight)/this._cachedScrollTargetHeight,this. _runEffects(this._progress,e)}},isOnScreen:function(){return this._elementTop<th is._scrollTop+this._cachedScrollTargetHeight&&this._elementTop+this._elementHeig ht>this._scrollTop},_resizeHandler:function(){this.resetLayout()},_getDOMRef:fun ction(e){return"background"===e?this.$.background:"backgroundFrontLayer"===e?thi s.$.backgroundFrontLayer:void 0},getScrollState:function(){return{progress:this. _progress}}})</script> </dom-module> <dom-module id="iron-flex" assetpath="/res/ imp/bower_components/iron-flex-layout/"> <template> <style>.layout.horizontal,.l ayout.vertical{display:-ms-flexbox;display:-webkit-flex;display:flex}.layout.inl ine{display:-ms-inline-flexbox;display:-webkit-inline-flex;display:inline-flex}. layout.horizontal{-ms-flex-direction:row;-webkit-flex-direction:row;flex-directi on:row}.layout.vertical{-ms-flex-direction:column;-webkit-flex-direction:column; flex-direction:column}.layout.wrap{-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;fle x-wrap:wrap}.layout.center,.layout.center-center{-ms-flex-align:center;-webkit-a lign-items:center;align-items:center}.layout.center-center,.layout.center-justif ied{-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}. flex{-ms-flex:1 1 0px;-webkit-flex:1;flex:1;-webkit-flex-basis:0px;flex-basis:0p x}.flex-auto{-ms-flex:1 1 auto;-webkit-flex:1 1 auto;flex:1 1 auto}.flex-none{-m s-flex:none;-webkit-flex:none;flex:none}</style> </template> </dom-module> <dom- module id="iron-flex-reverse" assetpath="/res/imp/bower_components/iron-flex-lay out/"> <template> <style>.layout.horizontal-reverse,.layout.vertical-reverse{dis play:-ms-flexbox;display:-webkit-flex;display:flex}.layout.horizontal-reverse{-m s-flex-direction:row-reverse;-webkit-flex-direction:row-reverse;flex-direction:r ow-reverse}.layout.vertical-reverse{-ms-flex-direction:column-reverse;-webkit-fl ex-direction:column-reverse;flex-direction:column-reverse}.layout.wrap-reverse{- ms-flex-wrap:wrap-reverse;-webkit-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse} </style> </template> </dom-module> <dom-module id="iron-flex-alignment" assetpat h="/res/imp/bower_components/iron-flex-layout/"> <template> <style>.layout.start {-ms-flex-align:start;-webkit-align-items:flex-start;align-items:flex-start}.lay out.center,.layout.center-center{-ms-flex-align:center;-webkit-align-items:cente r;align-items:center}.layout.end{-ms-flex-align:end;-webkit-align-items:flex-end ;align-items:flex-end}.layout.baseline{-ms-flex-align:baseline;-webkit-align-ite ms:baseline;align-items:baseline}.layout.start-justified{-ms-flex-pack:start;-we bkit-justify-content:flex-start;justify-content:flex-start}.layout.center-center ,.layout.center-justified{-ms-flex-pack:center;-webkit-justify-content:center;ju stify-content:center}.layout.end-justified{-ms-flex-pack:end;-webkit-justify-con tent:flex-end;justify-content:flex-end}.layout.around-justified{-ms-flex-pack:di stribute;-webkit-justify-content:space-around;justify-content:space-around}.layo ut.justified{-ms-flex-pack:justify;-webkit-justify-content:space-between;justify -content:space-between}.self-start{-ms-align-self:flex-start;-webkit-align-self: flex-start;align-self:flex-start}.self-center{-ms-align-self:center;-webkit-alig n-self:center;align-self:center}.self-end{-ms-align-self:flex-end;-webkit-align- self:flex-end;align-self:flex-end}.self-stretch{-ms-align-self:stretch;-webkit-a lign-self:stretch;align-self:stretch}.self-baseline{-ms-align-self:baseline;-web kit-align-self:baseline;align-self:baseline}; .layout.start-aligned{-ms-flex-lin e-pack:start;-ms-align-content:flex-start;-webkit-align-content:flex-start;align -content:flex-start}.layout.end-aligned{-ms-flex-line-pack:end;-ms-align-content :flex-end;-webkit-align-content:flex-end;align-content:flex-end}.layout.center-a ligned{-ms-flex-line-pack:center;-ms-align-content:center;-webkit-align-content: center;align-content:center}.layout.between-aligned{-ms-flex-line-pack:justify;- ms-align-content:space-between;-webkit-align-content:space-between;align-content :space-between}.layout.around-aligned{-ms-flex-line-pack:distribute;-ms-align-co ntent:space-around;-webkit-align-content:space-around;align-content:space-around }</style> </template> </dom-module> <dom-module id="iron-flex-factors" assetpath ="/res/imp/bower_components/iron-flex-layout/"> <template> <style>.flex,.flex-1{ -ms-flex:1 1 0px;-webkit-flex:1;flex:1;-webkit-flex-basis:0px;flex-basis:0px}.fl ex-2{-ms-flex:2;-webkit-flex:2;flex:2}.flex-3{-ms-flex:3;-webkit-flex:3;flex:3}. flex-4{-ms-flex:4;-webkit-flex:4;flex:4}.flex-5{-ms-flex:5;-webkit-flex:5;flex:5 }.flex-6{-ms-flex:6;-webkit-flex:6;flex:6}.flex-7{-ms-flex:7;-webkit-flex:7;flex :7}.flex-8{-ms-flex:8;-webkit-flex:8;flex:8}.flex-9{-ms-flex:9;-webkit-flex:9;fl ex:9}.flex-10{-ms-flex:10;-webkit-flex:10;flex:10}.flex-11{-ms-flex:11;-webkit-f lex:11;flex:11}.flex-12{-ms-flex:12;-webkit-flex:12;flex:12}</style> </template> </dom-module> <dom-module id="iron-positioning" assetpath="/res/imp/bower_compo nents/iron-flex-layout/"> <template> <style>.block{display:block}[hidden]{displa y:none!important}.invisible{visibility:hidden!important}.relative{position:relat ive}.fit{position:absolute;top:0;right:0;bottom:0;left:0}body.fullbleed{margin:0 ;height:100vh}.scroll{-webkit-overflow-scrolling:touch;overflow:auto}.fixed-bott om,.fixed-left,.fixed-right,.fixed-top{position:fixed}.fixed-top{top:0;left:0;ri ght:0}.fixed-right{top:0;right:0;bottom:0}.fixed-bottom{right:0;bottom:0;left:0} .fixed-left{top:0;bottom:0;left:0}</style> </template> </dom-module> <script>!fu nction(){var e={},t={},i=null;Polymer.IronMeta=Polymer({is:"iron-meta",propertie s:{type:{type:String,value:"default",observer:"_typeChanged"},key:{type:String,o bserver:"_keyChanged"},value:{type:Object,notify:!0,observer:"_valueChanged"},se lf:{type:Boolean,observer:"_selfChanged"},list:{type:Array,notify:!0}},hostAttri butes:{hidden:!0},factoryImpl:function(e){if(e)for(var t in e)switch(t){case"typ e":case"key":case"value":this[t]=e[t]}},created:function(){this._metaDatas=e,thi s._metaArrays=t},_keyChanged:function(e,t){this._resetRegistration(t)},_valueCha nged:function(e){this._resetRegistration(this.key)},_selfChanged:function(e){e&& (this.value=this)},_typeChanged:function(i){this._unregisterKey(this.key),e[i]|| (e[i]={}),this._metaData=e[i],t[i]||(t[i]=[]),this.list=t[i],this._registerKeyVa lue(this.key,this.value)},byKey:function(e){return this._metaData&&this._metaDat a[e]},_resetRegistration:function(e){this._unregisterKey(e),this._registerKeyVal ue(this.key,this.value)},_unregisterKey:function(e){this._unregister(e,this._met aData,this.list)},_registerKeyValue:function(e,t){this._register(e,t,this._metaD ata,this.list)},_register:function(e,t,i,a){e&&i&&void 0!==t&&(i[e]=t,a.push(t)) },_unregister:function(e,t,i){if(e&&t&&e in t){var a=t[e];delete t[e],this.array Delete(i,a)}}}),Polymer.IronMeta.getIronMeta=function(){return null===i&&(i=new Polymer.IronMeta),i},Polymer.IronMetaQuery=Polymer({is:"iron-meta-query",propert ies:{type:{type:String,value:"default",observer:"_typeChanged"},key:{type:String ,observer:"_keyChanged"},value:{type:Object,notify:!0,readOnly:!0},list:{type:Ar ray,notify:!0}},factoryImpl:function(e){if(e)for(var t in e)switch(t){case"type" :case"key":this[t]=e[t]}},created:function(){this._metaDatas=e,this._metaArrays= t},_keyChanged:function(e){this._setValue(this._metaData&&this._metaData[e])},_t ypeChanged:function(i){this._metaData=e[i],this.list=t[i],this.key&&this._keyCha nged(this.key)},byKey:function(e){return this._metaData&&this._metaData[e]}})}() </script> <dom-module id="iron-icon" assetpath="/res/imp/bower_components/iron-i con/"> <template> <style>:host{@apply(--layout-inline);@apply(--layout-center-ce nter);position:relative;vertical-align:middle;fill:var(--iron-icon-fill-color,cu rrentcolor);stroke:var(--iron-icon-stroke-color,none);width:var(--iron-icon-widt h,24px);height:var(--iron-icon-height,24px);@apply(--iron-icon)}</style> </templ ate> <script>Polymer({is:"iron-icon",properties:{icon:{type:String,observer:"_ic onChanged"},theme:{type:String,observer:"_updateIcon"},src:{type:String,observer :"_srcChanged"},_meta:{value:Polymer.Base.create("iron-meta",{type:"iconset"}),o bserver:"_updateIcon"}},_DEFAULT_ICONSET:"icons",_iconChanged:function(i){var t= (i||"").split(":");this._iconName=t.pop(),this._iconsetName=t.pop()||this._DEFAU LT_ICONSET,this._updateIcon()},_srcChanged:function(i){this._updateIcon()},_uses Iconset:function(){return this.icon||!this.src},_updateIcon:function(){this._use sIconset()?(this._img&&this._img.parentNode&&Polymer.dom(this.root).removeChild( this._img),""===this._iconName?this._iconset&&this._iconset.removeIcon(this):thi s._iconsetName&&this._meta&&(this._iconset=this._meta.byKey(this._iconsetName),t his._iconset?(this._iconset.applyIcon(this,this._iconName,this.theme),this.unlis ten(window,"iron-iconset-added","_updateIcon")):this.listen(window,"iron-iconset -added","_updateIcon"))):(this._iconset&&this._iconset.removeIcon(this),this._im g||(this._img=document.createElement("img"),this._img.style.width="100%",this._i mg.style.height="100%",this._img.draggable=!1),this._img.src=this.src,Polymer.do m(this.root).appendChild(this._img))}})</script> </dom-module> <script>Polymer({ is:"iron-iconset-svg",properties:{name:{type:String,observer:"_nameChanged"},siz e:{type:Number,value:24}},attached:function(){this.style.display="none"},getIcon Names:function(){return this._icons=this._createIconMap(),Object.keys(this._icon s).map(function(e){return this.name+":"+e},this)},applyIcon:function(e,t){e=e.ro ot||e,this.removeIcon(e);var n=this._cloneIcon(t);if(n){var o=Polymer.dom(e);ret urn o.insertBefore(n,o.childNodes[0]),e._svgIcon=n}return null},removeIcon:funct ion(e){e._svgIcon&&(Polymer.dom(e).removeChild(e._svgIcon),e._svgIcon=null)},_na meChanged:function(){new Polymer.IronMeta({type:"iconset",key:this.name,value:th is}),this.async(function(){this.fire("iron-iconset-added",this,{node:window})})} ,_createIconMap:function(){var e=Object.create(null);return Polymer.dom(this).qu erySelectorAll("[id]").forEach(function(t){e[t.id]=t}),e},_cloneIcon:function(e) {return this._icons=this._icons||this._createIconMap(),this._prepareSvgClone(thi s._icons[e],this.size)},_prepareSvgClone:function(e,t){if(e){var n=e.cloneNode(! 0),o=document.createElementNS("http://www.w3.org/2000/svg","svg"),i=n.getAttribu te("viewBox")||"0 0 "+t+" "+t;return o.setAttribute("viewBox",i),o.setAttribute( "preserveAspectRatio","xMidYMid meet"),o.style.cssText="pointer-events: none; di splay: block; width: 100%; height: 100%;",o.appendChild(n).removeAttribute("id") ,o}return null}})</script> <iron-iconset-svg name="icons" size="24"> <svg><defs> <g id="3d-rotation"><path d="M7.52 21.48C4.25 19.94 1.91 16.76 1.55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81-1.33 1.32zm.89-6.52c-.19 0-.37-.03-.52-.08 -.16-.06-.29-.13-.4-.24-.11-.1-.2-.22-.26-.37-.06-.14-.09-.3-.09-.47h-1.3c0 .36. 07.68.21.95.14.27.33.5.56.69.24.18.51.32.82.41.3.1.62.15.96.15.37 0 .72-.05 1.03 -.15.32-.1.6-.25.83-.44s.42-.43.55-.72c.13-.29.2-.61.2-.97 0-.19-.02-.38-.07-.56 -.05-.18-.12-.35-.23-.51-.1-.16-.24-.3-.4-.43-.17-.13-.37-.23-.61-.31.2-.09.37-. 2.52-.33.15-.13.27-.27.37-.42.1-.15.17-.3.22-.46.05-.16.07-.32.07-.48 0-.36-.06- .68-.18-.96-.12-.28-.29-.51-.51-.69-.2-.19-.47-.33-.77-.43C9.1 8.05 8.76 8 8.39 8c-.36 0-.69.05-1 .16-.3.11-.57.26-.79.45-.21.19-.38.41-.51.67-.12.26-.18.54-.18 .85h1.3c0-.17.03-.32.09-.45s.14-.25.25-.34c.11-.09.23-.17.38-.22.15-.05.3-.08.48 -.08.4 0 .7.1.89.31.19.2.29.49.29.86 0 .18-.03.34-.08.49-.05.15-.14.27-.25.37-.1 1.1-.25.18-.41.24-.16.06-.36.09-.58.09H7.5v1.03h.77c.22 0 .42.02.6.07s.33.13.45. 23c.12.11.22.24.29.4.07.16.1.35.1.57 0 .41-.12.72-.35.93-.23.23-.55.33-.95.33zm8 .55-5.92c-.32-.33-.7-.59-1.14-.77-.43-.18-.92-.27-1.46-.27H12v8h2.3c.55 0 1.06-. 09 1.51-.27.45-.18.84-.43 1.16-.76.32-.33.57-.73.74-1.19.17-.47.26-.99.26-1.57v- .4c0-.58-.09-1.1-.26-1.57-.18-.47-.43-.87-.75-1.2zm-.39 3.16c0 .42-.05.79-.14 1. 13-.1.33-.24.62-.43.85-.19.23-.43.41-.71.53-.29.12-.62.18-.99.18h-.91V9.12h.97c. 72 0 1.27.23 1.64.69.38.46.57 1.12.57 1.99v.4zM12 0l-.66.03 3.81 3.81 1.33-1.33c 3.27 1.55 5.61 4.72 5.96 8.48h1.5C23.44 4.84 18.29 0 12 0z"></path></g> <g id="a ccessibility"><path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v 13h-2v-6h-2v6H9V9H3V7h18v2z"></path></g> <g id="accessible"><circle cx="12" cy=" 4" r="2"></circle><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17 -.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19-.26C10.76 7.11 10 8.04 10 9.09V15c0 1.1.9 2 2 2h5v5h2v-5.5c0-1.1-.9-2-2-2h-3v-3.45c1.29 1.07 3 .25 1.94 5 1.95zm-6.17 5c-.41 1.16-1.52 2-2.83 2-1.66 0-3-1.34-3-3 0-1.31.84-2.4 1 2-2.83V12.1c-2.28.46-4 2.48-4 4.9 0 2.76 2.24 5 5 5 2.42 0 4.44-1.72 4.9-4h-2. 07z"></path></g> <g id="account-balance"><path d="M4 10v7h3v-7H4zm6 0v7h3v-7h-3z M2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z"></path></g> <g id=" account-balance-wallet"><path d="M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0- 1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h9zm-9-2h10 V8H12v8zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path></g> <g id="account-box"><path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1H6v-1z"></path></g> <g id="account-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10- 10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2 c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94 -3.5 3.22-6 3.22z"></path></g> <g id="add"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2 v6h6v2z"></path></g> <g id="add-alert"><path d="M10.01 21.01c0 1.1.89 1.99 1.99 1.99s1.99-.89 1.99-1.99h-3.98zm8.87-4.19V11c0-3.25-2.25-5.97-5.29-6.69v-.72C13.5 9 2.71 12.88 2 12 2s-1.59.71-1.59 1.59v.72C7.37 5.03 5.12 7.75 5.12 11v5.82L3 18 .94V20h18v-1.06l-2.12-2.12zM16 13.01h-3v3h-2v-3H8V11h3V8h2v3h3v2.01z"></path></g > <g id="add-box"><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2 -.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"></path></g> <g id= "add-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"></path></g> <g id="add-circle-outlin e"><path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 1 0 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3 .59 8-8 8z"></path></g> <g id="add-shopping-cart"><path d="M11 9h2V6h3V4h-3V1h-2 v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0 -1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm-9.83-3.25l.03-.12.9-1.63h7.45c.7 5 0 1.41-.41 1.75-1.03l3.86-7.01L19.42 4h-.01l-1.1 2-2.76 5H8.53l-.13-.27L6.16 6 l-.95-2-.94-2H1v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2 H7.42c-.13 0-.25-.11-.25-.25z"></path></g> <g id="alarm"><path d="M22 5.72l-4.6- 3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM 12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path></g> <g id="alarm-add"><path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm1-11h-2v3H8v2h3v3h2v-3h3v-2h-3V9z"></path></g> <g id="alar m-off"><path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.1 9.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 1 1.16 6 12 6zm10-.28l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM2.92 2.29L1.65 3.57 2. 98 4.9l-1.11.93 1.42 1.42 1.11-.94.8.8C3.83 8.69 3 10.75 3 13c0 4.97 4.02 9 9 9 2.25 0 4.31-.83 5.89-2.2l2.2 2.2 1.27-1.27L3.89 3.27l-.97-.98zm13.55 16.1C15.26 19.39 13.7 20 12 20c-3.87 0-7-3.13-7-7 0-1.7.61-3.26 1.61-4.47l9.86 9.86zM8.02 3 .28L6.6 1.86l-.86.71 1.42 1.42.86-.71z"></path></g> <g id="alarm-on"><path d="M2 2 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm-1.46-5.47L8.41 12.4l-1. 06 1.06 3.18 3.18 6-6-1.06-1.06-4.93 4.95z"></path></g> <g id="all-out"><path d= "M16.21 4.16l4 4v-4zm4 12l-4 4h4zm-12 4l-4-4v4zm-4-12l4-4h-4zm12.95-.95c-2.73-2. 73-7.17-2.73-9.9 0s-2.73 7.17 0 9.9 7.17 2.73 9.9 0 2.73-7.16 0-9.9zm-1.1 8.8c-2 .13 2.13-5.57 2.13-7.7 0s-2.13-5.57 0-7.7 5.57-2.13 7.7 0 2.13 5.57 0 7.7z"></pa th></g> <g id="android"><path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5 s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8 2 8.67 2 9.5v7c0 .83.67 1.5 1.5 1.5S5 17.33 5 16.5v-7C5 8.67 4.33 8 3.5 8zm17 0c-.83 0-1.5.67-1.5 1.5v7c0 .83.67 1.5 1.5 1.5s1.5-.67 1. 5-1.5v-7c0-.83-.67-1.5-1.5-1.5zm-4.97-5.84l1.3-1.3c.2-.2.2-.51 0-.71-.2-.2-.51-. 2-.71 0l-1.48 1.48C13.85 1.23 12.95 1 12 1c-.96 0-1.86.23-2.66.63L7.85.15c-.2-.2 -.51-.2-.71 0-.2.2-.2.51 0 .71l1.31 1.31C6.97 3.26 6 5.01 6 7h12c0-1.99-.97-3.75 -2.47-4.84zM10 5H9V4h1v1zm5 0h-1V4h1v1z"></path></g> <g id="announcement"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z"></path></g> <g id="apps"><path d="M4 8h4V4H4v4zm6 12 h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h -4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"></path></g> <g id="archive"><path d="M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27z M12 17.5L6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z"></path></g> <g id="arrow-back"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 1 3H20v-2z"></path></g> <g id="arrow-downward"><path d="M20 12l-1.41-1.41L13 16.17 V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"></path></g> <g id="arrow-drop-down"><path d="M7 10l5 5 5-5z"></path></g> <g id="arrow-drop-down-circle"><path d="M12 2C6.4 8 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4-4h8l-4 4z"></p ath></g> <g id="arrow-drop-up"><path d="M7 14l5-5 5 5z"></path></g> <g id="arrow -forward"><path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"></ path></g> <g id="arrow-upward"><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5 .59L20 12l-8-8-8 8z"></path></g> <g id="aspect-ratio"><path d="M19 12h-2v3h-3v2h 5v-5zM7 9h3V7H5v5h2V9zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2 V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"></path></g> <g id="assessment"><pat h d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2 zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"></path></g> <g id="assignment">< path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2 v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"></path>< /g> <g id="assignment-ind"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4 .84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2 zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 4c1.66 0 3 1.34 3 3s-1. 34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1.4c0-2 4-3.1 6-3.1s6 1.1 6 3.1V19z"></p ath></g> <g id="assignment-late"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9 -2-2-2zm-6 15h-2v-2h2v2zm0-4h-2V8h2v6zm-1-9c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1 -.45 1-1 1z"></path></g> <g id="assignment-return"><path d="M19 3h-4.18C14.4 1.8 4 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2 -.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm4 12h-4v3l-5-5 5-5v3h4v4z"></path></g> <g id="assignment-returned"><path d="M19 3 h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1 -1 .45-1 1-1zm0 15l-5-5h3V9h4v4h3l-5 5z"></path></g> <g id="assignment-turned-in "><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9- 2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-. 45 1-1 1-1-.45-1-1 .45-1 1-1zm-2 14l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z "></path></g> <g id="attachment"><path d="M2 12.5C2 9.46 4.46 7 7.5 7H18c2.21 0 4 1.79 4 4s-1.79 4-4 4H9.5C8.12 15 7 13.88 7 12.5S8.12 10 9.5 10H17v2H9.41c-.55 0-.55 1 0 1H18c1.1 0 2-.9 2-2s-.9-2-2-2H7.5C5.57 9 4 10.57 4 12.5S5.57 16 7.5 16 H17v2H7.5C4.46 18 2 15.54 2 12.5z"></path></g> <g id="autorenew"><path d="M12 6v 3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.7 9-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6 -6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"></path></g> <g id="backspace"><path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9. 89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12.59 12 9 8.41 10.41 7 14 10.59 17.59 7 19 8.41 15.41 12 19 15.59z"> </path></g> <g id="backup"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"></path></g> <g id="blo ck"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM 4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12 zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"></path></g> <g id="book"><path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"></path></g> <g id="bookmark"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2- 2z"></path></g> <g id="bookmark-border"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"></path></g> <g id="bug- report"><path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4 v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1 v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z"></path> </g> <g id="build"><path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1 .3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"></path></g> <g id="cached"><path d="M19 8l -4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 1 2 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46- 1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"></path></g> <g id= "camera-enhance"><path d="M9 3L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2h-3.17L15 3H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2 .24 5 5-2.24 5-5 5zm0-1l1.25-2.75L16 13l-2.75-1.25L12 9l-1.25 2.75L8 13l2.75 1.2 5z"></path></g> <g id="cancel"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 1 0-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"></path></g> <g id="card -giftcard"><path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.9 6.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69 .18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11 -.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v6z"></path></g> <g id="car d-membership"><path d="M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v -5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2zm0 13H4v-2h16v2zm0-5H4V4h16v6z"></path> </g> <g id="card-travel"><path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2- 2zM9 4h6v2H9V4zm11 15H4v-2h16v2zm0-5H4V8h3v2h2V8h6v2h2V8h3v6z"></path></g> <g id ="change-history"><path d="M12 7.77L18.39 18H5.61L12 7.77M12 4L2 20h20L12 4z"></ path></g> <g id="check"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.4 1z"></path></g> <g id="check-box"><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7 .59L19 8l-9 9z"></path></g> <g id="check-box-outline-blank"><path d="M19 5v14H5V 5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" ></path></g> <g id="check-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 1 0 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z "></path></g> <g id="chevron-left"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L 10.83 12z"></path></g> <g id="chevron-right"><path d="M10 6L8.59 7.41 13.17 12l- 4.58 4.59L10 18l6-6z"></path></g> <g id="chrome-reader-mode"><path d="M13 12h7v1 .5h-7zm0-2.5h7V11h-7zm0 5h7V16h-7zM21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1. 1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15h-9V6h9v13z"></path></g> <g id="class"><path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM 6 4h5v8l-2.5-1.5L6 12V4z"></path></g> <g id="clear"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 1 2z"></path></g> <g id="close"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 1 0.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path></g> <g id= "cloud"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4 .65-4.96z"></path></g> <g id="cloud-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4. 48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.5 14H8c-1.66 0-3-1.34-3-3s1.34-3 3-3l. 14.01C8.58 8.28 10.13 7 12 7c2.21 0 4 1.79 4 4h.5c1.38 0 2.5 1.12 2.5 2.5S17.88 16 16.5 16z"></path></g> <g id="cloud-done"><path d="M19.35 10.04C18.67 6.59 15. 64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c 2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM10 17l-3.5-3.5 1.41-1.41L10 14.17 15.18 9l1.41 1.41L10 17z"></path></g> <g id="cloud-download"><path d="M19.35 10. 04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3. 31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V 9h4v4h3z"></path></g> <g id="cloud-off"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.4 6 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-.64 2.11-1.56 2.62l1.45 1.45C23.16 18.1 6 24 16.68 24 15c0-2.64-2.05-4.78-4.65-4.96zM3 5.27l2.75 2.74C2.56 8.15 0 10.77 0 14c0 3.31 2.69 6 6 6h11.73l2 2L21 20.73 4.27 4 3 5.27zM7.73 10l8 8H6c-2.21 0-4 -1.79-4-4s1.79-4 4-4h1.73z"></path></g> <g id="cloud-queue"><path d="M19.35 10.0 4C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.3 1 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4- 1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3z"></path></g> <g id="cloud-upload"><path d="M19.35 10. 04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3. 31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5 -5 5 5h-3z"></path></g> <g id="code"><path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"></path></g> <g id="com pare-arrows"><path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v-3H22V8h-7.01V 5L11 9l3.99 4z"></path></g> <g id="content-copy"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1- .9-2-2-2zm0 16H8V7h11v14z"></path></g> <g id="content-cut"><path d="M9.64 7.64c. 23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.6 4-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1 .79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1L9.64 7.64zM6 8c-1.1 0-2-.89-2-2s. 9-2 2-2 2 .89 2 2-.9 2-2 2zm0 12c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm6 -7.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5zM19 3l-6 6 2 2 7-7V3z"> </path></g> <g id="content-paste"><path d="M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9- 2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v 16z"></path></g> <g id="copyright"><path d="M10.08 10.86c.05-.33.16-.62.3-.87s.3 4-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52.36s.25.33.34. 53.13.42.14.64h1.79c-.02-.47-.11-.9-.28-1.29s-.4-.73-.7-1.01-.66-.5-1.08-.66-.88 -.23-1.39-.23c-.65 0-1.22.11-1.7.34s-.88.53-1.2.92-.56.84-.71 1.36S8 11.29 8 11. 87v.27c0 .58.08 1.12.23 1.64s.39.97.71 1.35.72.69 1.2.91 1.05.34 1.7.34c.47 0 .9 1-.08 1.32-.23s.77-.36 1.08-.63.56-.58.74-.94.29-.74.3-1.15h-1.79c-.01.21-.06.4- .15.58s-.21.33-.36.46-.32.23-.52.3c-.19.07-.39.09-.6.1-.36-.01-.66-.08-.89-.23-. 25-.16-.45-.37-.59-.62s-.25-.55-.3-.88-.08-.67-.08-1v-.27c0-.35.03-.68.08-1.01zM 12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8 -3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></g> <g id="create"><path d= "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1. 41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"></path>< /g> <g id="create-new-folder"><path d="M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2 h3V9h2v3h3v2z"></path></g> <g id="credit-card"><path d="M20 4H4c-1.11 0-1.99.89- 1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16 v6zm0-10H4V6h16v2z"></path></g> <g id="dashboard"><path d="M3 13h8V3H3v10zm0 8h8 v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"></path></g> <g id="date-range"><path d ="M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0- 1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h1 4v11z"></path></g> <g id="delete"><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V 7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"></path></g> <g id="description"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6z m2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"></path></g> <g id="dns"><path d="M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1 -1-1zM7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM20 3H4c-.55 0-1 .45-1 1v6 c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1zM7 9c-1.1 0-2-.9-2-2s.9-2 2 -2 2 .9 2 2-.9 2-2 2z"></path></g> <g id="done"><path d="M9 16.2L4.8 12l-1.4 1.4 L9 19 21 7l-1.4-1.4L9 16.2z"></path></g> <g id="done-all"><path d="M18 7l-1.41-1 .41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l 12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"></path></g> <g id= "donut-large"><path d="M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3. 4-6-6.92s3-6.44 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13 18.92V22c5-.47 8.53-4 9-9h-3.03c-.43 3-2.97 5.49-5.97 5.92z"></path></g> <g id="donut-small"><path d="M11 9.16V2c-5 .5-9 4.79-9 10s4 9.5 9 10v-7.16c-1-. 41-2-1.52-2-2.84s1-2.43 2-2.84zM14.86 11H22c-.48-4.75-4-8.53-9-9v7.16c1 .3 1.52. 98 1.86 1.84zM13 14.84V22c5-.47 8.52-4.25 9-9h-7.14c-.34.86-.86 1.54-1.86 1.84z" ></path></g> <g id="drafts"><path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6 .3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7 .84 12 3l8.26 4.84L12 13z"></path></g> <g id="eject"><path d="M5 17h14v2H5zm7-12 L5.33 15h13.34z"></path></g> <g id="error"><path d="M12 2C6.48 2 2 6.48 2 12s4.4 8 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"></path></g > <g id="error-outline"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3. 58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></g> <g id="event"><path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"></path></g> <g id="event- seat"><path d="M4 18v3h3v-3h10v3h3v-6H4zm15-8h3v3h-3zM2 10h3v3H2zm15 3H7V5c0-1.1 .9-2 2-2h6c1.1 0 2 .9 2 2v8z"></path></g> <g id="exit-to-app"><path d="M10.09 15 .59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9- 2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"></p ath></g> <g id="expand-less"><path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"></path></g> <g id="expand-more"><path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"></path></g> <g id="explore"><path d="M12 10.9c-.61 0-1.1.49-1.1 1.1 s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1zM12 2C6.48 2 2 6.48 2 12 s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm2.19 12.19L6 18l3.81-8.19L18 6l-3.81 8.19z"></path></g> <g id="extension"><path d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3. 5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2. 7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7 -2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5 S21.88 11 20.5 11z"></path></g> <g id="face"><path d="M9 11.75c-.69 0-1.25.56-1. 25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.2 5.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zM12 2C6. 48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8 -8 0-.29.02-.58.05-.86 2.36-1.05 4.23-2.98 5.21-5.37C11.07 8.33 14.05 10 17.42 1 0c.78 0 1.53-.09 2.25-.26.21.71.33 1.47.33 2.26 0 4.41-3.59 8-8 8z"></path></g> <g id="favorite"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4. 42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"></path></g> <g id="favorite-border"><p ath d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3 .5 0 2.89-3.14 5.74-7.9 10.05z"></path></g> <g id="feedback"><path d="M20 2H4c-1 .1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2z m0-4h-2V6h2v4z"></path></g> <g id="file-download"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"></path></g> <g id="file-upload"><path d="M9 16h6v-6h4l-7-7 -7 7h4zm-4 2h14v2H5z"></path></g> <g id="filter-list"><path d="M10 18h4v-2h-4v2z M3 6v2h18V6H3zm3 7h12v-2H6v2z"></path></g> <g id="find-in-page"><path d="M20 19. 59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4 l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.0 2-.31 1.96-.83 2.75L20 19.59zM9 13c0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3-3 1.3 4-3 3z"></path></g> <g id="find-replace"><path d="M11 6c1.38 0 2.63.56 3.54 1.46 L12 10h6V4l-2.05 2.05C14.68 4.78 12.93 4 11 4c-3.53 0-6.43 2.61-6.92 6H6.1c.46-2 .28 2.48-4 4.9-4zm5.64 9.14c.66-.9 1.12-1.97 1.28-3.14H15.9c-.46 2.28-2.48 4-4.9 4-1.38 0-2.63-.56-3.54-1.46L10 12H4v6l2.05-2.05C7.32 17.22 9.07 18 11 18c1.55 0 2.98-.51 4.14-1.36L20 21.49 21.49 20l-4.85-4.86z"></path></g> <g id="fingerprin t"><path d="M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3 .86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12. 01 2c2.13 0 3.99.47 6.03 1.52.25.13.34.43.21.67-.09.18-.26.28-.44.28zM3.5 9.72c- .1 0-.2-.03-.29-.09-.23-.16-.28-.47-.12-.7.99-1.4 2.25-2.5 3.75-3.27C9.98 4.04 1 4 4.03 17.15 5.65c1.5.77 2.76 1.86 3.75 3.25.16.22.11.54-.12.7-.23.16-.54.11-.7- .12-.9-1.26-2.04-2.25-3.39-2.94-2.87-1.47-6.54-1.47-9.4.01-1.36.7-2.5 1.7-3.4 2. 96-.08.14-.23.21-.39.21zm6.25 12.07c-.13 0-.26-.05-.35-.15-.87-.87-1.34-1.43-2.0 1-2.64-.69-1.23-1.05-2.73-1.05-4.34 0-2.97 2.54-5.39 5.66-5.39s5.66 2.42 5.66 5. 39c0 .28-.22.5-.5.5s-.5-.22-.5-.5c0-2.42-2.09-4.39-4.66-4.39-2.57 0-4.66 1.97-4. 66 4.39 0 1.44.32 2.77.93 3.85.64 1.15 1.08 1.64 1.85 2.42.19.2.19.51 0 .71-.11. 1-.24.15-.37.15zm7.17-1.85c-1.19 0-2.24-.3-3.1-.89-1.49-1.01-2.38-2.65-2.38-4.39 0-.28.22-.5.5-.5s.5.22.5.5c0 1.41.72 2.74 1.94 3.56.71.48 1.54.71 2.54.71.24 0 .64-.03 1.04-.1.27-.05.53.13.58.41.05.27-.13.53-.41.58-.57.11-1.07.12-1.21.12zM1 4.91 22c-.04 0-.09-.01-.13-.02-1.59-.44-2.63-1.03-3.72-2.1-1.4-1.39-2.17-3.24-2. 17-5.22 0-1.62 1.38-2.94 3.08-2.94 1.7 0 3.08 1.32 3.08 2.94 0 1.07.93 1.94 2.08 1.94s2.08-.87 2.08-1.94c0-3.77-3.25-6.83-7.25-6.83-2.84 0-5.44 1.58-6.61 4.03-. 39.81-.59 1.76-.59 2.8 0 .78.07 2.01.67 3.61.1.26-.03.55-.29.64-.26.1-.55-.04-.6 4-.29-.49-1.31-.73-2.61-.73-3.96 0-1.2.23-2.29.68-3.24 1.33-2.79 4.28-4.6 7.51-4 .6 4.55 0 8.25 3.51 8.25 7.83 0 1.62-1.38 2.94-3.08 2.94s-3.08-1.32-3.08-2.94c0- 1.07-.93-1.94-2.08-1.94s-2.08.87-2.08 1.94c0 1.71.66 3.31 1.87 4.51.95.94 1.86 1 .46 3.27 1.85.27.07.42.35.35.61-.05.23-.26.38-.47.38z"></path></g> <g id="flag"> <path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"></path></g> <g id="flight-land">< path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06 .21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2.32- 1.45-.39v5.17l1.6.43 5.31 1.43z"></path></g> <g id="flight-takeoff"><path d="M2. 5 19h19v2h-19zm19.57-9.36c-.21-.8-1.04-1.28-1.84-1.06L14.92 10l-6.9-6.43-1.93.51 4.14 7.17-4.97 1.33-1.97-1.54-1.45.39 1.82 3.16.77 1.33 1.6-.43 5.31-1.42 4.35- 1.16L21 11.49c.81-.23 1.28-1.05 1.07-1.85z"></path></g> <g id="flip-to-back"><pa th d="M9 7H7v2h2V7zm0 4H7v2h2v-2zm0-8c-1.11 0-2 .9-2 2h2V3zm4 12h-2v2h2v-2zm6-12 v2h2c0-1.1-.9-2-2-2zm-6 0h-2v2h2V3zM9 17v-2H7c0 1.1.89 2 2 2zm10-4h2v-2h-2v2zm0- 4h2V7h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zM5 7H3v12c0 1.1.89 2 2 2h12v-2H5V7zm10-2h2V3 h-2v2zm0 12h2v-2h-2v2z"></path></g> <g id="flip-to-front"><path d="M3 13h2v-2H3v 2zm0 4h2v-2H3v2zm2 4v-2H3c0 1.1.89 2 2 2zM3 9h2V7H3v2zm12 12h2v-2h-2v2zm4-18H9c- 1.11 0-2 .9-2 2v10c0 1.1.89 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12H9V5h1 0v10zm-8 6h2v-2h-2v2zm-4 0h2v-2H7v2z"></path></g> <g id="folder"><path d="M10 4H 4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l -2-2z"></path></g> <g id="folder-open"><path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1. 99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"></p ath></g> <g id="folder-shared"><path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 1 8c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm4 8h-8v-1c0-1.33 2.67-2 4-2s4 .67 4 2v1z"></path></g> <g id ="font-download"><path d="M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1 .1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5 .96l5.11-13h1.86l5.11 13h-2.09z"></path></g> <g id="forward"><path d="M12 8V4l8 8-8 8v-4H4V8z"></path></g> <g id="fullscreen"><path d="M7 14H5v5h5v-2H7v-3zm-2-4 h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"></path></g> <g id="fullsc reen-exit"><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2- 11V5h-2v5h5V8h-3z"></path></g> <g id="gavel"><path d="M1 21h12v2H1zM5.245 8.07l2 .83-2.827 14.14 14.142-2.828 2.828zM12.317 1l5.657 5.656-2.83 2.83-5.654-5.66zM3 .825 9.485l5.657 5.657-2.828 2.828-5.657-5.657z"></path></g> <g id="gesture"><pa th d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2 .86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2 .77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5 .38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15- 1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25 .3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3- 1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88 .93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1 .43 3.48-2.13 3.48z"></path></g> <g id="get-app"><path d="M19 9h-4V3H9v6H5l7 7 7 -7zM5 18v2h14v-2H5z"></path></g> <g id="gif"><path d="M11.5 9H13v6h-1.5zM9 9H6c- .6 0-1 .5-1 1v4c0 .5.4 1 1 1h3c.6 0 1-.5 1-1v-2H8.5v1.5h-2v-3H10V10c0-.5-.4-1-1- 1zm10 1.5V9h-4.5v6H16v-2h2v-1.5h-2v-1z"></path></g> <g id="grade"><path d="M12 1 7.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"></path></g> <g id="group-work"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zM9.5 8c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2 .5-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8zm6.5 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2. 5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"></path></g> <g id="help"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2 .07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26 c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c 0 .88-.36 1.68-.93 2.25z"></path></g> <g id="help-outline"><path d="M11 18h2v-2h -2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4. 41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1. 1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"></path> </g> <g id="highlight-off"><path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 1 4.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59 -8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></g> <g id="history"><path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1 .93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s -4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"></path></g> <g id="home">< path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"></path></g> <g id="hourglass-empty" ><path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3. 99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"></path></ g> <g id="hourglass-full"><path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v- 5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6z"></path></g> <g id="http"><path d="M 4.5 11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5v2zm2.5-.5h1.5V15H10v-4.5h1.5V9H7v1.5zm5.5 0H14V15h1.5v-4.5H17V9h-4.5v1.5zm9-1.5H18v6h1.5v-2h2c.8 0 1.5-.7 1.5-1.5v-1c0-.8- .7-1.5-1.5-1.5zm0 2.5h-2v-1h2v1z"></path></g> <g id="https"><path d="M18 8h-1V6c 0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8. 9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"></path></g> <g id="impor tant-devices"><path d="M23 11.01L18 11c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-9c0-.55-.45-.99-1-.99zM23 20h-5v-7h5v7zM20 2H2C.89 2 0 2.89 0 4v12c0 1.1.89 2 2 2h7v2H7v2h8v-2h-2v-2h2v-2H2V4h18v5h2V4c0-1.11-.9-2-2-2zm-8.03 7L11 6 l-.97 3H7l2.47 1.76-.94 2.91 2.47-1.8 2.47 1.8-.94-2.91L15 9h-3.03z"></path></g> <g id="inbox"><path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2 H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99 V5H19v10z"></path></g> <g id="indeterminate-check-box"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z">< /path></g> <g id="info"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"></path></g> <g id="info-outli ne"><path d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10- 10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h 2V7h-2v2z"></path></g> <g id="input"><path d="M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.9 9h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14c0-1.11-.9-2 -2-2zM11 16l4-4-4-4v3H1v2h10v3z"></path></g> <g id="invert-colors"><path d="M17. 66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21 .58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 19.59c-1.6 0-3.11-. 62-4.24-1.76C6.62 16.69 6 15.19 6 13.59s.62-3.11 1.76-4.24L12 5.1v14.49z"></path ></g> <g id="label"><path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16 z"></path></g> <g id="label-outline"><path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84 L22 12l-4.37-6.16zM16 17H5V7h11l3.55 5L16 17z"></path></g> <g id="language"><pat h d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56z M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14 C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.1 4 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.9 5-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83- 1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-. 66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16. 36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.3 6-.26 2h-3.38z"></path></g> <g id="launch"><path d="M19 19H5V5h7V3H5c-1.11 0-2 . 9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1 .41L19 6.41V10h2V3h-7z"></path></g> <g id="lightbulb-outline"><path d="M9 21c0 . 55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3. 14-7-7-7zm2.85 11.1l-.85.6V16h-4v-2.3l-.85-.6C7.8 12.16 7 10.63 7 9c0-2.76 2.24- 5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1z"></path></g> <g id="line-style"><path d="M3 16h5v-2H3v2zm6.5 0h5v-2h-5v2zm6.5 0h5v-2h-5v2zM3 20h2v-2H3v2zm4 0h2v-2H7v2 zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM3 12h8v-2H3v2zm10 0h8v-2h-8v2zM3 4v4h18V4H3z"></path></g> <g id="line-weight"><path d="M3 17h18v-2H3v2zm0 3h18v-1 H3v1zm0-7h18v-3H3v3zm0-9v4h18V4H3z"></path></g> <g id="link"><path d="M3.9 12c0- 1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1 .39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3 .1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></g> <g id="list"><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7 H7z"></path></g> <g id="lock"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2 H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1 .1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1. 71 0 3.1 1.39 3.1 3.1v2z"></path></g> <g id="lock-open"><path d="M12 17c1.1 0 2- .9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0- 1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z"></path></g> <g id="loc k-outline"><path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c 0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9V6zM1 8 20H6V10h12v10z"></path></g> <g id="loyalty"><path d="M21.41 11.58l-9-9C12.05 2 .22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41 .58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42zM5 .5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7zm11.77 8.27L13 1 9.54l-4.27-4.27C8.28 14.81 8 14.19 8 13.5c0-1.38 1.12-2.5 2.5-2.5.69 0 1.32.28 1 .77.74l.73.72.73-.73c.45-.45 1.08-.73 1.77-.73 1.38 0 2.5 1.12 2.5 2.5 0 .69-.28 1.32-.73 1.77z"></path></g> <g id="mail"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L 2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z "></path></g> <g id="markunread"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1. 1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"></path> </g> <g id="markunread-mailbox"><path d="M20 6H10v6H8V4h6V0H6v6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2z"></path></g> <g id="menu" ><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"></path></g> <g id="more -horiz"><path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2- 2-2z"></path></g> <g id="more-vert"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9 -2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path></g> <g id="motorcycle"><path d="M19.44 9 .03L15.41 5H11v2h3.59l2 2H5c-2.8 0-5 2.2-5 5s2.2 5 5 5c2.46 0 4.45-1.69 4.9-4h1. 65l2.77-2.77c-.21.54-.32 1.14-.32 1.77 0 2.8 2.2 5 5 5s5-2.2 5-5c0-2.65-1.97-4.7 7-4.56-4.97zM7.82 15C7.4 16.15 6.28 17 5 17c-1.63 0-3-1.37-3-3s1.37-3 3-3c1.28 0 2.4.85 2.82 2H5v2h2.82zM19 17c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z"></path></g> <g id="move-to-inbox"><path d="M19 3H4.99c-1.11 0-1.98.9-1.98 2 L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10zm-3-5h-2V7h-4v3H8l4 4 4-4z"></path></g> <g id="ne xt-week"><path d="M20 7h-4V5c0-.55-.22-1.05-.59-1.41C15.05 3.22 14.55 3 14 3h-4c -1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-. 9-2-2-2zM10 5h4v2h-4V5zm1 13.5l-1-1 3-3-3-3 1-1 4 4-4 4z"></path></g> <g id="not e-add"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-. 9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"></path></g > <g id="offline-pin"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S 17.5 2 12 2zm5 16H7v-2h10v2zm-6.7-4L7 10.7l1.4-1.4 1.9 1.9 5.3-5.3L17 7.3 10.3 1 4z"></path></g> <g id="opacity"><path d="M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11. 64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 1 0.77 17.99 12 18 14H6z"></path></g> <g id="open-in-browser"><path d="M19 4H5c-1. 11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89 -2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"></path></g> <g id="open-in-new"><path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3 v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"></path></g> <g id="open-with">< path d="M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v 3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"></path></g> <g id="pageview"><path d="M11.5 9 C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9zM20 4H4 c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-3.21 14.2 1l-2.91-2.91c-.69.44-1.51.7-2.39.7C9.01 16 7 13.99 7 11.5S9.01 7 11.5 7 16 9.01 16 11.5c0 .88-.26 1.69-.7 2.39l2.91 2.9-1.42 1.42z"></path></g> <g id="pan-tool" ><path d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26 -1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V 4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V1 1h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"></path></g> <g id="payment"><path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10 H4V6h16v2z"></path></g> <g id="perm-camera-mic"><path d="M20 5h-3.17L15 3H9L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v-2.09c-2.83-.48-5-2.94-5-5.91h2c0 2.21 1 .79 4 4 4s4-1.79 4-4h2c0 2.97-2.17 5.43-5 5.91V21h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2- 2-2zm-6 8c0 1.1-.9 2-2 2s-2-.9-2-2V9c0-1.1.9-2 2-2s2 .9 2 2v4z"></path></g> <g i d="perm-contact-calendar"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14 c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1z"></path>< /g> <g id="perm-data-setting"><path d="M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h 11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.02-.16.04-.32.0 4-.49 0-.17-.01-.33-.04-.49l1.06-.83c.09-.08.12-.21.06-.32l-1-1.73c-.06-.11-.19- .15-.31-.11l-1.24.5c-.26-.2-.54-.37-.85-.49l-.19-1.32c-.01-.12-.12-.21-.24-.21h- 2c-.12 0-.23.09-.25.21l-.19 1.32c-.3.13-.59.29-.85.49l-1.24-.5c-.11-.04-.24 0-.3 1.11l-1 1.73c-.06.11-.04.24.06.32l1.06.83c-.02.16-.03.32-.03.49 0 .17.01.33.03.4 9l-1.06.83c-.09.08-.12.21-.06.32l1 1.73c.06.11.19.15.31.11l1.24-.5c.26.2.54.37.8 5.49l.19 1.32c.02.12.12.21.25.21h2c.12 0 .23-.09.25-.21l.19-1.32c.3-.13.59-.29.8 4-.49l1.25.5c.11.04.24 0 .31-.11l1-1.73c.06-.11.03-.24-.06-.32l-1.07-.83zm-3.71 1.01c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></p ath></g> <g id="perm-device-information"><path d="M13 7h-2v2h2V7zm0 4h-2v6h2v-6z m4-9.99L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2 -1.99zM17 19H7V5h10v14z"></path></g> <g id="perm-identity"><path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"></pa th></g> <g id="perm-media"><path d="M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2V6zm2 0-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1- .9-2-2-2zM7 15l4.5-6 3.5 4.51 2.5-3.01L21 15H7z"></path></g> <g id="perm-phone-m sg"><path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c -2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v- 3.5c0-.55-.45-1-1-1zM12 3v10l3-3h6V3h-9z"></path></g> <g id="perm-scan-wifi"><pa th d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h -2v-6h2v6zm-2-8V6h2v2h-2z"></path></g> <g id="pets"><circle cx="4.5" cy="9.5" r= "2.5"></circle><circle cx="9" cy="5.5" r="2.5"></circle><circle cx="15" cy="5.5" r="2.5"></circle><circle cx="19.5" cy="9.5" r="2.5"></circle><path d="M17.34 14 .86c-.87-1.02-1.6-1.89-2.48-2.91-.46-.54-1.05-1.08-1.75-1.32-.11-.04-.22-.07-.33 -.09-.25-.04-.52-.04-.78-.04s-.53 0-.79.05c-.11.02-.22.05-.33.09-.7.24-1.28.78-1 .75 1.32-.87 1.02-1.6 1.89-2.48 2.91-1.31 1.31-2.92 2.76-2.62 4.79.29 1.02 1.02 2.03 2.33 2.32.73.15 3.06-.44 5.54-.44h.18c2.48 0 4.81.58 5.54.44 1.31-.29 2.04- 1.31 2.33-2.32.31-2.04-1.3-3.49-2.61-4.8z"></path></g> <g id="picture-in-picture "><path d="M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z"></path></g> <g id="pic ture-in-picture-alt"><path d="M19 11h-8v6h8v-6zm4 8V4.98C23 3.88 22.1 3 21 3H3c- 1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H3V4.97h18v14.05z"> </path></g> <g id="play-for-work"><path d="M11 5v5.59H7.5l4.5 4.5 4.5-4.5H13V5h- 2zm-5 9c0 3.31 2.69 6 6 6s6-2.69 6-6h-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6z"></path ></g> <g id="polymer"><path d="M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.8 9-12.63L19.5 12 15 20h4l4.5-8z"></path></g> <g id="power-settings-new"><path d=" M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7 s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4 .03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"></path></g> <g id="pregnant-wo man"><path d="M9 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm7 9c-.01-1.34- .83-2.51-2-3 0-1.66-1.34-3-3-3s-3 1.34-3 3v7h2v5h3v-5h3v-4z"></path></g> <g id=" print"><path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm- 3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3 z"></path></g> <g id="query-builder"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 1 0 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58 -8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"></path></g > <g id="question-answer"><path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55- .45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z" ></path></g> <g id="radio-button-checked"><path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10 S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path ></g> <g id="radio-button-unchecked"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 1 0 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3 .58 8-8 8z"></path></g> <g id="receipt"><path d="M18 17H6v-2h12v2zm0-4H6v-2h12v2 zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1 .5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2v20z"></path></g> <g id="record-voice-over"><circle cx="9 " cy="9" r="4"></circle><path d="M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4- 8-4zm7.76-9.64l-1.68 1.69c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2.02 2.02-5.07 0-7.27zM20.07 2l-1.63 1.63c2.77 3.02 2.77 7.56 0 10.74L20.07 16c3.9-3.89 3.91-9. 95 0-14z"></path></g> <g id="redeem"><path d="M20 6h-2.18c.11-.31.18-.65.18-1 0- 1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.3 4 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16 c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm 0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v 6z"></path></g> <g id="redo"><path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.8 8L13 16h9V7l-3.6 3.6z"></path></g> <g id="refresh"><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2. 08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78 L13 11h7V4l-2.35 2.35z"></path></g> <g id="remove"><path d="M19 13H5v-2h14v2z">< /path></g> <g id="remove-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"></path></g> <g id="remove-circle-o utline"><path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 1 0-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></ path></g> <g id="reorder"><path d="M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2z m0-6v2h18V5H3z"></path></g> <g id="reply"><path d="M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"></path></g> <g id="reply-all"><path d="M7 8V5l-7 7 7 7v-3l-4-4 4-4zm6 1V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"></path> </g> <g id="report"><path d="M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.2 7L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1 .3 0 .72-.58 1.3-1.3 1.3zm1-4.3h-2V7h2v6z"></path></g> <g id="report-problem"><p ath d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"></path></g> <g id="re store"><path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z "></path></g> <g id="room"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7 .75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"></path></g> <g id="rounded-corner"><path d="M19 19h2v2h-2v-2zm0-2h2v-2h-2v2zM3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm0-4h2V3H3 v2zm4 0h2V3H7v2zm8 16h2v-2h-2v2zm-4 0h2v-2h-2v2zm4 0h2v-2h-2v2zm-8 0h2v-2H7v2zm- 4 0h2v-2H3v2zM21 8c0-2.76-2.24-5-5-5h-5v2h5c1.65 0 3 1.35 3 3v5h2V8z"></path></g > <g id="rowing"><path d="M8.5 14.5L4 19l1.5 1.5L9 17h2l-2.5-2.5zM15 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 20.01L18 24l-2.99-3.01V19.5l-7.1-7.09c-.31. 05-.61.07-.91.07v-2.16c1.66.03 3.61-.87 4.67-2.04l1.4-1.55c.19-.21.43-.38.69-.5. 29-.14.62-.23.96-.23h.03C15.99 6.01 17 7.02 17 8.26v5.75c0 .84-.35 1.61-.92 2.16 l-3.58-3.58v-2.27c-.63.52-1.43 1.02-2.29 1.39L16.5 18H18l3 3.01z"></path></g> <g id="save"><path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2 V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v 4z"></path></g> <g id="schedule"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9. 99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8 -8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"></path></g> <g id="search"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l 5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path></g> <g id="select-all"><path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2 -2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v- 2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0 -16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z"></path></g> <g id="send"><path d="M2 .01 21L23 12 2.01 3 2 10l15 2-15 2z"></path></g> <g id="settings"><path d="M19.4 3 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l- 2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2. 49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65 -.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2 .49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l. 38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-. 49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.5 7 3.5 3.5-1.57 3.5-3.5 3.5z"></path></g> <g id="settings-applications"><path d=" M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm7-7H5c-1.11 0-2 .9-2 2v14c0 1 .1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-1.75 9c0 .23-.02.46-.05.68l1. 48 1.16c.13.11.17.3.08.45l-1.4 2.42c-.09.15-.27.21-.43.15l-1.74-.7c-.36.28-.76.5 1-1.18.69l-.26 1.85c-.03.17-.18.3-.35.3h-2.8c-.17 0-.32-.13-.35-.29l-.26-1.85c-. 43-.18-.82-.41-1.18-.69l-1.74.7c-.16.06-.34 0-.43-.15l-1.4-2.42c-.09-.15-.05-.34 .08-.45l1.48-1.16c-.03-.23-.05-.46-.05-.69 0-.23.02-.46.05-.68l-1.48-1.16c-.13-. 11-.17-.3-.08-.45l1.4-2.42c.09-.15.27-.21.43-.15l1.74.7c.36-.28.76-.51 1.18-.69l .26-1.85c.03-.17.18-.3.35-.3h2.8c.17 0 .32.13.35.29l.26 1.85c.43.18.82.41 1.18.6 9l1.74-.7c.16-.06.34 0 .43.15l1.4 2.42c.09.15.05.34-.08.45l-1.48 1.16c.03.23.05. 46.05.69z"></path></g> <g id="settings-backup-restore"><path d="M14 12c0-1.1-.9- 2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3. 13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.91-.49-4.06-1.3l-1.42 1.44C8.04 20.3 9. 94 21 12 21c4.97 0 9-4.03 9-9s-4.03-9-9-9z"></path></g> <g id="settings-bluetoot h"><path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7 .59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4.29 4.3- 4.29zM13 3.83l1.88 1.88L13 7.59V3.83zm1.88 10.46L13 16.17v-3.76l1.88 1.88z"></pa th></g> <g id="settings-brightness"><path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02zM8 16h2.5l1.5 1.5 1.5-1.5H16v-2.5l1.5-1.5-1.5-1.5V8h-2.5L12 6.5 10.5 8H8v2.5L6.5 12 8 13.5V16z m4-7c1.66 0 3 1.34 3 3s-1.34 3-3 3V9z"></path></g> <g id="settings-cell"><path d ="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM16 .01L8 0C6.9 0 6 .9 6 2v16c0 1 .1.9 2 2 2h8c1.1 0 2-.9 2-2V2c0-1.1-.9-1.99-2-1.99zM16 16H8V4h8v12z"></path></g> <g id="settings-ethernet"><path d="M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1. 28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l- 1.54 1.28L20.58 12l-4.35 5.24 1.54 1.28L23.18 12l-5.41-6.52z"></path></g> <g id= "settings-input-antenna"><path d="M12 5c-3.87 0-7 3.13-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.87-3.13-7-7-7zm1 9.29c.88-.39 1.5-1.26 1.5-2.29 0-1.38-1.12-2.5- 2.5-2.5S9.5 10.62 9.5 12c0 1.02.62 1.9 1.5 2.29v3.3L7.59 21 9 22.41l3-3 3 3L16.4 1 21 13 17.59v-3.3zM12 1C5.93 1 1 5.93 1 12h2c0-4.97 4.03-9 9-9s9 4.03 9 9h2c0-6 .07-4.93-11-11-11z"></path></g> <g id="settings-input-component"><path d="M5 2c0 -.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.1 6-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1v2zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6h-2zm-8-4c0-.55-.45-1- 1-1s-1 .45-1 1v4H9v6h6V6h-2V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1. 51 2-2.82v-2h-6v2z"></path></g> <g id="settings-input-composite"><path d="M5 2c0 -.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.1 6-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1v2zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6h-2zm-8-4c0-.55-.45-1- 1-1s-1 .45-1 1v4H9v6h6V6h-2V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1. 51 2-2.82v-2h-6v2z"></path></g> <g id="settings-input-hdmi"><path d="M18 7V4c0-1 .1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3H5v6l3 6v3h8v-3l3-6V7h-1zM8 4h8v3h-2V5h-1v2h-2V5h -1v2H8V4z"></path></g> <g id="settings-input-svideo"><path d="M8 11.5c0-.83-.67- 1.5-1.5-1.5S5 10.67 5 11.5 5.67 13 6.5 13 8 12.33 8 11.5zm7-5c0-.83-.67-1.5-1.5- 1.5h-3C9.67 5 9 5.67 9 6.5S9.67 8 10.5 8h3c.83 0 1.5-.67 1.5-1.5zM8.5 15c-.83 0- 1.5.67-1.5 1.5S7.67 18 8.5 18s1.5-.67 1.5-1.5S9.33 15 8.5 15zM12 1C5.93 1 1 5.93 1 12s4.93 11 11 11 11-4.93 11-11S18.07 1 12 1zm0 20c-4.96 0-9-4.04-9-9s4.04-9 9 -9 9 4.04 9 9-4.04 9-9 9zm5.5-11c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1 .5-1.5-.67-1.5-1.5-1.5zm-2 5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1 .5-.67-1.5-1.5-1.5z"></path></g> <g id="settings-overscan"><path d="M12.01 5.5L1 0 8h4l-1.99-2.5zM18 10v4l2.5-1.99L18 10zM6 10l-2.5 2.01L6 14v-4zm8 6h-4l2.01 2.5 L14 16zm7-13H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2 -2zm0 16.01H3V4.99h18v14.02z"></path></g> <g id="settings-phone"><path d="M13 9h -2v2h2V9zm4 0h-2v2h2V9zm3 6.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l- 2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-. 45 1-1v-3.5c0-.55-.45-1-1-1zM19 9v2h2V9h-2z"></path></g> <g id="settings-power"> <path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16. 84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-5.12L7 .44 4.44C5.36 5.88 4 8.28 4 11c0 4.42 3.58 8 8 8s8-3.58 8-8c0-2.72-1.36-5.12-3.4 4-6.56zM15 24h2v-2h-2v2z"></path></g> <g id="settings-remote"><path d="M15 9H9c- .55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1zm-3 6c-1. 1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM7.05 6.05l1.41 1.41C9.37 6.56 10.62 6 1 2 6s2.63.56 3.54 1.46l1.41-1.41C15.68 4.78 13.93 4 12 4s-3.68.78-4.95 2.05zM12 0 C8.96 0 6.21 1.23 4.22 3.22l1.41 1.41C7.26 3.01 9.51 2 12 2s4.74 1.01 6.36 2.64l 1.41-1.41C17.79 1.23 15.04 0 12 0z"></path></g> <g id="settings-voice"><path d=" M7 24h2v-2H7v2zm5-11c1.66 0 2.99-1.34 2.99-3L15 4c0-1.66-1.34-3-3-3S9 2.34 9 4v6 c0 1.66 1.34 3 3 3zm-1 11h2v-2h-2v2zm4 0h2v-2h-2v2zm4-14h-1.7c0 3-2.54 5.1-5.3 5 .1S6.7 13 6.7 10H5c0 3.41 2.72 6.23 6 6.72V20h2v-3.28c3.28-.49 6-3.31 6-6.72z">< /path></g> <g id="shop"><path d="M16 6V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2 H2v13c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6h-6zm-6-2h4v2h-4V4zM9 18V9l7.5 4L9 18 z"></path></g> <g id="shop-two"><path d="M3 9H1v11c0 1.11.89 2 2 2h14c1.11 0 2-. 89 2-2H3V9zm15-4V3c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H5v11c0 1.11.89 2 2 2h 14c1.11 0 2-.89 2-2V5h-5zm-6-2h4v2h-4V3zm0 12V8l5.5 3-5.5 4z"></path></g> <g id= "shopping-basket"><path d="M17.21 9l-4.38-6.56c-.19-.28-.51-.42-.83-.42-.32 0-.6 4.14-.83.43L6.79 9H2c-.55 0-1 .45-1 1 0 .09.01.18.04.27l2.54 9.27c.23.84 1 1.46 1.92 1.46h13c.92 0 1.69-.62 1.93-1.46l2.54-9.27L23 10c0-.55-.45-1-1-1h-4.79zM9 9 l3-4.4L15 9H9zm3 8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path></g> <g i d="shopping-cart"><path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2- 2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c- .14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08 -.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"></path></g> <g id="sort"><path d="M3 18h6v-2H3v2zM 3 6v2h18V6H3zm0 7h12v-2H3v2z"></path></g> <g id="speaker-notes"><path d="M20 2H4 c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 14H6v-2h2v2 zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-3h-8V6h8v2z"></path>< /g> <g id="spellcheck"><path d="M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5 .64l1.14 3zm-6.02-5L8.5 5.48 10.57 11H6.43zm15.16.59l-8.09 8.09L9.83 16l-1.41 1. 41 5.09 5.09L23 13l-1.41-1.41z"></path></g> <g id="star"><path d="M12 17.27L18.1 8 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"></pa th></g> <g id="star-border"><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5. 46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28- 3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"></path></ g> <g id="star-half"><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73 L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.3 2 2.88 1 4.28L12 15.4z"></path></g> <g id="stars"><path d="M11.99 2C6.47 2 2 6.4 8 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23L16.23 18z "></path></g> <g id="store"><path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h1 0v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"></path></g> <g id="subdirectory-arrow-left"><pa th d="M11 9l1.42 1.42L8.83 14H18V4h2v12H8.83l3.59 3.58L11 21l-6-6 6-6z"></path>< /g> <g id="subdirectory-arrow-right"><path d="M19 15l-6 6-1.42-1.42L15.17 16H4V4 h2v10h9.17l-3.59-3.58L13 9l6 6z"></path></g> <g id="subject"><path d="M14 17H4v2 h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z"></path></g> <g id="supervis or-account"><path d="M16.5 12c1.38 0 2.49-1.12 2.49-2.5S17.88 7 16.5 7C15.12 7 1 4 8.12 14 9.5s1.12 2.5 2.5 2.5zM9 11c1.66 0 2.99-1.34 2.99-3S10.66 5 9 5C7.34 5 6 6.34 6 8s1.34 3 3 3zm7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.7 5-5.5-2.75zM9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13 .1 9.66 13 9 13z"></path></g> <g id="swap-horiz"><path d="M6.99 11L3 15l3.99 4v- 3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"></path></g> <g id="swap-vert" ><path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z "></path></g> <g id="swap-vertical-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.4 8 10 10 10 10-4.48 10-10S17.52 2 12 2zM6.5 9L10 5.5 13.5 9H11v4H9V9H6.5zm11 6L14 18.5 10.5 15H13v-4h2v4h2.5z"></path></g> <g id="system-update-alt"><path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v 14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"></path></g> <g id="tab"> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2 -2-2zm0 16H3V5h10v4h8v10z"></path></g> <g id="tab-unselected"><path d="M1 9h2V7H 1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2 H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v-2h-2v2zM9 5h2V3H9v2zM5 21h2v-2H5v2zM5 5h2V3H5v2zm16 16c1.1 0 2-.9 2-2h-2v2zm0-8h2v-2h-2v2zm-8 8h2v-2h-2 v2zm4 0h2v-2h-2v2z"></path></g> <g id="text-format"><path d="M5 17v2h14v-2H5zm4. 5-4.2h5l.9 2.2h2.1L12.75 4h-1.5L6.5 15h2.1l.9-2.2zM12 5.98L13.87 11h-3.74L12 5.9 8z"></path></g> <g id="theaters"><path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v- 2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v- 2h2v2zm0-4h-2V7h2v2z"></path></g> <g id="thumb-down"><path d="M15 3H6c-.83 0-1.5 4.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6. 31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41 V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z"></path></g> <g id="thumb-up"><path d="M1 21h4 V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.0 2-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z"></path></g> <g id="thumbs-up -down"><path d="M12 6c0-.55-.45-1-1-1H5.82l.66-3.18.02-.23c0-.31-.13-.59-.33-.8L 5.38 0 .44 4.94C.17 5.21 0 5.59 0 6v6.5c0 .83.67 1.5 1.5 1.5h6.75c.62 0 1.15-.38 1.38-.91l2.26-5.29c.07-.17.11-.36.11-.55V6zm10.5 4h-6.75c-.62 0-1.15.38-1.38.91 l-2.26 5.29c-.07.17-.11.36-.11.55V18c0 .55.45 1 1 1h5.18l-.66 3.18-.02.24c0 .31. 13.59.33.8l.79.78 4.94-4.94c.27-.27.44-.65.44-1.06v-6.5c0-.83-.67-1.5-1.5-1.5z"> </path></g> <g id="timeline"><path d="M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07 l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.5 5-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1. 1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c 0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.0 2.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2z"></path></g> < g id="toc"><path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2z m0-10v2h2V7h-2zm0 6h2v-2h-2v2z"></path></g> <g id="today"><path d="M19 3h-1V1h-2 v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1 -.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"></path></g> <g id="toll"><path d="M15 4c -4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.6 9-6 6-6 6 2.69 6 6-2.69 6-6 6zM3 12c0-2.61 1.67-4.83 4-5.65V4.26C3.55 5.15 1 8.2 7 1 12s2.55 6.85 6 7.74v-2.09c-2.33-.82-4-3.04-4-5.65z"></path></g> <g id="touch -app"><path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2 -2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.6 3l-4.54-2.26c-.17-.07-.35-.11-.54-.11H13v-6c0-.83-.67-1.5-1.5-1.5S10 6.67 10 7.5 v10.74l-3.43-.72c-.08-.01-.15-.03-.24-.03-.31 0-.59.13-.79.33l-.79.8 4.94 4.94c. 27.27.65.44 1.06.44h6.79c.75 0 1.33-.55 1.44-1.28l.75-5.27c.01-.07.02-.14.02-.2 0-.62-.38-1.16-.91-1.38z"></path></g> <g id="track-changes"><path d="M19.07 4.93 l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7. 44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s6-2.69 6-6c0-1.66-.67-3.1 6-1.76-4.24l-1.41 1.41C15.55 9.9 16 10.9 16 12c0 2.21-1.79 4-4 4s-4-1.79-4-4c0-1 .86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1. 38-1-1.72V2h-1C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-2.76-1.12-5.26-2 .93-7.07z"></path></g> <g id="translate"><path d="M12.87 15.07l-2.54-2.51.03-.03 c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 1 9l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7 l1.62-4.33L19.12 17h-3.24z"></path></g> <g id="trending-down"><path d="M16 18l2. 29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6z"></path></g> <g id ="trending-flat"><path d="M22 12l-4-4v3H3v2h15v3z"></path></g> <g id="trending-u p"><path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12 V6z"></path></g> <g id="turned-in"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7- 3 7 3V5c0-1.1-.9-2-2-2z"></path></g> <g id="turned-in-not"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"></pa th></g> <g id="unarchive"><path d="M20.55 5.22l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.15.55L3.46 5.22C3.17 5.57 3 6.01 3 6.5V19c0 1.1.89 2 2 2h14c 1.1 0 2-.9 2-2V6.5c0-.49-.17-.93-.45-1.28zM12 9.5l5.5 5.5H14v2h-4v-2H6.5L12 9.5z M5.12 5l.82-1h12l.93 1H5.12z"></path></g> <g id="undo"><path d="M12.5 8c-2.65 0- 5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.3 1 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"></path></g> <g id="unfold-less"> <path d="M7.41 18.59L8.83 20 12 16.83 15.17 20l1.41-1.41L12 14l-4.59 4.59zm9.18- 13.18L15.17 4 12 7.17 8.83 4 7.41 5.41 12 10l4.59-4.59z"></path></g> <g id="unfo ld-more"><path d="M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12 .34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"></path></g> <g id="up date"><path d="M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2. 73 7.08 0 9.79 2.73 2.71 7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98- .88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58 3.51 -3.47 9.14-3.47 12.65 0L21 3v7.12zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8h1.5z">< /path></g> <g id="verified-user"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.1 6-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z">< /path></g> <g id="view-agenda"><path d="M20 13H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zm0-10H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1z"></path></g> <g id="view-array"><path d ="M4 18h3V5H4v13zM18 5v13h3V5h-3zM8 18h9V5H8v13z"></path></g> <g id="view-carous el"><path d="M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z"></path></g> <g id= "view-column"><path d="M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z"></path> </g> <g id="view-day"><path d="M2 21h19v-3H2v3zM20 8H3c-.55 0-1 .45-1 1v6c0 .55. 45 1 1 1h17c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zM2 3v3h19V3H2z"></path></g> <g id= "view-headline"><path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V 5H4z"></path></g> <g id="view-list"><path d="M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4 V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"></path></g> <g id="view-mod ule"><path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V 5h-5v6zm6-6v6h5V5h-5z"></path></g> <g id="view-quilt"><path d="M10 18h5v-6h-5v6z m-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"></path></g> <g id="view-stream" ><path d="M4 18h17v-6H4v6zM4 5v6h17V5H4z"></path></g> <g id="view-week"><path d= "M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm 14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm -7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z" ></path></g> <g id="visibility"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s 2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1 .34-3-3-3z"></path></g> <g id="visibility-off"><path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-1 1-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.4 6.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42 .42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2 .24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01 z"></path></g> <g id="warning"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h -2v-4h2v4z"></path></g> <g id="watch-later"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"></p ath></g> <g id="weekend"><path d="M21 10c-1.1 0-2 .9-2 2v3H5v-3c0-1.1-.9-2-2-2s- 2 .9-2 2v5c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2zm-3-5H6c-1.1 0-2 .9 -2 2v2.15c1.16.41 2 1.51 2 2.82V14h12v-2.03c0-1.3.84-2.4 2-2.82V7c0-1.1-.9-2-2-2 z"></path></g> <g id="work"><path d="M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .8 9-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1. 11-.89-2-2-2zm-6 0h-4V4h4v2z"></path></g> <g id="youtube-searched-for"><path d=" M17.01 14h-.8l-.27-.27c.98-1.14 1.57-2.61 1.57-4.23 0-3.59-2.91-6.5-6.5-6.5s-6.5 3-6.5 6.5H2l3.84 4 4.16-4H6.51C6.51 7 8.53 5 11.01 5s4.5 2.01 4.5 4.5c0 2.48-2. 02 4.5-4.5 4.5-.65 0-1.26-.14-1.82-.38L7.71 15.1c.97.57 2.09.9 3.3.9 1.61 0 3.08 -.59 4.22-1.57l.27.27v.79l5.01 4.99L22 19l-4.99-5z"></path></g> <g id="zoom-in"> <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"></path></g> <g id="zoom-out"><path d="M15. 5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9. 5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm- 6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7 z"></path></g> </defs></svg> </iron-iconset-svg> <script>!function(){"use strict ";function e(e,t){var n="";if(e){var i=e.toLowerCase();" "===i||v.test(i)?n="spa ce":f.test(i)?n="esc":1==i.length?t&&!u.test(i)||(n=i):n=c.test(i)?i.replace("ar row",""):"multiply"==i?"*":i}return n}function t(e){var t="";return e&&(e in o?t =o[e]:h.test(e)?(e=parseInt(e.replace("U+","0x"),16),t=String.fromCharCode(e).to LowerCase()):t=e.toLowerCase()),t}function n(e){var t="";return Number(e)&&(t=e> =65&&e<=90?String.fromCharCode(32+e):e>=112&&e<=123?"f"+(e-112):e>=48&&e<=57?Str ing(e-48):e>=96&&e<=105?String(e-96):d[e]),t}function i(i,r){return i.key?e(i.ke y,r):i.detail&&i.detail.key?e(i.detail.key,r):t(i.keyIdentifier)||n(i.keyCode)|| ""}function r(e,t){var n=i(t,e.hasModifiers);return n===e.key&&(!e.hasModifiers| |!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altKey&&! !t.metaKey==!!e.metaKey)}function s(e){return 1===e.length?{combo:e,key:e,event: "keydown"}:e.split("+").reduce(function(e,t){var n=t.split(":"),i=n[0],r=n[1];re turn i in y?(e[y[i]]=!0,e.hasModifiers=!0):(e.key=i,e.event=r||"keydown"),e},{co mbo:e.split(":").shift()})}function a(e){return e.trim().split(" ").map(function (e){return s(e)})}var o={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0 020":"space","U+007F":"del"},d={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pa geup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",4 0:"down",46:"del",106:"*"},y={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta: "metaKey"},u=/[a-z0-9*]/,h=/U\+/,c=/^arrow/,v=/^space(bar)?/,f=/^escape$/;Polyme r.IronA11yKeysBehavior={properties:{keyEventTarget:{type:Object,value:function() {return this}},stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHan dlers:{type:Array,value:function(){return[]}},_imperativeKeyBindings:{type:Objec t,value:function(){return{}}}},observers:["_resetKeyEventListeners(keyEventTarge t, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindin gs()},attached:function(){this._listenKeyEventListeners()},detached:function(){t his._unlistenKeyEventListeners()},addOwnKeyBinding:function(e,t){this._imperativ eKeyBindings[e]=t,this._prepKeyBindings(),this._resetKeyEventListeners()},remove OwnKeyBindings:function(){this._imperativeKeyBindings={},this._prepKeyBindings() ,this._resetKeyEventListeners()},keyboardEventMatchesKeys:function(e,t){for(var n=a(t),i=0;i<n.length;++i)if(r(n[i],e))return!0;return!1},_collectKeyBindings:fu nction(){var e=this.behaviors.map(function(e){return e.keyBindings});return e.in dexOf(this.keyBindings)===-1&&e.push(this.keyBindings),e},_prepKeyBindings:funct ion(){this._keyBindings={},this._collectKeyBindings().forEach(function(e){for(va r t in e)this._addKeyBinding(t,e[t])},this);for(var e in this._imperativeKeyBind ings)this._addKeyBinding(e,this._imperativeKeyBindings[e]);for(var t in this._ke yBindings)this._keyBindings[t].sort(function(e,t){var n=e[0].hasModifiers,i=t[0] .hasModifiers;return n===i?0:n?-1:1})},_addKeyBinding:function(e,t){a(e).forEach (function(e){this._keyBindings[e.event]=this._keyBindings[e.event]||[],this._key Bindings[e.event].push([e,t])},this)},_resetKeyEventListeners:function(){this._u nlistenKeyEventListeners(),this.isAttached&&this._listenKeyEventListeners()},_li stenKeyEventListeners:function(){this.keyEventTarget&&Object.keys(this._keyBindi ngs).forEach(function(e){var t=this._keyBindings[e],n=this._onKeyBindingEvent.bi nd(this,t);this._boundKeyHandlers.push([this.keyEventTarget,e,n]),this.keyEventT arget.addEventListener(e,n)},this)},_unlistenKeyEventListeners:function(){for(va r e,t,n,i;this._boundKeyHandlers.length;)e=this._boundKeyHandlers.pop(),t=e[0],n =e[1],i=e[2],t.removeEventListener(n,i)},_onKeyBindingEvent:function(e,t){if(thi s.stopKeyboardEventPropagation&&t.stopPropagation(),!t.defaultPrevented)for(var n=0;n<e.length;n++){var i=e[n][0],s=e[n][1];if(r(i,t)&&(this._triggerKeyHandler( i,s,t),t.defaultPrevented))return}},_triggerKeyHandler:function(e,t,n){var i=Obj ect.create(e);i.keyboardEvent=n;var r=new CustomEvent(e.event,{detail:i,cancelab le:!0});this[t].call(this,r),r.defaultPrevented&&n.preventDefault()}}}()</script > <script>Polymer.IronControlState={properties:{focused:{type:Boolean,value:!1,n otify:!0,readOnly:!0,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,noti fy:!0,observer:"_disabledChanged",reflectToAttribute:!0},_oldTabIndex:{type:Numb er},_boundFocusBlurHandler:{type:Function,value:function(){return this._focusBlu rHandler.bind(this)}}},observers:["_changedControlState(focused, disabled)"],rea dy:function(){this.addEventListener("focus",this._boundFocusBlurHandler,!0),this .addEventListener("blur",this._boundFocusBlurHandler,!0)},_focusBlurHandler:func tion(e){if(e.target===this)this._setFocused("focus"===e.type);else if(!this.shad owRoot){var t=Polymer.dom(e).localTarget;this.isLightDescendant(t)||this.fire(e. type,{sourceEvent:e},{node:this,bubbles:e.bubbles,cancelable:e.cancelable})}},_d isabledChanged:function(e,t){this.setAttribute("aria-disabled",e?"true":"false") ,this.style.pointerEvents=e?"none":"",e?(this._oldTabIndex=this.tabIndex,this._s etFocused(!1),this.tabIndex=-1,this.blur()):void 0!==this._oldTabIndex&&(this.ta bIndex=this._oldTabIndex)},_changedControlState:function(){this._controlStateCha nged&&this._controlStateChanged()}}</script> <script>Polymer.IronButtonStateImpl ={properties:{pressed:{type:Boolean,readOnly:!0,value:!1,reflectToAttribute:!0,o bserver:"_pressedChanged"},toggles:{type:Boolean,value:!1,reflectToAttribute:!0} ,active:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},pointerDown:{typ e:Boolean,readOnly:!0,value:!1},receivedFocusFromKeyboard:{type:Boolean,readOnly :!0},ariaActiveAttribute:{type:String,value:"aria-pressed",observer:"_ariaActive AttributeChanged"}},listeners:{down:"_downHandler",up:"_upHandler",tap:"_tapHand ler"},observers:["_detectKeyboardFocus(focused)","_activeChanged(active, ariaAct iveAttribute)"],keyBindings:{"enter:keydown":"_asyncClick","space:keydown":"_spa ceKeyDownHandler","space:keyup":"_spaceKeyUpHandler"},_mouseEventRe:/^mouse/,_ta pHandler:function(){this.toggles?this._userActivate(!this.active):this.active=!1 },_detectKeyboardFocus:function(e){this._setReceivedFocusFromKeyboard(!this.poin terDown&&e)},_userActivate:function(e){this.active!==e&&(this.active=e,this.fire ("change"))},_downHandler:function(e){this._setPointerDown(!0),this._setPressed( !0),this._setReceivedFocusFromKeyboard(!1)},_upHandler:function(){this._setPoint erDown(!1),this._setPressed(!1)},_spaceKeyDownHandler:function(e){var t=e.detail .keyboardEvent,i=Polymer.dom(t).localTarget;this.isLightDescendant(i)||(t.preven tDefault(),t.stopImmediatePropagation(),this._setPressed(!0))},_spaceKeyUpHandle r:function(e){var t=e.detail.keyboardEvent,i=Polymer.dom(t).localTarget;this.isL ightDescendant(i)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},_asy ncClick:function(){this.async(function(){this.click()},1)},_pressedChanged:funct ion(e){this._changedButtonState()},_ariaActiveAttributeChanged:function(e,t){t&& t!=e&&this.hasAttribute(t)&&this.removeAttribute(t)},_activeChanged:function(e,t ){this.toggles?this.setAttribute(this.ariaActiveAttribute,e?"true":"false"):this .removeAttribute(this.ariaActiveAttribute),this._changedButtonState()},_controlS tateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonSta te()},_changedButtonState:function(){this._buttonStateChanged&&this._buttonState Changed()}},Polymer.IronButtonState=[Polymer.IronA11yKeysBehavior,Polymer.IronBu ttonStateImpl]</script> <dom-module id="paper-ripple" assetpath="/res/imp/bower_ components/paper-ripple/"> <template> <style>:host{display:block;position:absolu te;border-radius:inherit;overflow:hidden;top:0;left:0;right:0;bottom:0;pointer-e vents:none}:host([animating]){-webkit-transform:translate(0,0);transform:transla te3d(0,0,0)}#background,#waves,.wave,.wave-container{pointer-events:none;positio n:absolute;top:0;left:0;width:100%;height:100%}#background,.wave{opacity:0}#wave s,.wave{overflow:hidden}.wave,.wave-container{border-radius:50%}:host(.circle) # background,:host(.circle) #waves{border-radius:50%}:host(.circle) .wave-containe r{overflow:hidden}</style> <div id="background"></div> <div id="waves"></div> </ template> </dom-module> <script>!function(){function t(t){this.element=t,this.wi dth=this.boundingRect.width,this.height=this.boundingRect.height,this.size=Math. max(this.width,this.height)}function i(t){this.element=t,this.color=window.getCo mputedStyle(t).color,this.wave=document.createElement("div"),this.waveContainer= document.createElement("div"),this.wave.style.backgroundColor=this.color,this.wa ve.classList.add("wave"),this.waveContainer.classList.add("wave-container"),Poly mer.dom(this.waveContainer).appendChild(this.wave),this.resetInteractionState()} var e={distance:function(t,i,e,n){var s=t-e,o=i-n;return Math.sqrt(s*s+o*o)},now :window.performance&&window.performance.now?window.performance.now.bind(window.p erformance):Date.now};t.prototype={get boundingRect(){return this.element.getBou ndingClientRect()},furthestCornerDistanceFrom:function(t,i){var n=e.distance(t,i ,0,0),s=e.distance(t,i,this.width,0),o=e.distance(t,i,0,this.height),a=e.distanc e(t,i,this.width,this.height);return Math.max(n,s,o,a)}},i.MAX_RADIUS=300,i.prot otype={get recenters(){return this.element.recenters},get center(){return this.e lement.center},get mouseDownElapsed(){var t;return this.mouseDownStart?(t=e.now( )-this.mouseDownStart,this.mouseUpStart&&(t-=this.mouseUpElapsed),t):0},get mous eUpElapsed(){return this.mouseUpStart?e.now()-this.mouseUpStart:0},get mouseDown ElapsedSeconds(){return this.mouseDownElapsed/1e3},get mouseUpElapsedSeconds(){r eturn this.mouseUpElapsed/1e3},get mouseInteractionSeconds(){return this.mouseDo wnElapsedSeconds+this.mouseUpElapsedSeconds},get initialOpacity(){return this.el ement.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDeca yVelocity},get radius(){var t=this.containerMetrics.width*this.containerMetrics. width,e=this.containerMetrics.height*this.containerMetrics.height,n=1.1*Math.min (Math.sqrt(t+e),i.MAX_RADIUS)+5,s=1.1-.2*(n/i.MAX_RADIUS),o=this.mouseInteractio nSeconds/s,a=n*(1-Math.pow(80,-o));return Math.abs(a)},get opacity(){return this .mouseUpStart?Math.max(0,this.initialOpacity-this.mouseUpElapsedSeconds*this.opa cityDecayVelocity):this.initialOpacity},get outerOpacity(){var t=.3*this.mouseUp ElapsedSeconds,i=this.opacity;return Math.max(0,Math.min(t,i))},get isOpacityFul lyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,i.MAX_ RADIUS)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&th is.radius>=Math.min(this.maxRadius,i.MAX_RADIUS)},get isAnimationComplete(){retu rn this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get t ranslationFraction(){return Math.min(1,this.radius/this.containerMetrics.size*2/ Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction* (this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+thi s.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){ret urn this.mouseDownStart&&!this.mouseUpStart},resetInteractionState:function(){th is.maxRadius=0,this.mouseDownStart=0,this.mouseUpStart=0,this.xStart=0,this.ySta rt=0,this.xEnd=0,this.yEnd=0,this.slideDistance=0,this.containerMetrics=new t(th is.element)},draw:function(){var t,i,e;this.wave.style.opacity=this.opacity,t=th is.radius/(this.containerMetrics.size/2),i=this.xNow-this.containerMetrics.width /2,e=this.yNow-this.containerMetrics.height/2,this.waveContainer.style.webkitTra nsform="translate("+i+"px, "+e+"px)",this.waveContainer.style.transform="transla te3d("+i+"px, "+e+"px, 0)",this.wave.style.webkitTransform="scale("+t+","+t+")", this.wave.style.transform="scale3d("+t+","+t+",1)"},downAction:function(t){var i =this.containerMetrics.width/2,n=this.containerMetrics.height/2;this.resetIntera ctionState(),this.mouseDownStart=e.now(),this.center?(this.xStart=i,this.yStart= n,this.slideDistance=e.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)):(t his.xStart=t?t.detail.x-this.containerMetrics.boundingRect.left:this.containerMe trics.width/2,this.yStart=t?t.detail.y-this.containerMetrics.boundingRect.top:th is.containerMetrics.height/2),this.recenters&&(this.xEnd=i,this.yEnd=n,this.slid eDistance=e.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)),this.maxRadiu s=this.containerMetrics.furthestCornerDistanceFrom(this.xStart,this.yStart),this .waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.siz e)/2+"px",this.waveContainer.style.left=(this.containerMetrics.width-this.contai nerMetrics.size)/2+"px",this.waveContainer.style.width=this.containerMetrics.siz e+"px",this.waveContainer.style.height=this.containerMetrics.size+"px"},upAction :function(t){this.isMouseDown&&(this.mouseUpStart=e.now())},remove:function(){Po lymer.dom(this.waveContainer.parentNode).removeChild(this.waveContainer)}},Polym er({is:"paper-ripple",behaviors:[Polymer.IronA11yKeysBehavior],properties:{initi alOpacity:{type:Number,value:.25},opacityDecayVelocity:{type:Number,value:.8},re centers:{type:Boolean,value:!1},center:{type:Boolean,value:!1},ripples:{type:Arr ay,value:function(){return[]}},animating:{type:Boolean,readOnly:!0,reflectToAttr ibute:!0,value:!1},holdDown:{type:Boolean,value:!1,observer:"_holdDownChanged"}, noink:{type:Boolean,value:!1},_animating:{type:Boolean},_boundAnimate:{type:Func tion,value:function(){return this.animate.bind(this)}}},get target(){return this .keyEventTarget},keyBindings:{"enter:keydown":"_onEnterKeydown","space:keydown": "_onSpaceKeydown","space:keyup":"_onSpaceKeyup"},attached:function(){11==this.pa rentNode.nodeType?this.keyEventTarget=Polymer.dom(this).getOwnerRoot().host:this .keyEventTarget=this.parentNode;var t=this.keyEventTarget;this.listen(t,"up","ui UpAction"),this.listen(t,"down","uiDownAction")},detached:function(){this.unlist en(this.keyEventTarget,"up","uiUpAction"),this.unlisten(this.keyEventTarget,"dow n","uiDownAction"),this.keyEventTarget=null},get shouldKeepAnimating(){for(var t =0;t<this.ripples.length;++t)if(!this.ripples[t].isAnimationComplete)return!0;re turn!1},simulatedRipple:function(){this.downAction(null),this.async(function(){t his.upAction()},1)},uiDownAction:function(t){this.noink||this.downAction(t)},dow nAction:function(t){if(!(this.holdDown&&this.ripples.length>0)){var i=this.addRi pple();i.downAction(t),this._animating||(this._animating=!0,this.animate())}},ui UpAction:function(t){this.noink||this.upAction(t)},upAction:function(t){this.hol dDown||(this.ripples.forEach(function(i){i.upAction(t)}),this._animating=!0,this .animate())},onAnimationComplete:function(){this._animating=!1,this.$.background .style.backgroundColor=null,this.fire("transitionend")},addRipple:function(){var t=new i(this);return Polymer.dom(this.$.waves).appendChild(t.waveContainer),thi s.$.background.style.backgroundColor=t.color,this.ripples.push(t),this._setAnima ting(!0),t},removeRipple:function(t){var i=this.ripples.indexOf(t);i<0||(this.ri pples.splice(i,1),t.remove(),this.ripples.length||this._setAnimating(!1))},anima te:function(){if(this._animating){var t,i;for(t=0;t<this.ripples.length;++t)i=th is.ripples[t],i.draw(),this.$.background.style.opacity=i.outerOpacity,i.isOpacit yFullyDecayed&&!i.isRestingAtMaxRadius&&this.removeRipple(i);this.shouldKeepAnim ating||0!==this.ripples.length?window.requestAnimationFrame(this._boundAnimate): this.onAnimationComplete()}},_onEnterKeydown:function(){this.uiDownAction(),this .async(this.uiUpAction,1)},_onSpaceKeydown:function(){this.uiDownAction()},_onSp aceKeyup:function(){this.uiUpAction()},_holdDownChanged:function(t,i){void 0!==i &&(t?this.downAction():this.upAction())}})}()</script> <script>Polymer.PaperRipp leBehavior={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleCon tainer:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRi pple()},_downHandler:function(e){Polymer.IronButtonStateImpl._downHandler.call(t his,e),this.pressed&&this.ensureRipple(e)},ensureRipple:function(e){if(!this.has Ripple()){this._ripple=this._createRipple(),this._ripple.noink=this.noink;var i= this._rippleContainer||this.root;if(i&&Polymer.dom(i).appendChild(this._ripple), e){var n=Polymer.dom(this._rippleContainer||this),t=Polymer.dom(e).rootTarget;n. deepContains(t)&&this._ripple.uiDownAction(e)}}},getRipple:function(){return thi s.ensureRipple(),this._ripple},hasRipple:function(){return Boolean(this._ripple) },_createRipple:function(){return document.createElement("paper-ripple")},_noink Changed:function(e){this.hasRipple()&&(this._ripple.noink=e)}}</script> <script> Polymer.PaperButtonBehaviorImpl={properties:{elevation:{type:Number,reflectToAtt ribute:!0,readOnly:!0}},observers:["_calculateElevation(focused, disabled, activ e, pressed, receivedFocusFromKeyboard)","_computeKeyboardClass(receivedFocusFrom Keyboard)"],hostAttributes:{role:"button",tabindex:"0",animated:!0},_calculateEl evation:function(){var e=1;this.disabled?e=0:this.active||this.pressed?e=4:this. receivedFocusFromKeyboard&&(e=3),this._setElevation(e)},_computeKeyboardClass:fu nction(e){this.toggleClass("keyboard-focus",e)},_spaceKeyDownHandler:function(e) {Polymer.IronButtonStateImpl._spaceKeyDownHandler.call(this,e),this.hasRipple()& &this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},_spaceKeyUpHand ler:function(e){Polymer.IronButtonStateImpl._spaceKeyUpHandler.call(this,e),this .hasRipple()&&this._ripple.uiUpAction()}},Polymer.PaperButtonBehavior=[Polymer.I ronButtonState,Polymer.IronControlState,Polymer.PaperRippleBehavior,Polymer.Pape rButtonBehaviorImpl]</script> <style is="custom-style">:root{--shadow-transition :{transition:box-shadow .28s cubic-bezier(.4,0,.2,1)};--shadow-none:{box-shadow: none};--shadow-elevation-2dp:{box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 3px 1px -2px rgba(0,0,0,.2)};--shadow-elevation-3dp:{box-shad ow:0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12),0 3px 3px -2px rgba(0 ,0,0,.4)};--shadow-elevation-4dp:{box-shadow:0 4px 5px 0 rgba(0,0,0,.14),0 1px 1 0px 0 rgba(0,0,0,.12),0 2px 4px -1px rgba(0,0,0,.4)};--shadow-elevation-6dp:{box -shadow:0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.4)};--shadow-elevation-8dp:{box-shadow:0 8px 10px 1px rgba(0,0,0,.1 4),0 3px 14px 2px rgba(0,0,0,.12),0 5px 5px -3px rgba(0,0,0,.4)};--shadow-elevat ion-12dp:{box-shadow:0 12px 16px 1px rgba(0,0,0,.14),0 4px 22px 3px rgba(0,0,0,. 12),0 6px 7px -4px rgba(0,0,0,.4)};--shadow-elevation-16dp:{box-shadow:0 16px 24 px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12),0 8px 10px -5px rgba(0,0,0 ,.4)};}</style> <dom-module id="paper-material-shared-styles" assetpath="/res/im p/bower_components/paper-material/"> <template> <style>:host{display:block;posit ion:relative}:host([elevation="1"]){@apply(--shadow-elevation-2dp)}:host([elevat ion="2"]){@apply(--shadow-elevation-4dp)}:host([elevation="3"]){@apply(--shadow- elevation-6dp)}:host([elevation="4"]){@apply(--shadow-elevation-8dp)}:host([elev ation="5"]){@apply(--shadow-elevation-16dp)}</style> </template> </dom-module> < style is="custom-style">:root{--google-red-100:#f4c7c3;--google-red-300:#e67c73; --google-red-500:#db4437;--google-red-700:#c53929;--google-blue-100:#c6dafc;--go ogle-blue-300:#7baaf7;--google-blue-500:#4285f4;--google-blue-700:#3367d6;--goog le-green-100:#b7e1cd;--google-green-300:#57bb8a;--google-green-500:#0f9d58;--goo gle-green-700:#0b8043;--google-yellow-100:#fce8b2;--google-yellow-300:#f7cb4d;-- google-yellow-500:#f4b400;--google-yellow-700:#f09300;--google-grey-100:#f5f5f5; --google-grey-300:#e0e0e0;--google-grey-500:#9e9e9e;--google-grey-700:#616161;-- paper-red-50:#ffebee;--paper-red-100:#ffcdd2;--paper-red-200:#ef9a9a;--paper-red -300:#e57373;--paper-red-400:#ef5350;--paper-red-500:#f44336;--paper-red-600:#e5 3935;--paper-red-700:#d32f2f;--paper-red-800:#c62828;--paper-red-900:#b71c1c;--p aper-red-a100:#ff8a80;--paper-red-a200:#ff5252;--paper-red-a400:#ff1744;--paper- red-a700:#d50000;--paper-pink-50:#fce4ec;--paper-pink-100:#f8bbd0;--paper-pink-2 00:#f48fb1;--paper-pink-300:#f06292;--paper-pink-400:#ec407a;--paper-pink-500:#e 91e63;--paper-pink-600:#d81b60;--paper-pink-700:#c2185b;--paper-pink-800:#ad1457 ;--paper-pink-900:#880e4f;--paper-pink-a100:#ff80ab;--paper-pink-a200:#ff4081;-- paper-pink-a400:#f50057;--paper-pink-a700:#c51162;--paper-purple-50:#f3e5f5;--pa per-purple-100:#e1bee7;--paper-purple-200:#ce93d8;--paper-purple-300:#ba68c8;--p aper-purple-400:#ab47bc;--paper-purple-500:#9c27b0;--paper-purple-600:#8e24aa;-- paper-purple-700:#7b1fa2;--paper-purple-800:#6a1b9a;--paper-purple-900:#4a148c;- -paper-purple-a100:#ea80fc;--paper-purple-a200:#e040fb;--paper-purple-a400:#d500 f9;--paper-purple-a700:#aa00ff;--paper-deep-purple-50:#ede7f6;--paper-deep-purpl e-100:#d1c4e9;--paper-deep-purple-200:#b39ddb;--paper-deep-purple-300:#9575cd;-- paper-deep-purple-400:#7e57c2;--paper-deep-purple-500:#673ab7;--paper-deep-purpl e-600:#5e35b1;--paper-deep-purple-700:#512da8;--paper-deep-purple-800:#4527a0;-- paper-deep-purple-900:#311b92;--paper-deep-purple-a100:#b388ff;--paper-deep-purp le-a200:#7c4dff;--paper-deep-purple-a400:#651fff;--paper-deep-purple-a700:#6200e a;--paper-indigo-50:#e8eaf6;--paper-indigo-100:#c5cae9;--paper-indigo-200:#9fa8d a;--paper-indigo-300:#7986cb;--paper-indigo-400:#5c6bc0;--paper-indigo-500:#3f51 b5;--paper-indigo-600:#3949ab;--paper-indigo-700:#303f9f;--paper-indigo-800:#283 593;--paper-indigo-900:#1a237e;--paper-indigo-a100:#8c9eff;--paper-indigo-a200:# 536dfe;--paper-indigo-a400:#3d5afe;--paper-indigo-a700:#304ffe;--paper-blue-50:# e3f2fd;--paper-blue-100:#bbdefb;--paper-blue-200:#90caf9;--paper-blue-300:#64b5f 6;--paper-blue-400:#42a5f5;--paper-blue-500:#2196f3;--paper-blue-600:#1e88e5;--p aper-blue-700:#1976d2;--paper-blue-800:#1565c0;--paper-blue-900:#0d47a1;--paper- blue-a100:#82b1ff;--paper-blue-a200:#448aff;--paper-blue-a400:#2979ff;--paper-bl ue-a700:#2962ff;--paper-light-blue-50:#e1f5fe;--paper-light-blue-100:#b3e5fc;--p aper-light-blue-200:#81d4fa;--paper-light-blue-300:#4fc3f7;--paper-light-blue-40 0:#29b6f6;--paper-light-blue-500:#03a9f4;--paper-light-blue-600:#039be5;--paper- light-blue-700:#0288d1;--paper-light-blue-800:#0277bd;--paper-light-blue-900:#01 579b;--paper-light-blue-a100:#80d8ff;--paper-light-blue-a200:#40c4ff;--paper-lig ht-blue-a400:#00b0ff;--paper-light-blue-a700:#0091ea;--paper-cyan-50:#e0f7fa;--p aper-cyan-100:#b2ebf2;--paper-cyan-200:#80deea;--paper-cyan-300:#4dd0e1;--paper- cyan-400:#26c6da;--paper-cyan-500:#00bcd4;--paper-cyan-600:#00acc1;--paper-cyan- 700:#0097a7;--paper-cyan-800:#00838f;--paper-cyan-900:#006064;--paper-cyan-a100: #84ffff;--paper-cyan-a200:#18ffff;--paper-cyan-a400:#00e5ff;--paper-cyan-a700:#0 0b8d4;--paper-teal-50:#e0f2f1;--paper-teal-100:#b2dfdb;--paper-teal-200:#80cbc4; --paper-teal-300:#4db6ac;--paper-teal-400:#26a69a;--paper-teal-500:#009688;--pap er-teal-600:#00897b;--paper-teal-700:#00796b;--paper-teal-800:#00695c;--paper-te al-900:#004d40;--paper-teal-a100:#a7ffeb;--paper-teal-a200:#64ffda;--paper-teal- a400:#1de9b6;--paper-teal-a700:#00bfa5;--paper-green-50:#e8f5e9;--paper-green-10 0:#c8e6c9;--paper-green-200:#a5d6a7;--paper-green-300:#81c784;--paper-green-400: #66bb6a;--paper-green-500:#4caf50;--paper-green-600:#43a047;--paper-green-700:#3 88e3c;--paper-green-800:#2e7d32;--paper-green-900:#1b5e20;--paper-green-a100:#b9 f6ca;--paper-green-a200:#69f0ae;--paper-green-a400:#00e676;--paper-green-a700:#0 0c853;--paper-light-green-50:#f1f8e9;--paper-light-green-100:#dcedc8;--paper-lig ht-green-200:#c5e1a5;--paper-light-green-300:#aed581;--paper-light-green-400:#9c cc65;--paper-light-green-500:#8bc34a;--paper-light-green-600:#7cb342;--paper-lig ht-green-700:#689f38;--paper-light-green-800:#558b2f;--paper-light-green-900:#33 691e;--paper-light-green-a100:#ccff90;--paper-light-green-a200:#b2ff59;--paper-l ight-green-a400:#76ff03;--paper-light-green-a700:#64dd17;--paper-lime-50:#f9fbe7 ;--paper-lime-100:#f0f4c3;--paper-lime-200:#e6ee9c;--paper-lime-300:#dce775;--pa per-lime-400:#d4e157;--paper-lime-500:#cddc39;--paper-lime-600:#c0ca33;--paper-l ime-700:#afb42b;--paper-lime-800:#9e9d24;--paper-lime-900:#827717;--paper-lime-a 100:#f4ff81;--paper-lime-a200:#eeff41;--paper-lime-a400:#c6ff00;--paper-lime-a70 0:#aeea00;--paper-yellow-50:#fffde7;--paper-yellow-100:#fff9c4;--paper-yellow-20 0:#fff59d;--paper-yellow-300:#fff176;--paper-yellow-400:#ffee58;--paper-yellow-5 00:#ffeb3b;--paper-yellow-600:#fdd835;--paper-yellow-700:#fbc02d;--paper-yellow- 800:#f9a825;--paper-yellow-900:#f57f17;--paper-yellow-a100:#ffff8d;--paper-yello w-a200:#ffff00;--paper-yellow-a400:#ffea00;--paper-yellow-a700:#ffd600;--paper-a mber-50:#fff8e1;--paper-amber-100:#ffecb3;--paper-amber-200:#ffe082;--paper-ambe r-300:#ffd54f;--paper-amber-400:#ffca28;--paper-amber-500:#ffc107;--paper-amber- 600:#ffb300;--paper-amber-700:#ffa000;--paper-amber-800:#ff8f00;--paper-amber-90 0:#ff6f00;--paper-amber-a100:#ffe57f;--paper-amber-a200:#ffd740;--paper-amber-a4 00:#ffc400;--paper-amber-a700:#ffab00;--paper-orange-50:#fff3e0;--paper-orange-1 00:#ffe0b2;--paper-orange-200:#ffcc80;--paper-orange-300:#ffb74d;--paper-orange- 400:#ffa726;--paper-orange-500:#ff9800;--paper-orange-600:#fb8c00;--paper-orange -700:#f57c00;--paper-orange-800:#ef6c00;--paper-orange-900:#e65100;--paper-orang e-a100:#ffd180;--paper-orange-a200:#ffab40;--paper-orange-a400:#ff9100;--paper-o range-a700:#ff6500;--paper-deep-orange-50:#fbe9e7;--paper-deep-orange-100:#ffccb c;--paper-deep-orange-200:#ffab91;--paper-deep-orange-300:#ff8a65;--paper-deep-o range-400:#ff7043;--paper-deep-orange-500:#ff5722;--paper-deep-orange-600:#f4511 e;--paper-deep-orange-700:#e64a19;--paper-deep-orange-800:#d84315;--paper-deep-o range-900:#bf360c;--paper-deep-orange-a100:#ff9e80;--paper-deep-orange-a200:#ff6 e40;--paper-deep-orange-a400:#ff3d00;--paper-deep-orange-a700:#dd2c00;--paper-br own-50:#efebe9;--paper-brown-100:#d7ccc8;--paper-brown-200:#bcaaa4;--paper-brown -300:#a1887f;--paper-brown-400:#8d6e63;--paper-brown-500:#795548;--paper-brown-6 00:#6d4c41;--paper-brown-700:#5d4037;--paper-brown-800:#4e342e;--paper-brown-900 :#3e2723;--paper-grey-50:#fafafa;--paper-grey-100:#f5f5f5;--paper-grey-200:#eeee ee;--paper-grey-300:#e0e0e0;--paper-grey-400:#bdbdbd;--paper-grey-500:#9e9e9e;-- paper-grey-600:#757575;--paper-grey-700:#616161;--paper-grey-800:#424242;--paper -grey-900:#212121;--paper-blue-grey-50:#eceff1;--paper-blue-grey-100:#cfd8dc;--p aper-blue-grey-200:#b0bec5;--paper-blue-grey-300:#90a4ae;--paper-blue-grey-400:# 78909c;--paper-blue-grey-500:#607d8b;--paper-blue-grey-600:#546e7a;--paper-blue- grey-700:#455a64;--paper-blue-grey-800:#37474f;--paper-blue-grey-900:#263238;--d ark-divider-opacity:0.12;--dark-disabled-opacity:0.38;--dark-secondary-opacity:0 .54;--dark-primary-opacity:0.87;--light-divider-opacity:0.12;--light-disabled-op acity:0.3;--light-secondary-opacity:0.7;--light-primary-opacity:1.0}</style> <st yle is="custom-style">:root{--primary-text-color:var(--light-theme-text-color);- -primary-background-color:var(--light-theme-background-color);--secondary-text-c olor:var(--light-theme-secondary-color);--disabled-text-color:var(--light-theme- disabled-color);--divider-color:var(--light-theme-divider-color);--error-color:v ar(--paper-deep-orange-a700);--primary-color:var(--paper-indigo-500);--light-pri mary-color:var(--paper-indigo-100);--dark-primary-color:var(--paper-indigo-700); --accent-color:var(--paper-pink-a200);--light-accent-color:var(--paper-pink-a100 );--dark-accent-color:var(--paper-pink-a400);--light-theme-background-color:#fff fff;--light-theme-base-color:#000000;--light-theme-text-color:var(--paper-grey-9 00);--light-theme-secondary-color:#737373;--light-theme-disabled-color:#9b9b9b;- -light-theme-divider-color:#dbdbdb;--dark-theme-background-color:var(--paper-gre y-900);--dark-theme-base-color:#ffffff;--dark-theme-text-color:#ffffff;--dark-th eme-secondary-color:#bcbcbc;--dark-theme-disabled-color:#646464;--dark-theme-div ider-color:#3c3c3c;--text-primary-color:var(--dark-theme-text-color);--default-p rimary-color:var(--primary-color)}</style> <dom-module id="paper-fab" assetpath= "/res/imp/bower_components/paper-fab/"> <template strip-whitespace=""> <style in clude="paper-material-shared-styles">:host{@apply(--layout-vertical);@apply(--la yout-center-center);background:var(--paper-fab-background,--accent-color);border -radius:50%;box-sizing:border-box;color:var(--text-primary-color);cursor:pointer ;height:56px;min-width:0;outline:0;padding:16px;position:relative;-moz-user-sele ct:none;-ms-user-select:none;-webkit-user-select:none;user-select:none;width:56p x;z-index:0;-webkit-tap-highlight-color:transparent;-webkit-tap-highlight-color: transparent;@apply(--paper-fab)}[hidden]{display:none!important}:host([mini]){wi dth:40px;height:40px;padding:8px;@apply(--paper-fab-mini)}:host([disabled]){colo r:var(--paper-fab-disabled-text,--paper-grey-500);background:var(--paper-fab-dis abled-background,--paper-grey-300);@apply(--paper-fab-disabled)}iron-icon{@apply (--paper-fab-iron-icon)}span{width:100%;white-space:nowrap;overflow:hidden;text- overflow:ellipsis;text-align:center}:host(.keyboard-focus){background:var(--pape r-fab-keyboard-focus-background,--paper-pink-900)}</style> <iron-icon id="icon" hidden$="{{!_computeIsIconFab(icon, src)}}" src="[[src]]" icon="[[icon]]"></iron -icon> <span hidden$="{{_computeIsIconFab(icon, src)}}">{{label}}</span> </templ ate> <script>Polymer({is:"paper-fab",behaviors:[Polymer.PaperButtonBehavior],pro perties:{src:{type:String,value:""},icon:{type:String,value:""},mini:{type:Boole an,value:!1,reflectToAttribute:!0},label:{type:String,observer:"_labelChanged"}} ,_labelChanged:function(){this.setAttribute("aria-label",this.label)},_computeIs IconFab:function(e,t){return e.length>0||t.length>0}})</script> </dom-module> <s cript>Polymer.PaperSpinnerBehavior={listeners:{animationend:"__reset",webkitAnim ationEnd:"__reset"},properties:{active:{type:Boolean,value:!1,reflectToAttribute :!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__alt Changed"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:funct ion(e,t){return[e||t?"active":"",t?"cooldown":""].join(" ")},__activeChanged:fun ction(e,t){this.__setAriaHidden(!e),this.__coolingDown=!e&&t},__altChanged:funct ion(e){e===this.getPropertyInfo("alt").value?this.alt=this.getAttribute("aria-la bel")||e:(this.__setAriaHidden(""===e),this.setAttribute("aria-label",e))},__set AriaHidden:function(e){var t="aria-hidden";e?this.setAttribute(t,"true"):this.re moveAttribute(t)},__reset:function(){this.active=!1,this.__coolingDown=!1}}</scr ipt> <dom-module id="paper-spinner-styles" assetpath="/res/imp/bower_components/ paper-spinner/"> <template> <style>:host{display:inline-block;position:relative; width:28px;height:28px;--paper-spinner-container-rotation-duration:1568ms;--pape r-spinner-expand-contract-duration:1333ms;--paper-spinner-full-cycle-duration:53 32ms;--paper-spinner-cooldown-duration:400ms}#spinnerContainer{width:100%;height :100%;direction:ltr}#spinnerContainer.active{-webkit-animation:container-rotate var(--paper-spinner-container-rotation-duration) linear infinite;animation:conta iner-rotate var(--paper-spinner-container-rotation-duration) linear infinite}@-w ebkit-keyframes container-rotate{to{-webkit-transform:rotate(360deg)}}@keyframes container-rotate{to{transform:rotate(360deg)}}.spinner-layer{position:absolute; width:100%;height:100%;opacity:0;white-space:nowrap;border-color:var(--paper-spi nner-color,--google-blue-500)}.layer-1{border-color:var(--paper-spinner-layer-1- color,--google-blue-500)}.layer-2{border-color:var(--paper-spinner-layer-2-color ,--google-red-500)}.layer-3{border-color:var(--paper-spinner-layer-3-color,--goo gle-yellow-500)}.layer-4{border-color:var(--paper-spinner-layer-4-color,--google -green-500)}.active .spinner-layer{-webkit-animation-name:fill-unfill-rotate;-we bkit-animation-duration:var(--paper-spinner-full-cycle-duration);-webkit-animati on-timing-function:cubic-bezier(.4,0,.2,1);-webkit-animation-iteration-count:inf inite;animation-name:fill-unfill-rotate;animation-duration:var(--paper-spinner-f ull-cycle-duration);animation-timing-function:cubic-bezier(.4,0,.2,1);animation- iteration-count:infinite;opacity:1}.active .spinner-layer.layer-1{-webkit-animat ion-name:fill-unfill-rotate,layer-1-fade-in-out;animation-name:fill-unfill-rotat e,layer-1-fade-in-out}.active .spinner-layer.layer-2{-webkit-animation-name:fill -unfill-rotate,layer-2-fade-in-out;animation-name:fill-unfill-rotate,layer-2-fad e-in-out}.active .spinner-layer.layer-3{-webkit-animation-name:fill-unfill-rotat e,layer-3-fade-in-out;animation-name:fill-unfill-rotate,layer-3-fade-in-out}.act ive .spinner-layer.layer-4{-webkit-animation-name:fill-unfill-rotate,layer-4-fad e-in-out;animation-name:fill-unfill-rotate,layer-4-fade-in-out}@-webkit-keyframe s fill-unfill-rotate{12.5%{-webkit-transform:rotate(135deg)}25%{-webkit-transfor m:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg)}50%{-webkit-transform:ro tate(540deg)}62.5%{-webkit-transform:rotate(675deg)}75%{-webkit-transform:rotate (810deg)}87.5%{-webkit-transform:rotate(945deg)}to{-webkit-transform:rotate(1080 deg)}}@keyframes fill-unfill-rotate{12.5%{transform:rotate(135deg)}25%{transform :rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5 %{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(9 45deg)}to{transform:rotate(1080deg)}}@-webkit-keyframes layer-1-fade-in-out{0%{o pacity:1}25%{opacity:1}26%{opacity:0}89%{opacity:0}90%{opacity:1}to{opacity:1}}@ keyframes layer-1-fade-in-out{0%{opacity:1}25%{opacity:1}26%{opacity:0}89%{opaci ty:0}90%{opacity:1}to{opacity:1}}@-webkit-keyframes layer-2-fade-in-out{0%{opaci ty:0}15%{opacity:0}25%{opacity:1}50%{opacity:1}51%{opacity:0}to{opacity:0}}@keyf rames layer-2-fade-in-out{0%{opacity:0}15%{opacity:0}25%{opacity:1}50%{opacity:1 }51%{opacity:0}to{opacity:0}}@-webkit-keyframes layer-3-fade-in-out{0%{opacity:0 }40%{opacity:0}50%{opacity:1}75%{opacity:1}76%{opacity:0}to{opacity:0}}@keyframe s layer-3-fade-in-out{0%{opacity:0}40%{opacity:0}50%{opacity:1}75%{opacity:1}76% {opacity:0}to{opacity:0}}@-webkit-keyframes layer-4-fade-in-out{0%{opacity:0}65% {opacity:0}75%{opacity:1}90%{opacity:1}to{opacity:0}}@keyframes layer-4-fade-in- out{0%{opacity:0}65%{opacity:0}75%{opacity:1}90%{opacity:1}to{opacity:0}}.circle -clipper{display:inline-block;position:relative;width:50%;height:100%;overflow:h idden;border-color:inherit}.spinner-layer::after{left:45%;width:10%;border-top-s tyle:solid}.circle-clipper::after,.spinner-layer::after{content:'';box-sizing:bo rder-box;position:absolute;top:0;border-width:var(--paper-spinner-stroke-width,3 px);border-color:inherit;border-radius:50%}.circle-clipper::after{bottom:0;width :200%;border-style:solid;border-bottom-color:transparent!important}.circle-clipp er.left::after{left:0;border-right-color:transparent!important;-webkit-transform :rotate(129deg);transform:rotate(129deg)}.circle-clipper.right::after{left:-100% ;border-left-color:transparent!important;-webkit-transform:rotate(-129deg);trans form:rotate(-129deg)}.active .circle-clipper::after,.active .gap-patch::after{-w ebkit-animation-duration:var(--paper-spinner-expand-contract-duration);-webkit-a nimation-timing-function:cubic-bezier(.4,0,.2,1);-webkit-animation-iteration-cou nt:infinite;animation-duration:var(--paper-spinner-expand-contract-duration);ani mation-timing-function:cubic-bezier(.4,0,.2,1);animation-iteration-count:infinit e}.active .circle-clipper.left::after{-webkit-animation-name:left-spin;animation -name:left-spin}.active .circle-clipper.right::after{-webkit-animation-name:righ t-spin;animation-name:right-spin}@-webkit-keyframes left-spin{0%{-webkit-transfo rm:rotate(130deg)}50%{-webkit-transform:rotate(-5deg)}to{-webkit-transform:rotat e(130deg)}}@keyframes left-spin{0%{transform:rotate(130deg)}50%{transform:rotate (-5deg)}to{transform:rotate(130deg)}}@-webkit-keyframes right-spin{0%{-webkit-tr ansform:rotate(-130deg)}50%{-webkit-transform:rotate(5deg)}to{-webkit-transform: rotate(-130deg)}}@keyframes right-spin{0%{transform:rotate(-130deg)}50%{transfor m:rotate(5deg)}to{transform:rotate(-130deg)}}#spinnerContainer.cooldown{-webkit- animation:container-rotate var(--paper-spinner-container-rotation-duration) line ar infinite,fade-out var(--paper-spinner-cooldown-duration) cubic-bezier(.4,0,.2 ,1);animation:container-rotate var(--paper-spinner-container-rotation-duration) linear infinite,fade-out var(--paper-spinner-cooldown-duration) cubic-bezier(.4, 0,.2,1)}@-webkit-keyframes fade-out{0%{opacity:1}to{opacity:0}}@keyframes fade-o ut{0%{opacity:1}to{opacity:0}}</style> </template> </dom-module> <dom-module id= "paper-spinner-lite" assetpath="/res/imp/bower_components/paper-spinner/"> <temp late strip-whitespace=""> <style include="paper-spinner-styles"></style> <div id ="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDow n)]]"> <div class="spinner-layer"> <div class="circle-clipper left"></div> <div class="circle-clipper right"></div> </div> </div> </template> <script>Polymer({i s:"paper-spinner-lite",behaviors:[Polymer.PaperSpinnerBehavior]})</script> </dom -module> <script>!function(){"use strict";Polymer.IronJsonpLibraryBehavior={prop erties:{libraryLoaded:{type:Boolean,value:!1,notify:!0,readOnly:!0},libraryError Message:{type:String,value:null,notify:!0,readOnly:!0}},observers:["_libraryUrlC hanged(libraryUrl)"],_libraryUrlChanged:function(r){this._isReady&&this.libraryU rl&&this._loadLibrary()},_libraryLoadCallback:function(r,i){r?(console.warn("Lib rary load failed:",r.message),this._setLibraryErrorMessage(r.message)):(this._se tLibraryErrorMessage(null),this._setLibraryLoaded(!0),this.notifyEvent&&this.fir e(this.notifyEvent,i))},_loadLibrary:function(){r.require(this.libraryUrl,this._ libraryLoadCallback.bind(this),this.callbackName)},ready:function(){this._isRead y=!0,this.libraryUrl&&this._loadLibrary()}};var r={apiMap:{},require:function(r, t,e){var a=this.nameFromUrl(r);this.apiMap[a]||(this.apiMap[a]=new i(a,r,e)),thi s.apiMap[a].requestNotify(t)},nameFromUrl:function(r){return r.replace(/[\:\/\%\ ?\&\.\=\-\,]/g,"_")+"_api"}},i=function(r,i,t){if(this.notifiers=[],!t){if(!(i.i ndexOf(this.callbackMacro)>=0))return void(this.error=new Error("IronJsonpLibrar yBehavior a %%callback%% parameter is required in libraryUrl"));t=r+"_loaded",i= i.replace(this.callbackMacro,t)}this.callbackName=t,window[this.callbackName]=th is.success.bind(this),this.addScript(i)};i.prototype={callbackMacro:"%%callback% %",loaded:!1,addScript:function(r){var i=document.createElement("script");i.src= r,i.onerror=this.handleError.bind(this);var t=document.querySelector("script")|| document.body;t.parentNode.insertBefore(i,t),this.script=i},removeScript:functio n(){this.script.parentNode&&this.script.parentNode.removeChild(this.script),this .script=null},handleError:function(r){this.error=new Error("Library failed to lo ad"),this.notifyAll(),this.cleanup()},success:function(){this.loaded=!0,this.res ult=Array.prototype.slice.call(arguments),this.notifyAll(),this.cleanup()},clean up:function(){delete window[this.callbackName]},notifyAll:function(){this.notifi ers.forEach(function(r){r(this.error,this.result)}.bind(this)),this.notifiers=[] },requestNotify:function(r){this.loaded||this.error?r(this.error,this.result):th is.notifiers.push(r)}}}()</script> <script>Polymer({is:"iron-jsonp-library",beha viors:[Polymer.IronJsonpLibraryBehavior],properties:{libraryUrl:String,callbackN ame:String,notifyEvent:String}})</script> <script>Polymer({is:"google-js-api",be haviors:[Polymer.IronJsonpLibraryBehavior],properties:{libraryUrl:{type:String,v alue:"https://apis.google.com/js/api.js?onload=%%callback%%"},notifyEvent:{type: String,value:"js-api-load"}},get api(){return gapi}})</script> <script>!function (){var e={appPackageName:"apppackagename",clientId:"clientid",cookiePolicy:"cook iepolicy",hostedDomain:"hostedDomain",openidPrompt:"prompt",requestVisibleAction s:"requestvisibleactions"},t={_clientId:null,get clientId(){return this._clientI d},set clientId(e){if(this._clientId&&e&&e!=this._clientId)throw new Error("clie ntId cannot change. Values do not match. New: "+e+" Old:"+this._clientId);e&&e!= this._clientId&&(this._clientId=e,this.initAuth2())},_cookiePolicy:"single_host_ origin",get cookiePolicy(){return this._cookiePolicy},set cookiePolicy(e){e&&(th is._cookiePolicy=e)},_appPackageName:"",get appPackageName(){return this._appPac kageName},set appPackageName(e){if(this._appPackageName&&e&&e!=this._appPackageN ame)throw new Error("appPackageName cannot change. Values do not match. New: "+e +" Old: "+this._appPackageName);e&&(this._appPackageName=e)},_requestVisibleActi ons:"",get requestVisibleactions(){return this._requestVisibleActions},set reque stVisibleactions(e){if(this._requestVisibleActions&&e&&e!=this._requestVisibleAc tions)throw new Error("requestVisibleactions cannot change. Values do not match. New: "+e+" Old: "+this._requestVisibleActions);e&&(this._requestVisibleActions= e)},_hostedDomain:"",get hostedDomain(){return this._hostedDomain},set hostedDom ain(e){if(this._hostedDomain&&e&&e!=this._hostedDomain)throw new Error("hostedDo main cannot change. Values do not match. New: "+e+" Old: "+this._hostedDomain);e &&(this._hostedDomain=e)},_openidPrompt:"",get openidPrompt(){return this._openi dPrompt},set openidPrompt(e){if("string"!=typeof e)throw new Error("openidPrompt must be a string. Received "+typeof e);if(e){var t=e.split(" ");t=t.map(functio n(e){return e.trim()}),t=t.filter(function(e){return e});var i={none:0,login:0,c onsent:0,select_account:0};t.forEach(function(e){if("none"==e&&t.length>1)throw new Error("none cannot be combined with other openidPrompt values");if(!(e in i) )throw new Error("invalid openidPrompt value "+e+". Valid values: "+Object.keys( i).join(", "))})}this._openidPrompt=e},_offline:!1,get offline(){return this._of fline},set offline(e){this._offline=e,this.updateAdditionalAuth()},_offlineAlway sPrompt:!1,get offlineAlwaysPrompt(){return this._offlineAlwaysPrompt},set offli neAlwaysPrompt(e){this._offlineAlwaysPrompt=e,this.updateAdditionalAuth()},offli neGranted:!1,_apiLoader:null,_requestedScopeArray:[],get requestedScopes(){retur n this._requestedScopeArray.join(" ")},_signedIn:!1,_grantedScopeArray:[],_needA dditionalAuth:!0,_hasPlusScopes:!1,signinAwares:[],init:function(){this._apiLoad er=document.createElement("google-js-api"),this._apiLoader.addEventListener("js- api-load",this.loadAuth2.bind(this))},loadAuth2:function(){gapi.load("auth2",thi s.initAuth2.bind(this))},initAuth2:function(){if("gapi"in window&&"auth2"in wind ow.gapi&&this.clientId){var e=gapi.auth2.init({client_id:this.clientId,cookie_po licy:this.cookiePolicy,scope:this.requestedScopes,hosted_domain:this.hostedDomai n});e.currentUser.listen(this.handleUserUpdate.bind(this)),e.then(function(){},f unction(e){console.error(e)})}},handleUserUpdate:function(e){var t=e.isSignedIn( );if(t!=this._signedIn){this._signedIn=t;for(var i=0;i<this.signinAwares.length; i++)this.signinAwares[i]._setSignedIn(t)}this._grantedScopeArray=this.strToScope Array(e.getGrantedScopes()),this.updateAdditionalAuth();for(var n=e.getAuthRespo nse(),i=0;i<this.signinAwares.length;i++)this.signinAwares[i]._updateScopeStatus (n)},setOfflineCode:function(e){for(var t=0;t<this.signinAwares.length;t++)this. signinAwares[t]._updateOfflineCode(e)},strToScopeArray:function(e){if(!e)return[ ];for(var t=e.replace(/\ +/g," ").trim().split(" "),i=0;i<t.length;i++)t[i]=t[i] .toLowerCase(),"https://www.googleapis.com/auth/userinfo.profile"===t[i]&&(t[i]= "profile"),"https://www.googleapis.com/auth/userinfo.email"===t[i]&&(t[i]="email ");return t.filter(function(e,t,i){return i.indexOf(e)===t})},isPlusScope:functi on(e){return e.indexOf("/auth/games")>-1||e.indexOf("auth/plus.")>-1&&e.indexOf( "auth/plus.me")<0},hasGrantedScopes:function(e){for(var t=this.strToScopeArray(e ),i=0;i<t.length;i++)if(this._grantedScopeArray.indexOf(t[i])===-1)return!1;retu rn!0},requestScopes:function(e){for(var t=this.strToScopeArray(e),i=!1,n=0;n<t.l ength;n++)this._requestedScopeArray.indexOf(t[n])===-1&&(this._requestedScopeArr ay.push(t[n]),i=!0);i&&(this.updateAdditionalAuth(),this.updatePlusScopes())},up dateAdditionalAuth:function(){var e=!1;if(!this.offlineAlwaysPrompt&&!this.offli ne||this.offlineGranted){for(var t=0;t<this._requestedScopeArray.length;t++)if(t his._grantedScopeArray.indexOf(this._requestedScopeArray[t])===-1){e=!0;break}}e lse e=!0;if(this._needAdditionalAuth!=e){this._needAdditionalAuth=e;for(var t=0; t<this.signinAwares.length;t++)this.signinAwares[t]._setNeedAdditionalAuth(e)}}, updatePlusScopes:function(){for(var e=!1,t=0;t<this._requestedScopeArray.length; t++)if(this.isPlusScope(this._requestedScopeArray[t])){e=!0;break}if(this._hasPl usScopes!=e){this._hasPlusScopes=e;for(var t=0;t<this.signinAwares.length;t++)th is.signinAwares[t]._setHasPlusScopes(e)}},attachSigninAware:function(e){this.sig ninAwares.indexOf(e)==-1?(this.signinAwares.push(e),e._setNeedAdditionalAuth(thi s._needAdditionalAuth),e._setSignedIn(this._signedIn),e._setHasPlusScopes(this._ hasPlusScopes)):console.warn("signinAware attached more than once",e)},detachSig ninAware:function(e){var t=this.signinAwares.indexOf(e);t!=-1?this.signinAwares. splice(t,1):console.warn("Trying to detach unattached signin-aware")},getMissing Scopes:function(){return this._requestedScopeArray.filter(function(e){return thi s._grantedScopeArray.indexOf(e)===-1}.bind(this)).join(" ")},assertAuthInitializ ed:function(){if(!this.clientId)throw new Error("AuthEngine not initialized. cli entId has not been configured.");if(!("gapi"in window))throw new Error("AuthEngi ne not initialized. gapi has not loaded.");if(!("auth2"in window.gapi))throw new Error("AuthEngine not initialized. auth2 not loaded.")},signIn:function(){this. assertAuthInitialized();var i={scope:this.getMissingScopes()};Object.keys(e).for Each(function(t){this[t]&&""!==this[t]&&(i[e[t]]=this[t])},this);var n,o=gapi.au th2.getAuthInstance().currentUser.get();this.offline||this.offlineAlwaysPrompt?( i.redirect_uri="postmessage",this.offlineAlwaysPrompt&&(i.approval_prompt="force "),n=gapi.auth2.getAuthInstance().grantOfflineAccess(i)):n=o.getGrantedScopes()? o.grant(i):gapi.auth2.getAuthInstance().signIn(i),n.then(function(e){var i;e.cod e?(t.offlineGranted=!0,i=gapi.auth2.getAuthInstance().currentUser.get(),t.setOff lineCode(e.code)):i=e;i.getAuthResponse()},function(e){"Access denied."!==e.reas on&&this.signinAwares.forEach(function(t){t.errorNotify(e)})}.bind(this))},signO ut:function(){this.assertAuthInitialized(),gapi.auth2.getAuthInstance().signOut( ).then(function(){},function(e){console.error(e)})}};t.init(),Polymer({is:"googl e-signin-aware",properties:{appPackageName:{type:String,observer:"_appPackageNam eChanged"},clientId:{type:String,observer:"_clientIdChanged"},cookiePolicy:{type :String,observer:"_cookiePolicyChanged"},requestVisibleActions:{type:String,obse rver:"_requestVisibleActionsChanged"},hostedDomain:{type:String,observer:"_hoste dDomainChanged"},offline:{type:Boolean,value:!1,observer:"_offlineChanged"},offl ineAlwaysPrompt:{type:Boolean,value:!1,observer:"_offlineAlwaysPromptChanged"},s copes:{type:String,value:"profile",observer:"_scopesChanged"},openidPrompt:{type :String,value:"",observer:"_openidPromptChanged"},signedIn:{type:Boolean,notify: !0,readOnly:!0},isAuthorized:{type:Boolean,notify:!0,readOnly:!0,value:!1},needA dditionalAuth:{type:Boolean,notify:!0,readOnly:!0},hasPlusScopes:{type:Boolean,v alue:!1,notify:!0,readOnly:!0}},attached:function(){t.attachSigninAware(this)},d etached:function(){t.detachSigninAware(this)},signIn:function(){t.signIn()},sign Out:function(){t.signOut()},errorNotify:function(e){this.fire("google-signin-awa re-error",e)},_appPackageNameChanged:function(e,i){t.appPackageName=e},_clientId Changed:function(e,i){t.clientId=e},_cookiePolicyChanged:function(e,i){t.cookieP olicy=e},_requestVisibleActionsChanged:function(e,i){t.requestVisibleActions=e}, _hostedDomainChanged:function(e,i){t.hostedDomain=e},_offlineChanged:function(e, i){t.offline=e},_offlineAlwaysPromptChanged:function(e,i){t.offlineAlwaysPrompt= e},_scopesChanged:function(e,i){t.requestScopes(e),this._updateScopeStatus(void 0)},_openidPromptChanged:function(e,i){t.openidPrompt=e},_updateScopeStatus:func tion(e){var i=this.signedIn&&t.hasGrantedScopes(this.scopes);i!==this.isAuthoriz ed&&(this._setIsAuthorized(i),i?this.fire("google-signin-aware-success",e):this. fire("google-signin-aware-signed-out",e))},_updateOfflineCode:function(e){e&&thi s.fire("google-signin-offline-success",{code:e})}})}()</script> <dom-module id=" auth-signin" assetpath="/res/imp/common/"> <template> <style>#avatar{border-radi us:5px}a{color:#fff}.center{vertical-align:middle}</style> <google-signin-aware id="aware" client-id="[[client_id]]" scopes="email" on-google-signin-aware-succe ss="_onSignin" on-google-signin-aware-signed-out="_onSignout"> </google-signin-a ware> <template is="dom-if" if="[[!signed_in]]"> <div id="signinContainer"> <a o n-tap="signIn" href="#">Sign in</a> </div> </template> <template is="dom-if" if= "[[signed_in]]"> <img class="center" id="avatar" src="[[profile.imageUrl]]" widt h="30" height="30"> <span class="center">[[profile.email]]</span> <span class="c enter">|</span> <a class="center" on-tap="signOut" href="#">Sign out</a> </templ ate> </template> <script>"use strict";Polymer({is:"auth-signin",properties:{auth _headers:{type:Object,computed:"_makeHeader(auth_response)",notify:!0},auth_resp onse:{type:Object,notify:!0},client_id:{type:String},profile:{type:Object,readOn ly:!0,notify:!0},signed_in:{type:Boolean,readOnly:!0,value:!1,notify:!0}},attach ed:function(){if(this.client_id){window.setTimeout(function(){if("gapi"in window &&"auth2"in window.gapi&&!this.signed_in&&!this._signingIn){var i=gapi.auth2.get AuthInstance().currentUser.get();i&&i.getAuthResponse().access_token?this._onSig nin():this.$.aware.signIn()}else window.setTimeout(this.attached.bind(this))}.bi nd(this),300)}},_onSignin:function(){this._signingIn=!0;var i=gapi.auth2.getAuth Instance().currentUser.get(),t=i.getBasicProfile();this._setProfile({email:t.get Email(),imageUrl:t.getImageUrl()}),this.set("auth_response",i.getAuthResponse()) ,this._setSigned_in(!0),this.fire("auth-signin"),this.async(function(){console.l og("reloading credentials"),i.reloadAuthResponse(),this._onSignin()},1e3*this.au th_response.expires_in),this._signingIn=!1},_onSignout:function(i){this._setSign ed_in(!1),this._setProfile(null)},_makeHeader:function(i){return i?{authorizatio n:i.token_type+" "+i.access_token}:{}},signIn:function(){this.$.aware.signIn()}, signOut:function(){this.$.aware.signOut()}})</script> </dom-module><dom-module i d="swarming-app" assetpath="/res/imp/common/"> <template> <style include="iron-f lex">:host{position:absolute;top:0;bottom:0;left:0;right:0}app-toolbar{backgroun d-color:#1F78B4;color:#fff}app-toolbar a{color:#fff}.left{margin-right:15px}.rig ht{margin-left:15px}.main-content{padding:3px}.main-content a{color:#1F78B4}.sma ll,auth-signin{font-size:.7em}paper-fab{position:fixed;bottom:5px;right:5px;back ground-color:#1F78B4}paper-spinner-lite{--paper-spinner-color:var(--google-yello w-500)}</style> <app-header-layout> <app-header fixed=""> <app-toolbar> <div cla ss="title left">[[name]]</div> <paper-spinner-lite class="left" active="[[_or(bu sy,_busy1,_busy2)]]"></paper-spinner-lite> <a class="left" href="/newui/">Home</ a> <a class="left" href="/newui/botlist">Bot List</a> <a class="left" href="/new ui/tasklist">Task List</a> <div class="flex"></div> <div class="small right"> Se rver: <a href$="[[_versionLink(server_version)]]"> [[server_version.server_versi on]] </a> </div> <auth-signin class="right" client_id="[[client_id]]" auth_heade rs="{{auth_headers}}" profile="{{profile}}" signed_in="{{signed_in}}"> </auth-si gnin> </app-toolbar> </app-header> <div class="main-content"> <content></content > </div> <a target="_blank" href="https://bugs.chromium.org/p/chromium/issues/en try?components=Infra%3EPlatform%3ESwarming&amp;owner=kjlubick@chromium.org&amp;s tatus=Assigned"> <paper-fab mini="" icon="icons:bug-report"></paper-fab> </a> </ app-header-layout> </template> <script>Polymer({is:"swarming-app",behaviors:[Swa rmingBehaviors.CommonBehavior],properties:{busy:{type:Boolean},client_id:{type:S tring},name:{type:String},auth_headers:{type:Object,notify:!0,observer:"_load"}, permissions:{type:Object,value:function(){return{}},notify:!0},profile:{type:Obj ect,notify:!0},server_version:{type:Object,notify:!0},signed_in:{type:Boolean,va lue:!1,notify:!0},_busy1:{type:Boolean,value:!1},_busy2:{type:Boolean,value:!1}} ,_load:function(){this._getJsonAsync("permissions","/_ah/api/swarming/v1/server/ permissions","_busy1",this.auth_headers),this._getJsonAsync("server_version","/_ ah/api/swarming/v1/server/details","_busy2",this.auth_headers)},_versionLink:fun ction(e){if(e&&e.server_version){var i=e.server_version.split("-");if(2===i.leng th)return"https://github.com/luci/luci-py/commit/"+i[1]}}})</script> </dom-modul e> <dom-module id="swarming-app-style" assetpath="/res/imp/common/"> <style>*{fo nt-family:sans-serif}a[href]{color:#1F78B4}button{min-width:5.14em;background-co lor:#fff;color:#1f78b4;text-align:center;text-transform:uppercase;outline:0;bord er-radius:3px;padding:.6em 1.2em;border:solid #d3d3d3 1px;margin:.6em;cursor:poi nter}button:hover{background:#eee}button:focus{background-color:#ddd;transition: background-color .1s cubic-bezier(.4,0,.2,1)}button.raised:active,button:active{ background-color:#999;transition:background-color .1s cubic-bezier(.4,0,.2,1)}bu tton:disabled{color:#999}button.action:active{background-color:#A6CEE3;transitio n:background-color .1s color .1s cubic-bezier(.4,0,.2,1)}button.action{color:#ff f;background:#1f78b4;border:none}button.action:disabled{color:#fff;background:#9 99;border:none}button.raised{transition:box-shadow .1s cubic-bezier(.4,0,.2,1);b ox-shadow:5px 5px 18px 0 rgba(0,0,0,.3)}button.raised:active{box-shadow:2px 2px 5px 0 rgba(0,0,0,.1)}option,select{padding:.4em 1.2em;background-color:#fff;bord er:none;line-height:20px;vertical-align:middle}select{overflow-y:auto}</style> < /dom-module> <dom-module id="swarming-index" assetpath="/res/imp/index/"> <templ ate> <style include="swarming-app-style">.command{font-family:monospace;margin-b ottom:10px;margin-top:10px;white-space:pre-wrap;background-color:#f5f5f5;border: 1px solid #ccc;border-radius:4px}</style> <swarming-app client_id="[[client_id]] " auth_headers="{{auth_headers}}" permissions="{{_permissions}}" server_version= "{{_server_version}}" name="Swarming Server" busy="[[_busy]]"> <h2>Service Statu s</h2> <div>Server Version: [[_server_version.server_version]]</div> <ul> <li> < a href="/stats">Usage statistics</a> </li> <li> <a href="/restricted/mapreduce/s tatus">Map Reduce Jobs</a> </li> <li> <a href$="[[_makeInstancesUrl(_server_vers ion,_project_id)]]">View version's instances on Cloud Console</a> </li> <li> <a> </a><a href$="[[_makeErrorUrl(_project_id)]]">View server errors on Cloud Consol e</a> </li> <li> <a></a><a href$="[[_makeLogUrl(_project_id)]]">View logs for HT TP 5xx on Cloud Console</a> </li> </ul> <h2>Configuration</h2> <ul> <li> <a href ="/restricted/config">View server config</a> </li> <li> <a href="/restricted/upl oad/bootstrap">View/upload bootstrap.py</a> </li> <li> <a href="/restricted/uplo ad/bot_config">View/upload bot_config.py</a> </li> <li> <a href="/auth/groups">V iew/edit user groups</a> </li> </ul> <div hidden$="[[_cannotBootstrap(_permissio ns)]]"> <h2>Bootstrapping a bot</h2> To bootstrap a bot, run one of these (all l inks are valid for 1 hour): <ol> <li> <strong> TL;DR; </strong> <pre class="comm and">python -c "import urllib; exec urllib.urlopen('[[_host_url]]/bootstrap?tok= [[_bootstrap_token]]').read()"</pre> </li> <li> Escaped version to pass as a ssh argument: <pre class="command">'python -c "import urllib; exec urllib.urlopen(' "'[[_host_url]]/bootstrap?tok=[[_bootstrap_token]]'"').read()"'</pre> </li> <li> Manually: <pre class="command" style="margin-bottom:0">mkdir bot; cd bot
5 rm -f swarming_bot.zip; curl -sSLOJ [[_host_url]]/bot_code?tok=[[_bootstrap_to ken]] 5 rm -f swarming_bot.zip; curl -sSLOJ [[_host_url]]/bot_code?tok=[[_bootstrap_to ken]]
6 python swarming_bot.zip</pre> </li> </ol> </div> <h2>Stats</h2> <div>TODO(kjlu bick) add these in</div> </swarming-app> </template> <script>Polymer({is:"swarmi ng-index",behaviors:[SwarmingBehaviors.CommonBehavior],properties:{client_id:{ty pe:String},_bootstrap_token:{type:String,value:"abc123"},_busy:{type:Boolean,val ue:!1},_host_url:{type:String,value:function(){return location.origin}},_permiss ions:{type:Object},_project_id:{type:String,value:function(){var o=location.host name.indexOf(".appspot.com");return location.hostname.substring(0,o)}},_server_v ersion:{type:Object}},_cannotBootstrap:function(o){return!(o&&o.get_bootstrap_to ken)},_makeInstancesUrl:function(o,e){return"https://console.cloud.google.com/ap pengine/instances?project="+e+"&versionId="+o.server_version},_makeErrorUrl:func tion(o){return"https://console.cloud.google.com/errors?project="+o},_makeLogUrl: function(o){return"https://pantheon.corp.google.com/logs/viewer?filters=text:sta tus:500..599&project="+o}})</script> </dom-module><dom-module id="dynamic-table- style" assetpath="/res/imp/common/"> <template> <style>table{border-collapse:col lapse;margin-left:5px}td,th{border:1px solid #DDD;padding:5px}th{position:relati ve}sort-toggle{position:absolute;right:0;top:.4em}</style> </template> </dom-mod ule> <script>!function(){SwarmingBehaviors.DynamicTableBehavior=[SwarmingBehavio rs.CommonBehavior,{properties:{_columns:{type:Array},_filter:{type:Function},_fi lteredSortedItems:{type:Array,computed:"_filterAndSort(_items,_filter.*,_sort.*) "},_items:{type:Array},_plainColumns:{type:Array,computed:"_stripSpecial(_column s.*)"},_sort:{type:Object,computed:"_makeSortObject(_sortstr)"},_sortstr:{type:S tring},_verbose:{type:Boolean}},_column:function(t,i){var n=this._columnMap[t];r eturn n||(n=function(i){var n=this._attribute(i,t,"none");return this._verbose?n .join(" | "):n[0]}),n.bind(this)(i)},_compare:function(t,i){if(!this._sort)retur n 0;var n=1;"desc"===this._sort.direction&&(n=-1);var r=this._specialSort[this._ sort.name];if(r)return r.bind(this)(n,t,i);var e=this._column(this._sort.name,t) ,s=this._column(this._sort.name,i);return n*swarming.naturalCompare(e,s)},_filte rAndSort:function(){swarming.stableSort(this._items,this._compare.bind(this));va r t=this._items;return this._filter&&(t=t.filter(this._filter.bind(this))),t},_h eader:function(t){return this._headerMap[t]||t},_hide:function(t){return this._c olumns.indexOf(t)===-1},_makeSortObject:function(t){if(t){var i=t.split(":");ret urn 2!=i.length?{name:"id",direction:"asc"}:{name:i[0],direction:i[1]}}},_sortCh ange:function(t){t&&t.detail&&t.detail.name&&this.set("_sortstr",t.detail.name+" :"+t.detail.direction)},_stripSpecial:function(){return this._columns.filter(fun ction(t){return this._specialColumns.indexOf(t)===-1}.bind(this)).sort()},_commo nColumns:function(){return{device_type:function(t){var i=this._attribute(t,"devi ce_type","none");i=i[0];var n=swarming.alias.android(i);return"unknown"===n?i:sw arming.alias.apply(i,n)},gpu:function(t){var i=this._attribute(t,"gpu","none"),n =[],r=[];return i.forEach(function(t){var i=swarming.alias.gpu(t);return"unknown "===i?(n.push(t),void(t.indexOf(":")===-1&&r.push(t))):(n.push(swarming.alias.ap ply(t,i)),void(t.indexOf(":")===-1&&r.push(swarming.alias.apply(t,i))))}.bind(th is)),this._verbose||!r.length?n.join(" | "):r.join(" | ")},pool:function(t){var i=this._attribute(t,"pool");return i.join(" | ")}}}}]}()</script><dom-module id= "sort-toggle" assetpath="/res/imp/common/"> <template> <style>:host{display:inli ne-block;position:relative;min-width:20px;min-height:16px;vertical-align:middle} iron-icon{position:absolute;left:0;cursor:pointer}.hidden{visibility:hidden}</st yle> <span on-click="toggle"> <iron-icon style="top:0" class$="[[_hidden(directi on,'asc')]]" icon="icons:arrow-drop-down"> </iron-icon> <iron-icon style="bottom :0" class$="[[_hidden(direction,'desc')]]" icon="icons:arrow-drop-up"> </iron-ic on> </span> </template> <script>Polymer({is:"sort-toggle",properties:{current:{t ype:Object,observer:"_resetSort"},name:{type:String,observer:"_resetSort"},direc tion:{type:String,value:"",notify:!0}},toggle:function(){"asc"===this.direction? this.set("direction","desc"):this.set("direction","asc"),this.fire("sort_change" ,{direction:this.direction,name:this.name})},_hidden:function(t,e){return t===e? "hidden":""},_resetSort:function(){this.current&&this.current.name===this.name?t his.set("direction",this.current.direction):this.set("direction","")}})</script> </dom-module> <dom-module id="iron-a11y-announcer" assetpath="/res/imp/bower_co mponents/iron-a11y-announcer/"> <template> <style>:host{display:inline-block;pos ition:fixed;clip:rect(0,0,0,0)}</style> <div aria-live$="[[mode]]">[[_text]]</di v> </template> <script>!function(){"use strict";Polymer.IronA11yAnnouncer=Polyme r({is:"iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},_text: {type:String,value:""}},created:function(){Polymer.IronA11yAnnouncer.instance||( Polymer.IronA11yAnnouncer.instance=this),document.body.addEventListener("iron-an nounce",this._onIronAnnounce.bind(this))},announce:function(n){this._text="",thi s.async(function(){this._text=n},100)},_onIronAnnounce:function(n){n.detail&&n.d etail.text&&this.announce(n.detail.text)}}),Polymer.IronA11yAnnouncer.instance=n ull,Polymer.IronA11yAnnouncer.requestAvailability=function(){Polymer.IronA11yAnn ouncer.instance||(Polymer.IronA11yAnnouncer.instance=document.createElement("iro n-a11y-announcer")),document.body.appendChild(Polymer.IronA11yAnnouncer.instance )}}()</script> </dom-module> <script>Polymer.IronFitBehavior={properties:{sizing Target:{type:Object,value:function(){return this}},fitInto:{type:Object,value:wi ndow},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{ty pe:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOff set:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:! 0},autoFitOnAttach:{type:Boolean,value:!1},_fitInfo:{type:Object}},get _fitWidth (){var t;return t=this.fitInto===window?this.fitInto.innerWidth:this.fitInto.get BoundingClientRect().width},get _fitHeight(){var t;return t=this.fitInto===windo w?this.fitInto.innerHeight:this.fitInto.getBoundingClientRect().height},get _fit Left(){var t;return t=this.fitInto===window?0:this.fitInto.getBoundingClientRect ().left},get _fitTop(){var t;return t=this.fitInto===window?0:this.fitInto.getBo undingClientRect().top},get _defaultPositionTarget(){var t=Polymer.dom(this).par entNode;return t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(t=t.host),t},get _l ocaleHorizontalAlign(){if(this._isRTL){if("right"===this.horizontalAlign)return" left";if("left"===this.horizontalAlign)return"right"}return this.horizontalAlign },attached:function(){this._isRTL="rtl"==window.getComputedStyle(this).direction ,this.positionTarget=this.positionTarget||this._defaultPositionTarget,this.autoF itOnAttach&&("none"===window.getComputedStyle(this).display?setTimeout(function( ){this.fit()}.bind(this)):this.fit())},fit:function(){this.position(),this.const rain(),this.center()},_discoverInfo:function(){if(!this._fitInfo){var t=window.g etComputedStyle(this),i=window.getComputedStyle(this.sizingTarget);this._fitInfo ={inlineStyle:{top:this.style.top||"",left:this.style.left||"",position:this.sty le.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"" ,maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.sty le.boxSizing||""},positionedBy:{vertically:"auto"!==t.top?"top":"auto"!==t.botto m?"bottom":null,horizontally:"auto"!==t.left?"left":"auto"!==t.right?"right":nul l},sizedBy:{height:"none"!==i.maxHeight,width:"none"!==i.maxWidth,minWidth:parse Int(i.minWidth,10)||0,minHeight:parseInt(i.minHeight,10)||0},margin:{top:parseIn t(t.marginTop,10)||0,right:parseInt(t.marginRight,10)||0,bottom:parseInt(t.margi nBottom,10)||0,left:parseInt(t.marginLeft,10)||0}},this.verticalOffset&&(this._f itInfo.margin.top=this._fitInfo.margin.bottom=this.verticalOffset,this._fitInfo. inlineStyle.marginTop=this.style.marginTop||"",this._fitInfo.inlineStyle.marginB ottom=this.style.marginBottom||"",this.style.marginTop=this.style.marginBottom=t his.verticalOffset+"px"),this.horizontalOffset&&(this._fitInfo.margin.left=this. _fitInfo.margin.right=this.horizontalOffset,this._fitInfo.inlineStyle.marginLeft =this.style.marginLeft||"",this._fitInfo.inlineStyle.marginRight=this.style.marg inRight||"",this.style.marginLeft=this.style.marginRight=this.horizontalOffset+" px")}},resetFit:function(){var t=this._fitInfo||{};for(var i in t.sizerInlineSty le)this.sizingTarget.style[i]=t.sizerInlineStyle[i];for(var i in t.inlineStyle)t his.style[i]=t.inlineStyle[i];this._fitInfo=null},refit:function(){var t=this.si zingTarget.scrollLeft,i=this.sizingTarget.scrollTop;this.resetFit(),this.fit(),t his.sizingTarget.scrollLeft=t,this.sizingTarget.scrollTop=i},position:function() {if(this.horizontalAlign||this.verticalAlign){this._discoverInfo(),this.style.po sition="fixed",this.sizingTarget.style.boxSizing="border-box",this.style.left="0 px",this.style.top="0px";var t=this.getBoundingClientRect(),i=this.__getNormaliz edRect(this.positionTarget),e=this.__getNormalizedRect(this.fitInto),n=this._fit Info.margin,o={width:t.width+n.left+n.right,height:t.height+n.top+n.bottom},h=th is.__getPosition(this._localeHorizontalAlign,this.verticalAlign,o,i,e),s=h.left+ n.left,l=h.top+n.top,r=Math.min(e.right-n.right,s+t.width),a=Math.min(e.bottom-n .bottom,l+t.height),g=this._fitInfo.sizedBy.minWidth,f=this._fitInfo.sizedBy.min Height;s<n.left&&(s=n.left,r-s<g&&(s=r-g)),l<n.top&&(l=n.top,a-l<f&&(l=a-f)),thi s.sizingTarget.style.maxWidth=r-s+"px",this.sizingTarget.style.maxHeight=a-l+"px ",this.style.left=s-t.left+"px",this.style.top=l-t.top+"px"}},constrain:function (){if(!this.horizontalAlign&&!this.verticalAlign){this._discoverInfo();var t=thi s._fitInfo;t.positionedBy.vertically||(this.style.position="fixed",this.style.to p="0px"),t.positionedBy.horizontally||(this.style.position="fixed",this.style.le ft="0px"),this.sizingTarget.style.boxSizing="border-box";var i=this.getBoundingC lientRect();t.sizedBy.height||this.__sizeDimension(i,t.positionedBy.vertically," top","bottom","Height"),t.sizedBy.width||this.__sizeDimension(i,t.positionedBy.h orizontally,"left","right","Width")}},_sizeDimension:function(t,i,e,n,o){this.__ sizeDimension(t,i,e,n,o)},__sizeDimension:function(t,i,e,n,o){var h=this._fitInf o,s=this.__getNormalizedRect(this.fitInto),l="Width"===o?s.width:s.height,r=i=== n,a=r?l-t[n]:t[e],g=h.margin[r?e:n],f="offset"+o,p=this[f]-this.sizingTarget[f]; this.sizingTarget.style["max"+o]=l-g-a-p+"px"},center:function(){if(!this.horizo ntalAlign&&!this.verticalAlign){this._discoverInfo();var t=this._fitInfo.positio nedBy;if(!t.vertically||!t.horizontally){this.style.position="fixed",t.verticall y||(this.style.top="0px"),t.horizontally||(this.style.left="0px");var i=this.get BoundingClientRect(),e=this.__getNormalizedRect(this.fitInto);if(!t.vertically){ var n=e.top-i.top+(e.height-i.height)/2;this.style.top=n+"px"}if(!t.horizontally ){var o=e.left-i.left+(e.width-i.width)/2;this.style.left=o+"px"}}}},__getNormal izedRect:function(t){return t===document.documentElement||t===window?{top:0,left :0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bot tom:window.innerHeight}:t.getBoundingClientRect()},__getCroppedArea:function(t,i ,e){var n=Math.min(0,t.top)+Math.min(0,e.bottom-(t.top+i.height)),o=Math.min(0,t .left)+Math.min(0,e.right-(t.left+i.width));return Math.abs(n)*i.width+Math.abs( o)*i.height},__getPosition:function(t,i,e,n,o){var h=[{verticalAlign:"top",horiz ontalAlign:"left",top:n.top,left:n.left},{verticalAlign:"top",horizontalAlign:"r ight",top:n.top,left:n.right-e.width},{verticalAlign:"bottom",horizontalAlign:"l eft",top:n.bottom-e.height,left:n.left},{verticalAlign:"bottom",horizontalAlign: "right",top:n.bottom-e.height,left:n.right-e.width}];if(this.noOverlap){for(var s=0,l=h.length;s<l;s++){var r={};for(var a in h[s])r[a]=h[s][a];h.push(r)}h[0].t op=h[1].top+=n.height,h[2].top=h[3].top-=n.height,h[4].left=h[6].left+=n.width,h [5].left=h[7].left-=n.width}i="auto"===i?null:i,t="auto"===t?null:t;for(var g,s= 0;s<h.length;s++){var f=h[s];if(!this.dynamicAlign&&!this.noOverlap&&f.verticalA lign===i&&f.horizontalAlign===t){g=f;break}var p=!(i&&f.verticalAlign!==i||t&&f. horizontalAlign!==t);if(this.dynamicAlign||p){g=g||f,f.croppedArea=this.__getCro ppedArea(f,e,o);var d=f.croppedArea-g.croppedArea;if((d<0||0===d&&p)&&(g=f),0=== g.croppedArea&&p)break}}return g}}</script> <dom-module id="iron-overlay-backdro p" assetpath="/res/imp/bower_components/iron-overlay-behavior/"> <template> <sty le>:host{position:fixed;top:0;left:0;width:100%;height:100%;background-color:var (--iron-overlay-backdrop-background-color,#000);opacity:0;transition:opacity .2s ;pointer-events:none;@apply(--iron-overlay-backdrop)}:host(.opened){opacity:var( --iron-overlay-backdrop-opacity,.6);pointer-events:auto;@apply(--iron-overlay-ba ckdrop-opened)}</style> <content></content> </template> </dom-module> <script>!f unction(){"use strict";Polymer({is:"iron-overlay-backdrop",properties:{opened:{r eflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners :{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},at tached:function(){this.opened&&this._openedChanged(this.opened)},prepare:functio n(){this.opened&&!this.parentNode&&Polymer.dom(document.body).appendChild(this)} ,open:function(){this.opened=!0},close:function(){this.opened=!1},complete:funct ion(){this.opened||this.parentNode!==document.body||Polymer.dom(this.parentNode) .removeChild(this)},_onTransitionend:function(e){e&&e.target===this&&this.comple te()},_openedChanged:function(e){if(e)this.prepare();else{var t=window.getComput edStyle(this);"0s"!==t.transitionDuration&&0!=t.opacity||this.complete()}this.is Attached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this .__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.request AnimationFrame(function(){this.__openedRaf=null,this.toggleClass("opened",this.o pened)}.bind(this)))}})}()</script> <script>Polymer.IronOverlayManagerClass=func tion(){this._overlays=[],this._minimumZ=101,this._backdropElement=null,Polymer.G estures.add(document,"tap",null),document.addEventListener("tap",this._onCapture Click.bind(this),!0),document.addEventListener("focus",this._onCaptureFocus.bind (this),!0),document.addEventListener("keydown",this._onCaptureKeyDown.bind(this) ,!0)},Polymer.IronOverlayManagerClass.prototype={constructor:Polymer.IronOverlay ManagerClass,get backdropElement(){return this._backdropElement||(this._backdrop Element=document.createElement("iron-overlay-backdrop")),this._backdropElement}, get deepActiveElement(){for(var e=document.activeElement||document.body;e.root&& Polymer.dom(e.root).activeElement;)e=Polymer.dom(e.root).activeElement;return e} ,_bringOverlayAtIndexToFront:function(e){var t=this._overlays[e];if(t){var r=thi s._overlays.length-1,o=this._overlays[r];if(o&&this._shouldBeBehindOverlay(t,o)& &r--,!(e>=r)){var n=Math.max(this.currentOverlayZ(),this._minimumZ);for(this._ge tZ(t)<=n&&this._applyOverlayZ(t,n);e<r;)this._overlays[e]=this._overlays[e+1],e+ +;this._overlays[r]=t}}},addOrRemoveOverlay:function(e){e.opened?this.addOverlay (e):this.removeOverlay(e)},addOverlay:function(e){var t=this._overlays.indexOf(e );if(t>=0)return this._bringOverlayAtIndexToFront(t),void this.trackBackdrop();v ar r=this._overlays.length,o=this._overlays[r-1],n=Math.max(this._getZ(o),this._ minimumZ),a=this._getZ(e);if(o&&this._shouldBeBehindOverlay(e,o)){this._applyOve rlayZ(o,n),r--;var i=this._overlays[r-1];n=Math.max(this._getZ(i),this._minimumZ )}a<=n&&this._applyOverlayZ(e,n),this._overlays.splice(r,0,e);var s=this.deepAct iveElement;e.restoreFocusNode=this._overlayParent(s)?null:s,this.trackBackdrop() },removeOverlay:function(e){var t=this._overlays.indexOf(e);if(t!==-1){this._ove rlays.splice(t,1);var r=e.restoreFocusOnClose?e.restoreFocusNode:null;e.restoreF ocusNode=null,r&&Polymer.dom(document.body).deepContains(r)&&r.focus(),this.trac kBackdrop()}},currentOverlay:function(){var e=this._overlays.length-1;return thi s._overlays[e]},currentOverlayZ:function(){return this._getZ(this.currentOverlay ())},ensureMinimumZ:function(e){this._minimumZ=Math.max(this._minimumZ,e)},focus Overlay:function(){var e=this.currentOverlay();e&&!e.transitioning&&e._applyFocu s()},trackBackdrop:function(){var e=this._overlayWithBackdrop();(e||this._backdr opElement)&&(this.backdropElement.style.zIndex=this._getZ(e)-1,this.backdropElem ent.opened=!!e)},getBackdrops:function(){for(var e=[],t=0;t<this._overlays.lengt h;t++)this._overlays[t].withBackdrop&&e.push(this._overlays[t]);return e},backdr opZ:function(){return this._getZ(this._overlayWithBackdrop())-1},_overlayWithBac kdrop:function(){for(var e=0;e<this._overlays.length;e++)if(this._overlays[e].wi thBackdrop)return this._overlays[e]},_getZ:function(e){var t=this._minimumZ;if(e ){var r=Number(e.style.zIndex||window.getComputedStyle(e).zIndex);r===r&&(t=r)}r eturn t},_setZ:function(e,t){e.style.zIndex=t},_applyOverlayZ:function(e,t){this ._setZ(e,t+2)},_overlayParent:function(e){for(;e&&e!==document.body;){if(e._mana ger===this)return e;e=Polymer.dom(e).parentNode||e.host}},_overlayInPath:functio n(e){e=e||[];for(var t=0;t<e.length;t++)if(e[t]._manager===this)return e[t]},_on CaptureClick:function(e){var t=this.currentOverlay();t&&this._overlayInPath(Poly mer.dom(e).path)!==t&&t._onCaptureClick(e)},_onCaptureFocus:function(e){var t=th is.currentOverlay();t&&t._onCaptureFocus(e)},_onCaptureKeyDown:function(e){var t =this.currentOverlay();t&&(Polymer.IronA11yKeysBehavior.keyboardEventMatchesKeys (e,"esc")?t._onCaptureEsc(e):Polymer.IronA11yKeysBehavior.keyboardEventMatchesKe ys(e,"tab")&&t._onCaptureTab(e))},_shouldBeBehindOverlay:function(e,t){return!e. alwaysOnTop&&t.alwaysOnTop}},Polymer.IronOverlayManager=new Polymer.IronOverlayM anagerClass</script> <script>!function(){"use strict";Polymer.IronOverlayBehavio rImpl={properties:{opened:{observer:"_openedChanged",type:Boolean,value:!1,notif y:!0},canceled:{observer:"_canceledChanged",readOnly:!0,type:Boolean,value:!1},w ithBackdrop:{observer:"_withBackdropChanged",type:Boolean},noAutoFocus:{type:Boo lean,value:!1},noCancelOnEscKey:{type:Boolean,value:!1},noCancelOnOutsideClick:{ type:Boolean,value:!1},closingReason:{type:Object},restoreFocusOnClose:{type:Boo lean,value:!1},alwaysOnTop:{type:Boolean},_manager:{type:Object,value:Polymer.Ir onOverlayManager},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIron Resize"},get backdropElement(){return this._manager.backdropElement},get _focusN ode(){return this._focusedChild||Polymer.dom(this).querySelector("[autofocus]")| |this},get _focusableNodes(){var e=["a[href]","area[href]","iframe","[tabindex]" ,"[contentEditable=true]"],t=["input","select","textarea","button"],n=e.join(':n ot([tabindex="-1"]),')+':not([tabindex="-1"]),'+t.join(':not([disabled]):not([ta bindex="-1"]),')+':not([disabled]):not([tabindex="-1"])',i=Polymer.dom(this).que rySelectorAll(n);return this.tabIndex>=0&&i.splice(0,0,this),i.sort(function(e,t ){return e.tabIndex===t.tabIndex?0:0===e.tabIndex||e.tabIndex>t.tabIndex?1:-1})} ,ready:function(){this.__isAnimating=!1,this.__shouldRemoveTabIndex=!1,this.__fi rstFocusableNode=this.__lastFocusableNode=null,this.__openChangedAsync=null,this .__onIronResizeAsync=null,this._ensureSetup()},attached:function(){this.opened&& this._openedChanged(),this._observer=Polymer.dom(this).observeNodes(this._onNode sChange)},detached:function(){Polymer.dom(this).unobserveNodes(this._observer),t his._observer=null,this.opened=!1},toggle:function(){this._setCanceled(!1),this. opened=!this.opened},open:function(){this._setCanceled(!1),this.opened=!0},close :function(){this._setCanceled(!1),this.opened=!1},cancel:function(e){var t=this. fire("iron-overlay-canceled",e,{cancelable:!0});t.defaultPrevented||(this._setCa nceled(!0),this.opened=!1)},_ensureSetup:function(){this._overlaySetup||(this._o verlaySetup=!0,this.style.outline="none",this.style.display="none")},_openedChan ged:function(){this.opened?this.removeAttribute("aria-hidden"):this.setAttribute ("aria-hidden","true"),this._overlaySetup&&(this.__openChangedAsync&&window.canc elAnimationFrame(this.__openChangedAsync),this.opened||this._manager.removeOverl ay(this),this.isAttached&&(this.__isAnimating=!0,this.__openChangedAsync=window. requestAnimationFrame(function(){this.__openChangedAsync=null,this.opened?(this. _manager.addOverlay(this),this._prepareRenderOpened(),this._renderOpened()):(thi s._applyFocus(),this._renderClosed())}.bind(this))))},_canceledChanged:function( ){this.closingReason=this.closingReason||{},this.closingReason.canceled=this.can celed},_withBackdropChanged:function(){this.withBackdrop&&!this.hasAttribute("ta bindex")?(this.setAttribute("tabindex","-1"),this.__shouldRemoveTabIndex=!0):thi s.__shouldRemoveTabIndex&&(this.removeAttribute("tabindex"),this.__shouldRemoveT abIndex=!1),this.opened&&this.isAttached&&this._manager.trackBackdrop()},_prepar eRenderOpened:function(){this._preparePositioning(),this.refit(),this._finishPos itioning(),this._applyFocus(),this.noAutoFocus&&document.activeElement===this._f ocusNode&&this._focusNode.blur()},_renderOpened:function(){this._finishRenderOpe ned()},_renderClosed:function(){this._finishRenderClosed()},_finishRenderOpened: function(){this.notifyResize(),this.__isAnimating=!1;var e=this._focusableNodes; this.__firstFocusableNode=e[0],this.__lastFocusableNode=e[e.length-1],this.fire( "iron-overlay-opened")},_finishRenderClosed:function(){this.style.display="none" ,this.style.zIndex="",this.notifyResize(),this.__isAnimating=!1,this.fire("iron- overlay-closed",this.closingReason)},_preparePositioning:function(){this.style.t ransition=this.style.webkitTransition="none",this.style.transform=this.style.web kitTransform="none",this.style.display=""},_finishPositioning:function(){this.st yle.display="none",this.scrollTop=this.scrollTop,this.style.transition=this.styl e.webkitTransition="",this.style.transform=this.style.webkitTransform="",this.st yle.display="",this.scrollTop=this.scrollTop},_applyFocus:function(){this.opened ?this.noAutoFocus||this._focusNode.focus():(this._focusNode.blur(),this._focused Child=null,this._manager.focusOverlay())},_onCaptureClick:function(e){this.noCan celOnOutsideClick||this.cancel(e)},_onCaptureFocus:function(e){if(this.withBackd rop){var t=Polymer.dom(e).path;t.indexOf(this)===-1?(e.stopPropagation(),this._a pplyFocus()):this._focusedChild=t[0]}},_onCaptureEsc:function(e){this.noCancelOn EscKey||this.cancel(e)},_onCaptureTab:function(e){if(this.withBackdrop){var t=e. shiftKey,n=t?this.__firstFocusableNode:this.__lastFocusableNode,i=t?this.__lastF ocusableNode:this.__firstFocusableNode,s=!1;if(n===i)s=!0;else{var o=this._manag er.deepActiveElement;s=o===n||o===this}s&&(e.preventDefault(),this._focusedChild =i,this._applyFocus())}},_onIronResize:function(){this.__onIronResizeAsync&&(win dow.cancelAnimationFrame(this.__onIronResizeAsync),this.__onIronResizeAsync=null ),this.opened&&!this.__isAnimating&&(this.__onIronResizeAsync=window.requestAnim ationFrame(function(){this.__onIronResizeAsync=null,this.refit()}.bind(this)))}, _onNodesChange:function(){this.opened&&!this.__isAnimating&&this.notifyResize()} },Polymer.IronOverlayBehavior=[Polymer.IronFitBehavior,Polymer.IronResizableBeha vior,Polymer.IronOverlayBehaviorImpl]}()</script> <dom-module id="paper-toast" a ssetpath="/res/imp/bower_components/paper-toast/"> <template> <style>:host{displ ay:block;position:fixed;background-color:var(--paper-toast-background-color,#323 232);color:var(--paper-toast-color,#f1f1f1);min-height:48px;min-width:288px;padd ing:16px 24px;box-sizing:border-box;box-shadow:0 2px 5px 0 rgba(0,0,0,.26);borde r-radius:2px;margin:12px;font-size:14px;cursor:default;-webkit-transition:-webki t-transform .3s,opacity .3s;transition:transform .3s,opacity .3s;opacity:0;-webk it-transform:translateY(100px);transform:translateY(100px);@apply(--paper-font-c ommon-base)}:host(.capsule){border-radius:24px}:host(.fit-bottom){width:100%;min -width:0;border-radius:0;margin:0}:host(.paper-toast-open){opacity:1;-webkit-tra nsform:translateY(0);transform:translateY(0)}</style> <span id="label">{{text}}< /span> <content></content> </template> <script>!function(){var e=null;Polymer({i s:"paper-toast",behaviors:[Polymer.IronOverlayBehavior],properties:{fitInto:{typ e:Object,value:window,observer:"_onFitIntoChanged"},horizontalAlign:{type:String ,value:"left"},verticalAlign:{type:String,value:"bottom"},duration:{type:Number, value:3e3},text:{type:String,value:""},noCancelOnOutsideClick:{type:Boolean,valu e:!0},noAutoFocus:{type:Boolean,value:!0}},listeners:{transitionend:"__onTransit ionEnd"},get visible(){return Polymer.Base._warn("`visible` is deprecated, use ` opened` instead"),this.opened},get _canAutoClose(){return this.duration>0&&this. duration!==1/0},created:function(){this._autoClose=null,Polymer.IronA11yAnnounce r.requestAvailability()},show:function(e){"string"==typeof e&&(e={text:e});for(v ar t in e)0===t.indexOf("_")?Polymer.Base._warn('The property "'+t+'" is private and was not set.'):t in this?this[t]=e[t]:Polymer.Base._warn('The property "'+t +'" is not valid.');this.open()},hide:function(){this.close()},__onTransitionEnd :function(e){e&&e.target===this&&"opacity"===e.propertyName&&(this.opened?this._ finishRenderOpened():this._finishRenderClosed())},_openedChanged:function(){null !==this._autoClose&&(this.cancelAsync(this._autoClose),this._autoClose=null),thi s.opened?(e&&e!==this&&e.close(),e=this,this.fire("iron-announce",{text:this.tex t}),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))): e===this&&(e=null),Polymer.IronOverlayBehaviorImpl._openedChanged.apply(this,arg uments)},_renderOpened:function(){this.classList.add("paper-toast-open")},_rende rClosed:function(){this.classList.remove("paper-toast-open")},_onFitIntoChanged: function(e){this.positionTarget=e}})}()</script> </dom-module> <dom-module id="u rl-param" assetpath="/res/imp/common/"> <template> <paper-toast id="toast"></pap er-toast> </template> <script>!function(){Polymer({is:"url-param",properties:{de fault_value:{type:String},default_values:{type:Array},multi:{type:Boolean,value: !1},name:{type:String},valid:{type:Array},value:{type:String,value:"",notify:!0, observer:"_valueChanged"},_loaded:{type:Boolean,value:!1}},observers:["_valueCha nged(value.splices)"],ready:function(){this._loaded=!0;var t=this._getURL();t&&t his._isValid(t)?this.set("value",t):this.default_value&&this._isValid(this.defau lt_value)?this.set("value",this.default_value):this.multi&&this.default_values&& this._isValid(this.default_values)?this.set("value",this.default_values):this._p utURL()},_getURL:function(){var t=sk.query.toParamSet(window.location.search.sub string(1))[this.name];return t?this.multi?t:t.length>1?(this._error("Multiple va lues provided for "+this.name+" but only one accepted: "+t),null):t[0]:null},_pu tURL:function(){var t=sk.query.toParamSet(window.location.search.substring(1));d elete t[this.name],!this.value||Array.isArray(this.value)&&0==this.value.length| |(this.multi?t[this.name]=this.value:t[this.name]=[this.value]);var e=window.loc ation.href.split("?")[0]+"?"+sk.query.fromParamSet(t);window.history.replaceStat e("","",e)},_isValid:function(t){var e=function(t){if(this.valid){for(var e=0;e< this.valid.length;e++)if(t==this.valid[e])return!0;return this._error("Invalid v alue for "+this.name+': "'+t+'". Must be one of: '+this.valid),!1}return!0}.bind (this);if(!this.multi)return Array.isArray(t)&&this._error("Multiple values prov ided for "+this.name+" but only one accepted: "+t),e(t);if(!Array.isArray(t))ret urn this._error("url-param-sk: Value is not an array: "+t),!1;for(var i=0;i<t.le ngth;i++)if(!e(t[i]))return!1;return!0},_valueChanged:function(){this._loaded&&t his._putURL()},_error:function(t){console.log("[ERROR] "+t),this.set("$.toast.te xt",t),this.$.toast.show()}})}()</script> </dom-module> <script>Polymer.IronSele ction=function(e){this.selection=[],this.selectCallback=e},Polymer.IronSelection .prototype={get:function(){return this.multi?this.selection.slice():this.selecti on[0]},clear:function(e){this.selection.slice().forEach(function(t){(!e||e.index Of(t)<0)&&this.setItemSelected(t,!1)},this)},isSelected:function(e){return this. selection.indexOf(e)>=0},setItemSelected:function(e,t){if(null!=e&&t!==this.isSe lected(e)){if(t)this.selection.push(e);else{var i=this.selection.indexOf(e);i>=0 &&this.selection.splice(i,1)}this.selectCallback&&this.selectCallback(e,t)}},sel ect:function(e){this.multi?this.toggle(e):this.get()!==e&&(this.setItemSelected( this.get(),!1),this.setItemSelected(e,!0))},toggle:function(e){this.setItemSelec ted(e,!this.isSelected(e))}}</script> <script>Polymer.IronSelectableBehavior={pr operties:{attrForSelected:{type:String,value:null},selected:{type:String,notify: !0},selectedItem:{type:Object,readOnly:!0,notify:!0},activateEvent:{type:String, value:"tap",observer:"_activateEventChanged"},selectable:String,selectedClass:{t ype:String,value:"iron-selected"},selectedAttribute:{type:String,value:null},fal lbackSelection:{type:String,value:null},items:{type:Array,readOnly:!0,notify:!0, value:function(){return[]}},_excludedLocalNames:{type:Object,value:function(){re turn{template:1}}}},observers:["_updateAttrForSelected(attrForSelected)","_updat eSelected(selected)","_checkFallback(fallbackSelection)"],created:function(){thi s._bindFilterItem=this._filterItem.bind(this),this._selection=new Polymer.IronSe lection(this._applySelection.bind(this))},attached:function(){this._observer=thi s._observeItems(this),this._updateItems(),this._shouldUpdateSelection||this._upd ateSelected(),this._addListener(this.activateEvent)},detached:function(){this._o bserver&&Polymer.dom(this).unobserveNodes(this._observer),this._removeListener(t his.activateEvent)},indexOf:function(e){return this.items.indexOf(e)},select:fun ction(e){this.selected=e},selectPrevious:function(){var e=this.items.length,t=(N umber(this._valueToIndex(this.selected))-1+e)%e;this.selected=this._indexToValue (t)},selectNext:function(){var e=(Number(this._valueToIndex(this.selected))+1)%t his.items.length;this.selected=this._indexToValue(e)},selectIndex:function(e){th is.select(this._indexToValue(e))},forceSynchronousItemUpdate:function(){this._up dateItems()},get _shouldUpdateSelection(){return null!=this.selected},_checkFall back:function(){this._shouldUpdateSelection&&this._updateSelected()},_addListene r:function(e){this.listen(this,e,"_activateHandler")},_removeListener:function(e ){this.unlisten(this,e,"_activateHandler")},_activateEventChanged:function(e,t){ this._removeListener(t),this._addListener(e)},_updateItems:function(){var e=Poly mer.dom(this).queryDistributedElements(this.selectable||"*");e=Array.prototype.f ilter.call(e,this._bindFilterItem),this._setItems(e)},_updateAttrForSelected:fun ction(){this._shouldUpdateSelection&&(this.selected=this._indexToValue(this.inde xOf(this.selectedItem)))},_updateSelected:function(){this._selectSelected(this.s elected)},_selectSelected:function(e){this._selection.select(this._valueToItem(t his.selected)),this.fallbackSelection&&this.items.length&&void 0===this._selecti on.get()&&(this.selected=this.fallbackSelection)},_filterItem:function(e){return !this._excludedLocalNames[e.localName]},_valueToItem:function(e){return null==e? null:this.items[this._valueToIndex(e)]},_valueToIndex:function(e){if(!this.attrF orSelected)return Number(e);for(var t,i=0;t=this.items[i];i++)if(this._valueForI tem(t)==e)return i},_indexToValue:function(e){if(!this.attrForSelected)return e; var t=this.items[e];return t?this._valueForItem(t):void 0},_valueForItem:functio n(e){var t=e[Polymer.CaseMap.dashToCamelCase(this.attrForSelected)];return void 0!=t?t:e.getAttribute(this.attrForSelected)},_applySelection:function(e,t){this. selectedClass&&this.toggleClass(this.selectedClass,t,e),this.selectedAttribute&& this.toggleAttribute(this.selectedAttribute,t,e),this._selectionChange(),this.fi re("iron-"+(t?"select":"deselect"),{item:e})},_selectionChange:function(){this._ setSelectedItem(this._selection.get())},_observeItems:function(e){return Polymer .dom(e).observeNodes(function(e){this._updateItems(),this._shouldUpdateSelection &&this._updateSelected(),this.fire("iron-items-changed",e,{bubbles:!1,cancelable :!1})})},_activateHandler:function(e){for(var t=e.target,i=this.items;t&&t!=this ;){var s=i.indexOf(t);if(s>=0){var n=this._indexToValue(s);return void this._ite mActivate(n,t)}t=t.parentNode}},_itemActivate:function(e,t){this.fire("iron-acti vate",{selected:e,item:t},{cancelable:!0}).defaultPrevented||this.select(e)}}</s cript> <script>Polymer.IronMultiSelectableBehaviorImpl={properties:{multi:{type: Boolean,value:!1,observer:"multiChanged"},selectedValues:{type:Array,notify:!0}, selectedItems:{type:Array,readOnly:!0,notify:!0}},observers:["_updateSelected(se lectedValues.splices)"],select:function(e){this.multi?this.selectedValues?this._ toggleSelected(e):this.selectedValues=[e]:this.selected=e},multiChanged:function (e){this._selection.multi=e},get _shouldUpdateSelection(){return null!=this.sele cted||null!=this.selectedValues&&this.selectedValues.length},_updateAttrForSelec ted:function(){this.multi?this._shouldUpdateSelection&&(this.selectedValues=this .selectedItems.map(function(e){return this._indexToValue(this.indexOf(e))},this) .filter(function(e){return null!=e},this)):Polymer.IronSelectableBehavior._updat eAttrForSelected.apply(this)},_updateSelected:function(){this.multi?this._select Multi(this.selectedValues):this._selectSelected(this.selected)},_selectMulti:fun ction(e){if(e){var t=this._valuesToItems(e);this._selection.clear(t);for(var l=0 ;l<t.length;l++)this._selection.setItemSelected(t[l],!0);if(this.fallbackSelecti on&&this.items.length&&!this._selection.get().length){var s=this._valueToItem(th is.fallbackSelection);s&&(this.selectedValues=[this.fallbackSelection])}}else th is._selection.clear()},_selectionChange:function(){var e=this._selection.get();t his.multi?this._setSelectedItems(e):(this._setSelectedItems([e]),this._setSelect edItem(e))},_toggleSelected:function(e){var t=this.selectedValues.indexOf(e),l=t <0;l?this.push("selectedValues",e):this.splice("selectedValues",t,1)},_valuesToI tems:function(e){return null==e?null:e.map(function(e){return this._valueToItem( e)},this)}},Polymer.IronMultiSelectableBehavior=[Polymer.IronSelectableBehavior, Polymer.IronMultiSelectableBehaviorImpl]</script> <script>Polymer({is:"iron-sele ctor",behaviors:[Polymer.IronMultiSelectableBehavior]})</script> <script>Polymer .IronValidatableBehaviorMeta=null,Polymer.IronValidatableBehavior={properties:{v alidator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,val ue:!1},_validatorMeta:{type:Object},validatorType:{type:String,value:"validator" },_validator:{type:Object,computed:"__computeValidator(validator)"}},observers:[ "_invalidChanged(invalid)"],registered:function(){Polymer.IronValidatableBehavio rMeta=new Polymer.IronMeta({type:"validator"})},_invalidChanged:function(){this. invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-inva lid")},hasValidator:function(){return null!=this._validator},validate:function(a ){return this.invalid=!this._getValidity(a),!this.invalid},_getValidity:function (a){return!this.hasValidator()||this._validator.validate(a)},__computeValidator: function(){return Polymer.IronValidatableBehaviorMeta&&Polymer.IronValidatableBe haviorMeta.byKey(this.validator)}}</script> <script>Polymer.IronFormElementBehav ior={properties:{name:{type:String},value:{notify:!0,type:String},required:{type :Boolean,value:!1},_parentForm:{type:Object}},attached:function(){this.fire("iro n-form-element-register")},detached:function(){this._parentForm&&this._parentFor m.fire("iron-form-element-unregister",{target:this})}}</script> <script>Polymer. IronCheckedElementBehaviorImpl={properties:{checked:{type:Boolean,value:!1,refle ctToAttribute:!0,notify:!0,observer:"_checkedChanged"},toggles:{type:Boolean,val ue:!0,reflectToAttribute:!0},value:{type:String,value:"on",observer:"_valueChang ed"}},observers:["_requiredChanged(required)"],created:function(){this._hasIronC heckedElementBehavior=!0},_getValidity:function(e){return this.disabled||!this.r equired||this.checked},_requiredChanged:function(){this.required?this.setAttribu te("aria-required","true"):this.removeAttribute("aria-required")},_checkedChange d:function(){this.active=this.checked,this.fire("iron-change")},_valueChanged:fu nction(){void 0!==this.value&&null!==this.value||(this.value="on")}},Polymer.Iro nCheckedElementBehavior=[Polymer.IronFormElementBehavior,Polymer.IronValidatable Behavior,Polymer.IronCheckedElementBehaviorImpl]</script> <script>Polymer.PaperI nkyFocusBehaviorImpl={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_ focusedChanged:function(e){e&&this.ensureRipple(),this.hasRipple()&&(this._rippl e.holdDown=e)},_createRipple:function(){var e=Polymer.PaperRippleBehavior._creat eRipple();return e.id="ink",e.setAttribute("center",""),e.classList.add("circle" ),e}},Polymer.PaperInkyFocusBehavior=[Polymer.IronButtonState,Polymer.IronContro lState,Polymer.PaperRippleBehavior,Polymer.PaperInkyFocusBehaviorImpl]</script> <script>Polymer.PaperCheckedElementBehaviorImpl={_checkedChanged:function(){Poly mer.IronCheckedElementBehaviorImpl._checkedChanged.call(this),this.hasRipple()&& (this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribu te("checked"))},_buttonStateChanged:function(){Polymer.PaperRippleBehavior._butt onStateChanged.call(this),this.disabled||this.isAttached&&(this.checked=this.act ive)}},Polymer.PaperCheckedElementBehavior=[Polymer.PaperInkyFocusBehavior,Polym er.IronCheckedElementBehavior,Polymer.PaperCheckedElementBehaviorImpl]</script> <dom-module id="paper-checkbox" assetpath="/res/imp/bower_components/paper-check box/"> <template strip-whitespace=""> <style>:host{display:inline-block;white-sp ace:nowrap;cursor:pointer;--calculated-paper-checkbox-size:var(--paper-checkbox- size, 18px);@apply(--paper-font-common-base);line-height:0;-webkit-tap-highlight -color:transparent}:host([hidden]){display:none!important}:host(:focus){outline: 0}.hidden{display:none}#checkboxContainer{display:inline-block;position:relative ;width:var(--calculated-paper-checkbox-size);height:var(--calculated-paper-check box-size);min-width:var(--calculated-paper-checkbox-size);margin:var(--paper-che ckbox-margin,initial);vertical-align:var(--paper-checkbox-vertical-align,middle) ;background-color:var(--paper-checkbox-unchecked-background-color,transparent)}# ink{position:absolute;top:calc(0px - (2.66 * var(--calculated-paper-checkbox-siz e) - var(--calculated-paper-checkbox-size))/ 2);left:calc(0px - (2.66 * var(--ca lculated-paper-checkbox-size) - var(--calculated-paper-checkbox-size))/ 2);width :calc(2.66 * var(--calculated-paper-checkbox-size));height:calc(2.66 * var(--cal culated-paper-checkbox-size));color:var(--paper-checkbox-unchecked-ink-color,--p rimary-text-color);opacity:.6;pointer-events:none}:host-context([dir=rtl]) #ink{ right:calc(0px - (2.66 * var(--calculated-paper-checkbox-size) - var(--calculate d-paper-checkbox-size))/ 2);left:auto}#ink[checked]{color:var(--paper-checkbox-c hecked-ink-color,--primary-color)}#checkbox{position:relative;box-sizing:border- box;height:100%;border:solid 2px;border-color:var(--paper-checkbox-unchecked-col or,--primary-text-color);border-radius:2px;pointer-events:none;-webkit-transitio n:background-color 140ms,border-color 140ms;transition:background-color 140ms,bo rder-color 140ms}#checkbox.checked #checkmark{-webkit-animation:checkmark-expand 140ms ease-out forwards;animation:checkmark-expand 140ms ease-out forwards}@-we bkit-keyframes checkmark-expand{0%{-webkit-transform:scale(0,0) rotate(45deg)}10 0%{-webkit-transform:scale(1,1) rotate(45deg)}}@keyframes checkmark-expand{0%{tr ansform:scale(0,0) rotate(45deg)}100%{transform:scale(1,1) rotate(45deg)}}#check box.checked{background-color:var(--paper-checkbox-checked-color,--primary-color) ;border-color:var(--paper-checkbox-checked-color,--primary-color)}#checkmark{pos ition:absolute;width:36%;height:70%;border-style:solid;border-top:none;border-le ft:none;border-right-width:calc(2/15 * var(--calculated-paper-checkbox-size));bo rder-bottom-width:calc(2/15 * var(--calculated-paper-checkbox-size));border-colo r:var(--paper-checkbox-checkmark-color,#fff);-webkit-transform-origin:97% 86%;tr ansform-origin:97% 86%;box-sizing:content-box}:host-context([dir=rtl]) #checkmar k{-webkit-transform-origin:50% 14%;transform-origin:50% 14%}#checkboxLabel{posit ion:relative;display:inline-block;vertical-align:middle;padding-left:var(--paper -checkbox-label-spacing,8px);white-space:normal;line-height:normal;color:var(--p aper-checkbox-label-color,--primary-text-color);@apply(--paper-checkbox-label)}: host([checked]) #checkboxLabel{color:var(--paper-checkbox-label-checked-color,-- paper-checkbox-label-color);@apply(--paper-checkbox-label-checked)}:host-context ([dir=rtl]) #checkboxLabel{padding-right:var(--paper-checkbox-label-spacing,8px) ;padding-left:0}#checkboxLabel[hidden]{display:none}:host([disabled]) #checkbox{ opacity:.5;border-color:var(--paper-checkbox-unchecked-color,--primary-text-colo r)}:host([disabled][checked]) #checkbox{background-color:var(--paper-checkbox-un checked-color,--primary-text-color);opacity:.5}:host([disabled]) #checkboxLabel{ opacity:.65}#checkbox.invalid:not(.checked){border-color:var(--paper-checkbox-er ror-color,--error-color)}</style> <div id="checkboxContainer"> <div id="checkbox " class$="[[_computeCheckboxClass(checked, invalid)]]"> <div id="checkmark" clas s$="[[_computeCheckmarkClass(checked)]]"></div> </div> </div> <div id="checkboxL abel"><content></content></div> </template> <script>Polymer({is:"paper-checkbox" ,behaviors:[Polymer.PaperCheckedElementBehavior],hostAttributes:{role:"checkbox" ,"aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,valu e:"aria-checked"}},_computeCheckboxClass:function(e,r){var t="";return e&&(t+="c hecked "),r&&(t+="invalid"),t},_computeCheckmarkClass:function(e){return e?"":"h idden"},_createRipple:function(){return this._rippleContainer=this.$.checkboxCon tainer,Polymer.PaperInkyFocusBehaviorImpl._createRipple.call(this)}})</script> < /dom-module> <dom-module id="paper-icon-button" assetpath="/res/imp/bower_compon ents/paper-icon-button/"> <template strip-whitespace=""> <style>:host{display:in line-block;position:relative;padding:8px;outline:0;-webkit-user-select:none;-moz -user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;z-index:0 ;line-height:1;width:40px;height:40px;-webkit-tap-highlight-color:transparent;-w ebkit-tap-highlight-color:transparent;box-sizing:border-box!important;@apply(--p aper-icon-button)}:host #ink{color:var(--paper-icon-button-ink-color,--primary-t ext-color);opacity:.6}:host([disabled]){color:var(--paper-icon-button-disabled-t ext,--disabled-text-color);pointer-events:none;cursor:auto;@apply(--paper-icon-b utton-disabled)}:host(:hover){@apply(--paper-icon-button-hover)}iron-icon{--iron -icon-width:100%;--iron-icon-height:100%}</style> <iron-icon id="icon" src="[[sr c]]" icon="[[icon]]" alt$="[[alt]]"></iron-icon> </template> <script>Polymer({is :"paper-icon-button",hostAttributes:{role:"button",tabindex:"0"},behaviors:[Poly mer.PaperInkyFocusBehavior],properties:{src:{type:String},icon:{type:String},alt :{type:String,observer:"_altChanged"}},_altChanged:function(t,e){var r=this.getA ttribute("aria-label");r&&e!=r||this.setAttribute("aria-label",t)}})</script> </ dom-module> <script>Polymer({is:"iron-input",extends:"input",behaviors:[Polymer. IronValidatableBehavior],properties:{bindValue:{observer:"_bindValueChanged",typ e:String},preventInvalidInput:{type:Boolean},allowedPattern:{type:String,observe r:"_allowedPatternChanged"},_previousValidInput:{type:String,value:""},_patternA lreadyChecked:{type:Boolean,value:!1}},listeners:{input:"_onInput",keypress:"_on Keypress"},registered:function(){this._canDispatchEventOnDisabled()||(this._orig DispatchEvent=this.dispatchEvent,this.dispatchEvent=this._dispatchEventFirefoxIE )},created:function(){Polymer.IronA11yAnnouncer.requestAvailability()},_canDispa tchEventOnDisabled:function(){var e=document.createElement("input"),t=!1;e.disab led=!0,e.addEventListener("feature-check-dispatch-event",function(){t=!0});try{e .dispatchEvent(new Event("feature-check-dispatch-event"))}catch(e){}return t},_d ispatchEventFirefoxIE:function(){var e=this.disabled;this.disabled=!1,this._orig DispatchEvent.apply(this,arguments),this.disabled=e},get _patternRegExp(){var e; if(this.allowedPattern)e=new RegExp(this.allowedPattern);else switch(this.type){ case"number":e=/[0-9.,e-]/}return e},ready:function(){this.bindValue=this.value} ,_bindValueChanged:function(){this.value!==this.bindValue&&(this.value=this.bind Value||0===this.bindValue||this.bindValue===!1?this.bindValue:""),this.fire("bin d-value-changed",{value:this.bindValue})},_allowedPatternChanged:function(){this .preventInvalidInput=!!this.allowedPattern},_onInput:function(){if(this.preventI nvalidInput&&!this._patternAlreadyChecked){var e=this._checkPatternValidity();e| |(this._announceInvalidCharacter("Invalid string of characters not entered."),th is.value=this._previousValidInput)}this.bindValue=this.value,this._previousValid Input=this.value,this._patternAlreadyChecked=!1},_isPrintable:function(e){var t= 8==e.keyCode||9==e.keyCode||13==e.keyCode||27==e.keyCode,i=19==e.keyCode||20==e. keyCode||45==e.keyCode||46==e.keyCode||144==e.keyCode||145==e.keyCode||e.keyCode >32&&e.keyCode<41||e.keyCode>111&&e.keyCode<124;return!(t||0==e.charCode&&i)},_o nKeypress:function(e){if(this.preventInvalidInput||"number"===this.type){var t=t his._patternRegExp;if(t&&!(e.metaKey||e.ctrlKey||e.altKey)){this._patternAlready Checked=!0;var i=String.fromCharCode(e.charCode);this._isPrintable(e)&&!t.test(i )&&(e.preventDefault(),this._announceInvalidCharacter("Invalid character "+i+" n ot entered."))}}},_checkPatternValidity:function(){var e=this._patternRegExp;if( !e)return!0;for(var t=0;t<this.value.length;t++)if(!e.test(this.value[t]))return !1;return!0},validate:function(){var e=this.checkValidity();return e&&(this.requ ired&&""===this.value?e=!1:this.hasValidator()&&(e=Polymer.IronValidatableBehavi or.validate.call(this,this.value))),this.invalid=!e,this.fire("iron-input-valida te"),e},_announceInvalidCharacter:function(e){this.fire("iron-announce",{text:e} )}})</script> <script>Polymer.PaperInputHelper={},Polymer.PaperInputHelper.NextL abelID=1,Polymer.PaperInputHelper.NextAddonID=1,Polymer.PaperInputBehaviorImpl={ properties:{label:{type:String},value:{notify:!0,type:String},disabled:{type:Boo lean,value:!1},invalid:{type:Boolean,value:!1,notify:!0},preventInvalidInput:{ty pe:Boolean},allowedPattern:{type:String},type:{type:String},list:{type:String},p attern:{type:String},required:{type:Boolean,value:!1},errorMessage:{type:String} ,charCounter:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1},always FloatLabel:{type:Boolean,value:!1},autoValidate:{type:Boolean,value:!1},validato r:{type:String},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,o bserver:"_autofocusChanged"},inputmode:{type:String},minlength:{type:Number},max length:{type:Number},min:{type:String},max:{type:String},step:{type:String},name :{type:String},placeholder:{type:String,value:""},readonly:{type:Boolean,value:! 1},size:{type:Number},autocapitalize:{type:String,value:"none"},autocorrect:{typ e:String,value:"off"},autosave:{type:String},results:{type:Number},accept:{type: String},multiple:{type:Boolean},_ariaDescribedBy:{type:String,value:""},_ariaLab elledBy:{type:String,value:""}},listeners:{"addon-attached":"_onAddonAttached"}, keyBindings:{"shift+tab:keydown":"_onShiftTabDown"},hostAttributes:{tabindex:0}, get inputElement(){return this.$.input},get _focusableElement(){return this.inpu tElement},registered:function(){this._typesThatHaveText=["date","datetime","date time-local","month","time","week","file"]},attached:function(){this._updateAriaL abelledBy(),this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement .type)!==-1&&(this.alwaysFloatLabel=!0)},_appendStringWithSpace:function(e,t){re turn e=e?e+" "+t:t},_onAddonAttached:function(e){var t=e.path?e.path[0]:e.target ;if(t.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy ,t.id);else{var a="paper-input-add-on-"+Polymer.PaperInputHelper.NextAddonID++;t .id=a,this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,a) }},validate:function(){return this.inputElement.validate()},_focusBlurHandler:fu nction(e){Polymer.IronControlState._focusBlurHandler.call(this,e),this.focused&& !this._shiftTabPressed&&this._focusableElement.focus()},_onShiftTabDown:function (e){var t=this.getAttribute("tabindex");this._shiftTabPressed=!0,this.setAttribu te("tabindex","-1"),this.async(function(){this.setAttribute("tabindex",t),this._ shiftTabPressed=!1},1)},_handleAutoValidate:function(){this.autoValidate&&this.v alidate()},updateValueAndPreserveCaret:function(e){try{var t=this.inputElement.s electionStart;this.value=e,this.inputElement.selectionStart=t,this.inputElement. selectionEnd=t}catch(t){this.value=e}},_computeAlwaysFloatLabel:function(e,t){re turn t||e},_updateAriaLabelledBy:function(){var e=Polymer.dom(this.root).querySe lector("label");if(!e)return void(this._ariaLabelledBy="");var t;e.id?t=e.id:(t= "paper-input-label-"+Polymer.PaperInputHelper.NextLabelID++,e.id=t),this._ariaLa belledBy=t},_onChange:function(e){this.shadowRoot&&this.fire(e.type,{sourceEvent :e},{node:this,bubbles:e.bubbles,cancelable:e.cancelable})},_autofocusChanged:fu nction(){if(this.autofocus&&this._focusableElement){var e=document.activeElement ,t=e instanceof HTMLElement,a=t&&e!==document.body&&e!==document.documentElement ;a||this._focusableElement.focus()}}},Polymer.PaperInputBehavior=[Polymer.IronCo ntrolState,Polymer.IronA11yKeysBehavior,Polymer.PaperInputBehaviorImpl]</script> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:400 ,300,300italic,400italic,500,500italic,700,700italic"> <link rel="stylesheet" hr ef="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700"> <style is="cus tom-style">:root{--paper-font-common-base:{font-family:Roboto,Noto,sans-serif;-w ebkit-font-smoothing:antialiased};--paper-font-common-code:{font-family:'Roboto Mono',Consolas,Menlo,monospace;-webkit-font-smoothing:antialiased};--paper-font- common-expensive-kerning:{text-rendering:optimizeLegibility};--paper-font-common -nowrap:{white-space:nowrap;overflow:hidden;text-overflow:ellipsis};--paper-font -display4:{@apply(--paper-font-common-base);@apply(--paper-font-common-nowrap);f ont-size:112px;font-weight:300;letter-spacing:-.044em;line-height:120px};--paper -font-display3:{@apply(--paper-font-common-base);@apply(--paper-font-common-nowr ap);font-size:56px;font-weight:400;letter-spacing:-.026em;line-height:60px};--pa per-font-display2:{@apply(--paper-font-common-base);font-size:45px;font-weight:4 00;letter-spacing:-.018em;line-height:48px};--paper-font-display1:{@apply(--pape r-font-common-base);font-size:34px;font-weight:400;letter-spacing:-.01em;line-he ight:40px};--paper-font-headline:{@apply(--paper-font-common-base);font-size:24p x;font-weight:400;letter-spacing:-.012em;line-height:32px};--paper-font-title:{@ apply(--paper-font-common-base);@apply(--paper-font-common-nowrap);font-size:20p x;font-weight:500;line-height:28px};--paper-font-subhead:{@apply(--paper-font-co mmon-base);font-size:16px;font-weight:400;line-height:24px};--paper-font-body2:{ @apply(--paper-font-common-base);font-size:14px;font-weight:500;line-height:24px };--paper-font-body1:{@apply(--paper-font-common-base);font-size:14px;font-weigh t:400;line-height:20px};--paper-font-caption:{@apply(--paper-font-common-base);@ apply(--paper-font-common-nowrap);font-size:12px;font-weight:400;letter-spacing: 0.011em;line-height:20px};--paper-font-menu:{@apply(--paper-font-common-base);@a pply(--paper-font-common-nowrap);font-size:13px;font-weight:500;line-height:24px };--paper-font-button:{@apply(--paper-font-common-base);@apply(--paper-font-comm on-nowrap);font-size:14px;font-weight:500;letter-spacing:0.018em;line-height:24p x;text-transform:uppercase};--paper-font-code2:{@apply(--paper-font-common-code) ;font-size:14px;font-weight:700;line-height:20px};--paper-font-code1:{@apply(--p aper-font-common-code);font-size:14px;font-weight:500;line-height:20px};}</style > <script>Polymer.PaperInputAddonBehavior={hostAttributes:{"add-on":""},attached :function(){this.fire("addon-attached")},update:function(t){}}</script> <dom-mod ule id="paper-input-char-counter" assetpath="/res/imp/bower_components/paper-inp ut/"> <template> <style>:host{display:inline-block;float:right;@apply(--paper-fo nt-caption);@apply(--paper-input-char-counter)}:host([hidden]){display:none!impo rtant}:host-context([dir=rtl]){float:left}</style> <span>[[_charCounterStr]]</sp an> </template> </dom-module> <script>Polymer({is:"paper-input-char-counter",beh aviors:[Polymer.PaperInputAddonBehavior],properties:{_charCounterStr:{type:Strin g,value:"0"}},update:function(t){if(t.inputElement){t.value=t.value||"";var e=t. value.toString().length.toString();t.inputElement.hasAttribute("maxlength")&&(e+ ="/"+t.inputElement.getAttribute("maxlength")),this._charCounterStr=e}}})</scrip t> <dom-module id="paper-input-container" assetpath="/res/imp/bower_components/p aper-input/"> <template> <style>:host{display:block;padding:8px 0;@apply(--paper -input-container)}:host([inline]){display:inline-block}:host([disabled]){pointer -events:none;opacity:.33;@apply(--paper-input-container-disabled)}:host([hidden] ){display:none!important}.floated-label-placeholder{@apply(--paper-font-caption) }.underline{position:relative}.focused-line{@apply(--layout-fit);background:var( --paper-input-container-focus-color,--primary-color);height:2px;-webkit-transfor m-origin:center center;transform-origin:center center;-webkit-transform:scale3d( 0,1,1);transform:scale3d(0,1,1);@apply(--paper-input-container-underline-focus)} .underline.is-highlighted .focused-line{-webkit-transform:none;transform:none;-w ebkit-transition:-webkit-transform .25s;transition:transform .25s;@apply(--paper -transition-easing)}.underline.is-invalid .focused-line{background:var(--paper-i nput-container-invalid-color,--error-color);-webkit-transform:none;transform:non e;-webkit-transition:-webkit-transform .25s;transition:transform .25s;@apply(--p aper-transition-easing)}.unfocused-line{@apply(--layout-fit);background:var(--pa per-input-container-color,--secondary-text-color);height:1px;@apply(--paper-inpu t-container-underline)}:host([disabled]) .unfocused-line{border-bottom:1px dashe d;border-color:var(--paper-input-container-color,--secondary-text-color);backgro und:0 0;@apply(--paper-input-container-underline-disabled)}.label-and-input-cont ainer{@apply(--layout-flex-auto);@apply(--layout-relative);width:100%;max-width: 100%}.input-content{@apply(--layout-horizontal);@apply(--layout-center);position :relative}.input-content ::content .paper-input-label,.input-content ::content l abel{position:absolute;top:0;right:0;left:0;width:100%;font:inherit;color:var(-- paper-input-container-color,--secondary-text-color);-webkit-transition:-webkit-t ransform .25s,width .25s;transition:transform .25s,width .25s;-webkit-transform- origin:left top;transform-origin:left top;@apply(--paper-font-common-nowrap);@ap ply(--paper-font-subhead);@apply(--paper-input-container-label);@apply(--paper-t ransition-easing)}.input-content.label-is-floating ::content .paper-input-label, .input-content.label-is-floating ::content label{-webkit-transform:translateY(-7 5%) scale(.75);transform:translateY(-75%) scale(.75);width:133%;@apply(--paper-i nput-container-label-floating)}:host-context([dir=rtl]) .input-content.label-is- floating ::content .paper-input-label,:host-context([dir=rtl]) .input-content.la bel-is-floating ::content label{width:100%;-webkit-transform-origin:right top;tr ansform-origin:right top}.input-content.label-is-highlighted ::content .paper-in put-label,.input-content.label-is-highlighted ::content label{color:var(--paper- input-container-focus-color,--primary-color);@apply(--paper-input-container-labe l-focus)}.input-content.is-invalid ::content .paper-input-label,.input-content.i s-invalid ::content label{color:var(--paper-input-container-invalid-color,--erro r-color)}.input-content.label-is-hidden ::content .paper-input-label,.input-cont ent.label-is-hidden ::content label{visibility:hidden}.input-content ::content . paper-input-input,.input-content ::content input,.input-content ::content iron-a utogrow-textarea,.input-content ::content textarea{position:relative;outline:0;b ox-shadow:none;padding:0;width:100%;max-width:100%;background:0 0;border:none;co lor:var(--paper-input-container-input-color,--primary-text-color);-webkit-appear ance:none;text-align:inherit;@apply(--paper-font-subhead);@apply(--paper-input-c ontainer-input)}::content [prefix]{@apply(--paper-font-subhead);@apply(--paper-i nput-prefix);@apply(--layout-flex-none)}::content [suffix]{@apply(--paper-font-s ubhead);@apply(--paper-input-suffix);@apply(--layout-flex-none)}.input-content : :content input{min-width:0}.input-content ::content textarea{resize:none}.add-on -content{position:relative}.add-on-content.is-invalid ::content *{color:var(--pa per-input-container-invalid-color,--error-color)}.add-on-content.is-highlighted ::content *{color:var(--paper-input-container-focus-color,--primary-color)}</sty le> <template is="dom-if" if="[[!noLabelFloat]]"> <div class="floated-label-plac eholder" aria-hidden="true">&nbsp;</div> </template> <div class$="[[_computeInpu tContentClass(noLabelFloat,alwaysFloatLabel,focused,invalid,_inputHasContent)]]" > <content select="[prefix]" id="prefix"></content> <div class="label-and-input- container" id="labelAndInputContainer"> <content select=":not([add-on]):not([pre fix]):not([suffix])"></content> </div> <content select="[suffix]"></content> </d iv> <div class$="[[_computeUnderlineClass(focused,invalid)]]"> <div class="unfoc used-line"></div> <div class="focused-line"></div> </div> <div class$="[[_comput eAddOnContentClass(focused,invalid)]]"> <content id="addOnContent" select="[add- on]"></content> </div> </template> </dom-module> <script>Polymer({is:"paper-inpu t-container",properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{ type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidat e:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value :!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},_addons:{type:Array}, _inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"inpu t,textarea,.paper-input-input"},_boundOnFocus:{type:Function,value:function(){re turn this._onFocus.bind(this)}},_boundOnBlur:{type:Function,value:function(){ret urn this._onBlur.bind(this)}},_boundOnInput:{type:Function,value:function(){retu rn this._onInput.bind(this)}},_boundValueChanged:{type:Function,value:function() {return this._onValueChanged.bind(this)}}},listeners:{"addon-attached":"_onAddon Attached","iron-input-validate":"_onIronInputValidate"},get _valueChangedEvent() {return this.attrForValue+"-changed"},get _propertyForValue(){return Polymer.Cas eMap.dashToCamelCase(this.attrForValue)},get _inputElement(){return Polymer.dom( this).querySelector(this._inputSelector)},get _inputElementValue(){return this._ inputElement[this._propertyForValue]||this._inputElement.value},ready:function() {this._addons||(this._addons=[]),this.addEventListener("focus",this._boundOnFocu s,!0),this.addEventListener("blur",this._boundOnBlur,!0)},attached:function(){th is.attrForValue?this._inputElement.addEventListener(this._valueChangedEvent,this ._boundValueChanged):this.addEventListener("input",this._onInput),""!=this._inpu tElementValue?this._handleValueAndAutoValidate(this._inputElement):this._handleV alue(this._inputElement)},_onAddonAttached:function(t){this._addons||(this._addo ns=[]);var n=t.target;this._addons.indexOf(n)===-1&&(this._addons.push(n),this.i sAttached&&this._handleValue(this._inputElement))},_onFocus:function(){this._set Focused(!0)},_onBlur:function(){this._setFocused(!1),this._handleValueAndAutoVal idate(this._inputElement)},_onInput:function(t){this._handleValueAndAutoValidate (t.target)},_onValueChanged:function(t){this._handleValueAndAutoValidate(t.targe t)},_handleValue:function(t){var n=this._inputElementValue;n||0===n||"number"=== t.type&&!t.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1,thi s.updateAddons({inputElement:t,value:n,invalid:this.invalid})},_handleValueAndAu toValidate:function(t){if(this.autoValidate){var n;n=t.validate?t.validate(this. _inputElementValue):t.checkValidity(),this.invalid=!n}this._handleValue(t)},_onI ronInputValidate:function(t){this.invalid=this._inputElement.invalid},_invalidCh anged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},update Addons:function(t){for(var n,e=0;n=this._addons[e];e++)n.update(t)},_computeInpu tContentClass:function(t,n,e,i,a){var u="input-content";if(t)a&&(u+=" label-is-h idden");else{var o=this.querySelector("label");n||a?(u+=" label-is-floating",thi s.$.labelAndInputContainer.style.position="static",i?u+=" is-invalid":e&&(u+=" l abel-is-highlighted")):o&&(this.$.labelAndInputContainer.style.position="relativ e")}return u},_computeUnderlineClass:function(t,n){var e="underline";return n?e+ =" is-invalid":t&&(e+=" is-highlighted"),e},_computeAddOnContentClass:function(t ,n){var e="add-on-content";return n?e+=" is-invalid":t&&(e+=" is-highlighted"),e }})</script> <dom-module id="paper-input-error" assetpath="/res/imp/bower_compon ents/paper-input/"> <template> <style>:host{display:inline-block;visibility:hidd en;color:var(--paper-input-container-invalid-color,--error-color);@apply(--paper -font-caption);@apply(--paper-input-error);position:absolute;left:0;right:0}:hos t([invalid]){visibility:visible};</style> <content></content> </template> </dom- module> <script>Polymer({is:"paper-input-error",behaviors:[Polymer.PaperInputAdd onBehavior],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean} },update:function(e){this._setInvalid(e.invalid)}})</script> <dom-module id="pap er-input" assetpath="/res/imp/bower_components/paper-input/"> <template> <style> :host{display:block}:host([hidden]){display:none!important}input::-webkit-input- placeholder{color:var(--paper-input-container-color,--secondary-text-color)}inpu t:-moz-placeholder{color:var(--paper-input-container-color,--secondary-text-colo r)}input::-moz-placeholder{color:var(--paper-input-container-color,--secondary-t ext-color)}input:-ms-input-placeholder{color:var(--paper-input-container-color,- -secondary-text-color)}</style> <paper-input-container no-label-float="[[noLabel Float]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeho lder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[i nvalid]]"> <content select="[prefix]"></content> <label hidden$="[[!label]]" ari a-hidden="true" for="input">[[label]]</label> <input is="iron-input" id="input" aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" disabled$="[[disabled]]" title$="[[title]]" bind-value="{{value}}" invalid="{{in valid}}" prevent-invalid-input="[[preventInvalidInput]]" allowed-pattern="[[allo wedPattern]]" validator="[[validator]]" type$="[[type]]" pattern$="[[pattern]]" required$="[[required]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocu s]]" inputmode$="[[inputmode]]" minlength$="[[minlength]]" maxlength$="[[maxleng th]]" min$="[[min]]" max$="[[max]]" step$="[[step]]" name$="[[name]]" placeholde r$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list]]" size$="[[size]]" autocapitalize$="[[autocapitalize]]" autocorrect$="[[autocorrect]]" on-change="_ onChange" tabindex$="[[tabindex]]" autosave$="[[autosave]]" results$="[[results] ]" accept$="[[accept]]" multiple$="[[multiple]]"> <content select="[suffix]"></c ontent> <template is="dom-if" if="[[errorMessage]]"> <paper-input-error aria-liv e="assertive">[[errorMessage]]</paper-input-error> </template> <template is="dom -if" if="[[charCounter]]"> <paper-input-char-counter></paper-input-char-counter> </template> </paper-input-container> </template> </dom-module> <script>Polymer( {is:"paper-input",behaviors:[Polymer.IronFormElementBehavior,Polymer.PaperInputB ehavior]})</script> <dom-module id="query-column-filter-style" assetpath="/res/i mp/common/"> <template> <style>:host{display:block;font-family:sans-serif}#filte r{margin:0 5px}.container{min-height:120px;width:100%}.item{border-bottom:1px so lid #EEE;max-width:250px;min-height:1em;min-width:100px;padding:.1em .2em;line-h eight:1.5em}.header{height:2em;padding:.25em;line-height:2em}.selector{border:1p x solid #000;margin:0 5px;max-height:200px;min-height:130px;min-width:200px;over flow-y:auto;overflow-x:hidden}.selectable{cursor:pointer}.selectable:hover{backg round-color:#A6CEE3}.iron-selected{background-color:#1F78B4;color:#fff}.icons{cu rsor:pointer;height:20px;margin:2px;width:20px;flex-shrink:0}.side-by-side{displ ay:inline-block;vertical-align:top}.bold{font-weight:700}paper-checkbox{max-heig ht:2em;margin:2px;--paper-checkbox-checked-color:black;--paper-checkbox-checked- ink-color:black;--paper-checkbox-unchecked-color:black;--paper-checkbox-unchecke d-ink-color:black;--paper-checkbox-label-color:black}</style> </template> </dom- module> <script>!function(){var r=function(r,i){if(!i)return{idx:0,part:""};if(! r)return{idx:-1};i=i.trim().toLocaleLowerCase(),r=r.toLocaleLowerCase();for(var t=i.split(" "),e=0;e<t.length;e++){var n=r.indexOf(t[e]);if(n!==-1)return{idx:n, part:t[e]}}return{idx:-1}};SwarmingBehaviors.QueryColumnFilter=[SwarmingBehavior s.CommonBehavior,{properties:{primary_map:{type:Object},primary_arr:{type:Array} ,dimensions:{type:Array},filter:{type:Function,computed:"_makeFilter(_filters.*) ",notify:!0},FILTER_SEP:{type:String,value:":"},_filters:{type:Array},_limit:{ty pe:Number},_primaryItems:{type:Array,computed:"_primary(_query, primary_map, pri mary_arr, columns.*)"},_primarySelected:{type:String,value:""},_query:{type:Stri ng},_secondaryItems:{type:Array,computed:"_secondary(_primarySelected, _query, p rimary_map)"}},_addFilter:function(r){var i=r.model.item;if(!this._cantAddFilter (this._primarySelected,i)){var t=this._primarySelected+this.FILTER_SEP+i;this.pu sh("_filters",t)}},_removeFilter:function(r){var i=r.model.fil;if(!this._cantRem oveFilter(i)){var t=this._filters.indexOf(i);t!==-1&&this.splice("_filters",t,1) }},_cantAddFilter:function(r,i){if(!r||!i)return!0;var t=r+this.FILTER_SEP+i;ret urn this._filters.indexOf(t)!==-1},_cantRemoveFilter:function(r){return!r||this. _filters.indexOf(r)===-1},_makeFilter:function(){var r={};this._filters.forEach( function(i){var t=i.indexOf(this.FILTER_SEP),e=i.slice(0,t),n=i.slice(t+this.FIL TER_SEP.length),a=r[e]||[];a.push(n),r[e]=a}.bind(this));var i=this._filterMap|| {};return function(t){var e=!0;for(primary in r){var n=r[primary],a=i[primary];a ||(a=function(r,i){var t=this._attribute(r,primary);return t.indexOf(i)!==-1}.bi nd(this)),a&&n.forEach(function(r){e=e&&a.bind(this)(t,r)}.bind(this))}return e} },_toggleColumn:function(r){var i=r.model.item;if(!this._cantToggleColumn(i)){if (this._columnState(i)){var t=this.columns.indexOf(i);return void(t!==-1&&this.sp lice("columns",t,1))}this.push("columns",i)}},_cantToggleColumn:function(r){retu rn!1},_columnState:function(r){return!!r&&this.columns.indexOf(r)!==-1},_primary :function(i,t,e){var n=this.primary_arr.filter(function(e){if(r(e,i).idx!==-1)re turn!0;for(var n=t[e],a=0;a<n.length;a++)if(r(n[a],i).idx!==-1)return!0;return!1 });return i&&n.length>0&&n.indexOf(this._primarySelected)===-1&&this.set("_prima rySelected",n[0]),n},_secondary:function(i,t,e){return requestAnimationFrame(fun ction(){this.$.secondaryList.render()}.bind(this)),i?r(i,t).idx!==-1?e[i].sort(f unction(i,e){var n=r(i,t).idx!==-1,a=r(e,t).idx!==-1;return n===a?swarming.natur alCompare(i,e):a-n}):e[i].filter(function(i){return r(i,t).idx!==-1}):[]},_befor eBold:function(i,t){var e=r(i,t);return e.idx===-1?i:i.substring(0,e.idx)},_bold :function(i,t){var e=r(i,t);return e.idx===-1?"":i.substring(e.idx,e.idx+e.part. length)},_afterBold:function(i,t){var e=r(i,t);return e.idx===-1?"":i.substring( e.idx+e.part.length)},_commonFilters:function(){return{android_devices:function( r,i){var t=this._attribute(r,"android_devices","0");return t.indexOf(i)!==-1},de vice_os:function(r,i){var t=this._attribute(r,"device_os","none");return t.index Of(i)!==-1},device_type:function(r,i){var t=this._attribute(r,"device_type","non e");return t.indexOf(swarming.alias.unapply(i))!==-1},gpu:function(r,i){var t=th is._attribute(r,"gpu","none");return t.indexOf(swarming.alias.unapply(i))!==-1}} }}]}()</script> <script>!function(){var e="available",t="unknown";SwarmingBehavi ors.BotListBehavior=[SwarmingBehaviors.CommonBehavior,{properties:{BOT_PROPERTIE S:{type:Array,value:function(){return["disk_space","task","status"]}}},_attribut e:function(e,i,n){return n=n||t,this._dimension(e,i)||this._state(e,i)||[n]},_de vices:function(t){var i=[],n=t&&t.state&&t.state.devices||{};for(key in n){var r =n[key];r.serial=key,r.okay=r.state===e,r.device_type=this._attribute(t,"device_ type")[0],i.push(r)}return i},_deviceType:function(e){return e.device_type.toLow erCase()},_dimension:function(e,t){if(e&&e.dimensions&&t)for(var i=0;i<e.dimensi ons.length;i++)if(e.dimensions[i].key===t)return e.dimensions[i].value},_state:f unction(e,t){if(e&&e.state&&e.state[t]){var i=e.state[t];return Array.isArray(i) ?i:[i]}},_taskId:function(e){return e&&e.task_id?e.task_id:"idle"}}]}()</script> <dom-module id="bot-filters" assetpath="/res/imp/botlist/"> <template> <style i s="custom-style" include="iron-flex iron-flex-alignment iron-positioning query-c olumn-filter-style"></style> <url-param name="filters" value="{{_filters}}" defa ult_values="[]" multi=""> </url-param> <url-param name="columns" value="{{column s}}" default_values="[&quot;id&quot;,&quot;os&quot;,&quot;task&quot;,&quot;statu s&quot;]" multi=""> </url-param> <url-param name="query" value="{{_query}}" defa ult_value=""> </url-param> <url-param name="verbose" value="{{verbose}}"> </url- param> <url-param name="_limit" default_value="200" value="{{_limit}}"> </url-pa ram> <div class="container horizontal layout"> <div class="narrow-down-selector" > <div> <paper-input id="filter" label="Search columns and filters" placeholder= "gpu nvidia" value="{{_query}}"> </paper-input> </div> <div class="selector side -by-side" title="This shows all bot dimension names and other interesting bot pr operties. Mark the check box to add as a column. Select the row to see filter op tions."> <iron-selector attr-for-selected="label" selected="{{_primarySelected}} "> <template is="dom-repeat" items="[[_primaryItems]]" as="item"> <div class="se lectable item horizontal layout" label="[[item]]"> <span>[[_beforeBold(item,_que ry)]]<span class="bold">[[_bold(item,_query)]]</span>[[_afterBold(item,_query)]] </span> <span class="flex"></span> <paper-checkbox noink="" disabled$="[[_cantTo ggleColumn(item)]]" checked="[[_columnState(item,columns.*)]]" on-change="_toggl eColumn"> </paper-checkbox> </div> </template> </iron-selector> </div> <div clas s="selector side-by-side" title="These are all options (if any) that the bot lis t can be filtered on."> <template is="dom-repeat" id="secondaryList" items="[[_s econdaryItems]]" as="item"> <div class="item horizontal layout" label="[[item]]" > <span>[[_beforeBold(item,_query)]]<span class="bold">[[_bold(item,_query)]]</s pan>[[_afterBold(item,_query)]]</span> <span class="flex"></span> <iron-icon cla ss="icons" icon="icons:arrow-forward" hidden="[[_cantAddFilter(_primarySelected, item,_filters.*)]]" on-tap="_addFilter"> </iron-icon> </div> </template> </div> <div class="selector side-by-side" title="These filters are AND'd together and a pplied to all bots in 6 python swarming_bot.zip</pre> </li> </ol> </div> <h2>Stats</h2> <div>TODO(kjlu bick) add these in</div> </swarming-app> </template> <script>Polymer({is:"swarmi ng-index",behaviors:[SwarmingBehaviors.CommonBehavior],properties:{client_id:{ty pe:String},_bootstrap_token:{type:String,value:"abc123"},_busy:{type:Boolean,val ue:!1},_host_url:{type:String,value:function(){return location.origin}},_permiss ions:{type:Object},_project_id:{type:String,value:function(){var o=location.host name.indexOf(".appspot.com");return location.hostname.substring(0,o)}},_server_v ersion:{type:Object}},_cannotBootstrap:function(o){return!(o&&o.get_bootstrap_to ken)},_makeInstancesUrl:function(o,e){return"https://console.cloud.google.com/ap pengine/instances?project="+e+"&versionId="+o.server_version},_makeErrorUrl:func tion(o){return"https://console.cloud.google.com/errors?project="+o},_makeLogUrl: function(o){return"https://pantheon.corp.google.com/logs/viewer?filters=text:sta tus:500..599&project="+o}})</script> </dom-module><dom-module id="dynamic-table- style" assetpath="/res/imp/common/"> <template> <style>table{border-collapse:col lapse;margin-left:5px}td,th{border:1px solid #DDD;padding:5px}th{position:relati ve}sort-toggle{position:absolute;right:0;top:.4em}</style> </template> </dom-mod ule> <script>!function(){SwarmingBehaviors.DynamicTableBehavior=[SwarmingBehavio rs.CommonBehavior,{properties:{_columns:{type:Array},_filter:{type:Function},_fi lteredSortedItems:{type:Array,computed:"_filterAndSort(_items,_filter.*,_sort.*) "},_items:{type:Array},_plainColumns:{type:Array,computed:"_stripSpecial(_column s.*)"},_sort:{type:Object,computed:"_makeSortObject(_sortstr)"},_sortstr:{type:S tring},_verbose:{type:Boolean}},_column:function(t,i){var n=this._columnMap[t];r eturn n||(n=function(i){var n=this._attribute(i,t,"none");return this._verbose?n .join(" | "):n[0]}),n.bind(this)(i)},_compare:function(t,i){if(!this._sort)retur n 0;var n=1;"desc"===this._sort.direction&&(n=-1);var r=this._specialSort[this._ sort.name];if(r)return r.bind(this)(n,t,i);var e=this._column(this._sort.name,t) ,s=this._column(this._sort.name,i);return n*swarming.naturalCompare(e,s)},_filte rAndSort:function(){swarming.stableSort(this._items,this._compare.bind(this));va r t=this._items;return this._filter&&(t=t.filter(this._filter.bind(this))),t},_h eader:function(t){return this._headerMap[t]||t},_hide:function(t){return this._c olumns.indexOf(t)===-1},_makeSortObject:function(t){if(t){var i=t.split(":");ret urn 2!=i.length?{name:"id",direction:"asc"}:{name:i[0],direction:i[1]}}},_sortCh ange:function(t){t&&t.detail&&t.detail.name&&this.set("_sortstr",t.detail.name+" :"+t.detail.direction)},_stripSpecial:function(){return this._columns.filter(fun ction(t){return this._specialColumns.indexOf(t)===-1}.bind(this)).sort()},_commo nColumns:function(){return{device_type:function(t){var i=this._attribute(t,"devi ce_type","none");i=i[0];var n=swarming.alias.android(i);return"unknown"===n?i:sw arming.alias.apply(i,n)},gpu:function(t){var i=this._attribute(t,"gpu","none"),n =[],r=[];return i.forEach(function(t){var i=swarming.alias.gpu(t);return"unknown "===i?(n.push(t),void(t.indexOf(":")===-1&&r.push(t))):(n.push(swarming.alias.ap ply(t,i)),void(t.indexOf(":")===-1&&r.push(swarming.alias.apply(t,i))))}.bind(th is)),this._verbose||!r.length?n.join(" | "):r.join(" | ")},pool:function(t){var i=this._attribute(t,"pool");return i.join(" | ")}}}}]}()</script><dom-module id= "sort-toggle" assetpath="/res/imp/common/"> <template> <style>:host{display:inli ne-block;position:relative;min-width:20px;min-height:16px;vertical-align:middle} iron-icon{position:absolute;left:0;cursor:pointer}.hidden{visibility:hidden}</st yle> <span on-click="toggle"> <iron-icon style="top:0" class$="[[_hidden(directi on,'asc')]]" icon="icons:arrow-drop-down"> </iron-icon> <iron-icon style="bottom :0" class$="[[_hidden(direction,'desc')]]" icon="icons:arrow-drop-up"> </iron-ic on> </span> </template> <script>Polymer({is:"sort-toggle",properties:{current:{t ype:Object,observer:"_resetSort"},name:{type:String,observer:"_resetSort"},direc tion:{type:String,value:"",notify:!0}},toggle:function(){"asc"===this.direction? this.set("direction","desc"):this.set("direction","asc"),this.fire("sort_change" ,{direction:this.direction,name:this.name})},_hidden:function(t,e){return t===e? "hidden":""},_resetSort:function(){this.current&&this.current.name===this.name?t his.set("direction",this.current.direction):this.set("direction","")}})</script> </dom-module> <dom-module id="iron-a11y-announcer" assetpath="/res/imp/bower_co mponents/iron-a11y-announcer/"> <template> <style>:host{display:inline-block;pos ition:fixed;clip:rect(0,0,0,0)}</style> <div aria-live$="[[mode]]">[[_text]]</di v> </template> <script>!function(){"use strict";Polymer.IronA11yAnnouncer=Polyme r({is:"iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},_text: {type:String,value:""}},created:function(){Polymer.IronA11yAnnouncer.instance||( Polymer.IronA11yAnnouncer.instance=this),document.body.addEventListener("iron-an nounce",this._onIronAnnounce.bind(this))},announce:function(n){this._text="",thi s.async(function(){this._text=n},100)},_onIronAnnounce:function(n){n.detail&&n.d etail.text&&this.announce(n.detail.text)}}),Polymer.IronA11yAnnouncer.instance=n ull,Polymer.IronA11yAnnouncer.requestAvailability=function(){Polymer.IronA11yAnn ouncer.instance||(Polymer.IronA11yAnnouncer.instance=document.createElement("iro n-a11y-announcer")),document.body.appendChild(Polymer.IronA11yAnnouncer.instance )}}()</script> </dom-module> <script>Polymer.IronFitBehavior={properties:{sizing Target:{type:Object,value:function(){return this}},fitInto:{type:Object,value:wi ndow},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{ty pe:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOff set:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:! 0},autoFitOnAttach:{type:Boolean,value:!1},_fitInfo:{type:Object}},get _fitWidth (){var t;return t=this.fitInto===window?this.fitInto.innerWidth:this.fitInto.get BoundingClientRect().width},get _fitHeight(){var t;return t=this.fitInto===windo w?this.fitInto.innerHeight:this.fitInto.getBoundingClientRect().height},get _fit Left(){var t;return t=this.fitInto===window?0:this.fitInto.getBoundingClientRect ().left},get _fitTop(){var t;return t=this.fitInto===window?0:this.fitInto.getBo undingClientRect().top},get _defaultPositionTarget(){var t=Polymer.dom(this).par entNode;return t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(t=t.host),t},get _l ocaleHorizontalAlign(){if(this._isRTL){if("right"===this.horizontalAlign)return" left";if("left"===this.horizontalAlign)return"right"}return this.horizontalAlign },attached:function(){this._isRTL="rtl"==window.getComputedStyle(this).direction ,this.positionTarget=this.positionTarget||this._defaultPositionTarget,this.autoF itOnAttach&&("none"===window.getComputedStyle(this).display?setTimeout(function( ){this.fit()}.bind(this)):this.fit())},fit:function(){this.position(),this.const rain(),this.center()},_discoverInfo:function(){if(!this._fitInfo){var t=window.g etComputedStyle(this),i=window.getComputedStyle(this.sizingTarget);this._fitInfo ={inlineStyle:{top:this.style.top||"",left:this.style.left||"",position:this.sty le.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"" ,maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.sty le.boxSizing||""},positionedBy:{vertically:"auto"!==t.top?"top":"auto"!==t.botto m?"bottom":null,horizontally:"auto"!==t.left?"left":"auto"!==t.right?"right":nul l},sizedBy:{height:"none"!==i.maxHeight,width:"none"!==i.maxWidth,minWidth:parse Int(i.minWidth,10)||0,minHeight:parseInt(i.minHeight,10)||0},margin:{top:parseIn t(t.marginTop,10)||0,right:parseInt(t.marginRight,10)||0,bottom:parseInt(t.margi nBottom,10)||0,left:parseInt(t.marginLeft,10)||0}},this.verticalOffset&&(this._f itInfo.margin.top=this._fitInfo.margin.bottom=this.verticalOffset,this._fitInfo. inlineStyle.marginTop=this.style.marginTop||"",this._fitInfo.inlineStyle.marginB ottom=this.style.marginBottom||"",this.style.marginTop=this.style.marginBottom=t his.verticalOffset+"px"),this.horizontalOffset&&(this._fitInfo.margin.left=this. _fitInfo.margin.right=this.horizontalOffset,this._fitInfo.inlineStyle.marginLeft =this.style.marginLeft||"",this._fitInfo.inlineStyle.marginRight=this.style.marg inRight||"",this.style.marginLeft=this.style.marginRight=this.horizontalOffset+" px")}},resetFit:function(){var t=this._fitInfo||{};for(var i in t.sizerInlineSty le)this.sizingTarget.style[i]=t.sizerInlineStyle[i];for(var i in t.inlineStyle)t his.style[i]=t.inlineStyle[i];this._fitInfo=null},refit:function(){var t=this.si zingTarget.scrollLeft,i=this.sizingTarget.scrollTop;this.resetFit(),this.fit(),t his.sizingTarget.scrollLeft=t,this.sizingTarget.scrollTop=i},position:function() {if(this.horizontalAlign||this.verticalAlign){this._discoverInfo(),this.style.po sition="fixed",this.sizingTarget.style.boxSizing="border-box",this.style.left="0 px",this.style.top="0px";var t=this.getBoundingClientRect(),i=this.__getNormaliz edRect(this.positionTarget),e=this.__getNormalizedRect(this.fitInto),n=this._fit Info.margin,o={width:t.width+n.left+n.right,height:t.height+n.top+n.bottom},h=th is.__getPosition(this._localeHorizontalAlign,this.verticalAlign,o,i,e),s=h.left+ n.left,l=h.top+n.top,r=Math.min(e.right-n.right,s+t.width),a=Math.min(e.bottom-n .bottom,l+t.height),g=this._fitInfo.sizedBy.minWidth,f=this._fitInfo.sizedBy.min Height;s<n.left&&(s=n.left,r-s<g&&(s=r-g)),l<n.top&&(l=n.top,a-l<f&&(l=a-f)),thi s.sizingTarget.style.maxWidth=r-s+"px",this.sizingTarget.style.maxHeight=a-l+"px ",this.style.left=s-t.left+"px",this.style.top=l-t.top+"px"}},constrain:function (){if(!this.horizontalAlign&&!this.verticalAlign){this._discoverInfo();var t=thi s._fitInfo;t.positionedBy.vertically||(this.style.position="fixed",this.style.to p="0px"),t.positionedBy.horizontally||(this.style.position="fixed",this.style.le ft="0px"),this.sizingTarget.style.boxSizing="border-box";var i=this.getBoundingC lientRect();t.sizedBy.height||this.__sizeDimension(i,t.positionedBy.vertically," top","bottom","Height"),t.sizedBy.width||this.__sizeDimension(i,t.positionedBy.h orizontally,"left","right","Width")}},_sizeDimension:function(t,i,e,n,o){this.__ sizeDimension(t,i,e,n,o)},__sizeDimension:function(t,i,e,n,o){var h=this._fitInf o,s=this.__getNormalizedRect(this.fitInto),l="Width"===o?s.width:s.height,r=i=== n,a=r?l-t[n]:t[e],g=h.margin[r?e:n],f="offset"+o,p=this[f]-this.sizingTarget[f]; this.sizingTarget.style["max"+o]=l-g-a-p+"px"},center:function(){if(!this.horizo ntalAlign&&!this.verticalAlign){this._discoverInfo();var t=this._fitInfo.positio nedBy;if(!t.vertically||!t.horizontally){this.style.position="fixed",t.verticall y||(this.style.top="0px"),t.horizontally||(this.style.left="0px");var i=this.get BoundingClientRect(),e=this.__getNormalizedRect(this.fitInto);if(!t.vertically){ var n=e.top-i.top+(e.height-i.height)/2;this.style.top=n+"px"}if(!t.horizontally ){var o=e.left-i.left+(e.width-i.width)/2;this.style.left=o+"px"}}}},__getNormal izedRect:function(t){return t===document.documentElement||t===window?{top:0,left :0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bot tom:window.innerHeight}:t.getBoundingClientRect()},__getCroppedArea:function(t,i ,e){var n=Math.min(0,t.top)+Math.min(0,e.bottom-(t.top+i.height)),o=Math.min(0,t .left)+Math.min(0,e.right-(t.left+i.width));return Math.abs(n)*i.width+Math.abs( o)*i.height},__getPosition:function(t,i,e,n,o){var h=[{verticalAlign:"top",horiz ontalAlign:"left",top:n.top,left:n.left},{verticalAlign:"top",horizontalAlign:"r ight",top:n.top,left:n.right-e.width},{verticalAlign:"bottom",horizontalAlign:"l eft",top:n.bottom-e.height,left:n.left},{verticalAlign:"bottom",horizontalAlign: "right",top:n.bottom-e.height,left:n.right-e.width}];if(this.noOverlap){for(var s=0,l=h.length;s<l;s++){var r={};for(var a in h[s])r[a]=h[s][a];h.push(r)}h[0].t op=h[1].top+=n.height,h[2].top=h[3].top-=n.height,h[4].left=h[6].left+=n.width,h [5].left=h[7].left-=n.width}i="auto"===i?null:i,t="auto"===t?null:t;for(var g,s= 0;s<h.length;s++){var f=h[s];if(!this.dynamicAlign&&!this.noOverlap&&f.verticalA lign===i&&f.horizontalAlign===t){g=f;break}var p=!(i&&f.verticalAlign!==i||t&&f. horizontalAlign!==t);if(this.dynamicAlign||p){g=g||f,f.croppedArea=this.__getCro ppedArea(f,e,o);var d=f.croppedArea-g.croppedArea;if((d<0||0===d&&p)&&(g=f),0=== g.croppedArea&&p)break}}return g}}</script> <dom-module id="iron-overlay-backdro p" assetpath="/res/imp/bower_components/iron-overlay-behavior/"> <template> <sty le>:host{position:fixed;top:0;left:0;width:100%;height:100%;background-color:var (--iron-overlay-backdrop-background-color,#000);opacity:0;transition:opacity .2s ;pointer-events:none;@apply(--iron-overlay-backdrop)}:host(.opened){opacity:var( --iron-overlay-backdrop-opacity,.6);pointer-events:auto;@apply(--iron-overlay-ba ckdrop-opened)}</style> <content></content> </template> </dom-module> <script>!f unction(){"use strict";Polymer({is:"iron-overlay-backdrop",properties:{opened:{r eflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners :{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},at tached:function(){this.opened&&this._openedChanged(this.opened)},prepare:functio n(){this.opened&&!this.parentNode&&Polymer.dom(document.body).appendChild(this)} ,open:function(){this.opened=!0},close:function(){this.opened=!1},complete:funct ion(){this.opened||this.parentNode!==document.body||Polymer.dom(this.parentNode) .removeChild(this)},_onTransitionend:function(e){e&&e.target===this&&this.comple te()},_openedChanged:function(e){if(e)this.prepare();else{var t=window.getComput edStyle(this);"0s"!==t.transitionDuration&&0!=t.opacity||this.complete()}this.is Attached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this .__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.request AnimationFrame(function(){this.__openedRaf=null,this.toggleClass("opened",this.o pened)}.bind(this)))}})}()</script> <script>Polymer.IronOverlayManagerClass=func tion(){this._overlays=[],this._minimumZ=101,this._backdropElement=null,Polymer.G estures.add(document,"tap",this._onCaptureClick.bind(this)),document.addEventLis tener("focus",this._onCaptureFocus.bind(this),!0),document.addEventListener("key down",this._onCaptureKeyDown.bind(this),!0)},Polymer.IronOverlayManagerClass.pro totype={constructor:Polymer.IronOverlayManagerClass,get backdropElement(){return this._backdropElement||(this._backdropElement=document.createElement("iron-over lay-backdrop")),this._backdropElement},get deepActiveElement(){for(var e=documen t.activeElement||document.body;e.root&&Polymer.dom(e.root).activeElement;)e=Poly mer.dom(e.root).activeElement;return e},_bringOverlayAtIndexToFront:function(e){ var t=this._overlays[e];if(t){var r=this._overlays.length-1,a=this._overlays[r]; if(a&&this._shouldBeBehindOverlay(t,a)&&r--,!(e>=r)){var n=Math.max(this.current OverlayZ(),this._minimumZ);for(this._getZ(t)<=n&&this._applyOverlayZ(t,n);e<r;)t his._overlays[e]=this._overlays[e+1],e++;this._overlays[r]=t}}},addOrRemoveOverl ay:function(e){e.opened?this.addOverlay(e):this.removeOverlay(e)},addOverlay:fun ction(e){var t=this._overlays.indexOf(e);if(t>=0)return this._bringOverlayAtInde xToFront(t),void this.trackBackdrop();var r=this._overlays.length,a=this._overla ys[r-1],n=Math.max(this._getZ(a),this._minimumZ),o=this._getZ(e);if(a&&this._sho uldBeBehindOverlay(e,a)){this._applyOverlayZ(a,n),r--;var i=this._overlays[r-1]; n=Math.max(this._getZ(i),this._minimumZ)}o<=n&&this._applyOverlayZ(e,n),this._ov erlays.splice(r,0,e),this.trackBackdrop()},removeOverlay:function(e){var t=this. _overlays.indexOf(e);t!==-1&&(this._overlays.splice(t,1),this.trackBackdrop())}, currentOverlay:function(){var e=this._overlays.length-1;return this._overlays[e] },currentOverlayZ:function(){return this._getZ(this.currentOverlay())},ensureMin imumZ:function(e){this._minimumZ=Math.max(this._minimumZ,e)},focusOverlay:functi on(){var e=this.currentOverlay();e&&e._applyFocus()},trackBackdrop:function(){va r e=this._overlayWithBackdrop();(e||this._backdropElement)&&(this.backdropElemen t.style.zIndex=this._getZ(e)-1,this.backdropElement.opened=!!e)},getBackdrops:fu nction(){for(var e=[],t=0;t<this._overlays.length;t++)this._overlays[t].withBack drop&&e.push(this._overlays[t]);return e},backdropZ:function(){return this._getZ (this._overlayWithBackdrop())-1},_overlayWithBackdrop:function(){for(var e=0;e<t his._overlays.length;e++)if(this._overlays[e].withBackdrop)return this._overlays [e]},_getZ:function(e){var t=this._minimumZ;if(e){var r=Number(e.style.zIndex||w indow.getComputedStyle(e).zIndex);r===r&&(t=r)}return t},_setZ:function(e,t){e.s tyle.zIndex=t},_applyOverlayZ:function(e,t){this._setZ(e,t+2)},_overlayInPath:fu nction(e){e=e||[];for(var t=0;t<e.length;t++)if(e[t]._manager===this)return e[t] },_onCaptureClick:function(e){var t=this.currentOverlay();t&&this._overlayInPath (Polymer.dom(e).path)!==t&&t._onCaptureClick(e)},_onCaptureFocus:function(e){var t=this.currentOverlay();t&&t._onCaptureFocus(e)},_onCaptureKeyDown:function(e){ var t=this.currentOverlay();t&&(Polymer.IronA11yKeysBehavior.keyboardEventMatche sKeys(e,"esc")?t._onCaptureEsc(e):Polymer.IronA11yKeysBehavior.keyboardEventMatc hesKeys(e,"tab")&&t._onCaptureTab(e))},_shouldBeBehindOverlay:function(e,t){retu rn!e.alwaysOnTop&&t.alwaysOnTop}},Polymer.IronOverlayManager=new Polymer.IronOve rlayManagerClass</script> <script>!function(){"use strict";Polymer.IronOverlayBe haviorImpl={properties:{opened:{observer:"_openedChanged",type:Boolean,value:!1, notify:!0},canceled:{observer:"_canceledChanged",readOnly:!0,type:Boolean,value: !1},withBackdrop:{observer:"_withBackdropChanged",type:Boolean},noAutoFocus:{typ e:Boolean,value:!1},noCancelOnEscKey:{type:Boolean,value:!1},noCancelOnOutsideCl ick:{type:Boolean,value:!1},closingReason:{type:Object},restoreFocusOnClose:{typ e:Boolean,value:!1},alwaysOnTop:{type:Boolean},_manager:{type:Object,value:Polym er.IronOverlayManager},_focusedChild:{type:Object}},listeners:{"iron-resize":"_o nIronResize"},get backdropElement(){return this._manager.backdropElement},get _f ocusNode(){return this._focusedChild||Polymer.dom(this).querySelector("[autofocu s]")||this},get _focusableNodes(){var e=["a[href]","area[href]","iframe","[tabin dex]","[contentEditable=true]"],t=["input","select","textarea","button"],i=e.joi n(':not([tabindex="-1"]),')+':not([tabindex="-1"]),'+t.join(':not([disabled]):no t([tabindex="-1"]),')+':not([disabled]):not([tabindex="-1"])',n=Polymer.dom(this ).querySelectorAll(i);return this.tabIndex>=0&&n.splice(0,0,this),n.sort(functio n(e,t){return e.tabIndex===t.tabIndex?0:0===e.tabIndex||e.tabIndex>t.tabIndex?1: -1})},ready:function(){this.__isAnimating=!1,this.__shouldRemoveTabIndex=!1,this .__firstFocusableNode=this.__lastFocusableNode=null,this.__raf=null,this.__resto reFocusNode=null,this._ensureSetup()},attached:function(){this.opened&&this._ope nedChanged(this.opened),this._observer=Polymer.dom(this).observeNodes(this._onNo desChange)},detached:function(){Polymer.dom(this).unobserveNodes(this._observer) ,this._observer=null,this.__raf&&(window.cancelAnimationFrame(this.__raf),this._ _raf=null),this._manager.removeOverlay(this)},toggle:function(){this._setCancele d(!1),this.opened=!this.opened},open:function(){this._setCanceled(!1),this.opene d=!0},close:function(){this._setCanceled(!1),this.opened=!1},cancel:function(e){ var t=this.fire("iron-overlay-canceled",e,{cancelable:!0});t.defaultPrevented||( this._setCanceled(!0),this.opened=!1)},_ensureSetup:function(){this._overlaySetu p||(this._overlaySetup=!0,this.style.outline="none",this.style.display="none")}, _openedChanged:function(e){e?this.removeAttribute("aria-hidden"):this.setAttribu te("aria-hidden","true"),this.isAttached&&(this.__isAnimating=!0,this.__onNextAn imationFrame(this.__openedChanged))},_canceledChanged:function(){this.closingRea son=this.closingReason||{},this.closingReason.canceled=this.canceled},_withBackd ropChanged:function(){this.withBackdrop&&!this.hasAttribute("tabindex")?(this.se tAttribute("tabindex","-1"),this.__shouldRemoveTabIndex=!0):this.__shouldRemoveT abIndex&&(this.removeAttribute("tabindex"),this.__shouldRemoveTabIndex=!1),this. opened&&this.isAttached&&this._manager.trackBackdrop()},_prepareRenderOpened:fun ction(){this.__restoreFocusNode=this._manager.deepActiveElement,this._preparePos itioning(),this.refit(),this._finishPositioning(),this.noAutoFocus&&document.act iveElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.fo cus())},_renderOpened:function(){this._finishRenderOpened()},_renderClosed:funct ion(){this._finishRenderClosed()},_finishRenderOpened:function(){this.notifyResi ze(),this.__isAnimating=!1;var e=this._focusableNodes;this.__firstFocusableNode= e[0],this.__lastFocusableNode=e[e.length-1],this.fire("iron-overlay-opened")},_f inishRenderClosed:function(){this.style.display="none",this.style.zIndex="",this .notifyResize(),this.__isAnimating=!1,this.fire("iron-overlay-closed",this.closi ngReason)},_preparePositioning:function(){this.style.transition=this.style.webki tTransition="none",this.style.transform=this.style.webkitTransform="none",this.s tyle.display=""},_finishPositioning:function(){this.style.display="none",this.sc rollTop=this.scrollTop,this.style.transition=this.style.webkitTransition="",this .style.transform=this.style.webkitTransform="",this.style.display="",this.scroll Top=this.scrollTop},_applyFocus:function(){if(this.opened)this.noAutoFocus||this ._focusNode.focus();else{this._focusNode.blur(),this._focusedChild=null,this.res toreFocusOnClose&&this.__restoreFocusNode&&this.__restoreFocusNode.focus(),this. __restoreFocusNode=null;var e=this._manager.currentOverlay();e&&this!==e&&e._app lyFocus()}},_onCaptureClick:function(e){this.noCancelOnOutsideClick||this.cancel (e)},_onCaptureFocus:function(e){if(this.withBackdrop){var t=Polymer.dom(e).path ;t.indexOf(this)===-1?(e.stopPropagation(),this._applyFocus()):this._focusedChil d=t[0]}},_onCaptureEsc:function(e){this.noCancelOnEscKey||this.cancel(e)},_onCap tureTab:function(e){if(this.withBackdrop){var t=e.shiftKey,i=t?this.__firstFocus ableNode:this.__lastFocusableNode,n=t?this.__lastFocusableNode:this.__firstFocus ableNode,s=!1;if(i===n)s=!0;else{var o=this._manager.deepActiveElement;s=o===i|| o===this}s&&(e.preventDefault(),this._focusedChild=n,this._applyFocus())}},_onIr onResize:function(){this.opened&&!this.__isAnimating&&this.__onNextAnimationFram e(this.refit)},_onNodesChange:function(){this.opened&&!this.__isAnimating&&this. notifyResize()},__openedChanged:function(){this.opened?(this._prepareRenderOpene d(),this._manager.addOverlay(this),this._applyFocus(),this._renderOpened()):(thi s._manager.removeOverlay(this),this._applyFocus(),this._renderClosed())},__onNex tAnimationFrame:function(e){this.__raf&&window.cancelAnimationFrame(this.__raf); var t=this;this.__raf=window.requestAnimationFrame(function(){t.__raf=null,e.cal l(t)})}},Polymer.IronOverlayBehavior=[Polymer.IronFitBehavior,Polymer.IronResiza bleBehavior,Polymer.IronOverlayBehaviorImpl]}()</script> <dom-module id="paper-t oast" assetpath="/res/imp/bower_components/paper-toast/"> <template> <style>:hos t{display:block;position:fixed;background-color:var(--paper-toast-background-col or,#323232);color:var(--paper-toast-color,#f1f1f1);min-height:48px;min-width:288 px;padding:16px 24px;box-sizing:border-box;box-shadow:0 2px 5px 0 rgba(0,0,0,.26 );border-radius:2px;margin:12px;font-size:14px;cursor:default;-webkit-transition :-webkit-transform .3s,opacity .3s;transition:transform .3s,opacity .3s;opacity: 0;-webkit-transform:translateY(100px);transform:translateY(100px);@apply(--paper -font-common-base)}:host(.capsule){border-radius:24px}:host(.fit-bottom){width:1 00%;min-width:0;border-radius:0;margin:0}:host(.paper-toast-open){opacity:1;-web kit-transform:translateY(0);transform:translateY(0)}</style> <span id="label">{{ text}}</span> <content></content> </template> <script>!function(){var e=null;Pol ymer({is:"paper-toast",behaviors:[Polymer.IronOverlayBehavior],properties:{fitIn to:{type:Object,value:window,observer:"_onFitIntoChanged"},horizontalAlign:{type :String,value:"left"},verticalAlign:{type:String,value:"bottom"},duration:{type: Number,value:3e3},text:{type:String,value:""},noCancelOnOutsideClick:{type:Boole an,value:!0},noAutoFocus:{type:Boolean,value:!0}},listeners:{transitionend:"__on TransitionEnd"},get visible(){return Polymer.Base._warn("`visible` is deprecated , use `opened` instead"),this.opened},get _canAutoClose(){return this.duration>0 &&this.duration!==1/0},created:function(){this._autoClose=null,Polymer.IronA11yA nnouncer.requestAvailability()},show:function(e){"string"==typeof e&&(e={text:e} );for(var t in e)0===t.indexOf("_")?Polymer.Base._warn('The property "'+t+'" is private and was not set.'):t in this?this[t]=e[t]:Polymer.Base._warn('The proper ty "'+t+'" is not valid.');this.open()},hide:function(){this.close()},__onTransi tionEnd:function(e){e&&e.target===this&&"opacity"===e.propertyName&&(this.opened ?this._finishRenderOpened():this._finishRenderClosed())},_openedChanged:function (){null!==this._autoClose&&(this.cancelAsync(this._autoClose),this._autoClose=nu ll),this.opened?(e&&e!==this&&e.close(),e=this,this.fire("iron-announce",{text:t his.text}),this._canAutoClose&&(this._autoClose=this.async(this.close,this.durat ion))):e===this&&(e=null),Polymer.IronOverlayBehaviorImpl._openedChanged.apply(t his,arguments)},_renderOpened:function(){this.classList.add("paper-toast-open")} ,_renderClosed:function(){this.classList.remove("paper-toast-open")},_onFitIntoC hanged:function(e){this.positionTarget=e}})}()</script> </dom-module> <dom-modul e id="url-param" assetpath="/res/imp/common/"> <template> <paper-toast id="toast "></paper-toast> </template> <script>!function(){Polymer({is:"url-param",propert ies:{default_value:{type:String},default_values:{type:Array},multi:{type:Boolean ,value:!1},name:{type:String},valid:{type:Array},value:{type:String,value:"",not ify:!0,observer:"_valueChanged"},_loaded:{type:Boolean,value:!1}},observers:["_v alueChanged(value.splices)"],ready:function(){this._loaded=!0;var t=this._getURL ();t&&this._isValid(t)?this.set("value",t):this.default_value&&this._isValid(thi s.default_value)?this.set("value",this.default_value):this.multi&&this.default_v alues&&this._isValid(this.default_values)?this.set("value",this.default_values): this._putURL()},_getURL:function(){var t=sk.query.toParamSet(window.location.sea rch.substring(1))[this.name];return t?this.multi?t:t.length>1?(this._error("Mult iple values provided for "+this.name+" but only one accepted: "+t),null):t[0]:nu ll},_putURL:function(){var t=sk.query.toParamSet(window.location.search.substrin g(1));delete t[this.name],!this.value||Array.isArray(this.value)&&0==this.value. length||(this.multi?t[this.name]=this.value:t[this.name]=[this.value]);var e=win dow.location.href.split("?")[0]+"?"+sk.query.fromParamSet(t);window.history.repl aceState("","",e)},_isValid:function(t){var e=function(t){if(this.valid){for(var e=0;e<this.valid.length;e++)if(t==this.valid[e])return!0;return this._error("In valid value for "+this.name+': "'+t+'". Must be one of: '+this.valid),!1}return! 0}.bind(this);if(!this.multi)return Array.isArray(t)&&this._error("Multiple valu es provided for "+this.name+" but only one accepted: "+t),e(t);if(!Array.isArray (t))return this._error("url-param-sk: Value is not an array: "+t),!1;for(var i=0 ;i<t.length;i++)if(!e(t[i]))return!1;return!0},_valueChanged:function(){this._lo aded&&this._putURL()},_error:function(t){console.log("[ERROR] "+t),this.set("$.t oast.text",t),this.$.toast.show()}})}()</script> </dom-module> <script>Polymer.I ronSelection=function(e){this.selection=[],this.selectCallback=e},Polymer.IronSe lection.prototype={get:function(){return this.multi?this.selection.slice():this. selection[0]},clear:function(e){this.selection.slice().forEach(function(t){(!e|| e.indexOf(t)<0)&&this.setItemSelected(t,!1)},this)},isSelected:function(e){retur n this.selection.indexOf(e)>=0},setItemSelected:function(e,t){if(null!=e&&t!==th is.isSelected(e)){if(t)this.selection.push(e);else{var i=this.selection.indexOf( e);i>=0&&this.selection.splice(i,1)}this.selectCallback&&this.selectCallback(e,t )}},select:function(e){this.multi?this.toggle(e):this.get()!==e&&(this.setItemSe lected(this.get(),!1),this.setItemSelected(e,!0))},toggle:function(e){this.setIt emSelected(e,!this.isSelected(e))}}</script> <script>Polymer.IronSelectableBehav ior={properties:{attrForSelected:{type:String,value:null},selected:{type:String, notify:!0},selectedItem:{type:Object,readOnly:!0,notify:!0},activateEvent:{type: String,value:"tap",observer:"_activateEventChanged"},selectable:String,selectedC lass:{type:String,value:"iron-selected"},selectedAttribute:{type:String,value:nu ll},fallbackSelection:{type:String,value:null},items:{type:Array,readOnly:!0,not ify:!0,value:function(){return[]}},_excludedLocalNames:{type:Object,value:functi on(){return{template:1}}}},observers:["_updateAttrForSelected(attrForSelected)", "_updateSelected(selected)","_checkFallback(fallbackSelection)"],created:functio n(){this._bindFilterItem=this._filterItem.bind(this),this._selection=new Polymer .IronSelection(this._applySelection.bind(this))},attached:function(){this._obser ver=this._observeItems(this),this._updateItems(),this._shouldUpdateSelection||th is._updateSelected(),this._addListener(this.activateEvent)},detached:function(){ this._observer&&Polymer.dom(this).unobserveNodes(this._observer),this._removeLis tener(this.activateEvent)},indexOf:function(e){return this.items.indexOf(e)},sel ect:function(e){this.selected=e},selectPrevious:function(){var e=this.items.leng th,t=(Number(this._valueToIndex(this.selected))-1+e)%e;this.selected=this._index ToValue(t)},selectNext:function(){var e=(Number(this._valueToIndex(this.selected ))+1)%this.items.length;this.selected=this._indexToValue(e)},selectIndex:functio n(e){this.select(this._indexToValue(e))},forceSynchronousItemUpdate:function(){t his._updateItems()},get _shouldUpdateSelection(){return null!=this.selected},_ch eckFallback:function(){this._shouldUpdateSelection&&this._updateSelected()},_add Listener:function(e){this.listen(this,e,"_activateHandler")},_removeListener:fun ction(e){this.unlisten(this,e,"_activateHandler")},_activateEventChanged:functio n(e,t){this._removeListener(t),this._addListener(e)},_updateItems:function(){var e=Polymer.dom(this).queryDistributedElements(this.selectable||"*");e=Array.prot otype.filter.call(e,this._bindFilterItem),this._setItems(e)},_updateAttrForSelec ted:function(){this._shouldUpdateSelection&&(this.selected=this._indexToValue(th is.indexOf(this.selectedItem)))},_updateSelected:function(){this._selectSelected (this.selected)},_selectSelected:function(e){this._selection.select(this._valueT oItem(this.selected)),this.fallbackSelection&&this.items.length&&void 0===this._ selection.get()&&(this.selected=this.fallbackSelection)},_filterItem:function(e) {return!this._excludedLocalNames[e.localName]},_valueToItem:function(e){return n ull==e?null:this.items[this._valueToIndex(e)]},_valueToIndex:function(e){if(!thi s.attrForSelected)return Number(e);for(var t,i=0;t=this.items[i];i++)if(this._va lueForItem(t)==e)return i},_indexToValue:function(e){if(!this.attrForSelected)re turn e;var t=this.items[e];return t?this._valueForItem(t):void 0},_valueForItem: function(e){var t=e[Polymer.CaseMap.dashToCamelCase(this.attrForSelected)];retur n void 0!=t?t:e.getAttribute(this.attrForSelected)},_applySelection:function(e,t ){this.selectedClass&&this.toggleClass(this.selectedClass,t,e),this.selectedAttr ibute&&this.toggleAttribute(this.selectedAttribute,t,e),this._selectionChange(), this.fire("iron-"+(t?"select":"deselect"),{item:e})},_selectionChange:function() {this._setSelectedItem(this._selection.get())},_observeItems:function(e){return Polymer.dom(e).observeNodes(function(e){this._updateItems(),this._shouldUpdateSe lection&&this._updateSelected(),this.fire("iron-items-changed",e,{bubbles:!1,can celable:!1})})},_activateHandler:function(e){for(var t=e.target,i=this.items;t&& t!=this;){var s=i.indexOf(t);if(s>=0){var n=this._indexToValue(s);return void th is._itemActivate(n,t)}t=t.parentNode}},_itemActivate:function(e,t){this.fire("ir on-activate",{selected:e,item:t},{cancelable:!0}).defaultPrevented||this.select( e)}}</script> <script>Polymer.IronMultiSelectableBehaviorImpl={properties:{multi :{type:Boolean,value:!1,observer:"multiChanged"},selectedValues:{type:Array,noti fy:!0},selectedItems:{type:Array,readOnly:!0,notify:!0}},observers:["_updateSele cted(selectedValues.splices)"],select:function(e){this.multi?this.selectedValues ?this._toggleSelected(e):this.selectedValues=[e]:this.selected=e},multiChanged:f unction(e){this._selection.multi=e},get _shouldUpdateSelection(){return null!=th is.selected||null!=this.selectedValues&&this.selectedValues.length},_updateAttrF orSelected:function(){this.multi?this._shouldUpdateSelection&&(this.selectedValu es=this.selectedItems.map(function(e){return this._indexToValue(this.indexOf(e)) },this).filter(function(e){return null!=e},this)):Polymer.IronSelectableBehavior ._updateAttrForSelected.apply(this)},_updateSelected:function(){this.multi?this. _selectMulti(this.selectedValues):this._selectSelected(this.selected)},_selectMu lti:function(e){if(e){var t=this._valuesToItems(e);this._selection.clear(t);for( var l=0;l<t.length;l++)this._selection.setItemSelected(t[l],!0);if(this.fallback Selection&&this.items.length&&!this._selection.get().length){var s=this._valueTo Item(this.fallbackSelection);s&&(this.selectedValues=[this.fallbackSelection])}} else this._selection.clear()},_selectionChange:function(){var e=this._selection. get();this.multi?this._setSelectedItems(e):(this._setSelectedItems([e]),this._se tSelectedItem(e))},_toggleSelected:function(e){var t=this.selectedValues.indexOf (e),l=t<0;l?this.push("selectedValues",e):this.splice("selectedValues",t,1)},_va luesToItems:function(e){return null==e?null:e.map(function(e){return this._value ToItem(e)},this)}},Polymer.IronMultiSelectableBehavior=[Polymer.IronSelectableBe havior,Polymer.IronMultiSelectableBehaviorImpl]</script> <script>Polymer({is:"ir on-selector",behaviors:[Polymer.IronMultiSelectableBehavior]})</script> <script> Polymer.IronValidatableBehaviorMeta=null,Polymer.IronValidatableBehavior={proper ties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Bool ean,value:!1},_validatorMeta:{type:Object},validatorType:{type:String,value:"val idator"},_validator:{type:Object,computed:"__computeValidator(validator)"}},obse rvers:["_invalidChanged(invalid)"],registered:function(){Polymer.IronValidatable BehaviorMeta=new Polymer.IronMeta({type:"validator"})},_invalidChanged:function( ){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("ar ia-invalid")},hasValidator:function(){return null!=this._validator},validate:fun ction(a){return this.invalid=!this._getValidity(a),!this.invalid},_getValidity:f unction(a){return!this.hasValidator()||this._validator.validate(a)},__computeVal idator:function(){return Polymer.IronValidatableBehaviorMeta&&Polymer.IronValida tableBehaviorMeta.byKey(this.validator)}}</script> <script>Polymer.IronFormEleme ntBehavior={properties:{name:{type:String},value:{notify:!0,type:String},require d:{type:Boolean,value:!1},_parentForm:{type:Object}},attached:function(){this.fi re("iron-form-element-register")},detached:function(){this._parentForm&&this._pa rentForm.fire("iron-form-element-unregister",{target:this})}}</script> <script>P olymer.IronCheckedElementBehaviorImpl={properties:{checked:{type:Boolean,value:! 1,reflectToAttribute:!0,notify:!0,observer:"_checkedChanged"},toggles:{type:Bool ean,value:!0,reflectToAttribute:!0},value:{type:String,value:"on",observer:"_val ueChanged"}},observers:["_requiredChanged(required)"],created:function(){this._h asIronCheckedElementBehavior=!0},_getValidity:function(e){return this.disabled|| !this.required||this.checked},_requiredChanged:function(){this.required?this.set Attribute("aria-required","true"):this.removeAttribute("aria-required")},_checke dChanged:function(){this.active=this.checked,this.fire("iron-change")},_valueCha nged:function(){void 0!==this.value&&null!==this.value||(this.value="on")}},Poly mer.IronCheckedElementBehavior=[Polymer.IronFormElementBehavior,Polymer.IronVali datableBehavior,Polymer.IronCheckedElementBehaviorImpl]</script> <script>Polymer .PaperInkyFocusBehaviorImpl={observers:["_focusedChanged(receivedFocusFromKeyboa rd)"],_focusedChanged:function(e){e&&this.ensureRipple(),this.hasRipple()&&(this ._ripple.holdDown=e)},_createRipple:function(){var e=Polymer.PaperRippleBehavior ._createRipple();return e.id="ink",e.setAttribute("center",""),e.classList.add(" circle"),e}},Polymer.PaperInkyFocusBehavior=[Polymer.IronButtonState,Polymer.Iro nControlState,Polymer.PaperRippleBehavior,Polymer.PaperInkyFocusBehaviorImpl]</s cript> <script>Polymer.PaperCheckedElementBehaviorImpl={_checkedChanged:function (){Polymer.IronCheckedElementBehaviorImpl._checkedChanged.call(this),this.hasRip ple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.remove Attribute("checked"))},_buttonStateChanged:function(){Polymer.PaperRippleBehavio r._buttonStateChanged.call(this),this.disabled||this.isAttached&&(this.checked=t his.active)}},Polymer.PaperCheckedElementBehavior=[Polymer.PaperInkyFocusBehavio r,Polymer.IronCheckedElementBehavior,Polymer.PaperCheckedElementBehaviorImpl]</s cript> <dom-module id="paper-checkbox" assetpath="/res/imp/bower_components/pape r-checkbox/"> <template strip-whitespace=""> <style>:host{display:inline-block;w hite-space:nowrap;cursor:pointer;--calculated-paper-checkbox-size:var(--paper-ch eckbox-size, 18px);--calculated-paper-checkbox-ink-size:var(--paper-checkbox-ink -size, -1px);@apply(--paper-font-common-base);line-height:0;-webkit-tap-highligh t-color:transparent}:host([hidden]){display:none!important}:host(:focus){outline :0}.hidden{display:none}#checkboxContainer{display:inline-block;position:relativ e;width:var(--calculated-paper-checkbox-size);height:var(--calculated-paper-chec kbox-size);min-width:var(--calculated-paper-checkbox-size);margin:var(--paper-ch eckbox-margin,initial);vertical-align:var(--paper-checkbox-vertical-align,middle );background-color:var(--paper-checkbox-unchecked-background-color,transparent)} #ink{position:absolute;top:calc(0px - (var(--calculated-paper-checkbox-ink-size) - var(--calculated-paper-checkbox-size))/ 2);left:calc(0px - (var(--calculated- paper-checkbox-ink-size) - var(--calculated-paper-checkbox-size))/ 2);width:var( --calculated-paper-checkbox-ink-size);height:var(--calculated-paper-checkbox-ink -size);color:var(--paper-checkbox-unchecked-ink-color,var(--primary-text-color)) ;opacity:.6;pointer-events:none}:host-context([dir=rtl]) #ink{right:calc(0px - ( var(--calculated-paper-checkbox-ink-size) - var(--calculated-paper-checkbox-size ))/ 2);left:auto}#ink[checked]{color:var(--paper-checkbox-checked-ink-color,var( --primary-color))}#checkbox{position:relative;box-sizing:border-box;height:100%; border:solid 2px;border-color:var(--paper-checkbox-unchecked-color,var(--primary -text-color));border-radius:2px;pointer-events:none;-webkit-transition:backgroun d-color 140ms,border-color 140ms;transition:background-color 140ms,border-color 140ms}#checkbox.checked #checkmark{-webkit-animation:checkmark-expand 140ms ease -out forwards;animation:checkmark-expand 140ms ease-out forwards}@-webkit-keyfra mes checkmark-expand{0%{-webkit-transform:scale(0,0) rotate(45deg)}100%{-webkit- transform:scale(1,1) rotate(45deg)}}@keyframes checkmark-expand{0%{transform:sca le(0,0) rotate(45deg)}100%{transform:scale(1,1) rotate(45deg)}}#checkbox.checked {background-color:var(--paper-checkbox-checked-color,var(--primary-color));borde r-color:var(--paper-checkbox-checked-color,var(--primary-color))}#checkmark{posi tion:absolute;width:36%;height:70%;border-style:solid;border-top:none;border-lef t:none;border-right-width:calc(2/15 * var(--calculated-paper-checkbox-size));bor der-bottom-width:calc(2/15 * var(--calculated-paper-checkbox-size));border-color :var(--paper-checkbox-checkmark-color,#fff);-webkit-transform-origin:97% 86%;tra nsform-origin:97% 86%;box-sizing:content-box}:host-context([dir=rtl]) #checkmark {-webkit-transform-origin:50% 14%;transform-origin:50% 14%}#checkboxLabel{positi on:relative;display:inline-block;vertical-align:middle;padding-left:var(--paper- checkbox-label-spacing,8px);white-space:normal;line-height:normal;color:var(--pa per-checkbox-label-color,var(--primary-text-color));@apply(--paper-checkbox-labe l)}:host([checked]) #checkboxLabel{color:var(--paper-checkbox-label-checked-colo r,var(--paper-checkbox-label-color,var(--primary-text-color)));@apply(--paper-ch eckbox-label-checked)}:host-context([dir=rtl]) #checkboxLabel{padding-right:var( --paper-checkbox-label-spacing,8px);padding-left:0}#checkboxLabel[hidden]{displa y:none}:host([disabled]) #checkbox{opacity:.5;border-color:var(--paper-checkbox- unchecked-color,var(--primary-text-color))}:host([disabled][checked]) #checkbox{ background-color:var(--paper-checkbox-unchecked-color,var(--primary-text-color)) ;opacity:.5}:host([disabled]) #checkboxLabel{opacity:.65}#checkbox.invalid:not(. checked){border-color:var(--paper-checkbox-error-color,var(--error-color))}</sty le> <div id="checkboxContainer"> <div id="checkbox" class$="[[_computeCheckboxCl ass(checked, invalid)]]"> <div id="checkmark" class$="[[_computeCheckmarkClass(c hecked)]]"></div> </div> </div> <div id="checkboxLabel"><content></content></div > </template> <script>Polymer({is:"paper-checkbox",behaviors:[Polymer.PaperCheck edElementBehavior],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0} ,properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:fu nction(){var e=this.getComputedStyleValue("--calculated-paper-checkbox-ink-size" );if("-1px"===e){var t=parseFloat(this.getComputedStyleValue("--calculated-paper -checkbox-size")),a=Math.floor(8/3*t);a%2!==t%2&&a++,this.customStyle["--paper-c heckbox-ink-size"]=a+"px",this.updateStyles()}},_computeCheckboxClass:function(e ,t){var a="";return e&&(a+="checked "),t&&(a+="invalid"),a},_computeCheckmarkCla ss:function(e){return e?"":"hidden"},_createRipple:function(){return this._rippl eContainer=this.$.checkboxContainer,Polymer.PaperInkyFocusBehaviorImpl._createRi pple.call(this)}})</script> </dom-module> <dom-module id="paper-icon-button" ass etpath="/res/imp/bower_components/paper-icon-button/"> <template strip-whitespac e=""> <style>:host{display:inline-block;position:relative;padding:8px;outline:0; -webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select: none;cursor:pointer;z-index:0;line-height:1;width:40px;height:40px;-webkit-tap-h ighlight-color:transparent;-webkit-tap-highlight-color:transparent;box-sizing:bo rder-box!important;@apply(--paper-icon-button)}:host #ink{color:var(--paper-icon -button-ink-color,--primary-text-color);opacity:.6}:host([disabled]){color:var(- -paper-icon-button-disabled-text,--disabled-text-color);pointer-events:none;curs or:auto;@apply(--paper-icon-button-disabled)}:host(:hover){@apply(--paper-icon-b utton-hover)}iron-icon{--iron-icon-width:100%;--iron-icon-height:100%}</style> < iron-icon id="icon" src="[[src]]" icon="[[icon]]" alt$="[[alt]]"></iron-icon> </ template> <script>Polymer({is:"paper-icon-button",hostAttributes:{role:"button", tabindex:"0"},behaviors:[Polymer.PaperInkyFocusBehavior],properties:{src:{type:S tring},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged: function(t,e){var r=this.getAttribute("aria-label");r&&e!=r||this.setAttribute(" aria-label",t)}})</script> </dom-module> <script>Polymer({is:"iron-input",extend s:"input",behaviors:[Polymer.IronValidatableBehavior],properties:{bindValue:{obs erver:"_bindValueChanged",type:String},preventInvalidInput:{type:Boolean},allowe dPattern:{type:String,observer:"_allowedPatternChanged"},_previousValidInput:{ty pe:String,value:""},_patternAlreadyChecked:{type:Boolean,value:!1}},listeners:{i nput:"_onInput",keypress:"_onKeypress"},registered:function(){this._canDispatchE ventOnDisabled()||(this._origDispatchEvent=this.dispatchEvent,this.dispatchEvent =this._dispatchEventFirefoxIE)},created:function(){Polymer.IronA11yAnnouncer.req uestAvailability()},_canDispatchEventOnDisabled:function(){var e=document.create Element("input"),t=!1;e.disabled=!0,e.addEventListener("feature-check-dispatch-e vent",function(){t=!0});try{e.dispatchEvent(new Event("feature-check-dispatch-ev ent"))}catch(e){}return t},_dispatchEventFirefoxIE:function(){var e=this.disable d;this.disabled=!1,this._origDispatchEvent.apply(this,arguments),this.disabled=e },get _patternRegExp(){var e;if(this.allowedPattern)e=new RegExp(this.allowedPat tern);else switch(this.type){case"number":e=/[0-9.,e-]/}return e},ready:function (){this.bindValue=this.value},_bindValueChanged:function(){this.value!==this.bin dValue&&(this.value=this.bindValue||0===this.bindValue||this.bindValue===!1?this .bindValue:""),this.fire("bind-value-changed",{value:this.bindValue})},_allowedP atternChanged:function(){this.preventInvalidInput=!!this.allowedPattern},_onInpu t:function(){if(this.preventInvalidInput&&!this._patternAlreadyChecked){var e=th is._checkPatternValidity();e||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.value=this._previousValidInput)}this.bindValue=t his.value,this._previousValidInput=this.value,this._patternAlreadyChecked=!1},_i sPrintable:function(e){var t=8==e.keyCode||9==e.keyCode||13==e.keyCode||27==e.ke yCode,i=19==e.keyCode||20==e.keyCode||45==e.keyCode||46==e.keyCode||144==e.keyCo de||145==e.keyCode||e.keyCode>32&&e.keyCode<41||e.keyCode>111&&e.keyCode<124;ret urn!(t||0==e.charCode&&i)},_onKeypress:function(e){if(this.preventInvalidInput|| "number"===this.type){var t=this._patternRegExp;if(t&&!(e.metaKey||e.ctrlKey||e. altKey)){this._patternAlreadyChecked=!0;var i=String.fromCharCode(e.charCode);th is._isPrintable(e)&&!t.test(i)&&(e.preventDefault(),this._announceInvalidCharact er("Invalid character "+i+" not entered."))}}},_checkPatternValidity:function(){ var e=this._patternRegExp;if(!e)return!0;for(var t=0;t<this.value.length;t++)if( !e.test(this.value[t]))return!1;return!0},validate:function(){var e=this.checkVa lidity();return e&&(this.required&&""===this.value?e=!1:this.hasValidator()&&(e= Polymer.IronValidatableBehavior.validate.call(this,this.value))),this.invalid=!e ,this.fire("iron-input-validate"),e},_announceInvalidCharacter:function(e){this. fire("iron-announce",{text:e})}})</script> <script>Polymer.PaperInputHelper={},P olymer.PaperInputHelper.NextLabelID=1,Polymer.PaperInputHelper.NextAddonID=1,Pol ymer.PaperInputBehaviorImpl={properties:{label:{type:String},value:{notify:!0,ty pe:String},disabled:{type:Boolean,value:!1},invalid:{type:Boolean,value:!1,notif y:!0},preventInvalidInput:{type:Boolean},allowedPattern:{type:String},type:{type :String},list:{type:String},pattern:{type:String},required:{type:Boolean,value:! 1},errorMessage:{type:String},charCounter:{type:Boolean,value:!1},noLabelFloat:{ type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},autoValidate:{ty pe:Boolean,value:!1},validator:{type:String},autocomplete:{type:String,value:"of f"},autofocus:{type:Boolean,observer:"_autofocusChanged"},inputmode:{type:String },minlength:{type:Number},maxlength:{type:Number},min:{type:String},max:{type:St ring},step:{type:String},name:{type:String},placeholder:{type:String,value:""},r eadonly:{type:Boolean,value:!1},size:{type:Number},autocapitalize:{type:String,v alue:"none"},autocorrect:{type:String,value:"off"},autosave:{type:String},result s:{type:Number},accept:{type:String},multiple:{type:Boolean},_ariaDescribedBy:{t ype:String,value:""},_ariaLabelledBy:{type:String,value:""}},listeners:{"addon-a ttached":"_onAddonAttached"},keyBindings:{"shift+tab:keydown":"_onShiftTabDown"} ,hostAttributes:{tabindex:0},get inputElement(){return this.$.input},get _focusa bleElement(){return this.inputElement},registered:function(){this._typesThatHave Text=["date","datetime","datetime-local","month","time","week","file"]},attached :function(){this._updateAriaLabelledBy(),this.inputElement&&this._typesThatHaveT ext.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},_appendStr ingWithSpace:function(e,t){return e=e?e+" "+t:t},_onAddonAttached:function(e){va r t=e.path?e.path[0]:e.target;if(t.id)this._ariaDescribedBy=this._appendStringWi thSpace(this._ariaDescribedBy,t.id);else{var a="paper-input-add-on-"+Polymer.Pap erInputHelper.NextAddonID++;t.id=a,this._ariaDescribedBy=this._appendStringWithS pace(this._ariaDescribedBy,a)}},validate:function(){return this.inputElement.val idate()},_focusBlurHandler:function(e){Polymer.IronControlState._focusBlurHandle r.call(this,e),this.focused&&!this._shiftTabPressed&&this._focusableElement.focu s()},_onShiftTabDown:function(e){var t=this.getAttribute("tabindex");this._shift TabPressed=!0,this.setAttribute("tabindex","-1"),this.async(function(){this.setA ttribute("tabindex",t),this._shiftTabPressed=!1},1)},_handleAutoValidate:functio n(){this.autoValidate&&this.validate()},updateValueAndPreserveCaret:function(e){ try{var t=this.inputElement.selectionStart;this.value=e,this.inputElement.select ionStart=t,this.inputElement.selectionEnd=t}catch(t){this.value=e}},_computeAlwa ysFloatLabel:function(e,t){return t||e},_updateAriaLabelledBy:function(){var e=P olymer.dom(this.root).querySelector("label");if(!e)return void(this._ariaLabelle dBy="");var t;e.id?t=e.id:(t="paper-input-label-"+Polymer.PaperInputHelper.NextL abelID++,e.id=t),this._ariaLabelledBy=t},_onChange:function(e){this.shadowRoot&& this.fire(e.type,{sourceEvent:e},{node:this,bubbles:e.bubbles,cancelable:e.cance lable})},_autofocusChanged:function(){if(this.autofocus&&this._focusableElement) {var e=document.activeElement,t=e instanceof HTMLElement,a=t&&e!==document.body& &e!==document.documentElement;a||this._focusableElement.focus()}}},Polymer.Paper InputBehavior=[Polymer.IronControlState,Polymer.IronA11yKeysBehavior,Polymer.Pap erInputBehaviorImpl]</script> <link rel="stylesheet" href="https://fonts.googlea pis.com/css?family=Roboto:400,300,300italic,400italic,500,500italic,700,700itali c"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+ Mono:400,700"> <style is="custom-style">:root{--paper-font-common-base:{font-fam ily:Roboto,Noto,sans-serif;-webkit-font-smoothing:antialiased};--paper-font-comm on-code:{font-family:'Roboto Mono',Consolas,Menlo,monospace;-webkit-font-smoothi ng:antialiased};--paper-font-common-expensive-kerning:{text-rendering:optimizeLe gibility};--paper-font-common-nowrap:{white-space:nowrap;overflow:hidden;text-ov erflow:ellipsis};--paper-font-display4:{@apply(--paper-font-common-base);@apply( --paper-font-common-nowrap);font-size:112px;font-weight:300;letter-spacing:-.044 em;line-height:120px};--paper-font-display3:{@apply(--paper-font-common-base);@a pply(--paper-font-common-nowrap);font-size:56px;font-weight:400;letter-spacing:- .026em;line-height:60px};--paper-font-display2:{@apply(--paper-font-common-base) ;font-size:45px;font-weight:400;letter-spacing:-.018em;line-height:48px};--paper -font-display1:{@apply(--paper-font-common-base);font-size:34px;font-weight:400; letter-spacing:-.01em;line-height:40px};--paper-font-headline:{@apply(--paper-fo nt-common-base);font-size:24px;font-weight:400;letter-spacing:-.012em;line-heigh t:32px};--paper-font-title:{@apply(--paper-font-common-base);@apply(--paper-font -common-nowrap);font-size:20px;font-weight:500;line-height:28px};--paper-font-su bhead:{@apply(--paper-font-common-base);font-size:16px;font-weight:400;line-heig ht:24px};--paper-font-body2:{@apply(--paper-font-common-base);font-size:14px;fon t-weight:500;line-height:24px};--paper-font-body1:{@apply(--paper-font-common-ba se);font-size:14px;font-weight:400;line-height:20px};--paper-font-caption:{@appl y(--paper-font-common-base);@apply(--paper-font-common-nowrap);font-size:12px;fo nt-weight:400;letter-spacing:0.011em;line-height:20px};--paper-font-menu:{@apply (--paper-font-common-base);@apply(--paper-font-common-nowrap);font-size:13px;fon t-weight:500;line-height:24px};--paper-font-button:{@apply(--paper-font-common-b ase);@apply(--paper-font-common-nowrap);font-size:14px;font-weight:500;letter-sp acing:0.018em;line-height:24px;text-transform:uppercase};--paper-font-code2:{@ap ply(--paper-font-common-code);font-size:14px;font-weight:700;line-height:20px};- -paper-font-code1:{@apply(--paper-font-common-code);font-size:14px;font-weight:5 00;line-height:20px};}</style> <script>Polymer.PaperInputAddonBehavior={hostAttr ibutes:{"add-on":""},attached:function(){this.fire("addon-attached")},update:fun ction(t){}}</script> <dom-module id="paper-input-char-counter" assetpath="/res/i mp/bower_components/paper-input/"> <template> <style>:host{display:inline-block; float:right;@apply(--paper-font-caption);@apply(--paper-input-char-counter)}:hos t([hidden]){display:none!important}:host-context([dir=rtl]){float:left}</style> <span>[[_charCounterStr]]</span> </template> </dom-module> <script>Polymer({is:" paper-input-char-counter",behaviors:[Polymer.PaperInputAddonBehavior],properties :{_charCounterStr:{type:String,value:"0"}},update:function(t){if(t.inputElement) {t.value=t.value||"";var e=t.value.toString().length.toString();t.inputElement.h asAttribute("maxlength")&&(e+="/"+t.inputElement.getAttribute("maxlength")),this ._charCounterStr=e}}})</script> <dom-module id="paper-input-container" assetpath ="/res/imp/bower_components/paper-input/"> <template> <style>:host{display:block ;padding:8px 0;@apply(--paper-input-container)}:host([inline]){display:inline-bl ock}:host([disabled]){pointer-events:none;opacity:.33;@apply(--paper-input-conta iner-disabled)}:host([hidden]){display:none!important}.floated-label-placeholder {@apply(--paper-font-caption)}.underline{position:relative}.focused-line{@apply( --layout-fit);background:var(--paper-input-container-focus-color,--primary-color );height:2px;-webkit-transform-origin:center center;transform-origin:center cent er;-webkit-transform:scale3d(0,1,1);transform:scale3d(0,1,1);@apply(--paper-inpu t-container-underline-focus)}.underline.is-highlighted .focused-line{-webkit-tra nsform:none;transform:none;-webkit-transition:-webkit-transform .25s;transition: transform .25s;@apply(--paper-transition-easing)}.underline.is-invalid .focused- line{background:var(--paper-input-container-invalid-color,--error-color);-webkit -transform:none;transform:none;-webkit-transition:-webkit-transform .25s;transit ion:transform .25s;@apply(--paper-transition-easing)}.unfocused-line{@apply(--la yout-fit);background:var(--paper-input-container-color,--secondary-text-color);h eight:1px;@apply(--paper-input-container-underline)}:host([disabled]) .unfocused -line{border-bottom:1px dashed;border-color:var(--paper-input-container-color,-- secondary-text-color);background:0 0;@apply(--paper-input-container-underline-di sabled)}.label-and-input-container{@apply(--layout-flex-auto);@apply(--layout-re lative);width:100%;max-width:100%}.input-content{@apply(--layout-horizontal);@ap ply(--layout-center);position:relative}.input-content ::content .paper-input-lab el,.input-content ::content label{position:absolute;top:0;right:0;left:0;width:1 00%;font:inherit;color:var(--paper-input-container-color,--secondary-text-color) ;-webkit-transition:-webkit-transform .25s,width .25s;transition:transform .25s, width .25s;-webkit-transform-origin:left top;transform-origin:left top;@apply(-- paper-font-common-nowrap);@apply(--paper-font-subhead);@apply(--paper-input-cont ainer-label);@apply(--paper-transition-easing)}.input-content.label-is-floating ::content .paper-input-label,.input-content.label-is-floating ::content label{-w ebkit-transform:translateY(-75%) scale(.75);transform:translateY(-75%) scale(.75 );width:133%;@apply(--paper-input-container-label-floating)}:host-context([dir=r tl]) .input-content.label-is-floating ::content .paper-input-label,:host-context ([dir=rtl]) .input-content.label-is-floating ::content label{width:100%;-webkit- transform-origin:right top;transform-origin:right top}.input-content.label-is-hi ghlighted ::content .paper-input-label,.input-content.label-is-highlighted ::con tent label{color:var(--paper-input-container-focus-color,--primary-color);@apply (--paper-input-container-label-focus)}.input-content.is-invalid ::content .paper -input-label,.input-content.is-invalid ::content label{color:var(--paper-input-c ontainer-invalid-color,--error-color)}.input-content.label-is-hidden ::content . paper-input-label,.input-content.label-is-hidden ::content label{visibility:hidd en}.input-content ::content .paper-input-input,.input-content ::content input,.i nput-content ::content iron-autogrow-textarea,.input-content ::content textarea{ position:relative;outline:0;box-shadow:none;padding:0;width:100%;max-width:100%; background:0 0;border:none;color:var(--paper-input-container-input-color,--prima ry-text-color);-webkit-appearance:none;text-align:inherit;vertical-align:bottom; @apply(--paper-font-subhead);@apply(--paper-input-container-input)}::content [pr efix]{@apply(--paper-font-subhead);@apply(--paper-input-prefix);@apply(--layout- flex-none)}::content [suffix]{@apply(--paper-font-subhead);@apply(--paper-input- suffix);@apply(--layout-flex-none)}.input-content ::content input{min-width:0}.i nput-content ::content textarea{resize:none}.add-on-content{position:relative}.a dd-on-content.is-invalid ::content *{color:var(--paper-input-container-invalid-c olor,--error-color)}.add-on-content.is-highlighted ::content *{color:var(--paper -input-container-focus-color,--primary-color)}</style> <template is="dom-if" if= "[[!noLabelFloat]]"> <div class="floated-label-placeholder" aria-hidden="true">& nbsp;</div> </template> <div class$="[[_computeInputContentClass(noLabelFloat,al waysFloatLabel,focused,invalid,_inputHasContent)]]"> <content select="[prefix]" id="prefix"></content> <div class="label-and-input-container" id="labelAndInputC ontainer"> <content select=":not([add-on]):not([prefix]):not([suffix])"></conten t> </div> <content select="[suffix]"></content> </div> <div class$="[[_computeUn derlineClass(focused,invalid)]]"> <div class="unfocused-line"></div> <div class= "focused-line"></div> </div> <div class$="[[_computeAddOnContentClass(focused,in valid)]]"> <content id="addOnContent" select="[add-on]"></content> </div> </temp late> </dom-module> <script>Polymer({is:"paper-input-container",properties:{noLa belFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrFo rValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},inv alid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,typ e:Boolean,value:!1,notify:!0},_addons:{type:Array},_inputHasContent:{type:Boolea n,value:!1},_inputSelector:{type:String,value:"input,textarea,.paper-input-input "},_boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this) }},_boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}} ,_boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}} ,_boundValueChanged:{type:Function,value:function(){return this._onValueChanged. bind(this)}}},listeners:{"addon-attached":"_onAddonAttached","iron-input-validat e":"_onIronInputValidate"},get _valueChangedEvent(){return this.attrForValue+"-c hanged"},get _propertyForValue(){return Polymer.CaseMap.dashToCamelCase(this.att rForValue)},get _inputElement(){return Polymer.dom(this).querySelector(this._inp utSelector)},get _inputElementValue(){return this._inputElement[this._propertyFo rValue]||this._inputElement.value},ready:function(){this._addons||(this._addons= []),this.addEventListener("focus",this._boundOnFocus,!0),this.addEventListener(" blur",this._boundOnBlur,!0)},attached:function(){this.attrForValue?this._inputEl ement.addEventListener(this._valueChangedEvent,this._boundValueChanged):this.add EventListener("input",this._onInput),""!=this._inputElementValue?this._handleVal ueAndAutoValidate(this._inputElement):this._handleValue(this._inputElement)},_on AddonAttached:function(t){this._addons||(this._addons=[]);var n=t.target;this._a ddons.indexOf(n)===-1&&(this._addons.push(n),this.isAttached&&this._handleValue( this._inputElement))},_onFocus:function(){this._setFocused(!0)},_onBlur:function (){this._setFocused(!1),this._handleValueAndAutoValidate(this._inputElement)},_o nInput:function(t){this._handleValueAndAutoValidate(t.target)},_onValueChanged:f unction(t){this._handleValueAndAutoValidate(t.target)},_handleValue:function(t){ var n=this._inputElementValue;n||0===n||"number"===t.type&&!t.checkValidity()?th is._inputHasContent=!0:this._inputHasContent=!1,this.updateAddons({inputElement: t,value:n,invalid:this.invalid})},_handleValueAndAutoValidate:function(t){if(thi s.autoValidate){var n;n=t.validate?t.validate(this._inputElementValue):t.checkVa lidity(),this.invalid=!n}this._handleValue(t)},_onIronInputValidate:function(t){ this.invalid=this._inputElement.invalid},_invalidChanged:function(){this._addons &&this.updateAddons({invalid:this.invalid})},updateAddons:function(t){for(var n, e=0;n=this._addons[e];e++)n.update(t)},_computeInputContentClass:function(t,n,e, i,a){var u="input-content";if(t)a&&(u+=" label-is-hidden");else{var o=this.query Selector("label");n||a?(u+=" label-is-floating",this.$.labelAndInputContainer.st yle.position="static",i?u+=" is-invalid":e&&(u+=" label-is-highlighted")):o&&(th is.$.labelAndInputContainer.style.position="relative")}return u},_computeUnderli neClass:function(t,n){var e="underline";return n?e+=" is-invalid":t&&(e+=" is-hi ghlighted"),e},_computeAddOnContentClass:function(t,n){var e="add-on-content";re turn n?e+=" is-invalid":t&&(e+=" is-highlighted"),e}})</script> <dom-module id=" paper-input-error" assetpath="/res/imp/bower_components/paper-input/"> <template > <style>:host{display:inline-block;visibility:hidden;color:var(--paper-input-co ntainer-invalid-color,--error-color);@apply(--paper-font-caption);@apply(--paper -input-error);position:absolute;left:0;right:0}:host([invalid]){visibility:visib le};</style> <content></content> </template> </dom-module> <script>Polymer({is:" paper-input-error",behaviors:[Polymer.PaperInputAddonBehavior],properties:{inval id:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(e){this._se tInvalid(e.invalid)}})</script> <dom-module id="paper-input" assetpath="/res/imp /bower_components/paper-input/"> <template> <style>:host{display:block}:host([fo cused]){outline:0}:host([hidden]){display:none!important}input::-webkit-input-pl aceholder{color:var(--paper-input-container-color,--secondary-text-color)}input: -moz-placeholder{color:var(--paper-input-container-color,--secondary-text-color) }input::-moz-placeholder{color:var(--paper-input-container-color,--secondary-tex t-color)}input:-ms-input-placeholder{color:var(--paper-input-container-color,--s econdary-text-color)}label{pointer-events:none}</style> <paper-input-container n o-label-float="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel( alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[ disabled]]" invalid="[[invalid]]"> <content select="[prefix]"></content> <label hidden$="[[!label]]" aria-hidden="true" for="input">[[label]]</label> <input is= "iron-input" id="input" aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$ ="[[_ariaDescribedBy]]" disabled$="[[disabled]]" title$="[[title]]" bind-value=" {{value}}" invalid="{{invalid}}" prevent-invalid-input="[[preventInvalidInput]]" allowed-pattern="[[allowedPattern]]" validator="[[validator]]" type$="[[type]]" pattern$="[[pattern]]" required$="[[required]]" autocomplete$="[[autocomplete]] " autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" minlength$="[[minlength] ]" maxlength$="[[maxlength]]" min$="[[min]]" max$="[[max]]" step$="[[step]]" nam e$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[l ist]]" size$="[[size]]" autocapitalize$="[[autocapitalize]]" autocorrect$="[[aut ocorrect]]" on-change="_onChange" tabindex$="[[tabindex]]" autosave$="[[autosave ]]" results$="[[results]]" accept$="[[accept]]" multiple$="[[multiple]]"> <conte nt select="[suffix]"></content> <template is="dom-if" if="[[errorMessage]]"> <pa per-input-error aria-live="assertive">[[errorMessage]]</paper-input-error> </tem plate> <template is="dom-if" if="[[charCounter]]"> <paper-input-char-counter></p aper-input-char-counter> </template> </paper-input-container> </template> </dom- module> <script>Polymer({is:"paper-input",behaviors:[Polymer.IronFormElementBeha vior,Polymer.PaperInputBehavior]})</script> <dom-module id="query-column-filter- style" assetpath="/res/imp/common/"> <template> <style>:host{display:block;font- family:sans-serif}#filter{margin:0 5px}.container{min-height:120px;width:100%}.i tem{border-bottom:1px solid #EEE;max-width:250px;min-height:1em;min-width:100px; padding:.1em .2em;line-height:1.5em}.header{height:2em;padding:.25em;line-height :2em}.selector{border:1px solid #000;margin:0 5px;max-height:200px;min-height:13 0px;min-width:200px;overflow-y:auto;overflow-x:hidden}.selectable{cursor:pointer }.selectable:hover{background-color:#A6CEE3}.iron-selected{background-color:#1F7 8B4;color:#fff}.icons{cursor:pointer;height:20px;margin:2px;width:20px;flex-shri nk:0}.side-by-side{display:inline-block;vertical-align:top}.bold{font-weight:700 }paper-checkbox{max-height:2em;margin:2px;--paper-checkbox-checked-color:black;- -paper-checkbox-checked-ink-color:black;--paper-checkbox-unchecked-color:black;- -paper-checkbox-unchecked-ink-color:black;--paper-checkbox-label-color:black}</s tyle> </template> </dom-module> <script>!function(){var r=function(r,i){if(!i)re turn{idx:0,part:""};if(!r)return{idx:-1};i=i.trim().toLocaleLowerCase(),r=r.toLo caleLowerCase();for(var t=i.split(" "),e=0;e<t.length;e++){var n=r.indexOf(t[e]) ;if(n!==-1)return{idx:n,part:t[e]}}return{idx:-1}};SwarmingBehaviors.QueryColumn Filter=[SwarmingBehaviors.CommonBehavior,{properties:{primary_map:{type:Object}, primary_arr:{type:Array},dimensions:{type:Array},filter:{type:Function,computed: "_makeFilter(_filters.*)",notify:!0},FILTER_SEP:{type:String,value:":"},_filters :{type:Array},_limit:{type:Number},_primaryItems:{type:Array,computed:"_primary( _query, primary_map, primary_arr, columns.*)"},_primarySelected:{type:String,val ue:""},_query:{type:String},_secondaryItems:{type:Array,computed:"_secondary(_pr imarySelected, _query, primary_map)"}},_addFilter:function(r){var i=r.model.item ;if(!this._cantAddFilter(this._primarySelected,i)){var t=this._primarySelected+t his.FILTER_SEP+i;this.push("_filters",t)}},_removeFilter:function(r){var i=r.mod el.fil;if(!this._cantRemoveFilter(i)){var t=this._filters.indexOf(i);t!==-1&&thi s.splice("_filters",t,1)}},_cantAddFilter:function(r,i){if(!r||!i)return!0;var t =r+this.FILTER_SEP+i;return this._filters.indexOf(t)!==-1},_cantRemoveFilter:fun ction(r){return!r||this._filters.indexOf(r)===-1},_makeFilter:function(){var r={ };this._filters.forEach(function(i){var t=i.indexOf(this.FILTER_SEP),e=i.slice(0 ,t),n=i.slice(t+this.FILTER_SEP.length),a=r[e]||[];a.push(n),r[e]=a}.bind(this)) ;var i=this._filterMap||{};return function(t){var e=!0;for(primary in r){var n=r [primary],a=i[primary];a||(a=function(r,i){var t=this._attribute(r,primary);retu rn t.indexOf(i)!==-1}.bind(this)),a&&n.forEach(function(r){e=e&&a.bind(this)(t,r )}.bind(this))}return e}},_toggleColumn:function(r){var i=r.model.item;if(!this. _cantToggleColumn(i)){if(this._columnState(i)){var t=this.columns.indexOf(i);ret urn void(t!==-1&&this.splice("columns",t,1))}this.push("columns",i)}},_cantToggl eColumn:function(r){return!1},_columnState:function(r){return!!r&&this.columns.i ndexOf(r)!==-1},_primary:function(i,t,e){var n=this.primary_arr.filter(function( e){if(r(e,i).idx!==-1)return!0;for(var n=t[e]||[],a=0;a<n.length;a++)if(r(n[a],i ).idx!==-1)return!0;return!1});return i&&n.length>0&&n.indexOf(this._primarySele cted)===-1&&this.set("_primarySelected",n[0]),n},_secondary:function(i,t,e){if(r equestAnimationFrame(function(){this.$.secondaryList.render()}.bind(this)),!i)re turn[];var n=e[i]||[];return r(i,t).idx!==-1?n.sort(function(i,e){var n=r(i,t).i dx!==-1,a=r(e,t).idx!==-1;return n===a?swarming.naturalCompare(i,e):a-n}):n.filt er(function(i){return r(i,t).idx!==-1})},_beforeBold:function(i,t){var e=r(i,t); return e.idx===-1?i:i.substring(0,e.idx)},_bold:function(i,t){var e=r(i,t);retur n e.idx===-1?"":i.substring(e.idx,e.idx+e.part.length)},_afterBold:function(i,t) {var e=r(i,t);return e.idx===-1?"":i.substring(e.idx+e.part.length)},_commonFilt ers:function(){return{android_devices:function(r,i){var t=this._attribute(r,"and roid_devices","0");return t.indexOf(i)!==-1},device_os:function(r,i){var t=this. _attribute(r,"device_os","none");return t.indexOf(i)!==-1},device_type:function( r,i){var t=this._attribute(r,"device_type","none");return t.indexOf(swarming.ali as.unapply(i))!==-1},gpu:function(r,i){var t=this._attribute(r,"gpu","none");ret urn t.indexOf(swarming.alias.unapply(i))!==-1}}}}]}()</script> <script>!function (){var e="unknown";SwarmingBehaviors.BotListBehavior=[SwarmingBehaviors.CommonBe havior,{properties:{BOT_PROPERTIES:{type:Array,value:function(){return["disk_spa ce","task","status","version","external_ip","last_seen","first_seen","battery_le vel","battery_voltage","battery_temperature","battery_status","battery_health"," bot_temperature","device_temperature"]}}},_attribute:function(t,r,i){return i=i| |e,this._dimension(t,r)||this._state(t,r)||[i]},_devices:function(e){return e.st ate.devices},_deviceType:function(e){return e.device_type.toLowerCase()},_dimens ion:function(e,t){if(e&&e.dimensions&&t)for(var r=0;r<e.dimensions.length;r++)if (e.dimensions[r].key===t)return e.dimensions[r].value},_state:function(e,t){if(e &&e.state&&e.state[t]){var r=e.state[t];return Array.isArray(r)?r:[r]}},_taskId: function(e){return e&&e.task_id?e.task_id:"idle"}}]}()</script> <dom-module id=" bot-filters" assetpath="/res/imp/botlist/"> <template> <style is="custom-style" include="iron-flex iron-flex-alignment iron-positioning query-column-filter-styl e"></style> <url-param name="f" value="{{_filters}}" default_values="[]" multi=" "> </url-param> <url-param name="c" value="{{columns}}" default_values="[&quot;i d&quot;,&quot;os&quot;,&quot;task&quot;,&quot;status&quot;]" multi=""> </url-par am> <url-param name="q" value="{{_query}}" default_value=""> </url-param> <url-p aram name="v" value="{{verbose}}"> </url-param> <url-param name="l" default_valu e="100" value="{{_limit}}"> </url-param> <div class="container horizontal layout "> <div class="narrow-down-selector"> <div> <paper-input id="filter" label="Sear ch columns and filters" placeholder="gpu nvidia" value="{{_query}}"> </paper-inp ut> </div> <div class="selector side-by-side" title="This shows all bot dimensio n names and other interesting bot properties. Mark the check box to add as a col umn. Select the row to see filter options."> <iron-selector attr-for-selected="l abel" selected="{{_primarySelected}}"> <template is="dom-repeat" items="[[_prima ryItems]]" as="item"> <div class="selectable item horizontal layout" label="[[it em]]"> <span>[[_beforeBold(item,_query)]]<span class="bold">[[_bold(item,_query) ]]</span>[[_afterBold(item,_query)]]</span> <span class="flex"></span> <paper-ch eckbox noink="" disabled$="[[_cantToggleColumn(item)]]" checked="[[_columnState( item,columns.*)]]" on-change="_toggleColumn"> </paper-checkbox> </div> </templat e> </iron-selector> </div> <div class="selector side-by-side" title="These are a ll options (if any) that the bot list can be filtered on."> <template is="dom-re peat" id="secondaryList" items="[[_secondaryItems]]" as="item"> <div class="item horizontal layout" label="[[item]]"> <span>[[_beforeBold(item,_query)]]<span cl ass="bold">[[_bold(item,_query)]]</span>[[_afterBold(item,_query)]]</span> <span class="flex"></span> <iron-icon class="icons" icon="icons:arrow-forward" hidden ="[[_cantAddFilter(_primarySelected,item,_filters.*)]]" on-tap="_addFilter"> </i ron-icon> </div> </template> </div> <div class="selector side-by-side" title="Th ese filters are AND'd together and applied to all bots in
7 the fleet."> <template is="dom-repeat" items="[[_filters]]" as="fil"> <div class ="item horizontal layout" label="[[fil]]"> <span>[[fil]]</span> <span class="fle x"></span> <iron-icon class="icons" icon="icons:remove-circle-outline" hidden="[ [_cantRemoveFilter(fil,_filters.*)]]" on-tap="_removeFilter"> </iron-icon> </div > </template> </div> <div class="side-by-side"> <paper-checkbox checked="{{verbo se}}">Verbose Entries</paper-checkbox> <paper-input id="_limit" label="Limit Res ults" auto-validate="" min="0" max="1000" pattern="[0-9]+" value="{{_limit}}"> < /paper-input> </div> </div> </div> </template> <script>!function(){var i={disk_s pace:function(i,t){return!0},id:function(i,t){return!0},status:function(i,t){ret urn"quarantined"===t?i.quarantined:"dead"===t?i.is_dead:!i.quarantined&&!i.is_de ad},task:function(i,t){return"idle"===t?"idle"===this._taskId(i):"idle"!==this._ taskId(i)}};Polymer({is:"bot-filters",behaviors:[SwarmingBehaviors.BotListBehavi or,SwarmingBehaviors.QueryColumnFilter],properties:{columns:{type:Array,notify:! 0},query_params:{type:Object,computed:"_extractQueryParams(dimensions.*,_filters .*, _limit)",notify:!0},verbose:{type:Boolean,notify:!0},_filterMap:{type:Object ,value:function(){var t=this._commonFilters();for(var e in i)t[e]=i[e];return t} }},_cantToggleColumn:function(i){return!i||"id"===i},_extractQueryParams:functio n(){var i={},t=[];this._filters.forEach(function(e){var n=e.split(this.FILTER_SE P,1),r=n[0];if(this.dimensions.indexOf(r)!==-1){var a=e.substring(r.length+this. FILTER_SEP.length);t.push(r+this.FILTER_SEP+swarming.alias.unapply(a))}else if(" status"===r){var a=e.substring(r.length+this.FILTER_SEP.length);"alive"===a?(i.i s_dead=["FALSE"],i.quarantined=["FALSE"]):"quarantined"===a?i.quarantined=["TRUE "]:"dead"===a&&(i.is_dead=["TRUE"])}}.bind(this)),i.dimensions=t;var e=parseInt( this._limit);return Number.isInteger(e)&&(e=Math.max(e,1),e=Math.min(1e3,e),i._l imit=[e],this._limit!=e&&this.set("_limit",e)),i}})}()</script> </dom-module><do m-module id="bot-list-data" assetpath="/res/imp/botlist/"> <script>!function(){v ar t=["quarantined","error"];Polymer({is:"bot-list-data",behaviors:[SwarmingBeha viors.BotListBehavior],properties:{auth_headers:{type:Object,observer:"signIn"}, query_params:{type:Object,observer:"_request"},bots:{type:Array,computed:"_bots( _list)",notify:!0},busy:{type:Boolean,computed:"_or(_busy1,_busy2,_busy3)",notif y:!0},dimensions:{type:Array,computed:"_makeArray(_dimensions)",notify:!0},fleet :{type:Object,computed:"_fleet(_count)",notify:!0},primary_map:{type:Object,comp uted:"_primaryMap(_dimensions)",notify:!0},primary_arr:{type:Array,computed:"_pr imaryArr(dimensions, BOT_PROPERTIES)",notify:!0},_busy1:{type:Boolean,value:!1}, _busy2:{type:Boolean,value:!1},_busy3:{type:Boolean,value:!1},_count:{type:Objec t},_dimensions:{type:Object},_list:{type:Object}},signIn:function(){this._getJso nAsync("_count","/_ah/api/swarming/v1/bots/count","_busy2",this.auth_headers),th is._getJsonAsync("_dimensions","/_ah/api/swarming/v1/bots/dimensions","_busy3",t his.auth_headers),this._request()},_bots:function(){return this._list&&this._lis t.items?(this._list.items.forEach(function(t){t.state=t.state||"{}",t.state=JSON .parse(t.state);var s=t.state.disks||{},e=Object.keys(s);if(e.length){t.disks=[] ;for(var i=0;i<e.length;i++)t.disks.push({id:e[i],mb:s[e[i]].free_mb});t.disks.s ort(function(t,s){return s.mb-t.mb})}else t.disks=[{id:"unknown",mb:0}]}),this._ list.items):[]},_fleet:function(){return this._count?{all:this._count.count||-1, alive:this._count.count-this._count.dead||-1,busy:this._count.busy||-1,idle:this ._count.count-this._count.busy||-1,dead:this._count.dead||-1,quarantined:this._c ount.quarantined||-1}:{}},_makeArray:function(s){if(!s||!s.bots_dimensions)retur n[];var e=[];return s.bots_dimensions.forEach(function(s){t.indexOf(s.key)===-1& &e.push(s.key)}),e.push("id"),e.sort(),e},_primaryArr:function(t,s){return t.con cat(s)},_primaryMap:function(t){t=t.bots_dimensions;var s={};return t.forEach(fu nction(t){if(swarming.alias.DIMENSIONS_WITH_ALIASES.indexOf(t.key)===-1)s[t.key] =t.value;else{var e=[];t.value.forEach(function(s){e.push(swarming.alias.apply(s ,t.key))}),s[t.key]=e}}),s.android_devices.push("0"),s.device_os.push("none"),s. device_type.push("none"),s.id=[],s.disk_space=[],s.task=["busy","idle"],s.status =["alive","dead","quarantined"],s},_request:function(){this.auth_headers&&this.q uery_params&&this._getJsonAsync("_list","/_ah/api/swarming/v1/bots/list","_busy1 ",this.auth_headers,this.query_params)}})}()</script> </dom-module><dom-module i d="bot-list-summary" assetpath="/res/imp/botlist/"> <template> <style include="s warming-app-style">:host{display:block;border-left:1px solid #000;padding:5px 5p x;font-family:sans-serif}.header{font-size:1.2em;font-weight:700}.right{text-ali gn:right}.left{text-align:left}</style> <div class="header">Fleet</div> <table> <tbody><tr> <td class="right"> <a href$="[[_makeURL('','',columns.*,filtered_bot s.*,sort,verbose)]]">All</a>: </td> <td class="left">[[fleet.all]]</td> </tr> <t r> <td class="right"> <a href$="[[_makeURL('alive','',columns.*,filtered_bots.*, sort,verbose)]]">Alive</a>: </td> <td class="left">[[fleet.alive]]</td> </tr> <t r> <td class="right"> <a href$="[[_makeURL('busy','',columns.*,filtered_bots.*,s ort,verbose)]]">Busy</a>: </td> <td class="left">[[fleet.busy]]</td> </tr> <tr> <td class="right"> <a href$="[[_makeURL('idle','',columns.*,filtered_bots.*,sort ,verbose)]]">Idle</a>: </td> <td class="left">[[fleet.idle]]</td> </tr> <tr> <td class="right"> <a href$="[[_makeURL('dead','',columns.*,filtered_bots.*,sort,ve rbose)]]">Dead</a>: </td> <td class="left">[[fleet.dead]]</td> </tr> <tr> <td cl ass="right"> <a href$="[[_makeURL('quarantined','',columns.*,filtered_bots.*,sor t,verbose)]]">Quarantined</a>: </td> <td class="left">[[fleet.quarantined]]</td> </tr> </tbody></table> <div class="header">Displayed</div> <table> <tbody><tr> <td class="right"> All: </td> <td class="left">[[_currently_showing.all]]</td> < /tr> <tr> <td class="right"> <a href$="[[_makeURL('alive','true',columns.*,filte red_bots.*,sort,verbose)]]">Alive</a>: </td> <td class="left">[[_currently_showi ng.alive]]</td> </tr> <tr> <td class="right"> <a href$="[[_makeURL('busy','true' ,columns.*,filtered_bots.*,sort,verbose)]]">Busy</a>: </td> <td class="left">[[_ currently_showing.busy]]</td> </tr> <tr> <td class="right"> <a href$="[[_makeURL ('idle','true',columns.*,filtered_bots.*,sort,verbose)]]">Idle</a>: </td> <td cl ass="left">[[_currently_showing.idle]]</td> </tr> <tr> <td class="right"> <a hre f$="[[_makeURL('dead','true',columns.*,filtered_bots.*,sort,verbose)]]">Dead</a> : </td> <td class="left">[[_currently_showing.dead]]</td> </tr> <tr> <td class=" right"> <a href$="[[_makeURL('quarantined','true',columns.*,filtered_bots.*,sort ,verbose)]]">Quarantined</a>: </td> <td class="left">[[_currently_showing.quaran tined]]</td> </tr> </tbody></table> </template> <script>Polymer({is:"bot-list-su mmary",behaviors:[SwarmingBehaviors.BotListBehavior],properties:{columns:{type:A rray},filtered_bots:{type:Array},fleet:{type:Object},sort:{type:String},verbose: {type:Boolean},_currently_showing:{type:Object,value:function(){return{all:-1,al ive:-1,busy:-1,idle:-1,dead:-1,quarantined:-1}}}},observers:["_recount(filtered_ bots.*)"],_getFilterStr:function(e){return e?"alive"===e||"dead"===e||"quarantin ed"===e?"status:"+e:"task:"+e:""},_makeURL:function(e,t){if(!t){var r={sort:[thi s.sort],columns:this.columns,verbose:[this.verbose]};return e&&(r.filters=[this. _getFilterStr(e)]),window.location.href.split("?")[0]+"?"+sk.query.fromParamSet( r)}var i=encodeURIComponent(this._getFilterStr(e));if(window.location.href.index Of(i)===-1)return window.location.href+"&filters="+i},_recount:function(){var e= {all:0,alive:0,busy:0,idle:0,dead:0,quarantined:0};return this.filtered_bots?(th is.filtered_bots.forEach(function(t){"idle"===this._taskId(t)?e.idle++:e.busy++, t.quarantined&&e.quarantined++,t.is_dead?e.dead++:e.alive++,e.all++}.bind(this)) ,void this.set("_currently_showing",e)):e}})</script> </dom-module><dom-module i d="bot-list" assetpath="/res/imp/botlist/"> <template> <style include="iron-flex iron-flex-alignment iron-positioning swarming-app-style dynamic-table-style">bo t-filters,bot-list-summary{margin-bottom:8px;margin-right:10px}.bad-device,.quar antined{background-color:#fdd}.dead{background-color:#ccc}.bot-list th>span{padd ing-right:30px}</style> <url-param name="sort" value="{{_sortstr}}" default_valu e="id:asc"> </url-param> <swarming-app client_id="[[client_id]]" auth_headers="{ {_auth_headers}}" signed_in="{{_signed_in}}" busy="[[_busy]]" name="Swarming Bot List"> <h2 hidden$="[[_signed_in]]">You must sign in to see anything useful.</h 2> <div hidden$="[[_not(_signed_in)]]"> <div class="horizontal layout"> <bot-fil ters dimensions="[[_dimensions]]" primary_map="[[_primary_map]]" primary_arr="[[ _primary_arr]]" columns="{{_columns}}" query_params="{{_query_params}}" filter=" {{_filter}}" verbose="{{_verbose}}"> </bot-filters> <bot-list-summary columns="[ [_columns]]" fleet="[[_fleet]]" filtered_bots="[[_filteredSortedItems]]" sort="[ [_sortstr]]" verbose="[[_verbose]]"> </bot-list-summary> </div> <bot-list-data a uth_headers="[[_auth_headers]]" query_params="[[_query_params]]" bots="{{_items} }" busy="{{_busy}}" dimensions="{{_dimensions}}" fleet="{{_fleet}}" primary_map= "{{_primary_map}}" primary_arr="{{_primary_arr}}"> </bot-list-data> <table class ="bot-list"> <thead on-sort_change="_sortChange"> <tr> <th> <span>Bot Id</span> <sort-toggle name="id" current="[[_sort]]"> </sort-toggle> </th> <th hidden$="[[ _hide('task', _columns.*)]]"> <span>Current Task</span> <sort-toggle name="task" current="[[_sort]]"> </sort-toggle> </th> <template is="dom-repeat" items="[[_p lainColumns]]" as="c"> <th hidden$="[[_hide(c)]]"> <span>[[_header(c)]]</span> < sort-toggle name="[[c]]" current="[[_sort]]"> </sort-toggle> </th> </template> < /tr> </thead> <tbody> <template id="bot_table" is="dom-repeat" items="[[_filtere dSortedItems]]" as="bot" initial-count="50"> <tr class$="[[_botClass(bot)]]"> <t d> <a class="center" href$="[[_botLink(bot.bot_id)]]" target="_blank"> [[bot.bot _id]] </a> </td> <td hidden$="[[_hide('task', _columns.*)]]"> <a href$="[[_taskL ink(bot.task_id)]]">[[_taskId(bot)]]</a> </td> <template is="dom-repeat" items=" [[_plainColumns]]" as="c"> <td hidden$="[[_hide(c)]]"> [[_column(c, bot, _verbos e)]] </td> </template> </tr> <template is="dom-repeat" items="[[_devices(bot)]]" as="device"> <tr hidden$="[[_hide('android_devices', _columns.*)]]" class$="[[_ deviceClass(device)]]"> <td></td> <td hidden$="[[_hide('task', _columns.*)]]"></ td> <template is="dom-repeat" items="[[_plainColumns]]" as="c"> <td hidden$="[[_ hide(c)]]"> [[_deviceColumn(c, device, _verbose)]] </td> </template> </tr> </tem plate> </template> </tbody> </table> </div> </swarming-app> </template> <script> (function(){ 7 the fleet."> <template is="dom-repeat" items="[[_filters]]" as="fil"> <div class ="item horizontal layout" label="[[fil]]"> <span>[[fil]]</span> <span class="fle x"></span> <iron-icon class="icons" icon="icons:remove-circle-outline" hidden="[ [_cantRemoveFilter(fil,_filters.*)]]" on-tap="_removeFilter"> </iron-icon> </div > </template> </div> <div class="side-by-side"> <paper-checkbox checked="{{verbo se}}">Verbose Entries</paper-checkbox> <paper-input id="_limit" label="Limit Res ults" auto-validate="" min="0" max="1000" pattern="[0-9]+" value="{{_limit}}"> < /paper-input> </div> </div> </div> </template> <script>!function(){var i={disk_s pace:function(i,t){return!0},id:function(i,t){return!0},status:function(i,t){ret urn"quarantined"===t?i.quarantined:"dead"===t?i.is_dead:!i.quarantined&&!i.is_de ad},task:function(i,t){return"idle"===t?"idle"===this._taskId(i):"idle"!==this._ taskId(i)}};Polymer({is:"bot-filters",behaviors:[SwarmingBehaviors.BotListBehavi or,SwarmingBehaviors.QueryColumnFilter],properties:{columns:{type:Array,notify:! 0},query_params:{type:Object,computed:"_extractQueryParams(dimensions.*,_filters .*, _limit)",notify:!0},verbose:{type:Boolean,notify:!0},_filterMap:{type:Object ,value:function(){var t=this._commonFilters();for(var e in i)t[e]=i[e];return t} }},_cantToggleColumn:function(i){return!i||"id"===i},_extractQueryParams:functio n(){var i={},t=[];this._filters.forEach(function(e){var n=e.split(this.FILTER_SE P,1),r=n[0];if(this.dimensions.indexOf(r)!==-1){var a=e.substring(r.length+this. FILTER_SEP.length);t.push(r+this.FILTER_SEP+swarming.alias.unapply(a))}else if(" status"===r){var a=e.substring(r.length+this.FILTER_SEP.length);"alive"===a?(i.i s_dead=["FALSE"],i.quarantined=["FALSE"]):"quarantined"===a?i.quarantined=["TRUE "]:"dead"===a&&(i.is_dead=["TRUE"])}}.bind(this)),i.dimensions=t;var e=parseInt( this._limit);return Number.isInteger(e)&&(e=Math.max(e,1),e=Math.min(1e3,e),i._l imit=[e],this._limit!=e&&this.set("_limit",e)),i}})}()</script> </dom-module><do m-module id="bot-list-data" assetpath="/res/imp/botlist/"> <script>!function(){f unction t(t){if(!t)return{};var e=[],s=0;for(k in t)e.push(k+": "+t[k]),s+=t[k]; return s/=e.length,s=s?s.toFixed(1):"unknown",{average:s,zones:e.join(" | ")||"u nknown"}}var e="available",s=["quarantined","error"];Polymer({is:"bot-list-data" ,behaviors:[SwarmingBehaviors.BotListBehavior],properties:{auth_headers:{type:Ob ject,observer:"signIn"},query_params:{type:Object,observer:"_request"},bots:{typ e:Array,computed:"_bots(_list)",notify:!0},busy:{type:Boolean,computed:"_or(_bus y1,_busy2,_busy3)",notify:!0},dimensions:{type:Array,computed:"_makeArray(_dimen sions)",notify:!0},fleet:{type:Object,computed:"_fleet(_count)",notify:!0},prima ry_map:{type:Object,computed:"_primaryMap(_dimensions)",notify:!0},primary_arr:{ type:Array,computed:"_primaryArr(dimensions, BOT_PROPERTIES)",notify:!0},_busy1: {type:Boolean,value:!1},_busy2:{type:Boolean,value:!1},_busy3:{type:Boolean,valu e:!1},_count:{type:Object},_dimensions:{type:Object},_list:{type:Object}},signIn :function(){this._getJsonAsync("_count","/_ah/api/swarming/v1/bots/count","_busy 2",this.auth_headers),this._getJsonAsync("_dimensions","/_ah/api/swarming/v1/bot s/dimensions","_busy3",this.auth_headers),this._request()},_bots:function(){retu rn this._list&&this._list.items?(this._list.items.forEach(function(s){s.state=s. state||"{}",s.state=JSON.parse(s.state);var i=s.state.disks||{},n=Object.keys(i) ;if(n.length){s.disks=[];for(var a=0;a<n.length;a++)s.disks.push({id:n[a],mb:i[n [a]].free_mb});s.disks.sort(function(t,e){return e.mb-t.mb})}else s.disks=[{id:" unknown",mb:0}];s.state.temp=t(s.state.temp);var r=[],o=s&&s.state&&s.state.devi ces||{};for(key in o){var u=o[key];u.serial=key,u.okay=u.state===e,u.device_type =this._dimension(s,"device_type")[0],u.temp=t(u.temp),r.push(u)}s.state.devices= r,s.last_seen_ts&&(s.last_seen_ts=new Date(s.last_seen_ts)),s.first_seen_ts&&(s. first_seen_ts=new Date(s.first_seen_ts))}.bind(this)),this._list.items):[]},_fle et:function(){return this._count?{all:this._count.count||-1,alive:this._count.co unt-this._count.dead||-1,busy:this._count.busy||-1,idle:this._count.count-this._ count.busy||-1,dead:this._count.dead||-1,quarantined:this._count.quarantined||-1 }:{}},_makeArray:function(t){if(!t||!t.bots_dimensions)return[];var e=[];return t.bots_dimensions.forEach(function(t){s.indexOf(t.key)===-1&&e.push(t.key)}),e.p ush("id"),e.sort(),e},_primaryArr:function(t,e){return t.concat(e)},_primaryMap: function(t){t=t.bots_dimensions;var e={};return t.forEach(function(t){if(swarmin g.alias.DIMENSIONS_WITH_ALIASES.indexOf(t.key)===-1)e[t.key]=t.value;else{var s= [];t.value.forEach(function(e){s.push(swarming.alias.apply(e,t.key))}),e[t.key]= s}}),e.android_devices.push("0"),e.device_os.push("none"),e.device_type.push("no ne"),e.id=[],e.disk_space=[],e.task=["busy","idle"],e.status=["alive","dead","qu arantined"],e},_request:function(){this.auth_headers&&this.query_params&&this._g etJsonAsync("_list","/_ah/api/swarming/v1/bots/list","_busy1",this.auth_headers, this.query_params)}})}()</script> </dom-module><dom-module id="bot-list-summary" assetpath="/res/imp/botlist/"> <template> <style include="swarming-app-style">: host{display:block;border-left:1px solid #000;padding:5px 5px;font-family:sans-s erif}.header{font-size:1.2em;font-weight:700}.right{text-align:right}.left{text- align:left}</style> <div class="header">Fleet</div> <table> <tbody><tr> <td clas s="right"> <a href$="[[_makeURL('','',columns.*,filtered_bots.*,sort,verbose)]]" >All</a>: </td> <td class="left">[[fleet.all]]</td> </tr> <tr> <td class="right" > <a href$="[[_makeURL('alive','',columns.*,filtered_bots.*,sort,verbose)]]">Ali ve</a>: </td> <td class="left">[[fleet.alive]]</td> </tr> <tr> <td class="right" > <a href$="[[_makeURL('busy','',columns.*,filtered_bots.*,sort,verbose)]]">Busy </a>: </td> <td class="left">[[fleet.busy]]</td> </tr> <tr> <td class="right"> < a href$="[[_makeURL('idle','',columns.*,filtered_bots.*,sort,verbose)]]">Idle</a >: </td> <td class="left">[[fleet.idle]]</td> </tr> <tr> <td class="right"> <a h ref$="[[_makeURL('dead','',columns.*,filtered_bots.*,sort,verbose)]]">Dead</a>: </td> <td class="left">[[fleet.dead]]</td> </tr> <tr> <td class="right"> <a href $="[[_makeURL('quarantined','',columns.*,filtered_bots.*,sort,verbose)]]">Quaran tined</a>: </td> <td class="left">[[fleet.quarantined]]</td> </tr> </tbody></tab le> <div class="header">Displayed</div> <table> <tbody><tr> <td class="right"> A ll: </td> <td class="left">[[_currently_showing.all]]</td> </tr> <tr> <td class= "right"> <a href$="[[_makeURL('alive','true',columns.*,filtered_bots.*,sort,verb ose)]]">Alive</a>: </td> <td class="left">[[_currently_showing.alive]]</td> </tr > <tr> <td class="right"> <a href$="[[_makeURL('busy','true',columns.*,filtered_ bots.*,sort,verbose)]]">Busy</a>: </td> <td class="left">[[_currently_showing.bu sy]]</td> </tr> <tr> <td class="right"> <a href$="[[_makeURL('idle','true',colum ns.*,filtered_bots.*,sort,verbose)]]">Idle</a>: </td> <td class="left">[[_curren tly_showing.idle]]</td> </tr> <tr> <td class="right"> <a href$="[[_makeURL('dead ','true',columns.*,filtered_bots.*,sort,verbose)]]">Dead</a>: </td> <td class="l eft">[[_currently_showing.dead]]</td> </tr> <tr> <td class="right"> <a href$="[[ _makeURL('quarantined','true',columns.*,filtered_bots.*,sort,verbose)]]">Quarant ined</a>: </td> <td class="left">[[_currently_showing.quarantined]]</td> </tr> < /tbody></table> </template> <script>Polymer({is:"bot-list-summary",behaviors:[Sw armingBehaviors.BotListBehavior],properties:{columns:{type:Array},filtered_bots: {type:Array},fleet:{type:Object},sort:{type:String},verbose:{type:Boolean},_curr ently_showing:{type:Object,value:function(){return{all:-1,alive:-1,busy:-1,idle: -1,dead:-1,quarantined:-1}}}},observers:["_recount(filtered_bots.*)"],_getFilter Str:function(e){return e?"alive"===e||"dead"===e||"quarantined"===e?"status:"+e: "task:"+e:""},_makeURL:function(e,t){if(!t){var r={s:[this.sort],c:this.columns, v:[this.verbose]};return e&&(r.f=[this._getFilterStr(e)]),window.location.href.s plit("?")[0]+"?"+sk.query.fromParamSet(r)}var i=encodeURIComponent(this._getFilt erStr(e));if(window.location.href.indexOf(i)===-1)return window.location.href+"& f="+i},_recount:function(){var e={all:0,alive:0,busy:0,idle:0,dead:0,quarantined :0};return this.filtered_bots?(this.filtered_bots.forEach(function(t){"idle"===t his._taskId(t)?e.idle++:e.busy++,t.quarantined&&e.quarantined++,t.is_dead?e.dead ++:e.alive++,e.all++}.bind(this)),void this.set("_currently_showing",e)):e}})</s cript> </dom-module><dom-module id="bot-list" assetpath="/res/imp/botlist/"> <te mplate> <style include="iron-flex iron-flex-alignment iron-positioning swarming- app-style dynamic-table-style">bot-filters,bot-list-summary{margin-bottom:8px;ma rgin-right:10px}.bad-device,.quarantined{background-color:#fdd}.dead{background- color:#ccc}.bot-list th>span{padding-right:30px}</style> <url-param name="s" val ue="{{_sortstr}}" default_value="id:asc"> </url-param> <swarming-app client_id=" [[client_id]]" auth_headers="{{_auth_headers}}" signed_in="{{_signed_in}}" busy= "[[_busy]]" name="Swarming Bot List"> <h2 hidden$="[[_signed_in]]">You must sign in to see anything useful.</h2> <div hidden$="[[_not(_signed_in)]]"> <div class ="horizontal layout"> <bot-filters dimensions="[[_dimensions]]" primary_map="[[_ primary_map]]" primary_arr="[[_primary_arr]]" columns="{{_columns}}" query_param s="{{_query_params}}" filter="{{_filter}}" verbose="{{_verbose}}"> </bot-filters > <bot-list-summary columns="[[_columns]]" fleet="[[_fleet]]" filtered_bots="[[_ filteredSortedItems]]" sort="[[_sortstr]]" verbose="[[_verbose]]"> </bot-list-su mmary> </div> <bot-list-data auth_headers="[[_auth_headers]]" query_params="[[_q uery_params]]" bots="{{_items}}" busy="{{_busy}}" dimensions="{{_dimensions}}" f leet="{{_fleet}}" primary_map="{{_primary_map}}" primary_arr="{{_primary_arr}}"> </bot-list-data> <table class="bot-list"> <thead on-sort_change="_sortChange"> <tr> <th> <span>Bot Id</span> <sort-toggle name="id" current="[[_sort]]"> </sort -toggle> </th> <th hidden$="[[_hide('task', _columns.*)]]"> <span>Current Task</ span> <sort-toggle name="task" current="[[_sort]]"> </sort-toggle> </th> <templa te is="dom-repeat" items="[[_plainColumns]]" as="c"> <th hidden$="[[_hide(c)]]"> <span>[[_header(c)]]</span> <sort-toggle name="[[c]]" current="[[_sort]]"> </so rt-toggle> </th> </template> </tr> </thead> <tbody> <template id="bot_table" is= "dom-repeat" items="[[_filteredSortedItems]]" as="bot" initial-count="50"> <tr c lass$="[[_botClass(bot)]]"> <td> <a class="center" href$="[[_botLink(bot.bot_id) ]]" target="_blank"> [[bot.bot_id]] </a> </td> <td hidden$="[[_hide('task', _col umns.*)]]"> <a href$="[[_taskLink(bot.task_id)]]">[[_taskId(bot)]]</a> </td> <te mplate is="dom-repeat" items="[[_plainColumns]]" as="c"> <td hidden$="[[_hide(c) ]]"> [[_column(c, bot, _verbose)]] </td> </template> </tr> <template is="dom-rep eat" items="[[_devices(bot)]]" as="device"> <tr hidden$="[[_hide('android_device s', _columns.*)]]" class$="[[_deviceClass(device)]]"> <td></td> <td hidden$="[[_ hide('task', _columns.*)]]"></td> <template is="dom-repeat" items="[[_plainColum ns]]" as="c"> <td hidden$="[[_hide(c)]]"> [[_deviceColumn(c, device, _verbose)]] </td> </template> </tr> </template> </template> </tbody> </table> </div> </swar ming-app> </template> <script> (function(){
8 var UNKNOWN = "unknown";
8 // see dynamic-table for more information on specialColumns, headerMap, 9 // see dynamic-table for more information on specialColumns, headerMap,
9 // columnMap, and specialSort 10 // columnMap, and specialSort
10 var specialColumns = ["id", "task"]; 11 var specialColumns = ["id", "task"];
11 12
12 var headerMap = { 13 var headerMap = {
13 // "id" and "task" are special, so they don't go here. They have their 14 // "id" and "task" are special, so they don't go here. They have their
14 // headers hard-coded above. 15 // headers hard-coded above.
15 "android_devices": "Android Devices", 16 "android_devices": "Android Devices",
16 "cores": "Cores", 17 "cores": "Cores",
17 "cpu": "CPU", 18 "cpu": "CPU",
18 "device": "Non-android Device", 19 "device": "Non-android Device",
19 "device_os": "Device OS", 20 "device_os": "Device OS",
20 "device_type": "Device Type", 21 "device_type": "Device Type",
21 "disk_space": "Free Space (MB)", 22 "disk_space": "Free Space (MB)",
22 "gpu": "GPU", 23 "gpu": "GPU",
23 "os": "OS", 24 "os": "OS",
24 "pool": "Pool", 25 "pool": "Pool",
25 "status": "Status", 26 "status": "Status",
26 "xcode_version": "XCode Version", 27 "xcode_version": "XCode Version",
28 "battery_health": "Battery Health",
29 "battery_level": "Battery Level (%)",
30 "battery_status": "Battery Status",
31 "battery_temperature": "Battery Temp (°C)",
32 "battery_voltage": "Battery Voltage (mV)",
33 "bot_temperature": "Bot Temp (°C)",
34 "device_temperature": "Device Temp (°C)",
27 }; 35 };
28 36
29 var columnMap = { 37 var columnMap = {
30 android_devices: function(bot) { 38 android_devices: function(bot) {
31 var devs = this._attribute(bot, "android_devices", "0"); 39 var devs = this._attribute(bot, "android_devices", "0");
32 if (this._verbose) { 40 if (this._verbose) {
33 return devs.join(" | ") + " devices available"; 41 return devs.join(" | ") + " devices available";
34 } 42 }
35 // max() works on strings as long as they can be coerced to Number. 43 // max() works on strings as long as they can be coerced to Number.
36 return Math.max(...devs) + " devices available"; 44 return Math.max(...devs) + " devices available";
37 }, 45 },
46 battery_health: function(){
47 return "";
48 },
49 battery_level: function(){
50 return "";
51 },
52 battery_status: function(){
53 return "";
54 },
55 battery_temperature: function(){
56 return "";
57 },
58 battery_voltage: function(){
59 return "";
60 },
61 bot_temperature: function(bot){
62 if (this._verbose) {
63 return bot.state.temp.zones || UNKNOWN;
64 }
65 return bot.state.temp.average || UNKNOWN;
66 },
67 device_temperature: function(){
68 return "";
69 },
38 disk_space: function(bot) { 70 disk_space: function(bot) {
39 var aliased = []; 71 var aliased = [];
40 bot.disks.forEach(function(disk){ 72 bot.disks.forEach(function(disk){
41 var alias = sk.human.bytes(disk.mb, swarming.MB); 73 var alias = sk.human.bytes(disk.mb, swarming.MB);
42 aliased.push(swarming.alias.apply(disk.mb, disk.id + " "+ alias)); 74 aliased.push(swarming.alias.apply(disk.mb, disk.id + " "+ alias));
43 }.bind(this)); 75 }.bind(this));
44 if (this._verbose) { 76 if (this._verbose) {
45 return aliased.join(" | "); 77 return aliased.join(" | ");
46 } 78 }
47 return aliased[0]; 79 return aliased[0];
48 }, 80 },
81
82 external_ip: function(bot) {
83 return bot.external_ip || "none";
84 },
85 first_seen: function(bot) {
86 return sk.human.localeTime(bot.first_seen_ts)
87 },
49 id: function(bot) { 88 id: function(bot) {
50 return bot.bot_id; 89 return bot.bot_id;
51 }, 90 },
91 last_seen: function(bot) {
92 if (this._verbose) {
93 return sk.human.localeTime(bot.last_seen_ts);
94 }
95 return this._timeDiffApprox(bot.last_seen_ts) + " ago";
96 },
52 status: function(bot) { 97 status: function(bot) {
53 // If a bot is both dead and quarantined, show the deadness over the 98 // If a bot is both dead and quarantined, show the deadness over the
54 // quarentinedness. 99 // quarentinedness.
55 if (bot.is_dead) { 100 if (bot.is_dead) {
56 return "Dead. Last seen " + sk.human.diffDate(bot.last_seen_ts) + 101 return "Dead. Last seen " + sk.human.diffDate(bot.last_seen_ts) +
57 " ago"; 102 " ago";
58 } 103 }
59 if (bot.quarantined) { 104 if (bot.quarantined) {
60 var msg = this._state(bot, "quarantined")[0]; 105 var msg = this._state(bot, "quarantined")[0];
61 // Sometimes, the quarantined message is actually in "error". This 106 // Sometimes, the quarantined message is actually in "error". This
62 // happens when the bot code has thrown an exception. 107 // happens when the bot code has thrown an exception.
63 if (msg === "unknown" || msg === "true" || msg === true) { 108 if (msg === UNKNOWN || msg === "true" || msg === true) {
64 msg = this._attribute(bot, "error"); 109 msg = this._attribute(bot, "error");
65 } 110 }
66 return "Quarantined: " + msg; 111 return "Quarantined: " + msg;
67 } 112 }
68 return "Alive"; 113 return "Alive";
69 }, 114 },
70 task: function(bot){ 115 task: function(bot) {
71 return this._taskId(bot); 116 return this._taskId(bot);
72 }, 117 },
118 version: function(bot) {
119 var v = bot.version || UNKNOWN
120 return v.substring(0, 10);
121 }
73 }; 122 };
74 123
75 var deviceColumnMap = { 124 var deviceColumnMap = {
76 android_devices: function(device) { 125 android_devices: function(device) {
77 var str = this._androidAliasDevice(device); 126 var str = this._androidAliasDevice(device);
78 if (device.okay) { 127 if (device.okay) {
79 str = swarming.alias.apply(this._deviceType(device), str); 128 str = swarming.alias.apply(this._deviceType(device), str);
80 } 129 }
81 str += " S/N:"; 130 str += " S/N:";
82 str += device.serial; 131 str += device.serial;
83 return str; 132 return str;
84 }, 133 },
134 battery_health: function(device){
135 var h = (device.battery && device.battery.health) || UNKNOWN;
136 return swarming.alias.apply(h, "battery_health");
137 },
138 battery_level: function(device){
139 return (device.battery && device.battery.level) || UNKNOWN;
140 },
141 battery_status: function(device){
142 var s = (device.battery && device.battery.status) || UNKNOWN;
143 return swarming.alias.apply(s, "battery_status");
144 },
145 battery_temperature: function(device){
146 // Battery temps are in tenths of degrees C - convert to more human rang e.
147 return (device.battery && device.battery.temperature / 10) || UNKNOWN
148 },
149 battery_voltage: function(device){
150 return (device.battery && device.battery.voltage) || UNKNOWN;
151 },
152 device_temperature: function(device){
153 if (this._verbose) {
154 return device.temp.zones || UNKNOWN;
155 }
156 return device.temp.average || UNKNOWN;
157 },
85 device_os: function(device) { 158 device_os: function(device) {
86 if (device.build) { 159 if (device.build) {
87 return device.build["build.id"]; 160 return device.build["build.id"];
88 } 161 }
89 return "unknown"; 162 return UNKNOWN;
90 }, 163 },
91 status: function(device) { 164 status: function(device) {
92 return device.state; 165 return device.state;
93 } 166 }
94 } 167 }
95 168
169
170 function deviceAverage(col) {
171 return function(dir, botA, botB) {
172 // sort by average of all devices or 0 if no devices.
173 var avgA = 0;
174 var avgB = 0;
175 var devsA = this._devices(botA);
176 devsA.forEach(function(device) {
177 var v = deviceColumnMap[col](device);
178 v = parseFloat(swarming.alias.unapply(v)) || 0;
179 avgA += v / devsA.length;
180 }.bind(this));
181 var devsB = this._devices(botB);
182 devsB.forEach(function(device) {
183 var v = deviceColumnMap[col](device);
184 v = parseFloat(swarming.alias.unapply(v)) || 0;
185 avgB += v / devsB.length;
186 }.bind(this));
187 return dir * swarming.naturalCompare(avgA, avgB);
188 };
189 }
190
96 var specialSort = { 191 var specialSort = {
97 android_devices: function(dir, botA, botB) { 192 android_devices: function(dir, botA, botB) {
98 // We sort on the number of attached devices. Note that this 193 // We sort on the number of attached devices. Note that this
99 // may not be the same as android_devices, because _devices().length 194 // may not be the same as android_devices, because _devices().length
100 // counts all devices plugged into the bot, whereas android_devices 195 // counts all devices plugged into the bot, whereas android_devices
101 // counts just devices ready for work. 196 // counts just devices ready for work.
102 var botACol = this._devices(botA).length; 197 var botACol = this._devices(botA).length;
103 var botBCol = this._devices(botB).length; 198 var botBCol = this._devices(botB).length;
104 return dir * swarming.naturalCompare(botACol, botBCol); 199 return dir * swarming.naturalCompare(botACol, botBCol);
105 }, 200 },
201
202 battery_health: deviceAverage("battery_health"),
203 battery_level: deviceAverage("battery_level"),
204 battery_status: deviceAverage("battery_status"),
205 battery_temperature: deviceAverage("battery_temperature"),
206 battery_voltage: deviceAverage("battery_voltage"),
207 device_temperature: deviceAverage("device_temperature"),
208
209 bot_temperature: function(dir, botA, botB) {
210 // Sort by average temperature.
211 var botACol = botA.state.temp.average || 0;
212 var botBCol = botB.state.temp.average || 0;
213 return dir * swarming.naturalCompare(botACol, botBCol);
214 },
106 disk_space: function(dir, botA, botB) { 215 disk_space: function(dir, botA, botB) {
107 // We sort based on the raw number of MB of the first disk. 216 // We sort based on the raw number of MB of the first disk.
108 var botACol = botA.disks[0].mb; 217 var botACol = botA.disks[0].mb;
109 var botBCol = botB.disks[0].mb;; 218 var botBCol = botB.disks[0].mb;
110 return dir * swarming.naturalCompare(botACol, botBCol); 219 return dir * swarming.naturalCompare(botACol, botBCol);
111 }, 220 },
221 first_seen: function(dir, botA, botB) {
222 var botACol = botA.first_seen_ts;
223 var botBCol = botB.first_seen_ts;
224 return dir * swarming.naturalCompare(botACol, botBCol)
225 },
226 last_seen: function(dir, botA, botB) {
227 var botACol = botA.last_seen_ts;
228 var botBCol = botB.last_seen_ts;
229 return dir * swarming.naturalCompare(botACol, botBCol)
230 }
112 }; 231 };
113 232
114 Polymer({ 233 Polymer({
115 is: 'bot-list', 234 is: 'bot-list',
116 235
117 // The order behaviors are applied in matters - later ones overwrite 236 // The order behaviors are applied in matters - later ones overwrite
118 // attributes of earlier ones 237 // attributes of earlier ones
119 behaviors: [ 238 behaviors: [
120 SwarmingBehaviors.BotListBehavior, 239 SwarmingBehaviors.BotListBehavior,
121 SwarmingBehaviors.DynamicTableBehavior, 240 SwarmingBehaviors.DynamicTableBehavior,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 }, 297 },
179 298
180 _deviceClass: function(device) { 299 _deviceClass: function(device) {
181 if (!device.okay) { 300 if (!device.okay) {
182 return "bad-device"; 301 return "bad-device";
183 } 302 }
184 return ""; 303 return "";
185 }, 304 },
186 305
187 }); 306 });
188 })(); </script> </dom-module> <dom-module id="paper-material" assetpath="/res/ imp/bower_components/paper-material/"> <template> <style include="paper-material -shared-styles"></style> <style>:host([animated]){@apply(--shadow-transition)}</ style> <content></content> </template> </dom-module> <script>Polymer({is:"paper- material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},anim ated:{type:Boolean,reflectToAttribute:!0,value:!1}}})</script> <dom-module id="p aper-button" assetpath="/res/imp/bower_components/paper-button/"> <template stri p-whitespace=""> <style include="paper-material">:host{@apply(--layout-inline);@ apply(--layout-center-center);position:relative;box-sizing:border-box;min-width: 5.14em;margin:0 .29em;background:0 0;-webkit-tap-highlight-color:transparent;-we bkit-tap-highlight-color:transparent;font:inherit;text-transform:uppercase;outli ne-width:0;border-radius:3px;-moz-user-select:none;-ms-user-select:none;-webkit- user-select:none;user-select:none;cursor:pointer;z-index:0;padding:.7em .57em;@a pply(--paper-font-common-base);@apply(--paper-button)}:host([raised].keyboard-fo cus){font-weight:700;@apply(--paper-button-raised-keyboard-focus)}:host(:not([ra ised]).keyboard-focus){font-weight:700;@apply(--paper-button-flat-keyboard-focus )}:host([disabled]){background:#eaeaea;color:#a8a8a8;cursor:auto;pointer-events: none;@apply(--paper-button-disabled)}paper-ripple{color:var(--paper-button-ink-c olor)}</style> <content></content> </template> <script>Polymer({is:"paper-button ",behaviors:[Polymer.PaperButtonBehavior],properties:{raised:{type:Boolean,refle ctToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:f unction(){this.raised?Polymer.PaperButtonBehaviorImpl._calculateElevation.apply( this):this._setElevation(0)}})</script> </dom-module> <script>Polymer.NeonAnimat ableBehavior={properties:{animationConfig:{type:Object},entryAnimation:{observer :"_entryAnimationChanged",type:String},exitAnimation:{observer:"_exitAnimationCh anged",type:String}},_entryAnimationChanged:function(){this.animationConfig=this .animationConfig||{},this.animationConfig.entry=[{name:this.entryAnimation,node: this}]},_exitAnimationChanged:function(){this.animationConfig=this.animationConf ig||{},this.animationConfig.exit=[{name:this.exitAnimation,node:this}]},_copyPro perties:function(i,n){for(var t in n)i[t]=n[t]},_cloneConfig:function(i){var n={ isClone:!0};return this._copyProperties(n,i),n},_getAnimationConfigRecursive:fun ction(i,n,t){if(this.animationConfig){if(this.animationConfig.value&&"function"= =typeof this.animationConfig.value)return void this._warn(this._logf("playAnimat ion","Please put 'animationConfig' inside of your components 'properties' object instead of outside of it."));var o;if(o=i?this.animationConfig[i]:this.animatio nConfig,Array.isArray(o)||(o=[o]),o)for(var e,a=0;e=o[a];a++)if(e.animatable)e.a nimatable._getAnimationConfigRecursive(e.type||i,n,t);else if(e.id){var r=n[e.id ];r?(r.isClone||(n[e.id]=this._cloneConfig(r),r=n[e.id]),this._copyProperties(r, e)):n[e.id]=e}else t.push(e)}},getAnimationConfig:function(i){var n={},t=[];this ._getAnimationConfigRecursive(i,n,t);for(var o in n)t.push(n[o]);return t}}</scr ipt> <script>Polymer.NeonAnimationRunnerBehaviorImpl={_configureAnimations:funct ion(n){var i=[];if(n.length>0)for(var e,t=0;e=n[t];t++){var o=document.createEle ment(e.name);if(o.isNeonAnimation){var a=null;try{a=o.configure(e),"function"!=t ypeof a.cancel&&(a=document.timeline.play(a))}catch(n){a=null,console.warn("Coul dnt play","(",e.name,").",n)}a&&i.push({neonAnimation:o,config:e,animation:a})}e lse console.warn(this.is+":",e.name,"not found!")}return i},_shouldComplete:func tion(n){for(var i=!0,e=0;e<n.length;e++)if("finished"!=n[e].animation.playState) {i=!1;break}return i},_complete:function(n){for(var i=0;i<n.length;i++)n[i].neon Animation.complete(n[i].config);for(var i=0;i<n.length;i++)n[i].animation.cancel ()},playAnimation:function(n,i){var e=this.getAnimationConfig(n);if(e){this._act ive=this._active||{},this._active[n]&&(this._complete(this._active[n]),delete th is._active[n]);var t=this._configureAnimations(e);if(0==t.length)return void thi s.fire("neon-animation-finish",i,{bubbles:!1});this._active[n]=t;for(var o=0;o<t .length;o++)t[o].animation.onfinish=function(){this._shouldComplete(t)&&(this._c omplete(t),delete this._active[n],this.fire("neon-animation-finish",i,{bubbles:! 1}))}.bind(this)}},cancelAnimation:function(){for(var n in this._animations)this ._animations[n].cancel();this._animations={}}},Polymer.NeonAnimationRunnerBehavi or=[Polymer.NeonAnimatableBehavior,Polymer.NeonAnimationRunnerBehaviorImpl]</scr ipt> <script>Polymer.PaperDialogBehaviorImpl={hostAttributes:{role:"dialog",tabi ndex:"-1"},properties:{modal:{type:Boolean,value:!1}},observers:["_modalChanged( modal, _readied)"],listeners:{tap:"_onDialogClick"},ready:function(){this.__prev NoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=t his.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop},_modalChanged:fu nction(i,e){e&&(i?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick ,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this. withBackdrop,this.noCancelOnOutsideClick=!0,this.noCancelOnEscKey=!0,this.withBa ckdrop=!0):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prev NoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevN oCancelOnEscKey,this.withBackdrop=this.withBackdrop&&this.__prevWithBackdrop))}, _updateClosingReasonConfirmed:function(i){this.closingReason=this.closingReason| |{},this.closingReason.confirmed=i},_onDialogClick:function(i){for(var e=Polymer .dom(i).path,o=0;o<e.indexOf(this);o++){var t=e[o];if(t.hasAttribute&&(t.hasAttr ibute("dialog-dismiss")||t.hasAttribute("dialog-confirm"))){this._updateClosingR easonConfirmed(t.hasAttribute("dialog-confirm")),this.close(),i.stopPropagation( );break}}}},Polymer.PaperDialogBehavior=[Polymer.IronOverlayBehavior,Polymer.Pap erDialogBehaviorImpl]</script> <dom-module id="paper-dialog-shared-styles" asset path="/res/imp/bower_components/paper-dialog-behavior/"> <template> <style>:host {display:block;margin:24px 40px;background:var(--paper-dialog-background-color,- -primary-background-color);color:var(--paper-dialog-color,--primary-text-color); @apply(--paper-font-body1);@apply(--shadow-elevation-16dp);@apply(--paper-dialog )}:host>::content>*{margin-top:20px;padding:0 24px}:host>::content>.no-padding{p adding:0}:host>::content>:first-child{margin-top:24px}:host>::content>:last-chil d{margin-bottom:24px}:host>::content h2{position:relative;margin:0;@apply(--pape r-font-title);@apply(--paper-dialog-title)}:host>::content .buttons{position:rel ative;padding:8px 8px 8px 24px;margin:0;color:var(--paper-dialog-button-color,-- primary-color);@apply(--layout-horizontal);@apply(--layout-end-justified)}</styl e> </template> </dom-module> <dom-module id="paper-dialog" assetpath="/res/imp/b ower_components/paper-dialog/"> <template> <style include="paper-dialog-shared-s tyles"></style> <content></content> </template> </dom-module> <script>!function( ){Polymer({is:"paper-dialog",behaviors:[Polymer.PaperDialogBehavior,Polymer.Neon AnimationRunnerBehavior],listeners:{"neon-animation-finish":"_onNeonAnimationFin ish"},_renderOpened:function(){this.cancelAnimation(),this.playAnimation("entry" )},_renderClosed:function(){this.cancelAnimation(),this.playAnimation("exit")},_ onNeonAnimationFinish:function(){this.opened?this._finishRenderOpened():this._fi nishRenderClosed()}})}()</script> <dom-module id="error-toast" assetpath="/res/i mp/common/"> <template> <paper-toast id="toast"></paper-toast> </template> </dom -module> <script>Polymer({is:"error-toast",ready:function(){document.addEventLis tener("error-sk",function(t){if(this.$.toast.close(),t.detail.message){this.$.to ast.text=t.detail.message;var e=1e4;void 0!==t.detail.duration&&(e=t.detail.dura tion),this.$.toast.duration=e,this.$.toast.show()}else console.log("Empty messag e?",t)}.bind(this))}})</script> <script>window.SwarmingBehaviors=window.Swarming Behaviors||{},function(){SwarmingBehaviors.TaskBehavior={properties:{BOT_DIED:{t ype:String,value:"BOT_DIED"},CANCELED:{type:String,value:"CANCELED"},COMPLETED:{ type:String,value:"COMPLETED"},COMPLETED_DEDUPED:{type:String,value:"COMPLETED ( DEDUPED)"},COMPLETED_FAILURE:{type:String,value:"COMPLETED (FAILURE)"},COMPLETED _SUCCESS:{type:String,value:"COMPLETED (SUCCESS)"},EXPIRED:{type:String,value:"E XPIRED"},PENDING:{type:String,value:"PENDING"},RUNNING:{type:String,value:"RUNNI NG"},TIMED_OUT:{type:String,value:"TIMED_OUT"}},stateClass:function(E){return E= ==this.CANCELED||E===this.TIMED_OUT||E===this.EXPIRED?"exception":E===this.BOT_D IED?"bot_died":E===this.COMPLETED_FAILURE?"failed_task":E===this.RUNNING||E===th is.PENDING?"pending_task":""}}}()</script> <dom-module id="task-style" assetpath ="/res/imp/common/"> <template> <style>.failed_task{background-color:#fdd}.bot_d ied{background-color:#ccc}.exception{background-color:#edd2ff}.pending_task{back ground-color:#fffc6c}</style> </template> </dom-module><dom-module id="task-filt ers" assetpath="/res/imp/tasklist/"> <template> <style is="custom-style" include ="iron-flex iron-flex-alignment iron-positioning query-column-filter-style">.ite m.wide{max-width:400px}.selector.wide{min-width:275px}</style> <url-param name=" filters" value="{{_filters}}" default_values="[]" multi=""> </url-param> <url-pa ram name="columns" value="{{columns}}" default_values="[&quot;name&quot;,&quot;s tate&quot;,&quot;created_ts&quot;,&quot;user&quot;]" multi=""> </url-param> <url -param name="query" value="{{_query}}" default_value=""> </url-param> <url-param name="_limit" default_value="200" value="{{_limit}}"> </url-param> <div class=" container horizontal layout"> <div class="narrow-down-selector"> <div> <paper-in put id="filter" label="Search columns and filters" placeholder="gpu nvidia" valu e="{{_query}}"> </paper-input> </div> <div class="wide selector side-by-side" ti tle="This shows all task tags and other interesting task properties. Mark the ch eck box to add as a column. Select the row to see filter options."> <iron-select or attr-for-selected="label" selected="{{_primarySelected}}"> <template is="dom- repeat" items="[[_primaryItems]]" as="item"> <div class="selectable item horizon tal layout" label="[[item]]"> <span>[[_beforeBold(item,_query)]]<span class="bol d">[[_bold(item,_query)]]</span>[[_afterBold(item,_query)]]</span> <span class=" flex"></span> <paper-checkbox noink="" disabled$="[[_cantToggleColumn(item)]]" c hecked="[[_columnState(item,columns.*)]]" on-change="_toggleColumn"> </paper-che ckbox> </div> </template> </iron-selector> </div> <div class="selector side-by-s ide" title="These are all options (if any) that the task list can be filtered on ."> <template is="dom-repeat" id="secondaryList" items="[[_secondaryItems]]" as= "item"> <div class="item horizontal layout" label="[[item]]"> <span>[[_beforeBol d(item,_query)]]<span class="bold">[[_bold(item,_query)]]</span>[[_afterBold(ite m,_query)]]</span> <span class="flex"></span> <iron-icon class="icons" icon="ico ns:arrow-forward" hidden="[[_cantAddFilter(_primarySelected,item,_filters.*)]]" on-tap="_addFilter"> </iron-icon> </div> </template> </div> <div class="selector side-by-side" title="These tag filters are AND'd together and applied to all ta sks."> <template is="dom-repeat" items="[[_filters]]" as="fil"> <div class="item horizontal layout" label="[[fil]]"> <span>[[fil]]</span> <span class="flex"></s pan> <iron-icon class="icons" icon="icons:remove-circle-outline" hidden="[[_cant RemoveFilter(fil,_filters.*)]]" on-tap="_removeFilter"> </iron-icon> </div> </te mplate> </div> <div class="side-by-side"> <paper-input id="_limit" label="Limit Results" auto-validate="" min="0" max="1000" pattern="[0-9]+" value="{{_limit}}" > </paper-input> </div> </div> </div> </template> <script>!function(){var t={sta te:function(t,i){var r=this._attribute(t,"state")[0];if(i===r||"ALL"===i)return! 0;if("PENDING_RUNNING"===i)return r===this.PENDING||r===this.RUNNING;var e=this. _attribute(t,"failure",!1)[0];if("COMPLETED_SUCCESS"===i)return r===this.COMPLET ED&&!e;if("COMPLETED_FAILURE"===i)return r===this.COMPLETED&&e;var a=this._attri bute(t,"try_number","-1")[0];return"DEDUPED"===i?r===this.COMPLETED&&"0"===a:voi d 0}};Polymer({is:"task-filters",behaviors:[SwarmingBehaviors.QueryColumnFilter, SwarmingBehaviors.TaskBehavior],properties:{columns:{type:Array,notify:!0},query _params:{type:Object,computed:"_extractQueryParams(_filters.*, _limit)",notify:! 0},_filterMap:{type:Object,value:function(){var i=this._commonFilters();for(var r in t)i[r]=t[r];return i}}},_cantToggleColumn:function(t){return!t||"name"===t} ,_extractQueryParams:function(){var t={},i=[];this._filters.forEach(function(r){ var e=r.split(this.FILTER_SEP,1),a=e[0],s=r.substring(a.length+this.FILTER_SEP.l ength);"state"===a?t.state=[s]:i.push(a+this.FILTER_SEP+swarming.alias.unapply(s ))}.bind(this)),t.tags=i;var r=parseInt(this._limit);return Number.isInteger(r)& &(r=Math.max(r,1),r=Math.min(1e3,r),t._limit=[r],this._limit!=r&&this.set("_limi t",r)),t}})}()</script> </dom-module><dom-module id="task-list-data" assetpath=" /res/imp/tasklist/"> <script>!function(){var t=["abandoned_ts","completed_ts","c reated_ts","modified_ts","started_ts"];Polymer({is:"task-list-data",behaviors:[S warmingBehaviors.CommonBehavior,SwarmingBehaviors.TaskBehavior],properties:{auth _headers:{type:Object,observer:"signIn"},query_params:{type:Object,observer:"_re quest"},busy:{type:Boolean,computed:"_or(_busy1,_busy2,_busy3)",notify:!0},prima ry_map:{type:Object,computed:"_primaryMap(_tags,_dimensions,tasks)",notify:!0},p rimary_arr:{type:Array,computed:"_primaryArr(primary_map)",notify:!0},tasks:{typ e:Array,computed:"_tasks(_list)",notify:!0},_busy1:{type:Boolean,value:!1},_busy 2:{type:Boolean,value:!1},_busy3:{type:Boolean,value:!1},_dimensions:{type:Objec t},_list:{type:Object},_tags:{type:Object}},signIn:function(){this._getJsonAsync ("_tags","/_ah/api/swarming/v1/tasks/tags","_busy2",this.auth_headers),this._get JsonAsync("_dimensions","/_ah/api/swarming/v1/bots/dimensions","_busy3",this.aut h_headers),this._request()},_primaryArr:function(t){var s=Object.keys(t);return s.sort(),s},_primaryMap:function(s,a,e){s=s&&s.tasks_tags||[],a=a&&a.bots_dimens ions||[],e=e||[];var i={};s.forEach(function(t){i[t.key]||(i[t.key]={});var s=t. value||[];s.forEach(function(s){i[t.key][s]=!0})}),a.forEach(function(t){var s=t .value;i[t.key]||(i[t.key]={}),s.forEach(function(s){i[t.key][s]=!0})}),e.forEac h(function(t){Object.keys(t.tagMap).forEach(function(s){var a=t.tagMap[s];i[s]|| (i[s]={}),i[s][a]=!0})});var r={};for(key in i){var n=Object.keys(i[key]);if(swa rming.alias.DIMENSIONS_WITH_ALIASES.indexOf(key)===-1)r[key]=n;else{var o=[];n.f orEach(function(t){o.push(swarming.alias.apply(t,key))}),r[key]=o}}return r.andr oid_devices.push("0"),r.device_os.push("none"),r.device_type.push("none"),r.user .push("none"),r.name=[],r.state=[this.PENDING,this.RUNNING,"PENDING_RUNNING",thi s.COMPLETED,"COMPLETED_SUCCESS","COMPLETED_FAILURE",this.EXPIRED,this.TIMED_OUT, this.BOT_DIED,this.CANCELED,"DEDUPED","ALL"],r.costs_usd=[],r.deduped_from=[],r. duration=[],r.server_versions=[],t.forEach(function(t){r[t]=[]}),r},_request:fun ction(){this.auth_headers&&this.query_params&&this._getJsonAsync("_list","/_ah/a pi/swarming/v1/tasks/list","_busy1",this.auth_headers,this.query_params)},_tasks :function(){if(!this._list||!this._list.items)return[];var s=new Date;return thi s._list.items.forEach(function(a){var e={};a.tags=a.tags||[],a.tags.forEach(func tion(t){var s=t.split(":",1),a=s[0],i=t.substring(a.length+1);e[a]=i}),a.tagMap= e,t.forEach(function(t){a[t]&&(a[t]=new Date(a[t]),a["human_"+t]=sk.human.locale Time(a[t]))}),!a.duration&&a.state===this.RUNNING&&a.started_ts&&(a.duration=(s- a.started_ts)/1e3),a.duration&&(a.human_duration=this._humanDuration(a.duration) )}.bind(this)),this._list.items}})}()</script> </dom-module> <dom-module id="tas k-list" assetpath="/res/imp/tasklist/"> <template> <style include="iron-flex iro n-flex-alignment iron-positioning swarming-app-style dynamic-table-style task-st yle">task-filters{margin-bottom:8px;margin-right:10px}.task-list th>span{padding -right:30px}</style> <url-param name="sort" value="{{_sortstr}}" default_value=" created_ts:desc"> </url-param> <swarming-app client_id="[[client_id]]" auth_head ers="{{_auth_headers}}" permissions="{{_permissions}}" signed_in="{{_signed_in}} " busy="[[_busy]]" name="Swarming Task List"> <h2 hidden$="[[_signed_in]]">You m ust sign in to see anything useful.</h2> <div hidden$="[[_not(_signed_in)]]"> <t ask-list-data auth_headers="[[_auth_headers]]" query_params="[[_query_params]]" tasks="{{_items}}" busy="{{_busy}}" primary_map="{{_primary_map}}" primary_arr=" {{_primary_arr}}"> </task-list-data> <div class="horizontal layout"> <task-filte rs primary_map="[[_primary_map]]" primary_arr="[[_primary_arr]]" columns="{{_col umns}}" query_params="{{_query_params}}" filter="{{_filter}}"> </task-filters> < /div> <table class="task-list"> <thead on-sort_change="_sortChange"> <tr> <th> < span>Task Name</span> <sort-toggle name="name" current="[[_sort]]"> </sort-toggl e> </th> <th hidden$="[[_hide('state', _columns.*)]]"> <span>State</span> <sort- toggle name="state" current="[[_sort]]"> </sort-toggle> </th> <th hidden$="[[_hi de('deduped_from', _columns.*)]]"> <span>Deduped from</span> <sort-toggle name=" deduped_from" current="[[_sort]]"> </sort-toggle> </th> <template is="dom-repeat " items="[[_plainColumns]]" as="c"> <th hidden$="[[_hide(c)]]"> <span>[[_header( c)]]</span> <sort-toggle name="[[c]]" current="[[_sort]]"> </sort-toggle> </th> </template> </tr> </thead> <tbody> <template id="tasks_table" is="dom-repeat" it ems="[[_filteredSortedItems]]" as="task" initial-count="50"> <tr class$="[[_task Class(task)]]"> <td> <a class="center" href$="[[_taskLink(task.task_id)]]" targe t="_blank"> [[task.name]] </a> </td> <td hidden$="[[_hide('state', _columns.*)]] "> [[_column('state', task)]] <paper-button raised="" hidden$="[[_cannotCancel(t ask,_permissions)]]" on-tap="_promptCancel"> Cancel </paper-button> </td> <td hi dden$="[[_hide('deduped_from', _columns.*)]]"> <a class="center" href$="[[_taskL ink(task.deduped_from)]]" target="_blank"> [[_column('deduped_from',task)]] </a> </td> <template is="dom-repeat" items="[[_plainColumns]]" as="c"> <td hidden$=" [[_hide(c)]]"> [[_column(c, task)]] </td> </template> </tr> </template> </tbody> </table> </div> </swarming-app> <paper-dialog id="prompt" modal="" on-iron-over lay-closed="_promptClosed"> <h2>Are you sure?</h2> <div>Are you sure you want to [[_dialogPrompt]]?</div> <div class="buttons"> <paper-button dialog-dismiss="" autofocus="">No</paper-button> <paper-button dialog-confirm="">Yes</paper-button > </div> </paper-dialog> <error-toast></error-toast> </template> <script>!functi on(){function t(t){return function(e){return this._attribute(e,"human_"+t)[0]}}f unction e(t){return function(e,a,n){var s=this._attribute(a,t,"0")[0],i=this._at tribute(n,t,"0")[0];return e*(s-i)}}var a=["deduped_from","name","state"],n={aba ndoned_ts:t("abandoned_ts"),completed_ts:t("completed_ts"),costs_usd:function(t) {return this._attribute(t,"costs_usd",0)[0]},created_ts:t("created_ts"),duration :t("duration"),modified_ts:t("modified_ts"),started_ts:t("started_ts"),state:fun ction(t){var e=this._attribute(t,"state")[0];if("COMPLETED"===e){if(this._attrib ute(t,"failure",!1)[0])return"COMPLETED (FAILURE)";var a=this._attribute(t,"try_ number","-1")[0];return"0"===a?"COMPLETED (DEDUPED)":"COMPLETED (SUCCESS)"}retur n e}},s={user:"Requesting User"},i={abandoned_ts:e("abandoned_ts"),completed_ts: e("completed_ts"),created_ts:e("created_ts"),duration:e("duration"),modified_ts: e("modified_ts"),started_ts:e("started_ts")};Polymer({is:"task-list",behaviors:[ SwarmingBehaviors.DynamicTableBehavior,SwarmingBehaviors.TaskBehavior],propertie s:{client_id:{type:String},_toCancel:{type:String},_columnMap:{type:Object,value :function(){var t=this._commonColumns();for(var e in n)t[e]=n[e];return t}},_hea derMap:{type:Object,value:s},_specialColumns:{type:Array,value:a},_specialSort:{ type:Object,value:i}},_attribute:function(t,e,a){void 0===a&&(a="none");var n=th is._tag(t,e)||t[e]||[a];return Array.isArray(n)?n:[n]},_cannotCancel:function(t, e){return!(e&&e.cancel_task&&"PENDING"===this._column("state",t))},_cancelTask:f unction(){var t="/_ah/api/swarming/v1/task/"+this._toCancel+"/cancel";swarming.p ostWithToast(t,"Canceling task "+this._toCancel,this._auth_headers),this.set("_t oCancel","")},_promptClosed:function(t){t.detail.confirmed&&this._cancelTask()}, _promptCancel:function(t){var e=t.model.task;return e&&e.task_id?(this.set("_toC ancel",e.task_id),this.set("_dialogPrompt",'cancel task "'+e.name+'"'),void this .$.prompt.open()):void console.log("Missing task info",e)},_tag:function(t,e){if (t&&t.tagMap)return t.tagMap[e]},_taskClass:function(t){return this.stateClass(t his._column("state",t))}})}()</script> </dom-module> <dom-module id="iron-collap se" assetpath="/res/imp/bower_components/iron-collapse/"> <template> <style>:hos t{display:block;transition-duration:var(--iron-collapse-transition-duration,300m s);overflow:visible}:host(.iron-collapse-closed){display:none}:host(:not(.iron-c ollapse-opened)){overflow:hidden}</style> <content></content> </template> </dom- module> <script>Polymer({is:"iron-collapse",behaviors:[Polymer.IronResizableBeha vior],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged "},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},noAnimatio n:{type:Boolean}},get dimension(){return this.horizontal?"width":"height"},get _ dimensionMax(){return this.horizontal?"maxWidth":"maxHeight"},get _dimensionMaxC ss(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"grou p","aria-hidden":"true","aria-expanded":"false"},listeners:{transitionend:"_tran sitionEnd"},attached:function(){this._transitionEnd()},toggle:function(){this.op ened=!this.opened},show:function(){this.opened=!0},hide:function(){this.opened=! 1},updateSize:function(t,i){var e=this.style[this._dimensionMax];if(e!==t&&("aut o"!==t||e)){if(this._updateTransition(!1),i&&!this.noAnimation&&this._isDisplaye d){var n=this._calcSize();"auto"===t&&(this.style[this._dimensionMax]="",t=this. _calcSize()),this.style[this._dimensionMax]=n,this.scrollTop=this.scrollTop,this ._updateTransition(!0)}"auto"===t?this.style[this._dimensionMax]="":this.style[t his._dimensionMax]=t}},enableTransition:function(t){Polymer.Base._warn("`enableT ransition()` is deprecated, use `noAnimation` instead."),this.noAnimation=!t},_u pdateTransition:function(t){this.style.transitionDuration=t&&!this.noAnimation?" ":"0s"},_horizontalChanged:function(){this.style.transitionProperty=this._dimens ionMaxCss;var t="maxWidth"===this._dimensionMax?"maxHeight":"maxWidth";this.styl e[t]="",this.updateSize(this.opened?"auto":"0px",!1)},_openedChanged:function(){ this.setAttribute("aria-expanded",this.opened),this.setAttribute("aria-hidden",! this.opened),this.toggleClass("iron-collapse-closed",!1),this.toggleClass("iron- collapse-opened",!1),this.updateSize(this.opened?"auto":"0px",!0),this.opened&&t his.focus(),this.noAnimation&&this._transitionEnd()},_transitionEnd:function(){t his.opened&&(this.style[this._dimensionMax]=""),this.toggleClass("iron-collapse- closed",!this.opened),this.toggleClass("iron-collapse-opened",this.opened),this. _updateTransition(!1),this.notifyResize()},get _isDisplayed(){var t=this.getBoun dingClientRect();for(var i in t)if(0!==t[i])return!0;return!1},_calcSize:functio n(){return this.getBoundingClientRect()[this.dimension]+"px"}})</script> <script >Polymer.IronMenuBehaviorImpl={properties:{focusedItem:{observer:"_focusedItemCh anged",readOnly:!0,type:Object},attrForItemTitle:{type:String}},hostAttributes:{ role:"menu",tabindex:"0"},observers:["_updateMultiselectable(multi)"],listeners: {focus:"_onFocus",keydown:"_onKeydown","iron-items-changed":"_onIronItemsChanged "},keyBindings:{up:"_onUpKey",down:"_onDownKey",esc:"_onEscKey","shift+tab:keydo wn":"_onShiftTabDown"},attached:function(){this._resetTabindices()},select:funct ion(e){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this. _defaultFocusAsync=null);var t=this._valueToItem(e);t&&t.hasAttribute("disabled" )||(this._setFocusedItem(t),Polymer.IronMultiSelectableBehaviorImpl.select.apply (this,arguments))},_resetTabindices:function(){var e=this.multi?this.selectedIte ms&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(t){t.set Attribute("tabindex",t===e?"0":"-1")},this)},_updateMultiselectable:function(e){ e?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-mu ltiselectable")},_focusWithKeyboardEvent:function(e){for(var t,s=0;t=this.items[ s];s++){var i=this.attrForItemTitle||"textContent",o=t[i]||t.getAttribute(i);if( !t.hasAttribute("disabled")&&o&&o.trim().charAt(0).toLowerCase()===String.fromCh arCode(e.keyCode).toLowerCase()){this._setFocusedItem(t);break}}},_focusPrevious :function(){for(var e=this.items.length,t=Number(this.indexOf(this.focusedItem)) ,s=1;s<e+1;s++){var i=this.items[(t-s+e)%e];if(!i.hasAttribute("disabled"))retur n void this._setFocusedItem(i)}},_focusNext:function(){for(var e=this.items.leng th,t=Number(this.indexOf(this.focusedItem)),s=1;s<e+1;s++){var i=this.items[(t+s )%e];if(!i.hasAttribute("disabled"))return void this._setFocusedItem(i)}},_apply Selection:function(e,t){t?e.setAttribute("aria-selected","true"):e.removeAttribu te("aria-selected"),Polymer.IronSelectableBehavior._applySelection.apply(this,ar guments)},_focusedItemChanged:function(e,t){t&&t.setAttribute("tabindex","-1"),e &&(e.setAttribute("tabindex","0"),e.focus())},_onIronItemsChanged:function(e){e. detail.addedNodes.length&&this._resetTabindices()},_onShiftTabDown:function(e){v ar t=this.getAttribute("tabindex");Polymer.IronMenuBehaviorImpl._shiftTabPressed =!0,this._setFocusedItem(null),this.setAttribute("tabindex","-1"),this.async(fun ction(){this.setAttribute("tabindex",t),Polymer.IronMenuBehaviorImpl._shiftTabPr essed=!1},1)},_onFocus:function(e){if(!Polymer.IronMenuBehaviorImpl._shiftTabPre ssed){var t=Polymer.dom(e).rootTarget;(t===this||"undefined"==typeof t.tabIndex| |this.isLightDescendant(t))&&(this._defaultFocusAsync=this.async(function(){var e=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._s etFocusedItem(null),e?this._setFocusedItem(e):this.items[0]&&this._focusNext()}) )}},_onUpKey:function(e){this._focusPrevious(),e.detail.keyboardEvent.preventDef ault()},_onDownKey:function(e){this._focusNext(),e.detail.keyboardEvent.preventD efault()},_onEscKey:function(e){this.focusedItem.blur()},_onKeydown:function(e){ this.keyboardEventMatchesKeys(e,"up down esc")||this._focusWithKeyboardEvent(e), e.stopPropagation()},_activateHandler:function(e){Polymer.IronSelectableBehavior ._activateHandler.call(this,e),e.stopPropagation()}},Polymer.IronMenuBehaviorImp l._shiftTabPressed=!1,Polymer.IronMenuBehavior=[Polymer.IronMultiSelectableBehav ior,Polymer.IronA11yKeysBehavior,Polymer.IronMenuBehaviorImpl]</script> <script> Polymer.IronMenubarBehaviorImpl={hostAttributes:{role:"menubar"},keyBindings:{le ft:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(e){this.focusedItem.click (),e.detail.keyboardEvent.preventDefault()},_onDownKey:function(e){this.focusedI tem.click(),e.detail.keyboardEvent.preventDefault()},get _isRTL(){return"rtl"=== window.getComputedStyle(this).direction},_onLeftKey:function(e){this._isRTL?this ._focusNext():this._focusPrevious(),e.detail.keyboardEvent.preventDefault()},_on RightKey:function(e){this._isRTL?this._focusPrevious():this._focusNext(),e.detai l.keyboardEvent.preventDefault()},_onKeydown:function(e){this.keyboardEventMatch esKeys(e,"up down left right esc")||this._focusWithKeyboardEvent(e)}},Polymer.Ir onMenubarBehavior=[Polymer.IronMenuBehavior,Polymer.IronMenubarBehaviorImpl]</sc ript> <iron-iconset-svg name="paper-tabs" size="24"> <svg><defs> <g id="chevron- left"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"></path></g> <g id= "chevron-right"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"></path> </g> </defs></svg> </iron-iconset-svg> <dom-module id="paper-tab" assetpath="/re s/imp/bower_components/paper-tabs/"> <template> <style>:host{@apply(--layout-inl ine);@apply(--layout-center);@apply(--layout-center-justified);@apply(--layout-f lex-auto);position:relative;padding:0 12px;overflow:hidden;cursor:pointer;vertic al-align:middle;@apply(--paper-font-common-base);@apply(--paper-tab)}:host(:focu s){outline:0}:host([link]){padding:0}.tab-content{height:100%;transform:translat eZ(0);-webkit-transform:translateZ(0);transition:opacity .1s cubic-bezier(.4,0,1 ,1);@apply(--layout-horizontal);@apply(--layout-center-center);@apply(--layout-f lex-auto);@apply(--paper-tab-content)}:host(:not(.iron-selected))>.tab-content{o pacity:.8;@apply(--paper-tab-content-unselected)}:host(:focus) .tab-content{opac ity:1;font-weight:700}paper-ripple{color:var(--paper-tab-ink,--paper-yellow-a100 )}.tab-content>::content>a{@apply(--layout-flex-auto);height:100%}</style> <div class="tab-content"> <content></content> </div> </template> <script>Polymer({is: "paper-tab",behaviors:[Polymer.IronControlState,Polymer.IronButtonState,Polymer. PaperRippleBehavior],properties:{link:{type:Boolean,value:!1,reflectToAttribute: !0}},hostAttributes:{role:"tab"},listeners:{down:"_updateNoink",tap:"_onTap"},at tached:function(){this._updateNoink()},get _parentNoink(){var t=Polymer.dom(this ).parentNode;return!!t&&!!t.noink},_updateNoink:function(){this.noink=!!this.noi nk||!!this._parentNoink},_onTap:function(t){if(this.link){var e=this.queryEffect iveChildren("a");if(!e)return;if(t.target===e)return;e.click()}}})</script> </do m-module> <dom-module id="paper-tabs" assetpath="/res/imp/bower_components/paper -tabs/"> <template> <style>:host{@apply(--layout);@apply(--layout-center);height :48px;font-size:14px;font-weight:500;overflow:hidden;-moz-user-select:none;-ms-u ser-select:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight- color:transparent;-webkit-tap-highlight-color:transparent;@apply(--paper-tabs)}: host-context([dir=rtl]){@apply(--layout-horizontal-reverse)}#tabsContainer{posit ion:relative;height:100%;white-space:nowrap;overflow:hidden;@apply(--layout-flex -auto)}#tabsContent{height:100%;-moz-flex-basis:auto;-ms-flex-basis:auto;flex-ba sis:auto}#tabsContent.scrollable{position:absolute;white-space:nowrap}#tabsConte nt.scrollable.fit-container,#tabsContent:not(.scrollable){@apply(--layout-horizo ntal)}#tabsContent.scrollable.fit-container{min-width:100%}#tabsContent.scrollab le.fit-container>::content>*{-ms-flex:1 0 auto;-webkit-flex:1 0 auto;flex:1 0 au to}.hidden{display:none}.not-visible{opacity:0;cursor:default}paper-icon-button{ width:48px;height:48px;padding:12px;margin:0 4px}#selectionBar{position:absolute ;height:2px;bottom:0;left:0;right:0;background-color:var(--paper-tabs-selection- bar-color,--paper-yellow-a100);-webkit-transform:scale(0);transform:scale(0);-we bkit-transform-origin:left center;transform-origin:left center;transition:-webki t-transform;transition:transform;@apply(--paper-tabs-selection-bar)}#selectionBa r.align-bottom{top:0;bottom:auto}#selectionBar.expand{transition-duration:.15s;t ransition-timing-function:cubic-bezier(.4,0,1,1)}#selectionBar.contract{transiti on-duration:.18s;transition-timing-function:cubic-bezier(0,0,.2,1)}#tabsContent> ::content>:not(#selectionBar){height:100%}</style> <paper-icon-button icon="pape r-tabs:chevron-left" class$="[[_computeScrollButtonClass(_leftHidden, scrollable , hideScrollButtons)]]" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDo wn" tabindex="-1"></paper-icon-button> <div id="tabsContainer" on-track="_scroll " on-down="_down"> <div id="tabsContent" class$="[[_computeTabsContentClass(scro llable, fitContainer)]]"> <div id="selectionBar" class$="[[_computeSelectionBarC lass(noBar, alignBottom)]]" on-transitionend="_onBarTransitionEnd"></div> <conte nt select="*"></content> </div> </div> <paper-icon-button icon="paper-tabs:chevr on-right" class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScro llButtons)]]" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown" tabin dex="-1"></paper-icon-button> </template> <script>Polymer({is:"paper-tabs",behav iors:[Polymer.IronResizableBehavior,Polymer.IronMenubarBehavior],properties:{noi nk:{type:Boolean,value:!1,observer:"_noinkChanged"},noBar:{type:Boolean,value:!1 },noSlide:{type:Boolean,value:!1},scrollable:{type:Boolean,value:!1},fitContaine r:{type:Boolean,value:!1},disableDrag:{type:Boolean,value:!1},hideScrollButtons: {type:Boolean,value:!1},alignBottom:{type:Boolean,value:!1},selectable:{type:Str ing,value:"paper-tab"},autoselect:{type:Boolean,value:!1},autoselectDelay:{type: Number,value:0},_step:{type:Number,value:10},_holdDelay:{type:Number,value:1},_l eftHidden:{type:Boolean,value:!1},_rightHidden:{type:Boolean,value:!1},_previous Tab:{type:Object}},hostAttributes:{role:"tablist"},listeners:{"iron-resize":"_on TabSizingChanged","iron-items-changed":"_onTabSizingChanged","iron-select":"_onI ronSelect","iron-deselect":"_onIronDeselect"},keyBindings:{"left:keyup right:key up":"_onArrowKeyup"},created:function(){this._holdJob=null,this._pendingActivati onItem=void 0,this._pendingActivationTimeout=void 0,this._bindDelayedActivationH andler=this._delayedActivationHandler.bind(this),this.addEventListener("blur",th is._onBlurCapture.bind(this),!0)},ready:function(){this.setScrollDirection("y",t his.$.tabsContainer)},detached:function(){this._cancelPendingActivation()},_noin kChanged:function(t){var e=Polymer.dom(this).querySelectorAll("paper-tab");e.for Each(t?this._setNoinkAttribute:this._removeNoinkAttribute)},_setNoinkAttribute:f unction(t){t.setAttribute("noink","")},_removeNoinkAttribute:function(t){t.remov eAttribute("noink")},_computeScrollButtonClass:function(t,e,i){return!e||i?"hidd en":t?"not-visible":""},_computeTabsContentClass:function(t,e){return t?"scrolla ble"+(e?" fit-container":""):" fit-container"},_computeSelectionBarClass:functio n(t,e){return t?"hidden":e?"align-bottom":""},_onTabSizingChanged:function(){thi s.debounce("_onTabSizingChanged",function(){this._scroll(),this._tabChanged(this .selectedItem)},10)},_onIronSelect:function(t){this._tabChanged(t.detail.item,th is._previousTab),this._previousTab=t.detail.item,this.cancelDebouncer("tab-chang ed")},_onIronDeselect:function(t){this.debounce("tab-changed",function(){this._t abChanged(null,this._previousTab),this._previousTab=null},1)},_activateHandler:f unction(){this._cancelPendingActivation(),Polymer.IronMenuBehaviorImpl._activate Handler.apply(this,arguments)},_scheduleActivation:function(t,e){this._pendingAc tivationItem=t,this._pendingActivationTimeout=this.async(this._bindDelayedActiva tionHandler,e)},_delayedActivationHandler:function(){var t=this._pendingActivati onItem;this._pendingActivationItem=void 0,this._pendingActivationTimeout=void 0, t.fire(this.activateEvent,null,{bubbles:!0,cancelable:!0})},_cancelPendingActiva tion:function(){void 0!==this._pendingActivationTimeout&&(this.cancelAsync(this. _pendingActivationTimeout),this._pendingActivationItem=void 0,this._pendingActiv ationTimeout=void 0)},_onArrowKeyup:function(t){this.autoselect&&this._scheduleA ctivation(this.focusedItem,this.autoselectDelay)},_onBlurCapture:function(t){t.t arget===this._pendingActivationItem&&this._cancelPendingActivation()},get _tabCo ntainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.ta bsContainer.offsetWidth)},_scroll:function(t,e){if(this.scrollable){var i=e&&-e. ddx||0;this._affectScroll(i)}},_down:function(t){this.async(function(){this._def aultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsy nc=null)},1)},_affectScroll:function(t){this.$.tabsContainer.scrollLeft+=t;var e =this.$.tabsContainer.scrollLeft;this._leftHidden=0===e,this._rightHidden=e===th is._tabContainerScrollSize},_onLeftScrollButtonDown:function(){this._scrollToLef t(),this._holdJob=setInterval(this._scrollToLeft.bind(this),this._holdDelay)},_o nRightScrollButtonDown:function(){this._scrollToRight(),this._holdJob=setInterva l(this._scrollToRight.bind(this),this._holdDelay)},_onScrollButtonUp:function(){ clearInterval(this._holdJob),this._holdJob=null},_scrollToLeft:function(){this._ affectScroll(-this._step)},_scrollToRight:function(){this._affectScroll(this._st ep)},_tabChanged:function(t,e){if(!t)return this.$.selectionBar.classList.remove ("expand"),this.$.selectionBar.classList.remove("contract"),void this._positionB ar(0,0);var i=this.$.tabsContent.getBoundingClientRect(),n=i.width,o=t.getBoundi ngClientRect(),s=o.left-i.left;if(this._pos={width:this._calcPercent(o.width,n), left:this._calcPercent(s,n)},this.noSlide||null==e)return this.$.selectionBar.cl assList.remove("expand"),this.$.selectionBar.classList.remove("contract"),void t his._positionBar(this._pos.width,this._pos.left);var a=e.getBoundingClientRect() ,l=this.items.indexOf(e),c=this.items.indexOf(t),r=5;this.$.selectionBar.classLi st.add("expand");var h=l<c,d=this._isRTL;d&&(h=!h),h?this._positionBar(this._cal cPercent(o.left+o.width-a.left,n)-r,this._left):this._positionBar(this._calcPerc ent(a.left+a.width-o.left,n)-r,this._calcPercent(s,n)+r),this.scrollable&&this._ scrollToSelectedIfNeeded(o.width,s)},_scrollToSelectedIfNeeded:function(t,e){var i=e-this.$.tabsContainer.scrollLeft;i<0?this.$.tabsContainer.scrollLeft+=i:(i+= t-this.$.tabsContainer.offsetWidth,i>0&&(this.$.tabsContainer.scrollLeft+=i))},_ calcPercent:function(t,e){return 100*t/e},_positionBar:function(t,e){t=t||0,e=e| |0,this._width=t,this._left=e,this.transform("translateX("+e+"%) scaleX("+t/100+ ")",this.$.selectionBar)},_onBarTransitionEnd:function(t){var e=this.$.selection Bar.classList;e.contains("expand")?(e.remove("expand"),e.add("contract"),this._p ositionBar(this._pos.width,this._pos.left)):e.contains("contract")&&e.remove("co ntract")}})</script> </dom-module> <dom-module id="single-page-style" assetpath= "/res/imp/common/"> <template> <style>.header{max-width:450px}.title{font-size:1 .5em;font-weight:700;margin:5px}.id_input{margin-left:5px;--paper-input-containe r-input:{font-size:2em};}.refresh{max-width:40px;max-height:40px;width:initial;h eight:initial}button{min-width:4em;max-height:55px}table{border-collapse:collaps e;margin-left:5px;margin-bottom:8px}td,th{border:1px solid #BBB;padding:5px}.tab s{background-color:#1F78B4;color:#fff;max-width:600px;margin-left:5px;--paper-ch eckbox-label-color:#fff}paper-tab{background-color:#A6CEE3;color:#000}paper-tab. iron-selected{background-color:#1F78B4;color:#fff;font-weight:700;text-decoratio n:underline}paper-tab[disabled]{background-color:#AAA;text-decoration:line-throu gh},.quarantined{background-color:#fdd}.dead{background-color:#ccc}</style> </te mplate> </dom-module><script>!function(){SwarmingBehaviors.BotPageBehavior=[Swar mingBehaviors.CommonBehavior,{}]}()</script> <dom-module id="bot-page-data" asse tpath="/res/imp/botpage/"> <script>!function(){function t(t){if(!s){var e=t.toSt ring();s=e.substring(e.indexOf("("))}return t.toLocaleString()+" "+s}var e,s,a=4 00,n=["first_seen_ts","last_seen_ts"],i=["started_ts","completed_ts","abandoned_ ts","modified_ts"];Polymer({is:"bot-page-data",behaviors:[SwarmingBehaviors.BotP ageBehavior],properties:{auth_headers:{type:Object},bot_id:{type:String},busy:{t ype:Boolean,computed:"_or(_busy1,_busy2,_busy3)",notify:!0},bot:{type:Object,com puted:"_parseBot(_bot)",notify:!0},events:{type:Array,computed:"_parseEvents(_ev ents)",notify:!0},tasks:{type:Array,computed:"_parseTasks(_tasks)",notify:!0},_b usy1:{type:Boolean,value:!1},_busy2:{type:Boolean,value:!1},_busy3:{type:Boolean ,value:!1},_bot:{type:Object},_events:{type:Object},_tasks:{type:Object}},observ ers:["request(auth_headers,bot_id)"],request:function(){this.bot_id&&this.auth_h eaders&&(e&&this.cancelAsync(e),e=this.async(function(){e=void 0;var t="/_ah/api /swarming/v1/bot/"+this.bot_id;this._getJsonAsync("_bot",t+"/get","_busy1",this. auth_headers),this._getJsonAsync("_events",t+"/events?fields=items(event_type%2C message%2Cquarantined%2Ctask_id%2Cts%2Cversion)","_busy2",this.auth_headers),thi s._getJsonAsync("_tasks",t+"/tasks?fields=items(abandoned_ts%2Cbot_version%2Ccom pleted_ts%2Cduration%2Cexit_code%2Cfailure%2Cinternal_failure%2Cmodified_ts%2Cna me%2Cstarted_ts%2Cstate%2Ctask_id%2Ctry_number)","_busy3",this.auth_headers)},a) )},_parseBot:function(e){if(!e)return{};e.state=e.state||"{}",e.state=JSON.parse (e.state);var s=e.state.disks||{},a=Object.keys(s);if(a.length){e.disks=[];for(v ar i=0;i<a.length;i++)e.disks.push({id:a[i],mb:s[a[i]].free_mb});e.disks.sort(fu nction(t,e){return e.mb-t.mb})}else e.disks=[{id:"unknown",mb:0}];return e.dimen sions=e.dimensions||[],e.dimensions.forEach(function(t){swarming.alias.DIMENSION S_WITH_ALIASES.indexOf(t.key)!==-1&&t.value.forEach(function(e,s){t.value[s]=swa rming.alias.apply(e,t.key)})}),n.forEach(function(s){e[s]&&(e[s]=new Date(e[s]), e["human_"+s]=t(e[s]))}),e},_parseEvents:function(e){if(!e||!e.items)return[];va r e=e.items;return e.forEach(function(e){e.ts&&(e.ts=new Date(e.ts),e.human_ts=t (e.ts))}),e.sort(function(t,e){return e.ts-t.ts}),e},_parseTasks:function(e){if( !e||!e.items)return[];var e=e.items;return e.forEach(function(e){if(i.forEach(fu nction(s){e[s]&&(e[s]=new Date(e[s]),e["human_"+s]=t(e[s]))}),e.duration)e.human _duration=this._humanDuration(e.duration);else{var s=e.completed_ts||e.abandoned _ts||e.modified_ts||new Date;e.human_duration=this._timeDiffExact(e.started_ts,s )}e.state=e.state||"UNKNOWN","COMPLETED"===e.state&&(e.failure?e.state="FAILURE" :e.state="SUCCESS")}.bind(this)),e.sort(function(t,e){return e.started_ts-t.star ted_ts}),e}})}()</script> </dom-module> <dom-module id="bot-page" assetpath="/re s/imp/botpage/"> <template> <style include="iron-flex iron-flex-alignment iron-p ositioning swarming-app-style single-page-style task-style">.message{white-space :pre-line;font-family:monospace}.bot_state{white-space:pre;font-family:monospace ;margin-bottom:10px}.events_table,.tasks_table{border:3px solid #1F78B4}paper-ch eckbox{--paper-checkbox-label-color:#fff;--paper-checkbox-checked-color:#fff;--p aper-checkbox-checkmark-color:#000;--paper-checkbox-unchecked-color:#fff;padding :3px}paper-dialog{border-radius:6px}</style> <url-param name="id" value="{{bot_i d}}"> </url-param> <url-param name="show_all_events" value="{{_show_all}}"> </ur l-param> <url-param name="selected" value="{{_selected}}"> </url-param> <url-par am name="show_state" value="{{_show_state}}"> </url-param> <swarming-app client_ id="[[client_id]]" auth_headers="{{_auth_headers}}" permissions="{{_permissions} }" signed_in="{{_signed_in}}" busy="[[_busy]]" name="Swarming Bot Page"> <h2 hid den$="[[_signed_in]]">You must sign in to see anything useful.</h2> <div hidden$ ="[[_not(_signed_in)]]"> <bot-page-data id="data" auth_headers="[[_auth_headers] ]" bot_id="[[bot_id]]" bot="{{_bot}}" busy="{{_busy}}" events="{{_events}}" task s="{{_tasks}}"> </bot-page-data> <div class="header horizontal layout"> <paper-i nput class="id_input" label="Bot id" value="{{bot_id}}"></paper-input> <button o n-click="_refresh"> <iron-icon class="refresh" icon="icons:refresh"></iron-icon> </button> </div> <div> <table> <tbody><tr class$="[[_isDead(_bot)]]"> <td>Last Seen</td> <td title="[[_bot.human_last_seen_ts]]"> [[_timeDiffExact(_bot.last_se en_ts)]] ago</td> <td> <template is="dom-if" if="[[_canShutdown(_bot,_permission s)]]"> <button class="raised" on-click="_promptShutdown"> Shut Down Gracefully < /button> </template> <template is="dom-if" if="[[_canDelete(_bot,_permissions)]] "> <button class="raised" on-click="_promptDelete"> Delete </button> </template> </td> </tr> <template is="dom-if" if="[[_bot.quarantined]]"> <tr class="quarant ined"> <td>Quarantined</td> <td colspan="2">[[_quarantineMessage(_bot)]]</td> </ tr> </template> <tr> <td>Current Task</td> <td> <a target="_blank" href$="[[_tas kLink(_bot.task_id)]]"> [[_task(_bot)]] </a> </td> <td> </td> </tr> <tr> <td row span$="[[_numRows(_bot.dimensions)]]">Dimensions</td> </tr> <template is="dom-re peat" items="[[_bot.dimensions]]" as="dim"> <tr> <td>[[dim.key]]</td> <td>[[_con cat(dim.value)]]</td> </tr> </template> <tr> <td>External IP</td> <td><a href$=" [[_bot.external_ip]]">[[_bot.external_ip]]</a></td> <td></td> </tr> <tr> <td>Swa rming Revision</td> <td> <a target="_blank" href$="[[_luciLink(_bot.version)]]"> [[_shorten(_bot.version,'8')]]</a> </td> <td></td> </tr> <tr> <td>First seen</td > <td title="[[_bot.human_first_seen_ts]]"> [[_timeDiffApprox(_bot.first_seen_ts )]] ago </td> <td></td> </tr> <tr> <td>Authenticated as</td> <td>[[_bot.authenti cated_as]]</td> <td></td> </tr> </tbody></table> <span class="title">State</span > <template is="dom-if" if="[[_not(_show_state)]]"> <button on-click="_toggleSta te"> <iron-icon icon="icons:add-circle-outline"></iron-icon> </button> </templat e> <template is="dom-if" if="[[_show_state]]"> <button on-click="_toggleState"> <iron-icon icon="icons:remove-circle-outline"></iron-icon> </button> </template> <iron-collapse id="collapse" opened="[[_show_state]]"> <div class="bot_state">[ [_prettyPrint(_bot.state)]]</div> </iron-collapse> </div> <div class="tabs"> <pa per-tabs selected="{{_selected}}" no-bar=""> <paper-tab>Tasks</paper-tab> <paper -tab>Events</paper-tab> </paper-tabs> <template is="dom-if" if="[[_selected]]"> <paper-checkbox checked="{{_show_all}}"> Show all events </paper-checkbox> </tem plate> </div> <template is="dom-if" if="[[_not(_selected)]]"> <table class="task s_table"> <thead> <tr> <th>Task</th> <th>Started</th> <th>Duration</th> <th>Resu lt</th> </tr> </thead> <tbody> <template is="dom-repeat" items="{{_tasks}}" as=" task"> <tr class$="[[_taskClass(task)]]"> <td><a target="_blank" href$="[[_taskL ink(task.task_id)]]">[[task.name]]</a></td> <td>[[task.human_started_ts]]</td> < td title="[[task.human_completed_ts]]">[[task.human_duration]]</td> <td>[[task.s tate]]</td> </tr> </template> </tbody> </table> </template> <template is="dom-if " if="[[_selected]]"> <table class="events_table"> <thead> <tr> <th>Message</th> <th>Type</th> <th>Timestamp</th> <th>Task ID</th> <th>Version</th> </tr> </thea d> <tbody> <template is="dom-repeat" items="{{_eventList(_events,_show_all)}}" a s="event"> <tr> <td class="message">[[event.message]]</td> <td>[[event.event_typ e]]</td> <td>[[event.human_ts]]</td> <td><a target="_blank" href$="[[_taskLink(e vent.task_id)]]">[[event.task_id]]</a></td> <td> <a target="_blank" href$="[[_lu ciLink(event.version)]]">[[_shorten(event.version,'8')]]</a> </td> </tr> </templ ate> </tbody> </table> </template> </div> </swarming-app> <paper-dialog id="prom pt" modal="" on-iron-overlay-closed="_promptClosed"> <h2>Are you sure?</h2> <div >Are you sure you want to [[_dialogPrompt]]?</div> <div class="buttons"> <paper- button dialog-dismiss="" autofocus="">No</paper-button> <paper-button dialog-con firm="">Yes</paper-button> </div> </paper-dialog> <error-toast></error-toast> </ template> <script> (function(){ 307 })(); </script> </dom-module> <dom-module id="paper-button" assetpath="/res/im p/bower_components/paper-button/"> <template strip-whitespace=""> <style include ="paper-material-shared-styles">:host{@apply(--layout-inline);@apply(--layout-ce nter-center);position:relative;box-sizing:border-box;min-width:5.14em;margin:0 . 29em;background:0 0;-webkit-tap-highlight-color:transparent;-webkit-tap-highligh t-color:transparent;font:inherit;text-transform:uppercase;outline-width:0;border -radius:3px;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none; user-select:none;cursor:pointer;z-index:0;padding:.7em .57em;@apply(--paper-font -common-base);@apply(--paper-button)}:host([hidden]){display:none!important}:hos t([raised].keyboard-focus){font-weight:700;@apply(--paper-button-raised-keyboard -focus)}:host(:not([raised]).keyboard-focus){font-weight:700;@apply(--paper-butt on-flat-keyboard-focus)}:host([disabled]){background:#eaeaea;color:#a8a8a8;curso r:auto;pointer-events:none;@apply(--paper-button-disabled)}:host([animated]){@ap ply(--shadow-transition)}paper-ripple{color:var(--paper-button-ink-color)}</styl e> <content></content> </template> <script>Polymer({is:"paper-button",behaviors: [Polymer.PaperButtonBehavior],properties:{raised:{type:Boolean,reflectToAttribut e:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){th is.raised?Polymer.PaperButtonBehaviorImpl._calculateElevation.apply(this):this._ setElevation(0)}})</script> </dom-module> <script>Polymer.NeonAnimatableBehavior ={properties:{animationConfig:{type:Object},entryAnimation:{observer:"_entryAnim ationChanged",type:String},exitAnimation:{observer:"_exitAnimationChanged",type: String}},_entryAnimationChanged:function(){this.animationConfig=this.animationCo nfig||{},this.animationConfig.entry=[{name:this.entryAnimation,node:this}]},_exi tAnimationChanged:function(){this.animationConfig=this.animationConfig||{},this. animationConfig.exit=[{name:this.exitAnimation,node:this}]},_copyProperties:func tion(i,n){for(var t in n)i[t]=n[t]},_cloneConfig:function(i){var n={isClone:!0}; return this._copyProperties(n,i),n},_getAnimationConfigRecursive:function(i,n,t) {if(this.animationConfig){if(this.animationConfig.value&&"function"==typeof this .animationConfig.value)return void this._warn(this._logf("playAnimation","Please put 'animationConfig' inside of your components 'properties' object instead of outside of it."));var o;if(o=i?this.animationConfig[i]:this.animationConfig,Arra y.isArray(o)||(o=[o]),o)for(var e,a=0;e=o[a];a++)if(e.animatable)e.animatable._g etAnimationConfigRecursive(e.type||i,n,t);else if(e.id){var r=n[e.id];r?(r.isClo ne||(n[e.id]=this._cloneConfig(r),r=n[e.id]),this._copyProperties(r,e)):n[e.id]= e}else t.push(e)}},getAnimationConfig:function(i){var n={},t=[];this._getAnimati onConfigRecursive(i,n,t);for(var o in n)t.push(n[o]);return t}}</script> <script >Polymer.NeonAnimationRunnerBehaviorImpl={_configureAnimations:function(n){var i =[];if(n.length>0)for(var e,t=0;e=n[t];t++){var o=document.createElement(e.name) ;if(o.isNeonAnimation){var a=null;try{a=o.configure(e),"function"!=typeof a.canc el&&(a=document.timeline.play(a))}catch(n){a=null,console.warn("Couldnt play","( ",e.name,").",n)}a&&i.push({neonAnimation:o,config:e,animation:a})}else console. warn(this.is+":",e.name,"not found!")}return i},_shouldComplete:function(n){for( var i=!0,e=0;e<n.length;e++)if("finished"!=n[e].animation.playState){i=!1;break} return i},_complete:function(n){for(var i=0;i<n.length;i++)n[i].neonAnimation.co mplete(n[i].config);for(var i=0;i<n.length;i++)n[i].animation.cancel()},playAnim ation:function(n,i){var e=this.getAnimationConfig(n);if(e){this._active=this._ac tive||{},this._active[n]&&(this._complete(this._active[n]),delete this._active[n ]);var t=this._configureAnimations(e);if(0==t.length)return void this.fire("neon -animation-finish",i,{bubbles:!1});this._active[n]=t;for(var o=0;o<t.length;o++) t[o].animation.onfinish=function(){this._shouldComplete(t)&&(this._complete(t),d elete this._active[n],this.fire("neon-animation-finish",i,{bubbles:!1}))}.bind(t his)}},cancelAnimation:function(){for(var n in this._animations)this._animations [n].cancel();this._animations={}}},Polymer.NeonAnimationRunnerBehavior=[Polymer. NeonAnimatableBehavior,Polymer.NeonAnimationRunnerBehaviorImpl]</script> <script >Polymer.PaperDialogBehaviorImpl={hostAttributes:{role:"dialog",tabindex:"-1"},p roperties:{modal:{type:Boolean,value:!1}},observers:["_modalChanged(modal, _read ied)"],listeners:{tap:"_onDialogClick"},ready:function(){this.__prevNoCancelOnOu tsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancel OnEscKey,this.__prevWithBackdrop=this.withBackdrop},_modalChanged:function(i,e){ e&&(i?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prev NoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop ,this.noCancelOnOutsideClick=!0,this.noCancelOnEscKey=!0,this.withBackdrop=!0):( this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOu tsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEsc Key,this.withBackdrop=this.withBackdrop&&this.__prevWithBackdrop))},_updateClosi ngReasonConfirmed:function(i){this.closingReason=this.closingReason||{},this.clo singReason.confirmed=i},_onDialogClick:function(i){for(var e=Polymer.dom(i).path ,o=0;o<e.indexOf(this);o++){var t=e[o];if(t.hasAttribute&&(t.hasAttribute("dialo g-dismiss")||t.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirm ed(t.hasAttribute("dialog-confirm")),this.close(),i.stopPropagation();break}}}}, Polymer.PaperDialogBehavior=[Polymer.IronOverlayBehavior,Polymer.PaperDialogBeha viorImpl]</script> <dom-module id="paper-dialog-shared-styles" assetpath="/res/i mp/bower_components/paper-dialog-behavior/"> <template> <style>:host{display:blo ck;margin:24px 40px;background:var(--paper-dialog-background-color,--primary-bac kground-color);color:var(--paper-dialog-color,--primary-text-color);@apply(--pap er-font-body1);@apply(--shadow-elevation-16dp);@apply(--paper-dialog)}:host>::co ntent>*{margin-top:20px;padding:0 24px}:host>::content>.no-padding{padding:0}:ho st>::content>:first-child{margin-top:24px}:host>::content>:last-child{margin-bot tom:24px}:host>::content h2{position:relative;margin:0;@apply(--paper-font-title );@apply(--paper-dialog-title)}:host>::content .buttons{position:relative;paddin g:8px 8px 8px 24px;margin:0;color:var(--paper-dialog-button-color,--primary-colo r);@apply(--layout-horizontal);@apply(--layout-end-justified)}</style> </templat e> </dom-module> <dom-module id="paper-dialog" assetpath="/res/imp/bower_compone nts/paper-dialog/"> <template> <style include="paper-dialog-shared-styles"></sty le> <content></content> </template> </dom-module> <script>!function(){Polymer({i s:"paper-dialog",behaviors:[Polymer.PaperDialogBehavior,Polymer.NeonAnimationRun nerBehavior],listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},_rende rOpened:function(){this.cancelAnimation(),this.playAnimation("entry")},_renderCl osed:function(){this.cancelAnimation(),this.playAnimation("exit")},_onNeonAnimat ionFinish:function(){this.opened?this._finishRenderOpened():this._finishRenderCl osed()}})}()</script> <dom-module id="error-toast" assetpath="/res/imp/common/"> <template> <paper-toast id="toast"></paper-toast> </template> </dom-module> <sc ript>Polymer({is:"error-toast",ready:function(){document.addEventListener("error -sk",function(t){if(this.$.toast.close(),t.detail.message){this.$.toast.text=t.d etail.message;var e=1e4;void 0!==t.detail.duration&&(e=t.detail.duration),this.$ .toast.duration=e,this.$.toast.show()}else console.log("Empty message?",t)}.bind (this))}})</script> <script>window.SwarmingBehaviors=window.SwarmingBehaviors||{ },function(){SwarmingBehaviors.TaskBehavior={properties:{BOT_DIED:{type:String,v alue:"BOT_DIED"},CANCELED:{type:String,value:"CANCELED"},COMPLETED:{type:String, value:"COMPLETED"},COMPLETED_DEDUPED:{type:String,value:"COMPLETED (DEDUPED)"},C OMPLETED_FAILURE:{type:String,value:"COMPLETED (FAILURE)"},COMPLETED_SUCCESS:{ty pe:String,value:"COMPLETED (SUCCESS)"},EXPIRED:{type:String,value:"EXPIRED"},PEN DING:{type:String,value:"PENDING"},RUNNING:{type:String,value:"RUNNING"},TIMED_O UT:{type:String,value:"TIMED_OUT"}},stateClass:function(E){return E===this.CANCE LED||E===this.TIMED_OUT||E===this.EXPIRED?"exception":E===this.BOT_DIED?"bot_die d":E===this.COMPLETED_FAILURE?"failed_task":E===this.RUNNING||E===this.PENDING?" pending_task":""}}}()</script> <dom-module id="task-style" assetpath="/res/imp/c ommon/"> <template> <style>.failed_task{background-color:#fdd}.bot_died{backgrou nd-color:#ccc}.exception{background-color:#edd2ff}.pending_task{background-color :#fffc6c}</style> </template> </dom-module><dom-module id="task-filters" assetpa th="/res/imp/tasklist/"> <template> <style is="custom-style" include="iron-flex iron-flex-alignment iron-positioning query-column-filter-style">.item.wide{max-w idth:400px}.selector.wide{min-width:275px}</style> <url-param name="f" value="{{ _filters}}" default_values="[]" multi=""> </url-param> <url-param name="c" value ="{{columns}}" default_values="[&quot;name&quot;,&quot;state&quot;,&quot;created _ts&quot;,&quot;user&quot;]" multi=""> </url-param> <url-param name="q" value="{ {_query}}" default_value=""> </url-param> <url-param name="l" default_value="50" value="{{_limit}}"> </url-param> <div class="container horizontal layout"> <div class="narrow-down-selector"> <div> <paper-input id="filter" label="Search colu mns and filters" placeholder="gpu nvidia" value="{{_query}}"> </paper-input> </d iv> <div class="wide selector side-by-side" title="This shows all task tags and other interesting task properties. Mark the check box to add as a column. Select the row to see filter options."> <iron-selector attr-for-selected="label" selec ted="{{_primarySelected}}"> <template is="dom-repeat" items="[[_primaryItems]]" as="item"> <div class="selectable item horizontal layout" label="[[item]]"> <spa n>[[_beforeBold(item,_query)]]<span class="bold">[[_bold(item,_query)]]</span>[[ _afterBold(item,_query)]]</span> <span class="flex"></span> <paper-checkbox noin k="" disabled$="[[_cantToggleColumn(item)]]" checked="[[_columnState(item,column s.*)]]" on-change="_toggleColumn"> </paper-checkbox> </div> </template> </iron-s elector> </div> <div class="selector side-by-side" title="These are all options (if any) that the task list can be filtered on."> <template is="dom-repeat" id=" secondaryList" items="[[_secondaryItems]]" as="item"> <div class="item horizonta l layout" label="[[item]]"> <span>[[_beforeBold(item,_query)]]<span class="bold" >[[_bold(item,_query)]]</span>[[_afterBold(item,_query)]]</span> <span class="fl ex"></span> <iron-icon class="icons" icon="icons:arrow-forward" hidden="[[_cantA ddFilter(_primarySelected,item,_filters.*)]]" on-tap="_addFilter"> </iron-icon> </div> </template> </div> <div class="selector side-by-side" title="These tag fi lters are AND'd together and applied to all tasks."> <template is="dom-repeat" i tems="[[_filters]]" as="fil"> <div class="item horizontal layout" label="[[fil]] "> <span>[[fil]]</span> <span class="flex"></span> <iron-icon class="icons" icon ="icons:remove-circle-outline" hidden="[[_cantRemoveFilter(fil,_filters.*)]]" on -tap="_removeFilter"> </iron-icon> </div> </template> </div> <div class="side-by -side"> <paper-input id="_limit" label="Limit Results" auto-validate="" min="0" max="1000" pattern="[0-9]+" value="{{_limit}}"> </paper-input> </div> </div> </d iv> </template> <script>!function(){var t={state:function(t,i){var r=this._attri bute(t,"state")[0];if(i===r||"ALL"===i)return!0;if("PENDING_RUNNING"===i)return r===this.PENDING||r===this.RUNNING;var e=this._attribute(t,"failure",!1)[0];if(" COMPLETED_SUCCESS"===i)return r===this.COMPLETED&&!e;if("COMPLETED_FAILURE"===i) return r===this.COMPLETED&&e;var a=this._attribute(t,"try_number","-1")[0];retur n"DEDUPED"===i?r===this.COMPLETED&&"0"===a:void 0}};Polymer({is:"task-filters",b ehaviors:[SwarmingBehaviors.QueryColumnFilter,SwarmingBehaviors.TaskBehavior],pr operties:{columns:{type:Array,notify:!0},query_params:{type:Object,computed:"_ex tractQueryParams(_filters.*, _limit)",notify:!0},_filterMap:{type:Object,value:f unction(){var i=this._commonFilters();for(var r in t)i[r]=t[r];return i}}},_cant ToggleColumn:function(t){return!t||"name"===t},_extractQueryParams:function(){va r t={},i=[];this._filters.forEach(function(r){var e=r.split(this.FILTER_SEP,1),a =e[0],s=r.substring(a.length+this.FILTER_SEP.length);"state"===a?t.state=[s]:i.p ush(a+this.FILTER_SEP+swarming.alias.unapply(s))}.bind(this)),t.tags=i;var r=par seInt(this._limit);return Number.isInteger(r)&&(r=Math.max(r,1),r=Math.min(1e3,r ),t._limit=[r],this._limit!=r&&this.set("_limit",r)),t}})}()</script> </dom-modu le><dom-module id="task-list-data" assetpath="/res/imp/tasklist/"> <script>!func tion(){var t=["abandoned_ts","completed_ts","created_ts","modified_ts","started_ ts"];Polymer({is:"task-list-data",behaviors:[SwarmingBehaviors.CommonBehavior,Sw armingBehaviors.TaskBehavior],properties:{auth_headers:{type:Object,observer:"si gnIn"},query_params:{type:Object,observer:"_request"},busy:{type:Boolean,compute d:"_or(_busy1,_busy2,_busy3)",notify:!0},primary_map:{type:Object,computed:"_pri maryMap(_tags,_dimensions,tasks)",notify:!0},primary_arr:{type:Array,computed:"_ primaryArr(primary_map)",notify:!0},tasks:{type:Array,computed:"_tasks(_list)",n otify:!0},_busy1:{type:Boolean,value:!1},_busy2:{type:Boolean,value:!1},_busy3:{ type:Boolean,value:!1},_dimensions:{type:Object},_list:{type:Object},_tags:{type :Object}},signIn:function(){this._getJsonAsync("_tags","/_ah/api/swarming/v1/tas ks/tags","_busy2",this.auth_headers),this._getJsonAsync("_dimensions","/_ah/api/ swarming/v1/bots/dimensions","_busy3",this.auth_headers),this._request()},_prima ryArr:function(t){var s=Object.keys(t);return s.sort(),s},_primaryMap:function(s ,a,e){s=s&&s.tasks_tags||[],a=a&&a.bots_dimensions||[],e=e||[];var i={};s.forEac h(function(t){i[t.key]||(i[t.key]={});var s=t.value||[];s.forEach(function(s){i[ t.key][s]=!0})}),a.forEach(function(t){var s=t.value;i[t.key]||(i[t.key]={}),s.f orEach(function(s){i[t.key][s]=!0})}),e.forEach(function(t){Object.keys(t.tagMap ).forEach(function(s){var a=t.tagMap[s];i[s]||(i[s]={}),i[s][a]=!0})});var r={}; for(key in i){var n=Object.keys(i[key]);if(swarming.alias.DIMENSIONS_WITH_ALIASE S.indexOf(key)===-1)r[key]=n;else{var o=[];n.forEach(function(t){o.push(swarming .alias.apply(t,key))}),r[key]=o}}return r.android_devices.push("0"),r.device_os. push("none"),r.device_type.push("none"),r.user.push("none"),r.name=[],r.state=[t his.PENDING,this.RUNNING,"PENDING_RUNNING",this.COMPLETED,"COMPLETED_SUCCESS","C OMPLETED_FAILURE",this.EXPIRED,this.TIMED_OUT,this.BOT_DIED,this.CANCELED,"DEDUP ED","ALL"],r.costs_usd=[],r.deduped_from=[],r.duration=[],r.server_versions=[],t .forEach(function(t){r[t]=[]}),r},_request:function(){this.auth_headers&&this.qu ery_params&&this._getJsonAsync("_list","/_ah/api/swarming/v1/tasks/list","_busy1 ",this.auth_headers,this.query_params)},_tasks:function(){if(!this._list||!this. _list.items)return[];var s=new Date;return this._list.items.forEach(function(a){ var e={};a.tags=a.tags||[],a.tags.forEach(function(t){var s=t.split(":",1),a=s[0 ],i=t.substring(a.length+1);e[a]=i}),a.tagMap=e,t.forEach(function(t){a[t]&&(a[t ]=new Date(a[t]),a["human_"+t]=sk.human.localeTime(a[t]))}),!a.duration&&a.state ===this.RUNNING&&a.started_ts&&(a.duration=(s-a.started_ts)/1e3),a.duration&&(a. human_duration=this._humanDuration(a.duration))}.bind(this)),this._list.items}}) }()</script> </dom-module> <dom-module id="task-list" assetpath="/res/imp/taskli st/"> <template> <style include="iron-flex iron-flex-alignment iron-positioning swarming-app-style dynamic-table-style task-style">task-filters{margin-bottom:8p x;margin-right:10px}.task-list th>span{padding-right:30px}</style> <url-param na me="s" value="{{_sortstr}}" default_value="created_ts:desc"> </url-param> <swarm ing-app client_id="[[client_id]]" auth_headers="{{_auth_headers}}" permissions=" {{_permissions}}" signed_in="{{_signed_in}}" busy="[[_busy]]" name="Swarming Tas k List"> <h2 hidden$="[[_signed_in]]">You must sign in to see anything useful.</ h2> <div hidden$="[[_not(_signed_in)]]"> <task-list-data auth_headers="[[_auth_h eaders]]" query_params="[[_query_params]]" tasks="{{_items}}" busy="{{_busy}}" p rimary_map="{{_primary_map}}" primary_arr="{{_primary_arr}}"> </task-list-data> <div class="horizontal layout"> <task-filters primary_map="[[_primary_map]]" pri mary_arr="[[_primary_arr]]" columns="{{_columns}}" query_params="{{_query_params }}" filter="{{_filter}}"> </task-filters> </div> <table class="task-list"> <thea d on-sort_change="_sortChange"> <tr> <th> <span>Task Name</span> <sort-toggle na me="name" current="[[_sort]]"> </sort-toggle> </th> <th hidden$="[[_hide('state' , _columns.*)]]"> <span>State</span> <sort-toggle name="state" current="[[_sort] ]"> </sort-toggle> </th> <th hidden$="[[_hide('deduped_from', _columns.*)]]"> <s pan>Deduped from</span> <sort-toggle name="deduped_from" current="[[_sort]]"> </ sort-toggle> </th> <template is="dom-repeat" items="[[_plainColumns]]" as="c"> < th hidden$="[[_hide(c)]]"> <span>[[_header(c)]]</span> <sort-toggle name="[[c]]" current="[[_sort]]"> </sort-toggle> </th> </template> </tr> </thead> <tbody> <t emplate id="tasks_table" is="dom-repeat" items="[[_filteredSortedItems]]" as="ta sk" initial-count="50"> <tr class$="[[_taskClass(task)]]"> <td> <a class="center " href$="[[_taskLink(task.task_id)]]" target="_blank"> [[task.name]] </a> </td> <td hidden$="[[_hide('state', _columns.*)]]"> [[_column('state', task)]] <paper- button raised="" hidden$="[[_cannotCancel(task,_permissions)]]" on-tap="_promptC ancel"> Cancel </paper-button> </td> <td hidden$="[[_hide('deduped_from', _colum ns.*)]]"> <a class="center" href$="[[_taskLink(task.deduped_from)]]" target="_bl ank"> [[_column('deduped_from',task)]] </a> </td> <template is="dom-repeat" item s="[[_plainColumns]]" as="c"> <td hidden$="[[_hide(c)]]"> [[_column(c, task)]] < /td> </template> </tr> </template> </tbody> </table> </div> </swarming-app> <pap er-dialog id="prompt" modal="" on-iron-overlay-closed="_promptClosed"> <h2>Are y ou sure?</h2> <div>Are you sure you want to [[_dialogPrompt]]?</div> <div class= "buttons"> <paper-button dialog-dismiss="" autofocus="">No</paper-button> <paper -button dialog-confirm="">Yes</paper-button> </div> </paper-dialog> <error-toast ></error-toast> </template> <script>!function(){function t(t){return function(e) {return this._attribute(e,"human_"+t)[0]}}function e(t){return function(e,a,n){v ar s=this._attribute(a,t,"0")[0],i=this._attribute(n,t,"0")[0];return e*(s-i)}}v ar a=["deduped_from","name","state"],n={abandoned_ts:t("abandoned_ts"),completed _ts:t("completed_ts"),costs_usd:function(t){return this._attribute(t,"costs_usd" ,0)[0]},created_ts:t("created_ts"),duration:t("duration"),modified_ts:t("modifie d_ts"),started_ts:t("started_ts"),state:function(t){var e=this._attribute(t,"sta te")[0];if("COMPLETED"===e){if(this._attribute(t,"failure",!1)[0])return"COMPLET ED (FAILURE)";var a=this._attribute(t,"try_number","-1")[0];return"0"===a?"COMPL ETED (DEDUPED)":"COMPLETED (SUCCESS)"}return e}},s={user:"Requesting User"},i={a bandoned_ts:e("abandoned_ts"),completed_ts:e("completed_ts"),created_ts:e("creat ed_ts"),duration:e("duration"),modified_ts:e("modified_ts"),started_ts:e("starte d_ts")};Polymer({is:"task-list",behaviors:[SwarmingBehaviors.DynamicTableBehavio r,SwarmingBehaviors.TaskBehavior],properties:{client_id:{type:String},_toCancel: {type:String},_columnMap:{type:Object,value:function(){var t=this._commonColumns ();for(var e in n)t[e]=n[e];return t}},_headerMap:{type:Object,value:s},_special Columns:{type:Array,value:a},_specialSort:{type:Object,value:i}},_attribute:func tion(t,e,a){void 0===a&&(a="none");var n=this._tag(t,e)||t[e]||[a];return Array. isArray(n)?n:[n]},_cannotCancel:function(t,e){return!(e&&e.cancel_task&&"PENDING "===this._column("state",t))},_cancelTask:function(){var t="/_ah/api/swarming/v1 /task/"+this._toCancel+"/cancel";swarming.postWithToast(t,"Canceling task "+this ._toCancel,this._auth_headers),this.set("_toCancel","")},_promptClosed:function( t){t.detail.confirmed&&this._cancelTask()},_promptCancel:function(t){var e=t.mod el.task;return e&&e.task_id?(this.set("_toCancel",e.task_id),this.set("_dialogPr ompt",'cancel task "'+e.name+'"'),void this.$.prompt.open()):void console.log("M issing task info",e)},_tag:function(t,e){if(t&&t.tagMap)return t.tagMap[e]},_tas kClass:function(t){return this.stateClass(this._column("state",t))}})}()</script > </dom-module> <dom-module id="iron-collapse" assetpath="/res/imp/bower_compone nts/iron-collapse/"> <template> <style>:host{display:block;transition-duration:v ar(--iron-collapse-transition-duration,300ms);overflow:visible}:host(.iron-colla pse-closed){display:none}:host(:not(.iron-collapse-opened)){overflow:hidden}</st yle> <content></content> </template> </dom-module> <script>Polymer({is:"iron-col lapse",behaviors:[Polymer.IronResizableBehavior],properties:{horizontal:{type:Bo olean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,noti fy:!0,observer:"_openedChanged"},noAnimation:{type:Boolean},_desiredSize:{type:S tring,value:""}},get dimension(){return this.horizontal?"width":"height"},get _d imensionMax(){return this.horizontal?"maxWidth":"maxHeight"},get _dimensionMaxCs s(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"group ","aria-hidden":"true","aria-expanded":"false"},listeners:{transitionend:"_trans itionEnd"},attached:function(){this._transitionEnd()},toggle:function(){this.ope ned=!this.opened},show:function(){this.opened=!0},hide:function(){this.opened=!1 },updateSize:function(i,t){if(i="auto"===i?"":i,this._desiredSize!==i){this._des iredSize=i,this._updateTransition(!1);var e=t&&!this.noAnimation&&this._isDispla yed;if(e){var n=this._calcSize();""===i&&(this.style[this._dimensionMax]="",i=th is._calcSize()),this.style[this._dimensionMax]=n,this.scrollTop=this.scrollTop,t his._updateTransition(!0),e=i!==n}this.style[this._dimensionMax]=i,e||this._tran sitionEnd()}},enableTransition:function(i){Polymer.Base._warn("`enableTransition ()` is deprecated, use `noAnimation` instead."),this.noAnimation=!i},_updateTran sition:function(i){this.style.transitionDuration=i&&!this.noAnimation?"":"0s"},_ horizontalChanged:function(){this.style.transitionProperty=this._dimensionMaxCss ;var i="maxWidth"===this._dimensionMax?"maxHeight":"maxWidth";this.style[i]="",t his.updateSize(this.opened?"auto":"0px",!1)},_openedChanged:function(){this.setA ttribute("aria-expanded",this.opened),this.setAttribute("aria-hidden",!this.open ed),this.toggleClass("iron-collapse-closed",!1),this.toggleClass("iron-collapse- opened",!1),this.updateSize(this.opened?"auto":"0px",!0),this.opened&&this.focus ()},_transitionEnd:function(){this.style[this._dimensionMax]=this._desiredSize,t his.toggleClass("iron-collapse-closed",!this.opened),this.toggleClass("iron-coll apse-opened",this.opened),this._updateTransition(!1),this.notifyResize()},get _i sDisplayed(){var i=this.getBoundingClientRect();for(var t in i)if(0!==i[t])retur n!0;return!1},_calcSize:function(){return this.getBoundingClientRect()[this.dime nsion]+"px"}})</script> <script>Polymer.IronMenuBehaviorImpl={properties:{focuse dItem:{observer:"_focusedItemChanged",readOnly:!0,type:Object},attrForItemTitle: {type:String}},hostAttributes:{role:"menu",tabindex:"0"},observers:["_updateMult iselectable(multi)"],listeners:{focus:"_onFocus",keydown:"_onKeydown","iron-item s-changed":"_onIronItemsChanged"},keyBindings:{up:"_onUpKey",down:"_onDownKey",e sc:"_onEscKey","shift+tab:keydown":"_onShiftTabDown"},attached:function(){this._ resetTabindices()},select:function(e){this._defaultFocusAsync&&(this.cancelAsync (this._defaultFocusAsync),this._defaultFocusAsync=null);var t=this._valueToItem( e);t&&t.hasAttribute("disabled")||(this._setFocusedItem(t),Polymer.IronMultiSele ctableBehaviorImpl.select.apply(this,arguments))},_resetTabindices:function(){va r e=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this. items.forEach(function(t){t.setAttribute("tabindex",t===e?"0":"-1")},this)},_upd ateMultiselectable:function(e){e?this.setAttribute("aria-multiselectable","true" ):this.removeAttribute("aria-multiselectable")},_focusWithKeyboardEvent:function (e){for(var t,i=0;t=this.items[i];i++){var s=this.attrForItemTitle||"textContent ",o=t[s]||t.getAttribute(s);if(!t.hasAttribute("disabled")&&o&&o.trim().charAt(0 ).toLowerCase()===String.fromCharCode(e.keyCode).toLowerCase()){this._setFocused Item(t);break}}},_focusPrevious:function(){for(var e=this.items.length,t=Number( this.indexOf(this.focusedItem)),i=1;i<e+1;i++){var s=this.items[(t-i+e)%e];if(!s .hasAttribute("disabled")){var o=Polymer.dom(s).getOwnerRoot()||document;if(this ._setFocusedItem(s),Polymer.dom(o).activeElement==s)return}}},_focusNext:functio n(){for(var e=this.items.length,t=Number(this.indexOf(this.focusedItem)),i=1;i<e +1;i++){var s=this.items[(t+i)%e];if(!s.hasAttribute("disabled")){var o=Polymer. dom(s).getOwnerRoot()||document;if(this._setFocusedItem(s),Polymer.dom(o).active Element==s)return}}},_applySelection:function(e,t){t?e.setAttribute("aria-select ed","true"):e.removeAttribute("aria-selected"),Polymer.IronSelectableBehavior._a pplySelection.apply(this,arguments)},_focusedItemChanged:function(e,t){t&&t.setA ttribute("tabindex","-1"),e&&(e.setAttribute("tabindex","0"),e.focus())},_onIron ItemsChanged:function(e){e.detail.addedNodes.length&&this._resetTabindices()},_o nShiftTabDown:function(e){var t=this.getAttribute("tabindex");Polymer.IronMenuBe haviorImpl._shiftTabPressed=!0,this._setFocusedItem(null),this.setAttribute("tab index","-1"),this.async(function(){this.setAttribute("tabindex",t),Polymer.IronM enuBehaviorImpl._shiftTabPressed=!1},1)},_onFocus:function(e){if(!Polymer.IronMe nuBehaviorImpl._shiftTabPressed){var t=Polymer.dom(e).rootTarget;(t===this||"und efined"==typeof t.tabIndex||this.isLightDescendant(t))&&(this._defaultFocusAsync =this.async(function(){var e=this.multi?this.selectedItems&&this.selectedItems[0 ]:this.selectedItem;this._setFocusedItem(null),e?this._setFocusedItem(e):this.it ems[0]&&this._focusNext()}))}},_onUpKey:function(e){this._focusPrevious(),e.deta il.keyboardEvent.preventDefault()},_onDownKey:function(e){this._focusNext(),e.de tail.keyboardEvent.preventDefault()},_onEscKey:function(e){this.focusedItem.blur ()},_onKeydown:function(e){this.keyboardEventMatchesKeys(e,"up down esc")||this. _focusWithKeyboardEvent(e),e.stopPropagation()},_activateHandler:function(e){Pol ymer.IronSelectableBehavior._activateHandler.call(this,e),e.stopPropagation()}}, Polymer.IronMenuBehaviorImpl._shiftTabPressed=!1,Polymer.IronMenuBehavior=[Polym er.IronMultiSelectableBehavior,Polymer.IronA11yKeysBehavior,Polymer.IronMenuBeha viorImpl]</script> <script>Polymer.IronMenubarBehaviorImpl={hostAttributes:{role :"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:functio n(e){this.focusedItem.click(),e.detail.keyboardEvent.preventDefault()},_onDownKe y:function(e){this.focusedItem.click(),e.detail.keyboardEvent.preventDefault()}, get _isRTL(){return"rtl"===window.getComputedStyle(this).direction},_onLeftKey:f unction(e){this._isRTL?this._focusNext():this._focusPrevious(),e.detail.keyboard Event.preventDefault()},_onRightKey:function(e){this._isRTL?this._focusPrevious( ):this._focusNext(),e.detail.keyboardEvent.preventDefault()},_onKeydown:function (e){this.keyboardEventMatchesKeys(e,"up down left right esc")||this._focusWithKe yboardEvent(e)}},Polymer.IronMenubarBehavior=[Polymer.IronMenuBehavior,Polymer.I ronMenubarBehaviorImpl]</script> <iron-iconset-svg name="paper-tabs" size="24"> <svg><defs> <g id="chevron-left"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10 .83 12z"></path></g> <g id="chevron-right"><path d="M10 6L8.59 7.41 13.17 12l-4. 58 4.59L10 18l6-6z"></path></g> </defs></svg> </iron-iconset-svg> <dom-module id ="paper-tab" assetpath="/res/imp/bower_components/paper-tabs/"> <template> <styl e>:host{@apply(--layout-inline);@apply(--layout-center);@apply(--layout-center-j ustified);@apply(--layout-flex-auto);position:relative;padding:0 12px;overflow:h idden;cursor:pointer;vertical-align:middle;@apply(--paper-font-common-base);@app ly(--paper-tab)}:host(:focus){outline:0}:host([link]){padding:0}.tab-content{hei ght:100%;transform:translateZ(0);-webkit-transform:translateZ(0);transition:opac ity .1s cubic-bezier(.4,0,1,1);@apply(--layout-horizontal);@apply(--layout-cente r-center);@apply(--layout-flex-auto);@apply(--paper-tab-content)}:host(:not(.iro n-selected))>.tab-content{opacity:.8;@apply(--paper-tab-content-unselected)}:hos t(:focus) .tab-content{opacity:1;font-weight:700}paper-ripple{color:var(--paper- tab-ink,--paper-yellow-a100)}.tab-content>::content>a{@apply(--layout-flex-auto) ;height:100%}</style> <div class="tab-content"> <content></content> </div> </tem plate> <script>Polymer({is:"paper-tab",behaviors:[Polymer.IronControlState,Polym er.IronButtonState,Polymer.PaperRippleBehavior],properties:{link:{type:Boolean,v alue:!1,reflectToAttribute:!0}},hostAttributes:{role:"tab"},listeners:{down:"_up dateNoink",tap:"_onTap"},attached:function(){this._updateNoink()},get _parentNoi nk(){var t=Polymer.dom(this).parentNode;return!!t&&!!t.noink},_updateNoink:funct ion(){this.noink=!!this.noink||!!this._parentNoink},_onTap:function(t){if(this.l ink){var e=this.queryEffectiveChildren("a");if(!e)return;if(t.target===e)return; e.click()}}})</script> </dom-module> <dom-module id="paper-tabs" assetpath="/res /imp/bower_components/paper-tabs/"> <template> <style>:host{@apply(--layout);@ap ply(--layout-center);height:48px;font-size:14px;font-weight:500;overflow:hidden; -moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select: none;-webkit-tap-highlight-color:transparent;-webkit-tap-highlight-color:transpa rent;@apply(--paper-tabs)}:host-context([dir=rtl]){@apply(--layout-horizontal-re verse)}#tabsContainer{position:relative;height:100%;white-space:nowrap;overflow: hidden;@apply(--layout-flex-auto)}#tabsContent{height:100%;-moz-flex-basis:auto; -ms-flex-basis:auto;flex-basis:auto}#tabsContent.scrollable{position:absolute;wh ite-space:nowrap}#tabsContent.scrollable.fit-container,#tabsContent:not(.scrolla ble){@apply(--layout-horizontal)}#tabsContent.scrollable.fit-container{min-width :100%}#tabsContent.scrollable.fit-container>::content>*{-ms-flex:1 0 auto;-webki t-flex:1 0 auto;flex:1 0 auto}.hidden{display:none}.not-visible{opacity:0;cursor :default}paper-icon-button{width:48px;height:48px;padding:12px;margin:0 4px}#sel ectionBar{position:absolute;height:2px;bottom:0;left:0;right:0;background-color: var(--paper-tabs-selection-bar-color,--paper-yellow-a100);-webkit-transform:scal e(0);transform:scale(0);-webkit-transform-origin:left center;transform-origin:le ft center;transition:-webkit-transform;transition:transform;@apply(--paper-tabs- selection-bar)}#selectionBar.align-bottom{top:0;bottom:auto}#selectionBar.expand {transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,1,1)}#sel ectionBar.contract{transition-duration:.18s;transition-timing-function:cubic-bez ier(0,0,.2,1)}#tabsContent>::content>:not(#selectionBar){height:100%}</style> <p aper-icon-button icon="paper-tabs:chevron-left" class$="[[_computeScrollButtonCl ass(_leftHidden, scrollable, hideScrollButtons)]]" on-up="_onScrollButtonUp" on- down="_onLeftScrollButtonDown" tabindex="-1"></paper-icon-button> <div id="tabsC ontainer" on-track="_scroll" on-down="_down"> <div id="tabsContent" class$="[[_c omputeTabsContentClass(scrollable, fitContainer)]]"> <div id="selectionBar" clas s$="[[_computeSelectionBarClass(noBar, alignBottom)]]" on-transitionend="_onBarT ransitionEnd"></div> <content select="*"></content> </div> </div> <paper-icon-bu tton icon="paper-tabs:chevron-right" class$="[[_computeScrollButtonClass(_rightH idden, scrollable, hideScrollButtons)]]" on-up="_onScrollButtonUp" on-down="_onR ightScrollButtonDown" tabindex="-1"></paper-icon-button> </template> <script>Pol ymer({is:"paper-tabs",behaviors:[Polymer.IronResizableBehavior,Polymer.IronMenub arBehavior],properties:{noink:{type:Boolean,value:!1,observer:"_noinkChanged"},n oBar:{type:Boolean,value:!1},noSlide:{type:Boolean,value:!1},scrollable:{type:Bo olean,value:!1},fitContainer:{type:Boolean,value:!1},disableDrag:{type:Boolean,v alue:!1},hideScrollButtons:{type:Boolean,value:!1},alignBottom:{type:Boolean,val ue:!1},selectable:{type:String,value:"paper-tab"},autoselect:{type:Boolean,value :!1},autoselectDelay:{type:Number,value:0},_step:{type:Number,value:10},_holdDel ay:{type:Number,value:1},_leftHidden:{type:Boolean,value:!1},_rightHidden:{type: Boolean,value:!1},_previousTab:{type:Object}},hostAttributes:{role:"tablist"},li steners:{"iron-resize":"_onTabSizingChanged","iron-items-changed":"_onTabSizingC hanged","iron-select":"_onIronSelect","iron-deselect":"_onIronDeselect"},keyBind ings:{"left:keyup right:keyup":"_onArrowKeyup"},created:function(){this._holdJob =null,this._pendingActivationItem=void 0,this._pendingActivationTimeout=void 0,t his._bindDelayedActivationHandler=this._delayedActivationHandler.bind(this),this .addEventListener("blur",this._onBlurCapture.bind(this),!0)},ready:function(){th is.setScrollDirection("y",this.$.tabsContainer)},detached:function(){this._cance lPendingActivation()},_noinkChanged:function(t){var e=Polymer.dom(this).querySel ectorAll("paper-tab");e.forEach(t?this._setNoinkAttribute:this._removeNoinkAttri bute)},_setNoinkAttribute:function(t){t.setAttribute("noink","")},_removeNoinkAt tribute:function(t){t.removeAttribute("noink")},_computeScrollButtonClass:functi on(t,e,i){return!e||i?"hidden":t?"not-visible":""},_computeTabsContentClass:func tion(t,e){return t?"scrollable"+(e?" fit-container":""):" fit-container"},_compu teSelectionBarClass:function(t,e){return t?"hidden":e?"align-bottom":""},_onTabS izingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scr oll(),this._tabChanged(this.selectedItem)},10)},_onIronSelect:function(t){this._ tabChanged(t.detail.item,this._previousTab),this._previousTab=t.detail.item,this .cancelDebouncer("tab-changed")},_onIronDeselect:function(t){this.debounce("tab- changed",function(){this._tabChanged(null,this._previousTab),this._previousTab=n ull},1)},_activateHandler:function(){this._cancelPendingActivation(),Polymer.Iro nMenuBehaviorImpl._activateHandler.apply(this,arguments)},_scheduleActivation:fu nction(t,e){this._pendingActivationItem=t,this._pendingActivationTimeout=this.as ync(this._bindDelayedActivationHandler,e)},_delayedActivationHandler:function(){ var t=this._pendingActivationItem;this._pendingActivationItem=void 0,this._pendi ngActivationTimeout=void 0,t.fire(this.activateEvent,null,{bubbles:!0,cancelable :!0})},_cancelPendingActivation:function(){void 0!==this._pendingActivationTimeo ut&&(this.cancelAsync(this._pendingActivationTimeout),this._pendingActivationIte m=void 0,this._pendingActivationTimeout=void 0)},_onArrowKeyup:function(t){this. autoselect&&this._scheduleActivation(this.focusedItem,this.autoselectDelay)},_on BlurCapture:function(t){t.target===this._pendingActivationItem&&this._cancelPend ingActivation()},get _tabContainerScrollSize(){return Math.max(0,this.$.tabsCont ainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(t,e){if(th is.scrollable){var i=e&&-e.ddx||0;this._affectScroll(i)}},_down:function(t){this .async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusA sync),this._defaultFocusAsync=null)},1)},_affectScroll:function(t){this.$.tabsCo ntainer.scrollLeft+=t;var e=this.$.tabsContainer.scrollLeft;this._leftHidden=0== =e,this._rightHidden=e===this._tabContainerScrollSize},_onLeftScrollButtonDown:f unction(){this._scrollToLeft(),this._holdJob=setInterval(this._scrollToLeft.bind (this),this._holdDelay)},_onRightScrollButtonDown:function(){this._scrollToRight (),this._holdJob=setInterval(this._scrollToRight.bind(this),this._holdDelay)},_o nScrollButtonUp:function(){clearInterval(this._holdJob),this._holdJob=null},_scr ollToLeft:function(){this._affectScroll(-this._step)},_scrollToRight:function(){ this._affectScroll(this._step)},_tabChanged:function(t,e){if(!t)return this.$.se lectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("cont ract"),void this._positionBar(0,0);var i=this.$.tabsContent.getBoundingClientRec t(),n=i.width,o=t.getBoundingClientRect(),s=o.left-i.left;if(this._pos={width:th is._calcPercent(o.width,n),left:this._calcPercent(s,n)},this.noSlide||null==e)re turn this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classLis t.remove("contract"),void this._positionBar(this._pos.width,this._pos.left);var a=e.getBoundingClientRect(),l=this.items.indexOf(e),c=this.items.indexOf(t),r=5; this.$.selectionBar.classList.add("expand");var h=l<c,d=this._isRTL;d&&(h=!h),h? this._positionBar(this._calcPercent(o.left+o.width-a.left,n)-r,this._left):this. _positionBar(this._calcPercent(a.left+a.width-o.left,n)-r,this._calcPercent(s,n) +r),this.scrollable&&this._scrollToSelectedIfNeeded(o.width,s)},_scrollToSelecte dIfNeeded:function(t,e){var i=e-this.$.tabsContainer.scrollLeft;i<0?this.$.tabsC ontainer.scrollLeft+=i:(i+=t-this.$.tabsContainer.offsetWidth,i>0&&(this.$.tabsC ontainer.scrollLeft+=i))},_calcPercent:function(t,e){return 100*t/e},_positionBa r:function(t,e){t=t||0,e=e||0,this._width=t,this._left=e,this.transform("transla teX("+e+"%) scaleX("+t/100+")",this.$.selectionBar)},_onBarTransitionEnd:functio n(t){var e=this.$.selectionBar.classList;e.contains("expand")?(e.remove("expand" ),e.add("contract"),this._positionBar(this._pos.width,this._pos.left)):e.contain s("contract")&&e.remove("contract")}})</script> </dom-module> <dom-module id="si ngle-page-style" assetpath="/res/imp/common/"> <template> <style>.header{max-wid th:450px}.title{font-size:1.5em;font-weight:700;margin:5px}.id_input{margin-left :5px;--paper-input-container-input:{font-size:2em};}.refresh{max-width:40px;max- height:40px;width:initial;height:initial}button{min-width:4em;max-height:55px}ta ble{border-collapse:collapse;margin-left:5px;margin-bottom:8px}td,th{border:1px solid #BBB;padding:5px}.tabs{background-color:#1F78B4;color:#fff;max-width:600px ;margin-left:5px;--paper-checkbox-label-color:#fff}paper-tab{background-color:#A 6CEE3;color:#000}paper-tab.iron-selected{background-color:#1F78B4;color:#fff;fon t-weight:700;text-decoration:underline}paper-tab[disabled]{background-color:#AAA ;text-decoration:line-through},.quarantined{background-color:#fdd}.dead{backgrou nd-color:#ccc}</style> </template> </dom-module><script>!function(){SwarmingBeha viors.BotPageBehavior=[SwarmingBehaviors.CommonBehavior,{}]}()</script> <dom-mod ule id="bot-page-data" assetpath="/res/imp/botpage/"> <script>!function(){functi on t(t){if(!s){var e=t.toString();s=e.substring(e.indexOf("("))}return t.toLocal eString()+" "+s}var e,s,a=400,n=["first_seen_ts","last_seen_ts"],i=["started_ts" ,"completed_ts","abandoned_ts","modified_ts"];Polymer({is:"bot-page-data",behavi ors:[SwarmingBehaviors.BotPageBehavior],properties:{auth_headers:{type:Object},b ot_id:{type:String},busy:{type:Boolean,computed:"_or(_busy1,_busy2,_busy3)",noti fy:!0},bot:{type:Object,computed:"_parseBot(_bot)",notify:!0},events:{type:Array ,computed:"_parseEvents(_events)",notify:!0},tasks:{type:Array,computed:"_parseT asks(_tasks)",notify:!0},_busy1:{type:Boolean,value:!1},_busy2:{type:Boolean,val ue:!1},_busy3:{type:Boolean,value:!1},_bot:{type:Object},_events:{type:Object},_ tasks:{type:Object}},observers:["request(auth_headers,bot_id)"],request:function (){this.bot_id&&this.auth_headers&&(e&&this.cancelAsync(e),e=this.async(function (){e=void 0;var t="/_ah/api/swarming/v1/bot/"+this.bot_id;this._getJsonAsync("_b ot",t+"/get","_busy1",this.auth_headers),this._getJsonAsync("_events",t+"/events ?fields=items(event_type%2Cmessage%2Cquarantined%2Ctask_id%2Cts%2Cversion)","_bu sy2",this.auth_headers),this._getJsonAsync("_tasks",t+"/tasks?fields=items(aband oned_ts%2Cbot_version%2Ccompleted_ts%2Cduration%2Cexit_code%2Cfailure%2Cinternal _failure%2Cmodified_ts%2Cname%2Cstarted_ts%2Cstate%2Ctask_id%2Ctry_number)","_bu sy3",this.auth_headers)},a))},_parseBot:function(e){if(!e)return{};e.state=e.sta te||"{}",e.state=JSON.parse(e.state);var s=e.state.disks||{},a=Object.keys(s);if (a.length){e.disks=[];for(var i=0;i<a.length;i++)e.disks.push({id:a[i],mb:s[a[i] ].free_mb});e.disks.sort(function(t,e){return e.mb-t.mb})}else e.disks=[{id:"unk nown",mb:0}];return e.dimensions=e.dimensions||[],e.dimensions.forEach(function( t){swarming.alias.DIMENSIONS_WITH_ALIASES.indexOf(t.key)!==-1&&t.value.forEach(f unction(e,s){t.value[s]=swarming.alias.apply(e,t.key)})}),n.forEach(function(s){ e[s]&&(e[s]=new Date(e[s]),e["human_"+s]=t(e[s]))}),e},_parseEvents:function(e){ if(!e||!e.items)return[];var e=e.items;return e.forEach(function(e){e.ts&&(e.ts= new Date(e.ts),e.human_ts=t(e.ts))}),e.sort(function(t,e){return e.ts-t.ts}),e}, _parseTasks:function(e){if(!e||!e.items)return[];var e=e.items;return e.forEach( function(e){if(i.forEach(function(s){e[s]&&(e[s]=new Date(e[s]),e["human_"+s]=t( e[s]))}),e.duration)e.human_duration=this._humanDuration(e.duration);else{var s= e.completed_ts||e.abandoned_ts||e.modified_ts||new Date;e.human_duration=this._t imeDiffExact(e.started_ts,s)}e.state=e.state||"UNKNOWN","COMPLETED"===e.state&&( e.failure?e.state="FAILURE":e.state="SUCCESS")}.bind(this)),e.sort(function(t,e) {return e.started_ts-t.started_ts}),e}})}()</script> </dom-module> <dom-module i d="bot-page" assetpath="/res/imp/botpage/"> <template> <style include="iron-flex iron-flex-alignment iron-positioning swarming-app-style single-page-style task- style">.message{white-space:pre-line;font-family:monospace}.bot_state{white-spac e:pre;font-family:monospace;margin-bottom:10px}.events_table,.tasks_table{border :3px solid #1F78B4}paper-checkbox{--paper-checkbox-label-color:#fff;--paper-chec kbox-checked-color:#fff;--paper-checkbox-checkmark-color:#000;--paper-checkbox-u nchecked-color:#fff;padding:3px}paper-dialog{border-radius:6px}</style> <url-par am name="id" value="{{bot_id}}"> </url-param> <url-param name="show_all_events" value="{{_show_all}}"> </url-param> <url-param name="selected" value="{{_selecte d}}"> </url-param> <url-param name="show_state" value="{{_show_state}}"> </url-p aram> <swarming-app client_id="[[client_id]]" auth_headers="{{_auth_headers}}" p ermissions="{{_permissions}}" signed_in="{{_signed_in}}" busy="[[_busy]]" name=" Swarming Bot Page"> <h2 hidden$="[[_signed_in]]">You must sign in to see anythin g useful.</h2> <div hidden$="[[_not(_signed_in)]]"> <bot-page-data id="data" aut h_headers="[[_auth_headers]]" bot_id="[[bot_id]]" bot="{{_bot}}" busy="{{_busy}} " events="{{_events}}" tasks="{{_tasks}}"> </bot-page-data> <div class="header h orizontal layout"> <paper-input class="id_input" label="Bot id" value="{{bot_id} }"></paper-input> <button on-click="_refresh"> <iron-icon class="refresh" icon=" icons:refresh"></iron-icon> </button> </div> <div> <table> <tbody><tr class$="[[ _isDead(_bot)]]"> <td>Last Seen</td> <td title="[[_bot.human_last_seen_ts]]"> [[ _timeDiffExact(_bot.last_seen_ts)]] ago</td> <td> <template is="dom-if" if="[[_c anShutdown(_bot,_permissions)]]"> <button class="raised" on-click="_promptShutdo wn"> Shut Down Gracefully </button> </template> <template is="dom-if" if="[[_can Delete(_bot,_permissions)]]"> <button class="raised" on-click="_promptDelete"> D elete </button> </template> </td> </tr> <template is="dom-if" if="[[_bot.quarant ined]]"> <tr class="quarantined"> <td>Quarantined</td> <td colspan="2">[[_quaran tineMessage(_bot)]]</td> </tr> </template> <tr> <td>Current Task</td> <td> <a ta rget="_blank" href$="[[_taskLink(_bot.task_id)]]"> [[_task(_bot)]] </a> </td> <t d> </td> </tr> <tr> <td rowspan$="[[_numRows(_bot.dimensions)]]">Dimensions</td> </tr> <template is="dom-repeat" items="[[_bot.dimensions]]" as="dim"> <tr> <td> [[dim.key]]</td> <td>[[_concat(dim.value)]]</td> </tr> </template> <tr> <td>Exte rnal IP</td> <td><a href$="[[_bot.external_ip]]">[[_bot.external_ip]]</a></td> < td></td> </tr> <tr> <td>Swarming Revision</td> <td> <a target="_blank" href$="[[ _luciLink(_bot.version)]]">[[_shorten(_bot.version,'8')]]</a> </td> <td></td> </ tr> <tr> <td>First seen</td> <td title="[[_bot.human_first_seen_ts]]"> [[_timeDi ffApprox(_bot.first_seen_ts)]] ago </td> <td></td> </tr> <tr> <td>Authenticated as</td> <td>[[_bot.authenticated_as]]</td> <td></td> </tr> </tbody></table> <spa n class="title">State</span> <template is="dom-if" if="[[_not(_show_state)]]"> < button on-click="_toggleState"> <iron-icon icon="icons:add-circle-outline"></iro n-icon> </button> </template> <template is="dom-if" if="[[_show_state]]"> <butto n on-click="_toggleState"> <iron-icon icon="icons:remove-circle-outline"></iron- icon> </button> </template> <iron-collapse id="collapse" opened="[[_show_state]] "> <div class="bot_state">[[_prettyPrint(_bot.state)]]</div> </iron-collapse> </ div> <div class="tabs"> <paper-tabs selected="{{_selected}}" no-bar=""> <paper-t ab>Tasks</paper-tab> <paper-tab>Events</paper-tab> </paper-tabs> <template is="d om-if" if="[[_selected]]"> <paper-checkbox checked="{{_show_all}}"> Show all eve nts </paper-checkbox> </template> </div> <template is="dom-if" if="[[_not(_selec ted)]]"> <table class="tasks_table"> <thead> <tr> <th>Task</th> <th>Started</th> <th>Duration</th> <th>Result</th> </tr> </thead> <tbody> <template is="dom-repe at" items="{{_tasks}}" as="task"> <tr class$="[[_taskClass(task)]]"> <td><a targ et="_blank" href$="[[_taskLink(task.task_id)]]">[[task.name]]</a></td> <td>[[tas k.human_started_ts]]</td> <td title="[[task.human_completed_ts]]">[[task.human_d uration]]</td> <td>[[task.state]]</td> </tr> </template> </tbody> </table> </tem plate> <template is="dom-if" if="[[_selected]]"> <table class="events_table"> <t head> <tr> <th>Message</th> <th>Type</th> <th>Timestamp</th> <th>Task ID</th> <t h>Version</th> </tr> </thead> <tbody> <template is="dom-repeat" items="{{_eventL ist(_events,_show_all)}}" as="event"> <tr> <td class="message">[[event.message]] </td> <td>[[event.event_type]]</td> <td>[[event.human_ts]]</td> <td><a target="_ blank" href$="[[_taskLink(event.task_id)]]">[[event.task_id]]</a></td> <td> <a t arget="_blank" href$="[[_luciLink(event.version)]]">[[_shorten(event.version,'8' )]]</a> </td> </tr> </template> </tbody> </table> </template> </div> </swarming- app> <paper-dialog id="prompt" modal="" on-iron-overlay-closed="_promptClosed"> <h2>Are you sure?</h2> <div>Are you sure you want to [[_dialogPrompt]]?</div> <d iv class="buttons"> <paper-button dialog-dismiss="" autofocus="">No</paper-butto n> <paper-button dialog-confirm="">Yes</paper-button> </div> </paper-dialog> <er ror-toast></error-toast> </template> <script> (function(){
189 308
190 Polymer({ 309 Polymer({
191 is: 'bot-page', 310 is: 'bot-page',
192 311
193 behaviors: [ 312 behaviors: [
194 SwarmingBehaviors.BotPageBehavior, 313 SwarmingBehaviors.BotPageBehavior,
195 ], 314 ],
196 315
197 properties: { 316 properties: {
198 bot_id: { 317 bot_id: {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 } 464 }
346 return ""; 465 return "";
347 }, 466 },
348 467
349 _toggleState: function() { 468 _toggleState: function() {
350 this.set("_show_state", !this._show_state); 469 this.set("_show_state", !this._show_state);
351 } 470 }
352 471
353 }); 472 });
354 })(); </script> </dom-module><dom-module id="interval-timer" assetpath="/res/i mp/common/"> <script>!function(){Polymer({is:"interval-timer",properties:{period :{type:Number,value:-1,observer:"_periodChanged"}},_periodChanged:function(e){th is._timeout&&window.clearTimeout(this._timeout),e>0&&(this._timeout=window.setTi meout(function(){this.fire("trigger"),this._periodChanged(e)}.bind(this),1e3*e)) }})}()</script> </dom-module> <dom-module id="task-page-data" assetpath="/res/im p/taskpage/"> <script>!function(){var t,e=400,s=["abandoned_ts","completed_ts"," created_ts","modified_ts","started_ts"];Polymer({is:"task-page-data",behaviors:[ SwarmingBehaviors.CommonBehavior,SwarmingBehaviors.TaskBehavior],properties:{aut h_headers:{type:Object},task_id:{type:String},busy:{type:Boolean,computed:"_or(_ busy1,_busy2,_busy3)",notify:!0},request:{type:Object,computed:"_parseRequest(_r equest)",notify:!0},result:{type:Object,computed:"_parseResult(_result)",notify: !0},stdout:{type:String,computed:"_parseStdout(_stdout)",notify:!0},_busy1:{type :Boolean,value:!1},_busy2:{type:Boolean,value:!1},_busy3:{type:Boolean,value:!1} ,_request:{type:Object},_result:{type:Object},_stdout:{type:Object}},observers:[ "reload(auth_headers,task_id)"],reload:function(){if(!this.task_id||!this.auth_h eaders)return void console.log("task_id and auth_headers can't be empty");t&&thi s.cancelAsync(t);var s="/_ah/api/swarming/v1/task/"+this.task_id;t=this.async(fu nction(){t=void 0,this._getJsonAsync("_request",s+"/request","_busy1",this.auth_ headers),this._getJsonAsync("_result",s+"/result?include_performance_stats=true" ,"_busy2",this.auth_headers),this.reloadStdout()},e)},_parseRequest:function(t){ return t?(t.tagMap={},t.tags=t.tags||[],t.tags.forEach(function(e){var s=e.split (":",1),a=s[0],u=e.substring(a.length+1);t.tagMap[a]=u}),s.forEach(function(e){t [e]&&(t[e]=new Date(t[e]),t["human_"+e]=sk.human.localeTime(t[e]))}),t):{}},_par seResult:function(t){if(!t)return{};var e=new Date;return s.forEach(function(e){ t[e]&&(t[e]=new Date(t[e]),t["human_"+e]=sk.human.localeTime(t[e]))}),!t.duratio n&&t.state===this.RUNNING&&t.started_ts&&(t.duration=(e-t.started_ts)/1e3),t.dur ation&&(t.human_duration=this._humanDuration(t.duration)),t},_parseStdout:functi on(t){return t&&t.output?t.output:"[No output yet]"},reloadStdout:function(){thi s._getJsonAsync("_stdout","/_ah/api/swarming/v1/task/"+this.task_id+"/stdout","_ busy3",this.auth_headers)}})}()</script> </dom-module><dom-module id="task-page" assetpath="/res/imp/taskpage/"> <template> <style include="iron-flex iron-flex- alignment swarming-app-style single-page-style task-style">.milo{width:calc(100% - 11px);height:2000px}.left{min-width:550px}.right{min-width:500px;margin-top:8 px}.expand{min-width:3em;vertical-align:middle;padding:.5em}.code{font-family:mo nospace}.stdout{white-space:pre-line;padding:2px}.refresh_input{padding:0 5px}.t abbed{border:3px solid #1F78B4;margin-left:5px;min-height:80vh}</style> <url-par am name="id" value="{{task_id}}"> </url-param> <url-param name="request_detail" value="{{_request_detail}}"> </url-param> <url-param name="show_raw" value="{{_s how_raw}}"> </url-param> <url-param name="refresh" value="{{_refresh_interval}}" default_value="10"> </url-param> <swarming-app client_id="[[client_id]]" auth_h eaders="{{_auth_headers}}" permissions="{{_permissions}}" profile="{{_profile}}" signed_in="{{_signed_in}}" busy="[[_busy]]" name="Swarming Task Page"> <h2 hidd en$="[[_signed_in]]">You must sign in to see anything useful.</h2> <div hidden$= "[[_not(_signed_in)]]"> <task-page-data id="data" auth_headers="[[_auth_headers] ]" refresh_interval="[[_refresh_interval]]" task_id="[[task_id]]" busy="{{_busy} }" request="{{_request}}" result="{{_result}}" stdout="{{_stdout}}"> </task-page -data> <div class="horizontal layout wrap"> <div class="left flex"> <div class=" horizontal layout"> <paper-input class="id_input" label="Task id" value="{{task_ id}}"></paper-input> <button on-click="_refresh"> <iron-icon class="refresh" ico n="icons:refresh"></iron-icon> </button> <button on-click="_promptRetry">Retry</ button> <template is="dom-if" if="[[_canCancelTask(_result,_permissions)]]"> <bu tton on-click="_promptCancel">Cancel</button> </template> </div> <table> <tbody> <tr> <td>Name</td> <td>[[_request.name]]</td> </tr> <tr> <td>State</td> <td clas s$="[[_stateClass(_result)]]">[[_state(_result)]]</td> </tr> <tr> <td>Created</t d> <td title$="[[_request.created_ts]]">[[_request.human_created_ts]]</td> </tr> <template is="dom-if" if="[[_wasPickedUp(_result)]]"> <tr> <td>Started</td> <td title$="[[_result.started_ts]]">[[_result.human_started_ts]]</td> </tr> </templ ate> <template is="dom-if" if="[[_wasNotPickedUp(_result)]]"> <tr> <td>Expires</ td> <td>[[_expires(_request)]]</td> </tr> </template> <template is="dom-if" if=" [[_result.human_completed_ts]]"> <tr> <td>Completed</td> <td title$="[[_result.c ompleted_ts]]">[[_result.human_completed_ts]]</td> </tr> </template> <template i s="dom-if" if="[[_result.human_abandoned_ts]]"> <tr> <td>Abandoned</td> <td titl e$="[[_result.abandoned_ts]]">[[_result.human_abandoned_ts]]</td> </tr> </templa te> <tr> <td>Last Updated</td> <td title$="[[_result.modified_ts]]">[[_result.hu man_modified_ts]]</td> </tr> <template is="dom-if" if="[[_result.deduped_from]]" > <tr> <td><b>Deduped from</b></td> <td> <a href$="[[_taskLink(_result.deduped_f rom)]]"> [[_result.deduped_from]] </a> </td> </tr> </template> <tr> <td>Pending Time</td> <td>[[_pending(_result)]]</td> </tr> <tr> <td>Duration</td> <td>[[_res ult.human_duration]]</td> </tr> <tr> <td>Priority</td> <td>[[_request.priority]] </td> </tr> <tr> <td>User</td> <td>[[_request.user]]</td> </tr> <tr> <td>Authent icated</td> <td>[[_request.authenticated]]</td> </tr> <template is="dom-if" if=" [[_request.service_account]]"> <tr> <td>Service Account</td> <td>[[_request.serv ice_account]]</td> </tr> </template> <template is="dom-if" if="[[_request.proper ties.secret_bytes]]"> <tr> <td>Secret Bytes</td> <td>[[_request.properties.secre t_bytes]]</td> </tr> </template> <template is="dom-if" if="[[_request.parent_tas k_id]]"> <tr> <td>Parent Task</td> <td> <a href$="[[_taskLink(_request.parent_ta sk_id)]]">[[_request.parent_task_id]]</a> </td> </tr> </template> <tr> <td rowsp an$="[[_rowspan(_request.properties.dimensions)]]"> <a title="The list of bots t hat matches the list of dimensions" href$="[[_botListLink(_request.properties.di mensions)]]"> Requested Dimensions </a> </td> </tr> <template is="dom-repeat" it ems="{{_request.properties.dimensions}}" as="dimension"> <tr> <td><b>[[dimension .key]]:</b> [[_alias(dimension)]]</td> </tr> </template> <tr> <td>Isolated Input s</td> <td> <a href$="[[_isolateLink(_request.properties.inputs_ref)]]"> [[_requ est.properties.inputs_ref.isolated]] </a> </td> </tr> <template is="dom-if" if=" [[_not(_request_detail)]]"> <tr> <td>More Details</td> <td> <button on-click="_t oggleDetails"> <iron-icon icon="icons:add-circle-outline"></iron-icon> </button> </td> </tr> </template> <template is="dom-if" if="[[_request_detail]]"> <tr> <t d>Hide Details</td> <td> <button on-click="_toggleDetails"> <iron-icon icon="ico ns:remove-circle-outline"></iron-icon> </button> </td> </tr> </template> <templa te is="dom-if" if="[[_request_detail]]"> <tr> <td>Extra Args</td> <td class="cod e">[[_extraArgs(_request)]]</td> </tr> <tr> <td rowspan$="[[_rowspan(_request.ta gs)]]">Tags</td> </tr> <template is="dom-repeat" items="{{_request.tags}}" as="t ag"> <tr> <td>[[tag]]</td> </tr> </template> <tr> <td>Execution timeout</td> <td >[[_humanDuration(_request.properties.execution_timeout_secs)]]</td> </tr> <tr> <td>I/O timeout</td> <td>[[_humanDuration(_request.properties.io_timeout_secs)]] </td> </tr> <tr> <td>Grace period</td> <td>[[_humanDuration(_request.properties. grace_period_secs)]]</td> </tr> <tr> <td>CIPD server</td> <td> <a href$="[[_requ est.properties.cipd_input.server]]"> [[_request.properties.cipd_input.server]] < /a> </td> </tr> <tr> <td>CIPD version</td> <td>[[_request.properties.cipd_input. client_package.version]]</td> </tr> <template is="dom-if" if="[[_wasPickedUp(_re sult)]]"> <tr> <td>CIPD package name</td> <td>[[_result.cipd_pins.client_package .package_name]]</td> </tr> </template> <tr hidden$="[[_not(_request.properties.c ipd_input)]]"> <td rowspan$="[[_cipdRowspan(_request,_result)]]">CIPD packages</ td> </tr> <template is="dom-repeat" items="[[_cipdPackages(_request,_result)]]" as="cipd"> <tr> <td>[[cipd.path]]/</td> </tr> <tr> <td><b>Requested:</b>[[cipd.r equested]]</td> </tr> <tr hidden$="[[_wasNotPickedUp(_result)]]"> <td><b>Actual: </b>[[cipd.actual]]</td> </tr> </template> </template> </tbody></table> <div cla ss="title">Task Execution</div> <template is="dom-if" if="[[_wasPickedUp(_result )]]"> <table> <tbody><tr> <td>Bot assigned to task</td> <td><a href$="[[_botLink (_result.bot_id)]]">[[_result.bot_id]]</a></td> </tr> <tr> <td rowspan$="[[_rows pan(_result.bot_dimensions)]]"> <a>Bot Dimensions</a> </td> </tr> <template is=" dom-repeat" items="[[_result.bot_dimensions]]" as="dimension"> <tr> <td><b>[[dim ension.key]]:</b> [[_alias(dimension)]]</td> </tr> </template> <tr> <td>Exit cod e</td> <td>[[_result.exit_code]]</td> </tr> <tr> <td>Try number</td> <td>[[_resu lt.try_number]]</td> </tr> <tr> <td>Failure</td> <td class$="[[_failureClass(_re sult.failure)]]">[[_result.failure]]</td> </tr> <tr> <td>Internal Failure</td> < td class$="[[_internalClass(_result.internal_failure)]]">[[_result.internal_fail ure]]</td> </tr> <tr> <td>Isolated Outputs</td> <td> <a href$="[[_isolateLink(_r esult.outputs_ref)]]"> [[_result.outputs_ref.isolated]] </a> </td> </tr> <tr> <t d>Bot version</td> <td>[[_result.bot_version]]</td> </tr> <tr> <td>Server versio n</td> <td>[[_result.server_versions]]</td> </tr> </tbody></table> </template> < template is="dom-if" if="[[_wasNotPickedUp(_result)]]"> This space left blank un til a bot is assigned to the task. </template> <template is="dom-if" if="[[_resu lt.performance_stats]]"> <div class="title">Performance Stats</div> <table> <tbo dy><tr> <td title="This includes time taken to download inputs, isolate outputs, and setup CIPD">Total Overhead</td> <td>[[_humanDuration(_result.performance_st ats.bot_overhead)]]</td> </tr> <tr> <td>Downloading Inputs From Isolate</td> <td >[[_humanDuration(_result.performance_stats.isolated_download.duration)]]</td> < /tr> <tr> <td>Uploading Outputs To Isolate</td> <td>[[_humanDuration(_result.per formance_stats.isolated_upload.duration)]]</td> </tr> <tr> <td>Initial bot cache </td> <td>[[_result.performance_stats.isolated_download.initial_number_items]] i tems; [[_bytes(_result.performance_stats.isolated_download.initial_size)]]</td> </tr> </tbody></table> </template> </div> <div class="flex right"> <div class="h orizontal layout"> <div class="tabs"> <paper-tabs selected="{{_show_raw}}" no-ba r=""> <paper-tab disabled$="[[_noMilo(_request)]]">Milo Output</paper-tab> <pape r-tab>Raw Output</paper-tab> </paper-tabs> </div> <paper-input class="refresh_in put" label="Refresh Interval (seconds)" value="{{_refresh_interval}}" auto-valid ate="" min="1" max="1000" pattern="[0-9]+"> </paper-input> </div> <template is=" dom-if" if="[[_supportsMilo(_request,_show_raw)]]"> <iframe id="miloFrame" class ="milo tabbed" src$="[[_getMiloLink(milo_prefix,task_id)]]"></iframe> </template > <template is="dom-if" if="[[_show_raw]]"> <div class="code stdout tabbed">[[_s tdout]]</div> </template> </div> </div> </div> </swarming-app> <paper-dialog id= "prompt" modal="" on-iron-overlay-closed="_promptClosed"> <h2>Are you sure?</h2> <div>Are you sure you want to [[_dialogPrompt]]?</div> <div class="buttons"> <p aper-button dialog-dismiss="" autofocus="">No</paper-button> <paper-button dialo g-confirm="">Yes</paper-button> </div> </paper-dialog> <error-toast></error-toas t> <interval-timer period="[[_refresh_interval]]" on-trigger="_refreshOutput"> < /interval-timer> </template> <script>!function(){Polymer({is:"task-page",behavio rs:[SwarmingBehaviors.CommonBehavior,SwarmingBehaviors.TaskBehavior],properties: {task_id:{type:String},client_id:{type:String},milo_prefix:{type:String},_dialog Prompt:{type:String,value:""},_refresh_interval:{type:Number},_request:{type:Obj ect,observer:"_requestUpdated"},_request_detail:{type:Boolean},_result:{type:Obj ect},_stdout:{type:String}},_alias:function(t){var e=t.value;return Array.isArra y(e)||(e=[e]),swarming.alias.has(t.key)&&e.forEach(function(i,s){e[s]=swarming.a lias.apply(i,t.key)}),e.join(" | ")},_bytes:function(t){return sk.human.bytes(t) },_canCancelTask:function(t,e){return t&&"PENDING"===t.state&&e.cancel_task},_ca ncelTask:function(){var t="/_ah/api/swarming/v1/task/"+this.task_id+"/cancel";sw arming.postWithToast(t,"Canceling task "+this.task_id,this._auth_headers)},_cipd Rowspan:function(t,e){if(!t||!t.properties||!t.properties.cipd_input)return 0;va r i=(t.properties.cipd_input.packages||[]).length;return i*=e&&e.cipd_pins&&e.ci pd_pins.packages?3:2,i+1},_cipdPackages:function(t,e){if(!t||!t.properties||!t.p roperties.cipd_input)return[];var i=t.properties.cipd_input.packages||[],s=e&&e. cipd_pins&&e.cipd_pins.packages||[];return i.forEach(function(t){t.requested=t.p ackage_name+":"+t.version,s.forEach(function(e){e.path===t.path&&(t.actual=e.pac kage_name+":"+e.version)})}),i},_expires:function(t){var e=parseInt(t.expiration _secs);return e?sk.human.localeTime(new Date(t.created_ts.getTime()+1e3*e)):t.ex piration_secs+" seconds from created time"},_extraArgs:function(t){if(!t||!t.pro perties)return"";var e=t.properties.extra_args||[];return e.join(" ")},_failureC lass:function(t){return t?"failed_task":""},_getMiloLink:function(t,e){if(t)retu rn t+e},_internalClass:function(t){return t?"exception":""},_isolateLink:functio n(t){if(t&&t.isolatedserver)return t.isolatedserver+"/browse?namespace="+t.names pace+"&hash="+t.isolated},_noMilo:function(t){return!this._tag(t,"allow_milo")}, _pending:function(t){if(!t.created_ts)return"";var e=t.started_ts||t.abandoned_t s||new Date;return e<=t.created_ts?"0s":this._timeDiffExact(t.created_ts,e)},_pr omptClosed:function(t){t.detail.confirmed&&(this._dialogPrompt.startsWith("cance l")?this._cancelTask():this._retryTask())},_promptCancel:function(){this.set("_d ialogPrompt","cancel task "+this.task_id),this.$.prompt.open()},_promptRetry:fun ction(){this.set("_dialogPrompt","retry task "+this.task_id),this.$.prompt.open( )},_refresh:function(){this.$.data.reload()},_refreshOutput:function(){this.$.da ta.reloadStdout();var t=this.$$("iframe");t&&(t.src=this._getMiloLink(this.milo_ prefix,this.task_id))},_requestUpdated:function(t){this._noMilo(t)&&this.set("_s how_raw",1)},_retryTask:function(){if(!this._request)return void sk.errorMessage ("Task not yet loaded",3e3);var t={expiration_secs:this._request.expiration_secs ,name:this._request.name+" (retry)",parent_task_id:this._request.parent_task_id, priority:this._request.priority,properties:this._request.properties,tags:this._r equest.tags,user:this._profile.email,service_account:this._request.service_accou nt};swarming.postWithToast("/_ah/api/swarming/v1/tasks/new","Retrying task "+thi s.task_id,this._auth_headers,t).then(function(t){t=JSON.parse(t),t&&t.task_id&&t his.set("task_id",t.task_id)}.bind(this),function(t){console.log("Task could not be retried",t)})},_rowspan:function(t){return t=t||[],t.length+1},_supportsMilo :function(t,e){return!e&&t&&this._tag(t,"allow_milo")},_state:function(t){return t?t.state===this.COMPLETED?t.failure?this.COMPLETED_FAILURE:"0"===t.try_number? this.COMPLETED_DEDUPED:this.COMPLETED_SUCCESS:t.state:""},_stateClass:function(t ){return this.stateClass(this._state(t))},_toggleDetails:function(){this.set("_r equest_detail",!this._request_detail)},_tag:function(t,e){if(t&&t.tagMap)return t.tagMap[e]},_wasPickedUp:function(t){return t&&t.state!==this.PENDING&&t.state! ==this.CANCELED&&t.state!=this.EXPIRED},_wasNotPickedUp:function(t){return t&&!t his._wasPickedUp(t)}})}()</script> </dom-module></div></body></html> 473 })(); </script> </dom-module><dom-module id="interval-timer" assetpath="/res/i mp/common/"> <script>!function(){Polymer({is:"interval-timer",properties:{period :{type:Number,value:-1,observer:"_periodChanged"}},_periodChanged:function(e){th is._timeout&&window.clearTimeout(this._timeout),e>0&&(this._timeout=window.setTi meout(function(){this.fire("trigger"),this._periodChanged(e)}.bind(this),1e3*e)) }})}()</script> </dom-module> <dom-module id="task-page-data" assetpath="/res/im p/taskpage/"> <script>!function(){var t,e=400,s=["abandoned_ts","completed_ts"," created_ts","modified_ts","started_ts"];Polymer({is:"task-page-data",behaviors:[ SwarmingBehaviors.CommonBehavior,SwarmingBehaviors.TaskBehavior],properties:{aut h_headers:{type:Object},task_id:{type:String},busy:{type:Boolean,computed:"_or(_ busy1,_busy2,_busy3)",notify:!0},request:{type:Object,computed:"_parseRequest(_r equest)",notify:!0},result:{type:Object,computed:"_parseResult(_result)",notify: !0},stdout:{type:String,computed:"_parseStdout(_stdout)",notify:!0},_busy1:{type :Boolean,value:!1},_busy2:{type:Boolean,value:!1},_busy3:{type:Boolean,value:!1} ,_request:{type:Object},_result:{type:Object},_stdout:{type:Object}},observers:[ "reload(auth_headers,task_id)"],reload:function(){if(!this.task_id||!this.auth_h eaders)return void console.log("task_id and auth_headers can't be empty");t&&thi s.cancelAsync(t);var s="/_ah/api/swarming/v1/task/"+this.task_id;t=this.async(fu nction(){t=void 0,this._getJsonAsync("_request",s+"/request","_busy1",this.auth_ headers),this._getJsonAsync("_result",s+"/result?include_performance_stats=true" ,"_busy2",this.auth_headers),this.reloadStdout()},e)},_parseRequest:function(t){ return t?(t.tagMap={},t.tags=t.tags||[],t.tags.forEach(function(e){var s=e.split (":",1),a=s[0],u=e.substring(a.length+1);t.tagMap[a]=u}),s.forEach(function(e){t [e]&&(t[e]=new Date(t[e]),t["human_"+e]=sk.human.localeTime(t[e]))}),t):{}},_par seResult:function(t){if(!t)return{};var e=new Date;return s.forEach(function(e){ t[e]&&(t[e]=new Date(t[e]),t["human_"+e]=sk.human.localeTime(t[e]))}),!t.duratio n&&t.state===this.RUNNING&&t.started_ts&&(t.duration=(e-t.started_ts)/1e3),t.dur ation&&(t.human_duration=this._humanDuration(t.duration)),t},_parseStdout:functi on(t){return t&&t.output?t.output:"[No output yet]"},reloadStdout:function(){thi s._getJsonAsync("_stdout","/_ah/api/swarming/v1/task/"+this.task_id+"/stdout","_ busy3",this.auth_headers)}})}()</script> </dom-module><dom-module id="task-page" assetpath="/res/imp/taskpage/"> <template> <style include="iron-flex iron-flex- alignment swarming-app-style single-page-style task-style">.milo{width:calc(100% - 11px);height:2000px}.left{min-width:550px}.right{min-width:500px;margin-top:8 px}.expand{min-width:3em;vertical-align:middle;padding:.5em}.code{font-family:mo nospace}.stdout{white-space:pre-line;padding:2px}.refresh_input{padding:0 5px}.t abbed{border:3px solid #1F78B4;margin-left:5px;min-height:80vh}</style> <url-par am name="id" value="{{task_id}}"> </url-param> <url-param name="request_detail" value="{{_request_detail}}"> </url-param> <url-param name="show_raw" value="{{_s how_raw}}"> </url-param> <url-param name="refresh" value="{{_refresh_interval}}" default_value="10"> </url-param> <swarming-app client_id="[[client_id]]" auth_h eaders="{{_auth_headers}}" permissions="{{_permissions}}" profile="{{_profile}}" signed_in="{{_signed_in}}" busy="[[_busy]]" name="Swarming Task Page"> <h2 hidd en$="[[_signed_in]]">You must sign in to see anything useful.</h2> <div hidden$= "[[_not(_signed_in)]]"> <task-page-data id="data" auth_headers="[[_auth_headers] ]" refresh_interval="[[_refresh_interval]]" task_id="[[task_id]]" busy="{{_busy} }" request="{{_request}}" result="{{_result}}" stdout="{{_stdout}}"> </task-page -data> <div class="horizontal layout wrap"> <div class="left flex"> <div class=" horizontal layout"> <paper-input class="id_input" label="Task id" value="{{task_ id}}"></paper-input> <button on-click="_refresh"> <iron-icon class="refresh" ico n="icons:refresh"></iron-icon> </button> <button on-click="_promptRetry">Retry</ button> <template is="dom-if" if="[[_canCancelTask(_result,_permissions)]]"> <bu tton on-click="_promptCancel">Cancel</button> </template> </div> <table> <tbody> <tr> <td>Name</td> <td>[[_request.name]]</td> </tr> <tr> <td>State</td> <td clas s$="[[_stateClass(_result)]]">[[_state(_result)]]</td> </tr> <tr> <td>Created</t d> <td title$="[[_request.created_ts]]">[[_request.human_created_ts]]</td> </tr> <template is="dom-if" if="[[_wasPickedUp(_result)]]"> <tr> <td>Started</td> <td title$="[[_result.started_ts]]">[[_result.human_started_ts]]</td> </tr> </templ ate> <template is="dom-if" if="[[_wasNotPickedUp(_result)]]"> <tr> <td>Expires</ td> <td>[[_expires(_request)]]</td> </tr> </template> <template is="dom-if" if=" [[_result.human_completed_ts]]"> <tr> <td>Completed</td> <td title$="[[_result.c ompleted_ts]]">[[_result.human_completed_ts]]</td> </tr> </template> <template i s="dom-if" if="[[_result.human_abandoned_ts]]"> <tr> <td>Abandoned</td> <td titl e$="[[_result.abandoned_ts]]">[[_result.human_abandoned_ts]]</td> </tr> </templa te> <tr> <td>Last Updated</td> <td title$="[[_result.modified_ts]]">[[_result.hu man_modified_ts]]</td> </tr> <template is="dom-if" if="[[_result.deduped_from]]" > <tr> <td><b>Deduped from</b></td> <td> <a href$="[[_taskLink(_result.deduped_f rom)]]"> [[_result.deduped_from]] </a> </td> </tr> </template> <tr> <td>Pending Time</td> <td>[[_pending(_result)]]</td> </tr> <tr> <td>Duration</td> <td>[[_res ult.human_duration]]</td> </tr> <tr> <td>Priority</td> <td>[[_request.priority]] </td> </tr> <tr> <td>User</td> <td>[[_request.user]]</td> </tr> <tr> <td>Authent icated</td> <td>[[_request.authenticated]]</td> </tr> <template is="dom-if" if=" [[_request.service_account]]"> <tr> <td>Service Account</td> <td>[[_request.serv ice_account]]</td> </tr> </template> <template is="dom-if" if="[[_request.proper ties.secret_bytes]]"> <tr> <td>Secret Bytes</td> <td>[[_request.properties.secre t_bytes]]</td> </tr> </template> <template is="dom-if" if="[[_request.parent_tas k_id]]"> <tr> <td>Parent Task</td> <td> <a href$="[[_taskLink(_request.parent_ta sk_id)]]">[[_request.parent_task_id]]</a> </td> </tr> </template> <tr> <td rowsp an$="[[_rowspan(_request.properties.dimensions)]]"> <a title="The list of bots t hat matches the list of dimensions" href$="[[_botListLink(_request.properties.di mensions)]]"> Requested Dimensions </a> </td> </tr> <template is="dom-repeat" it ems="{{_request.properties.dimensions}}" as="dimension"> <tr> <td><b>[[dimension .key]]:</b> [[_alias(dimension)]]</td> </tr> </template> <tr> <td>Isolated Input s</td> <td> <a href$="[[_isolateLink(_request.properties.inputs_ref)]]"> [[_requ est.properties.inputs_ref.isolated]] </a> </td> </tr> <template is="dom-if" if=" [[_not(_request_detail)]]"> <tr> <td>More Details</td> <td> <button on-click="_t oggleDetails"> <iron-icon icon="icons:add-circle-outline"></iron-icon> </button> </td> </tr> </template> <template is="dom-if" if="[[_request_detail]]"> <tr> <t d>Hide Details</td> <td> <button on-click="_toggleDetails"> <iron-icon icon="ico ns:remove-circle-outline"></iron-icon> </button> </td> </tr> </template> <templa te is="dom-if" if="[[_request_detail]]"> <tr> <td>Extra Args</td> <td class="cod e">[[_extraArgs(_request)]]</td> </tr> <tr> <td rowspan$="[[_rowspan(_request.ta gs)]]">Tags</td> </tr> <template is="dom-repeat" items="{{_request.tags}}" as="t ag"> <tr> <td>[[tag]]</td> </tr> </template> <tr> <td>Execution timeout</td> <td >[[_humanDuration(_request.properties.execution_timeout_secs)]]</td> </tr> <tr> <td>I/O timeout</td> <td>[[_humanDuration(_request.properties.io_timeout_secs)]] </td> </tr> <tr> <td>Grace period</td> <td>[[_humanDuration(_request.properties. grace_period_secs)]]</td> </tr> <tr> <td>CIPD server</td> <td> <a href$="[[_requ est.properties.cipd_input.server]]"> [[_request.properties.cipd_input.server]] < /a> </td> </tr> <tr> <td>CIPD version</td> <td>[[_request.properties.cipd_input. client_package.version]]</td> </tr> <template is="dom-if" if="[[_wasPickedUp(_re sult)]]"> <tr> <td>CIPD package name</td> <td>[[_result.cipd_pins.client_package .package_name]]</td> </tr> </template> <tr hidden$="[[_not(_request.properties.c ipd_input)]]"> <td rowspan$="[[_cipdRowspan(_request,_result)]]">CIPD packages</ td> </tr> <template is="dom-repeat" items="[[_cipdPackages(_request,_result)]]" as="cipd"> <tr> <td>[[cipd.path]]/</td> </tr> <tr> <td><b>Requested:</b>[[cipd.r equested]]</td> </tr> <tr hidden$="[[_wasNotPickedUp(_result)]]"> <td><b>Actual: </b>[[cipd.actual]]</td> </tr> </template> </template> </tbody></table> <div cla ss="title">Task Execution</div> <template is="dom-if" if="[[_wasPickedUp(_result )]]"> <table> <tbody><tr> <td>Bot assigned to task</td> <td><a href$="[[_botLink (_result.bot_id)]]">[[_result.bot_id]]</a></td> </tr> <tr> <td rowspan$="[[_rows pan(_result.bot_dimensions)]]"> <a>Bot Dimensions</a> </td> </tr> <template is=" dom-repeat" items="[[_result.bot_dimensions]]" as="dimension"> <tr> <td><b>[[dim ension.key]]:</b> [[_alias(dimension)]]</td> </tr> </template> <tr> <td>Exit cod e</td> <td>[[_result.exit_code]]</td> </tr> <tr> <td>Try number</td> <td>[[_resu lt.try_number]]</td> </tr> <tr> <td>Failure</td> <td class$="[[_failureClass(_re sult.failure)]]">[[_result.failure]]</td> </tr> <tr> <td>Internal Failure</td> < td class$="[[_internalClass(_result.internal_failure)]]">[[_result.internal_fail ure]]</td> </tr> <tr> <td>Isolated Outputs</td> <td> <a href$="[[_isolateLink(_r esult.outputs_ref)]]"> [[_result.outputs_ref.isolated]] </a> </td> </tr> <tr> <t d>Bot version</td> <td>[[_result.bot_version]]</td> </tr> <tr> <td>Server versio n</td> <td>[[_result.server_versions]]</td> </tr> </tbody></table> </template> < template is="dom-if" if="[[_wasNotPickedUp(_result)]]"> This space left blank un til a bot is assigned to the task. </template> <template is="dom-if" if="[[_resu lt.performance_stats]]"> <div class="title">Performance Stats</div> <table> <tbo dy><tr> <td title="This includes time taken to download inputs, isolate outputs, and setup CIPD">Total Overhead</td> <td>[[_humanDuration(_result.performance_st ats.bot_overhead)]]</td> </tr> <tr> <td>Downloading Inputs From Isolate</td> <td >[[_humanDuration(_result.performance_stats.isolated_download.duration)]]</td> < /tr> <tr> <td>Uploading Outputs To Isolate</td> <td>[[_humanDuration(_result.per formance_stats.isolated_upload.duration)]]</td> </tr> <tr> <td>Initial bot cache </td> <td>[[_result.performance_stats.isolated_download.initial_number_items]] i tems; [[_bytes(_result.performance_stats.isolated_download.initial_size)]]</td> </tr> </tbody></table> </template> </div> <div class="flex right"> <div class="h orizontal layout"> <div class="tabs"> <paper-tabs selected="{{_show_raw}}" no-ba r=""> <paper-tab disabled$="[[_noMilo(_request)]]">Milo Output</paper-tab> <pape r-tab>Raw Output</paper-tab> </paper-tabs> </div> <paper-input class="refresh_in put" label="Refresh Interval (seconds)" value="{{_refresh_interval}}" auto-valid ate="" min="1" max="1000" pattern="[0-9]+"> </paper-input> </div> <template is=" dom-if" if="[[_supportsMilo(_request,_show_raw)]]"> <iframe id="miloFrame" class ="milo tabbed" src$="[[_getMiloLink(milo_prefix,task_id)]]"></iframe> </template > <template is="dom-if" if="[[_show_raw]]"> <div class="code stdout tabbed">[[_s tdout]]</div> </template> </div> </div> </div> </swarming-app> <paper-dialog id= "prompt" modal="" on-iron-overlay-closed="_promptClosed"> <h2>Are you sure?</h2> <div>Are you sure you want to [[_dialogPrompt]]?</div> <div class="buttons"> <p aper-button dialog-dismiss="" autofocus="">No</paper-button> <paper-button dialo g-confirm="">Yes</paper-button> </div> </paper-dialog> <error-toast></error-toas t> <interval-timer period="[[_refresh_interval]]" on-trigger="_refreshOutput"> < /interval-timer> </template> <script>!function(){Polymer({is:"task-page",behavio rs:[SwarmingBehaviors.CommonBehavior,SwarmingBehaviors.TaskBehavior],properties: {task_id:{type:String},client_id:{type:String},milo_prefix:{type:String},_dialog Prompt:{type:String,value:""},_refresh_interval:{type:Number},_request:{type:Obj ect,observer:"_requestUpdated"},_request_detail:{type:Boolean},_result:{type:Obj ect},_stdout:{type:String}},_alias:function(t){var e=t.value;return Array.isArra y(e)||(e=[e]),swarming.alias.has(t.key)&&e.forEach(function(i,s){e[s]=swarming.a lias.apply(i,t.key)}),e.join(" | ")},_bytes:function(t){return sk.human.bytes(t) },_canCancelTask:function(t,e){return t&&"PENDING"===t.state&&e.cancel_task},_ca ncelTask:function(){var t="/_ah/api/swarming/v1/task/"+this.task_id+"/cancel";sw arming.postWithToast(t,"Canceling task "+this.task_id,this._auth_headers)},_cipd Rowspan:function(t,e){if(!t||!t.properties||!t.properties.cipd_input)return 0;va r i=(t.properties.cipd_input.packages||[]).length;return i*=e&&e.cipd_pins&&e.ci pd_pins.packages?3:2,i+1},_cipdPackages:function(t,e){if(!t||!t.properties||!t.p roperties.cipd_input)return[];var i=t.properties.cipd_input.packages||[],s=e&&e. cipd_pins&&e.cipd_pins.packages||[];return i.forEach(function(t){t.requested=t.p ackage_name+":"+t.version,s.forEach(function(e){e.path===t.path&&(t.actual=e.pac kage_name+":"+e.version)})}),i},_expires:function(t){var e=parseInt(t.expiration _secs);return e?sk.human.localeTime(new Date(t.created_ts.getTime()+1e3*e)):t.ex piration_secs+" seconds from created time"},_extraArgs:function(t){if(!t||!t.pro perties)return"";var e=t.properties.extra_args||[];return e.join(" ")},_failureC lass:function(t){return t?"failed_task":""},_getMiloLink:function(t,e){if(t)retu rn t+e},_internalClass:function(t){return t?"exception":""},_isolateLink:functio n(t){if(t&&t.isolatedserver)return t.isolatedserver+"/browse?namespace="+t.names pace+"&hash="+t.isolated},_noMilo:function(t){return!this._tag(t,"allow_milo")}, _pending:function(t){if(!t.created_ts)return"";var e=t.started_ts||t.abandoned_t s||new Date;return e<=t.created_ts?"0s":this._timeDiffExact(t.created_ts,e)},_pr omptClosed:function(t){t.detail.confirmed&&(this._dialogPrompt.startsWith("cance l")?this._cancelTask():this._retryTask())},_promptCancel:function(){this.set("_d ialogPrompt","cancel task "+this.task_id),this.$.prompt.open()},_promptRetry:fun ction(){this.set("_dialogPrompt","retry task "+this.task_id),this.$.prompt.open( )},_refresh:function(){this.$.data.reload()},_refreshOutput:function(){this.$.da ta.reloadStdout();var t=this.$$("iframe");t&&(t.src=this._getMiloLink(this.milo_ prefix,this.task_id))},_requestUpdated:function(t){this._noMilo(t)&&this.set("_s how_raw",1)},_retryTask:function(){if(!this._request)return void sk.errorMessage ("Task not yet loaded",3e3);var t={expiration_secs:this._request.expiration_secs ,name:this._request.name+" (retry)",parent_task_id:this._request.parent_task_id, priority:this._request.priority,properties:this._request.properties,tags:this._r equest.tags,user:this._profile.email,service_account:this._request.service_accou nt};swarming.postWithToast("/_ah/api/swarming/v1/tasks/new","Retrying task "+thi s.task_id,this._auth_headers,t).then(function(t){t=JSON.parse(t),t&&t.task_id&&t his.set("task_id",t.task_id)}.bind(this),function(t){console.log("Task could not be retried",t)})},_rowspan:function(t){return t=t||[],t.length+1},_supportsMilo :function(t,e){return!e&&t&&this._tag(t,"allow_milo")},_state:function(t){return t?t.state===this.COMPLETED?t.failure?this.COMPLETED_FAILURE:"0"===t.try_number? this.COMPLETED_DEDUPED:this.COMPLETED_SUCCESS:t.state:""},_stateClass:function(t ){return this.stateClass(this._state(t))},_toggleDetails:function(){this.set("_r equest_detail",!this._request_detail)},_tag:function(t,e){if(t&&t.tagMap)return t.tagMap[e]},_wasPickedUp:function(t){return t&&t.state!==this.PENDING&&t.state! ==this.CANCELED&&t.state!=this.EXPIRED},_wasNotPickedUp:function(t){return t&&!t his._wasPickedUp(t)}})}()</script> </dom-module></div></body></html>
OLDNEW
« no previous file with comments | « no previous file | appengine/swarming/elements/build/js/js.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698