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

Side by Side Diff: ui/keyboard/resources/polymer.min.js

Issue 15176004: Web Component Virtual Keyboard (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
OLDNEW
(Empty)
1 function PointerGestureEvent(e,t){var n=t||{},r=document.createEvent("Event"),i= {bubbles:!0,cancelable:!0};return Object.keys(i).forEach(function(e){e in n&&(i[ e]=n[e])}),r.initEvent(e,i.bubbles,i.cancelable),Object.keys(n).forEach(function (e){r[e]=t[e]}),r.preventTap=this.preventTap,r}if(window.Platform=window.Platfor m||{},window.logFlags=window.logFlags||{},function(e){var t=e.flags||{};location .search.slice(1).split("&").forEach(function(e){e=e.split("="),e[0]&&(t[e[0]]=e[ 1]||!0)}),t.shadow=(t.shadowdom||t.shadow||t.polyfill||!HTMLElement.prototype.we bkitCreateShadowRoot)&&"polyfill",e.flags=t}(Platform),"polyfill"===Platform.fla gs.shadow){var SideTable;"undefined"!=typeof WeakMap&&0>navigator.userAgent.inde xOf("Firefox/")?SideTable=WeakMap:function(){var e=Object.defineProperty,t=Objec t.hasOwnProperty,n=(new Date).getTime()%1e9;SideTable=function(){this.name="__st "+(1e9*Math.random()>>>0)+(n++ +"__")},SideTable.prototype={set:function(t,n){e( t,this.name,{value:n,writable:!0})},get:function(e){return t.call(e,this.name)?e [this.name]:void 0},"delete":function(e){this.set(e,void 0)}}}();var ShadowDOMPo lyfill={};(function(e){"use strict";function t(e){if(!e)throw Error("Assertion f ailed")}function n(e,t){return Object.getOwnPropertyNames(t).forEach(function(n) {Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function r( e,t){return Object.getOwnPropertyNames(t).forEach(function(n){switch(n){case"arg uments":case"caller":case"length":case"name":case"prototype":case"toString":retu rn}Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function i(e){var t=e.__proto__||Object.getPrototypeOf(e),n=S.get(t);if(n)return n;var r= i(t),o=h(r);return u(t,o,e),o}function o(e,t){s(e,t,!0)}function a(e,t){s(t,e,!1 )}function s(e,t,n){Object.getOwnPropertyNames(e).forEach(function(r){if(!(r in t)){O&&e.__lookupGetter__(r);var i;try{i=Object.getOwnPropertyDescriptor(e,r)}ca tch(o){i=C}var a,s;if(n&&"function"==typeof i.value)return t[r]=function(){retur n this.impl[r].apply(this.impl,arguments)},void 0;a=function(){return this.impl[ r]},(i.writable||i.set)&&(s=function(e){this.impl[r]=e}),Object.defineProperty(t ,r,{get:a,set:s,configurable:i.configurable,enumerable:i.enumerable})}})}functio n l(e,t,n){var i=e.prototype;u(i,t,n),r(t,e)}function u(e,n,r){var i=n.prototype ;t(void 0===S.get(e)),S.set(e,n),o(e,i),r&&a(i,r)}function c(e,t){return S.get(t .prototype)===e}function d(e){var t=Object.getPrototypeOf(e),n=i(t),r=h(n);retur n u(t,r,e),r}function h(e){function t(t){e.call(this,t)}return t.prototype=Objec t.create(e.prototype),t.prototype.constructor=t,t}function p(e){return e instanc eof P.EventTarget||e instanceof P.Event||e instanceof P.DOMImplementation}functi on f(e){return e instanceof N||e instanceof _||e instanceof D||e instanceof L}fu nction v(e){if(null===e)return null;t(f(e));var n=M.get(e);if(!n){var r=i(e);n=n ew r(e),M.set(e,n)}return n}function m(e){return null===e?null:(t(p(e)),e.impl)} function g(e){return e&&p(e)?m(e):e}function b(e){return e&&!p(e)?v(e):e}functio n y(e,n){null!==n&&(t(f(e)),t(void 0===n||p(n)),M.set(e,n))}function w(e,t,n){Ob ject.defineProperty(e.prototype,t,{get:n,configurable:!0,enumerable:!0})}functio n E(e,t){w(e,t,function(){return v(this.impl[t])})}function T(e,t){e.forEach(fun ction(e){t.forEach(function(t){e.prototype[t]=function(){var e=v(this);return e[ t].apply(e,arguments)}})})}var M=new SideTable,S=new SideTable,P=Object.create(n ull);Object.getOwnPropertyNames(window);var O=/Firefox/.test(navigator.userAgent ),C={get:function(){},set:function(){},configurable:!0,enumerable:!0},L=DOMImple mentation,_=Event,N=Node,D=Window;e.assert=t,e.defineGetter=w,e.defineWrapGetter =E,e.forwardMethodsToWrapper=T,e.isWrapperFor=c,e.mixin=n,e.registerObject=d,e.r egisterWrapper=l,e.rewrap=y,e.unwrap=m,e.unwrapIfNeeded=g,e.wrap=v,e.wrapIfNeede d=b,e.wrappers=P})(this.ShadowDOMPolyfill),function(e){"use strict";function t(e ){return e instanceof k.ShadowRoot}function n(e){var t=e.localName;return"conten t"===t||"shadow"===t}function r(e){return!!e.shadowRoot}function i(e){var t;retu rn e.parentNode||(t=e.defaultView)&&H(t)||null}function o(o,a,s){if(s.length)ret urn s.shift();if(t(o))return o.insertionParent||e.getHostForShadowRoot(o);var l= e.eventParentsTable.get(o);if(l){for(var u=1;l.length>u;u++)s[u-1]=l[u];return l [0]}if(a&&n(o)){var c=o.parentNode;if(c&&r(c))for(var d=e.getShadowTrees(c),h=a. insertionParent,u=0;d.length>u;u++)if(d[u].contains(h))return h}return i(o)}func tion a(e){for(var r=[],i=e,a=[],l=[];i;){var u=null;if(n(i)){u=s(r);var c=r[r.le ngth-1]||i;r.push(c)}else r.length||r.push(i);var d=r[r.length-1];a.push({target :d,currentTarget:i}),t(i)&&r.pop(),i=o(i,u,l)}return a}function s(e){for(var t=e .length-1;t>=0;t--)if(!n(e[t]))return e[t];return null}function l(r,i){for(var a =[];r;){for(var l=[],c=i,h=void 0;c;){var p=null;if(l.length){if(n(c)&&(p=s(l),u (h))){var f=l[l.length-1];l.push(f)}}else l.push(c);if(d(c,r))return l[l.length- 1];t(c)&&l.pop(),h=c,c=o(c,p,a)}r=t(r)?e.getHostForShadowRoot(r):r.parentNode}}f unction u(e){return e.insertionParent}function c(e){for(var t;t=e.parentNode;)e= t;return e}function d(e,t){return c(e)===c(t)}function h(e){switch(e){case"DOMAt trModified":case"DOMAttributeNameChanged":case"DOMCharacterDataModified":case"DO MElementNameChanged":case"DOMNodeInserted":case"DOMNodeInsertedIntoDocument":cas e"DOMNodeRemoved":case"DOMNodeRemovedFromDocument":case"DOMSubtreeModified":retu rn!0}return!1}function p(t){if(!I.get(t)){I.set(t,!0),h(t.type)||e.renderAllPend ing();var n=H(t.target),r=H(t);return f(r,n)}}function f(e,t){var n=a(t);return" load"===e.type&&2===n.length&&n[0].target instanceof k.Document&&n.shift(),v(e,n )&&m(e,n)&&g(e,n),B.set(e,w.NONE),F.set(e,null),e.defaultPrevented}function v(e, t){for(var n,r=t.length-1;r>0;r--){var i=t[r].target,o=t[r].currentTarget;if(i!= =o&&(n=w.CAPTURING_PHASE,!b(t[r],e,n)))return!1}return!0}function m(e,t){var n=w .AT_TARGET;return b(t[0],e,n)}function g(e,t){for(var n,r=e.bubbles,i=1;t.length >i;i++){var o=t[i].target,a=t[i].currentTarget;if(o===a)n=w.AT_TARGET;else{if(!r ||Y.get(e))continue;n=w.BUBBLING_PHASE}if(!b(t[i],e,n))return}}function b(e,t,n) {var r=e.target,i=e.currentTarget,o=R.get(i);if(!o)return!0;if("relatedTarget"in t){var a=x(t),s=H(a.relatedTarget),u=l(i,s);if(u===r)return!0;U.set(t,u)}B.set( t,n);var c=t.type,d=!1;j.set(t,r),F.set(t,i);for(var h=0;o.length>h;h++){var p=o [h];if(p.removed)d=!0;else if(!(p.type!==c||!p.capture&&n===w.CAPTURING_PHASE||p .capture&&n===w.BUBBLING_PHASE))try{if("function"==typeof p.handler?p.handler.ca ll(i,t):p.handler.handleEvent(t),Y.get(t))return!1}catch(f){window.onerror?windo w.onerror(f.message):console.error(f)}}if(d){var v=o.slice();o.length=0;for(var h=0;v.length>h;h++)v[h].removed||o.push(v[h])}return!q.get(t)}function y(e,t,n){ this.type=e,this.handler=t,this.capture=Boolean(n)}function w(e,t){return e inst anceof W?(this.impl=e,void 0):H(S(W,"Event",e,t))}function E(e){return e&&e.rela tedTarget?Object.create(e,{relatedTarget:{value:x(e.relatedTarget)}}):e}function T(e,t,n){var r=window[e],i=function(t,n){return t instanceof r?(this.impl=t,voi d 0):H(S(r,e,t,n))};return i.prototype=Object.create(t.prototype),n&&D(i.prototy pe,n),r&&A(r,i,document.createEvent(e)),i}function M(e,t){return function(){argu ments[t]=x(arguments[t]);var n=x(this);n[e].apply(n,arguments)}}function S(e,t,n ,r){if(et)return new e(n,E(r));var i=x(document.createEvent(t)),o=Z[t],a=[n];ret urn Object.keys(o).forEach(function(e){var t=null!=r&&e in r?r[e]:o[e];"relatedT arget"===e&&(t=x(t)),a.push(t)}),i["init"+t].apply(i,a),i}function P(e){return"f unction"==typeof e?!0:e&&e.handleEvent}function O(e){this.impl=e}function C(t){r eturn t instanceof k.ShadowRoot&&(t=e.getHostForShadowRoot(t)),x(t)}function L(e ){N(e,rt)}function _(t,n,r,i){e.renderAllPending();for(var o=H(it.call(n.impl,r, i)),s=a(o,this),l=0;s.length>l;l++){var u=s[l];if(u.currentTarget===t)return u.t arget}return null}var N=e.forwardMethodsToWrapper,D=e.mixin,A=e.registerWrapper, x=e.unwrap,H=e.wrap,k=e.wrappers;new SideTable;var R=new SideTable,I=new SideTab le,j=new SideTable,F=new SideTable,U=new SideTable,B=new SideTable,q=new SideTab le,Y=new SideTable;y.prototype={equals:function(e){return this.handler===e.handl er&&this.type===e.type&&this.capture===e.capture},get removed(){return null===th is.handler},remove:function(){this.handler=null}};var W=window.Event;w.prototype ={get target(){return j.get(this)},get currentTarget(){return F.get(this)},get e ventPhase(){return B.get(this)},stopPropagation:function(){q.set(this,!0)},stopI mmediatePropagation:function(){q.set(this,!0),Y.set(this,!0)}},A(W,w,document.cr eateEvent("Event"));var V=T("UIEvent",w),G=T("CustomEvent",w),X={get relatedTarg et(){return U.get(this)||H(x(this).relatedTarget)}},z=D({initMouseEvent:M("initM ouseEvent",14)},X),K=D({initFocusEvent:M("initFocusEvent",5)},X),Q=T("MouseEvent ",V,z),$=T("FocusEvent",V,K),J=T("MutationEvent",w,{initMutationEvent:M("initMut ationEvent",3),get relatedNode(){return H(this.impl.relatedNode)}}),Z=Object.cre ate(null),et=function(){try{new window.MouseEvent("click")}catch(e){return!1}ret urn!0}();if(!et){var tt=function(e,t,n){if(n){var r=Z[n];t=D(D({},r),t)}Z[e]=t}; tt("Event",{bubbles:!1,cancelable:!1}),tt("CustomEvent",{detail:null},"Event"),t t("UIEvent",{view:null,detail:0},"Event"),tt("MouseEvent",{screenX:0,screenY:0,c lientX:0,clientY:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedT arget:null},"UIEvent"),tt("FocusEvent",{relatedTarget:null},"UIEvent")}var nt=wi ndow.EventTarget,rt=["addEventListener","removeEventListener","dispatchEvent"];[ Element,Window,Document].forEach(function(e){var t=e.prototype;rt.forEach(functi on(e){Object.defineProperty(t,e+"_",{value:t[e]})})}),O.prototype={addEventListe ner:function(e,t,n){if(P(t)){var r=new y(e,t,n),i=R.get(this);if(i){for(var o=0; i.length>o;o++)if(r.equals(i[o]))return}else i=[],R.set(this,i);i.push(r);var a= C(this);a.addEventListener_(e,p,!0)}},removeEventListener:function(e,t,n){n=Bool ean(n);var r=R.get(this);if(r){for(var i=0,o=!1,a=0;r.length>a;a++)r[a].type===e &&r[a].capture===n&&(i++,r[a].handler===t&&(o=!0,r[a].remove()));if(o&&1===i){va r s=C(this);s.removeEventListener_(e,p,!0)}}},dispatchEvent:function(e){var t=C( this);return t.dispatchEvent_(x(e))}},nt&&A(nt,O);var it=document.elementFromPoi nt;e.adjustRelatedTarget=l,e.elementFromPoint=_,e.wrapEventTargetMethods=L,e.wra ppers.CustomEvent=G,e.wrappers.Event=w,e.wrappers.EventTarget=O,e.wrappers.Focus Event=$,e.wrappers.MouseEvent=Q,e.wrappers.MutationEvent=J,e.wrappers.UIEvent=V} (this.ShadowDOMPolyfill),function(e){"use strict";function t(e,t){Object.defineP roperty(e,t,{enumerable:!1})}function n(){this.length=0,t(this,"length")}functio n r(e){if(null==e)return e;for(var t=new n,r=0,i=e.length;i>r;r++)t[r]=o(e[r]);r eturn t.length=i,t}function i(e,t){e.prototype[t]=function(){return r(this.impl[ t].apply(this.impl,arguments))}}var o=e.wrap;n.prototype={item:function(e){retur n this[e]}},t(n.prototype,"item"),e.wrappers.NodeList=n,e.addWrapNodeListMethod= i,e.wrapNodeList=r}(this.ShadowDOMPolyfill),function(e){"use strict";function t( e){u(e instanceof o)}function n(e,t,n,r){if(e.nodeType!==o.DOCUMENT_FRAGMENT_NOD E)return e.parentNode&&e.parentNode.removeChild(e),e.parentNode_=t,e.previousSib ling_=n,e.nextSibling_=r,n&&(n.nextSibling_=e),r&&(r.previousSibling_=e),[e];for (var i,a=[];i=e.firstChild;)e.removeChild(i),a.push(i),i.parentNode_=t;for(var s =0;a.length>s;s++)a[s].previousSibling_=a[s-1]||n,a[s].nextSibling_=a[s+1]||r;re turn n&&(n.nextSibling_=a[0]),r&&(r.previousSibling_=a[a.length-1]),a}function r (e){if(1===e.length)return h(e[0]);for(var t=h(document.createDocumentFragment() ),n=0;e.length>n;n++)t.appendChild(h(e[n]));return t}function i(e){for(var t=e.f irstChild;t;){u(t.parentNode===e);var n=t.nextSibling,r=h(t),i=r.parentNode;i&&b .call(i,r),t.previousSibling_=t.nextSibling_=t.parentNode_=null,t=n}e.firstChild _=e.lastChild_=null}function o(e){u(e instanceof f),a.call(this,e),this.parentNo de_=void 0,this.firstChild_=void 0,this.lastChild_=void 0,this.nextSibling_=void 0,this.previousSibling_=void 0}var a=e.wrappers.EventTarget,s=e.wrappers.NodeLi st,l=e.defineWrapGetter,u=e.assert,c=e.mixin,d=e.registerWrapper,h=e.unwrap,p=e. wrap,f=window.Node,v=f.prototype.appendChild,m=f.prototype.insertBefore,g=f.prot otype.replaceChild,b=f.prototype.removeChild,y=f.prototype.compareDocumentPositi on;o.prototype=Object.create(a.prototype),c(o.prototype,{appendChild:function(e) {t(e),this.invalidateShadowRenderer();var i=this.lastChild,o=null,a=n(e,this,i,o );return this.lastChild_=a[a.length-1],i||(this.firstChild_=a[0]),v.call(this.im pl,r(a)),e},insertBefore:function(e,i){if(!i)return this.appendChild(e);t(e),t(i ),u(i.parentNode===this),this.invalidateShadowRenderer();var o=i.previousSibling ,a=i,s=n(e,this,o,a);this.firstChild===i&&(this.firstChild_=s[0]);var l=h(i),c=l .parentNode;return c&&m.call(c,r(s),l),e},removeChild:function(e){if(t(e),e.pare ntNode!==this)throw Error("NotFoundError");this.invalidateShadowRenderer();var n =this.firstChild,r=this.lastChild,i=e.nextSibling,o=e.previousSibling,a=h(e),s=a .parentNode;return s&&b.call(s,a),n===e&&(this.firstChild_=i),r===e&&(this.lastC hild_=o),o&&(o.nextSibling_=i),i&&(i.previousSibling_=o),e.previousSibling_=e.ne xtSibling_=e.parentNode_=null,e},replaceChild:function(e,i){if(t(e),t(i),i.paren tNode!==this)throw Error("NotFoundError");this.invalidateShadowRenderer();var o= i.previousSibling,a=i.nextSibling;a===e&&(a=e.nextSibling);var s=n(e,this,o,a);t his.firstChild===i&&(this.firstChild_=s[0]),this.lastChild===i&&(this.lastChild_ =s[s.length-1]),i.previousSibling_=null,i.nextSibling_=null,i.parentNode_=null;v ar l=h(i);return l.parentNode&&g.call(l.parentNode,r(s),l),i},hasChildNodes:func tion(){return null===this.firstChild},get parentNode(){return void 0!==this.pare ntNode_?this.parentNode_:p(this.impl.parentNode)},get firstChild(){return void 0 !==this.firstChild_?this.firstChild_:p(this.impl.firstChild)},get lastChild(){re turn void 0!==this.lastChild_?this.lastChild_:p(this.impl.lastChild)},get nextSi bling(){return void 0!==this.nextSibling_?this.nextSibling_:p(this.impl.nextSibl ing)},get previousSibling(){return void 0!==this.previousSibling_?this.previousS ibling_:p(this.impl.previousSibling)},get parentElement(){for(var e=this.parentN ode;e&&e.nodeType!==o.ELEMENT_NODE;)e=e.parentNode;return e},get textContent(){f or(var e="",t=this.firstChild;t;t=t.nextSibling)e+=t.textContent;return e},set t extContent(e){if(i(this),this.invalidateShadowRenderer(),""!==e){var t=this.impl .ownerDocument.createTextNode(e);this.appendChild(t)}},get childNodes(){for(var e=new s,t=0,n=this.firstChild;n;n=n.nextSibling)e[t++]=n;return e.length=t,e},cl oneNode:function(e){if(!this.invalidateShadowRenderer())return p(this.impl.clone Node(e));var t=p(this.impl.cloneNode(!1));if(e)for(var n=this.firstChild;n;n=n.n extSibling)t.appendChild(n.cloneNode(!0));return t},contains:function(e){if(!e)r eturn!1;if(e===this)return!0;var t=e.parentNode;return t?this.contains(t):!1},co mpareDocumentPosition:function(e){return y.call(this.impl,h(e))}}),l(o,"ownerDoc ument"),d(f,o,document.createDocumentFragment()),delete o.prototype.querySelecto r,delete o.prototype.querySelectorAll,o.prototype=c(Object.create(a.prototype),o .prototype),e.wrappers.Node=o}(this.ShadowDOMPolyfill),function(e){"use strict"; function t(e,n){for(var r,i=e.firstElementChild;i;){if(i.matches(n))return i;if( r=t(i,n))return r;i=i.nextElementSibling}return null}function n(e,t,r){for(var i =e.firstElementChild;i;)i.matches(t)&&(r[r.length++]=i),n(i,t,r),i=i.nextElement Sibling;return r}var r={querySelector:function(e){return t(this,e)},querySelecto rAll:function(e){return n(this,e,new NodeList)}},i={getElementsByTagName:functio n(e){return this.querySelectorAll(e)},getElementsByClassName:function(e){return this.querySelectorAll("."+e)},getElementsByTagNameNS:function(e,t){if("*"===e)re turn this.getElementsByTagName(t);for(var n=new NodeList,r=this.getElementsByTag Name(t),i=0,o=0;r.length>i;i++)r[i].namespaceURI===e&&(n[o++]=r[i]);return n.len gth=o,n}};e.GetElementsByInterface=i,e.SelectorsInterface=r}(this.ShadowDOMPolyf ill),function(e){"use strict";function t(e){for(;e&&e.nodeType!==Node.ELEMENT_NO DE;)e=e.nextSibling;return e}function n(e){for(;e&&e.nodeType!==Node.ELEMENT_NOD E;)e=e.previousSibling;return e}var r=e.wrappers.NodeList,i={get firstElementChi ld(){return t(this.firstChild)},get lastElementChild(){return n(this.lastChild)} ,get childElementCount(){for(var e=0,t=this.firstElementChild;t;t=t.nextElementS ibling)e++;return e},get children(){for(var e=new r,t=0,n=this.firstElementChild ;n;n=n.nextElementSibling)e[t++]=n;return e.length=t,e}},o={get nextElementSibli ng(){return t(this.nextSibling)},get previousElementSibling(){return n(this.next Sibling)}};e.ChildNodeInterface=o,e.ParentNodeInterface=i}(this.ShadowDOMPolyfil l),function(e){"use strict";function t(e){r.call(this,e)}var n=e.ChildNodeInterf ace,r=e.wrappers.Node,i=e.mixin,o=e.registerWrapper,a=window.CharacterData;t.pro totype=Object.create(r.prototype),i(t.prototype,{get textContent(){return this.d ata},set textContent(e){this.data=e}}),i(t.prototype,n),o(a,t,document.createTex tNode("")),e.wrappers.CharacterData=t}(this.ShadowDOMPolyfill),function(e){"use strict";function t(e){i.call(this,e)}var n=e.ChildNodeInterface,r=e.GetElementsB yInterface,i=e.wrappers.Node,o=e.ParentNodeInterface,a=e.SelectorsInterface;e.ad dWrapNodeListMethod;var s=e.mixin,l=e.registerWrapper,u=e.wrappers,c=new SideTab le,d=window.Element,h=d.prototype.matches||d.prototype.mozMatchesSelector||d.pro totype.msMatchesSelector||d.prototype.webkitMatchesSelector;t.prototype=Object.c reate(i.prototype),s(t.prototype,{createShadowRoot:function(){var t=new u.Shadow Root(this);return c.set(this,t),e.getRendererForHost(this),this.invalidateShadow Renderer(!0),t},get shadowRoot(){return c.get(this)||null},setAttribute:function (e,t){this.impl.setAttribute(e,t),this.invalidateShadowRenderer()},matches:funct ion(e){return h.call(this.impl,e)}}),s(t.prototype,n),s(t.prototype,r),s(t.proto type,o),s(t.prototype,a),l(d,t),e.wrappers.Element=t}(this.ShadowDOMPolyfill),fu nction(e){"use strict";function t(e){switch(e){case"&":return"&amp;";case"<":ret urn"&lt;";case'"':return"&quot;"}}function n(e){return e.replace(v,t)}function r (e){switch(e.nodeType){case Node.ELEMENT_NODE:for(var t,r=e.tagName.toLowerCase( ),o="<"+r,a=e.attributes,s=0;t=a[s];s++)o+=" "+t.name+'="'+n(t.value)+'"';return o+=">",m[r]?o:o+i(e)+"</"+r+">";case Node.TEXT_NODE:return n(e.nodeValue);case Node.COMMENT_NODE:return"<!--"+n(e.nodeValue)+"-->";default:throw console.error( e),Error("not implemented")}}function i(e){for(var t="",n=e.firstChild;n;n=n.nex tSibling)t+=r(n);return t}function o(e,t,n){var r=n||"div";e.textContent="";var i=p(e.ownerDocument.createElement(r));i.innerHTML=t;for(var o;o=i.firstChild;)e. appendChild(f(o))}function a(e){u.call(this,e)}function s(t){c(a,t,function(){re turn e.renderAllPending(),this.impl[t]})}function l(t){Object.defineProperty(a.p rototype,t,{value:function(){return e.renderAllPending(),this.impl[t].apply(this .impl,arguments)},configurable:!0,enumerable:!0})}var u=e.wrappers.Element,c=e.d efineGetter,d=e.mixin,h=e.registerWrapper,p=e.unwrap,f=e.wrap,v=/&|<|"/g,m={area :!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,lin k:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},g=window.HTMLElement;a.prototyp e=Object.create(u.prototype),d(a.prototype,{get innerHTML(){return i(this)},set innerHTML(e){o(this,e,this.tagName)},get outerHTML(){return r(this)},set outerHT ML(e){if(this.invalidateShadowRenderer())throw Error("not implemented");this.imp l.outerHTML=e}}),["clientHeight","clientLeft","clientTop","clientWidth","offsetH eight","offsetLeft","offsetTop","offsetWidth","scrollHeight","scrollLeft","scrol lTop","scrollWidth"].forEach(s),["getBoundingClientRect","getClientRects","scrol lIntoView"].forEach(l),h(g,a,document.createElement("b")),e.wrappers.HTMLElement =a,e.getInnerHTML=i,e.setInnerHTML=o}(this.ShadowDOMPolyfill),function(e){"use s trict";function t(e){n.call(this,e)}var n=e.wrappers.HTMLElement,r=e.mixin,i=e.r egisterWrapper,o=window.HTMLContentElement;t.prototype=Object.create(n.prototype ),r(t.prototype,{get select(){return this.getAttribute("select")},set select(e){ this.setAttribute("select",e)},setAttribute:function(e,t){n.prototype.setAttribu te.call(this,e,t),"select"===(e+"").toLowerCase()&&this.invalidateShadowRenderer (!0)}}),o&&i(o,t),e.wrappers.HTMLContentElement=t}(this.ShadowDOMPolyfill),funct ion(e){"use strict";function t(e){n.call(this,e),this.olderShadowRoot_=null}var n=e.wrappers.HTMLElement,r=e.mixin,i=e.registerWrapper,o=window.HTMLShadowElemen t;t.prototype=Object.create(n.prototype),r(t.prototype,{get olderShadowRoot(){re turn this.olderShadowRoot_},invalidateShadowRenderer:function(){n.prototype.inva lidateShadowRenderer.call(this,!0)}}),o&&i(o,t),e.wrappers.HTMLShadowElement=t}( this.ShadowDOMPolyfill),function(e){"use strict";function t(e){if(!e.defaultView )return e;var t=d.get(e);if(!t){for(t=e.implementation.createHTMLDocument("");t. lastChild;)t.removeChild(t.lastChild);d.set(e,t)}return t}function n(e){for(var n,r=t(e.ownerDocument),i=r.createDocumentFragment();n=e.firstChild;)i.appendChil d(n);return i}function r(e){i.call(this,e)}var i=e.wrappers.HTMLElement,o=e.getI nnerHTML,a=e.mixin,s=e.registerWrapper,l=e.setInnerHTML,u=e.wrap,c=new SideTable ,d=new SideTable,h=window.HTMLTemplateElement;r.prototype=Object.create(i.protot ype),a(r.prototype,{get content(){if(h)return u(this.impl.content);var e=c.get(t his);return e||(e=n(this),c.set(this,e)),e},get innerHTML(){return o(this.conten t)},set innerHTML(e){l(this.content,e),this.invalidateShadowRenderer()}}),h&&s(h ,r),e.wrappers.HTMLTemplateElement=r}(this.ShadowDOMPolyfill),function(e){"use s trict";function t(e){switch(e.localName){case"content":return new n(e);case"shad ow":return new i(e);case"template":return new o(e)}r.call(this,e)}var n=e.wrappe rs.HTMLContentElement,r=e.wrappers.HTMLElement,i=e.wrappers.HTMLShadowElement,o= e.wrappers.HTMLTemplateElement;e.mixin;var a=e.registerWrapper,s=window.HTMLUnkn ownElement;t.prototype=Object.create(r.prototype),a(s,t),e.wrappers.HTMLUnknownE lement=t}(this.ShadowDOMPolyfill),function(e){"use strict";var t=e.GetElementsBy Interface,n=e.ParentNodeInterface,r=e.SelectorsInterface,i=e.mixin,o=e.registerO bject,a=o(document.createDocumentFragment());i(a.prototype,n),i(a.prototype,r),i (a.prototype,t);var s=o(document.createTextNode("")),l=o(document.createComment( ""));e.wrappers.Comment=l,e.wrappers.DocumentFragment=a,e.wrappers.Text=s}(this. ShadowDOMPolyfill),function(e){"use strict";function t(t){var r=l(t.impl.ownerDo cument.createDocumentFragment());n.call(this,r),a(r,this);var i=t.shadowRoot;e.n extOlderShadowTreeTable.set(this,i),u.set(this,t)}var n=e.wrappers.DocumentFragm ent,r=e.elementFromPoint,i=e.getInnerHTML,o=e.mixin,a=e.rewrap,s=e.setInnerHTML, l=e.unwrap,u=new SideTable;t.prototype=Object.create(n.prototype),o(t.prototype, {get innerHTML(){return i(this)},set innerHTML(e){s(this,e),this.invalidateShado wRenderer()},invalidateShadowRenderer:function(){return u.get(this).invalidateSh adowRenderer()},elementFromPoint:function(e,t){return r(this,this.ownerDocument, e,t)},getElementById:function(e){return this.querySelector("#"+e)}}),e.wrappers. ShadowRoot=t,e.getHostForShadowRoot=function(e){return u.get(e)}}(this.ShadowDOM Polyfill),function(e){"use strict";function t(e){e.previousSibling_=e.previousSi bling,e.nextSibling_=e.nextSibling,e.parentNode_=e.parentNode}function n(e){e.fi rstChild_=e.firstChild,e.lastChild_=e.lastChild}function r(e){D(e instanceof N); for(var r=e.firstChild;r;r=r.nextSibling)t(r);n(e)}function i(e){var t=x(e);r(e) ,t.textContent=""}function o(e,n){var i=x(e),o=x(n);o.nodeType===N.DOCUMENT_FRAG MENT_NODE?r(n):(s(n),t(n)),e.lastChild_=e.lastChild,e.lastChild===e.firstChild&& (e.firstChild_=e.firstChild);var a=H(i.lastChild);a&&(a.nextSibling_=a.nextSibli ng),i.appendChild(o)}function a(e,n){var r=x(e),i=x(n);t(n),n.previousSibling&&( n.previousSibling.nextSibling_=n),n.nextSibling&&(n.nextSibling.previousSibling_ =n),e.lastChild===n&&(e.lastChild_=n),e.firstChild===n&&(e.firstChild_=n),r.remo veChild(i)}function s(e){var t=x(e),n=t.parentNode;n&&a(H(n),e)}function l(e,t){ c(t).push(e),I.set(e,t);var n=R.get(e);n||R.set(e,n=[]),n.push(t)}function u(e){ k.set(e,[])}function c(e){return k.get(e)}function d(e){for(var t=[],n=0,r=e.fir stChild;r;r=r.nextSibling)t[n++]=r;return t}function h(e,t,n){for(var r=d(e),i=0 ;r.length>i;i++){var o=r[i];if(t(o)){if(n(o)===!1)return}else h(o,t,n)}}function p(e,t){var n=!1;return h(e,w,function(e){u(e);for(var r=0;t.length>r;r++){var i =t[r];void 0!==i&&v(i,e)&&(l(i,e),t[r]=void 0,n=!0)}}),n?t.filter(function(e){re turn void 0!==e}):t}function f(e,t){for(var n=0;t.length>n;n++)if(t[n]in e)retur n t[n]}function v(e,t){var n=t.getAttribute("select");if(!n)return!0;if(n=n.trim (),!n)return!0;if(e.nodeType!==N.ELEMENT_NODE)return!1;if(!B.test(n))return!1;if (":"===n[0]&&!q.test(n))return!1;try{return e.matches(n)}catch(r){return!1}}func tion m(){L=null,W.forEach(function(e){e.render()}),W=[]}function g(e){this.host= e,this.dirty=!1,this.associateNode(e)}function b(e){var t=F.get(e);return t||(t= new g(e),F.set(e,t)),t}function y(e){return"content"===e.localName}function w(e) {return"content"===e.localName}function E(e){return"shadow"===e.localName}functi on T(e){return"shadow"===e.localName}function M(e){return!!e.shadowRoot}function S(e){return j.get(e)}function P(e){for(var t=[],n=e.shadowRoot;n;n=j.get(n))t.p ush(n);return t}function O(e,t){I.set(e,t)}function C(e){new g(e).render()}var L ,_=e.wrappers.HTMLContentElement,N=e.wrappers.Node,D=e.assert,A=e.mixin,x=e.unwr ap,H=e.wrap,k=new SideTable,R=new SideTable,I=new SideTable,j=new SideTable,F=ne w SideTable,U=new SideTable,B=/^[*.:#[a-zA-Z_|]/,q=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-typ e","last-of-type","only-of-type"].join("|")+")"),Y=f(window,["requestAnimationFr ame","mozRequestAnimationFrame","webkitRequestAnimationFrame","setTimeout"]),W=[ ];g.prototype={render:function(){if(this.dirty){var e=this.host;this.treeComposi tion();var t=e.shadowRoot;if(t){this.removeAllChildNodes(this.host);var n=d(t);n .forEach(function(n){this.renderNode(e,t,n,!1)},this),this.dirty=!1}}},invalidat e:function(){if(!this.dirty){if(this.dirty=!0,W.push(this),L)return;L=window[Y]( m,0)}},renderNode:function(e,t,n,r){if(M(n)){this.appendChild(e,n);var i=b(n);i. dirty=!0,i.render()}else y(n)?this.renderInsertionPoint(e,t,n,r):E(n)?this.rende rShadowInsertionPoint(e,t,n):this.renderAsAnyDomTree(e,t,n,r)},renderAsAnyDomTre e:function(e,t,n,r){if(this.appendChild(e,n),M(n))C(n);else{var i=n,o=d(i);o.for Each(function(e){this.renderNode(i,t,e,r)},this)}},renderInsertionPoint:function (e,t,n,r){var i=c(n);i.length?(this.removeAllChildNodes(n),i.forEach(function(n) {y(n)&&r?this.renderInsertionPoint(e,t,n,r):this.renderAsAnyDomTree(e,t,n,r)},th is)):this.renderFallbackContent(e,n),this.remove(n)},renderShadowInsertionPoint: function(e,t,n){var r=S(t);if(r){I.set(r,n),n.olderShadowRoot_=r,this.remove(n); var i=d(r);i.forEach(function(t){this.renderNode(e,r,t,!0)},this)}else this.rend erFallbackContent(e,n)},renderFallbackContent:function(e,t){var n=d(t);n.forEach (function(t){this.appendChild(e,t)},this)},treeComposition:function(){var e=this .host,t=e.shadowRoot,n=[],r=d(e);r.forEach(function(e){if(y(e)){var t=c(e);t&&t. length||(t=d(e)),n.push.apply(n,t)}else n.push(e)});for(var i,o;t;){if(i=void 0, h(t,T,function(e){return i=e,!1}),o=i,n=p(t,n),o){var a=S(t);if(a){t=a,O(t,o);co ntinue}break}break}},appendChild:function(e,t){o(e,t),this.associateNode(t)},rem ove:function(e){s(e),this.associateNode(e)},removeAllChildNodes:function(e){i(e) },associateNode:function(e){U.set(e,this)}},N.prototype.invalidateShadowRenderer =function(e){var t=U.get(this);if(!t)return!1;var n;return(e||this.shadowRoot||( n=this.parentNode)&&(n.shadowRoot||n instanceof ShadowRoot))&&t.invalidate(),!0} ,_.prototype.getDistributedNodes=function(){return m(),c(this)},A(N.prototype,{g et insertionParent(){return I.get(this)||null}}),e.eventParentsTable=R,e.getRend ererForHost=b,e.getShadowTrees=P,e.nextOlderShadowTreeTable=j,e.renderAllPending =m,e.visual={removeAllChildNodes:i,appendChild:o,removeChild:a}}(this.ShadowDOMP olyfill),function(e){"use strict";function t(e){s.call(this,e)}function n(e){var n=document[e];t.prototype[e]=function(){return m(n.apply(this.impl,arguments))} }function r(e){this.impl=e}function i(e,t){var n=document.implementation[t];e.pr ototype[t]=function(){return m(n.apply(this.impl,arguments))}}function o(e,t){va r n=document.implementation[t];e.prototype[t]=function(){return n.apply(this.imp l,arguments)}}var a=e.GetElementsByInterface,s=e.wrappers.Node,l=e.ParentNodeInt erface,u=e.SelectorsInterface,c=e.defineWrapGetter,d=e.elementFromPoint,h=e.forw ardMethodsToWrapper,p=e.mixin,f=e.registerWrapper,v=e.unwrap,m=e.wrap,g=e.wrapEv entTargetMethods;e.wrapNodeList;var b=new SideTable;t.prototype=Object.create(s. prototype),c(t,"documentElement"),c(t,"body"),c(t,"head"),["getElementById","cre ateElement","createElementNS","createTextNode","createDocumentFragment","createE vent","createEventNS"].forEach(n);var y=document.adoptNode,w=document.write;p(t. prototype,{adoptNode:function(e){return y.call(this.impl,v(e)),e},elementFromPoi nt:function(e,t){return d(this,this,e,t)},write:function(e){for(var t=this.query SelectorAll("*"),n=t[t.length-1];n.nextSibling;)n=n.nextSibling;var r=n.parentNo de;r.lastChild_=void 0,n.nextSibling_=void 0,w.call(this.impl,e)}}),h([window.HT MLBodyElement,window.HTMLDocument||window.Document,window.HTMLHeadElement],["app endChild","compareDocumentPosition","getElementsByClassName","getElementsByTagNa me","getElementsByTagNameNS","insertBefore","querySelector","querySelectorAll"," removeChild","replaceChild"]),h([window.HTMLDocument||window.Document],["adoptNo de","createDocumentFragment","createElement","createElementNS","createEvent","cr eateEventNS","createTextNode","elementFromPoint","getElementById","write"]),p(t. prototype,a),p(t.prototype,l),p(t.prototype,u),p(t.prototype,{get implementation (){var e=b.get(this);return e?e:(e=new r(v(this).implementation),b.set(this,e),e )}}),f(window.Document,t,document.implementation.createHTMLDocument("")),window. HTMLDocument&&f(window.HTMLDocument,t),g([window.HTMLBodyElement,window.HTMLDocu ment||window.Document,window.HTMLHeadElement]),i(r,"createDocumentType"),i(r,"cr eateDocument"),i(r,"createHTMLDocument"),o(r,"hasFeature"),f(window.DOMImplement ation,r),h([window.DOMImplementation],["createDocumentType","createDocument","cr eateHTMLDocument","hasFeature"]),e.wrappers.Document=t,e.wrappers.DOMImplementat ion=r}(this.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(thi s,e)}var n=e.wrappers.EventTarget,r=e.mixin,i=e.registerWrapper,o=e.unwrap,a=e.u nwrapIfNeeded,s=e.wrap,l=window.Window;t.prototype=Object.create(n.prototype);va r u=window.getComputedStyle;l.prototype.getComputedStyle=function(e,t){return u. call(this||window,a(e),t)},["addEventListener","removeEventListener","dispatchEv ent"].forEach(function(e){l.prototype[e]=function(){var t=s(this||window);return t[e].apply(t,arguments)}}),r(t.prototype,{getComputedStyle:function(e,t){return u.call(o(this),a(e),t)}}),i(l,t),e.wrappers.Window=t}(this.ShadowDOMPolyfill),f unction(e){"use strict";function t(e){this.impl=e}function n(e){return new t(e)} function r(e){return e.map(n)}function i(e){var t=this;this.impl=new c(function( n){e.call(t,r(n),t)})}var o=e.defineGetter,a=e.defineWrapGetter,s=e.registerWrap per,l=e.unwrapIfNeeded,u=e.wrapNodeList;e.wrappers;var c=window.MutationObserver ||window.WebKitMutationObserver;if(c){var d=window.MutationRecord;t.prototype={g et addedNodes(){return u(this.impl.addedNodes)},get removedNodes(){return u(this .impl.removedNodes)
2 }},["target","previousSibling","nextSibling"].forEach(function(e){a(t,e)}),["typ e","attributeName","attributeNamespace","oldValue"].forEach(function(e){o(t,e,fu nction(){return this.impl[e]})}),d&&s(d,t),window.Node,i.prototype={observe:func tion(e,t){this.impl.observe(l(e),t)},disconnect:function(){this.impl.disconnect( )},takeRecords:function(){return r(this.impl.takeRecords())}},e.wrappers.Mutatio nObserver=i,e.wrappers.MutationRecord=t}}(this.ShadowDOMPolyfill),function(e){"u se strict";function t(e){var t=n[e],r=window[t];if(r){var i=document.createEleme nt(e),o=i.constructor;window[t]=o}}e.isWrapperFor;var n={a:"HTMLAnchorElement",a pplet:"HTMLAppletElement",area:"HTMLAreaElement",audio:"HTMLAudioElement",br:"HT MLBRElement",base:"HTMLBaseElement",body:"HTMLBodyElement",button:"HTMLButtonEle ment",canvas:"HTMLCanvasElement",dl:"HTMLDListElement",datalist:"HTMLDataListEle ment",dir:"HTMLDirectoryElement",div:"HTMLDivElement",embed:"HTMLEmbedElement",f ieldset:"HTMLFieldSetElement",font:"HTMLFontElement",form:"HTMLFormElement",fram e:"HTMLFrameElement",frameset:"HTMLFrameSetElement",hr:"HTMLHRElement",head:"HTM LHeadElement",h1:"HTMLHeadingElement",html:"HTMLHtmlElement",iframe:"HTMLIFrameE lement",input:"HTMLInputElement",li:"HTMLLIElement",label:"HTMLLabelElement",leg end:"HTMLLegendElement",link:"HTMLLinkElement",map:"HTMLMapElement",menu:"HTMLMe nuElement",menuitem:"HTMLMenuItemElement",meta:"HTMLMetaElement",meter:"HTMLMete rElement",del:"HTMLModElement",ol:"HTMLOListElement",object:"HTMLObjectElement", optgroup:"HTMLOptGroupElement",option:"HTMLOptionElement",output:"HTMLOutputElem ent",p:"HTMLParagraphElement",param:"HTMLParamElement",pre:"HTMLPreElement",prog ress:"HTMLProgressElement",q:"HTMLQuoteElement",script:"HTMLScriptElement",selec t:"HTMLSelectElement",source:"HTMLSourceElement",span:"HTMLSpanElement",style:"H TMLStyleElement",caption:"HTMLTableCaptionElement",col:"HTMLTableColElement",tab le:"HTMLTableElement",tr:"HTMLTableRowElement",thead:"HTMLTableSectionElement",t body:"HTMLTableSectionElement",textarea:"HTMLTextAreaElement",title:"HTMLTitleEl ement",ul:"HTMLUListElement",video:"HTMLVideoElement"};Object.keys(n).forEach(t) ,Object.getOwnPropertyNames(e.wrappers).forEach(function(t){window[t]=e.wrappers [t]}),e.knownElements=n}(this.ShadowDOMPolyfill),function(){window.wrap=function (e){return e.impl?e:ShadowDOMPolyfill.wrap(e)},window.unwrap=function(e){return e.impl?ShadowDOMPolyfill.unwrap(e):e};var e=window.getComputedStyle;window.getCo mputedStyle=function(t,n){return e.call(window,wrap(t),n)},Object.defineProperti es(HTMLElement.prototype,{webkitShadowRoot:{get:function(){return this.shadowRoo t}}}),HTMLElement.prototype.webkitCreateShadowRoot=HTMLElement.prototype.createS hadowRoot}()}else{var SideTable;"undefined"!=typeof WeakMap&&0>navigator.userAge nt.indexOf("Firefox/")?SideTable=WeakMap:function(){var e=Object.defineProperty, t=Object.hasOwnProperty,n=(new Date).getTime()%1e9;SideTable=function(){this.nam e="__st"+(1e9*Math.random()>>>0)+(n++ +"__")},SideTable.prototype={set:function( t,n){e(t,this.name,{value:n,writable:!0})},get:function(e){return t.call(e,this. name)?e[this.name]:void 0},"delete":function(e){this.set(e,void 0)}}}(),function (){window.templateContent=window.templateContent||function(e){return e.content}, window.wrap=window.unwrap=function(e){return e},window.createShadowRoot=function (e){return e.webkitCreateShadowRoot()},window.templateContent=function(e){if(win dow.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.boot strap(e),!e.content&&!e._content){for(var t=document.createDocumentFragment();e. firstChild;)t.appendChild(e.firstChild);e._content=t}return e.content||e._conten t}}()}if(function(e){Function.prototype.bind||(Function.prototype.bind=function( e){var t=this,n=Array.prototype.slice.call(arguments,1);return function(){var r= n.slice();return r.push.apply(r,arguments),t.apply(e,r)}}),e.mixin=window.mixin} (window.Platform),function(e){"use strict";function t(e,t,n){var r="string"==typ eof e?document.createElement(e):e.cloneNode(!0);if(r.innerHTML=t,n)for(var i in n)r.setAttribute(i,n[i]);return r}var n=DOMTokenList.prototype.add,r=DOMTokenLis t.prototype.remove;if(DOMTokenList.prototype.add=function(){for(var e=0;argument s.length>e;e++)n.call(this,arguments[e])},DOMTokenList.prototype.remove=function (){for(var e=0;arguments.length>e;e++)r.call(this,arguments[e])},DOMTokenList.pr ototype.toggle=function(e,t){1==arguments.length&&(t=!this.contains(e)),t?this.a dd(e):this.remove(e)},DOMTokenList.prototype.switch=function(e,t){e&&this.remove (e),t&&this.add(t)},NodeList.prototype.forEach=function(e,t){Array.prototype.sli ce.call(this).forEach(e,t)},HTMLCollection.prototype.forEach=function(e,t){Array .prototype.slice.call(this).forEach(e,t)},!window.performance){var i=Date.now(); window.performance={now:function(){return Date.now()-i}}}window.requestAnimation Frame||(window.requestAnimationFrame=function(){var e=window.webkitRequestAnimat ionFrame||window.mozRequestAnimationFrame;return e?function(t){return e(function (){t(performance.now())})}:function(e){return window.setTimeout(e,1e3/60)}}()),w indow.cancelAnimationFrame||(window.cancelAnimationFrame=function(){return windo w.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearT imeout(e)}}()),e.createDOM=t}(window.Platform),window.templateContent=window.tem plateContent||function(e){return e.content},function(e){e=e||(window.Inspector={ });var t;window.sinspect=function(e,r){t||(t=window.open("","ShadowDOM Inspector ",null,!0),t.document.write(n),t.api={shadowize:shadowize}),o(e||wrap(document.b ody),r)};var n=["<!DOCTYPE html>","<html>"," <head>"," <title>ShadowDOM Insp ector</title>"," <style>"," body {"," }"," pre {",' fon t: 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;"," paddi ng: 4px 6px;"," border-radius: 4px;"," margin-right: 4px;"," }"," </style>"," </head>"," <body>",' <ul id="crumbs">'," </ul>",' <div id="tree"></div>'," </body>","</html>"].join("\n"),r=[],i=function(){va r e=t.document,n=e.querySelector("#crumbs");n.textContent="";for(var i,a=0;i=r[a ];a++){var s=e.createElement("a");s.href="#",s.textContent=i.localName,s.idx=a,s .onclick=function(e){for(var t;r.length>this.idx;)t=r.pop();o(t.shadow||t,t),e.p reventDefault()},n.appendChild(e.createElement("li")).appendChild(s)}},o=functio n(e,n){var o=t.document;c=[];var a=n||e;r.push(a),i(),o.body.querySelector("#tre e").innerHTML="<pre>"+u(e,e.childNodes)+"</pre>"},a=Array.prototype.forEach.call .bind(Array.prototype.forEach),s={STYLE:1,SCRIPT:1,"#comment":1,TEMPLATE:1},l=fu nction(e){return s[e.nodeName]},u=function(e,t,n){if(l(e))return"";var r=n||"";i f(e.localName||11==e.nodeType){var i=e.localName||"shadow-root",o=r+d(e);"conten t"==i&&(t=e.getDistributedNodes()),o+="<br/>";var s=r+"&nbsp;&nbsp;";a(t,functio n(e){o+=u(e,e.childNodes,s)}),o+=r,{br:1}[i]||(o+="<tag>&lt;/"+i+"&gt;</tag>",o+ ="<br/>")}else{var c=e.textContent.trim();o=c?r+'"'+c+'"'+"<br/>":""}return o},c =[],d=function(e){var t="<tag>&lt;",n=e.localName||"shadow-root";return e.webkit ShadowRoot||e.shadowRoot?(t+=' <button idx="'+c.length+'" onclick="api.shadowize .call(this)">'+n+"</button>",c.push(e)):t+=n||"shadow-root",e.attributes&&a(e.at tributes,function(e){t+=" "+e.name+(e.value?'="'+e.value+'"':"")}),t+="&gt;</tag >"};shadowize=function(){var e=Number(this.attributes.idx.value),t=c[e];t?o(t.we bkitShadowRoot||t.shadowRoot,t):(console.log("bad shadowize node"),console.dir(t his))},e.output=u}(window.Inspector),function(e){"use strict";function t(e){retu rn+e===e>>>0}function n(e){return+e}function r(e){return e===Object(e)}function i(e,t){return e===t?0!==e||1/e===1/t:R(e)&&R(t)?!0:e!==e&&t!==t}function o(e){re turn"string"!=typeof e?!1:(e=e.replace(/\s/g,""),""==e?!0:"."==e[0]?!1:U.test(e) )}function a(e){return""==e.trim()?this:t(e)?(this.push(e+""),this):(e.split(/\. /).filter(function(e){return e}).forEach(function(e){this.push(e)},this),void 0) }function s(e){for(var t=0;B>t&&e.check();)e.report(),t++}function l(e){for(var t in e)return!1;return!0}function u(e){return l(e.added)&&l(e.removed)&&l(e.chan ged)}function c(e,t){var n={},r={},i={};for(var o in t){var a=e[o];(void 0===a|| a!==t[o])&&(o in e?a!==t[o]&&(i[o]=a):r[o]=void 0)}for(var o in e)o in t||(n[o]= e[o]);return Array.isArray(e)&&e.length!==t.length&&(i.length=e.length),{added:n ,removed:r,changed:i}}function d(e,t){var n=t||(Array.isArray(e)?[]:{});for(var r in e)n[r]=e[r];return Array.isArray(e)&&(n.length=e.length),n}function h(e){th is.callback=e,this.reporting=!0,A&&(this.boundInternalCallback=this.internalCall back.bind(this)),this.valid=!0,p(this),this.connect(),this.sync(!0)}function p(e ){Y&&q.push(e)}function f(e){if(Y)for(var t=0;q.length>t;t++)if(q[t]===e){q[t]=v oid 0;break}}function v(e,t){this.object=e,h.call(this,t)}function m(e,t){if(!Ar ray.isArray(e))throw Error("Provided object is not an Array");this.object=e,h.ca ll(this,t)}function g(e,t){var n;return t.walkPropertiesFrom(e,function(e,r,i){i ===t.length&&(n=r)}),n}function b(e,t,n){var i=!1;return t.walkPropertiesFrom(e, function(e,o,a){r(o)&&a==t.length-1&&(i=!0,o[e]=n)}),i}function y(e){var t="",n= "obj",r=e.length;t+="if (obj";for(var i=0;r-1>i;i++){var o='["'+e[i]+'"]';n+=o,t +=" && "+n}return t+=") ",n+='["'+e[r-1]+'"]',t+="return "+n+"; else return unde fined;",Function("obj",t)}function w(e,t){var n=""+t;return V[n]||(V[n]=y(t)),V[ n](e)}function E(t,n,i,o,a){var s=void 0;return n.walkPropertiesFrom(t,function( t,l,u){if(u===n.length)return s=l,void 0;var c=i[u];if(!c||l!==c[0]){if(c)for(va r d=0;c.length>d;d++){var h=c[d],p=o.get(h);1==p?(o.delete(h),e.unobserveCount++ ,Object.unobserve(h,a)):o.set(h,p-1)}if(c=l,r(c)){for(var c=[];r(l);){c.push(l); var p=o.get(l);p?o.set(l,p+1):(o.set(l,1),e.observeCount++,Object.observe(l,a)), l=Object.getPrototypeOf(l)}i[u]=c}}},this),s}function T(e,t,n){if(this.value=voi d 0,o(t)){var i=new a(t);return i.length?(r(e)&&(this.object=e,this.path=i,A?(th is.observed=Array(i.length),this.observedMap=new Map,this.getPathValue=E):this.g etPathValue=x?y(this.path):g,h.call(this,n)),void 0):(this.value=e,void 0)}}func tion M(e,t){if("function"==typeof Object.observe){var n=Object.getNotifier(e);re turn function(r,i){var o={object:e,type:r,name:t};2===arguments.length&&(o.oldVa lue=i),n.notify(o)}}}function S(e,t,n){for(var r={},i={},o=0;t.length>o;o++){var a=t[o];G[a.type]?(a.name in n||(n[a.name]=a.oldValue),"updated"!=a.type&&("new" !=a.type?a.name in r?(delete r[a.name],delete n[a.name]):i[a.name]=!0:a.name in i?delete i[a.name]:r[a.name]=!0)):(console.error("Unknown changeRecord type: "+a .type),console.error(a))}for(var s in r)r[s]=e[s];for(var s in i)i[s]=void 0;var l={};for(var s in n)if(!(s in r||s in i)){var u=e[s];n[s]!==u&&(l[s]=u)}return{ added:r,removed:i,changed:l}}function P(e,t,n,r,i,o){for(var a=o-i+1,s=n-t+1,l=A rray(a),u=0;a>u;u++)l[u]=Array(s),l[u][0]=u;for(var c=0;s>c;c++)l[0][c]=c;for(va r u=1;a>u;u++)for(var c=1;s>c;c++)if(r[i+u-1]===e[t+c-1])l[u][c]=l[u-1][c-1];els e{var d=l[u-1][c]+1,h=l[u][c-1]+1;l[u][c]=h>d?d:h}return l}function O(e){for(var t=e.length-1,n=e[0].length-1,r=e[t][n],i=[];t>0||n>0;)if(0!=t)if(0!=n){var o,a= e[t-1][n-1],s=e[t-1][n],l=e[t][n-1];o=l>s?a>s?s:a:a>l?l:a,o==a?(a==r?i.push(X):( i.push(z),r=a),t--,n--):o==s?(i.push(Q),t--,r=s):(i.push(K),n--,r=l)}else i.push (Q),t--;else i.push(K),n--;return i.reverse(),i}function C(e,t,n){for(var r=0;n> r;r++)if(e[r]!==t[r])return r;return n}function L(e,t,n){for(var r=e.length,i=t. length,o=0;n>o&&e[--r]===t[--i];)o++;return o}function _(e,t,n,r,i,o){function a (e,t,n){return{index:e,removed:t,addedCount:n}}var s=0,l=0,u=Math.min(n-t,o-i);i f(0==t&&0==i&&(s=C(e,r,u)),n==e.length&&o==r.length&&(l=L(e,r,u-s)),t+=s,i+=s,n- =l,o-=l,0==n-t&&0==o-i)return[];if(t==n){for(var c=a(t,[],0);o>i;)c.removed.push (r[i++]);return[c]}if(i==o)return[a(t,[],n-t)];for(var d=O(P(e,t,n,r,i,o)),c=voi d 0,h=[],p=t,f=i,v=0;d.length>v;v++)switch(d[v]){case X:c&&(h.push(c),c=void 0), p++,f++;break;case z:c||(c=a(p,[],0)),c.addedCount++,p++,c.removed.push(r[f]),f+ +;break;case K:c||(c=a(p,[],0)),c.addedCount++,p++;break;case Q:c||(c=a(p,[],0)) ,c.removed.push(r[f]),f++}return c&&h.push(c),h}function N(e,t,r){function i(t,r ){Object.keys(t).forEach(function(t){var i=n(t);if(!(I(i)||0>i||i>=a)){var l=r[i ];e.length>i?s[i]=l:o.removed[i-e.length]=r[i]}})}var o,a="length"in r?n(r.lengt h):e.length;e.length>a?o={index:a,removed:[],addedCount:e.length-a}:a>e.length&& (o={index:e.length,removed:Array(a-e.length),addedCount:0});var s=[];i(t.added,r ),i(t.removed,r),i(t.changed,r);var l,u=[];for(var c in s){if(c=n(c),l){if(l.ind ex+l.removed.length==c){l.removed.push(s[c]);continue}l.addedCount=Math.min(e.le ngth,l.index+l.removed.length)-l.index,u.push(l),l=void 0}l={index:c,removed:[s[ c]]}}return l?(l.addedCount=Math.min(e.length,l.index+l.removed.length)-l.index, o?l.index+l.removed.length==o.index?(l.addedCount=l.addedCount+o.addedCount,l.re moved=l.removed.concat(o.removed),u.push(l)):(u.push(l),u.push(o)):u.push(l)):o& &u.push(o),u}function D(e,t,n){var r=[];return N(e,t,n).forEach(function(t){r=r. concat(_(e,t.index,t.index+t.addedCount,t.removed,0,t.removed.length))}),r}var A ="function"==typeof Object.observe,x=!1;try{var H=Function("","return true;");x= H()}catch(k){}var R=e.Number.isNaN||function I(t){return"number"==typeof t&&e.is NaN(t)},j="__proto__"in{}?function(e){return e}:function(e){var t=e.__proto__;if (!t)return e;var n=Object.create(t);return Object.getOwnPropertyNames(e).forEach (function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}),n },F="[$a-z0-9_]+[$a-z0-9_\\d]*",U=RegExp("^(?:#?"+F+")?"+"(?:"+"(?:\\."+F+")"+") *"+"$","i");a.prototype=j({__proto__:[],toString:function(){return this.join("." )},walkPropertiesFrom:function(e,t,n){for(var r,i=0;this.length+1>i;i++)r=this[i ],t.call(n,r,e,i),e=i==this.length||null===e||void 0===e?void 0:e[r]}});var B=1e 3;h.prototype={valid:!1,internalCallback:function(e){this.valid&&this.reporting& &this.check(e)&&(this.report(),this.testingResults&&(this.testingResults.anyChan ged=!0))},close:function(){this.valid&&(this.disconnect(),this.valid=!1,f(this)) },deliver:function(e){this.valid&&(A?(this.testingResults=e,Object.deliverChange Records(this.boundInternalCallback),this.testingResults=void 0):s(this))},report :function(){if(this.reporting){this.sync(!1);try{this.callback.apply(void 0,this .reportArgs)}catch(e){h._errorThrownDuringCallback=!0,console.error("Exception c aught during observer callback: "+e)}this.reportArgs=void 0}},reset:function(){t his.valid&&(A&&(this.reporting=!1,Object.deliverChangeRecords(this.boundInternal Callback),this.reporting=!0),this.sync(!0))}};var q,Y=!A||e.forceCollectObserver s;Y&&(q=[]);var W=!1;e.Platform=e.Platform||{},e.Platform.performMicrotaskCheckp oint=function(){if(Y&&!W){W=!0;var e=0,t={};do{e++;var n=q;q=[],t.anyChanged=!1; for(var r=0;n.length>r;r++){var i=n[r];i&&i.valid&&(A?i.deliver(t):i.check()&&(t .anyChanged=!0,i.report()),q.push(i))}}while(B>e&&t.anyChanged);W=!1}},Y&&(e.Pla tform.clearObservers=function(){q=[]}),v.prototype=j({__proto__:h.prototype,conn ect:function(){A&&Object.observe(this.object,this.boundInternalCallback)},sync:f unction(){A||(this.oldObject=d(this.object))},check:function(e){var t,n;if(A){if (!e)return!1;n={},t=S(this.object,e,n)}else n=this.oldObject,t=c(this.object,thi s.oldObject);return u(t)?!1:(this.reportArgs=[t.added||{},t.removed||{},t.change d||{}],this.reportArgs.push(function(e){return n[e]}),!0)},disconnect:function() {A?this.object&&Object.unobserve(this.object,this.boundInternalCallback):this.ol dObject=void 0,this.object=void 0}}),m.prototype=j({__proto__:v.prototype,sync:f unction(){A||(this.oldObject=this.object.slice())},check:function(e){var t;if(A) {if(!e)return!1;var n={},r=S(this.object,e,n);t=D(this.object,r,n)}else t=_(this .object,0,this.object.length,this.oldObject,0,this.oldObject.length);return t&&t .length?(this.reportArgs=[t],!0):!1}}),m.applySplices=function(e,t,n){n.forEach( function(n){for(var r=[n.index,n.removed.length],i=n.index;n.index+n.addedCount> i;)r.push(t[i]),i++;Array.prototype.splice.apply(e,r)})};var V={};T.prototype=j( {__proto__:h.prototype,connect:function(){},disconnect:function(){this.object=vo id 0,this.value=void 0,this.sync(!0)},check:function(){return this.value=this.ge tPathValue(this.object,this.path,this.observed,this.observedMap,this.boundIntern alCallback),i(this.value,this.oldValue)?!1:(this.reportArgs=[this.value,this.old Value],!0)},sync:function(e){e&&(this.value=this.getPathValue(this.object,this.p ath,this.observed,this.observedMap,this.boundInternalCallback)),this.oldValue=th is.value}}),T.getValueAtPath=function(e,t){if(!o(t))return void 0;var n=new a(t) ;return n.length?r(e)?x?w(e,n):g(e,n):void 0:e},T.setValueAtPath=function(e,t,n) {if(o(t)){var i=new a(t);i.length&&r(e)&&b(e,i,n)}};var G={"new":!0,updated:!0,d eleted:!0};T.defineProperty=function(e,t,n){var r=M(e,t),i=new T(n.object,n.path ,function(e,t){r&&r("updated",t)});return Object.defineProperty(e,t,{get:functio n(){return i.deliver(),i.value},set:function(e){T.setValueAtPath(n.object,n.path ,e),i.deliver()},configurable:!0}),{close:function(){r&&i.deliver(),i.close(),de lete e[t]}}};var X=0,z=1,K=2,Q=3;e.Observer=h,e.ArrayObserver=m,e.ObjectObserver =v,e.PathObserver=T}(this),function(e){"use strict";function t(e){if(!e)throw Er ror("Assertion failed")}function n(e){return e.ownerDocument.contains(e)}functio n r(e,t,n){console.error("Unhandled binding to Node: ",this,e,t,n)}function i(){ }function o(){}function a(e,t,n){this.model=e,this.path=t,this.changed=n,this.ob server=new PathObserver(this.model,this.path,this.changed),this.changed(this.obs erver.value)}function s(e){return function(t){e.data=void 0==t?"":t+""}}function l(e,t,n){if("textContent"!==e)return Node.prototype.bind.call(this,e,t,n);this. unbind("textContent");var r=new a(t,n,s(this));J.set(this,r)}function u(e){if("t extContent"!=e)return Node.prototype.unbind.call(this,e);var t=J.get(this);t&&(t .dispose(),J.delete(this))}function c(){this.unbind("textContent"),Node.prototyp e.unbindAll.call(this)}function d(e,t,n){return n?function(n){n?e.setAttribute(t ,""):e.removeAttribute(t)}:function(n){e.setAttribute(t,(void 0===n?"":n)+"")}}f unction h(){this.bindingMap=Object.create(null)}function p(e,t,n){var r=Z.get(th is);r||(r=new h,Z.set(this,r)),r.add(this,e,t,n)}function f(e){var t=Z.get(this) ;t&&t.remove(e)}function v(){var e=Z.get(this);e&&(Z.delete(this),e.removeAll(), Node.prototype.unbindAll.call(this))}function m(e){switch(e.type){case"checkbox" :return et;case"radio":case"select-multiple":case"select-one":return"change";def ault:return"input"}}function g(e,t,n,r){this.element=e,this.valueProperty=t,this .boundValueChanged=this.valueChanged.bind(this),this.boundUpdateBinding=this.upd ateBinding.bind(this),this.binding=new a(n,r,this.boundValueChanged),this.elemen t.addEventListener(m(this.element),this.boundUpdateBinding,!0)}function b(e,t,n) {g.call(this,e,"value",t,n)}function y(e){if(!n(e))return[];if(e.form)return K(e .form.elements,function(t){return t!=e&&"INPUT"==t.tagName&&"radio"==t.type&&t.n ame==e.name});var t=e.ownerDocument.querySelectorAll('input[type="radio"][name=" '+e.name+'"]');return K(t,function(t){return t!=e&&!t.form})}function w(e,t,n){g .call(this,e,"checked",t,n)}function E(e,t,n){switch(e){case"value":this.unbind( "value"),this.removeAttribute("value"),tt.set(this,new b(this,t,n));break;case"c hecked":this.unbind("checked"),this.removeAttribute("checked"),nt.set(this,new w (this,t,n));break;default:return Element.prototype.bind.call(this,e,t,n)}}functi on T(e){switch(e){case"value":var t=tt.get(this);t&&(t.unbind(),tt.delete(this)) ;break;case"checked":var n=nt.get(this);n&&(n.unbind(),nt.delete(this));break;de fault:return Element.prototype.unbind.call(this,e)}}function M(){this.unbind("va lue"),this.unbind("checked"),Element.prototype.unbindAll.call(this)}function S(e ){return ct[e.tagName]&&e.hasAttribute("template")}function P(e){return"TEMPLATE "==e.tagName||S(e)}function O(e){return dt&&"TEMPLATE"==e.tagName}function C(e,t ){var n=e.querySelectorAll(ht);P(e)&&t(e),z(n,t)}function L(e){function t(e){HTM LTemplateElement.decorate(e)||L(e.content)}C(e,t)}function _(e,t){Object.getOwnP ropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPrope rtyDescriptor(t,n))})}function N(e){if(!e.defaultView)return e;var t=mt.get(e);i f(!t){for(t=e.implementation.createHTMLDocument("");t.lastChild;)t.removeChild(t .lastChild);mt.set(e,t)}return t}function D(e){var t=e.ownerDocument.createEleme nt("template");e.parentNode.insertBefore(t,e);for(var n=e.attributes,r=n.length; r-->0;){var i=n[r];ut[i.name]&&("template"!==i.name&&t.setAttribute(i.name,i.val ue),e.removeAttribute(i.name))}return t}function A(e,t,n){var r=e.content;if(n)r eturn r.appendChild(t),void 0;for(var i;i=t.firstChild;)r.appendChild(i)}functio n x(e){"TEMPLATE"===e.tagName?dt||(ft?e.__proto__=HTMLTemplateElement.prototype: _(e,HTMLTemplateElement.prototype)):(_(e,HTMLTemplateElement.prototype),Object.d efineProperty(e,"content",yt))}function H(e){var t=e.ref;return t?t.content:e.co ntent}function k(e,t){this.type=e,this.value=t}function R(e){for(var t=[],n=e.le ngth,r=0,i=0;n>i;){if(r=e.indexOf("{{",i),0>r){t.push(new k(Et,e.slice(i)));brea k}if(r>0&&r>i&&t.push(new k(Et,e.slice(i,r))),i=r+2,r=e.indexOf("}}",i),0>r){var o=e.slice(i-2),a=t[t.length-1];a&&a.type==Et?a.value+=o:t.push(new k(Et,o));bre ak}var s=e.slice(i,r).trim();t.push(new k(Tt,s)),i=r+2}return t}function I(e,t,n ,r,i){var o,a=i&&i[st];a&&"function"==typeof a&&(o=a(n,r,t,e),o&&(n=o,r="value") ),e.bind(t,n,r)}function j(e,t,n,r,i){var o=R(n);if(o.length&&(1!=o.length||o[0] .type!=Et)){if(1==o.length&&o[0].type==Tt)return I(e,t,r,o[0].value,i),void 0;fo r(var a=new V,s=0;o.length>s;s++){var l=o[s];l.type==Tt&&I(a,s,r,l.value,i)}a.co mbinator=function(e){for(var t="",n=0;o.length>n;n++){var r=o[n];if(r.type===Et) t+=r.value;else{var i=e[n];void 0!==i&&(t+=i)}}return t},e.bind(t,a,"value")}}fu nction F(e,n,r){t(e);for(var i={},o=0;e.attributes.length>o;o++){var a=e.attribu tes[o];i[a.name]=a.value}P(e)&&(""===i[rt]&&(i[rt]="{{}}"),""===i[it]&&(i[it]="{ {}}")),Object.keys(i).forEach(function(t){j(e,t,i[t],n,r)})}function U(e,n,r){t( e),e.nodeType===Node.ELEMENT_NODE?F(e,n,r):e.nodeType===Node.TEXT_NODE&&j(e,"tex tContent",e.data,n,r);for(var i=e.firstChild;i;i=i.nextSibling)U(i,n,r)}function B(e){if(Mt.delete(e),P(e)){var t=St.get(e);t&&(t.abandon(),St.delete(e))}e.unbi ndAll();for(var n=e.firstChild;n;n=n.nextSibling)B(n)}function q(e,t){var n=e.cl oneNode(!1);P(n)&&(HTMLTemplateElement.decorate(n,e),t&&!n.hasAttribute(at)&&n.s etAttribute(at,t));for(var r=e.firstChild;r;r=r.nextSibling)n.appendChild(q(r,t) );return n}function Y(e,t,n){this.firstNode=e,this.lastNode=t,this.model=n}funct ion W(e,t){if(e.firstChild)for(var n=new Y(e.firstChild,e.lastChild,t),r=n.first Node;r;)Mt.set(r,n),r=r.nextSibling}function V(e){this.bindings={},this.values={ },this.value=void 0,this.size=0,this.combinator_=e,this.boundResolve=this.resolv e.bind(this),this.disposed=!1}function G(e){this.templateElement_=e,this.termina tors=[],this.iteratedValue=void 0,this.arrayObserver=void 0,this.boundHandleSpli ces=this.handleSplices.bind(this),this.inputs=new V(this.resolveInputs.bind(this )),this.valueBinding=new a(this.inputs,"value",this.valueChanged.bind(this))}var X,z=Array.prototype.forEach.call.bind(Array.prototype.forEach),K=Array.prototyp e.filter.call.bind(Array.prototype.filter);e.Map&&"function"==typeof e.Map.proto type.forEach?X=e.Map:(X=function(){this.keys=[],this.values=[]},X.prototype={set :function(e,t){var n=this.keys.indexOf(e);0>n?(this.keys.push(e),this.values.pus h(t)):this.values[n]=t},get:function(e){var t=this.keys.indexOf(e);return 0>t?vo id 0:this.values[t]},"delete":function(e){var t=this.keys.indexOf(e);return 0>t? !1:(this.keys.splice(t,1),this.values.splice(t,1),!0)},forEach:function(e,t){for (var n=0;this.keys.length>n;n++)e.call(t||this,this.values[n],this.keys[n],this) }});var Q="__proto__"in{}?function(e){return e}:function(e){var t=e.__proto__;if (!t)return e;var n=Object.create(t);return Object.getOwnPropertyNames(e).forEach (function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}),n };"function"!=typeof document.contains&&(Document.prototype.contains=function(e) {return e===this||e.parentNode===this?!0:this.documentElement.contains(e)});var $;"undefined"!=typeof WeakMap&&0>navigator.userAgent.indexOf("Firefox/")?$=WeakM ap:function(){var e=Object.defineProperty,t=Object.hasOwnProperty,n=(new Date).g etTime()%1e9;$=function(){this.name="__st"+(1e9*Math.random()>>>0)+(n++ +"__")}, $.prototype={set:function(t,n){e(t,this.name,{value:n,writable:!0})},get:functio n(e){return t.call(e,this.name)?e[this.name]:void 0},"delete":function(e){this.s et(e,void 0)}}}(),Node.prototype.bind=r,Node.prototype.unbind=i,Node.prototype.u nbindAll=o;var J=new $("textContentBinding");a.prototype={dispose:function(){thi s.observer.close()},set value(e){PathObserver.setValueAtPath(this.model,this.pat h,e)},reset:function(){this.observer.reset()}},Text.prototype.bind=l,Text.protot ype.unbind=u,Text.prototype.unbindAll=c;var Z=new $("attributeBindings");h.proto type={add:function(e,t,n,r){e.removeAttribute(t);var i="?"==t[t.length-1];i&&(t= t.slice(0,-1)),this.remove(t);var o=new a(n,r,d(e,t,i));this.bindingMap[t]=o},re move:function(e){var t=this.bindingMap[e];t&&(t.dispose(),delete this.bindingMap [e])},removeAll:function(){Object.keys(this.bindingMap).forEach(function(e){this .remove(e)},this)}},Element.prototype.bind=p,Element.prototype.unbind=f,Element. prototype.unbindAll=v;var et,tt=new $("valueBinding"),nt=new $("checkedBinding") ;(function(){var e=document.createElement("div"),t=e.appendChild(document.create Element("input"));t.setAttribute("type","checkbox");var n,r=0;t.addEventListener ("click",function(){r++,n=n||"click"}),t.addEventListener("change",function(){r+ +,n=n||"change"});var i=document.createEvent("MouseEvent");i.initMouseEvent("cli ck",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),t.dispatchEvent(i),et=1==r?"chang e":n})(),g.prototype={valueChanged:function(e){this.element[this.valueProperty]= this.produceElementValue(e)},updateBinding:function(){this.binding.value=this.el ement[this.valueProperty],this.binding.reset(),this.postUpdateBinding&&this.post UpdateBinding(),Platform.performMicrotaskCheckpoint()},unbind:function(){this.bi nding.dispose(),this.element.removeEventListener(m(this.element),this.boundUpdat eBinding,!0)}},b.prototype=Q({__proto__:g.prototype,produceElementValue:function (e){return(null==e?"":e)+""}}),w.prototype=Q({__proto__:g.prototype,produceEleme ntValue:function(e){return Boolean(e)},postUpdateBinding:function(){"INPUT"===th is.element.tagName&&"radio"===this.element.type&&y(this.element).forEach(functio n(e){var t=nt.get(e);t&&(t.binding.value=!1)})}}),HTMLInputElement.prototype.bin d=E,HTMLInputElement.prototype.unbind=T,HTMLInputElement.prototype.unbindAll=M;v ar rt="bind",it="repeat",ot="if",at="syntax",st="getBinding",lt="getInstanceMode l",ut={template:!0,repeat:!0,bind:!0,ref:!0},ct={THEAD:!0,TBODY:!0,TFOOT:!0,TH:! 0,TR:!0,TD:!0,COLGROUP:!0,COL:!0,CAPTION:!0,OPTION:!0},dt="undefined"!=typeof HT MLTemplateElement,ht="template, "+Object.keys(ct).map(function(e){return e.toLow erCase()+"[template]"}).join(", "),pt=function(){function e(e){r.indexOf(e)>=0|| n.indexOf(e)>=0||(n.push(e),o==i.value&&(i.value=!i.value))}function t(){for(o=i .value,r=n,n=[];r.length;){var e=r.shift();e()}}var n=[],r=[],i={value:0},o=i.va lue;return new PathObserver(i,"value",t),e}();document.addEventListener("DOMCont entLoaded",function(){L(document),Platform.performMicrotaskCheckpoint()},!1),dt| |(e.HTMLTemplateElement=function(){throw TypeError("Illegal constructor")});var ft="__proto__"in{},vt=new $("templateContents"),mt=new $("templateContentsOwner" ),gt=new $("templateInstanceRef");HTMLTemplateElement.decorate=function(e,n){if( e.templateIsDecorated_)return!1;var r=e,i=O(r),o=i,a=!i,s=!1;if(!i&&S(r)&&(t(!n) ,r=D(e),i=O(r),s=!0),r.templateIsDecorated_=!0,!i){x(r);var l=N(r.ownerDocument) ;vt.set(r,l.createDocumentFragment())}return n?gt.set(r,n):a?A(r,e,s):o&&L(r.con tent),!0},HTMLTemplateElement.bootstrap=L;var bt=e.HTMLUnknownElement||HTMLEleme nt,yt={get:function(){return vt.get(this)},enumerable:!0,configurable:!0};dt||(H TMLTemplateElement.prototype=Object.create(bt.prototype),Object.defineProperty(H TMLTemplateElement.prototype,"content",yt));var wt=new $("templateModel");_(HTML TemplateElement.prototype,{bind:function(e,t,n){switch(e){case rt:case it:case o t:var r=St.get(this);r||(r=new G(this),St.set(this,r)),r.inputs.bind(e,t,n||""); break;default:return Element.prototype.bind.call(this,e,t,n)}},unbind:function(e ,t,n){switch(e){case rt:case it:case ot:var r=St.get(this);if(!r)break;r.inputs. unbind(e);break;default:return Element.prototype.unbind.call(this,e,t,n)}},unbin dAll:function(){this.unbind(rt),this.unbind(it),this.unbind(ot),Element.prototyp e.unbindAll.call(this)},createInstance:function(){var e=H(this),t=this.getAttrib ute(at),n=q(e,t);return"function"==typeof HTMLTemplateElement.__instanceCreated& &HTMLTemplateElement.__instanceCreated(n),n},get model(){return wt.get(this)},se t model(e){var t=HTMLTemplateElement.syntax[this.getAttribute(at)];wt.set(this,e ),U(this,e,t)},get ref(){var e,t=this.getAttribute("ref");return t&&(e=this.owne rDocument.getElementById(t)),e||(e=gt.get(this)),e||null}});var Et=0,Tt=1,Mt=new $("templateInstance");Object.defineProperty(Node.prototype,"templateInstance",{ get:function(){var e=Mt.get(this);return e?e:this.parentNode?this.parentNode.tem plateInstance:void 0}}),V.prototype={set combinator(e){this.combinator_=e,this.s cheduleResolve()},bind:function(e,t,n){this.unbind(e),this.size++,this.bindings[ e]=new a(t,n,function(t){this.values[e]=t,this.scheduleResolve()}.bind(this))},u nbind:function(e,t){this.bindings[e]&&(this.size--,this.bindings[e].dispose(),de lete this.bindings[e],delete this.values[e],t||this.scheduleResolve())},schedule Resolve:function(){pt(this.boundResolve)},resolve:function(){if(!this.disposed){ if(!this.combinator_)throw Error("CompoundBinding attempted to resolve without a combinator");this.value=this.combinator_(this.values)}},dispose:function(){Obje ct.keys(this.bindings).forEach(function(e){this.unbind(e,!0)},this),this.dispose d=!0,this.value=void 0}},G.prototype={resolveInputs:function(e){return ot in e&& !e[ot]?void 0:it in e?e[it]:rt in e?[e[rt]]:void 0},valueChanged:function(e,t){A rray.isArray(e)||(e=[]),this.unobserve(),this.iteratedValue=e,this.arrayObserver =new ArrayObserver(this.iteratedValue,this.boundHandleSplices);var n={index:0,ad dedCount:this.iteratedValue.length,removed:Array.isArray(t)?t:[]};(n.addedCount| |n.removed.length)&&this.handleSplices([n])},getTerminatorAt:function(e){if(-1== e)return this.templateElement_;var t=this.terminators[e];if(t.nodeType!==Node.EL EMENT_NODE)return t;var n=St.get(t);return n?n.getTerminatorAt(n.terminators.len gth-1):t},insertInstanceAt:function(e,t){var n=this.getTerminatorAt(e-1),r=t[t.l ength-1]||n;this.terminators.splice(e,0,r);for(var i=this.templateElement_.paren tNode,o=n.nextSibling,a=0;t.length>a;a++)i.insertBefore(t[a],o)},extractInstance At:function(e){var t=[],n=this.getTerminatorAt(e-1),r=this.getTerminatorAt(e);th is.terminators.splice(e,1);for(var i=this.templateElement_.parentNode;r!==n;){va r o=r;r=o.previousSibling,i.removeChild(o),t.push(o)}return t},getInstanceModel: function(e,t,n){var r=n&&n[lt];return r&&"function"==typeof r?r(e,t):t},getInsta nceNodes:function(e,t){var n=[],r=this.templateElement_.createInstance();for(U(r ,e,t),W(r,e);r.firstChild;)n.push(r.removeChild(r.firstChild));return n},handleS plices:function(e){var t=this.templateElement_;if(!t.parentNode||!t.ownerDocumen t.defaultView)return this.abandon(),St.delete(this),void 0;
3 var n=t.getAttribute(at),r=HTMLTemplateElement.syntax[n],i=new X,o=0;e.forEach(f unction(e){e.removed.forEach(function(t){var n=this.extractInstanceAt(e.index+o, n);i.set(t,n)},this),o-=e.addedCount},this),e.forEach(function(e){for(var n=e.in dex;e.index+e.addedCount>n;n++){var o=this.getInstanceModel(t,this.iteratedValue [n],r),a=i.get(o)||this.getInstanceNodes(o,r);this.insertInstanceAt(n,a)}},this) ,i.forEach(function(e){for(var t=0;e.length>t;t++)B(e[t])})},unobserve:function( ){this.arrayObserver&&(this.arrayObserver.close(),this.arrayObserver=void 0)},ab andon:function(){this.unobserve(),this.valueBinding.dispose(),this.terminators.l ength=0,this.inputs.dispose()}};var St=new $("templateIterator");e.CompoundBindi ng=V,Object.defineProperty(HTMLTemplateElement,at,{value:{},enumerable:!0}),HTML TemplateElement.forAllTemplatesFrom_=C,HTMLTemplateElement.bindAllMustachesFrom_ =U,HTMLTemplateElement.parseAndBind_=j}(this),function(e){function t(){logFlags. data&&console.group("Model.dirtyCheck()"),n(),logFlags.data&&console.groupEnd()} function n(){Platform.performMicrotaskCheckpoint()}document.write("<style>templa te {display: none;} /* injected by platform.js */</style>"),HTMLTemplateElement. __instanceCreated=function(e){document.adoptNode(e),CustomElements.upgradeAll(e) };var r=125;window.addEventListener("WebComponentsReady",function(){t(),setInter val(n,r)}),e.flush=t,window.dirtyCheck=t}(window.Platform),function(e){function t(e){return r(e,a)}function n(e){return r(e,"stylesheet")}function r(e,t){return "link"===e.localName&&e.getAttribute("rel")===t}function i(e,t){var n=document.i mplementation.createHTMLDocument(a);n._URL=t;var r=n.createElement("base");retur n r.setAttribute("href",document.baseURI),n.head.appendChild(r),n.body.innerHTML =e,n}e||(e=window.HTMLImports={flags:{}});var o,a="import",s={documents:{},cache :{},preloadSelectors:["link[rel="+a+"]","script[src]","link[rel=stylesheet]"].jo in(","),load:function(e,t){o=new l(s.loaded,t),o.cache=s.cache,s.preload(e)},pre load:function(e){var n=e.querySelectorAll(s.preloadSelectors);e===document&&(n=A rray.prototype.filter.call(n,function(e){return t(e)})),o.addNodes(n)},loaded:fu nction(e,r,o){if(t(r)){var a=s.documents[e];a||(a=i(o,e),u.resolvePathsInHTML(a) ,s.documents[e]=a,s.preload(a)),r.content=r.__resource=a}else r.__resource=o,n(r )&&u.resolvePathsInStylesheet(r)}},l=function(e,t){this.onload=e,this.oncomplete =t,this.inflight=0,this.pending={},this.cache={}};l.prototype={addNodes:function (e){this.inflight+=e.length,f(e,this.require,this),this.checkDone()},require:fun ction(e){var t=u.nodeUrl(e);e.__nodeUrl=t,this.dedupe(t,e)||this.fetch(t,e)},ded upe:function(e,t){return this.pending[e]?(this.pending[e].push(t),!0):this.cache [e]?(this.onload(e,t,o.cache[e]),this.tail(),!0):(this.pending[e]=[t],!1)},fetch :function(e,t){p.load(e,function(n,r){this.receive(e,t,n,r)}.bind(this))},receiv e:function(e,t,n,r){n||(o.cache[e]=r),o.pending[e].forEach(function(t){n||this.o nload(e,t,r),this.tail()},this),o.pending[e]=null},tail:function(){--this.inflig ht,this.checkDone()},checkDone:function(){this.inflight||this.oncomplete()}};var u={nodeUrl:function(e){return u.resolveUrl(u.getDocumentUrl(document),u.hrefOrS rc(e))},hrefOrSrc:function(e){return e.getAttribute("href")||e.getAttribute("src ")},documentUrlFromNode:function(e){var t=u.getDocumentUrl(e.ownerDocument);retu rn t=t.split("#")[0]},getDocumentUrl:function(e){return e&&(e._URL||e.impl&&e.im pl._URL||e.baseURI||e.URL)||""},resolveUrl:function(e,t,n){if(this.isAbsUrl(t))r eturn t;var r=this.compressUrl(this.urlToPath(e)+t);return n&&(r=u.makeRelPath(u .getDocumentUrl(document),r)),r},isAbsUrl:function(e){return/(^data:)|(^http[s]? :)|(^\/)/.test(e)},urlToPath:function(e){var t=e.split("/");return t.pop(),t.pus h(""),t.join("/")},compressUrl:function(e){for(var t,n=e.split("/"),r=0;n.length >r;r++)t=n[r],".."===t&&(n.splice(r-1,2),r-=2);return n.join("/")},makeRelPath:f unction(e,t){var n,r;for(n=this.compressUrl(e).split("/"),r=this.compressUrl(t). split("/");n.length&&n[0]===r[0];)n.shift(),r.shift();for(var i=0,o=n.length-1;o >i;i++)r.unshift("..");var a=r.join("/");return a},resolvePathsInHTML:function(e ){var t=u.documentUrlFromNode(e.body);window.HTMLTemplateElement&&HTMLTemplateEl ement.bootstrap&&HTMLTemplateElement.bootstrap(e);var n=e.body;u._resolvePathsIn HTML(n,t)},_resolvePathsInHTML:function(e,t){if(u.resolveAttributes(e,t),u.resol veStyleElts(e,t),window.templateContent){var n=e.querySelectorAll("template");n& &f(n,function(e){u._resolvePathsInHTML(templateContent(e),t)})}},resolvePathsInS tylesheet:function(e){var t=u.nodeUrl(e);e.__resource=u.resolveCssText(e.__resou rce,t)},resolveStyleElts:function(e,t){var n=e.querySelectorAll("style");n&&f(n, function(e){e.textContent=u.resolveCssText(e.textContent,t)})},resolveCssText:fu nction(e,t){return e.replace(/url\([^)]*\)/g,function(e){var n=e.replace(/["']/g ,"").slice(4,-1);return n=u.resolveUrl(t,n,!0),"url("+n+")"})},resolveAttributes :function(e,t){var n=e&&e.querySelectorAll(d);n&&f(n,function(e){this.resolveNod eAttributes(e,t)},this)},resolveNodeAttributes:function(e,t){c.forEach(function( n){var r=e.attributes[n];if(r&&r.value&&0>r.value.search(h)){var i=u.resolveUrl( t,r.value,!0);r.value=i}})}},c=["href","src","action"],d="["+c.join("],[")+"]",h ="{{.*}}",p={async:!0,ok:function(e){return e.status>=200&&300>e.status||304===e .status},load:function(t,n,r){var i=new XMLHttpRequest;(e.flags.debug||e.flags.b ust)&&(t+="?"+Math.random()),i.open("GET",t,p.async),i.addEventListener("readyst atechange",function(){4===i.readyState&&n.call(r,!p.ok(i)&&i,i.response,t)}),i.s end()}},f=Array.prototype.forEach.call.bind(Array.prototype.forEach);e.importer= s,e.getDocumentUrl=u.getDocumentUrl,"function"!=typeof window.CustomEvent&&(wind ow.CustomEvent=function(e){var t=document.createEvent("HTMLEvents");return t.ini tEvent(e,!0,!0),t}),window.addEventListener("load",function(){s.load(document,fu nction(){var e=window.ShadowDOMPolyfill?ShadowDOMPolyfill.wrap(document):documen t;HTMLImports.readyTime=(new Date).getTime(),e.body.dispatchEvent(new CustomEven t("HTMLImportsLoaded",{bubbles:!0}))})})}(window.HTMLImports),function(e){functi on t(e){w.push(e),y||(y=!0,m(r))}function n(e){return window.ShadowDOMPolyfill&& window.ShadowDOMPolyfill.wrapIfNeeded(e)||e}function r(){y=!1;var e=w;w=[],e.sor t(function(e,t){return e.uid_-t.uid_});var t=!1;e.forEach(function(e){var n=e.ta keRecords();i(e),n.length&&(e.callback_(n,e),t=!0)}),t&&r()}function i(e){e.node s_.forEach(function(t){var n=v.get(t);n&&n.forEach(function(t){t.observer===e&&t .removeTransientObservers()})})}function o(e,t){for(var n=e;n;n=n.parentNode){va r r=v.get(n);if(r)for(var i=0;r.length>i;i++){var o=r[i],a=o.options;if(n===e||a .subtree){var s=t(a);s&&o.enqueue(s)}}}}function a(e){this.callback_=e,this.node s_=[],this.records_=[],this.uid_=++E}function s(e,t){this.type=e,this.target=t,t his.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSiblin g=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}f unction l(e){var t=new s(e.type,e.target);return t.addedNodes=e.addedNodes.slice (),t.removedNodes=e.removedNodes.slice(),t.previousSibling=e.previousSibling,t.n extSibling=e.nextSibling,t.attributeName=e.attributeName,t.attributeNamespace=e. attributeNamespace,t.oldValue=e.oldValue,t}function u(e,t){return T=new s(e,t)}f unction c(e){return M?M:(M=l(T),M.oldValue=e,M)}function d(){T=M=void 0}function h(e){return e===M||e===T}function p(e,t){return e===t?e:M&&h(e)?M:null}function f(e,t,n){this.observer=e,this.target=t,this.options=n,this.transientObservedNod es=[]}var v=new SideTable,m=window.msSetImmediate;if(!m){var g=[],b=Math.random( )+"";window.addEventListener("message",function(e){if(e.data===b){var t=g;g=[],t .forEach(function(e){e()})}}),m=function(e){g.push(e),window.postMessage(b,"*")} }var y=!1,w=[],E=0;a.prototype={observe:function(e,t){if(e=n(e),!t.childList&&!t .attributes&&!t.characterData||t.attributeOldValue&&!t.attributes||t.attributeFi lter&&t.attributeFilter.length&&!t.attributes||t.characterDataOldValue&&!t.chara cterData)throw new SyntaxError;var r=v.get(e);r||v.set(e,r=[]);for(var i,o=0;r.l ength>o;o++)if(r[o].observer===this){i=r[o],i.removeListeners(),i.options=t;brea k}i||(i=new f(this,e,t),r.push(i),this.nodes_.push(e)),i.addListeners()},disconn ect:function(){this.nodes_.forEach(function(e){for(var t=v.get(e),n=0;t.length>n ;n++){var r=t[n];if(r.observer===this){r.removeListeners(),t.splice(n,1);break}} },this),this.records_=[]},takeRecords:function(){var e=this.records_;return this .records_=[],e}};var T,M;f.prototype={enqueue:function(e){var n=this.observer.re cords_,r=n.length;if(n.length>0){var i=n[r-1],o=p(i,e);if(o)return n[r-1]=o,void 0}else t(this.observer);n[r]=e},addListeners:function(){this.addListeners_(this .target)},addListeners_:function(e){var t=this.options;t.attributes&&e.addEventL istener("DOMAttrModified",this,!0),t.characterData&&e.addEventListener("DOMChara cterDataModified",this,!0),t.childList&&e.addEventListener("DOMNodeInserted",thi s,!0),(t.childList||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},re moveListeners:function(){this.removeListeners_(this.target)},removeListeners_:fu nction(e){var t=this.options;t.attributes&&e.removeEventListener("DOMAttrModifie d",this,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModified",th is,!0),t.childList&&e.removeEventListener("DOMNodeInserted",this,!0),(t.childLis t||t.subtree)&&e.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObse rver:function(e){if(e!==this.target){this.addListeners_(e),this.transientObserve dNodes.push(e);var t=v.get(e);t||v.set(e,t=[]),t.push(this)}},removeTransientObs ervers:function(){var e=this.transientObservedNodes;this.transientObservedNodes= [],e.forEach(function(e){this.removeListeners_(e);for(var t=v.get(e),n=0;t.lengt h>n;n++)if(t[n]===this){t.splice(n,1);break}},this)},handleEvent:function(e){swi tch(e.stopImmediatePropagation(),e.type){case"DOMAttrModified":var t=e.attrName, n=e.relatedNode.namespaceURI,r=e.target,i=new u("attributes",r);i.attributeName= t,i.attributeNamespace=n;var a=e.attrChange===MutationEvent.ADDITION?null:e.prev Value;o(r,function(e){return!e.attributes||e.attributeFilter&&e.attributeFilter. length&&-1===e.attributeFilter.indexOf(t)&&-1===e.attributeFilter.indexOf(n)?voi d 0:e.attributeOldValue?c(a):i});break;case"DOMCharacterDataModified":var r=e.ta rget,i=u("characterData",r),a=e.prevValue;o(r,function(e){return e.characterData ?e.characterDataOldValue?c(a):i:void 0});break;case"DOMNodeRemoved":this.addTran sientObserver(e.target);case"DOMNodeInserted":var s,l,r=e.relatedNode,h=e.target ;"DOMNodeInserted"===e.type?(s=[h],l=[]):(s=[],l=[h]);var p=h.previousSibling,f= h.nextSibling,i=u("childList",r);i.addedNodes=s,i.removedNodes=l,i.previousSibli ng=p,i.nextSibling=f,o(r,function(e){return e.childList?i:void 0})}d()}},e.JsMut ationObserver=a}(this),!window.MutationObserver&&(window.MutationObserver=window .WebKitMutationObserver||window.JsMutationObserver,!MutationObserver))throw Erro r("no mutation observer support");(function(e){function t(t,o){var a=o||{};if(!t )throw Error("Name argument must not be empty");if(a.name=t,!a.prototype)throw E rror("Options missing required prototype property");return a.lifecycle=a.lifecyc le||{},a.ancestry=n(a.extends),r(a),i(a),a.prototype.setAttribute=c,a.prototype. removeAttribute=d,p(t,a),a.ctor=f(a),a.ctor.prototype=a.prototype,e.ready&&e.upg radeAll(document),a.ctor}function n(e){var t=w[e];return t?n(t.extends).concat([ t]):[]}function r(e){for(var t,n=e.extends,r=0;t=e.ancestry[r];r++)n=t.is&&t.tag ;e.tag=n||e.name,n&&(e.is=e.name)}function i(e){if(!Object.__proto__)if(e.is)var t=document.createElement(e.tag),n=Object.getPrototypeOf(t);else n=HTMLElement.p rototype;e.native=n}function o(e){return a(E(e.tag),e)}function a(t,n){return n. is&&t.setAttribute("is",n.is),s(t,n),t.__upgraded__=!0,e.upgradeSubtree(t),u(t), t}function s(e,t){Object.__proto__?e.__proto__=t.prototype:(l(e,t.prototype,t.na tive),e.__proto__=t.prototype)}function l(e,t,n){for(var r={},i=t;i!==n&&i!==HTM LUnknownElement.prototype;){for(var o,a=Object.getOwnPropertyNames(i),s=0;o=a[s] ;s++)r[o]||(Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(i,o)),r[o] =1);i=Object.getPrototypeOf(i)}}function u(e){e.readyCallback&&e.readyCallback() }function c(e,t){h.call(this,e,t,b)}function d(e,t){h.call(this,e,t,y)}function h(e,t,n){var r=this.getAttribute(e);n.apply(this,arguments),this.attributeChange dCallback&&this.getAttribute(e)!==r&&this.attributeChangedCallback(e,r)}function p(e,t){w[e]=t}function f(e){return function(){return o(e)}}function v(e){var t= w[e];return t?new t.ctor:E(e)}function m(e){if(!e.__upgraded__&&e.nodeType===Nod e.ELEMENT_NODE){var t=e.getAttribute("is")||e.localName,n=w[t];return n&&a(e,n)} }if(e||(e=window.CustomElements={flags:{}}),e.hasNative=(document.webkitRegister ||document.register)&&"native"===e.flags.register,e.hasNative){document.register =document.register||document.webkitRegister;var g=function(){};e.registry={},e.u pgradeElement=g}else{var b=HTMLElement.prototype.setAttribute,y=HTMLElement.prot otype.removeAttribute,w={},E=document.createElement.bind(document);document.regi ster=t,document.createElement=v,e.registry=w,e.upgrade=m}})(window.CustomElement s),function(e){function t(e,n,r){var i=e.firstElementChild;if(!i)for(i=e.firstCh ild;i&&i.nodeType!==Node.ELEMENT_NODE;)i=i.nextSibling;for(;i;)n(i,r)!==!0&&t(i, n,r),i=i.nextElementSibling;return null}function n(e,r){t(e,function(e){return r (e)?!0:(e.webkitShadowRoot&&n(e.webkitShadowRoot,r),void 0)}),e.webkitShadowRoot &&n(e.webkitShadowRoot,r)}function r(e){return a(e)?(s(e),!0):(l(e),void 0)}func tion i(e){n(e,function(e){return r(e)?!0:void 0})}function o(e){return r(e)||i(e )}function a(t){if(!t.__upgraded__&&t.nodeType===Node.ELEMENT_NODE){var n=t.getA ttribute("is")||t.localName,r=e.registry[n];if(r)return logFlags.dom&&console.gr oup("upgrade:",t.localName),e.upgrade(t),logFlags.dom&&console.groupEnd(),!0}}fu nction s(e){l(e),d(e)&&n(e,function(e){l(e)})}function l(e){(e.insertedCallback| |e.__upgraded__&&logFlags.dom)&&(logFlags.dom&&console.group("inserted:",e.local Name),d(e)&&(e.__inserted=(e.__inserted||0)+1,1>e.__inserted&&(e.__inserted=1),e .__inserted>1?logFlags.dom&&console.warn("inserted:",e.localName,"insert/remove count:",e.__inserted):e.insertedCallback&&(logFlags.dom&&console.log("inserted:" ,e.localName),e.insertedCallback())),logFlags.dom&&console.groupEnd())}function u(e){c(e),n(e,function(e){c(e)})}function c(e){(e.removedCallback||e.__upgraded_ _&&logFlags.dom)&&(logFlags.dom&&console.log("removed:",e.localName),d(e)||(e.__ inserted=(e.__inserted||0)-1,e.__inserted>0&&(e.__inserted=0),0>e.__inserted?log Flags.dom&&console.warn("removed:",e.localName,"insert/remove count:",e.__insert ed):e.removedCallback&&e.removedCallback()))}function d(e){for(var t=e;t;){if(t= =e.ownerDocument)return!0;t=t.parentNode||t.host}}function h(e){e.webkitShadowRo ot&&!e.webkitShadowRoot.__watched&&(logFlags.dom&&console.log("watching shadow-r oot for: ",e.localName),g(e.webkitShadowRoot),e.webkitShadowRoot.__watched=!0)}f unction p(e){h(e),n(e,function(){h(e)})}function f(e){switch(e.localName){case"s tyle":case"script":case"template":case void 0:return!0}}function v(e){if(logFlag s.dom){var t=e[0];if(t&&"childList"===t.type&&t.addedNodes&&t.addedNodes){for(va r n=t.addedNodes[0];n&&n!==document&&!n.host;)n=n.parentNode;var r=n&&(n.URL||n. _URL||n.host&&n.host.localName)||"";r=r.split("/?").shift().split("/").pop()}con sole.group("mutations (%d) [%s]",e.length,r||"")}e.forEach(function(e){"childLis t"===e.type&&(E(e.addedNodes,function(e){f(e)||o(e)}),E(e.removedNodes,function( e){f(e)||u(e)}))}),logFlags.dom&&console.groupEnd()}function m(){v(w.takeRecords ())}function g(e){w.observe(e,{childList:!0,subtree:!0})}function b(e){g(e)}func tion y(e){logFlags.dom&&console.group("upgradeDocument: ",(e.URL||e._URL||"").sp lit("/").pop()),o(e),logFlags.dom&&console.groupEnd()}var w=new MutationObserver (v),E=Array.prototype.forEach.call.bind(Array.prototype.forEach);e.watchShadow=h ,e.watchAllShadows=p,e.upgradeAll=o,e.upgradeSubtree=i,e.observeDocument=b,e.upg radeDocument=y,e.takeRecords=m}(window.CustomElements),function(){function parse ElementElement(e){var t={name:"","extends":null};takeAttributes(e,t);var n=HTMLE lement.prototype;if(t.extends){var r=document.createElement(t.extends);n=r.__pro to__||Object.getPrototypeOf(r)}t.prototype=Object.create(n),e.options=t;var i=e. querySelector("script,scripts");i&&executeComponentScript(i.textContent,e,t.name );var o=document.register(t.name,t);e.ctor=o;var a=e.getAttribute("constructor") ;a&&(window[a]=o)}function takeAttributes(e,t){for(var n in t){var r=e.attribute s[n];r&&(t[n]=r.value)}}function executeComponentScript(inScript,inContext,inNam e){context=inContext;var owner=context.ownerDocument,url=owner._URL||owner.URL|| owner.impl&&(owner.impl._URL||owner.impl.URL),match=url.match(/.*\/([^.]*)[.]?.* $/);if(match){var name=match[1];url+=name!=inName?":"+inName:""}var code="__comp onentScript('"+inName+"', function(){"+inScript+"});"+"\n//@ sourceURL="+url+"\n ";eval(code)}function mixin(e){for(var t=e||{},n=1;arguments.length>n;n++){var r =arguments[n];try{for(var i in r)copyProperty(i,r,t)}catch(o){}}return t}functio n copyProperty(e,t,n){var r=getPropertyDescriptor(t,e);Object.defineProperty(n,e ,r)}function getPropertyDescriptor(e,t){if(e){var n=Object.getOwnPropertyDescrip tor(e,t);return n||getPropertyDescriptor(Object.getPrototypeOf(e),t)}}var HTMLEl ementElement=function(e){return e.register=HTMLElementElement.prototype.register ,parseElementElement(e),e};HTMLElementElement.prototype={register:function(e){e& &(this.options.lifecycle=e.lifecycle,e.prototype&&mixin(this.options.prototype,e .prototype))}};var context;window.__componentScript=function(e,t){t.call(context )},window.HTMLElementElement=HTMLElementElement,window.mixin=mixin}(),function() {function e(e){return e.ownerDocument===document||e.ownerDocument.impl===documen t}function t(e){return"link"===e.localName&&e.getAttribute("rel")===r}function n (e){return e.parentNode&&"element"===e.parentNode.localName?!0:void 0}var r="imp ort",i={selectors:["link[rel="+r+"]","link[rel=stylesheet]","script[src]","scrip t","style","element"],map:{link:"parseLink",script:"parseScript",element:"parseE lement",style:"parseStyle"},parse:function(e){if(!e.__parsed){e.__parsed=!0;var t=e.querySelectorAll(o.selectors);a(t,function(e){o[o.map[e.localName]](e)}),Cus tomElements.upgradeDocument(e),CustomElements.observeDocument(e)}},parseLink:fun ction(r){t(r)?r.content&&o.parse(r.content):e(r)||!r.parentNode||n(r)||document. head.appendChild(r)},parseScript:function(t){if(!e(t)&&!n(t)){var r=t.__resource ||t.textContent;r&&(r+="\n//@ sourceURL="+t.__nodeUrl+"\n",eval.call(window,r))} },parseStyle:function(t){e(t)||n(t)||document.querySelector("head").appendChild( t)},parseElement:function(e){new HTMLElementElement(e)}},o=i,a=Array.prototype.f orEach.call.bind(Array.prototype.forEach);CustomElements.parser=i}(),function(){ function e(){setTimeout(function(){CustomElements.parser.parse(document),CustomE lements.ready=!0,CustomElements.readyTime=(new Date).getTime(),window.HTMLImport s&&(CustomElements.elapsed=CustomElements.readyTime-HTMLImports.readyTime),docum ent.body.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))},0)}" function"!=typeof window.CustomEvent&&(window.CustomEvent=function(e){var t=docu ment.createEvent("HTMLEvents");return t.initEvent(e,!0,!0),t}),window.HTMLImport s?document.addEventListener("HTMLImportsLoaded",e):window.addEventListener("load ",e)}(),function(){function e(){}if(document.write("<style>element {display: non e;} /* injected by platform.js */</style>"),window.ShadowDOMPolyfill){CustomElem ents.watchShadow=e,CustomElements.watchAllShadows=e;var t=["upgradeAll","upgrade Subtree","observeDocument","upgradeDocument"],n={};t.forEach(function(e){n[e]=Cu stomElements[e]}),t.forEach(function(e){CustomElements[e]=function(t){return n[e ](wrap(t))}})}}(),function(e){e=e||{};var t={shadow:function(e){return e?e.shado wRoot||e.webkitShadowRoot:void 0},canTarget:function(e){return e&&Boolean(e.elem entFromPoint)},targetingShadow:function(e){var t=this.shadow(e);return this.canT arget(t)?t:void 0},searchRoot:function(e,t,n){if(e){var r,i,o,a=e.elementFromPoi nt(t,n);for(i=this.targetingShadow(a);i;){if(r=i.elementFromPoint(t,n)){var s=th is.targetingShadow(r);return this.searchRoot(s,t,n)||r}o=i.querySelector("shadow "),i=o&&o.olderShadowRoot}return a}},findTarget:function(e){var t=e.clientX,n=e. clientY;return this.searchRoot(document,t,n)}};e.targetFinding=t,e.findTarget=t. findTarget.bind(t),window.PointerEventsPolyfill=e}(window.PointerEventsPolyfill) ,function(){function e(e){return'[touch-action="'+e+'"]'}function t(e){return"{ -ms-touch-action: "+e+"; touch-action: "+e+"; }"}var n=["none","pan-x","pan-y",{ rule:"pan-x pan-y",selectors:["scroll","pan-x pan-y","pan-y pan-x"]}],r="";n.for Each(function(n){r+=n+""===n?e(n)+t(n):n.selectors.map(e)+t(n.rule)});var i=docu ment.createElement("style");i.textContent=r;var o=document.querySelector("head") ;o.insertBefore(i,o.firstChild)}(),function(e){function t(e,t){var t=t||{},i=t.b uttons;if(void 0===i)switch(t.which){case 1:i=1;break;case 2:i=4;break;case 3:i= 2;break;default:i=0}var o;if(n)o=new MouseEvent(e,t);else{o=document.createEvent ("MouseEvent");var a={bubbles:!1,cancelable:!1,view:null,detail:null,screenX:0,s creenY:0,clientX:0,clientY:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button: 0,relatedTarget:null};Object.keys(a).forEach(function(e){e in t&&(a[e]=t[e])}),o .initMouseEvent(e,a.bubbles,a.cancelable,a.view,a.detail,a.screenX,a.screenY,a.c lientX,a.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,a.button,a.relatedTarge t)}r||Object.defineProperty(o,"buttons",{get:function(){return i},enumerable:!0} );var s=0;return s=t.pressure?t.pressure:i?.5:0,Object.defineProperties(o,{point erId:{value:t.pointerId||0,enumerable:!0},width:{value:t.width||0,enumerable:!0} ,height:{value:t.height||0,enumerable:!0},pressure:{value:s,enumerable:!0},tiltX :{value:t.tiltX||0,enumerable:!0},tiltY:{value:t.tiltY||0,enumerable:!0},pointer Type:{value:t.pointerType||"",enumerable:!0},hwTimestamp:{value:t.hwTimestamp||0 ,enumerable:!0},isPrimary:{value:t.isPrimary||!1,enumerable:!0}}),o}var n=!1,r=! 1;try{var i=new MouseEvent("click",{buttons:1});n=!0,r=1===i.buttons}catch(o){}e .PointerEvent=t}(window),function(e){function t(){this.ids=[],this.pointers=[]}t .prototype={set:function(e,t){var n=this.ids.indexOf(e);n>-1?this.pointers[n]=t: (this.ids.push(e),this.pointers.push(t))},has:function(e){return this.ids.indexO f(e)>-1},"delete":function(e){var t=this.ids.indexOf(e);t>-1&&(this.ids.splice(t ,1),this.pointers.splice(t,1))},get:function(e){var t=this.ids.indexOf(e);return this.pointers[t]},get size(){return this.pointers.length},clear:function(){this .ids.length=0,this.pointers.length=0}},e.PointerMap=t}(window.PointerEventsPolyf ill),function(e){var t;if("undefined"!=typeof WeakMap&&0>navigator.userAgent.ind exOf("Firefox/"))t=WeakMap;else{var n=Object.defineProperty,r=Object.hasOwnPrope rty,i=(new Date).getTime()%1e9;t=function(){this.name="__st"+(1e9*Math.random()> >>0)+(i++ +"__")},t.prototype={set:function(e,t){n(e,this.name,{value:t,writable :!0})},get:function(e){return r.call(e,this.name)?e[this.name]:void 0},"delete": function(e){this.set(e,void 0)}}}e.SideTable=t}(window.PointerEventsPolyfill),fu nction(e){var t={targets:new e.SideTable,handledEvents:new e.SideTable,scrollTyp e:new e.SideTable,pointermap:new e.PointerMap,events:[],eventMap:{},eventSources :{},registerSource:function(e,t){var n=t,r=n.events;r&&(this.events=this.events. concat(r),r.forEach(function(e){n[e]&&(this.eventMap[e]=n[e].bind(n))},this),thi s.eventSources[e]=n)},registerTarget:function(e,t){this.scrollType.set(e,t||"non e"),this.listen(this.events,e,this.boundHandler)},unregisterTarget:function(e){t his.scrollType.set(e,null),this.unlisten(this.events,e,this.boundHandler)},down: function(e){this.fireEvent("pointerdown",e)},move:function(e){this.fireEvent("po intermove",e)},up:function(e){this.fireEvent("pointerup",e)},enter:function(e){e .bubbles=!1,this.fireEvent("pointerenter",e)},leave:function(e){e.bubbles=!1,thi s.fireEvent("pointerleave",e)},over:function(e){e.bubbles=!0,this.fireEvent("poi nterover",e)},out:function(e){e.bubbles=!0,this.fireEvent("pointerout",e)},cance l:function(e){this.fireEvent("pointercancel",e)},leaveOut:function(e){e.target.c ontains(e.relatedTarget)||this.leave(e),this.out(e)},enterOver:function(e){e.tar get.contains(e.relatedTarget)||this.enter(e),this.over(e)},eventHandler:function (e){if(!this.handledEvents.get(e)){var t=e.type,n=this.eventMap&&this.eventMap[t ];n&&n(e),this.handledEvents.set(e,!0)}},listen:function(e,t,n){e.forEach(functi on(e){this.addEvent(e,n,!1,t)},this)},unlisten:function(e,t,n){e.forEach(functio n(e){this.removeEvent(e,n,!1,t)},this)},addEvent:function(e,t,n,r){r.addEventLis tener(e,t,n)},removeEvent:function(e,t,n,r){r.removeEventListener(e,t,n)},makeEv ent:function(e,t){var n=new PointerEvent(e,t);return this.targets.set(n,this.tar gets.get(t)||t.target),n},fireEvent:function(e,t){var n=this.makeEvent(e,t);retu rn this.dispatchEvent(n)},cloneEvent:function(e){var t={};for(var n in e)t[n]=e[ n];return t},getTarget:function(e){return this.captureInfo&&this.captureInfo.id= ==e.pointerId?this.captureInfo.target:this.targets.get(e)},setCapture:function(e ,t){this.captureInfo&&this.releaseCapture(this.captureInfo.id),this.captureInfo= {id:e,target:t};var n=new PointerEvent("gotpointercapture",{bubbles:!0});this.im plicitRelease=this.releaseCapture.bind(this,e),document.addEventListener("pointe rup",this.implicitRelease),document.addEventListener("pointercancel",this.implic itRelease),this.targets.set(n,t),this.asyncDispatchEvent(n)},releaseCapture:func tion(e){if(this.captureInfo&&this.captureInfo.id===e){var t=new PointerEvent("lo stpointercapture",{bubbles:!0}),n=this.captureInfo.target;this.captureInfo=null, document.removeEventListener("pointerup",this.implicitRelease),document.removeEv entListener("pointercancel",this.implicitRelease),this.targets.set(t,n),this.asy ncDispatchEvent(t)}},dispatchEvent:function(e){var t=this.getTarget(e);return t? t.dispatchEvent(e):void 0},asyncDispatchEvent:function(e){setTimeout(this.dispat chEvent.bind(this,e),0)}};t.boundHandler=t.eventHandler.bind(t),e.dispatcher=t}( window.PointerEventsPolyfill),function(e){var t=e.dispatcher,n=Array.prototype.f orEach.call.bind(Array.prototype.forEach),r=Array.prototype.map.call.bind(Array. prototype.map),i={ATTRIB:"touch-action",SELECTOR:"[touch-action]",EMITTER:"none" ,XSCROLLER:"pan-x",YSCROLLER:"pan-y",SCROLLER:/^(?:pan-x pan-y)|(?:pan-y pan-x)| scroll$/,OBSERVER_INIT:{subtree:!0,childList:!0,attributes:!0,attributeFilter:[" touch-action"]},watchSubtree:function(t){e.targetFinding.canTarget(t)&&s.observe (t,this.OBSERVER_INIT)},enableOnSubtree:function(e){var t=e||document;this.watch Subtree(e),t===document&&"complete"!==document.readyState?this.installOnLoad():t his.installNewSubtree(t)},installNewSubtree:function(e){n(this.findElements(e),t his.addElement,this)},findElements:function(e){var t=e||document;return t.queryS electorAll?t.querySelectorAll(this.SELECTOR):[]},touchActionToScrollType:functio n(e){var t=e;return t===this.EMITTER?"none":t===this.XSCROLLER?"X":t===this.YSCR OLLER?"Y":this.SCROLLER.exec(t)?"XY":void 0},removeElement:function(n){t.unregis terTarget(n);var r=e.targetFinding.shadow(n);r&&t.unregisterTarget(r)},addElemen t:function(n){var r=n.getAttribute&&n.getAttribute(this.ATTRIB),i=this.touchActi onToScrollType(r);if(i){t.registerTarget(n,i);var o=e.targetFinding.shadow(n);o& &t.registerTarget(o,i)}},elementChanged:function(e){this.removeElement(e),this.a ddElement(e)},concatLists:function(e,t){for(var n,r=0,i=t.length;i>r&&(n=t[r]);r ++)e.push(n);return e},installOnLoad:function(){document.addEventListener("DOMCo ntentLoaded",this.installNewSubtree.bind(this,document))},flattenMutationTree:fu nction(e){var t=r(e,this.findElements,this);return t.push(e),t.reduce(this.conca tLists,[])},mutationWatcher:function(e){e.forEach(this.mutationHandler,this)},mu tationHandler:function(e){var t=e;if("childList"===t.type){var n=this.flattenMut ationTree(t.addedNodes);n.forEach(this.addElement,this);var r=this.flattenMutati onTree(t.removedNodes);r.forEach(this.removeElement,this)}else"attributes"===t.t ype&&this.elementChanged(t.target)}},o=i.mutationWatcher.bind(i);e.installer=i,e .register=i.enableOnSubtree.bind(i),e.setTouchAction=function(e,n){var r=this.to uchActionToScrollType(n);r?t.registerTarget(e,r):t.unregisterTarget(e)}.bind(i); var a=window.MutationObserver||window.WebKitMutationObserver;if(a)var s=new a(o) ;else i.watchSubtree=function(){console.warn("PointerEventsPolyfill: MutationObs ervers not found, touch-action will not be dynamically detected")}}(window.Point erEventsPolyfill),function(e){var t=e.dispatcher,n=e.installer,r=e.findTarget,i= t.pointermap,o=t.scrollType,a=Array.prototype.map.call.bind(Array.prototype.map) ,s=2500,l=25,u={events:["touchstart","touchmove","touchend","touchcancel"],POINT ER_TYPE:"touch",firstTouch:null,isPrimaryTouch:function(e){return this.firstTouc h===e.identifier},setPrimaryTouch:function(e){null===this.firstTouch&&(this.firs tTouch=e.identifier,this.firstXY={X:e.clientX,Y:e.clientY},this.scrolling=!1)},r emovePrimaryTouch:function(e){this.isPrimaryTouch(e)&&(this.firstTouch=null,this .firstXY=null)},touchToPointer:function(e){var n=t.cloneEvent(e);return n.pointe rId=e.identifier+2,n.target=r(n),n.bubbles=!0,n.cancelable=!0,n.button=0,n.butto ns=1,n.width=e.webkitRadiusX||e.radiusX,n.height=e.webkitRadiusY||e.radiusY,n.pr essure=e.webkitForce||e.force,n.isPrimary=this.isPrimaryTouch(e),n.pointerType=t his.POINTER_TYPE,n},processTouches:function(e,t){var n=e.changedTouches,r=a(n,th is.touchToPointer,this);r.forEach(t,this)},shouldScroll:function(e){if(this.firs tXY){var t,n=o.get(e.currentTarget);if("none"===n)t=!1;else if("XY"===n)t=!0;els e{var r=e.changedTouches[0],i=n,a="Y"===n?"X":"Y",s=Math.abs(r["client"+i]-this. firstXY[i]),l=Math.abs(r["client"+a]-this.firstXY[a]);t=s>=l}return this.firstXY =null,t}},findTouch:function(e,t){for(var n,r=0,i=e.length;i>r&&(n=e[r]);r++)if( n.identifier===t)return!0},vacuumTouches:function(e){var t=e.touches;if(i.size>= t.length){var n=[];i.ids.forEach(function(e){if(1!==e&&!this.findTouch(t,e-2)){v ar r=i.get(e).out;n.push(this.touchToPointer(r))}},this),n.forEach(this.cancelOu t,this)}},touchstart:function(e){this.vacuumTouches(e),this.setPrimaryTouch(e.ch angedTouches[0]),this.dedupSynthMouse(e),this.scrolling||this.processTouches(e,t his.overDown)},overDown:function(e){i.set(e.pointerId,{target:e.target,out:e,out Target:e.target}),t.over(e),t.down(e)},touchmove:function(e){this.scrolling||(th is.shouldScroll(e)?(this.scrolling=!0,this.touchcancel(e)):(e.preventDefault(),t his.processTouches(e,this.moveOverOut)))},moveOverOut:function(e){var n=e,r=i.ge t(n.pointerId),o=r.out,a=r.outTarget;t.move(n),o&&a!==n.target&&(o.relatedTarget =n.target,n.relatedTarget=a,o.target=a,t.leaveOut(o),t.enterOver(n)),r.out=n,r.o utTarget=n.target},touchend:function(e){this.dedupSynthMouse(e),this.processTouc hes(e,this.upOut)},upOut:function(e){this.scrolling||(t.up(e),t.out(e)),this.cle anUpPointer(e)},touchcancel:function(e){this.processTouches(e,this.cancelOut)},c ancelOut:function(e){t.cancel(e),t.out(e),this.cleanUpPointer(e)},cleanUpPointer :function(e){i.delete(e.pointerId),this.removePrimaryTouch(e)},dedupSynthMouse:f unction(e){var t=c.lastTouches,n=e.changedTouches[0];if(this.isPrimaryTouch(n)){ var r={x:n.clientX,y:n.clientY};t.push(r);var i=function(e,t){var n=e.indexOf(t) ;n>-1&&e.splice(n,1)}.bind(null,t,r);setTimeout(i,s)}}},c={POINTER_ID:1,POINTER_ TYPE:"mouse",events:["mousedown","mousemove","mouseup","mouseover","mouseout"],g lobal:["mousedown","mouseup","mouseover","mouseout"],lastTouches:[],mouseHandler :t.eventHandler.bind(t),isEventSimulatedFromTouch:function(e){for(var t,n=this.l astTouches,r=e.clientX,i=e.clientY,o=0,a=n.length;a>o&&(t=n[o]);o++){var s=Math. abs(r-t.x),u=Math.abs(i-t.y);
4 if(l>=s&&l>=u)return!0}},prepareEvent:function(e){var n=t.cloneEvent(e);return n .pointerId=this.POINTER_ID,n.isPrimary=!0,n.pointerType=this.POINTER_TYPE,n},mou sedown:function(e){if(!this.isEventSimulatedFromTouch(e)){var n=i.has(this.POINT ER_ID);if(n&&(this.cancel(e),n=!1),!n){var r=this.prepareEvent(e);i.set(this.POI NTER_ID,e),t.down(r),t.listen(this.global,document,this.mouseHandler)}}},mousemo ve:function(e){if(!this.isEventSimulatedFromTouch(e)){var n=this.prepareEvent(e) ;t.move(n)}},mouseup:function(e){if(!this.isEventSimulatedFromTouch(e)){var n=i. get(this.POINTER_ID);if(n&&n.button===e.button){var r=this.prepareEvent(e);t.up( r),this.cleanupMouse()}}},mouseover:function(e){if(!this.isEventSimulatedFromTou ch(e)){var n=this.prepareEvent(e);t.enterOver(n)}},mouseout:function(e){if(!this .isEventSimulatedFromTouch(e)){var n=this.prepareEvent(e);t.leaveOut(n)}},cancel :function(e){var n=this.prepareEvent(e);t.cancel(n),this.cleanupMouse()},cleanup Mouse:function(){i.delete(this.POINTER_ID),t.unlisten(this.global,document,this. mouseHandler)}},d={events:["MSPointerDown","MSPointerMove","MSPointerUp","MSPoin terOut","MSPointerOver","MSPointerCancel","MSGotPointerCapture","MSLostPointerCa pture"],POINTER_TYPES:["","unavailable","touch","pen","mouse"],prepareEvent:func tion(e){var n=t.cloneEvent(e);return n.pointerType=this.POINTER_TYPES[e.pointerT ype],n},cleanup:function(e){i.delete(e)},MSPointerDown:function(e){i.set(e.point erId,e);var n=this.prepareEvent(e);t.down(n)},MSPointerMove:function(e){var n=th is.prepareEvent(e);t.move(n)},MSPointerUp:function(e){var n=this.prepareEvent(e) ;t.up(n),this.cleanup(e.pointerId)},MSPointerOut:function(e){var n=this.prepareE vent(e);t.leaveOut(n)},MSPointerOver:function(e){var n=this.prepareEvent(e);t.en terOver(n)},MSPointerCancel:function(e){var n=this.prepareEvent(e);t.cancel(n),t his.cleanup(e.pointerId)},MSLostPointerCapture:function(e){var n=t.makeEvent("lo stpointercapture",e);t.dispatchEvent(n)},MSGotPointerCapture:function(e){var n=t .makeEvent("gotpointercapture",e);t.dispatchEvent(n)}};if(void 0===window.naviga tor.pointerEnabled){if(window.navigator.msPointerEnabled){var h=window.navigator .msMaxTouchPoints;Object.defineProperty(window.navigator,"maxTouchPoints",{value :h,enumerable:!0}),t.registerSource("ms",d),t.registerTarget(document)}else t.re gisterSource("mouse",c),"ontouchstart"in window&&t.registerSource("touch",u),n.e nableOnSubtree(document),t.listen(["mousemove"],document,t.boundHandler);Object. defineProperty(window.navigator,"pointerEnabled",{value:!0,enumerable:!0})}}(win dow.PointerEventsPolyfill),function(e){function t(e){if(!i.pointermap.has(e))thr ow Error("InvalidPointerId")}var n,r,i=e.dispatcher,o=window.navigator;o.msPoint erEnabled?(n=function(e){t(e),this.msSetPointerCapture(e)},r=function(e){t(e),th is.msReleasePointerCapture(e)}):(n=function(e){t(e),i.setCapture(e,this)},r=func tion(e){t(e),i.releaseCapture(e,this)}),Element.prototype.setPointerCapture||Obj ect.defineProperties(Element.prototype,{setPointerCapture:{value:n},releasePoint erCapture:{value:r}})}(window.PointerEventsPolyfill),PointerGestureEvent.prototy pe.preventTap=function(){this.tapPrevented=!0},function(e){e=e||{},e.utils={LCA: {find:function(e,t){if(e===t)return e;if(e.contains){if(e.contains(t))return e;i f(t.contains(e))return t}var n=this.depth(e),r=this.depth(t),i=n-r;for(i>0?e=thi s.walk(e,i):t=this.walk(t,-i);e&&t&&e!==t;)e=this.walk(e,1),t=this.walk(t,1);ret urn e},walk:function(e,t){for(var n=0;t>n;n++)e=e.parentNode;return e},depth:fun ction(e){for(var t=0;e;)t++,e=e.parentNode;return t}}},e.findLCA=function(t,n){r eturn e.utils.LCA.find(t,n)},window.PointerGestures=e}(window.PointerGestures),f unction(e){var t;if("undefined"!=typeof WeakMap&&0>navigator.userAgent.indexOf(" Firefox/"))t=WeakMap;else{var n=Object.defineProperty,r=Object.hasOwnProperty,i= (new Date).getTime()%1e9;t=function(){this.name="__st"+(1e9*Math.random()>>>0)+( i++ +"__")},t.prototype={set:function(e,t){n(e,this.name,{value:t,writable:!0})} ,get:function(e){return r.call(e,this.name)?e[this.name]:void 0},"delete":functi on(e){this.set(e,void 0)}}}e.SideTable=t}(window.PointerGestures),function(e){fu nction t(){this.ids=[],this.pointers=[]}t.prototype={set:function(e,t){var n=thi s.ids.indexOf(e);n>-1?this.pointers[n]=t:(this.ids.push(e),this.pointers.push(t) )},has:function(e){return this.ids.indexOf(e)>-1},"delete":function(e){var t=thi s.ids.indexOf(e);t>-1&&(this.ids.splice(t,1),this.pointers.splice(t,1))},get:fun ction(e){var t=this.ids.indexOf(e);return this.pointers[t]},get size(){return th is.pointers.length},clear:function(){this.ids.length=0,this.pointers.length=0}}, window.Map&&(t=window.Map),e.PointerMap=t}(window.PointerGestures),function(e){v ar t={handledEvents:new e.SideTable,targets:new e.SideTable,handlers:{},recogniz ers:{},events:["pointerdown","pointermove","pointerup","pointerover","pointerout ","pointercancel"],registerRecognizer:function(e,t){var n=t;this.recognizers[e]= n,this.events.forEach(function(e){if(n[e]){var t=n[e].bind(n);this.addHandler(e, t)}},this)},addHandler:function(e,t){var n=e;this.handlers[n]||(this.handlers[n] =[]),this.handlers[n].push(t)},registerTarget:function(e){this.listen(this.event s,e)},unregisterTarget:function(e){this.unlisten(this.events,e)},eventHandler:fu nction(e){if(!this.handledEvents.get(e)){var t,n=e.type;(t=this.handlers[n])&&th is.makeQueue(t,e),this.handledEvents.set(e,!0)}},makeQueue:function(e,t){var n=t his.cloneEvent(t);setTimeout(this.runQueue.bind(this,e,n),0)},runQueue:function( e,t){this.currentPointerId=t.pointerId;for(var n,r=0,i=e.length;i>r&&(n=e[r]);r+ +)n(t);this.currentPointerId=0},listen:function(e,t){e.forEach(function(e){this. addEvent(e,this.boundHandler,!1,t)},this)},unlisten:function(e){e.forEach(functi on(e){this.removeEvent(e,this.boundHandler,!1,inTarget)},this)},addEvent:functio n(e,t,n,r){r.addEventListener(e,t,n)},removeEvent:function(e,t,n,r){r.removeEven tListener(e,t,n)},makeEvent:function(e,t){return new PointerGestureEvent(e,t)},c loneEvent:function(e){var t={};for(var n in e)t[n]=e[n];return t},dispatchEvent: function(e,t){var n=t||this.targets.get(e);n&&(n.dispatchEvent(e),e.tapPrevented &&this.preventTap(this.currentPointerId))},asyncDispatchEvent:function(e,t){var n=function(){this.dispatchEvent(e,t)}.bind(this);setTimeout(n,0)},preventTap:fun ction(e){var t=this.recognizers.tap;t&&t.preventTap(e)}};t.boundHandler=t.eventH andler.bind(t),e.dispatcher=t,e.register=function(t){var n=window.PointerEventsP olyfill;n&&n.register(t),e.dispatcher.registerTarget(t)},t.registerTarget(docume nt)}(window.PointerGestures),function(e){var t=e.dispatcher,n={HOLD_DELAY:200,WI GGLE_THRESHOLD:16,events:["pointerdown","pointermove","pointerup","pointercancel "],heldPointer:null,holdJob:null,pulse:function(){var e=Date.now()-this.heldPoin ter.timeStamp,t=this.held?"holdpulse":"hold";this.fireHold(t,e),this.held=!0},ca ncel:function(){clearInterval(this.holdJob),this.held&&this.fireHold("release"), this.held=!1,this.heldPointer=null,this.target=null,this.holdJob=null},pointerdo wn:function(e){e.isPrimary&&!this.heldPointer&&(this.heldPointer=e,this.target=e .target,this.holdJob=setInterval(this.pulse.bind(this),this.HOLD_DELAY))},pointe rup:function(e){this.heldPointer&&this.heldPointer.pointerId===e.pointerId&&this .cancel()},pointercancel:function(){this.cancel()},pointermove:function(e){if(th is.heldPointer&&this.heldPointer.pointerId===e.pointerId){var t=e.clientX-this.h eldPointer.clientX,n=e.clientY-this.heldPointer.clientY;t*t+n*n>this.WIGGLE_THRE SHOLD&&this.cancel()}},fireHold:function(e,n){var r={pointerType:this.heldPointe r.pointerType};n&&(r.holdTime=n);var i=t.makeEvent(e,r);t.dispatchEvent(i,this.t arget),i.tapPrevented&&t.preventTap(this.heldPointer.pointerId)}};t.registerReco gnizer("hold",n)}(window.PointerGestures),function(e){var t=e.dispatcher,n=new e .PointerMap,r={events:["pointerdown","pointermove","pointerup","pointercancel"], WIGGLE_THRESHOLD:4,clampDir:function(e){return e>0?1:-1},calcPositionDelta:funct ion(e,t){var n=0,r=0;return e&&t&&(n=t.pageX-e.pageX,r=t.pageY-e.pageY),{x:n,y:r }},fireTrack:function(e,n,r){var i=r,o=this.calcPositionDelta(i.downEvent,n),a=t his.calcPositionDelta(i.lastMoveEvent,n);a.x&&(i.xDirection=this.clampDir(a.x)), a.y&&(i.yDirection=this.clampDir(a.y));var s={dx:o.x,dy:o.y,ddx:a.x,ddy:a.y,clie ntX:n.clientX,clientY:n.clientY,pageX:n.pageX,pageY:n.pageY,screenX:n.screenX,sc reenY:n.screenY,xDirection:i.xDirection,yDirection:i.yDirection,trackInfo:i.trac kInfo,pointerType:n.pointerType};"trackend"===e&&(s._releaseTarget=n.target);var l=t.makeEvent(e,s);i.lastMoveEvent=n,t.dispatchEvent(l,i.downTarget)},pointerdo wn:function(e){if(e.isPrimary&&("mouse"===e.pointerType?1===e.buttons:!0)){var t ={downEvent:e,downTarget:e.target,trackInfo:{},lastMoveEvent:null,xDirection:0,y Direction:0,tracking:!1};n.set(e.pointerId,t)}},pointermove:function(e){var t=n. get(e.pointerId);if(t)if(t.tracking)this.fireTrack("track",e,t);else{var r=this. calcPositionDelta(t.downEvent,e),i=r.x*r.x+r.y*r.y;i>this.WIGGLE_THRESHOLD&&(t.t racking=!0,this.fireTrack("trackstart",t.downEvent,t),this.fireTrack("track",e,t ))}},pointerup:function(e){var t=n.get(e.pointerId);t&&(t.tracking&&this.fireTra ck("trackend",e,t),n.delete(e.pointerId))},pointercancel:function(e){this.pointe rup(e)}};t.registerRecognizer("track",r)}(window.PointerGestures),function(e){va r t=e.dispatcher,n={MIN_VELOCITY:.5,MAX_QUEUE:4,moveQueue:[],target:null,pointer Id:null,events:["pointerdown","pointermove","pointerup","pointercancel"],pointer down:function(e){e.isPrimary&&!this.pointerId&&(this.pointerId=e.pointerId,this. target=e.target,this.addMove(e))},pointermove:function(e){e.pointerId===this.poi nterId&&this.addMove(e)},pointerup:function(e){e.pointerId===this.pointerId&&thi s.fireFlick(e),this.cleanup()},pointercancel:function(){this.cleanup()},cleanup: function(){this.moveQueue=[],this.target=null,this.pointerId=null},addMove:funct ion(e){this.moveQueue.length>=this.MAX_QUEUE&&this.moveQueue.shift(),this.moveQu eue.push(e)},fireFlick:function(e){for(var n,r,i,o,a,s,l,u=e,c=this.moveQueue.le ngth,d=0,h=0,p=0,f=0;c>f&&(l=this.moveQueue[f]);f++)n=u.timeStamp-l.timeStamp,r= u.clientX-l.clientX,i=u.clientY-l.clientY,o=r/n,a=i/n,s=Math.sqrt(o*o+a*a),s>p&& (d=o,h=a,p=s);var v=Math.abs(d)>Math.abs(h)?"x":"y",m=this.calcAngle(d,h);if(Mat h.abs(p)>=this.MIN_VELOCITY){var g=t.makeEvent("flick",{xVelocity:d,yVelocity:h, velocity:p,angle:m,majorAxis:v,pointerType:e.pointerType});t.dispatchEvent(g,thi s.target)}},calcAngle:function(e,t){return 180*Math.atan2(t,e)/Math.PI}};t.regis terRecognizer("flick",n)}(window.PointerGestures),function(e){var t=e.dispatcher ,n=new e.PointerMap,r={events:["pointerdown","pointermove","pointerup","pointerc ancel"],pointerdown:function(e){e.isPrimary&&!e.tapPrevented&&n.set(e.pointerId, {target:e.target,x:e.clientX,y:e.clientY})},pointermove:function(e){if(e.isPrima ry){var t=n.get(e.pointerId);t&&e.tapPrevented&&n.delete(e.pointerId)}},pointeru p:function(r){var i=n.get(r.pointerId);if(i&&!r.tapPrevented){var o=e.findLCA(i. target,r.target);if(o){var a=t.makeEvent("tap",{x:r.clientX,y:r.clientY,pointerT ype:r.pointerType});t.dispatchEvent(a,o)}}n.delete(r.pointerId)},pointercancel:f unction(e){n.delete(e.pointerId)},preventTap:function(e){n.delete(e)}};t.registe rRecognizer("tap",r)}(window.PointerGestures),function(){var e=Array.prototype.f orEach.call.bind(Array.prototype.forEach);window.forEach=e}(),function(){functio n e(e,n){1==arguments.length&&(n=e,e=null),n&&n.hasOwnProperty("constructor")||( n.constructor=function(){this.super()});var r=n.constructor,o=e&&e.prototype||Ob ject.prototype;return r.prototype=t(o,n),"super"in r.prototype||(r.prototype.sup er=i),r}function t(e,t){return Object.create(e,n(t))}function n(e){var t={};for( var n in e)t[n]=r(e,n);return t}function r(e,t){return e&&Object.getOwnPropertyD escriptor(e,t)||r(Object.getPrototypeOf(e),t)}function i(e){var t=i.caller,n=t._ nom;if(!n&&(n=t._nom=s.call(this,t),!n))return console.warn('called super() on a method not in "this"'),void 0;"_super"in t||a(t,n,Object.getPrototypeOf(this)); var r=t._super;if(r){var o=r[n];return"_super"in o||a(o,n,r),o.apply(this,e||[]) }}function o(e,t,n){for(var r=e;r&&(!r.hasOwnProperty(t)||r[t]==n);)r=Object.get PrototypeOf(r);return r}function a(e,t,n){e._super=o(n,t,e),e._super&&(e._super[ t]._nom=t)}function s(e){for(var t in this){var n=r(this,t);if(n.value==e)return t}}window.$class=e,window.extend=t,window.$super=i}(),function(){function e(e,r ){if(e!=window){if(!(e&&e instanceof HTMLElement))throw"First argument to Polyme r.register must be an HTMLElement";var i=mixin({},Polymer.base,r);i.elementEleme nt=e,Polymer.addResolvePath(i,e),i.installTemplate=function(){this.super(),n.cal l(this,e)},i.readyCallback=t,Polymer.parseHostEvents(e.attributes,i),Polymer.pub lishAttributes(e,i),Polymer.installSheets(e),Polymer.shimStyling(e),e.register({ prototype:i}),logFlags.comps&&console.log("Polymer: element registered"+e.option s.name)}}function t(){this.installTemplate(),i.call(this)}function n(e){var t=e. querySelector("template");if(t){var n=this.webkitCreateShadowRoot();return n.app lyAuthorStyles=this.applyAuthorStyles,CustomElements.watchShadow(this),n.host=th is,n.appendChild(t.createInstance()),PointerGestures.register(n),PointerEventsPo lyfill.setTouchAction(n,this.getAttribute("touch-action")),r.call(this,n),n}}fun ction r(e){CustomElements.takeRecords(),Polymer.bindModel.call(this,e),Polymer.m arshalNodeReferences.call(this,e);var t=Polymer.accumulateEvents(e);Polymer.bind AccumulatedLocalEvents.call(this,e,t)}function i(){Polymer.observeProperties.cal l(this),Polymer.takeAttributes.call(this);var e=Polymer.accumulateHostEvents.cal l(this);Polymer.bindAccumulatedHostEvents.call(this,e),this.ready&&this.ready()} function o(e,t){for(var n=e;n&&n!=this;){var r=Array.prototype.indexOf.call(t,n) ;if(r>=0)return r;n=n.parentNode}}window.logFlags||{},window.Polymer={register:e ,findDistributedTarget:o,instanceReady:i}}(),function(e){var t=window.logFlags|| {},n={"super":$super,isPolymerElement:!0,bind:function(){Polymer.bind.apply(this ,arguments)},unbind:function(){Polymer.unbind.apply(this,arguments)},job:functio n(){return Polymer.job.apply(this,arguments)},asyncMethod:function(e,t,n){var r= t&&t.length?t:[t];return window.setTimeout(function(){(this[e]||e).apply(this,r) }.bind(this),n||0)},dispatch:function(e,t){this[e]&&this[e].apply(this,t)},fire: function(e,n,r){var i=r||this;return t.events&&console.log("[%s]: sending [%s]", i.localName,e),i.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:n})),n},asen d:function(){this.asyncMethod("send",arguments)},classFollows:function(e,t,n){t& &t.classList.remove(n),e&&e.classList.add(n)}};n.send=n.fire,e.base=n}(window.Po lymer),function(){function e(e,n,r,i){t.bind&&console.log("[%s]: bindProperties: [%s] to [%s].[%s]",r.localName||"object",i,e.localName,n);var o=PathObserver.ge tValueAtPath(r,i);(null==o||void 0===o)&&PathObserver.setValueAtPath(r,i,e[n]),O bject.defineProperty(e,n,{get:function(){return PathObserver.getValueAtPath(r,i) },set:function(e){PathObserver.setValueAtPath(r,i,e)},configurable:!0,enumerable :!0})}var t=window.logFlags||{};Polymer.bindProperties=e}(),function(){function e(e,t,n){var r=u.get(e);r||u.set(e,r={}),r[t.toLowerCase()]=n}function t(e,t){va r n=u.get(e);n&&delete n[t.toLowerCase()]}function n(n){var r=n.prototype,i=r.bi nd,o=r.unbind;r.bind=function(t,n,r){i.apply(this,arguments),e(this,t,r)},r.unbi nd=function(e){o.apply(this,arguments),t(this,e)}}function r(e){return e&&u.get( e)||c}function i(e,t){return r(e)[t.toLowerCase()]}function o(e){l.bind&&console .group("[%s] bindModel",this.localName),HTMLTemplateElement.bindAllMustachesFrom _(e,this),l.bind&&console.groupEnd()}function a(t,n,r){var i=Polymer.propertyFor Attribute.call(this,t);i?(e(this,i,r),Polymer.bindProperties(this,i,n,r)):HTMLEl ement.prototype.bind.apply(this,arguments)}function s(e){var n=Polymer.propertyF orAttribute.call(this,e);n?(t(this,e),Object.defineProperty(this,e,{value:this[e ],enumerable:!0,writable:!0,configurable:!0})):HTMLElement.prototype.unbind.appl y(this,arguments)}var l=window.logFlags||{},u=new SideTable;[Node,Element,Text,H TMLInputElement].forEach(n);var c={},d=/\{\{([^{}]*)}}/;Polymer.bind=a,Polymer.u nbind=s,Polymer.getBinding=i,Polymer.bindModel=o,Polymer.bindPattern=d}(),functi on(){function e(){forEach(this.attributes,function(e){var i=t.call(this,e.name); if(i){if(e.value.search(r)>=0)return;var o=this[i],a=n(e.value,o);a!==o&&(this[i ]=a)}},this)}function t(e){var t=Object.keys(this[i]);return t[t.map(l).indexOf( e.toLowerCase())]}function n(e,t){var n=typeof t;switch(t instanceof Date&&(n="d ate"),n){case"string":return e;case"date":return new Date(Date.parse(e)||Date.no w());case"boolean":if(""==e)return!0}switch(e){case"true":return!0;case"false":r eturn!1}var r=parseFloat(e);return r+""===e?r:e}var r=Polymer.bindPattern,i="__p ublished",o="attributes",a="publish",s=function(e,t){var n={},r=e.getAttribute(o );if(r){var s=r.split(r.indexOf(",")>=0?",":" ");s.forEach(function(e){e=e.trim( ),e&&(n[e]=null)})}var l=e.options.prototype;Object.keys(n).forEach(function(e){ e in t||e in l||(t[e]=n[e])});var u=t[a];u&&(Object.keys(u).forEach(function(e){ t[e]=u[e]}),n=mixin(n,u)),t[i]=mixin({},l[i],n)},l=String.prototype.toLowerCase. call.bind(String.prototype.toLowerCase);Polymer.takeAttributes=e,Polymer.publish Attributes=s,Polymer.propertyForAttribute=t}(),Polymer.marshalNodeReferences=fun ction(e){var t=this.$=this.$||{};if(e){var n=e.querySelectorAll("[id]");forEach( n,function(e){t[e.id]=e})}},function(){function e(e,t,n){var r=n.bind(this);for( var i in t)l.events&&console.log('[%s] bindAccumulatedEvents: addEventListener(" %s", listen)',e.localName||"root",i),e.addEventListener(i,r)}function t(t){e.cal l(this,this,t,i)}function n(t,n){e.call(this,t,n,r)}function r(e){if(!e.cancelBu bble){e.on=u+e.type,l.events&&console.group("[%s]: listenLocal [%s]",this.localN ame,e.on);for(var t=e.target;t&&t!=this;){var n=w(t);if(n&&a.call(n,t,e))return; t=t.parentNode}l.events&&console.groupEnd()}}function i(e){e.cancelBubble||(l.ev ents&&console.group("[%s]: listenHost [%s]",this.localName,e.type),s.call(this,t his,e),l.events&&console.groupEnd())}function o(e){var t=T.get(e);return t||(t=[ ],T.set(e,t)),t}function a(e,t){if(e.attributes){var n=o(t);if(0>n.indexOf(e)){n .push(e);var r=e.getAttribute(t.on);r&&(l.events&&console.log("[%s] found handle r name [%s]",this.localName,r),E(this,r,[t,t.detail,e]))}}return t.cancelBubble} function s(e,t){var n=M.call(e,t.type);return n&&(l.events&&console.log("[%s] fo und host handler name [%s]",e.localName,n),E(e,n,[t,t.detail,e])),t.cancelBubble }var l=window.logFlags||{},u="on-",c=function(e,t){t.eventDelegates=d(e)},d=func tion(e){var t={};if(e)for(var n,r=0;n=e[r];r++)n.name.slice(0,u.length)==u&&(t[n .name.slice(u.length)]=n.value);return t},h=function(e,t){var n=t||{};return p(e ,n),m(e,n),g(e,n),n},p=function(e,t){var n=e.attributes;if(n)for(var r,i=0;r=n[i ];i++)r.name.slice(0,u.length)===u&&v(r.name.slice(u.length),t)},f={webkitanimat ionstart:"webkitAnimationStart",webkitanimationend:"webkitAnimationEnd",webkittr ansitionend:"webkitTransitionEnd",domfocusout:"DOMFocusOut",domfocusin:"DOMFocus In"},v=function(e,t){var n=f[e]||e;t[n]=1},m=function(e,t){for(var n,r=e.childNo des,i=0;n=r[i];i++)h(n,t)},g=function(e,t){if("template"==e.localName){var n=b(e );n&&m(n,t)}},b=function(e){return e.ref?e.ref.content:e.content},y=function(e){ for(var t=e||{},n=this.__proto__;n&&n!==HTMLElement.prototype;){if(n.hasOwnPrope rty("eventDelegates"))for(var r in n.eventDelegates)v(r,t);n=n.__proto__}return t},w=function(e){for(var t=e;t.parentNode&&"shadow-root"!==t.localName;)t=t.pare ntNode;return t.host},E=function(e,t,n){e&&(l.events&&console.group("[%s] dispat ch [%s]",e.localName,t),e.dispatch(t,n),l.events&&console.groupEnd())},T=new Sid eTable("handledList"),M=function(e){for(var t=this;t;){if(t.hasOwnProperty("even tDelegates")){var n=t.eventDelegates[e]||t.eventDelegates[e.toLowerCase()];if(n) return n}t=t.__proto__}};Polymer.parseHostEvents=c,Polymer.accumulateEvents=h,Po lymer.accumulateHostEvents=y,Polymer.bindAccumulatedHostEvents=t,Polymer.bindAcc umulatedLocalEvents=n}(),function(){function e(){for(var e in this)t.call(this,e )}function t(e){n.call(this,e)&&(i.observe&&console.log("["+this.localName+"] wa tching ["+e+"]"),new PathObserver(this,e,function(t,n){i.data&&console.log("[%s# %s] watch: [%s] now [%s] was [%s]",this.localName,this.node.id||"",e,this[e],n), r.call(this,e,n)}.bind(this)))}function n(e){return"_"!=e[0]&&!(e in Object.prot otype)&&Boolean(this[e+o])}function r(e,t){var n=e+o;this[n]&&this[n](t)}var i=w indow.logFlags||{},o="Changed";Polymer.observeProperties=e}(),function(){functio n e(e){t(e),n(e)}function t(e){var t=e.querySelectorAll("[rel=stylesheet]"),n=e. querySelector("template");if(n)var r=templateContent(n);r&&f(t,function(e){if(!e .hasAttribute(p)){e.parentNode.removeChild(e);var t=o(e);t&&r.insertBefore(t,r.f irstChild)}})}function n(e){var t=e.globalStyles||(e.globalStyles=l(e,"global")) ;a(t,u.head)}function r(e,t){var n=t.controllerStyles||(t.controllerStyles=l(t," controller"));c.queue(function(){var t=i(e);t&&(Polymer.shimPolyfillDirectives(n ,e.localName),a(n,t))})}function i(e){for(var t=e;t.parentNode&&"shadow-root"!=t .localName;)t=t.parentNode;return t==u?u.head:t}function o(e){if(e.__resource){v ar t=u.createElement("style");return t.textContent=e.__resource,t}console.warn(" Could not find content for stylesheet",e)}function a(e,t){e.forEach(function(e){ t.appendChild(e.cloneNode(!0))})}function s(e,t){return h?h.call(e,t):void 0}fun ction l(e,t){var n=[],r=e.querySelectorAll("[rel=stylesheet]"),i="["+p+"="+t+"]" ;Array.prototype.forEach.call(r,function(e){s(e,i)&&(e.parentNode.removeChild(e) ,n.push(o(e)))});var a=e.querySelectorAll("style");return Array.prototype.forEac h.call(a,function(e){s(e,i)&&(e.parentNode.removeChild(e),n.push(e))}),n}window. logFlags||{};var u=window.ShadowDOMPolyfill?ShadowDOMPolyfill.wrap(document):doc ument,c={list:[],queue:function(e){e&&c.list.push(e),c.queueFlush()},queueFlush: function(){c.flushing||(c.flushing=!0,requestAnimationFrame(c.flush))},flush:fun ction(){c.list.forEach(function(e){e()}),c.list=[],c.flushing=!1}},d=HTMLElement .prototype,h=d.matches||d.matchesSelector||d.webkitMatchesSelector||d.mozMatches Selector,p="polymer-scope",f=Array.prototype.forEach.call.bind(Array.prototype.f orEach);Polymer.installSheets=e,Polymer.installControllerStyles=r}(),function(){ var e=Array.prototype.forEach.call.bind(Array.prototype.forEach),t=Array.prototy pe.concat.call.bind(Array.prototype.concat),n=Array.prototype.slice.call.bind(Ar ray.prototype.slice),r={hostRuleRe:/@host[^{]*{(([^}]*?{[^{]*?}[\s\S]*?)+)}/gim, selectorRe:/([^{]*)({[\s\S]*?})/gim,hostFixableRe:/^[.\[:]/,cssCommentRe:/\/\*[^ *]*\*+([^/*][^*]*\*+)*\//gim,cssPolyfillCommentRe:/\/\*\s*@polyfill ([^*]*\*+([^ /*][^*]*\*+)*\/)([^{]*?){/gim,selectorReSuffix:"([>\\s~+[.,{:][\\s\\S]*)?$",host Re:/@host/gim,cache:{},shimStyling:function(e){if(window.ShadowDOMPolyfill&&e){v ar t=e.options.name;r.cacheDefinition(e),r.shimPolyfillDirectives(e.styles,t),r. applyShimming(r.stylesForElement(e),t)}},shimShadowDOMStyling:function(e,t){wind ow.ShadowDOMPolyfill&&(r.shimPolyfillDirectives(e,t),r.applyShimming(e,t))},appl yShimming:function(e,t){this.shimAtHost(e,t),this.shimScoping(e,t)},cacheDefinit ion:function(e){var t=e.options.name,i=e.querySelector("template"),o=i&&template Content(i),a=o&&o.querySelectorAll("style");e.styles=a?n(a):[],e.templateContent =o,r.cache[t]=e},stylesForElement:function(e){var r=e.styles,i=e.templateContent &&e.templateContent.querySelector("shadow");if(i||null===e.templateContent){var o=this.findExtendee(e.options.name);if(o){var a=this.stylesForElement(o);r=t(n(a ),n(r))}}return r},findExtendee:function(e){var t=this.cache[e];return t&&this.c ache[t.options.extends]},shimPolyfillDirectives:function(t,n){window.ShadowDOMPo lyfill&&t&&e(t,function(e){e.textContent=this.convertPolyfillDirectives(e.textCo ntent,n)},this)},shimAtHost:function(e,t){if(e){var n=this.convertAtHostStyles(e ,t);this.addCssToDocument(n)}},shimScoping:function(e,t){e&&this.applyPseudoScop ing(e,t)},convertPolyfillDirectives:function(e){for(var t,n="",r=0;t=this.cssPol yfillCommentRe.exec(e);)n+=e.substring(r,t.index),n+=t[1].slice(0,-2)+"{",r=this .cssPolyfillCommentRe.lastIndex;return n+=e.substring(r,e.length)},findAtHostRul es:function(e,t){return Array.prototype.filter.call(e,this.isHostRule.bind(this, t))},isHostRule:function(e,t){return t.selectorText&&t.selectorText.match(e)||t. cssRules&&this.findAtHostRules(t.cssRules,e).length||t.type==CSSRule.WEBKIT_KEYF RAMES_RULE},convertAtHostStyles:function(e,t){for(var n,r=this.stylesToCssText(e ),i="",o=0;n=this.hostRuleRe.exec(r);)i+=r.substring(o,n.index),i+=this.scopeHos tCss(n[1],t),o=this.hostRuleRe.lastIndex;i+=r.substring(o,r.length);var a=RegExp ("^"+t+this.selectorReSuffix,"m"),r=this.rulesToCss(this.findAtHostRules(this.cs sToRules(i),a));return r},scopeHostCss:function(e,t){for(var n,r="";n=this.selec torRe.exec(e);)r+=this.scopeHostSelector(n[1],t)+" "+n[2]+"\n ";return r},scop eHostSelector:function(e,t){var n=[],r=e.split(",");return r.forEach(function(e) {e=e.trim(),e.indexOf("*")>=0?e=e.replace("*",t):e.match(this.hostFixableRe)&&(e =t+e),n.push(e)},this),n.join(", ")},applyPseudoScoping:function(t,n){e(t,functi on(e){e.parentNode&&e.parentNode.removeChild(e)});var r=this.stylesToCssText(t). replace(this.hostRuleRe,""),i=this.cssToRules(r),r=this.pseudoScopeRules(i,n);th is.addCssToDocument(r)},pseudoScopeRules:function(t,n){var r="";return e(t,funct ion(e){e.selectorText&&e.style&&e.style.cssText?(r+=this.pseudoScopeSelector(e.s electorText,n)+" {\n ",r+=e.style.cssText+"\n}\n\n"):e.media?(r+="@media "+e. media.mediaText+" {\n",r+=this.pseudoScopeRules(e.cssRules,n),r+="\n}\n\n"):e.cs sText&&(r+=e.cssText+"\n\n")},this),r},pseudoScopeSelector:function(e,t){var n=[ ],r=e.split(",");return r.forEach(function(e){n.push(t+" "+e.trim())}),n.join(", ")},stylesToCssText:function(t,n){var r="";return e(t,function(e){r+=e.textCont ent+"\n\n"}),n||(r=this.stripCssComments(r)),r},stripCssComments:function(e){ret urn e.replace(this.cssCommentRe,"")},cssToRules:function(e){var t=document.creat eElement("style");t.textContent=e,document.head.appendChild(t);var n=t.sheet.css Rules;return t.parentNode.removeChild(t),n},rulesToCss:function(e){for(var t=0,n =[];e.length>t;t++)n.push(e[t].cssText);return n.join("\n\n")},addCssToDocument: function(e){e&&this.getSheet().appendChild(document.createTextNode(e))},getSheet :function(){return this.sheet||(this.sheet=document.createElement("style")),this .sheet},apply:function(){this.addCssToDocument("style { display: none !important ; }\n"),document.head.appendChild(this.getSheet())}};document.addEventListener(" WebComponentsReady",function(){r.apply()}),Polymer.shimStyling=r.shimStyling,Pol ymer.shimShadowDOMStyling=r.shimShadowDOMStyling,Polymer.shimPolyfillDirectives= r.shimPolyfillDirectives.bind(r)}(window),function(){function e(e,t){var r=n(t); e.resolvePath=function(e){return r+e}}function t(e){if(e){var t=e.split("/");ret urn t.pop(),t.push(""),t.join("/")}return""}function n(e){return t(HTMLImports.g etDocumentUrl(e.ownerDocument))}Polymer.addResolvePath=e}(),function(){function e(e,n,r){var i=e||new t(this);return i.stop(),i.go(n,r),i}var t=function(e){this .context=e};t.prototype={go:function(e,t){this.callback=e,this.handle=setTimeout (function(){this.handle=null,e.call(this.context)}.bind(this),t)},stop:function( ){this.handle&&(clearTimeout(this.handle),this.handle=null)},complete:function() {this.handle&&(this.stop(),this.callback.call(this.context))}},Polymer.job=e}(), function(){document.write("<!-- begin Polymer injections -->\n"),document.write( "<!-- injected meta tags for mobile -->\n"),document.write('<meta name="apple-mo bile-web-app-capable" content="yes">\n'),document.write('<meta name="viewport" c ontent="initial-scale=1.0, maximum-scale=1.0, user-scalable=no">\n'),document.wr ite("<!-- injected FOUC prevention -->\n"),document.write("<style>body {opacity: 0;}</style>"),document.write("<!-- end Polymer injections -->\n"),window.addEve ntListener("WebComponentsReady",function(){document.body.style.webkitTransition= "opacity 0.3s",document.body.style.opacity=1})}();
5 //@ sourceMappingURL=polymer.min.js.map
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698