OLD | NEW |
(Empty) | |
| 1 /** |
| 2 * @license |
| 3 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. |
| 4 * This code may only be used under the BSD style license found at http://polyme
r.github.io/LICENSE.txt |
| 5 * The complete set of authors may be found at http://polymer.github.io/AUTHORS.
txt |
| 6 * The complete set of contributors may be found at http://polymer.github.io/CON
TRIBUTORS.txt |
| 7 * Code distributed by Google as part of the polymer project is also |
| 8 * subject to an additional IP rights grant found at http://polymer.github.io/PA
TENTS.txt |
| 9 */ |
| 10 // @version 0.5.1-1 |
| 11 window.WebComponents=window.WebComponents||{},function(e){var t=e.flags||{},n="w
ebcomponents.js",r=document.querySelector('script[src*="'+n+'"]'),t={};if(!t.noO
pts){if(location.search.slice(1).split("&").forEach(function(e){e=e.split("="),e
[0]&&(t[e[0]]=e[1]||!0)}),r)for(var o,i=0;o=r.attributes[i];i++)"src"!==o.name&&
(t[o.name]=o.value||!0);if(t.log){var a=t.log.split(",");t.log={},a.forEach(func
tion(e){t.log[e]=!0})}else t.log={}}t.shadow=t.shadow||t.shadowdom||t.polyfill,t
.shadow="native"===t.shadow?!1:t.shadow||!HTMLElement.prototype.createShadowRoot
,t.register&&(window.CustomElements=window.CustomElements||{flags:{}},window.Cus
tomElements.flags.register=t.register),e.flags=t}(WebComponents),WebComponents.f
lags.shadow&&("undefined"==typeof WeakMap&&!function(){var e=Object.defineProper
ty,t=Date.now()%1e9,n=function(){this.name="__st"+(1e9*Math.random()>>>0)+(t++ +
"__")};n.prototype={set:function(t,n){var r=t[this.name];return r&&r[0]===t?r[1]
=n:e(t,this.name,{value:[t,n],writable:!0}),this},get:function(e){var t;return(t
=e[this.name])&&t[0]===e?t[1]:void 0},"delete":function(e){var t=e[this.name];re
turn t&&t[0]===e?(t[0]=t[1]=void 0,!0):!1},has:function(e){var t=e[this.name];re
turn t?t[0]===e:!1}},window.WeakMap=n}(),window.ShadowDOMPolyfill={},function(e)
{"use strict";function t(){if("undefined"!=typeof chrome&&chrome.app&&chrome.app
.runtime)return!1;if(navigator.getDeviceStorage)return!1;try{var e=new Function(
"return true;");return e()}catch(t){return!1}}function n(e){if(!e)throw new Erro
r("Assertion failed")}function r(e,t){for(var n=W(t),r=0;r<n.length;r++){var o=n
[r];k(e,o,F(t,o))}return e}function o(e,t){for(var n=W(t),r=0;r<n.length;r++){va
r o=n[r];switch(o){case"arguments":case"caller":case"length":case"name":case"pro
totype":case"toString":continue}k(e,o,F(t,o))}return e}function i(e,t){for(var n
=0;n<t.length;n++)if(t[n]in e)return t[n]}function a(e,t,n){B.value=n,k(e,t,B)}f
unction s(e){var t=e.__proto__||Object.getPrototypeOf(e),n=R.get(t);if(n)return
n;var r=s(t),o=E(r);return g(t,o,e),o}function c(e,t){w(e,t,!0)}function l(e,t){
w(t,e,!1)}function u(e){return/^on[a-z]+$/.test(e)}function d(e){return/^\w[a-zA
-Z_0-9]*$/.test(e)}function p(e){return A&&d(e)?new Function("return this.__impl
4cf1e782hg__."+e):function(){return this.__impl4cf1e782hg__[e]}}function f(e){re
turn A&&d(e)?new Function("v","this.__impl4cf1e782hg__."+e+" = v"):function(t){t
his.__impl4cf1e782hg__[e]=t}}function h(e){return A&&d(e)?new Function("return t
his.__impl4cf1e782hg__."+e+".apply(this.__impl4cf1e782hg__, arguments)"):functio
n(){return this.__impl4cf1e782hg__[e].apply(this.__impl4cf1e782hg__,arguments)}}
function m(e,t){try{return Object.getOwnPropertyDescriptor(e,t)}catch(n){return
q}}function w(t,n,r){for(var o=W(t),i=0;i<o.length;i++){var a=o[i];if("polymerBl
ackList_"!==a&&!(a in n||t.polymerBlackList_&&t.polymerBlackList_[a])){U&&t.__lo
okupGetter__(a);var s,c,l=m(t,a);if(r&&"function"==typeof l.value)n[a]=h(a);else
{var d=u(a);s=d?e.getEventHandlerGetter(a):p(a),(l.writable||l.set||V)&&(c=d?e.g
etEventHandlerSetter(a):f(a)),k(n,a,{get:s,set:c,configurable:l.configurable,enu
merable:l.enumerable})}}}}function v(e,t,n){var r=e.prototype;g(r,t,n),o(t,e)}fu
nction g(e,t,r){var o=t.prototype;n(void 0===R.get(e)),R.set(e,t),P.set(o,e),c(e
,o),r&&l(o,r),a(o,"constructor",t),t.prototype=o}function b(e,t){return R.get(t.
prototype)===e}function y(e){var t=Object.getPrototypeOf(e),n=s(t),r=E(n);return
g(t,r,e),r}function E(e){function t(t){e.call(this,t)}var n=Object.create(e.pro
totype);return n.constructor=t,t.prototype=n,t}function S(e){return e&&e.__impl4
cf1e782hg__}function T(e){return!S(e)}function M(e){return null===e?null:(n(T(e)
),e.__wrapper8e3dd93a60__||(e.__wrapper8e3dd93a60__=new(s(e))(e)))}function _(e)
{return null===e?null:(n(S(e)),e.__impl4cf1e782hg__)}function O(e){return e.__im
pl4cf1e782hg__}function L(e,t){t.__impl4cf1e782hg__=e,e.__wrapper8e3dd93a60__=t}
function N(e){return e&&S(e)?_(e):e}function C(e){return e&&!S(e)?M(e):e}functio
n D(e,t){null!==t&&(n(T(e)),n(void 0===t||S(t)),e.__wrapper8e3dd93a60__=t)}funct
ion j(e,t,n){G.get=n,k(e.prototype,t,G)}function H(e,t){j(e,t,function(){return
M(this.__impl4cf1e782hg__[t])})}function x(e,t){e.forEach(function(e){t.forEach(
function(t){e.prototype[t]=function(){var e=C(this);return e[t].apply(e,argument
s)}})})}var R=new WeakMap,P=new WeakMap,I=Object.create(null),A=t(),k=Object.def
ineProperty,W=Object.getOwnPropertyNames,F=Object.getOwnPropertyDescriptor,B={va
lue:void 0,configurable:!0,enumerable:!1,writable:!0};W(window);var U=/Firefox/.
test(navigator.userAgent),q={get:function(){},set:function(){},configurable:!0,e
numerable:!0},V=function(){var e=Object.getOwnPropertyDescriptor(Node.prototype,
"nodeType");return e&&!e.get&&!e.set}(),G={get:void 0,configurable:!0,enumerable
:!0};e.assert=n,e.constructorTable=R,e.defineGetter=j,e.defineWrapGetter=H,e.for
wardMethodsToWrapper=x,e.isWrapper=S,e.isWrapperFor=b,e.mixin=r,e.nativePrototyp
eTable=P,e.oneOf=i,e.registerObject=y,e.registerWrapper=v,e.rewrap=D,e.setWrappe
r=L,e.unsafeUnwrap=O,e.unwrap=_,e.unwrapIfNeeded=N,e.wrap=M,e.wrapIfNeeded=C,e.w
rappers=I}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e,t,n){
return{index:e,removed:t,addedCount:n}}function n(){}var r=0,o=1,i=2,a=3;n.proto
type={calcEditDistances:function(e,t,n,r,o,i){for(var a=i-o+1,s=n-t+1,c=new Arra
y(a),l=0;a>l;l++)c[l]=new Array(s),c[l][0]=l;for(var u=0;s>u;u++)c[0][u]=u;for(v
ar l=1;a>l;l++)for(var u=1;s>u;u++)if(this.equals(e[t+u-1],r[o+l-1]))c[l][u]=c[l
-1][u-1];else{var d=c[l-1][u]+1,p=c[l][u-1]+1;c[l][u]=p>d?d:p}return c},spliceOp
erationsFromEditDistances:function(e){for(var t=e.length-1,n=e[0].length-1,s=e[t
][n],c=[];t>0||n>0;)if(0!=t)if(0!=n){var l,u=e[t-1][n-1],d=e[t-1][n],p=e[t][n-1]
;l=p>d?u>d?d:u:u>p?p:u,l==u?(u==s?c.push(r):(c.push(o),s=u),t--,n--):l==d?(c.pus
h(a),t--,s=d):(c.push(i),n--,s=p)}else c.push(a),t--;else c.push(i),n--;return c
.reverse(),c},calcSplices:function(e,n,s,c,l,u){var d=0,p=0,f=Math.min(s-n,u-l);
if(0==n&&0==l&&(d=this.sharedPrefix(e,c,f)),s==e.length&&u==c.length&&(p=this.sh
aredSuffix(e,c,f-d)),n+=d,l+=d,s-=p,u-=p,s-n==0&&u-l==0)return[];if(n==s){for(va
r h=t(n,[],0);u>l;)h.removed.push(c[l++]);return[h]}if(l==u)return[t(n,[],s-n)];
for(var m=this.spliceOperationsFromEditDistances(this.calcEditDistances(e,n,s,c,
l,u)),h=void 0,w=[],v=n,g=l,b=0;b<m.length;b++)switch(m[b]){case r:h&&(w.push(h)
,h=void 0),v++,g++;break;case o:h||(h=t(v,[],0)),h.addedCount++,v++,h.removed.pu
sh(c[g]),g++;break;case i:h||(h=t(v,[],0)),h.addedCount++,v++;break;case a:h||(h
=t(v,[],0)),h.removed.push(c[g]),g++}return h&&w.push(h),w},sharedPrefix:functio
n(e,t,n){for(var r=0;n>r;r++)if(!this.equals(e[r],t[r]))return r;return n},share
dSuffix:function(e,t,n){for(var r=e.length,o=t.length,i=0;n>i&&this.equals(e[--r
],t[--o]);)i++;return i},calculateSplices:function(e,t){return this.calcSplices(
e,0,e.length,t,0,t.length)},equals:function(e,t){return e===t}},e.ArraySplice=n}
(window.ShadowDOMPolyfill),function(e){"use strict";function t(){a=!1;var e=i.sl
ice(0);i=[];for(var t=0;t<e.length;t++)e[t]()}function n(e){i.push(e),a||(a=!0,r
(t,0))}var r,o=window.MutationObserver,i=[],a=!1;if(o){var s=1,c=new o(t),l=docu
ment.createTextNode(s);c.observe(l,{characterData:!0}),r=function(){s=(s+1)%2,l.
data=s}}else r=window.setTimeout;e.setEndOfMicrotask=n}(window.ShadowDOMPolyfill
),function(e){"use strict";function t(e){e.scheduled_||(e.scheduled_=!0,h.push(e
),m||(u(n),m=!0))}function n(){for(m=!1;h.length;){var e=h;h=[],e.sort(function(
e,t){return e.uid_-t.uid_});for(var t=0;t<e.length;t++){var n=e[t];n.scheduled_=
!1;var r=n.takeRecords();i(n),r.length&&n.callback_(r,n)}}}function r(e,t){this.
type=e,this.target=t,this.addedNodes=new p.NodeList,this.removedNodes=new p.Node
List,this.previousSibling=null,this.nextSibling=null,this.attributeName=null,thi
s.attributeNamespace=null,this.oldValue=null}function o(e,t){for(;e;e=e.parentNo
de){var n=f.get(e);if(n)for(var r=0;r<n.length;r++){var o=n[r];o.options.subtree
&&o.addTransientObserver(t)}}}function i(e){for(var t=0;t<e.nodes_.length;t++){v
ar n=e.nodes_[t],r=f.get(n);if(!r)return;for(var o=0;o<r.length;o++){var i=r[o];
i.observer===e&&i.removeTransientObservers()}}}function a(e,n,o){for(var i=Objec
t.create(null),a=Object.create(null),s=e;s;s=s.parentNode){var c=f.get(s);if(c)f
or(var l=0;l<c.length;l++){var u=c[l],d=u.options;if((s===e||d.subtree)&&!("attr
ibutes"===n&&!d.attributes||"attributes"===n&&d.attributeFilter&&(null!==o.names
pace||-1===d.attributeFilter.indexOf(o.name))||"characterData"===n&&!d.character
Data||"childList"===n&&!d.childList)){var p=u.observer;i[p.uid_]=p,("attributes"
===n&&d.attributeOldValue||"characterData"===n&&d.characterDataOldValue)&&(a[p.u
id_]=o.oldValue)}}}for(var h in i){var p=i[h],m=new r(n,e);"name"in o&&"namespac
e"in o&&(m.attributeName=o.name,m.attributeNamespace=o.namespace),o.addedNodes&&
(m.addedNodes=o.addedNodes),o.removedNodes&&(m.removedNodes=o.removedNodes),o.pr
eviousSibling&&(m.previousSibling=o.previousSibling),o.nextSibling&&(m.nextSibli
ng=o.nextSibling),void 0!==a[h]&&(m.oldValue=a[h]),t(p),p.records_.push(m)}}func
tion s(e){if(this.childList=!!e.childList,this.subtree=!!e.subtree,this.attribut
es="attributes"in e||!("attributeOldValue"in e||"attributeFilter"in e)?!!e.attri
butes:!0,this.characterData="characterDataOldValue"in e&&!("characterData"in e)?
!0:!!e.characterData,!this.attributes&&(e.attributeOldValue||"attributeFilter"in
e)||!this.characterData&&e.characterDataOldValue)throw new TypeError;if(this.ch
aracterData=!!e.characterData,this.attributeOldValue=!!e.attributeOldValue,this.
characterDataOldValue=!!e.characterDataOldValue,"attributeFilter"in e){if(null==
e.attributeFilter||"object"!=typeof e.attributeFilter)throw new TypeError;this.a
ttributeFilter=w.call(e.attributeFilter)}else this.attributeFilter=null}function
c(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++v,this.schedu
led_=!1}function l(e,t,n){this.observer=e,this.target=t,this.options=n,this.tran
sientObservedNodes=[]}var u=e.setEndOfMicrotask,d=e.wrapIfNeeded,p=e.wrappers,f=
new WeakMap,h=[],m=!1,w=Array.prototype.slice,v=0;c.prototype={constructor:c,obs
erve:function(e,t){e=d(e);var n,r=new s(t),o=f.get(e);o||f.set(e,o=[]);for(var i
=0;i<o.length;i++)o[i].observer===this&&(n=o[i],n.removeTransientObservers(),n.o
ptions=r);n||(n=new l(this,e,r),o.push(n),this.nodes_.push(e))},disconnect:funct
ion(){this.nodes_.forEach(function(e){for(var t=f.get(e),n=0;n<t.length;n++){var
r=t[n];if(r.observer===this){t.splice(n,1);break}}},this),this.records_=[]},tak
eRecords:function(){var e=this.records_;return this.records_=[],e}},l.prototype=
{addTransientObserver:function(e){if(e!==this.target){t(this.observer),this.tran
sientObservedNodes.push(e);var n=f.get(e);n||f.set(e,n=[]),n.push(this)}},remove
TransientObservers:function(){var e=this.transientObservedNodes;this.transientOb
servedNodes=[];for(var t=0;t<e.length;t++)for(var n=e[t],r=f.get(n),o=0;o<r.leng
th;o++)if(r[o]===this){r.splice(o,1);break}}},e.enqueueMutation=a,e.registerTran
sientObservers=o,e.wrappers.MutationObserver=c,e.wrappers.MutationRecord=r}(wind
ow.ShadowDOMPolyfill),function(e){"use strict";function t(e,t){this.root=e,this.
parent=t}function n(e,t){if(e.treeScope_!==t){e.treeScope_=t;for(var r=e.shadowR
oot;r;r=r.olderShadowRoot)r.treeScope_.parent=t;for(var o=e.firstChild;o;o=o.nex
tSibling)n(o,t)}}function r(n){if(n instanceof e.wrappers.Window,n.treeScope_)re
turn n.treeScope_;var o,i=n.parentNode;return o=i?r(i):new t(n,null),n.treeScope
_=o}t.prototype={get renderer(){return this.root instanceof e.wrappers.ShadowRoo
t?e.getRendererForHost(this.root.host):null},contains:function(e){for(;e;e=e.par
ent)if(e===this)return!0;return!1}},e.TreeScope=t,e.getTreeScope=r,e.setTreeScop
e=n}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){return e i
nstanceof G.ShadowRoot}function n(e){return k(e).root}function r(e,r){var s=[],c
=e;for(s.push(c);c;){var l=a(c);if(l&&l.length>0){for(var u=0;u<l.length;u++){va
r p=l[u];if(i(p)){var f=n(p),h=f.olderShadowRoot;h&&s.push(h)}s.push(p)}c=l[l.le
ngth-1]}else if(t(c)){if(d(e,c)&&o(r))break;c=c.host,s.push(c)}else c=c.parentNo
de,c&&s.push(c)}return s}function o(e){if(!e)return!1;switch(e.type){case"abort"
:case"error":case"select":case"change":case"load":case"reset":case"resize":case"
scroll":case"selectstart":return!0}return!1}function i(e){return e instanceof HT
MLShadowElement}function a(t){return e.getDestinationInsertionPoints(t)}function
s(e,t){if(0===e.length)return t;t instanceof G.Window&&(t=t.document);for(var n
=k(t),r=e[0],o=k(r),i=l(n,o),a=0;a<e.length;a++){var s=e[a];if(k(s)===i)return s
}return e[e.length-1]}function c(e){for(var t=[];e;e=e.parent)t.push(e);return t
}function l(e,t){for(var n=c(e),r=c(t),o=null;n.length>0&&r.length>0;){var i=n.p
op(),a=r.pop();if(i!==a)break;o=i}return o}function u(e,t,n){t instanceof G.Wind
ow&&(t=t.document);var o,i=k(t),a=k(n),s=r(n,e),o=l(i,a);o||(o=a.root);for(var c
=o;c;c=c.parent)for(var u=0;u<s.length;u++){var d=s[u];if(k(d)===c)return d}retu
rn null}function d(e,t){return k(e)===k(t)}function p(e){if(!K.get(e)&&(K.set(e,
!0),h(V(e),V(e.target)),I)){var t=I;throw I=null,t}}function f(e){switch(e.type)
{case"load":case"beforeunload":case"unload":return!0}return!1}function h(t,n){if
(Y.get(t))throw new Error("InvalidStateError");Y.set(t,!0),e.renderAllPending();
var o,i,a;if(f(t)&&!t.bubbles){var s=n;s instanceof G.Document&&(a=s.defaultView
)&&(i=s,o=[])}if(!o)if(n instanceof G.Window)a=n,o=[];else if(o=r(n,t),!f(t)){va
r s=o[o.length-1];s instanceof G.Document&&(a=s.defaultView)}return nt.set(t,o),
m(t,o,a,i)&&w(t,o,a,i)&&v(t,o,a,i),Z.set(t,rt),$.delete(t,null),Y.delete(t),t.de
faultPrevented}function m(e,t,n,r){var o=ot;if(n&&!g(n,e,o,t,r))return!1;for(var
i=t.length-1;i>0;i--)if(!g(t[i],e,o,t,r))return!1;return!0}function w(e,t,n,r){
var o=it,i=t[0]||n;return g(i,e,o,t,r)}function v(e,t,n,r){for(var o=at,i=1;i<t.
length;i++)if(!g(t[i],e,o,t,r))return;n&&t.length>0&&g(n,e,o,t,r)}function g(e,t
,n,r,o){var i=z.get(e);if(!i)return!0;var a=o||s(r,e);if(a===e){if(n===ot)return
!0;n===at&&(n=it)}else if(n===at&&!t.bubbles)return!0;if("relatedTarget"in t){va
r c=q(t),l=c.relatedTarget;if(l){if(l instanceof Object&&l.addEventListener){var
d=V(l),p=u(t,e,d);if(p===a)return!0}else p=null;J.set(t,p)}}Z.set(t,n);var f=t.
type,h=!1;X.set(t,a),$.set(t,e),i.depth++;for(var m=0,w=i.length;w>m;m++){var v=
i[m];if(v.removed)h=!0;else if(!(v.type!==f||!v.capture&&n===ot||v.capture&&n===
at))try{if("function"==typeof v.handler?v.handler.call(e,t):v.handler.handleEven
t(t),et.get(t))return!1}catch(g){I||(I=g)}}if(i.depth--,h&&0===i.depth){var b=i.
slice();i.length=0;for(var m=0;m<b.length;m++)b[m].removed||i.push(b[m])}return!
Q.get(t)}function b(e,t,n){this.type=e,this.handler=t,this.capture=Boolean(n)}fu
nction y(e,t){if(!(e instanceof st))return V(M(st,"Event",e,t));var n=e;return g
t||"beforeunload"!==n.type||this instanceof _?void B(n,this):new _(n)}function E
(e){return e&&e.relatedTarget?Object.create(e,{relatedTarget:{value:q(e.relatedT
arget)}}):e}function S(e,t,n){var r=window[e],o=function(t,n){return t instanceo
f r?void B(t,this):V(M(r,e,t,n))};if(o.prototype=Object.create(t.prototype),n&&W
(o.prototype,n),r)try{F(r,o,new r("temp"))}catch(i){F(r,o,document.createEvent(e
))}return o}function T(e,t){return function(){arguments[t]=q(arguments[t]);var n
=q(this);n[e].apply(n,arguments)}}function M(e,t,n,r){if(wt)return new e(n,E(r))
;var o=q(document.createEvent(t)),i=mt[t],a=[n];return Object.keys(i).forEach(fu
nction(e){var t=null!=r&&e in r?r[e]:i[e];"relatedTarget"===e&&(t=q(t)),a.push(t
)}),o["init"+t].apply(o,a),o}function _(e){y.call(this,e)}function O(e){return"f
unction"==typeof e?!0:e&&e.handleEvent}function L(e){switch(e){case"DOMAttrModif
ied":case"DOMAttributeNameChanged":case"DOMCharacterDataModified":case"DOMElemen
tNameChanged":case"DOMNodeInserted":case"DOMNodeInsertedIntoDocument":case"DOMNo
deRemoved":case"DOMNodeRemovedFromDocument":case"DOMSubtreeModified":return!0}re
turn!1}function N(e){B(e,this)}function C(e){return e instanceof G.ShadowRoot&&(
e=e.host),q(e)}function D(e,t){var n=z.get(e);if(n)for(var r=0;r<n.length;r++)if
(!n[r].removed&&n[r].type===t)return!0;return!1}function j(e,t){for(var n=q(e);n
;n=n.parentNode)if(D(V(n),t))return!0;return!1}function H(e){A(e,yt)}function x(
t,n,o,i){e.renderAllPending();var a=V(Et.call(U(n),o,i));if(!a)return null;var c
=r(a,null),l=c.lastIndexOf(t);return-1==l?null:(c=c.slice(0,l),s(c,t))}function
R(e){return function(){var t=tt.get(this);return t&&t[e]&&t[e].value||null}}func
tion P(e){var t=e.slice(2);return function(n){var r=tt.get(this);r||(r=Object.cr
eate(null),tt.set(this,r));var o=r[e];if(o&&this.removeEventListener(t,o.wrapped
,!1),"function"==typeof n){var i=function(t){var r=n.call(this,t);r===!1?t.preve
ntDefault():"onbeforeunload"===e&&"string"==typeof r&&(t.returnValue=r)};this.ad
dEventListener(t,i,!1),r[e]={value:n,wrapped:i}}}}var I,A=e.forwardMethodsToWrap
per,k=e.getTreeScope,W=e.mixin,F=e.registerWrapper,B=e.setWrapper,U=e.unsafeUnwr
ap,q=e.unwrap,V=e.wrap,G=e.wrappers,z=(new WeakMap,new WeakMap),K=new WeakMap,Y=
new WeakMap,X=new WeakMap,$=new WeakMap,J=new WeakMap,Z=new WeakMap,Q=new WeakMa
p,et=new WeakMap,tt=new WeakMap,nt=new WeakMap,rt=0,ot=1,it=2,at=3;b.prototype={
equals:function(e){return this.handler===e.handler&&this.type===e.type&&this.cap
ture===e.capture},get removed(){return null===this.handler},remove:function(){th
is.handler=null}};var st=window.Event;st.prototype.polymerBlackList_={returnValu
e:!0,keyLocation:!0},y.prototype={get target(){return X.get(this)},get currentTa
rget(){return $.get(this)},get eventPhase(){return Z.get(this)},get path(){var e
=nt.get(this);return e?e.slice():[]},stopPropagation:function(){Q.set(this,!0)},
stopImmediatePropagation:function(){Q.set(this,!0),et.set(this,!0)}},F(st,y,docu
ment.createEvent("Event"));var ct=S("UIEvent",y),lt=S("CustomEvent",y),ut={get r
elatedTarget(){var e=J.get(this);return void 0!==e?e:V(q(this).relatedTarget)}},
dt=W({initMouseEvent:T("initMouseEvent",14)},ut),pt=W({initFocusEvent:T("initFoc
usEvent",5)},ut),ft=S("MouseEvent",ct,dt),ht=S("FocusEvent",ct,pt),mt=Object.cre
ate(null),wt=function(){try{new window.FocusEvent("focus")}catch(e){return!1}ret
urn!0}();if(!wt){var vt=function(e,t,n){if(n){var r=mt[n];t=W(W({},r),t)}mt[e]=t
};vt("Event",{bubbles:!1,cancelable:!1}),vt("CustomEvent",{detail:null},"Event")
,vt("UIEvent",{view:null,detail:0},"Event"),vt("MouseEvent",{screenX:0,screenY:0
,clientX:0,clientY:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relate
dTarget:null},"UIEvent"),vt("FocusEvent",{relatedTarget:null},"UIEvent")}var gt=
window.BeforeUnloadEvent;_.prototype=Object.create(y.prototype),W(_.prototype,{g
et returnValue(){return U(this).returnValue},set returnValue(e){U(this).returnVa
lue=e}}),gt&&F(gt,_);var bt=window.EventTarget,yt=["addEventListener","removeEve
ntListener","dispatchEvent"];[Node,Window].forEach(function(e){var t=e.prototype
;yt.forEach(function(e){Object.defineProperty(t,e+"_",{value:t[e]})})}),N.protot
ype={addEventListener:function(e,t,n){if(O(t)&&!L(e)){var r=new b(e,t,n),o=z.get
(this);if(o){for(var i=0;i<o.length;i++)if(r.equals(o[i]))return}else o=[],o.dep
th=0,z.set(this,o);o.push(r);var a=C(this);a.addEventListener_(e,p,!0)}},removeE
ventListener:function(e,t,n){n=Boolean(n);var r=z.get(this);if(r){for(var o=0,i=
!1,a=0;a<r.length;a++)r[a].type===e&&r[a].capture===n&&(o++,r[a].handler===t&&(i
=!0,r[a].remove()));if(i&&1===o){var s=C(this);s.removeEventListener_(e,p,!0)}}}
,dispatchEvent:function(t){var n=q(t),r=n.type;K.set(n,!1),e.renderAllPending();
var o;j(this,r)||(o=function(){},this.addEventListener(r,o,!0));try{return q(thi
s).dispatchEvent_(n)}finally{o&&this.removeEventListener(r,o,!0)}}},bt&&F(bt,N);
var Et=document.elementFromPoint;e.elementFromPoint=x,e.getEventHandlerGetter=R,
e.getEventHandlerSetter=P,e.wrapEventTargetMethods=H,e.wrappers.BeforeUnloadEven
t=_,e.wrappers.CustomEvent=lt,e.wrappers.Event=y,e.wrappers.EventTarget=N,e.wrap
pers.FocusEvent=ht,e.wrappers.MouseEvent=ft,e.wrappers.UIEvent=ct}(window.Shadow
DOMPolyfill),function(e){"use strict";function t(e,t){Object.defineProperty(e,t,
m)}function n(e){l(e,this)}function r(){this.length=0,t(this,"length")}function
o(e){for(var t=new r,o=0;o<e.length;o++)t[o]=new n(e[o]);return t.length=o,t}fun
ction i(e){a.call(this,e)}var a=e.wrappers.UIEvent,s=e.mixin,c=e.registerWrapper
,l=e.setWrapper,u=e.unsafeUnwrap,d=e.wrap,p=window.TouchEvent;if(p){var f;try{f=
document.createEvent("TouchEvent")}catch(h){return}var m={enumerable:!1};n.proto
type={get target(){return d(u(this).target)}};var w={configurable:!0,enumerable:
!0,get:null};["clientX","clientY","screenX","screenY","pageX","pageY","identifie
r","webkitRadiusX","webkitRadiusY","webkitRotationAngle","webkitForce"].forEach(
function(e){w.get=function(){return u(this)[e]},Object.defineProperty(n.prototyp
e,e,w)}),r.prototype={item:function(e){return this[e]}},i.prototype=Object.creat
e(a.prototype),s(i.prototype,{get touches(){return o(u(this).touches)},get targe
tTouches(){return o(u(this).targetTouches)},get changedTouches(){return o(u(this
).changedTouches)},initTouchEvent:function(){throw new Error("Not implemented")}
}),c(p,i,f),e.wrappers.Touch=n,e.wrappers.TouchEvent=i,e.wrappers.TouchList=r}}(
window.ShadowDOMPolyfill),function(e){"use strict";function t(e,t){Object.define
Property(e,t,s)}function n(){this.length=0,t(this,"length")}function r(e){if(nul
l==e)return e;for(var t=new n,r=0,o=e.length;o>r;r++)t[r]=a(e[r]);return t.lengt
h=o,t}function o(e,t){e.prototype[t]=function(){return r(i(this)[t].apply(i(this
),arguments))}}var i=e.unsafeUnwrap,a=e.wrap,s={enumerable:!1};n.prototype={item
:function(e){return this[e]}},t(n.prototype,"item"),e.wrappers.NodeList=n,e.addW
rapNodeListMethod=o,e.wrapNodeList=r}(window.ShadowDOMPolyfill),function(e){"use
strict";e.wrapHTMLCollection=e.wrapNodeList,e.wrappers.HTMLCollection=e.wrapper
s.NodeList}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){O(e
instanceof S)}function n(e){var t=new M;return t[0]=e,t.length=1,t}function r(e
,t,n){N(t,"childList",{removedNodes:n,previousSibling:e.previousSibling,nextSibl
ing:e.nextSibling})}function o(e,t){N(e,"childList",{removedNodes:t})}function i
(e,t,r,o){if(e instanceof DocumentFragment){var i=s(e);B=!0;for(var a=i.length-1
;a>=0;a--)e.removeChild(i[a]),i[a].parentNode_=t;B=!1;for(var a=0;a<i.length;a++
)i[a].previousSibling_=i[a-1]||r,i[a].nextSibling_=i[a+1]||o;return r&&(r.nextSi
bling_=i[0]),o&&(o.previousSibling_=i[i.length-1]),i}var i=n(e),c=e.parentNode;r
eturn c&&c.removeChild(e),e.parentNode_=t,e.previousSibling_=r,e.nextSibling_=o,
r&&(r.nextSibling_=e),o&&(o.previousSibling_=e),i}function a(e){if(e instanceof
DocumentFragment)return s(e);var t=n(e),o=e.parentNode;return o&&r(e,o,t),t}func
tion s(e){for(var t=new M,n=0,r=e.firstChild;r;r=r.nextSibling)t[n++]=r;return t
.length=n,o(e,t),t}function c(e){return e}function l(e,t){R(e,t),e.nodeIsInserte
d_()}function u(e,t){for(var n=C(t),r=0;r<e.length;r++)l(e[r],n)}function d(e){R
(e,new _(e,null))}function p(e){for(var t=0;t<e.length;t++)d(e[t])}function f(e,
t){var n=e.nodeType===S.DOCUMENT_NODE?e:e.ownerDocument;n!==t.ownerDocument&&n.a
doptNode(t)}function h(t,n){if(n.length){var r=t.ownerDocument;if(r!==n[0].owner
Document)for(var o=0;o<n.length;o++)e.adoptNodeNoRemove(n[o],r)}}function m(e,t)
{h(e,t);var n=t.length;if(1===n)return I(t[0]);for(var r=I(e.ownerDocument.creat
eDocumentFragment()),o=0;n>o;o++)r.appendChild(I(t[o]));return r}function w(e){i
f(void 0!==e.firstChild_)for(var t=e.firstChild_;t;){var n=t;t=t.nextSibling_,n.
parentNode_=n.previousSibling_=n.nextSibling_=void 0}e.firstChild_=e.lastChild_=
void 0}function v(e){if(e.invalidateShadowRenderer()){for(var t=e.firstChild;t;)
{O(t.parentNode===e);var n=t.nextSibling,r=I(t),o=r.parentNode;o&&Y.call(o,r),t.
previousSibling_=t.nextSibling_=t.parentNode_=null,t=n}e.firstChild_=e.lastChild
_=null}else for(var n,i=I(e),a=i.firstChild;a;)n=a.nextSibling,Y.call(i,a),a=n}f
unction g(e){var t=e.parentNode;return t&&t.invalidateShadowRenderer()}function
b(e){for(var t,n=0;n<e.length;n++)t=e[n],t.parentNode.removeChild(t)}function y(
e,t,n){var r;if(r=k(n?U.call(n,P(e),!1):q.call(P(e),!1)),t){for(var o=e.firstChi
ld;o;o=o.nextSibling)r.appendChild(y(o,!0,n));if(e instanceof F.HTMLTemplateElem
ent)for(var i=r.content,o=e.content.firstChild;o;o=o.nextSibling)i.appendChild(y
(o,!0,n))}return r}function E(e,t){if(!t||C(e)!==C(t))return!1;for(var n=t;n;n=n
.parentNode)if(n===e)return!0;return!1}function S(e){O(e instanceof V),T.call(th
is,e),this.parentNode_=void 0,this.firstChild_=void 0,this.lastChild_=void 0,thi
s.nextSibling_=void 0,this.previousSibling_=void 0,this.treeScope_=void 0}var T=
e.wrappers.EventTarget,M=e.wrappers.NodeList,_=e.TreeScope,O=e.assert,L=e.define
WrapGetter,N=e.enqueueMutation,C=e.getTreeScope,D=e.isWrapper,j=e.mixin,H=e.regi
sterTransientObservers,x=e.registerWrapper,R=e.setTreeScope,P=e.unsafeUnwrap,I=e
.unwrap,A=e.unwrapIfNeeded,k=e.wrap,W=e.wrapIfNeeded,F=e.wrappers,B=!1,U=documen
t.importNode,q=window.Node.prototype.cloneNode,V=window.Node,G=window.DocumentFr
agment,z=(V.prototype.appendChild,V.prototype.compareDocumentPosition),K=V.proto
type.insertBefore,Y=V.prototype.removeChild,X=V.prototype.replaceChild,$=/Triden
t|Edge/.test(navigator.userAgent),J=$?function(e,t){try{Y.call(e,t)}catch(n){if(
!(e instanceof G))throw n}}:function(e,t){Y.call(e,t)};S.prototype=Object.create
(T.prototype),j(S.prototype,{appendChild:function(e){return this.insertBefore(e,
null)},insertBefore:function(e,n){t(e);var r;n?D(n)?r=I(n):(r=n,n=k(r)):(n=null,
r=null),n&&O(n.parentNode===this);var o,s=n?n.previousSibling:this.lastChild,c=!
this.invalidateShadowRenderer()&&!g(e);if(o=c?a(e):i(e,this,s,n),c)f(this,e),w(t
his),K.call(P(this),I(e),r);else{s||(this.firstChild_=o[0]),n||(this.lastChild_=
o[o.length-1],void 0===this.firstChild_&&(this.firstChild_=this.firstChild));var
l=r?r.parentNode:P(this);l?K.call(l,m(this,o),r):h(this,o)}return N(this,"child
List",{addedNodes:o,nextSibling:n,previousSibling:s}),u(o,this),e},removeChild:f
unction(e){if(t(e),e.parentNode!==this){for(var r=!1,o=(this.childNodes,this.fir
stChild);o;o=o.nextSibling)if(o===e){r=!0;break}if(!r)throw new Error("NotFoundE
rror")}var i=I(e),a=e.nextSibling,s=e.previousSibling;if(this.invalidateShadowRe
nderer()){var c=this.firstChild,l=this.lastChild,u=i.parentNode;u&&J(u,i),c===e&
&(this.firstChild_=a),l===e&&(this.lastChild_=s),s&&(s.nextSibling_=a),a&&(a.pre
viousSibling_=s),e.previousSibling_=e.nextSibling_=e.parentNode_=void 0}else w(t
his),J(P(this),i);return B||N(this,"childList",{removedNodes:n(e),nextSibling:a,
previousSibling:s}),H(this,e),e},replaceChild:function(e,r){t(e);var o;if(D(r)?o
=I(r):(o=r,r=k(o)),r.parentNode!==this)throw new Error("NotFoundError");var s,c=
r.nextSibling,l=r.previousSibling,p=!this.invalidateShadowRenderer()&&!g(e);retu
rn p?s=a(e):(c===e&&(c=e.nextSibling),s=i(e,this,l,c)),p?(f(this,e),w(this),X.ca
ll(P(this),I(e),o)):(this.firstChild===r&&(this.firstChild_=s[0]),this.lastChild
===r&&(this.lastChild_=s[s.length-1]),r.previousSibling_=r.nextSibling_=r.parent
Node_=void 0,o.parentNode&&X.call(o.parentNode,m(this,s),o)),N(this,"childList",
{addedNodes:s,removedNodes:n(r),nextSibling:c,previousSibling:l}),d(r),u(s,this)
,r},nodeIsInserted_:function(){for(var e=this.firstChild;e;e=e.nextSibling)e.nod
eIsInserted_()},hasChildNodes:function(){return null!==this.firstChild},get pare
ntNode(){return void 0!==this.parentNode_?this.parentNode_:k(P(this).parentNode)
},get firstChild(){return void 0!==this.firstChild_?this.firstChild_:k(P(this).f
irstChild)},get lastChild(){return void 0!==this.lastChild_?this.lastChild_:k(P(
this).lastChild)},get nextSibling(){return void 0!==this.nextSibling_?this.nextS
ibling_:k(P(this).nextSibling)},get previousSibling(){return void 0!==this.previ
ousSibling_?this.previousSibling_:k(P(this).previousSibling)},get parentElement(
){for(var e=this.parentNode;e&&e.nodeType!==S.ELEMENT_NODE;)e=e.parentNode;retur
n e},get textContent(){for(var e="",t=this.firstChild;t;t=t.nextSibling)t.nodeTy
pe!=S.COMMENT_NODE&&(e+=t.textContent);return e},set textContent(e){null==e&&(e=
"");var t=c(this.childNodes);if(this.invalidateShadowRenderer()){if(v(this),""!=
=e){var n=P(this).ownerDocument.createTextNode(e);this.appendChild(n)}}else w(th
is),P(this).textContent=e;var r=c(this.childNodes);N(this,"childList",{addedNode
s:r,removedNodes:t}),p(t),u(r,this)},get childNodes(){for(var e=new M,t=0,n=this
.firstChild;n;n=n.nextSibling)e[t++]=n;return e.length=t,e},cloneNode:function(e
){return y(this,e)},contains:function(e){return E(this,W(e))},compareDocumentPos
ition:function(e){return z.call(P(this),A(e))},normalize:function(){for(var e,t,
n=c(this.childNodes),r=[],o="",i=0;i<n.length;i++)t=n[i],t.nodeType===S.TEXT_NOD
E?e||t.data.length?e?(o+=t.data,r.push(t)):e=t:this.removeNode(t):(e&&r.length&&
(e.data+=o,b(r)),r=[],o="",e=null,t.childNodes.length&&t.normalize());e&&r.lengt
h&&(e.data+=o,b(r))}}),L(S,"ownerDocument"),x(V,S,document.createDocumentFragmen
t()),delete S.prototype.querySelector,delete S.prototype.querySelectorAll,S.prot
otype=j(Object.create(T.prototype),S.prototype),e.cloneNode=y,e.nodeWasAdded=l,e
.nodeWasRemoved=d,e.nodesWereAdded=u,e.nodesWereRemoved=p,e.originalInsertBefore
=K,e.originalRemoveChild=Y,e.snapshotNodeList=c,e.wrappers.Node=S}(window.Shadow
DOMPolyfill),function(e){"use strict";function t(t,n,r,o){for(var i=null,a=null,
s=0,c=t.length;c>s;s++)i=g(t[s]),!o&&(a=w(i).root)&&a instanceof e.wrappers.Shad
owRoot||(r[n++]=i);return n}function n(e){return String(e).replace(/\/deep\//g,"
")}function r(e,t){for(var n,o=e.firstElementChild;o;){if(o.matches(t))return o
;if(n=r(o,t))return n;o=o.nextElementSibling}return null}function o(e,t){return
e.matches(t)}function i(e,t,n){var r=e.localName;return r===t||r===n&&e.namespac
eURI===C}function a(){return!0}function s(e,t,n){return e.localName===n}function
c(e,t){return e.namespaceURI===t}function l(e,t,n){return e.namespaceURI===t&&e
.localName===n}function u(e,t,n,r,o,i){for(var a=e.firstElementChild;a;)r(a,o,i)
&&(n[t++]=a),t=u(a,t,n,r,o,i),a=a.nextElementSibling;return t}function d(n,r,o,i
,a){var s,c=v(this),l=w(this).root;if(l instanceof e.wrappers.ShadowRoot)return
u(this,r,o,n,i,null);if(c instanceof L)s=S.call(c,i);else{if(!(c instanceof N))r
eturn u(this,r,o,n,i,null);s=E.call(c,i)}return t(s,r,o,a)}function p(n,r,o,i,a)
{var s,c=v(this),l=w(this).root;if(l instanceof e.wrappers.ShadowRoot)return u(t
his,r,o,n,i,a);if(c instanceof L)s=M.call(c,i,a);else{if(!(c instanceof N))retur
n u(this,r,o,n,i,a);s=T.call(c,i,a)}return t(s,r,o,!1)}function f(n,r,o,i,a){var
s,c=v(this),l=w(this).root;if(l instanceof e.wrappers.ShadowRoot)return u(this,
r,o,n,i,a);if(c instanceof L)s=O.call(c,i,a);else{if(!(c instanceof N))return u(
this,r,o,n,i,a);s=_.call(c,i,a)}return t(s,r,o,!1)}var h=e.wrappers.HTMLCollecti
on,m=e.wrappers.NodeList,w=e.getTreeScope,v=e.unsafeUnwrap,g=e.wrap,b=document.q
uerySelector,y=document.documentElement.querySelector,E=document.querySelectorAl
l,S=document.documentElement.querySelectorAll,T=document.getElementsByTagName,M=
document.documentElement.getElementsByTagName,_=document.getElementsByTagNameNS,
O=document.documentElement.getElementsByTagNameNS,L=window.Element,N=window.HTML
Document||window.Document,C="http://www.w3.org/1999/xhtml",D={querySelector:func
tion(t){var o=n(t),i=o!==t;t=o;var a,s=v(this),c=w(this).root;if(c instanceof e.
wrappers.ShadowRoot)return r(this,t);if(s instanceof L)a=g(y.call(s,t));else{if(
!(s instanceof N))return r(this,t);a=g(b.call(s,t))}return a&&!i&&(c=w(a).root)&
&c instanceof e.wrappers.ShadowRoot?r(this,t):a},querySelectorAll:function(e){va
r t=n(e),r=t!==e;e=t;var i=new m;return i.length=d.call(this,o,0,i,e,r),i}},j={g
etElementsByTagName:function(e){var t=new h,n="*"===e?a:i;return t.length=p.call
(this,n,0,t,e,e.toLowerCase()),t},getElementsByClassName:function(e){return this
.querySelectorAll("."+e)},getElementsByTagNameNS:function(e,t){var n=new h,r=nul
l; |
| 12 return r="*"===e?"*"===t?a:s:"*"===t?c:l,n.length=f.call(this,r,0,n,e||null,t),n
}};e.GetElementsByInterface=j,e.SelectorsInterface=D}(window.ShadowDOMPolyfill),
function(e){"use strict";function t(e){for(;e&&e.nodeType!==Node.ELEMENT_NODE;)e
=e.nextSibling;return e}function n(e){for(;e&&e.nodeType!==Node.ELEMENT_NODE;)e=
e.previousSibling;return e}var r=e.wrappers.NodeList,o={get firstElementChild(){
return t(this.firstChild)},get lastElementChild(){return n(this.lastChild)},get
childElementCount(){for(var e=0,t=this.firstElementChild;t;t=t.nextElementSiblin
g)e++;return e},get children(){for(var e=new r,t=0,n=this.firstElementChild;n;n=
n.nextElementSibling)e[t++]=n;return e.length=t,e},remove:function(){var e=this.
parentNode;e&&e.removeChild(this)}},i={get nextElementSibling(){return t(this.ne
xtSibling)},get previousElementSibling(){return n(this.previousSibling)}};e.Chil
dNodeInterface=i,e.ParentNodeInterface=o}(window.ShadowDOMPolyfill),function(e){
"use strict";function t(e){r.call(this,e)}var n=e.ChildNodeInterface,r=e.wrapper
s.Node,o=e.enqueueMutation,i=e.mixin,a=e.registerWrapper,s=e.unsafeUnwrap,c=wind
ow.CharacterData;t.prototype=Object.create(r.prototype),i(t.prototype,{get textC
ontent(){return this.data},set textContent(e){this.data=e},get data(){return s(t
his).data},set data(e){var t=s(this).data;o(this,"characterData",{oldValue:t}),s
(this).data=e}}),i(t.prototype,n),a(c,t,document.createTextNode("")),e.wrappers.
CharacterData=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e
){return e>>>0}function n(e){r.call(this,e)}var r=e.wrappers.CharacterData,o=(e.
enqueueMutation,e.mixin),i=e.registerWrapper,a=window.Text;n.prototype=Object.cr
eate(r.prototype),o(n.prototype,{splitText:function(e){e=t(e);var n=this.data;if
(e>n.length)throw new Error("IndexSizeError");var r=n.slice(0,e),o=n.slice(e);th
is.data=r;var i=this.ownerDocument.createTextNode(o);return this.parentNode&&thi
s.parentNode.insertBefore(i,this.nextSibling),i}}),i(a,n,document.createTextNode
("")),e.wrappers.Text=n}(window.ShadowDOMPolyfill),function(e){"use strict";func
tion t(t){e.invalidateRendererBasedOnAttribute(t,"class")}function n(e,t){r(e,th
is),this.ownerElement_=t}var r=e.setWrapper,o=e.unsafeUnwrap;n.prototype={constr
uctor:n,get length(){return o(this).length},item:function(e){return o(this).item
(e)},contains:function(e){return o(this).contains(e)},add:function(){o(this).add
.apply(o(this),arguments),t(this.ownerElement_)},remove:function(){o(this).remov
e.apply(o(this),arguments),t(this.ownerElement_)},toggle:function(){var e=o(this
).toggle.apply(o(this),arguments);return t(this.ownerElement_),e},toString:funct
ion(){return o(this).toString()}},e.wrappers.DOMTokenList=n}(window.ShadowDOMPol
yfill),function(e){"use strict";function t(t,n){var r=t.parentNode;if(r&&r.shado
wRoot){var o=e.getRendererForHost(r);o.dependsOnAttribute(n)&&o.invalidate()}}fu
nction n(e,t,n){u(e,"attributes",{name:t,namespace:null,oldValue:n})}function r(
e){a.call(this,e)}var o=e.ChildNodeInterface,i=e.GetElementsByInterface,a=e.wrap
pers.Node,s=e.wrappers.DOMTokenList,c=e.ParentNodeInterface,l=e.SelectorsInterfa
ce,u=(e.addWrapNodeListMethod,e.enqueueMutation),d=e.mixin,p=(e.oneOf,e.register
Wrapper),f=e.unsafeUnwrap,h=e.wrappers,m=window.Element,w=["matches","mozMatches
Selector","msMatchesSelector","webkitMatchesSelector"].filter(function(e){return
m.prototype[e]}),v=w[0],g=m.prototype[v],b=new WeakMap;r.prototype=Object.creat
e(a.prototype),d(r.prototype,{createShadowRoot:function(){var t=new h.ShadowRoot
(this);f(this).polymerShadowRoot_=t;var n=e.getRendererForHost(this);return n.in
validate(),t},get shadowRoot(){return f(this).polymerShadowRoot_||null},setAttri
bute:function(e,r){var o=f(this).getAttribute(e);f(this).setAttribute(e,r),n(thi
s,e,o),t(this,e)},removeAttribute:function(e){var r=f(this).getAttribute(e);f(th
is).removeAttribute(e),n(this,e,r),t(this,e)},matches:function(e){return g.call(
f(this),e)},get classList(){var e=b.get(this);return e||b.set(this,e=new s(f(thi
s).classList,this)),e},get className(){return f(this).className},set className(e
){this.setAttribute("class",e)},get id(){return f(this).id},set id(e){this.setAt
tribute("id",e)}}),w.forEach(function(e){"matches"!==e&&(r.prototype[e]=function
(e){return this.matches(e)})}),m.prototype.webkitCreateShadowRoot&&(r.prototype.
webkitCreateShadowRoot=r.prototype.createShadowRoot),d(r.prototype,o),d(r.protot
ype,i),d(r.prototype,c),d(r.prototype,l),p(m,r,document.createElementNS(null,"x"
)),e.invalidateRendererBasedOnAttribute=t,e.matchesNames=w,e.wrappers.Element=r}
(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){switch(e){case
"&":return"&";case"<":return"<";case">":return">";case'"':return""
;";case"Â ":return" "}}function n(e){return e.replace(O,t)}function r(e){ret
urn e.replace(L,t)}function o(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;retu
rn t}function i(e,t){switch(e.nodeType){case Node.ELEMENT_NODE:for(var o,i=e.tag
Name.toLowerCase(),s="<"+i,c=e.attributes,l=0;o=c[l];l++)s+=" "+o.name+'="'+n(o.
value)+'"';return s+=">",N[i]?s:s+a(e)+"</"+i+">";case Node.TEXT_NODE:var u=e.da
ta;return t&&C[t.localName]?u:r(u);case Node.COMMENT_NODE:return"<!--"+e.data+"-
->";default:throw console.error(e),new Error("not implemented")}}function a(e){e
instanceof _.HTMLTemplateElement&&(e=e.content);for(var t="",n=e.firstChild;n;n
=n.nextSibling)t+=i(n,e);return t}function s(e,t,n){var r=n||"div";e.textContent
="";var o=T(e.ownerDocument.createElement(r));o.innerHTML=t;for(var i;i=o.firstC
hild;)e.appendChild(M(i))}function c(e){h.call(this,e)}function l(e,t){var n=T(e
.cloneNode(!1));n.innerHTML=t;for(var r,o=T(document.createDocumentFragment());r
=n.firstChild;)o.appendChild(r);return M(o)}function u(t){return function(){retu
rn e.renderAllPending(),S(this)[t]}}function d(e){m(c,e,u(e))}function p(t){Obje
ct.defineProperty(c.prototype,t,{get:u(t),set:function(n){e.renderAllPending(),S
(this)[t]=n},configurable:!0,enumerable:!0})}function f(t){Object.defineProperty
(c.prototype,t,{value:function(){return e.renderAllPending(),S(this)[t].apply(S(
this),arguments)},configurable:!0,enumerable:!0})}var h=e.wrappers.Element,m=e.d
efineGetter,w=e.enqueueMutation,v=e.mixin,g=e.nodesWereAdded,b=e.nodesWereRemove
d,y=e.registerWrapper,E=e.snapshotNodeList,S=e.unsafeUnwrap,T=e.unwrap,M=e.wrap,
_=e.wrappers,O=/[&\u00A0"]/g,L=/[&\u00A0<>]/g,N=o(["area","base","br","col","com
mand","embed","hr","img","input","keygen","link","meta","param","source","track"
,"wbr"]),C=o(["style","script","xmp","iframe","noembed","noframes","plaintext","
noscript"]),D=/MSIE/.test(navigator.userAgent),j=window.HTMLElement,H=window.HTM
LTemplateElement;c.prototype=Object.create(h.prototype),v(c.prototype,{get inner
HTML(){return a(this)},set innerHTML(e){if(D&&C[this.localName])return void(this
.textContent=e);var t=E(this.childNodes);this.invalidateShadowRenderer()?this in
stanceof _.HTMLTemplateElement?s(this.content,e):s(this,e,this.tagName):!H&&this
instanceof _.HTMLTemplateElement?s(this.content,e):S(this).innerHTML=e;var n=E(
this.childNodes);w(this,"childList",{addedNodes:n,removedNodes:t}),b(t),g(n,this
)},get outerHTML(){return i(this,this.parentNode)},set outerHTML(e){var t=this.p
arentNode;if(t){t.invalidateShadowRenderer();var n=l(t,e);t.replaceChild(n,this)
}},insertAdjacentHTML:function(e,t){var n,r;switch(String(e).toLowerCase()){case
"beforebegin":n=this.parentNode,r=this;break;case"afterend":n=this.parentNode,r=
this.nextSibling;break;case"afterbegin":n=this,r=this.firstChild;break;case"befo
reend":n=this,r=null;break;default:return}var o=l(n,t);n.insertBefore(o,r)},get
hidden(){return this.hasAttribute("hidden")},set hidden(e){e?this.setAttribute("
hidden",""):this.removeAttribute("hidden")}}),["clientHeight","clientLeft","clie
ntTop","clientWidth","offsetHeight","offsetLeft","offsetTop","offsetWidth","scro
llHeight","scrollWidth"].forEach(d),["scrollLeft","scrollTop"].forEach(p),["getB
oundingClientRect","getClientRects","scrollIntoView"].forEach(f),y(j,c,document.
createElement("b")),e.wrappers.HTMLElement=c,e.getInnerHTML=a,e.setInnerHTML=s}(
window.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}
var n=e.wrappers.HTMLElement,r=e.mixin,o=e.registerWrapper,i=e.unsafeUnwrap,a=e.
wrap,s=window.HTMLCanvasElement;t.prototype=Object.create(n.prototype),r(t.proto
type,{getContext:function(){var e=i(this).getContext.apply(i(this),arguments);re
turn e&&a(e)}}),o(s,t,document.createElement("canvas")),e.wrappers.HTMLCanvasEle
ment=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(
this,e)}var n=e.wrappers.HTMLElement,r=e.mixin,o=e.registerWrapper,i=window.HTML
ContentElement;t.prototype=Object.create(n.prototype),r(t.prototype,{constructor
:t,get select(){return this.getAttribute("select")},set select(e){this.setAttrib
ute("select",e)},setAttribute:function(e,t){n.prototype.setAttribute.call(this,e
,t),"select"===String(e).toLowerCase()&&this.invalidateShadowRenderer(!0)}}),i&&
o(i,t),e.wrappers.HTMLContentElement=t}(window.ShadowDOMPolyfill),function(e){"u
se strict";function t(e){n.call(this,e)}var n=e.wrappers.HTMLElement,r=e.mixin,o
=e.registerWrapper,i=e.wrapHTMLCollection,a=e.unwrap,s=window.HTMLFormElement;t.
prototype=Object.create(n.prototype),r(t.prototype,{get elements(){return i(a(th
is).elements)}}),o(s,t,document.createElement("form")),e.wrappers.HTMLFormElemen
t=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){r.call(thi
s,e)}function n(e,t){if(!(this instanceof n))throw new TypeError("DOM object con
structor cannot be called as a function.");var o=i(document.createElement("img")
);r.call(this,o),a(o,this),void 0!==e&&(o.width=e),void 0!==t&&(o.height=t)}var
r=e.wrappers.HTMLElement,o=e.registerWrapper,i=e.unwrap,a=e.rewrap,s=window.HTML
ImageElement;t.prototype=Object.create(r.prototype),o(s,t,document.createElement
("img")),n.prototype=t.prototype,e.wrappers.HTMLImageElement=t,e.wrappers.Image=
n}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,
e)}var n=e.wrappers.HTMLElement,r=(e.mixin,e.wrappers.NodeList,e.registerWrapper
),o=window.HTMLShadowElement;t.prototype=Object.create(n.prototype),t.prototype.
constructor=t,o&&r(o,t),e.wrappers.HTMLShadowElement=t}(window.ShadowDOMPolyfill
),function(e){"use strict";function t(e){if(!e.defaultView)return e;var t=d.get(
e);if(!t){for(t=e.implementation.createHTMLDocument("");t.lastChild;)t.removeChi
ld(t.lastChild);d.set(e,t)}return t}function n(e){for(var n,r=t(e.ownerDocument)
,o=c(r.createDocumentFragment());n=e.firstChild;)o.appendChild(n);return o}funct
ion r(e){if(o.call(this,e),!p){var t=n(e);u.set(this,l(t))}}var o=e.wrappers.HTM
LElement,i=e.mixin,a=e.registerWrapper,s=e.unsafeUnwrap,c=e.unwrap,l=e.wrap,u=ne
w WeakMap,d=new WeakMap,p=window.HTMLTemplateElement;r.prototype=Object.create(o
.prototype),i(r.prototype,{constructor:r,get content(){return p?l(s(this).conten
t):u.get(this)}}),p&&a(p,r),e.wrappers.HTMLTemplateElement=r}(window.ShadowDOMPo
lyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=e.wrappers.H
TMLElement,r=e.registerWrapper,o=window.HTMLMediaElement;o&&(t.prototype=Object.
create(n.prototype),r(o,t,document.createElement("audio")),e.wrappers.HTMLMediaE
lement=t)}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){r.ca
ll(this,e)}function n(e){if(!(this instanceof n))throw new TypeError("DOM object
constructor cannot be called as a function.");var t=i(document.createElement("a
udio"));r.call(this,t),a(t,this),t.setAttribute("preload","auto"),void 0!==e&&t.
setAttribute("src",e)}var r=e.wrappers.HTMLMediaElement,o=e.registerWrapper,i=e.
unwrap,a=e.rewrap,s=window.HTMLAudioElement;s&&(t.prototype=Object.create(r.prot
otype),o(s,t,document.createElement("audio")),n.prototype=t.prototype,e.wrappers
.HTMLAudioElement=t,e.wrappers.Audio=n)}(window.ShadowDOMPolyfill),function(e){"
use strict";function t(e){return e.replace(/\s+/g," ").trim()}function n(e){o.ca
ll(this,e)}function r(e,t,n,i){if(!(this instanceof r))throw new TypeError("DOM
object constructor cannot be called as a function.");var a=c(document.createElem
ent("option"));o.call(this,a),s(a,this),void 0!==e&&(a.text=e),void 0!==t&&a.set
Attribute("value",t),n===!0&&a.setAttribute("selected",""),a.selected=i===!0}var
o=e.wrappers.HTMLElement,i=e.mixin,a=e.registerWrapper,s=e.rewrap,c=e.unwrap,l=
e.wrap,u=window.HTMLOptionElement;n.prototype=Object.create(o.prototype),i(n.pro
totype,{get text(){return t(this.textContent)},set text(e){this.textContent=t(St
ring(e))},get form(){return l(c(this).form)}}),a(u,n,document.createElement("opt
ion")),r.prototype=n.prototype,e.wrappers.HTMLOptionElement=n,e.wrappers.Option=
r}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,
e)}var n=e.wrappers.HTMLElement,r=e.mixin,o=e.registerWrapper,i=e.unwrap,a=e.wra
p,s=window.HTMLSelectElement;t.prototype=Object.create(n.prototype),r(t.prototyp
e,{add:function(e,t){"object"==typeof t&&(t=i(t)),i(this).add(i(e),t)},remove:fu
nction(e){return void 0===e?void n.prototype.remove.call(this):("object"==typeof
e&&(e=i(e)),void i(this).remove(e))},get form(){return a(i(this).form)}}),o(s,t
,document.createElement("select")),e.wrappers.HTMLSelectElement=t}(window.Shadow
DOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=e.wrapp
ers.HTMLElement,r=e.mixin,o=e.registerWrapper,i=e.unwrap,a=e.wrap,s=e.wrapHTMLCo
llection,c=window.HTMLTableElement;t.prototype=Object.create(n.prototype),r(t.pr
ototype,{get caption(){return a(i(this).caption)},createCaption:function(){retur
n a(i(this).createCaption())},get tHead(){return a(i(this).tHead)},createTHead:f
unction(){return a(i(this).createTHead())},createTFoot:function(){return a(i(thi
s).createTFoot())},get tFoot(){return a(i(this).tFoot)},get tBodies(){return s(i
(this).tBodies)},createTBody:function(){return a(i(this).createTBody())},get row
s(){return s(i(this).rows)},insertRow:function(e){return a(i(this).insertRow(e))
}}),o(c,t,document.createElement("table")),e.wrappers.HTMLTableElement=t}(window
.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=
e.wrappers.HTMLElement,r=e.mixin,o=e.registerWrapper,i=e.wrapHTMLCollection,a=e.
unwrap,s=e.wrap,c=window.HTMLTableSectionElement;t.prototype=Object.create(n.pro
totype),r(t.prototype,{constructor:t,get rows(){return i(a(this).rows)},insertRo
w:function(e){return s(a(this).insertRow(e))}}),o(c,t,document.createElement("th
ead")),e.wrappers.HTMLTableSectionElement=t}(window.ShadowDOMPolyfill),function(
e){"use strict";function t(e){n.call(this,e)}var n=e.wrappers.HTMLElement,r=e.mi
xin,o=e.registerWrapper,i=e.wrapHTMLCollection,a=e.unwrap,s=e.wrap,c=window.HTML
TableRowElement;t.prototype=Object.create(n.prototype),r(t.prototype,{get cells(
){return i(a(this).cells)},insertCell:function(e){return s(a(this).insertCell(e)
)}}),o(c,t,document.createElement("tr")),e.wrappers.HTMLTableRowElement=t}(windo
w.ShadowDOMPolyfill),function(e){"use strict";function t(e){switch(e.localName){
case"content":return new n(e);case"shadow":return new o(e);case"template":return
new i(e)}r.call(this,e)}var n=e.wrappers.HTMLContentElement,r=e.wrappers.HTMLEl
ement,o=e.wrappers.HTMLShadowElement,i=e.wrappers.HTMLTemplateElement,a=(e.mixin
,e.registerWrapper),s=window.HTMLUnknownElement;t.prototype=Object.create(r.prot
otype),a(s,t),e.wrappers.HTMLUnknownElement=t}(window.ShadowDOMPolyfill),functio
n(e){"use strict";var t=e.wrappers.Element,n=e.wrappers.HTMLElement,r=e.register
Object,o="http://www.w3.org/2000/svg",i=document.createElementNS(o,"title"),a=r(
i),s=Object.getPrototypeOf(a.prototype).constructor;if(!("classList"in i)){var c
=Object.getOwnPropertyDescriptor(t.prototype,"classList");Object.defineProperty(
n.prototype,"classList",c),delete t.prototype.classList}e.wrappers.SVGElement=s}
(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){p.call(this,e)
}var n=e.mixin,r=e.registerWrapper,o=e.unwrap,i=e.wrap,a=window.SVGUseElement,s=
"http://www.w3.org/2000/svg",c=i(document.createElementNS(s,"g")),l=document.cre
ateElementNS(s,"use"),u=c.constructor,d=Object.getPrototypeOf(u.prototype),p=d.c
onstructor;t.prototype=Object.create(d),"instanceRoot"in l&&n(t.prototype,{get i
nstanceRoot(){return i(o(this).instanceRoot)},get animatedInstanceRoot(){return
i(o(this).animatedInstanceRoot)}}),r(a,t,l),e.wrappers.SVGUseElement=t}(window.S
hadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=e.
wrappers.EventTarget,r=e.mixin,o=e.registerWrapper,i=e.unsafeUnwrap,a=e.wrap,s=w
indow.SVGElementInstance;s&&(t.prototype=Object.create(n.prototype),r(t.prototyp
e,{get correspondingElement(){return a(i(this).correspondingElement)},get corres
pondingUseElement(){return a(i(this).correspondingUseElement)},get parentNode(){
return a(i(this).parentNode)},get childNodes(){throw new Error("Not implemented"
)},get firstChild(){return a(i(this).firstChild)},get lastChild(){return a(i(thi
s).lastChild)},get previousSibling(){return a(i(this).previousSibling)},get next
Sibling(){return a(i(this).nextSibling)}}),o(s,t),e.wrappers.SVGElementInstance=
t)}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){o(e,this)}v
ar n=e.mixin,r=e.registerWrapper,o=e.setWrapper,i=e.unsafeUnwrap,a=e.unwrap,s=e.
unwrapIfNeeded,c=e.wrap,l=window.CanvasRenderingContext2D;n(t.prototype,{get can
vas(){return c(i(this).canvas)},drawImage:function(){arguments[0]=s(arguments[0]
),i(this).drawImage.apply(i(this),arguments)},createPattern:function(){return ar
guments[0]=a(arguments[0]),i(this).createPattern.apply(i(this),arguments)}}),r(l
,t,document.createElement("canvas").getContext("2d")),e.wrappers.CanvasRendering
Context2D=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){o(
e,this)}var n=e.mixin,r=e.registerWrapper,o=e.setWrapper,i=e.unsafeUnwrap,a=e.un
wrapIfNeeded,s=e.wrap,c=window.WebGLRenderingContext;if(c){n(t.prototype,{get ca
nvas(){return s(i(this).canvas)},texImage2D:function(){arguments[5]=a(arguments[
5]),i(this).texImage2D.apply(i(this),arguments)},texSubImage2D:function(){argume
nts[6]=a(arguments[6]),i(this).texSubImage2D.apply(i(this),arguments)}});var l=/
WebKit/.test(navigator.userAgent)?{drawingBufferHeight:null,drawingBufferWidth:n
ull}:{};r(c,t,l),e.wrappers.WebGLRenderingContext=t}}(window.ShadowDOMPolyfill),
function(e){"use strict";function t(e){r(e,this)}var n=e.registerWrapper,r=e.set
Wrapper,o=e.unsafeUnwrap,i=e.unwrap,a=e.unwrapIfNeeded,s=e.wrap,c=window.Range;t
.prototype={get startContainer(){return s(o(this).startContainer)},get endContai
ner(){return s(o(this).endContainer)},get commonAncestorContainer(){return s(o(t
his).commonAncestorContainer)},setStart:function(e,t){o(this).setStart(a(e),t)},
setEnd:function(e,t){o(this).setEnd(a(e),t)},setStartBefore:function(e){o(this).
setStartBefore(a(e))},setStartAfter:function(e){o(this).setStartAfter(a(e))},set
EndBefore:function(e){o(this).setEndBefore(a(e))},setEndAfter:function(e){o(this
).setEndAfter(a(e))},selectNode:function(e){o(this).selectNode(a(e))},selectNode
Contents:function(e){o(this).selectNodeContents(a(e))},compareBoundaryPoints:fun
ction(e,t){return o(this).compareBoundaryPoints(e,i(t))},extractContents:functio
n(){return s(o(this).extractContents())},cloneContents:function(){return s(o(thi
s).cloneContents())},insertNode:function(e){o(this).insertNode(a(e))},surroundCo
ntents:function(e){o(this).surroundContents(a(e))},cloneRange:function(){return
s(o(this).cloneRange())},isPointInRange:function(e,t){return o(this).isPointInRa
nge(a(e),t)},comparePoint:function(e,t){return o(this).comparePoint(a(e),t)},int
ersectsNode:function(e){return o(this).intersectsNode(a(e))},toString:function()
{return o(this).toString()}},c.prototype.createContextualFragment&&(t.prototype.
createContextualFragment=function(e){return s(o(this).createContextualFragment(e
))}),n(window.Range,t,document.createRange()),e.wrappers.Range=t}(window.ShadowD
OMPolyfill),function(e){"use strict";var t=e.GetElementsByInterface,n=e.ParentNo
deInterface,r=e.SelectorsInterface,o=e.mixin,i=e.registerObject,a=i(document.cre
ateDocumentFragment());o(a.prototype,n),o(a.prototype,r),o(a.prototype,t);var s=
i(document.createComment(""));e.wrappers.Comment=s,e.wrappers.DocumentFragment=a
}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){var t=d(u(e).
ownerDocument.createDocumentFragment());n.call(this,t),c(t,this);var o=e.shadowR
oot;f.set(this,o),this.treeScope_=new r(this,a(o||e)),p.set(this,e)}var n=e.wrap
pers.DocumentFragment,r=e.TreeScope,o=e.elementFromPoint,i=e.getInnerHTML,a=e.ge
tTreeScope,s=e.mixin,c=e.rewrap,l=e.setInnerHTML,u=e.unsafeUnwrap,d=e.unwrap,p=n
ew WeakMap,f=new WeakMap,h=/[ \t\n\r\f]/;t.prototype=Object.create(n.prototype),
s(t.prototype,{constructor:t,get innerHTML(){return i(this)},set innerHTML(e){l(
this,e),this.invalidateShadowRenderer()},get olderShadowRoot(){return f.get(this
)||null},get host(){return p.get(this)||null},invalidateShadowRenderer:function(
){return p.get(this).invalidateShadowRenderer()},elementFromPoint:function(e,t){
return o(this,this.ownerDocument,e,t)},getElementById:function(e){return h.test(
e)?null:this.querySelector('[id="'+e+'"]')}}),e.wrappers.ShadowRoot=t}(window.Sh
adowDOMPolyfill),function(e){"use strict";function t(e){e.previousSibling_=e.pre
viousSibling,e.nextSibling_=e.nextSibling,e.parentNode_=e.parentNode}function n(
n,o,i){var a=x(n),s=x(o),c=i?x(i):null;if(r(o),t(o),i)n.firstChild===i&&(n.first
Child_=i),i.previousSibling_=i.previousSibling;else{n.lastChild_=n.lastChild,n.l
astChild===n.firstChild&&(n.firstChild_=n.firstChild);var l=R(a.lastChild);l&&(l
.nextSibling_=l.nextSibling)}e.originalInsertBefore.call(a,s,c)}function r(n){va
r r=x(n),o=r.parentNode;if(o){var i=R(o);t(n),n.previousSibling&&(n.previousSibl
ing.nextSibling_=n),n.nextSibling&&(n.nextSibling.previousSibling_=n),i.lastChil
d===n&&(i.lastChild_=n),i.firstChild===n&&(i.firstChild_=n),e.originalRemoveChil
d.call(o,r)}}function o(e){I.set(e,[])}function i(e){var t=I.get(e);return t||I.
set(e,t=[]),t}function a(e){for(var t=[],n=0,r=e.firstChild;r;r=r.nextSibling)t[
n++]=r;return t}function s(){for(var e=0;e<F.length;e++){var t=F[e],n=t.parentRe
nderer;n&&n.dirty||t.render()}F=[]}function c(){M=null,s()}function l(e){var t=k
.get(e);return t||(t=new f(e),k.set(e,t)),t}function u(e){var t=D(e).root;return
t instanceof C?t:null}function d(e){return l(e.host)}function p(e){this.skip=!1
,this.node=e,this.childNodes=[]}function f(e){this.host=e,this.dirty=!1,this.inv
alidateAttributes(),this.associateNode(e)}function h(e){for(var t=[],n=e.firstCh
ild;n;n=n.nextSibling)E(n)?t.push.apply(t,i(n)):t.push(n);return t}function m(e)
{if(e instanceof L)return e;if(e instanceof O)return null;for(var t=e.firstChild
;t;t=t.nextSibling){var n=m(t);if(n)return n}return null}function w(e,t){i(t).pu
sh(e);var n=A.get(e);n?n.push(t):A.set(e,[t])}function v(e){return A.get(e)}func
tion g(e){A.set(e,void 0)}function b(e,t){var n=t.getAttribute("select");if(!n)r
eturn!0;if(n=n.trim(),!n)return!0;if(!(e instanceof _))return!1;if(!U.test(n))re
turn!1;try{return e.matches(n)}catch(r){return!1}}function y(e,t){var n=v(t);ret
urn n&&n[n.length-1]===e}function E(e){return e instanceof O||e instanceof L}fun
ction S(e){return e.shadowRoot}function T(e){for(var t=[],n=e.shadowRoot;n;n=n.o
lderShadowRoot)t.push(n);return t}var M,_=e.wrappers.Element,O=e.wrappers.HTMLCo
ntentElement,L=e.wrappers.HTMLShadowElement,N=e.wrappers.Node,C=e.wrappers.Shado
wRoot,D=(e.assert,e.getTreeScope),j=(e.mixin,e.oneOf),H=e.unsafeUnwrap,x=e.unwra
p,R=e.wrap,P=e.ArraySplice,I=new WeakMap,A=new WeakMap,k=new WeakMap,W=j(window,
["requestAnimationFrame","mozRequestAnimationFrame","webkitRequestAnimationFrame
","setTimeout"]),F=[],B=new P;B.equals=function(e,t){return x(e.node)===t},p.pro
totype={append:function(e){var t=new p(e);return this.childNodes.push(t),t},sync
:function(e){if(!this.skip){for(var t=this.node,o=this.childNodes,i=a(x(t)),s=e|
|new WeakMap,c=B.calculateSplices(o,i),l=0,u=0,d=0,p=0;p<c.length;p++){for(var f
=c[p];d<f.index;d++)u++,o[l++].sync(s);for(var h=f.removed.length,m=0;h>m;m++){v
ar w=R(i[u++]);s.get(w)||r(w)}for(var v=f.addedCount,g=i[u]&&R(i[u]),m=0;v>m;m++
){var b=o[l++],y=b.node;n(t,y,g),s.set(y,!0),b.sync(s)}d+=v}for(var p=d;p<o.leng
th;p++)o[p].sync(s)}}},f.prototype={render:function(e){if(this.dirty){this.inval
idateAttributes();var t=this.host;this.distribution(t);var n=e||new p(t);this.bu
ildRenderTree(n,t);var r=!e;r&&n.sync(),this.dirty=!1}},get parentRenderer(){ret
urn D(this.host).renderer},invalidate:function(){if(!this.dirty){this.dirty=!0;v
ar e=this.parentRenderer;if(e&&e.invalidate(),F.push(this),M)return;M=window[W](
c,0)}},distribution:function(e){this.resetAllSubtrees(e),this.distributionResolu
tion(e)},resetAll:function(e){E(e)?o(e):g(e),this.resetAllSubtrees(e)},resetAllS
ubtrees:function(e){for(var t=e.firstChild;t;t=t.nextSibling)this.resetAll(t);e.
shadowRoot&&this.resetAll(e.shadowRoot),e.olderShadowRoot&&this.resetAll(e.older
ShadowRoot)},distributionResolution:function(e){if(S(e)){for(var t=e,n=h(t),r=T(
t),o=0;o<r.length;o++)this.poolDistribution(r[o],n);for(var o=r.length-1;o>=0;o-
-){var i=r[o],a=m(i);if(a){var s=i.olderShadowRoot;s&&(n=h(s));for(var c=0;c<n.l
ength;c++)w(n[c],a)}this.distributionResolution(i)}}for(var l=e.firstChild;l;l=l
.nextSibling)this.distributionResolution(l)},poolDistribution:function(e,t){if(!
(e instanceof L))if(e instanceof O){var n=e;this.updateDependentAttributes(n.get
Attribute("select"));for(var r=!1,o=0;o<t.length;o++){var e=t[o];e&&b(e,n)&&(w(e
,n),t[o]=void 0,r=!0)}if(!r)for(var i=n.firstChild;i;i=i.nextSibling)w(i,n)}else
for(var i=e.firstChild;i;i=i.nextSibling)this.poolDistribution(i,t)},buildRende
rTree:function(e,t){for(var n=this.compose(t),r=0;r<n.length;r++){var o=n[r],i=e
.append(o);this.buildRenderTree(i,o)}if(S(t)){var a=l(t);a.dirty=!1}},compose:fu
nction(e){for(var t=[],n=e.shadowRoot||e,r=n.firstChild;r;r=r.nextSibling)if(E(r
)){this.associateNode(n);for(var o=i(r),a=0;a<o.length;a++){var s=o[a];y(r,s)&&t
.push(s)}}else t.push(r);return t},invalidateAttributes:function(){this.attribut
es=Object.create(null)},updateDependentAttributes:function(e){if(e){var t=this.a
ttributes;/\.\w+/.test(e)&&(t["class"]=!0),/#\w+/.test(e)&&(t.id=!0),e.replace(/
\[\s*([^\s=\|~\]]+)/g,function(e,n){t[n]=!0})}},dependsOnAttribute:function(e){r
eturn this.attributes[e]},associateNode:function(e){H(e).polymerShadowRenderer_=
this}};var U=/^(:not\()?[*.#[a-zA-Z_|]/;N.prototype.invalidateShadowRenderer=fun
ction(){var e=H(this).polymerShadowRenderer_;return e?(e.invalidate(),!0):!1},O.
prototype.getDistributedNodes=L.prototype.getDistributedNodes=function(){return
s(),i(this)},_.prototype.getDestinationInsertionPoints=function(){return s(),v(t
his)||[]},O.prototype.nodeIsInserted_=L.prototype.nodeIsInserted_=function(){thi
s.invalidateShadowRenderer();var e,t=u(this);t&&(e=d(t)),H(this).polymerShadowRe
nderer_=e,e&&e.invalidate()},e.getRendererForHost=l,e.getShadowTrees=T,e.renderA
llPending=s,e.getDestinationInsertionPoints=v,e.visual={insertBefore:n,remove:r}
}(window.ShadowDOMPolyfill),function(e){"use strict";function t(t){if(window[t])
{r(!e.wrappers[t]);var c=function(e){n.call(this,e)};c.prototype=Object.create(n
.prototype),o(c.prototype,{get form(){return s(a(this).form)}}),i(window[t],c,do
cument.createElement(t.slice(4,-7))),e.wrappers[t]=c}}var n=e.wrappers.HTMLEleme
nt,r=e.assert,o=e.mixin,i=e.registerWrapper,a=e.unwrap,s=e.wrap,c=["HTMLButtonEl
ement","HTMLFieldSetElement","HTMLInputElement","HTMLKeygenElement","HTMLLabelEl
ement","HTMLLegendElement","HTMLObjectElement","HTMLOutputElement","HTMLTextArea
Element"];c.forEach(t)}(window.ShadowDOMPolyfill),function(e){"use strict";funct
ion t(e){r(e,this)}{var n=e.registerWrapper,r=e.setWrapper,o=e.unsafeUnwrap,i=e.
unwrap,a=e.unwrapIfNeeded,s=e.wrap;window.Selection}t.prototype={get anchorNode(
){return s(o(this).anchorNode)},get focusNode(){return s(o(this).focusNode)},add
Range:function(e){o(this).addRange(i(e))},collapse:function(e,t){o(this).collaps
e(a(e),t)},containsNode:function(e,t){return o(this).containsNode(a(e),t)},exten
d:function(e,t){o(this).extend(a(e),t)},getRangeAt:function(e){return s(o(this).
getRangeAt(e))},removeRange:function(e){o(this).removeRange(i(e))},selectAllChil
dren:function(e){o(this).selectAllChildren(a(e))},toString:function(){return o(t
his).toString()}},n(window.Selection,t,window.getSelection()),e.wrappers.Selecti
on=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){u.call(th
is,e),this.treeScope_=new m(this,null)}function n(e){var n=document[e];t.prototy
pe[e]=function(){return N(n.apply(O(this),arguments))}}function r(e,t){j.call(O(
t),L(e)),o(e,t)}function o(e,t){e.shadowRoot&&t.adoptNode(e.shadowRoot),e instan
ceof h&&i(e,t);for(var n=e.firstChild;n;n=n.nextSibling)o(n,t)}function i(e,t){v
ar n=e.olderShadowRoot;n&&t.adoptNode(n)}function a(e){_(e,this)}function s(e,t)
{var n=document.implementation[t];e.prototype[t]=function(){return N(n.apply(O(t
his),arguments))}}function c(e,t){var n=document.implementation[t];e.prototype[t
]=function(){return n.apply(O(this),arguments)}}var l=e.GetElementsByInterface,u
=e.wrappers.Node,d=e.ParentNodeInterface,p=e.wrappers.Selection,f=e.SelectorsInt
erface,h=e.wrappers.ShadowRoot,m=e.TreeScope,w=e.cloneNode,v=e.defineWrapGetter,
g=e.elementFromPoint,b=e.forwardMethodsToWrapper,y=e.matchesNames,E=e.mixin,S=e.
registerWrapper,T=e.renderAllPending,M=e.rewrap,_=e.setWrapper,O=e.unsafeUnwrap,
L=e.unwrap,N=e.wrap,C=e.wrapEventTargetMethods,D=(e.wrapNodeList,new WeakMap);t.
prototype=Object.create(u.prototype),v(t,"documentElement"),v(t,"body"),v(t,"hea
d"),["createComment","createDocumentFragment","createElement","createElementNS",
"createEvent","createEventNS","createRange","createTextNode","getElementById"].f
orEach(n);var j=document.adoptNode,H=document.getSelection;if(E(t.prototype,{ado
ptNode:function(e){return e.parentNode&&e.parentNode.removeChild(e),r(e,this),e}
,elementFromPoint:function(e,t){return g(this,this,e,t)},importNode:function(e,t
){return w(e,t,O(this))},getSelection:function(){return T(),new p(H.call(L(this)
))},getElementsByName:function(e){return f.querySelectorAll.call(this,"[name="+J
SON.stringify(String(e))+"]")}}),document.registerElement){var x=document.regist
erElement;t.prototype.registerElement=function(t,n){function r(e){return e?void
_(e,this):i?document.createElement(i,t):document.createElement(t)}var o,i;if(voi
d 0!==n&&(o=n.prototype,i=n.extends),o||(o=Object.create(HTMLElement.prototype))
,e.nativePrototypeTable.get(o))throw new Error("NotSupportedError");for(var a,s=
Object.getPrototypeOf(o),c=[];s&&!(a=e.nativePrototypeTable.get(s));)c.push(s),s
=Object.getPrototypeOf(s);if(!a)throw new Error("NotSupportedError");for(var l=O
bject.create(a),u=c.length-1;u>=0;u--)l=Object.create(l);["createdCallback","att
achedCallback","detachedCallback","attributeChangedCallback"].forEach(function(e
){var t=o[e];t&&(l[e]=function(){N(this)instanceof r||M(this),t.apply(N(this),ar
guments)})});var d={prototype:l};i&&(d.extends=i),r.prototype=o,r.prototype.cons
tructor=r,e.constructorTable.set(l,r),e.nativePrototypeTable.set(o,l);x.call(L(t
his),t,d);return r},b([window.HTMLDocument||window.Document],["registerElement"]
)}b([window.HTMLBodyElement,window.HTMLDocument||window.Document,window.HTMLHead
Element,window.HTMLHtmlElement],["appendChild","compareDocumentPosition","contai
ns","getElementsByClassName","getElementsByTagName","getElementsByTagNameNS","in
sertBefore","querySelector","querySelectorAll","removeChild","replaceChild"].con
cat(y)),b([window.HTMLDocument||window.Document],["adoptNode","importNode","cont
ains","createComment","createDocumentFragment","createElement","createElementNS"
,"createEvent","createEventNS","createRange","createTextNode","elementFromPoint"
,"getElementById","getElementsByName","getSelection"]),E(t.prototype,l),E(t.prot
otype,d),E(t.prototype,f),E(t.prototype,{get implementation(){var e=D.get(this);
return e?e:(e=new a(L(this).implementation),D.set(this,e),e)},get defaultView(){
return N(L(this).defaultView)}}),S(window.Document,t,document.implementation.cre
ateHTMLDocument("")),window.HTMLDocument&&S(window.HTMLDocument,t),C([window.HTM
LBodyElement,window.HTMLDocument||window.Document,window.HTMLHeadElement]),s(a,"
createDocumentType"),s(a,"createDocument"),s(a,"createHTMLDocument"),c(a,"hasFea
ture"),S(window.DOMImplementation,a),b([window.DOMImplementation],["createDocume
ntType","createDocument","createHTMLDocument","hasFeature"]),e.adoptNodeNoRemove
=r,e.wrappers.DOMImplementation=a,e.wrappers.Document=t |
| 13 }(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e
)}var n=e.wrappers.EventTarget,r=e.wrappers.Selection,o=e.mixin,i=e.registerWrap
per,a=e.renderAllPending,s=e.unwrap,c=e.unwrapIfNeeded,l=e.wrap,u=window.Window,
d=window.getComputedStyle,p=window.getDefaultComputedStyle,f=window.getSelection
;t.prototype=Object.create(n.prototype),u.prototype.getComputedStyle=function(e,
t){return l(this||window).getComputedStyle(c(e),t)},p&&(u.prototype.getDefaultCo
mputedStyle=function(e,t){return l(this||window).getDefaultComputedStyle(c(e),t)
}),u.prototype.getSelection=function(){return l(this||window).getSelection()},de
lete window.getComputedStyle,delete window.getDefaultComputedStyle,delete window
.getSelection,["addEventListener","removeEventListener","dispatchEvent"].forEach
(function(e){u.prototype[e]=function(){var t=l(this||window);return t[e].apply(t
,arguments)},delete window[e]}),o(t.prototype,{getComputedStyle:function(e,t){re
turn a(),d.call(s(this),c(e),t)},getSelection:function(){return a(),new r(f.call
(s(this)))},get document(){return l(s(this).document)}}),p&&(t.prototype.getDefa
ultComputedStyle=function(e,t){return a(),p.call(s(this),c(e),t)}),i(u,t,window)
,e.wrappers.Window=t}(window.ShadowDOMPolyfill),function(e){"use strict";var t=e
.unwrap,n=window.DataTransfer||window.Clipboard,r=n.prototype.setDragImage;r&&(n
.prototype.setDragImage=function(e,n,o){r.call(this,t(e),n,o)})}(window.ShadowDO
MPolyfill),function(e){"use strict";function t(e){var t;t=e instanceof i?e:new i
(e&&o(e)),r(t,this)}var n=e.registerWrapper,r=e.setWrapper,o=e.unwrap,i=window.F
ormData;i&&(n(i,t,new i),e.wrappers.FormData=t)}(window.ShadowDOMPolyfill),funct
ion(e){"use strict";var t=e.unwrapIfNeeded,n=XMLHttpRequest.prototype.send;XMLHt
tpRequest.prototype.send=function(e){return n.call(this,t(e))}}(window.ShadowDOM
Polyfill),function(e){"use strict";function t(e){var t=n[e],r=window[t];if(r){va
r o=document.createElement(e),i=o.constructor;window[t]=i}}var n=(e.isWrapperFor
,{a:"HTMLAnchorElement",area:"HTMLAreaElement",audio:"HTMLAudioElement",base:"HT
MLBaseElement",body:"HTMLBodyElement",br:"HTMLBRElement",button:"HTMLButtonEleme
nt",canvas:"HTMLCanvasElement",caption:"HTMLTableCaptionElement",col:"HTMLTableC
olElement",content:"HTMLContentElement",data:"HTMLDataElement",datalist:"HTMLDat
aListElement",del:"HTMLModElement",dir:"HTMLDirectoryElement",div:"HTMLDivElemen
t",dl:"HTMLDListElement",embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement"
,font:"HTMLFontElement",form:"HTMLFormElement",frame:"HTMLFrameElement",frameset
:"HTMLFrameSetElement",h1:"HTMLHeadingElement",head:"HTMLHeadElement",hr:"HTMLHR
Element",html:"HTMLHtmlElement",iframe:"HTMLIFrameElement",img:"HTMLImageElement
",input:"HTMLInputElement",keygen:"HTMLKeygenElement",label:"HTMLLabelElement",l
egend:"HTMLLegendElement",li:"HTMLLIElement",link:"HTMLLinkElement",map:"HTMLMap
Element",marquee:"HTMLMarqueeElement",menu:"HTMLMenuElement",menuitem:"HTMLMenuI
temElement",meta:"HTMLMetaElement",meter:"HTMLMeterElement",object:"HTMLObjectEl
ement",ol:"HTMLOListElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptionEl
ement",output:"HTMLOutputElement",p:"HTMLParagraphElement",param:"HTMLParamEleme
nt",pre:"HTMLPreElement",progress:"HTMLProgressElement",q:"HTMLQuoteElement",scr
ipt:"HTMLScriptElement",select:"HTMLSelectElement",shadow:"HTMLShadowElement",so
urce:"HTMLSourceElement",span:"HTMLSpanElement",style:"HTMLStyleElement",table:"
HTMLTableElement",tbody:"HTMLTableSectionElement",template:"HTMLTemplateElement"
,textarea:"HTMLTextAreaElement",thead:"HTMLTableSectionElement",time:"HTMLTimeEl
ement",title:"HTMLTitleElement",tr:"HTMLTableRowElement",track:"HTMLTrackElement
",ul:"HTMLUListElement",video:"HTMLVideoElement"});Object.keys(n).forEach(t),Obj
ect.getOwnPropertyNames(e.wrappers).forEach(function(t){window[t]=e.wrappers[t]}
)}(window.ShadowDOMPolyfill),function(e){function t(e,t){var n="";return Array.p
rototype.forEach.call(e,function(e){n+=e.textContent+"\n\n"}),t||(n=n.replace(d,
"")),n}function n(e){var t=document.createElement("style");return t.textContent=
e,t}function r(e){var t=n(e);document.head.appendChild(t);var r=[];if(t.sheet)tr
y{r=t.sheet.cssRules}catch(o){}else console.warn("sheet not found",t);return t.p
arentNode.removeChild(t),r}function o(){C.initialized=!0,document.body.appendChi
ld(C);var e=C.contentDocument,t=e.createElement("base");t.href=document.baseURI,
e.head.appendChild(t)}function i(e){C.initialized||o(),document.body.appendChild
(C),e(C.contentDocument),document.body.removeChild(C)}function a(e,t){if(t){var
o;if(e.match("@import")&&j){var a=n(e);i(function(e){e.head.appendChild(a.impl),
o=Array.prototype.slice.call(a.sheet.cssRules,0),t(o)})}else o=r(e),t(o)}}functi
on s(e){e&&l().appendChild(document.createTextNode(e))}function c(e,t){var r=n(e
);r.setAttribute(t,""),r.setAttribute(x,""),document.head.appendChild(r)}functio
n l(){return D||(D=document.createElement("style"),D.setAttribute(x,""),D[x]=!0)
,D}var u={strictStyling:!1,registry:{},shimStyling:function(e,n,r){var o=this.pr
epareRoot(e,n,r),i=this.isTypeExtension(r),a=this.makeScopeSelector(n,i),s=t(o,!
0);s=this.scopeCssText(s,a),e&&(e.shimmedStyle=s),this.addCssToDocument(s,n)},sh
imStyle:function(e,t){return this.shimCssText(e.textContent,t)},shimCssText:func
tion(e,t){return e=this.insertDirectives(e),this.scopeCssText(e,t)},makeScopeSel
ector:function(e,t){return e?t?"[is="+e+"]":e:""},isTypeExtension:function(e){re
turn e&&e.indexOf("-")<0},prepareRoot:function(e,t,n){var r=this.registerRoot(e,
t,n);return this.replaceTextInStyles(r.rootStyles,this.insertDirectives),this.re
moveStyles(e,r.rootStyles),this.strictStyling&&this.applyScopeToContent(e,t),r.s
copeStyles},removeStyles:function(e,t){for(var n,r=0,o=t.length;o>r&&(n=t[r]);r+
+)n.parentNode.removeChild(n)},registerRoot:function(e,t,n){var r=this.registry[
t]={root:e,name:t,extendsName:n},o=this.findStyles(e);r.rootStyles=o,r.scopeStyl
es=r.rootStyles;var i=this.registry[r.extendsName];return i&&(r.scopeStyles=i.sc
opeStyles.concat(r.scopeStyles)),r},findStyles:function(e){if(!e)return[];var t=
e.querySelectorAll("style");return Array.prototype.filter.call(t,function(e){ret
urn!e.hasAttribute(R)})},applyScopeToContent:function(e,t){e&&(Array.prototype.f
orEach.call(e.querySelectorAll("*"),function(e){e.setAttribute(t,"")}),Array.pro
totype.forEach.call(e.querySelectorAll("template"),function(e){this.applyScopeTo
Content(e.content,t)},this))},insertDirectives:function(e){return e=this.insertP
olyfillDirectivesInCssText(e),this.insertPolyfillRulesInCssText(e)},insertPolyfi
llDirectivesInCssText:function(e){return e=e.replace(p,function(e,t){return t.sl
ice(0,-2)+"{"}),e.replace(f,function(e,t){return t+" {"})},insertPolyfillRulesIn
CssText:function(e){return e=e.replace(h,function(e,t){return t.slice(0,-1)}),e.
replace(m,function(e,t,n,r){var o=e.replace(t,"").replace(n,"");return r+o})},sc
opeCssText:function(e,t){var n=this.extractUnscopedRulesFromCssText(e);if(e=this
.insertPolyfillHostInCssText(e),e=this.convertColonHost(e),e=this.convertColonHo
stContext(e),e=this.convertShadowDOMSelectors(e),t){var e,r=this;a(e,function(n)
{e=r.scopeRules(n,t)})}return e=e+"\n"+n,e.trim()},extractUnscopedRulesFromCssTe
xt:function(e){for(var t,n="";t=w.exec(e);)n+=t[1].slice(0,-1)+"\n\n";for(;t=v.e
xec(e);)n+=t[0].replace(t[2],"").replace(t[1],t[3])+"\n\n";return n},convertColo
nHost:function(e){return this.convertColonRule(e,E,this.colonHostPartReplacer)},
convertColonHostContext:function(e){return this.convertColonRule(e,S,this.colonH
ostContextPartReplacer)},convertColonRule:function(e,t,n){return e.replace(t,fun
ction(e,t,r,o){if(t=O,r){for(var i,a=r.split(","),s=[],c=0,l=a.length;l>c&&(i=a[
c]);c++)i=i.trim(),s.push(n(t,i,o));return s.join(",")}return t+o})},colonHostCo
ntextPartReplacer:function(e,t,n){return t.match(g)?this.colonHostPartReplacer(e
,t,n):e+t+n+", "+t+" "+e+n},colonHostPartReplacer:function(e,t,n){return e+t.rep
lace(g,"")+n},convertShadowDOMSelectors:function(e){for(var t=0;t<N.length;t++)e
=e.replace(N[t]," ");return e},scopeRules:function(e,t){var n="";return e&&Array
.prototype.forEach.call(e,function(e){if(e.selectorText&&e.style&&void 0!==e.sty
le.cssText)n+=this.scopeSelector(e.selectorText,t,this.strictStyling)+" {\n
",n+=this.propertiesFromRule(e)+"\n}\n\n";else if(e.type===CSSRule.MEDIA_RULE)n+
="@media "+e.media.mediaText+" {\n",n+=this.scopeRules(e.cssRules,t),n+="\n}\n\n
";else try{e.cssText&&(n+=e.cssText+"\n\n")}catch(r){e.type===CSSRule.KEYFRAMES_
RULE&&e.cssRules&&(n+=this.ieSafeCssTextFromKeyFrameRule(e))}},this),n},ieSafeCs
sTextFromKeyFrameRule:function(e){var t="@keyframes "+e.name+" {";return Array.p
rototype.forEach.call(e.cssRules,function(e){t+=" "+e.keyText+" {"+e.style.cssTe
xt+"}"}),t+=" }"},scopeSelector:function(e,t,n){var r=[],o=e.split(",");return o
.forEach(function(e){e=e.trim(),this.selectorNeedsScoping(e,t)&&(e=n&&!e.match(O
)?this.applyStrictSelectorScope(e,t):this.applySelectorScope(e,t)),r.push(e)},th
is),r.join(", ")},selectorNeedsScoping:function(e,t){if(Array.isArray(t))return!
0;var n=this.makeScopeMatcher(t);return!e.match(n)},makeScopeMatcher:function(e)
{return e=e.replace(/\[/g,"\\[").replace(/\[/g,"\\]"),new RegExp("^("+e+")"+T,"m
")},applySelectorScope:function(e,t){return Array.isArray(t)?this.applySelectorS
copeList(e,t):this.applySimpleSelectorScope(e,t)},applySelectorScopeList:functio
n(e,t){for(var n,r=[],o=0;n=t[o];o++)r.push(this.applySimpleSelectorScope(e,n));
return r.join(", ")},applySimpleSelectorScope:function(e,t){return e.match(L)?(e
=e.replace(O,t),e.replace(L,t+" ")):t+" "+e},applyStrictSelectorScope:function(e
,t){t=t.replace(/\[is=([^\]]*)\]/g,"$1");var n=[" ",">","+","~"],r=e,o="["+t+"]"
;return n.forEach(function(e){var t=r.split(e);r=t.map(function(e){var t=e.trim(
).replace(L,"");return t&&n.indexOf(t)<0&&t.indexOf(o)<0&&(e=t.replace(/([^:]*)(
:*)(.*)/,"$1"+o+"$2$3")),e}).join(e)}),r},insertPolyfillHostInCssText:function(e
){return e.replace(_,b).replace(M,g)},propertiesFromRule:function(e){var t=e.sty
le.cssText;e.style.content&&!e.style.content.match(/['"]+|attr/)&&(t=t.replace(/
content:[^;]*;/g,"content: '"+e.style.content+"';"));var n=e.style;for(var r in
n)"initial"===n[r]&&(t+=r+": initial; ");return t},replaceTextInStyles:function(
e,t){e&&t&&(e instanceof Array||(e=[e]),Array.prototype.forEach.call(e,function(
e){e.textContent=t.call(this,e.textContent)},this))},addCssToDocument:function(e
,t){e.match("@import")?c(e,t):s(e)}},d=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,p=/\/
\*\s*@polyfill ([^*]*\*+([^/*][^*]*\*+)*\/)([^{]*?){/gim,f=/polyfill-next-select
or[^}]*content\:[\s]*?['"](.*?)['"][;\s]*}([^{]*?){/gim,h=/\/\*\s@polyfill-rule(
[^*]*\*+([^/*][^*]*\*+)*)\//gim,m=/(polyfill-rule)[^}]*(content\:[\s]*['"](.*?)[
'"])[;\s]*[^}]*}/gim,w=/\/\*\s@polyfill-unscoped-rule([^*]*\*+([^/*][^*]*\*+)*)\
//gim,v=/(polyfill-unscoped-rule)[^}]*(content\:[\s]*['"](.*?)['"])[;\s]*[^}]*}/
gim,g="-shadowcsshost",b="-shadowcsscontext",y=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+
?)\\))?([^,{]*)",E=new RegExp("("+g+y,"gim"),S=new RegExp("("+b+y,"gim"),T="([>\
\s~+[.,{:][\\s\\S]*)?$",M=/\:host/gim,_=/\:host-context/gim,O=g+"-no-combinator"
,L=new RegExp(g,"gim"),N=(new RegExp(b,"gim"),[/\^\^/g,/\^/g,/\/shadow\//g,/\/sh
adow-deep\//g,/::shadow/g,/\/deep\//g,/::content/g]),C=document.createElement("i
frame");C.style.display="none";var D,j=navigator.userAgent.match("Chrome"),H="sh
im-shadowdom",x="shim-shadowdom-css",R="no-shim";if(window.ShadowDOMPolyfill){s(
"style { display: none !important; }\n");var P=ShadowDOMPolyfill.wrap(document),
I=P.querySelector("head");I.insertBefore(l(),I.childNodes[0]),document.addEventL
istener("DOMContentLoaded",function(){e.urlResolver;if(window.HTMLImports&&!HTML
Imports.useNative){var t="link[rel=stylesheet]["+H+"]",n="style["+H+"]";HTMLImpo
rts.importer.documentPreloadSelectors+=","+t,HTMLImports.importer.importsPreload
Selectors+=","+t,HTMLImports.parser.documentSelectors=[HTMLImports.parser.docume
ntSelectors,t,n].join(",");var r=HTMLImports.parser.parseGeneric;HTMLImports.par
ser.parseGeneric=function(e){if(!e[x]){var t=e.__importElement||e;if(!t.hasAttri
bute(H))return void r.call(this,e);e.__resource&&(t=e.ownerDocument.createElemen
t("style"),t.textContent=e.__resource),HTMLImports.path.resolveUrlsInStyle(t),t.
textContent=u.shimStyle(t),t.removeAttribute(H,""),t.setAttribute(x,""),t[x]=!0,
t.parentNode!==I&&(e.parentNode===I?I.replaceChild(t,e):this.addElementToDocumen
t(t)),t.__importParsed=!0,this.markParsingComplete(e),this.parseNext()}};var o=H
TMLImports.parser.hasResource;HTMLImports.parser.hasResource=function(e){return"
link"===e.localName&&"stylesheet"===e.rel&&e.hasAttribute(H)?e.__resource:o.call
(this,e)}}})}e.ShadowCSS=u}(window.WebComponents)),function(){window.ShadowDOMPo
lyfill?(window.wrap=ShadowDOMPolyfill.wrapIfNeeded,window.unwrap=ShadowDOMPolyfi
ll.unwrapIfNeeded):window.wrap=window.unwrap=function(e){return e}}(window.WebCo
mponents),function(e){function t(e){y.push(e),b||(b=!0,m(r))}function n(e){retur
n window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(e)||e}function
r(){b=!1;var e=y;y=[],e.sort(function(e,t){return e.uid_-t.uid_});var t=!1;e.fo
rEach(function(e){var n=e.takeRecords();o(e),n.length&&(e.callback_(n,e),t=!0)})
,t&&r()}function o(e){e.nodes_.forEach(function(t){var n=w.get(t);n&&n.forEach(f
unction(t){t.observer===e&&t.removeTransientObservers()})})}function i(e,t){for(
var n=e;n;n=n.parentNode){var r=w.get(n);if(r)for(var o=0;o<r.length;o++){var i=
r[o],a=i.options;if(n===e||a.subtree){var s=t(a);s&&i.enqueue(s)}}}}function a(e
){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++E}function s(e,t)
{this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],this.previous
Sibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespa
ce=null,this.oldValue=null}function c(e){var t=new s(e.type,e.target);return t.a
ddedNodes=e.addedNodes.slice(),t.removedNodes=e.removedNodes.slice(),t.previousS
ibling=e.previousSibling,t.nextSibling=e.nextSibling,t.attributeName=e.attribute
Name,t.attributeNamespace=e.attributeNamespace,t.oldValue=e.oldValue,t}function
l(e,t){return S=new s(e,t)}function u(e){return T?T:(T=c(S),T.oldValue=e,T)}func
tion d(){S=T=void 0}function p(e){return e===T||e===S}function f(e,t){return e==
=t?e:T&&p(e)?T:null}function h(e,t,n){this.observer=e,this.target=t,this.options
=n,this.transientObservedNodes=[]}var m,w=new WeakMap;if(/Trident|Edge/.test(nav
igator.userAgent))m=setTimeout;else if(window.setImmediate)m=window.setImmediate
;else{var v=[],g=String(Math.random());window.addEventListener("message",functio
n(e){if(e.data===g){var t=v;v=[],t.forEach(function(e){e()})}}),m=function(e){v.
push(e),window.postMessage(g,"*")}}var b=!1,y=[],E=0;a.prototype={observe:functi
on(e,t){if(e=n(e),!t.childList&&!t.attributes&&!t.characterData||t.attributeOldV
alue&&!t.attributes||t.attributeFilter&&t.attributeFilter.length&&!t.attributes|
|t.characterDataOldValue&&!t.characterData)throw new SyntaxError;var r=w.get(e);
r||w.set(e,r=[]);for(var o,i=0;i<r.length;i++)if(r[i].observer===this){o=r[i],o.
removeListeners(),o.options=t;break}o||(o=new h(this,e,t),r.push(o),this.nodes_.
push(e)),o.addListeners()},disconnect:function(){this.nodes_.forEach(function(e)
{for(var t=w.get(e),n=0;n<t.length;n++){var r=t[n];if(r.observer===this){r.remov
eListeners(),t.splice(n,1);break}}},this),this.records_=[]},takeRecords:function
(){var e=this.records_;return this.records_=[],e}};var S,T;h.prototype={enqueue:
function(e){var n=this.observer.records_,r=n.length;if(n.length>0){var o=n[r-1],
i=f(o,e);if(i)return void(n[r-1]=i)}else t(this.observer);n[r]=e},addListeners:f
unction(){this.addListeners_(this.target)},addListeners_:function(e){var t=this.
options;t.attributes&&e.addEventListener("DOMAttrModified",this,!0),t.characterD
ata&&e.addEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.addEv
entListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.addEventListe
ner("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(
this.target)},removeListeners_:function(e){var t=this.options;t.attributes&&e.re
moveEventListener("DOMAttrModified",this,!0),t.characterData&&e.removeEventListe
ner("DOMCharacterDataModified",this,!0),t.childList&&e.removeEventListener("DOMN
odeInserted",this,!0),(t.childList||t.subtree)&&e.removeEventListener("DOMNodeRe
moved",this,!0)},addTransientObserver:function(e){if(e!==this.target){this.addLi
steners_(e),this.transientObservedNodes.push(e);var t=w.get(e);t||w.set(e,t=[]),
t.push(this)}},removeTransientObservers:function(){var e=this.transientObservedN
odes;this.transientObservedNodes=[],e.forEach(function(e){this.removeListeners_(
e);for(var t=w.get(e),n=0;n<t.length;n++)if(t[n]===this){t.splice(n,1);break}},t
his)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.type){case"D
OMAttrModified":var t=e.attrName,n=e.relatedNode.namespaceURI,r=e.target,o=new l
("attributes",r);o.attributeName=t,o.attributeNamespace=n;var a=e.attrChange===M
utationEvent.ADDITION?null:e.prevValue;i(r,function(e){return!e.attributes||e.at
tributeFilter&&e.attributeFilter.length&&-1===e.attributeFilter.indexOf(t)&&-1==
=e.attributeFilter.indexOf(n)?void 0:e.attributeOldValue?u(a):o});break;case"DOM
CharacterDataModified":var r=e.target,o=l("characterData",r),a=e.prevValue;i(r,f
unction(e){return e.characterData?e.characterDataOldValue?u(a):o:void 0});break;
case"DOMNodeRemoved":this.addTransientObserver(e.target);case"DOMNodeInserted":v
ar s,c,r=e.relatedNode,p=e.target;"DOMNodeInserted"===e.type?(s=[p],c=[]):(s=[],
c=[p]);var f=p.previousSibling,h=p.nextSibling,o=l("childList",r);o.addedNodes=s
,o.removedNodes=c,o.previousSibling=f,o.nextSibling=h,i(r,function(e){return e.c
hildList?o:void 0})}d()}},e.JsMutationObserver=a,e.MutationObserver||(e.Mutation
Observer=a)}(this),window.HTMLImports=window.HTMLImports||{flags:{}},function(e)
{function t(e,t){t=t||h,r(function(){i(e,t)},t)}function n(e){return"complete"==
=e.readyState||e.readyState===v}function r(e,t){if(n(t))e&&e();else{var o=functi
on(){("complete"===t.readyState||t.readyState===v)&&(t.removeEventListener(g,o),
r(e,t))};t.addEventListener(g,o)}}function o(e){e.target.__loaded=!0}function i(
e,t){function n(){s==c&&e&&e()}function r(e){o(e),s++,n()}var i=t.querySelectorA
ll("link[rel=import]"),s=0,c=i.length;if(c)for(var l,u=0;c>u&&(l=i[u]);u++)a(l)?
r.call(l,{target:l}):(l.addEventListener("load",r),l.addEventListener("error",r)
);else n()}function a(e){return d?e.__loaded||e.import&&"loading"!==e.import.rea
dyState:e.__importParsed}function s(e){for(var t,n=0,r=e.length;r>n&&(t=e[n]);n+
+)c(t)&&l(t)}function c(e){return"link"===e.localName&&"import"===e.rel}function
l(e){var t=e.import;t?o({target:e}):(e.addEventListener("load",o),e.addEventLis
tener("error",o))}var u="import",d=Boolean(u in document.createElement("link")),
p=Boolean(window.ShadowDOMPolyfill),f=function(e){return p?ShadowDOMPolyfill.wra
pIfNeeded(e):e},h=f(document),m={get:function(){var e=HTMLImports.currentScript|
|document.currentScript||("complete"!==document.readyState?document.scripts[docu
ment.scripts.length-1]:null);return f(e)},configurable:!0};Object.defineProperty
(document,"_currentScript",m),Object.defineProperty(h,"_currentScript",m);var w=
/Trident|Edge/.test(navigator.userAgent),v=w?"complete":"interactive",g="readyst
atechange";d&&(new MutationObserver(function(e){for(var t,n=0,r=e.length;r>n&&(t
=e[n]);n++)t.addedNodes&&s(t.addedNodes)}).observe(document.head,{childList:!0})
,function(){if("loading"===document.readyState)for(var e,t=document.querySelecto
rAll("link[rel=import]"),n=0,r=t.length;r>n&&(e=t[n]);n++)l(e)}()),t(function(){
HTMLImports.ready=!0,HTMLImports.readyTime=(new Date).getTime(),h.dispatchEvent(
new CustomEvent("HTMLImportsLoaded",{bubbles:!0}))}),e.IMPORT_LINK_TYPE=u,e.useN
ative=d,e.rootDocument=h,e.whenReady=t,e.isIE=w}(HTMLImports),function(e){var t=
[],n=function(e){t.push(e)},r=function(){t.forEach(function(t){t(e)})};e.addModu
le=n,e.initializeModules=r}(HTMLImports),HTMLImports.addModule(function(e){var t
=/(url\()([^)]*)(\))/g,n=/(@import[\s]+(?!url\())([^;]*)(;)/g,r={resolveUrlsInSt
yle:function(e){var t=e.ownerDocument,n=t.createElement("a");return e.textConten
t=this.resolveUrlsInCssText(e.textContent,n),e},resolveUrlsInCssText:function(e,
r){var o=this.replaceUrls(e,r,t);return o=this.replaceUrls(o,r,n)},replaceUrls:f
unction(e,t,n){return e.replace(n,function(e,n,r,o){var i=r.replace(/["']/g,"");
return t.href=i,i=t.href,n+"'"+i+"'"+o})}};e.path=r}),HTMLImports.addModule(func
tion(e){xhr={async:!0,ok:function(e){return e.status>=200&&e.status<300||304===e
.status||0===e.status},load:function(t,n,r){var o=new XMLHttpRequest;return(e.fl
ags.debug||e.flags.bust)&&(t+="?"+Math.random()),o.open("GET",t,xhr.async),o.add
EventListener("readystatechange",function(){if(4===o.readyState){var e=o.getResp
onseHeader("Location"),t=null;if(e)var t="/"===e.substr(0,1)?location.origin+e:e
;n.call(r,!xhr.ok(o)&&o,o.response||o.responseText,t)}}),o.send(),o},loadDocumen
t:function(e,t,n){this.load(e,t,n).responseType="document"}},e.xhr=xhr}),HTMLImp
orts.addModule(function(e){var t=e.xhr,n=e.flags,r=function(e,t){this.cache={},t
his.onload=e,this.oncomplete=t,this.inflight=0,this.pending={}};r.prototype={add
Nodes:function(e){this.inflight+=e.length;for(var t,n=0,r=e.length;r>n&&(t=e[n])
;n++)this.require(t);this.checkDone()},addNode:function(e){this.inflight++,this.
require(e),this.checkDone()},require:function(e){var t=e.src||e.href;e.__nodeUrl
=t,this.dedupe(t,e)||this.fetch(t,e)},dedupe:function(e,t){if(this.pending[e])re
turn this.pending[e].push(t),!0;return this.cache[e]?(this.onload(e,t,this.cache
[e]),this.tail(),!0):(this.pending[e]=[t],!1)},fetch:function(e,r){if(n.load&&co
nsole.log("fetch",e,r),e.match(/^data:/)){var o=e.split(","),i=o[0],a=o[1];a=i.i
ndexOf(";base64")>-1?atob(a):decodeURIComponent(a),setTimeout(function(){this.re
ceive(e,r,null,a)}.bind(this),0)}else{var s=function(t,n,o){this.receive(e,r,t,n
,o)}.bind(this);t.load(e,s)}},receive:function(e,t,n,r,o){this.cache[e]=r;for(va
r i,a=this.pending[e],s=0,c=a.length;c>s&&(i=a[s]);s++)this.onload(e,i,r,n,o),th
is.tail();this.pending[e]=null},tail:function(){--this.inflight,this.checkDone()
},checkDone:function(){this.inflight||this.oncomplete()}},e.Loader=r}),HTMLImpor
ts.addModule(function(e){var t=function(e){this.addCallback=e,this.mo=new Mutati
onObserver(this.handler.bind(this))};t.prototype={handler:function(e){for(var t,
n=0,r=e.length;r>n&&(t=e[n]);n++)"childList"===t.type&&t.addedNodes.length&&this
.addedNodes(t.addedNodes)},addedNodes:function(e){this.addCallback&&this.addCall
back(e);for(var t,n=0,r=e.length;r>n&&(t=e[n]);n++)t.children&&t.children.length
&&this.addedNodes(t.children)},observe:function(e){this.mo.observe(e,{childList:
!0,subtree:!0})}},e.Observer=t}),HTMLImports.addModule(function(e){function t(e)
{return"link"===e.localName&&e.rel===u}function n(e){var t=r(e);return"data:text
/javascript;charset=utf-8,"+encodeURIComponent(t)}function r(e){return e.textCon
tent+o(e)}function o(e){var t=e.ownerDocument;t.__importedScripts=t.__importedSc
ripts||0;var n=e.ownerDocument.baseURI,r=t.__importedScripts?"-"+t.__importedScr
ipts:"";return t.__importedScripts++,"\n//# sourceURL="+n+r+".js\n"}function i(e
){var t=e.ownerDocument.createElement("style");return t.textContent=e.textConten
t,a.resolveUrlsInStyle(t),t}var a=e.path,s=e.rootDocument,c=e.flags,l=e.isIE,u=e
.IMPORT_LINK_TYPE,d="link[rel="+u+"]",p={documentSelectors:d,importsSelectors:[d
,"link[rel=stylesheet]","style","script:not([type])",'script[type="text/javascri
pt"]'].join(","),map:{link:"parseLink",script:"parseScript",style:"parseStyle"},
dynamicElements:[],parseNext:function(){var e=this.nextToParse();e&&this.parse(e
)},parse:function(e){if(this.isParsed(e))return void(c.parse&&console.log("[%s]
is already parsed",e.localName));var t=this[this.map[e.localName]];t&&(this.mark
Parsing(e),t.call(this,e))},parseDynamic:function(e,t){this.dynamicElements.push
(e),t||this.parseNext()},markParsing:function(e){c.parse&&console.log("parsing",
e),this.parsingElement=e},markParsingComplete:function(e){e.__importParsed=!0,th
is.markDynamicParsingComplete(e),e.__importElement&&(e.__importElement.__importP
arsed=!0,this.markDynamicParsingComplete(e.__importElement)),this.parsingElement
=null,c.parse&&console.log("completed",e)},markDynamicParsingComplete:function(e
){var t=this.dynamicElements.indexOf(e);t>=0&&this.dynamicElements.splice(t,1)},
parseImport:function(e){if(HTMLImports.__importsParsingHook&&HTMLImports.__impor
tsParsingHook(e),e.import&&(e.import.__importParsed=!0),this.markParsingComplete
(e),e.dispatchEvent(e.__resource&&!e.__error?new CustomEvent("load",{bubbles:!1}
):new CustomEvent("error",{bubbles:!1})),e.__pending)for(var t;e.__pending.lengt
h;)t=e.__pending.shift(),t&&t({target:e});this.parseNext()},parseLink:function(e
){t(e)?this.parseImport(e):(e.href=e.href,this.parseGeneric(e))},parseStyle:func
tion(e){var t=e;e=i(e),e.__importElement=t,this.parseGeneric(e)},parseGeneric:fu
nction(e){this.trackElement(e),this.addElementToDocument(e)},rootImportForElemen
t:function(e){for(var t=e;t.ownerDocument.__importLink;)t=t.ownerDocument.__impo
rtLink;return t},addElementToDocument:function(e){var t=this.rootImportForElemen
t(e.__importElement||e);t.parentNode.insertBefore(e,t)},trackElement:function(e,
t){var n=this,r=function(r){t&&t(r),n.markParsingComplete(e),n.parseNext()};if(e
.addEventListener("load",r),e.addEventListener("error",r),l&&"style"===e.localNa
me){var o=!1;if(-1==e.textContent.indexOf("@import"))o=!0;else if(e.sheet){o=!0;
for(var i,a=e.sheet.cssRules,s=a?a.length:0,c=0;s>c&&(i=a[c]);c++)i.type===CSSRu
le.IMPORT_RULE&&(o=o&&Boolean(i.styleSheet))}o&&e.dispatchEvent(new CustomEvent(
"load",{bubbles:!1}))}},parseScript:function(t){var r=document.createElement("sc
ript");r.__importElement=t,r.src=t.src?t.src:n(t),e.currentScript=t,this.trackEl
ement(r,function(){r.parentNode.removeChild(r),e.currentScript=null}),this.addEl
ementToDocument(r)},nextToParse:function(){return this._mayParse=[],!this.parsin
gElement&&(this.nextToParseInDoc(s)||this.nextToParseDynamic())},nextToParseInDo
c:function(e,n){if(e&&this._mayParse.indexOf(e)<0){this._mayParse.push(e);for(va
r r,o=e.querySelectorAll(this.parseSelectorsForNode(e)),i=0,a=o.length;a>i&&(r=o
[i]);i++)if(!this.isParsed(r))return this.hasResource(r)?t(r)?this.nextToParseIn
Doc(r.import,r):r:void 0}return n},nextToParseDynamic:function(){return this.dyn
amicElements[0]},parseSelectorsForNode:function(e){var t=e.ownerDocument||e;retu
rn t===s?this.documentSelectors:this.importsSelectors},isParsed:function(e){retu
rn e.__importParsed},needsDynamicParsing:function(e){return this.dynamicElements
.indexOf(e)>=0},hasResource:function(e){return t(e)&&void 0===e.import?!1:!0}};e
.parser=p,e.IMPORT_SELECTOR=d}),HTMLImports.addModule(function(e){function t(e){
return n(e,i)}function n(e,t){return"link"===e.localName&&e.getAttribute("rel")=
==t}function r(e,t){var n=document.implementation.createHTMLDocument(i);n._URL=t
;var r=n.createElement("base");r.setAttribute("href",t),n.baseURI||Object.define
Property(n,"baseURI",{value:t});var o=n.createElement("meta");return o.setAttrib
ute("charset","utf-8"),n.head.appendChild(o),n.head.appendChild(r),n.body.innerH
TML=e,window.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateEle
ment.bootstrap(n),n}var o=e.flags,i=e.IMPORT_LINK_TYPE,a=e.IMPORT_SELECTOR,s=e.r
ootDocument,c=e.Loader,l=e.Observer,u=e.parser,d={documents:{},documentPreloadSe
lectors:a,importsPreloadSelectors:[a].join(","),loadNode:function(e){p.addNode(e
)},loadSubtree:function(e){var t=this.marshalNodes(e);p.addNodes(t)},marshalNode
s:function(e){return e.querySelectorAll(this.loadSelectorsForNode(e))},loadSelec
torsForNode:function(e){var t=e.ownerDocument||e;return t===s?this.documentPrelo
adSelectors:this.importsPreloadSelectors},loaded:function(e,n,i,a,s){if(o.load&&
console.log("loaded",e,n),n.__resource=i,n.__error=a,t(n)){var c=this.documents[
e];void 0===c&&(c=a?null:r(i,s||e),c&&(c.__importLink=n,this.bootDocument(c)),th
is.documents[e]=c),n.import=c}u.parseNext()},bootDocument:function(e){this.loadS
ubtree(e),this.observer.observe(e),u.parseNext()},loadedAll:function(){u.parseNe
xt()}},p=new c(d.loaded.bind(d),d.loadedAll.bind(d));if(d.observer=new l,!docume
nt.baseURI){var f={get:function(){var e=document.querySelector("base");return e?
e.href:window.location.href},configurable:!0};Object.defineProperty(document,"ba
seURI",f),Object.defineProperty(s,"baseURI",f)}e.importer=d,e.importLoader=p}),H
TMLImports.addModule(function(e){var t=e.parser,n=e.importer,r={added:function(e
){for(var r,o,i,a=0,s=e.length;s>a&&(i=e[a]);a++)r||(r=i.ownerDocument,o=t.isPar
sed(r)),loading=this.shouldLoadNode(i),loading&&n.loadNode(i),this.shouldParseNo
de(i)&&o&&t.parseDynamic(i,loading)},shouldLoadNode:function(e){return 1===e.nod
eType&&o.call(e,n.loadSelectorsForNode(e))},shouldParseNode:function(e){return 1
===e.nodeType&&o.call(e,t.parseSelectorsForNode(e))}};n.observer.addCallback=r.a
dded.bind(r);var o=HTMLElement.prototype.matches||HTMLElement.prototype.matchesS
elector||HTMLElement.prototype.webkitMatchesSelector||HTMLElement.prototype.mozM
atchesSelector||HTMLElement.prototype.msMatchesSelector}),function(e){function t
(){HTMLImports.importer.bootDocument(o)}var n=e.initializeModules,r=e.isIE;if(!e
.useNative){r&&"function"!=typeof window.CustomEvent&&(window.CustomEvent=functi
on(e,t){t=t||{};var n=document.createEvent("CustomEvent");return n.initCustomEve
nt(e,Boolean(t.bubbles),Boolean(t.cancelable),t.detail),n},window.CustomEvent.pr
ototype=window.Event.prototype),n();var o=e.rootDocument;"complete"===document.r
eadyState||"interactive"===document.readyState&&!window.attachEvent?t():document
.addEventListener("DOMContentLoaded",t)}}(HTMLImports),window.CustomElements=win
dow.CustomElements||{flags:{}},function(e){var t=e.flags,n=[],r=function(e){n.pu
sh(e)},o=function(){n.forEach(function(t){t(e)})};e.addModule=r,e.initializeModu
les=o,e.hasNative=Boolean(document.registerElement),e.useNative=!t.register&&e.h
asNative&&!window.ShadowDOMPolyfill&&(!window.HTMLImports||HTMLImports.useNative
)}(CustomElements),CustomElements.addModule(function(e){function t(e,t){n(e,func
tion(e){return t(e)?!0:void r(e,t)}),r(e,t)}function n(e,t,r){var o=e.firstEleme
ntChild;if(!o)for(o=e.firstChild;o&&o.nodeType!==Node.ELEMENT_NODE;)o=o.nextSibl
ing;for(;o;)t(o,r)!==!0&&n(o,t,r),o=o.nextElementSibling;return null}function r(
e,n){for(var r=e.shadowRoot;r;)t(r,n),r=r.olderShadowRoot}function o(e,t){a=[],i
(e,t),a=null}function i(e,t){if(e=wrap(e),!(a.indexOf(e)>=0)){a.push(e);for(var
n,r=e.querySelectorAll("link[rel="+s+"]"),o=0,c=r.length;c>o&&(n=r[o]);o++)n.imp
ort&&i(n.import,t);t(e)}}var a,s=window.HTMLImports?HTMLImports.IMPORT_LINK_TYPE
:"none";e.forDocumentTree=o,e.forSubtree=t}),CustomElements.addModule(function(e
){function t(e){return n(e)||r(e)}function n(t){return e.upgrade(t)?!0:void s(t)
}function r(e){y(e,function(e){return n(e)?!0:void 0})}function o(e){s(e),p(e)&&
y(e,function(e){s(e)})}function i(e){M.push(e),T||(T=!0,setTimeout(a))}function
a(){T=!1;for(var e,t=M,n=0,r=t.length;r>n&&(e=t[n]);n++)e();M=[]}function s(e){S
?i(function(){c(e)}):c(e)}function c(e){e.__upgraded__&&(e.attachedCallback||e.d
etachedCallback)&&!e.__attached&&p(e)&&(e.__attached=!0,e.attachedCallback&&e.at
tachedCallback())}function l(e){u(e),y(e,function(e){u(e)})}function u(e){S?i(fu
nction(){d(e)}):d(e)}function d(e){e.__upgraded__&&(e.attachedCallback||e.detach
edCallback)&&e.__attached&&!p(e)&&(e.__attached=!1,e.detachedCallback&&e.detache
dCallback())}function p(e){for(var t=e,n=wrap(document);t;){if(t==n)return!0;t=t
.parentNode||t.host}}function f(e){if(e.shadowRoot&&!e.shadowRoot.__watched){b.d
om&&console.log("watching shadow-root for: ",e.localName);for(var t=e.shadowRoot
;t;)w(t),t=t.olderShadowRoot}}function h(e){if(b.dom){var n=e[0];if(n&&"childLis
t"===n.type&&n.addedNodes&&n.addedNodes){for(var r=n.addedNodes[0];r&&r!==docume
nt&&!r.host;)r=r.parentNode;var o=r&&(r.URL||r._URL||r.host&&r.host.localName)||
"";o=o.split("/?").shift().split("/").pop() |
| 14 }console.group("mutations (%d) [%s]",e.length,o||"")}e.forEach(function(e){"chil
dList"===e.type&&(_(e.addedNodes,function(e){e.localName&&t(e)}),_(e.removedNode
s,function(e){e.localName&&l(e)}))}),b.dom&&console.groupEnd()}function m(e){for
(e=wrap(e),e||(e=wrap(document));e.parentNode;)e=e.parentNode;var t=e.__observer
;t&&(h(t.takeRecords()),a())}function w(e){if(!e.__observer){var t=new MutationO
bserver(h);t.observe(e,{childList:!0,subtree:!0}),e.__observer=t}}function v(e){
e=wrap(e),b.dom&&console.group("upgradeDocument: ",e.baseURI.split("/").pop()),t
(e),w(e),b.dom&&console.groupEnd()}function g(e){E(e,v)}var b=e.flags,y=e.forSub
tree,E=e.forDocumentTree,S=!window.MutationObserver||window.MutationObserver===w
indow.JsMutationObserver;e.hasPolyfillMutations=S;var T=!1,M=[],_=Array.prototyp
e.forEach.call.bind(Array.prototype.forEach),O=Element.prototype.createShadowRoo
t;Element.prototype.createShadowRoot=function(){var e=O.call(this);return Custom
Elements.watchShadow(this),e},e.watchShadow=f,e.upgradeDocumentTree=g,e.upgradeS
ubtree=r,e.upgradeAll=t,e.attachedNode=o,e.takeRecords=m}),CustomElements.addMod
ule(function(e){function t(t){if(!t.__upgraded__&&t.nodeType===Node.ELEMENT_NODE
){var r=t.getAttribute("is"),o=e.getRegisteredDefinition(r||t.localName);if(o){i
f(r&&o.tag==t.localName)return n(t,o);if(!r&&!o.extends)return n(t,o)}}}function
n(t,n){return a.upgrade&&console.group("upgrade:",t.localName),n.is&&t.setAttri
bute("is",n.is),r(t,n),t.__upgraded__=!0,i(t),e.attachedNode(t),e.upgradeSubtree
(t),a.upgrade&&console.groupEnd(),t}function r(e,t){Object.__proto__?e.__proto__
=t.prototype:(o(e,t.prototype,t.native),e.__proto__=t.prototype)}function o(e,t,
n){for(var r={},o=t;o!==n&&o!==HTMLElement.prototype;){for(var i,a=Object.getOwn
PropertyNames(o),s=0;i=a[s];s++)r[i]||(Object.defineProperty(e,i,Object.getOwnPr
opertyDescriptor(o,i)),r[i]=1);o=Object.getPrototypeOf(o)}}function i(e){e.creat
edCallback&&e.createdCallback()}var a=e.flags;e.upgrade=t,e.upgradeWithDefinitio
n=n,e.implementPrototype=r}),CustomElements.addModule(function(e){function t(t,r
){var c=r||{};if(!t)throw new Error("document.registerElement: first argument `n
ame` must not be empty");if(t.indexOf("-")<0)throw new Error("document.registerE
lement: first argument ('name') must contain a dash ('-'). Argument provided was
'"+String(t)+"'.");if(o(t))throw new Error("Failed to execute 'registerElement'
on 'Document': Registration failed for type '"+String(t)+"'. The type name is i
nvalid.");if(l(t))throw new Error("DuplicateDefinitionError: a type with name '"
+String(t)+"' is already registered");return c.prototype||(c.prototype=Object.cr
eate(HTMLElement.prototype)),c.__name=t.toLowerCase(),c.lifecycle=c.lifecycle||{
},c.ancestry=i(c.extends),a(c),s(c),n(c.prototype),u(c.__name,c),c.ctor=d(c),c.c
tor.prototype=c.prototype,c.prototype.constructor=c.ctor,e.ready&&w(document),c.
ctor}function n(e){if(!e.setAttribute._polyfilled){var t=e.setAttribute;e.setAtt
ribute=function(e,n){r.call(this,e,n,t)};var n=e.removeAttribute;e.removeAttribu
te=function(e){r.call(this,e,null,n)},e.setAttribute._polyfilled=!0}}function r(
e,t,n){e=e.toLowerCase();var r=this.getAttribute(e);n.apply(this,arguments);var
o=this.getAttribute(e);this.attributeChangedCallback&&o!==r&&this.attributeChang
edCallback(e,r,o)}function o(e){for(var t=0;t<E.length;t++)if(e===E[t])return!0}
function i(e){var t=l(e);return t?i(t.extends).concat([t]):[]}function a(e){for(
var t,n=e.extends,r=0;t=e.ancestry[r];r++)n=t.is&&t.tag;e.tag=n||e.__name,n&&(e.
is=e.__name)}function s(e){if(!Object.__proto__){var t=HTMLElement.prototype;if(
e.is){var n=document.createElement(e.tag),r=Object.getPrototypeOf(n);r===e.proto
type&&(t=r)}for(var o,i=e.prototype;i&&i!==t;)o=Object.getPrototypeOf(i),i.__pro
to__=o,i=o;e.native=t}}function c(e){return g(M(e.tag),e)}function l(e){return e
?S[e.toLowerCase()]:void 0}function u(e,t){S[e]=t}function d(e){return function(
){return c(e)}}function p(e,t,n){return e===T?f(t,n):_(e,t)}function f(e,t){var
n=l(t||e);if(n){if(e==n.tag&&t==n.is)return new n.ctor;if(!t&&!n.is)return new n
.ctor}var r;return t?(r=f(e),r.setAttribute("is",t),r):(r=M(e),e.indexOf("-")>=0
&&b(r,HTMLElement),r)}function h(e){var t=O.call(this,e);return v(t),t}var m,w=e
.upgradeDocumentTree,v=e.upgrade,g=e.upgradeWithDefinition,b=e.implementPrototyp
e,y=e.useNative,E=["annotation-xml","color-profile","font-face","font-face-src",
"font-face-uri","font-face-format","font-face-name","missing-glyph"],S={},T="htt
p://www.w3.org/1999/xhtml",M=document.createElement.bind(document),_=document.cr
eateElementNS.bind(document),O=Node.prototype.cloneNode;m=Object.__proto__||y?fu
nction(e,t){return e instanceof t}:function(e,t){for(var n=e;n;){if(n===t.protot
ype)return!0;n=n.__proto__}return!1},document.registerElement=t,document.createE
lement=f,document.createElementNS=p,Node.prototype.cloneNode=h,e.registry=S,e.in
stanceof=m,e.reservedTagList=E,e.getRegisteredDefinition=l,document.register=doc
ument.registerElement}),function(e){function t(){a(wrap(document)),window.HTMLIm
ports&&(HTMLImports.__importsParsingHook=function(e){a(wrap(e.import))}),CustomE
lements.ready=!0,setTimeout(function(){CustomElements.readyTime=Date.now(),windo
w.HTMLImports&&(CustomElements.elapsed=CustomElements.readyTime-HTMLImports.read
yTime),document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0})
)})}var n=e.useNative,r=e.initializeModules,o=/Trident/.test(navigator.userAgent
);if(n){var i=function(){};e.watchShadow=i,e.upgrade=i,e.upgradeAll=i,e.upgradeD
ocumentTree=i,e.upgradeSubtree=i,e.takeRecords=i,e.instanceof=function(e,t){retu
rn e instanceof t}}else r();var a=e.upgradeDocumentTree;if(window.wrap||(window.
ShadowDOMPolyfill?(window.wrap=ShadowDOMPolyfill.wrapIfNeeded,window.unwrap=Shad
owDOMPolyfill.unwrapIfNeeded):window.wrap=window.unwrap=function(e){return e}),o
&&"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(e,t){t=t||
{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,Boolean(
t.bubbles),Boolean(t.cancelable),t.detail),n},window.CustomEvent.prototype=windo
w.Event.prototype),"complete"===document.readyState||e.flags.eager)t();else if("
interactive"!==document.readyState||window.attachEvent||window.HTMLImports&&!win
dow.HTMLImports.ready){var s=window.HTMLImports&&!HTMLImports.ready?"HTMLImports
Loaded":"DOMContentLoaded";window.addEventListener(s,t)}else t()}(window.CustomE
lements),function(){Function.prototype.bind||(Function.prototype.bind=function(e
){var t=this,n=Array.prototype.slice.call(arguments,1);return function(){var r=n
.slice();return r.push.apply(r,arguments),t.apply(e,r)}})}(window.WebComponents)
,function(e){"use strict";function t(){window.Polymer===o&&(window.Polymer=funct
ion(){throw new Error('You tried to use polymer without loading it first. To loa
d polymer, <link rel="import" href="components/polymer/polymer.html">')})}if(!wi
ndow.performance){var n=Date.now();window.performance={now:function(){return Dat
e.now()-n}}}window.requestAnimationFrame||(window.requestAnimationFrame=function
(){var e=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;ret
urn e?function(t){return e(function(){t(performance.now())})}:function(e){return
window.setTimeout(e,1e3/60)}}()),window.cancelAnimationFrame||(window.cancelAni
mationFrame=function(){return window.webkitCancelAnimationFrame||window.mozCance
lAnimationFrame||function(e){clearTimeout(e)}}());var r=[],o=function(e){"string
"!=typeof e&&1===arguments.length&&Array.prototype.push.call(arguments,document.
_currentScript),r.push(arguments)};window.Polymer=o,e.consumeDeclarations=functi
on(t){e.consumeDeclarations=function(){throw"Possible attempt to load Polymer tw
ice"},t&&t(r),r=null},HTMLImports.useNative?t():addEventListener("DOMContentLoad
ed",t)}(window.WebComponents),function(){var e=document.createElement("style");e
.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opac
ity: 0; display: block; overflow: hidden; position: relative; } \n";var t=docume
nt.querySelector("head");t.insertBefore(e,t.firstChild)}(window.WebComponents),f
unction(e){window.Platform=e}(window.WebComponents); |
OLD | NEW |