OLD | NEW |
1 /** | 1 /** |
2 * @license | 2 * @license |
3 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | 3 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. |
4 * This code may only be used under the BSD style license found at http://polyme
r.github.io/LICENSE.txt | 4 * This code may only be used under the BSD style license found at http://polyme
r.github.io/LICENSE.txt |
5 * The complete set of authors may be found at http://polymer.github.io/AUTHORS.
txt | 5 * The complete set of authors may be found at http://polymer.github.io/AUTHORS.
txt |
6 * The complete set of contributors may be found at http://polymer.github.io/CON
TRIBUTORS.txt | 6 * The complete set of contributors may be found at http://polymer.github.io/CON
TRIBUTORS.txt |
7 * Code distributed by Google as part of the polymer project is also | 7 * Code distributed by Google as part of the polymer project is also |
8 * subject to an additional IP rights grant found at http://polymer.github.io/PA
TENTS.txt | 8 * subject to an additional IP rights grant found at http://polymer.github.io/PA
TENTS.txt |
9 */ | 9 */ |
10 // @version: 0.4.2 | 10 // @version: 0.4.2 |
11 window.PolymerGestures={},function(a){var b=!1,c=document.createElement("meta");
if(c.createShadowRoot){var d=c.createShadowRoot(),e=document.createElement("span
");d.appendChild(e),c.addEventListener("testpath",function(a){a.path&&(b=a.path[
0]===e),a.stopPropagation()});var f=new CustomEvent("testpath",{bubbles:!0});doc
ument.head.appendChild(c),e.dispatchEvent(f),c.parentNode.removeChild(c),d=e=nul
l}c=null;var g={shadow:function(a){return a?a.shadowRoot||a.webkitShadowRoot:voi
d 0},canTarget:function(a){return a&&Boolean(a.elementFromPoint)},targetingShado
w:function(a){var b=this.shadow(a);return this.canTarget(b)?b:void 0},olderShado
w:function(a){var b=a.olderShadowRoot;if(!b){var c=a.querySelector("shadow");c&&
(b=c.olderShadowRoot)}return b},allShadows:function(a){for(var b=[],c=this.shado
w(a);c;)b.push(c),c=this.olderShadow(c);return b},searchRoot:function(a,b,c){var
d,e;return a?(d=a.elementFromPoint(b,c),d?e=this.targetingShadow(d):a!==documen
t&&(e=this.olderShadow(a)),this.searchRoot(e,b,c)||d):void 0},owner:function(a){
if(!a)return document;for(var b=a;b.parentNode;)b=b.parentNode;return b.nodeType
!=Node.DOCUMENT_NODE&&b.nodeType!=Node.DOCUMENT_FRAGMENT_NODE&&(b=document),b},f
indTarget:function(a){if(b&&a.path&&a.path.length)return a.path[0];var c=a.clien
tX,d=a.clientY,e=this.owner(a.target);return e.elementFromPoint(c,d)||(e=documen
t),this.searchRoot(e,c,d)},findTouchAction:function(a){var c;if(b&&a.path&&a.pat
h.length){for(var d=a.path,e=0;e<d.length;e++)if(c=d[e],c.nodeType===Node.ELEMEN
T_NODE&&c.hasAttribute("touch-action"))return c.getAttribute("touch-action")}els
e for(c=a.target;c;){if(c.nodeType===Node.ELEMENT_NODE&&c.hasAttribute("touch-ac
tion"))return c.getAttribute("touch-action");c=c.parentNode||c.host}return"auto"
},LCA:function(a,b){if(a===b)return a;if(a&&!b)return a;if(b&&!a)return b;if(!b&
&!a)return document;if(a.contains&&a.contains(b))return a;if(b.contains&&b.conta
ins(a))return b;var c=this.depth(a),d=this.depth(b),e=c-d;for(e>=0?a=this.walk(a
,e):b=this.walk(b,-e);a&&b&&a!==b;)a=a.parentNode||a.host,b=b.parentNode||b.host
;return a},walk:function(a,b){for(var c=0;a&&b>c;c++)a=a.parentNode||a.host;retu
rn a},depth:function(a){for(var b=0;a;)b++,a=a.parentNode||a.host;return b},deep
Contains:function(a,b){var c=this.LCA(a,b);return c===a},insideNode:function(a,b
,c){var d=a.getBoundingClientRect();return d.left<=b&&b<=d.right&&d.top<=c&&c<=d
.bottom},path:function(a){var c;if(b&&a.path&&a.path.length)c=a.path;else{c=[];f
or(var d=this.findTarget(a);d;)c.push(d),d=d.parentNode||d.host}return c}};a.tar
getFinding=g,a.findTarget=g.findTarget.bind(g),a.deepContains=g.deepContains.bin
d(g),a.insideNode=g.insideNode}(window.PolymerGestures),function(){function a(a)
{return"html /deep/ "+b(a)}function b(a){return'[touch-action="'+a+'"]'}function
c(a){return"{ -ms-touch-action: "+a+"; touch-action: "+a+";}"}var d=["none","au
to","pan-x","pan-y",{rule:"pan-x pan-y",selectors:["pan-x pan-y","pan-y pan-x"]}
,"manipulation"],e="",f="string"==typeof document.head.style.touchAction,g=!wind
ow.ShadowDOMPolyfill&&document.head.createShadowRoot;if(f){d.forEach(function(d)
{String(d)===d?(e+=b(d)+c(d)+"\n",g&&(e+=a(d)+c(d)+"\n")):(e+=d.selectors.map(b)
+c(d.rule)+"\n",g&&(e+=d.selectors.map(a)+c(d.rule)+"\n"))});var h=document.crea
teElement("style");h.textContent=e,document.head.appendChild(h)}}(),function(a){
var b=["bubbles","cancelable","view","detail","screenX","screenY","clientX","cli
entY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","pageX","
pageY"],c=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0],d=function(){return f
unction(){}},e={preventTap:d,makeBaseEvent:function(a,b){var c=document.createEv
ent("Event");return c.initEvent(a,b.bubbles||!1,b.cancelable||!1),c.preventTap=e
.preventTap(c),c},makeGestureEvent:function(a,b){b=b||Object.create(null);for(va
r c,d=this.makeBaseEvent(a,b),e=0,f=Object.keys(b);e<f.length;e++)c=f[e],d[c]=b[
c];return d},makePointerEvent:function(a,d){d=d||Object.create(null);for(var e,f
=this.makeBaseEvent(a,d),g=0;g<b.length;g++)e=b[g],f[e]=d[e]||c[g];f.buttons=d.b
uttons||0;var h=0;return h=d.pressure?d.pressure:f.buttons?.5:0,f.x=f.clientX,f.
y=f.clientY,f.pointerId=d.pointerId||0,f.width=d.width||0,f.height=d.height||0,f
.pressure=h,f.tiltX=d.tiltX||0,f.tiltY=d.tiltY||0,f.pointerType=d.pointerType||"
",f.hwTimestamp=d.hwTimestamp||0,f.isPrimary=d.isPrimary||!1,f._source=d._source
||"",f}};a.eventFactory=e}(window.PolymerGestures),function(a){function b(){if(c
){var a=new Map;return a.pointers=d,a}this.keys=[],this.values=[]}var c=window.M
ap&&window.Map.prototype.forEach,d=function(){return this.size};b.prototype={set
:function(a,b){var c=this.keys.indexOf(a);c>-1?this.values[c]=b:(this.keys.push(
a),this.values.push(b))},has:function(a){return this.keys.indexOf(a)>-1},"delete
":function(a){var b=this.keys.indexOf(a);b>-1&&(this.keys.splice(b,1),this.value
s.splice(b,1))},get:function(a){var b=this.keys.indexOf(a);return this.values[b]
},clear:function(){this.keys.length=0,this.values.length=0},forEach:function(a,b
){this.values.forEach(function(c,d){a.call(b,c,this.keys[d],this)},this)},pointe
rs:function(){return this.keys.length}},a.PointerMap=b}(window.PolymerGestures),
function(a){var b,c=["bubbles","cancelable","view","detail","screenX","screenY",
"clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTar
get","buttons","pointerId","width","height","pressure","tiltX","tiltY","pointerT
ype","hwTimestamp","isPrimary","type","target","currentTarget","which","pageX","
pageY","timeStamp","preventTap","tapPrevented","_source"],d=[!1,!1,null,null,0,0
,0,0,!1,!1,!1,!1,0,null,0,0,0,0,0,0,0,"",0,!1,"",null,null,0,0,0,0,function(){},
!1],e="undefined"!=typeof SVGElementInstance,f=a.eventFactory,g={IS_IOS:!1,point
ermap:new a.PointerMap,requiredGestures:new a.PointerMap,eventMap:Object.create(
null),eventSources:Object.create(null),eventSourceList:[],gestures:[],dependency
Map:{down:{listeners:0,index:-1},up:{listeners:0,index:-1}},gestureQueue:[],regi
sterSource:function(a,b){var c=b,d=c.events;d&&(d.forEach(function(a){c[a]&&(thi
s.eventMap[a]=c[a].bind(c))},this),this.eventSources[a]=c,this.eventSourceList.p
ush(c))},registerGesture:function(a,b){var c=Object.create(null);c.listeners=0,c
.index=this.gestures.length;for(var d,e=0;e<b.exposes.length;e++)d=b.exposes[e].
toLowerCase(),this.dependencyMap[d]=c;this.gestures.push(b)},register:function(a
,b){for(var c,d=this.eventSourceList.length,e=0;d>e&&(c=this.eventSourceList[e])
;e++)c.register.call(c,a,b)},unregister:function(a){for(var b,c=this.eventSource
List.length,d=0;c>d&&(b=this.eventSourceList[d]);d++)b.unregister.call(b,a)},dow
n:function(a){this.requiredGestures.set(a.pointerId,b),this.fireEvent("down",a)}
,move:function(a){a.type="move",this.fillGestureQueue(a)},up:function(a){this.fi
reEvent("up",a),this.requiredGestures.delete(a.pointerId)},cancel:function(a){a.
tapPrevented=!0,this.fireEvent("up",a),this.requiredGestures.delete(a.pointerId)
},addGestureDependency:function(a,b){var c=a._pgEvents;if(c)for(var d,e,f,g=Obje
ct.keys(c),h=0;h<g.length;h++)f=g[h],c[f]>0&&(d=this.dependencyMap[f],e=d?d.inde
x:-1,b[e]=!0)},eventHandler:function(c){var d=c.type;if("touchstart"===d||"mouse
down"===d||"pointerdown"===d||"MSPointerDown"===d)if(c._handledByPG||(b={}),this
.IS_IOS)for(var e,f=a.targetFinding.path(c),g=0;g<f.length;g++)e=f[g],this.addGe
stureDependency(e,b);else this.addGestureDependency(c.currentTarget,b);if(!c._ha
ndledByPG){var h=this.eventMap&&this.eventMap[d];h&&h(c),c._handledByPG=!0}},lis
ten:function(a,b){for(var c,d=0,e=b.length;e>d&&(c=b[d]);d++)this.addEvent(a,c)}
,unlisten:function(a,b){for(var c,d=0,e=b.length;e>d&&(c=b[d]);d++)this.removeEv
ent(a,c)},addEvent:function(a,b){a.addEventListener(b,this.boundHandler)},remove
Event:function(a,b){a.removeEventListener(b,this.boundHandler)},makeEvent:functi
on(a,b){var c=f.makePointerEvent(a,b);return c.preventDefault=b.preventDefault,c
.tapPrevented=b.tapPrevented,c._target=c._target||b.target,c},fireEvent:function
(a,b){var c=this.makeEvent(a,b);return this.dispatchEvent(c)},cloneEvent:functio
n(a){for(var b,f=Object.create(null),g=0;g<c.length;g++)b=c[g],f[b]=a[b]||d[g],(
"target"===b||"relatedTarget"===b)&&e&&f[b]instanceof SVGElementInstance&&(f[b]=
f[b].correspondingUseElement);return f.preventDefault=function(){a.preventDefaul
t()},f},dispatchEvent:function(a){var b=a._target;if(b){b.dispatchEvent(a);var c
=this.cloneEvent(a);c.target=b,this.fillGestureQueue(c)}},gestureTrigger:functio
n(){for(var a,b,c=0;c<this.gestureQueue.length;c++){a=this.gestureQueue[c],b=a._
requiredGestures;for(var d,e,f=0;f<this.gestures.length;f++)b[f]&&(d=this.gestur
es[f],e=d[a.type],e&&e.call(d,a))}this.gestureQueue.length=0},fillGestureQueue:f
unction(a){this.gestureQueue.length||requestAnimationFrame(this.boundGestureTrig
ger),a._requiredGestures=this.requiredGestures.get(a.pointerId),this.gestureQueu
e.push(a)}};g.boundHandler=g.eventHandler.bind(g),g.boundGestureTrigger=g.gestur
eTrigger.bind(g),a.dispatcher=g,a.activateGesture=function(a,b){var c=b.toLowerC
ase(),d=g.dependencyMap[c];if(d){var e=g.gestures[d.index];if(a._pgListeners||(g
.register(a),a._pgListeners=0),e){var f,h=e.defaultActions&&e.defaultActions[c];
switch(a.nodeType){case Node.ELEMENT_NODE:f=a;break;case Node.DOCUMENT_FRAGMENT_
NODE:f=a.host;break;default:f=null}h&&f&&!f.hasAttribute("touch-action")&&f.setA
ttribute("touch-action",h)}a._pgEvents||(a._pgEvents={}),a._pgEvents[c]=(a._pgEv
ents[c]||0)+1,a._pgListeners++}return Boolean(d)},a.addEventListener=function(b,
c,d,e){d&&(a.activateGesture(b,c),b.addEventListener(c,d,e))},a.deactivateGestur
e=function(a,b){var c=b.toLowerCase(),d=g.dependencyMap[c];return d&&(a._pgListe
ners>0&&a._pgListeners--,0===a._pgListeners&&g.unregister(a),a._pgEvents&&(a._pg
Events[c]>0?a._pgEvents[c]--:a._pgEvents[c]=0)),Boolean(d)},a.removeEventListene
r=function(b,c,d,e){d&&(a.deactivateGesture(b,c),b.removeEventListener(c,d,e))}}
(window.PolymerGestures),function(a){var b=a.dispatcher,c=b.pointermap,d=25,e=[0
,1,4,2],f=!1;try{f=1===new MouseEvent("test",{buttons:1}).buttons}catch(g){}var
h={POINTER_ID:1,POINTER_TYPE:"mouse",events:["mousedown","mousemove","mouseup"],
exposes:["down","up","move"],register:function(a){b.listen(a,this.events)},unreg
ister:function(a){a!==document&&b.unlisten(a,this.events)},lastTouches:[],isEven
tSimulatedFromTouch:function(a){for(var b,c=this.lastTouches,e=a.clientX,f=a.cli
entY,g=0,h=c.length;h>g&&(b=c[g]);g++){var i=Math.abs(e-b.x),j=Math.abs(f-b.y);i
f(d>=i&&d>=j)return!0}},prepareEvent:function(a){var c=b.cloneEvent(a);return c.
pointerId=this.POINTER_ID,c.isPrimary=!0,c.pointerType=this.POINTER_TYPE,c._sour
ce="mouse",f||(c.buttons=e[c.which]||0),c},mousedown:function(d){if(!this.isEven
tSimulatedFromTouch(d)){var e=c.has(this.POINTER_ID);e&&this.mouseup(d);var f=th
is.prepareEvent(d);f.target=a.findTarget(d),c.set(this.POINTER_ID,f.target),b.do
wn(f)}},mousemove:function(a){if(!this.isEventSimulatedFromTouch(a)){var d=c.get
(this.POINTER_ID);if(d){var e=this.prepareEvent(a);e.target=d,0===e.buttons?(b.c
ancel(e),this.cleanupMouse()):b.move(e)}}},mouseup:function(d){if(!this.isEventS
imulatedFromTouch(d)){var e=this.prepareEvent(d);e.relatedTarget=a.findTarget(d)
,e.target=c.get(this.POINTER_ID),b.up(e),this.cleanupMouse()}},cleanupMouse:func
tion(){c["delete"](this.POINTER_ID)}};a.mouseEvents=h}(window.PolymerGestures),f
unction(a){var b=a.dispatcher,c=(a.targetFinding.allShadows.bind(a.targetFinding
),b.pointermap),d=(Array.prototype.map.call.bind(Array.prototype.map),2500),e=20
0,f=20,g=!1,h={IS_IOS:!1,events:["touchstart","touchmove","touchend","touchcance
l"],exposes:["down","up","move"],register:function(a,c){(this.IS_IOS?c:!c)&&b.li
sten(a,this.events)},unregister:function(a){this.IS_IOS||b.unlisten(a,this.event
s)},scrollTypes:{EMITTER:"none",XSCROLLER:"pan-x",YSCROLLER:"pan-y"},touchAction
ToScrollType:function(a){var b=a,c=this.scrollTypes;return b===c.EMITTER?"none":
b===c.XSCROLLER?"X":b===c.YSCROLLER?"Y":"XY"},POINTER_TYPE:"touch",firstTouch:nu
ll,isPrimaryTouch:function(a){return this.firstTouch===a.identifier},setPrimaryT
ouch:function(a){(0===c.pointers()||1===c.pointers()&&c.has(1))&&(this.firstTouc
h=a.identifier,this.firstXY={X:a.clientX,Y:a.clientY},this.scrolling=null,this.c
ancelResetClickCount())},removePrimaryPointer:function(a){a.isPrimary&&(this.fir
stTouch=null,this.firstXY=null,this.resetClickCount())},clickCount:0,resetId:nul
l,resetClickCount:function(){var a=function(){this.clickCount=0,this.resetId=nul
l}.bind(this);this.resetId=setTimeout(a,e)},cancelResetClickCount:function(){thi
s.resetId&&clearTimeout(this.resetId)},typeToButtons:function(a){var b=0;return(
"touchstart"===a||"touchmove"===a)&&(b=1),b},findTarget:function(b,d){if("touchs
tart"===this.currentTouchEvent.type){if(this.isPrimaryTouch(b)){var e={clientX:b
.clientX,clientY:b.clientY,path:this.currentTouchEvent.path,target:this.currentT
ouchEvent.target};return a.findTarget(e)}return a.findTarget(b)}return c.get(d)}
,touchToPointer:function(a){var c=this.currentTouchEvent,d=b.cloneEvent(a),e=d.p
ointerId=a.identifier+2;d.target=this.findTarget(a,e),d.bubbles=!0,d.cancelable=
!0,d.detail=this.clickCount,d.buttons=this.typeToButtons(c.type),d.width=a.webki
tRadiusX||a.radiusX||0,d.height=a.webkitRadiusY||a.radiusY||0,d.pressure=a.webki
tForce||a.force||.5,d.isPrimary=this.isPrimaryTouch(a),d.pointerType=this.POINTE
R_TYPE,d._source="touch";var f=this;return d.preventDefault=function(){f.scrolli
ng=!1,f.firstXY=null,c.preventDefault()},d},processTouches:function(a,b){var d=a
.changedTouches;this.currentTouchEvent=a;for(var e,f,g=0;g<d.length;g++)e=d[g],f
=this.touchToPointer(e),"touchstart"===a.type&&c.set(f.pointerId,f.target),c.has
(f.pointerId)&&b.call(this,f),("touchend"===a.type||a._cancel)&&this.cleanUpPoin
ter(f)},shouldScroll:function(b){if(this.firstXY){var c,d=a.targetFinding.findTo
uchAction(b),e=this.touchActionToScrollType(d);if("none"===e)c=!1;else if("XY"==
=e)c=!0;else{var f=b.changedTouches[0],g=e,h="Y"===e?"X":"Y",i=Math.abs(f["clien
t"+g]-this.firstXY[g]),j=Math.abs(f["client"+h]-this.firstXY[h]);c=i>=j}return c
}},findTouch:function(a,b){for(var c,d=0,e=a.length;e>d&&(c=a[d]);d++)if(c.ident
ifier===b)return!0},vacuumTouches:function(a){var b=a.touches;if(c.pointers()>=b
.length){var d=[];c.forEach(function(a,c){if(1!==c&&!this.findTouch(b,c-2)){var
e=a;d.push(e)}},this),d.forEach(function(a){this.cancel(a),c.delete(a.pointerId)
})}},touchstart:function(a){this.vacuumTouches(a),this.setPrimaryTouch(a.changed
Touches[0]),this.dedupSynthMouse(a),this.scrolling||(this.clickCount++,this.proc
essTouches(a,this.down))},down:function(a){b.down(a)},touchmove:function(a){if(g
)a.cancelable&&this.processTouches(a,this.move);else if(this.scrolling){if(this.
firstXY){var b=a.changedTouches[0],c=b.clientX-this.firstXY.X,d=b.clientY-this.f
irstXY.Y,e=Math.sqrt(c*c+d*d);e>=f&&(this.touchcancel(a),this.scrolling=!0,this.
firstXY=null)}}else null===this.scrolling&&this.shouldScroll(a)?this.scrolling=!
0:(this.scrolling=!1,a.preventDefault(),this.processTouches(a,this.move))},move:
function(a){b.move(a)},touchend:function(a){this.dedupSynthMouse(a),this.process
Touches(a,this.up)},up:function(c){c.relatedTarget=a.findTarget(c),b.up(c)},canc
el:function(a){b.cancel(a)},touchcancel:function(a){a._cancel=!0,this.processTou
ches(a,this.cancel)},cleanUpPointer:function(a){c["delete"](a.pointerId),this.re
movePrimaryPointer(a)},dedupSynthMouse:function(b){var c=a.mouseEvents.lastTouch
es,e=b.changedTouches[0];if(this.isPrimaryTouch(e)){var f={x:e.clientX,y:e.clien
tY};c.push(f);var g=function(a,b){var c=a.indexOf(b);c>-1&&a.splice(c,1)}.bind(n
ull,c,f);setTimeout(g,d)}}};a.touchEvents=h}(window.PolymerGestures),function(a)
{var b=a.dispatcher,c=b.pointermap,d=window.MSPointerEvent&&"number"==typeof win
dow.MSPointerEvent.MSPOINTER_TYPE_MOUSE,e={events:["MSPointerDown","MSPointerMov
e","MSPointerUp","MSPointerCancel"],register:function(a){b.listen(a,this.events)
},unregister:function(a){a!==document&&b.unlisten(a,this.events)},POINTER_TYPES:
["","unavailable","touch","pen","mouse"],prepareEvent:function(a){var c=a;return
c=b.cloneEvent(a),d&&(c.pointerType=this.POINTER_TYPES[a.pointerType]),c._sourc
e="ms",c},cleanup:function(a){c["delete"](a)},MSPointerDown:function(d){var e=th
is.prepareEvent(d);e.target=a.findTarget(d),c.set(d.pointerId,e.target),b.down(e
)},MSPointerMove:function(a){var d=c.get(a.pointerId);if(d){var e=this.prepareEv
ent(a);e.target=d,b.move(e)}},MSPointerUp:function(d){var e=this.prepareEvent(d)
;e.relatedTarget=a.findTarget(d),e.target=c.get(e.pointerId),b.up(e),this.cleanu
p(d.pointerId)},MSPointerCancel:function(d){var e=this.prepareEvent(d);e.related
Target=a.findTarget(d),e.target=c.get(e.pointerId),b.cancel(e),this.cleanup(d.po
interId)}};a.msEvents=e}(window.PolymerGestures),function(a){var b=a.dispatcher,
c=b.pointermap,d={events:["pointerdown","pointermove","pointerup","pointercancel
"],prepareEvent:function(a){var c=b.cloneEvent(a);return c._source="pointer",c},
register:function(a){b.listen(a,this.events)},unregister:function(a){a!==documen
t&&b.unlisten(a,this.events)},cleanup:function(a){c["delete"](a)},pointerdown:fu
nction(d){var e=this.prepareEvent(d);e.target=a.findTarget(d),c.set(e.pointerId,
e.target),b.down(e)},pointermove:function(a){var d=c.get(a.pointerId);if(d){var
e=this.prepareEvent(a);e.target=d,b.move(e)}},pointerup:function(d){var e=this.p
repareEvent(d);e.relatedTarget=a.findTarget(d),e.target=c.get(e.pointerId),b.up(
e),this.cleanup(d.pointerId)},pointercancel:function(d){var e=this.prepareEvent(
d);e.relatedTarget=a.findTarget(d),e.target=c.get(e.pointerId),b.cancel(e),this.
cleanup(d.pointerId)}};a.pointerEvents=d}(window.PolymerGestures),function(a){va
r b=a.dispatcher,c=window.navigator;window.PointerEvent?b.registerSource("pointe
r",a.pointerEvents):c.msPointerEnabled?b.registerSource("ms",a.msEvents):(b.regi
sterSource("mouse",a.mouseEvents),void 0!==window.ontouchstart&&b.registerSource
("touch",a.touchEvents));var d=navigator.userAgent,e=d.match(/iPad|iPhone|iPod/)
&&"ontouchstart"in window;b.IS_IOS=e,a.touchEvents.IS_IOS=e,b.register(document,
!0)}(window.PolymerGestures),function(a){var b=a.dispatcher,c=a.eventFactory,d=n
ew a.PointerMap,e={events:["down","move","up"],exposes:["trackstart","track","tr
ackx","tracky","trackend"],defaultActions:{track:"none",trackx:"pan-y",tracky:"p
an-x"},WIGGLE_THRESHOLD:4,clampDir:function(a){return a>0?1:-1},calcPositionDelt
a:function(a,b){var c=0,d=0;return a&&b&&(c=b.pageX-a.pageX,d=b.pageY-a.pageY),{
x:c,y:d}},fireTrack:function(a,b,d){var e=d,f=this.calcPositionDelta(e.downEvent
,b),g=this.calcPositionDelta(e.lastMoveEvent,b);if(g.x)e.xDirection=this.clampDi
r(g.x);else if("trackx"===a)return;if(g.y)e.yDirection=this.clampDir(g.y);else i
f("tracky"===a)return;var h={bubbles:!0,cancelable:!0,trackInfo:e.trackInfo,rela
tedTarget:b.relatedTarget,pointerType:b.pointerType,pointerId:b.pointerId,_sourc
e:"track"};"tracky"!==a&&(h.x=b.x,h.dx=f.x,h.ddx=g.x,h.clientX=b.clientX,h.pageX
=b.pageX,h.screenX=b.screenX,h.xDirection=e.xDirection),"trackx"!==a&&(h.dy=f.y,
h.ddy=g.y,h.y=b.y,h.clientY=b.clientY,h.pageY=b.pageY,h.screenY=b.screenY,h.yDir
ection=e.yDirection);var i=c.makeGestureEvent(a,h);e.downTarget.dispatchEvent(i)
},down:function(a){if(a.isPrimary&&("mouse"===a.pointerType?1===a.buttons:!0)){v
ar b={downEvent:a,downTarget:a.target,trackInfo:{},lastMoveEvent:null,xDirection
:0,yDirection:0,tracking:!1};d.set(a.pointerId,b)}},move:function(a){var b=d.get
(a.pointerId);if(b){if(!b.tracking){var c=this.calcPositionDelta(b.downEvent,a),
e=c.x*c.x+c.y*c.y;e>this.WIGGLE_THRESHOLD&&(b.tracking=!0,b.lastMoveEvent=b.down
Event,this.fireTrack("trackstart",a,b))}b.tracking&&(this.fireTrack("track",a,b)
,this.fireTrack("trackx",a,b),this.fireTrack("tracky",a,b)),b.lastMoveEvent=a}},
up:function(a){var b=d.get(a.pointerId);b&&(b.tracking&&this.fireTrack("trackend
",a,b),d.delete(a.pointerId))}};b.registerGesture("track",e)}(window.PolymerGest
ures),function(a){var b=a.dispatcher,c=a.eventFactory,d={HOLD_DELAY:200,WIGGLE_T
HRESHOLD:16,events:["down","move","up"],exposes:["hold","holdpulse","release"],h
eldPointer:null,holdJob:null,pulse:function(){var a=Date.now()-this.heldPointer.
timeStamp,b=this.held?"holdpulse":"hold";this.fireHold(b,a),this.held=!0},cancel
:function(){clearInterval(this.holdJob),this.held&&this.fireHold("release"),this
.held=!1,this.heldPointer=null,this.target=null,this.holdJob=null},down:function
(a){a.isPrimary&&!this.heldPointer&&(this.heldPointer=a,this.target=a.target,thi
s.holdJob=setInterval(this.pulse.bind(this),this.HOLD_DELAY))},up:function(a){th
is.heldPointer&&this.heldPointer.pointerId===a.pointerId&&this.cancel()},move:fu
nction(a){if(this.heldPointer&&this.heldPointer.pointerId===a.pointerId){var b=a
.clientX-this.heldPointer.clientX,c=a.clientY-this.heldPointer.clientY;b*b+c*c>t
his.WIGGLE_THRESHOLD&&this.cancel()}},fireHold:function(a,b){var d={bubbles:!0,c
ancelable:!0,pointerType:this.heldPointer.pointerType,pointerId:this.heldPointer
.pointerId,x:this.heldPointer.clientX,y:this.heldPointer.clientY,_source:"hold"}
;b&&(d.holdTime=b);var e=c.makeGestureEvent(a,d);this.target.dispatchEvent(e)}};
b.registerGesture("hold",d)}(window.PolymerGestures),function(a){var b=a.dispatc
her,c=a.eventFactory,d=new a.PointerMap,e={events:["down","up"],exposes:["tap"],
down:function(a){a.isPrimary&&!a.tapPrevented&&d.set(a.pointerId,{target:a.targe
t,buttons:a.buttons,x:a.clientX,y:a.clientY})},shouldTap:function(a,b){return"mo
use"===a.pointerType?1===b.buttons:!a.tapPrevented},up:function(b){var e=d.get(b
.pointerId);if(e&&this.shouldTap(b,e)){var f=a.targetFinding.LCA(e.target,b.rela
tedTarget);if(f){var g=c.makeGestureEvent("tap",{bubbles:!0,cancelable:!0,x:b.cl
ientX,y:b.clientY,detail:b.detail,pointerType:b.pointerType,pointerId:b.pointerI
d,altKey:b.altKey,ctrlKey:b.ctrlKey,metaKey:b.metaKey,shiftKey:b.shiftKey,_sourc
e:"tap"});f.dispatchEvent(g)}}d.delete(b.pointerId)}};c.preventTap=function(a){r
eturn function(){a.tapPrevented=!0,d.delete(a.pointerId)}},b.registerGesture("ta
p",e)}(window.PolymerGestures),function(a){"use strict";function b(a,b){if(!a)th
row new Error("ASSERT: "+b)}function c(a){return a>=48&&57>=a}function d(a){retu
rn 32===a||9===a||11===a||12===a||160===a||a>=5760&&"\u1680\u180e\u2000\u2001\u2
002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\ufeff".ind
exOf(String.fromCharCode(a))>0}function e(a){return 10===a||13===a||8232===a||82
33===a}function f(a){return 36===a||95===a||a>=65&&90>=a||a>=97&&122>=a}function
g(a){return 36===a||95===a||a>=65&&90>=a||a>=97&&122>=a||a>=48&&57>=a}function
h(a){return"this"===a}function i(){for(;Y>X&&d(W.charCodeAt(X));)++X}function j(
){var a,b;for(a=X++;Y>X&&(b=W.charCodeAt(X),g(b));)++X;return W.slice(a,X)}funct
ion k(){var a,b,c;return a=X,b=j(),c=1===b.length?S.Identifier:h(b)?S.Keyword:"n
ull"===b?S.NullLiteral:"true"===b||"false"===b?S.BooleanLiteral:S.Identifier,{ty
pe:c,value:b,range:[a,X]}}function l(){var a,b,c=X,d=W.charCodeAt(X),e=W[X];swit
ch(d){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:
case 58:case 63:return++X,{type:S.Punctuator,value:String.fromCharCode(d),range:
[c,X]};default:if(a=W.charCodeAt(X+1),61===a)switch(d){case 37:case 38:case 42:c
ase 43:case 45:case 47:case 60:case 62:case 124:return X+=2,{type:S.Punctuator,v
alue:String.fromCharCode(d)+String.fromCharCode(a),range:[c,X]};case 33:case 61:
return X+=2,61===W.charCodeAt(X)&&++X,{type:S.Punctuator,value:W.slice(c,X),rang
e:[c,X]}}}return b=W[X+1],e===b&&"&|".indexOf(e)>=0?(X+=2,{type:S.Punctuator,val
ue:e+b,range:[c,X]}):"<>=!+-*%&|^/".indexOf(e)>=0?(++X,{type:S.Punctuator,value:
e,range:[c,X]}):void s({},V.UnexpectedToken,"ILLEGAL")}function m(){var a,d,e;if
(e=W[X],b(c(e.charCodeAt(0))||"."===e,"Numeric literal must start with a decimal
digit or a decimal point"),d=X,a="","."!==e){for(a=W[X++],e=W[X],"0"===a&&e&&c(
e.charCodeAt(0))&&s({},V.UnexpectedToken,"ILLEGAL");c(W.charCodeAt(X));)a+=W[X++
];e=W[X]}if("."===e){for(a+=W[X++];c(W.charCodeAt(X));)a+=W[X++];e=W[X]}if("e"==
=e||"E"===e)if(a+=W[X++],e=W[X],("+"===e||"-"===e)&&(a+=W[X++]),c(W.charCodeAt(X
)))for(;c(W.charCodeAt(X));)a+=W[X++];else s({},V.UnexpectedToken,"ILLEGAL");ret
urn f(W.charCodeAt(X))&&s({},V.UnexpectedToken,"ILLEGAL"),{type:S.NumericLiteral
,value:parseFloat(a),range:[d,X]}}function n(){var a,c,d,f="",g=!1;for(a=W[X],b(
"'"===a||'"'===a,"String literal must starts with a quote"),c=X,++X;Y>X;){if(d=W
[X++],d===a){a="";break}if("\\"===d)if(d=W[X++],d&&e(d.charCodeAt(0)))"\r"===d&&
"\n"===W[X]&&++X;else switch(d){case"n":f+="\n";break;case"r":f+="\r";break;case
"t":f+=" ";break;case"b":f+="\b";break;case"f":f+="\f";break;case"v":f+="
| 11 window.PolymerGestures={},function(a){var b=!1,c=document.createElement("meta");
if(c.createShadowRoot){var d=c.createShadowRoot(),e=document.createElement("span
");d.appendChild(e),c.addEventListener("testpath",function(a){a.path&&(b=a.path[
0]===e),a.stopPropagation()});var f=new CustomEvent("testpath",{bubbles:!0});doc
ument.head.appendChild(c),e.dispatchEvent(f),c.parentNode.removeChild(c),d=e=nul
l}c=null;var g={shadow:function(a){return a?a.shadowRoot||a.webkitShadowRoot:voi
d 0},canTarget:function(a){return a&&Boolean(a.elementFromPoint)},targetingShado
w:function(a){var b=this.shadow(a);return this.canTarget(b)?b:void 0},olderShado
w:function(a){var b=a.olderShadowRoot;if(!b){var c=a.querySelector("shadow");c&&
(b=c.olderShadowRoot)}return b},allShadows:function(a){for(var b=[],c=this.shado
w(a);c;)b.push(c),c=this.olderShadow(c);return b},searchRoot:function(a,b,c){var
d,e;return a?(d=a.elementFromPoint(b,c),d?e=this.targetingShadow(d):a!==documen
t&&(e=this.olderShadow(a)),this.searchRoot(e,b,c)||d):void 0},owner:function(a){
if(!a)return document;for(var b=a;b.parentNode;)b=b.parentNode;return b.nodeType
!=Node.DOCUMENT_NODE&&b.nodeType!=Node.DOCUMENT_FRAGMENT_NODE&&(b=document),b},f
indTarget:function(a){if(b&&a.path&&a.path.length)return a.path[0];var c=a.clien
tX,d=a.clientY,e=this.owner(a.target);return e.elementFromPoint(c,d)||(e=documen
t),this.searchRoot(e,c,d)},findTouchAction:function(a){var c;if(b&&a.path&&a.pat
h.length){for(var d=a.path,e=0;e<d.length;e++)if(c=d[e],c.nodeType===Node.ELEMEN
T_NODE&&c.hasAttribute("touch-action"))return c.getAttribute("touch-action")}els
e for(c=a.target;c;){if(c.nodeType===Node.ELEMENT_NODE&&c.hasAttribute("touch-ac
tion"))return c.getAttribute("touch-action");c=c.parentNode||c.host}return"auto"
},LCA:function(a,b){if(a===b)return a;if(a&&!b)return a;if(b&&!a)return b;if(!b&
&!a)return document;if(a.contains&&a.contains(b))return a;if(b.contains&&b.conta
ins(a))return b;var c=this.depth(a),d=this.depth(b),e=c-d;for(e>=0?a=this.walk(a
,e):b=this.walk(b,-e);a&&b&&a!==b;)a=a.parentNode||a.host,b=b.parentNode||b.host
;return a},walk:function(a,b){for(var c=0;a&&b>c;c++)a=a.parentNode||a.host;retu
rn a},depth:function(a){for(var b=0;a;)b++,a=a.parentNode||a.host;return b},deep
Contains:function(a,b){var c=this.LCA(a,b);return c===a},insideNode:function(a,b
,c){var d=a.getBoundingClientRect();return d.left<=b&&b<=d.right&&d.top<=c&&c<=d
.bottom},path:function(a){var c;if(b&&a.path&&a.path.length)c=a.path;else{c=[];f
or(var d=this.findTarget(a);d;)c.push(d),d=d.parentNode||d.host}return c}};a.tar
getFinding=g,a.findTarget=g.findTarget.bind(g),a.deepContains=g.deepContains.bin
d(g),a.insideNode=g.insideNode}(window.PolymerGestures),function(){function a(a)
{return"html /deep/ "+b(a)}function b(a){return'[touch-action="'+a+'"]'}function
c(a){return"{ -ms-touch-action: "+a+"; touch-action: "+a+";}"}var d=["none","au
to","pan-x","pan-y",{rule:"pan-x pan-y",selectors:["pan-x pan-y","pan-y pan-x"]}
,"manipulation"],e="",f="string"==typeof document.head.style.touchAction,g=!wind
ow.ShadowDOMPolyfill&&document.head.createShadowRoot;if(f){d.forEach(function(d)
{String(d)===d?(e+=b(d)+c(d)+"\n",g&&(e+=a(d)+c(d)+"\n")):(e+=d.selectors.map(b)
+c(d.rule)+"\n",g&&(e+=d.selectors.map(a)+c(d.rule)+"\n"))});var h=document.crea
teElement("style");h.textContent=e,document.head.appendChild(h)}}(),function(a){
var b=["bubbles","cancelable","view","detail","screenX","screenY","clientX","cli
entY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","pageX","
pageY"],c=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0],d=function(){return f
unction(){}},e={preventTap:d,makeBaseEvent:function(a,b){var c=document.createEv
ent("Event");return c.initEvent(a,b.bubbles||!1,b.cancelable||!1),c.preventTap=e
.preventTap(c),c},makeGestureEvent:function(a,b){b=b||Object.create(null);for(va
r c,d=this.makeBaseEvent(a,b),e=0,f=Object.keys(b);e<f.length;e++)c=f[e],d[c]=b[
c];return d},makePointerEvent:function(a,d){d=d||Object.create(null);for(var e,f
=this.makeBaseEvent(a,d),g=0;g<b.length;g++)e=b[g],f[e]=d[e]||c[g];f.buttons=d.b
uttons||0;var h=0;return h=d.pressure?d.pressure:f.buttons?.5:0,f.x=f.clientX,f.
y=f.clientY,f.pointerId=d.pointerId||0,f.width=d.width||0,f.height=d.height||0,f
.pressure=h,f.tiltX=d.tiltX||0,f.tiltY=d.tiltY||0,f.pointerType=d.pointerType||"
",f.hwTimestamp=d.hwTimestamp||0,f.isPrimary=d.isPrimary||!1,f._source=d._source
||"",f}};a.eventFactory=e}(window.PolymerGestures),function(a){function b(){if(c
){var a=new Map;return a.pointers=d,a}this.keys=[],this.values=[]}var c=window.M
ap&&window.Map.prototype.forEach,d=function(){return this.size};b.prototype={set
:function(a,b){var c=this.keys.indexOf(a);c>-1?this.values[c]=b:(this.keys.push(
a),this.values.push(b))},has:function(a){return this.keys.indexOf(a)>-1},"delete
":function(a){var b=this.keys.indexOf(a);b>-1&&(this.keys.splice(b,1),this.value
s.splice(b,1))},get:function(a){var b=this.keys.indexOf(a);return this.values[b]
},clear:function(){this.keys.length=0,this.values.length=0},forEach:function(a,b
){this.values.forEach(function(c,d){a.call(b,c,this.keys[d],this)},this)},pointe
rs:function(){return this.keys.length}},a.PointerMap=b}(window.PolymerGestures),
function(a){var b,c=["bubbles","cancelable","view","detail","screenX","screenY",
"clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTar
get","buttons","pointerId","width","height","pressure","tiltX","tiltY","pointerT
ype","hwTimestamp","isPrimary","type","target","currentTarget","which","pageX","
pageY","timeStamp","preventTap","tapPrevented","_source"],d=[!1,!1,null,null,0,0
,0,0,!1,!1,!1,!1,0,null,0,0,0,0,0,0,0,"",0,!1,"",null,null,0,0,0,0,function(){},
!1],e="undefined"!=typeof SVGElementInstance,f=a.eventFactory,g={IS_IOS:!1,point
ermap:new a.PointerMap,requiredGestures:new a.PointerMap,eventMap:Object.create(
null),eventSources:Object.create(null),eventSourceList:[],gestures:[],dependency
Map:{down:{listeners:0,index:-1},up:{listeners:0,index:-1}},gestureQueue:[],regi
sterSource:function(a,b){var c=b,d=c.events;d&&(d.forEach(function(a){c[a]&&(thi
s.eventMap[a]=c[a].bind(c))},this),this.eventSources[a]=c,this.eventSourceList.p
ush(c))},registerGesture:function(a,b){var c=Object.create(null);c.listeners=0,c
.index=this.gestures.length;for(var d,e=0;e<b.exposes.length;e++)d=b.exposes[e].
toLowerCase(),this.dependencyMap[d]=c;this.gestures.push(b)},register:function(a
,b){for(var c,d=this.eventSourceList.length,e=0;d>e&&(c=this.eventSourceList[e])
;e++)c.register.call(c,a,b)},unregister:function(a){for(var b,c=this.eventSource
List.length,d=0;c>d&&(b=this.eventSourceList[d]);d++)b.unregister.call(b,a)},dow
n:function(a){this.requiredGestures.set(a.pointerId,b),this.fireEvent("down",a)}
,move:function(a){a.type="move",this.fillGestureQueue(a)},up:function(a){this.fi
reEvent("up",a),this.requiredGestures.delete(a.pointerId)},cancel:function(a){a.
tapPrevented=!0,this.fireEvent("up",a),this.requiredGestures.delete(a.pointerId)
},addGestureDependency:function(a,b){var c=a._pgEvents;if(c)for(var d,e,f,g=Obje
ct.keys(c),h=0;h<g.length;h++)f=g[h],c[f]>0&&(d=this.dependencyMap[f],e=d?d.inde
x:-1,b[e]=!0)},eventHandler:function(c){var d=c.type;if("touchstart"===d||"mouse
down"===d||"pointerdown"===d||"MSPointerDown"===d)if(c._handledByPG||(b={}),this
.IS_IOS)for(var e,f=a.targetFinding.path(c),g=0;g<f.length;g++)e=f[g],this.addGe
stureDependency(e,b);else this.addGestureDependency(c.currentTarget,b);if(!c._ha
ndledByPG){var h=this.eventMap&&this.eventMap[d];h&&h(c),c._handledByPG=!0}},lis
ten:function(a,b){for(var c,d=0,e=b.length;e>d&&(c=b[d]);d++)this.addEvent(a,c)}
,unlisten:function(a,b){for(var c,d=0,e=b.length;e>d&&(c=b[d]);d++)this.removeEv
ent(a,c)},addEvent:function(a,b){a.addEventListener(b,this.boundHandler)},remove
Event:function(a,b){a.removeEventListener(b,this.boundHandler)},makeEvent:functi
on(a,b){var c=f.makePointerEvent(a,b);return c.preventDefault=b.preventDefault,c
.tapPrevented=b.tapPrevented,c._target=c._target||b.target,c},fireEvent:function
(a,b){var c=this.makeEvent(a,b);return this.dispatchEvent(c)},cloneEvent:functio
n(a){for(var b,f=Object.create(null),g=0;g<c.length;g++)b=c[g],f[b]=a[b]||d[g],(
"target"===b||"relatedTarget"===b)&&e&&f[b]instanceof SVGElementInstance&&(f[b]=
f[b].correspondingUseElement);return f.preventDefault=function(){a.preventDefaul
t()},f},dispatchEvent:function(a){var b=a._target;if(b){b.dispatchEvent(a);var c
=this.cloneEvent(a);c.target=b,this.fillGestureQueue(c)}},gestureTrigger:functio
n(){for(var a,b,c=0;c<this.gestureQueue.length;c++){a=this.gestureQueue[c],b=a._
requiredGestures;for(var d,e,f=0;f<this.gestures.length;f++)b[f]&&(d=this.gestur
es[f],e=d[a.type],e&&e.call(d,a))}this.gestureQueue.length=0},fillGestureQueue:f
unction(a){this.gestureQueue.length||requestAnimationFrame(this.boundGestureTrig
ger),a._requiredGestures=this.requiredGestures.get(a.pointerId),this.gestureQueu
e.push(a)}};g.boundHandler=g.eventHandler.bind(g),g.boundGestureTrigger=g.gestur
eTrigger.bind(g),a.dispatcher=g,a.activateGesture=function(a,b){var c=b.toLowerC
ase(),d=g.dependencyMap[c];if(d){var e=g.gestures[d.index];if(a._pgListeners||(g
.register(a),a._pgListeners=0),e){var f,h=e.defaultActions&&e.defaultActions[c];
switch(a.nodeType){case Node.ELEMENT_NODE:f=a;break;case Node.DOCUMENT_FRAGMENT_
NODE:f=a.host;break;default:f=null}h&&f&&!f.hasAttribute("touch-action")&&f.setA
ttribute("touch-action",h)}a._pgEvents||(a._pgEvents={}),a._pgEvents[c]=(a._pgEv
ents[c]||0)+1,a._pgListeners++}return Boolean(d)},a.addEventListener=function(b,
c,d,e){d&&(a.activateGesture(b,c),b.addEventListener(c,d,e))},a.deactivateGestur
e=function(a,b){var c=b.toLowerCase(),d=g.dependencyMap[c];return d&&(a._pgListe
ners>0&&a._pgListeners--,0===a._pgListeners&&g.unregister(a),a._pgEvents&&(a._pg
Events[c]>0?a._pgEvents[c]--:a._pgEvents[c]=0)),Boolean(d)},a.removeEventListene
r=function(b,c,d,e){d&&(a.deactivateGesture(b,c),b.removeEventListener(c,d,e))}}
(window.PolymerGestures),function(a){var b=a.dispatcher,c=b.pointermap,d=25,e=[0
,1,4,2],f=!1;try{f=1===new MouseEvent("test",{buttons:1}).buttons}catch(g){}var
h={POINTER_ID:1,POINTER_TYPE:"mouse",events:["mousedown","mousemove","mouseup"],
exposes:["down","up","move"],register:function(a){b.listen(a,this.events)},unreg
ister:function(a){a!==document&&b.unlisten(a,this.events)},lastTouches:[],isEven
tSimulatedFromTouch:function(a){for(var b,c=this.lastTouches,e=a.clientX,f=a.cli
entY,g=0,h=c.length;h>g&&(b=c[g]);g++){var i=Math.abs(e-b.x),j=Math.abs(f-b.y);i
f(d>=i&&d>=j)return!0}},prepareEvent:function(a){var c=b.cloneEvent(a);return c.
pointerId=this.POINTER_ID,c.isPrimary=!0,c.pointerType=this.POINTER_TYPE,c._sour
ce="mouse",f||(c.buttons=e[c.which]||0),c},mousedown:function(d){if(!this.isEven
tSimulatedFromTouch(d)){var e=c.has(this.POINTER_ID);e&&this.mouseup(d);var f=th
is.prepareEvent(d);f.target=a.findTarget(d),c.set(this.POINTER_ID,f.target),b.do
wn(f)}},mousemove:function(a){if(!this.isEventSimulatedFromTouch(a)){var d=c.get
(this.POINTER_ID);if(d){var e=this.prepareEvent(a);e.target=d,0===e.buttons?(b.c
ancel(e),this.cleanupMouse()):b.move(e)}}},mouseup:function(d){if(!this.isEventS
imulatedFromTouch(d)){var e=this.prepareEvent(d);e.relatedTarget=a.findTarget(d)
,e.target=c.get(this.POINTER_ID),b.up(e),this.cleanupMouse()}},cleanupMouse:func
tion(){c["delete"](this.POINTER_ID)}};a.mouseEvents=h}(window.PolymerGestures),f
unction(a){var b=a.dispatcher,c=(a.targetFinding.allShadows.bind(a.targetFinding
),b.pointermap),d=(Array.prototype.map.call.bind(Array.prototype.map),2500),e=20
0,f=20,g=!1,h={IS_IOS:!1,events:["touchstart","touchmove","touchend","touchcance
l"],exposes:["down","up","move"],register:function(a,c){(this.IS_IOS?c:!c)&&b.li
sten(a,this.events)},unregister:function(a){this.IS_IOS||b.unlisten(a,this.event
s)},scrollTypes:{EMITTER:"none",XSCROLLER:"pan-x",YSCROLLER:"pan-y"},touchAction
ToScrollType:function(a){var b=a,c=this.scrollTypes;return b===c.EMITTER?"none":
b===c.XSCROLLER?"X":b===c.YSCROLLER?"Y":"XY"},POINTER_TYPE:"touch",firstTouch:nu
ll,isPrimaryTouch:function(a){return this.firstTouch===a.identifier},setPrimaryT
ouch:function(a){(0===c.pointers()||1===c.pointers()&&c.has(1))&&(this.firstTouc
h=a.identifier,this.firstXY={X:a.clientX,Y:a.clientY},this.scrolling=null,this.c
ancelResetClickCount())},removePrimaryPointer:function(a){a.isPrimary&&(this.fir
stTouch=null,this.firstXY=null,this.resetClickCount())},clickCount:0,resetId:nul
l,resetClickCount:function(){var a=function(){this.clickCount=0,this.resetId=nul
l}.bind(this);this.resetId=setTimeout(a,e)},cancelResetClickCount:function(){thi
s.resetId&&clearTimeout(this.resetId)},typeToButtons:function(a){var b=0;return(
"touchstart"===a||"touchmove"===a)&&(b=1),b},findTarget:function(b,d){if("touchs
tart"===this.currentTouchEvent.type){if(this.isPrimaryTouch(b)){var e={clientX:b
.clientX,clientY:b.clientY,path:this.currentTouchEvent.path,target:this.currentT
ouchEvent.target};return a.findTarget(e)}return a.findTarget(b)}return c.get(d)}
,touchToPointer:function(a){var c=this.currentTouchEvent,d=b.cloneEvent(a),e=d.p
ointerId=a.identifier+2;d.target=this.findTarget(a,e),d.bubbles=!0,d.cancelable=
!0,d.detail=this.clickCount,d.buttons=this.typeToButtons(c.type),d.width=a.webki
tRadiusX||a.radiusX||0,d.height=a.webkitRadiusY||a.radiusY||0,d.pressure=a.webki
tForce||a.force||.5,d.isPrimary=this.isPrimaryTouch(a),d.pointerType=this.POINTE
R_TYPE,d._source="touch";var f=this;return d.preventDefault=function(){f.scrolli
ng=!1,f.firstXY=null,c.preventDefault()},d},processTouches:function(a,b){var d=a
.changedTouches;this.currentTouchEvent=a;for(var e,f,g=0;g<d.length;g++)e=d[g],f
=this.touchToPointer(e),"touchstart"===a.type&&c.set(f.pointerId,f.target),c.has
(f.pointerId)&&b.call(this,f),("touchend"===a.type||a._cancel)&&this.cleanUpPoin
ter(f)},shouldScroll:function(b){if(this.firstXY){var c,d=a.targetFinding.findTo
uchAction(b),e=this.touchActionToScrollType(d);if("none"===e)c=!1;else if("XY"==
=e)c=!0;else{var f=b.changedTouches[0],g=e,h="Y"===e?"X":"Y",i=Math.abs(f["clien
t"+g]-this.firstXY[g]),j=Math.abs(f["client"+h]-this.firstXY[h]);c=i>=j}return c
}},findTouch:function(a,b){for(var c,d=0,e=a.length;e>d&&(c=a[d]);d++)if(c.ident
ifier===b)return!0},vacuumTouches:function(a){var b=a.touches;if(c.pointers()>=b
.length){var d=[];c.forEach(function(a,c){if(1!==c&&!this.findTouch(b,c-2)){var
e=a;d.push(e)}},this),d.forEach(function(a){this.cancel(a),c.delete(a.pointerId)
})}},touchstart:function(a){this.vacuumTouches(a),this.setPrimaryTouch(a.changed
Touches[0]),this.dedupSynthMouse(a),this.scrolling||(this.clickCount++,this.proc
essTouches(a,this.down))},down:function(a){b.down(a)},touchmove:function(a){if(g
)a.cancelable&&this.processTouches(a,this.move);else if(this.scrolling){if(this.
firstXY){var b=a.changedTouches[0],c=b.clientX-this.firstXY.X,d=b.clientY-this.f
irstXY.Y,e=Math.sqrt(c*c+d*d);e>=f&&(this.touchcancel(a),this.scrolling=!0,this.
firstXY=null)}}else null===this.scrolling&&this.shouldScroll(a)?this.scrolling=!
0:(this.scrolling=!1,a.preventDefault(),this.processTouches(a,this.move))},move:
function(a){b.move(a)},touchend:function(a){this.dedupSynthMouse(a),this.process
Touches(a,this.up)},up:function(c){c.relatedTarget=a.findTarget(c),b.up(c)},canc
el:function(a){b.cancel(a)},touchcancel:function(a){a._cancel=!0,this.processTou
ches(a,this.cancel)},cleanUpPointer:function(a){c["delete"](a.pointerId),this.re
movePrimaryPointer(a)},dedupSynthMouse:function(b){var c=a.mouseEvents.lastTouch
es,e=b.changedTouches[0];if(this.isPrimaryTouch(e)){var f={x:e.clientX,y:e.clien
tY};c.push(f);var g=function(a,b){var c=a.indexOf(b);c>-1&&a.splice(c,1)}.bind(n
ull,c,f);setTimeout(g,d)}}};a.touchEvents=h}(window.PolymerGestures),function(a)
{var b=a.dispatcher,c=b.pointermap,d=window.MSPointerEvent&&"number"==typeof win
dow.MSPointerEvent.MSPOINTER_TYPE_MOUSE,e={events:["MSPointerDown","MSPointerMov
e","MSPointerUp","MSPointerCancel"],register:function(a){b.listen(a,this.events)
},unregister:function(a){a!==document&&b.unlisten(a,this.events)},POINTER_TYPES:
["","unavailable","touch","pen","mouse"],prepareEvent:function(a){var c=a;return
c=b.cloneEvent(a),d&&(c.pointerType=this.POINTER_TYPES[a.pointerType]),c._sourc
e="ms",c},cleanup:function(a){c["delete"](a)},MSPointerDown:function(d){var e=th
is.prepareEvent(d);e.target=a.findTarget(d),c.set(d.pointerId,e.target),b.down(e
)},MSPointerMove:function(a){var d=c.get(a.pointerId);if(d){var e=this.prepareEv
ent(a);e.target=d,b.move(e)}},MSPointerUp:function(d){var e=this.prepareEvent(d)
;e.relatedTarget=a.findTarget(d),e.target=c.get(e.pointerId),b.up(e),this.cleanu
p(d.pointerId)},MSPointerCancel:function(d){var e=this.prepareEvent(d);e.related
Target=a.findTarget(d),e.target=c.get(e.pointerId),b.cancel(e),this.cleanup(d.po
interId)}};a.msEvents=e}(window.PolymerGestures),function(a){var b=a.dispatcher,
c=b.pointermap,d={events:["pointerdown","pointermove","pointerup","pointercancel
"],prepareEvent:function(a){var c=b.cloneEvent(a);return c._source="pointer",c},
register:function(a){b.listen(a,this.events)},unregister:function(a){a!==documen
t&&b.unlisten(a,this.events)},cleanup:function(a){c["delete"](a)},pointerdown:fu
nction(d){var e=this.prepareEvent(d);e.target=a.findTarget(d),c.set(e.pointerId,
e.target),b.down(e)},pointermove:function(a){var d=c.get(a.pointerId);if(d){var
e=this.prepareEvent(a);e.target=d,b.move(e)}},pointerup:function(d){var e=this.p
repareEvent(d);e.relatedTarget=a.findTarget(d),e.target=c.get(e.pointerId),b.up(
e),this.cleanup(d.pointerId)},pointercancel:function(d){var e=this.prepareEvent(
d);e.relatedTarget=a.findTarget(d),e.target=c.get(e.pointerId),b.cancel(e),this.
cleanup(d.pointerId)}};a.pointerEvents=d}(window.PolymerGestures),function(a){va
r b=a.dispatcher,c=window.navigator;window.PointerEvent?b.registerSource("pointe
r",a.pointerEvents):c.msPointerEnabled?b.registerSource("ms",a.msEvents):(b.regi
sterSource("mouse",a.mouseEvents),void 0!==window.ontouchstart&&b.registerSource
("touch",a.touchEvents));var d=navigator.userAgent,e=d.match(/iPad|iPhone|iPod/)
&&"ontouchstart"in window;b.IS_IOS=e,a.touchEvents.IS_IOS=e,b.register(document,
!0)}(window.PolymerGestures),function(a){var b=a.dispatcher,c=a.eventFactory,d=n
ew a.PointerMap,e={events:["down","move","up"],exposes:["trackstart","track","tr
ackx","tracky","trackend"],defaultActions:{track:"none",trackx:"pan-y",tracky:"p
an-x"},WIGGLE_THRESHOLD:4,clampDir:function(a){return a>0?1:-1},calcPositionDelt
a:function(a,b){var c=0,d=0;return a&&b&&(c=b.pageX-a.pageX,d=b.pageY-a.pageY),{
x:c,y:d}},fireTrack:function(a,b,d){var e=d,f=this.calcPositionDelta(e.downEvent
,b),g=this.calcPositionDelta(e.lastMoveEvent,b);if(g.x)e.xDirection=this.clampDi
r(g.x);else if("trackx"===a)return;if(g.y)e.yDirection=this.clampDir(g.y);else i
f("tracky"===a)return;var h={bubbles:!0,cancelable:!0,trackInfo:e.trackInfo,rela
tedTarget:b.relatedTarget,pointerType:b.pointerType,pointerId:b.pointerId,_sourc
e:"track"};"tracky"!==a&&(h.x=b.x,h.dx=f.x,h.ddx=g.x,h.clientX=b.clientX,h.pageX
=b.pageX,h.screenX=b.screenX,h.xDirection=e.xDirection),"trackx"!==a&&(h.dy=f.y,
h.ddy=g.y,h.y=b.y,h.clientY=b.clientY,h.pageY=b.pageY,h.screenY=b.screenY,h.yDir
ection=e.yDirection);var i=c.makeGestureEvent(a,h);e.downTarget.dispatchEvent(i)
},down:function(a){if(a.isPrimary&&("mouse"===a.pointerType?1===a.buttons:!0)){v
ar b={downEvent:a,downTarget:a.target,trackInfo:{},lastMoveEvent:null,xDirection
:0,yDirection:0,tracking:!1};d.set(a.pointerId,b)}},move:function(a){var b=d.get
(a.pointerId);if(b){if(!b.tracking){var c=this.calcPositionDelta(b.downEvent,a),
e=c.x*c.x+c.y*c.y;e>this.WIGGLE_THRESHOLD&&(b.tracking=!0,b.lastMoveEvent=b.down
Event,this.fireTrack("trackstart",a,b))}b.tracking&&(this.fireTrack("track",a,b)
,this.fireTrack("trackx",a,b),this.fireTrack("tracky",a,b)),b.lastMoveEvent=a}},
up:function(a){var b=d.get(a.pointerId);b&&(b.tracking&&this.fireTrack("trackend
",a,b),d.delete(a.pointerId))}};b.registerGesture("track",e)}(window.PolymerGest
ures),function(a){var b=a.dispatcher,c=a.eventFactory,d={HOLD_DELAY:200,WIGGLE_T
HRESHOLD:16,events:["down","move","up"],exposes:["hold","holdpulse","release"],h
eldPointer:null,holdJob:null,pulse:function(){var a=Date.now()-this.heldPointer.
timeStamp,b=this.held?"holdpulse":"hold";this.fireHold(b,a),this.held=!0},cancel
:function(){clearInterval(this.holdJob),this.held&&this.fireHold("release"),this
.held=!1,this.heldPointer=null,this.target=null,this.holdJob=null},down:function
(a){a.isPrimary&&!this.heldPointer&&(this.heldPointer=a,this.target=a.target,thi
s.holdJob=setInterval(this.pulse.bind(this),this.HOLD_DELAY))},up:function(a){th
is.heldPointer&&this.heldPointer.pointerId===a.pointerId&&this.cancel()},move:fu
nction(a){if(this.heldPointer&&this.heldPointer.pointerId===a.pointerId){var b=a
.clientX-this.heldPointer.clientX,c=a.clientY-this.heldPointer.clientY;b*b+c*c>t
his.WIGGLE_THRESHOLD&&this.cancel()}},fireHold:function(a,b){var d={bubbles:!0,c
ancelable:!0,pointerType:this.heldPointer.pointerType,pointerId:this.heldPointer
.pointerId,x:this.heldPointer.clientX,y:this.heldPointer.clientY,_source:"hold"}
;b&&(d.holdTime=b);var e=c.makeGestureEvent(a,d);this.target.dispatchEvent(e)}};
b.registerGesture("hold",d)}(window.PolymerGestures),function(a){var b=a.dispatc
her,c=a.eventFactory,d=new a.PointerMap,e={events:["down","up"],exposes:["tap"],
down:function(a){a.isPrimary&&!a.tapPrevented&&d.set(a.pointerId,{target:a.targe
t,buttons:a.buttons,x:a.clientX,y:a.clientY})},shouldTap:function(a,b){return"mo
use"===a.pointerType?1===b.buttons:!a.tapPrevented},up:function(b){var e=d.get(b
.pointerId);if(e&&this.shouldTap(b,e)){var f=a.targetFinding.LCA(e.target,b.rela
tedTarget);if(f){var g=c.makeGestureEvent("tap",{bubbles:!0,cancelable:!0,x:b.cl
ientX,y:b.clientY,detail:b.detail,pointerType:b.pointerType,pointerId:b.pointerI
d,altKey:b.altKey,ctrlKey:b.ctrlKey,metaKey:b.metaKey,shiftKey:b.shiftKey,_sourc
e:"tap"});f.dispatchEvent(g)}}d.delete(b.pointerId)}};c.preventTap=function(a){r
eturn function(){a.tapPrevented=!0,d.delete(a.pointerId)}},b.registerGesture("ta
p",e)}(window.PolymerGestures),function(a){"use strict";function b(a,b){if(!a)th
row new Error("ASSERT: "+b)}function c(a){return a>=48&&57>=a}function d(a){retu
rn 32===a||9===a||11===a||12===a||160===a||a>=5760&&"\u1680\u180e\u2000\u2001\u2
002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\ufeff".ind
exOf(String.fromCharCode(a))>0}function e(a){return 10===a||13===a||8232===a||82
33===a}function f(a){return 36===a||95===a||a>=65&&90>=a||a>=97&&122>=a}function
g(a){return 36===a||95===a||a>=65&&90>=a||a>=97&&122>=a||a>=48&&57>=a}function
h(a){return"this"===a}function i(){for(;Y>X&&d(W.charCodeAt(X));)++X}function j(
){var a,b;for(a=X++;Y>X&&(b=W.charCodeAt(X),g(b));)++X;return W.slice(a,X)}funct
ion k(){var a,b,c;return a=X,b=j(),c=1===b.length?S.Identifier:h(b)?S.Keyword:"n
ull"===b?S.NullLiteral:"true"===b||"false"===b?S.BooleanLiteral:S.Identifier,{ty
pe:c,value:b,range:[a,X]}}function l(){var a,b,c=X,d=W.charCodeAt(X),e=W[X];swit
ch(d){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:
case 58:case 63:return++X,{type:S.Punctuator,value:String.fromCharCode(d),range:
[c,X]};default:if(a=W.charCodeAt(X+1),61===a)switch(d){case 37:case 38:case 42:c
ase 43:case 45:case 47:case 60:case 62:case 124:return X+=2,{type:S.Punctuator,v
alue:String.fromCharCode(d)+String.fromCharCode(a),range:[c,X]};case 33:case 61:
return X+=2,61===W.charCodeAt(X)&&++X,{type:S.Punctuator,value:W.slice(c,X),rang
e:[c,X]}}}return b=W[X+1],e===b&&"&|".indexOf(e)>=0?(X+=2,{type:S.Punctuator,val
ue:e+b,range:[c,X]}):"<>=!+-*%&|^/".indexOf(e)>=0?(++X,{type:S.Punctuator,value:
e,range:[c,X]}):void s({},V.UnexpectedToken,"ILLEGAL")}function m(){var a,d,e;if
(e=W[X],b(c(e.charCodeAt(0))||"."===e,"Numeric literal must start with a decimal
digit or a decimal point"),d=X,a="","."!==e){for(a=W[X++],e=W[X],"0"===a&&e&&c(
e.charCodeAt(0))&&s({},V.UnexpectedToken,"ILLEGAL");c(W.charCodeAt(X));)a+=W[X++
];e=W[X]}if("."===e){for(a+=W[X++];c(W.charCodeAt(X));)a+=W[X++];e=W[X]}if("e"==
=e||"E"===e)if(a+=W[X++],e=W[X],("+"===e||"-"===e)&&(a+=W[X++]),c(W.charCodeAt(X
)))for(;c(W.charCodeAt(X));)a+=W[X++];else s({},V.UnexpectedToken,"ILLEGAL");ret
urn f(W.charCodeAt(X))&&s({},V.UnexpectedToken,"ILLEGAL"),{type:S.NumericLiteral
,value:parseFloat(a),range:[d,X]}}function n(){var a,c,d,f="",g=!1;for(a=W[X],b(
"'"===a||'"'===a,"String literal must starts with a quote"),c=X,++X;Y>X;){if(d=W
[X++],d===a){a="";break}if("\\"===d)if(d=W[X++],d&&e(d.charCodeAt(0)))"\r"===d&&
"\n"===W[X]&&++X;else switch(d){case"n":f+="\n";break;case"r":f+="\r";break;case
"t":f+=" ";break;case"b":f+="\b";break;case"f":f+="\f";break;case"v":f+="
|
12 ";break;default:f+=d}else{if(e(d.charCodeAt(0)))break;f+=d}}return""!==a&&s({},V
.UnexpectedToken,"ILLEGAL"),{type:S.StringLiteral,value:f,octal:g,range:[c,X]}}f
unction o(a){return a.type===S.Identifier||a.type===S.Keyword||a.type===S.Boolea
nLiteral||a.type===S.NullLiteral}function p(){var a;return i(),X>=Y?{type:S.EOF,
range:[X,X]}:(a=W.charCodeAt(X),40===a||41===a||58===a?l():39===a||34===a?n():f(
a)?k():46===a?c(W.charCodeAt(X+1))?m():l():c(a)?m():l())}function q(){var a;retu
rn a=$,X=a.range[1],$=p(),X=a.range[1],a}function r(){var a;a=X,$=p(),X=a}functi
on s(a,c){var d,e=Array.prototype.slice.call(arguments,2),f=c.replace(/%(\d)/g,f
unction(a,c){return b(c<e.length,"Message reference must be in range"),e[c]});th
row d=new Error(f),d.index=X,d.description=f,d}function t(a){s(a,V.UnexpectedTok
en,a.value)}function u(a){var b=q();(b.type!==S.Punctuator||b.value!==a)&&t(b)}f
unction v(a){return $.type===S.Punctuator&&$.value===a}function w(a){return $.ty
pe===S.Keyword&&$.value===a}function x(){var a=[];for(u("[");!v("]");)v(",")?(q(
),a.push(null)):(a.push(bb()),v("]")||u(","));return u("]"),Z.createArrayExpress
ion(a)}function y(){var a;return i(),a=q(),a.type===S.StringLiteral||a.type===S.
NumericLiteral?Z.createLiteral(a):Z.createIdentifier(a.value)}function z(){var a
,b;return a=$,i(),(a.type===S.EOF||a.type===S.Punctuator)&&t(a),b=y(),u(":"),Z.c
reateProperty("init",b,bb())}function A(){var a=[];for(u("{");!v("}");)a.push(z(
)),v("}")||u(",");return u("}"),Z.createObjectExpression(a)}function B(){var a;r
eturn u("("),a=bb(),u(")"),a}function C(){var a,b,c;return v("(")?B():(a=$.type,
a===S.Identifier?c=Z.createIdentifier(q().value):a===S.StringLiteral||a===S.Nume
ricLiteral?c=Z.createLiteral(q()):a===S.Keyword?w("this")&&(q(),c=Z.createThisEx
pression()):a===S.BooleanLiteral?(b=q(),b.value="true"===b.value,c=Z.createLiter
al(b)):a===S.NullLiteral?(b=q(),b.value=null,c=Z.createLiteral(b)):v("[")?c=x():
v("{")&&(c=A()),c?c:void t(q()))}function D(){var a=[];if(u("("),!v(")"))for(;Y>
X&&(a.push(bb()),!v(")"));)u(",");return u(")"),a}function E(){var a;return a=q(
),o(a)||t(a),Z.createIdentifier(a.value)}function F(){return u("."),E()}function
G(){var a;return u("["),a=bb(),u("]"),a}function H(){var a,b,c;for(a=C();;)if(v
("["))c=G(),a=Z.createMemberExpression("[",a,c);else if(v("."))c=F(),a=Z.createM
emberExpression(".",a,c);else{if(!v("("))break;b=D(),a=Z.createCallExpression(a,
b)}return a}function I(){var a,b;return $.type!==S.Punctuator&&$.type!==S.Keywor
d?b=ab():v("+")||v("-")||v("!")?(a=q(),b=I(),b=Z.createUnaryExpression(a.value,b
)):w("delete")||w("void")||w("typeof")?s({},V.UnexpectedToken):b=ab(),b}function
J(a){var b=0;if(a.type!==S.Punctuator&&a.type!==S.Keyword)return 0;switch(a.val
ue){case"||":b=1;break;case"&&":b=2;break;case"==":case"!=":case"===":case"!==":
b=6;break;case"<":case">":case"<=":case">=":case"instanceof":b=7;break;case"in":
b=7;break;case"+":case"-":b=9;break;case"*":case"/":case"%":b=11}return b}functi
on K(){var a,b,c,d,e,f,g,h;if(g=I(),b=$,c=J(b),0===c)return g;for(b.prec=c,q(),e
=I(),d=[g,b,e];(c=J($))>0;){for(;d.length>2&&c<=d[d.length-2].prec;)e=d.pop(),f=
d.pop().value,g=d.pop(),a=Z.createBinaryExpression(f,g,e),d.push(a);b=q(),b.prec
=c,d.push(b),a=I(),d.push(a)}for(h=d.length-1,a=d[h];h>1;)a=Z.createBinaryExpres
sion(d[h-1].value,d[h-2],a),h-=2;return a}function L(){var a,b,c;return a=K(),v(
"?")&&(q(),b=L(),u(":"),c=L(),a=Z.createConditionalExpression(a,b,c)),a}function
M(){var a,b;return a=q(),a.type!==S.Identifier&&t(a),b=v("(")?D():[],Z.createFi
lter(a.value,b)}function N(){for(;v("|");)q(),M()}function O(){i(),r();var a=bb(
);a&&(","===$.value||"in"==$.value&&a.type===U.Identifier?Q(a):(N(),"as"===$.val
ue?P(a):Z.createTopLevel(a))),$.type!==S.EOF&&t($)}function P(a){q();var b=q().v
alue;Z.createAsExpression(a,b)}function Q(a){var b;","===$.value&&(q(),$.type!==
S.Identifier&&t($),b=q().value),q();var c=bb();N(),Z.createInExpression(a.name,b
,c)}function R(a,b){return Z=b,W=a,X=0,Y=W.length,$=null,_={labelSet:{}},O()}var
S,T,U,V,W,X,Y,Z,$,_;S={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLitera
l:5,NumericLiteral:6,Punctuator:7,StringLiteral:8},T={},T[S.BooleanLiteral]="Boo
lean",T[S.EOF]="<end>",T[S.Identifier]="Identifier",T[S.Keyword]="Keyword",T[S.N
ullLiteral]="Null",T[S.NumericLiteral]="Numeric",T[S.Punctuator]="Punctuator",T[
S.StringLiteral]="String",U={ArrayExpression:"ArrayExpression",BinaryExpression:
"BinaryExpression",CallExpression:"CallExpression",ConditionalExpression:"Condit
ionalExpression",EmptyStatement:"EmptyStatement",ExpressionStatement:"Expression
Statement",Identifier:"Identifier",Literal:"Literal",LabeledStatement:"LabeledSt
atement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpressio
n",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",Thi
sExpression:"ThisExpression",UnaryExpression:"UnaryExpression"},V={UnexpectedTok
en:"Unexpected token %0",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '
%1' has already been declared"};var ab=H,bb=L;a.esprima={parse:R}}(this),functio
n(a){"use strict";function b(a,b,d,e){var f;try{if(f=c(a),f.scopeIdent&&(d.nodeT
ype!==Node.ELEMENT_NODE||"TEMPLATE"!==d.tagName||"bind"!==b&&"repeat"!==b))throw
Error("as and in can only be used within <template bind/repeat>")}catch(g){retu
rn void console.error("Invalid expression syntax: "+a,g)}return function(a,b,c){
var d=f.getBinding(a,e,c);return f.scopeIdent&&d&&(b.polymerExpressionScopeIdent
_=f.scopeIdent,f.indexIdent&&(b.polymerExpressionIndexIdent_=f.indexIdent)),d}}f
unction c(a){var b=q[a];if(!b){var c=new j;esprima.parse(a,c),b=new l(c),q[a]=b}
return b}function d(a){this.value=a,this.valueFn_=void 0}function e(a){this.name
=a,this.path=Path.get(a)}function f(a,b,c){this.computed="["==c,this.dynamicDeps
="function"==typeof a||a.dynamicDeps||this.computed&&!(b instanceof d),this.simp
lePath=!this.dynamicDeps&&(b instanceof e||b instanceof d)&&(a instanceof f||a i
nstanceof e),this.object=this.simplePath?a:i(a),this.property=!this.computed||th
is.simplePath?b:i(b)}function g(a,b){this.name=a,this.args=[];for(var c=0;c<b.le
ngth;c++)this.args[c]=i(b[c])}function h(){throw Error("Not Implemented")}functi
on i(a){return"function"==typeof a?a:a.valueFn()}function j(){this.expression=nu
ll,this.filters=[],this.deps={},this.currentPath=void 0,this.scopeIdent=void 0,t
his.indexIdent=void 0,this.dynamicDeps=!1}function k(a){this.value_=a}function l
(a){if(this.scopeIdent=a.scopeIdent,this.indexIdent=a.indexIdent,!a.expression)t
hrow Error("No expression found.");this.expression=a.expression,i(this.expressio
n),this.filters=a.filters,this.dynamicDeps=a.dynamicDeps}function m(a){return St
ring(a).replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()})}function n(a,b)
{for(;a[t]&&!Object.prototype.hasOwnProperty.call(a,b);)a=a[t];return a}function
o(a){switch(a){case"":return!1;case"false":case"null":case"true":return!0}retur
n isNaN(Number(a))?!1:!0}function p(){}var q=Object.create(null);d.prototype={va
lueFn:function(){if(!this.valueFn_){var a=this.value;this.valueFn_=function(){re
turn a}}return this.valueFn_}},e.prototype={valueFn:function(){if(!this.valueFn_
){var a=(this.name,this.path);this.valueFn_=function(b,c){return c&&c.addPath(b,
a),a.getValueFrom(b)}}return this.valueFn_},setValue:function(a,b){return 1==thi
s.path.length,a=n(a,this.path[0]),this.path.setValueFrom(a,b)}},f.prototype={get
fullPath(){if(!this.fullPath_){var a=this.object instanceof f?this.object.fullP
ath.slice():[this.object.name]; | 12 ";break;default:f+=d}else{if(e(d.charCodeAt(0)))break;f+=d}}return""!==a&&s({},V
.UnexpectedToken,"ILLEGAL"),{type:S.StringLiteral,value:f,octal:g,range:[c,X]}}f
unction o(a){return a.type===S.Identifier||a.type===S.Keyword||a.type===S.Boolea
nLiteral||a.type===S.NullLiteral}function p(){var a;return i(),X>=Y?{type:S.EOF,
range:[X,X]}:(a=W.charCodeAt(X),40===a||41===a||58===a?l():39===a||34===a?n():f(
a)?k():46===a?c(W.charCodeAt(X+1))?m():l():c(a)?m():l())}function q(){var a;retu
rn a=$,X=a.range[1],$=p(),X=a.range[1],a}function r(){var a;a=X,$=p(),X=a}functi
on s(a,c){var d,e=Array.prototype.slice.call(arguments,2),f=c.replace(/%(\d)/g,f
unction(a,c){return b(c<e.length,"Message reference must be in range"),e[c]});th
row d=new Error(f),d.index=X,d.description=f,d}function t(a){s(a,V.UnexpectedTok
en,a.value)}function u(a){var b=q();(b.type!==S.Punctuator||b.value!==a)&&t(b)}f
unction v(a){return $.type===S.Punctuator&&$.value===a}function w(a){return $.ty
pe===S.Keyword&&$.value===a}function x(){var a=[];for(u("[");!v("]");)v(",")?(q(
),a.push(null)):(a.push(bb()),v("]")||u(","));return u("]"),Z.createArrayExpress
ion(a)}function y(){var a;return i(),a=q(),a.type===S.StringLiteral||a.type===S.
NumericLiteral?Z.createLiteral(a):Z.createIdentifier(a.value)}function z(){var a
,b;return a=$,i(),(a.type===S.EOF||a.type===S.Punctuator)&&t(a),b=y(),u(":"),Z.c
reateProperty("init",b,bb())}function A(){var a=[];for(u("{");!v("}");)a.push(z(
)),v("}")||u(",");return u("}"),Z.createObjectExpression(a)}function B(){var a;r
eturn u("("),a=bb(),u(")"),a}function C(){var a,b,c;return v("(")?B():(a=$.type,
a===S.Identifier?c=Z.createIdentifier(q().value):a===S.StringLiteral||a===S.Nume
ricLiteral?c=Z.createLiteral(q()):a===S.Keyword?w("this")&&(q(),c=Z.createThisEx
pression()):a===S.BooleanLiteral?(b=q(),b.value="true"===b.value,c=Z.createLiter
al(b)):a===S.NullLiteral?(b=q(),b.value=null,c=Z.createLiteral(b)):v("[")?c=x():
v("{")&&(c=A()),c?c:void t(q()))}function D(){var a=[];if(u("("),!v(")"))for(;Y>
X&&(a.push(bb()),!v(")"));)u(",");return u(")"),a}function E(){var a;return a=q(
),o(a)||t(a),Z.createIdentifier(a.value)}function F(){return u("."),E()}function
G(){var a;return u("["),a=bb(),u("]"),a}function H(){var a,b,c;for(a=C();;)if(v
("["))c=G(),a=Z.createMemberExpression("[",a,c);else if(v("."))c=F(),a=Z.createM
emberExpression(".",a,c);else{if(!v("("))break;b=D(),a=Z.createCallExpression(a,
b)}return a}function I(){var a,b;return $.type!==S.Punctuator&&$.type!==S.Keywor
d?b=ab():v("+")||v("-")||v("!")?(a=q(),b=I(),b=Z.createUnaryExpression(a.value,b
)):w("delete")||w("void")||w("typeof")?s({},V.UnexpectedToken):b=ab(),b}function
J(a){var b=0;if(a.type!==S.Punctuator&&a.type!==S.Keyword)return 0;switch(a.val
ue){case"||":b=1;break;case"&&":b=2;break;case"==":case"!=":case"===":case"!==":
b=6;break;case"<":case">":case"<=":case">=":case"instanceof":b=7;break;case"in":
b=7;break;case"+":case"-":b=9;break;case"*":case"/":case"%":b=11}return b}functi
on K(){var a,b,c,d,e,f,g,h;if(g=I(),b=$,c=J(b),0===c)return g;for(b.prec=c,q(),e
=I(),d=[g,b,e];(c=J($))>0;){for(;d.length>2&&c<=d[d.length-2].prec;)e=d.pop(),f=
d.pop().value,g=d.pop(),a=Z.createBinaryExpression(f,g,e),d.push(a);b=q(),b.prec
=c,d.push(b),a=I(),d.push(a)}for(h=d.length-1,a=d[h];h>1;)a=Z.createBinaryExpres
sion(d[h-1].value,d[h-2],a),h-=2;return a}function L(){var a,b,c;return a=K(),v(
"?")&&(q(),b=L(),u(":"),c=L(),a=Z.createConditionalExpression(a,b,c)),a}function
M(){var a,b;return a=q(),a.type!==S.Identifier&&t(a),b=v("(")?D():[],Z.createFi
lter(a.value,b)}function N(){for(;v("|");)q(),M()}function O(){i(),r();var a=bb(
);a&&(","===$.value||"in"==$.value&&a.type===U.Identifier?Q(a):(N(),"as"===$.val
ue?P(a):Z.createTopLevel(a))),$.type!==S.EOF&&t($)}function P(a){q();var b=q().v
alue;Z.createAsExpression(a,b)}function Q(a){var b;","===$.value&&(q(),$.type!==
S.Identifier&&t($),b=q().value),q();var c=bb();N(),Z.createInExpression(a.name,b
,c)}function R(a,b){return Z=b,W=a,X=0,Y=W.length,$=null,_={labelSet:{}},O()}var
S,T,U,V,W,X,Y,Z,$,_;S={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLitera
l:5,NumericLiteral:6,Punctuator:7,StringLiteral:8},T={},T[S.BooleanLiteral]="Boo
lean",T[S.EOF]="<end>",T[S.Identifier]="Identifier",T[S.Keyword]="Keyword",T[S.N
ullLiteral]="Null",T[S.NumericLiteral]="Numeric",T[S.Punctuator]="Punctuator",T[
S.StringLiteral]="String",U={ArrayExpression:"ArrayExpression",BinaryExpression:
"BinaryExpression",CallExpression:"CallExpression",ConditionalExpression:"Condit
ionalExpression",EmptyStatement:"EmptyStatement",ExpressionStatement:"Expression
Statement",Identifier:"Identifier",Literal:"Literal",LabeledStatement:"LabeledSt
atement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpressio
n",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",Thi
sExpression:"ThisExpression",UnaryExpression:"UnaryExpression"},V={UnexpectedTok
en:"Unexpected token %0",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '
%1' has already been declared"};var ab=H,bb=L;a.esprima={parse:R}}(this),functio
n(a){"use strict";function b(a,b,d,e){var f;try{if(f=c(a),f.scopeIdent&&(d.nodeT
ype!==Node.ELEMENT_NODE||"TEMPLATE"!==d.tagName||"bind"!==b&&"repeat"!==b))throw
Error("as and in can only be used within <template bind/repeat>")}catch(g){retu
rn void console.error("Invalid expression syntax: "+a,g)}return function(a,b,c){
var d=f.getBinding(a,e,c);return f.scopeIdent&&d&&(b.polymerExpressionScopeIdent
_=f.scopeIdent,f.indexIdent&&(b.polymerExpressionIndexIdent_=f.indexIdent)),d}}f
unction c(a){var b=q[a];if(!b){var c=new j;esprima.parse(a,c),b=new l(c),q[a]=b}
return b}function d(a){this.value=a,this.valueFn_=void 0}function e(a){this.name
=a,this.path=Path.get(a)}function f(a,b,c){this.computed="["==c,this.dynamicDeps
="function"==typeof a||a.dynamicDeps||this.computed&&!(b instanceof d),this.simp
lePath=!this.dynamicDeps&&(b instanceof e||b instanceof d)&&(a instanceof f||a i
nstanceof e),this.object=this.simplePath?a:i(a),this.property=!this.computed||th
is.simplePath?b:i(b)}function g(a,b){this.name=a,this.args=[];for(var c=0;c<b.le
ngth;c++)this.args[c]=i(b[c])}function h(){throw Error("Not Implemented")}functi
on i(a){return"function"==typeof a?a:a.valueFn()}function j(){this.expression=nu
ll,this.filters=[],this.deps={},this.currentPath=void 0,this.scopeIdent=void 0,t
his.indexIdent=void 0,this.dynamicDeps=!1}function k(a){this.value_=a}function l
(a){if(this.scopeIdent=a.scopeIdent,this.indexIdent=a.indexIdent,!a.expression)t
hrow Error("No expression found.");this.expression=a.expression,i(this.expressio
n),this.filters=a.filters,this.dynamicDeps=a.dynamicDeps}function m(a){return St
ring(a).replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()})}function n(a,b)
{for(;a[t]&&!Object.prototype.hasOwnProperty.call(a,b);)a=a[t];return a}function
o(a){switch(a){case"":return!1;case"false":case"null":case"true":return!0}retur
n isNaN(Number(a))?!1:!0}function p(){}var q=Object.create(null);d.prototype={va
lueFn:function(){if(!this.valueFn_){var a=this.value;this.valueFn_=function(){re
turn a}}return this.valueFn_}},e.prototype={valueFn:function(){if(!this.valueFn_
){var a=(this.name,this.path);this.valueFn_=function(b,c){return c&&c.addPath(b,
a),a.getValueFrom(b)}}return this.valueFn_},setValue:function(a,b){return 1==thi
s.path.length,a=n(a,this.path[0]),this.path.setValueFrom(a,b)}},f.prototype={get
fullPath(){if(!this.fullPath_){var a=this.object instanceof f?this.object.fullP
ath.slice():[this.object.name]; |
13 a.push(this.property instanceof e?this.property.name:this.property.value),this.f
ullPath_=Path.get(a)}return this.fullPath_},valueFn:function(){if(!this.valueFn_
){var a=this.object;if(this.simplePath){var b=this.fullPath;this.valueFn_=functi
on(a,c){return c&&c.addPath(a,b),b.getValueFrom(a)}}else if(this.computed){var c
=this.property;this.valueFn_=function(b,d,e){var f=a(b,d,e),g=c(b,d,e);return d&
&d.addPath(f,[g]),f?f[g]:void 0}}else{var b=Path.get(this.property.name);this.va
lueFn_=function(c,d,e){var f=a(c,d,e);return d&&d.addPath(f,b),b.getValueFrom(f)
}}}return this.valueFn_},setValue:function(a,b){if(this.simplePath)return this.f
ullPath.setValueFrom(a,b),b;var c=this.object(a),d=this.property instanceof e?th
is.property.name:this.property(a);return c[d]=b}},g.prototype={transform:functio
n(a,b,c,d,e){var f=c[this.name],g=a;if(f)g=void 0;else if(f=g[this.name],!f)retu
rn void console.error("Cannot find function or filter: "+this.name);if(d?f=f.toM
odel:"function"==typeof f.toDOM&&(f=f.toDOM),"function"!=typeof f)return void co
nsole.error("Cannot find function or filter: "+this.name);for(var h=e||[],j=0;j<
this.args.length;j++)h.push(i(this.args[j])(a,b,c));return f.apply(g,h)}};var r=
{"+":function(a){return+a},"-":function(a){return-a},"!":function(a){return!a}},
s={"+":function(a,b){return a+b},"-":function(a,b){return a-b},"*":function(a,b)
{return a*b},"/":function(a,b){return a/b},"%":function(a,b){return a%b},"<":fun
ction(a,b){return b>a},">":function(a,b){return a>b},"<=":function(a,b){return b
>=a},">=":function(a,b){return a>=b},"==":function(a,b){return a==b},"!=":functi
on(a,b){return a!=b},"===":function(a,b){return a===b},"!==":function(a,b){retur
n a!==b},"&&":function(a,b){return a&&b},"||":function(a,b){return a||b}};j.prot
otype={createUnaryExpression:function(a,b){if(!r[a])throw Error("Disallowed oper
ator: "+a);return b=i(b),function(c,d,e){return r[a](b(c,d,e))}},createBinaryExp
ression:function(a,b,c){if(!s[a])throw Error("Disallowed operator: "+a);switch(b
=i(b),c=i(c),a){case"||":return this.dynamicDeps=!0,function(a,d,e){return b(a,d
,e)||c(a,d,e)};case"&&":return this.dynamicDeps=!0,function(a,d,e){return b(a,d,
e)&&c(a,d,e)}}return function(d,e,f){return s[a](b(d,e,f),c(d,e,f))}},createCond
itionalExpression:function(a,b,c){return a=i(a),b=i(b),c=i(c),this.dynamicDeps=!
0,function(d,e,f){return a(d,e,f)?b(d,e,f):c(d,e,f)}},createIdentifier:function(
a){var b=new e(a);return b.type="Identifier",b},createMemberExpression:function(
a,b,c){var d=new f(b,c,a);return d.dynamicDeps&&(this.dynamicDeps=!0),d},createC
allExpression:function(a,b){if(!(a instanceof e))throw Error("Only identifier fu
nction invocations are allowed");var c=new g(a.name,b);return function(a,b,d){re
turn c.transform(a,b,d,!1)}},createLiteral:function(a){return new d(a.value)},cr
eateArrayExpression:function(a){for(var b=0;b<a.length;b++)a[b]=i(a[b]);return f
unction(b,c,d){for(var e=[],f=0;f<a.length;f++)e.push(a[f](b,c,d));return e}},cr
eateProperty:function(a,b,c){return{key:b instanceof e?b.name:b.value,value:c}},
createObjectExpression:function(a){for(var b=0;b<a.length;b++)a[b].value=i(a[b].
value);return function(b,c,d){for(var e={},f=0;f<a.length;f++)e[a[f].key]=a[f].v
alue(b,c,d);return e}},createFilter:function(a,b){this.filters.push(new g(a,b))}
,createAsExpression:function(a,b){this.expression=a,this.scopeIdent=b},createInE
xpression:function(a,b,c){this.expression=c,this.scopeIdent=a,this.indexIdent=b}
,createTopLevel:function(a){this.expression=a},createThisExpression:h},k.prototy
pe={open:function(){return this.value_},discardChanges:function(){return this.va
lue_},deliver:function(){},close:function(){}},l.prototype={getBinding:function(
a,b,c){function d(){if(h)return h=!1,g;i.dynamicDeps&&f.startReset();var c=i.get
Value(a,i.dynamicDeps?f:void 0,b);return i.dynamicDeps&&f.finishReset(),c}functi
on e(c){return i.setValue(a,c,b),c}if(c)return this.getValue(a,void 0,b);var f=n
ew CompoundObserver,g=this.getValue(a,f,b),h=!0,i=this;return new ObserverTransf
orm(f,d,e,!0)},getValue:function(a,b,c){for(var d=i(this.expression)(a,b,c),e=0;
e<this.filters.length;e++)d=this.filters[e].transform(a,b,c,!1,[d]);return d},se
tValue:function(a,b,c){for(var d=this.filters?this.filters.length:0;d-->0;)b=thi
s.filters[d].transform(a,void 0,c,!0,[b]);return this.expression.setValue?this.e
xpression.setValue(a,b):void 0}};var t="@"+Math.random().toString(36).slice(2);p
.prototype={styleObject:function(a){var b=[];for(var c in a)b.push(m(c)+": "+a[c
]);return b.join("; ")},tokenList:function(a){var b=[];for(var c in a)a[c]&&b.pu
sh(c);return b.join(" ")},prepareInstancePositionChanged:function(a){var b=a.pol
ymerExpressionIndexIdent_;if(b)return function(a,c){a.model[b]=c}},prepareBindin
g:function(a,c,d){var e=Path.get(a);{if(o(a)||!e.valid)return b(a,c,d,this);if(1
==e.length)return function(a,b,c){if(c)return e.getValueFrom(a);var d=n(a,e[0]);
return new PathObserver(d,e)}}},prepareInstanceModel:function(a){var b=a.polymer
ExpressionScopeIdent_;if(b){var c=a.templateInstance?a.templateInstance.model:a.
model,d=a.polymerExpressionIndexIdent_;return function(a){return u(c,a,b,d)}}}};
var u="__proto__"in{}?function(a,b,c,d){var e={};return e[c]=b,e[d]=void 0,e[t]=
a,e.__proto__=a,e}:function(a,b,c,d){var e=Object.create(a);return Object.define
Property(e,c,{value:b,configurable:!0,writable:!0}),Object.defineProperty(e,d,{v
alue:void 0,configurable:!0,writable:!0}),Object.defineProperty(e,t,{value:a,con
figurable:!0,writable:!0}),e};a.PolymerExpressions=p,p.getExpression=c}(this),Po
lymer={version:"0.4.2"},"function"==typeof window.Polymer&&(Polymer={}),window.P
latform||(logFlags=window.logFlags||{},Platform={flush:function(){}},CustomEleme
nts={useNative:!0,ready:!0,takeRecords:function(){},"instanceof":function(a,b){r
eturn a instanceof b}},HTMLImports={useNative:!0},addEventListener("HTMLImportsL
oaded",function(){document.dispatchEvent(new CustomEvent("WebComponentsReady",{b
ubbles:!0}))}),ShadowDOMPolyfill=null,wrap=unwrap=function(a){return a}),functio
n(a){function b(a,b){b=b||q,d(function(){f(a,b)},b)}function c(a){return"complet
e"===a.readyState||a.readyState===s}function d(a,b){if(c(b))a&&a();else{var e=fu
nction(){("complete"===b.readyState||b.readyState===s)&&(b.removeEventListener(t
,e),d(a,b))};b.addEventListener(t,e)}}function e(a){a.target.__loaded=!0}functio
n f(a,b){function c(){h==i&&a&&a()}function d(a){e(a),h++,c()}var f=b.querySelec
torAll("link[rel=import]"),h=0,i=f.length;if(i)for(var j,k=0;i>k&&(j=f[k]);k++)g
(j)?d.call(j,{target:j}):(j.addEventListener("load",d),j.addEventListener("error
",d));else c()}function g(a){return m?a.__loaded||a.import&&"loading"!==a.import
.readyState:a.__importParsed}function h(a){for(var b,c=0,d=a.length;d>c&&(b=a[c]
);c++)i(b)&&j(b)}function i(a){return"link"===a.localName&&"import"===a.rel}func
tion j(a){var b=a.import;b?e({target:a}):(a.addEventListener("load",e),a.addEven
tListener("error",e))}var k="import",l=k in document.createElement("link"),m=l,n
=/Trident/.test(navigator.userAgent),o=Boolean(window.ShadowDOMPolyfill),p=funct
ion(a){return o?ShadowDOMPolyfill.wrapIfNeeded(a):a},q=p(document),r={get:functi
on(){var a=HTMLImports.currentScript||document.currentScript||("complete"!==docu
ment.readyState?document.scripts[document.scripts.length-1]:null);return p(a)},c
onfigurable:!0};Object.defineProperty(document,"_currentScript",r),Object.define
Property(q,"_currentScript",r);var s=n?"complete":"interactive",t="readystatecha
nge";m&&(new MutationObserver(function(a){for(var b,c=0,d=a.length;d>c&&(b=a[c])
;c++)b.addedNodes&&h(b.addedNodes)}).observe(document.head,{childList:!0}),funct
ion(){if("loading"===document.readyState)for(var a,b=document.querySelectorAll("
link[rel=import]"),c=0,d=b.length;d>c&&(a=b[c]);c++)j(a)}()),b(function(){HTMLIm
ports.ready=!0,HTMLImports.readyTime=(new Date).getTime(),q.dispatchEvent(new Cu
stomEvent("HTMLImportsLoaded",{bubbles:!0}))}),a.useNative=m,a.isImportLoaded=g,
a.whenReady=b,a.rootDocument=q,a.IMPORT_LINK_TYPE=k,a.isIE=n}(window.HTMLImports
),function(a){function b(a,b){return b=b||[],b.map||(b=[b]),a.apply(this,b.map(d
))}function c(a,c,d){var e;switch(arguments.length){case 0:return;case 1:e=null;
break;case 2:e=c.apply(this);break;default:e=b(d,c)}f[a]=e}function d(a){return
f[a]}function e(a,c){HTMLImports.whenImportsReady(function(){b(c,a)})}var f={};a
.marshal=d,a.modularize=c,a.using=e}(window),function(){var a=document.createEle
ment("style");a.textContent="body {transition: opacity ease-in 0.2s; } \nbody[un
resolved] {opacity: 0; display: block; overflow: hidden; } \n";var b=document.qu
erySelector("head");b.insertBefore(a,b.firstChild)}(Platform),function(a){"use s
trict";function b(){function a(a){b=a}if("function"!=typeof Object.observe||"fun
ction"!=typeof Array.observe)return!1;var b=[],c={},d=[];return Object.observe(c
,a),Array.observe(d,a),c.id=1,c.id=2,delete c.id,d.push(1,2),d.length=0,Object.d
eliverChangeRecords(a),5!==b.length?!1:"add"!=b[0].type||"update"!=b[1].type||"d
elete"!=b[2].type||"splice"!=b[3].type||"splice"!=b[4].type?!1:(Object.unobserve
(c,a),Array.unobserve(d,a),!0)}function c(){if("undefined"!=typeof chrome&&chrom
e.app&&chrome.app.runtime)return!1;if("undefined"!=typeof navigator&&navigator.g
etDeviceStorage)return!1;try{var a=new Function("","return true;");return a()}ca
tch(b){return!1}}function d(a){return+a===a>>>0&&""!==a}function e(a){return+a}f
unction f(a){return a===Object(a)}function g(a,b){return a===b?0!==a||1/a===1/b:
R(a)&&R(b)?!0:a!==a&&b!==b}function h(a){if(void 0===a)return"eof";var b=a.charC
odeAt(0);switch(b){case 91:case 93:case 46:case 34:case 39:case 48:return a;case
95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:cas
e 8232:case 8233:return"ws"}return b>=97&&122>=b||b>=65&&90>=b?"ident":b>=49&&57
>=b?"number":"else"}function i(){}function j(a){function b(){if(!(m>=a.length)){
var b=a[m+1];return"inSingleQuote"==n&&"'"==b||"inDoubleQuote"==n&&'"'==b?(m++,d
=b,o.append(),!0):void 0}}for(var c,d,e,f,g,j,k,l=[],m=-1,n="beforePath",o={push
:function(){void 0!==e&&(l.push(e),e=void 0)},append:function(){void 0===e?e=d:e
+=d}};n;)if(m++,c=a[m],"\\"!=c||!b(n)){if(f=h(c),k=W[n],g=k[f]||k["else"]||"erro
r","error"==g)return;if(n=g[0],j=o[g[1]]||i,d=void 0===g[2]?c:g[2],j(),"afterPat
h"===n)return l}}function k(a){return V.test(a)}function l(a,b){if(b!==X)throw E
rror("Use Path.get to retrieve path objects");for(var c=0;c<a.length;c++)this.pu
sh(String(a[c]));Q&&this.length&&(this.getValueFrom=this.compiledGetValueFromFn(
))}function m(a){if(a instanceof l)return a;if((null==a||0==a.length)&&(a=""),"s
tring"!=typeof a){if(d(a.length))return new l(a,X);a=String(a)}var b=Y[a];if(b)r
eturn b;var c=j(a);if(!c)return Z;var b=new l(c,X);return Y[a]=b,b}function n(a)
{return d(a)?"["+a+"]":'["'+a.replace(/"/g,'\\"')+'"]'}function o(b){for(var c=0
;_>c&&b.check_();)c++;return O&&(a.dirtyCheckCycleCount=c),c>0}function p(a){for
(var b in a)return!1;return!0}function q(a){return p(a.added)&&p(a.removed)&&p(a
.changed)}function r(a,b){var c={},d={},e={};for(var f in b){var g=a[f];(void 0=
==g||g!==b[f])&&(f in a?g!==b[f]&&(e[f]=g):d[f]=void 0)}for(var f in a)f in b||(
c[f]=a[f]);return Array.isArray(a)&&a.length!==b.length&&(e.length=a.length),{ad
ded:c,removed:d,changed:e}}function s(){if(!ab.length)return!1;for(var a=0;a<ab.
length;a++)ab[a]();return ab.length=0,!0}function t(){function a(a){b&&b.state_=
==fb&&!d&&b.check_(a)}var b,c,d=!1,e=!0;return{open:function(c){if(b)throw Error
("ObservedObject in use");e||Object.deliverChangeRecords(a),b=c,e=!1},observe:fu
nction(b,d){c=b,d?Array.observe(c,a):Object.observe(c,a)},deliver:function(b){d=
b,Object.deliverChangeRecords(a),d=!1},close:function(){b=void 0,Object.unobserv
e(c,a),cb.push(this)}}}function u(a,b,c){var d=cb.pop()||t();return d.open(a),d.
observe(b,c),d}function v(){function a(b,f){b&&(b===d&&(e[f]=!0),h.indexOf(b)<0&
&(h.push(b),Object.observe(b,c)),a(Object.getPrototypeOf(b),f))}function b(a){fo
r(var b=0;b<a.length;b++){var c=a[b];if(c.object!==d||e[c.name]||"setPrototype"=
==c.type)return!1}return!0}function c(c){if(!b(c)){for(var d,e=0;e<g.length;e++)
d=g[e],d.state_==fb&&d.iterateObjects_(a);for(var e=0;e<g.length;e++)d=g[e],d.st
ate_==fb&&d.check_()}}var d,e,f=0,g=[],h=[],i={object:void 0,objects:h,open:func
tion(b,c){d||(d=c,e={}),g.push(b),f++,b.iterateObjects_(a)},close:function(){if(
f--,!(f>0)){for(var a=0;a<h.length;a++)Object.unobserve(h[a],c),x.unobservedCoun
t++;g.length=0,h.length=0,d=void 0,e=void 0,db.push(this)}}};return i}function w
(a,b){return $&&$.object===b||($=db.pop()||v(),$.object=b),$.open(a,b),$}functio
n x(){this.state_=eb,this.callback_=void 0,this.target_=void 0,this.directObserv
er_=void 0,this.value_=void 0,this.id_=ib++}function y(a){x._allObserversCount++
,kb&&jb.push(a)}function z(){x._allObserversCount--}function A(a){x.call(this),t
his.value_=a,this.oldObject_=void 0}function B(a){if(!Array.isArray(a))throw Err
or("Provided object is not an Array");A.call(this,a)}function C(a,b){x.call(this
),this.object_=a,this.path_=m(b),this.directObserver_=void 0}function D(a){x.cal
l(this),this.reportChangesOnOpen_=a,this.value_=[],this.directObserver_=void 0,t
his.observed_=[]}function E(a){return a}function F(a,b,c,d){this.callback_=void
0,this.target_=void 0,this.value_=void 0,this.observable_=a,this.getValueFn_=b||
E,this.setValueFn_=c||E,this.dontPassThroughSet_=d}function G(a,b,c){for(var d={
},e={},f=0;f<b.length;f++){var g=b[f];nb[g.type]?(g.name in c||(c[g.name]=g.oldV
alue),"update"!=g.type&&("add"!=g.type?g.name in d?(delete d[g.name],delete c[g.
name]):e[g.name]=!0:g.name in e?delete e[g.name]:d[g.name]=!0)):(console.error("
Unknown changeRecord type: "+g.type),console.error(g))}for(var h in d)d[h]=a[h];
for(var h in e)e[h]=void 0;var i={};for(var h in c)if(!(h in d||h in e)){var j=a
[h];c[h]!==j&&(i[h]=j)}return{added:d,removed:e,changed:i}}function H(a,b,c){ret
urn{index:a,removed:b,addedCount:c}}function I(){}function J(a,b,c,d,e,f){return
sb.calcSplices(a,b,c,d,e,f)}function K(a,b,c,d){return c>b||a>d?-1:b==c||d==a?0
:c>a?d>b?b-c:d-c:b>d?d-a:b-a}function L(a,b,c,d){for(var e=H(b,c,d),f=!1,g=0,h=0
;h<a.length;h++){var i=a[h];if(i.index+=g,!f){var j=K(e.index,e.index+e.removed.
length,i.index,i.index+i.addedCount);if(j>=0){a.splice(h,1),h--,g-=i.addedCount-
i.removed.length,e.addedCount+=i.addedCount-j;var k=e.removed.length+i.removed.l
ength-j;if(e.addedCount||k){var c=i.removed;if(e.index<i.index){var l=e.removed.
slice(0,i.index-e.index);Array.prototype.push.apply(l,c),c=l}if(e.index+e.remove
d.length>i.index+i.addedCount){var m=e.removed.slice(i.index+i.addedCount-e.inde
x);Array.prototype.push.apply(c,m)}e.removed=c,i.index<e.index&&(e.index=i.index
)}else f=!0}else if(e.index<i.index){f=!0,a.splice(h,0,e),h++;var n=e.addedCount
-e.removed.length;i.index+=n,g+=n}}}f||a.push(e)}function M(a,b){for(var c=[],f=
0;f<b.length;f++){var g=b[f];switch(g.type){case"splice":L(c,g.index,g.removed.s
lice(),g.addedCount);break;case"add":case"update":case"delete":if(!d(g.name))con
tinue;var h=e(g.name);if(0>h)continue;L(c,h,[g.oldValue],1);break;default:consol
e.error("Unexpected record type: "+JSON.stringify(g))}}return c}function N(a,b){
var c=[];return M(a,b).forEach(function(b){return 1==b.addedCount&&1==b.removed.
length?void(b.removed[0]!==a[b.index]&&c.push(b)):void(c=c.concat(J(a,b.index,b.
index+b.addedCount,b.removed,0,b.removed.length)))}),c}var O=a.testingExposeCycl
eCount,P=b(),Q=c(),R=a.Number.isNaN||function(b){return"number"==typeof b&&a.isN
aN(b)},S="__proto__"in{}?function(a){return a}:function(a){var b=a.__proto__;if(
!b)return a;var c=Object.create(b);return Object.getOwnPropertyNames(a).forEach(
function(b){Object.defineProperty(c,b,Object.getOwnPropertyDescriptor(a,b))}),c}
,T="[$_a-zA-Z]",U="[$_a-zA-Z0-9]",V=new RegExp("^"+T+"+"+U+"*$"),W={beforePath:{
ws:["beforePath"],ident:["inIdent","append"],"[":["beforeElement"],eof:["afterPa
th"]},inPath:{ws:["inPath"],".":["beforeIdent"],"[":["beforeElement"],eof:["afte
rPath"]},beforeIdent:{ws:["beforeIdent"],ident:["inIdent","append"]},inIdent:{id
ent:["inIdent","append"],0:["inIdent","append"],number:["inIdent","append"],ws:[
"inPath","push"],".":["beforeIdent","push"],"[":["beforeElement","push"],eof:["a
fterPath","push"]},beforeElement:{ws:["beforeElement"],0:["afterZero","append"],
number:["inIndex","append"],"'":["inSingleQuote","append",""],'"':["inDoubleQuot
e","append",""]},afterZero:{ws:["afterElement","push"],"]":["inPath","push"]},in
Index:{0:["inIndex","append"],number:["inIndex","append"],ws:["afterElement"],"]
":["inPath","push"]},inSingleQuote:{"'":["afterElement"],eof:["error"],"else":["
inSingleQuote","append"]},inDoubleQuote:{'"':["afterElement"],eof:["error"],"els
e":["inDoubleQuote","append"]},afterElement:{ws:["afterElement"],"]":["inPath","
push"]}},X={},Y={};l.get=m,l.prototype=S({__proto__:[],valid:!0,toString:functio
n(){for(var a="",b=0;b<this.length;b++){var c=this[b];a+=k(c)?b?"."+c:c:n(c)}ret
urn a},getValueFrom:function(a){for(var b=0;b<this.length;b++){if(null==a)return
;a=a[this[b]]}return a},iterateObjects:function(a,b){for(var c=0;c<this.length;c
++){if(c&&(a=a[this[c-1]]),!f(a))return;b(a,this[0])}},compiledGetValueFromFn:fu
nction(){var a="",b="obj";a+="if (obj != null";for(var c,d=0;d<this.length-1;d++
)c=this[d],b+=k(c)?"."+c:n(c),a+=" &&\n "+b+" != null";a+=")\n";var c=this[d
];return b+=k(c)?"."+c:n(c),a+=" return "+b+";\nelse\n return undefined;",new
Function("obj",a)},setValueFrom:function(a,b){if(!this.length)return!1;for(var c
=0;c<this.length-1;c++){if(!f(a))return!1;a=a[this[c]]}return f(a)?(a[this[c]]=b
,!0):!1}});var Z=new l("",X);Z.valid=!1,Z.getValueFrom=Z.setValueFrom=function()
{};var $,_=1e3,ab=[],bb=P?function(){var a={pingPong:!0},b=!1;return Object.obse
rve(a,function(){s(),b=!1}),function(c){ab.push(c),b||(b=!0,a.pingPong=!a.pingPo
ng)}}():function(){return function(a){ab.push(a)}}(),cb=[],db=[],eb=0,fb=1,gb=2,
hb=3,ib=1;x.prototype={open:function(a,b){if(this.state_!=eb)throw Error("Observ
er has already been opened.");return y(this),this.callback_=a,this.target_=b,thi
s.connect_(),this.state_=fb,this.value_},close:function(){this.state_==fb&&(z(th
is),this.disconnect_(),this.value_=void 0,this.callback_=void 0,this.target_=voi
d 0,this.state_=gb)},deliver:function(){this.state_==fb&&o(this)},report_:functi
on(a){try{this.callback_.apply(this.target_,a)}catch(b){x._errorThrownDuringCall
back=!0,console.error("Exception caught during observer callback: "+(b.stack||b)
)}},discardChanges:function(){return this.check_(void 0,!0),this.value_}};var jb
,kb=!P;x._allObserversCount=0,kb&&(jb=[]);var lb=!1;a.Platform=a.Platform||{},a.
Platform.performMicrotaskCheckpoint=function(){if(!lb&&kb){lb=!0;var b,c,d=0;do{
d++,c=jb,jb=[],b=!1;for(var e=0;e<c.length;e++){var f=c[e];f.state_==fb&&(f.chec
k_()&&(b=!0),jb.push(f))}s()&&(b=!0)}while(_>d&&b);O&&(a.dirtyCheckCycleCount=d)
,lb=!1}},kb&&(a.Platform.clearObservers=function(){jb=[]}),A.prototype=S({__prot
o__:x.prototype,arrayObserve:!1,connect_:function(){P?this.directObserver_=u(thi
s,this.value_,this.arrayObserve):this.oldObject_=this.copyObject(this.value_)},c
opyObject:function(a){var b=Array.isArray(a)?[]:{};for(var c in a)b[c]=a[c];retu
rn Array.isArray(a)&&(b.length=a.length),b},check_:function(a){var b,c;if(P){if(
!a)return!1;c={},b=G(this.value_,a,c)}else c=this.oldObject_,b=r(this.value_,thi
s.oldObject_);return q(b)?!1:(P||(this.oldObject_=this.copyObject(this.value_)),
this.report_([b.added||{},b.removed||{},b.changed||{},function(a){return c[a]}])
,!0)},disconnect_:function(){P?(this.directObserver_.close(),this.directObserver
_=void 0):this.oldObject_=void 0},deliver:function(){this.state_==fb&&(P?this.di
rectObserver_.deliver(!1):o(this))},discardChanges:function(){return this.direct
Observer_?this.directObserver_.deliver(!0):this.oldObject_=this.copyObject(this.
value_),this.value_}}),B.prototype=S({__proto__:A.prototype,arrayObserve:!0,copy
Object:function(a){return a.slice()},check_:function(a){var b;if(P){if(!a)return
!1;b=N(this.value_,a)}else b=J(this.value_,0,this.value_.length,this.oldObject_,
0,this.oldObject_.length);return b&&b.length?(P||(this.oldObject_=this.copyObjec
t(this.value_)),this.report_([b]),!0):!1}}),B.applySplices=function(a,b,c){c.for
Each(function(c){for(var d=[c.index,c.removed.length],e=c.index;e<c.index+c.adde
dCount;)d.push(b[e]),e++;Array.prototype.splice.apply(a,d)})},C.prototype=S({__p
roto__:x.prototype,get path(){return this.path_},connect_:function(){P&&(this.di
rectObserver_=w(this,this.object_)),this.check_(void 0,!0)},disconnect_:function
(){this.value_=void 0,this.directObserver_&&(this.directObserver_.close(this),th
is.directObserver_=void 0)},iterateObjects_:function(a){this.path_.iterateObject
s(this.object_,a)},check_:function(a,b){var c=this.value_;return this.value_=thi
s.path_.getValueFrom(this.object_),b||g(this.value_,c)?!1:(this.report_([this.va
lue_,c,this]),!0)},setValue:function(a){this.path_&&this.path_.setValueFrom(this
.object_,a)}});var mb={};D.prototype=S({__proto__:x.prototype,connect_:function(
){if(P){for(var a,b=!1,c=0;c<this.observed_.length;c+=2)if(a=this.observed_[c],a
!==mb){b=!0;break}b&&(this.directObserver_=w(this,a))}this.check_(void 0,!this.r
eportChangesOnOpen_)},disconnect_:function(){for(var a=0;a<this.observed_.length
;a+=2)this.observed_[a]===mb&&this.observed_[a+1].close();this.observed_.length=
0,this.value_.length=0,this.directObserver_&&(this.directObserver_.close(this),t
his.directObserver_=void 0)},addPath:function(a,b){if(this.state_!=eb&&this.stat
e_!=hb)throw Error("Cannot add paths once started.");var b=m(b);if(this.observed
_.push(a,b),this.reportChangesOnOpen_){var c=this.observed_.length/2-1;this.valu
e_[c]=b.getValueFrom(a)}},addObserver:function(a){if(this.state_!=eb&&this.state
_!=hb)throw Error("Cannot add observers once started.");if(this.observed_.push(m
b,a),this.reportChangesOnOpen_){var b=this.observed_.length/2-1;this.value_[b]=a
.open(this.deliver,this)}},startReset:function(){if(this.state_!=fb)throw Error(
"Can only reset while open");this.state_=hb,this.disconnect_()},finishReset:func
tion(){if(this.state_!=hb)throw Error("Can only finishReset after startReset");r
eturn this.state_=fb,this.connect_(),this.value_},iterateObjects_:function(a){fo
r(var b,c=0;c<this.observed_.length;c+=2)b=this.observed_[c],b!==mb&&this.observ
ed_[c+1].iterateObjects(b,a)},check_:function(a,b){for(var c,d=0;d<this.observed
_.length;d+=2){var e,f=this.observed_[d],h=this.observed_[d+1];if(f===mb){var i=
h;e=this.state_===eb?i.open(this.deliver,this):i.discardChanges()}else e=h.getVa
lueFrom(f);b?this.value_[d/2]=e:g(e,this.value_[d/2])||(c=c||[],c[d/2]=this.valu
e_[d/2],this.value_[d/2]=e)}return c?(this.report_([this.value_,c,this.observed_
]),!0):!1}}),F.prototype={open:function(a,b){return this.callback_=a,this.target
_=b,this.value_=this.getValueFn_(this.observable_.open(this.observedCallback_,th
is)),this.value_},observedCallback_:function(a){if(a=this.getValueFn_(a),!g(a,th
is.value_)){var b=this.value_;this.value_=a,this.callback_.call(this.target_,thi
s.value_,b)}},discardChanges:function(){return this.value_=this.getValueFn_(this
.observable_.discardChanges()),this.value_},deliver:function(){return this.obser
vable_.deliver()},setValue:function(a){return a=this.setValueFn_(a),!this.dontPa
ssThroughSet_&&this.observable_.setValue?this.observable_.setValue(a):void 0},cl
ose:function(){this.observable_&&this.observable_.close(),this.callback_=void 0,
this.target_=void 0,this.observable_=void 0,this.value_=void 0,this.getValueFn_=
void 0,this.setValueFn_=void 0}};var nb={add:!0,update:!0,"delete":!0},ob=0,pb=1
,qb=2,rb=3;I.prototype={calcEditDistances:function(a,b,c,d,e,f){for(var g=f-e+1,
h=c-b+1,i=new Array(g),j=0;g>j;j++)i[j]=new Array(h),i[j][0]=j;for(var k=0;h>k;k
++)i[0][k]=k;for(var j=1;g>j;j++)for(var k=1;h>k;k++)if(this.equals(a[b+k-1],d[e
+j-1]))i[j][k]=i[j-1][k-1];else{var l=i[j-1][k]+1,m=i[j][k-1]+1;i[j][k]=m>l?l:m}
return i},spliceOperationsFromEditDistances:function(a){for(var b=a.length-1,c=a
[0].length-1,d=a[b][c],e=[];b>0||c>0;)if(0!=b)if(0!=c){var f,g=a[b-1][c-1],h=a[b
-1][c],i=a[b][c-1];f=i>h?g>h?h:g:g>i?i:g,f==g?(g==d?e.push(ob):(e.push(pb),d=g),
b--,c--):f==h?(e.push(rb),b--,d=h):(e.push(qb),c--,d=i)}else e.push(rb),b--;else
e.push(qb),c--;return e.reverse(),e},calcSplices:function(a,b,c,d,e,f){var g=0,
h=0,i=Math.min(c-b,f-e);if(0==b&&0==e&&(g=this.sharedPrefix(a,d,i)),c==a.length&
&f==d.length&&(h=this.sharedSuffix(a,d,i-g)),b+=g,e+=g,c-=h,f-=h,c-b==0&&f-e==0)
return[];if(b==c){for(var j=H(b,[],0);f>e;)j.removed.push(d[e++]);return[j]}if(e
==f)return[H(b,[],c-b)];for(var k=this.spliceOperationsFromEditDistances(this.ca
lcEditDistances(a,b,c,d,e,f)),j=void 0,l=[],m=b,n=e,o=0;o<k.length;o++)switch(k[
o]){case ob:j&&(l.push(j),j=void 0),m++,n++;break;case pb:j||(j=H(m,[],0)),j.add
edCount++,m++,j.removed.push(d[n]),n++;break;case qb:j||(j=H(m,[],0)),j.addedCou
nt++,m++;break;case rb:j||(j=H(m,[],0)),j.removed.push(d[n]),n++}return j&&l.pus
h(j),l},sharedPrefix:function(a,b,c){for(var d=0;c>d;d++)if(!this.equals(a[d],b[
d]))return d;return c},sharedSuffix:function(a,b,c){for(var d=a.length,e=b.lengt
h,f=0;c>f&&this.equals(a[--d],b[--e]);)f++;return f},calculateSplices:function(a
,b){return this.calcSplices(a,0,a.length,b,0,b.length)},equals:function(a,b){ret
urn a===b}};var sb=new I;a.Observer=x,a.Observer.runEOM_=bb,a.Observer.observerS
entinel_=mb,a.Observer.hasObjectObserve=P,a.ArrayObserver=B,a.ArrayObserver.calc
ulateSplices=function(a,b){return sb.calculateSplices(a,b)},a.ArraySplice=I,a.Ob
jectObserver=A,a.PathObserver=C,a.CompoundObserver=D,a.Path=l,a.ObserverTransfor
m=F}("undefined"!=typeof global&&global&&"undefined"!=typeof module&&module?glob
al:this||window),function(){"use strict";function a(a){for(;a.parentNode;)a=a.pa
rentNode;return"function"==typeof a.getElementById?a:null}function b(a,b,c){var
d=a.bindings_;return d||(d=a.bindings_={}),d[b]&&c[b].close(),d[b]=c}function c(
a,b,c){return c}function d(a){return null==a?"":a}function e(a,b){a.data=d(b)}fu
nction f(a){return function(b){return e(a,b)}}function g(a,b,c,e){return c?void(
e?a.setAttribute(b,""):a.removeAttribute(b)):void a.setAttribute(b,d(e))}functio
n h(a,b,c){return function(d){g(a,b,c,d)}}function i(a){switch(a.type){case"chec
kbox":return u;case"radio":case"select-multiple":case"select-one":return"change"
;case"range":if(/Trident|MSIE/.test(navigator.userAgent))return"change";default:
return"input"}}function j(a,b,c,e){a[b]=(e||d)(c)}function k(a,b,c){return funct
ion(d){return j(a,b,d,c)}}function l(){}function m(a,b,c,d){function e(){c.setVa
lue(a[b]),c.discardChanges(),(d||l)(a),Platform.performMicrotaskCheckpoint()}var
f=i(a);return a.addEventListener(f,e),{close:function(){a.removeEventListener(f
,e),c.close()},observable_:c}}function n(a){return Boolean(a)}function o(b){if(b
.form)return s(b.form.elements,function(a){return a!=b&&"INPUT"==a.tagName&&"rad
io"==a.type&&a.name==b.name});var c=a(b);if(!c)return[];var d=c.querySelectorAll
('input[type="radio"][name="'+b.name+'"]');return s(d,function(a){return a!=b&&!
a.form})}function p(a){"INPUT"===a.tagName&&"radio"===a.type&&o(a).forEach(funct
ion(a){var b=a.bindings_.checked;b&&b.observable_.setValue(!1)})}function q(a,b)
{var c,e,f,g=a.parentNode;g instanceof HTMLSelectElement&&g.bindings_&&g.binding
s_.value&&(c=g,e=c.bindings_.value,f=c.value),a.value=d(b),c&&c.value!=f&&(e.obs
ervable_.setValue(c.value),e.observable_.discardChanges(),Platform.performMicrot
askCheckpoint())}function r(a){return function(b){q(a,b)}}var s=Array.prototype.
filter.call.bind(Array.prototype.filter);Node.prototype.bind=function(a,b){conso
le.error("Unhandled binding to Node: ",this,a,b)},Node.prototype.bindFinished=fu
nction(){};var t=c;Object.defineProperty(Platform,"enableBindingsReflection",{ge
t:function(){return t===b},set:function(a){return t=a?b:c,a},configurable:!0}),T
ext.prototype.bind=function(a,b,c){if("textContent"!==a)return Node.prototype.bi
nd.call(this,a,b,c);if(c)return e(this,b);var d=b;return e(this,d.open(f(this)))
,t(this,a,d)},Element.prototype.bind=function(a,b,c){var d="?"==a[a.length-1];if
(d&&(this.removeAttribute(a),a=a.slice(0,-1)),c)return g(this,a,d,b);var e=b;ret
urn g(this,a,d,e.open(h(this,a,d))),t(this,a,e)};var u;!function(){var a=documen
t.createElement("div"),b=a.appendChild(document.createElement("input"));b.setAtt
ribute("type","checkbox");var c,d=0;b.addEventListener("click",function(){d++,c=
c||"click"}),b.addEventListener("change",function(){d++,c=c||"change"});var e=do
cument.createEvent("MouseEvent");e.initMouseEvent("click",!0,!0,window,0,0,0,0,0
,!1,!1,!1,!1,0,null),b.dispatchEvent(e),u=1==d?"change":c}(),HTMLInputElement.pr
ototype.bind=function(a,c,e){if("value"!==a&&"checked"!==a)return HTMLElement.pr
ototype.bind.call(this,a,c,e);this.removeAttribute(a);var f="checked"==a?n:d,g="
checked"==a?p:l;if(e)return j(this,a,c,f);var h=c,i=m(this,a,h,g);return j(this,
a,h.open(k(this,a,f)),f),b(this,a,i)},HTMLTextAreaElement.prototype.bind=functio
n(a,b,c){if("value"!==a)return HTMLElement.prototype.bind.call(this,a,b,c);if(th
is.removeAttribute("value"),c)return j(this,"value",b);var e=b,f=m(this,"value",
e);return j(this,"value",e.open(k(this,"value",d))),t(this,a,f)},HTMLOptionEleme
nt.prototype.bind=function(a,b,c){if("value"!==a)return HTMLElement.prototype.bi
nd.call(this,a,b,c);if(this.removeAttribute("value"),c)return q(this,b);var d=b,
e=m(this,"value",d);return q(this,d.open(r(this))),t(this,a,e)},HTMLSelectElemen
t.prototype.bind=function(a,c,d){if("selectedindex"===a&&(a="selectedIndex"),"se
lectedIndex"!==a&&"value"!==a)return HTMLElement.prototype.bind.call(this,a,c,d)
;if(this.removeAttribute(a),d)return j(this,a,c);var e=c,f=m(this,a,e);return j(
this,a,e.open(k(this,a))),b(this,a,f)}}(this),function(a){"use strict";function
b(a){if(!a)throw new Error("Assertion failed")}function c(a){for(var b;b=a.paren
tNode;)a=b;return a}function d(a,b){if(b){for(var d,e="#"+b;!d&&(a=c(a),a.protoC
ontent_?d=a.protoContent_.querySelector(e):a.getElementById&&(d=a.getElementById
(b)),!d&&a.templateCreator_);)a=a.templateCreator_;return d}}function e(a){retur
n"template"==a.tagName&&"http://www.w3.org/2000/svg"==a.namespaceURI}function f(
a){return"TEMPLATE"==a.tagName&&"http://www.w3.org/1999/xhtml"==a.namespaceURI}f
unction g(a){return Boolean(L[a.tagName]&&a.hasAttribute("template"))}function h
(a){return void 0===a.isTemplate_&&(a.isTemplate_="TEMPLATE"==a.tagName||g(a)),a
.isTemplate_}function i(a,b){var c=a.querySelectorAll(N);h(a)&&b(a),G(c,b)}funct
ion j(a){function b(a){HTMLTemplateElement.decorate(a)||j(a.content)}i(a,b)}func
tion k(a,b){Object.getOwnPropertyNames(b).forEach(function(c){Object.definePrope
rty(a,c,Object.getOwnPropertyDescriptor(b,c))})}function l(a){var b=a.ownerDocum
ent;if(!b.defaultView)return b;var c=b.templateContentsOwner_;if(!c){for(c=b.imp
lementation.createHTMLDocument("");c.lastChild;)c.removeChild(c.lastChild);b.tem
plateContentsOwner_=c}return c}function m(a){if(!a.stagingDocument_){var b=a.own
erDocument;if(!b.stagingDocument_){b.stagingDocument_=b.implementation.createHTM
LDocument(""),b.stagingDocument_.isStagingDocument=!0;var c=b.stagingDocument_.c
reateElement("base");c.href=document.baseURI,b.stagingDocument_.head.appendChild
(c),b.stagingDocument_.stagingDocument_=b.stagingDocument_}a.stagingDocument_=b.
stagingDocument_}return a.stagingDocument_}function n(a){var b=a.ownerDocument.c
reateElement("template");a.parentNode.insertBefore(b,a);for(var c=a.attributes,d
=c.length;d-->0;){var e=c[d];K[e.name]&&("template"!==e.name&&b.setAttribute(e.n
ame,e.value),a.removeAttribute(e.name))}return b}function o(a){var b=a.ownerDocu
ment.createElement("template");a.parentNode.insertBefore(b,a);for(var c=a.attrib
utes,d=c.length;d-->0;){var e=c[d];b.setAttribute(e.name,e.value),a.removeAttrib
ute(e.name)}return a.parentNode.removeChild(a),b}function p(a,b,c){var d=a.conte
nt;if(c)return void d.appendChild(b);for(var e;e=b.firstChild;)d.appendChild(e)}
function q(a){P?a.__proto__=HTMLTemplateElement.prototype:k(a,HTMLTemplateElemen
t.prototype)}function r(a){a.setModelFn_||(a.setModelFn_=function(){a.setModelFn
Scheduled_=!1; | 13 a.push(this.property instanceof e?this.property.name:this.property.value),this.f
ullPath_=Path.get(a)}return this.fullPath_},valueFn:function(){if(!this.valueFn_
){var a=this.object;if(this.simplePath){var b=this.fullPath;this.valueFn_=functi
on(a,c){return c&&c.addPath(a,b),b.getValueFrom(a)}}else if(this.computed){var c
=this.property;this.valueFn_=function(b,d,e){var f=a(b,d,e),g=c(b,d,e);return d&
&d.addPath(f,[g]),f?f[g]:void 0}}else{var b=Path.get(this.property.name);this.va
lueFn_=function(c,d,e){var f=a(c,d,e);return d&&d.addPath(f,b),b.getValueFrom(f)
}}}return this.valueFn_},setValue:function(a,b){if(this.simplePath)return this.f
ullPath.setValueFrom(a,b),b;var c=this.object(a),d=this.property instanceof e?th
is.property.name:this.property(a);return c[d]=b}},g.prototype={transform:functio
n(a,b,c,d,e){var f=c[this.name],g=a;if(f)g=void 0;else if(f=g[this.name],!f)retu
rn void console.error("Cannot find function or filter: "+this.name);if(d?f=f.toM
odel:"function"==typeof f.toDOM&&(f=f.toDOM),"function"!=typeof f)return void co
nsole.error("Cannot find function or filter: "+this.name);for(var h=e||[],j=0;j<
this.args.length;j++)h.push(i(this.args[j])(a,b,c));return f.apply(g,h)}};var r=
{"+":function(a){return+a},"-":function(a){return-a},"!":function(a){return!a}},
s={"+":function(a,b){return a+b},"-":function(a,b){return a-b},"*":function(a,b)
{return a*b},"/":function(a,b){return a/b},"%":function(a,b){return a%b},"<":fun
ction(a,b){return b>a},">":function(a,b){return a>b},"<=":function(a,b){return b
>=a},">=":function(a,b){return a>=b},"==":function(a,b){return a==b},"!=":functi
on(a,b){return a!=b},"===":function(a,b){return a===b},"!==":function(a,b){retur
n a!==b},"&&":function(a,b){return a&&b},"||":function(a,b){return a||b}};j.prot
otype={createUnaryExpression:function(a,b){if(!r[a])throw Error("Disallowed oper
ator: "+a);return b=i(b),function(c,d,e){return r[a](b(c,d,e))}},createBinaryExp
ression:function(a,b,c){if(!s[a])throw Error("Disallowed operator: "+a);switch(b
=i(b),c=i(c),a){case"||":return this.dynamicDeps=!0,function(a,d,e){return b(a,d
,e)||c(a,d,e)};case"&&":return this.dynamicDeps=!0,function(a,d,e){return b(a,d,
e)&&c(a,d,e)}}return function(d,e,f){return s[a](b(d,e,f),c(d,e,f))}},createCond
itionalExpression:function(a,b,c){return a=i(a),b=i(b),c=i(c),this.dynamicDeps=!
0,function(d,e,f){return a(d,e,f)?b(d,e,f):c(d,e,f)}},createIdentifier:function(
a){var b=new e(a);return b.type="Identifier",b},createMemberExpression:function(
a,b,c){var d=new f(b,c,a);return d.dynamicDeps&&(this.dynamicDeps=!0),d},createC
allExpression:function(a,b){if(!(a instanceof e))throw Error("Only identifier fu
nction invocations are allowed");var c=new g(a.name,b);return function(a,b,d){re
turn c.transform(a,b,d,!1)}},createLiteral:function(a){return new d(a.value)},cr
eateArrayExpression:function(a){for(var b=0;b<a.length;b++)a[b]=i(a[b]);return f
unction(b,c,d){for(var e=[],f=0;f<a.length;f++)e.push(a[f](b,c,d));return e}},cr
eateProperty:function(a,b,c){return{key:b instanceof e?b.name:b.value,value:c}},
createObjectExpression:function(a){for(var b=0;b<a.length;b++)a[b].value=i(a[b].
value);return function(b,c,d){for(var e={},f=0;f<a.length;f++)e[a[f].key]=a[f].v
alue(b,c,d);return e}},createFilter:function(a,b){this.filters.push(new g(a,b))}
,createAsExpression:function(a,b){this.expression=a,this.scopeIdent=b},createInE
xpression:function(a,b,c){this.expression=c,this.scopeIdent=a,this.indexIdent=b}
,createTopLevel:function(a){this.expression=a},createThisExpression:h},k.prototy
pe={open:function(){return this.value_},discardChanges:function(){return this.va
lue_},deliver:function(){},close:function(){}},l.prototype={getBinding:function(
a,b,c){function d(){if(h)return h=!1,g;i.dynamicDeps&&f.startReset();var c=i.get
Value(a,i.dynamicDeps?f:void 0,b);return i.dynamicDeps&&f.finishReset(),c}functi
on e(c){return i.setValue(a,c,b),c}if(c)return this.getValue(a,void 0,b);var f=n
ew CompoundObserver,g=this.getValue(a,f,b),h=!0,i=this;return new ObserverTransf
orm(f,d,e,!0)},getValue:function(a,b,c){for(var d=i(this.expression)(a,b,c),e=0;
e<this.filters.length;e++)d=this.filters[e].transform(a,b,c,!1,[d]);return d},se
tValue:function(a,b,c){for(var d=this.filters?this.filters.length:0;d-->0;)b=thi
s.filters[d].transform(a,void 0,c,!0,[b]);return this.expression.setValue?this.e
xpression.setValue(a,b):void 0}};var t="@"+Math.random().toString(36).slice(2);p
.prototype={styleObject:function(a){var b=[];for(var c in a)b.push(m(c)+": "+a[c
]);return b.join("; ")},tokenList:function(a){var b=[];for(var c in a)a[c]&&b.pu
sh(c);return b.join(" ")},prepareInstancePositionChanged:function(a){var b=a.pol
ymerExpressionIndexIdent_;if(b)return function(a,c){a.model[b]=c}},prepareBindin
g:function(a,c,d){var e=Path.get(a);{if(o(a)||!e.valid)return b(a,c,d,this);if(1
==e.length)return function(a,b,c){if(c)return e.getValueFrom(a);var d=n(a,e[0]);
return new PathObserver(d,e)}}},prepareInstanceModel:function(a){var b=a.polymer
ExpressionScopeIdent_;if(b){var c=a.templateInstance?a.templateInstance.model:a.
model,d=a.polymerExpressionIndexIdent_;return function(a){return u(c,a,b,d)}}}};
var u="__proto__"in{}?function(a,b,c,d){var e={};return e[c]=b,e[d]=void 0,e[t]=
a,e.__proto__=a,e}:function(a,b,c,d){var e=Object.create(a);return Object.define
Property(e,c,{value:b,configurable:!0,writable:!0}),Object.defineProperty(e,d,{v
alue:void 0,configurable:!0,writable:!0}),Object.defineProperty(e,t,{value:a,con
figurable:!0,writable:!0}),e};a.PolymerExpressions=p,p.getExpression=c}(this),Po
lymer={version:"0.4.2"},"function"==typeof window.Polymer&&(Polymer={}),window.P
latform||(logFlags=window.logFlags||{},Platform={flush:function(){}},CustomEleme
nts={useNative:!0,ready:!0,takeRecords:function(){},"instanceof":function(a,b){r
eturn a instanceof b}},HTMLImports={useNative:!0},addEventListener("HTMLImportsL
oaded",function(){document.dispatchEvent(new CustomEvent("WebComponentsReady",{b
ubbles:!0}))}),ShadowDOMPolyfill=null,wrap=unwrap=function(a){return a}),functio
n(a){function b(a,b){b=b||q,d(function(){f(a,b)},b)}function c(a){return"complet
e"===a.readyState||a.readyState===s}function d(a,b){if(c(b))a&&a();else{var e=fu
nction(){("complete"===b.readyState||b.readyState===s)&&(b.removeEventListener(t
,e),d(a,b))};b.addEventListener(t,e)}}function e(a){a.target.__loaded=!0}functio
n f(a,b){function c(){h==i&&a&&a()}function d(a){e(a),h++,c()}var f=b.querySelec
torAll("link[rel=import]"),h=0,i=f.length;if(i)for(var j,k=0;i>k&&(j=f[k]);k++)g
(j)?d.call(j,{target:j}):(j.addEventListener("load",d),j.addEventListener("error
",d));else c()}function g(a){return m?a.__loaded||a.import&&"loading"!==a.import
.readyState:a.__importParsed}function h(a){for(var b,c=0,d=a.length;d>c&&(b=a[c]
);c++)i(b)&&j(b)}function i(a){return"link"===a.localName&&"import"===a.rel}func
tion j(a){var b=a.import;b?e({target:a}):(a.addEventListener("load",e),a.addEven
tListener("error",e))}var k="import",l=k in document.createElement("link"),m=l,n
=/Trident/.test(navigator.userAgent),o=Boolean(window.ShadowDOMPolyfill),p=funct
ion(a){return o?ShadowDOMPolyfill.wrapIfNeeded(a):a},q=p(document),r={get:functi
on(){var a=HTMLImports.currentScript||document.currentScript||("complete"!==docu
ment.readyState?document.scripts[document.scripts.length-1]:null);return p(a)},c
onfigurable:!0};Object.defineProperty(document,"_currentScript",r),Object.define
Property(q,"_currentScript",r);var s=n?"complete":"interactive",t="readystatecha
nge";m&&(new MutationObserver(function(a){for(var b,c=0,d=a.length;d>c&&(b=a[c])
;c++)b.addedNodes&&h(b.addedNodes)}).observe(document.head,{childList:!0}),funct
ion(){if("loading"===document.readyState)for(var a,b=document.querySelectorAll("
link[rel=import]"),c=0,d=b.length;d>c&&(a=b[c]);c++)j(a)}()),b(function(){HTMLIm
ports.ready=!0,HTMLImports.readyTime=(new Date).getTime(),q.dispatchEvent(new Cu
stomEvent("HTMLImportsLoaded",{bubbles:!0}))}),a.useNative=m,a.isImportLoaded=g,
a.whenReady=b,a.rootDocument=q,a.IMPORT_LINK_TYPE=k,a.isIE=n}(window.HTMLImports
),function(a){function b(a,b){return b=b||[],b.map||(b=[b]),a.apply(this,b.map(d
))}function c(a,c,d){var e;switch(arguments.length){case 0:return;case 1:e=null;
break;case 2:e=c.apply(this);break;default:e=b(d,c)}f[a]=e}function d(a){return
f[a]}function e(a,c){HTMLImports.whenImportsReady(function(){b(c,a)})}var f={};a
.marshal=d,a.modularize=c,a.using=e}(window),function(){var a=document.createEle
ment("style");a.textContent="body {transition: opacity ease-in 0.2s; } \nbody[un
resolved] {opacity: 0; display: block; overflow: hidden; } \n";var b=document.qu
erySelector("head");b.insertBefore(a,b.firstChild)}(Platform),function(a){"use s
trict";function b(){function a(a){b=a}if("function"!=typeof Object.observe||"fun
ction"!=typeof Array.observe)return!1;var b=[],c={},d=[];return Object.observe(c
,a),Array.observe(d,a),c.id=1,c.id=2,delete c.id,d.push(1,2),d.length=0,Object.d
eliverChangeRecords(a),5!==b.length?!1:"add"!=b[0].type||"update"!=b[1].type||"d
elete"!=b[2].type||"splice"!=b[3].type||"splice"!=b[4].type?!1:(Object.unobserve
(c,a),Array.unobserve(d,a),!0)}function c(){if("undefined"!=typeof chrome&&chrom
e.app&&chrome.app.runtime)return!1;if("undefined"!=typeof navigator&&navigator.g
etDeviceStorage)return!1;try{var a=new Function("","return true;");return a()}ca
tch(b){return!1}}function d(a){return+a===a>>>0&&""!==a}function e(a){return+a}f
unction f(a){return a===Object(a)}function g(a,b){return a===b?0!==a||1/a===1/b:
R(a)&&R(b)?!0:a!==a&&b!==b}function h(a){if(void 0===a)return"eof";var b=a.charC
odeAt(0);switch(b){case 91:case 93:case 46:case 34:case 39:case 48:return a;case
95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:cas
e 8232:case 8233:return"ws"}return b>=97&&122>=b||b>=65&&90>=b?"ident":b>=49&&57
>=b?"number":"else"}function i(){}function j(a){function b(){if(!(m>=a.length)){
var b=a[m+1];return"inSingleQuote"==n&&"'"==b||"inDoubleQuote"==n&&'"'==b?(m++,d
=b,o.append(),!0):void 0}}for(var c,d,e,f,g,j,k,l=[],m=-1,n="beforePath",o={push
:function(){void 0!==e&&(l.push(e),e=void 0)},append:function(){void 0===e?e=d:e
+=d}};n;)if(m++,c=a[m],"\\"!=c||!b(n)){if(f=h(c),k=W[n],g=k[f]||k["else"]||"erro
r","error"==g)return;if(n=g[0],j=o[g[1]]||i,d=void 0===g[2]?c:g[2],j(),"afterPat
h"===n)return l}}function k(a){return V.test(a)}function l(a,b){if(b!==X)throw E
rror("Use Path.get to retrieve path objects");for(var c=0;c<a.length;c++)this.pu
sh(String(a[c]));Q&&this.length&&(this.getValueFrom=this.compiledGetValueFromFn(
))}function m(a){if(a instanceof l)return a;if((null==a||0==a.length)&&(a=""),"s
tring"!=typeof a){if(d(a.length))return new l(a,X);a=String(a)}var b=Y[a];if(b)r
eturn b;var c=j(a);if(!c)return Z;var b=new l(c,X);return Y[a]=b,b}function n(a)
{return d(a)?"["+a+"]":'["'+a.replace(/"/g,'\\"')+'"]'}function o(b){for(var c=0
;_>c&&b.check_();)c++;return O&&(a.dirtyCheckCycleCount=c),c>0}function p(a){for
(var b in a)return!1;return!0}function q(a){return p(a.added)&&p(a.removed)&&p(a
.changed)}function r(a,b){var c={},d={},e={};for(var f in b){var g=a[f];(void 0=
==g||g!==b[f])&&(f in a?g!==b[f]&&(e[f]=g):d[f]=void 0)}for(var f in a)f in b||(
c[f]=a[f]);return Array.isArray(a)&&a.length!==b.length&&(e.length=a.length),{ad
ded:c,removed:d,changed:e}}function s(){if(!ab.length)return!1;for(var a=0;a<ab.
length;a++)ab[a]();return ab.length=0,!0}function t(){function a(a){b&&b.state_=
==fb&&!d&&b.check_(a)}var b,c,d=!1,e=!0;return{open:function(c){if(b)throw Error
("ObservedObject in use");e||Object.deliverChangeRecords(a),b=c,e=!1},observe:fu
nction(b,d){c=b,d?Array.observe(c,a):Object.observe(c,a)},deliver:function(b){d=
b,Object.deliverChangeRecords(a),d=!1},close:function(){b=void 0,Object.unobserv
e(c,a),cb.push(this)}}}function u(a,b,c){var d=cb.pop()||t();return d.open(a),d.
observe(b,c),d}function v(){function a(b,f){b&&(b===d&&(e[f]=!0),h.indexOf(b)<0&
&(h.push(b),Object.observe(b,c)),a(Object.getPrototypeOf(b),f))}function b(a){fo
r(var b=0;b<a.length;b++){var c=a[b];if(c.object!==d||e[c.name]||"setPrototype"=
==c.type)return!1}return!0}function c(c){if(!b(c)){for(var d,e=0;e<g.length;e++)
d=g[e],d.state_==fb&&d.iterateObjects_(a);for(var e=0;e<g.length;e++)d=g[e],d.st
ate_==fb&&d.check_()}}var d,e,f=0,g=[],h=[],i={object:void 0,objects:h,open:func
tion(b,c){d||(d=c,e={}),g.push(b),f++,b.iterateObjects_(a)},close:function(){if(
f--,!(f>0)){for(var a=0;a<h.length;a++)Object.unobserve(h[a],c),x.unobservedCoun
t++;g.length=0,h.length=0,d=void 0,e=void 0,db.push(this)}}};return i}function w
(a,b){return $&&$.object===b||($=db.pop()||v(),$.object=b),$.open(a,b),$}functio
n x(){this.state_=eb,this.callback_=void 0,this.target_=void 0,this.directObserv
er_=void 0,this.value_=void 0,this.id_=ib++}function y(a){x._allObserversCount++
,kb&&jb.push(a)}function z(){x._allObserversCount--}function A(a){x.call(this),t
his.value_=a,this.oldObject_=void 0}function B(a){if(!Array.isArray(a))throw Err
or("Provided object is not an Array");A.call(this,a)}function C(a,b){x.call(this
),this.object_=a,this.path_=m(b),this.directObserver_=void 0}function D(a){x.cal
l(this),this.reportChangesOnOpen_=a,this.value_=[],this.directObserver_=void 0,t
his.observed_=[]}function E(a){return a}function F(a,b,c,d){this.callback_=void
0,this.target_=void 0,this.value_=void 0,this.observable_=a,this.getValueFn_=b||
E,this.setValueFn_=c||E,this.dontPassThroughSet_=d}function G(a,b,c){for(var d={
},e={},f=0;f<b.length;f++){var g=b[f];nb[g.type]?(g.name in c||(c[g.name]=g.oldV
alue),"update"!=g.type&&("add"!=g.type?g.name in d?(delete d[g.name],delete c[g.
name]):e[g.name]=!0:g.name in e?delete e[g.name]:d[g.name]=!0)):(console.error("
Unknown changeRecord type: "+g.type),console.error(g))}for(var h in d)d[h]=a[h];
for(var h in e)e[h]=void 0;var i={};for(var h in c)if(!(h in d||h in e)){var j=a
[h];c[h]!==j&&(i[h]=j)}return{added:d,removed:e,changed:i}}function H(a,b,c){ret
urn{index:a,removed:b,addedCount:c}}function I(){}function J(a,b,c,d,e,f){return
sb.calcSplices(a,b,c,d,e,f)}function K(a,b,c,d){return c>b||a>d?-1:b==c||d==a?0
:c>a?d>b?b-c:d-c:b>d?d-a:b-a}function L(a,b,c,d){for(var e=H(b,c,d),f=!1,g=0,h=0
;h<a.length;h++){var i=a[h];if(i.index+=g,!f){var j=K(e.index,e.index+e.removed.
length,i.index,i.index+i.addedCount);if(j>=0){a.splice(h,1),h--,g-=i.addedCount-
i.removed.length,e.addedCount+=i.addedCount-j;var k=e.removed.length+i.removed.l
ength-j;if(e.addedCount||k){var c=i.removed;if(e.index<i.index){var l=e.removed.
slice(0,i.index-e.index);Array.prototype.push.apply(l,c),c=l}if(e.index+e.remove
d.length>i.index+i.addedCount){var m=e.removed.slice(i.index+i.addedCount-e.inde
x);Array.prototype.push.apply(c,m)}e.removed=c,i.index<e.index&&(e.index=i.index
)}else f=!0}else if(e.index<i.index){f=!0,a.splice(h,0,e),h++;var n=e.addedCount
-e.removed.length;i.index+=n,g+=n}}}f||a.push(e)}function M(a,b){for(var c=[],f=
0;f<b.length;f++){var g=b[f];switch(g.type){case"splice":L(c,g.index,g.removed.s
lice(),g.addedCount);break;case"add":case"update":case"delete":if(!d(g.name))con
tinue;var h=e(g.name);if(0>h)continue;L(c,h,[g.oldValue],1);break;default:consol
e.error("Unexpected record type: "+JSON.stringify(g))}}return c}function N(a,b){
var c=[];return M(a,b).forEach(function(b){return 1==b.addedCount&&1==b.removed.
length?void(b.removed[0]!==a[b.index]&&c.push(b)):void(c=c.concat(J(a,b.index,b.
index+b.addedCount,b.removed,0,b.removed.length)))}),c}var O=a.testingExposeCycl
eCount,P=b(),Q=c(),R=a.Number.isNaN||function(b){return"number"==typeof b&&a.isN
aN(b)},S="__proto__"in{}?function(a){return a}:function(a){var b=a.__proto__;if(
!b)return a;var c=Object.create(b);return Object.getOwnPropertyNames(a).forEach(
function(b){Object.defineProperty(c,b,Object.getOwnPropertyDescriptor(a,b))}),c}
,T="[$_a-zA-Z]",U="[$_a-zA-Z0-9]",V=new RegExp("^"+T+"+"+U+"*$"),W={beforePath:{
ws:["beforePath"],ident:["inIdent","append"],"[":["beforeElement"],eof:["afterPa
th"]},inPath:{ws:["inPath"],".":["beforeIdent"],"[":["beforeElement"],eof:["afte
rPath"]},beforeIdent:{ws:["beforeIdent"],ident:["inIdent","append"]},inIdent:{id
ent:["inIdent","append"],0:["inIdent","append"],number:["inIdent","append"],ws:[
"inPath","push"],".":["beforeIdent","push"],"[":["beforeElement","push"],eof:["a
fterPath","push"]},beforeElement:{ws:["beforeElement"],0:["afterZero","append"],
number:["inIndex","append"],"'":["inSingleQuote","append",""],'"':["inDoubleQuot
e","append",""]},afterZero:{ws:["afterElement","push"],"]":["inPath","push"]},in
Index:{0:["inIndex","append"],number:["inIndex","append"],ws:["afterElement"],"]
":["inPath","push"]},inSingleQuote:{"'":["afterElement"],eof:["error"],"else":["
inSingleQuote","append"]},inDoubleQuote:{'"':["afterElement"],eof:["error"],"els
e":["inDoubleQuote","append"]},afterElement:{ws:["afterElement"],"]":["inPath","
push"]}},X={},Y={};l.get=m,l.prototype=S({__proto__:[],valid:!0,toString:functio
n(){for(var a="",b=0;b<this.length;b++){var c=this[b];a+=k(c)?b?"."+c:c:n(c)}ret
urn a},getValueFrom:function(a){for(var b=0;b<this.length;b++){if(null==a)return
;a=a[this[b]]}return a},iterateObjects:function(a,b){for(var c=0;c<this.length;c
++){if(c&&(a=a[this[c-1]]),!f(a))return;b(a,this[0])}},compiledGetValueFromFn:fu
nction(){var a="",b="obj";a+="if (obj != null";for(var c,d=0;d<this.length-1;d++
)c=this[d],b+=k(c)?"."+c:n(c),a+=" &&\n "+b+" != null";a+=")\n";var c=this[d
];return b+=k(c)?"."+c:n(c),a+=" return "+b+";\nelse\n return undefined;",new
Function("obj",a)},setValueFrom:function(a,b){if(!this.length)return!1;for(var c
=0;c<this.length-1;c++){if(!f(a))return!1;a=a[this[c]]}return f(a)?(a[this[c]]=b
,!0):!1}});var Z=new l("",X);Z.valid=!1,Z.getValueFrom=Z.setValueFrom=function()
{};var $,_=1e3,ab=[],bb=P?function(){var a={pingPong:!0},b=!1;return Object.obse
rve(a,function(){s(),b=!1}),function(c){ab.push(c),b||(b=!0,a.pingPong=!a.pingPo
ng)}}():function(){return function(a){ab.push(a)}}(),cb=[],db=[],eb=0,fb=1,gb=2,
hb=3,ib=1;x.prototype={open:function(a,b){if(this.state_!=eb)throw Error("Observ
er has already been opened.");return y(this),this.callback_=a,this.target_=b,thi
s.connect_(),this.state_=fb,this.value_},close:function(){this.state_==fb&&(z(th
is),this.disconnect_(),this.value_=void 0,this.callback_=void 0,this.target_=voi
d 0,this.state_=gb)},deliver:function(){this.state_==fb&&o(this)},report_:functi
on(a){try{this.callback_.apply(this.target_,a)}catch(b){x._errorThrownDuringCall
back=!0,console.error("Exception caught during observer callback: "+(b.stack||b)
)}},discardChanges:function(){return this.check_(void 0,!0),this.value_}};var jb
,kb=!P;x._allObserversCount=0,kb&&(jb=[]);var lb=!1;a.Platform=a.Platform||{},a.
Platform.performMicrotaskCheckpoint=function(){if(!lb&&kb){lb=!0;var b,c,d=0;do{
d++,c=jb,jb=[],b=!1;for(var e=0;e<c.length;e++){var f=c[e];f.state_==fb&&(f.chec
k_()&&(b=!0),jb.push(f))}s()&&(b=!0)}while(_>d&&b);O&&(a.dirtyCheckCycleCount=d)
,lb=!1}},kb&&(a.Platform.clearObservers=function(){jb=[]}),A.prototype=S({__prot
o__:x.prototype,arrayObserve:!1,connect_:function(){P?this.directObserver_=u(thi
s,this.value_,this.arrayObserve):this.oldObject_=this.copyObject(this.value_)},c
opyObject:function(a){var b=Array.isArray(a)?[]:{};for(var c in a)b[c]=a[c];retu
rn Array.isArray(a)&&(b.length=a.length),b},check_:function(a){var b,c;if(P){if(
!a)return!1;c={},b=G(this.value_,a,c)}else c=this.oldObject_,b=r(this.value_,thi
s.oldObject_);return q(b)?!1:(P||(this.oldObject_=this.copyObject(this.value_)),
this.report_([b.added||{},b.removed||{},b.changed||{},function(a){return c[a]}])
,!0)},disconnect_:function(){P?(this.directObserver_.close(),this.directObserver
_=void 0):this.oldObject_=void 0},deliver:function(){this.state_==fb&&(P?this.di
rectObserver_.deliver(!1):o(this))},discardChanges:function(){return this.direct
Observer_?this.directObserver_.deliver(!0):this.oldObject_=this.copyObject(this.
value_),this.value_}}),B.prototype=S({__proto__:A.prototype,arrayObserve:!0,copy
Object:function(a){return a.slice()},check_:function(a){var b;if(P){if(!a)return
!1;b=N(this.value_,a)}else b=J(this.value_,0,this.value_.length,this.oldObject_,
0,this.oldObject_.length);return b&&b.length?(P||(this.oldObject_=this.copyObjec
t(this.value_)),this.report_([b]),!0):!1}}),B.applySplices=function(a,b,c){c.for
Each(function(c){for(var d=[c.index,c.removed.length],e=c.index;e<c.index+c.adde
dCount;)d.push(b[e]),e++;Array.prototype.splice.apply(a,d)})},C.prototype=S({__p
roto__:x.prototype,get path(){return this.path_},connect_:function(){P&&(this.di
rectObserver_=w(this,this.object_)),this.check_(void 0,!0)},disconnect_:function
(){this.value_=void 0,this.directObserver_&&(this.directObserver_.close(this),th
is.directObserver_=void 0)},iterateObjects_:function(a){this.path_.iterateObject
s(this.object_,a)},check_:function(a,b){var c=this.value_;return this.value_=thi
s.path_.getValueFrom(this.object_),b||g(this.value_,c)?!1:(this.report_([this.va
lue_,c,this]),!0)},setValue:function(a){this.path_&&this.path_.setValueFrom(this
.object_,a)}});var mb={};D.prototype=S({__proto__:x.prototype,connect_:function(
){if(P){for(var a,b=!1,c=0;c<this.observed_.length;c+=2)if(a=this.observed_[c],a
!==mb){b=!0;break}b&&(this.directObserver_=w(this,a))}this.check_(void 0,!this.r
eportChangesOnOpen_)},disconnect_:function(){for(var a=0;a<this.observed_.length
;a+=2)this.observed_[a]===mb&&this.observed_[a+1].close();this.observed_.length=
0,this.value_.length=0,this.directObserver_&&(this.directObserver_.close(this),t
his.directObserver_=void 0)},addPath:function(a,b){if(this.state_!=eb&&this.stat
e_!=hb)throw Error("Cannot add paths once started.");var b=m(b);if(this.observed
_.push(a,b),this.reportChangesOnOpen_){var c=this.observed_.length/2-1;this.valu
e_[c]=b.getValueFrom(a)}},addObserver:function(a){if(this.state_!=eb&&this.state
_!=hb)throw Error("Cannot add observers once started.");if(this.observed_.push(m
b,a),this.reportChangesOnOpen_){var b=this.observed_.length/2-1;this.value_[b]=a
.open(this.deliver,this)}},startReset:function(){if(this.state_!=fb)throw Error(
"Can only reset while open");this.state_=hb,this.disconnect_()},finishReset:func
tion(){if(this.state_!=hb)throw Error("Can only finishReset after startReset");r
eturn this.state_=fb,this.connect_(),this.value_},iterateObjects_:function(a){fo
r(var b,c=0;c<this.observed_.length;c+=2)b=this.observed_[c],b!==mb&&this.observ
ed_[c+1].iterateObjects(b,a)},check_:function(a,b){for(var c,d=0;d<this.observed
_.length;d+=2){var e,f=this.observed_[d],h=this.observed_[d+1];if(f===mb){var i=
h;e=this.state_===eb?i.open(this.deliver,this):i.discardChanges()}else e=h.getVa
lueFrom(f);b?this.value_[d/2]=e:g(e,this.value_[d/2])||(c=c||[],c[d/2]=this.valu
e_[d/2],this.value_[d/2]=e)}return c?(this.report_([this.value_,c,this.observed_
]),!0):!1}}),F.prototype={open:function(a,b){return this.callback_=a,this.target
_=b,this.value_=this.getValueFn_(this.observable_.open(this.observedCallback_,th
is)),this.value_},observedCallback_:function(a){if(a=this.getValueFn_(a),!g(a,th
is.value_)){var b=this.value_;this.value_=a,this.callback_.call(this.target_,thi
s.value_,b)}},discardChanges:function(){return this.value_=this.getValueFn_(this
.observable_.discardChanges()),this.value_},deliver:function(){return this.obser
vable_.deliver()},setValue:function(a){return a=this.setValueFn_(a),!this.dontPa
ssThroughSet_&&this.observable_.setValue?this.observable_.setValue(a):void 0},cl
ose:function(){this.observable_&&this.observable_.close(),this.callback_=void 0,
this.target_=void 0,this.observable_=void 0,this.value_=void 0,this.getValueFn_=
void 0,this.setValueFn_=void 0}};var nb={add:!0,update:!0,"delete":!0},ob=0,pb=1
,qb=2,rb=3;I.prototype={calcEditDistances:function(a,b,c,d,e,f){for(var g=f-e+1,
h=c-b+1,i=new Array(g),j=0;g>j;j++)i[j]=new Array(h),i[j][0]=j;for(var k=0;h>k;k
++)i[0][k]=k;for(var j=1;g>j;j++)for(var k=1;h>k;k++)if(this.equals(a[b+k-1],d[e
+j-1]))i[j][k]=i[j-1][k-1];else{var l=i[j-1][k]+1,m=i[j][k-1]+1;i[j][k]=m>l?l:m}
return i},spliceOperationsFromEditDistances:function(a){for(var b=a.length-1,c=a
[0].length-1,d=a[b][c],e=[];b>0||c>0;)if(0!=b)if(0!=c){var f,g=a[b-1][c-1],h=a[b
-1][c],i=a[b][c-1];f=i>h?g>h?h:g:g>i?i:g,f==g?(g==d?e.push(ob):(e.push(pb),d=g),
b--,c--):f==h?(e.push(rb),b--,d=h):(e.push(qb),c--,d=i)}else e.push(rb),b--;else
e.push(qb),c--;return e.reverse(),e},calcSplices:function(a,b,c,d,e,f){var g=0,
h=0,i=Math.min(c-b,f-e);if(0==b&&0==e&&(g=this.sharedPrefix(a,d,i)),c==a.length&
&f==d.length&&(h=this.sharedSuffix(a,d,i-g)),b+=g,e+=g,c-=h,f-=h,c-b==0&&f-e==0)
return[];if(b==c){for(var j=H(b,[],0);f>e;)j.removed.push(d[e++]);return[j]}if(e
==f)return[H(b,[],c-b)];for(var k=this.spliceOperationsFromEditDistances(this.ca
lcEditDistances(a,b,c,d,e,f)),j=void 0,l=[],m=b,n=e,o=0;o<k.length;o++)switch(k[
o]){case ob:j&&(l.push(j),j=void 0),m++,n++;break;case pb:j||(j=H(m,[],0)),j.add
edCount++,m++,j.removed.push(d[n]),n++;break;case qb:j||(j=H(m,[],0)),j.addedCou
nt++,m++;break;case rb:j||(j=H(m,[],0)),j.removed.push(d[n]),n++}return j&&l.pus
h(j),l},sharedPrefix:function(a,b,c){for(var d=0;c>d;d++)if(!this.equals(a[d],b[
d]))return d;return c},sharedSuffix:function(a,b,c){for(var d=a.length,e=b.lengt
h,f=0;c>f&&this.equals(a[--d],b[--e]);)f++;return f},calculateSplices:function(a
,b){return this.calcSplices(a,0,a.length,b,0,b.length)},equals:function(a,b){ret
urn a===b}};var sb=new I;a.Observer=x,a.Observer.runEOM_=bb,a.Observer.observerS
entinel_=mb,a.Observer.hasObjectObserve=P,a.ArrayObserver=B,a.ArrayObserver.calc
ulateSplices=function(a,b){return sb.calculateSplices(a,b)},a.ArraySplice=I,a.Ob
jectObserver=A,a.PathObserver=C,a.CompoundObserver=D,a.Path=l,a.ObserverTransfor
m=F}("undefined"!=typeof global&&global&&"undefined"!=typeof module&&module?glob
al:this||window),function(){"use strict";function a(a){for(;a.parentNode;)a=a.pa
rentNode;return"function"==typeof a.getElementById?a:null}function b(a,b,c){var
d=a.bindings_;return d||(d=a.bindings_={}),d[b]&&c[b].close(),d[b]=c}function c(
a,b,c){return c}function d(a){return null==a?"":a}function e(a,b){a.data=d(b)}fu
nction f(a){return function(b){return e(a,b)}}function g(a,b,c,e){return c?void(
e?a.setAttribute(b,""):a.removeAttribute(b)):void a.setAttribute(b,d(e))}functio
n h(a,b,c){return function(d){g(a,b,c,d)}}function i(a){switch(a.type){case"chec
kbox":return u;case"radio":case"select-multiple":case"select-one":return"change"
;case"range":if(/Trident|MSIE/.test(navigator.userAgent))return"change";default:
return"input"}}function j(a,b,c,e){a[b]=(e||d)(c)}function k(a,b,c){return funct
ion(d){return j(a,b,d,c)}}function l(){}function m(a,b,c,d){function e(){c.setVa
lue(a[b]),c.discardChanges(),(d||l)(a),Platform.performMicrotaskCheckpoint()}var
f=i(a);return a.addEventListener(f,e),{close:function(){a.removeEventListener(f
,e),c.close()},observable_:c}}function n(a){return Boolean(a)}function o(b){if(b
.form)return s(b.form.elements,function(a){return a!=b&&"INPUT"==a.tagName&&"rad
io"==a.type&&a.name==b.name});var c=a(b);if(!c)return[];var d=c.querySelectorAll
('input[type="radio"][name="'+b.name+'"]');return s(d,function(a){return a!=b&&!
a.form})}function p(a){"INPUT"===a.tagName&&"radio"===a.type&&o(a).forEach(funct
ion(a){var b=a.bindings_.checked;b&&b.observable_.setValue(!1)})}function q(a,b)
{var c,e,f,g=a.parentNode;g instanceof HTMLSelectElement&&g.bindings_&&g.binding
s_.value&&(c=g,e=c.bindings_.value,f=c.value),a.value=d(b),c&&c.value!=f&&(e.obs
ervable_.setValue(c.value),e.observable_.discardChanges(),Platform.performMicrot
askCheckpoint())}function r(a){return function(b){q(a,b)}}var s=Array.prototype.
filter.call.bind(Array.prototype.filter);Node.prototype.bind=function(a,b){conso
le.error("Unhandled binding to Node: ",this,a,b)},Node.prototype.bindFinished=fu
nction(){};var t=c;Object.defineProperty(Platform,"enableBindingsReflection",{ge
t:function(){return t===b},set:function(a){return t=a?b:c,a},configurable:!0}),T
ext.prototype.bind=function(a,b,c){if("textContent"!==a)return Node.prototype.bi
nd.call(this,a,b,c);if(c)return e(this,b);var d=b;return e(this,d.open(f(this)))
,t(this,a,d)},Element.prototype.bind=function(a,b,c){var d="?"==a[a.length-1];if
(d&&(this.removeAttribute(a),a=a.slice(0,-1)),c)return g(this,a,d,b);var e=b;ret
urn g(this,a,d,e.open(h(this,a,d))),t(this,a,e)};var u;!function(){var a=documen
t.createElement("div"),b=a.appendChild(document.createElement("input"));b.setAtt
ribute("type","checkbox");var c,d=0;b.addEventListener("click",function(){d++,c=
c||"click"}),b.addEventListener("change",function(){d++,c=c||"change"});var e=do
cument.createEvent("MouseEvent");e.initMouseEvent("click",!0,!0,window,0,0,0,0,0
,!1,!1,!1,!1,0,null),b.dispatchEvent(e),u=1==d?"change":c}(),HTMLInputElement.pr
ototype.bind=function(a,c,e){if("value"!==a&&"checked"!==a)return HTMLElement.pr
ototype.bind.call(this,a,c,e);this.removeAttribute(a);var f="checked"==a?n:d,g="
checked"==a?p:l;if(e)return j(this,a,c,f);var h=c,i=m(this,a,h,g);return j(this,
a,h.open(k(this,a,f)),f),b(this,a,i)},HTMLTextAreaElement.prototype.bind=functio
n(a,b,c){if("value"!==a)return HTMLElement.prototype.bind.call(this,a,b,c);if(th
is.removeAttribute("value"),c)return j(this,"value",b);var e=b,f=m(this,"value",
e);return j(this,"value",e.open(k(this,"value",d))),t(this,a,f)},HTMLOptionEleme
nt.prototype.bind=function(a,b,c){if("value"!==a)return HTMLElement.prototype.bi
nd.call(this,a,b,c);if(this.removeAttribute("value"),c)return q(this,b);var d=b,
e=m(this,"value",d);return q(this,d.open(r(this))),t(this,a,e)},HTMLSelectElemen
t.prototype.bind=function(a,c,d){if("selectedindex"===a&&(a="selectedIndex"),"se
lectedIndex"!==a&&"value"!==a)return HTMLElement.prototype.bind.call(this,a,c,d)
;if(this.removeAttribute(a),d)return j(this,a,c);var e=c,f=m(this,a,e);return j(
this,a,e.open(k(this,a))),b(this,a,f)}}(this),function(a){"use strict";function
b(a){if(!a)throw new Error("Assertion failed")}function c(a){for(var b;b=a.paren
tNode;)a=b;return a}function d(a,b){if(b){for(var d,e="#"+b;!d&&(a=c(a),a.protoC
ontent_?d=a.protoContent_.querySelector(e):a.getElementById&&(d=a.getElementById
(b)),!d&&a.templateCreator_);)a=a.templateCreator_;return d}}function e(a){retur
n"template"==a.tagName&&"http://www.w3.org/2000/svg"==a.namespaceURI}function f(
a){return"TEMPLATE"==a.tagName&&"http://www.w3.org/1999/xhtml"==a.namespaceURI}f
unction g(a){return Boolean(L[a.tagName]&&a.hasAttribute("template"))}function h
(a){return void 0===a.isTemplate_&&(a.isTemplate_="TEMPLATE"==a.tagName||g(a)),a
.isTemplate_}function i(a,b){var c=a.querySelectorAll(N);h(a)&&b(a),G(c,b)}funct
ion j(a){function b(a){HTMLTemplateElement.decorate(a)||j(a.content)}i(a,b)}func
tion k(a,b){Object.getOwnPropertyNames(b).forEach(function(c){Object.definePrope
rty(a,c,Object.getOwnPropertyDescriptor(b,c))})}function l(a){var b=a.ownerDocum
ent;if(!b.defaultView)return b;var c=b.templateContentsOwner_;if(!c){for(c=b.imp
lementation.createHTMLDocument("");c.lastChild;)c.removeChild(c.lastChild);b.tem
plateContentsOwner_=c}return c}function m(a){if(!a.stagingDocument_){var b=a.own
erDocument;if(!b.stagingDocument_){b.stagingDocument_=b.implementation.createHTM
LDocument(""),b.stagingDocument_.isStagingDocument=!0;var c=b.stagingDocument_.c
reateElement("base");c.href=document.baseURI,b.stagingDocument_.head.appendChild
(c),b.stagingDocument_.stagingDocument_=b.stagingDocument_}a.stagingDocument_=b.
stagingDocument_}return a.stagingDocument_}function n(a){var b=a.ownerDocument.c
reateElement("template");a.parentNode.insertBefore(b,a);for(var c=a.attributes,d
=c.length;d-->0;){var e=c[d];K[e.name]&&("template"!==e.name&&b.setAttribute(e.n
ame,e.value),a.removeAttribute(e.name))}return b}function o(a){var b=a.ownerDocu
ment.createElement("template");a.parentNode.insertBefore(b,a);for(var c=a.attrib
utes,d=c.length;d-->0;){var e=c[d];b.setAttribute(e.name,e.value),a.removeAttrib
ute(e.name)}return a.parentNode.removeChild(a),b}function p(a,b,c){var d=a.conte
nt;if(c)return void d.appendChild(b);for(var e;e=b.firstChild;)d.appendChild(e)}
function q(a){P?a.__proto__=HTMLTemplateElement.prototype:k(a,HTMLTemplateElemen
t.prototype)}function r(a){a.setModelFn_||(a.setModelFn_=function(){a.setModelFn
Scheduled_=!1; |
14 var b=z(a,a.delegate_&&a.delegate_.prepareBinding);w(a,b,a.model_)}),a.setModelF
nScheduled_||(a.setModelFnScheduled_=!0,Observer.runEOM_(a.setModelFn_))}functio
n s(a,b,c,d){if(a&&a.length){for(var e,f=a.length,g=0,h=0,i=0,j=!0;f>h;){var g=a
.indexOf("{{",h),k=a.indexOf("[[",h),l=!1,m="}}";if(k>=0&&(0>g||g>k)&&(g=k,l=!0,
m="]]"),i=0>g?-1:a.indexOf(m,g+2),0>i){if(!e)return;e.push(a.slice(h));break}e=e
||[],e.push(a.slice(h,g));var n=a.slice(g+2,i).trim();e.push(l),j=j&&l;var o=d&&
d(n,b,c);e.push(null==o?Path.get(n):null),e.push(o),h=i+2}return h===f&&e.push("
"),e.hasOnePath=5===e.length,e.isSimplePath=e.hasOnePath&&""==e[0]&&""==e[4],e.o
nlyOneTime=j,e.combinator=function(a){for(var b=e[0],c=1;c<e.length;c+=4){var d=
e.hasOnePath?a:a[(c-1)/4];void 0!==d&&(b+=d),b+=e[c+3]}return b},e}}function t(a
,b,c,d){if(b.hasOnePath){var e=b[3],f=e?e(d,c,!0):b[2].getValueFrom(d);return b.
isSimplePath?f:b.combinator(f)}for(var g=[],h=1;h<b.length;h+=4){var e=b[h+2];g[
(h-1)/4]=e?e(d,c):b[h+1].getValueFrom(d)}return b.combinator(g)}function u(a,b,c
,d){var e=b[3],f=e?e(d,c,!1):new PathObserver(d,b[2]);return b.isSimplePath?f:ne
w ObserverTransform(f,b.combinator)}function v(a,b,c,d){if(b.onlyOneTime)return
t(a,b,c,d);if(b.hasOnePath)return u(a,b,c,d);for(var e=new CompoundObserver,f=1;
f<b.length;f+=4){var g=b[f],h=b[f+2];if(h){var i=h(d,c,g);g?e.addPath(i):e.addOb
server(i)}else{var j=b[f+1];g?e.addPath(j.getValueFrom(d)):e.addPath(d,j)}}retur
n new ObserverTransform(e,b.combinator)}function w(a,b,c,d){for(var e=0;e<b.leng
th;e+=2){var f=b[e],g=b[e+1],h=v(f,g,a,c),i=a.bind(f,h,g.onlyOneTime);i&&d&&d.pu
sh(i)}if(a.bindFinished(),b.isTemplate){a.model_=c;var j=a.processBindingDirecti
ves_(b);d&&j&&d.push(j)}}function x(a,b,c){var d=a.getAttribute(b);return s(""==
d?"{{}}":d,b,a,c)}function y(a,c){b(a);for(var d=[],e=0;e<a.attributes.length;e+
+){for(var f=a.attributes[e],g=f.name,i=f.value;"_"===g[0];)g=g.substring(1);if(
!h(a)||g!==J&&g!==H&&g!==I){var j=s(i,g,a,c);j&&d.push(g,j)}}return h(a)&&(d.isT
emplate=!0,d.if=x(a,J,c),d.bind=x(a,H,c),d.repeat=x(a,I,c),!d.if||d.bind||d.repe
at||(d.bind=s("{{}}",H,a,c))),d}function z(a,b){if(a.nodeType===Node.ELEMENT_NOD
E)return y(a,b);if(a.nodeType===Node.TEXT_NODE){var c=s(a.data,"textContent",a,b
);if(c)return["textContent",c]}return[]}function A(a,b,c,d,e,f,g){for(var h=b.ap
pendChild(c.importNode(a,!1)),i=0,j=a.firstChild;j;j=j.nextSibling)A(j,h,c,d.chi
ldren[i++],e,f,g);return d.isTemplate&&(HTMLTemplateElement.decorate(h,a),f&&h.s
etDelegate_(f)),w(h,d,e,g),h}function B(a,b){var c=z(a,b);c.children={};for(var
d=0,e=a.firstChild;e;e=e.nextSibling)c.children[d++]=B(e,b);return c}function C(
a){var b=a.id_;return b||(b=a.id_=S++),b}function D(a,b){var c=C(a);if(b){var d=
b.bindingMaps[c];return d||(d=b.bindingMaps[c]=B(a,b.prepareBinding)||[]),d}var
d=a.bindingMap_;return d||(d=a.bindingMap_=B(a,void 0)||[]),d}function E(a){this
.closed=!1,this.templateElement_=a,this.instances=[],this.deps=void 0,this.itera
tedValue=[],this.presentValue=void 0,this.arrayObserver=void 0}var F,G=Array.pro
totype.forEach.call.bind(Array.prototype.forEach);a.Map&&"function"==typeof a.Ma
p.prototype.forEach?F=a.Map:(F=function(){this.keys=[],this.values=[]},F.prototy
pe={set:function(a,b){var c=this.keys.indexOf(a);0>c?(this.keys.push(a),this.val
ues.push(b)):this.values[c]=b},get:function(a){var b=this.keys.indexOf(a);if(!(0
>b))return this.values[b]},"delete":function(a){var b=this.keys.indexOf(a);retur
n 0>b?!1:(this.keys.splice(b,1),this.values.splice(b,1),!0)},forEach:function(a,
b){for(var c=0;c<this.keys.length;c++)a.call(b||this,this.values[c],this.keys[c]
,this)}});"function"!=typeof document.contains&&(Document.prototype.contains=fun
ction(a){return a===this||a.parentNode===this?!0:this.documentElement.contains(a
)});var H="bind",I="repeat",J="if",K={template:!0,repeat:!0,bind:!0,ref:!0},L={T
HEAD:!0,TBODY:!0,TFOOT:!0,TH:!0,TR:!0,TD:!0,COLGROUP:!0,COL:!0,CAPTION:!0,OPTION
:!0,OPTGROUP:!0},M="undefined"!=typeof HTMLTemplateElement;M&&!function(){var a=
document.createElement("template"),b=a.content.ownerDocument,c=b.appendChild(b.c
reateElement("html")),d=c.appendChild(b.createElement("head")),e=b.createElement
("base");e.href=document.baseURI,d.appendChild(e)}();var N="template, "+Object.k
eys(L).map(function(a){return a.toLowerCase()+"[template]"}).join(", ");document
.addEventListener("DOMContentLoaded",function(){j(document),Platform.performMicr
otaskCheckpoint()},!1),M||(a.HTMLTemplateElement=function(){throw TypeError("Ill
egal constructor")});var O,P="__proto__"in{};"function"==typeof MutationObserver
&&(O=new MutationObserver(function(a){for(var b=0;b<a.length;b++)a[b].target.ref
Changed_()})),HTMLTemplateElement.decorate=function(a,c){if(a.templateIsDecorate
d_)return!1;var d=a;d.templateIsDecorated_=!0;var h=f(d)&&M,i=h,k=!h,m=!1;if(h||
(g(d)?(b(!c),d=n(a),d.templateIsDecorated_=!0,h=M,m=!0):e(d)&&(d=o(a),d.template
IsDecorated_=!0,h=M)),!h){q(d);var r=l(d);d.content_=r.createDocumentFragment()}
return c?d.instanceRef_=c:k?p(d,a,m):i&&j(d.content),!0},HTMLTemplateElement.boo
tstrap=j;var Q=a.HTMLUnknownElement||HTMLElement,R={get:function(){return this.c
ontent_},enumerable:!0,configurable:!0};M||(HTMLTemplateElement.prototype=Object
.create(Q.prototype),Object.defineProperty(HTMLTemplateElement.prototype,"conten
t",R)),k(HTMLTemplateElement.prototype,{bind:function(a,b,c){if("ref"!=a)return
Element.prototype.bind.call(this,a,b,c);var d=this,e=c?b:b.open(function(a){d.se
tAttribute("ref",a),d.refChanged_()});return this.setAttribute("ref",e),this.ref
Changed_(),c?void 0:(this.bindings_?this.bindings_.ref=b:this.bindings_={ref:b},
b)},processBindingDirectives_:function(a){return this.iterator_&&this.iterator_.
closeDeps(),a.if||a.bind||a.repeat?(this.iterator_||(this.iterator_=new E(this))
,this.iterator_.updateDependencies(a,this.model_),O&&O.observe(this,{attributes:
!0,attributeFilter:["ref"]}),this.iterator_):void(this.iterator_&&(this.iterator
_.close(),this.iterator_=void 0))},createInstance:function(a,b,c){b?c=this.newDe
legate_(b):c||(c=this.delegate_),this.refContent_||(this.refContent_=this.ref_.c
ontent);var d=this.refContent_;if(null===d.firstChild)return T;var e=D(d,c),f=m(
this),g=f.createDocumentFragment();g.templateCreator_=this,g.protoContent_=d,g.b
indings_=[],g.terminator_=null;for(var h=g.templateInstance_={firstNode:null,las
tNode:null,model:a},i=0,j=!1,k=d.firstChild;k;k=k.nextSibling){null===k.nextSibl
ing&&(j=!0);var l=A(k,g,f,e.children[i++],a,c,g.bindings_);l.templateInstance_=h
,j&&(g.terminator_=l)}return h.firstNode=g.firstChild,h.lastNode=g.lastChild,g.t
emplateCreator_=void 0,g.protoContent_=void 0,g},get model(){return this.model_}
,set model(a){this.model_=a,r(this)},get bindingDelegate(){return this.delegate_
&&this.delegate_.raw},refChanged_:function(){this.iterator_&&this.refContent_!==
this.ref_.content&&(this.refContent_=void 0,this.iterator_.valueChanged(),this.i
terator_.updateIteratedValue(this.iterator_.getUpdatedValue()))},clear:function(
){this.model_=void 0,this.delegate_=void 0,this.bindings_&&this.bindings_.ref&&t
his.bindings_.ref.close(),this.refContent_=void 0,this.iterator_&&(this.iterator
_.valueChanged(),this.iterator_.close(),this.iterator_=void 0)},setDelegate_:fun
ction(a){this.delegate_=a,this.bindingMap_=void 0,this.iterator_&&(this.iterator
_.instancePositionChangedFn_=void 0,this.iterator_.instanceModelFn_=void 0)},new
Delegate_:function(a){function b(b){var c=a&&a[b];if("function"==typeof c)return
function(){return c.apply(a,arguments)}}if(a)return{bindingMaps:{},raw:a,prepar
eBinding:b("prepareBinding"),prepareInstanceModel:b("prepareInstanceModel"),prep
areInstancePositionChanged:b("prepareInstancePositionChanged")}},set bindingDele
gate(a){if(this.delegate_)throw Error("Template must be cleared before a new bin
dingDelegate can be assigned");this.setDelegate_(this.newDelegate_(a))},get ref_
(){var a=d(this,this.getAttribute("ref"));if(a||(a=this.instanceRef_),!a)return
this;var b=a.ref_;return b?b:a}});var S=1;Object.defineProperty(Node.prototype,"
templateInstance",{get:function(){var a=this.templateInstance_;return a?a:this.p
arentNode?this.parentNode.templateInstance:void 0}});var T=document.createDocume
ntFragment();T.bindings_=[],T.terminator_=null,E.prototype={closeDeps:function()
{var a=this.deps;a&&(a.ifOneTime===!1&&a.ifValue.close(),a.oneTime===!1&&a.value
.close())},updateDependencies:function(a,b){this.closeDeps();var c=this.deps={},
d=this.templateElement_,e=!0;if(a.if){if(c.hasIf=!0,c.ifOneTime=a.if.onlyOneTime
,c.ifValue=v(J,a.if,d,b),e=c.ifValue,c.ifOneTime&&!e)return void this.valueChang
ed();c.ifOneTime||(e=e.open(this.updateIfValue,this))}a.repeat?(c.repeat=!0,c.on
eTime=a.repeat.onlyOneTime,c.value=v(I,a.repeat,d,b)):(c.repeat=!1,c.oneTime=a.b
ind.onlyOneTime,c.value=v(H,a.bind,d,b));var f=c.value;return c.oneTime||(f=f.op
en(this.updateIteratedValue,this)),e?void this.updateValue(f):void this.valueCha
nged()},getUpdatedValue:function(){var a=this.deps.value;return this.deps.oneTim
e||(a=a.discardChanges()),a},updateIfValue:function(a){return a?void this.update
Value(this.getUpdatedValue()):void this.valueChanged()},updateIteratedValue:func
tion(a){if(this.deps.hasIf){var b=this.deps.ifValue;if(this.deps.ifOneTime||(b=b
.discardChanges()),!b)return void this.valueChanged()}this.updateValue(a)},updat
eValue:function(a){this.deps.repeat||(a=[a]);var b=this.deps.repeat&&!this.deps.
oneTime&&Array.isArray(a);this.valueChanged(a,b)},valueChanged:function(a,b){Arr
ay.isArray(a)||(a=[]),a!==this.iteratedValue&&(this.unobserve(),this.presentValu
e=a,b&&(this.arrayObserver=new ArrayObserver(this.presentValue),this.arrayObserv
er.open(this.handleSplices,this)),this.handleSplices(ArrayObserver.calculateSpli
ces(this.presentValue,this.iteratedValue)))},getLastInstanceNode:function(a){if(
-1==a)return this.templateElement_;var b=this.instances[a],c=b.terminator_;if(!c
)return this.getLastInstanceNode(a-1);if(c.nodeType!==Node.ELEMENT_NODE||this.te
mplateElement_===c)return c;var d=c.iterator_;return d?d.getLastTemplateNode():c
},getLastTemplateNode:function(){return this.getLastInstanceNode(this.instances.
length-1)},insertInstanceAt:function(a,b){var c=this.getLastInstanceNode(a-1),d=
this.templateElement_.parentNode;this.instances.splice(a,0,b),d.insertBefore(b,c
.nextSibling)},extractInstanceAt:function(a){for(var b=this.getLastInstanceNode(
a-1),c=this.getLastInstanceNode(a),d=this.templateElement_.parentNode,e=this.ins
tances.splice(a,1)[0];c!==b;){var f=b.nextSibling;f==c&&(c=b),e.appendChild(d.re
moveChild(f))}return e},getDelegateFn:function(a){return a=a&&a(this.templateEle
ment_),"function"==typeof a?a:null},handleSplices:function(a){if(!this.closed&&a
.length){var b=this.templateElement_;if(!b.parentNode)return void this.close();A
rrayObserver.applySplices(this.iteratedValue,this.presentValue,a);var c=b.delega
te_;void 0===this.instanceModelFn_&&(this.instanceModelFn_=this.getDelegateFn(c&
&c.prepareInstanceModel)),void 0===this.instancePositionChangedFn_&&(this.instan
cePositionChangedFn_=this.getDelegateFn(c&&c.prepareInstancePositionChanged));fo
r(var d=new F,e=0,f=0;f<a.length;f++){for(var g=a[f],h=g.removed,i=0;i<h.length;
i++){var j=h[i],k=this.extractInstanceAt(g.index+e);k!==T&&d.set(j,k)}e-=g.added
Count}for(var f=0;f<a.length;f++)for(var g=a[f],l=g.index;l<g.index+g.addedCount
;l++){var j=this.iteratedValue[l],k=d.get(j);k?d.delete(j):(this.instanceModelFn
_&&(j=this.instanceModelFn_(j)),k=void 0===j?T:b.createInstance(j,void 0,c)),thi
s.insertInstanceAt(l,k)}d.forEach(function(a){this.closeInstanceBindings(a)},thi
s),this.instancePositionChangedFn_&&this.reportInstancesMoved(a)}},reportInstanc
eMoved:function(a){var b=this.instances[a];b!==T&&this.instancePositionChangedFn
_(b.templateInstance_,a)},reportInstancesMoved:function(a){for(var b=0,c=0,d=0;d
<a.length;d++){var e=a[d];if(0!=c)for(;b<e.index;)this.reportInstanceMoved(b),b+
+;else b=e.index;for(;b<e.index+e.addedCount;)this.reportInstanceMoved(b),b++;c+
=e.addedCount-e.removed.length}if(0!=c)for(var f=this.instances.length;f>b;)this
.reportInstanceMoved(b),b++},closeInstanceBindings:function(a){for(var b=a.bindi
ngs_,c=0;c<b.length;c++)b[c].close()},unobserve:function(){this.arrayObserver&&(
this.arrayObserver.close(),this.arrayObserver=void 0)},close:function(){if(!this
.closed){this.unobserve();for(var a=0;a<this.instances.length;a++)this.closeInst
anceBindings(this.instances[a]);this.instances.length=0,this.closeDeps(),this.te
mplateElement_.iterator_=void 0,this.closed=!0}}},HTMLTemplateElement.forAllTemp
latesFrom_=i}(this),function(a){function b(a){f.textContent=d++,e.push(a)}functi
on c(){for(;e.length;)e.shift()()}var d=0,e=[],f=document.createTextNode("");new
(window.MutationObserver||JsMutationObserver)(c).observe(f,{characterData:!0}),a
.endOfMicrotask=b}(Platform),function(a){function b(){e||(e=!0,a.endOfMicrotask(
function(){e=!1,logFlags.data&&console.group("Platform.flush()"),a.performMicrot
askCheckpoint(),logFlags.data&&console.groupEnd()}))}var c=document.createElemen
t("style");c.textContent="template {display: none !important;} /* injected by pl
atform.js */";var d=document.querySelector("head");d.insertBefore(c,d.firstChild
);var e;if(Observer.hasObjectObserve)b=function(){};else{var f=125;window.addEve
ntListener("WebComponentsReady",function(){b(),a.flushPoll=setInterval(b,f)})}if
(window.CustomElements&&!CustomElements.useNative){var g=Document.prototype.impo
rtNode;Document.prototype.importNode=function(a,b){var c=g.call(this,a,b);return
CustomElements.upgradeAll(c),c}}a.flush=b}(window.Platform),function(a){functio
n b(a,b,d,e){return a.replace(e,function(a,e,f,g){var h=f.replace(/["']/g,"");re
turn h=c(b,h,d),e+"'"+h+"'"+g})}function c(a,b,c){if(b&&"/"===b[0])return b;var
e=new URL(b,a);return c?e.href:d(e.href)}function d(a){var b=new URL(document.ba
seURI),c=new URL(a,b);return c.host===b.host&&c.port===b.port&&c.protocol===b.pr
otocol?e(b,c):a}function e(a,b){for(var c=a.pathname,d=b.pathname,e=c.split("/")
,f=d.split("/");e.length&&e[0]===f[0];)e.shift(),f.shift();for(var g=0,h=e.lengt
h-1;h>g;g++)f.unshift("..");return f.join("/")+b.search+b.hash}var f={resolveDom
:function(a,b){b=b||a.ownerDocument.baseURI,this.resolveAttributes(a,b),this.res
olveStyles(a,b);var c=a.querySelectorAll("template");if(c)for(var d,e=0,f=c.leng
th;f>e&&(d=c[e]);e++)d.content&&this.resolveDom(d.content,b)},resolveTemplate:fu
nction(a){this.resolveDom(a.content,a.ownerDocument.baseURI)},resolveStyles:func
tion(a,b){var c=a.querySelectorAll("style");if(c)for(var d,e=0,f=c.length;f>e&&(
d=c[e]);e++)this.resolveStyle(d,b)},resolveStyle:function(a,b){b=b||a.ownerDocum
ent.baseURI,a.textContent=this.resolveCssText(a.textContent,b)},resolveCssText:f
unction(a,c,d){return a=b(a,c,d,g),b(a,c,d,h)},resolveAttributes:function(a,b){a
.hasAttributes&&a.hasAttributes()&&this.resolveElementAttributes(a,b);var c=a&&a
.querySelectorAll(j);if(c)for(var d,e=0,f=c.length;f>e&&(d=c[e]);e++)this.resolv
eElementAttributes(d,b)},resolveElementAttributes:function(a,d){d=d||a.ownerDocu
ment.baseURI,i.forEach(function(e){var f,h=a.attributes[e],i=h&&h.value;i&&i.sea
rch(k)<0&&(f="style"===e?b(i,d,!1,g):c(d,i),h.value=f)})}},g=/(url\()([^)]*)(\))
/g,h=/(@import[\s]+(?!url\())([^;]*)(;)/g,i=["href","src","action","style","url"
],j="["+i.join("],[")+"]",k="{{.*}}";a.urlResolver=f}(Polymer),function(a){funct
ion b(a){this.cache=Object.create(null),this.map=Object.create(null),this.reques
ts=0,this.regex=a}var c=Platform.endOfMicrotask;b.prototype={extractUrls:functio
n(a,b){for(var c,d,e=[];c=this.regex.exec(a);)d=new URL(c[1],b),e.push({matched:
c[0],url:d.href});return e},process:function(a,b,c){var d=this.extractUrls(a,b),
e=c.bind(null,this.map);this.fetch(d,e)},fetch:function(a,b){var c=a.length;if(!
c)return b();for(var d,e,f,g=function(){0===--c&&b()},h=0;c>h;h++)d=a[h],f=d.url
,e=this.cache[f],e||(e=this.xhr(f),e.match=d,this.cache[f]=e),e.wait(g)},handleX
hr:function(a){var b=a.match,c=b.url,d=a.response||a.responseText||"";this.map[c
]=d,this.fetch(this.extractUrls(d,c),a.resolve)},xhr:function(a){this.requests++
;var b=new XMLHttpRequest;return b.open("GET",a,!0),b.send(),b.onerror=b.onload=
this.handleXhr.bind(this,b),b.pending=[],b.resolve=function(){for(var a=b.pendin
g,c=0;c<a.length;c++)a[c]();b.pending=null},b.wait=function(a){b.pending?b.pendi
ng.push(a):c(a)},b}},a.Loader=b}(Polymer),function(a){function b(){this.loader=n
ew d(this.regex)}var c=a.urlResolver,d=a.Loader;b.prototype={regex:/@import\s+(?
:url)?["'\(]*([^'"\)]*)['"\)]*;/g,resolve:function(a,b,c){var d=function(d){c(th
is.flatten(a,b,d))}.bind(this);this.loader.process(a,b,d)},resolveNode:function(
a,b,c){var d=a.textContent,e=function(b){a.textContent=b,c(a)};this.resolve(d,b,
e)},flatten:function(a,b,d){for(var e,f,g,h=this.loader.extractUrls(a,b),i=0;i<h
.length;i++)e=h[i],f=e.url,g=c.resolveCssText(d[f],f,!0),g=this.flatten(g,b,d),a
=a.replace(e.matched,g);return a},loadStyles:function(a,b,c){function d(){f++,f=
==g&&c&&c()}for(var e,f=0,g=a.length,h=0;g>h&&(e=a[h]);h++)this.resolveNode(e,b,
d)}};var e=new b;a.styleResolver=e}(Polymer),function(a){function b(a,b){return
a&&b&&Object.getOwnPropertyNames(b).forEach(function(c){var d=Object.getOwnPrope
rtyDescriptor(b,c);d&&(Object.defineProperty(a,c,d),"function"==typeof d.value&&
(d.value.nom=c))}),a}function c(a){for(var b=a||{},c=1;c<arguments.length;c++){v
ar e=arguments[c];try{for(var f in e)d(f,e,b)}catch(g){}}return b}function d(a,b
,c){var d=e(b,a);Object.defineProperty(c,a,d)}function e(a,b){if(a){var c=Object
.getOwnPropertyDescriptor(a,b);return c||e(Object.getPrototypeOf(a),b)}}a.extend
=b,a.mixin=c,Platform.mixin=c}(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.boundCom
plete=this.complete.bind(this)};c.prototype={go:function(a,b){this.callback=a;va
r c;b?(c=setTimeout(this.boundComplete,b),this.handle=function(){clearTimeout(c)
}):(c=requestAnimationFrame(this.boundComplete),this.handle=function(){cancelAni
mationFrame(c)})},stop:function(){this.handle&&(this.handle(),this.handle=null)}
,complete:function(){this.handle&&(this.stop(),this.callback.call(this.context))
}},a.job=b}(Polymer),function(a){function b(a,b,c){var d="string"==typeof a?docu
ment.createElement(a):a.cloneNode(!0);if(d.innerHTML=b,c)for(var e in c)d.setAtt
ribute(e,c[e]);return d}var c={};HTMLElement.register=function(a,b){c[a]=b},HTML
Element.getPrototypeForTag=function(a){var b=a?c[a]:HTMLElement.prototype;return
b||Object.getPrototypeOf(document.createElement(a))};var d=Event.prototype.stop
Propagation;Event.prototype.stopPropagation=function(){this.cancelBubble=!0,d.ap
ply(this,arguments)};var e=DOMTokenList.prototype.add,f=DOMTokenList.prototype.r
emove;DOMTokenList.prototype.add=function(){for(var a=0;a<arguments.length;a++)e
.call(this,arguments[a])},DOMTokenList.prototype.remove=function(){for(var a=0;a
<arguments.length;a++)f.call(this,arguments[a])},DOMTokenList.prototype.toggle=f
unction(a,b){1==arguments.length&&(b=!this.contains(a)),b?this.add(a):this.remov
e(a)},DOMTokenList.prototype.switch=function(a,b){a&&this.remove(a),b&&this.add(
b)};var g=function(){return Array.prototype.slice.call(this)},h=window.NamedNode
Map||window.MozNamedAttrMap||{};NodeList.prototype.array=g,h.prototype.array=g,H
TMLCollection.prototype.array=g,a.createDOM=b}(Polymer),function(a){function b(a
){var e=b.caller,g=e.nom,h=e._super;h||(g||(g=e.nom=c.call(this,e)),g||console.w
arn("called super() on a method not installed declaratively (has no .nom propert
y)"),h=d(e,g,f(this)));var i=h[g];return i?(i._super||d(i,g,h),i.apply(this,a||[
])):void 0}function c(a){for(var b=this.__proto__;b&&b!==HTMLElement.prototype;)
{for(var c,d=Object.getOwnPropertyNames(b),e=0,f=d.length;f>e&&(c=d[e]);e++){var
g=Object.getOwnPropertyDescriptor(b,c);if("function"==typeof g.value&&g.value==
=a)return c}b=b.__proto__}}function d(a,b,c){var d=e(c,b,a);return d[b]&&(d[b].n
om=b),a._super=d}function e(a,b,c){for(;a;){if(a[b]!==c&&a[b])return a;a=f(a)}re
turn Object}function f(a){return a.__proto__}a.super=b}(Polymer),function(a){fun
ction b(a){return a}function c(a,b){var c=typeof b;return b instanceof Date&&(c=
"date"),d[c](a,b)}var d={string:b,undefined:b,date:function(a){return new Date(D
ate.parse(a)||Date.now())},"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:function(a,b){if(null===b)return a;try{return JSON.parse(a.replac
e(/'/g,'"'))}catch(c){return a}},"function":function(a,b){return b}};a.deseriali
zeValue=c}(Polymer),function(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:function(a,b,c){Platform.flush(),b=b&&b.length?b:[b];var d=funct
ion(){(this[a]||a).apply(this,b)}.bind(this),e=c?setTimeout(d,c):requestAnimatio
nFrame(d);return c?e:~e},cancelAsync:function(a){0>a?cancelAnimationFrame(~a):cl
earTimeout(a)},fire:function(a,b,c,d,e){var f=c||this,b=null===b||void 0===b?{}:
b,g=new CustomEvent(a,{bubbles:void 0!==d?d:!0,cancelable:void 0!==e?e:!0,detail
:b});return f.dispatchEvent(g),g},asyncFire:function(){this.async("fire",argumen
ts)},classFollows:function(a,b,c){b&&b.classList.remove(c),a&&a.classList.add(c)
},injectBoundHTML:function(a,b){var c=document.createElement("template");c.inner
HTML=a;var d=this.instanceTemplate(c);return b&&(b.textContent="",b.appendChild(
d)),d}},c=function(){},d={};b.asyncMethod=b.async,a.api.instance.utils=b,a.nop=c
,a.nob=d}(Polymer),function(a){var b=window.logFlags||{},c="on-",d={EVENT_PREFIX
:c,addHostListeners:function(){var a=this.eventDelegates;b.events&&Object.keys(a
).length>0&&console.log("[%s] addHostListeners:",this.localName,a);for(var c in
a){var d=a[c];PolymerGestures.addEventListener(this,c,this.element.getEventHandl
er(this,this,d))}},dispatchMethod:function(a,c,d){if(a){b.events&&console.group(
"[%s] dispatch [%s]",a.localName,c);var e="function"==typeof c?c:a[c];e&&e[d?"ap
ply":"call"](a,d),b.events&&console.groupEnd(),Platform.flush()}}};a.api.instanc
e.events=d,a.addEventListener=function(a,b,c,d){PolymerGestures.addEventListener
(wrap(a),b,c,d)},a.removeEventListener=function(a,b,c,d){PolymerGestures.removeE
ventListener(wrap(a),b,c,d)}}(Polymer),function(a){var b={copyInstanceAttributes
:function(){var a=this._instanceAttributes;for(var b in a)this.hasAttribute(b)||
this.setAttribute(b,a[b])},takeAttributes:function(){if(this._publishLC)for(var
a,b=0,c=this.attributes,d=c.length;(a=c[b])&&d>b;b++)this.attributeToProperty(a.
name,a.value)},attributeToProperty:function(b,c){var b=this.propertyForAttribute
(b);if(b){if(c&&c.search(a.bindPattern)>=0)return;var d=this[b],c=this.deseriali
zeValue(c,d);c!==d&&(this[b]=c)}},propertyForAttribute:function(a){var b=this._p
ublishLC&&this._publishLC[a];return b},deserializeValue:function(b,c){return a.d
eserializeValue(b,c)},serializeValue:function(a,b){return"boolean"===b?a?"":void
0:"object"!==b&&"function"!==b&&void 0!==a?a:void 0},reflectPropertyToAttribute
:function(a){var b=typeof this[a],c=this.serializeValue(this[a],b);void 0!==c?th
is.setAttribute(a,c):"boolean"===b&&this.removeAttribute(a)}};a.api.instance.att
ributes=b}(Polymer),function(a){function b(a,b){return a===b?0!==a||1/a===1/b:f(
a)&&f(b)?!0:a!==a&&b!==b}function c(a,b){return void 0===b&&null===a?b:null===b|
|void 0===b?a:b}var d=window.logFlags||{},e={object:void 0,type:"update",name:vo
id 0,oldValue:void 0},f=Number.isNaN||function(a){return"number"==typeof a&&isNa
N(a)},g={createPropertyObserver:function(){var a=this._observeNames;if(a&&a.leng
th){var b=this._propertyObserver=new CompoundObserver(!0);this.registerObserver(
b);for(var c,d=0,e=a.length;e>d&&(c=a[d]);d++)b.addPath(this,c),this.observeArra
yValue(c,this[c],null)}},openPropertyObserver:function(){this._propertyObserver&
&this._propertyObserver.open(this.notifyPropertyChanges,this)},notifyPropertyCha
nges:function(a,b,c){var d,e,f={};for(var g in b)if(d=c[2*g+1],e=this.observe[d]
){var h=b[g],i=a[g];this.observeArrayValue(d,i,h),f[e]||(void 0!==h&&null!==h||v
oid 0!==i&&null!==i)&&(f[e]=!0,this.invokeMethod(e,[h,i,arguments]))}},deliverCh
anges:function(){this._propertyObserver&&this._propertyObserver.deliver()},prope
rtyChanged_:function(a){this.reflect[a]&&this.reflectPropertyToAttribute(a)},obs
erveArrayValue:function(a,b,c){var e=this.observe[a];if(e&&(Array.isArray(c)&&(d
.observe&&console.log("[%s] observeArrayValue: unregister observer [%s]",this.lo
calName,a),this.closeNamedObserver(a+"__array")),Array.isArray(b))){d.observe&&c
onsole.log("[%s] observeArrayValue: register observer [%s]",this.localName,a,b);
var f=new ArrayObserver(b);f.open(function(a){this.invokeMethod(e,[a])},this),th
is.registerNamedObserver(a+"__array",f)}},emitPropertyChangeRecord:function(a,c,
d){if(!b(c,d)&&(this.propertyChanged_(a,c,d),Observer.hasObjectObserve)){var f=t
his.notifier_;f||(f=this.notifier_=Object.getNotifier(this)),e.object=this,e.nam
e=a,e.oldValue=d,f.notify(e)}},bindToAccessor:function(a,c,d){function e(b,c){j[
f]=b;var d=j[h];d&&"function"==typeof d.setValue&&d.setValue(b),j.emitPropertyCh
angeRecord(a,b,c)}var f=a+"_",g=a+"Observable_",h=a+"ComputedBoundObservable_";t
his[g]=c;var i=this[f],j=this,k=c.open(e);if(d&&!b(i,k)){var l=d(i,k);b(k,l)||(k
=l,c.setValue&&c.setValue(k))}e(k,i);var m={close:function(){c.close(),j[g]=void
0,j[h]=void 0}};return this.registerObserver(m),m},createComputedProperties:fun
ction(){if(this._computedNames)for(var a=0;a<this._computedNames.length;a++){var
b=this._computedNames[a],c=this.computed[b];try{var d=PolymerExpressions.getExp
ression(c),e=d.getBinding(this,this.element.syntax);this.bindToAccessor(b,e)}cat
ch(f){console.error("Failed to create computed property",f)}}},bindProperty:func
tion(a,b,d){if(d)return void(this[a]=b);var e=this.element.prototype.computed;if
(e&&e[a]){var f=a+"ComputedBoundObservable_";return void(this[f]=b)}return this.
bindToAccessor(a,b,c)},invokeMethod:function(a,b){var c=this[a]||a;"function"==t
ypeof c&&c.apply(this,b)},registerObserver:function(a){return this._observers?vo
id this._observers.push(a):void(this._observers=[a])},closeObservers:function(){
if(this._observers){for(var a=this._observers,b=0;b<a.length;b++){var c=a[b];c&&
"function"==typeof c.close&&c.close()}this._observers=[]}},registerNamedObserver
:function(a,b){var c=this._namedObservers||(this._namedObservers={});c[a]=b},clo
seNamedObserver:function(a){var b=this._namedObservers;return b&&b[a]?(b[a].clos
e(),b[a]=null,!0):void 0},closeNamedObservers:function(){if(this._namedObservers
){for(var a in this._namedObservers)this.closeNamedObserver(a);this._namedObserv
ers={}}}};a.api.instance.properties=g}(Polymer),function(a){var b=window.logFlag
s||0,c={instanceTemplate:function(a){HTMLTemplateElement.decorate(a);for(var b=t
his.syntax||!a.bindingDelegate&&this.element.syntax,c=a.createInstance(this,b),d
=c.bindings_,e=0;e<d.length;e++)this.registerObserver(d[e]);return c},bind:funct
ion(a,b,c){var d=this.propertyForAttribute(a);if(d){var e=this.bindProperty(d,b,
c);return Platform.enableBindingsReflection&&e&&(e.path=b.path_,this._recordBind
ing(d,e)),this.reflect[d]&&this.reflectPropertyToAttribute(d),e}return this.mixi
nSuper(arguments)},bindFinished:function(){this.makeElementReady()},_recordBindi
ng:function(a,b){this.bindings_=this.bindings_||{},this.bindings_[a]=b},asyncUnb
indAll:function(){this._unbound||(b.unbind&&console.log("[%s] asyncUnbindAll",th
is.localName),this._unbindAllJob=this.job(this._unbindAllJob,this.unbindAll,0))}
,unbindAll:function(){this._unbound||(this.closeObservers(),this.closeNamedObser
vers(),this._unbound=!0)},cancelUnbindAll:function(){return this._unbound?void(b
.unbind&&console.warn("[%s] already unbound, cannot cancel unbindAll",this.local
Name)):(b.unbind&&console.log("[%s] cancelUnbindAll",this.localName),void(this._
unbindAllJob&&(this._unbindAllJob=this._unbindAllJob.stop())))}},d=/\{\{([^{}]*)
}}/;a.bindPattern=d,a.api.instance.mdv=c}(Polymer),function(a){function b(a){ret
urn a.hasOwnProperty("PolymerBase")}function c(){}var d={PolymerBase:!0,job:func
tion(a,b,c){if("string"!=typeof a)return Polymer.job.call(this,a,b,c);var d="___
"+a;this[d]=Polymer.job.call(this,this[d],b,c)},"super":Polymer.super,created:fu
nction(){},ready:function(){},createdCallback:function(){this.templateInstance&&
this.templateInstance.model&&console.warn("Attributes on "+this.localName+" were
data bound prior to Polymer upgrading the element. This may result in incorrect
binding types."),this.created(),this.prepareElement(),this.ownerDocument.isStag
ingDocument||this.makeElementReady()},prepareElement:function(){return this._ele
mentPrepared?void console.warn("Element already prepared",this.localName):(this.
_elementPrepared=!0,this.shadowRoots={},this.createPropertyObserver(),this.openP
ropertyObserver(),this.copyInstanceAttributes(),this.takeAttributes(),void this.
addHostListeners())},makeElementReady:function(){this._readied||(this._readied=!
0,this.createComputedProperties(),this.parseDeclarations(this.__proto__),this.re
moveAttribute("unresolved"),this.ready())},attachedCallback:function(){this.canc
elUnbindAll(),this.attached&&this.attached(),this.enteredView&&this.enteredView(
),this.hasBeenAttached||(this.hasBeenAttached=!0,this.domReady&&this.async("domR
eady"))},detachedCallback:function(){this.preventDispose||this.asyncUnbindAll(),
this.detached&&this.detached(),this.leftView&&this.leftView()},enteredViewCallba
ck:function(){this.attachedCallback()},leftViewCallback:function(){this.detached
Callback()},enteredDocumentCallback:function(){this.attachedCallback()},leftDocu
mentCallback:function(){this.detachedCallback()},parseDeclarations:function(a){a
&&a.element&&(this.parseDeclarations(a.__proto__),a.parseDeclaration.call(this,a
.element))},parseDeclaration:function(a){var b=this.fetchTemplate(a);if(b){var c
=this.shadowFromTemplate(b);this.shadowRoots[a.name]=c}},fetchTemplate:function(
a){return a.querySelector("template")},shadowFromTemplate:function(a){if(a){var
b=this.createShadowRoot(),c=this.instanceTemplate(a);return b.appendChild(c),thi
s.shadowRootReady(b,a),b}},lightFromTemplate:function(a,b){if(a){this.eventContr
oller=this;var c=this.instanceTemplate(a);return b?this.insertBefore(c,b):this.a
ppendChild(c),this.shadowRootReady(this),c}},shadowRootReady:function(a){this.ma
rshalNodeReferences(a)},marshalNodeReferences:function(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){"class"!==a&&"style"!==a&&this.at
tributeToProperty(a,this.getAttribute(a)),this.attributeChanged&&this.attributeC
hanged.apply(this,arguments)},onMutation:function(a,b){var c=new MutationObserve
r(function(a){b.call(this,c,a),c.disconnect()}.bind(this));c.observe(a,{childLis
t:!0,subtree:!0})}};c.prototype=d,d.constructor=c,a.Base=c,a.isBase=b,a.api.inst
ance.base=d}(Polymer),function(a){function b(a){return a.__proto__}function c(a,
b){var c="",d=!1;b&&(c=b.localName,d=b.hasAttribute("is"));var e=Platform.Shadow
CSS.makeScopeSelector(c,d);return Platform.ShadowCSS.shimCssText(a,e)}var d=(win
dow.logFlags||{},window.ShadowDOMPolyfill),e="element",f="controller",g={STYLE_S
COPE_ATTRIBUTE:e,installControllerStyles:function(){var a=this.findStyleScope();
if(a&&!this.scopeHasNamedStyle(a,this.localName)){for(var c=b(this),d="";c&&c.el
ement;)d+=c.element.cssTextForScope(f),c=b(c);d&&this.installScopeCssText(d,a)}}
,installScopeStyle:function(a,b,c){var c=c||this.findStyleScope(),b=b||"";if(c&&
!this.scopeHasNamedStyle(c,this.localName+b)){var d="";if(a instanceof Array)for
(var e,f=0,g=a.length;g>f&&(e=a[f]);f++)d+=e.textContent+"\n\n";else d=a.textCon
tent;this.installScopeCssText(d,c,b)}},installScopeCssText:function(a,b,e){if(b=
b||this.findStyleScope(),e=e||"",b){d&&(a=c(a,b.host));var g=this.element.cssTex
tToScopeStyle(a,f);Polymer.applyStyleToScope(g,b),this.styleCacheForScope(b)[thi
s.localName+e]=!0}},findStyleScope:function(a){for(var b=a||this;b.parentNode;)b
=b.parentNode;return b},scopeHasNamedStyle:function(a,b){var c=this.styleCacheFo
rScope(a); | 14 var b=z(a,a.delegate_&&a.delegate_.prepareBinding);w(a,b,a.model_)}),a.setModelF
nScheduled_||(a.setModelFnScheduled_=!0,Observer.runEOM_(a.setModelFn_))}functio
n s(a,b,c,d){if(a&&a.length){for(var e,f=a.length,g=0,h=0,i=0,j=!0;f>h;){var g=a
.indexOf("{{",h),k=a.indexOf("[[",h),l=!1,m="}}";if(k>=0&&(0>g||g>k)&&(g=k,l=!0,
m="]]"),i=0>g?-1:a.indexOf(m,g+2),0>i){if(!e)return;e.push(a.slice(h));break}e=e
||[],e.push(a.slice(h,g));var n=a.slice(g+2,i).trim();e.push(l),j=j&&l;var o=d&&
d(n,b,c);e.push(null==o?Path.get(n):null),e.push(o),h=i+2}return h===f&&e.push("
"),e.hasOnePath=5===e.length,e.isSimplePath=e.hasOnePath&&""==e[0]&&""==e[4],e.o
nlyOneTime=j,e.combinator=function(a){for(var b=e[0],c=1;c<e.length;c+=4){var d=
e.hasOnePath?a:a[(c-1)/4];void 0!==d&&(b+=d),b+=e[c+3]}return b},e}}function t(a
,b,c,d){if(b.hasOnePath){var e=b[3],f=e?e(d,c,!0):b[2].getValueFrom(d);return b.
isSimplePath?f:b.combinator(f)}for(var g=[],h=1;h<b.length;h+=4){var e=b[h+2];g[
(h-1)/4]=e?e(d,c):b[h+1].getValueFrom(d)}return b.combinator(g)}function u(a,b,c
,d){var e=b[3],f=e?e(d,c,!1):new PathObserver(d,b[2]);return b.isSimplePath?f:ne
w ObserverTransform(f,b.combinator)}function v(a,b,c,d){if(b.onlyOneTime)return
t(a,b,c,d);if(b.hasOnePath)return u(a,b,c,d);for(var e=new CompoundObserver,f=1;
f<b.length;f+=4){var g=b[f],h=b[f+2];if(h){var i=h(d,c,g);g?e.addPath(i):e.addOb
server(i)}else{var j=b[f+1];g?e.addPath(j.getValueFrom(d)):e.addPath(d,j)}}retur
n new ObserverTransform(e,b.combinator)}function w(a,b,c,d){for(var e=0;e<b.leng
th;e+=2){var f=b[e],g=b[e+1],h=v(f,g,a,c),i=a.bind(f,h,g.onlyOneTime);i&&d&&d.pu
sh(i)}if(a.bindFinished(),b.isTemplate){a.model_=c;var j=a.processBindingDirecti
ves_(b);d&&j&&d.push(j)}}function x(a,b,c){var d=a.getAttribute(b);return s(""==
d?"{{}}":d,b,a,c)}function y(a,c){b(a);for(var d=[],e=0;e<a.attributes.length;e+
+){for(var f=a.attributes[e],g=f.name,i=f.value;"_"===g[0];)g=g.substring(1);if(
!h(a)||g!==J&&g!==H&&g!==I){var j=s(i,g,a,c);j&&d.push(g,j)}}return h(a)&&(d.isT
emplate=!0,d.if=x(a,J,c),d.bind=x(a,H,c),d.repeat=x(a,I,c),!d.if||d.bind||d.repe
at||(d.bind=s("{{}}",H,a,c))),d}function z(a,b){if(a.nodeType===Node.ELEMENT_NOD
E)return y(a,b);if(a.nodeType===Node.TEXT_NODE){var c=s(a.data,"textContent",a,b
);if(c)return["textContent",c]}return[]}function A(a,b,c,d,e,f,g){for(var h=b.ap
pendChild(c.importNode(a,!1)),i=0,j=a.firstChild;j;j=j.nextSibling)A(j,h,c,d.chi
ldren[i++],e,f,g);return d.isTemplate&&(HTMLTemplateElement.decorate(h,a),f&&h.s
etDelegate_(f)),w(h,d,e,g),h}function B(a,b){var c=z(a,b);c.children={};for(var
d=0,e=a.firstChild;e;e=e.nextSibling)c.children[d++]=B(e,b);return c}function C(
a){var b=a.id_;return b||(b=a.id_=S++),b}function D(a,b){var c=C(a);if(b){var d=
b.bindingMaps[c];return d||(d=b.bindingMaps[c]=B(a,b.prepareBinding)||[]),d}var
d=a.bindingMap_;return d||(d=a.bindingMap_=B(a,void 0)||[]),d}function E(a){this
.closed=!1,this.templateElement_=a,this.instances=[],this.deps=void 0,this.itera
tedValue=[],this.presentValue=void 0,this.arrayObserver=void 0}var F,G=Array.pro
totype.forEach.call.bind(Array.prototype.forEach);a.Map&&"function"==typeof a.Ma
p.prototype.forEach?F=a.Map:(F=function(){this.keys=[],this.values=[]},F.prototy
pe={set:function(a,b){var c=this.keys.indexOf(a);0>c?(this.keys.push(a),this.val
ues.push(b)):this.values[c]=b},get:function(a){var b=this.keys.indexOf(a);if(!(0
>b))return this.values[b]},"delete":function(a){var b=this.keys.indexOf(a);retur
n 0>b?!1:(this.keys.splice(b,1),this.values.splice(b,1),!0)},forEach:function(a,
b){for(var c=0;c<this.keys.length;c++)a.call(b||this,this.values[c],this.keys[c]
,this)}});"function"!=typeof document.contains&&(Document.prototype.contains=fun
ction(a){return a===this||a.parentNode===this?!0:this.documentElement.contains(a
)});var H="bind",I="repeat",J="if",K={template:!0,repeat:!0,bind:!0,ref:!0},L={T
HEAD:!0,TBODY:!0,TFOOT:!0,TH:!0,TR:!0,TD:!0,COLGROUP:!0,COL:!0,CAPTION:!0,OPTION
:!0,OPTGROUP:!0},M="undefined"!=typeof HTMLTemplateElement;M&&!function(){var a=
document.createElement("template"),b=a.content.ownerDocument,c=b.appendChild(b.c
reateElement("html")),d=c.appendChild(b.createElement("head")),e=b.createElement
("base");e.href=document.baseURI,d.appendChild(e)}();var N="template, "+Object.k
eys(L).map(function(a){return a.toLowerCase()+"[template]"}).join(", ");document
.addEventListener("DOMContentLoaded",function(){j(document),Platform.performMicr
otaskCheckpoint()},!1),M||(a.HTMLTemplateElement=function(){throw TypeError("Ill
egal constructor")});var O,P="__proto__"in{};"function"==typeof MutationObserver
&&(O=new MutationObserver(function(a){for(var b=0;b<a.length;b++)a[b].target.ref
Changed_()})),HTMLTemplateElement.decorate=function(a,c){if(a.templateIsDecorate
d_)return!1;var d=a;d.templateIsDecorated_=!0;var h=f(d)&&M,i=h,k=!h,m=!1;if(h||
(g(d)?(b(!c),d=n(a),d.templateIsDecorated_=!0,h=M,m=!0):e(d)&&(d=o(a),d.template
IsDecorated_=!0,h=M)),!h){q(d);var r=l(d);d.content_=r.createDocumentFragment()}
return c?d.instanceRef_=c:k?p(d,a,m):i&&j(d.content),!0},HTMLTemplateElement.boo
tstrap=j;var Q=a.HTMLUnknownElement||HTMLElement,R={get:function(){return this.c
ontent_},enumerable:!0,configurable:!0};M||(HTMLTemplateElement.prototype=Object
.create(Q.prototype),Object.defineProperty(HTMLTemplateElement.prototype,"conten
t",R)),k(HTMLTemplateElement.prototype,{bind:function(a,b,c){if("ref"!=a)return
Element.prototype.bind.call(this,a,b,c);var d=this,e=c?b:b.open(function(a){d.se
tAttribute("ref",a),d.refChanged_()});return this.setAttribute("ref",e),this.ref
Changed_(),c?void 0:(this.bindings_?this.bindings_.ref=b:this.bindings_={ref:b},
b)},processBindingDirectives_:function(a){return this.iterator_&&this.iterator_.
closeDeps(),a.if||a.bind||a.repeat?(this.iterator_||(this.iterator_=new E(this))
,this.iterator_.updateDependencies(a,this.model_),O&&O.observe(this,{attributes:
!0,attributeFilter:["ref"]}),this.iterator_):void(this.iterator_&&(this.iterator
_.close(),this.iterator_=void 0))},createInstance:function(a,b,c){b?c=this.newDe
legate_(b):c||(c=this.delegate_),this.refContent_||(this.refContent_=this.ref_.c
ontent);var d=this.refContent_;if(null===d.firstChild)return T;var e=D(d,c),f=m(
this),g=f.createDocumentFragment();g.templateCreator_=this,g.protoContent_=d,g.b
indings_=[],g.terminator_=null;for(var h=g.templateInstance_={firstNode:null,las
tNode:null,model:a},i=0,j=!1,k=d.firstChild;k;k=k.nextSibling){null===k.nextSibl
ing&&(j=!0);var l=A(k,g,f,e.children[i++],a,c,g.bindings_);l.templateInstance_=h
,j&&(g.terminator_=l)}return h.firstNode=g.firstChild,h.lastNode=g.lastChild,g.t
emplateCreator_=void 0,g.protoContent_=void 0,g},get model(){return this.model_}
,set model(a){this.model_=a,r(this)},get bindingDelegate(){return this.delegate_
&&this.delegate_.raw},refChanged_:function(){this.iterator_&&this.refContent_!==
this.ref_.content&&(this.refContent_=void 0,this.iterator_.valueChanged(),this.i
terator_.updateIteratedValue(this.iterator_.getUpdatedValue()))},clear:function(
){this.model_=void 0,this.delegate_=void 0,this.bindings_&&this.bindings_.ref&&t
his.bindings_.ref.close(),this.refContent_=void 0,this.iterator_&&(this.iterator
_.valueChanged(),this.iterator_.close(),this.iterator_=void 0)},setDelegate_:fun
ction(a){this.delegate_=a,this.bindingMap_=void 0,this.iterator_&&(this.iterator
_.instancePositionChangedFn_=void 0,this.iterator_.instanceModelFn_=void 0)},new
Delegate_:function(a){function b(b){var c=a&&a[b];if("function"==typeof c)return
function(){return c.apply(a,arguments)}}if(a)return{bindingMaps:{},raw:a,prepar
eBinding:b("prepareBinding"),prepareInstanceModel:b("prepareInstanceModel"),prep
areInstancePositionChanged:b("prepareInstancePositionChanged")}},set bindingDele
gate(a){if(this.delegate_)throw Error("Template must be cleared before a new bin
dingDelegate can be assigned");this.setDelegate_(this.newDelegate_(a))},get ref_
(){var a=d(this,this.getAttribute("ref"));if(a||(a=this.instanceRef_),!a)return
this;var b=a.ref_;return b?b:a}});var S=1;Object.defineProperty(Node.prototype,"
templateInstance",{get:function(){var a=this.templateInstance_;return a?a:this.p
arentNode?this.parentNode.templateInstance:void 0}});var T=document.createDocume
ntFragment();T.bindings_=[],T.terminator_=null,E.prototype={closeDeps:function()
{var a=this.deps;a&&(a.ifOneTime===!1&&a.ifValue.close(),a.oneTime===!1&&a.value
.close())},updateDependencies:function(a,b){this.closeDeps();var c=this.deps={},
d=this.templateElement_,e=!0;if(a.if){if(c.hasIf=!0,c.ifOneTime=a.if.onlyOneTime
,c.ifValue=v(J,a.if,d,b),e=c.ifValue,c.ifOneTime&&!e)return void this.valueChang
ed();c.ifOneTime||(e=e.open(this.updateIfValue,this))}a.repeat?(c.repeat=!0,c.on
eTime=a.repeat.onlyOneTime,c.value=v(I,a.repeat,d,b)):(c.repeat=!1,c.oneTime=a.b
ind.onlyOneTime,c.value=v(H,a.bind,d,b));var f=c.value;return c.oneTime||(f=f.op
en(this.updateIteratedValue,this)),e?void this.updateValue(f):void this.valueCha
nged()},getUpdatedValue:function(){var a=this.deps.value;return this.deps.oneTim
e||(a=a.discardChanges()),a},updateIfValue:function(a){return a?void this.update
Value(this.getUpdatedValue()):void this.valueChanged()},updateIteratedValue:func
tion(a){if(this.deps.hasIf){var b=this.deps.ifValue;if(this.deps.ifOneTime||(b=b
.discardChanges()),!b)return void this.valueChanged()}this.updateValue(a)},updat
eValue:function(a){this.deps.repeat||(a=[a]);var b=this.deps.repeat&&!this.deps.
oneTime&&Array.isArray(a);this.valueChanged(a,b)},valueChanged:function(a,b){Arr
ay.isArray(a)||(a=[]),a!==this.iteratedValue&&(this.unobserve(),this.presentValu
e=a,b&&(this.arrayObserver=new ArrayObserver(this.presentValue),this.arrayObserv
er.open(this.handleSplices,this)),this.handleSplices(ArrayObserver.calculateSpli
ces(this.presentValue,this.iteratedValue)))},getLastInstanceNode:function(a){if(
-1==a)return this.templateElement_;var b=this.instances[a],c=b.terminator_;if(!c
)return this.getLastInstanceNode(a-1);if(c.nodeType!==Node.ELEMENT_NODE||this.te
mplateElement_===c)return c;var d=c.iterator_;return d?d.getLastTemplateNode():c
},getLastTemplateNode:function(){return this.getLastInstanceNode(this.instances.
length-1)},insertInstanceAt:function(a,b){var c=this.getLastInstanceNode(a-1),d=
this.templateElement_.parentNode;this.instances.splice(a,0,b),d.insertBefore(b,c
.nextSibling)},extractInstanceAt:function(a){for(var b=this.getLastInstanceNode(
a-1),c=this.getLastInstanceNode(a),d=this.templateElement_.parentNode,e=this.ins
tances.splice(a,1)[0];c!==b;){var f=b.nextSibling;f==c&&(c=b),e.appendChild(d.re
moveChild(f))}return e},getDelegateFn:function(a){return a=a&&a(this.templateEle
ment_),"function"==typeof a?a:null},handleSplices:function(a){if(!this.closed&&a
.length){var b=this.templateElement_;if(!b.parentNode)return void this.close();A
rrayObserver.applySplices(this.iteratedValue,this.presentValue,a);var c=b.delega
te_;void 0===this.instanceModelFn_&&(this.instanceModelFn_=this.getDelegateFn(c&
&c.prepareInstanceModel)),void 0===this.instancePositionChangedFn_&&(this.instan
cePositionChangedFn_=this.getDelegateFn(c&&c.prepareInstancePositionChanged));fo
r(var d=new F,e=0,f=0;f<a.length;f++){for(var g=a[f],h=g.removed,i=0;i<h.length;
i++){var j=h[i],k=this.extractInstanceAt(g.index+e);k!==T&&d.set(j,k)}e-=g.added
Count}for(var f=0;f<a.length;f++)for(var g=a[f],l=g.index;l<g.index+g.addedCount
;l++){var j=this.iteratedValue[l],k=d.get(j);k?d.delete(j):(this.instanceModelFn
_&&(j=this.instanceModelFn_(j)),k=void 0===j?T:b.createInstance(j,void 0,c)),thi
s.insertInstanceAt(l,k)}d.forEach(function(a){this.closeInstanceBindings(a)},thi
s),this.instancePositionChangedFn_&&this.reportInstancesMoved(a)}},reportInstanc
eMoved:function(a){var b=this.instances[a];b!==T&&this.instancePositionChangedFn
_(b.templateInstance_,a)},reportInstancesMoved:function(a){for(var b=0,c=0,d=0;d
<a.length;d++){var e=a[d];if(0!=c)for(;b<e.index;)this.reportInstanceMoved(b),b+
+;else b=e.index;for(;b<e.index+e.addedCount;)this.reportInstanceMoved(b),b++;c+
=e.addedCount-e.removed.length}if(0!=c)for(var f=this.instances.length;f>b;)this
.reportInstanceMoved(b),b++},closeInstanceBindings:function(a){for(var b=a.bindi
ngs_,c=0;c<b.length;c++)b[c].close()},unobserve:function(){this.arrayObserver&&(
this.arrayObserver.close(),this.arrayObserver=void 0)},close:function(){if(!this
.closed){this.unobserve();for(var a=0;a<this.instances.length;a++)this.closeInst
anceBindings(this.instances[a]);this.instances.length=0,this.closeDeps(),this.te
mplateElement_.iterator_=void 0,this.closed=!0}}},HTMLTemplateElement.forAllTemp
latesFrom_=i}(this),function(a){function b(a){f.textContent=d++,e.push(a)}functi
on c(){for(;e.length;)e.shift()()}var d=0,e=[],f=document.createTextNode("");new
(window.MutationObserver||JsMutationObserver)(c).observe(f,{characterData:!0}),a
.endOfMicrotask=b}(Platform),function(a){function b(){e||(e=!0,a.endOfMicrotask(
function(){e=!1,logFlags.data&&console.group("Platform.flush()"),a.performMicrot
askCheckpoint(),logFlags.data&&console.groupEnd()}))}var c=document.createElemen
t("style");c.textContent="template {display: none !important;} /* injected by pl
atform.js */";var d=document.querySelector("head");d.insertBefore(c,d.firstChild
);var e;if(Observer.hasObjectObserve)b=function(){};else{var f=125;window.addEve
ntListener("WebComponentsReady",function(){b(),a.flushPoll=setInterval(b,f)})}if
(window.CustomElements&&!CustomElements.useNative){var g=Document.prototype.impo
rtNode;Document.prototype.importNode=function(a,b){var c=g.call(this,a,b);return
CustomElements.upgradeAll(c),c}}a.flush=b}(window.Platform),function(a){functio
n b(a,b,d,e){return a.replace(e,function(a,e,f,g){var h=f.replace(/["']/g,"");re
turn h=c(b,h,d),e+"'"+h+"'"+g})}function c(a,b,c){if(b&&"/"===b[0])return b;var
e=new URL(b,a);return c?e.href:d(e.href)}function d(a){var b=new URL(document.ba
seURI),c=new URL(a,b);return c.host===b.host&&c.port===b.port&&c.protocol===b.pr
otocol?e(b,c):a}function e(a,b){for(var c=a.pathname,d=b.pathname,e=c.split("/")
,f=d.split("/");e.length&&e[0]===f[0];)e.shift(),f.shift();for(var g=0,h=e.lengt
h-1;h>g;g++)f.unshift("..");return f.join("/")+b.search+b.hash}var f={resolveDom
:function(a,b){b=b||a.ownerDocument.baseURI,this.resolveAttributes(a,b),this.res
olveStyles(a,b);var c=a.querySelectorAll("template");if(c)for(var d,e=0,f=c.leng
th;f>e&&(d=c[e]);e++)d.content&&this.resolveDom(d.content,b)},resolveTemplate:fu
nction(a){this.resolveDom(a.content,a.ownerDocument.baseURI)},resolveStyles:func
tion(a,b){var c=a.querySelectorAll("style");if(c)for(var d,e=0,f=c.length;f>e&&(
d=c[e]);e++)this.resolveStyle(d,b)},resolveStyle:function(a,b){b=b||a.ownerDocum
ent.baseURI,a.textContent=this.resolveCssText(a.textContent,b)},resolveCssText:f
unction(a,c,d){return a=b(a,c,d,g),b(a,c,d,h)},resolveAttributes:function(a,b){a
.hasAttributes&&a.hasAttributes()&&this.resolveElementAttributes(a,b);var c=a&&a
.querySelectorAll(j);if(c)for(var d,e=0,f=c.length;f>e&&(d=c[e]);e++)this.resolv
eElementAttributes(d,b)},resolveElementAttributes:function(a,d){d=d||a.ownerDocu
ment.baseURI,i.forEach(function(e){var f,h=a.attributes[e],i=h&&h.value;i&&i.sea
rch(k)<0&&(f="style"===e?b(i,d,!1,g):c(d,i),h.value=f)})}},g=/(url\()([^)]*)(\))
/g,h=/(@import[\s]+(?!url\())([^;]*)(;)/g,i=["href","src","action","style","url"
],j="["+i.join("],[")+"]",k="{{.*}}";a.urlResolver=f}(Polymer),function(a){funct
ion b(a){this.cache=Object.create(null),this.map=Object.create(null),this.reques
ts=0,this.regex=a}var c=Platform.endOfMicrotask;b.prototype={extractUrls:functio
n(a,b){for(var c,d,e=[];c=this.regex.exec(a);)d=new URL(c[1],b),e.push({matched:
c[0],url:d.href});return e},process:function(a,b,c){var d=this.extractUrls(a,b),
e=c.bind(null,this.map);this.fetch(d,e)},fetch:function(a,b){var c=a.length;if(!
c)return b();for(var d,e,f,g=function(){0===--c&&b()},h=0;c>h;h++)d=a[h],f=d.url
,e=this.cache[f],e||(e=this.xhr(f),e.match=d,this.cache[f]=e),e.wait(g)},handleX
hr:function(a){var b=a.match,c=b.url,d=a.response||a.responseText||"";this.map[c
]=d,this.fetch(this.extractUrls(d,c),a.resolve)},xhr:function(a){this.requests++
;var b=new XMLHttpRequest;return b.open("GET",a,!0),b.send(),b.onerror=b.onload=
this.handleXhr.bind(this,b),b.pending=[],b.resolve=function(){for(var a=b.pendin
g,c=0;c<a.length;c++)a[c]();b.pending=null},b.wait=function(a){b.pending?b.pendi
ng.push(a):c(a)},b}},a.Loader=b}(Polymer),function(a){function b(){this.loader=n
ew d(this.regex)}var c=a.urlResolver,d=a.Loader;b.prototype={regex:/@import\s+(?
:url)?["'\(]*([^'"\)]*)['"\)]*;/g,resolve:function(a,b,c){var d=function(d){c(th
is.flatten(a,b,d))}.bind(this);this.loader.process(a,b,d)},resolveNode:function(
a,b,c){var d=a.textContent,e=function(b){a.textContent=b,c(a)};this.resolve(d,b,
e)},flatten:function(a,b,d){for(var e,f,g,h=this.loader.extractUrls(a,b),i=0;i<h
.length;i++)e=h[i],f=e.url,g=c.resolveCssText(d[f],f,!0),g=this.flatten(g,b,d),a
=a.replace(e.matched,g);return a},loadStyles:function(a,b,c){function d(){f++,f=
==g&&c&&c()}for(var e,f=0,g=a.length,h=0;g>h&&(e=a[h]);h++)this.resolveNode(e,b,
d)}};var e=new b;a.styleResolver=e}(Polymer),function(a){function b(a,b){return
a&&b&&Object.getOwnPropertyNames(b).forEach(function(c){var d=Object.getOwnPrope
rtyDescriptor(b,c);d&&(Object.defineProperty(a,c,d),"function"==typeof d.value&&
(d.value.nom=c))}),a}function c(a){for(var b=a||{},c=1;c<arguments.length;c++){v
ar e=arguments[c];try{for(var f in e)d(f,e,b)}catch(g){}}return b}function d(a,b
,c){var d=e(b,a);Object.defineProperty(c,a,d)}function e(a,b){if(a){var c=Object
.getOwnPropertyDescriptor(a,b);return c||e(Object.getPrototypeOf(a),b)}}a.extend
=b,a.mixin=c,Platform.mixin=c}(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.boundCom
plete=this.complete.bind(this)};c.prototype={go:function(a,b){this.callback=a;va
r c;b?(c=setTimeout(this.boundComplete,b),this.handle=function(){clearTimeout(c)
}):(c=requestAnimationFrame(this.boundComplete),this.handle=function(){cancelAni
mationFrame(c)})},stop:function(){this.handle&&(this.handle(),this.handle=null)}
,complete:function(){this.handle&&(this.stop(),this.callback.call(this.context))
}},a.job=b}(Polymer),function(a){function b(a,b,c){var d="string"==typeof a?docu
ment.createElement(a):a.cloneNode(!0);if(d.innerHTML=b,c)for(var e in c)d.setAtt
ribute(e,c[e]);return d}var c={};HTMLElement.register=function(a,b){c[a]=b},HTML
Element.getPrototypeForTag=function(a){var b=a?c[a]:HTMLElement.prototype;return
b||Object.getPrototypeOf(document.createElement(a))};var d=Event.prototype.stop
Propagation;Event.prototype.stopPropagation=function(){this.cancelBubble=!0,d.ap
ply(this,arguments)};var e=DOMTokenList.prototype.add,f=DOMTokenList.prototype.r
emove;DOMTokenList.prototype.add=function(){for(var a=0;a<arguments.length;a++)e
.call(this,arguments[a])},DOMTokenList.prototype.remove=function(){for(var a=0;a
<arguments.length;a++)f.call(this,arguments[a])},DOMTokenList.prototype.toggle=f
unction(a,b){1==arguments.length&&(b=!this.contains(a)),b?this.add(a):this.remov
e(a)},DOMTokenList.prototype.switch=function(a,b){a&&this.remove(a),b&&this.add(
b)};var g=function(){return Array.prototype.slice.call(this)},h=window.NamedNode
Map||window.MozNamedAttrMap||{};NodeList.prototype.array=g,h.prototype.array=g,H
TMLCollection.prototype.array=g,a.createDOM=b}(Polymer),function(a){function b(a
){var e=b.caller,g=e.nom,h=e._super;h||(g||(g=e.nom=c.call(this,e)),g||console.w
arn("called super() on a method not installed declaratively (has no .nom propert
y)"),h=d(e,g,f(this)));var i=h[g];return i?(i._super||d(i,g,h),i.apply(this,a||[
])):void 0}function c(a){for(var b=this.__proto__;b&&b!==HTMLElement.prototype;)
{for(var c,d=Object.getOwnPropertyNames(b),e=0,f=d.length;f>e&&(c=d[e]);e++){var
g=Object.getOwnPropertyDescriptor(b,c);if("function"==typeof g.value&&g.value==
=a)return c}b=b.__proto__}}function d(a,b,c){var d=e(c,b,a);return d[b]&&(d[b].n
om=b),a._super=d}function e(a,b,c){for(;a;){if(a[b]!==c&&a[b])return a;a=f(a)}re
turn Object}function f(a){return a.__proto__}a.super=b}(Polymer),function(a){fun
ction b(a){return a}function c(a,b){var c=typeof b;return b instanceof Date&&(c=
"date"),d[c](a,b)}var d={string:b,undefined:b,date:function(a){return new Date(D
ate.parse(a)||Date.now())},"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:function(a,b){if(null===b)return a;try{return JSON.parse(a.replac
e(/'/g,'"'))}catch(c){return a}},"function":function(a,b){return b}};a.deseriali
zeValue=c}(Polymer),function(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:function(a,b,c){Platform.flush(),b=b&&b.length?b:[b];var d=funct
ion(){(this[a]||a).apply(this,b)}.bind(this),e=c?setTimeout(d,c):requestAnimatio
nFrame(d);return c?e:~e},cancelAsync:function(a){0>a?cancelAnimationFrame(~a):cl
earTimeout(a)},fire:function(a,b,c,d,e){var f=c||this,b=null===b||void 0===b?{}:
b,g=new CustomEvent(a,{bubbles:void 0!==d?d:!0,cancelable:void 0!==e?e:!0,detail
:b});return f.dispatchEvent(g),g},asyncFire:function(){this.async("fire",argumen
ts)},classFollows:function(a,b,c){b&&b.classList.remove(c),a&&a.classList.add(c)
},injectBoundHTML:function(a,b){var c=document.createElement("template");c.inner
HTML=a;var d=this.instanceTemplate(c);return b&&(b.textContent="",b.appendChild(
d)),d}},c=function(){},d={};b.asyncMethod=b.async,a.api.instance.utils=b,a.nop=c
,a.nob=d}(Polymer),function(a){var b=window.logFlags||{},c="on-",d={EVENT_PREFIX
:c,addHostListeners:function(){var a=this.eventDelegates;b.events&&Object.keys(a
).length>0&&console.log("[%s] addHostListeners:",this.localName,a);for(var c in
a){var d=a[c];PolymerGestures.addEventListener(this,c,this.element.getEventHandl
er(this,this,d))}},dispatchMethod:function(a,c,d){if(a){b.events&&console.group(
"[%s] dispatch [%s]",a.localName,c);var e="function"==typeof c?c:a[c];e&&e[d?"ap
ply":"call"](a,d),b.events&&console.groupEnd(),Platform.flush()}}};a.api.instanc
e.events=d,a.addEventListener=function(a,b,c,d){PolymerGestures.addEventListener
(wrap(a),b,c,d)},a.removeEventListener=function(a,b,c,d){PolymerGestures.removeE
ventListener(wrap(a),b,c,d)}}(Polymer),function(a){var b={copyInstanceAttributes
:function(){var a=this._instanceAttributes;for(var b in a)this.hasAttribute(b)||
this.setAttribute(b,a[b])},takeAttributes:function(){if(this._publishLC)for(var
a,b=0,c=this.attributes,d=c.length;(a=c[b])&&d>b;b++)this.attributeToProperty(a.
name,a.value)},attributeToProperty:function(b,c){var b=this.propertyForAttribute
(b);if(b){if(c&&c.search(a.bindPattern)>=0)return;var d=this[b],c=this.deseriali
zeValue(c,d);c!==d&&(this[b]=c)}},propertyForAttribute:function(a){var b=this._p
ublishLC&&this._publishLC[a];return b},deserializeValue:function(b,c){return a.d
eserializeValue(b,c)},serializeValue:function(a,b){return"boolean"===b?a?"":void
0:"object"!==b&&"function"!==b&&void 0!==a?a:void 0},reflectPropertyToAttribute
:function(a){var b=typeof this[a],c=this.serializeValue(this[a],b);void 0!==c?th
is.setAttribute(a,c):"boolean"===b&&this.removeAttribute(a)}};a.api.instance.att
ributes=b}(Polymer),function(a){function b(a,b){return a===b?0!==a||1/a===1/b:f(
a)&&f(b)?!0:a!==a&&b!==b}function c(a,b){return void 0===b&&null===a?b:null===b|
|void 0===b?a:b}var d=window.logFlags||{},e={object:void 0,type:"update",name:vo
id 0,oldValue:void 0},f=Number.isNaN||function(a){return"number"==typeof a&&isNa
N(a)},g={createPropertyObserver:function(){var a=this._observeNames;if(a&&a.leng
th){var b=this._propertyObserver=new CompoundObserver(!0);this.registerObserver(
b);for(var c,d=0,e=a.length;e>d&&(c=a[d]);d++)b.addPath(this,c),this.observeArra
yValue(c,this[c],null)}},openPropertyObserver:function(){this._propertyObserver&
&this._propertyObserver.open(this.notifyPropertyChanges,this)},notifyPropertyCha
nges:function(a,b,c){var d,e,f={};for(var g in b)if(d=c[2*g+1],e=this.observe[d]
){var h=b[g],i=a[g];this.observeArrayValue(d,i,h),f[e]||(void 0!==h&&null!==h||v
oid 0!==i&&null!==i)&&(f[e]=!0,this.invokeMethod(e,[h,i,arguments]))}},deliverCh
anges:function(){this._propertyObserver&&this._propertyObserver.deliver()},prope
rtyChanged_:function(a){this.reflect[a]&&this.reflectPropertyToAttribute(a)},obs
erveArrayValue:function(a,b,c){var e=this.observe[a];if(e&&(Array.isArray(c)&&(d
.observe&&console.log("[%s] observeArrayValue: unregister observer [%s]",this.lo
calName,a),this.closeNamedObserver(a+"__array")),Array.isArray(b))){d.observe&&c
onsole.log("[%s] observeArrayValue: register observer [%s]",this.localName,a,b);
var f=new ArrayObserver(b);f.open(function(a){this.invokeMethod(e,[a])},this),th
is.registerNamedObserver(a+"__array",f)}},emitPropertyChangeRecord:function(a,c,
d){if(!b(c,d)&&(this.propertyChanged_(a,c,d),Observer.hasObjectObserve)){var f=t
his.notifier_;f||(f=this.notifier_=Object.getNotifier(this)),e.object=this,e.nam
e=a,e.oldValue=d,f.notify(e)}},bindToAccessor:function(a,c,d){function e(b,c){j[
f]=b;var d=j[h];d&&"function"==typeof d.setValue&&d.setValue(b),j.emitPropertyCh
angeRecord(a,b,c)}var f=a+"_",g=a+"Observable_",h=a+"ComputedBoundObservable_";t
his[g]=c;var i=this[f],j=this,k=c.open(e);if(d&&!b(i,k)){var l=d(i,k);b(k,l)||(k
=l,c.setValue&&c.setValue(k))}e(k,i);var m={close:function(){c.close(),j[g]=void
0,j[h]=void 0}};return this.registerObserver(m),m},createComputedProperties:fun
ction(){if(this._computedNames)for(var a=0;a<this._computedNames.length;a++){var
b=this._computedNames[a],c=this.computed[b];try{var d=PolymerExpressions.getExp
ression(c),e=d.getBinding(this,this.element.syntax);this.bindToAccessor(b,e)}cat
ch(f){console.error("Failed to create computed property",f)}}},bindProperty:func
tion(a,b,d){if(d)return void(this[a]=b);var e=this.element.prototype.computed;if
(e&&e[a]){var f=a+"ComputedBoundObservable_";return void(this[f]=b)}return this.
bindToAccessor(a,b,c)},invokeMethod:function(a,b){var c=this[a]||a;"function"==t
ypeof c&&c.apply(this,b)},registerObserver:function(a){return this._observers?vo
id this._observers.push(a):void(this._observers=[a])},closeObservers:function(){
if(this._observers){for(var a=this._observers,b=0;b<a.length;b++){var c=a[b];c&&
"function"==typeof c.close&&c.close()}this._observers=[]}},registerNamedObserver
:function(a,b){var c=this._namedObservers||(this._namedObservers={});c[a]=b},clo
seNamedObserver:function(a){var b=this._namedObservers;return b&&b[a]?(b[a].clos
e(),b[a]=null,!0):void 0},closeNamedObservers:function(){if(this._namedObservers
){for(var a in this._namedObservers)this.closeNamedObserver(a);this._namedObserv
ers={}}}};a.api.instance.properties=g}(Polymer),function(a){var b=window.logFlag
s||0,c={instanceTemplate:function(a){HTMLTemplateElement.decorate(a);for(var b=t
his.syntax||!a.bindingDelegate&&this.element.syntax,c=a.createInstance(this,b),d
=c.bindings_,e=0;e<d.length;e++)this.registerObserver(d[e]);return c},bind:funct
ion(a,b,c){var d=this.propertyForAttribute(a);if(d){var e=this.bindProperty(d,b,
c);return Platform.enableBindingsReflection&&e&&(e.path=b.path_,this._recordBind
ing(d,e)),this.reflect[d]&&this.reflectPropertyToAttribute(d),e}return this.mixi
nSuper(arguments)},bindFinished:function(){this.makeElementReady()},_recordBindi
ng:function(a,b){this.bindings_=this.bindings_||{},this.bindings_[a]=b},asyncUnb
indAll:function(){this._unbound||(b.unbind&&console.log("[%s] asyncUnbindAll",th
is.localName),this._unbindAllJob=this.job(this._unbindAllJob,this.unbindAll,0))}
,unbindAll:function(){this._unbound||(this.closeObservers(),this.closeNamedObser
vers(),this._unbound=!0)},cancelUnbindAll:function(){return this._unbound?void(b
.unbind&&console.warn("[%s] already unbound, cannot cancel unbindAll",this.local
Name)):(b.unbind&&console.log("[%s] cancelUnbindAll",this.localName),void(this._
unbindAllJob&&(this._unbindAllJob=this._unbindAllJob.stop())))}},d=/\{\{([^{}]*)
}}/;a.bindPattern=d,a.api.instance.mdv=c}(Polymer),function(a){function b(a){ret
urn a.hasOwnProperty("PolymerBase")}function c(){}var d={PolymerBase:!0,job:func
tion(a,b,c){if("string"!=typeof a)return Polymer.job.call(this,a,b,c);var d="___
"+a;this[d]=Polymer.job.call(this,this[d],b,c)},"super":Polymer.super,created:fu
nction(){},ready:function(){},createdCallback:function(){this.templateInstance&&
this.templateInstance.model&&console.warn("Attributes on "+this.localName+" were
data bound prior to Polymer upgrading the element. This may result in incorrect
binding types."),this.created(),this.prepareElement(),this.ownerDocument.isStag
ingDocument||this.makeElementReady()},prepareElement:function(){return this._ele
mentPrepared?void console.warn("Element already prepared",this.localName):(this.
_elementPrepared=!0,this.shadowRoots={},this.createPropertyObserver(),this.openP
ropertyObserver(),this.copyInstanceAttributes(),this.takeAttributes(),void this.
addHostListeners())},makeElementReady:function(){this._readied||(this._readied=!
0,this.createComputedProperties(),this.parseDeclarations(this.__proto__),this.re
moveAttribute("unresolved"),this.ready())},attachedCallback:function(){this.canc
elUnbindAll(),this.attached&&this.attached(),this.enteredView&&this.enteredView(
),this.hasBeenAttached||(this.hasBeenAttached=!0,this.domReady&&this.async("domR
eady"))},detachedCallback:function(){this.preventDispose||this.asyncUnbindAll(),
this.detached&&this.detached(),this.leftView&&this.leftView()},enteredViewCallba
ck:function(){this.attachedCallback()},leftViewCallback:function(){this.detached
Callback()},enteredDocumentCallback:function(){this.attachedCallback()},leftDocu
mentCallback:function(){this.detachedCallback()},parseDeclarations:function(a){a
&&a.element&&(this.parseDeclarations(a.__proto__),a.parseDeclaration.call(this,a
.element))},parseDeclaration:function(a){var b=this.fetchTemplate(a);if(b){var c
=this.shadowFromTemplate(b);this.shadowRoots[a.name]=c}},fetchTemplate:function(
a){return a.querySelector("template")},shadowFromTemplate:function(a){if(a){var
b=this.createShadowRoot(),c=this.instanceTemplate(a);return b.appendChild(c),thi
s.shadowRootReady(b,a),b}},lightFromTemplate:function(a,b){if(a){this.eventContr
oller=this;var c=this.instanceTemplate(a);return b?this.insertBefore(c,b):this.a
ppendChild(c),this.shadowRootReady(this),c}},shadowRootReady:function(a){this.ma
rshalNodeReferences(a)},marshalNodeReferences:function(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){"class"!==a&&"style"!==a&&this.at
tributeToProperty(a,this.getAttribute(a)),this.attributeChanged&&this.attributeC
hanged.apply(this,arguments)},onMutation:function(a,b){var c=new MutationObserve
r(function(a){b.call(this,c,a),c.disconnect()}.bind(this));c.observe(a,{childLis
t:!0,subtree:!0})}};c.prototype=d,d.constructor=c,a.Base=c,a.isBase=b,a.api.inst
ance.base=d}(Polymer),function(a){function b(a){return a.__proto__}function c(a,
b){var c="",d=!1;b&&(c=b.localName,d=b.hasAttribute("is"));var e=Platform.Shadow
CSS.makeScopeSelector(c,d);return Platform.ShadowCSS.shimCssText(a,e)}var d=(win
dow.logFlags||{},window.ShadowDOMPolyfill),e="element",f="controller",g={STYLE_S
COPE_ATTRIBUTE:e,installControllerStyles:function(){var a=this.findStyleScope();
if(a&&!this.scopeHasNamedStyle(a,this.localName)){for(var c=b(this),d="";c&&c.el
ement;)d+=c.element.cssTextForScope(f),c=b(c);d&&this.installScopeCssText(d,a)}}
,installScopeStyle:function(a,b,c){var c=c||this.findStyleScope(),b=b||"";if(c&&
!this.scopeHasNamedStyle(c,this.localName+b)){var d="";if(a instanceof Array)for
(var e,f=0,g=a.length;g>f&&(e=a[f]);f++)d+=e.textContent+"\n\n";else d=a.textCon
tent;this.installScopeCssText(d,c,b)}},installScopeCssText:function(a,b,e){if(b=
b||this.findStyleScope(),e=e||"",b){d&&(a=c(a,b.host));var g=this.element.cssTex
tToScopeStyle(a,f);Polymer.applyStyleToScope(g,b),this.styleCacheForScope(b)[thi
s.localName+e]=!0}},findStyleScope:function(a){for(var b=a||this;b.parentNode;)b
=b.parentNode;return b},scopeHasNamedStyle:function(a,b){var c=this.styleCacheFo
rScope(a); |
15 return c[b]},styleCacheForScope:function(a){if(d){var b=a.host?a.host.localName:
a.localName;return h[b]||(h[b]={})}return a._scopeStyles=a._scopeStyles||{}}},h=
{};a.api.instance.styles=g}(Polymer),function(a){function b(a,b){if("string"!=ty
peof a){var c=b||document._currentScript;if(b=a,a=c&&c.parentNode&&c.parentNode.
getAttribute?c.parentNode.getAttribute("name"):"",!a)throw"Element name could no
t be inferred."}if(f(a))throw"Already registered (Polymer) prototype for element
"+a;e(a,b),d(a)}function c(a,b){i[a]=b}function d(a){i[a]&&(i[a].registerWhenRe
ady(),delete i[a])}function e(a,b){return j[a]=b||{}}function f(a){return j[a]}f
unction g(a,b){if("string"!=typeof b)return!1;var c=HTMLElement.getPrototypeForT
ag(b),d=c&&c.constructor;return d?CustomElements.instanceof?CustomElements.insta
nceof(a,d):a instanceof d:!1}var h=a.extend,i=(a.api,{}),j={};a.getRegisteredPro
totype=f,a.waitingForPrototype=c,a.instanceOfType=g,window.Polymer=b,h(Polymer,a
),Platform.consumeDeclarations&&Platform.consumeDeclarations(function(a){if(a)fo
r(var c,d=0,e=a.length;e>d&&(c=a[d]);d++)b.apply(null,c)})}(Polymer),function(a)
{var b={resolveElementPaths:function(a){Polymer.urlResolver.resolveDom(a)},addRe
solvePathApi:function(){var a=this.getAttribute("assetpath")||"",b=new URL(a,thi
s.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){function
b(a,b){var c=new URL(a.getAttribute("href"),b).href;return"@import '"+c+"';"}fu
nction c(a,b){if(a){b===document&&(b=document.head),i&&(b=document.head);var c=d
(a.textContent),e=a.getAttribute(h);e&&c.setAttribute(h,e);var f=b.firstElementC
hild;if(b===document.head){var g="style["+h+"]",j=document.head.querySelectorAll
(g);j.length&&(f=j[j.length-1].nextElementSibling)}b.insertBefore(c,f)}}function
d(a,b){b=b||document,b=b.createElement?b:b.ownerDocument;var c=b.createElement(
"style");return c.textContent=a,c}function e(a){return a&&a.__resource||""}funct
ion f(a,b){return q?q.call(a,b):void 0}var g=(window.logFlags||{},a.api.instance
.styles),h=g.STYLE_SCOPE_ATTRIBUTE,i=window.ShadowDOMPolyfill,j="style",k="@impo
rt",l="link[rel=stylesheet]",m="global",n="polymer-scope",o={loadStyles:function
(a){var b=this.fetchTemplate(),c=b&&this.templateContent();if(c){this.convertShe
etsToStyles(c);var d=this.findLoadableStyles(c);if(d.length){var e=b.ownerDocume
nt.baseURI;return Polymer.styleResolver.loadStyles(d,e,a)}}a&&a()},convertSheets
ToStyles:function(a){for(var c,e,f=a.querySelectorAll(l),g=0,h=f.length;h>g&&(c=
f[g]);g++)e=d(b(c,this.ownerDocument.baseURI),this.ownerDocument),this.copySheet
Attributes(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&&"hre
f"!==c.name&&a.setAttribute(c.name,c.value)},findLoadableStyles:function(a){var
b=[];if(a)for(var c,d=a.querySelectorAll(j),e=0,f=d.length;f>e&&(c=d[e]);e++)c.t
extContent.match(k)&&b.push(c);return b},installSheets:function(){this.cacheShee
ts(),this.cacheStyles(),this.installLocalSheets(),this.installGlobalStyles()},ca
cheSheets:function(){this.sheets=this.findNodes(l),this.sheets.forEach(function(
a){a.parentNode&&a.parentNode.removeChild(a)})},cacheStyles:function(){this.styl
es=this.findNodes(j+"["+n+"]"),this.styles.forEach(function(a){a.parentNode&&a.p
arentNode.removeChild(a)})},installLocalSheets:function(){var a=this.sheets.filt
er(function(a){return!a.hasAttribute(n)}),b=this.templateContent();if(b){var c="
";if(a.forEach(function(a){c+=e(a)+"\n"}),c){var f=d(c,this.ownerDocument);b.ins
ertBefore(f,b.firstChild)}}},findNodes:function(a,b){var c=this.querySelectorAll
(a).array(),d=this.templateContent();if(d){var e=d.querySelectorAll(a).array();c
=c.concat(e)}return b?c.filter(b):c},installGlobalStyles:function(){var a=this.s
tyleForScope(m);c(a,document.head)},cssTextForScope:function(a){var b="",c="["+n
+"="+a+"]",d=function(a){return f(a,c)},g=this.sheets.filter(d);g.forEach(functi
on(a){b+=e(a)+"\n\n"});var h=this.styles.filter(d);return h.forEach(function(a){
b+=a.textContent+"\n\n"}),b},styleForScope:function(a){var b=this.cssTextForScop
e(a);return this.cssTextToScopeStyle(b,a)},cssTextToScopeStyle:function(a,b){if(
a){var c=d(a);return c.setAttribute(h,this.getAttribute("name")+"-"+b),c}}},p=HT
MLElement.prototype,q=p.matches||p.matchesSelector||p.webkitMatchesSelector||p.m
ozMatchesSelector;a.api.declaration.styles=o,a.applyStyleToScope=c}(Polymer),fun
ction(a){var b=(window.logFlags||{},a.api.instance.events),c=b.EVENT_PREFIX,d={}
;["webkitAnimationStart","webkitAnimationEnd","webkitTransitionEnd","DOMFocusOut
","DOMFocusIn","DOMMouseScroll"].forEach(function(a){d[a.toLowerCase()]=a});var
e={parseHostEvents:function(){var a=this.prototype.eventDelegates;this.addAttrib
uteDelegates(a)},addAttributeDelegates:function(a){for(var b,c=0;b=this.attribut
es[c];c++)this.hasEventPrefix(b.name)&&(a[this.removeEventPrefix(b.name)]=b.valu
e.replace("{{","").replace("}}","").trim())},hasEventPrefix:function(a){return a
&&"o"===a[0]&&"n"===a[1]&&"-"===a[2]},removeEventPrefix:function(a){return a.sli
ce(f)},findController:function(a){for(;a.parentNode;){if(a.eventController)retur
n a.eventController;a=a.parentNode}return a.host},getEventHandler:function(a,b,c
){var d=this;return function(e){a&&a.PolymerBase||(a=d.findController(b));var f=
[e,e.detail,e.currentTarget];a.dispatchMethod(a,c,f)}},prepareEventBinding:funct
ion(a,b){if(this.hasEventPrefix(b)){var c=this.removeEventPrefix(b);c=d[c]||c;va
r e=this;return function(b,d,f){function g(){return"{{ "+a+" }}"}var h=e.getEven
tHandler(void 0,d,a);return PolymerGestures.addEventListener(d,c,h),f?void 0:{op
en:g,discardChanges:g,close:function(){PolymerGestures.removeEventListener(d,c,h
)}}}}}},f=c.length;a.api.declaration.events=e}(Polymer),function(a){var b={infer
Observers:function(a){var b,c=a.observe;for(var d in a)"Changed"===d.slice(-7)&&
(c||(c=a.observe={}),b=d.slice(0,-7),c[b]=c[b]||d)},explodeObservers: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){va
r 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(var c in a.publish)b.
push(c)}if(a.computed){var b=a._computedNames=[];for(var c in a.computed)b.push(
c)}},publishProperties:function(a,b){var c=a.publish;c&&(this.requireProperties(
c,a,b),a._publishLC=this.lowerCaseMap(c))},requireProperties:function(a,b){b.ref
lect=b.reflect||{};for(var c in a){var d=a[c];d&&void 0!==d.reflect&&(b.reflect[
c]=Boolean(d.reflect),d=d.value),void 0!==d&&(b[c]=d)}},lowerCaseMap:function(a)
{var b={};for(var c in a)b[c.toLowerCase()]=c;return b},createPropertyAccessor:f
unction(a,b){var c=this.prototype,d=a+"_",e=a+"Observable_";c[d]=c[a],Object.def
ineProperty(c,a,{get:function(){var a=this[e];return a&&a.deliver(),this[d]},set
:function(c){if(b)return this[d];var f=this[e];if(f)return void f.setValue(c);va
r g=this[d];return this[d]=c,this.emitPropertyChangeRecord(a,c,g),c},configurabl
e:!0})},createPropertyAccessors:function(a){var b=a._computedNames;if(b&&b.lengt
h)for(var c,d=0,e=b.length;e>d&&(c=b[d]);d++)this.createPropertyAccessor(c,!0);v
ar b=a._publishNames;if(b&&b.length)for(var c,d=0,e=b.length;e>d&&(c=b[d]);d++)a
.computed&&a.computed[c]||this.createPropertyAccessor(c)}};a.api.declaration.pro
perties=b}(Polymer),function(a){var b="attributes",c=/\s|,/,d={inheritAttributes
Objects:function(a){this.inheritObject(a,"publishLC"),this.inheritObject(a,"_ins
tanceAttributes")},publishAttributes:function(a){var d=this.getAttribute(b);if(d
)for(var e,f=a.publish||(a.publish={}),g=d.split(c),h=0,i=g.length;i>h;h++)e=g[h
].trim(),e&&void 0===f[e]&&(f[e]=void 0)},accumulateInstanceAttributes:function(
){for(var a,b=this.prototype._instanceAttributes,c=this.attributes,d=0,e=c.lengt
h;e>d&&(a=c[d]);d++)this.isInstanceAttribute(a.name)&&(b[a.name]=a.value)},isIns
tanceAttribute:function(a){return!this.blackList[a]&&"on-"!==a.slice(0,3)},black
List:{name:1,"extends":1,constructor:1,noscript:1,assetpath:1,"cache-csstext":1}
};d.blackList[b]=1,a.api.declaration.attributes=d}(Polymer),function(a){var b=a.
api.declaration.events,c=new PolymerExpressions,d=c.prepareBinding;c.prepareBind
ing=function(a,e,f){return b.prepareEventBinding(a,e,f)||d.call(c,a,e,f)};var e=
{syntax:c,fetchTemplate:function(){return this.querySelector("template")},templa
teContent:function(){var a=this.fetchTemplate();return a&&a.content},installBind
ingDelegate:function(a){a&&(a.bindingDelegate=this.syntax)}};a.api.declaration.m
dv=e}(Polymer),function(a){function b(a){if(!Object.__proto__){var b=Object.getP
rototypeOf(a);a.__proto__=b,d(b)&&(b.__proto__=Object.getPrototypeOf(b))}}var c=
a.api,d=a.isBase,e=a.extend,f=window.ShadowDOMPolyfill,g={register:function(a,b)
{this.buildPrototype(a,b),this.registerPrototype(a,b),this.publishConstructor()}
,buildPrototype:function(b,c){var d=a.getRegisteredPrototype(b),e=this.generateB
asePrototype(c);this.desugarBeforeChaining(d,e),this.prototype=this.chainPrototy
pes(d,e),this.desugarAfterChaining(b,c)},desugarBeforeChaining:function(a,b){a.e
lement=this,this.publishAttributes(a,b),this.publishProperties(a,b),this.inferOb
servers(a),this.explodeObservers(a)},chainPrototypes:function(a,c){this.inheritM
etaData(a,c);var d=this.chainObject(a,c);return b(d),d},inheritMetaData:function
(a,b){this.inheritObject("observe",a,b),this.inheritObject("publish",a,b),this.i
nheritObject("reflect",a,b),this.inheritObject("_publishLC",a,b),this.inheritObj
ect("_instanceAttributes",a,b),this.inheritObject("eventDelegates",a,b)},desugar
AfterChaining:function(a,b){this.optimizePropertyMaps(this.prototype),this.creat
ePropertyAccessors(this.prototype),this.installBindingDelegate(this.fetchTemplat
e()),this.installSheets(),this.resolveElementPaths(this),this.accumulateInstance
Attributes(),this.parseHostEvents(),this.addResolvePathApi(),f&&Platform.ShadowC
SS.shimStyling(this.templateContent(),a,b),this.prototype.registerCallback&&this
.prototype.registerCallback(this)},publishConstructor:function(){var a=this.getA
ttribute("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),h[a]=b}return b},findBasePrototype:function(a){return
h[a]},ensureBaseApi:function(a){if(a.PolymerBase)return a;var b=Object.create(a
);return c.publish(c.instance,b),this.mixinMethod(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(this,arguments)}},inheritObject:f
unction(a,b,c){var d=b[a]||{};b[a]=this.chainObject(d,c[a])},registerPrototype:f
unction(a,b){var c={prototype:this.prototype},d=this.findTypeExtension(b);d&&(c.
extends=d),HTMLElement.register(a,this.prototype),this.ctor=document.registerEle
ment(a,c)},findTypeExtension:function(a){if(a&&a.indexOf("-")<0)return a;var b=t
his.findBasePrototype(a);return b.element?this.findTypeExtension(b.element.exten
ds):void 0}},h={};g.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=g}(Polymer),function(a){function b(a){retu
rn document.contains(a)?j:i}function c(){return i.length?i[0]:j[0]}function d(a)
{f.waitToReady=!0,Platform.endOfMicrotask(function(){HTMLImports.whenReady(funct
ion(){f.addReadyCallback(a),f.waitToReady=!1,f.check()})})}function e(a){if(void
0===a)return void f.ready();var b=setTimeout(function(){f.ready()},a);Polymer.w
henReady(function(){clearTimeout(b)})}var f={wait:function(a){a.__queue||(a.__qu
eue={},g.push(a))},enqueue:function(a,c,d){var e=a.__queue&&!a.__queue.check;ret
urn e&&(b(a).push(a),a.__queue.check=c,a.__queue.go=d),0!==this.indexOf(a)},inde
xOf:function(a){var c=b(a).indexOf(a);return c>=0&&document.contains(a)&&(c+=HTM
LImports.useNative||HTMLImports.ready?i.length:1e9),c},go:function(a){var b=this
.remove(a);b&&(a.__queue.flushable=!0,this.addToFlushQueue(b),this.check())},rem
ove:function(a){var c=this.indexOf(a);if(0===c)return b(a).shift()},check:functi
on(){var a=this.nextElement();return a&&a.__queue.check.call(a),this.canReady()?
(this.ready(),!0):void 0},nextElement:function(){return c()},canReady:function()
{return!this.waitToReady&&this.isEmpty()},isEmpty:function(){for(var a,b=0,c=g.l
ength;c>b&&(a=g[b]);b++)if(a.__queue&&!a.__queue.flushable)return;return!0},addT
oFlushQueue:function(a){h.push(a)},flush:function(){if(!this.flushing){this.flus
hing=!0;for(var a;h.length;)a=h.shift(),a.__queue.go.call(a),a.__queue=null;this
.flushing=!1}},ready:function(){var a=CustomElements.ready;CustomElements.ready=
!1,this.flush(),CustomElements.useNative||CustomElements.upgradeDocumentTree(doc
ument),CustomElements.ready=a,Platform.flush(),requestAnimationFrame(this.flushR
eadyCallbacks)},addReadyCallback:function(a){a&&k.push(a)},flushReadyCallbacks:f
unction(){if(k)for(var a;k.length;)(a=k.shift())()},waitingFor:function(){for(va
r a,b=[],c=0,d=g.length;d>c&&(a=g[c]);c++)a.__queue&&!a.__queue.flushable&&b.pus
h(a);return b},waitToReady:!0},g=[],h=[],i=[],j=[],k=[];a.elements=g,a.waitingFo
r=f.waitingFor.bind(f),a.forceReady=e,a.queue=f,a.whenReady=a.whenPolymerReady=d
}(Polymer),function(a){function b(a){return Boolean(HTMLElement.getPrototypeForT
ag(a))}function c(a){return a&&a.indexOf("-")>=0}var d=a.extend,e=a.api,f=a.queu
e,g=a.whenReady,h=a.getRegisteredPrototype,i=a.waitingForPrototype,j=d(Object.cr
eate(HTMLElement.prototype),{createdCallback:function(){this.getAttribute("name"
)&&this.init()},init:function(){this.name=this.getAttribute("name"),this.extends
=this.getAttribute("extends"),f.wait(this),this.loadResources(),this.registerWhe
nReady()},registerWhenReady:function(){this.registered||this.waitingForPrototype
(this.name)||this.waitingForQueue()||this.waitingForResources()||f.go(this)},_re
gister:function(){c(this.extends)&&!b(this.extends)&&console.warn("%s is attempt
ing to extend %s, an unregistered element or one that was not registered with Po
lymer.",this.name,this.extends),this.register(this.name,this.extends),this.regis
tered=!0},waitingForPrototype:function(a){return h(a)?void 0:(i(a,this),this.han
dleNoScript(a),!0)},handleNoScript:function(a){this.hasAttribute("noscript")&&!t
his.noscript&&(this.noscript=!0,Polymer(a))},waitingForResources:function(){retu
rn this._needsResources},waitingForQueue:function(){return f.enqueue(this,this.r
egisterWhenReady,this._register)},loadResources:function(){this._needsResources=
!0,this.loadStyles(function(){this._needsResources=!1,this.registerWhenReady()}.
bind(this))}});e.publish(e.declaration,j),g(function(){document.body.removeAttri
bute("unresolved"),document.dispatchEvent(new CustomEvent("polymer-ready",{bubbl
es:!0}))}),document.registerElement("polymer-element",{prototype:j})}(Polymer),f
unction(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.createDocumentFragment(),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.whenPolymerReady;a.import=c,a.impo
rtElements=b}(Polymer),function(){var a=document.createElement("polymer-element"
);a.setAttribute("name","auto-binding"),a.setAttribute("extends","template"),a.i
nit(),Polymer("auto-binding",{createdCallback:function(){this.syntax=this.bindin
gDelegate=this.makeSyntax(),Polymer.whenPolymerReady(function(){this.model=this,
this.setAttribute("bind",""),this.async(function(){this.marshalNodeReferences(th
is.parentNode),this.fire("template-bound")})}.bind(this))},makeSyntax:function()
{var a=Object.create(Polymer.api.declaration.events),b=this;a.findController=fun
ction(){return b.model};var c=new PolymerExpressions,d=c.prepareBinding;return c
.prepareBinding=function(b,e,f){return a.prepareEventBinding(b,e,f)||d.call(c,b,
e,f)},c}})}(); | 15 return c[b]},styleCacheForScope:function(a){if(d){var b=a.host?a.host.localName:
a.localName;return h[b]||(h[b]={})}return a._scopeStyles=a._scopeStyles||{}}},h=
{};a.api.instance.styles=g}(Polymer),function(a){function b(a,b){if("string"!=ty
peof a){var c=b||document._currentScript;if(b=a,a=c&&c.parentNode&&c.parentNode.
getAttribute?c.parentNode.getAttribute("name"):"",!a)throw"Element name could no
t be inferred."}if(f(a))throw"Already registered (Polymer) prototype for element
"+a;e(a,b),d(a)}function c(a,b){i[a]=b}function d(a){i[a]&&(i[a].registerWhenRe
ady(),delete i[a])}function e(a,b){return j[a]=b||{}}function f(a){return j[a]}f
unction g(a,b){if("string"!=typeof b)return!1;var c=HTMLElement.getPrototypeForT
ag(b),d=c&&c.constructor;return d?CustomElements.instanceof?CustomElements.insta
nceof(a,d):a instanceof d:!1}var h=a.extend,i=(a.api,{}),j={};a.getRegisteredPro
totype=f,a.waitingForPrototype=c,a.instanceOfType=g,window.Polymer=b,h(Polymer,a
),Platform.consumeDeclarations&&Platform.consumeDeclarations(function(a){if(a)fo
r(var c,d=0,e=a.length;e>d&&(c=a[d]);d++)b.apply(null,c)})}(Polymer),function(a)
{var b={resolveElementPaths:function(a){Polymer.urlResolver.resolveDom(a)},addRe
solvePathApi:function(){var a=this.getAttribute("assetpath")||"",b=new URL(a,thi
s.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){function
b(a,b){var c=new URL(a.getAttribute("href"),b).href;return"@import '"+c+"';"}fu
nction c(a,b){if(a){b===document&&(b=document.head),i&&(b=document.head);var c=d
(a.textContent),e=a.getAttribute(h);e&&c.setAttribute(h,e);var f=b.firstElementC
hild;if(b===document.head){var g="style["+h+"]",j=document.head.querySelectorAll
(g);j.length&&(f=j[j.length-1].nextElementSibling)}b.insertBefore(c,f)}}function
d(a,b){b=b||document,b=b.createElement?b:b.ownerDocument;var c=b.createElement(
"style");return c.textContent=a,c}function e(a){return a&&a.__resource||""}funct
ion f(a,b){return q?q.call(a,b):void 0}var g=(window.logFlags||{},a.api.instance
.styles),h=g.STYLE_SCOPE_ATTRIBUTE,i=window.ShadowDOMPolyfill,j="style",k="@impo
rt",l="link[rel=stylesheet]",m="global",n="polymer-scope",o={loadStyles:function
(a){var b=this.fetchTemplate(),c=b&&this.templateContent();if(c){this.convertShe
etsToStyles(c);var d=this.findLoadableStyles(c);if(d.length){var e=b.ownerDocume
nt.baseURI;return Polymer.styleResolver.loadStyles(d,e,a)}}a&&a()},convertSheets
ToStyles:function(a){for(var c,e,f=a.querySelectorAll(l),g=0,h=f.length;h>g&&(c=
f[g]);g++)e=d(b(c,this.ownerDocument.baseURI),this.ownerDocument),this.copySheet
Attributes(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&&"hre
f"!==c.name&&a.setAttribute(c.name,c.value)},findLoadableStyles:function(a){var
b=[];if(a)for(var c,d=a.querySelectorAll(j),e=0,f=d.length;f>e&&(c=d[e]);e++)c.t
extContent.match(k)&&b.push(c);return b},installSheets:function(){this.cacheShee
ts(),this.cacheStyles(),this.installLocalSheets(),this.installGlobalStyles()},ca
cheSheets:function(){this.sheets=this.findNodes(l),this.sheets.forEach(function(
a){a.parentNode&&a.parentNode.removeChild(a)})},cacheStyles:function(){this.styl
es=this.findNodes(j+"["+n+"]"),this.styles.forEach(function(a){a.parentNode&&a.p
arentNode.removeChild(a)})},installLocalSheets:function(){var a=this.sheets.filt
er(function(a){return!a.hasAttribute(n)}),b=this.templateContent();if(b){var c="
";if(a.forEach(function(a){c+=e(a)+"\n"}),c){var f=d(c,this.ownerDocument);b.ins
ertBefore(f,b.firstChild)}}},findNodes:function(a,b){var c=this.querySelectorAll
(a).array(),d=this.templateContent();if(d){var e=d.querySelectorAll(a).array();c
=c.concat(e)}return b?c.filter(b):c},installGlobalStyles:function(){var a=this.s
tyleForScope(m);c(a,document.head)},cssTextForScope:function(a){var b="",c="["+n
+"="+a+"]",d=function(a){return f(a,c)},g=this.sheets.filter(d);g.forEach(functi
on(a){b+=e(a)+"\n\n"});var h=this.styles.filter(d);return h.forEach(function(a){
b+=a.textContent+"\n\n"}),b},styleForScope:function(a){var b=this.cssTextForScop
e(a);return this.cssTextToScopeStyle(b,a)},cssTextToScopeStyle:function(a,b){if(
a){var c=d(a);return c.setAttribute(h,this.getAttribute("name")+"-"+b),c}}},p=HT
MLElement.prototype,q=p.matches||p.matchesSelector||p.webkitMatchesSelector||p.m
ozMatchesSelector;a.api.declaration.styles=o,a.applyStyleToScope=c}(Polymer),fun
ction(a){var b=(window.logFlags||{},a.api.instance.events),c=b.EVENT_PREFIX,d={}
;["webkitAnimationStart","webkitAnimationEnd","webkitTransitionEnd","DOMFocusOut
","DOMFocusIn","DOMMouseScroll"].forEach(function(a){d[a.toLowerCase()]=a});var
e={parseHostEvents:function(){var a=this.prototype.eventDelegates;this.addAttrib
uteDelegates(a)},addAttributeDelegates:function(a){for(var b,c=0;b=this.attribut
es[c];c++)this.hasEventPrefix(b.name)&&(a[this.removeEventPrefix(b.name)]=b.valu
e.replace("{{","").replace("}}","").trim())},hasEventPrefix:function(a){return a
&&"o"===a[0]&&"n"===a[1]&&"-"===a[2]},removeEventPrefix:function(a){return a.sli
ce(f)},findController:function(a){for(;a.parentNode;){if(a.eventController)retur
n a.eventController;a=a.parentNode}return a.host},getEventHandler:function(a,b,c
){var d=this;return function(e){a&&a.PolymerBase||(a=d.findController(b));var f=
[e,e.detail,e.currentTarget];a.dispatchMethod(a,c,f)}},prepareEventBinding:funct
ion(a,b){if(this.hasEventPrefix(b)){var c=this.removeEventPrefix(b);c=d[c]||c;va
r e=this;return function(b,d,f){function g(){return"{{ "+a+" }}"}var h=e.getEven
tHandler(void 0,d,a);return PolymerGestures.addEventListener(d,c,h),f?void 0:{op
en:g,discardChanges:g,close:function(){PolymerGestures.removeEventListener(d,c,h
)}}}}}},f=c.length;a.api.declaration.events=e}(Polymer),function(a){var b={infer
Observers:function(a){var b,c=a.observe;for(var d in a)"Changed"===d.slice(-7)&&
(c||(c=a.observe={}),b=d.slice(0,-7),c[b]=c[b]||d)},explodeObservers: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){va
r 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(var c in a.publish)b.
push(c)}if(a.computed){var b=a._computedNames=[];for(var c in a.computed)b.push(
c)}},publishProperties:function(a,b){var c=a.publish;c&&(this.requireProperties(
c,a,b),a._publishLC=this.lowerCaseMap(c))},requireProperties:function(a,b){b.ref
lect=b.reflect||{};for(var c in a){var d=a[c];d&&void 0!==d.reflect&&(b.reflect[
c]=Boolean(d.reflect),d=d.value),void 0!==d&&(b[c]=d)}},lowerCaseMap:function(a)
{var b={};for(var c in a)b[c.toLowerCase()]=c;return b},createPropertyAccessor:f
unction(a,b){var c=this.prototype,d=a+"_",e=a+"Observable_";c[d]=c[a],Object.def
ineProperty(c,a,{get:function(){var a=this[e];return a&&a.deliver(),this[d]},set
:function(c){if(b)return this[d];var f=this[e];if(f)return void f.setValue(c);va
r g=this[d];return this[d]=c,this.emitPropertyChangeRecord(a,c,g),c},configurabl
e:!0})},createPropertyAccessors:function(a){var b=a._computedNames;if(b&&b.lengt
h)for(var c,d=0,e=b.length;e>d&&(c=b[d]);d++)this.createPropertyAccessor(c,!0);v
ar b=a._publishNames;if(b&&b.length)for(var c,d=0,e=b.length;e>d&&(c=b[d]);d++)a
.computed&&a.computed[c]||this.createPropertyAccessor(c)}};a.api.declaration.pro
perties=b}(Polymer),function(a){var b="attributes",c=/\s|,/,d={inheritAttributes
Objects:function(a){this.inheritObject(a,"publishLC"),this.inheritObject(a,"_ins
tanceAttributes")},publishAttributes:function(a){var d=this.getAttribute(b);if(d
)for(var e,f=a.publish||(a.publish={}),g=d.split(c),h=0,i=g.length;i>h;h++)e=g[h
].trim(),e&&void 0===f[e]&&(f[e]=void 0)},accumulateInstanceAttributes:function(
){for(var a,b=this.prototype._instanceAttributes,c=this.attributes,d=0,e=c.lengt
h;e>d&&(a=c[d]);d++)this.isInstanceAttribute(a.name)&&(b[a.name]=a.value)},isIns
tanceAttribute:function(a){return!this.blackList[a]&&"on-"!==a.slice(0,3)},black
List:{name:1,"extends":1,constructor:1,noscript:1,assetpath:1,"cache-csstext":1}
};d.blackList[b]=1,a.api.declaration.attributes=d}(Polymer),function(a){var b=a.
api.declaration.events,c=new PolymerExpressions,d=c.prepareBinding;c.prepareBind
ing=function(a,e,f){return b.prepareEventBinding(a,e,f)||d.call(c,a,e,f)};var e=
{syntax:c,fetchTemplate:function(){return this.querySelector("template")},templa
teContent:function(){var a=this.fetchTemplate();return a&&a.content},installBind
ingDelegate:function(a){a&&(a.bindingDelegate=this.syntax)}};a.api.declaration.m
dv=e}(Polymer),function(a){function b(a){if(!Object.__proto__){var b=Object.getP
rototypeOf(a);a.__proto__=b,d(b)&&(b.__proto__=Object.getPrototypeOf(b))}}var c=
a.api,d=a.isBase,e=a.extend,f=window.ShadowDOMPolyfill,g={register:function(a,b)
{this.buildPrototype(a,b),this.registerPrototype(a,b),this.publishConstructor()}
,buildPrototype:function(b,c){var d=a.getRegisteredPrototype(b),e=this.generateB
asePrototype(c);this.desugarBeforeChaining(d,e),this.prototype=this.chainPrototy
pes(d,e),this.desugarAfterChaining(b,c)},desugarBeforeChaining:function(a,b){a.e
lement=this,this.publishAttributes(a,b),this.publishProperties(a,b),this.inferOb
servers(a),this.explodeObservers(a)},chainPrototypes:function(a,c){this.inheritM
etaData(a,c);var d=this.chainObject(a,c);return b(d),d},inheritMetaData:function
(a,b){this.inheritObject("observe",a,b),this.inheritObject("publish",a,b),this.i
nheritObject("reflect",a,b),this.inheritObject("_publishLC",a,b),this.inheritObj
ect("_instanceAttributes",a,b),this.inheritObject("eventDelegates",a,b)},desugar
AfterChaining:function(a,b){this.optimizePropertyMaps(this.prototype),this.creat
ePropertyAccessors(this.prototype),this.installBindingDelegate(this.fetchTemplat
e()),this.installSheets(),this.resolveElementPaths(this),this.accumulateInstance
Attributes(),this.parseHostEvents(),this.addResolvePathApi(),f&&Platform.ShadowC
SS.shimStyling(this.templateContent(),a,b),this.prototype.registerCallback&&this
.prototype.registerCallback(this)},publishConstructor:function(){var a=this.getA
ttribute("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),h[a]=b}return b},findBasePrototype:function(a){return
h[a]},ensureBaseApi:function(a){if(a.PolymerBase)return a;var b=Object.create(a
);return c.publish(c.instance,b),this.mixinMethod(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(this,arguments)}},inheritObject:f
unction(a,b,c){var d=b[a]||{};b[a]=this.chainObject(d,c[a])},registerPrototype:f
unction(a,b){var c={prototype:this.prototype},d=this.findTypeExtension(b);d&&(c.
extends=d),HTMLElement.register(a,this.prototype),this.ctor=document.registerEle
ment(a,c)},findTypeExtension:function(a){if(a&&a.indexOf("-")<0)return a;var b=t
his.findBasePrototype(a);return b.element?this.findTypeExtension(b.element.exten
ds):void 0}},h={};g.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=g}(Polymer),function(a){function b(a){retu
rn document.contains(a)?j:i}function c(){return i.length?i[0]:j[0]}function d(a)
{f.waitToReady=!0,Platform.endOfMicrotask(function(){HTMLImports.whenReady(funct
ion(){f.addReadyCallback(a),f.waitToReady=!1,f.check()})})}function e(a){if(void
0===a)return void f.ready();var b=setTimeout(function(){f.ready()},a);Polymer.w
henReady(function(){clearTimeout(b)})}var f={wait:function(a){a.__queue||(a.__qu
eue={},g.push(a))},enqueue:function(a,c,d){var e=a.__queue&&!a.__queue.check;ret
urn e&&(b(a).push(a),a.__queue.check=c,a.__queue.go=d),0!==this.indexOf(a)},inde
xOf:function(a){var c=b(a).indexOf(a);return c>=0&&document.contains(a)&&(c+=HTM
LImports.useNative||HTMLImports.ready?i.length:1e9),c},go:function(a){var b=this
.remove(a);b&&(a.__queue.flushable=!0,this.addToFlushQueue(b),this.check())},rem
ove:function(a){var c=this.indexOf(a);if(0===c)return b(a).shift()},check:functi
on(){var a=this.nextElement();return a&&a.__queue.check.call(a),this.canReady()?
(this.ready(),!0):void 0},nextElement:function(){return c()},canReady:function()
{return!this.waitToReady&&this.isEmpty()},isEmpty:function(){for(var a,b=0,c=g.l
ength;c>b&&(a=g[b]);b++)if(a.__queue&&!a.__queue.flushable)return;return!0},addT
oFlushQueue:function(a){h.push(a)},flush:function(){if(!this.flushing){this.flus
hing=!0;for(var a;h.length;)a=h.shift(),a.__queue.go.call(a),a.__queue=null;this
.flushing=!1}},ready:function(){var a=CustomElements.ready;CustomElements.ready=
!1,this.flush(),CustomElements.useNative||CustomElements.upgradeDocumentTree(doc
ument),CustomElements.ready=a,Platform.flush(),requestAnimationFrame(this.flushR
eadyCallbacks)},addReadyCallback:function(a){a&&k.push(a)},flushReadyCallbacks:f
unction(){if(k)for(var a;k.length;)(a=k.shift())()},waitingFor:function(){for(va
r a,b=[],c=0,d=g.length;d>c&&(a=g[c]);c++)a.__queue&&!a.__queue.flushable&&b.pus
h(a);return b},waitToReady:!0},g=[],h=[],i=[],j=[],k=[];a.elements=g,a.waitingFo
r=f.waitingFor.bind(f),a.forceReady=e,a.queue=f,a.whenReady=a.whenPolymerReady=d
}(Polymer),function(a){function b(a){return Boolean(HTMLElement.getPrototypeForT
ag(a))}function c(a){return a&&a.indexOf("-")>=0}var d=a.extend,e=a.api,f=a.queu
e,g=a.whenReady,h=a.getRegisteredPrototype,i=a.waitingForPrototype,j=d(Object.cr
eate(HTMLElement.prototype),{createdCallback:function(){this.getAttribute("name"
)&&this.init()},init:function(){this.name=this.getAttribute("name"),this.extends
=this.getAttribute("extends"),f.wait(this),this.loadResources(),this.registerWhe
nReady()},registerWhenReady:function(){this.registered||this.waitingForPrototype
(this.name)||this.waitingForQueue()||this.waitingForResources()||f.go(this)},_re
gister:function(){c(this.extends)&&!b(this.extends)&&console.warn("%s is attempt
ing to extend %s, an unregistered element or one that was not registered with Po
lymer.",this.name,this.extends),this.register(this.name,this.extends),this.regis
tered=!0},waitingForPrototype:function(a){return h(a)?void 0:(i(a,this),this.han
dleNoScript(a),!0)},handleNoScript:function(a){this.hasAttribute("noscript")&&!t
his.noscript&&(this.noscript=!0,Polymer(a))},waitingForResources:function(){retu
rn this._needsResources},waitingForQueue:function(){return f.enqueue(this,this.r
egisterWhenReady,this._register)},loadResources:function(){this._needsResources=
!0,this.loadStyles(function(){this._needsResources=!1,this.registerWhenReady()}.
bind(this))}});e.publish(e.declaration,j),g(function(){document.body.removeAttri
bute("unresolved"),document.dispatchEvent(new CustomEvent("polymer-ready",{bubbl
es:!0}))}),document.registerElement("polymer-element",{prototype:j})}(Polymer),f
unction(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.createDocumentFragment(),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.whenPolymerReady;a.import=c,a.impo
rtElements=b}(Polymer),function(){var a=document.createElement("polymer-element"
);a.setAttribute("name","auto-binding"),a.setAttribute("extends","template"),a.i
nit(),Polymer("auto-binding",{createdCallback:function(){this.syntax=this.bindin
gDelegate=this.makeSyntax(),Polymer.whenPolymerReady(function(){this.model=this,
this.setAttribute("bind",""),this.async(function(){this.marshalNodeReferences(th
is.parentNode),this.fire("template-bound")})}.bind(this))},makeSyntax:function()
{var a=Object.create(Polymer.api.declaration.events),b=this;a.findController=fun
ction(){return b.model};var c=new PolymerExpressions,d=c.prepareBinding;return c
.prepareBinding=function(b,e,f){return a.prepareEventBinding(b,e,f)||d.call(c,b,
e,f)},c}})}(); |
16 //# sourceMappingURL=polymer.js.map | 16 //# sourceMappingURL=polymer.js.map |
OLD | NEW |