a=b(y.call(s,t))}returna&&!i&&(c=v(a).root)&&cinstanceofe.wrappers.ShadowRoot?o(this,t):a},querySelectorAll:function(e){vart=n(e),r=t!==e;e=t;varo=neww;returno.length=p.call(this,i,0,o,e,r),o}},H={matches:function(t){returnt=r(t),e.originalMatches.call(g(this),t)}},x={getElementsByTagName:function(e){vart=newm,n="*"===e?s:a;returnt.length=h.call(this,n,0,t,e,e.toLowerCase()),t},getElementsByClassName:function(e){returnthis.querySelectorAll("."+e)},getElementsByTagNameNS:function(e,t){varn=newm,r=null;returnr="*"===e?"*"===t?s:c:"*"===t?l:u,n.length=f.call(this,r,0,n,e||null,t),n}};e.GetElementsByInterface=x,e.SelectorsInterface=D,e.MatchesInterface=H}(window.ShadowDOMPolyfill),function(e){"use strict";functiont(e){for(;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;returne}functionn(e){for(;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.previousSibling;returne}varr=e.wrappers.NodeList,o={getfirstElementChild(){returnt(this.firstChild)},getlastElementChild(){returnn(this.lastChild)},getchildElementCount(){for(vare=0,t=this.firstElementChild;t;t=t.nextElementSibling)e++;returne},getchildren(){for(vare=newr,t=0,n=this.firstElementChild;n;n=n.nextElementSibling)e[t++]=n;returne.length=t,e},remove:function(){vare=this.parentNode;e&&e.removeChild(this)}},i={getnextElementSibling(){returnt(this.nextSibling)},getpreviousElementSibling(){returnn(this.previousSibling)}},a={getElementById:function(e){return/[ \t\n\r\f]/.test(e)?null:this.querySelector('[id="'+e+'"]')}};e.ChildNodeInterface=i,e.NonElementParentNodeInterface=a,e.ParentNodeInterface=o}(window.ShadowDOMPolyfill),function(e){"use strict";functiont(e){r.call(this,e)}varn=e.ChildNodeInterface,r=e.wrappers.Node,o=e.enqueueMutation,i=e.mixin,a=e.registerWrapper,s=e.unsafeUnwrap,c=window.CharacterData;t.prototype=Object.create(r.prototype),i(t.prototype,{getnodeValue(){returnthis.data},setnodeValue(e){this.data=e},gettextContent(){returnthis.data},settextContent(e){this.data=e},getdata(){returns(this).data},setdata(e){vart=s(this).data;o(this,"characterData",{oldValue:t}),s(this).data=e}}),i(t.prototype,n),a(c,t,document.createTextNode("")),e.wrappers.CharacterData=t}(window.ShadowDOMPolyfill),function(e){"use strict";functiont(e){returne>>>0}functionn(e){r.call(this,e)}varr=e.wrappers.CharacterData,o=(e.enqueueMutation,e.mixin),i=e.registerWrapper,a=window.Text;n.prototype=Object.create(r.prototype),o(n.prototype,{splitText:function(e){e=t(e);varn=this.data;if(e>n.length)thrownewError("IndexSizeError");varr=n.slice(0,e),o=n.slice(e);this.data=r;vari=this.ownerDocument.createTextNode(o);returnthis.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}}),i(a,n,document.createTextNode("")),e.wrappers.Text=n}(window.ShadowDOMPolyfill),function(e){"use strict";functiont(e){returni(e).getAttribute("class")}functionn(e,t){a(e,"attributes",{name:"class",namespace:null,oldValue:t})}functionr(t){e.invalidateRendererBasedOnAttribute(t,"class")}functiono(e,o,i){vara=e.ownerElement_;if(null==a)returno.apply(e,i);vars=t(a),c=o.apply(e,i);returnt(a)!==s&&(n(a,s),r(a)),c}if(!window.DOMTokenList)returnvoidconsole.warn("Missing DOMTokenList prototype, please include a compatible classList polyfill such as http://goo.gl/uTcepH.");vari=e.unsafeUnwrap,a=e.enqueueMutation,s=DOMTokenList.prototype.add;DOMTokenList.prototype.add=function(){o(this,s,arguments)};varc=DOMTokenList.prototype.remove;DOMTokenList.prototype.remove=function(){o(this,c,arguments)};varl=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(){returno(this,l,arguments)}}(window.ShadowDOMPolyfill),function(e){"use strict";functiont(t,n){varr=t.parentNode;if(r&&r.shadowRoot){varo=e.getRendererForHost(r);o.dependsOnAttribute(n)&&o.invalidate()}}functionn(e,t,n){u(e,"attributes",{name:t,namespace:null,oldValue:n})}functionr(e){a.call(this,e)}varo=e.ChildNodeInterface,i=e.GetElementsByInterface,a=e.wrappers.Node,s=e.ParentNodeInterface,c=e.SelectorsInterface,l=e.MatchesInterface,u=(e.addWrapNodeListMethod,e.enqueueMutation),d=e.mixi
if(4===i.readyState){varn=i.getResponseHeader("Location"),a=null;if(n)vara="/"===n.substr(0,1)?location.origin+n:n;r.call(o,!t.ok(i)&&i,i.response||i.responseText,a)}}),i.send(),i},loadDocument:function(e,t,n){this.load(e,t,n).responseType="document"}};e.xhr=t}),window.HTMLImports.addModule(function(e){vart=e.xhr,n=e.flags,r=function(e,t){this.cache={},this.onload=e,this.oncomplete=t,this.inflight=0,this.pending={}};r.prototype={addNodes:function(e){this.inflight+=e.length;for(vart,n=0,r=e.length;r>n&&(t=e[n]);n++)this.require(t);this.checkDone()},addNode:function(e){this.inflight++,this.require(e),this.checkDone()},require:function(e){vart=e.src||e.href;e.__nodeUrl=t,this.dedupe(t,e)||this.fetch(t,e)},dedupe:function(e,t){if(this.pending[e])returnthis.pending[e].push(t),!0;returnthis.cache[e]?(this.onload(e,t,this.cache[e]),this.tail(),!0):(this.pending[e]=[t],!1)},fetch:function(e,r){if(n.load&&console.log("fetch",e,r),e)if(e.match(/^data:/)){varo=e.split(","),i=o[0],a=o[1];a=i.indexOf(";base64")>-1?atob(a):decodeURIComponent(a),setTimeout(function(){this.receive(e,r,null,a)}.bind(this),0)}else{vars=function(t,n,o){this.receive(e,r,t,n,o)}.bind(this);t.load(e,s)}elsesetTimeout(function(){this.receive(e,r,{error:"href must be specified"},null)}.bind(this),0)},receive:function(e,t,n,r,o){this.cache[e]=r;for(vari,a=this.pending[e],s=0,c=a.length;c>s&&(i=a[s]);s++)this.onload(e,i,r,n,o),this.tail();this.pending[e]=null},tail:function(){--this.inflight,this.checkDone()},checkDone:function(){this.inflight||this.oncomplete()}},e.Loader=r}),window.HTMLImports.addModule(function(e){vart=function(e){this.addCallback=e,this.mo=newMutationObserver(this.handler.bind(this))};t.prototype={handler:function(e){for(vart,n=0,r=e.length;r>n&&(t=e[n]);n++)"childList"===t.type&&t.addedNodes.length&&this.addedNodes(t.addedNodes)},addedNodes:function(e){this.addCallback&&this.addCallback(e);for(vart,n=0,r=e.length;r>n&&(t=e[n]);n++)t.children&&t.children.length&&this.addedNodes(t.children)},observe:function(e){this.mo.observe(e,{childList:!0,subtree:!0})}},e.Observer=t}),window.HTMLImports.addModule(function(e){functiont(e){return"link"===e.localName&&e.rel===u}functionn(e){vart=r(e);return"data:text/javascript;charset=utf-8,"+encodeURIComponent(t)}functionr(e){returne.textContent+o(e)}functiono(e){vart=e.ownerDocument;t.__importedScripts=t.__importedScripts||0;varn=e.ownerDocument.baseURI,r=t.__importedScripts?"-"+t.__importedScripts:"";returnt.__importedScripts++,"\n//# sourceURL="+n+r+".js\n"}functioni(e){vart=e.ownerDocument.createElement("style");returnt.textContent=e.textContent,a.resolveUrlsInStyle(t),t}vara=e.path,s=e.rootDocument,c=e.flags,l=e.isIE,u=e.IMPORT_LINK_TYPE,d="link[rel="+u+"]",p={documentSelectors:d,importsSelectors:[d,"link[rel=stylesheet]","style","script:not([type])",'script[type="application/javascript"]','script[type="text/javascript"]'].join(","),map:{link:"parseLink",script:"parseScript",style:"parseStyle"},dynamicElements:[],parseNext:function(){vare=this.nextToParse();e&&this.parse(e)},parse:function(e){if(this.isParsed(e))returnvoid(c.parse&&console.log("[%s] is already parsed",e.localName));vart=this[this.map[e.localName]];t&&(this.markParsing(e),t.call(this,e))},parseDynamic:function(e,t){this.dynamicElements.push(e),t||this.parseNext()},markParsing:function(e){c.parse&&console.log("parsing",e),this.parsingElement=e},markParsingComplete:function(e){e.__importParsed=!0,this.markDynamicParsingComplete(e),e.__importElement&&(e.__importElement.__importParsed=!0,this.markDynamicParsingComplete(e.__importElement)),this.parsingElement=null,c.parse&&console.log("completed",e)},markDynamicParsingComplete:function(e){vart=this.dynamicElements.indexOf(e);t>=0&&this.dynamicElements.splice(t,1)},parseImport:function(e){if(window.HTMLImports.__importsParsingHook&&window.HTMLImports.__importsParsingHook(e),e["import"]&&(e["import"].__importParsed=!0),this.markParsingComplete(e),e.dispatchEvent(e.__resource&&!e.__error?newCustomEvent("load",{bubbles:!1}):newCustomEvent("error",{bubbles:!1}))