| OLD | NEW |
| 1 if(!HTMLElement.prototype.createShadowRoot||window.__forceShadowDomPolyfill){!fu
nction(){Element.prototype.webkitCreateShadowRoot&&(Element.prototype.webkitCrea
teShadowRoot=function(){return window.ShadowDOMPolyfill.wrapIfNeeded(this).creat
eShadowRoot()})}(),function(a){"use strict";function b(){function a(a){b=a}if("f
unction"!=typeof Object.observe||"function"!=typeof Array.observe)return!1;var b
=[],c={};if(Object.observe(c,a),c.id=1,c.id=2,delete c.id,Object.deliverChangeRe
cords(a),3!==b.length)return!1;if("new"==b[0].type&&"updated"==b[1].type&&"delet
ed"==b[2].type)F="new",G="updated",H="reconfigured",I="deleted";else if("add"!=b
[0].type||"update"!=b[1].type||"delete"!=b[2].type)return console.error("Unexpec
ted change record names for Object.observe. Using dirty-checking instead"),!1;re
turn Object.unobserve(c,a),c=[0],Array.observe(c,a),c[1]=1,c.length=0,Object.del
iverChangeRecords(a),2!=b.length?!1:b[0].type!=J||b[1].type!=J?!1:(Array.unobser
ve(c,a),!0)}function c(){if(a.document&&"securityPolicy"in a.document&&!a.docume
nt.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){retur
n+a}function f(a){return a===Object(a)}function g(a,b){return a===b?0!==a||1/a==
=1/b:M(a)&&M(b)?!0:a!==a&&b!==b}function h(a){return"string"!=typeof a?!1:(a=a.t
rim(),""==a?!0:"."==a[0]?!1:U.test(a))}function i(a,b){if(b!==V)throw Error("Use
Path.get to retrieve path objects");return""==a.trim()?this:d(a)?(this.push(a),
this):(a.split(/\s*\.\s*/).filter(function(a){return a}).forEach(function(a){thi
s.push(a)},this),L&&!K&&this.length&&(this.getValueFrom=this.compiledGetValueFro
mFn()),void 0)}function j(a){if(a instanceof i)return a;null==a&&(a=""),"string"
!=typeof a&&(a=String(a));var b=W[a];if(b)return b;if(!h(a))return X;var b=new i
(a,V);return W[a]=b,b}function k(b){for(var c=0;Y>c&&b.check();)b.report(),c++;a
.testingExposeCycleCount&&(a.dirtyCheckCycleCount=c)}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.length!==b.length&&(e.length=a.length),{added:c,remo
ved:d,changed:e}}function o(a,b){var c=b||(Array.isArray(a)?[]:{});for(var d in
a)c[d]=a[d];return Array.isArray(a)&&(c.length=a.length),c}function p(a,b,c,d){i
f(this.closed=!1,this.object=a,this.callback=b,this.target=c,this.token=d,this.r
eporting=!0,K){var e=this;this.boundInternalCallback=function(a){e.internalCallb
ack(a)}}q(this)}function q(a){$&&(Z.push(a),p._allObserversCount++)}function r(a
,b,c,d){p.call(this,a,b,c,d),this.connect(),this.sync(!0)}function s(a,b,c,d){if
(!Array.isArray(a))throw Error("Provided object is not an Array");r.call(this,a,
b,c,d)}function t(a){this.arr=[],this.callback=a,this.isObserved=!0}function u(a
,b,c,d,e,g,h){var b=b instanceof i?b:j(b);return b&&b.length&&f(a)?(p.call(this,
a,c,d,e),this.valueFn=g,this.setValueFn=h,this.path=b,this.connect(),this.sync(!
0),void 0):(this.value_=b?b.getValueFrom(a):void 0,this.value=g?g(this.value_):t
his.value_,this.closed=!0,void 0)}function v(a,b,c,d){p.call(this,void 0,a,b,c),
this.valueFn=d,this.observed=[],this.values=[],this.value=void 0,this.oldValue=v
oid 0,this.oldValues=void 0,this.changeFlags=void 0,this.started=!1}function w(a
,b){if("function"==typeof Object.observe){var c=Object.getNotifier(a);return fun
ction(d,e){var f={object:a,type:d,name:b};2===arguments.length&&(f.oldValue=e),c
.notify(f)}}}function x(a,b,c){for(var d={},e={},f=0;f<b.length;f++){var g=b[f];
db[g.type]?(g.name in c||(c[g.name]=g.oldValue),g.type!=G&&(g.type!=F?g.name in
d?(delete d[g.name],delete c[g.name]):e[g.name]=!0:g.name in e?delete e[g.name]:
d[g.name]=!0)):(console.error("Unknown changeRecord type: "+g.type),console.erro
r(g))}for(var h in d)d[h]=a[h];for(var h in e)e[h]=void 0;var i={};for(var h in
c)if(!(h in d||h in e)){var j=a[h];c[h]!==j&&(i[h]=j)}return{added:d,removed:e,c
hanged:i}}function y(a,b,c){return{index:a,removed:b,addedCount:c}}function z(){
}function A(a,b,c,d,e,f){return ib.calcSplices(a,b,c,d,e,f)}function B(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 C(a,b,c,d){
for(var e=y(b,c,d),f=!1,g=0,h=0;h<a.length;h++){var i=a[h];if(i.index+=g,!f){var
j=B(e.index,e.index+e.removed.length,i.index,i.index+i.addedCount);if(j>=0){a.s
plice(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.push.app
ly(l,c),c=l}if(e.index+e.removed.length>i.index+i.addedCount){var m=e.removed.sl
ice(i.index+i.addedCount-e.index);Array.prototype.push.apply(c,m)}e.removed=c,i.
index<e.index&&(e.index=i.index)}else f=!0}else if(e.index<i.index){f=!0,a.splic
e(h,0,e),h++;var n=e.addedCount-e.removed.length;i.index+=n,g+=n}}}f||a.push(e)}
function D(a,b){for(var c=[],f=0;f<b.length;f++){var g=b[f];switch(g.type){case
J:C(c,g.index,g.removed.slice(),g.addedCount);break;case F:case G:case I:if(!d(g
.name))continue;var h=e(g.name);if(0>h)continue;C(c,h,[g.oldValue],1);break;defa
ult:console.error("Unexpected record type: "+JSON.stringify(g))}}return c}functi
on E(a,b){var c=[];return D(a,b).forEach(function(b){return 1==b.addedCount&&1==
b.removed.length?(b.removed[0]!==a[b.index]&&c.push(b),void 0):(c=c.concat(A(a,b
.index,b.index+b.addedCount,b.removed,0,b.removed.length)),void 0)}),c}var F="ad
d",G="update",H="reconfigure",I="delete",J="splice",K=b(),L=c(),M=a.Number.isNaN
||function(b){return"number"==typeof b&&a.isNaN(b)},N="__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},O="[$_a-zA-Z]",P="[$_a-zA-Z0-9]",Q
=O+"+"+P+"*",R="(?:[0-9]|[1-9]+[0-9]+)",S="(?:"+Q+"|"+R+")",T="(?:"+S+")(?:\\s*\
\.\\s*"+S+")*",U=new RegExp("^"+T+"$"),V={},W={};i.get=j,i.prototype=N({__proto_
_:[],valid:!0,toString:function(){return this.join(".")},getValueFrom:function(a
,b){for(var c=0;c<this.length;c++){if(null==a)return;b&&b.observe(a),a=a[this[c]
]}return a},compiledGetValueFromFn:function(){var a=this.map(function(a){return
d(a)?'["'+a+'"]':"."+a}),b="",c="obj";b+="if (obj != null";for(var e=0;e<this.le
ngth-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)},setValu
eFrom: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 X=new i("",
V);X.valid=!1,X.getValueFrom=X.setValueFrom=function(){};var Y=1e3;p.prototype={
internalCallback:function(a){this.closed||this.reporting&&this.check(a)&&(this.r
eport(),this.testingResults&&(this.testingResults.anyChanged=!0))},close:functio
n(){this.closed||(this.object&&"function"==typeof this.object.close&&this.object
.close(),this.disconnect(),this.object=void 0,this.closed=!0)},deliver:function(
a){this.closed||(K?(this.testingResults=a,Object.deliverChangeRecords(this.bound
InternalCallback),this.testingResults=void 0):k(this))},report:function(){this.r
eporting&&(this.sync(!1),this.callback&&(this.reportArgs.push(this.token),this.i
nvokeCallback(this.reportArgs)),this.reportArgs=void 0)},invokeCallback:function
(a){try{this.callback.apply(this.target,a)}catch(b){p._errorThrownDuringCallback
=!0,console.error("Exception caught during observer callback: "+(b.stack||b))}},
reset:function(){this.closed||(K&&(this.reporting=!1,Object.deliverChangeRecords
(this.boundInternalCallback),this.reporting=!0),this.sync(!0))}};var Z,$=!K||a.f
orceCollectObservers;p._allObserversCount=0,$&&(Z=[]);var _=!1,ab="function"==ty
peof Object.deliverAllChangeRecords;a.Platform=a.Platform||{},a.Platform.perform
MicrotaskCheckpoint=function(){if(!_){if(ab)return Object.deliverAllChangeRecord
s(),void 0;if($){_=!0;var b=0,c={};do{b++;var d=Z;Z=[],c.anyChanged=!1;for(var e
=0;e<d.length;e++){var f=d[e];f.closed||(K?f.deliver(c):f.check()&&(c.anyChanged
=!0,f.report()),Z.push(f))}}while(Y>b&&c.anyChanged);a.testingExposeCycleCount&&
(a.dirtyCheckCycleCount=b),p._allObserversCount=Z.length,_=!1}}},$&&(a.Platform.
clearObservers=function(){Z=[]}),r.prototype=N({__proto__:p.prototype,connect:fu
nction(){K&&Object.observe(this.object,this.boundInternalCallback)},sync:functio
n(){K||(this.oldObject=o(this.object))},check:function(a){var b,c;if(K){if(!a)re
turn!1;c={},b=x(this.object,a,c)}else c=this.oldObject,b=n(this.object,this.oldO
bject);return m(b)?!1:(this.reportArgs=[b.added||{},b.removed||{},b.changed||{}]
,this.reportArgs.push(function(a){return c[a]}),!0)},disconnect:function(){K?thi
s.object&&Object.unobserve(this.object,this.boundInternalCallback):this.oldObjec
t=void 0}}),s.prototype=N({__proto__:r.prototype,connect:function(){K&&Array.obs
erve(this.object,this.boundInternalCallback)},sync:function(){K||(this.oldObject
=this.object.slice())},check:function(a){var b;if(K){if(!a)return!1;b=E(this.obj
ect,a)}else b=A(this.object,0,this.object.length,this.oldObject,0,this.oldObject
.length);return b&&b.length?(this.reportArgs=[b],!0):!1}}),s.applySplices=functi
on(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.prototype.splice.apply(a,d)})};var
bb=Object.getPrototypeOf({}),cb=Object.getPrototypeOf([]);t.prototype={reset:fu
nction(){this.isObserved=!this.isObserved},observe:function(a){if(f(a)&&a!==bb&&
a!==cb){var b=this.arr.indexOf(a);b>=0&&this.arr[b+1]===this.isObserved||(0>b&&(
b=this.arr.length,this.arr[b]=a,Object.observe(a,this.callback)),this.arr[b+1]=t
his.isObserved,this.observe(Object.getPrototypeOf(a)))}},cleanup:function(){for(
var a=0,b=0,c=this.isObserved;b<this.arr.length;){var d=this.arr[b];this.arr[b+1
]==c?(b>a&&(this.arr[a]=d,this.arr[a+1]=c),a+=2):Object.unobserve(d,this.callbac
k),b+=2}this.arr.length=a}},u.prototype=N({__proto__:p.prototype,connect:functio
n(){K&&(this.observedSet=new t(this.boundInternalCallback))},disconnect:function
(){this.value=void 0,this.value_=void 0,this.observedSet&&(this.observedSet.rese
t(),this.observedSet.cleanup(),this.observedSet=void 0)},check:function(){return
this.observedSet&&this.observedSet.reset(),this.value_=this.path.getValueFrom(t
his.object,this.observedSet),this.observedSet&&this.observedSet.cleanup(),g(this
.value_,this.oldValue_)?!1:(this.value=this.valueFn?this.valueFn(this.value_):th
is.value_,this.reportArgs=[this.value,this.oldValue],!0)},sync:function(a){a&&(t
his.observedSet&&this.observedSet.reset(),this.value_=this.path.getValueFrom(thi
s.object,this.observedSet),this.value=this.valueFn?this.valueFn(this.value_):thi
s.value_,this.observedSet&&this.observedSet.cleanup()),this.oldValue_=this.value
_,this.oldValue=this.value},setValue:function(a){this.path&&("function"==typeof
this.setValueFn&&(a=this.setValueFn(a)),this.path.setValueFrom(this.object,a))}}
),v.prototype=N({__proto__:u.prototype,addPath:function(a,b){if(this.started)thr
ow Error("Cannot add more paths once started.");var b=b instanceof i?b:j(b),c=b?
b.getValueFrom(a):void 0;this.observed.push(a,b),this.values.push(c)},start:func
tion(){this.started=!0,this.connect(),this.sync(!0)},getValues:function(){this.o
bservedSet&&this.observedSet.reset();for(var a=!1,b=0;b<this.observed.length;b+=
2){var c=this.observed[b+1];if(c){var d=this.observed[b],e=c.getValueFrom(d,this
.observedSet),f=this.values[b/2];if(!g(e,f)){if(!a&&!this.valueFn){this.oldValue
s=this.oldValues||[],this.changeFlags=this.changeFlags||[];for(var h=0;h<this.va
lues.length;h++)this.oldValues[h]=this.values[h],this.changeFlags[h]=!1}this.val
ueFn||(this.changeFlags[b/2]=!0),this.values[b/2]=e,a=!0}}}return this.observedS
et&&this.observedSet.cleanup(),a},check:function(){if(this.getValues()){if(this.
valueFn){if(this.value=this.valueFn(this.values),g(this.value,this.oldValue))ret
urn!1;this.reportArgs=[this.value,this.oldValue]}else this.reportArgs=[this.valu
es,this.oldValues,this.changeFlags,this.observed];return!0}},sync:function(a){a&
&(this.getValues(),this.valueFn&&(this.value=this.valueFn(this.values))),this.va
lueFn&&(this.oldValue=this.value)},close:function(){if(this.observed){for(var a=
0;a<this.observed.length;a+=2){var b=this.observed[a];b&&"function"==typeof b.cl
ose&&b.close()}this.observed=void 0,this.values=void 0}p.prototype.close.call(th
is)}});var db={};db[F]=!0,db[G]=!0,db[I]=!0,u.defineProperty=function(a,b,c,d){d
=j(d);var e=w(a,b),f=new u(c,d,function(a,b){e&&e(G,b)});return Object.definePro
perty(a,b,{get:function(){return d.getValueFrom(c)},set:function(a){d.setValueFr
om(c,a)},configurable:!0}),{close:function(){var g=d.getValueFrom(c);e&&f.delive
r(),f.close(),Object.defineProperty(a,b,{value:g,writable:!0,configurable:!0})}}
};var eb=0,fb=1,gb=2,hb=3;z.prototype={calcEditDistances:function(a,b,c,d,e,f){f
or(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;fo
r(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.equa
ls(a[b+k-1],d[e+j-1]))i[j][k]=i[j-1][k-1];else{var l=i[j-1][k]+1,m=i[j][k-1]+1;i
[j][k]=m>l?l:m}return i},spliceOperationsFromEditDistances:function(a){for(var b
=a.length-1,c=a[0].length-1,d=a[b][c],e=[];b>0||c>0;)if(0!=b)if(0!=c){var f,g=a[
b-1][c-1],h=a[b-1][c],i=a[b][c-1];f=i>h?g>h?h:g:g>i?i:g,f==g?(g==d?e.push(eb):(e
.push(fb),d=g),b--,c--):f==h?(e.push(hb),b--,d=h):(e.push(gb),c--,d=i)}else e.pu
sh(hb),b--;else e.push(gb),c--;return e.reverse(),e},calcSplices:function(a,b,c,
d,e,f){var g=0,h=0,i=Math.min(c-b,f-e);if(0==b&&0==e&&(g=this.sharedPrefix(a,d,i
)),c==a.length&&f==d.length&&(h=this.sharedSuffix(a,d,i-g)),b+=g,e+=g,c-=h,f-=h,
c-b==0&&f-e==0)return[];if(b==c){for(var j=y(b,[],0);f>e;)j.removed.push(d[e++])
;return[j]}if(e==f)return[y(b,[],c-b)];for(var k=this.spliceOperationsFromEditDi
stances(this.calcEditDistances(a,b,c,d,e,f)),j=void 0,l=[],m=b,n=e,o=0;o<k.lengt
h;o++)switch(k[o]){case eb:j&&(l.push(j),j=void 0),m++,n++;break;case fb:j||(j=y
(m,[],0)),j.addedCount++,m++,j.removed.push(d[n]),n++;break;case gb:j||(j=y(m,[]
,0)),j.addedCount++,m++;break;case hb:j||(j=y(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.l
ength,e=b.length,f=0;c>f&&this.equals(a[--d],b[--e]);)f++;return f},calculateSpl
ices:function(a,b){return this.calcSplices(a,0,a.length,b,0,b.length)},equals:fu
nction(a,b){return a===b}};var ib=new z;a.Observer=p,a.Observer.hasObjectObserve
=K,a.ArrayObserver=s,a.ArrayObserver.calculateSplices=function(a,b){return ib.ca
lculateSplices(a,b)},a.ArraySplice=z,a.ObjectObserver=r,a.PathObserver=u,a.Compo
undPathObserver=v,a.Path=i,a.Observer.changeRecordTypes={add:F,update:G,reconfig
ure:H,"delete":I,splice:J}}("undefined"!=typeof global&&global?global:this||wind
ow),"undefined"==typeof WeakMap&&!function(){var a=Object.defineProperty,b=Date.
now()%1e9,c=function(){this.name="__st"+(1e9*Math.random()>>>0)+(b++ +"__")};c.p
rototype={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}(),wi
ndow.ShadowDOMPolyfill={},function(a){"use strict";function b(a){if(!a)throw new
Error("Assertion failed")}function 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"argu
ments":case"caller":case"length":case"name":case"prototype":case"toString":retur
n}K(a,c,M(b,c))}),a}function e(a,b){for(var c=0;c<b.length;c++)if(b[c]in a)retur
n 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);return 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)}function k(a){return H&&j(a)?new Function("return thi
s.impl."+a):function(){return this.impl[a]}}function l(a){return H&&j(a)?new Fun
ction("v","this.impl."+a+" = v"):function(b){this.impl[a]=b}}function m(a){retur
n H&&j(a)?new Function("return this.impl."+a+".apply(this.impl, arguments)"):fun
ction(){return this.impl[a].apply(this.impl,arguments)}}function n(a,b){try{retu
rn Object.getOwnPropertyDescriptor(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.polymerBlackList_[g])){N&&b.__lookupGetter__(g);var h,j,
o=n(b,g);if(d&&"function"==typeof o.value)c[g]=m(g);else{var p=i(g);h=p?a.getEve
ntHandlerGetter(g):k(g),(o.writable||o.set)&&(j=p?a.getEventHandlerSetter(g):l(g
)),K(c,g,{get:h,set:j,configurable:o.configurable,enumerable:o.enumerable})}}}}f
unction p(a,b,c){var e=a.prototype;q(e,b,c),d(b,a)}function q(a,c,d){var e=c.pro
totype;b(void 0===E.get(a)),E.set(a,c),F.set(e,a),g(a,e),d&&h(e,d),K(e,"construc
tor",{value:c,configurable:!0,enumerable:!1,writable:!0})}function r(a,b){return
E.get(b.prototype)===a}function 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.prototy
pe=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 instanc
eof G.DOMImplementation||a instanceof G.CanvasRenderingContext2D||G.WebGLRenderi
ngContext&&a instanceof G.WebGLRenderingContext}function v(a){return a instanceo
f R||a instanceof Q||a instanceof S||a instanceof T||a instanceof P||a instanceo
f U||V&&a instanceof V}function w(a){return null===a?null:(b(v(a)),a.polymerWrap
per_||(a.polymerWrapper_=new(f(a))(a)))}function x(a){return null===a?null:(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.polymerWrapper_=c)
}function B(a,b,c){K(a.prototype,b,{get:c,configurable:!0,enumerable:!0})}functi
on C(a,b){B(a,b,function(){return w(this.impl[b])})}function D(a,b){a.forEach(fu
nction(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.create(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.definePro
perty,L=Object.getOwnPropertyNames,M=Object.getOwnPropertyDescriptor;L(window);v
ar N=/Firefox/.test(navigator.userAgent),O={get:function(){},set:function(){},co
nfigurable:!0,enumerable:!0},P=window.DOMImplementation,Q=window.Event,R=window.
Node,S=window.Window,T=window.Range,U=window.CanvasRenderingContext2D,V=window.W
ebGLRenderingContext;a.assert=b,a.constructorTable=E,a.defineGetter=B,a.defineWr
apGetter=C,a.forwardMethodsToWrapper=D,a.isWrapperFor=r,a.mixin=c,a.nativeProtot
ypeTable=F,a.oneOf=e,a.registerObject=s,a.registerWrapper=p,a.rewrap=A,a.unwrap=
x,a.unwrapIfNeeded=y,a.wrap=w,a.wrapIfNeeded=z,a.wrappers=G}(window.ShadowDOMPol
yfill),function(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=windo
w.MutationObserver,f=[],g=!1;if(e){var h=1,i=new e(b),j=document.createTextNode(
h);i.observe(j,{characterData:!0}),d=function(){h=(h+1)%2,j.data=h}}else d=windo
w.setImmediate||window.setTimeout;a.setEndOfMicrotask=c}(window.ShadowDOMPolyfil
l),function(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.le
ngth&&(d.callback_(e,d),b=!0)}while(b)}function d(a,b){this.type=a,this.target=b
,this.addedNodes=new m.NodeList,this.removedNodes=new m.NodeList,this.previousSi
bling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace
=null,this.oldValue=null}function e(a,b){for(;a;a=a.parentNode){var c=n.get(a);i
f(c)for(var d=0;d<c.length;d++){var e=c[d];e.options.subtree&&e.addTransientObse
rver(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.re
moveTransientObservers()}}}function g(a,c,e){for(var f=Object.create(null),g=Obj
ect.create(null),h=a;h;h=h.parentNode){var i=n.get(h);if(i)for(var j=0;j<i.lengt
h;j++){var k=i[j],l=k.options;if((h===a||l.subtree)&&!("attributes"===c&&!l.attr
ibutes||"attributes"===c&&l.attributeFilter&&(null!==e.namespace||-1===l.attribu
teFilter.indexOf(e.name))||"characterData"===c&&!l.characterData||"childList"===
c&&!l.childList)){var m=k.observer;f[m.uid_]=m,("attributes"===c&&l.attributeOld
Value||"characterData"===c&&l.characterDataOldValue)&&(g[m.uid_]=e.oldValue)}}}v
ar o=!1;for(var p in f){var m=f[p],q=new d(c,a);"name"in e&&"namespace"in e&&(q.
attributeName=e.name,q.attributeNamespace=e.namespace),e.addedNodes&&(q.addedNod
es=e.addedNodes),e.removedNodes&&(q.removedNodes=e.removedNodes),e.previousSibli
ng&&(q.previousSibling=e.previousSibling),e.nextSibling&&(q.nextSibling=e.nextSi
bling),void 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="a
ttributes"in a||!("attributeOldValue"in a||"attributeFilter"in a)?!!a.attributes
:!0,this.characterData="characterDataOldValue"in a&&!("characterData"in a)?!0:!!
a.characterData,!this.attributes&&(a.attributeOldValue||"attributeFilter"in a)||
!this.characterData&&a.characterDataOldValue)throw new TypeError;if(this.charact
erData=!!a.characterData,this.attributeOldValue=!!a.attributeOldValue,this.chara
cterDataOldValue=!!a.characterDataOldValue,"attributeFilter"in a){if(null==a.att
ributeFilter||"object"!=typeof a.attributeFilter)throw new TypeError;this.attrib
uteFilter=q.call(a.attributeFilter)}else this.attributeFilter=null}function i(a)
{this.callback_=a,this.nodes_=[],this.records_=[],this.uid_=++r,o.push(this)}fun
ction j(a,b,c){this.observer=a,this.target=b,this.options=c,this.transientObserv
edNodes=[]}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].ob
server===this&&(c=e[f],c.removeTransientObservers(),c.options=d);c||(c=new j(thi
s,a,d),e.push(c),this.nodes_.push(a))},disconnect:function(){this.nodes_.forEach
(function(a){for(var b=n.get(a),c=0;c<b.length;c++){var d=b[c];if(d.observer===t
his){b.splice(c,1);break}}},this),this.records_=[]},takeRecords:function(){var a
=this.records_;return this.records_=[],a}},j.prototype={addTransientObserver:fun
ction(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.t
ransientObservedNodes;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.enqueueMutation=g,a.registerTransientObservers=e,a.wrappers.MutationObserv
er=i,a.wrappers.MutationRecord=d}(window.ShadowDOMPolyfill),function(a){"use str
ict";function b(a){return a instanceof O.ShadowRoot}function c(a){var b=a.localN
ame;return"content"===b||"shadow"===b}function d(a){return!!a.shadowRoot}functio
n e(a){var b;return a.parentNode||(b=a.defaultView)&&N(b)||null}function f(f,g,h
){if(h.length)return h.shift();if(b(f))return j(f)||f.host;var i=a.eventParentsT
able.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.leng
th;k++)if(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
]))return a[b];return null}function i(a,d){for(var e=[];a;){for(var g=[],i=d,j=v
oid 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)}function k(a){return j(a)}function l(a){for(var b;b=a.parentNode;)a=b;return
a}function m(a,b){return l(a)===l(b)}function n(a,b){return a===b?!0:a instanceo
f O.ShadowRoot?n(l(a.host),b):!1}function o(b){if(!Q.get(b)){Q.set(b,!0),a.rende
rAllPending();var c=N(b.target),d=N(b);return p(d,c)}}function p(a,b){var c=g(b)
;return"load"===a.type&&2===c.length&&c[0].target instanceof O.Document&&c.shift
(),Y.set(a,c),q(a,c)&&r(a,c)&&s(a,c),U.set(a,v.NONE),S.set(a,null),a.defaultPrev
ented}function q(a,b){for(var c,d=b.length-1;d>0;d--){var e=b[d].target,f=b[d].c
urrentTarget;if(e!==f&&(c=v.CAPTURING_PHASE,!t(b[d],a,c)))return!1}return!0}func
tion r(a,b){var c=v.AT_TARGET;return t(b[0],a,c)}function s(a,b){for(var c,d=a.b
ubbles,e=1;e<b.length;e++){var f=b[e].target,g=b[e].currentTarget;if(f===g)c=v.A
T_TARGET;else{if(!d||W.get(a))continue;c=v.BUBBLING_PHASE}if(!t(b[e],a,c))return
}}function t(a,b,c){var d=a.target,e=a.currentTarget,f=P.get(e);if(!f)return!0;i
f("relatedTarget"in b){var g=M(b);if(g.relatedTarget){var h=N(g.relatedTarget),j
=i(e,h);if(j===d)return!0;T.set(b,j)}}U.set(b,c);var k=b.type,l=!1;R.set(b,d),S.
set(b,e);for(var m=0;m<f.length;m++){var n=f[m];if(n.removed)l=!0;else if(!(n.ty
pe!==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),W.g
et(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].remo
ved||f.push(p[m])}return!V.get(b)}function u(a,b,c){this.type=a,this.handler=b,t
his.capture=Boolean(c)}function v(a,b){return a instanceof Z?(this.impl=a,void 0
):N(z(Z,"Event",a,b))}function w(a){return a&&a.relatedTarget?Object.create(a,{r
elatedTarget:{value:M(a.relatedTarget)}}):a}function x(a,b,c){var d=window[a],e=
function(b,c){return b instanceof d?(this.impl=b,void 0):N(z(d,a,b,c))};return e
.prototype=Object.create(b.prototype),c&&K(e.prototype,c),d&&(d.prototype["init"
+a]?L(d,e,document.createEvent(a)):L(d,e,new d("temp"))),e}function y(a,b){retur
n function(){arguments[b]=M(arguments[b]);var c=M(this);c[a].apply(c,arguments)}
}function z(a,b,c,d){if(gb)return new a(c,w(d));var e=M(document.createEvent(b))
,f=fb[b],g=[c];return Object.keys(f).forEach(function(a){var b=null!=d&&a in d?d
[a]:f[a];"relatedTarget"===a&&(b=M(b)),g.push(b)}),e["init"+b].apply(e,g),e}func
tion A(){v.call(this)}function B(a){return"function"==typeof a?!0:a&&a.handleEve
nt}function C(a){switch(a){case"DOMAttrModified":case"DOMAttributeNameChanged":c
ase"DOMCharacterDataModified":case"DOMElementNameChanged":case"DOMNodeInserted":
case"DOMNodeInsertedIntoDocument":case"DOMNodeRemoved":case"DOMNodeRemovedFromDo
cument":case"DOMSubtreeModified":return!0}return!1}function D(a){this.impl=a}fun
ction E(a){return a instanceof O.ShadowRoot&&(a=a.host),M(a)}function F(a){J(a,j
b)}function G(b,c,d,e){a.renderAllPending();for(var f=N(kb.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}r
eturn null}function H(a){return function(){var b=X.get(this);return b&&b[a]&&b[a
].value||null}}function I(a){var b=a.slice(2);return function(c){var d=X.get(thi
s);d||(d=Object.create(null),X.set(this,d));var e=d[a];if(e&&this.removeEventLis
tener(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.return
Value=d)};this.addEventListener(b,f,!1),d[a]={value:c,wrapped:f}}}}var J=a.forwa
rdMethodsToWrapper,K=a.mixin,L=a.registerWrapper,M=a.unwrap,N=a.wrap,O=a.wrapper
s,P=(new WeakMap,new WeakMap),Q=new WeakMap,R=new WeakMap,S=new WeakMap,T=new We
akMap,U=new WeakMap,V=new WeakMap,W=new WeakMap,X=new WeakMap,Y=new WeakMap;u.pr
ototype={equals:function(a){return this.handler===a.handler&&this.type===a.type&
&this.capture===a.capture},get removed(){return null===this.handler},remove:func
tion(){this.handler=null}};var Z=window.Event;Z.prototype.polymerBlackList_={ret
urnValue:!0},v.prototype={get target(){return R.get(this)},get currentTarget(){r
eturn S.get(this)},get eventPhase(){return U.get(this)},get path(){var a=new O.N
odeList,b=Y.get(this);if(b){for(var c=0,d=b.length-1,e=l(S.get(this)),f=0;d>=f;f
++){var g=b[f].currentTarget,h=l(g);n(e,h)&&(f!==d||g instanceof O.Node)&&(a[c++
]=g)}a.length=c}return a},stopPropagation:function(){V.set(this,!0)},stopImmedia
tePropagation:function(){V.set(this,!0),W.set(this,!0)}},L(Z,v,document.createEv
ent("Event"));var $=x("UIEvent",v),_=x("CustomEvent",v),ab={get relatedTarget(){
return T.get(this)||N(M(this).relatedTarget)}},bb=K({initMouseEvent:y("initMouse
Event",14)},ab),cb=K({initFocusEvent:y("initFocusEvent",5)},ab),db=x("MouseEvent
",$,bb),eb=x("FocusEvent",$,cb),fb=Object.create(null),gb=function(){try{new win
dow.MouseEvent("click")}catch(a){return!1}return!0}();if(!gb){var hb=function(a,
b,c){if(c){var d=fb[c];b=K(K({},d),b)}fb[a]=b};hb("Event",{bubbles:!1,cancelable
:!1}),hb("CustomEvent",{detail:null},"Event"),hb("UIEvent",{view:null,detail:0},
"Event"),hb("MouseEvent",{screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,alt
Key:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null},"UIEvent"),hb("FocusE
vent",{relatedTarget:null},"UIEvent")}A.prototype=Object.create(v.prototype),K(A
.prototype,{get returnValue(){return this.impl.returnValue},set returnValue(a){t
his.impl.returnValue=a}});var ib=window.EventTarget,jb=["addEventListener","remo
veEventListener","dispatchEvent"];[Node,Window].forEach(function(a){var b=a.prot
otype;jb.forEach(function(a){Object.defineProperty(b,a+"_",{value:b[a]})})}),D.p
rototype={addEventListener:function(a,b,c){if(B(b)&&!C(a)){var d=new u(a,b,c),e=
P.get(this);if(e){for(var f=0;f<e.length;f++)if(d.equals(e[f]))return}else e=[],
P.set(this,e);e.push(d);var g=E(this);g.addEventListener_(a,o,!0)}},removeEventL
istener:function(a,b,c){c=Boolean(c);var d=P.get(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.removeEventListener_(a,o,!0)}}},disp
atchEvent:function(a){var b=E(this),c=M(a);return Q.set(c,!1),b.dispatchEvent_(c
)}},ib&&L(ib,D);var kb=document.elementFromPoint;a.adjustRelatedTarget=i,a.eleme
ntFromPoint=G,a.getEventHandlerGetter=H,a.getEventHandlerSetter=I,a.wrapEventTar
getMethods=F,a.wrappers.BeforeUnloadEvent=A,a.wrappers.CustomEvent=_,a.wrappers.
Event=v,a.wrappers.EventTarget=D,a.wrappers.FocusEvent=eb,a.wrappers.MouseEvent=
db,a.wrappers.UIEvent=$}(window.ShadowDOMPolyfill),function(a){"use strict";func
tion 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.len
gth;e>d;d++)b[d]=f(a[d]);return b.length=e,b}function e(a,b){a.prototype[b]=func
tion(){return d(this.impl[b].apply(this.impl,arguments))}}var f=a.wrap;c.prototy
pe={item:function(a){return this[a]}},b(c.prototype,"item"),a.wrappers.NodeList=
c,a.addWrapNodeListMethod=e,a.wrapNodeList=d}(window.ShadowDOMPolyfill),function
(a){"use strict";function b(a){v(a instanceof s)}function c(a){var b=new u;retur
n b[0]=a,b.length=1,b}function d(a,b,c){x(b,"childList",{removedNodes:c,previous
Sibling:a.previousSibling,nextSibling:a.nextSibling})}function e(a,b){x(a,"child
List",{removedNodes:b})}function f(a,b,d,e){if(a instanceof DocumentFragment){va
r f=h(a);E=!0;for(var g=f.length-1;g>=0;g--)a.removeChild(f[g]),f[g].parentNode_
=b;E=!1;for(var g=0;g<f.length;g++)f[g].previousSibling_=f[g-1]||d,f[g].nextSibl
ing_=f[g+1]||e;return d&&(d.nextSibling_=f[0]),e&&(e.previousSibling_=f[f.length
-1]),f | 1 if(!HTMLElement.prototype.createShadowRoot||window.__forceShadowDomPolyfill){!fu
nction(){Element.prototype.webkitCreateShadowRoot&&(Element.prototype.webkitCrea
teShadowRoot=function(){return window.ShadowDOMPolyfill.wrapIfNeeded(this).creat
eShadowRoot()})}(),function(a){"use strict";function b(){function a(a){b=a}if("f
unction"!=typeof Object.observe||"function"!=typeof Array.observe)return!1;var b
=[],c={};if(Object.observe(c,a),c.id=1,c.id=2,delete c.id,Object.deliverChangeRe
cords(a),3!==b.length)return!1;if("new"==b[0].type&&"updated"==b[1].type&&"delet
ed"==b[2].type)L="new",M="updated",N="reconfigured",O="deleted";else if("add"!=b
[0].type||"update"!=b[1].type||"delete"!=b[2].type)return console.error("Unexpec
ted change record names for Object.observe. Using dirty-checking instead"),!1;re
turn Object.unobserve(c,a),c=[0],Array.observe(c,a),c[1]=1,c.length=0,Object.del
iverChangeRecords(a),2!=b.length?!1:b[0].type!=P||b[1].type!=P?!1:(Array.unobser
ve(c,a),!0)}function c(){if(a.document&&"securityPolicy"in a.document&&!a.docume
nt.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){retur
n+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.t
rim(),""==a?!0:"."==a[0]?!1:$.test(a))}function i(a,b){if(b!==_)throw Error("Use
Path.get to retrieve path objects");return""==a.trim()?this:d(a)?(this.push(a),
this):(a.split(/\s*\.\s*/).filter(function(a){return a}).forEach(function(a){thi
s.push(a)},this),void(R&&this.length&&(this.getValueFrom=this.compiledGetValueFr
omFn())))}function j(a){if(a instanceof i)return a;null==a&&(a=""),"string"!=typ
eof 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.tes
tingExposeCycleCount&&(a.dirtyCheckCycleCount=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.length!==b.length&&(e.length=a.length),{added:c,remo
ved: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("Observed
Object in use");e||Object.deliverChangeRecords(a),b=c,e=!1},observe:function(b,d
){c=b,d?Array.observe(c,a):Object.observe(c,a)},deliver:function(b){d=b,Object.d
eliverChangeRecords(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.push(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.iterateObjects_(a);for(var g=0;g<i.length;g++){var l=i[g]
;l&&Object.unobserve(l,d)}i.length=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:void 0,objects:h,open:function(b){e[b.id_]=b,g++,b.i
terateObjects_(a)},close:function(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.len
gth=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,this.target_=void 0,this.directObserver_=void 0,this.
value_=void 0,this.id_=nb++}function u(a){t._allObserversCount++,pb&&ob.push(a)}
function v(){t._allObserversCount--}function w(a){t.call(this),this.value_=a,thi
s.oldObject_=void 0}function x(a){if(!Array.isArray(a))throw Error("Provided obj
ect 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.cal
l(this),this.value_=[],this.directObserver_=void 0,this.observed_=[]}function A(
a){return a}function B(a,b,c,d){this.callback_=void 0,this.target_=void 0,this.v
alue_=void 0,this.observable_=a,this.getValueFn_=b||A,this.setValueFn_=c||A,this
.dontPassThroughSet_=d}function C(a,b){if("function"==typeof Object.observe){var
c=Object.getNotifier(a);return function(d,e){var f={object:a,type:d,name:b};2==
=arguments.length&&(f.oldValue=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.oldValu
e),g.type!=M&&(g.type!=L?g.name in d?(delete d[g.name],delete c[g.name]):e[g.nam
e]=!0:g.name in e?delete e[g.name]:d[g.name]=!0)):(console.error("Unknown change
Record type: "+g.type),console.error(g))}for(var h in d)d[h]=a[h];for(var h in e
)e[h]=void 0;var i={};for(var h in c)if(!(h in d||h in e)){var j=a[h];c[h]!==j&&
(i[h]=j)}return{added:d,removed:e,changed:i}}function E(a,b,c){return{index:a,re
moved:b,addedCount:c}}function F(){}function G(a,b,c,d,e,f){return yb.calcSplice
s(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.leng
th,e.addedCount+=i.addedCount-j;var k=e.removed.length+i.removed.length-j;if(e.a
ddedCount||k){var c=i.removed;if(e.index<i.index){var l=e.removed.slice(0,i.inde
x-e.index);Array.prototype.push.apply(l,c),c=l}if(e.index+e.removed.length>i.ind
ex+i.addedCount){var m=e.removed.slice(i.index+i.addedCount-e.index);Array.proto
type.push.apply(c,m)}e.removed=c,i.index<e.index&&(e.index=i.index)}else f=!0}el
se if(e.index<i.index){f=!0,a.splice(h,0,e),h++;var n=e.addedCount-e.removed.len
gth;i.index+=n,g+=n}}}f||a.push(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:if(!d(g.name))continue;var h=e(g.name);if(0>h)contin
ue;I(c,h,[g.oldValue],1);break;default:console.error("Unexpected record type: "+
JSON.stringify(g))}}return c}function K(a,b){var c=[];return J(a,b).forEach(func
tion(b){return 1==b.addedCount&&1==b.removed.length?void(b.removed[0]!==a[b.inde
x]&&c.push(b)):void(c=c.concat(G(a,b.index,b.index+b.addedCount,b.removed,0,b.re
moved.length)))}),c}var L="add",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)ret
urn a;var c=Object.create(b);return Object.getOwnPropertyNames(a).forEach(functi
on(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},iterateObjects:function(a,b){for(var c=0;c<this.length;c
++){if(c&&(a=a[this[c-1]]),!a)return;b(a)}},compiledGetValueFromFn:function(){va
r a=this.map(function(a){return d(a)?'["'+a+'"]':"."+a}),b="",c="obj";b+="if (ob
j != 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)},setValueFrom:function(a,b){if(!this.length)return!1;for
(var c=0;c<this.length-1;c++){if(!f(a))return!1;a=a[this[c]]}return f(a)?(a[this
[c]]=b,!0):!1}});var 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.pingPo
ng=!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)t
hrow Error("Observer has already 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.state_=lb,this.disconnect_(),this.value_=void 0,this.
callback_=void 0,this.target_=void 0)},deliver:function(){this.state_==kb&&k(thi
s)},report_:function(a){try{this.callback_.apply(this.target_,a)}catch(b){t._err
orThrownDuringCallback=!0,console.error("Exception caught during observer callba
ck: "+(b.stack||b))}},discardChanges:function(){return this.check_(void 0,!0),th
is.value_}};var ob,pb=!Q;t._allObserversCount=0,pb&&(ob=[]);var qb=!1,rb="functi
on"==typeof Object.deliverAllChangeRecords;a.Platform=a.Platform||{},a.Platform.
performMicrotaskCheckpoint=function(){if(!qb){if(rb)return void Object.deliverAl
lChangeRecords();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.state_==kb&&(f.check_()&&(b=!0),ob.push(f))}o()&&(b=!0
)}while(db>d&&b);a.testingExposeCycleCount&&(a.dirtyCheckCycleCount=d),qb=!1}}},
pb&&(a.Platform.clearObservers=function(){ob=[]}),w.prototype=T({__proto__:t.pro
totype,arrayObserve:!1,connect_:function(){Q?this.directObserver_=q(this,this.va
lue_,this.arrayObserve):this.oldObject_=this.copyObject(this.value_)},copyObject
:function(a){var b=Array.isArray(a)?[]:{};for(var c in a)b[c]=a[c];return Array.
isArray(a)&&(b.length=a.length),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.oldObje
ct_);return m(b)?!1:(Q||(this.oldObject_=this.copyObject(this.value_)),this.repo
rt_([b.added||{},b.removed||{},b.changed||{},function(a){return c[a]}]),!0)},dis
connect_:function(){Q?(this.directObserver_.close(),this.directObserver_=void 0)
:this.oldObject_=void 0},deliver:function(){this.state_==kb&&(Q?this.directObser
ver_.deliver(!1):k(this))},discardChanges:function(){return this.directObserver_
?this.directObserver_.deliver(!0):this.oldObject_=this.copyObject(this.value_),t
his.value_}}),x.prototype=T({__proto__:w.prototype,arrayObserve:!0,copyObject:fu
nction(a){return a.slice()},check_:function(a){var b;if(Q){if(!a)return!1;b=K(th
is.value_,a)}else b=G(this.value_,0,this.value_.length,this.oldObject_,0,this.ol
dObject_.length);return b&&b.length?(Q||(this.oldObject_=this.copyObject(this.va
lue_)),this.report_([b]),!0):!1}}),x.applySplices=function(a,b,c){c.forEach(func
tion(c){for(var d=[c.index,c.removed.length],e=c.index;e<c.index+c.addedCount;)d
.push(b[e]),e++;Array.prototype.splice.apply(a,d)})},y.prototype=T({__proto__:t.
prototype,connect_:function(){Q&&(this.directObserver_=s(this,this.object_)),thi
s.check_(void 0,!0)},disconnect_:function(){this.value_=void 0,this.directObserv
er_&&(this.directObserver_.close(this),this.directObserver_=void 0)},iterateObje
cts_:function(a){this.path_.iterateObjects(this.object_,a)},check_:function(a,b)
{var c=this.value_;return this.value_=this.path_.getValueFrom(this.object_),b||g
(this.value_,c)?!1:(this.report_([this.value_,c]),!0)},setValue:function(a){this
.path_&&this.path_.setValueFrom(this.object_,a)}});var sb={};z.prototype=T({__pr
oto__:t.prototype,connect_:function(){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}ret
urn this.directObserver_?b?void this.directObserver_.reset():(this.directObserve
r_.close(),void(this.directObserver_=void 0)):void(b&&(this.directObserver_=s(th
is,a)))}},closeObservers_:function(){for(var a=0;a<this.observed_.length;a+=2)th
is.observed_[a]===sb&&this.observed_[a+1].close();this.observed_.length=0},disco
nnect_:function(){this.value_=void 0,this.directObserver_&&(this.directObserver_
.close(this),this.directObserver_=void 0),this.closeObservers_()},addPath:functi
on(a,b){if(this.state_!=jb&&this.state_!=mb)throw Error("Cannot add paths once s
tarted.");this.observed_.push(a,b instanceof i?b:j(b))},addObserver:function(a){
if(this.state_!=jb&&this.state_!=mb)throw Error("Cannot add observers once start
ed.");a.open(this.deliver,this),this.observed_.push(sb,a)},startReset:function()
{if(this.state_!=kb)throw Error("Can only reset while open");this.state_=mb,this
.closeObservers_()},finishReset:function(){if(this.state_!=mb)throw Error("Can o
nly finishReset after startReset");return this.state_=kb,this.connect_(),this.va
lue_},iterateObjects_:function(a){for(var b,c=0;c<this.observed_.length;c+=2)b=t
his.observed_[c],b!==sb&&this.observed_[c+1].iterateObjects(b,a)},check_:functio
n(a,b){for(var c,d=0;d<this.observed_.length;d+=2){var e=this.observed_[d+1],f=t
his.observed_[d],h=f===sb?e.discardChanges():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={op
en:function(a,b){return this.callback_=a,this.target_=b,this.value_=this.getValu
eFn_(this.observable_.open(this.observedCallback_,this)),this.value_},observedCa
llback_: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:function(){return this.observable_.deliver()},setValue:f
unction(a){return a=this.setValueFn_(a),!this.dontPassThroughSet_&&this.observab
le_.setValue?this.observable_.setValue(a):void 0},close:function(){this.observab
le_&&this.observable_.close(),this.callback_=void 0,this.target_=void 0,this.obs
ervable_=void 0,this.value_=void 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(function(a,b){e=a,d&&d(M,b)});return Object.definePrope
rty(a,b,{get:function(){return c.deliver(),e},set:function(a){return c.setValue(
a),a},configurable:!0}),{close:function(){c.close(),Object.defineProperty(a,b,{v
alue:e,writable:!0,configurable:!0})}}};var ub=0,vb=1,wb=2,xb=3;F.prototype={cal
cEditDistances: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},spliceOperationsF
romEditDistances:function(a){for(var b=a.length-1,c=a[0].length-1,d=a[b][c],e=[]
;b>0||c>0;)if(0!=b)if(0!=c){var f,g=a[b-1][c-1],h=a[b-1][c],i=a[b][c-1];f=i>h?g>
h?h:g:g>i?i:g,f==g?(g==d?e.push(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.re
verse(),e},calcSplices:function(a,b,c,d,e,f){var g=0,h=0,i=Math.min(c-b,f-e);if(
0==b&&0==e&&(g=this.sharedPrefix(a,d,i)),c==a.length&&f==d.length&&(h=this.share
dSuffix(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.push(d[e++]);return[j]}if(e==f)return[E(b,[],c-b)];for
(var k=this.spliceOperationsFromEditDistances(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 vb:j||(j=E(m,[],0)),j.addedCount++,m++,j.removed.pus
h(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:functi
on(a,b,c){for(var d=0;c>d;d++)if(!this.equals(a[d],b[d]))return d;return c},shar
edSuffix: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},calculateSplices: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.calculateSplices=function(a,b){return yb.calculateSplices(a,b)}
,a.ArraySplice=F,a.ObjectObserver=w,a.PathObserver=y,a.CompoundObserver=z,a.Path
=i,a.ObserverTransform=B,a.Observer.changeRecordTypes={add:L,update:M,reconfigur
e:N,"delete":O,splice:P}}("undefined"!=typeof global&&global&&"undefined"!=typeo
f module&&module?global:this||window),"undefined"==typeof WeakMap&&!function(){v
ar a=Object.defineProperty,b=Date.now()%1e9,c=function(){this.name="__st"+(1e9*M
ath.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){va
r b;return(b=a[this.name])&&b[0]===a?b[1]:void 0},"delete":function(a){this.set(
a,void 0)}},window.WeakMap=c}(),window.ShadowDOMPolyfill={},function(a){"use str
ict";function b(a){if(!a)throw new Error("Assertion failed")}function c(a,b){ret
urn L(b).forEach(function(c){K(a,c,M(b,c))}),a}function d(a,b){return L(b).forEa
ch(function(c){switch(c){case"arguments":case"caller":case"length":case"name":ca
se"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);return 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)}function k(a){retur
n H&&j(a)?new Function("return this.impl."+a):function(){return this.impl[a]}}fu
nction l(a){return H&&j(a)?new Function("v","this.impl."+a+" = v"):function(b){t
his.impl[a]=b}}function m(a){return H&&j(a)?new Function("return this.impl."+a+"
.apply(this.impl, arguments)"):function(){return this.impl[a].apply(this.impl,ar
guments)}}function n(a,b){try{return Object.getOwnPropertyDescriptor(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.polymerBlackList_[g]))
{N&&b.__lookupGetter__(g);var h,j,o=n(b,g);if(d&&"function"==typeof o.value)c[g]
=m(g);else{var p=i(g);h=p?a.getEventHandlerGetter(g):k(g),(o.writable||o.set)&&(
j=p?a.getEventHandlerSetter(g):l(g)),K(c,g,{get:h,set:j,configurable:o.configura
ble,enumerable:o.enumerable})}}}}function p(a,b,c){var e=a.prototype;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,wr
itable:!0})}function r(a,b){return E.get(b.prototype)===a}function s(a){var b=Ob
ject.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.cons
tructor=b,b}function u(a){return a instanceof G.EventTarget||a instanceof G.Even
t||a instanceof G.Range||a instanceof G.DOMImplementation||a instanceof G.Canvas
RenderingContext2D||G.WebGLRenderingContext&&a instanceof G.WebGLRenderingContex
t}function v(a){return Q&&a instanceof Q||a instanceof S||a instanceof R||a inst
anceof 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.polymerWrapper_||(a
.polymerWrapper_=new(f(a))(a)))}function x(a){return null===a?null:(b(u(a)),a.im
pl)}function y(a){return a&&u(a)?x(a):a}function z(a){return a&&!u(a)?w(a):a}fun
ction A(a,c){null!==c&&(b(v(a)),b(void 0===c||u(c)),a.polymerWrapper_=c)}functio
n 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.forEach(function(a
){b.forEach(function(b){a.prototype[b]=function(){var a=z(this);return a[b].appl
y(a,arguments)}})})}var E=new WeakMap,F=new WeakMap,G=Object.create(null),H=!("s
ecurityPolicy"in document)||document.securityPolicy.allowsEval;if(H)try{var I=ne
w Function("","return true;");H=I()}catch(J){H=!1}var K=Object.defineProperty,L=
Object.getOwnPropertyNames,M=Object.getOwnPropertyDescriptor;L(window);var N=/Fi
refox/.test(navigator.userAgent),O={get:function(){},set:function(){},configurab
le:!0,enumerable:!0},P=window.DOMImplementation,Q=window.EventTarget,R=window.Ev
ent,S=window.Node,T=window.Window,U=window.Range,V=window.CanvasRenderingContext
2D,W=window.WebGLRenderingContext,X=window.SVGElementInstance;a.assert=b,a.const
ructorTable=E,a.defineGetter=B,a.defineWrapGetter=C,a.forwardMethodsToWrapper=D,
a.isWrapper=u,a.isWrapperFor=r,a.mixin=c,a.nativePrototypeTable=F,a.oneOf=e,a.re
gisterObject=s,a.registerWrapper=p,a.rewrap=A,a.unwrap=x,a.unwrapIfNeeded=y,a.wr
ap=w,a.wrapIfNeeded=z,a.wrappers=G}(window.ShadowDOMPolyfill),function(a){"use s
trict";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.MutationObserver,f=[],g
=!1;if(e){var h=1,i=new e(b),j=document.createTextNode(h);i.observe(j,{character
Data:!0}),d=function(){h=(h+1)%2,j.data=h}}else d=window.setImmediate||window.se
tTimeout;a.setEndOfMicrotask=c}(window.ShadowDOMPolyfill),function(a){"use stric
t";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.addedNodes=new m.No
deList,this.removedNodes=new m.NodeList,this.previousSibling=null,this.nextSibli
ng=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}
function e(a,b){for(;a;a=a.parentNode){var c=n.get(a);if(c)for(var d=0;d<c.lengt
h;d++){var e=c[d];e.options.subtree&&e.addTransientObserver(b)}}}function f(a){f
or(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.removeTransientObservers()}
}}function g(a,c,e){for(var f=Object.create(null),g=Object.create(null),h=a;h;h=
h.parentNode){var i=n.get(h);if(i)for(var j=0;j<i.length;j++){var k=i[j],l=k.opt
ions;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.childList)){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){v
ar m=f[p],q=new d(c,a);"name"in e&&"namespace"in e&&(q.attributeName=e.name,q.at
tributeNamespace=e.namespace),e.addedNodes&&(q.addedNodes=e.addedNodes),e.remove
dNodes&&(q.removedNodes=e.removedNodes),e.previousSibling&&(q.previousSibling=e.
previousSibling),e.nextSibling&&(q.nextSibling=e.nextSibling),void 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="attributes"in a||!("attrib
uteOldValue"in a||"attributeFilter"in a)?!!a.attributes:!0,this.characterData="c
haracterDataOldValue"in a&&!("characterData"in a)?!0:!!a.characterData,!this.att
ributes&&(a.attributeOldValue||"attributeFilter"in a)||!this.characterData&&a.ch
aracterDataOldValue)throw new TypeError;if(this.characterData=!!a.characterData,
this.attributeOldValue=!!a.attributeOldValue,this.characterDataOldValue=!!a.char
acterDataOldValue,"attributeFilter"in a){if(null==a.attributeFilter||"object"!=t
ypeof a.attributeFilter)throw new TypeError;this.attributeFilter=q.call(a.attrib
uteFilter)}else this.attributeFilter=null}function i(a){this.callback_=a,this.no
des_=[],this.records_=[],this.uid_=++r,o.push(this)}function j(a,b,c){this.obser
ver=a,this.target=b,this.options=c,this.transientObservedNodes=[]}var k=a.setEnd
OfMicrotask,l=a.wrapIfNeeded,m=a.wrappers,n=new WeakMap,o=[],p=!1,q=Array.protot
ype.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.nod
es_.push(a))},disconnect:function(){this.nodes_.forEach(function(a){for(var b=n.
get(a),c=0;c<b.length;c++){var d=b[c];if(d.observer===this){b.splice(c,1);break}
}},this),this.records_=[]},takeRecords:function(){var a=this.records_;return thi
s.records_=[],a}},j.prototype={addTransientObserver:function(a){if(a!==this.targ
et){this.transientObservedNodes.push(a);var b=n.get(a);b||n.set(a,b=[]),b.push(t
his)}},removeTransientObservers:function(){var a=this.transientObservedNodes;thi
s.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.enqueueMutation=g,a
.registerTransientObservers=e,a.wrappers.MutationObserver=i,a.wrappers.MutationR
ecord=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){return
a instanceof Q.ShadowRoot}function c(a){var b=a.localName;return"content"===b||
"shadow"===b}function d(a){return!!a.shadowRoot}function e(a){var b;return a.par
entNode||(b=a.defaultView)&&P(b)||null}function f(f,g,h){if(h.length)return h.sh
ift();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++)if(m[k].contains(n
))return n}return e(f)}function g(a){for(var d=[],e=a,g=[],i=[];e;){var j=null;i
f(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]))return a[b];return nul
l}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);i
f(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.paren
tNode}}function j(b){return a.insertionParentTable.get(b)}function k(a){return j
(a)}function l(a){for(var b;b=a.parentNode;)a=b;return a}function m(a,b){return
l(a)===l(b)}function n(a,b){return a===b?!0:a instanceof Q.ShadowRoot?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)))}f
unction p(b,c){if(T.get(b))throw new Error("InvalidStateError");T.set(b,!0),a.re
nderAllPending();var d=g(c);return"load"===b.type&&2===d.length&&d[0].target ins
tanceof 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.le
ngth-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.AT_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){var 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)return!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++){v
ar n=f[m];if(n.removed)l=!0;else if(!(n.type!==k||!n.capture&&c===v.CAPTURING_PH
ASE||n.capture&&c===v.BUBBLING_PHASE))try{if("function"==typeof n.handler?n.hand
ler.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.len
gth=0;for(var m=0;m<p.length;m++)p[m].removed||f.push(p[m])}return!Y.get(b)}func
tion 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){ret
urn 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?voi
d(this.impl=b):P(z(d,a,b,c))};if(e.prototype=Object.create(b.prototype),c&&M(e.p
rototype,c),d)try{N(d,e,new d("temp"))}catch(f){N(d,e,document.createEvent(a))}r
eturn e}function y(a,b){return function(){arguments[b]=O(arguments[b]);var c=O(t
his);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(functi
on(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"DOMAttrModified":ca
se"DOMAttributeNameChanged":case"DOMCharacterDataModified":case"DOMElementNameCh
anged":case"DOMNodeInserted":case"DOMNodeInsertedIntoDocument":case"DOMNodeRemov
ed":case"DOMNodeRemovedFromDocument":case"DOMSubtreeModified":return!0}return!1}
function D(a){this.impl=a}function E(a){return a instanceof Q.ShadowRoot&&(a=a.h
ost),O(a)}function F(a,b){var c=R.get(a);if(c)for(var d=0;d<c.length;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.le
ngth;i++){var j=h[i];if(j.currentTarget===b)return j.target}return null}function
J(a){return function(){var b=$.get(this);return b&&b[a]&&b[a].value||null}}func
tion K(a){var b=a.slice(2);return function(c){var d=$.get(this);d||(d=Object.cre
ate(null),$.set(this,d));var e=d[a];if(e&&this.removeEventListener(b,e.wrapped,!
1),"function"==typeof c){var f=function(b){var d=c.call(this,b);d===!1?b.prevent
Default():"onbeforeunload"===a&&"string"==typeof d&&(b.returnValue=d)};this.addE
ventListener(b,f,!1),d[a]={value:c,wrapped:f}}}}var L=a.forwardMethodsToWrapper,
M=a.mixin,N=a.registerWrapper,O=a.unwrap,P=a.wrap,Q=a.wrappers,R=(new WeakMap,ne
w WeakMap),S=new WeakMap,T=new WeakMap,U=new WeakMap,V=new WeakMap,W=new WeakMap
,X=new WeakMap,Y=new WeakMap,Z=new WeakMap,$=new WeakMap,_=new WeakMap;u.prototy
pe={equals:function(a){return this.handler===a.handler&&this.type===a.type&&this
.capture===a.capture},get removed(){return null===this.handler},remove:function(
){this.handler=null}};var ab=window.Event;ab.prototype.polymerBlackList_={return
Value:!0,keyLocation:!0},v.prototype={get target(){return U.get(this)},get curre
ntTarget(){return V.get(this)},get eventPhase(){return X.get(this)},get path(){v
ar 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.N
ode)&&(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,docu
ment.createEvent("Event"));var bb=x("UIEvent",v),cb=x("CustomEvent",v),db={get r
elatedTarget(){return W.get(this)||P(O(this).relatedTarget)}},eb=M({initMouseEve
nt:y("initMouseEvent",14)},db),fb=M({initFocusEvent:y("initFocusEvent",5)},db),g
b=x("MouseEvent",bb,eb),hb=x("FocusEvent",bb,fb),ib=Object.create(null),jb=funct
ion(){try{new window.FocusEvent("focus")}catch(a){return!1}return!0}();if(!jb){v
ar kb=function(a,b,c){if(c){var d=ib[c];b=M(M({},d),b)}ib[a]=b};kb("Event",{bubb
les:!1,cancelable:!1}),kb("CustomEvent",{detail:null},"Event"),kb("UIEvent",{vie
w:null,detail:0},"Event"),kb("MouseEvent",{screenX:0,screenY:0,clientX:0,clientY
:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null},"UIE
vent"),kb("FocusEvent",{relatedTarget:null},"UIEvent")}A.prototype=Object.create
(v.prototype),M(A.prototype,{get returnValue(){return this.impl.returnValue},set
returnValue(a){this.impl.returnValue=a}});var lb=window.EventTarget,mb=["addEve
ntListener","removeEventListener","dispatchEvent"];[Node,Window].forEach(functio
n(a){var b=a.prototype;mb.forEach(function(a){Object.defineProperty(b,a+"_",{val
ue: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.addEventListener_(a,o,!
0) |
| 2 }var f=c(a),i=a.parentNode;return i&&i.removeChild(a),a.parentNode_=b,a.previous
Sibling_=d,a.nextSibling_=e,d&&(d.nextSibling_=a),e&&(e.previousSibling_=a),f}fu
nction g(a){if(a instanceof DocumentFragment)return h(a);var b=c(a),e=a.parentNo
de;return e&&d(a,e,b),b}function h(a){for(var b=new u,c=0,d=a.firstChild;d;d=d.n
extSibling)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])}functio
n l(){}function m(){}function n(a,b){var c=a.nodeType===s.DOCUMENT_NODE?a:a.owne
rDocument;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.length;e++)a.adoptNod
eNoRemove(c[e],d)}}function p(a,b){o(a,b);var c=b.length;if(1===c)return B(b[0])
;for(var d=B(a.ownerDocument.createDocumentFragment()),e=0;c>e;e++)d.appendChild
(B(b[e]));return d}function q(a){if(a.invalidateShadowRenderer()){for(var b=a.fi
rstChild;b;){v(b.parentNode===a);var c=b.nextSibling,d=B(b),e=d.parentNode;e&&J.
call(e,d),b.previousSibling_=b.nextSibling_=b.parentNode_=null,b=c}a.firstChild_
=a.lastChild_=null}else for(var c,f=B(a),g=f.firstChild;g;)c=g.nextSibling,J.cal
l(f,g),g=c}function r(a){var b=a.parentNode;return b&&b.invalidateShadowRenderer
()}function s(a){v(a instanceof F),t.call(this,a),this.parentNode_=void 0,this.f
irstChild_=void 0,this.lastChild_=void 0,this.nextSibling_=void 0,this.previousS
ibling_=void 0}var t=a.wrappers.EventTarget,u=a.wrappers.NodeList,v=a.assert,w=a
.defineWrapGetter,x=a.enqueueMutation,y=a.mixin,z=a.registerTransientObservers,A
=a.registerWrapper,B=a.unwrap,C=a.wrap,D=a.wrapIfNeeded,E=!1,F=window.Node,G=win
dow.DocumentFragment,H=(F.prototype.appendChild,F.prototype.compareDocumentPosit
ion),I=F.prototype.insertBefore,J=F.prototype.removeChild,K=F.prototype.replaceC
hild,L=/Trident/.test(navigator.userAgent),M=L?function(a,b){try{J.call(a,b)}cat
ch(c){if(!(a instanceof G))throw c}}:function(a,b){J.call(a,b)};s.prototype=Obje
ct.create(t.prototype),y(s.prototype,{appendChild:function(a){return this.insert
Before(a,null)},insertBefore:function(a,c){b(a),c=c||null,c&&b(c),c&&v(c.parentN
ode===this);var d,e=c?c.previousSibling:this.lastChild,h=!this.invalidateShadowR
enderer()&&!r(a);if(d=h?g(a):f(a,this,e,c),h)n(this,a),I.call(this.impl,B(a),B(c
));else{e||(this.firstChild_=d[0]),c||(this.lastChild_=d[d.length-1]);var i=B(c)
,j=i?i.parentNode:this.impl;j?I.call(j,p(this,d),i):o(this,d)}return x(this,"chi
ldList",{addedNodes:d,nextSibling:c,previousSibling:e}),k(d),a},removeChild:func
tion(a){if(b(a),a.parentNode!==this){for(var d=!1,e=(this.childNodes,this.firstC
hild);e;e=e.nextSibling)if(e===a){d=!0;break}if(!d)throw new Error("NotFoundErro
r")}var f=B(a),g=a.nextSibling,h=a.previousSibling;if(this.invalidateShadowRende
rer()){var i=this.firstChild,j=this.lastChild,k=f.parentNode;k&&M(k,f),i===a&&(t
his.firstChild_=g),j===a&&(this.lastChild_=h),h&&(h.nextSibling_=g),g&&(g.previo
usSibling_=h),a.previousSibling_=a.nextSibling_=a.parentNode_=void 0}else M(this
.impl,f);return E||x(this,"childList",{removedNodes:c(a),nextSibling:g,previousS
ibling:h}),z(this,a),a},replaceChild:function(a,d){if(b(a),b(d),d.parentNode!==t
his)throw new Error("NotFoundError");var e,h=B(d),i=d.nextSibling,j=d.previousSi
bling,m=!this.invalidateShadowRenderer()&&!r(a);return m?e=g(a):(i===a&&(i=a.nex
tSibling),e=f(a,this,j,i)),m?(n(this,a),K.call(this.impl,B(a),h)):(this.firstChi
ld===d&&(this.firstChild_=e[0]),this.lastChild===d&&(this.lastChild_=e[e.length-
1]),d.previousSibling_=d.nextSibling_=d.parentNode_=void 0,h.parentNode&&K.call(
h.parentNode,p(this,e),h)),x(this,"childList",{addedNodes:e,removedNodes:c(d),ne
xtSibling:i,previousSibling:j}),l(d),k(e),d},nodeIsInserted_:function(){for(var
a=this.firstChild;a;a=a.nextSibling)a.nodeIsInserted_()},hasChildNodes:function(
){return null!==this.firstChild},get parentNode(){return void 0!==this.parentNod
e_?this.parentNode_:C(this.impl.parentNode)},get firstChild(){return void 0!==th
is.firstChild_?this.firstChild_:C(this.impl.firstChild)},get lastChild(){return
void 0!==this.lastChild_?this.lastChild_:C(this.impl.lastChild)},get nextSibling
(){return void 0!==this.nextSibling_?this.nextSibling_:C(this.impl.nextSibling)}
,get previousSibling(){return void 0!==this.previousSibling_?this.previousSiblin
g_:C(this.impl.previousSibling)},get parentElement(){for(var a=this.parentNode;a
&&a.nodeType!==s.ELEMENT_NODE;)a=a.parentNode;return a},get textContent(){for(va
r a="",b=this.firstChild;b;b=b.nextSibling)a+=b.textContent;return a},set textCo
ntent(a){var b=i(this.childNodes);if(this.invalidateShadowRenderer()){if(q(this)
,""!==a){var c=this.impl.ownerDocument.createTextNode(a);this.appendChild(c)}}el
se this.impl.textContent=a;var d=i(this.childNodes);x(this,"childList",{addedNod
es:d,removedNodes:b}),m(b),k(d)},get childNodes(){for(var a=new u,b=0,c=this.fir
stChild;c;c=c.nextSibling)a[b++]=c;return a.length=b,a},cloneNode:function(a){va
r b=C(this.impl.cloneNode(!1));if(a)for(var c=this.firstChild;c;c=c.nextSibling)
b.appendChild(c.cloneNode(!0));return b},contains:function(a){if(!a)return!1;if(
a=D(a),a===this)return!0;var b=a.parentNode;return b?this.contains(b):!1},compar
eDocumentPosition:function(a){return H.call(this.impl,B(a))}}),w(s,"ownerDocumen
t"),A(F,s,document.createDocumentFragment()),delete s.prototype.querySelector,de
lete s.prototype.querySelectorAll,s.prototype=y(Object.create(t.prototype),s.pro
totype),a.nodeWasAdded=j,a.nodeWasRemoved=l,a.nodesWereAdded=k,a.nodesWereRemove
d=m,a.snapshotNodeList=i,a.wrappers.Node=s}(window.ShadowDOMPolyfill),function(a
){"use strict";function b(a,c){for(var d,e=a.firstElementChild;e;){if(e.matches(
c))return e;if(d=b(e,c))return d;e=e.nextElementSibling}return null}function c(a
,b,d){for(var e=a.firstElementChild;e;)e.matches(b)&&(d[d.length++]=e),c(e,b,d),
e=e.nextElementSibling;return d}var d={querySelector:function(a){return b(this,a
)},querySelectorAll:function(a){return c(this,a,new NodeList)}},e={getElementsBy
TagName:function(a){return this.querySelectorAll(a)},getElementsByClassName:func
tion(a){return this.querySelectorAll("."+a)},getElementsByTagNameNS:function(a,b
){if("*"===a)return this.getElementsByTagName(b);for(var c=new NodeList,d=this.g
etElementsByTagName(b),e=0,f=0;e<d.length;e++)d[e].namespaceURI===a&&(c[f++]=d[e
]);return c.length=f,c}};a.GetElementsByInterface=e,a.SelectorsInterface=d}(wind
ow.ShadowDOMPolyfill),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.ELEMENT_NODE;)a=a.previousSibling;return a}var d=a.wrappers.NodeList,e={ge
t firstElementChild(){return b(this.firstChild)},get lastElementChild(){return c
(this.lastChild)},get childElementCount(){for(var a=0,b=this.firstElementChild;b
;b=b.nextElementSibling)a++;return a},get children(){for(var a=new d,b=0,c=this.
firstElementChild;c;c=c.nextElementSibling)a[b++]=c;return a.length=b,a}},f={get
nextElementSibling(){return b(this.nextSibling)},get previousElementSibling(){r
eturn 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.r
egisterWrapper,h=window.CharacterData;b.prototype=Object.create(d.prototype),f(b
.prototype,{get textContent(){return this.data},set textContent(a){this.data=a},
get data(){return this.impl.data},set data(a){var b=this.impl.data;e(this,"chara
cterData",{oldValue:b}),this.impl.data=a}}),f(b.prototype,c),g(h,b,document.crea
teTextNode("")),a.wrappers.CharacterData=b}(window.ShadowDOMPolyfill),function(a
){"use strict";function b(b,c){var d=b.parentNode;if(d&&d.shadowRoot){var e=a.ge
tRendererForHost(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 t
his.impl[c]},set:function(a){this.impl[c]=a,b(this,e)},configurable:!0,enumerabl
e:!0})}var f=a.ChildNodeInterface,g=a.GetElementsByInterface,h=a.wrappers.Node,i
=a.ParentNodeInterface,j=a.SelectorsInterface,k=(a.addWrapNodeListMethod,a.enque
ueMutation),l=a.mixin,m=a.oneOf,n=a.registerWrapper,o=a.wrappers,p=window.Elemen
t,q=m(p.prototype,["matches","mozMatchesSelector","msMatchesSelector","webkitMat
chesSelector"]),r=p.prototype[q];d.prototype=Object.create(h.prototype),l(d.prot
otype,{createShadowRoot:function(){var b=new o.ShadowRoot(this);this.impl.polyme
rShadowRoot_=b;var c=a.getRendererForHost(this);return c.invalidate(),b},get sha
dowRoot(){return this.impl.polymerShadowRoot_||null},setAttribute:function(a,d){
var e=this.impl.getAttribute(a);this.impl.setAttribute(a,d),c(this,a,e),b(this,a
)},removeAttribute:function(a){var d=this.impl.getAttribute(a);this.impl.removeA
ttribute(a),c(this,a,d),b(this,a)},matches:function(a){return r.call(this.impl,a
)}}),d.prototype[q]=function(a){return this.matches(a)},p.prototype.webkitCreate
ShadowRoot&&(d.prototype.webkitCreateShadowRoot=d.prototype.createShadowRoot),e(
d.prototype,"id"),e(d.prototype,"className","class"),l(d.prototype,f),l(d.protot
ype,g),l(d.prototype,i),l(d.prototype,j),n(p,d),a.matchesName=q,a.wrappers.Eleme
nt=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){switch(a)
{case"&":return"&";case"<":return"<";case'"':return"""}}function c(a
){return a.replace(v,b)}function d(a){switch(a.nodeType){case Node.ELEMENT_NODE:
for(var b,d=a.tagName.toLowerCase(),f="<"+d,g=a.attributes,h=0;b=g[h];h++)f+=" "
+b.name+'="'+c(b.value)+'"';return f+=">",w[d]?f:f+e(a)+"</"+d+">";case Node.TEX
T_NODE:return c(a.nodeValue);case Node.COMMENT_NODE:return"<!--"+c(a.nodeValue)+
"-->";default:throw console.error(a),new Error("not implemented")}}function e(a)
{for(var b="",c=a.firstChild;c;c=c.nextSibling)b+=d(c);return b}function f(a,b,c
){var d=c||"div";a.textContent="";var e=t(a.ownerDocument.createElement(d));e.in
nerHTML=b;for(var f;f=e.firstChild;)a.appendChild(u(f))}function g(a){l.call(thi
s,a)}function h(b){return function(){return a.renderAllPending(),this.impl[b]}}f
unction i(a){m(g,a,h(a))}function j(b){Object.defineProperty(g.prototype,b,{get:
h(b),set:function(c){a.renderAllPending(),this.impl[b]=c},configurable:!0,enumer
able:!0})}function k(b){Object.defineProperty(g.prototype,b,{value:function(){re
turn a.renderAllPending(),this.impl[b].apply(this.impl,arguments)},configurable:
!0,enumerable:!0})}var l=a.wrappers.Element,m=a.defineGetter,n=a.enqueueMutation
,o=a.mixin,p=a.nodesWereAdded,q=a.nodesWereRemoved,r=a.registerWrapper,s=a.snaps
hotNodeList,t=a.unwrap,u=a.wrap,v=/&|<|"/g,w={area:!0,base:!0,br:!0,col:!0,comma
nd:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!
0,track:!0,wbr:!0},x=window.HTMLElement;g.prototype=Object.create(l.prototype),o
(g.prototype,{get innerHTML(){return e(this)},set innerHTML(a){var b=s(this.chil
dNodes);this.invalidateShadowRenderer()?f(this,a,this.tagName):this.impl.innerHT
ML=a;var c=s(this.childNodes);n(this,"childList",{addedNodes:c,removedNodes:b}),
q(b),p(c)},get outerHTML(){return d(this)},set outerHTML(a){var b=this.parentNod
e;b&&(b.invalidateShadowRenderer(),this.impl.outerHTML=a)}}),["clientHeight","cl
ientLeft","clientTop","clientWidth","offsetHeight","offsetLeft","offsetTop","off
setWidth","scrollHeight","scrollWidth"].forEach(i),["scrollLeft","scrollTop"].fo
rEach(j),["getBoundingClientRect","getClientRects","scrollIntoView"].forEach(k),
r(x,g,document.createElement("b")),a.wrappers.HTMLElement=g,a.getInnerHTML=e,a.s
etInnerHTML=f}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){
c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=a.wr
ap,g=window.HTMLCanvasElement;b.prototype=Object.create(c.prototype),d(b.prototy
pe,{getContext:function(){var a=this.impl.getContext.apply(this.impl,arguments);
return a&&f(a)}}),e(g,b,document.createElement("canvas")),a.wrappers.HTMLCanvasE
lement=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.cal
l(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=window.HT
MLContentElement;b.prototype=Object.create(c.prototype),d(b.prototype,{get selec
t(){return this.getAttribute("select")},set select(a){this.setAttribute("select"
,a)},setAttribute:function(a,b){c.prototype.setAttribute.call(this,a,b),"select"
===String(a).toLowerCase()&&this.invalidateShadowRenderer(!0)}}),f&&e(f,b),a.wra
ppers.HTMLContentElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";f
unction b(a){d.call(this,a)}function c(a,b){if(!(this instanceof c))throw new Ty
peError("DOM object constructor cannot be called as a function.");var e=f(docume
nt.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.HTMLElement,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.prototype=b.prototype,a.wrappers.HTMLImageElem
ent=b,a.wrappers.Image=c}(window.ShadowDOMPolyfill),function(a){"use strict";fun
ction b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWra
pper,f=window.HTMLShadowElement;b.prototype=Object.create(c.prototype),d(b.proto
type,{}),f&&e(f,b),a.wrappers.HTMLShadowElement=b}(window.ShadowDOMPolyfill),fun
ction(a){"use strict";function b(a){if(!a.defaultView)return a;var b=m.get(a);if
(!b){for(b=a.implementation.createHTMLDocument("");b.lastChild;)b.removeChild(b.
lastChild);m.set(a,b)}return b}function c(a){for(var c,d=b(a.ownerDocument),e=j(
d.createDocumentFragment());c=a.firstChild;)e.appendChild(c);return e}function d
(a){if(e.call(this,a),!n){var b=c(a);l.set(this,k(b))}}var e=a.wrappers.HTMLElem
ent,f=a.getInnerHTML,g=a.mixin,h=a.registerWrapper,i=a.setInnerHTML,j=a.unwrap,k
=a.wrap,l=new WeakMap,m=new WeakMap,n=window.HTMLTemplateElement;d.prototype=Obj
ect.create(e.prototype),g(d.prototype,{get content(){return n?k(this.impl.conten
t):l.get(this)},get innerHTML(){return f(this.content)},set innerHTML(a){i(this.
content,a)}}),n&&h(n,d),a.wrappers.HTMLTemplateElement=d}(window.ShadowDOMPolyfi
ll),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLE
lement,d=a.registerWrapper,e=window.HTMLMediaElement;b.prototype=Object.create(c
.prototype),d(e,b,document.createElement("audio")),a.wrappers.HTMLMediaElement=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 object construc
tor cannot be called as a function.");var b=f(document.createElement("audio"));d
.call(this,b),g(b,this),b.setAttribute("preload","auto"),void 0!==a&&b.setAttrib
ute("src",a)}var d=a.wrappers.HTMLMediaElement,e=a.registerWrapper,f=a.unwrap,g=
a.rewrap,h=window.HTMLAudioElement;b.prototype=Object.create(d.prototype),e(h,b,
document.createElement("audio")),c.prototype=b.prototype,a.wrappers.HTMLAudioEle
ment=b,a.wrappers.Audio=c}(window.ShadowDOMPolyfill),function(a){"use strict";fu
nction b(a){return a.replace(/\s+/g," ").trim()}function c(a){e.call(this,a)}fun
ction d(a,b,c,f){if(!(this instanceof d))throw new TypeError("DOM object constru
ctor cannot be called as a function.");var g=i(document.createElement("option"))
;e.call(this,g),h(g,this),void 0!==a&&(g.text=a),void 0!==b&&g.setAttribute("val
ue",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=windo
w.HTMLOptionElement;c.prototype=Object.create(e.prototype),f(c.prototype,{get te
xt(){return b(this.textContent)},set text(a){this.textContent=b(String(a))},get
form(){return j(i(this).form)}}),g(k,c,document.createElement("option")),d.proto
type=c.prototype,a.wrappers.HTMLOptionElement=c,a.wrappers.Option=d}(window.Shad
owDOMPolyfill),function(a){"use strict";function b(a){switch(a.localName){case"c
ontent":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.reg
isterWrapper),h=window.HTMLUnknownElement;b.prototype=Object.create(d.prototype)
,g(h,b),a.wrappers.HTMLUnknownElement=b}(window.ShadowDOMPolyfill),function(a){"
use strict";function b(a){this.impl=a}var c=a.mixin,d=a.registerWrapper,e=a.unwr
ap,f=a.unwrapIfNeeded,g=a.wrap,h=window.CanvasRenderingContext2D;c(b.prototype,{
get canvas(){return g(this.impl.canvas)},drawImage:function(){arguments[0]=f(arg
uments[0]),this.impl.drawImage.apply(this.impl,arguments)},createPattern:functio
n(){return arguments[0]=e(arguments[0]),this.impl.createPattern.apply(this.impl,
arguments)}}),d(h,b,document.createElement("canvas").getContext("2d")),a.wrapper
s.CanvasRenderingContext2D=b}(window.ShadowDOMPolyfill),function(a){"use strict"
;function 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.im
pl.texImage2D.apply(this.impl,arguments)},texSubImage2D:function(){arguments[6]=
e(arguments[6]),this.impl.texSubImage2D.apply(this.impl,arguments)}});var h=/Web
Kit/.test(navigator.userAgent)?{drawingBufferHeight:null,drawingBufferWidth:null
}:{};d(g,b,h),a.wrappers.WebGLRenderingContext=b}}(window.ShadowDOMPolyfill),fun
ction(a){"use strict";function b(a){this.impl=a}var c=a.registerWrapper,d=a.unwr
ap,e=a.unwrapIfNeeded,f=a.wrap,g=window.Range;b.prototype={get startContainer(){
return f(this.impl.startContainer)},get endContainer(){return f(this.impl.endCon
tainer)},get commonAncestorContainer(){return f(this.impl.commonAncestorContaine
r)},setStart:function(a,b){this.impl.setStart(e(a),b)},setEnd:function(a,b){this
.impl.setEnd(e(a),b)},setStartBefore:function(a){this.impl.setStartBefore(e(a))}
,setStartAfter: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:func
tion(a){this.impl.selectNodeContents(e(a))},compareBoundaryPoints:function(a,b){
return this.impl.compareBoundaryPoints(a,d(b))},extractContents:function(){retur
n f(this.impl.extractContents())},cloneContents:function(){return f(this.impl.cl
oneContents())},insertNode:function(a){this.impl.insertNode(e(a))},surroundConte
nts:function(a){this.impl.surroundContents(e(a))},cloneRange:function(){return f
(this.impl.cloneRange())},isPointInRange:function(a,b){return this.impl.isPointI
nRange(e(a),b)},comparePoint:function(a,b){return this.impl.comparePoint(e(a),b)
},intersectsNode:function(a){return this.impl.intersectsNode(e(a))}},g.prototype
.createContextualFragment&&(b.prototype.createContextualFragment=function(a){ret
urn f(this.impl.createContextualFragment(a))}),c(window.Range,b,document.createR
ange()),a.wrappers.Range=b}(window.ShadowDOMPolyfill),function(a){"use strict";v
ar b=a.GetElementsByInterface,c=a.ParentNodeInterface,d=a.SelectorsInterface,e=a
.mixin,f=a.registerObject,g=f(document.createDocumentFragment());e(g.prototype,c
),e(g.prototype,d),e(g.prototype,b);var h=f(document.createTextNode("")),i=f(doc
ument.createComment(""));a.wrappers.Comment=i,a.wrappers.DocumentFragment=g,a.wr
appers.Text=h}(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
.unwrap,j=new WeakMap,k=new WeakMap;b.prototype=Object.create(c.prototype),f(b.p
rototype,{get innerHTML(){return e(this)},set innerHTML(a){h(this,a),this.invali
dateShadowRenderer()},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 this.querySelector("#"+a)}
}),a.wrappers.ShadowRoot=b}(window.ShadowDOMPolyfill),function(a){"use strict";f
unction b(a){a.previousSibling_=a.previousSibling,a.nextSibling_=a.nextSibling,a
.parentNode_=a.parentNode}function c(a,c,e){var 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.previousSibl
ing;else{a.lastChild_=a.lastChild,a.lastChild===a.firstChild&&(a.firstChild_=a.f
irstChild);var i=G(f.lastChild);i&&(i.nextSibling_=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.previousSi
bling&&(a.previousSibling.nextSibling_=a),a.nextSibling&&(a.nextSibling.previous
Sibling_=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,[])}function g(a){return H.get(a)}functi
on h(a){for(var b=[],c=0,d=a.firstChild;d;d=d.nextSibling)b[c++]=d;return b}func
tion i(a,b,c){for(var d=a.firstChild;d;d=d.nextSibling)if(b(d)){if(c(d)===!1)ret
urn}else i(d,b,c)}function j(a,b){var c=b.getAttribute("select");if(!c)return!0;
if(c=c.trim(),!c)return!0;if(!(a instanceof z))return!1;if(!L.test(c))return!1;i
f(":"===c[0]&&!M.test(c))return!1;try{return a.matches(c)}catch(d){return!1}}fun
ction 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){f
or(;a;a=a.parentNode)if(a instanceof D)return a;return null}function o(a){return
m(a.host)}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)}f
unction r(a){return a instanceof A}function s(a){return a instanceof A}function
t(a){return a instanceof B}function u(a){return a instanceof B}function v(a){ret
urn a.shadowRoot}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.wr
appers.HTMLContentElement,B=a.wrappers.HTMLShadowElement,C=a.wrappers.Node,D=a.w
rappers.ShadowRoot,E=(a.assert,a.mixin,a.oneOf),F=a.unwrap,G=a.wrap,H=new WeakMa
p,I=new WeakMap,J=new WeakMap,K=new WeakMap,L=/^[*.:#[a-zA-Z_|]/,M=new RegExp("^
:("+["link","visited","target","enabled","disabled","checked","indeterminate","n
th-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,
["requestAnimationFrame","mozRequestAnimationFrame","webkitRequestAnimationFrame
","setTimeout"]),O=[],P=new ArraySplice;P.equals=function(a,b){return F(a.node)=
==b},p.prototype={append:function(a){var b=new p(a);return this.childNodes.push(
b),b},sync: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.length;m++)e[m].sync(g)}}},q.prototype={render:function(a){if(this.dirty){
this.invalidateAttributes(),this.treeComposition();var b=this.host,c=b.shadowRoo
t;this.associateNode(b);for(var d=!e,e=a||new p(b),f=c.firstChild;f;f=f.nextSibl
ing)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)}},render
Node:function(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.renderShadowInsertionPoin
t(a,b,c):this.renderAsAnyDomTree(a,b,c,d)},renderAsAnyDomTree:function(a,b,c,d){
if(b=b.append(c),v(c)){var e=m(c);b.skip=!e.dirty,e.render(b)}else for(var f=c.f
irstChild;f;f=f.nextSibling)this.renderNode(a,b,f,d)},renderInsertionPoint:funct
ion(a,b,c,d){var e=g(c);if(e.length){this.associateNode(c);for(var f=0;f<e.lengt
h;f++){var h=e[f];r(h)&&d?this.renderInsertionPoint(a,b,h,d):this.renderAsAnyDom
Tree(a,b,h,d)}}else this.renderFallbackContent(a,b,c);this.associateNode(c.paren
tNode)},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.nextSiblin
g)this.renderNode(d,b,e,!0)}else this.renderFallbackContent(a,b,c)},renderFallba
ckContent: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)},inv
alidateAttributes:function(){this.attributes=Object.create(null)},updateDependen
tAttributes: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:f
unction(a,b){var c=this;i(a,s,function(a){f(a),c.updateDependentAttributes(a.get
Attribute("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.shad
owRoot,c=[],d=a.firstChild;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,functi
on(a){return f=a,!1}),j=f,this.distribute(b,c),j){var k=b.olderShadowRoot;if(k){
b=k,x(b,j);continue}break}break}},associateNode:function(a){a.impl.polymerShadow
Renderer_=this}},C.prototype.invalidateShadowRenderer=function(){var a=this.impl
.polymerShadowRenderer_;return a?(a.invalidate(),!0):!1},A.prototype.getDistribu
tedNodes=function(){return k(),g(this)},B.prototype.nodeIsInserted_=A.prototype.
nodeIsInserted_=function(){this.invalidateShadowRenderer();var a,b=n(this);b&&(a
=o(b)),this.impl.polymerShadowRenderer_=a,a&&a.invalidate()},a.eventParentsTable
=I,a.getRendererForHost=m,a.getShadowTrees=w,a.insertionParentTable=J,a.renderAl
lPending=k,a.visual={insertBefore:c,remove:d}}(window.ShadowDOMPolyfill),functio
n(a){"use strict";function b(b){if(window[b]){d(!a.wrappers[b]);var i=function(a
){c.call(this,a)};i.prototype=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.registe
rWrapper,g=a.unwrap,h=a.wrap,i=["HTMLButtonElement","HTMLFieldSetElement","HTMLI
nputElement","HTMLKeygenElement","HTMLLabelElement","HTMLLegendElement","HTMLObj
ectElement","HTMLOutputElement","HTMLSelectElement","HTMLTextAreaElement"];i.for
Each(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 v(c.ap
ply(this.impl,arguments))}}function d(a,b){y.call(b.impl,u(a)),e(a,b)}function e
(a,b){a.shadowRoot&&b.adoptNode(a.shadowRoot),a instanceof n&&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.implemen
tation[b];a.prototype[b]=function(){return v(c.apply(this.impl,arguments))}}func
tion i(a,b){var c=document.implementation[b];a.prototype[b]=function(){return c.
apply(this.impl,arguments)}}var j=a.GetElementsByInterface,k=a.wrappers.Node,l=a
.ParentNodeInterface,m=a.SelectorsInterface,n=a.wrappers.ShadowRoot,o=a.defineWr
apGetter,p=a.elementFromPoint,q=a.forwardMethodsToWrapper,r=a.matchesName,s=a.mi
xin,t=a.registerWrapper,u=a.unwrap,v=a.wrap,w=a.wrapEventTargetMethods,x=(a.wrap
NodeList,new WeakMap);b.prototype=Object.create(k.prototype),o(b,"documentElemen
t"),o(b,"body"),o(b,"head"),["createComment","createDocumentFragment","createEle
ment","createElementNS","createEvent","createEventNS","createRange","createTextN
ode","getElementById"].forEach(c);var y=document.adoptNode,z=document.importNode
;if(s(b.prototype,{adoptNode:function(a){return a.parentNode&&a.parentNode.remov
eChild(a),d(a,this),a},elementFromPoint:function(a,b){return p(this,this,a,b)},i
mportNode:function(a,b){var c=v(z.call(this.impl,u(a),!1));if(b)for(var d=a.firs
tChild;d;d=d.nextSibling)c.appendChild(this.importNode(d,!0));return c}}),docume
nt.register){var A=document.register;b.prototype.register=function(b,c){function
d(a){return a?(this.impl=a,void 0):c.extends?document.createElement(c.extends,b
):document.createElement(b)}var e=c.prototype;if(a.nativePrototypeTable.get(e))t
hrow new 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","enteredViewCallback","leftViewCallb
ack","attributeChangedCallback"].forEach(function(a){var b=e[a];b&&(i[a]=functio
n(){b.apply(v(this),arguments)})});var k={prototype:i};c.extends&&(k.extends=c.e
xtends);A.call(u(this),b,k);return d.prototype=e,d.prototype.constructor=d,a.con
structorTable.set(i,d),a.nativePrototypeTable.set(e,i),d},q([window.HTMLDocument
||window.Document],["register"])}q([window.HTMLBodyElement,window.HTMLDocument||
window.Document,window.HTMLHeadElement,window.HTMLHtmlElement],["appendChild","c
ompareDocumentPosition","contains","getElementsByClassName","getElementsByTagNam
e","getElementsByTagNameNS","insertBefore","querySelector","querySelectorAll","r
emoveChild","replaceChild",r]),q([window.HTMLDocument||window.Document],["adoptN
ode","importNode","contains","createComment","createDocumentFragment","createEle
ment","createElementNS","createEvent","createEventNS","createRange","createTextN
ode","elementFromPoint","getElementById"]),s(b.prototype,j),s(b.prototype,l),s(b
.prototype,m),s(b.prototype,{get implementation(){var a=x.get(this);return a?a:(
a=new g(u(this).implementation),x.set(this,a),a)}}),t(window.Document,b,document
.implementation.createHTMLDocument("")),window.HTMLDocument&&t(window.HTMLDocume
nt,b),w([window.HTMLBodyElement,window.HTMLDocument||window.Document,window.HTML
HeadElement]),h(g,"createDocumentType"),h(g,"createDocument"),h(g,"createHTMLDoc
ument"),i(g,"hasFeature"),t(window.DOMImplementation,g),q([window.DOMImplementat
ion],["createDocumentType","createDocument","createHTMLDocument","hasFeature"]),
a.adoptNodeNoRemove=d,a.wrappers.DOMImplementation=g,a.wrappers.Document=b}(wind
ow.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call(this,a)}var
c=a.wrappers.EventTarget,d=a.mixin,e=a.registerWrapper,f=a.unwrap,g=a.unwrapIfNe
eded,h=a.wrap,i=a.renderAllPending,j=window.Window;b.prototype=Object.create(c.p
rototype);var k=window.getComputedStyle;j.prototype.getComputedStyle=function(a,
b){return i(),k.call(this||window,g(a),b)},["addEventListener","removeEventListe
ner","dispatchEvent"].forEach(function(a){j.prototype[a]=function(){var b=h(this
||window);return b[a].apply(b,arguments)}}),d(b.prototype,{getComputedStyle:func
tion(a,b){return k.call(f(this),g(a),b)}}),e(j,b),a.wrappers.Window=b}(window.Sh
adowDOMPolyfill),function(a){"use strict";function b(a){var b=c[a],d=window[b];i
f(d){var e=document.createElement(a),f=e.constructor;window[b]=f}}var c=(a.isWra
pperFor,{a:"HTMLAnchorElement",applet:"HTMLAppletElement",area:"HTMLAreaElement"
,br:"HTMLBRElement",base:"HTMLBaseElement",body:"HTMLBodyElement",button:"HTMLBu
ttonElement",dl:"HTMLDListElement",datalist:"HTMLDataListElement",data:"HTMLData
Element",dir:"HTMLDirectoryElement",div:"HTMLDivElement",embed:"HTMLEmbedElement
",fieldset:"HTMLFieldSetElement",font:"HTMLFontElement",form:"HTMLFormElement",f
rame:"HTMLFrameElement",frameset:"HTMLFrameSetElement",hr:"HTMLHRElement",head:"
HTMLHeadElement",h1:"HTMLHeadingElement",html:"HTMLHtmlElement",iframe:"HTMLIFra
meElement",input:"HTMLInputElement",li:"HTMLLIElement",label:"HTMLLabelElement",
legend:"HTMLLegendElement",link:"HTMLLinkElement",map:"HTMLMapElement",marquee:"
HTMLMarqueeElement",menu:"HTMLMenuElement",menuitem:"HTMLMenuItemElement",meta:"
HTMLMetaElement",meter:"HTMLMeterElement",del:"HTMLModElement",ol:"HTMLOListElem
ent",object:"HTMLObjectElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptio
nElement",output:"HTMLOutputElement",p:"HTMLParagraphElement",param:"HTMLParamEl
ement",pre:"HTMLPreElement",progress:"HTMLProgressElement",q:"HTMLQuoteElement",
script:"HTMLScriptElement",select:"HTMLSelectElement",source:"HTMLSourceElement"
,span:"HTMLSpanElement",style:"HTMLStyleElement",time:"HTMLTimeElement",caption:
"HTMLTableCaptionElement",col:"HTMLTableColElement",table:"HTMLTableElement",tr:
"HTMLTableRowElement",thead:"HTMLTableSectionElement",tbody:"HTMLTableSectionEle
ment",textarea:"HTMLTextAreaElement",track:"HTMLTrackElement",title:"HTMLTitleEl
ement",ul:"HTMLUListElement",video:"HTMLVideoElement"}); | 2 }},removeEventListener:function(a,b,c){c=Boolean(c);var d=R.get(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].handl
er===b&&(f=!0,d[g].remove()));if(f&&1===e){var h=E(this);h.removeEventListener_(
a,o,!0)}}},dispatchEvent:function(b){var c=O(b),d=c.type;S.set(c,!1),a.renderAll
Pending();var e;G(this,d)||(e=function(){},this.addEventListener(d,e,!0));try{re
turn O(this).dispatchEvent_(c)}finally{e&&this.removeEventListener(d,e,!0)}}},lb
&&N(lb,D);var nb=document.elementFromPoint;a.adjustRelatedTarget=i,a.elementFrom
Point=I,a.getEventHandlerGetter=J,a.getEventHandlerSetter=K,a.wrapEventTargetMet
hods=H,a.wrappers.BeforeUnloadEvent=A,a.wrappers.CustomEvent=cb,a.wrappers.Event
=v,a.wrappers.EventTarget=D,a.wrappers.FocusEvent=hb,a.wrappers.MouseEvent=gb,a.
wrappers.UIEvent=bb}(window.ShadowDOMPolyfill),function(a){"use 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.prototype[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.wrappers.NodeList=c,a.
addWrapNodeListMethod=e,a.wrapNodeList=d}(window.ShadowDOMPolyfill),function(a){
"use strict";function b(a){w(a instanceof t)}function c(a){var b=new v;return b[
0]=a,b.length=1,b}function d(a,b,c){y(b,"childList",{removedNodes:c,previousSibl
ing:a.previousSibling,nextSibling:a.nextSibling})}function e(a,b){y(a,"childList
",{removedNodes:b})}function f(a,b,d,e){if(a instanceof DocumentFragment){var f=
h(a);G=!0;for(var g=f.length-1;g>=0;g--)a.removeChild(f[g]),f[g].parentNode_=b;G
=!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.previousSibling_=f[f.length-1])
,f}var f=c(a),i=a.parentNode;return i&&i.removeChild(a),a.parentNode_=b,a.previo
usSibling_=d,a.nextSibling_=e,d&&(d.nextSibling_=a),e&&(e.previousSibling_=a),f}
function g(a){if(a instanceof DocumentFragment)return h(a);var b=c(a),e=a.parent
Node;return e&&d(a,e,b),b}function h(a){for(var b=new v,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])}funct
ion l(){}function m(){}function n(a,b){var c=a.nodeType===t.DOCUMENT_NODE?a:a.ow
nerDocument;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.length;e++)a.adoptN
odeNoRemove(c[e],d)}}function p(a,b){o(a,b);var c=b.length;if(1===c)return D(b[0
]);for(var d=D(a.ownerDocument.createDocumentFragment()),e=0;c>e;e++)d.appendChi
ld(D(b[e]));return d}function q(a){if(void 0!==a.firstChild_)for(var b=a.firstCh
ild_;b;){var c=b;b=b.nextSibling_,c.parentNode_=c.previousSibling_=c.nextSibling
_=void 0}a.firstChild_=a.lastChild_=void 0}function r(a){if(a.invalidateShadowRe
nderer()){for(var b=a.firstChild;b;){w(b.parentNode===a);var c=b.nextSibling,d=D
(b),e=d.parentNode;e&&L.call(e,d),b.previousSibling_=b.nextSibling_=b.parentNode
_=null,b=c}a.firstChild_=a.lastChild_=null}else for(var c,f=D(a),g=f.firstChild;
g;)c=g.nextSibling,L.call(f,g),g=c}function s(a){var b=a.parentNode;return b&&b.
invalidateShadowRenderer()}function t(a){w(a instanceof H),u.call(this,a),this.p
arentNode_=void 0,this.firstChild_=void 0,this.lastChild_=void 0,this.nextSiblin
g_=void 0,this.previousSibling_=void 0}var u=a.wrappers.EventTarget,v=a.wrappers
.NodeList,w=a.assert,x=a.defineWrapGetter,y=a.enqueueMutation,z=a.isWrapper,A=a.
mixin,B=a.registerTransientObservers,C=a.registerWrapper,D=a.unwrap,E=a.wrap,F=a
.wrapIfNeeded,G=!1,H=window.Node,I=window.DocumentFragment,J=(H.prototype.append
Child,H.prototype.compareDocumentPosition),K=H.prototype.insertBefore,L=H.protot
ype.removeChild,M=H.prototype.replaceChild,N=/Trident/.test(navigator.userAgent)
,O=N?function(a,b){try{L.call(a,b)}catch(c){if(!(a instanceof I))throw c}}:funct
ion(a,b){L.call(a,b)};t.prototype=Object.create(u.prototype),A(t.prototype,{appe
ndChild:function(a){return this.insertBefore(a,null)},insertBefore:function(a,c)
{b(a);var d;c?z(c)?d=D(c):(d=c,c=E(d)):(c=null,d=null),c&&w(c.parentNode===this)
;var e,h=c?c.previousSibling:this.lastChild,i=!this.invalidateShadowRenderer()&&
!s(a);if(e=i?g(a):f(a,this,h,c),i)n(this,a),q(this),K.call(this.impl,D(a),d);els
e{h||(this.firstChild_=e[0]),c||(this.lastChild_=e[e.length-1]);var j=d?d.parent
Node:this.impl;j?K.call(j,p(this,e),d):o(this,e)}return y(this,"childList",{adde
dNodes:e,nextSibling:c,previousSibling:h}),k(e),a},removeChild:function(a){if(b(
a),a.parentNode!==this){for(var d=!1,e=(this.childNodes,this.firstChild);e;e=e.n
extSibling)if(e===a){d=!0;break}if(!d)throw new Error("NotFoundError")}var f=D(a
),g=a.nextSibling,h=a.previousSibling;if(this.invalidateShadowRenderer()){var i=
this.firstChild,j=this.lastChild,k=f.parentNode;k&&O(k,f),i===a&&(this.firstChil
d_=g),j===a&&(this.lastChild_=h),h&&(h.nextSibling_=g),g&&(g.previousSibling_=h)
,a.previousSibling_=a.nextSibling_=a.parentNode_=void 0}else q(this),O(this.impl
,f);return G||y(this,"childList",{removedNodes:c(a),nextSibling:g,previousSiblin
g:h}),B(this,a),a},replaceChild:function(a,d){b(a);var e;if(z(d)?e=D(d):(e=d,d=E
(e)),d.parentNode!==this)throw new Error("NotFoundError");var h,i=d.nextSibling,
j=d.previousSibling,m=!this.invalidateShadowRenderer()&&!s(a);return m?h=g(a):(i
===a&&(i=a.nextSibling),h=f(a,this,j,i)),m?(n(this,a),q(this),M.call(this.impl,D
(a),e)):(this.firstChild===d&&(this.firstChild_=h[0]),this.lastChild===d&&(this.
lastChild_=h[h.length-1]),d.previousSibling_=d.nextSibling_=d.parentNode_=void 0
,e.parentNode&&M.call(e.parentNode,p(this,h),e)),y(this,"childList",{addedNodes:
h,removedNodes:c(d),nextSibling:i,previousSibling:j}),l(d),k(h),d},nodeIsInserte
d_:function(){for(var a=this.firstChild;a;a=a.nextSibling)a.nodeIsInserted_()},h
asChildNodes:function(){return null!==this.firstChild},get parentNode(){return v
oid 0!==this.parentNode_?this.parentNode_:E(this.impl.parentNode)},get firstChil
d(){return void 0!==this.firstChild_?this.firstChild_:E(this.impl.firstChild)},g
et lastChild(){return void 0!==this.lastChild_?this.lastChild_:E(this.impl.lastC
hild)},get nextSibling(){return void 0!==this.nextSibling_?this.nextSibling_:E(t
his.impl.nextSibling)},get previousSibling(){return void 0!==this.previousSiblin
g_?this.previousSibling_:E(this.impl.previousSibling)},get parentElement(){for(v
ar a=this.parentNode;a&&a.nodeType!==t.ELEMENT_NODE;)a=a.parentNode;return a},ge
t textContent(){for(var a="",b=this.firstChild;b;b=b.nextSibling)b.nodeType!=t.C
OMMENT_NODE&&(a+=b.textContent);return a},set textContent(a){var b=i(this.childN
odes);if(this.invalidateShadowRenderer()){if(r(this),""!==a){var c=this.impl.own
erDocument.createTextNode(a);this.appendChild(c)}}else q(this),this.impl.textCon
tent=a;var d=i(this.childNodes);y(this,"childList",{addedNodes:d,removedNodes:b}
),m(b),k(d)},get childNodes(){for(var a=new v,b=0,c=this.firstChild;c;c=c.nextSi
bling)a[b++]=c;return a.length=b,a},cloneNode:function(a){var b=E(this.impl.clon
eNode(!1));if(a)for(var c=this.firstChild;c;c=c.nextSibling)b.appendChild(c.clon
eNode(!0));return b},contains:function(a){if(!a)return!1;if(a=F(a),a===this)retu
rn!0;var b=a.parentNode;return b?this.contains(b):!1},compareDocumentPosition:fu
nction(a){return J.call(this.impl,D(a))}}),x(t,"ownerDocument"),C(H,t,document.c
reateDocumentFragment()),delete t.prototype.querySelector,delete t.prototype.que
rySelectorAll,t.prototype=A(Object.create(u.prototype),t.prototype),a.nodeWasAdd
ed=j,a.nodeWasRemoved=l,a.nodesWereAdded=k,a.nodesWereRemoved=m,a.snapshotNodeLi
st=i,a.wrappers.Node=t}(window.ShadowDOMPolyfill),function(a){"use strict";funct
ion b(a,c){for(var d,e=a.firstElementChild;e;){if(e.matches(c))return e;if(d=b(e
,c))return d;e=e.nextElementSibling}return null}function c(a,b,d){for(var e=a.fi
rstElementChild;e;)e.matches(b)&&(d[d.length++]=e),c(e,b,d),e=e.nextElementSibli
ng;return d}var d={querySelector:function(a){return b(this,a)},querySelectorAll:
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.getElementsByTagName(
b),e=0,f=0;e<d.length;e++)d[e].namespaceURI===a&&(c[f++]=d[e]);return c.length=f
,c}};a.GetElementsByInterface=e,a.SelectorsInterface=d}(window.ShadowDOMPolyfill
),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.ELEMENT_NODE;)
a=a.previousSibling;return a}var d=a.wrappers.NodeList,e={get firstElementChild(
){return b(this.firstChild)},get lastElementChild(){return c(this.lastChild)},ge
t childElementCount(){for(var a=0,b=this.firstElementChild;b;b=b.nextElementSibl
ing)a++;return a},get children(){for(var a=new d,b=0,c=this.firstElementChild;c;
c=c.nextElementSibling)a[b++]=c;return a.length=b,a}},f={get nextElementSibling(
){return b(this.nextSibling)},get previousElementSibling(){return c(this.previou
sSibling)}};a.ChildNodeInterface=f,a.ParentNodeInterface=e}(window.ShadowDOMPoly
fill),function(a){"use strict";function b(a){d.call(this,a)}var c=a.ChildNodeInt
erface,d=a.wrappers.Node,e=a.enqueueMutation,f=a.mixin,g=a.registerWrapper,h=win
dow.CharacterData;b.prototype=Object.create(d.prototype),f(b.prototype,{get text
Content(){return this.data},set textContent(a){this.data=a},get data(){return th
is.impl.data},set data(a){var b=this.impl.data;e(this,"characterData",{oldValue:
b}),this.impl.data=a}}),f(b.prototype,c),g(h,b,document.createTextNode("")),a.wr
appers.CharacterData=b}(window.ShadowDOMPolyfill),function(a){"use strict";funct
ion b(a){return a>>>0}function c(a){d.call(this,a)}var d=a.wrappers.CharacterDat
a,e=(a.enqueueMutation,a.mixin),f=a.registerWrapper,g=window.Text;c.prototype=Ob
ject.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.slic
e(a);this.data=d;var f=this.ownerDocument.createTextNode(e);return this.parentNo
de&&this.parentNode.insertBefore(f,this.nextSibling),f}}),f(g,c,document.createT
extNode("")),a.wrappers.Text=c}(window.ShadowDOMPolyfill),function(a){"use stric
t";function b(b,c){var d=b.parentNode;if(d&&d.shadowRoot){var e=a.getRendererFor
Host(d);e.dependsOnAttribute(c)&&e.invalidate()}}function c(a,b,c){k(a,"attribut
es",{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,enumerable:!0})}var f
=a.ChildNodeInterface,g=a.GetElementsByInterface,h=a.wrappers.Node,i=a.ParentNod
eInterface,j=a.SelectorsInterface,k=(a.addWrapNodeListMethod,a.enqueueMutation),
l=a.mixin,m=(a.oneOf,a.registerWrapper),n=a.wrappers,o=window.Element,p=["matche
s","mozMatchesSelector","msMatchesSelector","webkitMatchesSelector"].filter(func
tion(a){return o.prototype[a]}),q=p[0],r=o.prototype[q];d.prototype=Object.creat
e(h.prototype),l(d.prototype,{createShadowRoot:function(){var b=new n.ShadowRoot
(this);this.impl.polymerShadowRoot_=b;var c=a.getRendererForHost(this);return c.
invalidate(),b},get shadowRoot(){return this.impl.polymerShadowRoot_||null},setA
ttribute:function(a,d){var e=this.impl.getAttribute(a);this.impl.setAttribute(a,
d),c(this,a,e),b(this,a)},removeAttribute:function(a){var d=this.impl.getAttribu
te(a);this.impl.removeAttribute(a),c(this,a,d),b(this,a)},matches:function(a){re
turn r.call(this.impl,a)}}),p.forEach(function(a){"matches"!==a&&(d.prototype[a]
=function(a){return this.matches(a)})}),o.prototype.webkitCreateShadowRoot&&(d.p
rototype.webkitCreateShadowRoot=d.prototype.createShadowRoot),e(d.prototype,"id"
),e(d.prototype,"className","class"),l(d.prototype,f),l(d.prototype,g),l(d.proto
type,i),l(d.prototype,j),m(o,d,document.createElementNS(null,"x")),a.matchesName
s=p,a.wrappers.Element=d}(window.ShadowDOMPolyfill),function(a){"use strict";fun
ction b(a){switch(a){case"&":return"&";case"<":return"<";case">":return"&
gt;";case'"':return""";case" ":return" "}}function c(a){return a.repla
ce(y,b)}function d(a){return a.replace(z,b)}function e(a){for(var b={},c=0;c<a.l
ength;c++)b[a[c]]=!0;return b}function f(a,b){switch(a.nodeType){case Node.ELEME
NT_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+=">",A[f]?h:h+g(a)+"</"+f+">";case
Node.TEXT_NODE:var k=a.data;return b&&B[b.localName]?k:d(k);case Node.COMMENT_NO
DE:return"<!--"+a.data+"-->";default:throw console.error(a),new Error("not imple
mented")}}function g(a){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.ownerDocume
nt.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.innerHT
ML=b;for(var d,e=w(document.createDocumentFragment());d=c.firstChild;)e.appendCh
ild(d);return x(e)}function k(b){return function(){return a.renderAllPending(),t
his.impl[b]}}function l(a){p(i,a,k(a))}function m(b){Object.defineProperty(i.pro
totype,b,{get:k(b),set:function(c){a.renderAllPending(),this.impl[b]=c},configur
able:!0,enumerable:!0})}function n(b){Object.defineProperty(i.prototype,b,{value
:function(){return a.renderAllPending(),this.impl[b].apply(this.impl,arguments)}
,configurable:!0,enumerable:!0})}var o=a.wrappers.Element,p=a.defineGetter,q=a.e
nqueueMutation,r=a.mixin,s=a.nodesWereAdded,t=a.nodesWereRemoved,u=a.registerWra
pper,v=a.snapshotNodeList,w=a.unwrap,x=a.wrap,y=/[& "]/g,z=/[& <>]/g,A=e(["area"
,"base","br","col","command","embed","hr","img","input","keygen","link","meta","
param","source","track","wbr"]),B=e(["style","script","xmp","iframe","noembed","
noframes","plaintext","noscript"]),C=/MSIE/.test(navigator.userAgent),D=window.H
TMLElement;i.prototype=Object.create(o.prototype),r(i.prototype,{get innerHTML()
{return g(this)},set innerHTML(a){if(C&&B[this.localName])return void(this.textC
ontent=a);var b=v(this.childNodes);this.invalidateShadowRenderer()?h(this,a,this
.tagName):this.impl.innerHTML=a;var c=v(this.childNodes);q(this,"childList",{add
edNodes:c,removedNodes:b}),t(b),s(c)},get outerHTML(){return f(this,this.parentN
ode)},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;s
witch(String(a).toLowerCase()){case"beforebegin":c=this.parentNode,d=this;break;
case"afterend":c=this.parentNode,d=this.nextSibling;break;case"afterbegin":c=thi
s,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","clien
tWidth","offsetHeight","offsetLeft","offsetTop","offsetWidth","scrollHeight","sc
rollWidth"].forEach(l),["scrollLeft","scrollTop"].forEach(m),["getBoundingClient
Rect","getClientRects","scrollIntoView"].forEach(n),u(D,i,document.createElement
("b")),a.wrappers.HTMLElement=i,a.getInnerHTML=g,a.setInnerHTML=h}(window.Shadow
DOMPolyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrapp
ers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=a.wrap,g=window.HTMLCanvasElemen
t;b.prototype=Object.create(c.prototype),d(b.prototype,{getContext:function(){va
r a=this.impl.getContext.apply(this.impl,arguments);return a&&f(a)}}),e(g,b,docu
ment.createElement("canvas")),a.wrappers.HTMLCanvasElement=b}(window.ShadowDOMPo
lyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.H
TMLElement,d=a.mixin,e=a.registerWrapper,f=window.HTMLContentElement;b.prototype
=Object.create(c.prototype),d(b.prototype,{get select(){return this.getAttribute
("select")},set select(a){this.setAttribute("select",a)},setAttribute:function(a
,b){c.prototype.setAttribute.call(this,a,b),"select"===String(a).toLowerCase()&&
this.invalidateShadowRenderer(!0)}}),f&&e(f,b),a.wrappers.HTMLContentElement=b}(
window.ShadowDOMPolyfill),function(a){"use strict";function b(a){d.call(this,a)}
function c(a,b){if(!(this instanceof c))throw new TypeError("DOM object construc
tor cannot be called as a function.");var e=f(document.createElement("img"));d.c
all(this,e),g(e,this),void 0!==a&&(e.width=a),void 0!==b&&(e.height=b)}var d=a.w
rappers.HTMLElement,e=a.registerWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLImage
Element;b.prototype=Object.create(d.prototype),e(h,b,document.createElement("img
")),c.prototype=b.prototype,a.wrappers.HTMLImageElement=b,a.wrappers.Image=c}(wi
ndow.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call(this,a)}va
r c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=window.HTMLShadowElem
ent;b.prototype=Object.create(c.prototype),d(b.prototype,{}),f&&e(f,b),a.wrapper
s.HTMLShadowElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";functi
on b(a){if(!a.defaultView)return a;var b=m.get(a);if(!b){for(b=a.implementation.
createHTMLDocument("");b.lastChild;)b.removeChild(b.lastChild);m.set(a,b)}return
b}function c(a){for(var c,d=b(a.ownerDocument),e=j(d.createDocumentFragment());
c=a.firstChild;)e.appendChild(c);return e}function d(a){if(e.call(this,a),!n){va
r b=c(a);l.set(this,k(b))}}var e=a.wrappers.HTMLElement,f=a.getInnerHTML,g=a.mix
in,h=a.registerWrapper,i=a.setInnerHTML,j=a.unwrap,k=a.wrap,l=new WeakMap,m=new
WeakMap,n=window.HTMLTemplateElement;d.prototype=Object.create(e.prototype),g(d.
prototype,{get content(){return n?k(this.impl.content):l.get(this)},get innerHTM
L(){return f(this.content)},set innerHTML(a){i(this.content,a)}}),n&&h(n,d),a.wr
appers.HTMLTemplateElement=d}(window.ShadowDOMPolyfill),function(a){"use strict"
;function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.registerWrapper,e
=window.HTMLMediaElement;b.prototype=Object.create(c.prototype),d(e,b,document.c
reateElement("audio")),a.wrappers.HTMLMediaElement=b}(window.ShadowDOMPolyfill),
function(a){"use strict";function b(a){d.call(this,a)}function c(a){if(!(this in
stanceof c))throw new TypeError("DOM object constructor cannot be called as a fu
nction.");var b=f(document.createElement("audio"));d.call(this,b),g(b,this),b.se
tAttribute("preload","auto"),void 0!==a&&b.setAttribute("src",a)}var d=a.wrapper
s.HTMLMediaElement,e=a.registerWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLAudioE
lement;b.prototype=Object.create(d.prototype),e(h,b,document.createElement("audi
o")),c.prototype=b.prototype,a.wrappers.HTMLAudioElement=b,a.wrappers.Audio=c}(w
indow.ShadowDOMPolyfill),function(a){"use strict";function b(a){return a.replace
(/\s+/g," ").trim()}function c(a){e.call(this,a)}function d(a,b,c,f){if(!(this i
nstanceof d))throw new TypeError("DOM object constructor cannot be called as a f
unction.");var g=i(document.createElement("option"));e.call(this,g),h(g,this),vo
id 0!==a&&(g.text=a),void 0!==b&&g.setAttribute("value",b),c===!0&&g.setAttribut
e("selected",""),g.selected=f===!0}var e=a.wrappers.HTMLElement,f=a.mixin,g=a.re
gisterWrapper,h=a.rewrap,i=a.unwrap,j=a.wrap,k=window.HTMLOptionElement;c.protot
ype=Object.create(e.prototype),f(c.prototype,{get text(){return b(this.textConte
nt)},set text(a){this.textContent=b(String(a))},get form(){return j(i(this).form
)}}),g(k,c,document.createElement("option")),d.prototype=c.prototype,a.wrappers.
HTMLOptionElement=c,a.wrappers.Option=d}(window.ShadowDOMPolyfill),function(a){"
use strict";function b(a){switch(a.localName){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.w
rappers.HTMLContentElement,d=a.wrappers.HTMLElement,e=a.wrappers.HTMLShadowEleme
nt,f=a.wrappers.HTMLTemplateElement,g=(a.mixin,a.registerWrapper),h=window.HTMLU
nknownElement;b.prototype=Object.create(d.prototype),g(h,b),a.wrappers.HTMLUnkno
wnElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";var b=a.register
Object,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}(win
dow.ShadowDOMPolyfill),function(a){"use strict";function b(a){m.call(this,a)}var
c=a.mixin,d=a.registerWrapper,e=a.unwrap,f=a.wrap,g=window.SVGUseElement,h="htt
p://www.w3.org/2000/svg",i=f(document.createElementNS(h,"g")),j=document.createE
lementNS(h,"use"),k=i.constructor,l=Object.getPrototypeOf(k.prototype),m=l.const
ructor;b.prototype=Object.create(l),"instanceRoot"in j&&c(b.prototype,{get insta
nceRoot(){return f(e(this).instanceRoot)},get animatedInstanceRoot(){return f(e(
this).animatedInstanceRoot)}}),d(g,b,j),a.wrappers.SVGUseElement=b}(window.Shado
wDOMPolyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrap
pers.EventTarget,d=a.mixin,e=a.registerWrapper,f=a.wrap,g=window.SVGElementInsta
nce;g&&(b.prototype=Object.create(c.prototype),d(b.prototype,{get correspondingE
lement(){return f(this.impl.correspondingElement)},get correspondingUseElement()
{return f(this.impl.correspondingUseElement)},get parentNode(){return f(this.imp
l.parentNode)},get childNodes(){throw new Error("Not implemented")},get firstChi
ld(){return f(this.impl.firstChild)},get lastChild(){return f(this.impl.lastChil
d)},get previousSibling(){return f(this.impl.previousSibling)},get nextSibling()
{return f(this.impl.nextSibling)}}),e(g,b),a.wrappers.SVGElementInstance=b)}(win
dow.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.Canv
asRenderingContext2D;c(b.prototype,{get canvas(){return g(this.impl.canvas)},dra
wImage:function(){arguments[0]=f(arguments[0]),this.impl.drawImage.apply(this.im
pl,arguments)},createPattern:function(){return arguments[0]=e(arguments[0]),this
.impl.createPattern.apply(this.impl,arguments)}}),d(h,b,document.createElement("
canvas").getContext("2d")),a.wrappers.CanvasRenderingContext2D=b}(window.ShadowD
OMPolyfill),function(a){"use strict";function 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)},te
xSubImage2D:function(){arguments[6]=e(arguments[6]),this.impl.texSubImage2D.appl
y(this.impl,arguments)}});var h=/WebKit/.test(navigator.userAgent)?{drawingBuffe
rHeight:null,drawingBufferWidth:null}:{};d(g,b,h),a.wrappers.WebGLRenderingConte
xt=b}}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){this.imp
l=a}var c=a.registerWrapper,d=a.unwrap,e=a.unwrapIfNeeded,f=a.wrap,g=window.Rang
e;b.prototype={get startContainer(){return f(this.impl.startContainer)},get endC
ontainer(){return f(this.impl.endContainer)},get commonAncestorContainer(){retur
n f(this.impl.commonAncestorContainer)},setStart:function(a,b){this.impl.setStar
t(e(a),b)},setEnd:function(a,b){this.impl.setEnd(e(a),b)},setStartBefore:functio
n(a){this.impl.setStartBefore(e(a))},setStartAfter:function(a){this.impl.setStar
tAfter(e(a))},setEndBefore:function(a){this.impl.setEndBefore(e(a))},setEndAfter
:function(a){this.impl.setEndAfter(e(a))},selectNode:function(a){this.impl.selec
tNode(e(a))},selectNodeContents:function(a){this.impl.selectNodeContents(e(a))},
compareBoundaryPoints:function(a,b){return this.impl.compareBoundaryPoints(a,d(b
))},extractContents:function(){return f(this.impl.extractContents())},cloneConte
nts:function(){return f(this.impl.cloneContents())},insertNode:function(a){this.
impl.insertNode(e(a))},surroundContents:function(a){this.impl.surroundContents(e
(a))},cloneRange:function(){return f(this.impl.cloneRange())},isPointInRange:fun
ction(a,b){return this.impl.isPointInRange(e(a),b)},comparePoint:function(a,b){r
eturn this.impl.comparePoint(e(a),b)},intersectsNode:function(a){return this.imp
l.intersectsNode(e(a))},toString:function(){return this.impl.toString()}},g.prot
otype.createContextualFragment&&(b.prototype.createContextualFragment=function(a
){return f(this.impl.createContextualFragment(a))}),c(window.Range,b,document.cr
eateRange()),a.wrappers.Range=b}(window.ShadowDOMPolyfill),function(a){"use stri
ct";var b=a.GetElementsByInterface,c=a.ParentNodeInterface,d=a.SelectorsInterfac
e,e=a.mixin,f=a.registerObject,g=f(document.createDocumentFragment());e(g.protot
ype,c),e(g.prototype,d),e(g.prototype,b);var h=f(document.createComment(""));a.w
rappers.Comment=h,a.wrappers.DocumentFragment=g}(window.ShadowDOMPolyfill),funct
ion(a){"use strict";function b(a){var b=i(a.impl.ownerDocument.createDocumentFra
gment());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.mix
in,g=a.rewrap,h=a.setInnerHTML,i=a.unwrap,j=new WeakMap,k=new WeakMap,l=/[ \t\n\
r\f]/;b.prototype=Object.create(c.prototype),f(b.prototype,{get innerHTML(){retu
rn e(this)},set innerHTML(a){h(this,a),this.invalidateShadowRenderer()},get olde
rShadowRoot(){return k.get(this)||null},get host(){return j.get(this)||null},inv
alidateShadowRenderer:function(){return j.get(this).invalidateShadowRenderer()},
elementFromPoint:function(a,b){return d(this,this.ownerDocument,a,b)},getElement
ById:function(a){return l.test(a)?null:this.querySelector('[id="'+a+'"]')}}),a.w
rappers.ShadowRoot=b}(window.ShadowDOMPolyfill),function(a){"use strict";functio
n b(a){a.previousSibling_=a.previousSibling,a.nextSibling_=a.nextSibling,a.paren
tNode_=a.parentNode}function c(a,c,e){var 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;el
se{a.lastChild_=a.lastChild,a.lastChild===a.firstChild&&(a.firstChild_=a.firstCh
ild);var i=G(f.lastChild);i&&(i.nextSibling_=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.nextSibling&&(a.nextSibling.previousSiblin
g_=a),e.lastChild===a&&(e.lastChild_=a),e.firstChild===a&&(e.firstChild_=a),d.re
moveChild(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,[])}function 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.nextSibling)if(b(d)){if(c(d)===!1)return}el
se i(d,b,c)}function j(a,b){var c=b.getAttribute("select");if(!c)return!0;if(c=c
.trim(),!c)return!0;if(!(a instanceof z))return!1;if("*"===c||c===a.localName)re
turn!0;if(!L.test(c))return!1;if(":"===c[0]&&!M.test(c))return!1;try{return a.ma
tches(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;r
eturn null}function o(a){return m(a.host)}function p(a){this.skip=!1,this.node=a
,this.childNodes=[]}function q(a){this.host=a,this.dirty=!1,this.invalidateAttri
butes(),this.associateNode(a)}function r(a){return a instanceof A}function s(a){
return a instanceof A}function t(a){return a instanceof B}function u(a){return a
instanceof B}function v(a){return a.shadowRoot}function w(a){for(var b=[],c=a.s
hadowRoot;c;c=c.olderShadowRoot)b.push(c);return b}function x(a,b){J.set(a,b)}va
r y,z=a.wrappers.Element,A=a.wrappers.HTMLContentElement,B=a.wrappers.HTMLShadow
Element,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("^:("+["link","visited","target","enabled","disable
d","checked","indeterminate","nth-child","nth-last-child","nth-of-type","nth-las
t-of-type","first-child","last-child","first-of-type","last-of-type","only-of-ty
pe"].join("|")+")"),N=E(window,["requestAnimationFrame","mozRequestAnimationFram
e","webkitRequestAnimationFrame","setTimeout"]),O=[],P=new ArraySplice;P.equals=
function(a,b){return F(a.node)===b},p.prototype={append:function(a){var b=new p(
a);return this.childNodes.push(b),b},sync:function(a){if(!this.skip){for(var b=t
his.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.length;m++)e[m].sync(g)}}},q.prototype={ren
der:function(a){if(this.dirty){this.invalidateAttributes(),this.treeComposition(
);var b=this.host,c=b.shadowRoot;this.associateNode(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.di
rty=!1}},invalidate:function(){if(!this.dirty){if(this.dirty=!0,O.push(this),y)r
eturn;y=window[N](l,0)}},renderNode:function(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)},render
AsAnyDomTree:function(a,b,c,d){if(b=b.append(c),v(c)){var e=m(c);b.skip=!e.dirty
,e.render(b)}else for(var f=c.firstChild;f;f=f.nextSibling)this.renderNode(a,b,f
,d)},renderInsertionPoint:function(a,b,c,d){var e=g(c);if(e.length){this.associa
teNode(c);for(var f=0;f<e.length;f++){var h=e[f];r(h)&&d?this.renderInsertionPoi
nt(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.renderNode(d,b,e,!0)}else this.renderFallb
ackContent(a,b,c)},renderFallbackContent:function(a,b,c){this.associateNode(c),t
his.associateNode(c.parentNode);for(var d=c.firstChild;d;d=d.nextSibling)this.re
nderAsAnyDomTree(a,b,d,!1)},invalidateAttributes:function(){this.attributes=Obje
ct.create(null)},updateDependentAttributes:function(a){if(a){var b=this.attribut
es;/\.\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 t
his.attributes[a]},distribute:function(a,b){var c=this;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.firstChild;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}break}break}},associateNode:f
unction(a){a.impl.polymerShadowRenderer_=this}},C.prototype.invalidateShadowRend
erer=function(){var a=this.impl.polymerShadowRenderer_;return a?(a.invalidate(),
!0):!1},A.prototype.getDistributedNodes=function(){return k(),g(this)},B.prototy
pe.nodeIsInserted_=A.prototype.nodeIsInserted_=function(){this.invalidateShadowR
enderer();var a,b=n(this);b&&(a=o(b)),this.impl.polymerShadowRenderer_=a,a&&a.in
validate()},a.eventParentsTable=I,a.getRendererForHost=m,a.getShadowTrees=w,a.in
sertionParentTable=J,a.renderAllPending=k,a.visual={insertBefore:c,remove:d}}(wi
ndow.ShadowDOMPolyfill),function(a){"use strict";function b(b){if(window[b]){d(!
a.wrappers[b]);var i=function(a){c.call(this,a)};i.prototype=Object.create(c.pro
totype),e(i.prototype,{get form(){return h(g(this).form)}}),f(window[b],i,docume
nt.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=["HTMLButtonElemen
t","HTMLFieldSetElement","HTMLInputElement","HTMLKeygenElement","HTMLLabelElemen
t","HTMLLegendElement","HTMLObjectElement","HTMLOutputElement","HTMLSelectElemen
t","HTMLTextAreaElement"]; |
| 3 Object.keys(c).forEach(b),Object.getOwnPropertyNames(a.wrappers).forEach(functio
n(b){window[b]=a.wrappers[b]}),a.knownElements=c}(window.ShadowDOMPolyfill),func
tion(){{var a=window.ShadowDOMPolyfill;a.wrap}Object.defineProperties(HTMLElemen
t.prototype,{webkitShadowRoot:{get:function(){return this.shadowRoot}}}),HTMLEle
ment.prototype.webkitCreateShadowRoot=HTMLElement.prototype.createShadowRoot,win
dow.dartExperimentalFixupGetTag=function(b){function c(a){if(a instanceof d)retu
rn"NodeList";if(a instanceof e)return"ShadowRoot";if(window.MutationRecord&&a in
stanceof MutationRecord)return"MutationRecord";if(window.MutationObserver&&a ins
tanceof MutationObserver)return"MutationObserver";if(a instanceof HTMLTemplateEl
ement)return"HTMLTemplateElement";var c=f(a);if(a!==c){var g=a.constructor;if(g=
==c.constructor){var h=g._ShadowDOMPolyfill$cacheTag_;return h||(h=Object.protot
ype.toString.call(c),h=h.substring(8,h.length-1),g._ShadowDOMPolyfill$cacheTag_=
h),h}a=c}return b(a)}var d=a.wrappers.NodeList,e=a.wrappers.ShadowRoot,f=a.unwra
pIfNeeded;return c}}();var Platform={};!function(a){function b(a,b){var c="";ret
urn Array.prototype.forEach.call(a,function(a){c+=a.textContent+"\n\n"}),b||(c=c
.replace(n,"")),c}function c(a){var b=document.createElement("style");return b.t
extContent=a,b}function d(a){var b=c(a);document.head.appendChild(b);var d=b.she
et.cssRules;return b.parentNode.removeChild(b),d}function e(a){for(var b=0,c=[];
b<a.length;b++)c.push(a[b].cssText);return c.join("\n\n")}function f(a){a&&g().a
ppendChild(document.createTextNode(a))}function g(){return h||(h=document.create
Element("style"),h.setAttribute("ShadowCSSShim","")),h}var h,i={strictStyling:!1
,registry:{},shimStyling:function(a,b,d){var e=this.isTypeExtension(d),g=this.re
gisterDefinition(a,b,d);this.strictStyling&&this.applyScopeToContent(a,b),this.i
nsertPolyfillDirectives(g.rootStyles),this.insertPolyfillRules(g.rootStyles);var
h=this.stylesToShimmedCssText(g.scopeStyles,b,e);h+=this.extractPolyfillUnscope
dRules(g.rootStyles),g.shimmedStyle=c(h),a&&(a.shimmedStyle=g.shimmedStyle);for(
var i,j=0,k=g.rootStyles.length;k>j&&(i=g.rootStyles[j]);j++)i.parentNode.remove
Child(i);f(h)},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.sl
ice.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.scopeSty
les.concat(d.scopeStyles)),d},isTypeExtension:function(a){return a&&a.indexOf("-
")<0},applyScopeToContent:function(a,b){a&&(Array.prototype.forEach.call(a.query
SelectorAll("*"),function(a){a.setAttribute(b,"")}),Array.prototype.forEach.call
(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.textContent
)},this)},insertPolyfillDirectivesInCssText:function(a){return a.replace(o,funct
ion(a,b){return b.slice(0,-2)+"{"})},insertPolyfillRules:function(a){a&&Array.pr
ototype.forEach.call(a,function(a){a.textContent=this.insertPolyfillRulesInCssTe
xt(a.textContent)},this)},insertPolyfillRulesInCssText:function(a){return a.repl
ace(p,function(a,b){return b.slice(0,-1)})},extractPolyfillUnscopedRules:functio
n(a){var b="";return a&&Array.prototype.forEach.call(a,function(a){b+=this.extra
ctPolyfillUnscopedRulesFromCssText(a.textContent)+"\n\n"},this),b},extractPolyfi
llUnscopedRulesFromCssText:function(a){for(var b,c="";b=q.exec(a);)c+=b[1].slice
(0,-1)+"\n\n";return c},stylesToShimmedCssText:function(a,b,c){return this.shimA
tHost(a,b,c)+this.shimScoping(a,b,c)},shimAtHost:function(a,b,c){return a?this.c
onvertAtHostStyles(a,b,c):void 0},convertAtHostStyles:function(a,c,f){var g=b(a)
,h=this;return g=g.replace(j,function(a,b){return h.scopeHostCss(b,c,f)}),g=e(th
is.findAtHostRules(d(g),this.makeScopeMatcher(c,f)))},scopeHostCss:function(a,b,
c){var d=this;return a.replace(k,function(a,e,f){return d.scopeHostSelector(e,b,
c)+" "+f+"\n "})},scopeHostSelector:function(a,b,c){var d=[],e=a.split(","),f
="[is="+b+"]";return e.forEach(function(a){a=a.trim(),a.match(l)?a=a.replace(l,c
?f+"$1$3":b+"$1$3"):a.match(m)&&(a=c?f+a:b+a),d.push(a)},this),d.join(", ")},fin
dAtHostRules:function(a,b){return Array.prototype.filter.call(a,this.isHostRule.
bind(this,b))},isHostRule:function(a,b){return b.selectorText&&b.selectorText.ma
tch(a)||b.cssRules&&this.findAtHostRules(b.cssRules,a).length||b.type==CSSRule.W
EBKIT_KEYFRAMES_RULE},shimScoping:function(a,b,c){return a?this.convertScopedSty
les(a,b,c):void 0},convertScopedStyles:function(a,c,e){var f=b(a).replace(j,"");
f=this.insertPolyfillHostInCssText(f),f=this.convertColonHost(f),f=this.convertP
seudos(f),f=this.convertParts(f),f=this.convertCombinators(f);var g=d(f);return
f=this.scopeRules(g,c,e)},convertPseudos:function(a){return a.replace(r," [pseud
o=$1]")},convertParts:function(a){return a.replace(s," [part=$1]")},convertColon
Host:function(a){return a.replace(u,function(a,b,c,d){if(b=y,c){for(var e,f=c.sp
lit(","),g=[],h=0,i=f.length;i>h&&(e=f[h]);h++)e=e.trim(),e.match(t)?g.push(b+e.
replace(t,"")+d):g.push(b+e+d+", "+e+" "+b+d);return g.join(",")}return b+d})},c
onvertCombinators:function(a){return a.replace(/\^\^/g," ").replace(/\^/g," ")},
scopeRules:function(a,b,c){var d="";return Array.prototype.forEach.call(a,functi
on(a){a.selectorText&&a.style&&a.style.cssText?(d+=this.scopeSelector(a.selector
Text,b,c,this.strictStyling)+" {\n ",d+=this.propertiesFromRule(a)+"\n}\n\n
"):a.media?(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:func
tion(a,b,c,d){var e=[],f=a.split(",");return f.forEach(function(a){a=a.trim(),th
is.selectorNeedsScoping(a,b,c)&&(a=d&&!a.match(y)?this.applyStrictSelectorScope(
a,b):this.applySimpleSelectorScope(a,b,c)),e.push(a)},this),e.join(", ")},select
orNeedsScoping:function(a,b,c){var d=this.makeScopeMatcher(b,c);return!a.match(d
)},makeScopeMatcher:function(a,b){var c=b?"\\[is=['\"]?"+a+"['\"]?\\]":a;return
new RegExp("^("+c+")"+v,"m")},applySimpleSelectorScope:function(a,b,c){var d=c?"
[is="+b+"]":b;return a.match(z)?(a=a.replace(y,d),a.replace(z,d+" ")):d+" "+a},a
pplyStrictSelectorScope:function(a,b){var c=[" ",">","+","~"],d=a,e="["+b+"]";re
turn c.forEach(function(a){var b=d.split(a);d=b.map(function(a){var b=a.trim().r
eplace(z,"");return b&&c.indexOf(b)<0&&b.indexOf(e)<0&&(a=b.replace(/([^:]*)(:*)
(.*)/,"$1"+e+"$2$3")),a}).join(a)}),d},insertPolyfillHostInCssText:function(a){r
eturn a.replace(w,t).replace(x,t)},propertiesFromRule:function(a){return a.style
.cssText}},j=/@host[^{]*{(([^}]*?{[^{]*?}[\s\S]*?)+)}/gim,k=/([^{]*)({[\s\S]*?})
/gim,l=/(.*)((?:\*)|(?:\:scope))(.*)/,m=/^[.\[:]/,n=/\/\*[^*]*\*+([^/*][^*]*\*+)
*\//gim,o=/\/\*\s*@polyfill ([^*]*\*+([^/*][^*]*\*+)*\/)([^{]*?){/gim,p=/\/\*\s@
polyfill-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim,q=/\/\*\s@polyfill-unscoped-rule([
^*]*\*+([^/*][^*]*\*+)*)\//gim,r=/::(x-[^\s{,(]*)/gim,s=/::part\(([^)]*)\)/gim,t
="-shadowcsshost",u=new RegExp("("+t+")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^
,{]*)","gim"),v="([>\\s~+[.,{:][\\s\\S]*)?$",w=/@host/gim,x=/\:host/gim,y=t+"-no
-combinator",z=new RegExp(t,"gim");if(window.ShadowDOMPolyfill){f("style { displ
ay: none !important; }\n");var A=document.querySelector("head");A.insertBefore(g
(),A.childNodes[0])}a.ShadowCSS=i}(window.Platform)} | 3 i.forEach(b)}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){t
his.impl=a}{var c=a.registerWrapper,d=a.unwrap,e=a.unwrapIfNeeded,f=a.wrap;windo
w.Selection}b.prototype={get anchorNode(){return f(this.impl.anchorNode)},get fo
cusNode(){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.containsNode(e(a),b)},extend:function(a,b){this.impl.exte
nd(e(a),b)},getRangeAt:function(a){return f(this.impl.getRangeAt(a))},removeRang
e:function(a){this.impl.removeRange(d(a))},selectAllChildren:function(a){this.im
pl.selectAllChildren(e(a))},toString:function(){return this.impl.toString()}},c(
window.Selection,b,window.getSelection()),a.wrappers.Selection=b}(window.ShadowD
OMPolyfill),function(a){"use strict";function b(a){k.call(this,a)}function c(a){
var c=document[a];b.prototype[a]=function(){return y(c.apply(this.impl,arguments
))}}function d(a,b){B.call(b.impl,x(a)),e(a,b)}function e(a,b){a.shadowRoot&&b.a
doptNode(a.shadowRoot),a instanceof o&&f(a,b);for(var c=a.firstChild;c;c=c.nextS
ibling)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 y(c.apply(this.impl,arguments))}}function i(a,b){var c=docum
ent.implementation[b];a.prototype[b]=function(){return c.apply(this.impl,argumen
ts)}}var j=a.GetElementsByInterface,k=a.wrappers.Node,l=a.ParentNodeInterface,m=
a.wrappers.Selection,n=a.SelectorsInterface,o=a.wrappers.ShadowRoot,p=a.defineWr
apGetter,q=a.elementFromPoint,r=a.forwardMethodsToWrapper,s=a.matchesNames,t=a.m
ixin,u=a.registerWrapper,v=a.renderAllPending,w=a.rewrap,x=a.unwrap,y=a.wrap,z=a
.wrapEventTargetMethods,A=(a.wrapNodeList,new WeakMap);b.prototype=Object.create
(k.prototype),p(b,"documentElement"),p(b,"body"),p(b,"head"),["createComment","c
reateDocumentFragment","createElement","createElementNS","createEvent","createEv
entNS","createRange","createTextNode","getElementById"].forEach(c);var B=documen
t.adoptNode,C=document.importNode,D=document.getSelection;if(t(b.prototype,{adop
tNode:function(a){return a.parentNode&&a.parentNode.removeChild(a),d(a,this),a},
elementFromPoint:function(a,b){return q(this,this,a,b)},importNode:function(a,b)
{var c=y(C.call(this.impl,x(a),!1));if(b)for(var d=a.firstChild;d;d=d.nextSiblin
g)c.appendChild(this.importNode(d,!0));return c},getSelection:function(){return
v(),new m(D.call(x(this)))}}),document.registerElement){var E=document.registerE
lement;b.prototype.registerElement=function(b,c){function d(a){return a?void(thi
s.impl=a):c.extends?document.createElement(c.extends,b):document.createElement(b
)}var e=c.prototype;if(a.nativePrototypeTable.get(e))throw new Error("NotSupport
edError");for(var f,g=Object.getPrototypeOf(e),h=[];g&&!(f=a.nativePrototypeTabl
e.get(g));)h.push(g),g=Object.getPrototypeOf(g);if(!f)throw new Error("NotSuppor
tedError");for(var i=Object.create(f),j=h.length-1;j>=0;j--)i=Object.create(i);[
"createdCallback","attachedCallback","detachedCallback","attributeChangedCallbac
k"].forEach(function(a){var b=e[a];b&&(i[a]=function(){y(this)instanceof d||w(th
is),b.apply(y(this),arguments)})});var k={prototype:i};c.extends&&(k.extends=c.e
xtends),d.prototype=e,d.prototype.constructor=d,a.constructorTable.set(i,d),a.na
tivePrototypeTable.set(e,i);E.call(x(this),b,k);return d},r([window.HTMLDocument
||window.Document],["registerElement"])}r([window.HTMLBodyElement,window.HTMLDoc
ument||window.Document,window.HTMLHeadElement,window.HTMLHtmlElement],["appendCh
ild","compareDocumentPosition","contains","getElementsByClassName","getElementsB
yTagName","getElementsByTagNameNS","insertBefore","querySelector","querySelector
All","removeChild","replaceChild"].concat(s)),r([window.HTMLDocument||window.Doc
ument],["adoptNode","importNode","contains","createComment","createDocumentFragm
ent","createElement","createElementNS","createEvent","createEventNS","createRang
e","createTextNode","elementFromPoint","getElementById","getSelection"]),t(b.pro
totype,j),t(b.prototype,l),t(b.prototype,n),t(b.prototype,{get implementation(){
var a=A.get(this);return a?a:(a=new g(x(this).implementation),A.set(this,a),a)}}
),u(window.Document,b,document.implementation.createHTMLDocument("")),window.HTM
LDocument&&u(window.HTMLDocument,b),z([window.HTMLBodyElement,window.HTMLDocumen
t||window.Document,window.HTMLHeadElement]),h(g,"createDocumentType"),h(g,"creat
eDocument"),h(g,"createHTMLDocument"),i(g,"hasFeature"),u(window.DOMImplementati
on,g),r([window.DOMImplementation],["createDocumentType","createDocument","creat
eHTMLDocument","hasFeature"]),a.adoptNodeNoRemove=d,a.wrappers.DOMImplementation
=g,a.wrappers.Document=b}(window.ShadowDOMPolyfill),function(a){"use strict";fun
ction b(a){c.call(this,a)}var c=a.wrappers.EventTarget,d=a.wrappers.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.getSelection;b.protot
ype=Object.create(c.prototype),k.prototype.getComputedStyle=function(a,b){return
j(this||window).getComputedStyle(i(a),b)},k.prototype.getSelection=function(){r
eturn j(this||window).getSelection()},delete window.getComputedStyle,delete wind
ow.getSelection,["addEventListener","removeEventListener","dispatchEvent"].forEa
ch(function(a){k.prototype[a]=function(){var b=j(this||window);return b[a].apply
(b,arguments)},delete window[a]}),e(b.prototype,{getComputedStyle:function(a,b){
return g(),l.call(h(this),i(a),b)},getSelection:function(){return g(),new d(m.ca
ll(h(this)))}}),f(k,b),a.wrappers.Window=b}(window.ShadowDOMPolyfill),function(a
){"use strict";function b(a){var b=c[a],d=window[b];if(d){var e=document.createE
lement(a),f=e.constructor;window[b]=f}}var c=(a.isWrapperFor,{a:"HTMLAnchorEleme
nt",area:"HTMLAreaElement",br:"HTMLBRElement",base:"HTMLBaseElement",body:"HTMLB
odyElement",button:"HTMLButtonElement",dl:"HTMLDListElement",datalist:"HTMLDataL
istElement",data:"HTMLDataElement",dir:"HTMLDirectoryElement",div:"HTMLDivElemen
t",embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement",font:"HTMLFontElement
",form:"HTMLFormElement",frame:"HTMLFrameElement",frameset:"HTMLFrameSetElement"
,hr:"HTMLHRElement",head:"HTMLHeadElement",h1:"HTMLHeadingElement",html:"HTMLHtm
lElement",iframe:"HTMLIFrameElement",input:"HTMLInputElement",li:"HTMLLIElement"
,label:"HTMLLabelElement",legend:"HTMLLegendElement",link:"HTMLLinkElement",map:
"HTMLMapElement",marquee:"HTMLMarqueeElement",menu:"HTMLMenuElement",menuitem:"H
TMLMenuItemElement",meta:"HTMLMetaElement",meter:"HTMLMeterElement",del:"HTMLMod
Element",ol:"HTMLOListElement",object:"HTMLObjectElement",optgroup:"HTMLOptGroup
Element",option:"HTMLOptionElement",output:"HTMLOutputElement",p:"HTMLParagraphE
lement",param:"HTMLParamElement",pre:"HTMLPreElement",progress:"HTMLProgressElem
ent",q:"HTMLQuoteElement",script:"HTMLScriptElement",select:"HTMLSelectElement",
source:"HTMLSourceElement",span:"HTMLSpanElement",style:"HTMLStyleElement",time:
"HTMLTimeElement",caption:"HTMLTableCaptionElement",col:"HTMLTableColElement",ta
ble:"HTMLTableElement",tr:"HTMLTableRowElement",thead:"HTMLTableSectionElement",
tbody:"HTMLTableSectionElement",textarea:"HTMLTextAreaElement",track:"HTMLTrackE
lement",title:"HTMLTitleElement",ul:"HTMLUListElement",video:"HTMLVideoElement"}
);Object.keys(c).forEach(b),Object.getOwnPropertyNames(a.wrappers).forEach(funct
ion(b){window[b]=a.wrappers[b]}),a.knownElements=c}(window.ShadowDOMPolyfill),fu
nction(){{var a=window.ShadowDOMPolyfill;a.wrap}Object.defineProperties(HTMLElem
ent.prototype,{webkitShadowRoot:{get:function(){return this.shadowRoot}}}),windo
w.wrap=window.ShadowDOMPolyfill.wrap,window.unwrap=window.ShadowDOMPolyfill.unwr
ap,HTMLElement.prototype.webkitCreateShadowRoot=HTMLElement.prototype.createShad
owRoot,window.dartExperimentalFixupGetTag=function(b){function c(a){if(a instanc
eof d)return"NodeList";if(a instanceof e)return"ShadowRoot";if(window.MutationRe
cord&&a instanceof MutationRecord)return"MutationRecord";if(window.MutationObser
ver&&a instanceof MutationObserver)return"MutationObserver";if(a instanceof HTML
TemplateElement)return"HTMLTemplateElement";var c=f(a);if(a!==c){var g=a.constru
ctor;if(g===c.constructor){var h=g._ShadowDOMPolyfill$cacheTag_;return h||(h=Obj
ect.prototype.toString.call(c),h=h.substring(8,h.length-1),g._ShadowDOMPolyfill$
cacheTag_=h),h}a=c}return b(a)}var d=a.wrappers.NodeList,e=a.wrappers.ShadowRoot
,f=a.unwrapIfNeeded;return c}}();var Platform={};!function(a){function b(a,b){va
r c="";return Array.prototype.forEach.call(a,function(a){c+=a.textContent+"\n\n"
}),b||(c=c.replace(m,"")),c}function c(a){var b=document.createElement("style");
return b.textContent=a,b}function d(a){var b=c(a);document.head.appendChild(b);v
ar d=b.sheet.cssRules;return b.parentNode.removeChild(b),d}function e(a){for(var
b=0,c=[];b<a.length;b++)c.push(a[b].cssText);return c.join("\n\n")}function f(a
){a&&g().appendChild(document.createTextNode(a))}function g(){return v||(v=docum
ent.createElement("style"),v.setAttribute("ShadowCSSShim",""),v.shadowCssShim=!0
),v}var h=(a.loader,{strictStyling:!1,registry:{},shimStyling:function(a,b,d){va
r e=this.isTypeExtension(d),g=this.registerDefinition(a,b,d);this.strictStyling&
&this.applyScopeToContent(a,b);var h=this.stylesToShimmedCssText(g.rootStyles,g.
scopeStyles,b,e);g.shimmedStyle=c(h),a&&(a.shimmedStyle=g.shimmedStyle);for(var
i,j=0,k=g.rootStyles.length;k>j&&(i=g.rootStyles[j]);j++)i.parentNode.removeChil
d(i);f(h)},stylesToShimmedCssText:function(a,b,c,d){c=c||"",this.insertPolyfillD
irectives(a),this.insertPolyfillRules(a);var e=this.shimAtHost(b,c,d)+this.shimS
coping(b,c,d);return e+=this.extractPolyfillUnscopedRules(a)},registerDefinition
:function(a,b,c){var d=this.registry[b]={root:a,name:b,extendsName:c},e=a?a.quer
ySelectorAll("style"):[];e=e?Array.prototype.slice.call(e,0):[],d.rootStyles=e,d
.scopeStyles=d.rootStyles;var f=this.registry[d.extendsName];return!f||a&&!a.que
rySelector("shadow")||(d.scopeStyles=f.scopeStyles.concat(d.scopeStyles)),d},isT
ypeExtension:function(a){return a&&a.indexOf("-")<0},applyScopeToContent:functio
n(a,b){a&&(Array.prototype.forEach.call(a.querySelectorAll("*"),function(a){a.se
tAttribute(b,"")}),Array.prototype.forEach.call(a.querySelectorAll("template"),f
unction(a){this.applyScopeToContent(a.content,b)},this))},insertPolyfillDirectiv
es:function(a){a&&Array.prototype.forEach.call(a,function(a){a.textContent=this.
insertPolyfillDirectivesInCssText(a.textContent)},this)},insertPolyfillDirective
sInCssText:function(a){return a.replace(n,function(a,b){return b.slice(0,-2)+"{"
})},insertPolyfillRules:function(a){a&&Array.prototype.forEach.call(a,function(a
){a.textContent=this.insertPolyfillRulesInCssText(a.textContent)},this)},insertP
olyfillRulesInCssText:function(a){return a.replace(o,function(a,b){return b.slic
e(0,-1)})},extractPolyfillUnscopedRules:function(a){var b="";return a&&Array.pro
totype.forEach.call(a,function(a){b+=this.extractPolyfillUnscopedRulesFromCssTex
t(a.textContent)+"\n\n"},this),b},extractPolyfillUnscopedRulesFromCssText:functi
on(a){for(var b,c="";b=p.exec(a);)c+=b[1].slice(0,-1)+"\n\n";return c},shimAtHos
t:function(a,b,c){return a?this.convertAtHostStyles(a,b,c):void 0},convertAtHost
Styles:function(a,c,f){var g=b(a),h=this;return g=g.replace(i,function(a,b){retu
rn h.scopeHostCss(b,c,f)}),g=e(this.findAtHostRules(d(g),this.makeScopeMatcher(c
,f)))},scopeHostCss:function(a,b,c){var d=this;return a.replace(j,function(a,e,f
){return d.scopeHostSelector(e,b,c)+" "+f+"\n "})},scopeHostSelector:function(
a,b,c){var d=[],e=a.split(","),f="[is="+b+"]";return e.forEach(function(a){a=a.t
rim(),a.match(k)?a=a.replace(k,c?f+"$1$3":b+"$1$3"):a.match(l)&&(a=c?f+a:b+a),d.
push(a)},this),d.join(", ")},findAtHostRules:function(a,b){return Array.prototyp
e.filter.call(a,this.isHostRule.bind(this,b))},isHostRule:function(a,b){return b
.selectorText&&b.selectorText.match(a)||b.cssRules&&this.findAtHostRules(b.cssRu
les,a).length||b.type==CSSRule.WEBKIT_KEYFRAMES_RULE},shimScoping:function(a,b,c
){return a?this.convertScopedStyles(a,b,c):void 0},convertScopedStyles:function(
a,c,e){var f=b(a).replace(i,"");f=this.insertPolyfillHostInCssText(f),f=this.con
vertColonHost(f),f=this.convertColonAncestor(f),f=this.convertPseudos(f),f=this.
convertParts(f),f=this.convertCombinators(f);var g=d(f);return c&&(f=this.scopeR
ules(g,c,e)),f},convertPseudos:function(a){return a.replace(q," [pseudo=$1]")},c
onvertParts:function(a){return a.replace(r," [part=$1]")},convertColonHost:funct
ion(a){return this.convertColonRule(a,cssColonHostRe,this.colonHostPartReplacer)
},convertColonAncestor:function(a){return this.convertColonRule(a,cssColonAncest
orRe,this.colonAncestorPartReplacer)},convertColonRule:function(a,b,c){return a.
replace(b,function(a,b,d,e){if(b=polyfillHostNoCombinator,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:function(a,b,c){return b.matc
h(s)?this.colonHostPartReplacer(a,b,c):a+b+c+", "+b+" "+a+c},colonHostPartReplac
er:function(a,b,c){return a+b.replace(s,"")+c},convertCombinators:function(a){re
turn a.replace(/\^\^/g," ").replace(/\^/g," ")},scopeRules: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.media?(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.selectorNeedsScoping(a,b,c)&&
(a=d&&!a.match(polyfillHostNoCombinator)?this.applyStrictSelectorScope(a,b):this
.applySimpleSelectorScope(a,b,c)),e.push(a)},this),e.join(", ")},selectorNeedsSc
oping:function(a,b,c){var d=this.makeScopeMatcher(b,c);return!a.match(d)},makeSc
opeMatcher:function(a,b){var c=b?"\\[is=['\"]?"+a+"['\"]?\\]":a;return new RegEx
p("^("+c+")"+selectorReSuffix,"m")},applySimpleSelectorScope:function(a,b,c){var
d=c?"[is="+b+"]":b;return a.match(polyfillHostRe)?(a=a.replace(polyfillHostNoCo
mbinator,d),a.replace(polyfillHostRe,d+" ")):d+" "+a},applyStrictSelectorScope:f
unction(a,b){var c=[" ",">","+","~"],d=a,e="["+b+"]";return c.forEach(function(a
){var b=d.split(a);d=b.map(function(a){var b=a.trim().replace(polyfillHostRe,"")
;return b&&c.indexOf(b)<0&&b.indexOf(e)<0&&(a=b.replace(/([^:]*)(:*)(.*)/,"$1"+e
+"$2$3")),a}).join(a)}),d},insertPolyfillHostInCssText:function(a){return a.repl
ace(hostRe,s).replace(colonHostRe,s).replace(colonAncestorRe,t)},propertiesFromR
ule:function(a){return a.style.content&&!a.style.content.match(/['"]+/)?a.style.
cssText.replace(/content:[^;]*;/g,"content: '"+a.style.content+"';"):a.style.css
Text}}),i=/@host[^{]*{(([^}]*?{[^{]*?}[\s\S]*?)+)}/gim,j=/([^{]*)({[\s\S]*?})/gi
m,k=/(.*)((?:\*)|(?:\:scope))(.*)/,l=/^[.\[:]/,m=/\/\*[^*]*\*+([^/*][^*]*\*+)*\/
/gim,n=/\/\*\s*@polyfill ([^*]*\*+([^/*][^*]*\*+)*\/)([^{]*?){/gim,o=/\/\*\s@pol
yfill-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim,p=/\/\*\s@polyfill-unscoped-rule([^*]
*\*+([^/*][^*]*\*+)*)\//gim,q=/::(x-[^\s{,(]*)/gim,r=/::part\(([^)]*)\)/gim,s="-
shadowcsshost",t="-shadowcssancestor",u=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?
([^,{]*)";cssColonHostRe=new RegExp("("+s+u,"gim"),cssColonAncestorRe=new RegExp
("("+t+u,"gim"),selectorReSuffix="([>\\s~+[.,{:][\\s\\S]*)?$",hostRe=/@host/gim,
colonHostRe=/\:host/gim,colonAncestorRe=/\:ancestor/gim,polyfillHostNoCombinator
=s+"-no-combinator",polyfillHostRe=new RegExp(s,"gim"),polyfillAncestorRe=new Re
gExp(t,"gim");var v;if(window.ShadowDOMPolyfill){f("style { display: none !impor
tant; }\n");var w=wrap(document),x=w.querySelector("head");x.insertBefore(g(),x.
childNodes[0]),document.addEventListener("DOMContentLoaded",function(){window.HT
MLImports&&!HTMLImports.useNative&&(HTMLImports.importer.preloadSelectors+=", li
nk[rel=stylesheet]:not([nopolyfill])",HTMLImports.parser.parseGeneric=function(a
){if(!a.shadowCssShim){var b=a;if(!a.hasAttribute("nopolyfill")){a.__resource?(b
=a.ownerDocument.createElement("style"),b.textContent=Platform.loader.resolveUrl
sInCssText(a.__resource,a.href),a.ownerDocument===w&&a.parentNode.removeChild(a)
):Platform.loader.resolveUrlsInStyle(b);var c=[b];b.textContent=h.stylesToShimme
dCssText(c,c),b.shadowCssShim=!0}b.parentNode!==x&&x.appendChild(b)}})})}a.Shado
wCSS=h}(window.Platform)} |
| OLD | NEW |