Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Side by Side Diff: tools/perf/page_sets/key_silk_cases/app-drawer.html

Issue 120753003: Add inbox_app to silk page set (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
None
OLDNEW
1 // Copyright (c) 2012 The Polymer Authors. All rights reserved. 1 <!doctype html>
2 <!--
3 Copyright 2013 The Polymer Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style
5 license that can be found in the LICENSE file.
6 -->
7 <html>
8 <head>
9 <title>app-widgets</title>
10 <script>// Copyright (c) 2012 The Polymer Authors. All rights reserved.
2 // 11 //
3 // Redistribution and use in source and binary forms, with or without 12 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are 13 // modification, are permitted provided that the following conditions are
5 // met: 14 // met:
6 // 15 //
7 // * Redistributions of source code must retain the above copyright 16 // * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer. 17 // notice, this list of conditions and the following disclaimer.
9 // * Redistributions in binary form must reproduce the above 18 // * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following disclaimer 19 // copyright notice, this list of conditions and the following disclaimer
11 // in the documentation and/or other materials provided with the 20 // in the documentation and/or other materials provided with the
(...skipping 10 matching lines...) Expand all
22 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 31 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 32 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 33 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 34 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 35 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 37
29 function PointerGestureEvent(a,b){var c=b||{},d=document.createEvent("Event"),e= {bubbles:Boolean(c.bubbles)===c.bubbles||!0,cancelable:Boolean(c.cancelable)===c .cancelable||!0};d.initEvent(a,e.bubbles,e.cancelable);for(var f,g=Object.keys(c ),h=0;h<g.length;h++)f=g[h],d[f]=c[f];return d.preventTap=this.preventTap,d}"und efined"==typeof WeakMap&&!function(){var a=Object.defineProperty,b=Date.now()%1e 9,c=function(){this.name="__st"+(1e9*Math.random()>>>0)+(b++ +"__")};c.prototype ={set:function(b,c){var d=b[this.name];d&&d[0]===b?d[1]=c:a(b,this.name,{value:[ b,c],writable:!0})},get:function(a){var b;return(b=a[this.name])&&b[0]===a?b[1]: void 0},"delete":function(a){this.set(a,void 0)}},window.WeakMap=c}(),function(a ){"use strict";function b(){function a(a){b=a}if("function"!=typeof Object.obser ve||"function"!=typeof Array.observe)return!1;var b=[],c={};if(Object.observe(c, a),c.id=1,c.id=2,delete c.id,Object.deliverChangeRecords(a),3!==b.length)return! 1;if("new"==b[0].type&&"updated"==b[1].type&&"deleted"==b[2].type)F="new",G="upd ated",H="reconfigured",I="deleted";else if("add"!=b[0].type||"update"!=b[1].type ||"delete"!=b[2].type)return console.error("Unexpected change record names for O bject.observe. Using dirty-checking instead"),!1;return Object.unobserve(c,a),c= [0],Array.observe(c,a),c[1]=1,c.length=0,Object.deliverChangeRecords(a),2!=b.len gth?!1:b[0].type!=J||b[1].type!=J?!1:(Array.unobserve(c,a),!0)}function c(){if(a .document&&"securityPolicy"in a.document&&!a.document.securityPolicy.allowsEval) return!1;try{var b=new Function("","return true;");return b()}catch(c){return!1} }function d(a){return+a===a>>>0}function e(a){return+a}function f(a){return a=== Object(a)}function g(a,b){return a===b?0!==a||1/a===1/b:M(a)&&M(b)?!0:a!==a&&b!= =b}function h(a){return"string"!=typeof a?!1:(a=a.trim(),""==a?!0:"."==a[0]?!1:U .test(a))}function i(a,b){if(b!==V)throw Error("Use Path.get to retrieve path ob jects");return""==a.trim()?this:d(a)?(this.push(a),this):(a.split(/\s*\.\s*/).fi lter(function(a){return a}).forEach(function(a){this.push(a)},this),L&&!K&&this. length&&(this.getValueFrom=this.compiledGetValueFromFn()),void 0)}function j(a){ if(a instanceof i)return a;null==a&&(a=""),"string"!=typeof a&&(a=String(a));var b=W[a];if(b)return b;if(!h(a))return X;var b=new i(a,V);return W[a]=b,b}functio n k(b){for(var c=0;Y>c&&b.check_();)b.report_(),c++;a.testingExposeCycleCount&&( a.dirtyCheckCycleCount=c)}function l(a){for(var b in a)return!1;return!0}functio n m(a){return l(a.added)&&l(a.removed)&&l(a.changed)}function n(a,b){var c={},d= {},e={};for(var f in b){var g=a[f];(void 0===g||g!==b[f])&&(f in a?g!==b[f]&&(e[ f]=g):d[f]=void 0)}for(var f in a)f in b||(c[f]=a[f]);return Array.isArray(a)&&a .length!==b.length&&(e.length=a.length),{added:c,removed:d,changed:e}}function o (a,b){var c=b||(Array.isArray(a)?[]:{});for(var d in a)c[d]=a[d];return Array.is Array(a)&&(c.length=a.length),c}function p(a,b,c){if(this.closed_=!1,this.object _=a,this.callback=b,this.target=c,this.reporting_=!0,K){var d=this;this.boundInt ernalCallback_=function(a){d.internalCallback_(a)}}q(this)}function q(a){$&&(Z.p ush(a),p._allObserversCount++)}function r(a,b,c){p.call(this,a,b,c),this.connect _(),this.sync_(!0)}function s(a,b,c){if(!Array.isArray(a))throw Error("Provided object is not an Array");r.call(this,a,b,c)}function t(a){this.arr=[],this.callb ack=a,this.isObserved=!0}function u(a,b,c,d,e,g){var b=b instanceof i?b:j(b);ret urn b.valid&&b.length&&f(a)?(p.call(this,a,c,d),this.transformFn_=e,this.setValu eFn_=g,this.path_=b,this.connect_(),this.sync_(!0),void 0):(this.value_=b.getVal ueFrom(a),this.value=e?e(this.value_):this.value_,this.closed_=!0,void 0)}functi on v(a,b,c,d){p.call(this,void 0,a,b),this.transformFn_=c,this.setValueFn_=d,thi s.observed_=[],this.values_=[],this.value=void 0,this.oldValue=void 0,this.oldVa lues_=void 0,this.changeFlags_=void 0,this.started_=!1}function w(a,b){if("funct ion"==typeof Object.observe){var c=Object.getNotifier(a);return function(d,e){va r f={object:a,type:d,name:b};2===arguments.length&&(f.oldValue=e),c.notify(f)}}} function x(a,b,c){for(var d={},e={},f=0;f<b.length;f++){var g=b[f];db[g.type]?(g .name in c||(c[g.name]=g.oldValue),g.type!=G&&(g.type!=F?g.name in d?(delete d[g .name],delete c[g.name]):e[g.name]=!0:g.name in e?delete e[g.name]:d[g.name]=!0) ):(console.error("Unknown changeRecord type: "+g.type),console.error(g))}for(var h in d)d[h]=a[h];for(var h in e)e[h]=void 0;var i={};for(var h in c)if(!(h in d ||h in e)){var j=a[h];c[h]!==j&&(i[h]=j)}return{added:d,removed:e,changed:i}}fun ction y(a,b,c){return{index:a,removed:b,addedCount:c}}function z(){}function A(a ,b,c,d,e,f){return ib.calcSplices(a,b,c,d,e,f)}function B(a,b,c,d){return c>b||a >d?-1:b==c||d==a?0:c>a?d>b?b-c:d-c:b>d?d-a:b-a}function C(a,b,c,d){for(var e=y(b ,c,d),f=!1,g=0,h=0;h<a.length;h++){var i=a[h];if(i.index+=g,!f){var j=B(e.index, e.index+e.removed.length,i.index,i.index+i.addedCount);if(j>=0){a.splice(h,1),h- -,g-=i.addedCount-i.removed.length,e.addedCount+=i.addedCount-j;var k=e.removed. length+i.removed.length-j;if(e.addedCount||k){var c=i.removed;if(e.index<i.index ){var l=e.removed.slice(0,i.index-e.index);Array.prototype.push.apply(l,c),c=l}i f(e.index+e.removed.length>i.index+i.addedCount){var m=e.removed.slice(i.index+i .addedCount-e.index);Array.prototype.push.apply(c,m)}e.removed=c,i.index<e.index &&(e.index=i.index)}else f=!0}else if(e.index<i.index){f=!0,a.splice(h,0,e),h++; var n=e.addedCount-e.removed.length;i.index+=n,g+=n}}}f||a.push(e)}function D(a, b){for(var c=[],f=0;f<b.length;f++){var g=b[f];switch(g.type){case J:C(c,g.index ,g.removed.slice(),g.addedCount);break;case F:case G:case I:if(!d(g.name))contin ue;var h=e(g.name);if(0>h)continue;C(c,h,[g.oldValue],1);break;default:console.e rror("Unexpected record type: "+JSON.stringify(g))}}return c}function E(a,b){var c=[];return D(a,b).forEach(function(b){return 1==b.addedCount&&1==b.removed.len gth?(b.removed[0]!==a[b.index]&&c.push(b),void 0):(c=c.concat(A(a,b.index,b.inde x+b.addedCount,b.removed,0,b.removed.length)),void 0)}),c}var F="add",G="update" ,H="reconfigure",I="delete",J="splice",K=b(),L=c(),M=a.Number.isNaN||function(b) {return"number"==typeof b&&a.isNaN(b)},N="__proto__"in{}?function(a){return a}:f unction(a){var b=a.__proto__;if(!b)return a;var c=Object.create(b);return Object .getOwnPropertyNames(a).forEach(function(b){Object.defineProperty(c,b,Object.get OwnPropertyDescriptor(a,b))}),c},O="[$_a-zA-Z]",P="[$_a-zA-Z0-9]",Q=O+"+"+P+"*", R="(?:[0-9]|[1-9]+[0-9]+)",S="(?:"+Q+"|"+R+")",T="(?:"+S+")(?:\\s*\\.\\s*"+S+")* ",U=new RegExp("^"+T+"$"),V={},W={};i.get=j,i.prototype=N({__proto__:[],valid:!0 ,toString:function(){return this.join(".")},getValueFrom:function(a,b){for(var c =0;c<this.length;c++){if(null==a)return;b&&b.observe(a),a=a[this[c]]}return a},c ompiledGetValueFromFn:function(){var a=this.map(function(a){return d(a)?'["'+a+' "]':"."+a}),b="",c="obj";b+="if (obj != null";for(var e=0;e<this.length-1;e++){{ this[e]}c+=a[e],b+=" &&\n "+c+" != null"}return b+=")\n",c+=a[e],b+=" retur n "+c+";\nelse\n return undefined;",new Function("obj",b)},setValueFrom:functio n(a,b){if(!this.length)return!1;for(var c=0;c<this.length-1;c++){if(!f(a))return !1;a=a[this[c]]}return f(a)?(a[this[c]]=b,!0):!1}});var X=new i("",V);X.valid=!1 ,X.getValueFrom=X.setValueFrom=function(){};var Y=1e3;p.prototype={internalCallb ack_:function(a){this.closed_||this.reporting_&&this.check_(a)&&(this.report_(), this.testingResults&&(this.testingResults.anyChanged=!0))},close:function(){this .closed_||(this.object_&&"function"==typeof this.object_.close&&this.object_.clo se(),this.disconnect_(),this.object_=void 0,this.closed_=!0)},deliver:function(a ){this.closed_||(K?(this.testingResults=a,Object.deliverChangeRecords(this.bound InternalCallback_),this.testingResults=void 0):k(this))},report_:function(){this .reporting_&&(this.sync_(!1),this.callback&&this.invokeCallback_(this.reportArgs ),this.reportArgs=void 0)},invokeCallback_:function(a){try{this.callback.apply(t his.target,a)}catch(b){p._errorThrownDuringCallback=!0,console.error("Exception caught during observer callback: "+(b.stack||b))}},reset:function(){this.closed_ ||(K&&(this.reporting_=!1,Object.deliverChangeRecords(this.boundInternalCallback _),this.reporting_=!0),this.sync_(!0))}};var Z,$=!K||a.forceCollectObservers;p._ allObserversCount=0,$&&(Z=[]);var _=!1,ab="function"==typeof Object.deliverAllCh angeRecords;a.Platform=a.Platform||{},a.Platform.performMicrotaskCheckpoint=func tion(){if(!_){if(ab)return Object.deliverAllChangeRecords(),void 0;if($){_=!0;va r b=0,c={};do{b++;var d=Z;Z=[],c.anyChanged=!1;for(var e=0;e<d.length;e++){var f =d[e];f.closed_||(K?f.deliver(c):f.check_()&&(c.anyChanged=!0,f.report_()),Z.pus h(f))}}while(Y>b&&c.anyChanged);a.testingExposeCycleCount&&(a.dirtyCheckCycleCou nt=b),p._allObserversCount=Z.length,_=!1}}},$&&(a.Platform.clearObservers=functi on(){Z=[]}),r.prototype=N({__proto__:p.prototype,connect_:function(){K&&Object.o bserve(this.object_,this.boundInternalCallback_)},sync_:function(){K||(this.oldO bject=o(this.object_))},check_:function(a){var b,c;if(K){if(!a)return!1;c={},b=x (this.object_,a,c)}else c=this.oldObject,b=n(this.object_,this.oldObject);return m(b)?!1:(this.reportArgs=[b.added||{},b.removed||{},b.changed||{}],this.reportA rgs.push(function(a){return c[a]}),!0)},disconnect_:function(){K?this.object_&&O bject.unobserve(this.object_,this.boundInternalCallback_):this.oldObject=void 0} }),s.prototype=N({__proto__:r.prototype,connect_:function(){K&&Array.observe(thi s.object_,this.boundInternalCallback_)},sync_:function(){K||(this.oldObject=this .object_.slice())},check_:function(a){var b;if(K){if(!a)return!1;b=E(this.object _,a)}else b=A(this.object_,0,this.object_.length,this.oldObject,0,this.oldObject .length);return b&&b.length?(this.reportArgs=[b],!0):!1}}),s.applySplices=functi on(a,b,c){c.forEach(function(c){for(var d=[c.index,c.removed.length],e=c.index;e <c.index+c.addedCount;)d.push(b[e]),e++;Array.prototype.splice.apply(a,d)})};var bb=Object.getPrototypeOf({}),cb=Object.getPrototypeOf([]);t.prototype={reset:fu nction(){this.isObserved=!this.isObserved},observe:function(a){if(f(a)&&a!==bb&& a!==cb){var b=this.arr.indexOf(a);b>=0&&this.arr[b+1]===this.isObserved||(0>b&&( b=this.arr.length,this.arr[b]=a,Object.observe(a,this.callback)),this.arr[b+1]=t his.isObserved,this.observe(Object.getPrototypeOf(a)))}},cleanup:function(){for( var a=0,b=0,c=this.isObserved;b<this.arr.length;){var d=this.arr[b];this.arr[b+1 ]==c?(b>a&&(this.arr[a]=d,this.arr[a+1]=c),a+=2):Object.unobserve(d,this.callbac k),b+=2}this.arr.length=a}},u.prototype=N({__proto__:p.prototype,connect_:functi on(){K&&(this.observedSet_=new t(this.boundInternalCallback_))},disconnect_:func tion(){this.value=void 0,this.value_=void 0,this.observedSet_&&(this.observedSet _.reset(),this.observedSet_.cleanup(),this.observedSet_=void 0)},check_:function (){return this.observedSet_&&this.observedSet_.reset(),this.value_=this.path_.ge tValueFrom(this.object_,this.observedSet_),this.observedSet_&&this.observedSet_. cleanup(),g(this.value_,this.oldValue_)?!1:(this.value=this.transformFn_?this.tr ansformFn_(this.value_):this.value_,this.reportArgs=[this.value,this.oldValue],! 0)},sync_:function(a){a&&(this.observedSet_&&this.observedSet_.reset(),this.valu e_=this.path_.getValueFrom(this.object_,this.observedSet_),this.value=this.trans formFn_?this.transformFn_(this.value_):this.value_,this.observedSet_&&this.obser vedSet_.cleanup()),this.oldValue_=this.value_,this.oldValue=this.value},setValue :function(a){this.setValueFn_?this.setValueFn_(a):this.path_&&this.path_.setValu eFrom(this.object_,a)}}),v.prototype=N({__proto__:u.prototype,addPath:function(a ,b){if(this.started_)throw Error("Cannot add more paths once started.");var b=b instanceof i?b:j(b),c=b.getValueFrom(a);this.observed_.push(a,b),this.values_.pu sh(c)},start:function(){this.started_=!0,this.connect_(),this.sync_(!0)},getValu es_:function(){this.observedSet_&&this.observedSet_.reset();for(var a=!1,b=0;b<t his.observed_.length;b+=2){var c=this.observed_[b+1],d=this.observed_[b],e=c.get ValueFrom(d,this.observedSet_),f=this.values_[b/2];if(!g(e,f)){if(!a&&!this.tran sformFn_){this.oldValues_=this.oldValues_||[],this.changeFlags_=this.changeFlags _||[];for(var h=0;h<this.values_.length;h++)this.oldValues_[h]=this.values_[h],t his.changeFlags_[h]=!1}this.transformFn_||(this.changeFlags_[b/2]=!0),this.value s_[b/2]=e,a=!0}}return this.observedSet_&&this.observedSet_.cleanup(),a},check_: function(){if(this.getValues_()){if(this.transformFn_){if(this.value=this.transf ormFn_(this.values_),g(this.value,this.oldValue))return!1;this.reportArgs=[this. value,this.oldValue]}else this.reportArgs=[this.values_,this.oldValues_,this.cha ngeFlags_,this.observed_];return!0}},sync_:function(a){a&&(this.getValues_(),thi s.transformFn_&&(this.value=this.transformFn_(this.values_))),this.transformFn_& &(this.oldValue=this.value)},close:function(){if(this.observed_){for(var a=0;a<t his.observed_.length;a+=2){var b=this.observed_[a];b&&"function"==typeof b.close &&b.close()}this.observed_=void 0,this.values_=void 0}p.prototype.close.call(thi s)}});var db={};db[F]=!0,db[G]=!0,db[I]=!0,u.defineProperty=function(a,b,c,d){d= j(d);var e=w(a,b),f=new u(c,d,function(a,b){e&&e(G,b)});return Object.defineProp erty(a,b,{get:function(){return d.getValueFrom(c)},set:function(a){d.setValueFro m(c,a)},configurable:!0}),{close:function(){var g=d.getValueFrom(c);e&&f.deliver (),f.close(),Object.defineProperty(a,b,{value:g,writable:!0,configurable:!0})}}} ;var eb=0,fb=1,gb=2,hb=3;z.prototype={calcEditDistances:function(a,b,c,d,e,f){fo r(var g=f-e+1,h=c-b+1,i=new Array(g),j=0;g>j;j++)i[j]=new Array(h),i[j][0]=j;for (var k=0;h>k;k++)i[0][k]=k;for(var j=1;g>j;j++)for(var k=1;h>k;k++)if(this.equal s(a[b+k-1],d[e+j-1]))i[j][k]=i[j-1][k-1];else{var l=i[j-1][k]+1,m=i[j][k-1]+1;i[ j][k]=m>l?l:m}return i},spliceOperationsFromEditDistances:function(a){for(var b= a.length-1,c=a[0].length-1,d=a[b][c],e=[];b>0||c>0;)if(0!=b)if(0!=c){var f,g=a[b -1][c-1],h=a[b-1][c],i=a[b][c-1];f=i>h?g>h?h:g:g>i?i:g,f==g?(g==d?e.push(eb):(e. push(fb),d=g),b--,c--):f==h?(e.push(hb),b--,d=h):(e.push(gb),c--,d=i)}else e.pus h(hb),b--;else e.push(gb),c--;return e.reverse(),e},calcSplices:function(a,b,c,d ,e,f){var g=0,h=0,i=Math.min(c-b,f-e);if(0==b&&0==e&&(g=this.sharedPrefix(a,d,i) ),c==a.length&&f==d.length&&(h=this.sharedSuffix(a,d,i-g)),b+=g,e+=g,c-=h,f-=h,c -b==0&&f-e==0)return[];if(b==c){for(var j=y(b,[],0);f>e;)j.removed.push(d[e++]); return[j]}if(e==f)return[y(b,[],c-b)];for(var k=this.spliceOperationsFromEditDis tances(this.calcEditDistances(a,b,c,d,e,f)),j=void 0,l=[],m=b,n=e,o=0;o<k.length ;o++)switch(k[o]){case eb:j&&(l.push(j),j=void 0),m++,n++;break;case fb:j||(j=y( m,[],0)),j.addedCount++,m++,j.removed.push(d[n]),n++;break;case gb:j||(j=y(m,[], 0)),j.addedCount++,m++;break;case hb:j||(j=y(m,[],0)),j.removed.push(d[n]),n++}r eturn j&&l.push(j),l},sharedPrefix:function(a,b,c){for(var d=0;c>d;d++)if(!this. equals(a[d],b[d]))return d;return c},sharedSuffix:function(a,b,c){for(var d=a.le ngth,e=b.length,f=0;c>f&&this.equals(a[--d],b[--e]);)f++;return f},calculateSpli ces:function(a,b){return this.calcSplices(a,0,a.length,b,0,b.length)},equals:fun ction(a,b){return a===b}};var ib=new z;a.Observer=p,a.Observer.hasObjectObserve= K,a.ArrayObserver=s,a.ArrayObserver.calculateSplices=function(a,b){return ib.cal culateSplices(a,b)},a.ArraySplice=z,a.ObjectObserver=r,a.PathObserver=u,a.Compou ndPathObserver=v,a.Path=i,a.Observer.changeRecordTypes={add:F,update:G,reconfigu re:H,"delete":I,splice:J}}("undefined"!=typeof global&&global?global:this||windo w),window.Platform=window.Platform||{},window.logFlags=window.logFlags||{},funct ion(a){var b=a.flags||{};location.search.slice(1).split("&").forEach(function(a) {a=a.split("="),a[0]&&(b[a[0]]=a[1]||!0)}),b.shadow=b.shadow||b.shadowdom||b.pol yfill,b.shadow="native"===b.shadow?!1:b.shadow||!HTMLElement.prototype.createSha dowRoot&&"polyfill",a.flags=b}(Platform),"polyfill"===Platform.flags.shadow?(win dow.ShadowDOMPolyfill={},function(a){"use strict";function b(a){if(!a)throw new Error("Assertion failed")}function c(a,b){return L(b).forEach(function(c){K(a,c, M(b,c))}),a}function d(a,b){return L(b).forEach(function(c){switch(c){case"argum ents":case"caller":case"length":case"name":case"prototype":case"toString":return }K(a,c,M(b,c))}),a}function e(a,b){for(var c=0;c<b.length;c++)if(b[c]in a)return b[c]}function f(a){var b=a.__proto__||Object.getPrototypeOf(a),c=E.get(b);if(c) return c;var d=f(b),e=t(d);return q(b,e,a),e}function g(a,b){o(a,b,!0)}function h(a,b){o(b,a,!1)}function i(a){return/^on[a-z]+$/.test(a)}function j(a){return/^ \w[a-zA-Z_0-9]*$/.test(a)}function k(a){return H&&j(a)?new Function("return this .impl."+a):function(){return this.impl[a]}}function l(a){return H&&j(a)?new Func tion("v","this.impl."+a+" = v"):function(b){this.impl[a]=b}}function m(a){return H&&j(a)?new Function("return this.impl."+a+".apply(this.impl, arguments)"):func tion(){return this.impl[a].apply(this.impl,arguments)}}function n(a,b){try{retur n Object.getOwnPropertyDescriptor(a,b)}catch(c){return O}}function o(b,c,d){for( var e=L(b),f=0;f<e.length;f++){var g=e[f];if("polymerBlackList_"!==g&&!(g in c|| b.polymerBlackList_&&b.polymerBlackList_[g])){N&&b.__lookupGetter__(g);var h,j,o =n(b,g);if(d&&"function"==typeof o.value)c[g]=m(g);else{var p=i(g);h=p?a.getEven tHandlerGetter(g):k(g),(o.writable||o.set)&&(j=p?a.getEventHandlerSetter(g):l(g) ),K(c,g,{get:h,set:j,configurable:o.configurable,enumerable:o.enumerable})}}}}fu nction p(a,b,c){var e=a.prototype;q(e,b,c),d(b,a)}function q(a,c,d){var e=c.prot otype;b(void 0===E.get(a)),E.set(a,c),F.set(e,a),g(a,e),d&&h(e,d),K(e,"construct or",{value:c,configurable:!0,enumerable:!1,writable:!0})}function r(a,b){return E.get(b.prototype)===a}function s(a){var b=Object.getPrototypeOf(a),c=f(b),d=t(c );return q(b,d,a),d}function t(a){function b(b){a.call(this,b)}return b.prototyp e=Object.create(a.prototype),b.prototype.constructor=b,b}function u(a){return a instanceof G.EventTarget||a instanceof G.Event||a instanceof G.Range||a instance of G.DOMImplementation||a instanceof G.CanvasRenderingContext2D||G.WebGLRenderin gContext&&a instanceof G.WebGLRenderingContext}function v(a){return a instanceof R||a instanceof Q||a instanceof S||a instanceof T||a instanceof P||a instanceof U||V&&a instanceof V}function w(a){return null===a?null:(b(v(a)),a.polymerWrapp er_||(a.polymerWrapper_=new(f(a))(a)))}function x(a){return null===a?null:(b(u(a )),a.impl)}function y(a){return a&&u(a)?x(a):a}function z(a){return a&&!u(a)?w(a ):a}function A(a,c){null!==c&&(b(v(a)),b(void 0===c||u(c)),a.polymerWrapper_=c)} function B(a,b,c){K(a.prototype,b,{get:c,configurable:!0,enumerable:!0})}functio n C(a,b){B(a,b,function(){return w(this.impl[b])})}function D(a,b){a.forEach(fun ction(a){b.forEach(function(b){a.prototype[b]=function(){var a=z(this);return a[ b].apply(a,arguments)}})})}var E=new WeakMap,F=new WeakMap,G=Object.create(null) ,H=!("securityPolicy"in document)||document.securityPolicy.allowsEval;if(H)try{v ar I=new Function("","return true;");H=I()}catch(J){H=!1}var K=Object.defineProp erty,L=Object.getOwnPropertyNames,M=Object.getOwnPropertyDescriptor;L(window);va r N=/Firefox/.test(navigator.userAgent),O={get:function(){},set:function(){},con figurable:!0,enumerable:!0},P=window.DOMImplementation,Q=window.Event,R=window.N ode,S=window.Window,T=window.Range,U=window.CanvasRenderingContext2D,V=window.We bGLRenderingContext;a.assert=b,a.constructorTable=E,a.defineGetter=B,a.defineWra pGetter=C,a.forwardMethodsToWrapper=D,a.isWrapper=u,a.isWrapperFor=r,a.mixin=c,a .nativePrototypeTable=F,a.oneOf=e,a.registerObject=s,a.registerWrapper=p,a.rewra p=A,a.unwrap=x,a.unwrapIfNeeded=y,a.wrap=w,a.wrapIfNeeded=z,a.wrappers=G}(window .ShadowDOMPolyfill),function(a){"use strict";function b(){g=!1;var a=f.slice(0); f=[];for(var b=0;b<a.length;b++)a[b]()}function c(a){f.push(a),g||(g=!0,d(b,0))} var d,e=window.MutationObserver,f=[],g=!1;if(e){var h=1,i=new e(b),j=document.cr eateTextNode(h);i.observe(j,{characterData:!0}),d=function(){h=(h+1)%2,j.data=h} }else d=window.setImmediate||window.setTimeout;a.setEndOfMicrotask=c}(window.Sha dowDOMPolyfill),function(a){"use strict";function b(){p||(k(c),p=!0)}function c( ){p=!1;do for(var a=o.slice(),b=!1,c=0;c<a.length;c++){var d=a[c],e=d.takeRecord s();f(d),e.length&&(d.callback_(e,d),b=!0)}while(b)}function d(a,b){this.type=a, this.target=b,this.addedNodes=new m.NodeList,this.removedNodes=new m.NodeList,th is.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attri buteNamespace=null,this.oldValue=null}function e(a,b){for(;a;a=a.parentNode){var c=n.get(a);if(c)for(var d=0;d<c.length;d++){var e=c[d];e.options.subtree&&e.add TransientObserver(b)}}}function f(a){for(var b=0;b<a.nodes_.length;b++){var c=a. nodes_[b],d=n.get(c);if(!d)return;for(var e=0;e<d.length;e++){var f=d[e];f.obser ver===a&&f.removeTransientObservers()}}}function g(a,c,e){for(var f=Object.creat e(null),g=Object.create(null),h=a;h;h=h.parentNode){var i=n.get(h);if(i)for(var j=0;j<i.length;j++){var k=i[j],l=k.options;if((h===a||l.subtree)&&!("attributes" ===c&&!l.attributes||"attributes"===c&&l.attributeFilter&&(null!==e.namespace||- 1===l.attributeFilter.indexOf(e.name))||"characterData"===c&&!l.characterData||" childList"===c&&!l.childList)){var m=k.observer;f[m.uid_]=m,("attributes"===c&&l .attributeOldValue||"characterData"===c&&l.characterDataOldValue)&&(g[m.uid_]=e. oldValue)}}}var o=!1;for(var p in f){var m=f[p],q=new d(c,a);"name"in e&&"namesp ace"in e&&(q.attributeName=e.name,q.attributeNamespace=e.namespace),e.addedNodes &&(q.addedNodes=e.addedNodes),e.removedNodes&&(q.removedNodes=e.removedNodes),e. previousSibling&&(q.previousSibling=e.previousSibling),e.nextSibling&&(q.nextSib ling=e.nextSibling),void 0!==g[p]&&(q.oldValue=g[p]),m.records_.push(q),o=!0}o&& b()}function h(a){if(this.childList=!!a.childList,this.subtree=!!a.subtree,this. attributes="attributes"in a||!("attributeOldValue"in a||"attributeFilter"in a)?! !a.attributes:!0,this.characterData="characterDataOldValue"in a&&!("characterDat a"in a)?!0:!!a.characterData,!this.attributes&&(a.attributeOldValue||"attributeF ilter"in a)||!this.characterData&&a.characterDataOldValue)throw new TypeError;if (this.characterData=!!a.characterData,this.attributeOldValue=!!a.attributeOldVal ue,this.characterDataOldValue=!!a.characterDataOldValue,"attributeFilter"in a){i f(null==a.attributeFilter||"object"!=typeof a.attributeFilter)throw new TypeErro r;this.attributeFilter=q.call(a.attributeFilter)}else this.attributeFilter=null} function i(a){this.callback_=a,this.nodes_=[],this.records_=[],this.uid_=++r,o.p ush(this)}function j(a,b,c){this.observer=a,this.target=b,this.options=c,this.tr ansientObservedNodes=[]}var k=a.setEndOfMicrotask,l=a.wrapIfNeeded,m=a.wrappers, n=new WeakMap,o=[],p=!1,q=Array.prototype.slice,r=0;i.prototype={observe:functio n(a,b){a=l(a);var c,d=new h(b),e=n.get(a);e||n.set(a,e=[]);for(var f=0;f<e.lengt h;f++)e[f].observer===this&&(c=e[f],c.removeTransientObservers(),c.options=d);c| |(c=new j(this,a,d),e.push(c),this.nodes_.push(a))},disconnect:function(){this.n odes_.forEach(function(a){for(var b=n.get(a),c=0;c<b.length;c++){var d=b[c];if(d .observer===this){b.splice(c,1);break}}},this),this.records_=[]},takeRecords:fun ction(){var a=this.records_;return this.records_=[],a}},j.prototype={addTransien tObserver:function(a){if(a!==this.target){this.transientObservedNodes.push(a);va r b=n.get(a);b||n.set(a,b=[]),b.push(this)}},removeTransientObservers:function() {var a=this.transientObservedNodes;this.transientObservedNodes=[];for(var b=0;b< a.length;b++)for(var c=a[b],d=n.get(c),e=0;e<d.length;e++)if(d[e]===this){d.spli ce(e,1);break}}},a.enqueueMutation=g,a.registerTransientObservers=e,a.wrappers.M utationObserver=i,a.wrappers.MutationRecord=d}(window.ShadowDOMPolyfill),functio n(a){"use strict";function b(a){return a instanceof O.ShadowRoot}function c(a){v ar b=a.localName;return"content"===b||"shadow"===b}function d(a){return!!a.shado wRoot}function e(a){var b;return a.parentNode||(b=a.defaultView)&&N(b)||null}fun ction f(f,g,h){if(h.length)return h.shift();if(b(f))return j(f)||f.host;var i=a. eventParentsTable.get(f);if(i){for(var k=1;k<i.length;k++)h[k-1]=i[k];return i[0 ]}if(g&&c(f)){var l=f.parentNode;if(l&&d(l))for(var m=a.getShadowTrees(l),n=j(g) ,k=0;k<m.length;k++)if(m[k].contains(n))return n}return e(f)}function g(a){for(v ar d=[],e=a,g=[],i=[];e;){var j=null;if(c(e)){j=h(d);var k=d[d.length-1]||e;d.pu sh(k)}else d.length||d.push(e);var l=d[d.length-1];g.push({target:l,currentTarge t:e}),b(e)&&d.pop(),e=f(e,j,i)}return g}function h(a){for(var b=a.length-1;b>=0; b--)if(!c(a[b]))return a[b];return null}function i(a,d){for(var e=[];a;){for(var g=[],i=d,j=void 0;i;){var l=null;if(g.length){if(c(i)&&(l=h(g),k(j))){var n=g[g .length-1];g.push(n)}}else g.push(i);if(m(i,a))return g[g.length-1];b(i)&&g.pop( ),j=i,i=f(i,l,e)}a=b(a)?a.host:a.parentNode}}function j(b){return a.insertionPar entTable.get(b)}function k(a){return j(a)}function l(a){for(var b;b=a.parentNode ;)a=b;return a}function m(a,b){return l(a)===l(b)}function n(a,b){return a===b?! 0:a instanceof O.ShadowRoot?n(l(a.host),b):!1}function o(a){return Q.get(a)?void 0:(Q.set(a,!0),p(N(a),N(a.target)))}function p(b,c){if(R.get(b))throw new Error ("InvalidStateError");R.set(b,!0),a.renderAllPending();var d=g(c);return"load"== =b.type&&2===d.length&&d[0].target instanceof O.Document&&d.shift(),Z.set(b,d),q (b,d)&&r(b,d)&&s(b,d),V.set(b,v.NONE),T.delete(b,null),R.delete(b),b.defaultPrev ented}function q(a,b){for(var c,d=b.length-1;d>0;d--){var e=b[d].target,f=b[d].c urrentTarget;if(e!==f&&(c=v.CAPTURING_PHASE,!t(b[d],a,c)))return!1}return!0}func tion r(a,b){var c=v.AT_TARGET;return t(b[0],a,c)}function s(a,b){for(var c,d=a.b ubbles,e=1;e<b.length;e++){var f=b[e].target,g=b[e].currentTarget;if(f===g)c=v.A T_TARGET;else{if(!d||X.get(a))continue;c=v.BUBBLING_PHASE}if(!t(b[e],a,c))return }}function t(a,b,c){var d=a.target,e=a.currentTarget,f=P.get(e);if(!f)return!0;i f("relatedTarget"in b){var g=M(b);if(g.relatedTarget){var h=N(g.relatedTarget),j =i(e,h);if(j===d)return!0;U.set(b,j)}}V.set(b,c);var k=b.type,l=!1;S.set(b,d),T. set(b,e);for(var m=0;m<f.length;m++){var n=f[m];if(n.removed)l=!0;else if(!(n.ty pe!==k||!n.capture&&c===v.CAPTURING_PHASE||n.capture&&c===v.BUBBLING_PHASE))try{ if("function"==typeof n.handler?n.handler.call(e,b):n.handler.handleEvent(b),X.g et(b))return!1}catch(o){window.onerror?window.onerror(o.message):console.error(o ,o.stack)}}if(l){var p=f.slice();f.length=0;for(var m=0;m<p.length;m++)p[m].remo ved||f.push(p[m])}return!W.get(b)}function u(a,b,c){this.type=a,this.handler=b,t his.capture=Boolean(c)}function v(a,b){return a instanceof $?(this.impl=a,void 0 ):N(z($,"Event",a,b))}function w(a){return a&&a.relatedTarget?Object.create(a,{r elatedTarget:{value:M(a.relatedTarget)}}):a}function x(a,b,c){var d=window[a],e= function(b,c){return b instanceof d?(this.impl=b,void 0):N(z(d,a,b,c))};if(e.pro totype=Object.create(b.prototype),c&&K(e.prototype,c),d)try{L(d,e,new d("temp")) }catch(f){L(d,e,document.createEvent(a))}return e}function y(a,b){return functio n(){arguments[b]=M(arguments[b]);var c=M(this);c[a].apply(c,arguments)}}function z(a,b,c,d){if(hb)return new a(c,w(d));var e=M(document.createEvent(b)),f=gb[b], g=[c];return Object.keys(f).forEach(function(a){var b=null!=d&&a in d?d[a]:f[a]; "relatedTarget"===a&&(b=M(b)),g.push(b)}),e["init"+b].apply(e,g),e}function A(){ v.call(this)}function B(a){return"function"==typeof a?!0:a&&a.handleEvent}functi on C(a){switch(a){case"DOMAttrModified":case"DOMAttributeNameChanged":case"DOMCh aracterDataModified":case"DOMElementNameChanged":case"DOMNodeInserted":case"DOMN odeInsertedIntoDocument":case"DOMNodeRemoved":case"DOMNodeRemovedFromDocument":c ase"DOMSubtreeModified":return!0}return!1}function D(a){this.impl=a}function E(a ){return a instanceof O.ShadowRoot&&(a=a.host),M(a)}function F(a){J(a,kb)}functi on G(b,c,d,e){a.renderAllPending();for(var f=N(lb.call(c.impl,d,e)),h=g(f,this), i=0;i<h.length;i++){var j=h[i];if(j.currentTarget===b)return j.target}return nul l}function H(a){return function(){var b=Y.get(this);return b&&b[a]&&b[a].value|| null}}function I(a){var b=a.slice(2);return function(c){var d=Y.get(this);d||(d= Object.create(null),Y.set(this,d));var e=d[a];if(e&&this.removeEventListener(b,e .wrapped,!1),"function"==typeof c){var f=function(b){var d=c.call(this,b);d===!1 ?b.preventDefault():"onbeforeunload"===a&&"string"==typeof d&&(b.returnValue=d)} ;this.addEventListener(b,f,!1),d[a]={value:c,wrapped:f}}}}var J=a.forwardMethods ToWrapper,K=a.mixin,L=a.registerWrapper,M=a.unwrap,N=a.wrap,O=a.wrappers,P=(new WeakMap,new WeakMap),Q=new WeakMap,R=new WeakMap,S=new WeakMap,T=new WeakMap,U=n ew WeakMap,V=new WeakMap,W=new WeakMap,X=new WeakMap,Y=new WeakMap,Z=new WeakMap ;u.prototype={equals:function(a){return this.handler===a.handler&&this.type===a. type&&this.capture===a.capture},get removed(){return null===this.handler},remove :function(){this.handler=null}};var $=window.Event;$.prototype.polymerBlackList_ ={returnValue:!0},v.prototype={get target(){return S.get(this)},get currentTarge t(){return T.get(this)},get eventPhase(){return V.get(this)},get path(){var a=ne w O.NodeList,b=Z.get(this);if(b){for(var c=0,d=b.length-1,e=l(T.get(this)),f=0;d >=f;f++){var g=b[f].currentTarget,h=l(g);n(e,h)&&(f!==d||g instanceof O.Node)&&( a[c++]=g)}a.length=c}return a},stopPropagation:function(){W.set(this,!0)},stopIm mediatePropagation:function(){W.set(this,!0),X.set(this,!0)}},L($,v,document.cre ateEvent("Event"));var _=x("UIEvent",v),ab=x("CustomEvent",v),bb={get relatedTar get(){return U.get(this)||N(M(this).relatedTarget)}},cb=K({initMouseEvent:y("ini tMouseEvent",14)},bb),db=K({initFocusEvent:y("initFocusEvent",5)},bb),eb=x("Mous eEvent",_,cb),fb=x("FocusEvent",_,db),gb=Object.create(null),hb=function(){try{n ew window.FocusEvent("focus")}catch(a){return!1}return!0}();if(!hb){var ib=funct ion(a,b,c){if(c){var d=gb[c];b=K(K({},d),b)}gb[a]=b};ib("Event",{bubbles:!1,canc elable:!1}),ib("CustomEvent",{detail:null},"Event"),ib("UIEvent",{view:null,deta il:0},"Event"),ib("MouseEvent",{screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey: !1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null},"UIEvent"),ib(" FocusEvent",{relatedTarget:null},"UIEvent")}A.prototype=Object.create(v.prototyp e),K(A.prototype,{get returnValue(){return this.impl.returnValue},set returnValu e(a){this.impl.returnValue=a}});var jb=window.EventTarget,kb=["addEventListener" ,"removeEventListener","dispatchEvent"];[Node,Window].forEach(function(a){var b= a.prototype;kb.forEach(function(a){Object.defineProperty(b,a+"_",{value:b[a]})}) }),D.prototype={addEventListener:function(a,b,c){if(B(b)&&!C(a)){var d=new u(a,b ,c),e=P.get(this);if(e){for(var f=0;f<e.length;f++)if(d.equals(e[f]))return}else e=[],P.set(this,e);e.push(d);var g=E(this);g.addEventListener_(a,o,!0)}},remove EventListener:function(a,b,c){c=Boolean(c);var d=P.get(this);if(d){for(var e=0,f =!1,g=0;g<d.length;g++)d[g].type===a&&d[g].capture===c&&(e++,d[g].handler===b&&( f=!0,d[g].remove()));if(f&&1===e){var h=E(this);h.removeEventListener_(a,o,!0)}} },dispatchEvent:function(a){p(a,this)}},jb&&L(jb,D);var lb=document.elementFromP oint;a.adjustRelatedTarget=i,a.elementFromPoint=G,a.getEventHandlerGetter=H,a.ge tEventHandlerSetter=I,a.wrapEventTargetMethods=F,a.wrappers.BeforeUnloadEvent=A, a.wrappers.CustomEvent=ab,a.wrappers.Event=v,a.wrappers.EventTarget=D,a.wrappers .FocusEvent=fb,a.wrappers.MouseEvent=eb,a.wrappers.UIEvent=_}(window.ShadowDOMPo lyfill),function(a){"use strict";function b(a,b){Object.defineProperty(a,b,{enum erable:!1})}function c(){this.length=0,b(this,"length")}function d(a){if(null==a )return a;for(var b=new c,d=0,e=a.length;e>d;d++)b[d]=f(a[d]);return b.length=e, b}function e(a,b){a.prototype[b]=function(){return d(this.impl[b].apply(this.imp l,arguments))}}var f=a.wrap;c.prototype={item:function(a){return this[a]}},b(c.p rototype,"item"),a.wrappers.NodeList=c,a.addWrapNodeListMethod=e,a.wrapNodeList= d 38 function PointerGestureEvent(a,b){var c=b||{},d=document.createEvent("Event"),e= {bubbles:Boolean(c.bubbles)===c.bubbles||!0,cancelable:Boolean(c.cancelable)===c .cancelable||!0};d.initEvent(a,e.bubbles,e.cancelable);for(var f,g=Object.keys(c ),h=0;h<g.length;h++)f=g[h],d[f]=c[f];return d.preventTap=this.preventTap,d}"und efined"==typeof WeakMap&&!function(){var a=Object.defineProperty,b=Date.now()%1e 9,c=function(){this.name="__st"+(1e9*Math.random()>>>0)+(b++ +"__")};c.prototype ={set:function(b,c){var d=b[this.name];d&&d[0]===b?d[1]=c:a(b,this.name,{value:[ b,c],writable:!0})},get:function(a){var b;return(b=a[this.name])&&b[0]===a?b[1]: void 0},"delete":function(a){this.set(a,void 0)}},window.WeakMap=c}(),function(a ){"use strict";function b(){function a(a){b=a}if("function"!=typeof Object.obser ve||"function"!=typeof Array.observe)return!1;var b=[],c={};if(Object.observe(c, a),c.id=1,c.id=2,delete c.id,Object.deliverChangeRecords(a),3!==b.length)return! 1;if("new"==b[0].type&&"updated"==b[1].type&&"deleted"==b[2].type)F="new",G="upd ated",H="reconfigured",I="deleted";else if("add"!=b[0].type||"update"!=b[1].type ||"delete"!=b[2].type)return console.error("Unexpected change record names for O bject.observe. Using dirty-checking instead"),!1;return Object.unobserve(c,a),c= [0],Array.observe(c,a),c[1]=1,c.length=0,Object.deliverChangeRecords(a),2!=b.len gth?!1:b[0].type!=J||b[1].type!=J?!1:(Array.unobserve(c,a),!0)}function c(){if(a .document&&"securityPolicy"in a.document&&!a.document.securityPolicy.allowsEval) return!1;try{var b=new Function("","return true;");return b()}catch(c){return!1} }function d(a){return+a===a>>>0}function e(a){return+a}function f(a){return a=== Object(a)}function g(a,b){return a===b?0!==a||1/a===1/b:M(a)&&M(b)?!0:a!==a&&b!= =b}function h(a){return"string"!=typeof a?!1:(a=a.trim(),""==a?!0:"."==a[0]?!1:U .test(a))}function i(a,b){if(b!==V)throw Error("Use Path.get to retrieve path ob jects");return""==a.trim()?this:d(a)?(this.push(a),this):(a.split(/\s*\.\s*/).fi lter(function(a){return a}).forEach(function(a){this.push(a)},this),L&&!K&&this. length&&(this.getValueFrom=this.compiledGetValueFromFn()),void 0)}function j(a){ if(a instanceof i)return a;null==a&&(a=""),"string"!=typeof a&&(a=String(a));var b=W[a];if(b)return b;if(!h(a))return X;var b=new i(a,V);return W[a]=b,b}functio n k(b){for(var c=0;Y>c&&b.check_();)b.report_(),c++;a.testingExposeCycleCount&&( a.dirtyCheckCycleCount=c)}function l(a){for(var b in a)return!1;return!0}functio n m(a){return l(a.added)&&l(a.removed)&&l(a.changed)}function n(a,b){var c={},d= {},e={};for(var f in b){var g=a[f];(void 0===g||g!==b[f])&&(f in a?g!==b[f]&&(e[ f]=g):d[f]=void 0)}for(var f in a)f in b||(c[f]=a[f]);return Array.isArray(a)&&a .length!==b.length&&(e.length=a.length),{added:c,removed:d,changed:e}}function o (a,b){var c=b||(Array.isArray(a)?[]:{});for(var d in a)c[d]=a[d];return Array.is Array(a)&&(c.length=a.length),c}function p(a,b,c){if(this.closed_=!1,this.object _=a,this.callback=b,this.target=c,this.reporting_=!0,K){var d=this;this.boundInt ernalCallback_=function(a){d.internalCallback_(a)}}q(this)}function q(a){$&&(Z.p ush(a),p._allObserversCount++)}function r(a,b,c){p.call(this,a,b,c),this.connect _(),this.sync_(!0)}function s(a,b,c){if(!Array.isArray(a))throw Error("Provided object is not an Array");r.call(this,a,b,c)}function t(a){this.arr=[],this.callb ack=a,this.isObserved=!0}function u(a,b,c,d,e,g){var b=b instanceof i?b:j(b);ret urn b.valid&&b.length&&f(a)?(p.call(this,a,c,d),this.transformFn_=e,this.setValu eFn_=g,this.path_=b,this.connect_(),this.sync_(!0),void 0):(this.value_=b.getVal ueFrom(a),this.value=e?e(this.value_):this.value_,this.closed_=!0,void 0)}functi on v(a,b,c,d){p.call(this,void 0,a,b),this.transformFn_=c,this.setValueFn_=d,thi s.observed_=[],this.values_=[],this.value=void 0,this.oldValue=void 0,this.oldVa lues_=void 0,this.changeFlags_=void 0,this.started_=!1}function w(a,b){if("funct ion"==typeof Object.observe){var c=Object.getNotifier(a);return function(d,e){va r f={object:a,type:d,name:b};2===arguments.length&&(f.oldValue=e),c.notify(f)}}} function x(a,b,c){for(var d={},e={},f=0;f<b.length;f++){var g=b[f];db[g.type]?(g .name in c||(c[g.name]=g.oldValue),g.type!=G&&(g.type!=F?g.name in d?(delete d[g .name],delete c[g.name]):e[g.name]=!0:g.name in e?delete e[g.name]:d[g.name]=!0) ):(console.error("Unknown changeRecord type: "+g.type),console.error(g))}for(var h in d)d[h]=a[h];for(var h in e)e[h]=void 0;var i={};for(var h in c)if(!(h in d ||h in e)){var j=a[h];c[h]!==j&&(i[h]=j)}return{added:d,removed:e,changed:i}}fun ction y(a,b,c){return{index:a,removed:b,addedCount:c}}function z(){}function A(a ,b,c,d,e,f){return ib.calcSplices(a,b,c,d,e,f)}function B(a,b,c,d){return c>b||a >d?-1:b==c||d==a?0:c>a?d>b?b-c:d-c:b>d?d-a:b-a}function C(a,b,c,d){for(var e=y(b ,c,d),f=!1,g=0,h=0;h<a.length;h++){var i=a[h];if(i.index+=g,!f){var j=B(e.index, e.index+e.removed.length,i.index,i.index+i.addedCount);if(j>=0){a.splice(h,1),h- -,g-=i.addedCount-i.removed.length,e.addedCount+=i.addedCount-j;var k=e.removed. length+i.removed.length-j;if(e.addedCount||k){var c=i.removed;if(e.index<i.index ){var l=e.removed.slice(0,i.index-e.index);Array.prototype.push.apply(l,c),c=l}i f(e.index+e.removed.length>i.index+i.addedCount){var m=e.removed.slice(i.index+i .addedCount-e.index);Array.prototype.push.apply(c,m)}e.removed=c,i.index<e.index &&(e.index=i.index)}else f=!0}else if(e.index<i.index){f=!0,a.splice(h,0,e),h++; var n=e.addedCount-e.removed.length;i.index+=n,g+=n}}}f||a.push(e)}function D(a, b){for(var c=[],f=0;f<b.length;f++){var g=b[f];switch(g.type){case J:C(c,g.index ,g.removed.slice(),g.addedCount);break;case F:case G:case I:if(!d(g.name))contin ue;var h=e(g.name);if(0>h)continue;C(c,h,[g.oldValue],1);break;default:console.e rror("Unexpected record type: "+JSON.stringify(g))}}return c}function E(a,b){var c=[];return D(a,b).forEach(function(b){return 1==b.addedCount&&1==b.removed.len gth?(b.removed[0]!==a[b.index]&&c.push(b),void 0):(c=c.concat(A(a,b.index,b.inde x+b.addedCount,b.removed,0,b.removed.length)),void 0)}),c}var F="add",G="update" ,H="reconfigure",I="delete",J="splice",K=b(),L=c(),M=a.Number.isNaN||function(b) {return"number"==typeof b&&a.isNaN(b)},N="__proto__"in{}?function(a){return a}:f unction(a){var b=a.__proto__;if(!b)return a;var c=Object.create(b);return Object .getOwnPropertyNames(a).forEach(function(b){Object.defineProperty(c,b,Object.get OwnPropertyDescriptor(a,b))}),c},O="[$_a-zA-Z]",P="[$_a-zA-Z0-9]",Q=O+"+"+P+"*", R="(?:[0-9]|[1-9]+[0-9]+)",S="(?:"+Q+"|"+R+")",T="(?:"+S+")(?:\\s*\\.\\s*"+S+")* ",U=new RegExp("^"+T+"$"),V={},W={};i.get=j,i.prototype=N({__proto__:[],valid:!0 ,toString:function(){return this.join(".")},getValueFrom:function(a,b){for(var c =0;c<this.length;c++){if(null==a)return;b&&b.observe(a),a=a[this[c]]}return a},c ompiledGetValueFromFn:function(){var a=this.map(function(a){return d(a)?'["'+a+' "]':"."+a}),b="",c="obj";b+="if (obj != null";for(var e=0;e<this.length-1;e++){{ this[e]}c+=a[e],b+=" &&\n "+c+" != null"}return b+=")\n",c+=a[e],b+=" retur n "+c+";\nelse\n return undefined;",new Function("obj",b)},setValueFrom:functio n(a,b){if(!this.length)return!1;for(var c=0;c<this.length-1;c++){if(!f(a))return !1;a=a[this[c]]}return f(a)?(a[this[c]]=b,!0):!1}});var X=new i("",V);X.valid=!1 ,X.getValueFrom=X.setValueFrom=function(){};var Y=1e3;p.prototype={internalCallb ack_:function(a){this.closed_||this.reporting_&&this.check_(a)&&(this.report_(), this.testingResults&&(this.testingResults.anyChanged=!0))},close:function(){this .closed_||(this.object_&&"function"==typeof this.object_.close&&this.object_.clo se(),this.disconnect_(),this.object_=void 0,this.closed_=!0)},deliver:function(a ){this.closed_||(K?(this.testingResults=a,Object.deliverChangeRecords(this.bound InternalCallback_),this.testingResults=void 0):k(this))},report_:function(){this .reporting_&&(this.sync_(!1),this.callback&&this.invokeCallback_(this.reportArgs ),this.reportArgs=void 0)},invokeCallback_:function(a){try{this.callback.apply(t his.target,a)}catch(b){p._errorThrownDuringCallback=!0,console.error("Exception caught during observer callback: "+(b.stack||b))}},reset:function(){this.closed_ ||(K&&(this.reporting_=!1,Object.deliverChangeRecords(this.boundInternalCallback _),this.reporting_=!0),this.sync_(!0))}};var Z,$=!K||a.forceCollectObservers;p._ allObserversCount=0,$&&(Z=[]);var _=!1,ab="function"==typeof Object.deliverAllCh angeRecords;a.Platform=a.Platform||{},a.Platform.performMicrotaskCheckpoint=func tion(){if(!_){if(ab)return Object.deliverAllChangeRecords(),void 0;if($){_=!0;va r b=0,c={};do{b++;var d=Z;Z=[],c.anyChanged=!1;for(var e=0;e<d.length;e++){var f =d[e];f.closed_||(K?f.deliver(c):f.check_()&&(c.anyChanged=!0,f.report_()),Z.pus h(f))}}while(Y>b&&c.anyChanged);a.testingExposeCycleCount&&(a.dirtyCheckCycleCou nt=b),p._allObserversCount=Z.length,_=!1}}},$&&(a.Platform.clearObservers=functi on(){Z=[]}),r.prototype=N({__proto__:p.prototype,connect_:function(){K&&Object.o bserve(this.object_,this.boundInternalCallback_)},sync_:function(){K||(this.oldO bject=o(this.object_))},check_:function(a){var b,c;if(K){if(!a)return!1;c={},b=x (this.object_,a,c)}else c=this.oldObject,b=n(this.object_,this.oldObject);return m(b)?!1:(this.reportArgs=[b.added||{},b.removed||{},b.changed||{}],this.reportA rgs.push(function(a){return c[a]}),!0)},disconnect_:function(){K?this.object_&&O bject.unobserve(this.object_,this.boundInternalCallback_):this.oldObject=void 0} }),s.prototype=N({__proto__:r.prototype,connect_:function(){K&&Array.observe(thi s.object_,this.boundInternalCallback_)},sync_:function(){K||(this.oldObject=this .object_.slice())},check_:function(a){var b;if(K){if(!a)return!1;b=E(this.object _,a)}else b=A(this.object_,0,this.object_.length,this.oldObject,0,this.oldObject .length);return b&&b.length?(this.reportArgs=[b],!0):!1}}),s.applySplices=functi on(a,b,c){c.forEach(function(c){for(var d=[c.index,c.removed.length],e=c.index;e <c.index+c.addedCount;)d.push(b[e]),e++;Array.prototype.splice.apply(a,d)})};var bb=Object.getPrototypeOf({}),cb=Object.getPrototypeOf([]);t.prototype={reset:fu nction(){this.isObserved=!this.isObserved},observe:function(a){if(f(a)&&a!==bb&& a!==cb){var b=this.arr.indexOf(a);b>=0&&this.arr[b+1]===this.isObserved||(0>b&&( b=this.arr.length,this.arr[b]=a,Object.observe(a,this.callback)),this.arr[b+1]=t his.isObserved,this.observe(Object.getPrototypeOf(a)))}},cleanup:function(){for( var a=0,b=0,c=this.isObserved;b<this.arr.length;){var d=this.arr[b];this.arr[b+1 ]==c?(b>a&&(this.arr[a]=d,this.arr[a+1]=c),a+=2):Object.unobserve(d,this.callbac k),b+=2}this.arr.length=a}},u.prototype=N({__proto__:p.prototype,connect_:functi on(){K&&(this.observedSet_=new t(this.boundInternalCallback_))},disconnect_:func tion(){this.value=void 0,this.value_=void 0,this.observedSet_&&(this.observedSet _.reset(),this.observedSet_.cleanup(),this.observedSet_=void 0)},check_:function (){return this.observedSet_&&this.observedSet_.reset(),this.value_=this.path_.ge tValueFrom(this.object_,this.observedSet_),this.observedSet_&&this.observedSet_. cleanup(),g(this.value_,this.oldValue_)?!1:(this.value=this.transformFn_?this.tr ansformFn_(this.value_):this.value_,this.reportArgs=[this.value,this.oldValue],! 0)},sync_:function(a){a&&(this.observedSet_&&this.observedSet_.reset(),this.valu e_=this.path_.getValueFrom(this.object_,this.observedSet_),this.value=this.trans formFn_?this.transformFn_(this.value_):this.value_,this.observedSet_&&this.obser vedSet_.cleanup()),this.oldValue_=this.value_,this.oldValue=this.value},setValue :function(a){this.setValueFn_?this.setValueFn_(a):this.path_&&this.path_.setValu eFrom(this.object_,a)}}),v.prototype=N({__proto__:u.prototype,addPath:function(a ,b){if(this.started_)throw Error("Cannot add more paths once started.");var b=b instanceof i?b:j(b),c=b.getValueFrom(a);this.observed_.push(a,b),this.values_.pu sh(c)},start:function(){this.started_=!0,this.connect_(),this.sync_(!0)},getValu es_:function(){this.observedSet_&&this.observedSet_.reset();for(var a=!1,b=0;b<t his.observed_.length;b+=2){var c=this.observed_[b+1],d=this.observed_[b],e=c.get ValueFrom(d,this.observedSet_),f=this.values_[b/2];if(!g(e,f)){if(!a&&!this.tran sformFn_){this.oldValues_=this.oldValues_||[],this.changeFlags_=this.changeFlags _||[];for(var h=0;h<this.values_.length;h++)this.oldValues_[h]=this.values_[h],t his.changeFlags_[h]=!1}this.transformFn_||(this.changeFlags_[b/2]=!0),this.value s_[b/2]=e,a=!0}}return this.observedSet_&&this.observedSet_.cleanup(),a},check_: function(){if(this.getValues_()){if(this.transformFn_){if(this.value=this.transf ormFn_(this.values_),g(this.value,this.oldValue))return!1;this.reportArgs=[this. value,this.oldValue]}else this.reportArgs=[this.values_,this.oldValues_,this.cha ngeFlags_,this.observed_];return!0}},sync_:function(a){a&&(this.getValues_(),thi s.transformFn_&&(this.value=this.transformFn_(this.values_))),this.transformFn_& &(this.oldValue=this.value)},close:function(){if(this.observed_){for(var a=0;a<t his.observed_.length;a+=2){var b=this.observed_[a];b&&"function"==typeof b.close &&b.close()}this.observed_=void 0,this.values_=void 0}p.prototype.close.call(thi s)}});var db={};db[F]=!0,db[G]=!0,db[I]=!0,u.defineProperty=function(a,b,c,d){d= j(d);var e=w(a,b),f=new u(c,d,function(a,b){e&&e(G,b)});return Object.defineProp erty(a,b,{get:function(){return d.getValueFrom(c)},set:function(a){d.setValueFro m(c,a)},configurable:!0}),{close:function(){var g=d.getValueFrom(c);e&&f.deliver (),f.close(),Object.defineProperty(a,b,{value:g,writable:!0,configurable:!0})}}} ;var eb=0,fb=1,gb=2,hb=3;z.prototype={calcEditDistances:function(a,b,c,d,e,f){fo r(var g=f-e+1,h=c-b+1,i=new Array(g),j=0;g>j;j++)i[j]=new Array(h),i[j][0]=j;for (var k=0;h>k;k++)i[0][k]=k;for(var j=1;g>j;j++)for(var k=1;h>k;k++)if(this.equal s(a[b+k-1],d[e+j-1]))i[j][k]=i[j-1][k-1];else{var l=i[j-1][k]+1,m=i[j][k-1]+1;i[ j][k]=m>l?l:m}return i},spliceOperationsFromEditDistances:function(a){for(var b= a.length-1,c=a[0].length-1,d=a[b][c],e=[];b>0||c>0;)if(0!=b)if(0!=c){var f,g=a[b -1][c-1],h=a[b-1][c],i=a[b][c-1];f=i>h?g>h?h:g:g>i?i:g,f==g?(g==d?e.push(eb):(e. push(fb),d=g),b--,c--):f==h?(e.push(hb),b--,d=h):(e.push(gb),c--,d=i)}else e.pus h(hb),b--;else e.push(gb),c--;return e.reverse(),e},calcSplices:function(a,b,c,d ,e,f){var g=0,h=0,i=Math.min(c-b,f-e);if(0==b&&0==e&&(g=this.sharedPrefix(a,d,i) ),c==a.length&&f==d.length&&(h=this.sharedSuffix(a,d,i-g)),b+=g,e+=g,c-=h,f-=h,c -b==0&&f-e==0)return[];if(b==c){for(var j=y(b,[],0);f>e;)j.removed.push(d[e++]); return[j]}if(e==f)return[y(b,[],c-b)];for(var k=this.spliceOperationsFromEditDis tances(this.calcEditDistances(a,b,c,d,e,f)),j=void 0,l=[],m=b,n=e,o=0;o<k.length ;o++)switch(k[o]){case eb:j&&(l.push(j),j=void 0),m++,n++;break;case fb:j||(j=y( m,[],0)),j.addedCount++,m++,j.removed.push(d[n]),n++;break;case gb:j||(j=y(m,[], 0)),j.addedCount++,m++;break;case hb:j||(j=y(m,[],0)),j.removed.push(d[n]),n++}r eturn j&&l.push(j),l},sharedPrefix:function(a,b,c){for(var d=0;c>d;d++)if(!this. equals(a[d],b[d]))return d;return c},sharedSuffix:function(a,b,c){for(var d=a.le ngth,e=b.length,f=0;c>f&&this.equals(a[--d],b[--e]);)f++;return f},calculateSpli ces:function(a,b){return this.calcSplices(a,0,a.length,b,0,b.length)},equals:fun ction(a,b){return a===b}};var ib=new z;a.Observer=p,a.Observer.hasObjectObserve= K,a.ArrayObserver=s,a.ArrayObserver.calculateSplices=function(a,b){return ib.cal culateSplices(a,b)},a.ArraySplice=z,a.ObjectObserver=r,a.PathObserver=u,a.Compou ndPathObserver=v,a.Path=i,a.Observer.changeRecordTypes={add:F,update:G,reconfigu re:H,"delete":I,splice:J}}("undefined"!=typeof global&&global?global:this||windo w),window.Platform=window.Platform||{},window.logFlags=window.logFlags||{},funct ion(a){var b=a.flags||{};location.search.slice(1).split("&").forEach(function(a) {a=a.split("="),a[0]&&(b[a[0]]=a[1]||!0)}),b.shadow=b.shadow||b.shadowdom||b.pol yfill,b.shadow="native"===b.shadow?!1:b.shadow||!HTMLElement.prototype.createSha dowRoot&&"polyfill",a.flags=b}(Platform),"polyfill"===Platform.flags.shadow?(win dow.ShadowDOMPolyfill={},function(a){"use strict";function b(a){if(!a)throw new Error("Assertion failed")}function c(a,b){return L(b).forEach(function(c){K(a,c, M(b,c))}),a}function d(a,b){return L(b).forEach(function(c){switch(c){case"argum ents":case"caller":case"length":case"name":case"prototype":case"toString":return }K(a,c,M(b,c))}),a}function e(a,b){for(var c=0;c<b.length;c++)if(b[c]in a)return b[c]}function f(a){var b=a.__proto__||Object.getPrototypeOf(a),c=E.get(b);if(c) return c;var d=f(b),e=t(d);return q(b,e,a),e}function g(a,b){o(a,b,!0)}function h(a,b){o(b,a,!1)}function i(a){return/^on[a-z]+$/.test(a)}function j(a){return/^ \w[a-zA-Z_0-9]*$/.test(a)}function k(a){return H&&j(a)?new Function("return this .impl."+a):function(){return this.impl[a]}}function l(a){return H&&j(a)?new Func tion("v","this.impl."+a+" = v"):function(b){this.impl[a]=b}}function m(a){return H&&j(a)?new Function("return this.impl."+a+".apply(this.impl, arguments)"):func tion(){return this.impl[a].apply(this.impl,arguments)}}function n(a,b){try{retur n Object.getOwnPropertyDescriptor(a,b)}catch(c){return O}}function o(b,c,d){for( var e=L(b),f=0;f<e.length;f++){var g=e[f];if("polymerBlackList_"!==g&&!(g in c|| b.polymerBlackList_&&b.polymerBlackList_[g])){N&&b.__lookupGetter__(g);var h,j,o =n(b,g);if(d&&"function"==typeof o.value)c[g]=m(g);else{var p=i(g);h=p?a.getEven tHandlerGetter(g):k(g),(o.writable||o.set)&&(j=p?a.getEventHandlerSetter(g):l(g) ),K(c,g,{get:h,set:j,configurable:o.configurable,enumerable:o.enumerable})}}}}fu nction p(a,b,c){var e=a.prototype;q(e,b,c),d(b,a)}function q(a,c,d){var e=c.prot otype;b(void 0===E.get(a)),E.set(a,c),F.set(e,a),g(a,e),d&&h(e,d),K(e,"construct or",{value:c,configurable:!0,enumerable:!1,writable:!0})}function r(a,b){return E.get(b.prototype)===a}function s(a){var b=Object.getPrototypeOf(a),c=f(b),d=t(c );return q(b,d,a),d}function t(a){function b(b){a.call(this,b)}return b.prototyp e=Object.create(a.prototype),b.prototype.constructor=b,b}function u(a){return a instanceof G.EventTarget||a instanceof G.Event||a instanceof G.Range||a instance of G.DOMImplementation||a instanceof G.CanvasRenderingContext2D||G.WebGLRenderin gContext&&a instanceof G.WebGLRenderingContext}function v(a){return a instanceof R||a instanceof Q||a instanceof S||a instanceof T||a instanceof P||a instanceof U||V&&a instanceof V}function w(a){return null===a?null:(b(v(a)),a.polymerWrapp er_||(a.polymerWrapper_=new(f(a))(a)))}function x(a){return null===a?null:(b(u(a )),a.impl)}function y(a){return a&&u(a)?x(a):a}function z(a){return a&&!u(a)?w(a ):a}function A(a,c){null!==c&&(b(v(a)),b(void 0===c||u(c)),a.polymerWrapper_=c)} function B(a,b,c){K(a.prototype,b,{get:c,configurable:!0,enumerable:!0})}functio n C(a,b){B(a,b,function(){return w(this.impl[b])})}function D(a,b){a.forEach(fun ction(a){b.forEach(function(b){a.prototype[b]=function(){var a=z(this);return a[ b].apply(a,arguments)}})})}var E=new WeakMap,F=new WeakMap,G=Object.create(null) ,H=!("securityPolicy"in document)||document.securityPolicy.allowsEval;if(H)try{v ar I=new Function("","return true;");H=I()}catch(J){H=!1}var K=Object.defineProp erty,L=Object.getOwnPropertyNames,M=Object.getOwnPropertyDescriptor;L(window);va r N=/Firefox/.test(navigator.userAgent),O={get:function(){},set:function(){},con figurable:!0,enumerable:!0},P=window.DOMImplementation,Q=window.Event,R=window.N ode,S=window.Window,T=window.Range,U=window.CanvasRenderingContext2D,V=window.We bGLRenderingContext;a.assert=b,a.constructorTable=E,a.defineGetter=B,a.defineWra pGetter=C,a.forwardMethodsToWrapper=D,a.isWrapper=u,a.isWrapperFor=r,a.mixin=c,a .nativePrototypeTable=F,a.oneOf=e,a.registerObject=s,a.registerWrapper=p,a.rewra p=A,a.unwrap=x,a.unwrapIfNeeded=y,a.wrap=w,a.wrapIfNeeded=z,a.wrappers=G}(window .ShadowDOMPolyfill),function(a){"use strict";function b(){g=!1;var a=f.slice(0); f=[];for(var b=0;b<a.length;b++)a[b]()}function c(a){f.push(a),g||(g=!0,d(b,0))} var d,e=window.MutationObserver,f=[],g=!1;if(e){var h=1,i=new e(b),j=document.cr eateTextNode(h);i.observe(j,{characterData:!0}),d=function(){h=(h+1)%2,j.data=h} }else d=window.setImmediate||window.setTimeout;a.setEndOfMicrotask=c}(window.Sha dowDOMPolyfill),function(a){"use strict";function b(){p||(k(c),p=!0)}function c( ){p=!1;do for(var a=o.slice(),b=!1,c=0;c<a.length;c++){var d=a[c],e=d.takeRecord s();f(d),e.length&&(d.callback_(e,d),b=!0)}while(b)}function d(a,b){this.type=a, this.target=b,this.addedNodes=new m.NodeList,this.removedNodes=new m.NodeList,th is.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attri buteNamespace=null,this.oldValue=null}function e(a,b){for(;a;a=a.parentNode){var c=n.get(a);if(c)for(var d=0;d<c.length;d++){var e=c[d];e.options.subtree&&e.add TransientObserver(b)}}}function f(a){for(var b=0;b<a.nodes_.length;b++){var c=a. nodes_[b],d=n.get(c);if(!d)return;for(var e=0;e<d.length;e++){var f=d[e];f.obser ver===a&&f.removeTransientObservers()}}}function g(a,c,e){for(var f=Object.creat e(null),g=Object.create(null),h=a;h;h=h.parentNode){var i=n.get(h);if(i)for(var j=0;j<i.length;j++){var k=i[j],l=k.options;if((h===a||l.subtree)&&!("attributes" ===c&&!l.attributes||"attributes"===c&&l.attributeFilter&&(null!==e.namespace||- 1===l.attributeFilter.indexOf(e.name))||"characterData"===c&&!l.characterData||" childList"===c&&!l.childList)){var m=k.observer;f[m.uid_]=m,("attributes"===c&&l .attributeOldValue||"characterData"===c&&l.characterDataOldValue)&&(g[m.uid_]=e. oldValue)}}}var o=!1;for(var p in f){var m=f[p],q=new d(c,a);"name"in e&&"namesp ace"in e&&(q.attributeName=e.name,q.attributeNamespace=e.namespace),e.addedNodes &&(q.addedNodes=e.addedNodes),e.removedNodes&&(q.removedNodes=e.removedNodes),e. previousSibling&&(q.previousSibling=e.previousSibling),e.nextSibling&&(q.nextSib ling=e.nextSibling),void 0!==g[p]&&(q.oldValue=g[p]),m.records_.push(q),o=!0}o&& b()}function h(a){if(this.childList=!!a.childList,this.subtree=!!a.subtree,this. attributes="attributes"in a||!("attributeOldValue"in a||"attributeFilter"in a)?! !a.attributes:!0,this.characterData="characterDataOldValue"in a&&!("characterDat a"in a)?!0:!!a.characterData,!this.attributes&&(a.attributeOldValue||"attributeF ilter"in a)||!this.characterData&&a.characterDataOldValue)throw new TypeError;if (this.characterData=!!a.characterData,this.attributeOldValue=!!a.attributeOldVal ue,this.characterDataOldValue=!!a.characterDataOldValue,"attributeFilter"in a){i f(null==a.attributeFilter||"object"!=typeof a.attributeFilter)throw new TypeErro r;this.attributeFilter=q.call(a.attributeFilter)}else this.attributeFilter=null} function i(a){this.callback_=a,this.nodes_=[],this.records_=[],this.uid_=++r,o.p ush(this)}function j(a,b,c){this.observer=a,this.target=b,this.options=c,this.tr ansientObservedNodes=[]}var k=a.setEndOfMicrotask,l=a.wrapIfNeeded,m=a.wrappers, n=new WeakMap,o=[],p=!1,q=Array.prototype.slice,r=0;i.prototype={observe:functio n(a,b){a=l(a);var c,d=new h(b),e=n.get(a);e||n.set(a,e=[]);for(var f=0;f<e.lengt h;f++)e[f].observer===this&&(c=e[f],c.removeTransientObservers(),c.options=d);c| |(c=new j(this,a,d),e.push(c),this.nodes_.push(a))},disconnect:function(){this.n odes_.forEach(function(a){for(var b=n.get(a),c=0;c<b.length;c++){var d=b[c];if(d .observer===this){b.splice(c,1);break}}},this),this.records_=[]},takeRecords:fun ction(){var a=this.records_;return this.records_=[],a}},j.prototype={addTransien tObserver:function(a){if(a!==this.target){this.transientObservedNodes.push(a);va r b=n.get(a);b||n.set(a,b=[]),b.push(this)}},removeTransientObservers:function() {var a=this.transientObservedNodes;this.transientObservedNodes=[];for(var b=0;b< a.length;b++)for(var c=a[b],d=n.get(c),e=0;e<d.length;e++)if(d[e]===this){d.spli ce(e,1);break}}},a.enqueueMutation=g,a.registerTransientObservers=e,a.wrappers.M utationObserver=i,a.wrappers.MutationRecord=d}(window.ShadowDOMPolyfill),functio n(a){"use strict";function b(a){return a instanceof O.ShadowRoot}function c(a){v ar b=a.localName;return"content"===b||"shadow"===b}function d(a){return!!a.shado wRoot}function e(a){var b;return a.parentNode||(b=a.defaultView)&&N(b)||null}fun ction f(f,g,h){if(h.length)return h.shift();if(b(f))return j(f)||f.host;var i=a. eventParentsTable.get(f);if(i){for(var k=1;k<i.length;k++)h[k-1]=i[k];return i[0 ]}if(g&&c(f)){var l=f.parentNode;if(l&&d(l))for(var m=a.getShadowTrees(l),n=j(g) ,k=0;k<m.length;k++)if(m[k].contains(n))return n}return e(f)}function g(a){for(v ar d=[],e=a,g=[],i=[];e;){var j=null;if(c(e)){j=h(d);var k=d[d.length-1]||e;d.pu sh(k)}else d.length||d.push(e);var l=d[d.length-1];g.push({target:l,currentTarge t:e}),b(e)&&d.pop(),e=f(e,j,i)}return g}function h(a){for(var b=a.length-1;b>=0; b--)if(!c(a[b]))return a[b];return null}function i(a,d){for(var e=[];a;){for(var g=[],i=d,j=void 0;i;){var l=null;if(g.length){if(c(i)&&(l=h(g),k(j))){var n=g[g .length-1];g.push(n)}}else g.push(i);if(m(i,a))return g[g.length-1];b(i)&&g.pop( ),j=i,i=f(i,l,e)}a=b(a)?a.host:a.parentNode}}function j(b){return a.insertionPar entTable.get(b)}function k(a){return j(a)}function l(a){for(var b;b=a.parentNode ;)a=b;return a}function m(a,b){return l(a)===l(b)}function n(a,b){return a===b?! 0:a instanceof O.ShadowRoot?n(l(a.host),b):!1}function o(a){return Q.get(a)?void 0:(Q.set(a,!0),p(N(a),N(a.target)))}function p(b,c){if(R.get(b))throw new Error ("InvalidStateError");R.set(b,!0),a.renderAllPending();var d=g(c);return"load"== =b.type&&2===d.length&&d[0].target instanceof O.Document&&d.shift(),Z.set(b,d),q (b,d)&&r(b,d)&&s(b,d),V.set(b,v.NONE),T.delete(b,null),R.delete(b),b.defaultPrev ented}function q(a,b){for(var c,d=b.length-1;d>0;d--){var e=b[d].target,f=b[d].c urrentTarget;if(e!==f&&(c=v.CAPTURING_PHASE,!t(b[d],a,c)))return!1}return!0}func tion r(a,b){var c=v.AT_TARGET;return t(b[0],a,c)}function s(a,b){for(var c,d=a.b ubbles,e=1;e<b.length;e++){var f=b[e].target,g=b[e].currentTarget;if(f===g)c=v.A T_TARGET;else{if(!d||X.get(a))continue;c=v.BUBBLING_PHASE}if(!t(b[e],a,c))return }}function t(a,b,c){var d=a.target,e=a.currentTarget,f=P.get(e);if(!f)return!0;i f("relatedTarget"in b){var g=M(b);if(g.relatedTarget){var h=N(g.relatedTarget),j =i(e,h);if(j===d)return!0;U.set(b,j)}}V.set(b,c);var k=b.type,l=!1;S.set(b,d),T. set(b,e);for(var m=0;m<f.length;m++){var n=f[m];if(n.removed)l=!0;else if(!(n.ty pe!==k||!n.capture&&c===v.CAPTURING_PHASE||n.capture&&c===v.BUBBLING_PHASE))try{ if("function"==typeof n.handler?n.handler.call(e,b):n.handler.handleEvent(b),X.g et(b))return!1}catch(o){window.onerror?window.onerror(o.message):console.error(o ,o.stack)}}if(l){var p=f.slice();f.length=0;for(var m=0;m<p.length;m++)p[m].remo ved||f.push(p[m])}return!W.get(b)}function u(a,b,c){this.type=a,this.handler=b,t his.capture=Boolean(c)}function v(a,b){return a instanceof $?(this.impl=a,void 0 ):N(z($,"Event",a,b))}function w(a){return a&&a.relatedTarget?Object.create(a,{r elatedTarget:{value:M(a.relatedTarget)}}):a}function x(a,b,c){var d=window[a],e= function(b,c){return b instanceof d?(this.impl=b,void 0):N(z(d,a,b,c))};if(e.pro totype=Object.create(b.prototype),c&&K(e.prototype,c),d)try{L(d,e,new d("temp")) }catch(f){L(d,e,document.createEvent(a))}return e}function y(a,b){return functio n(){arguments[b]=M(arguments[b]);var c=M(this);c[a].apply(c,arguments)}}function z(a,b,c,d){if(hb)return new a(c,w(d));var e=M(document.createEvent(b)),f=gb[b], g=[c];return Object.keys(f).forEach(function(a){var b=null!=d&&a in d?d[a]:f[a]; "relatedTarget"===a&&(b=M(b)),g.push(b)}),e["init"+b].apply(e,g),e}function A(){ v.call(this)}function B(a){return"function"==typeof a?!0:a&&a.handleEvent}functi on C(a){switch(a){case"DOMAttrModified":case"DOMAttributeNameChanged":case"DOMCh aracterDataModified":case"DOMElementNameChanged":case"DOMNodeInserted":case"DOMN odeInsertedIntoDocument":case"DOMNodeRemoved":case"DOMNodeRemovedFromDocument":c ase"DOMSubtreeModified":return!0}return!1}function D(a){this.impl=a}function E(a ){return a instanceof O.ShadowRoot&&(a=a.host),M(a)}function F(a){J(a,kb)}functi on G(b,c,d,e){a.renderAllPending();for(var f=N(lb.call(c.impl,d,e)),h=g(f,this), i=0;i<h.length;i++){var j=h[i];if(j.currentTarget===b)return j.target}return nul l}function H(a){return function(){var b=Y.get(this);return b&&b[a]&&b[a].value|| null}}function I(a){var b=a.slice(2);return function(c){var d=Y.get(this);d||(d= Object.create(null),Y.set(this,d));var e=d[a];if(e&&this.removeEventListener(b,e .wrapped,!1),"function"==typeof c){var f=function(b){var d=c.call(this,b);d===!1 ?b.preventDefault():"onbeforeunload"===a&&"string"==typeof d&&(b.returnValue=d)} ;this.addEventListener(b,f,!1),d[a]={value:c,wrapped:f}}}}var J=a.forwardMethods ToWrapper,K=a.mixin,L=a.registerWrapper,M=a.unwrap,N=a.wrap,O=a.wrappers,P=(new WeakMap,new WeakMap),Q=new WeakMap,R=new WeakMap,S=new WeakMap,T=new WeakMap,U=n ew WeakMap,V=new WeakMap,W=new WeakMap,X=new WeakMap,Y=new WeakMap,Z=new WeakMap ;u.prototype={equals:function(a){return this.handler===a.handler&&this.type===a. type&&this.capture===a.capture},get removed(){return null===this.handler},remove :function(){this.handler=null}};var $=window.Event;$.prototype.polymerBlackList_ ={returnValue:!0},v.prototype={get target(){return S.get(this)},get currentTarge t(){return T.get(this)},get eventPhase(){return V.get(this)},get path(){var a=ne w O.NodeList,b=Z.get(this);if(b){for(var c=0,d=b.length-1,e=l(T.get(this)),f=0;d >=f;f++){var g=b[f].currentTarget,h=l(g);n(e,h)&&(f!==d||g instanceof O.Node)&&( a[c++]=g)}a.length=c}return a},stopPropagation:function(){W.set(this,!0)},stopIm mediatePropagation:function(){W.set(this,!0),X.set(this,!0)}},L($,v,document.cre ateEvent("Event"));var _=x("UIEvent",v),ab=x("CustomEvent",v),bb={get relatedTar get(){return U.get(this)||N(M(this).relatedTarget)}},cb=K({initMouseEvent:y("ini tMouseEvent",14)},bb),db=K({initFocusEvent:y("initFocusEvent",5)},bb),eb=x("Mous eEvent",_,cb),fb=x("FocusEvent",_,db),gb=Object.create(null),hb=function(){try{n ew window.FocusEvent("focus")}catch(a){return!1}return!0}();if(!hb){var ib=funct ion(a,b,c){if(c){var d=gb[c];b=K(K({},d),b)}gb[a]=b};ib("Event",{bubbles:!1,canc elable:!1}),ib("CustomEvent",{detail:null},"Event"),ib("UIEvent",{view:null,deta il:0},"Event"),ib("MouseEvent",{screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey: !1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null},"UIEvent"),ib(" FocusEvent",{relatedTarget:null},"UIEvent")}A.prototype=Object.create(v.prototyp e),K(A.prototype,{get returnValue(){return this.impl.returnValue},set returnValu e(a){this.impl.returnValue=a}});var jb=window.EventTarget,kb=["addEventListener" ,"removeEventListener","dispatchEvent"];[Node,Window].forEach(function(a){var b= a.prototype;kb.forEach(function(a){Object.defineProperty(b,a+"_",{value:b[a]})}) }),D.prototype={addEventListener:function(a,b,c){if(B(b)&&!C(a)){var d=new u(a,b ,c),e=P.get(this);if(e){for(var f=0;f<e.length;f++)if(d.equals(e[f]))return}else e=[],P.set(this,e);e.push(d);var g=E(this);g.addEventListener_(a,o,!0)}},remove EventListener:function(a,b,c){c=Boolean(c);var d=P.get(this);if(d){for(var e=0,f =!1,g=0;g<d.length;g++)d[g].type===a&&d[g].capture===c&&(e++,d[g].handler===b&&( f=!0,d[g].remove()));if(f&&1===e){var h=E(this);h.removeEventListener_(a,o,!0)}} },dispatchEvent:function(a){p(a,this)}},jb&&L(jb,D);var lb=document.elementFromP oint;a.adjustRelatedTarget=i,a.elementFromPoint=G,a.getEventHandlerGetter=H,a.ge tEventHandlerSetter=I,a.wrapEventTargetMethods=F,a.wrappers.BeforeUnloadEvent=A, a.wrappers.CustomEvent=ab,a.wrappers.Event=v,a.wrappers.EventTarget=D,a.wrappers .FocusEvent=fb,a.wrappers.MouseEvent=eb,a.wrappers.UIEvent=_}(window.ShadowDOMPo lyfill),function(a){"use strict";function b(a,b){Object.defineProperty(a,b,{enum erable:!1})}function c(){this.length=0,b(this,"length")}function d(a){if(null==a )return a;for(var b=new c,d=0,e=a.length;e>d;d++)b[d]=f(a[d]);return b.length=e, b}function e(a,b){a.prototype[b]=function(){return d(this.impl[b].apply(this.imp l,arguments))}}var f=a.wrap;c.prototype={item:function(a){return this[a]}},b(c.p rototype,"item"),a.wrappers.NodeList=c,a.addWrapNodeListMethod=e,a.wrapNodeList= d
30 }(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){v(a instanceo f s)}function c(a){var b=new u;return b[0]=a,b.length=1,b}function d(a,b,c){x(b, "childList",{removedNodes:c,previousSibling:a.previousSibling,nextSibling:a.next Sibling})}function e(a,b){x(a,"childList",{removedNodes:b})}function f(a,b,d,e){ if(a instanceof DocumentFragment){var f=h(a);F=!0;for(var g=f.length-1;g>=0;g--) a.removeChild(f[g]),f[g].parentNode_=b;F=!1;for(var g=0;g<f.length;g++)f[g].prev iousSibling_=f[g-1]||d,f[g].nextSibling_=f[g+1]||e;return d&&(d.nextSibling_=f[0 ]),e&&(e.previousSibling_=f[f.length-1]),f}var f=c(a),i=a.parentNode;return i&&i .removeChild(a),a.parentNode_=b,a.previousSibling_=d,a.nextSibling_=e,d&&(d.next Sibling_=a),e&&(e.previousSibling_=a),f}function g(a){if(a instanceof DocumentFr agment)return h(a);var b=c(a),e=a.parentNode;return e&&d(a,e,b),b}function h(a){ for(var b=new u,c=0,d=a.firstChild;d;d=d.nextSibling)b[c++]=d;return b.length=c, e(a,b),b}function i(a){return a}function j(a){a.nodeIsInserted_()}function k(a){ for(var b=0;b<a.length;b++)j(a[b])}function l(){}function m(){}function n(a,b){v ar c=a.nodeType===s.DOCUMENT_NODE?a:a.ownerDocument;c!==b.ownerDocument&&c.adopt Node(b)}function o(b,c){if(c.length){var d=b.ownerDocument;if(d!==c[0].ownerDocu ment)for(var e=0;e<c.length;e++)a.adoptNodeNoRemove(c[e],d)}}function p(a,b){o(a ,b);var c=b.length;if(1===c)return C(b[0]);for(var d=C(a.ownerDocument.createDoc umentFragment()),e=0;c>e;e++)d.appendChild(C(b[e]));return d}function q(a){if(a. invalidateShadowRenderer()){for(var b=a.firstChild;b;){v(b.parentNode===a);var c =b.nextSibling,d=C(b),e=d.parentNode;e&&K.call(e,d),b.previousSibling_=b.nextSib ling_=b.parentNode_=null,b=c}a.firstChild_=a.lastChild_=null}else for(var c,f=C( a),g=f.firstChild;g;)c=g.nextSibling,K.call(f,g),g=c}function r(a){var b=a.paren tNode;return b&&b.invalidateShadowRenderer()}function s(a){v(a instanceof G),t.c all(this,a),this.parentNode_=void 0,this.firstChild_=void 0,this.lastChild_=void 0,this.nextSibling_=void 0,this.previousSibling_=void 0}var t=a.wrappers.EventT arget,u=a.wrappers.NodeList,v=a.assert,w=a.defineWrapGetter,x=a.enqueueMutation, y=a.isWrapper,z=a.mixin,A=a.registerTransientObservers,B=a.registerWrapper,C=a.u nwrap,D=a.wrap,E=a.wrapIfNeeded,F=!1,G=window.Node,H=window.DocumentFragment,I=( G.prototype.appendChild,G.prototype.compareDocumentPosition),J=G.prototype.inser tBefore,K=G.prototype.removeChild,L=G.prototype.replaceChild,M=/Trident/.test(na vigator.userAgent),N=M?function(a,b){try{K.call(a,b)}catch(c){if(!(a instanceof H))throw c}}:function(a,b){K.call(a,b)};s.prototype=Object.create(t.prototype),z (s.prototype,{appendChild:function(a){return this.insertBefore(a,null)},insertBe fore:function(a,c){b(a);var d;c?y(c)?d=C(c):(d=c,c=D(d)):(c=null,d=null),c&&v(c. parentNode===this);var e,h=c?c.previousSibling:this.lastChild,i=!this.invalidate ShadowRenderer()&&!r(a);if(e=i?g(a):f(a,this,h,c),i)n(this,a),J.call(this.impl,C (a),d);else{h||(this.firstChild_=e[0]),c||(this.lastChild_=e[e.length-1]);var j= d?d.parentNode:this.impl;j?J.call(j,p(this,e),d):o(this,e)}return x(this,"childL ist",{addedNodes:e,nextSibling:c,previousSibling:h}),k(e),a},removeChild:functio n(a){if(b(a),a.parentNode!==this){for(var d=!1,e=(this.childNodes,this.firstChil d);e;e=e.nextSibling)if(e===a){d=!0;break}if(!d)throw new Error("NotFoundError") }var f=C(a),g=a.nextSibling,h=a.previousSibling;if(this.invalidateShadowRenderer ()){var i=this.firstChild,j=this.lastChild,k=f.parentNode;k&&N(k,f),i===a&&(this .firstChild_=g),j===a&&(this.lastChild_=h),h&&(h.nextSibling_=g),g&&(g.previousS ibling_=h),a.previousSibling_=a.nextSibling_=a.parentNode_=void 0}else N(this.im pl,f);return F||x(this,"childList",{removedNodes:c(a),nextSibling:g,previousSibl ing:h}),A(this,a),a},replaceChild:function(a,d){b(a);var e;if(y(d)?e=C(d):(e=d,d =D(e)),d.parentNode!==this)throw new Error("NotFoundError");var h,i=d.nextSiblin g,j=d.previousSibling,m=!this.invalidateShadowRenderer()&&!r(a);return m?h=g(a): (i===a&&(i=a.nextSibling),h=f(a,this,j,i)),m?(n(this,a),L.call(this.impl,C(a),e) ):(this.firstChild===d&&(this.firstChild_=h[0]),this.lastChild===d&&(this.lastCh ild_=h[h.length-1]),d.previousSibling_=d.nextSibling_=d.parentNode_=void 0,e.par entNode&&L.call(e.parentNode,p(this,h),e)),x(this,"childList",{addedNodes:h,remo vedNodes:c(d),nextSibling:i,previousSibling:j}),l(d),k(h),d},nodeIsInserted_:fun ction(){for(var a=this.firstChild;a;a=a.nextSibling)a.nodeIsInserted_()},hasChil dNodes:function(){return null!==this.firstChild},get parentNode(){return void 0! ==this.parentNode_?this.parentNode_:D(this.impl.parentNode)},get firstChild(){re turn void 0!==this.firstChild_?this.firstChild_:D(this.impl.firstChild)},get las tChild(){return void 0!==this.lastChild_?this.lastChild_:D(this.impl.lastChild)} ,get nextSibling(){return void 0!==this.nextSibling_?this.nextSibling_:D(this.im pl.nextSibling)},get previousSibling(){return void 0!==this.previousSibling_?thi s.previousSibling_:D(this.impl.previousSibling)},get parentElement(){for(var a=t his.parentNode;a&&a.nodeType!==s.ELEMENT_NODE;)a=a.parentNode;return a},get text Content(){for(var a="",b=this.firstChild;b;b=b.nextSibling)a+=b.textContent;retu rn a},set textContent(a){var b=i(this.childNodes);if(this.invalidateShadowRender er()){if(q(this),""!==a){var c=this.impl.ownerDocument.createTextNode(a);this.ap pendChild(c)}}else this.impl.textContent=a;var d=i(this.childNodes);x(this,"chil dList",{addedNodes:d,removedNodes:b}),m(b),k(d)},get childNodes(){for(var a=new u,b=0,c=this.firstChild;c;c=c.nextSibling)a[b++]=c;return a.length=b,a},cloneNod e:function(a){var b=D(this.impl.cloneNode(!1));if(a)for(var c=this.firstChild;c; c=c.nextSibling)b.appendChild(c.cloneNode(!0));return b},contains:function(a){if (!a)return!1;if(a=E(a),a===this)return!0;var b=a.parentNode;return b?this.contai ns(b):!1},compareDocumentPosition:function(a){return I.call(this.impl,C(a))}}),w (s,"ownerDocument"),B(G,s,document.createDocumentFragment()),delete s.prototype. querySelector,delete s.prototype.querySelectorAll,s.prototype=z(Object.create(t. prototype),s.prototype),a.nodeWasAdded=j,a.nodeWasRemoved=l,a.nodesWereAdded=k,a .nodesWereRemoved=m,a.snapshotNodeList=i,a.wrappers.Node=s}(window.ShadowDOMPoly fill),function(a){"use strict";function b(a,c){for(var d,e=a.firstElementChild;e ;){if(e.matches(c))return e;if(d=b(e,c))return d;e=e.nextElementSibling}return n ull}function c(a,b,d){for(var e=a.firstElementChild;e;)e.matches(b)&&(d[d.length ++]=e),c(e,b,d),e=e.nextElementSibling;return d}var d={querySelector:function(a) {return b(this,a)},querySelectorAll:function(a){return c(this,a,new NodeList)}}, e={getElementsByTagName:function(a){return this.querySelectorAll(a)},getElements ByClassName:function(a){return this.querySelectorAll("."+a)},getElementsByTagNam eNS:function(a,b){if("*"===a)return this.getElementsByTagName(b);for(var c=new N odeList,d=this.getElementsByTagName(b),e=0,f=0;e<d.length;e++)d[e].namespaceURI= ==a&&(c[f++]=d[e]);return c.length=f,c}};a.GetElementsByInterface=e,a.SelectorsI nterface=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){for (;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}function c(a){for( ;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}var d=a.wrapper s.NodeList,e={get firstElementChild(){return b(this.firstChild)},get lastElement Child(){return c(this.lastChild)},get childElementCount(){for(var a=0,b=this.fir stElementChild;b;b=b.nextElementSibling)a++;return a},get children(){for(var a=n ew d,b=0,c=this.firstElementChild;c;c=c.nextElementSibling)a[b++]=c;return a.len gth=b,a}},f={get nextElementSibling(){return b(this.nextSibling)},get previousEl ementSibling(){return c(this.previousSibling)}};a.ChildNodeInterface=f,a.ParentN odeInterface=e}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a) {d.call(this,a)}var c=a.ChildNodeInterface,d=a.wrappers.Node,e=a.enqueueMutation ,f=a.mixin,g=a.registerWrapper,h=window.CharacterData;b.prototype=Object.create( d.prototype),f(b.prototype,{get textContent(){return this.data},set textContent( a){this.data=a},get data(){return this.impl.data},set data(a){var b=this.impl.da ta;e(this,"characterData",{oldValue:b}),this.impl.data=a}}),f(b.prototype,c),g(h ,b,document.createTextNode("")),a.wrappers.CharacterData=b}(window.ShadowDOMPoly fill),function(a){"use strict";function b(b,c){var d=b.parentNode;if(d&&d.shadow Root){var e=a.getRendererForHost(d);e.dependsOnAttribute(c)&&e.invalidate()}}fun ction c(a,b,c){k(a,"attributes",{name:b,namespace:null,oldValue:c})}function d(a ){h.call(this,a)}function e(a,c,d){var e=d||c;Object.defineProperty(a,c,{get:fun ction(){return this.impl[c]},set:function(a){this.impl[c]=a,b(this,e)},configura ble:!0,enumerable:!0})}var f=a.ChildNodeInterface,g=a.GetElementsByInterface,h=a .wrappers.Node,i=a.ParentNodeInterface,j=a.SelectorsInterface,k=(a.addWrapNodeLi stMethod,a.enqueueMutation),l=a.mixin,m=a.oneOf,n=a.registerWrapper,o=a.wrappers ,p=window.Element,q=m(p.prototype,["matches","mozMatchesSelector","msMatchesSele ctor","webkitMatchesSelector"]),r=p.prototype[q];d.prototype=Object.create(h.pro totype),l(d.prototype,{createShadowRoot:function(){var b=new o.ShadowRoot(this); this.impl.polymerShadowRoot_=b;var c=a.getRendererForHost(this);return c.invalid ate(),b},get shadowRoot(){return this.impl.polymerShadowRoot_||null},setAttribut e:function(a,d){var e=this.impl.getAttribute(a);this.impl.setAttribute(a,d),c(th is,a,e),b(this,a)},removeAttribute:function(a){var d=this.impl.getAttribute(a);t his.impl.removeAttribute(a),c(this,a,d),b(this,a)},matches:function(a){return r. call(this.impl,a)}}),"matches"!=q&&(d.prototype[q]=function(a){return this.match es(a)}),p.prototype.webkitCreateShadowRoot&&(d.prototype.webkitCreateShadowRoot= d.prototype.createShadowRoot),e(d.prototype,"id"),e(d.prototype,"className","cla ss"),l(d.prototype,f),l(d.prototype,g),l(d.prototype,i),l(d.prototype,j),n(p,d), a.matchesName=q,a.wrappers.Element=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){switch(a){case"&":return"&amp;";case"<":return"&lt;";case '"':return"&quot;"}}function c(a){return a.replace(w,b)}function d(a){switch(a.n odeType){case Node.ELEMENT_NODE:for(var b,d=a.tagName.toLowerCase(),f="<"+d,g=a. attributes,h=0;b=g[h];h++)f+=" "+b.name+'="'+c(b.value)+'"';return f+=">",x[d]?f :f+e(a)+"</"+d+">";case Node.TEXT_NODE:return c(a.nodeValue);case Node.COMMENT_N ODE:return"<!--"+c(a.nodeValue)+"-->";default:throw console.error(a),new Error(" not implemented")}}function e(a){for(var b="",c=a.firstChild;c;c=c.nextSibling)b +=d(c);return b}function f(a,b,c){var d=c||"div";a.textContent="";var e=u(a.owne rDocument.createElement(d));e.innerHTML=b;for(var f;f=e.firstChild;)a.appendChil d(v(f))}function g(a){m.call(this,a)}function h(a,b){var c=u(a.cloneNode(!1));c. innerHTML=b;for(var d,e=u(document.createDocumentFragment());d=c.firstChild;)e.a ppendChild(d);return v(e)}function i(b){return function(){return a.renderAllPend ing(),this.impl[b]}}function j(a){n(g,a,i(a))}function k(b){Object.definePropert y(g.prototype,b,{get:i(b),set:function(c){a.renderAllPending(),this.impl[b]=c},c onfigurable:!0,enumerable:!0})}function l(b){Object.defineProperty(g.prototype,b ,{value:function(){return a.renderAllPending(),this.impl[b].apply(this.impl,argu ments)},configurable:!0,enumerable:!0})}var m=a.wrappers.Element,n=a.defineGette r,o=a.enqueueMutation,p=a.mixin,q=a.nodesWereAdded,r=a.nodesWereRemoved,s=a.regi sterWrapper,t=a.snapshotNodeList,u=a.unwrap,v=a.wrap,w=/&|<|"/g,x={area:!0,base: !0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta :!0,param:!0,source:!0,track:!0,wbr:!0},y=window.HTMLElement;g.prototype=Object. create(m.prototype),p(g.prototype,{get innerHTML(){return e(this)},set innerHTML (a){var b=t(this.childNodes);this.invalidateShadowRenderer()?f(this,a,this.tagNa me):this.impl.innerHTML=a;var c=t(this.childNodes);o(this,"childList",{addedNode s:c,removedNodes:b}),r(b),q(c)},get outerHTML(){return d(this)},set outerHTML(a) {var b=this.parentNode;if(b){b.invalidateShadowRenderer();var c=h(b,a);b.replace Child(c,this)}},insertAdjacentHTML:function(a,b){var c,d;switch(String(a).toLowe rCase()){case"beforebegin":c=this.parentNode,d=this;break;case"afterend":c=this. parentNode,d=this.nextSibling;break;case"afterbegin":c=this,d=this.firstChild;br eak;case"beforeend":c=this,d=null;break;default:return}var e=h(c,b);c.insertBefo re(e,d)}}),["clientHeight","clientLeft","clientTop","clientWidth","offsetHeight" ,"offsetLeft","offsetTop","offsetWidth","scrollHeight","scrollWidth"].forEach(j) ,["scrollLeft","scrollTop"].forEach(k),["getBoundingClientRect","getClientRects" ,"scrollIntoView"].forEach(l),s(y,g,document.createElement("b")),a.wrappers.HTML Element=g,a.getInnerHTML=e,a.setInnerHTML=f}(window.ShadowDOMPolyfill),function( a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mi xin,e=a.registerWrapper,f=a.wrap,g=window.HTMLCanvasElement;b.prototype=Object.c reate(c.prototype),d(b.prototype,{getContext:function(){var a=this.impl.getConte xt.apply(this.impl,arguments);return a&&f(a)}}),e(g,b,document.createElement("ca nvas")),a.wrappers.HTMLCanvasElement=b}(window.ShadowDOMPolyfill),function(a){"u se strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e =a.registerWrapper,f=window.HTMLContentElement;b.prototype=Object.create(c.proto type),d(b.prototype,{get select(){return this.getAttribute("select")},set select (a){this.setAttribute("select",a)},setAttribute:function(a,b){c.prototype.setAtt ribute.call(this,a,b),"select"===String(a).toLowerCase()&&this.invalidateShadowR enderer(!0)}}),f&&e(f,b),a.wrappers.HTMLContentElement=b}(window.ShadowDOMPolyfi ll),function(a){"use strict";function b(a){d.call(this,a)}function c(a,b){if(!(t his instanceof c))throw new TypeError("DOM object constructor cannot be called a s a function.");var e=f(document.createElement("img"));d.call(this,e),g(e,this), void 0!==a&&(e.width=a),void 0!==b&&(e.height=b)}var d=a.wrappers.HTMLElement,e= a.registerWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLImageElement;b.prototype=Ob ject.create(d.prototype),e(h,b,document.createElement("img")),c.prototype=b.prot otype,a.wrappers.HTMLImageElement=b,a.wrappers.Image=c}(window.ShadowDOMPolyfill ),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLEle ment,d=a.mixin,e=a.registerWrapper,f=window.HTMLShadowElement;b.prototype=Object .create(c.prototype),d(b.prototype,{}),f&&e(f,b),a.wrappers.HTMLShadowElement=b} (window.ShadowDOMPolyfill),function(a){"use strict";function b(a){if(!a.defaultV iew)return a;var b=m.get(a);if(!b){for(b=a.implementation.createHTMLDocument("") ;b.lastChild;)b.removeChild(b.lastChild);m.set(a,b)}return b}function c(a){for(v ar c,d=b(a.ownerDocument),e=j(d.createDocumentFragment());c=a.firstChild;)e.appe ndChild(c);return e}function d(a){if(e.call(this,a),!n){var b=c(a);l.set(this,k( b))}}var e=a.wrappers.HTMLElement,f=a.getInnerHTML,g=a.mixin,h=a.registerWrapper ,i=a.setInnerHTML,j=a.unwrap,k=a.wrap,l=new WeakMap,m=new WeakMap,n=window.HTMLT emplateElement;d.prototype=Object.create(e.prototype),g(d.prototype,{get content (){return n?k(this.impl.content):l.get(this)},get innerHTML(){return f(this.cont ent)},set innerHTML(a){i(this.content,a)}}),n&&h(n,d),a.wrappers.HTMLTemplateEle ment=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call( this,a)}var c=a.wrappers.HTMLElement,d=a.registerWrapper,e=window.HTMLMediaEleme nt;b.prototype=Object.create(c.prototype),d(e,b,document.createElement("audio")) ,a.wrappers.HTMLMediaElement=b}(window.ShadowDOMPolyfill),function(a){"use stric t";function b(a){d.call(this,a)}function c(a){if(!(this instanceof c))throw new TypeError("DOM object constructor cannot be called as a function.");var b=f(docu ment.createElement("audio"));d.call(this,b),g(b,this),b.setAttribute("preload"," auto"),void 0!==a&&b.setAttribute("src",a)}var d=a.wrappers.HTMLMediaElement,e=a .registerWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLAudioElement;b.prototype=Obj ect.create(d.prototype),e(h,b,document.createElement("audio")),c.prototype=b.pro totype,a.wrappers.HTMLAudioElement=b,a.wrappers.Audio=c}(window.ShadowDOMPolyfil l),function(a){"use strict";function b(a){return a.replace(/\s+/g," ").trim()}fu nction c(a){e.call(this,a)}function d(a,b,c,f){if(!(this instanceof d))throw new TypeError("DOM object constructor cannot be called as a function.");var g=i(doc ument.createElement("option"));e.call(this,g),h(g,this),void 0!==a&&(g.text=a),v oid 0!==b&&g.setAttribute("value",b),c===!0&&g.setAttribute("selected",""),g.sel ected=f===!0}var e=a.wrappers.HTMLElement,f=a.mixin,g=a.registerWrapper,h=a.rewr ap,i=a.unwrap,j=a.wrap,k=window.HTMLOptionElement;c.prototype=Object.create(e.pr ototype),f(c.prototype,{get text(){return b(this.textContent)},set text(a){this. textContent=b(String(a))},get form(){return j(i(this).form)}}),g(k,c,document.cr eateElement("option")),d.prototype=c.prototype,a.wrappers.HTMLOptionElement=c,a. wrappers.Option=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b (a){switch(a.localName){case"content":return new c(a);case"shadow":return new e( a);case"template":return new f(a)}d.call(this,a)}var c=a.wrappers.HTMLContentEle ment,d=a.wrappers.HTMLElement,e=a.wrappers.HTMLShadowElement,f=a.wrappers.HTMLTe mplateElement,g=(a.mixin,a.registerWrapper),h=window.HTMLUnknownElement;b.protot ype=Object.create(d.prototype),g(h,b),a.wrappers.HTMLUnknownElement=b}(window.Sh adowDOMPolyfill),function(a){"use strict";function b(a){this.impl=a}var c=a.mixi n,d=a.registerWrapper,e=a.unwrap,f=a.unwrapIfNeeded,g=a.wrap,h=window.CanvasRend eringContext2D;c(b.prototype,{get canvas(){return g(this.impl.canvas)},drawImage :function(){arguments[0]=f(arguments[0]),this.impl.drawImage.apply(this.impl,arg uments)},createPattern:function(){return arguments[0]=e(arguments[0]),this.impl. createPattern.apply(this.impl,arguments)}}),d(h,b,document.createElement("canvas ").getContext("2d")),a.wrappers.CanvasRenderingContext2D=b}(window.ShadowDOMPoly fill),function(a){"use strict";function b(a){this.impl=a}var c=a.mixin,d=a.regis terWrapper,e=a.unwrapIfNeeded,f=a.wrap,g=window.WebGLRenderingContext;if(g){c(b. prototype,{get canvas(){return f(this.impl.canvas)},texImage2D:function(){argume nts[5]=e(arguments[5]),this.impl.texImage2D.apply(this.impl,arguments)},texSubIm age2D:function(){arguments[6]=e(arguments[6]),this.impl.texSubImage2D.apply(this .impl,arguments)}});var h=/WebKit/.test(navigator.userAgent)?{drawingBufferHeigh t:null,drawingBufferWidth:null}:{};d(g,b,h),a.wrappers.WebGLRenderingContext=b}} (window.ShadowDOMPolyfill),function(a){"use strict";function b(a){this.impl=a}va r c=a.registerWrapper,d=a.unwrap,e=a.unwrapIfNeeded,f=a.wrap,g=window.Range;b.pr ototype={get startContainer(){return f(this.impl.startContainer)},get endContain er(){return f(this.impl.endContainer)},get commonAncestorContainer(){return f(th is.impl.commonAncestorContainer)},setStart:function(a,b){this.impl.setStart(e(a) ,b)},setEnd:function(a,b){this.impl.setEnd(e(a),b)},setStartBefore:function(a){t his.impl.setStartBefore(e(a))},setStartAfter:function(a){this.impl.setStartAfter (e(a))},setEndBefore:function(a){this.impl.setEndBefore(e(a))},setEndAfter:funct ion(a){this.impl.setEndAfter(e(a))},selectNode:function(a){this.impl.selectNode( e(a))},selectNodeContents:function(a){this.impl.selectNodeContents(e(a))},compar eBoundaryPoints:function(a,b){return this.impl.compareBoundaryPoints(a,d(b))},ex tractContents:function(){return f(this.impl.extractContents())},cloneContents:fu nction(){return f(this.impl.cloneContents())},insertNode:function(a){this.impl.i nsertNode(e(a))},surroundContents:function(a){this.impl.surroundContents(e(a))}, cloneRange:function(){return f(this.impl.cloneRange())},isPointInRange:function( a,b){return this.impl.isPointInRange(e(a),b)},comparePoint:function(a,b){return this.impl.comparePoint(e(a),b)},intersectsNode:function(a){return this.impl.inte rsectsNode(e(a))}},g.prototype.createContextualFragment&&(b.prototype.createCont extualFragment=function(a){return f(this.impl.createContextualFragment(a))}),c(w indow.Range,b,document.createRange()),a.wrappers.Range=b}(window.ShadowDOMPolyfi ll),function(a){"use strict";var b=a.GetElementsByInterface,c=a.ParentNodeInterf ace,d=a.SelectorsInterface,e=a.mixin,f=a.registerObject,g=f(document.createDocum entFragment());e(g.prototype,c),e(g.prototype,d),e(g.prototype,b);var h=f(docume nt.createTextNode("")),i=f(document.createComment(""));a.wrappers.Comment=i,a.wr appers.DocumentFragment=g,a.wrappers.Text=h}(window.ShadowDOMPolyfill),function( a){"use strict";function b(a){var b=i(a.impl.ownerDocument.createDocumentFragmen t());c.call(this,b),g(b,this);var d=a.shadowRoot;k.set(this,d),j.set(this,a)}var c=a.wrappers.DocumentFragment,d=a.elementFromPoint,e=a.getInnerHTML,f=a.mixin,g =a.rewrap,h=a.setInnerHTML,i=a.unwrap,j=new WeakMap,k=new WeakMap;b.prototype=Ob ject.create(c.prototype),f(b.prototype,{get innerHTML(){return e(this)},set inne rHTML(a){h(this,a),this.invalidateShadowRenderer()},get olderShadowRoot(){return k.get(this)||null},get host(){return j.get(this)||null},invalidateShadowRendere r:function(){return j.get(this).invalidateShadowRenderer()},elementFromPoint:fun ction(a,b){return d(this,this.ownerDocument,a,b)},getElementById:function(a){ret urn this.querySelector("#"+a)}}),a.wrappers.ShadowRoot=b}(window.ShadowDOMPolyfi ll),function(a){"use strict";function b(a){a.previousSibling_=a.previousSibling, a.nextSibling_=a.nextSibling,a.parentNode_=a.parentNode}function c(a,c,e){var f= F(a),g=F(c),h=e?F(e):null;if(d(c),b(c),e)a.firstChild===e&&(a.firstChild_=e),e.p reviousSibling_=e.previousSibling;else{a.lastChild_=a.lastChild,a.lastChild===a. firstChild&&(a.firstChild_=a.firstChild);var i=G(f.lastChild);i&&(i.nextSibling_ =i.nextSibling)}f.insertBefore(g,h)}function d(a){var c=F(a),d=c.parentNode;if(d ){var e=G(d);b(a),a.previousSibling&&(a.previousSibling.nextSibling_=a),a.nextSi bling&&(a.nextSibling.previousSibling_=a),e.lastChild===a&&(e.lastChild_=a),e.fi rstChild===a&&(e.firstChild_=a),d.removeChild(c)}}function e(a,b){g(b).push(a),x (a,b);var c=I.get(a);c||I.set(a,c=[]),c.push(b)}function f(a){H.set(a,[])}functi on g(a){return H.get(a)}function h(a){for(var b=[],c=0,d=a.firstChild;d;d=d.next Sibling)b[c++]=d;return b}function i(a,b,c){for(var d=a.firstChild;d;d=d.nextSib ling)if(b(d)){if(c(d)===!1)return}else i(d,b,c)}function j(a,b){var c=b.getAttri bute("select");if(!c)return!0;if(c=c.trim(),!c)return!0;if(!(a instanceof z))ret urn!1;if(!L.test(c))return!1;if(":"===c[0]&&!M.test(c))return!1;try{return a.mat ches(c)}catch(d){return!1}}function k(){for(var a=0;a<O.length;a++)O[a].render() ;O=[]}function l(){y=null,k()}function m(a){var b=K.get(a);return b||(b=new q(a) ,K.set(a,b)),b}function n(a){for(;a;a=a.parentNode)if(a instanceof D)return a;re turn null}function o(a){return m(a.host)}function p(a){this.skip=!1,this.node=a, this.childNodes=[]}function q(a){this.host=a,this.dirty=!1,this.invalidateAttrib utes(),this.associateNode(a)}function r(a){return a instanceof A}function s(a){r eturn a instanceof A}function t(a){return a instanceof B}function u(a){return a instanceof B}function v(a){return a.shadowRoot}function w(a){for(var b=[],c=a.sh adowRoot;c;c=c.olderShadowRoot)b.push(c);return b}function x(a,b){J.set(a,b)}var y,z=a.wrappers.Element,A=a.wrappers.HTMLContentElement,B=a.wrappers.HTMLShadowE lement,C=a.wrappers.Node,D=a.wrappers.ShadowRoot,E=(a.assert,a.mixin,a.oneOf),F= a.unwrap,G=a.wrap,H=new WeakMap,I=new WeakMap,J=new WeakMap,K=new WeakMap,L=/^[* .:#[a-zA-Z_|]/,M=new RegExp("^:("+["link","visited","target","enabled","disabled ","checked","indeterminate","nth-child","nth-last-child","nth-of-type","nth-last -of-type","first-child","last-child","first-of-type","last-of-type","only-of-typ e"].join("|")+")"),N=E(window,["requestAnimationFrame","mozRequestAnimationFrame ","webkitRequestAnimationFrame","setTimeout"]),O=[],P=new ArraySplice;P.equals=f unction(a,b){return F(a.node)===b},p.prototype={append:function(a){var b=new p(a );return this.childNodes.push(b),b},sync:function(a){if(!this.skip){for(var b=th is.node,e=this.childNodes,f=h(F(b)),g=a||new WeakMap,i=P.calculateSplices(e,f),j =0,k=0,l=0,m=0;m<i.length;m++){for(var n=i[m];l<n.index;l++)k++,e[j++].sync(g);f or(var o=n.removed.length,p=0;o>p;p++){var q=G(f[k++]);g.get(q)||d(q)}for(var r= n.addedCount,s=f[k]&&G(f[k]),p=0;r>p;p++){var t=e[j++],u=t.node;c(b,u,s),g.set(u ,!0),t.sync(g)}l+=r}for(var m=l;m<e.length;m++)e[m].sync(g)}}},q.prototype={rend er:function(a){if(this.dirty){this.invalidateAttributes(),this.treeComposition() ;var b=this.host,c=b.shadowRoot;this.associateNode(b);for(var d=!e,e=a||new p(b) ,f=c.firstChild;f;f=f.nextSibling)this.renderNode(c,e,f,!1);d&&e.sync(),this.dir ty=!1}},invalidate:function(){if(!this.dirty){if(this.dirty=!0,O.push(this),y)re turn;y=window[N](l,0)}},renderNode:function(a,b,c,d){if(v(c)){b=b.append(c);var e=m(c);e.dirty=!0,e.render(b)}else r(c)?this.renderInsertionPoint(a,b,c,d):t(c)? this.renderShadowInsertionPoint(a,b,c):this.renderAsAnyDomTree(a,b,c,d)},renderA sAnyDomTree:function(a,b,c,d){if(b=b.append(c),v(c)){var e=m(c);b.skip=!e.dirty, e.render(b)}else for(var f=c.firstChild;f;f=f.nextSibling)this.renderNode(a,b,f, d)},renderInsertionPoint:function(a,b,c,d){var e=g(c);if(e.length){this.associat eNode(c);for(var f=0;f<e.length;f++){var h=e[f];r(h)&&d?this.renderInsertionPoin t(a,b,h,d):this.renderAsAnyDomTree(a,b,h,d)}}else this.renderFallbackContent(a,b ,c);this.associateNode(c.parentNode)},renderShadowInsertionPoint:function(a,b,c) {var d=a.olderShadowRoot;if(d){x(d,c),this.associateNode(c.parentNode);for(var e =d.firstChild;e;e=e.nextSibling)this.renderNode(d,b,e,!0)}else this.renderFallba ckContent(a,b,c)},renderFallbackContent:function(a,b,c){this.associateNode(c),th is.associateNode(c.parentNode);for(var d=c.firstChild;d;d=d.nextSibling)this.ren derAsAnyDomTree(a,b,d,!1)},invalidateAttributes:function(){this.attributes=Objec t.create(null)},updateDependentAttributes:function(a){if(a){var b=this.attribute s;/\.\w+/.test(a)&&(b["class"]=!0),/#\w+/.test(a)&&(b.id=!0),a.replace(/\[\s*([^ \s=\|~\]]+)/g,function(a,c){b[c]=!0})}},dependsOnAttribute:function(a){return th is.attributes[a]},distribute:function(a,b){var c=this;i(a,s,function(a){f(a),c.u pdateDependentAttributes(a.getAttribute("select"));for(var d=0;d<b.length;d++){v ar g=b[d];void 0!==g&&j(g,a)&&(e(g,a),b[d]=void 0)}})},treeComposition:function( ){for(var a=this.host,b=a.shadowRoot,c=[],d=a.firstChild;d;d=d.nextSibling)if(r( d)){var e=g(d);e&&e.length||(e=h(d)),c.push.apply(c,e)}else c.push(d);for(var f, j;b;){if(f=void 0,i(b,u,function(a){return f=a,!1}),j=f,this.distribute(b,c),j){ var k=b.olderShadowRoot;if(k){b=k,x(b,j);continue}break}break}},associateNode:fu nction(a){a.impl.polymerShadowRenderer_=this}},C.prototype.invalidateShadowRende rer=function(){var a=this.impl.polymerShadowRenderer_;return a?(a.invalidate(),! 0):!1},A.prototype.getDistributedNodes=function(){return k(),g(this)},B.prototyp e.nodeIsInserted_=A.prototype.nodeIsInserted_=function(){this.invalidateShadowRe nderer();var a,b=n(this);b&&(a=o(b)),this.impl.polymerShadowRenderer_=a,a&&a.inv alidate()},a.eventParentsTable=I,a.getRendererForHost=m,a.getShadowTrees=w,a.ins ertionParentTable=J,a.renderAllPending=k,a.visual={insertBefore:c,remove:d}}(win dow.ShadowDOMPolyfill),function(a){"use strict";function b(b){if(window[b]){d(!a .wrappers[b]);var i=function(a){c.call(this,a)};i.prototype=Object.create(c.prot otype),e(i.prototype,{get form(){return h(g(this).form)}}),f(window[b],i,documen t.createElement(b.slice(4,-7))),a.wrappers[b]=i}}var c=a.wrappers.HTMLElement,d= a.assert,e=a.mixin,f=a.registerWrapper,g=a.unwrap,h=a.wrap,i=["HTMLButtonElement ","HTMLFieldSetElement","HTMLInputElement","HTMLKeygenElement","HTMLLabelElement ","HTMLLegendElement","HTMLObjectElement","HTMLOutputElement","HTMLSelectElement ","HTMLTextAreaElement"];i.forEach(b)}(window.ShadowDOMPolyfill),function(a){"us e strict";function b(a){k.call(this,a)}function c(a){var c=document[a];b.prototy pe[a]=function(){return v(c.apply(this.impl,arguments))}}function d(a,b){z.call( b.impl,u(a)),e(a,b)}function e(a,b){a.shadowRoot&&b.adoptNode(a.shadowRoot),a in stanceof n&&f(a,b);for(var c=a.firstChild;c;c=c.nextSibling)e(c,b)}function f(a, b){var c=a.olderShadowRoot;c&&b.adoptNode(c)}function g(a){this.impl=a}function h(a,b){var c=document.implementation[b];a.prototype[b]=function(){return v(c.app ly(this.impl,arguments))}}function i(a,b){var c=document.implementation[b];a.pro totype[b]=function(){return c.apply(this.impl,arguments)}}var j=a.GetElementsByI nterface,k=a.wrappers.Node,l=a.ParentNodeInterface,m=a.SelectorsInterface,n=a.wr appers.ShadowRoot,o=a.defineWrapGetter,p=a.elementFromPoint,q=a.forwardMethodsTo Wrapper,r=a.matchesName,s=a.mixin,t=a.registerWrapper,u=a.unwrap,v=a.wrap,w=a.re wrap,x=a.wrapEventTargetMethods,y=(a.wrapNodeList,new WeakMap);b.prototype=Objec t.create(k.prototype),o(b,"documentElement"),o(b,"body"),o(b,"head"),["createCom ment","createDocumentFragment","createElement","createElementNS","createEvent"," createEventNS","createRange","createTextNode","getElementById"].forEach(c);var z =document.adoptNode,A=document.importNode;if(s(b.prototype,{adoptNode:function(a ){return a.parentNode&&a.parentNode.removeChild(a),d(a,this),a},elementFromPoint :function(a,b){return p(this,this,a,b)},importNode:function(a,b){var c=v(A.call( this.impl,u(a),!1));if(b)for(var d=a.firstChild;d;d=d.nextSibling)c.appendChild( this.importNode(d,!0));return c}}),document.register){var B=document.register;b. prototype.register=function(b,c){function d(a){return a?(this.impl=a,void 0):c.e xtends?document.createElement(c.extends,b):document.createElement(b)}var e=c.pro totype;if(a.nativePrototypeTable.get(e))throw new Error("NotSupportedError");for (var f,g=Object.getPrototypeOf(e),h=[];g&&!(f=a.nativePrototypeTable.get(g));)h. push(g),g=Object.getPrototypeOf(g);if(!f)throw new Error("NotSupportedError");fo r(var i=Object.create(f),j=h.length-1;j>=0;j--)i=Object.create(i);["createdCallb ack","enteredViewCallback","leftViewCallback","attributeChangedCallback"].forEac h(function(a){var b=e[a];b&&(i[a]=function(){v(this)instanceof d||w(this),b.appl y(v(this),arguments)})});var k={prototype:i};c.extends&&(k.extends=c.extends),d. prototype=e,d.prototype.constructor=d,a.constructorTable.set(i,d),a.nativeProtot ypeTable.set(e,i);B.call(u(this),b,k);return d},q([window.HTMLDocument||window.D ocument],["register"])}q([window.HTMLBodyElement,window.HTMLDocument||window.Doc ument,window.HTMLHeadElement,window.HTMLHtmlElement],["appendChild","compareDocu mentPosition","contains","getElementsByClassName","getElementsByTagName","getEle mentsByTagNameNS","insertBefore","querySelector","querySelectorAll","removeChild ","replaceChild",r]),q([window.HTMLDocument||window.Document],["adoptNode","impo rtNode","contains","createComment","createDocumentFragment","createElement","cre ateElementNS","createEvent","createEventNS","createRange","createTextNode","elem entFromPoint","getElementById"]),s(b.prototype,j),s(b.prototype,l),s(b.prototype ,m),s(b.prototype,{get implementation(){var a=y.get(this);return a?a:(a=new g(u( this).implementation),y.set(this,a),a)}}),t(window.Document,b,document.implement ation.createHTMLDocument("")),window.HTMLDocument&&t(window.HTMLDocument,b),x([w indow.HTMLBodyElement,window.HTMLDocument||window.Document,window.HTMLHeadElemen t]),h(g,"createDocumentType"),h(g,"createDocument"),h(g,"createHTMLDocument"),i( g,"hasFeature"),t(window.DOMImplementation,g),q([window.DOMImplementation],["cre ateDocumentType","createDocument","createHTMLDocument","hasFeature"]),a.adoptNod eNoRemove=d,a.wrappers.DOMImplementation=g,a.wrappers.Document=b}(window.ShadowD OMPolyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappe rs.EventTarget,d=a.mixin,e=a.registerWrapper,f=a.unwrap,g=a.unwrapIfNeeded,h=a.w rap,i=a.renderAllPending,j=window.Window;b.prototype=Object.create(c.prototype); var k=window.getComputedStyle;j.prototype.getComputedStyle=function(a,b){return i(),k.call(this||window,g(a),b) 39 }(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){v(a instanceo f s)}function c(a){var b=new u;return b[0]=a,b.length=1,b}function d(a,b,c){x(b, "childList",{removedNodes:c,previousSibling:a.previousSibling,nextSibling:a.next Sibling})}function e(a,b){x(a,"childList",{removedNodes:b})}function f(a,b,d,e){ if(a instanceof DocumentFragment){var f=h(a);F=!0;for(var g=f.length-1;g>=0;g--) a.removeChild(f[g]),f[g].parentNode_=b;F=!1;for(var g=0;g<f.length;g++)f[g].prev iousSibling_=f[g-1]||d,f[g].nextSibling_=f[g+1]||e;return d&&(d.nextSibling_=f[0 ]),e&&(e.previousSibling_=f[f.length-1]),f}var f=c(a),i=a.parentNode;return i&&i .removeChild(a),a.parentNode_=b,a.previousSibling_=d,a.nextSibling_=e,d&&(d.next Sibling_=a),e&&(e.previousSibling_=a),f}function g(a){if(a instanceof DocumentFr agment)return h(a);var b=c(a),e=a.parentNode;return e&&d(a,e,b),b}function h(a){ for(var b=new u,c=0,d=a.firstChild;d;d=d.nextSibling)b[c++]=d;return b.length=c, e(a,b),b}function i(a){return a}function j(a){a.nodeIsInserted_()}function k(a){ for(var b=0;b<a.length;b++)j(a[b])}function l(){}function m(){}function n(a,b){v ar c=a.nodeType===s.DOCUMENT_NODE?a:a.ownerDocument;c!==b.ownerDocument&&c.adopt Node(b)}function o(b,c){if(c.length){var d=b.ownerDocument;if(d!==c[0].ownerDocu ment)for(var e=0;e<c.length;e++)a.adoptNodeNoRemove(c[e],d)}}function p(a,b){o(a ,b);var c=b.length;if(1===c)return C(b[0]);for(var d=C(a.ownerDocument.createDoc umentFragment()),e=0;c>e;e++)d.appendChild(C(b[e]));return d}function q(a){if(a. invalidateShadowRenderer()){for(var b=a.firstChild;b;){v(b.parentNode===a);var c =b.nextSibling,d=C(b),e=d.parentNode;e&&K.call(e,d),b.previousSibling_=b.nextSib ling_=b.parentNode_=null,b=c}a.firstChild_=a.lastChild_=null}else for(var c,f=C( a),g=f.firstChild;g;)c=g.nextSibling,K.call(f,g),g=c}function r(a){var b=a.paren tNode;return b&&b.invalidateShadowRenderer()}function s(a){v(a instanceof G),t.c all(this,a),this.parentNode_=void 0,this.firstChild_=void 0,this.lastChild_=void 0,this.nextSibling_=void 0,this.previousSibling_=void 0}var t=a.wrappers.EventT arget,u=a.wrappers.NodeList,v=a.assert,w=a.defineWrapGetter,x=a.enqueueMutation, y=a.isWrapper,z=a.mixin,A=a.registerTransientObservers,B=a.registerWrapper,C=a.u nwrap,D=a.wrap,E=a.wrapIfNeeded,F=!1,G=window.Node,H=window.DocumentFragment,I=( G.prototype.appendChild,G.prototype.compareDocumentPosition),J=G.prototype.inser tBefore,K=G.prototype.removeChild,L=G.prototype.replaceChild,M=/Trident/.test(na vigator.userAgent),N=M?function(a,b){try{K.call(a,b)}catch(c){if(!(a instanceof H))throw c}}:function(a,b){K.call(a,b)};s.prototype=Object.create(t.prototype),z (s.prototype,{appendChild:function(a){return this.insertBefore(a,null)},insertBe fore:function(a,c){b(a);var d;c?y(c)?d=C(c):(d=c,c=D(d)):(c=null,d=null),c&&v(c. parentNode===this);var e,h=c?c.previousSibling:this.lastChild,i=!this.invalidate ShadowRenderer()&&!r(a);if(e=i?g(a):f(a,this,h,c),i)n(this,a),J.call(this.impl,C (a),d);else{h||(this.firstChild_=e[0]),c||(this.lastChild_=e[e.length-1]);var j= d?d.parentNode:this.impl;j?J.call(j,p(this,e),d):o(this,e)}return x(this,"childL ist",{addedNodes:e,nextSibling:c,previousSibling:h}),k(e),a},removeChild:functio n(a){if(b(a),a.parentNode!==this){for(var d=!1,e=(this.childNodes,this.firstChil d);e;e=e.nextSibling)if(e===a){d=!0;break}if(!d)throw new Error("NotFoundError") }var f=C(a),g=a.nextSibling,h=a.previousSibling;if(this.invalidateShadowRenderer ()){var i=this.firstChild,j=this.lastChild,k=f.parentNode;k&&N(k,f),i===a&&(this .firstChild_=g),j===a&&(this.lastChild_=h),h&&(h.nextSibling_=g),g&&(g.previousS ibling_=h),a.previousSibling_=a.nextSibling_=a.parentNode_=void 0}else N(this.im pl,f);return F||x(this,"childList",{removedNodes:c(a),nextSibling:g,previousSibl ing:h}),A(this,a),a},replaceChild:function(a,d){b(a);var e;if(y(d)?e=C(d):(e=d,d =D(e)),d.parentNode!==this)throw new Error("NotFoundError");var h,i=d.nextSiblin g,j=d.previousSibling,m=!this.invalidateShadowRenderer()&&!r(a);return m?h=g(a): (i===a&&(i=a.nextSibling),h=f(a,this,j,i)),m?(n(this,a),L.call(this.impl,C(a),e) ):(this.firstChild===d&&(this.firstChild_=h[0]),this.lastChild===d&&(this.lastCh ild_=h[h.length-1]),d.previousSibling_=d.nextSibling_=d.parentNode_=void 0,e.par entNode&&L.call(e.parentNode,p(this,h),e)),x(this,"childList",{addedNodes:h,remo vedNodes:c(d),nextSibling:i,previousSibling:j}),l(d),k(h),d},nodeIsInserted_:fun ction(){for(var a=this.firstChild;a;a=a.nextSibling)a.nodeIsInserted_()},hasChil dNodes:function(){return null!==this.firstChild},get parentNode(){return void 0! ==this.parentNode_?this.parentNode_:D(this.impl.parentNode)},get firstChild(){re turn void 0!==this.firstChild_?this.firstChild_:D(this.impl.firstChild)},get las tChild(){return void 0!==this.lastChild_?this.lastChild_:D(this.impl.lastChild)} ,get nextSibling(){return void 0!==this.nextSibling_?this.nextSibling_:D(this.im pl.nextSibling)},get previousSibling(){return void 0!==this.previousSibling_?thi s.previousSibling_:D(this.impl.previousSibling)},get parentElement(){for(var a=t his.parentNode;a&&a.nodeType!==s.ELEMENT_NODE;)a=a.parentNode;return a},get text Content(){for(var a="",b=this.firstChild;b;b=b.nextSibling)a+=b.textContent;retu rn a},set textContent(a){var b=i(this.childNodes);if(this.invalidateShadowRender er()){if(q(this),""!==a){var c=this.impl.ownerDocument.createTextNode(a);this.ap pendChild(c)}}else this.impl.textContent=a;var d=i(this.childNodes);x(this,"chil dList",{addedNodes:d,removedNodes:b}),m(b),k(d)},get childNodes(){for(var a=new u,b=0,c=this.firstChild;c;c=c.nextSibling)a[b++]=c;return a.length=b,a},cloneNod e:function(a){var b=D(this.impl.cloneNode(!1));if(a)for(var c=this.firstChild;c; c=c.nextSibling)b.appendChild(c.cloneNode(!0));return b},contains:function(a){if (!a)return!1;if(a=E(a),a===this)return!0;var b=a.parentNode;return b?this.contai ns(b):!1},compareDocumentPosition:function(a){return I.call(this.impl,C(a))}}),w (s,"ownerDocument"),B(G,s,document.createDocumentFragment()),delete s.prototype. querySelector,delete s.prototype.querySelectorAll,s.prototype=z(Object.create(t. prototype),s.prototype),a.nodeWasAdded=j,a.nodeWasRemoved=l,a.nodesWereAdded=k,a .nodesWereRemoved=m,a.snapshotNodeList=i,a.wrappers.Node=s}(window.ShadowDOMPoly fill),function(a){"use strict";function b(a,c){for(var d,e=a.firstElementChild;e ;){if(e.matches(c))return e;if(d=b(e,c))return d;e=e.nextElementSibling}return n ull}function c(a,b,d){for(var e=a.firstElementChild;e;)e.matches(b)&&(d[d.length ++]=e),c(e,b,d),e=e.nextElementSibling;return d}var d={querySelector:function(a) {return b(this,a)},querySelectorAll:function(a){return c(this,a,new NodeList)}}, e={getElementsByTagName:function(a){return this.querySelectorAll(a)},getElements ByClassName:function(a){return this.querySelectorAll("."+a)},getElementsByTagNam eNS:function(a,b){if("*"===a)return this.getElementsByTagName(b);for(var c=new N odeList,d=this.getElementsByTagName(b),e=0,f=0;e<d.length;e++)d[e].namespaceURI= ==a&&(c[f++]=d[e]);return c.length=f,c}};a.GetElementsByInterface=e,a.SelectorsI nterface=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){for (;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}function c(a){for( ;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}var d=a.wrapper s.NodeList,e={get firstElementChild(){return b(this.firstChild)},get lastElement Child(){return c(this.lastChild)},get childElementCount(){for(var a=0,b=this.fir stElementChild;b;b=b.nextElementSibling)a++;return a},get children(){for(var a=n ew d,b=0,c=this.firstElementChild;c;c=c.nextElementSibling)a[b++]=c;return a.len gth=b,a}},f={get nextElementSibling(){return b(this.nextSibling)},get previousEl ementSibling(){return c(this.previousSibling)}};a.ChildNodeInterface=f,a.ParentN odeInterface=e}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a) {d.call(this,a)}var c=a.ChildNodeInterface,d=a.wrappers.Node,e=a.enqueueMutation ,f=a.mixin,g=a.registerWrapper,h=window.CharacterData;b.prototype=Object.create( d.prototype),f(b.prototype,{get textContent(){return this.data},set textContent( a){this.data=a},get data(){return this.impl.data},set data(a){var b=this.impl.da ta;e(this,"characterData",{oldValue:b}),this.impl.data=a}}),f(b.prototype,c),g(h ,b,document.createTextNode("")),a.wrappers.CharacterData=b}(window.ShadowDOMPoly fill),function(a){"use strict";function b(b,c){var d=b.parentNode;if(d&&d.shadow Root){var e=a.getRendererForHost(d);e.dependsOnAttribute(c)&&e.invalidate()}}fun ction c(a,b,c){k(a,"attributes",{name:b,namespace:null,oldValue:c})}function d(a ){h.call(this,a)}function e(a,c,d){var e=d||c;Object.defineProperty(a,c,{get:fun ction(){return this.impl[c]},set:function(a){this.impl[c]=a,b(this,e)},configura ble:!0,enumerable:!0})}var f=a.ChildNodeInterface,g=a.GetElementsByInterface,h=a .wrappers.Node,i=a.ParentNodeInterface,j=a.SelectorsInterface,k=(a.addWrapNodeLi stMethod,a.enqueueMutation),l=a.mixin,m=a.oneOf,n=a.registerWrapper,o=a.wrappers ,p=window.Element,q=m(p.prototype,["matches","mozMatchesSelector","msMatchesSele ctor","webkitMatchesSelector"]),r=p.prototype[q];d.prototype=Object.create(h.pro totype),l(d.prototype,{createShadowRoot:function(){var b=new o.ShadowRoot(this); this.impl.polymerShadowRoot_=b;var c=a.getRendererForHost(this);return c.invalid ate(),b},get shadowRoot(){return this.impl.polymerShadowRoot_||null},setAttribut e:function(a,d){var e=this.impl.getAttribute(a);this.impl.setAttribute(a,d),c(th is,a,e),b(this,a)},removeAttribute:function(a){var d=this.impl.getAttribute(a);t his.impl.removeAttribute(a),c(this,a,d),b(this,a)},matches:function(a){return r. call(this.impl,a)}}),"matches"!=q&&(d.prototype[q]=function(a){return this.match es(a)}),p.prototype.webkitCreateShadowRoot&&(d.prototype.webkitCreateShadowRoot= d.prototype.createShadowRoot),e(d.prototype,"id"),e(d.prototype,"className","cla ss"),l(d.prototype,f),l(d.prototype,g),l(d.prototype,i),l(d.prototype,j),n(p,d), a.matchesName=q,a.wrappers.Element=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){switch(a){case"&":return"&amp;";case"<":return"&lt;";case '"':return"&quot;"}}function c(a){return a.replace(w,b)}function d(a){switch(a.n odeType){case Node.ELEMENT_NODE:for(var b,d=a.tagName.toLowerCase(),f="<"+d,g=a. attributes,h=0;b=g[h];h++)f+=" "+b.name+'="'+c(b.value)+'"';return f+=">",x[d]?f :f+e(a)+"</"+d+">";case Node.TEXT_NODE:return c(a.nodeValue);case Node.COMMENT_N ODE:return"<!--"+c(a.nodeValue)+"-->";default:throw console.error(a),new Error(" not implemented")}}function e(a){for(var b="",c=a.firstChild;c;c=c.nextSibling)b +=d(c);return b}function f(a,b,c){var d=c||"div";a.textContent="";var e=u(a.owne rDocument.createElement(d));e.innerHTML=b;for(var f;f=e.firstChild;)a.appendChil d(v(f))}function g(a){m.call(this,a)}function h(a,b){var c=u(a.cloneNode(!1));c. innerHTML=b;for(var d,e=u(document.createDocumentFragment());d=c.firstChild;)e.a ppendChild(d);return v(e)}function i(b){return function(){return a.renderAllPend ing(),this.impl[b]}}function j(a){n(g,a,i(a))}function k(b){Object.definePropert y(g.prototype,b,{get:i(b),set:function(c){a.renderAllPending(),this.impl[b]=c},c onfigurable:!0,enumerable:!0})}function l(b){Object.defineProperty(g.prototype,b ,{value:function(){return a.renderAllPending(),this.impl[b].apply(this.impl,argu ments)},configurable:!0,enumerable:!0})}var m=a.wrappers.Element,n=a.defineGette r,o=a.enqueueMutation,p=a.mixin,q=a.nodesWereAdded,r=a.nodesWereRemoved,s=a.regi sterWrapper,t=a.snapshotNodeList,u=a.unwrap,v=a.wrap,w=/&|<|"/g,x={area:!0,base: !0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta :!0,param:!0,source:!0,track:!0,wbr:!0},y=window.HTMLElement;g.prototype=Object. create(m.prototype),p(g.prototype,{get innerHTML(){return e(this)},set innerHTML (a){var b=t(this.childNodes);this.invalidateShadowRenderer()?f(this,a,this.tagNa me):this.impl.innerHTML=a;var c=t(this.childNodes);o(this,"childList",{addedNode s:c,removedNodes:b}),r(b),q(c)},get outerHTML(){return d(this)},set outerHTML(a) {var b=this.parentNode;if(b){b.invalidateShadowRenderer();var c=h(b,a);b.replace Child(c,this)}},insertAdjacentHTML:function(a,b){var c,d;switch(String(a).toLowe rCase()){case"beforebegin":c=this.parentNode,d=this;break;case"afterend":c=this. parentNode,d=this.nextSibling;break;case"afterbegin":c=this,d=this.firstChild;br eak;case"beforeend":c=this,d=null;break;default:return}var e=h(c,b);c.insertBefo re(e,d)}}),["clientHeight","clientLeft","clientTop","clientWidth","offsetHeight" ,"offsetLeft","offsetTop","offsetWidth","scrollHeight","scrollWidth"].forEach(j) ,["scrollLeft","scrollTop"].forEach(k),["getBoundingClientRect","getClientRects" ,"scrollIntoView"].forEach(l),s(y,g,document.createElement("b")),a.wrappers.HTML Element=g,a.getInnerHTML=e,a.setInnerHTML=f}(window.ShadowDOMPolyfill),function( a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mi xin,e=a.registerWrapper,f=a.wrap,g=window.HTMLCanvasElement;b.prototype=Object.c reate(c.prototype),d(b.prototype,{getContext:function(){var a=this.impl.getConte xt.apply(this.impl,arguments);return a&&f(a)}}),e(g,b,document.createElement("ca nvas")),a.wrappers.HTMLCanvasElement=b}(window.ShadowDOMPolyfill),function(a){"u se strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e =a.registerWrapper,f=window.HTMLContentElement;b.prototype=Object.create(c.proto type),d(b.prototype,{get select(){return this.getAttribute("select")},set select (a){this.setAttribute("select",a)},setAttribute:function(a,b){c.prototype.setAtt ribute.call(this,a,b),"select"===String(a).toLowerCase()&&this.invalidateShadowR enderer(!0)}}),f&&e(f,b),a.wrappers.HTMLContentElement=b}(window.ShadowDOMPolyfi ll),function(a){"use strict";function b(a){d.call(this,a)}function c(a,b){if(!(t his instanceof c))throw new TypeError("DOM object constructor cannot be called a s a function.");var e=f(document.createElement("img"));d.call(this,e),g(e,this), void 0!==a&&(e.width=a),void 0!==b&&(e.height=b)}var d=a.wrappers.HTMLElement,e= a.registerWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLImageElement;b.prototype=Ob ject.create(d.prototype),e(h,b,document.createElement("img")),c.prototype=b.prot otype,a.wrappers.HTMLImageElement=b,a.wrappers.Image=c}(window.ShadowDOMPolyfill ),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLEle ment,d=a.mixin,e=a.registerWrapper,f=window.HTMLShadowElement;b.prototype=Object .create(c.prototype),d(b.prototype,{}),f&&e(f,b),a.wrappers.HTMLShadowElement=b} (window.ShadowDOMPolyfill),function(a){"use strict";function b(a){if(!a.defaultV iew)return a;var b=m.get(a);if(!b){for(b=a.implementation.createHTMLDocument("") ;b.lastChild;)b.removeChild(b.lastChild);m.set(a,b)}return b}function c(a){for(v ar c,d=b(a.ownerDocument),e=j(d.createDocumentFragment());c=a.firstChild;)e.appe ndChild(c);return e}function d(a){if(e.call(this,a),!n){var b=c(a);l.set(this,k( b))}}var e=a.wrappers.HTMLElement,f=a.getInnerHTML,g=a.mixin,h=a.registerWrapper ,i=a.setInnerHTML,j=a.unwrap,k=a.wrap,l=new WeakMap,m=new WeakMap,n=window.HTMLT emplateElement;d.prototype=Object.create(e.prototype),g(d.prototype,{get content (){return n?k(this.impl.content):l.get(this)},get innerHTML(){return f(this.cont ent)},set innerHTML(a){i(this.content,a)}}),n&&h(n,d),a.wrappers.HTMLTemplateEle ment=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call( this,a)}var c=a.wrappers.HTMLElement,d=a.registerWrapper,e=window.HTMLMediaEleme nt;b.prototype=Object.create(c.prototype),d(e,b,document.createElement("audio")) ,a.wrappers.HTMLMediaElement=b}(window.ShadowDOMPolyfill),function(a){"use stric t";function b(a){d.call(this,a)}function c(a){if(!(this instanceof c))throw new TypeError("DOM object constructor cannot be called as a function.");var b=f(docu ment.createElement("audio"));d.call(this,b),g(b,this),b.setAttribute("preload"," auto"),void 0!==a&&b.setAttribute("src",a)}var d=a.wrappers.HTMLMediaElement,e=a .registerWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLAudioElement;b.prototype=Obj ect.create(d.prototype),e(h,b,document.createElement("audio")),c.prototype=b.pro totype,a.wrappers.HTMLAudioElement=b,a.wrappers.Audio=c}(window.ShadowDOMPolyfil l),function(a){"use strict";function b(a){return a.replace(/\s+/g," ").trim()}fu nction c(a){e.call(this,a)}function d(a,b,c,f){if(!(this instanceof d))throw new TypeError("DOM object constructor cannot be called as a function.");var g=i(doc ument.createElement("option"));e.call(this,g),h(g,this),void 0!==a&&(g.text=a),v oid 0!==b&&g.setAttribute("value",b),c===!0&&g.setAttribute("selected",""),g.sel ected=f===!0}var e=a.wrappers.HTMLElement,f=a.mixin,g=a.registerWrapper,h=a.rewr ap,i=a.unwrap,j=a.wrap,k=window.HTMLOptionElement;c.prototype=Object.create(e.pr ototype),f(c.prototype,{get text(){return b(this.textContent)},set text(a){this. textContent=b(String(a))},get form(){return j(i(this).form)}}),g(k,c,document.cr eateElement("option")),d.prototype=c.prototype,a.wrappers.HTMLOptionElement=c,a. wrappers.Option=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b (a){switch(a.localName){case"content":return new c(a);case"shadow":return new e( a);case"template":return new f(a)}d.call(this,a)}var c=a.wrappers.HTMLContentEle ment,d=a.wrappers.HTMLElement,e=a.wrappers.HTMLShadowElement,f=a.wrappers.HTMLTe mplateElement,g=(a.mixin,a.registerWrapper),h=window.HTMLUnknownElement;b.protot ype=Object.create(d.prototype),g(h,b),a.wrappers.HTMLUnknownElement=b}(window.Sh adowDOMPolyfill),function(a){"use strict";function b(a){this.impl=a}var c=a.mixi n,d=a.registerWrapper,e=a.unwrap,f=a.unwrapIfNeeded,g=a.wrap,h=window.CanvasRend eringContext2D;c(b.prototype,{get canvas(){return g(this.impl.canvas)},drawImage :function(){arguments[0]=f(arguments[0]),this.impl.drawImage.apply(this.impl,arg uments)},createPattern:function(){return arguments[0]=e(arguments[0]),this.impl. createPattern.apply(this.impl,arguments)}}),d(h,b,document.createElement("canvas ").getContext("2d")),a.wrappers.CanvasRenderingContext2D=b}(window.ShadowDOMPoly fill),function(a){"use strict";function b(a){this.impl=a}var c=a.mixin,d=a.regis terWrapper,e=a.unwrapIfNeeded,f=a.wrap,g=window.WebGLRenderingContext;if(g){c(b. prototype,{get canvas(){return f(this.impl.canvas)},texImage2D:function(){argume nts[5]=e(arguments[5]),this.impl.texImage2D.apply(this.impl,arguments)},texSubIm age2D:function(){arguments[6]=e(arguments[6]),this.impl.texSubImage2D.apply(this .impl,arguments)}});var h=/WebKit/.test(navigator.userAgent)?{drawingBufferHeigh t:null,drawingBufferWidth:null}:{};d(g,b,h),a.wrappers.WebGLRenderingContext=b}} (window.ShadowDOMPolyfill),function(a){"use strict";function b(a){this.impl=a}va r c=a.registerWrapper,d=a.unwrap,e=a.unwrapIfNeeded,f=a.wrap,g=window.Range;b.pr ototype={get startContainer(){return f(this.impl.startContainer)},get endContain er(){return f(this.impl.endContainer)},get commonAncestorContainer(){return f(th is.impl.commonAncestorContainer)},setStart:function(a,b){this.impl.setStart(e(a) ,b)},setEnd:function(a,b){this.impl.setEnd(e(a),b)},setStartBefore:function(a){t his.impl.setStartBefore(e(a))},setStartAfter:function(a){this.impl.setStartAfter (e(a))},setEndBefore:function(a){this.impl.setEndBefore(e(a))},setEndAfter:funct ion(a){this.impl.setEndAfter(e(a))},selectNode:function(a){this.impl.selectNode( e(a))},selectNodeContents:function(a){this.impl.selectNodeContents(e(a))},compar eBoundaryPoints:function(a,b){return this.impl.compareBoundaryPoints(a,d(b))},ex tractContents:function(){return f(this.impl.extractContents())},cloneContents:fu nction(){return f(this.impl.cloneContents())},insertNode:function(a){this.impl.i nsertNode(e(a))},surroundContents:function(a){this.impl.surroundContents(e(a))}, cloneRange:function(){return f(this.impl.cloneRange())},isPointInRange:function( a,b){return this.impl.isPointInRange(e(a),b)},comparePoint:function(a,b){return this.impl.comparePoint(e(a),b)},intersectsNode:function(a){return this.impl.inte rsectsNode(e(a))}},g.prototype.createContextualFragment&&(b.prototype.createCont extualFragment=function(a){return f(this.impl.createContextualFragment(a))}),c(w indow.Range,b,document.createRange()),a.wrappers.Range=b}(window.ShadowDOMPolyfi ll),function(a){"use strict";var b=a.GetElementsByInterface,c=a.ParentNodeInterf ace,d=a.SelectorsInterface,e=a.mixin,f=a.registerObject,g=f(document.createDocum entFragment());e(g.prototype,c),e(g.prototype,d),e(g.prototype,b);var h=f(docume nt.createTextNode("")),i=f(document.createComment(""));a.wrappers.Comment=i,a.wr appers.DocumentFragment=g,a.wrappers.Text=h}(window.ShadowDOMPolyfill),function( a){"use strict";function b(a){var b=i(a.impl.ownerDocument.createDocumentFragmen t());c.call(this,b),g(b,this);var d=a.shadowRoot;k.set(this,d),j.set(this,a)}var c=a.wrappers.DocumentFragment,d=a.elementFromPoint,e=a.getInnerHTML,f=a.mixin,g =a.rewrap,h=a.setInnerHTML,i=a.unwrap,j=new WeakMap,k=new WeakMap;b.prototype=Ob ject.create(c.prototype),f(b.prototype,{get innerHTML(){return e(this)},set inne rHTML(a){h(this,a),this.invalidateShadowRenderer()},get olderShadowRoot(){return k.get(this)||null},get host(){return j.get(this)||null},invalidateShadowRendere r:function(){return j.get(this).invalidateShadowRenderer()},elementFromPoint:fun ction(a,b){return d(this,this.ownerDocument,a,b)},getElementById:function(a){ret urn this.querySelector("#"+a)}}),a.wrappers.ShadowRoot=b}(window.ShadowDOMPolyfi ll),function(a){"use strict";function b(a){a.previousSibling_=a.previousSibling, a.nextSibling_=a.nextSibling,a.parentNode_=a.parentNode}function c(a,c,e){var f= F(a),g=F(c),h=e?F(e):null;if(d(c),b(c),e)a.firstChild===e&&(a.firstChild_=e),e.p reviousSibling_=e.previousSibling;else{a.lastChild_=a.lastChild,a.lastChild===a. firstChild&&(a.firstChild_=a.firstChild);var i=G(f.lastChild);i&&(i.nextSibling_ =i.nextSibling)}f.insertBefore(g,h)}function d(a){var c=F(a),d=c.parentNode;if(d ){var e=G(d);b(a),a.previousSibling&&(a.previousSibling.nextSibling_=a),a.nextSi bling&&(a.nextSibling.previousSibling_=a),e.lastChild===a&&(e.lastChild_=a),e.fi rstChild===a&&(e.firstChild_=a),d.removeChild(c)}}function e(a,b){g(b).push(a),x (a,b);var c=I.get(a);c||I.set(a,c=[]),c.push(b)}function f(a){H.set(a,[])}functi on g(a){return H.get(a)}function h(a){for(var b=[],c=0,d=a.firstChild;d;d=d.next Sibling)b[c++]=d;return b}function i(a,b,c){for(var d=a.firstChild;d;d=d.nextSib ling)if(b(d)){if(c(d)===!1)return}else i(d,b,c)}function j(a,b){var c=b.getAttri bute("select");if(!c)return!0;if(c=c.trim(),!c)return!0;if(!(a instanceof z))ret urn!1;if(!L.test(c))return!1;if(":"===c[0]&&!M.test(c))return!1;try{return a.mat ches(c)}catch(d){return!1}}function k(){for(var a=0;a<O.length;a++)O[a].render() ;O=[]}function l(){y=null,k()}function m(a){var b=K.get(a);return b||(b=new q(a) ,K.set(a,b)),b}function n(a){for(;a;a=a.parentNode)if(a instanceof D)return a;re turn null}function o(a){return m(a.host)}function p(a){this.skip=!1,this.node=a, this.childNodes=[]}function q(a){this.host=a,this.dirty=!1,this.invalidateAttrib utes(),this.associateNode(a)}function r(a){return a instanceof A}function s(a){r eturn a instanceof A}function t(a){return a instanceof B}function u(a){return a instanceof B}function v(a){return a.shadowRoot}function w(a){for(var b=[],c=a.sh adowRoot;c;c=c.olderShadowRoot)b.push(c);return b}function x(a,b){J.set(a,b)}var y,z=a.wrappers.Element,A=a.wrappers.HTMLContentElement,B=a.wrappers.HTMLShadowE lement,C=a.wrappers.Node,D=a.wrappers.ShadowRoot,E=(a.assert,a.mixin,a.oneOf),F= a.unwrap,G=a.wrap,H=new WeakMap,I=new WeakMap,J=new WeakMap,K=new WeakMap,L=/^[* .:#[a-zA-Z_|]/,M=new RegExp("^:("+["link","visited","target","enabled","disabled ","checked","indeterminate","nth-child","nth-last-child","nth-of-type","nth-last -of-type","first-child","last-child","first-of-type","last-of-type","only-of-typ e"].join("|")+")"),N=E(window,["requestAnimationFrame","mozRequestAnimationFrame ","webkitRequestAnimationFrame","setTimeout"]),O=[],P=new ArraySplice;P.equals=f unction(a,b){return F(a.node)===b},p.prototype={append:function(a){var b=new p(a );return this.childNodes.push(b),b},sync:function(a){if(!this.skip){for(var b=th is.node,e=this.childNodes,f=h(F(b)),g=a||new WeakMap,i=P.calculateSplices(e,f),j =0,k=0,l=0,m=0;m<i.length;m++){for(var n=i[m];l<n.index;l++)k++,e[j++].sync(g);f or(var o=n.removed.length,p=0;o>p;p++){var q=G(f[k++]);g.get(q)||d(q)}for(var r= n.addedCount,s=f[k]&&G(f[k]),p=0;r>p;p++){var t=e[j++],u=t.node;c(b,u,s),g.set(u ,!0),t.sync(g)}l+=r}for(var m=l;m<e.length;m++)e[m].sync(g)}}},q.prototype={rend er:function(a){if(this.dirty){this.invalidateAttributes(),this.treeComposition() ;var b=this.host,c=b.shadowRoot;this.associateNode(b);for(var d=!e,e=a||new p(b) ,f=c.firstChild;f;f=f.nextSibling)this.renderNode(c,e,f,!1);d&&e.sync(),this.dir ty=!1}},invalidate:function(){if(!this.dirty){if(this.dirty=!0,O.push(this),y)re turn;y=window[N](l,0)}},renderNode:function(a,b,c,d){if(v(c)){b=b.append(c);var e=m(c);e.dirty=!0,e.render(b)}else r(c)?this.renderInsertionPoint(a,b,c,d):t(c)? this.renderShadowInsertionPoint(a,b,c):this.renderAsAnyDomTree(a,b,c,d)},renderA sAnyDomTree:function(a,b,c,d){if(b=b.append(c),v(c)){var e=m(c);b.skip=!e.dirty, e.render(b)}else for(var f=c.firstChild;f;f=f.nextSibling)this.renderNode(a,b,f, d)},renderInsertionPoint:function(a,b,c,d){var e=g(c);if(e.length){this.associat eNode(c);for(var f=0;f<e.length;f++){var h=e[f];r(h)&&d?this.renderInsertionPoin t(a,b,h,d):this.renderAsAnyDomTree(a,b,h,d)}}else this.renderFallbackContent(a,b ,c);this.associateNode(c.parentNode)},renderShadowInsertionPoint:function(a,b,c) {var d=a.olderShadowRoot;if(d){x(d,c),this.associateNode(c.parentNode);for(var e =d.firstChild;e;e=e.nextSibling)this.renderNode(d,b,e,!0)}else this.renderFallba ckContent(a,b,c)},renderFallbackContent:function(a,b,c){this.associateNode(c),th is.associateNode(c.parentNode);for(var d=c.firstChild;d;d=d.nextSibling)this.ren derAsAnyDomTree(a,b,d,!1)},invalidateAttributes:function(){this.attributes=Objec t.create(null)},updateDependentAttributes:function(a){if(a){var b=this.attribute s;/\.\w+/.test(a)&&(b["class"]=!0),/#\w+/.test(a)&&(b.id=!0),a.replace(/\[\s*([^ \s=\|~\]]+)/g,function(a,c){b[c]=!0})}},dependsOnAttribute:function(a){return th is.attributes[a]},distribute:function(a,b){var c=this;i(a,s,function(a){f(a),c.u pdateDependentAttributes(a.getAttribute("select"));for(var d=0;d<b.length;d++){v ar g=b[d];void 0!==g&&j(g,a)&&(e(g,a),b[d]=void 0)}})},treeComposition:function( ){for(var a=this.host,b=a.shadowRoot,c=[],d=a.firstChild;d;d=d.nextSibling)if(r( d)){var e=g(d);e&&e.length||(e=h(d)),c.push.apply(c,e)}else c.push(d);for(var f, j;b;){if(f=void 0,i(b,u,function(a){return f=a,!1}),j=f,this.distribute(b,c),j){ var k=b.olderShadowRoot;if(k){b=k,x(b,j);continue}break}break}},associateNode:fu nction(a){a.impl.polymerShadowRenderer_=this}},C.prototype.invalidateShadowRende rer=function(){var a=this.impl.polymerShadowRenderer_;return a?(a.invalidate(),! 0):!1},A.prototype.getDistributedNodes=function(){return k(),g(this)},B.prototyp e.nodeIsInserted_=A.prototype.nodeIsInserted_=function(){this.invalidateShadowRe nderer();var a,b=n(this);b&&(a=o(b)),this.impl.polymerShadowRenderer_=a,a&&a.inv alidate()},a.eventParentsTable=I,a.getRendererForHost=m,a.getShadowTrees=w,a.ins ertionParentTable=J,a.renderAllPending=k,a.visual={insertBefore:c,remove:d}}(win dow.ShadowDOMPolyfill),function(a){"use strict";function b(b){if(window[b]){d(!a .wrappers[b]);var i=function(a){c.call(this,a)};i.prototype=Object.create(c.prot otype),e(i.prototype,{get form(){return h(g(this).form)}}),f(window[b],i,documen t.createElement(b.slice(4,-7))),a.wrappers[b]=i}}var c=a.wrappers.HTMLElement,d= a.assert,e=a.mixin,f=a.registerWrapper,g=a.unwrap,h=a.wrap,i=["HTMLButtonElement ","HTMLFieldSetElement","HTMLInputElement","HTMLKeygenElement","HTMLLabelElement ","HTMLLegendElement","HTMLObjectElement","HTMLOutputElement","HTMLSelectElement ","HTMLTextAreaElement"];i.forEach(b)}(window.ShadowDOMPolyfill),function(a){"us e strict";function b(a){k.call(this,a)}function c(a){var c=document[a];b.prototy pe[a]=function(){return v(c.apply(this.impl,arguments))}}function d(a,b){z.call( b.impl,u(a)),e(a,b)}function e(a,b){a.shadowRoot&&b.adoptNode(a.shadowRoot),a in stanceof n&&f(a,b);for(var c=a.firstChild;c;c=c.nextSibling)e(c,b)}function f(a, b){var c=a.olderShadowRoot;c&&b.adoptNode(c)}function g(a){this.impl=a}function h(a,b){var c=document.implementation[b];a.prototype[b]=function(){return v(c.app ly(this.impl,arguments))}}function i(a,b){var c=document.implementation[b];a.pro totype[b]=function(){return c.apply(this.impl,arguments)}}var j=a.GetElementsByI nterface,k=a.wrappers.Node,l=a.ParentNodeInterface,m=a.SelectorsInterface,n=a.wr appers.ShadowRoot,o=a.defineWrapGetter,p=a.elementFromPoint,q=a.forwardMethodsTo Wrapper,r=a.matchesName,s=a.mixin,t=a.registerWrapper,u=a.unwrap,v=a.wrap,w=a.re wrap,x=a.wrapEventTargetMethods,y=(a.wrapNodeList,new WeakMap);b.prototype=Objec t.create(k.prototype),o(b,"documentElement"),o(b,"body"),o(b,"head"),["createCom ment","createDocumentFragment","createElement","createElementNS","createEvent"," createEventNS","createRange","createTextNode","getElementById"].forEach(c);var z =document.adoptNode,A=document.importNode;if(s(b.prototype,{adoptNode:function(a ){return a.parentNode&&a.parentNode.removeChild(a),d(a,this),a},elementFromPoint :function(a,b){return p(this,this,a,b)},importNode:function(a,b){var c=v(A.call( this.impl,u(a),!1));if(b)for(var d=a.firstChild;d;d=d.nextSibling)c.appendChild( this.importNode(d,!0));return c}}),document.register){var B=document.register;b. prototype.register=function(b,c){function d(a){return a?(this.impl=a,void 0):c.e xtends?document.createElement(c.extends,b):document.createElement(b)}var e=c.pro totype;if(a.nativePrototypeTable.get(e))throw new Error("NotSupportedError");for (var f,g=Object.getPrototypeOf(e),h=[];g&&!(f=a.nativePrototypeTable.get(g));)h. push(g),g=Object.getPrototypeOf(g);if(!f)throw new Error("NotSupportedError");fo r(var i=Object.create(f),j=h.length-1;j>=0;j--)i=Object.create(i);["createdCallb ack","enteredViewCallback","leftViewCallback","attributeChangedCallback"].forEac h(function(a){var b=e[a];b&&(i[a]=function(){v(this)instanceof d||w(this),b.appl y(v(this),arguments)})});var k={prototype:i};c.extends&&(k.extends=c.extends),d. prototype=e,d.prototype.constructor=d,a.constructorTable.set(i,d),a.nativeProtot ypeTable.set(e,i);B.call(u(this),b,k);return d},q([window.HTMLDocument||window.D ocument],["register"])}q([window.HTMLBodyElement,window.HTMLDocument||window.Doc ument,window.HTMLHeadElement,window.HTMLHtmlElement],["appendChild","compareDocu mentPosition","contains","getElementsByClassName","getElementsByTagName","getEle mentsByTagNameNS","insertBefore","querySelector","querySelectorAll","removeChild ","replaceChild",r]),q([window.HTMLDocument||window.Document],["adoptNode","impo rtNode","contains","createComment","createDocumentFragment","createElement","cre ateElementNS","createEvent","createEventNS","createRange","createTextNode","elem entFromPoint","getElementById"]),s(b.prototype,j),s(b.prototype,l),s(b.prototype ,m),s(b.prototype,{get implementation(){var a=y.get(this);return a?a:(a=new g(u( this).implementation),y.set(this,a),a)}}),t(window.Document,b,document.implement ation.createHTMLDocument("")),window.HTMLDocument&&t(window.HTMLDocument,b),x([w indow.HTMLBodyElement,window.HTMLDocument||window.Document,window.HTMLHeadElemen t]),h(g,"createDocumentType"),h(g,"createDocument"),h(g,"createHTMLDocument"),i( g,"hasFeature"),t(window.DOMImplementation,g),q([window.DOMImplementation],["cre ateDocumentType","createDocument","createHTMLDocument","hasFeature"]),a.adoptNod eNoRemove=d,a.wrappers.DOMImplementation=g,a.wrappers.Document=b}(window.ShadowD OMPolyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappe rs.EventTarget,d=a.mixin,e=a.registerWrapper,f=a.unwrap,g=a.unwrapIfNeeded,h=a.w rap,i=a.renderAllPending,j=window.Window;b.prototype=Object.create(c.prototype); var k=window.getComputedStyle;j.prototype.getComputedStyle=function(a,b){return i(),k.call(this||window,g(a),b)
31 },delete window.getComputedStyle,["addEventListener","removeEventListener","disp atchEvent"].forEach(function(a){j.prototype[a]=function(){var b=h(this||window); return b[a].apply(b,arguments)},delete window[a]}),d(b.prototype,{getComputedSty le:function(a,b){return k.call(f(this),g(a),b)}}),e(j,b),a.wrappers.Window=b}(wi ndow.ShadowDOMPolyfill),function(a){"use strict";function b(a){var b=c[a],d=wind ow[b];if(d){var e=document.createElement(a),f=e.constructor;window[b]=f}}var c=( a.isWrapperFor,{a:"HTMLAnchorElement",applet:"HTMLAppletElement",area:"HTMLAreaE lement",br:"HTMLBRElement",base:"HTMLBaseElement",body:"HTMLBodyElement",button: "HTMLButtonElement",dl:"HTMLDListElement",datalist:"HTMLDataListElement",data:"H TMLDataElement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",embed:"HTMLEmbed Element",fieldset:"HTMLFieldSetElement",font:"HTMLFontElement",form:"HTMLFormEle ment",frame:"HTMLFrameElement",frameset:"HTMLFrameSetElement",hr:"HTMLHRElement" ,head:"HTMLHeadElement",h1:"HTMLHeadingElement",html:"HTMLHtmlElement",iframe:"H TMLIFrameElement",input:"HTMLInputElement",li:"HTMLLIElement",label:"HTMLLabelEl ement",legend:"HTMLLegendElement",link:"HTMLLinkElement",map:"HTMLMapElement",ma rquee:"HTMLMarqueeElement",menu:"HTMLMenuElement",menuitem:"HTMLMenuItemElement" ,meta:"HTMLMetaElement",meter:"HTMLMeterElement",del:"HTMLModElement",ol:"HTMLOL istElement",object:"HTMLObjectElement",optgroup:"HTMLOptGroupElement",option:"HT MLOptionElement",output:"HTMLOutputElement",p:"HTMLParagraphElement",param:"HTML ParamElement",pre:"HTMLPreElement",progress:"HTMLProgressElement",q:"HTMLQuoteEl ement",script:"HTMLScriptElement",select:"HTMLSelectElement",source:"HTMLSourceE lement",span:"HTMLSpanElement",style:"HTMLStyleElement",time:"HTMLTimeElement",c aption:"HTMLTableCaptionElement",col:"HTMLTableColElement",table:"HTMLTableEleme nt",tr:"HTMLTableRowElement",thead:"HTMLTableSectionElement",tbody:"HTMLTableSec tionElement",textarea:"HTMLTextAreaElement",track:"HTMLTrackElement",title:"HTML TitleElement",ul:"HTMLUListElement",video:"HTMLVideoElement"});Object.keys(c).fo rEach(b),Object.getOwnPropertyNames(a.wrappers).forEach(function(b){window[b]=a. wrappers[b]}),a.knownElements=c}(window.ShadowDOMPolyfill),function(){window.wra p=ShadowDOMPolyfill.wrapIfNeeded,window.unwrap=ShadowDOMPolyfill.unwrapIfNeeded, Object.defineProperty(Element.prototype,"webkitShadowRoot",Object.getOwnProperty Descriptor(Element.prototype,"shadowRoot"));var a=Element.prototype.createShadow Root;Element.prototype.createShadowRoot=function(){var b=a.call(this);return Cus tomElements.watchShadow(this),b},Element.prototype.webkitCreateShadowRoot=Elemen t.prototype.createShadowRoot}(),function(a){function b(a,b){var c="";return Arra y.prototype.forEach.call(a,function(a){c+=a.textContent+"\n\n"}),b||(c=c.replace (n,"")),c}function c(a){var b=document.createElement("style");return b.textConte nt=a,b}function d(a){var b=c(a);document.head.appendChild(b);var d=b.sheet.cssRu les;return b.parentNode.removeChild(b),d}function e(a){for(var b=0,c=[];b<a.leng th;b++)c.push(a[b].cssText);return c.join("\n\n")}function f(a){a&&g().appendChi ld(document.createTextNode(a))}function g(){return h||(h=document.createElement( "style"),h.setAttribute("ShadowCSSShim",""),h.shadowCssShim=!0),h}var h,i={stric tStyling:!1,registry:{},shimStyling:function(a,b,d){var e=this.isTypeExtension(d ),g=this.registerDefinition(a,b,d);this.strictStyling&&this.applyScopeToContent( a,b);var h=this.stylesToShimmedCssText(g.rootStyles,g.scopeStyles,b,e);g.shimmed Style=c(h),a&&(a.shimmedStyle=g.shimmedStyle);for(var i,j=0,k=g.rootStyles.lengt h;k>j&&(i=g.rootStyles[j]);j++)i.parentNode.removeChild(i);f(h)},stylesToShimmed CssText:function(a,b,c,d){c=c||"",this.insertPolyfillDirectives(a),this.insertPo lyfillRules(a);var e=this.shimAtHost(b,c,d)+this.shimScoping(b,c,d);return e+=th is.extractPolyfillUnscopedRules(a)},registerDefinition:function(a,b,c){var d=thi s.registry[b]={root:a,name:b,extendsName:c},e=a?a.querySelectorAll("style"):[];e =e?Array.prototype.slice.call(e,0):[],d.rootStyles=e,d.scopeStyles=d.rootStyles; var f=this.registry[d.extendsName];return!f||a&&!a.querySelector("shadow")||(d.s copeStyles=f.scopeStyles.concat(d.scopeStyles)),d},isTypeExtension:function(a){r eturn a&&a.indexOf("-")<0},applyScopeToContent:function(a,b){a&&(Array.prototype .forEach.call(a.querySelectorAll("*"),function(a){a.setAttribute(b,"")}),Array.p rototype.forEach.call(a.querySelectorAll("template"),function(a){this.applyScope ToContent(a.content,b)},this))},insertPolyfillDirectives:function(a){a&&Array.pr ototype.forEach.call(a,function(a){a.textContent=this.insertPolyfillDirectivesIn CssText(a.textContent)},this)},insertPolyfillDirectivesInCssText:function(a){ret urn a.replace(o,function(a,b){return b.slice(0,-2)+"{"})},insertPolyfillRules:fu nction(a){a&&Array.prototype.forEach.call(a,function(a){a.textContent=this.inser tPolyfillRulesInCssText(a.textContent)},this)},insertPolyfillRulesInCssText:func tion(a){return a.replace(p,function(a,b){return b.slice(0,-1)})},extractPolyfill UnscopedRules:function(a){var b="";return a&&Array.prototype.forEach.call(a,func tion(a){b+=this.extractPolyfillUnscopedRulesFromCssText(a.textContent)+"\n\n"},t his),b},extractPolyfillUnscopedRulesFromCssText:function(a){for(var b,c="";b=q.e xec(a);)c+=b[1].slice(0,-1)+"\n\n";return c},shimAtHost:function(a,b,c){return a ?this.convertAtHostStyles(a,b,c):void 0},convertAtHostStyles:function(a,c,f){var g=b(a),h=this;return g=g.replace(j,function(a,b){return h.scopeHostCss(b,c,f)}) ,g=e(this.findAtHostRules(d(g),this.makeScopeMatcher(c,f)))},scopeHostCss:functi on(a,b,c){var d=this;return a.replace(k,function(a,e,f){return d.scopeHostSelect or(e,b,c)+" "+f+"\n "})},scopeHostSelector:function(a,b,c){var d=[],e=a.spli t(","),f="[is="+b+"]";return e.forEach(function(a){a=a.trim(),a.match(l)?a=a.rep lace(l,c?f+"$1$3":b+"$1$3"):a.match(m)&&(a=c?f+a:b+a),d.push(a)},this),d.join(", ")},findAtHostRules:function(a,b){return Array.prototype.filter.call(a,this.isH ostRule.bind(this,b))},isHostRule:function(a,b){return b.selectorText&&b.selecto rText.match(a)||b.cssRules&&this.findAtHostRules(b.cssRules,a).length||b.type==C SSRule.WEBKIT_KEYFRAMES_RULE},shimScoping:function(a,b,c){return a?this.convertS copedStyles(a,b,c):void 0},convertScopedStyles:function(a,c,e){var f=b(a).replac e(j,"");f=this.insertPolyfillHostInCssText(f),f=this.convertColonHost(f),f=this. convertPseudos(f),f=this.convertParts(f),f=this.convertCombinators(f);var g=d(f) ;return c&&(f=this.scopeRules(g,c,e)),f},convertPseudos:function(a){return a.rep lace(r," [pseudo=$1]")},convertParts:function(a){return a.replace(s," [part=$1]" )},convertColonHost:function(a){return a.replace(u,function(a,b,c,d){if(b=y,c){f or(var e,f=c.split(","),g=[],h=0,i=f.length;i>h&&(e=f[h]);h++)e=e.trim(),e.match (t)?g.push(b+e.replace(t,"")+d):g.push(b+e+d+", "+e+" "+b+d);return g.join(",")} return b+d})},convertCombinators:function(a){return a.replace(/\^\^/g," ").repla ce(/\^/g," ")},scopeRules:function(a,b,c){var d="";return Array.prototype.forEac h.call(a,function(a){a.selectorText&&a.style&&a.style.cssText?(d+=this.scopeSele ctor(a.selectorText,b,c,this.strictStyling)+" {\n ",d+=this.propertiesFrom Rule(a)+"\n}\n\n"):a.media?(d+="@media "+a.media.mediaText+" {\n",d+=this.scopeR ules(a.cssRules,b,c),d+="\n}\n\n"):a.cssText&&(d+=a.cssText+"\n\n")},this),d},sc opeSelector:function(a,b,c,d){var e=[],f=a.split(",");return f.forEach(function( a){a=a.trim(),this.selectorNeedsScoping(a,b,c)&&(a=d&&!a.match(y)?this.applyStri ctSelectorScope(a,b):this.applySimpleSelectorScope(a,b,c)),e.push(a)},this),e.jo in(", ")},selectorNeedsScoping:function(a,b,c){var d=this.makeScopeMatcher(b,c); return!a.match(d)},makeScopeMatcher:function(a,b){var c=b?"\\[is=['\"]?"+a+"['\" ]?\\]":a;return new RegExp("^("+c+")"+v,"m")},applySimpleSelectorScope:function( a,b,c){var d=c?"[is="+b+"]":b;return a.match(z)?(a=a.replace(y,d),a.replace(z,d+ " ")):d+" "+a},applyStrictSelectorScope:function(a,b){var c=[" ",">","+","~"],d= a,e="["+b+"]";return c.forEach(function(a){var b=d.split(a);d=b.map(function(a){ var b=a.trim().replace(z,"");return b&&c.indexOf(b)<0&&b.indexOf(e)<0&&(a=b.repl ace(/([^:]*)(:*)(.*)/,"$1"+e+"$2$3")),a}).join(a)}),d},insertPolyfillHostInCssTe xt:function(a){return a.replace(w,t).replace(x,t)},propertiesFromRule:function(a ){return a.style.cssText}},j=/@host[^{]*{(([^}]*?{[^{]*?}[\s\S]*?)+)}/gim,k=/([^ {]*)({[\s\S]*?})/gim,l=/(.*)((?:\*)|(?:\:scope))(.*)/,m=/^[.\[:]/,n=/\/\*[^*]*\* +([^/*][^*]*\*+)*\//gim,o=/\/\*\s*@polyfill ([^*]*\*+([^/*][^*]*\*+)*\/)([^{]*?) {/gim,p=/\/\*\s@polyfill-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim,q=/\/\*\s@polyfill -unscoped-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim,r=/::(x-[^\s{,(]*)/gim,s=/::part\ (([^)]*)\)/gim,t="-shadowcsshost",u=new RegExp("("+t+")(?:\\(((?:\\([^)(]*\\)|[^ )(]*)+?)\\))?([^,{]*)","gim"),v="([>\\s~+[.,{:][\\s\\S]*)?$",w=/@host/gim,x=/\:h ost/gim,y=t+"-no-combinator",z=new RegExp(t,"gim");if(window.ShadowDOMPolyfill){ f("style { display: none !important; }\n");var A=wrap(document),B=A.querySelecto r("head");B.insertBefore(g(),B.childNodes[0]),document.addEventListener("DOMCont entLoaded",function(){window.HTMLImports&&(HTMLImports.importer.preloadSelectors +=", link[rel=stylesheet]:not([nopolyfill])",HTMLImports.parser.parseGeneric=fun ction(a){if(!a.shadowCssShim){var b=a;if(!a.hasAttribute("nopolyfill")){a.__reso urce&&(b=A.createElement("style"),b.textContent=a.__resource,a.ownerDocument===A &&a.parentNode.removeChild(a));var c=[b];b.textContent=i.stylesToShimmedCssText( c,c),b.shadowCssShim=!0}b.parentNode!==B&&B.appendChild(b)}})})}a.ShadowCSS=i}(w indow.Platform)):!function(){window.templateContent=window.templateContent||func tion(a){return a.content},window.wrap=window.unwrap=function(a){return a};var a= Element.prototype.webkitCreateShadowRoot;Element.prototype.webkitCreateShadowRoo t=function(){var b=this.webkitShadowRoot,c=a.call(this);return c.olderShadowRoot =b,c.host=this,CustomElements.watchShadow(this),c},Object.defineProperties(Eleme nt.prototype,{shadowRoot:{get:function(){return this.webkitShadowRoot}},createSh adowRoot:{value:function(){return this.webkitCreateShadowRoot()}}}),window.templ ateContent=function(a){if(window.HTMLTemplateElement&&HTMLTemplateElement.bootst rap&&HTMLTemplateElement.bootstrap(a),!a.content&&!a._content){for(var b=documen t.createDocumentFragment();a.firstChild;)b.appendChild(a.firstChild);a._content= b}return a.content||a._content}}(),function(a){function b(a){for(var b=a||{},d=1 ;d<arguments.length;d++){var e=arguments[d];try{for(var f in e)c(f,e,b)}catch(g) {}}return b}function c(a,b,c){var e=d(b,a);Object.defineProperty(c,a,e)}function d(a,b){if(a){var c=Object.getOwnPropertyDescriptor(a,b);return c||d(Object.getP rototypeOf(a),b)}}Function.prototype.bind||(Function.prototype.bind=function(a){ var b=this,c=Array.prototype.slice.call(arguments,1);return function(){var d=c.s lice();return d.push.apply(d,arguments),b.apply(a,d)}}),a.mixin=b}(window.Platfo rm),function(a){"use strict";function b(a,b,c){var d="string"==typeof a?document .createElement(a):a.cloneNode(!0);if(d.innerHTML=b,c)for(var e in c)d.setAttribu te(e,c[e]);return d}var c=DOMTokenList.prototype.add,d=DOMTokenList.prototype.re move;DOMTokenList.prototype.add=function(){for(var a=0;a<arguments.length;a++)c. call(this,arguments[a])},DOMTokenList.prototype.remove=function(){for(var a=0;a< arguments.length;a++)d.call(this,arguments[a])},DOMTokenList.prototype.toggle=fu nction(a,b){1==arguments.length&&(b=!this.contains(a)),b?this.add(a):this.remove (a)},DOMTokenList.prototype.switch=function(a,b){a&&this.remove(a),b&&this.add(b )};var e=function(){return Array.prototype.slice.call(this)},f=window.NamedNodeM ap||window.MozNamedAttrMap||{};if(NodeList.prototype.array=e,f.prototype.array=e ,HTMLCollection.prototype.array=e,!window.performance){var g=Date.now();window.p erformance={now:function(){return Date.now()-g}}}window.requestAnimationFrame||( window.requestAnimationFrame=function(){var a=window.webkitRequestAnimationFrame ||window.mozRequestAnimationFrame;return a?function(b){return a(function(){b(per formance.now())})}:function(a){return window.setTimeout(a,1e3/60)}}()),window.ca ncelAnimationFrame||(window.cancelAnimationFrame=function(){return window.webkit CancelAnimationFrame||window.mozCancelAnimationFrame||function(a){clearTimeout(a )}}());var h=document.createElement("template"),i=document.createElement("base") ;i.href=document.baseURI,h.content.ownerDocument.appendChild(i);var j=function(a ,b){window.addEventListener("WebComponentsReady",function(){window.Polymer!==j?P olymer(a,b):console.warn('You tried to use polymer without loading it first. To load polymer, <link rel="import" href="components/polymer/plymer.html">')})};win dow.Polymer=j,a.createDOM=b}(window.Platform),window.templateContent=window.temp lateContent||function(a){return a.content},function(a){a=a||(window.Inspector={} );var b;window.sinspect=function(a,d){b||(b=window.open("","ShadowDOM Inspector" ,null,!0),b.document.write(c),b.api={shadowize:shadowize}),f(a||wrap(document.bo dy),d)};var c=["<!DOCTYPE html>","<html>"," <head>"," <title>ShadowDOM Inspe ctor</title>"," <style>"," body {"," }"," pre {",' font : 9pt "Courier New", monospace;'," line-height: 1.5em;"," }"," tag {"," color: purple;"," }"," ul {"," margin: 0;"," padding: 0;"," list-style: none;"," }"," li {"," display: inline-block;"," background-color: #f1f1f1;"," paddin g: 4px 6px;"," border-radius: 4px;"," margin-right: 4px;"," }"," </style>"," </head>"," <body>",' <ul id="crumbs">'," </ul>",' <div id="tree"></div>'," </body>","</html>"].join("\n"),d=[],e=function(){var a=b.document,c=a.querySelector("#crumbs");c.textContent="";for(var e,g=0;e=d[g] ;g++){var h=a.createElement("a");h.href="#",h.textContent=e.localName,h.idx=g,h. onclick=function(a){for(var b;d.length>this.idx;)b=d.pop();f(b.shadow||b,b),a.pr eventDefault()},c.appendChild(a.createElement("li")).appendChild(h)}},f=function (a,c){var f=b.document;k=[];var g=c||a;d.push(g),e(),f.body.querySelector("#tree ").innerHTML="<pre>"+j(a,a.childNodes)+"</pre>"},g=Array.prototype.forEach.call. bind(Array.prototype.forEach),h={STYLE:1,SCRIPT:1,"#comment":1,TEMPLATE:1},i=fun ction(a){return h[a.nodeName]},j=function(a,b,c){if(i(a))return"";var d=c||"";if (a.localName||11==a.nodeType){var e=a.localName||"shadow-root",f=d+l(a);"content "==e&&(b=a.getDistributedNodes()),f+="<br/>";var h=d+"&nbsp;&nbsp;";g(b,function (a){f+=j(a,a.childNodes,h)}),f+=d,{br:1}[e]||(f+="<tag>&lt;/"+e+"&gt;</tag>",f+= "<br/>")}else{var k=a.textContent.trim();f=k?d+'"'+k+'"<br/>':""}return f},k=[], l=function(a){var b="<tag>&lt;",c=a.localName||"shadow-root";return a.webkitShad owRoot||a.shadowRoot?(b+=' <button idx="'+k.length+'" onclick="api.shadowize.cal l(this)">'+c+"</button>",k.push(a)):b+=c||"shadow-root",a.attributes&&g(a.attrib utes,function(a){b+=" "+a.name+(a.value?'="'+a.value+'"':"")}),b+="&gt;</tag>"}; shadowize=function(){var a=Number(this.attributes.idx.value),b=k[a];b?f(b.webkit ShadowRoot||b.shadowRoot,b):(console.log("bad shadowize node"),console.dir(this) )},a.output=j}(window.Inspector),function(){function a(){requestAnimationFrame(f unction(){for(var a,b=document.querySelectorAll(e),f=0,g=b.length;g>f&&(a=b[f]); f++)a.removeAttribute(c),a.setAttribute(d,"");if(b.length){var h=function(){for( var a,c=0,e=b.length;e>c&&(a=b[c]);c++)a.removeAttribute(d);document.body.remove EventListener(i,h,!1)};document.body.addEventListener(i,h,!1)}})}var b=.2,c="unr esolved",d="resolved",e="["+c+"]",f="["+d+"]",g=document.createElement("style"); g.textContent=e+" { opacity: 0; display: block; overflow: hidden; } \n"+f+"{ dis play: block; overflow: hidden;\n-webkit-transition: opacity "+b+"s; transition: opacity "+b+"s; }\n";var h=document.querySelector("head");h.insertBefore(g,h.fir stChild);var i=void 0!==document.documentElement.style.webkitTransition?"webkitT ransitionEnd":"transitionend";window.addEventListener("WebComponentsReady",a)}(P latform),function(a){function b(a){return d(a,i)}function c(a){return d(a,j)}fun ction d(a,b){return"link"===a.localName&&a.getAttribute("rel")===b}function e(a) {return"script"===a.localName}function f(a,b){var c=a;c instanceof Document||(c= document.implementation.createHTMLDocument(i)),c._URL=b;var d=c.createElement("b ase");return d.setAttribute("href",document.baseURI||document.URL),c.head.append Child(d),a instanceof Document||(c.body.innerHTML=a),window.HTMLTemplateElement& &HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(c),c}a||(a=window. HTMLImports={flags:{}});var g,h=a.xhr,i="import",j="stylesheet",k={documents:{}, cache:{},preloadSelectors:["link[rel="+i+"]","element link[rel="+j+"]","template ","script[src]:not([type])",'script[src][type="text/javascript"]'].join(","),loa der:function(a){return g=new l(k.loaded,a),g.cache=k.cache,g},load:function(a,b) {g=k.loader(b),k.preload(a)},preload:function(a){var b=a.querySelectorAll(k.prel oadSelectors);b=this.filterMainDocumentNodes(a,b),b=this.extractTemplateNodes(b) ,g.addNodes(b)},filterMainDocumentNodes:function(a,b){return a===document&&(b=Ar ray.prototype.filter.call(b,function(a){return!e(a)})),b},extractTemplateNodes:f unction(a){var b=[];return a=Array.prototype.filter.call(a,function(a){if("templ ate"===a.localName){if(a.content){var c=a.content.querySelectorAll("link[rel="+j +"]");c.length&&(b=b.concat(Array.prototype.slice.call(c,0)))}return!1}return!0} ),b.length&&(a=a.concat(b)),a},loaded:function(a,d,e){if(b(d)){var g=k.documents [a];g||(g=f(e,a),p.resolvePathsInHTML(g),k.documents[a]=g,k.preload(g)),d.import =g,d.import.href=a,d.import.ownerNode=d,d.content=e=g}d.__resource=e,c(d)&&p.res olvePathsInStylesheet(d)}},l=function(a,b){this.onload=a,this.oncomplete=b,this. inflight=0,this.pending={},this.cache={}};l.prototype={addNodes:function(a){this .inflight+=a.length,q(a,this.require,this),this.checkDone()},require:function(a) {var b=p.nodeUrl(a);b=p.makeAbsUrl(b),a.__nodeUrl=b,this.dedupe(b,a)||this.fetch (b,a)},dedupe:function(a,b){return this.pending[a]?(this.pending[a].push(b),!0): this.cache[a]?(this.onload(a,b,g.cache[a]),this.tail(),!0):(this.pending[a]=[b], !1)},fetch:function(a,b){var c=function(c,d){this.receive(a,b,c,d)}.bind(this);h .load(a,c)},receive:function(a,b,c,d){c||(g.cache[a]=d),g.pending[a].forEach(fun ction(b){c||this.onload(a,b,d),this.tail()},this),g.pending[a]=null},tail:functi on(){--this.inflight,this.checkDone()},checkDone:function(){this.inflight||this. oncomplete()}};var m=["href","src","action"],n="["+m.join("],[")+"]",o="{{.*}}", p={nodeUrl:function(a){return p.resolveUrl(p.documentURL,p.hrefOrSrc(a))},hrefOr Src:function(a){return a.getAttribute("href")||a.getAttribute("src")},documentUr lFromNode:function(a){return p.getDocumentUrl(a.ownerDocument||a)},getDocumentUr l:function(a){var b=a&&(a._URL||a.impl&&a.impl._URL||a.baseURI||a.URL)||"";retur n b.split("#")[0]},resolveUrl:function(a,b){return this.isAbsUrl(b)?b:this.compr essUrl(this.urlToPath(a)+b)},resolveRelativeUrl:function(a,b){return this.isAbsU rl(b)?b:this.makeDocumentRelPath(this.resolveUrl(a,b))},isAbsUrl:function(a){ret urn/(^data:)|(^http[s]?:)|(^\/)/.test(a)},urlToPath:function(a){var b=a.split("/ ");return b.pop(),b.push(""),b.join("/")},compressUrl:function(a){var b="",c=a.i ndexOf("?");c>-1&&(b=a.substring(c),a=a.substring(c,0));for(var d,e=a.split("/") ,f=0;f<e.length;f++)d=e[f],".."===d&&(e.splice(f-1,2),f-=2);return e.join("/")+b },makeDocumentRelPath:function(a){return p.urlElt.href=a,!p.urlElt.host||p.urlEl t.host===window.location.host&&p.urlElt.protocol===window.location.protocol?this .makeRelPath(p.documentURL,p.urlElt.href):a},makeRelPath:function(a,b){for(var c =a.split("/"),d=b.split("/");c.length&&c[0]===d[0];)c.shift(),d.shift();for(var e=0,f=c.length-1;f>e;e++)d.unshift("..");var g=d.join("/");return g},makeAbsUrl: function(a){return p.urlElt.href=a,p.urlElt.href},resolvePathsInHTML:function(a, b){b=b||p.documentUrlFromNode(a),p.resolveAttributes(a,b),p.resolveStyleElts(a,b );var c=a.querySelectorAll("template");c&&q(c,function(a){a.content&&p.resolvePa thsInHTML(a.content,b)})},resolvePathsInStylesheet:function(a){var b=p.nodeUrl(a );a.__resource=p.resolveCssText(a.__resource,b)},resolveStyleElts:function(a,b){ var c=a.querySelectorAll("style");c&&q(c,function(a){a.textContent=p.resolveCssT ext(a.textContent,b)})},resolveCssText:function(a,b){return a.replace(/url\([^)] *\)/g,function(a){var c=a.replace(/["']/g,"").slice(4,-1);return c=p.resolveRela tiveUrl(b,c),"url("+c+")"})},resolveAttributes:function(a,b){var c=a&&a.querySel ectorAll(n);c&&q(c,function(a){this.resolveNodeAttributes(a,b)},this)},resolveNo deAttributes:function(a,b){m.forEach(function(c){var d=a.attributes[c];if(d&&d.v alue&&d.value.search(o)<0){var e=p.resolveRelativeUrl(b,d.value);d.value=e}})}}; p.documentURL=p.getDocumentUrl(document),p.urlElt=document.createElement("a"),h= h||{async:!0,ok:function(a){return a.status>=200&&a.status<300||304===a.status|| 0===a.status},load:function(b,c,d){var e=new XMLHttpRequest;return(a.flags.debug ||a.flags.bust)&&(b+="?"+Math.random()),e.open("GET",b,h.async),e.addEventListen er("readystatechange",function(){4===e.readyState&&c.call(d,!h.ok(e)&&e,e.respon se||e.responseText,b)}),e.send(),e},loadDocument:function(a,b,c){this.load(a,b,c ).responseType="document"}};var q=Array.prototype.forEach.call.bind(Array.protot ype.forEach);Object.defineProperty(document,"_currentScript",{get:function(){ret urn HTMLImports.currentScript||document.currentScript},writeable:!0,configurable :!0}),a.path=p,a.xhr=h,a.importer=k,a.getDocumentUrl=p.getDocumentUrl,a.IMPORT_L INK_TYPE=i}(window.HTMLImports),function(a){function b(a){return"link"===a.local Name&&a.getAttribute("rel")===f}function c(a){return a.parentNode&&!d(a)&&!e(a)} function d(a){return a.ownerDocument===document||a.ownerDocument.impl===document }function e(a){return a.parentNode&&"element"===a.parentNode.localName}{var f="i mport",g={selectors:["link[rel="+f+"]","link[rel=stylesheet]","style","script:no t([type])",'script[type="text/javascript"]'],map:{link:"parseLink",script:"parse Script",style:"parseGeneric"},parse:function(a){if(!a.__importParsed){a.__import Parsed=!0;for(var b,c=a.querySelectorAll(g.selectors),d=a.scripts?a.scripts.leng th:0,e=0;e<c.length&&(b=c[e]);e++)g[g.map[b.localName]](b),a.scripts&&d!==a.scri pts.length&&(d=a.scripts.length,c=a.querySelectorAll(g.selectors))}},parseLink:f unction(a){b(a)?a.import&&(g.parse(a.import),a.dispatchEvent(new CustomEvent("lo ad"))):this.parseGeneric(a)},parseGeneric:function(a){c(a)&&document.head.append Child(a)},parseScript:function(b){if(c(b)){var d=(b.__resource||b.textContent).t rim();if(d){var e=b.__nodeUrl;if(!e){var e=a.path.documentUrlFromNode(b),f="["+M ath.floor(1e3*(Math.random()+1))+"]",g=d.match(/Polymer\(['"]([^'"]*)/);f=g&&g[1 ]||f,e+="/"+f+".js"}d+="\n//# sourceURL="+e+"\n",a.currentScript=b,eval.call(win dow,d),a.currentScript=null}}}};Array.prototype.forEach.call.bind(Array.prototyp e.forEach)}a.parser=g}(HTMLImports),function(){function a(){HTMLImports.importer .load(document,function(){HTMLImports.parser.parse(document),HTMLImports.ready=! 0,HTMLImports.readyTime=(new Date).getTime(),document.dispatchEvent(new CustomEv ent("HTMLImportsLoaded",{bubbles:!0}))})}"function"!=typeof window.CustomEvent&& (window.CustomEvent=function(a){var b=document.createEvent("HTMLEvents");return b.initEvent(a,!0,!0),b}),"complete"===document.readyState||"interactive"===docum ent.readyState&&!window.attachEvent?a():window.addEventListener("DOMContentLoade d",a)}(),function(a){function b(a){u.push(a),t||(t=!0,q(d))}function c(a){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(a)||a}function d(){t=!1;var a=u;u=[],a.sort(function(a,b){return a.uid_-b.uid_});var b=!1;a.for Each(function(a){var c=a.takeRecords();e(a),c.length&&(a.callback_(c,a),b=!0)}), b&&d()}function e(a){a.nodes_.forEach(function(b){var c=p.get(b);c&&c.forEach(fu nction(b){b.observer===a&&b.removeTransientObservers()})})}function f(a,b){for(v ar c=a;c;c=c.parentNode){var d=p.get(c);if(d)for(var e=0;e<d.length;e++){var f=d [e],g=f.options;if(c===a||g.subtree){var h=b(g);h&&f.enqueue(h)}}}}function g(a) {this.callback_=a,this.nodes_=[],this.records_=[],this.uid_=++v}function h(a,b){ this.type=a,this.target=b,this.addedNodes=[],this.removedNodes=[],this.previousS ibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespac e=null,this.oldValue=null}function i(a){var b=new h(a.type,a.target);return b.ad dedNodes=a.addedNodes.slice(),b.removedNodes=a.removedNodes.slice(),b.previousSi bling=a.previousSibling,b.nextSibling=a.nextSibling,b.attributeName=a.attributeN ame,b.attributeNamespace=a.attributeNamespace,b.oldValue=a.oldValue,b}function j (a,b){return w=new h(a,b)}function k(a){return x?x:(x=i(w),x.oldValue=a,x)}funct ion l(){w=x=void 0}function m(a){return a===x||a===w}function n(a,b){return a=== b?a:x&&m(a)?x:null}function o(a,b,c){this.observer=a,this.target=b,this.options= c,this.transientObservedNodes=[]}var p=new WeakMap,q=window.msSetImmediate;if(!q ){var r=[],s=String(Math.random());window.addEventListener("message",function(a) {if(a.data===s){var b=r;r=[],b.forEach(function(a){a()})}}),q=function(a){r.push (a),window.postMessage(s,"*")}}var t=!1,u=[],v=0;g.prototype={observe:function(a ,b){if(a=c(a),!b.childList&&!b.attributes&&!b.characterData||b.attributeOldValue &&!b.attributes||b.attributeFilter&&b.attributeFilter.length&&!b.attributes||b.c haracterDataOldValue&&!b.characterData)throw new SyntaxError;var d=p.get(a);d||p .set(a,d=[]);for(var e,f=0;f<d.length;f++)if(d[f].observer===this){e=d[f],e.remo veListeners(),e.options=b;break}e||(e=new o(this,a,b),d.push(e),this.nodes_.push (a)),e.addListeners()},disconnect:function(){this.nodes_.forEach(function(a){for (var b=p.get(a),c=0;c<b.length;c++){var d=b[c];if(d.observer===this){d.removeLis teners(),b.splice(c,1);break}}},this),this.records_=[]},takeRecords:function(){v ar a=this.records_;return this.records_=[],a}};var w,x;o.prototype={enqueue:func tion(a){var c=this.observer.records_,d=c.length;if(c.length>0){var e=c[d-1],f=n( e,a);if(f)return c[d-1]=f,void 0}else b(this.observer);c[d]=a},addListeners:func tion(){this.addListeners_(this.target)},addListeners_:function(a){var b=this.opt ions;b.attributes&&a.addEventListener("DOMAttrModified",this,!0),b.characterData &&a.addEventListener("DOMCharacterDataModified",this,!0),b.childList&&a.addEvent Listener("DOMNodeInserted",this,!0),(b.childList||b.subtree)&&a.addEventListener ("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(thi s.target)},removeListeners_:function(a){var b=this.options;b.attributes&&a.remov eEventListener("DOMAttrModified",this,!0),b.characterData&&a.removeEventListener ("DOMCharacterDataModified",this,!0),b.childList&&a.removeEventListener("DOMNode Inserted",this,!0),(b.childList||b.subtree)&&a.removeEventListener("DOMNodeRemov ed",this,!0)},addTransientObserver:function(a){if(a!==this.target){this.addListe ners_(a),this.transientObservedNodes.push(a);var b=p.get(a);b||p.set(a,b=[]),b.p ush(this)}},removeTransientObservers:function(){var a=this.transientObservedNode s;this.transientObservedNodes=[],a.forEach(function(a){this.removeListeners_(a); for(var b=p.get(a),c=0;c<b.length;c++)if(b[c]===this){b.splice(c,1);break}},this )},handleEvent:function(a){switch(a.stopImmediatePropagation(),a.type){case"DOMA ttrModified":var b=a.attrName,c=a.relatedNode.namespaceURI,d=a.target,e=new j("a ttributes",d);e.attributeName=b,e.attributeNamespace=c;var g=a.attrChange===Muta tionEvent.ADDITION?null:a.prevValue;f(d,function(a){return!a.attributes||a.attri buteFilter&&a.attributeFilter.length&&-1===a.attributeFilter.indexOf(b)&&-1===a. attributeFilter.indexOf(c)?void 0:a.attributeOldValue?k(g):e});break;case"DOMCha racterDataModified":var d=a.target,e=j("characterData",d),g=a.prevValue;f(d,func tion(a){return a.characterData?a.characterDataOldValue?k(g):e:void 0});break;cas e"DOMNodeRemoved":this.addTransientObserver(a.target);case"DOMNodeInserted":var h,i,d=a.relatedNode,m=a.target;"DOMNodeInserted"===a.type?(h=[m],i=[]):(h=[],i=[ m]);var n=m.previousSibling,o=m.nextSibling,e=j("childList",d);e.addedNodes=h,e. removedNodes=i,e.previousSibling=n,e.nextSibling=o,f(d,function(a){return a.chil dList?e:void 0})}l()}},a.JsMutationObserver=g,!a.MutationObserver&&a.WebKitMutat ionObserver&&(a.MutationObserver=a.WebKitMutationObserver),a.MutationObserver||( a.MutationObserver=g)}(this),window.CustomElements=window.CustomElements||{flags :{}},function(a){function b(a,c,d){var e=a.firstElementChild;if(!e)for(e=a.first Child;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;for(;e;)c(e,d)!==!0&&b( e,c,d),e=e.nextElementSibling;return null}function c(a,b){for(var c=a.shadowRoot ;c;)d(c,b),c=c.olderShadowRoot}function d(a,d){b(a,function(a){return d(a)?!0:(c (a,d),void 0)}),c(a,d)}function e(a){return h(a)?(i(a),!0):(l(a),void 0)}functio n f(a){d(a,function(a){return e(a)?!0:void 0})}function g(a){return e(a)||f(a)}f unction h(b){if(!b.__upgraded__&&b.nodeType===Node.ELEMENT_NODE){var c=b.getAttr ibute("is")||b.localName,d=a.registry[c];if(d)return y.dom&&console.group("upgra de:",b.localName),a.upgrade(b),y.dom&&console.groupEnd(),!0}}function i(a){l(a), q(a)&&d(a,function(a){l(a)})}function j(a){if(B.push(a),!A){A=!0;var b=window.Pl atform&&window.Platform.endOfMicrotask||setTimeout;b(k)}}function k(){A=!1;for(v ar a,b=B,c=0,d=b.length;d>c&&(a=b[c]);c++)a();B=[]}function l(a){z?j(function(){ m(a)}):m(a)}function m(a){(a.enteredViewCallback||a.__upgraded__&&y.dom)&&(y.dom &&console.group("inserted:",a.localName),q(a)&&(a.__inserted=(a.__inserted||0)+1 ,a.__inserted<1&&(a.__inserted=1),a.__inserted>1?y.dom&&console.warn("inserted:" ,a.localName,"insert/remove count:",a.__inserted):a.enteredViewCallback&&(y.dom& &console.log("inserted:",a.localName),a.enteredViewCallback())),y.dom&&console.g roupEnd())}function n(a){o(a),d(a,function(a){o(a)})}function o(a){z?j(function( ){p(a)}):p(a)}function p(a){(a.leftViewCallback||a.__upgraded__&&y.dom)&&(y.dom& &console.log("removed:",a.localName),q(a)||(a.__inserted=(a.__inserted||0)-1,a._ _inserted>0&&(a.__inserted=0),a.__inserted<0?y.dom&&console.warn("removed:",a.lo calName,"insert/remove count:",a.__inserted):a.leftViewCallback&&a.leftViewCallb ack()))}function q(a){for(var b=a,c=window.ShadowDOMPolyfill&&window.ShadowDOMPo lyfill.wrapIfNeeded(document)||document;b;){if(b==c)return!0;b=b.parentNode||b.h ost}}function r(a){if(a.shadowRoot&&!a.shadowRoot.__watched){y.dom&&console.log( "watching shadow-root for: ",a.localName);for(var b=a.shadowRoot;b;)s(b),b=b.old erShadowRoot}}function s(a){a.__watched||(v(a),a.__watched=!0)}function t(a){if( y.dom){var b=a[0];if(b&&"childList"===b.type&&b.addedNodes&&b.addedNodes){for(va r c=b.addedNodes[0];c&&c!==document&&!c.host;)c=c.parentNode;var d=c&&(c.URL||c. _URL||c.host&&c.host.localName)||"";d=d.split("/?").shift().split("/").pop()}con sole.group("mutations (%d) [%s]",a.length,d||"")}a.forEach(function(a){"childLis t"===a.type&&(D(a.addedNodes,function(a){a.localName&&g(a)}),D(a.removedNodes,fu nction(a){a.localName&&n(a)}))}),y.dom&&console.groupEnd()}function u(){t(C.take Records()),k()}function v(a){C.observe(a,{childList:!0,subtree:!0})}function w(a ){v(a)}function x(a){y.dom&&console.group("upgradeDocument: ",(a.URL||a._URL||"" ).split("/").pop()),g(a),y.dom&&console.groupEnd()}var y=window.logFlags||{},z=! window.MutationObserver||window.MutationObserver===window.JsMutationObserver;a.h asPolyfillMutations=z;var A=!1,B=[],C=new MutationObserver(t),D=Array.prototype. forEach.call.bind(Array.prototype.forEach);a.watchShadow=r,a.upgradeAll=g,a.upgr adeSubtree=f,a.observeDocument=w,a.upgradeDocument=x,a.takeRecords=u}(window.Cus tomElements),function(a){function b(b,f){var g=f||{};if(!b)throw new Error("docu ment.register: first argument `name` must not be empty");if(b.indexOf("-")<0)thr ow new Error("document.register: first argument ('name') must contain a dash ('- '). Argument provided was '"+String(b)+"'."); 40 },delete window.getComputedStyle,["addEventListener","removeEventListener","disp atchEvent"].forEach(function(a){j.prototype[a]=function(){var b=h(this||window); return b[a].apply(b,arguments)},delete window[a]}),d(b.prototype,{getComputedSty le:function(a,b){return k.call(f(this),g(a),b)}}),e(j,b),a.wrappers.Window=b}(wi ndow.ShadowDOMPolyfill),function(a){"use strict";function b(a){var b=c[a],d=wind ow[b];if(d){var e=document.createElement(a),f=e.constructor;window[b]=f}}var c=( a.isWrapperFor,{a:"HTMLAnchorElement",applet:"HTMLAppletElement",area:"HTMLAreaE lement",br:"HTMLBRElement",base:"HTMLBaseElement",body:"HTMLBodyElement",button: "HTMLButtonElement",dl:"HTMLDListElement",datalist:"HTMLDataListElement",data:"H TMLDataElement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",embed:"HTMLEmbed Element",fieldset:"HTMLFieldSetElement",font:"HTMLFontElement",form:"HTMLFormEle ment",frame:"HTMLFrameElement",frameset:"HTMLFrameSetElement",hr:"HTMLHRElement" ,head:"HTMLHeadElement",h1:"HTMLHeadingElement",html:"HTMLHtmlElement",iframe:"H TMLIFrameElement",input:"HTMLInputElement",li:"HTMLLIElement",label:"HTMLLabelEl ement",legend:"HTMLLegendElement",link:"HTMLLinkElement",map:"HTMLMapElement",ma rquee:"HTMLMarqueeElement",menu:"HTMLMenuElement",menuitem:"HTMLMenuItemElement" ,meta:"HTMLMetaElement",meter:"HTMLMeterElement",del:"HTMLModElement",ol:"HTMLOL istElement",object:"HTMLObjectElement",optgroup:"HTMLOptGroupElement",option:"HT MLOptionElement",output:"HTMLOutputElement",p:"HTMLParagraphElement",param:"HTML ParamElement",pre:"HTMLPreElement",progress:"HTMLProgressElement",q:"HTMLQuoteEl ement",script:"HTMLScriptElement",select:"HTMLSelectElement",source:"HTMLSourceE lement",span:"HTMLSpanElement",style:"HTMLStyleElement",time:"HTMLTimeElement",c aption:"HTMLTableCaptionElement",col:"HTMLTableColElement",table:"HTMLTableEleme nt",tr:"HTMLTableRowElement",thead:"HTMLTableSectionElement",tbody:"HTMLTableSec tionElement",textarea:"HTMLTextAreaElement",track:"HTMLTrackElement",title:"HTML TitleElement",ul:"HTMLUListElement",video:"HTMLVideoElement"});Object.keys(c).fo rEach(b),Object.getOwnPropertyNames(a.wrappers).forEach(function(b){window[b]=a. wrappers[b]}),a.knownElements=c}(window.ShadowDOMPolyfill),function(){window.wra p=ShadowDOMPolyfill.wrapIfNeeded,window.unwrap=ShadowDOMPolyfill.unwrapIfNeeded, Object.defineProperty(Element.prototype,"webkitShadowRoot",Object.getOwnProperty Descriptor(Element.prototype,"shadowRoot"));var a=Element.prototype.createShadow Root;Element.prototype.createShadowRoot=function(){var b=a.call(this);return Cus tomElements.watchShadow(this),b},Element.prototype.webkitCreateShadowRoot=Elemen t.prototype.createShadowRoot}(),function(a){function b(a,b){var c="";return Arra y.prototype.forEach.call(a,function(a){c+=a.textContent+"\n\n"}),b||(c=c.replace (n,"")),c}function c(a){var b=document.createElement("style");return b.textConte nt=a,b}function d(a){var b=c(a);document.head.appendChild(b);var d=b.sheet.cssRu les;return b.parentNode.removeChild(b),d}function e(a){for(var b=0,c=[];b<a.leng th;b++)c.push(a[b].cssText);return c.join("\n\n")}function f(a){a&&g().appendChi ld(document.createTextNode(a))}function g(){return h||(h=document.createElement( "style"),h.setAttribute("ShadowCSSShim",""),h.shadowCssShim=!0),h}var h,i={stric tStyling:!1,registry:{},shimStyling:function(a,b,d){var e=this.isTypeExtension(d ),g=this.registerDefinition(a,b,d);this.strictStyling&&this.applyScopeToContent( a,b);var h=this.stylesToShimmedCssText(g.rootStyles,g.scopeStyles,b,e);g.shimmed Style=c(h),a&&(a.shimmedStyle=g.shimmedStyle);for(var i,j=0,k=g.rootStyles.lengt h;k>j&&(i=g.rootStyles[j]);j++)i.parentNode.removeChild(i);f(h)},stylesToShimmed CssText:function(a,b,c,d){c=c||"",this.insertPolyfillDirectives(a),this.insertPo lyfillRules(a);var e=this.shimAtHost(b,c,d)+this.shimScoping(b,c,d);return e+=th is.extractPolyfillUnscopedRules(a)},registerDefinition:function(a,b,c){var d=thi s.registry[b]={root:a,name:b,extendsName:c},e=a?a.querySelectorAll("style"):[];e =e?Array.prototype.slice.call(e,0):[],d.rootStyles=e,d.scopeStyles=d.rootStyles; var f=this.registry[d.extendsName];return!f||a&&!a.querySelector("shadow")||(d.s copeStyles=f.scopeStyles.concat(d.scopeStyles)),d},isTypeExtension:function(a){r eturn a&&a.indexOf("-")<0},applyScopeToContent:function(a,b){a&&(Array.prototype .forEach.call(a.querySelectorAll("*"),function(a){a.setAttribute(b,"")}),Array.p rototype.forEach.call(a.querySelectorAll("template"),function(a){this.applyScope ToContent(a.content,b)},this))},insertPolyfillDirectives:function(a){a&&Array.pr ototype.forEach.call(a,function(a){a.textContent=this.insertPolyfillDirectivesIn CssText(a.textContent)},this)},insertPolyfillDirectivesInCssText:function(a){ret urn a.replace(o,function(a,b){return b.slice(0,-2)+"{"})},insertPolyfillRules:fu nction(a){a&&Array.prototype.forEach.call(a,function(a){a.textContent=this.inser tPolyfillRulesInCssText(a.textContent)},this)},insertPolyfillRulesInCssText:func tion(a){return a.replace(p,function(a,b){return b.slice(0,-1)})},extractPolyfill UnscopedRules:function(a){var b="";return a&&Array.prototype.forEach.call(a,func tion(a){b+=this.extractPolyfillUnscopedRulesFromCssText(a.textContent)+"\n\n"},t his),b},extractPolyfillUnscopedRulesFromCssText:function(a){for(var b,c="";b=q.e xec(a);)c+=b[1].slice(0,-1)+"\n\n";return c},shimAtHost:function(a,b,c){return a ?this.convertAtHostStyles(a,b,c):void 0},convertAtHostStyles:function(a,c,f){var g=b(a),h=this;return g=g.replace(j,function(a,b){return h.scopeHostCss(b,c,f)}) ,g=e(this.findAtHostRules(d(g),this.makeScopeMatcher(c,f)))},scopeHostCss:functi on(a,b,c){var d=this;return a.replace(k,function(a,e,f){return d.scopeHostSelect or(e,b,c)+" "+f+"\n "})},scopeHostSelector:function(a,b,c){var d=[],e=a.spli t(","),f="[is="+b+"]";return e.forEach(function(a){a=a.trim(),a.match(l)?a=a.rep lace(l,c?f+"$1$3":b+"$1$3"):a.match(m)&&(a=c?f+a:b+a),d.push(a)},this),d.join(", ")},findAtHostRules:function(a,b){return Array.prototype.filter.call(a,this.isH ostRule.bind(this,b))},isHostRule:function(a,b){return b.selectorText&&b.selecto rText.match(a)||b.cssRules&&this.findAtHostRules(b.cssRules,a).length||b.type==C SSRule.WEBKIT_KEYFRAMES_RULE},shimScoping:function(a,b,c){return a?this.convertS copedStyles(a,b,c):void 0},convertScopedStyles:function(a,c,e){var f=b(a).replac e(j,"");f=this.insertPolyfillHostInCssText(f),f=this.convertColonHost(f),f=this. convertPseudos(f),f=this.convertParts(f),f=this.convertCombinators(f);var g=d(f) ;return c&&(f=this.scopeRules(g,c,e)),f},convertPseudos:function(a){return a.rep lace(r," [pseudo=$1]")},convertParts:function(a){return a.replace(s," [part=$1]" )},convertColonHost:function(a){return a.replace(u,function(a,b,c,d){if(b=y,c){f or(var e,f=c.split(","),g=[],h=0,i=f.length;i>h&&(e=f[h]);h++)e=e.trim(),e.match (t)?g.push(b+e.replace(t,"")+d):g.push(b+e+d+", "+e+" "+b+d);return g.join(",")} return b+d})},convertCombinators:function(a){return a.replace(/\^\^/g," ").repla ce(/\^/g," ")},scopeRules:function(a,b,c){var d="";return Array.prototype.forEac h.call(a,function(a){a.selectorText&&a.style&&a.style.cssText?(d+=this.scopeSele ctor(a.selectorText,b,c,this.strictStyling)+" {\n ",d+=this.propertiesFrom Rule(a)+"\n}\n\n"):a.media?(d+="@media "+a.media.mediaText+" {\n",d+=this.scopeR ules(a.cssRules,b,c),d+="\n}\n\n"):a.cssText&&(d+=a.cssText+"\n\n")},this),d},sc opeSelector:function(a,b,c,d){var e=[],f=a.split(",");return f.forEach(function( a){a=a.trim(),this.selectorNeedsScoping(a,b,c)&&(a=d&&!a.match(y)?this.applyStri ctSelectorScope(a,b):this.applySimpleSelectorScope(a,b,c)),e.push(a)},this),e.jo in(", ")},selectorNeedsScoping:function(a,b,c){var d=this.makeScopeMatcher(b,c); return!a.match(d)},makeScopeMatcher:function(a,b){var c=b?"\\[is=['\"]?"+a+"['\" ]?\\]":a;return new RegExp("^("+c+")"+v,"m")},applySimpleSelectorScope:function( a,b,c){var d=c?"[is="+b+"]":b;return a.match(z)?(a=a.replace(y,d),a.replace(z,d+ " ")):d+" "+a},applyStrictSelectorScope:function(a,b){var c=[" ",">","+","~"],d= a,e="["+b+"]";return c.forEach(function(a){var b=d.split(a);d=b.map(function(a){ var b=a.trim().replace(z,"");return b&&c.indexOf(b)<0&&b.indexOf(e)<0&&(a=b.repl ace(/([^:]*)(:*)(.*)/,"$1"+e+"$2$3")),a}).join(a)}),d},insertPolyfillHostInCssTe xt:function(a){return a.replace(w,t).replace(x,t)},propertiesFromRule:function(a ){return a.style.cssText}},j=/@host[^{]*{(([^}]*?{[^{]*?}[\s\S]*?)+)}/gim,k=/([^ {]*)({[\s\S]*?})/gim,l=/(.*)((?:\*)|(?:\:scope))(.*)/,m=/^[.\[:]/,n=/\/\*[^*]*\* +([^/*][^*]*\*+)*\//gim,o=/\/\*\s*@polyfill ([^*]*\*+([^/*][^*]*\*+)*\/)([^{]*?) {/gim,p=/\/\*\s@polyfill-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim,q=/\/\*\s@polyfill -unscoped-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim,r=/::(x-[^\s{,(]*)/gim,s=/::part\ (([^)]*)\)/gim,t="-shadowcsshost",u=new RegExp("("+t+")(?:\\(((?:\\([^)(]*\\)|[^ )(]*)+?)\\))?([^,{]*)","gim"),v="([>\\s~+[.,{:][\\s\\S]*)?$",w=/@host/gim,x=/\:h ost/gim,y=t+"-no-combinator",z=new RegExp(t,"gim");if(window.ShadowDOMPolyfill){ f("style { display: none !important; }\n");var A=wrap(document),B=A.querySelecto r("head");B.insertBefore(g(),B.childNodes[0]),document.addEventListener("DOMCont entLoaded",function(){window.HTMLImports&&(HTMLImports.importer.preloadSelectors +=", link[rel=stylesheet]:not([nopolyfill])",HTMLImports.parser.parseGeneric=fun ction(a){if(!a.shadowCssShim){var b=a;if(!a.hasAttribute("nopolyfill")){a.__reso urce&&(b=A.createElement("style"),b.textContent=a.__resource,a.ownerDocument===A &&a.parentNode.removeChild(a));var c=[b];b.textContent=i.stylesToShimmedCssText( c,c),b.shadowCssShim=!0}b.parentNode!==B&&B.appendChild(b)}})})}a.ShadowCSS=i}(w indow.Platform)):!function(){window.templateContent=window.templateContent||func tion(a){return a.content},window.wrap=window.unwrap=function(a){return a};var a= Element.prototype.webkitCreateShadowRoot;Element.prototype.webkitCreateShadowRoo t=function(){var b=this.webkitShadowRoot,c=a.call(this);return c.olderShadowRoot =b,c.host=this,CustomElements.watchShadow(this),c},Object.defineProperties(Eleme nt.prototype,{shadowRoot:{get:function(){return this.webkitShadowRoot}},createSh adowRoot:{value:function(){return this.webkitCreateShadowRoot()}}}),window.templ ateContent=function(a){if(window.HTMLTemplateElement&&HTMLTemplateElement.bootst rap&&HTMLTemplateElement.bootstrap(a),!a.content&&!a._content){for(var b=documen t.createDocumentFragment();a.firstChild;)b.appendChild(a.firstChild);a._content= b}return a.content||a._content}}(),function(a){function b(a){for(var b=a||{},d=1 ;d<arguments.length;d++){var e=arguments[d];try{for(var f in e)c(f,e,b)}catch(g) {}}return b}function c(a,b,c){var e=d(b,a);Object.defineProperty(c,a,e)}function d(a,b){if(a){var c=Object.getOwnPropertyDescriptor(a,b);return c||d(Object.getP rototypeOf(a),b)}}Function.prototype.bind||(Function.prototype.bind=function(a){ var b=this,c=Array.prototype.slice.call(arguments,1);return function(){var d=c.s lice();return d.push.apply(d,arguments),b.apply(a,d)}}),a.mixin=b}(window.Platfo rm),function(a){"use strict";function b(a,b,c){var d="string"==typeof a?document .createElement(a):a.cloneNode(!0);if(d.innerHTML=b,c)for(var e in c)d.setAttribu te(e,c[e]);return d}var c=DOMTokenList.prototype.add,d=DOMTokenList.prototype.re move;DOMTokenList.prototype.add=function(){for(var a=0;a<arguments.length;a++)c. call(this,arguments[a])},DOMTokenList.prototype.remove=function(){for(var a=0;a< arguments.length;a++)d.call(this,arguments[a])},DOMTokenList.prototype.toggle=fu nction(a,b){1==arguments.length&&(b=!this.contains(a)),b?this.add(a):this.remove (a)},DOMTokenList.prototype.switch=function(a,b){a&&this.remove(a),b&&this.add(b )};var e=function(){return Array.prototype.slice.call(this)},f=window.NamedNodeM ap||window.MozNamedAttrMap||{};if(NodeList.prototype.array=e,f.prototype.array=e ,HTMLCollection.prototype.array=e,!window.performance){var g=Date.now();window.p erformance={now:function(){return Date.now()-g}}}window.requestAnimationFrame||( window.requestAnimationFrame=function(){var a=window.webkitRequestAnimationFrame ||window.mozRequestAnimationFrame;return a?function(b){return a(function(){b(per formance.now())})}:function(a){return window.setTimeout(a,1e3/60)}}()),window.ca ncelAnimationFrame||(window.cancelAnimationFrame=function(){return window.webkit CancelAnimationFrame||window.mozCancelAnimationFrame||function(a){clearTimeout(a )}}());var h=document.createElement("template"),i=document.createElement("base") ;i.href=document.baseURI,h.content.ownerDocument.appendChild(i);var j=function(a ,b){window.addEventListener("WebComponentsReady",function(){window.Polymer!==j?P olymer(a,b):console.warn('You tried to use polymer without loading it first. To load polymer, <link rel="import" href="components/polymer/plymer.html">')})};win dow.Polymer=j,a.createDOM=b}(window.Platform),window.templateContent=window.temp lateContent||function(a){return a.content},function(a){a=a||(window.Inspector={} );var b;window.sinspect=function(a,d){b||(b=window.open("","ShadowDOM Inspector" ,null,!0),b.document.write(c),b.api={shadowize:shadowize}),f(a||wrap(document.bo dy),d)};var c=["<!DOCTYPE html>","<html>"," <head>"," <title>ShadowDOM Inspe ctor</title>"," <style>"," body {"," }"," pre {",' font : 9pt "Courier New", monospace;'," line-height: 1.5em;"," }"," tag {"," color: purple;"," }"," ul {"," margin: 0;"," padding: 0;"," list-style: none;"," }"," li {"," display: inline-block;"," background-color: #f1f1f1;"," paddin g: 4px 6px;"," border-radius: 4px;"," margin-right: 4px;"," }"," </style>"," </head>"," <body>",' <ul id="crumbs">'," </ul>",' <div id="tree"></div>'," </body>","</html>"].join("\n"),d=[],e=function(){var a=b.document,c=a.querySelector("#crumbs");c.textContent="";for(var e,g=0;e=d[g] ;g++){var h=a.createElement("a");h.href="#",h.textContent=e.localName,h.idx=g,h. onclick=function(a){for(var b;d.length>this.idx;)b=d.pop();f(b.shadow||b,b),a.pr eventDefault()},c.appendChild(a.createElement("li")).appendChild(h)}},f=function (a,c){var f=b.document;k=[];var g=c||a;d.push(g),e(),f.body.querySelector("#tree ").innerHTML="<pre>"+j(a,a.childNodes)+"</pre>"},g=Array.prototype.forEach.call. bind(Array.prototype.forEach),h={STYLE:1,SCRIPT:1,"#comment":1,TEMPLATE:1},i=fun ction(a){return h[a.nodeName]},j=function(a,b,c){if(i(a))return"";var d=c||"";if (a.localName||11==a.nodeType){var e=a.localName||"shadow-root",f=d+l(a);"content "==e&&(b=a.getDistributedNodes()),f+="<br/>";var h=d+"&nbsp;&nbsp;";g(b,function (a){f+=j(a,a.childNodes,h)}),f+=d,{br:1}[e]||(f+="<tag>&lt;/"+e+"&gt;</tag>",f+= "<br/>")}else{var k=a.textContent.trim();f=k?d+'"'+k+'"<br/>':""}return f},k=[], l=function(a){var b="<tag>&lt;",c=a.localName||"shadow-root";return a.webkitShad owRoot||a.shadowRoot?(b+=' <button idx="'+k.length+'" onclick="api.shadowize.cal l(this)">'+c+"</button>",k.push(a)):b+=c||"shadow-root",a.attributes&&g(a.attrib utes,function(a){b+=" "+a.name+(a.value?'="'+a.value+'"':"")}),b+="&gt;</tag>"}; shadowize=function(){var a=Number(this.attributes.idx.value),b=k[a];b?f(b.webkit ShadowRoot||b.shadowRoot,b):(console.log("bad shadowize node"),console.dir(this) )},a.output=j}(window.Inspector),function(){function a(){requestAnimationFrame(f unction(){for(var a,b=document.querySelectorAll(e),f=0,g=b.length;g>f&&(a=b[f]); f++)a.removeAttribute(c),a.setAttribute(d,"");if(b.length){var h=function(){for( var a,c=0,e=b.length;e>c&&(a=b[c]);c++)a.removeAttribute(d);document.body.remove EventListener(i,h,!1)};document.body.addEventListener(i,h,!1)}})}var b=.2,c="unr esolved",d="resolved",e="["+c+"]",f="["+d+"]",g=document.createElement("style"); g.textContent=e+" { opacity: 0; display: block; overflow: hidden; } \n"+f+"{ dis play: block; overflow: hidden;\n-webkit-transition: opacity "+b+"s; transition: opacity "+b+"s; }\n";var h=document.querySelector("head");h.insertBefore(g,h.fir stChild);var i=void 0!==document.documentElement.style.webkitTransition?"webkitT ransitionEnd":"transitionend";window.addEventListener("WebComponentsReady",a)}(P latform),function(a){function b(a){return d(a,i)}function c(a){return d(a,j)}fun ction d(a,b){return"link"===a.localName&&a.getAttribute("rel")===b}function e(a) {return"script"===a.localName}function f(a,b){var c=a;c instanceof Document||(c= document.implementation.createHTMLDocument(i)),c._URL=b;var d=c.createElement("b ase");return d.setAttribute("href",document.baseURI||document.URL),c.head.append Child(d),a instanceof Document||(c.body.innerHTML=a),window.HTMLTemplateElement& &HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(c),c}a||(a=window. HTMLImports={flags:{}});var g,h=a.xhr,i="import",j="stylesheet",k={documents:{}, cache:{},preloadSelectors:["link[rel="+i+"]","element link[rel="+j+"]","template ","script[src]:not([type])",'script[src][type="text/javascript"]'].join(","),loa der:function(a){return g=new l(k.loaded,a),g.cache=k.cache,g},load:function(a,b) {g=k.loader(b),k.preload(a)},preload:function(a){var b=a.querySelectorAll(k.prel oadSelectors);b=this.filterMainDocumentNodes(a,b),b=this.extractTemplateNodes(b) ,g.addNodes(b)},filterMainDocumentNodes:function(a,b){return a===document&&(b=Ar ray.prototype.filter.call(b,function(a){return!e(a)})),b},extractTemplateNodes:f unction(a){var b=[];return a=Array.prototype.filter.call(a,function(a){if("templ ate"===a.localName){if(a.content){var c=a.content.querySelectorAll("link[rel="+j +"]");c.length&&(b=b.concat(Array.prototype.slice.call(c,0)))}return!1}return!0} ),b.length&&(a=a.concat(b)),a},loaded:function(a,d,e){if(b(d)){var g=k.documents [a];g||(g=f(e,a),p.resolvePathsInHTML(g),k.documents[a]=g,k.preload(g)),d.import =g,d.import.href=a,d.import.ownerNode=d,d.content=e=g}d.__resource=e,c(d)&&p.res olvePathsInStylesheet(d)}},l=function(a,b){this.onload=a,this.oncomplete=b,this. inflight=0,this.pending={},this.cache={}};l.prototype={addNodes:function(a){this .inflight+=a.length,q(a,this.require,this),this.checkDone()},require:function(a) {var b=p.nodeUrl(a);b=p.makeAbsUrl(b),a.__nodeUrl=b,this.dedupe(b,a)||this.fetch (b,a)},dedupe:function(a,b){return this.pending[a]?(this.pending[a].push(b),!0): this.cache[a]?(this.onload(a,b,g.cache[a]),this.tail(),!0):(this.pending[a]=[b], !1)},fetch:function(a,b){var c=function(c,d){this.receive(a,b,c,d)}.bind(this);h .load(a,c)},receive:function(a,b,c,d){c||(g.cache[a]=d),g.pending[a].forEach(fun ction(b){c||this.onload(a,b,d),this.tail()},this),g.pending[a]=null},tail:functi on(){--this.inflight,this.checkDone()},checkDone:function(){this.inflight||this. oncomplete()}};var m=["href","src","action"],n="["+m.join("],[")+"]",o="{{.*}}", p={nodeUrl:function(a){return p.resolveUrl(p.documentURL,p.hrefOrSrc(a))},hrefOr Src:function(a){return a.getAttribute("href")||a.getAttribute("src")},documentUr lFromNode:function(a){return p.getDocumentUrl(a.ownerDocument||a)},getDocumentUr l:function(a){var b=a&&(a._URL||a.impl&&a.impl._URL||a.baseURI||a.URL)||"";retur n b.split("#")[0]},resolveUrl:function(a,b){return this.isAbsUrl(b)?b:this.compr essUrl(this.urlToPath(a)+b)},resolveRelativeUrl:function(a,b){return this.isAbsU rl(b)?b:this.makeDocumentRelPath(this.resolveUrl(a,b))},isAbsUrl:function(a){ret urn/(^data:)|(^http[s]?:)|(^\/)/.test(a)},urlToPath:function(a){var b=a.split("/ ");return b.pop(),b.push(""),b.join("/")},compressUrl:function(a){var b="",c=a.i ndexOf("?");c>-1&&(b=a.substring(c),a=a.substring(c,0));for(var d,e=a.split("/") ,f=0;f<e.length;f++)d=e[f],".."===d&&(e.splice(f-1,2),f-=2);return e.join("/")+b },makeDocumentRelPath:function(a){return p.urlElt.href=a,!p.urlElt.host||p.urlEl t.host===window.location.host&&p.urlElt.protocol===window.location.protocol?this .makeRelPath(p.documentURL,p.urlElt.href):a},makeRelPath:function(a,b){for(var c =a.split("/"),d=b.split("/");c.length&&c[0]===d[0];)c.shift(),d.shift();for(var e=0,f=c.length-1;f>e;e++)d.unshift("..");var g=d.join("/");return g},makeAbsUrl: function(a){return p.urlElt.href=a,p.urlElt.href},resolvePathsInHTML:function(a, b){b=b||p.documentUrlFromNode(a),p.resolveAttributes(a,b),p.resolveStyleElts(a,b );var c=a.querySelectorAll("template");c&&q(c,function(a){a.content&&p.resolvePa thsInHTML(a.content,b)})},resolvePathsInStylesheet:function(a){var b=p.nodeUrl(a );a.__resource=p.resolveCssText(a.__resource,b)},resolveStyleElts:function(a,b){ var c=a.querySelectorAll("style");c&&q(c,function(a){a.textContent=p.resolveCssT ext(a.textContent,b)})},resolveCssText:function(a,b){return a.replace(/url\([^)] *\)/g,function(a){var c=a.replace(/["']/g,"").slice(4,-1);return c=p.resolveRela tiveUrl(b,c),"url("+c+")"})},resolveAttributes:function(a,b){var c=a&&a.querySel ectorAll(n);c&&q(c,function(a){this.resolveNodeAttributes(a,b)},this)},resolveNo deAttributes:function(a,b){m.forEach(function(c){var d=a.attributes[c];if(d&&d.v alue&&d.value.search(o)<0){var e=p.resolveRelativeUrl(b,d.value);d.value=e}})}}; p.documentURL=p.getDocumentUrl(document),p.urlElt=document.createElement("a"),h= h||{async:!0,ok:function(a){return a.status>=200&&a.status<300||304===a.status|| 0===a.status},load:function(b,c,d){var e=new XMLHttpRequest;return(a.flags.debug ||a.flags.bust)&&(b+="?"+Math.random()),e.open("GET",b,h.async),e.addEventListen er("readystatechange",function(){4===e.readyState&&c.call(d,!h.ok(e)&&e,e.respon se||e.responseText,b)}),e.send(),e},loadDocument:function(a,b,c){this.load(a,b,c ).responseType="document"}};var q=Array.prototype.forEach.call.bind(Array.protot ype.forEach);Object.defineProperty(document,"_currentScript",{get:function(){ret urn HTMLImports.currentScript||document.currentScript},writeable:!0,configurable :!0}),a.path=p,a.xhr=h,a.importer=k,a.getDocumentUrl=p.getDocumentUrl,a.IMPORT_L INK_TYPE=i}(window.HTMLImports),function(a){function b(a){return"link"===a.local Name&&a.getAttribute("rel")===f}function c(a){return a.parentNode&&!d(a)&&!e(a)} function d(a){return a.ownerDocument===document||a.ownerDocument.impl===document }function e(a){return a.parentNode&&"element"===a.parentNode.localName}{var f="i mport",g={selectors:["link[rel="+f+"]","link[rel=stylesheet]","style","script:no t([type])",'script[type="text/javascript"]'],map:{link:"parseLink",script:"parse Script",style:"parseGeneric"},parse:function(a){if(!a.__importParsed){a.__import Parsed=!0;for(var b,c=a.querySelectorAll(g.selectors),d=a.scripts?a.scripts.leng th:0,e=0;e<c.length&&(b=c[e]);e++)g[g.map[b.localName]](b),a.scripts&&d!==a.scri pts.length&&(d=a.scripts.length,c=a.querySelectorAll(g.selectors))}},parseLink:f unction(a){b(a)?a.import&&(g.parse(a.import),a.dispatchEvent(new CustomEvent("lo ad"))):this.parseGeneric(a)},parseGeneric:function(a){c(a)&&document.head.append Child(a)},parseScript:function(b){if(c(b)){var d=(b.__resource||b.textContent).t rim();if(d){var e=b.__nodeUrl;if(!e){var e=a.path.documentUrlFromNode(b),f="["+M ath.floor(1e3*(Math.random()+1))+"]",g=d.match(/Polymer\(['"]([^'"]*)/);f=g&&g[1 ]||f,e+="/"+f+".js"}d+="\n//# sourceURL="+e+"\n",a.currentScript=b,eval.call(win dow,d),a.currentScript=null}}}};Array.prototype.forEach.call.bind(Array.prototyp e.forEach)}a.parser=g}(HTMLImports),function(){function a(){HTMLImports.importer .load(document,function(){HTMLImports.parser.parse(document),HTMLImports.ready=! 0,HTMLImports.readyTime=(new Date).getTime(),document.dispatchEvent(new CustomEv ent("HTMLImportsLoaded",{bubbles:!0}))})}"function"!=typeof window.CustomEvent&& (window.CustomEvent=function(a){var b=document.createEvent("HTMLEvents");return b.initEvent(a,!0,!0),b}),"complete"===document.readyState||"interactive"===docum ent.readyState&&!window.attachEvent?a():window.addEventListener("DOMContentLoade d",a)}(),function(a){function b(a){u.push(a),t||(t=!0,q(d))}function c(a){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(a)||a}function d(){t=!1;var a=u;u=[],a.sort(function(a,b){return a.uid_-b.uid_});var b=!1;a.for Each(function(a){var c=a.takeRecords();e(a),c.length&&(a.callback_(c,a),b=!0)}), b&&d()}function e(a){a.nodes_.forEach(function(b){var c=p.get(b);c&&c.forEach(fu nction(b){b.observer===a&&b.removeTransientObservers()})})}function f(a,b){for(v ar c=a;c;c=c.parentNode){var d=p.get(c);if(d)for(var e=0;e<d.length;e++){var f=d [e],g=f.options;if(c===a||g.subtree){var h=b(g);h&&f.enqueue(h)}}}}function g(a) {this.callback_=a,this.nodes_=[],this.records_=[],this.uid_=++v}function h(a,b){ this.type=a,this.target=b,this.addedNodes=[],this.removedNodes=[],this.previousS ibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespac e=null,this.oldValue=null}function i(a){var b=new h(a.type,a.target);return b.ad dedNodes=a.addedNodes.slice(),b.removedNodes=a.removedNodes.slice(),b.previousSi bling=a.previousSibling,b.nextSibling=a.nextSibling,b.attributeName=a.attributeN ame,b.attributeNamespace=a.attributeNamespace,b.oldValue=a.oldValue,b}function j (a,b){return w=new h(a,b)}function k(a){return x?x:(x=i(w),x.oldValue=a,x)}funct ion l(){w=x=void 0}function m(a){return a===x||a===w}function n(a,b){return a=== b?a:x&&m(a)?x:null}function o(a,b,c){this.observer=a,this.target=b,this.options= c,this.transientObservedNodes=[]}var p=new WeakMap,q=window.msSetImmediate;if(!q ){var r=[],s=String(Math.random());window.addEventListener("message",function(a) {if(a.data===s){var b=r;r=[],b.forEach(function(a){a()})}}),q=function(a){r.push (a),window.postMessage(s,"*")}}var t=!1,u=[],v=0;g.prototype={observe:function(a ,b){if(a=c(a),!b.childList&&!b.attributes&&!b.characterData||b.attributeOldValue &&!b.attributes||b.attributeFilter&&b.attributeFilter.length&&!b.attributes||b.c haracterDataOldValue&&!b.characterData)throw new SyntaxError;var d=p.get(a);d||p .set(a,d=[]);for(var e,f=0;f<d.length;f++)if(d[f].observer===this){e=d[f],e.remo veListeners(),e.options=b;break}e||(e=new o(this,a,b),d.push(e),this.nodes_.push (a)),e.addListeners()},disconnect:function(){this.nodes_.forEach(function(a){for (var b=p.get(a),c=0;c<b.length;c++){var d=b[c];if(d.observer===this){d.removeLis teners(),b.splice(c,1);break}}},this),this.records_=[]},takeRecords:function(){v ar a=this.records_;return this.records_=[],a}};var w,x;o.prototype={enqueue:func tion(a){var c=this.observer.records_,d=c.length;if(c.length>0){var e=c[d-1],f=n( e,a);if(f)return c[d-1]=f,void 0}else b(this.observer);c[d]=a},addListeners:func tion(){this.addListeners_(this.target)},addListeners_:function(a){var b=this.opt ions;b.attributes&&a.addEventListener("DOMAttrModified",this,!0),b.characterData &&a.addEventListener("DOMCharacterDataModified",this,!0),b.childList&&a.addEvent Listener("DOMNodeInserted",this,!0),(b.childList||b.subtree)&&a.addEventListener ("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(thi s.target)},removeListeners_:function(a){var b=this.options;b.attributes&&a.remov eEventListener("DOMAttrModified",this,!0),b.characterData&&a.removeEventListener ("DOMCharacterDataModified",this,!0),b.childList&&a.removeEventListener("DOMNode Inserted",this,!0),(b.childList||b.subtree)&&a.removeEventListener("DOMNodeRemov ed",this,!0)},addTransientObserver:function(a){if(a!==this.target){this.addListe ners_(a),this.transientObservedNodes.push(a);var b=p.get(a);b||p.set(a,b=[]),b.p ush(this)}},removeTransientObservers:function(){var a=this.transientObservedNode s;this.transientObservedNodes=[],a.forEach(function(a){this.removeListeners_(a); for(var b=p.get(a),c=0;c<b.length;c++)if(b[c]===this){b.splice(c,1);break}},this )},handleEvent:function(a){switch(a.stopImmediatePropagation(),a.type){case"DOMA ttrModified":var b=a.attrName,c=a.relatedNode.namespaceURI,d=a.target,e=new j("a ttributes",d);e.attributeName=b,e.attributeNamespace=c;var g=a.attrChange===Muta tionEvent.ADDITION?null:a.prevValue;f(d,function(a){return!a.attributes||a.attri buteFilter&&a.attributeFilter.length&&-1===a.attributeFilter.indexOf(b)&&-1===a. attributeFilter.indexOf(c)?void 0:a.attributeOldValue?k(g):e});break;case"DOMCha racterDataModified":var d=a.target,e=j("characterData",d),g=a.prevValue;f(d,func tion(a){return a.characterData?a.characterDataOldValue?k(g):e:void 0});break;cas e"DOMNodeRemoved":this.addTransientObserver(a.target);case"DOMNodeInserted":var h,i,d=a.relatedNode,m=a.target;"DOMNodeInserted"===a.type?(h=[m],i=[]):(h=[],i=[ m]);var n=m.previousSibling,o=m.nextSibling,e=j("childList",d);e.addedNodes=h,e. removedNodes=i,e.previousSibling=n,e.nextSibling=o,f(d,function(a){return a.chil dList?e:void 0})}l()}},a.JsMutationObserver=g,!a.MutationObserver&&a.WebKitMutat ionObserver&&(a.MutationObserver=a.WebKitMutationObserver),a.MutationObserver||( a.MutationObserver=g)}(this),window.CustomElements=window.CustomElements||{flags :{}},function(a){function b(a,c,d){var e=a.firstElementChild;if(!e)for(e=a.first Child;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;for(;e;)c(e,d)!==!0&&b( e,c,d),e=e.nextElementSibling;return null}function c(a,b){for(var c=a.shadowRoot ;c;)d(c,b),c=c.olderShadowRoot}function d(a,d){b(a,function(a){return d(a)?!0:(c (a,d),void 0)}),c(a,d)}function e(a){return h(a)?(i(a),!0):(l(a),void 0)}functio n f(a){d(a,function(a){return e(a)?!0:void 0})}function g(a){return e(a)||f(a)}f unction h(b){if(!b.__upgraded__&&b.nodeType===Node.ELEMENT_NODE){var c=b.getAttr ibute("is")||b.localName,d=a.registry[c];if(d)return y.dom&&console.group("upgra de:",b.localName),a.upgrade(b),y.dom&&console.groupEnd(),!0}}function i(a){l(a), q(a)&&d(a,function(a){l(a)})}function j(a){if(B.push(a),!A){A=!0;var b=window.Pl atform&&window.Platform.endOfMicrotask||setTimeout;b(k)}}function k(){A=!1;for(v ar a,b=B,c=0,d=b.length;d>c&&(a=b[c]);c++)a();B=[]}function l(a){z?j(function(){ m(a)}):m(a)}function m(a){(a.enteredViewCallback||a.__upgraded__&&y.dom)&&(y.dom &&console.group("inserted:",a.localName),q(a)&&(a.__inserted=(a.__inserted||0)+1 ,a.__inserted<1&&(a.__inserted=1),a.__inserted>1?y.dom&&console.warn("inserted:" ,a.localName,"insert/remove count:",a.__inserted):a.enteredViewCallback&&(y.dom& &console.log("inserted:",a.localName),a.enteredViewCallback())),y.dom&&console.g roupEnd())}function n(a){o(a),d(a,function(a){o(a)})}function o(a){z?j(function( ){p(a)}):p(a)}function p(a){(a.leftViewCallback||a.__upgraded__&&y.dom)&&(y.dom& &console.log("removed:",a.localName),q(a)||(a.__inserted=(a.__inserted||0)-1,a._ _inserted>0&&(a.__inserted=0),a.__inserted<0?y.dom&&console.warn("removed:",a.lo calName,"insert/remove count:",a.__inserted):a.leftViewCallback&&a.leftViewCallb ack()))}function q(a){for(var b=a,c=window.ShadowDOMPolyfill&&window.ShadowDOMPo lyfill.wrapIfNeeded(document)||document;b;){if(b==c)return!0;b=b.parentNode||b.h ost}}function r(a){if(a.shadowRoot&&!a.shadowRoot.__watched){y.dom&&console.log( "watching shadow-root for: ",a.localName);for(var b=a.shadowRoot;b;)s(b),b=b.old erShadowRoot}}function s(a){a.__watched||(v(a),a.__watched=!0)}function t(a){if( y.dom){var b=a[0];if(b&&"childList"===b.type&&b.addedNodes&&b.addedNodes){for(va r c=b.addedNodes[0];c&&c!==document&&!c.host;)c=c.parentNode;var d=c&&(c.URL||c. _URL||c.host&&c.host.localName)||"";d=d.split("/?").shift().split("/").pop()}con sole.group("mutations (%d) [%s]",a.length,d||"")}a.forEach(function(a){"childLis t"===a.type&&(D(a.addedNodes,function(a){a.localName&&g(a)}),D(a.removedNodes,fu nction(a){a.localName&&n(a)}))}),y.dom&&console.groupEnd()}function u(){t(C.take Records()),k()}function v(a){C.observe(a,{childList:!0,subtree:!0})}function w(a ){v(a)}function x(a){y.dom&&console.group("upgradeDocument: ",(a.URL||a._URL||"" ).split("/").pop()),g(a),y.dom&&console.groupEnd()}var y=window.logFlags||{},z=! window.MutationObserver||window.MutationObserver===window.JsMutationObserver;a.h asPolyfillMutations=z;var A=!1,B=[],C=new MutationObserver(t),D=Array.prototype. forEach.call.bind(Array.prototype.forEach);a.watchShadow=r,a.upgradeAll=g,a.upgr adeSubtree=f,a.observeDocument=w,a.upgradeDocument=x,a.takeRecords=u}(window.Cus tomElements),function(a){function b(b,f){var g=f||{};if(!b)throw new Error("docu ment.register: first argument `name` must not be empty");if(b.indexOf("-")<0)thr ow new Error("document.register: first argument ('name') must contain a dash ('- '). Argument provided was '"+String(b)+"'.");

error: old chunk mismatch

OLDNEW
« tools/perf/page_sets/key_silk_cases.json ('K') | « tools/perf/page_sets/key_silk_cases.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698