cyclejs/cycle-core

View on GitHub
docs/js/example-hello-world.min.js

Summary

Maintainability
A
0 mins
Test Coverage
var $jscomp={scope:{},owns:function(c,h){return Object.prototype.hasOwnProperty.call(c,h)}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(c,h,p){if(p.get||p.set)throw new TypeError("ES3 does not support getters and setters.");c!=Array.prototype&&c!=Object.prototype&&(c[h]=p.value)};$jscomp.getGlobal=function(c){return"undefined"!=typeof window&&window===c?c:"undefined"!=typeof global&&null!=global?global:c};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(c,h,p,k){if(h){p=$jscomp.global;c=c.split(".");for(k=0;k<c.length-1;k++){var u=c[k];u in p||(p[u]={});p=p[u]}c=c[c.length-1];k=p[c];h=h(k);h!=k&&null!=h&&$jscomp.defineProperty(p,c,{configurable:!0,writable:!0,value:h})}};$jscomp.polyfill("Object.assign",function(c){return c?c:function(c,p){for(var k=1;k<arguments.length;k++){var u=arguments[k];if(u)for(var q in u)$jscomp.owns(u,q)&&(c[q]=u[q])}return c}},"es6-impl","es3");$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(c){return $jscomp.SYMBOL_PREFIX+(c||"")+$jscomp.symbolCounter_++};
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var c=$jscomp.global.Symbol.iterator;c||(c=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[c]&&$jscomp.defineProperty(Array.prototype,c,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(c){var h=0;return $jscomp.iteratorPrototype(function(){return h<c.length?{done:!1,value:c[h++]}:{done:!0}})};
$jscomp.iteratorPrototype=function(c){$jscomp.initSymbolIterator();c={next:c};c[$jscomp.global.Symbol.iterator]=function(){return this};return c};$jscomp.array=$jscomp.array||{};$jscomp.iteratorFromArray=function(c,h){$jscomp.initSymbolIterator();c instanceof String&&(c+="");var p=0,k={next:function(){if(p<c.length){var u=p++;return{value:h(u,c[u]),done:!1}}k.next=function(){return{done:!0,value:void 0}};return k.next()}};k[Symbol.iterator]=function(){return k};return k};
$jscomp.polyfill("Array.prototype.keys",function(c){return c?c:function(){return $jscomp.iteratorFromArray(this,function(c){return c})}},"es6-impl","es3");$jscomp.polyfill("Array.prototype.values",function(c){return c?c:function(){return $jscomp.iteratorFromArray(this,function(c,p){return p})}},"es6","es3");
(function e$jscomp$0(h,p,k){function u(m,y){if(!p[m]){if(!h[m]){var g="function"==typeof require&&require;if(!y&&g)return g(m,!0);if(q)return q(m,!0);y=Error("Cannot find module '"+m+"'");throw y.code="MODULE_NOT_FOUND",y;}y=p[m]={exports:{}};h[m][0].call(y.exports,function(f){var g=h[m][1][f];return u(g?g:f)},y,y.exports,e$jscomp$0,h,p,k)}return p[m].exports}for(var q="function"==typeof require&&require,D=0;D<k.length;D++)u(k[D]);return u})({1:[function(c,h,p){function k(c,g){Object.defineProperty(c,
"dispose",{enumerable:!1,value:function(){g.dispose()}});return c}function u(c){return function(){for(var g in c)c.hasOwnProperty(g)&&"function"===typeof c[g].dispose&&c[g].dispose()}}function q(c){c=c.stack||c;console&&console.error&&console.error(c)}function D(c,g){return m.Observable.create(function(f){var k=new m.CompositeDisposable;setTimeout(function(){for(var v in c)c.hasOwnProperty(v)&&g.hasOwnProperty(v)&&!g[v].isDisposed&&k.add(c[v].doOnError(q).subscribe(g[v].asObserver()));f.onNext(k)},
1);return function(){k.dispose();for(var c in g)g.hasOwnProperty(c)&&g[c].dispose()}})}var m=c("rx");h.exports={run:function(c,g){if("function"!==typeof c)throw Error("First argument given to Cycle.run() must be the 'main' function.");if("object"!==typeof g||null===g)throw Error("Second argument given to Cycle.run() must be an object with driver functions as properties.");var f;a:{for(f in g)if(g.hasOwnProperty(f)){f=!1;break a}f=!0}if(f)throw Error("Second argument given to Cycle.run() must be an object with at least one driver function declared as a property.");
f={};for(var q in g)g.hasOwnProperty(q)&&(f[q]=new m.ReplaySubject(1));q={};for(var v in g)g.hasOwnProperty(v)&&(q[v]=g[v](f[v],v));c=c(q);g=D(c,f).subscribe();c=k(c,g);Object.defineProperty(q,"dispose",{enumerable:!1,value:u(q)});return{sources:q,sinks:c}}}},{rx:23}],2:[function(c,h,p){p=Object.assign||function(c){for(var g=1;g<arguments.length;g++){var f=arguments[g],k;for(k in f)Object.prototype.hasOwnProperty.call(f,k)&&(c[k]=f[k])}return c};var k=c("./virtual-hyperscript-svg"),u=c("./render-dom").makeDOMDriver,
q=c("./render-html").makeHTMLDriver,D=c("./mock-dom-source"),m=c("./virtual-hyperscript");c=c("hyperscript-helpers")(m);c=p({makeDOMDriver:u,makeHTMLDriver:q,h:m},c,{hJSX:function(c,g){for(var f=arguments.length,k=Array(2<f?f-2:0),v=2;v<f;v++)k[v-2]=arguments[v];return m(c,g,k)},svg:k,mockDOMSource:D});h.exports=c},{"./mock-dom-source":4,"./render-dom":5,"./render-html":6,"./virtual-hyperscript":9,"./virtual-hyperscript-svg":8,"hyperscript-helpers":16}],3:[function(c,h,p){function k(c){var g=c.element,
f=c.eventName,k=c.handler,m=c.useCapture;if(g.addEventListener)return g.addEventListener(f,k,m),q(function(){g.removeEventListener(f,k,m)});throw Error("No listener found");}function u(c){var g=c.element,f=c.eventName,m=c.handler;c=c.useCapture;var q=new D;if(Array.isArray(g))for(var h=0,y=g.length;h<y;h++)q.add(u({element:g[h],eventName:f,handler:m,useCapture:c}));else g&&q.add(k({element:g,eventName:f,handler:m,useCapture:c}));return q}c=c("rx");var q=c.Disposable.create,D=c.CompositeDisposable,
m=c.AnonymousObservable;h.exports=function(c,g){var f=2>=arguments.length||void 0===arguments[2]?!1:arguments[2];return(new m(function(k){return u({element:c,eventName:g,handler:function(c){k.onNext(c)},useCapture:f})})).share()}},{rx:23}],4:[function(c,h,p){function k(c){return function(k){for(var m in c)if(c.hasOwnProperty(m)&&m===k)return c[m];return u}}Object.defineProperty(p,"__esModule",{value:!0});c=c("rx");var u=(c&&c.__esModule?c:{"default":c})["default"].Observable.empty();p["default"]=
function(){var c=0>=arguments.length||void 0===arguments[0]?{}:arguments[0];return{select:function(q){for(var m in c)if(c.hasOwnProperty(m)&&m===q)return{observable:u,events:k(c[m])};return{observable:u,events:function(){return u}}}}};h.exports=p["default"]},{rx:23}],5:[function(c,h,p){function k(c){return"object"===typeof HTMLElement?c instanceof HTMLElement||c instanceof DocumentFragment:c&&"object"===typeof c&&null!==c&&(1===c.nodeType||11===c.nodeType)&&"string"===typeof c.nodeName}function u(c,
f){var g=c.properties.id,k=c.properties.className,g=(void 0===g?"":g)===f.id,k=(void 0===k?"":k)===f.className,m=c.tagName.toUpperCase()===f.tagName;if(g&&k&&m)return c;g={};f.id&&(g.id=f.id);f.className&&(g.className=f.className);return E.h(f.tagName,g,[c])}function q(c){return function(f){var g=ka(f,2);f=g[0];g=g[1];if("undefined"===typeof g)return Q.Observable.empty();f=u(f,c);g=u(g,c);c=E.patch(c,E.diff(f,g));return Q.Observable.just(c)}}function D(c,f){var g=q(f);return c.flatMapLatest(R).startWith(E.parse(f)).pairwise().flatMap(g)}
function m(c,f){return c.select(".cycle-scope-"+f)}function y(c,f){return c.map(function(c){var g=c.properties.className,g=void 0===g?"":g;-1===g.indexOf("cycle-scope-"+f)&&(g=(g+" cycle-scope-"+f).trim(),c.properties.className=g);c.properties.attributes&&(g=c.properties.attributes["class"]||"",-1===g.indexOf("cycle-scope-"+f)&&(g=(g+" cycle-scope-"+f).trim(),c.properties.attributes["class"]=g));return c})}function g(c){var f=function(f){return f.match(/cycle-scope-(\S+)/)&&-1===c.indexOf("."+f)},
g=function(f){return f.match(/cycle-scope-(\S+)/)&&-1!==c.indexOf("."+f)};return function(c){for(;c;c=c.parentElement){var k=String.prototype.split,k=c.classList||k.call(c.className," ");if(Array.prototype.some.call(k,g))break;if(Array.prototype.some.call(k,f))return!1}return!0}}function f(c){c.hasOwnProperty("propagationHasBeenStopped")||function(){c.propagationHasBeenStopped=!1;var f=c.stopPropagation;c.stopPropagation=function(){f.call(this);this.propagationHasBeenStopped=!0}}()}function G(c,k){var m=
g(c),q=c.join(" "),v=c.join(""),u=k.parentElement;return function(c){f(c);if(c.propagationHasBeenStopped)return!1;for(var g=c.target;g&&g!==u;g=g.parentElement)if(m(g)&&(la(g,q)||la(g,v))){try{Object.defineProperty(c,"currentTarget",{value:g,configurable:!0})}catch(S){void 0}c.ownerTarget=g;return!0}return!1}}function v(c,f){return function(g){var k=1>=arguments.length||void 0===arguments[1]?{}:arguments[1];if("string"!==typeof g)throw Error("DOM driver's events() expects argument to be a string representing the event type to listen for.");
var m=!1;-1!==oa.indexOf(g)&&(m=!0);"boolean"===typeof k.useCapture&&(m=k.useCapture);return c.first().flatMapLatest(function(c){if(!f||0===f.length)return I(c,g,m);var k=G(f,c);return I(c,g,m).filter(k)}).share()}}function ha(c){return function(f){if("string"!==typeof f)throw Error("DOM driver's select() expects the argument to be a string as a CSS selector");var k=this.namespace;f=f.trim();var q=":root"===f?k:k.concat(f);return{observable:c.map(function(c){if(""===q.join(""))return c;var f=c.querySelectorAll(q.join(" "));
0===f.length&&(f=c.querySelectorAll(q.join("")));return Array.prototype.slice.call(f).filter(g(q))}),namespace:q,select:ha(c),events:v(c,q),isolateSource:m,isolateSink:y}}}function da(c){if(!c||"function"!==typeof c.subscribe)throw Error("The DOM driver function expects as input an Observable of virtual DOM elements");}function O(c){console&&console.error?console.error(c):console.log(c)}var ka=function(){return function(c,f){if(Array.isArray(c))return c;if(Symbol.iterator in Object(c)){var g=[],k=
!0,m=!1,q=void 0;try{for(var v=c[Symbol.iterator](),u;!(k=(u=v.next()).done)&&(g.push(u.value),!f||g.length!==f);k=!0);}catch(S){m=!0,q=S}finally{try{if(!k&&v["return"])v["return"]()}finally{if(m)throw q;}}return g}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),Q=c("rx"),I=c("./fromevent"),E={h:c("./virtual-hyperscript"),diff:c("virtual-dom/diff"),patch:c("virtual-dom/patch"),parse:"undefined"!==typeof window?c("vdom-parser"):function(){}},R=c("./transposition").transposeVTree,
la=void 0;try{la=c("matches-selector")}catch(Va){la=function(){}}var oa="load unload focus blur mouseenter mouseleave submit change reset".split(" ");h.exports={isElement:k,wrapTopLevelVTree:u,makeDiffAndPatchToElement$:q,renderRawRootElem$:D,validateDOMSink:da,makeDOMDriver:function(c,f){var g="string"===typeof c?document.querySelector(c):c;if("string"===typeof c&&null===g)throw Error("Cannot render into unknown element `"+c+"`");if(!k(g))throw Error("Given container is not a DOM element neither a selector string.");
c=(f||{}).onError;var q=void 0===c?O:c;if("function"!==typeof q)throw Error("You provided an `onError` to makeDOMDriver but it was not a function. It should be a callback function to handle errors.");return function(c){da(c);c=D(c,g).startWith(g).doOnError(q).replay(null,1);var f=c.connect();return{observable:c,namespace:[],select:ha(c),events:v(c,[]),dispose:function(){return f.dispose()},isolateSource:m,isolateSink:y}}}}},{"./fromevent":3,"./transposition":7,"./virtual-hyperscript":9,"matches-selector":21,
rx:23,"vdom-parser":28,"virtual-dom/diff":35,"virtual-dom/patch":36}],6:[function(c,h,p){function k(){return function(){return{observable:u.Observable.empty(),events:function(){return u.Observable.empty()}}}}var u=c("rx"),q=c("vdom-to-html"),D=c("./transposition").transposeVTree;h.exports={makeBogusSelect:k,makeHTMLDriver:function(){return function(c){c=c.flatMapLatest(D).last().map(q);c.select=k();return c}}}},{"./transposition":7,rx:23,"vdom-to-html":32}],7:[function(c,h,p){function k(c){if("function"===
typeof c.subscribe)return c.flatMapLatest(k);if("VirtualText"===c.type)return u.Observable.just(c);if("VirtualNode"===c.type&&Array.isArray(c.children)&&0<c.children.length)return u.Observable.combineLatest(c.children.map(k),function(){for(var k=arguments.length,u=Array(k),g=0;g<k;g++)u[g]=arguments[g];return new q(c.tagName,c.properties,u,c.key,c.namespace)});if("VirtualNode"===c.type||"Widget"===c.type||"Thunk"===c.type)return u.Observable.just(c);throw Error("Unhandled case in transposeVTree()");
}var u=c("rx"),q=c("virtual-dom/vnode/vnode");h.exports={transposeVTree:k}},{rx:23,"virtual-dom/vnode/vnode":55}],8:[function(c,h,p){var k=c("x-is-array"),u=c("./virtual-hyperscript"),q=c("virtual-dom/virtual-hyperscript/svg-attribute-namespace"),D=c("virtual-dom/virtual-hyperscript/hooks/attribute-hook");h.exports=function(c,h,g){var f;if(f=!g)f=h,f="string"===typeof f||k(f)||f&&"function"===typeof f.subscribe;f&&(g=h,h={});h=h||{};h.namespace="http://www.w3.org/2000/svg";f=h.attributes||(h.attributes=
{});for(var m in h)if(h.hasOwnProperty(m)){var v=q(m);if(void 0!==v){var y=h[m];if("string"===typeof y||"number"===typeof y||"boolean"===typeof y)null!==v?h[m]=D(v,y):(f[m]=y,h[m]=void 0)}}return u(c,h,g)}},{"./virtual-hyperscript":9,"virtual-dom/virtual-hyperscript/hooks/attribute-hook":43,"virtual-dom/virtual-hyperscript/svg-attribute-namespace":47,"x-is-array":60}],9:[function(c,h,p){function k(c,f,g,m){if("string"===typeof c)f.push(new y(c));else if("number"===typeof c)f.push(new y(String(c)));
else if(u(c))f.push(c);else if(D(c))for(var v=0;v<c.length;v++)k(c[v],f,g,m);else if(null!==c&&void 0!==c)throw f={tagName:g,properties:m},g=Error(),g.type="virtual-hyperscript.unexpected.virtual-element",g.message="Unexpected virtual child passed to h().\nExpected a VNode / Vthunk / VWidget / string but:\ngot:\n"+q(c)+".\nThe parent vnode is:\n"+q(f),"\nSuggested fix: change your `h(..., [ ... ])` callsite.",g.foreignObject=c,g.parentVnode=f,g;}function u(c){return g(c)||f(c)||c&&"function"===typeof c.subscribe||
G(c)||ha(c)}function q(c){try{return JSON.stringify(c,null,"    ")}catch(I){return String(c)}}var D=c("x-is-array"),m=c("virtual-dom/vnode/vnode.js"),y=c("virtual-dom/vnode/vtext.js"),g=c("virtual-dom/vnode/is-vnode"),f=c("virtual-dom/vnode/is-vtext"),G=c("virtual-dom/vnode/is-widget"),v=c("virtual-dom/vnode/is-vhook"),ha=c("virtual-dom/vnode/is-thunk"),da=c("virtual-dom/virtual-hyperscript/parse-tag.js"),O=c("virtual-dom/virtual-hyperscript/hooks/soft-set-hook.js"),ka=c("virtual-dom/virtual-hyperscript/hooks/ev-hook.js");
h.exports=function(c,f,g){var q=[],h,y,G,E;if(E=!g)E="string"===typeof f||D(f)||u(f);E&&(g=f,h={});h=h||f||{};c=da(c,h);h.hasOwnProperty("key")&&(y=h.key,h.key=void 0);h.hasOwnProperty("namespace")&&(G=h.namespace,h.namespace=void 0);"INPUT"!==c||G||!h.hasOwnProperty("value")||void 0===h.value||v(h.value)||(h.value=O(h.value));f=h;for(var p in f)f.hasOwnProperty(p)&&(E=f[p],v(E)||"ev-"===p.substr(0,3)&&(f[p]=ka(E)));void 0!==g&&null!==g&&k(g,q,c,h);return new m(c,h,q,y,G)}},{"virtual-dom/virtual-hyperscript/hooks/ev-hook.js":44,
"virtual-dom/virtual-hyperscript/hooks/soft-set-hook.js":45,"virtual-dom/virtual-hyperscript/parse-tag.js":46,"virtual-dom/vnode/is-thunk":49,"virtual-dom/vnode/is-vhook":50,"virtual-dom/vnode/is-vnode":51,"virtual-dom/vnode/is-vtext":52,"virtual-dom/vnode/is-widget":53,"virtual-dom/vnode/vnode.js":55,"virtual-dom/vnode/vtext.js":57,"x-is-array":60}],10:[function(c,h,p){},{}],11:[function(c,h,p){h.exports=function(c){var k=String.prototype.split,q=/()??/.exec("")[1]===c;return function(h,m,u){if("[object RegExp]"!==
Object.prototype.toString.call(m))return k.call(h,m,u);var g=[],f=(m.ignoreCase?"i":"")+(m.multiline?"m":"")+(m.extended?"x":"")+(m.sticky?"y":""),G=0;m=new RegExp(m.source,f+"g");var v,y,D;h+="";q||(v=new RegExp("^"+m.source+"$(?!\\s)",f));for(u=u===c?4294967295:u>>>0;y=m.exec(h);){f=y.index+y[0].length;if(f>G&&(g.push(h.slice(G,y.index)),!q&&1<y.length&&y[0].replace(v,function(){for(var f=1;f<arguments.length-2;f++)arguments[f]===c&&(y[f]=c)}),1<y.length&&y.index<h.length&&Array.prototype.push.apply(g,
y.slice(1)),D=y[0].length,G=f,g.length>=u))break;m.lastIndex===y.index&&m.lastIndex++}G===h.length?!D&&m.test("")||g.push(""):g.push(h.slice(G));return g.length>u?g.slice(0,u):g}}()},{}],12:[function(c,h,p){function k(){y=!1;g.length?m=g.concat(m):f=-1;m.length&&u()}function u(){if(!y){var c=setTimeout(k);y=!0;for(var h=m.length;h;){g=m;for(m=[];++f<h;)g&&g[f].run();f=-1;h=m.length}g=null;y=!1;clearTimeout(c)}}function q(c,f){this.fun=c;this.array=f}function D(){}c=h.exports={};var m=[],y=!1,g,f=
-1;c.nextTick=function(c){var f=Array(arguments.length-1);if(1<arguments.length)for(var g=1;g<arguments.length;g++)f[g-1]=arguments[g];m.push(new q(c,f));1!==m.length||y||setTimeout(u,0)};q.prototype.run=function(){this.fun.apply(null,this.array)};c.title="browser";c.browser=!0;c.env={};c.argv=[];c.version="";c.versions={};c.on=D;c.addListener=D;c.once=D;c.off=D;c.removeListener=D;c.removeAllListeners=D;c.emit=D;c.binding=function(c){throw Error("process.binding is not supported");};c.cwd=function(){return"/"};
c.chdir=function(c){throw Error("process.chdir is not supported");};c.umask=function(){return 0}},{}],13:[function(c,h,p){var k=/["'&<>]/;h.exports=function(c){c=""+c;var h=k.exec(c);if(!h)return c;var u="",m,y=0;for(m=h.index;m<c.length;m++){switch(c.charCodeAt(m)){case 34:h="\x26quot;";break;case 38:h="\x26amp;";break;case 39:h="\x26#39;";break;case 60:h="\x26lt;";break;case 62:h="\x26gt;";break;default:continue}y!==m&&(u+=c.substring(y,m));y=m+1;u+=h}return y!==m?u+c.substring(y,m):u}},{}],14:[function(c,
h,p){c("individual/one-version")("ev-store","7");h.exports=function(c){var k=c["__EV_STORE_KEY@7"];k||(k=c["__EV_STORE_KEY@7"]={});return k}},{"individual/one-version":18}],15:[function(c,h,p){p="undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{};p="undefined"!==typeof p?p:"undefined"!==typeof window?window:{};c=c("min-document");if("undefined"!==typeof document)h.exports=document;else{var k=p["__GLOBAL_DOCUMENT_CACHE@4"];k||(k=p["__GLOBAL_DOCUMENT_CACHE@4"]=
c);h.exports=k}},{"min-document":10}],16:[function(c,h,p){Object.defineProperty(p,"__esModule",{value:!0});var k=function(c){return"string"===typeof c&&0<c.length&&("."===c[0]||"#"===c[0])},u=function(c){return function(h){return function(m){for(var g=arguments.length,f=Array(1<g?g-1:0),q=1;q<g;q++)f[q-1]=arguments[q];return k(m)?c.apply(void 0,[h+m].concat(f)):c.apply(void 0,[h,m].concat(f))}}},q="a abbr address area article aside audio b base bdi bdo blockquote body br button canvas caption cite code col colgroup dd del dfn dir div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins kbd keygen label legend li link main map mark menu meta nav noscript object ol optgroup option p param pre q rp rt ruby s samp script section select small source span strong style sub sup table tbody td textarea tfoot th thead title tr u ul video".split(" ");
p["default"]=function(c){var h=u(c),y={TAG_NAMES:q,isSelector:k,createTag:h};q.forEach(function(c){y[c]=h(c)});return y};h.exports=p["default"]},{}],17:[function(c,h,p){(function(c){var k="undefined"!==typeof window?window:"undefined"!==typeof c?c:{};h.exports=function(c,h){return c in k?k[c]:k[c]=h}}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],18:[function(c,h,p){var k=c("./index.js");h.exports=function(c,h,D){var m="__INDIVIDUAL_ONE_VERSION_"+
c,q=k(m+"_ENFORCE_SINGLETON",h);if(q!==h)throw Error("Can only have one copy of "+c+".\nYou already have version "+q+" installed.\nThis means you cannot install version "+h);return k(m,D)}},{"./index.js":17}],19:[function(c,h,p){h.exports=function(c){return"object"===typeof c&&null!==c}},{}],20:[function(c,h,p){var k={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{"\u0130":"i",I:"\u0131","I\u0307":"i"}},az:{regexp:/[\u0130]/g,map:{"\u0130":"i",I:"\u0131","I\u0307":"i"}},lt:{regexp:/[\u0049\u004A\u012E\u00CC\u00CD\u0128]/g,
map:{I:"i\u0307",J:"j\u0307","\u012e":"\u012f\u0307","\u00cc":"i\u0307\u0300","\u00cd":"i\u0307\u0301","\u0128":"i\u0307\u0303"}}};h.exports=function(c,h){var q=k[h];c=null==c?"":String(c);q&&(c=c.replace(q.regexp,function(c){return q.map[c]}));return c.toLowerCase()}},{}],21:[function(c,h,p){c=Element.prototype;var k=c.matches||c.matchesSelector||c.webkitMatchesSelector||c.mozMatchesSelector||c.msMatchesSelector||c.oMatchesSelector;h.exports=function(c,h){if(k)return k.call(c,h);h=c.parentNode.querySelectorAll(h);
for(var q=0;q<h.length;q++)if(h[q]==c)return!0;return!1}},{}],22:[function(c,h,p){var k=c("sentence-case");h.exports=function(c,h){return k(c,h,"-")}},{"sentence-case":24}],23:[function(c,h,p){(function(c,u){(function(k){function q(b){return b&&b.Object===Object?b:null}function m(b){for(var a=[],d=0,e=b.length;d<e;d++)a.push(b[d]);return a}function y(b){return function(){try{return b.apply(this,arguments)}catch(a){return w.e=a,w}}}function g(b){throw b;}function f(){if(cb)try{throw Error();}catch(a){var b=
a.stack.split("\n"),b=0<b[0].indexOf("@")?b[1]:b[2];if(b=G(b))return Kb=b[0],b[1]}}function G(b){var a=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(b);if(a||(a=/at ([^ ]+):(\d+):(?:\d+)$/.exec(b)))return[a[1],Number(a[2])];if(b=/.*@(.+):(\d+)$/.exec(b))return[b[1],Number(b[2])]}function v(b,a,d,e,l,t){var c=Lb(b),f=c.length,g=Lb(a).length;if(f!==g&&!e)return!1;for(var g=f,h;g--;)if(h=c[g],!(e?h in a:pb.call(a,h)))return!1;for(var Ia=e;++g<f;){h=c[g];var n=b[h],m=a[h];if(void 0!==k||!d(n,m,e,l,t))return!1;
Ia||(Ia="constructor"===h)}return Ia||(d=b.constructor,e=a.constructor,!(d!==e&&"constructor"in b&&"constructor"in a)||"function"===typeof d&&d instanceof d&&"function"===typeof e&&e instanceof e)?!0:!1}function ha(b,a,d){switch(d){case "[object Boolean]":case "[object Date]":return+b===+a;case "[object Error]":return b.name===a.name&&b.message===a.message;case "[object Number]":return b!==+b?a!==+a:b===+a;case "[object RegExp]":case "[object String]":return b===a+""}return!1}function da(b){return!!b&&
"object"===typeof b}function O(b){return"number"===typeof b&&-1<b&&0===b%1&&b<=zc}function ka(b,a){for(var d=-1,e=b.length;++d<e;)if(a(b[d],d,b))return!0;return!1}function Q(b,a,d,e,l,t){var c=-1,f=b.length,g=a.length;if(f!==g&&!(e&&g>f))return!1;for(;++c<f;){var h=b[c],g=a[c];if(void 0!==k)return!1;if(e){if(!ka(a,function(a){return h===a||d(h,a,e,l,t)}))return!1}else if(h!==g&&!d(h,g,e,l,t))return!1}return!0}function I(b,a,d,e,l){if(b===a)return!0;if(null==b||null==a||!db(b)&&!da(a))return b!==b&&
a!==a;a:{var t=Mb(b),c=Mb(a),f="[object Array]",g="[object Array]";t||(f=eb.call(b),"[object Arguments]"===f?f="[object Object]":"[object Object]"!==f&&(t=da(b)&&O(b.length)&&!!aa[eb.call(b)]));c||(g=eb.call(a),"[object Arguments]"===g&&(g="[object Object]"));var k="[object Object]"===f&&!Nb(b),c="[object Object]"===g&&!Nb(a),g=f===g;if(!g||t||k){if(!d&&(f=k&&pb.call(b,"__wrapped__"),c=c&&pb.call(a,"__wrapped__"),f||c)){b=I(f?b.value():b,c?a.value():a,d,e,l);break a}if(g){e||(e=[]);l||(l=[]);for(f=
e.length;f--;)if(e[f]===b){b=l[f]===a;break a}e.push(b);l.push(a);b=(t?Q:v)(b,a,I,d,e,l);e.pop();l.pop()}else b=!1}else b=ha(b,a,f)}return b}function E(b,a){for(var d=Array(b),e=0;e<b;e++)d[e]=a();return d}function R(b,a){this.id=b;this.value=a}function la(b,a){this.scheduler=b;this.disposable=a;this.isDisposed=!1}function oa(b,a){a.isDisposed||(a.isDisposed=!0,a.disposable.dispose())}function Va(b){this._s=b;this.isDisposed=!1}function Hb(b){this._s=b}function nb(b){this._s=b;this._l=b.length;this._i=
0}function Ib(b){this._a=b}function Z(b){this._a=b;b=+b.length;if(isNaN(b))b=0;else if(0!==b&&"number"===typeof b&&N.isFinite(b)){var a;a=+b;a=0===a?a:isNaN(a)?a:0>a?-1:1;b=a*Math.floor(Math.abs(b));b=0>=b?0:b>Ob?Ob:b}this._l=b;this._i=0}function Jb(b,a){J(b)||(b=ga);return new fb(a,b)}function X(b,a){this.observer=b;this.parent=a}function V(){return!1}function S(){for(var b=arguments.length,a=Array(b),d=0;d<b;d++)a[d]=arguments[d];return a}function V(){return!1}function S(){for(var b=arguments.length,
a=Array(b),d=0;d<b;d++)a[d]=arguments[d];return a}function V(){return!1}function na(){return[]}function V(){return!1}function na(){return[]}function S(){for(var b=arguments.length,a=Array(b),d=0;d<b;d++)a[d]=arguments[d];return a}function Ac(b){return function(a){return b.subscribe(a)}}function T(b){return b.toArray()}function ia(b){return 0<b.length}function Aa(b,a,d){var e=ba(a,d,3);return b.map(function(a,d){a=e(a,d,b);K(a)&&(a=L(a));(Oa(a)||Pa(a))&&(a=gb(a));return a}).concatAll()}function Pb(b){this.comparer=
b;this.set=[]}function Bc(b,a){return function(d){var e=d;for(d=0;d<a;d++)if(e=e[b[d]],"undefined"===typeof e)return k;return e}}function Qb(b){if(0===b.length)throw new Ca;return b[0]}function Rb(b,a,d,e){var l=ba(a,d,3);return new M(function(a){return b.subscribe(new Cc(a,b,l,e))},b)}function rb(b){if(!b||C.isObservable(b))return b;if(K(b))return C.fromPromise(b);var a;a=(a=b.constructor)?"GeneratorFunction"===a.name||"GeneratorFunction"===a.displayName?!0:Sb(a.prototype):!1;return a||Sb(b)?Dc.call(this,
b):H(b)?Ec.call(this,b):Oa(b)||Pa(b)?Fc.call(this,b):db(b)?Gc.call(this,b):b}function Fc(b){return C.from(b).concatMap(function(a){return C.isObservable(a)||db(a)?rb.call(null,a):z.Observable.just(a)}).toArray()}function Gc(b){function a(a,b){d[b]=k;l.push(a.map(function(a){d[b]=a}))}for(var d=new b.constructor,e=Object.keys(b),l=[],t=0,c=e.length;t<c;t++){var f=e[t],g=rb.call(this,b[f]);g&&C.isObservable(g)?a(g,f):d[f]=b[f]}return C.forkJoin.apply(C,l).map(function(){return d})}function Ec(b){var a=
this;return new M(function(d){b.call(a,function(){var a=arguments[0],b=arguments[1];if(a)return d.onError(a);if(2<arguments.length){for(var a=[],b=1,t=arguments.length;b<t;b++)a.push(arguments[b]);b=a}d.onNext(b);d.onCompleted()})})}function Sb(b){return H(b.next)&&H(b["throw"])}function db(b){return Object==b.constructor}function Hc(b,a,d){return function(){for(var e=arguments.length,l=Array(e),t=0;t<e;t++)l[t]=arguments[t];if(H(d)){l=x(d).apply(a,l);if(l===w)return b.onError(l.e);b.onNext(l)}else if(1>=
l.length)b.onNext(l[0]);else b.onNext(l);b.onCompleted()}}function Ic(b,a,d){return function(){var e=arguments[0];if(e)return b.onError(e);for(var e=arguments.length,l=[],t=1;t<e;t++)l[t-1]=arguments[t];if(H(d)){l=x(d).apply(a,l);if(l===w)return b.onError(l.e);b.onNext(l)}else if(1>=l.length)b.onNext(l[0]);else b.onNext(l);b.onCompleted()}}function Tb(b,a,d){this._e=b;this._n=a;this._fn=d;this._e.addEventListener(this._n,this._fn,!1);this.isDisposed=!1}function Ub(b,a,d){var e=new ea,l=Object.prototype.toString.call(b),
t;t=N.StaticNodeList?b instanceof N.StaticNodeList||b instanceof N.NodeList:"[object NodeList]"===Object.prototype.toString.call(b);if(t||"[object HTMLCollection]"===l)for(l=0,t=b.length;l<t;l++)e.add(Ub(b.item(l),a,d));else b&&e.add(new Tb(b,a,d));return e}function Jc(b,a,d){return new M(function(e){function l(a,b){g[b]=a;t[b]=!0;if(c||(c=t.every(va))){if(k)return e.onError(k);a=x(d).apply(null,g);if(a===w)return e.onError(a.e);e.onNext(a)}f&&g[1]&&e.onCompleted()}var t=[!1,!1],c=!1,f=!1,g=Array(2),
k;return new P(b.subscribe(function(a){l(a,0)},function(a){if(g[1])e.onError(a);else k=a},function(){f=!0;g[1]&&e.onCompleted()}),a.subscribe(function(a){l(a,1)},function(a){e.onError(a)},function(){f=!0;l(!0,1)}))},b)}function T(b){return b.toArray()}function Kc(b,a){return b.groupJoin(this,a,Qa,function(a,b){return b})}function Lc(b){var a=this;return new M(function(d){var e=new fa,l=new ea,t=new Ja(l);d.onNext(wa(e,t));l.add(a.subscribe(function(a){e.onNext(a)},function(a){e.onError(a);d.onError(a)},
function(){e.onCompleted();d.onCompleted()}));K(b)&&(b=L(b));l.add(b.subscribe(function(a){e.onCompleted();e=new fa;d.onNext(wa(e,t))},function(a){e.onError(a);d.onError(a)},function(){e.onCompleted();d.onCompleted()}));return t},a)}function Mc(b){var a=this;return new M(function(d){function e(){var a;try{a=b()}catch(Ia){d.onError(Ia);return}K(a)&&(a=L(a));var t=new F;l.setDisposable(t);t.setDisposable(a.take(1).subscribe(ca,function(a){f.onError(a);d.onError(a)},function(){f.onCompleted();f=new fa;
d.onNext(wa(f,c));e()}))}var l=new Y,t=new ea(l),c=new Ja(t),f=new fa;d.onNext(wa(f,c));t.add(a.subscribe(function(a){f.onNext(a)},function(a){f.onError(a);d.onError(a)},function(){f.onCompleted();d.onCompleted()}));e();return c},a)}function S(){for(var b=arguments.length,a=Array(b),d=0;d<b;d++)a[d]=arguments[d];return a}function Wa(b){this.patterns=b}function Vb(b,a){this.expression=b;this.selector=a}function Nc(b){return function(a){b.onError(a)}}function Oc(b,a){return function(){var d=x(b.selector).apply(b,
arguments);if(d===w)return a.onError(d.e);a.onNext(d)}}function Pc(b,a,d){var e=b.get(a);return e?e:(d=new Qc(a,d),b.set(a,d),d)}function sb(b,a,d){this.joinObserverArray=b;this.onNext=a;this.onCompleted=d;this.joinObservers=new Ka;b=0;for(a=this.joinObserverArray.length;b<a;b++)d=this.joinObserverArray[b],this.joinObservers.set(d,d)}function Wb(b,a,d){return new M(function(e){var l=b,t=Xb(a);return d.scheduleRecursiveFuture(0,l,function(a,b){if(0<t){var c=d.now();l=new Date(l.getTime()+t);l.getTime()<=
c&&(l=new Date(c+t))}e.onNext(a);b(a+1,new Date(l))})})}function Yb(b,a,d){return b===a?new M(function(b){return d.schedulePeriodic(0,a,function(a){b.onNext(a);return a+1})}):Xa(function(){return Wb(new Date(d.now()+b),a,d)})}function Zb(b,a,d){return new M(function(e){var l=!1,t=new Y,c=null,f=[],g=!1,k;k=b.materialize().timestamp(d).subscribe(function(b){"E"===b.value.kind?(f=[],f.push(b),c=b.value.error,b=!g):(f.push({value:b.value,timestamp:b.timestamp+a}),b=!l,l=!0);if(b)if(null!==c)e.onError(c);
else b=new F,t.setDisposable(b),b.setDisposable(d.scheduleRecursiveFuture(null,a,function(a,b){var t,ua;if(null===c){g=!0;do a=null,0<f.length&&0>=f[0].timestamp-d.now()&&(a=f.shift().value),null!==a&&a.accept(e);while(null!==a);ua=!1;t=0;0<f.length?(ua=!0,t=Math.max(0,f[0].timestamp-d.now())):l=!1;a=c;g=!1;if(null!==a)e.onError(a);else ua&&b(null,t)}}))});return new P(k,t)},b)}function Rc(b,a,d){return Xa(function(){return Zb(b,a-d.now(),d)})}function Sc(b,a,d){var e,l;H(a)?l=a:(e=a,l=d);return new M(function(a){function d(){g.setDisposable(b.subscribe(function(b){var d=
x(l)(b);if(d===w)return a.onError(d.e);var e=new F;c.add(e);e.setDisposable(d.subscribe(function(){a.onNext(b);c.remove(e);t()},function(b){a.onError(b)},function(){a.onNext(b);c.remove(e);t()}))},function(b){a.onError(b)},function(){f=!0;g.dispose();t()}))}function t(){f&&0===c.length&&a.onCompleted()}var c=new ea,f=!1,g=new Y;e?g.setDisposable(e.subscribe(d,function(b){a.onError(b)},d)):d();return new P(g,c)},this)}function Tc(b,a){return new M(function(d){var e,l=!1,t=new Y,c=0,f=b.subscribe(function(b){var f=
x(a)(b);if(f===w)return d.onError(f.e);K(f)&&(f=L(f));l=!0;e=b;c++;var g=c,ua=new F;t.setDisposable(ua);ua.setDisposable(f.subscribe(function(){l&&c===g&&d.onNext(e);l=!1;ua.dispose()},function(a){d.onError(a)},function(){l&&c===g&&d.onNext(e);l=!1;ua.dispose()}))},function(a){t.dispose();d.onError(a);l=!1;c++},function(){t.dispose();l&&d.onNext(e);d.onCompleted();l=!1;c++});return new P(f,t)},b)}function T(b){return b.toArray()}function T(b){return b.toArray()}function $b(b,a){return new M(function(d){function e(){c&&
(c=!1,d.onNext(t));l&&d.onCompleted()}var l=!1,t,c=!1,f=new F;f.setDisposable(b.subscribe(function(a){c=!0;t=a},function(a){d.onError(a)},function(){l=!0;f.dispose()}));return new P(f,a.subscribe(e,function(a){d.onError(a)},e))},b)}function Uc(b,a,d,e){H(a)&&(e=d,d=a,a=tb());C.isObservable(e)||(e=Ba(new hb));return new M(function(l){function t(a){function b(){return n=d===h}var d=h,t=new F;g.setDisposable(t);t.setDisposable(a.subscribe(function(){b()&&f.setDisposable(e.subscribe(l));t.dispose()},
function(a){b()&&l.onError(a)},function(){b()&&f.setDisposable(e.subscribe(l))}))}function c(){var a=!n;a&&h++;return a}var f=new Y,g=new Y,k=new F;f.setDisposable(k);var h=0,n=!1;t(a);k.setDisposable(b.subscribe(function(a){if(c()){l.onNext(a);a=x(d)(a);if(a===w)return l.onError(a.e);t(K(a)?L(a):a)}},function(a){c()&&l.onError(a)},function(){c()&&l.onCompleted()}));return new P(f,g)},b)}function Vc(b,a,d,e){J(d)&&(e=d,d=Ba(new hb));d instanceof Error&&(d=Ba(d));J(e)||(e=W);C.isObservable(d)||(d=
Ba(new hb));return new M(function(l){function t(){var b=c;h.setDisposable(e.scheduleFuture(null,a,function(){if(k=c===b)K(d)&&(d=L(d)),g.setDisposable(d.subscribe(l))}))}var c=0,f=new F,g=new Y,k=!1,h=new Y;g.setDisposable(f);t();f.setDisposable(b.subscribe(function(a){k||(c++,l.onNext(a),t())},function(a){k||(c++,l.onError(a))},function(){k||(c++,l.onCompleted())}));return new P(g,h)},b)}function Wc(b){return{"@@transducer/init":function(){return b},"@@transducer/step":function(a,b){return a.onNext(b)},
"@@transducer/result":function(a){return a.onCompleted()}}}function ac(b){this.predicate=b}function bc(b){this.predicate=b}function Ya(b,a){var d=this;this.scheduler=b;this.messages=a;this.subscriptions=[];this.observers=[];a=0;for(var e=this.messages.length;a<e;a++){var l=this.messages[a];(function(a){b.scheduleAbsolute(null,l.time,function(){for(var b=d.observers.slice(0),e=0,l=b.length;e<l;e++)a.accept(b[e]);return U})})(l.value)}}var Za={"function":!0,object:!0},$a=Za[typeof p]&&p&&!p.nodeType?
p:null,ab=Za[typeof h]&&h&&!h.nodeType?h:null,ub=q($a&&ab&&"object"===typeof u&&u),Xc=q(Za[typeof self]&&self),cc=q(Za[typeof window]&&window),dc=ab&&ab.exports===$a?$a:null,vb=q(Za[typeof this]&&this),N=ub||cc!==(vb&&vb.window)&&cc||Xc||vb||Function("return this")(),z={internals:{},config:{Promise:N.Promise},helpers:{}},ca=z.helpers.noop=function(){},va=z.helpers.identity=function(b){return b},ec=z.helpers.defaultNow=Date.now,ib=z.helpers.defaultComparer=function(b,a){return Yc(b,a)},jb=z.helpers.defaultSubComparer=
function(b,a){return b>a?1:b<a?-1:0};z.helpers.defaultKeySerializer=function(b){return b.toString()};var Zc=z.helpers.defaultError=function(b){throw b;},K=z.helpers.isPromise=function(b){return!!b&&"function"!==typeof b.subscribe&&"function"===typeof b.then},H=z.helpers.isFunction=function(){var b=function(a){return"function"==typeof a||!1};b(/x/)&&(b=function(a){return"function"==typeof a&&"[object Function]"==toString.call(a)});return b}(),w={e:{}},x=z.internals.tryCatch=function(b){if(!H(b))throw new TypeError("fn must be a function");
return y(b)},cb=z.config.longStackSupport=!1,fc=x(function(){throw Error();})(),cb=!!fc.e&&!!fc.e.stack,$c=f(),Kb,Ca=z.EmptyError=function(){this.message="Sequence contains no elements.";Error.call(this)};Ca.prototype=Object.create(Error.prototype);Ca.prototype.name="EmptyError";var wb=z.ObjectDisposedError=function(){this.message="Object has been disposed";Error.call(this)};wb.prototype=Object.create(Error.prototype);wb.prototype.name="ObjectDisposedError";var ra=z.ArgumentOutOfRangeError=function(){this.message=
"Argument out of range";Error.call(this)};ra.prototype=Object.create(Error.prototype);ra.prototype.name="ArgumentOutOfRangeError";var Ra=z.NotSupportedError=function(b){this.message=b||"This operation is not supported";Error.call(this)};Ra.prototype=Object.create(Error.prototype);Ra.prototype.name="NotSupportedError";var La=z.NotImplementedError=function(b){this.message=b||"This operation is not implemented";Error.call(this)};La.prototype=Object.create(Error.prototype);La.prototype.name="NotImplementedError";
var Ma=z.helpers.notImplemented=function(){throw new La;};z.helpers.notSupported=function(){throw new Ra;};var pa="function"===typeof Symbol&&Symbol.iterator||"_es6shim_iterator_";N.Set&&"function"===typeof(new N.Set)["@@iterator"]&&(pa="@@iterator");var kb=z.doneEnumerator={done:!0,value:k},Pa=z.helpers.isIterable=function(b){return b&&b[pa]!==k},Oa=z.helpers.isArrayLike=function(b){return b&&b.length!==k};z.helpers.iterator=pa;var ba=z.internals.bindCallback=function(b,a,d){if("undefined"===typeof a)return b;
switch(d){case 0:return function(){return b.call(a)};case 1:return function(d){return b.call(a,d)};case 2:return function(d,l){return b.call(a,d,l)};case 3:return function(d,l,t){return b.call(a,d,l,t)}}return function(){return b.apply(a,arguments)}},aa={};aa["[object Float32Array]"]=aa["[object Float64Array]"]=aa["[object Int8Array]"]=aa["[object Int16Array]"]=aa["[object Int32Array]"]=aa["[object Uint8Array]"]=aa["[object Uint8ClampedArray]"]=aa["[object Uint16Array]"]=aa["[object Uint32Array]"]=
!0;aa["[object Arguments]"]=aa["[object Array]"]=aa["[object ArrayBuffer]"]=aa["[object Boolean]"]=aa["[object Date]"]=aa["[object Error]"]=aa["[object Function]"]=aa["[object Map]"]=aa["[object Number]"]=aa["[object Object]"]=aa["[object RegExp]"]=aa["[object Set]"]=aa["[object String]"]=aa["[object WeakMap]"]=!1;var gc=Object.prototype,pb=gc.hasOwnProperty,eb=gc.toString,zc=Math.pow(2,53)-1,Lb=Object.keys||function(){var b=Object.prototype.hasOwnProperty,a=!{toString:null}.propertyIsEnumerable("toString"),
d="toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor".split(" "),e=d.length;return function(l){if("object"!==typeof l&&("function"!==typeof l||null===l))throw new TypeError("Object.keys called on non-object");var t=[],c;for(c in l)b.call(l,c)&&t.push(c);if(a)for(c=0;c<e;c++)b.call(l,d[c])&&t.push(d[c]);return t}}(),db=z.internals.isObject=function(b){var a=typeof b;return!!b&&("object"===a||"function"===a)},Nb=function(){try{Object("[object Object]")}catch(b){return function(){return!1}}return function(b){return"function"!==
typeof b.toString&&"string"===typeof(b+"")}}(),Mb=Array.isArray||function(b){return da(b)&&O(b.length)&&"[object Array]"===eb.call(b)},Yc=z.internals.isEqual=function(b,a){return I(b,a)},n=z.internals.inherits=function(b,a){function d(){this.constructor=b}d.prototype=a.prototype;b.prototype=new d},Na=z.internals.addProperties=function(b){for(var a=[],d=1,e=arguments.length;d<e;d++)a.push(arguments[d]);d=0;for(e=a.length;d<e;d++){var l=a[d],t;for(t in l)b[t]=l[t]}},wa=z.internals.addRef=function(b,
a){return new M(function(d){return new P(a.getDisposable(),b.subscribe(d))})};R.prototype.compareTo=function(b){var a=this.value.compareTo(b.value);0===a&&(a=this.id-b.id);return a};var bb=z.internals.PriorityQueue=function(b){this.items=Array(b);this.length=0},Da=bb.prototype;Da.isHigherPriority=function(b,a){return 0>this.items[b].compareTo(this.items[a])};Da.percolate=function(b){if(!(b>=this.length||0>b)){var a=b-1>>1;if(!(0>a||a===b)&&this.isHigherPriority(b,a)){var d=this.items[b];this.items[b]=
this.items[a];this.items[a]=d;this.percolate(a)}}};Da.heapify=function(b){+b||(b=0);if(!(b>=this.length||0>b)){var a=2*b+1,d=2*b+2,e=b;a<this.length&&this.isHigherPriority(a,e)&&(e=a);d<this.length&&this.isHigherPriority(d,e)&&(e=d);e!==b&&(a=this.items[b],this.items[b]=this.items[e],this.items[e]=a,this.heapify(e))}};Da.peek=function(){return this.items[0].value};Da.removeAt=function(b){this.items[b]=this.items[--this.length];this.items[this.length]=k;this.heapify()};Da.dequeue=function(){var b=
this.peek();this.removeAt(0);return b};Da.enqueue=function(b){var a=this.length++;this.items[a]=new R(bb.count++,b);this.percolate(a)};Da.remove=function(b){for(var a=0;a<this.length;a++)if(this.items[a].value===b)return this.removeAt(a),!0;return!1};bb.count=0;var ea=z.CompositeDisposable=function(){var b,a,d;if(Array.isArray(arguments[0]))b=arguments[0];else for(d=arguments.length,b=Array(d),a=0;a<d;a++)b[a]=arguments[a];this.disposables=b;this.isDisposed=!1;this.length=b.length},xb=ea.prototype;
xb.add=function(b){this.isDisposed?b.dispose():(this.disposables.push(b),this.length++)};xb.remove=function(b){var a=!1;if(!this.isDisposed){var d=this.disposables.indexOf(b);-1!==d&&(a=!0,this.disposables.splice(d,1),this.length--,b.dispose())}return a};xb.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;for(var b=this.disposables.length,a=Array(b),d=0;d<b;d++)a[d]=this.disposables[d];this.disposables=[];for(d=this.length=0;d<b;d++)a[d].dispose()}};var Ea=z.Disposable=function(b){this.isDisposed=
!1;this.action=b||ca};Ea.prototype.dispose=function(){this.isDisposed||(this.action(),this.isDisposed=!0)};var Fa=Ea.create=function(b){return new Ea(b)},U=Ea.empty={dispose:ca},ad=Ea.isDisposable=function(b){return b&&H(b.dispose)},ja=Ea.checkDisposed=function(b){if(b.isDisposed)throw new wb;},yb=Ea._fixup=function(b){return ad(b)?b:U},F=z.SingleAssignmentDisposable=function(){this.isDisposed=!1;this.current=null};F.prototype.getDisposable=function(){return this.current};F.prototype.setDisposable=
function(b){if(this.current)throw Error("Disposable has already been assigned");var a=this.isDisposed;!a&&(this.current=b);a&&b&&b.dispose()};F.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var b=this.current;this.current=null;b&&b.dispose()}};var Y=z.SerialDisposable=function(){this.isDisposed=!1;this.current=null};Y.prototype.getDisposable=function(){return this.current};Y.prototype.setDisposable=function(b){var a=this.isDisposed;if(!a){var d=this.current;this.current=b}d&&
d.dispose();a&&b&&b.dispose()};Y.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var b=this.current;this.current=null}b&&b.dispose()};var P=z.BinaryDisposable=function(b,a){this._first=b;this._second=a;this.isDisposed=!1};P.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var b=this._first;this._first=null;b&&b.dispose();b=this._second;this._second=null;b&&b.dispose()}};var xa=z.NAryDisposable=function(b){this._disposables=b;this.isDisposed=!1};xa.prototype.dispose=
function(){if(!this.isDisposed){this.isDisposed=!0;for(var b=0,a=this._disposables.length;b<a;b++)this._disposables[b].dispose();this._disposables.length=0}};var Ja=z.RefCountDisposable=function(){function b(a){this.disposable=a;this.disposable.count++;this.isInnerDisposed=!1}function a(a){this.underlyingDisposable=a;this.isPrimaryDisposed=this.isDisposed=!1;this.count=0}b.prototype.dispose=function(){this.disposable.isDisposed||this.isInnerDisposed||(this.isInnerDisposed=!0,this.disposable.count--,
0===this.disposable.count&&this.disposable.isPrimaryDisposed&&(this.disposable.isDisposed=!0,this.disposable.underlyingDisposable.dispose()))};a.prototype.dispose=function(){this.isDisposed||this.isPrimaryDisposed||(this.isPrimaryDisposed=!0,0===this.count&&(this.isDisposed=!0,this.underlyingDisposable.dispose()))};a.prototype.getDisposable=function(){return this.isDisposed?U:new b(this)};return a}();la.prototype.dispose=function(){this.scheduler.schedule(this,oa)};var Sa=z.internals.ScheduledItem=
function(b,a,d,e,l){this.scheduler=b;this.state=a;this.action=d;this.dueTime=e;this.comparer=l||jb;this.disposable=new F};Sa.prototype.invoke=function(){this.disposable.setDisposable(this.invokeCore())};Sa.prototype.compareTo=function(b){return this.comparer(this.dueTime,b.dueTime)};Sa.prototype.isCancelled=function(){return this.disposable.isDisposed};Sa.prototype.invokeCore=function(){return yb(this.action(this.scheduler,this.state))};var sa=z.Scheduler=function(){function b(){}b.isScheduler=function(a){return a instanceof
b};var a=b.prototype;a.schedule=function(a,b){throw new La;};a.scheduleFuture=function(a,e,l){e instanceof Date&&(e-=this.now());e=b.normalize(e);return 0===e?this.schedule(a,l):this._scheduleFuture(a,e,l)};a._scheduleFuture=function(a,b,l){throw new La;};b.now=ec;b.prototype.now=ec;b.normalize=function(a){0>a&&(a=0);return a};return b}(),Xb=sa.normalize,J=sa.isScheduler;(function(b){function a(a,b){function d(b){var e=!1,t=!1,f=a.schedule(b,function(a,b){e?c.remove(f):t=!0;l(b,d);return U});t||(c.add(f),
e=!0)}var e=b[0],l=b[1],c=new ea;l(e,d);return c}function d(a,b){function d(b,e){var t=!1,f=!1,g=a.scheduleFuture(b,e,function(a,b){t?c.remove(g):f=!0;l(b,d);return U});f||(c.add(g),t=!0)}var e=b[0],l=b[1],c=new ea;l(e,d);return c}b.scheduleRecursive=function(b,d){return this.schedule([b,d],a)};b.scheduleRecursiveFuture=function(a,b,t){return this.scheduleFuture([a,t],b,d)}})(sa.prototype);(function(b){b.schedulePeriodic=function(a,b,e){if("undefined"===typeof N.setInterval)throw new Ra;b=Xb(b);var d=
a,t=N.setInterval(function(){d=e(d)},b);return Fa(function(){N.clearInterval(t)})}})(sa.prototype);(function(b){b.catchError=b["catch"]=function(a){return new bd(this,a)}})(sa.prototype);var cd=z.internals.SchedulePeriodicRecursive=function(){function b(a){return function(b,d){d(0,a._period);b=x(a._action)(a._state);b===w&&(a._cancel.dispose(),g(b.e));a._state=b}}function a(a,b,l,t){this._scheduler=a;this._state=b;this._period=l;this._action=t}a.prototype.start=function(){var a=new F;this._cancel=
a;a.setDisposable(this._scheduler.scheduleRecursiveFuture(0,this._period,b(this)));return a};return a}(),dd=function(b){function a(){b.call(this)}n(a,b);a.prototype.schedule=function(a,b){return yb(b(this,a))};return a}(sa),ta=sa.immediate=new dd,ed=function(b){function a(){for(;0<e.length;){var a=e.dequeue();!a.isCancelled()&&a.invoke()}}function d(){b.call(this)}var e;n(d,b);d.prototype.schedule=function(b,d){b=new Sa(this,b,d,this.now());e?e.enqueue(b):(e=new bb(4),e.enqueue(b),d=x(a)(),e=null,
d===w&&g(d.e));return b.disposable};d.prototype.scheduleRequired=function(){return!e};return d}(sa),ga=sa.currentThread=new ed,Ta,zb,hc=function(){var b,a=ca;if(N.setTimeout)b=N.setTimeout,a=N.clearTimeout;else if(N.WScript)b=function(a,b){N.WScript.Sleep(b);a()};else throw new Ra;return{setTimeout:b,clearTimeout:a}}(),Ab=hc.setTimeout,fd=hc.clearTimeout;(function(){function b(a){if(l)Ab(function(){b(a)},0);else{var d=e[a];d&&(l=!0,d=x(d)(),zb(a),l=!1,d===w&&g(d.e))}}function a(){if(!N.postMessage||
N.importScripts)return!1;var a=!1,b=N.onmessage;N.onmessage=function(){a=!0};N.postMessage("","*");N.onmessage=b;return a}var d=1,e={},l=!1;zb=function(a){delete e[a]};var t=new RegExp("^"+String(toString).replace(/[.*+?^${}()|[\]\\]/g,"\\$\x26").replace(/toString| for [^\]]+/g,".*?")+"$"),f="function"==typeof(f=ub&&dc&&ub.setImmediate)&&!t.test(f)&&f;if(H(f))Ta=function(a){var l=d++;e[l]=a;f(function(){b(l)});return l};else if("undefined"!==typeof c&&"[object process]"==={}.toString.call(c))Ta=function(a){var l=
d++;e[l]=a;c.nextTick(function(){b(l)});return l};else if(a()){var k="ms.rx.schedule"+Math.random();N.addEventListener("message",function(a){"string"===typeof a.data&&a.data.substring(0,k.length)===k&&b(a.data.substring(k.length))},!1);Ta=function(a){var b=d++;e[b]=a;N.postMessage(k+currentId,"*");return b}}else if(N.MessageChannel){var h=new N.MessageChannel;h.port1.onmessage=function(a){b(a.data)};Ta=function(a){var b=d++;e[b]=a;h.port2.postMessage(b);return b}}else Ta="document"in N&&"onreadystatechange"in
N.document.createElement("script")?function(a){var l=N.document.createElement("script"),t=d++;e[t]=a;l.onreadystatechange=function(){b(t);l.onreadystatechange=null;l.parentNode.removeChild(l);l=null};N.document.documentElement.appendChild(l);return t}:function(a){var l=d++;e[l]=a;Ab(function(){b(l)},0);return l}})();var gd=function(b){function a(){b.call(this)}function d(a,b,d,e){return function(){a.setDisposable(Ea._fixup(b(d,e)))}}function e(a){this._id=a;this.isDisposed=!1}function l(a){this._id=
a;this.isDisposed=!1}n(a,b);e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,zb(this._id))};l.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,fd(this._id))};a.prototype.schedule=function(a,b){var l=new F;a=Ta(d(l,b,this,a));return new P(l,new e(a))};a.prototype._scheduleFuture=function(a,b,e){if(0===b)return this.schedule(a,e);var t=new F;a=Ab(d(t,e,this,a),b);return new P(t,new l(a))};return a}(sa),W=sa["default"]=sa.async=new gd,bd=function(b){function a(a,e){this._scheduler=
a;this._handler=e;this._recursiveWrapper=this._recursiveOriginal=null;b.call(this)}n(a,b);a.prototype.schedule=function(a,b){return this._scheduler.schedule(a,this._wrap(b))};a.prototype._scheduleFuture=function(a,b,l){return this._scheduler.schedule(a,b,this._wrap(l))};a.prototype.now=function(){return this._scheduler.now()};a.prototype._clone=function(b){return new a(b,this._handler)};a.prototype._wrap=function(a){var b=this;return function(d,e){d=x(a)(b._getRecursiveWrapper(d),e);return d===w?
(b._handler(d.e)||g(d.e),U):yb(d)}};a.prototype._getRecursiveWrapper=function(a){if(this._recursiveOriginal!==a){this._recursiveOriginal=a;var b=this._clone(a);b._recursiveOriginal=a;this._recursiveWrapper=b._recursiveWrapper=b}return this._recursiveWrapper};a.prototype.schedulePeriodic=function(a,b,l){var d=this,e=!1,c=new F;c.setDisposable(this._scheduler.schedulePeriodic(a,b,function(a){if(e)return null;a=x(l)(a);return a===w?(e=!0,d._handler(a.e)||g(a.e),c.dispose(),null):a}));return c};return a}(sa),
qa=z.Notification=function(){function b(){}b.prototype._accept=function(a,b,e){throw new La;};b.prototype._acceptObserver=function(a,b,e){throw new La;};b.prototype.accept=function(a,b,e){return a&&"object"===typeof a?this._acceptObserver(a):this._accept(a,b,e)};b.prototype.toObservable=function(a){var b=this;J(a)||(a=ta);return new M(function(d){return a.schedule(b,function(a,b){b._acceptObserver(d);"N"===b.kind&&d.onCompleted()})})};return b}(),hd=function(b){function a(a){this.value=a;this.kind=
"N"}n(a,b);a.prototype._accept=function(a){return a(this.value)};a.prototype._acceptObserver=function(a){return a.onNext(this.value)};a.prototype.toString=function(){return"OnNext("+this.value+")"};return a}(qa),id=function(b){function a(a){this.error=a;this.kind="E"}n(a,b);a.prototype._accept=function(a,b){return b(this.error)};a.prototype._acceptObserver=function(a){return a.onError(this.error)};a.prototype.toString=function(){return"OnError("+this.error+")"};return a}(qa),jd=function(b){function a(){this.kind=
"C"}n(a,b);a.prototype._accept=function(a,b,l){return l()};a.prototype._acceptObserver=function(a){return a.onCompleted()};a.prototype.toString=function(){return"OnCompleted()"};return a}(qa),ic=qa.createOnNext=function(b){return new hd(b)},jc=qa.createOnError=function(b){return new id(b)},kc=qa.createOnCompleted=function(){return new jd},ma=z.Observer=function(){};ma.prototype.toNotifier=function(){var b=this;return function(a){return a.accept(b)}};ma.prototype.asObserver=function(){var b=this;return new Bb(function(a){b.onNext(a)},
function(a){b.onError(a)},function(){b.onCompleted()})};ma.prototype.checked=function(){return new kd(this)};var Ga=ma.create=function(b,a,d){b||(b=ca);a||(a=Zc);d||(d=ca);return new Bb(b,a,d)};ma.fromNotifier=function(b,a){var d=ba(b,a,1);return new Bb(function(a){return d(ic(a))},function(a){return d(jc(a))},function(){return d(kc())})};ma.prototype.notifyOn=function(b){return new lc(b,this)};ma.prototype.makeSafe=function(b){return new AnonymousSafeObserver(this._onNext,this._onError,this._onCompleted,
b)};var B=z.internals.AbstractObserver=function(b){function a(){this.isStopped=!1}n(a,b);a.prototype.next=Ma;a.prototype.error=Ma;a.prototype.completed=Ma;a.prototype.onNext=function(a){!this.isStopped&&this.next(a)};a.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.error(a))};a.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.completed())};a.prototype.dispose=function(){this.isStopped=!0};a.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=
!0,this.error(a),!0)};return a}(ma),Bb=z.AnonymousObserver=function(b){function a(a,e,l){b.call(this);this._onNext=a;this._onError=e;this._onCompleted=l}n(a,b);a.prototype.next=function(a){this._onNext(a)};a.prototype.error=function(a){this._onError(a)};a.prototype.completed=function(){this._onCompleted()};return a}(B),kd=function(b){function a(a){b.call(this);this._observer=a;this._state=0}n(a,b);var d=a.prototype;d.onNext=function(a){this.checkAccess();a=x(this._observer.onNext).call(this._observer,
a);this._state=0;a===w&&g(a.e)};d.onError=function(a){this.checkAccess();a=x(this._observer.onError).call(this._observer,a);this._state=2;a===w&&g(a.e)};d.onCompleted=function(){this.checkAccess();var a=x(this._observer.onCompleted).call(this._observer);this._state=2;a===w&&g(a.e)};d.checkAccess=function(){if(1===this._state)throw Error("Re-entrancy detected");if(2===this._state)throw Error("Observer completed");0===this._state&&(this._state=1)};return a}(ma),mc=z.internals.ScheduledObserver=function(b){function a(a,
d){b.call(this);this.scheduler=a;this.observer=d;this.hasFaulted=this.isAcquired=!1;this.queue=[];this.disposable=new Y}function d(a,b){return function(){a.onNext(b)}}function e(a,b){return function(){a.onError(b)}}function l(a){return function(){a.onCompleted()}}function c(a,b){var d;if(0<a.queue.length){d=a.queue.shift();d=x(d)();if(d===w)return a.queue=[],a.hasFaulted=!0,g(d.e);b(a)}else a.isAcquired=!1}n(a,b);a.prototype.next=function(a){this.queue.push(d(this.observer,a))};a.prototype.error=
function(a){this.queue.push(e(this.observer,a))};a.prototype.completed=function(){this.queue.push(l(this.observer))};a.prototype.ensureActive=function(){var a=!1;!this.hasFaulted&&0<this.queue.length&&(a=!this.isAcquired,this.isAcquired=!0);a&&this.disposable.setDisposable(this.scheduler.scheduleRecursive(this,c))};a.prototype.dispose=function(){b.prototype.dispose.call(this);this.disposable.dispose()};return a}(B),lc=function(b){function a(a,e,l){b.call(this,a,e);this._cancel=l}n(a,b);a.prototype.next=
function(a){b.prototype.next.call(this,a);this.ensureActive()};a.prototype.error=function(a){b.prototype.error.call(this,a);this.ensureActive()};a.prototype.completed=function(){b.prototype.completed.call(this);this.ensureActive()};a.prototype.dispose=function(){b.prototype.dispose.call(this);this._cancel&&this._cancel.dispose();this._cancel=null};return a}(mc),r,C=z.Observable=function(){function b(a,b){return function(d){var e=d.onError;d.onError=function(b){if(cb&&a.stack&&"object"===typeof b&&
null!==b&&b.stack&&-1===b.stack.indexOf("From previous event:")){for(var l=[],c=a;c;c=c.source)c.stack&&l.unshift(c.stack);l.unshift(b.stack);for(var l=l.join("\nFrom previous event:\n").split("\n"),c=[],t=0,f=l.length;t<f;t++){var g=l[t],k;if(k=G(g)){var ua=k[1];k=k[0]===Kb&&ua>=$c&&ua<=ld}else k=!1;if(k=!k)k=g,k=!(-1!==k.indexOf("(module.js:")||-1!==k.indexOf("(node.js:"));k&&g&&c.push(g)}l=c.join("\n");b.stack=l}e.call(d,b)};return b.call(a,d)}}function a(){if(z.config.longStackSupport&&cb){var a=
this._subscribe,e=x(g)(Error()).e;this.stack=e.stack.substring(e.stack.indexOf("\n")+1);this._subscribe=b(this,a)}}r=a.prototype;a.isObservable=function(a){return a&&H(a.subscribe)};r.subscribe=r.forEach=function(a,b,l){return this._subscribe("object"===typeof a?a:Ga(a,b,l))};r.subscribeOnNext=function(a,b){return this._subscribe(Ga("undefined"!==typeof b?function(d){a.call(b,d)}:a))};r.subscribeOnError=function(a,b){return this._subscribe(Ga(null,"undefined"!==typeof b?function(d){a.call(b,d)}:a))};
r.subscribeOnCompleted=function(a,b){return this._subscribe(Ga(null,null,"undefined"!==typeof b?function(){a.call(b)}:a))};return a}(),A=z.ObservableBase=function(b){function a(a){return a&&H(a.dispose)?a:H(a)?Fa(a):U}function d(b,d){b=d[0];d=d[1];d=x(d.subscribeCore).call(d,b);d!==w||b.fail(w.e)||g(w.e);b.setDisposable(a(d))}function e(){b.call(this)}n(e,b);e.prototype._subscribe=function(a){a=new nc(a);var b=[a,this];ga.scheduleRequired()?ga.schedule(b,d):d(null,b);return a};e.prototype.subscribeCore=
Ma;return e}(C),lb=z.FlatMapObservable=function(b){function a(a,d,c,f){this.resultSelector=H(c)?c:null;this.selector=ba(H(d)?d:function(){return d},f,3);this.source=a;b.call(this)}function d(a,b,d,c){this.i=0;this.selector=b;this.resultSelector=d;this.source=c;this.o=a;B.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new d(a,this.selector,this.resultSelector,this))};n(d,B);d.prototype._wrapResult=function(a,b,d){return this.resultSelector?a.map(function(a,e){return this.resultSelector(b,
a,d,e)},this):a};d.prototype.next=function(a){var b=this.i++,d=x(this.selector)(a,b,this.source);if(d===w)return this.o.onError(d.e);K(d)&&(d=L(d));(Oa(d)||Pa(d))&&(d=C.from(d));this.o.onNext(this._wrapResult(d,a,b))};d.prototype.error=function(a){this.o.onError(a)};d.prototype.completed=function(){this.o.onCompleted()};return a}(A),Ha=z.internals.Enumerable=function(){};Va.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._s.isDisposed=!0)};var md=function(b){function a(a){this.sources=
a;b.call(this)}function d(a,b){if(!a.isDisposed){var d=x(a.e.next).call(a.e);if(d===w)return a.o.onError(d.e);if(d.done)return a.o.onCompleted();d=d.value;K(d)&&(d=L(d));var l=new F;a.subscription.setDisposable(l);l.setDisposable(d.subscribe(new e(a,b)))}}function e(a,b){this._state=a;this._recurse=b;B.call(this)}n(a,b);a.prototype.subscribeCore=function(a){var b=new Y;a={isDisposed:!1,o:a,subscription:b,e:this.sources[pa]()};var e=ga.scheduleRecursive(a,d);return new xa([b,e,new Va(a)])};n(e,B);
e.prototype.next=function(a){this._state.o.onNext(a)};e.prototype.error=function(a){this._state.o.onError(a)};e.prototype.completed=function(){this._recurse(this._state)};return a}(A);Ha.prototype.concat=function(){return new md(this)};var nd=function(b){function a(a){this.sources=a;b.call(this)}function d(a,b){if(!a.isDisposed){var d=x(a.e.next).call(a.e);if(d===w)return a.o.onError(d.e);if(d.done)return null!==a.lastError?a.o.onError(a.lastError):a.o.onCompleted();d=d.value;K(d)&&(d=L(d));var l=
new F;a.subscription.setDisposable(l);l.setDisposable(d.subscribe(new e(a,b)))}}function e(a,b){this._state=a;this._recurse=b;B.call(this)}n(a,b);a.prototype.subscribeCore=function(a){var b=new Y;a={isDisposed:!1,e:this.sources[pa](),subscription:b,lastError:null,o:a};var e=ga.scheduleRecursive(a,d);return new xa([b,e,new Va(a)])};n(e,B);e.prototype.next=function(a){this._state.o.onNext(a)};e.prototype.error=function(a){this._state.lastError=a;this._recurse(this._state)};e.prototype.completed=function(){this._state.o.onCompleted()};
return a}(A);Ha.prototype.catchError=function(){return new nd(this)};Ha.prototype.catchErrorWhen=function(b){var a=this;return new M(function(d){var e=new fa,l=new fa,c=b(e).subscribe(l),f=a[pa](),g={isDisposed:!1},k=new Y,h=ga.scheduleRecursive(null,function(a,b){if(!g.isDisposed){a=x(f.next).call(f);if(a===w)return d.onError(a.e);if(a.done)d.onCompleted();else{a=a.value;K(a)&&(a=L(a));var c=new F,t=new F;k.setDisposable(new P(t,c));c.setDisposable(a.subscribe(function(a){d.onNext(a)},function(a){t.setDisposable(l.subscribe(b,
function(a){d.onError(a)},function(){d.onCompleted()}));e.onNext(a)},function(){d.onCompleted()}))}}});return new xa([c,k,h,new Va(g)])})};var od=function(b){function a(a,b){this.v=a;this.c=null==b?-1:b}function d(a){this.v=a.v;this.l=a.c}n(a,b);a.prototype[pa]=function(){return new d(this)};d.prototype.next=function(){if(0===this.l)return kb;0<this.l&&this.l--;return{done:!1,value:this.v}};return a}(Ha),Cb=Ha.repeat=function(b,a){return new od(b,a)},pd=function(b){function a(a,b,d){this.s=a;this.fn=
b?ba(b,d,3):null}function d(a){this.i=-1;this.s=a.s;this.l=this.s.length;this.fn=a.fn}n(a,b);a.prototype[pa]=function(){return new d(this)};d.prototype.next=function(){return++this.i<this.l?{done:!1,value:this.fn?this.fn(this.s[this.i],this.i,this.s):this.s[this.i]}:kb};return a}(Ha),Db=Ha.of=function(b,a,d){return new pd(b,a,d)},qd=function(b){function a(a,e){this.source=a;this._s=e;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new lc(this._s,a))};return a}(A);
r.observeOn=function(b){return new qd(this,b)};var rd=function(b){function a(a,d){this.source=a;this._s=d;b.call(this)}function d(a,b){b[1].setDisposable(new la(a,b[0].subscribe(b[2])))}n(a,b);a.prototype.subscribeCore=function(a){var b=new F,e=new Y;e.setDisposable(b);b.setDisposable(this._s.schedule([this.source,e,a],d));return e};return a}(A);r.subscribeOn=function(b){return new rd(this,b)};var sd=function(b){function a(a,d){this._p=a;this._s=d;b.call(this)}function d(a,b){a=b[0];a.onNext(b[1]);
a.onCompleted()}function e(a,b){b[0].onError(b[1])}n(a,b);a.prototype.subscribeCore=function(a){var b=new F,l=this;this._p.then(function(e){b.setDisposable(l._s.schedule([a,e],d))},function(d){b.setDisposable(l._s.schedule([a,d],e))});return b};return a}(A),L=C.fromPromise=function(b,a){a||(a=W);return new sd(b,a)};r.toPromise=function(b){b||(b=z.config.Promise);if(!b)throw new Ra("Promise type not provided nor in Rx.config.Promise");var a=this;return new b(function(b,e){var d;a.subscribe(function(a){d=
a},e,function(){b(d)})})};var td=function(b){function a(a){this.source=a;b.call(this)}function d(a){this.o=a;this.a=[];B.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new d(a))};n(d,B);d.prototype.next=function(a){this.a.push(a)};d.prototype.error=function(a){this.o.onError(a)};d.prototype.completed=function(){this.o.onNext(this.a);this.o.onCompleted()};return a}(A);r.toArray=function(){return new td(this)};C.create=function(b,a){return new M(b,a)};var ud=function(b){function a(a){this._f=
a;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){var b=x(this._f)();if(b===w)return Ba(b.e).subscribe(a);K(b)&&(b=L(b));return b.subscribe(a)};return a}(A),Xa=C.defer=function(b){return new ud(b)},oc=function(b){function a(a){this.scheduler=a;b.call(this)}function d(a,b){this.observer=a;this.scheduler=b}function e(a,b){b.onCompleted();return U}n(a,b);a.prototype.subscribeCore=function(a){return(new d(a,this.scheduler)).run()};d.prototype.run=function(){var a=this.observer;return this.scheduler===
ta?e(null,a):this.scheduler.schedule(a,e)};return a}(A),vd=new oc(ta),Qa=C.empty=function(b){J(b)||(b=ta);return b===ta?vd:new oc(b)},wd=function(b){function a(a,d,c){this._iterable=a;this._fn=d;this._scheduler=c;b.call(this)}function d(a,b,d){return function(e,l){var c=x(b.next).call(b);if(c===w)return a.onError(c.e);if(c.done)return a.onCompleted();c=c.value;if(H(d)&&(c=x(d)(c,e),c===w))return a.onError(c.e);a.onNext(c);l(e+1)}}n(a,b);a.prototype.subscribeCore=function(a){var b;b=Object(this._iterable);
var e=b[pa];if(e||"string"!==typeof b)if(e||b.length===k){if(!e)throw new TypeError("Object is not iterable");}else b=new Ib(b);else b=new Hb(b);b=b[pa]();return this._scheduler.scheduleRecursive(0,d(a,b,this._fn))};return a}(A),Ob=Math.pow(2,53)-1;Hb.prototype[pa]=function(){return new nb(this._s)};nb.prototype[pa]=function(){return this};nb.prototype.next=function(){return this._i<this._l?{done:!1,value:this._s.charAt(this._i++)}:kb};Ib.prototype[pa]=function(){return new Z(this._a)};Z.prototype[pa]=
function(){return this};Z.prototype.next=function(){return this._i<this._l?{done:!1,value:this._a[this._i++]}:kb};var gb=C.from=function(b,a,d,e){if(null==b)throw Error("iterable cannot be null.");if(a&&!H(a))throw Error("mapFn when provided must be a function");if(a)var l=ba(a,d,2);J(e)||(e=ga);return new wd(b,l,e)},fb=function(b){function a(a,d){this._args=a;this._scheduler=d;b.call(this)}function d(a,b){var d=b.length;return function(e,l){if(e<d)a.onNext(b[e]),l(e+1);else a.onCompleted()}}n(a,
b);a.prototype.subscribeCore=function(a){return this._scheduler.scheduleRecursive(0,d(a,this._args))};return a}(A),xd=C.fromArray=function(b,a){J(a)||(a=ga);return new fb(b,a)},yd=function(b){function a(a,d,c,f,g){this._state=a;this._cndFn=d;this._itrFn=c;this._resFn=f;this._s=g;this._first=!0;b.call(this)}function d(a,b){if(a._first)a._first=!1;else if(a._state=x(a._itrFn)(a._state),a._state===w)return a._o.onError(a._state.e);var d=x(a._cndFn)(a._state);if(d===w)return a._o.onError(d.e);if(d){d=
x(a._resFn)(a._state);if(d===w)return a._o.onError(d.e);a._o.onNext(d);b(a)}else a._o.onCompleted()}n(a,b);a.prototype.subscribeCore=function(a){this._o=a;return this._s.scheduleRecursive(this,d)};return a}(A);C.generate=function(b,a,d,e,l){J(l)||(l=ga);return new yd(b,a,d,e,l)};C.of=function(){for(var b=arguments.length,a=Array(b),d=0;d<b;d++)a[d]=arguments[d];return new fb(a,ga)};C.ofWithScheduler=function(b){for(var a=arguments.length,d=Array(a-1),e=1;e<a;e++)d[e-1]=arguments[e];return new fb(d,
b)};C.ofArrayChanges=function(b){if(!Array.isArray(b))throw new TypeError("Array.observe only accepts arrays.");if("function"!==typeof Array.observe&&"function"!==typeof Array.unobserve)throw new TypeError("Array.observe is not supported on your platform");return new M(function(a){function d(b){for(var d=0,e=b.length;d<e;d++)a.onNext(b[d])}Array.observe(b,d);return function(){Array.unobserve(b,d)}})};C.ofObjectChanges=function(b){if(null==b)throw new TypeError("object must not be null or undefined.");
if("function"!==typeof Object.observe&&"function"!==typeof Object.unobserve)throw new TypeError("Object.observe is not supported on your platform");return new M(function(a){function d(b){for(var d=0,e=b.length;d<e;d++)a.onNext(b[d])}Object.observe(b,d);return function(){Object.unobserve(b,d)}})};var zd=new (function(b){function a(){b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return U};return a}(A)),tb=C.never=function(){return zd},Ad=function(b){function a(a,d){this._o=a;this._keys=
Object.keys(a);this._scheduler=d;b.call(this)}function d(a,b,d){return function(e,l){if(e<d.length){var c=d[e];a.onNext([c,b[c]]);l(e+1)}else a.onCompleted()}}n(a,b);a.prototype.subscribeCore=function(a){return this._scheduler.scheduleRecursive(0,d(a,this._o,this._keys))};return a}(A);C.pairs=function(b,a){a||(a=ga);return new Ad(b,a)};var Bd=function(b){function a(a,d,c){this.start=a;this.rangeCount=d;this.scheduler=c;b.call(this)}function d(a,b,d){return function(e,l){if(e<b)d.onNext(a+e),l(e+1);
else d.onCompleted()}}n(a,b);a.prototype.subscribeCore=function(a){return this.scheduler.scheduleRecursive(0,d(this.start,this.rangeCount,a))};return a}(A);C.range=function(b,a,d){J(d)||(d=ga);return new Bd(b,a,d)};var Cd=function(b){function a(a,e,l){this.value=a;this.repeatCount=null==e?-1:e;this.scheduler=l;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return(new X(a,this)).run()};return a}(A);X.prototype.run=function(){var b=this.observer,a=this.parent.value;return this.parent.scheduler.scheduleRecursive(this.parent.repeatCount,
function(d,e){if(-1===d||0<d)b.onNext(a),0<d&&d--;if(0===d)return b.onCompleted();e(d)})};C.repeat=function(b,a,d){J(d)||(d=ga);return new Cd(b,a,d)};var Dd=function(b){function a(a,d){this._value=a;this._scheduler=d;b.call(this)}function d(a,b){a=b[1];a.onNext(b[0]);a.onCompleted();return U}n(a,b);a.prototype.subscribeCore=function(a){a=[this._value,a];return this._scheduler===ta?d(null,a):this._scheduler.schedule(a,d)};return a}(A);C["return"]=C.just=function(b,a){J(a)||(a=ta);return new Dd(b,a)};
var Ed=function(b){function a(a,d){this._error=a;this._scheduler=d;b.call(this)}function d(a,b){b[1].onError(b[0]);return U}n(a,b);a.prototype.subscribeCore=function(a){a=[this._error,a];return this._scheduler===ta?d(null,a):this._scheduler.schedule(a,d)};return a}(A),Ba=C["throw"]=function(b,a){J(a)||(a=ta);return new Ed(b,a)},Fd=function(b){function a(a,e){this._resFn=a;this._obsFn=e;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){var b=U,d=x(this._resFn)();if(d===w)return new P(Ba(d.e).subscribe(a),
b);d&&(b=d);d=x(this._obsFn)(d);return d===w?new P(Ba(d.e).subscribe(a),b):new P(d.subscribe(a),b)};return a}(A);C.using=function(b,a){return new Fd(b,a)};r.amb=function(b){var a=this;return new M(function(d){function e(){c||(c="L",g.dispose())}function l(){c||(c="R",f.dispose())}var c,f=new F,g=new F;K(b)&&(b=L(b));var k=Ga(function(a){e();"L"===c&&d.onNext(a)},function(a){e();"L"===c&&d.onError(a)},function(){e();"L"===c&&d.onCompleted()}),h=Ga(function(a){l();"R"===c&&d.onNext(a)},function(a){l();
"R"===c&&d.onError(a)},function(){l();"R"===c&&d.onCompleted()});f.setDisposable(a.subscribe(k));g.setDisposable(b.subscribe(h));return new P(f,g)})};C.amb=function(){var b=tb(),a;if(Array.isArray(arguments[0]))a=arguments[0];else{var d=arguments.length;a=Array(a);for(var e=0;e<d;e++)a[e]=arguments[e]}e=0;for(d=a.length;e<d;e++)b=b.amb(a[e]);return b};var Hd=function(b){function a(a,e){this.source=a;this._fn=e;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){var b=new F,d=new Y;d.setDisposable(b);
b.setDisposable(this.source.subscribe(new Gd(a,d,this._fn)));return d};return a}(A),Gd=function(b){function a(a,e,l){this._o=a;this._s=e;this._fn=l;b.call(this)}n(a,b);a.prototype.next=function(a){this._o.onNext(a)};a.prototype.completed=function(){return this._o.onCompleted()};a.prototype.error=function(a){a=x(this._fn)(a);if(a===w)return this._o.onError(a.e);K(a)&&(a=L(a));var b=new F;this._s.setDisposable(b);b.setDisposable(a.subscribe(this._o))};return a}(B);r["catch"]=function(b){return H(b)?
new Hd(this,b):Id([this,b])};var Id=C["catch"]=function(){var b;if(Array.isArray(arguments[0]))b=arguments[0];else{var a=arguments.length;b=Array(a);for(var d=0;d<a;d++)b[d]=arguments[d]}return Db(b).catchError()};r.combineLatest=function(){for(var b=arguments.length,a=Array(b),d=0;d<b;d++)a[d]=arguments[d];Array.isArray(a[0])?a[0].unshift(this):a.unshift(this);return Jd.apply(this,a)};var Ld=function(b){function a(a,e){this._params=a;this._cb=e;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){for(var b=
this._params.length,d=Array(b),c={hasValue:E(b,V),hasValueAll:!1,isDone:E(b,V),values:Array(b)},f=0;f<b;f++){var g=this._params[f],k=new F;d[f]=k;K(g)&&(g=L(g));k.setDisposable(g.subscribe(new Kd(a,f,this._cb,c)))}return new xa(d)};return a}(A),Kd=function(b){function a(a,d,c,f){this._o=a;this._i=d;this._cb=c;this._state=f;b.call(this)}function d(a){return function(b,d){return d!==a}}n(a,b);a.prototype.next=function(a){this._state.values[this._i]=a;this._state.hasValue[this._i]=!0;if(this._state.hasValueAll||
(this._state.hasValueAll=this._state.hasValue.every(va))){a=x(this._cb).apply(null,this._state.values);if(a===w)return this._o.onError(a.e);this._o.onNext(a)}else if(this._state.isDone.filter(d(this._i)).every(va))this._o.onCompleted()};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._state.isDone[this._i]=!0;this._state.isDone.every(va)&&this._o.onCompleted()};return a}(B),Jd=C.combineLatest=function(){for(var b=arguments.length,a=Array(b),d=0;d<b;d++)a[d]=
arguments[d];b=H(a[b-1])?a.pop():S;Array.isArray(a[0])&&(a=a[0]);return new Ld(a,b)};r.concat=function(){for(var b=[],a=0,d=arguments.length;a<d;a++)b.push(arguments[a]);b.unshift(this);return pc.apply(null,b)};var Md=function(b){function a(a,e){this._s=a;this._fn=e;b.call(this)}n(a,b);a.prototype.next=function(a){this._s.o.onNext(a)};a.prototype.error=function(a){this._s.o.onError(a)};a.prototype.completed=function(){this._s.i++;this._fn(this._s)};return a}(B),Nd=function(b){function a(a){this._sources=
a;b.call(this)}function d(a,b){if(!a.disposable.isDisposed){if(a.i===a.sources.length)return a.o.onCompleted();var d=a.sources[a.i];K(d)&&(d=L(d));var e=new F;a.subscription.setDisposable(e);e.setDisposable(d.subscribe(new Md(a,b)))}}n(a,b);a.prototype.subscribeCore=function(a){var b=new Y,e=Fa(ca);a=ta.scheduleRecursive({o:a,i:0,subscription:b,disposable:e,sources:this._sources},d);return new xa([b,e,a])};return a}(A),pc=C.concat=function(){var b;if(Array.isArray(arguments[0]))b=arguments[0];else{b=
Array(arguments.length);for(var a=0,d=arguments.length;a<d;a++)b[a]=arguments[a]}return new Nd(b)};r.concatAll=function(){return this.merge(1)};var Pd=function(b){function a(a,e){this.source=a;this.maxConcurrent=e;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){var b=new ea;b.add(this.source.subscribe(new Od(a,this.maxConcurrent,b)));return b};return a}(A),Od=function(b){function a(a,d,c){this.o=a;this.max=d;this.g=c;this.done=!1;this.q=[];this.activeCount=0;b.call(this)}function d(a,d){this.parent=
a;this.sad=d;b.call(this)}n(a,b);a.prototype.handleSubscribe=function(a){var b=new F;this.g.add(b);K(a)&&(a=L(a));b.setDisposable(a.subscribe(new d(this,b)))};a.prototype.next=function(a){this.activeCount<this.max?(this.activeCount++,this.handleSubscribe(a)):this.q.push(a)};a.prototype.error=function(a){this.o.onError(a)};a.prototype.completed=function(){this.done=!0;0===this.activeCount&&this.o.onCompleted()};n(d,b);d.prototype.next=function(a){this.parent.o.onNext(a)};d.prototype.error=function(a){this.parent.o.onError(a)};
d.prototype.completed=function(){this.parent.g.remove(this.sad);0<this.parent.q.length?this.parent.handleSubscribe(this.parent.q.shift()):(this.parent.activeCount--,this.parent.done&&0===this.parent.activeCount&&this.parent.o.onCompleted())};return a}(B);r.merge=function(b){return"number"!==typeof b?Qd(this,b):new Pd(this,b)};var Qd=C.merge=function(){var b,a=[],d,e=arguments.length;arguments[0]?J(arguments[0])?(b=arguments[0],d=1):(b=ta,d=0):(b=ta,d=1);for(;d<e;d++)a.push(arguments[d]);Array.isArray(a[0])&&
(a=a[0]);return Jb(b,a).mergeAll()},Sd=function(b){function a(a){this.source=a;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){var b=new ea,d=new F;b.add(d);d.setDisposable(this.source.subscribe(new Rd(a,b)));return b};return a}(A),Rd=function(b){function a(a,d){this.o=a;this.g=d;this.done=!1;b.call(this)}function d(a,d){this.parent=a;this.sad=d;b.call(this)}n(a,b);a.prototype.next=function(a){var b=new F;this.g.add(b);K(a)&&(a=L(a));b.setDisposable(a.subscribe(new d(this,b)))};a.prototype.error=
function(a){this.o.onError(a)};a.prototype.completed=function(){this.done=!0;1===this.g.length&&this.o.onCompleted()};n(d,b);d.prototype.next=function(a){this.parent.o.onNext(a)};d.prototype.error=function(a){this.parent.o.onError(a)};d.prototype.completed=function(){this.parent.g.remove(this.sad);this.parent.done&&1===this.parent.g.length&&this.parent.o.onCompleted()};return a}(B);r.mergeAll=function(){return new Sd(this)};var Eb=z.CompositeError=function(b){this.innerErrors=b;this.message="This contains multiple errors. Check the innerErrors";
Error.call(this)};Eb.prototype=Object.create(Error.prototype);Eb.prototype.name="CompositeError";var Ud=function(b){function a(a){this.source=a;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){var b=new ea,d=new F;a={isStopped:!1,errors:[],o:a};b.add(d);d.setDisposable(this.source.subscribe(new Td(b,a)));return b};return a}(A),Td=function(b){function a(a,d){this._group=a;this._state=d;b.call(this)}function d(a,b){if(0===b.length)a.onCompleted();else if(1===b.length)a.onError(b[0]);else a.onError(new Eb(b))}
function e(a,d,e){this._inner=a;this._group=d;this._state=e;b.call(this)}n(a,b);a.prototype.next=function(a){var b=new F;this._group.add(b);K(a)&&(a=L(a));b.setDisposable(a.subscribe(new e(b,this._group,this._state)))};a.prototype.error=function(a){this._state.errors.push(a);this._state.isStopped=!0;1===this._group.length&&d(this._state.o,this._state.errors)};a.prototype.completed=function(){this._state.isStopped=!0;1===this._group.length&&d(this._state.o,this._state.errors)};n(e,b);e.prototype.next=
function(a){this._state.o.onNext(a)};e.prototype.error=function(a){this._state.errors.push(a);this._group.remove(this._inner);this._state.isStopped&&1===this._group.length&&d(this._state.o,this._state.errors)};e.prototype.completed=function(){this._group.remove(this._inner);this._state.isStopped&&1===this._group.length&&d(this._state.o,this._state.errors)};return a}(B);C.mergeDelayError=function(){var b;if(Array.isArray(arguments[0]))b=arguments[0];else{var a=arguments.length;b=Array(a);for(var d=
0;d<a;d++)b[d]=arguments[d]}b=Jb(null,b);return new Ud(b)};r.onErrorResumeNext=function(b){if(!b)throw Error("Second observable is required");return Vd([this,b])};var Xd=function(b){function a(a){this.sources=a;b.call(this)}function d(a,b){if(a.pos<a.sources.length){var d=a.sources[a.pos++];K(d)&&(d=L(d));var e=new F;a.subscription.setDisposable(e);e.setDisposable(d.subscribe(new Wd(a,b)))}else a.o.onCompleted()}n(a,b);a.prototype.subscribeCore=function(a){var b=new Y;a=ta.scheduleRecursive({pos:0,
subscription:b,o:a,sources:this.sources},d);return new P(b,a)};return a}(A),Wd=function(b){function a(a,e){this._state=a;this._recurse=e;b.call(this)}n(a,b);a.prototype.next=function(a){this._state.o.onNext(a)};a.prototype.error=function(){this._recurse(this._state)};a.prototype.completed=function(){this._recurse(this._state)};return a}(B),Vd=C.onErrorResumeNext=function(){var b;if(Array.isArray(arguments[0]))b=arguments[0];else{var a=arguments.length;b=Array(a);for(var d=0;d<a;d++)b[d]=arguments[d]}return new Xd(b)},
$d=function(b){function a(a,e){this._s=a;this._o=K(e)?L(e):e;this._open=!1;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){var b=new F;b.setDisposable(this._s.subscribe(new Yd(a,this)));K(this._o)&&(this._o=L(this._o));var d=new F;d.setDisposable(this._o.subscribe(new Zd(a,this,d)));return new P(b,d)};return a}(A),Yd=function(b){function a(a,e){this._o=a;this._p=e;b.call(this)}n(a,b);a.prototype.next=function(a){this._p._open&&this._o.onNext(a)};a.prototype.error=function(a){this._o.onError(a)};
a.prototype.onCompleted=function(){this._p._open&&this._o.onCompleted()};return a}(B),Zd=function(b){function a(a,e,l){this._o=a;this._p=e;this._r=l;b.call(this)}n(a,b);a.prototype.next=function(){this._p._open=!0;this._r.dispose()};a.prototype.error=function(a){this._o.onError(a)};a.prototype.onCompleted=function(){this._r.dispose()};return a}(B);r.skipUntil=function(b){return new $d(this,b)};var ae=function(b){function a(a){this.source=a;b.call(this)}function d(a,b){this.o=a;this.inner=b;this.stopped=
!1;this.latest=0;this.hasLatest=!1;B.call(this)}function e(a,b){this.parent=a;this.id=b;B.call(this)}n(a,b);a.prototype.subscribeCore=function(a){var b=new Y;a=this.source.subscribe(new d(a,b));return new P(a,b)};n(d,B);d.prototype.next=function(a){var b=new F,d=++this.latest;this.hasLatest=!0;this.inner.setDisposable(b);K(a)&&(a=L(a));b.setDisposable(a.subscribe(new e(this,d)))};d.prototype.error=function(a){this.o.onError(a)};d.prototype.completed=function(){this.stopped=!0;!this.hasLatest&&this.o.onCompleted()};
n(e,B);e.prototype.next=function(a){this.parent.latest===this.id&&this.parent.o.onNext(a)};e.prototype.error=function(a){this.parent.latest===this.id&&this.parent.o.onError(a)};e.prototype.completed=function(){this.parent.latest===this.id&&(this.parent.hasLatest=!1,this.parent.stopped&&this.parent.o.onCompleted())};return a}(A);r["switch"]=r.switchLatest=function(){return new ae(this)};var ce=function(b){function a(a,e){this.source=a;this.other=K(e)?L(e):e;b.call(this)}n(a,b);a.prototype.subscribeCore=
function(a){return new P(this.source.subscribe(a),this.other.subscribe(new be(a)))};return a}(A),be=function(b){function a(a){this._o=a;b.call(this)}n(a,b);a.prototype.next=function(){this._o.onCompleted()};a.prototype.error=function(a){this._o.onError(a)};a.prototype.onCompleted=ca;return a}(B);r.takeUntil=function(b){return new ce(this,b)};var fe=function(b){function a(a,e,l){this._s=a;this._ss=e;this._cb=l;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){for(var b=this._ss.length,b={hasValue:E(b,
V),hasValueAll:!1,values:Array(b)},d=this._ss.length,c=Array(d+1),f=0;f<d;f++){var g=this._ss[f],k=new F;K(g)&&(g=L(g));k.setDisposable(g.subscribe(new de(a,f,b)));c[f]=k}f=new F;f.setDisposable(this._s.subscribe(new ee(a,this._cb,b)));c[d]=f;return new xa(c)};return a}(A),de=function(b){function a(a,e,l){this._o=a;this._i=e;this._state=l;b.call(this)}n(a,b);a.prototype.next=function(a){this._state.values[this._i]=a;this._state.hasValue[this._i]=!0;this._state.hasValueAll=this._state.hasValue.every(va)};
a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=ca;return a}(B),ee=function(b){function a(a,e,l){this._o=a;this._cb=e;this._state=l;b.call(this)}n(a,b);a.prototype.next=function(a){a=[a].concat(this._state.values);if(this._state.hasValueAll){a=x(this._cb).apply(null,a);if(a===w)return this._o.onError(a.e);this._o.onNext(a)}};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._o.onCompleted()};return a}(B);r.withLatestFrom=function(){if(0===
arguments.length)throw Error("invalid arguments");for(var b=arguments.length,a=Array(b),d=0;d<b;d++)a[d]=arguments[d];b=H(a[b-1])?a.pop():S;Array.isArray(a[0])&&(a=a[0]);return new fe(this,a,b)};var he=function(b){function a(a,e){this._s=a;this._cb=e;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){for(var b=this._s.length,d=Array(b),c=E(b,V),f=E(b,na),g=0;g<b;g++){var k=this._s[g],h=new F;d[g]=h;K(k)&&(k=L(k));h.setDisposable(k.subscribe(new ge(a,g,this,f,c)))}return new xa(d)};return a}(A),
ge=function(b){function a(a,d,e,l,c){this._o=a;this._i=d;this._p=e;this._q=l;this._d=c;b.call(this)}function d(a){return 0<a.length}function e(a){return a.shift()}function l(a){return function(b,d){return d!==a}}n(a,b);a.prototype.next=function(a){this._q[this._i].push(a);if(this._q.every(d)){a=this._q.map(e);a=x(this._p._cb).apply(null,a);if(a===w)return this._o.onError(a.e);this._o.onNext(a)}else if(this._d.filter(l(this._i)).every(va))this._o.onCompleted()};a.prototype.error=function(a){this._o.onError(a)};
a.prototype.completed=function(){this._d[this._i]=!0;this._d.every(va)&&this._o.onCompleted()};return a}(B);r.zip=function(){if(0===arguments.length)throw Error("invalid arguments");for(var b=arguments.length,a=Array(b),d=0;d<b;d++)a[d]=arguments[d];b=H(a[b-1])?a.pop():S;Array.isArray(a[0])&&(a=a[0]);a.unshift(this);return new he(a,b)};C.zip=function(){for(var b=arguments.length,a=Array(b),d=0;d<b;d++)a[d]=arguments[d];Array.isArray(a[0])&&(a=H(a[1])?a[0].concat(a[1]):a[0]);b=a.shift();return b.zip.apply(b,
a)};var je=function(b){function a(a,e){this.sources=a;this._cb=e;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){var b=this.sources,d=b.length,c=Array(d);a={q:E(d,na),done:E(d,V),cb:this._cb,o:a};for(var f=0;f<d;f++){var g=f,k=b[g],h=new F;(Oa(k)||Pa(k))&&(k=gb(k));c[g]=h;h.setDisposable(k.subscribe(new ie(a,g)))}return new xa(c)};return a}(A),ie=function(b){function a(a,d){this._s=a;this._i=d;b.call(this)}function d(a){return 0<a.length}function e(a){return a.shift()}function l(a){return function(b,
d){return d!==a}}n(a,b);a.prototype.next=function(a){this._s.q[this._i].push(a);if(this._s.q.every(d)){a=this._s.q.map(e);a=x(this._s.cb).apply(null,a);if(a===w)return this._s.o.onError(a.e);this._s.o.onNext(a)}else if(this._s.done.filter(l(this._i)).every(va))this._s.o.onCompleted()};a.prototype.error=function(a){this._s.o.onError(a)};a.prototype.completed=function(){this._s.done[this._i]=!0;this._s.done.every(va)&&this._s.o.onCompleted()};return a}(B);r.zipIterable=function(){if(0===arguments.length)throw Error("invalid arguments");
for(var b=arguments.length,a=Array(b),d=0;d<b;d++)a[d]=arguments[d];b=H(a[b-1])?a.pop():S;a.unshift(this);return new je(a,b)};r.asObservable=function(){return new M(Ac(this),this)};r.bufferWithCount=function(b,a){"number"!==typeof a&&(a=b);return this.windowWithCount(b,a).flatMap(T).filter(ia)};var le=function(b){function a(a){this.source=a;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new ke(a))};return a}(A),ke=function(b){function a(a){this._o=a;b.call(this)}
n(a,b);a.prototype.next=function(a){a.accept(this._o)};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._o.onCompleted()};return a}(B);r.dematerialize=function(){return new le(this)};var ne=function(b){function a(a,e,l){this.source=a;this.keyFn=e;this.comparer=l;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new me(a,this.keyFn,this.comparer))};return a}(A),me=function(b){function a(a,e,l){this.o=a;this.keyFn=e;this.comparer=
l;this.hasCurrentKey=!1;this.currentKey=null;b.call(this)}n(a,b);a.prototype.next=function(a){var b=a,d;if(H(this.keyFn)&&(b=x(this.keyFn)(a),b===w))return this.o.onError(b.e);if(this.hasCurrentKey&&(d=x(this.comparer)(this.currentKey,b),d===w))return this.o.onError(d.e);this.hasCurrentKey&&d||(this.hasCurrentKey=!0,this.currentKey=b,this.o.onNext(a))};a.prototype.error=function(a){this.o.onError(a)};a.prototype.completed=function(){this.o.onCompleted()};return a}(B);r.distinctUntilChanged=function(b,
a){a||(a=ib);return new ne(this,b,a)};var oe=function(b){function a(a,d,c,f){this.source=a;this._oN=d;this._oE=c;this._oC=f;b.call(this)}function d(a,b){this.o=a;this.t=!b._oN||H(b._oN)?Ga(b._oN||ca,b._oE||ca,b._oC||ca):b._oN;this.isStopped=!1;B.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new d(a,this))};n(d,B);d.prototype.next=function(a){var b=x(this.t.onNext).call(this.t,a);if(b===w)this.o.onError(b.e);this.o.onNext(a)};d.prototype.error=function(a){var b=
x(this.t.onError).call(this.t,a);if(b===w)return this.o.onError(b.e);this.o.onError(a)};d.prototype.completed=function(){var a=x(this.t.onCompleted).call(this.t);if(a===w)return this.o.onError(a.e);this.o.onCompleted()};return a}(A);r["do"]=r.tap=r.doAction=function(b,a,d){return new oe(this,b,a,d)};r.doOnNext=r.tapOnNext=function(b,a){return this.tap("undefined"!==typeof a?function(d){b.call(a,d)}:b)};r.doOnError=r.tapOnError=function(b,a){return this.tap(ca,"undefined"!==typeof a?function(d){b.call(a,
d)}:b)};r.doOnCompleted=r.tapOnCompleted=function(b,a){return this.tap(ca,null,"undefined"!==typeof a?function(){b.call(a)}:b)};var pe=function(b){function a(a,d,c){this.source=a;this._fn=ba(d,c,0);b.call(this)}function d(a,b){this.isDisposed=!1;this._s=a;this._fn=b}n(a,b);a.prototype.subscribeCore=function(a){a=x(this.source.subscribe).call(this.source,a);a===w&&(this._fn(),g(a.e));return new d(a,this._fn)};d.prototype.dispose=function(){if(!this.isDisposed){var a=x(this._s.dispose).call(this._s);
this._fn();a===w&&g(a.e)}};return a}(A);r["finally"]=function(b,a){return new pe(this,b,a)};var qe=function(b){function a(a){this.source=a;b.call(this)}function d(a){this.o=a;this.isStopped=!1}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new d(a))};d.prototype.onNext=ca;d.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.o.onError(a))};d.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())};d.prototype.dispose=function(){this.isStopped=
!0};d.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.observer.onError(a),!0)};return a}(A);r.ignoreElements=function(){return new qe(this)};var se=function(b){function a(a,e){this.source=a;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new re(a))};return a}(A),re=function(b){function a(a){this._o=a;b.call(this)}n(a,b);a.prototype.next=function(a){this._o.onNext(ic(a))};a.prototype.error=function(a){this._o.onNext(jc(a));this._o.onCompleted()};
a.prototype.completed=function(){this._o.onNext(kc());this._o.onCompleted()};return a}(B);r.materialize=function(){return new se(this)};r.repeat=function(b){return Cb(this,b).concat()};r.retry=function(b){return Cb(this,b).catchError()};r.retryWhen=function(b){return Cb(this).catchErrorWhen(b)};var ue=function(b){function a(a,e,l,c){this.source=a;this.accumulator=e;this.hasSeed=l;this.seed=c;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new te(a,this))};return a}(A),
te=function(b){function a(a,e){this._o=a;this._p=e;this._fn=e.accumulator;this._hs=e.hasSeed;this._s=e.seed;this._ha=!1;this._a=null;this._hv=!1;this._i=0;b.call(this)}n(a,b);a.prototype.next=function(a){!this._hv&&(this._hv=!0);this._ha?this._a=x(this._fn)(this._a,a,this._i,this._p):(this._a=this._hs?x(this._fn)(this._s,a,this._i,this._p):a,this._ha=!0);if(this._a===w)return this._o.onError(this._a.e);this._o.onNext(this._a);this._i++};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=
function(){!this._hv&&this._hs&&this._o.onNext(this._s);this._o.onCompleted()};return a}(B);r.scan=function(){var b=!1,a,d=arguments[0];2===arguments.length&&(b=!0,a=arguments[1]);return new ue(this,d,b,a)};var we=function(b){function a(a,e){this.source=a;this._c=e;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new ve(a,this._c))};return a}(A),ve=function(b){function a(a,e){this._o=a;this._c=e;this._q=[];b.call(this)}n(a,b);a.prototype.next=function(a){this._q.push(a);
this._q.length>this._c&&this._o.onNext(this._q.shift())};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._o.onCompleted()};return a}(B);r.skipLast=function(b){if(0>b)throw new ra;return new we(this,b)};r.startWith=function(){var b,a=0;arguments.length&&J(arguments[0])?(b=arguments[0],a=1):b=ta;for(var d=[],e=arguments.length;a<e;a++)d.push(arguments[a]);return Db([xd(d,b),this]).concat()};var xe=function(b){function a(a,e){this._o=a;this._c=e;this._q=[];b.call(this)}
n(a,b);a.prototype.next=function(a){this._q.push(a);this._q.length>this._c&&this._q.shift()};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){for(;0<this._q.length;)this._o.onNext(this._q.shift());this._o.onCompleted()};return a}(B);r.takeLast=function(b){if(0>b)throw new ra;var a=this;return new M(function(d){return a.subscribe(new xe(d,b))},a)};var ye=function(b){function a(a,e){this._o=a;this._c=e;this._q=[];b.call(this)}n(a,b);a.prototype.next=function(a){this._q.push(a);
this._q.length>this._c&&this._q.shift()};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._o.onNext(this._q);this._o.onCompleted()};return a}(B);r.takeLastBuffer=function(b){if(0>b)throw new ra;var a=this;return new M(function(d){return a.subscribe(new ye(d,b))},a)};r.windowWithCount=function(b,a){var d=this;+b||(b=0);Infinity===Math.abs(b)&&(b=0);if(0>=b)throw new ra;null==a&&(a=b);+a||(a=0);Infinity===Math.abs(a)&&(a=0);if(0>=a)throw new ra;return new M(function(e){function l(){var a=
new fa;k.push(a);e.onNext(wa(a,f))}var c=new F,f=new Ja(c),g=0,k=[];l();c.setDisposable(d.subscribe(function(d){for(var e=0,c=k.length;e<c;e++)k[e].onNext(d);d=g-b+1;0<=d&&0===d%a&&k.shift().onCompleted();0===++g%a&&l()},function(a){for(;0<k.length;)k.shift().onError(a);e.onError(a)},function(){for(;0<k.length;)k.shift().onCompleted();e.onCompleted()}));return f},d)};r.selectConcat=r.concatMap=function(b,a,d){return H(b)&&H(a)?this.concatMap(function(d,l){var e=b(d,l);K(e)&&(e=L(e));(Oa(e)||Pa(e))&&
(e=gb(e));return e.map(function(b,e){return a(d,b,l,e)})}):H(b)?Aa(this,b,d):Aa(this,function(){return b})};r.concatMapObserver=r.selectConcatObserver=function(b,a,d,e){var l=this,c=ba(b,e,2),f=ba(a,e,1),g=ba(d,e,0);return(new M(function(a){var b=0;return l.subscribe(function(d){var e;try{e=c(d,b++)}catch(qb){a.onError(qb);return}K(e)&&(e=L(e));a.onNext(e)},function(b){var d;try{d=f(b)}catch(qb){a.onError(qb);return}K(d)&&(d=L(d));a.onNext(d);a.onCompleted()},function(){var b;try{b=g()}catch(yc){a.onError(yc);
return}K(b)&&(b=L(b));a.onNext(b);a.onCompleted()})},this)).concatAll()};var ze=function(b){function a(a,e){this._o=a;this._d=e;this._f=!1;b.call(this)}n(a,b);a.prototype.next=function(a){this._f=!0;this._o.onNext(a)};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){!this._f&&this._o.onNext(this._d);this._o.onCompleted()};return a}(B);r.defaultIfEmpty=function(b){var a=this;b===k&&(b=null);return new M(function(d){return a.subscribe(new ze(d,b))},a)};Pb.prototype.push=
function(b){var a;a:{a=this.set;for(var d=this.comparer,e=0,c=a.length;e<c;e++)if(d(a[e],b)){a=e;break a}a=-1}(a=-1===a)&&this.set.push(b);return a};var Be=function(b){function a(a,e,c){this.source=a;this._keyFn=e;this._cmpFn=c;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new Ae(a,this._keyFn,this._cmpFn))};return a}(A),Ae=function(b){function a(a,e,c){this._o=a;this._keyFn=e;this._h=new Pb(c);b.call(this)}n(a,b);a.prototype.next=function(a){var b=a;if(H(this._keyFn)&&
(b=x(this._keyFn)(a),b===w))return this._o.onError(b.e);this._h.push(b)&&this._o.onNext(a)};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._o.onCompleted()};return a}(B);r.distinct=function(b,a){a||(a=ib);return new Be(this,b,a)};r.groupBy=function(b,a){return this.groupByUntil(b,a,tb)};r.groupByUntil=function(b,a,d){var e=this;return new M(function(c){var l=new Ka,f=new ea,g=new Ja(f),h=function(a){return function(b){b.onError(a)}};f.add(e.subscribe(function(e){var t=
x(b)(e);if(t===w)return l.forEach(h(t.e)),c.onError(t.e);var n=!1,m=l.get(t);m===k&&(m=new fa,l.set(t,m),n=!0);if(n){var n=new qc(t,m,g),v=new qc(t,m),v=x(d)(v);if(v===w)return l.forEach(h(v.e)),c.onError(v.e);c.onNext(n);var q=new F;f.add(q);q.setDisposable(v.take(1).subscribe(ca,function(a){l.forEach(h(a));c.onError(a)},function(){if(l["delete"](t))m.onCompleted();f.remove(q)}))}n=e;if(H(a)&&(n=x(a)(e),n===w))return l.forEach(h(n.e)),c.onError(n.e);m.onNext(n)},function(a){l.forEach(h(a));c.onError(a)},
function(){l.forEach(function(a){a.onCompleted()});c.onCompleted()}));return g},e)};var rc=function(b){function a(a,d,e){this.source=a;this.selector=ba(d,e,3);b.call(this)}function d(a,b){return function(d,e,c){return a.call(this,b.selector(d,e,c),e,c)}}function e(a,b,d){this.o=a;this.selector=b;this.source=d;this.i=0;B.call(this)}n(a,b);a.prototype.internalMap=function(b,e){return new a(this.source,d(b,this),e)};a.prototype.subscribeCore=function(a){return this.source.subscribe(new e(a,this.selector,
this))};n(e,B);e.prototype.next=function(a){a=x(this.selector)(a,this.i++,this.source);if(a===w)return this.o.onError(a.e);this.o.onNext(a)};e.prototype.error=function(a){this.o.onError(a)};e.prototype.completed=function(){this.o.onCompleted()};return a}(A);r.map=r.select=function(b,a){var d="function"===typeof b?b:function(){return b};return this instanceof rc?this.internalMap(d,a):new rc(this,d,a)};r.pluck=function(){var b=arguments.length,a=Array(b);if(0===b)throw Error("List of properties cannot be empty.");
for(var d=0;d<b;d++)a[d]=arguments[d];return this.map(Bc(a,b))};r.flatMap=r.selectMany=function(b,a,d){return(new lb(this,b,a,d)).mergeAll()};r.flatMapObserver=r.selectManyObserver=function(b,a,d,e){var c=this;return(new M(function(l){var f=0;return c.subscribe(function(a){var d;try{d=b.call(e,a,f++)}catch(ob){l.onError(ob);return}K(d)&&(d=L(d));l.onNext(d)},function(b){var d;try{d=a.call(e,b)}catch(ob){l.onError(ob);return}K(d)&&(d=L(d));l.onNext(d);l.onCompleted()},function(){var a;try{a=d.call(e)}catch(xc){l.onError(xc);
return}K(a)&&(a=L(a));l.onNext(a);l.onCompleted()})},c)).mergeAll()};z.Observable.prototype.flatMapLatest=function(b,a,d){return(new lb(this,b,a,d)).switchLatest()};var Ce=function(b){function a(a,d){this.source=a;this._count=d;b.call(this)}function d(a,b){this._o=a;this._r=b;B.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new d(a,this._count))};n(d,B);d.prototype.next=function(a){if(0>=this._r)this._o.onNext(a);else this._r--};d.prototype.error=function(a){this._o.onError(a)};
d.prototype.completed=function(){this._o.onCompleted()};return a}(A);r.skip=function(b){if(0>b)throw new ra;return new Ce(this,b)};var Ee=function(b){function a(a,e){this.source=a;this._fn=e;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new De(a,this))};return a}(A),De=function(b){function a(a,e){this._o=a;this._p=e;this._i=0;this._r=!1;b.call(this)}n(a,b);a.prototype.next=function(a){if(!this._r){var b=x(this._p._fn)(a,this._i++,this._p);if(b===w)return this._o.onError(b.e);
this._r=!b}this._r&&this._o.onNext(a)};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._o.onCompleted()};return a}(B);r.skipWhile=function(b,a){b=ba(b,a,3);return new Ee(this,b)};var Fe=function(b){function a(a,d){this.source=a;this._count=d;b.call(this)}function d(a,b){this._o=a;this._r=this._c=b;B.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new d(a,this._count))};n(d,B);d.prototype.next=function(a){0<this._r--&&(this._o.onNext(a),
0>=this._r&&this._o.onCompleted())};d.prototype.error=function(a){this._o.onError(a)};d.prototype.completed=function(){this._o.onCompleted()};return a}(A);r.take=function(b,a){if(0>b)throw new ra;return 0===b?Qa(a):new Fe(this,b)};var He=function(b){function a(a,e){this.source=a;this._fn=e;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new Ge(a,this))};return a}(A),Ge=function(b){function a(a,e){this._o=a;this._p=e;this._i=0;this._r=!0;b.call(this)}n(a,b);a.prototype.next=
function(a){if(this._r&&(this._r=x(this._p._fn)(a,this._i++,this._p),this._r===w))return this._o.onError(this._r.e);if(this._r)this._o.onNext(a);else this._o.onCompleted()};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._o.onCompleted()};return a}(B);r.takeWhile=function(b,a){b=ba(b,a,3);return new He(this,b)};var sc=function(b){function a(a,d,e){this.source=a;this.predicate=ba(d,e,3);b.call(this)}function d(a,b){return function(d,e,c){return b.predicate(d,
e,c)&&a.call(this,d,e,c)}}function e(a,b,d){this.o=a;this.predicate=b;this.source=d;this.i=0;B.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new e(a,this.predicate,this))};a.prototype.internalFilter=function(b,e){return new a(this.source,d(b,this),e)};n(e,B);e.prototype.next=function(a){var b=x(this.predicate)(a,this.i++,this.source);if(b===w)return this.o.onError(b.e);b&&this.o.onNext(a)};e.prototype.error=function(a){this.o.onError(a)};e.prototype.completed=
function(){this.o.onCompleted()};return a}(A);r.filter=r.where=function(b,a){return this instanceof sc?this.internalFilter(b,a):new sc(this,b,a)};var tc=function(b){function a(a,e,c){this.source=a;this._k=e;this._c=c;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new Ie(a,this._k,this._c))};return a}(A),Ie=function(b){function a(a,e,c){this._o=a;this._k=e;this._c=c;this._v=null;this._hv=!1;this._l=[];b.call(this)}n(a,b);a.prototype.next=function(a){var b=x(this._k)(a);
if(b===w)return this._o.onError(b.e);var d=0;if(this._hv){if(d=x(this._c)(b,this._v),d===w)return this._o.onError(d.e)}else this._hv=!0,this._v=b;0<d&&(this._v=b,this._l=[]);0<=d&&this._l.push(a)};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._o.onNext(this._l);this._o.onCompleted()};return a}(B),Ke=function(b){function a(a,e,c,f){this.source=a;this.accumulator=e;this.hasSeed=c;this.seed=f;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new Je(a,
this))};return a}(A),Je=function(b){function a(a,e){this._o=a;this._p=e;this._fn=e.accumulator;this._hs=e.hasSeed;this._s=e.seed;this._ha=!1;this._a=null;this._hv=!1;this._i=0;b.call(this)}n(a,b);a.prototype.next=function(a){!this._hv&&(this._hv=!0);this._ha?this._a=x(this._fn)(this._a,a,this._i,this._p):(this._a=this._hs?x(this._fn)(this._s,a,this._i,this._p):a,this._ha=!0);if(this._a===w)return this._o.onError(this._a.e);this._i++};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=
function(){this._hv&&this._o.onNext(this._a);!this._hv&&this._hs&&this._o.onNext(this._s);this._hv||this._hs||this._o.onError(new Ca);this._o.onCompleted()};return a}(B);r.reduce=function(){var b=!1,a,d=arguments[0];2===arguments.length&&(b=!0,a=arguments[1]);return new Ke(this,d,b,a)};var Me=function(b){function a(a,e){this.source=a;this._fn=e;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new Le(a,this._fn,this.source))};return a}(A),Le=function(b){function a(a,
e,c){this._o=a;this._fn=e;this._s=c;this._i=0;b.call(this)}n(a,b);a.prototype.next=function(a){a=x(this._fn)(a,this._i++,this._s);if(a===w)return this._o.onError(a.e);a&&(this._o.onNext(!0),this._o.onCompleted())};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._o.onNext(!1);this._o.onCompleted()};return a}(B);r.some=function(b,a){b=ba(b,a,3);return new Me(this,b)};var Oe=function(b){function a(a){this.source=a;b.call(this)}n(a,b);a.prototype.subscribeCore=
function(a){return this.source.subscribe(new Ne(a))};return a}(A),Ne=function(b){function a(a){this._o=a;b.call(this)}n(a,b);a.prototype.next=function(){this._o.onNext(!1);this._o.onCompleted()};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._o.onNext(!0);this._o.onCompleted()};return a}(B);r.isEmpty=function(){return new Oe(this)};var Qe=function(b){function a(a,e){this.source=a;this._fn=e;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new Pe(a,
this._fn,this.source))};return a}(A),Pe=function(b){function a(a,e,c){this._o=a;this._fn=e;this._s=c;this._i=0;b.call(this)}n(a,b);a.prototype.next=function(a){a=x(this._fn)(a,this._i++,this._s);if(a===w)return this._o.onError(a.e);a||(this._o.onNext(!1),this._o.onCompleted())};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._o.onNext(!0);this._o.onCompleted()};return a}(B);r.every=function(b,a){b=ba(b,a,3);return new Qe(this,b)};var Se=function(b){function a(a,
e,c){c=+c||0;Infinity===Math.abs(c)&&(c=0);this.source=a;this._elem=e;this._n=c;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return 0>this._n?(a.onNext(!1),a.onCompleted(),U):this.source.subscribe(new Re(a,this._elem,this._n))};return a}(A),Re=function(b){function a(a,e,c){this._o=a;this._elem=e;this._n=c;this._i=0;b.call(this)}n(a,b);a.prototype.next=function(a){var b;if(b=this._i++>=this._n)b=this._elem,b=0===a&&0===b||a===b||isNaN(a)&&isNaN(b);b&&(this._o.onNext(!0),this._o.onCompleted())};
a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._o.onNext(!1);this._o.onCompleted()};return a}(B);r.includes=function(b,a){return new Se(this,b,a)};var Ue=function(b){function a(a,e){this.source=a;this._fn=e;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new Te(a,this._fn,this.source))};return a}(A),Te=function(b){function a(a,e,c){this._o=a;this._fn=e;this._s=c;this._c=this._i=0;b.call(this)}n(a,b);a.prototype.next=function(a){if(this._fn){a=
x(this._fn)(a,this._i++,this._s);if(a===w)return this._o.onError(a.e);a&&this._c++}else this._c++};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._o.onNext(this._c);this._o.onCompleted()};return a}(B);r.count=function(b,a){b=ba(b,a,3);return new Ue(this,b)};var We=function(b){function a(a,e,c){this.source=a;this._e=e;this._n=c;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return 0>this._n?(a.onNext(-1),a.onCompleted(),U):this.source.subscribe(new Ve(a,
this._e,this._n))};return a}(A),Ve=function(b){function a(a,e,c){this._o=a;this._e=e;this._n=c;this._i=0;b.call(this)}n(a,b);a.prototype.next=function(a){this._i>=this._n&&a===this._e&&(this._o.onNext(this._i),this._o.onCompleted());this._i++};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._o.onNext(-1);this._o.onCompleted()};return a}(B);r.indexOf=function(b,a){a=+a||0;Infinity===Math.abs(a)&&(a=0);return new We(this,b,a)};var Ye=function(b){function a(a,
e){this.source=a;this._fn=e;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new Xe(a,this._fn,this.source))};return a}(A),Xe=function(b){function a(a,e,c){this._o=a;this._fn=e;this._s=c;this._c=this._i=0;b.call(this)}n(a,b);a.prototype.next=function(a){if(this._fn&&(a=x(this._fn)(a,this._i++,this._s),a===w))return this._o.onError(a.e);this._c+=a};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._o.onNext(this._c);this._o.onCompleted()};
return a}(B);r.sum=function(b,a){b=ba(b,a,3);return new Ye(this,b)};r.minBy=function(b,a){a||(a=jb);return new tc(this,b,function(b,e){return-1*a(b,e)})};r.min=function(b){return this.minBy(va,b).map(function(a){return Qb(a)})};r.maxBy=function(b,a){a||(a=jb);return new tc(this,b,a)};r.max=function(b){return this.maxBy(va,b).map(function(a){return Qb(a)})};var $e=function(b){function a(a,e){this.source=a;this._fn=e;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new Ze(a,
this._fn,this.source))};return a}(A),Ze=function(b){function a(a,e,c){this._o=a;this._fn=e;this._s=c;this._t=this._c=0;b.call(this)}n(a,b);a.prototype.next=function(a){if(this._fn){if(a=x(this._fn)(a,this._c++,this._s),a===w)return this._o.onError(a.e)}else this._c++;this._t+=a};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){if(0===this._c)return this._o.onError(new Ca);this._o.onNext(this._t/this._c);this._o.onCompleted()};return a}(B);r.average=function(b,a){var d;
H(b)&&(d=ba(b,a,3));return new $e(this,d)};r.sequenceEqual=function(b,a){var d=this;a||(a=ib);return new M(function(e){var c=!1,f=!1,g=[],k=[],h=d.subscribe(function(b){if(0<k.length){var d=k.shift();b=x(a)(d,b);if(b===w)return e.onError(b.e);b||(e.onNext(!1),e.onCompleted())}else f?(e.onNext(!1),e.onCompleted()):g.push(b)},function(a){e.onError(a)},function(){c=!0;0===g.length&&(0<k.length?(e.onNext(!1),e.onCompleted()):f&&(e.onNext(!0),e.onCompleted()))});(Oa(b)||Pa(b))&&(b=gb(b));K(b)&&(b=L(b));
var n=b.subscribe(function(b){if(0<g.length){var d=g.shift();b=x(a)(d,b);if(b===w)return e.onError(b.e);b||(e.onNext(!1),e.onCompleted())}else c?(e.onNext(!1),e.onCompleted()):k.push(b)},function(a){e.onError(a)},function(){f=!0;0===k.length&&(0<g.length?(e.onNext(!1),e.onCompleted()):c&&(e.onNext(!0),e.onCompleted()))});return new P(h,n)},d)};var bf=function(b){function a(a,e,c){this.source=a;this._i=e;this._d=c;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new af(a,
this._i,this._d))};return a}(A),af=function(b){function a(a,e,c){this._o=a;this._i=e;this._d=c;b.call(this)}n(a,b);a.prototype.next=function(a){0===this._i--&&(this._o.onNext(a),this._o.onCompleted())};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){if(this._d===k)this._o.onError(new ra);else this._o.onNext(this._d),this._o.onCompleted()};return a}(B);r.elementAt=function(b,a){if(0>b)throw new ra;return new bf(this,b,a)};var cf=function(b){function a(a,e,c){this._o=
a;this._obj=e;this._s=c;this._i=0;this._hv=!1;this._v=null;b.call(this)}n(a,b);a.prototype.next=function(a){var b=!1;if(this._obj.predicate){var d=x(this._obj.predicate)(a,this._i++,this._s);if(d===w)return this._o.onError(d.e);d&&(b=!0)}else this._obj.predicate||(b=!0);if(b){if(this._hv)return this._o.onError(Error("Sequence contains more than one matching element"));this._hv=!0;this._v=a}};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){if(this._hv)this._o.onNext(this._v),
this._o.onCompleted();else if(this._obj.defaultValue===k)this._o.onError(new Ca);else this._o.onNext(this._obj.defaultValue),this._o.onCompleted()};return a}(B);r.single=function(b,a,d){var e={},c=this,e="object"===typeof b?b:{predicate:b,thisArg:a,defaultValue:d};H(e.predicate)&&(e.predicate=ba(e.predicate,e.thisArg,3));return new M(function(a){return c.subscribe(new cf(a,e,c))},c)};var ef=function(b){function a(a,e){this.source=a;this._obj=e;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new df(a,
this._obj,this.source))};return a}(A),df=function(b){function a(a,e,c){this._o=a;this._obj=e;this._s=c;this._i=0;b.call(this)}n(a,b);a.prototype.next=function(a){if(this._obj.predicate){var b=x(this._obj.predicate)(a,this._i++,this._s);if(b===w)return this._o.onError(b.e);b&&(this._o.onNext(a),this._o.onCompleted())}else this._obj.predicate||(this._o.onNext(a),this._o.onCompleted())};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){if(this._obj.defaultValue===k)this._o.onError(new Ca);
else this._o.onNext(this._obj.defaultValue),this._o.onCompleted()};return a}(B);r.first=function(b,a,d){b="object"===typeof b?b:{predicate:b,thisArg:a,defaultValue:d};H(b.predicate)&&(b.predicate=ba(b.predicate,b.thisArg,3));return new ef(this,b)};var gf=function(b){function a(a,e){this.source=a;this._obj=e;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new ff(a,this._obj,this.source))};return a}(A),ff=function(b){function a(a,e,c){this._o=a;this._obj=e;this._s=
c;this._i=0;this._hv=!1;this._v=null;b.call(this)}n(a,b);a.prototype.next=function(a){var b=!1;if(this._obj.predicate){var d=x(this._obj.predicate)(a,this._i++,this._s);if(d===w)return this._o.onError(d.e);d&&(b=!0)}else this._obj.predicate||(b=!0);b&&(this._hv=!0,this._v=a)};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){if(this._hv)this._o.onNext(this._v),this._o.onCompleted();else if(this._obj.defaultValue===k)this._o.onError(new Ca);else this._o.onNext(this._obj.defaultValue),
this._o.onCompleted()};return a}(B);r.last=function(b,a,d){b="object"===typeof b?b:{predicate:b,thisArg:a,defaultValue:d};H(b.predicate)&&(b.predicate=ba(b.predicate,b.thisArg,3));return new gf(this,b)};var Cc=function(b){function a(a,e,c,f){this._o=a;this._s=e;this._cb=c;this._y=f;this._i=0;b.call(this)}n(a,b);a.prototype.next=function(a){var b=x(this._cb)(a,this._i,this._s);if(b===w)return this._o.onError(b.e);b?(this._o.onNext(this._y?this._i:a),this._o.onCompleted()):this._i++};a.prototype.error=
function(a){this._o.onError(a)};a.prototype.completed=function(){this._y&&this._o.onNext(-1);this._o.onCompleted()};return a}(B);r.find=function(b,a){return Rb(this,b,a,!1)};r.findIndex=function(b,a){return Rb(this,b,a,!0)};var jf=function(b){function a(a){this.source=a;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new hf(a))};return a}(A),hf=function(b){function a(a){this._o=a;this._s=new N.Set;b.call(this)}n(a,b);a.prototype.next=function(a){this._s.add(a)};
a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._o.onNext(this._s);this._o.onCompleted()};return a}(B);r.toSet=function(){if("undefined"===typeof N.Set)throw new TypeError;return new jf(this)};var lf=function(b){function a(a,e,c){this.source=a;this._k=e;this._e=c;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new kf(a,this._k,this._e))};return a}(A),kf=function(b){function a(a,e,c){this._o=a;this._k=e;this._e=c;this._m=
new N.Map;b.call(this)}n(a,b);a.prototype.next=function(a){var b=x(this._k)(a);if(b===w)return this._o.onError(b.e);var d=a;if(this._e&&(d=x(this._e)(a),d===w))return this._o.onError(d.e);this._m.set(b,d)};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._o.onNext(this._m);this._o.onCompleted()};return a}(B);r.toMap=function(b,a){if("undefined"===typeof N.Map)throw new TypeError;return new lf(this,b,a)};var nf=function(b){function a(a,e,c){this.source=a;this._b=
e;this._e=c;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new mf(a,this._b,this._e))};return a}(A),mf=function(b){function a(a,e,c){this._o=a;this._b=e;this._e=c;this._i=0;b.call(this)}n(a,b);a.prototype.next=function(a){if(this._i>=this._b)if(this._e===this._i)this._o.onCompleted();else this._o.onNext(a);this._i++};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._o.onCompleted()};return a}(B);r.slice=function(b,a){b=
b||0;if(0>b)throw new z.ArgumentOutOfRangeError;if("number"===typeof a&&a<b)throw new z.ArgumentOutOfRangeError;return new nf(this,b,a)};var pf=function(b){function a(a,e,c){this.source=a;this._e=e;this._n=c;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return 0>this._n?(a.onNext(-1),a.onCompleted(),U):this.source.subscribe(new of(a,this._e,this._n))};return a}(A),of=function(b){function a(a,e,c){this._o=a;this._e=e;this._n=c;this._v=0;this._hv=!1;this._i=0;b.call(this)}n(a,b);a.prototype.next=
function(a){this._i>=this._n&&a===this._e&&(this._hv=!0,this._v=this._i);this._i++};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){if(this._hv)this._o.onNext(this._v);else this._o.onNext(-1);this._o.onCompleted()};return a}(B);r.lastIndexOf=function(b,a){a=+a||0;Infinity===Math.abs(a)&&(a=0);return new pf(this,b,a)};C.wrap=function(b){function a(){return C.spawn.call(this,b.apply(this,arguments))}a.__generatorFunction__=b;return a};var Dc=C.spawn=function(){for(var b=
arguments[0],a=this,d=[],e=1,c=arguments.length;e<c;e++)d.push(arguments[e]);return new M(function(e){function c(a){a=x(b.next).call(b,a);if(a===w)return e.onError(a.e);f(a)}function l(a){a=x(b.next).call(b,a);if(a===w)return e.onError(a.e);f(a)}function f(b){if(b.done)e.onNext(b.value),e.onCompleted();else{b=rb.call(a,b.value);var d=null,f=!1;C.isObservable(b)?g.add(b.subscribe(function(a){f=!0;d=a},l,function(){f&&c(d)})):l(new TypeError("type not supported"))}}var g=new ea;H(b)&&(b=b.apply(a,d));
if(!b||!H(b.next))return e.onNext(b),e.onCompleted();c();return g})};C.start=function(b,a,d){return qf(b,a,d)()};var qf=C.toAsync=function(b,a,d){J(d)||(d=W);return function(){var e=arguments,c=new Ua;d.schedule(null,function(){var d;try{d=b.apply(a,e)}catch(ua){c.onError(ua);return}c.onNext(d);c.onCompleted()});return c.asObservable()}};C.fromCallback=function(b,a,d){return function(){"undefined"===typeof a&&(a=this);for(var e=arguments.length,c=Array(e),f=0;f<e;f++)c[f]=arguments[f];e=a;f=new Ua;
c.push(Hc(f,e,d));b.apply(e,c);return f.asObservable()}};C.fromNodeCallback=function(b,a,d){return function(){"undefined"===typeof a&&(a=this);for(var e=arguments.length,c=Array(e),f=0;f<e;f++)c[f]=arguments[f];e=a;f=new Ua;c.push(Ic(f,e,d));b.apply(e,c);return f.asObservable()}};Tb.prototype.dispose=function(){this.isDisposed||(this._e.removeEventListener(this._n,this._fn,!1),this.isDisposed=!0)};z.config.useNativeEvents=!1;var rf=function(b){function a(a,d,c){this._el=a;this._n=d;this._fn=c;b.call(this)}
function d(a,b){return function(){var d=arguments[0];if(H(b)&&(d=x(b).apply(null,arguments),d===w))return a.onError(d.e);a.onNext(d)}}n(a,b);a.prototype.subscribeCore=function(a){return Ub(this._el,this._n,d(a,this._fn))};return a}(A);C.fromEvent=function(b,a,d){return b.addListener?uc(function(d){b.addListener(a,d)},function(d){b.removeListener(a,d)},d):z.config.useNativeEvents||"function"!==typeof b.on||"function"!==typeof b.off?(new rf(b,a,d)).publish().refCount():uc(function(d){b.on(a,d)},function(d){b.off(a,
d)},d)};var sf=function(b){function a(a,d,e){this._add=a;this._del=d;this._fn=e;b.call(this)}function d(a,b){return function(){var d=arguments[0];if(H(b)&&(d=x(b).apply(null,arguments),d===w))return a.onError(d.e);a.onNext(d)}}function e(a,b,d){this._del=a;this._fn=b;this._ret=d;this.isDisposed=!1}n(a,b);a.prototype.subscribeCore=function(a){a=d(a,this._fn);var b=this._add(a);return new e(this._del,a,b)};e.prototype.dispose=function(){this.isDisposed||H(this._del)&&this._del(this._fn,this._ret)};
return a}(A),uc=C.fromEventPattern=function(b,a,d){return(new sf(b,a,d)).publish().refCount()};C.startAsync=function(b){b=x(b)();return b===w?Ba(b.e):L(b)};var tf=function(b){function a(a,e){this.source=a;this.controller=new fa;this.pauser=e&&e.subscribe?this.controller.merge(e):this.controller;b.call(this)}n(a,b);a.prototype._subscribe=function(a){var b=this.source.publish();a=b.subscribe(a);var d=U,c=this.pauser.distinctUntilChanged().subscribe(function(a){a?d=b.connect():(d.dispose(),d=U)});return new xa([a,
d,c])};a.prototype.pause=function(){this.controller.onNext(!1)};a.prototype.resume=function(){this.controller.onNext(!0)};return a}(C);r.pausable=function(b){return new tf(this,b)};var uf=function(b){function a(a,e){this.source=a;this.controller=new fa;this.pauser=e&&e.subscribe?this.controller.merge(e):this.controller;b.call(this)}n(a,b);a.prototype._subscribe=function(a){function b(){for(;0<d.length;)a.onNext(d.shift())}var d=[],c;return Jc(this.source,this.pauser.startWith(!1).distinctUntilChanged(),
function(a,b){return{data:a,shouldFire:b}}).subscribe(function(e){if(c!==k&&e.shouldFire!==c)(c=e.shouldFire)&&b();else if(c=e.shouldFire)a.onNext(e.data);else d.push(e.data)},function(d){b();a.onError(d)},function(){b();a.onCompleted()})};a.prototype.pause=function(){this.controller.onNext(!1)};a.prototype.resume=function(){this.controller.onNext(!0)};return a}(C);r.pausableBuffered=function(b){return new uf(this,b)};var Fb=function(b){function a(a,e,c){b.call(this);this.subject=new vf(e,c);this.source=
a.multicast(this.subject).refCount()}n(a,b);a.prototype._subscribe=function(a){return this.source.subscribe(a)};a.prototype.request=function(a){return this.subject.request(null==a?-1:a)};return a}(C),vf=function(b){function a(a,e){null==a&&(a=!0);b.call(this);this.subject=new fa;this.queue=(this.enableQueue=a)?[]:null;this.requestedCount=0;this.error=this.requestedDisposable=null;this.hasCompleted=this.hasFailed=!1;this.scheduler=e||ga}n(a,b);Na(a.prototype,ma,{_subscribe:function(a){return this.subject.subscribe(a)},
onCompleted:function(){this.hasCompleted=!0;this.enableQueue&&0!==this.queue.length?this.queue.push(qa.createOnCompleted()):(this.subject.onCompleted(),this.disposeCurrentRequest())},onError:function(a){this.hasFailed=!0;this.error=a;this.enableQueue&&0!==this.queue.length?this.queue.push(qa.createOnError(a)):(this.subject.onError(a),this.disposeCurrentRequest())},onNext:function(a){0>=this.requestedCount?this.enableQueue&&this.queue.push(qa.createOnNext(a)):(0===this.requestedCount--&&this.disposeCurrentRequest(),
this.subject.onNext(a))},_processRequest:function(a){if(this.enableQueue)for(;0<this.queue.length&&(0<a||"N"!==this.queue[0].kind);){var b=this.queue.shift();b.accept(this.subject);"N"===b.kind?a--:(this.disposeCurrentRequest(),this.queue=[])}return a},request:function(a){this.disposeCurrentRequest();var b=this;return this.requestedDisposable=this.scheduler.schedule(a,function(a,d){a=b._processRequest(d);if(!b.hasCompleted&&!b.hasFailed&&0<a)return b.requestedCount=a,Fa(function(){b.requestedCount=
0})})},disposeCurrentRequest:function(){this.requestedDisposable&&(this.requestedDisposable.dispose(),this.requestedDisposable=null)}});return a}(C);r.controlled=function(b,a){b&&J(b)&&(a=b,b=!0);null==b&&(b=!0);return new Fb(this,b,a)};var wf=function(b){function a(a){b.call(this);this.source=a}function d(a,b){b.source.request(1)}n(a,b);a.prototype._subscribe=function(a){this.subscription=this.source.subscribe(new e(a,this,this.subscription));return new P(this.subscription,W.schedule(this,d))};var e=
function(b){function d(a,d,e){b.call(this);this.observer=a;this.observable=d;this.cancel=e;this.scheduleDisposable=null}function e(a,b){b.observable.source.request(1)}n(d,b);d.prototype.completed=function(){this.observer.onCompleted();this.dispose()};d.prototype.error=function(a){this.observer.onError(a);this.dispose()};d.prototype.next=function(a){this.observer.onNext(a);this.scheduleDisposable=W.schedule(this,e)};a.dispose=function(){this.observer=null;this.cancel&&(this.cancel.dispose(),this.cancel=
null);this.scheduleDisposable&&(this.scheduleDisposable.dispose(),this.scheduleDisposable=null);b.prototype.dispose.call(this)};return d}(B);return a}(C);Fb.prototype.stopAndWait=function(){return new wf(this)};var xf=function(b){function a(a,d){b.call(this);this.source=a;this.windowSize=d}function d(a,b){b.source.request(b.windowSize)}n(a,b);a.prototype._subscribe=function(a){this.subscription=this.source.subscribe(new e(a,this,this.subscription));return new P(this.subscription,W.schedule(this,d))};
var e=function(a){function b(b,d,e){this.observer=b;this.observable=d;this.cancel=e;this.received=0;this.scheduleDisposable=null;a.call(this)}function d(a,b){b.observable.source.request(b.observable.windowSize)}n(b,a);b.prototype.completed=function(){this.observer.onCompleted();this.dispose()};b.prototype.error=function(a){this.observer.onError(a);this.dispose()};b.prototype.next=function(a){this.observer.onNext(a);this.received=++this.received%this.observable.windowSize;0===this.received&&(this.scheduleDisposable=
W.schedule(this,d))};b.prototype.dispose=function(){this.observer=null;this.cancel&&(this.cancel.dispose(),this.cancel=null);this.scheduleDisposable&&(this.scheduleDisposable.dispose(),this.scheduleDisposable=null);a.prototype.dispose.call(this)};return b}(B);return a}(C);Fb.prototype.windowed=function(b){return new xf(this,b)};r.pipe=function(b){function a(){d.resume()}var d=this.pausableBuffered();b.addListener("drain",a);d.subscribe(function(a){!b.write(String(a))&&d.pause()},function(a){b.emit("error",
a)},function(){!b._isStdio&&b.end();b.removeListener("drain",a)});d.resume();return b};var yf=function(b){function a(a,e,c){this.source=a;this._fn1=e;this._fn2=c;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){var b=this.source.multicast(this._fn1());return new P(this._fn2(b).subscribe(a),b.connect())};return a}(A);r.multicast=function(b,a){return H(b)?new yf(this,b,a):new zf(this,b)};r.publish=function(b){return b&&H(b)?this.multicast(function(){return new fa},b):this.multicast(new fa)};
r.share=function(){return this.publish().refCount()};r.publishLast=function(b){return b&&H(b)?this.multicast(function(){return new Ua},b):this.multicast(new Ua)};r.publishValue=function(b,a){return 2===arguments.length?this.multicast(function(){return new vc(a)},b):this.multicast(new vc(b))};r.shareValue=function(b){return this.publishValue(b).refCount()};r.replay=function(b,a,d,e){return b&&H(b)?this.multicast(function(){return new wc(a,d,e)},b):this.multicast(new wc(a,d,e))};r.shareReplay=function(b,
a,d){return this.replay(null,b,a,d).refCount()};var mb=function(b,a){this._s=b;this._o=a};mb.prototype.dispose=function(){if(!this._s.isDisposed&&null!==this._o){var b=this._s.observers.indexOf(this._o);this._s.observers.splice(b,1);this._o=null}};var Af=function(b){function a(a){this.source=a;this._count=0;this._connectableSubscription=null;b.call(this)}function d(a,b){this._p=a;this._s=b;this.isDisposed=!1}n(a,b);a.prototype.subscribeCore=function(a){a=this.source.subscribe(a);1===++this._count&&
(this._connectableSubscription=this.source.connect());return new d(this,a)};d.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._s.dispose(),0===--this._p._count&&this._p._connectableSubscription.dispose())};return a}(A),zf=z.ConnectableObservable=function(b){function a(a,d){this.source=a;this._connection=null;this._source=a.asObservable();this._subject=d;b.call(this)}function d(a,b){this._p=a;this._s=b}n(a,b);d.prototype.dispose=function(){this._s&&(this._s.dispose(),this._s=
null,this._p._connection=null)};a.prototype.connect=function(){if(!this._connection){var a=this._source.subscribe(this._subject);this._connection=new d(this,a)}return this._connection};a.prototype._subscribe=function(a){return this._subject.subscribe(a)};a.prototype.refCount=function(){return new Af(this)};return a}(C);r.singleInstance=function(){function b(){d||(d=!0,e=a["finally"](function(){d=!1}).publish().refCount());return e}var a=this,d=!1,e;return new M(function(a){return b().subscribe(a)})};
r.join=function(b,a,d,e){var c=this;return new M(function(l){var f=new ea,g=!1,k=!1,t=0,h=0,n=new Ka,m=new Ka,v=function(a){l.onError(a)};f.add(c.subscribe(function(b){var d=t++,c=new F;n.set(d,b);f.add(c);var k=x(a)(b);if(k===w)return l.onError(k.e);c.setDisposable(k.take(1).subscribe(ca,v,function(){n["delete"](d)&&0===n.size&&g&&l.onCompleted();f.remove(c)}));m.forEach(function(a){a=x(e)(b,a);if(a===w)return l.onError(a.e);l.onNext(a)})},v,function(){g=!0;(k||0===n.size)&&l.onCompleted()}));f.add(b.subscribe(function(a){var b=
h++,c=new F;m.set(b,a);f.add(c);var g=x(d)(a);if(g===w)return l.onError(g.e);c.setDisposable(g.take(1).subscribe(ca,v,function(){m["delete"](b)&&0===m.size&&k&&l.onCompleted();f.remove(c)}));n.forEach(function(b){b=x(e)(b,a);if(b===w)return l.onError(b.e);l.onNext(b)})},v,function(){k=!0;(g||0===m.size)&&l.onCompleted()}));return f},c)};r.groupJoin=function(b,a,d,e){var c=this;return new M(function(l){function f(a){}var g=new ea,k=new Ja(g),t=new Ka,h=new Ka,n=0,m=0,f=function(a){return function(b){b.onError(a)}};
g.add(c.subscribe(function(b){var d=new fa,c=n++;t.set(c,d);var m=x(e)(b,wa(d,k));if(m===w)return t.forEach(f(m.e)),l.onError(m.e);l.onNext(m);h.forEach(function(a){d.onNext(a)});var v=new F;g.add(v);b=x(a)(b);if(b===w)return t.forEach(f(b.e)),l.onError(b.e);v.setDisposable(b.take(1).subscribe(ca,function(a){t.forEach(f(a));l.onError(a)},function(){t["delete"](c)&&d.onCompleted();g.remove(v)}))},function(a){t.forEach(f(a));l.onError(a)},function(){l.onCompleted()}));g.add(b.subscribe(function(a){var b=
m++;h.set(b,a);var e=new F;g.add(e);var c=x(d)(a);if(c===w)return t.forEach(f(c.e)),l.onError(c.e);e.setDisposable(c.take(1).subscribe(ca,function(a){t.forEach(f(a));l.onError(a)},function(){h["delete"](b);g.remove(e)}));t.forEach(function(b){b.onNext(a)})},function(a){t.forEach(f(a));l.onError(a)}));return k},c)};r.buffer=function(){return this.window.apply(this,arguments).flatMap(T)};r.window=function(b,a){return 1===arguments.length&&"function"!==typeof arguments[0]?Lc.call(this,b):"function"===
typeof b?Mc.call(this,b):Kc.call(this,b,a)};var Cf=function(b){function a(a){this.source=a;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new Bf(a))};return a}(A),Bf=function(b){function a(a){this._o=a;this._p=null;this._hp=!1}n(a,b);a.prototype.next=function(a){if(this._hp)this._o.onNext([this._p,a]);else this._hp=!0;this._p=a};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._o.onCompleted()};return a}(B);r.pairwise=
function(){return new Cf(this)};r.partition=function(b,a){var d=ba(b,a,3);return[this.filter(b,a),this.filter(function(a,b,c){return!d(a,b,c)})]};var Df=function(b){function a(a,b){this.c=a;this.s=b}n(a,b);a.prototype[pa]=function(){var a=this;return{next:function(){return a.c()?{done:!1,value:a.s}:{done:!0,value:void 0}}}};return a}(Ha);r.letBind=r.let=function(b){return b(this)};C["if"]=function(b,a,d){return Xa(function(){d||(d=Qa());K(a)&&(a=L(a));K(d)&&(d=L(d));"function"===typeof d.now&&(d=
Qa(d));return b()?a:d})};C["for"]=C.forIn=function(b,a,d){return Db(b,a,d).concat()};var Ef=C["while"]=C.whileDo=function(b,a){K(a)&&(a=L(a));return(new Df(b,a)).concat()};r.doWhile=function(b){return pc([this,Ef(b,this)])};C["case"]=function(b,a,d){return Xa(function(){K(d)&&(d=L(d));d||(d=Qa());J(d)&&(d=Qa(d));var e=a[b()];K(e)&&(e=L(e));return e||d})};var Gf=function(b){function a(a,d,c){this.source=a;this._fn=d;this._scheduler=c;b.call(this)}function d(a,b){var d=a[0];a=a[1];var e;if(0<d.q.length){e=
d.q.shift();var c=new F;d.d.add(c);c.setDisposable(e.subscribe(new Ff(d,a,c)));b([d,a])}else d.isAcquired=!1}n(a,b);a.prototype._ensureActive=function(a){var b=!1;0<a.q.length&&(b=!a.isAcquired,a.isAcquired=!0);b&&a.m.setDisposable(this._scheduler.scheduleRecursive([a,this],d))};a.prototype.subscribeCore=function(a){var b=new Y,d=new ea(b);a={q:[],m:b,d:d,activeCount:0,isAcquired:!1,o:a};a.q.push(this.source);a.activeCount++;this._ensureActive(a);return d};return a}(A),Ff=function(b){function a(a,
e,c){this._s=a;this._p=e;this._m1=c;b.call(this)}n(a,b);a.prototype.next=function(a){this._s.o.onNext(a);a=x(this._p._fn)(a);if(a===w)return this._s.o.onError(a.e);this._s.q.push(a);this._s.activeCount++;this._p._ensureActive(this._s)};a.prototype.error=function(a){this._s.o.onError(a)};a.prototype.completed=function(){this._s.d.remove(this._m1);this._s.activeCount--;0===this._s.activeCount&&this._s.o.onCompleted()};return a}(B);r.expand=function(b,a){J(a)||(a=ga);return new Gf(this,b,a)};var If=
function(b){function a(a,e){this._sources=a;this._cb=e;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){if(0===this._sources.length)return a.onCompleted(),U;for(var b=this._sources.length,b={finished:!1,hasResults:Array(b),hasCompleted:Array(b),results:Array(b)},d=new ea,c=0,f=this._sources.length;c<f;c++){var g=this._sources[c];K(g)&&(g=L(g));d.add(g.subscribe(new Hf(a,b,c,this._cb,d)))}return d};return a}(A),Hf=function(b){function a(a,e,c,f,g){this._o=a;this._s=e;this._i=c;this._cb=f;
this._subs=g;b.call(this)}n(a,b);a.prototype.next=function(a){this._s.finished||(this._s.hasResults[this._i]=!0,this._s.results[this._i]=a)};a.prototype.error=function(a){this._s.finished=!0;this._o.onError(a);this._subs.dispose()};a.prototype.completed=function(){if(!this._s.finished){if(!this._s.hasResults[this._i])return this._o.onCompleted();this._s.hasCompleted[this._i]=!0;for(var a=0;a<this._s.results.length;a++)if(!this._s.hasCompleted[a])return;this._s.finished=!0;a=x(this._cb).apply(null,
this._s.results);if(a===w)return this._o.onError(a.e);this._o.onNext(a);this._o.onCompleted()}};return a}(B);C.forkJoin=function(){for(var b=arguments.length,a=Array(b),d=0;d<b;d++)a[d]=arguments[d];b=H(a[b-1])?a.pop():S;Array.isArray(a[0])&&(a=a[0]);return new If(a,b)};r.forkJoin=function(){for(var b=arguments.length,a=Array(b),d=0;d<b;d++)a[d]=arguments[d];Array.isArray(a[0])?a[0].unshift(this):a.unshift(this);return C.forkJoin.apply(null,a)};r.manySelect=r.extend=function(b,a){J(a)||(a=z.Scheduler.immediate);
var d=this;return Xa(function(){var e;return d.map(function(a){var b=new Jf(a);e&&e.onNext(a);return e=b}).tap(ca,function(a){e&&e.onError(a)},function(){e&&e.onCompleted()}).observeOn(a).map(b)},d)};var Jf=function(b){function a(a){b.call(this);this.head=a;this.tail=new Ua}n(a,b);Na(a.prototype,ma,{_subscribe:function(a){var b=new ea;b.add(ga.schedule(this,function(d,e){a.onNext(e.head);b.add(e.tail.mergeAll().subscribe(a))}));return b},onCompleted:function(){this.onNext(C.empty())},onError:function(a){this.onNext(C["throw"](a))},
onNext:function(a){this.tail.onNext(a);this.tail.onCompleted()}});return a}(C),Ka=N.Map||function(){function b(){this.size=0;this._values=[];this._keys=[]}b.prototype["delete"]=function(a){a=this._keys.indexOf(a);if(-1===a)return!1;this._values.splice(a,1);this._keys.splice(a,1);this.size--;return!0};b.prototype.get=function(a){a=this._keys.indexOf(a);return-1===a?k:this._values[a]};b.prototype.set=function(a,b){var d=this._keys.indexOf(a);-1===d?(this._keys.push(a),this._values.push(b),this.size++):
this._values[d]=b;return this};b.prototype.forEach=function(a,b){for(var d=0;d<this.size;d++)a.call(b,this._values[d],this._keys[d])};return b}();Wa.prototype.and=function(b){return new Wa(this.patterns.concat(b))};Wa.prototype.thenDo=function(b){return new Vb(this,b)};Vb.prototype.activate=function(b,a,d){for(var e=[],c=Nc(a),f=0,g=this.expression.patterns.length;f<g;f++)e.push(Pc(b,this.expression.patterns[f],c));for(var k=new sb(e,Oc(this,a),function(){for(var a=0,b=e.length;a<b;a++)e[a].removeActivePlan(k);
d(k)}),f=0,g=e.length;f<g;f++)e[f].addActivePlan(k);return k};sb.prototype.dequeue=function(){this.joinObservers.forEach(function(b){b.queue.shift()})};sb.prototype.match=function(){var b,a,d=!0;b=0;for(a=this.joinObserverArray.length;b<a;b++)if(0===this.joinObserverArray[b].queue.length){d=!1;break}if(d){var d=[],e=!1;b=0;for(a=this.joinObserverArray.length;b<a;b++)d.push(this.joinObserverArray[b].queue[0]),"C"===this.joinObserverArray[b].queue[0].kind&&(e=!0);if(e)this.onCompleted();else{this.dequeue();
a=[];for(b=0;b<d.length;b++)a.push(d[b].value);this.onNext.apply(this,a)}}};var Qc=function(b){function a(a,d){b.call(this);this.source=a;this.onError=d;this.queue=[];this.activePlans=[];this.subscription=new F;this.isDisposed=!1}n(a,b);var d=a.prototype;d.next=function(a){if(!this.isDisposed){if("E"===a.kind)return this.onError(a.error);this.queue.push(a);a=this.activePlans.slice(0);for(var b=0,d=a.length;b<d;b++)a[b].match()}};d.error=ca;d.completed=ca;d.addActivePlan=function(a){this.activePlans.push(a)};
d.subscribe=function(){this.subscription.setDisposable(this.source.materialize().subscribe(this))};d.removeActivePlan=function(a){this.activePlans.splice(this.activePlans.indexOf(a),1);0===this.activePlans.length&&this.dispose()};d.dispose=function(){b.prototype.dispose.call(this);this.isDisposed||(this.isDisposed=!0,this.subscription.dispose())};return a}(B);r.and=function(b){return new Wa([this,b])};r.thenDo=function(b){return(new Wa([this])).thenDo(b)};C.when=function(){var b=arguments.length,
a;if(Array.isArray(arguments[0]))a=arguments[0];else{a=Array(b);for(var d=0;d<b;d++)a[d]=arguments[d]}return new M(function(b){var d=[],e=new Ka,c=Ga(function(a){b.onNext(a)},function(a){e.forEach(function(b){b.onError(a)});b.onError(a)},function(a){b.onCompleted()});try{for(var f=0,g=a.length;f<g;f++)d.push(a[f].activate(e,c,function(a){a=d.indexOf(a);d.splice(a,1);0===d.length&&b.onCompleted()}))}catch(Ia){Ba(Ia).subscribe(b)}var k=new ea;e.forEach(function(a){a.subscribe();k.add(a)});return k})};
var Kf=function(b){function a(a,d){this._dt=a;this._s=d;b.call(this)}function d(a,b){b.onNext(0);b.onCompleted()}n(a,b);a.prototype.subscribeCore=function(a){return this._s.scheduleFuture(a,this._dt,d)};return a}(A),Lf=C.interval=function(b,a){return Yb(b,b,J(a)?a:W)};C.timer=function(b,a,d){var e;J(d)||(d=W);null!=a&&"number"===typeof a?e=a:J(a)&&(d=a);return(b instanceof Date||"number"===typeof b)&&e===k?new Kf(b,d):b instanceof Date&&e!==k?Wb(b.getTime(),a,d):Yb(b,e,d)};r.delay=function(b,a){if("number"===
typeof b||b instanceof Date)return J(a)||(a=W),b instanceof Date?Rc(this,b,a):Zb(this,b,a);if(C.isObservable(b)||H(b))return Sc(this,b,a);throw Error("Invalid arguments");};var Nf=function(b){function a(a,e,c){J(c)||(c=W);this.source=a;this._dt=e;this._s=c;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){var b=new Y;return new P(this.source.subscribe(new Mf(a,this.source,this._dt,this._s,b)),b)};return a}(A),Mf=function(b){function a(a,e,c,f,g){this._o=a;this._s=e;this._d=c;this._scheduler=
f;this._c=g;this._v=null;this._hv=!1;this._id=0;b.call(this)}n(a,b);a.prototype.next=function(a){this._hv=!0;this._v=a;var b=++this._id,d=new F;this._c.setDisposable(d);d.setDisposable(this._scheduler.scheduleFuture(this,this._d,function(d,e){e._hv&&e._id===b&&e._o.onNext(a);e._hv=!1}))};a.prototype.error=function(a){this._c.dispose();this._o.onError(a);this._hv=!1;this._id++};a.prototype.completed=function(){this._c.dispose();this._hv&&this._o.onNext(this._v);this._o.onCompleted();this._hv=!1;this._id++};
return a}(B);r.debounce=function(b,a){if(H(b))return Tc(this,b);if("number"===typeof b)return new Nf(this,b,a);throw Error("Invalid arguments");};r.windowWithTime=function(b,a,d){var e=this,c;null==a&&(c=b);J(d)||(d=W);"number"===typeof a?c=a:J(a)&&(c=b,d=a);return new M(function(a){function f(){var b=new F,e=!1,l=!1;n.setDisposable(b);k===g?l=e=!0:k<g?e=!0:l=!0;var v=e?k:g,q=v-m;m=v;e&&(k+=c);l&&(g+=c);b.setDisposable(d.scheduleFuture(null,q,function(){if(l){var b=new fa;h.push(b);a.onNext(wa(b,
t))}e&&h.shift().onCompleted();f()}))}var l,g=c,k=b,h=[],t,n=new Y,m=0;l=new ea(n);t=new Ja(l);h.push(new fa);a.onNext(wa(h[0],t));f();l.add(e.subscribe(function(a){for(var b=0,d=h.length;b<d;b++)h[b].onNext(a)},function(b){for(var d=0,e=h.length;d<e;d++)h[d].onError(b);a.onError(b)},function(){for(var b=0,d=h.length;b<d;b++)h[b].onCompleted();a.onCompleted()}));return t},e)};r.windowWithTimeOrCount=function(b,a,d){var e=this;J(d)||(d=W);return new M(function(c){function f(a){var e=new F;l.setDisposable(e);
e.setDisposable(d.scheduleFuture(null,b,function(){if(a===n){h=0;var b=++n;m.onCompleted();m=new fa;c.onNext(wa(m,k));f(b)}}))}var l=new Y,g=new ea(l),k=new Ja(g),h=0,n=0,m=new fa;c.onNext(wa(m,k));f(0);g.add(e.subscribe(function(b){var d=0,e=!1;m.onNext(b);++h===a&&(e=!0,h=0,d=++n,m.onCompleted(),m=new fa,c.onNext(wa(m,k)));e&&f(d)},function(a){m.onError(a);c.onError(a)},function(){m.onCompleted();c.onCompleted()}));return k},e)};r.bufferWithTime=function(b,a,d){return this.windowWithTime(b,a,d).flatMap(T)};
r.bufferWithTimeOrCount=function(b,a,d){return this.windowWithTimeOrCount(b,a,d).flatMap(T)};var Pf=function(b){function a(a,e){this.source=a;this._s=e;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new Of(a,this._s))};return a}(A),Of=function(b){function a(a,e){this._o=a;this._s=e;this._l=e.now();b.call(this)}n(a,b);a.prototype.next=function(a){var b=this._s.now(),d=b-this._l;this._l=b;this._o.onNext({value:a,interval:d})};a.prototype.error=function(a){this._o.onError(a)};
a.prototype.completed=function(){this._o.onCompleted()};return a}(B);r.timeInterval=function(b){J(b)||(b=W);return new Pf(this,b)};var Rf=function(b){function a(a,e){this.source=a;this._s=e;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new Qf(a,this._s))};return a}(A),Qf=function(b){function a(a,e){this._o=a;this._s=e;b.call(this)}n(a,b);a.prototype.next=function(a){this._o.onNext({value:a,timestamp:this._s.now()})};a.prototype.error=function(a){this._o.onError(a)};
a.prototype.completed=function(){this._o.onCompleted()};return a}(B);r.timestamp=function(b){J(b)||(b=W);return new Rf(this,b)};r.sample=r.throttleLatest=function(b,a){J(a)||(a=W);return"number"===typeof b?$b(this,Lf(b,a)):$b(this,b)};var hb=z.TimeoutError=function(b){this.message=b||"Timeout has occurred";this.name="TimeoutError";Error.call(this)};hb.prototype=Object.create(Error.prototype);r.timeout=function(b,a,d){if(b instanceof Date||"number"===typeof b)return Vc(this,b,a,d);if(C.isObservable(b)||
H(b))return Uc(this,b,a,d);throw Error("Invalid arguments");};var Sf=function(b){function a(a,d,c,f,g,k){this._state=a;this._cndFn=d;this._itrFn=c;this._resFn=f;this._timeFn=g;this._s=k;this._first=!0;this._hasResult=!1;b.call(this)}function d(a,b){a._hasResult&&a._o.onNext(a._state);if(a._first)a._first=!1;else if(a._state=x(a._itrFn)(a._state),a._state===w)return a._o.onError(a._state.e);a._hasResult=x(a._cndFn)(a._state);if(a._hasResult===w)return a._o.onError(a._hasResult.e);if(a._hasResult){var d=
x(a._resFn)(a._state);if(d===w)return a._o.onError(d.e);d=x(a._timeFn)(a._state);if(d===w)return a._o.onError(d.e);b(a,d)}else a._o.onCompleted()}n(a,b);a.prototype.subscribeCore=function(a){this._o=a;return this._s.scheduleRecursiveFuture(this,new Date(this._s.now()),d)};return a}(A);C.generateWithAbsoluteTime=function(b,a,d,e,c,f){J(f)||(f=W);return new Sf(b,a,d,e,c,f)};var Tf=function(b){function a(a,d,c,f,g,k){this._state=a;this._cndFn=d;this._itrFn=c;this._resFn=f;this._timeFn=g;this._s=k;this._first=
!0;this._hasResult=!1;b.call(this)}function d(a,b){a._hasResult&&a._o.onNext(a._state);if(a._first)a._first=!1;else if(a._state=x(a._itrFn)(a._state),a._state===w)return a._o.onError(a._state.e);a._hasResult=x(a._cndFn)(a._state);if(a._hasResult===w)return a._o.onError(a._hasResult.e);if(a._hasResult){var d=x(a._resFn)(a._state);if(d===w)return a._o.onError(d.e);d=x(a._timeFn)(a._state);if(d===w)return a._o.onError(d.e);b(a,d)}else a._o.onCompleted()}n(a,b);a.prototype.subscribeCore=function(a){this._o=
a;return this._s.scheduleRecursiveFuture(this,0,d)};return a}(A);C.generateWithRelativeTime=function(b,a,d,e,c,f){J(f)||(f=W);return new Tf(b,a,d,e,c,f)};var Uf=function(b){function a(a,d,c){this.source=a;this._dt=d;this._s=c;b.call(this)}function d(a,b){b[2].setDisposable(b[0].subscribe(b[1]))}n(a,b);a.prototype.subscribeCore=function(a){var b=new Y;b.setDisposable(this._s.scheduleFuture([this.source,a,b],this._dt,d));return b};return a}(A);r.delaySubscription=function(b,a){J(a)||(a=W);return new Uf(this,
b,a)};var Wf=function(b){function a(a,e,c){this.source=a;this._d=e;this._s=c;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new Vf(a,this))};return a}(A),Vf=function(b){function a(a,e){this._o=a;this._s=e._s;this._d=e._d;this._q=[];b.call(this)}n(a,b);a.prototype.next=function(a){var b=this._s.now();for(this._q.push({interval:b,value:a});0<this._q.length&&b-this._q[0].interval>=this._d;)this._o.onNext(this._q.shift().value)};a.prototype.error=function(a){this._o.onError(a)};
a.prototype.completed=function(){for(var a=this._s.now();0<this._q.length&&a-this._q[0].interval>=this._d;)this._o.onNext(this._q.shift().value);this._o.onCompleted()};return a}(B);r.skipLastWithTime=function(b,a){J(a)||(a=W);return new Wf(this,b,a)};var Yf=function(b){function a(a,e,c){this.source=a;this._d=e;this._s=c;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){return this.source.subscribe(new Xf(a,this._d,this._s))};return a}(A),Xf=function(b){function a(a,e,c){this._o=a;this._d=
e;this._s=c;this._q=[];b.call(this)}n(a,b);a.prototype.next=function(a){var b=this._s.now();for(this._q.push({interval:b,value:a});0<this._q.length&&b-this._q[0].interval>=this._d;)this._q.shift()};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){for(var a=this._s.now();0<this._q.length;){var b=this._q.shift();if(a-b.interval<=this._d)this._o.onNext(b.value)}this._o.onCompleted()};return a}(B);r.takeLastWithTime=function(b,a){J(a)||(a=W);return new Yf(this,b,a)};
r.takeLastBufferWithTime=function(b,a){var d=this;J(a)||(a=W);return new M(function(e){var c=[];return d.subscribe(function(d){var e=a.now();for(c.push({interval:e,value:d});0<c.length&&e-c[0].interval>=b;)c.shift()},function(a){e.onError(a)},function(){for(var d=a.now(),f=[];0<c.length;){var l=c.shift();d-l.interval<=b&&f.push(l.value)}e.onNext(f);e.onCompleted()})},d)};var Zf=function(b){function a(a,d,c){this.source=a;this._d=d;this._s=c;b.call(this)}function d(a,b){b.onCompleted()}n(a,b);a.prototype.subscribeCore=
function(a){return new P(this._s.scheduleFuture(a,this._d,d),this.source.subscribe(a))};return a}(A);r.takeWithTime=function(b,a){J(a)||(a=W);return new Zf(this,b,a)};var ag=function(b){function a(a,d,c){this.source=a;this._d=d;this._s=c;this._open=!1;b.call(this)}function d(a,b){b._open=!0}n(a,b);a.prototype.subscribeCore=function(a){return new P(this._s.scheduleFuture(this,this._d,d),this.source.subscribe(new $f(a,this)))};return a}(A),$f=function(b){function a(a,c){this._o=a;this._p=c;b.call(this)}
n(a,b);a.prototype.next=function(a){this._p._open&&this._o.onNext(a)};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._o.onCompleted()};return a}(B);r.skipWithTime=function(b,a){J(a)||(a=W);return new ag(this,b,a)};var cg=function(b){function a(a,d,c){this.source=a;this._st=d;this._s=c;b.call(this)}function d(a,b){b._open=!0}n(a,b);a.prototype.subscribeCore=function(a){this._open=!1;return new P(this._s.scheduleFuture(this,this._st,d),this.source.subscribe(new bg(a,
this)))};return a}(A),bg=function(b){function a(a,c){this._o=a;this._p=c;b.call(this)}n(a,b);a.prototype.next=function(a){this._p._open&&this._o.onNext(a)};a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._o.onCompleted()};return a}(B);r.skipUntilWithTime=function(b,a){J(a)||(a=W);return new cg(this,b,a)};r.takeUntilWithTime=function(b,a){J(a)||(a=W);var d=this;return new M(function(c){return new P(a.scheduleFuture(c,b,function(a,b){b.onCompleted()}),d.subscribe(c))},
d)};r.throttle=function(b,a){J(a)||(a=W);var d=+b||0;if(0>=d)throw new RangeError("windowDuration cannot be less or equal zero.");var c=this;return new M(function(b){var e=0;return c.subscribe(function(c){var f=a.now();if(0===e||f-e>=d)e=f,b.onNext(c)},function(a){b.onError(a)},function(){b.onCompleted()})},c)};var dg=function(b){function a(a,c){this._o=a;this._xform=c;b.call(this)}n(a,b);a.prototype.next=function(a){a=x(this._xform["@@transducer/step"]).call(this._xform,this._o,a);if(a===w)this._o.onError(a.e)};
a.prototype.error=function(a){this._o.onError(a)};a.prototype.completed=function(){this._xform["@@transducer/result"](this._o)};return a}(B);r.transduce=function(b){var a=this;return new M(function(d){var c=b(Wc(d));return a.subscribe(new dg(d,c))},a)};var fg=function(b){function a(a){this.source=a;b.call(this)}n(a,b);a.prototype.subscribeCore=function(a){var b=new F,d=new ea;a={hasCurrent:!1,isStopped:!1,o:a,g:d};d.add(b);b.setDisposable(this.source.subscribe(new eg(a)));return d};return a}(A),eg=
function(b){function a(a){this._s=a;b.call(this)}function d(a,d){this._s=a;this._i=d;b.call(this)}n(a,b);a.prototype.next=function(a){if(!this._s.hasCurrent){this._s.hasCurrent=!0;K(a)&&(a=L(a));var b=new F;this._s.g.add(b);b.setDisposable(a.subscribe(new d(this._s,b)))}};a.prototype.error=function(a){this._s.o.onError(a)};a.prototype.completed=function(){this._s.isStopped=!0;!this._s.hasCurrent&&1===this._s.g.length&&this._s.o.onCompleted()};n(d,b);d.prototype.next=function(a){this._s.o.onNext(a)};
d.prototype.error=function(a){this._s.o.onError(a)};d.prototype.completed=function(){this._s.g.remove(this._i);this._s.hasCurrent=!1;this._s.isStopped&&1===this._s.g.length&&this._s.o.onCompleted()};return a}(B);r.switchFirst=function(){return new fg(this)};r.flatMapFirst=r.selectManyFirst=function(b,a,d){return(new lb(this,b,a,d)).switchFirst()};z.Observable.prototype.flatMapWithMaxConcurrent=function(b,a,d,c){return(new lb(this,a,d,c)).merge(b)};var gg=z.VirtualTimeScheduler=function(b){function a(a,
d){this.clock=a;this.comparer=d;this.isEnabled=!1;this.queue=new bb(1024);b.call(this)}n(a,b);var d=a.prototype;d.now=function(){return this.toAbsoluteTime(this.clock)};d.schedule=function(a,b){return this.scheduleAbsolute(a,this.clock,b)};d.scheduleFuture=function(a,b,d){b=b instanceof Date?this.toRelativeTime(b-this.now()):this.toRelativeTime(b);return this.scheduleRelative(a,b,d)};d.add=Ma;d.toAbsoluteTime=Ma;d.toRelativeTime=Ma;d.schedulePeriodic=function(a,b,d){return(new cd(this,a,b,d)).start()};
d.scheduleRelative=function(a,b,d){b=this.add(this.clock,b);return this.scheduleAbsolute(a,b,d)};d.start=function(){if(!this.isEnabled){this.isEnabled=!0;do{var a=this.getNext();null!==a?(0<this.comparer(a.dueTime,this.clock)&&(this.clock=a.dueTime),a.invoke()):this.isEnabled=!1}while(this.isEnabled)}};d.stop=function(){this.isEnabled=!1};d.advanceTo=function(a){var b=this.comparer(this.clock,a);if(0<this.comparer(this.clock,a))throw new ra;if(0!==b&&!this.isEnabled){this.isEnabled=!0;do b=this.getNext(),
null!==b&&0>=this.comparer(b.dueTime,a)?(0<this.comparer(b.dueTime,this.clock)&&(this.clock=b.dueTime),b.invoke()):this.isEnabled=!1;while(this.isEnabled);this.clock=a}};d.advanceBy=function(a){a=this.add(this.clock,a);var b=this.comparer(this.clock,a);if(0<b)throw new ra;0!==b&&this.advanceTo(a)};d.sleep=function(a){a=this.add(this.clock,a);if(0<=this.comparer(this.clock,a))throw new ra;this.clock=a};d.getNext=function(){for(;0<this.queue.length;){var a=this.queue.peek();if(a.isCancelled())this.queue.dequeue();
else return a}return null};d.scheduleAbsolute=function(a,b,d){var c=this,e=new Sa(this,a,function(a,b){c.queue.remove(e);return d(a,b)},b,this.comparer);this.queue.enqueue(e);return e.disposable};return a}(sa);z.HistoricalScheduler=function(b){function a(a,d){b.call(this,null==a?0:a,d||jb)}n(a,b);var d=a.prototype;d.add=function(a,b){return a+b};d.toAbsoluteTime=function(a){return(new Date(a)).getTime()};d.toRelativeTime=function(a){return a};return a}(z.VirtualTimeScheduler);ac.prototype.equals=
function(b){return b===this?!0:null==b||"N"!==b.kind?!1:this.predicate(b.value)};bc.prototype.equals=function(b){return b===this?!0:null==b||"E"!==b.kind?!1:this.predicate(b.error)};var Gb=z.ReactiveTest={created:100,subscribed:200,disposed:1E3,onNext:function(b,a){return"function"===typeof a?new ya(b,new ac(a)):new ya(b,qa.createOnNext(a))},onError:function(b,a){return"function"===typeof a?new ya(b,new bc(a)):new ya(b,qa.createOnError(a))},onCompleted:function(b){return new ya(b,qa.createOnCompleted())},
subscribe:function(b,a){return new za(b,a)}},ya=z.Recorded=function(b,a,d){this.time=b;this.value=a;this.comparer=d||ib};ya.prototype.equals=function(b){return this.time===b.time&&this.comparer(this.value,b.value)};ya.prototype.toString=function(){return this.value.toString()+"@"+this.time};var za=z.Subscription=function(b,a){this.subscribe=b;this.unsubscribe=a||Number.MAX_VALUE};za.prototype.equals=function(b){return this.subscribe===b.subscribe&&this.unsubscribe===b.unsubscribe};za.prototype.toString=
function(){return"("+this.subscribe+", "+(this.unsubscribe===Number.MAX_VALUE?"Infinite":this.unsubscribe)+")"};(z.MockDisposable=function(b){this.scheduler=b;this.disposes=[];this.disposes.push(this.scheduler.clock)}).prototype.dispose=function(){this.disposes.push(this.scheduler.clock)};var hg=function(b){function a(a){b.call(this);this.scheduler=a;this.messages=[]}n(a,b);var d=a.prototype;d.onNext=function(a){this.messages.push(new ya(this.scheduler.clock,qa.createOnNext(a)))};d.onError=function(a){this.messages.push(new ya(this.scheduler.clock,
qa.createOnError(a)))};d.onCompleted=function(){this.messages.push(new ya(this.scheduler.clock,qa.createOnCompleted()))};return a}(ma);Ya.prototype.then=function(b,a){var d=this;this.subscriptions.push(new za(this.scheduler.clock));var c=this.subscriptions.length-1,f,g=z.Observer.create(function(a){(a=b(a))&&"function"===typeof a.then?f=a:(a=d.scheduler.clock,f=new Ya(d.scheduler,[z.ReactiveTest.onNext(a,k),z.ReactiveTest.onCompleted(a)]));a=d.observers.indexOf(g);d.observers.splice(a,1);d.subscriptions[c]=
new za(d.subscriptions[c].subscribe,d.scheduler.clock)},function(b){a(b);b=d.observers.indexOf(g);d.observers.splice(b,1);d.subscriptions[c]=new za(d.subscriptions[c].subscribe,d.scheduler.clock)});this.observers.push(g);return f||new Ya(this.scheduler,this.messages)};var ig=function(b){function a(a,c){b.call(this);var d,e=this;this.scheduler=a;this.messages=c;this.subscriptions=[];this.observers=[];for(var f=0,g=this.messages.length;f<g;f++)d=this.messages[f],c=d.value,function(b){a.scheduleAbsolute(null,
d.time,function(){for(var a=e.observers.slice(0),d=0,c=a.length;d<c;d++)b.accept(a[d]);return U})}(c)}n(a,b);a.prototype._subscribe=function(a){var b=this;this.observers.push(a);this.subscriptions.push(new za(this.scheduler.clock));var d=this.subscriptions.length-1;return Fa(function(){var c=b.observers.indexOf(a);b.observers.splice(c,1);b.subscriptions[d]=new za(b.subscriptions[d].subscribe,b.scheduler.clock)})};return a}(C),jg=function(b){function a(a,c){b.call(this);this.scheduler=a;this.messages=
c;this.subscriptions=[]}n(a,b);a.prototype._subscribe=function(a){var b,d,c=this;this.subscriptions.push(new za(this.scheduler.clock));for(var f=this.subscriptions.length-1,g=new ea,k=0,h=this.messages.length;k<h;k++)b=this.messages[k],d=b.value,function(d){g.add(c.scheduler.scheduleRelative(null,b.time,function(){d.accept(a);return U}))}(d);return Fa(function(){c.subscriptions[f]=new za(c.subscriptions[f].subscribe,c.scheduler.clock);g.dispose()})};return a}(C);z.TestScheduler=function(b){function a(a,
b){return a>b?1:a<b?-1:0}function d(){b.call(this,0,a)}n(d,b);d.prototype.scheduleAbsolute=function(a,d,c){d<=this.clock&&(d=this.clock+1);return b.prototype.scheduleAbsolute.call(this,a,d,c)};d.prototype.add=function(a,b){return a+b};d.prototype.toAbsoluteTime=function(a){return(new Date(a)).getTime()};d.prototype.toRelativeTime=function(a){return a};d.prototype.startScheduler=function(a,b){b||(b={});null==b.created&&(b.created=Gb.created);null==b.subscribed&&(b.subscribed=Gb.subscribed);null==b.disposed&&
(b.disposed=Gb.disposed);var d=this.createObserver(),c,e;this.scheduleAbsolute(null,b.created,function(){c=a();return U});this.scheduleAbsolute(null,b.subscribed,function(){e=c.subscribe(d);return U});this.scheduleAbsolute(null,b.disposed,function(){e.dispose();return U});this.start();return d};d.prototype.createHotObservable=function(){var a=arguments.length,b;if(Array.isArray(arguments[0]))b=arguments[0];else{b=Array(a);for(var d=0;d<a;d++)b[d]=arguments[d]}return new ig(this,b)};d.prototype.createColdObservable=
function(){var a=arguments.length,b;if(Array.isArray(arguments[0]))b=arguments[0];else{b=Array(a);for(var d=0;d<a;d++)b[d]=arguments[d]}return new jg(this,b)};d.prototype.createResolvedPromise=function(a,b){return new Ya(this,[z.ReactiveTest.onNext(a,b),z.ReactiveTest.onCompleted(a)])};d.prototype.createRejectedPromise=function(a,b){return new Ya(this,[z.ReactiveTest.onError(a,b)])};d.prototype.createObserver=function(){return new hg(this)};return d}(gg);var M=z.AnonymousObservable=function(b){function a(a){return a&&
H(a.dispose)?a:H(a)?Fa(a):U}function d(b,d){b=d[0];d=d[1];d=x(d.__subscribe).call(d,b);d!==w||b.fail(w.e)||g(w.e);b.setDisposable(a(d))}function c(a,d){this.source=d;this.__subscribe=a;b.call(this)}n(c,b);c.prototype._subscribe=function(a){a=new nc(a);var b=[a,this];ga.scheduleRequired()?ga.schedule(b,d):d(null,b);return a};return c}(C),nc=function(b){function a(a){b.call(this);this.observer=a;this.m=new F}n(a,b);var d=a.prototype;d.next=function(a){a=x(this.observer.onNext).call(this.observer,a);
a===w&&(this.dispose(),g(a.e))};d.error=function(a){a=x(this.observer.onError).call(this.observer,a);this.dispose();a===w&&g(a.e)};d.completed=function(){var a=x(this.observer.onCompleted).call(this.observer);this.dispose();a===w&&g(a.e)};d.setDisposable=function(a){this.m.setDisposable(a)};d.getDisposable=function(){return this.m.getDisposable()};d.dispose=function(){b.prototype.dispose.call(this);this.m.dispose()};return a}(B),kg=function(b){function a(a,c){this._m=a;this._u=c;b.call(this)}n(a,
b);a.prototype.subscribeCore=function(a){return new P(this._m.getDisposable(),this._u.subscribe(a))};return a}(A),qc=function(b){function a(a,c,f){b.call(this);this.key=a;this.underlyingObservable=f?new kg(f,c):c}n(a,b);a.prototype._subscribe=function(a){return this.underlyingObservable.subscribe(a)};return a}(C),fa=z.Subject=function(b){function a(){b.call(this);this.isStopped=this.isDisposed=!1;this.observers=[];this.hasError=!1}n(a,b);Na(a.prototype,ma.prototype,{_subscribe:function(a){ja(this);
if(!this.isStopped)return this.observers.push(a),new mb(this,a);if(this.hasError)return a.onError(this.error),U;a.onCompleted();return U},hasObservers:function(){return 0<this.observers.length},onCompleted:function(){ja(this);if(!this.isStopped){this.isStopped=!0;for(var a=0,b=m(this.observers),c=b.length;a<c;a++)b[a].onCompleted();this.observers.length=0}},onError:function(a){ja(this);if(!this.isStopped){this.isStopped=!0;this.error=a;this.hasError=!0;for(var b=0,d=m(this.observers),c=d.length;b<
c;b++)d[b].onError(a);this.observers.length=0}},onNext:function(a){ja(this);if(!this.isStopped)for(var b=0,d=m(this.observers),c=d.length;b<c;b++)d[b].onNext(a)},dispose:function(){this.isDisposed=!0;this.observers=null}});a.create=function(a,b){return new lg(a,b)};return a}(C),Ua=z.AsyncSubject=function(b){function a(){b.call(this);this.hasValue=this.isStopped=this.isDisposed=!1;this.observers=[];this.hasError=!1}n(a,b);Na(a.prototype,ma.prototype,{_subscribe:function(a){ja(this);if(!this.isStopped)return this.observers.push(a),
new mb(this,a);if(this.hasError)a.onError(this.error);else{if(this.hasValue)a.onNext(this.value);a.onCompleted()}return U},hasObservers:function(){ja(this);return 0<this.observers.length},onCompleted:function(){var a,b;ja(this);if(!this.isStopped){this.isStopped=!0;var c=m(this.observers);b=c.length;if(this.hasValue)for(a=0;a<b;a++){var f=c[a];f.onNext(this.value);f.onCompleted()}else for(a=0;a<b;a++)c[a].onCompleted();this.observers.length=0}},onError:function(a){ja(this);if(!this.isStopped){this.hasError=
this.isStopped=!0;this.error=a;for(var b=0,d=m(this.observers),c=d.length;b<c;b++)d[b].onError(a);this.observers.length=0}},onNext:function(a){ja(this);this.isStopped||(this.value=a,this.hasValue=!0)},dispose:function(){this.isDisposed=!0;this.value=this.error=this.observers=null}});return a}(C),vc=z.BehaviorSubject=function(b){function a(a){b.call(this);this.value=a;this.observers=[];this.hasError=this.isStopped=this.isDisposed=!1}n(a,b);Na(a.prototype,ma.prototype,{_subscribe:function(a){ja(this);
if(!this.isStopped)return this.observers.push(a),a.onNext(this.value),new mb(this,a);if(this.hasError)a.onError(this.error);else a.onCompleted();return U},getValue:function(){ja(this);this.hasError&&g(this.error);return this.value},hasObservers:function(){return 0<this.observers.length},onCompleted:function(){ja(this);if(!this.isStopped){this.isStopped=!0;for(var a=0,b=m(this.observers),c=b.length;a<c;a++)b[a].onCompleted();this.observers.length=0}},onError:function(a){ja(this);if(!this.isStopped){this.hasError=
this.isStopped=!0;this.error=a;for(var b=0,d=m(this.observers),c=d.length;b<c;b++)d[b].onError(a);this.observers.length=0}},onNext:function(a){ja(this);if(!this.isStopped){this.value=a;for(var b=0,d=m(this.observers),c=d.length;b<c;b++)d[b].onNext(a)}},dispose:function(){this.isDisposed=!0;this.error=this.value=this.observers=null}});return a}(C),wc=z.ReplaySubject=function(b){function a(a,b){return Fa(function(){b.dispose();!a.isDisposed&&a.observers.splice(a.observers.indexOf(b),1)})}function d(a,
d,e){this.bufferSize=null==a?c:a;this.windowSize=null==d?c:d;this.scheduler=e||ga;this.q=[];this.observers=[];this.hasError=this.isDisposed=this.isStopped=!1;this.error=null;b.call(this)}var c=Math.pow(2,53)-1;n(d,b);Na(d.prototype,ma.prototype,{_subscribe:function(b){ja(this);b=new mc(this.scheduler,b);var d=a(this,b);this._trim(this.scheduler.now());this.observers.push(b);for(var c=0,e=this.q.length;c<e;c++)b.onNext(this.q[c].value);if(this.hasError)b.onError(this.error);else if(this.isStopped)b.onCompleted();
b.ensureActive();return d},hasObservers:function(){return 0<this.observers.length},_trim:function(a){for(;this.q.length>this.bufferSize;)this.q.shift();for(;0<this.q.length&&a-this.q[0].interval>this.windowSize;)this.q.shift()},onNext:function(a){ja(this);if(!this.isStopped){var b=this.scheduler.now();this.q.push({interval:b,value:a});this._trim(b);for(var b=0,d=m(this.observers),c=d.length;b<c;b++){var e=d[b];e.onNext(a);e.ensureActive()}}},onError:function(a){ja(this);if(!this.isStopped){this.isStopped=
!0;this.error=a;this.hasError=!0;var b=this.scheduler.now();this._trim(b);for(var b=0,d=m(this.observers),c=d.length;b<c;b++){var e=d[b];e.onError(a);e.ensureActive()}this.observers.length=0}},onCompleted:function(){ja(this);if(!this.isStopped){this.isStopped=!0;var a=this.scheduler.now();this._trim(a);for(var a=0,b=m(this.observers),d=b.length;a<d;a++){var c=b[a];c.onCompleted();c.ensureActive()}this.observers.length=0}},dispose:function(){this.isDisposed=!0;this.observers=null}});return d}(C),lg=
z.AnonymousSubject=function(b){function a(a,c){this.observer=a;this.observable=c;b.call(this)}n(a,b);Na(a.prototype,ma.prototype,{_subscribe:function(a){return this.observable.subscribe(a)},onCompleted:function(){this.observer.onCompleted()},onError:function(a){this.observer.onError(a)},onNext:function(a){this.observer.onNext(a)}});return a}(C);z.Pauser=function(b){function a(){b.call(this)}n(a,b);a.prototype.pause=function(){this.onNext(!1)};a.prototype.resume=function(){this.onNext(!0)};return a}(fa);
"function"==typeof define&&"object"==typeof define.amd&&define.amd?(N.Rx=z,define(function(){return z})):$a&&ab?dc?(ab.exports=z).Rx=z:$a.Rx=z:N.Rx=z;var ld=f()}).call(this)}).call(this,c("_process"),"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{_process:12}],24:[function(c,h,p){var k=c("lower-case"),u=c("./vendor/non-word-regexp"),q=c("./vendor/camel-case-regexp"),D=c("./vendor/trailing-digit-regexp");h.exports=function(c,h,g){if(null==
c)return"";g=g||" ";c=String(c).replace(q,"$1 $2").replace(D,"$1 $2").replace(u,function(c,k,h){return 0===k||k===h.length-c.length?"":g});return k(c,h)}},{"./vendor/camel-case-regexp":25,"./vendor/non-word-regexp":26,"./vendor/trailing-digit-regexp":27,"lower-case":20}],25:[function(c,h,p){h.exports=/([\u0061-\u007A\u00B5\u00DF-\u00F6\u00F8-\u00FF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0561-\u0587\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7FA\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A])([\u0041-\u005A\u00C0-\u00D6\u00D8-\u00DE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA\uFF21-\uFF3A\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g},
{}],26:[function(c,h,p){h.exports=/[^\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]+/g},
{}],27:[function(c,h,p){h.exports=/([\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])([^\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g},
{}],28:[function(c,h,p){function k(c,h){if(3===c.nodeType)return new D(c.nodeValue);if(1===c.nodeType||9===c.nodeType){var f="http://www.w3.org/1999/xhtml"!==c.namespaceURI?c.namespaceURI:null,m=h&&c.getAttribute(h)?c.getAttribute(h):null,y=c.tagName;var G={};if(c.hasAttributes()){var p;c.namespaceURI&&"http://www.w3.org/1999/xhtml"!==c.namespaceURI&&(p=c.namespaceURI);for(var Q,I=0;I<c.attributes.length;I++)p?(Q=c.attributes[I],Q={name:Q.name,value:Q.value,ns:g[Q.name]||""}):Q=u(c.attributes[I]),
Q.ns?G[Q.name]={namespace:Q.ns,value:Q.value}:Q.isAttr?(G.attributes||(G.attributes={}),G.attributes[Q.name]=Q.value):G[Q.name]=Q.value}p=[];for(I=0;I<c.childNodes.length;I++)p.push(k(c.childNodes[I],h));return new q(y,G,p,m,f)}return new D("")}function u(c){var f,g;f=y[c.name]?y[c.name]:c.name;if("style"===f){var k={};c.value.split(";").forEach(function(c){var f=c.indexOf(":");0>f||(k[c.substr(0,f).trim()]=c.substr(f+1).trim())});c=k}else 0===f.indexOf("data-")?(c=c.value,g=!0):c=c.value;return{name:f,
value:c,isAttr:g||!1}}var q=c("virtual-dom/vnode/vnode"),D=c("virtual-dom/vnode/vtext"),m=new DOMParser,y=c("./property-map"),g=c("./namespace-map");h.exports=function(c,g){if(!c)return k(document.createTextNode(""));"string"===typeof c&&(c=m.parseFromString(c,"text/html"),c=c.body.firstChild?c.body.firstChild:c.head.firstChild&&("TITLE"!==c.head.firstChild.tagName||c.title)?c.head.firstChild:c.firstChild&&"HTML"!==c.firstChild.tagName?c.firstChild:document.createTextNode(""));if("object"!==typeof c||
!c||!c.nodeType)throw Error("invalid dom node",c);return k(c,g)}},{"./namespace-map":29,"./property-map":30,"virtual-dom/vnode/vnode":55,"virtual-dom/vnode/vtext":57}],29:[function(c,h,p){h.exports={about:null,"accent-height":null,accumulate:null,additive:null,"alignment-baseline":null,alphabetic:null,amplitude:null,"arabic-form":null,ascent:null,attributeName:null,attributeType:null,azimuth:null,bandwidth:null,baseFrequency:null,baseProfile:null,"baseline-shift":null,bbox:null,begin:null,bias:null,
by:null,calcMode:null,"cap-height":null,"class":null,clip:null,"clip-path":null,"clip-rule":null,clipPathUnits:null,color:null,"color-interpolation":null,"color-interpolation-filters":null,"color-profile":null,"color-rendering":null,content:null,contentScriptType:null,contentStyleType:null,cursor:null,cx:null,cy:null,d:null,datatype:null,defaultAction:null,descent:null,diffuseConstant:null,direction:null,display:null,divisor:null,"dominant-baseline":null,dur:null,dx:null,dy:null,edgeMode:null,editable:null,
elevation:null,"enable-background":null,end:null,"ev:event":"http://www.w3.org/2001/xml-events",event:null,exponent:null,externalResourcesRequired:null,fill:null,"fill-opacity":null,"fill-rule":null,filter:null,filterRes:null,filterUnits:null,"flood-color":null,"flood-opacity":null,focusHighlight:null,focusable:null,"font-family":null,"font-size":null,"font-size-adjust":null,"font-stretch":null,"font-style":null,"font-variant":null,"font-weight":null,format:null,from:null,fx:null,fy:null,g1:null,
g2:null,"glyph-name":null,"glyph-orientation-horizontal":null,"glyph-orientation-vertical":null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:null,height:null,"horiz-adv-x":null,"horiz-origin-x":null,"horiz-origin-y":null,id:null,ideographic:null,"image-rendering":null,"in":null,in2:null,initialVisibility:null,intercept:null,k:null,k1:null,k2:null,k3:null,k4:null,kernelMatrix:null,kernelUnitLength:null,kerning:null,keyPoints:null,keySplines:null,keyTimes:null,lang:null,
lengthAdjust:null,"letter-spacing":null,"lighting-color":null,limitingConeAngle:null,local:null,"marker-end":null,"marker-mid":null,"marker-start":null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:null,mediaTime:null,method:null,min:null,mode:null,name:null,"nav-down":null,"nav-down-left":null,"nav-down-right":null,"nav-left":null,"nav-next":null,
"nav-prev":null,"nav-right":null,"nav-up":null,"nav-up-left":null,"nav-up-right":null,numOctaves:null,observer:null,offset:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,"overline-position":null,"overline-thickness":null,"panose-1":null,path:null,pathLength:null,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,playbackOrder:null,"pointer-events":null,points:null,pointsAtX:null,pointsAtY:null,pointsAtZ:null,
preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:null,r:null,radius:null,refX:null,refY:null,rel:null,"rendering-intent":null,repeatCount:null,repeatDur:null,requiredExtensions:null,requiredFeatures:null,requiredFonts:null,requiredFormats:null,resource:null,restart:null,result:null,rev:null,role:null,rotate:null,rx:null,ry:null,scale:null,seed:null,"shape-rendering":null,slope:null,snapshotTime:null,spacing:null,specularConstant:null,specularExponent:null,spreadMethod:null,
startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,"stop-color":null,"stop-opacity":null,"strikethrough-position":null,"strikethrough-thickness":null,string:null,stroke:null,"stroke-dasharray":null,"stroke-dashoffset":null,"stroke-linecap":null,"stroke-linejoin":null,"stroke-miterlimit":null,"stroke-opacity":null,"stroke-width":null,surfaceScale:null,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:null,tableValues:null,
target:null,targetX:null,targetY:null,"text-anchor":null,"text-decoration":null,"text-rendering":null,textLength:null,timelineBegin:null,title:null,to:null,transform:null,transformBehavior:null,type:null,"typeof":null,u1:null,u2:null,"underline-position":null,"underline-thickness":null,unicode:null,"unicode-bidi":null,"unicode-range":null,"units-per-em":null,"v-alphabetic":null,"v-hanging":null,"v-ideographic":null,"v-mathematical":null,values:null,version:null,"vert-adv-y":null,"vert-origin-x":null,
"vert-origin-y":null,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,"word-spacing":null,"writing-mode":null,x:null,"x-height":null,x1:null,x2:null,xChannelSelector:null,"xlink:actuate":"http://www.w3.org/1999/xlink","xlink:arcrole":"http://www.w3.org/1999/xlink","xlink:href":"http://www.w3.org/1999/xlink","xlink:role":"http://www.w3.org/1999/xlink","xlink:show":"http://www.w3.org/1999/xlink","xlink:title":"http://www.w3.org/1999/xlink","xlink:type":"http://www.w3.org/1999/xlink",
"xml:base":"http://www.w3.org/XML/1998/namespace","xml:id":"http://www.w3.org/XML/1998/namespace","xml:lang":"http://www.w3.org/XML/1998/namespace","xml:space":"http://www.w3.org/XML/1998/namespace",y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}},{}],30:[function(c,h,p){h.exports={abbr:"abbr",accept:"accept","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",alt:"alt",async:"async",autocomplete:"autoComplete",
autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charset",checked:"checked",cite:"cite","class":"className",cols:"cols",colspan:"colSpan",command:"command",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",coords:"coords",crossorigin:"crossOrigin",data:"data",datetime:"dateTime","default":"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",
dropzone:"dropzone",enctype:"encType","for":"htmlFor",form:"form",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameBorder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang","http-equiv":"httpEquiv",icon:"icon",id:"id",inputmode:"inputMode",ismap:"isMap",itemid:"itemId",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",kind:"kind",
label:"label",lang:"lang",list:"list",loop:"loop",manifest:"manifest",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",ping:"ping",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radioGroup",readonly:"readOnly",rel:"rel",required:"required",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",
scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",sortable:"sortable",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srcset:"srcSet",start:"start",step:"step",style:"style",tabindex:"tabIndex",target:"target",title:"title",translate:"translate",type:"type",typemustmatch:"typeMustMatch",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"}},{}],31:[function(c,h,p){var k=c("escape-html");
c=c("./property-config");var u=c.attributeTypes,q=c.properties,D=c.attributeNames,m=function(c){var g={};return function(f){return g.hasOwnProperty(f)?g[f]:g[f]=c.call(this,f)}}(function(c){return k(c)+'\x3d"'});h.exports=function(c,g,f){if(q.hasOwnProperty(c)){f=q[c];if(null==g||f===u.BOOLEAN&&!g||f===u.OVERLOADED_BOOLEAN&&!1===g)return"";c=(D[c]||c).toLowerCase();f=q[c];return f===u.BOOLEAN||f===u.OVERLOADED_BOOLEAN&&!0===g?k(c):m(c)+k(g)+'"'}return f?null==g?"":m(c)+k(g)+'"':null}},{"./property-config":33,
"escape-html":13}],32:[function(c,h,p){function k(c,h){if(!c)return"";y(c)&&(c=c.render());g(c)&&c.render&&(c=c.render());if(D(c)){h=c.properties;var p="\x3c"+c.tagName.toLowerCase(),I;for(I in h){var E=h[I];if(null!=E)if("attributes"==I){var E=q({},E),R;for(R in E)p+=" "+ha(R,E[R],!0)}else{if("style"==I){var la="",E=q({},E),O;for(O in E)la+=v(O)+": "+E[O]+"; ";E=la.trim()}E instanceof f||E instanceof G?p+=" "+ha(I,E.value,!0):(E=ha(I,E))&&(p+=" "+E)}}I=p+"\x3e";R=c;O=R.properties.innerHTML;if(null==
O&&(O="",R.children&&R.children.length))for(h=0,p=R.children.length;h<p;h++)O+=k(R.children[h],R);R=O;I+=R;c=c.tagName.toLowerCase();return I+(da[c]?"":"\x3c/"+c+"\x3e")}return m(c)?h&&"script"===h.tagName.toLowerCase()?String(c.text):u(String(c.text)):""}var u=c("escape-html"),q=c("xtend"),D=c("virtual-dom/vnode/is-vnode"),m=c("virtual-dom/vnode/is-vtext"),y=c("virtual-dom/vnode/is-thunk"),g=c("virtual-dom/vnode/is-widget"),f=c("virtual-dom/virtual-hyperscript/hooks/soft-set-hook"),G=c("virtual-dom/virtual-hyperscript/hooks/attribute-hook"),
v=c("param-case"),ha=c("./create-attribute"),da=c("./void-elements");h.exports=k},{"./create-attribute":31,"./void-elements":34,"escape-html":13,"param-case":22,"virtual-dom/virtual-hyperscript/hooks/attribute-hook":43,"virtual-dom/virtual-hyperscript/hooks/soft-set-hook":45,"virtual-dom/vnode/is-thunk":49,"virtual-dom/vnode/is-vnode":51,"virtual-dom/vnode/is-vtext":52,"virtual-dom/vnode/is-widget":53,xtend:61}],33:[function(c,h,p){c={BOOLEAN:1,OVERLOADED_BOOLEAN:2};h.exports={attributeTypes:c,properties:{accept:!0,
acceptCharset:!0,accessKey:!0,action:!0,allowFullScreen:c.BOOLEAN,allowTransparency:!0,alt:!0,async:c.BOOLEAN,autocomplete:!0,autofocus:c.BOOLEAN,autoplay:c.BOOLEAN,cellPadding:!0,cellSpacing:!0,charset:!0,checked:c.BOOLEAN,classID:!0,className:!0,cols:!0,colSpan:!0,content:!0,contentEditable:!0,contextMenu:!0,controls:c.BOOLEAN,coords:!0,crossOrigin:!0,data:!0,dateTime:!0,defer:c.BOOLEAN,dir:!0,disabled:c.BOOLEAN,download:c.OVERLOADED_BOOLEAN,draggable:!0,enctype:!0,form:!0,formAction:!0,formEncType:!0,
formMethod:!0,formNoValidate:c.BOOLEAN,formTarget:!0,frameBorder:!0,headers:!0,height:!0,hidden:c.BOOLEAN,href:!0,hreflang:!0,htmlFor:!0,httpEquiv:!0,icon:!0,id:!0,label:!0,lang:!0,list:!0,loop:c.BOOLEAN,manifest:!0,marginHeight:!0,marginWidth:!0,max:!0,maxLength:!0,media:!0,mediaGroup:!0,method:!0,min:!0,multiple:c.BOOLEAN,muted:c.BOOLEAN,name:!0,noValidate:c.BOOLEAN,open:!0,pattern:!0,placeholder:!0,poster:!0,preload:!0,radiogroup:!0,readOnly:c.BOOLEAN,rel:!0,required:c.BOOLEAN,role:!0,rows:!0,
rowSpan:!0,sandbox:!0,scope:!0,scrolling:!0,seamless:c.BOOLEAN,selected:c.BOOLEAN,shape:!0,size:!0,sizes:!0,span:!0,spellcheck:!0,src:!0,srcdoc:!0,srcset:!0,start:!0,step:!0,style:!0,tabIndex:!0,target:!0,title:!0,type:!0,useMap:!0,value:!0,width:!0,wmode:!0,autocapitalize:!0,autocorrect:!0,itemProp:!0,itemScope:c.BOOLEAN,itemType:!0,property:!0},attributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"}}},{}],34:[function(c,h,p){h.exports={area:!0,base:!0,
br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},{}],35:[function(c,h,p){c=c("./vtree/diff.js");h.exports=c},{"./vtree/diff.js":59}],36:[function(c,h,p){c=c("./vdom/patch.js");h.exports=c},{"./vdom/patch.js":41}],37:[function(c,h,p){function k(c,k,g,f){if(f)if(f=f[k],D(f))f.unhook&&f.unhook(c,k,g);else if("attributes"===k)for(var h in f)c.removeAttribute(h);else if("style"===k)for(var m in f)c.style[m]="";else c[k]="string"===typeof f?"":null}
function u(c){if(Object.getPrototypeOf)return Object.getPrototypeOf(c);if(c.__proto__)return c.__proto__;if(c.constructor)return c.constructor.prototype}var q=c("is-object"),D=c("../vnode/is-vhook.js");h.exports=function(c,h,g){for(var f in h){var m=h[f];if(void 0===m)k(c,f,m,g);else if(D(m))k(c,f,m,g),m.hook&&m.hook(c,f,g?g[f]:void 0);else if(q(m)){var v=void 0,p=void 0,y=c,O=f,ka=g?g[O]:void 0;if("attributes"===O)for(p in m)v=m[p],void 0===v?y.removeAttribute(p):y.setAttribute(p,v);else if(ka&&
q(ka)&&u(ka)!==u(m))y[O]=m;else for(v in q(y[O])||(y[O]={}),p="style"===O?"":void 0,m)ka=m[v],y[O][v]=void 0===ka?p:ka}else c[f]=m}}},{"../vnode/is-vhook.js":50,"is-object":19}],38:[function(c,h,p){function k(c,h){var f=h?h.document||u:u,p=h?h.warn:null;c=g(c).a;if(y(c))return c.init();if(m(c))return f.createTextNode(c.text);if(!D(c))return p&&p("Item is not a valid virtual dom node",c),null;f=null===c.namespace?f.createElement(c.tagName):f.createElementNS(c.namespace,c.tagName);q(f,c.properties);
c=c.children;for(p=0;p<c.length;p++){var G=k(c[p],h);G&&f.appendChild(G)}return f}var u=c("global/document"),q=c("./apply-properties"),D=c("../vnode/is-vnode.js"),m=c("../vnode/is-vtext.js"),y=c("../vnode/is-widget.js"),g=c("../vnode/handle-thunk.js");h.exports=k},{"../vnode/handle-thunk.js":48,"../vnode/is-vnode.js":51,"../vnode/is-vtext.js":52,"../vnode/is-widget.js":53,"./apply-properties":37,"global/document":15}],39:[function(c,h,p){function k(c,h,g,f,q){f=f||{};if(c){u(g,q,q)&&(f[q]=c);var m=
h.children;if(m){c=c.childNodes;for(var p=0;p<h.children.length;p++){q+=1;var y=m[p]||D,G=q+(y.count||0);u(g,q,G)&&k(c[p],y,g,f,q);q=G}}}return f}function u(c,k,g){if(0===c.length)return!1;for(var f=0,h=c.length-1,m,q;f<=h;){m=(h+f)/2>>0;q=c[m];if(f===h)return q>=k&&q<=g;if(q<k)f=m+1;else if(q>g)h=m-1;else return!0}return!1}function q(c,k){return c>k?1:-1}var D={};h.exports=function(c,h,g,f){return g&&0!==g.length?(g.sort(q),k(c,h,g,f,0)):{}}},{}],40:[function(c,h,p){function k(c,g){"function"===
typeof g.destroy&&q(g)&&g.destroy(c)}var u=c("./apply-properties"),q=c("../vnode/is-widget.js"),D=c("../vnode/vpatch.js"),m=c("./update-widget");h.exports=function(c,g,f){var h=c.vNode,q=c.patch;switch(c.type){case D.REMOVE:return(q=g.parentNode)&&q.removeChild(g),k(g,h),null;case D.INSERT:return q=f.render(q,f),g&&g.appendChild(q),g;case D.VTEXT:return 3===g.nodeType?(g.replaceData(0,g.length,q.text),q=g):(h=g.parentNode,q=f.render(q,f),h&&q!==g&&h.replaceChild(q,g)),q;case D.WIDGET:return q=(c=
m(h,q))?q.update(h,g)||g:f.render(q,f),(f=g.parentNode)&&q!==g&&f.replaceChild(q,g),c||k(g,h),q;case D.VNODE:return h=g.parentNode,q=f.render(q,f),h&&q!==g&&h.replaceChild(q,g),q;case D.ORDER:h=g.childNodes;f={};for(var p,y=0;y<q.removes.length;y++)p=q.removes[y],c=h[p.from],p.key&&(f[p.key]=c),g.removeChild(c);for(var y=h.length,O=0;O<q.inserts.length;O++)p=q.inserts[O],c=f[p.key],g.insertBefore(c,p.to>=y++?null:h[p.to]);return g;case D.PROPS:return u(g,q,h.properties),g;case D.THUNK:return q=f.patch(g,
q,f),g&&q&&g!==q&&g.parentNode&&g.parentNode.replaceChild(q,g),q;default:return g}}},{"../vnode/is-widget.js":53,"../vnode/vpatch.js":56,"./apply-properties":37,"./update-widget":42}],41:[function(c,h,p){function k(c,g,h){h=h||{};h.patch=h.patch&&h.patch!==k?h.patch:u;h.render=h.render||m;return h.patch(c,g,h)}function u(c,k,h){var f=[],m;for(m in k)"a"!==m&&f.push(Number(m));if(0===f.length)return c;m=y(c,k.a,f);var u=c.ownerDocument;h.document||u===q||(h.document=u);for(u=0;u<f.length;u++){var p=
f[u];var v=m[p],G=k[p],E=h;if(v)if(D(G))for(var R=0;R<G.length;R++)p=g(G[R],v,E),v===c&&(c=p);else p=g(G,v,E),v===c&&(c=p)}return c}var q=c("global/document"),D=c("x-is-array"),m=c("./create-element"),y=c("./dom-index"),g=c("./patch-op");h.exports=k},{"./create-element":38,"./dom-index":39,"./patch-op":40,"global/document":15,"x-is-array":60}],42:[function(c,h,p){var k=c("../vnode/is-widget.js");h.exports=function(c,h){return k(c)&&k(h)?"name"in c&&"name"in h?c.id===h.id:c.init===h.init:!1}},{"../vnode/is-widget.js":53}],
43:[function(c,h,p){function k(c,h){if(!(this instanceof k))return new k(c,h);this.namespace=c;this.value=h}h.exports=k;k.prototype.hook=function(c,k,h){h&&"AttributeHook"===h.type&&h.value===this.value&&h.namespace===this.namespace||c.setAttributeNS(this.namespace,k,this.value)};k.prototype.unhook=function(c,k,h){h&&"AttributeHook"===h.type&&h.namespace===this.namespace||(h=k.indexOf(":"),k=-1<h?k.substr(h+1):k,c.removeAttributeNS(this.namespace,k))};k.prototype.type="AttributeHook"},{}],44:[function(c,
h,p){function k(c){if(!(this instanceof k))return new k(c);this.value=c}var u=c("ev-store");h.exports=k;k.prototype.hook=function(c,k){c=u(c);k=k.substr(3);c[k]=this.value};k.prototype.unhook=function(c,k){c=u(c);k=k.substr(3);c[k]=void 0}},{"ev-store":14}],45:[function(c,h,p){function k(c){if(!(this instanceof k))return new k(c);this.value=c}h.exports=k;k.prototype.hook=function(c,k){c[k]!==this.value&&(c[k]=this.value)}},{}],46:[function(c,h,p){var k=c("browser-split"),u=/([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/,
q=/^\.|#/;h.exports=function(c,h){if(!c)return"DIV";var m=!h.hasOwnProperty("id");c=k(c,u);var g=null;q.test(c[1])&&(g="DIV");var f,p,v,D;for(D=0;D<c.length;D++)if(p=c[D])(v=p.charAt(0),g)?"."===v?(f=f||[],f.push(p.substring(1,p.length))):"#"===v&&m&&(h.id=p.substring(1,p.length)):g=p;f&&(h.className&&f.push(h.className),h.className=f.join(" "));return h.namespace?g:g.toUpperCase()}},{"browser-split":11}],47:[function(c,h,p){var k={about:null,"accent-height":null,accumulate:null,additive:null,"alignment-baseline":null,
alphabetic:null,amplitude:null,"arabic-form":null,ascent:null,attributeName:null,attributeType:null,azimuth:null,bandwidth:null,baseFrequency:null,baseProfile:null,"baseline-shift":null,bbox:null,begin:null,bias:null,by:null,calcMode:null,"cap-height":null,"class":null,clip:null,"clip-path":null,"clip-rule":null,clipPathUnits:null,color:null,"color-interpolation":null,"color-interpolation-filters":null,"color-profile":null,"color-rendering":null,content:null,contentScriptType:null,contentStyleType:null,
cursor:null,cx:null,cy:null,d:null,datatype:null,defaultAction:null,descent:null,diffuseConstant:null,direction:null,display:null,divisor:null,"dominant-baseline":null,dur:null,dx:null,dy:null,edgeMode:null,editable:null,elevation:null,"enable-background":null,end:null,"ev:event":"http://www.w3.org/2001/xml-events",event:null,exponent:null,externalResourcesRequired:null,fill:null,"fill-opacity":null,"fill-rule":null,filter:null,filterRes:null,filterUnits:null,"flood-color":null,"flood-opacity":null,
focusHighlight:null,focusable:null,"font-family":null,"font-size":null,"font-size-adjust":null,"font-stretch":null,"font-style":null,"font-variant":null,"font-weight":null,format:null,from:null,fx:null,fy:null,g1:null,g2:null,"glyph-name":null,"glyph-orientation-horizontal":null,"glyph-orientation-vertical":null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:null,height:null,"horiz-adv-x":null,"horiz-origin-x":null,"horiz-origin-y":null,id:null,ideographic:null,"image-rendering":null,
"in":null,in2:null,initialVisibility:null,intercept:null,k:null,k1:null,k2:null,k3:null,k4:null,kernelMatrix:null,kernelUnitLength:null,kerning:null,keyPoints:null,keySplines:null,keyTimes:null,lang:null,lengthAdjust:null,"letter-spacing":null,"lighting-color":null,limitingConeAngle:null,local:null,"marker-end":null,"marker-mid":null,"marker-start":null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,
mediaContentEncodings:null,mediaSize:null,mediaTime:null,method:null,min:null,mode:null,name:null,"nav-down":null,"nav-down-left":null,"nav-down-right":null,"nav-left":null,"nav-next":null,"nav-prev":null,"nav-right":null,"nav-up":null,"nav-up-left":null,"nav-up-right":null,numOctaves:null,observer:null,offset:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,"overline-position":null,"overline-thickness":null,"panose-1":null,path:null,pathLength:null,
patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,playbackOrder:null,"pointer-events":null,points:null,pointsAtX:null,pointsAtY:null,pointsAtZ:null,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:null,r:null,radius:null,refX:null,refY:null,rel:null,"rendering-intent":null,repeatCount:null,repeatDur:null,requiredExtensions:null,requiredFeatures:null,requiredFonts:null,requiredFormats:null,resource:null,restart:null,result:null,rev:null,
role:null,rotate:null,rx:null,ry:null,scale:null,seed:null,"shape-rendering":null,slope:null,snapshotTime:null,spacing:null,specularConstant:null,specularExponent:null,spreadMethod:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,"stop-color":null,"stop-opacity":null,"strikethrough-position":null,"strikethrough-thickness":null,string:null,stroke:null,"stroke-dasharray":null,"stroke-dashoffset":null,"stroke-linecap":null,"stroke-linejoin":null,"stroke-miterlimit":null,
"stroke-opacity":null,"stroke-width":null,surfaceScale:null,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:null,tableValues:null,target:null,targetX:null,targetY:null,"text-anchor":null,"text-decoration":null,"text-rendering":null,textLength:null,timelineBegin:null,title:null,to:null,transform:null,transformBehavior:null,type:null,"typeof":null,u1:null,u2:null,"underline-position":null,"underline-thickness":null,unicode:null,
"unicode-bidi":null,"unicode-range":null,"units-per-em":null,"v-alphabetic":null,"v-hanging":null,"v-ideographic":null,"v-mathematical":null,values:null,version:null,"vert-adv-y":null,"vert-origin-x":null,"vert-origin-y":null,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,"word-spacing":null,"writing-mode":null,x:null,"x-height":null,x1:null,x2:null,xChannelSelector:null,"xlink:actuate":"http://www.w3.org/1999/xlink","xlink:arcrole":"http://www.w3.org/1999/xlink","xlink:href":"http://www.w3.org/1999/xlink",
"xlink:role":"http://www.w3.org/1999/xlink","xlink:show":"http://www.w3.org/1999/xlink","xlink:title":"http://www.w3.org/1999/xlink","xlink:type":"http://www.w3.org/1999/xlink","xml:base":"http://www.w3.org/XML/1998/namespace","xml:id":"http://www.w3.org/XML/1998/namespace","xml:lang":"http://www.w3.org/XML/1998/namespace","xml:space":"http://www.w3.org/XML/1998/namespace",y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null};h.exports=function(c){if(k.hasOwnProperty(c))return k[c]}},
{}],48:[function(c,h,p){function k(c,g){var f=c.vnode;f||(f=c.vnode=c.render(g));if(!(u(f)||q(f)||D(f)))throw Error("thunk did not return a valid node");return f}var u=c("./is-vnode"),q=c("./is-vtext"),D=c("./is-widget"),m=c("./is-thunk");h.exports=function(c,g){var f=c,h=g;m(g)&&(h=k(g,c));m(c)&&(f=k(c,null));return{a:f,b:h}}},{"./is-thunk":49,"./is-vnode":51,"./is-vtext":52,"./is-widget":53}],49:[function(c,h,p){h.exports=function(c){return c&&"Thunk"===c.type}},{}],50:[function(c,h,p){h.exports=
function(c){return c&&("function"===typeof c.hook&&!c.hasOwnProperty("hook")||"function"===typeof c.unhook&&!c.hasOwnProperty("unhook"))}},{}],51:[function(c,h,p){var k=c("./version");h.exports=function(c){return c&&"VirtualNode"===c.type&&c.version===k}},{"./version":54}],52:[function(c,h,p){var k=c("./version");h.exports=function(c){return c&&"VirtualText"===c.type&&c.version===k}},{"./version":54}],53:[function(c,h,p){h.exports=function(c){return c&&"Widget"===c.type}},{}],54:[function(c,h,p){h.exports=
"2"},{}],55:[function(c,h,p){function k(c,h,k,p,da){this.tagName=c;this.properties=h||y;this.children=k||g;this.key=null!=p?String(p):void 0;this.namespace="string"===typeof da?da:null;c=k&&k.length||0;p=0;var f=da=!1,v=!1,G,I;for(I in h)if(h.hasOwnProperty(I)){var E=h[I];m(E)&&E.unhook&&(G||(G={}),G[I]=E)}for(h=0;h<c;h++)I=k[h],u(I)?(p+=I.count||0,!da&&I.hasWidgets&&(da=!0),!f&&I.hasThunks&&(f=!0),v||!I.hooks&&!I.descendantHooks||(v=!0)):!da&&q(I)?"function"===typeof I.destroy&&(da=!0):!f&&D(I)&&
(f=!0);this.count=c+p;this.hasWidgets=da;this.hasThunks=f;this.hooks=G;this.descendantHooks=v}p=c("./version");var u=c("./is-vnode"),q=c("./is-widget"),D=c("./is-thunk"),m=c("./is-vhook");h.exports=k;var y={},g=[];k.prototype.version=p;k.prototype.type="VirtualNode"},{"./is-thunk":49,"./is-vhook":50,"./is-vnode":51,"./is-widget":53,"./version":54}],56:[function(c,h,p){function k(c,h,k){this.type=Number(c);this.vNode=h;this.patch=k}c=c("./version");k.NONE=0;k.VTEXT=1;k.VNODE=2;k.WIDGET=3;k.PROPS=4;
k.ORDER=5;k.INSERT=6;k.REMOVE=7;k.THUNK=8;h.exports=k;k.prototype.version=c;k.prototype.type="VirtualPatch"},{"./version":54}],57:[function(c,h,p){function k(c){this.text=String(c)}c=c("./version");h.exports=k;k.prototype.version=c;k.prototype.type="VirtualText"},{"./version":54}],58:[function(c,h,p){function k(c,h){var g,f;for(f in c){f in h||(g=g||{},g[f]=void 0);var m=c[f],p=h[f];if(m!==p)if(q(m)&&q(p))if(u(p)!==u(m))g=g||{},g[f]=p;else if(D(p))g=g||{},g[f]=p;else{if(m=k(m,p))g=g||{},g[f]=m}else g=
g||{},g[f]=p}for(var y in h)y in c||(g=g||{},g[y]=h[y]);return g}function u(c){if(Object.getPrototypeOf)return Object.getPrototypeOf(c);if(c.__proto__)return c.__proto__;if(c.constructor)return c.constructor.prototype}var q=c("is-object"),D=c("../vnode/is-vhook");h.exports=k},{"../vnode/is-vhook":50,"is-object":19}],59:[function(c,h,p){function k(c,f){var g={a:c};u(c,f,g,0);return g}function u(c,h,k,p){if(c!==h){var E=k[p],G=!1;if(ka(c)||ka(h))D(c,h,k,p);else if(null==h)O(c)||(m(c,k,p),q(c,k,p),E=
k[p]),E=f(E,new v(v.REMOVE,c,h));else if(ha(h))if(ha(c))if(c.tagName===h.tagName&&c.namespace===h.namespace&&c.key===h.key){var R=I(c.properties,h.properties);R&&(E=f(E,new v(v.PROPS,c,R)));var R=p,la=c.children;h=h.children;var Z=g(h),Q=Z.keys,X=Z.free;if(X.length===h.length)h={children:h,moves:null};else{var Z=g(la),V=Z.keys;if(Z.free.length===la.length)h={children:h,moves:null};else{for(var Z=[],S=0,na=X.length,oa=0,T=0;T<la.length;T++){var ia=la[T];ia.key?Q.hasOwnProperty(ia.key)?(ia=Q[ia.key],
Z.push(h[ia])):(oa++,Z.push(null)):S<na?(ia=X[S++],Z.push(h[ia])):(oa++,Z.push(null))}X=S>=X.length?h.length:X[S];for(S=0;S<h.length;S++)na=h[S],na.key?V.hasOwnProperty(na.key)||Z.push(na):S>=X&&Z.push(na);V=Z.slice();X=0;S=[];na=[];for(ia=0;ia<h.length;){for(var Aa=h[ia],T=V[X];null===T&&V.length;)S.push(y(V,X,null)),T=V[X];T&&T.key===Aa.key?(X++,ia++):Aa.key?(T&&T.key?Q[T.key]!==ia+1?(S.push(y(V,X,T.key)),(T=V[X])&&T.key===Aa.key?X++:na.push({key:Aa.key,to:ia})):na.push({key:Aa.key,to:ia}):na.push({key:Aa.key,
to:ia}),ia++):T&&T.key&&S.push(y(V,X,T.key))}for(;X<V.length;)T=V[X],S.push(y(V,X,T&&T.key));h=S.length!==oa||na.length?{children:Z,moves:{removes:S,inserts:na}}:{children:Z,moves:null}}}Q=h.children;Z=la.length;oa=Q.length;Z=Z>oa?Z:oa;for(oa=0;oa<Z;oa++)V=la[oa],X=Q[oa],R+=1,V?u(V,X,k,R):X&&(E=f(E,new v(v.INSERT,null,X))),ha(V)&&V.count&&(R+=V.count);h.moves&&(E=f(E,new v(v.ORDER,c,h.moves)))}else E=f(E,new v(v.VNODE,c,h)),G=!0;else E=f(E,new v(v.VNODE,c,h)),G=!0;else da(h)?da(c)?c.text!==h.text&&
(E=f(E,new v(v.VTEXT,c,h))):(E=f(E,new v(v.VTEXT,c,h)),G=!0):O(h)&&(O(c)||(G=!0),E=f(E,new v(v.WIDGET,c,h)));E&&(k[p]=E);G&&(m(c,k,p),q(c,k,p))}}function q(c,g,h){if(O(c))"function"===typeof c.destroy&&(g[h]=f(g[h],new v(v.REMOVE,c,null)));else if(ha(c)&&(c.hasWidgets||c.hasThunks)){c=c.children;for(var k=c.length,m=0;m<k;m++){var p=c[m];h+=1;q(p,g,h);ha(p)&&p.count&&(h+=p.count)}}else ka(c)&&D(c,null,g,h)}function D(c,f,g,h){c=Q(c,f);c=k(c.a,c.b);var m;a:{for(m in c)if("a"!==m){m=!0;break a}m=!1}m&&
(g[h]=new v(v.THUNK,null,c))}function m(c,g,h){if(ha(c)){if(c.hooks){var k=g[h],p=v.PROPS,q=c.hooks,u={},y;for(y in q)u[y]=void 0;g[h]=f(k,new v(p,c,u))}if(c.descendantHooks||c.hasThunks)for(c=c.children,k=c.length,p=0;p<k;p++)q=c[p],h+=1,m(q,g,h),ha(q)&&q.count&&(h+=q.count)}else ka(c)&&D(c,null,g,h)}function y(c,f,g){c.splice(f,1);return{from:f,key:g}}function g(c){for(var f={},g=[],h=c.length,k=0;k<h;k++){var m=c[k];m.key?f[m.key]=k:g.push(k)}return{keys:f,free:g}}function f(c,f){return c?(G(c)?
c.push(f):c=[c,f],c):f}var G=c("x-is-array"),v=c("../vnode/vpatch"),ha=c("../vnode/is-vnode"),da=c("../vnode/is-vtext"),O=c("../vnode/is-widget"),ka=c("../vnode/is-thunk"),Q=c("../vnode/handle-thunk"),I=c("./diff-props");h.exports=k},{"../vnode/handle-thunk":48,"../vnode/is-thunk":49,"../vnode/is-vnode":51,"../vnode/is-vtext":52,"../vnode/is-widget":53,"../vnode/vpatch":56,"./diff-props":58,"x-is-array":60}],60:[function(c,h,p){function k(c){return"[object Array]"===u.call(c)}var u=Object.prototype.toString;
h.exports=Array.isArray||k},{}],61:[function(c,h,p){h.exports=function(){for(var c={},h=0;h<arguments.length;h++){var p=arguments[h],m;for(m in p)k.call(p,m)&&(c[m]=p[m])}return c};var k=Object.prototype.hasOwnProperty},{}],62:[function(c,h,p){h=(h=c("@cycle/core"))&&h.__esModule?h:{"default":h};var k=c("@cycle/dom");h["default"].run(function(c){return{DOM:c.DOM.select(".myinput").events("input").map(function(c){return c.target.value}).startWith("").map(function(c){return(0,k.div)([(0,k.label)("Name:"),
(0,k.input)(".myinput",{attributes:{type:"text"}}),(0,k.hr)(),(0,k.h1)("Hello "+c)])})}},{DOM:(0,k.makeDOMDriver)(".example-hello-world-container")})},{"@cycle/core":1,"@cycle/dom":2}]},{},[62]);