32 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,this.boundComplete=this.complete.bind(this)};c.prototype={go:function(a,b){th
is.callback=a;var c;b?(c=setTimeout(this.boundComplete,b),this.handle=function()
{clearTimeout(c)}):(c=requestAnimationFrame(this.boundComplete),this.handle=func
tion(){cancelAnimationFrame(c)})},stop:function(){this.handle&&(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)}}(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=a.extend,c={};c.declaration={},c.instance={},c.publish=function
(a,c){for(var d in a)b(c,a[d])},a.api=c}(Polymer),function(a){var b={async:funct
ion(a,b,c){Platform.flush(),b=b&&b.length?b:[b];var d=function(){(this[a]||a).ap
ply(this,b)}.bind(this),e=c?setTimeout(d,c):requestAnimationFrame(d);return c?e:
1/e},cancelAsync:function(a){1>a?cancelAnimationFrame(Math.round(1/a)):clearTime
out(a)},fire:function(a,b,c,d,e){var f=c||this,b=b||{},g=new CustomEvent(a,{bubb
les:void 0!==d?d:!0,cancelable:void 0!==e?e:!0,detail:b});return f.dispatchEvent
(g),g},asyncFire:function(){this.async("fire",arguments)},classFollows:function(
a,b,c){b&&b.classList.remove(c),a&&a.classList.add(c)}},c=function(){},d={};b.as
yncMethod=b.async,a.api.instance.utils=b,a.nop=c,a.nob=d}(Polymer),function(a){v
ar b=window.logFlags||{},c="on-",d={EVENT_PREFIX:c,addHostListeners:function(){v
ar a=this.eventDelegates;b.events&&Object.keys(a).length>0&&console.log("[%s] ad
dHostListeners:",this.localName,a);var d,e,f=this;for(var g in a)e=c+g,(d=Polyme
rExpressions.prepareEventBinding(Path.get(a[g]),e,{resolveEventHandler:function(
a,b){var c=b.getValueFrom(f);return c?c.bind(f):void 0}}))(this,this,!1)},dispat
chMethod:function(a,c,d){if(a){b.events&&console.group("[%s] dispatch [%s]",a.lo
calName,c);var e="function"==typeof c?c:a[c];e&&e[d?"apply":"call"](a,d),b.event
s&&console.groupEnd(),Platform.flush()}}};a.api.instance.events=d}(Polymer),func
tion(a){var b={copyInstanceAttributes:function(){var a=this._instanceAttributes;
for(var b in a)this.hasAttribute(b)||this.setAttribute(b,a[b])},takeAttributes:f
unction(){if(this._publishLC)for(var a,b=0,c=this.attributes,d=c.length;(a=c[b])
&&d>b;b++)this.attributeToProperty(a.name,a.value)},attributeToProperty:function
(b,c){var b=this.propertyForAttribute(b);if(b){if(c&&c.search(a.bindPattern)>=0)
return;var d=this[b],c=this.deserializeValue(c,d);c!==d&&(this[b]=c)}},propertyF
orAttribute:function(a){var b=this._publishLC&&this._publishLC[a];return b},dese
rializeValue:function(b,c){return a.deserializeValue(b,c)},serializeValue:functi
on(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.se
rializeValue(this[a],b);void 0!==c?this.setAttribute(a,c):"boolean"===b&&this.re
moveAttribute(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.defi
neComputedProperty(a,b,d)}var c=window.logFlags||{},d={observeProperties:functio
n(){var a=this._observeNames,b=this._publishNames;if(a&&a.length||b&&b.length){f
or(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.ope
n(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.reflectProperty
ToAttribute(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.unregis
terObserver(a+"__array")),Array.isArray(b))){c.observe&&console.log("[%s] observ
eArrayValue: 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)},unbindAllProperti
es:function(){this._propertyObserver&&this._propertyObserver.close(),this.unregi
sterObservers()},unbindProperty:function(a){return this.unregisterObserver(a)},i
nvokeMethod: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].c
lose(),b[a]=null,!0):void 0},unregisterObservers:function(){if(this._observers){
for(var a,b,c=Object.keys(this._observers),d=0,e=c.length;e>d&&(a=c[d]);d++)b=th
is._observers[a],b.close();this._observers={}}}},e="[%s]: bindProperties: [%s] t
o [%s].[%s]";a.api.instance.properties=d}(Polymer),function(a){function b(a){for
(;a.parentNode;){if(a.lightDomController)return a;a=a.parentNode}return a.host}f
unction c(a){e(a,d)}function d(a){a.unbindAll()}function e(a,b){if(a){b(a);for(v
ar c=a.firstChild;c;c=c.nextSibling)e(c,b)}}var f=window.logFlags||0,g=(a.api.in
stance.events,new PolymerExpressions);g.resolveEventHandler=function(a,c,d){var
e=b(d);if(e){var f=c.getValueFrom(e);if(f)return f.bind(e)}};var h={syntax:g,ins
tanceTemplate:function(a){return a.createInstance(this,this.syntax)},bind:functi
on(a,b){this._elementPrepared||this.prepareElement();var c=this.propertyForAttri
bute(a);if(c){this.unbind(a);var d=this.bindProperty(c,b);return d.path=b.path_,
this.reflectPropertyToAttribute(c),this.bindings[a]=d}return this.mixinSuper(arg
uments)},asyncUnbindAll:function(){this._unbound||(f.unbind&&console.log("[%s] a
syncUnbindAll",this.localName),this._unbindAllJob=this.job(this._unbindAllJob,th
is.unbindAll,0))},unbindAll:function(){if(!this._unbound){this.unbindAllProperti
es(),this.super();for(var a=this.shadowRoot;a;)c(a),a=a.olderShadowRoot;this._un
bound=!0}},cancelUnbindAll:function(a){return this._unbound?void(f.unbind&&conso
le.warn("[%s] already unbound, cannot cancel unbindAll",this.localName)):(f.unbi
nd&&console.log("[%s] cancelUnbindAll",this.localName),this._unbindAllJob&&(this
._unbindAllJob=this._unbindAllJob.stop()),void(a||e(this.shadowRoot,function(a){
a.cancelUnbindAll&&a.cancelUnbindAll()})))}},i=/\{\{([^{}]*)}}/;a.bindPattern=i,
a.api.instance.mdv=h}(Polymer),function(a){function b(a){return a.hasOwnProperty
("PolymerBase")}function c(){}var d=0,e={PolymerBase:!0,job:Polymer.job,"super":
Polymer.super,created:function(){},ready:function(){},createdCallback:function()
{this.created(),(this.ownerDocument.defaultView||this.alwaysPrepare||d>0)&&this.
prepareElement()},prepareElement:function(){this._elementPrepared=!0,this.shadow
Roots={},this.observeProperties(),this.copyInstanceAttributes(),this.takeAttribu
tes(),this.addHostListeners(),d++,this.parseDeclarations(this.__proto__),d--,thi
s.removeAttribute("unresolved"),this.ready()},attachedCallback:function(){this._
elementPrepared||this.prepareElement(),this.cancelUnbindAll(!0),this.attached&&t
his.attached(),this.enteredView&&this.enteredView(),this.hasBeenAttached||(this.
hasBeenAttached=!0,this.domReady&&this.async("domReady"))},detachedCallback:func
tion(){this.preventDispose||this.asyncUnbindAll(),this.detached&&this.detached()
,this.leftView&&this.leftView()},enteredViewCallback:function(){this.attachedCal
lback()},leftViewCallback:function(){this.detachedCallback()},enteredDocumentCal
lback:function(){this.attachedCallback()},leftDocumentCallback:function(){this.d
etachedCallback()},parseDeclarations:function(a){a&&a.element&&(this.parseDeclar
ations(a.__proto__),a.parseDeclaration.call(this,a.element))},parseDeclaration:f
unction(a){var b=this.fetchTemplate(a);if(b){var c=this.shadowFromTemplate(b);th
is.shadowRoots[a.name]=c}},fetchTemplate:function(a){return a.querySelector("tem
plate")},shadowFromTemplate:function(a){if(a){var b=this.createShadowRoot();b.re
setStyleInheritance=this.resetStyleInheritance;var c=this.instanceTemplate(a);re
turn b.appendChild(c),this.shadowRootReady(b,a),b}},lightFromTemplate:function(a
){if(a){this.lightDomController=!0;var b=this.instanceTemplate(a);return this.ap
pendChild(b),this.shadowRootReady(this,a),b}},shadowRootReady:function(a){this.m
arshalNodeReferences(a),PointerGestures.register(a)},marshalNodeReferences:funct
ion(a){var b=this.$=this.$||{};if(a)for(var c,d=a.querySelectorAll("[id]"),e=0,f
=d.length;f>e&&(c=d[e]);e++)b[c.id]=c},attributeChangedCallback:function(a){"cla
ss"!==a&&"style"!==a&&this.attributeToProperty(a,this.getAttribute(a)),this.attr
ibuteChanged&&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){ret
urn a.__proto__}function c(a,b){var c="",d=!1;b&&(c=b.localName,d=b.hasAttribute
("is"));var e=Platform.ShadowCSS.makeScopeSelector(c,d);return Platform.ShadowCS
S.shimCssText(a,e)}var d=(window.logFlags||{},"element"),e="controller",f={STYLE
_SCOPE_ATTRIBUTE:d,installControllerStyles:function(){var a=this.findStyleScope(
);if(a&&!this.scopeHasNamedStyle(a,this.localName)){for(var c=b(this),d="";c&&c.
element;)d+=c.element.cssTextForScope(e),c=b(c);d&&this.installScopeCssText(d,a)
}},installScopeStyle:function(a,b){var c=this.findStyleScope(),b=b||"";if(c&&!th
is.scopeHasNamedStyle(c,this.localName+b)){var d="";if(a instanceof Array)for(va
r e,f=0,g=a.length;g>f&&(e=a[f]);f++)d+=e.textContent+"\n\n";else d=a.textConten
t;this.installScopeCssText(d,c,b)}},installScopeCssText:function(a,b,d){if(b=b||
this.findStyleScope(),d=d||"",b){window.ShadowDOMPolyfill&&(a=c(a,b.host));var f
=this.element.cssTextToScopeStyle(a,e);Polymer.applyStyleToScope(f,b),b._scopeSt
yles[this.localName+d]=!0}},findStyleScope:function(){for(var a=this;a.parentNod
e;)a=a.parentNode;return a},scopeHasNamedStyle:function(a,b){return a._scopeStyl
es=a._scopeStyles||{},a._scopeStyles[b]}};a.api.instance.styles=f}(Polymer),func
tion(a){function b(a,b){if(f[a])throw"Already registered (Polymer) prototype for
element "+a;e(a,b),d(a)}function c(a,b){h[a]=b}function d(a){h[a]&&(h[a].regist
erWhenReady(),delete h[a])}function e(a,b){return i[a]=b||{}}function f(a){retur
n i[a]}var g=a.extend,h=(a.api,{}),i={};a.getRegisteredPrototype=f,a.waitingForP
rototype=c,window.Polymer=b,g(Polymer,a);var j=Platform.deliverDeclarations();if
(j)for(var k,l=0,m=j.length;m>l&&(k=j[l]);l++)b.apply(null,k)}(Polymer),function
(a){var b={resolveElementPaths:function(a){Platform.urlResolver.resolveDom(a)},a
ddResolvePathApi:function(){var a=this.getAttribute("assetpath")||"",b=new URL(a
,this.ownerDocument.baseURI);this.prototype.resolvePath=function(a,c){var d=new
URL(a,c||b);return d.href}}};a.api.declaration.path=b}(Polymer),function(a){func
tion b(a,b){var c=new URL(a.getAttribute("href"),b).href;return"@import '"+c+"';
"}function c(a,b){if(a){b===document&&(b=document.head),window.ShadowDOMPolyfill
&&(b=document.head);var c=d(a.textContent),e=a.getAttribute(h);e&&c.setAttribute
(h,e),b.appendChild(c)}}function d(a,b){b=b||document,b=b.createElement?b:b.owne
rDocument;var c=b.createElement("style");return c.textContent=a,c}function e(a){
return a&&a.__resource||""}function f(a,b){return p?p.call(a,b):void 0}var g=(wi
ndow.logFlags||{},a.api.instance.styles),h=g.STYLE_SCOPE_ATTRIBUTE,i="style",j="
@import",k="link[rel=stylesheet]",l="global",m="polymer-scope",n={loadStyles:fun
ction(a){var b=this.templateContent();b&&this.convertSheetsToStyles(b);var c=thi
s.findLoadableStyles(b);c.length?Platform.styleResolver.loadStyles(c,a):a&&a()},
convertSheetsToStyles:function(a){for(var c,e,f=a.querySelectorAll(k),g=0,h=f.le
ngth;h>g&&(c=f[g]);g++)e=d(b(c,this.ownerDocument.baseURI),this.ownerDocument),t
his.copySheetAttributes(e,c),c.parentNode.replaceChild(e,c)},copySheetAttributes
:function(a,b){for(var c,d=0,e=b.attributes,f=e.length;(c=e[d])&&f>d;d++)"rel"!=
=c.name&&"href"!==c.name&&a.setAttribute(c.name,c.value)},findLoadableStyles:fun
ction(a){var b=[];if(a)for(var c,d=a.querySelectorAll(i),e=0,f=d.length;f>e&&(c=
d[e]);e++)c.textContent.match(j)&&b.push(c);return b},installSheets:function(){t
his.cacheSheets(),this.cacheStyles(),this.installLocalSheets(),this.installGloba
lStyles()},cacheSheets:function(){this.sheets=this.findNodes(k),this.sheets.forE
ach(function(a){a.parentNode&&a.parentNode.removeChild(a)})},cacheStyles:functio
n(){this.styles=this.findNodes(i+"["+m+"]"),this.styles.forEach(function(a){a.pa
rentNode&&a.parentNode.removeChild(a)})},installLocalSheets:function(){var a=thi
s.sheets.filter(function(a){return!a.hasAttribute(m)}),b=this.templateContent();
if(b){var c="";if(a.forEach(function(a){c+=e(a)+"\n"}),c){var f=d(c,this.ownerDo
cument);b.insertBefore(f,b.firstChild)}}},findNodes:function(a,b){var c=this.que
rySelectorAll(a).array(),d=this.templateContent();if(d){var e=d.querySelectorAll
(a).array();c=c.concat(e)}return b?c.filter(b):c},templateContent:function(){var
a=this.querySelector("template");return a&&templateContent(a)},installGlobalSty
les:function(){var a=this.styleForScope(l);c(a,document.head)},cssTextForScope:f
unction(a){var b="",c="["+m+"="+a+"]",d=function(a){return f(a,c)},g=this.sheets
.filter(d);g.forEach(function(a){b+=e(a)+"\n\n"});var h=this.styles.filter(d);re
turn h.forEach(function(a){b+=a.textContent+"\n\n"}),b},styleForScope:function(a
){var b=this.cssTextForScope(a);return this.cssTextToScopeStyle(b,a)},cssTextToS
copeStyle:function(a,b){if(a){var c=d(a);return c.setAttribute(h,this.getAttribu
te("name")+"-"+b),c}}},o=HTMLElement.prototype,p=o.matches||o.matchesSelector||o
.webkitMatchesSelector||o.mozMatchesSelector;a.api.declaration.styles=n,a.applyS
tyleToScope=c}(Polymer),function(a){var b=(window.logFlags||{},a.api.instance.ev
ents),c=b.EVENT_PREFIX,d={parseHostEvents:function(){var a=this.prototype.eventD
elegates;this.addAttributeDelegates(a)},addAttributeDelegates:function(a){for(va
r b,c=0;b=this.attributes[c];c++)this.hasEventPrefix(b.name)&&(a[this.removeEven
tPrefix(b.name)]=b.value.replace("{{","").replace("}}","").trim())},hasEventPref
ix:function(a){return a&&"o"===a[0]&&"n"===a[1]&&"-"===a[2]},removeEventPrefix:f
unction(a){return a.slice(e)}},e=c.length;a.api.declaration.events=d}(Polymer),f
unction(a){var b={inferObservers:function(a){var b,c=a.observe;for(var d in a)"C
hanged"===d.slice(-7)&&(c||(c=a.observe={}),b=d.slice(0,-7),c[b]=c[b]||d)},explo
deObservers: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:funct
ion(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=[];fo
r(var 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))},requirePr
operties: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"),t
his.inheritObject(a,"_instanceAttributes")},publishAttributes:function(a,d){var
e=this.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)
},accumulateInstanceAttributes:function(){for(var a,b=this.prototype._instanceAt
tributes,c=this.attributes,d=0,e=c.length;e>d&&(a=c[d]);d++)this.isInstanceAttri
bute(a.name)&&(b[a.name]=a.value)},isInstanceAttribute:function(a){return!this.b
lackList[a]&&"on-"!==a.slice(0,3)},blackList:{name:1,"extends":1,constructor:1,n
oscript:1,assetpath:1,"cache-csstext":1}};d.blackList[b]=1,a.api.declaration.att
ributes=d}(Polymer),function(a){function b(a){if(!Object.__proto__){var b=Object
.getPrototypeOf(a);a.__proto__=b,d(b)&&(b.__proto__=Object.getPrototypeOf(b))}}v
ar c=a.api,d=a.isBase,e=a.extend,f={register:function(a,b){this.buildPrototype(a
,b),this.registerPrototype(a,b),this.publishConstructor()},buildPrototype:functi
on(b,c){var d=a.getRegisteredPrototype(b),e=this.generateBasePrototype(c);this.d
esugarBeforeChaining(d,e),this.prototype=this.chainPrototypes(d,e),this.desugarA
fterChaining(b,c)},desugarBeforeChaining:function(a,b){a.element=this,this.publi
shAttributes(a,b),this.publishProperties(a,b),this.inferObservers(a),this.explod
eObservers(a)},chainPrototypes:function(a,c){this.inheritMetaData(a,c);var d=thi
s.chainObject(a,c);return b(d),d},inheritMetaData:function(a,b){this.inheritObje
ct("observe",a,b),this.inheritObject("publish",a,b),this.inheritObject("_publish
LC",a,b),this.inheritObject("_instanceAttributes",a,b),this.inheritObject("event
Delegates",a,b)},desugarAfterChaining:function(a,b){this.optimizePropertyMaps(th
is.prototype),this.installSheets(),this.resolveElementPaths(this),this.accumulat
eInstanceAttributes(),this.parseHostEvents(),this.addResolvePathApi(),window.Sha
dowDOMPolyfill&&Platform.ShadowCSS.shimStyling(this.templateContent(),a,b),this.
prototype.registerCallback&&this.prototype.registerCallback(this)},publishConstr
uctor:function(){var a=this.getAttribute("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),g[a]=b}return b},find
BasePrototype:function(a){return g[a]},ensureBaseApi:function(a){if(a.PolymerBas
e)return a;var b=Object.create(a);return c.publish(c.instance,b),this.mixinMetho
d(b,a,c.instance.mdv,"bind"),b},mixinMethod:function(a,b,c,d){var e=function(a){
return b[d].apply(this,a)};a[d]=function(){return this.mixinSuper=e,c[d].apply(t
his,arguments)}},inheritObject:function(a,b,c){var d=b[a]||{};b[a]=this.chainObj
ect(d,c[a])},registerPrototype:function(a,b){var c={prototype:this.prototype},d=
this.findTypeExtension(b);d&&(c.extends=d),HTMLElement.register(a,this.prototype
),this.ctor=document.registerElement(a,c)},findTypeExtension:function(a){if(a&&a
.indexOf("-")<0)return a;var b=this.findBasePrototype(a);return b.element?this.f
indTypeExtension(b.element.extends):void 0}},g={};f.chainObject=Object.__proto__
?function(a,b){return 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},c.declaration.prototype=f}(Polymer
),function(a){function b(a){return document.contains(a)?g:f}function c(){return
f.length?f[0]:g[0]}function d(a){e.waitToReady=!0,CustomElements.ready=!1,HTMLIm
ports.whenImportsReady(function(){e.addReadyCallback(a),e.waitToReady=!1,e.check
()})}var e={wait:function(a,b,c){return-1===this.indexOf(a)&&(this.add(a),a.__ch
eck=b,a.__go=c),0!==this.indexOf(a)},add:function(a){b(a).push(a)},indexOf:funct
ion(a){var c=b(a).indexOf(a);return c>=0&&document.contains(a)&&(c+=HTMLImports.
useNative||HTMLImports.ready?f.length:1e9),c},go:function(a){var b=this.remove(a
);b&&(b.__go.call(b),b.__check=b.__go=null,this.check())},remove:function(a){var
c=this.indexOf(a);if(0===c)return b(a).shift()},check:function(){var a=this.nex
tElement();return a&&a.__check.call(a),this.canReady()?(this.ready(),!0):void 0}
,nextElement:function(){return c()},canReady:function(){return!this.waitToReady&
&this.isEmpty()},isEmpty:function(){return!f.length&&!g.length},ready:function()
{if(CustomElements.ready===!1&&(CustomElements.upgradeDocumentTree(document),Cus
tomElements.ready=!0),h)for(var a;h.length;)(a=h.shift())()},addReadyCallback:fu
nction(a){a&&h.push(a)},waitToReady:!0},f=[],g=[],h=[];document.addEventListener
("WebComponentsReady",function(){CustomElements.ready=!1}),a.queue=e,a.whenPolym
erReady=d}(Polymer),function(a){function b(a,b){a?(document.head.appendChild(a),
d(b)):b&&b()}function c(a,c){if(a&&a.length){for(var d,e,f=document.createDocume
ntFragment(),g=0,h=a.length;h>g&&(d=a[g]);g++)e=document.createElement("link"),e
.rel="import",e.href=d,f.appendChild(e);b(f,c)}else c&&c()}var d=a.whenPolymerRe
ady;a.import=c,a.importElements=b}(Polymer),function(a){function b(a){return Boo
lean(HTMLElement.getPrototypeForTag(a))}function c(a){return a&&a.indexOf("-")>=
0}var d=a.extend,e=a.api,f=a.queue,g=a.whenPolymerReady,h=a.getRegisteredPrototy
pe,i=a.waitingForPrototype,j=d(Object.create(HTMLElement.prototype),{createdCall
back:function(){this.getAttribute("name")&&this.init()},init:function(){this.nam
e=this.getAttribute("name"),this.extends=this.getAttribute("extends"),this.loadR
esources(),this.registerWhenReady()},registerWhenReady:function(){this.registere
d||this.waitingForPrototype(this.name)||this.waitingForQueue()||this.waitingForR
esources()||f.go(this)},_register:function(){c(this.extends)&&!b(this.extends)&&
console.warn("%s is attempting to extend %s, an unregistered element or one that
was not registered with Polymer.",this.name,this.extends),this.register(this.na
me,this.extends),this.registered=!0},waitingForPrototype:function(a){return h(a)
?void 0:(i(a,this),this.handleNoScript(a),!0)},handleNoScript:function(a){if(thi
s.hasAttribute("noscript")&&!this.noscript)if(this.noscript=!0,window.CustomElem
ents&&!CustomElements.useNative)Polymer(a);else{var b=document.createElement("sc
ript");b.textContent="Polymer('"+a+"');",this.appendChild(b)}},waitingForResourc
es:function(){return this._needsResources},waitingForQueue:function(){return f.w
ait(this,this.registerWhenReady,this._register)},loadResources:function(){this._
needsResources=!0,this.loadStyles(function(){this._needsResources=!1,this.regist
erWhenReady()}.bind(this))}});e.publish(e.declaration,j),a.getRegisteredPrototyp
e=h,g(function(){document.body.removeAttribute("unresolved"),document.dispatchEv
ent(new CustomEvent("polymer-ready",{bubbles:!0}))}),document.registerElement("p
olymer-element",{prototype:j})}(Polymer); | |