jekyll-theme-hydejack 6.6.0 → 6.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/_includes/footer.html +1 -1
- data/_includes/head.html +2 -2
- data/_includes/header.txt +1 -1
- data/_includes/scripts.html +1 -1
- data/_layouts/compress.html +1 -1
- data/assets/js/hydejack.js +2 -2
- data/assets/version.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22847fc38d0c9590fbeb6905aac4b621de98277d
|
4
|
+
data.tar.gz: 49722e38941272639d1285e902a1a3aecf964613
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7800d5e794e875cef097eeea207c08bd77999ae6b607258be5dbaa42b146efc1216e16b2f82797eb6e2f0ee5908bbfd059ad0571b7265574c24c7db0ba822cc
|
7
|
+
data.tar.gz: 6377645eec3f956e50c951a0284c4ddadf937404d869c810225b2904710a43c359febada1a73eabf9b8855725e3097bbad68fc93b65a09fda1ac98bb20053148
|
data/README.md
CHANGED
@@ -81,7 +81,7 @@ usage of 3rd party plugins.
|
|
81
81
|
|
82
82
|
[license]: LICENSE.md
|
83
83
|
[pro]: licenses/PRO-license.md
|
84
|
-
[docs]: docs/6.6.
|
84
|
+
[docs]: docs/6.6.1/index.md
|
85
85
|
|
86
86
|
[download]: https://github.com/qwtel/hydejack/releases
|
87
87
|
[gem]: https://rubygems.org/gems/jekyll-theme-hydejack
|
data/_includes/footer.html
CHANGED
@@ -4,6 +4,6 @@
|
|
4
4
|
{{ site.copyright | markdownify }}
|
5
5
|
{% endif %}
|
6
6
|
<p>
|
7
|
-
<code>Powered by <a href="https://qwtel.com/hydejack/">Hydejack</a> v<span id="_version">6.6.
|
7
|
+
<code>Powered by <a href="https://qwtel.com/hydejack/">Hydejack</a> v<span id="_version">6.6.1</span></code>
|
8
8
|
</p>
|
9
9
|
</footer>
|
data/_includes/head.html
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
{% capture title %}
|
10
10
|
{% if page.url == "/" %}
|
11
|
-
{{ site.title }}{% if site.
|
11
|
+
{{ site.title }}{% if site.tagline %} · {{ site.tagline }}{% endif %}
|
12
12
|
{% elsif page.title.size > 0 %}
|
13
13
|
{{ page.title }} · {{ site.title }}
|
14
14
|
{% else %}
|
@@ -106,7 +106,7 @@ We want to avoid building the URL dynamically in JS, because it depends on your
|
|
106
106
|
{{ include_to_scssify | scssify }}
|
107
107
|
</style>
|
108
108
|
|
109
|
-
{% capture style_url %}{% link assets/css/hydejack.css %}?v=6.6.
|
109
|
+
{% capture style_url %}{% link assets/css/hydejack.css %}?v=6.6.1{% endcapture %}
|
110
110
|
<link id="_stylePreload" rel="preload" as="style" href="{{ style_url | relative_url }}">
|
111
111
|
<script>document.getElementById('_stylePreload').onload=function(){this.rel='stylesheet'}</script>
|
112
112
|
|
data/_includes/header.txt
CHANGED
data/_includes/scripts.html
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
{% unless page.redirect %}
|
11
11
|
<!--[if gt IE 9]><!---->
|
12
|
-
{% capture js_url %}{% link assets/js/hydejack.js %}?v=6.6.
|
12
|
+
{% capture js_url %}{% link assets/js/hydejack.js %}?v=6.6.1{% endcapture %}
|
13
13
|
<script>loadJSDeferred('{{ js_url | relative_url }}');</script>
|
14
14
|
|
15
15
|
{% include my-scripts.html %}
|
data/_layouts/compress.html
CHANGED
@@ -17,7 +17,7 @@
|
|
17
17
|
/\___/ \ \____/
|
18
18
|
\/__/ \/___/
|
19
19
|
|
20
|
-
Powered by Hydejack v6.6.
|
20
|
+
Powered by Hydejack v6.6.1 <https://qwtel.com/hydejack/>
|
21
21
|
-->{% capture _LINE_FEED %}
|
22
22
|
{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
|
23
23
|
</html>
|
data/assets/js/hydejack.js
CHANGED
@@ -9,6 +9,6 @@
|
|
9
9
|
* /\___/ \ \____/
|
10
10
|
* \/__/ \/___/
|
11
11
|
*
|
12
|
-
* Powered by Hydejack v6.6.
|
12
|
+
* Powered by Hydejack v6.6.1 <https://qwtel.com/hydejack/>
|
13
13
|
*/
|
14
|
-
!function t(e,r,n){function i(s,a){if(!r[s]){if(!e[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[s]={exports:{}};e[s][0].call(l.exports,function(t){var r=e[s][1][t];return i(r||t)},l,l.exports,t,e,r,n)}return r[s].exports}for(var o="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t,e,r){function i(t,e){return(void 0===t?"undefined":n(t))===e}function o(t){return t.replace(/([a-z])-([a-z])/g,function(t,e,r){return e+r.toUpperCase()}).replace(/^-/,"")}function s(){return"function"!=typeof e.createElement?e.createElement(arguments[0]):x?e.createElementNS.call(e,"http://www.w3.org/2000/svg",arguments[0]):e.createElement.apply(e,arguments)}function a(){var t=e.body;return t||(t=s(x?"svg":"body"),t.fake=!0),t}function u(t,r,n,i){var o,u,c,l,h="modernizr",f=s("div"),p=a();if(parseInt(n,10))for(;n--;)(c=s("div")).id=i?i[n]:h+(n+1),f.appendChild(c);return o=s("style"),o.type="text/css",o.id="s"+h,(p.fake?p:f).appendChild(o),p.appendChild(f),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(e.createTextNode(t)),f.id=h,p.fake&&(p.style.background="",p.style.overflow="hidden",l=S.style.overflow,S.style.overflow="hidden",S.appendChild(p)),u=r(f,t),p.fake?(p.parentNode.removeChild(p),S.style.overflow=l,S.offsetHeight):f.parentNode.removeChild(f),!!u}function c(t,e){return!!~(""+t).indexOf(e)}function l(t,e){return function(){return t.apply(e,arguments)}}function h(t,e,r){var n;for(var o in t)if(t[o]in e)return!1===r?t[o]:(n=e[t[o]],i(n,"function")?l(n,r||e):n);return!1}function f(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-")}function p(e,r,n){var i;if("getComputedStyle"in t){i=getComputedStyle.call(t,e,r);var o=t.console;null!==i?n&&(i=i.getPropertyValue(n)):o&&o[o.error?"error":"log"].call(o,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}else i=!r&&e.currentStyle&&e.currentStyle[n];return i}function b(e,n){var i=e.length;if("CSS"in t&&"supports"in t.CSS){for(;i--;)if(t.CSS.supports(f(e[i]),n))return!0;return!1}if("CSSSupportsRule"in t){for(var o=[];i--;)o.push("("+f(e[i])+":"+n+")");return o=o.join(" or "),u("@supports ("+o+") { #modernizr { position: absolute; } }",function(t){return"absolute"==p(t,null,"position")})}return r}function d(t,e,n,a){function u(){h&&(delete A.style,delete A.modElem)}if(a=!i(a,"undefined")&&a,!i(n,"undefined")){var l=b(t,n);if(!i(l,"undefined"))return l}for(var h,f,p,d,y,v=["modernizr","tspan","samp"];!A.style&&v.length;)h=!0,A.modElem=s(v.shift()),A.style=A.modElem.style;for(p=t.length,f=0;p>f;f++)if(d=t[f],y=A.style[d],c(d,"-")&&(d=o(d)),A.style[d]!==r){if(a||i(n,"undefined"))return u(),"pfx"!=e||d;try{A.style[d]=n}catch(t){}if(A.style[d]!=y)return u(),"pfx"!=e||d}return u(),!1}function y(t,e,r,n,o){var s=t.charAt(0).toUpperCase()+t.slice(1),a=(t+" "+E.join(s+" ")+s).split(" ");return i(e,"string")||i(e,"undefined")?d(a,e,n,o):(a=(t+" "+M.join(s+" ")+s).split(" "),h(a,e,r))}function v(t,e,n){return y(t,r,r,e,n)}var m=[],g={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(t,e){var r=this;setTimeout(function(){e(r[t])},0)},addTest:function(t,e,r){m.push({name:t,fn:e,options:r})},addAsyncTest:function(t){m.push({name:null,fn:t})}},_=function(){};_.prototype=g,(_=new _).addTest("eventlistener","addEventListener"in t),_.addTest("history",function(){var e=navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone")||"file:"===location.protocol)&&(t.history&&"pushState"in t.history)}),_.addTest("queryselector","querySelector"in e&&"querySelectorAll"in e);var w=[],O=g._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];g._prefixes=O;var S=e.documentElement;_.addTest("classlist","classList"in S),_.addTest("documentfragment",function(){return"createDocumentFragment"in e&&"appendChild"in S});var x="svg"===S.nodeName.toLowerCase();_.addTest("opacity",function(){var t=s("a").style;return t.cssText=O.join("opacity:.55;"),/^0.55$/.test(t.opacity)}),_.addTest("csspointerevents",function(){var t=s("a").style;return t.cssText="pointer-events:auto","auto"===t.pointerEvents}),_.addTest("cssremunit",function(){var t=s("a").style;try{t.fontSize="3rem"}catch(t){}return/rem/.test(t.fontSize)}),_.addTest("template","content"in s("template"));var j=g.testStyles=u;_.addTest("touchevents",function(){var r;if("ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch)r=!0;else{var n=["@media (",O.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");j(n,function(t){r=9===t.offsetTop})}return r});var k="Moz O ms Webkit",E=g._config.usePrefixes?k.split(" "):[];g._cssomPrefixes=E;var T=function(e){var n,i=O.length,o=t.CSSRule;if(void 0===o)return r;if(!e)return!1;if(e=e.replace(/^@/,""),(n=e.replace(/-/g,"_").toUpperCase()+"_RULE")in o)return"@"+e;for(var s=0;i>s;s++){var a=O[s];if(a.toUpperCase()+"_"+n in o)return"@-"+a.toLowerCase()+"-"+e}return!1};g.atRule=T;var M=g._config.usePrefixes?k.toLowerCase().split(" "):[];g._domPrefixes=M;var P={elem:s("modernizr")};_._q.push(function(){delete P.elem});var A={style:P.elem.style};_._q.unshift(function(){delete A.style}),g.testAllProps=y;var C=g.prefixed=function(t,e,r){return 0===t.indexOf("@")?T(t):(-1!=t.indexOf("-")&&(t=o(t)),e?y(t,e,r):y(t,"pfx"))};_.addTest("requestanimationframe",!!C("requestAnimationFrame",t),{aliases:["raf"]}),_.addTest("matchmedia",!!C("matchMedia",t)),g.testAllProps=v,_.addTest("cssanimations",v("animationName","a",!0)),_.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&v("transform","scale(1)",!0)}),function(){var t,e,r,n,o,s;for(var a in m)if(m.hasOwnProperty(a)){if(t=[],(e=m[a]).name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(r=0;r<e.options.aliases.length;r++)t.push(e.options.aliases[r].toLowerCase());for(n=i(e.fn,"function")?e.fn():e.fn,o=0;o<t.length;o++)1===(s=t[o].split(".")).length?_[s[0]]=n:(!_[s[0]]||_[s[0]]instanceof Boolean||(_[s[0]]=new Boolean(_[s[0]])),_[s[0]][s[1]]=n),w.push((n?"":"no-")+s.join("-"))}}(),delete g.addTest,delete g.addAsyncTest;for(var N=0;N<_._q.length;N++)_._q[N]();t.Modernizr=_}(window,document)},{}],2:[function(t,e,r){"use strict";console.log(" __ __ __ __ \r\n/\\ \\/\\ \\ /\\ \\ __ /\\ \\ \r\n\\ \\ \\_\\ \\ __ __ \\_\\ \\ __ /\\_\\ __ ___ \\ \\ \\/'\\ \r\n \\ \\ _ \\ /\\ \\/\\ \\ /'_` \\ /'__`\\ \\/\\ \\ /'__`\\ /'___\\\\ \\ , < \r\n \\ \\ \\ \\ \\\\ \\ \\_\\ \\ /\\ \\L\\ \\ /\\ __/ \\ \\ \\ /\\ \\L\\.\\_ /\\ \\__/ \\ \\ \\\\`\\ \r\n \\ \\_\\ \\_\\\\/`____ \\\\ \\___,_\\\\ \\____\\ _\\ \\ \\\\ \\__/.\\_\\\\ \\____\\ \\ \\_\\ \\_\\\r\n \\/_/\\/_/ `/___/> \\\\/__,_ / \\/____//\\ \\_\\ \\\\/__/\\/_/ \\/____/ \\/_/\\/_/\r\n /\\___/ \\ \\____/ \r\n \\/__/ \\/___/ "),console.log("Powered by Hydejack v6.6.0 <https://qwtel.com/hydejack/>")},{}],3:[function(t,e,r){"use strict";function n(t){t.style.display="",t.style.visibility=""}Object.defineProperty(r,"__esModule",{value:!0}),r.unhide=void 0,r.hasFeatures=function(t){for(var e=!0,r=0;r<t.length;r+=1){var n=t[r],i=window.Modernizr[n];e=e&&i}return e},r.show=function(t){t.style.display="block",t.style.visibility="visible"},r.hide=function(t){t.style.display="none",t.style.visibility="hidden"},r.unshow=n,r.matches=function(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector).call(t,e)},r.animate=function(t,e,r){return i.Observable.create(function(n){return t.animate(e,r).addEventListener("finish",function(t){n.next(t),n.complete()}),function(){}})};var i=t("rxjs/Observable");r.unhide=n},{"rxjs/Observable":91}],4:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).color,e=void 0===t?"#00f":t;this.rules[0].style.color=e,this.rules[0].style.borderColor=(0,a.default)(e).fade(m).string(),this.rules[1].style.borderColor=e,this.rules[2].style.outlineColor=e,this.rules[3].style.backgroundColor=e}Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function t(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(i)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=function(t){return t&&t.__esModule?t:{default:t}}(t("color")),u=t("rxjs/Observable"),c=t("rxjs/observable/empty"),l=t("rxjs/observable/fromEvent"),h=t("rxjs/observable/timer"),f=t("rxjs/operator/do"),p=t("rxjs/operator/finally"),b=t("rxjs/operator/map"),d=t("rxjs/operator/zip"),y=t("./common"),v=Array.prototype.find,m=.8,g=function(){function t(e){var r,i=e.duration;n(this,t);var o=document.getElementById("_main"),s=document.getElementById("_pageStyle"),a=(r=document.styleSheets,v).call(r,function(t){return t.ownerNode===s});this.sidebar=document.getElementById("_sidebar"),this.duration=i,this.rules=a.cssRules||a.rules,this.prevImage=o.getAttribute("data-image"),this.prevColor=o.getAttribute("data-color")}return s(t,[{key:"fetchImage",value:function(t){var e,r=this,n=t.color,o=t.image;if(o===this.prevImage&&n===this.prevColor)return c.empty.call(u.Observable);var s=void 0;if(""===o||o===this.prevImage)s=h.timer.call(u.Observable,this.duration);else{var a,y=new Image;s=(a=(a=l.fromEvent.call(u.Observable,y,"load"),d.zipProto).call(a,h.timer.call(u.Observable,this.duration),function(t){return t}),p._finally).call(a,function(){y.src=""}),y.src=o}return(e=(e=s,f._do).call(e,function(){i.call(r,t),r.prevImage=o,r.prevColor=n}),b.map).call(e,function(){var t=document.createElement("div");return t.classList.add("sidebar-bg"),t.style.backgroundColor=n,""!==o&&(t.style.backgroundImage="url("+o+")"),t})}},{key:"crossFade",value:function(t){var e,r=o(t,2),n=r[0],i=r[1];return n.parentNode.insertBefore(i,n.nextElementSibling),(e=(0,y.animate)(i,[{opacity:0},{opacity:1}],{duration:this.duration}),p._finally).call(e,function(){return n.parentNode.removeChild(n)})}}]),t}();r.default=g},{"./common":3,color:16,"rxjs/Observable":91,"rxjs/observable/empty":105,"rxjs/observable/fromEvent":106,"rxjs/observable/timer":107,"rxjs/operator/do":111,"rxjs/operator/finally":114,"rxjs/operator/map":115,"rxjs/operator/zip":124}],5:[function(t,e,r){"use strict";function n(){window.isDesktop!==window.matchMedia(u).matches&&(window.isDesktop=!window.isDesktop,window.drawer.persistent=window.isDesktop,window.drawer.jumpTo(window.isDesktop))}function i(t){window.isDesktop||(t.preventDefault(),window.drawer.toggle())}var o=function(t){return t&&t.__esModule?t:{default:t}}(t("y-drawer/src/vanilla")),s=t("./common"),a=["eventlistener","queryselector","matchmedia","requestanimationframe","classlist","opacity","csstransforms","csspointerevents","cssremunit"],u="(min-width: 54em)";if(!window.disableDrawer&&(0,s.hasFeatures)(a)){window.isDesktop=window.matchMedia(u).matches;var c=document.getElementById("_yDrawer");!function(t){window.drawer=t,window.addEventListener("resize",n),document.getElementById("_menu").addEventListener("click",i)}(new o.default(c,{opened:window.isDesktop,persistent:window.isDesktop,transitionDuration:150})),c.classList.add("loaded")}},{"./common":3,"y-drawer/src/vanilla":152}],6:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=t("rxjs/Observable"),s=t("rxjs/observable/empty"),a=function(){function t(e){var r=e.animationMain,i=e.duration;n(this,t),this.animationMain=r,this.duration=i}return i(t,null,[{key:"create",value:function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return null!=t.types[e]?new(Function.prototype.bind.apply(t.types[e],[null].concat(n))):new(Function.prototype.bind.apply(t,[null].concat(n)))}}]),i(t,[{key:"start",value:function(){return this.animationMain.style.opacity=0,this.animationMain.style.willChange="",s.empty.call(o.Observable)}},{key:"ready",value:function(){return s.empty.call(o.Observable)}}]),t}();r.default=a,a.types={}},{"rxjs/Observable":91,"rxjs/observable/empty":105}],7:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=t("rxjs/Observable"),u=t("rxjs/observable/timer"),c=t("rxjs/operator/do"),l=t("rxjs/operator/finally"),h=t("../common"),f=function(t){return t&&t.__esModule?t:{default:t}}(t("./flip")),p=function(t){function e(){return n(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,f.default),s(e,[{key:"start",value:function(t){var e,r=this,n=document.createElement("h1");n.classList.add("page-title"),n.textContent=t.textContent,n.style.transformOrigin="left top",this.animationMain.querySelector(".page").innerHTML="",this.animationMain.querySelector(".page").appendChild(n),this.animationMain.style.position="fixed",this.animationMain.style.opacity=1;var i=t.getBoundingClientRect(),o=parseInt(getComputedStyle(t).fontSize,10),s=n.getBoundingClientRect(),a=parseInt(getComputedStyle(n).fontSize,10),u=i.left-s.left,l=i.top-s.top,f=o/a;return t.style.opacity=0,(e=(0,h.animate)(n,[{transform:"translate3d("+u+"px, "+l+"px, 0) scale("+f+")"},{transform:"translate3d(0, 0, 0) scale(1)"}],{duration:this.duration,easing:"cubic-bezier(0,0,0.32,1)"}),c._do).call(e,function(){r.animationMain.style.position="absolute"})}},{key:"ready",value:function(t){var e,r=this;this.animationMain.style.willChange="opacity";var n=t.querySelector(".page-title, .post-title");return null!=n&&(n.style.opacity=0,n.style.willChange="opacity"),(e=(e=u.timer.call(a.Observable,this.duration+100),c._do).call(e,function(){null!=n&&(n.style.opacity=1,n.style.willChange="")}),l._finally).call(e,function(){r.animationMain.style.opacity=0,r.animationMain.style.willChange=""})}}]),e}();f.default.types.title=p},{"../common":3,"./flip":6,"rxjs/Observable":91,"rxjs/observable/timer":107,"rxjs/operator/do":111,"rxjs/operator/finally":114}],8:[function(t,e,r){"use strict";t("core-js/fn/array/for-each"),t("core-js/fn/array/find"),t("core-js/fn/function/bind"),t("core-js/fn/number/constructor"),t("core-js/fn/object/assign"),t("core-js/fn/object/define-property"),t("core-js/fn/object/keys"),t("core-js/fn/array/reduce"),t("web-animations-js"),t("../lib/modernizr-custom"),t("../lib/version"),t("./katex"),t("./drawer"),t("./push-state")},{"../lib/modernizr-custom":1,"../lib/version":2,"./drawer":5,"./katex":9,"./push-state":10,"core-js/fn/array/find":17,"core-js/fn/array/for-each":18,"core-js/fn/array/reduce":19,"core-js/fn/function/bind":20,"core-js/fn/number/constructor":21,"core-js/fn/object/assign":22,"core-js/fn/object/define-property":23,"core-js/fn/object/keys":24,"web-animations-js":148}],9:[function(t,e,r){"use strict";function n(t,e){t.outerHTML=window.katex.renderToString(e,{displayMode:"math/tex; mode=display"===t.type})}function i(t,e){try{var r=t.previousElementSibling;n(t,e),r&&(0,u.matches)(r,".MathJax_Preview")&&(0,u.hide)(r)}catch(t){console.error(t)}finally{t.style.willChange=""}}function o(t){return t.textContent.replace("% <![CDATA[","").replace("%]]>","")}function s(t){Array.prototype.forEach.call(t,function(t){i(t,o(t))})}function a(){if(l){var t=document.querySelectorAll('script[type^="math/tex"]');t.length&&(h&&f?s(t):(loadJSDeferred(document.getElementById("_katexJS").href,function(){(h=!0)&&f&&a()}),loadCSS(document.getElementById("_katexCSS").href).onload=function(){f=!0,h&&f&&a()}))}}Object.defineProperty(r,"__esModule",{value:!0}),r.default=a;var u=t("./common"),c=["eventlistener","queryselector"],l=(0,u.hasFeatures)(c),h=!1,f=!1;a()},{"./common":3}],10:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){return u._catch.call(this,function(t,e){return console.error(t),e})}var o=function(){function t(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(i)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=t("rxjs/Observable"),a=t("rxjs/observable/fromEvent"),u=t("rxjs/operator/catch"),c=t("rxjs/operator/do"),l=t("rxjs/operator/debounceTime"),h=t("rxjs/operator/exhaustMap"),f=t("rxjs/operator/filter"),p=t("rxjs/operator/map"),b=t("rxjs/operator/mergeMap"),d=t("rxjs/operator/pairwise"),y=t("rxjs/operator/share"),v=t("rxjs/operator/startWith"),m=t("rxjs/operator/switchMap"),g=t("rxjs/operator/takeUntil"),_=t("rxjs/operator/zip"),w=n(t("y-push-state/src/vanilla")),O=n(t("elem-dataset")),S=t("./common"),x=n(t("./cross-fader")),j=n(t("./katex")),k=n(t("./flip/flip"));t("./flip/title");var E=["eventlistener","queryselector","requestanimationframe","classlist","documentfragment","history","opacity","cssanimations"];if(!window.disablePushState&&(0,S.hasFeatures)(E)){var T,M=navigator.userAgent.toLowerCase(),P=M.indexOf("safari")>0&&M.indexOf("chrome")<0,A=new x.default({duration:500}),C=document.getElementById("_yPushState"),N=document.createElement("div");N.classList.add("animation-main"),N.classList.add("fixed-top"),N.innerHTML='\n <div class="content">\n <div class="page"></div>\n </div>',C.parentNode.insertBefore(N,C);var R=document.createElement("div");R.classList.add("loading"),R.innerHTML='\n <span class="sr-only">Loading...</span>\n <div class="sk-folding-cube">\n <div class="sk-cube1 sk-cube"></div>\n <div class="sk-cube2 sk-cube"></div>\n <div class="sk-cube4 sk-cube"></div>\n <div class="sk-cube3 sk-cube"></div>\n </div>\n ',document.querySelector(".navbar .content").appendChild(R);var F=(T=(T=(T=(T=a.fromEvent.call(s.Observable,C,"y-push-state-start"),p.map).call(T,function(t){return t.detail}),p.map).call(T,function(t){return[t,document.getElementById("_main")]}),c._do).call(T,function(){!window.isDesktop&&window.drawer.opened&&window.drawer.close()}),y.share).call(T),I=(T=(T=a.fromEvent.call(s.Observable,C,"y-push-state-ready"),p.map).call(T,function(t){return t.detail}),y.share).call(T),L=(T=a.fromEvent.call(s.Observable,C,"y-push-state-progress"),p.map).call(T,function(t){return t.detail}),D=(T=(T=a.fromEvent.call(s.Observable,C,"y-push-state-after"),p.map).call(T,function(t){return t.detail}),y.share).call(T);P&&(a.fromEvent.call(s.Observable,window,"popstate").subscribe(function(){document.body.style.minHeight="999999px"}),D.subscribe(function(){document.body.style.minHeight=""})),(T=m.switchMap.call(F,function(t){var e=o(t,1)[0],r=e.event.currentTarget,n=k.default.create(r.getAttribute&&r.getAttribute("data-flip"),{animationMain:N,currentTarget:r,duration:250});return e.flip=n,n.start(r)}),i).call(T).subscribe(),(T=(T=(T=c._do.call(F,function(t){o(t,2)[1].style.opacity=0}),f.filter).call(T,function(t){return"push"===o(t,1)[0].type||!P}),h.exhaustMap).call(T,function(t){var e,r=o(t,2),n=r[0].type,i=r[1];return(e=(e=(0,S.animate)(i,[{opacity:1},{opacity:0}],{duration:250,easing:"cubic-bezier(0,0,0.32,1)"}),c._do).call(e,function(){"push"===n&&window.scroll(0,0)}),_.zipProto).call(e,D)}),i).call(T).subscribe(),(T=c._do.call(L,function(){R.style.display="block"}),i).call(T).subscribe(),(T=(T=(T=c._do.call(I,function(){R.style.display="none"}),f.filter).call(T,function(t){return"push"===t.type||!P}),m.switchMap).call(T,function(t){var e,r=t.flip,n=o(t.content,1)[0];return(e=r.ready(n),g.takeUntil).call(e,F)}),i).call(T).subscribe(),(T=(T=(T=(T=m.switchMap.call(I,function(t){var e,r=o(t.content,1)[0];return(e=A.fetchImage((0,O.default)(r)),g.takeUntil).call(e,F)}),v.startWith).call(T,document.querySelector(".sidebar-bg")),d.pairwise).call(T),b.mergeMap).call(T,A.crossFade.bind(A)),i).call(T).subscribe(),(T=(T=(T=f.filter.call(D,function(t){return"push"===t.type||!P}),p.map).call(T,function(t){return[t,document.querySelector("main")]}),m.switchMap).call(T,function(t){var e=o(t,2)[1];return(0,S.animate)(e,[{transform:"translateY(-2rem)",opacity:0},{transform:"translateY(0)",opacity:1}],{duration:250,easing:"cubic-bezier(0,0,0.32,1)"})}),i).call(T).subscribe(),(T=(T=l.debounceTime.call(D,500),c._do).call(T,function(){window.ga&&window.ga("send","pageview"),(0,j.default)()}),i).call(T).subscribe(),new w.default(C,{replaceIds:["_main"],linkSelector:'a[href^="/"]',scriptSelector:'script:not([type^="math/tex"])',duration:250,noPopDuration:P,scrollRestoration:!P}).startHistory()}},{"./common":3,"./cross-fader":4,"./flip/flip":6,"./flip/title":7,"./katex":9,"elem-dataset":88,"rxjs/Observable":91,"rxjs/observable/fromEvent":106,"rxjs/operator/catch":108,"rxjs/operator/debounceTime":110,"rxjs/operator/do":111,"rxjs/operator/exhaustMap":112,"rxjs/operator/filter":113,"rxjs/operator/map":115,"rxjs/operator/mergeMap":117,"rxjs/operator/pairwise":119,"rxjs/operator/share":120,"rxjs/operator/startWith":121,"rxjs/operator/switchMap":122,"rxjs/operator/takeUntil":123,"rxjs/operator/zip":124,"y-push-state/src/vanilla":265}],11:[function(t,e,r){function n(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}var i=t("color-name"),o={};for(var s in i)i.hasOwnProperty(s)&&(o[i[s]]=s);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var u in a)if(a.hasOwnProperty(u)){if(!("channels"in a[u]))throw new Error("missing channels property: "+u);if(!("labels"in a[u]))throw new Error("missing channel labels property: "+u);if(a[u].labels.length!==a[u].channels)throw new Error("channel and label counts mismatch: "+u);var c=a[u].channels,l=a[u].labels;delete a[u].channels,delete a[u].labels,Object.defineProperty(a[u],"channels",{value:c}),Object.defineProperty(a[u],"labels",{value:l})}a.rgb.hsl=function(t){var e,r,n,i=t[0]/255,o=t[1]/255,s=t[2]/255,a=Math.min(i,o,s),u=Math.max(i,o,s),c=u-a;return u===a?e=0:i===u?e=(o-s)/c:o===u?e=2+(s-i)/c:s===u&&(e=4+(i-o)/c),(e=Math.min(60*e,360))<0&&(e+=360),n=(a+u)/2,r=u===a?0:n<=.5?c/(u+a):c/(2-u-a),[e,100*r,100*n]},a.rgb.hsv=function(t){var e,r,n,i=t[0],o=t[1],s=t[2],a=Math.min(i,o,s),u=Math.max(i,o,s),c=u-a;return r=0===u?0:c/u*1e3/10,u===a?e=0:i===u?e=(o-s)/c:o===u?e=2+(s-i)/c:s===u&&(e=4+(i-o)/c),(e=Math.min(60*e,360))<0&&(e+=360),n=u/255*1e3/10,[e,r,n]},a.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=a.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,100*o,100*n]},a.rgb.cmyk=function(t){var e,r,n,i,o=t[0]/255,s=t[1]/255,a=t[2]/255;return i=Math.min(1-o,1-s,1-a),e=(1-o-i)/(1-i)||0,r=(1-s-i)/(1-i)||0,n=(1-a-i)/(1-i)||0,[100*e,100*r,100*n,100*i]},a.rgb.keyword=function(t){var e=o[t];if(e)return e;var r,s=1/0;for(var a in i)if(i.hasOwnProperty(a)){var u=n(t,i[a]);u<s&&(s=u,r=a)}return r},a.keyword.rgb=function(t){return i[t]},a.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},a.rgb.lab=function(t){var e,r,n,i=a.rgb.xyz(t),o=i[0],s=i[1],u=i[2];return o/=95.047,s/=100,u/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,e=116*s-16,r=500*(o-s),n=200*(s-u),[e,r,n]},a.hsl.rgb=function(t){var e,r,n,i,o,s=t[0]/360,a=t[1]/100,u=t[2]/100;if(0===a)return o=255*u,[o,o,o];e=2*u-(r=u<.5?u*(1+a):u+a-u*a),i=[0,0,0];for(var c=0;c<3;c++)(n=s+1/3*-(c-1))<0&&n++,n>1&&n--,o=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,i[c]=255*o;return i},a.hsl.hsv=function(t){var e,r,n=t[0],i=t[1]/100,o=t[2]/100,s=i,a=Math.max(o,.01);return o*=2,i*=o<=1?o:2-o,s*=a<=1?a:2-a,r=(o+i)/2,e=0===o?2*s/(a+s):2*i/(o+i),[n,100*e,100*r]},a.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),s=255*n*(1-r),a=255*n*(1-r*o),u=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,u,s];case 1:return[a,n,s];case 2:return[s,n,u];case 3:return[s,a,n];case 4:return[u,s,n];case 5:return[n,s,a]}},a.hsv.hsl=function(t){var e,r,n,i=t[0],o=t[1]/100,s=t[2]/100,a=Math.max(s,.01);return n=(2-o)*s,e=(2-o)*a,r=o*a,r/=e<=1?e:2-e,r=r||0,n/=2,[i,100*r,100*n]},a.hwb.rgb=function(t){var e,r,n,i,o=t[0]/360,s=t[1]/100,a=t[2]/100,u=s+a;u>1&&(s/=u,a/=u),r=1-a,n=6*o-(e=Math.floor(6*o)),0!=(1&e)&&(n=1-n),i=s+n*(r-s);var c,l,h;switch(e){default:case 6:case 0:c=r,l=i,h=s;break;case 1:c=i,l=r,h=s;break;case 2:c=s,l=r,h=i;break;case 3:c=s,l=i,h=r;break;case 4:c=i,l=s,h=r;break;case 5:c=r,l=s,h=i}return[255*c,255*l,255*h]},a.cmyk.rgb=function(t){var e,r,n,i=t[0]/100,o=t[1]/100,s=t[2]/100,a=t[3]/100;return e=1-Math.min(1,i*(1-a)+a),r=1-Math.min(1,o*(1-a)+a),n=1-Math.min(1,s*(1-a)+a),[255*e,255*r,255*n]},a.xyz.rgb=function(t){var e,r,n,i=t[0]/100,o=t[1]/100,s=t[2]/100;return e=3.2406*i+-1.5372*o+-.4986*s,r=-.9689*i+1.8758*o+.0415*s,n=.0557*i+-.204*o+1.057*s,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,e=Math.min(Math.max(0,e),1),r=Math.min(Math.max(0,r),1),n=Math.min(Math.max(0,n),1),[255*e,255*r,255*n]},a.xyz.lab=function(t){var e,r,n,i=t[0],o=t[1],s=t[2];return i/=95.047,o/=100,s/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,e=116*o-16,r=500*(i-o),n=200*(o-s),[e,r,n]},a.lab.xyz=function(t){var e,r,n,i=t[0];e=t[1]/500+(r=(i+16)/116),n=r-t[2]/200;var o=Math.pow(r,3),s=Math.pow(e,3),a=Math.pow(n,3);return r=o>.008856?o:(r-16/116)/7.787,e=s>.008856?s:(e-16/116)/7.787,n=a>.008856?a:(n-16/116)/7.787,e*=95.047,r*=100,n*=108.883,[e,r,n]},a.lab.lch=function(t){var e,r,n,i=t[0],o=t[1],s=t[2];return e=Math.atan2(s,o),(r=360*e/2/Math.PI)<0&&(r+=360),n=Math.sqrt(o*o+s*s),[i,n,r]},a.lch.lab=function(t){var e,r,n,i=t[0],o=t[1];return n=t[2]/360*2*Math.PI,e=o*Math.cos(n),r=o*Math.sin(n),[i,e,r]},a.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}t-=16;var r;return[Math.floor(t/36)/5*255,Math.floor((r=t%36)/6)/5*255,r%6/5*255]},a.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];3===e[0].length&&(r=r.split("").map(function(t){return t+t}).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},a.rgb.hcg=function(t){var e,r,n=t[0]/255,i=t[1]/255,o=t[2]/255,s=Math.max(Math.max(n,i),o),a=Math.min(Math.min(n,i),o),u=s-a;return e=u<1?a/(1-u):0,r=u<=0?0:s===n?(i-o)/u%6:s===i?2+(o-n)/u:4+(n-i)/u+4,r/=6,r%=1,[360*r,100*u,100*e]},a.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return(n=r<.5?2*e*r:2*e*(1-r))<1&&(i=(r-.5*n)/(1-n)),[t[0],100*n,100*i]},a.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],100*n,100*i]},a.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];var i=[0,0,0],o=e%1*6,s=o%1,a=1-s,u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[255*(r*i[0]+u),255*(r*i[1]+u),255*(r*i[2]+u)]},a.hcg.hsv=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e),n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},a.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100*(1-e)+.5*e,n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},a.hcg.hwb=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},a.hwb.hcg=function(t){var e=t[1]/100,r=1-t[2]/100,n=r-e,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],100*n,100*i]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},{"color-name":14}],12:[function(t,e,r){function n(t){var e=function(e){return void 0===e||null===e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}function i(t){var e=function(e){if(void 0===e||null===e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var r=t(e);if("object"==typeof r)for(var n=r.length,i=0;i<n;i++)r[i]=Math.round(r[i]);return r};return"conversion"in t&&(e.conversion=t.conversion),e}var o=t("./conversions"),s=t("./route"),a={};Object.keys(o).forEach(function(t){a[t]={},Object.defineProperty(a[t],"channels",{value:o[t].channels}),Object.defineProperty(a[t],"labels",{value:o[t].labels});var e=s(t);Object.keys(e).forEach(function(r){var o=e[r];a[t][r]=i(o),a[t][r].raw=n(o)})}),e.exports=a},{"./conversions":11,"./route":13}],13:[function(t,e,r){function n(){for(var t={},e=u.length,r=0;r<e;r++)t[u[r]]={distance:-1,parent:null};return t}function i(t){var e=n(),r=[t];for(e[t].distance=0;r.length;)for(var i=r.pop(),o=Object.keys(a[i]),s=o.length,u=0;u<s;u++){var c=o[u],l=e[c];-1===l.distance&&(l.distance=e[i].distance+1,l.parent=i,r.unshift(c))}return e}function o(t,e){return function(r){return e(t(r))}}function s(t,e){for(var r=[e[t].parent,t],n=a[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=o(a[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}var a=t("./conversions"),u=Object.keys(a);e.exports=function(t){for(var e=i(t),r={},n=Object.keys(e),o=n.length,a=0;a<o;a++){var u=n[a];null!==e[u].parent&&(r[u]=s(u,e))}return r}},{"./conversions":11}],14:[function(t,e,r){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],15:[function(t,e,r){function n(t,e,r){return Math.min(Math.max(e,t),r)}function i(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var o=t("color-name"),s=t("simple-swizzle"),a={};for(var u in o)o.hasOwnProperty(u)&&(a[o[u]]=u);var c=e.exports={to:{}};c.get=function(t){var e,r;switch(t.substring(0,3).toLowerCase()){case"hsl":e=c.get.hsl(t),r="hsl";break;case"hwb":e=c.get.hwb(t),r="hwb";break;default:e=c.get.rgb(t),r="rgb"}return e?{model:r,value:e}:null},c.get.rgb=function(t){if(!t)return null;var e,r,i,s=/^#([a-f0-9]{3,4})$/i,a=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,u=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,c=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,l=/(\D+)/,h=[0,0,0,1];if(e=t.match(a)){for(i=e[2],e=e[1],r=0;r<3;r++){var f=2*r;h[r]=parseInt(e.slice(f,f+2),16)}i&&(h[3]=Math.round(parseInt(i,16)/255*100)/100)}else if(e=t.match(s)){for(i=(e=e[1])[3],r=0;r<3;r++)h[r]=parseInt(e[r]+e[r],16);i&&(h[3]=Math.round(parseInt(i+i,16)/255*100)/100)}else if(e=t.match(u)){for(r=0;r<3;r++)h[r]=parseInt(e[r+1],0);e[4]&&(h[3]=parseFloat(e[4]))}else{if(!(e=t.match(c)))return(e=t.match(l))?"transparent"===e[1]?[0,0,0,0]:(h=o[e[1]])?(h[3]=1,h):null:null;for(r=0;r<3;r++)h[r]=Math.round(2.55*parseFloat(e[r+1]));e[4]&&(h[3]=parseFloat(e[4]))}for(r=0;r<3;r++)h[r]=n(h[r],0,255);return h[3]=n(h[3],0,1),h},c.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,r=t.match(e);if(r){var i=parseFloat(r[4]);return[(parseFloat(r[1])%360+360)%360,n(parseFloat(r[2]),0,100),n(parseFloat(r[3]),0,100),n(isNaN(i)?1:i,0,1)]}return null},c.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,r=t.match(e);if(r){var i=parseFloat(r[4]);return[(parseFloat(r[1])%360+360)%360,n(parseFloat(r[2]),0,100),n(parseFloat(r[3]),0,100),n(isNaN(i)?1:i,0,1)]}return null},c.to.hex=function(){var t=s(arguments);return"#"+i(t[0])+i(t[1])+i(t[2])+(t[3]<1?i(Math.round(255*t[3])):"")},c.to.rgb=function(){var t=s(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},c.to.rgb.percent=function(){var t=s(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"},c.to.hsl=function(){var t=s(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},c.to.hwb=function(){var t=s(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},c.to.keyword=function(t){return a[t.slice(0,3)]}},{"color-name":14,"simple-swizzle":147}],16:[function(t,e,r){"use strict";function n(t,e){if(!(this instanceof n))return new n(t,e);if(e&&e in p&&(e=null),e&&!(e in h))throw new Error("Unknown model: "+e);var r,i;if(t)if(t instanceof n)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if("string"==typeof t){var o=l.get(t);if(null===o)throw new Error("Unable to parse color from string: "+t);this.model=o.model,i=h[this.model].channels,this.color=o.value.slice(0,i),this.valpha="number"==typeof o.value[i]?o.value[i]:1}else if(t.length){this.model=e||"rgb",i=h[this.model].channels;var s=f.call(t,0,i);this.color=c(s,i),this.valpha="number"==typeof t[i]?t[i]:1}else if("number"==typeof t)t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;var a=Object.keys(t);"alpha"in t&&(a.splice(a.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);var u=a.sort().join("");if(!(u in b))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=b[u];var y=h[this.model].labels,v=[];for(r=0;r<y.length;r++)v.push(t[y[r]]);this.color=c(v)}else this.model="rgb",this.color=[0,0,0],this.valpha=1;if(d[this.model])for(i=h[this.model].channels,r=0;r<i;r++){var m=d[this.model][r];m&&(this.color[r]=m(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function i(t,e){return Number(t.toFixed(e))}function o(t){return function(e){return i(e,t)}}function s(t,e,r){return(t=Array.isArray(t)?t:[t]).forEach(function(t){(d[t]||(d[t]=[]))[e]=r}),t=t[0],function(n){var i;return arguments.length?(r&&(n=r(n)),i=this[t](),i.color[e]=n,i):(i=this[t]().color[e],r&&(i=r(i)),i)}}function a(t){return function(e){return Math.max(0,Math.min(t,e))}}function u(t){return Array.isArray(t)?t:[t]}function c(t,e){for(var r=0;r<e;r++)"number"!=typeof t[r]&&(t[r]=0);return t}var l=t("color-string"),h=t("color-convert"),f=[].slice,p=["keyword","gray","hex"],b={};Object.keys(h).forEach(function(t){b[f.call(h[t].labels).sort().join("")]=t});var d={};n.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in l.to?this:this.rgb(),r=1===(e=e.round("number"==typeof t?t:1)).valpha?e.color:e.color.concat(this.valpha);return l.to[e.model](r)},percentString:function(t){var e=this.rgb().round("number"==typeof t?t:1),r=1===e.valpha?e.color:e.color.concat(this.valpha);return l.to.rgb.percent(r)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=h[this.model].channels,r=h[this.model].labels,n=0;n<e;n++)t[r[n]]=this.color[n];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new n(this.color.map(o(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new n(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:s("rgb",0,a(255)),green:s("rgb",1,a(255)),blue:s("rgb",2,a(255)),hue:s(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:s("hsl",1,a(100)),lightness:s("hsl",2,a(100)),saturationv:s("hsv",1,a(100)),value:s("hsv",2,a(100)),chroma:s("hcg",1,a(100)),gray:s("hcg",2,a(100)),white:s("hwb",1,a(100)),wblack:s("hwb",2,a(100)),cyan:s("cmyk",0,a(100)),magenta:s("cmyk",1,a(100)),yellow:s("cmyk",2,a(100)),black:s("cmyk",3,a(100)),x:s("xyz",0,a(100)),y:s("xyz",1,a(100)),z:s("xyz",2,a(100)),l:s("lab",0,a(100)),a:s("lab",1),b:s("lab",2),keyword:function(t){return arguments.length?new n(t):h[this.model].keyword(this.color)},hex:function(t){return arguments.length?new n(t):l.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity:function(){for(var t=this.rgb().color,e=[],r=0;r<t.length;r++){var n=t[r]/255;e[r]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.rgb().color;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return n.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),r=e.color[0];return r=(r+t)%360,r=r<0?360+r:r,e.color[0]=r,e},mix:function(t,e){var r=t.rgb(),i=this.rgb(),o=void 0===e?.5:e,s=2*o-1,a=r.alpha()-i.alpha(),u=((s*a==-1?s:(s+a)/(1+s*a))+1)/2,c=1-u;return n.rgb(u*r.red()+c*i.red(),u*r.green()+c*i.green(),u*r.blue()+c*i.blue(),r.alpha()*o+i.alpha()*(1-o))}},Object.keys(h).forEach(function(t){if(-1===p.indexOf(t)){var e=h[t].channels;n.prototype[t]=function(){if(this.model===t)return new n(this);if(arguments.length)return new n(arguments,t);var r="number"==typeof arguments[e]?e:this.valpha;return new n(u(h[this.model][t].raw(this.color)).concat(r),t)},n[t]=function(r){return"number"==typeof r&&(r=c(f.call(arguments),e)),new n(r,t)}}}),e.exports=n},{"color-convert":12,"color-string":15}],17:[function(t,e,r){t("../../modules/es6.array.find"),e.exports=t("../../modules/_core").Array.find},{"../../modules/_core":35,"../../modules/es6.array.find":80}],18:[function(t,e,r){t("../../modules/es6.array.for-each"),e.exports=t("../../modules/_core").Array.forEach},{"../../modules/_core":35,"../../modules/es6.array.for-each":81}],19:[function(t,e,r){t("../../modules/es6.array.reduce"),e.exports=t("../../modules/_core").Array.reduce},{"../../modules/_core":35,"../../modules/es6.array.reduce":82}],20:[function(t,e,r){t("../../modules/es6.function.bind"),e.exports=t("../../modules/_core").Function.bind},{"../../modules/_core":35,"../../modules/es6.function.bind":83}],21:[function(t,e,r){t("../../modules/es6.number.constructor"),e.exports=Number},{"../../modules/es6.number.constructor":84}],22:[function(t,e,r){t("../../modules/es6.object.assign"),e.exports=t("../../modules/_core").Object.assign},{"../../modules/_core":35,"../../modules/es6.object.assign":85}],23:[function(t,e,r){t("../../modules/es6.object.define-property");var n=t("../../modules/_core").Object;e.exports=function(t,e,r){return n.defineProperty(t,e,r)}},{"../../modules/_core":35,"../../modules/es6.object.define-property":86}],24:[function(t,e,r){t("../../modules/es6.object.keys"),e.exports=t("../../modules/_core").Object.keys},{"../../modules/_core":35,"../../modules/es6.object.keys":87}],25:[function(t,e,r){e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],26:[function(t,e,r){var n=t("./_wks")("unscopables"),i=Array.prototype;void 0==i[n]&&t("./_hide")(i,n,{}),e.exports=function(t){i[n][t]=!0}},{"./_hide":45,"./_wks":79}],27:[function(t,e,r){var n=t("./_is-object");e.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":52}],28:[function(t,e,r){var n=t("./_to-iobject"),i=t("./_to-length"),o=t("./_to-index");e.exports=function(t){return function(e,r,s){var a,u=n(e),c=i(u.length),l=o(s,c);if(t&&r!=r){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===r)return t||l||0;return!t&&-1}}},{"./_to-index":72,"./_to-iobject":74,"./_to-length":75}],29:[function(t,e,r){var n=t("./_ctx"),i=t("./_iobject"),o=t("./_to-object"),s=t("./_to-length"),a=t("./_array-species-create");e.exports=function(t,e){var r=1==t,u=2==t,c=3==t,l=4==t,h=6==t,f=5==t||h,p=e||a;return function(e,a,b){for(var d,y,v=o(e),m=i(v),g=n(a,b,3),_=s(m.length),w=0,O=r?p(e,_):u?p(e,0):void 0;_>w;w++)if((f||w in m)&&(d=m[w],y=g(d,w,v),t))if(r)O[w]=y;else if(y)switch(t){case 3:return!0;case 5:return d;case 6:return w;case 2:O.push(d)}else if(l)return!1;return h?-1:c||l?l:O}}},{"./_array-species-create":32,"./_ctx":36,"./_iobject":50,"./_to-length":75,"./_to-object":76}],30:[function(t,e,r){var n=t("./_a-function"),i=t("./_to-object"),o=t("./_iobject"),s=t("./_to-length");e.exports=function(t,e,r,a,u){n(e);var c=i(t),l=o(c),h=s(c.length),f=u?h-1:0,p=u?-1:1;if(r<2)for(;;){if(f in l){a=l[f],f+=p;break}if(f+=p,u?f<0:h<=f)throw TypeError("Reduce of empty array with no initial value")}for(;u?f>=0:h>f;f+=p)f in l&&(a=e(a,l[f],f,c));return a}},{"./_a-function":25,"./_iobject":50,"./_to-length":75,"./_to-object":76}],31:[function(t,e,r){var n=t("./_is-object"),i=t("./_is-array"),o=t("./_wks")("species");e.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),n(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},{"./_is-array":51,"./_is-object":52,"./_wks":79}],32:[function(t,e,r){var n=t("./_array-species-constructor");e.exports=function(t,e){return new(n(t))(e)}},{"./_array-species-constructor":31}],33:[function(t,e,r){"use strict";var n=t("./_a-function"),i=t("./_is-object"),o=t("./_invoke"),s=[].slice,a={},u=function(t,e,r){if(!(e in a)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";a[e]=Function("F,a","return new F("+n.join(",")+")")}return a[e](t,r)};e.exports=Function.bind||function(t){var e=n(this),r=s.call(arguments,1),a=function(){var n=r.concat(s.call(arguments));return this instanceof a?u(e,n.length,n):o(e,n,t)};return i(e.prototype)&&(a.prototype=e.prototype),a}},{"./_a-function":25,"./_invoke":49,"./_is-object":52}],34:[function(t,e,r){var n={}.toString;e.exports=function(t){return n.call(t).slice(8,-1)}},{}],35:[function(t,e,r){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},{}],36:[function(t,e,r){var n=t("./_a-function");e.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},{"./_a-function":25}],37:[function(t,e,r){e.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},{}],38:[function(t,e,r){e.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":42}],39:[function(t,e,r){var n=t("./_is-object"),i=t("./_global").document,o=n(i)&&n(i.createElement);e.exports=function(t){return o?i.createElement(t):{}}},{"./_global":43,"./_is-object":52}],40:[function(t,e,r){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],41:[function(t,e,r){var n=t("./_global"),i=t("./_core"),o=t("./_hide"),s=t("./_redefine"),a=t("./_ctx"),u=function(t,e,r){var c,l,h,f,p=t&u.F,b=t&u.G,d=t&u.S,y=t&u.P,v=t&u.B,m=b?n:d?n[e]||(n[e]={}):(n[e]||{}).prototype,g=b?i:i[e]||(i[e]={}),_=g.prototype||(g.prototype={});b&&(r=e);for(c in r)h=((l=!p&&m&&void 0!==m[c])?m:r)[c],f=v&&l?a(h,n):y&&"function"==typeof h?a(Function.call,h):h,m&&s(m,c,h,t&u.U),g[c]!=h&&o(g,c,f),y&&_[c]!=h&&(_[c]=h)};n.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},{"./_core":35,"./_ctx":36,"./_global":43,"./_hide":45,"./_redefine":65}],42:[function(t,e,r){e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],43:[function(t,e,r){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],44:[function(t,e,r){var n={}.hasOwnProperty;e.exports=function(t,e){return n.call(t,e)}},{}],45:[function(t,e,r){var n=t("./_object-dp"),i=t("./_property-desc");e.exports=t("./_descriptors")?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},{"./_descriptors":38,"./_object-dp":55,"./_property-desc":64}],46:[function(t,e,r){e.exports=t("./_global").document&&document.documentElement},{"./_global":43}],47:[function(t,e,r){e.exports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":38,"./_dom-create":39,"./_fails":42}],48:[function(t,e,r){var n=t("./_is-object"),i=t("./_set-proto").set;e.exports=function(t,e,r){var o,s=e.constructor;return s!==r&&"function"==typeof s&&(o=s.prototype)!==r.prototype&&n(o)&&i&&i(t,o),t}},{"./_is-object":52,"./_set-proto":66}],49:[function(t,e,r){e.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},{}],50:[function(t,e,r){var n=t("./_cof");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},{"./_cof":34}],51:[function(t,e,r){var n=t("./_cof");e.exports=Array.isArray||function(t){return"Array"==n(t)}},{"./_cof":34}],52:[function(t,e,r){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],53:[function(t,e,r){"use strict";var n=t("./_object-keys"),i=t("./_object-gops"),o=t("./_object-pie"),s=t("./_to-object"),a=t("./_iobject"),u=Object.assign;e.exports=!u||t("./_fails")(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=u({},t)[r]||Object.keys(u({},e)).join("")!=n})?function(t,e){for(var r=s(t),u=arguments.length,c=1,l=i.f,h=o.f;u>c;)for(var f,p=a(arguments[c++]),b=l?n(p).concat(l(p)):n(p),d=b.length,y=0;d>y;)h.call(p,f=b[y++])&&(r[f]=p[f]);return r}:u},{"./_fails":42,"./_iobject":50,"./_object-gops":59,"./_object-keys":61,"./_object-pie":62,"./_to-object":76}],54:[function(t,e,r){var n=t("./_an-object"),i=t("./_object-dps"),o=t("./_enum-bug-keys"),s=t("./_shared-key")("IE_PROTO"),a=function(){},u=function(){var e,r=t("./_dom-create")("iframe"),n=o.length;for(r.style.display="none",t("./_html").appendChild(r),r.src="javascript:",(e=r.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u.prototype[o[n]];return u()};e.exports=Object.create||function(t,e){var r;return null!==t?(a.prototype=n(t),r=new a,a.prototype=null,r[s]=t):r=u(),void 0===e?r:i(r,e)}},{"./_an-object":27,"./_dom-create":39,"./_enum-bug-keys":40,"./_html":46,"./_object-dps":56,"./_shared-key":67}],55:[function(t,e,r){var n=t("./_an-object"),i=t("./_ie8-dom-define"),o=t("./_to-primitive"),s=Object.defineProperty;r.f=t("./_descriptors")?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},{"./_an-object":27,"./_descriptors":38,"./_ie8-dom-define":47,"./_to-primitive":77}],56:[function(t,e,r){var n=t("./_object-dp"),i=t("./_an-object"),o=t("./_object-keys");e.exports=t("./_descriptors")?Object.defineProperties:function(t,e){i(t);for(var r,s=o(e),a=s.length,u=0;a>u;)n.f(t,r=s[u++],e[r]);return t}},{"./_an-object":27,"./_descriptors":38,"./_object-dp":55,"./_object-keys":61}],57:[function(t,e,r){var n=t("./_object-pie"),i=t("./_property-desc"),o=t("./_to-iobject"),s=t("./_to-primitive"),a=t("./_has"),u=t("./_ie8-dom-define"),c=Object.getOwnPropertyDescriptor;r.f=t("./_descriptors")?c:function(t,e){if(t=o(t),e=s(e,!0),u)try{return c(t,e)}catch(t){}if(a(t,e))return i(!n.f.call(t,e),t[e])}},{"./_descriptors":38,"./_has":44,"./_ie8-dom-define":47,"./_object-pie":62,"./_property-desc":64,"./_to-iobject":74,"./_to-primitive":77}],58:[function(t,e,r){var n=t("./_object-keys-internal"),i=t("./_enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},{"./_enum-bug-keys":40,"./_object-keys-internal":60}],59:[function(t,e,r){r.f=Object.getOwnPropertySymbols},{}],60:[function(t,e,r){var n=t("./_has"),i=t("./_to-iobject"),o=t("./_array-includes")(!1),s=t("./_shared-key")("IE_PROTO");e.exports=function(t,e){var r,a=i(t),u=0,c=[];for(r in a)r!=s&&n(a,r)&&c.push(r);for(;e.length>u;)n(a,r=e[u++])&&(~o(c,r)||c.push(r));return c}},{"./_array-includes":28,"./_has":44,"./_shared-key":67,"./_to-iobject":74}],61:[function(t,e,r){var n=t("./_object-keys-internal"),i=t("./_enum-bug-keys");e.exports=Object.keys||function(t){return n(t,i)}},{"./_enum-bug-keys":40,"./_object-keys-internal":60}],62:[function(t,e,r){r.f={}.propertyIsEnumerable},{}],63:[function(t,e,r){var n=t("./_export"),i=t("./_core"),o=t("./_fails");e.exports=function(t,e){var r=(i.Object||{})[t]||Object[t],s={};s[t]=e(r),n(n.S+n.F*o(function(){r(1)}),"Object",s)}},{"./_core":35,"./_export":41,"./_fails":42}],64:[function(t,e,r){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],65:[function(t,e,r){var n=t("./_global"),i=t("./_hide"),o=t("./_has"),s=t("./_uid")("src"),a=Function.toString,u=(""+a).split("toString");t("./_core").inspectSource=function(t){return a.call(t)},(e.exports=function(t,e,r,a){var c="function"==typeof r;c&&(o(r,"name")||i(r,"name",e)),t[e]!==r&&(c&&(o(r,s)||i(r,s,t[e]?""+t[e]:u.join(String(e)))),t===n?t[e]=r:a?t[e]?t[e]=r:i(t,e,r):(delete t[e],i(t,e,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},{"./_core":35,"./_global":43,"./_has":44,"./_hide":45,"./_uid":78}],66:[function(t,e,r){var n=t("./_is-object"),i=t("./_an-object"),o=function(t,e){if(i(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,r,n){try{(n=t("./_ctx")(Function.call,t("./_object-gopd").f(Object.prototype,"__proto__").set,2))(e,[]),r=!(e instanceof Array)}catch(t){r=!0}return function(t,e){return o(t,e),r?t.__proto__=e:n(t,e),t}}({},!1):void 0),check:o}},{"./_an-object":27,"./_ctx":36,"./_is-object":52,"./_object-gopd":57}],67:[function(t,e,r){var n=t("./_shared")("keys"),i=t("./_uid");e.exports=function(t){return n[t]||(n[t]=i(t))}},{"./_shared":68,"./_uid":78}],68:[function(t,e,r){var n=t("./_global"),i=n["__core-js_shared__"]||(n["__core-js_shared__"]={});e.exports=function(t){return i[t]||(i[t]={})}},{"./_global":43}],69:[function(t,e,r){var n=t("./_fails");e.exports=function(t,e){return!!t&&n(function(){e?t.call(null,function(){},1):t.call(null)})}},{"./_fails":42}],70:[function(t,e,r){var n=t("./_export"),i=t("./_defined"),o=t("./_fails"),s=t("./_string-ws"),a="["+s+"]",u=RegExp("^"+a+a+"*"),c=RegExp(a+a+"*$"),l=function(t,e,r){var i={},a=o(function(){return!!s[t]()||"
"!="
"[t]()}),u=i[t]=a?e(h):s[t];r&&(i[r]=u),n(n.P+n.F*a,"String",i)},h=l.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(c,"")),t};e.exports=l},{"./_defined":37,"./_export":41,"./_fails":42,"./_string-ws":71}],71:[function(t,e,r){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},{}],72:[function(t,e,r){var n=t("./_to-integer"),i=Math.max,o=Math.min;e.exports=function(t,e){return(t=n(t))<0?i(t+e,0):o(t,e)}},{"./_to-integer":73}],73:[function(t,e,r){var n=Math.ceil,i=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},{}],74:[function(t,e,r){var n=t("./_iobject"),i=t("./_defined");e.exports=function(t){return n(i(t))}},{"./_defined":37,"./_iobject":50}],75:[function(t,e,r){var n=t("./_to-integer"),i=Math.min;e.exports=function(t){return t>0?i(n(t),9007199254740991):0}},{"./_to-integer":73}],76:[function(t,e,r){var n=t("./_defined");e.exports=function(t){return Object(n(t))}},{"./_defined":37}],77:[function(t,e,r){var n=t("./_is-object");e.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":52}],78:[function(t,e,r){var n=0,i=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},{}],79:[function(t,e,r){var n=t("./_shared")("wks"),i=t("./_uid"),o=t("./_global").Symbol,s="function"==typeof o;(e.exports=function(t){return n[t]||(n[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=n},{"./_global":43,"./_shared":68,"./_uid":78}],80:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-methods")(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),n(n.P+n.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),t("./_add-to-unscopables")("find")},{"./_add-to-unscopables":26,"./_array-methods":29,"./_export":41}],81:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-methods")(0),o=t("./_strict-method")([].forEach,!0);n(n.P+n.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},{"./_array-methods":29,"./_export":41,"./_strict-method":69}],82:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-reduce");n(n.P+n.F*!t("./_strict-method")([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},{"./_array-reduce":30,"./_export":41,"./_strict-method":69}],83:[function(t,e,r){var n=t("./_export");n(n.P,"Function",{bind:t("./_bind")})},{"./_bind":33,"./_export":41}],84:[function(t,e,r){"use strict";var n=t("./_global"),i=t("./_has"),o=t("./_cof"),s=t("./_inherit-if-required"),a=t("./_to-primitive"),u=t("./_fails"),c=t("./_object-gopn").f,l=t("./_object-gopd").f,h=t("./_object-dp").f,f=t("./_string-trim").trim,p=n.Number,b=p,d=p.prototype,y="Number"==o(t("./_object-create")(d)),v="trim"in String.prototype,m=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){var r,n,i,o=(e=v?e.trim():f(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=e.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+e}for(var s,u=e.slice(2),c=0,l=u.length;c<l;c++)if((s=u.charCodeAt(c))<48||s>i)return NaN;return parseInt(u,n)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof p&&(y?u(function(){d.valueOf.call(r)}):"Number"!=o(r))?s(new b(m(e)),r,p):m(e)};for(var g,_=t("./_descriptors")?c(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)i(b,g=_[w])&&!i(p,g)&&h(p,g,l(b,g));p.prototype=d,d.constructor=p,t("./_redefine")(n,"Number",p)}},{"./_cof":34,"./_descriptors":38,"./_fails":42,"./_global":43,"./_has":44,"./_inherit-if-required":48,"./_object-create":54,"./_object-dp":55,"./_object-gopd":57,"./_object-gopn":58,"./_redefine":65,"./_string-trim":70,"./_to-primitive":77}],85:[function(t,e,r){var n=t("./_export");n(n.S+n.F,"Object",{assign:t("./_object-assign")})},{"./_export":41,"./_object-assign":53}],86:[function(t,e,r){var n=t("./_export");n(n.S+n.F*!t("./_descriptors"),"Object",{defineProperty:t("./_object-dp").f})},{"./_descriptors":38,"./_export":41,"./_object-dp":55}],87:[function(t,e,r){var n=t("./_to-object"),i=t("./_object-keys");t("./_object-sap")("keys",function(){return function(t){return i(n(t))}})},{"./_object-keys":61,"./_object-sap":63,"./_to-object":76}],88:[function(t,e,r){"use strict";e.exports=function(){var t=document.createElement("div");return t.setAttribute("data-a-b","c"),Boolean(t.dataset&&"c"===t.dataset.aB)}()?function(t){return t.dataset}:function(t){for(var e={},r=t.attributes,n=0,i=r.length;n<i;n++){var o=r[n];if(o){var s=o.name;if(0===s.indexOf("data-")){var a=s.slice(5).replace(/-./g,function(t){return t.charAt(1).toUpperCase()}),u=o.value;Object.defineProperty(e,a,{enumerable:!0,get:function(){return this.value}.bind({value:u||""}),set:function(t,e){void 0===e?this.removeAttribute(t):this.setAttribute(t,e)}.bind(t,s)})}}}return e}},{}],89:[function(t,e,r){"use strict";e.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},{}],90:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(e,r,n){t.call(this),this.parent=e,this.outerValue=r,this.outerIndex=n,this.index=0}return n(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(t("./Subscriber").Subscriber);r.InnerSubscriber=i},{"./Subscriber":97}],91:[function(t,e,r){"use strict";var n=t("./util/root"),i=t("./util/toSubscriber"),o=t("./symbol/observable"),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,o=i.toSubscriber(t,e,r);if(n?n.call(o,this.source):o.add(this.source?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var r=this;if(e||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?e=n.root.Rx.config.Promise:n.root.Promise&&(e=n.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,n){var i;i=r.subscribe(function(e){if(i)try{t(e)}catch(t){n(t),i.unsubscribe()}else t(e)},n,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.observable]=function(){return this},t.create=function(e){return new t(e)},t}();r.Observable=s},{"./symbol/observable":130,"./util/root":143,"./util/toSubscriber":145}],92:[function(t,e,r){"use strict";r.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},{}],93:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(){t.apply(this,arguments)}return n(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(t("./Subscriber").Subscriber);r.OuterSubscriber=i},{"./Subscriber":97}],94:[function(t,e,r){"use strict";var n=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=Date.now?Date.now:function(){return+new Date},t}();r.Scheduler=n},{}],95:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./Observable"),o=t("./Subscriber"),s=t("./Subscription"),a=t("./util/ObjectUnsubscribedError"),u=t("./SubjectSubscription"),c=t("./symbol/rxSubscriber"),l=function(t){function e(e){t.call(this,e),this.destination=e}return n(e,t),e}(o.Subscriber);r.SubjectSubscriber=l;var h=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return n(e,t),e.prototype[c.rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new f(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),n=0;n<e;n++)r[n].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new i.Observable;return t.source=this,t},e.create=function(t,e){return new f(t,e)},e}(i.Observable);r.Subject=h;var f=function(t){function e(e,r){t.call(this),this.destination=e,this.source=r}return n(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.Subscription.EMPTY},e}(h);r.AnonymousSubject=f},{"./Observable":91,"./SubjectSubscription":96,"./Subscriber":97,"./Subscription":98,"./symbol/rxSubscriber":131,"./util/ObjectUnsubscribedError":132}],96:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(e,r){t.call(this),this.subject=e,this.subscriber=r,this.closed=!1}return n(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(t("./Subscription").Subscription);r.SubjectSubscription=i},{"./Subscription":98}],97:[function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./util/isFunction"),s=t("./Subscription"),a=t("./Observer"),u=t("./symbol/rxSubscriber"),c=function(t){function e(r,i,o){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a.empty;break;case 1:if(!r){this.destination=a.empty;break}if("object"===(void 0===r?"undefined":n(r))){r instanceof e?(this.destination=r,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new l(this,r));break}default:this.syncErrorThrowable=!0,this.destination=new l(this,r,i,o)}}return i(e,t),e.prototype[u.rxSubscriber]=function(){return this},e.create=function(t,r,n){var i=new e(t,r,n);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,r=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=r,this},e}(s.Subscription);r.Subscriber=c;var l=function(t){function e(e,r,n,i){t.call(this),this._parentSubscriber=e;var s,u=this;o.isFunction(r)?s=r:r&&(s=r.next,n=r.error,i=r.complete,r!==a.empty&&(u=Object.create(r),o.isFunction(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=s,this._error=n,this._complete=i}return i(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,r){try{e.call(this._context,r)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(c)},{"./Observer":92,"./Subscription":98,"./symbol/rxSubscriber":131,"./util/isFunction":138}],98:[function(t,e,r){"use strict";function n(t){return t.reduce(function(t,e){return t.concat(e instanceof l.UnsubscriptionError?e.errors:e)},[])}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=t("./util/isArray"),s=t("./util/isObject"),a=t("./util/isFunction"),u=t("./util/tryCatch"),c=t("./util/errorObject"),l=t("./util/UnsubscriptionError"),h=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var r=this,i=r._parent,h=r._parents,f=r._unsubscribe,p=r._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var b=-1,d=h?h.length:0;i;)i.remove(this),i=++b<d&&h[b]||null;if(a.isFunction(f)&&(v=u.tryCatch(f).call(this))===c.errorObject&&(e=!0,t=t||(c.errorObject.e instanceof l.UnsubscriptionError?n(c.errorObject.e.errors):[c.errorObject.e])),o.isArray(p))for(b=-1,d=p.length;++b<d;){var y=p[b];if(s.isObject(y)){var v=u.tryCatch(y.unsubscribe).call(y);if(v===c.errorObject){e=!0,t=t||[];var m=c.errorObject.e;m instanceof l.UnsubscriptionError?t=t.concat(n(m.errors)):t.push(m)}}}if(e)throw new l.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var r=e;switch(void 0===e?"undefined":i(e)){case"function":r=new t(e);case"object":if(r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if("function"!=typeof r._addParent){var n=r;(r=new t)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(r),r._addParent(this),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.prototype._addParent=function(t){var e=this,r=e._parent,n=e._parents;r&&r!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();r.Subscription=h},{"./util/UnsubscriptionError":133,"./util/errorObject":134,"./util/isArray":135,"./util/isFunction":138,"./util/isObject":140,"./util/tryCatch":146}],99:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("./ScalarObservable"),s=t("./EmptyObservable"),a=t("../util/isScheduler"),u=function(t){function e(e,r){t.call(this),this.array=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(e,t),e.create=function(t,r){return new e(t,r)},e.of=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];var n=t[t.length-1];a.isScheduler(n)?t.pop():n=null;var i=t.length;return i>1?new e(t,n):1===i?new o.ScalarObservable(t[0],n):new s.EmptyObservable(n)},e.dispatch=function(t){var e=t.array,r=t.index,n=t.count,i=t.subscriber;r>=n?i.complete():(i.next(e[r]),i.closed||(t.index=r+1,this.schedule(t)))},e.prototype._subscribe=function(t){var r=this.array,n=r.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:r,index:0,count:n,subscriber:t});for(var o=0;o<n&&!t.closed;o++)t.next(r[o]);t.complete()},e}(i.Observable);r.ArrayObservable=u},{"../Observable":91,"../util/isScheduler":142,"./EmptyObservable":101,"./ScalarObservable":103}],100:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subject"),o=t("../Observable"),s=t("../Subscriber"),a=t("../Subscription"),u=function(t){function e(e,r){t.call(this),this.source=e,this.subjectFactory=r,this._refCount=0,this._isComplete=!1}return n(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new a.Subscription).add(this.source.subscribe(new l(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return this.lift(new h(this))},e}(o.Observable);r.ConnectableObservable=u;var c=u.prototype;r.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:c._subscribe},_isComplete:{value:c._isComplete,writable:!0},getSubject:{value:c.getSubject},connect:{value:c.connect},refCount:{value:c.refCount}};var l=function(t){function e(e,r){t.call(this,e),this.connectable=r}return n(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.SubjectSubscriber),h=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new f(t,r),i=e.subscribe(n);return n.closed||(n.connection=r.connect()),i},t}(),f=function(t){function e(e,r){t.call(this,e),this.connectable=r}return n(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},e}(s.Subscriber)},{"../Observable":91,"../Subject":95,"../Subscriber":97,"../Subscription":98}],101:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(e){t.call(this),this.scheduler=e}return n(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(t("../Observable").Observable);r.EmptyObservable=i},{"../Observable":91}],102:[function(t,e,r){"use strict";function n(t){return!!t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}function i(t){return!!t&&"function"==typeof t.on&&"function"==typeof t.off}function o(t){return!!t&&"[object NodeList]"===b.call(t)}function s(t){return!!t&&"[object HTMLCollection]"===b.call(t)}function a(t){return!!t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}var u=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},c=t("../Observable"),l=t("../util/tryCatch"),h=t("../util/isFunction"),f=t("../util/errorObject"),p=t("../Subscription"),b=Object.prototype.toString,d=function(t){function e(e,r,n,i){t.call(this),this.sourceObj=e,this.eventName=r,this.selector=n,this.options=i}return u(e,t),e.create=function(t,r,n,i){return h.isFunction(n)&&(i=n,n=void 0),new e(t,r,i,n)},e.setupSubscription=function(t,r,u,c,l){var h;if(o(t)||s(t))for(var f=0,b=t.length;f<b;f++)e.setupSubscription(t[f],r,u,c,l);else if(a(t)){var d=t;t.addEventListener(r,u,l),h=function(){return d.removeEventListener(r,u)}}else if(i(t)){var y=t;t.on(r,u),h=function(){return y.off(r,u)}}else{if(!n(t))throw new TypeError("Invalid event target");var v=t;t.addListener(r,u),h=function(){return v.removeListener(r,u)}}c.add(new p.Subscription(h))},e.prototype._subscribe=function(t){var r=this.sourceObj,n=this.eventName,i=this.options,o=this.selector,s=o?function(){for(var e=[],r=0;r<arguments.length;r++)e[r-0]=arguments[r];var n=l.tryCatch(o).apply(void 0,e);n===f.errorObject?t.error(f.errorObject.e):t.next(n)}:function(e){return t.next(e)};e.setupSubscription(r,n,s,t,i)},e}(c.Observable);r.FromEventObservable=d},{"../Observable":91,"../Subscription":98,"../util/errorObject":134,"../util/isFunction":138,"../util/tryCatch":146}],103:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(e,r){t.call(this),this.value=e,this.scheduler=r,this._isScalar=!0,r&&(this._isScalar=!1)}return n(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.done,r=t.value,n=t.subscriber;e?n.complete():(n.next(r),n.closed||(t.done=!0,this.schedule(t)))},e.prototype._subscribe=function(t){var r=this.value,n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{done:!1,value:r,subscriber:t});t.next(r),t.closed||t.complete()},e}(t("../Observable").Observable);r.ScalarObservable=i},{"../Observable":91}],104:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/isNumeric"),o=t("../Observable"),s=t("../scheduler/async"),a=t("../util/isScheduler"),u=t("../util/isDate"),c=function(t){function e(e,r,n){void 0===e&&(e=0),t.call(this),this.period=-1,this.dueTime=0,i.isNumeric(r)?this.period=Number(r)<1&&1||Number(r):a.isScheduler(r)&&(n=r),a.isScheduler(n)||(n=s.async),this.scheduler=n,this.dueTime=u.isDate(e)?+e-this.scheduler.now():e}return n(e,t),e.create=function(t,r,n){return void 0===t&&(t=0),new e(t,r,n)},e.dispatch=function(t){var e=t.index,r=t.period,n=t.subscriber,i=this;if(n.next(e),!n.closed){if(-1===r)return n.complete();t.index=e+1,i.schedule(t,r)}},e.prototype._subscribe=function(t){var r=this,n=r.period,i=r.dueTime;return r.scheduler.schedule(e.dispatch,i,{index:0,period:n,subscriber:t})},e}(o.Observable);r.TimerObservable=c},{"../Observable":91,"../scheduler/async":128,"../util/isDate":137,"../util/isNumeric":139,"../util/isScheduler":142}],105:[function(t,e,r){"use strict";var n=t("./EmptyObservable");r.empty=n.EmptyObservable.create},{"./EmptyObservable":101}],106:[function(t,e,r){"use strict";var n=t("./FromEventObservable");r.fromEvent=n.FromEventObservable.create},{"./FromEventObservable":102}],107:[function(t,e,r){"use strict";var n=t("./TimerObservable");r.timer=n.TimerObservable.create},{"./TimerObservable":104}],108:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),o=t("../util/subscribeToResult");r._catch=function(t){var e=new s(t),r=this.lift(e);return e.caught=r};var s=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.selector,this.caught))},t}(),a=function(t){function e(e,r,n){t.call(this,e),this.selector=r,this.caught=n}return n(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=void 0;try{r=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(o.subscribeToResult(this,r))}},e}(i.OuterSubscriber)},{"../OuterSubscriber":93,"../util/subscribeToResult":144}],109:[function(t,e,r){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=null,n=t;return o.isScheduler(n[t.length-1])&&(r=n.pop()),null===r&&1===t.length&&t[0]instanceof i.Observable?t[0]:new s.ArrayObservable(t,r).lift(new a.MergeAllOperator(1))}var i=t("../Observable"),o=t("../util/isScheduler"),s=t("../observable/ArrayObservable"),a=t("./mergeAll");r.concat=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(n.apply(void 0,[this].concat(t)))},r.concatStatic=n},{"../Observable":91,"../observable/ArrayObservable":99,"../util/isScheduler":142,"./mergeAll":116}],110:[function(t,e,r){"use strict";function n(t){t.debouncedNext()}var i=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../scheduler/async");r.debounceTime=function(t,e){return void 0===e&&(e=s.async),this.lift(new a(t,e))};var a=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.dueTime,this.scheduler))},t}(),u=function(t){function e(e,r,n){t.call(this,e),this.dueTime=r,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return i(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(n,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(o.Subscriber)},{"../Subscriber":97,"../scheduler/async":128}],111:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");r._do=function(t,e,r){return this.lift(new o(t,e,r))};var o=function(){function t(t,e,r){this.nextOrObserver=t,this.error=e,this.complete=r}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.nextOrObserver,this.error,this.complete))},t}(),s=function(t){function e(e,r,n,o){t.call(this,e);var s=new i.Subscriber(r,n,o);s.syncErrorThrowable=!0,this.add(s),this.safeSubscriber=s}return n(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(i.Subscriber)},{"../Subscriber":97}],112:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),o=t("../util/subscribeToResult");r.exhaustMap=function(t,e){return this.lift(new s(t,e))};var s=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.resultSelector))},t}(),a=function(t){function e(e,r,n){t.call(this,e),this.project=r,this.resultSelector=n,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}return n(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e=this.index++,r=this.destination;try{var n=this.project(t,e);this.hasSubscription=!0,this.add(o.subscribeToResult(this,n,t,e))}catch(t){r.error(t)}},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyNext=function(t,e,r,n,i){var o=this,s=o.resultSelector,a=o.destination;s?this.trySelectResult(t,e,r,n):a.next(e)},e.prototype.trySelectResult=function(t,e,r,n){var i=this,o=i.resultSelector,s=i.destination;try{var a=o(t,e,r,n);s.next(a)}catch(t){s.error(t)}},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber)},{"../OuterSubscriber":93,"../util/subscribeToResult":144}],113:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");r.filter=function(t,e){return this.lift(new o(t,e))};var o=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,r,n){t.call(this,e),this.predicate=r,this.thisArg=n,this.count=0,this.predicate=r}return n(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.Subscriber)},{"../Subscriber":97}],114:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../Subscription");r._finally=function(t){return this.lift(new s(t))};var s=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.callback))},t}(),a=function(t){function e(e,r){t.call(this,e),this.add(new o.Subscription(r))}return n(e,t),e}(i.Subscriber)},{"../Subscriber":97,"../Subscription":98}],115:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");r.map=function(t,e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new o(t,e))};var o=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}();r.MapOperator=o;var s=function(t){function e(e,r,n){t.call(this,e),this.project=r,this.count=0,this.thisArg=n||this}return n(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.Subscriber)},{"../Subscriber":97}],116:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),o=t("../util/subscribeToResult");r.mergeAll=function(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),this.lift(new s(t))};var s=function(){function t(t){this.concurrent=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.concurrent))},t}();r.MergeAllOperator=s;var a=function(t){function e(e,r){t.call(this,e),this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0}return n(e,t),e.prototype._next=function(t){this.active<this.concurrent?(this.active++,this.add(o.subscribeToResult(this,t))):this.buffer.push(t)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber);r.MergeAllSubscriber=a},{"../OuterSubscriber":93,"../util/subscribeToResult":144}],117:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/subscribeToResult"),o=t("../OuterSubscriber");r.mergeMap=function(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"number"==typeof e&&(r=e,e=null),this.lift(new s(t,e,r))};var s=function(){function t(t,e,r){void 0===r&&(r=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=r}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.resultSelector,this.concurrent))},t}();r.MergeMapOperator=s;var a=function(t){function e(e,r,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.project=r,this.resultSelector=n,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return n(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,r)},e.prototype._innerSub=function(t,e,r){this.add(i.subscribeToResult(this,t,e,r))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r,n,i){this.resultSelector?this._notifyResultSelector(t,e,r,n):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,r,n){var i;try{i=this.resultSelector(t,e,r,n)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber);r.MergeMapSubscriber=a},{"../OuterSubscriber":93,"../util/subscribeToResult":144}],118:[function(t,e,r){"use strict";var n=t("../observable/ConnectableObservable");r.multicast=function(t,e){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return this.lift(new i(r,e));var o=Object.create(this,n.connectableObservableDescriptor);return o.source=this,o.subjectFactory=r,o};var i=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var r=this.selector,n=this.subjectFactory(),i=r(n).subscribe(t);return i.add(e.subscribe(n)),i},t}();r.MulticastOperator=i},{"../observable/ConnectableObservable":100}],119:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");r.pairwise=function(){return this.lift(new o)};var o=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){t.call(this,e),this.hasPrev=!1}return n(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t},e}(i.Subscriber)},{"../Subscriber":97}],120:[function(t,e,r){"use strict";function n(){return new o.Subject}var i=t("./multicast"),o=t("../Subject");r.share=function(){return i.multicast.call(this,n).refCount()}},{"../Subject":95,"./multicast":118}],121:[function(t,e,r){"use strict";var n=t("../observable/ArrayObservable"),i=t("../observable/ScalarObservable"),o=t("../observable/EmptyObservable"),s=t("./concat"),a=t("../util/isScheduler");r.startWith=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=t[t.length-1];a.isScheduler(r)?t.pop():r=null;var u=t.length;return 1===u?s.concatStatic(new i.ScalarObservable(t[0],r),this):u>1?s.concatStatic(new n.ArrayObservable(t,r),this):s.concatStatic(new o.EmptyObservable(r),this)}},{"../observable/ArrayObservable":99,"../observable/EmptyObservable":101,"../observable/ScalarObservable":103,"../util/isScheduler":142,"./concat":109}],122:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),o=t("../util/subscribeToResult");r.switchMap=function(t,e){return this.lift(new s(t,e))};var s=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.resultSelector))},t}(),a=function(t){function e(e,r,n){t.call(this,e),this.project=r,this.resultSelector=n,this.index=0}return n(e,t),e.prototype._next=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,r)},e.prototype._innerSub=function(t,e,r){var n=this.innerSubscription;n&&n.unsubscribe(),this.add(this.innerSubscription=o.subscribeToResult(this,t,e,r))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,r,n,i){this.resultSelector?this._tryNotifyNext(t,e,r,n):this.destination.next(e)},e.prototype._tryNotifyNext=function(t,e,r,n){var i;try{i=this.resultSelector(t,e,r,n)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e}(i.OuterSubscriber)},{"../OuterSubscriber":93,"../util/subscribeToResult":144}],123:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),o=t("../util/subscribeToResult");r.takeUntil=function(t){return this.lift(new s(t))};var s=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.notifier))},t}(),a=function(t){function e(e,r){t.call(this,e),this.notifier=r,this.add(o.subscribeToResult(this,r))}return n(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.complete()},e.prototype.notifyComplete=function(){},e}(i.OuterSubscriber)},{"../OuterSubscriber":93,"../util/subscribeToResult":144}],124:[function(t,e,r){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=t[t.length-1];return"function"==typeof r&&t.pop(),new o.ArrayObservable(t).lift(new h(r))}var i=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../observable/ArrayObservable"),s=t("../util/isArray"),a=t("../Subscriber"),u=t("../OuterSubscriber"),c=t("../util/subscribeToResult"),l=t("../symbol/iterator");r.zipProto=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(n.apply(void 0,[this].concat(t)))},r.zipStatic=n;var h=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.project))},t}();r.ZipOperator=h;var f=function(t){function e(e,r,n){void 0===n&&(n=Object.create(null)),t.call(this,e),this.iterators=[],this.active=0,this.project="function"==typeof r?r:null,this.values=n}return i(e,t),e.prototype._next=function(t){var e=this.iterators;s.isArray(t)?e.push(new b(t)):"function"==typeof t[l.iterator]?e.push(new p(t[l.iterator]())):e.push(new d(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(0!==e){this.active=e;for(var r=0;r<e;r++){var n=t[r];n.stillUnsubscribed?this.add(n.subscribe(n,r)):this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){0===--this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,r=this.destination,n=0;n<e;n++)if("function"==typeof(s=t[n]).hasValue&&!s.hasValue())return;for(var i=!1,o=[],n=0;n<e;n++){var s=t[n],a=s.next();if(s.hasCompleted()&&(i=!0),a.done)return void r.complete();o.push(a.value)}this.project?this._tryProject(o):r.next(o),i&&r.complete()},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(a.Subscriber);r.ZipSubscriber=f;var p=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}(),b=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[l.iterator]=function(){return this},t.prototype.next=function(t){var e=this.index++,r=this.array;return e<this.length?{value:r[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),d=function(t){function e(e,r,n){t.call(this,e),this.parent=r,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return i(e,t),e.prototype[l.iterator]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,r,n,i){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return c.subscribeToResult(this,this.observable,this,e)},e}(u.OuterSubscriber)},{"../OuterSubscriber":93,"../Subscriber":97,"../observable/ArrayObservable":99,"../symbol/iterator":129,"../util/isArray":135,"../util/subscribeToResult":144}],125:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(e,r){t.call(this)}return n(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(t("../Subscription").Subscription);r.Action=i},{"../Subscription":98}],126:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/root"),o=function(t){function e(e,r){t.call(this,e,r),this.scheduler=e,this.work=r,this.pending=!1}return n(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),i.root.setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){return void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending?e:i.root.clearInterval(e)&&void 0||void 0},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||new Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(t("./Action").Action);r.AsyncAction=o},{"../util/root":143,"./Action":125}],127:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return n(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var r;this.active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}}},e}(t("../Scheduler").Scheduler);r.AsyncScheduler=i},{"../Scheduler":94}],128:[function(t,e,r){"use strict";var n=t("./AsyncAction"),i=t("./AsyncScheduler");r.async=new i.AsyncScheduler(n.AsyncAction)},{"./AsyncAction":126,"./AsyncScheduler":127}],129:[function(t,e,r){"use strict";function n(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var r=t.Set;if(r&&"function"==typeof(new r)["@@iterator"])return"@@iterator";var n=t.Map;if(n)for(var i=Object.getOwnPropertyNames(n.prototype),o=0;o<i.length;++o){var s=i[o];if("entries"!==s&&"size"!==s&&n.prototype[s]===n.prototype.entries)return s}return"@@iterator"}var i=t("../util/root");r.symbolIteratorPonyfill=n,r.iterator=n(i.root),r.$$iterator=r.iterator},{"../util/root":143}],130:[function(t,e,r){"use strict";function n(t){var e,r=t.Symbol;return"function"==typeof r?r.observable?e=r.observable:(e=r("observable"),r.observable=e):e="@@observable",e}var i=t("../util/root");r.getSymbolObservable=n,r.observable=n(i.root),r.$$observable=r.observable},{"../util/root":143}],131:[function(t,e,r){"use strict";var n=t("../util/root").root.Symbol;r.rxSubscriber="function"==typeof n&&"function"==typeof n.for?n.for("rxSubscriber"):"@@rxSubscriber",r.$$rxSubscriber=r.rxSubscriber},{"../util/root":143}],132:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return n(e,t),e}(Error);r.ObjectUnsubscribedError=i},{}],133:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(e){t.call(this),this.errors=e;var r=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=r.name="UnsubscriptionError",this.stack=r.stack,this.message=r.message}return n(e,t),e}(Error);r.UnsubscriptionError=i},{}],134:[function(t,e,r){"use strict";r.errorObject={e:{}}},{}],135:[function(t,e,r){"use strict";r.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},{}],136:[function(t,e,r){"use strict";r.isArrayLike=function(t){return t&&"number"==typeof t.length}},{}],137:[function(t,e,r){"use strict";r.isDate=function(t){return t instanceof Date&&!isNaN(+t)}},{}],138:[function(t,e,r){"use strict";r.isFunction=function(t){return"function"==typeof t}},{}],139:[function(t,e,r){"use strict";var n=t("../util/isArray");r.isNumeric=function(t){return!n.isArray(t)&&t-parseFloat(t)+1>=0}},{"../util/isArray":135}],140:[function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};r.isObject=function(t){return null!=t&&"object"===(void 0===t?"undefined":n(t))}},{}],141:[function(t,e,r){"use strict";r.isPromise=function(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}},{}],142:[function(t,e,r){"use strict";r.isScheduler=function(t){return t&&"function"==typeof t.schedule}},{}],143:[function(t,e,r){(function(t){"use strict";var e="undefined"!=typeof window&&window,n="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=void 0!==t&&t,o=e||i||n;r.root=o,function(){if(!o)throw new Error("RxJS could not find any global context (window, self, global)")}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],144:[function(t,e,r){"use strict";var n=t("./root"),i=t("./isArrayLike"),o=t("./isPromise"),s=t("./isObject"),a=t("../Observable"),u=t("../symbol/iterator"),c=t("../InnerSubscriber"),l=t("../symbol/observable");r.subscribeToResult=function(t,e,r,h){var f=new c.InnerSubscriber(t,r,h);if(f.closed)return null;if(e instanceof a.Observable)return e._isScalar?(f.next(e.value),f.complete(),null):e.subscribe(f);if(i.isArrayLike(e)){for(var p=0,b=e.length;p<b&&!f.closed;p++)f.next(e[p]);f.closed||f.complete()}else{if(o.isPromise(e))return e.then(function(t){f.closed||(f.next(t),f.complete())},function(t){return f.error(t)}).then(null,function(t){n.root.setTimeout(function(){throw t})}),f;if(e&&"function"==typeof e[u.iterator])for(var d=e[u.iterator]();;){var y=d.next();if(y.done){f.complete();break}if(f.next(y.value),f.closed)break}else if(e&&"function"==typeof e[l.observable]){var v=e[l.observable]();if("function"==typeof v.subscribe)return v.subscribe(new c.InnerSubscriber(t,r,h));f.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var m="You provided "+(s.isObject(e)?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";f.error(new TypeError(m))}}return null}},{"../InnerSubscriber":90,"../Observable":91,"../symbol/iterator":129,"../symbol/observable":130,"./isArrayLike":136,"./isObject":140,"./isPromise":141,"./root":143}],145:[function(t,e,r){"use strict";var n=t("../Subscriber"),i=t("../symbol/rxSubscriber"),o=t("../Observer");r.toSubscriber=function(t,e,r){if(t){if(t instanceof n.Subscriber)return t;if(t[i.rxSubscriber])return t[i.rxSubscriber]()}return t||e||r?new n.Subscriber(t,e,r):new n.Subscriber(o.empty)}},{"../Observer":92,"../Subscriber":97,"../symbol/rxSubscriber":131}],146:[function(t,e,r){"use strict";function n(){try{return i.apply(this,arguments)}catch(t){return o.errorObject.e=t,o.errorObject}}var i,o=t("./errorObject");r.tryCatch=function(t){return i=t,n}},{"./errorObject":134}],147:[function(t,e,r){"use strict";var n=t("is-arrayish"),i=Array.prototype.concat,o=Array.prototype.slice,s=e.exports=function(t){for(var e=[],r=0,s=t.length;r<s;r++){var a=t[r];n(a)?e=i.call(e,o.call(a)):e.push(a)}return e};s.wrap=function(t){return function(){return t(s(arguments))}}},{"is-arrayish":89}],148:[function(t,e,r){!function(t,e){var r={},n={};!function(t,e){function r(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=m}function n(){return t.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(e,n,i){var o=new r;return n&&(o.fill="both",o.duration="auto"),"number"!=typeof e||isNaN(e)?void 0!==e&&Object.getOwnPropertyNames(e).forEach(function(r){if("auto"!=e[r]){if(("number"==typeof o[r]||"duration"==r)&&("number"!=typeof e[r]||isNaN(e[r])))return;if("fill"==r&&-1==y.indexOf(e[r]))return;if("direction"==r&&-1==v.indexOf(e[r]))return;if("playbackRate"==r&&1!==e[r]&&t.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[r]=e[r]}}):o.duration=e,o}function o(t,e,r,n){return t<0||t>1||r<0||r>1?m:function(i){function o(t,e,r){return 3*t*(1-r)*(1-r)*r+3*e*(1-r)*r*r+r*r*r}if(i<=0){var s=0;return t>0?s=e/t:!e&&r>0&&(s=n/r),s*i}if(i>=1){var a=0;return r<1?a=(n-1)/(r-1):1==r&&t<1&&(a=(e-1)/(t-1)),1+a*(i-1)}for(var u=0,c=1;u<c;){var l=(u+c)/2,h=o(t,r,l);if(Math.abs(i-h)<1e-5)return o(e,n,l);h<i?u=l:c=l}return o(e,n,l)}}function s(t,e){return function(r){if(r>=1)return 1;var n=1/t;return(r+=e*n)-r%n}}function a(t){S||(S=document.createElement("div").style),S.animationTimingFunction="",S.animationTimingFunction=t;var e=S.animationTimingFunction;if(""==e&&n())throw new TypeError(t+" is not a valid value for easing");return e}function u(t){if("linear"==t)return m;var e=j.exec(t);if(e)return o.apply(this,e.slice(1).map(Number));var r=k.exec(t);return r?s(Number(r[1]),{start:g,middle:_,end:w}[r[2]]):O[t]||m}function c(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}function l(t,e,r){if(null==e)return E;var n=r.delay+t+r.endDelay;return e<Math.min(r.delay,n)?T:e>=Math.min(r.delay+t,n)?M:P}function h(t,e,r,n,i){switch(n){case T:return"backwards"==e||"both"==e?0:null;case P:return r-i;case M:return"forwards"==e||"both"==e?t:null;case E:return null}}function f(t,e,r,n,i){var o=i;return 0===t?e!==T&&(o+=r):o+=n/t,o}function p(t,e,r,n,i,o){var s=t===1/0?e%1:t%1;return 0!==s||r!==M||0===n||0===i&&0!==o||(s=1),s}function b(t,e,r,n){return t===M&&e===1/0?1/0:1===r?Math.floor(n)-1:Math.floor(n)}function d(t,e,r){var n=t;if("normal"!==t&&"reverse"!==t){var i=e;"alternate-reverse"===t&&(i+=1),n="normal",i!==1/0&&i%2!=0&&(n="reverse")}return"normal"===n?r:1-r}var y="backwards|forwards|both|none".split("|"),v="reverse|alternate|alternate-reverse".split("|"),m=function(t){return t};r.prototype={_setMember:function(e,r){this["_"+e]=r,this._effect&&(this._effect._timingInput[e]=r,this._effect._timing=t.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=t.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(t){this._setMember("delay",t)},get delay(){return this._delay},set endDelay(t){this._setMember("endDelay",t)},get endDelay(){return this._endDelay},set fill(t){this._setMember("fill",t)},get fill(){return this._fill},set iterationStart(t){if((isNaN(t)||t<0)&&n())throw new TypeError("iterationStart must be a non-negative number, received: "+timing.iterationStart);this._setMember("iterationStart",t)},get iterationStart(){return this._iterationStart},set duration(t){if("auto"!=t&&(isNaN(t)||t<0)&&n())throw new TypeError("duration must be non-negative or auto, received: "+t);this._setMember("duration",t)},get duration(){return this._duration},set direction(t){this._setMember("direction",t)},get direction(){return this._direction},set easing(t){this._easingFunction=u(a(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&n())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var g=1,_=.5,w=0,O={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":s(1,g),"step-middle":s(1,_),"step-end":s(1,w)},S=null,x="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",j=new RegExp("cubic-bezier\\("+x+","+x+","+x+","+x+"\\)"),k=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,E=0,T=1,M=2,P=3;t.cloneTimingInput=function(t){if("number"==typeof t)return t;var e={};for(var r in t)e[r]=t[r];return e},t.makeTiming=i,t.numericTimingToObject=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t},t.normalizeTimingInput=function(e,r){return e=t.numericTimingToObject(e),i(e,r)},t.calculateActiveDuration=function(t){return Math.abs(c(t)/t.playbackRate)},t.calculateIterationProgress=function(t,e,r){var n=l(t,e,r),i=h(t,r.fill,e,n,r.delay);if(null===i)return null;var o=f(r.duration,n,r.iterations,i,r.iterationStart),s=p(o,r.iterationStart,n,r.iterations,i,r.duration),a=b(n,r.iterations,s,o),u=d(r.direction,a,s);return r._easingFunction(u)},t.calculatePhase=l,t.normalizeEasing=a,t.parseEasingFunction=u}(r),function(t,e){function r(t,e){return t in c?c[t][e]||e:e}function n(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}function i(t,e,i){if(!n(t)){var o=s[t];if(o){a.style[t]=e;for(var u in o){var c=o[u],l=a.style[c];i[c]=r(c,l)}}else i[t]=r(t,e)}}function o(t){var e=[];for(var r in t)if(!(r in["easing","offset","composite"])){var n=t[r];Array.isArray(n)||(n=[n]);for(var i,o=n.length,s=0;s<o;s++)i={},i.offset="offset"in t?t.offset:1==o?1:s/(o-1),"easing"in t&&(i.easing=t.easing),"composite"in t&&(i.composite=t.composite),i[r]=n[s],e.push(i)}return e.sort(function(t,e){return t.offset-e.offset}),e}var s={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},a=document.createElementNS("http://www.w3.org/1999/xhtml","div"),u={thin:"1px",medium:"3px",thick:"5px"},c={borderBottomWidth:u,borderLeftWidth:u,borderRightWidth:u,borderTopWidth:u,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:u,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};t.convertToArrayForm=o,t.normalizeKeyframes=function(e){if(null==e)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||(e=o(e));for(var r=e.map(function(e){var r={};for(var n in e){var o=e[n];if("offset"==n){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==n){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==n?t.normalizeEasing(o):""+o;i(n,o,r)}return void 0==r.offset&&(r.offset=null),void 0==r.easing&&(r.easing="linear"),r}),n=!0,s=-1/0,a=0;a<r.length;a++){var u=r[a].offset;if(null!=u){if(u<s)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");s=u}else n=!1}return r=r.filter(function(t){return t.offset>=0&&t.offset<=1}),n||function(){var t=r.length;null==r[t-1].offset&&(r[t-1].offset=1),t>1&&null==r[0].offset&&(r[0].offset=0);for(var e=0,n=r[0].offset,i=1;i<t;i++){var o=r[i].offset;if(null!=o){for(var s=1;s<i-e;s++)r[e+s].offset=n+(o-n)*s/(i-e);e=i,n=o}}}(),r}}(r),function(t){var e={};t.isDeprecated=function(t,r,n,i){var o=i?"are":"is",s=new Date,a=new Date(r);return a.setMonth(a.getMonth()+3),!(s<a&&(t in e||console.warn("Web Animations: "+t+" "+o+" deprecated and will stop working on "+a.toDateString()+". "+n),e[t]=!0,1))},t.deprecated=function(e,r,n,i){var o=i?"are":"is";if(t.isDeprecated(e,r,n,i))throw new Error(e+" "+o+" no longer supported. "+n)}}(r),function(){if(document.documentElement.animate){var t=document.documentElement.animate([],0),e=!0;if(t&&(e=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach(function(r){void 0===t[r]&&(e=!0)})),!e)return}!function(t,e,r){function n(t){for(var e={},r=0;r<t.length;r++)for(var n in t[r])if("offset"!=n&&"easing"!=n&&"composite"!=n){var i={offset:t[r].offset,easing:t[r].easing,value:t[r][n]};e[n]=e[n]||[],e[n].push(i)}for(var o in e){var s=e[o];if(0!=s[0].offset||1!=s[s.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return e}function i(r){var n=[];for(var i in r)for(var o=r[i],s=0;s<o.length-1;s++){var a=s,u=s+1,c=o[a].offset,l=o[u].offset,h=c,f=l;0==s&&(h=-1/0,0==l&&(u=a)),s==o.length-2&&(f=1/0,1==c&&(a=u)),n.push({applyFrom:h,applyTo:f,startOffset:o[a].offset,endOffset:o[u].offset,easingFunction:t.parseEasingFunction(o[a].easing),property:i,interpolation:e.propertyInterpolation(i,o[a].value,o[u].value)})}return n.sort(function(t,e){return t.startOffset-e.startOffset}),n}e.convertEffectInput=function(r){var o=n(t.normalizeKeyframes(r)),s=i(o);return function(t,r){if(null!=r)s.filter(function(t){return r>=t.applyFrom&&r<t.applyTo}).forEach(function(n){var i=r-n.startOffset,o=n.endOffset-n.startOffset,s=0==o?0:n.easingFunction(i/o);e.apply(t,n.property,n.interpolation(s))});else for(var n in o)"offset"!=n&&"easing"!=n&&"composite"!=n&&e.clear(t,n)}}}(r,n),function(t,e,r){function n(t){return t.replace(/-(.)/g,function(t,e){return e.toUpperCase()})}function i(t,e,r){o[r]=o[r]||[],o[r].push([t,e])}var o={};e.addPropertiesHandler=function(t,e,r){for(var o=0;o<r.length;o++)i(t,e,n(r[o]))};var s={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};e.propertyInterpolation=function(r,i,a){var u=r;/-/.test(r)&&!t.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=n(r)),"initial"!=i&&"initial"!=a||("initial"==i&&(i=s[u]),"initial"==a&&(a=s[u]));for(var c=i==a?[]:o[u],l=0;c&&l<c.length;l++){var h=c[l][0](i),f=c[l][0](a);if(void 0!==h&&void 0!==f){var p=c[l][1](h,f);if(p){var b=e.Interpolation.apply(null,p);return function(t){return 0==t?i:1==t?a:b(t)}}}}return e.Interpolation(!1,!0,function(t){return t?a:i})}}(r,n),function(t,e,r){function n(e){var r=t.calculateActiveDuration(e),n=function(n){return t.calculateIterationProgress(r,n,e)};return n._totalDuration=e.delay+r+e.endDelay,n}e.KeyframeEffect=function(r,i,o,s){var a,u=n(t.normalizeTimingInput(o)),c=e.convertEffectInput(i),l=function(){c(r,a)};return l._update=function(t){return null!==(a=u(t))},l._clear=function(){c(r,null)},l._hasSameTarget=function(t){return r===t},l._target=r,l._totalDuration=u._totalDuration,l._id=s,l}}(r,n),function(t,e){function r(t,e){return!(!e.namespaceURI||-1==e.namespaceURI.indexOf("/svg"))&&(s in t||(t[s]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(t.navigator.userAgent)),t[s])}function n(t,e,r){r.enumerable=!0,r.configurable=!0,Object.defineProperty(t,e,r)}function i(t){this._element=t,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=t.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=r(window,t),this._savedTransformAttr=null;for(var e=0;e<this._style.length;e++){var n=this._style[e];this._surrogateStyle[n]=this._style[n]}this._updateIndices()}function o(t){if(!t._webAnimationsPatchedStyle){var e=new i(t);try{n(t,"style",{get:function(){return e}})}catch(e){t.style._set=function(e,r){t.style[e]=r},t.style._clear=function(e){t.style[e]=""}}t._webAnimationsPatchedStyle=t.style}}var s="_webAnimationsUpdateSvgTransformAttr",a={cssText:1,length:1,parentRule:1},u={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},c={removeProperty:1,setProperty:1};i.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(t){for(var e={},r=0;r<this._surrogateStyle.length;r++)e[this._surrogateStyle[r]]=!0;this._surrogateStyle.cssText=t,this._updateIndices();for(r=0;r<this._surrogateStyle.length;r++)e[this._surrogateStyle[r]]=!0;for(var n in e)this._isAnimatedProperty[n]||this._style.setProperty(n,this._surrogateStyle.getPropertyValue(n))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(t){return function(){return this._surrogateStyle[t]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(e,r){this._style[e]=r,this._isAnimatedProperty[e]=!0,this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",t.transformToSvgMatrix(r)))},_clear:function(e){this._style[e]=this._surrogateStyle[e],this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[e]}};for(var l in u)i.prototype[l]=function(t,e){return function(){var r=this._surrogateStyle[t].apply(this._surrogateStyle,arguments);return e&&(this._isAnimatedProperty[arguments[0]]||this._style[t].apply(this._style,arguments),this._updateIndices()),r}}(l,l in c);for(var h in document.documentElement.style)h in a||h in u||function(t){n(i.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(h);t.apply=function(e,r,n){o(e),e.style._set(t.propertyName(r),n)},t.clear=function(e,r){e._webAnimationsPatchedStyle&&e.style._clear(t.propertyName(r))}}(n),function(t){window.Element.prototype.animate=function(e,r){var n="";return r&&r.id&&(n=r.id),t.timeline._play(t.KeyframeEffect(this,e,r,n))}}(n),function(t,e){function r(t,e,n){if("number"==typeof t&&"number"==typeof e)return t*(1-n)+e*n;if("boolean"==typeof t&&"boolean"==typeof e)return n<.5?t:e;if(t.length==e.length){for(var i=[],o=0;o<t.length;o++)i.push(r(t[o],e[o],n));return i}throw"Mismatched interpolation arguments "+t+":"+e}n.Interpolation=function(t,e,n){return function(i){return n(r(t,e,i))}}}(),function(t,e){function r(t,e,r){return Math.max(Math.min(t,r),e)}var n=function(){function t(t,e){for(var r=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],n=0;n<4;n++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)r[n][i]+=e[n][o]*t[o][i];return r}function e(t){return 0==t[0][2]&&0==t[0][3]&&0==t[1][2]&&0==t[1][3]&&0==t[2][0]&&0==t[2][1]&&1==t[2][2]&&0==t[2][3]&&0==t[3][2]&&1==t[3][3]}return function(r,n,i,o,s){for(var a=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],u=0;u<4;u++)a[u][3]=s[u];for(u=0;u<3;u++)for(d=0;d<3;d++)a[3][u]+=r[d]*a[d][u];var c=o[0],l=o[1],h=o[2],f=o[3],p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];p[0][0]=1-2*(l*l+h*h),p[0][1]=2*(c*l-h*f),p[0][2]=2*(c*h+l*f),p[1][0]=2*(c*l+h*f),p[1][1]=1-2*(c*c+h*h),p[1][2]=2*(l*h-c*f),p[2][0]=2*(c*h-l*f),p[2][1]=2*(l*h+c*f),p[2][2]=1-2*(c*c+l*l),a=t(a,p);var b=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];i[2]&&(b[2][1]=i[2],a=t(a,b)),i[1]&&(b[2][1]=0,b[2][0]=i[0],a=t(a,b)),i[0]&&(b[2][0]=0,b[1][0]=i[0],a=t(a,b));for(u=0;u<3;u++)for(var d=0;d<3;d++)a[u][d]*=n[u];return e(a)?[a[0][0],a[0][1],a[1][0],a[1][1],a[3][0],a[3][1]]:a[0].concat(a[1],a[2],a[3])}}();t.composeMatrix=n,t.quat=function(e,n,i){var o=t.dot(e,n),s=[];if(1===(o=r(o,-1,1)))s=e;else for(var a=Math.acos(o),u=1*Math.sin(i*a)/Math.sqrt(1-o*o),c=0;c<4;c++)s.push(e[c]*(Math.cos(i*a)-o*u)+n[c]*u);return s}}(n),function(t,e,r){t.sequenceNumber=0;var n=function(t,e,r){this.target=t,this.currentTime=e,this.timelineTime=r,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};e.Animation=function(e){this.id="",e&&e._id&&(this.id=e._id),this._sequenceNumber=t.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=e,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},e.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,e.timeline._animations.push(this))},_tickCurrentTime:function(t,e){t!=this._currentTime&&(this._currentTime=t,this._isFinished&&!e&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(t){t=+t,isNaN(t)||(e.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-t/this._playbackRate),this._currentTimePending=!1,this._currentTime!=t&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(t,!0),e.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(t){t=+t,isNaN(t)||this._paused||this._idle||(this._startTime=t,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),e.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(t){if(t!=this._playbackRate){var r=this.currentTime;this._playbackRate=t,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)),null!=r&&(this.currentTime=r)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,e.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._isFinished=!0,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),e.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(t,e){"function"==typeof e&&"finish"==t&&this._finishHandlers.push(e)},removeEventListener:function(t,e){if("finish"==t){var r=this._finishHandlers.indexOf(e);r>=0&&this._finishHandlers.splice(r,1)}},_fireEvents:function(t){if(this._isFinished){if(!this._finishedFlag){var e=new n(this,this._currentTime,t),r=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout(function(){r.forEach(function(t){t.call(e.target,e)})},0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(t,e){this._idle||this._paused||(null==this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this._currentTimePending=!1,this._fireEvents(t))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var t=this._effect._target;return t._activeAnimations||(t._activeAnimations=[]),t._activeAnimations},_markTarget:function(){var t=this._targetAnimations();-1===t.indexOf(this)&&t.push(this)},_unmarkTarget:function(){var t=this._targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}}}(r,n),function(t,e,r){function n(t){var e=c;c=[],t<y.currentTime&&(t=y.currentTime),y._animations.sort(i),y._animations=a(t,!0,y._animations)[0],e.forEach(function(e){e[1](t)}),s(),h=void 0}function i(t,e){return t._sequenceNumber-e._sequenceNumber}function o(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function s(){b.forEach(function(t){t()}),b.length=0}function a(t,r,n){d=!0,p=!1,e.timeline.currentTime=t,f=!1;var i=[],o=[],s=[],a=[];return n.forEach(function(e){e._tick(t,r),e._inEffect?(o.push(e._effect),e._markTarget()):(i.push(e._effect),e._unmarkTarget()),e._needsTick&&(f=!0);var n=e._inEffect||e._needsTick;e._inTimeline=n,n?s.push(e):a.push(e)}),b.push.apply(b,i),b.push.apply(b,o),f&&requestAnimationFrame(function(){}),d=!1,[s,a]}var u=window.requestAnimationFrame,c=[],l=0;window.requestAnimationFrame=function(t){var e=l++;return 0==c.length&&u(n),c.push([e,t]),e},window.cancelAnimationFrame=function(t){c.forEach(function(e){e[0]==t&&(e[1]=function(){})})},o.prototype={_play:function(r){r._timing=t.normalizeTimingInput(r.timing);var n=new e.Animation(r);return n._idle=!1,n._timeline=this,this._animations.push(n),e.restart(),e.applyDirtiedAnimation(n),n}};var h=void 0,f=!1,p=!1;e.restart=function(){return f||(f=!0,requestAnimationFrame(function(){}),p=!0),p},e.applyDirtiedAnimation=function(t){if(!d){t._markTarget();var r=t._targetAnimations();r.sort(i),a(e.timeline.currentTime,!1,r.slice())[1].forEach(function(t){var e=y._animations.indexOf(t);-1!==e&&y._animations.splice(e,1)}),s()}};var b=[],d=!1,y=new o;e.timeline=y}(r,n),function(t,e){function r(t,e){for(var r=0,n=0;n<t.length;n++)r+=t[n]*e[n];return r}function n(t,e){return[t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12]*e[3],t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13]*e[3],t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]*e[3],t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]*e[3],t[0]*e[4]+t[4]*e[5]+t[8]*e[6]+t[12]*e[7],t[1]*e[4]+t[5]*e[5]+t[9]*e[6]+t[13]*e[7],t[2]*e[4]+t[6]*e[5]+t[10]*e[6]+t[14]*e[7],t[3]*e[4]+t[7]*e[5]+t[11]*e[6]+t[15]*e[7],t[0]*e[8]+t[4]*e[9]+t[8]*e[10]+t[12]*e[11],t[1]*e[8]+t[5]*e[9]+t[9]*e[10]+t[13]*e[11],t[2]*e[8]+t[6]*e[9]+t[10]*e[10]+t[14]*e[11],t[3]*e[8]+t[7]*e[9]+t[11]*e[10]+t[15]*e[11],t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12]*e[15],t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13]*e[15],t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14]*e[15],t[3]*e[12]+t[7]*e[13]+t[11]*e[14]+t[15]*e[15]]}function i(t){var e=t.rad||0;return((t.deg||0)/360+(t.grad||0)/400+(t.turn||0))*(2*Math.PI)+e}function o(t){switch(t.t){case"rotatex":o=i(t.d[0]);return[1,0,0,0,0,Math.cos(o),Math.sin(o),0,0,-Math.sin(o),Math.cos(o),0,0,0,0,1];case"rotatey":o=i(t.d[0]);return[Math.cos(o),0,-Math.sin(o),0,0,1,0,0,Math.sin(o),0,Math.cos(o),0,0,0,0,1];case"rotate":case"rotatez":o=i(t.d[0]);return[Math.cos(o),Math.sin(o),0,0,-Math.sin(o),Math.cos(o),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var e=t.d[0],r=t.d[1],n=t.d[2],o=i(t.d[3]),s=e*e+r*r+n*n;if(0===s)e=1,r=0,n=0;else if(1!==s){var a=Math.sqrt(s);e/=a,r/=a,n/=a}var u=Math.sin(o/2),c=u*Math.cos(o/2),l=u*u;return[1-2*(r*r+n*n)*l,2*(e*r*l+n*c),2*(e*n*l-r*c),0,2*(e*r*l-n*c),1-2*(e*e+n*n)*l,2*(r*n*l+e*c),0,2*(e*n*l+r*c),2*(r*n*l-e*c),1-2*(e*e+r*r)*l,0,0,0,0,1];case"scale":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[t.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,t.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,t.d[0],0,0,0,0,1];case"scale3d":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,t.d[2],0,0,0,0,1];case"skew":var h=i(t.d[0]),f=i(t.d[1]);return[1,Math.tan(f),0,0,Math.tan(h),1,0,0,0,0,1,0,0,0,0,1];case"skewx":o=i(t.d[0]);return[1,0,0,0,Math.tan(o),1,0,0,0,0,1,0,0,0,0,1];case"skewy":o=i(t.d[0]);return[1,Math.tan(o),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,e=t.d[0].px||0,r=t.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,e=t.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,r=t.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,n=t.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,e=t.d[0].px||0,r=t.d[1].px||0,n=t.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,t.d[0].px?-1/t.d[0].px:0,0,0,0,1];case"matrix":return[t.d[0],t.d[1],0,0,t.d[2],t.d[3],0,0,0,0,1,0,t.d[4],t.d[5],0,1];case"matrix3d":return t.d}}function s(t){return 0===t.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:t.map(o).reduce(n)}var a=function(){function t(t){return t[0][0]*t[1][1]*t[2][2]+t[1][0]*t[2][1]*t[0][2]+t[2][0]*t[0][1]*t[1][2]-t[0][2]*t[1][1]*t[2][0]-t[1][2]*t[2][1]*t[0][0]-t[2][2]*t[0][1]*t[1][0]}function e(e){for(var r=1/t(e),n=e[0][0],i=e[0][1],o=e[0][2],s=e[1][0],a=e[1][1],u=e[1][2],c=e[2][0],l=e[2][1],h=e[2][2],f=[[(a*h-u*l)*r,(o*l-i*h)*r,(i*u-o*a)*r,0],[(u*c-s*h)*r,(n*h-o*c)*r,(o*s-n*u)*r,0],[(s*l-a*c)*r,(c*i-n*l)*r,(n*a-i*s)*r,0]],p=[],b=0;b<3;b++){for(var d=0,y=0;y<3;y++)d+=e[3][y]*f[y][b];p.push(d)}return p.push(1),f.push(p),f}function n(t){return[[t[0][0],t[1][0],t[2][0],t[3][0]],[t[0][1],t[1][1],t[2][1],t[3][1]],[t[0][2],t[1][2],t[2][2],t[3][2]],[t[0][3],t[1][3],t[2][3],t[3][3]]]}function i(t,e){for(var r=[],n=0;n<4;n++){for(var i=0,o=0;o<4;o++)i+=t[o]*e[o][n];r.push(i)}return r}function o(t){var e=s(t);return[t[0]/e,t[1]/e,t[2]/e]}function s(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2])}function a(t,e,r,n){return[r*t[0]+n*e[0],r*t[1]+n*e[1],r*t[2]+n*e[2]]}function u(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}return function(c){var l=[c.slice(0,4),c.slice(4,8),c.slice(8,12),c.slice(12,16)];if(1!==l[3][3])return null;for(var h=[],f=0;f<4;f++)h.push(l[f].slice());for(f=0;f<3;f++)h[f][3]=0;if(0===t(h))return null;var p,b=[];l[0][3]||l[1][3]||l[2][3]?(b.push(l[0][3]),b.push(l[1][3]),b.push(l[2][3]),b.push(l[3][3]),p=i(b,n(e(h)))):p=[0,0,0,1];var d=l[3].slice(0,3),y=[];y.push(l[0].slice(0,3));var v=[];v.push(s(y[0])),y[0]=o(y[0]);var m=[];y.push(l[1].slice(0,3)),m.push(r(y[0],y[1])),y[1]=a(y[1],y[0],1,-m[0]),v.push(s(y[1])),y[1]=o(y[1]),m[0]/=v[1],y.push(l[2].slice(0,3)),m.push(r(y[0],y[2])),y[2]=a(y[2],y[0],1,-m[1]),m.push(r(y[1],y[2])),y[2]=a(y[2],y[1],1,-m[2]),v.push(s(y[2])),y[2]=o(y[2]),m[1]/=v[2],m[2]/=v[2];var g=u(y[1],y[2]);if(r(y[0],g)<0)for(f=0;f<3;f++)v[f]*=-1,y[f][0]*=-1,y[f][1]*=-1,y[f][2]*=-1;var _,w,O=y[0][0]+y[1][1]+y[2][2]+1;return O>1e-4?(_=.5/Math.sqrt(O),w=[(y[2][1]-y[1][2])*_,(y[0][2]-y[2][0])*_,(y[1][0]-y[0][1])*_,.25/_]):y[0][0]>y[1][1]&&y[0][0]>y[2][2]?(_=2*Math.sqrt(1+y[0][0]-y[1][1]-y[2][2]),w=[.25*_,(y[0][1]+y[1][0])/_,(y[0][2]+y[2][0])/_,(y[2][1]-y[1][2])/_]):y[1][1]>y[2][2]?(_=2*Math.sqrt(1+y[1][1]-y[0][0]-y[2][2]),w=[(y[0][1]+y[1][0])/_,.25*_,(y[1][2]+y[2][1])/_,(y[0][2]-y[2][0])/_]):(_=2*Math.sqrt(1+y[2][2]-y[0][0]-y[1][1]),w=[(y[0][2]+y[2][0])/_,(y[1][2]+y[2][1])/_,.25*_,(y[1][0]-y[0][1])/_]),[d,v,m,w,p]}}();t.dot=r,t.makeMatrixDecomposition=function(t){return[a(s(t))]},t.transformListToMatrix=s}(n),function(t){function e(t,e){var r=t.exec(e);if(r)return r=t.ignoreCase?r[0].toLowerCase():r[0],[r,e.substr(r.length)]}function r(t,e){var r=t(e=e.replace(/^\s*/,""));if(r)return[r[0],r[1].replace(/^\s*/,"")]}function n(t,e){for(var r=t,n=e;r&&n;)r>n?r%=n:n%=r;return r=t*e/(r+n)}function i(t,e,r,i,o){for(var s=[],a=[],u=[],c=n(i.length,o.length),l=0;l<c;l++){var h=e(i[l%i.length],o[l%o.length]);if(!h)return;s.push(h[0]),a.push(h[1]),u.push(h[2])}return[s,a,function(e){var n=e.map(function(t,e){return u[e](t)}).join(r);return t?t(n):n}]}t.consumeToken=e,t.consumeTrimmed=r,t.consumeRepeated=function(t,n,i){t=r.bind(null,t);for(var o=[];;){var s=t(i);if(!s)return[o,i];if(o.push(s[0]),i=s[1],!(s=e(n,i))||""==s[1])return[o,i];i=s[1]}},t.consumeParenthesised=function(t,e){for(var r=0,n=0;n<e.length&&(!/\s|,/.test(e[n])||0!=r);n++)if("("==e[n])r++;else if(")"==e[n]&&(0==--r&&n++,r<=0))break;var i=t(e.substr(0,n));return void 0==i?void 0:[i,e.substr(n)]},t.ignore=function(t){return function(e){var r=t(e);return r&&(r[0]=void 0),r}},t.optional=function(t,e){return function(r){return t(r)||[e,r]}},t.consumeList=function(e,r){for(var n=[],i=0;i<e.length;i++){var o=t.consumeTrimmed(e[i],r);if(!o||""==o[0])return;void 0!==o[0]&&n.push(o[0]),r=o[1]}if(""==r)return n},t.mergeNestedRepeated=i.bind(null,null),t.mergeWrappedNestedRepeated=i,t.mergeList=function(t,e,r){for(var n=[],i=[],o=[],s=0,a=0;a<r.length;a++)if("function"==typeof r[a]){var u=r[a](t[s],e[s++]);n.push(u[0]),i.push(u[1]),o.push(u[2])}else!function(t){n.push(!1),i.push(!1),o.push(function(){return r[t]})}(a);return[n,i,function(t){for(var e="",r=0;r<t.length;r++)e+=o[r](t[r]);return e}]}}(n),function(t){function e(e){var r={inset:!1,lengths:[],color:null},n=t.consumeRepeated(function(e){var n=t.consumeToken(/^inset/i,e);return n?(r.inset=!0,n):(n=t.consumeLengthOrPercent(e))?(r.lengths.push(n[0]),n):(n=t.consumeColor(e))?(r.color=n[0],n):void 0},/^/,e);if(n&&n[0].length)return[r,n[1]]}var r=function(e,r,n,i){function o(t){return{inset:t,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var s=[],a=[],u=0;u<n.length||u<i.length;u++){var c=n[u]||o(i[u].inset),l=i[u]||o(n[u].inset);s.push(c),a.push(l)}return t.mergeNestedRepeated(e,r,s,a)}.bind(null,function(e,r){for(;e.lengths.length<Math.max(e.lengths.length,r.lengths.length);)e.lengths.push({px:0});for(;r.lengths.length<Math.max(e.lengths.length,r.lengths.length);)r.lengths.push({px:0});if(e.inset==r.inset&&!!e.color==!!r.color){for(var n,i=[],o=[[],0],s=[[],0],a=0;a<e.lengths.length;a++){var u=t.mergeDimensions(e.lengths[a],r.lengths[a],2==a);o[0].push(u[0]),s[0].push(u[1]),i.push(u[2])}if(e.color&&r.color){var c=t.mergeColors(e.color,r.color);o[1]=c[0],s[1]=c[1],n=c[2]}return[o,s,function(t){for(var r=e.inset?"inset ":" ",o=0;o<i.length;o++)r+=i[o](t[0][o])+" ";return n&&(r+=n(t[1])),r}]}},", ");t.addPropertiesHandler(function(r){var n=t.consumeRepeated(e,/^,/,r);if(n&&""==n[1])return n[0]},r,["box-shadow","text-shadow"])}(n),function(t,e){function r(t){return t.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function n(t,e,r){return Math.min(e,Math.max(t,r))}function i(t){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t))return Number(t)}function o(t,e){return function(i,o){return[i,o,function(i){return r(n(t,e,i))}]}}function s(t){var e=t.trim().split(/\s*[\s,]\s*/);if(0!==e.length){for(var r=[],n=0;n<e.length;n++){var o=i(e[n]);if(void 0===o)return;r.push(o)}return r}}t.clamp=n,t.addPropertiesHandler(s,function(t,e){if(t.length==e.length)return[t,e,function(t){return t.map(r).join(" ")}]},["stroke-dasharray"]),t.addPropertiesHandler(i,o(0,1/0),["border-image-width","line-height"]),t.addPropertiesHandler(i,o(0,1),["opacity","shape-image-threshold"]),t.addPropertiesHandler(i,function(t,e){if(0!=t)return o(0,1/0)(t,e)},["flex-grow","flex-shrink"]),t.addPropertiesHandler(i,function(t,e){return[t,e,function(t){return Math.round(n(1,1/0,t))}]},["orphans","widows"]),t.addPropertiesHandler(i,function(t,e){return[t,e,Math.round]},["z-index"]),t.parseNumber=i,t.parseNumberList=s,t.mergeNumbers=function(t,e){return[t,e,r]},t.numberToString=r}(n),function(t,e){n.addPropertiesHandler(String,function(t,e){if("visible"==t||"visible"==e)return[0,1,function(r){return r<=0?t:r>=1?e:"visible"}]},["visibility"])}(),function(t,e){function r(t){t=t.trim(),o.fillStyle="#000",o.fillStyle=t;var e=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=t,e==o.fillStyle){o.fillRect(0,0,1,1);var r=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var n=r[3]/255;return[r[0]*n,r[1]*n,r[2]*n,n]}}function n(e,r){return[e,r,function(e){if(e[3])for(var r=0;r<3;r++)e[r]=Math.round(function(t){return Math.max(0,Math.min(255,t))}(e[r]/e[3]));return e[3]=t.numberToString(t.clamp(0,1,e[3])),"rgba("+e.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var o=i.getContext("2d");t.addPropertiesHandler(r,n,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),t.consumeColor=t.consumeParenthesised.bind(null,r),t.mergeColors=n}(n),function(t,e){function r(t){function e(){var e=a.exec(t);s=e?e[0]:void 0}function r(){var t=Number(s);return e(),t}function n(){if("("!==s)return r();e();var t=o();return")"!==s?NaN:(e(),t)}function i(){for(var t=n();"*"===s||"/"===s;){var r=s;e();var i=n();"*"===r?t*=i:t/=i}return t}function o(){for(var t=i();"+"===s||"-"===s;){var r=s;e();var n=i();"+"===r?t+=n:t-=n}return t}var s,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),o()}function n(t,e){if("0"==(e=e.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(e)){var n={};e=(e=e.replace(/calc\(/g,"(")).replace(t,function(t){return n[t]=null,"U"+t});for(var i="U("+t.source+")",o=e.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),s=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],a=0;a<s.length;)s[a].test(o)?(o=o.replace(s[a],"$1"),a=0):a++;if("D"==o){for(var u in n){var c=r(e.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(i,"g"),"*0"));if(!isFinite(c))return;n[u]=c}return n}}}function i(t,e){return o(t,e,!0)}function o(e,r,n){var i,o=[];for(i in e)o.push(i);for(i in r)o.indexOf(i)<0&&o.push(i);return e=o.map(function(t){return e[t]||0}),r=o.map(function(t){return r[t]||0}),[e,r,function(e){var r=e.map(function(r,i){return 1==e.length&&n&&(r=Math.max(r,0)),t.numberToString(r)+o[i]}).join(" + ");return e.length>1?"calc("+r+")":r}]}var s="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",a=n.bind(null,new RegExp(s,"g")),u=n.bind(null,new RegExp(s+"|%","g")),c=n.bind(null,/deg|rad|grad|turn/g);t.parseLength=a,t.parseLengthOrPercent=u,t.consumeLengthOrPercent=t.consumeParenthesised.bind(null,u),t.parseAngle=c,t.mergeDimensions=o;var l=t.consumeParenthesised.bind(null,a),h=t.consumeRepeated.bind(void 0,l,/^/),f=t.consumeRepeated.bind(void 0,h,/^,/);t.consumeSizePairList=f;var p=t.mergeNestedRepeated.bind(void 0,i," "),b=t.mergeNestedRepeated.bind(void 0,p,",");t.mergeNonNegativeSizePair=p,t.addPropertiesHandler(function(t){var e=f(t);if(e&&""==e[1])return e[0]},b,["background-size"]),t.addPropertiesHandler(u,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),t.addPropertiesHandler(u,o,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(n),function(t,e){function r(e){return t.consumeLengthOrPercent(e)||t.consumeToken(/^auto/,e)}function n(e){var n=t.consumeList([t.ignore(t.consumeToken.bind(null,/^rect/)),t.ignore(t.consumeToken.bind(null,/^\(/)),t.consumeRepeated.bind(null,r,/^,/),t.ignore(t.consumeToken.bind(null,/^\)/))],e);if(n&&4==n[0].length)return n[0]}var i=t.mergeWrappedNestedRepeated.bind(null,function(t){return"rect("+t+")"},function(e,r){return"auto"==e||"auto"==r?[!0,!1,function(n){var i=n?e:r;if("auto"==i)return"auto";var o=t.mergeDimensions(i,i);return o[2](o[0])}]:t.mergeDimensions(e,r)},", ");t.parseBox=n,t.mergeBoxes=i,t.addPropertiesHandler(n,i,["clip"])}(n),function(t,e){function r(t){return function(e){var r=0;return t.map(function(t){return t===c?e[r++]:t})}}function n(t){return t}function i(e){if("none"==(e=e.toLowerCase().trim()))return[];for(var r,n=/\s*(\w+)\(([^)]*)\)/g,i=[],o=0;r=n.exec(e);){if(r.index!=o)return;o=r.index+r[0].length;var s=r[1],a=f[s];if(!a)return;var u=r[2].split(","),c=a[0];if(c.length<u.length)return;for(var p=[],b=0;b<c.length;b++){var d,y=u[b],v=c[b];if(void 0===(d=y?{A:function(e){return"0"==e.trim()?h:t.parseAngle(e)},N:t.parseNumber,T:t.parseLengthOrPercent,L:t.parseLength}[v.toUpperCase()](y):{a:h,n:p[0],t:l}[v]))return;p.push(d)}if(i.push({t:s,d:p}),n.lastIndex==e.length)return i}}function o(t){return t.toFixed(6).replace(".000000","")}function s(e,r){if(e.decompositionPair!==r){e.decompositionPair=r;var n=t.makeMatrixDecomposition(e)}if(r.decompositionPair!==e){r.decompositionPair=e;var i=t.makeMatrixDecomposition(r)}return null==n[0]||null==i[0]?[[!1],[!0],function(t){return t?r[0].d:e[0].d}]:(n[0].push(0),i[0].push(1),[n,i,function(e){var r=t.quat(n[0][3],i[0][3],e[5]);return t.composeMatrix(e[0],e[1],e[2],r,e[4]).map(o).join(",")}])}function a(t){return t.replace(/[xy]/,"")}function u(t){return t.replace(/(x|y|z|3d)?$/,"3d")}var c=null,l={px:0},h={deg:0},f={matrix:["NNNNNN",[c,c,0,0,c,c,0,0,0,0,1,0,c,c,0,1],n],matrix3d:["NNNNNNNNNNNNNNNN",n],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",r([c,c,1]),n],scalex:["N",r([c,1,1]),r([c,1])],scaley:["N",r([1,c,1]),r([1,c])],scalez:["N",r([1,1,c])],scale3d:["NNN",n],skew:["Aa",null,n],skewx:["A",null,r([c,h])],skewy:["A",null,r([h,c])],translate:["Tt",r([c,c,l]),n],translatex:["T",r([c,l,l]),r([c,l])],translatey:["T",r([l,c,l]),r([l,c])],translatez:["L",r([l,l,c])],translate3d:["TTL",n]};t.addPropertiesHandler(i,function(e,r){var n=t.makeMatrixDecomposition&&!0,i=!1;if(!e.length||!r.length)for(e.length||(i=!0,e=r,r=[]),d=0;d<e.length;d++){var o=e[d].t,c=e[d].d,l="scale"==o.substr(0,5)?1:0;r.push({t:o,d:c.map(function(t){if("number"==typeof t)return l;var e={};for(var r in t)e[r]=l;return e})})}var h=[],p=[],b=[];if(e.length!=r.length){if(!n)return;h=[(k=s(e,r))[0]],p=[k[1]],b=[["matrix",[k[2]]]]}else for(var d=0;d<e.length;d++){var y=e[d].t,v=r[d].t,m=e[d].d,g=r[d].d,_=f[y],w=f[v];if(function(t,e){return"perspective"==t&&"perspective"==e||("matrix"==t||"matrix3d"==t)&&("matrix"==e||"matrix3d"==e)}(y,v)){if(!n)return;k=s([e[d]],[r[d]]),h.push(k[0]),p.push(k[1]),b.push(["matrix",[k[2]]])}else{if(y==v)o=y;else if(_[2]&&w[2]&&a(y)==a(v))o=a(y),m=_[2](m),g=w[2](g);else{if(!_[1]||!w[1]||u(y)!=u(v)){if(!n)return;h=[(k=s(e,r))[0]],p=[k[1]],b=[["matrix",[k[2]]]];break}o=u(y),m=_[1](m),g=w[1](g)}for(var O=[],S=[],x=[],j=0;j<m.length;j++){var k=("number"==typeof m[j]?t.mergeNumbers:t.mergeDimensions)(m[j],g[j]);O[j]=k[0],S[j]=k[1],x.push(k[2])}h.push(O),p.push(S),b.push([o,x])}}if(i){var E=h;h=p,p=E}return[h,p,function(t){return t.map(function(t,e){var r=t.map(function(t,r){return b[e][1][r](t)}).join(",");return"matrix"==b[e][0]&&16==r.split(",").length&&(b[e][0]="matrix3d"),b[e][0]+"("+r+")"}).join(" ")}]},["transform"]),t.transformToSvgMatrix=function(e){var r=t.transformListToMatrix(i(e));return"matrix("+o(r[0])+" "+o(r[1])+" "+o(r[4])+" "+o(r[5])+" "+o(r[12])+" "+o(r[13])+")"}}(n),function(t){function e(e){return e=100*Math.round(e/100),400===(e=t.clamp(100,900,e))?"normal":700===e?"bold":String(e)}t.addPropertiesHandler(function(t){var e=Number(t);if(!(isNaN(e)||e<100||e>900||e%100!=0))return e},function(t,r){return[t,r,e]},["font-weight"])}(n),function(t){function e(t){var e={};for(var r in t)e[r]=-t[r];return e}function r(e){return t.consumeToken(/^(left|center|right|top|bottom)\b/i,e)||t.consumeLengthOrPercent(e)}function n(e,n){var i=t.consumeRepeated(r,/^/,n);if(i&&""==i[1]){var s=i[0];if(s[0]=s[0]||"center",s[1]=s[1]||"center",3==e&&(s[2]=s[2]||{px:0}),s.length==e){if(/top|bottom/.test(s[0])||/left|right/.test(s[1])){var a=s[0];s[0]=s[1],s[1]=a}if(/left|right|center|Object/.test(s[0])&&/top|bottom|center|Object/.test(s[1]))return s.map(function(t){return"object"==typeof t?t:o[t]})}}}function i(n){var i=t.consumeRepeated(r,/^/,n);if(i){for(var s=i[0],a=[{"%":50},{"%":50}],u=0,c=!1,l=0;l<s.length;l++){var h=s[l];"string"==typeof h?(c=/bottom|right/.test(h),u={left:0,right:0,center:u,top:1,bottom:1}[h],a[u]=o[h],"center"==h&&u++):(c&&(h=e(h),h["%"]=(h["%"]||0)+100),a[u]=h,u++,c=!1)}return[a,i[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},s=t.mergeNestedRepeated.bind(null,t.mergeDimensions," ");t.addPropertiesHandler(n.bind(null,3),s,["transform-origin"]),t.addPropertiesHandler(n.bind(null,2),s,["perspective-origin"]),t.consumePosition=i,t.mergeOffsetList=s;var a=t.mergeNestedRepeated.bind(null,s,", ");t.addPropertiesHandler(function(e){var r=t.consumeRepeated(i,/^,/,e);if(r&&""==r[1])return r[0]},a,["background-position","object-position"])}(n),function(t){var e=t.consumeParenthesised.bind(null,t.parseLengthOrPercent),r=t.consumeRepeated.bind(void 0,e,/^/),n=t.mergeNestedRepeated.bind(void 0,t.mergeDimensions," "),i=t.mergeNestedRepeated.bind(void 0,n,",");t.addPropertiesHandler(function(n){var i=t.consumeToken(/^circle/,n);if(i&&i[0])return["circle"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),e,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],i[1]));var o=t.consumeToken(/^ellipse/,n);if(o&&o[0])return["ellipse"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),r,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],o[1]));var s=t.consumeToken(/^polygon/,n);return s&&s[0]?["polygon"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),t.optional(t.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),t.consumeSizePairList,t.ignore(t.consumeToken.bind(void 0,/^\)/))],s[1])):void 0},function(e,r){if(e[0]===r[0])return"circle"==e[0]?t.mergeList(e.slice(1),r.slice(1),["circle(",t.mergeDimensions," at ",t.mergeOffsetList,")"]):"ellipse"==e[0]?t.mergeList(e.slice(1),r.slice(1),["ellipse(",t.mergeNonNegativeSizePair," at ",t.mergeOffsetList,")"]):"polygon"==e[0]&&e[1]==r[1]?t.mergeList(e.slice(2),r.slice(2),["polygon(",e[1],i,")"]):void 0},["shape-outside"])}(n),function(t,e){function r(t,e){e.concat([t]).forEach(function(e){e in document.documentElement.style&&(n[t]=e),i[e]=t})}var n={},i={};r("transform",["webkitTransform","msTransform"]),r("transformOrigin",["webkitTransformOrigin"]),r("perspective",["webkitPerspective"]),r("perspectiveOrigin",["webkitPerspectiveOrigin"]),t.propertyName=function(t){return n[t]||t},t.unprefixedPropertyName=function(t){return i[t]||t}}(n)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)t=function(){return performance.now()};else var t=function(){return Date.now()};var e=function(t,e,r){this.target=t,this.currentTime=e,this.timelineTime=r,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},r=window.Element.prototype.animate;window.Element.prototype.animate=function(n,i){var o=r.call(this,n,i);o._cancelHandlers=[],o.oncancel=null;var s=o.cancel;o.cancel=function(){s.call(this);var r=new e(this,null,t()),n=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout(function(){n.forEach(function(t){t.call(r.target,r)})},0)};var a=o.addEventListener;o.addEventListener=function(t,e){"function"==typeof e&&"cancel"==t?this._cancelHandlers.push(e):a.call(this,t,e)};var u=o.removeEventListener;return o.removeEventListener=function(t,e){if("cancel"==t){var r=this._cancelHandlers.indexOf(e);r>=0&&this._cancelHandlers.splice(r,1)}else u.call(this,t,e)},o}}}(),function(t){var e=document.documentElement,r=null,n=!1;try{var i="0"==getComputedStyle(e).getPropertyValue("opacity")?"1":"0";(r=e.animate({opacity:[i,i]},{duration:1})).currentTime=0,n=getComputedStyle(e).getPropertyValue("opacity")==i}catch(t){}finally{r&&r.cancel()}if(!n){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(e,r){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||null===e||(e=t.convertToArrayForm(e)),o.call(this,e,r)}}}(r),e.true=t}({},function(){return this}())},{}],149:[function(t,e,r){(function(t){"use strict";function e(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":u(e))&&"function"!=typeof e?t:e}function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":u(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{return new CustomEvent(t,e)}catch(n){var r=document.createEvent("CustomEvent");return r.initCustomEvent(t,!0,!0,e.detail),r}}function s(t,e){var r=this;p(this,t,{enumerable:!0,get:function(){return r[d][t]},set:function(n){null!=e?e(n):r.setState(t,n)}})}function a(){var t=this,e=this.sideEffects();Object.keys(this[d]).forEach(function(r){if(void 0===t[r]){var n=e[r];s.call(t,r,n)}})}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};Object.defineProperty(r,"__esModule",{value:!0});var c="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(t){return void 0===t?"undefined":u(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":u(t)},l=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),h=function t(){i(this,t)},f=t.Symbol||function(t){return"_"+t},p=Object.defineProperty.bind(Object),b=f("root"),d=f("state");r.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return function(r){function s(){return i(this,s),e(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return n(s,t),l(s,[{key:"getComponentName",value:function(){throw Error("Component needs to have a name, e.g. `my-tag`. Override `getComponentName`")}},{key:"setupComponent",value:function(t,e){return p(this,d,{value:Object.assign({},this.defaults(),e)}),a.call(this),p(this,b,{value:this.setupDOM(t)}),this}},{key:"setupDOM",value:function(t){return t}},{key:"getRoot",value:function(){return this[b]}},{key:"getEl",value:function(){return this[b]}},{key:"fireEvent",value:function(t,e){var r=this.componentName+"-"+t;this.el.dispatchEvent(o(r,e))}},{key:"defaults",value:function(){return console.warn("defaults not provided"),{}}},{key:"sideEffects",value:function(){return console.warn("sideEffects not provided"),{}}},{key:"setState",value:function(t,e){if("string"==typeof t)this.setStateKV(t,e);else{if("object"!==(void 0===t?"undefined":c(t)))throw Error("setState needs argument");this.setStateMap(t)}}},{key:"setStateKV",value:function(t,e){this[d][t]=e}},{key:"setStateMap",value:function(t){var e=this;Object.keys(this[d]).forEach(function(r){e.setStateKV(r,t[r])})}},{key:"componentName",get:function(){return this.getComponentName()}},{key:"root",get:function(){return this.getRoot()}},{key:"el",get:function(){return this.getEl()}}]),s}()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],150:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.linearTween=function(t,e,r,n){return r*t/n+e},r.pageDist=function(t,e){return Math.sqrt(Math.pow(t.pageX-e.pageX,2)+Math.pow(t.pageY-e.pageY,2))},r.contains=function(t,e){for(var r=t;null!=r;){if(r.classList&&r.classList.contains(e))return!0;r=r.parentNode}return!1}},{}],151:[function(t,e,r){(function(e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":s(e))&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":s(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),u=function t(e,r,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,r);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,r,n)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(n)},c=function(t){return t&&t.__esModule?t:{default:t}}(t("y-component/src/component-core")),l=t("../common"),h=e.Symbol||function(t){return"_"+t},f=h("idle"),p=h("touching"),b=h("startAnimating"),d=h("animating"),y=Object.defineProperty.bind(Object);r.default=function(t){return function(e){function r(){return n(this,r),i(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return o(r,(0,c.default)(t)),a(r,[{key:"getComponentName",value:function(){return"y-drawer"}},{key:"defaults",value:function(){return{opened:!1,transitionDuration:200,persistent:!1}}},{key:"sideEffects",value:function(){var t=this;return{opened:function(e){!0===e?t.open():t.close()},persistent:function(e){!0===e?t.persist():t.unpersist()}}}},{key:"setupComponent",value:function(t,e){return u(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"setupComponent",this).call(this,t,e),this.cacheDOMElements(),this.defProperties(),this.bindCallbacks(),this.jumpTo(this.opened),this.persistent||this.addEventListeners(),this.persistent&&(this.scrim.style.display="none"),this}},{key:"cacheDOMElements",value:function(){y(this,"scrim",{value:this.root.querySelector(".y-drawer-scrim")}),y(this,"content",{value:this.root.querySelector(".y-drawer-content")})}},{key:"defProperties",value:function(){y(this,"startX",{value:0,writable:!0}),y(this,"startY",{value:0,writable:!0}),y(this,"pageX",{value:0,writable:!0}),y(this,"pageY",{value:0,writable:!0}),y(this,"lastPageX",{value:0,writable:!0}),y(this,"lastPageY",{value:0,writable:!0}),y(this,"isScrolling",{writable:!0}),y(this,"startedMoving",{value:!1,writable:!0}),y(this,"loopState",{value:f,writable:!0}),y(this,"velocity",{value:0,writable:!0}),y(this,"startTranslateX",{value:0,writable:!0}),y(this,"translateX",{value:0,writable:!0}),y(this,"animationFrameRequested",{value:!1,writable:!0}),y(this,"touching",{value:!1,writable:!0}),y(this,"lastTime",{writable:!0}),y(this,"sliderWidth",{writable:!0}),y(this,"animation",{writable:!0,configurable:!0})}},{key:"bindCallbacks",value:function(){y(this,"touchStartCallback",{value:this.touchStartCallback.bind(this)}),y(this,"touchMoveCallback",{value:this.touchMoveCallback.bind(this)}),y(this,"touchEndCallback",{value:this.touchEndCallback.bind(this)}),y(this,"scrimClickCallback",{value:this.scrimClickCallback.bind(this)}),y(this,"animationFrameCallback",{value:this.animationFrameCallback.bind(this)})}},{key:"addEventListeners",value:function(){document.addEventListener("touchstart",this.touchStartCallback,{passive:!1}),document.addEventListener("touchmove",this.touchMoveCallback,{passive:!1}),document.addEventListener("touchend",this.touchEndCallback,{passive:!1}),this.scrim.addEventListener("click",this.scrimClickCallback)}},{key:"removeEventListeners",value:function(){document.removeEventListener("touchstart",this.touchStartCallback,{passive:!1}),document.removeEventListener("touchmove",this.touchMoveCallback,{passive:!1}),document.removeEventListener("touchend",this.touchEndCallback,{passive:!1}),this.scrim.removeEventListener("click",this.scrimClickCallback)}},{key:"requestAnimationLoop",value:function(){this.animationFrameRequested||(this.animationFrameRequested=!0,requestAnimationFrame(this.animationFrameCallback))}},{key:"getNearestTouch",value:function(t){var e=this;return 1===t.length?t[0]:Array.prototype.reduce.call(t,function(t,r){var n=(0,l.pageDist)(e,r);return n<t.dist?{dist:n,touch:r}:t},{dist:Number.POSITIVE_INFINITY,touch:null}).touch}},{key:"touchStartCallback",value:function(t){if(1===t.touches.length){this.isScrolling=void 0;var e=t.touches[0];this.startX=e.pageX,this.startY=e.pageY,this.pageX=e.pageX,this.pageY=e.pageY,this.lastPageX=e.pageX,this.lastPageY=e.pageY,(this.opened||this.pageX<window.innerWidth/3)&&(this.prepInteraction(),this.touching=!0,this.loopState=p)}}},{key:"touchMoveCallback",value:function(t){if(this.touching){var e=this.getNearestTouch(t.touches);if(this.pageX=e.pageX,this.pageY=e.pageY,void 0===this.isScrolling&&this.startedMoving&&(this.isScrolling=Math.abs(this.startY-this.pageY)>Math.abs(this.startX-this.pageX),this.isScrolling||(this.loopState=p,this.requestAnimationLoop())),this.isScrolling)return;t.preventDefault(),this.startedMoving=!0}}},{key:"updateMenuOpen",value:function(){this.velocity>.2?this.setState("opened",!0):this.velocity<-.2?this.setState("opened",!1):this.translateX>=this.sliderWidth/2?this.setState("opened",!0):this.setState("opened",!1)}},{key:"touchEndCallback",value:function(t){if(this.touching){if(this.isScrolling||t.touches.length>0)return;this.startedMoving&&this.updateMenuOpen(),this.opened?this.scrim.style.pointerEvents="all":this.scrim.style.pointerEvents="",this.loopState=b,this.startedMoving=!1,this.touching=!1}}},{key:"scrimClickCallback",value:function(){this.close()}},{key:"prepInteraction",value:function(){this.content.style.willChange="transform",this.scrim.style.willChange="opacity",this.content.classList.remove("y-drawer-opened"),this.sliderWidth=this.getMovableSliderWidth()}},{key:"getMovableSliderWidth",value:function(){return-this.content.offsetLeft}},{key:"animateTo",value:function(t){this.prepInteraction(),this.setState("opened",t),this.loopState=b,this.requestAnimationLoop()}},{key:"jumpTo",value:function(t){this.prepInteraction(),this.setState("opened",t),this.loopState=f,this.startTranslateX=t*this.sliderWidth,this.endAnimating(),this.updateDOM(this.startTranslateX,this.sliderWidth)}},{key:"updateTranslateX",value:function(){var t=this.pageX-this.startX;return this.translateX=this.startTranslateX+t,this.translateX=Math.max(0,Math.min(this.sliderWidth,this.translateX)),t}},{key:"animationFrameCallback",value:function(t){switch(this.loopState){case p:this.touchingFrame(t);break;case b:this.startAnimatingFrame(t),this.loopState=d,this.animationFrameCallback(t);break;case d:this.animatingFrame(t)}}},{key:"touchingFrame",value:function(t){var e=t-this.lastTime;if(e>0){var r=this.pageX-this.lastPageX;this.velocity=r/e*.8+(1-.8)*this.velocity}this.updateTranslateX(),this.updateDOM(this.translateX,this.sliderWidth),this.lastTime=t,this.lastPageX=this.pageX,this.lastPageY=this.pageY,requestAnimationFrame(this.animationFrameCallback)}},{key:"startAnimatingFrame",value:function(t){this.updateTranslateX();var e={};e.startX=this.translateX,e.endX=(this.opened?1:0)*this.sliderWidth,e.changeInValue=e.endX-e.startX,e.startTime=t,this.animation=e}},{key:"animatingFrame",value:function(t){var e=t-this.animation.startTime;e<this.transitionDuration?this.animatingCont(e):this.animatingEnd(),this.updateDOM(this.startTranslateX,this.sliderWidth)}},{key:"animatingCont",value:function(t){var e=this.animation.startX,r=this.animation.changeInValue;this.startTranslateX=(0,l.linearTween)(t,e,r,this.transitionDuration),requestAnimationFrame(this.animationFrameCallback)}},{key:"animatingEnd",value:function(){this.startTranslateX=this.animation.endX,delete this.animation,this.endAnimating()}},{key:"endAnimating",value:function(){this.animationFrameRequested=!1,this.loopState=f,this.velocity=0,this.opened?(this.scrim.style.pointerEvents="all",this.content.classList.add("y-drawer-opened")):this.scrim.style.pointerEvents="",this.content.style.willChange="",this.scrim.style.willChange="",this.fireEvent("transitioned")}},{key:"updateDOM",value:function(t,e){this.content.style.transform="translateX("+t+"px)",this.scrim.style.opacity=t/e}},{key:"close",value:function(){return this.animateTo(!1),this}},{key:"open",value:function(){return this.animateTo(!0),this}},{key:"toggle",value:function(){return this.opened?this.close():this.open(),this}},{key:"persist",value:function(){this.scrim.style.display="none",this.removeEventListeners(),this.setState("persistent",!0)}},{key:"unpersist",value:function(){this.scrim.style.display="",this.addEventListeners(),this.setState("persistent",!1)}}]),r}()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common":150,"y-component/src/component-core":149}],152:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":a(e))&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":a(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return document.createRange().createContextualFragment(t)}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};Object.defineProperty(r,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),c=function(t){return t&&t.__esModule?t:{default:t}}(t("../core")),l=function(t){function e(t,r){n(this,e);var o=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o.setupComponent(t,r),o}return o(e,(0,c.default)()),u(e,[{key:"setupDOM",value:function(t){if(!t)throw Error("No element provided");var e=document.createElement("div");e.classList.add("y-drawer-scrim");var r=document.createElement("div");for(r.classList.add("y-drawer-content");t.children.length>0;)r.appendChild(t.children[0]);t.appendChild(e),t.appendChild(r);var n=document.getElementsByTagName("style")[0];return n.parentNode.insertBefore(s("\n<style>\n@media screen {\n .y-drawer-scrim {\n display: block;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n opacity: 0;\n z-index: 0;\n pointer-events: none;\n transform: translate3d(0,0,0);\n -webkit-tap-highlight-color: transparent;\n\n background: rgba(0, 0, 0, 0.67);\n }\n\n .y-drawer-content {\n position: fixed;\n left: 0;\n bottom: 0;\n top: 0;\n z-index: 1;\n overflow-x: hidden;\n overflow-y: auto;\n transform: translate3d(0,0,0);\n -webkit-overflow-scrolling: touch;\n contain: strict;\n\n left: -18rem;\n width: 18rem;\n background: #e8e8e8;\n }\n\n .y-drawer-content.y-drawer-opened {\n left: 0!important;\n transform: translate3d(0,0,0)!important;\n }\n}\n\n@media print {\n .y-drawer-scrim {\n display: none!important;\n }\n\n .y-drawer-content {\n transform: none!important;\n }\n}\n\n</style>"),n),t}}]),e}();r.default=l},{"../core":151}],153:[function(t,e,r){arguments[4][90][0].apply(r,arguments)},{"./Subscriber":161,dup:90}],154:[function(t,e,r){"use strict";var n=t("./Observable"),i=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,r){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)},t.prototype.toObservable=function(){switch(this.kind){case"N":return n.Observable.of(this.value);case"E":return n.Observable.throw(this.error);case"C":return n.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):this.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return this.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();r.Notification=i},{"./Observable":155}],155:[function(t,e,r){"use strict";var n=t("./util/root"),i=t("./util/toSubscriber"),o=t("./symbol/observable"),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,o=i.toSubscriber(t,e,r);if(n?n.call(o,this.source):o.add(this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var r=this;if(e||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?e=n.root.Rx.config.Promise:n.root.Promise&&(e=n.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,n){var i;i=r.subscribe(function(e){if(i)try{t(e)}catch(t){n(t),i.unsubscribe()}else t(e)},n,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.observable]=function(){return this},t.create=function(e){return new t(e)},t}();r.Observable=s},{"./symbol/observable":243,"./util/root":258,"./util/toSubscriber":260}],156:[function(t,e,r){arguments[4][92][0].apply(r,arguments)},{dup:92}],157:[function(t,e,r){arguments[4][93][0].apply(r,arguments)},{"./Subscriber":161,dup:93}],158:[function(t,e,r){arguments[4][94][0].apply(r,arguments)},{dup:94}],159:[function(t,e,r){arguments[4][95][0].apply(r,arguments)},{"./Observable":155,"./SubjectSubscription":160,"./Subscriber":161,"./Subscription":162,"./symbol/rxSubscriber":244,"./util/ObjectUnsubscribedError":246,dup:95}],160:[function(t,e,r){arguments[4][96][0].apply(r,arguments)},{"./Subscription":162,dup:96}],161:[function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./util/isFunction"),s=t("./Subscription"),a=t("./Observer"),u=t("./symbol/rxSubscriber"),c=function(t){function e(r,i,o){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a.empty;break;case 1:if(!r){this.destination=a.empty;break}if("object"===(void 0===r?"undefined":n(r))){r instanceof e?(this.destination=r,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new l(this,r));break}default:this.syncErrorThrowable=!0,this.destination=new l(this,r,i,o)}}return i(e,t),e.prototype[u.rxSubscriber]=function(){return this},e.create=function(t,r,n){var i=new e(t,r,n);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,r=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=r,this},e}(s.Subscription);r.Subscriber=c;var l=function(t){function e(e,r,n,i){t.call(this),this._parentSubscriber=e;var s,u=this;o.isFunction(r)?s=r:r&&(s=r.next,n=r.error,i=r.complete,r!==a.empty&&(u=Object.create(r),o.isFunction(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=s,this._error=n,this._complete=i}return i(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){if(!this.isStopped){var t=this._parentSubscriber;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,r){try{e.call(this._context,r)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(c)},{"./Observer":156,"./Subscription":162,"./symbol/rxSubscriber":244,"./util/isFunction":252}],162:[function(t,e,r){arguments[4][98][0].apply(r,arguments)},{"./util/UnsubscriptionError":247,"./util/errorObject":248,"./util/isArray":249,"./util/isFunction":252,"./util/isObject":254,"./util/tryCatch":261,dup:98}],163:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../observable/defer");n.Observable.defer=i.defer},{"../../Observable":155,"../../observable/defer":203}],164:[function(t,e,r){"use strict";var n=t("../../../Observable"),i=t("../../../observable/dom/ajax");n.Observable.ajax=i.ajax},{"../../../Observable":155,"../../../observable/dom/ajax":205}],165:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../observable/from");n.Observable.from=i.from},{"../../Observable":155,"../../observable/from":206}],166:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../observable/fromEvent");n.Observable.fromEvent=i.fromEvent},{"../../Observable":155,"../../observable/fromEvent":207}],167:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../observable/merge");n.Observable.merge=i.merge},{"../../Observable":155,"../../observable/merge":208}],168:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../observable/of");n.Observable.of=i.of},{"../../Observable":155,"../../observable/of":209}],169:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../observable/throw");n.Observable.throw=i._throw},{"../../Observable":155,"../../observable/throw":210}],170:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../observable/timer");n.Observable.timer=i.timer},{"../../Observable":155,"../../observable/timer":211}],171:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/catch");n.Observable.prototype.catch=i._catch,n.Observable.prototype._catch=i._catch},{"../../Observable":155,"../../operator/catch":212}],172:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/concatMap");n.Observable.prototype.concatMap=i.concatMap},{"../../Observable":155,"../../operator/concatMap":214}],173:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/debounceTime");n.Observable.prototype.debounceTime=i.debounceTime},{"../../Observable":155,"../../operator/debounceTime":215}],174:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/delay");n.Observable.prototype.delay=i.delay},{"../../Observable":155,"../../operator/delay":216}],175:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/distinctUntilKeyChanged");n.Observable.prototype.distinctUntilKeyChanged=i.distinctUntilKeyChanged},{"../../Observable":155,"../../operator/distinctUntilKeyChanged":218}],176:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/do");n.Observable.prototype.do=i._do,n.Observable.prototype._do=i._do},{"../../Observable":155,"../../operator/do":219}],177:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/filter");n.Observable.prototype.filter=i.filter},{"../../Observable":155,"../../operator/filter":220}],178:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/map");n.Observable.prototype.map=i.map},{"../../Observable":155,"../../operator/map":221}],179:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/mergeMap");n.Observable.prototype.mergeMap=i.mergeMap,n.Observable.prototype.flatMap=i.mergeMap},{"../../Observable":155,"../../operator/mergeMap":224}],180:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/partition");n.Observable.prototype.partition=i.partition},{"../../Observable":155,"../../operator/partition":227}],181:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/retryWhen");n.Observable.prototype.retryWhen=i.retryWhen},{"../../Observable":155,"../../operator/retryWhen":228}],182:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/share");n.Observable.prototype.share=i.share},{"../../Observable":155,"../../operator/share":229}],183:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/startWith");n.Observable.prototype.startWith=i.startWith},{"../../Observable":155,"../../operator/startWith":230}],184:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/switch");n.Observable.prototype.switch=i._switch,n.Observable.prototype._switch=i._switch},{"../../Observable":155,"../../operator/switch":231}],185:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/switchMap");n.Observable.prototype.switchMap=i.switchMap},{"../../Observable":155,"../../operator/switchMap":232}],186:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/take");n.Observable.prototype.take=i.take},{"../../Observable":155,"../../operator/take":233}],187:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/takeUntil");n.Observable.prototype.takeUntil=i.takeUntil},{"../../Observable":155,"../../operator/takeUntil":234}],188:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/throttleTime");n.Observable.prototype.throttleTime=i.throttleTime},{"../../Observable":155,"../../operator/throttleTime":235}],189:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/withLatestFrom");n.Observable.prototype.withLatestFrom=i.withLatestFrom},{"../../Observable":155,"../../operator/withLatestFrom":236}],190:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/zip");n.Observable.prototype.zip=i.zipProto},{"../../Observable":155,"../../operator/zip":237}],191:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("./ScalarObservable"),s=t("./EmptyObservable"),a=function(t){function e(e,r){t.call(this),this.arrayLike=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(e,t),e.create=function(t,r){var n=t.length;return 0===n?new s.EmptyObservable:1===n?new o.ScalarObservable(t[0],r):new e(t,r)},e.dispatch=function(t){var e=t.arrayLike,r=t.index,n=t.length,i=t.subscriber;i.closed||(r>=n?i.complete():(i.next(e[r]),t.index=r+1,this.schedule(t)))},e.prototype._subscribe=function(t){var r=this,n=r.arrayLike,i=r.scheduler,o=n.length;if(i)return i.schedule(e.dispatch,0,{arrayLike:n,index:0,length:o,subscriber:t});for(var s=0;s<o&&!t.closed;s++)t.next(n[s]);t.complete()},e}(i.Observable);r.ArrayLikeObservable=a},{"../Observable":155,"./EmptyObservable":195,"./ScalarObservable":201}],192:[function(t,e,r){arguments[4][99][0].apply(r,arguments)},{"../Observable":155,"../util/isScheduler":256,"./EmptyObservable":195,"./ScalarObservable":201,dup:99}],193:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subject"),o=t("../Observable"),s=t("../Subscriber"),a=t("../Subscription"),u=function(t){function e(e,r){t.call(this),this.source=e,this.subjectFactory=r,this._refCount=0}return n(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||((t=this._connection=new a.Subscription).add(this.source.subscribe(new c(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return this.lift(new l(this))},e}(o.Observable);r.ConnectableObservable=u,r.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:u.prototype._subscribe},getSubject:{value:u.prototype.getSubject},connect:{value:u.prototype.connect},refCount:{value:u.prototype.refCount}};var c=function(t){function e(e,r){t.call(this,e),this.connectable=r}return n(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.SubjectSubscriber),l=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new h(t,r),i=e.subscribe(n);return n.closed||(n.connection=r.connect()),i},t}(),h=function(t){function e(e,r){t.call(this,e),this.connectable=r}return n(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},e}(s.Subscriber)},{"../Observable":155,"../Subject":159,"../Subscriber":161,"../Subscription":162}],194:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("../util/subscribeToResult"),s=t("../OuterSubscriber"),a=function(t){function e(e){t.call(this),this.observableFactory=e}return n(e,t),e.create=function(t){return new e(t)},e.prototype._subscribe=function(t){return new u(t,this.observableFactory)},e}(i.Observable);r.DeferObservable=a;var u=function(t){function e(e,r){t.call(this,e),this.factory=r,this.tryDefer()}return n(e,t),e.prototype.tryDefer=function(){try{this._callFactory()}catch(t){this._error(t)}},e.prototype._callFactory=function(){var t=this.factory();t&&this.add(o.subscribeToResult(this,t))},e}(s.OuterSubscriber)},{"../Observable":155,"../OuterSubscriber":157,"../util/subscribeToResult":259}],195:[function(t,e,r){arguments[4][101][0].apply(r,arguments)},{"../Observable":155,dup:101}],196:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(e,r){t.call(this),this.error=e,this.scheduler=r}return n(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.error;t.subscriber.error(e)},e.prototype._subscribe=function(t){var r=this.error,n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{error:r,subscriber:t});t.error(r)},e}(t("../Observable").Observable);r.ErrorObservable=i},{"../Observable":155}],197:[function(t,e,r){arguments[4][102][0].apply(r,arguments)},{"../Observable":155,"../Subscription":162,"../util/errorObject":248,"../util/isFunction":252,"../util/tryCatch":261,dup:102}],198:[function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../util/isArray"),s=t("../util/isArrayLike"),a=t("../util/isPromise"),u=t("./PromiseObservable"),c=t("./IteratorObservable"),l=t("./ArrayObservable"),h=t("./ArrayLikeObservable"),f=t("../symbol/iterator"),p=t("../Observable"),b=t("../operator/observeOn"),d=t("../symbol/observable"),y=function(t){function e(e,r){t.call(this,null),this.ish=e,this.scheduler=r}return i(e,t),e.create=function(t,r){if(null!=t){if("function"==typeof t[d.observable])return t instanceof p.Observable&&!r?t:new e(t,r);if(o.isArray(t))return new l.ArrayObservable(t,r);if(a.isPromise(t))return new u.PromiseObservable(t,r);if("function"==typeof t[f.iterator]||"string"==typeof t)return new c.IteratorObservable(t,r);if(s.isArrayLike(t))return new h.ArrayLikeObservable(t,r)}throw new TypeError((null!==t&&(void 0===t?"undefined":n(t))||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,r=this.scheduler;return null==r?e[d.observable]().subscribe(t):e[d.observable]().subscribe(new b.ObserveOnSubscriber(t,r,0))},e}(p.Observable);r.FromObservable=y},{"../Observable":155,"../operator/observeOn":226,"../symbol/iterator":242,"../symbol/observable":243,"../util/isArray":249,"../util/isArrayLike":250,"../util/isPromise":255,"./ArrayLikeObservable":191,"./ArrayObservable":192,"./IteratorObservable":199,"./PromiseObservable":200}],199:[function(t,e,r){"use strict";function n(t){var e=t[l.iterator];if(!e&&"string"==typeof t)return new f(t);if(!e&&void 0!==t.length)return new p(t);if(!e)throw new TypeError("object is not iterable");return t[l.iterator]()}function i(t){var e=+t.length;return isNaN(e)?0:0!==e&&o(e)?(e=s(e)*Math.floor(Math.abs(e)))<=0?0:e>b?b:e:e}function o(t){return"number"==typeof t&&u.root.isFinite(t)}function s(t){var e=+t;return 0===e?e:isNaN(e)?e:e<0?-1:1}var a=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},u=t("../util/root"),c=t("../Observable"),l=t("../symbol/iterator"),h=function(t){function e(e,r){if(t.call(this),this.scheduler=r,null==e)throw new Error("iterator cannot be null.");this.iterator=n(e)}return a(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.index,r=t.hasError,n=t.iterator,i=t.subscriber;if(r)i.error(t.error);else{var o=n.next();o.done?i.complete():(i.next(o.value),t.index=e+1,i.closed?"function"==typeof n.return&&n.return():this.schedule(t))}},e.prototype._subscribe=function(t){var r=this,n=r.iterator,i=r.scheduler;if(i)return i.schedule(e.dispatch,0,{index:0,iterator:n,subscriber:t});for(;;){var o=n.next();if(o.done){t.complete();break}if(t.next(o.value),t.closed){"function"==typeof n.return&&n.return();break}}},e}(c.Observable);r.IteratorObservable=h;var f=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=t.length),this.str=t,this.idx=e,this.len=r}return t.prototype[l.iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),p=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=i(t)),this.arr=t,this.idx=e,this.len=r}return t.prototype[l.iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),b=Math.pow(2,53)-1},{"../Observable":155,"../symbol/iterator":242,"../util/root":258}],200:[function(t,e,r){"use strict";function n(t){var e=t.value,r=t.subscriber;r.closed||(r.next(e),r.complete())}function i(t){var e=t.err,r=t.subscriber;r.closed||r.error(e)}var o=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},s=t("../util/root"),a=function(t){function e(e,r){t.call(this),this.promise=e,this.scheduler=r}return o(e,t),e.create=function(t,r){return new e(t,r)},e.prototype._subscribe=function(t){var e=this,r=this.promise,o=this.scheduler;if(null==o)this._isScalar?t.closed||(t.next(this.value),t.complete()):r.then(function(r){e.value=r,e._isScalar=!0,t.closed||(t.next(r),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return o.schedule(n,0,{value:this.value,subscriber:t})}else r.then(function(r){e.value=r,e._isScalar=!0,t.closed||t.add(o.schedule(n,0,{value:r,subscriber:t}))},function(e){t.closed||t.add(o.schedule(i,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(t("../Observable").Observable);r.PromiseObservable=a},{"../Observable":155,"../util/root":258}],201:[function(t,e,r){arguments[4][103][0].apply(r,arguments)},{"../Observable":155,dup:103}],202:[function(t,e,r){arguments[4][104][0].apply(r,arguments)},{"../Observable":155,"../scheduler/async":241,"../util/isDate":251,"../util/isNumeric":253,"../util/isScheduler":256,dup:104}],203:[function(t,e,r){"use strict";var n=t("./DeferObservable");r.defer=n.DeferObservable.create},{"./DeferObservable":194}],204:[function(t,e,r){"use strict";function n(){if(f.root.XMLHttpRequest)return new f.root.XMLHttpRequest;if(f.root.XDomainRequest)return new f.root.XDomainRequest;throw new Error("CORS is not supported by your browser")}function i(){if(f.root.XMLHttpRequest)return new f.root.XMLHttpRequest;var t=void 0;try{for(var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],r=0;r<3;r++)try{if(t=e[r],new f.root.ActiveXObject(t))break}catch(t){}return new f.root.ActiveXObject(t)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}function o(t,e){return void 0===e&&(e=null),new m({method:"GET",url:t,headers:e})}function s(t,e,r){return new m({method:"POST",url:t,body:e,headers:r})}function a(t,e){return new m({method:"DELETE",url:t,headers:e})}function u(t,e,r){return new m({method:"PUT",url:t,body:e,headers:r})}function c(t,e,r){return new m({method:"PATCH",url:t,body:e,headers:r})}function l(t,e){return new m({method:"GET",url:t,responseType:"json",headers:e}).lift(new v.MapOperator(function(t,e){return t.response},null))}var h=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},f=t("../../util/root"),p=t("../../util/tryCatch"),b=t("../../util/errorObject"),d=t("../../Observable"),y=t("../../Subscriber"),v=t("../../operator/map");r.ajaxGet=o,r.ajaxPost=s,r.ajaxDelete=a,r.ajaxPut=u,r.ajaxPatch=c,r.ajaxGetJSON=l;var m=function(t){function e(e){t.call(this);var r={async:!0,createXHR:function(){return this.crossDomain?n.call(this):i()},crossDomain:!1,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)r.url=e;else for(var o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);this.request=r}return h(e,t),e.prototype._subscribe=function(t){return new g(t,this.request)},e.create=function(){var t=function(t){return new e(t)};return t.get=o,t.post=s,t.delete=a,t.put=u,t.patch=c,t.getJSON=l,t}(),e}(d.Observable);r.AjaxObservable=m;var g=function(t){function e(e,r){t.call(this,e),this.request=r,this.done=!1;var n=r.headers=r.headers||{};r.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in n||f.root.FormData&&r.body instanceof f.root.FormData||void 0===r.body||(n["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),r.body=this.serializeBody(r.body,r.headers["Content-Type"]),this.send()}return h(e,t),e.prototype.next=function(t){this.done=!0;var e=this,r=e.xhr,n=e.request,i=e.destination,o=new _(t,r,n);i.next(o)},e.prototype.send=function(){var t=this,e=t.request,r=t.request,n=r.user,i=r.method,o=r.url,s=r.async,a=r.password,u=r.headers,c=r.body,l=e.createXHR,h=p.tryCatch(l).call(e);if(h===b.errorObject)this.error(b.errorObject.e);else{this.xhr=h,this.setupEvents(h,e);if((n?p.tryCatch(h.open).call(h,i,o,s,n,a):p.tryCatch(h.open).call(h,i,o,s))===b.errorObject)return this.error(b.errorObject.e),null;if(h.timeout=e.timeout,h.responseType=e.responseType,"withCredentials"in h&&(h.withCredentials=!!e.withCredentials),this.setHeaders(h,u),(c?p.tryCatch(h.send).call(h,c):p.tryCatch(h.send).call(h))===b.errorObject)return this.error(b.errorObject.e),null}return h},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(f.root.FormData&&t instanceof f.root.FormData)return t;if(e){var r=e.indexOf(";");-1!==r&&(e=e.substring(0,r))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map(function(e){return encodeURI(e)+"="+encodeURI(t[e])}).join("&");case"application/json":return JSON.stringify(t);default:return t}},e.prototype.setHeaders=function(t,e){for(var r in e)e.hasOwnProperty(r)&&t.setRequestHeader(r,e[r])},e.prototype.setupEvents=function(t,e){function r(t){var e=r,n=e.subscriber,i=e.progressSubscriber,o=e.request;i&&i.error(t),n.error(new O(this,o))}function n(t){var e=n,r=e.subscriber,i=e.progressSubscriber,o=e.request;if(4===this.readyState){var s=1223===this.status?204:this.status,a="text"===this.responseType?this.response||this.responseText:this.response;0===s&&(s=a?200:0),200<=s&&s<300?(i&&i.complete(),r.next(t),r.complete()):(i&&i.error(t),r.error(new w("ajax error "+s,this,o)))}}var i=e.progressSubscriber;if(t.ontimeout=r,r.request=e,r.subscriber=this,r.progressSubscriber=i,t.upload&&"withCredentials"in t){if(i){var o;o=function(t){o.progressSubscriber.next(t)},f.root.XDomainRequest?t.onprogress=o:t.upload.onprogress=o,o.progressSubscriber=i}var s;s=function(t){var e=s,r=e.progressSubscriber,n=e.subscriber,i=e.request;r&&r.error(t),n.error(new w("ajax error",this,i))},t.onerror=s,s.request=e,s.subscriber=this,s.progressSubscriber=i}t.onreadystatechange=n,n.subscriber=this,n.progressSubscriber=i,n.request=e},e.prototype.unsubscribe=function(){var e=this,r=e.done,n=e.xhr;!r&&n&&4!==n.readyState&&"function"==typeof n.abort&&n.abort(),t.prototype.unsubscribe.call(this)},e}(y.Subscriber);r.AjaxSubscriber=g;var _=function(){return function(t,e,r){switch(this.originalEvent=t,this.xhr=e,this.request=r,this.status=e.status,this.responseType=e.responseType||r.responseType,this.responseType){case"json":this.response="response"in e?e.responseType?e.response:JSON.parse(e.response||e.responseText||"null"):JSON.parse(e.responseText||"null");break;case"xml":this.response=e.responseXML;break;case"text":default:this.response="response"in e?e.response:e.responseText}}}();r.AjaxResponse=_;var w=function(t){function e(e,r,n){t.call(this,e),this.message=e,this.xhr=r,this.request=n,this.status=r.status}return h(e,t),e}(Error);r.AjaxError=w;var O=function(t){function e(e,r){t.call(this,"ajax timeout",e,r)}return h(e,t),e}(w);r.AjaxTimeoutError=O},{"../../Observable":155,"../../Subscriber":161,"../../operator/map":221,"../../util/errorObject":248,"../../util/root":258,"../../util/tryCatch":261}],205:[function(t,e,r){"use strict";var n=t("./AjaxObservable");r.ajax=n.AjaxObservable.create},{"./AjaxObservable":204}],206:[function(t,e,r){"use strict";var n=t("./FromObservable");r.from=n.FromObservable.create},{"./FromObservable":198}],207:[function(t,e,r){arguments[4][106][0].apply(r,arguments)},{"./FromEventObservable":197,dup:106}],208:[function(t,e,r){"use strict";var n=t("../operator/merge");r.merge=n.mergeStatic},{"../operator/merge":222}],209:[function(t,e,r){"use strict";var n=t("./ArrayObservable");r.of=n.ArrayObservable.of},{"./ArrayObservable":192}],210:[function(t,e,r){"use strict";var n=t("./ErrorObservable");r._throw=n.ErrorObservable.create},{"./ErrorObservable":196}],211:[function(t,e,r){arguments[4][107][0].apply(r,arguments)},{"./TimerObservable":202,dup:107}],212:[function(t,e,r){arguments[4][108][0].apply(r,arguments)},{"../OuterSubscriber":157,"../util/subscribeToResult":259,dup:108}],213:[function(t,e,r){arguments[4][109][0].apply(r,arguments)},{"../Observable":155,"../observable/ArrayObservable":192,"../util/isScheduler":256,"./mergeAll":223,dup:109}],214:[function(t,e,r){"use strict";var n=t("./mergeMap");r.concatMap=function(t,e){return this.lift(new n.MergeMapOperator(t,e,1))}},{"./mergeMap":224}],215:[function(t,e,r){arguments[4][110][0].apply(r,arguments)},{"../Subscriber":161,"../scheduler/async":241,dup:110}],216:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../scheduler/async"),o=t("../util/isDate"),s=t("../Subscriber"),a=t("../Notification");r.delay=function(t,e){void 0===e&&(e=i.async);var r=o.isDate(t)?+t-e.now():Math.abs(t);return this.lift(new u(r,e))};var u=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.delay,this.scheduler))},t}(),c=function(t){function e(e,r,n){t.call(this,e),this.delay=r,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}return n(e,t),e.dispatch=function(t){for(var e=t.source,r=e.queue,n=t.scheduler,i=t.destination;r.length>0&&r[0].time-n.now()<=0;)r.shift().notification.observe(i);if(r.length>0){var o=Math.max(0,r[0].time-n.now());this.schedule(t,o)}else e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,r=new l(e.now()+this.delay,t);this.queue.push(r),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(a.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(a.Notification.createComplete())},e}(s.Subscriber),l=function(){return function(t,e){this.time=t,this.notification=e}}()},{"../Notification":154,"../Subscriber":161,"../scheduler/async":241,"../util/isDate":251}],217:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../util/tryCatch"),s=t("../util/errorObject");r.distinctUntilChanged=function(t,e){return this.lift(new a(t,e))};var a=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.compare,this.keySelector))},t}(),u=function(t){function e(e,r,n){t.call(this,e),this.keySelector=n,this.hasKey=!1,"function"==typeof r&&(this.compare=r)}return n(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=t;if(this.keySelector&&(e=o.tryCatch(this.keySelector)(t))===s.errorObject)return this.destination.error(s.errorObject.e);var r=!1;if(this.hasKey){if((r=o.tryCatch(this.compare)(this.key,e))===s.errorObject)return this.destination.error(s.errorObject.e)}else this.hasKey=!0;!1===Boolean(r)&&(this.key=e,this.destination.next(t))},e}(i.Subscriber)},{"../Subscriber":161,"../util/errorObject":248,"../util/tryCatch":261}],218:[function(t,e,r){"use strict";var n=t("./distinctUntilChanged");r.distinctUntilKeyChanged=function(t,e){return n.distinctUntilChanged.call(this,function(r,n){return e?e(r[t],n[t]):r[t]===n[t]})}},{"./distinctUntilChanged":217}],219:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");r._do=function(t,e,r){return this.lift(new o(t,e,r))};var o=function(){function t(t,e,r){this.nextOrObserver=t,this.error=e,this.complete=r}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.nextOrObserver,this.error,this.complete))},t}(),s=function(t){function e(e,r,n,o){t.call(this,e);var s=new i.Subscriber(r,n,o);s.syncErrorThrowable=!0,this.add(s),this.safeSubscriber=s}return n(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(i.Subscriber)},{"../Subscriber":161}],220:[function(t,e,r){arguments[4][113][0].apply(r,arguments)},{"../Subscriber":161,dup:113}],221:[function(t,e,r){arguments[4][115][0].apply(r,arguments)},{"../Subscriber":161,dup:115}],222:[function(t,e,r){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=Number.POSITIVE_INFINITY,n=null,u=t[t.length-1];return a.isScheduler(u)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof u&&(r=t.pop()),null===n&&1===t.length&&t[0]instanceof i.Observable?t[0]:new o.ArrayObservable(t,n).lift(new s.MergeAllOperator(r))}var i=t("../Observable"),o=t("../observable/ArrayObservable"),s=t("./mergeAll"),a=t("../util/isScheduler");r.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(n.apply(void 0,[this].concat(t)))},r.mergeStatic=n},{"../Observable":155,"../observable/ArrayObservable":192,"../util/isScheduler":256,"./mergeAll":223}],223:[function(t,e,r){arguments[4][116][0].apply(r,arguments)},{"../OuterSubscriber":157,"../util/subscribeToResult":259,dup:116}],224:[function(t,e,r){arguments[4][117][0].apply(r,arguments)},{"../OuterSubscriber":157,"../util/subscribeToResult":259,dup:117}],225:[function(t,e,r){arguments[4][118][0].apply(r,arguments)},{"../observable/ConnectableObservable":193,dup:118}],226:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../Notification");r.observeOn=function(t,e){return void 0===e&&(e=0),this.lift(new s(t,e))};var s=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.scheduler,this.delay))},t}();r.ObserveOnOperator=s;var a=function(t){function e(e,r,n){void 0===n&&(n=0),t.call(this,e),this.scheduler=r,this.delay=n}return n(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new u(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(o.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(o.Notification.createComplete())},e}(i.Subscriber);r.ObserveOnSubscriber=a;var u=function(){return function(t,e){this.notification=t,this.destination=e}}();r.ObserveOnMessage=u},{"../Notification":154,"../Subscriber":161}],227:[function(t,e,r){"use strict";var n=t("../util/not"),i=t("./filter");r.partition=function(t,e){return[i.filter.call(this,t,e),i.filter.call(this,n.not(t,e))]}},{"../util/not":257,"./filter":220}],228:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subject"),o=t("../util/tryCatch"),s=t("../util/errorObject"),a=t("../OuterSubscriber"),u=t("../util/subscribeToResult");r.retryWhen=function(t){return this.lift(new c(t,this))};var c=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.notifier,this.source))},t}(),l=function(t){function e(e,r,n){t.call(this,e),this.notifier=r,this.source=n}return n(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=this.errors,n=this.retries,a=this.retriesSubscription;if(n)this.errors=null,this.retriesSubscription=null;else{if(r=new i.Subject,(n=o.tryCatch(this.notifier)(r))===s.errorObject)return t.prototype.error.call(this,s.errorObject.e);a=u.subscribeToResult(this,n)}this._unsubscribeAndRecycle(),this.errors=r,this.retries=n,this.retriesSubscription=a,r.next(e)}},e.prototype._unsubscribe=function(){var t=this,e=t.errors,r=t.retriesSubscription;e&&(e.unsubscribe(),this.errors=null),r&&(r.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,r,n,i){var o=this,s=o.errors,a=o.retries,u=o.retriesSubscription;this.errors=null,this.retries=null,this.retriesSubscription=null,this._unsubscribeAndRecycle(),this.errors=s,this.retries=a,this.retriesSubscription=u,this.source.subscribe(this)},e}(a.OuterSubscriber)},{"../OuterSubscriber":157,"../Subject":159,"../util/errorObject":248,"../util/subscribeToResult":259,"../util/tryCatch":261}],229:[function(t,e,r){arguments[4][120][0].apply(r,arguments)},{"../Subject":159,"./multicast":225,dup:120}],230:[function(t,e,r){arguments[4][121][0].apply(r,arguments)},{"../observable/ArrayObservable":192,"../observable/EmptyObservable":195,"../observable/ScalarObservable":201,"../util/isScheduler":256,"./concat":213,dup:121}],231:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),o=t("../util/subscribeToResult");r._switch=function(){return this.lift(new s)};var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){t.call(this,e),this.active=0,this.hasCompleted=!1}return n(e,t),e.prototype._next=function(t){this.unsubscribeInner(),this.active++,this.add(this.innerSubscription=o.subscribeToResult(this,t))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&this.destination.complete()},e.prototype.unsubscribeInner=function(){this.active=this.active>0?this.active-1:0;var t=this.innerSubscription;t&&(t.unsubscribe(),this.remove(t))},e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.unsubscribeInner(),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(i.OuterSubscriber)},{"../OuterSubscriber":157,"../util/subscribeToResult":259}],232:[function(t,e,r){arguments[4][122][0].apply(r,arguments)},{"../OuterSubscriber":157,"../util/subscribeToResult":259,dup:122}],233:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../util/ArgumentOutOfRangeError"),s=t("../observable/EmptyObservable");r.take=function(t){return 0===t?new s.EmptyObservable:this.lift(new a(t))};var a=function(){function t(t){if(this.total=t,this.total<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.total))},t}(),u=function(t){function e(e,r){t.call(this,e),this.total=r,this.count=0}return n(e,t),e.prototype._next=function(t){var e=this.total,r=++this.count;r<=e&&(this.destination.next(t),r===e&&(this.destination.complete(),this.unsubscribe()))},e}(i.Subscriber)},{"../Subscriber":161,"../observable/EmptyObservable":195,"../util/ArgumentOutOfRangeError":245}],234:[function(t,e,r){arguments[4][123][0].apply(r,arguments)},{"../OuterSubscriber":157,"../util/subscribeToResult":259,dup:123}],235:[function(t,e,r){"use strict";function n(t){t.subscriber.clearThrottle()}var i=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../scheduler/async");r.throttleTime=function(t,e){return void 0===e&&(e=s.async),this.lift(new a(t,e))};var a=function(){function t(t,e){this.duration=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.duration,this.scheduler))},t}(),u=function(t){function e(e,r,n){t.call(this,e),this.duration=r,this.scheduler=n}return i(e,t),e.prototype._next=function(t){this.throttled||(this.add(this.throttled=this.scheduler.schedule(n,this.duration,{subscriber:this})),this.destination.next(t))},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(t.unsubscribe(),this.remove(t),this.throttled=null)},e}(o.Subscriber)},{"../Subscriber":161,"../scheduler/async":241}],236:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),o=t("../util/subscribeToResult");r.withLatestFrom=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r;"function"==typeof t[t.length-1]&&(r=t.pop());var n=t;return this.lift(new s(n,r))};var s=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.observables,this.project))},t}(),a=function(t){function e(e,r,n){t.call(this,e),this.observables=r,this.project=n,this.toRespond=[];var i=r.length;this.values=new Array(i);for(s=0;s<i;s++)this.toRespond.push(s);for(var s=0;s<i;s++){var a=r[s];this.add(o.subscribeToResult(this,a,a,s))}}return n(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.values[r]=e;var o=this.toRespond;if(o.length>0){var s=o.indexOf(r);-1!==s&&o.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.OuterSubscriber)},{"../OuterSubscriber":157,"../util/subscribeToResult":259}],237:[function(t,e,r){arguments[4][124][0].apply(r,arguments)},{"../OuterSubscriber":157,"../Subscriber":161,"../observable/ArrayObservable":192,"../symbol/iterator":242,"../util/isArray":249,"../util/subscribeToResult":259,dup:124}],238:[function(t,e,r){arguments[4][125][0].apply(r,arguments)},{"../Subscription":162,dup:125}],239:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/root"),o=function(t){function e(e,r){t.call(this,e,r),this.scheduler=e,this.work=r,this.pending=!1}return n(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),i.root.setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){return void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending?e:i.root.clearInterval(e)&&void 0||void 0},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||new Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.delay=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null))},e}(t("./Action").Action);r.AsyncAction=o},{"../util/root":258,"./Action":238}],240:[function(t,e,r){arguments[4][127][0].apply(r,arguments)},{"../Scheduler":158,dup:127}],241:[function(t,e,r){arguments[4][128][0].apply(r,arguments)},{"./AsyncAction":239,"./AsyncScheduler":240,dup:128}],242:[function(t,e,r){arguments[4][129][0].apply(r,arguments)},{"../util/root":258,dup:129}],243:[function(t,e,r){arguments[4][130][0].apply(r,arguments)},{"../util/root":258,dup:130}],244:[function(t,e,r){arguments[4][131][0].apply(r,arguments)},{"../util/root":258,dup:131}],245:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(){var e=t.call(this,"argument out of range");this.name=e.name="ArgumentOutOfRangeError",this.stack=e.stack,this.message=e.message}return n(e,t),e}(Error);r.ArgumentOutOfRangeError=i},{}],246:[function(t,e,r){arguments[4][132][0].apply(r,arguments)},{dup:132}],247:[function(t,e,r){arguments[4][133][0].apply(r,arguments)},{dup:133}],248:[function(t,e,r){arguments[4][134][0].apply(r,arguments)},{dup:134}],249:[function(t,e,r){arguments[4][135][0].apply(r,arguments)},{dup:135}],250:[function(t,e,r){arguments[4][136][0].apply(r,arguments)},{dup:136}],251:[function(t,e,r){arguments[4][137][0].apply(r,arguments)},{dup:137}],252:[function(t,e,r){arguments[4][138][0].apply(r,arguments)},{dup:138}],253:[function(t,e,r){arguments[4][139][0].apply(r,arguments)},{"../util/isArray":249,dup:139}],254:[function(t,e,r){arguments[4][140][0].apply(r,arguments)},{dup:140}],255:[function(t,e,r){arguments[4][141][0].apply(r,arguments)},{dup:141}],256:[function(t,e,r){arguments[4][142][0].apply(r,arguments)},{dup:142}],257:[function(t,e,r){"use strict";r.not=function(t,e){function r(){return!r.pred.apply(r.thisArg,arguments)}return r.pred=t,r.thisArg=e,r}},{}],258:[function(t,e,r){(function(t){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};"object"==("undefined"==typeof window?"undefined":e(window))&&window.window===window?r.root=window:"object"==("undefined"==typeof self?"undefined":e(self))&&self.self===self?r.root=self:"object"==(void 0===t?"undefined":e(t))&&t.global===t?r.root=t:function(){throw new Error("RxJS could not find any global context (window, self, global)")}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],259:[function(t,e,r){arguments[4][144][0].apply(r,arguments)},{"../InnerSubscriber":153,"../Observable":155,"../symbol/iterator":242,"../symbol/observable":243,"./isArrayLike":250,"./isObject":254,"./isPromise":255,"./root":258,dup:144}],260:[function(t,e,r){arguments[4][145][0].apply(r,arguments)},{"../Observer":156,"../Subscriber":161,"../symbol/rxSubscriber":244,dup:145}],261:[function(t,e,r){arguments[4][146][0].apply(r,arguments)},{"./errorObject":248,dup:146}],262:[function(t,e,r){"use strict";function n(t){var e=t.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);if("string"==typeof e[1]&&e[1].length>0&&e[1].toLowerCase()!==window.location.protocol)return!0;var r={http:80,https:443}[window.location.protocol];return"string"==typeof e[2]&&e[2].length>0&&e[2].replace(new RegExp(":("+r+")?$"),"")!==window.location.host}function i(t){return t.replace(/#.*/,"")}function o(t,e){var r=e||window.location.href,n=t.indexOf("#")>-1,o=i(t)===i(r);return n&&o}function s(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector).call(t,e)}Object.defineProperty(r,"__esModule",{value:!0}),r.isExternal=n,r.stripHash=i,r.isHash=o,r.matches=s,r.querySelectorInv=function(t,e){for(var r=t;r!==document&&r!==document.documentElement;){if(s(r,e))return r;r=r.parentNode}return null},r.shouldLoadAnchor=function(t,e,r){var i=t.href;return!(n(i)||o(i)||s(t,e)||""!==t.target||null!==r&&-1===i.search(r))},r.getScrollHeight=function(){var t=document.documentElement,e=document.body,r="scrollHeight";return t[r]||e[r]},r.getScrollLeft=function(){return window.pageXOffset||document.body.scrollLeft},r.getScrollTop=function(){return window.pageYOffset||document.body.scrollTop},r.expInterval=function(t,e){return a.Observable.create(function(r){function n(){r.next(i),i*=e,o=setTimeout(n,i)}var i=t,o=void 0;return o=setTimeout(n,i),function(){clearTimeout(o)}})},r.fragmentFromString=function(t){return document.createRange().createContextualFragment(t)};var a=t("rxjs/Observable")},{"rxjs/Observable":155}],263:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":s(e))&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":s(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),u=function(){function t(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(i)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=t("rxjs/Observable"),l=t("rxjs/Subject");t("rxjs/add/observable/defer"),t("rxjs/add/observable/from"),t("rxjs/add/observable/fromEvent"),t("rxjs/add/observable/merge"),t("rxjs/add/observable/of"),t("rxjs/add/observable/throw"),t("rxjs/add/observable/timer"),t("rxjs/add/observable/dom/ajax"),t("rxjs/add/operator/catch"),t("rxjs/add/operator/concatMap"),t("rxjs/add/operator/debounceTime"),t("rxjs/add/operator/delay"),t("rxjs/add/operator/distinctUntilKeyChanged"),t("rxjs/add/operator/do"),t("rxjs/add/operator/filter"),t("rxjs/add/operator/map"),t("rxjs/add/operator/mergeMap"),t("rxjs/add/operator/partition"),t("rxjs/add/operator/retryWhen"),t("rxjs/add/operator/share"),t("rxjs/add/operator/startWith"),t("rxjs/add/operator/switch"),t("rxjs/add/operator/switchMap"),t("rxjs/add/operator/take"),t("rxjs/add/operator/takeUntil"),t("rxjs/add/operator/throttleTime"),t("rxjs/add/operator/withLatestFrom"),t("rxjs/add/operator/zip");var h=function(t){return t&&t.__esModule?t:{default:t}}(t("y-component/src/component-core")),f=t("../common"),p=t("./kind");c.Observable.prototype.pauseWith=function(t){return this.withLatestFrom(t).filter(function(t){return!1===u(t,2)[1]}).map(function(t){return u(t,1)[0]})},r.default=function(t){return function(e){function r(){return n(this,r),i(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return o(r,(0,h.default)(t)),a(r,[{key:"getComponentName",value:function(){return"y-push-state"}},{key:"defaults",value:function(){return{replaceIds:[],linkSelector:"a[href]",scriptSelector:"script",scrollRestoration:!1,hrefRegex:null,blacklist:".no-push-state",duration:0,noPopDuration:!0}}},{key:"sideEffects",value:function(){return{}}},{key:"startHistory",value:function(){return this.checkPreCondition(),this.setupScrollRestoration(),this.cacheTitleElement(),this.setupObservables(),this}},{key:"checkPreCondition",value:function(){if(0===this.replaceIds.length){var t=this.el.id;if(!t)throw Error("No replace ids provided nor does this component have and id");console.warn("No replace ids provided. Will replace entire content of #"+t)}}},{key:"setupScrollRestoration",value:function(){"scrollRestoration"in history&&(history.scrollRestoration=this.scrollRestoration?"manual":"auto"),this.setScrollPosition(),window.addEventListener("beforeunload",this.updateHistoryState.bind(this))}},{key:"cacheTitleElement",value:function(){this.titleElement=document.querySelector("title")||{}}},{key:"bindPushEvents",value:function(t){var e=this;return this.fromEvents(t,"click").map(function(t){return new p.Push(t)}).filter(function(t){return e.isPageChangeEvent(t)}).do(function(t){var r=t.event;e.updateHistoryState(),r.preventDefault()})}},{key:"bindHintEvents",value:function(t){var e=this;return c.Observable.merge(this.fromEvents(t,"mouseenter"),this.fromEvents(t,"touchstart"),this.fromEvents(t,"focus")).map(function(t){return new p.Hint(t)}).filter(function(t){return e.isPageChangeAnchor(t)})}},{key:"bindPopstateEvent",value:function(){return c.Observable.fromEvent(window,"popstate").map(function(t){return new p.Pop(t)}).filter(function(){return null!=window.history.state})}},{key:"linkObservable",value:function(){return c.Observable.of(this.el.querySelectorAll(this.linkSelector))}},{key:"fromEvents",value:function(t,e){return t.mergeMap(function(t){return c.Observable.fromEvent(t,e)})}},{key:"fetchPage",value:function(t){var e=this;return c.Observable.ajax(this.hrefToAjax(t)).map(function(e){var r=e.response;return Object.assign(t,{response:r})}).catch(function(r){return e.recoverIfResponse(t,r)}).retryWhen(function(){return c.Observable.merge(c.Observable.fromEvent(window,"online"),(0,f.expInterval)(1e3,2)).do(e.onRetry.bind(e,t))})}},{key:"hrefToAjax",value:function(t){return{method:"GET",url:t.href,responseType:"text"}}},{key:"recoverIfResponse",value:function(t,e){var r=e.status,n=e.xhr;return n&&r&&r>400?c.Observable.of(Object.assign(t,{response:n.response})):(this.onError(Object.assign(t,e)),c.Observable.throw(e))}},{key:"setupObservables",value:function(){var t=this;this.push$$=new l.Subject,this.hint$$=new l.Subject;var e=this.push$$.switch().throttleTime(this.duration+100),r=this.bindPopstateEvent();this.page$=c.Observable.merge(e,r).share();var n=c.Observable.defer(function(){return c.Observable.merge(t.page$.map(function(){return!0}),t.render$.map(function(){return!1})).startWith(!1)});this.hint$=this.hint$$.switch().pauseWith(n),this.prefetch$=c.Observable.merge(this.hint$,this.page$).distinctUntilKeyChanged("href").switchMap(function(e){return t.fetchPage(e)}).catch(function(t,e){return e}).startWith({}).share(),this.render$=this.page$.do(this.onStart.bind(this)).withLatestFrom(this.prefetch$).switchMap(this.getResponse.bind(this)).map(this.responseToContent.bind(this)).do(this.onReady.bind(this)).do(this.updateDOM.bind(this)).do(this.resetScrollPostion.bind(this)).do(this.onAfter.bind(this)).catch(function(e,r){return t.onError(e),console.error(e),r}).share(),this.render$.debounceTime(this.duration).do(this.renewEventListeners.bind(this)).subscribe(),this.render$.switchMap(this.reinsertScriptTags.bind(this)).do(this.onLoad.bind(this)).catch(function(e,r){return t.onError(e),console.error(e),r}).subscribe(),this.page$.switchMap(function(){return c.Observable.timer(t.duration+200).do(t.onAnimationEnd.bind(t)).takeUntil(t.render$)}).do(this.onProgress.bind(this)).catch(function(e,r){return t.onError(e),console.error(e),r}).subscribe(),this.render$.subscribe(),this.onLoad({}),this.renewEventListeners()}},{key:"getResponse",value:function(t){var e=u(t,2),r=e[0],n=e[1],i=void 0;return r.href===n.href?(i=c.Observable.of(Object.assign(r,{response:n.response})),(r instanceof p.Push||!this.noPopDuration)&&(i=i.delay(this.duration+100))):(i=this.prefetch$.take(1).map(function(t){return Object.assign(r,{response:t.response})}),(r instanceof p.Push||!this.noPopDuration)&&(i=i.zip(c.Observable.timer(this.duration+100),function(t){return t}))),i}},{key:"responseToContent",value:function(t){var e=t.response,r=(0,f.fragmentFromString)(e),n=this.getTitleFromDocumentFragment(r),i=this.getContentFromDocumentFragment(r),o=this.tempRemoveScriptTags(i);return Object.assign(t,{title:n,content:i,scripts:o})}},{key:"updateDOM",value:function(t){try{var e=t.href,r=t.title,n=t.content;t instanceof p.Push&&window.history.replaceState({id:this.componentName},r,e),this.titleElement.textContent=r,this.replaceContent(n)}catch(e){throw Object.assign(t,{error:e})}}},{key:"tempRemoveScriptTags",value:function(t){var e=this,r=[];return t.forEach(function(t){return Array.prototype.forEach.call(t.querySelectorAll(e.scriptSelector),function(t){var e=[t,t.previousElementSibling];t.parentNode.removeChild(t),r.push(e)})}),r}},{key:"insertScript",value:function(t){var e=u(t,2),r=e[0],n=e[1];return""!==r.src?c.Observable.create(function(t){r.addEventListener("load",function(e){t.next(e),t.complete()}),r.addEventListener("error",function(e){t.error(e)}),n.parentNode.insertBefore(r,n.nextElementSibling)}):c.Observable.of({}).do(function(){n.parentNode.insertBefore(r,n.nextElementSibling)})}},{key:"reinsertScriptTags",value:function(t){var e=t.scripts;return 0===e.length?c.Observable.of({}):c.Observable.from(e).concatMap(this.insertScript)}},{key:"renewEventListeners",value:function(){var t=this.linkObservable();this.push$$.next(this.bindPushEvents(t)),this.hint$$.next(this.bindHintEvents(t))}},{key:"isPageChangeEvent",value:function(t){var e=t.event;return!e.metaKey&&!e.ctrlKey&&this.isPageChangeAnchor(t)}},{key:"isPageChangeAnchor",value:function(t){var e=t.event.currentTarget;return null!=e&&(0,f.shouldLoadAnchor)(e,this.blacklist,this.hrefRegex)}},{key:"getTitleFromDocumentFragment",value:function(t){return(t.querySelector("title")||{}).textContent}},{key:"getContentFromDocumentFragment",value:function(t){return this.replaceIds.length>0?this.replaceIds.map(function(e){return t.querySelector("#"+e)}):t.querySelector("#"+this.el.id)}},{key:"replaceContent",value:function(t){this.replaceIds.length>0?this.replaceContentByIds(t):this.replaceContentWholesale(t)}},{key:"replaceContentByIds",value:function(t){var e=this.replaceIds.map(function(t){return document.getElementById(t)});Array.prototype.forEach.call(e,function(e){e.parentNode.replaceChild(t.shift(),e)})}},{key:"replaceContentWholesale",value:function(t){this.el.innerHTML=t.innerHTML}},{key:"saveScrollPosition",value:function(t){return Object.assign(t,{scrollTop:(0,f.getScrollTop)(),scrollHeight:(0,f.getScrollHeight)()})}},{key:"updateHistoryState",value:function(){var t=history.state||{id:this.componentName};t=this.scrollRestoration?this.saveScrollPosition(t):t,history.replaceState(t,document.title,window.location.href)}},{key:"setScrollPosition",value:function(){var t=history.state||{};document.body.style.minHeight=(t.scrollHeight||0)+"px",null!=t.scrollTop&&window.scroll(window.pageXOffset,t.scrollTop),document.body.style.minHeight=""}},{key:"resetScrollPostion",value:function(t){this.scrollRestoration&&t instanceof p.Pop&&this.setScrollPosition()}},{key:"onStart",value:function(t){var e=t.href;t instanceof p.Push&&window.history.pushState({id:this.componentName},"",e),this.fireEvent("start",{detail:t})}},{key:"onReady",value:function(t){this.fireEvent("ready",{detail:t})}},{key:"onAfter",value:function(t){this.fireEvent("after",{detail:t})}},{key:"onError",value:function(t){this.fireEvent("error",{detail:t})}},{key:"onProgress",value:function(t){this.fireEvent("progress",{detail:t})}},{key:"onRetry",value:function(t){this.fireEvent("retry",{detail:t})}},{key:"onAnimationEnd",value:function(t){this.fireEvent("animationend",{detail:t})}},{key:"onLoad",value:function(t){this.fireEvent("load",{detail:t})}}]),r}()}},{"../common":262,"./kind":264,"rxjs/Observable":155,"rxjs/Subject":159,"rxjs/add/observable/defer":163,"rxjs/add/observable/dom/ajax":164,"rxjs/add/observable/from":165,"rxjs/add/observable/fromEvent":166,"rxjs/add/observable/merge":167,"rxjs/add/observable/of":168,"rxjs/add/observable/throw":169,"rxjs/add/observable/timer":170,"rxjs/add/operator/catch":171,"rxjs/add/operator/concatMap":172,"rxjs/add/operator/debounceTime":173,"rxjs/add/operator/delay":174,"rxjs/add/operator/distinctUntilKeyChanged":175,"rxjs/add/operator/do":176,"rxjs/add/operator/filter":177,"rxjs/add/operator/map":178,"rxjs/add/operator/mergeMap":179,"rxjs/add/operator/partition":180,"rxjs/add/operator/retryWhen":181,"rxjs/add/operator/share":182,"rxjs/add/operator/startWith":183,"rxjs/add/operator/switch":184,"rxjs/add/operator/switchMap":185,"rxjs/add/operator/take":186,"rxjs/add/operator/takeUntil":187,"rxjs/add/operator/throttleTime":188,"rxjs/add/operator/withLatestFrom":189,"rxjs/add/operator/zip":190,"y-component/src/component-core":149}],264:[function(t,e,r){"use strict";function n(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":s(e))&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":s(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),u=r.Kind=function t(e){o(this,t),this.event=e};r.Push=function(t){function e(t){o(this,e);var r=n(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.href=t.currentTarget.href,r}return i(e,u),a(e,[{key:"type",get:function(){return"push"}}]),e}(),r.Hint=function(t){function e(t){o(this,e);var r=n(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.href=t.currentTarget.href,r}return i(e,u),a(e,[{key:"type",get:function(){return"hint"}}]),e}(),r.Pop=function(t){function e(t){o(this,e);var r=n(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.href=window.location.href,r}return i(e,u),a(e,[{key:"type",get:function(){return"pop"}}]),e}()},{}],265:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":s(e))&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":s(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),u=function(t){return t&&t.__esModule?t:{default:t}}(t("../core")),c=function(t){function e(t,r){n(this,e);var o=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o.setupComponent(t,r),o}return o(e,(0,u.default)()),a(e,[{key:"setupDOM",value:function(t){if(!t)throw Error("No element provided");return t}}]),e}();r.default=c},{"../core":263}]},{},[8]);
|
14
|
+
!function t(e,r,n){function i(s,a){if(!r[s]){if(!e[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[s]={exports:{}};e[s][0].call(l.exports,function(t){var r=e[s][1][t];return i(r||t)},l,l.exports,t,e,r,n)}return r[s].exports}for(var o="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t,e,r){function i(t,e){return(void 0===t?"undefined":n(t))===e}function o(t){return t.replace(/([a-z])-([a-z])/g,function(t,e,r){return e+r.toUpperCase()}).replace(/^-/,"")}function s(){return"function"!=typeof e.createElement?e.createElement(arguments[0]):x?e.createElementNS.call(e,"http://www.w3.org/2000/svg",arguments[0]):e.createElement.apply(e,arguments)}function a(){var t=e.body;return t||(t=s(x?"svg":"body"),t.fake=!0),t}function u(t,r,n,i){var o,u,c,l,h="modernizr",f=s("div"),p=a();if(parseInt(n,10))for(;n--;)(c=s("div")).id=i?i[n]:h+(n+1),f.appendChild(c);return o=s("style"),o.type="text/css",o.id="s"+h,(p.fake?p:f).appendChild(o),p.appendChild(f),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(e.createTextNode(t)),f.id=h,p.fake&&(p.style.background="",p.style.overflow="hidden",l=S.style.overflow,S.style.overflow="hidden",S.appendChild(p)),u=r(f,t),p.fake?(p.parentNode.removeChild(p),S.style.overflow=l,S.offsetHeight):f.parentNode.removeChild(f),!!u}function c(t,e){return!!~(""+t).indexOf(e)}function l(t,e){return function(){return t.apply(e,arguments)}}function h(t,e,r){var n;for(var o in t)if(t[o]in e)return!1===r?t[o]:(n=e[t[o]],i(n,"function")?l(n,r||e):n);return!1}function f(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-")}function p(e,r,n){var i;if("getComputedStyle"in t){i=getComputedStyle.call(t,e,r);var o=t.console;null!==i?n&&(i=i.getPropertyValue(n)):o&&o[o.error?"error":"log"].call(o,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}else i=!r&&e.currentStyle&&e.currentStyle[n];return i}function b(e,n){var i=e.length;if("CSS"in t&&"supports"in t.CSS){for(;i--;)if(t.CSS.supports(f(e[i]),n))return!0;return!1}if("CSSSupportsRule"in t){for(var o=[];i--;)o.push("("+f(e[i])+":"+n+")");return o=o.join(" or "),u("@supports ("+o+") { #modernizr { position: absolute; } }",function(t){return"absolute"==p(t,null,"position")})}return r}function d(t,e,n,a){function u(){h&&(delete A.style,delete A.modElem)}if(a=!i(a,"undefined")&&a,!i(n,"undefined")){var l=b(t,n);if(!i(l,"undefined"))return l}for(var h,f,p,d,y,v=["modernizr","tspan","samp"];!A.style&&v.length;)h=!0,A.modElem=s(v.shift()),A.style=A.modElem.style;for(p=t.length,f=0;p>f;f++)if(d=t[f],y=A.style[d],c(d,"-")&&(d=o(d)),A.style[d]!==r){if(a||i(n,"undefined"))return u(),"pfx"!=e||d;try{A.style[d]=n}catch(t){}if(A.style[d]!=y)return u(),"pfx"!=e||d}return u(),!1}function y(t,e,r,n,o){var s=t.charAt(0).toUpperCase()+t.slice(1),a=(t+" "+E.join(s+" ")+s).split(" ");return i(e,"string")||i(e,"undefined")?d(a,e,n,o):(a=(t+" "+M.join(s+" ")+s).split(" "),h(a,e,r))}function v(t,e,n){return y(t,r,r,e,n)}var m=[],g={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(t,e){var r=this;setTimeout(function(){e(r[t])},0)},addTest:function(t,e,r){m.push({name:t,fn:e,options:r})},addAsyncTest:function(t){m.push({name:null,fn:t})}},_=function(){};_.prototype=g,(_=new _).addTest("eventlistener","addEventListener"in t),_.addTest("history",function(){var e=navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone")||"file:"===location.protocol)&&(t.history&&"pushState"in t.history)}),_.addTest("queryselector","querySelector"in e&&"querySelectorAll"in e);var w=[],O=g._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];g._prefixes=O;var S=e.documentElement;_.addTest("classlist","classList"in S),_.addTest("documentfragment",function(){return"createDocumentFragment"in e&&"appendChild"in S});var x="svg"===S.nodeName.toLowerCase();_.addTest("opacity",function(){var t=s("a").style;return t.cssText=O.join("opacity:.55;"),/^0.55$/.test(t.opacity)}),_.addTest("csspointerevents",function(){var t=s("a").style;return t.cssText="pointer-events:auto","auto"===t.pointerEvents}),_.addTest("cssremunit",function(){var t=s("a").style;try{t.fontSize="3rem"}catch(t){}return/rem/.test(t.fontSize)}),_.addTest("template","content"in s("template"));var j=g.testStyles=u;_.addTest("touchevents",function(){var r;if("ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch)r=!0;else{var n=["@media (",O.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");j(n,function(t){r=9===t.offsetTop})}return r});var k="Moz O ms Webkit",E=g._config.usePrefixes?k.split(" "):[];g._cssomPrefixes=E;var T=function(e){var n,i=O.length,o=t.CSSRule;if(void 0===o)return r;if(!e)return!1;if(e=e.replace(/^@/,""),(n=e.replace(/-/g,"_").toUpperCase()+"_RULE")in o)return"@"+e;for(var s=0;i>s;s++){var a=O[s];if(a.toUpperCase()+"_"+n in o)return"@-"+a.toLowerCase()+"-"+e}return!1};g.atRule=T;var M=g._config.usePrefixes?k.toLowerCase().split(" "):[];g._domPrefixes=M;var P={elem:s("modernizr")};_._q.push(function(){delete P.elem});var A={style:P.elem.style};_._q.unshift(function(){delete A.style}),g.testAllProps=y;var C=g.prefixed=function(t,e,r){return 0===t.indexOf("@")?T(t):(-1!=t.indexOf("-")&&(t=o(t)),e?y(t,e,r):y(t,"pfx"))};_.addTest("requestanimationframe",!!C("requestAnimationFrame",t),{aliases:["raf"]}),_.addTest("matchmedia",!!C("matchMedia",t)),g.testAllProps=v,_.addTest("cssanimations",v("animationName","a",!0)),_.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&v("transform","scale(1)",!0)}),function(){var t,e,r,n,o,s;for(var a in m)if(m.hasOwnProperty(a)){if(t=[],(e=m[a]).name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(r=0;r<e.options.aliases.length;r++)t.push(e.options.aliases[r].toLowerCase());for(n=i(e.fn,"function")?e.fn():e.fn,o=0;o<t.length;o++)1===(s=t[o].split(".")).length?_[s[0]]=n:(!_[s[0]]||_[s[0]]instanceof Boolean||(_[s[0]]=new Boolean(_[s[0]])),_[s[0]][s[1]]=n),w.push((n?"":"no-")+s.join("-"))}}(),delete g.addTest,delete g.addAsyncTest;for(var N=0;N<_._q.length;N++)_._q[N]();t.Modernizr=_}(window,document)},{}],2:[function(t,e,r){"use strict";console.log(" __ __ __ __ \r\n/\\ \\/\\ \\ /\\ \\ __ /\\ \\ \r\n\\ \\ \\_\\ \\ __ __ \\_\\ \\ __ /\\_\\ __ ___ \\ \\ \\/'\\ \r\n \\ \\ _ \\ /\\ \\/\\ \\ /'_` \\ /'__`\\ \\/\\ \\ /'__`\\ /'___\\\\ \\ , < \r\n \\ \\ \\ \\ \\\\ \\ \\_\\ \\ /\\ \\L\\ \\ /\\ __/ \\ \\ \\ /\\ \\L\\.\\_ /\\ \\__/ \\ \\ \\\\`\\ \r\n \\ \\_\\ \\_\\\\/`____ \\\\ \\___,_\\\\ \\____\\ _\\ \\ \\\\ \\__/.\\_\\\\ \\____\\ \\ \\_\\ \\_\\\r\n \\/_/\\/_/ `/___/> \\\\/__,_ / \\/____//\\ \\_\\ \\\\/__/\\/_/ \\/____/ \\/_/\\/_/\r\n /\\___/ \\ \\____/ \r\n \\/__/ \\/___/ "),console.log("Powered by Hydejack v6.6.1 <https://qwtel.com/hydejack/>")},{}],3:[function(t,e,r){"use strict";function n(t){t.style.display="",t.style.visibility=""}Object.defineProperty(r,"__esModule",{value:!0}),r.unhide=void 0,r.hasFeatures=function(t){for(var e=!0,r=0;r<t.length;r+=1){var n=t[r],i=window.Modernizr[n];e=e&&i}return e},r.show=function(t){t.style.display="block",t.style.visibility="visible"},r.hide=function(t){t.style.display="none",t.style.visibility="hidden"},r.unshow=n,r.matches=function(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector).call(t,e)},r.animate=function(t,e,r){return i.Observable.create(function(n){return t.animate(e,r).addEventListener("finish",function(t){n.next(t),n.complete()}),function(){}})};var i=t("rxjs/Observable");r.unhide=n},{"rxjs/Observable":91}],4:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).color,e=void 0===t?"#00f":t;this.rules[0].style.color=e,this.rules[0].style.borderColor=(0,a.default)(e).fade(m).string(),this.rules[1].style.borderColor=e,this.rules[2].style.outlineColor=e,this.rules[3].style.backgroundColor=e}Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function t(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(i)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=function(t){return t&&t.__esModule?t:{default:t}}(t("color")),u=t("rxjs/Observable"),c=t("rxjs/observable/empty"),l=t("rxjs/observable/fromEvent"),h=t("rxjs/observable/timer"),f=t("rxjs/operator/do"),p=t("rxjs/operator/finally"),b=t("rxjs/operator/map"),d=t("rxjs/operator/zip"),y=t("./common"),v=Array.prototype.find,m=.8,g=function(){function t(e){var r,i=e.duration;n(this,t);var o=document.getElementById("_main"),s=document.getElementById("_pageStyle"),a=(r=document.styleSheets,v).call(r,function(t){return t.ownerNode===s});this.sidebar=document.getElementById("_sidebar"),this.duration=i,this.rules=a.cssRules||a.rules,this.prevImage=o.getAttribute("data-image"),this.prevColor=o.getAttribute("data-color")}return s(t,[{key:"fetchImage",value:function(t){var e,r=this,n=t.color,o=t.image;if(o===this.prevImage&&n===this.prevColor)return c.empty.call(u.Observable);var s=void 0;if(""===o||o===this.prevImage)s=h.timer.call(u.Observable,this.duration);else{var a,y=new Image;s=(a=(a=l.fromEvent.call(u.Observable,y,"load"),d.zipProto).call(a,h.timer.call(u.Observable,this.duration),function(t){return t}),p._finally).call(a,function(){y.src=""}),y.src=o}return(e=(e=s,f._do).call(e,function(){i.call(r,t),r.prevImage=o,r.prevColor=n}),b.map).call(e,function(){var t=document.createElement("div");return t.classList.add("sidebar-bg"),t.style.backgroundColor=n,""!==o&&(t.style.backgroundImage="url("+o+")"),t})}},{key:"crossFade",value:function(t){var e,r=o(t,2),n=r[0],i=r[1];return n.parentNode.insertBefore(i,n.nextElementSibling),(e=(0,y.animate)(i,[{opacity:0},{opacity:1}],{duration:this.duration}),p._finally).call(e,function(){return n.parentNode.removeChild(n)})}}]),t}();r.default=g},{"./common":3,color:16,"rxjs/Observable":91,"rxjs/observable/empty":105,"rxjs/observable/fromEvent":106,"rxjs/observable/timer":107,"rxjs/operator/do":111,"rxjs/operator/finally":114,"rxjs/operator/map":115,"rxjs/operator/zip":124}],5:[function(t,e,r){"use strict";function n(){window.isDesktop!==window.matchMedia(u).matches&&(window.isDesktop=!window.isDesktop,window.drawer.persistent=window.isDesktop,window.drawer.jumpTo(window.isDesktop))}function i(t){window.isDesktop||(t.preventDefault(),window.drawer.toggle())}var o=function(t){return t&&t.__esModule?t:{default:t}}(t("y-drawer/src/vanilla")),s=t("./common"),a=["eventlistener","queryselector","matchmedia","requestanimationframe","classlist","opacity","csstransforms","csspointerevents","cssremunit"],u="(min-width: 54em)";if(!window.disableDrawer&&(0,s.hasFeatures)(a)){window.isDesktop=window.matchMedia(u).matches;var c=document.getElementById("_yDrawer");!function(t){window.drawer=t,window.addEventListener("resize",n),document.getElementById("_menu").addEventListener("click",i)}(new o.default(c,{opened:window.isDesktop,persistent:window.isDesktop,transitionDuration:150})),c.classList.add("loaded")}},{"./common":3,"y-drawer/src/vanilla":152}],6:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=t("rxjs/Observable"),s=t("rxjs/observable/empty"),a=function(){function t(e){var r=e.animationMain,i=e.duration;n(this,t),this.animationMain=r,this.duration=i}return i(t,null,[{key:"create",value:function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return null!=t.types[e]?new(Function.prototype.bind.apply(t.types[e],[null].concat(n))):new(Function.prototype.bind.apply(t,[null].concat(n)))}}]),i(t,[{key:"start",value:function(){return this.animationMain.style.opacity=0,this.animationMain.style.willChange="",s.empty.call(o.Observable)}},{key:"ready",value:function(){return s.empty.call(o.Observable)}}]),t}();r.default=a,a.types={}},{"rxjs/Observable":91,"rxjs/observable/empty":105}],7:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=t("rxjs/Observable"),u=t("rxjs/observable/timer"),c=t("rxjs/operator/do"),l=t("rxjs/operator/finally"),h=t("../common"),f=function(t){return t&&t.__esModule?t:{default:t}}(t("./flip")),p=function(t){function e(){return n(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,f.default),s(e,[{key:"start",value:function(t){var e,r=this,n=document.createElement("h1");n.classList.add("page-title"),n.textContent=t.textContent,n.style.transformOrigin="left top",this.animationMain.querySelector(".page").innerHTML="",this.animationMain.querySelector(".page").appendChild(n),this.animationMain.style.position="fixed",this.animationMain.style.opacity=1;var i=t.getBoundingClientRect(),o=parseInt(getComputedStyle(t).fontSize,10),s=n.getBoundingClientRect(),a=parseInt(getComputedStyle(n).fontSize,10),u=i.left-s.left,l=i.top-s.top,f=o/a;return t.style.opacity=0,(e=(0,h.animate)(n,[{transform:"translate3d("+u+"px, "+l+"px, 0) scale("+f+")"},{transform:"translate3d(0, 0, 0) scale(1)"}],{duration:this.duration,easing:"cubic-bezier(0,0,0.32,1)"}),c._do).call(e,function(){r.animationMain.style.position="absolute"})}},{key:"ready",value:function(t){var e,r=this;this.animationMain.style.willChange="opacity";var n=t.querySelector(".page-title, .post-title");return null!=n&&(n.style.opacity=0,n.style.willChange="opacity"),(e=(e=u.timer.call(a.Observable,this.duration+100),c._do).call(e,function(){null!=n&&(n.style.opacity=1,n.style.willChange="")}),l._finally).call(e,function(){r.animationMain.style.opacity=0,r.animationMain.style.willChange=""})}}]),e}();f.default.types.title=p},{"../common":3,"./flip":6,"rxjs/Observable":91,"rxjs/observable/timer":107,"rxjs/operator/do":111,"rxjs/operator/finally":114}],8:[function(t,e,r){"use strict";t("core-js/fn/array/for-each"),t("core-js/fn/array/find"),t("core-js/fn/function/bind"),t("core-js/fn/number/constructor"),t("core-js/fn/object/assign"),t("core-js/fn/object/define-property"),t("core-js/fn/object/keys"),t("core-js/fn/array/reduce"),t("web-animations-js"),t("../lib/modernizr-custom"),t("../lib/version"),t("./katex"),t("./drawer"),t("./push-state")},{"../lib/modernizr-custom":1,"../lib/version":2,"./drawer":5,"./katex":9,"./push-state":10,"core-js/fn/array/find":17,"core-js/fn/array/for-each":18,"core-js/fn/array/reduce":19,"core-js/fn/function/bind":20,"core-js/fn/number/constructor":21,"core-js/fn/object/assign":22,"core-js/fn/object/define-property":23,"core-js/fn/object/keys":24,"web-animations-js":148}],9:[function(t,e,r){"use strict";function n(t,e){t.outerHTML=window.katex.renderToString(e,{displayMode:"math/tex; mode=display"===t.type})}function i(t,e){try{var r=t.previousElementSibling;n(t,e),r&&(0,u.matches)(r,".MathJax_Preview")&&(0,u.hide)(r)}catch(t){console.error(t)}finally{t.style.willChange=""}}function o(t){return t.textContent.replace("% <![CDATA[","").replace("%]]>","")}function s(t){Array.prototype.forEach.call(t,function(t){i(t,o(t))})}function a(){if(l){var t=document.querySelectorAll('script[type^="math/tex"]');t.length&&(h&&f?s(t):(loadJSDeferred(document.getElementById("_katexJS").href,function(){(h=!0)&&f&&a()}),loadCSS(document.getElementById("_katexCSS").href).onload=function(){f=!0,h&&f&&a()}))}}Object.defineProperty(r,"__esModule",{value:!0}),r.default=a;var u=t("./common"),c=["eventlistener","queryselector"],l=(0,u.hasFeatures)(c),h=!1,f=!1;a()},{"./common":3}],10:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){return u._catch.call(this,function(t,e){return console.error(t),e})}var o=function(){function t(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(i)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=t("rxjs/Observable"),a=t("rxjs/observable/fromEvent"),u=t("rxjs/operator/catch"),c=t("rxjs/operator/do"),l=t("rxjs/operator/debounceTime"),h=t("rxjs/operator/exhaustMap"),f=t("rxjs/operator/filter"),p=t("rxjs/operator/map"),b=t("rxjs/operator/mergeMap"),d=t("rxjs/operator/pairwise"),y=t("rxjs/operator/share"),v=t("rxjs/operator/startWith"),m=t("rxjs/operator/switchMap"),g=t("rxjs/operator/takeUntil"),_=t("rxjs/operator/zip"),w=n(t("y-push-state/src/vanilla")),O=n(t("elem-dataset")),S=t("./common"),x=n(t("./cross-fader")),j=n(t("./katex")),k=n(t("./flip/flip"));t("./flip/title");var E=["eventlistener","queryselector","requestanimationframe","classlist","documentfragment","history","opacity","cssanimations"];if(!window.disablePushState&&(0,S.hasFeatures)(E)){var T,M=navigator.userAgent.toLowerCase(),P=M.indexOf("safari")>0&&M.indexOf("chrome")<0,A=new x.default({duration:500}),C=document.getElementById("_yPushState"),N=document.createElement("div");N.classList.add("animation-main"),N.classList.add("fixed-top"),N.innerHTML='\n <div class="content">\n <div class="page"></div>\n </div>',C.parentNode.insertBefore(N,C);var R=document.createElement("div");R.classList.add("loading"),R.innerHTML='\n <span class="sr-only">Loading...</span>\n <div class="sk-folding-cube">\n <div class="sk-cube1 sk-cube"></div>\n <div class="sk-cube2 sk-cube"></div>\n <div class="sk-cube4 sk-cube"></div>\n <div class="sk-cube3 sk-cube"></div>\n </div>\n ',document.querySelector(".navbar .content").appendChild(R);var F=(T=(T=(T=(T=a.fromEvent.call(s.Observable,C,"y-push-state-start"),p.map).call(T,function(t){return t.detail}),p.map).call(T,function(t){return[t,document.getElementById("_main")]}),c._do).call(T,function(){!window.isDesktop&&window.drawer.opened&&window.drawer.close()}),y.share).call(T),I=(T=(T=a.fromEvent.call(s.Observable,C,"y-push-state-ready"),p.map).call(T,function(t){return t.detail}),y.share).call(T),L=(T=a.fromEvent.call(s.Observable,C,"y-push-state-progress"),p.map).call(T,function(t){return t.detail}),D=(T=(T=a.fromEvent.call(s.Observable,C,"y-push-state-after"),p.map).call(T,function(t){return t.detail}),y.share).call(T);P&&(a.fromEvent.call(s.Observable,window,"popstate").subscribe(function(){document.body.style.minHeight="999999px"}),D.subscribe(function(){document.body.style.minHeight=""})),(T=m.switchMap.call(F,function(t){var e=o(t,1)[0],r=e.event.currentTarget,n=k.default.create(r.getAttribute&&r.getAttribute("data-flip"),{animationMain:N,currentTarget:r,duration:250});return e.flip=n,n.start(r)}),i).call(T).subscribe(),(T=(T=(T=c._do.call(F,function(t){o(t,2)[1].style.opacity=0}),f.filter).call(T,function(t){return"push"===o(t,1)[0].type||!P}),h.exhaustMap).call(T,function(t){var e,r=o(t,2),n=r[0].type,i=r[1];return(e=(e=(0,S.animate)(i,[{opacity:1},{opacity:0}],{duration:250,easing:"cubic-bezier(0,0,0.32,1)"}),c._do).call(e,function(){"push"===n&&window.scroll(0,0)}),_.zipProto).call(e,D)}),i).call(T).subscribe(),(T=c._do.call(L,function(){R.style.display="block"}),i).call(T).subscribe(),(T=(T=(T=c._do.call(I,function(){R.style.display="none"}),f.filter).call(T,function(t){return"push"===t.type||!P}),m.switchMap).call(T,function(t){var e,r=t.flip,n=o(t.content,1)[0];return(e=r.ready(n),g.takeUntil).call(e,F)}),i).call(T).subscribe(),(T=(T=(T=(T=m.switchMap.call(I,function(t){var e,r=o(t.content,1)[0];return(e=A.fetchImage((0,O.default)(r)),g.takeUntil).call(e,F)}),v.startWith).call(T,document.querySelector(".sidebar-bg")),d.pairwise).call(T),b.mergeMap).call(T,A.crossFade.bind(A)),i).call(T).subscribe(),(T=(T=(T=f.filter.call(D,function(t){return"push"===t.type||!P}),p.map).call(T,function(t){return[t,document.querySelector("main")]}),m.switchMap).call(T,function(t){var e=o(t,2)[1];return(0,S.animate)(e,[{transform:"translateY(-2rem)",opacity:0},{transform:"translateY(0)",opacity:1}],{duration:250,easing:"cubic-bezier(0,0,0.32,1)"})}),i).call(T).subscribe(),(T=(T=l.debounceTime.call(D,500),c._do).call(T,function(){window.ga&&window.ga("send","pageview",location.pathname),(0,j.default)()}),i).call(T).subscribe(),new w.default(C,{replaceIds:["_main"],linkSelector:'a[href^="/"]',scriptSelector:'script:not([type^="math/tex"])',duration:250,noPopDuration:P,scrollRestoration:!P}).startHistory()}},{"./common":3,"./cross-fader":4,"./flip/flip":6,"./flip/title":7,"./katex":9,"elem-dataset":88,"rxjs/Observable":91,"rxjs/observable/fromEvent":106,"rxjs/operator/catch":108,"rxjs/operator/debounceTime":110,"rxjs/operator/do":111,"rxjs/operator/exhaustMap":112,"rxjs/operator/filter":113,"rxjs/operator/map":115,"rxjs/operator/mergeMap":117,"rxjs/operator/pairwise":119,"rxjs/operator/share":120,"rxjs/operator/startWith":121,"rxjs/operator/switchMap":122,"rxjs/operator/takeUntil":123,"rxjs/operator/zip":124,"y-push-state/src/vanilla":265}],11:[function(t,e,r){function n(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}var i=t("color-name"),o={};for(var s in i)i.hasOwnProperty(s)&&(o[i[s]]=s);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var u in a)if(a.hasOwnProperty(u)){if(!("channels"in a[u]))throw new Error("missing channels property: "+u);if(!("labels"in a[u]))throw new Error("missing channel labels property: "+u);if(a[u].labels.length!==a[u].channels)throw new Error("channel and label counts mismatch: "+u);var c=a[u].channels,l=a[u].labels;delete a[u].channels,delete a[u].labels,Object.defineProperty(a[u],"channels",{value:c}),Object.defineProperty(a[u],"labels",{value:l})}a.rgb.hsl=function(t){var e,r,n,i=t[0]/255,o=t[1]/255,s=t[2]/255,a=Math.min(i,o,s),u=Math.max(i,o,s),c=u-a;return u===a?e=0:i===u?e=(o-s)/c:o===u?e=2+(s-i)/c:s===u&&(e=4+(i-o)/c),(e=Math.min(60*e,360))<0&&(e+=360),n=(a+u)/2,r=u===a?0:n<=.5?c/(u+a):c/(2-u-a),[e,100*r,100*n]},a.rgb.hsv=function(t){var e,r,n,i=t[0],o=t[1],s=t[2],a=Math.min(i,o,s),u=Math.max(i,o,s),c=u-a;return r=0===u?0:c/u*1e3/10,u===a?e=0:i===u?e=(o-s)/c:o===u?e=2+(s-i)/c:s===u&&(e=4+(i-o)/c),(e=Math.min(60*e,360))<0&&(e+=360),n=u/255*1e3/10,[e,r,n]},a.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=a.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,100*o,100*n]},a.rgb.cmyk=function(t){var e,r,n,i,o=t[0]/255,s=t[1]/255,a=t[2]/255;return i=Math.min(1-o,1-s,1-a),e=(1-o-i)/(1-i)||0,r=(1-s-i)/(1-i)||0,n=(1-a-i)/(1-i)||0,[100*e,100*r,100*n,100*i]},a.rgb.keyword=function(t){var e=o[t];if(e)return e;var r,s=1/0;for(var a in i)if(i.hasOwnProperty(a)){var u=n(t,i[a]);u<s&&(s=u,r=a)}return r},a.keyword.rgb=function(t){return i[t]},a.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},a.rgb.lab=function(t){var e,r,n,i=a.rgb.xyz(t),o=i[0],s=i[1],u=i[2];return o/=95.047,s/=100,u/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,e=116*s-16,r=500*(o-s),n=200*(s-u),[e,r,n]},a.hsl.rgb=function(t){var e,r,n,i,o,s=t[0]/360,a=t[1]/100,u=t[2]/100;if(0===a)return o=255*u,[o,o,o];e=2*u-(r=u<.5?u*(1+a):u+a-u*a),i=[0,0,0];for(var c=0;c<3;c++)(n=s+1/3*-(c-1))<0&&n++,n>1&&n--,o=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,i[c]=255*o;return i},a.hsl.hsv=function(t){var e,r,n=t[0],i=t[1]/100,o=t[2]/100,s=i,a=Math.max(o,.01);return o*=2,i*=o<=1?o:2-o,s*=a<=1?a:2-a,r=(o+i)/2,e=0===o?2*s/(a+s):2*i/(o+i),[n,100*e,100*r]},a.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),s=255*n*(1-r),a=255*n*(1-r*o),u=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,u,s];case 1:return[a,n,s];case 2:return[s,n,u];case 3:return[s,a,n];case 4:return[u,s,n];case 5:return[n,s,a]}},a.hsv.hsl=function(t){var e,r,n,i=t[0],o=t[1]/100,s=t[2]/100,a=Math.max(s,.01);return n=(2-o)*s,e=(2-o)*a,r=o*a,r/=e<=1?e:2-e,r=r||0,n/=2,[i,100*r,100*n]},a.hwb.rgb=function(t){var e,r,n,i,o=t[0]/360,s=t[1]/100,a=t[2]/100,u=s+a;u>1&&(s/=u,a/=u),r=1-a,n=6*o-(e=Math.floor(6*o)),0!=(1&e)&&(n=1-n),i=s+n*(r-s);var c,l,h;switch(e){default:case 6:case 0:c=r,l=i,h=s;break;case 1:c=i,l=r,h=s;break;case 2:c=s,l=r,h=i;break;case 3:c=s,l=i,h=r;break;case 4:c=i,l=s,h=r;break;case 5:c=r,l=s,h=i}return[255*c,255*l,255*h]},a.cmyk.rgb=function(t){var e,r,n,i=t[0]/100,o=t[1]/100,s=t[2]/100,a=t[3]/100;return e=1-Math.min(1,i*(1-a)+a),r=1-Math.min(1,o*(1-a)+a),n=1-Math.min(1,s*(1-a)+a),[255*e,255*r,255*n]},a.xyz.rgb=function(t){var e,r,n,i=t[0]/100,o=t[1]/100,s=t[2]/100;return e=3.2406*i+-1.5372*o+-.4986*s,r=-.9689*i+1.8758*o+.0415*s,n=.0557*i+-.204*o+1.057*s,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,e=Math.min(Math.max(0,e),1),r=Math.min(Math.max(0,r),1),n=Math.min(Math.max(0,n),1),[255*e,255*r,255*n]},a.xyz.lab=function(t){var e,r,n,i=t[0],o=t[1],s=t[2];return i/=95.047,o/=100,s/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,e=116*o-16,r=500*(i-o),n=200*(o-s),[e,r,n]},a.lab.xyz=function(t){var e,r,n,i=t[0];e=t[1]/500+(r=(i+16)/116),n=r-t[2]/200;var o=Math.pow(r,3),s=Math.pow(e,3),a=Math.pow(n,3);return r=o>.008856?o:(r-16/116)/7.787,e=s>.008856?s:(e-16/116)/7.787,n=a>.008856?a:(n-16/116)/7.787,e*=95.047,r*=100,n*=108.883,[e,r,n]},a.lab.lch=function(t){var e,r,n,i=t[0],o=t[1],s=t[2];return e=Math.atan2(s,o),(r=360*e/2/Math.PI)<0&&(r+=360),n=Math.sqrt(o*o+s*s),[i,n,r]},a.lch.lab=function(t){var e,r,n,i=t[0],o=t[1];return n=t[2]/360*2*Math.PI,e=o*Math.cos(n),r=o*Math.sin(n),[i,e,r]},a.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}t-=16;var r;return[Math.floor(t/36)/5*255,Math.floor((r=t%36)/6)/5*255,r%6/5*255]},a.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];3===e[0].length&&(r=r.split("").map(function(t){return t+t}).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},a.rgb.hcg=function(t){var e,r,n=t[0]/255,i=t[1]/255,o=t[2]/255,s=Math.max(Math.max(n,i),o),a=Math.min(Math.min(n,i),o),u=s-a;return e=u<1?a/(1-u):0,r=u<=0?0:s===n?(i-o)/u%6:s===i?2+(o-n)/u:4+(n-i)/u+4,r/=6,r%=1,[360*r,100*u,100*e]},a.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return(n=r<.5?2*e*r:2*e*(1-r))<1&&(i=(r-.5*n)/(1-n)),[t[0],100*n,100*i]},a.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],100*n,100*i]},a.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];var i=[0,0,0],o=e%1*6,s=o%1,a=1-s,u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[255*(r*i[0]+u),255*(r*i[1]+u),255*(r*i[2]+u)]},a.hcg.hsv=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e),n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},a.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100*(1-e)+.5*e,n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},a.hcg.hwb=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},a.hwb.hcg=function(t){var e=t[1]/100,r=1-t[2]/100,n=r-e,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],100*n,100*i]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},{"color-name":14}],12:[function(t,e,r){function n(t){var e=function(e){return void 0===e||null===e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}function i(t){var e=function(e){if(void 0===e||null===e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var r=t(e);if("object"==typeof r)for(var n=r.length,i=0;i<n;i++)r[i]=Math.round(r[i]);return r};return"conversion"in t&&(e.conversion=t.conversion),e}var o=t("./conversions"),s=t("./route"),a={};Object.keys(o).forEach(function(t){a[t]={},Object.defineProperty(a[t],"channels",{value:o[t].channels}),Object.defineProperty(a[t],"labels",{value:o[t].labels});var e=s(t);Object.keys(e).forEach(function(r){var o=e[r];a[t][r]=i(o),a[t][r].raw=n(o)})}),e.exports=a},{"./conversions":11,"./route":13}],13:[function(t,e,r){function n(){for(var t={},e=u.length,r=0;r<e;r++)t[u[r]]={distance:-1,parent:null};return t}function i(t){var e=n(),r=[t];for(e[t].distance=0;r.length;)for(var i=r.pop(),o=Object.keys(a[i]),s=o.length,u=0;u<s;u++){var c=o[u],l=e[c];-1===l.distance&&(l.distance=e[i].distance+1,l.parent=i,r.unshift(c))}return e}function o(t,e){return function(r){return e(t(r))}}function s(t,e){for(var r=[e[t].parent,t],n=a[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=o(a[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}var a=t("./conversions"),u=Object.keys(a);e.exports=function(t){for(var e=i(t),r={},n=Object.keys(e),o=n.length,a=0;a<o;a++){var u=n[a];null!==e[u].parent&&(r[u]=s(u,e))}return r}},{"./conversions":11}],14:[function(t,e,r){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],15:[function(t,e,r){function n(t,e,r){return Math.min(Math.max(e,t),r)}function i(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var o=t("color-name"),s=t("simple-swizzle"),a={};for(var u in o)o.hasOwnProperty(u)&&(a[o[u]]=u);var c=e.exports={to:{}};c.get=function(t){var e,r;switch(t.substring(0,3).toLowerCase()){case"hsl":e=c.get.hsl(t),r="hsl";break;case"hwb":e=c.get.hwb(t),r="hwb";break;default:e=c.get.rgb(t),r="rgb"}return e?{model:r,value:e}:null},c.get.rgb=function(t){if(!t)return null;var e,r,i,s=/^#([a-f0-9]{3,4})$/i,a=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,u=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,c=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,l=/(\D+)/,h=[0,0,0,1];if(e=t.match(a)){for(i=e[2],e=e[1],r=0;r<3;r++){var f=2*r;h[r]=parseInt(e.slice(f,f+2),16)}i&&(h[3]=Math.round(parseInt(i,16)/255*100)/100)}else if(e=t.match(s)){for(i=(e=e[1])[3],r=0;r<3;r++)h[r]=parseInt(e[r]+e[r],16);i&&(h[3]=Math.round(parseInt(i+i,16)/255*100)/100)}else if(e=t.match(u)){for(r=0;r<3;r++)h[r]=parseInt(e[r+1],0);e[4]&&(h[3]=parseFloat(e[4]))}else{if(!(e=t.match(c)))return(e=t.match(l))?"transparent"===e[1]?[0,0,0,0]:(h=o[e[1]])?(h[3]=1,h):null:null;for(r=0;r<3;r++)h[r]=Math.round(2.55*parseFloat(e[r+1]));e[4]&&(h[3]=parseFloat(e[4]))}for(r=0;r<3;r++)h[r]=n(h[r],0,255);return h[3]=n(h[3],0,1),h},c.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,r=t.match(e);if(r){var i=parseFloat(r[4]);return[(parseFloat(r[1])%360+360)%360,n(parseFloat(r[2]),0,100),n(parseFloat(r[3]),0,100),n(isNaN(i)?1:i,0,1)]}return null},c.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,r=t.match(e);if(r){var i=parseFloat(r[4]);return[(parseFloat(r[1])%360+360)%360,n(parseFloat(r[2]),0,100),n(parseFloat(r[3]),0,100),n(isNaN(i)?1:i,0,1)]}return null},c.to.hex=function(){var t=s(arguments);return"#"+i(t[0])+i(t[1])+i(t[2])+(t[3]<1?i(Math.round(255*t[3])):"")},c.to.rgb=function(){var t=s(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},c.to.rgb.percent=function(){var t=s(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"},c.to.hsl=function(){var t=s(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},c.to.hwb=function(){var t=s(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},c.to.keyword=function(t){return a[t.slice(0,3)]}},{"color-name":14,"simple-swizzle":147}],16:[function(t,e,r){"use strict";function n(t,e){if(!(this instanceof n))return new n(t,e);if(e&&e in p&&(e=null),e&&!(e in h))throw new Error("Unknown model: "+e);var r,i;if(t)if(t instanceof n)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if("string"==typeof t){var o=l.get(t);if(null===o)throw new Error("Unable to parse color from string: "+t);this.model=o.model,i=h[this.model].channels,this.color=o.value.slice(0,i),this.valpha="number"==typeof o.value[i]?o.value[i]:1}else if(t.length){this.model=e||"rgb",i=h[this.model].channels;var s=f.call(t,0,i);this.color=c(s,i),this.valpha="number"==typeof t[i]?t[i]:1}else if("number"==typeof t)t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;var a=Object.keys(t);"alpha"in t&&(a.splice(a.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);var u=a.sort().join("");if(!(u in b))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=b[u];var y=h[this.model].labels,v=[];for(r=0;r<y.length;r++)v.push(t[y[r]]);this.color=c(v)}else this.model="rgb",this.color=[0,0,0],this.valpha=1;if(d[this.model])for(i=h[this.model].channels,r=0;r<i;r++){var m=d[this.model][r];m&&(this.color[r]=m(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function i(t,e){return Number(t.toFixed(e))}function o(t){return function(e){return i(e,t)}}function s(t,e,r){return(t=Array.isArray(t)?t:[t]).forEach(function(t){(d[t]||(d[t]=[]))[e]=r}),t=t[0],function(n){var i;return arguments.length?(r&&(n=r(n)),i=this[t](),i.color[e]=n,i):(i=this[t]().color[e],r&&(i=r(i)),i)}}function a(t){return function(e){return Math.max(0,Math.min(t,e))}}function u(t){return Array.isArray(t)?t:[t]}function c(t,e){for(var r=0;r<e;r++)"number"!=typeof t[r]&&(t[r]=0);return t}var l=t("color-string"),h=t("color-convert"),f=[].slice,p=["keyword","gray","hex"],b={};Object.keys(h).forEach(function(t){b[f.call(h[t].labels).sort().join("")]=t});var d={};n.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in l.to?this:this.rgb(),r=1===(e=e.round("number"==typeof t?t:1)).valpha?e.color:e.color.concat(this.valpha);return l.to[e.model](r)},percentString:function(t){var e=this.rgb().round("number"==typeof t?t:1),r=1===e.valpha?e.color:e.color.concat(this.valpha);return l.to.rgb.percent(r)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=h[this.model].channels,r=h[this.model].labels,n=0;n<e;n++)t[r[n]]=this.color[n];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new n(this.color.map(o(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new n(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:s("rgb",0,a(255)),green:s("rgb",1,a(255)),blue:s("rgb",2,a(255)),hue:s(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:s("hsl",1,a(100)),lightness:s("hsl",2,a(100)),saturationv:s("hsv",1,a(100)),value:s("hsv",2,a(100)),chroma:s("hcg",1,a(100)),gray:s("hcg",2,a(100)),white:s("hwb",1,a(100)),wblack:s("hwb",2,a(100)),cyan:s("cmyk",0,a(100)),magenta:s("cmyk",1,a(100)),yellow:s("cmyk",2,a(100)),black:s("cmyk",3,a(100)),x:s("xyz",0,a(100)),y:s("xyz",1,a(100)),z:s("xyz",2,a(100)),l:s("lab",0,a(100)),a:s("lab",1),b:s("lab",2),keyword:function(t){return arguments.length?new n(t):h[this.model].keyword(this.color)},hex:function(t){return arguments.length?new n(t):l.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity:function(){for(var t=this.rgb().color,e=[],r=0;r<t.length;r++){var n=t[r]/255;e[r]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.rgb().color;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return n.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),r=e.color[0];return r=(r+t)%360,r=r<0?360+r:r,e.color[0]=r,e},mix:function(t,e){var r=t.rgb(),i=this.rgb(),o=void 0===e?.5:e,s=2*o-1,a=r.alpha()-i.alpha(),u=((s*a==-1?s:(s+a)/(1+s*a))+1)/2,c=1-u;return n.rgb(u*r.red()+c*i.red(),u*r.green()+c*i.green(),u*r.blue()+c*i.blue(),r.alpha()*o+i.alpha()*(1-o))}},Object.keys(h).forEach(function(t){if(-1===p.indexOf(t)){var e=h[t].channels;n.prototype[t]=function(){if(this.model===t)return new n(this);if(arguments.length)return new n(arguments,t);var r="number"==typeof arguments[e]?e:this.valpha;return new n(u(h[this.model][t].raw(this.color)).concat(r),t)},n[t]=function(r){return"number"==typeof r&&(r=c(f.call(arguments),e)),new n(r,t)}}}),e.exports=n},{"color-convert":12,"color-string":15}],17:[function(t,e,r){t("../../modules/es6.array.find"),e.exports=t("../../modules/_core").Array.find},{"../../modules/_core":35,"../../modules/es6.array.find":80}],18:[function(t,e,r){t("../../modules/es6.array.for-each"),e.exports=t("../../modules/_core").Array.forEach},{"../../modules/_core":35,"../../modules/es6.array.for-each":81}],19:[function(t,e,r){t("../../modules/es6.array.reduce"),e.exports=t("../../modules/_core").Array.reduce},{"../../modules/_core":35,"../../modules/es6.array.reduce":82}],20:[function(t,e,r){t("../../modules/es6.function.bind"),e.exports=t("../../modules/_core").Function.bind},{"../../modules/_core":35,"../../modules/es6.function.bind":83}],21:[function(t,e,r){t("../../modules/es6.number.constructor"),e.exports=Number},{"../../modules/es6.number.constructor":84}],22:[function(t,e,r){t("../../modules/es6.object.assign"),e.exports=t("../../modules/_core").Object.assign},{"../../modules/_core":35,"../../modules/es6.object.assign":85}],23:[function(t,e,r){t("../../modules/es6.object.define-property");var n=t("../../modules/_core").Object;e.exports=function(t,e,r){return n.defineProperty(t,e,r)}},{"../../modules/_core":35,"../../modules/es6.object.define-property":86}],24:[function(t,e,r){t("../../modules/es6.object.keys"),e.exports=t("../../modules/_core").Object.keys},{"../../modules/_core":35,"../../modules/es6.object.keys":87}],25:[function(t,e,r){e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],26:[function(t,e,r){var n=t("./_wks")("unscopables"),i=Array.prototype;void 0==i[n]&&t("./_hide")(i,n,{}),e.exports=function(t){i[n][t]=!0}},{"./_hide":45,"./_wks":79}],27:[function(t,e,r){var n=t("./_is-object");e.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":52}],28:[function(t,e,r){var n=t("./_to-iobject"),i=t("./_to-length"),o=t("./_to-index");e.exports=function(t){return function(e,r,s){var a,u=n(e),c=i(u.length),l=o(s,c);if(t&&r!=r){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===r)return t||l||0;return!t&&-1}}},{"./_to-index":72,"./_to-iobject":74,"./_to-length":75}],29:[function(t,e,r){var n=t("./_ctx"),i=t("./_iobject"),o=t("./_to-object"),s=t("./_to-length"),a=t("./_array-species-create");e.exports=function(t,e){var r=1==t,u=2==t,c=3==t,l=4==t,h=6==t,f=5==t||h,p=e||a;return function(e,a,b){for(var d,y,v=o(e),m=i(v),g=n(a,b,3),_=s(m.length),w=0,O=r?p(e,_):u?p(e,0):void 0;_>w;w++)if((f||w in m)&&(d=m[w],y=g(d,w,v),t))if(r)O[w]=y;else if(y)switch(t){case 3:return!0;case 5:return d;case 6:return w;case 2:O.push(d)}else if(l)return!1;return h?-1:c||l?l:O}}},{"./_array-species-create":32,"./_ctx":36,"./_iobject":50,"./_to-length":75,"./_to-object":76}],30:[function(t,e,r){var n=t("./_a-function"),i=t("./_to-object"),o=t("./_iobject"),s=t("./_to-length");e.exports=function(t,e,r,a,u){n(e);var c=i(t),l=o(c),h=s(c.length),f=u?h-1:0,p=u?-1:1;if(r<2)for(;;){if(f in l){a=l[f],f+=p;break}if(f+=p,u?f<0:h<=f)throw TypeError("Reduce of empty array with no initial value")}for(;u?f>=0:h>f;f+=p)f in l&&(a=e(a,l[f],f,c));return a}},{"./_a-function":25,"./_iobject":50,"./_to-length":75,"./_to-object":76}],31:[function(t,e,r){var n=t("./_is-object"),i=t("./_is-array"),o=t("./_wks")("species");e.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),n(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},{"./_is-array":51,"./_is-object":52,"./_wks":79}],32:[function(t,e,r){var n=t("./_array-species-constructor");e.exports=function(t,e){return new(n(t))(e)}},{"./_array-species-constructor":31}],33:[function(t,e,r){"use strict";var n=t("./_a-function"),i=t("./_is-object"),o=t("./_invoke"),s=[].slice,a={},u=function(t,e,r){if(!(e in a)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";a[e]=Function("F,a","return new F("+n.join(",")+")")}return a[e](t,r)};e.exports=Function.bind||function(t){var e=n(this),r=s.call(arguments,1),a=function(){var n=r.concat(s.call(arguments));return this instanceof a?u(e,n.length,n):o(e,n,t)};return i(e.prototype)&&(a.prototype=e.prototype),a}},{"./_a-function":25,"./_invoke":49,"./_is-object":52}],34:[function(t,e,r){var n={}.toString;e.exports=function(t){return n.call(t).slice(8,-1)}},{}],35:[function(t,e,r){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},{}],36:[function(t,e,r){var n=t("./_a-function");e.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},{"./_a-function":25}],37:[function(t,e,r){e.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},{}],38:[function(t,e,r){e.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":42}],39:[function(t,e,r){var n=t("./_is-object"),i=t("./_global").document,o=n(i)&&n(i.createElement);e.exports=function(t){return o?i.createElement(t):{}}},{"./_global":43,"./_is-object":52}],40:[function(t,e,r){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],41:[function(t,e,r){var n=t("./_global"),i=t("./_core"),o=t("./_hide"),s=t("./_redefine"),a=t("./_ctx"),u=function(t,e,r){var c,l,h,f,p=t&u.F,b=t&u.G,d=t&u.S,y=t&u.P,v=t&u.B,m=b?n:d?n[e]||(n[e]={}):(n[e]||{}).prototype,g=b?i:i[e]||(i[e]={}),_=g.prototype||(g.prototype={});b&&(r=e);for(c in r)h=((l=!p&&m&&void 0!==m[c])?m:r)[c],f=v&&l?a(h,n):y&&"function"==typeof h?a(Function.call,h):h,m&&s(m,c,h,t&u.U),g[c]!=h&&o(g,c,f),y&&_[c]!=h&&(_[c]=h)};n.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},{"./_core":35,"./_ctx":36,"./_global":43,"./_hide":45,"./_redefine":65}],42:[function(t,e,r){e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],43:[function(t,e,r){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],44:[function(t,e,r){var n={}.hasOwnProperty;e.exports=function(t,e){return n.call(t,e)}},{}],45:[function(t,e,r){var n=t("./_object-dp"),i=t("./_property-desc");e.exports=t("./_descriptors")?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},{"./_descriptors":38,"./_object-dp":55,"./_property-desc":64}],46:[function(t,e,r){e.exports=t("./_global").document&&document.documentElement},{"./_global":43}],47:[function(t,e,r){e.exports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":38,"./_dom-create":39,"./_fails":42}],48:[function(t,e,r){var n=t("./_is-object"),i=t("./_set-proto").set;e.exports=function(t,e,r){var o,s=e.constructor;return s!==r&&"function"==typeof s&&(o=s.prototype)!==r.prototype&&n(o)&&i&&i(t,o),t}},{"./_is-object":52,"./_set-proto":66}],49:[function(t,e,r){e.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},{}],50:[function(t,e,r){var n=t("./_cof");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},{"./_cof":34}],51:[function(t,e,r){var n=t("./_cof");e.exports=Array.isArray||function(t){return"Array"==n(t)}},{"./_cof":34}],52:[function(t,e,r){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],53:[function(t,e,r){"use strict";var n=t("./_object-keys"),i=t("./_object-gops"),o=t("./_object-pie"),s=t("./_to-object"),a=t("./_iobject"),u=Object.assign;e.exports=!u||t("./_fails")(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=u({},t)[r]||Object.keys(u({},e)).join("")!=n})?function(t,e){for(var r=s(t),u=arguments.length,c=1,l=i.f,h=o.f;u>c;)for(var f,p=a(arguments[c++]),b=l?n(p).concat(l(p)):n(p),d=b.length,y=0;d>y;)h.call(p,f=b[y++])&&(r[f]=p[f]);return r}:u},{"./_fails":42,"./_iobject":50,"./_object-gops":59,"./_object-keys":61,"./_object-pie":62,"./_to-object":76}],54:[function(t,e,r){var n=t("./_an-object"),i=t("./_object-dps"),o=t("./_enum-bug-keys"),s=t("./_shared-key")("IE_PROTO"),a=function(){},u=function(){var e,r=t("./_dom-create")("iframe"),n=o.length;for(r.style.display="none",t("./_html").appendChild(r),r.src="javascript:",(e=r.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u.prototype[o[n]];return u()};e.exports=Object.create||function(t,e){var r;return null!==t?(a.prototype=n(t),r=new a,a.prototype=null,r[s]=t):r=u(),void 0===e?r:i(r,e)}},{"./_an-object":27,"./_dom-create":39,"./_enum-bug-keys":40,"./_html":46,"./_object-dps":56,"./_shared-key":67}],55:[function(t,e,r){var n=t("./_an-object"),i=t("./_ie8-dom-define"),o=t("./_to-primitive"),s=Object.defineProperty;r.f=t("./_descriptors")?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},{"./_an-object":27,"./_descriptors":38,"./_ie8-dom-define":47,"./_to-primitive":77}],56:[function(t,e,r){var n=t("./_object-dp"),i=t("./_an-object"),o=t("./_object-keys");e.exports=t("./_descriptors")?Object.defineProperties:function(t,e){i(t);for(var r,s=o(e),a=s.length,u=0;a>u;)n.f(t,r=s[u++],e[r]);return t}},{"./_an-object":27,"./_descriptors":38,"./_object-dp":55,"./_object-keys":61}],57:[function(t,e,r){var n=t("./_object-pie"),i=t("./_property-desc"),o=t("./_to-iobject"),s=t("./_to-primitive"),a=t("./_has"),u=t("./_ie8-dom-define"),c=Object.getOwnPropertyDescriptor;r.f=t("./_descriptors")?c:function(t,e){if(t=o(t),e=s(e,!0),u)try{return c(t,e)}catch(t){}if(a(t,e))return i(!n.f.call(t,e),t[e])}},{"./_descriptors":38,"./_has":44,"./_ie8-dom-define":47,"./_object-pie":62,"./_property-desc":64,"./_to-iobject":74,"./_to-primitive":77}],58:[function(t,e,r){var n=t("./_object-keys-internal"),i=t("./_enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},{"./_enum-bug-keys":40,"./_object-keys-internal":60}],59:[function(t,e,r){r.f=Object.getOwnPropertySymbols},{}],60:[function(t,e,r){var n=t("./_has"),i=t("./_to-iobject"),o=t("./_array-includes")(!1),s=t("./_shared-key")("IE_PROTO");e.exports=function(t,e){var r,a=i(t),u=0,c=[];for(r in a)r!=s&&n(a,r)&&c.push(r);for(;e.length>u;)n(a,r=e[u++])&&(~o(c,r)||c.push(r));return c}},{"./_array-includes":28,"./_has":44,"./_shared-key":67,"./_to-iobject":74}],61:[function(t,e,r){var n=t("./_object-keys-internal"),i=t("./_enum-bug-keys");e.exports=Object.keys||function(t){return n(t,i)}},{"./_enum-bug-keys":40,"./_object-keys-internal":60}],62:[function(t,e,r){r.f={}.propertyIsEnumerable},{}],63:[function(t,e,r){var n=t("./_export"),i=t("./_core"),o=t("./_fails");e.exports=function(t,e){var r=(i.Object||{})[t]||Object[t],s={};s[t]=e(r),n(n.S+n.F*o(function(){r(1)}),"Object",s)}},{"./_core":35,"./_export":41,"./_fails":42}],64:[function(t,e,r){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],65:[function(t,e,r){var n=t("./_global"),i=t("./_hide"),o=t("./_has"),s=t("./_uid")("src"),a=Function.toString,u=(""+a).split("toString");t("./_core").inspectSource=function(t){return a.call(t)},(e.exports=function(t,e,r,a){var c="function"==typeof r;c&&(o(r,"name")||i(r,"name",e)),t[e]!==r&&(c&&(o(r,s)||i(r,s,t[e]?""+t[e]:u.join(String(e)))),t===n?t[e]=r:a?t[e]?t[e]=r:i(t,e,r):(delete t[e],i(t,e,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},{"./_core":35,"./_global":43,"./_has":44,"./_hide":45,"./_uid":78}],66:[function(t,e,r){var n=t("./_is-object"),i=t("./_an-object"),o=function(t,e){if(i(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,r,n){try{(n=t("./_ctx")(Function.call,t("./_object-gopd").f(Object.prototype,"__proto__").set,2))(e,[]),r=!(e instanceof Array)}catch(t){r=!0}return function(t,e){return o(t,e),r?t.__proto__=e:n(t,e),t}}({},!1):void 0),check:o}},{"./_an-object":27,"./_ctx":36,"./_is-object":52,"./_object-gopd":57}],67:[function(t,e,r){var n=t("./_shared")("keys"),i=t("./_uid");e.exports=function(t){return n[t]||(n[t]=i(t))}},{"./_shared":68,"./_uid":78}],68:[function(t,e,r){var n=t("./_global"),i=n["__core-js_shared__"]||(n["__core-js_shared__"]={});e.exports=function(t){return i[t]||(i[t]={})}},{"./_global":43}],69:[function(t,e,r){var n=t("./_fails");e.exports=function(t,e){return!!t&&n(function(){e?t.call(null,function(){},1):t.call(null)})}},{"./_fails":42}],70:[function(t,e,r){var n=t("./_export"),i=t("./_defined"),o=t("./_fails"),s=t("./_string-ws"),a="["+s+"]",u=RegExp("^"+a+a+"*"),c=RegExp(a+a+"*$"),l=function(t,e,r){var i={},a=o(function(){return!!s[t]()||"
"!="
"[t]()}),u=i[t]=a?e(h):s[t];r&&(i[r]=u),n(n.P+n.F*a,"String",i)},h=l.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(c,"")),t};e.exports=l},{"./_defined":37,"./_export":41,"./_fails":42,"./_string-ws":71}],71:[function(t,e,r){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},{}],72:[function(t,e,r){var n=t("./_to-integer"),i=Math.max,o=Math.min;e.exports=function(t,e){return(t=n(t))<0?i(t+e,0):o(t,e)}},{"./_to-integer":73}],73:[function(t,e,r){var n=Math.ceil,i=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},{}],74:[function(t,e,r){var n=t("./_iobject"),i=t("./_defined");e.exports=function(t){return n(i(t))}},{"./_defined":37,"./_iobject":50}],75:[function(t,e,r){var n=t("./_to-integer"),i=Math.min;e.exports=function(t){return t>0?i(n(t),9007199254740991):0}},{"./_to-integer":73}],76:[function(t,e,r){var n=t("./_defined");e.exports=function(t){return Object(n(t))}},{"./_defined":37}],77:[function(t,e,r){var n=t("./_is-object");e.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":52}],78:[function(t,e,r){var n=0,i=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},{}],79:[function(t,e,r){var n=t("./_shared")("wks"),i=t("./_uid"),o=t("./_global").Symbol,s="function"==typeof o;(e.exports=function(t){return n[t]||(n[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=n},{"./_global":43,"./_shared":68,"./_uid":78}],80:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-methods")(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),n(n.P+n.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),t("./_add-to-unscopables")("find")},{"./_add-to-unscopables":26,"./_array-methods":29,"./_export":41}],81:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-methods")(0),o=t("./_strict-method")([].forEach,!0);n(n.P+n.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},{"./_array-methods":29,"./_export":41,"./_strict-method":69}],82:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-reduce");n(n.P+n.F*!t("./_strict-method")([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},{"./_array-reduce":30,"./_export":41,"./_strict-method":69}],83:[function(t,e,r){var n=t("./_export");n(n.P,"Function",{bind:t("./_bind")})},{"./_bind":33,"./_export":41}],84:[function(t,e,r){"use strict";var n=t("./_global"),i=t("./_has"),o=t("./_cof"),s=t("./_inherit-if-required"),a=t("./_to-primitive"),u=t("./_fails"),c=t("./_object-gopn").f,l=t("./_object-gopd").f,h=t("./_object-dp").f,f=t("./_string-trim").trim,p=n.Number,b=p,d=p.prototype,y="Number"==o(t("./_object-create")(d)),v="trim"in String.prototype,m=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){var r,n,i,o=(e=v?e.trim():f(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=e.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+e}for(var s,u=e.slice(2),c=0,l=u.length;c<l;c++)if((s=u.charCodeAt(c))<48||s>i)return NaN;return parseInt(u,n)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof p&&(y?u(function(){d.valueOf.call(r)}):"Number"!=o(r))?s(new b(m(e)),r,p):m(e)};for(var g,_=t("./_descriptors")?c(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)i(b,g=_[w])&&!i(p,g)&&h(p,g,l(b,g));p.prototype=d,d.constructor=p,t("./_redefine")(n,"Number",p)}},{"./_cof":34,"./_descriptors":38,"./_fails":42,"./_global":43,"./_has":44,"./_inherit-if-required":48,"./_object-create":54,"./_object-dp":55,"./_object-gopd":57,"./_object-gopn":58,"./_redefine":65,"./_string-trim":70,"./_to-primitive":77}],85:[function(t,e,r){var n=t("./_export");n(n.S+n.F,"Object",{assign:t("./_object-assign")})},{"./_export":41,"./_object-assign":53}],86:[function(t,e,r){var n=t("./_export");n(n.S+n.F*!t("./_descriptors"),"Object",{defineProperty:t("./_object-dp").f})},{"./_descriptors":38,"./_export":41,"./_object-dp":55}],87:[function(t,e,r){var n=t("./_to-object"),i=t("./_object-keys");t("./_object-sap")("keys",function(){return function(t){return i(n(t))}})},{"./_object-keys":61,"./_object-sap":63,"./_to-object":76}],88:[function(t,e,r){"use strict";e.exports=function(){var t=document.createElement("div");return t.setAttribute("data-a-b","c"),Boolean(t.dataset&&"c"===t.dataset.aB)}()?function(t){return t.dataset}:function(t){for(var e={},r=t.attributes,n=0,i=r.length;n<i;n++){var o=r[n];if(o){var s=o.name;if(0===s.indexOf("data-")){var a=s.slice(5).replace(/-./g,function(t){return t.charAt(1).toUpperCase()}),u=o.value;Object.defineProperty(e,a,{enumerable:!0,get:function(){return this.value}.bind({value:u||""}),set:function(t,e){void 0===e?this.removeAttribute(t):this.setAttribute(t,e)}.bind(t,s)})}}}return e}},{}],89:[function(t,e,r){"use strict";e.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},{}],90:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(e,r,n){t.call(this),this.parent=e,this.outerValue=r,this.outerIndex=n,this.index=0}return n(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(t("./Subscriber").Subscriber);r.InnerSubscriber=i},{"./Subscriber":97}],91:[function(t,e,r){"use strict";var n=t("./util/root"),i=t("./util/toSubscriber"),o=t("./symbol/observable"),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,o=i.toSubscriber(t,e,r);if(n?n.call(o,this.source):o.add(this.source?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var r=this;if(e||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?e=n.root.Rx.config.Promise:n.root.Promise&&(e=n.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,n){var i;i=r.subscribe(function(e){if(i)try{t(e)}catch(t){n(t),i.unsubscribe()}else t(e)},n,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.observable]=function(){return this},t.create=function(e){return new t(e)},t}();r.Observable=s},{"./symbol/observable":130,"./util/root":143,"./util/toSubscriber":145}],92:[function(t,e,r){"use strict";r.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},{}],93:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(){t.apply(this,arguments)}return n(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(t("./Subscriber").Subscriber);r.OuterSubscriber=i},{"./Subscriber":97}],94:[function(t,e,r){"use strict";var n=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=Date.now?Date.now:function(){return+new Date},t}();r.Scheduler=n},{}],95:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./Observable"),o=t("./Subscriber"),s=t("./Subscription"),a=t("./util/ObjectUnsubscribedError"),u=t("./SubjectSubscription"),c=t("./symbol/rxSubscriber"),l=function(t){function e(e){t.call(this,e),this.destination=e}return n(e,t),e}(o.Subscriber);r.SubjectSubscriber=l;var h=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return n(e,t),e.prototype[c.rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new f(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),n=0;n<e;n++)r[n].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new i.Observable;return t.source=this,t},e.create=function(t,e){return new f(t,e)},e}(i.Observable);r.Subject=h;var f=function(t){function e(e,r){t.call(this),this.destination=e,this.source=r}return n(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.Subscription.EMPTY},e}(h);r.AnonymousSubject=f},{"./Observable":91,"./SubjectSubscription":96,"./Subscriber":97,"./Subscription":98,"./symbol/rxSubscriber":131,"./util/ObjectUnsubscribedError":132}],96:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(e,r){t.call(this),this.subject=e,this.subscriber=r,this.closed=!1}return n(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(t("./Subscription").Subscription);r.SubjectSubscription=i},{"./Subscription":98}],97:[function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./util/isFunction"),s=t("./Subscription"),a=t("./Observer"),u=t("./symbol/rxSubscriber"),c=function(t){function e(r,i,o){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a.empty;break;case 1:if(!r){this.destination=a.empty;break}if("object"===(void 0===r?"undefined":n(r))){r instanceof e?(this.destination=r,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new l(this,r));break}default:this.syncErrorThrowable=!0,this.destination=new l(this,r,i,o)}}return i(e,t),e.prototype[u.rxSubscriber]=function(){return this},e.create=function(t,r,n){var i=new e(t,r,n);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,r=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=r,this},e}(s.Subscription);r.Subscriber=c;var l=function(t){function e(e,r,n,i){t.call(this),this._parentSubscriber=e;var s,u=this;o.isFunction(r)?s=r:r&&(s=r.next,n=r.error,i=r.complete,r!==a.empty&&(u=Object.create(r),o.isFunction(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=s,this._error=n,this._complete=i}return i(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,r){try{e.call(this._context,r)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(c)},{"./Observer":92,"./Subscription":98,"./symbol/rxSubscriber":131,"./util/isFunction":138}],98:[function(t,e,r){"use strict";function n(t){return t.reduce(function(t,e){return t.concat(e instanceof l.UnsubscriptionError?e.errors:e)},[])}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=t("./util/isArray"),s=t("./util/isObject"),a=t("./util/isFunction"),u=t("./util/tryCatch"),c=t("./util/errorObject"),l=t("./util/UnsubscriptionError"),h=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var r=this,i=r._parent,h=r._parents,f=r._unsubscribe,p=r._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var b=-1,d=h?h.length:0;i;)i.remove(this),i=++b<d&&h[b]||null;if(a.isFunction(f)&&(v=u.tryCatch(f).call(this))===c.errorObject&&(e=!0,t=t||(c.errorObject.e instanceof l.UnsubscriptionError?n(c.errorObject.e.errors):[c.errorObject.e])),o.isArray(p))for(b=-1,d=p.length;++b<d;){var y=p[b];if(s.isObject(y)){var v=u.tryCatch(y.unsubscribe).call(y);if(v===c.errorObject){e=!0,t=t||[];var m=c.errorObject.e;m instanceof l.UnsubscriptionError?t=t.concat(n(m.errors)):t.push(m)}}}if(e)throw new l.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var r=e;switch(void 0===e?"undefined":i(e)){case"function":r=new t(e);case"object":if(r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if("function"!=typeof r._addParent){var n=r;(r=new t)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(r),r._addParent(this),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.prototype._addParent=function(t){var e=this,r=e._parent,n=e._parents;r&&r!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();r.Subscription=h},{"./util/UnsubscriptionError":133,"./util/errorObject":134,"./util/isArray":135,"./util/isFunction":138,"./util/isObject":140,"./util/tryCatch":146}],99:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("./ScalarObservable"),s=t("./EmptyObservable"),a=t("../util/isScheduler"),u=function(t){function e(e,r){t.call(this),this.array=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(e,t),e.create=function(t,r){return new e(t,r)},e.of=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];var n=t[t.length-1];a.isScheduler(n)?t.pop():n=null;var i=t.length;return i>1?new e(t,n):1===i?new o.ScalarObservable(t[0],n):new s.EmptyObservable(n)},e.dispatch=function(t){var e=t.array,r=t.index,n=t.count,i=t.subscriber;r>=n?i.complete():(i.next(e[r]),i.closed||(t.index=r+1,this.schedule(t)))},e.prototype._subscribe=function(t){var r=this.array,n=r.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:r,index:0,count:n,subscriber:t});for(var o=0;o<n&&!t.closed;o++)t.next(r[o]);t.complete()},e}(i.Observable);r.ArrayObservable=u},{"../Observable":91,"../util/isScheduler":142,"./EmptyObservable":101,"./ScalarObservable":103}],100:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subject"),o=t("../Observable"),s=t("../Subscriber"),a=t("../Subscription"),u=function(t){function e(e,r){t.call(this),this.source=e,this.subjectFactory=r,this._refCount=0,this._isComplete=!1}return n(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new a.Subscription).add(this.source.subscribe(new l(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return this.lift(new h(this))},e}(o.Observable);r.ConnectableObservable=u;var c=u.prototype;r.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:c._subscribe},_isComplete:{value:c._isComplete,writable:!0},getSubject:{value:c.getSubject},connect:{value:c.connect},refCount:{value:c.refCount}};var l=function(t){function e(e,r){t.call(this,e),this.connectable=r}return n(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.SubjectSubscriber),h=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new f(t,r),i=e.subscribe(n);return n.closed||(n.connection=r.connect()),i},t}(),f=function(t){function e(e,r){t.call(this,e),this.connectable=r}return n(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},e}(s.Subscriber)},{"../Observable":91,"../Subject":95,"../Subscriber":97,"../Subscription":98}],101:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(e){t.call(this),this.scheduler=e}return n(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(t("../Observable").Observable);r.EmptyObservable=i},{"../Observable":91}],102:[function(t,e,r){"use strict";function n(t){return!!t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}function i(t){return!!t&&"function"==typeof t.on&&"function"==typeof t.off}function o(t){return!!t&&"[object NodeList]"===b.call(t)}function s(t){return!!t&&"[object HTMLCollection]"===b.call(t)}function a(t){return!!t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}var u=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},c=t("../Observable"),l=t("../util/tryCatch"),h=t("../util/isFunction"),f=t("../util/errorObject"),p=t("../Subscription"),b=Object.prototype.toString,d=function(t){function e(e,r,n,i){t.call(this),this.sourceObj=e,this.eventName=r,this.selector=n,this.options=i}return u(e,t),e.create=function(t,r,n,i){return h.isFunction(n)&&(i=n,n=void 0),new e(t,r,i,n)},e.setupSubscription=function(t,r,u,c,l){var h;if(o(t)||s(t))for(var f=0,b=t.length;f<b;f++)e.setupSubscription(t[f],r,u,c,l);else if(a(t)){var d=t;t.addEventListener(r,u,l),h=function(){return d.removeEventListener(r,u)}}else if(i(t)){var y=t;t.on(r,u),h=function(){return y.off(r,u)}}else{if(!n(t))throw new TypeError("Invalid event target");var v=t;t.addListener(r,u),h=function(){return v.removeListener(r,u)}}c.add(new p.Subscription(h))},e.prototype._subscribe=function(t){var r=this.sourceObj,n=this.eventName,i=this.options,o=this.selector,s=o?function(){for(var e=[],r=0;r<arguments.length;r++)e[r-0]=arguments[r];var n=l.tryCatch(o).apply(void 0,e);n===f.errorObject?t.error(f.errorObject.e):t.next(n)}:function(e){return t.next(e)};e.setupSubscription(r,n,s,t,i)},e}(c.Observable);r.FromEventObservable=d},{"../Observable":91,"../Subscription":98,"../util/errorObject":134,"../util/isFunction":138,"../util/tryCatch":146}],103:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(e,r){t.call(this),this.value=e,this.scheduler=r,this._isScalar=!0,r&&(this._isScalar=!1)}return n(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.done,r=t.value,n=t.subscriber;e?n.complete():(n.next(r),n.closed||(t.done=!0,this.schedule(t)))},e.prototype._subscribe=function(t){var r=this.value,n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{done:!1,value:r,subscriber:t});t.next(r),t.closed||t.complete()},e}(t("../Observable").Observable);r.ScalarObservable=i},{"../Observable":91}],104:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/isNumeric"),o=t("../Observable"),s=t("../scheduler/async"),a=t("../util/isScheduler"),u=t("../util/isDate"),c=function(t){function e(e,r,n){void 0===e&&(e=0),t.call(this),this.period=-1,this.dueTime=0,i.isNumeric(r)?this.period=Number(r)<1&&1||Number(r):a.isScheduler(r)&&(n=r),a.isScheduler(n)||(n=s.async),this.scheduler=n,this.dueTime=u.isDate(e)?+e-this.scheduler.now():e}return n(e,t),e.create=function(t,r,n){return void 0===t&&(t=0),new e(t,r,n)},e.dispatch=function(t){var e=t.index,r=t.period,n=t.subscriber,i=this;if(n.next(e),!n.closed){if(-1===r)return n.complete();t.index=e+1,i.schedule(t,r)}},e.prototype._subscribe=function(t){var r=this,n=r.period,i=r.dueTime;return r.scheduler.schedule(e.dispatch,i,{index:0,period:n,subscriber:t})},e}(o.Observable);r.TimerObservable=c},{"../Observable":91,"../scheduler/async":128,"../util/isDate":137,"../util/isNumeric":139,"../util/isScheduler":142}],105:[function(t,e,r){"use strict";var n=t("./EmptyObservable");r.empty=n.EmptyObservable.create},{"./EmptyObservable":101}],106:[function(t,e,r){"use strict";var n=t("./FromEventObservable");r.fromEvent=n.FromEventObservable.create},{"./FromEventObservable":102}],107:[function(t,e,r){"use strict";var n=t("./TimerObservable");r.timer=n.TimerObservable.create},{"./TimerObservable":104}],108:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),o=t("../util/subscribeToResult");r._catch=function(t){var e=new s(t),r=this.lift(e);return e.caught=r};var s=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.selector,this.caught))},t}(),a=function(t){function e(e,r,n){t.call(this,e),this.selector=r,this.caught=n}return n(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=void 0;try{r=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(o.subscribeToResult(this,r))}},e}(i.OuterSubscriber)},{"../OuterSubscriber":93,"../util/subscribeToResult":144}],109:[function(t,e,r){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=null,n=t;return o.isScheduler(n[t.length-1])&&(r=n.pop()),null===r&&1===t.length&&t[0]instanceof i.Observable?t[0]:new s.ArrayObservable(t,r).lift(new a.MergeAllOperator(1))}var i=t("../Observable"),o=t("../util/isScheduler"),s=t("../observable/ArrayObservable"),a=t("./mergeAll");r.concat=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(n.apply(void 0,[this].concat(t)))},r.concatStatic=n},{"../Observable":91,"../observable/ArrayObservable":99,"../util/isScheduler":142,"./mergeAll":116}],110:[function(t,e,r){"use strict";function n(t){t.debouncedNext()}var i=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../scheduler/async");r.debounceTime=function(t,e){return void 0===e&&(e=s.async),this.lift(new a(t,e))};var a=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.dueTime,this.scheduler))},t}(),u=function(t){function e(e,r,n){t.call(this,e),this.dueTime=r,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return i(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(n,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(o.Subscriber)},{"../Subscriber":97,"../scheduler/async":128}],111:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");r._do=function(t,e,r){return this.lift(new o(t,e,r))};var o=function(){function t(t,e,r){this.nextOrObserver=t,this.error=e,this.complete=r}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.nextOrObserver,this.error,this.complete))},t}(),s=function(t){function e(e,r,n,o){t.call(this,e);var s=new i.Subscriber(r,n,o);s.syncErrorThrowable=!0,this.add(s),this.safeSubscriber=s}return n(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(i.Subscriber)},{"../Subscriber":97}],112:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),o=t("../util/subscribeToResult");r.exhaustMap=function(t,e){return this.lift(new s(t,e))};var s=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.resultSelector))},t}(),a=function(t){function e(e,r,n){t.call(this,e),this.project=r,this.resultSelector=n,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}return n(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e=this.index++,r=this.destination;try{var n=this.project(t,e);this.hasSubscription=!0,this.add(o.subscribeToResult(this,n,t,e))}catch(t){r.error(t)}},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyNext=function(t,e,r,n,i){var o=this,s=o.resultSelector,a=o.destination;s?this.trySelectResult(t,e,r,n):a.next(e)},e.prototype.trySelectResult=function(t,e,r,n){var i=this,o=i.resultSelector,s=i.destination;try{var a=o(t,e,r,n);s.next(a)}catch(t){s.error(t)}},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber)},{"../OuterSubscriber":93,"../util/subscribeToResult":144}],113:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");r.filter=function(t,e){return this.lift(new o(t,e))};var o=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,r,n){t.call(this,e),this.predicate=r,this.thisArg=n,this.count=0,this.predicate=r}return n(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.Subscriber)},{"../Subscriber":97}],114:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../Subscription");r._finally=function(t){return this.lift(new s(t))};var s=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.callback))},t}(),a=function(t){function e(e,r){t.call(this,e),this.add(new o.Subscription(r))}return n(e,t),e}(i.Subscriber)},{"../Subscriber":97,"../Subscription":98}],115:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");r.map=function(t,e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new o(t,e))};var o=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}();r.MapOperator=o;var s=function(t){function e(e,r,n){t.call(this,e),this.project=r,this.count=0,this.thisArg=n||this}return n(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.Subscriber)},{"../Subscriber":97}],116:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),o=t("../util/subscribeToResult");r.mergeAll=function(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),this.lift(new s(t))};var s=function(){function t(t){this.concurrent=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.concurrent))},t}();r.MergeAllOperator=s;var a=function(t){function e(e,r){t.call(this,e),this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0}return n(e,t),e.prototype._next=function(t){this.active<this.concurrent?(this.active++,this.add(o.subscribeToResult(this,t))):this.buffer.push(t)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber);r.MergeAllSubscriber=a},{"../OuterSubscriber":93,"../util/subscribeToResult":144}],117:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/subscribeToResult"),o=t("../OuterSubscriber");r.mergeMap=function(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"number"==typeof e&&(r=e,e=null),this.lift(new s(t,e,r))};var s=function(){function t(t,e,r){void 0===r&&(r=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=r}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.resultSelector,this.concurrent))},t}();r.MergeMapOperator=s;var a=function(t){function e(e,r,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.project=r,this.resultSelector=n,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return n(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,r)},e.prototype._innerSub=function(t,e,r){this.add(i.subscribeToResult(this,t,e,r))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r,n,i){this.resultSelector?this._notifyResultSelector(t,e,r,n):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,r,n){var i;try{i=this.resultSelector(t,e,r,n)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber);r.MergeMapSubscriber=a},{"../OuterSubscriber":93,"../util/subscribeToResult":144}],118:[function(t,e,r){"use strict";var n=t("../observable/ConnectableObservable");r.multicast=function(t,e){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return this.lift(new i(r,e));var o=Object.create(this,n.connectableObservableDescriptor);return o.source=this,o.subjectFactory=r,o};var i=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var r=this.selector,n=this.subjectFactory(),i=r(n).subscribe(t);return i.add(e.subscribe(n)),i},t}();r.MulticastOperator=i},{"../observable/ConnectableObservable":100}],119:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");r.pairwise=function(){return this.lift(new o)};var o=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){t.call(this,e),this.hasPrev=!1}return n(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t},e}(i.Subscriber)},{"../Subscriber":97}],120:[function(t,e,r){"use strict";function n(){return new o.Subject}var i=t("./multicast"),o=t("../Subject");r.share=function(){return i.multicast.call(this,n).refCount()}},{"../Subject":95,"./multicast":118}],121:[function(t,e,r){"use strict";var n=t("../observable/ArrayObservable"),i=t("../observable/ScalarObservable"),o=t("../observable/EmptyObservable"),s=t("./concat"),a=t("../util/isScheduler");r.startWith=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=t[t.length-1];a.isScheduler(r)?t.pop():r=null;var u=t.length;return 1===u?s.concatStatic(new i.ScalarObservable(t[0],r),this):u>1?s.concatStatic(new n.ArrayObservable(t,r),this):s.concatStatic(new o.EmptyObservable(r),this)}},{"../observable/ArrayObservable":99,"../observable/EmptyObservable":101,"../observable/ScalarObservable":103,"../util/isScheduler":142,"./concat":109}],122:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),o=t("../util/subscribeToResult");r.switchMap=function(t,e){return this.lift(new s(t,e))};var s=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.resultSelector))},t}(),a=function(t){function e(e,r,n){t.call(this,e),this.project=r,this.resultSelector=n,this.index=0}return n(e,t),e.prototype._next=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,r)},e.prototype._innerSub=function(t,e,r){var n=this.innerSubscription;n&&n.unsubscribe(),this.add(this.innerSubscription=o.subscribeToResult(this,t,e,r))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,r,n,i){this.resultSelector?this._tryNotifyNext(t,e,r,n):this.destination.next(e)},e.prototype._tryNotifyNext=function(t,e,r,n){var i;try{i=this.resultSelector(t,e,r,n)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e}(i.OuterSubscriber)},{"../OuterSubscriber":93,"../util/subscribeToResult":144}],123:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),o=t("../util/subscribeToResult");r.takeUntil=function(t){return this.lift(new s(t))};var s=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.notifier))},t}(),a=function(t){function e(e,r){t.call(this,e),this.notifier=r,this.add(o.subscribeToResult(this,r))}return n(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.complete()},e.prototype.notifyComplete=function(){},e}(i.OuterSubscriber)},{"../OuterSubscriber":93,"../util/subscribeToResult":144}],124:[function(t,e,r){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=t[t.length-1];return"function"==typeof r&&t.pop(),new o.ArrayObservable(t).lift(new h(r))}var i=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../observable/ArrayObservable"),s=t("../util/isArray"),a=t("../Subscriber"),u=t("../OuterSubscriber"),c=t("../util/subscribeToResult"),l=t("../symbol/iterator");r.zipProto=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(n.apply(void 0,[this].concat(t)))},r.zipStatic=n;var h=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.project))},t}();r.ZipOperator=h;var f=function(t){function e(e,r,n){void 0===n&&(n=Object.create(null)),t.call(this,e),this.iterators=[],this.active=0,this.project="function"==typeof r?r:null,this.values=n}return i(e,t),e.prototype._next=function(t){var e=this.iterators;s.isArray(t)?e.push(new b(t)):"function"==typeof t[l.iterator]?e.push(new p(t[l.iterator]())):e.push(new d(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(0!==e){this.active=e;for(var r=0;r<e;r++){var n=t[r];n.stillUnsubscribed?this.add(n.subscribe(n,r)):this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){0===--this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,r=this.destination,n=0;n<e;n++)if("function"==typeof(s=t[n]).hasValue&&!s.hasValue())return;for(var i=!1,o=[],n=0;n<e;n++){var s=t[n],a=s.next();if(s.hasCompleted()&&(i=!0),a.done)return void r.complete();o.push(a.value)}this.project?this._tryProject(o):r.next(o),i&&r.complete()},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(a.Subscriber);r.ZipSubscriber=f;var p=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}(),b=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[l.iterator]=function(){return this},t.prototype.next=function(t){var e=this.index++,r=this.array;return e<this.length?{value:r[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),d=function(t){function e(e,r,n){t.call(this,e),this.parent=r,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return i(e,t),e.prototype[l.iterator]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,r,n,i){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return c.subscribeToResult(this,this.observable,this,e)},e}(u.OuterSubscriber)},{"../OuterSubscriber":93,"../Subscriber":97,"../observable/ArrayObservable":99,"../symbol/iterator":129,"../util/isArray":135,"../util/subscribeToResult":144}],125:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(e,r){t.call(this)}return n(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(t("../Subscription").Subscription);r.Action=i},{"../Subscription":98}],126:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/root"),o=function(t){function e(e,r){t.call(this,e,r),this.scheduler=e,this.work=r,this.pending=!1}return n(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),i.root.setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){return void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending?e:i.root.clearInterval(e)&&void 0||void 0},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||new Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(t("./Action").Action);r.AsyncAction=o},{"../util/root":143,"./Action":125}],127:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return n(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var r;this.active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}}},e}(t("../Scheduler").Scheduler);r.AsyncScheduler=i},{"../Scheduler":94}],128:[function(t,e,r){"use strict";var n=t("./AsyncAction"),i=t("./AsyncScheduler");r.async=new i.AsyncScheduler(n.AsyncAction)},{"./AsyncAction":126,"./AsyncScheduler":127}],129:[function(t,e,r){"use strict";function n(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var r=t.Set;if(r&&"function"==typeof(new r)["@@iterator"])return"@@iterator";var n=t.Map;if(n)for(var i=Object.getOwnPropertyNames(n.prototype),o=0;o<i.length;++o){var s=i[o];if("entries"!==s&&"size"!==s&&n.prototype[s]===n.prototype.entries)return s}return"@@iterator"}var i=t("../util/root");r.symbolIteratorPonyfill=n,r.iterator=n(i.root),r.$$iterator=r.iterator},{"../util/root":143}],130:[function(t,e,r){"use strict";function n(t){var e,r=t.Symbol;return"function"==typeof r?r.observable?e=r.observable:(e=r("observable"),r.observable=e):e="@@observable",e}var i=t("../util/root");r.getSymbolObservable=n,r.observable=n(i.root),r.$$observable=r.observable},{"../util/root":143}],131:[function(t,e,r){"use strict";var n=t("../util/root").root.Symbol;r.rxSubscriber="function"==typeof n&&"function"==typeof n.for?n.for("rxSubscriber"):"@@rxSubscriber",r.$$rxSubscriber=r.rxSubscriber},{"../util/root":143}],132:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return n(e,t),e}(Error);r.ObjectUnsubscribedError=i},{}],133:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(e){t.call(this),this.errors=e;var r=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=r.name="UnsubscriptionError",this.stack=r.stack,this.message=r.message}return n(e,t),e}(Error);r.UnsubscriptionError=i},{}],134:[function(t,e,r){"use strict";r.errorObject={e:{}}},{}],135:[function(t,e,r){"use strict";r.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},{}],136:[function(t,e,r){"use strict";r.isArrayLike=function(t){return t&&"number"==typeof t.length}},{}],137:[function(t,e,r){"use strict";r.isDate=function(t){return t instanceof Date&&!isNaN(+t)}},{}],138:[function(t,e,r){"use strict";r.isFunction=function(t){return"function"==typeof t}},{}],139:[function(t,e,r){"use strict";var n=t("../util/isArray");r.isNumeric=function(t){return!n.isArray(t)&&t-parseFloat(t)+1>=0}},{"../util/isArray":135}],140:[function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};r.isObject=function(t){return null!=t&&"object"===(void 0===t?"undefined":n(t))}},{}],141:[function(t,e,r){"use strict";r.isPromise=function(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}},{}],142:[function(t,e,r){"use strict";r.isScheduler=function(t){return t&&"function"==typeof t.schedule}},{}],143:[function(t,e,r){(function(t){"use strict";var e="undefined"!=typeof window&&window,n="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=void 0!==t&&t,o=e||i||n;r.root=o,function(){if(!o)throw new Error("RxJS could not find any global context (window, self, global)")}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],144:[function(t,e,r){"use strict";var n=t("./root"),i=t("./isArrayLike"),o=t("./isPromise"),s=t("./isObject"),a=t("../Observable"),u=t("../symbol/iterator"),c=t("../InnerSubscriber"),l=t("../symbol/observable");r.subscribeToResult=function(t,e,r,h){var f=new c.InnerSubscriber(t,r,h);if(f.closed)return null;if(e instanceof a.Observable)return e._isScalar?(f.next(e.value),f.complete(),null):e.subscribe(f);if(i.isArrayLike(e)){for(var p=0,b=e.length;p<b&&!f.closed;p++)f.next(e[p]);f.closed||f.complete()}else{if(o.isPromise(e))return e.then(function(t){f.closed||(f.next(t),f.complete())},function(t){return f.error(t)}).then(null,function(t){n.root.setTimeout(function(){throw t})}),f;if(e&&"function"==typeof e[u.iterator])for(var d=e[u.iterator]();;){var y=d.next();if(y.done){f.complete();break}if(f.next(y.value),f.closed)break}else if(e&&"function"==typeof e[l.observable]){var v=e[l.observable]();if("function"==typeof v.subscribe)return v.subscribe(new c.InnerSubscriber(t,r,h));f.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var m="You provided "+(s.isObject(e)?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";f.error(new TypeError(m))}}return null}},{"../InnerSubscriber":90,"../Observable":91,"../symbol/iterator":129,"../symbol/observable":130,"./isArrayLike":136,"./isObject":140,"./isPromise":141,"./root":143}],145:[function(t,e,r){"use strict";var n=t("../Subscriber"),i=t("../symbol/rxSubscriber"),o=t("../Observer");r.toSubscriber=function(t,e,r){if(t){if(t instanceof n.Subscriber)return t;if(t[i.rxSubscriber])return t[i.rxSubscriber]()}return t||e||r?new n.Subscriber(t,e,r):new n.Subscriber(o.empty)}},{"../Observer":92,"../Subscriber":97,"../symbol/rxSubscriber":131}],146:[function(t,e,r){"use strict";function n(){try{return i.apply(this,arguments)}catch(t){return o.errorObject.e=t,o.errorObject}}var i,o=t("./errorObject");r.tryCatch=function(t){return i=t,n}},{"./errorObject":134}],147:[function(t,e,r){"use strict";var n=t("is-arrayish"),i=Array.prototype.concat,o=Array.prototype.slice,s=e.exports=function(t){for(var e=[],r=0,s=t.length;r<s;r++){var a=t[r];n(a)?e=i.call(e,o.call(a)):e.push(a)}return e};s.wrap=function(t){return function(){return t(s(arguments))}}},{"is-arrayish":89}],148:[function(t,e,r){!function(t,e){var r={},n={};!function(t,e){function r(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=m}function n(){return t.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(e,n,i){var o=new r;return n&&(o.fill="both",o.duration="auto"),"number"!=typeof e||isNaN(e)?void 0!==e&&Object.getOwnPropertyNames(e).forEach(function(r){if("auto"!=e[r]){if(("number"==typeof o[r]||"duration"==r)&&("number"!=typeof e[r]||isNaN(e[r])))return;if("fill"==r&&-1==y.indexOf(e[r]))return;if("direction"==r&&-1==v.indexOf(e[r]))return;if("playbackRate"==r&&1!==e[r]&&t.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[r]=e[r]}}):o.duration=e,o}function o(t,e,r,n){return t<0||t>1||r<0||r>1?m:function(i){function o(t,e,r){return 3*t*(1-r)*(1-r)*r+3*e*(1-r)*r*r+r*r*r}if(i<=0){var s=0;return t>0?s=e/t:!e&&r>0&&(s=n/r),s*i}if(i>=1){var a=0;return r<1?a=(n-1)/(r-1):1==r&&t<1&&(a=(e-1)/(t-1)),1+a*(i-1)}for(var u=0,c=1;u<c;){var l=(u+c)/2,h=o(t,r,l);if(Math.abs(i-h)<1e-5)return o(e,n,l);h<i?u=l:c=l}return o(e,n,l)}}function s(t,e){return function(r){if(r>=1)return 1;var n=1/t;return(r+=e*n)-r%n}}function a(t){S||(S=document.createElement("div").style),S.animationTimingFunction="",S.animationTimingFunction=t;var e=S.animationTimingFunction;if(""==e&&n())throw new TypeError(t+" is not a valid value for easing");return e}function u(t){if("linear"==t)return m;var e=j.exec(t);if(e)return o.apply(this,e.slice(1).map(Number));var r=k.exec(t);return r?s(Number(r[1]),{start:g,middle:_,end:w}[r[2]]):O[t]||m}function c(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}function l(t,e,r){if(null==e)return E;var n=r.delay+t+r.endDelay;return e<Math.min(r.delay,n)?T:e>=Math.min(r.delay+t,n)?M:P}function h(t,e,r,n,i){switch(n){case T:return"backwards"==e||"both"==e?0:null;case P:return r-i;case M:return"forwards"==e||"both"==e?t:null;case E:return null}}function f(t,e,r,n,i){var o=i;return 0===t?e!==T&&(o+=r):o+=n/t,o}function p(t,e,r,n,i,o){var s=t===1/0?e%1:t%1;return 0!==s||r!==M||0===n||0===i&&0!==o||(s=1),s}function b(t,e,r,n){return t===M&&e===1/0?1/0:1===r?Math.floor(n)-1:Math.floor(n)}function d(t,e,r){var n=t;if("normal"!==t&&"reverse"!==t){var i=e;"alternate-reverse"===t&&(i+=1),n="normal",i!==1/0&&i%2!=0&&(n="reverse")}return"normal"===n?r:1-r}var y="backwards|forwards|both|none".split("|"),v="reverse|alternate|alternate-reverse".split("|"),m=function(t){return t};r.prototype={_setMember:function(e,r){this["_"+e]=r,this._effect&&(this._effect._timingInput[e]=r,this._effect._timing=t.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=t.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(t){this._setMember("delay",t)},get delay(){return this._delay},set endDelay(t){this._setMember("endDelay",t)},get endDelay(){return this._endDelay},set fill(t){this._setMember("fill",t)},get fill(){return this._fill},set iterationStart(t){if((isNaN(t)||t<0)&&n())throw new TypeError("iterationStart must be a non-negative number, received: "+timing.iterationStart);this._setMember("iterationStart",t)},get iterationStart(){return this._iterationStart},set duration(t){if("auto"!=t&&(isNaN(t)||t<0)&&n())throw new TypeError("duration must be non-negative or auto, received: "+t);this._setMember("duration",t)},get duration(){return this._duration},set direction(t){this._setMember("direction",t)},get direction(){return this._direction},set easing(t){this._easingFunction=u(a(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&n())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var g=1,_=.5,w=0,O={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":s(1,g),"step-middle":s(1,_),"step-end":s(1,w)},S=null,x="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",j=new RegExp("cubic-bezier\\("+x+","+x+","+x+","+x+"\\)"),k=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,E=0,T=1,M=2,P=3;t.cloneTimingInput=function(t){if("number"==typeof t)return t;var e={};for(var r in t)e[r]=t[r];return e},t.makeTiming=i,t.numericTimingToObject=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t},t.normalizeTimingInput=function(e,r){return e=t.numericTimingToObject(e),i(e,r)},t.calculateActiveDuration=function(t){return Math.abs(c(t)/t.playbackRate)},t.calculateIterationProgress=function(t,e,r){var n=l(t,e,r),i=h(t,r.fill,e,n,r.delay);if(null===i)return null;var o=f(r.duration,n,r.iterations,i,r.iterationStart),s=p(o,r.iterationStart,n,r.iterations,i,r.duration),a=b(n,r.iterations,s,o),u=d(r.direction,a,s);return r._easingFunction(u)},t.calculatePhase=l,t.normalizeEasing=a,t.parseEasingFunction=u}(r),function(t,e){function r(t,e){return t in c?c[t][e]||e:e}function n(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}function i(t,e,i){if(!n(t)){var o=s[t];if(o){a.style[t]=e;for(var u in o){var c=o[u],l=a.style[c];i[c]=r(c,l)}}else i[t]=r(t,e)}}function o(t){var e=[];for(var r in t)if(!(r in["easing","offset","composite"])){var n=t[r];Array.isArray(n)||(n=[n]);for(var i,o=n.length,s=0;s<o;s++)i={},i.offset="offset"in t?t.offset:1==o?1:s/(o-1),"easing"in t&&(i.easing=t.easing),"composite"in t&&(i.composite=t.composite),i[r]=n[s],e.push(i)}return e.sort(function(t,e){return t.offset-e.offset}),e}var s={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},a=document.createElementNS("http://www.w3.org/1999/xhtml","div"),u={thin:"1px",medium:"3px",thick:"5px"},c={borderBottomWidth:u,borderLeftWidth:u,borderRightWidth:u,borderTopWidth:u,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:u,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};t.convertToArrayForm=o,t.normalizeKeyframes=function(e){if(null==e)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||(e=o(e));for(var r=e.map(function(e){var r={};for(var n in e){var o=e[n];if("offset"==n){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==n){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==n?t.normalizeEasing(o):""+o;i(n,o,r)}return void 0==r.offset&&(r.offset=null),void 0==r.easing&&(r.easing="linear"),r}),n=!0,s=-1/0,a=0;a<r.length;a++){var u=r[a].offset;if(null!=u){if(u<s)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");s=u}else n=!1}return r=r.filter(function(t){return t.offset>=0&&t.offset<=1}),n||function(){var t=r.length;null==r[t-1].offset&&(r[t-1].offset=1),t>1&&null==r[0].offset&&(r[0].offset=0);for(var e=0,n=r[0].offset,i=1;i<t;i++){var o=r[i].offset;if(null!=o){for(var s=1;s<i-e;s++)r[e+s].offset=n+(o-n)*s/(i-e);e=i,n=o}}}(),r}}(r),function(t){var e={};t.isDeprecated=function(t,r,n,i){var o=i?"are":"is",s=new Date,a=new Date(r);return a.setMonth(a.getMonth()+3),!(s<a&&(t in e||console.warn("Web Animations: "+t+" "+o+" deprecated and will stop working on "+a.toDateString()+". "+n),e[t]=!0,1))},t.deprecated=function(e,r,n,i){var o=i?"are":"is";if(t.isDeprecated(e,r,n,i))throw new Error(e+" "+o+" no longer supported. "+n)}}(r),function(){if(document.documentElement.animate){var t=document.documentElement.animate([],0),e=!0;if(t&&(e=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach(function(r){void 0===t[r]&&(e=!0)})),!e)return}!function(t,e,r){function n(t){for(var e={},r=0;r<t.length;r++)for(var n in t[r])if("offset"!=n&&"easing"!=n&&"composite"!=n){var i={offset:t[r].offset,easing:t[r].easing,value:t[r][n]};e[n]=e[n]||[],e[n].push(i)}for(var o in e){var s=e[o];if(0!=s[0].offset||1!=s[s.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return e}function i(r){var n=[];for(var i in r)for(var o=r[i],s=0;s<o.length-1;s++){var a=s,u=s+1,c=o[a].offset,l=o[u].offset,h=c,f=l;0==s&&(h=-1/0,0==l&&(u=a)),s==o.length-2&&(f=1/0,1==c&&(a=u)),n.push({applyFrom:h,applyTo:f,startOffset:o[a].offset,endOffset:o[u].offset,easingFunction:t.parseEasingFunction(o[a].easing),property:i,interpolation:e.propertyInterpolation(i,o[a].value,o[u].value)})}return n.sort(function(t,e){return t.startOffset-e.startOffset}),n}e.convertEffectInput=function(r){var o=n(t.normalizeKeyframes(r)),s=i(o);return function(t,r){if(null!=r)s.filter(function(t){return r>=t.applyFrom&&r<t.applyTo}).forEach(function(n){var i=r-n.startOffset,o=n.endOffset-n.startOffset,s=0==o?0:n.easingFunction(i/o);e.apply(t,n.property,n.interpolation(s))});else for(var n in o)"offset"!=n&&"easing"!=n&&"composite"!=n&&e.clear(t,n)}}}(r,n),function(t,e,r){function n(t){return t.replace(/-(.)/g,function(t,e){return e.toUpperCase()})}function i(t,e,r){o[r]=o[r]||[],o[r].push([t,e])}var o={};e.addPropertiesHandler=function(t,e,r){for(var o=0;o<r.length;o++)i(t,e,n(r[o]))};var s={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};e.propertyInterpolation=function(r,i,a){var u=r;/-/.test(r)&&!t.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=n(r)),"initial"!=i&&"initial"!=a||("initial"==i&&(i=s[u]),"initial"==a&&(a=s[u]));for(var c=i==a?[]:o[u],l=0;c&&l<c.length;l++){var h=c[l][0](i),f=c[l][0](a);if(void 0!==h&&void 0!==f){var p=c[l][1](h,f);if(p){var b=e.Interpolation.apply(null,p);return function(t){return 0==t?i:1==t?a:b(t)}}}}return e.Interpolation(!1,!0,function(t){return t?a:i})}}(r,n),function(t,e,r){function n(e){var r=t.calculateActiveDuration(e),n=function(n){return t.calculateIterationProgress(r,n,e)};return n._totalDuration=e.delay+r+e.endDelay,n}e.KeyframeEffect=function(r,i,o,s){var a,u=n(t.normalizeTimingInput(o)),c=e.convertEffectInput(i),l=function(){c(r,a)};return l._update=function(t){return null!==(a=u(t))},l._clear=function(){c(r,null)},l._hasSameTarget=function(t){return r===t},l._target=r,l._totalDuration=u._totalDuration,l._id=s,l}}(r,n),function(t,e){function r(t,e){return!(!e.namespaceURI||-1==e.namespaceURI.indexOf("/svg"))&&(s in t||(t[s]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(t.navigator.userAgent)),t[s])}function n(t,e,r){r.enumerable=!0,r.configurable=!0,Object.defineProperty(t,e,r)}function i(t){this._element=t,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=t.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=r(window,t),this._savedTransformAttr=null;for(var e=0;e<this._style.length;e++){var n=this._style[e];this._surrogateStyle[n]=this._style[n]}this._updateIndices()}function o(t){if(!t._webAnimationsPatchedStyle){var e=new i(t);try{n(t,"style",{get:function(){return e}})}catch(e){t.style._set=function(e,r){t.style[e]=r},t.style._clear=function(e){t.style[e]=""}}t._webAnimationsPatchedStyle=t.style}}var s="_webAnimationsUpdateSvgTransformAttr",a={cssText:1,length:1,parentRule:1},u={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},c={removeProperty:1,setProperty:1};i.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(t){for(var e={},r=0;r<this._surrogateStyle.length;r++)e[this._surrogateStyle[r]]=!0;this._surrogateStyle.cssText=t,this._updateIndices();for(r=0;r<this._surrogateStyle.length;r++)e[this._surrogateStyle[r]]=!0;for(var n in e)this._isAnimatedProperty[n]||this._style.setProperty(n,this._surrogateStyle.getPropertyValue(n))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(t){return function(){return this._surrogateStyle[t]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(e,r){this._style[e]=r,this._isAnimatedProperty[e]=!0,this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",t.transformToSvgMatrix(r)))},_clear:function(e){this._style[e]=this._surrogateStyle[e],this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[e]}};for(var l in u)i.prototype[l]=function(t,e){return function(){var r=this._surrogateStyle[t].apply(this._surrogateStyle,arguments);return e&&(this._isAnimatedProperty[arguments[0]]||this._style[t].apply(this._style,arguments),this._updateIndices()),r}}(l,l in c);for(var h in document.documentElement.style)h in a||h in u||function(t){n(i.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(h);t.apply=function(e,r,n){o(e),e.style._set(t.propertyName(r),n)},t.clear=function(e,r){e._webAnimationsPatchedStyle&&e.style._clear(t.propertyName(r))}}(n),function(t){window.Element.prototype.animate=function(e,r){var n="";return r&&r.id&&(n=r.id),t.timeline._play(t.KeyframeEffect(this,e,r,n))}}(n),function(t,e){function r(t,e,n){if("number"==typeof t&&"number"==typeof e)return t*(1-n)+e*n;if("boolean"==typeof t&&"boolean"==typeof e)return n<.5?t:e;if(t.length==e.length){for(var i=[],o=0;o<t.length;o++)i.push(r(t[o],e[o],n));return i}throw"Mismatched interpolation arguments "+t+":"+e}n.Interpolation=function(t,e,n){return function(i){return n(r(t,e,i))}}}(),function(t,e){function r(t,e,r){return Math.max(Math.min(t,r),e)}var n=function(){function t(t,e){for(var r=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],n=0;n<4;n++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)r[n][i]+=e[n][o]*t[o][i];return r}function e(t){return 0==t[0][2]&&0==t[0][3]&&0==t[1][2]&&0==t[1][3]&&0==t[2][0]&&0==t[2][1]&&1==t[2][2]&&0==t[2][3]&&0==t[3][2]&&1==t[3][3]}return function(r,n,i,o,s){for(var a=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],u=0;u<4;u++)a[u][3]=s[u];for(u=0;u<3;u++)for(d=0;d<3;d++)a[3][u]+=r[d]*a[d][u];var c=o[0],l=o[1],h=o[2],f=o[3],p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];p[0][0]=1-2*(l*l+h*h),p[0][1]=2*(c*l-h*f),p[0][2]=2*(c*h+l*f),p[1][0]=2*(c*l+h*f),p[1][1]=1-2*(c*c+h*h),p[1][2]=2*(l*h-c*f),p[2][0]=2*(c*h-l*f),p[2][1]=2*(l*h+c*f),p[2][2]=1-2*(c*c+l*l),a=t(a,p);var b=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];i[2]&&(b[2][1]=i[2],a=t(a,b)),i[1]&&(b[2][1]=0,b[2][0]=i[0],a=t(a,b)),i[0]&&(b[2][0]=0,b[1][0]=i[0],a=t(a,b));for(u=0;u<3;u++)for(var d=0;d<3;d++)a[u][d]*=n[u];return e(a)?[a[0][0],a[0][1],a[1][0],a[1][1],a[3][0],a[3][1]]:a[0].concat(a[1],a[2],a[3])}}();t.composeMatrix=n,t.quat=function(e,n,i){var o=t.dot(e,n),s=[];if(1===(o=r(o,-1,1)))s=e;else for(var a=Math.acos(o),u=1*Math.sin(i*a)/Math.sqrt(1-o*o),c=0;c<4;c++)s.push(e[c]*(Math.cos(i*a)-o*u)+n[c]*u);return s}}(n),function(t,e,r){t.sequenceNumber=0;var n=function(t,e,r){this.target=t,this.currentTime=e,this.timelineTime=r,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};e.Animation=function(e){this.id="",e&&e._id&&(this.id=e._id),this._sequenceNumber=t.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=e,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},e.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,e.timeline._animations.push(this))},_tickCurrentTime:function(t,e){t!=this._currentTime&&(this._currentTime=t,this._isFinished&&!e&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(t){t=+t,isNaN(t)||(e.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-t/this._playbackRate),this._currentTimePending=!1,this._currentTime!=t&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(t,!0),e.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(t){t=+t,isNaN(t)||this._paused||this._idle||(this._startTime=t,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),e.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(t){if(t!=this._playbackRate){var r=this.currentTime;this._playbackRate=t,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)),null!=r&&(this.currentTime=r)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,e.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._isFinished=!0,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),e.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(t,e){"function"==typeof e&&"finish"==t&&this._finishHandlers.push(e)},removeEventListener:function(t,e){if("finish"==t){var r=this._finishHandlers.indexOf(e);r>=0&&this._finishHandlers.splice(r,1)}},_fireEvents:function(t){if(this._isFinished){if(!this._finishedFlag){var e=new n(this,this._currentTime,t),r=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout(function(){r.forEach(function(t){t.call(e.target,e)})},0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(t,e){this._idle||this._paused||(null==this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this._currentTimePending=!1,this._fireEvents(t))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var t=this._effect._target;return t._activeAnimations||(t._activeAnimations=[]),t._activeAnimations},_markTarget:function(){var t=this._targetAnimations();-1===t.indexOf(this)&&t.push(this)},_unmarkTarget:function(){var t=this._targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}}}(r,n),function(t,e,r){function n(t){var e=c;c=[],t<y.currentTime&&(t=y.currentTime),y._animations.sort(i),y._animations=a(t,!0,y._animations)[0],e.forEach(function(e){e[1](t)}),s(),h=void 0}function i(t,e){return t._sequenceNumber-e._sequenceNumber}function o(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function s(){b.forEach(function(t){t()}),b.length=0}function a(t,r,n){d=!0,p=!1,e.timeline.currentTime=t,f=!1;var i=[],o=[],s=[],a=[];return n.forEach(function(e){e._tick(t,r),e._inEffect?(o.push(e._effect),e._markTarget()):(i.push(e._effect),e._unmarkTarget()),e._needsTick&&(f=!0);var n=e._inEffect||e._needsTick;e._inTimeline=n,n?s.push(e):a.push(e)}),b.push.apply(b,i),b.push.apply(b,o),f&&requestAnimationFrame(function(){}),d=!1,[s,a]}var u=window.requestAnimationFrame,c=[],l=0;window.requestAnimationFrame=function(t){var e=l++;return 0==c.length&&u(n),c.push([e,t]),e},window.cancelAnimationFrame=function(t){c.forEach(function(e){e[0]==t&&(e[1]=function(){})})},o.prototype={_play:function(r){r._timing=t.normalizeTimingInput(r.timing);var n=new e.Animation(r);return n._idle=!1,n._timeline=this,this._animations.push(n),e.restart(),e.applyDirtiedAnimation(n),n}};var h=void 0,f=!1,p=!1;e.restart=function(){return f||(f=!0,requestAnimationFrame(function(){}),p=!0),p},e.applyDirtiedAnimation=function(t){if(!d){t._markTarget();var r=t._targetAnimations();r.sort(i),a(e.timeline.currentTime,!1,r.slice())[1].forEach(function(t){var e=y._animations.indexOf(t);-1!==e&&y._animations.splice(e,1)}),s()}};var b=[],d=!1,y=new o;e.timeline=y}(r,n),function(t,e){function r(t,e){for(var r=0,n=0;n<t.length;n++)r+=t[n]*e[n];return r}function n(t,e){return[t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12]*e[3],t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13]*e[3],t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]*e[3],t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]*e[3],t[0]*e[4]+t[4]*e[5]+t[8]*e[6]+t[12]*e[7],t[1]*e[4]+t[5]*e[5]+t[9]*e[6]+t[13]*e[7],t[2]*e[4]+t[6]*e[5]+t[10]*e[6]+t[14]*e[7],t[3]*e[4]+t[7]*e[5]+t[11]*e[6]+t[15]*e[7],t[0]*e[8]+t[4]*e[9]+t[8]*e[10]+t[12]*e[11],t[1]*e[8]+t[5]*e[9]+t[9]*e[10]+t[13]*e[11],t[2]*e[8]+t[6]*e[9]+t[10]*e[10]+t[14]*e[11],t[3]*e[8]+t[7]*e[9]+t[11]*e[10]+t[15]*e[11],t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12]*e[15],t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13]*e[15],t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14]*e[15],t[3]*e[12]+t[7]*e[13]+t[11]*e[14]+t[15]*e[15]]}function i(t){var e=t.rad||0;return((t.deg||0)/360+(t.grad||0)/400+(t.turn||0))*(2*Math.PI)+e}function o(t){switch(t.t){case"rotatex":o=i(t.d[0]);return[1,0,0,0,0,Math.cos(o),Math.sin(o),0,0,-Math.sin(o),Math.cos(o),0,0,0,0,1];case"rotatey":o=i(t.d[0]);return[Math.cos(o),0,-Math.sin(o),0,0,1,0,0,Math.sin(o),0,Math.cos(o),0,0,0,0,1];case"rotate":case"rotatez":o=i(t.d[0]);return[Math.cos(o),Math.sin(o),0,0,-Math.sin(o),Math.cos(o),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var e=t.d[0],r=t.d[1],n=t.d[2],o=i(t.d[3]),s=e*e+r*r+n*n;if(0===s)e=1,r=0,n=0;else if(1!==s){var a=Math.sqrt(s);e/=a,r/=a,n/=a}var u=Math.sin(o/2),c=u*Math.cos(o/2),l=u*u;return[1-2*(r*r+n*n)*l,2*(e*r*l+n*c),2*(e*n*l-r*c),0,2*(e*r*l-n*c),1-2*(e*e+n*n)*l,2*(r*n*l+e*c),0,2*(e*n*l+r*c),2*(r*n*l-e*c),1-2*(e*e+r*r)*l,0,0,0,0,1];case"scale":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[t.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,t.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,t.d[0],0,0,0,0,1];case"scale3d":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,t.d[2],0,0,0,0,1];case"skew":var h=i(t.d[0]),f=i(t.d[1]);return[1,Math.tan(f),0,0,Math.tan(h),1,0,0,0,0,1,0,0,0,0,1];case"skewx":o=i(t.d[0]);return[1,0,0,0,Math.tan(o),1,0,0,0,0,1,0,0,0,0,1];case"skewy":o=i(t.d[0]);return[1,Math.tan(o),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,e=t.d[0].px||0,r=t.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,e=t.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,r=t.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,n=t.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,e=t.d[0].px||0,r=t.d[1].px||0,n=t.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,t.d[0].px?-1/t.d[0].px:0,0,0,0,1];case"matrix":return[t.d[0],t.d[1],0,0,t.d[2],t.d[3],0,0,0,0,1,0,t.d[4],t.d[5],0,1];case"matrix3d":return t.d}}function s(t){return 0===t.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:t.map(o).reduce(n)}var a=function(){function t(t){return t[0][0]*t[1][1]*t[2][2]+t[1][0]*t[2][1]*t[0][2]+t[2][0]*t[0][1]*t[1][2]-t[0][2]*t[1][1]*t[2][0]-t[1][2]*t[2][1]*t[0][0]-t[2][2]*t[0][1]*t[1][0]}function e(e){for(var r=1/t(e),n=e[0][0],i=e[0][1],o=e[0][2],s=e[1][0],a=e[1][1],u=e[1][2],c=e[2][0],l=e[2][1],h=e[2][2],f=[[(a*h-u*l)*r,(o*l-i*h)*r,(i*u-o*a)*r,0],[(u*c-s*h)*r,(n*h-o*c)*r,(o*s-n*u)*r,0],[(s*l-a*c)*r,(c*i-n*l)*r,(n*a-i*s)*r,0]],p=[],b=0;b<3;b++){for(var d=0,y=0;y<3;y++)d+=e[3][y]*f[y][b];p.push(d)}return p.push(1),f.push(p),f}function n(t){return[[t[0][0],t[1][0],t[2][0],t[3][0]],[t[0][1],t[1][1],t[2][1],t[3][1]],[t[0][2],t[1][2],t[2][2],t[3][2]],[t[0][3],t[1][3],t[2][3],t[3][3]]]}function i(t,e){for(var r=[],n=0;n<4;n++){for(var i=0,o=0;o<4;o++)i+=t[o]*e[o][n];r.push(i)}return r}function o(t){var e=s(t);return[t[0]/e,t[1]/e,t[2]/e]}function s(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2])}function a(t,e,r,n){return[r*t[0]+n*e[0],r*t[1]+n*e[1],r*t[2]+n*e[2]]}function u(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}return function(c){var l=[c.slice(0,4),c.slice(4,8),c.slice(8,12),c.slice(12,16)];if(1!==l[3][3])return null;for(var h=[],f=0;f<4;f++)h.push(l[f].slice());for(f=0;f<3;f++)h[f][3]=0;if(0===t(h))return null;var p,b=[];l[0][3]||l[1][3]||l[2][3]?(b.push(l[0][3]),b.push(l[1][3]),b.push(l[2][3]),b.push(l[3][3]),p=i(b,n(e(h)))):p=[0,0,0,1];var d=l[3].slice(0,3),y=[];y.push(l[0].slice(0,3));var v=[];v.push(s(y[0])),y[0]=o(y[0]);var m=[];y.push(l[1].slice(0,3)),m.push(r(y[0],y[1])),y[1]=a(y[1],y[0],1,-m[0]),v.push(s(y[1])),y[1]=o(y[1]),m[0]/=v[1],y.push(l[2].slice(0,3)),m.push(r(y[0],y[2])),y[2]=a(y[2],y[0],1,-m[1]),m.push(r(y[1],y[2])),y[2]=a(y[2],y[1],1,-m[2]),v.push(s(y[2])),y[2]=o(y[2]),m[1]/=v[2],m[2]/=v[2];var g=u(y[1],y[2]);if(r(y[0],g)<0)for(f=0;f<3;f++)v[f]*=-1,y[f][0]*=-1,y[f][1]*=-1,y[f][2]*=-1;var _,w,O=y[0][0]+y[1][1]+y[2][2]+1;return O>1e-4?(_=.5/Math.sqrt(O),w=[(y[2][1]-y[1][2])*_,(y[0][2]-y[2][0])*_,(y[1][0]-y[0][1])*_,.25/_]):y[0][0]>y[1][1]&&y[0][0]>y[2][2]?(_=2*Math.sqrt(1+y[0][0]-y[1][1]-y[2][2]),w=[.25*_,(y[0][1]+y[1][0])/_,(y[0][2]+y[2][0])/_,(y[2][1]-y[1][2])/_]):y[1][1]>y[2][2]?(_=2*Math.sqrt(1+y[1][1]-y[0][0]-y[2][2]),w=[(y[0][1]+y[1][0])/_,.25*_,(y[1][2]+y[2][1])/_,(y[0][2]-y[2][0])/_]):(_=2*Math.sqrt(1+y[2][2]-y[0][0]-y[1][1]),w=[(y[0][2]+y[2][0])/_,(y[1][2]+y[2][1])/_,.25*_,(y[1][0]-y[0][1])/_]),[d,v,m,w,p]}}();t.dot=r,t.makeMatrixDecomposition=function(t){return[a(s(t))]},t.transformListToMatrix=s}(n),function(t){function e(t,e){var r=t.exec(e);if(r)return r=t.ignoreCase?r[0].toLowerCase():r[0],[r,e.substr(r.length)]}function r(t,e){var r=t(e=e.replace(/^\s*/,""));if(r)return[r[0],r[1].replace(/^\s*/,"")]}function n(t,e){for(var r=t,n=e;r&&n;)r>n?r%=n:n%=r;return r=t*e/(r+n)}function i(t,e,r,i,o){for(var s=[],a=[],u=[],c=n(i.length,o.length),l=0;l<c;l++){var h=e(i[l%i.length],o[l%o.length]);if(!h)return;s.push(h[0]),a.push(h[1]),u.push(h[2])}return[s,a,function(e){var n=e.map(function(t,e){return u[e](t)}).join(r);return t?t(n):n}]}t.consumeToken=e,t.consumeTrimmed=r,t.consumeRepeated=function(t,n,i){t=r.bind(null,t);for(var o=[];;){var s=t(i);if(!s)return[o,i];if(o.push(s[0]),i=s[1],!(s=e(n,i))||""==s[1])return[o,i];i=s[1]}},t.consumeParenthesised=function(t,e){for(var r=0,n=0;n<e.length&&(!/\s|,/.test(e[n])||0!=r);n++)if("("==e[n])r++;else if(")"==e[n]&&(0==--r&&n++,r<=0))break;var i=t(e.substr(0,n));return void 0==i?void 0:[i,e.substr(n)]},t.ignore=function(t){return function(e){var r=t(e);return r&&(r[0]=void 0),r}},t.optional=function(t,e){return function(r){return t(r)||[e,r]}},t.consumeList=function(e,r){for(var n=[],i=0;i<e.length;i++){var o=t.consumeTrimmed(e[i],r);if(!o||""==o[0])return;void 0!==o[0]&&n.push(o[0]),r=o[1]}if(""==r)return n},t.mergeNestedRepeated=i.bind(null,null),t.mergeWrappedNestedRepeated=i,t.mergeList=function(t,e,r){for(var n=[],i=[],o=[],s=0,a=0;a<r.length;a++)if("function"==typeof r[a]){var u=r[a](t[s],e[s++]);n.push(u[0]),i.push(u[1]),o.push(u[2])}else!function(t){n.push(!1),i.push(!1),o.push(function(){return r[t]})}(a);return[n,i,function(t){for(var e="",r=0;r<t.length;r++)e+=o[r](t[r]);return e}]}}(n),function(t){function e(e){var r={inset:!1,lengths:[],color:null},n=t.consumeRepeated(function(e){var n=t.consumeToken(/^inset/i,e);return n?(r.inset=!0,n):(n=t.consumeLengthOrPercent(e))?(r.lengths.push(n[0]),n):(n=t.consumeColor(e))?(r.color=n[0],n):void 0},/^/,e);if(n&&n[0].length)return[r,n[1]]}var r=function(e,r,n,i){function o(t){return{inset:t,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var s=[],a=[],u=0;u<n.length||u<i.length;u++){var c=n[u]||o(i[u].inset),l=i[u]||o(n[u].inset);s.push(c),a.push(l)}return t.mergeNestedRepeated(e,r,s,a)}.bind(null,function(e,r){for(;e.lengths.length<Math.max(e.lengths.length,r.lengths.length);)e.lengths.push({px:0});for(;r.lengths.length<Math.max(e.lengths.length,r.lengths.length);)r.lengths.push({px:0});if(e.inset==r.inset&&!!e.color==!!r.color){for(var n,i=[],o=[[],0],s=[[],0],a=0;a<e.lengths.length;a++){var u=t.mergeDimensions(e.lengths[a],r.lengths[a],2==a);o[0].push(u[0]),s[0].push(u[1]),i.push(u[2])}if(e.color&&r.color){var c=t.mergeColors(e.color,r.color);o[1]=c[0],s[1]=c[1],n=c[2]}return[o,s,function(t){for(var r=e.inset?"inset ":" ",o=0;o<i.length;o++)r+=i[o](t[0][o])+" ";return n&&(r+=n(t[1])),r}]}},", ");t.addPropertiesHandler(function(r){var n=t.consumeRepeated(e,/^,/,r);if(n&&""==n[1])return n[0]},r,["box-shadow","text-shadow"])}(n),function(t,e){function r(t){return t.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function n(t,e,r){return Math.min(e,Math.max(t,r))}function i(t){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t))return Number(t)}function o(t,e){return function(i,o){return[i,o,function(i){return r(n(t,e,i))}]}}function s(t){var e=t.trim().split(/\s*[\s,]\s*/);if(0!==e.length){for(var r=[],n=0;n<e.length;n++){var o=i(e[n]);if(void 0===o)return;r.push(o)}return r}}t.clamp=n,t.addPropertiesHandler(s,function(t,e){if(t.length==e.length)return[t,e,function(t){return t.map(r).join(" ")}]},["stroke-dasharray"]),t.addPropertiesHandler(i,o(0,1/0),["border-image-width","line-height"]),t.addPropertiesHandler(i,o(0,1),["opacity","shape-image-threshold"]),t.addPropertiesHandler(i,function(t,e){if(0!=t)return o(0,1/0)(t,e)},["flex-grow","flex-shrink"]),t.addPropertiesHandler(i,function(t,e){return[t,e,function(t){return Math.round(n(1,1/0,t))}]},["orphans","widows"]),t.addPropertiesHandler(i,function(t,e){return[t,e,Math.round]},["z-index"]),t.parseNumber=i,t.parseNumberList=s,t.mergeNumbers=function(t,e){return[t,e,r]},t.numberToString=r}(n),function(t,e){n.addPropertiesHandler(String,function(t,e){if("visible"==t||"visible"==e)return[0,1,function(r){return r<=0?t:r>=1?e:"visible"}]},["visibility"])}(),function(t,e){function r(t){t=t.trim(),o.fillStyle="#000",o.fillStyle=t;var e=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=t,e==o.fillStyle){o.fillRect(0,0,1,1);var r=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var n=r[3]/255;return[r[0]*n,r[1]*n,r[2]*n,n]}}function n(e,r){return[e,r,function(e){if(e[3])for(var r=0;r<3;r++)e[r]=Math.round(function(t){return Math.max(0,Math.min(255,t))}(e[r]/e[3]));return e[3]=t.numberToString(t.clamp(0,1,e[3])),"rgba("+e.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var o=i.getContext("2d");t.addPropertiesHandler(r,n,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),t.consumeColor=t.consumeParenthesised.bind(null,r),t.mergeColors=n}(n),function(t,e){function r(t){function e(){var e=a.exec(t);s=e?e[0]:void 0}function r(){var t=Number(s);return e(),t}function n(){if("("!==s)return r();e();var t=o();return")"!==s?NaN:(e(),t)}function i(){for(var t=n();"*"===s||"/"===s;){var r=s;e();var i=n();"*"===r?t*=i:t/=i}return t}function o(){for(var t=i();"+"===s||"-"===s;){var r=s;e();var n=i();"+"===r?t+=n:t-=n}return t}var s,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),o()}function n(t,e){if("0"==(e=e.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(e)){var n={};e=(e=e.replace(/calc\(/g,"(")).replace(t,function(t){return n[t]=null,"U"+t});for(var i="U("+t.source+")",o=e.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),s=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],a=0;a<s.length;)s[a].test(o)?(o=o.replace(s[a],"$1"),a=0):a++;if("D"==o){for(var u in n){var c=r(e.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(i,"g"),"*0"));if(!isFinite(c))return;n[u]=c}return n}}}function i(t,e){return o(t,e,!0)}function o(e,r,n){var i,o=[];for(i in e)o.push(i);for(i in r)o.indexOf(i)<0&&o.push(i);return e=o.map(function(t){return e[t]||0}),r=o.map(function(t){return r[t]||0}),[e,r,function(e){var r=e.map(function(r,i){return 1==e.length&&n&&(r=Math.max(r,0)),t.numberToString(r)+o[i]}).join(" + ");return e.length>1?"calc("+r+")":r}]}var s="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",a=n.bind(null,new RegExp(s,"g")),u=n.bind(null,new RegExp(s+"|%","g")),c=n.bind(null,/deg|rad|grad|turn/g);t.parseLength=a,t.parseLengthOrPercent=u,t.consumeLengthOrPercent=t.consumeParenthesised.bind(null,u),t.parseAngle=c,t.mergeDimensions=o;var l=t.consumeParenthesised.bind(null,a),h=t.consumeRepeated.bind(void 0,l,/^/),f=t.consumeRepeated.bind(void 0,h,/^,/);t.consumeSizePairList=f;var p=t.mergeNestedRepeated.bind(void 0,i," "),b=t.mergeNestedRepeated.bind(void 0,p,",");t.mergeNonNegativeSizePair=p,t.addPropertiesHandler(function(t){var e=f(t);if(e&&""==e[1])return e[0]},b,["background-size"]),t.addPropertiesHandler(u,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),t.addPropertiesHandler(u,o,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(n),function(t,e){function r(e){return t.consumeLengthOrPercent(e)||t.consumeToken(/^auto/,e)}function n(e){var n=t.consumeList([t.ignore(t.consumeToken.bind(null,/^rect/)),t.ignore(t.consumeToken.bind(null,/^\(/)),t.consumeRepeated.bind(null,r,/^,/),t.ignore(t.consumeToken.bind(null,/^\)/))],e);if(n&&4==n[0].length)return n[0]}var i=t.mergeWrappedNestedRepeated.bind(null,function(t){return"rect("+t+")"},function(e,r){return"auto"==e||"auto"==r?[!0,!1,function(n){var i=n?e:r;if("auto"==i)return"auto";var o=t.mergeDimensions(i,i);return o[2](o[0])}]:t.mergeDimensions(e,r)},", ");t.parseBox=n,t.mergeBoxes=i,t.addPropertiesHandler(n,i,["clip"])}(n),function(t,e){function r(t){return function(e){var r=0;return t.map(function(t){return t===c?e[r++]:t})}}function n(t){return t}function i(e){if("none"==(e=e.toLowerCase().trim()))return[];for(var r,n=/\s*(\w+)\(([^)]*)\)/g,i=[],o=0;r=n.exec(e);){if(r.index!=o)return;o=r.index+r[0].length;var s=r[1],a=f[s];if(!a)return;var u=r[2].split(","),c=a[0];if(c.length<u.length)return;for(var p=[],b=0;b<c.length;b++){var d,y=u[b],v=c[b];if(void 0===(d=y?{A:function(e){return"0"==e.trim()?h:t.parseAngle(e)},N:t.parseNumber,T:t.parseLengthOrPercent,L:t.parseLength}[v.toUpperCase()](y):{a:h,n:p[0],t:l}[v]))return;p.push(d)}if(i.push({t:s,d:p}),n.lastIndex==e.length)return i}}function o(t){return t.toFixed(6).replace(".000000","")}function s(e,r){if(e.decompositionPair!==r){e.decompositionPair=r;var n=t.makeMatrixDecomposition(e)}if(r.decompositionPair!==e){r.decompositionPair=e;var i=t.makeMatrixDecomposition(r)}return null==n[0]||null==i[0]?[[!1],[!0],function(t){return t?r[0].d:e[0].d}]:(n[0].push(0),i[0].push(1),[n,i,function(e){var r=t.quat(n[0][3],i[0][3],e[5]);return t.composeMatrix(e[0],e[1],e[2],r,e[4]).map(o).join(",")}])}function a(t){return t.replace(/[xy]/,"")}function u(t){return t.replace(/(x|y|z|3d)?$/,"3d")}var c=null,l={px:0},h={deg:0},f={matrix:["NNNNNN",[c,c,0,0,c,c,0,0,0,0,1,0,c,c,0,1],n],matrix3d:["NNNNNNNNNNNNNNNN",n],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",r([c,c,1]),n],scalex:["N",r([c,1,1]),r([c,1])],scaley:["N",r([1,c,1]),r([1,c])],scalez:["N",r([1,1,c])],scale3d:["NNN",n],skew:["Aa",null,n],skewx:["A",null,r([c,h])],skewy:["A",null,r([h,c])],translate:["Tt",r([c,c,l]),n],translatex:["T",r([c,l,l]),r([c,l])],translatey:["T",r([l,c,l]),r([l,c])],translatez:["L",r([l,l,c])],translate3d:["TTL",n]};t.addPropertiesHandler(i,function(e,r){var n=t.makeMatrixDecomposition&&!0,i=!1;if(!e.length||!r.length)for(e.length||(i=!0,e=r,r=[]),d=0;d<e.length;d++){var o=e[d].t,c=e[d].d,l="scale"==o.substr(0,5)?1:0;r.push({t:o,d:c.map(function(t){if("number"==typeof t)return l;var e={};for(var r in t)e[r]=l;return e})})}var h=[],p=[],b=[];if(e.length!=r.length){if(!n)return;h=[(k=s(e,r))[0]],p=[k[1]],b=[["matrix",[k[2]]]]}else for(var d=0;d<e.length;d++){var y=e[d].t,v=r[d].t,m=e[d].d,g=r[d].d,_=f[y],w=f[v];if(function(t,e){return"perspective"==t&&"perspective"==e||("matrix"==t||"matrix3d"==t)&&("matrix"==e||"matrix3d"==e)}(y,v)){if(!n)return;k=s([e[d]],[r[d]]),h.push(k[0]),p.push(k[1]),b.push(["matrix",[k[2]]])}else{if(y==v)o=y;else if(_[2]&&w[2]&&a(y)==a(v))o=a(y),m=_[2](m),g=w[2](g);else{if(!_[1]||!w[1]||u(y)!=u(v)){if(!n)return;h=[(k=s(e,r))[0]],p=[k[1]],b=[["matrix",[k[2]]]];break}o=u(y),m=_[1](m),g=w[1](g)}for(var O=[],S=[],x=[],j=0;j<m.length;j++){var k=("number"==typeof m[j]?t.mergeNumbers:t.mergeDimensions)(m[j],g[j]);O[j]=k[0],S[j]=k[1],x.push(k[2])}h.push(O),p.push(S),b.push([o,x])}}if(i){var E=h;h=p,p=E}return[h,p,function(t){return t.map(function(t,e){var r=t.map(function(t,r){return b[e][1][r](t)}).join(",");return"matrix"==b[e][0]&&16==r.split(",").length&&(b[e][0]="matrix3d"),b[e][0]+"("+r+")"}).join(" ")}]},["transform"]),t.transformToSvgMatrix=function(e){var r=t.transformListToMatrix(i(e));return"matrix("+o(r[0])+" "+o(r[1])+" "+o(r[4])+" "+o(r[5])+" "+o(r[12])+" "+o(r[13])+")"}}(n),function(t){function e(e){return e=100*Math.round(e/100),400===(e=t.clamp(100,900,e))?"normal":700===e?"bold":String(e)}t.addPropertiesHandler(function(t){var e=Number(t);if(!(isNaN(e)||e<100||e>900||e%100!=0))return e},function(t,r){return[t,r,e]},["font-weight"])}(n),function(t){function e(t){var e={};for(var r in t)e[r]=-t[r];return e}function r(e){return t.consumeToken(/^(left|center|right|top|bottom)\b/i,e)||t.consumeLengthOrPercent(e)}function n(e,n){var i=t.consumeRepeated(r,/^/,n);if(i&&""==i[1]){var s=i[0];if(s[0]=s[0]||"center",s[1]=s[1]||"center",3==e&&(s[2]=s[2]||{px:0}),s.length==e){if(/top|bottom/.test(s[0])||/left|right/.test(s[1])){var a=s[0];s[0]=s[1],s[1]=a}if(/left|right|center|Object/.test(s[0])&&/top|bottom|center|Object/.test(s[1]))return s.map(function(t){return"object"==typeof t?t:o[t]})}}}function i(n){var i=t.consumeRepeated(r,/^/,n);if(i){for(var s=i[0],a=[{"%":50},{"%":50}],u=0,c=!1,l=0;l<s.length;l++){var h=s[l];"string"==typeof h?(c=/bottom|right/.test(h),u={left:0,right:0,center:u,top:1,bottom:1}[h],a[u]=o[h],"center"==h&&u++):(c&&(h=e(h),h["%"]=(h["%"]||0)+100),a[u]=h,u++,c=!1)}return[a,i[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},s=t.mergeNestedRepeated.bind(null,t.mergeDimensions," ");t.addPropertiesHandler(n.bind(null,3),s,["transform-origin"]),t.addPropertiesHandler(n.bind(null,2),s,["perspective-origin"]),t.consumePosition=i,t.mergeOffsetList=s;var a=t.mergeNestedRepeated.bind(null,s,", ");t.addPropertiesHandler(function(e){var r=t.consumeRepeated(i,/^,/,e);if(r&&""==r[1])return r[0]},a,["background-position","object-position"])}(n),function(t){var e=t.consumeParenthesised.bind(null,t.parseLengthOrPercent),r=t.consumeRepeated.bind(void 0,e,/^/),n=t.mergeNestedRepeated.bind(void 0,t.mergeDimensions," "),i=t.mergeNestedRepeated.bind(void 0,n,",");t.addPropertiesHandler(function(n){var i=t.consumeToken(/^circle/,n);if(i&&i[0])return["circle"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),e,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],i[1]));var o=t.consumeToken(/^ellipse/,n);if(o&&o[0])return["ellipse"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),r,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],o[1]));var s=t.consumeToken(/^polygon/,n);return s&&s[0]?["polygon"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),t.optional(t.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),t.consumeSizePairList,t.ignore(t.consumeToken.bind(void 0,/^\)/))],s[1])):void 0},function(e,r){if(e[0]===r[0])return"circle"==e[0]?t.mergeList(e.slice(1),r.slice(1),["circle(",t.mergeDimensions," at ",t.mergeOffsetList,")"]):"ellipse"==e[0]?t.mergeList(e.slice(1),r.slice(1),["ellipse(",t.mergeNonNegativeSizePair," at ",t.mergeOffsetList,")"]):"polygon"==e[0]&&e[1]==r[1]?t.mergeList(e.slice(2),r.slice(2),["polygon(",e[1],i,")"]):void 0},["shape-outside"])}(n),function(t,e){function r(t,e){e.concat([t]).forEach(function(e){e in document.documentElement.style&&(n[t]=e),i[e]=t})}var n={},i={};r("transform",["webkitTransform","msTransform"]),r("transformOrigin",["webkitTransformOrigin"]),r("perspective",["webkitPerspective"]),r("perspectiveOrigin",["webkitPerspectiveOrigin"]),t.propertyName=function(t){return n[t]||t},t.unprefixedPropertyName=function(t){return i[t]||t}}(n)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)t=function(){return performance.now()};else var t=function(){return Date.now()};var e=function(t,e,r){this.target=t,this.currentTime=e,this.timelineTime=r,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},r=window.Element.prototype.animate;window.Element.prototype.animate=function(n,i){var o=r.call(this,n,i);o._cancelHandlers=[],o.oncancel=null;var s=o.cancel;o.cancel=function(){s.call(this);var r=new e(this,null,t()),n=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout(function(){n.forEach(function(t){t.call(r.target,r)})},0)};var a=o.addEventListener;o.addEventListener=function(t,e){"function"==typeof e&&"cancel"==t?this._cancelHandlers.push(e):a.call(this,t,e)};var u=o.removeEventListener;return o.removeEventListener=function(t,e){if("cancel"==t){var r=this._cancelHandlers.indexOf(e);r>=0&&this._cancelHandlers.splice(r,1)}else u.call(this,t,e)},o}}}(),function(t){var e=document.documentElement,r=null,n=!1;try{var i="0"==getComputedStyle(e).getPropertyValue("opacity")?"1":"0";(r=e.animate({opacity:[i,i]},{duration:1})).currentTime=0,n=getComputedStyle(e).getPropertyValue("opacity")==i}catch(t){}finally{r&&r.cancel()}if(!n){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(e,r){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||null===e||(e=t.convertToArrayForm(e)),o.call(this,e,r)}}}(r),e.true=t}({},function(){return this}())},{}],149:[function(t,e,r){(function(t){"use strict";function e(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":u(e))&&"function"!=typeof e?t:e}function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":u(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{return new CustomEvent(t,e)}catch(n){var r=document.createEvent("CustomEvent");return r.initCustomEvent(t,!0,!0,e.detail),r}}function s(t,e){var r=this;p(this,t,{enumerable:!0,get:function(){return r[d][t]},set:function(n){null!=e?e(n):r.setState(t,n)}})}function a(){var t=this,e=this.sideEffects();Object.keys(this[d]).forEach(function(r){if(void 0===t[r]){var n=e[r];s.call(t,r,n)}})}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};Object.defineProperty(r,"__esModule",{value:!0});var c="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(t){return void 0===t?"undefined":u(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":u(t)},l=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),h=function t(){i(this,t)},f=t.Symbol||function(t){return"_"+t},p=Object.defineProperty.bind(Object),b=f("root"),d=f("state");r.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return function(r){function s(){return i(this,s),e(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return n(s,t),l(s,[{key:"getComponentName",value:function(){throw Error("Component needs to have a name, e.g. `my-tag`. Override `getComponentName`")}},{key:"setupComponent",value:function(t,e){return p(this,d,{value:Object.assign({},this.defaults(),e)}),a.call(this),p(this,b,{value:this.setupDOM(t)}),this}},{key:"setupDOM",value:function(t){return t}},{key:"getRoot",value:function(){return this[b]}},{key:"getEl",value:function(){return this[b]}},{key:"fireEvent",value:function(t,e){var r=this.componentName+"-"+t;this.el.dispatchEvent(o(r,e))}},{key:"defaults",value:function(){return console.warn("defaults not provided"),{}}},{key:"sideEffects",value:function(){return console.warn("sideEffects not provided"),{}}},{key:"setState",value:function(t,e){if("string"==typeof t)this.setStateKV(t,e);else{if("object"!==(void 0===t?"undefined":c(t)))throw Error("setState needs argument");this.setStateMap(t)}}},{key:"setStateKV",value:function(t,e){this[d][t]=e}},{key:"setStateMap",value:function(t){var e=this;Object.keys(this[d]).forEach(function(r){e.setStateKV(r,t[r])})}},{key:"componentName",get:function(){return this.getComponentName()}},{key:"root",get:function(){return this.getRoot()}},{key:"el",get:function(){return this.getEl()}}]),s}()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],150:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.linearTween=function(t,e,r,n){return r*t/n+e},r.pageDist=function(t,e){return Math.sqrt(Math.pow(t.pageX-e.pageX,2)+Math.pow(t.pageY-e.pageY,2))},r.contains=function(t,e){for(var r=t;null!=r;){if(r.classList&&r.classList.contains(e))return!0;r=r.parentNode}return!1}},{}],151:[function(t,e,r){(function(e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":s(e))&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":s(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),u=function t(e,r,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,r);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,r,n)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(n)},c=function(t){return t&&t.__esModule?t:{default:t}}(t("y-component/src/component-core")),l=t("../common"),h=e.Symbol||function(t){return"_"+t},f=h("idle"),p=h("touching"),b=h("startAnimating"),d=h("animating"),y=Object.defineProperty.bind(Object);r.default=function(t){return function(e){function r(){return n(this,r),i(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return o(r,(0,c.default)(t)),a(r,[{key:"getComponentName",value:function(){return"y-drawer"}},{key:"defaults",value:function(){return{opened:!1,transitionDuration:200,persistent:!1}}},{key:"sideEffects",value:function(){var t=this;return{opened:function(e){!0===e?t.open():t.close()},persistent:function(e){!0===e?t.persist():t.unpersist()}}}},{key:"setupComponent",value:function(t,e){return u(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"setupComponent",this).call(this,t,e),this.cacheDOMElements(),this.defProperties(),this.bindCallbacks(),this.jumpTo(this.opened),this.persistent||this.addEventListeners(),this.persistent&&(this.scrim.style.display="none"),this}},{key:"cacheDOMElements",value:function(){y(this,"scrim",{value:this.root.querySelector(".y-drawer-scrim")}),y(this,"content",{value:this.root.querySelector(".y-drawer-content")})}},{key:"defProperties",value:function(){y(this,"startX",{value:0,writable:!0}),y(this,"startY",{value:0,writable:!0}),y(this,"pageX",{value:0,writable:!0}),y(this,"pageY",{value:0,writable:!0}),y(this,"lastPageX",{value:0,writable:!0}),y(this,"lastPageY",{value:0,writable:!0}),y(this,"isScrolling",{writable:!0}),y(this,"startedMoving",{value:!1,writable:!0}),y(this,"loopState",{value:f,writable:!0}),y(this,"velocity",{value:0,writable:!0}),y(this,"startTranslateX",{value:0,writable:!0}),y(this,"translateX",{value:0,writable:!0}),y(this,"animationFrameRequested",{value:!1,writable:!0}),y(this,"touching",{value:!1,writable:!0}),y(this,"lastTime",{writable:!0}),y(this,"sliderWidth",{writable:!0}),y(this,"animation",{writable:!0,configurable:!0})}},{key:"bindCallbacks",value:function(){y(this,"touchStartCallback",{value:this.touchStartCallback.bind(this)}),y(this,"touchMoveCallback",{value:this.touchMoveCallback.bind(this)}),y(this,"touchEndCallback",{value:this.touchEndCallback.bind(this)}),y(this,"scrimClickCallback",{value:this.scrimClickCallback.bind(this)}),y(this,"animationFrameCallback",{value:this.animationFrameCallback.bind(this)})}},{key:"addEventListeners",value:function(){document.addEventListener("touchstart",this.touchStartCallback,{passive:!1}),document.addEventListener("touchmove",this.touchMoveCallback,{passive:!1}),document.addEventListener("touchend",this.touchEndCallback,{passive:!1}),this.scrim.addEventListener("click",this.scrimClickCallback)}},{key:"removeEventListeners",value:function(){document.removeEventListener("touchstart",this.touchStartCallback,{passive:!1}),document.removeEventListener("touchmove",this.touchMoveCallback,{passive:!1}),document.removeEventListener("touchend",this.touchEndCallback,{passive:!1}),this.scrim.removeEventListener("click",this.scrimClickCallback)}},{key:"requestAnimationLoop",value:function(){this.animationFrameRequested||(this.animationFrameRequested=!0,requestAnimationFrame(this.animationFrameCallback))}},{key:"getNearestTouch",value:function(t){var e=this;return 1===t.length?t[0]:Array.prototype.reduce.call(t,function(t,r){var n=(0,l.pageDist)(e,r);return n<t.dist?{dist:n,touch:r}:t},{dist:Number.POSITIVE_INFINITY,touch:null}).touch}},{key:"touchStartCallback",value:function(t){if(1===t.touches.length){this.isScrolling=void 0;var e=t.touches[0];this.startX=e.pageX,this.startY=e.pageY,this.pageX=e.pageX,this.pageY=e.pageY,this.lastPageX=e.pageX,this.lastPageY=e.pageY,(this.opened||this.pageX<window.innerWidth/3)&&(this.prepInteraction(),this.touching=!0,this.loopState=p)}}},{key:"touchMoveCallback",value:function(t){if(this.touching){var e=this.getNearestTouch(t.touches);if(this.pageX=e.pageX,this.pageY=e.pageY,void 0===this.isScrolling&&this.startedMoving&&(this.isScrolling=Math.abs(this.startY-this.pageY)>Math.abs(this.startX-this.pageX),this.isScrolling||(this.loopState=p,this.requestAnimationLoop())),this.isScrolling)return;t.preventDefault(),this.startedMoving=!0}}},{key:"updateMenuOpen",value:function(){this.velocity>.2?this.setState("opened",!0):this.velocity<-.2?this.setState("opened",!1):this.translateX>=this.sliderWidth/2?this.setState("opened",!0):this.setState("opened",!1)}},{key:"touchEndCallback",value:function(t){if(this.touching){if(this.isScrolling||t.touches.length>0)return;this.startedMoving&&this.updateMenuOpen(),this.opened?this.scrim.style.pointerEvents="all":this.scrim.style.pointerEvents="",this.loopState=b,this.startedMoving=!1,this.touching=!1}}},{key:"scrimClickCallback",value:function(){this.close()}},{key:"prepInteraction",value:function(){this.content.style.willChange="transform",this.scrim.style.willChange="opacity",this.content.classList.remove("y-drawer-opened"),this.sliderWidth=this.getMovableSliderWidth()}},{key:"getMovableSliderWidth",value:function(){return-this.content.offsetLeft}},{key:"animateTo",value:function(t){this.prepInteraction(),this.setState("opened",t),this.loopState=b,this.requestAnimationLoop()}},{key:"jumpTo",value:function(t){this.prepInteraction(),this.setState("opened",t),this.loopState=f,this.startTranslateX=t*this.sliderWidth,this.endAnimating(),this.updateDOM(this.startTranslateX,this.sliderWidth)}},{key:"updateTranslateX",value:function(){var t=this.pageX-this.startX;return this.translateX=this.startTranslateX+t,this.translateX=Math.max(0,Math.min(this.sliderWidth,this.translateX)),t}},{key:"animationFrameCallback",value:function(t){switch(this.loopState){case p:this.touchingFrame(t);break;case b:this.startAnimatingFrame(t),this.loopState=d,this.animationFrameCallback(t);break;case d:this.animatingFrame(t)}}},{key:"touchingFrame",value:function(t){var e=t-this.lastTime;if(e>0){var r=this.pageX-this.lastPageX;this.velocity=r/e*.8+(1-.8)*this.velocity}this.updateTranslateX(),this.updateDOM(this.translateX,this.sliderWidth),this.lastTime=t,this.lastPageX=this.pageX,this.lastPageY=this.pageY,requestAnimationFrame(this.animationFrameCallback)}},{key:"startAnimatingFrame",value:function(t){this.updateTranslateX();var e={};e.startX=this.translateX,e.endX=(this.opened?1:0)*this.sliderWidth,e.changeInValue=e.endX-e.startX,e.startTime=t,this.animation=e}},{key:"animatingFrame",value:function(t){var e=t-this.animation.startTime;e<this.transitionDuration?this.animatingCont(e):this.animatingEnd(),this.updateDOM(this.startTranslateX,this.sliderWidth)}},{key:"animatingCont",value:function(t){var e=this.animation.startX,r=this.animation.changeInValue;this.startTranslateX=(0,l.linearTween)(t,e,r,this.transitionDuration),requestAnimationFrame(this.animationFrameCallback)}},{key:"animatingEnd",value:function(){this.startTranslateX=this.animation.endX,delete this.animation,this.endAnimating()}},{key:"endAnimating",value:function(){this.animationFrameRequested=!1,this.loopState=f,this.velocity=0,this.opened?(this.scrim.style.pointerEvents="all",this.content.classList.add("y-drawer-opened")):this.scrim.style.pointerEvents="",this.content.style.willChange="",this.scrim.style.willChange="",this.fireEvent("transitioned")}},{key:"updateDOM",value:function(t,e){this.content.style.transform="translateX("+t+"px)",this.scrim.style.opacity=t/e}},{key:"close",value:function(){return this.animateTo(!1),this}},{key:"open",value:function(){return this.animateTo(!0),this}},{key:"toggle",value:function(){return this.opened?this.close():this.open(),this}},{key:"persist",value:function(){this.scrim.style.display="none",this.removeEventListeners(),this.setState("persistent",!0)}},{key:"unpersist",value:function(){this.scrim.style.display="",this.addEventListeners(),this.setState("persistent",!1)}}]),r}()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common":150,"y-component/src/component-core":149}],152:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":a(e))&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":a(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return document.createRange().createContextualFragment(t)}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};Object.defineProperty(r,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),c=function(t){return t&&t.__esModule?t:{default:t}}(t("../core")),l=function(t){function e(t,r){n(this,e);var o=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o.setupComponent(t,r),o}return o(e,(0,c.default)()),u(e,[{key:"setupDOM",value:function(t){if(!t)throw Error("No element provided");var e=document.createElement("div");e.classList.add("y-drawer-scrim");var r=document.createElement("div");for(r.classList.add("y-drawer-content");t.children.length>0;)r.appendChild(t.children[0]);t.appendChild(e),t.appendChild(r);var n=document.getElementsByTagName("style")[0];return n.parentNode.insertBefore(s("\n<style>\n@media screen {\n .y-drawer-scrim {\n display: block;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n opacity: 0;\n z-index: 0;\n pointer-events: none;\n transform: translate3d(0,0,0);\n -webkit-tap-highlight-color: transparent;\n\n background: rgba(0, 0, 0, 0.67);\n }\n\n .y-drawer-content {\n position: fixed;\n left: 0;\n bottom: 0;\n top: 0;\n z-index: 1;\n overflow-x: hidden;\n overflow-y: auto;\n transform: translate3d(0,0,0);\n -webkit-overflow-scrolling: touch;\n contain: strict;\n\n left: -18rem;\n width: 18rem;\n background: #e8e8e8;\n }\n\n .y-drawer-content.y-drawer-opened {\n left: 0!important;\n transform: translate3d(0,0,0)!important;\n }\n}\n\n@media print {\n .y-drawer-scrim {\n display: none!important;\n }\n\n .y-drawer-content {\n transform: none!important;\n }\n}\n\n</style>"),n),t}}]),e}();r.default=l},{"../core":151}],153:[function(t,e,r){arguments[4][90][0].apply(r,arguments)},{"./Subscriber":161,dup:90}],154:[function(t,e,r){"use strict";var n=t("./Observable"),i=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,r){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)},t.prototype.toObservable=function(){switch(this.kind){case"N":return n.Observable.of(this.value);case"E":return n.Observable.throw(this.error);case"C":return n.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):this.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return this.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();r.Notification=i},{"./Observable":155}],155:[function(t,e,r){"use strict";var n=t("./util/root"),i=t("./util/toSubscriber"),o=t("./symbol/observable"),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,o=i.toSubscriber(t,e,r);if(n?n.call(o,this.source):o.add(this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var r=this;if(e||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?e=n.root.Rx.config.Promise:n.root.Promise&&(e=n.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,n){var i;i=r.subscribe(function(e){if(i)try{t(e)}catch(t){n(t),i.unsubscribe()}else t(e)},n,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.observable]=function(){return this},t.create=function(e){return new t(e)},t}();r.Observable=s},{"./symbol/observable":243,"./util/root":258,"./util/toSubscriber":260}],156:[function(t,e,r){arguments[4][92][0].apply(r,arguments)},{dup:92}],157:[function(t,e,r){arguments[4][93][0].apply(r,arguments)},{"./Subscriber":161,dup:93}],158:[function(t,e,r){arguments[4][94][0].apply(r,arguments)},{dup:94}],159:[function(t,e,r){arguments[4][95][0].apply(r,arguments)},{"./Observable":155,"./SubjectSubscription":160,"./Subscriber":161,"./Subscription":162,"./symbol/rxSubscriber":244,"./util/ObjectUnsubscribedError":246,dup:95}],160:[function(t,e,r){arguments[4][96][0].apply(r,arguments)},{"./Subscription":162,dup:96}],161:[function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./util/isFunction"),s=t("./Subscription"),a=t("./Observer"),u=t("./symbol/rxSubscriber"),c=function(t){function e(r,i,o){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a.empty;break;case 1:if(!r){this.destination=a.empty;break}if("object"===(void 0===r?"undefined":n(r))){r instanceof e?(this.destination=r,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new l(this,r));break}default:this.syncErrorThrowable=!0,this.destination=new l(this,r,i,o)}}return i(e,t),e.prototype[u.rxSubscriber]=function(){return this},e.create=function(t,r,n){var i=new e(t,r,n);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,r=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=r,this},e}(s.Subscription);r.Subscriber=c;var l=function(t){function e(e,r,n,i){t.call(this),this._parentSubscriber=e;var s,u=this;o.isFunction(r)?s=r:r&&(s=r.next,n=r.error,i=r.complete,r!==a.empty&&(u=Object.create(r),o.isFunction(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=s,this._error=n,this._complete=i}return i(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){if(!this.isStopped){var t=this._parentSubscriber;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,r){try{e.call(this._context,r)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(c)},{"./Observer":156,"./Subscription":162,"./symbol/rxSubscriber":244,"./util/isFunction":252}],162:[function(t,e,r){arguments[4][98][0].apply(r,arguments)},{"./util/UnsubscriptionError":247,"./util/errorObject":248,"./util/isArray":249,"./util/isFunction":252,"./util/isObject":254,"./util/tryCatch":261,dup:98}],163:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../observable/defer");n.Observable.defer=i.defer},{"../../Observable":155,"../../observable/defer":203}],164:[function(t,e,r){"use strict";var n=t("../../../Observable"),i=t("../../../observable/dom/ajax");n.Observable.ajax=i.ajax},{"../../../Observable":155,"../../../observable/dom/ajax":205}],165:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../observable/from");n.Observable.from=i.from},{"../../Observable":155,"../../observable/from":206}],166:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../observable/fromEvent");n.Observable.fromEvent=i.fromEvent},{"../../Observable":155,"../../observable/fromEvent":207}],167:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../observable/merge");n.Observable.merge=i.merge},{"../../Observable":155,"../../observable/merge":208}],168:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../observable/of");n.Observable.of=i.of},{"../../Observable":155,"../../observable/of":209}],169:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../observable/throw");n.Observable.throw=i._throw},{"../../Observable":155,"../../observable/throw":210}],170:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../observable/timer");n.Observable.timer=i.timer},{"../../Observable":155,"../../observable/timer":211}],171:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/catch");n.Observable.prototype.catch=i._catch,n.Observable.prototype._catch=i._catch},{"../../Observable":155,"../../operator/catch":212}],172:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/concatMap");n.Observable.prototype.concatMap=i.concatMap},{"../../Observable":155,"../../operator/concatMap":214}],173:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/debounceTime");n.Observable.prototype.debounceTime=i.debounceTime},{"../../Observable":155,"../../operator/debounceTime":215}],174:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/delay");n.Observable.prototype.delay=i.delay},{"../../Observable":155,"../../operator/delay":216}],175:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/distinctUntilKeyChanged");n.Observable.prototype.distinctUntilKeyChanged=i.distinctUntilKeyChanged},{"../../Observable":155,"../../operator/distinctUntilKeyChanged":218}],176:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/do");n.Observable.prototype.do=i._do,n.Observable.prototype._do=i._do},{"../../Observable":155,"../../operator/do":219}],177:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/filter");n.Observable.prototype.filter=i.filter},{"../../Observable":155,"../../operator/filter":220}],178:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/map");n.Observable.prototype.map=i.map},{"../../Observable":155,"../../operator/map":221}],179:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/mergeMap");n.Observable.prototype.mergeMap=i.mergeMap,n.Observable.prototype.flatMap=i.mergeMap},{"../../Observable":155,"../../operator/mergeMap":224}],180:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/partition");n.Observable.prototype.partition=i.partition},{"../../Observable":155,"../../operator/partition":227}],181:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/retryWhen");n.Observable.prototype.retryWhen=i.retryWhen},{"../../Observable":155,"../../operator/retryWhen":228}],182:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/share");n.Observable.prototype.share=i.share},{"../../Observable":155,"../../operator/share":229}],183:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/startWith");n.Observable.prototype.startWith=i.startWith},{"../../Observable":155,"../../operator/startWith":230}],184:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/switch");n.Observable.prototype.switch=i._switch,n.Observable.prototype._switch=i._switch},{"../../Observable":155,"../../operator/switch":231}],185:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/switchMap");n.Observable.prototype.switchMap=i.switchMap},{"../../Observable":155,"../../operator/switchMap":232}],186:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/take");n.Observable.prototype.take=i.take},{"../../Observable":155,"../../operator/take":233}],187:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/takeUntil");n.Observable.prototype.takeUntil=i.takeUntil},{"../../Observable":155,"../../operator/takeUntil":234}],188:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/throttleTime");n.Observable.prototype.throttleTime=i.throttleTime},{"../../Observable":155,"../../operator/throttleTime":235}],189:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/withLatestFrom");n.Observable.prototype.withLatestFrom=i.withLatestFrom},{"../../Observable":155,"../../operator/withLatestFrom":236}],190:[function(t,e,r){"use strict";var n=t("../../Observable"),i=t("../../operator/zip");n.Observable.prototype.zip=i.zipProto},{"../../Observable":155,"../../operator/zip":237}],191:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("./ScalarObservable"),s=t("./EmptyObservable"),a=function(t){function e(e,r){t.call(this),this.arrayLike=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(e,t),e.create=function(t,r){var n=t.length;return 0===n?new s.EmptyObservable:1===n?new o.ScalarObservable(t[0],r):new e(t,r)},e.dispatch=function(t){var e=t.arrayLike,r=t.index,n=t.length,i=t.subscriber;i.closed||(r>=n?i.complete():(i.next(e[r]),t.index=r+1,this.schedule(t)))},e.prototype._subscribe=function(t){var r=this,n=r.arrayLike,i=r.scheduler,o=n.length;if(i)return i.schedule(e.dispatch,0,{arrayLike:n,index:0,length:o,subscriber:t});for(var s=0;s<o&&!t.closed;s++)t.next(n[s]);t.complete()},e}(i.Observable);r.ArrayLikeObservable=a},{"../Observable":155,"./EmptyObservable":195,"./ScalarObservable":201}],192:[function(t,e,r){arguments[4][99][0].apply(r,arguments)},{"../Observable":155,"../util/isScheduler":256,"./EmptyObservable":195,"./ScalarObservable":201,dup:99}],193:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subject"),o=t("../Observable"),s=t("../Subscriber"),a=t("../Subscription"),u=function(t){function e(e,r){t.call(this),this.source=e,this.subjectFactory=r,this._refCount=0}return n(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||((t=this._connection=new a.Subscription).add(this.source.subscribe(new c(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return this.lift(new l(this))},e}(o.Observable);r.ConnectableObservable=u,r.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:u.prototype._subscribe},getSubject:{value:u.prototype.getSubject},connect:{value:u.prototype.connect},refCount:{value:u.prototype.refCount}};var c=function(t){function e(e,r){t.call(this,e),this.connectable=r}return n(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.SubjectSubscriber),l=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new h(t,r),i=e.subscribe(n);return n.closed||(n.connection=r.connect()),i},t}(),h=function(t){function e(e,r){t.call(this,e),this.connectable=r}return n(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},e}(s.Subscriber)},{"../Observable":155,"../Subject":159,"../Subscriber":161,"../Subscription":162}],194:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("../util/subscribeToResult"),s=t("../OuterSubscriber"),a=function(t){function e(e){t.call(this),this.observableFactory=e}return n(e,t),e.create=function(t){return new e(t)},e.prototype._subscribe=function(t){return new u(t,this.observableFactory)},e}(i.Observable);r.DeferObservable=a;var u=function(t){function e(e,r){t.call(this,e),this.factory=r,this.tryDefer()}return n(e,t),e.prototype.tryDefer=function(){try{this._callFactory()}catch(t){this._error(t)}},e.prototype._callFactory=function(){var t=this.factory();t&&this.add(o.subscribeToResult(this,t))},e}(s.OuterSubscriber)},{"../Observable":155,"../OuterSubscriber":157,"../util/subscribeToResult":259}],195:[function(t,e,r){arguments[4][101][0].apply(r,arguments)},{"../Observable":155,dup:101}],196:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(e,r){t.call(this),this.error=e,this.scheduler=r}return n(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.error;t.subscriber.error(e)},e.prototype._subscribe=function(t){var r=this.error,n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{error:r,subscriber:t});t.error(r)},e}(t("../Observable").Observable);r.ErrorObservable=i},{"../Observable":155}],197:[function(t,e,r){arguments[4][102][0].apply(r,arguments)},{"../Observable":155,"../Subscription":162,"../util/errorObject":248,"../util/isFunction":252,"../util/tryCatch":261,dup:102}],198:[function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../util/isArray"),s=t("../util/isArrayLike"),a=t("../util/isPromise"),u=t("./PromiseObservable"),c=t("./IteratorObservable"),l=t("./ArrayObservable"),h=t("./ArrayLikeObservable"),f=t("../symbol/iterator"),p=t("../Observable"),b=t("../operator/observeOn"),d=t("../symbol/observable"),y=function(t){function e(e,r){t.call(this,null),this.ish=e,this.scheduler=r}return i(e,t),e.create=function(t,r){if(null!=t){if("function"==typeof t[d.observable])return t instanceof p.Observable&&!r?t:new e(t,r);if(o.isArray(t))return new l.ArrayObservable(t,r);if(a.isPromise(t))return new u.PromiseObservable(t,r);if("function"==typeof t[f.iterator]||"string"==typeof t)return new c.IteratorObservable(t,r);if(s.isArrayLike(t))return new h.ArrayLikeObservable(t,r)}throw new TypeError((null!==t&&(void 0===t?"undefined":n(t))||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,r=this.scheduler;return null==r?e[d.observable]().subscribe(t):e[d.observable]().subscribe(new b.ObserveOnSubscriber(t,r,0))},e}(p.Observable);r.FromObservable=y},{"../Observable":155,"../operator/observeOn":226,"../symbol/iterator":242,"../symbol/observable":243,"../util/isArray":249,"../util/isArrayLike":250,"../util/isPromise":255,"./ArrayLikeObservable":191,"./ArrayObservable":192,"./IteratorObservable":199,"./PromiseObservable":200}],199:[function(t,e,r){"use strict";function n(t){var e=t[l.iterator];if(!e&&"string"==typeof t)return new f(t);if(!e&&void 0!==t.length)return new p(t);if(!e)throw new TypeError("object is not iterable");return t[l.iterator]()}function i(t){var e=+t.length;return isNaN(e)?0:0!==e&&o(e)?(e=s(e)*Math.floor(Math.abs(e)))<=0?0:e>b?b:e:e}function o(t){return"number"==typeof t&&u.root.isFinite(t)}function s(t){var e=+t;return 0===e?e:isNaN(e)?e:e<0?-1:1}var a=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},u=t("../util/root"),c=t("../Observable"),l=t("../symbol/iterator"),h=function(t){function e(e,r){if(t.call(this),this.scheduler=r,null==e)throw new Error("iterator cannot be null.");this.iterator=n(e)}return a(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.index,r=t.hasError,n=t.iterator,i=t.subscriber;if(r)i.error(t.error);else{var o=n.next();o.done?i.complete():(i.next(o.value),t.index=e+1,i.closed?"function"==typeof n.return&&n.return():this.schedule(t))}},e.prototype._subscribe=function(t){var r=this,n=r.iterator,i=r.scheduler;if(i)return i.schedule(e.dispatch,0,{index:0,iterator:n,subscriber:t});for(;;){var o=n.next();if(o.done){t.complete();break}if(t.next(o.value),t.closed){"function"==typeof n.return&&n.return();break}}},e}(c.Observable);r.IteratorObservable=h;var f=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=t.length),this.str=t,this.idx=e,this.len=r}return t.prototype[l.iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),p=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=i(t)),this.arr=t,this.idx=e,this.len=r}return t.prototype[l.iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),b=Math.pow(2,53)-1},{"../Observable":155,"../symbol/iterator":242,"../util/root":258}],200:[function(t,e,r){"use strict";function n(t){var e=t.value,r=t.subscriber;r.closed||(r.next(e),r.complete())}function i(t){var e=t.err,r=t.subscriber;r.closed||r.error(e)}var o=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},s=t("../util/root"),a=function(t){function e(e,r){t.call(this),this.promise=e,this.scheduler=r}return o(e,t),e.create=function(t,r){return new e(t,r)},e.prototype._subscribe=function(t){var e=this,r=this.promise,o=this.scheduler;if(null==o)this._isScalar?t.closed||(t.next(this.value),t.complete()):r.then(function(r){e.value=r,e._isScalar=!0,t.closed||(t.next(r),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return o.schedule(n,0,{value:this.value,subscriber:t})}else r.then(function(r){e.value=r,e._isScalar=!0,t.closed||t.add(o.schedule(n,0,{value:r,subscriber:t}))},function(e){t.closed||t.add(o.schedule(i,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(t("../Observable").Observable);r.PromiseObservable=a},{"../Observable":155,"../util/root":258}],201:[function(t,e,r){arguments[4][103][0].apply(r,arguments)},{"../Observable":155,dup:103}],202:[function(t,e,r){arguments[4][104][0].apply(r,arguments)},{"../Observable":155,"../scheduler/async":241,"../util/isDate":251,"../util/isNumeric":253,"../util/isScheduler":256,dup:104}],203:[function(t,e,r){"use strict";var n=t("./DeferObservable");r.defer=n.DeferObservable.create},{"./DeferObservable":194}],204:[function(t,e,r){"use strict";function n(){if(f.root.XMLHttpRequest)return new f.root.XMLHttpRequest;if(f.root.XDomainRequest)return new f.root.XDomainRequest;throw new Error("CORS is not supported by your browser")}function i(){if(f.root.XMLHttpRequest)return new f.root.XMLHttpRequest;var t=void 0;try{for(var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],r=0;r<3;r++)try{if(t=e[r],new f.root.ActiveXObject(t))break}catch(t){}return new f.root.ActiveXObject(t)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}function o(t,e){return void 0===e&&(e=null),new m({method:"GET",url:t,headers:e})}function s(t,e,r){return new m({method:"POST",url:t,body:e,headers:r})}function a(t,e){return new m({method:"DELETE",url:t,headers:e})}function u(t,e,r){return new m({method:"PUT",url:t,body:e,headers:r})}function c(t,e,r){return new m({method:"PATCH",url:t,body:e,headers:r})}function l(t,e){return new m({method:"GET",url:t,responseType:"json",headers:e}).lift(new v.MapOperator(function(t,e){return t.response},null))}var h=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},f=t("../../util/root"),p=t("../../util/tryCatch"),b=t("../../util/errorObject"),d=t("../../Observable"),y=t("../../Subscriber"),v=t("../../operator/map");r.ajaxGet=o,r.ajaxPost=s,r.ajaxDelete=a,r.ajaxPut=u,r.ajaxPatch=c,r.ajaxGetJSON=l;var m=function(t){function e(e){t.call(this);var r={async:!0,createXHR:function(){return this.crossDomain?n.call(this):i()},crossDomain:!1,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)r.url=e;else for(var o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);this.request=r}return h(e,t),e.prototype._subscribe=function(t){return new g(t,this.request)},e.create=function(){var t=function(t){return new e(t)};return t.get=o,t.post=s,t.delete=a,t.put=u,t.patch=c,t.getJSON=l,t}(),e}(d.Observable);r.AjaxObservable=m;var g=function(t){function e(e,r){t.call(this,e),this.request=r,this.done=!1;var n=r.headers=r.headers||{};r.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in n||f.root.FormData&&r.body instanceof f.root.FormData||void 0===r.body||(n["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),r.body=this.serializeBody(r.body,r.headers["Content-Type"]),this.send()}return h(e,t),e.prototype.next=function(t){this.done=!0;var e=this,r=e.xhr,n=e.request,i=e.destination,o=new _(t,r,n);i.next(o)},e.prototype.send=function(){var t=this,e=t.request,r=t.request,n=r.user,i=r.method,o=r.url,s=r.async,a=r.password,u=r.headers,c=r.body,l=e.createXHR,h=p.tryCatch(l).call(e);if(h===b.errorObject)this.error(b.errorObject.e);else{this.xhr=h,this.setupEvents(h,e);if((n?p.tryCatch(h.open).call(h,i,o,s,n,a):p.tryCatch(h.open).call(h,i,o,s))===b.errorObject)return this.error(b.errorObject.e),null;if(h.timeout=e.timeout,h.responseType=e.responseType,"withCredentials"in h&&(h.withCredentials=!!e.withCredentials),this.setHeaders(h,u),(c?p.tryCatch(h.send).call(h,c):p.tryCatch(h.send).call(h))===b.errorObject)return this.error(b.errorObject.e),null}return h},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(f.root.FormData&&t instanceof f.root.FormData)return t;if(e){var r=e.indexOf(";");-1!==r&&(e=e.substring(0,r))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map(function(e){return encodeURI(e)+"="+encodeURI(t[e])}).join("&");case"application/json":return JSON.stringify(t);default:return t}},e.prototype.setHeaders=function(t,e){for(var r in e)e.hasOwnProperty(r)&&t.setRequestHeader(r,e[r])},e.prototype.setupEvents=function(t,e){function r(t){var e=r,n=e.subscriber,i=e.progressSubscriber,o=e.request;i&&i.error(t),n.error(new O(this,o))}function n(t){var e=n,r=e.subscriber,i=e.progressSubscriber,o=e.request;if(4===this.readyState){var s=1223===this.status?204:this.status,a="text"===this.responseType?this.response||this.responseText:this.response;0===s&&(s=a?200:0),200<=s&&s<300?(i&&i.complete(),r.next(t),r.complete()):(i&&i.error(t),r.error(new w("ajax error "+s,this,o)))}}var i=e.progressSubscriber;if(t.ontimeout=r,r.request=e,r.subscriber=this,r.progressSubscriber=i,t.upload&&"withCredentials"in t){if(i){var o;o=function(t){o.progressSubscriber.next(t)},f.root.XDomainRequest?t.onprogress=o:t.upload.onprogress=o,o.progressSubscriber=i}var s;s=function(t){var e=s,r=e.progressSubscriber,n=e.subscriber,i=e.request;r&&r.error(t),n.error(new w("ajax error",this,i))},t.onerror=s,s.request=e,s.subscriber=this,s.progressSubscriber=i}t.onreadystatechange=n,n.subscriber=this,n.progressSubscriber=i,n.request=e},e.prototype.unsubscribe=function(){var e=this,r=e.done,n=e.xhr;!r&&n&&4!==n.readyState&&"function"==typeof n.abort&&n.abort(),t.prototype.unsubscribe.call(this)},e}(y.Subscriber);r.AjaxSubscriber=g;var _=function(){return function(t,e,r){switch(this.originalEvent=t,this.xhr=e,this.request=r,this.status=e.status,this.responseType=e.responseType||r.responseType,this.responseType){case"json":this.response="response"in e?e.responseType?e.response:JSON.parse(e.response||e.responseText||"null"):JSON.parse(e.responseText||"null");break;case"xml":this.response=e.responseXML;break;case"text":default:this.response="response"in e?e.response:e.responseText}}}();r.AjaxResponse=_;var w=function(t){function e(e,r,n){t.call(this,e),this.message=e,this.xhr=r,this.request=n,this.status=r.status}return h(e,t),e}(Error);r.AjaxError=w;var O=function(t){function e(e,r){t.call(this,"ajax timeout",e,r)}return h(e,t),e}(w);r.AjaxTimeoutError=O},{"../../Observable":155,"../../Subscriber":161,"../../operator/map":221,"../../util/errorObject":248,"../../util/root":258,"../../util/tryCatch":261}],205:[function(t,e,r){"use strict";var n=t("./AjaxObservable");r.ajax=n.AjaxObservable.create},{"./AjaxObservable":204}],206:[function(t,e,r){"use strict";var n=t("./FromObservable");r.from=n.FromObservable.create},{"./FromObservable":198}],207:[function(t,e,r){arguments[4][106][0].apply(r,arguments)},{"./FromEventObservable":197,dup:106}],208:[function(t,e,r){"use strict";var n=t("../operator/merge");r.merge=n.mergeStatic},{"../operator/merge":222}],209:[function(t,e,r){"use strict";var n=t("./ArrayObservable");r.of=n.ArrayObservable.of},{"./ArrayObservable":192}],210:[function(t,e,r){"use strict";var n=t("./ErrorObservable");r._throw=n.ErrorObservable.create},{"./ErrorObservable":196}],211:[function(t,e,r){arguments[4][107][0].apply(r,arguments)},{"./TimerObservable":202,dup:107}],212:[function(t,e,r){arguments[4][108][0].apply(r,arguments)},{"../OuterSubscriber":157,"../util/subscribeToResult":259,dup:108}],213:[function(t,e,r){arguments[4][109][0].apply(r,arguments)},{"../Observable":155,"../observable/ArrayObservable":192,"../util/isScheduler":256,"./mergeAll":223,dup:109}],214:[function(t,e,r){"use strict";var n=t("./mergeMap");r.concatMap=function(t,e){return this.lift(new n.MergeMapOperator(t,e,1))}},{"./mergeMap":224}],215:[function(t,e,r){arguments[4][110][0].apply(r,arguments)},{"../Subscriber":161,"../scheduler/async":241,dup:110}],216:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../scheduler/async"),o=t("../util/isDate"),s=t("../Subscriber"),a=t("../Notification");r.delay=function(t,e){void 0===e&&(e=i.async);var r=o.isDate(t)?+t-e.now():Math.abs(t);return this.lift(new u(r,e))};var u=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.delay,this.scheduler))},t}(),c=function(t){function e(e,r,n){t.call(this,e),this.delay=r,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}return n(e,t),e.dispatch=function(t){for(var e=t.source,r=e.queue,n=t.scheduler,i=t.destination;r.length>0&&r[0].time-n.now()<=0;)r.shift().notification.observe(i);if(r.length>0){var o=Math.max(0,r[0].time-n.now());this.schedule(t,o)}else e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,r=new l(e.now()+this.delay,t);this.queue.push(r),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(a.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(a.Notification.createComplete())},e}(s.Subscriber),l=function(){return function(t,e){this.time=t,this.notification=e}}()},{"../Notification":154,"../Subscriber":161,"../scheduler/async":241,"../util/isDate":251}],217:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../util/tryCatch"),s=t("../util/errorObject");r.distinctUntilChanged=function(t,e){return this.lift(new a(t,e))};var a=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.compare,this.keySelector))},t}(),u=function(t){function e(e,r,n){t.call(this,e),this.keySelector=n,this.hasKey=!1,"function"==typeof r&&(this.compare=r)}return n(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=t;if(this.keySelector&&(e=o.tryCatch(this.keySelector)(t))===s.errorObject)return this.destination.error(s.errorObject.e);var r=!1;if(this.hasKey){if((r=o.tryCatch(this.compare)(this.key,e))===s.errorObject)return this.destination.error(s.errorObject.e)}else this.hasKey=!0;!1===Boolean(r)&&(this.key=e,this.destination.next(t))},e}(i.Subscriber)},{"../Subscriber":161,"../util/errorObject":248,"../util/tryCatch":261}],218:[function(t,e,r){"use strict";var n=t("./distinctUntilChanged");r.distinctUntilKeyChanged=function(t,e){return n.distinctUntilChanged.call(this,function(r,n){return e?e(r[t],n[t]):r[t]===n[t]})}},{"./distinctUntilChanged":217}],219:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");r._do=function(t,e,r){return this.lift(new o(t,e,r))};var o=function(){function t(t,e,r){this.nextOrObserver=t,this.error=e,this.complete=r}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.nextOrObserver,this.error,this.complete))},t}(),s=function(t){function e(e,r,n,o){t.call(this,e);var s=new i.Subscriber(r,n,o);s.syncErrorThrowable=!0,this.add(s),this.safeSubscriber=s}return n(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(i.Subscriber)},{"../Subscriber":161}],220:[function(t,e,r){arguments[4][113][0].apply(r,arguments)},{"../Subscriber":161,dup:113}],221:[function(t,e,r){arguments[4][115][0].apply(r,arguments)},{"../Subscriber":161,dup:115}],222:[function(t,e,r){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=Number.POSITIVE_INFINITY,n=null,u=t[t.length-1];return a.isScheduler(u)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof u&&(r=t.pop()),null===n&&1===t.length&&t[0]instanceof i.Observable?t[0]:new o.ArrayObservable(t,n).lift(new s.MergeAllOperator(r))}var i=t("../Observable"),o=t("../observable/ArrayObservable"),s=t("./mergeAll"),a=t("../util/isScheduler");r.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(n.apply(void 0,[this].concat(t)))},r.mergeStatic=n},{"../Observable":155,"../observable/ArrayObservable":192,"../util/isScheduler":256,"./mergeAll":223}],223:[function(t,e,r){arguments[4][116][0].apply(r,arguments)},{"../OuterSubscriber":157,"../util/subscribeToResult":259,dup:116}],224:[function(t,e,r){arguments[4][117][0].apply(r,arguments)},{"../OuterSubscriber":157,"../util/subscribeToResult":259,dup:117}],225:[function(t,e,r){arguments[4][118][0].apply(r,arguments)},{"../observable/ConnectableObservable":193,dup:118}],226:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../Notification");r.observeOn=function(t,e){return void 0===e&&(e=0),this.lift(new s(t,e))};var s=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.scheduler,this.delay))},t}();r.ObserveOnOperator=s;var a=function(t){function e(e,r,n){void 0===n&&(n=0),t.call(this,e),this.scheduler=r,this.delay=n}return n(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new u(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(o.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(o.Notification.createComplete())},e}(i.Subscriber);r.ObserveOnSubscriber=a;var u=function(){return function(t,e){this.notification=t,this.destination=e}}();r.ObserveOnMessage=u},{"../Notification":154,"../Subscriber":161}],227:[function(t,e,r){"use strict";var n=t("../util/not"),i=t("./filter");r.partition=function(t,e){return[i.filter.call(this,t,e),i.filter.call(this,n.not(t,e))]}},{"../util/not":257,"./filter":220}],228:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subject"),o=t("../util/tryCatch"),s=t("../util/errorObject"),a=t("../OuterSubscriber"),u=t("../util/subscribeToResult");r.retryWhen=function(t){return this.lift(new c(t,this))};var c=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.notifier,this.source))},t}(),l=function(t){function e(e,r,n){t.call(this,e),this.notifier=r,this.source=n}return n(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=this.errors,n=this.retries,a=this.retriesSubscription;if(n)this.errors=null,this.retriesSubscription=null;else{if(r=new i.Subject,(n=o.tryCatch(this.notifier)(r))===s.errorObject)return t.prototype.error.call(this,s.errorObject.e);a=u.subscribeToResult(this,n)}this._unsubscribeAndRecycle(),this.errors=r,this.retries=n,this.retriesSubscription=a,r.next(e)}},e.prototype._unsubscribe=function(){var t=this,e=t.errors,r=t.retriesSubscription;e&&(e.unsubscribe(),this.errors=null),r&&(r.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,r,n,i){var o=this,s=o.errors,a=o.retries,u=o.retriesSubscription;this.errors=null,this.retries=null,this.retriesSubscription=null,this._unsubscribeAndRecycle(),this.errors=s,this.retries=a,this.retriesSubscription=u,this.source.subscribe(this)},e}(a.OuterSubscriber)},{"../OuterSubscriber":157,"../Subject":159,"../util/errorObject":248,"../util/subscribeToResult":259,"../util/tryCatch":261}],229:[function(t,e,r){arguments[4][120][0].apply(r,arguments)},{"../Subject":159,"./multicast":225,dup:120}],230:[function(t,e,r){arguments[4][121][0].apply(r,arguments)},{"../observable/ArrayObservable":192,"../observable/EmptyObservable":195,"../observable/ScalarObservable":201,"../util/isScheduler":256,"./concat":213,dup:121}],231:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),o=t("../util/subscribeToResult");r._switch=function(){return this.lift(new s)};var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){t.call(this,e),this.active=0,this.hasCompleted=!1}return n(e,t),e.prototype._next=function(t){this.unsubscribeInner(),this.active++,this.add(this.innerSubscription=o.subscribeToResult(this,t))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&this.destination.complete()},e.prototype.unsubscribeInner=function(){this.active=this.active>0?this.active-1:0;var t=this.innerSubscription;t&&(t.unsubscribe(),this.remove(t))},e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.unsubscribeInner(),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(i.OuterSubscriber)},{"../OuterSubscriber":157,"../util/subscribeToResult":259}],232:[function(t,e,r){arguments[4][122][0].apply(r,arguments)},{"../OuterSubscriber":157,"../util/subscribeToResult":259,dup:122}],233:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../util/ArgumentOutOfRangeError"),s=t("../observable/EmptyObservable");r.take=function(t){return 0===t?new s.EmptyObservable:this.lift(new a(t))};var a=function(){function t(t){if(this.total=t,this.total<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.total))},t}(),u=function(t){function e(e,r){t.call(this,e),this.total=r,this.count=0}return n(e,t),e.prototype._next=function(t){var e=this.total,r=++this.count;r<=e&&(this.destination.next(t),r===e&&(this.destination.complete(),this.unsubscribe()))},e}(i.Subscriber)},{"../Subscriber":161,"../observable/EmptyObservable":195,"../util/ArgumentOutOfRangeError":245}],234:[function(t,e,r){arguments[4][123][0].apply(r,arguments)},{"../OuterSubscriber":157,"../util/subscribeToResult":259,dup:123}],235:[function(t,e,r){"use strict";function n(t){t.subscriber.clearThrottle()}var i=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../scheduler/async");r.throttleTime=function(t,e){return void 0===e&&(e=s.async),this.lift(new a(t,e))};var a=function(){function t(t,e){this.duration=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.duration,this.scheduler))},t}(),u=function(t){function e(e,r,n){t.call(this,e),this.duration=r,this.scheduler=n}return i(e,t),e.prototype._next=function(t){this.throttled||(this.add(this.throttled=this.scheduler.schedule(n,this.duration,{subscriber:this})),this.destination.next(t))},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(t.unsubscribe(),this.remove(t),this.throttled=null)},e}(o.Subscriber)},{"../Subscriber":161,"../scheduler/async":241}],236:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),o=t("../util/subscribeToResult");r.withLatestFrom=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r;"function"==typeof t[t.length-1]&&(r=t.pop());var n=t;return this.lift(new s(n,r))};var s=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.observables,this.project))},t}(),a=function(t){function e(e,r,n){t.call(this,e),this.observables=r,this.project=n,this.toRespond=[];var i=r.length;this.values=new Array(i);for(s=0;s<i;s++)this.toRespond.push(s);for(var s=0;s<i;s++){var a=r[s];this.add(o.subscribeToResult(this,a,a,s))}}return n(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.values[r]=e;var o=this.toRespond;if(o.length>0){var s=o.indexOf(r);-1!==s&&o.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.OuterSubscriber)},{"../OuterSubscriber":157,"../util/subscribeToResult":259}],237:[function(t,e,r){arguments[4][124][0].apply(r,arguments)},{"../OuterSubscriber":157,"../Subscriber":161,"../observable/ArrayObservable":192,"../symbol/iterator":242,"../util/isArray":249,"../util/subscribeToResult":259,dup:124}],238:[function(t,e,r){arguments[4][125][0].apply(r,arguments)},{"../Subscription":162,dup:125}],239:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/root"),o=function(t){function e(e,r){t.call(this,e,r),this.scheduler=e,this.work=r,this.pending=!1}return n(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),i.root.setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){return void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending?e:i.root.clearInterval(e)&&void 0||void 0},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||new Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.delay=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null))},e}(t("./Action").Action);r.AsyncAction=o},{"../util/root":258,"./Action":238}],240:[function(t,e,r){arguments[4][127][0].apply(r,arguments)},{"../Scheduler":158,dup:127}],241:[function(t,e,r){arguments[4][128][0].apply(r,arguments)},{"./AsyncAction":239,"./AsyncScheduler":240,dup:128}],242:[function(t,e,r){arguments[4][129][0].apply(r,arguments)},{"../util/root":258,dup:129}],243:[function(t,e,r){arguments[4][130][0].apply(r,arguments)},{"../util/root":258,dup:130}],244:[function(t,e,r){arguments[4][131][0].apply(r,arguments)},{"../util/root":258,dup:131}],245:[function(t,e,r){"use strict";var n=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(){var e=t.call(this,"argument out of range");this.name=e.name="ArgumentOutOfRangeError",this.stack=e.stack,this.message=e.message}return n(e,t),e}(Error);r.ArgumentOutOfRangeError=i},{}],246:[function(t,e,r){arguments[4][132][0].apply(r,arguments)},{dup:132}],247:[function(t,e,r){arguments[4][133][0].apply(r,arguments)},{dup:133}],248:[function(t,e,r){arguments[4][134][0].apply(r,arguments)},{dup:134}],249:[function(t,e,r){arguments[4][135][0].apply(r,arguments)},{dup:135}],250:[function(t,e,r){arguments[4][136][0].apply(r,arguments)},{dup:136}],251:[function(t,e,r){arguments[4][137][0].apply(r,arguments)},{dup:137}],252:[function(t,e,r){arguments[4][138][0].apply(r,arguments)},{dup:138}],253:[function(t,e,r){arguments[4][139][0].apply(r,arguments)},{"../util/isArray":249,dup:139}],254:[function(t,e,r){arguments[4][140][0].apply(r,arguments)},{dup:140}],255:[function(t,e,r){arguments[4][141][0].apply(r,arguments)},{dup:141}],256:[function(t,e,r){arguments[4][142][0].apply(r,arguments)},{dup:142}],257:[function(t,e,r){"use strict";r.not=function(t,e){function r(){return!r.pred.apply(r.thisArg,arguments)}return r.pred=t,r.thisArg=e,r}},{}],258:[function(t,e,r){(function(t){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};"object"==("undefined"==typeof window?"undefined":e(window))&&window.window===window?r.root=window:"object"==("undefined"==typeof self?"undefined":e(self))&&self.self===self?r.root=self:"object"==(void 0===t?"undefined":e(t))&&t.global===t?r.root=t:function(){throw new Error("RxJS could not find any global context (window, self, global)")}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],259:[function(t,e,r){arguments[4][144][0].apply(r,arguments)},{"../InnerSubscriber":153,"../Observable":155,"../symbol/iterator":242,"../symbol/observable":243,"./isArrayLike":250,"./isObject":254,"./isPromise":255,"./root":258,dup:144}],260:[function(t,e,r){arguments[4][145][0].apply(r,arguments)},{"../Observer":156,"../Subscriber":161,"../symbol/rxSubscriber":244,dup:145}],261:[function(t,e,r){arguments[4][146][0].apply(r,arguments)},{"./errorObject":248,dup:146}],262:[function(t,e,r){"use strict";function n(t){var e=t.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);if("string"==typeof e[1]&&e[1].length>0&&e[1].toLowerCase()!==window.location.protocol)return!0;var r={http:80,https:443}[window.location.protocol];return"string"==typeof e[2]&&e[2].length>0&&e[2].replace(new RegExp(":("+r+")?$"),"")!==window.location.host}function i(t){return t.replace(/#.*/,"")}function o(t,e){var r=e||window.location.href,n=t.indexOf("#")>-1,o=i(t)===i(r);return n&&o}function s(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector).call(t,e)}Object.defineProperty(r,"__esModule",{value:!0}),r.isExternal=n,r.stripHash=i,r.isHash=o,r.matches=s,r.querySelectorInv=function(t,e){for(var r=t;r!==document&&r!==document.documentElement;){if(s(r,e))return r;r=r.parentNode}return null},r.shouldLoadAnchor=function(t,e,r){var i=t.href;return!(n(i)||o(i)||s(t,e)||""!==t.target||null!==r&&-1===i.search(r))},r.getScrollHeight=function(){var t=document.documentElement,e=document.body,r="scrollHeight";return t[r]||e[r]},r.getScrollLeft=function(){return window.pageXOffset||document.body.scrollLeft},r.getScrollTop=function(){return window.pageYOffset||document.body.scrollTop},r.expInterval=function(t,e){return a.Observable.create(function(r){function n(){r.next(i),i*=e,o=setTimeout(n,i)}var i=t,o=void 0;return o=setTimeout(n,i),function(){clearTimeout(o)}})},r.fragmentFromString=function(t){return document.createRange().createContextualFragment(t)};var a=t("rxjs/Observable")},{"rxjs/Observable":155}],263:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":s(e))&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":s(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),u=function(){function t(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(i)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=t("rxjs/Observable"),l=t("rxjs/Subject");t("rxjs/add/observable/defer"),t("rxjs/add/observable/from"),t("rxjs/add/observable/fromEvent"),t("rxjs/add/observable/merge"),t("rxjs/add/observable/of"),t("rxjs/add/observable/throw"),t("rxjs/add/observable/timer"),t("rxjs/add/observable/dom/ajax"),t("rxjs/add/operator/catch"),t("rxjs/add/operator/concatMap"),t("rxjs/add/operator/debounceTime"),t("rxjs/add/operator/delay"),t("rxjs/add/operator/distinctUntilKeyChanged"),t("rxjs/add/operator/do"),t("rxjs/add/operator/filter"),t("rxjs/add/operator/map"),t("rxjs/add/operator/mergeMap"),t("rxjs/add/operator/partition"),t("rxjs/add/operator/retryWhen"),t("rxjs/add/operator/share"),t("rxjs/add/operator/startWith"),t("rxjs/add/operator/switch"),t("rxjs/add/operator/switchMap"),t("rxjs/add/operator/take"),t("rxjs/add/operator/takeUntil"),t("rxjs/add/operator/throttleTime"),t("rxjs/add/operator/withLatestFrom"),t("rxjs/add/operator/zip");var h=function(t){return t&&t.__esModule?t:{default:t}}(t("y-component/src/component-core")),f=t("../common"),p=t("./kind");c.Observable.prototype.pauseWith=function(t){return this.withLatestFrom(t).filter(function(t){return!1===u(t,2)[1]}).map(function(t){return u(t,1)[0]})},r.default=function(t){return function(e){function r(){return n(this,r),i(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return o(r,(0,h.default)(t)),a(r,[{key:"getComponentName",value:function(){return"y-push-state"}},{key:"defaults",value:function(){return{replaceIds:[],linkSelector:"a[href]",scriptSelector:"script",scrollRestoration:!1,hrefRegex:null,blacklist:".no-push-state",duration:0,noPopDuration:!0}}},{key:"sideEffects",value:function(){return{}}},{key:"startHistory",value:function(){return this.checkPreCondition(),this.setupScrollRestoration(),this.cacheTitleElement(),this.setupObservables(),this}},{key:"checkPreCondition",value:function(){if(0===this.replaceIds.length){var t=this.el.id;if(!t)throw Error("No replace ids provided nor does this component have and id");console.warn("No replace ids provided. Will replace entire content of #"+t)}}},{key:"setupScrollRestoration",value:function(){"scrollRestoration"in history&&(history.scrollRestoration=this.scrollRestoration?"manual":"auto"),this.setScrollPosition(),window.addEventListener("beforeunload",this.updateHistoryState.bind(this))}},{key:"cacheTitleElement",value:function(){this.titleElement=document.querySelector("title")||{}}},{key:"bindPushEvents",value:function(t){var e=this;return this.fromEvents(t,"click").map(function(t){return new p.Push(t)}).filter(function(t){return e.isPageChangeEvent(t)}).do(function(t){var r=t.event;e.updateHistoryState(),r.preventDefault()})}},{key:"bindHintEvents",value:function(t){var e=this;return c.Observable.merge(this.fromEvents(t,"mouseenter"),this.fromEvents(t,"touchstart"),this.fromEvents(t,"focus")).map(function(t){return new p.Hint(t)}).filter(function(t){return e.isPageChangeAnchor(t)})}},{key:"bindPopstateEvent",value:function(){return c.Observable.fromEvent(window,"popstate").map(function(t){return new p.Pop(t)}).filter(function(){return null!=window.history.state})}},{key:"linkObservable",value:function(){return c.Observable.of(this.el.querySelectorAll(this.linkSelector))}},{key:"fromEvents",value:function(t,e){return t.mergeMap(function(t){return c.Observable.fromEvent(t,e)})}},{key:"fetchPage",value:function(t){var e=this;return c.Observable.ajax(this.hrefToAjax(t)).map(function(e){var r=e.response;return Object.assign(t,{response:r})}).catch(function(r){return e.recoverIfResponse(t,r)}).retryWhen(function(){return c.Observable.merge(c.Observable.fromEvent(window,"online"),(0,f.expInterval)(1e3,2)).do(e.onRetry.bind(e,t))})}},{key:"hrefToAjax",value:function(t){return{method:"GET",url:t.href,responseType:"text"}}},{key:"recoverIfResponse",value:function(t,e){var r=e.status,n=e.xhr;return n&&r&&r>400?c.Observable.of(Object.assign(t,{response:n.response})):(this.onError(Object.assign(t,e)),c.Observable.throw(e))}},{key:"setupObservables",value:function(){var t=this;this.push$$=new l.Subject,this.hint$$=new l.Subject;var e=this.push$$.switch().throttleTime(this.duration+100),r=this.bindPopstateEvent();this.page$=c.Observable.merge(e,r).share();var n=c.Observable.defer(function(){return c.Observable.merge(t.page$.map(function(){return!0}),t.render$.map(function(){return!1})).startWith(!1)});this.hint$=this.hint$$.switch().pauseWith(n),this.prefetch$=c.Observable.merge(this.hint$,this.page$).distinctUntilKeyChanged("href").switchMap(function(e){return t.fetchPage(e)}).catch(function(t,e){return e}).startWith({}).share(),this.render$=this.page$.do(this.onStart.bind(this)).withLatestFrom(this.prefetch$).switchMap(this.getResponse.bind(this)).map(this.responseToContent.bind(this)).do(this.onReady.bind(this)).do(this.updateDOM.bind(this)).do(this.resetScrollPostion.bind(this)).do(this.onAfter.bind(this)).catch(function(e,r){return t.onError(e),console.error(e),r}).share(),this.render$.debounceTime(this.duration).do(this.renewEventListeners.bind(this)).subscribe(),this.render$.switchMap(this.reinsertScriptTags.bind(this)).do(this.onLoad.bind(this)).catch(function(e,r){return t.onError(e),console.error(e),r}).subscribe(),this.page$.switchMap(function(){return c.Observable.timer(t.duration+200).do(t.onAnimationEnd.bind(t)).takeUntil(t.render$)}).do(this.onProgress.bind(this)).catch(function(e,r){return t.onError(e),console.error(e),r}).subscribe(),this.render$.subscribe(),this.onLoad({}),this.renewEventListeners()}},{key:"getResponse",value:function(t){var e=u(t,2),r=e[0],n=e[1],i=void 0;return r.href===n.href?(i=c.Observable.of(Object.assign(r,{response:n.response})),(r instanceof p.Push||!this.noPopDuration)&&(i=i.delay(this.duration+100))):(i=this.prefetch$.take(1).map(function(t){return Object.assign(r,{response:t.response})}),(r instanceof p.Push||!this.noPopDuration)&&(i=i.zip(c.Observable.timer(this.duration+100),function(t){return t}))),i}},{key:"responseToContent",value:function(t){var e=t.response,r=(0,f.fragmentFromString)(e),n=this.getTitleFromDocumentFragment(r),i=this.getContentFromDocumentFragment(r),o=this.tempRemoveScriptTags(i);return Object.assign(t,{title:n,content:i,scripts:o})}},{key:"updateDOM",value:function(t){try{var e=t.href,r=t.title,n=t.content;t instanceof p.Push&&window.history.replaceState({id:this.componentName},r,e),this.titleElement.textContent=r,this.replaceContent(n)}catch(e){throw Object.assign(t,{error:e})}}},{key:"tempRemoveScriptTags",value:function(t){var e=this,r=[];return t.forEach(function(t){return Array.prototype.forEach.call(t.querySelectorAll(e.scriptSelector),function(t){var e=[t,t.previousElementSibling];t.parentNode.removeChild(t),r.push(e)})}),r}},{key:"insertScript",value:function(t){var e=u(t,2),r=e[0],n=e[1];return""!==r.src?c.Observable.create(function(t){r.addEventListener("load",function(e){t.next(e),t.complete()}),r.addEventListener("error",function(e){t.error(e)}),n.parentNode.insertBefore(r,n.nextElementSibling)}):c.Observable.of({}).do(function(){n.parentNode.insertBefore(r,n.nextElementSibling)})}},{key:"reinsertScriptTags",value:function(t){var e=t.scripts;return 0===e.length?c.Observable.of({}):c.Observable.from(e).concatMap(this.insertScript)}},{key:"renewEventListeners",value:function(){var t=this.linkObservable();this.push$$.next(this.bindPushEvents(t)),this.hint$$.next(this.bindHintEvents(t))}},{key:"isPageChangeEvent",value:function(t){var e=t.event;return!e.metaKey&&!e.ctrlKey&&this.isPageChangeAnchor(t)}},{key:"isPageChangeAnchor",value:function(t){var e=t.event.currentTarget;return null!=e&&(0,f.shouldLoadAnchor)(e,this.blacklist,this.hrefRegex)}},{key:"getTitleFromDocumentFragment",value:function(t){return(t.querySelector("title")||{}).textContent}},{key:"getContentFromDocumentFragment",value:function(t){return this.replaceIds.length>0?this.replaceIds.map(function(e){return t.querySelector("#"+e)}):t.querySelector("#"+this.el.id)}},{key:"replaceContent",value:function(t){this.replaceIds.length>0?this.replaceContentByIds(t):this.replaceContentWholesale(t)}},{key:"replaceContentByIds",value:function(t){var e=this.replaceIds.map(function(t){return document.getElementById(t)});Array.prototype.forEach.call(e,function(e){e.parentNode.replaceChild(t.shift(),e)})}},{key:"replaceContentWholesale",value:function(t){this.el.innerHTML=t.innerHTML}},{key:"saveScrollPosition",value:function(t){return Object.assign(t,{scrollTop:(0,f.getScrollTop)(),scrollHeight:(0,f.getScrollHeight)()})}},{key:"updateHistoryState",value:function(){var t=history.state||{id:this.componentName};t=this.scrollRestoration?this.saveScrollPosition(t):t,history.replaceState(t,document.title,window.location.href)}},{key:"setScrollPosition",value:function(){var t=history.state||{};document.body.style.minHeight=(t.scrollHeight||0)+"px",null!=t.scrollTop&&window.scroll(window.pageXOffset,t.scrollTop),document.body.style.minHeight=""}},{key:"resetScrollPostion",value:function(t){this.scrollRestoration&&t instanceof p.Pop&&this.setScrollPosition()}},{key:"onStart",value:function(t){var e=t.href;t instanceof p.Push&&window.history.pushState({id:this.componentName},"",e),this.fireEvent("start",{detail:t})}},{key:"onReady",value:function(t){this.fireEvent("ready",{detail:t})}},{key:"onAfter",value:function(t){this.fireEvent("after",{detail:t})}},{key:"onError",value:function(t){this.fireEvent("error",{detail:t})}},{key:"onProgress",value:function(t){this.fireEvent("progress",{detail:t})}},{key:"onRetry",value:function(t){this.fireEvent("retry",{detail:t})}},{key:"onAnimationEnd",value:function(t){this.fireEvent("animationend",{detail:t})}},{key:"onLoad",value:function(t){this.fireEvent("load",{detail:t})}}]),r}()}},{"../common":262,"./kind":264,"rxjs/Observable":155,"rxjs/Subject":159,"rxjs/add/observable/defer":163,"rxjs/add/observable/dom/ajax":164,"rxjs/add/observable/from":165,"rxjs/add/observable/fromEvent":166,"rxjs/add/observable/merge":167,"rxjs/add/observable/of":168,"rxjs/add/observable/throw":169,"rxjs/add/observable/timer":170,"rxjs/add/operator/catch":171,"rxjs/add/operator/concatMap":172,"rxjs/add/operator/debounceTime":173,"rxjs/add/operator/delay":174,"rxjs/add/operator/distinctUntilKeyChanged":175,"rxjs/add/operator/do":176,"rxjs/add/operator/filter":177,"rxjs/add/operator/map":178,"rxjs/add/operator/mergeMap":179,"rxjs/add/operator/partition":180,"rxjs/add/operator/retryWhen":181,"rxjs/add/operator/share":182,"rxjs/add/operator/startWith":183,"rxjs/add/operator/switch":184,"rxjs/add/operator/switchMap":185,"rxjs/add/operator/take":186,"rxjs/add/operator/takeUntil":187,"rxjs/add/operator/throttleTime":188,"rxjs/add/operator/withLatestFrom":189,"rxjs/add/operator/zip":190,"y-component/src/component-core":149}],264:[function(t,e,r){"use strict";function n(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":s(e))&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":s(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),u=r.Kind=function t(e){o(this,t),this.event=e};r.Push=function(t){function e(t){o(this,e);var r=n(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.href=t.currentTarget.href,r}return i(e,u),a(e,[{key:"type",get:function(){return"push"}}]),e}(),r.Hint=function(t){function e(t){o(this,e);var r=n(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.href=t.currentTarget.href,r}return i(e,u),a(e,[{key:"type",get:function(){return"hint"}}]),e}(),r.Pop=function(t){function e(t){o(this,e);var r=n(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.href=window.location.href,r}return i(e,u),a(e,[{key:"type",get:function(){return"pop"}}]),e}()},{}],265:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":s(e))&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":s(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),u=function(t){return t&&t.__esModule?t:{default:t}}(t("../core")),c=function(t){function e(t,r){n(this,e);var o=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o.setupComponent(t,r),o}return o(e,(0,u.default)()),a(e,[{key:"setupDOM",value:function(t){if(!t)throw Error("No element provided");return t}}]),e}();r.default=c},{"../core":263}]},{},[8]);
|
data/assets/version.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-hydejack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.6.
|
4
|
+
version: 6.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Klampfer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|