29 Polymer={},"function"==typeof window.Polymer&&(Polymer={}),function(a){function
b(a,b){return a&&b&&Object.getOwnPropertyNames(b).forEach(function(c){var d=Obje
ct.getOwnPropertyDescriptor(b,c);d&&(Object.defineProperty(a,c,d),"function"==ty
peof d.value&&(d.value.nom=c))}),a}a.extend=b}(Polymer),function(a){function b(a
,b,d){return a?a.stop():a=new c(this),a.go(b,d),a}var c=function(a){this.context
=a};c.prototype={go:function(a,b){this.callback=a,this.handle=setTimeout(this.co
mplete.bind(this),b)},stop:function(){this.handle&&(clearTimeout(this.handle),th
is.handle=null)},complete:function(){this.handle&&(this.stop(),this.callback.cal
l(this.context))}},a.job=b}(Polymer),function(){var a={};HTMLElement.register=fu
nction(b,c){a[b]=c},HTMLElement.getPrototypeForTag=function(b){var c=b?a[b]:HTML
Element.prototype;return c||Object.getPrototypeOf(document.createElement(b))};va
r b=Event.prototype.stopPropagation;Event.prototype.stopPropagation=function(){t
his.cancelBubble=!0,b.apply(this,arguments)},HTMLImports.importer.preloadSelecto
rs+=", polymer-element link[rel=stylesheet]"}(Polymer),function(a){function b(a)
{var c=b.caller,g=c.nom,h=c._super;if(h||(g||(g=c.nom=e.call(this,c)),g||console
.warn("called super() on a method not installed declaratively (has no .nom prope
rty)"),h=d(c,g,f(this))),h){var i=h[g];return i._super||d(i,g,h),i.apply(this,a|
|[])}}function c(a,b,c){for(;a;){if(a[b]!==c&&a[b])return a;a=f(a)}}function d(a
,b,d){return a._super=c(d,b,a),a._super&&(a._super[b].nom=b),a._super}function e
(a){for(var b=this.__proto__;b&&b!==HTMLElement.prototype;){for(var c,d=Object.g
etOwnPropertyNames(b),e=0,f=d.length;f>e&&(c=d[e]);e++){var g=Object.getOwnPrope
rtyDescriptor(b,c);if("function"==typeof g.value&&g.value===a)return c}b=b.__pro
to__}}function f(a){return a.__proto__}a.super=b}(Polymer),function(a){function
b(a,b){var d=typeof b;return b instanceof Date&&(d="date"),c[d](a,b)}var c={stri
ng:function(a){return a},date:function(a){return new Date(Date.parse(a)||Date.no
w())},"boolean":function(a){return""===a?!0:"false"===a?!1:!!a},number:function(
a){var b=parseFloat(a);return 0===b&&(b=parseInt(a)),isNaN(b)?a:b},object:functi
on(a,b){if(null===b)return a;try{return JSON.parse(a.replace(/'/g,'"'))}catch(c)
{return a}},"function":function(a,b){return b}};a.deserializeValue=b}(Polymer),f
unction(a){var b={};b.declaration={},b.instance={},a.api=b}(Polymer),function(a)
{var b={async:function(a,b,c){Platform.flush(),b=b&&b.length?b:[b];var d=functio
n(){(this[a]||a).apply(this,b)}.bind(this);return c?setTimeout(d,c):requestAnima
tionFrame(d)},fire:function(a,b,c,d){var e=c||this;return e.dispatchEvent(new Cu
stomEvent(a,{bubbles:void 0!==d?d:!0,detail:b})),b},asyncFire:function(){this.as
ync("fire",arguments)},classFollows:function(a,b,c){b&&b.classList.remove(c),a&&
a.classList.add(c)}},c=function(){},d={};b.asyncMethod=b.async,a.api.instance.ut
ils=b,a.nop=c,a.nob=d}(Polymer),function(a){function b(a){for(;a.parentNode;)a=a
.parentNode;return a.host}var c=window.logFlags||{},d="on-",e={EVENT_PREFIX:d,ha
sEventPrefix:function(a){return a&&"o"===a[0]&&"n"===a[1]&&"-"===a[2]},removeEve
ntPrefix:function(a){return a.slice(f)},addHostListeners:function(){var a=this.e
ventDelegates;c.events&&Object.keys(a).length>0&&console.log("[%s] addHostListen
ers:",this.localName,a),this.addNodeListeners(this,a,this.hostEventListener)},ad
dNodeListeners:function(a,b,c){var d;for(var e in b)d||(d=c.bind(this)),this.add
NodeListener(a,e,d)},addNodeListener:function(a,b,c){a.addEventListener(b,c)},ho
stEventListener:function(a){if(!a.cancelBubble){c.events&&console.group("[%s]: h
ostEventListener(%s)",this.localName,a.type);var b=this.findEventDelegate(a);b&&
(c.events&&console.log("[%s] found host handler name [%s]",this.localName,b),thi
s.dispatchMethod(this,b,[a,a.detail,this])),c.events&&console.groupEnd()}},findE
ventDelegate:function(a){return this.eventDelegates[a.type]},dispatchMethod:func
tion(a,b,d){if(a){c.events&&console.group("[%s] dispatch [%s]",a.localName,b);va
r e="function"==typeof b?b:a[b];e&&e[d?"apply":"call"](a,d),c.events&&console.gr
oupEnd(),Platform.flush()}},prepareBinding:function(a,d){return e.hasEventPrefix
(d)?function(f,g){c.events&&console.log('event: [%s].%s => [%s].%s()"',g.localNa
me,f.localName,a);var h=function(c){var d=b(g);if(d&&d.dispatchMethod){var e=d,h
=a;"@"==a[0]&&(e=f,h=Path.get(a.slice(1)).getValueFrom(f)),d.dispatchMethod(e,h,
[c,c.detail,g])}},i=e.removeEventPrefix(d);return{open:function(){g.addEventList
ener(i,h,!1)},close:function(){c.events&&console.log('event.remove: [%s].%s => [
%s].%s()"',g.localName,d,f.localName,a),g.removeEventListener(i,h,!1)},discardCh
anges:function(){}}}:void 0}},f=d.length;a.api.instance.events=e}(Polymer),funct
ion(a){var b={copyInstanceAttributes:function(){var a=this._instanceAttributes;f
or(var b in a)this.hasAttribute(b)||this.setAttribute(b,a[b])},takeAttributes:fu
nction(){if(this._publishLC)for(var a,b=0,c=this.attributes,d=c.length;(a=c[b])&
&d>b;b++)this.attributeToProperty(a.name,a.value)},attributeToProperty:function(
b,c){var b=this.propertyForAttribute(b);if(b){if(c&&c.search(a.bindPattern)>=0)r
eturn;var d=this[b],c=this.deserializeValue(c,d);c!==d&&(this[b]=c)}},propertyFo
rAttribute:function(a){var b=this._publishLC&&this._publishLC[a];return b},deser
ializeValue:function(b,c){return a.deserializeValue(b,c)},serializeValue:functio
n(a,b){return"boolean"===b?a?"":void 0:"object"!==b&&"function"!==b&&void 0!==a?
a:void 0},reflectPropertyToAttribute:function(a){var b=typeof this[a],c=this.ser
ializeValue(this[a],b);void 0!==c?this.setAttribute(a,c):"boolean"===b&&this.rem
oveAttribute(a)}};a.api.instance.attributes=b}(Polymer),function(a){function b(a
,b,d){c.bind&&console.log(e,inB.localName||"object",inPath,a.localName,b);var f=
d.discardChanges();return(null===f||void 0===f)&&d.setValue(a[b]),Observer.defin
eComputedProperty(a,b,d)}var c=window.logFlags||{},d={observeProperties:function
(){var a=this._observeNames,b=this._publishNames;if(a&&a.length||b&&b.length){fo
r(var c,d=this._propertyObserver=new CompoundObserver,e=0,f=a.length;f>e&&(c=a[e
]);e++){d.addPath(this,c);var g=Object.getOwnPropertyDescriptor(this.__proto__,c
);g&&g.value&&this.observeArrayValue(c,g.value,null)}for(var c,e=0,f=b.length;f>
e&&(c=b[e]);e++)this.observe&&void 0!==this.observe[c]||d.addPath(this,c);d.open
(this.notifyPropertyChanges,this)}},notifyPropertyChanges:function(a,b,c){var d,
e,f={};for(var g in b)d=c[2*g+1],void 0!==this.publish[d]&&this.reflectPropertyT
oAttribute(d),e=this.observe[d],e&&(this.observeArrayValue(d,a[g],b[g]),f[e]||(f
[e]=!0,this.invokeMethod(e,[b[g],a[g],arguments])))},observeArrayValue:function(
a,b,d){var e=this.observe[a];if(e&&(Array.isArray(d)&&(c.observe&&console.log("[
%s] observeArrayValue: unregister observer [%s]",this.localName,a),this.unregist
erObserver(a+"__array")),Array.isArray(b))){c.observe&&console.log("[%s] observe
ArrayValue: register observer [%s]",this.localName,a,b);var f=new ArrayObserver(
b);f.open(function(a,b){this.invokeMethod(e,[b])},this),this.registerObserver(a+
"__array",f)}},bindProperty:function(a,c){return b(this,a,c)},unbindAllPropertie
s:function(){this._propertyObserver&&this._propertyObserver.close(),this.unregis
terObservers()},unbindProperty:function(a){return this.unregisterObserver(a)},in
vokeMethod:function(a,b){var c=this[a]||a;"function"==typeof c&&c.apply(this,b)}
,registerObserver:function(a,b){var c=this._observers||(this._observers={});c[a]
=b},unregisterObserver:function(a){var b=this._observers;return b&&b[a]?(b[a].cl
ose(),b[a]=null,!0):void 0},unregisterObservers:function(){if(this._observers){f
or(var a,b,c=Object.keys(this._observers),d=0,e=c.length;e>d&&(a=c[d]);d++)b=thi
s._observers[a],b.close();this._observers={}}}},e="[%s]: bindProperties: [%s] to
[%s].[%s]";a.api.instance.properties=d}(Polymer),function(a){function b(a){d(a,
c)}function c(a){a.unbindAll()}function d(a,b){if(a){b(a);for(var c=a.firstChild
;c;c=c.nextSibling)d(c,b)}}var e=window.logFlags||0,f=a.api.instance.events,g=Po
lymerExpressions.prototype.prepareBinding;PolymerExpressions.prototype.prepareBi
nding=function(a,b,c){return f.prepareBinding(a,b,c)||g.call(this,a,b,c)};var h=
new PolymerExpressions,i={syntax:h,instanceTemplate:function(a){return a.createI
nstance(this,this.syntax)},bind:function(a,b){this._elementPrepared||this.prepar
eElement();var c=this.propertyForAttribute(a);if(c){this.unbind(a);var d=this.bi
ndProperty(c,b);return d.path=b.path_,this.reflectPropertyToAttribute(c),this.bi
ndings[a]=d}return this.super(arguments)},asyncUnbindAll:function(){this._unboun
d||(e.unbind&&console.log("[%s] asyncUnbindAll",this.localName),this._unbindAllJ
ob=this.job(this._unbindAllJob,this.unbindAll,0))},unbindAll:function(){if(!this
._unbound){this.unbindAllProperties(),this.super();for(var a=this.shadowRoot;a;)
b(a),a=a.olderShadowRoot;this._unbound=!0}},cancelUnbindAll:function(a){return t
his._unbound?(e.unbind&&console.warn("[%s] already unbound, cannot cancel unbind
All",this.localName),void 0):(e.unbind&&console.log("[%s] cancelUnbindAll",this.
localName),this._unbindAllJob&&(this._unbindAllJob=this._unbindAllJob.stop()),a|
|d(this.shadowRoot,function(a){a.cancelUnbindAll&&a.cancelUnbindAll()}),void 0)}
},j=/\{\{([^{}]*)}}/;a.bindPattern=j,a.api.instance.mdv=i}(Polymer),function(a){
function b(a){return a.hasOwnProperty("PolymerBase")}function c(){}var d=0,e={Po
lymerBase:!0,job:Polymer.job,"super":Polymer.super,created:function(){},ready:fu
nction(){},createdCallback:function(){this.created(),(this.ownerDocument.default
View||this.alwaysPrepare||d>0)&&this.prepareElement()},prepareElement:function()
{this._elementPrepared=!0,this.observeProperties(),this.copyInstanceAttributes()
,this.takeAttributes(),this.addHostListeners(),d++,this.parseDeclarations(this._
_proto__),d--,this.ready()},attachedCallback:function(){this._elementPrepared||t
his.prepareElement(),this.cancelUnbindAll(!0),this.attached&&this.attached(),thi
s.enteredView&&this.enteredView()},detachedCallback:function(){this.preventDispo
se||this.asyncUnbindAll(),this.detached&&this.detached(),this.leftView&&this.lef
tView()},enteredViewCallback:function(){this.attachedCallback()},leftViewCallbac
k:function(){this.detachedCallback()},enteredDocumentCallback:function(){this.at
tachedCallback()},leftDocumentCallback:function(){this.detachedCallback()},parse
Declarations:function(a){a&&a.element&&(this.parseDeclarations(a.__proto__),a.pa
rseDeclaration.call(this,a.element))},parseDeclaration:function(a){var b=this.fe
tchTemplate(a);b&&(this.element.hasAttribute("lightdom")?this.lightFromTemplate(
b):this.shadowFromTemplate(b))},fetchTemplate:function(a){return a.querySelector
("template")},shadowFromTemplate:function(a){if(a){var b=(this.shadowRoot,this.c
reateShadowRoot());b.applyAuthorStyles=this.applyAuthorStyles,b.resetStyleInheri
tance=this.resetStyleInheritance;var c=this.instanceTemplate(a);return b.appendC
hild(c),this.shadowRootReady(b,a),b}},lightFromTemplate:function(a){if(a){var b=
this.instanceTemplate(a);return this.appendChild(b),this.shadowRootReady(this,a)
,b}},shadowRootReady:function(a){this.marshalNodeReferences(a),PointerGestures.r
egister(a)},marshalNodeReferences:function(a){var b=this.$=this.$||{};if(a)for(v
ar c,d=a.querySelectorAll("[id]"),e=0,f=d.length;f>e&&(c=d[e]);e++)b[c.id]=c},at
tributeChangedCallback:function(a){"class"!==a&&"style"!==a&&this.attributeToPro
perty(a,this.getAttribute(a)),this.attributeChanged&&this.attributeChanged.apply
(this,arguments)},onMutation:function(a,b){var c=new MutationObserver(function(a
){b.call(this,c,a),c.disconnect()}.bind(this));c.observe(a,{childList:!0,subtree
:!0})}};c.prototype=e,e.constructor=c,a.Base=c,a.isBase=b,a.api.instance.base=e}
(Polymer),function(a){function b(a){return a.__proto__}var c=(window.logFlags||{
},"element"),d="controller",e={STYLE_SCOPE_ATTRIBUTE:c,installControllerStyles:f
unction(){var a=this.findStyleController();if(a&&!this.scopeHasElementStyle(a,d)
){for(var c=b(this),e="";c&&c.element;)e+=c.element.cssTextForScope(d),c=b(c);if
(e){var f=this.element.cssTextToScopeStyle(e,d);Polymer.applyStyleToScope(f,a)}}
},findStyleController:function(){if(window.ShadowDOMPolyfill)return wrap(documen
t.head);for(var a=this;a.parentNode;)a=a.parentNode;return a===document?document
.head:a},scopeHasElementStyle:function(a,b){var d=c+"="+this.localName+"-"+b;ret
urn a.querySelector("style["+d+"]")}};a.api.instance.styles=e}(Polymer),function
(a){var b={addResolvePathApi:function(){var a=this.elementPath(),b=this.getAttri
bute("assetpath")||"",c=this.relPath;this.prototype.resolvePath=function(d){var
e=d;if(b){var f=b.slice(0,-1);e=c(f,e)}return a+b+e}},elementPath:function(){ret
urn this.urlToPath(HTMLImports.getDocumentUrl(this.ownerDocument))},relPath:func
tion(a,b){for(var c=a.split("/"),d=b.split("/"),e=!1;c.length&&d.length&&c[0]===
d[0];)c.shift(),d.shift(),e=!0;if(e)for(var f=0;f<c.length;f++)d.unshift("..");r
eturn d.join("/")},urlToPath:function(a){if(a){var b=a.split("/");return b.pop()
,b.push(""),b.join("/")}return""}};a.api.declaration.path=b}(Polymer),function(a
){function b(a,b){if(a){var d=c(a.textContent),e=a.getAttribute(g);e&&d.setAttri
bute(g,e),b.appendChild(d)}}function c(a){var b=document.createElement("style");
return b.textContent=a,b}function d(a){return a&&a.__resource||""}function e(a,b
){return n?n.call(a,b):void 0}var f=(window.logFlags||{},a.api.instance.styles),
g=f.STYLE_SCOPE_ATTRIBUTE,h="style",i="[rel=stylesheet]",j="global",k="polymer-s
cope",l={installSheets:function(){this.cacheSheets(),this.cacheStyles(),this.ins
tallLocalSheets(),this.installGlobalStyles()},cacheSheets:function(){this.sheets
=this.findNodes(i),this.sheets.forEach(function(a){a.parentNode&&a.parentNode.re
moveChild(a)})},cacheStyles:function(){this.styles=this.findNodes(h+"["+k+"]"),t
his.styles.forEach(function(a){a.parentNode&&a.parentNode.removeChild(a)})},inst
allLocalSheets:function(){var a=this.sheets.filter(function(a){return!a.hasAttri
bute(k)}),b=this.templateContent();if(b){var e="";a.forEach(function(a){e+=d(a)+
"\n"}),e&&b.insertBefore(c(e),b.firstChild)}},findNodes:function(a,b){var c=this
.querySelectorAll(a).array(),d=this.templateContent();if(d){var e=d.querySelecto
rAll(a).array();c=c.concat(e)}return b?c.filter(b):c},templateContent:function()
{var a=this.querySelector("template");return a&&templateContent(a)},installGloba
lStyles:function(){var a=this.styleForScope(j);b(a,document.head)},cssTextForSco
pe:function(a){var b="",c="["+k+"="+a+"]",f=function(a){return e(a,c)},g=this.sh
eets.filter(f);g.forEach(function(a){b+=d(a)+"\n\n"});var h=this.styles.filter(f
);return h.forEach(function(a){b+=a.textContent+"\n\n"}),b},styleForScope:functi
on(a){var b=this.cssTextForScope(a);return this.cssTextToScopeStyle(b,a)},cssTex
tToScopeStyle:function(a,b){if(a){var d=c(a);return d.setAttribute(g,this.getAtt
ribute("name")+"-"+b),d}}},m=HTMLElement.prototype,n=m.matches||m.matchesSelecto
r||m.webkitMatchesSelector||m.mozMatchesSelector;a.api.declaration.styles=l,a.ap
plyStyleToScope=b}(Polymer),function(a){var b=a.api.instance.events,c=(window.lo
gFlags||{},{parseHostEvents:function(){var a=this.prototype.eventDelegates;this.
addAttributeDelegates(a)},addAttributeDelegates:function(a){for(var c,d=0;c=this
.attributes[d];d++)b.hasEventPrefix(c.name)&&(a[b.removeEventPrefix(c.name)]=c.v
alue.replace("{{","").replace("}}","").trim())},event_translations:{webkitanimat
ionstart:"webkitAnimationStart",webkitanimationend:"webkitAnimationEnd",webkittr
ansitionend:"webkitTransitionEnd",domfocusout:"DOMFocusOut",domfocusin:"DOMFocus
In",dommousescroll:"DOMMouseScroll"}});a.api.declaration.events=c}(Polymer),func
tion(a){var b={inferObservers:function(a){var b,c=a.observe;for(var d in a)"Chan
ged"===d.slice(-7)&&(c||(c=a.observe={}),b=d.slice(0,-7),c[b]=c[b]||d)},explodeO
bservers:function(a){var b=a.observe;if(b){var c={};for(var d in b)for(var e,f=d
.split(" "),g=0;e=f[g];g++)c[e]=b[d];a.observe=c}},optimizePropertyMaps:function
(a){if(a.observe){var b=a._observeNames=[];for(var c in a.observe)for(var d,e=c.
split(" "),f=0;d=e[f];f++)b.push(d)}if(a.publish){var b=a._publishNames=[];for(v
ar c in a.publish)b.push(c)}},publishProperties:function(a,b){var c=a.publish;c&
&(this.requireProperties(c,a,b),a._publishLC=this.lowerCaseMap(c))},requirePrope
rties:function(a,b,c){for(var d in a)void 0===b[d]&&void 0===c[d]&&(b[d]=a[d])},
lowerCaseMap:function(a){var b={};for(var c in a)b[c.toLowerCase()]=c;return b}}
;a.api.declaration.properties=b}(Polymer),function(a){var b="attributes",c=/\s|,
/,d={inheritAttributesObjects:function(a){this.inheritObject(a,"publishLC"),this
.inheritObject(a,"_instanceAttributes")},publishAttributes:function(a,d){var e=t
his.getAttribute(b);if(e)for(var f,g=a.publish||(a.publish={}),h=e.split(c),i=0,
j=h.length;j>i;i++)f=h[i].trim(),f&&void 0===g[f]&&void 0===d[f]&&(g[f]=null)},a
ccumulateInstanceAttributes:function(){for(var a,b=this.prototype._instanceAttri
butes,c=this.attributes,d=0,e=c.length;e>d&&(a=c[d]);d++)this.isInstanceAttribut
e(a.name)&&(b[a.name]=a.value)},isInstanceAttribute:function(a){return!this.blac
kList[a]&&"on-"!==a.slice(0,3)},blackList:{name:1,"extends":1,constructor:1,nosc
ript:1}};d.blackList[b]=1,a.api.declaration.attributes=d}(Polymer),function(a){f
unction b(a){if(!Object.__proto__){var b=Object.getPrototypeOf(a);a.__proto__=b,
d(b)&&(b.__proto__=Object.getPrototypeOf(b))}}var c=a.api,d=a.isBase,e=a.extend,
f={register:function(a,b){this.prototype=this.buildPrototype(a,b),this.prototype
.element=this,this.desugar(a,b),this.registerPrototype(a,b),this.publishConstruc
tor()},buildPrototype:function(c,d){var e=a.getRegisteredPrototype(c),f=this.gen
erateBasePrototype(d);return this.publishAttributes(e,f),this.publishProperties(
e,f),this.inferObservers(e),this.explodeObservers(e),this.inheritMetaData(e,f),e
=this.chainObject(e,f),this.optimizePropertyMaps(e),b(e),e},inheritMetaData:func
tion(a,b){this.inheritObject("observe",a,b),this.inheritObject("publish",a,b),th
is.inheritObject("_publishLC",a,b),this.inheritObject("_instanceAttributes",a,b)
,this.inheritObject("eventDelegates",a,b)},desugar:function(a,b){this.accumulate
InstanceAttributes(),this.parseHostEvents(),this.installSheets(),this.adjustShad
owElement(),this.addResolvePathApi(),window.ShadowDOMPolyfill&&Platform.ShadowCS
S.shimStyling(this.templateContent(),a,b),this.prototype.registerCallback&&this.
prototype.registerCallback(this)},adjustShadowElement:function(){if(!window.Shad
owDOMPolyfill){var a=this.templateContent();if(a)for(var b,c=a.querySelectorAll(
"shadow"),d=0,e=c.length;e>d&&(b=c[d]);d++)b.children.length||b.appendChild(docu
ment.createElement("content"))}},publishConstructor:function(){var a=this.getAtt
ribute("constructor");a&&(window[a]=this.ctor)},generateBasePrototype:function(a
){var b=this.findBasePrototype(a);if(!b){var b=HTMLElement.getPrototypeForTag(a)
;b=this.ensureBaseApi(b),memoizedBases[a]=b}return b},findBasePrototype:function
(a){return memoizedBases[a]},ensureBaseApi:function(a){if(a.PolymerBase)return a
;var b=Object.create(a);for(var d in c.instance)e(b,c.instance[d]);return this.m
ixinMethod(b,a,c.instance.mdv,"bind"),b},mixinMethod:function(a,b,c,d){var e=fun
ction(a){return b[d].apply(this,a)};a[d]=function(){this.super=e;var b=c[d].appl
y(this,arguments);return this.super=a.super,b}},inheritObject:function(a,b,c){va
r d=b[a]||{};b[a]=this.chainObject(d,c[a])},registerPrototype:function(a,b){var
c={prototype:this.prototype},d=this.findTypeExtension(b);d&&(c.extends=d),this.c
tor=document.registerElement(a,c),this.prototype.constructor=this.ctor,HTMLEleme
nt.register(a,this.prototype)},findTypeExtension:function(a){if(a&&a.indexOf("-"
)<0)return a;var b=this.findBasePrototype(a);return b.element?this.findTypeExten
sion(b.element.extends):void 0}};f.chainObject=Object.__proto__?function(a,b){re
turn a&&b&&a!==b&&(a.__proto__=b),a}:function(a,b){if(a&&b&&a!==b){var c=Object.
create(b);a=e(c,a)}return a},memoizedBases={},c.declaration.prototype=f}(Polymer
),function(a){function b(a,b){k[a]=b||{},d(a)}function c(a){return k[a]}function
d(a){l[a]&&(l[a].registerWhenReady(),delete l[a])}function e(a){n[a]=!0;var b=m
[a];b&&(b.forEach(function(a){a.registerWhenReady()}),delete m[a])}function f(a)
{return n[a]}function g(a){window.HTMLImports&&!HTMLImports.readyTime?addEventLi
stener("HTMLImportsLoaded",a):a()}var h=a.extend,i=a.api.declaration,j=h(Object.
create(HTMLElement.prototype),{createdCallback:function(){this.name=this.getAttr
ibute("name"),this.extends=this.getAttribute("extends"),this.registerWhenReady()
},registerWhenReady:function(){if(!this.waitingForPrototype(this.name)){var a=th
is.extends;this.waitingForExtendee(a)||(document.contains(this)?g(function(){thi
s._register(a)}.bind(this)):this._register(a))}},_register:function(a){this.regi
ster(this.name,a),e(this.name)},waitingForPrototype:function(a){if(!c(a)){if(l[a
]=this,this.hasAttribute("noscript"))if(window.CustomElements&&!CustomElements.u
seNative)b(a);else{var d=document.createElement("script");d.textContent="Polymer
('"+a+"');",this.appendChild(d)}return!0}},waitingForExtendee:function(a){return
a&&a.indexOf("-")>=0&&!f(a)?((m[a]=m[a]||[]).push(this),!0):void 0}});Object.ke
ys(i).forEach(function(a){h(j,i[a])});var k={},l={},m={},n={};a.getRegisteredPro
totype=c,h(b,a),window.Polymer=b;var o=Platform.deliverDeclarations();if(o)for(v
ar p,q=0,r=o.length;r>q&&(p=o[q]);q++)b.apply(null,p);document.registerElement("
polymer-element",{prototype:j})}(Polymer); | 29 Polymer={},"function"==typeof window.Polymer&&(Polymer={}),function(a){function
b(a,b){return a&&b&&Object.getOwnPropertyNames(b).forEach(function(c){var d=Obje
ct.getOwnPropertyDescriptor(b,c);d&&(Object.defineProperty(a,c,d),"function"==ty
peof d.value&&(d.value.nom=c))}),a}a.extend=b}(Polymer),function(a){function b(a
,b,d){return a?a.stop():a=new c(this),a.go(b,d),a}var c=function(a){this.context
=a};c.prototype={go:function(a,b){this.callback=a,this.handle=setTimeout(this.co
mplete.bind(this),b)},stop:function(){this.handle&&(clearTimeout(this.handle),th
is.handle=null)},complete:function(){this.handle&&(this.stop(),this.callback.cal
l(this.context))}},a.job=b}(Polymer),function(){var a={};HTMLElement.register=fu
nction(b,c){a[b]=c},HTMLElement.getPrototypeForTag=function(b){var c=b?a[b]:HTML
Element.prototype;return c||Object.getPrototypeOf(document.createElement(b))};va
r b=Event.prototype.stopPropagation;Event.prototype.stopPropagation=function(){t
his.cancelBubble=!0,b.apply(this,arguments)},HTMLImports.importer.preloadSelecto
rs+=", polymer-element link[rel=stylesheet]"}(Polymer),function(a){function b(a)
{var c=b.caller,g=c.nom,h=c._super;if(h||(g||(g=c.nom=e.call(this,c)),g||console
.warn("called super() on a method not installed declaratively (has no .nom prope
rty)"),h=d(c,g,f(this))),h){var i=h[g];return i._super||d(i,g,h),i.apply(this,a|
|[])}}function c(a,b,c){for(;a;){if(a[b]!==c&&a[b])return a;a=f(a)}}function d(a
,b,d){return a._super=c(d,b,a),a._super&&(a._super[b].nom=b),a._super}function e
(a){for(var b=this.__proto__;b&&b!==HTMLElement.prototype;){for(var c,d=Object.g
etOwnPropertyNames(b),e=0,f=d.length;f>e&&(c=d[e]);e++){var g=Object.getOwnPrope
rtyDescriptor(b,c);if("function"==typeof g.value&&g.value===a)return c}b=b.__pro
to__}}function f(a){return a.__proto__}a.super=b}(Polymer),function(a){function
b(a,b){var d=typeof b;return b instanceof Date&&(d="date"),c[d](a,b)}var c={stri
ng:function(a){return a},date:function(a){return new Date(Date.parse(a)||Date.no
w())},"boolean":function(a){return""===a?!0:"false"===a?!1:!!a},number:function(
a){var b=parseFloat(a);return 0===b&&(b=parseInt(a)),isNaN(b)?a:b},object:functi
on(a,b){if(null===b)return a;try{return JSON.parse(a.replace(/'/g,'"'))}catch(c)
{return a}},"function":function(a,b){return b}};a.deserializeValue=b}(Polymer),f
unction(a){var b={};b.declaration={},b.instance={},a.api=b}(Polymer),function(a)
{var b={async:function(a,b,c){Platform.flush(),b=b&&b.length?b:[b];var d=functio
n(){(this[a]||a).apply(this,b)}.bind(this);return c?setTimeout(d,c):requestAnima
tionFrame(d)},fire:function(a,b,c,d){var e=c||this;return e.dispatchEvent(new Cu
stomEvent(a,{bubbles:void 0!==d?d:!0,detail:b})),b},asyncFire:function(){this.as
ync("fire",arguments)},classFollows:function(a,b,c){b&&b.classList.remove(c),a&&
a.classList.add(c)}},c=function(){},d={};b.asyncMethod=b.async,a.api.instance.ut
ils=b,a.nop=c,a.nob=d}(Polymer),function(a){function b(a){for(;a.parentNode;)a=a
.parentNode;return a.host}var c=window.logFlags||{},d="on-",e={EVENT_PREFIX:d,ha
sEventPrefix:function(a){return a&&"o"===a[0]&&"n"===a[1]&&"-"===a[2]},removeEve
ntPrefix:function(a){return a.slice(f)},addHostListeners:function(){var a=this.e
ventDelegates;c.events&&Object.keys(a).length>0&&console.log("[%s] addHostListen
ers:",this.localName,a),this.addNodeListeners(this,a,this.hostEventListener)},ad
dNodeListeners:function(a,b,c){var d;for(var e in b)d||(d=c.bind(this)),this.add
NodeListener(a,e,d)},addNodeListener:function(a,b,c){a.addEventListener(b,c)},ho
stEventListener:function(a){if(!a.cancelBubble){c.events&&console.group("[%s]: h
ostEventListener(%s)",this.localName,a.type);var b=this.findEventDelegate(a);b&&
(c.events&&console.log("[%s] found host handler name [%s]",this.localName,b),thi
s.dispatchMethod(this,b,[a,a.detail,this])),c.events&&console.groupEnd()}},findE
ventDelegate:function(a){return this.eventDelegates[a.type]},dispatchMethod:func
tion(a,b,d){if(a){c.events&&console.group("[%s] dispatch [%s]",a.localName,b);va
r e="function"==typeof b?b:a[b];e&&e[d?"apply":"call"](a,d),c.events&&console.gr
oupEnd(),Platform.flush()}},prepareBinding:function(a,d){return e.hasEventPrefix
(d)?function(f,g){c.events&&console.log('event: [%s].%s => [%s].%s()"',g.localNa
me,f.localName,a);var h=function(c){var d=b(g);if(d&&d.dispatchMethod){var e=d,h
=a;"@"==a[0]&&(e=f,h=Path.get(a.slice(1)).getValueFrom(f)),d.dispatchMethod(e,h,
[c,c.detail,g])}},i=e.removeEventPrefix(d);return{open:function(){g.addEventList
ener(i,h,!1)},close:function(){c.events&&console.log('event.remove: [%s].%s => [
%s].%s()"',g.localName,d,f.localName,a),g.removeEventListener(i,h,!1)},discardCh
anges:function(){}}}:void 0}},f=d.length;a.api.instance.events=e}(Polymer),funct
ion(a){var b={copyInstanceAttributes:function(){var a=this._instanceAttributes;f
or(var b in a)this.hasAttribute(b)||this.setAttribute(b,a[b])},takeAttributes:fu
nction(){if(this._publishLC)for(var a,b=0,c=this.attributes,d=c.length;(a=c[b])&
&d>b;b++)this.attributeToProperty(a.name,a.value)},attributeToProperty:function(
b,c){var b=this.propertyForAttribute(b);if(b){if(c&&c.search(a.bindPattern)>=0)r
eturn;var d=this[b],c=this.deserializeValue(c,d);c!==d&&(this[b]=c)}},propertyFo
rAttribute:function(a){var b=this._publishLC&&this._publishLC[a];return b},deser
ializeValue:function(b,c){return a.deserializeValue(b,c)},serializeValue:functio
n(a,b){return"boolean"===b?a?"":void 0:"object"!==b&&"function"!==b&&void 0!==a?
a:void 0},reflectPropertyToAttribute:function(a){var b=typeof this[a],c=this.ser
ializeValue(this[a],b);void 0!==c?this.setAttribute(a,c):"boolean"===b&&this.rem
oveAttribute(a)}};a.api.instance.attributes=b}(Polymer),function(a){function b(a
,b,d){c.bind&&console.log(e,inB.localName||"object",inPath,a.localName,b);var f=
d.discardChanges();return(null===f||void 0===f)&&d.setValue(a[b]),Observer.defin
eComputedProperty(a,b,d)}var c=window.logFlags||{},d={observeProperties:function
(){var a=this._observeNames,b=this._publishNames;if(a&&a.length||b&&b.length){fo
r(var c,d=this._propertyObserver=new CompoundObserver,e=0,f=a.length;f>e&&(c=a[e
]);e++){d.addPath(this,c);var g=Object.getOwnPropertyDescriptor(this.__proto__,c
);g&&g.value&&this.observeArrayValue(c,g.value,null)}for(var c,e=0,f=b.length;f>
e&&(c=b[e]);e++)this.observe&&void 0!==this.observe[c]||d.addPath(this,c);d.open
(this.notifyPropertyChanges,this)}},notifyPropertyChanges:function(a,b,c){var d,
e,f={};for(var g in b)d=c[2*g+1],void 0!==this.publish[d]&&this.reflectPropertyT
oAttribute(d),e=this.observe[d],e&&(this.observeArrayValue(d,a[g],b[g]),f[e]||(f
[e]=!0,this.invokeMethod(e,[b[g],a[g],arguments])))},observeArrayValue:function(
a,b,d){var e=this.observe[a];if(e&&(Array.isArray(d)&&(c.observe&&console.log("[
%s] observeArrayValue: unregister observer [%s]",this.localName,a),this.unregist
erObserver(a+"__array")),Array.isArray(b))){c.observe&&console.log("[%s] observe
ArrayValue: register observer [%s]",this.localName,a,b);var f=new ArrayObserver(
b);f.open(function(a,b){this.invokeMethod(e,[b])},this),this.registerObserver(a+
"__array",f)}},bindProperty:function(a,c){return b(this,a,c)},unbindAllPropertie
s:function(){this._propertyObserver&&this._propertyObserver.close(),this.unregis
terObservers()},unbindProperty:function(a){return this.unregisterObserver(a)},in
vokeMethod:function(a,b){var c=this[a]||a;"function"==typeof c&&c.apply(this,b)}
,registerObserver:function(a,b){var c=this._observers||(this._observers={});c[a]
=b},unregisterObserver:function(a){var b=this._observers;return b&&b[a]?(b[a].cl
ose(),b[a]=null,!0):void 0},unregisterObservers:function(){if(this._observers){f
or(var a,b,c=Object.keys(this._observers),d=0,e=c.length;e>d&&(a=c[d]);d++)b=thi
s._observers[a],b.close();this._observers={}}}},e="[%s]: bindProperties: [%s] to
[%s].[%s]";a.api.instance.properties=d}(Polymer),function(a){function b(a){d(a,
c)}function c(a){a.unbindAll()}function d(a,b){if(a){b(a);for(var c=a.firstChild
;c;c=c.nextSibling)d(c,b)}}var e=window.logFlags||0,f=a.api.instance.events,g=Po
lymerExpressions.prototype.prepareBinding;PolymerExpressions.prototype.prepareBi
nding=function(a,b,c){return f.prepareBinding(a,b,c)||g.call(this,a,b,c)};var h=
new PolymerExpressions,i={syntax:h,instanceTemplate:function(a){return a.createI
nstance(this,this.syntax)},bind:function(a,b){this._elementPrepared||this.prepar
eElement();var c=this.propertyForAttribute(a);if(c){this.unbind(a);var d=this.bi
ndProperty(c,b);return d.path=b.path_,this.reflectPropertyToAttribute(c),this.bi
ndings[a]=d}return this.super(arguments)},asyncUnbindAll:function(){this._unboun
d||(e.unbind&&console.log("[%s] asyncUnbindAll",this.localName),this._unbindAllJ
ob=this.job(this._unbindAllJob,this.unbindAll,0))},unbindAll:function(){if(!this
._unbound){this.unbindAllProperties(),this.super();for(var a=this.shadowRoot;a;)
b(a),a=a.olderShadowRoot;this._unbound=!0}},cancelUnbindAll:function(a){return t
his._unbound?(e.unbind&&console.warn("[%s] already unbound, cannot cancel unbind
All",this.localName),void 0):(e.unbind&&console.log("[%s] cancelUnbindAll",this.
localName),this._unbindAllJob&&(this._unbindAllJob=this._unbindAllJob.stop()),a|
|d(this.shadowRoot,function(a){a.cancelUnbindAll&&a.cancelUnbindAll()}),void 0)}
},j=/\{\{([^{}]*)}}/;a.bindPattern=j,a.api.instance.mdv=i}(Polymer),function(a){
function b(a){return a.hasOwnProperty("PolymerBase")}function c(){}var d=0,e={Po
lymerBase:!0,job:Polymer.job,"super":Polymer.super,created:function(){},ready:fu
nction(){},createdCallback:function(){this.created(),(this.ownerDocument.default
View||this.alwaysPrepare||d>0)&&this.prepareElement()},prepareElement:function()
{this._elementPrepared=!0,this.observeProperties(),this.copyInstanceAttributes()
,this.takeAttributes(),this.addHostListeners(),d++,this.parseDeclarations(this._
_proto__),d--,this.ready()},attachedCallback:function(){this._elementPrepared||t
his.prepareElement(),this.cancelUnbindAll(!0),this.attached&&this.attached(),thi
s.enteredView&&this.enteredView()},detachedCallback:function(){this.preventDispo
se||this.asyncUnbindAll(),this.detached&&this.detached(),this.leftView&&this.lef
tView()},enteredViewCallback:function(){this.attachedCallback()},leftViewCallbac
k:function(){this.detachedCallback()},enteredDocumentCallback:function(){this.at
tachedCallback()},leftDocumentCallback:function(){this.detachedCallback()},parse
Declarations:function(a){a&&a.element&&(this.parseDeclarations(a.__proto__),a.pa
rseDeclaration.call(this,a.element))},parseDeclaration:function(a){var b=this.fe
tchTemplate(a);b&&(this.element.hasAttribute("lightdom")?this.lightFromTemplate(
b):this.shadowFromTemplate(b))},fetchTemplate:function(a){return a.querySelector
("template")},shadowFromTemplate:function(a){if(a){var b=(this.shadowRoot,this.c
reateShadowRoot());b.applyAuthorStyles=this.applyAuthorStyles,b.resetStyleInheri
tance=this.resetStyleInheritance;var c=this.instanceTemplate(a);return b.appendC
hild(c),this.shadowRootReady(b,a),b}},lightFromTemplate:function(a){if(a){var b=
this.instanceTemplate(a);return this.appendChild(b),this.shadowRootReady(this,a)
,b}},shadowRootReady:function(a){this.marshalNodeReferences(a),PointerGestures.r
egister(a)},marshalNodeReferences:function(a){var b=this.$=this.$||{};if(a)for(v
ar c,d=a.querySelectorAll("[id]"),e=0,f=d.length;f>e&&(c=d[e]);e++)b[c.id]=c},at
tributeChangedCallback:function(a){"class"!==a&&"style"!==a&&this.attributeToPro
perty(a,this.getAttribute(a)),this.attributeChanged&&this.attributeChanged.apply
(this,arguments)},onMutation:function(a,b){var c=new MutationObserver(function(a
){b.call(this,c,a),c.disconnect()}.bind(this));c.observe(a,{childList:!0,subtree
:!0})}};c.prototype=e,e.constructor=c,a.Base=c,a.isBase=b,a.api.instance.base=e}
(Polymer),function(a){function b(a){return a.__proto__}var c=(window.logFlags||{
},"element"),d="controller",e={STYLE_SCOPE_ATTRIBUTE:c,installControllerStyles:f
unction(){var a=this.findStyleController();if(a&&!this.scopeHasElementStyle(a,d)
){for(var c=b(this),e="";c&&c.element;)e+=c.element.cssTextForScope(d),c=b(c);if
(e){var f=this.element.cssTextToScopeStyle(e,d);Polymer.applyStyleToScope(f,a)}}
},findStyleController:function(){if(window.ShadowDOMPolyfill)return wrap(documen
t.head);for(var a=this;a.parentNode;)a=a.parentNode;return a===document?document
.head:a},scopeHasElementStyle:function(a,b){var d=c+"="+this.localName+"-"+b;ret
urn a.querySelector("style["+d+"]")}};a.api.instance.styles=e}(Polymer),function
(a){var b={addResolvePathApi:function(){var a=this.elementPath(),b=this.getAttri
bute("assetpath")||"",c=this.relPath;this.prototype.resolvePath=function(d){var
e=d;if(b){var f=b.slice(0,-1);e=c(f,e)}return a+b+e}},elementPath:function(){ret
urn this.urlToPath(HTMLImports.getDocumentUrl(this.ownerDocument))},relPath:func
tion(a,b){for(var c=a.split("/"),d=b.split("/"),e=!1;c.length&&d.length&&c[0]===
d[0];)c.shift(),d.shift(),e=!0;if(e)for(var f=0;f<c.length;f++)d.unshift("..");r
eturn d.join("/")},urlToPath:function(a){if(a){var b=a.split("/");return b.pop()
,b.push(""),b.join("/")}return""}};a.api.declaration.path=b}(Polymer),function(a
){function b(a,b){if(a){var d=c(a.textContent),e=a.getAttribute(g);e&&d.setAttri
bute(g,e),b.appendChild(d)}}function c(a){var b=document.createElement("style");
return b.textContent=a,b}function d(a){return a&&a.__resource||""}function e(a,b
){return n?n.call(a,b):void 0}var f=(window.logFlags||{},a.api.instance.styles),
g=f.STYLE_SCOPE_ATTRIBUTE,h="style",i="[rel=stylesheet]",j="global",k="polymer-s
cope",l={installSheets:function(){this.cacheSheets(),this.cacheStyles(),this.ins
tallLocalSheets(),this.installGlobalStyles()},cacheSheets:function(){this.sheets
=this.findNodes(i),this.sheets.forEach(function(a){a.parentNode&&a.parentNode.re
moveChild(a)})},cacheStyles:function(){this.styles=this.findNodes(h+"["+k+"]"),t
his.styles.forEach(function(a){a.parentNode&&a.parentNode.removeChild(a)})},inst
allLocalSheets:function(){var a=this.sheets.filter(function(a){return!a.hasAttri
bute(k)}),b=this.templateContent();if(b){var e="";a.forEach(function(a){e+=d(a)+
"\n"}),e&&b.insertBefore(c(e),b.firstChild)}},findNodes:function(a,b){var c=this
.querySelectorAll(a).array(),d=this.templateContent();if(d){var e=d.querySelecto
rAll(a).array();c=c.concat(e)}return b?c.filter(b):c},templateContent:function()
{var a=this.querySelector("template");return a&&templateContent(a)},installGloba
lStyles:function(){var a=this.styleForScope(j);b(a,document.head)},cssTextForSco
pe:function(a){var b="",c="["+k+"="+a+"]",f=function(a){return e(a,c)},g=this.sh
eets.filter(f);g.forEach(function(a){b+=d(a)+"\n\n"});var h=this.styles.filter(f
);return h.forEach(function(a){b+=a.textContent+"\n\n"}),b},styleForScope:functi
on(a){var b=this.cssTextForScope(a);return this.cssTextToScopeStyle(b,a)},cssTex
tToScopeStyle:function(a,b){if(a){var d=c(a);return d.setAttribute(g,this.getAtt
ribute("name")+"-"+b),d}}},m=HTMLElement.prototype,n=m.matches||m.matchesSelecto
r||m.webkitMatchesSelector||m.mozMatchesSelector;a.api.declaration.styles=l,a.ap
plyStyleToScope=b}(Polymer),function(a){var b=a.api.instance.events,c=(window.lo
gFlags||{},{parseHostEvents:function(){var a=this.prototype.eventDelegates;this.
addAttributeDelegates(a)},addAttributeDelegates:function(a){for(var c,d=0;c=this
.attributes[d];d++)b.hasEventPrefix(c.name)&&(a[b.removeEventPrefix(c.name)]=c.v
alue.replace("{{","").replace("}}","").trim())},event_translations:{webkitanimat
ionstart:"webkitAnimationStart",webkitanimationend:"webkitAnimationEnd",webkittr
ansitionend:"webkitTransitionEnd",domfocusout:"DOMFocusOut",domfocusin:"DOMFocus
In",dommousescroll:"DOMMouseScroll"}});a.api.declaration.events=c}(Polymer),func
tion(a){var b={inferObservers:function(a){var b,c=a.observe;for(var d in a)"Chan
ged"===d.slice(-7)&&(c||(c=a.observe={}),b=d.slice(0,-7),c[b]=c[b]||d)},explodeO
bservers:function(a){var b=a.observe;if(b){var c={};for(var d in b)for(var e,f=d
.split(" "),g=0;e=f[g];g++)c[e]=b[d];a.observe=c}},optimizePropertyMaps:function
(a){if(a.observe){var b=a._observeNames=[];for(var c in a.observe)for(var d,e=c.
split(" "),f=0;d=e[f];f++)b.push(d)}if(a.publish){var b=a._publishNames=[];for(v
ar c in a.publish)b.push(c)}},publishProperties:function(a,b){var c=a.publish;c&
&(this.requireProperties(c,a,b),a._publishLC=this.lowerCaseMap(c))},requirePrope
rties:function(a,b,c){for(var d in a)void 0===b[d]&&void 0===c[d]&&(b[d]=a[d])},
lowerCaseMap:function(a){var b={};for(var c in a)b[c.toLowerCase()]=c;return b}}
;a.api.declaration.properties=b}(Polymer),function(a){var b="attributes",c=/\s|,
/,d={inheritAttributesObjects:function(a){this.inheritObject(a,"publishLC"),this
.inheritObject(a,"_instanceAttributes")},publishAttributes:function(a,d){var e=t
his.getAttribute(b);if(e)for(var f,g=a.publish||(a.publish={}),h=e.split(c),i=0,
j=h.length;j>i;i++)f=h[i].trim(),f&&void 0===g[f]&&void 0===d[f]&&(g[f]=null)},a
ccumulateInstanceAttributes:function(){for(var a,b=this.prototype._instanceAttri
butes,c=this.attributes,d=0,e=c.length;e>d&&(a=c[d]);d++)this.isInstanceAttribut
e(a.name)&&(b[a.name]=a.value)},isInstanceAttribute:function(a){return!this.blac
kList[a]&&"on-"!==a.slice(0,3)},blackList:{name:1,"extends":1,constructor:1,nosc
ript:1}};d.blackList[b]=1,a.api.declaration.attributes=d}(Polymer),function(a){f
unction b(a){if(!Object.__proto__){var b=Object.getPrototypeOf(a);a.__proto__=b,
d(b)&&(b.__proto__=Object.getPrototypeOf(b))}}var c=a.api,d=a.isBase,e=a.extend,
f={register:function(a,b){this.prototype=this.buildPrototype(a,b),this.prototype
.element=this,this.desugar(a,b),this.registerPrototype(a,b),this.publishConstruc
tor()},buildPrototype:function(c,d){var e=a.getRegisteredPrototype(c),f=this.gen
erateBasePrototype(d);return this.publishAttributes(e,f),this.publishProperties(
e,f),this.inferObservers(e),this.explodeObservers(e),this.inheritMetaData(e,f),e
=this.chainObject(e,f),this.optimizePropertyMaps(e),b(e),e},inheritMetaData:func
tion(a,b){this.inheritObject("observe",a,b),this.inheritObject("publish",a,b),th
is.inheritObject("_publishLC",a,b),this.inheritObject("_instanceAttributes",a,b)
,this.inheritObject("eventDelegates",a,b)},desugar:function(a,b){this.accumulate
InstanceAttributes(),this.parseHostEvents(),this.installSheets(),this.adjustShad
owElement(),this.addResolvePathApi(),window.ShadowDOMPolyfill&&Platform.ShadowCS
S.shimStyling(this.templateContent(),a,b),this.prototype.registerCallback&&this.
prototype.registerCallback(this)},adjustShadowElement:function(){if(!window.Shad
owDOMPolyfill){var a=this.templateContent();if(a)for(var b,c=a.querySelectorAll(
"shadow"),d=0,e=c.length;e>d&&(b=c[d]);d++)b.children.length||b.appendChild(docu
ment.createElement("content"))}},publishConstructor:function(){var a=this.getAtt
ribute("constructor");a&&(window[a]=this.ctor)},generateBasePrototype:function(a
){var b=this.findBasePrototype(a);if(!b){var b=HTMLElement.getPrototypeForTag(a)
;b=this.ensureBaseApi(b),memoizedBases[a]=b}return b},findBasePrototype:function
(a){return memoizedBases[a]},ensureBaseApi:function(a){if(a.PolymerBase)return a
;var b=Object.create(a);for(var d in c.instance)e(b,c.instance[d]);return this.m
ixinMethod(b,a,c.instance.mdv,"bind"),b},mixinMethod:function(a,b,c,d){var e=fun
ction(a){return b[d].apply(this,a)};a[d]=function(){this.super=e;var b=c[d].appl
y(this,arguments);return this.super=a.super,b}},inheritObject:function(a,b,c){va
r d=b[a]||{};b[a]=this.chainObject(d,c[a])},registerPrototype:function(a,b){var
c={prototype:this.prototype},d=this.findTypeExtension(b);d&&(c.extends=d),this.c
tor=document.registerElement(a,c),this.prototype.constructor=this.ctor,HTMLEleme
nt.register(a,this.prototype)},findTypeExtension:function(a){if(a&&a.indexOf("-"
)<0)return a;var b=this.findBasePrototype(a);return b.element?this.findTypeExten
sion(b.element.extends):void 0}};f.chainObject=Object.__proto__?function(a,b){re
turn a&&b&&a!==b&&(a.__proto__=b),a}:function(a,b){if(a&&b&&a!==b){var c=Object.
create(b);a=e(c,a)}return a},memoizedBases={},c.declaration.prototype=f}(Polymer
),function(a){function b(a,b){k[a]=b||{},d(a)}function c(a){return k[a]}function
d(a){l[a]&&(l[a].registerWhenReady(),delete l[a])}function e(a){n[a]=!0;var b=m
[a];b&&(b.forEach(function(a){a.registerWhenReady()}),delete m[a])}function f(a)
{return n[a]}function g(a){window.HTMLImports&&!HTMLImports.readyTime?addEventLi
stener("HTMLImportsLoaded",a):a()}var h=a.extend,i=a.api.declaration,j=h(Object.
create(HTMLElement.prototype),{createdCallback:function(){this.name=this.getAttr
ibute("name"),this.extends=this.getAttribute("extends"),this.registerWhenReady()
},registerWhenReady:function(){if(!this.waitingForPrototype(this.name)){var a=th
is.extends;this.waitingForExtendee(a)||(document.contains(this)?g(function(){thi
s._register(a)}.bind(this)):this._register(a))}},_register:function(a){this.regi
ster(this.name,a),e(this.name)},waitingForPrototype:function(a){if(!c(a)){if(l[a
]=this,this.hasAttribute("noscript"))if(window.CustomElements&&!CustomElements.u
seNative)b(a);else{var d=document.createElement("script");d.textContent="Polymer
('"+a+"');",this.appendChild(d)}return!0}},waitingForExtendee:function(a){return
a&&a.indexOf("-")>=0&&!f(a)?((m[a]=m[a]||[]).push(this),!0):void 0}});Object.ke
ys(i).forEach(function(a){h(j,i[a])});var k={},l={},m={},n={};a.getRegisteredPro
totype=c,h(b,a),window.Polymer=b;var o=Platform.deliverDeclarations();if(o)for(v
ar p,q=0,r=o.length;r>q&&(p=o[q]);q++)b.apply(null,p);document.registerElement("
polymer-element",{prototype:j})}(Polymer); |