OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Polymer Authors. All rights reserved. |
| 2 // |
| 3 // Redistribution and use in source and binary forms, with or without |
| 4 // modification, are permitted provided that the following conditions are |
| 5 // met: |
| 6 // |
| 7 // * Redistributions of source code must retain the above copyright |
| 8 // notice, this list of conditions and the following disclaimer. |
| 9 // * Redistributions in binary form must reproduce the above |
| 10 // copyright notice, this list of conditions and the following disclaimer |
| 11 // in the documentation and/or other materials provided with the |
| 12 // distribution. |
| 13 // * Neither the name of Google Inc. nor the names of its |
| 14 // contributors may be used to endorse or promote products derived from |
| 15 // this software without specific prior written permission. |
| 16 // |
| 17 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 18 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 19 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 20 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 21 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 22 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 23 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 24 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 25 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 27 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 // @version: 0.1.4-3d161da |
| 29 function PointerGestureEvent(a,b){var c=b||{},d=document.createEvent("Event"),e=
{bubbles:Boolean(c.bubbles)===c.bubbles||!0,cancelable:Boolean(c.cancelable)===c
.cancelable||!0};d.initEvent(a,e.bubbles,e.cancelable);for(var f,g=Object.keys(c
),h=0;h<g.length;h++)f=g[h],d[f]=c[f];return d.preventTap=this.preventTap,d}"und
efined"==typeof WeakMap&&!function(){var a=Object.defineProperty,b=Date.now()%1e
9,c=function(){this.name="__st"+(1e9*Math.random()>>>0)+(b++ +"__")};c.prototype
={set:function(b,c){var d=b[this.name];d&&d[0]===b?d[1]=c:a(b,this.name,{value:[
b,c],writable:!0})},get:function(a){var b;return(b=a[this.name])&&b[0]===a?b[1]:
void 0},"delete":function(a){this.set(a,void 0)}},window.WeakMap=c}(),function(a
){"use strict";function b(){function a(a){b=a}if("function"!=typeof Object.obser
ve||"function"!=typeof Array.observe)return!1;var b=[],c={};if(Object.observe(c,
a),c.id=1,c.id=2,delete c.id,Object.deliverChangeRecords(a),3!==b.length)return!
1;if("new"==b[0].type&&"updated"==b[1].type&&"deleted"==b[2].type)L="new",M="upd
ated",N="reconfigured",O="deleted";else if("add"!=b[0].type||"update"!=b[1].type
||"delete"!=b[2].type)return console.error("Unexpected change record names for O
bject.observe. Using dirty-checking instead"),!1;return Object.unobserve(c,a),c=
[0],Array.observe(c,a),c[1]=1,c.length=0,Object.deliverChangeRecords(a),2!=b.len
gth?!1:b[0].type!=P||b[1].type!=P?!1:(Array.unobserve(c,a),!0)}function c(){if(a
.document&&"securityPolicy"in a.document&&!a.document.securityPolicy.allowsEval)
return!1;try{var b=new Function("","return true;");return b()}catch(c){return!1}
}function d(a){return+a===a>>>0}function e(a){return+a}function f(a){return a===
Object(a)}function g(a,b){return a===b?0!==a||1/a===1/b:S(a)&&S(b)?!0:a!==a&&b!=
=b}function h(a){return"string"!=typeof a?!1:(a=a.trim(),""==a?!0:"."==a[0]?!1:$
.test(a))}function i(a,b){if(b!==_)throw Error("Use Path.get to retrieve path ob
jects");return""==a.trim()?this:d(a)?(this.push(a),this):(a.split(/\s*\.\s*/).fi
lter(function(a){return a}).forEach(function(a){this.push(a)},this),void(R&&this
.length&&(this.getValueFrom=this.compiledGetValueFromFn())))}function j(a){if(a
instanceof i)return a;null==a&&(a=""),"string"!=typeof a&&(a=String(a));var b=ab
[a];if(b)return b;if(!h(a))return bb;var b=new i(a,_);return ab[a]=b,b}function
k(b){for(var c=0;db>c&&b.check_();)c++;return a.testingExposeCycleCount&&(a.dirt
yCheckCycleCount=c),c>0}function l(a){for(var b in a)return!1;return!0}function
m(a){return l(a.added)&&l(a.removed)&&l(a.changed)}function n(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.l
ength!==b.length&&(e.length=a.length),{added:c,removed:d,changed:e}}function o()
{if(!eb.length)return!1;for(var a=0;a<eb.length;a++)eb[a]();return eb.length=0,!
0}function p(){function a(a){b&&b.state_===kb&&!d&&b.check_(a)}var b,c,d=!1,e=!0
;return{open:function(c){if(b)throw Error("ObservedObject in use");e||Object.del
iverChangeRecords(a),b=c,e=!1},observe:function(b,d){c=b,d?Array.observe(c,a):Ob
ject.observe(c,a)},deliver:function(b){d=b,Object.deliverChangeRecords(a),d=!1},
close:function(){b=void 0,Object.unobserve(c,a),gb.push(this)}}}function q(a,b,c
){var d=gb.pop()||p();return d.open(a),d.observe(b,c),d}function r(){function a(
b){if(f(b)){var c=i.indexOf(b);c>=0?(i[c]=void 0,h.push(b)):h.indexOf(b)<0&&(h.p
ush(b),Object.observe(b,d)),a(Object.getPrototypeOf(b))}}function b(){if(k=!1,j)
{var b=i===hb?[]:i;i=h,h=b;var c;for(var f in e)c=e[f],c&&c.state_==kb&&c.iterat
eObjects_(a);for(var g=0;g<i.length;g++){var l=i[g];l&&Object.unobserve(l,d)}i.l
ength=0}}function c(){k||(j=!0,k=!0,fb(b))}function d(){var a;for(var b in e)a=e
[b],a&&a.state_==kb&&a.check_();c()}var e=[],g=0,h=[],i=hb,j=!1,k=!1,l={object:v
oid 0,objects:h,open:function(b){e[b.id_]=b,g++,b.iterateObjects_(a)},close:func
tion(a){if(e[a.id_]=void 0,g--,g)return void c();j=!1;for(var b=0;b<h.length;b++
)Object.unobserve(h[b],d),t.unobservedCount++;e.length=0,h.length=0,ib.push(this
)},reset:c};return l}function s(a,b){return cb&&cb.object===b||(cb=ib.pop()||r()
,cb.object=b),cb.open(a),cb}function t(){this.state_=jb,this.callback_=void 0,th
is.target_=void 0,this.directObserver_=void 0,this.value_=void 0,this.id_=nb++}f
unction u(a){t._allObserversCount++,pb&&ob.push(a)}function v(){t._allObserversC
ount--}function w(a){t.call(this),this.value_=a,this.oldObject_=void 0}function
x(a){if(!Array.isArray(a))throw Error("Provided object is not an Array");w.call(
this,a)}function y(a,b){t.call(this),this.object_=a,this.path_=b instanceof i?b:
j(b),this.directObserver_=void 0}function z(){t.call(this),this.value_=[],this.d
irectObserver_=void 0,this.observed_=[]}function A(a){return a}function B(a,b,c,
d){this.callback_=void 0,this.target_=void 0,this.value_=void 0,this.observable_
=a,this.getValueFn_=b||A,this.setValueFn_=c||A,this.dontPassThroughSet_=d}functi
on C(a,b){if("function"==typeof Object.observe){var c=Object.getNotifier(a);retu
rn function(d,e){var f={object:a,type:d,name:b};2===arguments.length&&(f.oldValu
e=e),c.notify(f)}}}function D(a,b,c){for(var d={},e={},f=0;f<b.length;f++){var g
=b[f];tb[g.type]?(g.name in c||(c[g.name]=g.oldValue),g.type!=M&&(g.type!=L?g.na
me 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),consol
e.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,remov
ed:e,changed:i}}function E(a,b,c){return{index:a,removed:b,addedCount:c}}functio
n F(){}function G(a,b,c,d,e,f){return yb.calcSplices(a,b,c,d,e,f)}function H(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 I(a,b
,c,d){for(var e=E(b,c,d),f=!1,g=0,h=0;h<a.length;h++){var i=a[h];if(i.index+=g,!
f){var j=H(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.length-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.pu
sh.apply(l,c),c=l}if(e.index+e.removed.length>i.index+i.addedCount){var m=e.remo
ved.slice(i.index+i.addedCount-e.index);Array.prototype.push.apply(c,m)}e.remove
d=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.pu
sh(e)}function J(a,b){for(var c=[],f=0;f<b.length;f++){var g=b[f];switch(g.type)
{case P:I(c,g.index,g.removed.slice(),g.addedCount);break;case L:case M:case O:i
f(!d(g.name))continue;var h=e(g.name);if(0>h)continue;I(c,h,[g.oldValue],1);brea
k;default:console.error("Unexpected record type: "+JSON.stringify(g))}}return c}
function K(a,b){var c=[];return J(a,b).forEach(function(b){return 1==b.addedCoun
t&&1==b.removed.length?void(b.removed[0]!==a[b.index]&&c.push(b)):void(c=c.conca
t(G(a,b.index,b.index+b.addedCount,b.removed,0,b.removed.length)))}),c}var L="ad
d",M="update",N="reconfigure",O="delete",P="splice",Q=b(),R=c(),S=a.Number.isNaN
||function(b){return"number"==typeof b&&a.isNaN(b)},T="__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},U="[$_a-zA-Z]",V="[$_a-zA-Z0-9]",W
=U+"+"+V+"*",X="(?:[0-9]|[1-9]+[0-9]+)",Y="(?:"+W+"|"+X+")",Z="(?:"+Y+")(?:\\s*\
\.\\s*"+Y+")*",$=new RegExp("^"+Z+"$"),_={},ab={};i.get=j,i.prototype=T({__proto
__:[],valid:!0,toString:function(){return this.join(".")},getValueFrom:function(
a){for(var b=0;b<this.length;b++){if(null==a)return;a=a[this[b]]}return a},itera
teObjects:function(a,b){for(var c=0;c<this.length;c++){if(c&&(a=a[this[c-1]]),!a
)return;b(a)}},compiledGetValueFromFn:function(){var a=this.map(function(a){retu
rn d(a)?'["'+a+'"]':"."+a}),b="",c="obj";b+="if (obj != null";for(var e=0;e<this
.length-1;e++){{this[e]}c+=a[e],b+=" &&\n "+c+" != null"}return b+=")\n",c+=
a[e],b+=" return "+c+";\nelse\n return undefined;",new Function("obj",b)},setV
alueFrom: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 bb=new i
("",_);bb.valid=!1,bb.getValueFrom=bb.setValueFrom=function(){};var cb,db=1e3,eb
=[],fb=Q?function(){var a={pingPong:!0},b=!1;return Object.observe(a,function(){
o(),b=!1}),function(c){eb.push(c),b||(b=!0,a.pingPong=!a.pingPong)}}():function(
){return function(a){eb.push(a)}}(),gb=[],hb=[],ib=[],jb=0,kb=1,lb=2,mb=3,nb=1;t
.prototype={open:function(a,b){if(this.state_!=jb)throw Error("Observer has alre
ady been opened.");return u(this),this.callback_=a,this.target_=b,this.state_=kb
,this.connect_(),this.value_},close:function(){this.state_==kb&&(v(this),this.st
ate_=lb,this.disconnect_(),this.value_=void 0,this.callback_=void 0,this.target_
=void 0)},deliver:function(){this.state_==kb&&k(this)},report_:function(a){try{t
his.callback_.apply(this.target_,a)}catch(b){t._errorThrownDuringCallback=!0,con
sole.error("Exception caught during observer callback: "+(b.stack||b))}},discard
Changes:function(){return this.check_(void 0,!0),this.value_}};var ob,pb=!Q;t._a
llObserversCount=0,pb&&(ob=[]);var qb=!1,rb="function"==typeof Object.deliverAll
ChangeRecords;a.Platform=a.Platform||{},a.Platform.performMicrotaskCheckpoint=fu
nction(){if(!qb){if(rb)return void Object.deliverAllChangeRecords();if(pb){qb=!0
;var b,c,d=0;do{d++,c=ob,ob=[],b=!1;for(var e=0;e<c.length;e++){var f=c[e];f.sta
te_==kb&&(f.check_()&&(b=!0),ob.push(f))}o()&&(b=!0)}while(db>d&&b);a.testingExp
oseCycleCount&&(a.dirtyCheckCycleCount=d),qb=!1}}},pb&&(a.Platform.clearObserver
s=function(){ob=[]}),w.prototype=T({__proto__:t.prototype,arrayObserve:!1,connec
t_:function(){Q?this.directObserver_=q(this,this.value_,this.arrayObserve):this.
oldObject_=this.copyObject(this.value_)},copyObject:function(a){var b=Array.isAr
ray(a)?[]:{};for(var c in a)b[c]=a[c];return Array.isArray(a)&&(b.length=a.lengt
h),b},check_:function(a){var b,c;if(Q){if(!a)return!1;c={},b=D(this.value_,a,c)}
else c=this.oldObject_,b=n(this.value_,this.oldObject_);return m(b)?!1:(Q||(this
.oldObject_=this.copyObject(this.value_)),this.report_([b.added||{},b.removed||{
},b.changed||{},function(a){return c[a]}]),!0)},disconnect_:function(){Q?(this.d
irectObserver_.close(),this.directObserver_=void 0):this.oldObject_=void 0},deli
ver:function(){this.state_==kb&&(Q?this.directObserver_.deliver(!1):k(this))},di
scardChanges:function(){return this.directObserver_?this.directObserver_.deliver
(!0):this.oldObject_=this.copyObject(this.value_),this.value_}}),x.prototype=T({
__proto__:w.prototype,arrayObserve:!0,copyObject:function(a){return a.slice()},c
heck_:function(a){var b;if(Q){if(!a)return!1;b=K(this.value_,a)}else b=G(this.va
lue_,0,this.value_.length,this.oldObject_,0,this.oldObject_.length);return b&&b.
length?(Q||(this.oldObject_=this.copyObject(this.value_)),this.report_([b]),!0):
!1}}),x.applySplices=function(a,b,c){c.forEach(function(c){for(var d=[c.index,c.
removed.length],e=c.index;e<c.index+c.addedCount;)d.push(b[e]),e++;Array.prototy
pe.splice.apply(a,d)})},y.prototype=T({__proto__:t.prototype,connect_:function()
{Q&&(this.directObserver_=s(this,this.object_)),this.check_(void 0,!0)},disconne
ct_:function(){this.value_=void 0,this.directObserver_&&(this.directObserver_.cl
ose(this),this.directObserver_=void 0)},iterateObjects_:function(a){this.path_.i
terateObjects(this.object_,a)},check_:function(a,b){var c=this.value_;return thi
s.value_=this.path_.getValueFrom(this.object_),b||g(this.value_,c)?!1:(this.repo
rt_([this.value_,c]),!0)},setValue:function(a){this.path_&&this.path_.setValueFr
om(this.object_,a)}});var sb={};z.prototype=T({__proto__:t.prototype,connect_:fu
nction(){if(this.check_(void 0,!0),Q){for(var a,b=!1,c=0;c<this.observed_.length
;c+=2)if(a=this.observed_[c],a!==sb){b=!0;break}return this.directObserver_?b?vo
id this.directObserver_.reset():(this.directObserver_.close(),void(this.directOb
server_=void 0)):void(b&&(this.directObserver_=s(this,a)))}},closeObservers_:fun
ction(){for(var a=0;a<this.observed_.length;a+=2)this.observed_[a]===sb&&this.ob
served_[a+1].close();this.observed_.length=0},disconnect_:function(){this.value_
=void 0,this.directObserver_&&(this.directObserver_.close(this),this.directObser
ver_=void 0),this.closeObservers_()},addPath:function(a,b){if(this.state_!=jb&&t
his.state_!=mb)throw Error("Cannot add paths once started.");this.observed_.push
(a,b instanceof i?b:j(b))},addObserver:function(a){if(this.state_!=jb&&this.stat
e_!=mb)throw Error("Cannot add observers once started.");a.open(this.deliver,thi
s),this.observed_.push(sb,a)},startReset:function(){if(this.state_!=kb)throw Err
or("Can only reset while open");this.state_=mb,this.closeObservers_()},finishRes
et:function(){if(this.state_!=mb)throw Error("Can only finishReset after startRe
set");return this.state_=kb,this.connect_(),this.value_},iterateObjects_:functio
n(a){for(var b,c=0;c<this.observed_.length;c+=2)b=this.observed_[c],b!==sb&&this
.observed_[c+1].iterateObjects(b,a)},check_:function(a,b){for(var c,d=0;d<this.o
bserved_.length;d+=2){var e=this.observed_[d+1],f=this.observed_[d],h=f===sb?e.d
iscardChanges():e.getValueFrom(f);b?this.value_[d/2]=h:g(h,this.value_[d/2])||(c
=c||[],c[d/2]=this.value_[d/2],this.value_[d/2]=h)}return c?(this.report_([this.
value_,c,this.observed_]),!0):!1}}),B.prototype={open:function(a,b){return this.
callback_=a,this.target_=b,this.value_=this.getValueFn_(this.observable_.open(th
is.observedCallback_,this)),this.value_},observedCallback_:function(a){if(a=this
.getValueFn_(a),!g(a,this.value_)){var b=this.value_;this.value_=a,this.callback
_.call(this.target_,this.value_,b)}},discardChanges:function(){return this.value
_=this.getValueFn_(this.observable_.discardChanges()),this.value_},deliver:funct
ion(){return this.observable_.deliver()},setValue:function(a){return a=this.setV
alueFn_(a),!this.dontPassThroughSet_&&this.observable_.setValue?this.observable_
.setValue(a):void 0},close:function(){this.observable_&&this.observable_.close()
,this.callback_=void 0,this.target_=void 0,this.observable_=void 0,this.value_=v
oid 0,this.getValueFn_=void 0,this.setValueFn_=void 0}};var tb={};tb[L]=!0,tb[M]
=!0,tb[O]=!0,t.defineComputedProperty=function(a,b,c){var d=C(a,b),e=c.open(func
tion(a,b){e=a,d&&d(M,b)});return Object.defineProperty(a,b,{get:function(){retur
n c.deliver(),e},set:function(a){return c.setValue(a),a},configurable:!0}),{clos
e:function(){c.close(),Object.defineProperty(a,b,{value:e,writable:!0,configurab
le:!0})}}};var ub=0,vb=1,wb=2,xb=3;F.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){v
ar 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.pu
sh(ub):(e.push(vb),d=g),b--,c--):f==h?(e.push(xb),b--,d=h):(e.push(wb),c--,d=i)}
else e.push(xb),b--;else e.push(wb),c--;return e.reverse(),e},calcSplices:functi
on(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.sharedPre
fix(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=E(b,[],0);f>e;)j.removed.pus
h(d[e++]);return[j]}if(e==f)return[E(b,[],c-b)];for(var k=this.spliceOperationsF
romEditDistances(this.calcEditDistances(a,b,c,d,e,f)),j=void 0,l=[],m=b,n=e,o=0;
o<k.length;o++)switch(k[o]){case ub:j&&(l.push(j),j=void 0),m++,n++;break;case v
b:j||(j=E(m,[],0)),j.addedCount++,m++,j.removed.push(d[n]),n++;break;case wb:j||
(j=E(m,[],0)),j.addedCount++,m++;break;case xb:j||(j=E(m,[],0)),j.removed.push(d
[n]),n++}return j&&l.push(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.length,f=0;c>f&&this.equals(a[--d],b[--e]);)f++;return f},cal
culateSplices:function(a,b){return this.calcSplices(a,0,a.length,b,0,b.length)},
equals:function(a,b){return a===b}};var yb=new F;a.Observer=t,a.Observer.runEOM_
=fb,a.Observer.hasObjectObserve=Q,a.ArrayObserver=x,a.ArrayObserver.calculateSpl
ices=function(a,b){return yb.calculateSplices(a,b)},a.ArraySplice=F,a.ObjectObse
rver=w,a.PathObserver=y,a.CompoundObserver=z,a.Path=i,a.ObserverTransform=B,a.Ob
server.changeRecordTypes={add:L,update:M,reconfigure:N,"delete":O,splice:P}}("un
defined"!=typeof global&&global&&"undefined"!=typeof module&&module?global:this|
|window),window.Platform=window.Platform||{},window.logFlags=window.logFlags||{}
,function(a){var b=a.flags||{};location.search.slice(1).split("&").forEach(funct
ion(a){a=a.split("="),a[0]&&(b[a[0]]=a[1]||!0)});var c=document.currentScript||d
ocument.querySelector('script[src*="platform.js"]');if(c)for(var d,e=c.attribute
s,f=0;f<e.length;f++)d=e[f],"src"!==d.name&&(b[d.name]=d.value||!0);b.log&&b.log
.split(",").forEach(function(a){window.logFlags[a]=!0}),b.shadow=b.shadow||b.sha
dowdom||b.polyfill,b.shadow="native"===b.shadow?!1:b.shadow||!HTMLElement.protot
ype.createShadowRoot,b.register&&(window.CustomElements=window.CustomElements||{
flags:{}},window.CustomElements.flags.register=b.register),b.imports&&(window.HT
MLImports=window.HTMLImports||{flags:{}},window.HTMLImports.flags.imports=b.impo
rts),a.flags=b}(Platform),Platform.flags.shadow?(window.ShadowDOMPolyfill={},fun
ction(a){"use strict";function b(a){if(!a)throw new Error("Assertion failed")}fu
nction c(a,b){return L(b).forEach(function(c){K(a,c,M(b,c))}),a}function d(a,b){
return L(b).forEach(function(c){switch(c){case"arguments":case"caller":case"leng
th":case"name":case"prototype":case"toString":return}K(a,c,M(b,c))}),a}function
e(a,b){for(var c=0;c<b.length;c++)if(b[c]in a)return b[c]}function f(a){var b=a.
__proto__||Object.getPrototypeOf(a),c=E.get(b);if(c)return c;var d=f(b),e=t(d);r
eturn q(b,e,a),e}function g(a,b){o(a,b,!0)}function h(a,b){o(b,a,!1)}function i(
a){return/^on[a-z]+$/.test(a)}function j(a){return/^\w[a-zA-Z_0-9]*$/.test(a)}fu
nction k(a){return H&&j(a)?new Function("return this.impl."+a):function(){return
this.impl[a]}}function l(a){return H&&j(a)?new Function("v","this.impl."+a+" =
v"):function(b){this.impl[a]=b}}function m(a){return H&&j(a)?new Function("retur
n this.impl."+a+".apply(this.impl, arguments)"):function(){return this.impl[a].a
pply(this.impl,arguments)}}function n(a,b){try{return Object.getOwnPropertyDescr
iptor(a,b)}catch(c){return O}}function o(b,c,d){for(var e=L(b),f=0;f<e.length;f+
+){var g=e[f];if("polymerBlackList_"!==g&&!(g in c||b.polymerBlackList_&&b.polym
erBlackList_[g])){N&&b.__lookupGetter__(g);var h,j,o=n(b,g);if(d&&"function"==ty
peof o.value)c[g]=m(g);else{var p=i(g);h=p?a.getEventHandlerGetter(g):k(g),(o.wr
itable||o.set)&&(j=p?a.getEventHandlerSetter(g):l(g)),K(c,g,{get:h,set:j,configu
rable:o.configurable,enumerable:o.enumerable})}}}}function p(a,b,c){var e=a.prot
otype;q(e,b,c),d(b,a)}function q(a,c,d){var e=c.prototype;b(void 0===E.get(a)),E
.set(a,c),F.set(e,a),g(a,e),d&&h(e,d),K(e,"constructor",{value:c,configurable:!0
,enumerable:!1,writable:!0})}function r(a,b){return E.get(b.prototype)===a}funct
ion s(a){var b=Object.getPrototypeOf(a),c=f(b),d=t(c);return q(b,d,a),d}function
t(a){function b(b){a.call(this,b)}return b.prototype=Object.create(a.prototype)
,b.prototype.constructor=b,b}function u(a){return a instanceof G.EventTarget||a
instanceof G.Event||a instanceof G.Range||a instanceof G.DOMImplementation||a in
stanceof G.CanvasRenderingContext2D||G.WebGLRenderingContext&&a instanceof G.Web
GLRenderingContext}function v(a){return Q&&a instanceof Q||a instanceof S||a ins
tanceof R||a instanceof T||a instanceof U||a instanceof P||a instanceof V||W&&a
instanceof W||X&&a instanceof X}function w(a){return null===a?null:(b(v(a)),a.po
lymerWrapper_||(a.polymerWrapper_=new(f(a))(a)))}function x(a){return null===a?n
ull:(b(u(a)),a.impl)}function y(a){return a&&u(a)?x(a):a}function z(a){return a&
&!u(a)?w(a):a}function A(a,c){null!==c&&(b(v(a)),b(void 0===c||u(c)),a.polymerWr
apper_=c)}function B(a,b,c){K(a.prototype,b,{get:c,configurable:!0,enumerable:!0
})}function C(a,b){B(a,b,function(){return w(this.impl[b])})}function D(a,b){a.f
orEach(function(a){b.forEach(function(b){a.prototype[b]=function(){var a=z(this)
;return a[b].apply(a,arguments)}})})}var E=new WeakMap,F=new WeakMap,G=Object.cr
eate(null),H=!("securityPolicy"in document)||document.securityPolicy.allowsEval;
if(H)try{var I=new Function("","return true;");H=I()}catch(J){H=!1}var K=Object.
defineProperty,L=Object.getOwnPropertyNames,M=Object.getOwnPropertyDescriptor;L(
window);var N=/Firefox/.test(navigator.userAgent),O={get:function(){},set:functi
on(){},configurable:!0,enumerable:!0},P=window.DOMImplementation,Q=window.EventT
arget,R=window.Event,S=window.Node,T=window.Window,U=window.Range,V=window.Canva
sRenderingContext2D,W=window.WebGLRenderingContext,X=window.SVGElementInstance;a
.assert=b,a.constructorTable=E,a.defineGetter=B,a.defineWrapGetter=C,a.forwardMe
thodsToWrapper=D,a.isWrapper=u,a.isWrapperFor=r,a.mixin=c,a.nativePrototypeTable
=F,a.oneOf=e,a.registerObject=s,a.registerWrapper=p,a.rewrap=A,a.unwrap=x,a.unwr
apIfNeeded=y,a.wrap=w,a.wrapIfNeeded=z,a.wrappers=G}(window.ShadowDOMPolyfill),f
unction(a){"use strict";function b(){g=!1;var a=f.slice(0);f=[];for(var b=0;b<a.
length;b++)a[b]()}function c(a){f.push(a),g||(g=!0,d(b,0))}var d,e=window.Mutati
onObserver,f=[],g=!1;if(e){var h=1,i=new e(b),j=document.createTextNode(h);i.obs
erve(j,{characterData:!0}),d=function(){h=(h+1)%2,j.data=h}}else d=window.setImm
ediate||window.setTimeout;a.setEndOfMicrotask=c}(window.ShadowDOMPolyfill),funct
ion(a){"use strict";function b(){p||(k(c),p=!0)}function c(){p=!1;do for(var a=o
.slice(),b=!1,c=0;c<a.length;c++){var d=a[c],e=d.takeRecords();f(d),e.length&&(d
.callback_(e,d),b=!0)}while(b)}function d(a,b){this.type=a,this.target=b,this.ad
dedNodes=new m.NodeList,this.removedNodes=new m.NodeList,this.previousSibling=nu
ll,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,th
is.oldValue=null}function e(a,b){for(;a;a=a.parentNode){var c=n.get(a);if(c)for(
var d=0;d<c.length;d++){var e=c[d];e.options.subtree&&e.addTransientObserver(b)}
}}function f(a){for(var b=0;b<a.nodes_.length;b++){var c=a.nodes_[b],d=n.get(c);
if(!d)return;for(var e=0;e<d.length;e++){var f=d[e];f.observer===a&&f.removeTran
sientObservers()}}}function g(a,c,e){for(var f=Object.create(null),g=Object.crea
te(null),h=a;h;h=h.parentNode){var i=n.get(h);if(i)for(var j=0;j<i.length;j++){v
ar k=i[j],l=k.options;if((h===a||l.subtree)&&!("attributes"===c&&!l.attributes||
"attributes"===c&&l.attributeFilter&&(null!==e.namespace||-1===l.attributeFilter
.indexOf(e.name))||"characterData"===c&&!l.characterData||"childList"===c&&!l.ch
ildList)){var m=k.observer;f[m.uid_]=m,("attributes"===c&&l.attributeOldValue||"
characterData"===c&&l.characterDataOldValue)&&(g[m.uid_]=e.oldValue)}}}var o=!1;
for(var p in f){var m=f[p],q=new d(c,a);"name"in e&&"namespace"in e&&(q.attribut
eName=e.name,q.attributeNamespace=e.namespace),e.addedNodes&&(q.addedNodes=e.add
edNodes),e.removedNodes&&(q.removedNodes=e.removedNodes),e.previousSibling&&(q.p
reviousSibling=e.previousSibling),e.nextSibling&&(q.nextSibling=e.nextSibling),v
oid 0!==g[p]&&(q.oldValue=g[p]),m.records_.push(q),o=!0}o&&b()}function h(a){if(
this.childList=!!a.childList,this.subtree=!!a.subtree,this.attributes="attribute
s"in a||!("attributeOldValue"in a||"attributeFilter"in a)?!!a.attributes:!0,this
.characterData="characterDataOldValue"in a&&!("characterData"in a)?!0:!!a.charac
terData,!this.attributes&&(a.attributeOldValue||"attributeFilter"in a)||!this.ch
aracterData&&a.characterDataOldValue)throw new TypeError;if(this.characterData=!
!a.characterData,this.attributeOldValue=!!a.attributeOldValue,this.characterData
OldValue=!!a.characterDataOldValue,"attributeFilter"in a){if(null==a.attributeFi
lter||"object"!=typeof a.attributeFilter)throw new TypeError;this.attributeFilte
r=q.call(a.attributeFilter)}else this.attributeFilter=null}function i(a){this.ca
llback_=a,this.nodes_=[],this.records_=[],this.uid_=++r,o.push(this)}function j(
a,b,c){this.observer=a,this.target=b,this.options=c,this.transientObservedNodes=
[]}var k=a.setEndOfMicrotask,l=a.wrapIfNeeded,m=a.wrappers,n=new WeakMap,o=[],p=
!1,q=Array.prototype.slice,r=0;i.prototype={observe:function(a,b){a=l(a);var c,d
=new h(b),e=n.get(a);e||n.set(a,e=[]);for(var f=0;f<e.length;f++)e[f].observer==
=this&&(c=e[f],c.removeTransientObservers(),c.options=d);c||(c=new j(this,a,d),e
.push(c),this.nodes_.push(a))},disconnect:function(){this.nodes_.forEach(functio
n(a){for(var b=n.get(a),c=0;c<b.length;c++){var d=b[c];if(d.observer===this){b.s
plice(c,1);break}}},this),this.records_=[]},takeRecords:function(){var a=this.re
cords_;return this.records_=[],a}},j.prototype={addTransientObserver:function(a)
{if(a!==this.target){this.transientObservedNodes.push(a);var b=n.get(a);b||n.set
(a,b=[]),b.push(this)}},removeTransientObservers:function(){var a=this.transient
ObservedNodes;this.transientObservedNodes=[];for(var b=0;b<a.length;b++)for(var
c=a[b],d=n.get(c),e=0;e<d.length;e++)if(d[e]===this){d.splice(e,1);break}}},a.en
queueMutation=g,a.registerTransientObservers=e,a.wrappers.MutationObserver=i,a.w
rappers.MutationRecord=d}(window.ShadowDOMPolyfill),function(a){"use strict";fun
ction b(a){return a instanceof Q.ShadowRoot}function c(a){var b=a.localName;retu
rn"content"===b||"shadow"===b}function d(a){return!!a.shadowRoot}function e(a){v
ar b;return a.parentNode||(b=a.defaultView)&&P(b)||null}function f(f,g,h){if(h.l
ength)return h.shift();if(b(f))return j(f)||f.host;var i=a.eventParentsTable.get
(f);if(i){for(var k=1;k<i.length;k++)h[k-1]=i[k];return i[0]}if(g&&c(f)){var l=f
.parentNode;if(l&&d(l))for(var m=a.getShadowTrees(l),n=j(g),k=0;k<m.length;k++)i
f(m[k].contains(n))return n}return e(f)}function g(a){for(var d=[],e=a,g=[],i=[]
;e;){var j=null;if(c(e)){j=h(d);var k=d[d.length-1]||e;d.push(k)}else d.length||
d.push(e);var l=d[d.length-1];g.push({target:l,currentTarget:e}),b(e)&&d.pop(),e
=f(e,j,i)}return g}function h(a){for(var b=a.length-1;b>=0;b--)if(!c(a[b]))retur
n a[b];return null}function i(a,d){for(var e=[];a;){for(var g=[],i=d,j=void 0;i;
){var l=null;if(g.length){if(c(i)&&(l=h(g),k(j))){var n=g[g.length-1];g.push(n)}
}else g.push(i);if(m(i,a))return g[g.length-1];b(i)&&g.pop(),j=i,i=f(i,l,e)}a=b(
a)?a.host:a.parentNode}}function j(b){return a.insertionParentTable.get(b)}funct
ion k(a){return j(a)}function l(a){for(var b;b=a.parentNode;)a=b;return a}functi
on m(a,b){return l(a)===l(b)}function n(a,b){return a===b?!0:a instanceof Q.Shad
owRoot?n(l(a.host),b):!1}function o(a){return S.get(a)?void 0:(S.set(a,!0),p(P(a
),P(a.target)))}function p(b,c){if(T.get(b))throw new Error("InvalidStateError")
;T.set(b,!0),a.renderAllPending();var d=g(c);return"load"===b.type&&2===d.length
&&d[0].target instanceof Q.Document&&d.shift(),_.set(b,d),q(b,d)&&r(b,d)&&s(b,d)
,X.set(b,v.NONE),V.delete(b,null),T.delete(b),b.defaultPrevented}function q(a,b)
{for(var c,d=b.length-1;d>0;d--){var e=b[d].target,f=b[d].currentTarget;if(e!==f
&&(c=v.CAPTURING_PHASE,!t(b[d],a,c)))return!1}return!0}function r(a,b){var c=v.A
T_TARGET;return t(b[0],a,c)}function s(a,b){for(var c,d=a.bubbles,e=1;e<b.length
;e++){var f=b[e].target,g=b[e].currentTarget;if(f===g)c=v.AT_TARGET;else{if(!d||
Z.get(a))continue;c=v.BUBBLING_PHASE}if(!t(b[e],a,c))return}}function t(a,b,c){v
ar d=a.target,e=a.currentTarget,f=R.get(e);if(!f)return!0;if("relatedTarget"in b
){var g=O(b);if(g.relatedTarget){var h=P(g.relatedTarget),j=i(e,h);if(j===d)retu
rn!0;W.set(b,j)}}X.set(b,c);var k=b.type,l=!1;U.set(b,d),V.set(b,e);for(var m=0;
m<f.length;m++){var n=f[m];if(n.removed)l=!0;else if(!(n.type!==k||!n.capture&&c
===v.CAPTURING_PHASE||n.capture&&c===v.BUBBLING_PHASE))try{if("function"==typeof
n.handler?n.handler.call(e,b):n.handler.handleEvent(b),Z.get(b))return!1}catch(
o){window.onerror?window.onerror(o.message):console.error(o,o.stack)}}if(l){var
p=f.slice();f.length=0;for(var m=0;m<p.length;m++)p[m].removed||f.push(p[m])}ret
urn!Y.get(b)}function u(a,b,c){this.type=a,this.handler=b,this.capture=Boolean(c
)}function v(a,b){return a instanceof ab?void(this.impl=a):P(z(ab,"Event",a,b))}
function w(a){return a&&a.relatedTarget?Object.create(a,{relatedTarget:{value:O(
a.relatedTarget)}}):a}function x(a,b,c){var d=window[a],e=function(b,c){return b
instanceof d?void(this.impl=b):P(z(d,a,b,c))};if(e.prototype=Object.create(b.pr
ototype),c&&M(e.prototype,c),d)try{N(d,e,new d("temp"))}catch(f){N(d,e,document.
createEvent(a))}return e}function y(a,b){return function(){arguments[b]=O(argume
nts[b]);var c=O(this);c[a].apply(c,arguments)}}function z(a,b,c,d){if(jb)return
new a(c,w(d));var e=O(document.createEvent(b)),f=ib[b],g=[c];return Object.keys(
f).forEach(function(a){var b=null!=d&&a in d?d[a]:f[a];"relatedTarget"===a&&(b=O
(b)),g.push(b)}),e["init"+b].apply(e,g),e}function A(){v.call(this)}function B(a
){return"function"==typeof a?!0:a&&a.handleEvent}function C(a){switch(a){case"DO
MAttrModified":case"DOMAttributeNameChanged":case"DOMCharacterDataModified":case
"DOMElementNameChanged":case"DOMNodeInserted":case"DOMNodeInsertedIntoDocument":
case"DOMNodeRemoved":case"DOMNodeRemovedFromDocument":case"DOMSubtreeModified":r
eturn!0}return!1}function D(a){this.impl=a}function E(a){return a instanceof Q.S
hadowRoot&&(a=a.host),O(a)}function F(a,b){var c=R.get(a);if(c)for(var d=0;d<c.l
ength;d++)if(!c[d].removed&&c[d].type===b)return!0;return!1}function G(a,b){for(
var c=O(a);c;c=c.parentNode)if(F(P(c),b))return!0;return!1}function H(a){L(a,mb)
}function I(b,c,d,e){a.renderAllPending();for(var f=P(nb.call(c.impl,d,e)),h=g(f
,this),i=0;i<h.length;i++){var j=h[i];if(j.currentTarget===b)return j.target}ret
urn null}function J(a){return function(){var b=$.get(this);return b&&b[a]&&b[a].
value||null}}function K(a){var b=a.slice(2);return function(c){var d=$.get(this)
;d||(d=Object.create(null),$.set(this,d));var e=d[a];if(e&&this.removeEventListe
ner(b,e.wrapped,!1),"function"==typeof c){var f=function(b){var d=c.call(this,b)
;d===!1?b.preventDefault():"onbeforeunload"===a&&"string"==typeof d&&(b.returnVa
lue=d)};this.addEventListener(b,f,!1),d[a]={value:c,wrapped:f}}}}var L=a.forward
MethodsToWrapper,M=a.mixin,N=a.registerWrapper,O=a.unwrap,P=a.wrap,Q=a.wrappers,
R=(new WeakMap,new WeakMap),S=new WeakMap,T=new WeakMap,U=new WeakMap,V=new Weak
Map,W=new WeakMap,X=new WeakMap,Y=new WeakMap,Z=new WeakMap,$=new WeakMap,_=new
WeakMap;u.prototype={equals:function(a){return this.handler===a.handler&&this.ty
pe===a.type&&this.capture===a.capture},get removed(){return null===this.handler}
,remove:function(){this.handler=null}};var ab=window.Event;ab.prototype.polymerB
lackList_={returnValue:!0,keyLocation:!0},v.prototype={get target(){return U.get
(this)},get currentTarget(){return V.get(this)},get eventPhase(){return X.get(th
is)},get path(){var a=new Q.NodeList,b=_.get(this);if(b){for(var c=0,d=b.length-
1,e=l(V.get(this)),f=0;d>=f;f++){var g=b[f].currentTarget,h=l(g);n(e,h)&&(f!==d|
|g instanceof Q.Node)&&(a[c++]=g)}a.length=c}return a},stopPropagation:function(
){Y.set(this,!0)},stopImmediatePropagation:function(){Y.set(this,!0),Z.set(this,
!0)}},N(ab,v,document.createEvent("Event"));var bb=x("UIEvent",v),cb=x("CustomEv
ent",v),db={get relatedTarget(){return W.get(this)||P(O(this).relatedTarget)}},e
b=M({initMouseEvent:y("initMouseEvent",14)},db),fb=M({initFocusEvent:y("initFocu
sEvent",5)},db),gb=x("MouseEvent",bb,eb),hb=x("FocusEvent",bb,fb),ib=Object.crea
te(null),jb=function(){try{new window.FocusEvent("focus")}catch(a){return!1}retu
rn!0}();if(!jb){var kb=function(a,b,c){if(c){var d=ib[c];b=M(M({},d),b)}ib[a]=b}
; |
| 30 kb("Event",{bubbles:!1,cancelable:!1}),kb("CustomEvent",{detail:null},"Event"),k
b("UIEvent",{view:null,detail:0},"Event"),kb("MouseEvent",{screenX:0,screenY:0,c
lientX:0,clientY:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedT
arget:null},"UIEvent"),kb("FocusEvent",{relatedTarget:null},"UIEvent")}A.prototy
pe=Object.create(v.prototype),M(A.prototype,{get returnValue(){return this.impl.
returnValue},set returnValue(a){this.impl.returnValue=a}});var lb=window.EventTa
rget,mb=["addEventListener","removeEventListener","dispatchEvent"];[Node,Window]
.forEach(function(a){var b=a.prototype;mb.forEach(function(a){Object.definePrope
rty(b,a+"_",{value:b[a]})})}),D.prototype={addEventListener:function(a,b,c){if(B
(b)&&!C(a)){var d=new u(a,b,c),e=R.get(this);if(e){for(var f=0;f<e.length;f++)if
(d.equals(e[f]))return}else e=[],R.set(this,e);e.push(d);var g=E(this);g.addEven
tListener_(a,o,!0)}},removeEventListener:function(a,b,c){c=Boolean(c);var d=R.ge
t(this);if(d){for(var e=0,f=!1,g=0;g<d.length;g++)d[g].type===a&&d[g].capture===
c&&(e++,d[g].handler===b&&(f=!0,d[g].remove()));if(f&&1===e){var h=E(this);h.rem
oveEventListener_(a,o,!0)}}},dispatchEvent:function(b){var c=O(b),d=c.type;S.set
(c,!1),a.renderAllPending();var e;G(this,d)||(e=function(){},this.addEventListen
er(d,e,!0));try{return O(this).dispatchEvent_(c)}finally{e&&this.removeEventList
ener(d,e,!0)}}},lb&&N(lb,D);var nb=document.elementFromPoint;a.adjustRelatedTarg
et=i,a.elementFromPoint=I,a.getEventHandlerGetter=J,a.getEventHandlerSetter=K,a.
wrapEventTargetMethods=H,a.wrappers.BeforeUnloadEvent=A,a.wrappers.CustomEvent=c
b,a.wrappers.Event=v,a.wrappers.EventTarget=D,a.wrappers.FocusEvent=hb,a.wrapper
s.MouseEvent=gb,a.wrappers.UIEvent=bb}(window.ShadowDOMPolyfill),function(a){"us
e strict";function b(a,b){Object.defineProperty(a,b,{enumerable:!1})}function c(
){this.length=0,b(this,"length")}function d(a){if(null==a)return a;for(var b=new
c,d=0,e=a.length;e>d;d++)b[d]=f(a[d]);return b.length=e,b}function e(a,b){a.pro
totype[b]=function(){return d(this.impl[b].apply(this.impl,arguments))}}var f=a.
wrap;c.prototype={item:function(a){return this[a]}},b(c.prototype,"item"),a.wrap
pers.NodeList=c,a.addWrapNodeListMethod=e,a.wrapNodeList=d}(window.ShadowDOMPoly
fill),function(a){"use strict";function b(a){y(a instanceof v)}function c(a){var
b=new x;return b[0]=a,b.length=1,b}function d(a,b,c){A(b,"childList",{removedNo
des:c,previousSibling:a.previousSibling,nextSibling:a.nextSibling})}function e(a
,b){A(a,"childList",{removedNodes:b})}function f(a,b,d,e){if(a instanceof Docume
ntFragment){var f=h(a);J=!0;for(var g=f.length-1;g>=0;g--)a.removeChild(f[g]),f[
g].parentNode_=b;J=!1;for(var g=0;g<f.length;g++)f[g].previousSibling_=f[g-1]||d
,f[g].nextSibling_=f[g+1]||e;return d&&(d.nextSibling_=f[0]),e&&(e.previousSibli
ng_=f[f.length-1]),f}var f=c(a),i=a.parentNode;return i&&i.removeChild(a),a.pare
ntNode_=b,a.previousSibling_=d,a.nextSibling_=e,d&&(d.nextSibling_=a),e&&(e.prev
iousSibling_=a),f}function g(a){if(a instanceof DocumentFragment)return h(a);var
b=c(a),e=a.parentNode;return e&&d(a,e,b),b}function h(a){for(var b=new x,c=0,d=
a.firstChild;d;d=d.nextSibling)b[c++]=d;return b.length=c,e(a,b),b}function i(a)
{return a}function j(a){a.nodeIsInserted_()}function k(a){for(var b=0;b<a.length
;b++)j(a[b])}function l(){}function m(){}function n(a,b){var c=a.nodeType===v.DO
CUMENT_NODE?a:a.ownerDocument;c!==b.ownerDocument&&c.adoptNode(b)}function o(b,c
){if(c.length){var d=b.ownerDocument;if(d!==c[0].ownerDocument)for(var e=0;e<c.l
ength;e++)a.adoptNodeNoRemove(c[e],d)}}function p(a,b){o(a,b);var c=b.length;if(
1===c)return F(b[0]);for(var d=F(a.ownerDocument.createDocumentFragment()),e=0;c
>e;e++)d.appendChild(F(b[e]));return d}function q(a){if(void 0!==a.firstChild_)f
or(var b=a.firstChild_;b;){var c=b;b=b.nextSibling_,c.parentNode_=c.previousSibl
ing_=c.nextSibling_=void 0}a.firstChild_=a.lastChild_=void 0}function r(a){if(a.
invalidateShadowRenderer()){for(var b=a.firstChild;b;){y(b.parentNode===a);var c
=b.nextSibling,d=F(b),e=d.parentNode;e&&Q.call(e,d),b.previousSibling_=b.nextSib
ling_=b.parentNode_=null,b=c}a.firstChild_=a.lastChild_=null}else for(var c,f=F(
a),g=f.firstChild;g;)c=g.nextSibling,Q.call(f,g),g=c}function s(a){var b=a.paren
tNode;return b&&b.invalidateShadowRenderer()}function t(a){for(var b,c=0;c<a.len
gth;c++)b=a[c],b.parentNode.removeChild(b)}function u(a,b,c){var d;if(d=G(c?K.ca
ll(c,a.impl,!1):L.call(a.impl,!1)),b){for(var e=a.firstChild;e;e=e.nextSibling)d
.appendChild(u(e,!0,c));if(a instanceof I.HTMLTemplateElement)for(var f=d.conten
t,e=a.content.firstChild;e;e=e.nextSibling)f.appendChild(u(e,!0,c))}return d}fun
ction v(a){y(a instanceof M),w.call(this,a),this.parentNode_=void 0,this.firstCh
ild_=void 0,this.lastChild_=void 0,this.nextSibling_=void 0,this.previousSibling
_=void 0}var w=a.wrappers.EventTarget,x=a.wrappers.NodeList,y=a.assert,z=a.defin
eWrapGetter,A=a.enqueueMutation,B=a.isWrapper,C=a.mixin,D=a.registerTransientObs
ervers,E=a.registerWrapper,F=a.unwrap,G=a.wrap,H=a.wrapIfNeeded,I=a.wrappers,J=!
1,K=document.importNode,L=window.Node.prototype.cloneNode,M=window.Node,N=window
.DocumentFragment,O=(M.prototype.appendChild,M.prototype.compareDocumentPosition
),P=M.prototype.insertBefore,Q=M.prototype.removeChild,R=M.prototype.replaceChil
d,S=/Trident/.test(navigator.userAgent),T=S?function(a,b){try{Q.call(a,b)}catch(
c){if(!(a instanceof N))throw c}}:function(a,b){Q.call(a,b)};v.prototype=Object.
create(w.prototype),C(v.prototype,{appendChild:function(a){return this.insertBef
ore(a,null)},insertBefore:function(a,c){b(a);var d;c?B(c)?d=F(c):(d=c,c=G(d)):(c
=null,d=null),c&&y(c.parentNode===this);var e,h=c?c.previousSibling:this.lastChi
ld,i=!this.invalidateShadowRenderer()&&!s(a);if(e=i?g(a):f(a,this,h,c),i)n(this,
a),q(this),P.call(this.impl,F(a),d);else{h||(this.firstChild_=e[0]),c||(this.las
tChild_=e[e.length-1]);var j=d?d.parentNode:this.impl;j?P.call(j,p(this,e),d):o(
this,e)}return A(this,"childList",{addedNodes:e,nextSibling:c,previousSibling:h}
),k(e),a},removeChild:function(a){if(b(a),a.parentNode!==this){for(var d=!1,e=(t
his.childNodes,this.firstChild);e;e=e.nextSibling)if(e===a){d=!0;break}if(!d)thr
ow new Error("NotFoundError")}var f=F(a),g=a.nextSibling,h=a.previousSibling;if(
this.invalidateShadowRenderer()){var i=this.firstChild,j=this.lastChild,k=f.pare
ntNode;k&&T(k,f),i===a&&(this.firstChild_=g),j===a&&(this.lastChild_=h),h&&(h.ne
xtSibling_=g),g&&(g.previousSibling_=h),a.previousSibling_=a.nextSibling_=a.pare
ntNode_=void 0}else q(this),T(this.impl,f);return J||A(this,"childList",{removed
Nodes:c(a),nextSibling:g,previousSibling:h}),D(this,a),a},replaceChild:function(
a,d){b(a);var e;if(B(d)?e=F(d):(e=d,d=G(e)),d.parentNode!==this)throw new Error(
"NotFoundError");var h,i=d.nextSibling,j=d.previousSibling,m=!this.invalidateSha
dowRenderer()&&!s(a);return m?h=g(a):(i===a&&(i=a.nextSibling),h=f(a,this,j,i)),
m?(n(this,a),q(this),R.call(this.impl,F(a),e)):(this.firstChild===d&&(this.first
Child_=h[0]),this.lastChild===d&&(this.lastChild_=h[h.length-1]),d.previousSibli
ng_=d.nextSibling_=d.parentNode_=void 0,e.parentNode&&R.call(e.parentNode,p(this
,h),e)),A(this,"childList",{addedNodes:h,removedNodes:c(d),nextSibling:i,previou
sSibling:j}),l(d),k(h),d},nodeIsInserted_:function(){for(var a=this.firstChild;a
;a=a.nextSibling)a.nodeIsInserted_()},hasChildNodes:function(){return null!==thi
s.firstChild},get parentNode(){return void 0!==this.parentNode_?this.parentNode_
:G(this.impl.parentNode)},get firstChild(){return void 0!==this.firstChild_?this
.firstChild_:G(this.impl.firstChild)},get lastChild(){return void 0!==this.lastC
hild_?this.lastChild_:G(this.impl.lastChild)},get nextSibling(){return void 0!==
this.nextSibling_?this.nextSibling_:G(this.impl.nextSibling)},get previousSiblin
g(){return void 0!==this.previousSibling_?this.previousSibling_:G(this.impl.prev
iousSibling)},get parentElement(){for(var a=this.parentNode;a&&a.nodeType!==v.EL
EMENT_NODE;)a=a.parentNode;return a},get textContent(){for(var a="",b=this.first
Child;b;b=b.nextSibling)b.nodeType!=v.COMMENT_NODE&&(a+=b.textContent);return a}
,set textContent(a){var b=i(this.childNodes);if(this.invalidateShadowRenderer())
{if(r(this),""!==a){var c=this.impl.ownerDocument.createTextNode(a);this.appendC
hild(c)}}else q(this),this.impl.textContent=a;var d=i(this.childNodes);A(this,"c
hildList",{addedNodes:d,removedNodes:b}),m(b),k(d)},get childNodes(){for(var a=n
ew x,b=0,c=this.firstChild;c;c=c.nextSibling)a[b++]=c;return a.length=b,a},clone
Node:function(a){return u(this,a)},contains:function(a){if(!a)return!1;if(a=H(a)
,a===this)return!0;var b=a.parentNode;return b?this.contains(b):!1},compareDocum
entPosition:function(a){return O.call(this.impl,F(a))},normalize:function(){for(
var a,b,c=i(this.childNodes),d=[],e="",f=0;f<c.length;f++)b=c[f],b.nodeType===v.
TEXT_NODE?a||b.data.length?a?(e+=b.data,d.push(b)):a=b:this.removeNode(b):(a&&d.
length&&(a.data+=e,cleanUpNodes(d)),d=[],e="",a=null,b.childNodes.length&&b.norm
alize());a&&d.length&&(a.data+=e,t(d))}}),z(v,"ownerDocument"),E(M,v,document.cr
eateDocumentFragment()),delete v.prototype.querySelector,delete v.prototype.quer
ySelectorAll,v.prototype=C(Object.create(w.prototype),v.prototype),a.nodeWasAdde
d=j,a.nodeWasRemoved=l,a.nodesWereAdded=k,a.nodesWereRemoved=m,a.snapshotNodeLis
t=i,a.wrappers.Node=v,a.cloneNode=u}(window.ShadowDOMPolyfill),function(a){"use
strict";function b(a,c){for(var d,e=a.firstElementChild;e;){if(e.matches(c))retu
rn e;if(d=b(e,c))return d;e=e.nextElementSibling}return null}function c(a,b,d){f
or(var e=a.firstElementChild;e;)e.matches(b)&&(d[d.length++]=e),c(e,b,d),e=e.nex
tElementSibling;return d}var d={querySelector:function(a){return b(this,a)},quer
ySelectorAll:function(a){return c(this,a,new NodeList)}},e={getElementsByTagName
:function(a){return this.querySelectorAll(a)},getElementsByClassName:function(a)
{return this.querySelectorAll("."+a)},getElementsByTagNameNS:function(a,b){if("*
"===a)return this.getElementsByTagName(b);for(var c=new NodeList,d=this.getEleme
ntsByTagName(b),e=0,f=0;e<d.length;e++)d[e].namespaceURI===a&&(c[f++]=d[e]);retu
rn c.length=f,c}};a.GetElementsByInterface=e,a.SelectorsInterface=d}(window.Shad
owDOMPolyfill),function(a){"use strict";function b(a){for(;a&&a.nodeType!==Node.
ELEMENT_NODE;)a=a.nextSibling;return a}function c(a){for(;a&&a.nodeType!==Node.E
LEMENT_NODE;)a=a.previousSibling;return a}var d=a.wrappers.NodeList,e={get first
ElementChild(){return b(this.firstChild)},get lastElementChild(){return c(this.l
astChild)},get childElementCount(){for(var a=0,b=this.firstElementChild;b;b=b.ne
xtElementSibling)a++;return a},get children(){for(var a=new d,b=0,c=this.firstEl
ementChild;c;c=c.nextElementSibling)a[b++]=c;return a.length=b,a}},f={get nextEl
ementSibling(){return b(this.nextSibling)},get previousElementSibling(){return c
(this.previousSibling)}};a.ChildNodeInterface=f,a.ParentNodeInterface=e}(window.
ShadowDOMPolyfill),function(a){"use strict";function b(a){d.call(this,a)}var c=a
.ChildNodeInterface,d=a.wrappers.Node,e=a.enqueueMutation,f=a.mixin,g=a.register
Wrapper,h=window.CharacterData;b.prototype=Object.create(d.prototype),f(b.protot
ype,{get textContent(){return this.data},set textContent(a){this.data=a},get dat
a(){return this.impl.data},set data(a){var b=this.impl.data;e(this,"characterDat
a",{oldValue:b}),this.impl.data=a}}),f(b.prototype,c),g(h,b,document.createTextN
ode("")),a.wrappers.CharacterData=b}(window.ShadowDOMPolyfill),function(a){"use
strict";function b(a){return a>>>0}function c(a){d.call(this,a)}var d=a.wrappers
.CharacterData,e=(a.enqueueMutation,a.mixin),f=a.registerWrapper,g=window.Text;c
.prototype=Object.create(d.prototype),e(c.prototype,{splitText:function(a){a=b(a
);var c=this.data;if(a>c.length)throw new Error("IndexSizeError");var d=c.slice(
0,a),e=c.slice(a);this.data=d;var f=this.ownerDocument.createTextNode(e);return
this.parentNode&&this.parentNode.insertBefore(f,this.nextSibling),f}}),f(g,c,doc
ument.createTextNode("")),a.wrappers.Text=c}(window.ShadowDOMPolyfill),function(
a){"use strict";function b(b,c){var d=b.parentNode;if(d&&d.shadowRoot){var e=a.g
etRendererForHost(d);e.dependsOnAttribute(c)&&e.invalidate()}}function c(a,b,c){
k(a,"attributes",{name:b,namespace:null,oldValue:c})}function d(a){h.call(this,a
)}function e(a,c,d){var e=d||c;Object.defineProperty(a,c,{get:function(){return
this.impl[c]},set:function(a){this.impl[c]=a,b(this,e)},configurable:!0,enumerab
le:!0})}var f=a.ChildNodeInterface,g=a.GetElementsByInterface,h=a.wrappers.Node,
i=a.ParentNodeInterface,j=a.SelectorsInterface,k=(a.addWrapNodeListMethod,a.enqu
eueMutation),l=a.mixin,m=(a.oneOf,a.registerWrapper),n=a.wrappers,o=window.Eleme
nt,p=["matches","mozMatchesSelector","msMatchesSelector","webkitMatchesSelector"
].filter(function(a){return o.prototype[a]}),q=p[0],r=o.prototype[q];d.prototype
=Object.create(h.prototype),l(d.prototype,{createShadowRoot:function(){var b=new
n.ShadowRoot(this);this.impl.polymerShadowRoot_=b;var c=a.getRendererForHost(th
is);return c.invalidate(),b},get shadowRoot(){return this.impl.polymerShadowRoot
_||null},setAttribute:function(a,d){var e=this.impl.getAttribute(a);this.impl.se
tAttribute(a,d),c(this,a,e),b(this,a)},removeAttribute:function(a){var d=this.im
pl.getAttribute(a);this.impl.removeAttribute(a),c(this,a,d),b(this,a)},matches:f
unction(a){return r.call(this.impl,a)}}),p.forEach(function(a){"matches"!==a&&(d
.prototype[a]=function(a){return this.matches(a)})}),o.prototype.webkitCreateSha
dowRoot&&(d.prototype.webkitCreateShadowRoot=d.prototype.createShadowRoot),e(d.p
rototype,"id"),e(d.prototype,"className","class"),l(d.prototype,f),l(d.prototype
,g),l(d.prototype,i),l(d.prototype,j),m(o,d,document.createElementNS(null,"x")),
a.matchesNames=p,a.wrappers.Element=d}(window.ShadowDOMPolyfill),function(a){"us
e strict";function b(a){switch(a){case"&":return"&";case"<":return"<";cas
e">":return">";case'"':return""";case" ":return" "}}function c(a){r
eturn a.replace(z,b)}function d(a){return a.replace(A,b)}function e(a){for(var b
={},c=0;c<a.length;c++)b[a[c]]=!0;return b}function f(a,b){switch(a.nodeType){ca
se Node.ELEMENT_NODE:for(var e,f=a.tagName.toLowerCase(),h="<"+f,i=a.attributes,
j=0;e=i[j];j++)h+=" "+e.name+'="'+c(e.value)+'"';return h+=">",B[f]?h:h+g(a)+"</
"+f+">";case Node.TEXT_NODE:var k=a.data;return b&&C[b.localName]?k:d(k);case No
de.COMMENT_NODE:return"<!--"+a.data+"-->";default:throw console.error(a),new Err
or("not implemented")}}function g(a){a instanceof y.HTMLTemplateElement&&(a=a.co
ntent);for(var b="",c=a.firstChild;c;c=c.nextSibling)b+=f(c,a);return b}function
h(a,b,c){var d=c||"div";a.textContent="";var e=w(a.ownerDocument.createElement(
d));e.innerHTML=b;for(var f;f=e.firstChild;)a.appendChild(x(f))}function i(a){o.
call(this,a)}function j(a,b){var c=w(a.cloneNode(!1));c.innerHTML=b;for(var d,e=
w(document.createDocumentFragment());d=c.firstChild;)e.appendChild(d);return x(e
)}function k(b){return function(){return a.renderAllPending(),this.impl[b]}}func
tion l(a){p(i,a,k(a))}function m(b){Object.defineProperty(i.prototype,b,{get:k(b
),set:function(c){a.renderAllPending(),this.impl[b]=c},configurable:!0,enumerabl
e:!0})}function n(b){Object.defineProperty(i.prototype,b,{value:function(){retur
n a.renderAllPending(),this.impl[b].apply(this.impl,arguments)},configurable:!0,
enumerable:!0})}var o=a.wrappers.Element,p=a.defineGetter,q=a.enqueueMutation,r=
a.mixin,s=a.nodesWereAdded,t=a.nodesWereRemoved,u=a.registerWrapper,v=a.snapshot
NodeList,w=a.unwrap,x=a.wrap,y=a.wrappers,z=/[&\u00A0"]/g,A=/[&\u00A0<>]/g,B=e([
"area","base","br","col","command","embed","hr","img","input","keygen","link","m
eta","param","source","track","wbr"]),C=e(["style","script","xmp","iframe","noem
bed","noframes","plaintext","noscript"]),D=/MSIE/.test(navigator.userAgent),E=wi
ndow.HTMLElement,F=window.HTMLTemplateElement;i.prototype=Object.create(o.protot
ype),r(i.prototype,{get innerHTML(){return g(this)},set innerHTML(a){if(D&&C[thi
s.localName])return void(this.textContent=a);var b=v(this.childNodes);this.inval
idateShadowRenderer()?this instanceof y.HTMLTemplateElement?h(this.content,a):h(
this,a,this.tagName):!F&&this instanceof y.HTMLTemplateElement?h(this.content,a)
:this.impl.innerHTML=a;var c=v(this.childNodes);q(this,"childList",{addedNodes:c
,removedNodes:b}),t(b),s(c)},get outerHTML(){return f(this,this.parentNode)},set
outerHTML(a){var b=this.parentNode;if(b){b.invalidateShadowRenderer();var c=j(b
,a);b.replaceChild(c,this)}},insertAdjacentHTML:function(a,b){var c,d;switch(Str
ing(a).toLowerCase()){case"beforebegin":c=this.parentNode,d=this;break;case"afte
rend":c=this.parentNode,d=this.nextSibling;break;case"afterbegin":c=this,d=this.
firstChild;break;case"beforeend":c=this,d=null;break;default:return}var e=j(c,b)
;c.insertBefore(e,d)}}),["clientHeight","clientLeft","clientTop","clientWidth","
offsetHeight","offsetLeft","offsetTop","offsetWidth","scrollHeight","scrollWidth
"].forEach(l),["scrollLeft","scrollTop"].forEach(m),["getBoundingClientRect","ge
tClientRects","scrollIntoView"].forEach(n),u(E,i,document.createElement("b")),a.
wrappers.HTMLElement=i,a.getInnerHTML=g,a.setInnerHTML=h}(window.ShadowDOMPolyfi
ll),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLE
lement,d=a.mixin,e=a.registerWrapper,f=a.wrap,g=window.HTMLCanvasElement;b.proto
type=Object.create(c.prototype),d(b.prototype,{getContext:function(){var a=this.
impl.getContext.apply(this.impl,arguments);return a&&f(a)}}),e(g,b,document.crea
teElement("canvas")),a.wrappers.HTMLCanvasElement=b}(window.ShadowDOMPolyfill),f
unction(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElemen
t,d=a.mixin,e=a.registerWrapper,f=window.HTMLContentElement;b.prototype=Object.c
reate(c.prototype),d(b.prototype,{get select(){return this.getAttribute("select"
)},set select(a){this.setAttribute("select",a)},setAttribute:function(a,b){c.pro
totype.setAttribute.call(this,a,b),"select"===String(a).toLowerCase()&&this.inva
lidateShadowRenderer(!0)}}),f&&e(f,b),a.wrappers.HTMLContentElement=b}(window.Sh
adowDOMPolyfill),function(a){"use strict";function b(a){d.call(this,a)}function
c(a,b){if(!(this instanceof c))throw new TypeError("DOM object constructor canno
t be called as a function.");var e=f(document.createElement("img"));d.call(this,
e),g(e,this),void 0!==a&&(e.width=a),void 0!==b&&(e.height=b)}var d=a.wrappers.H
TMLElement,e=a.registerWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLImageElement;b
.prototype=Object.create(d.prototype),e(h,b,document.createElement("img")),c.pro
totype=b.prototype,a.wrappers.HTMLImageElement=b,a.wrappers.Image=c}(window.Shad
owDOMPolyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wra
ppers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=window.HTMLShadowElement;b.pro
totype=Object.create(c.prototype),d(b.prototype,{}),f&&e(f,b),a.wrappers.HTMLSha
dowElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){i
f(!a.defaultView)return a;var b=k.get(a);if(!b){for(b=a.implementation.createHTM
LDocument("");b.lastChild;)b.removeChild(b.lastChild);k.set(a,b)}return b}functi
on c(a){for(var c,d=b(a.ownerDocument),e=h(d.createDocumentFragment());c=a.first
Child;)e.appendChild(c);return e}function d(a){if(e.call(this,a),!l){var b=c(a);
j.set(this,i(b))}}var e=a.wrappers.HTMLElement,f=a.mixin,g=a.registerWrapper,h=a
.unwrap,i=a.wrap,j=new WeakMap,k=new WeakMap,l=window.HTMLTemplateElement;d.prot
otype=Object.create(e.prototype),f(d.prototype,{get content(){return l?i(this.im
pl.content):j.get(this)}}),l&&g(l,d),a.wrappers.HTMLTemplateElement=d}(window.Sh
adowDOMPolyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.w
rappers.HTMLElement,d=a.registerWrapper,e=window.HTMLMediaElement;b.prototype=Ob
ject.create(c.prototype),d(e,b,document.createElement("audio")),a.wrappers.HTMLM
ediaElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){
d.call(this,a)}function c(a){if(!(this instanceof c))throw new TypeError("DOM ob
ject constructor cannot be called as a function.");var b=f(document.createElemen
t("audio"));d.call(this,b),g(b,this),b.setAttribute("preload","auto"),void 0!==a
&&b.setAttribute("src",a)}var d=a.wrappers.HTMLMediaElement,e=a.registerWrapper,
f=a.unwrap,g=a.rewrap,h=window.HTMLAudioElement;b.prototype=Object.create(d.prot
otype),e(h,b,document.createElement("audio")),c.prototype=b.prototype,a.wrappers
.HTMLAudioElement=b,a.wrappers.Audio=c}(window.ShadowDOMPolyfill),function(a){"u
se strict";function b(a){return a.replace(/\s+/g," ").trim()}function c(a){e.cal
l(this,a)}function d(a,b,c,f){if(!(this instanceof d))throw new TypeError("DOM o
bject constructor cannot be called as a function.");var g=i(document.createEleme
nt("option"));e.call(this,g),h(g,this),void 0!==a&&(g.text=a),void 0!==b&&g.setA
ttribute("value",b),c===!0&&g.setAttribute("selected",""),g.selected=f===!0}var
e=a.wrappers.HTMLElement,f=a.mixin,g=a.registerWrapper,h=a.rewrap,i=a.unwrap,j=a
.wrap,k=window.HTMLOptionElement;c.prototype=Object.create(e.prototype),f(c.prot
otype,{get text(){return b(this.textContent)},set text(a){this.textContent=b(Str
ing(a))},get form(){return j(i(this).form)}}),g(k,c,document.createElement("opti
on")),d.prototype=c.prototype,a.wrappers.HTMLOptionElement=c,a.wrappers.Option=d
}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){switch(a.loca
lName){case"content":return new c(a);case"shadow":return new e(a);case"template"
:return new f(a)}d.call(this,a)}var c=a.wrappers.HTMLContentElement,d=a.wrappers
.HTMLElement,e=a.wrappers.HTMLShadowElement,f=a.wrappers.HTMLTemplateElement,g=(
a.mixin,a.registerWrapper),h=window.HTMLUnknownElement;b.prototype=Object.create
(d.prototype),g(h,b),a.wrappers.HTMLUnknownElement=b}(window.ShadowDOMPolyfill),
function(a){"use strict";var b=a.registerObject,c="http://www.w3.org/2000/svg",d
=document.createElementNS(c,"title"),e=b(d),f=Object.getPrototypeOf(e.prototype)
.constructor;a.wrappers.SVGElement=f}(window.ShadowDOMPolyfill),function(a){"use
strict";function b(a){m.call(this,a)}var c=a.mixin,d=a.registerWrapper,e=a.unwr
ap,f=a.wrap,g=window.SVGUseElement,h="http://www.w3.org/2000/svg",i=f(document.c
reateElementNS(h,"g")),j=document.createElementNS(h,"use"),k=i.constructor,l=Obj
ect.getPrototypeOf(k.prototype),m=l.constructor;b.prototype=Object.create(l),"in
stanceRoot"in j&&c(b.prototype,{get instanceRoot(){return f(e(this).instanceRoot
)},get animatedInstanceRoot(){return f(e(this).animatedInstanceRoot)}}),d(g,b,j)
,a.wrappers.SVGUseElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";
function b(a){c.call(this,a)}var c=a.wrappers.EventTarget,d=a.mixin,e=a.register
Wrapper,f=a.wrap,g=window.SVGElementInstance;g&&(b.prototype=Object.create(c.pro
totype),d(b.prototype,{get correspondingElement(){return f(this.impl.correspondi
ngElement)},get correspondingUseElement(){return f(this.impl.correspondingUseEle
ment)},get parentNode(){return f(this.impl.parentNode)},get childNodes(){throw n
ew Error("Not implemented")},get firstChild(){return f(this.impl.firstChild)},ge
t lastChild(){return f(this.impl.lastChild)},get previousSibling(){return f(this
.impl.previousSibling)},get nextSibling(){return f(this.impl.nextSibling)}}),e(g
,b),a.wrappers.SVGElementInstance=b)}(window.ShadowDOMPolyfill),function(a){"use
strict";function b(a){this.impl=a}var c=a.mixin,d=a.registerWrapper,e=a.unwrap,
f=a.unwrapIfNeeded,g=a.wrap,h=window.CanvasRenderingContext2D;c(b.prototype,{get
canvas(){return g(this.impl.canvas)},drawImage:function(){arguments[0]=f(argume
nts[0]),this.impl.drawImage.apply(this.impl,arguments)},createPattern:function()
{return arguments[0]=e(arguments[0]),this.impl.createPattern.apply(this.impl,arg
uments)}}),d(h,b,document.createElement("canvas").getContext("2d")),a.wrappers.C
anvasRenderingContext2D=b}(window.ShadowDOMPolyfill),function(a){"use strict";fu
nction b(a){this.impl=a}var c=a.mixin,d=a.registerWrapper,e=a.unwrapIfNeeded,f=a
.wrap,g=window.WebGLRenderingContext;if(g){c(b.prototype,{get canvas(){return f(
this.impl.canvas)},texImage2D:function(){arguments[5]=e(arguments[5]),this.impl.
texImage2D.apply(this.impl,arguments)},texSubImage2D:function(){arguments[6]=e(a
rguments[6]),this.impl.texSubImage2D.apply(this.impl,arguments)}});var h=/WebKit
/.test(navigator.userAgent)?{drawingBufferHeight:null,drawingBufferWidth:null}:{
};d(g,b,h),a.wrappers.WebGLRenderingContext=b}}(window.ShadowDOMPolyfill),functi
on(a){"use strict";function b(a){this.impl=a}var c=a.registerWrapper,d=a.unwrap,
e=a.unwrapIfNeeded,f=a.wrap,g=window.Range;b.prototype={get startContainer(){ret
urn f(this.impl.startContainer)},get endContainer(){return f(this.impl.endContai
ner)},get commonAncestorContainer(){return f(this.impl.commonAncestorContainer)}
,setStart:function(a,b){this.impl.setStart(e(a),b)},setEnd:function(a,b){this.im
pl.setEnd(e(a),b)},setStartBefore:function(a){this.impl.setStartBefore(e(a))},se
tStartAfter:function(a){this.impl.setStartAfter(e(a))},setEndBefore:function(a){
this.impl.setEndBefore(e(a))},setEndAfter:function(a){this.impl.setEndAfter(e(a)
)},selectNode:function(a){this.impl.selectNode(e(a))},selectNodeContents:functio
n(a){this.impl.selectNodeContents(e(a))},compareBoundaryPoints:function(a,b){ret
urn this.impl.compareBoundaryPoints(a,d(b))},extractContents:function(){return f
(this.impl.extractContents())},cloneContents:function(){return f(this.impl.clone
Contents())},insertNode:function(a){this.impl.insertNode(e(a))},surroundContents
:function(a){this.impl.surroundContents(e(a))},cloneRange:function(){return f(th
is.impl.cloneRange())},isPointInRange:function(a,b){return this.impl.isPointInRa
nge(e(a),b)},comparePoint:function(a,b){return this.impl.comparePoint(e(a),b)},i
ntersectsNode:function(a){return this.impl.intersectsNode(e(a))},toString:functi
on(){return this.impl.toString()}},g.prototype.createContextualFragment&&(b.prot
otype.createContextualFragment=function(a){return f(this.impl.createContextualFr
agment(a))}),c(window.Range,b,document.createRange()),a.wrappers.Range=b}(window
.ShadowDOMPolyfill),function(a){"use strict";var b=a.GetElementsByInterface,c=a.
ParentNodeInterface,d=a.SelectorsInterface,e=a.mixin,f=a.registerObject,g=f(docu
ment.createDocumentFragment());e(g.prototype,c),e(g.prototype,d),e(g.prototype,b
);var h=f(document.createComment(""));a.wrappers.Comment=h,a.wrappers.DocumentFr
agment=g}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){var b
=i(a.impl.ownerDocument.createDocumentFragment());c.call(this,b),g(b,this);var d
=a.shadowRoot;k.set(this,d),j.set(this,a)}var c=a.wrappers.DocumentFragment,d=a.
elementFromPoint,e=a.getInnerHTML,f=a.mixin,g=a.rewrap,h=a.setInnerHTML,i=a.unwr
ap,j=new WeakMap,k=new WeakMap,l=/[ \t\n\r\f]/;b.prototype=Object.create(c.proto
type),f(b.prototype,{get innerHTML(){return e(this)},set innerHTML(a){h(this,a),
this.invalidateShadowRenderer()},get olderShadowRoot(){return k.get(this)||null}
,get host(){return j.get(this)||null},invalidateShadowRenderer:function(){return
j.get(this).invalidateShadowRenderer()},elementFromPoint:function(a,b){return d
(this,this.ownerDocument,a,b)},getElementById:function(a){return l.test(a)?null:
this.querySelector('[id="'+a+'"]')}}),a.wrappers.ShadowRoot=b}(window.ShadowDOMP
olyfill),function(a){"use strict";function b(a){a.previousSibling_=a.previousSib
ling,a.nextSibling_=a.nextSibling,a.parentNode_=a.parentNode}function c(a,c,e){v
ar f=F(a),g=F(c),h=e?F(e):null;if(d(c),b(c),e)a.firstChild===e&&(a.firstChild_=e
),e.previousSibling_=e.previousSibling;else{a.lastChild_=a.lastChild,a.lastChild
===a.firstChild&&(a.firstChild_=a.firstChild);var i=G(f.lastChild);i&&(i.nextSib
ling_=i.nextSibling)}f.insertBefore(g,h)}function d(a){var c=F(a),d=c.parentNode
;if(d){var e=G(d);b(a),a.previousSibling&&(a.previousSibling.nextSibling_=a),a.n
extSibling&&(a.nextSibling.previousSibling_=a),e.lastChild===a&&(e.lastChild_=a)
,e.firstChild===a&&(e.firstChild_=a),d.removeChild(c)}}function e(a,b){g(b).push
(a),x(a,b);var c=I.get(a);c||I.set(a,c=[]),c.push(b)}function f(a){H.set(a,[])}f
unction g(a){return H.get(a)}function h(a){for(var b=[],c=0,d=a.firstChild;d;d=d
.nextSibling)b[c++]=d;return b}function i(a,b,c){for(var d=a.firstChild;d;d=d.ne
xtSibling)if(b(d)){if(c(d)===!1)return}else i(d,b,c)}function j(a,b){var c=b.get
Attribute("select");if(!c)return!0;if(c=c.trim(),!c)return!0;if(!(a instanceof z
))return!1;if("*"===c||c===a.localName)return!0;if(!L.test(c))return!1;if(":"===
c[0]&&!M.test(c))return!1;try{return a.matches(c)}catch(d){return!1}}function k(
){for(var a=0;a<O.length;a++)O[a].render();O=[]}function l(){y=null,k()}function
m(a){var b=K.get(a);return b||(b=new q(a),K.set(a,b)),b}function n(a){for(;a;a=
a.parentNode)if(a instanceof D)return a;return null}function o(a){return m(a.hos
t)}function p(a){this.skip=!1,this.node=a,this.childNodes=[]}function q(a){this.
host=a,this.dirty=!1,this.invalidateAttributes(),this.associateNode(a)}function
r(a){return a instanceof A}function s(a){return a instanceof A}function t(a){ret
urn a instanceof B}function u(a){return a instanceof B}function v(a){return a.sh
adowRoot}function w(a){for(var b=[],c=a.shadowRoot;c;c=c.olderShadowRoot)b.push(
c);return b}function x(a,b){J.set(a,b)}var y,z=a.wrappers.Element,A=a.wrappers.H
TMLContentElement,B=a.wrappers.HTMLShadowElement,C=a.wrappers.Node,D=a.wrappers.
ShadowRoot,E=(a.assert,a.mixin,a.oneOf),F=a.unwrap,G=a.wrap,H=new WeakMap,I=new
WeakMap,J=new WeakMap,K=new WeakMap,L=/^[*.:#[a-zA-Z_|]/,M=new RegExp("^:("+["li
nk","visited","target","enabled","disabled","checked","indeterminate","nth-child
","nth-last-child","nth-of-type","nth-last-of-type","first-child","last-child","
first-of-type","last-of-type","only-of-type"].join("|")+")"),N=E(window,["reques
tAnimationFrame","mozRequestAnimationFrame","webkitRequestAnimationFrame","setTi
meout"]),O=[],P=new ArraySplice;P.equals=function(a,b){return F(a.node)===b},p.p
rototype={append:function(a){var b=new p(a);return this.childNodes.push(b),b},sy
nc:function(a){if(!this.skip){for(var b=this.node,e=this.childNodes,f=h(F(b)),g=
a||new WeakMap,i=P.calculateSplices(e,f),j=0,k=0,l=0,m=0;m<i.length;m++){for(var
n=i[m];l<n.index;l++)k++,e[j++].sync(g);for(var o=n.removed.length,p=0;o>p;p++)
{var q=G(f[k++]);g.get(q)||d(q)}for(var r=n.addedCount,s=f[k]&&G(f[k]),p=0;r>p;p
++){var t=e[j++],u=t.node;c(b,u,s),g.set(u,!0),t.sync(g)}l+=r}for(var m=l;m<e.le
ngth;m++)e[m].sync(g)}}},q.prototype={render:function(a){if(this.dirty){this.inv
alidateAttributes(),this.treeComposition();var b=this.host,c=b.shadowRoot;this.a
ssociateNode(b);for(var d=!e,e=a||new p(b),f=c.firstChild;f;f=f.nextSibling)this
.renderNode(c,e,f,!1);d&&e.sync(),this.dirty=!1}},invalidate:function(){if(!this
.dirty){if(this.dirty=!0,O.push(this),y)return;y=window[N](l,0)}},renderNode:fun
ction(a,b,c,d){if(v(c)){b=b.append(c);var e=m(c);e.dirty=!0,e.render(b)}else r(c
)?this.renderInsertionPoint(a,b,c,d):t(c)?this.renderShadowInsertionPoint(a,b,c)
:this.renderAsAnyDomTree(a,b,c,d)},renderAsAnyDomTree:function(a,b,c,d){if(b=b.a
ppend(c),v(c)){var e=m(c);b.skip=!e.dirty,e.render(b)}else for(var f=c.firstChil
d;f;f=f.nextSibling)this.renderNode(a,b,f,d)},renderInsertionPoint:function(a,b,
c,d){var e=g(c);if(e.length){this.associateNode(c);for(var f=0;f<e.length;f++){v
ar h=e[f];r(h)&&d?this.renderInsertionPoint(a,b,h,d):this.renderAsAnyDomTree(a,b
,h,d)}}else this.renderFallbackContent(a,b,c);this.associateNode(c.parentNode)},
renderShadowInsertionPoint:function(a,b,c){var d=a.olderShadowRoot;if(d){x(d,c),
this.associateNode(c.parentNode);for(var e=d.firstChild;e;e=e.nextSibling)this.r
enderNode(d,b,e,!0)}else this.renderFallbackContent(a,b,c)},renderFallbackConten
t:function(a,b,c){this.associateNode(c),this.associateNode(c.parentNode);for(var
d=c.firstChild;d;d=d.nextSibling)this.renderAsAnyDomTree(a,b,d,!1)},invalidateA
ttributes:function(){this.attributes=Object.create(null)},updateDependentAttribu
tes:function(a){if(a){var b=this.attributes;/\.\w+/.test(a)&&(b["class"]=!0),/#\
w+/.test(a)&&(b.id=!0),a.replace(/\[\s*([^\s=\|~\]]+)/g,function(a,c){b[c]=!0})}
},dependsOnAttribute:function(a){return this.attributes[a]},distribute:function(
a,b){var c=this; |
| 31 i(a,s,function(a){f(a),c.updateDependentAttributes(a.getAttribute("select"));for
(var d=0;d<b.length;d++){var g=b[d];void 0!==g&&j(g,a)&&(e(g,a),b[d]=void 0)}})}
,treeComposition:function(){for(var a=this.host,b=a.shadowRoot,c=[],d=a.firstChi
ld;d;d=d.nextSibling)if(r(d)){var e=g(d);e&&e.length||(e=h(d)),c.push.apply(c,e)
}else c.push(d);for(var f,j;b;){if(f=void 0,i(b,u,function(a){return f=a,!1}),j=
f,this.distribute(b,c),j){var k=b.olderShadowRoot;if(k){b=k,x(b,j);continue}brea
k}break}},associateNode:function(a){a.impl.polymerShadowRenderer_=this}},C.proto
type.invalidateShadowRenderer=function(){var a=this.impl.polymerShadowRenderer_;
return a?(a.invalidate(),!0):!1},A.prototype.getDistributedNodes=function(){retu
rn k(),g(this)},B.prototype.nodeIsInserted_=A.prototype.nodeIsInserted_=function
(){this.invalidateShadowRenderer();var a,b=n(this);b&&(a=o(b)),this.impl.polymer
ShadowRenderer_=a,a&&a.invalidate()},a.eventParentsTable=I,a.getRendererForHost=
m,a.getShadowTrees=w,a.insertionParentTable=J,a.renderAllPending=k,a.visual={ins
ertBefore:c,remove:d}}(window.ShadowDOMPolyfill),function(a){"use strict";functi
on b(b){if(window[b]){d(!a.wrappers[b]);var i=function(a){c.call(this,a)};i.prot
otype=Object.create(c.prototype),e(i.prototype,{get form(){return h(g(this).form
)}}),f(window[b],i,document.createElement(b.slice(4,-7))),a.wrappers[b]=i}}var c
=a.wrappers.HTMLElement,d=a.assert,e=a.mixin,f=a.registerWrapper,g=a.unwrap,h=a.
wrap,i=["HTMLButtonElement","HTMLFieldSetElement","HTMLInputElement","HTMLKeygen
Element","HTMLLabelElement","HTMLLegendElement","HTMLObjectElement","HTMLOutputE
lement","HTMLSelectElement","HTMLTextAreaElement"];i.forEach(b)}(window.ShadowDO
MPolyfill),function(a){"use strict";function b(a){this.impl=a}{var c=a.registerW
rapper,d=a.unwrap,e=a.unwrapIfNeeded,f=a.wrap;window.Selection}b.prototype={get
anchorNode(){return f(this.impl.anchorNode)},get focusNode(){return f(this.impl.
focusNode)},addRange:function(a){this.impl.addRange(d(a))},collapse:function(a,b
){this.impl.collapse(e(a),b)},containsNode:function(a,b){return this.impl.contai
nsNode(e(a),b)},extend:function(a,b){this.impl.extend(e(a),b)},getRangeAt:functi
on(a){return f(this.impl.getRangeAt(a))},removeRange:function(a){this.impl.remov
eRange(d(a))},selectAllChildren:function(a){this.impl.selectAllChildren(e(a))},t
oString:function(){return this.impl.toString()}},c(window.Selection,b,window.get
Selection()),a.wrappers.Selection=b}(window.ShadowDOMPolyfill),function(a){"use
strict";function b(a){k.call(this,a)}function c(a){var c=document[a];b.prototype
[a]=function(){return z(c.apply(this.impl,arguments))}}function d(a,b){C.call(b.
impl,y(a)),e(a,b)}function e(a,b){a.shadowRoot&&b.adoptNode(a.shadowRoot),a inst
anceof o&&f(a,b);for(var c=a.firstChild;c;c=c.nextSibling)e(c,b)}function f(a,b)
{var c=a.olderShadowRoot;c&&b.adoptNode(c)}function g(a){this.impl=a}function h(
a,b){var c=document.implementation[b];a.prototype[b]=function(){return z(c.apply
(this.impl,arguments))}}function i(a,b){var c=document.implementation[b];a.proto
type[b]=function(){return c.apply(this.impl,arguments)}}var j=a.GetElementsByInt
erface,k=a.wrappers.Node,l=a.ParentNodeInterface,m=a.wrappers.Selection,n=a.Sele
ctorsInterface,o=a.wrappers.ShadowRoot,p=a.cloneNode,q=a.defineWrapGetter,r=a.el
ementFromPoint,s=a.forwardMethodsToWrapper,t=a.matchesNames,u=a.mixin,v=a.regist
erWrapper,w=a.renderAllPending,x=a.rewrap,y=a.unwrap,z=a.wrap,A=a.wrapEventTarge
tMethods,B=(a.wrapNodeList,new WeakMap);b.prototype=Object.create(k.prototype),q
(b,"documentElement"),q(b,"body"),q(b,"head"),["createComment","createDocumentFr
agment","createElement","createElementNS","createEvent","createEventNS","createR
ange","createTextNode","getElementById"].forEach(c);var C=document.adoptNode,D=d
ocument.getSelection;if(u(b.prototype,{adoptNode:function(a){return a.parentNode
&&a.parentNode.removeChild(a),d(a,this),a},elementFromPoint:function(a,b){return
r(this,this,a,b)},importNode:function(a,b){return p(a,b,this.impl)},getSelectio
n:function(){return w(),new m(D.call(y(this)))}}),document.registerElement){var
E=document.registerElement;b.prototype.registerElement=function(b,c){function d(
a){return a?void(this.impl=a):c.extends?document.createElement(c.extends,b):docu
ment.createElement(b)}var e=c.prototype;if(a.nativePrototypeTable.get(e))throw n
ew Error("NotSupportedError");for(var f,g=Object.getPrototypeOf(e),h=[];g&&!(f=a
.nativePrototypeTable.get(g));)h.push(g),g=Object.getPrototypeOf(g);if(!f)throw
new Error("NotSupportedError");for(var i=Object.create(f),j=h.length-1;j>=0;j--)
i=Object.create(i);["createdCallback","attachedCallback","detachedCallback","att
ributeChangedCallback"].forEach(function(a){var b=e[a];b&&(i[a]=function(){z(thi
s)instanceof d||x(this),b.apply(z(this),arguments)})});var k={prototype:i};c.ext
ends&&(k.extends=c.extends),d.prototype=e,d.prototype.constructor=d,a.constructo
rTable.set(i,d),a.nativePrototypeTable.set(e,i);E.call(y(this),b,k);return d},s(
[window.HTMLDocument||window.Document],["registerElement"])}s([window.HTMLBodyEl
ement,window.HTMLDocument||window.Document,window.HTMLHeadElement,window.HTMLHtm
lElement],["appendChild","compareDocumentPosition","contains","getElementsByClas
sName","getElementsByTagName","getElementsByTagNameNS","insertBefore","querySele
ctor","querySelectorAll","removeChild","replaceChild"].concat(t)),s([window.HTML
Document||window.Document],["adoptNode","importNode","contains","createComment",
"createDocumentFragment","createElement","createElementNS","createEvent","create
EventNS","createRange","createTextNode","elementFromPoint","getElementById","get
Selection"]),u(b.prototype,j),u(b.prototype,l),u(b.prototype,n),u(b.prototype,{g
et implementation(){var a=B.get(this);return a?a:(a=new g(y(this).implementation
),B.set(this,a),a)}}),v(window.Document,b,document.implementation.createHTMLDocu
ment("")),window.HTMLDocument&&v(window.HTMLDocument,b),A([window.HTMLBodyElemen
t,window.HTMLDocument||window.Document,window.HTMLHeadElement]),h(g,"createDocum
entType"),h(g,"createDocument"),h(g,"createHTMLDocument"),i(g,"hasFeature"),v(wi
ndow.DOMImplementation,g),s([window.DOMImplementation],["createDocumentType","cr
eateDocument","createHTMLDocument","hasFeature"]),a.adoptNodeNoRemove=d,a.wrappe
rs.DOMImplementation=g,a.wrappers.Document=b}(window.ShadowDOMPolyfill),function
(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.EventTarget,d=a.w
rappers.Selection,e=a.mixin,f=a.registerWrapper,g=a.renderAllPending,h=a.unwrap,
i=a.unwrapIfNeeded,j=a.wrap,k=window.Window,l=window.getComputedStyle,m=window.g
etSelection;b.prototype=Object.create(c.prototype),k.prototype.getComputedStyle=
function(a,b){return j(this||window).getComputedStyle(i(a),b)},k.prototype.getSe
lection=function(){return j(this||window).getSelection()},delete window.getCompu
tedStyle,delete window.getSelection,["addEventListener","removeEventListener","d
ispatchEvent"].forEach(function(a){k.prototype[a]=function(){var b=j(this||windo
w);return b[a].apply(b,arguments)},delete window[a]}),e(b.prototype,{getComputed
Style:function(a,b){return g(),l.call(h(this),i(a),b)},getSelection:function(){r
eturn g(),new d(m.call(h(this)))}}),f(k,b),a.wrappers.Window=b}(window.ShadowDOM
Polyfill),function(a){"use strict";function b(a){var b=c[a],d=window[b];if(d){va
r e=document.createElement(a),f=e.constructor;window[b]=f}}var c=(a.isWrapperFor
,{a:"HTMLAnchorElement",area:"HTMLAreaElement",br:"HTMLBRElement",base:"HTMLBase
Element",body:"HTMLBodyElement",button:"HTMLButtonElement",dl:"HTMLDListElement"
,datalist:"HTMLDataListElement",data:"HTMLDataElement",dir:"HTMLDirectoryElement
",div:"HTMLDivElement",embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement",f
ont:"HTMLFontElement",form:"HTMLFormElement",frame:"HTMLFrameElement",frameset:"
HTMLFrameSetElement",hr:"HTMLHRElement",head:"HTMLHeadElement",h1:"HTMLHeadingEl
ement",html:"HTMLHtmlElement",iframe:"HTMLIFrameElement",input:"HTMLInputElement
",li:"HTMLLIElement",label:"HTMLLabelElement",legend:"HTMLLegendElement",link:"H
TMLLinkElement",map:"HTMLMapElement",marquee:"HTMLMarqueeElement",menu:"HTMLMenu
Element",menuitem:"HTMLMenuItemElement",meta:"HTMLMetaElement",meter:"HTMLMeterE
lement",del:"HTMLModElement",ol:"HTMLOListElement",object:"HTMLObjectElement",op
tgroup:"HTMLOptGroupElement",option:"HTMLOptionElement",output:"HTMLOutputElemen
t",p:"HTMLParagraphElement",param:"HTMLParamElement",pre:"HTMLPreElement",progre
ss:"HTMLProgressElement",q:"HTMLQuoteElement",script:"HTMLScriptElement",select:
"HTMLSelectElement",source:"HTMLSourceElement",span:"HTMLSpanElement",style:"HTM
LStyleElement",time:"HTMLTimeElement",caption:"HTMLTableCaptionElement",col:"HTM
LTableColElement",table:"HTMLTableElement",tr:"HTMLTableRowElement",thead:"HTMLT
ableSectionElement",tbody:"HTMLTableSectionElement",textarea:"HTMLTextAreaElemen
t",track:"HTMLTrackElement",title:"HTMLTitleElement",ul:"HTMLUListElement",video
:"HTMLVideoElement"});Object.keys(c).forEach(b),Object.getOwnPropertyNames(a.wra
ppers).forEach(function(b){window[b]=a.wrappers[b]}),a.knownElements=c}(window.S
hadowDOMPolyfill),function(){window.wrap=ShadowDOMPolyfill.wrapIfNeeded,window.u
nwrap=ShadowDOMPolyfill.unwrapIfNeeded,Object.defineProperty(Element.prototype,"
webkitShadowRoot",Object.getOwnPropertyDescriptor(Element.prototype,"shadowRoot"
));var a=Element.prototype.createShadowRoot;Element.prototype.createShadowRoot=f
unction(){var b=a.call(this);return CustomElements.watchShadow(this),b},Element.
prototype.webkitCreateShadowRoot=Element.prototype.createShadowRoot}(),function(
a){function b(a,b){var c="";return Array.prototype.forEach.call(a,function(a){c+
=a.textContent+"\n\n"}),b||(c=c.replace(h,"")),c}function c(a){var b=document.cr
eateElement("style");return b.textContent=a,b}function d(a){var b=c(a);document.
head.appendChild(b);var d=b.sheet.cssRules;return b.parentNode.removeChild(b),d}
function e(a){a&&f().appendChild(document.createTextNode(a))}function f(){return
o||(o=document.createElement("style"),o.setAttribute(q,""),o[q]=!0),o}var g={st
rictStyling:!1,registry:{},shimStyling:function(a,b,d){var f=this.isTypeExtensio
n(d),g=this.registerDefinition(a,b,d);this.strictStyling&&this.applyScopeToConte
nt(a,b);var h=this.stylesToShimmedCssText(g.rootStyles,g.scopeStyles,b,f);g.shim
medStyle=c(h),a&&(a.shimmedStyle=g.shimmedStyle);for(var i,j=0,k=g.rootStyles.le
ngth;k>j&&(i=g.rootStyles[j]);j++)i.parentNode.removeChild(i);e(h)},stylesToShim
medCssText:function(a,b,c,d){c=c||"",this.insertPolyfillDirectives(a),this.inser
tPolyfillRules(a);var e=this.shimScoping(b,c,d);return e+=this.extractPolyfillUn
scopedRules(a)},registerDefinition:function(a,b,c){var d=this.registry[b]={root:
a,name:b,extendsName:c},e=a?a.querySelectorAll("style"):[];e=e?Array.prototype.s
lice.call(e,0):[],d.rootStyles=e,d.scopeStyles=d.rootStyles;var f=this.registry[
d.extendsName];return!f||a&&!a.querySelector("shadow")||(d.scopeStyles=f.scopeSt
yles.concat(d.scopeStyles)),d},isTypeExtension:function(a){return a&&a.indexOf("
-")<0},applyScopeToContent:function(a,b){a&&(Array.prototype.forEach.call(a.quer
ySelectorAll("*"),function(a){a.setAttribute(b,"")}),Array.prototype.forEach.cal
l(a.querySelectorAll("template"),function(a){this.applyScopeToContent(a.content,
b)},this))},insertPolyfillDirectives:function(a){a&&Array.prototype.forEach.call
(a,function(a){a.textContent=this.insertPolyfillDirectivesInCssText(a.textConten
t)},this)},insertPolyfillDirectivesInCssText:function(a){return a.replace(i,func
tion(a,b){return b.slice(0,-2)+"{"})},insertPolyfillRules:function(a){a&&Array.p
rototype.forEach.call(a,function(a){a.textContent=this.insertPolyfillRulesInCssT
ext(a.textContent)},this)},insertPolyfillRulesInCssText:function(a){return a.rep
lace(j,function(a,b){return b.slice(0,-1)})},extractPolyfillUnscopedRules:functi
on(a){var b="";return a&&Array.prototype.forEach.call(a,function(a){b+=this.extr
actPolyfillUnscopedRulesFromCssText(a.textContent)+"\n\n"},this),b},extractPolyf
illUnscopedRulesFromCssText:function(a){for(var b,c="";b=k.exec(a);)c+=b[1].slic
e(0,-1)+"\n\n";return c},shimScoping:function(a,b,c){return a?this.convertScoped
Styles(a,b,c):void 0},convertScopedStyles:function(a,c,e){var f=b(a);f=this.inse
rtPolyfillHostInCssText(f),f=this.convertColonHost(f),f=this.convertColonAncesto
r(f),f=this.convertCombinators(f);var g=d(f);return c&&(f=this.scopeRules(g,c,e)
),f},convertColonHost:function(a){return this.convertColonRule(a,cssColonHostRe,
this.colonHostPartReplacer)},convertColonAncestor:function(a){return this.conver
tColonRule(a,cssColonAncestorRe,this.colonAncestorPartReplacer)},convertColonRul
e:function(a,b,c){return a.replace(b,function(a,b,d,e){if(b=polyfillHostNoCombin
ator,d){for(var f,g=d.split(","),h=[],i=0,j=g.length;j>i&&(f=g[i]);i++)f=f.trim(
),h.push(c(b,f,e));return h.join(",")}return b+e})},colonAncestorPartReplacer:fu
nction(a,b,c){return b.match(l)?this.colonHostPartReplacer(a,b,c):a+b+c+", "+b+"
"+a+c},colonHostPartReplacer:function(a,b,c){return a+b.replace(l,"")+c},conver
tCombinators:function(a){return a.replace(/\^\^/g," ").replace(/\^/g," ")},scope
Rules:function(a,b,c){var d="";return Array.prototype.forEach.call(a,function(a)
{a.selectorText&&a.style&&a.style.cssText?(d+=this.scopeSelector(a.selectorText,
b,c,this.strictStyling)+" {\n ",d+=this.propertiesFromRule(a)+"\n}\n\n"):a.med
ia?(d+="@media "+a.media.mediaText+" {\n",d+=this.scopeRules(a.cssRules,b,c),d+=
"\n}\n\n"):a.cssText&&(d+=a.cssText+"\n\n")},this),d},scopeSelector:function(a,b
,c,d){var e=[],f=a.split(",");return f.forEach(function(a){a=a.trim(),this.selec
torNeedsScoping(a,b,c)&&(a=d&&!a.match(polyfillHostNoCombinator)?this.applyStric
tSelectorScope(a,b):this.applySimpleSelectorScope(a,b,c)),e.push(a)},this),e.joi
n(", ")},selectorNeedsScoping:function(a,b,c){var d=this.makeScopeMatcher(b,c);r
eturn!a.match(d)},makeScopeMatcher:function(a,b){var c=b?"\\[is=['\"]?"+a+"['\"]
?\\]":a;return new RegExp("^("+c+")"+selectorReSuffix,"m")},applySimpleSelectorS
cope:function(a,b,c){var d=c?"[is="+b+"]":b;return a.match(polyfillHostRe)?(a=a.
replace(polyfillHostNoCombinator,d),a.replace(polyfillHostRe,d+" ")):d+" "+a},ap
plyStrictSelectorScope:function(a,b){var c=[" ",">","+","~"],d=a,e="["+b+"]";ret
urn c.forEach(function(a){var b=d.split(a);d=b.map(function(a){var b=a.trim().re
place(polyfillHostRe,"");return b&&c.indexOf(b)<0&&b.indexOf(e)<0&&(a=b.replace(
/([^:]*)(:*)(.*)/,"$1"+e+"$2$3")),a}).join(a)}),d},insertPolyfillHostInCssText:f
unction(a){return a.replace(hostRe,l).replace(colonHostRe,l).replace(colonAncest
orRe,m)},propertiesFromRule:function(a){return a.style.content&&!a.style.content
.match(/['"]+/)?a.style.cssText.replace(/content:[^;]*;/g,"content: '"+a.style.c
ontent+"';"):a.style.cssText}},h=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,i=/\/\*\s*@
polyfill ([^*]*\*+([^/*][^*]*\*+)*\/)([^{]*?){/gim,j=/\/\*\s@polyfill-rule([^*]*
\*+([^/*][^*]*\*+)*)\//gim,k=/\/\*\s@polyfill-unscoped-rule([^*]*\*+([^/*][^*]*\
*+)*)\//gim,l="-shadowcsshost",m="-shadowcssancestor",n=")(?:\\(((?:\\([^)(]*\\)
|[^)(]*)+?)\\))?([^,{]*)";cssColonHostRe=new RegExp("("+l+n,"gim"),cssColonAnces
torRe=new RegExp("("+m+n,"gim"),selectorReSuffix="([>\\s~+[.,{:][\\s\\S]*)?$",ho
stRe=/@host/gim,colonHostRe=/\:host/gim,colonAncestorRe=/\:ancestor/gim,polyfill
HostNoCombinator=l+"-no-combinator",polyfillHostRe=new RegExp(l,"gim"),polyfillA
ncestorRe=new RegExp(m,"gim");var o,p="shim-shadowdom",q="shim-shadowdom-css";if
(window.ShadowDOMPolyfill){e("style { display: none !important; }\n");var r=wrap
(document),s=r.querySelector("head");s.insertBefore(f(),s.childNodes[0]),documen
t.addEventListener("DOMContentLoaded",function(){var b=a.urlResolver;if(window.H
TMLImports&&!HTMLImports.useNative){var c="link[rel=stylesheet]["+p+"]",d="style
["+p+"]";HTMLImports.importer.documentPreloadSelectors+=","+c,HTMLImports.import
er.importsPreloadSelectors+=","+c,HTMLImports.parser.documentSelectors=[HTMLImpo
rts.parser.documentSelectors,c,d].join(","),HTMLImports.parser.parseGeneric=func
tion(a){if(!a[q]){var c=a.__importElement||a;a.__resource?(c=a.ownerDocument.cre
ateElement("style"),c.textContent=b.resolveCssText(a.__resource,a.href)):b.resol
veStyles(c);var d=[c];c.textContent=g.stylesToShimmedCssText(d,d),c.removeAttrib
ute(p,""),c.setAttribute(q,""),c[q]=!0,c.parentNode!==s&&(a.parentNode===s?s.rep
laceChild(c,a):s.appendChild(c)),c.__importParsed=!0,this.markParsingComplete(a)
}};var e=HTMLImports.parser.hasResource;HTMLImports.parser.hasResource=function(
a){return"link"===a.localName&&"stylesheet"===a.rel&&a.hasAttribute(p)?a.__resou
rce:e.call(this,a)}}})}a.ShadowCSS=g}(window.Platform)):!function(){window.templ
ateContent=window.templateContent||function(a){return a.content},window.wrap=win
dow.unwrap=function(a){return a};var a=Element.prototype.webkitCreateShadowRoot;
Element.prototype.webkitCreateShadowRoot=function(){var b=this.webkitShadowRoot,
c=a.call(this);return c.olderShadowRoot=b,c.host=this,CustomElements.watchShadow
(this),c},Object.defineProperties(Element.prototype,{shadowRoot:{get:function(){
return this.webkitShadowRoot}},createShadowRoot:{value:function(){return this.we
bkitCreateShadowRoot()}}}),window.templateContent=function(a){if(window.HTMLTemp
lateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(a),!a.
content&&!a._content){for(var b=document.createDocumentFragment();a.firstChild;)
b.appendChild(a.firstChild);a._content=b}return a.content||a._content}}(),functi
on(a){"use strict";function b(a){return void 0!==m[a]}function c(){h.call(this),
this._isInvalid=!0}function d(a){return""==a&&c.call(this),a.toLowerCase()}funct
ion e(a){var b=a.charCodeAt(0);return b>32&&127>b&&-1==[34,35,60,62,63,96].index
Of(b)?a:encodeURIComponent(a)}function f(a){var b=a.charCodeAt(0);return b>32&&1
27>b&&-1==[34,35,60,62,96].indexOf(b)?a:encodeURIComponent(a)}function g(a,g,h){
function i(a){t.push(a)}var j=g||"scheme start",k=0,l="",r=!1,s=!1,t=[];a:for(;(
a[k-1]!=o||0==k)&&!this._isInvalid;){var u=a[k];switch(j){case"scheme start":if(
!u||!p.test(u)){if(g){i("Invalid scheme.");break a}l="",j="no scheme";continue}l
+=u.toLowerCase(),j="scheme";break;case"scheme":if(u&&q.test(u))l+=u.toLowerCase
();else{if(":"!=u){if(g){if(o==u)break a;i("Code point not allowed in scheme: "+
u);break a}l="",k=0,j="no scheme";continue}if(this._scheme=l,l="",g)break a;b(th
is._scheme)&&(this._isRelative=!0),j="file"==this._scheme?"relative":this._isRel
ative&&h&&h._scheme==this._scheme?"relative or authority":this._isRelative?"auth
ority first slash":"scheme data"}break;case"scheme data":"?"==u?(query="?",j="qu
ery"):"#"==u?(this._fragment="#",j="fragment"):o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&
(this._schemeData+=e(u));break;case"no scheme":if(h&&b(h._scheme)){j="relative";
continue}i("Missing scheme."),c.call(this);break;case"relative or authority":if(
"/"!=u||"/"!=a[k+1]){i("Expected /, got: "+u),j="relative";continue}j="authority
ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!=this._schem
e&&(this._scheme=h._scheme),o==u){this._host=h._host,this._port=h._port,this._pa
th=h._path.slice(),this._query=h._query;break a}if("/"==u||"\\"==u)"\\"==u&&i("\
\ is an invalid code point."),j="relative slash";else if("?"==u)this._host=h._ho
st,this._port=h._port,this._path=h._path.slice(),this._query="?",j="query";else{
if("#"!=u){var v=a[k+1],w=a[k+2];("file"!=this._scheme||!p.test(u)||":"!=v&&"|"!
=v||o!=w&&"/"!=w&&"\\"!=w&&"?"!=w&&"#"!=w)&&(this._host=h._host,this._port=h._po
rt,this._path=h._path.slice(),this._path.pop()),j="relative path";continue}this.
_host=h._host,this._port=h._port,this._path=h._path.slice(),this._query=h._query
,this._fragment="#",j="fragment"}break;case"relative slash":if("/"!=u&&"\\"!=u){
"file"!=this._scheme&&(this._host=h._host,this._port=h._port),j="relative path";
continue}"\\"==u&&i("\\ is an invalid code point."),j="file"==this._scheme?"file
host":"authority ignore slashes";break;case"authority first slash":if("/"!=u){i
("Expected '/', got: "+u),j="authority ignore slashes";continue}j="authority sec
ond slash";break;case"authority second slash":if(j="authority ignore slashes","/
"!=u){i("Expected '/', got: "+u);continue}break;case"authority ignore slashes":i
f("/"!=u&&"\\"!=u){j="authority";continue}i("Expected authority, got: "+u);break
;case"authority":if("@"==u){r&&(i("@ already seen."),l+="%40"),r=!0;for(var x=0;
x<l.length;x++){var y=l[x];if(" "!=y&&"\n"!=y&&"\r"!=y)if(":"!=y||null!==this._p
assword){var z=e(y);null!==this._password?this._password+=z:this._username+=z}el
se this._password="";else i("Invalid whitespace in authority.")}l=""}else{if(o==
u||"/"==u||"\\"==u||"?"==u||"#"==u){k-=l.length,l="",j="host";continue}l+=u}brea
k;case"file host":if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){2!=l.length||!p.test
(l[0])||":"!=l[1]&&"|"!=l[1]?0==l.length?j="relative path start":(this._host=d.c
all(this,l),l="",j="relative path start"):j="relative path";continue}" "==u||"\
n"==u||"\r"==u?i("Invalid whitespace in file host."):l+=u;break;case"host":case"
hostname":if(":"!=u||s){if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){if(this._host=
d.call(this,l),l="",j="relative path start",g)break a;continue}" "!=u&&"\
n"!=u&&"\r"!=u?("["==u?s=!0:"]"==u&&(s=!1),l+=u):i("Invalid code point in host/h
ostname: "+u)}else if(this._host=d.call(this,l),l="",j="port","hostname"==g)brea
k a;break;case"port":if(/[0-9]/.test(u))l+=u;else{if(o==u||"/"==u||"\\"==u||"?"=
=u||"#"==u||g){if(""!=l){var A=parseInt(l,10);A!=m[this._scheme]&&(this._port=A+
""),l=""}if(g)break a;j="relative path start";continue}" "==u||"\n"==u||"
\r"==u?i("Invalid code point in port: "+u):c.call(this)}break;case"relative path
start":if("\\"==u&&i("'\\' not allowed in path."),j="relative path","/"!=u&&"\\
"!=u)continue;break;case"relative path":if(o!=u&&"/"!=u&&"\\"!=u&&(g||"?"!=u&&"#
"!=u))" "!=u&&"\n"!=u&&"\r"!=u&&(l+=e(u));else{"\\"==u&&i("\\ not allowed in rel
ative path.");var B;(B=n[l.toLowerCase()])&&(l=B),".."==l?(this._path.pop(),"/"!
=u&&"\\"!=u&&this._path.push("")):"."==l&&"/"!=u&&"\\"!=u?this._path.push(""):".
"!=l&&("file"==this._scheme&&0==this._path.length&&2==l.length&&p.test(l[0])&&"|
"==l[1]&&(l=l[0]+":"),this._path.push(l)),l="","?"==u?(this._query="?",j="query"
):"#"==u&&(this._fragment="#",j="fragment")}break;case"query":g||"#"!=u?o!=u&&"
"!=u&&"\n"!=u&&"\r"!=u&&(this._query+=f(u)):(this._fragment="#",j="fragment");br
eak;case"fragment":o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&(this._fragment+=u)}k++}
}function h(){this._scheme="",this._schemeData="",this._username="",this._passwo
rd=null,this._host="",this._port="",this._path=[],this._query="",this._fragment=
"",this._isInvalid=!1,this._isRelative=!1}function i(a,b){void 0===b||b instance
of i||(b=new i(String(b))),this._url=a,h.call(this);var c=a.replace(/^[ \t\r\n\f
]+|[ \t\r\n\f]+$/g,"");g.call(this,c,null,b)}var j=!1;if(!a.forceJURL)try{var k=
new URL("b","http://a");j="http://a/b"===k.href}catch(l){}if(!j){var m=Object.cr
eate(null);m.ftp=21,m.file=0,m.gopher=70,m.http=80,m.https=443,m.ws=80,m.wss=443
;var n=Object.create(null);n["%2e"]=".",n[".%2e"]="..",n["%2e."]="..",n["%2e%2e"
]="..";var o=void 0,p=/[a-zA-Z]/,q=/[a-zA-Z0-9\+\-\.]/;i.prototype={get href(){i
f(this._isInvalid)return this._url;var a="";return(""!=this._username||null!=thi
s._password)&&(a=this._username+(null!=this._password?":"+this._password:"")+"@"
),this.protocol+(this._isRelative?"//"+a+this.host:"")+this.pathname+this._query
+this._fragment},set href(a){h.call(this),g.call(this,a)},get protocol(){return
this._scheme+":"},set protocol(a){this._isInvalid||g.call(this,a+":","scheme sta
rt")},get host(){return this._isInvalid?"":this._port?this._host+":"+this._port:
this._host},set host(a){!this._isInvalid&&this._isRelative&&g.call(this,a,"host"
)},get hostname(){return this._host},set hostname(a){!this._isInvalid&&this._isR
elative&&g.call(this,a,"hostname")},get port(){return this._port},set port(a){!t
his._isInvalid&&this._isRelative&&g.call(this,a,"port")},get pathname(){return t
his._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},se
t pathname(a){!this._isInvalid&&this._isRelative&&(this._path=[],g.call(this,a,"
relative path start"))},get search(){return this._isInvalid||!this._query||"?"==
this._query?"":this._query},set search(a){!this._isInvalid&&this._isRelative&&(t
his._query="?","?"==a[0]&&(a=a.slice(1)),g.call(this,a,"query"))},get hash(){ret
urn this._isInvalid||!this._fragment||"#"==this._fragment?"":this._fragment},set
hash(a){this._isInvalid||(this._fragment="#","#"==a[0]&&(a=a.slice(1)),g.call(t
his,a,"fragment"))}},a.URL=i}}(window),function(a){function b(a){for(var b=a||{}
,d=1;d<arguments.length;d++){var e=arguments[d];try{for(var f in e)c(f,e,b)}catc
h(g){}}return b}function c(a,b,c){var e=d(b,a);Object.defineProperty(c,a,e)}func
tion d(a,b){if(a){var c=Object.getOwnPropertyDescriptor(a,b);return c||d(Object.
getPrototypeOf(a),b)}}Function.prototype.bind||(Function.prototype.bind=function
(a){var b=this,c=Array.prototype.slice.call(arguments,1);return function(){var d
=c.slice();return d.push.apply(d,arguments),b.apply(a,d)}}),a.mixin=b}(window.Pl
atform),function(a){"use strict";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=DOMTokenList.prototype.add,d=DOMTokenList.prototyp
e.remove;DOMTokenList.prototype.add=function(){for(var a=0;a<arguments.length;a+
+)c.call(this,arguments[a])},DOMTokenList.prototype.remove=function(){for(var a=
0;a<arguments.length;a++)d.call(this,arguments[a])},DOMTokenList.prototype.toggl
e=function(a,b){1==arguments.length&&(b=!this.contains(a)),b?this.add(a):this.re
move(a)},DOMTokenList.prototype.switch=function(a,b){a&&this.remove(a),b&&this.a
dd(b)};var e=function(){return Array.prototype.slice.call(this)},f=window.NamedN
odeMap||window.MozNamedAttrMap||{};if(NodeList.prototype.array=e,f.prototype.arr
ay=e,HTMLCollection.prototype.array=e,!window.performance){var g=Date.now();wind
ow.performance={now:function(){return Date.now()-g}}}window.requestAnimationFram
e||(window.requestAnimationFrame=function(){var a=window.webkitRequestAnimationF
rame||window.mozRequestAnimationFrame;return a?function(b){return a(function(){b
(performance.now())})}:function(a){return window.setTimeout(a,1e3/60)}}()),windo
w.cancelAnimationFrame||(window.cancelAnimationFrame=function(){return window.we
bkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(a){clearTimeo
ut(a)}}());var h=document.createElement("template"),i=document.createElement("ba
se");i.href=document.baseURI,h.content.ownerDocument.appendChild(i);var j=[],k=f
unction(){j.push(arguments)};window.Polymer=k,a.deliverDeclarations=function(){r
eturn a.deliverDeclarations=null,j},window.addEventListener("DOMContentLoaded",f
unction(){window.Polymer===k&&(window.Polymer=function(){console.error('You trie
d to use polymer without loading it first. To load polymer, <link rel="import" h
ref="components/polymer/polymer.html">')})}),a.createDOM=b}(window.Platform),win
dow.templateContent=window.templateContent||function(a){return a.content},functi
on(a){a=a||(window.Inspector={});var b;window.sinspect=function(a,d){b||(b=windo
w.open("","ShadowDOM Inspector",null,!0),b.document.write(c),b.api={shadowize:sh
adowize}),f(a||wrap(document.body),d)};var c=["<!DOCTYPE html>","<html>"," <hea
d>"," <title>ShadowDOM Inspector</title>"," <style>"," body {","
}"," pre {",' font: 9pt "Courier New", monospace;'," line-he
ight: 1.5em;"," }"," tag {"," color: purple;"," }","
ul {"," margin: 0;"," padding: 0;"," list-style: none;",
" }"," li {"," display: inline-block;"," background-co
lor: #f1f1f1;"," padding: 4px 6px;"," border-radius: 4px;","
margin-right: 4px;"," }"," </style>"," </head>"," <body>",' <u
l id="crumbs">'," </ul>",' <div id="tree"></div>'," </body>","</html>"].j
oin("\n"),d=[],e=function(){var a=b.document,c=a.querySelector("#crumbs");c.text
Content="";for(var e,g=0;e=d[g];g++){var h=a.createElement("a");h.href="#",h.tex
tContent=e.localName,h.idx=g,h.onclick=function(a){for(var b;d.length>this.idx;)
b=d.pop();f(b.shadow||b,b),a.preventDefault()},c.appendChild(a.createElement("li
")).appendChild(h)}},f=function(a,c){var f=b.document;k=[];var g=c||a;d.push(g),
e(),f.body.querySelector("#tree").innerHTML="<pre>"+j(a,a.childNodes)+"</pre>"},
g=Array.prototype.forEach.call.bind(Array.prototype.forEach),h={STYLE:1,SCRIPT:1
,"#comment":1,TEMPLATE:1},i=function(a){return h[a.nodeName]},j=function(a,b,c){
if(i(a))return"";var d=c||"";if(a.localName||11==a.nodeType){var e=a.localName||
"shadow-root",f=d+l(a);"content"==e&&(b=a.getDistributedNodes()),f+="<br/>";var
h=d+" ";g(b,function(a){f+=j(a,a.childNodes,h)}),f+=d,{br:1}[e]||(f+=
"<tag></"+e+"></tag>",f+="<br/>")}else{var k=a.textContent.trim();f=k?d+'"
'+k+'"<br/>':""}return f},k=[],l=function(a){var b="<tag><",c=a.localName||"s
hadow-root";return a.webkitShadowRoot||a.shadowRoot?(b+=' <button idx="'+k.lengt
h+'" onclick="api.shadowize.call(this)">'+c+"</button>",k.push(a)):b+=c||"shadow
-root",a.attributes&&g(a.attributes,function(a){b+=" "+a.name+(a.value?'="'+a.va
lue+'"':"")}),b+="></tag>"};shadowize=function(){var a=Number(this.attributes
.idx.value),b=k[a];b?f(b.webkitShadowRoot||b.shadowRoot,b):(console.log("bad sha
dowize node"),console.dir(this))},a.output=j}(window.Inspector),function(){var a
=document.createElement("style");a.textContent="body {transition: opacity ease-i
n 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; } \n
";var b=document.querySelector("head");b.insertBefore(a,b.firstChild)}(Platform)
,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;b
reak;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.module=c,a.using=e}(window),function(a){function b(a){f.textContent=
d++,e.push(a)}function c(){for(;e.length;)e.shift()()}var d=0,e=[],f=document.cr
eateTextNode("");new(window.MutationObserver||JsMutationObserver)(c).observe(f,{
characterData:!0}),a.endOfMicrotask=b}(Platform),function(a){function b(a,b,d){r
eturn a.replace(d,function(a,d,e,f){var g=e.replace(/["']/g,"");return g=c(b,g),
d+"'"+g+"'"+f})}function c(a,b){var c=new URL(b,a);return d(c.href)}function d(a
){var b=document.baseURI,c=new URL(a,b);return c.host===b.host&&c.port===b.port&
&c.protocol===b.protocol?e(b.pathname,c.pathname):a}function e(a,b){for(var c=a.
split("/"),d=b.split("/");c.length&&c[0]===d[0];)c.shift(),d.shift();for(var e=0
,f=c.length-1;f>e;e++)d.unshift("..");return d.join("/")}var f={resolveDom:funct
ion(a,b){b=b||a.ownerDocument.baseURI,this.resolveAttributes(a,b),this.resolveSt
yles(a,b);var c=a.querySelectorAll("template");if(c)for(var d,e=0,f=c.length;f>e
&&(d=c[e]);e++)d.content&&this.resolveDom(d.content,b)},resolveStyles:function(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.ownerDocument.ba
seURI,a.textContent=this.resolveCssText(a.textContent,b)},resolveCssText:functio
n(a,c){return a=b(a,c,g),b(a,c,h)},resolveAttributes:function(a,b){a.hasAttribut
es&&a.hasAttributes()&&this.resolveElementAttributes(a,b);var c=a&&a.querySelect
orAll(j);if(c)for(var d,e=0,f=c.length;f>e&&(d=c[e]);e++)this.resolveElementAttr
ibutes(d,b)},resolveElementAttributes:function(a,b){b=b||a.ownerDocument.baseURI
,i.forEach(function(d){var e=a.attributes[d];if(e&&e.value&&e.value.search(k)<0)
{var f=c(b,e.value);e.value=f}})}},g=/(url\()([^)]*)(\))/g,h=/(@import[\s]+(?!ur
l\())([^;]*)(;)/g,i=["href","src","action"],j="["+i.join("],[")+"]",k="{{.*}}";a
.urlResolver=f}(Platform),function(a){function b(a){u.push(a),t||(t=!0,q(d))}fun
ction c(a){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeede
d(a)||a}function d(){t=!1;var a=u;u=[],a.sort(function(a,b){return a.uid_-b.uid_
});var b=!1;a.forEach(function(a){var c=a.takeRecords(); |
| 32 e(a),c.length&&(a.callback_(c,a),b=!0)}),b&&d()}function e(a){a.nodes_.forEach(f
unction(b){var c=p.get(b);c&&c.forEach(function(b){b.observer===a&&b.removeTrans
ientObservers()})})}function f(a,b){for(var c=a;c;c=c.parentNode){var d=p.get(c)
;if(d)for(var e=0;e<d.length;e++){var f=d[e],g=f.options;if(c===a||g.subtree){va
r h=b(g);h&&f.enqueue(h)}}}}function g(a){this.callback_=a,this.nodes_=[],this.r
ecords_=[],this.uid_=++v}function h(a,b){this.type=a,this.target=b,this.addedNod
es=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.
attributeName=null,this.attributeNamespace=null,this.oldValue=null}function i(a)
{var b=new h(a.type,a.target);return b.addedNodes=a.addedNodes.slice(),b.removed
Nodes=a.removedNodes.slice(),b.previousSibling=a.previousSibling,b.nextSibling=a
.nextSibling,b.attributeName=a.attributeName,b.attributeNamespace=a.attributeNam
espace,b.oldValue=a.oldValue,b}function j(a,b){return w=new h(a,b)}function k(a)
{return x?x:(x=i(w),x.oldValue=a,x)}function l(){w=x=void 0}function m(a){return
a===x||a===w}function n(a,b){return a===b?a:x&&m(a)?x:null}function o(a,b,c){th
is.observer=a,this.target=b,this.options=c,this.transientObservedNodes=[]}var p=
new WeakMap,q=window.msSetImmediate;if(!q){var r=[],s=String(Math.random());wind
ow.addEventListener("message",function(a){if(a.data===s){var b=r;r=[],b.forEach(
function(a){a()})}}),q=function(a){r.push(a),window.postMessage(s,"*")}}var t=!1
,u=[],v=0;g.prototype={observe:function(a,b){if(a=c(a),!b.childList&&!b.attribut
es&&!b.characterData||b.attributeOldValue&&!b.attributes||b.attributeFilter&&b.a
ttributeFilter.length&&!b.attributes||b.characterDataOldValue&&!b.characterData)
throw new SyntaxError;var d=p.get(a);d||p.set(a,d=[]);for(var e,f=0;f<d.length;f
++)if(d[f].observer===this){e=d[f],e.removeListeners(),e.options=b;break}e||(e=n
ew o(this,a,b),d.push(e),this.nodes_.push(a)),e.addListeners()},disconnect:funct
ion(){this.nodes_.forEach(function(a){for(var b=p.get(a),c=0;c<b.length;c++){var
d=b[c];if(d.observer===this){d.removeListeners(),b.splice(c,1);break}}},this),t
his.records_=[]},takeRecords:function(){var a=this.records_;return this.records_
=[],a}};var w,x;o.prototype={enqueue:function(a){var c=this.observer.records_,d=
c.length;if(c.length>0){var e=c[d-1],f=n(e,a);if(f)return void(c[d-1]=f)}else b(
this.observer);c[d]=a},addListeners:function(){this.addListeners_(this.target)},
addListeners_:function(a){var b=this.options;b.attributes&&a.addEventListener("D
OMAttrModified",this,!0),b.characterData&&a.addEventListener("DOMCharacterDataMo
dified",this,!0),b.childList&&a.addEventListener("DOMNodeInserted",this,!0),(b.c
hildList||b.subtree)&&a.addEventListener("DOMNodeRemoved",this,!0)},removeListen
ers:function(){this.removeListeners_(this.target)},removeListeners_:function(a){
var b=this.options;b.attributes&&a.removeEventListener("DOMAttrModified",this,!0
),b.characterData&&a.removeEventListener("DOMCharacterDataModified",this,!0),b.c
hildList&&a.removeEventListener("DOMNodeInserted",this,!0),(b.childList||b.subtr
ee)&&a.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:funct
ion(a){if(a!==this.target){this.addListeners_(a),this.transientObservedNodes.pus
h(a);var b=p.get(a);b||p.set(a,b=[]),b.push(this)}},removeTransientObservers:fun
ction(){var a=this.transientObservedNodes;this.transientObservedNodes=[],a.forEa
ch(function(a){this.removeListeners_(a);for(var b=p.get(a),c=0;c<b.length;c++)if
(b[c]===this){b.splice(c,1);break}},this)},handleEvent:function(a){switch(a.stop
ImmediatePropagation(),a.type){case"DOMAttrModified":var b=a.attrName,c=a.relate
dNode.namespaceURI,d=a.target,e=new j("attributes",d);e.attributeName=b,e.attrib
uteNamespace=c;var g=a.attrChange===MutationEvent.ADDITION?null:a.prevValue;f(d,
function(a){return!a.attributes||a.attributeFilter&&a.attributeFilter.length&&-1
===a.attributeFilter.indexOf(b)&&-1===a.attributeFilter.indexOf(c)?void 0:a.attr
ibuteOldValue?k(g):e});break;case"DOMCharacterDataModified":var d=a.target,e=j("
characterData",d),g=a.prevValue;f(d,function(a){return a.characterData?a.charact
erDataOldValue?k(g):e:void 0});break;case"DOMNodeRemoved":this.addTransientObser
ver(a.target);case"DOMNodeInserted":var h,i,d=a.relatedNode,m=a.target;"DOMNodeI
nserted"===a.type?(h=[m],i=[]):(h=[],i=[m]);var n=m.previousSibling,o=m.nextSibl
ing,e=j("childList",d);e.addedNodes=h,e.removedNodes=i,e.previousSibling=n,e.nex
tSibling=o,f(d,function(a){return a.childList?e:void 0})}l()}},a.JsMutationObser
ver=g,a.MutationObserver||(a.MutationObserver=g)}(this),window.HTMLImports=windo
w.HTMLImports||{flags:{}},function(a){var b=(a.path,a.xhr),c=a.flags,d=function(
a,b){this.cache={},this.onload=a,this.oncomplete=b,this.inflight=0,this.pending=
{}};d.prototype={addNodes:function(a){this.inflight+=a.length;for(var b,c=0,d=a.
length;d>c&&(b=a[c]);c++)this.require(b);this.checkDone()},addNode:function(a){t
his.inflight++,this.require(a),this.checkDone()},require:function(a){var b=a.src
||a.href;a.__nodeUrl=b,this.dedupe(b,a)||this.fetch(b,a)},dedupe:function(a,b){i
f(this.pending[a])return this.pending[a].push(b),!0;return this.cache[a]?(this.o
nload(a,b,this.cache[a]),this.tail(),!0):(this.pending[a]=[b],!1)},fetch:functio
n(a,d){c.load&&console.log("fetch",a,d);var e=function(b,c){this.receive(a,d,b,c
)}.bind(this);b.load(a,e)},receive:function(a,b,c,d){this.cache[a]=d;for(var e,f
=this.pending[a],g=0,h=f.length;h>g&&(e=f[g]);g++)this.onload(a,e,d),this.tail()
;this.pending[a]=null},tail:function(){--this.inflight,this.checkDone()},checkDo
ne:function(){this.inflight||this.oncomplete()}},b=b||{async:!0,ok:function(a){r
eturn a.status>=200&&a.status<300||304===a.status||0===a.status},load:function(c
,d,e){var f=new XMLHttpRequest;return(a.flags.debug||a.flags.bust)&&(c+="?"+Math
.random()),f.open("GET",c,b.async),f.addEventListener("readystatechange",functio
n(){4===f.readyState&&d.call(e,!b.ok(f)&&f,f.response||f.responseText,c)}),f.sen
d(),f},loadDocument:function(a,b,c){this.load(a,b,c).responseType="document"}},a
.xhr=b,a.Loader=d}(window.HTMLImports),function(a){function b(a){return"link"===
a.localName&&a.rel===d}function c(a){var b=a.ownerDocument.createElement("style"
);return b.textContent=a.textContent,k.resolveUrlsInStyle(b),b}var d="import",e=
a.flags,f=/Trident/.test(navigator.userAgent),g=window.ShadowDOMPolyfill?window.
ShadowDOMPolyfill.wrapIfNeeded(document):document,h={documentSelectors:"link[rel
="+d+"]",importsSelectors:["link[rel="+d+"]","link[rel=stylesheet]","style","scr
ipt:not([type])",'script[type="text/javascript"]'].join(","),map:{link:"parseLin
k",script:"parseScript",style:"parseStyle"},parseNext:function(){var a=this.next
ToParse();a&&this.parse(a)},parse:function(a){if(this.isParsed(a))return void(e.
parse&&console.log("[%s] is already parsed",a.localName));var b=this[this.map[a.
localName]];b&&(this.markParsing(a),b.call(this,a))},markParsing:function(a){e.p
arse&&console.log("parsing",a),this.parsingElement=a},markParsingComplete:functi
on(a){a.__importParsed=!0,a.__importElement&&(a.__importElement.__importParsed=!
0),this.parsingElement=null,e.parse&&console.log("completed",a),this.parseNext()
},parseImport:function(a){if(a.import.__importParsed=!0,HTMLImports.__importsPar
singHook&&HTMLImports.__importsParsingHook(a),a.dispatchEvent(a.__resource?new C
ustomEvent("load",{bubbles:!1}):new CustomEvent("error",{bubbles:!1})),a.__pendi
ng)for(var b;a.__pending.length;)b=a.__pending.shift(),b&&b({target:a});this.mar
kParsingComplete(a)},parseLink:function(a){b(a)?this.parseImport(a):(a.href=a.hr
ef,this.parseGeneric(a))},parseStyle:function(a){var b=a;a=c(a),a.__importElemen
t=b,this.parseGeneric(a)},parseGeneric:function(a){this.trackElement(a),document
.head.appendChild(a)},trackElement:function(a){var b=this,c=function(){b.markPar
singComplete(a)};if(a.addEventListener("load",c),a.addEventListener("error",c),f
&&"style"===a.localName){var d=!1;if(-1==a.textContent.indexOf("@import"))d=!0;e
lse if(a.sheet){d=!0;for(var e,g=a.sheet.cssRules,h=g?g.length:0,i=0;h>i&&(e=g[i
]);i++)e.type===CSSRule.IMPORT_RULE&&(d=d&&Boolean(e.styleSheet))}d&&a.dispatchE
vent(new CustomEvent("load",{bubbles:!1}))}},parseScript:function(b){var c=(b.__
resource||b.textContent).trim();if(c){var d=b.__nodeUrl;if(!d){d=b.ownerDocument
.baseURI;var e="["+Math.floor(1e3*(Math.random()+1))+"]",f=c.match(/Polymer\(['"
]([^'"]*)/);e=f&&f[1]||e,d+="/"+e+".js"}c+="\n//# sourceURL="+d+"\n",a.currentSc
ript=b,eval.call(window,c),a.currentScript=null}this.markParsingComplete(b)},nex
tToParse:function(){return!this.parsingElement&&this.nextToParseInDoc(g)},nextTo
ParseInDoc:function(a,c){for(var d,e=a.querySelectorAll(this.parseSelectorsForNo
de(a)),f=0,g=e.length;g>f&&(d=e[f]);f++)if(!this.isParsed(d))return this.hasReso
urce(d)?b(d)?this.nextToParseInDoc(d.import,d):d:void 0;return c},parseSelectors
ForNode:function(a){var b=a.ownerDocument||a;return b===g?this.documentSelectors
:this.importsSelectors},isParsed:function(a){return a.__importParsed},hasResourc
e:function(a){return b(a)&&!a.import?!1:"script"===a.localName&&a.src&&!a.__reso
urce?!1:!0}},i=/(url\()([^)]*)(\))/g,j=/(@import[\s]+(?!url\())([^;]*)(;)/g,k={r
esolveUrlsInStyle:function(a){var b=a.ownerDocument,c=b.createElement("a");retur
n a.textContent=this.resolveUrlsInCssText(a.textContent,c),a},resolveUrlsInCssTe
xt:function(a,b){var c=this.replaceUrls(a,b,i);return c=this.replaceUrls(c,b,j)}
,replaceUrls:function(a,b,c){return a.replace(c,function(a,c,d,e){var f=d.replac
e(/["']/g,"");return b.href=f,f=b.href,c+"'"+f+"'"+e})}};a.parser=h,a.path=k,a.i
sIE=f}(HTMLImports),function(a){function b(a){return c(a,m)}function c(a,b){retu
rn"link"===a.localName&&a.getAttribute("rel")===b}function d(a,b){var c=a;c inst
anceof Document||(c=document.implementation.createHTMLDocument(m)),c._URL=b;var
d=c.createElement("base");return d.setAttribute("href",b),c.baseURI||(c.baseURI=
b),c.head.appendChild(d),a instanceof Document||(c.body.innerHTML=a),window.HTML
TemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(c)
,c}function e(a,b){b=b||n,g(function(){h(a,b)},b)}function f(a){return"complete"
===a.readyState||a.readyState===u}function g(a,b){if(f(b))a&&a();else{var c=func
tion(){("complete"===b.readyState||b.readyState===u)&&(b.removeEventListener(v,c
),g(a,b))};b.addEventListener(v,c)}}function h(a,b){function c(){f==g&&requestAn
imationFrame(a)}function d(){f++,c()}var e=b.querySelectorAll("link[rel=import]"
),f=0,g=e.length;if(g)for(var h,j=0;g>j&&(h=e[j]);j++)i(h)?d.call(h):(h.addEvent
Listener("load",d),h.addEventListener("error",d));else c()}function i(a){return
k?a.import&&"loading"!==a.import.readyState:a.__importParsed}var j="import"in do
cument.createElement("link"),k=j,l=a.flags,m="import",n=window.ShadowDOMPolyfill
?ShadowDOMPolyfill.wrapIfNeeded(document):document;if(k)var o={};else var p=(a.x
hr,a.Loader),q=a.parser,o={documents:{},documentPreloadSelectors:"link[rel="+m+"
]",importsPreloadSelectors:["link[rel="+m+"]","script[src]:not([type])",'script[
src][type="text/javascript"]'].join(","),loadNode:function(a){r.addNode(a)},load
Subtree:function(a){var b=this.marshalNodes(a);r.addNodes(b)},marshalNodes:funct
ion(a){return a.querySelectorAll(this.loadSelectorsForNode(a))},loadSelectorsFor
Node:function(a){var b=a.ownerDocument||a;return b===n?this.documentPreloadSelec
tors:this.importsPreloadSelectors},loaded:function(a,c,e){if(l.load&&console.log
("loaded",a,c),c.__resource=e,b(c)){var f=this.documents[a];f||(f=d(e,a),f.__imp
ortLink=c,this.bootDocument(f),this.documents[a]=f),c.import=f}q.parseNext()},bo
otDocument:function(a){this.loadSubtree(a),this.observe(a),q.parseNext()},loaded
All:function(){q.parseNext()}},r=new p(o.loaded.bind(o),o.loadedAll.bind(o));var
s={get:function(){return HTMLImports.currentScript||document.currentScript},con
figurable:!0};if(Object.defineProperty(document,"_currentScript",s),Object.defin
eProperty(n,"_currentScript",s),!document.baseURI){var t={get:function(){return
window.location.href},configurable:!0};Object.defineProperty(document,"baseURI",
t),Object.defineProperty(n,"baseURI",t)}var u=HTMLImports.isIE?"complete":"inter
active",v="readystatechange";a.hasNative=j,a.useNative=k,a.importer=o,a.whenImpo
rtsReady=e,a.IMPORT_LINK_TYPE=m,a.isImportLoaded=i,a.importLoader=r}(window.HTML
Imports),function(a){function b(a){for(var b,d=0,e=a.length;e>d&&(b=a[d]);d++)"c
hildList"===b.type&&b.addedNodes.length&&c(b.addedNodes)}function c(a){for(var b
,e=0,g=a.length;g>e&&(b=a[e]);e++)d(b)&&f.loadNode(b),b.children&&b.children.len
gth&&c(b.children)}function d(a){return 1===a.nodeType&&g.call(a,f.loadSelectors
ForNode(a))}function e(a){h.observe(a,{childList:!0,subtree:!0})}var f=(a.IMPORT
_LINK_TYPE,a.importer),g=HTMLElement.prototype.matches||HTMLElement.prototype.ma
tchesSelector||HTMLElement.prototype.webkitMatchesSelector||HTMLElement.prototyp
e.mozMatchesSelector||HTMLElement.prototype.msMatchesSelector,h=new MutationObse
rver(b);a.observe=e,f.observe=e}(HTMLImports),function(){function a(){HTMLImport
s.importer.bootDocument(b)}"function"!=typeof window.CustomEvent&&(window.Custom
Event=function(a,b){var c=document.createEvent("HTMLEvents");return c.initEvent(
a,b.bubbles===!1?!1:!0,b.cancelable===!1?!1:!0,b.detail),c});var b=window.Shadow
DOMPolyfill?window.ShadowDOMPolyfill.wrapIfNeeded(document):document;HTMLImports
.whenImportsReady(function(){HTMLImports.ready=!0,HTMLImports.readyTime=(new Dat
e).getTime(),b.dispatchEvent(new CustomEvent("HTMLImportsLoaded",{bubbles:!0}))}
),HTMLImports.useNative||("complete"===document.readyState||"interactive"===docu
ment.readyState&&!window.attachEvent?a():document.addEventListener("DOMContentLo
aded",a))}(),window.CustomElements=window.CustomElements||{flags:{}},function(a)
{function b(a,c,d){var e=a.firstElementChild;if(!e)for(e=a.firstChild;e&&e.nodeT
ype!==Node.ELEMENT_NODE;)e=e.nextSibling;for(;e;)c(e,d)!==!0&&b(e,c,d),e=e.nextE
lementSibling;return null}function c(a,b){for(var c=a.shadowRoot;c;)d(c,b),c=c.o
lderShadowRoot}function d(a,d){b(a,function(a){return d(a)?!0:void c(a,d)}),c(a,
d)}function e(a){return h(a)?(i(a),!0):void l(a)}function f(a){d(a,function(a){r
eturn e(a)?!0:void 0})}function g(a){return e(a)||f(a)}function h(b){if(!b.__upg
raded__&&b.nodeType===Node.ELEMENT_NODE){var c=b.getAttribute("is")||b.localName
,d=a.registry[c];if(d)return A.dom&&console.group("upgrade:",b.localName),a.upgr
ade(b),A.dom&&console.groupEnd(),!0}}function i(a){l(a),r(a)&&d(a,function(a){l(
a)})}function j(a){if(E.push(a),!D){D=!0;var b=window.Platform&&window.Platform.
endOfMicrotask||setTimeout;b(k)}}function k(){D=!1;for(var a,b=E,c=0,d=b.length;
d>c&&(a=b[c]);c++)a();E=[]}function l(a){C?j(function(){m(a)}):m(a)}function m(a
){(a.attachedCallback||a.detachedCallback||a.__upgraded__&&A.dom)&&(A.dom&&conso
le.group("inserted:",a.localName),r(a)&&(a.__inserted=(a.__inserted||0)+1,a.__in
serted<1&&(a.__inserted=1),a.__inserted>1?A.dom&&console.warn("inserted:",a.loca
lName,"insert/remove count:",a.__inserted):a.attachedCallback&&(A.dom&&console.l
og("inserted:",a.localName),a.attachedCallback())),A.dom&&console.groupEnd())}fu
nction n(a){o(a),d(a,function(a){o(a)})}function o(a){C?j(function(){p(a)}):p(a)
}function p(a){(a.attachedCallback||a.detachedCallback||a.__upgraded__&&A.dom)&&
(A.dom&&console.group("removed:",a.localName),r(a)||(a.__inserted=(a.__inserted|
|0)-1,a.__inserted>0&&(a.__inserted=0),a.__inserted<0?A.dom&&console.warn("remov
ed:",a.localName,"insert/remove count:",a.__inserted):a.detachedCallback&&a.deta
chedCallback()),A.dom&&console.groupEnd())}function q(a){return window.ShadowDOM
Polyfill?ShadowDOMPolyfill.wrapIfNeeded(a):a}function r(a){for(var b=a,c=q(docum
ent);b;){if(b==c)return!0;b=b.parentNode||b.host}}function s(a){if(a.shadowRoot&
&!a.shadowRoot.__watched){A.dom&&console.log("watching shadow-root for: ",a.loca
lName);for(var b=a.shadowRoot;b;)t(b),b=b.olderShadowRoot}}function t(a){a.__wat
ched||(w(a),a.__watched=!0)}function u(a){if(A.dom){var b=a[0];if(b&&"childList"
===b.type&&b.addedNodes&&b.addedNodes){for(var c=b.addedNodes[0];c&&c!==document
&&!c.host;)c=c.parentNode;var d=c&&(c.URL||c._URL||c.host&&c.host.localName)||""
;d=d.split("/?").shift().split("/").pop()}console.group("mutations (%d) [%s]",a.
length,d||"")}a.forEach(function(a){"childList"===a.type&&(G(a.addedNodes,functi
on(a){a.localName&&g(a)}),G(a.removedNodes,function(a){a.localName&&n(a)}))}),A.
dom&&console.groupEnd()}function v(){u(F.takeRecords()),k()}function w(a){F.obse
rve(a,{childList:!0,subtree:!0})}function x(a){w(a)}function y(a){A.dom&&console
.group("upgradeDocument: ",a.baseURI.split("/").pop()),g(a),A.dom&&console.group
End()}function z(a){a=q(a),y(a);for(var b,c=a.querySelectorAll("link[rel="+B+"]"
),d=0,e=c.length;e>d&&(b=c[d]);d++)b.import&&b.import.__parsed&&z(b.import)}var
A=window.logFlags||{},B=window.HTMLImports?HTMLImports.IMPORT_LINK_TYPE:"none",C
=!window.MutationObserver||window.MutationObserver===window.JsMutationObserver;a
.hasPolyfillMutations=C;var D=!1,E=[],F=new MutationObserver(u),G=Array.prototyp
e.forEach.call.bind(Array.prototype.forEach);a.IMPORT_LINK_TYPE=B,a.watchShadow=
s,a.upgradeDocumentTree=z,a.upgradeAll=g,a.upgradeSubtree=f,a.observeDocument=x,
a.upgradeDocument=y,a.takeRecords=v}(window.CustomElements),function(a){function
b(b,f){var g=f||{};if(!b)throw new Error("document.registerElement: first argum
ent `name` must not be empty");if(b.indexOf("-")<0)throw new Error("document.reg
isterElement: first argument ('name') must contain a dash ('-'). Argument provid
ed was '"+String(b)+"'.");if(m(b))throw new Error("DuplicateDefinitionError: a t
ype with name '"+String(b)+"' is already registered");if(!g.prototype)throw new
Error("Options missing required prototype property");return g.__name=b.toLowerCa
se(),g.lifecycle=g.lifecycle||{},g.ancestry=c(g.extends),d(g),e(g),k(g.prototype
),n(g.__name,g),g.ctor=o(g),g.ctor.prototype=g.prototype,g.prototype.constructor
=g.ctor,a.ready&&a.upgradeDocumentTree(document),g.ctor}function c(a){var b=m(a)
;return b?c(b.extends).concat([b]):[]}function d(a){for(var b,c=a.extends,d=0;b=
a.ancestry[d];d++)c=b.is&&b.tag;a.tag=c||a.__name,c&&(a.is=a.__name)}function e(
a){if(!Object.__proto__){var b=HTMLElement.prototype;if(a.is){var c=document.cre
ateElement(a.tag);b=Object.getPrototypeOf(c)}for(var d,e=a.prototype;e&&e!==b;){
var d=Object.getPrototypeOf(e);e.__proto__=d,e=d}}a.native=b}function f(a){retur
n g(x(a.tag),a)}function g(b,c){return c.is&&b.setAttribute("is",c.is),b.removeA
ttribute("unresolved"),h(b,c),b.__upgraded__=!0,j(b),a.upgradeSubtree(b),b}funct
ion h(a,b){Object.__proto__?a.__proto__=b.prototype:(i(a,b.prototype,b.native),a
.__proto__=b.prototype)}function i(a,b,c){for(var d={},e=b;e!==c&&e!==HTMLUnknow
nElement.prototype;){for(var f,g=Object.getOwnPropertyNames(e),h=0;f=g[h];h++)d[
f]||(Object.defineProperty(a,f,Object.getOwnPropertyDescriptor(e,f)),d[f]=1);e=O
bject.getPrototypeOf(e)}}function j(a){a.createdCallback&&a.createdCallback()}fu
nction k(a){if(!a.setAttribute._polyfilled){var b=a.setAttribute;a.setAttribute=
function(a,c){l.call(this,a,c,b)};var c=a.removeAttribute;a.removeAttribute=func
tion(a){l.call(this,a,null,c)},a.setAttribute._polyfilled=!0}}function l(a,b,c){
var d=this.getAttribute(a);c.apply(this,arguments);var e=this.getAttribute(a);th
is.attributeChangedCallback&&e!==d&&this.attributeChangedCallback(a,d,e)}functio
n m(a){return a?w[a.toLowerCase()]:void 0}function n(a,b){if(w[a])throw new Erro
r("a type with that name is already registered.");w[a]=b}function o(a){return fu
nction(){return f(a)}}function p(a,b){var c=m(b||a);if(c){if(a==c.tag&&b==c.is)r
eturn new c.ctor;if(!b&&!c.is)return new c.ctor}if(b){var d=p(a);return d.setAtt
ribute("is",b),d}var d=x(a);return a.indexOf("-")>=0&&h(d,HTMLElement),d}functio
n q(a){if(!a.__upgraded__&&a.nodeType===Node.ELEMENT_NODE){var b=a.getAttribute(
"is"),c=m(b||a.localName);if(c){if(b&&c.tag==a.localName)return g(a,c);if(!b&&!c
.extends)return g(a,c)}}}function r(b){var c=y.call(this,b);return a.upgradeAll(
c),c}a||(a=window.CustomElements={flags:{}});var s=a.flags,t=Boolean(document.re
gisterElement),u=!s.register&&t&&!window.ShadowDOMPolyfill;if(u){var v=function(
){};a.registry={},a.upgradeElement=v,a.watchShadow=v,a.upgrade=v,a.upgradeAll=v,
a.upgradeSubtree=v,a.observeDocument=v,a.upgradeDocument=v,a.upgradeDocumentTree
=v,a.takeRecords=v}else{var w={},x=document.createElement.bind(document),y=Node.
prototype.cloneNode;document.registerElement=b,document.createElement=p,Node.pro
totype.cloneNode=r,a.registry=w,a.upgrade=q}document.register=document.registerE
lement,a.hasNative=t,a.useNative=u}(window.CustomElements),function(a){function
b(a){return"link"===a.localName&&a.getAttribute("rel")===c}var c=a.IMPORT_LINK_T
YPE,d={selectors:["link[rel="+c+"]"],map:{link:"parseLink"},parse:function(a){if
(!a.__parsed){a.__parsed=!0;var b=a.querySelectorAll(d.selectors);e(b,function(a
){d[d.map[a.localName]](a)}),CustomElements.upgradeDocument(a),CustomElements.ob
serveDocument(a)}},parseLink:function(a){b(a)&&this.parseImport(a)},parseImport:
function(a){a.import&&d.parse(a.import)}},e=Array.prototype.forEach.call.bind(Ar
ray.prototype.forEach);a.parser=d,a.IMPORT_LINK_TYPE=c}(window.CustomElements),f
unction(a){function b(){CustomElements.parser.parse(document),CustomElements.upg
radeDocument(document);var a=window.Platform&&Platform.endOfMicrotask?Platform.e
ndOfMicrotask:setTimeout;a(function(){CustomElements.ready=!0,CustomElements.rea
dyTime=Date.now(),window.HTMLImports&&(CustomElements.elapsed=CustomElements.rea
dyTime-HTMLImports.readyTime),document.dispatchEvent(new CustomEvent("WebCompone
ntsReady",{bubbles:!0})),window.HTMLImports&&(HTMLImports.__importsParsingHook=f
unction(a){CustomElements.parser.parse(a.import)})})}if("function"!=typeof windo
w.CustomEvent&&(window.CustomEvent=function(a){var b=document.createEvent("HTMLE
vents");return b.initEvent(a,!0,!0),b}),"complete"===document.readyState||a.flag
s.eager)b();else if("interactive"!==document.readyState||window.attachEvent||win
dow.HTMLImports&&!window.HTMLImports.ready){var c=window.HTMLImports&&!HTMLImpor
ts.ready?"HTMLImportsLoaded":"DOMContentLoaded";window.addEventListener(c,b)}els
e b()}(window.CustomElements),function(){var a=document.createElement("style");a
.textContent="element {display: none !important;} /* injected by platform.js */"
;var b=document.querySelector("head");if(b.insertBefore(a,b.firstChild),window.S
hadowDOMPolyfill){var c=["upgradeAll","upgradeSubtree","observeDocument","upgrad
eDocument"],d={};c.forEach(function(a){d[a]=CustomElements[a]}),c.forEach(functi
on(a){CustomElements[a]=function(b){return d[a](wrap(b))}})}}(),function(a){func
tion b(a,b){var d=c(a);b&&(d.addEventListener("load",b),d.addEventListener("erro
r",b)),j.appendChild(d)}function c(a,b){b=b||document,b=b.createElement?b:b.owne
rDocument;var c=b.createElement("style");return c.textContent=a,c}function d(a,b
){HTMLImports.xhr.load(e(a),function(a,c,d){f(this,d,c),this.textContent=g.resol
veCssText(this.textContent,d),b&&b(this)},a)}function e(a){var b=a.textContent.m
atch(k);return b&&b[1]}function f(a,b,c){var d=new RegExp("@import[^;]*"+b+"[^;]
*;","i");a.textContent=a.textContent.replace(d,c)}var g=a.urlResolver,h={cacheSt
yles:function(a,c){for(var d,e=[],f=0,g=a.length;g>f&&(d=a[f]);f++)e.push(d.text
Content);b(e.join("\n"),c)},xhrStyles:function(a,b){function c(){f++,f===g&&b&&b
()}for(var e,f=0,g=a.length,h=0;g>h&&(e=a[h]);h++)d(e,c)}},i=document.createElem
ent("preloader");i.style.display="none";var j=i.createShadowRoot();document.head
.appendChild(i);var k=/@import\s[(]?['"]?([^\s'";)]*)/;a.loader=h}(window.Platfo
rm),function(a){a=a||{},a.external=a.external||{};var b={shadow:function(a){retu
rn a?a.shadowRoot||a.webkitShadowRoot:void 0},canTarget:function(a){return a&&Bo
olean(a.elementFromPoint)},targetingShadow:function(a){var b=this.shadow(a);retu
rn this.canTarget(b)?b:void 0},olderShadow:function(a){var b=a.olderShadowRoot;i
f(!b){var c=a.querySelector("shadow");c&&(b=c.olderShadowRoot)}return b},allShad
ows:function(a){for(var b=[],c=this.shadow(a);c;)b.push(c),c=this.olderShadow(c)
;return b},searchRoot:function(a,b,c){if(a){var d,e,f=a.elementFromPoint(b,c);fo
r(e=this.targetingShadow(f);e;){if(d=e.elementFromPoint(b,c)){var g=this.targeti
ngShadow(d);return this.searchRoot(g,b,c)||d}e=this.olderShadow(e)}return f}},ow
ner:function(a){for(var b=a;b.parentNode;)b=b.parentNode;return b.nodeType!=Node
.DOCUMENT_NODE&&b.nodeType!=Node.DOCUMENT_FRAGMENT_NODE&&(b=document),b},findTar
get:function(a){var b=a.clientX,c=a.clientY,d=this.owner(a.target);return d.elem
entFromPoint(b,c)||(d=document),this.searchRoot(d,b,c)}};a.targetFinding=b,a.fin
dTarget=b.findTarget.bind(b),window.PointerEventsPolyfill=a}(window.PointerEvent
sPolyfill),function(){function a(a){return"body ^^ "+b(a)}function b(a){return'[
touch-action="'+a+'"]'}function c(a){return"{ -ms-touch-action: "+a+"; touch-act
ion: "+a+"; touch-action-delay: none; }"}var d=["none","auto","pan-x","pan-y",{r
ule:"pan-x pan-y",selectors:["pan-x pan-y","pan-y pan-x"]}],e="";d.forEach(funct
ion(d){String(d)===d?(e+=b(d)+c(d)+"\n",e+=a(d)+c(d)+"\n"):(e+=d.selectors.map(b
)+c(d.rule)+"\n",e+=d.selectors.map(a)+c(d.rule)+"\n")});var f=document.createEl
ement("style");f.textContent=e,document.head.appendChild(f)}(),function(a){funct
ion b(a,e){e=e||{};var f;if(e.buttons||d)f=e.buttons;else switch(e.which){case 1
:f=1;break;case 2:f=4;break;case 3:f=2;break;default:f=0}var i;if(c)i=new MouseE
vent(a,e);else{i=document.createEvent("MouseEvent");for(var j,k={},l=0;l<g.lengt
h;l++)j=g[l],k[j]=e[j]||h[l];i.initMouseEvent(a,k.bubbles,k.cancelable,k.view,k.
detail,k.screenX,k.screenY,k.clientX,k.clientY,k.ctrlKey,k.altKey,k.shiftKey,k.m
etaKey,k.button,k.relatedTarget)}i.__proto__=b.prototype,d||Object.definePropert
y(i,"buttons",{get:function(){return f},enumerable:!0});var m=0;return m=e.press
ure?e.pressure:f?.5:0,Object.defineProperties(i,{pointerId:{value:e.pointerId||0
,enumerable:!0},width:{value:e.width||0,enumerable:!0},height:{value:e.height||0
,enumerable:!0},pressure:{value:m,enumerable:!0},tiltX:{value:e.tiltX||0,enumera
ble:!0},tiltY:{value:e.tiltY||0,enumerable:!0},pointerType:{value:e.pointerType|
|"",enumerable:!0},hwTimestamp:{value:e.hwTimestamp||0,enumerable:!0},isPrimary:
{value:e.isPrimary||!1,enumerable:!0}}),i}var c=!1,d=!1;try{var e=new MouseEvent
("click",{buttons:1});c=!0,d=1===e.buttons}catch(f){}var g=["bubbles","cancelabl
e","view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","s
hiftKey","metaKey","button","relatedTarget"],h=[!1,!1,null,null,0,0,0,0,!1,!1,!1
,!1,0,null];b.prototype=Object.create(MouseEvent.prototype),a.PointerEvent||(a.P
ointerEvent=b)}(window),function(a){function b(){if(c){var a=new Map;return a.po
inters=d,a}this.keys=[],this.values=[]}var c=window.Map&&window.Map.prototype.fo
rEach,d=function(){return this.size};b.prototype={set:function(a,b){var c=this.k
eys.indexOf(a);c>-1?this.values[c]=b:(this.keys.push(a),this.values.push(b))},ha
s:function(a){return this.keys.indexOf(a)>-1},"delete":function(a){var b=this.ke
ys.indexOf(a);b>-1&&(this.keys.splice(b,1),this.values.splice(b,1))},get:functio
n(a){var b=this.keys.indexOf(a);return this.values[b]},clear:function(){this.key
s.length=0,this.values.length=0},forEach:function(a,b){this.values.forEach(funct
ion(c,d){a.call(b,c,this.keys[d],this)},this)},pointers:function(){return this.k
eys.length}},a.PointerMap=b}(window.PointerEventsPolyfill),function(a){var b=["b
ubbles","cancelable","view","detail","screenX","screenY","clientX","clientY","ct
rlKey","altKey","shiftKey","metaKey","button","relatedTarget","buttons","pointer
Id","width","height","pressure","tiltX","tiltY","pointerType","hwTimestamp","isP
rimary","type","target","currentTarget","which"],c=[!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],d="undefined"!=typeof SVGEl
ementInstance,e={targets:new WeakMap,handledEvents:new WeakMap,pointermap:new a.
PointerMap,eventMap:{},eventSources:{},eventSourceList:[],registerSource:functio
n(a,b){var c=b,d=c.events;d&&(d.forEach(function(a){c[a]&&(this.eventMap[a]=c[a]
.bind(c))},this),this.eventSources[a]=c,this.eventSourceList.push(c))},register:
function(a){for(var b,c=this.eventSourceList.length,d=0;c>d&&(b=this.eventSource
List[d]);d++)b.register.call(b,a)},unregister:function(a){for(var b,c=this.event
SourceList.length,d=0;c>d&&(b=this.eventSourceList[d]);d++)b.unregister.call(b,a
)},contains:a.external.contains||function(a,b){return a.contains(b)},down:functi
on(a){this.fireEvent("pointerdown",a)},move:function(a){this.fireEvent("pointerm
ove",a)},up:function(a){this.fireEvent("pointerup",a)},enter:function(a){a.bubbl
es=!1,this.fireEvent("pointerenter",a)},leave:function(a){a.bubbles=!1,this.fire
Event("pointerleave",a)},over:function(a){a.bubbles=!0,this.fireEvent("pointerov
er",a)},out:function(a){a.bubbles=!0,this.fireEvent("pointerout",a)},cancel:func
tion(a){this.fireEvent("pointercancel",a)},leaveOut:function(a){this.out(a),this
.contains(a.target,a.relatedTarget)||this.leave(a)},enterOver:function(a){this.o
ver(a),this.contains(a.target,a.relatedTarget)||this.enter(a)},eventHandler:func
tion(a){if(!this.handledEvents.get(a)){var b=a.type,c=this.eventMap&&this.eventM
ap[b];c&&c(a),this.handledEvents.set(a,!0)}},listen:function(a,b){b.forEach(func
tion(b){this.addEvent(a,b)},this)},unlisten:function(a,b){b.forEach(function(b){
this.removeEvent(a,b)},this)},addEvent:a.external.addEvent||function(a,b){a.addE
ventListener(b,this.boundHandler)},removeEvent:a.external.removeEvent||function(
a,b){a.removeEventListener(b,this.boundHandler)},makeEvent:function(a,b){this.ca
ptureInfo&&(b.relatedTarget=null);var c=new PointerEvent(a,b);return b.preventDe
fault&&(c.preventDefault=b.preventDefault),this.targets.set(c,this.targets.get(b
)||b.target),c},fireEvent:function(a,b){var c=this.makeEvent(a,b);return this.di
spatchEvent(c)},cloneEvent:function(a){for(var e,f={},g=0;g<b.length;g++)e=b[g],
f[e]=a[e]||c[g],!d||"target"!==e&&"relatedTarget"!==e||f[e]instanceof SVGElement
Instance&&(f[e]=f[e].correspondingUseElement);return a.preventDefault&&(f.preven
tDefault=function(){a.preventDefault()}),f},getTarget:function(a){return this.ca
ptureInfo&&this.captureInfo.id===a.pointerId?this.captureInfo.target:this.target
s.get(a)},setCapture:function(a,b){this.captureInfo&&this.releaseCapture(this.ca
ptureInfo.id),this.captureInfo={id:a,target:b};var c=new PointerEvent("gotpointe
rcapture",{bubbles:!0});this.implicitRelease=this.releaseCapture.bind(this,a),do
cument.addEventListener("pointerup",this.implicitRelease),document.addEventListe
ner("pointercancel",this.implicitRelease),this.targets.set(c,b),this.asyncDispat
chEvent(c)},releaseCapture:function(a){if(this.captureInfo&&this.captureInfo.id=
==a){var b=new PointerEvent("lostpointercapture",{bubbles:!0}),c=this.captureInf
o.target;this.captureInfo=null,document.removeEventListener("pointerup",this.imp
licitRelease),document.removeEventListener("pointercancel",this.implicitRelease)
,this.targets.set(b,c),this.asyncDispatchEvent(b)}},dispatchEvent:a.external.dis
patchEvent||function(a){var b=this.getTarget(a);return b?b.dispatchEvent(a):void
0},asyncDispatchEvent:function(a){setTimeout(this.dispatchEvent.bind(this,a),0)
}};e.boundHandler=e.eventHandler.bind(e),a.dispatcher=e,a.register=e.register.bi
nd(e),a.unregister=e.unregister.bind(e)}(window.PointerEventsPolyfill),function(
a){function b(a,b,c,d){this.addCallback=a.bind(d),this.removeCallback=b.bind(d),
this.changedCallback=c.bind(d),g&&(this.observer=new g(this.mutationWatcher.bind
(this)))}var c=Array.prototype.forEach.call.bind(Array.prototype.forEach),d=Arra
y.prototype.map.call.bind(Array.prototype.map),e=Array.prototype.slice.call.bind
(Array.prototype.slice),f=Array.prototype.filter.call.bind(Array.prototype.filte
r),g=window.MutationObserver||window.WebKitMutationObserver,h="[touch-action]",i
={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,attributeFilter:["t
ouch-action"]};b.prototype={watchSubtree:function(b){a.targetFinding.canTarget(b
)&&this.observer.observe(b,i)},enableOnSubtree:function(a){this.watchSubtree(a),
a===document&&"complete"!==document.readyState?this.installOnLoad():this.install
NewSubtree(a) |
| 33 },installNewSubtree:function(a){c(this.findElements(a),this.addElement,this)},fi
ndElements:function(a){return a.querySelectorAll?a.querySelectorAll(h):[]},remov
eElement:function(a){this.removeCallback(a)},addElement:function(a){this.addCall
back(a)},elementChanged:function(a,b){this.changedCallback(a,b)},concatLists:fun
ction(a,b){return a.concat(e(b))},installOnLoad:function(){document.addEventList
ener("DOMContentLoaded",this.installNewSubtree.bind(this,document))},isElement:f
unction(a){return a.nodeType===Node.ELEMENT_NODE},flattenMutationTree:function(a
){var b=d(a,this.findElements,this);return b.push(f(a,this.isElement)),b.reduce(
this.concatLists,[])},mutationWatcher:function(a){a.forEach(this.mutationHandler
,this)},mutationHandler:function(a){if("childList"===a.type){var b=this.flattenM
utationTree(a.addedNodes);b.forEach(this.addElement,this);var c=this.flattenMuta
tionTree(a.removedNodes);c.forEach(this.removeElement,this)}else"attributes"===a
.type&&this.elementChanged(a.target,a.oldValue)}},g||(b.prototype.watchSubtree=f
unction(){console.warn("PointerEventsPolyfill: MutationObservers not found, touc
h-action will not be dynamically detected")}),a.Installer=b}(window.PointerEvent
sPolyfill),function(a){var b=a.dispatcher,c=b.pointermap,d=25,e={POINTER_ID:1,PO
INTER_TYPE:"mouse",events:["mousedown","mousemove","mouseup","mouseover","mouseo
ut"],register:function(a){b.listen(a,this.events)},unregister:function(a){b.unli
sten(a,this.events)},lastTouches:[],isEventSimulatedFromTouch:function(a){for(va
r b,c=this.lastTouches,e=a.clientX,f=a.clientY,g=0,h=c.length;h>g&&(b=c[g]);g++)
{var i=Math.abs(e-b.x),j=Math.abs(f-b.y);if(d>=i&&d>=j)return!0}},prepareEvent:f
unction(a){var c=b.cloneEvent(a),d=c.preventDefault;return c.preventDefault=func
tion(){a.preventDefault(),d()},c.pointerId=this.POINTER_ID,c.isPrimary=!0,c.poin
terType=this.POINTER_TYPE,c},mousedown:function(a){if(!this.isEventSimulatedFrom
Touch(a)){var d=c.has(this.POINTER_ID);d&&this.cancel(a);var e=this.prepareEvent
(a);c.set(this.POINTER_ID,a),b.down(e)}},mousemove:function(a){if(!this.isEventS
imulatedFromTouch(a)){var c=this.prepareEvent(a);b.move(c)}},mouseup:function(a)
{if(!this.isEventSimulatedFromTouch(a)){var d=c.get(this.POINTER_ID);if(d&&d.but
ton===a.button){var e=this.prepareEvent(a);b.up(e),this.cleanupMouse()}}},mouseo
ver:function(a){if(!this.isEventSimulatedFromTouch(a)){var c=this.prepareEvent(a
);b.enterOver(c)}},mouseout:function(a){if(!this.isEventSimulatedFromTouch(a)){v
ar c=this.prepareEvent(a);b.leaveOut(c)}},cancel:function(a){var c=this.prepareE
vent(a);b.cancel(c),this.cleanupMouse()},cleanupMouse:function(){c["delete"](thi
s.POINTER_ID)}};a.mouseEvents=e}(window.PointerEventsPolyfill),function(a){var b
,c=a.dispatcher,d=a.findTarget,e=a.targetFinding.allShadows.bind(a.targetFinding
),f=c.pointermap,g=Array.prototype.map.call.bind(Array.prototype.map),h=2500,i=2
00,j="touch-action",k=!1,l={scrollType:new WeakMap,events:["touchstart","touchmo
ve","touchend","touchcancel"],register:function(a){k?c.listen(a,this.events):b.e
nableOnSubtree(a)},unregister:function(a){k&&c.unlisten(a,this.events)},elementA
dded:function(a){var b=a.getAttribute(j),d=this.touchActionToScrollType(b);d&&(t
his.scrollType.set(a,d),c.listen(a,this.events),e(a).forEach(function(a){this.sc
rollType.set(a,d),c.listen(a,this.events)},this))},elementRemoved:function(a){th
is.scrollType["delete"](a),c.unlisten(a,this.events),e(a).forEach(function(a){th
is.scrollType["delete"](a),c.unlisten(a,this.events)},this)},elementChanged:func
tion(a,b){var c=a.getAttribute(j),d=this.touchActionToScrollType(c),f=this.touch
ActionToScrollType(b);d&&f?(this.scrollType.set(a,d),e(a).forEach(function(a){th
is.scrollType.set(a,d)},this)):f?this.elementRemoved(a):d&&this.elementAdded(a)}
,scrollTypes:{EMITTER:"none",XSCROLLER:"pan-x",YSCROLLER:"pan-y",SCROLLER:/^(?:p
an-x pan-y)|(?:pan-y pan-x)|auto$/},touchActionToScrollType:function(a){var b=a,
c=this.scrollTypes;return"none"===b?"none":b===c.XSCROLLER?"X":b===c.YSCROLLER?"
Y":c.SCROLLER.exec(b)?"XY":void 0},POINTER_TYPE:"touch",firstTouch:null,isPrimar
yTouch:function(a){return this.firstTouch===a.identifier},setPrimaryTouch:functi
on(a){(0===f.pointers()||1===f.pointers()&&f.has(1))&&(this.firstTouch=a.identif
ier,this.firstXY={X:a.clientX,Y:a.clientY},this.scrolling=!1,this.cancelResetCli
ckCount())},removePrimaryPointer:function(a){a.isPrimary&&(this.firstTouch=null,
this.firstXY=null,this.resetClickCount())},clickCount:0,resetId:null,resetClickC
ount:function(){var a=function(){this.clickCount=0,this.resetId=null}.bind(this)
;this.resetId=setTimeout(a,i)},cancelResetClickCount:function(){this.resetId&&cl
earTimeout(this.resetId)},touchToPointer:function(a){var b=c.cloneEvent(a);retur
n b.pointerId=a.identifier+2,b.target=d(b),b.bubbles=!0,b.cancelable=!0,b.detail
=this.clickCount,b.button=0,b.buttons=1,b.width=a.webkitRadiusX||a.radiusX||0,b.
height=a.webkitRadiusY||a.radiusY||0,b.pressure=a.webkitForce||a.force||.5,b.isP
rimary=this.isPrimaryTouch(a),b.pointerType=this.POINTER_TYPE,b},processTouches:
function(a,b){var c=a.changedTouches,d=g(c,this.touchToPointer,this);d.forEach(f
unction(b){b.preventDefault=function(){this.scrolling=!1,this.firstXY=null,a.pre
ventDefault()}},this),d.forEach(b,this)},shouldScroll:function(a){if(this.firstX
Y){var b,c=this.scrollType.get(a.currentTarget);if("none"===c)b=!1;else if("XY"=
==c)b=!0;else{var d=a.changedTouches[0],e=c,f="Y"===c?"X":"Y",g=Math.abs(d["clie
nt"+e]-this.firstXY[e]),h=Math.abs(d["client"+f]-this.firstXY[f]);b=g>=h}return
this.firstXY=null,b}},findTouch:function(a,b){for(var c,d=0,e=a.length;e>d&&(c=a
[d]);d++)if(c.identifier===b)return!0},vacuumTouches:function(a){var b=a.touches
;if(f.pointers()>=b.length){var c=[];f.forEach(function(a,d){if(1!==d&&!this.fin
dTouch(b,d-2)){var e=a.out;c.push(this.touchToPointer(e))}},this),c.forEach(this
.cancelOut,this)}},touchstart:function(a){this.vacuumTouches(a),this.setPrimaryT
ouch(a.changedTouches[0]),this.dedupSynthMouse(a),this.scrolling||(this.clickCou
nt++,this.processTouches(a,this.overDown))},overDown:function(a){f.set(a.pointer
Id,{target:a.target,out:a,outTarget:a.target});c.over(a),c.enter(a),c.down(a)},t
ouchmove:function(a){this.scrolling||(this.shouldScroll(a)?(this.scrolling=!0,th
is.touchcancel(a)):(a.preventDefault(),this.processTouches(a,this.moveOverOut)))
},moveOverOut:function(a){var b=a,d=f.get(b.pointerId);if(d){var e=d.out,g=d.out
Target;c.move(b),e&&g!==b.target&&(e.relatedTarget=b.target,b.relatedTarget=g,e.
target=g,b.target?(c.leaveOut(e),c.enterOver(b)):(b.target=g,b.relatedTarget=nul
l,this.cancelOut(b))),d.out=b,d.outTarget=b.target}},touchend:function(a){this.d
edupSynthMouse(a),this.processTouches(a,this.upOut)},upOut:function(a){this.scro
lling||(c.up(a),c.out(a),c.leave(a)),this.cleanUpPointer(a)},touchcancel:functio
n(a){this.processTouches(a,this.cancelOut)},cancelOut:function(a){c.cancel(a),c.
out(a),c.leave(a),this.cleanUpPointer(a)},cleanUpPointer:function(a){f["delete"]
(a.pointerId),this.removePrimaryPointer(a)},dedupSynthMouse:function(b){var c=a.
mouseEvents.lastTouches,d=b.changedTouches[0];if(this.isPrimaryTouch(d)){var e={
x:d.clientX,y:d.clientY};c.push(e);var f=function(a,b){var c=a.indexOf(b);c>-1&&
a.splice(c,1)}.bind(null,c,e);setTimeout(f,h)}}};k||(b=new a.Installer(l.element
Added,l.elementRemoved,l.elementChanged,l)),a.touchEvents=l}(window.PointerEvent
sPolyfill),function(a){var b=a.dispatcher,c=b.pointermap,d=window.MSPointerEvent
&&"number"==typeof window.MSPointerEvent.MSPOINTER_TYPE_MOUSE,e={events:["MSPoin
terDown","MSPointerMove","MSPointerUp","MSPointerOut","MSPointerOver","MSPointer
Cancel","MSGotPointerCapture","MSLostPointerCapture"],register:function(a){b.lis
ten(a,this.events)},unregister:function(a){b.unlisten(a,this.events)},POINTER_TY
PES:["","unavailable","touch","pen","mouse"],prepareEvent:function(a){var c=a;re
turn d&&(c=b.cloneEvent(a),c.pointerType=this.POINTER_TYPES[a.pointerType]),c},c
leanup:function(a){c["delete"](a)},MSPointerDown:function(a){c.set(a.pointerId,a
);var d=this.prepareEvent(a);b.down(d)},MSPointerMove:function(a){var c=this.pre
pareEvent(a);b.move(c)},MSPointerUp:function(a){var c=this.prepareEvent(a);b.up(
c),this.cleanup(a.pointerId)},MSPointerOut:function(a){var c=this.prepareEvent(a
);b.leaveOut(c)},MSPointerOver:function(a){var c=this.prepareEvent(a);b.enterOve
r(c)},MSPointerCancel:function(a){var c=this.prepareEvent(a);b.cancel(c),this.cl
eanup(a.pointerId)},MSLostPointerCapture:function(a){var c=b.makeEvent("lostpoin
tercapture",a);b.dispatchEvent(c)},MSGotPointerCapture:function(a){var c=b.makeE
vent("gotpointercapture",a);b.dispatchEvent(c)}};a.msEvents=e}(window.PointerEve
ntsPolyfill),function(a){var b=a.dispatcher;if(void 0===window.navigator.pointer
Enabled){if(Object.defineProperty(window.navigator,"pointerEnabled",{value:!0,en
umerable:!0}),window.navigator.msPointerEnabled){var c=window.navigator.msMaxTou
chPoints;Object.defineProperty(window.navigator,"maxTouchPoints",{value:c,enumer
able:!0}),b.registerSource("ms",a.msEvents)}else b.registerSource("mouse",a.mous
eEvents),void 0!==window.ontouchstart&&b.registerSource("touch",a.touchEvents);b
.register(document)}}(window.PointerEventsPolyfill),function(a){function b(a){if
(!e.pointermap.has(a))throw new Error("InvalidPointerId")}var c,d,e=a.dispatcher
,f=window.navigator;f.msPointerEnabled?(c=function(a){b(a),this.msSetPointerCapt
ure(a)},d=function(a){b(a),this.msReleasePointerCapture(a)}):(c=function(a){b(a)
,e.setCapture(a,this)},d=function(a){b(a),e.releaseCapture(a,this)}),window.Elem
ent&&!Element.prototype.setPointerCapture&&Object.defineProperties(Element.proto
type,{setPointerCapture:{value:c},releasePointerCapture:{value:d}})}(window.Poin
terEventsPolyfill),PointerGestureEvent.prototype.preventTap=function(){this.tapP
revented=!0},function(a){a=a||{},a.utils={LCA:{find:function(a,b){if(a===b)retur
n a;if(a.contains){if(a.contains(b))return a;if(b.contains(a))return b}var c=thi
s.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=this.walk(a,1),b=this.walk(b,1);return a},walk:function(a,b){for(var
c=0;b>c;c++)a=a.parentNode;return a},depth:function(a){for(var b=0;a;)b++,a=a.pa
rentNode;return b}}},a.findLCA=function(b,c){return a.utils.LCA.find(b,c)},windo
w.PointerGestures=a}(window.PointerGestures),function(a){function b(){if(c){var
a=new Map;return a.pointers=d,a}this.keys=[],this.values=[]}var c=window.Map&&wi
ndow.Map.prototype.forEach,d=function(){return this.size};b.prototype={set:funct
ion(a,b){var c=this.keys.indexOf(a);c>-1?this.values[c]=b:(this.keys.push(a),thi
s.values.push(b))},has:function(a){return this.keys.indexOf(a)>-1},"delete":func
tion(a){var b=this.keys.indexOf(a);b>-1&&(this.keys.splice(b,1),this.values.spli
ce(b,1))},get:function(a){var b=this.keys.indexOf(a);return this.values[b]},clea
r: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)},pointers:fun
ction(){return this.keys.length}},a.PointerMap=b}(window.PointerGestures),functi
on(a){var b=["bubbles","cancelable","view","detail","screenX","screenY","clientX
","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","bu
ttons","pointerId","width","height","pressure","tiltX","tiltY","pointerType","hw
Timestamp","isPrimary","type","target","currentTarget","screenX","screenY","page
X","pageY","tapPrevented"],c=[!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],d={handledEvents:new WeakMap,targets:new We
akMap,handlers:{},recognizers:{},events:{},registerRecognizer:function(a,b){var
c=b;this.recognizers[a]=c,c.events.forEach(function(a){if(c[a]){this.events[a]=!
0;var b=c[a].bind(c);this.addHandler(a,b)}},this)},addHandler:function(a,b){var
c=a;this.handlers[c]||(this.handlers[c]=[]),this.handlers[c].push(b)},registerTa
rget:function(a){this.listen(Object.keys(this.events),a)},unregisterTarget:funct
ion(a){this.unlisten(Object.keys(this.events),a)},eventHandler:function(a){if(!t
his.handledEvents.get(a)){var b=a.type,c=this.handlers[b];c&&this.makeQueue(c,a)
,this.handledEvents.set(a,!0)}},makeQueue:function(a,b){var c=this.cloneEvent(b)
;setTimeout(this.runQueue.bind(this,a,c),0)},runQueue:function(a,b){this.current
PointerId=b.pointerId;for(var c,d=0,e=a.length;e>d&&(c=a[d]);d++)c(b);this.curre
ntPointerId=0},listen:function(a,b){a.forEach(function(a){this.addEvent(a,this.b
oundHandler,!1,b)},this)},unlisten:function(a){a.forEach(function(a){this.remove
Event(a,this.boundHandler,!1,inTarget)},this)},addEvent:function(a,b,c,d){d.addE
ventListener(a,b,c)},removeEvent:function(a,b,c,d){d.removeEventListener(a,b,c)}
,makeEvent:function(a,b){return new PointerGestureEvent(a,b)},cloneEvent:functio
n(a){for(var d,e={},f=0;f<b.length;f++)d=b[f],e[d]=a[d]||c[f];return e},dispatch
Event:function(a,b){var c=b||this.targets.get(a);c&&(c.dispatchEvent(a),a.tapPre
vented&&this.preventTap(this.currentPointerId))},asyncDispatchEvent:function(a,b
){var c=function(){this.dispatchEvent(a,b)}.bind(this);setTimeout(c,0)},preventT
ap:function(a){var b=this.recognizers.tap;b&&b.preventTap(a)}};d.boundHandler=d.
eventHandler.bind(d),a.dispatcher=d;var e=[],f=!1;a.register=function(b){if(f){v
ar c=window.PointerEventsPolyfill;c&&c.register(b),a.dispatcher.registerTarget(b
)}else e.push(b)},document.addEventListener("DOMContentLoaded",function(){f=!0,e
.push(document),e.forEach(a.register)})}(window.PointerGestures),function(a){var
b=a.dispatcher,c={HOLD_DELAY:200,WIGGLE_THRESHOLD:16,events:["pointerdown","poi
ntermove","pointerup","pointercancel"],heldPointer:null,holdJob:null,pulse:funct
ion(){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.targ
et=null,this.holdJob=null},pointerdown:function(a){a.isPrimary&&!this.heldPointe
r&&(this.heldPointer=a,this.target=a.target,this.holdJob=setInterval(this.pulse.
bind(this),this.HOLD_DELAY))},pointerup:function(a){this.heldPointer&&this.heldP
ointer.pointerId===a.pointerId&&this.cancel()},pointercancel:function(){this.can
cel()},pointermove:function(a){if(this.heldPointer&&this.heldPointer.pointerId==
=a.pointerId){var b=a.clientX-this.heldPointer.clientX,c=a.clientY-this.heldPoin
ter.clientY;b*b+c*c>this.WIGGLE_THRESHOLD&&this.cancel()}},fireHold:function(a,c
){var d={pointerType:this.heldPointer.pointerType};c&&(d.holdTime=c);var e=b.mak
eEvent(a,d);b.dispatchEvent(e,this.target),e.tapPrevented&&b.preventTap(this.hel
dPointer.pointerId)}};b.registerRecognizer("hold",c)}(window.PointerGestures),fu
nction(a){var b=a.dispatcher,c=new a.PointerMap,d={events:["pointerdown","pointe
rmove","pointerup","pointercancel"],WIGGLE_THRESHOLD:4,clampDir:function(a){retu
rn a>0?1:-1},calcPositionDelta: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,c,d){var e=d,f=this.
calcPositionDelta(e.downEvent,c),g=this.calcPositionDelta(e.lastMoveEvent,c);g.x
&&(e.xDirection=this.clampDir(g.x)),g.y&&(e.yDirection=this.clampDir(g.y));var h
={dx:f.x,dy:f.y,ddx:g.x,ddy:g.y,clientX:c.clientX,clientY:c.clientY,pageX:c.page
X,pageY:c.pageY,screenX:c.screenX,screenY:c.screenY,xDirection:e.xDirection,yDir
ection:e.yDirection,trackInfo:e.trackInfo,relatedTarget:c.target,pointerType:c.p
ointerType},i=b.makeEvent(a,h);e.lastMoveEvent=c,b.dispatchEvent(i,e.downTarget)
},pointerdown:function(a){if(a.isPrimary&&("mouse"===a.pointerType?1===a.buttons
:!0)){var b={downEvent:a,downTarget:a.target,trackInfo:{},lastMoveEvent:null,xDi
rection:0,yDirection:0,tracking:!1};c.set(a.pointerId,b)}},pointermove:function(
a){var b=c.get(a.pointerId);if(b)if(b.tracking)this.fireTrack("track",a,b);else{
var d=this.calcPositionDelta(b.downEvent,a),e=d.x*d.x+d.y*d.y;e>this.WIGGLE_THRE
SHOLD&&(b.tracking=!0,this.fireTrack("trackstart",b.downEvent,b),this.fireTrack(
"track",a,b))}},pointerup:function(a){var b=c.get(a.pointerId);b&&(b.tracking&&t
his.fireTrack("trackend",a,b),c.delete(a.pointerId))},pointercancel:function(a){
this.pointerup(a)}};b.registerRecognizer("track",d)}(window.PointerGestures),fun
ction(a){var b=a.dispatcher,c={MIN_VELOCITY:.5,MAX_QUEUE:4,moveQueue:[],target:n
ull,pointerId:null,events:["pointerdown","pointermove","pointerup","pointercance
l"],pointerdown:function(a){a.isPrimary&&!this.pointerId&&(this.pointerId=a.poin
terId,this.target=a.target,this.addMove(a))},pointermove:function(a){a.pointerId
===this.pointerId&&this.addMove(a)},pointerup:function(a){a.pointerId===this.poi
nterId&&this.fireFlick(a),this.cleanup()},pointercancel:function(){this.cleanup(
)},cleanup:function(){this.moveQueue=[],this.target=null,this.pointerId=null},ad
dMove:function(a){this.moveQueue.length>=this.MAX_QUEUE&&this.moveQueue.shift(),
this.moveQueue.push(a)},fireFlick:function(a){for(var c,d,e,f,g,h,i,j=a,k=this.m
oveQueue.length,l=0,m=0,n=0,o=0;k>o&&(i=this.moveQueue[o]);o++)c=j.timeStamp-i.t
imeStamp,d=j.clientX-i.clientX,e=j.clientY-i.clientY,f=d/c,g=e/c,h=Math.sqrt(f*f
+g*g),h>n&&(l=f,m=g,n=h);var p=Math.abs(l)>Math.abs(m)?"x":"y",q=this.calcAngle(
l,m);if(Math.abs(n)>=this.MIN_VELOCITY){var r=b.makeEvent("flick",{xVelocity:l,y
Velocity:m,velocity:n,angle:q,majorAxis:p,pointerType:a.pointerType});b.dispatch
Event(r,this.target)}},calcAngle:function(a,b){return 180*Math.atan2(b,a)/Math.P
I}};b.registerRecognizer("flick",c)}(window.PointerGestures),function(a){var b=a
.dispatcher,c=new a.PointerMap,d=180/Math.PI,e={events:["pointerdown","pointermo
ve","pointerup","pointercancel"],reference:{},pointerdown:function(b){if(c.set(b
.pointerId,b),2==c.pointers()){var d=this.calcChord(),e=this.calcAngle(d);this.r
eference={angle:e,diameter:d.diameter,target:a.findLCA(d.a.target,d.b.target)}}}
,pointerup:function(a){c.delete(a.pointerId)},pointermove:function(a){c.has(a.po
interId)&&(c.set(a.pointerId,a),c.pointers()>1&&this.calcPinchRotate())},pointer
cancel:function(a){this.pointerup(a)},dispatchPinch:function(a,c){var d=a/this.r
eference.diameter,e=b.makeEvent("pinch",{scale:d,centerX:c.center.x,centerY:c.ce
nter.y});b.dispatchEvent(e,this.reference.target)},dispatchRotate:function(a,c){
var d=Math.round((a-this.reference.angle)%360),e=b.makeEvent("rotate",{angle:d,c
enterX:c.center.x,centerY:c.center.y});b.dispatchEvent(e,this.reference.target)}
,calcPinchRotate:function(){var a=this.calcChord(),b=a.diameter,c=this.calcAngle
(a);b!=this.reference.diameter&&this.dispatchPinch(b,a),c!=this.reference.angle&
&this.dispatchRotate(c,a)},calcChord:function(){var a=[];c.forEach(function(b){a
.push(b)});for(var b,d,e,f=0,g={},h=0;h<a.length;h++)for(var i=a[h],j=h+1;j<a.le
ngth;j++){var k=a[j];b=Math.abs(i.clientX-k.clientX),d=Math.abs(i.clientY-k.clie
ntY),e=b+d,e>f&&(f=e,g={a:i,b:k})}return b=Math.abs(g.a.clientX+g.b.clientX)/2,d
=Math.abs(g.a.clientY+g.b.clientY)/2,g.center={x:b,y:d},g.diameter=f,g},calcAngl
e:function(a){var b=a.a.clientX-a.b.clientX,c=a.a.clientY-a.b.clientY;return(360
+Math.atan2(c,b)*d)%360}};b.registerRecognizer("pinch",e)}(window.PointerGesture
s),function(a){var b=a.dispatcher,c=new a.PointerMap,d={events:["pointerdown","p
ointermove","pointerup","pointercancel","keyup"],pointerdown:function(a){a.isPri
mary&&!a.tapPrevented&&c.set(a.pointerId,{target:a.target,x:a.clientX,y:a.client
Y})},pointermove:function(a){if(a.isPrimary){var b=c.get(a.pointerId);b&&a.tapPr
evented&&c.delete(a.pointerId)}},pointerup:function(d){var e=c.get(d.pointerId);
if(e&&!d.tapPrevented){var f=a.findLCA(e.target,d.target);if(f){var g=b.makeEven
t("tap",{x:d.clientX,y:d.clientY,detail:d.detail,pointerType:d.pointerType});b.d
ispatchEvent(g,f)}}c.delete(d.pointerId)},pointercancel:function(a){c.delete(a.p
ointerId)},keyup:function(a){var c=a.keyCode;if(32===c){var d=a.target;d instanc
eof HTMLInputElement||d instanceof HTMLTextAreaElement||b.dispatchEvent(b.makeEv
ent("tap",{x:0,y:0,detail:0,pointerType:"unavailable"}),d)}},preventTap:function
(a){c.delete(a)}};b.registerRecognizer("tap",d)}(window.PointerGestures),functio
n(){"use strict";function a(a){for(;a.parentNode;)a=a.parentNode;return"function
"==typeof a.getElementById?a:null}function b(a,b){var c=a.bindings;if(!c)return
void(a.bindings={});var d=c[b];d&&(d.close(),c[b]=void 0)}function c(a){return n
ull==a?"":a}function d(a,b){a.data=c(b)}function e(a){return function(b){return
d(a,b)}}function f(a,b,d,e){return d?void(e?a.setAttribute(b,""):a.removeAttribu
te(b)):void a.setAttribute(b,c(e))}function g(a,b,c){return function(d){f(a,b,c,
d)}}function h(a){switch(a.type){case"checkbox":return s;case"radio":case"select
-multiple":case"select-one":return"change";default:return"input"}}function i(a,b
,d,e){a[b]=(e||c)(d)}function j(a,b,c){return function(d){return i(a,b,d,c)}}fun
ction k(){}function l(a,b,c,d){function e(){c.setValue(a[b]),c.discardChanges(),
(d||k)(a),Platform.performMicrotaskCheckpoint()}var f=h(a);a.addEventListener(f,
e);var g=c.close;c.close=function(){g&&(a.removeEventListener(f,e),c.close=g,c.c
lose(),g=void 0)}}function m(a){return Boolean(a)}function n(b){if(b.form)return
r(b.form.elements,function(a){return a!=b&&"INPUT"==a.tagName&&"radio"==a.type&
&a.name==b.name});var c=a(b);if(!c)return[];var d=c.querySelectorAll('input[type
="radio"][name="'+b.name+'"]');return r(d,function(a){return a!=b&&!a.form})}fun
ction o(a){"INPUT"===a.tagName&&"radio"===a.type&&n(a).forEach(function(a){var b
=a.bindings.checked;b&&b.setValue(!1)})}function p(a,b){var d,e,f,g=a.parentNode
;g instanceof HTMLSelectElement&&g.bindings&&g.bindings.value&&(d=g,e=d.bindings
.value,f=d.value),a.value=c(b),d&&d.value!=f&&(e.setValue(d.value),e.discardChan
ges(),Platform.performMicrotaskCheckpoint())}function q(a){return function(b){p(
a,b)}}var r=Array.prototype.filter.call.bind(Array.prototype.filter);"function"!
=typeof document.contains&&(Document.prototype.contains=function(a){return a===t
his||a.parentNode===this?!0:this.documentElement.contains(a)}),Node.prototype.bi
nd=function(a,b){console.error("Unhandled binding to Node: ",this,a,b)},Node.pro
totype.unbind=function(a){b(this,a)},Node.prototype.unbindAll=function(){if(this
.bindings){for(var a=Object.keys(this.bindings),b=0;b<a.length;b++){var c=this.b
indings[a[b]];c&&c.close()}this.bindings={}}},Text.prototype.bind=function(a,c,f
){return"textContent"!==a?Node.prototype.bind.call(this,a,c,f):f?d(this,c):(b(th
is,"textContent"),d(this,c.open(e(this))),this.bindings.textContent=c)},Element.
prototype.bind=function(a,c,d){var e="?"==a[a.length-1];return e&&(this.removeAt
tribute(a),a=a.slice(0,-1)),d?f(this,a,e,c):(b(this,a),f(this,a,e,c.open(g(this,
a,e))),this.bindings[a]=c)};var s;!function(){var a=document.createElement("div"
),b=a.appendChild(document.createElement("input"));b.setAttribute("type","checkb
ox");var c,d=0;b.addEventListener("click",function(){d++,c=c||"click"}),b.addEve
ntListener("change",function(){d++,c=c||"change"});var e=document.createEvent("M
ouseEvent");e.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),
b.dispatchEvent(e),s=1==d?"change":c}(),HTMLInputElement.prototype.bind=function
(a,d,e){if("value"!==a&&"checked"!==a)return HTMLElement.prototype.bind.call(thi
s,a,d,e);this.removeAttribute(a);var f="checked"==a?m:c,g="checked"==a?o:k;retur
n e?i(this,a,d,f):(b(this,a),l(this,a,d,g),i(this,a,d.open(j(this,a,f)),f),this.
bindings[a]=d)},HTMLTextAreaElement.prototype.bind=function(a,d,e){return"value"
!==a?HTMLElement.prototype.bind.call(this,a,d,e):(this.removeAttribute("value"),
e?i(this,"value",d):(b(this,"value"),l(this,"value",d),i(this,"value",d.open(j(t
his,"value",c))),this.bindings.value=d))},HTMLOptionElement.prototype.bind=funct
ion(a,c,d){return"value"!==a?HTMLElement.prototype.bind.call(this,a,c,d):(this.r
emoveAttribute("value"),d?p(this,c):(b(this,"value"),l(this,"value",c),p(this,c.
open(q(this))),this.bindings.value=c))},HTMLSelectElement.prototype.bind=functio
n(a,c,d){return"selectedindex"===a&&(a="selectedIndex"),"selectedIndex"!==a&&"va
lue"!==a?HTMLElement.prototype.bind.call(this,a,c,d):(this.removeAttribute(a),d?
i(this,a,c):(b(this,a),l(this,a,c),i(this,a,c.open(j(this,a))),this.bindings[a]=
c))}}(this),function(a){"use strict";function b(a){if(!a)throw new Error("Assert
ion failed")}function c(a){for(var b;b=a.parentNode;)a=b;return a}function d(a,b
){if(b){for(var d,e="#"+b;!d&&(a=c(a),a.protoContent_?d=a.protoContent_.querySel
ector(e):a.getElementById&&(d=a.getElementById(b)),!d&&a.templateCreator_);)a=a.
templateCreator_;return d}}function e(a){return"template"==a.tagName&&"http://ww
w.w3.org/2000/svg"==a.namespaceURI}function f(a){return"TEMPLATE"==a.tagName&&"h
ttp://www.w3.org/1999/xhtml"==a.namespaceURI}function g(a){return Boolean(J[a.ta
gName]&&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(L);h(a)&&b(a),E(c,b)}function j(a){function b(a){HTMLTemplat
eElement.decorate(a)||j(a.content)}i(a,b)}function k(a,b){Object.getOwnPropertyN
ames(b).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescr
iptor(b,c))})}function l(a){var b=a.ownerDocument;if(!b.defaultView)return b;var
c=b.templateContentsOwner_;if(!c){for(c=b.implementation.createHTMLDocument("")
;c.lastChild;)c.removeChild(c.lastChild);b.templateContentsOwner_=c}return c}fun
ction m(a){if(!a.stagingDocument_){var b=a.ownerDocument;b.stagingDocument_||(b.
stagingDocument_=b.implementation.createHTMLDocument(""),b.stagingDocument_.stag
ingDocument_=b.stagingDocument_),a.stagingDocument_=b.stagingDocument_}return a.
stagingDocument_}function n(a){var b=a.ownerDocument.createElement("template");a
.parentNode.insertBefore(b,a);for(var c=a.attributes,d=c.length;d-->0;){var e=c[
d];I[e.name]&&("template"!==e.name&&b.setAttribute(e.name,e.value),a.removeAttri
bute(e.name))}return b}function o(a){var b=a.ownerDocument.createElement("templa
te");a.parentNode.insertBefore(b,a);for(var c=a.attributes,d=c.length;d-->0;){va
r e=c[d];b.setAttribute(e.name,e.value),a.removeAttribute(e.name)}return a.paren
tNode.removeChild(a),b}function p(a,b,c){var d=a.content;if(c)return void d.appe
ndChild(b);for(var e;e=b.firstChild;)d.appendChild(e)}function q(a){M?a.__proto_
_=HTMLTemplateElement.prototype:k(a,HTMLTemplateElement.prototype)}function r(a)
{a.setModelFn_||(a.setModelFn_=function(){a.setModelFnScheduled_=!1;var b=z(a,a.
delegate_&&a.delegate_.prepareBinding);w(a,b,a.model_)}),a.setModelFnScheduled_|
|(a.setModelFnScheduled_=!0,Observer.runEOM_(a.setModelFn_))}function s(a,b,c,d)
{if(a&&a.length){for(var e,f=a.length,g=0,h=0,i=0,j=!0;f>h;){var g=a.indexOf("{{
",h),k=a.indexOf("[[",h),l=!1,m="}}";if(k>=0&&(0>g||g>k)&&(g=k,l=!0,m="]]"),i=0>
g?-1:a.indexOf(m,g+2),0>i){if(!e)return;e.push(a.slice(h));break}e=e||[],e.push(
a.slice(h,g));var n=a.slice(g+2,i).trim();e.push(l),j=j&&l,e.push(Path.get(n));v
ar o=d&&d(n,b,c);e.push(o),h=i+2}return h===f&&e.push(""),e.hasOnePath=5===e.len
gth,e.isSimplePath=e.hasOnePath&&""==e[0]&&""==e[4],e.onlyOneTime=j,e.combinator
=function(a){for(var b=e[0],c=1;c<e.length;c+=4){var d=e.hasOnePath?a:a[(c-1)/4]
;void 0!==d&&(b+=d),b+=e[c+3]}return b},e}}function t(a,b,c,d){if(b.hasOnePath){
var e=b[3],f=e?e(d,c,!0):b[2].getValueFrom(d);return b.isSimplePath?f:b.combinat
or(f)}for(var g=[],h=1;h<b.length;h+=4){var e=b[h+2];g[(h-1)/4]=e?e(d,c):b[h+1].
getValueFrom(d)}return b.combinator(g)}function u(a,b,c,d){var e=b[3],f=e?e(d,c,
!1):new PathObserver(d,b[2]);return b.isSimplePath?f:new ObserverTransform(f,b.c
ombinator)}function v(a,b,c,d){if(b.onlyOneTime)return t(a,b,c,d);if(b.hasOnePat
h)return u(a,b,c,d);for(var e=new CompoundObserver,f=1;f<b.length;f+=4){var g=b[
f],h=b[f+2];if(h){var i=h(d,c,g);g?e.addPath(i):e.addObserver(i)}else{var j=b[f+
1];g?e.addPath(j.getValueFrom(d)):e.addPath(d,j)}}return new ObserverTransform(e
,b.combinator)}function w(a,b,c,d){for(var e=0;e<b.length;e+=2){var f=b[e],g=b[e
+1],h=v(f,g,a,c),i=a.bind(f,h,g.onlyOneTime);i&&d&&d.push(i)}if(b.isTemplate){a.
model_=c;var j=a.processBindingDirectives_(b);d&&j&&d.push(j)}}function x(a,b,c)
{var d=a.getAttribute(b);return s(""==d?"{{}}":d,b,a,c)}function y(a,c){b(a);for
(var d=[],e=0;e<a.attributes.length;e++){for(var f=a.attributes[e],g=f.name,i=f.
value;"_"===g[0];)g=g.substring(1);if(!h(a)||g!==H&&g!==F&&g!==G){var j=s(i,g,a,
c);j&&d.push(g,j)}}return h(a)&&(d.isTemplate=!0,d.if=x(a,H,c),d.bind=x(a,F,c),d
.repeat=x(a,G,c),!d.if||d.bind||d.repeat||(d.bind=s("{{}}",F,a,c))),d}function z
(a,b){if(a.nodeType===Node.ELEMENT_NODE)return y(a,b);if(a.nodeType===Node.TEXT_
NODE){var c=s(a.data,"textContent",a,b);if(c)return["textContent",c]}return[]}fu
nction A(a,b,c,d,e,f,g){for(var h=b.appendChild(c.importNode(a,!1)),i=0,j=a.firs
tChild;j;j=j.nextSibling)A(j,h,c,d.children[i++],e,f,g);return d.isTemplate&&(HT
MLTemplateElement.decorate(h,a),f&&h.setDelegate_(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.chi
ldren[d++]=B(e,b);return c}function C(a){this.closed=!1,this.templateElement_=a,
this.terminators=[],this.deps=void 0,this.iteratedValue=[],this.presentValue=voi
d 0,this.arrayObserver=void 0}var D,E=Array.prototype.forEach.call.bind(Array.pr
ototype.forEach);a.Map&&"function"==typeof a.Map.prototype.forEach?D=a.Map:(D=fu
nction(){this.keys=[],this.values=[]},D.prototype={set:function(a,b){var c=this.
keys.indexOf(a);0>c?(this.keys.push(a),this.values.push(b)):this.values[c]=b},ge
t:function(a){var b=this.keys.indexOf(a);if(!(0>b))return this.values[b]},"delet
e":function(a){var b=this.keys.indexOf(a);return 0>b?!1:(this.keys.splice(b,1),t
his.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 docu
ment.contains&&(Document.prototype.contains=function(a){return a===this||a.paren
tNode===this?!0:this.documentElement.contains(a)});var F="bind",G="repeat",H="if
",I={template:!0,repeat:!0,bind:!0,ref:!0},J={THEAD:!0,TBODY:!0,TFOOT:!0,TH:!0,T
R:!0,TD:!0,COLGROUP:!0,COL:!0,CAPTION:!0,OPTION:!0,OPTGROUP:!0},K="undefined"!=t
ypeof HTMLTemplateElement,L="template, "+Object.keys(J).map(function(a){return a
.toLowerCase()+"[template]"}).join(", ");document.addEventListener("DOMContentLo
aded",function(){j(document),Platform.performMicrotaskCheckpoint()},!1),K||(a.HT
MLTemplateElement=function(){throw TypeError("Illegal constructor")});var M="__p
roto__"in{};HTMLTemplateElement.decorate=function(a,c){if(a.templateIsDecorated_
)return!1;var d=a;d.templateIsDecorated_=!0;var h=f(d)&&K,i=h,k=!h,m=!1;if(h||(g
(d)?(b(!c),d=n(a),d.templateIsDecorated_=!0,h=K,m=!0):e(d)&&(d=o(a),d.templateIs
Decorated_=!0,h=K)),!h){q(d);var r=l(d);d.content_=r.createDocumentFragment()}re
turn c?d.instanceRef_=c:k?p(d,a,m):i&&j(d.content),!0},HTMLTemplateElement.boots
trap=j;var N=a.HTMLUnknownElement||HTMLElement,O={get:function(){return this.con
tent_},enumerable:!0,configurable:!0};K||(HTMLTemplateElement.prototype=Object.c
reate(N.prototype),Object.defineProperty(HTMLTemplateElement.prototype,"content"
,O)),k(HTMLTemplateElement.prototype,{processBindingDirectives_:function(a){retu
rn this.iterator_&&this.iterator_.closeDeps(),a.if||a.bind||a.repeat?(this.itera
tor_||(this.iterator_=new C(this),this.bindings=this.bindings||{},this.bindings.
iterator=this.iterator_),this.iterator_.updateDependencies(a,this.model_),this.i
terator_):void(this.iterator_&&(this.iterator_.close(),this.iterator_=void 0,thi
s.bindings.iterator=void 0))},createInstance:function(a,b,c,d){b&&(c=this.newDel
egate_(b));var e=this.ref.content,f=this.bindingMap_;f&&f.content===e||(f=B(e,c&
&c.prepareBinding)||[],f.content=e,this.bindingMap_=f);var g=m(this),h=g.createD
ocumentFragment();h.templateCreator_=this,h.protoContent_=e;for(var i={firstNode
:null,lastNode:null,model:a},j=0,k=e.firstChild;k;k=k.nextSibling){var l=A(k,h,g
,f.children[j++],a,c,d);l.templateInstance_=i}return i.firstNode=h.firstChild,i.
lastNode=h.lastChild,h.templateCreator_=void 0,h.protoContent_=void 0,h},get mod
el(){return this.model_},set model(a){this.model_=a,r(this)},get bindingDelegate
(){return this.delegate_&&this.delegate_.raw |
| 34 },setDelegate_:function(a){this.delegate_=a,this.bindingMap_=void 0,this.iterato
r_&&(this.iterator_.instancePositionChangedFn_=void 0,this.iterator_.instanceMod
elFn_=void 0)},newDelegate_:function(a){function b(b){var c=a&&a[b];if("function
"==typeof c)return function(){return c.apply(a,arguments)}}return a?{raw:a,prepa
reBinding:b("prepareBinding"),prepareInstanceModel:b("prepareInstanceModel"),pre
pareInstancePositionChanged:b("prepareInstancePositionChanged")}:{}},set binding
Delegate(a){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;ret
urn b?b:a}}),Object.defineProperty(Node.prototype,"templateInstance",{get:functi
on(){var a=this.templateInstance_;return a?a:this.parentNode?this.parentNode.tem
plateInstance:void 0}}),C.prototype={closeDeps:function(){var a=this.deps;a&&(a.
ifOneTime===!1&&a.ifValue.close(),a.oneTime===!1&&a.value.close())},updateDepend
encies:function(a,b){this.closeDeps();var c=this.deps={},d=this.templateElement_
;if(a.if){if(c.hasIf=!0,c.ifOneTime=a.if.onlyOneTime,c.ifValue=v(H,a.if,d,b),c.i
fOneTime&&!c.ifValue)return void this.updateIteratedValue();c.ifOneTime||c.ifVal
ue.open(this.updateIteratedValue,this)}a.repeat?(c.repeat=!0,c.oneTime=a.repeat.
onlyOneTime,c.value=v(G,a.repeat,d,b)):(c.repeat=!1,c.oneTime=a.bind.onlyOneTime
,c.value=v(F,a.bind,d,b)),c.oneTime||c.value.open(this.updateIteratedValue,this)
,this.updateIteratedValue()},updateIteratedValue:function(){if(this.deps.hasIf){
var a=this.deps.ifValue;if(this.deps.ifOneTime||(a=a.discardChanges()),!a)return
void this.valueChanged()}var b=this.deps.value;this.deps.oneTime||(b=b.discardC
hanges()),this.deps.repeat||(b=[b]);var c=this.deps.repeat&&!this.deps.oneTime&&
Array.isArray(b);this.valueChanged(b,c)},valueChanged:function(a,b){Array.isArra
y(a)||(a=[]),a!==this.iteratedValue&&(this.unobserve(),this.presentValue=a,b&&(t
his.arrayObserver=new ArrayObserver(this.presentValue),this.arrayObserver.open(t
his.handleSplices,this)),this.handleSplices(ArrayObserver.calculateSplices(this.
presentValue,this.iteratedValue)))},getTerminatorAt:function(a){if(-1==a)return
this.templateElement_;var b=this.terminators[2*a];if(b.nodeType!==Node.ELEMENT_N
ODE||this.templateElement_===b)return b;var c=b.iterator_;return c?c.getTerminat
orAt(c.terminators.length/2-1):b},insertInstanceAt:function(a,b,c,d){var e=this.
getTerminatorAt(a-1),f=e;b?f=b.lastChild||f:c&&(f=c[c.length-1]||f),this.termina
tors.splice(2*a,0,f,d);var g=this.templateElement_.parentNode,h=e.nextSibling;if
(b)g.insertBefore(b,h);else if(c)for(var i=0;i<c.length;i++)g.insertBefore(c[i],
h)},extractInstanceAt:function(a){var b=[],c=this.getTerminatorAt(a-1),d=this.ge
tTerminatorAt(a);b.instanceBindings=this.terminators[2*a+1],this.terminators.spl
ice(2*a,2);for(var e=this.templateElement_.parentNode;d!==c;){var f=c.nextSiblin
g;f==d&&(d=c),e.removeChild(f),b.push(f)}return b},getDelegateFn:function(a){ret
urn a=a&&a(this.templateElement_),"function"==typeof a?a:null},handleSplices:fun
ction(a){if(!this.closed&&a.length){var b=this.templateElement_;if(!b.parentNode
)return void this.close();ArrayObserver.applySplices(this.iteratedValue,this.pre
sentValue,a);var c=b.delegate_;void 0===this.instanceModelFn_&&(this.instanceMod
elFn_=this.getDelegateFn(c&&c.prepareInstanceModel)),void 0===this.instancePosit
ionChangedFn_&&(this.instancePositionChangedFn_=this.getDelegateFn(c&&c.prepareI
nstancePositionChanged));var d=new D,e=0;a.forEach(function(a){a.removed.forEach
(function(b){var c=this.extractInstanceAt(a.index+e);d.set(b,c)},this),e-=a.adde
dCount},this),a.forEach(function(a){for(var e=a.index;e<a.index+a.addedCount;e++
){var f,g=this.iteratedValue[e],h=void 0,i=d.get(g);i?(d.delete(g),f=i.instanceB
indings):(f=[],this.instanceModelFn_&&(g=this.instanceModelFn_(g)),void 0!==g&&(
h=b.createInstance(g,void 0,c,f))),this.insertInstanceAt(e,h,i,f)}},this),d.forE
ach(function(a){this.closeInstanceBindings(a.instanceBindings)},this),this.insta
ncePositionChangedFn_&&this.reportInstancesMoved(a)}},reportInstanceMoved:functi
on(a){var b=this.getTerminatorAt(a-1),c=this.getTerminatorAt(a);if(b!==c){var d=
b.nextSibling.templateInstance;this.instancePositionChangedFn_(d,a)}},reportInst
ancesMoved:function(a){for(var b=0,c=0,d=0;d<a.length;d++){var e=a[d];if(0!=c)fo
r(;b<e.index;)this.reportInstanceMoved(b),b++;else b=e.index;for(;b<e.index+e.ad
dedCount;)this.reportInstanceMoved(b),b++;c+=e.addedCount-e.removed.length}if(0!
=c)for(var f=this.terminators.length/2;f>b;)this.reportInstanceMoved(b),b++},clo
seInstanceBindings:function(a){for(var b=0;b<a.length;b++)a[b].close()},unobserv
e:function(){this.arrayObserver&&(this.arrayObserver.close(),this.arrayObserver=
void 0)},close:function(){if(!this.closed){this.unobserve();for(var a=1;a<this.t
erminators.length;a+=2)this.closeInstanceBindings(this.terminators[a]);this.term
inators.length=0,this.closeDeps(),this.templateElement_.iterator_=void 0,this.cl
osed=!0}}},HTMLTemplateElement.forAllTemplatesFrom_=i}(this),function(a){"use st
rict";function b(a,b){if(!a)throw new Error("ASSERT: "+b)}function c(a){return a
>=48&&57>=a}function d(a){return 32===a||9===a||11===a||12===a||160===a||a>=5760
&&" ".indexOf(String.fromCharCode(a))>0}function e(a){return 10=
==a||13===a||8232===a||8233===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.charCo
deAt(X));)++X}function j(){var a,b;for(a=X++;Y>X&&(b=W.charCodeAt(X),g(b));)++X;
return W.slice(a,X)}function k(){var a,b,c;return a=X,b=j(),c=1===b.length?S.Ide
ntifier:h(b)?S.Keyword:"null"===b?S.NullLiteral:"true"===b||"false"===b?S.Boolea
nLiteral:S.Identifier,{type:c,value:b,range:[a,X]}}function l(){var a,b,c=X,d=W.
charCodeAt(X),e=W[X];switch(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:Stri
ng.fromCharCode(d),range:[c,X]};default:if(a=W.charCodeAt(X+1),61===a)switch(d){
case 37:case 38:case 42:case 43:case 45:case 47:case 60:case 62:case 124:return
X+=2,{type:S.Punctuator,value:String.fromCharCode(d)+String.fromCharCode(a),rang
e:[c,X]};case 33:case 61:return X+=2,61===W.charCodeAt(X)&&++X,{type:S.Punctuato
r,value:W.slice(c,X),range:[c,X]}}}return b=W[X+1],e===b&&"&|".indexOf(e)>=0?(X+
=2,{type:S.Punctuator,value: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.Unexp
ectedToken,"ILLEGAL");return 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 quo
te"),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;c
ase"r":f+="\r";break;case"t":f+=" ";break;case"b":f+="\b";break;case"f":f+
="\f";break;case"v":f+="";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]}}function o(a){return a.type===S.Identifier||a.type===S.K
eyword||a.type===S.BooleanLiteral||a.type===S.NullLiteral}function p(){var a;ret
urn 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;return a=$,X=a.range[1],$=p(),X=a.range[1],a}function r(){v
ar a;a=X,$=p(),X=a}function s(a,c){var d,e=Array.prototype.slice.call(arguments,
2),f=c.replace(/%(\d)/g,function(a,c){return b(c<e.length,"Message reference mus
t be in range"),e[c]});throw d=new Error(f),d.index=X,d.description=f,d}function
t(a){s(a,V.UnexpectedToken,a.value)}function u(a){var b=q();(b.type!==S.Punctua
tor||b.value!==a)&&t(b)}function v(a){return $.type===S.Punctuator&&$.value===a}
function w(a){return $.type===S.Keyword&&$.value===a}function x(){var a=[];for(u
("[");!v("]");)v(",")?(q(),a.push(null)):(a.push(bb()),v("]")||u(","));return u(
"]"),Z.createArrayExpression(a)}function y(){var a;return i(),a=q(),a.type===S.S
tringLiteral||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.Punctuato
r)&&t(a),b=y(),u(":"),Z.createProperty("init",b,bb())}function A(){var a=[];for(
u("{");!v("}");)a.push(z()),v("}")||u(",");return u("}"),Z.createObjectExpressio
n(a)}function B(){var a;return u("("),a=bb(),u(")"),a}function C(){var a,b,c;ret
urn v("(")?B():(a=$.type,a===S.Identifier?c=Z.createIdentifier(q().value):a===S.
StringLiteral||a===S.NumericLiteral?c=Z.createLiteral(q()):a===S.Keyword?w("this
")&&(q(),c=Z.createThisExpression()):a===S.BooleanLiteral?(b=q(),b.value="true"=
==b.value,c=Z.createLiteral(b)):a===S.NullLiteral?(b=q(),b.value=null,c=Z.create
Literal(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}funct
ion E(){var a;return a=q(),o(a)||t(a),Z.createIdentifier(a.value)}function F(){r
eturn u("."),E()}function G(){var a;return u("["),a=bb(),u("]"),a}function H(){v
ar a,b;for(a=C();v(".")||v("[");)v("[")?(b=G(),a=Z.createMemberExpression("[",a,
b)):(b=F(),a=Z.createMemberExpression(".",a,b));return a}function I(){var a,b;re
turn $.type!==S.Punctuator&&$.type!==S.Keyword?b=ab():v("+")||v("-")||v("!")?(a=
q(),b=I(),b=Z.createUnaryExpression(a.value,b)):w("delete")||w("void")||w("typeo
f")?s({},V.UnexpectedToken):b=ab(),b}function J(a){var b=0;if(a.type!==S.Punctua
tor&&a.type!==S.Keyword)return 0;switch(a.value){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}function 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.createB
inaryExpression(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.createBinaryExpression(d[h-1].value,d[h-2],a),h-=2;re
turn a}function L(){var a,b,c;return a=K(),v("?")&&(q(),b=L(),u(":"),c=L(),a=Z.c
reateConditionalExpression(a,b,c)),a}function M(){var a,b;return a=q(),a.type!==
S.Identifier&&t(a),b=v("(")?D():[],Z.createFilter(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"===$.value?P(a):Z.createTopLevel(a))),$.typ
e!==S.EOF&&t($)}function P(a){q();var b=q().value;Z.createAsExpression(a,b)}func
tion 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={BooleanLite
ral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,S
tringLiteral:8},T={},T[S.BooleanLiteral]="Boolean",T[S.EOF]="<end>",T[S.Identifi
er]="Identifier",T[S.Keyword]="Keyword",T[S.NullLiteral]="Null",T[S.NumericLiter
al]="Numeric",T[S.Punctuator]="Punctuator",T[S.StringLiteral]="String",U={ArrayE
xpression:"ArrayExpression",BinaryExpression:"BinaryExpression",CallExpression:"
CallExpression",ConditionalExpression:"ConditionalExpression",EmptyStatement:"Em
ptyStatement",ExpressionStatement:"ExpressionStatement",Identifier:"Identifier",
Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"Logical
Expression",MemberExpression:"MemberExpression",ObjectExpression:"ObjectExpressi
on",Program:"Program",Property:"Property",ThisExpression:"ThisExpression",UnaryE
xpression:"UnaryExpression"},V={UnexpectedToken:"Unexpected token %0",UnknownLab
el:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared"};var
ab=H,bb=L;a.esprima={parse:R}}(this),function(a){"use strict";function b(a,b,d,
e){var f;try{if(f=c(a),f.scopeIdent&&(d.nodeType!==Node.ELEMENT_NODE||"TEMPLATE"
!==d.tagName||"bind"!==b&&"repeat"!==b))throw Error("as and in can only be used
within <template bind/repeat>")}catch(g){return void console.error("Invalid expr
ession 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.pol
ymerExpressionIndexIdent_=f.indexIdent)),d}}function c(a){var b=q[a];if(!b){var
c=new j;esprima.parse(a,c),b=new l(c),q[a]=b}return b}function d(a){this.value=a
,this.valueFn_=void 0}function e(a){this.name=a,this.path=Path.get(a)}function f
(a,b,c){"["==c&&b instanceof d&&Path.get(b.value).valid&&(c=".",b=new e(b.value)
),this.dynamicDeps="function"==typeof a||a.dynamic,this.dynamic="function"==type
of b||b.dynamic||"["==c,this.simplePath=!this.dynamic&&!this.dynamicDeps&&b inst
anceof e&&(a instanceof f||a instanceof e),this.object=this.simplePath?a:i(a),th
is.property="."==c?b:i(b)}function g(a,b){this.name=a,this.args=[];for(var c=0;c
<b.length;c++)this.args[c]=i(b[c])}function h(){throw Error("Not Implemented")}f
unction i(a){return"function"==typeof a?a:a.valueFn()}function j(){this.expressi
on=null,this.filters=[],this.deps={},this.currentPath=void 0,this.scopeIdent=voi
d 0,this.indexIdent=void 0,this.dynamicDeps=!1}function k(a){this.value_=a}funct
ion l(a){if(this.scopeIdent=a.scopeIdent,this.indexIdent=a.indexIdent,!a.express
ion)throw Error("No expression found.");this.expression=a.expression,i(this.expr
ession),this.filters=a.filters,this.dynamicDeps=a.dynamicDeps}function m(a){retu
rn String(a).replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()})}function n
(a){return"o"===a[0]&&"n"===a[1]&&"-"===a[2]}function o(a,b){var c=b.substring(3
);return c=t[c]||c,function(b,d,e){function f(c){e||(h=a.getValueFrom(b)),h.appl
y(b,[c,c.detail,c.currentTarget]),Platform&&"function"==typeof Platform.flush&&P
latform.flush()}function g(){return"{{ "+a+" }}"}var h=a.getValueFrom(b);return
d.addEventListener(c,f),e?void 0:{open:g,discardChanges:g,close:function(){d.rem
oveEventListener(c,f)}}}}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 this.p
ath.setValueFrom(a,b)}},f.prototype={get fullPath(){if(!this.fullPath_){var a=th
is.object instanceof e?this.object.name:this.object.fullPath;this.fullPath_=Path
.get(a+"."+this.property.name)}return this.fullPath_},valueFn:function(){if(!thi
s.valueFn_){var a=this.object;if(this.simplePath){var b=this.fullPath;this.value
Fn_=function(a,c){return c&&c.addPath(a,b),b.getValueFrom(a)}}else if(this.prope
rty instanceof e){var b=Path.get(this.property.name);this.valueFn_=function(c,d)
{var e=a(c,d);return d&&d.addPath(e,b),b.getValueFrom(e)}}else{var c=this.proper
ty;this.valueFn_=function(b,d){var e=a(b,d),f=c(b,d);return d&&d.addPath(e,f),e?
e[f]:void 0}}}return this.valueFn_},setValue:function(a,b){if(this.simplePath)re
turn this.fullPath.setValueFrom(a,b),b;var c=this.object(a),d=this.property inst
anceof e?this.property.name:this.property(a);return c[d]=b}},g.prototype={transf
orm:function(a,b,c,d,e){var f=c[this.name],g=d;if(f)g=void 0;else if(f=g[this.na
me],!f)return void console.error("Cannot find filter: "+this.name);if(b?f=f.toMo
del:"function"==typeof f.toDOM&&(f=f.toDOM),"function"!=typeof f)return void con
sole.error("No "+(b?"toModel":"toDOM")+" found on"+this.name);for(var h=[a],j=0;
j<this.args.length;j++)h[j+1]=i(this.args[j])(d,e);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},"<":func
tion(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},"!=":functio
n(a,b){return a!=b},"===":function(a,b){return a===b},"!==":function(a,b){return
a!==b},"&&":function(a,b){return a&&b},"||":function(a,b){return a||b}};j.proto
type={createUnaryExpression:function(a,b){if(!r[a])throw Error("Disallowed opera
tor: "+a);return b=i(b),function(c,d){return r[a](b(c,d))}},createBinaryExpressi
on:function(a,b,c){if(!s[a])throw Error("Disallowed operator: "+a);return b=i(b)
,c=i(c),function(d,e){return s[a](b(d,e),c(d,e))}},createConditionalExpression:f
unction(a,b,c){return a=i(a),b=i(b),c=i(c),function(d,e){return a(d,e)?b(d,e):c(
d,e)}},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},createLiteral:function(a){return new d(a.value)},creat
eArrayExpression:function(a){for(var b=0;b<a.length;b++)a[b]=i(a[b]);return func
tion(b,c){for(var d=[],e=0;e<a.length;e++)d.push(a[e](b,c));return d}},createPro
perty:function(a,b,c){return{key:b instanceof e?b.name:b.value,value:c}},createO
bjectExpression:function(a){for(var b=0;b<a.length;b++)a[b].value=i(a[b].value);
return function(b,c){for(var d={},e=0;e<a.length;e++)d[a[e].key]=a[e].value(b,c)
;return d}},createFilter:function(a,b){this.filters.push(new g(a,b))},createAsEx
pression:function(a,b){this.expression=a,this.scopeIdent=b},createInExpression:f
unction(a,b,c){this.expression=c,this.scopeIdent=a,this.indexIdent=b},createTopL
evel:function(a){this.expression=a},createThisExpression:h},k.prototype={open:fu
nction(){return this.value_},discardChanges:function(){return this.value_},deliv
er:function(){},close:function(){}},l.prototype={getBinding:function(a,b,c){func
tion d(){g.dynamicDeps&&f.startReset();var c=g.getValue(a,g.dynamicDeps?f:void 0
,b);return g.dynamicDeps&&f.finishReset(),c}function e(c){return g.setValue(a,c,
b),c}if(c)return this.getValue(a,void 0,b);var f=new CompoundObserver;this.getVa
lue(a,f,b);var g=this;return new ObserverTransform(f,d,e,!0)},getValue:function(
a,b,c){for(var d=i(this.expression)(a,b),e=0;e<this.filters.length;e++)d=this.fi
lters[e].transform(d,!1,c,a,b);return d},setValue:function(a,b,c){for(var d=this
.filters?this.filters.length:0;d-->0;)b=this.filters[d].transform(b,!0,c,a);retu
rn this.expression.setValue?this.expression.setValue(a,b):void 0}};var t={};["we
bkitAnimationStart","webkitAnimationEnd","webkitTransitionEnd","DOMFocusOut","DO
MFocusIn","DOMMouseScroll"].forEach(function(a){t[a.toLowerCase()]=a}),p.prototy
pe={styleObject:function(a){var b=[];for(var c in a)b.push(m(c)+": "+a[c]);retur
n b.join("; ")},tokenList:function(a){var b=[];for(var c in a)a[c]&&b.push(c);re
turn b.join(" ")},prepareInstancePositionChanged:function(a){var b=a.polymerExpr
essionIndexIdent_;if(b)return function(a,c){a.model[b]=c}},prepareBinding:functi
on(a,c,d){if(n(c)){var e=Path.get(a);return e.valid?o(e,c):void console.error("o
n-* bindings must be simple path expressions")}if(!Path.get(a).valid)return b(a,
c,d,this)},prepareInstanceModel:function(a){var b=a.polymerExpressionScopeIdent_
;if(b){var c=a.templateInstance?a.templateInstance.model:a.model;return function
(a){var d=Object.create(c);return d[b]=a,d}}}},a.PolymerExpressions=p,a.exposeGe
tExpression&&(a.getExpression_=c),a.PolymerExpressions.prepareEventBinding=o}(th
is),function(a){function b(){e||(e=!0,a.endOfMicrotask(function(){e=!1,logFlags.
data&&console.group("Platform.flush()"),a.performMicrotaskCheckpoint(),logFlags.
data&&console.groupEnd()}))}var c=document.createElement("style");c.textContent=
"template {display: none !important;} /* injected by platform.js */";var d=docum
ent.querySelector("head");d.insertBefore(c,d.firstChild);var e,f=125;if(window.a
ddEventListener("WebComponentsReady",function(){b(),Observer.hasObjectObserve||(
a.flushPoll=setInterval(b,f))}),window.CustomElements&&!CustomElements.useNative
){var g=Document.prototype.importNode;Document.prototype.importNode=function(a,b
){var c=g.call(this,a,b);return CustomElements.upgradeAll(c),c}}a.flush=b}(windo
w.Platform); |
| 35 //# sourceMappingURL=platform.js.map |
OLD | NEW |