-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathscript.js.map
1 lines (1 loc) · 992 KB
/
script.js.map
1
{"version":3,"sources":["webpack:///webpack/bootstrap 6873bc1e9fb555fe8d3d","webpack:///c:/projects/todomvp/src/app.js","webpack:///c:/projects/todomvp/src/model.js","webpack:///c:/projects/todomvp/src/view.js","webpack:///c:/projects/todomvp/src/intent.js","webpack:///c:/projects/todomvp/src/initial.js","webpack:///./~/cyclejs/src/cycle.js","webpack:///./~/cyclejs/src/data-flow-node.js","webpack:///./~/cyclejs/src/data-flow-source.js","webpack:///./~/cyclejs/src/data-flow-sink.js","webpack:///./~/cyclejs/src/dom-user.js","webpack:///./~/cyclejs/src/property-hook.js","webpack:///./~/cyclejs/src/create-model.js","webpack:///./~/cyclejs/src/create-view.js","webpack:///./~/cyclejs/src/create-intent.js","webpack:///./~/lodash/index.js","webpack:///./~/cyclejs/~/virtual-dom/index.js","webpack:///./~/cyclejs/~/rx/dist/rx.all.js","webpack:///./~/cyclejs/src/errors.js","webpack:///./~/cyclejs/~/virtual-dom/diff.js","webpack:///./~/cyclejs/~/virtual-dom/patch.js","webpack:///./~/cyclejs/~/virtual-dom/h.js","webpack:///./~/cyclejs/~/virtual-dom/create-element.js","webpack:///./~/cyclejs/~/virtual-dom/vtree/diff.js","webpack:///./~/cyclejs/~/virtual-dom/vdom/patch.js","webpack:///./~/cyclejs/~/virtual-dom/virtual-hyperscript/index.js","webpack:///./~/cyclejs/~/virtual-dom/vdom/create-element.js","webpack:///./~/cyclejs/src/input-proxy.js","webpack:///./~/cyclejs/src/utils.js","webpack:///./~/cyclejs/src/custom-elements.js","webpack:///./~/cyclejs/~/virtual-dom/vdom/apply-properties.js","webpack:///./~/cyclejs/~/virtual-dom/vnode/is-vnode.js","webpack:///./~/cyclejs/~/virtual-dom/vnode/is-vtext.js","webpack:///./~/cyclejs/~/virtual-dom/vnode/is-widget.js","webpack:///./~/cyclejs/~/virtual-dom/vnode/handle-thunk.js","webpack:///./~/cyclejs/~/virtual-dom/~/global/document.js","webpack:///./~/cyclejs/~/virtual-dom/vdom/dom-index.js","webpack:///./~/cyclejs/~/virtual-dom/vdom/patch-op.js","webpack:///./~/cyclejs/~/virtual-dom/vnode/vnode.js","webpack:///./~/cyclejs/~/virtual-dom/vnode/vtext.js","webpack:///./~/cyclejs/~/virtual-dom/vnode/is-vhook.js","webpack:///./~/cyclejs/~/virtual-dom/vnode/is-thunk.js","webpack:///./~/cyclejs/~/virtual-dom/virtual-hyperscript/parse-tag.js","webpack:///./~/cyclejs/~/virtual-dom/virtual-hyperscript/hooks/soft-set-hook.js","webpack:///./~/cyclejs/~/virtual-dom/virtual-hyperscript/hooks/ev-hook.js","webpack:///./~/cyclejs/~/virtual-dom/~/x-is-array/index.js","webpack:///min-document (ignored)","webpack:///./~/cyclejs/~/virtual-dom/vnode/version.js","webpack:///./~/cyclejs/~/virtual-dom/vnode/vpatch.js","webpack:///./~/cyclejs/~/virtual-dom/vtree/diff-props.js","webpack:///(webpack)/buildin/module.js","webpack:///./~/cyclejs/~/virtual-dom/~/is-object/index.js","webpack:///(webpack)/~/node-libs-browser/~/process/browser.js","webpack:///./~/cyclejs/~/virtual-dom/vdom/update-widget.js","webpack:///./~/cyclejs/~/virtual-dom/~/ev-store/index.js","webpack:///./~/cyclejs/~/virtual-dom/~/browser-split/index.js","webpack:///./~/cyclejs/~/virtual-dom/~/ev-store/~/individual/one-version.js","webpack:///./~/cyclejs/~/virtual-dom/~/ev-store/~/individual/index.js"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,wC;;;;;;;;;;;;;;KCtCO,KAAK,uCAAM,gBAAS;;KAEpB,KAAK,uCAAM,gBAAS;;KACpB,IAAI,uCAAM,eAAQ;;KAClB,MAAM,uCAAM,iBAAU;;KACtB,YAAY,uCAAM,kBAAW;;AAEpC,KAAI,IAAI,GAAG,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;;AAE9C,KAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAClB,KAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACnB,MAAK,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AACnC,OAAM,CAAC,MAAM,CAAC,IAAI,CAAC,C;;;;;;;;;;;;;KCZZ,KAAK,uCAAM,gBAAS;;KACpB,CAAC,uCAAM,gBAAQ;;AAEtB,UAAS,wBAAwB,CAAC,KAAK,EAAE;OAClC,WAAW,GAAY,KAAK,CAA5B,WAAW;AAAZ,OAAc,MAAM,GAAI,KAAK,CAAf,MAAM,CAAS;AAC7B,aAAM,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC,OAAO,EAAE;AAC3D,kBAAW,GAAG,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,GAAG;YAAK,GAAG,GAAG,GAAG;IAAA,CAAC,IAAI,CAAC;AAClF,gBAAS,GAAG,WAAW,GAAG,WAAW;;AAEzC,YAAS,WAAW,CAAC,MAAM,EAAE;AAC3B,WAAM,CAAC,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAC5B,GAAG,CAAC,UAAU,CAAC,CACf,GAAG,CAAC,WAAC;cAAI,CAAC,GAAG,CAAC;MAAA,CAAC,CACf,GAAG,CAAC,WAAC;cAAI,CAAC,GAAG,CAAC;MAAA,CAAC,CACf,GAAG,CAAC,YAAE;cAAI,EAAE,GAAG,IAAI,CAAC,EAAE;MAAA,CAAC,CACvB,MAAM,CAAC,UAAC,GAAG,EAAE,IAAI;cAAK,IAAI,GAAG,GAAG;MAAA,CAAC,CAAC;IACtC;;AAED,YAAS,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE;AACxC,UAAK,GAAG,KAAK,IAAI,CAAC,CAAC;AACnB,SAAI,MAAM,CAAC,KAAK,GAAG,SAAS,EAAE;AAC5B,cAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;MACtB,MAAM;AACL,YAAK,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;AAC1C,aAAI,KAAK,GAAG,EAAC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,EAAC,CAAC;AAC7C,cAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AAC7B,oBAAW,CAAC,KAAK,CAAC,CAAC;AACnB,iBAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;QAC7B;MACF;AACD,YAAO,OAAO,CAAC;IAChB;;AAED,QAAK,CAAC,WAAW,GAAG,WAAW,CAAC;AAChC,QAAK,CAAC,eAAe,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAC,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAC,EAAE,EAAE,CAAC,CAAC,CAC5D,GAAG,CAAC,iBAAO;YAAI,OAAO,CAAC,GAAG,YAAU,OAAO,CAAC,MAAM,cAAW;IAAA,CAAC,CAC9D,OAAO,CAAC,gBAAM,EAAI;AACjB,WAAM,CAAC,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAC3B,GAAG,CAAC,MAAM,CAAC,CACX,MAAM,CAAC,UAAC,GAAG,EAAE,IAAI;cAAK,GAAG,GAAG,IAAI;MAAA,CAAC,CAAC;AACrC,WAAM,CAAC,KAAK,GAAG,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC;IAC3C,CAAC,CACD,MAAM,CAAC,OAAO,CAAC,CACf,OAAO,CAAC,UAAC,MAAM,EAAE,KAAK;YAAK,MAAM,CAAC,KAAK,GAAG,KAAK,GAAG,CAAC;IAAA,CAAC,CACpD,MAAM,CAAC,OAAO,CAAC,CACf,OAAO,CAAC,UAAC,MAAM,EAAE,KAAK;YAAK,MAAM,CAAC,KAAK,IAAI,KAAK;IAAA,CAAC,CACjD,MAAM,CAAC,MAAM,CAAC,CACd,IAAI,CAAC,EAAE,CAAC,CACR,MAAM,CAAC,OAAO,CAAC,CACf,GAAG,CAAC,iBAAO;YAAI,OAAO,CAAC,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;IAAA,CAAC,CAChF,MAAM,CAAC,OAAO,CAAC,CACf,GAAG,CAAC,iBAAO;YAAI,OAAO,CAAC,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC;IAAA,CAAC,CAC9D,MAAM,CAAC,MAAM,CAAC,CACd,KAAK,EAAE,CAAC;EACZ;;AAED,KAAI,KAAK,GAAG,KAAK,CAAC,WAAW,CAAC,UAAC,MAAM,EAAE,OAAO,EAAK;;AAEjD,OAAI,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CACnC,GAAG,CAAC,gBAAM;YAAI,eAAK,EAAI;AACtB,YAAK,CAAC,MAAM,GAAG,MAAM,CAAC;AACtB,cAAO,KAAK,CAAC;MACd;IAAA,CAAC,CAAC;;AAEL,OAAI,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,CACrC,GAAG,CAAC,cAAI;YAAI,eAAK,EAAI;AACpB,YAAK,CAAC,YAAY,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AACvC,cAAO,KAAK,CAAC;MACd;IAAA,CAAC,CAAC;;AAEL,OAAI,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CACvC,GAAG,CAAC,cAAI;YAAI,eAAK,EAAI;AACpB,YAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;AAC5D,cAAO,KAAK,CAAC;MACd;IAAA,CAAC,CAAC;;AAEL,OAAI,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,CACpC,GAAG,CAAC,cAAI;YAAI,eAAK,EAAI;AACpB,YAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAC,CAAC,CAAC;AAC9D,cAAO,KAAK,CAAC;MACd;IAAA,CAAC,CAAC;;AAEL,OAAI,cAAc,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CACtC,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,CAC3C,CAAC;;AAEF,UAAO;AACL,WAAM,EAAE,cAAc,CACX,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAC5B,IAAI,CAAC,UAAU,KAAK,EAAE,KAAK,EAAE;AAAE,cAAO,KAAK,CAAC,KAAK,CAAC,CAAC;MAAE,CAAC,CACtD,GAAG,CAAC,wBAAwB,CAAC;;MAE7B,KAAK,EAAE;IACnB;EACF,CAAC,CAAC;;kBAEY,KAAK,C;;;;;;;;;;;;;KChGb,KAAK,uCAAM,gBAAS;;KACpB,CAAC,uCAAM,gBAAQ;;AAEtB,UAAS,aAAa,CAAC,KAAK,EAAE;AAC5B,UAAO,CACL,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,yBAA0B,CAAC,EACzC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,CACf,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,CACf,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CACZ,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,EACvB,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE;AACZ,eAAU,EAAE,EAAC,YAAY,EAAE,OAAO,EAAC;AACnC,cAAS,EAAE,KAAK,CAAC,MAAM,KAAK,OAAO,GAAG,QAAQ,GAAG,EAAE;IACpD,EAAE,UAAU,CAAC,EACd,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE;AACZ,eAAU,EAAE,EAAC,YAAY,EAAE,MAAM,EAAC;AAClC,cAAS,EAAE,KAAK,CAAC,MAAM,KAAK,MAAM,GAAG,QAAQ,GAAG,EAAE;IACnD,EAAE,MAAM,CAAC,EACV,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE;AACZ,eAAU,EAAE,EAAC,YAAY,EAAE,OAAO,EAAC;AACnC,cAAS,EAAE,KAAK,CAAC,MAAM,KAAK,OAAO,GAAG,QAAQ,GAAG,EAAE;IACpD,EAAE,YAAY,CAAC,CACjB,CAAC,CACH,CAAC,EACF,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CACxF,CAAC,CACH,CAAC;EACH;;AAED,UAAS,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE;AACzC,UAAO,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CACnB,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAC3B,OAAO,CAAC,MAAM,CAAC,CACf,GAAG,CAAC,UAAC,GAAG,EAAE,IAAI;iBAAQ,GAAG,CAAC,MAAM,SAAI,IAAI;IAAE,CAAC,CAC3C,KAAK,EAAE,CACP,IAAI,CAAC,IAAI,CAAC,CAAC,EACd,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CACZ,MAAM,CAAC,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,iBAAiB,EAAE,EAAC,KAAK,EAAE,aAAa,EAAC,CAAC,GAAG,IAAI,OACzE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,GAAG,WAAW,GAAG,GAAG,CAAC,GAAG,GAAG,CACtD,CAAC,EACF,KAAK,CAAC,CAAC,CAAC,IAAI,OAAK,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,GAAG,CAAG,EACvD,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CACV,MAAM,CAAC,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC,gBAAgB,EAAE,EAAC,KAAK,EAAE,YAAY,EAAC,CAAC,GAAG,IAAI,OACtE,MAAM,CAAC,KAAK,CAChB,CAAC,CACH,CAAC,CAAC;EACN;;AAED,UAAS,mBAAmB,CAAC,KAAK,EAAE;AAClC,UAAO,CACL,KAAK,CAAC,CAAC,CAAC,IAAI,6BAA2B,KAAK,CAAC,WAAW,mBAAgB,EACxE,KAAK,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,UAAC,IAAI,EAAE,IAAI;YACnD,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAC;IAAA,CAAC,CAAC,CAC5B,CAAC;EACH;;AAED,UAAS,YAAY,CAAC,KAAK,EAAE;AAC3B,UAAO,CACL,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,eAAgB,CAAC,EAC/B,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CACZ,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,EAC7B,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAC1C,CAAC,CACH,CAAC;EACH;;AAED,UAAS,WAAW,CAAC,KAAK,EAAE;AAC1B,UAAO,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CACnB,KAAK,CAAC,CAAC,CAAC,MAAM,OAAK,KAAK,CAAC,IAAI,UAAK,KAAK,CAAC,QAAQ,eAAS,KAAK,CAAC,QAAQ,KAAK,CAAC,GAAG,EAAE,GAAG,GAAG,EAAG,CAC5F,CAAC,CAAC;EACJ;;AAED,KAAI,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,eAAK;UAC5B;AACC,WAAM,EAAE,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,eAAK;cACnC,KAAK,CAAC,CAAC,CAAC,KAAK,EAAE,CACb,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,4BAA4B,CAAC,EAC3C,YAAY,CAAC,KAAK,CAAC,EACnB,mBAAmB,CAAC,KAAK,CAAC,EAC1B,aAAa,CAAC,KAAK,CAAC,CACrB,CAAC;MAAA,CAAC;IACN;EAAC,CACL,CAAC;;kBAEa,IAAI,C;;;;;;;;;;;;;KCpFZ,KAAK,uCAAM,gBAAS;;AAE3B,KAAI,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC,cAAI;YAAK;;AAEvC,gBAAO,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,GAAG,CACnC,YAAE;oBAAI,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,YAAY,CAAC;UAAA,CAC7C,CAAC,MAAM,CAAC,eAAK;oBAAI,CAAC,CAAC,KAAK;UAAA,CAAC;;AAE1B,oBAAW,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,GAAG,CAC3C,YAAE;oBAAI,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,KAAK;UAAA,CACzD;;AAED,kBAAS,EAAI,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC,MAAM,CAAC,YAAE;oBAAI,EAAE,CAAC,OAAO,KAAK,EAAE;UAAA,CAAC,CAAC,GAAG,CAClF,YAAE;oBAAI,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC;UAAA,CAC/C,CAAC,MAAM,CAAC,eAAK;oBAAI,KAAK;UAAA,CAAC,CAAC,GAAG,CACxB,eAAK;oBAAK,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAC;UAAC,CAChE;;AAED,qBAAY,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC,MAAM,CAAC,YAAE;oBAAI,EAAE,CAAC,OAAO,KAAK,EAAE;UAAA,CAAC,CAAC,GAAG,CACvF,YAAE;oBAAK,EAAC,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC,EAAC;UAAC,CAC3F,CAAC,MAAM,CAAC,gBAAM;oBAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC;UAAA,CAAC;;MAE5C;EAAC,CAAC,CAAC;;kBAEW,MAAM,C;;;;;;;;;;;;;KCxBd,KAAK,uCAAM,gBAAS;;;;;;;;;;;;;;AAc3B,KAAI,KAAK,GAAI,MAAM,IAAI,MAAM,CAAC,KAAK,IAAK,CACpC;AACE,MAAG,EAAE,0BAA0B;AAC/B,OAAI,EAAI,oBAAoB;AAC5B,SAAM,EAAE,CACN,EAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAC,EACpD,EAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAC,EAC1C,EAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAC,CAC1C;EACF,EACD;AACE,MAAG,EAAE,0BAA0B;AAC/B,OAAI,EAAI,mBAAmB;AAC3B,SAAM,EAAE,CACN,EAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAC,EAC3C,EAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAC,EAC1C,EAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAC,EAC3C,EAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAC,CAC1C;EACF,CACF,CAAC;;AAEJ,KAAI,SAAS,GAAI,MAAM,IAAI,MAAM,CAAC,SAAS,IAAK;AAC5C,SAAM,EAAO,CACX,EAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,EAAC,EAC9B,EAAC,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,EAAC,EACjC,EAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAAC,EAC7B,EAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,EAAC,CAC/B;AACD,cAAW,EAAE,IAAK;AAClB,OAAI,EAAS,0BAA0B;EACxC,CAAC;;AAEJ,UAAS,iBAAiB,GAAG;AAC3B,UAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC;EACnG;;AAED,KAAI,WAAW,GAAG,KAAK,CAAC,oBAAoB,CAAC;AAC3C,SAAM,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC;EACtC,CAAC,CAAC;;kBAEY,WAAW,C;;;;;;;;;ACvD1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,SAAS;AACtB;AACA;AACA,eAAc,aAAa;AAC3B;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,eAAc,eAAe;AAC7B;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,SAAS;AACtB;AACA;AACA,eAAc,aAAa;AAC3B;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAa,SAAS;AACtB;AACA,eAAc,aAAa;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,SAAS;AACtB;AACA;AACA;AACA,eAAc,aAAa;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,SAAS;AACtB;AACA,eAAc,aAAa;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,qBAAqB;AAClC;AACA,eAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,SAAS;AACtB,eAAc,aAAa;AAC3B;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;AC5JA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAiB,yBAAyB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,yBAAyB;AAC5C;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA,oCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0BAAyB,QAAQ;;AAEjC,wCAAuC;AACvC;AACA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;ACpHA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;ACrBA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC;AAChC;AACA;AACA;;AAEA;;;;;;;;;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,QAAQ;AACnD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,6CAA4C,QAAQ;;AAEpD;AACA;AACA,8DAA6D,UAAU,EAAE;AACzE,mCAAkC,qCAAqC,EAAE;AACzE;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,QAAQ;AACnD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;ACpLA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;ACTA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,wCAAuC,kCAAkC;AACzE;AACA;;AAEA;;;;;;;;;;ACbA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qCAAoC,cAAc;AAClD;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA,4CAA2C;AAC3C;AACA,mCAAkC;AAClC;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,iCAAiC;AACtE;AACA;;AAEA;;;;;;;;;;AChEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,0CAAyC,mCAAmC;AAC5E;AACA;;AAEA;;;;;;;;;;mCCbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,4CAA2C;AAC3C;AACA,4DAA2D;;AAE3D;AACA,oDAAmD;AACnD;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,2BAA0B,MAAM,aAAa,OAAO;;AAEpD;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iCAAgC;AAChC;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,6BAA4B,GAAG;AAC/B,IAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe;AACf,eAAc;AACd,eAAc;AACd,iBAAgB;AAChB,gBAAe;AACf,gBAAe;AACf;;AAEA;AACA;AACA,WAAU;AACV,UAAS;AACT,UAAS;AACT,YAAW;AACX,WAAU;AACV,WAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,EAAE;AACf,cAAa,EAAE;AACf,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAa,MAAM;AACnB,cAAa,EAAE;AACf,cAAa,OAAO;AACpB,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,EAAE;AACf,gBAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,MAAM;AACnB,cAAa,SAAS;AACtB,gBAAe,MAAM;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,EAAE;AACf,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,gBAAe,OAAO;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,gBAAe,OAAO;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,gBAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,gBAAe,OAAO;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,gBAAe,OAAO;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,gBAAe,OAAO;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,gBAAe,OAAO;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,MAAM;AACnB,cAAa,OAAO;AACpB,cAAa,QAAQ;AACrB,gBAAe,OAAO;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAa,EAAE;AACf,gBAAe,QAAQ;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,gBAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,MAAM;AACnB,cAAa,EAAE;AACf,gBAAe,MAAM;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,MAAM;AACnB,cAAa,SAAS;AACtB,gBAAe,MAAM;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,gBAAe,OAAO;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,gBAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,gBAAe,OAAO;AACtB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,gBAAe,SAAS;AACxB;AACA;AACA,eAAc,wBAAwB,cAAc,EAAE,EAAE;AACxD;AACA;AACA,oBAAmB,wBAAwB,cAAc,EAAE,EAAE;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA,OAAM;AACN;AACA;AACA,kCAAiC,6BAA6B;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,QAAQ;AACvB,gBAAe,MAAM;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,4BAA2B;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW;AACX;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB;AACA;AACA;;AAEA,oBAAmB;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,SAAS;AACxB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,SAAS;AACxB,kBAAiB,MAAM;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,SAAS;AACxB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,SAAS;AACxB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,SAAS;AACxB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,gBAAe,QAAQ;AACvB;AACA,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,gBAAe,QAAQ;AACvB;AACA,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,SAAS;AACxB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,EAAE;AACjB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,EAAE;AACjB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,aAAa;AAC5B,gBAAe,kBAAkB;AACjC,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO,WAAW;AACjC,gBAAe,MAAM;AACrB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,EAAE;AACjB,gBAAe,OAAO;AACtB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,QAAQ;AACvB,gBAAe,SAAS;AACxB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA,+CAA8C;AAC9C;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,mCAAkC;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA,qCAAoC,mDAAmD,EAAE;AACzF;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,SAAS;AACxB,kBAAiB,oBAAoB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,SAAS;AACxB,kBAAiB,oBAAoB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,SAAS;AACxB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,EAAE;AACjB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,MAAM;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,SAAS;AACxB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,SAAS;AACxB,gBAAe,SAAS;AACxB,gBAAe,QAAQ;AACvB;AACA,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,QAAQ;AACvB,gBAAe,QAAQ;AACvB,gBAAe,OAAO;AACtB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,gBAAe,SAAS;AACxB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,gBAAe,SAAS;AACxB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,MAAM;AACrB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,gBAAgB;AAC/B;AACA,gBAAe,MAAM;AACrB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,EAAE;AACjB,gBAAe,SAAS;AACxB,gBAAe,QAAQ;AACvB,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,gBAAe,SAAS;AACxB,gBAAe,QAAQ;AACvB,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,gBAAe,SAAS;AACxB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,SAAS;AACxB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,EAAE;AACjB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,gBAAe,SAAS;AACxB,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAgD;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,SAAS;AACxB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,gBAAe,QAAQ;AACvB;AACA,gBAAe,SAAS;AACxB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,SAAS;AACxB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,SAAS;AACxB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,MAAM;AACrB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,MAAM;AACrB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,EAAE;AACjB,gBAAe,QAAQ;AACvB;AACA,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,8CAA6C;AAC7C;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,EAAE;AACjB,gBAAe,SAAS;AACxB,gBAAe,QAAQ;AACvB;AACA,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,gBAAe,OAAO;AACtB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,YAAY;AAC3B,kBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,aAAa;AAC5B,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,aAAa;AAC5B,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,SAAS;AACxB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,kBAAiB,SAAS;AAC1B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,kBAAiB,YAAY;AAC7B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,QAAQ;AACvB;AACA,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,gBAAgB;AAC/B,gBAAe,OAAO;AACtB,gBAAe,EAAE;AACjB,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,OAAO;AACtB,gBAAe,EAAE;AACjB,gBAAe,MAAM;AACrB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,gBAAgB;AAC/B,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,gBAAe,SAAS;AACxB,gBAAe,SAAS;AACxB,gBAAe,QAAQ;AACvB,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,gBAAe,SAAS;AACxB,gBAAe,QAAQ;AACvB,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uDAAsD;AACtD;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,SAAS;AACxB,gBAAe,QAAQ;AACvB;AACA,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB,gBAAgB;AACjC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,MAAM;AACrB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,2CAA0C;AAC1C,yCAAwC;AACxC,gEAA+D;AAC/D,kEAAiE;AACjE;AACA;AACA,eAAc;AACd;;AAEA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,QAAQ;AACvB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,OAAO;AACtB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,EAAE;AACjB,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,kBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,aAAa;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,SAAS;AACxB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4DAA2D;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA,WAAU,oCAAoC;AAC9C,WAAU,qCAAqC;AAC/C,WAAU;AACV;AACA;AACA;AACA,yCAAwC,mCAAmC;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4DAA2D;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA,WAAU,qCAAqC;AAC/C,WAAU,qCAAqC;AAC/C,WAAU;AACV;AACA;AACA;AACA,oCAAmC,oCAAoC;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,EAAE;AACjB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA,WAAU,qCAAqC;AAC/C,WAAU,qCAAqC;AAC/C,WAAU;AACV;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA,4BAA2B,kCAAkC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA,WAAU,oCAAoC;AAC9C,WAAU,qCAAqC;AAC/C,WAAU;AACV;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA,gCAA+B,mCAAmC;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,QAAQ;AACvB,iBAAgB,OAAO;AACvB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,EAAE;AACjB,gBAAe,eAAe;AAC9B;AACA,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,EAAE;AACjB,gBAAe,eAAe;AAC9B;AACA,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,KAAK;AACpB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,qBAAqB;AACpC;AACA,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,EAAE;AACjB,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,UAAU,yCAAyC;AACtE;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA,wBAAuB,UAAU,GAAG,UAAU,IAAI,UAAU;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,EAAE;AACjB,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,yCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA,WAAU,oCAAoC;AAC9C,WAAU,qCAAqC;AAC/C,WAAU;AACV;AACA;AACA;AACA,yCAAwC,qCAAqC;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA,WAAU,qCAAqC;AAC/C,WAAU,oCAAoC;AAC9C,WAAU;AACV;AACA;AACA;AACA,oCAAmC,oCAAoC;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,QAAQ;AACvB,gBAAe,uBAAuB;AACtC,gBAAe,EAAE;AACjB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA,iBAAgB,SAAS,GAAG,SAAS,GAAG,SAAS;AACjD,gBAAe,SAAS,GAAG,SAAS;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,KAAK;AACpB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA,WAAU,+BAA+B;AACzC,WAAU,+BAA+B;AACzC,WAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,WAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yDAAwD;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB,OAAO;AACxB;AACA;AACA;AACA,WAAU,8BAA8B;AACxC,WAAU;AACV;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,qCAAqC;AACpD;AACA,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA,SAAQ;AACR,eAAc;AACd;AACA;AACA;AACA,SAAQ;AACR,eAAc;AACd;AACA;AACA,eAAc;AACd;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAU,oCAAoC;AAC9C,WAAU;AACV;AACA;AACA;AACA,wBAAuB,oCAAoC;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA,WAAU,8CAA8C;AACxD,WAAU;AACV;AACA;AACA;AACA,iCAAgC,4BAA4B;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA,WAAU,+CAA+C;AACzD,WAAU,gDAAgD;AAC1D,WAAU;AACV;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA,gCAA+B,2BAA2B;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,OAAO;AACtB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA,WAAU,8CAA8C;AACxD,WAAU;AACV;AACA;AACA,qCAAoC,4BAA4B;AAChE;AACA;AACA,qCAAoC,6BAA6B;AACjE;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,kBAAiB,oBAAoB;AACrC;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA,mBAAkB,iBAAiB;AACnC;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,kBAAiB,oBAAoB;AACrC;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA,SAAQ;AACR,eAAc;AACd;AACA;AACA;AACA,SAAQ;AACR,eAAc;AACd;AACA;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,EAAE;AACjB,gBAAe,OAAO;AACtB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,4BAA4B;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA,WAAU,4BAA4B;AACtC,WAAU;AACV;AACA;AACA;AACA,eAAc,UAAU,4BAA4B,YAAY,8BAA8B;AAC9F;AACA;AACA;AACA,SAAQ;AACR,eAAc,OAAO,4BAA4B,QAAQ,8BAA8B;AACvF;AACA;AACA;AACA,SAAQ;AACR,eAAc,OAAO,4BAA4B,QAAQ,8BAA8B;AACvF;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,gBAAgB;AAC/B;AACA,gBAAe,KAAK;AACpB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,uBAAuB;AACtC;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAc,iBAAiB;AAC/B;AACA;AACA;AACA,WAAU,mBAAmB;AAC7B,WAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,uBAAuB;AACtC,gBAAe,EAAE;AACjB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAU,8BAA8B;AACxC,WAAU;AACV;AACA;AACA;AACA;AACA,SAAQ;AACR,eAAc;AACd;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,uBAAuB;AACtC,gBAAe,EAAE;AACjB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAU,8BAA8B;AACxC,WAAU;AACV;AACA;AACA;AACA;AACA,SAAQ;AACR,eAAc;AACd;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA,sDAAqD;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA,WAAU,gDAAgD;AAC1D,WAAU,+CAA+C;AACzD,WAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,4BAA4B;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK,cAAc,iBAAiB,EAAE;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,OAAO;AACtB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA,WAAU,8BAA8B;AACxC,WAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,gBAAe,EAAE;AACjB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA,kBAAiB,iBAAiB;AAClC;AACA;AACA,SAAQ,IAAI;AACZ,eAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,gBAAe,EAAE;AACjB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA,WAAU,+CAA+C;AACzD,WAAU;AACV;AACA;AACA;AACA,iCAAgC,4BAA4B;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA,gBAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,6BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAU,mCAAmC;AAC7C,WAAU;AACV;AACA;AACA;AACA,uBAAsB,oCAAoC;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,6BAA6B;AAC5C;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA,WAAU,iBAAiB;AAC3B,WAAU,oBAAoB;AAC9B,WAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,4BAA2B;AAC3B,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,qBAAqB;AACpC;AACA,kBAAiB,MAAM;AACvB;AACA;AACA;AACA,WAAU,8BAA8B;AACxC,WAAU,8BAA8B;AACxC,WAAU,8BAA8B;AACxC,WAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,4BAA2B;AAC3B,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,OAAO;AACtB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA,WAAU,kEAAkE;AAC5E,WAAU;AACV;AACA;AACA,gCAA+B,6BAA6B;AAC5D;AACA;AACA,gCAA+B,mBAAmB;AAClD;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,mCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA,qBAAoB,iCAAiC;AACrD,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,gBAAe,KAAK;AACpB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,qBAAqB;AACpC;AACA,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,KAAK;AACpB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,QAAQ;AACvB;AACA,gBAAe,OAAO;AACtB;AACA,gBAAe,QAAQ;AACvB;AACA,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,kCAAkC;AAChE;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,KAAK;AACpB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,OAAO;AACtB,gBAAe,KAAK;AACpB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,YAAY;AAC3B,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,4BAA2B,qBAAqB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,YAAY;AAC3B,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,4BAA2B,qBAAqB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,SAAS;AACxB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB;AACrB,qBAAoB;AACpB;AACA;AACA;AACA,eAAc;AACd;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA,eAAc;AACd;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,KAAK;AACpB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,KAAK;AACpB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,qBAAqB;AACpC;AACA,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,QAAQ;AACvB;AACA,gBAAe,QAAQ;AACvB;AACA,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,SAAS;AACxB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA,qCAAoC;AACpC;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,gDAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,QAAQ;AACvB,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA,WAAU,mBAAmB;AAC7B,WAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,sCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA,WAAU,mBAAmB;AAC7B,WAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA,kCAAiC,kBAAkB,EAAE;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA,8BAA6B,kBAAkB,EAAE;AACjD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAkB,SAAS;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,EAAE;AACjB,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA,sBAAqB;AACrB,qBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA,qBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,sDAAqD;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA,sBAAqB;AACrB;AACA,2BAA0B,YAAY;AACtC;AACA;AACA,2BAA0B,YAAY;AACtC;AACA;AACA;AACA,sBAAqB;AACrB,sBAAqB;AACrB;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAwB,iBAAiB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB,SAAS;AAC1B,eAAc;AACd;AACA,kBAAiB,SAAS;AAC1B,eAAc;AACd;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,UAAU;AACzB,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA,kBAAiB,mBAAmB,GAAG,YAAY,GAAG,iBAAiB;AACvE,eAAc;AACd;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA,kBAAiB,mBAAmB,GAAG,YAAY,GAAG,iBAAiB;AACvE,eAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,UAAU;AACzB,kBAAiB,OAAO;AACxB;AACA;AACA,oBAAmB,mBAAmB,GAAG,YAAY,GAAG,iBAAiB;AACzE,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,iBAAiB;AAClC;AACA;AACA;AACA,sBAAqB,4BAA4B;AACjD,sBAAqB,6BAA6B;AAClD,sBAAqB;AACrB;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA,0BAAyB,2BAA2B;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,iBAAiB;AAClC;AACA;AACA;AACA,sBAAqB,4BAA4B;AACjD,sBAAqB,6BAA6B;AAClD,sBAAqB;AACrB;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA,8BAA6B,4BAA4B;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,6BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,QAAQ;AACzB;AACA;AACA,sBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,QAAQ;AACvB,iBAAgB,OAAO;AACvB,kBAAiB,OAAO;AACxB;AACA;AACA,sBAAqB;AACrB;AACA;AACA,eAAc;AACd;AACA;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,uBAAuB;AACtC;AACA,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA,qBAAoB,iBAAiB;AACrC;AACA,SAAQ;AACR,eAAc;AACd;AACA;AACA,sBAAqB,+BAA+B;AACpD,sBAAqB;AACrB;AACA;AACA;AACA;AACA,eAAc,2BAA2B;AACzC;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B;AAC3B;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,UAAU;AACzB,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA,oBAAmB,mBAAmB,GAAG,iBAAiB;AAC1D;AACA;AACA;AACA,oBAAmB,YAAY,GAAG,YAAY;AAC9C;AACA;AACA;AACA,eAAc,WAAW,8BAA8B,GAAG,4BAA4B;AACtF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR,eAAc;AACd;AACA;;AAEA;AACA,iCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,8BAA8B;AAC7C;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA,sBAAqB;AACrB;AACA;AACA,eAAc;AACd;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,MAAM;AACvB;AACA;AACA,iBAAgB,2BAA2B;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,4DAA2D;AAC3D;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,8BAA8B;AAC7C;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA,sBAAqB;AACrB;AACA;AACA,eAAc;AACd;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,EAAE;AACjB;AACA,kBAAiB,EAAE;AACnB;AACA;AACA,sBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qCAAoC;AACpC;AACA;AACA;AACA,4BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA,gBAAe,aAAa;AAC5B,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,gBAAe,EAAE;AACjB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA,qBAAoB,iBAAiB;AACrC;AACA,SAAQ;AACR,eAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,QAAQ;AACvB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA,kCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mCAAkC,QAAQ;AAC1C;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;;AAEP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA,kBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;AACA,kBAAiB,sBAAsB;AACvC,sBAAqB,UAAU;AAC/B;AACA;AACA,uEAAsE,2BAA2B,EAAE;AACnG,kBAAiB,8BAA8B;AAC/C;AACA;AACA;AACA,6DAA4D;AAC5D,kBAAiB,mBAAmB;AACpC;AACA;AACA;AACA,2CAA0C,OAAO;AACjD,kBAAiB,oBAAoB;AACrC;AACA;AACA;AACA,4CAA2C,YAAY;AACvD,2CAA0C,QAAQ;AAClD,kBAAiB,qBAAqB;AACtC;AACA;AACA;AACA;AACA,kBAAiB,qBAAqB;AACtC;AACA;AACA;AACA,sDAAqD,2BAA2B,EAAE;AAClF,yCAAwC,aAAa,eAAe,EAAE;AACtE,kBAAiB,8BAA8B;AAC/C;AACA;AACA;AACA,yDAAwD,qCAAqC;AAC7F;AACA;AACA;AACA;AACA,2DAA0D,qBAAqB;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAoB;AACpB;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,yCAAwC;;AAExC,6CAA4C;AAC5C;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,wBAAwB;AAC/C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;;AAEP,oBAAmB;;AAEnB;AACA;AACA;AACA;AACA,+BAA8B,mBAAmB;AACjD;AACA;AACA;AACA;AACA,6CAA4C;;AAE5C;AACA,wDAAuD;AACvD;AACA;AACA,8BAA6B,EAAE;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C;AAC1C,gCAA+B,iCAAiC;AAChE,eAAc;AACd;AACA;AACA,uBAAsB;;AAEtB;AACA;AACA,QAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,cAAc;AAC7B,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,cAAc;AAC7B,iBAAgB,OAAO;AACvB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kCAAiC;AACjC,cAAa,QAAQ,QAAQ,UAAU,SAAS,aAAa;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA,uCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,cAAc;AAC7B,iBAAgB,OAAO;AACvB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,EAAE;AACjB,iBAAgB,OAAO;AACvB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA,WAAU,8BAA8B;AACxC,WAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA,gBAAe,4BAA4B;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,SAAS;AAC1B;AACA;AACA,sBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,EAAE;AACnB;AACA;AACA,sBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA,WAAU,8CAA8C;AACxD,WAAU;AACV;AACA;AACA,mCAAkC,6BAA6B;AAC/D,gBAAe,6CAA6C;AAC5D;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,EAAE;AACjB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA,WAAU,mBAAmB;AAC7B,WAAU,iBAAiB;AAC3B,WAAU;AACV;AACA;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,gBAAgB;AAC/B,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,QAAQ;AACvB;AACA,kBAAiB,gBAAgB;AACjC;AACA;AACA;AACA;AACA;AACA,WAAU;AACV;AACA;AACA;AACA;AACA;AACA,iBAAgB,mBAAmB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB,mBAAmB,GAAG,iBAAiB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0EAAyE,qDAAqD;AAC9H;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA,WAAU,iBAAiB;AAC3B,WAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,SAAS;AAC1B;AACA;AACA,sBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAoB;AACpB;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,MAAK;;AAEL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,yBAAwB,+DAA+D;AACvF;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA,uBAAsB,sEAAsE;AAC5F;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;;AAEA;AACA;AACA;AACA;AACA,QAAO;AACP;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA0B,yDAAyD;AACnF;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;;;;;;;;;;AClqWD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;mCCVA;;AAEA,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,oBAAmB;AACnB;AACA;AACA,QAAO;AACP,iBAAgB;AAChB;;AAEA;AACA,6CAA4C,EAAE;AAC9C,wDAAuD,iCAAiC,EAAE;AAC1F,0DAAyD,kCAAkC,EAAE;AAC7F,oDAAmD,UAAU,EAAE;AAC/D,qDAAoD,sBAAsB,oBAAoB,GAAG,EAAE;AACnG,gDAA+C,qBAAqB,cAAc,GAAG,EAAE;AACvF;AACA,qEAAoE,sBAAsB,EAAE;AAC5F,2EAA0E,qCAAqC,EAAE;AACjH,4EAA2E,qBAAqB,EAAE;AAClG,8DAA6D,WAAW,EAAE;AAC1E,sDAAqD,4CAA4C,EAAE;AACnG,iDAAgD,8CAA8C,EAAE;AAChG,0CAAyC,WAAW,EAAE;AACtD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,6BAA4B,uBAAuB,iCAAiC,EAAE;;AAEtF;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC,KAAK;AACrC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wCAAuC,SAAS;AAChD;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,sBAAqB,QAAQ;;AAE7B;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,oCAAmC,QAAQ;;AAE3C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oBAAmB,2CAA2C;;AAE9D;AACA;AACA,oBAAmB,2CAA2C;;AAE9D;AACA;AACA,oBAAmB,2CAA2C;AAC9D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,6CAA4C;;AAE5C;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,0CAAyC,aAAa;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uEAAsE,gBAAgB;AACtF,IAAG;AACH;AACA;;AAEA;AACA,qFAAoF;AACpF,0DAAyD;AACzD,qFAAoF;AACpF,gCAA+B;;AAE/B;AACA;AACA,4BAA2B,YAAY,EAAE;AACzC;;AAEA,uBAAsB;AACtB,gCAA+B,iBAAiB;AAChD,6BAA4B;;AAE5B;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAkB;;AAElB;AACA,oBAAmB,0BAA0B;AAC7C;AACA;AACA;;AAEA;AACA;AACA,0CAAyC,SAAS;AAClD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,oBAAmB,WAAW;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,6CAA4C,QAAQ;AACpD;AACA,0CAAyC,QAAQ;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,6CAA4C,QAAQ;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qCAAoC,4BAA4B;;AAEhE;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,cAAa,MAAM;AACnB;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,MAAM;AACnB,gBAAe,QAAQ,eAAe;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uDAAsD,SAAS;AAC/D;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,MAAM;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,SAAS;AACtB,eAAc,WAAW;AACzB;AACA,iEAAgE,+BAA+B;;AAE/F;AACA;AACA;AACA,6CAA4C;;AAE5C;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oBAAmB,WAAW;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sBAAqB,WAAW;AAChC;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,gBAAe,SAAS;AACxB,kBAAiB,WAAW;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,kBAAiB,WAAW;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,OAAO;AACtB,kBAAiB,WAAW;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,OAAO;AACtB,kBAAiB,WAAW;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,OAAO;AACtB,kBAAiB,WAAW;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,SAAS;AACxB,gBAAe,OAAO;AACtB,kBAAiB,WAAW;AAC5B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO,wDAAwD;AAChF;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;;AAEA;AACA,4BAA2B,kBAAkB,EAAE;AAC/C;;AAEA;AACA;AACA,gBAAe,SAAS;AACxB,kBAAiB,WAAW;AAC5B;AACA;AACA;AACA,8BAA6B,eAAe,EAAE,EAAE,EAAE;AAClD;;AAEA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,SAAS;AACxB,kBAAiB,WAAW;AAC5B;AACA;AACA,sCAAqC,+BAA+B;AACpE;;AAEA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,OAAO;AACtB,kBAAiB,WAAW;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,SAAS;AACxB,gBAAe,OAAO;AACtB,kBAAiB,WAAW;AAC5B;AACA;AACA,sCAAqC,+BAA+B;AACpE;AACA,QAAO;AACP;;AAEA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,OAAO;AACtB,kBAAiB,WAAW;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,SAAS;AACxB,gBAAe,OAAO;AACtB,kBAAiB,WAAW;AAC5B;AACA;AACA,sCAAqC,+BAA+B;AACpE;AACA,QAAO;AACP;AACA,IAAG;;AAEH;;AAEA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,kBAAiB,WAAW;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,kBAAiB,WAAW;AAC5B;AACA;AACA,qDAAoD,uDAAuD;AAC3G;;AAEA;AACA;AACA,QAAO;;AAEP;AACA;AACA,QAAO;AACP;;AAEA,IAAG;;AAEH;AACA;AACA;AACA,gBAAe,SAAS;AACxB,kBAAiB,UAAU;AAC3B;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;;AAEA,0CAAyC,4BAA4B;;AAErE;AACA;AACA,oCAAmC;AACnC;AACA;;AAEA;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA,UAAS;AACT;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,sDAAqD,eAAe;AACpE;AACA,oBAAmB,uBAAuB,EAAE,OAAO,UAAU;AAC7D;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;;AAEA;;AAEA;AACA;AACA,4BAA2B;AAC3B;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,qDAAoD,cAAc;AAClE;AACA;AACA;AACA,qCAAoC,gBAAgB;AACpD;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK,8CAA8C;AACnD;AACA,MAAK;AACL;AACA,mBAAkB;AAClB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,0BAAyB;AACzB;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAK;AACL,2CAA0C,mCAAmC;AAC7E;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,QAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,QAAO;AACP;;AAEA;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,qCAAoC,SAAS;AAC7C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,sBAAqB,aAAa;AAClC;AACA;AACA,UAAS;AACT;AACA,mCAAkC,SAAS;AAC3C;AACA;AACA;AACA,QAAO;;AAEP;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,IAAI;AACnB,gBAAe,SAAS;AACxB,gBAAe,SAAS;AACxB,kBAAiB,IAAI;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,UAAU;AACzB,kBAAiB,WAAW;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,QAAO;AACP;;AAEA;AACA,IAAG;;AAEH;AACA;AACA,cAAa,IAAI;AACjB,gBAAe,aAAa;AAC5B;AACA;;AAEA,kCAAiC,2BAA2B;AAC5D,6CAA4C,oCAAoC;AAChF,6BAA4B,qCAAqC;;AAEjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA,cAAa,IAAI;AACjB,gBAAe,aAAa;AAC5B;AACA;;AAEA,yCAAwC,gCAAgC;AACxE,2CAA0C,yCAAyC;AACnF,2BAA0B,0CAA0C;;AAEpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA,gBAAe,aAAa;AAC5B;AACA;;AAEA,sDAAqD,sBAAsB;AAC3E,2CAA0C,+BAA+B;AACzE,2BAA0B,wBAAwB;;AAElD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mDAAkD,aAAa;;AAE/D;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAAyB,QAAQ;;AAEjC;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,wBAAuB,QAAQ,EAAE;AACjC;AACA,QAAO;;AAEP;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAAyB,QAAQ;;AAEjC;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA,QAAO;AACP;AACA;AACA,QAAO;AACP,MAAK;AACL;;;AAGA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAAyB,QAAQ;;AAEjC;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,cAAa;AACb;AACA,cAAa;;AAEb;AACA,YAAW;AACX;AACA,QAAO;;AAEP;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA,+BAA8B,kBAAkB;AAChD;AACA;AACA;AACA,0BAAyB,uBAAuB;AAChD,wBAAuB,QAAQ;AAC/B,iBAAgB;AAChB,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,2EAA2E;AACxF;AACA,UAAS;AACT,MAAK;AACL;;AAEA;AACA;AACA;AACA,6CAA4C;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,2BAA2B;AACpD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,6CAA4C,kCAAkC;;AAE9E;AACA;AACA,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,gBAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA,MAAK;AACL;;AAEA;AACA;AACA,cAAa,UAAU;AACvB,gBAAe,SAAS;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,IAAI;AACnB;AACA;AACA,6BAA4B,kBAAkB;AAC9C;;AAEA;AACA;AACA,gBAAe,IAAI;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,IAAI;AACnB,gBAAe,IAAI;AACnB,gBAAe,IAAI;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,IAAI;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,IAAI;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA,6BAA4B;AAC5B;;AAEA;;AAEA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,cAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,cAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,cAAa;AACb;AACA;AACA;;AAEA;AACA,qCAAoC,yCAAyC;AAC7E,qCAAoC,uCAAuC;AAC3E,qCAAoC,iBAAiB;AACrD;;AAEA;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oCAAmC,6BAA6B,EAAE;AAClE;;AAEA;AACA;AACA,oCAAmC,0BAA0B,EAAE;AAC/D;;AAEA;AACA;AACA,oCAAmC,6BAA6B,EAAE;AAClE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;;AAEA;AACA;AACA,iBAAgB,MAAM;AACtB,iBAAgB,SAAS;AACzB,iBAAgB,SAAS;AACzB,mBAAkB,UAAU;AAC5B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,IAAI;AACnB,kBAAiB,WAAW;AAC5B;AACA;AACA,mFAAkF,yBAAyB,EAAE;AAC7G;;AAEA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,IAAI;AACnB,kBAAiB,WAAW;AAC5B;AACA;AACA,yFAAwF,0BAA0B,EAAE;AACpH;;AAEA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,IAAI;AACnB,kBAAiB,WAAW;AAC5B;AACA;AACA,8FAA6F,2BAA2B,EAAE;AAC1H;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,eAAc,UAAU;AACxB,iBAAgB,WAAW;AAC3B;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,eAAc,UAAU;AACxB,iBAAgB,WAAW;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,MAAK;AACL;;AAEA;AACA;AACA,cAAa,QAAQ;AACrB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,SAAS;AACtB,gBAAe,QAAQ;AACvB;AACA;AACA;AACA,wBAAuB,2EAA2E;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA,uBAAsB,aAAa,EAAE;AACrC,uBAAsB,qBAAqB,EAAE;AAC7C;AACA;AACA;AACA,UAAS;AACT,MAAK;AACL;;AAEA;AACA;AACA;AACA,2DAA0D,qBAAqB,EAAE;AACjF,2DAA0D,4BAA4B,EAAE;AACxF,2DAA0D,EAAE;AAC5D,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kDAAiD,yCAAyC,EAAE;AAC5F,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAc;AACd,MAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAc;AACd,MAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,+CAA+C;AAC5D;AACA;;AAEA;AACA;AACA,wBAAuB,eAAe;AACtC,yBAAwB,eAAe;AACvC;AACA;;AAEA;AACA;AACA,sBAAqB,UAAU;AAC/B,6CAA4C,YAAY;AACxD;AACA,oBAAmB,UAAU;AAC7B,gCAA+B,uBAAuB;AACtD;AACA;;AAEA;AACA;AACA,cAAa,IAAI;AACjB,cAAa,SAAS;AACtB,cAAa,IAAI;AACjB,cAAa,UAAU;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,yDAAwD,eAAe,EAAE,gBAAgB,cAAc,EAAE,gBAAgB,UAAU,EAAE;AACrI,yDAAwD,eAAe,EAAE,gBAAgB,cAAc,EAAE,gBAAgB,UAAU,EAAE;AACrI,cAAa,MAAM;AACnB,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,MAAM;AACnB,cAAa,OAAO;AACpB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAa,MAAM;AACnB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAa,MAAM;AACnB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,cAAa,WAAW;AACxB,gBAAe,WAAW,EAAE,WAAW;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA,QAAO;;AAEP;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA,QAAO;;AAEP;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,SAAS;AAChD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;;AAEP;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,2CAA0C,eAAe,EAAE;AAC3D,cAAa,MAAM;AACnB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,kBAAkB;AAC/B,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kFAAiF,qBAAqB,EAAE;AACxG,oFAAmF,qBAAqB,EAAE;AAC1G,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qFAAoF,qBAAqB,EAAE;AAC3G,uFAAsF,qBAAqB,EAAE;AAC7G,gBAAe,WAAW;AAC1B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,uCAAsC,cAAc,EAAE;AACtD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA,UAAS,yCAAyC,gBAAgB,EAAE;AACpE;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,0BAAyB,qBAAqB,EAAE;AAChD,0BAAyB,SAAS;AAClC;AACA;AACA,UAAS;AACT;;AAEA;AACA,MAAK;AACL;;AAEA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,kBAAkB;AAC/B,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,MAAM;AACnB,gBAAe,WAAW;AAC1B;AACA;AACA,oDAAmD,oDAAoD;AACvG;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,+DAA8D,aAAa,EAAE,gBAAgB,cAAc,EAAE;AAC7G;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO,gBAAgB,cAAc,EAAE;AACvC;AACA;AACA,QAAO;AACP;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,6EAA4E,aAAa,EAAE,gBAAgB,cAAc,EAAE;AAC3H;AACA;AACA,UAAS;AACT,QAAO,gBAAgB,cAAc,EAAE;AACvC;AACA;AACA,QAAO;AACP;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,WAAW;AACxB,gBAAe,WAAW;AAC1B;AACA;AACA,mBAAkB,kDAAkD;AACpE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO;AACP;AACA,MAAK;AACL;;AAEA;AACA;AACA,cAAa,qBAAqB;AAClC,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO,gBAAgB,cAAc,EAAE;AACvC;AACA,QAAO;;AAEP;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAO,gBAAgB,cAAc,EAAE;AACvC;AACA,QAAO;;AAEP;AACA,MAAK;AACL;;AAEA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,6BAA4B,qCAAqC,EAAE;AACnE,6BAA4B,sCAAsC,EAAE;AACpE;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf,YAAW;AACX;AACA;AACA;AACA;AACA,YAAW;AACX;AACA,MAAK;AACL;;AAEA;AACA;AACA,cAAa,qBAAqB;AAClC,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,iBAAiB,EAAE,gBAAgB,cAAc,EAAE;AACxF;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,uEAAsE,qBAAqB,EAAE;AAC7F,yEAAwE,qBAAqB,EAAE;AAC/F,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uCAAsC,cAAc,EAAE;AACtD;AACA;AACA;AACA;;AAEA;AACA,wBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,iDAAiD;AAC5D;AACA,UAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;;AAEA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO,gBAAgB,qBAAqB,EAAE,eAAe,wBAAwB,EAAE;AACvF,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAiD,WAAW,EAAE;AAC9D,kDAAiD,cAAc,EAAE;;AAEjE;AACA;AACA,wCAAuC,qBAAqB,EAAE;AAC9D;AACA,qDAAoD,kBAAkB,EAAE;AACxE;AACA,YAAW;AACX;AACA;AACA;AACA;AACA,UAAS,yCAAyC,gBAAgB,EAAE;AACpE;AACA;AACA;;AAEA;AACA;AACA,wCAAuC,UAAU,EAAE;AACnD;AACA;AACA;;AAEA;AACA,wBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,gBAAgB,qBAAqB,EAAE;AAClD;AACA,YAAW;AACX;AACA,UAAS;AACT;;AAEA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA,kDAAiD,WAAW,EAAE;AAC9D,kDAAiD,cAAc,EAAE;;AAEjE;AACA,wCAAuC,qBAAqB,EAAE;AAC9D,8CAA6C,kBAAkB,EAAE;AACjE;AACA,UAAS,yCAAyC,gBAAgB,EAAE;AACpE;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA,YAAW,gBAAgB,qBAAqB,EAAE;AAClD;AACA,YAAW;AACX,UAAS;AACT;;AAEA;AACA,MAAK;AACL;;AAEA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA,kDAAiD,4BAA4B,EAAE;AAC/E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;;AAEA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA,6CAA4C,oBAAoB,EAAE,eAAe,cAAc,EAAE,eAAe,iBAAiB,EAAE;AACnI,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,+DAA8D,aAAa,EAAE;AAC7E,+DAA8D,aAAa,EAAE,mBAAmB,gBAAgB,EAAE;AAClH;AACA,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO,gBAAgB,cAAc,EAAE,eAAe,iBAAiB,EAAE;AACzE,MAAK;AACL;;AAEA;AACA;AACA;AACA,cAAa,oBAAoB;AACjC,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,kCAAiC,4BAA4B;AAC7D,+BAA8B,6BAA6B;AAC3D,kCAAiC,gCAAgC;AACjE;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA,oEAAmE,yBAAyB,EAAE;AAC9F;;AAEA;AACA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA,0EAAyE,0BAA0B,EAAE;AACrG;;AAEA;AACA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA,+EAA8E,2BAA2B,EAAE;AAC3G;;AAEA;AACA;AACA,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA,UAAS;AACT;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA,mDAAkD,cAAc,EAAE,eAAe,iBAAiB,EAAE;AACpG,MAAK;AACL;;AAEA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,QAAO;AACP;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA,cAAa,OAAO;AACpB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,WAAW;AACxB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,gBAAgB,EAAE;AACjE,mDAAkD,gBAAgB,EAAE;AACpE,cAAa,MAAM;AACnB,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;;AAEA;AACA,UAAS;AACT,uBAAsB,cAAc,EAAE;AACtC;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO,gBAAgB,cAAc,EAAE,eAAe,iBAAiB,EAAE;AACzE,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO,gBAAgB,cAAc,EAAE;AACvC,+BAA8B,qBAAqB;AACnD;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO,gBAAgB,cAAc,EAAE;AACvC;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA,sBAAqB,qCAAqC;AAC1D;AACA;AACA;;AAEA,qBAAoB,qCAAqC;AACzD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,0CAAyC,SAAS,OAAO,gBAAgB;AACzE;AACA;AACA;AACA,UAAS;AACT;AACA,iCAAgC,sBAAsB;AACtD;AACA,UAAS;AACT;AACA,iCAAgC,yBAAyB;AACzD;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,gDAA+C,kCAAkC,EAAE;AACnF;AACA;AACA;AACA,gDAA+C,kCAAkC,EAAE,mBAAmB,cAAc,EAAE;AACtH;AACA;AACA;AACA;AACA,cAAa,SAAS;AACtB;AACA,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT,QAAO;AACP;AACA;AACA;AACA,oCAAmC,iBAAiB,EAAE;AACtD;;AAEA;AACA;AACA,cAAa,SAAS,sDAAsD;AAC5E,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB,WAAW,yFAAyF;AACrH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,uBAAsB,qBAAqB,EAAE;AAC7C;AACA;AACA;AACA,UAAS;AACT,QAAO;AACP;;AAEA;AACA;AACA,wCAAuC,SAAS;AAChD,sCAAqC,UAAU;AAC/C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C,aAAa,EAAE;AACzD,2CAA0C,aAAa,EAAE,kBAAkB,gBAAgB,EAAE;AAC7F,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,qBAAoB,cAAc,EAAE,eAAe,iBAAiB,EAAE;AACtE,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,kDAAiD,aAAa,EAAE;AAChE,4CAA2C,aAAa,EAAE,iBAAiB,eAAe,EAAE;AAC5F,4CAA2C,aAAa,EAAE,iBAAiB,eAAe,EAAE,gBAAgB,qBAAqB,EAAE;AACnI,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAwD,aAAa,EAAE,sBAAsB,8BAA8B,EAAE;AAC7H,8CAA6C,aAAa,EAAE,iBAAiB,eAAe,EAAE,gBAAgB,8BAA8B,EAAE;AAC9I,8CAA6C,aAAa,EAAE,iBAAiB,eAAe,EAAE,gBAAgB,8BAA8B,EAAE,gBAAgB,qBAAqB,EAAE;AACrL,gBAAe,SAAS;AACxB,gBAAe,SAAS;AACxB,gBAAe,SAAS;AACxB,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,yBAAyB,iBAAiB,GAAG;AAC9E;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;;AAEA;AACA,QAAO;AACP;AACA;AACA,QAAO;AACP,kDAAiD,oBAAoB,EAAE;AACvE;AACA,QAAO;;AAEP;AACA,MAAK;AACL;;AAEA;AACA;AACA,cAAa,SAAS,+DAA+D;AACrF,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA,+FAA8F,iBAAiB,EAAE;AACjH;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,QAAO,gBAAgB,cAAc,EAAE,eAAe,iBAAiB,EAAE;AACzE,MAAK;AACL;;AAEA;AACA;AACA,cAAa,OAAO;AACpB,gBAAe,WAAW;AAC1B;AACA;AACA,mCAAkC,gBAAgB,EAAE;AACpD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,iDAAgD,kCAAkC,EAAE;AACpF;AACA;AACA;AACA,iDAAgD,kCAAkC,EAAE,mBAAmB,cAAc,EAAE;AACvH;AACA;AACA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT,QAAO;AACP;AACA;AACA;AACA,kCAAiC,iBAAiB,EAAE;AACpD;;AAEA;AACA;AACA,cAAa,SAAS,sDAAsD;AAC5E,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,MAAK;AACL;;AAEA;AACA;AACA;AACA,cAAa,SAAS,+DAA+D;AACrF,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,OAAO;AACpB,gBAAe,WAAW;AAC1B;AACA;AACA,qBAAoB,qCAAqC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO,gBAAgB,cAAc,EAAE,eAAe,iBAAiB,EAAE;AACzE,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,oDAAmD,mBAAmB,EAAE;AACxE,2DAA0D,iCAAiC,EAAE;AAC7F,cAAa,SAAS,2DAA2D;AACjF,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA,QAAO,gBAAgB,cAAc,EAAE,eAAe,iBAAiB,EAAE;AACzE,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA,qBAAoB,0CAA0C;AAC9D,uBAAsB,mCAAmC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO,gBAAgB,cAAc,EAAE,eAAe,iBAAiB,EAAE;AACzE,MAAK;AACL;;AAEA;AACA;AACA;AACA,cAAa,SAAS,2DAA2D;AACjF,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA,QAAO,gBAAgB,cAAc,EAAE,eAAe,iBAAiB,EAAE;AACzE,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,gDAA+C,mBAAmB,EAAE;AACpE,uDAAsD,iCAAiC,EAAE;AACzF,cAAa,SAAS,kEAAkE;AACxF,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,QAAO,gBAAgB,cAAc,EAAE,eAAe,iBAAiB,EAAE;AACzE,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,cAAc;AAC5C,QAAO,gBAAgB,cAAc,EAAE;AACvC;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA,0BAAyB,6CAA6C;AACtE;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAa,MAAM;AACnB,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA,UAAS;AACT,uBAAsB,cAAc,EAAE;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA,UAAS;AACT,uBAAsB,cAAc,EAAE;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS,gBAAgB,qBAAqB,EAAE;AAChD;AACA;AACA,UAAS;AACT,QAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA,sCAAqC,sBAAsB,EAAE;AAC7D;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAa,OAAO;AACpB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,uBAAsB,cAAc,EAAE;AACtC;AACA;AACA;AACA,UAAS;AACT,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,uCAAsC,cAAc,EAAE;AACtD,cAAa,SAAS;AACtB,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA,qCAAoC,kBAAkB,EAAE;AACxD;;AAEA;AACA;AACA,cAAa,IAAI;AACjB,cAAa,OAAO;AACpB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,uBAAsB,cAAc,EAAE;AACtC;AACA;AACA;AACA,UAAS;AACT,MAAK;AACL;;AAEA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA,0CAAyC,oBAAoB,EAAE;AAC/D;;AAEA;AACA;AACA;AACA,2CAA0C,gBAAgB,EAAE;AAC5D,2CAA0C,gBAAgB,EAAE,mBAAmB,cAAc,EAAE;AAC/F,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA,0DAAyD,4BAA4B,EAAE;AACvF;;AAEA;AACA;AACA;AACA;AACA,4CAA2C,0BAA0B,EAAE;AACvE,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA,6DAA4D,qBAAqB,EAAE;AACnF;;AAEA;AACA;AACA;AACA,2CAA0C,gBAAgB,EAAE;AAC5D,2CAA0C,gBAAgB,EAAE,mBAAmB,eAAe,EAAE;AAChG,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,4CAA2C,0BAA0B,EAAE;AACvE,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA,6DAA4D,qBAAqB,EAAE;AACnF;;AAEA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO,GAAG,kBAAkB;AAC5B,6BAA4B,6CAA6C;AACzE;AACA,QAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA,6CAA4C,YAAY,oBAAoB,4BAA4B,EAAE;AAC1G;AACA,gEAA+D,YAAY,oBAAoB,4BAA4B,EAAE;AAC7H,cAAa,WAAW;AACxB,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO,eAAe,cAAc,EAAE;AACtC;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA,QAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO,eAAe,cAAc,EAAE;AACtC;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,MAAK;AACL;;AAEA;AACA,qBAAoB,qCAAqC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO,gBAAgB,cAAc,EAAE;AACvC;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,QAAO,gBAAgB,cAAc,EAAE;AACvC;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kIAAiI;AACjI;AACA;AACA,2DAA0D,iBAAiB,EAAE;AAC7E,iDAAgD,iBAAiB,EAAE;AACnE;AACA;AACA,cAAa,SAAS;AACtB;AACA,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAO,gBAAgB,cAAc,EAAE;AACvC;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,iDAAgD,cAAc,EAAE;AAChE,cAAa,SAAS;AACtB,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,IAAI;AACjB,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO,gBAAgB,cAAc,EAAE;AACvC;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,SAAS;AACtB;AACA,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO,gBAAgB,cAAc,EAAE;AACvC;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,IAAI;AACjB,gBAAe,WAAW,wHAAwH;AAClJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,IAAI;AACjB,gBAAe,WAAW,+IAA+I;AACzK;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA,2CAA0C,uBAAuB;AACjE;AACA;AACA;AACA;AACA,uBAAsB,UAAU,EAAE;AAClC,uBAAsB,cAAc,EAAE;AACtC;AACA;AACA;AACA,UAAS;AACT,MAAK;AACL;;AAEA;AACA;AACA,aAAY,SAAS;AACrB,aAAY,SAAS;AACrB,eAAc,WAAW;AACzB;AACA;AACA,2CAA0C,uBAAuB;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;;AAEA;AACA,UAAS;AACT,uBAAsB,cAAc,EAAE;AACtC;AACA;AACA;AACA,UAAS;AACT,MAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA,8BAA6B,sCAAsC;AACnE,oCAAmC,uCAAuC;AAC1E,4BAA2B,8BAA8B;AACzD,6BAA4B,+BAA+B;AAC3D,0BAAyB,4BAA4B;AACrD,mCAAkC,YAAY;AAC9C,+CAA8C,qCAAqC;;AAEnF;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,gDAA+C,qBAAqB,EAAE;AACtE;AACA;;AAEA,yCAAwC,SAAS;AACjD;AACA;;AAEA;AACA,wBAAuB,QAAQ;AAC/B;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,4BAA2B,QAAQ;;AAEnC;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW;AACX,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,cAAa,SAAS;AACtB,gBAAe,SAAS;AACxB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAO;AACP;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa;AACb,YAAW;AACX;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAe,QAAQ;AACvB;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,iDAAgD,sBAAsB,EAAE;AACxE,iDAAgD,sBAAsB,EAAE;AACxE,iDAAgD,mBAAmB,EAAE;AACrE;AACA,cAAa,SAAS;AACtB,cAAa,UAAU;AACvB;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,UAAU;AACvB,cAAa,MAAM;AACnB,gBAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,MAAM;AACnB,cAAa,SAAS;AACtB,gBAAe,SAAS;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;;AAEA;AACA,YAAW;AACX;AACA;AACA,cAAa;AACb;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,MAAM;AACnB,cAAa,SAAS;AACtB,gBAAe,SAAS;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,cAAa;AACb;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,uCAAsC,SAAS;AAC/C;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA,uBAAsB,mCAAmC,EAAE;AAC3D,uBAAsB,sCAAsC,EAAE;AAC9D;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yBAAwB,0BAA0B,EAAE;AACpD,yBAAwB,2BAA2B,EAAE;AACrD;AACA;AACA;AACA;AACA,yBAAwB,0CAA0C,EAAE;AACpE,yBAAwB,6CAA6C,EAAE;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;;AAEA;AACA,UAAS;AACT,MAAK;AACL;;AAEA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,QAAO;;AAEP;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAa,WAAW;AACxB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,YAAW;AACX;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA,YAAW;AACX,yBAAwB,cAAc,EAAE;AACxC;AACA;AACA;AACA,YAAW;AACX;AACA,MAAK;AACL;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAoB;AACpB,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,WAAW;AACxB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,mCAAkC,oBAAoB;AACtD;AACA;;AAEA;;AAEA,IAAG;;AAEH;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAa,kDAAkD;AAC/D,cAAa;AACb;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;;AAEA,iBAAgB;AAChB,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW;;AAEX;AACA,UAAS;AACT;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,wBAAuB;AACvB,cAAa,WAAW;AACxB,gBAAe,WAAW;AAC1B;AACA;AACA,+BAA8B,qBAAqB;AACnD;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA,8CAA6C,wBAAwB,EAAE;;AAEvE;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA,IAAG;;;AAGH;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,QAAO;;AAEP;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA,IAAG;;AAEH;AACA;AACA,cAAa,OAAO;AACpB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,sBAAsB,EAAE,gBAAgB,UAAU,EAAE;AACjG;AACA,cAAa,iBAAiB;AAC9B;AACA;AACA;AACA;AACA,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA4C,UAAU,EAAE;AACxD;AACA,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA,mCAAkC,sBAAsB,EAAE;AAC1D;AACA;;AAEA;AACA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAgD,UAAU,EAAE;AAC5D;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA,mCAAkC,2BAA2B,EAAE;AAC/D;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAiD,+BAA+B,cAAc,EAAE,GAAG;AACnG;AACA,cAAa,SAAS;AACtB,cAAa,MAAM;AACnB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA,cAAa,MAAM;AACnB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,2BAA2B,EAAE;AACxE;AACA;AACA;AACA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA,mCAAkC,yDAAyD,EAAE;AAC7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,iBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oBAAmB,QAAQ;AAC3B;AACA,kCAAiC,kCAAkC,EAAE;AACrE;AACA;AACA;AACA;AACA;AACA,8BAA6B,QAAQ;AACrC;AACA,uEAAsE,SAAS;AAC/E;AACA;;AAEA;AACA,QAAO;AACP;AACA;AACA,kBAAiB,MAAM;AACvB;AACA;AACA;AACA,8BAA6B,QAAQ;AACrC;AACA;AACA;;AAEA,uEAAsE,SAAS;AAC/E;AACA;;AAEA;AACA,QAAO;AACP;AACA;AACA,kBAAiB,MAAM;AACvB;AACA;AACA;AACA,8BAA6B,QAAQ;AACrC;AACA,uEAAsE,SAAS;AAC/E;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,2CAA0C,SAAS;AACnD;AACA;;AAEA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,iBAAgB,OAAO;AACvB,iBAAgB,OAAO;AACvB,iBAAgB,UAAU;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oBAAmB,QAAQ;AAC3B;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,kBAAiB,MAAM;AACvB;AACA;AACA;AACA,8BAA6B,QAAQ;AACrC;AACA,sBAAqB,8BAA8B;AACnD;;AAEA;AACA,wCAAuC,SAAS;AAChD;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,kBAAiB,MAAM;AACvB;AACA;AACA;AACA,8BAA6B,QAAQ;AACrC;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,SAAS;AAChD;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA,8BAA6B,QAAQ;AACrC;AACA;AACA;AACA;AACA,wCAAuC,SAAS;AAChD;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;;AAEA,0CAAyC,6BAA6B,EAAE;AACxE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;;AAEA;AACA,IAAG;;AAEH;;AAEA;AACA;AACA;;AAEA;AACA,mCAAkC,wBAAwB;AAC1D;AACA;AACA;AACA,sCAAqC,cAAc;AACnD;AACA;AACA;AACA;;AAEA;AACA;AACA,sBAAqB,uBAAuB;AAC5C;AACA,0BAAyB,YAAY;AACrC;AACA;AACA;AACA,kCAAiC,kBAAkB;AACnD;AACA;AACA;AACA;;AAEA;AACA;AACA,yBAAwB,aAAa;AACrC,wCAAuC,SAAS;AAChD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,2BAA0B,4BAA4B;;AAEtD;AACA,uCAAsC,0BAA0B;AAChE,uCAAsC,0BAA0B;AAChE,wCAAuC,6BAA6B;AACpE,mCAAkC,oCAAoC;AACtE,qCAAoC,qCAAqC;AACzE;AACA;AACA;AACA,6CAA4C,8BAA8B;AAC1E,yCAAwC,8BAA8B;AACtE;AACA,4BAA2B,uBAAuB;;AAElD;AACA,qCAAoC,WAAW;AAC/C;AACA;AACA,MAAK;;AAEL;AACA,eAAc;AACd;;AAEA;AACA,0BAAyB,iCAAiC;AAC1D,0BAAyB,4BAA4B;;AAErD;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,kBAAiB,WAAW;AAC5B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,2BAA0B,qBAAqB;AAC/C;AACA;AACA;AACA,8CAA6C,aAAa;AAC1D;AACA,qBAAoB,+BAA+B;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAqB,yBAAyB,WAAW,uBAAuB;AAChF;AACA,sBAAqB,mBAAmB,WAAW,yCAAyC;AAC5F,kCAAiC,eAAe,WAAW,gCAAgC;AAC3F,2BAA0B,oBAAoB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gDAA+C,aAAa;AAC5D;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,4BAA2B,QAAQ;AACnC,iDAAgD,aAAa;AAC7D;AACA;AACA,sBAAqB,mBAAmB;AACxC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kEAAiE,YAAY;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,6BAA4B,oBAAoB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,wBAAuB,kCAAkC;AACzD;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA,eAAc,WAAW;AACzB,eAAc,SAAS;AACvB,eAAc,SAAS;AACvB,eAAc,SAAS;AACvB,iBAAgB,WAAW;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;;AAEA;AACA,YAAW;AACX,UAAS;AACT;AACA;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;;AAEA;AACA,YAAW;AACX,UAAS;AACT;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA,eAAc,WAAW;AACzB,eAAc,SAAS;AACvB,eAAc,SAAS;AACvB,eAAc,SAAS;AACvB,iBAAgB,WAAW;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,gCAA+B,sBAAsB,cAAc,GAAG;;AAEtE;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;;AAEA,sDAAqD,aAAa,EAAE;;AAEpE;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;;AAEA,qDAAoD,iBAAiB,EAAE;AACvE,UAAS;AACT;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA,iBAAgB,MAAM;AACtB,iBAAgB,SAAS;AACzB,mBAAkB,WAAW;AAC7B;AACA;AACA,4EAA2E,oBAAoB,EAAE;AACjG;;AAEA;AACA;AACA;AACA,eAAc,MAAM;AACpB,eAAc,SAAS;AACvB,iBAAgB,WAAW;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,QAAO;AACP;AACA;AACA,QAAO;AACP;AACA;AACA,QAAO;;AAEP;;AAEA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,QAAO;AACP;AACA;AACA,QAAO;;AAEP;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,QAAO;AACP;AACA;AACA,QAAO;;AAEP;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,SAAS;AACtB;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,uCAAsC,0CAA0C,EAAE;AAClF;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,6BAA6B;AACxC,YAAW;AACX,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,WAAW;AACxB,cAAa,WAAW;AACxB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA,cAAa,MAAM;AACnB,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,WAAW;AACxB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,WAAW;AACxB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,+CAA8C,uBAAuB;AACrE,+CAA8C,uBAAuB;AACrE,+CAA8C,uBAAuB;AACrE;AACA,cAAa,SAAS;AACtB,cAAa,MAAM;AACnB,cAAa,WAAW;AACxB;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,YAAW;AACX;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wBAAuB,aAAa;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC,YAAY;AAC5C,2CAA0C,QAAQ;AAClD;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,UAAS;AACT;;AAEA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA,cAAa,WAAW;AACxB,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA,gBAAe;AACf;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,cAAa;AACb;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA,MAAK;AACL;;AAEA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,OAAO;AACpB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,UAAS;AACT;AACA;AACA,yBAAwB,2BAA2B,EAAE;AACrD,wBAAuB,8BAA8B;AACrD;AACA;AACA;AACA,MAAK;AACL;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAO;;AAEP;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA,MAAK;;AAEL;;AAEA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,+CAA8C,SAAS;AACvD;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,QAAQ;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAc,SAAS;AACvB,gBAAe,KAAK;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2DAA0D,SAAS;AACnE;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA,MAAK;AACL,mDAAkD,UAAU;AAC5D;AACA;AACA;AACA,MAAK;AACL,4CAA2C,SAAS;AACpD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yDAAwD,SAAS;AACjE;AACA;AACA;AACA;;AAEA;AACA,8CAA6C,iBAAiB,EAAE;AAChE;;AAEA;AACA;AACA,qDAAoD,SAAS;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAsD,SAAS;AAC/D;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,8CAA6C,wBAAwB;AACrE;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAiD,SAAS;AAC1D;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,gBAAe,QAAQ;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAgB,KAAK;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAgB,WAAW;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAsD,gBAAgB,EAAE;AACxE;AACA,UAAS;AACT;AACA;AACA;AACA,4CAA2C,SAAS;AACpD;AACA;AACA;AACA;AACA,YAAW;AACX;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;;AAEP;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,QAAO;AACP;AACA;AACA,QAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,MAAM;AACnB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,mBAAkB,yEAAyE;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA,cAAa;AACb;AACA;AACA,QAAO;AACP;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX,UAAS;AACT;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,MAAM;AACnB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,0CAAyC,SAAS,OAAO,gBAAgB;AACzE,UAAS;AACT;AACA,0CAAyC,SAAS,OAAO,iBAAiB;AAC1E;AACA,UAAS;AACT;AACA,0CAAyC,SAAS,OAAO,oBAAoB;AAC7E;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iCAAgC,QAAQ;AACxC;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,sDAAqD;AACrD,0DAAyD;AACzD;AACA,gBAAe,OAAO;AACtB,gBAAe,MAAM;AACrB,gBAAe,UAAU;AACzB,kBAAiB,WAAW;AAC5B;AACA;AACA,oFAAmF,oBAAoB,EAAE;AACzG;;AAEA;AACA;AACA;AACA;AACA,0DAAyD;AACzD,qEAAoE;AACpE;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,UAAU;AACzB,kBAAiB,WAAW;AAC5B;AACA;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB;AAChB,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,oCAAmC,cAAc;AACjD;AACA;AACA,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA,eAAc;AACd,MAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA,UAAS;AACT;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,iDAAgD;AAChD,qCAAoC;AACpC,2DAA0D;AAC1D;AACA,cAAa,MAAM;AACnB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,WAAW;AACxB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,yBAAwB,oBAAoB,EAAE;AAC9C,yBAAwB,cAAc,EAAE;AACxC,yBAAwB,UAAU,EAAE;AACpC,yBAAwB,mBAAmB;AAC3C,QAAO;AACP;AACA,cAAa,MAAM;AACnB,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,yBAAwB,oBAAoB,EAAE;AAC9C,yBAAwB,cAAc,EAAE;AACxC,yBAAwB,UAAU,EAAE;AACpC,yBAAwB,YAAY;AACpC;AACA;AACA,cAAa,MAAM;AACnB,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,gDAA+C;AAC/C,sEAAqE;AACrE;AACA,cAAa,OAAO;AACpB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wDAAuD,iCAAiC,EAAE,EAAE;AAC5F,mFAAkF,+BAA+B,EAAE,EAAE;AACrH;AACA,cAAa,WAAW;AACxB,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA,gDAA+C,wBAAwB;AACvE,UAAS;AACT;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA,gBAAe;AACf,YAAW;AACX;AACA;AACA;AACA,YAAW;AACX;;AAEA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA,MAAK;AACL;;AAEA;AACA;AACA,gBAAe,WAAW;AAC1B,gBAAe,SAAS;AACxB,gBAAe,WAAW;AAC1B,kBAAiB,WAAW;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA,YAAW;AACX;AACA,YAAW;AACX;;AAEA;;AAEA;AACA;AACA,qBAAoB,MAAM;AAC1B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA,UAAS;AACT;AACA,UAAS;AACT;AACA,QAAO;AACP;;AAEA;AACA;AACA,cAAa,SAAS;AACtB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,UAAS;AACT,QAAO;AACP;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB,0BAA0B;AAC1C;AACA;AACA;AACA,QAAO,gBAAgB,cAAc,EAAE;AACvC;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB,0BAA0B;AAC1C;AACA;AACA;AACA,QAAO,gBAAgB,cAAc,EAAE;AACvC;AACA;AACA;AACA,iDAAgD,sBAAsB;AACtE;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB,0BAA0B;AAC1C;AACA;AACA;AACA,QAAO,gBAAgB,cAAc,EAAE;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA,4FAA2F,iBAAiB,EAAE;AAC9G,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA8D,aAAa,EAAE;AAC7E,wCAAuC,4BAA4B,EAAE;AACrE,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,YAAY;AACzB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,4DAA2D,aAAa,EAAE;AAC1E;AACA,yBAAwB,qBAAqB,EAAE;AAC/C,yBAAwB,cAAc,EAAE,eAAe,iBAAiB,EAAE;AAC1E,MAAK;AACL;;AAEA;AACA;AACA,cAAa,cAAc;AAC3B,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAAyD,iBAAiB,EAAE;AAC5E;AACA,MAAK;AACL;;AAEA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,UAAU;AACvB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA,yBAAwB,sEAAsE;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS,eAAe,cAAc,EAAE,eAAe,iBAAiB;AACxE;AACA,MAAK;AACL;;AAEA;AACA;AACA,cAAa,WAAW;AACxB,gBAAe,WAAW;AAC1B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,UAAS;AACT;AACA,qBAAoB,wBAAwB;AAC5C;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;;AAET;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,IAAI;AACjB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;;AAEA;AACA,gBAAe;AACf,6BAA4B,qBAAqB,EAAE;AACnD;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe;AACf;AACA,UAAS;AACT,uBAAsB,qBAAqB,EAAE;AAC7C;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB;AACA;;AAEA;AACA;AACA,gBAAe,IAAI;AACnB,kBAAiB,OAAO;AACxB;AACA;;AAEA;AACA;AACA,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB;AACA;;AAEA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,kBAAiB,WAAW;AAC5B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,kBAAiB,WAAW;AAC5B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,kBAAiB,WAAW;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;AACA,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA,4BAA2B,qCAAqC;AAChE,8BAA6B,SAAS;;AAEtC;AACA;;AAEA;AACA;AACA,gBAAe,OAAO;AACtB;AACA;AACA;AACA,gDAA+C,qCAAqC;;AAEpF;AACA;;AAEA;AACA;AACA,kBAAiB,cAAc;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,UAAU;AACzB,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,kBAAiB,WAAW;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,kBAAiB,WAAW;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA,oEAAmE,mBAAmB;;AAEtF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA;AACA;;AAEA,mEAAkE,6BAA6B;AAC/F,8DAA6D,+BAA+B;;AAE5F;AACA;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oBAAmB,QAAQ;AAC3B;AACA,kCAAiC,kCAAkC,EAAE;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C,SAAS;AACnD;AACA;;AAEA;AACA;AACA,QAAO;AACP;AACA;AACA,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C,SAAS;AACnD;AACA;;AAEA;AACA;AACA,QAAO;AACP;AACA;AACA,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA,2CAA0C,SAAS;AACnD;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,WAAW;AAC1B,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAO;AACP;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oBAAmB,QAAQ;AAC3B;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA,YAAW;AACX,wBAAuB,SAAS;AAChC;AACA;AACA;;AAEA;AACA;AACA,QAAO;AACP;AACA;AACA,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2CAA0C,SAAS;AACnD;AACA;;AAEA;AACA;AACA,QAAO;AACP;AACA;AACA,kBAAiB,MAAM;AACvB;AACA;AACA;AACA,8BAA6B,QAAQ;AACrC;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,MAAK;;AAEL;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,2CAA0C,oBAAoB;;AAE9D;AACA;AACA;AACA,4CAA2C,mBAAmB;;AAE9D;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA,MAAK;AACL,IAAG;AACH;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;;AAEA,EAAC;;;;;;;;;;;ACpgTD;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qCAAoC;AACpC,MAAK;AACL;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;;;;;;;;AC5BA;;AAEA;;;;;;;;;;ACFA;;AAEA;;;;;;;;;;ACFA;;AAEA;;;;;;;;;;ACFA;;AAEA;;;;;;;;;;ACFA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,kBAAiB;AACjB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,oBAAmB,SAAS;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,wBAAuB,SAAS;AAChC;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4BAA2B,SAAS;AACpC;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,oBAAmB;;AAEnB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,gBAAe,qBAAqB;AACpC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA,MAAK;AACL;AACA;AACA;;;;;;;;;;AClUA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,0BAAyB;AACzB;AACA;AACA;AACA;;AAEA,oBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,wBAAuB,sBAAsB;AAC7C;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;AC3EA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL,wBAAuB,cAAc;AACrC;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;;;;;;;;;;ACtIA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,oBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;AC7CA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;AC1BA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;ACXA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2DAA0D,QAAQ;;AAElE;AACA,yCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gCAA+B,oDAAoD;AACnF;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,8CAA6C,gCAAgC,EAAE;AAC/E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAgB,QAAQ;AACxB,8CAA6C,QAAQ;AACrD,sEAAqE,QAAQ;AAC7E,2DAA0D,QAAQ;;AAElE;AACA,qCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;;AC3HA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA,cAAa;AACb;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa;AACb;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA;AACA;;;;;;;;;;AChGA;;AAEA;;AAEA;AACA;AACA;;;;;;;;;;ACNA;;AAEA;;AAEA;AACA;AACA;;;;;;;;;;ACNA;;AAEA;AACA;AACA;;;;;;;;;;ACJA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;ACvCA;AACA;AACA;;AAEA;AACA;AACA,EAAC;AACD;;AAEA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;ACdA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA,4BAA2B,0BAA0B;AACrD;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA,UAAS;AACT;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;;;;;;;;ACpFA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,gBAAe,SAAS;AACxB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;ACtLA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,oBAAmB,WAAW;AAC9B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;ACvEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;;;;;;;;;ACTA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;;ACNA;;AAEA;AACA;AACA;;;;;;;;;;ACJA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,gBAAe,qBAAqB;AACpC;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,UAAS;AACT;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;ACrDA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;;AChBA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;;;;;;;;;AC1BA;AACA;;AAEA;;AAEA;AACA;AACA;;;;;;;;;;ACPA,gB;;;;;;;;;ACAA;;;;;;;;;;ACAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;ACrBA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA;AACA;;;;;;;;;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACTA;;AAEA;AACA;AACA;;;;;;;;;;ACJA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,sBAAqB;AACrB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,4BAA2B;AAC3B;AACA;AACA;AACA,6BAA4B,UAAU;;;;;;;;;;ACzDtC;;AAEA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;;;;;;;;;;ACdA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;;;;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,cAAc;AACzB,YAAW,OAAO;AAClB,cAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAqD;AACrD;AACA;AACA;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,0BAA0B;AACrD;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA,EAAC;;;;;;;;;;ACzGD;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;ACrBA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 6873bc1e9fb555fe8d3d\n **/","import Cycle from 'cyclejs';\n\nimport Model from './model';\nimport View from './view';\nimport Intent from './intent';\nimport InitialModel from './initial';\n\nvar User = Cycle.createDOMUser(document.body);\n\nUser.inject(View);\nView.inject(Model);\nModel.inject(Intent, InitialModel);\nIntent.inject(User);\n\n\n/** WEBPACK FOOTER **\n ** c:/projects/todomvp/src/app.js\n **/","import Cycle from 'cyclejs';\r\nimport _ from 'lodash';\r\n\r\nfunction calculatePurchaseOptions(model) {\r\n var {servingSize, sortBy} = model,\r\n pizzas = _.sortBy(model.selectedMenu, 'diameter').reverse(),\r\n numServings = _(model.eaters).map('servings').reduce((sum, num) => sum + num) || 0,\r\n totalSize = numServings * servingSize;\r\n\r\n function updateTotal(option) {\r\n option.total = _(option.pizzas)\r\n .map('diameter')\r\n .map(d => d / 2)\r\n .map(r => r * r)\r\n .map(r2 => r2 * Math.PI)\r\n .reduce((sum, area) => area + sum);\r\n }\r\n\r\n function addPizza(option, options, index) {\r\n index = index || 0;\r\n if (option.total > totalSize) {\r\n options.push(option);\r\n } else {\r\n for (let i = index; i < pizzas.length; ++i) {\r\n var newOp = {pizzas: _.clone(option.pizzas)};\r\n newOp.pizzas.push(pizzas[i]);\r\n updateTotal(newOp);\r\n addPizza(newOp, options, i);\r\n }\r\n }\r\n return options;\r\n }\r\n\r\n model.numServings = numServings;\r\n model.purchaseOptions = _(addPizza({pizzas: [], total: 0}, []))\r\n .tap(options => console.log(`Found ${options.length} options`))\r\n .forEach(option => {\r\n option.cost = _(option.pizzas)\r\n .map('cost')\r\n .reduce((sum, cost) => sum + cost);\r\n option.ratio = option.cost / option.total;\r\n })\r\n .sortBy('ratio')\r\n .forEach((option, index) => option.order = index + 1)\r\n .sortBy('total')\r\n .forEach((option, index) => option.order += index)\r\n .sortBy(sortBy)\r\n .take(10)\r\n .sortBy('total')\r\n .tap(options => options.length && (options[options.length - 1].mostPizza = true))\r\n .sortBy('ratio')\r\n .tap(options => options.length && (options[0].bestDeal = true))\r\n .sortBy(sortBy)\r\n .value();\r\n}\r\n\r\nvar Model = Cycle.createModel((Intent, Initial) => {\r\n\r\n var sortByMod$ = Intent.get('sortBy$')\r\n .map(sortBy => model => {\r\n model.sortBy = sortBy;\r\n return model;\r\n });\r\n\r\n var menuMod$ = Intent.get('selectMenu$')\r\n .map(name => model => {\r\n model.selectedMenu = model.menus[name];\r\n return model;\r\n });\r\n\r\n var eaterMod$ = Intent.get('eaterUpdate$')\r\n .map(data => model => {\r\n model.eaters[data.id].servings = Math.max(data.servings, 0);\r\n return model;\r\n });\r\n\r\n var eaterAdd$ = Intent.get('eaterAdd$')\r\n .map(data => model => {\r\n model.eaters.push({name: data.name, servings: data.servings});\r\n return model;\r\n });\r\n\r\n var modifications$ = Rx.Observable.merge(\r\n sortByMod$, menuMod$, eaterMod$, eaterAdd$\r\n );\r\n\r\n return {\r\n model$: modifications$\r\n .merge(Initial.get('model$'))\r\n .scan(function (model, modFn) { return modFn(model); })\r\n .tap(calculatePurchaseOptions)\r\n //.combineLatest(route$, determineFilter)\r\n .share()\r\n }\r\n});\r\n\r\nexport default Model;\n\n\n/** WEBPACK FOOTER **\n ** c:/projects/todomvp/src/model.js\n **/","import Cycle from 'cyclejs';\r\nimport _ from 'lodash';\r\n\r\nfunction renderOptions(model) {\r\n return [\r\n Cycle.h('h2', 'Let\\'s get one of these:'),\r\n Cycle.h('table', [\r\n Cycle.h('thead', [\r\n Cycle.h('tr', [\r\n Cycle.h('th', 'Pizzas'),\r\n Cycle.h('th', {\r\n attributes: {'data-order': 'total'},\r\n className: model.sortBy === 'total' ? 'active' : ''\r\n }, 'Servings'),\r\n Cycle.h('th', {\r\n attributes: {'data-order': 'cost'},\r\n className: model.sortBy === 'cost' ? 'active' : ''\r\n }, 'Cost'),\r\n Cycle.h('th', {\r\n attributes: {'data-order': 'order'},\r\n className: model.sortBy === 'order' ? 'active' : ''\r\n }, 'PizzaRank™'),\r\n ])\r\n ]),\r\n Cycle.h('tbody', model.purchaseOptions.map(renderOption.bind(this, model.servingSize)))\r\n ])\r\n ];\r\n}\r\n\r\nfunction renderOption(servingSize, option) {\r\n return Cycle.h('tr', [\r\n Cycle.h('td', _(option.pizzas)\r\n .groupBy('name')\r\n .map((arr, name) => `${arr.length} ${name}`)\r\n .value()\r\n .join(', ')),\r\n Cycle.h('td', [\r\n option.mostPizza ? Cycle.h('span.most-pizza', {title: 'Most Pizza!'}) : null,\r\n `${Math.round(option.total / servingSize * 100) / 100}`\r\n ]),\r\n Cycle.h('td', `${Math.round(option.cost * 100) / 100}`),\r\n Cycle.h('td', [\r\n option.bestDeal ? Cycle.h('span.best-deal', {title: 'Best Deal!'}) : null,\r\n `${option.order}`\r\n ])\r\n ]);\r\n}\r\n\r\nfunction renderMenuSelection(model) {\r\n return [\r\n Cycle.h('h2', `Where are we ordering ${model.numServings} slices from?`),\r\n Cycle.h('select.menu', _.map(model.menus, (menu, name) =>\r\n Cycle.h('option', name)))\r\n ];\r\n}\r\n\r\nfunction renderEaters(model) {\r\n return [\r\n Cycle.h('h2', 'Who\\'s eating?'),\r\n Cycle.h('ul', [\r\n model.eaters.map(renderEater),\r\n Cycle.h('li', Cycle.h('input.new-eater'))\r\n ])\r\n ];\r\n}\r\n\r\nfunction renderEater(eater) {\r\n return Cycle.h('li', [\r\n Cycle.h('span', `${eater.name}: ${eater.servings} slice${eater.servings === 1 ? '' : 's'}`)\r\n ]);\r\n}\r\n\r\nvar View = Cycle.createView(Model =>\r\n ({\r\n vtree$: Model.get('model$').map(model =>\r\n Cycle.h('div', [\r\n Cycle.h('h1', 'TODO: Minimum Viable Pizza'),\r\n renderEaters(model),\r\n renderMenuSelection(model),\r\n renderOptions(model)\r\n ]))\r\n })\r\n);\r\n\r\nexport default View;\n\n\n/** WEBPACK FOOTER **\n ** c:/projects/todomvp/src/view.js\n **/","import Cycle from 'cyclejs';\r\n\r\nvar Intent = Cycle.createIntent(User => ({\r\n\r\n sortBy$: User.event$('th', 'click').map(\r\n ev => ev.target.getAttribute('data-order')\r\n ).filter(order => !!order),\r\n\r\n selectMenu$: User.event$('.menu', 'change').map(\r\n ev => ev.target.options[ev.target.selectedIndex].value\r\n ),\r\n\r\n eaterAdd$: User.event$('.new-eater', 'keypress').filter(ev => ev.keyCode === 13).map(\r\n ev => ev.target.value.match(/(.*):\\s*(\\d+)/)\r\n ).filter(match => match).map(\r\n match => ({name: match[1], servings: parseInt(match[2], 10)})\r\n ),\r\n\r\n eaterUpdate$: User.event$('.edit-servings', 'keypress').filter(ev => ev.keyCode === 13).map(\r\n ev => ({id: ev.target.getAttribute('data-id'), servings: parseInt(ev.target.value, 10)})\r\n ).filter(update => !isNan(update.servings))\r\n\r\n}));\r\n\r\nexport default Intent;\n\n\n/** WEBPACK FOOTER **\n ** c:/projects/todomvp/src/intent.js\n **/","import Cycle from 'cyclejs';\r\n\r\n/* Monte Cellos scrape function - doesn't grab cost\r\n\r\n $('#pizza h4')\r\n .map(function(ind, e) { return e.innerText })\r\n .map(function(ind, txt) {\r\n var matches = txt.match(/(.+) - (\\d+)\"/);\r\n return matches && {name: matches[1], diameter: parseInt(matches[2], 10) };\r\n })\r\n .filter(function(ind, match) { return !!match; });\r\n\r\n */\r\n\r\nvar menus = (window && window.menus) || [\r\n {\r\n _id: '54fca86fe976eead6c54544c',\r\n name: 'Monte Cellos Local',\r\n pizzas: [\r\n {name: 'Large', diameter: 16, cuts: 10, cost: 12.95},\r\n {name: 'Medium', diameter: 14, cost: 9.95},\r\n {name: 'Small', diameter: 12, cost: 8.95}\r\n ]\r\n },\r\n {\r\n _id: '54fca8a1e976eead6c54544d',\r\n name: 'Pizza Parma Local',\r\n pizzas: [\r\n {name: 'XLarge', diameter: 18, cost: 13.99},\r\n {name: 'Large', diameter: 16, cost: 12.99},\r\n {name: 'Medium', diameter: 14, cost: 10.99},\r\n {name: 'Small', diameter: 10, cost: 8.99}\r\n ]\r\n }\r\n ];\r\n\r\nvar gathering = (window && window.gathering) || {\r\n eaters: [\r\n {name: 'Doug MG', servings: 3},\r\n {name: 'Woolner MG', servings: 4},\r\n {name: 'CMG MG', servings: 4},\r\n {name: 'Gabo MG', servings: 3}\r\n ],\r\n servingSize: 20.10,\r\n menu: '54fca86fe976eead6c54544c'\r\n };\r\n\r\nfunction getDefaultServing() {\r\n return Math.floor(Math.pow(menus[0][0].diameter / 2, 2) * Math.PI * 100 / menus[0][0].cuts) / 100;\r\n}\r\n\r\nvar ModelSource = Cycle.createDataFlowSource({\r\n model$: Rx.Observable.just(gathering)\r\n});\r\n\r\nexport default ModelSource;\n\n\n/** WEBPACK FOOTER **\n ** c:/projects/todomvp/src/initial.js\n **/","'use strict';\nvar VirtualDOM = require('virtual-dom');\nvar Rx = require('rx');\nvar DataFlowNode = require('./data-flow-node');\nvar DataFlowSource = require('./data-flow-source');\nvar DataFlowSink = require('./data-flow-sink');\nvar DOMUser = require('./dom-user');\nvar PropertyHook = require('./property-hook');\n\nvar Cycle = {\n /**\n * Creates a DataFlowNode based on the given `definitionFn`. The `definitionFn`\n * function will be executed immediately on create, and the resulting DataFlowNode\n * outputs will be synchronously available. The inputs are asynchronously injected\n * later with the `inject()` function on the DataFlowNode.\n *\n * @param {Function} definitionFn a function expecting DataFlowNodes as parameters.\n * This function should return an object containing RxJS Observables as properties.\n * The input parameters can also be plain objects with Observables as properties.\n * @return {DataFlowNode} a DataFlowNode, containing a `inject(inputs...)` function.\n */\n createDataFlowNode: function createDataFlowNode(definitionFn) {\n return new DataFlowNode(definitionFn);\n },\n\n /**\n * Creates a DataFlowSource. It receives an object as argument, and outputs that same\n * object, annotated as a DataFlowSource. For all practical purposes, a DataFlowSource\n * is just a regular object with RxJS Observables, but for consistency with other\n * components in the framework such as DataFlowNode, the returned object is an instance\n * of DataFlowSource.\n *\n * @param {Object} outputObject an object containing RxJS Observables.\n * @return {DataFlowSource} a DataFlowSource equivalent to the given outputObject\n */\n createDataFlowSource: function createDataFlowSource(outputObject) {\n return new DataFlowSource(outputObject);\n },\n\n /**\n * Creates a DataFlowSink, given a definition function that receives injected inputs.\n *\n * @param {Function} definitionFn a function expecting some DataFlowNode(s) as\n * arguments. The function should subscribe to Observables of the input DataFlowNodes\n * and should return a `Rx.Disposable` subscription.\n * @return {DataFlowSink} a DataFlowSink, containing a `inject(inputs...)` function.\n */\n createDataFlowSink: function createDataFlowSink(definitionFn) {\n return new DataFlowSink(definitionFn);\n },\n\n /**\n * Returns a DataFlowNode representing a Model, having some Intent as input.\n *\n * Is a specialized case of `createDataFlowNode()`, with the same API.\n *\n * @param {Function} definitionFn a function expecting an Intent DataFlowNode as\n * parameter. Should return an object containing RxJS Observables as properties.\n * @return {DataFlowNode} a DataFlowNode representing a Model, containing a\n * `inject(intent)` function.\n * @function createModel\n */\n createModel: require('./create-model'),\n\n /**\n * Returns a DataFlowNode representing a View, having some Model as input.\n *\n * Is a specialized case of `createDataFlowNode()`.\n *\n * @param {Function} definitionFn a function expecting a Model object as parameter.\n * Should return an object containing RxJS Observables as properties. The object **must\n * contain** property `vtree$`, an Observable emitting instances of VTree\n * (Virtual DOM elements).\n * @return {DataFlowNode} a DataFlowNode representing a View, containing a\n * `inject(model)` function.\n * @function createView\n */\n createView: require('./create-view'),\n\n /**\n * Returns a DataFlowNode representing an Intent, having some View as input.\n *\n * Is a specialized case of `createDataFlowNode()`.\n *\n * @param {Function} definitionFn a function expecting a View object as parameter.\n * Should return an object containing RxJS Observables as properties.\n * @return {DataFlowNode} a DataFlowNode representing an Intent, containing a\n * `inject(view)` function.\n * @function createIntent\n */\n createIntent: require('./create-intent'),\n\n /**\n * Returns a DOMUser (a DataFlowNode) bound to a DOM container element. Contains an\n * `inject` function that should be called with a View as argument. Events coming from\n * this user can be listened using `domUser.event$(selector, eventName)`. Example:\n * `domUser.event$('.mybutton', 'click').subscribe( ... )`\n *\n * @param {(String|HTMLElement)} container the DOM selector for the element (or the\n * element itself) to contain the rendering of the VTrees.\n * @return {DOMUser} a DOMUser object containing functions `inject(view)` and\n * `event$(selector, eventName)`.\n * @function createDOMUser\n */\n createDOMUser: function createDOMUser(container) {\n return new DOMUser(container);\n },\n\n /**\n * Informs Cycle to recognize the given `tagName` as a custom element implemented\n * as `dataFlowNode` whenever `tagName` is used in VTrees in a View rendered to a\n * DOMUser.\n * The given `dataFlowNode` must export a `vtree$` Observable. If the `dataFlowNode`\n * expects Observable `foo$` as input, then the custom element's attribute named `foo`\n * will be injected automatically into `foo$`.\n *\n * @param {String} tagName a name for identifying the custom element.\n * @param {Function} definitionFn the implementation for the custom element. This\n * function takes two arguments: `User`, and `Properties`. Use `User` to inject into an\n * Intent and to be injected a View. `Properties` is a DataFlowNode containing\n * observables matching the custom element properties.\n * @function registerCustomElement\n */\n registerCustomElement: function registerCustomElement(tagName, definitionFn) {\n DOMUser.registerCustomElement(tagName, definitionFn);\n },\n\n /**\n * Returns a hook for manipulating an element from the real DOM. This is a helper for\n * creating VTrees in Views. Useful for calling `focus()` on the DOM element, or doing\n * similar mutations.\n *\n * See https://github.com/Raynos/mercury/blob/master/docs/faq.md for more details.\n *\n * @param {Function} fn a function with two arguments: `element`, `property`.\n * @return {PropertyHook} a hook\n */\n vdomPropHook: function (fn) {\n return new PropertyHook(fn);\n },\n\n /**\n * A shortcut to the root object of [RxJS](https://github.com/Reactive-Extensions/RxJS).\n * @name Rx\n */\n Rx: Rx,\n\n /**\n * A shortcut to [virtual-hyperscript](\n * https://github.com/Matt-Esch/virtual-dom/tree/master/virtual-hyperscript).\n * This is a helper for creating VTrees in Views.\n * @name h\n */\n h: VirtualDOM.h\n};\n\nmodule.exports = Cycle;\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/src/cycle.js\n ** module id = 5\n ** module chunks = 0\n **/","'use strict';\nvar Rx = require('rx');\nvar errors = require('./errors');\nvar InputProxy = require('./input-proxy');\nvar Utils = require('./utils');\nvar CycleInterfaceError = errors.CycleInterfaceError;\n\nfunction replicate(source, subject) {\n if (typeof source === 'undefined') {\n throw new Error('Cannot replicate() if source is undefined.');\n }\n return source.subscribe(\n function replicationOnNext(x) {\n subject.onNext(x);\n },\n function replicationOnError(err) {\n subject.onError(err);\n console.error(err);\n }\n );\n}\n\nfunction checkOutputObject(output) {\n if (typeof output !== 'object') {\n throw new Error('A DataFlowNode should always return an object.');\n }\n}\n\nfunction createStreamNamesArray(output) {\n var array = [];\n for (var streamName in output) { if (output.hasOwnProperty(streamName)) {\n if (Utils.endsWithDollarSign(streamName)) {\n array.push(streamName);\n }\n }}\n return array;\n}\n\nvar replicateAll;\n\nfunction DataFlowNode(definitionFn) {\n if (arguments.length !== 1 || typeof definitionFn !== 'function') {\n throw new Error('DataFlowNode expects the definitionFn as the only argument.');\n }\n var proxies = [];\n for (var i = 0; i < definitionFn.length; i++) {\n proxies[i] = new InputProxy();\n }\n var wasInjected = false;\n var output = definitionFn.apply(this, proxies);\n checkOutputObject(output);\n this.outputStreams = createStreamNamesArray(output);\n this.get = function get(streamName) {\n return output[streamName] || null;\n };\n this.clone = function clone() {\n return new DataFlowNode(definitionFn);\n };\n this.inject = function inject() {\n if (wasInjected) {\n console.warn('DataFlowNode has already been injected an input.');\n }\n if (definitionFn.length !== arguments.length) {\n console.warn('The call to inject() should provide the inputs that this ' +\n 'DataFlowNode expects according to its definition function.');\n }\n for (var i = 0; i < definitionFn.length; i++) {\n replicateAll(arguments[i], proxies[i]);\n }\n wasInjected = true;\n if (arguments.length === 1) {\n return arguments[0];\n } else if (arguments.length > 1) {\n return Array.prototype.slice.call(arguments);\n } else {\n return null;\n }\n };\n return this;\n}\n\nfunction replicateAllEvent$(input, selector, proxyObj) {\n for (var eventName in proxyObj) { if (proxyObj.hasOwnProperty(eventName)) {\n if (eventName !== '_hasEvent$') {\n var event$ = input.event$(selector, eventName);\n if (event$ !== null) {\n replicate(event$, proxyObj[eventName]);\n }\n }\n }}\n}\n\nreplicateAll = function replicateAll(input, proxy) {\n if (!input || !proxy) { return; }\n\n for (var key in proxy.proxiedProps) { if (proxy.proxiedProps.hasOwnProperty(key)) {\n var proxiedProperty = proxy.proxiedProps[key];\n if (typeof input.event$ === 'function' && proxiedProperty._hasEvent$) {\n replicateAllEvent$(input, key, proxiedProperty);\n } else if (!input.hasOwnProperty(key) && input instanceof InputProxy) {\n replicate(input.get(key), proxiedProperty);\n } else if (typeof input.get === 'function' && input.get(key) !== null) {\n replicate(input.get(key), proxiedProperty);\n } else if (typeof input === 'object' && input.hasOwnProperty(key)) {\n if (!input[key]) {\n input[key] = new Rx.Subject();\n }\n replicate(input[key], proxiedProperty);\n } else {\n throw new CycleInterfaceError('Input should have the required property ' +\n key, String(key)\n );\n }\n }}\n};\n\nmodule.exports = DataFlowNode;\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/src/data-flow-node.js\n ** module id = 6\n ** module chunks = 0\n **/","'use strict';\n\nfunction DataFlowSource(outputObject) {\n if (arguments.length !== 1) {\n throw new Error('DataFlowSource expects only one argument: the output object.');\n }\n if (typeof outputObject !== 'object') {\n throw new Error('DataFlowSource expects the constructor argument to be the ' +\n 'output object.'\n );\n }\n\n for (var key in outputObject) { if (outputObject.hasOwnProperty(key)) {\n this[key] = outputObject[key];\n }}\n this.inject = function injectDataFlowSource() {\n throw new Error('A DataFlowSource cannot be injected. Use a DataFlowNode instead.');\n };\n return this;\n}\n\nmodule.exports = DataFlowSource;\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/src/data-flow-source.js\n ** module id = 7\n ** module chunks = 0\n **/","'use strict';\n\nfunction makeLightweightInputProxies(args) {\n return Array.prototype\n .slice.call(args)\n .map(function (arg) {\n return {\n get: function get(streamName) {\n if (typeof arg.get === 'function') {\n return arg.get(streamName);\n } else {\n return arg[streamName] || null;\n }\n }\n };\n });\n}\n\nfunction DataFlowSink(definitionFn) {\n if (arguments.length !== 1) {\n throw new Error('DataFlowSink expects only one argument: the definition function.');\n }\n if (typeof definitionFn !== 'function') {\n throw new Error('DataFlowSink expects the argument to be the definition function.');\n }\n definitionFn.displayName += '(DataFlowSink defFn)';\n this.inject = function injectIntoDataFlowSink() {\n var proxies = makeLightweightInputProxies(arguments);\n return definitionFn.apply({}, proxies);\n };\n return this;\n}\n\nmodule.exports = DataFlowSink;\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/src/data-flow-sink.js\n ** module id = 8\n ** module chunks = 0\n **/","'use strict';\nvar VDOM = {\n h: require('virtual-dom').h,\n diff: require('virtual-dom/diff'),\n patch: require('virtual-dom/patch')\n};\nvar Rx = require('rx');\nvar DataFlowNode = require('./data-flow-node');\nvar CustomElements = require('./custom-elements');\n\nfunction isElement(o) {\n return (\n typeof HTMLElement === 'object' ?\n o instanceof HTMLElement || o instanceof DocumentFragment : //DOM2\n o && typeof o === 'object' && o !== null &&\n (o.nodeType === 1 || o.nodeType === 11) &&\n typeof o.nodeName === 'string'\n );\n}\n\nfunction getArrayOfAllWidgetRootElemStreams(vtree) {\n if (vtree.type === 'Widget' && vtree._rootElem$) {\n return [vtree._rootElem$];\n }\n // Or replace children recursively\n var array = [];\n if (Array.isArray(vtree.children)) {\n for (var i = vtree.children.length - 1; i >= 0; i--) {\n array = array.concat(getArrayOfAllWidgetRootElemStreams(vtree.children[i]));\n }\n }\n return array;\n}\n\nfunction defineRootElemStream(user) {\n // Create rootElem stream and automatic className correction\n var originalClasses = (user._domContainer.className || '').trim().split(/\\s+/);\n user._rawRootElem$ = new Rx.Subject();\n user._rootElem$ = user._rawRootElem$\n .map(function fixRootElemClassName(rootElem) {\n var previousClasses = rootElem.className.trim().split(/\\s+/);\n var missingClasses = originalClasses.filter(function (clss) {\n return previousClasses.indexOf(clss) < 0;\n });\n rootElem.className = previousClasses.concat(missingClasses).join(' ');\n return rootElem;\n })\n .shareReplay(1);\n}\n\nfunction DOMUser(container) {\n // Find and prepare the container\n this._domContainer = (typeof container === 'string') ?\n document.querySelector(container) :\n container;\n // Check pre-conditions\n if (typeof container === 'string' && this._domContainer === null) {\n throw new Error('Cannot render into unknown element \\'' + container + '\\'');\n } else if (!isElement(this._domContainer)) {\n throw new Error('Given container is not a DOM element neither a selector string.');\n }\n defineRootElemStream(this);\n // Create DataFlowNode with rendering logic\n var self = this;\n DataFlowNode.call(this, function injectIntoDOMUser(view) {\n return self._renderEvery(view.get('vtree$'));\n });\n}\n\nDOMUser.prototype = Object.create(DataFlowNode.prototype);\n\nDOMUser.prototype._renderEvery = function renderEvery(vtree$) {\n var self = this;\n // Select the correct rootElem\n var rootElem;\n if (self._domContainer.cycleCustomElementProperties) {\n rootElem = self._domContainer;\n } else {\n rootElem = document.createElement('div');\n self._domContainer.innerHTML = '';\n self._domContainer.appendChild(rootElem);\n }\n // TODO Refactor/rework. Unclear why, but setTimeout this is necessary.\n setTimeout(function () {\n self._rawRootElem$.onNext(rootElem);\n }, 0);\n // Reactively render the vtree$ into the rootElem\n return vtree$\n .startWith(VDOM.h())\n .map(function renderingPreprocessing(vtree) {\n return self._replaceCustomElements(vtree);\n })\n .pairwise()\n .subscribe(function renderDiffAndPatch(pair) {\n var oldVTree = pair[0];\n var newVTree = pair[1];\n if (typeof newVTree === 'undefined') { return; }\n\n var arrayOfAll = getArrayOfAllWidgetRootElemStreams(newVTree);\n if (arrayOfAll.length > 0) {\n Rx.Observable.combineLatest(arrayOfAll, function () { return 0; }).first()\n .subscribe(function () { self._rawRootElem$.onNext(rootElem); });\n }\n var cycleCustomElementProperties = rootElem.cycleCustomElementProperties;\n try {\n rootElem = VDOM.patch(rootElem, VDOM.diff(oldVTree, newVTree));\n } catch (err) {\n console.error(err);\n }\n rootElem.cycleCustomElementProperties = cycleCustomElementProperties;\n if (arrayOfAll.length === 0) {\n self._rawRootElem$.onNext(rootElem);\n }\n });\n};\n\nDOMUser.prototype._replaceCustomElements = function replaceCustomElements(vtree) {\n // Silently ignore corner cases\n if (!vtree || !DOMUser._customElements || vtree.type === 'VirtualText') {\n return vtree;\n }\n var tagName = (vtree.tagName || '').toUpperCase();\n // Replace vtree itself\n if (tagName && DOMUser._customElements.hasOwnProperty(tagName)) {\n return new DOMUser._customElements[tagName](vtree);\n }\n // Or replace children recursively\n if (Array.isArray(vtree.children)) {\n for (var i = vtree.children.length - 1; i >= 0; i--) {\n vtree.children[i] = this._replaceCustomElements(vtree.children[i]);\n }\n }\n return vtree;\n};\n\nDOMUser.prototype.event$ = function event$(selector, eventName) {\n if (typeof selector !== 'string') {\n throw new Error('DOMUser.event$ expects first argument to be a string as a ' +\n 'CSS selector');\n }\n if (typeof eventName !== 'string') {\n throw new Error('DOMUser.event$ expects second argument to be a string ' +\n 'representing the event type to listen for.');\n }\n\n return this._rootElem$.flatMapLatest(function flatMapDOMUserEventStream(rootElem) {\n if (!rootElem) {\n return Rx.Observable.empty();\n }\n var klass = selector.replace('.', '');\n if (rootElem.className.search(new RegExp('\\\\b' + klass + '\\\\b')) >= 0) {\n return Rx.Observable.fromEvent(rootElem, eventName);\n }\n var targetElements = rootElem.querySelectorAll(selector);\n if (targetElements && targetElements.length > 0) {\n return Rx.Observable.fromEvent(targetElements, eventName);\n } else {\n return Rx.Observable.empty();\n }\n });\n};\n\nDOMUser.registerCustomElement = function registerCustomElement(tagName, definitionFn) {\n if (typeof tagName !== 'string' || typeof definitionFn !== 'function') {\n throw new Error('registerCustomElement requires parameters `tagName` and ' +\n '`definitionFn`.');\n }\n tagName = tagName.toUpperCase();\n if (DOMUser._customElements && DOMUser._customElements.hasOwnProperty(tagName)) {\n throw new Error('Cannot register custom element `' + tagName + '` ' +\n 'for the DOMUser because that tagName is already registered.');\n }\n\n var WidgetClass = CustomElements.makeConstructor();\n WidgetClass.prototype.init = CustomElements.makeInit(tagName, definitionFn);\n WidgetClass.prototype.update = CustomElements.makeUpdate();\n DOMUser._customElements = DOMUser._customElements || {};\n DOMUser._customElements[tagName] = WidgetClass;\n};\n\nmodule.exports = DOMUser;\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/src/dom-user.js\n ** module id = 9\n ** module chunks = 0\n **/","'use strict';\n\nfunction PropertyHook(fn) {\n this.fn = fn;\n}\nPropertyHook.prototype.hook = function () {\n this.fn.apply(this, arguments);\n};\n\nmodule.exports = PropertyHook;\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/src/property-hook.js\n ** module id = 10\n ** module chunks = 0\n **/","'use strict';\nvar DataFlowNode = require('./data-flow-node');\nvar errors = require('./errors');\n\nfunction createModel(definitionFn) {\n var model = new DataFlowNode(definitionFn);\n model = errors.customInterfaceErrorMessageInInject(model,\n 'Model expects Intent to have the required property '\n );\n model.clone = function cloneModel() { return createModel(definitionFn); };\n return model;\n}\n\nmodule.exports = createModel;\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/src/create-model.js\n ** module id = 11\n ** module chunks = 0\n **/","'use strict';\nvar Rx = require('rx');\nvar DataFlowNode = require('./data-flow-node');\nvar errors = require('./errors');\n\nfunction checkVTree$(view) {\n if (view.get('vtree$') === null ||\n typeof view.get('vtree$').subscribe !== 'function')\n {\n throw new Error('View must define `vtree$` Observable emitting virtual DOM elements');\n }\n}\n\nfunction throwErrorIfNotVTree(vtree) {\n if (vtree.type !== 'VirtualNode' || vtree.tagName === 'undefined') {\n throw new Error('View `vtree$` must emit only VirtualNode instances. ' +\n 'Hint: create them with Cycle.h()'\n );\n }\n}\n\nfunction getCorrectedVtree$(view) {\n var newVtree$ = view.get('vtree$')\n .map(function (vtree) {\n if (vtree.type === 'Widget') { return vtree; }\n throwErrorIfNotVTree(vtree);\n return vtree;\n })\n .replay(null, 1);\n newVtree$.connect();\n return newVtree$;\n}\n\nfunction overrideGet(view) {\n var oldGet = view.get;\n var newVtree$ = getCorrectedVtree$(view); // Is here because has connect() side effect\n view.get = function get(streamName) {\n if (streamName === 'vtree$') { // Override get('vtree$')\n return newVtree$;\n } else if (view[streamName]) {\n return view[streamName];\n } else {\n var result = oldGet.call(this, streamName);\n if (!result) {\n view[streamName] = new Rx.Subject();\n return view[streamName];\n } else {\n return result;\n }\n }\n };\n}\n\nfunction createView(definitionFn) {\n var view = new DataFlowNode(definitionFn);\n view = errors.customInterfaceErrorMessageInInject(view,\n 'View expects Model to have the required property '\n );\n checkVTree$(view);\n overrideGet(view);\n view.clone = function cloneView() { return createView(definitionFn); };\n return view;\n}\n\nmodule.exports = createView;\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/src/create-view.js\n ** module id = 12\n ** module chunks = 0\n **/","'use strict';\nvar DataFlowNode = require('./data-flow-node');\nvar errors = require('./errors');\n\nfunction createIntent(definitionFn) {\n var intent = new DataFlowNode(definitionFn);\n intent = errors.customInterfaceErrorMessageInInject(intent,\n 'Intent expects View to have the required property '\n );\n intent.clone = function cloneIntent() { return createIntent(definitionFn); };\n return intent;\n}\n\nmodule.exports = createIntent;\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/src/create-intent.js\n ** module id = 13\n ** module chunks = 0\n **/","/**\n * @license\n * lodash 3.3.1 (Custom Build) <https://lodash.com/>\n * Build: `lodash modern -d -o ./index.js`\n * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>\n * Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE>\n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license <https://lodash.com/license>\n */\n;(function() {\n\n /** Used as a safe reference for `undefined` in pre-ES5 environments. */\n var undefined;\n\n /** Used as the semantic version number. */\n var VERSION = '3.3.1';\n\n /** Used to compose bitmasks for wrapper metadata. */\n var BIND_FLAG = 1,\n BIND_KEY_FLAG = 2,\n CURRY_BOUND_FLAG = 4,\n CURRY_FLAG = 8,\n CURRY_RIGHT_FLAG = 16,\n PARTIAL_FLAG = 32,\n PARTIAL_RIGHT_FLAG = 64,\n REARG_FLAG = 128,\n ARY_FLAG = 256;\n\n /** Used as default options for `_.trunc`. */\n var DEFAULT_TRUNC_LENGTH = 30,\n DEFAULT_TRUNC_OMISSION = '...';\n\n /** Used to detect when a function becomes hot. */\n var HOT_COUNT = 150,\n HOT_SPAN = 16;\n\n /** Used to indicate the type of lazy iteratees. */\n var LAZY_FILTER_FLAG = 0,\n LAZY_MAP_FLAG = 1,\n LAZY_WHILE_FLAG = 2;\n\n /** Used as the `TypeError` message for \"Functions\" methods. */\n var FUNC_ERROR_TEXT = 'Expected a function';\n\n /** Used as the internal argument placeholder. */\n var PLACEHOLDER = '__lodash_placeholder__';\n\n /** `Object#toString` result references. */\n var argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\n var arrayBufferTag = '[object ArrayBuffer]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n /** Used to match empty string literals in compiled template source. */\n var reEmptyStringLeading = /\\b__p \\+= '';/g,\n reEmptyStringMiddle = /\\b(__p \\+=) '' \\+/g,\n reEmptyStringTrailing = /(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g;\n\n /** Used to match HTML entities and HTML characters. */\n var reEscapedHtml = /&(?:amp|lt|gt|quot|#39|#96);/g,\n reUnescapedHtml = /[&<>\"'`]/g,\n reHasEscapedHtml = RegExp(reEscapedHtml.source),\n reHasUnescapedHtml = RegExp(reUnescapedHtml.source);\n\n /** Used to match template delimiters. */\n var reEscape = /<%-([\\s\\S]+?)%>/g,\n reEvaluate = /<%([\\s\\S]+?)%>/g,\n reInterpolate = /<%=([\\s\\S]+?)%>/g;\n\n /**\n * Used to match ES template delimiters.\n * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-template-literal-lexical-components)\n * for more details.\n */\n var reEsTemplate = /\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g;\n\n /** Used to match `RegExp` flags from their coerced string values. */\n var reFlags = /\\w*$/;\n\n /** Used to detect named functions. */\n var reFuncName = /^\\s*function[ \\n\\r\\t]+\\w/;\n\n /** Used to detect hexadecimal string values. */\n var reHexPrefix = /^0[xX]/;\n\n /** Used to detect host constructors (Safari > 5). */\n var reHostCtor = /^\\[object .+?Constructor\\]$/;\n\n /** Used to match latin-1 supplementary letters (excluding mathematical operators). */\n var reLatin1 = /[\\xc0-\\xd6\\xd8-\\xde\\xdf-\\xf6\\xf8-\\xff]/g;\n\n /** Used to ensure capturing order of template delimiters. */\n var reNoMatch = /($^)/;\n\n /**\n * Used to match `RegExp` special characters.\n * See this [article on `RegExp` characters](http://www.regular-expressions.info/characters.html#special)\n * for more details.\n */\n var reRegExpChars = /[.*+?^${}()|[\\]\\/\\\\]/g,\n reHasRegExpChars = RegExp(reRegExpChars.source);\n\n /** Used to detect functions containing a `this` reference. */\n var reThis = /\\bthis\\b/;\n\n /** Used to match unescaped characters in compiled string literals. */\n var reUnescapedString = /['\\n\\r\\u2028\\u2029\\\\]/g;\n\n /** Used to match words to create compound words. */\n var reWords = (function() {\n var upper = '[A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde]',\n lower = '[a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff]+';\n\n return RegExp(upper + '{2,}(?=' + upper + lower + ')|' + upper + '?' + lower + '|' + upper + '+|[0-9]+', 'g');\n }());\n\n /** Used to detect and test for whitespace. */\n var whitespace = (\n // Basic whitespace characters.\n ' \\t\\x0b\\f\\xa0\\ufeff' +\n\n // Line terminators.\n '\\n\\r\\u2028\\u2029' +\n\n // Unicode category \"Zs\" space separators.\n '\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000'\n );\n\n /** Used to assign default `context` object properties. */\n var contextProps = [\n 'Array', 'ArrayBuffer', 'Date', 'Error', 'Float32Array', 'Float64Array',\n 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Math', 'Number',\n 'Object', 'RegExp', 'Set', 'String', '_', 'clearTimeout', 'document',\n 'isFinite', 'parseInt', 'setTimeout', 'TypeError', 'Uint8Array',\n 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',\n 'window', 'WinRTError'\n ];\n\n /** Used to make template sourceURLs easier to identify. */\n var templateCounter = -1;\n\n /** Used to identify `toStringTag` values of typed arrays. */\n var typedArrayTags = {};\n typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\n typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\n typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\n typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\n typedArrayTags[uint32Tag] = true;\n typedArrayTags[argsTag] = typedArrayTags[arrayTag] =\n typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\n typedArrayTags[dateTag] = typedArrayTags[errorTag] =\n typedArrayTags[funcTag] = typedArrayTags[mapTag] =\n typedArrayTags[numberTag] = typedArrayTags[objectTag] =\n typedArrayTags[regexpTag] = typedArrayTags[setTag] =\n typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;\n\n /** Used to identify `toStringTag` values supported by `_.clone`. */\n var cloneableTags = {};\n cloneableTags[argsTag] = cloneableTags[arrayTag] =\n cloneableTags[arrayBufferTag] = cloneableTags[boolTag] =\n cloneableTags[dateTag] = cloneableTags[float32Tag] =\n cloneableTags[float64Tag] = cloneableTags[int8Tag] =\n cloneableTags[int16Tag] = cloneableTags[int32Tag] =\n cloneableTags[numberTag] = cloneableTags[objectTag] =\n cloneableTags[regexpTag] = cloneableTags[stringTag] =\n cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\n cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\n cloneableTags[errorTag] = cloneableTags[funcTag] =\n cloneableTags[mapTag] = cloneableTags[setTag] =\n cloneableTags[weakMapTag] = false;\n\n /** Used as an internal `_.debounce` options object by `_.throttle`. */\n var debounceOptions = {\n 'leading': false,\n 'maxWait': 0,\n 'trailing': false\n };\n\n /** Used to map latin-1 supplementary letters to basic latin letters. */\n var deburredLetters = {\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcC': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xeC': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss'\n };\n\n /** Used to map characters to HTML entities. */\n var htmlEscapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": ''',\n '`': '`'\n };\n\n /** Used to map HTML entities to characters. */\n var htmlUnescapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '"': '\"',\n ''': \"'\",\n '`': '`'\n };\n\n /** Used to determine if values are of the language type `Object`. */\n var objectTypes = {\n 'function': true,\n 'object': true\n };\n\n /** Used to escape characters for inclusion in compiled string literals. */\n var stringEscapes = {\n '\\\\': '\\\\',\n \"'\": \"'\",\n '\\n': 'n',\n '\\r': 'r',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n };\n\n /**\n * Used as a reference to the global object.\n *\n * The `this` value is used if it is the global object to avoid Greasemonkey's\n * restricted `window` object, otherwise the `window` object is used.\n */\n var root = (objectTypes[typeof window] && window !== (this && this.window)) ? window : this;\n\n /** Detect free variable `exports`. */\n var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports;\n\n /** Detect free variable `module`. */\n var freeModule = objectTypes[typeof module] && module && !module.nodeType && module;\n\n /** Detect free variable `global` from Node.js or Browserified code and use it as `root`. */\n var freeGlobal = freeExports && freeModule && typeof global == 'object' && global;\n if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal)) {\n root = freeGlobal;\n }\n\n /** Detect the popular CommonJS extension `module.exports`. */\n var moduleExports = freeModule && freeModule.exports === freeExports && freeExports;\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * The base implementation of `compareAscending` which compares values and\n * sorts them in ascending order without guaranteeing a stable sort.\n *\n * @private\n * @param {*} value The value to compare to `other`.\n * @param {*} other The value to compare to `value`.\n * @returns {number} Returns the sort order indicator for `value`.\n */\n function baseCompareAscending(value, other) {\n if (value !== other) {\n var valIsReflexive = value === value,\n othIsReflexive = other === other;\n\n if (value > other || !valIsReflexive || (typeof value == 'undefined' && othIsReflexive)) {\n return 1;\n }\n if (value < other || !othIsReflexive || (typeof other == 'undefined' && valIsReflexive)) {\n return -1;\n }\n }\n return 0;\n }\n\n /**\n * The base implementation of `_.indexOf` without support for binary searches.\n *\n * @private\n * @param {Array} array The array to search.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOf(array, value, fromIndex) {\n if (value !== value) {\n return indexOfNaN(array, fromIndex);\n }\n var index = (fromIndex || 0) - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.isFunction` without support for environments\n * with incorrect `typeof` results.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n */\n function baseIsFunction(value) {\n // Avoid a Chakra JIT bug in compatibility modes of IE 11.\n // See https://github.com/jashkenas/underscore/issues/1621 for more details.\n return typeof value == 'function' || false;\n }\n\n /**\n * The base implementation of `_.sortBy` and `_.sortByAll` which uses `comparer`\n * to define the sort order of `array` and replaces criteria objects with their\n * corresponding values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\n function baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n }\n\n /**\n * Converts `value` to a string if it is not one. An empty string is returned\n * for `null` or `undefined` values.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\n function baseToString(value) {\n if (typeof value == 'string') {\n return value;\n }\n return value == null ? '' : (value + '');\n }\n\n /**\n * Used by `_.max` and `_.min` as the default callback for string values.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the code unit of the first character of the string.\n */\n function charAtCallback(string) {\n return string.charCodeAt(0);\n }\n\n /**\n * Used by `_.trim` and `_.trimLeft` to get the index of the first character\n * of `string` that is not found in `chars`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @param {string} chars The characters to find.\n * @returns {number} Returns the index of the first character not found in `chars`.\n */\n function charsLeftIndex(string, chars) {\n var index = -1,\n length = string.length;\n\n while (++index < length && chars.indexOf(string.charAt(index)) > -1) {}\n return index;\n }\n\n /**\n * Used by `_.trim` and `_.trimRight` to get the index of the last character\n * of `string` that is not found in `chars`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @param {string} chars The characters to find.\n * @returns {number} Returns the index of the last character not found in `chars`.\n */\n function charsRightIndex(string, chars) {\n var index = string.length;\n\n while (index-- && chars.indexOf(string.charAt(index)) > -1) {}\n return index;\n }\n\n /**\n * Used by `_.sortBy` to compare transformed elements of a collection and stable\n * sort them in ascending order.\n *\n * @private\n * @param {Object} object The object to compare to `other`.\n * @param {Object} other The object to compare to `object`.\n * @returns {number} Returns the sort order indicator for `object`.\n */\n function compareAscending(object, other) {\n return baseCompareAscending(object.criteria, other.criteria) || (object.index - other.index);\n }\n\n /**\n * Used by `_.sortByAll` to compare multiple properties of each element\n * in a collection and stable sort them in ascending order.\n *\n * @private\n * @param {Object} object The object to compare to `other`.\n * @param {Object} other The object to compare to `object`.\n * @returns {number} Returns the sort order indicator for `object`.\n */\n function compareMultipleAscending(object, other) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length;\n\n while (++index < length) {\n var result = baseCompareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n return result;\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://code.google.com/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n }\n\n /**\n * Used by `_.deburr` to convert latin-1 supplementary letters to basic latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\n function deburrLetter(letter) {\n return deburredLetters[letter];\n }\n\n /**\n * Used by `_.escape` to convert characters to HTML entities.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n function escapeHtmlChar(chr) {\n return htmlEscapes[chr];\n }\n\n /**\n * Used by `_.template` to escape characters for inclusion in compiled\n * string literals.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n function escapeStringChar(chr) {\n return '\\\\' + stringEscapes[chr];\n }\n\n /**\n * Gets the index at which the first occurrence of `NaN` is found in `array`.\n * If `fromRight` is provided elements of `array` are iterated from right to left.\n *\n * @private\n * @param {Array} array The array to search.\n * @param {number} [fromIndex] The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched `NaN`, else `-1`.\n */\n function indexOfNaN(array, fromIndex, fromRight) {\n var length = array.length,\n index = fromRight ? (fromIndex || length) : ((fromIndex || 0) - 1);\n\n while ((fromRight ? index-- : ++index < length)) {\n var other = array[index];\n if (other !== other) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * Checks if `value` is object-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n */\n function isObjectLike(value) {\n return (value && typeof value == 'object') || false;\n }\n\n /**\n * Used by `trimmedLeftIndex` and `trimmedRightIndex` to determine if a\n * character code is whitespace.\n *\n * @private\n * @param {number} charCode The character code to inspect.\n * @returns {boolean} Returns `true` if `charCode` is whitespace, else `false`.\n */\n function isSpace(charCode) {\n return ((charCode <= 160 && (charCode >= 9 && charCode <= 13) || charCode == 32 || charCode == 160) || charCode == 5760 || charCode == 6158 ||\n (charCode >= 8192 && (charCode <= 8202 || charCode == 8232 || charCode == 8233 || charCode == 8239 || charCode == 8287 || charCode == 12288 || charCode == 65279)));\n }\n\n /**\n * Replaces all `placeholder` elements in `array` with an internal placeholder\n * and returns an array of their indexes.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {*} placeholder The placeholder to replace.\n * @returns {Array} Returns the new array of placeholder indexes.\n */\n function replaceHolders(array, placeholder) {\n var index = -1,\n length = array.length,\n resIndex = -1,\n result = [];\n\n while (++index < length) {\n if (array[index] === placeholder) {\n array[index] = PLACEHOLDER;\n result[++resIndex] = index;\n }\n }\n return result;\n }\n\n /**\n * An implementation of `_.uniq` optimized for sorted arrays without support\n * for callback shorthands and `this` binding.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The function invoked per iteration.\n * @returns {Array} Returns the new duplicate-value-free array.\n */\n function sortedUniq(array, iteratee) {\n var seen,\n index = -1,\n length = array.length,\n resIndex = -1,\n result = [];\n\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value, index, array) : value;\n\n if (!index || seen !== computed) {\n seen = computed;\n result[++resIndex] = value;\n }\n }\n return result;\n }\n\n /**\n * Used by `_.trim` and `_.trimLeft` to get the index of the first non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the first non-whitespace character.\n */\n function trimmedLeftIndex(string) {\n var index = -1,\n length = string.length;\n\n while (++index < length && isSpace(string.charCodeAt(index))) {}\n return index;\n }\n\n /**\n * Used by `_.trim` and `_.trimRight` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\n function trimmedRightIndex(string) {\n var index = string.length;\n\n while (index-- && isSpace(string.charCodeAt(index))) {}\n return index;\n }\n\n /**\n * Used by `_.unescape` to convert HTML entities to characters.\n *\n * @private\n * @param {string} chr The matched character to unescape.\n * @returns {string} Returns the unescaped character.\n */\n function unescapeHtmlChar(chr) {\n return htmlUnescapes[chr];\n }\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * Create a new pristine `lodash` function using the given `context` object.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @param {Object} [context=root] The context object.\n * @returns {Function} Returns a new `lodash` function.\n * @example\n *\n * _.mixin({ 'add': function(a, b) { return a + b; } });\n *\n * var lodash = _.runInContext();\n * lodash.mixin({ 'sub': function(a, b) { return a - b; } });\n *\n * _.isFunction(_.add);\n * // => true\n * _.isFunction(_.sub);\n * // => false\n *\n * lodash.isFunction(lodash.add);\n * // => false\n * lodash.isFunction(lodash.sub);\n * // => true\n *\n * // using `context` to mock `Date#getTime` use in `_.now`\n * var mock = _.runInContext({\n * 'Date': function() {\n * return { 'getTime': getTimeMock };\n * }\n * });\n *\n * // or creating a suped-up `defer` in Node.js\n * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;\n */\n function runInContext(context) {\n // Avoid issues with some ES3 environments that attempt to use values, named\n // after built-in constructors like `Object`, for the creation of literals.\n // ES5 clears this up by stating that literals must use built-in constructors.\n // See https://es5.github.io/#x11.1.5 for more details.\n context = context ? _.defaults(root.Object(), context, _.pick(root, contextProps)) : root;\n\n /** Native constructor references. */\n var Array = context.Array,\n Date = context.Date,\n Error = context.Error,\n Function = context.Function,\n Math = context.Math,\n Number = context.Number,\n Object = context.Object,\n RegExp = context.RegExp,\n String = context.String,\n TypeError = context.TypeError;\n\n /** Used for native method references. */\n var arrayProto = Array.prototype,\n objectProto = Object.prototype;\n\n /** Used to detect DOM support. */\n var document = (document = context.window) && document.document;\n\n /** Used to resolve the decompiled source of functions. */\n var fnToString = Function.prototype.toString;\n\n /** Used to the length of n-tuples for `_.unzip`. */\n var getLength = baseProperty('length');\n\n /** Used to check objects for own properties. */\n var hasOwnProperty = objectProto.hasOwnProperty;\n\n /** Used to generate unique IDs. */\n var idCounter = 0;\n\n /**\n * Used to resolve the `toStringTag` of values.\n * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring)\n * for more details.\n */\n var objToString = objectProto.toString;\n\n /** Used to restore the original `_` reference in `_.noConflict`. */\n var oldDash = context._;\n\n /** Used to detect if a method is native. */\n var reNative = RegExp('^' +\n escapeRegExp(objToString)\n .replace(/toString|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n );\n\n /** Native method references. */\n var ArrayBuffer = isNative(ArrayBuffer = context.ArrayBuffer) && ArrayBuffer,\n bufferSlice = isNative(bufferSlice = ArrayBuffer && new ArrayBuffer(0).slice) && bufferSlice,\n ceil = Math.ceil,\n clearTimeout = context.clearTimeout,\n floor = Math.floor,\n getPrototypeOf = isNative(getPrototypeOf = Object.getPrototypeOf) && getPrototypeOf,\n push = arrayProto.push,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n Set = isNative(Set = context.Set) && Set,\n setTimeout = context.setTimeout,\n splice = arrayProto.splice,\n Uint8Array = isNative(Uint8Array = context.Uint8Array) && Uint8Array,\n WeakMap = isNative(WeakMap = context.WeakMap) && WeakMap;\n\n /** Used to clone array buffers. */\n var Float64Array = (function() {\n // Safari 5 errors when using an array buffer to initialize a typed array\n // where the array buffer's `byteLength` is not a multiple of the typed\n // array's `BYTES_PER_ELEMENT`.\n try {\n var func = isNative(func = context.Float64Array) && func,\n result = new func(new ArrayBuffer(10), 0, 1) && func;\n } catch(e) {}\n return result;\n }());\n\n /* Native method references for those with the same name as other `lodash` methods. */\n var nativeIsArray = isNative(nativeIsArray = Array.isArray) && nativeIsArray,\n nativeCreate = isNative(nativeCreate = Object.create) && nativeCreate,\n nativeIsFinite = context.isFinite,\n nativeKeys = isNative(nativeKeys = Object.keys) && nativeKeys,\n nativeMax = Math.max,\n nativeMin = Math.min,\n nativeNow = isNative(nativeNow = Date.now) && nativeNow,\n nativeNumIsFinite = isNative(nativeNumIsFinite = Number.isFinite) && nativeNumIsFinite,\n nativeParseInt = context.parseInt,\n nativeRandom = Math.random;\n\n /** Used as references for `-Infinity` and `Infinity`. */\n var NEGATIVE_INFINITY = Number.NEGATIVE_INFINITY,\n POSITIVE_INFINITY = Number.POSITIVE_INFINITY;\n\n /** Used as references for the maximum length and index of an array. */\n var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1,\n MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,\n HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;\n\n /** Used as the size, in bytes, of each `Float64Array` element. */\n var FLOAT64_BYTES_PER_ELEMENT = Float64Array ? Float64Array.BYTES_PER_ELEMENT : 0;\n\n /**\n * Used as the maximum length of an array-like value.\n * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)\n * for more details.\n */\n var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;\n\n /** Used to store function metadata. */\n var metaMap = WeakMap && new WeakMap;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` object which wraps `value` to enable implicit chaining.\n * Methods that operate on and return arrays, collections, and functions can\n * be chained together. Methods that return a boolean or single value will\n * automatically end the chain returning the unwrapped value. Explicit chaining\n * may be enabled using `_.chain`. The execution of chained methods is lazy,\n * that is, execution is deferred until `_#value` is implicitly or explicitly\n * called.\n *\n * Lazy evaluation allows several methods to support shortcut fusion. Shortcut\n * fusion is an optimization that merges iteratees to avoid creating intermediate\n * arrays and reduce the number of iteratee executions.\n *\n * Chaining is supported in custom builds as long as the `_#value` method is\n * directly or indirectly included in the build.\n *\n * In addition to lodash methods, wrappers also have the following `Array` methods:\n * `concat`, `join`, `pop`, `push`, `reverse`, `shift`, `slice`, `sort`, `splice`,\n * and `unshift`\n *\n * The wrapper methods that support shortcut fusion are:\n * `compact`, `drop`, `dropRight`, `dropRightWhile`, `dropWhile`, `filter`,\n * `first`, `initial`, `last`, `map`, `pluck`, `reject`, `rest`, `reverse`,\n * `slice`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, `toArray`,\n * and `where`\n *\n * The chainable wrapper methods are:\n * `after`, `ary`, `assign`, `at`, `before`, `bind`, `bindAll`, `bindKey`,\n * `callback`, `chain`, `chunk`, `commit`, `compact`, `concat`, `constant`,\n * `countBy`, `create`, `curry`, `debounce`, `defaults`, `defer`, `delay`,\n * `difference`, `drop`, `dropRight`, `dropRightWhile`, `dropWhile`, `fill`,\n * `filter`, `flatten`, `flattenDeep`, `flow`, `flowRight`, `forEach`,\n * `forEachRight`, `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `functions`,\n * `groupBy`, `indexBy`, `initial`, `intersection`, `invert`, `invoke`, `keys`,\n * `keysIn`, `map`, `mapValues`, `matches`, `matchesProperty`, `memoize`, `merge`,\n * `mixin`, `negate`, `noop`, `omit`, `once`, `pairs`, `partial`, `partialRight`,\n * `partition`, `pick`, `plant`, `pluck`, `property`, `propertyOf`, `pull`,\n * `pullAt`, `push`, `range`, `rearg`, `reject`, `remove`, `rest`, `reverse`,\n * `shuffle`, `slice`, `sort`, `sortBy`, `sortByAll`, `splice`, `spread`,\n * `take`, `takeRight`, `takeRightWhile`, `takeWhile`, `tap`, `throttle`,\n * `thru`, `times`, `toArray`, `toPlainObject`, `transform`, `union`, `uniq`,\n * `unshift`, `unzip`, `values`, `valuesIn`, `where`, `without`, `wrap`, `xor`,\n * `zip`, and `zipObject`\n *\n * The wrapper methods that are **not** chainable by default are:\n * `attempt`, `camelCase`, `capitalize`, `clone`, `cloneDeep`, `deburr`,\n * `endsWith`, `escape`, `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`,\n * `findLast`, `findLastIndex`, `findLastKey`, `findWhere`, `first`, `has`,\n * `identity`, `includes`, `indexOf`, `isArguments`, `isArray`, `isBoolean`,\n * `isDate`, `isElement`, `isEmpty`, `isEqual`, `isError`, `isFinite`,\n * `isFunction`, `isMatch`, `isNative`, `isNaN`, `isNull`, `isNumber`,\n * `isObject`, `isPlainObject`, `isRegExp`, `isString`, `isUndefined`,\n * `isTypedArray`, `join`, `kebabCase`, `last`, `lastIndexOf`, `max`, `min`,\n * `noConflict`, `now`, `pad`, `padLeft`, `padRight`, `parseInt`, `pop`,\n * `random`, `reduce`, `reduceRight`, `repeat`, `result`, `runInContext`,\n * `shift`, `size`, `snakeCase`, `some`, `sortedIndex`, `sortedLastIndex`,\n * `startCase`, `startsWith`, `template`, `trim`, `trimLeft`, `trimRight`,\n * `trunc`, `unescape`, `uniqueId`, `value`, and `words`\n *\n * The wrapper method `sample` will return a wrapped value when `n` is provided,\n * otherwise an unwrapped value is returned.\n *\n * @name _\n * @constructor\n * @category Chain\n * @param {*} value The value to wrap in a `lodash` instance.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var wrapped = _([1, 2, 3]);\n *\n * // returns an unwrapped value\n * wrapped.reduce(function(sum, n) {\n * return sum + n;\n * });\n * // => 6\n *\n * // returns a wrapped value\n * var squares = wrapped.map(function(n) {\n * return n * n;\n * });\n *\n * _.isArray(squares);\n * // => false\n *\n * _.isArray(squares.value());\n * // => true\n */\n function lodash(value) {\n if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\n if (value instanceof LodashWrapper) {\n return value;\n }\n if (hasOwnProperty.call(value, '__chain__') && hasOwnProperty.call(value, '__wrapped__')) {\n return wrapperClone(value);\n }\n }\n return new LodashWrapper(value);\n }\n\n /**\n * The function whose prototype all chaining wrappers inherit from.\n *\n * @private\n */\n function baseLodash() {\n // No operation performed.\n }\n\n /**\n * The base constructor for creating `lodash` wrapper objects.\n *\n * @private\n * @param {*} value The value to wrap.\n * @param {boolean} [chainAll] Enable chaining for all wrapper methods.\n * @param {Array} [actions=[]] Actions to peform to resolve the unwrapped value.\n */\n function LodashWrapper(value, chainAll, actions) {\n this.__wrapped__ = value;\n this.__actions__ = actions || [];\n this.__chain__ = !!chainAll;\n }\n\n /**\n * An object environment feature flags.\n *\n * @static\n * @memberOf _\n * @type Object\n */\n var support = lodash.support = {};\n\n (function(x) {\n\n /**\n * Detect if functions can be decompiled by `Function#toString`\n * (all but Firefox OS certified apps, older Opera mobile browsers, and\n * the PlayStation 3; forced `false` for Windows 8 apps).\n *\n * @memberOf _.support\n * @type boolean\n */\n support.funcDecomp = !isNative(context.WinRTError) && reThis.test(runInContext);\n\n /**\n * Detect if `Function#name` is supported (all but IE).\n *\n * @memberOf _.support\n * @type boolean\n */\n support.funcNames = typeof Function.name == 'string';\n\n /**\n * Detect if the DOM is supported.\n *\n * @memberOf _.support\n * @type boolean\n */\n try {\n support.dom = document.createDocumentFragment().nodeType === 11;\n } catch(e) {\n support.dom = false;\n }\n\n /**\n * Detect if `arguments` object indexes are non-enumerable.\n *\n * In Firefox < 4, IE < 9, PhantomJS, and Safari < 5.1 `arguments` object\n * indexes are non-enumerable. Chrome < 25 and Node.js < 0.11.0 treat\n * `arguments` object indexes as non-enumerable and fail `hasOwnProperty`\n * checks for indexes that exceed their function's formal parameters with\n * associated values of `0`.\n *\n * @memberOf _.support\n * @type boolean\n */\n try {\n support.nonEnumArgs = !propertyIsEnumerable.call(arguments, 1);\n } catch(e) {\n support.nonEnumArgs = true;\n }\n }(0, 0));\n\n /**\n * By default, the template delimiters used by lodash are like those in\n * embedded Ruby (ERB). Change the following template settings to use\n * alternative delimiters.\n *\n * @static\n * @memberOf _\n * @type Object\n */\n lodash.templateSettings = {\n\n /**\n * Used to detect `data` property values to be HTML-escaped.\n *\n * @memberOf _.templateSettings\n * @type RegExp\n */\n 'escape': reEscape,\n\n /**\n * Used to detect code to be evaluated.\n *\n * @memberOf _.templateSettings\n * @type RegExp\n */\n 'evaluate': reEvaluate,\n\n /**\n * Used to detect `data` property values to inject.\n *\n * @memberOf _.templateSettings\n * @type RegExp\n */\n 'interpolate': reInterpolate,\n\n /**\n * Used to reference the data object in the template text.\n *\n * @memberOf _.templateSettings\n * @type string\n */\n 'variable': '',\n\n /**\n * Used to import variables into the compiled template.\n *\n * @memberOf _.templateSettings\n * @type Object\n */\n 'imports': {\n\n /**\n * A reference to the `lodash` function.\n *\n * @memberOf _.templateSettings.imports\n * @type Function\n */\n '_': lodash\n }\n };\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.\n *\n * @private\n * @param {*} value The value to wrap.\n */\n function LazyWrapper(value) {\n this.__wrapped__ = value;\n this.__actions__ = null;\n this.__dir__ = 1;\n this.__dropCount__ = 0;\n this.__filtered__ = false;\n this.__iteratees__ = null;\n this.__takeCount__ = POSITIVE_INFINITY;\n this.__views__ = null;\n }\n\n /**\n * Creates a clone of the lazy wrapper object.\n *\n * @private\n * @name clone\n * @memberOf LazyWrapper\n * @returns {Object} Returns the cloned `LazyWrapper` object.\n */\n function lazyClone() {\n var actions = this.__actions__,\n iteratees = this.__iteratees__,\n views = this.__views__,\n result = new LazyWrapper(this.__wrapped__);\n\n result.__actions__ = actions ? arrayCopy(actions) : null;\n result.__dir__ = this.__dir__;\n result.__dropCount__ = this.__dropCount__;\n result.__filtered__ = this.__filtered__;\n result.__iteratees__ = iteratees ? arrayCopy(iteratees) : null;\n result.__takeCount__ = this.__takeCount__;\n result.__views__ = views ? arrayCopy(views) : null;\n return result;\n }\n\n /**\n * Reverses the direction of lazy iteration.\n *\n * @private\n * @name reverse\n * @memberOf LazyWrapper\n * @returns {Object} Returns the new reversed `LazyWrapper` object.\n */\n function lazyReverse() {\n if (this.__filtered__) {\n var result = new LazyWrapper(this);\n result.__dir__ = -1;\n result.__filtered__ = true;\n } else {\n result = this.clone();\n result.__dir__ *= -1;\n }\n return result;\n }\n\n /**\n * Extracts the unwrapped value from its lazy wrapper.\n *\n * @private\n * @name value\n * @memberOf LazyWrapper\n * @returns {*} Returns the unwrapped value.\n */\n function lazyValue() {\n var array = this.__wrapped__.value();\n if (!isArray(array)) {\n return baseWrapperValue(array, this.__actions__);\n }\n var dir = this.__dir__,\n isRight = dir < 0,\n view = getView(0, array.length, this.__views__),\n start = view.start,\n end = view.end,\n length = end - start,\n dropCount = this.__dropCount__,\n takeCount = nativeMin(length, this.__takeCount__),\n index = isRight ? end : start - 1,\n iteratees = this.__iteratees__,\n iterLength = iteratees ? iteratees.length : 0,\n resIndex = 0,\n result = [];\n\n outer:\n while (length-- && resIndex < takeCount) {\n index += dir;\n\n var iterIndex = -1,\n value = array[index];\n\n while (++iterIndex < iterLength) {\n var data = iteratees[iterIndex],\n iteratee = data.iteratee,\n computed = iteratee(value, index, array),\n type = data.type;\n\n if (type == LAZY_MAP_FLAG) {\n value = computed;\n } else if (!computed) {\n if (type == LAZY_FILTER_FLAG) {\n continue outer;\n } else {\n break outer;\n }\n }\n }\n if (dropCount) {\n dropCount--;\n } else {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a cache object to store key/value pairs.\n *\n * @private\n * @static\n * @name Cache\n * @memberOf _.memoize\n */\n function MapCache() {\n this.__data__ = {};\n }\n\n /**\n * Removes `key` and its value from the cache.\n *\n * @private\n * @name delete\n * @memberOf _.memoize.Cache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed successfully, else `false`.\n */\n function mapDelete(key) {\n return this.has(key) && delete this.__data__[key];\n }\n\n /**\n * Gets the cached value for `key`.\n *\n * @private\n * @name get\n * @memberOf _.memoize.Cache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the cached value.\n */\n function mapGet(key) {\n return key == '__proto__' ? undefined : this.__data__[key];\n }\n\n /**\n * Checks if a cached value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf _.memoize.Cache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function mapHas(key) {\n return key != '__proto__' && hasOwnProperty.call(this.__data__, key);\n }\n\n /**\n * Adds `value` to `key` of the cache.\n *\n * @private\n * @name set\n * @memberOf _.memoize.Cache\n * @param {string} key The key of the value to cache.\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache object.\n */\n function mapSet(key, value) {\n if (key != '__proto__') {\n this.__data__[key] = value;\n }\n return this;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n *\n * Creates a cache object to store unique values.\n *\n * @private\n * @param {Array} [values] The values to cache.\n */\n function SetCache(values) {\n var length = values ? values.length : 0;\n\n this.data = { 'hash': nativeCreate(null), 'set': new Set };\n while (length--) {\n this.push(values[length]);\n }\n }\n\n /**\n * Checks if `value` is in `cache` mimicking the return signature of\n * `_.indexOf` by returning `0` if the value is found, else `-1`.\n *\n * @private\n * @param {Object} cache The cache to search.\n * @param {*} value The value to search for.\n * @returns {number} Returns `0` if `value` is found, else `-1`.\n */\n function cacheIndexOf(cache, value) {\n var data = cache.data,\n result = (typeof value == 'string' || isObject(value)) ? data.set.has(value) : data.hash[value];\n\n return result ? 0 : -1;\n }\n\n /**\n * Adds `value` to the cache.\n *\n * @private\n * @name push\n * @memberOf SetCache\n * @param {*} value The value to cache.\n */\n function cachePush(value) {\n var data = this.data;\n if (typeof value == 'string' || isObject(value)) {\n data.set.add(value);\n } else {\n data.hash[value] = true;\n }\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\n function arrayCopy(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n }\n\n /**\n * A specialized version of `_.forEach` for arrays without support for callback\n * shorthands or `this` binding.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEach(array, iteratee) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.forEachRight` for arrays without support for\n * callback shorthands or `this` binding.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEachRight(array, iteratee) {\n var length = array.length;\n\n while (length--) {\n if (iteratee(array[length], length, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.every` for arrays without support for callback\n * shorthands or `this` binding.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n */\n function arrayEvery(array, predicate) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n if (!predicate(array[index], index, array)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * A specialized version of `_.filter` for arrays without support for callback\n * shorthands or `this` binding.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function arrayFilter(array, predicate) {\n var index = -1,\n length = array.length,\n resIndex = -1,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[++resIndex] = value;\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.map` for arrays without support for callback\n * shorthands or `this` binding.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function arrayMap(array, iteratee) {\n var index = -1,\n length = array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n }\n\n /**\n * A specialized version of `_.max` for arrays without support for iteratees.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the maximum value.\n */\n function arrayMax(array) {\n var index = -1,\n length = array.length,\n result = NEGATIVE_INFINITY;\n\n while (++index < length) {\n var value = array[index];\n if (value > result) {\n result = value;\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.min` for arrays without support for iteratees.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the minimum value.\n */\n function arrayMin(array) {\n var index = -1,\n length = array.length,\n result = POSITIVE_INFINITY;\n\n while (++index < length) {\n var value = array[index];\n if (value < result) {\n result = value;\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.reduce` for arrays without support for callback\n * shorthands or `this` binding.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initFromArray] Specify using the first element of `array`\n * as the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduce(array, iteratee, accumulator, initFromArray) {\n var index = -1,\n length = array.length;\n\n if (initFromArray && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.reduceRight` for arrays without support for\n * callback shorthands or `this` binding.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initFromArray] Specify using the last element of `array`\n * as the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduceRight(array, iteratee, accumulator, initFromArray) {\n var length = array.length;\n if (initFromArray && length) {\n accumulator = array[--length];\n }\n while (length--) {\n accumulator = iteratee(accumulator, array[length], length, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.some` for arrays without support for callback\n * shorthands or `this` binding.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function arraySome(array, predicate) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Used by `_.defaults` to customize its `_.assign` use.\n *\n * @private\n * @param {*} objectValue The destination object property value.\n * @param {*} sourceValue The source object property value.\n * @returns {*} Returns the value to assign to the destination object.\n */\n function assignDefaults(objectValue, sourceValue) {\n return typeof objectValue == 'undefined' ? sourceValue : objectValue;\n }\n\n /**\n * Used by `_.template` to customize its `_.assign` use.\n *\n * **Note:** This method is like `assignDefaults` except that it ignores\n * inherited property values when checking if a property is `undefined`.\n *\n * @private\n * @param {*} objectValue The destination object property value.\n * @param {*} sourceValue The source object property value.\n * @param {string} key The key associated with the object and source values.\n * @param {Object} object The destination object.\n * @returns {*} Returns the value to assign to the destination object.\n */\n function assignOwnDefaults(objectValue, sourceValue, key, object) {\n return (typeof objectValue == 'undefined' || !hasOwnProperty.call(object, key))\n ? sourceValue\n : objectValue;\n }\n\n /**\n * The base implementation of `_.assign` without support for argument juggling,\n * multiple sources, and `this` binding `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {Function} [customizer] The function to customize assigning values.\n * @returns {Object} Returns the destination object.\n */\n function baseAssign(object, source, customizer) {\n var props = keys(source);\n if (!customizer) {\n return baseCopy(source, object, props);\n }\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index],\n value = object[key],\n result = customizer(value, source[key], key, object, source);\n\n if ((result === result ? result !== value : value === value) ||\n (typeof value == 'undefined' && !(key in object))) {\n object[key] = result;\n }\n }\n return object;\n }\n\n /**\n * The base implementation of `_.at` without support for strings and individual\n * key arguments.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {number[]|string[]} [props] The property names or indexes of elements to pick.\n * @returns {Array} Returns the new array of picked elements.\n */\n function baseAt(collection, props) {\n var index = -1,\n length = collection.length,\n isArr = isLength(length),\n propsLength = props.length,\n result = Array(propsLength);\n\n while(++index < propsLength) {\n var key = props[index];\n if (isArr) {\n key = parseFloat(key);\n result[index] = isIndex(key, length) ? collection[key] : undefined;\n } else {\n result[index] = collection[key];\n }\n }\n return result;\n }\n\n /**\n * Copies the properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Array} props The property names to copy.\n * @returns {Object} Returns `object`.\n */\n function baseCopy(source, object, props) {\n if (!props) {\n props = object;\n object = {};\n }\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n object[key] = source[key];\n }\n return object;\n }\n\n /**\n * The base implementation of `_.bindAll` without support for individual\n * method name arguments.\n *\n * @private\n * @param {Object} object The object to bind and assign the bound methods to.\n * @param {string[]} methodNames The object method names to bind.\n * @returns {Object} Returns `object`.\n */\n function baseBindAll(object, methodNames) {\n var index = -1,\n length = methodNames.length;\n\n while (++index < length) {\n var key = methodNames[index];\n object[key] = createWrapper(object[key], BIND_FLAG, object);\n }\n return object;\n }\n\n /**\n * The base implementation of `_.callback` which supports specifying the\n * number of arguments to provide to `func`.\n *\n * @private\n * @param {*} [func=_.identity] The value to convert to a callback.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {number} [argCount] The number of arguments to provide to `func`.\n * @returns {Function} Returns the callback.\n */\n function baseCallback(func, thisArg, argCount) {\n var type = typeof func;\n if (type == 'function') {\n return (typeof thisArg != 'undefined' && isBindable(func))\n ? bindCallback(func, thisArg, argCount)\n : func;\n }\n if (func == null) {\n return identity;\n }\n if (type == 'object') {\n return baseMatches(func);\n }\n return typeof thisArg == 'undefined'\n ? baseProperty(func + '')\n : baseMatchesProperty(func + '', thisArg);\n }\n\n /**\n * The base implementation of `_.clone` without support for argument juggling\n * and `this` binding `customizer` functions.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @param {Function} [customizer] The function to customize cloning values.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The object `value` belongs to.\n * @param {Array} [stackA=[]] Tracks traversed source objects.\n * @param {Array} [stackB=[]] Associates clones with source counterparts.\n * @returns {*} Returns the cloned value.\n */\n function baseClone(value, isDeep, customizer, key, object, stackA, stackB) {\n var result;\n if (customizer) {\n result = object ? customizer(value, key, object) : customizer(value);\n }\n if (typeof result != 'undefined') {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return arrayCopy(value, result);\n }\n } else {\n var tag = objToString.call(value),\n isFunc = tag == funcTag;\n\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = initCloneObject(isFunc ? {} : value);\n if (!isDeep) {\n return baseCopy(value, result, keys(value));\n }\n } else {\n return cloneableTags[tag]\n ? initCloneByTag(value, tag, isDeep)\n : (object ? value : {});\n }\n }\n // Check for circular references and return corresponding clone.\n stackA || (stackA = []);\n stackB || (stackB = []);\n\n var length = stackA.length;\n while (length--) {\n if (stackA[length] == value) {\n return stackB[length];\n }\n }\n // Add the source value to the stack of traversed objects and associate it with its clone.\n stackA.push(value);\n stackB.push(result);\n\n // Recursively populate clone (susceptible to call stack limits).\n (isArr ? arrayEach : baseForOwn)(value, function(subValue, key) {\n result[key] = baseClone(subValue, isDeep, customizer, key, value, stackA, stackB);\n });\n return result;\n }\n\n /**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} prototype The object to inherit from.\n * @returns {Object} Returns the new object.\n */\n var baseCreate = (function() {\n function Object() {}\n return function(prototype) {\n if (isObject(prototype)) {\n Object.prototype = prototype;\n var result = new Object;\n Object.prototype = null;\n }\n return result || context.Object();\n };\n }());\n\n /**\n * The base implementation of `_.delay` and `_.defer` which accepts an index\n * of where to slice the arguments to provide to `func`.\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {Object} args The `arguments` object to slice and provide to `func`.\n * @returns {number} Returns the timer id.\n */\n function baseDelay(func, wait, args, fromIndex) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return setTimeout(function() { func.apply(undefined, baseSlice(args, fromIndex)); }, wait);\n }\n\n /**\n * The base implementation of `_.difference` which accepts a single array\n * of values to exclude.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n */\n function baseDifference(array, values) {\n var length = array ? array.length : 0,\n result = [];\n\n if (!length) {\n return result;\n }\n var index = -1,\n indexOf = getIndexOf(),\n isCommon = indexOf == baseIndexOf,\n cache = (isCommon && values.length >= 200) ? createCache(values) : null,\n valuesLength = values.length;\n\n if (cache) {\n indexOf = cacheIndexOf;\n isCommon = false;\n values = cache;\n }\n outer:\n while (++index < length) {\n var value = array[index];\n\n if (isCommon && value === value) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === value) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (indexOf(values, value) < 0) {\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.forEach` without support for callback\n * shorthands and `this` binding.\n *\n * @private\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object|string} Returns `collection`.\n */\n function baseEach(collection, iteratee) {\n var length = collection ? collection.length : 0;\n if (!isLength(length)) {\n return baseForOwn(collection, iteratee);\n }\n var index = -1,\n iterable = toObject(collection);\n\n while (++index < length) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n }\n\n /**\n * The base implementation of `_.forEachRight` without support for callback\n * shorthands and `this` binding.\n *\n * @private\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object|string} Returns `collection`.\n */\n function baseEachRight(collection, iteratee) {\n var length = collection ? collection.length : 0;\n if (!isLength(length)) {\n return baseForOwnRight(collection, iteratee);\n }\n var iterable = toObject(collection);\n while (length--) {\n if (iteratee(iterable[length], length, iterable) === false) {\n break;\n }\n }\n return collection;\n }\n\n /**\n * The base implementation of `_.every` without support for callback\n * shorthands or `this` binding.\n *\n * @private\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`\n */\n function baseEvery(collection, predicate) {\n var result = true;\n baseEach(collection, function(value, index, collection) {\n result = !!predicate(value, index, collection);\n return result;\n });\n return result;\n }\n\n /**\n * The base implementation of `_.fill` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n */\n function baseFill(array, value, start, end) {\n var length = array.length;\n\n start = start == null ? 0 : (+start || 0);\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = (typeof end == 'undefined' || end > length) ? length : (+end || 0);\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : end >>> 0;\n start >>>= 0;\n\n while (start < length) {\n array[start++] = value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.filter` without support for callback\n * shorthands or `this` binding.\n *\n * @private\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.find`, `_.findLast`, `_.findKey`, and `_.findLastKey`,\n * without support for callback shorthands and `this` binding, which iterates\n * over `collection` using the provided `eachFunc`.\n *\n * @private\n * @param {Array|Object|string} collection The collection to search.\n * @param {Function} predicate The function invoked per iteration.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @param {boolean} [retKey] Specify returning the key of the found element\n * instead of the element itself.\n * @returns {*} Returns the found element or its key, else `undefined`.\n */\n function baseFind(collection, predicate, eachFunc, retKey) {\n var result;\n eachFunc(collection, function(value, key, collection) {\n if (predicate(value, key, collection)) {\n result = retKey ? key : value;\n return false;\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.flatten` with added support for restricting\n * flattening and specifying the start index.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {boolean} [isDeep] Specify a deep flatten.\n * @param {boolean} [isStrict] Restrict flattening to arrays and `arguments` objects.\n * @param {number} [fromIndex=0] The index to start from.\n * @returns {Array} Returns the new flattened array.\n */\n function baseFlatten(array, isDeep, isStrict, fromIndex) {\n var index = (fromIndex || 0) - 1,\n length = array.length,\n resIndex = -1,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n\n if (isObjectLike(value) && isLength(value.length) && (isArray(value) || isArguments(value))) {\n if (isDeep) {\n // Recursively flatten arrays (susceptible to call stack limits).\n value = baseFlatten(value, isDeep, isStrict);\n }\n var valIndex = -1,\n valLength = value.length;\n\n result.length += valLength;\n while (++valIndex < valLength) {\n result[++resIndex] = value[valIndex];\n }\n } else if (!isStrict) {\n result[++resIndex] = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `baseForIn` and `baseForOwn` which iterates\n * over `object` properties returned by `keysFunc` invoking `iteratee` for\n * each property. Iterator functions may exit iteration early by explicitly\n * returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n function baseFor(object, iteratee, keysFunc) {\n var index = -1,\n iterable = toObject(object),\n props = keysFunc(object),\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n }\n\n /**\n * This function is like `baseFor` except that it iterates over properties\n * in the opposite order.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n function baseForRight(object, iteratee, keysFunc) {\n var iterable = toObject(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[length];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n }\n\n /**\n * The base implementation of `_.forIn` without support for callback\n * shorthands and `this` binding.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForIn(object, iteratee) {\n return baseFor(object, iteratee, keysIn);\n }\n\n /**\n * The base implementation of `_.forOwn` without support for callback\n * shorthands and `this` binding.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwn(object, iteratee) {\n return baseFor(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.forOwnRight` without support for callback\n * shorthands and `this` binding.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwnRight(object, iteratee) {\n return baseForRight(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.functions` which creates an array of\n * `object` function property names filtered from those provided.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} props The property names to filter.\n * @returns {Array} Returns the new array of filtered property names.\n */\n function baseFunctions(object, props) {\n var index = -1,\n length = props.length,\n resIndex = -1,\n result = [];\n\n while (++index < length) {\n var key = props[index];\n if (isFunction(object[key])) {\n result[++resIndex] = key;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.invoke` which requires additional arguments\n * to be provided as an array of arguments rather than individually.\n *\n * @private\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function|string} methodName The name of the method to invoke or\n * the function invoked per iteration.\n * @param {Array} [args] The arguments to invoke the method with.\n * @returns {Array} Returns the array of results.\n */\n function baseInvoke(collection, methodName, args) {\n var index = -1,\n isFunc = typeof methodName == 'function',\n length = collection ? collection.length : 0,\n result = isLength(length) ? Array(length) : [];\n\n baseEach(collection, function(value) {\n var func = isFunc ? methodName : (value != null && value[methodName]);\n result[++index] = func ? func.apply(value, args) : undefined;\n });\n return result;\n }\n\n /**\n * The base implementation of `_.isEqual` without support for `this` binding\n * `customizer` functions.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparing values.\n * @param {boolean} [isWhere] Specify performing partial comparisons.\n * @param {Array} [stackA] Tracks traversed `value` objects.\n * @param {Array} [stackB] Tracks traversed `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\n function baseIsEqual(value, other, customizer, isWhere, stackA, stackB) {\n // Exit early for identical values.\n if (value === other) {\n // Treat `+0` vs. `-0` as not equal.\n return value !== 0 || (1 / value == 1 / other);\n }\n var valType = typeof value,\n othType = typeof other;\n\n // Exit early for unlike primitive values.\n if ((valType != 'function' && valType != 'object' && othType != 'function' && othType != 'object') ||\n value == null || other == null) {\n // Return `false` unless both values are `NaN`.\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, baseIsEqual, customizer, isWhere, stackA, stackB);\n }\n\n /**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Function} [customizer] The function to customize comparing objects.\n * @param {boolean} [isWhere] Specify performing partial comparisons.\n * @param {Array} [stackA=[]] Tracks traversed `value` objects.\n * @param {Array} [stackB=[]] Tracks traversed `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function baseIsEqualDeep(object, other, equalFunc, customizer, isWhere, stackA, stackB) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = arrayTag,\n othTag = arrayTag;\n\n if (!objIsArr) {\n objTag = objToString.call(object);\n if (objTag == argsTag) {\n objTag = objectTag;\n } else if (objTag != objectTag) {\n objIsArr = isTypedArray(object);\n }\n }\n if (!othIsArr) {\n othTag = objToString.call(other);\n if (othTag == argsTag) {\n othTag = objectTag;\n } else if (othTag != objectTag) {\n othIsArr = isTypedArray(other);\n }\n }\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && !(objIsArr || objIsObj)) {\n return equalByTag(object, other, objTag);\n }\n var valWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (valWrapped || othWrapped) {\n return equalFunc(valWrapped ? object.value() : object, othWrapped ? other.value() : other, customizer, isWhere, stackA, stackB);\n }\n if (!isSameTag) {\n return false;\n }\n // Assume cyclic values are equal.\n // For more information on detecting circular references see https://es5.github.io/#JO.\n stackA || (stackA = []);\n stackB || (stackB = []);\n\n var length = stackA.length;\n while (length--) {\n if (stackA[length] == object) {\n return stackB[length] == other;\n }\n }\n // Add `object` and `other` to the stack of traversed objects.\n stackA.push(object);\n stackB.push(other);\n\n var result = (objIsArr ? equalArrays : equalObjects)(object, other, equalFunc, customizer, isWhere, stackA, stackB);\n\n stackA.pop();\n stackB.pop();\n\n return result;\n }\n\n /**\n * The base implementation of `_.isMatch` without support for callback\n * shorthands or `this` binding.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} props The source property names to match.\n * @param {Array} values The source values to match.\n * @param {Array} strictCompareFlags Strict comparison flags for source values.\n * @param {Function} [customizer] The function to customize comparing objects.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\n function baseIsMatch(object, props, values, strictCompareFlags, customizer) {\n var length = props.length;\n if (object == null) {\n return !length;\n }\n var index = -1,\n noCustomizer = !customizer;\n\n while (++index < length) {\n if ((noCustomizer && strictCompareFlags[index])\n ? values[index] !== object[props[index]]\n : !hasOwnProperty.call(object, props[index])\n ) {\n return false;\n }\n }\n index = -1;\n while (++index < length) {\n var key = props[index];\n if (noCustomizer && strictCompareFlags[index]) {\n var result = hasOwnProperty.call(object, key);\n } else {\n var objValue = object[key],\n srcValue = values[index];\n\n result = customizer ? customizer(objValue, srcValue, key) : undefined;\n if (typeof result == 'undefined') {\n result = baseIsEqual(srcValue, objValue, customizer, true);\n }\n }\n if (!result) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.map` without support for callback shorthands\n * or `this` binding.\n *\n * @private\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function baseMap(collection, iteratee) {\n var result = [];\n baseEach(collection, function(value, key, collection) {\n result.push(iteratee(value, key, collection));\n });\n return result;\n }\n\n /**\n * The base implementation of `_.matches` which does not clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new function.\n */\n function baseMatches(source) {\n var props = keys(source),\n length = props.length;\n\n if (length == 1) {\n var key = props[0],\n value = source[key];\n\n if (isStrictComparable(value)) {\n return function(object) {\n return object != null && object[key] === value && hasOwnProperty.call(object, key);\n };\n }\n }\n var values = Array(length),\n strictCompareFlags = Array(length);\n\n while (length--) {\n value = source[props[length]];\n values[length] = value;\n strictCompareFlags[length] = isStrictComparable(value);\n }\n return function(object) {\n return baseIsMatch(object, props, values, strictCompareFlags);\n };\n }\n\n /**\n * The base implementation of `_.matchesProperty` which does not coerce `key`\n * to a string.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} value The value to compare.\n * @returns {Function} Returns the new function.\n */\n function baseMatchesProperty(key, value) {\n if (isStrictComparable(value)) {\n return function(object) {\n return object != null && object[key] === value;\n };\n }\n return function(object) {\n return object != null && baseIsEqual(value, object[key], null, true);\n };\n }\n\n /**\n * The base implementation of `_.merge` without support for argument juggling,\n * multiple sources, and `this` binding `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {Function} [customizer] The function to customize merging properties.\n * @param {Array} [stackA=[]] Tracks traversed source objects.\n * @param {Array} [stackB=[]] Associates values with source counterparts.\n * @returns {Object} Returns the destination object.\n */\n function baseMerge(object, source, customizer, stackA, stackB) {\n if (!isObject(object)) {\n return object;\n }\n var isSrcArr = isLength(source.length) && (isArray(source) || isTypedArray(source));\n (isSrcArr ? arrayEach : baseForOwn)(source, function(srcValue, key, source) {\n if (isObjectLike(srcValue)) {\n stackA || (stackA = []);\n stackB || (stackB = []);\n return baseMergeDeep(object, source, key, baseMerge, customizer, stackA, stackB);\n }\n var value = object[key],\n result = customizer ? customizer(value, srcValue, key, object, source) : undefined,\n isCommon = typeof result == 'undefined';\n\n if (isCommon) {\n result = srcValue;\n }\n if ((isSrcArr || typeof result != 'undefined') &&\n (isCommon || (result === result ? result !== value : value === value))) {\n object[key] = result;\n }\n });\n return object;\n }\n\n /**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize merging properties.\n * @param {Array} [stackA=[]] Tracks traversed source objects.\n * @param {Array} [stackB=[]] Associates values with source counterparts.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function baseMergeDeep(object, source, key, mergeFunc, customizer, stackA, stackB) {\n var length = stackA.length,\n srcValue = source[key];\n\n while (length--) {\n if (stackA[length] == srcValue) {\n object[key] = stackB[length];\n return;\n }\n }\n var value = object[key],\n result = customizer ? customizer(value, srcValue, key, object, source) : undefined,\n isCommon = typeof result == 'undefined';\n\n if (isCommon) {\n result = srcValue;\n if (isLength(srcValue.length) && (isArray(srcValue) || isTypedArray(srcValue))) {\n result = isArray(value)\n ? value\n : (value ? arrayCopy(value) : []);\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n result = isArguments(value)\n ? toPlainObject(value)\n : (isPlainObject(value) ? value : {});\n }\n else {\n isCommon = false;\n }\n }\n // Add the source value to the stack of traversed objects and associate\n // it with its merged value.\n stackA.push(srcValue);\n stackB.push(result);\n\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n object[key] = mergeFunc(result, srcValue, customizer, stackA, stackB);\n } else if (result === result ? result !== value : value === value) {\n object[key] = result;\n }\n }\n\n /**\n * The base implementation of `_.property` which does not coerce `key` to a string.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n */\n function baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.pullAt` without support for individual\n * index arguments.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {number[]} indexes The indexes of elements to remove.\n * @returns {Array} Returns the new array of removed elements.\n */\n function basePullAt(array, indexes) {\n var length = indexes.length,\n result = baseAt(array, indexes);\n\n indexes.sort(baseCompareAscending);\n while (length--) {\n var index = parseFloat(indexes[length]);\n if (index != previous && isIndex(index)) {\n var previous = index;\n splice.call(array, index, 1);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.random` without support for argument juggling\n * and returning floating-point numbers.\n *\n * @private\n * @param {number} min The minimum possible value.\n * @param {number} max The maximum possible value.\n * @returns {number} Returns the random number.\n */\n function baseRandom(min, max) {\n return min + floor(nativeRandom() * (max - min + 1));\n }\n\n /**\n * The base implementation of `_.reduce` and `_.reduceRight` without support\n * for callback shorthands or `this` binding, which iterates over `collection`\n * using the provided `eachFunc`.\n *\n * @private\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initFromCollection Specify using the first or last element\n * of `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\n function baseReduce(collection, iteratee, accumulator, initFromCollection, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initFromCollection\n ? (initFromCollection = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `setData` without support for hot loop detection.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var baseSetData = !metaMap ? identity : function(func, data) {\n metaMap.set(func, data);\n return func;\n };\n\n /**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n start = start == null ? 0 : (+start || 0);\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = (typeof end == 'undefined' || end > length) ? length : (+end || 0);\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : (end - start) >>> 0;\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n }\n\n /**\n * The base implementation of `_.some` without support for callback shorthands\n * or `this` binding.\n *\n * @private\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function baseSome(collection, predicate) {\n var result;\n\n baseEach(collection, function(value, index, collection) {\n result = predicate(value, index, collection);\n return !result;\n });\n return !!result;\n }\n\n /**\n * The base implementation of `_.uniq` without support for callback shorthands\n * and `this` binding.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The function invoked per iteration.\n * @returns {Array} Returns the new duplicate-value-free array.\n */\n function baseUniq(array, iteratee) {\n var index = -1,\n indexOf = getIndexOf(),\n length = array.length,\n isCommon = indexOf == baseIndexOf,\n isLarge = isCommon && length >= 200,\n seen = isLarge ? createCache() : null,\n result = [];\n\n if (seen) {\n indexOf = cacheIndexOf;\n isCommon = false;\n } else {\n isLarge = false;\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value, index, array) : value;\n\n if (isCommon && value === value) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (indexOf(seen, computed) < 0) {\n if (iteratee || isLarge) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * returned by `keysFunc`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\n function baseValues(object, props) {\n var index = -1,\n length = props.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = object[props[index]];\n }\n return result;\n }\n\n /**\n * The base implementation of `wrapperValue` which returns the result of\n * performing a sequence of actions on the unwrapped `value`, where each\n * successive action is supplied the return value of the previous.\n *\n * @private\n * @param {*} value The unwrapped value.\n * @param {Array} actions Actions to peform to resolve the unwrapped value.\n * @returns {*} Returns the resolved unwrapped value.\n */\n function baseWrapperValue(value, actions) {\n var result = value;\n if (result instanceof LazyWrapper) {\n result = result.value();\n }\n var index = -1,\n length = actions.length;\n\n while (++index < length) {\n var args = [result],\n action = actions[index];\n\n push.apply(args, action.args);\n result = action.func.apply(action.thisArg, args);\n }\n return result;\n }\n\n /**\n * Performs a binary search of `array` to determine the index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {boolean} [retHighest] Specify returning the highest, instead\n * of the lowest, index at which a value should be inserted into `array`.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function binaryIndex(array, value, retHighest) {\n var low = 0,\n high = array ? array.length : low;\n\n if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {\n while (low < high) {\n var mid = (low + high) >>> 1,\n computed = array[mid];\n\n if (retHighest ? (computed <= value) : (computed < value)) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return high;\n }\n return binaryIndexBy(array, value, identity, retHighest);\n }\n\n /**\n * This function is like `binaryIndex` except that it invokes `iteratee` for\n * `value` and each element of `array` to compute their sort ranking. The\n * iteratee is invoked with one argument; (value).\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {boolean} [retHighest] Specify returning the highest, instead\n * of the lowest, index at which a value should be inserted into `array`.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function binaryIndexBy(array, value, iteratee, retHighest) {\n value = iteratee(value);\n\n var low = 0,\n high = array ? array.length : 0,\n valIsNaN = value !== value,\n valIsUndef = typeof value == 'undefined';\n\n while (low < high) {\n var mid = floor((low + high) / 2),\n computed = iteratee(array[mid]),\n isReflexive = computed === computed;\n\n if (valIsNaN) {\n var setLow = isReflexive || retHighest;\n } else if (valIsUndef) {\n setLow = isReflexive && (retHighest || typeof computed != 'undefined');\n } else {\n setLow = retHighest ? (computed <= value) : (computed < value);\n }\n if (setLow) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return nativeMin(high, MAX_ARRAY_INDEX);\n }\n\n /**\n * A specialized version of `baseCallback` which only supports `this` binding\n * and specifying the number of arguments to provide to `func`.\n *\n * @private\n * @param {Function} func The function to bind.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {number} [argCount] The number of arguments to provide to `func`.\n * @returns {Function} Returns the callback.\n */\n function bindCallback(func, thisArg, argCount) {\n if (typeof func != 'function') {\n return identity;\n }\n if (typeof thisArg == 'undefined') {\n return func;\n }\n switch (argCount) {\n case 1: return function(value) {\n return func.call(thisArg, value);\n };\n case 3: return function(value, index, collection) {\n return func.call(thisArg, value, index, collection);\n };\n case 4: return function(accumulator, value, index, collection) {\n return func.call(thisArg, accumulator, value, index, collection);\n };\n case 5: return function(value, other, key, object, source) {\n return func.call(thisArg, value, other, key, object, source);\n };\n }\n return function() {\n return func.apply(thisArg, arguments);\n };\n }\n\n /**\n * Creates a clone of the given array buffer.\n *\n * @private\n * @param {ArrayBuffer} buffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\n function bufferClone(buffer) {\n return bufferSlice.call(buffer, 0);\n }\n if (!bufferSlice) {\n // PhantomJS has `ArrayBuffer` and `Uint8Array` but not `Float64Array`.\n bufferClone = !(ArrayBuffer && Uint8Array) ? constant(null) : function(buffer) {\n var byteLength = buffer.byteLength,\n floatLength = Float64Array ? floor(byteLength / FLOAT64_BYTES_PER_ELEMENT) : 0,\n offset = floatLength * FLOAT64_BYTES_PER_ELEMENT,\n result = new ArrayBuffer(byteLength);\n\n if (floatLength) {\n var view = new Float64Array(result, 0, floatLength);\n view.set(new Float64Array(buffer, 0, floatLength));\n }\n if (byteLength != offset) {\n view = new Uint8Array(result, offset);\n view.set(new Uint8Array(buffer, offset));\n }\n return result;\n };\n }\n\n /**\n * Creates an array that is the composition of partially applied arguments,\n * placeholders, and provided arguments into a single array of arguments.\n *\n * @private\n * @param {Array|Object} args The provided arguments.\n * @param {Array} partials The arguments to prepend to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgs(args, partials, holders) {\n var holdersLength = holders.length,\n argsIndex = -1,\n argsLength = nativeMax(args.length - holdersLength, 0),\n leftIndex = -1,\n leftLength = partials.length,\n result = Array(argsLength + leftLength);\n\n while (++leftIndex < leftLength) {\n result[leftIndex] = partials[leftIndex];\n }\n while (++argsIndex < holdersLength) {\n result[holders[argsIndex]] = args[argsIndex];\n }\n while (argsLength--) {\n result[leftIndex++] = args[argsIndex++];\n }\n return result;\n }\n\n /**\n * This function is like `composeArgs` except that the arguments composition\n * is tailored for `_.partialRight`.\n *\n * @private\n * @param {Array|Object} args The provided arguments.\n * @param {Array} partials The arguments to append to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgsRight(args, partials, holders) {\n var holdersIndex = -1,\n holdersLength = holders.length,\n argsIndex = -1,\n argsLength = nativeMax(args.length - holdersLength, 0),\n rightIndex = -1,\n rightLength = partials.length,\n result = Array(argsLength + rightLength);\n\n while (++argsIndex < argsLength) {\n result[argsIndex] = args[argsIndex];\n }\n var pad = argsIndex;\n while (++rightIndex < rightLength) {\n result[pad + rightIndex] = partials[rightIndex];\n }\n while (++holdersIndex < holdersLength) {\n result[pad + holders[holdersIndex]] = args[argsIndex++];\n }\n return result;\n }\n\n /**\n * Creates a function that aggregates a collection, creating an accumulator\n * object composed from the results of running each element in the collection\n * through an iteratee.\n *\n * @private\n * @param {Function} setter The function to set keys and values of the accumulator object.\n * @param {Function} [initializer] The function to initialize the accumulator object.\n * @returns {Function} Returns the new aggregator function.\n */\n function createAggregator(setter, initializer) {\n return function(collection, iteratee, thisArg) {\n var result = initializer ? initializer() : {};\n iteratee = getCallback(iteratee, thisArg, 3);\n\n if (isArray(collection)) {\n var index = -1,\n length = collection.length;\n\n while (++index < length) {\n var value = collection[index];\n setter(result, value, iteratee(value, index, collection), collection);\n }\n } else {\n baseEach(collection, function(value, key, collection) {\n setter(result, value, iteratee(value, key, collection), collection);\n });\n }\n return result;\n };\n }\n\n /**\n * Creates a function that assigns properties of source object(s) to a given\n * destination object.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\n function createAssigner(assigner) {\n return function() {\n var length = arguments.length,\n object = arguments[0];\n\n if (length < 2 || object == null) {\n return object;\n }\n if (length > 3 && isIterateeCall(arguments[1], arguments[2], arguments[3])) {\n length = 2;\n }\n // Juggle arguments.\n if (length > 3 && typeof arguments[length - 2] == 'function') {\n var customizer = bindCallback(arguments[--length - 1], arguments[length--], 5);\n } else if (length > 2 && typeof arguments[length - 1] == 'function') {\n customizer = arguments[--length];\n }\n var index = 0;\n while (++index < length) {\n var source = arguments[index];\n if (source) {\n assigner(object, source, customizer);\n }\n }\n return object;\n };\n }\n\n /**\n * Creates a function that wraps `func` and invokes it with the `this`\n * binding of `thisArg`.\n *\n * @private\n * @param {Function} func The function to bind.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @returns {Function} Returns the new bound function.\n */\n function createBindWrapper(func, thisArg) {\n var Ctor = createCtorWrapper(func);\n\n function wrapper() {\n return (this instanceof wrapper ? Ctor : func).apply(thisArg, arguments);\n }\n return wrapper;\n }\n\n /**\n * Creates a `Set` cache object to optimize linear searches of large arrays.\n *\n * @private\n * @param {Array} [values] The values to cache.\n * @returns {null|Object} Returns the new cache object if `Set` is supported, else `null`.\n */\n var createCache = !(nativeCreate && Set) ? constant(null) : function(values) {\n return new SetCache(values);\n };\n\n /**\n * Creates a function that produces compound words out of the words in a\n * given string.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\n function createCompounder(callback) {\n return function(string) {\n var index = -1,\n array = words(deburr(string)),\n length = array.length,\n result = '';\n\n while (++index < length) {\n result = callback(result, array[index], index);\n }\n return result;\n };\n }\n\n /**\n * Creates a function that produces an instance of `Ctor` regardless of\n * whether it was invoked as part of a `new` expression or by `call` or `apply`.\n *\n * @private\n * @param {Function} Ctor The constructor to wrap.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCtorWrapper(Ctor) {\n return function() {\n var thisBinding = baseCreate(Ctor.prototype),\n result = Ctor.apply(thisBinding, arguments);\n\n // Mimic the constructor's `return` behavior.\n // See https://es5.github.io/#x13.2.2 for more details.\n return isObject(result) ? result : thisBinding;\n };\n }\n\n /**\n * Creates a function that gets the extremum value of a collection.\n *\n * @private\n * @param {Function} arrayFunc The function to get the extremum value from an array.\n * @param {boolean} [isMin] Specify returning the minimum, instead of the maximum,\n * extremum value.\n * @returns {Function} Returns the new extremum function.\n */\n function createExtremum(arrayFunc, isMin) {\n return function(collection, iteratee, thisArg) {\n if (thisArg && isIterateeCall(collection, iteratee, thisArg)) {\n iteratee = null;\n }\n var func = getCallback(),\n noIteratee = iteratee == null;\n\n if (!(func === baseCallback && noIteratee)) {\n noIteratee = false;\n iteratee = func(iteratee, thisArg, 3);\n }\n if (noIteratee) {\n var isArr = isArray(collection);\n if (!isArr && isString(collection)) {\n iteratee = charAtCallback;\n } else {\n return arrayFunc(isArr ? collection : toIterable(collection));\n }\n }\n return extremumBy(collection, iteratee, isMin);\n };\n }\n\n /**\n * Creates a function that wraps `func` and invokes it with optional `this`\n * binding of, partial application, and currying.\n *\n * @private\n * @param {Function|string} func The function or method name to reference.\n * @param {number} bitmask The bitmask of flags. See `createWrapper` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [partialsRight] The arguments to append to those provided to the new function.\n * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createHybridWrapper(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {\n var isAry = bitmask & ARY_FLAG,\n isBind = bitmask & BIND_FLAG,\n isBindKey = bitmask & BIND_KEY_FLAG,\n isCurry = bitmask & CURRY_FLAG,\n isCurryBound = bitmask & CURRY_BOUND_FLAG,\n isCurryRight = bitmask & CURRY_RIGHT_FLAG;\n\n var Ctor = !isBindKey && createCtorWrapper(func),\n key = func;\n\n function wrapper() {\n // Avoid `arguments` object use disqualifying optimizations by\n // converting it to an array before providing it to other functions.\n var length = arguments.length,\n index = length,\n args = Array(length);\n\n while (index--) {\n args[index] = arguments[index];\n }\n if (partials) {\n args = composeArgs(args, partials, holders);\n }\n if (partialsRight) {\n args = composeArgsRight(args, partialsRight, holdersRight);\n }\n if (isCurry || isCurryRight) {\n var placeholder = wrapper.placeholder,\n argsHolders = replaceHolders(args, placeholder);\n\n length -= argsHolders.length;\n if (length < arity) {\n var newArgPos = argPos ? arrayCopy(argPos) : null,\n newArity = nativeMax(arity - length, 0),\n newsHolders = isCurry ? argsHolders : null,\n newHoldersRight = isCurry ? null : argsHolders,\n newPartials = isCurry ? args : null,\n newPartialsRight = isCurry ? null : args;\n\n bitmask |= (isCurry ? PARTIAL_FLAG : PARTIAL_RIGHT_FLAG);\n bitmask &= ~(isCurry ? PARTIAL_RIGHT_FLAG : PARTIAL_FLAG);\n\n if (!isCurryBound) {\n bitmask &= ~(BIND_FLAG | BIND_KEY_FLAG);\n }\n var result = createHybridWrapper(func, bitmask, thisArg, newPartials, newsHolders, newPartialsRight, newHoldersRight, newArgPos, ary, newArity);\n result.placeholder = placeholder;\n return result;\n }\n }\n var thisBinding = isBind ? thisArg : this;\n if (isBindKey) {\n func = thisBinding[key];\n }\n if (argPos) {\n args = reorder(args, argPos);\n }\n if (isAry && ary < args.length) {\n args.length = ary;\n }\n return (this instanceof wrapper ? (Ctor || createCtorWrapper(func)) : func).apply(thisBinding, args);\n }\n return wrapper;\n }\n\n /**\n * Creates the pad required for `string` based on the given padding length.\n * The `chars` string may be truncated if the number of padding characters\n * exceeds the padding length.\n *\n * @private\n * @param {string} string The string to create padding for.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the pad for `string`.\n */\n function createPad(string, length, chars) {\n var strLength = string.length;\n length = +length;\n\n if (strLength >= length || !nativeIsFinite(length)) {\n return '';\n }\n var padLength = length - strLength;\n chars = chars == null ? ' ' : (chars + '');\n return repeat(chars, ceil(padLength / chars.length)).slice(0, padLength);\n }\n\n /**\n * Creates a function that wraps `func` and invokes it with the optional `this`\n * binding of `thisArg` and the `partials` prepended to those provided to\n * the wrapper.\n *\n * @private\n * @param {Function} func The function to partially apply arguments to.\n * @param {number} bitmask The bitmask of flags. See `createWrapper` for more details.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} partials The arguments to prepend to those provided to the new function.\n * @returns {Function} Returns the new bound function.\n */\n function createPartialWrapper(func, bitmask, thisArg, partials) {\n var isBind = bitmask & BIND_FLAG,\n Ctor = createCtorWrapper(func);\n\n function wrapper() {\n // Avoid `arguments` object use disqualifying optimizations by\n // converting it to an array before providing it `func`.\n var argsIndex = -1,\n argsLength = arguments.length,\n leftIndex = -1,\n leftLength = partials.length,\n args = Array(argsLength + leftLength);\n\n while (++leftIndex < leftLength) {\n args[leftIndex] = partials[leftIndex];\n }\n while (argsLength--) {\n args[leftIndex++] = arguments[++argsIndex];\n }\n return (this instanceof wrapper ? Ctor : func).apply(isBind ? thisArg : this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a function that either curries or invokes `func` with optional\n * `this` binding and partially applied arguments.\n *\n * @private\n * @param {Function|string} func The function or method name to reference.\n * @param {number} bitmask The bitmask of flags.\n * The bitmask may be composed of the following flags:\n * 1 - `_.bind`\n * 2 - `_.bindKey`\n * 4 - `_.curry` or `_.curryRight` of a bound function\n * 8 - `_.curry`\n * 16 - `_.curryRight`\n * 32 - `_.partial`\n * 64 - `_.partialRight`\n * 128 - `_.rearg`\n * 256 - `_.ary`\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to be partially applied.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createWrapper(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {\n var isBindKey = bitmask & BIND_KEY_FLAG;\n if (!isBindKey && typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var length = partials ? partials.length : 0;\n if (!length) {\n bitmask &= ~(PARTIAL_FLAG | PARTIAL_RIGHT_FLAG);\n partials = holders = null;\n }\n length -= (holders ? holders.length : 0);\n if (bitmask & PARTIAL_RIGHT_FLAG) {\n var partialsRight = partials,\n holdersRight = holders;\n\n partials = holders = null;\n }\n var data = !isBindKey && getData(func),\n newData = [func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity];\n\n if (data && data !== true) {\n mergeData(newData, data);\n bitmask = newData[1];\n arity = newData[9];\n }\n newData[9] = arity == null\n ? (isBindKey ? 0 : func.length)\n : (nativeMax(arity - length, 0) || 0);\n\n if (bitmask == BIND_FLAG) {\n var result = createBindWrapper(newData[0], newData[2]);\n } else if ((bitmask == PARTIAL_FLAG || bitmask == (BIND_FLAG | PARTIAL_FLAG)) && !newData[4].length) {\n result = createPartialWrapper.apply(undefined, newData);\n } else {\n result = createHybridWrapper.apply(undefined, newData);\n }\n var setter = data ? baseSetData : setData;\n return setter(result, newData);\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Function} [customizer] The function to customize comparing arrays.\n * @param {boolean} [isWhere] Specify performing partial comparisons.\n * @param {Array} [stackA] Tracks traversed `value` objects.\n * @param {Array} [stackB] Tracks traversed `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\n function equalArrays(array, other, equalFunc, customizer, isWhere, stackA, stackB) {\n var index = -1,\n arrLength = array.length,\n othLength = other.length,\n result = true;\n\n if (arrLength != othLength && !(isWhere && othLength > arrLength)) {\n return false;\n }\n // Deep compare the contents, ignoring non-numeric properties.\n while (result && ++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n result = undefined;\n if (customizer) {\n result = isWhere\n ? customizer(othValue, arrValue, index)\n : customizer(arrValue, othValue, index);\n }\n if (typeof result == 'undefined') {\n // Recursively compare arrays (susceptible to call stack limits).\n if (isWhere) {\n var othIndex = othLength;\n while (othIndex--) {\n othValue = other[othIndex];\n result = (arrValue && arrValue === othValue) || equalFunc(arrValue, othValue, customizer, isWhere, stackA, stackB);\n if (result) {\n break;\n }\n }\n } else {\n result = (arrValue && arrValue === othValue) || equalFunc(arrValue, othValue, customizer, isWhere, stackA, stackB);\n }\n }\n }\n return !!result;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} value The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalByTag(object, other, tag) {\n switch (tag) {\n case boolTag:\n case dateTag:\n // Coerce dates and booleans to numbers, dates to milliseconds and booleans\n // to `1` or `0` treating invalid dates coerced to `NaN` as not equal.\n return +object == +other;\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case numberTag:\n // Treat `NaN` vs. `NaN` as equal.\n return (object != +object)\n ? other != +other\n // But, treat `-0` vs. `+0` as not equal.\n : (object == 0 ? ((1 / object) == (1 / other)) : object == +other);\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings primitives and string\n // objects as equal. See https://es5.github.io/#x15.10.6.4 for more details.\n return object == (other + '');\n }\n return false;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Function} [customizer] The function to customize comparing values.\n * @param {boolean} [isWhere] Specify performing partial comparisons.\n * @param {Array} [stackA] Tracks traversed `value` objects.\n * @param {Array} [stackB] Tracks traversed `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalObjects(object, other, equalFunc, customizer, isWhere, stackA, stackB) {\n var objProps = keys(object),\n objLength = objProps.length,\n othProps = keys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isWhere) {\n return false;\n }\n var hasCtor,\n index = -1;\n\n while (++index < objLength) {\n var key = objProps[index],\n result = hasOwnProperty.call(other, key);\n\n if (result) {\n var objValue = object[key],\n othValue = other[key];\n\n result = undefined;\n if (customizer) {\n result = isWhere\n ? customizer(othValue, objValue, key)\n : customizer(objValue, othValue, key);\n }\n if (typeof result == 'undefined') {\n // Recursively compare objects (susceptible to call stack limits).\n result = (objValue && objValue === othValue) || equalFunc(objValue, othValue, customizer, isWhere, stackA, stackB);\n }\n }\n if (!result) {\n return false;\n }\n hasCtor || (hasCtor = key == 'constructor');\n }\n if (!hasCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor && ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor && typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Gets the extremum value of `collection` invoking `iteratee` for each value\n * in `collection` to generate the criterion by which the value is ranked.\n * The `iteratee` is invoked with three arguments; (value, index, collection).\n *\n * @private\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {boolean} [isMin] Specify returning the minimum, instead of the\n * maximum, extremum value.\n * @returns {*} Returns the extremum value.\n */\n function extremumBy(collection, iteratee, isMin) {\n var exValue = isMin ? POSITIVE_INFINITY : NEGATIVE_INFINITY,\n computed = exValue,\n result = computed;\n\n baseEach(collection, function(value, index, collection) {\n var current = iteratee(value, index, collection);\n if ((isMin ? current < computed : current > computed) || (current === exValue && current === result)) {\n computed = current;\n result = value;\n }\n });\n return result;\n }\n\n /**\n * Gets the appropriate \"callback\" function. If the `_.callback` method is\n * customized this function returns the custom method, otherwise it returns\n * the `baseCallback` function. If arguments are provided the chosen function\n * is invoked with them and its result is returned.\n *\n * @private\n * @returns {Function} Returns the chosen function or its result.\n */\n function getCallback(func, thisArg, argCount) {\n var result = lodash.callback || callback;\n result = result === callback ? baseCallback : result;\n return argCount ? result(func, thisArg, argCount) : result;\n }\n\n /**\n * Gets metadata for `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {*} Returns the metadata for `func`.\n */\n var getData = !metaMap ? noop : function(func) {\n return metaMap.get(func);\n };\n\n /**\n * Gets the appropriate \"indexOf\" function. If the `_.indexOf` method is\n * customized this function returns the custom method, otherwise it returns\n * the `baseIndexOf` function. If arguments are provided the chosen function\n * is invoked with them and its result is returned.\n *\n * @private\n * @returns {Function|number} Returns the chosen function or its result.\n */\n function getIndexOf(collection, target, fromIndex) {\n var result = lodash.indexOf || indexOf;\n result = result === indexOf ? baseIndexOf : result;\n return collection ? result(collection, target, fromIndex) : result;\n }\n\n /**\n * Gets the view, applying any `transforms` to the `start` and `end` positions.\n *\n * @private\n * @param {number} start The start of the view.\n * @param {number} end The end of the view.\n * @param {Array} [transforms] The transformations to apply to the view.\n * @returns {Object} Returns an object containing the `start` and `end`\n * positions of the view.\n */\n function getView(start, end, transforms) {\n var index = -1,\n length = transforms ? transforms.length : 0;\n\n while (++index < length) {\n var data = transforms[index],\n size = data.size;\n\n switch (data.type) {\n case 'drop': start += size; break;\n case 'dropRight': end -= size; break;\n case 'take': end = nativeMin(end, start + size); break;\n case 'takeRight': start = nativeMax(start, end - size); break;\n }\n }\n return { 'start': start, 'end': end };\n }\n\n /**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\n function initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add array properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n }\n\n /**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneObject(object) {\n var Ctor = object.constructor;\n if (!(typeof Ctor == 'function' && Ctor instanceof Ctor)) {\n Ctor = Object;\n }\n return new Ctor;\n }\n\n /**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return bufferClone(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n var buffer = object.buffer;\n return new Ctor(isDeep ? bufferClone(buffer) : buffer, object.byteOffset, object.length);\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n var result = new Ctor(object.source, reFlags.exec(object));\n result.lastIndex = object.lastIndex;\n }\n return result;\n }\n\n /**\n * Checks if `func` is eligible for `this` binding.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is eligible, else `false`.\n */\n function isBindable(func) {\n var support = lodash.support,\n result = !(support.funcNames ? func.name : support.funcDecomp);\n\n if (!result) {\n var source = fnToString.call(func);\n if (!support.funcNames) {\n result = !reFuncName.test(source);\n }\n if (!result) {\n // Check if `func` references the `this` keyword and store the result.\n result = reThis.test(source) || isNative(func);\n baseSetData(func, result);\n }\n }\n return result;\n }\n\n /**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n function isIndex(value, length) {\n value = +value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n return value > -1 && value % 1 == 0 && value < length;\n }\n\n /**\n * Checks if the provided arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call, else `false`.\n */\n function isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number') {\n var length = object.length,\n prereq = isLength(length) && isIndex(index, length);\n } else {\n prereq = type == 'string' && index in object;\n }\n if (prereq) {\n var other = object[index];\n return value === value ? value === other : other !== other;\n }\n return false;\n }\n\n /**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is based on ES `ToLength`. See the\n * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength)\n * for more details.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\n function isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\n function isStrictComparable(value) {\n return value === value && (value === 0 ? ((1 / value) > 0) : !isObject(value));\n }\n\n /**\n * Merges the function metadata of `source` into `data`.\n *\n * Merging metadata reduces the number of wrappers required to invoke a function.\n * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`\n * may be applied regardless of execution order. Methods like `_.ary` and `_.rearg`\n * augment function arguments, making the order in which they are executed important,\n * preventing the merging of metadata. However, we make an exception for a safe\n * common case where curried functions have `_.ary` and or `_.rearg` applied.\n *\n * @private\n * @param {Array} data The destination metadata.\n * @param {Array} source The source metadata.\n * @returns {Array} Returns `data`.\n */\n function mergeData(data, source) {\n var bitmask = data[1],\n srcBitmask = source[1],\n newBitmask = bitmask | srcBitmask;\n\n var arityFlags = ARY_FLAG | REARG_FLAG,\n bindFlags = BIND_FLAG | BIND_KEY_FLAG,\n comboFlags = arityFlags | bindFlags | CURRY_BOUND_FLAG | CURRY_RIGHT_FLAG;\n\n var isAry = bitmask & ARY_FLAG && !(srcBitmask & ARY_FLAG),\n isRearg = bitmask & REARG_FLAG && !(srcBitmask & REARG_FLAG),\n argPos = (isRearg ? data : source)[7],\n ary = (isAry ? data : source)[8];\n\n var isCommon = !(bitmask >= REARG_FLAG && srcBitmask > bindFlags) &&\n !(bitmask > bindFlags && srcBitmask >= REARG_FLAG);\n\n var isCombo = (newBitmask >= arityFlags && newBitmask <= comboFlags) &&\n (bitmask < REARG_FLAG || ((isRearg || isAry) && argPos.length <= ary));\n\n // Exit early if metadata can't be merged.\n if (!(isCommon || isCombo)) {\n return data;\n }\n // Use source `thisArg` if available.\n if (srcBitmask & BIND_FLAG) {\n data[2] = source[2];\n // Set when currying a bound function.\n newBitmask |= (bitmask & BIND_FLAG) ? 0 : CURRY_BOUND_FLAG;\n }\n // Compose partial arguments.\n var value = source[3];\n if (value) {\n var partials = data[3];\n data[3] = partials ? composeArgs(partials, value, source[4]) : arrayCopy(value);\n data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : arrayCopy(source[4]);\n }\n // Compose partial right arguments.\n value = source[5];\n if (value) {\n partials = data[5];\n data[5] = partials ? composeArgsRight(partials, value, source[6]) : arrayCopy(value);\n data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : arrayCopy(source[6]);\n }\n // Use source `argPos` if available.\n value = source[7];\n if (value) {\n data[7] = arrayCopy(value);\n }\n // Use source `ary` if it's smaller.\n if (srcBitmask & ARY_FLAG) {\n data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);\n }\n // Use source `arity` if one is not provided.\n if (data[9] == null) {\n data[9] = source[9];\n }\n // Use source `func` and merge bitmasks.\n data[0] = source[0];\n data[1] = newBitmask;\n\n return data;\n }\n\n /**\n * A specialized version of `_.pick` that picks `object` properties specified\n * by the `props` array.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} props The property names to pick.\n * @returns {Object} Returns the new object.\n */\n function pickByArray(object, props) {\n object = toObject(object);\n\n var index = -1,\n length = props.length,\n result = {};\n\n while (++index < length) {\n var key = props[index];\n if (key in object) {\n result[key] = object[key];\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.pick` that picks `object` properties `predicate`\n * returns truthy for.\n *\n * @private\n * @param {Object} object The source object.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Object} Returns the new object.\n */\n function pickByCallback(object, predicate) {\n var result = {};\n baseForIn(object, function(value, key, object) {\n if (predicate(value, key, object)) {\n result[key] = value;\n }\n });\n return result;\n }\n\n /**\n * Reorder `array` according to the specified indexes where the element at\n * the first index is assigned as the first element, the element at\n * the second index is assigned as the second element, and so on.\n *\n * @private\n * @param {Array} array The array to reorder.\n * @param {Array} indexes The arranged array indexes.\n * @returns {Array} Returns `array`.\n */\n function reorder(array, indexes) {\n var arrLength = array.length,\n length = nativeMin(indexes.length, arrLength),\n oldArray = arrayCopy(array);\n\n while (length--) {\n var index = indexes[length];\n array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;\n }\n return array;\n }\n\n /**\n * Sets metadata for `func`.\n *\n * **Note:** If this function becomes hot, i.e. is invoked a lot in a short\n * period of time, it will trip its breaker and transition to an identity function\n * to avoid garbage collection pauses in V8. See [V8 issue 2070](https://code.google.com/p/v8/issues/detail?id=2070)\n * for more details.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var setData = (function() {\n var count = 0,\n lastCalled = 0;\n\n return function(key, value) {\n var stamp = now(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return key;\n }\n } else {\n count = 0;\n }\n return baseSetData(key, value);\n };\n }());\n\n /**\n * A fallback implementation of `_.isPlainObject` which checks if `value`\n * is an object created by the `Object` constructor or has a `[[Prototype]]`\n * of `null`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n */\n function shimIsPlainObject(value) {\n var Ctor,\n support = lodash.support;\n\n // Exit early for non `Object` objects.\n if (!(isObjectLike(value) && objToString.call(value) == objectTag) ||\n (!hasOwnProperty.call(value, 'constructor') &&\n (Ctor = value.constructor, typeof Ctor == 'function' && !(Ctor instanceof Ctor)))) {\n return false;\n }\n // IE < 9 iterates inherited properties before own properties. If the first\n // iterated property is an object's own property then there are no inherited\n // enumerable properties.\n var result;\n // In most environments an object's own properties are iterated before\n // its inherited properties. If the last iterated property is an object's\n // own property then there are no inherited enumerable properties.\n baseForIn(value, function(subValue, key) {\n result = key;\n });\n return typeof result == 'undefined' || hasOwnProperty.call(value, result);\n }\n\n /**\n * A fallback implementation of `Object.keys` which creates an array of the\n * own enumerable property names of `object`.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the array of property names.\n */\n function shimKeys(object) {\n var props = keysIn(object),\n propsLength = props.length,\n length = propsLength && object.length,\n support = lodash.support;\n\n var allowIndexes = length && isLength(length) &&\n (isArray(object) || (support.nonEnumArgs && isArguments(object)));\n\n var index = -1,\n result = [];\n\n while (++index < propsLength) {\n var key = props[index];\n if ((allowIndexes && isIndex(key, length)) || hasOwnProperty.call(object, key)) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * Converts `value` to an array-like object if it is not one.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {Array|Object} Returns the array-like object.\n */\n function toIterable(value) {\n if (value == null) {\n return [];\n }\n if (!isLength(value.length)) {\n return values(value);\n }\n return isObject(value) ? value : Object(value);\n }\n\n /**\n * Converts `value` to an object if it is not one.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {Object} Returns the object.\n */\n function toObject(value) {\n return isObject(value) ? value : Object(value);\n }\n\n /**\n * Creates a clone of `wrapper`.\n *\n * @private\n * @param {Object} wrapper The wrapper to clone.\n * @returns {Object} Returns the cloned wrapper.\n */\n function wrapperClone(wrapper) {\n return wrapper instanceof LazyWrapper\n ? wrapper.clone()\n : new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__, arrayCopy(wrapper.__actions__));\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of elements split into groups the length of `size`.\n * If `collection` can't be split evenly, the final chunk will be the remaining\n * elements.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to process.\n * @param {number} [size=1] The length of each chunk.\n * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.\n * @returns {Array} Returns the new array containing chunks.\n * @example\n *\n * _.chunk(['a', 'b', 'c', 'd'], 2);\n * // => [['a', 'b'], ['c', 'd']]\n *\n * _.chunk(['a', 'b', 'c', 'd'], 3);\n * // => [['a', 'b', 'c'], ['d']]\n */\n function chunk(array, size, guard) {\n if (guard ? isIterateeCall(array, size, guard) : size == null) {\n size = 1;\n } else {\n size = nativeMax(+size || 1, 1);\n }\n var index = 0,\n length = array ? array.length : 0,\n resIndex = -1,\n result = Array(ceil(length / size));\n\n while (index < length) {\n result[++resIndex] = baseSlice(array, index, (index += size));\n }\n return result;\n }\n\n /**\n * Creates an array with all falsey values removed. The values `false`, `null`,\n * `0`, `\"\"`, `undefined`, and `NaN` are falsey.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to compact.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.compact([0, 1, false, 2, '', 3]);\n * // => [1, 2, 3]\n */\n function compact(array) {\n var index = -1,\n length = array ? array.length : 0,\n resIndex = -1,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value) {\n result[++resIndex] = value;\n }\n }\n return result;\n }\n\n /**\n * Creates an array excluding all values of the provided arrays using\n * `SameValueZero` for equality comparisons.\n *\n * **Note:** `SameValueZero` comparisons are like strict equality comparisons,\n * e.g. `===`, except that `NaN` matches `NaN`. See the\n * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The arrays of values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.difference([1, 2, 3], [4, 2]);\n * // => [1, 3]\n */\n function difference() {\n var index = -1,\n length = arguments.length;\n\n while (++index < length) {\n var value = arguments[index];\n if (isArray(value) || isArguments(value)) {\n break;\n }\n }\n return baseDifference(value, baseFlatten(arguments, false, true, ++index));\n }\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the beginning.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.drop([1, 2, 3]);\n * // => [2, 3]\n *\n * _.drop([1, 2, 3], 2);\n * // => [3]\n *\n * _.drop([1, 2, 3], 5);\n * // => []\n *\n * _.drop([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function drop(array, n, guard) {\n var length = array ? array.length : 0;\n if (!length) {\n return [];\n }\n if (guard ? isIterateeCall(array, n, guard) : n == null) {\n n = 1;\n }\n return baseSlice(array, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the end.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.dropRight([1, 2, 3]);\n * // => [1, 2]\n *\n * _.dropRight([1, 2, 3], 2);\n * // => [1]\n *\n * _.dropRight([1, 2, 3], 5);\n * // => []\n *\n * _.dropRight([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function dropRight(array, n, guard) {\n var length = array ? array.length : 0;\n if (!length) {\n return [];\n }\n if (guard ? isIterateeCall(array, n, guard) : n == null) {\n n = 1;\n }\n n = length - (+n || 0);\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the end.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * bound to `thisArg` and invoked with three arguments; (value, index, array).\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that match the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function|Object|string} [predicate=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `predicate`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.dropRightWhile([1, 2, 3], function(n) {\n * return n > 1;\n * });\n * // => [1]\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * // using the `_.matches` callback shorthand\n * _.pluck(_.dropRightWhile(users, { 'user': pebbles, 'active': false }), 'user');\n * // => ['barney', 'fred']\n *\n * // using the `_.matchesProperty` callback shorthand\n * _.pluck(_.dropRightWhile(users, 'active', false), 'user');\n * // => ['barney']\n *\n * // using the `_.property` callback shorthand\n * _.pluck(_.dropRightWhile(users, 'active'), 'user');\n * // => ['barney', 'fred', 'pebbles']\n */\n function dropRightWhile(array, predicate, thisArg) {\n var length = array ? array.length : 0;\n if (!length) {\n return [];\n }\n predicate = getCallback(predicate, thisArg, 3);\n while (length-- && predicate(array[length], length, array)) {}\n return baseSlice(array, 0, length + 1);\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the beginning.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * bound to `thisArg` and invoked with three arguments; (value, index, array).\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function|Object|string} [predicate=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `predicate`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.dropWhile([1, 2, 3], function(n) {\n * return n < 3;\n * });\n * // => [3]\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * // using the `_.matches` callback shorthand\n * _.pluck(_.dropWhile(users, { 'user': 'barney', 'active': false }), 'user');\n * // => ['fred', 'pebbles']\n *\n * // using the `_.matchesProperty` callback shorthand\n * _.pluck(_.dropWhile(users, 'active', false), 'user');\n * // => ['pebbles']\n *\n * // using the `_.property` callback shorthand\n * _.pluck(_.dropWhile(users, 'active'), 'user');\n * // => ['barney', 'fred', 'pebbles']\n */\n function dropWhile(array, predicate, thisArg) {\n var length = array ? array.length : 0;\n if (!length) {\n return [];\n }\n var index = -1;\n predicate = getCallback(predicate, thisArg, 3);\n while (++index < length && predicate(array[index], index, array)) {}\n return baseSlice(array, index);\n }\n\n /**\n * Fills elements of `array` with `value` from `start` up to, but not\n * including, `end`.\n *\n * **Note:** This method mutates `array`.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n */\n function fill(array, value, start, end) {\n var length = array ? array.length : 0;\n if (!length) {\n return [];\n }\n if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {\n start = 0;\n end = length;\n }\n return baseFill(array, value, start, end);\n }\n\n /**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for, instead of the element itself.\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to search.\n * @param {Function|Object|string} [predicate=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `predicate`.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(chr) {\n * return chr.user == 'barney';\n * });\n * // => 0\n *\n * // using the `_.matches` callback shorthand\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // using the `_.matchesProperty` callback shorthand\n * _.findIndex(users, 'active', false);\n * // => 0\n *\n * // using the `_.property` callback shorthand\n * _.findIndex(users, 'active');\n * // => 2\n */\n function findIndex(array, predicate, thisArg) {\n var index = -1,\n length = array ? array.length : 0;\n\n predicate = getCallback(predicate, thisArg, 3);\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.findIndex` except that it iterates over elements\n * of `collection` from right to left.\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to search.\n * @param {Function|Object|string} [predicate=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `predicate`.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.findLastIndex(users, function(chr) {\n * return chr.user == 'pebbles';\n * });\n * // => 2\n *\n * // using the `_.matches` callback shorthand\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n * // => 0\n *\n * // using the `_.matchesProperty` callback shorthand\n * _.findLastIndex(users, 'active', false);\n * // => 1\n *\n * // using the `_.property` callback shorthand\n * _.findLastIndex(users, 'active');\n * // => 0\n */\n function findLastIndex(array, predicate, thisArg) {\n var length = array ? array.length : 0;\n predicate = getCallback(predicate, thisArg, 3);\n while (length--) {\n if (predicate(array[length], length, array)) {\n return length;\n }\n }\n return -1;\n }\n\n /**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @alias head\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.first([1, 2, 3]);\n * // => 1\n *\n * _.first([]);\n * // => undefined\n */\n function first(array) {\n return array ? array[0] : undefined;\n }\n\n /**\n * Flattens a nested array. If `isDeep` is `true` the array is recursively\n * flattened, otherwise it is only flattened a single level.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to flatten.\n * @param {boolean} [isDeep] Specify a deep flatten.\n * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, 3, [4]]]);\n * // => [1, 2, 3, [4]];\n *\n * // using `isDeep`\n * _.flatten([1, [2, 3, [4]]], true);\n * // => [1, 2, 3, 4];\n */\n function flatten(array, isDeep, guard) {\n var length = array ? array.length : 0;\n if (guard && isIterateeCall(array, isDeep, guard)) {\n isDeep = false;\n }\n return length ? baseFlatten(array, isDeep) : [];\n }\n\n /**\n * Recursively flattens a nested array.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to recursively flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flattenDeep([1, [2, 3, [4]]]);\n * // => [1, 2, 3, 4];\n */\n function flattenDeep(array) {\n var length = array ? array.length : 0;\n return length ? baseFlatten(array, true) : [];\n }\n\n /**\n * Gets the index at which the first occurrence of `value` is found in `array`\n * using `SameValueZero` for equality comparisons. If `fromIndex` is negative,\n * it is used as the offset from the end of `array`. If `array` is sorted\n * providing `true` for `fromIndex` performs a faster binary search.\n *\n * **Note:** `SameValueZero` comparisons are like strict equality comparisons,\n * e.g. `===`, except that `NaN` matches `NaN`. See the\n * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to search.\n * @param {*} value The value to search for.\n * @param {boolean|number} [fromIndex=0] The index to search from or `true`\n * to perform a binary search on a sorted array.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.indexOf([1, 2, 1, 2], 2);\n * // => 1\n *\n * // using `fromIndex`\n * _.indexOf([1, 2, 1, 2], 2, 2);\n * // => 3\n *\n * // performing a binary search\n * _.indexOf([1, 1, 2, 2], 2, true);\n * // => 2\n */\n function indexOf(array, value, fromIndex) {\n var length = array ? array.length : 0;\n if (!length) {\n return -1;\n }\n if (typeof fromIndex == 'number') {\n fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : (fromIndex || 0);\n } else if (fromIndex) {\n var index = binaryIndex(array, value),\n other = array[index];\n\n return (value === value ? value === other : other !== other) ? index : -1;\n }\n return baseIndexOf(array, value, fromIndex);\n }\n\n /**\n * Gets all but the last element of `array`.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.initial([1, 2, 3]);\n * // => [1, 2]\n */\n function initial(array) {\n return dropRight(array, 1);\n }\n\n /**\n * Creates an array of unique values in all provided arrays using `SameValueZero`\n * for equality comparisons.\n *\n * **Note:** `SameValueZero` comparisons are like strict equality comparisons,\n * e.g. `===`, except that `NaN` matches `NaN`. See the\n * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of shared values.\n * @example\n * _.intersection([1, 2], [4, 2], [2, 1]);\n * // => [2]\n */\n function intersection() {\n var args = [],\n argsIndex = -1,\n argsLength = arguments.length,\n caches = [],\n indexOf = getIndexOf(),\n isCommon = indexOf == baseIndexOf;\n\n while (++argsIndex < argsLength) {\n var value = arguments[argsIndex];\n if (isArray(value) || isArguments(value)) {\n args.push(value);\n caches.push((isCommon && value.length >= 120) ? createCache(argsIndex && value) : null);\n }\n }\n argsLength = args.length;\n var array = args[0],\n index = -1,\n length = array ? array.length : 0,\n result = [],\n seen = caches[0];\n\n outer:\n while (++index < length) {\n value = array[index];\n if ((seen ? cacheIndexOf(seen, value) : indexOf(result, value)) < 0) {\n argsIndex = argsLength;\n while (--argsIndex) {\n var cache = caches[argsIndex];\n if ((cache ? cacheIndexOf(cache, value) : indexOf(args[argsIndex], value)) < 0) {\n continue outer;\n }\n }\n if (seen) {\n seen.push(value);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\n function last(array) {\n var length = array ? array.length : 0;\n return length ? array[length - 1] : undefined;\n }\n\n /**\n * This method is like `_.indexOf` except that it iterates over elements of\n * `array` from right to left.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to search.\n * @param {*} value The value to search for.\n * @param {boolean|number} [fromIndex=array.length-1] The index to search from\n * or `true` to perform a binary search on a sorted array.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.lastIndexOf([1, 2, 1, 2], 2);\n * // => 3\n *\n * // using `fromIndex`\n * _.lastIndexOf([1, 2, 1, 2], 2, 2);\n * // => 1\n *\n * // performing a binary search\n * _.lastIndexOf([1, 1, 2, 2], 2, true);\n * // => 3\n */\n function lastIndexOf(array, value, fromIndex) {\n var length = array ? array.length : 0;\n if (!length) {\n return -1;\n }\n var index = length;\n if (typeof fromIndex == 'number') {\n index = (fromIndex < 0 ? nativeMax(length + fromIndex, 0) : nativeMin(fromIndex || 0, length - 1)) + 1;\n } else if (fromIndex) {\n index = binaryIndex(array, value, true) - 1;\n var other = array[index];\n return (value === value ? value === other : other !== other) ? index : -1;\n }\n if (value !== value) {\n return indexOfNaN(array, index, true);\n }\n while (index--) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * Removes all provided values from `array` using `SameValueZero` for equality\n * comparisons.\n *\n * **Notes:**\n * - Unlike `_.without`, this method mutates `array`.\n * - `SameValueZero` comparisons are like strict equality comparisons, e.g. `===`,\n * except that `NaN` matches `NaN`. See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...*} [values] The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3, 1, 2, 3];\n *\n * _.pull(array, 2, 3);\n * console.log(array);\n * // => [1, 1]\n */\n function pull() {\n var array = arguments[0];\n if (!(array && array.length)) {\n return array;\n }\n var index = 0,\n indexOf = getIndexOf(),\n length = arguments.length;\n\n while (++index < length) {\n var fromIndex = 0,\n value = arguments[index];\n\n while ((fromIndex = indexOf(array, value, fromIndex)) > -1) {\n splice.call(array, fromIndex, 1);\n }\n }\n return array;\n }\n\n /**\n * Removes elements from `array` corresponding to the given indexes and returns\n * an array of the removed elements. Indexes may be specified as an array of\n * indexes or as individual arguments.\n *\n * **Note:** Unlike `_.at`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...(number|number[])} [indexes] The indexes of elements to remove,\n * specified as individual indexes or arrays of indexes.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = [5, 10, 15, 20];\n * var evens = _.pullAt(array, 1, 3);\n *\n * console.log(array);\n * // => [5, 15]\n *\n * console.log(evens);\n * // => [10, 20]\n */\n function pullAt(array) {\n return basePullAt(array || [], baseFlatten(arguments, false, false, 1));\n }\n\n /**\n * Removes all elements from `array` that `predicate` returns truthy for\n * and returns an array of the removed elements. The predicate is bound to\n * `thisArg` and invoked with three arguments; (value, index, array).\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * **Note:** Unlike `_.filter`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Function|Object|string} [predicate=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `predicate`.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = [1, 2, 3, 4];\n * var evens = _.remove(array, function(n) {\n * return n % 2 == 0;\n * });\n *\n * console.log(array);\n * // => [1, 3]\n *\n * console.log(evens);\n * // => [2, 4]\n */\n function remove(array, predicate, thisArg) {\n var index = -1,\n length = array ? array.length : 0,\n result = [];\n\n predicate = getCallback(predicate, thisArg, 3);\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result.push(value);\n splice.call(array, index--, 1);\n length--;\n }\n }\n return result;\n }\n\n /**\n * Gets all but the first element of `array`.\n *\n * @static\n * @memberOf _\n * @alias tail\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.rest([1, 2, 3]);\n * // => [2, 3]\n */\n function rest(array) {\n return drop(array, 1);\n }\n\n /**\n * Creates a slice of `array` from `start` up to, but not including, `end`.\n *\n * **Note:** This function is used instead of `Array#slice` to support node\n * lists in IE < 9 and to ensure dense arrays are returned.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function slice(array, start, end) {\n var length = array ? array.length : 0;\n if (!length) {\n return [];\n }\n if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {\n start = 0;\n end = length;\n }\n return baseSlice(array, start, end);\n }\n\n /**\n * Uses a binary search to determine the lowest index at which `value` should\n * be inserted into `array` in order to maintain its sort order. If an iteratee\n * function is provided it is invoked for `value` and each element of `array`\n * to compute their sort ranking. The iteratee is bound to `thisArg` and\n * invoked with one argument; (value).\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function|Object|string} [iteratee=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedIndex([30, 50], 40);\n * // => 1\n *\n * _.sortedIndex([4, 4, 5, 5], 5);\n * // => 2\n *\n * var dict = { 'data': { 'thirty': 30, 'forty': 40, 'fifty': 50 } };\n *\n * // using an iteratee function\n * _.sortedIndex(['thirty', 'fifty'], 'forty', function(word) {\n * return this.data[word];\n * }, dict);\n * // => 1\n *\n * // using the `_.property` callback shorthand\n * _.sortedIndex([{ 'x': 30 }, { 'x': 50 }], { 'x': 40 }, 'x');\n * // => 1\n */\n function sortedIndex(array, value, iteratee, thisArg) {\n var func = getCallback(iteratee);\n return (func === baseCallback && iteratee == null)\n ? binaryIndex(array, value)\n : binaryIndexBy(array, value, func(iteratee, thisArg, 1));\n }\n\n /**\n * This method is like `_.sortedIndex` except that it returns the highest\n * index at which `value` should be inserted into `array` in order to\n * maintain its sort order.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function|Object|string} [iteratee=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedLastIndex([4, 4, 5, 5], 5);\n * // => 4\n */\n function sortedLastIndex(array, value, iteratee, thisArg) {\n var func = getCallback(iteratee);\n return (func === baseCallback && iteratee == null)\n ? binaryIndex(array, value, true)\n : binaryIndexBy(array, value, func(iteratee, thisArg, 1), true);\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the beginning.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.take([1, 2, 3]);\n * // => [1]\n *\n * _.take([1, 2, 3], 2);\n * // => [1, 2]\n *\n * _.take([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.take([1, 2, 3], 0);\n * // => []\n */\n function take(array, n, guard) {\n var length = array ? array.length : 0;\n if (!length) {\n return [];\n }\n if (guard ? isIterateeCall(array, n, guard) : n == null) {\n n = 1;\n }\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the end.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.takeRight([1, 2, 3]);\n * // => [3]\n *\n * _.takeRight([1, 2, 3], 2);\n * // => [2, 3]\n *\n * _.takeRight([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.takeRight([1, 2, 3], 0);\n * // => []\n */\n function takeRight(array, n, guard) {\n var length = array ? array.length : 0;\n if (!length) {\n return [];\n }\n if (guard ? isIterateeCall(array, n, guard) : n == null) {\n n = 1;\n }\n n = length - (+n || 0);\n return baseSlice(array, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` with elements taken from the end. Elements are\n * taken until `predicate` returns falsey. The predicate is bound to `thisArg`\n * and invoked with three arguments; (value, index, array).\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function|Object|string} [predicate=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `predicate`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.takeRightWhile([1, 2, 3], function(n) {\n * return n > 1;\n * });\n * // => [2, 3]\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * // using the `_.matches` callback shorthand\n * _.pluck(_.takeRightWhile(users, { 'user': 'pebbles', 'active': false }), 'user');\n * // => ['pebbles']\n *\n * // using the `_.matchesProperty` callback shorthand\n * _.pluck(_.takeRightWhile(users, 'active', false), 'user');\n * // => ['fred', 'pebbles']\n *\n * // using the `_.property` callback shorthand\n * _.pluck(_.takeRightWhile(users, 'active'), 'user');\n * // => []\n */\n function takeRightWhile(array, predicate, thisArg) {\n var length = array ? array.length : 0;\n if (!length) {\n return [];\n }\n predicate = getCallback(predicate, thisArg, 3);\n while (length-- && predicate(array[length], length, array)) {}\n return baseSlice(array, length + 1);\n }\n\n /**\n * Creates a slice of `array` with elements taken from the beginning. Elements\n * are taken until `predicate` returns falsey. The predicate is bound to\n * `thisArg` and invoked with three arguments; (value, index, array).\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function|Object|string} [predicate=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `predicate`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.takeWhile([1, 2, 3], function(n) {\n * return n < 3;\n * });\n * // => [1, 2]\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false},\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * // using the `_.matches` callback shorthand\n * _.pluck(_.takeWhile(users, { 'user': 'barney', 'active': false }), 'user');\n * // => ['barney']\n *\n * // using the `_.matchesProperty` callback shorthand\n * _.pluck(_.takeWhile(users, 'active', false), 'user');\n * // => ['barney', 'fred']\n *\n * // using the `_.property` callback shorthand\n * _.pluck(_.takeWhile(users, 'active'), 'user');\n * // => []\n */\n function takeWhile(array, predicate, thisArg) {\n var length = array ? array.length : 0;\n if (!length) {\n return [];\n }\n var index = -1;\n predicate = getCallback(predicate, thisArg, 3);\n while (++index < length && predicate(array[index], index, array)) {}\n return baseSlice(array, 0, index);\n }\n\n /**\n * Creates an array of unique values, in order, of the provided arrays using\n * `SameValueZero` for equality comparisons.\n *\n * **Note:** `SameValueZero` comparisons are like strict equality comparisons,\n * e.g. `===`, except that `NaN` matches `NaN`. See the\n * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([1, 2], [4, 2], [2, 1]);\n * // => [1, 2, 4]\n */\n function union() {\n return baseUniq(baseFlatten(arguments, false, true));\n }\n\n /**\n * Creates a duplicate-value-free version of an array using `SameValueZero`\n * for equality comparisons. Providing `true` for `isSorted` performs a faster\n * search algorithm for sorted arrays. If an iteratee function is provided it\n * is invoked for each value in the array to generate the criterion by which\n * uniqueness is computed. The `iteratee` is bound to `thisArg` and invoked\n * with three arguments; (value, index, array).\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * **Note:** `SameValueZero` comparisons are like strict equality comparisons,\n * e.g. `===`, except that `NaN` matches `NaN`. See the\n * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)\n * for more details.\n *\n * @static\n * @memberOf _\n * @alias unique\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {boolean} [isSorted] Specify the array is sorted.\n * @param {Function|Object|string} [iteratee] The function invoked per iteration.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {Array} Returns the new duplicate-value-free array.\n * @example\n *\n * _.uniq([1, 2, 1]);\n * // => [1, 2]\n *\n * // using `isSorted`\n * _.uniq([1, 1, 2], true);\n * // => [1, 2]\n *\n * // using an iteratee function\n * _.uniq([1, 2.5, 1.5, 2], function(n) {\n * return this.floor(n);\n * }, Math);\n * // => [1, 2.5]\n *\n * // using the `_.property` callback shorthand\n * _.uniq([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n function uniq(array, isSorted, iteratee, thisArg) {\n var length = array ? array.length : 0;\n if (!length) {\n return [];\n }\n if (isSorted != null && typeof isSorted != 'boolean') {\n thisArg = iteratee;\n iteratee = isIterateeCall(array, isSorted, thisArg) ? null : isSorted;\n isSorted = false;\n }\n var func = getCallback();\n if (!(func === baseCallback && iteratee == null)) {\n iteratee = func(iteratee, thisArg, 3);\n }\n return (isSorted && getIndexOf() == baseIndexOf)\n ? sortedUniq(array, iteratee)\n : baseUniq(array, iteratee);\n }\n\n /**\n * This method is like `_.zip` except that it accepts an array of grouped\n * elements and creates an array regrouping the elements to their pre-`_.zip`\n * configuration.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip(['fred', 'barney'], [30, 40], [true, false]);\n * // => [['fred', 30, true], ['barney', 40, false]]\n *\n * _.unzip(zipped);\n * // => [['fred', 'barney'], [30, 40], [true, false]]\n */\n function unzip(array) {\n var index = -1,\n length = (array && array.length && arrayMax(arrayMap(array, getLength))) >>> 0,\n result = Array(length);\n\n while (++index < length) {\n result[index] = arrayMap(array, baseProperty(index));\n }\n return result;\n }\n\n /**\n * Creates an array excluding all provided values using `SameValueZero` for\n * equality comparisons.\n *\n * **Note:** `SameValueZero` comparisons are like strict equality comparisons,\n * e.g. `===`, except that `NaN` matches `NaN`. See the\n * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to filter.\n * @param {...*} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.without([1, 2, 1, 3], 1, 2);\n * // => [3]\n */\n function without(array) {\n return baseDifference(array, baseSlice(arguments, 1));\n }\n\n /**\n * Creates an array that is the symmetric difference of the provided arrays.\n * See [Wikipedia](https://en.wikipedia.org/wiki/Symmetric_difference) for\n * more details.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of values.\n * @example\n *\n * _.xor([1, 2], [4, 2]);\n * // => [1, 4]\n */\n function xor() {\n var index = -1,\n length = arguments.length;\n\n while (++index < length) {\n var array = arguments[index];\n if (isArray(array) || isArguments(array)) {\n var result = result\n ? baseDifference(result, array).concat(baseDifference(array, result))\n : array;\n }\n }\n return result ? baseUniq(result) : [];\n }\n\n /**\n * Creates an array of grouped elements, the first of which contains the first\n * elements of the given arrays, the second of which contains the second elements\n * of the given arrays, and so on.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zip(['fred', 'barney'], [30, 40], [true, false]);\n * // => [['fred', 30, true], ['barney', 40, false]]\n */\n function zip() {\n var length = arguments.length,\n array = Array(length);\n\n while (length--) {\n array[length] = arguments[length];\n }\n return unzip(array);\n }\n\n /**\n * Creates an object composed from arrays of property names and values. Provide\n * either a single two dimensional array, e.g. `[[key1, value1], [key2, value2]]`\n * or two arrays, one of property names and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @alias object\n * @category Array\n * @param {Array} props The property names.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['fred', 'barney'], [30, 40]);\n * // => { 'fred': 30, 'barney': 40 }\n */\n function zipObject(props, values) {\n var index = -1,\n length = props ? props.length : 0,\n result = {};\n\n if (length && !values && !isArray(props[0])) {\n values = [];\n }\n while (++index < length) {\n var key = props[index];\n if (values) {\n result[key] = values[index];\n } else if (key) {\n result[key[0]] = key[1];\n }\n }\n return result;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` object that wraps `value` with explicit method\n * chaining enabled.\n *\n * @static\n * @memberOf _\n * @category Chain\n * @param {*} value The value to wrap.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'pebbles', 'age': 1 }\n * ];\n *\n * var youngest = _.chain(users)\n * .sortBy('age')\n * .map(function(chr) {\n * return chr.user + ' is ' + chr.age;\n * })\n * .first()\n * .value();\n * // => 'pebbles is 1'\n */\n function chain(value) {\n var result = lodash(value);\n result.__chain__ = true;\n return result;\n }\n\n /**\n * This method invokes `interceptor` and returns `value`. The interceptor is\n * bound to `thisArg` and invoked with one argument; (value). The purpose of\n * this method is to \"tap into\" a method chain in order to perform operations\n * on intermediate results within the chain.\n *\n * @static\n * @memberOf _\n * @category Chain\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @param {*} [thisArg] The `this` binding of `interceptor`.\n * @returns {*} Returns `value`.\n * @example\n *\n * _([1, 2, 3])\n * .tap(function(array) {\n * array.pop();\n * })\n * .reverse()\n * .value();\n * // => [2, 1]\n */\n function tap(value, interceptor, thisArg) {\n interceptor.call(thisArg, value);\n return value;\n }\n\n /**\n * This method is like `_.tap` except that it returns the result of `interceptor`.\n *\n * @static\n * @memberOf _\n * @category Chain\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @param {*} [thisArg] The `this` binding of `interceptor`.\n * @returns {*} Returns the result of `interceptor`.\n * @example\n *\n * _([1, 2, 3])\n * .last()\n * .thru(function(value) {\n * return [value];\n * })\n * .value();\n * // => [3]\n */\n function thru(value, interceptor, thisArg) {\n return interceptor.call(thisArg, value);\n }\n\n /**\n * Enables explicit method chaining on the wrapper object.\n *\n * @name chain\n * @memberOf _\n * @category Chain\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 }\n * ];\n *\n * // without explicit chaining\n * _(users).first();\n * // => { 'user': 'barney', 'age': 36 }\n *\n * // with explicit chaining\n * _(users).chain()\n * .first()\n * .pick('user')\n * .value();\n * // => { 'user': 'barney' }\n */\n function wrapperChain() {\n return chain(this);\n }\n\n /**\n * Executes the chained sequence and returns the wrapped result.\n *\n * @name commit\n * @memberOf _\n * @category Chain\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2];\n * var wrapper = _(array).push(3);\n *\n * console.log(array);\n * // => [1, 2]\n *\n * wrapper = wrapper.commit();\n * console.log(array);\n * // => [1, 2, 3]\n *\n * wrapper.last();\n * // => 3\n *\n * console.log(array);\n * // => [1, 2, 3]\n */\n function wrapperCommit() {\n return new LodashWrapper(this.value(), this.__chain__);\n }\n\n /**\n * Creates a clone of the chained sequence planting `value` as the wrapped value.\n *\n * @name plant\n * @memberOf _\n * @category Chain\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2];\n * var wrapper = _(array).map(function(value) {\n * return Math.pow(value, 2);\n * });\n *\n * var other = [3, 4];\n * var otherWrapper = wrapper.plant(other);\n *\n * otherWrapper.value();\n * // => [9, 16]\n *\n * wrapper.value();\n * // => [1, 4]\n */\n function wrapperPlant(value) {\n var result,\n parent = this;\n\n while (parent instanceof baseLodash) {\n var clone = wrapperClone(parent);\n if (result) {\n previous.__wrapped__ = clone;\n } else {\n result = clone;\n }\n var previous = clone;\n parent = parent.__wrapped__;\n }\n previous.__wrapped__ = value;\n return result;\n }\n\n /**\n * Reverses the wrapped array so the first element becomes the last, the\n * second element becomes the second to last, and so on.\n *\n * **Note:** This method mutates the wrapped array.\n *\n * @name reverse\n * @memberOf _\n * @category Chain\n * @returns {Object} Returns the new reversed `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _(array).reverse().value()\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function wrapperReverse() {\n var value = this.__wrapped__;\n if (value instanceof LazyWrapper) {\n if (this.__actions__.length) {\n value = new LazyWrapper(this);\n }\n return new LodashWrapper(value.reverse(), this.__chain__);\n }\n return this.thru(function(value) {\n return value.reverse();\n });\n }\n\n /**\n * Produces the result of coercing the unwrapped value to a string.\n *\n * @name toString\n * @memberOf _\n * @category Chain\n * @returns {string} Returns the coerced string value.\n * @example\n *\n * _([1, 2, 3]).toString();\n * // => '1,2,3'\n */\n function wrapperToString() {\n return (this.value() + '');\n }\n\n /**\n * Executes the chained sequence to extract the unwrapped value.\n *\n * @name value\n * @memberOf _\n * @alias run, toJSON, valueOf\n * @category Chain\n * @returns {*} Returns the resolved unwrapped value.\n * @example\n *\n * _([1, 2, 3]).value();\n * // => [1, 2, 3]\n */\n function wrapperValue() {\n return baseWrapperValue(this.__wrapped__, this.__actions__);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of elements corresponding to the given keys, or indexes,\n * of `collection`. Keys may be specified as individual arguments or as arrays\n * of keys.\n *\n * @static\n * @memberOf _\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {...(number|number[]|string|string[])} [props] The property names\n * or indexes of elements to pick, specified individually or in arrays.\n * @returns {Array} Returns the new array of picked elements.\n * @example\n *\n * _.at(['a', 'b', 'c'], [0, 2]);\n * // => ['a', 'c']\n *\n * _.at(['fred', 'barney', 'pebbles'], 0, 2);\n * // => ['fred', 'pebbles']\n */\n function at(collection) {\n var length = collection ? collection.length : 0;\n if (isLength(length)) {\n collection = toIterable(collection);\n }\n return baseAt(collection, baseFlatten(arguments, false, false, 1));\n }\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` through `iteratee`. The corresponding value\n * of each key is the number of times the key was returned by `iteratee`.\n * The `iteratee` is bound to `thisArg` and invoked with three arguments;\n * (value, index|key, collection).\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function|Object|string} [iteratee=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.countBy([4.3, 6.1, 6.4], function(n) {\n * return Math.floor(n);\n * });\n * // => { '4': 1, '6': 2 }\n *\n * _.countBy([4.3, 6.1, 6.4], function(n) {\n * return this.floor(n);\n * }, Math);\n * // => { '4': 1, '6': 2 }\n *\n * _.countBy(['one', 'two', 'three'], 'length');\n * // => { '3': 2, '5': 1 }\n */\n var countBy = createAggregator(function(result, value, key) {\n hasOwnProperty.call(result, key) ? ++result[key] : (result[key] = 1);\n });\n\n /**\n * Checks if `predicate` returns truthy for **all** elements of `collection`.\n * The predicate is bound to `thisArg` and invoked with three arguments;\n * (value, index|key, collection).\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @alias all\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function|Object|string} [predicate=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `predicate`.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n * @example\n *\n * _.every([true, 1, null, 'yes'], Boolean);\n * // => false\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false }\n * ];\n *\n * // using the `_.matches` callback shorthand\n * _.every(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // using the `_.matchesProperty` callback shorthand\n * _.every(users, 'active', false);\n * // => true\n *\n * // using the `_.property` callback shorthand\n * _.every(users, 'active');\n * // => false\n */\n function every(collection, predicate, thisArg) {\n var func = isArray(collection) ? arrayEvery : baseEvery;\n if (typeof predicate != 'function' || typeof thisArg != 'undefined') {\n predicate = getCallback(predicate, thisArg, 3);\n }\n return func(collection, predicate);\n }\n\n /**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is bound to `thisArg` and\n * invoked with three arguments; (value, index|key, collection).\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @alias select\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function|Object|string} [predicate=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `predicate`.\n * @returns {Array} Returns the new filtered array.\n * @example\n *\n * _.filter([4, 5, 6], function(n) {\n * return n % 2 == 0;\n * });\n * // => [4, 6]\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // using the `_.matches` callback shorthand\n * _.pluck(_.filter(users, { 'age': 36, 'active': true }), 'user');\n * // => ['barney']\n *\n * // using the `_.matchesProperty` callback shorthand\n * _.pluck(_.filter(users, 'active', false), 'user');\n * // => ['fred']\n *\n * // using the `_.property` callback shorthand\n * _.pluck(_.filter(users, 'active'), 'user');\n * // => ['barney']\n */\n function filter(collection, predicate, thisArg) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n predicate = getCallback(predicate, thisArg, 3);\n return func(collection, predicate);\n }\n\n /**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is bound to `thisArg` and\n * invoked with three arguments; (value, index|key, collection).\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @alias detect\n * @category Collection\n * @param {Array|Object|string} collection The collection to search.\n * @param {Function|Object|string} [predicate=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `predicate`.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.result(_.find(users, function(chr) {\n * return chr.age < 40;\n * }), 'user');\n * // => 'barney'\n *\n * // using the `_.matches` callback shorthand\n * _.result(_.find(users, { 'age': 1, 'active': true }), 'user');\n * // => 'pebbles'\n *\n * // using the `_.matchesProperty` callback shorthand\n * _.result(_.find(users, 'active', false), 'user');\n * // => 'fred'\n *\n * // using the `_.property` callback shorthand\n * _.result(_.find(users, 'active'), 'user');\n * // => 'barney'\n */\n function find(collection, predicate, thisArg) {\n if (isArray(collection)) {\n var index = findIndex(collection, predicate, thisArg);\n return index > -1 ? collection[index] : undefined;\n }\n predicate = getCallback(predicate, thisArg, 3);\n return baseFind(collection, predicate, baseEach);\n }\n\n /**\n * This method is like `_.find` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @category Collection\n * @param {Array|Object|string} collection The collection to search.\n * @param {Function|Object|string} [predicate=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `predicate`.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * _.findLast([1, 2, 3, 4], function(n) {\n * return n % 2 == 1;\n * });\n * // => 3\n */\n function findLast(collection, predicate, thisArg) {\n predicate = getCallback(predicate, thisArg, 3);\n return baseFind(collection, predicate, baseEachRight);\n }\n\n /**\n * Performs a deep comparison between each element in `collection` and the\n * source object, returning the first element that has equivalent property\n * values.\n *\n * **Note:** This method supports comparing arrays, booleans, `Date` objects,\n * numbers, `Object` objects, regexes, and strings. Objects are compared by\n * their own, not inherited, enumerable properties. For comparing a single\n * own or inherited property value see `_.matchesProperty`.\n *\n * @static\n * @memberOf _\n * @category Collection\n * @param {Array|Object|string} collection The collection to search.\n * @param {Object} source The object of property values to match.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.result(_.findWhere(users, { 'age': 36, 'active': true }), 'user');\n * // => 'barney'\n *\n * _.result(_.findWhere(users, { 'age': 40, 'active': false }), 'user');\n * // => 'fred'\n */\n function findWhere(collection, source) {\n return find(collection, baseMatches(source));\n }\n\n /**\n * Iterates over elements of `collection` invoking `iteratee` for each element.\n * The `iteratee` is bound to `thisArg` and invoked with three arguments;\n * (value, index|key, collection). Iterator functions may exit iteration early\n * by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a `length` property\n * are iterated like arrays. To avoid this behavior `_.forIn` or `_.forOwn`\n * may be used for object iteration.\n *\n * @static\n * @memberOf _\n * @alias each\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {Array|Object|string} Returns `collection`.\n * @example\n *\n * _([1, 2]).forEach(function(n) {\n * console.log(n);\n * }).value();\n * // => logs each value from left to right and returns the array\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(n, key) {\n * console.log(n, key);\n * });\n * // => logs each value-key pair and returns the object (iteration order is not guaranteed)\n */\n function forEach(collection, iteratee, thisArg) {\n return (typeof iteratee == 'function' && typeof thisArg == 'undefined' && isArray(collection))\n ? arrayEach(collection, iteratee)\n : baseEach(collection, bindCallback(iteratee, thisArg, 3));\n }\n\n /**\n * This method is like `_.forEach` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @alias eachRight\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {Array|Object|string} Returns `collection`.\n * @example\n *\n * _([1, 2]).forEachRight(function(n) {\n * console.log(n);\n * }).join(',');\n * // => logs each value from right to left and returns the array\n */\n function forEachRight(collection, iteratee, thisArg) {\n return (typeof iteratee == 'function' && typeof thisArg == 'undefined' && isArray(collection))\n ? arrayEachRight(collection, iteratee)\n : baseEachRight(collection, bindCallback(iteratee, thisArg, 3));\n }\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` through `iteratee`. The corresponding value\n * of each key is an array of the elements responsible for generating the key.\n * The `iteratee` is bound to `thisArg` and invoked with three arguments;\n * (value, index|key, collection).\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function|Object|string} [iteratee=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([4.2, 6.1, 6.4], function(n) {\n * return Math.floor(n);\n * });\n * // => { '4': [4.2], '6': [6.1, 6.4] }\n *\n * _.groupBy([4.2, 6.1, 6.4], function(n) {\n * return this.floor(n);\n * }, Math);\n * // => { '4': [4.2], '6': [6.1, 6.4] }\n *\n * // using the `_.property` callback shorthand\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\n var groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n result[key] = [value];\n }\n });\n\n /**\n * Checks if `value` is in `collection` using `SameValueZero` for equality\n * comparisons. If `fromIndex` is negative, it is used as the offset from\n * the end of `collection`.\n *\n * **Note:** `SameValueZero` comparisons are like strict equality comparisons,\n * e.g. `===`, except that `NaN` matches `NaN`. See the\n * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)\n * for more details.\n *\n * @static\n * @memberOf _\n * @alias contains, include\n * @category Collection\n * @param {Array|Object|string} collection The collection to search.\n * @param {*} target The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {boolean} Returns `true` if a matching element is found, else `false`.\n * @example\n *\n * _.includes([1, 2, 3], 1);\n * // => true\n *\n * _.includes([1, 2, 3], 1, 2);\n * // => false\n *\n * _.includes({ 'user': 'fred', 'age': 40 }, 'fred');\n * // => true\n *\n * _.includes('pebbles', 'eb');\n * // => true\n */\n function includes(collection, target, fromIndex) {\n var length = collection ? collection.length : 0;\n if (!isLength(length)) {\n collection = values(collection);\n length = collection.length;\n }\n if (!length) {\n return false;\n }\n if (typeof fromIndex == 'number') {\n fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : (fromIndex || 0);\n } else {\n fromIndex = 0;\n }\n return (typeof collection == 'string' || !isArray(collection) && isString(collection))\n ? (fromIndex < length && collection.indexOf(target, fromIndex) > -1)\n : (getIndexOf(collection, target, fromIndex) > -1);\n }\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` through `iteratee`. The corresponding value\n * of each key is the last element responsible for generating the key. The\n * iteratee function is bound to `thisArg` and invoked with three arguments;\n * (value, index|key, collection).\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function|Object|string} [iteratee=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * var keyData = [\n * { 'dir': 'left', 'code': 97 },\n * { 'dir': 'right', 'code': 100 }\n * ];\n *\n * _.indexBy(keyData, 'dir');\n * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }\n *\n * _.indexBy(keyData, function(object) {\n * return String.fromCharCode(object.code);\n * });\n * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }\n *\n * _.indexBy(keyData, function(object) {\n * return this.fromCharCode(object.code);\n * }, String);\n * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }\n */\n var indexBy = createAggregator(function(result, value, key) {\n result[key] = value;\n });\n\n /**\n * Invokes the method named by `methodName` on each element in `collection`,\n * returning an array of the results of each invoked method. Any additional\n * arguments are provided to each invoked method. If `methodName` is a function\n * it is invoked for, and `this` bound to, each element in `collection`.\n *\n * @static\n * @memberOf _\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function|string} methodName The name of the method to invoke or\n * the function invoked per iteration.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * _.invoke([[5, 1, 7], [3, 2, 1]], 'sort');\n * // => [[1, 5, 7], [1, 2, 3]]\n *\n * _.invoke([123, 456], String.prototype.split, '');\n * // => [['1', '2', '3'], ['4', '5', '6']]\n */\n function invoke(collection, methodName) {\n return baseInvoke(collection, methodName, baseSlice(arguments, 2));\n }\n\n /**\n * Creates an array of values by running each element in `collection` through\n * `iteratee`. The `iteratee` is bound to `thisArg` and invoked with three\n * arguments; (value, index|key, collection).\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * Many lodash methods are guarded to work as interatees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `callback`, `chunk`, `clone`, `create`, `curry`, `curryRight`, `drop`,\n * `dropRight`, `fill`, `flatten`, `invert`, `max`, `min`, `parseInt`, `slice`,\n * `sortBy`, `take`, `takeRight`, `template`, `trim`, `trimLeft`, `trimRight`,\n * `trunc`, `random`, `range`, `sample`, `uniq`, and `words`\n *\n * @static\n * @memberOf _\n * @alias collect\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function|Object|string} [iteratee=_.identity] The function invoked\n * per iteration.\n * create a `_.property` or `_.matches` style callback respectively.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function timesThree(n) {\n * return n * 3;\n * }\n *\n * _.map([1, 2], timesThree);\n * // => [3, 6]\n *\n * _.map({ 'a': 1, 'b': 2 }, timesThree);\n * // => [3, 6] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // using the `_.property` callback shorthand\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\n function map(collection, iteratee, thisArg) {\n var func = isArray(collection) ? arrayMap : baseMap;\n iteratee = getCallback(iteratee, thisArg, 3);\n return func(collection, iteratee);\n }\n\n /**\n * Gets the maximum value of `collection`. If `collection` is empty or falsey\n * `-Infinity` is returned. If an iteratee function is provided it is invoked\n * for each value in `collection` to generate the criterion by which the value\n * is ranked. The `iteratee` is bound to `thisArg` and invoked with three\n * arguments; (value, index, collection).\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function|Object|string} [iteratee] The function invoked per iteration.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * _.max([4, 2, 8, 6]);\n * // => 8\n *\n * _.max([]);\n * // => -Infinity\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 }\n * ];\n *\n * _.max(users, function(chr) {\n * return chr.age;\n * });\n * // => { 'user': 'fred', 'age': 40 };\n *\n * // using the `_.property` callback shorthand\n * _.max(users, 'age');\n * // => { 'user': 'fred', 'age': 40 };\n */\n var max = createExtremum(arrayMax);\n\n /**\n * Gets the minimum value of `collection`. If `collection` is empty or falsey\n * `Infinity` is returned. If an iteratee function is provided it is invoked\n * for each value in `collection` to generate the criterion by which the value\n * is ranked. The `iteratee` is bound to `thisArg` and invoked with three\n * arguments; (value, index, collection).\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function|Object|string} [iteratee] The function invoked per iteration.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * _.min([4, 2, 8, 6]);\n * // => 2\n *\n * _.min([]);\n * // => Infinity\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 }\n * ];\n *\n * _.min(users, function(chr) {\n * return chr.age;\n * });\n * // => { 'user': 'barney', 'age': 36 };\n *\n * // using the `_.property` callback shorthand\n * _.min(users, 'age');\n * // => { 'user': 'barney', 'age': 36 };\n */\n var min = createExtremum(arrayMin, true);\n\n /**\n * Creates an array of elements split into two groups, the first of which\n * contains elements `predicate` returns truthy for, while the second of which\n * contains elements `predicate` returns falsey for. The predicate is bound\n * to `thisArg` and invoked with three arguments; (value, index|key, collection).\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function|Object|string} [predicate=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `predicate`.\n * @returns {Array} Returns the array of grouped elements.\n * @example\n *\n * _.partition([1, 2, 3], function(n) {\n * return n % 2;\n * });\n * // => [[1, 3], [2]]\n *\n * _.partition([1.2, 2.3, 3.4], function(n) {\n * return this.floor(n) % 2;\n * }, Math);\n * // => [[1, 3], [2]]\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true },\n * { 'user': 'pebbles', 'age': 1, 'active': false }\n * ];\n *\n * var mapper = function(array) {\n * return _.pluck(array, 'user');\n * };\n *\n * // using the `_.matches` callback shorthand\n * _.map(_.partition(users, { 'age': 1, 'active': false }), mapper);\n * // => [['pebbles'], ['barney', 'fred']]\n *\n * // using the `_.matchesProperty` callback shorthand\n * _.map(_.partition(users, 'active', false), mapper);\n * // => [['barney', 'pebbles'], ['fred']]\n *\n * // using the `_.property` callback shorthand\n * _.map(_.partition(users, 'active'), mapper);\n * // => [['fred'], ['barney', 'pebbles']]\n */\n var partition = createAggregator(function(result, value, key) {\n result[key ? 0 : 1].push(value);\n }, function() { return [[], []]; });\n\n /**\n * Gets the value of `key` from all elements in `collection`.\n *\n * @static\n * @memberOf _\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {string} key The key of the property to pluck.\n * @returns {Array} Returns the property values.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 }\n * ];\n *\n * _.pluck(users, 'user');\n * // => ['barney', 'fred']\n *\n * var userIndex = _.indexBy(users, 'user');\n * _.pluck(userIndex, 'age');\n * // => [36, 40] (iteration order is not guaranteed)\n */\n function pluck(collection, key) {\n return map(collection, baseProperty(key));\n }\n\n /**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` through `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not provided the first element of `collection` is used as the initial\n * value. The `iteratee` is bound to `thisArg`and invoked with four arguments;\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as interatees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `merge`, and `sortAllBy`\n *\n * @static\n * @memberOf _\n * @alias foldl, inject\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * });\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2 }, function(result, n, key) {\n * result[key] = n * 3;\n * return result;\n * }, {});\n * // => { 'a': 3, 'b': 6 } (iteration order is not guaranteed)\n */\n function reduce(collection, iteratee, accumulator, thisArg) {\n var func = isArray(collection) ? arrayReduce : baseReduce;\n return func(collection, getCallback(iteratee, thisArg, 4), accumulator, arguments.length < 3, baseEach);\n }\n\n /**\n * This method is like `_.reduce` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @alias foldr\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * var array = [[0, 1], [2, 3], [4, 5]];\n *\n * _.reduceRight(array, function(flattened, other) {\n * return flattened.concat(other);\n * }, []);\n * // => [4, 5, 2, 3, 0, 1]\n */\n function reduceRight(collection, iteratee, accumulator, thisArg) {\n var func = isArray(collection) ? arrayReduceRight : baseReduce;\n return func(collection, getCallback(iteratee, thisArg, 4), accumulator, arguments.length < 3, baseEachRight);\n }\n\n /**\n * The opposite of `_.filter`; this method returns the elements of `collection`\n * that `predicate` does **not** return truthy for.\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function|Object|string} [predicate=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `predicate`.\n * @returns {Array} Returns the new filtered array.\n * @example\n *\n * _.reject([1, 2, 3, 4], function(n) {\n * return n % 2 == 0;\n * });\n * // => [1, 3]\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true }\n * ];\n *\n * // using the `_.matches` callback shorthand\n * _.pluck(_.reject(users, { 'age': 40, 'active': true }), 'user');\n * // => ['barney']\n *\n * // using the `_.matchesProperty` callback shorthand\n * _.pluck(_.reject(users, 'active', false), 'user');\n * // => ['fred']\n *\n * // using the `_.property` callback shorthand\n * _.pluck(_.reject(users, 'active'), 'user');\n * // => ['barney']\n */\n function reject(collection, predicate, thisArg) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n predicate = getCallback(predicate, thisArg, 3);\n return func(collection, function(value, index, collection) {\n return !predicate(value, index, collection);\n });\n }\n\n /**\n * Gets a random element or `n` random elements from a collection.\n *\n * @static\n * @memberOf _\n * @category Collection\n * @param {Array|Object|string} collection The collection to sample.\n * @param {number} [n] The number of elements to sample.\n * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.\n * @returns {*} Returns the random sample(s).\n * @example\n *\n * _.sample([1, 2, 3, 4]);\n * // => 2\n *\n * _.sample([1, 2, 3, 4], 2);\n * // => [3, 1]\n */\n function sample(collection, n, guard) {\n if (guard ? isIterateeCall(collection, n, guard) : n == null) {\n collection = toIterable(collection);\n var length = collection.length;\n return length > 0 ? collection[baseRandom(0, length - 1)] : undefined;\n }\n var result = shuffle(collection);\n result.length = nativeMin(n < 0 ? 0 : (+n || 0), result.length);\n return result;\n }\n\n /**\n * Creates an array of shuffled values, using a version of the Fisher-Yates\n * shuffle. See [Wikipedia](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category Collection\n * @param {Array|Object|string} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n * @example\n *\n * _.shuffle([1, 2, 3, 4]);\n * // => [4, 1, 3, 2]\n */\n function shuffle(collection) {\n collection = toIterable(collection);\n\n var index = -1,\n length = collection.length,\n result = Array(length);\n\n while (++index < length) {\n var rand = baseRandom(0, index);\n if (index != rand) {\n result[index] = result[rand];\n }\n result[rand] = collection[index];\n }\n return result;\n }\n\n /**\n * Gets the size of `collection` by returning `collection.length` for\n * array-like values or the number of own enumerable properties for objects.\n *\n * @static\n * @memberOf _\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the size of `collection`.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\n function size(collection) {\n var length = collection ? collection.length : 0;\n return isLength(length) ? length : keys(collection).length;\n }\n\n /**\n * Checks if `predicate` returns truthy for **any** element of `collection`.\n * The function returns as soon as it finds a passing value and does not iterate\n * over the entire collection. The predicate is bound to `thisArg` and invoked\n * with three arguments; (value, index|key, collection).\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @alias any\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function|Object|string} [predicate=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `predicate`.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n * @example\n *\n * _.some([null, 0, 'yes', false], Boolean);\n * // => true\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false }\n * ];\n *\n * // using the `_.matches` callback shorthand\n * _.some(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // using the `_.matchesProperty` callback shorthand\n * _.some(users, 'active', false);\n * // => true\n *\n * // using the `_.property` callback shorthand\n * _.some(users, 'active');\n * // => true\n */\n function some(collection, predicate, thisArg) {\n var func = isArray(collection) ? arraySome : baseSome;\n if (typeof predicate != 'function' || typeof thisArg != 'undefined') {\n predicate = getCallback(predicate, thisArg, 3);\n }\n return func(collection, predicate);\n }\n\n /**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection through `iteratee`. This method performs\n * a stable sort, that is, it preserves the original sort order of equal elements.\n * The `iteratee` is bound to `thisArg` and invoked with three arguments;\n * (value, index|key, collection).\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Array|Function|Object|string} [iteratee=_.identity] The function\n * invoked per iteration. If a property name or an object is provided it is\n * used to create a `_.property` or `_.matches` style callback respectively.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * _.sortBy([1, 2, 3], function(n) {\n * return Math.sin(n);\n * });\n * // => [3, 1, 2]\n *\n * _.sortBy([1, 2, 3], function(n) {\n * return this.sin(n);\n * }, Math);\n * // => [3, 1, 2]\n *\n * var users = [\n * { 'user': 'fred' },\n * { 'user': 'pebbles' },\n * { 'user': 'barney' }\n * ];\n *\n * // using the `_.property` callback shorthand\n * _.pluck(_.sortBy(users, 'user'), 'user');\n * // => ['barney', 'fred', 'pebbles']\n */\n function sortBy(collection, iteratee, thisArg) {\n var index = -1,\n length = collection ? collection.length : 0,\n result = isLength(length) ? Array(length) : [];\n\n if (thisArg && isIterateeCall(collection, iteratee, thisArg)) {\n iteratee = null;\n }\n iteratee = getCallback(iteratee, thisArg, 3);\n baseEach(collection, function(value, key, collection) {\n result[++index] = { 'criteria': iteratee(value, key, collection), 'index': index, 'value': value };\n });\n return baseSortBy(result, compareAscending);\n }\n\n /**\n * This method is like `_.sortBy` except that it sorts by property names\n * instead of an iteratee function.\n *\n * @static\n * @memberOf _\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {...(string|string[])} props The property names to sort by,\n * specified as individual property names or arrays of property names.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 26 },\n * { 'user': 'fred', 'age': 30 }\n * ];\n *\n * _.map(_.sortByAll(users, ['user', 'age']), _.values);\n * // => [['barney', 26], ['barney', 36], ['fred', 30], ['fred', 40]]\n */\n function sortByAll(collection) {\n var args = arguments;\n if (args.length > 3 && isIterateeCall(args[1], args[2], args[3])) {\n args = [collection, args[1]];\n }\n var index = -1,\n length = collection ? collection.length : 0,\n props = baseFlatten(args, false, false, 1),\n result = isLength(length) ? Array(length) : [];\n\n baseEach(collection, function(value) {\n var length = props.length,\n criteria = Array(length);\n\n while (length--) {\n criteria[length] = value == null ? undefined : value[props[length]];\n }\n result[++index] = { 'criteria': criteria, 'index': index, 'value': value };\n });\n return baseSortBy(result, compareMultipleAscending);\n }\n\n /**\n * Performs a deep comparison between each element in `collection` and the\n * source object, returning an array of all elements that have equivalent\n * property values.\n *\n * **Note:** This method supports comparing arrays, booleans, `Date` objects,\n * numbers, `Object` objects, regexes, and strings. Objects are compared by\n * their own, not inherited, enumerable properties. For comparing a single\n * own or inherited property value see `_.matchesProperty`.\n *\n * @static\n * @memberOf _\n * @category Collection\n * @param {Array|Object|string} collection The collection to search.\n * @param {Object} source The object of property values to match.\n * @returns {Array} Returns the new filtered array.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false, 'pets': ['hoppy'] },\n * { 'user': 'fred', 'age': 40, 'active': true, 'pets': ['baby puss', 'dino'] }\n * ];\n *\n * _.pluck(_.where(users, { 'age': 36, 'active': false }), 'user');\n * // => ['barney']\n *\n * _.pluck(_.where(users, { 'pets': ['dino'] }), 'user');\n * // => ['fred']\n */\n function where(collection, source) {\n return filter(collection, baseMatches(source));\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Gets the number of milliseconds that have elapsed since the Unix epoch\n * (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @category Date\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => logs the number of milliseconds it took for the deferred function to be invoked\n */\n var now = nativeNow || function() {\n return new Date().getTime();\n };\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The opposite of `_.before`; this method creates a function that invokes\n * `func` once it is called `n` or more times.\n *\n * @static\n * @memberOf _\n * @category Function\n * @param {number} n The number of calls before `func` is invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var saves = ['profile', 'settings'];\n *\n * var done = _.after(saves.length, function() {\n * console.log('done saving!');\n * });\n *\n * _.forEach(saves, function(type) {\n * asyncSave({ 'type': type, 'complete': done });\n * });\n * // => logs 'done saving!' after the two async saves have completed\n */\n function after(n, func) {\n if (typeof func != 'function') {\n if (typeof n == 'function') {\n var temp = n;\n n = func;\n func = temp;\n } else {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n }\n n = nativeIsFinite(n = +n) ? n : 0;\n return function() {\n if (--n < 1) {\n return func.apply(this, arguments);\n }\n };\n }\n\n /**\n * Creates a function that accepts up to `n` arguments ignoring any\n * additional arguments.\n *\n * @static\n * @memberOf _\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @param {number} [n=func.length] The arity cap.\n * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.\n * @returns {Function} Returns the new function.\n * @example\n *\n * _.map(['6', '8', '10'], _.ary(parseInt, 1));\n * // => [6, 8, 10]\n */\n function ary(func, n, guard) {\n if (guard && isIterateeCall(func, n, guard)) {\n n = null;\n }\n n = (func && n == null) ? func.length : nativeMax(+n || 0, 0);\n return createWrapper(func, ARY_FLAG, null, null, null, null, n);\n }\n\n /**\n * Creates a function that invokes `func`, with the `this` binding and arguments\n * of the created function, while it is called less than `n` times. Subsequent\n * calls to the created function return the result of the last `func` invocation.\n *\n * @static\n * @memberOf _\n * @category Function\n * @param {number} n The number of calls at which `func` is no longer invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * jQuery('#add').on('click', _.before(5, addContactToList));\n * // => allows adding up to 4 contacts to the list\n */\n function before(n, func) {\n var result;\n if (typeof func != 'function') {\n if (typeof n == 'function') {\n var temp = n;\n n = func;\n func = temp;\n } else {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n }\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n } else {\n func = null;\n }\n return result;\n };\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of `thisArg`\n * and prepends any additional `_.bind` arguments to those provided to the\n * bound function.\n *\n * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for partially applied arguments.\n *\n * **Note:** Unlike native `Function#bind` this method does not set the `length`\n * property of bound functions.\n *\n * @static\n * @memberOf _\n * @category Function\n * @param {Function} func The function to bind.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {...*} [args] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * var greet = function(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * };\n *\n * var object = { 'user': 'fred' };\n *\n * var bound = _.bind(greet, object, 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * // using placeholders\n * var bound = _.bind(greet, object, _, '!');\n * bound('hi');\n * // => 'hi fred!'\n */\n function bind(func, thisArg) {\n var bitmask = BIND_FLAG;\n if (arguments.length > 2) {\n var partials = baseSlice(arguments, 2),\n holders = replaceHolders(partials, bind.placeholder);\n\n bitmask |= PARTIAL_FLAG;\n }\n return createWrapper(func, bitmask, thisArg, partials, holders);\n }\n\n /**\n * Binds methods of an object to the object itself, overwriting the existing\n * method. Method names may be specified as individual arguments or as arrays\n * of method names. If no method names are provided all enumerable function\n * properties, own and inherited, of `object` are bound.\n *\n * **Note:** This method does not set the `length` property of bound functions.\n *\n * @static\n * @memberOf _\n * @category Function\n * @param {Object} object The object to bind and assign the bound methods to.\n * @param {...(string|string[])} [methodNames] The object method names to bind,\n * specified as individual method names or arrays of method names.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var view = {\n * 'label': 'docs',\n * 'onClick': function() {\n * console.log('clicked ' + this.label);\n * }\n * };\n *\n * _.bindAll(view);\n * jQuery('#docs').on('click', view.onClick);\n * // => logs 'clicked docs' when the element is clicked\n */\n function bindAll(object) {\n return baseBindAll(object,\n arguments.length > 1\n ? baseFlatten(arguments, false, false, 1)\n : functions(object)\n );\n }\n\n /**\n * Creates a function that invokes the method at `object[key]` and prepends\n * any additional `_.bindKey` arguments to those provided to the bound function.\n *\n * This method differs from `_.bind` by allowing bound functions to reference\n * methods that may be redefined or don't yet exist.\n * See [Peter Michaux's article](http://michaux.ca/articles/lazy-function-definition-pattern)\n * for more details.\n *\n * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * @static\n * @memberOf _\n * @category Function\n * @param {Object} object The object the method belongs to.\n * @param {string} key The key of the method.\n * @param {...*} [args] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * var object = {\n * 'user': 'fred',\n * 'greet': function(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n * };\n *\n * var bound = _.bindKey(object, 'greet', 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * object.greet = function(greeting, punctuation) {\n * return greeting + 'ya ' + this.user + punctuation;\n * };\n *\n * bound('!');\n * // => 'hiya fred!'\n *\n * // using placeholders\n * var bound = _.bindKey(object, 'greet', _, '!');\n * bound('hi');\n * // => 'hiya fred!'\n */\n function bindKey(object, key) {\n var bitmask = BIND_FLAG | BIND_KEY_FLAG;\n if (arguments.length > 2) {\n var partials = baseSlice(arguments, 2),\n holders = replaceHolders(partials, bindKey.placeholder);\n\n bitmask |= PARTIAL_FLAG;\n }\n return createWrapper(key, bitmask, object, partials, holders);\n }\n\n /**\n * Creates a function that accepts one or more arguments of `func` that when\n * called either invokes `func` returning its result, if all `func` arguments\n * have been provided, or returns a function that accepts one or more of the\n * remaining `func` arguments, and so on. The arity of `func` may be specified\n * if `func.length` is not sufficient.\n *\n * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for provided arguments.\n *\n * **Note:** This method does not set the `length` property of curried functions.\n *\n * @static\n * @memberOf _\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curry(abc);\n *\n * curried(1)(2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // using placeholders\n * curried(1)(_, 3)(2);\n * // => [1, 2, 3]\n */\n function curry(func, arity, guard) {\n if (guard && isIterateeCall(func, arity, guard)) {\n arity = null;\n }\n var result = createWrapper(func, CURRY_FLAG, null, null, null, null, null, arity);\n result.placeholder = curry.placeholder;\n return result;\n }\n\n /**\n * This method is like `_.curry` except that arguments are applied to `func`\n * in the manner of `_.partialRight` instead of `_.partial`.\n *\n * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for provided arguments.\n *\n * **Note:** This method does not set the `length` property of curried functions.\n *\n * @static\n * @memberOf _\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curryRight(abc);\n *\n * curried(3)(2)(1);\n * // => [1, 2, 3]\n *\n * curried(2, 3)(1);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // using placeholders\n * curried(3)(1, _)(2);\n * // => [1, 2, 3]\n */\n function curryRight(func, arity, guard) {\n if (guard && isIterateeCall(func, arity, guard)) {\n arity = null;\n }\n var result = createWrapper(func, CURRY_RIGHT_FLAG, null, null, null, null, null, arity);\n result.placeholder = curryRight.placeholder;\n return result;\n }\n\n /**\n * Creates a function that delays invoking `func` until after `wait` milliseconds\n * have elapsed since the last time it was invoked. The created function comes\n * with a `cancel` method to cancel delayed invocations. Provide an options\n * object to indicate that `func` should be invoked on the leading and/or\n * trailing edge of the `wait` timeout. Subsequent calls to the debounced\n * function return the result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is invoked\n * on the trailing edge of the timeout only if the the debounced function is\n * invoked more than once during the `wait` timeout.\n *\n * See [David Corbacho's article](http://drupalmotion.com/article/debounce-and-throttle-visual-explanation)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options] The options object.\n * @param {boolean} [options.leading=false] Specify invoking on the leading\n * edge of the timeout.\n * @param {number} [options.maxWait] The maximum time `func` is allowed to be\n * delayed before it is invoked.\n * @param {boolean} [options.trailing=true] Specify invoking on the trailing\n * edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // avoid costly calculations while the window size is in flux\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // invoke `sendMail` when the click event is fired, debouncing subsequent calls\n * jQuery('#postbox').on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // ensure `batchLog` is invoked once after 1 second of debounced calls\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', _.debounce(batchLog, 250, {\n * 'maxWait': 1000\n * }));\n *\n * // cancel a debounced call\n * var todoChanges = _.debounce(batchLog, 1000);\n * Object.observe(models.todo, todoChanges);\n *\n * Object.observe(models, function(changes) {\n * if (_.find(changes, { 'user': 'todo', 'type': 'delete'})) {\n * todoChanges.cancel();\n * }\n * }, ['delete']);\n *\n * // ...at some point `models.todo` is changed\n * models.todo.completed = true;\n *\n * // ...before 1 second has passed `models.todo` is deleted\n * // which cancels the debounced `todoChanges` call\n * delete models.todo;\n */\n function debounce(func, wait, options) {\n var args,\n maxTimeoutId,\n result,\n stamp,\n thisArg,\n timeoutId,\n trailingCall,\n lastCalled = 0,\n maxWait = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = wait < 0 ? 0 : (+wait || 0);\n if (options === true) {\n var leading = true;\n trailing = false;\n } else if (isObject(options)) {\n leading = options.leading;\n maxWait = 'maxWait' in options && nativeMax(+options.maxWait || 0, wait);\n trailing = 'trailing' in options ? options.trailing : trailing;\n }\n\n function cancel() {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n if (maxTimeoutId) {\n clearTimeout(maxTimeoutId);\n }\n maxTimeoutId = timeoutId = trailingCall = undefined;\n }\n\n function delayed() {\n var remaining = wait - (now() - stamp);\n if (remaining <= 0 || remaining > wait) {\n if (maxTimeoutId) {\n clearTimeout(maxTimeoutId);\n }\n var isCalled = trailingCall;\n maxTimeoutId = timeoutId = trailingCall = undefined;\n if (isCalled) {\n lastCalled = now();\n result = func.apply(thisArg, args);\n if (!timeoutId && !maxTimeoutId) {\n args = thisArg = null;\n }\n }\n } else {\n timeoutId = setTimeout(delayed, remaining);\n }\n }\n\n function maxDelayed() {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n maxTimeoutId = timeoutId = trailingCall = undefined;\n if (trailing || (maxWait !== wait)) {\n lastCalled = now();\n result = func.apply(thisArg, args);\n if (!timeoutId && !maxTimeoutId) {\n args = thisArg = null;\n }\n }\n }\n\n function debounced() {\n args = arguments;\n stamp = now();\n thisArg = this;\n trailingCall = trailing && (timeoutId || !leading);\n\n if (maxWait === false) {\n var leadingCall = leading && !timeoutId;\n } else {\n if (!maxTimeoutId && !leading) {\n lastCalled = stamp;\n }\n var remaining = maxWait - (stamp - lastCalled),\n isCalled = remaining <= 0 || remaining > maxWait;\n\n if (isCalled) {\n if (maxTimeoutId) {\n maxTimeoutId = clearTimeout(maxTimeoutId);\n }\n lastCalled = stamp;\n result = func.apply(thisArg, args);\n }\n else if (!maxTimeoutId) {\n maxTimeoutId = setTimeout(maxDelayed, remaining);\n }\n }\n if (isCalled && timeoutId) {\n timeoutId = clearTimeout(timeoutId);\n }\n else if (!timeoutId && wait !== maxWait) {\n timeoutId = setTimeout(delayed, wait);\n }\n if (leadingCall) {\n isCalled = true;\n result = func.apply(thisArg, args);\n }\n if (isCalled && !timeoutId && !maxTimeoutId) {\n args = thisArg = null;\n }\n return result;\n }\n debounced.cancel = cancel;\n return debounced;\n }\n\n /**\n * Defers invoking the `func` until the current call stack has cleared. Any\n * additional arguments are provided to `func` when it is invoked.\n *\n * @static\n * @memberOf _\n * @category Function\n * @param {Function} func The function to defer.\n * @param {...*} [args] The arguments to invoke the function with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.defer(function(text) {\n * console.log(text);\n * }, 'deferred');\n * // logs 'deferred' after one or more milliseconds\n */\n function defer(func) {\n return baseDelay(func, 1, arguments, 1);\n }\n\n /**\n * Invokes `func` after `wait` milliseconds. Any additional arguments are\n * provided to `func` when it is invoked.\n *\n * @static\n * @memberOf _\n * @category Function\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {...*} [args] The arguments to invoke the function with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.delay(function(text) {\n * console.log(text);\n * }, 1000, 'later');\n * // => logs 'later' after one second\n */\n function delay(func, wait) {\n return baseDelay(func, wait, arguments, 2);\n }\n\n /**\n * Creates a function that returns the result of invoking the provided\n * functions with the `this` binding of the created function, where each\n * successive invocation is supplied the return value of the previous.\n *\n * @static\n * @memberOf _\n * @category Function\n * @param {...Function} [funcs] Functions to invoke.\n * @returns {Function} Returns the new function.\n * @example\n *\n * function add(x, y) {\n * return x + y;\n * }\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var addSquare = _.flow(add, square);\n * addSquare(1, 2);\n * // => 9\n */\n function flow() {\n var funcs = arguments,\n length = funcs.length;\n\n if (!length) {\n return function() { return arguments[0]; };\n }\n if (!arrayEvery(funcs, baseIsFunction)) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var index = 0,\n result = funcs[index].apply(this, arguments);\n\n while (++index < length) {\n result = funcs[index].call(this, result);\n }\n return result;\n };\n }\n\n /**\n * This method is like `_.flow` except that it creates a function that\n * invokes the provided functions from right to left.\n *\n * @static\n * @memberOf _\n * @alias backflow, compose\n * @category Function\n * @param {...Function} [funcs] Functions to invoke.\n * @returns {Function} Returns the new function.\n * @example\n *\n * function add(x, y) {\n * return x + y;\n * }\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var addSquare = _.flowRight(square, add);\n * addSquare(1, 2);\n * // => 9\n */\n function flowRight() {\n var funcs = arguments,\n fromIndex = funcs.length - 1;\n\n if (fromIndex < 0) {\n return function() { return arguments[0]; };\n }\n if (!arrayEvery(funcs, baseIsFunction)) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var index = fromIndex,\n result = funcs[index].apply(this, arguments);\n\n while (index--) {\n result = funcs[index].call(this, result);\n }\n return result;\n };\n }\n\n /**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is coerced to a string and used as the\n * cache key. The `func` is invoked with the `this` binding of the memoized\n * function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the ES `Map` method interface\n * of `get`, `has`, and `set`. See the\n * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-properties-of-the-map-prototype-object)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoizing function.\n * @example\n *\n * var upperCase = _.memoize(function(string) {\n * return string.toUpperCase();\n * });\n *\n * upperCase('fred');\n * // => 'FRED'\n *\n * // modifying the result cache\n * upperCase.cache.set('fred', 'BARNEY');\n * upperCase('fred');\n * // => 'BARNEY'\n *\n * // replacing `_.memoize.Cache`\n * var object = { 'user': 'fred' };\n * var other = { 'user': 'barney' };\n * var identity = _.memoize(_.identity);\n *\n * identity(object);\n * // => { 'user': 'fred' }\n * identity(other);\n * // => { 'user': 'fred' }\n *\n * _.memoize.Cache = WeakMap;\n * var identity = _.memoize(_.identity);\n *\n * identity(object);\n * // => { 'user': 'fred' }\n * identity(other);\n * // => { 'user': 'barney' }\n */\n function memoize(func, resolver) {\n if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var cache = memoized.cache,\n key = resolver ? resolver.apply(this, arguments) : arguments[0];\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, arguments);\n cache.set(key, result);\n return result;\n };\n memoized.cache = new memoize.Cache;\n return memoized;\n }\n\n /**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\n function negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n return !predicate.apply(this, arguments);\n };\n }\n\n /**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first call. The `func` is invoked\n * with the `this` binding of the created function.\n *\n * @static\n * @memberOf _\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // `initialize` invokes `createApplication` once\n */\n function once(func) {\n return before(func, 2);\n }\n\n /**\n * Creates a function that invokes `func` with `partial` arguments prepended\n * to those provided to the new function. This method is like `_.bind` except\n * it does **not** alter the `this` binding.\n *\n * The `_.partial.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method does not set the `length` property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [args] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * var greet = function(greeting, name) {\n * return greeting + ' ' + name;\n * };\n *\n * var sayHelloTo = _.partial(greet, 'hello');\n * sayHelloTo('fred');\n * // => 'hello fred'\n *\n * // using placeholders\n * var greetFred = _.partial(greet, _, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n */\n function partial(func) {\n var partials = baseSlice(arguments, 1),\n holders = replaceHolders(partials, partial.placeholder);\n\n return createWrapper(func, PARTIAL_FLAG, null, partials, holders);\n }\n\n /**\n * This method is like `_.partial` except that partially applied arguments\n * are appended to those provided to the new function.\n *\n * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method does not set the `length` property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [args] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * var greet = function(greeting, name) {\n * return greeting + ' ' + name;\n * };\n *\n * var greetFred = _.partialRight(greet, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n *\n * // using placeholders\n * var sayHelloTo = _.partialRight(greet, 'hello', _);\n * sayHelloTo('fred');\n * // => 'hello fred'\n */\n function partialRight(func) {\n var partials = baseSlice(arguments, 1),\n holders = replaceHolders(partials, partialRight.placeholder);\n\n return createWrapper(func, PARTIAL_RIGHT_FLAG, null, partials, holders);\n }\n\n /**\n * Creates a function that invokes `func` with arguments arranged according\n * to the specified indexes where the argument value at the first index is\n * provided as the first argument, the argument value at the second index is\n * provided as the second argument, and so on.\n *\n * @static\n * @memberOf _\n * @category Function\n * @param {Function} func The function to rearrange arguments for.\n * @param {...(number|number[])} indexes The arranged argument indexes,\n * specified as individual indexes or arrays of indexes.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var rearged = _.rearg(function(a, b, c) {\n * return [a, b, c];\n * }, 2, 0, 1);\n *\n * rearged('b', 'c', 'a')\n * // => ['a', 'b', 'c']\n *\n * var map = _.rearg(_.map, [1, 0]);\n * map(function(n) {\n * return n * 3;\n * }, [1, 2, 3]);\n * // => [3, 6, 9]\n */\n function rearg(func) {\n var indexes = baseFlatten(arguments, false, false, 1);\n return createWrapper(func, REARG_FLAG, null, null, null, indexes);\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * created function and the array of arguments provided to the created\n * function much like [Function#apply](http://es5.github.io/#x15.3.4.3).\n *\n * @static\n * @memberOf _\n * @category Function\n * @param {Function} func The function to spread arguments over.\n * @returns {*} Returns the new function.\n * @example\n *\n * var spread = _.spread(function(who, what) {\n * return who + ' says ' + what;\n * });\n *\n * spread(['Fred', 'hello']);\n * // => 'Fred says hello'\n *\n * // with a Promise\n * var numbers = Promise.all([\n * Promise.resolve(40),\n * Promise.resolve(36)\n * ]);\n *\n * numbers.then(_.spread(function(x, y) {\n * return x + y;\n * }));\n * // => a Promise of 76\n */\n function spread(func) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function(array) {\n return func.apply(this, array);\n };\n }\n\n /**\n * Creates a function that only invokes `func` at most once per every `wait`\n * milliseconds. The created function comes with a `cancel` method to cancel\n * delayed invocations. Provide an options object to indicate that `func`\n * should be invoked on the leading and/or trailing edge of the `wait` timeout.\n * Subsequent calls to the throttled function return the result of the last\n * `func` call.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is invoked\n * on the trailing edge of the timeout only if the the throttled function is\n * invoked more than once during the `wait` timeout.\n *\n * See [David Corbacho's article](http://drupalmotion.com/article/debounce-and-throttle-visual-explanation)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options] The options object.\n * @param {boolean} [options.leading=true] Specify invoking on the leading\n * edge of the timeout.\n * @param {boolean} [options.trailing=true] Specify invoking on the trailing\n * edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // avoid excessively updating the position while scrolling\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // invoke `renewToken` when the click event is fired, but not more than once every 5 minutes\n * jQuery('.interactive').on('click', _.throttle(renewToken, 300000, {\n * 'trailing': false\n * }));\n *\n * // cancel a trailing throttled call\n * jQuery(window).on('popstate', throttled.cancel);\n */\n function throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (options === false) {\n leading = false;\n } else if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n debounceOptions.leading = leading;\n debounceOptions.maxWait = +wait;\n debounceOptions.trailing = trailing;\n return debounce(func, wait, debounceOptions);\n }\n\n /**\n * Creates a function that provides `value` to the wrapper function as its\n * first argument. Any additional arguments provided to the function are\n * appended to those provided to the wrapper function. The wrapper is invoked\n * with the `this` binding of the created function.\n *\n * @static\n * @memberOf _\n * @category Function\n * @param {*} value The value to wrap.\n * @param {Function} wrapper The wrapper function.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var p = _.wrap(_.escape, function(func, text) {\n * return '<p>' + func(text) + '</p>';\n * });\n *\n * p('fred, barney, & pebbles');\n * // => '<p>fred, barney, & pebbles</p>'\n */\n function wrap(value, wrapper) {\n wrapper = wrapper == null ? identity : wrapper;\n return createWrapper(wrapper, PARTIAL_FLAG, null, [value], []);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a clone of `value`. If `isDeep` is `true` nested objects are cloned,\n * otherwise they are assigned by reference. If `customizer` is provided it is\n * invoked to produce the cloned values. If `customizer` returns `undefined`\n * cloning is handled by the method instead. The `customizer` is bound to\n * `thisArg` and invoked with two argument; (value [, index|key, object]).\n *\n * **Note:** This method is loosely based on the structured clone algorithm.\n * The enumerable properties of `arguments` objects and objects created by\n * constructors other than `Object` are cloned to plain `Object` objects. An\n * empty object is returned for uncloneable values such as functions, DOM nodes,\n * Maps, Sets, and WeakMaps. See the [HTML5 specification](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @param {Function} [customizer] The function to customize cloning values.\n * @param {*} [thisArg] The `this` binding of `customizer`.\n * @returns {*} Returns the cloned value.\n * @example\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * var shallow = _.clone(users);\n * shallow[0] === users[0];\n * // => true\n *\n * var deep = _.clone(users, true);\n * deep[0] === users[0];\n * // => false\n *\n * // using a customizer callback\n * var el = _.clone(document.body, function(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(false);\n * }\n * });\n *\n * el === document.body\n * // => false\n * el.nodeName\n * // => BODY\n * el.childNodes.length;\n * // => 0\n */\n function clone(value, isDeep, customizer, thisArg) {\n if (isDeep && typeof isDeep != 'boolean' && isIterateeCall(value, isDeep, customizer)) {\n isDeep = false;\n }\n else if (typeof isDeep == 'function') {\n thisArg = customizer;\n customizer = isDeep;\n isDeep = false;\n }\n customizer = typeof customizer == 'function' && bindCallback(customizer, thisArg, 1);\n return baseClone(value, isDeep, customizer);\n }\n\n /**\n * Creates a deep clone of `value`. If `customizer` is provided it is invoked\n * to produce the cloned values. If `customizer` returns `undefined` cloning\n * is handled by the method instead. The `customizer` is bound to `thisArg`\n * and invoked with two argument; (value [, index|key, object]).\n *\n * **Note:** This method is loosely based on the structured clone algorithm.\n * The enumerable properties of `arguments` objects and objects created by\n * constructors other than `Object` are cloned to plain `Object` objects. An\n * empty object is returned for uncloneable values such as functions, DOM nodes,\n * Maps, Sets, and WeakMaps. See the [HTML5 specification](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to deep clone.\n * @param {Function} [customizer] The function to customize cloning values.\n * @param {*} [thisArg] The `this` binding of `customizer`.\n * @returns {*} Returns the deep cloned value.\n * @example\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * var deep = _.cloneDeep(users);\n * deep[0] === users[0];\n * // => false\n *\n * // using a customizer callback\n * var el = _.cloneDeep(document.body, function(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(true);\n * }\n * });\n *\n * el === document.body\n * // => false\n * el.nodeName\n * // => BODY\n * el.childNodes.length;\n * // => 20\n */\n function cloneDeep(value, customizer, thisArg) {\n customizer = typeof customizer == 'function' && bindCallback(customizer, thisArg, 1);\n return baseClone(value, true, customizer);\n }\n\n /**\n * Checks if `value` is classified as an `arguments` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n function isArguments(value) {\n var length = isObjectLike(value) ? value.length : undefined;\n return (isLength(length) && objToString.call(value) == argsTag) || false;\n }\n\n /**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(function() { return arguments; }());\n * // => false\n */\n var isArray = nativeIsArray || function(value) {\n return (isObjectLike(value) && isLength(value.length) && objToString.call(value) == arrayTag) || false;\n };\n\n /**\n * Checks if `value` is classified as a boolean primitive or object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isBoolean(false);\n * // => true\n *\n * _.isBoolean(null);\n * // => false\n */\n function isBoolean(value) {\n return (value === true || value === false || isObjectLike(value) && objToString.call(value) == boolTag) || false;\n }\n\n /**\n * Checks if `value` is classified as a `Date` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isDate(new Date);\n * // => true\n *\n * _.isDate('Mon April 23 2012');\n * // => false\n */\n function isDate(value) {\n return (isObjectLike(value) && objToString.call(value) == dateTag) || false;\n }\n\n /**\n * Checks if `value` is a DOM element.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\n * @example\n *\n * _.isElement(document.body);\n * // => true\n *\n * _.isElement('<body>');\n * // => false\n */\n function isElement(value) {\n return (value && value.nodeType === 1 && isObjectLike(value) &&\n objToString.call(value).indexOf('Element') > -1) || false;\n }\n // Fallback for environments without DOM support.\n if (!support.dom) {\n isElement = function(value) {\n return (value && value.nodeType === 1 && isObjectLike(value) && !isPlainObject(value)) || false;\n };\n }\n\n /**\n * Checks if a value is empty. A value is considered empty unless it is an\n * `arguments` object, array, string, or jQuery-like collection with a length\n * greater than `0` or an object with own enumerable properties.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {Array|Object|string} value The value to inspect.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\n function isEmpty(value) {\n if (value == null) {\n return true;\n }\n var length = value.length;\n if (isLength(length) && (isArray(value) || isString(value) || isArguments(value) ||\n (isObjectLike(value) && isFunction(value.splice)))) {\n return !length;\n }\n return !keys(value).length;\n }\n\n /**\n * Performs a deep comparison between two values to determine if they are\n * equivalent. If `customizer` is provided it is invoked to compare values.\n * If `customizer` returns `undefined` comparisons are handled by the method\n * instead. The `customizer` is bound to `thisArg` and invoked with three\n * arguments; (value, other [, index|key]).\n *\n * **Note:** This method supports comparing arrays, booleans, `Date` objects,\n * numbers, `Object` objects, regexes, and strings. Objects are compared by\n * their own, not inherited, enumerable properties. Functions and DOM nodes\n * are **not** supported. Provide a customizer function to extend support\n * for comparing other values.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparing values.\n * @param {*} [thisArg] The `this` binding of `customizer`.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'user': 'fred' };\n * var other = { 'user': 'fred' };\n *\n * object == other;\n * // => false\n *\n * _.isEqual(object, other);\n * // => true\n *\n * // using a customizer callback\n * var array = ['hello', 'goodbye'];\n * var other = ['hi', 'goodbye'];\n *\n * _.isEqual(array, other, function(value, other) {\n * if (_.every([value, other], RegExp.prototype.test, /^h(?:i|ello)$/)) {\n * return true;\n * }\n * });\n * // => true\n */\n function isEqual(value, other, customizer, thisArg) {\n customizer = typeof customizer == 'function' && bindCallback(customizer, thisArg, 3);\n if (!customizer && isStrictComparable(value) && isStrictComparable(other)) {\n return value === other;\n }\n var result = customizer ? customizer(value, other) : undefined;\n return typeof result == 'undefined' ? baseIsEqual(value, other, customizer) : !!result;\n }\n\n /**\n * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n * `SyntaxError`, `TypeError`, or `URIError` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an error object, else `false`.\n * @example\n *\n * _.isError(new Error);\n * // => true\n *\n * _.isError(Error);\n * // => false\n */\n function isError(value) {\n return (isObjectLike(value) && typeof value.message == 'string' && objToString.call(value) == errorTag) || false;\n }\n\n /**\n * Checks if `value` is a finite primitive number.\n *\n * **Note:** This method is based on ES `Number.isFinite`. See the\n * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isfinite)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.\n * @example\n *\n * _.isFinite(10);\n * // => true\n *\n * _.isFinite('10');\n * // => false\n *\n * _.isFinite(true);\n * // => false\n *\n * _.isFinite(Object(10));\n * // => false\n *\n * _.isFinite(Infinity);\n * // => false\n */\n var isFinite = nativeNumIsFinite || function(value) {\n return typeof value == 'number' && nativeIsFinite(value);\n };\n\n /**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n var isFunction = !(baseIsFunction(/x/) || (Uint8Array && !baseIsFunction(Uint8Array))) ? baseIsFunction : function(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in older versions of Chrome and Safari which return 'function' for regexes\n // and Safari 8 equivalents which return 'object' for typed array constructors.\n return objToString.call(value) == funcTag;\n };\n\n /**\n * Checks if `value` is the language type of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\n function isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return type == 'function' || (value && type == 'object') || false;\n }\n\n /**\n * Performs a deep comparison between `object` and `source` to determine if\n * `object` contains equivalent property values. If `customizer` is provided\n * it is invoked to compare values. If `customizer` returns `undefined`\n * comparisons are handled by the method instead. The `customizer` is bound\n * to `thisArg` and invoked with three arguments; (value, other, index|key).\n *\n * **Note:** This method supports comparing properties of arrays, booleans,\n * `Date` objects, numbers, `Object` objects, regexes, and strings. Functions\n * and DOM nodes are **not** supported. Provide a customizer function to extend\n * support for comparing other values.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Function} [customizer] The function to customize comparing values.\n * @param {*} [thisArg] The `this` binding of `customizer`.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * var object = { 'user': 'fred', 'age': 40 };\n *\n * _.isMatch(object, { 'age': 40 });\n * // => true\n *\n * _.isMatch(object, { 'age': 36 });\n * // => false\n *\n * // using a customizer callback\n * var object = { 'greeting': 'hello' };\n * var source = { 'greeting': 'hi' };\n *\n * _.isMatch(object, source, function(value, other) {\n * return _.every([value, other], RegExp.prototype.test, /^h(?:i|ello)$/) || undefined;\n * });\n * // => true\n */\n function isMatch(object, source, customizer, thisArg) {\n var props = keys(source),\n length = props.length;\n\n customizer = typeof customizer == 'function' && bindCallback(customizer, thisArg, 3);\n if (!customizer && length == 1) {\n var key = props[0],\n value = source[key];\n\n if (isStrictComparable(value)) {\n return object != null && value === object[key] && hasOwnProperty.call(object, key);\n }\n }\n var values = Array(length),\n strictCompareFlags = Array(length);\n\n while (length--) {\n value = values[length] = source[props[length]];\n strictCompareFlags[length] = isStrictComparable(value);\n }\n return baseIsMatch(object, props, values, strictCompareFlags, customizer);\n }\n\n /**\n * Checks if `value` is `NaN`.\n *\n * **Note:** This method is not the same as native `isNaN` which returns `true`\n * for `undefined` and other non-numeric values. See the [ES5 spec](https://es5.github.io/#x15.1.2.4)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n * @example\n *\n * _.isNaN(NaN);\n * // => true\n *\n * _.isNaN(new Number(NaN));\n * // => true\n *\n * isNaN(undefined);\n * // => true\n *\n * _.isNaN(undefined);\n * // => false\n */\n function isNaN(value) {\n // An `NaN` primitive is the only value that is not equal to itself.\n // Perform the `toStringTag` check first to avoid errors with some host objects in IE.\n return isNumber(value) && value != +value;\n }\n\n /**\n * Checks if `value` is a native function.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function, else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n function isNative(value) {\n if (value == null) {\n return false;\n }\n if (objToString.call(value) == funcTag) {\n return reNative.test(fnToString.call(value));\n }\n return (isObjectLike(value) && reHostCtor.test(value)) || false;\n }\n\n /**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\n function isNull(value) {\n return value === null;\n }\n\n /**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are classified\n * as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isNumber(8.4);\n * // => true\n *\n * _.isNumber(NaN);\n * // => true\n *\n * _.isNumber('8.4');\n * // => false\n */\n function isNumber(value) {\n return typeof value == 'number' || (isObjectLike(value) && objToString.call(value) == numberTag) || false;\n }\n\n /**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * **Note:** This method assumes objects created by the `Object` constructor\n * have no inherited enumerable properties.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\n var isPlainObject = !getPrototypeOf ? shimIsPlainObject : function(value) {\n if (!(value && objToString.call(value) == objectTag)) {\n return false;\n }\n var valueOf = value.valueOf,\n objProto = isNative(valueOf) && (objProto = getPrototypeOf(valueOf)) && getPrototypeOf(objProto);\n\n return objProto\n ? (value == objProto || getPrototypeOf(value) == objProto)\n : shimIsPlainObject(value);\n };\n\n /**\n * Checks if `value` is classified as a `RegExp` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isRegExp(/abc/);\n * // => true\n *\n * _.isRegExp('/abc/');\n * // => false\n */\n function isRegExp(value) {\n return (isObjectLike(value) && objToString.call(value) == regexpTag) || false;\n }\n\n /**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\n function isString(value) {\n return typeof value == 'string' || (isObjectLike(value) && objToString.call(value) == stringTag) || false;\n }\n\n /**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n function isTypedArray(value) {\n return (isObjectLike(value) && isLength(value.length) && typedArrayTags[objToString.call(value)]) || false;\n }\n\n /**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\n function isUndefined(value) {\n return typeof value == 'undefined';\n }\n\n /**\n * Converts `value` to an array.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Array} Returns the converted array.\n * @example\n *\n * (function() {\n * return _.toArray(arguments).slice(1);\n * }(1, 2, 3));\n * // => [2, 3]\n */\n function toArray(value) {\n var length = value ? value.length : 0;\n if (!isLength(length)) {\n return values(value);\n }\n if (!length) {\n return [];\n }\n return arrayCopy(value);\n }\n\n /**\n * Converts `value` to a plain object flattening inherited enumerable\n * properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\n function toPlainObject(value) {\n return baseCopy(value, keysIn(value));\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Assigns own enumerable properties of source object(s) to the destination\n * object. Subsequent sources overwrite property assignments of previous sources.\n * If `customizer` is provided it is invoked to produce the assigned values.\n * The `customizer` is bound to `thisArg` and invoked with five arguments;\n * (objectValue, sourceValue, key, object, source).\n *\n * @static\n * @memberOf _\n * @alias extend\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @param {Function} [customizer] The function to customize assigning values.\n * @param {*} [thisArg] The `this` binding of `customizer`.\n * @returns {Object} Returns `object`.\n * @example\n *\n * _.assign({ 'user': 'barney' }, { 'age': 40 }, { 'user': 'fred' });\n * // => { 'user': 'fred', 'age': 40 }\n *\n * // using a customizer callback\n * var defaults = _.partialRight(_.assign, function(value, other) {\n * return typeof value == 'undefined' ? other : value;\n * });\n *\n * defaults({ 'user': 'barney' }, { 'age': 36 }, { 'user': 'fred' });\n * // => { 'user': 'barney', 'age': 36 }\n */\n var assign = createAssigner(baseAssign);\n\n /**\n * Creates an object that inherits from the given `prototype` object. If a\n * `properties` object is provided its own enumerable properties are assigned\n * to the created object.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} prototype The object to inherit from.\n * @param {Object} [properties] The properties to assign to the object.\n * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.\n * @returns {Object} Returns the new object.\n * @example\n *\n * function Shape() {\n * this.x = 0;\n * this.y = 0;\n * }\n *\n * function Circle() {\n * Shape.call(this);\n * }\n *\n * Circle.prototype = _.create(Shape.prototype, {\n * 'constructor': Circle\n * });\n *\n * var circle = new Circle;\n * circle instanceof Circle;\n * // => true\n *\n * circle instanceof Shape;\n * // => true\n */\n function create(prototype, properties, guard) {\n var result = baseCreate(prototype);\n if (guard && isIterateeCall(prototype, properties, guard)) {\n properties = null;\n }\n return properties ? baseCopy(properties, result, keys(properties)) : result;\n }\n\n /**\n * Assigns own enumerable properties of source object(s) to the destination\n * object for all destination properties that resolve to `undefined`. Once a\n * property is set, additional defaults of the same property are ignored.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * _.defaults({ 'user': 'barney' }, { 'age': 36 }, { 'user': 'fred' });\n * // => { 'user': 'barney', 'age': 36 }\n */\n function defaults(object) {\n if (object == null) {\n return object;\n }\n var args = arrayCopy(arguments);\n args.push(assignDefaults);\n return assign.apply(undefined, args);\n }\n\n /**\n * This method is like `_.findIndex` except that it returns the key of the\n * first element `predicate` returns truthy for, instead of the element itself.\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to search.\n * @param {Function|Object|string} [predicate=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `predicate`.\n * @returns {string|undefined} Returns the key of the matched element, else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findKey(users, function(chr) {\n * return chr.age < 40;\n * });\n * // => 'barney' (iteration order is not guaranteed)\n *\n * // using the `_.matches` callback shorthand\n * _.findKey(users, { 'age': 1, 'active': true });\n * // => 'pebbles'\n *\n * // using the `_.matchesProperty` callback shorthand\n * _.findKey(users, 'active', false);\n * // => 'fred'\n *\n * // using the `_.property` callback shorthand\n * _.findKey(users, 'active');\n * // => 'barney'\n */\n function findKey(object, predicate, thisArg) {\n predicate = getCallback(predicate, thisArg, 3);\n return baseFind(object, predicate, baseForOwn, true);\n }\n\n /**\n * This method is like `_.findKey` except that it iterates over elements of\n * a collection in the opposite order.\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to search.\n * @param {Function|Object|string} [predicate=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `predicate`.\n * @returns {string|undefined} Returns the key of the matched element, else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findLastKey(users, function(chr) {\n * return chr.age < 40;\n * });\n * // => returns `pebbles` assuming `_.findKey` returns `barney`\n *\n * // using the `_.matches` callback shorthand\n * _.findLastKey(users, { 'age': 36, 'active': true });\n * // => 'barney'\n *\n * // using the `_.matchesProperty` callback shorthand\n * _.findLastKey(users, 'active', false);\n * // => 'fred'\n *\n * // using the `_.property` callback shorthand\n * _.findLastKey(users, 'active');\n * // => 'pebbles'\n */\n function findLastKey(object, predicate, thisArg) {\n predicate = getCallback(predicate, thisArg, 3);\n return baseFind(object, predicate, baseForOwnRight, true);\n }\n\n /**\n * Iterates over own and inherited enumerable properties of an object invoking\n * `iteratee` for each property. The `iteratee` is bound to `thisArg` and invoked\n * with three arguments; (value, key, object). Iterator functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => logs 'a', 'b', and 'c' (iteration order is not guaranteed)\n */\n function forIn(object, iteratee, thisArg) {\n if (typeof iteratee != 'function' || typeof thisArg != 'undefined') {\n iteratee = bindCallback(iteratee, thisArg, 3);\n }\n return baseFor(object, iteratee, keysIn);\n }\n\n /**\n * This method is like `_.forIn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forInRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => logs 'c', 'b', and 'a' assuming `_.forIn ` logs 'a', 'b', and 'c'\n */\n function forInRight(object, iteratee, thisArg) {\n iteratee = bindCallback(iteratee, thisArg, 3);\n return baseForRight(object, iteratee, keysIn);\n }\n\n /**\n * Iterates over own enumerable properties of an object invoking `iteratee`\n * for each property. The `iteratee` is bound to `thisArg` and invoked with\n * three arguments; (value, key, object). Iterator functions may exit iteration\n * early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => logs 'a' and 'b' (iteration order is not guaranteed)\n */\n function forOwn(object, iteratee, thisArg) {\n if (typeof iteratee != 'function' || typeof thisArg != 'undefined') {\n iteratee = bindCallback(iteratee, thisArg, 3);\n }\n return baseForOwn(object, iteratee);\n }\n\n /**\n * This method is like `_.forOwn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwnRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => logs 'b' and 'a' assuming `_.forOwn` logs 'a' and 'b'\n */\n function forOwnRight(object, iteratee, thisArg) {\n iteratee = bindCallback(iteratee, thisArg, 3);\n return baseForRight(object, iteratee, keys);\n }\n\n /**\n * Creates an array of function property names from all enumerable properties,\n * own and inherited, of `object`.\n *\n * @static\n * @memberOf _\n * @alias methods\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the new array of property names.\n * @example\n *\n * _.functions(_);\n * // => ['after', 'ary', 'assign', ...]\n */\n function functions(object) {\n return baseFunctions(object, keysIn(object));\n }\n\n /**\n * Checks if `key` exists as a direct property of `object` instead of an\n * inherited property.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {string} key The key to check.\n * @returns {boolean} Returns `true` if `key` is a direct property, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 3 };\n *\n * _.has(object, 'b');\n * // => true\n */\n function has(object, key) {\n return object ? hasOwnProperty.call(object, key) : false;\n }\n\n /**\n * Creates an object composed of the inverted keys and values of `object`.\n * If `object` contains duplicate values, subsequent values overwrite property\n * assignments of previous values unless `multiValue` is `true`.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to invert.\n * @param {boolean} [multiValue] Allow multiple values per key.\n * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invert(object);\n * // => { '1': 'c', '2': 'b' }\n *\n * // with `multiValue`\n * _.invert(object, true);\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\n function invert(object, multiValue, guard) {\n if (guard && isIterateeCall(object, multiValue, guard)) {\n multiValue = null;\n }\n var index = -1,\n props = keys(object),\n length = props.length,\n result = {};\n\n while (++index < length) {\n var key = props[index],\n value = object[key];\n\n if (multiValue) {\n if (hasOwnProperty.call(result, value)) {\n result[value].push(key);\n } else {\n result[value] = [key];\n }\n }\n else {\n result[value] = key;\n }\n }\n return result;\n }\n\n /**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.keys)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n var keys = !nativeKeys ? shimKeys : function(object) {\n if (object) {\n var Ctor = object.constructor,\n length = object.length;\n }\n if ((typeof Ctor == 'function' && Ctor.prototype === object) ||\n (typeof object != 'function' && (length && isLength(length)))) {\n return shimKeys(object);\n }\n return isObject(object) ? nativeKeys(object) : [];\n };\n\n /**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n function keysIn(object) {\n if (object == null) {\n return [];\n }\n if (!isObject(object)) {\n object = Object(object);\n }\n var length = object.length;\n length = (length && isLength(length) &&\n (isArray(object) || (support.nonEnumArgs && isArguments(object))) && length) || 0;\n\n var Ctor = object.constructor,\n index = -1,\n isProto = typeof Ctor == 'function' && Ctor.prototype === object,\n result = Array(length),\n skipIndexes = length > 0;\n\n while (++index < length) {\n result[index] = (index + '');\n }\n for (var key in object) {\n if (!(skipIndexes && isIndex(key, length)) &&\n !(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * Creates an object with the same keys as `object` and values generated by\n * running each own enumerable property of `object` through `iteratee`. The\n * iteratee function is bound to `thisArg` and invoked with three arguments;\n * (value, key, object).\n *\n * If a property name is provided for `iteratee` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `iteratee` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function|Object|string} [iteratee=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {Object} Returns the new mapped object.\n * @example\n *\n * _.mapValues({ 'a': 1, 'b': 2 }, function(n) {\n * return n * 3;\n * });\n * // => { 'a': 3, 'b': 6 }\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * // using the `_.property` callback shorthand\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\n function mapValues(object, iteratee, thisArg) {\n var result = {};\n iteratee = getCallback(iteratee, thisArg, 3);\n\n baseForOwn(object, function(value, key, object) {\n result[key] = iteratee(value, key, object);\n });\n return result;\n }\n\n /**\n * Recursively merges own enumerable properties of the source object(s), that\n * don't resolve to `undefined` into the destination object. Subsequent sources\n * overwrite property assignments of previous sources. If `customizer` is\n * provided it is invoked to produce the merged values of the destination and\n * source properties. If `customizer` returns `undefined` merging is handled\n * by the method instead. The `customizer` is bound to `thisArg` and invoked\n * with five arguments; (objectValue, sourceValue, key, object, source).\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @param {Function} [customizer] The function to customize merging properties.\n * @param {*} [thisArg] The `this` binding of `customizer`.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var users = {\n * 'data': [{ 'user': 'barney' }, { 'user': 'fred' }]\n * };\n *\n * var ages = {\n * 'data': [{ 'age': 36 }, { 'age': 40 }]\n * };\n *\n * _.merge(users, ages);\n * // => { 'data': [{ 'user': 'barney', 'age': 36 }, { 'user': 'fred', 'age': 40 }] }\n *\n * // using a customizer callback\n * var object = {\n * 'fruits': ['apple'],\n * 'vegetables': ['beet']\n * };\n *\n * var other = {\n * 'fruits': ['banana'],\n * 'vegetables': ['carrot']\n * };\n *\n * _.merge(object, other, function(a, b) {\n * if (_.isArray(a)) {\n * return a.concat(b);\n * }\n * });\n * // => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot'] }\n */\n var merge = createAssigner(baseMerge);\n\n /**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable properties of `object` that are not omitted.\n * Property names may be specified as individual arguments or as arrays of\n * property names. If `predicate` is provided it is invoked for each property\n * of `object` omitting the properties `predicate` returns truthy for. The\n * predicate is bound to `thisArg` and invoked with three arguments;\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {Function|...(string|string[])} [predicate] The function invoked per\n * iteration or property names to omit, specified as individual property\n * names or arrays of property names.\n * @param {*} [thisArg] The `this` binding of `predicate`.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'user': 'fred', 'age': 40 };\n *\n * _.omit(object, 'age');\n * // => { 'user': 'fred' }\n *\n * _.omit(object, _.isNumber);\n * // => { 'user': 'fred' }\n */\n function omit(object, predicate, thisArg) {\n if (object == null) {\n return {};\n }\n if (typeof predicate != 'function') {\n var props = arrayMap(baseFlatten(arguments, false, false, 1), String);\n return pickByArray(object, baseDifference(keysIn(object), props));\n }\n predicate = bindCallback(predicate, thisArg, 3);\n return pickByCallback(object, function(value, key, object) {\n return !predicate(value, key, object);\n });\n }\n\n /**\n * Creates a two dimensional array of the key-value pairs for `object`,\n * e.g. `[[key1, value1], [key2, value2]]`.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the new array of key-value pairs.\n * @example\n *\n * _.pairs({ 'barney': 36, 'fred': 40 });\n * // => [['barney', 36], ['fred', 40]] (iteration order is not guaranteed)\n */\n function pairs(object) {\n var index = -1,\n props = keys(object),\n length = props.length,\n result = Array(length);\n\n while (++index < length) {\n var key = props[index];\n result[index] = [key, object[key]];\n }\n return result;\n }\n\n /**\n * Creates an object composed of the picked `object` properties. Property\n * names may be specified as individual arguments or as arrays of property\n * names. If `predicate` is provided it is invoked for each property of `object`\n * picking the properties `predicate` returns truthy for. The predicate is\n * bound to `thisArg` and invoked with three arguments; (value, key, object).\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {Function|...(string|string[])} [predicate] The function invoked per\n * iteration or property names to pick, specified as individual property\n * names or arrays of property names.\n * @param {*} [thisArg] The `this` binding of `predicate`.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'user': 'fred', 'age': 40 };\n *\n * _.pick(object, 'user');\n * // => { 'user': 'fred' }\n *\n * _.pick(object, _.isString);\n * // => { 'user': 'fred' }\n */\n function pick(object, predicate, thisArg) {\n if (object == null) {\n return {};\n }\n return typeof predicate == 'function'\n ? pickByCallback(object, bindCallback(predicate, thisArg, 3))\n : pickByArray(object, baseFlatten(arguments, false, false, 1));\n }\n\n /**\n * Resolves the value of property `key` on `object`. If the value of `key` is\n * a function it is invoked with the `this` binding of `object` and its result\n * is returned, else the property value is returned. If the property value is\n * `undefined` the `defaultValue` is used in its place.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to resolve.\n * @param {*} [defaultValue] The value returned if the property value\n * resolves to `undefined`.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'user': 'fred', 'age': _.constant(40) };\n *\n * _.result(object, 'user');\n * // => 'fred'\n *\n * _.result(object, 'age');\n * // => 40\n *\n * _.result(object, 'status', 'busy');\n * // => 'busy'\n *\n * _.result(object, 'status', _.constant('busy'));\n * // => 'busy'\n */\n function result(object, key, defaultValue) {\n var value = object == null ? undefined : object[key];\n if (typeof value == 'undefined') {\n value = defaultValue;\n }\n return isFunction(value) ? value.call(object) : value;\n }\n\n /**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own enumerable\n * properties through `iteratee`, with each invocation potentially mutating\n * the `accumulator` object. The `iteratee` is bound to `thisArg` and invoked\n * with four arguments; (accumulator, value, key, object). Iterator functions\n * may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Array|Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * });\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2 }, function(result, n, key) {\n * result[key] = n * 3;\n * });\n * // => { 'a': 3, 'b': 6 }\n */\n function transform(object, iteratee, accumulator, thisArg) {\n var isArr = isArray(object) || isTypedArray(object);\n iteratee = getCallback(iteratee, thisArg, 4);\n\n if (accumulator == null) {\n if (isArr || isObject(object)) {\n var Ctor = object.constructor;\n if (isArr) {\n accumulator = isArray(object) ? new Ctor : [];\n } else {\n accumulator = baseCreate(isFunction(Ctor) && Ctor.prototype);\n }\n } else {\n accumulator = {};\n }\n }\n (isArr ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n }\n\n /**\n * Creates an array of the own enumerable property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\n function values(object) {\n return baseValues(object, keys(object));\n }\n\n /**\n * Creates an array of the own and inherited enumerable property values\n * of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.valuesIn(new Foo);\n * // => [1, 2, 3] (iteration order is not guaranteed)\n */\n function valuesIn(object) {\n return baseValues(object, keysIn(object));\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Checks if `n` is between `start` and up to but not including, `end`. If\n * `end` is not specified it defaults to `start` with `start` becoming `0`.\n *\n * @static\n * @memberOf _\n * @category Number\n * @param {number} n The number to check.\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `n` is in the range, else `false`.\n * @example\n *\n * _.inRange(3, 2, 4);\n * // => true\n *\n * _.inRange(4, 8);\n * // => true\n *\n * _.inRange(4, 2);\n * // => false\n *\n * _.inRange(2, 2);\n * // => false\n *\n * _.inRange(1.2, 2);\n * // => true\n *\n * _.inRange(5.2, 4);\n * // => false\n */\n function inRange(value, start, end) {\n start = +start || 0;\n if (typeof end === 'undefined') {\n end = start;\n start = 0;\n } else {\n end = +end || 0;\n }\n return value >= start && value < end;\n }\n\n /**\n * Produces a random number between `min` and `max` (inclusive). If only one\n * argument is provided a number between `0` and the given number is returned.\n * If `floating` is `true`, or either `min` or `max` are floats, a floating-point\n * number is returned instead of an integer.\n *\n * @static\n * @memberOf _\n * @category Number\n * @param {number} [min=0] The minimum possible value.\n * @param {number} [max=1] The maximum possible value.\n * @param {boolean} [floating] Specify returning a floating-point number.\n * @returns {number} Returns the random number.\n * @example\n *\n * _.random(0, 5);\n * // => an integer between 0 and 5\n *\n * _.random(5);\n * // => also an integer between 0 and 5\n *\n * _.random(5, true);\n * // => a floating-point number between 0 and 5\n *\n * _.random(1.2, 5.2);\n * // => a floating-point number between 1.2 and 5.2\n */\n function random(min, max, floating) {\n if (floating && isIterateeCall(min, max, floating)) {\n max = floating = null;\n }\n var noMin = min == null,\n noMax = max == null;\n\n if (floating == null) {\n if (noMax && typeof min == 'boolean') {\n floating = min;\n min = 1;\n }\n else if (typeof max == 'boolean') {\n floating = max;\n noMax = true;\n }\n }\n if (noMin && noMax) {\n max = 1;\n noMax = false;\n }\n min = +min || 0;\n if (noMax) {\n max = min;\n min = 0;\n } else {\n max = +max || 0;\n }\n if (floating || min % 1 || max % 1) {\n var rand = nativeRandom();\n return nativeMin(min + (rand * (max - min + parseFloat('1e-' + ((rand + '').length - 1)))), max);\n }\n return baseRandom(min, max);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Converts `string` to camel case.\n * See [Wikipedia](https://en.wikipedia.org/wiki/CamelCase) for more details.\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the camel cased string.\n * @example\n *\n * _.camelCase('Foo Bar');\n * // => 'fooBar'\n *\n * _.camelCase('--foo-bar');\n * // => 'fooBar'\n *\n * _.camelCase('__foo_bar__');\n * // => 'fooBar'\n */\n var camelCase = createCompounder(function(result, word, index) {\n word = word.toLowerCase();\n return result + (index ? (word.charAt(0).toUpperCase() + word.slice(1)) : word);\n });\n\n /**\n * Capitalizes the first character of `string`.\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('fred');\n * // => 'Fred'\n */\n function capitalize(string) {\n string = baseToString(string);\n return string && (string.charAt(0).toUpperCase() + string.slice(1));\n }\n\n /**\n * Deburrs `string` by converting latin-1 supplementary letters to basic latin letters.\n * See [Wikipedia](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\n function deburr(string) {\n string = baseToString(string);\n return string && string.replace(reLatin1, deburrLetter);\n }\n\n /**\n * Checks if `string` ends with the given target string.\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to search.\n * @param {string} [target] The string to search for.\n * @param {number} [position=string.length] The position to search from.\n * @returns {boolean} Returns `true` if `string` ends with `target`, else `false`.\n * @example\n *\n * _.endsWith('abc', 'c');\n * // => true\n *\n * _.endsWith('abc', 'b');\n * // => false\n *\n * _.endsWith('abc', 'b', 2);\n * // => true\n */\n function endsWith(string, target, position) {\n string = baseToString(string);\n target = (target + '');\n\n var length = string.length;\n position = (typeof position == 'undefined' ? length : nativeMin(position < 0 ? 0 : (+position || 0), length)) - target.length;\n return position >= 0 && string.indexOf(target, position) == position;\n }\n\n /**\n * Converts the characters \"&\", \"<\", \">\", '\"', \"'\", and '`', in `string` to\n * their corresponding HTML entities.\n *\n * **Note:** No other characters are escaped. To escape additional characters\n * use a third-party library like [_he_](https://mths.be/he).\n *\n * Though the \">\" character is escaped for symmetry, characters like\n * \">\" and \"/\" don't require escaping in HTML and have no special meaning\n * unless they're part of a tag or unquoted attribute value.\n * See [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)\n * (under \"semi-related fun fact\") for more details.\n *\n * Backticks are escaped because in Internet Explorer < 9, they can break out\n * of attribute values or HTML comments. See [#102](https://html5sec.org/#102),\n * [#108](https://html5sec.org/#108), and [#133](https://html5sec.org/#133) of\n * the [HTML5 Security Cheatsheet](https://html5sec.org/) for more details.\n *\n * When working with HTML you should always quote attribute values to reduce\n * XSS vectors. See [Ryan Grove's article](http://wonko.com/post/html-escaping)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escape('fred, barney, & pebbles');\n * // => 'fred, barney, & pebbles'\n */\n function escape(string) {\n // Reset `lastIndex` because in IE < 9 `String#replace` does not.\n string = baseToString(string);\n return (string && reHasUnescapedHtml.test(string))\n ? string.replace(reUnescapedHtml, escapeHtmlChar)\n : string;\n }\n\n /**\n * Escapes the `RegExp` special characters \"\\\", \"^\", \"$\", \".\", \"|\", \"?\", \"*\",\n * \"+\", \"(\", \")\", \"[\", \"]\", \"{\" and \"}\" in `string`.\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escapeRegExp('[lodash](https://lodash.com/)');\n * // => '\\[lodash\\]\\(https://lodash\\.com/\\)'\n */\n function escapeRegExp(string) {\n string = baseToString(string);\n return (string && reHasRegExpChars.test(string))\n ? string.replace(reRegExpChars, '\\\\$&')\n : string;\n }\n\n /**\n * Converts `string` to kebab case.\n * See [Wikipedia](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles) for\n * more details.\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the kebab cased string.\n * @example\n *\n * _.kebabCase('Foo Bar');\n * // => 'foo-bar'\n *\n * _.kebabCase('fooBar');\n * // => 'foo-bar'\n *\n * _.kebabCase('__foo_bar__');\n * // => 'foo-bar'\n */\n var kebabCase = createCompounder(function(result, word, index) {\n return result + (index ? '-' : '') + word.toLowerCase();\n });\n\n /**\n * Pads `string` on the left and right sides if it is shorter then the given\n * padding length. The `chars` string may be truncated if the number of padding\n * characters can't be evenly divided by the padding length.\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.pad('abc', 8);\n * // => ' abc '\n *\n * _.pad('abc', 8, '_-');\n * // => '_-abc_-_'\n *\n * _.pad('abc', 3);\n * // => 'abc'\n */\n function pad(string, length, chars) {\n string = baseToString(string);\n length = +length;\n\n var strLength = string.length;\n if (strLength >= length || !nativeIsFinite(length)) {\n return string;\n }\n var mid = (length - strLength) / 2,\n leftLength = floor(mid),\n rightLength = ceil(mid);\n\n chars = createPad('', rightLength, chars);\n return chars.slice(0, leftLength) + string + chars;\n }\n\n /**\n * Pads `string` on the left side if it is shorter then the given padding\n * length. The `chars` string may be truncated if the number of padding\n * characters exceeds the padding length.\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padLeft('abc', 6);\n * // => ' abc'\n *\n * _.padLeft('abc', 6, '_-');\n * // => '_-_abc'\n *\n * _.padLeft('abc', 3);\n * // => 'abc'\n */\n function padLeft(string, length, chars) {\n string = baseToString(string);\n return string && (createPad(string, length, chars) + string);\n }\n\n /**\n * Pads `string` on the right side if it is shorter then the given padding\n * length. The `chars` string may be truncated if the number of padding\n * characters exceeds the padding length.\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padRight('abc', 6);\n * // => 'abc '\n *\n * _.padRight('abc', 6, '_-');\n * // => 'abc_-_'\n *\n * _.padRight('abc', 3);\n * // => 'abc'\n */\n function padRight(string, length, chars) {\n string = baseToString(string);\n return string && (string + createPad(string, length, chars));\n }\n\n /**\n * Converts `string` to an integer of the specified radix. If `radix` is\n * `undefined` or `0`, a `radix` of `10` is used unless `value` is a hexadecimal,\n * in which case a `radix` of `16` is used.\n *\n * **Note:** This method aligns with the ES5 implementation of `parseInt`.\n * See the [ES5 spec](https://es5.github.io/#E) for more details.\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} string The string to convert.\n * @param {number} [radix] The radix to interpret `value` by.\n * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.parseInt('08');\n * // => 8\n *\n * _.map(['6', '08', '10'], _.parseInt);\n * // => [6, 8, 10]\n */\n function parseInt(string, radix, guard) {\n if (guard && isIterateeCall(string, radix, guard)) {\n radix = 0;\n }\n return nativeParseInt(string, radix);\n }\n // Fallback for environments with pre-ES5 implementations.\n if (nativeParseInt(whitespace + '08') != 8) {\n parseInt = function(string, radix, guard) {\n // Firefox < 21 and Opera < 15 follow ES3 for `parseInt`.\n // Chrome fails to trim leading <BOM> whitespace characters.\n // See https://code.google.com/p/v8/issues/detail?id=3109 for more details.\n if (guard ? isIterateeCall(string, radix, guard) : radix == null) {\n radix = 0;\n } else if (radix) {\n radix = +radix;\n }\n string = trim(string);\n return nativeParseInt(string, radix || (reHexPrefix.test(string) ? 16 : 10));\n };\n }\n\n /**\n * Repeats the given string `n` times.\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to repeat.\n * @param {number} [n=0] The number of times to repeat the string.\n * @returns {string} Returns the repeated string.\n * @example\n *\n * _.repeat('*', 3);\n * // => '***'\n *\n * _.repeat('abc', 2);\n * // => 'abcabc'\n *\n * _.repeat('abc', 0);\n * // => ''\n */\n function repeat(string, n) {\n var result = '';\n string = baseToString(string);\n n = +n;\n if (n < 1 || !string || !nativeIsFinite(n)) {\n return result;\n }\n // Leverage the exponentiation by squaring algorithm for a faster repeat.\n // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.\n do {\n if (n % 2) {\n result += string;\n }\n n = floor(n / 2);\n string += string;\n } while (n);\n\n return result;\n }\n\n /**\n * Converts `string` to snake case.\n * See [Wikipedia](https://en.wikipedia.org/wiki/Snake_case) for more details.\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the snake cased string.\n * @example\n *\n * _.snakeCase('Foo Bar');\n * // => 'foo_bar'\n *\n * _.snakeCase('fooBar');\n * // => 'foo_bar'\n *\n * _.snakeCase('--foo-bar');\n * // => 'foo_bar'\n */\n var snakeCase = createCompounder(function(result, word, index) {\n return result + (index ? '_' : '') + word.toLowerCase();\n });\n\n /**\n * Converts `string` to start case.\n * See [Wikipedia](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the start cased string.\n * @example\n *\n * _.startCase('--foo-bar');\n * // => 'Foo Bar'\n *\n * _.startCase('fooBar');\n * // => 'Foo Bar'\n *\n * _.startCase('__foo_bar__');\n * // => 'Foo Bar'\n */\n var startCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + (word.charAt(0).toUpperCase() + word.slice(1));\n });\n\n /**\n * Checks if `string` starts with the given target string.\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to search.\n * @param {string} [target] The string to search for.\n * @param {number} [position=0] The position to search from.\n * @returns {boolean} Returns `true` if `string` starts with `target`, else `false`.\n * @example\n *\n * _.startsWith('abc', 'a');\n * // => true\n *\n * _.startsWith('abc', 'b');\n * // => false\n *\n * _.startsWith('abc', 'b', 1);\n * // => true\n */\n function startsWith(string, target, position) {\n string = baseToString(string);\n position = position == null ? 0 : nativeMin(position < 0 ? 0 : (+position || 0), string.length);\n return string.lastIndexOf(target, position) == position;\n }\n\n /**\n * Creates a compiled template function that can interpolate data properties\n * in \"interpolate\" delimiters, HTML-escape interpolated data properties in\n * \"escape\" delimiters, and execute JavaScript in \"evaluate\" delimiters. Data\n * properties may be accessed as free variables in the template. If a setting\n * object is provided it takes precedence over `_.templateSettings` values.\n *\n * **Note:** In the development build `_.template` utilizes sourceURLs for easier debugging.\n * See the [HTML5 Rocks article on sourcemaps](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)\n * for more details.\n *\n * For more information on precompiling templates see\n * [lodash's custom builds documentation](https://lodash.com/custom-builds).\n *\n * For more information on Chrome extension sandboxes see\n * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} [string=''] The template string.\n * @param {Object} [options] The options object.\n * @param {RegExp} [options.escape] The HTML \"escape\" delimiter.\n * @param {RegExp} [options.evaluate] The \"evaluate\" delimiter.\n * @param {Object} [options.imports] An object to import into the template as free variables.\n * @param {RegExp} [options.interpolate] The \"interpolate\" delimiter.\n * @param {string} [options.sourceURL] The sourceURL of the template's compiled source.\n * @param {string} [options.variable] The data object variable name.\n * @param- {Object} [otherOptions] Enables the legacy `options` param signature.\n * @returns {Function} Returns the compiled template function.\n * @example\n *\n * // using the \"interpolate\" delimiter to create a compiled template\n * var compiled = _.template('hello <%= user %>!');\n * compiled({ 'user': 'fred' });\n * // => 'hello fred!'\n *\n * // using the HTML \"escape\" delimiter to escape data property values\n * var compiled = _.template('<b><%- value %></b>');\n * compiled({ 'value': '<script>' });\n * // => '<b><script></b>'\n *\n * // using the \"evaluate\" delimiter to execute JavaScript and generate HTML\n * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');\n * compiled({ 'users': ['fred', 'barney'] });\n * // => '<li>fred</li><li>barney</li>'\n *\n * // using the internal `print` function in \"evaluate\" delimiters\n * var compiled = _.template('<% print(\"hello \" + user); %>!');\n * compiled({ 'user': 'barney' });\n * // => 'hello barney!'\n *\n * // using the ES delimiter as an alternative to the default \"interpolate\" delimiter\n * var compiled = _.template('hello ${ user }!');\n * compiled({ 'user': 'pebbles' });\n * // => 'hello pebbles!'\n *\n * // using custom template delimiters\n * _.templateSettings.interpolate = /{{([\\s\\S]+?)}}/g;\n * var compiled = _.template('hello {{ user }}!');\n * compiled({ 'user': 'mustache' });\n * // => 'hello mustache!'\n *\n * // using backslashes to treat delimiters as plain text\n * var compiled = _.template('<%= \"\\\\<%- value %\\\\>\" %>');\n * compiled({ 'value': 'ignored' });\n * // => '<%- value %>'\n *\n * // using the `imports` option to import `jQuery` as `jq`\n * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';\n * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });\n * compiled({ 'users': ['fred', 'barney'] });\n * // => '<li>fred</li><li>barney</li>'\n *\n * // using the `sourceURL` option to specify a custom sourceURL for the template\n * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });\n * compiled(data);\n * // => find the source of \"greeting.jst\" under the Sources tab or Resources panel of the web inspector\n *\n * // using the `variable` option to ensure a with-statement isn't used in the compiled template\n * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });\n * compiled.source;\n * // => function(data) {\n * // var __t, __p = '';\n * // __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';\n * // return __p;\n * // }\n *\n * // using the `source` property to inline compiled templates for meaningful\n * // line numbers in error messages and a stack trace\n * fs.writeFileSync(path.join(cwd, 'jst.js'), '\\\n * var JST = {\\\n * \"main\": ' + _.template(mainText).source + '\\\n * };\\\n * ');\n */\n function template(string, options, otherOptions) {\n // Based on John Resig's `tmpl` implementation (http://ejohn.org/blog/javascript-micro-templating/)\n // and Laura Doktorova's doT.js (https://github.com/olado/doT).\n var settings = lodash.templateSettings;\n\n if (otherOptions && isIterateeCall(string, options, otherOptions)) {\n options = otherOptions = null;\n }\n string = baseToString(string);\n options = baseAssign(baseAssign({}, otherOptions || options), settings, assignOwnDefaults);\n\n var imports = baseAssign(baseAssign({}, options.imports), settings.imports, assignOwnDefaults),\n importsKeys = keys(imports),\n importsValues = baseValues(imports, importsKeys);\n\n var isEscaping,\n isEvaluating,\n index = 0,\n interpolate = options.interpolate || reNoMatch,\n source = \"__p += '\";\n\n // Compile the regexp to match each delimiter.\n var reDelimiters = RegExp(\n (options.escape || reNoMatch).source + '|' +\n interpolate.source + '|' +\n (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +\n (options.evaluate || reNoMatch).source + '|$'\n , 'g');\n\n // Use a sourceURL for easier debugging.\n var sourceURL = '//# sourceURL=' +\n ('sourceURL' in options\n ? options.sourceURL\n : ('lodash.templateSources[' + (++templateCounter) + ']')\n ) + '\\n';\n\n string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {\n interpolateValue || (interpolateValue = esTemplateValue);\n\n // Escape characters that can't be included in string literals.\n source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);\n\n // Replace delimiters with snippets.\n if (escapeValue) {\n isEscaping = true;\n source += \"' +\\n__e(\" + escapeValue + \") +\\n'\";\n }\n if (evaluateValue) {\n isEvaluating = true;\n source += \"';\\n\" + evaluateValue + \";\\n__p += '\";\n }\n if (interpolateValue) {\n source += \"' +\\n((__t = (\" + interpolateValue + \")) == null ? '' : __t) +\\n'\";\n }\n index = offset + match.length;\n\n // The JS engine embedded in Adobe products requires returning the `match`\n // string in order to produce the correct `offset` value.\n return match;\n });\n\n source += \"';\\n\";\n\n // If `variable` is not specified wrap a with-statement around the generated\n // code to add the data object to the top of the scope chain.\n var variable = options.variable;\n if (!variable) {\n source = 'with (obj) {\\n' + source + '\\n}\\n';\n }\n // Cleanup code by stripping empty strings.\n source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)\n .replace(reEmptyStringMiddle, '$1')\n .replace(reEmptyStringTrailing, '$1;');\n\n // Frame code as the function body.\n source = 'function(' + (variable || 'obj') + ') {\\n' +\n (variable\n ? ''\n : 'obj || (obj = {});\\n'\n ) +\n \"var __t, __p = ''\" +\n (isEscaping\n ? ', __e = _.escape'\n : ''\n ) +\n (isEvaluating\n ? ', __j = Array.prototype.join;\\n' +\n \"function print() { __p += __j.call(arguments, '') }\\n\"\n : ';\\n'\n ) +\n source +\n 'return __p\\n}';\n\n var result = attempt(function() {\n return Function(importsKeys, sourceURL + 'return ' + source).apply(undefined, importsValues);\n });\n\n // Provide the compiled function's source by its `toString` method or\n // the `source` property as a convenience for inlining compiled templates.\n result.source = source;\n if (isError(result)) {\n throw result;\n }\n return result;\n }\n\n /**\n * Removes leading and trailing whitespace or specified characters from `string`.\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to trim.\n * @param {string} [chars=whitespace] The characters to trim.\n * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.\n * @returns {string} Returns the trimmed string.\n * @example\n *\n * _.trim(' abc ');\n * // => 'abc'\n *\n * _.trim('-_-abc-_-', '_-');\n * // => 'abc'\n *\n * _.map([' foo ', ' bar '], _.trim);\n * // => ['foo', 'bar]\n */\n function trim(string, chars, guard) {\n var value = string;\n string = baseToString(string);\n if (!string) {\n return string;\n }\n if (guard ? isIterateeCall(value, chars, guard) : chars == null) {\n return string.slice(trimmedLeftIndex(string), trimmedRightIndex(string) + 1);\n }\n chars = (chars + '');\n return string.slice(charsLeftIndex(string, chars), charsRightIndex(string, chars) + 1);\n }\n\n /**\n * Removes leading whitespace or specified characters from `string`.\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to trim.\n * @param {string} [chars=whitespace] The characters to trim.\n * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.\n * @returns {string} Returns the trimmed string.\n * @example\n *\n * _.trimLeft(' abc ');\n * // => 'abc '\n *\n * _.trimLeft('-_-abc-_-', '_-');\n * // => 'abc-_-'\n */\n function trimLeft(string, chars, guard) {\n var value = string;\n string = baseToString(string);\n if (!string) {\n return string;\n }\n if (guard ? isIterateeCall(value, chars, guard) : chars == null) {\n return string.slice(trimmedLeftIndex(string));\n }\n return string.slice(charsLeftIndex(string, (chars + '')));\n }\n\n /**\n * Removes trailing whitespace or specified characters from `string`.\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to trim.\n * @param {string} [chars=whitespace] The characters to trim.\n * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.\n * @returns {string} Returns the trimmed string.\n * @example\n *\n * _.trimRight(' abc ');\n * // => ' abc'\n *\n * _.trimRight('-_-abc-_-', '_-');\n * // => '-_-abc'\n */\n function trimRight(string, chars, guard) {\n var value = string;\n string = baseToString(string);\n if (!string) {\n return string;\n }\n if (guard ? isIterateeCall(value, chars, guard) : chars == null) {\n return string.slice(0, trimmedRightIndex(string) + 1);\n }\n return string.slice(0, charsRightIndex(string, (chars + '')) + 1);\n }\n\n /**\n * Truncates `string` if it is longer than the given maximum string length.\n * The last characters of the truncated string are replaced with the omission\n * string which defaults to \"...\".\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to truncate.\n * @param {Object|number} [options] The options object or maximum string length.\n * @param {number} [options.length=30] The maximum string length.\n * @param {string} [options.omission='...'] The string to indicate text is omitted.\n * @param {RegExp|string} [options.separator] The separator pattern to truncate to.\n * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.\n * @returns {string} Returns the truncated string.\n * @example\n *\n * _.trunc('hi-diddly-ho there, neighborino');\n * // => 'hi-diddly-ho there, neighbo...'\n *\n * _.trunc('hi-diddly-ho there, neighborino', 24);\n * // => 'hi-diddly-ho there, n...'\n *\n * _.trunc('hi-diddly-ho there, neighborino', {\n * 'length': 24,\n * 'separator': ' '\n * });\n * // => 'hi-diddly-ho there,...'\n *\n * _.trunc('hi-diddly-ho there, neighborino', {\n * 'length': 24,\n * 'separator': /,? +/\n * });\n * //=> 'hi-diddly-ho there...'\n *\n * _.trunc('hi-diddly-ho there, neighborino', {\n * 'omission': ' [...]'\n * });\n * // => 'hi-diddly-ho there, neig [...]'\n */\n function trunc(string, options, guard) {\n if (guard && isIterateeCall(string, options, guard)) {\n options = null;\n }\n var length = DEFAULT_TRUNC_LENGTH,\n omission = DEFAULT_TRUNC_OMISSION;\n\n if (options != null) {\n if (isObject(options)) {\n var separator = 'separator' in options ? options.separator : separator;\n length = 'length' in options ? +options.length || 0 : length;\n omission = 'omission' in options ? baseToString(options.omission) : omission;\n } else {\n length = +options || 0;\n }\n }\n string = baseToString(string);\n if (length >= string.length) {\n return string;\n }\n var end = length - omission.length;\n if (end < 1) {\n return omission;\n }\n var result = string.slice(0, end);\n if (separator == null) {\n return result + omission;\n }\n if (isRegExp(separator)) {\n if (string.slice(end).search(separator)) {\n var match,\n newEnd,\n substring = string.slice(0, end);\n\n if (!separator.global) {\n separator = RegExp(separator.source, (reFlags.exec(separator) || '') + 'g');\n }\n separator.lastIndex = 0;\n while ((match = separator.exec(substring))) {\n newEnd = match.index;\n }\n result = result.slice(0, newEnd == null ? end : newEnd);\n }\n } else if (string.indexOf(separator, end) != end) {\n var index = result.lastIndexOf(separator);\n if (index > -1) {\n result = result.slice(0, index);\n }\n }\n return result + omission;\n }\n\n /**\n * The inverse of `_.escape`; this method converts the HTML entities\n * `&`, `<`, `>`, `"`, `'`, and ``` in `string` to their\n * corresponding characters.\n *\n * **Note:** No other HTML entities are unescaped. To unescape additional HTML\n * entities use a third-party library like [_he_](https://mths.be/he).\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to unescape.\n * @returns {string} Returns the unescaped string.\n * @example\n *\n * _.unescape('fred, barney, & pebbles');\n * // => 'fred, barney, & pebbles'\n */\n function unescape(string) {\n string = baseToString(string);\n return (string && reHasEscapedHtml.test(string))\n ? string.replace(reEscapedHtml, unescapeHtmlChar)\n : string;\n }\n\n /**\n * Splits `string` into an array of its words.\n *\n * @static\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {RegExp|string} [pattern] The pattern to match words.\n * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.\n * @returns {Array} Returns the words of `string`.\n * @example\n *\n * _.words('fred, barney, & pebbles');\n * // => ['fred', 'barney', 'pebbles']\n *\n * _.words('fred, barney, & pebbles', /[^, ]+/g);\n * // => ['fred', 'barney', '&', 'pebbles']\n */\n function words(string, pattern, guard) {\n if (guard && isIterateeCall(string, pattern, guard)) {\n pattern = null;\n }\n string = baseToString(string);\n return string.match(pattern || reWords) || [];\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Attempts to invoke `func`, returning either the result or the caught error\n * object. Any additional arguments are provided to `func` when it is invoked.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @param {*} func The function to attempt.\n * @returns {*} Returns the `func` result or error object.\n * @example\n *\n * // avoid throwing errors for invalid selectors\n * var elements = _.attempt(function(selector) {\n * return document.querySelectorAll(selector);\n * }, '>_>');\n *\n * if (_.isError(elements)) {\n * elements = [];\n * }\n */\n function attempt() {\n var length = arguments.length,\n func = arguments[0];\n\n try {\n var args = Array(length ? length - 1 : 0);\n while (--length > 0) {\n args[length - 1] = arguments[length];\n }\n return func.apply(undefined, args);\n } catch(e) {\n return isError(e) ? e : new Error(e);\n }\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of `thisArg`\n * and arguments of the created function. If `func` is a property name the\n * created callback returns the property value for a given element. If `func`\n * is an object the created callback returns `true` for elements that contain\n * the equivalent object properties, otherwise it returns `false`.\n *\n * @static\n * @memberOf _\n * @alias iteratee\n * @category Utility\n * @param {*} [func=_.identity] The value to convert to a callback.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.\n * @returns {Function} Returns the callback.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 }\n * ];\n *\n * // wrap to create custom callback shorthands\n * _.callback = _.wrap(_.callback, function(callback, func, thisArg) {\n * var match = /^(.+?)__([gl]t)(.+)$/.exec(func);\n * if (!match) {\n * return callback(func, thisArg);\n * }\n * return function(object) {\n * return match[2] == 'gt'\n * ? object[match[1]] > match[3]\n * : object[match[1]] < match[3];\n * };\n * });\n *\n * _.filter(users, 'age__gt36');\n * // => [{ 'user': 'fred', 'age': 40 }]\n */\n function callback(func, thisArg, guard) {\n if (guard && isIterateeCall(func, thisArg, guard)) {\n thisArg = null;\n }\n return isObjectLike(func)\n ? matches(func)\n : baseCallback(func, thisArg);\n }\n\n /**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var object = { 'user': 'fred' };\n * var getter = _.constant(object);\n *\n * getter() === object;\n * // => true\n */\n function constant(value) {\n return function() {\n return value;\n };\n }\n\n /**\n * This method returns the first argument provided to it.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'user': 'fred' };\n *\n * _.identity(object) === object;\n * // => true\n */\n function identity(value) {\n return value;\n }\n\n /**\n * Creates a function which performs a deep comparison between a given object\n * and `source`, returning `true` if the given object has equivalent property\n * values, else `false`.\n *\n * **Note:** This method supports comparing arrays, booleans, `Date` objects,\n * numbers, `Object` objects, regexes, and strings. Objects are compared by\n * their own, not inherited, enumerable properties. For comparing a single\n * own or inherited property value see `_.matchesProperty`.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, _.matches({ 'age': 40, 'active': false }));\n * // => [{ 'user': 'fred', 'age': 40, 'active': false }]\n */\n function matches(source) {\n return baseMatches(baseClone(source, true));\n }\n\n /**\n * Creates a function which compares the property value of `key` on a given\n * object to `value`.\n *\n * **Note:** This method supports comparing arrays, booleans, `Date` objects,\n * numbers, `Object` objects, regexes, and strings. Objects are compared by\n * their own, not inherited, enumerable properties.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @param {string} key The key of the property to get.\n * @param {*} value The value to compare.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' },\n * { 'user': 'pebbles' }\n * ];\n *\n * _.find(users, _.matchesProperty('user', 'fred'));\n * // => { 'user': 'fred', 'age': 40 }\n */\n function matchesProperty(key, value) {\n return baseMatchesProperty(key + '', baseClone(value, true));\n }\n\n /**\n * Adds all own enumerable function properties of a source object to the\n * destination object. If `object` is a function then methods are added to\n * its prototype as well.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @param {Function|Object} [object=this] object The destination object.\n * @param {Object} source The object of functions to add.\n * @param {Object} [options] The options object.\n * @param {boolean} [options.chain=true] Specify whether the functions added\n * are chainable.\n * @returns {Function|Object} Returns `object`.\n * @example\n *\n * function vowels(string) {\n * return _.filter(string, function(v) {\n * return /[aeiou]/i.test(v);\n * });\n * }\n *\n * // use `_.runInContext` to avoid potential conflicts (esp. in Node.js)\n * var _ = require('lodash').runInContext();\n *\n * _.mixin({ 'vowels': vowels });\n * _.vowels('fred');\n * // => ['e']\n *\n * _('fred').vowels().value();\n * // => ['e']\n *\n * _.mixin({ 'vowels': vowels }, { 'chain': false });\n * _('fred').vowels();\n * // => ['e']\n */\n function mixin(object, source, options) {\n if (options == null) {\n var isObj = isObject(source),\n props = isObj && keys(source),\n methodNames = props && props.length && baseFunctions(source, props);\n\n if (!(methodNames ? methodNames.length : isObj)) {\n methodNames = false;\n options = source;\n source = object;\n object = this;\n }\n }\n if (!methodNames) {\n methodNames = baseFunctions(source, keys(source));\n }\n var chain = true,\n index = -1,\n isFunc = isFunction(object),\n length = methodNames.length;\n\n if (options === false) {\n chain = false;\n } else if (isObject(options) && 'chain' in options) {\n chain = options.chain;\n }\n while (++index < length) {\n var methodName = methodNames[index],\n func = source[methodName];\n\n object[methodName] = func;\n if (isFunc) {\n object.prototype[methodName] = (function(func) {\n return function() {\n var chainAll = this.__chain__;\n if (chain || chainAll) {\n var result = object(this.__wrapped__);\n (result.__actions__ = arrayCopy(this.__actions__)).push({ 'func': func, 'args': arguments, 'thisArg': object });\n result.__chain__ = chainAll;\n return result;\n }\n var args = [this.value()];\n push.apply(args, arguments);\n return func.apply(object, args);\n };\n }(func));\n }\n }\n return object;\n }\n\n /**\n * Reverts the `_` variable to its previous value and returns a reference to\n * the `lodash` function.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @returns {Function} Returns the `lodash` function.\n * @example\n *\n * var lodash = _.noConflict();\n */\n function noConflict() {\n context._ = oldDash;\n return this;\n }\n\n /**\n * A no-operation function which returns `undefined` regardless of the\n * arguments it receives.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @example\n *\n * var object = { 'user': 'fred' };\n *\n * _.noop(object) === undefined;\n * // => true\n */\n function noop() {\n // No operation performed.\n }\n\n /**\n * Creates a function which returns the property value of `key` on a given object.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var users = [\n * { 'user': 'fred' },\n * { 'user': 'barney' }\n * ];\n *\n * var getName = _.property('user');\n *\n * _.map(users, getName);\n * // => ['fred', barney']\n *\n * _.pluck(_.sortBy(users, getName), 'user');\n * // => ['barney', 'fred']\n */\n function property(key) {\n return baseProperty(key + '');\n }\n\n /**\n * The inverse of `_.property`; this method creates a function which returns\n * the property value of a given key on `object`.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @param {Object} object The object to inspect.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var object = { 'a': 3, 'b': 1, 'c': 2 };\n *\n * _.map(['a', 'c'], _.propertyOf(object));\n * // => [3, 2]\n *\n * _.sortBy(['a', 'b', 'c'], _.propertyOf(object));\n * // => ['b', 'c', 'a']\n */\n function propertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * Creates an array of numbers (positive and/or negative) progressing from\n * `start` up to, but not including, `end`. If `end` is not specified it\n * defaults to `start` with `start` becoming `0`. If `start` is less than\n * `end` a zero-length range is created unless a negative `step` is specified.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @param {number} [step=1] The value to increment or decrement by.\n * @returns {Array} Returns the new array of numbers.\n * @example\n *\n * _.range(4);\n * // => [0, 1, 2, 3]\n *\n * _.range(1, 5);\n * // => [1, 2, 3, 4]\n *\n * _.range(0, 20, 5);\n * // => [0, 5, 10, 15]\n *\n * _.range(0, -4, -1);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 4, 0);\n * // => [1, 1, 1]\n *\n * _.range(0);\n * // => []\n */\n function range(start, end, step) {\n if (step && isIterateeCall(start, end, step)) {\n end = step = null;\n }\n start = +start || 0;\n step = step == null ? 1 : (+step || 0);\n\n if (end == null) {\n end = start;\n start = 0;\n } else {\n end = +end || 0;\n }\n // Use `Array(length)` so engines like Chakra and V8 avoid slower modes.\n // See https://youtu.be/XAqIpGU8ZZk#t=17m25s for more details.\n var index = -1,\n length = nativeMax(ceil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (++index < length) {\n result[index] = start;\n start += step;\n }\n return result;\n }\n\n /**\n * Invokes the iteratee function `n` times, returning an array of the results\n * of each invocation. The `iteratee` is bound to `thisArg` and invoked with\n * one argument; (index).\n *\n * @static\n * @memberOf _\n * @category Utility\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * var diceRolls = _.times(3, _.partial(_.random, 1, 6, false));\n * // => [3, 6, 4]\n *\n * _.times(3, function(n) {\n * mage.castSpell(n);\n * });\n * // => invokes `mage.castSpell(n)` three times with `n` of `0`, `1`, and `2` respectively\n *\n * _.times(3, function(n) {\n * this.cast(n);\n * }, mage);\n * // => also invokes `mage.castSpell(n)` three times\n */\n function times(n, iteratee, thisArg) {\n n = +n;\n\n // Exit early to avoid a JSC JIT bug in Safari 8\n // where `Array(0)` is treated as `Array(1)`.\n if (n < 1 || !nativeIsFinite(n)) {\n return [];\n }\n var index = -1,\n result = Array(nativeMin(n, MAX_ARRAY_LENGTH));\n\n iteratee = bindCallback(iteratee, thisArg, 1);\n while (++index < n) {\n if (index < MAX_ARRAY_LENGTH) {\n result[index] = iteratee(index);\n } else {\n iteratee(index);\n }\n }\n return result;\n }\n\n /**\n * Generates a unique ID. If `prefix` is provided the ID is appended to it.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @param {string} [prefix] The value to prefix the ID with.\n * @returns {string} Returns the unique ID.\n * @example\n *\n * _.uniqueId('contact_');\n * // => 'contact_104'\n *\n * _.uniqueId();\n * // => '105'\n */\n function uniqueId(prefix) {\n var id = ++idCounter;\n return baseToString(prefix) + id;\n }\n\n /*------------------------------------------------------------------------*/\n\n // Ensure wrappers are instances of `baseLodash`.\n lodash.prototype = baseLodash.prototype;\n\n LodashWrapper.prototype = baseCreate(baseLodash.prototype);\n LodashWrapper.prototype.constructor = LodashWrapper;\n\n LazyWrapper.prototype = baseCreate(baseLodash.prototype);\n LazyWrapper.prototype.constructor = LazyWrapper;\n\n // Add functions to the `Map` cache.\n MapCache.prototype['delete'] = mapDelete;\n MapCache.prototype.get = mapGet;\n MapCache.prototype.has = mapHas;\n MapCache.prototype.set = mapSet;\n\n // Add functions to the `Set` cache.\n SetCache.prototype.push = cachePush;\n\n // Assign cache to `_.memoize`.\n memoize.Cache = MapCache;\n\n // Add functions that return wrapped values when chaining.\n lodash.after = after;\n lodash.ary = ary;\n lodash.assign = assign;\n lodash.at = at;\n lodash.before = before;\n lodash.bind = bind;\n lodash.bindAll = bindAll;\n lodash.bindKey = bindKey;\n lodash.callback = callback;\n lodash.chain = chain;\n lodash.chunk = chunk;\n lodash.compact = compact;\n lodash.constant = constant;\n lodash.countBy = countBy;\n lodash.create = create;\n lodash.curry = curry;\n lodash.curryRight = curryRight;\n lodash.debounce = debounce;\n lodash.defaults = defaults;\n lodash.defer = defer;\n lodash.delay = delay;\n lodash.difference = difference;\n lodash.drop = drop;\n lodash.dropRight = dropRight;\n lodash.dropRightWhile = dropRightWhile;\n lodash.dropWhile = dropWhile;\n lodash.fill = fill;\n lodash.filter = filter;\n lodash.flatten = flatten;\n lodash.flattenDeep = flattenDeep;\n lodash.flow = flow;\n lodash.flowRight = flowRight;\n lodash.forEach = forEach;\n lodash.forEachRight = forEachRight;\n lodash.forIn = forIn;\n lodash.forInRight = forInRight;\n lodash.forOwn = forOwn;\n lodash.forOwnRight = forOwnRight;\n lodash.functions = functions;\n lodash.groupBy = groupBy;\n lodash.indexBy = indexBy;\n lodash.initial = initial;\n lodash.intersection = intersection;\n lodash.invert = invert;\n lodash.invoke = invoke;\n lodash.keys = keys;\n lodash.keysIn = keysIn;\n lodash.map = map;\n lodash.mapValues = mapValues;\n lodash.matches = matches;\n lodash.matchesProperty = matchesProperty;\n lodash.memoize = memoize;\n lodash.merge = merge;\n lodash.mixin = mixin;\n lodash.negate = negate;\n lodash.omit = omit;\n lodash.once = once;\n lodash.pairs = pairs;\n lodash.partial = partial;\n lodash.partialRight = partialRight;\n lodash.partition = partition;\n lodash.pick = pick;\n lodash.pluck = pluck;\n lodash.property = property;\n lodash.propertyOf = propertyOf;\n lodash.pull = pull;\n lodash.pullAt = pullAt;\n lodash.range = range;\n lodash.rearg = rearg;\n lodash.reject = reject;\n lodash.remove = remove;\n lodash.rest = rest;\n lodash.shuffle = shuffle;\n lodash.slice = slice;\n lodash.sortBy = sortBy;\n lodash.sortByAll = sortByAll;\n lodash.spread = spread;\n lodash.take = take;\n lodash.takeRight = takeRight;\n lodash.takeRightWhile = takeRightWhile;\n lodash.takeWhile = takeWhile;\n lodash.tap = tap;\n lodash.throttle = throttle;\n lodash.thru = thru;\n lodash.times = times;\n lodash.toArray = toArray;\n lodash.toPlainObject = toPlainObject;\n lodash.transform = transform;\n lodash.union = union;\n lodash.uniq = uniq;\n lodash.unzip = unzip;\n lodash.values = values;\n lodash.valuesIn = valuesIn;\n lodash.where = where;\n lodash.without = without;\n lodash.wrap = wrap;\n lodash.xor = xor;\n lodash.zip = zip;\n lodash.zipObject = zipObject;\n\n // Add aliases.\n lodash.backflow = flowRight;\n lodash.collect = map;\n lodash.compose = flowRight;\n lodash.each = forEach;\n lodash.eachRight = forEachRight;\n lodash.extend = assign;\n lodash.iteratee = callback;\n lodash.methods = functions;\n lodash.object = zipObject;\n lodash.select = filter;\n lodash.tail = rest;\n lodash.unique = uniq;\n\n // Add functions to `lodash.prototype`.\n mixin(lodash, lodash);\n\n /*------------------------------------------------------------------------*/\n\n // Add functions that return unwrapped values when chaining.\n lodash.attempt = attempt;\n lodash.camelCase = camelCase;\n lodash.capitalize = capitalize;\n lodash.clone = clone;\n lodash.cloneDeep = cloneDeep;\n lodash.deburr = deburr;\n lodash.endsWith = endsWith;\n lodash.escape = escape;\n lodash.escapeRegExp = escapeRegExp;\n lodash.every = every;\n lodash.find = find;\n lodash.findIndex = findIndex;\n lodash.findKey = findKey;\n lodash.findLast = findLast;\n lodash.findLastIndex = findLastIndex;\n lodash.findLastKey = findLastKey;\n lodash.findWhere = findWhere;\n lodash.first = first;\n lodash.has = has;\n lodash.identity = identity;\n lodash.includes = includes;\n lodash.indexOf = indexOf;\n lodash.inRange = inRange;\n lodash.isArguments = isArguments;\n lodash.isArray = isArray;\n lodash.isBoolean = isBoolean;\n lodash.isDate = isDate;\n lodash.isElement = isElement;\n lodash.isEmpty = isEmpty;\n lodash.isEqual = isEqual;\n lodash.isError = isError;\n lodash.isFinite = isFinite;\n lodash.isFunction = isFunction;\n lodash.isMatch = isMatch;\n lodash.isNaN = isNaN;\n lodash.isNative = isNative;\n lodash.isNull = isNull;\n lodash.isNumber = isNumber;\n lodash.isObject = isObject;\n lodash.isPlainObject = isPlainObject;\n lodash.isRegExp = isRegExp;\n lodash.isString = isString;\n lodash.isTypedArray = isTypedArray;\n lodash.isUndefined = isUndefined;\n lodash.kebabCase = kebabCase;\n lodash.last = last;\n lodash.lastIndexOf = lastIndexOf;\n lodash.max = max;\n lodash.min = min;\n lodash.noConflict = noConflict;\n lodash.noop = noop;\n lodash.now = now;\n lodash.pad = pad;\n lodash.padLeft = padLeft;\n lodash.padRight = padRight;\n lodash.parseInt = parseInt;\n lodash.random = random;\n lodash.reduce = reduce;\n lodash.reduceRight = reduceRight;\n lodash.repeat = repeat;\n lodash.result = result;\n lodash.runInContext = runInContext;\n lodash.size = size;\n lodash.snakeCase = snakeCase;\n lodash.some = some;\n lodash.sortedIndex = sortedIndex;\n lodash.sortedLastIndex = sortedLastIndex;\n lodash.startCase = startCase;\n lodash.startsWith = startsWith;\n lodash.template = template;\n lodash.trim = trim;\n lodash.trimLeft = trimLeft;\n lodash.trimRight = trimRight;\n lodash.trunc = trunc;\n lodash.unescape = unescape;\n lodash.uniqueId = uniqueId;\n lodash.words = words;\n\n // Add aliases.\n lodash.all = every;\n lodash.any = some;\n lodash.contains = includes;\n lodash.detect = find;\n lodash.foldl = reduce;\n lodash.foldr = reduceRight;\n lodash.head = first;\n lodash.include = includes;\n lodash.inject = reduce;\n\n mixin(lodash, (function() {\n var source = {};\n baseForOwn(lodash, function(func, methodName) {\n if (!lodash.prototype[methodName]) {\n source[methodName] = func;\n }\n });\n return source;\n }()), false);\n\n /*------------------------------------------------------------------------*/\n\n // Add functions capable of returning wrapped and unwrapped values when chaining.\n lodash.sample = sample;\n\n lodash.prototype.sample = function(n) {\n if (!this.__chain__ && n == null) {\n return sample(this.value());\n }\n return this.thru(function(value) {\n return sample(value, n);\n });\n };\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The semantic version number.\n *\n * @static\n * @memberOf _\n * @type string\n */\n lodash.VERSION = VERSION;\n\n // Assign default placeholders.\n arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {\n lodash[methodName].placeholder = lodash;\n });\n\n // Add `LazyWrapper` methods that accept an `iteratee` value.\n arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {\n var isFilter = index == LAZY_FILTER_FLAG || index == LAZY_WHILE_FLAG;\n\n LazyWrapper.prototype[methodName] = function(iteratee, thisArg) {\n var result = this.clone(),\n iteratees = result.__iteratees__ || (result.__iteratees__ = []);\n\n result.__filtered__ = result.__filtered__ || isFilter;\n iteratees.push({ 'iteratee': getCallback(iteratee, thisArg, 3), 'type': index });\n return result;\n };\n });\n\n // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.\n arrayEach(['drop', 'take'], function(methodName, index) {\n var countName = '__' + methodName + 'Count__',\n whileName = methodName + 'While';\n\n LazyWrapper.prototype[methodName] = function(n) {\n n = n == null ? 1 : nativeMax(floor(n) || 0, 0);\n\n var result = this.clone();\n if (result.__filtered__) {\n var value = result[countName];\n result[countName] = index ? nativeMin(value, n) : (value + n);\n } else {\n var views = result.__views__ || (result.__views__ = []);\n views.push({ 'size': n, 'type': methodName + (result.__dir__ < 0 ? 'Right' : '') });\n }\n return result;\n };\n\n LazyWrapper.prototype[methodName + 'Right'] = function(n) {\n return this.reverse()[methodName](n).reverse();\n };\n\n LazyWrapper.prototype[methodName + 'RightWhile'] = function(predicate, thisArg) {\n return this.reverse()[whileName](predicate, thisArg).reverse();\n };\n });\n\n // Add `LazyWrapper` methods for `_.first` and `_.last`.\n arrayEach(['first', 'last'], function(methodName, index) {\n var takeName = 'take' + (index ? 'Right' : '');\n\n LazyWrapper.prototype[methodName] = function() {\n return this[takeName](1).value()[0];\n };\n });\n\n // Add `LazyWrapper` methods for `_.initial` and `_.rest`.\n arrayEach(['initial', 'rest'], function(methodName, index) {\n var dropName = 'drop' + (index ? '' : 'Right');\n\n LazyWrapper.prototype[methodName] = function() {\n return this[dropName](1);\n };\n });\n\n // Add `LazyWrapper` methods for `_.pluck` and `_.where`.\n arrayEach(['pluck', 'where'], function(methodName, index) {\n var operationName = index ? 'filter' : 'map',\n createCallback = index ? baseMatches : baseProperty;\n\n LazyWrapper.prototype[methodName] = function(value) {\n return this[operationName](createCallback(value));\n };\n });\n\n LazyWrapper.prototype.compact = function() {\n return this.filter(identity);\n };\n\n LazyWrapper.prototype.dropWhile = function(predicate, thisArg) {\n var done,\n lastIndex,\n isRight = this.__dir__ < 0;\n\n predicate = getCallback(predicate, thisArg, 3);\n return this.filter(function(value, index, array) {\n done = done && (isRight ? index < lastIndex : index > lastIndex);\n lastIndex = index;\n return done || (done = !predicate(value, index, array));\n });\n };\n\n LazyWrapper.prototype.reject = function(predicate, thisArg) {\n predicate = getCallback(predicate, thisArg, 3);\n return this.filter(function(value, index, array) {\n return !predicate(value, index, array);\n });\n };\n\n LazyWrapper.prototype.slice = function(start, end) {\n start = start == null ? 0 : (+start || 0);\n var result = start < 0 ? this.takeRight(-start) : this.drop(start);\n\n if (typeof end != 'undefined') {\n end = (+end || 0);\n result = end < 0 ? result.dropRight(-end) : result.take(end - start);\n }\n return result;\n };\n\n LazyWrapper.prototype.toArray = function() {\n return this.drop(0);\n };\n\n // Add `LazyWrapper` methods to `lodash.prototype`.\n baseForOwn(LazyWrapper.prototype, function(func, methodName) {\n var lodashFunc = lodash[methodName],\n retUnwrapped = /^(?:first|last)$/.test(methodName);\n\n lodash.prototype[methodName] = function() {\n var value = this.__wrapped__,\n args = arguments,\n chainAll = this.__chain__,\n isHybrid = !!this.__actions__.length,\n isLazy = value instanceof LazyWrapper,\n onlyLazy = isLazy && !isHybrid;\n\n if (retUnwrapped && !chainAll) {\n return onlyLazy\n ? func.call(value)\n : lodashFunc.call(lodash, this.value());\n }\n var interceptor = function(value) {\n var otherArgs = [value];\n push.apply(otherArgs, args);\n return lodashFunc.apply(lodash, otherArgs);\n };\n if (isLazy || isArray(value)) {\n var wrapper = onlyLazy ? value : new LazyWrapper(this),\n result = func.apply(wrapper, args);\n\n if (!retUnwrapped && (isHybrid || result.__actions__)) {\n var actions = result.__actions__ || (result.__actions__ = []);\n actions.push({ 'func': thru, 'args': [interceptor], 'thisArg': lodash });\n }\n return new LodashWrapper(result, chainAll);\n }\n return this.thru(interceptor);\n };\n });\n\n // Add `Array.prototype` functions to `lodash.prototype`.\n arrayEach(['concat', 'join', 'pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {\n var func = arrayProto[methodName],\n chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',\n retUnwrapped = /^(?:join|pop|shift)$/.test(methodName);\n\n lodash.prototype[methodName] = function() {\n var args = arguments;\n if (retUnwrapped && !this.__chain__) {\n return func.apply(this.value(), args);\n }\n return this[chainName](function(value) {\n return func.apply(value, args);\n });\n };\n });\n\n // Add functions to the lazy wrapper.\n LazyWrapper.prototype.clone = lazyClone;\n LazyWrapper.prototype.reverse = lazyReverse;\n LazyWrapper.prototype.value = lazyValue;\n\n // Add chaining functions to the `lodash` wrapper.\n lodash.prototype.chain = wrapperChain;\n lodash.prototype.commit = wrapperCommit;\n lodash.prototype.plant = wrapperPlant;\n lodash.prototype.reverse = wrapperReverse;\n lodash.prototype.toString = wrapperToString;\n lodash.prototype.run = lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;\n\n // Add function aliases to the `lodash` wrapper.\n lodash.prototype.collect = lodash.prototype.map;\n lodash.prototype.head = lodash.prototype.first;\n lodash.prototype.select = lodash.prototype.filter;\n lodash.prototype.tail = lodash.prototype.rest;\n\n return lodash;\n }\n\n /*--------------------------------------------------------------------------*/\n\n // Export lodash.\n var _ = runInContext();\n\n // Some AMD build optimizers like r.js check for condition patterns like the following:\n if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {\n // Expose lodash to the global object when an AMD loader is present to avoid\n // errors in cases where lodash is loaded by a script tag and not intended\n // as an AMD module. See http://requirejs.org/docs/errors.html#mismatch for\n // more details.\n root._ = _;\n\n // Define as an anonymous module so, through path mapping, it can be\n // referenced as the \"underscore\" module.\n define(function() {\n return _;\n });\n }\n // Check for `exports` after `define` in case a build optimizer adds an `exports` object.\n else if (freeExports && freeModule) {\n // Export for Node.js or RingoJS.\n if (moduleExports) {\n (freeModule.exports = _)._ = _;\n }\n // Export for Narwhal or Rhino -require.\n else {\n freeExports._ = _;\n }\n }\n else {\n // Export for a browser or Rhino.\n root._ = _;\n }\n}.call(this));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/lodash/index.js\n ** module id = 14\n ** module chunks = 0\n **/","var diff = require(\"./diff.js\")\r\nvar patch = require(\"./patch.js\")\r\nvar h = require(\"./h.js\")\r\nvar create = require(\"./create-element.js\")\r\n\r\nmodule.exports = {\r\n diff: diff,\r\n patch: patch,\r\n h: h,\r\n create: create\r\n}\r\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/index.js\n ** module id = 15\n ** module chunks = 0\n **/","// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.\n\n;(function (undefined) {\n\n var objectTypes = {\n 'boolean': false,\n 'function': true,\n 'object': true,\n 'number': false,\n 'string': false,\n 'undefined': false\n };\n\n var root = (objectTypes[typeof window] && window) || this,\n freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports,\n freeModule = objectTypes[typeof module] && module && !module.nodeType && module,\n moduleExports = freeModule && freeModule.exports === freeExports && freeExports,\n freeGlobal = objectTypes[typeof global] && global;\n\n if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal)) {\n root = freeGlobal;\n }\n\n var Rx = {\n internals: {},\n config: {\n Promise: root.Promise,\n },\n helpers: { }\n };\n\n // Defaults\n var noop = Rx.helpers.noop = function () { },\n notDefined = Rx.helpers.notDefined = function (x) { return typeof x === 'undefined'; },\n isScheduler = Rx.helpers.isScheduler = function (x) { return x instanceof Rx.Scheduler; },\n identity = Rx.helpers.identity = function (x) { return x; },\n pluck = Rx.helpers.pluck = function (property) { return function (x) { return x[property]; }; },\n just = Rx.helpers.just = function (value) { return function () { return value; }; },\n defaultNow = Rx.helpers.defaultNow = Date.now,\n defaultComparer = Rx.helpers.defaultComparer = function (x, y) { return isEqual(x, y); },\n defaultSubComparer = Rx.helpers.defaultSubComparer = function (x, y) { return x > y ? 1 : (x < y ? -1 : 0); },\n defaultKeySerializer = Rx.helpers.defaultKeySerializer = function (x) { return x.toString(); },\n defaultError = Rx.helpers.defaultError = function (err) { throw err; },\n isPromise = Rx.helpers.isPromise = function (p) { return !!p && typeof p.then === 'function'; },\n asArray = Rx.helpers.asArray = function () { return Array.prototype.slice.call(arguments); },\n not = Rx.helpers.not = function (a) { return !a; },\n isFunction = Rx.helpers.isFunction = (function () {\n\n var isFn = function (value) {\n return typeof value == 'function' || false;\n }\n\n // fallback for older versions of Chrome and Safari\n if (isFn(/x/)) {\n isFn = function(value) {\n return typeof value == 'function' && toString.call(value) == '[object Function]';\n };\n }\n\n return isFn;\n }());\n\n // Errors\n var sequenceContainsNoElements = 'Sequence contains no elements.';\n var argumentOutOfRange = 'Argument out of range';\n var objectDisposed = 'Object has been disposed';\n function checkDisposed() { if (this.isDisposed) { throw new Error(objectDisposed); } }\n\n Rx.config.longStackSupport = false;\n var hasStacks = false;\n try {\n throw new Error();\n } catch (e) {\n hasStacks = !!e.stack;\n }\n\n // All code after this point will be filtered from stack traces reported by RxJS\n var rStartingLine = captureLine(), rFileName;\n\n var STACK_JUMP_SEPARATOR = \"From previous event:\";\n\n function makeStackTraceLong(error, observable) {\n // If possible, transform the error stack trace by removing Node and RxJS\n // cruft, then concatenating with the stack trace of `observable`.\n if (hasStacks &&\n observable.stack &&\n typeof error === \"object\" &&\n error !== null &&\n error.stack &&\n error.stack.indexOf(STACK_JUMP_SEPARATOR) === -1\n ) {\n var stacks = [];\n for (var o = observable; !!o; o = o.source) {\n if (o.stack) {\n stacks.unshift(o.stack);\n }\n }\n stacks.unshift(error.stack);\n\n var concatedStacks = stacks.join(\"\\n\" + STACK_JUMP_SEPARATOR + \"\\n\");\n error.stack = filterStackString(concatedStacks);\n }\n }\n\n function filterStackString(stackString) {\n var lines = stackString.split(\"\\n\"),\n desiredLines = [];\n for (var i = 0, len = lines.length; i < len; i++) {\n var line = lines[i];\n\n if (!isInternalFrame(line) && !isNodeFrame(line) && line) {\n desiredLines.push(line);\n }\n }\n return desiredLines.join(\"\\n\");\n }\n\n function isInternalFrame(stackLine) {\n var fileNameAndLineNumber = getFileNameAndLineNumber(stackLine);\n if (!fileNameAndLineNumber) {\n return false;\n }\n var fileName = fileNameAndLineNumber[0], lineNumber = fileNameAndLineNumber[1];\n\n return fileName === rFileName &&\n lineNumber >= rStartingLine &&\n lineNumber <= rEndingLine;\n }\n\n function isNodeFrame(stackLine) {\n return stackLine.indexOf(\"(module.js:\") !== -1 ||\n stackLine.indexOf(\"(node.js:\") !== -1;\n }\n\n function captureLine() {\n if (!hasStacks) { return; }\n\n try {\n throw new Error();\n } catch (e) {\n var lines = e.stack.split(\"\\n\");\n var firstLine = lines[0].indexOf(\"@\") > 0 ? lines[1] : lines[2];\n var fileNameAndLineNumber = getFileNameAndLineNumber(firstLine);\n if (!fileNameAndLineNumber) { return; }\n\n rFileName = fileNameAndLineNumber[0];\n return fileNameAndLineNumber[1];\n }\n }\n\n function getFileNameAndLineNumber(stackLine) {\n // Named functions: \"at functionName (filename:lineNumber:columnNumber)\"\n var attempt1 = /at .+ \\((.+):(\\d+):(?:\\d+)\\)$/.exec(stackLine);\n if (attempt1) { return [attempt1[1], Number(attempt1[2])]; }\n\n // Anonymous functions: \"at filename:lineNumber:columnNumber\"\n var attempt2 = /at ([^ ]+):(\\d+):(?:\\d+)$/.exec(stackLine);\n if (attempt2) { return [attempt2[1], Number(attempt2[2])]; }\n\n // Firefox style: \"function@filename:lineNumber or @filename:lineNumber\"\n var attempt3 = /.*@(.+):(\\d+)$/.exec(stackLine);\n if (attempt3) { return [attempt3[1], Number(attempt3[2])]; }\n }\n\n // Shim in iterator support\n var $iterator$ = (typeof Symbol === 'function' && Symbol.iterator) ||\n '_es6shim_iterator_';\n // Bug for mozilla version\n if (root.Set && typeof new root.Set()['@@iterator'] === 'function') {\n $iterator$ = '@@iterator';\n }\n\n var doneEnumerator = Rx.doneEnumerator = { done: true, value: undefined };\n\n var isIterable = Rx.helpers.isIterable = function (o) {\n return o[$iterator$] !== undefined;\n }\n\n var isArrayLike = Rx.helpers.isArrayLike = function (o) {\n return o && o.length !== undefined;\n }\n\n Rx.helpers.iterator = $iterator$;\n\n var bindCallback = Rx.internals.bindCallback = function (func, thisArg, argCount) {\n if (typeof thisArg === 'undefined') { return func; }\n switch(argCount) {\n case 0:\n return function() {\n return func.call(thisArg)\n };\n case 1:\n return function(arg) {\n return func.call(thisArg, arg);\n }\n case 2:\n return function(value, index) {\n return func.call(thisArg, value, index);\n };\n case 3:\n return function(value, index, collection) {\n return func.call(thisArg, value, index, collection);\n };\n }\n\n return function() {\n return func.apply(thisArg, arguments);\n };\n };\n\n /** Used to determine if values are of the language type Object */\n var dontEnums = ['toString',\n 'toLocaleString',\n 'valueOf',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'constructor'],\n dontEnumsLength = dontEnums.length;\n\n /** `Object#toString` result shortcuts */\n var argsClass = '[object Arguments]',\n arrayClass = '[object Array]',\n boolClass = '[object Boolean]',\n dateClass = '[object Date]',\n errorClass = '[object Error]',\n funcClass = '[object Function]',\n numberClass = '[object Number]',\n objectClass = '[object Object]',\n regexpClass = '[object RegExp]',\n stringClass = '[object String]';\n\n var toString = Object.prototype.toString,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n supportsArgsClass = toString.call(arguments) == argsClass, // For less <IE9 && FF<4\n supportNodeClass,\n errorProto = Error.prototype,\n objectProto = Object.prototype,\n stringProto = String.prototype,\n propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n try {\n supportNodeClass = !(toString.call(document) == objectClass && !({ 'toString': 0 } + ''));\n } catch (e) {\n supportNodeClass = true;\n }\n\n var nonEnumProps = {};\n nonEnumProps[arrayClass] = nonEnumProps[dateClass] = nonEnumProps[numberClass] = { 'constructor': true, 'toLocaleString': true, 'toString': true, 'valueOf': true };\n nonEnumProps[boolClass] = nonEnumProps[stringClass] = { 'constructor': true, 'toString': true, 'valueOf': true };\n nonEnumProps[errorClass] = nonEnumProps[funcClass] = nonEnumProps[regexpClass] = { 'constructor': true, 'toString': true };\n nonEnumProps[objectClass] = { 'constructor': true };\n\n var support = {};\n (function () {\n var ctor = function() { this.x = 1; },\n props = [];\n\n ctor.prototype = { 'valueOf': 1, 'y': 1 };\n for (var key in new ctor) { props.push(key); }\n for (key in arguments) { }\n\n // Detect if `name` or `message` properties of `Error.prototype` are enumerable by default.\n support.enumErrorProps = propertyIsEnumerable.call(errorProto, 'message') || propertyIsEnumerable.call(errorProto, 'name');\n\n // Detect if `prototype` properties are enumerable by default.\n support.enumPrototypes = propertyIsEnumerable.call(ctor, 'prototype');\n\n // Detect if `arguments` object indexes are non-enumerable\n support.nonEnumArgs = key != 0;\n\n // Detect if properties shadowing those on `Object.prototype` are non-enumerable.\n support.nonEnumShadows = !/valueOf/.test(props);\n }(1));\n\n var isObject = Rx.internals.isObject = function(value) {\n var type = typeof value;\n return value && (type == 'function' || type == 'object') || false;\n };\n\n function keysIn(object) {\n var result = [];\n if (!isObject(object)) {\n return result;\n }\n if (support.nonEnumArgs && object.length && isArguments(object)) {\n object = slice.call(object);\n }\n var skipProto = support.enumPrototypes && typeof object == 'function',\n skipErrorProps = support.enumErrorProps && (object === errorProto || object instanceof Error);\n\n for (var key in object) {\n if (!(skipProto && key == 'prototype') &&\n !(skipErrorProps && (key == 'message' || key == 'name'))) {\n result.push(key);\n }\n }\n\n if (support.nonEnumShadows && object !== objectProto) {\n var ctor = object.constructor,\n index = -1,\n length = dontEnumsLength;\n\n if (object === (ctor && ctor.prototype)) {\n var className = object === stringProto ? stringClass : object === errorProto ? errorClass : toString.call(object),\n nonEnum = nonEnumProps[className];\n }\n while (++index < length) {\n key = dontEnums[index];\n if (!(nonEnum && nonEnum[key]) && hasOwnProperty.call(object, key)) {\n result.push(key);\n }\n }\n }\n return result;\n }\n\n function internalFor(object, callback, keysFunc) {\n var index = -1,\n props = keysFunc(object),\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n if (callback(object[key], key, object) === false) {\n break;\n }\n }\n return object;\n }\n\n function internalForIn(object, callback) {\n return internalFor(object, callback, keysIn);\n }\n\n function isNode(value) {\n // IE < 9 presents DOM nodes as `Object` objects except they have `toString`\n // methods that are `typeof` \"string\" and still can coerce nodes to strings\n return typeof value.toString != 'function' && typeof (value + '') == 'string';\n }\n\n var isArguments = function(value) {\n return (value && typeof value == 'object') ? toString.call(value) == argsClass : false;\n }\n\n // fallback for browsers that can't detect `arguments` objects by [[Class]]\n if (!supportsArgsClass) {\n isArguments = function(value) {\n return (value && typeof value == 'object') ? hasOwnProperty.call(value, 'callee') : false;\n };\n }\n\n var isEqual = Rx.internals.isEqual = function (x, y) {\n return deepEquals(x, y, [], []);\n };\n\n /** @private\n * Used for deep comparison\n **/\n function deepEquals(a, b, stackA, stackB) {\n // exit early for identical values\n if (a === b) {\n // treat `+0` vs. `-0` as not equal\n return a !== 0 || (1 / a == 1 / b);\n }\n\n var type = typeof a,\n otherType = typeof b;\n\n // exit early for unlike primitive values\n if (a === a && (a == null || b == null ||\n (type != 'function' && type != 'object' && otherType != 'function' && otherType != 'object'))) {\n return false;\n }\n\n // compare [[Class]] names\n var className = toString.call(a),\n otherClass = toString.call(b);\n\n if (className == argsClass) {\n className = objectClass;\n }\n if (otherClass == argsClass) {\n otherClass = objectClass;\n }\n if (className != otherClass) {\n return false;\n }\n switch (className) {\n case boolClass:\n case dateClass:\n // coerce dates and booleans to numbers, dates to milliseconds and booleans\n // to `1` or `0` treating invalid dates coerced to `NaN` as not equal\n return +a == +b;\n\n case numberClass:\n // treat `NaN` vs. `NaN` as equal\n return (a != +a) ?\n b != +b :\n // but treat `-0` vs. `+0` as not equal\n (a == 0 ? (1 / a == 1 / b) : a == +b);\n\n case regexpClass:\n case stringClass:\n // coerce regexes to strings (http://es5.github.io/#x15.10.6.4)\n // treat string primitives and their corresponding object instances as equal\n return a == String(b);\n }\n var isArr = className == arrayClass;\n if (!isArr) {\n\n // exit for functions and DOM nodes\n if (className != objectClass || (!support.nodeClass && (isNode(a) || isNode(b)))) {\n return false;\n }\n // in older versions of Opera, `arguments` objects have `Array` constructors\n var ctorA = !support.argsObject && isArguments(a) ? Object : a.constructor,\n ctorB = !support.argsObject && isArguments(b) ? Object : b.constructor;\n\n // non `Object` object instances with different constructors are not equal\n if (ctorA != ctorB &&\n !(hasOwnProperty.call(a, 'constructor') && hasOwnProperty.call(b, 'constructor')) &&\n !(isFunction(ctorA) && ctorA instanceof ctorA && isFunction(ctorB) && ctorB instanceof ctorB) &&\n ('constructor' in a && 'constructor' in b)\n ) {\n return false;\n }\n }\n // assume cyclic structures are equal\n // the algorithm for detecting cyclic structures is adapted from ES 5.1\n // section 15.12.3, abstract operation `JO` (http://es5.github.io/#x15.12.3)\n var initedStack = !stackA;\n stackA || (stackA = []);\n stackB || (stackB = []);\n\n var length = stackA.length;\n while (length--) {\n if (stackA[length] == a) {\n return stackB[length] == b;\n }\n }\n var size = 0;\n var result = true;\n\n // add `a` and `b` to the stack of traversed objects\n stackA.push(a);\n stackB.push(b);\n\n // recursively compare objects and arrays (susceptible to call stack limits)\n if (isArr) {\n // compare lengths to determine if a deep comparison is necessary\n length = a.length;\n size = b.length;\n result = size == length;\n\n if (result) {\n // deep compare the contents, ignoring non-numeric properties\n while (size--) {\n var index = length,\n value = b[size];\n\n if (!(result = deepEquals(a[size], value, stackA, stackB))) {\n break;\n }\n }\n }\n }\n else {\n // deep compare objects using `forIn`, instead of `forOwn`, to avoid `Object.keys`\n // which, in this case, is more costly\n internalForIn(b, function(value, key, b) {\n if (hasOwnProperty.call(b, key)) {\n // count the number of properties.\n size++;\n // deep compare each property value.\n return (result = hasOwnProperty.call(a, key) && deepEquals(a[key], value, stackA, stackB));\n }\n });\n\n if (result) {\n // ensure both objects have the same number of properties\n internalForIn(a, function(value, key, a) {\n if (hasOwnProperty.call(a, key)) {\n // `size` will be `-1` if `a` has more properties than `b`\n return (result = --size > -1);\n }\n });\n }\n }\n stackA.pop();\n stackB.pop();\n\n return result;\n }\n\n var slice = Array.prototype.slice;\n function argsOrArray(args, idx) {\n return args.length === 1 && Array.isArray(args[idx]) ?\n args[idx] :\n slice.call(args);\n }\n var hasProp = {}.hasOwnProperty;\n\n var inherits = this.inherits = Rx.internals.inherits = function (child, parent) {\n function __() { this.constructor = child; }\n __.prototype = parent.prototype;\n child.prototype = new __();\n };\n\n var addProperties = Rx.internals.addProperties = function (obj) {\n var sources = slice.call(arguments, 1);\n for (var i = 0, len = sources.length; i < len; i++) {\n var source = sources[i];\n for (var prop in source) {\n obj[prop] = source[prop];\n }\n }\n };\n\n // Rx Utils\n var addRef = Rx.internals.addRef = function (xs, r) {\n return new AnonymousObservable(function (observer) {\n return new CompositeDisposable(r.getDisposable(), xs.subscribe(observer));\n });\n };\n\n function arrayInitialize(count, factory) {\n var a = new Array(count);\n for (var i = 0; i < count; i++) {\n a[i] = factory();\n }\n return a;\n }\n\n // Collections\n function IndexedItem(id, value) {\n this.id = id;\n this.value = value;\n }\n\n IndexedItem.prototype.compareTo = function (other) {\n var c = this.value.compareTo(other.value);\n c === 0 && (c = this.id - other.id);\n return c;\n };\n\n // Priority Queue for Scheduling\n var PriorityQueue = Rx.internals.PriorityQueue = function (capacity) {\n this.items = new Array(capacity);\n this.length = 0;\n };\n\n var priorityProto = PriorityQueue.prototype;\n priorityProto.isHigherPriority = function (left, right) {\n return this.items[left].compareTo(this.items[right]) < 0;\n };\n\n priorityProto.percolate = function (index) {\n if (index >= this.length || index < 0) { return; }\n var parent = index - 1 >> 1;\n if (parent < 0 || parent === index) { return; }\n if (this.isHigherPriority(index, parent)) {\n var temp = this.items[index];\n this.items[index] = this.items[parent];\n this.items[parent] = temp;\n this.percolate(parent);\n }\n };\n\n priorityProto.heapify = function (index) {\n +index || (index = 0);\n if (index >= this.length || index < 0) { return; }\n var left = 2 * index + 1,\n right = 2 * index + 2,\n first = index;\n if (left < this.length && this.isHigherPriority(left, first)) {\n first = left;\n }\n if (right < this.length && this.isHigherPriority(right, first)) {\n first = right;\n }\n if (first !== index) {\n var temp = this.items[index];\n this.items[index] = this.items[first];\n this.items[first] = temp;\n this.heapify(first);\n }\n };\n\n priorityProto.peek = function () { return this.items[0].value; };\n\n priorityProto.removeAt = function (index) {\n this.items[index] = this.items[--this.length];\n delete this.items[this.length];\n this.heapify();\n };\n\n priorityProto.dequeue = function () {\n var result = this.peek();\n this.removeAt(0);\n return result;\n };\n\n priorityProto.enqueue = function (item) {\n var index = this.length++;\n this.items[index] = new IndexedItem(PriorityQueue.count++, item);\n this.percolate(index);\n };\n\n priorityProto.remove = function (item) {\n for (var i = 0; i < this.length; i++) {\n if (this.items[i].value === item) {\n this.removeAt(i);\n return true;\n }\n }\n return false;\n };\n PriorityQueue.count = 0;\n\n /**\n * Represents a group of disposable resources that are disposed together.\n * @constructor\n */\n var CompositeDisposable = Rx.CompositeDisposable = function () {\n this.disposables = argsOrArray(arguments, 0);\n this.isDisposed = false;\n this.length = this.disposables.length;\n };\n\n var CompositeDisposablePrototype = CompositeDisposable.prototype;\n\n /**\n * Adds a disposable to the CompositeDisposable or disposes the disposable if the CompositeDisposable is disposed.\n * @param {Mixed} item Disposable to add.\n */\n CompositeDisposablePrototype.add = function (item) {\n if (this.isDisposed) {\n item.dispose();\n } else {\n this.disposables.push(item);\n this.length++;\n }\n };\n\n /**\n * Removes and disposes the first occurrence of a disposable from the CompositeDisposable.\n * @param {Mixed} item Disposable to remove.\n * @returns {Boolean} true if found; false otherwise.\n */\n CompositeDisposablePrototype.remove = function (item) {\n var shouldDispose = false;\n if (!this.isDisposed) {\n var idx = this.disposables.indexOf(item);\n if (idx !== -1) {\n shouldDispose = true;\n this.disposables.splice(idx, 1);\n this.length--;\n item.dispose();\n }\n }\n return shouldDispose;\n };\n\n /**\n * Disposes all disposables in the group and removes them from the group.\n */\n CompositeDisposablePrototype.dispose = function () {\n if (!this.isDisposed) {\n this.isDisposed = true;\n var currentDisposables = this.disposables.slice(0);\n this.disposables = [];\n this.length = 0;\n\n for (var i = 0, len = currentDisposables.length; i < len; i++) {\n currentDisposables[i].dispose();\n }\n }\n };\n\n /**\n * Converts the existing CompositeDisposable to an array of disposables\n * @returns {Array} An array of disposable objects.\n */\n CompositeDisposablePrototype.toArray = function () {\n return this.disposables.slice(0);\n };\n\n /**\n * Provides a set of static methods for creating Disposables.\n *\n * @constructor\n * @param {Function} dispose Action to run during the first call to dispose. The action is guaranteed to be run at most once.\n */\n var Disposable = Rx.Disposable = function (action) {\n this.isDisposed = false;\n this.action = action || noop;\n };\n\n /** Performs the task of cleaning up resources. */\n Disposable.prototype.dispose = function () {\n if (!this.isDisposed) {\n this.action();\n this.isDisposed = true;\n }\n };\n\n /**\n * Creates a disposable object that invokes the specified action when disposed.\n * @param {Function} dispose Action to run during the first call to dispose. The action is guaranteed to be run at most once.\n * @return {Disposable} The disposable object that runs the given action upon disposal.\n */\n var disposableCreate = Disposable.create = function (action) { return new Disposable(action); };\n\n /**\n * Gets the disposable that does nothing when disposed.\n */\n var disposableEmpty = Disposable.empty = { dispose: noop };\n\n var SingleAssignmentDisposable = Rx.SingleAssignmentDisposable = (function () {\n function BooleanDisposable () {\n this.isDisposed = false;\n this.current = null;\n }\n\n var booleanDisposablePrototype = BooleanDisposable.prototype;\n\n /**\n * Gets the underlying disposable.\n * @return The underlying disposable.\n */\n booleanDisposablePrototype.getDisposable = function () {\n return this.current;\n };\n\n /**\n * Sets the underlying disposable.\n * @param {Disposable} value The new underlying disposable.\n */\n booleanDisposablePrototype.setDisposable = function (value) {\n var shouldDispose = this.isDisposed, old;\n if (!shouldDispose) {\n old = this.current;\n this.current = value;\n }\n old && old.dispose();\n shouldDispose && value && value.dispose();\n };\n\n /**\n * Disposes the underlying disposable as well as all future replacements.\n */\n booleanDisposablePrototype.dispose = function () {\n var old;\n if (!this.isDisposed) {\n this.isDisposed = true;\n old = this.current;\n this.current = null;\n }\n old && old.dispose();\n };\n\n return BooleanDisposable;\n }());\n var SerialDisposable = Rx.SerialDisposable = SingleAssignmentDisposable;\n\n /**\n * Represents a disposable resource that only disposes its underlying disposable resource when all dependent disposable objects have been disposed.\n */\n var RefCountDisposable = Rx.RefCountDisposable = (function () {\n\n function InnerDisposable(disposable) {\n this.disposable = disposable;\n this.disposable.count++;\n this.isInnerDisposed = false;\n }\n\n InnerDisposable.prototype.dispose = function () {\n if (!this.disposable.isDisposed) {\n if (!this.isInnerDisposed) {\n this.isInnerDisposed = true;\n this.disposable.count--;\n if (this.disposable.count === 0 && this.disposable.isPrimaryDisposed) {\n this.disposable.isDisposed = true;\n this.disposable.underlyingDisposable.dispose();\n }\n }\n }\n };\n\n /**\n * Initializes a new instance of the RefCountDisposable with the specified disposable.\n * @constructor\n * @param {Disposable} disposable Underlying disposable.\n */\n function RefCountDisposable(disposable) {\n this.underlyingDisposable = disposable;\n this.isDisposed = false;\n this.isPrimaryDisposed = false;\n this.count = 0;\n }\n\n /**\n * Disposes the underlying disposable only when all dependent disposables have been disposed\n */\n RefCountDisposable.prototype.dispose = function () {\n if (!this.isDisposed) {\n if (!this.isPrimaryDisposed) {\n this.isPrimaryDisposed = true;\n if (this.count === 0) {\n this.isDisposed = true;\n this.underlyingDisposable.dispose();\n }\n }\n }\n };\n\n /**\n * Returns a dependent disposable that when disposed decreases the refcount on the underlying disposable.\n * @returns {Disposable} A dependent disposable contributing to the reference count that manages the underlying disposable's lifetime.\n */\n RefCountDisposable.prototype.getDisposable = function () {\n return this.isDisposed ? disposableEmpty : new InnerDisposable(this);\n };\n\n return RefCountDisposable;\n })();\n\n function ScheduledDisposable(scheduler, disposable) {\n this.scheduler = scheduler;\n this.disposable = disposable;\n this.isDisposed = false;\n }\n\n ScheduledDisposable.prototype.dispose = function () {\n var parent = this;\n this.scheduler.schedule(function () {\n if (!parent.isDisposed) {\n parent.isDisposed = true;\n parent.disposable.dispose();\n }\n });\n };\n\n var ScheduledItem = Rx.internals.ScheduledItem = function (scheduler, state, action, dueTime, comparer) {\n this.scheduler = scheduler;\n this.state = state;\n this.action = action;\n this.dueTime = dueTime;\n this.comparer = comparer || defaultSubComparer;\n this.disposable = new SingleAssignmentDisposable();\n }\n\n ScheduledItem.prototype.invoke = function () {\n this.disposable.setDisposable(this.invokeCore());\n };\n\n ScheduledItem.prototype.compareTo = function (other) {\n return this.comparer(this.dueTime, other.dueTime);\n };\n\n ScheduledItem.prototype.isCancelled = function () {\n return this.disposable.isDisposed;\n };\n\n ScheduledItem.prototype.invokeCore = function () {\n return this.action(this.scheduler, this.state);\n };\n\n /** Provides a set of static properties to access commonly used schedulers. */\n var Scheduler = Rx.Scheduler = (function () {\n\n function Scheduler(now, schedule, scheduleRelative, scheduleAbsolute) {\n this.now = now;\n this._schedule = schedule;\n this._scheduleRelative = scheduleRelative;\n this._scheduleAbsolute = scheduleAbsolute;\n }\n\n function invokeAction(scheduler, action) {\n action();\n return disposableEmpty;\n }\n\n var schedulerProto = Scheduler.prototype;\n\n /**\n * Schedules an action to be executed.\n * @param {Function} action Action to execute.\n * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).\n */\n schedulerProto.schedule = function (action) {\n return this._schedule(action, invokeAction);\n };\n\n /**\n * Schedules an action to be executed.\n * @param state State passed to the action to be executed.\n * @param {Function} action Action to be executed.\n * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).\n */\n schedulerProto.scheduleWithState = function (state, action) {\n return this._schedule(state, action);\n };\n\n /**\n * Schedules an action to be executed after the specified relative due time.\n * @param {Function} action Action to execute.\n * @param {Number} dueTime Relative time after which to execute the action.\n * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).\n */\n schedulerProto.scheduleWithRelative = function (dueTime, action) {\n return this._scheduleRelative(action, dueTime, invokeAction);\n };\n\n /**\n * Schedules an action to be executed after dueTime.\n * @param state State passed to the action to be executed.\n * @param {Function} action Action to be executed.\n * @param {Number} dueTime Relative time after which to execute the action.\n * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).\n */\n schedulerProto.scheduleWithRelativeAndState = function (state, dueTime, action) {\n return this._scheduleRelative(state, dueTime, action);\n };\n\n /**\n * Schedules an action to be executed at the specified absolute due time.\n * @param {Function} action Action to execute.\n * @param {Number} dueTime Absolute time at which to execute the action.\n * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).\n */\n schedulerProto.scheduleWithAbsolute = function (dueTime, action) {\n return this._scheduleAbsolute(action, dueTime, invokeAction);\n };\n\n /**\n * Schedules an action to be executed at dueTime.\n * @param {Mixed} state State passed to the action to be executed.\n * @param {Function} action Action to be executed.\n * @param {Number}dueTime Absolute time at which to execute the action.\n * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).\n */\n schedulerProto.scheduleWithAbsoluteAndState = function (state, dueTime, action) {\n return this._scheduleAbsolute(state, dueTime, action);\n };\n\n /** Gets the current time according to the local machine's system clock. */\n Scheduler.now = defaultNow;\n\n /**\n * Normalizes the specified TimeSpan value to a positive value.\n * @param {Number} timeSpan The time span value to normalize.\n * @returns {Number} The specified TimeSpan value if it is zero or positive; otherwise, 0\n */\n Scheduler.normalize = function (timeSpan) {\n timeSpan < 0 && (timeSpan = 0);\n return timeSpan;\n };\n\n return Scheduler;\n }());\n\n var normalizeTime = Scheduler.normalize;\n\n (function (schedulerProto) {\n function invokeRecImmediate(scheduler, pair) {\n var state = pair.first, action = pair.second, group = new CompositeDisposable(),\n recursiveAction = function (state1) {\n action(state1, function (state2) {\n var isAdded = false, isDone = false,\n d = scheduler.scheduleWithState(state2, function (scheduler1, state3) {\n if (isAdded) {\n group.remove(d);\n } else {\n isDone = true;\n }\n recursiveAction(state3);\n return disposableEmpty;\n });\n if (!isDone) {\n group.add(d);\n isAdded = true;\n }\n });\n };\n recursiveAction(state);\n return group;\n }\n\n function invokeRecDate(scheduler, pair, method) {\n var state = pair.first, action = pair.second, group = new CompositeDisposable(),\n recursiveAction = function (state1) {\n action(state1, function (state2, dueTime1) {\n var isAdded = false, isDone = false,\n d = scheduler[method].call(scheduler, state2, dueTime1, function (scheduler1, state3) {\n if (isAdded) {\n group.remove(d);\n } else {\n isDone = true;\n }\n recursiveAction(state3);\n return disposableEmpty;\n });\n if (!isDone) {\n group.add(d);\n isAdded = true;\n }\n });\n };\n recursiveAction(state);\n return group;\n }\n\n function scheduleInnerRecursive(action, self) {\n action(function(dt) { self(action, dt); });\n }\n\n /**\n * Schedules an action to be executed recursively.\n * @param {Function} action Action to execute recursively. The parameter passed to the action is used to trigger recursive scheduling of the action.\n * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).\n */\n schedulerProto.scheduleRecursive = function (action) {\n return this.scheduleRecursiveWithState(action, function (_action, self) {\n _action(function () { self(_action); }); });\n };\n\n /**\n * Schedules an action to be executed recursively.\n * @param {Mixed} state State passed to the action to be executed.\n * @param {Function} action Action to execute recursively. The last parameter passed to the action is used to trigger recursive scheduling of the action, passing in recursive invocation state.\n * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).\n */\n schedulerProto.scheduleRecursiveWithState = function (state, action) {\n return this.scheduleWithState({ first: state, second: action }, invokeRecImmediate);\n };\n\n /**\n * Schedules an action to be executed recursively after a specified relative due time.\n * @param {Function} action Action to execute recursively. The parameter passed to the action is used to trigger recursive scheduling of the action at the specified relative time.\n * @param {Number}dueTime Relative time after which to execute the action for the first time.\n * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).\n */\n schedulerProto.scheduleRecursiveWithRelative = function (dueTime, action) {\n return this.scheduleRecursiveWithRelativeAndState(action, dueTime, scheduleInnerRecursive);\n };\n\n /**\n * Schedules an action to be executed recursively after a specified relative due time.\n * @param {Mixed} state State passed to the action to be executed.\n * @param {Function} action Action to execute recursively. The last parameter passed to the action is used to trigger recursive scheduling of the action, passing in the recursive due time and invocation state.\n * @param {Number}dueTime Relative time after which to execute the action for the first time.\n * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).\n */\n schedulerProto.scheduleRecursiveWithRelativeAndState = function (state, dueTime, action) {\n return this._scheduleRelative({ first: state, second: action }, dueTime, function (s, p) {\n return invokeRecDate(s, p, 'scheduleWithRelativeAndState');\n });\n };\n\n /**\n * Schedules an action to be executed recursively at a specified absolute due time.\n * @param {Function} action Action to execute recursively. The parameter passed to the action is used to trigger recursive scheduling of the action at the specified absolute time.\n * @param {Number}dueTime Absolute time at which to execute the action for the first time.\n * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).\n */\n schedulerProto.scheduleRecursiveWithAbsolute = function (dueTime, action) {\n return this.scheduleRecursiveWithAbsoluteAndState(action, dueTime, scheduleInnerRecursive);\n };\n\n /**\n * Schedules an action to be executed recursively at a specified absolute due time.\n * @param {Mixed} state State passed to the action to be executed.\n * @param {Function} action Action to execute recursively. The last parameter passed to the action is used to trigger recursive scheduling of the action, passing in the recursive due time and invocation state.\n * @param {Number}dueTime Absolute time at which to execute the action for the first time.\n * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).\n */\n schedulerProto.scheduleRecursiveWithAbsoluteAndState = function (state, dueTime, action) {\n return this._scheduleAbsolute({ first: state, second: action }, dueTime, function (s, p) {\n return invokeRecDate(s, p, 'scheduleWithAbsoluteAndState');\n });\n };\n }(Scheduler.prototype));\n\n (function (schedulerProto) {\n\n /**\n * Schedules a periodic piece of work by dynamically discovering the scheduler's capabilities. The periodic task will be scheduled using window.setInterval for the base implementation.\n * @param {Number} period Period for running the work periodically.\n * @param {Function} action Action to be executed.\n * @returns {Disposable} The disposable object used to cancel the scheduled recurring action (best effort).\n */\n Scheduler.prototype.schedulePeriodic = function (period, action) {\n return this.schedulePeriodicWithState(null, period, action);\n };\n\n /**\n * Schedules a periodic piece of work by dynamically discovering the scheduler's capabilities. The periodic task will be scheduled using window.setInterval for the base implementation.\n * @param {Mixed} state Initial state passed to the action upon the first iteration.\n * @param {Number} period Period for running the work periodically.\n * @param {Function} action Action to be executed, potentially updating the state.\n * @returns {Disposable} The disposable object used to cancel the scheduled recurring action (best effort).\n */\n Scheduler.prototype.schedulePeriodicWithState = function(state, period, action) {\n if (typeof root.setInterval === 'undefined') { throw new Error('Periodic scheduling not supported.'); }\n var s = state;\n\n var id = root.setInterval(function () {\n s = action(s);\n }, period);\n\n return disposableCreate(function () {\n root.clearInterval(id);\n });\n };\n\n }(Scheduler.prototype));\n\n (function (schedulerProto) {\n /**\n * Returns a scheduler that wraps the original scheduler, adding exception handling for scheduled actions.\n * @param {Function} handler Handler that's run if an exception is caught. The exception will be rethrown if the handler returns false.\n * @returns {Scheduler} Wrapper around the original scheduler, enforcing exception handling.\n */\n schedulerProto.catchError = schedulerProto['catch'] = function (handler) {\n return new CatchScheduler(this, handler);\n };\n }(Scheduler.prototype));\n\n var SchedulePeriodicRecursive = Rx.internals.SchedulePeriodicRecursive = (function () {\n function tick(command, recurse) {\n recurse(0, this._period);\n try {\n this._state = this._action(this._state);\n } catch (e) {\n this._cancel.dispose();\n throw e;\n }\n }\n\n function SchedulePeriodicRecursive(scheduler, state, period, action) {\n this._scheduler = scheduler;\n this._state = state;\n this._period = period;\n this._action = action;\n }\n\n SchedulePeriodicRecursive.prototype.start = function () {\n var d = new SingleAssignmentDisposable();\n this._cancel = d;\n d.setDisposable(this._scheduler.scheduleRecursiveWithRelativeAndState(0, this._period, tick.bind(this)));\n\n return d;\n };\n\n return SchedulePeriodicRecursive;\n }());\n\n /** Gets a scheduler that schedules work immediately on the current thread. */\n var immediateScheduler = Scheduler.immediate = (function () {\n\n function scheduleNow(state, action) { return action(this, state); }\n\n function scheduleRelative(state, dueTime, action) {\n var dt = this.now() + normalizeTime(dueTime);\n while (dt - this.now() > 0) { }\n return action(this, state);\n }\n\n function scheduleAbsolute(state, dueTime, action) {\n return this.scheduleWithRelativeAndState(state, dueTime - this.now(), action);\n }\n\n return new Scheduler(defaultNow, scheduleNow, scheduleRelative, scheduleAbsolute);\n }());\n\n /**\n * Gets a scheduler that schedules work as soon as possible on the current thread.\n */\n var currentThreadScheduler = Scheduler.currentThread = (function () {\n var queue;\n\n function runTrampoline (q) {\n var item;\n while (q.length > 0) {\n item = q.dequeue();\n if (!item.isCancelled()) {\n // Note, do not schedule blocking work!\n while (item.dueTime - Scheduler.now() > 0) {\n }\n if (!item.isCancelled()) {\n item.invoke();\n }\n }\n }\n }\n\n function scheduleNow(state, action) {\n return this.scheduleWithRelativeAndState(state, 0, action);\n }\n\n function scheduleRelative(state, dueTime, action) {\n var dt = this.now() + Scheduler.normalize(dueTime),\n si = new ScheduledItem(this, state, action, dt);\n\n if (!queue) {\n queue = new PriorityQueue(4);\n queue.enqueue(si);\n try {\n runTrampoline(queue);\n } catch (e) {\n throw e;\n } finally {\n queue = null;\n }\n } else {\n queue.enqueue(si);\n }\n return si.disposable;\n }\n\n function scheduleAbsolute(state, dueTime, action) {\n return this.scheduleWithRelativeAndState(state, dueTime - this.now(), action);\n }\n\n var currentScheduler = new Scheduler(defaultNow, scheduleNow, scheduleRelative, scheduleAbsolute);\n\n currentScheduler.scheduleRequired = function () { return !queue; };\n currentScheduler.ensureTrampoline = function (action) {\n if (!queue) { this.schedule(action); } else { action(); }\n };\n\n return currentScheduler;\n }());\n\n var scheduleMethod, clearMethod = noop;\n var localTimer = (function () {\n var localSetTimeout, localClearTimeout = noop;\n if ('WScript' in this) {\n localSetTimeout = function (fn, time) {\n WScript.Sleep(time);\n fn();\n };\n } else if (!!root.setTimeout) {\n localSetTimeout = root.setTimeout;\n localClearTimeout = root.clearTimeout;\n } else {\n throw new Error('No concurrency detected!');\n }\n\n return {\n setTimeout: localSetTimeout,\n clearTimeout: localClearTimeout\n };\n }());\n var localSetTimeout = localTimer.setTimeout,\n localClearTimeout = localTimer.clearTimeout;\n\n (function () {\n\n var reNative = RegExp('^' +\n String(toString)\n .replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')\n .replace(/toString| for [^\\]]+/g, '.*?') + '$'\n );\n\n var setImmediate = typeof (setImmediate = freeGlobal && moduleExports && freeGlobal.setImmediate) == 'function' &&\n !reNative.test(setImmediate) && setImmediate,\n clearImmediate = typeof (clearImmediate = freeGlobal && moduleExports && freeGlobal.clearImmediate) == 'function' &&\n !reNative.test(clearImmediate) && clearImmediate;\n\n function postMessageSupported () {\n // Ensure not in a worker\n if (!root.postMessage || root.importScripts) { return false; }\n var isAsync = false,\n oldHandler = root.onmessage;\n // Test for async\n root.onmessage = function () { isAsync = true; };\n root.postMessage('', '*');\n root.onmessage = oldHandler;\n\n return isAsync;\n }\n\n // Use in order, setImmediate, nextTick, postMessage, MessageChannel, script readystatechanged, setTimeout\n if (typeof setImmediate === 'function') {\n scheduleMethod = setImmediate;\n clearMethod = clearImmediate;\n } else if (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') {\n scheduleMethod = process.nextTick;\n } else if (postMessageSupported()) {\n var MSG_PREFIX = 'ms.rx.schedule' + Math.random(),\n tasks = {},\n taskId = 0;\n\n var onGlobalPostMessage = function (event) {\n // Only if we're a match to avoid any other global events\n if (typeof event.data === 'string' && event.data.substring(0, MSG_PREFIX.length) === MSG_PREFIX) {\n var handleId = event.data.substring(MSG_PREFIX.length),\n action = tasks[handleId];\n action();\n delete tasks[handleId];\n }\n }\n\n if (root.addEventListener) {\n root.addEventListener('message', onGlobalPostMessage, false);\n } else {\n root.attachEvent('onmessage', onGlobalPostMessage, false);\n }\n\n scheduleMethod = function (action) {\n var currentId = taskId++;\n tasks[currentId] = action;\n root.postMessage(MSG_PREFIX + currentId, '*');\n };\n } else if (!!root.MessageChannel) {\n var channel = new root.MessageChannel(),\n channelTasks = {},\n channelTaskId = 0;\n\n channel.port1.onmessage = function (event) {\n var id = event.data,\n action = channelTasks[id];\n action();\n delete channelTasks[id];\n };\n\n scheduleMethod = function (action) {\n var id = channelTaskId++;\n channelTasks[id] = action;\n channel.port2.postMessage(id);\n };\n } else if ('document' in root && 'onreadystatechange' in root.document.createElement('script')) {\n\n scheduleMethod = function (action) {\n var scriptElement = root.document.createElement('script');\n scriptElement.onreadystatechange = function () {\n action();\n scriptElement.onreadystatechange = null;\n scriptElement.parentNode.removeChild(scriptElement);\n scriptElement = null;\n };\n root.document.documentElement.appendChild(scriptElement);\n };\n\n } else {\n scheduleMethod = function (action) { return localSetTimeout(action, 0); };\n clearMethod = localClearTimeout;\n }\n }());\n\n /**\n * Gets a scheduler that schedules work via a timed callback based upon platform.\n */\n var timeoutScheduler = Scheduler.timeout = (function () {\n\n function scheduleNow(state, action) {\n var scheduler = this,\n disposable = new SingleAssignmentDisposable();\n var id = scheduleMethod(function () {\n if (!disposable.isDisposed) {\n disposable.setDisposable(action(scheduler, state));\n }\n });\n return new CompositeDisposable(disposable, disposableCreate(function () {\n clearMethod(id);\n }));\n }\n\n function scheduleRelative(state, dueTime, action) {\n var scheduler = this,\n dt = Scheduler.normalize(dueTime);\n if (dt === 0) {\n return scheduler.scheduleWithState(state, action);\n }\n var disposable = new SingleAssignmentDisposable();\n var id = localSetTimeout(function () {\n if (!disposable.isDisposed) {\n disposable.setDisposable(action(scheduler, state));\n }\n }, dt);\n return new CompositeDisposable(disposable, disposableCreate(function () {\n localClearTimeout(id);\n }));\n }\n\n function scheduleAbsolute(state, dueTime, action) {\n return this.scheduleWithRelativeAndState(state, dueTime - this.now(), action);\n }\n\n return new Scheduler(defaultNow, scheduleNow, scheduleRelative, scheduleAbsolute);\n })();\n\n var CatchScheduler = (function (__super__) {\n\n function scheduleNow(state, action) {\n return this._scheduler.scheduleWithState(state, this._wrap(action));\n }\n\n function scheduleRelative(state, dueTime, action) {\n return this._scheduler.scheduleWithRelativeAndState(state, dueTime, this._wrap(action));\n }\n\n function scheduleAbsolute(state, dueTime, action) {\n return this._scheduler.scheduleWithAbsoluteAndState(state, dueTime, this._wrap(action));\n }\n\n inherits(CatchScheduler, __super__);\n\n function CatchScheduler(scheduler, handler) {\n this._scheduler = scheduler;\n this._handler = handler;\n this._recursiveOriginal = null;\n this._recursiveWrapper = null;\n __super__.call(this, this._scheduler.now.bind(this._scheduler), scheduleNow, scheduleRelative, scheduleAbsolute);\n }\n\n CatchScheduler.prototype._clone = function (scheduler) {\n return new CatchScheduler(scheduler, this._handler);\n };\n\n CatchScheduler.prototype._wrap = function (action) {\n var parent = this;\n return function (self, state) {\n try {\n return action(parent._getRecursiveWrapper(self), state);\n } catch (e) {\n if (!parent._handler(e)) { throw e; }\n return disposableEmpty;\n }\n };\n };\n\n CatchScheduler.prototype._getRecursiveWrapper = function (scheduler) {\n if (this._recursiveOriginal !== scheduler) {\n this._recursiveOriginal = scheduler;\n var wrapper = this._clone(scheduler);\n wrapper._recursiveOriginal = scheduler;\n wrapper._recursiveWrapper = wrapper;\n this._recursiveWrapper = wrapper;\n }\n return this._recursiveWrapper;\n };\n\n CatchScheduler.prototype.schedulePeriodicWithState = function (state, period, action) {\n var self = this, failed = false, d = new SingleAssignmentDisposable();\n\n d.setDisposable(this._scheduler.schedulePeriodicWithState(state, period, function (state1) {\n if (failed) { return null; }\n try {\n return action(state1);\n } catch (e) {\n failed = true;\n if (!self._handler(e)) { throw e; }\n d.dispose();\n return null;\n }\n }));\n\n return d;\n };\n\n return CatchScheduler;\n }(Scheduler));\n\n /**\n * Represents a notification to an observer.\n */\n var Notification = Rx.Notification = (function () {\n function Notification(kind, hasValue) {\n this.hasValue = hasValue == null ? false : hasValue;\n this.kind = kind;\n }\n\n /**\n * Invokes the delegate corresponding to the notification or the observer's method corresponding to the notification and returns the produced result.\n *\n * @memberOf Notification\n * @param {Any} observerOrOnNext Delegate to invoke for an OnNext notification or Observer to invoke the notification on..\n * @param {Function} onError Delegate to invoke for an OnError notification.\n * @param {Function} onCompleted Delegate to invoke for an OnCompleted notification.\n * @returns {Any} Result produced by the observation.\n */\n Notification.prototype.accept = function (observerOrOnNext, onError, onCompleted) {\n return observerOrOnNext && typeof observerOrOnNext === 'object' ?\n this._acceptObservable(observerOrOnNext) :\n this._accept(observerOrOnNext, onError, onCompleted);\n };\n\n /**\n * Returns an observable sequence with a single notification.\n *\n * @memberOf Notifications\n * @param {Scheduler} [scheduler] Scheduler to send out the notification calls on.\n * @returns {Observable} The observable sequence that surfaces the behavior of the notification upon subscription.\n */\n Notification.prototype.toObservable = function (scheduler) {\n var notification = this;\n isScheduler(scheduler) || (scheduler = immediateScheduler);\n return new AnonymousObservable(function (observer) {\n return scheduler.schedule(function () {\n notification._acceptObservable(observer);\n notification.kind === 'N' && observer.onCompleted();\n });\n });\n };\n\n return Notification;\n })();\n\n /**\n * Creates an object that represents an OnNext notification to an observer.\n * @param {Any} value The value contained in the notification.\n * @returns {Notification} The OnNext notification containing the value.\n */\n var notificationCreateOnNext = Notification.createOnNext = (function () {\n\n function _accept (onNext) { return onNext(this.value); }\n function _acceptObservable(observer) { return observer.onNext(this.value); }\n function toString () { return 'OnNext(' + this.value + ')'; }\n\n return function (value) {\n var notification = new Notification('N', true);\n notification.value = value;\n notification._accept = _accept;\n notification._acceptObservable = _acceptObservable;\n notification.toString = toString;\n return notification;\n };\n }());\n\n /**\n * Creates an object that represents an OnError notification to an observer.\n * @param {Any} error The exception contained in the notification.\n * @returns {Notification} The OnError notification containing the exception.\n */\n var notificationCreateOnError = Notification.createOnError = (function () {\n\n function _accept (onNext, onError) { return onError(this.exception); }\n function _acceptObservable(observer) { return observer.onError(this.exception); }\n function toString () { return 'OnError(' + this.exception + ')'; }\n\n return function (e) {\n var notification = new Notification('E');\n notification.exception = e;\n notification._accept = _accept;\n notification._acceptObservable = _acceptObservable;\n notification.toString = toString;\n return notification;\n };\n }());\n\n /**\n * Creates an object that represents an OnCompleted notification to an observer.\n * @returns {Notification} The OnCompleted notification.\n */\n var notificationCreateOnCompleted = Notification.createOnCompleted = (function () {\n\n function _accept (onNext, onError, onCompleted) { return onCompleted(); }\n function _acceptObservable(observer) { return observer.onCompleted(); }\n function toString () { return 'OnCompleted()'; }\n\n return function () {\n var notification = new Notification('C');\n notification._accept = _accept;\n notification._acceptObservable = _acceptObservable;\n notification.toString = toString;\n return notification;\n };\n }());\n\n var Enumerator = Rx.internals.Enumerator = function (next) {\n this._next = next;\n };\n\n Enumerator.prototype.next = function () {\n return this._next();\n };\n\n Enumerator.prototype[$iterator$] = function () { return this; }\n\n var Enumerable = Rx.internals.Enumerable = function (iterator) {\n this._iterator = iterator;\n };\n\n Enumerable.prototype[$iterator$] = function () {\n return this._iterator();\n };\n\n Enumerable.prototype.concat = function () {\n var sources = this;\n return new AnonymousObservable(function (observer) {\n var e;\n try {\n e = sources[$iterator$]();\n } catch (err) {\n observer.onError(err);\n return;\n }\n\n var isDisposed,\n subscription = new SerialDisposable();\n var cancelable = immediateScheduler.scheduleRecursive(function (self) {\n var currentItem;\n if (isDisposed) { return; }\n\n try {\n currentItem = e.next();\n } catch (ex) {\n observer.onError(ex);\n return;\n }\n\n if (currentItem.done) {\n observer.onCompleted();\n return;\n }\n\n // Check if promise\n var currentValue = currentItem.value;\n isPromise(currentValue) && (currentValue = observableFromPromise(currentValue));\n\n var d = new SingleAssignmentDisposable();\n subscription.setDisposable(d);\n d.setDisposable(currentValue.subscribe(\n observer.onNext.bind(observer),\n observer.onError.bind(observer),\n function () { self(); })\n );\n });\n\n return new CompositeDisposable(subscription, cancelable, disposableCreate(function () {\n isDisposed = true;\n }));\n });\n };\n\n Enumerable.prototype.catchError = function () {\n var sources = this;\n return new AnonymousObservable(function (observer) {\n var e;\n try {\n e = sources[$iterator$]();\n } catch (err) {\n observer.onError(err);\n return;\n }\n\n var isDisposed,\n lastException,\n subscription = new SerialDisposable();\n var cancelable = immediateScheduler.scheduleRecursive(function (self) {\n if (isDisposed) { return; }\n\n var currentItem;\n try {\n currentItem = e.next();\n } catch (ex) {\n observer.onError(ex);\n return;\n }\n\n if (currentItem.done) {\n if (lastException) {\n observer.onError(lastException);\n } else {\n observer.onCompleted();\n }\n return;\n }\n\n // Check if promise\n var currentValue = currentItem.value;\n isPromise(currentValue) && (currentValue = observableFromPromise(currentValue));\n\n var d = new SingleAssignmentDisposable();\n subscription.setDisposable(d);\n d.setDisposable(currentValue.subscribe(\n observer.onNext.bind(observer),\n function (exn) {\n lastException = exn;\n self();\n },\n observer.onCompleted.bind(observer)));\n });\n return new CompositeDisposable(subscription, cancelable, disposableCreate(function () {\n isDisposed = true;\n }));\n });\n };\n\n\n Enumerable.prototype.catchErrorWhen = function (notificationHandler) {\n var sources = this;\n return new AnonymousObservable(function (observer) {\n var e;\n\n var exceptions = new Subject();\n\n var handled = notificationHandler(exceptions);\n\n var notifier = new Subject();\n\n var notificationDisposable = handled.subscribe(notifier);\n\n try {\n e = sources[$iterator$]();\n } catch (err) {\n observer.onError(err);\n return;\n }\n\n var isDisposed,\n lastException,\n subscription = new SerialDisposable();\n var cancelable = immediateScheduler.scheduleRecursive(function (self) {\n if (isDisposed) { return; }\n\n var currentItem;\n try {\n currentItem = e.next();\n } catch (ex) {\n observer.onError(ex);\n return;\n }\n\n if (currentItem.done) {\n if (lastException) {\n observer.onError(lastException);\n } else {\n observer.onCompleted();\n }\n return;\n }\n\n // Check if promise\n var currentValue = currentItem.value;\n isPromise(currentValue) && (currentValue = observableFromPromise(currentValue));\n\n var outer = new SingleAssignmentDisposable();\n var inner = new SingleAssignmentDisposable();\n subscription.setDisposable(new CompositeDisposable(inner, outer));\n outer.setDisposable(currentValue.subscribe(\n observer.onNext.bind(observer),\n function (exn) {\n inner.setDisposable(notifier.subscribe(function(){\n self();\n }, function(ex) {\n observer.onError(ex);\n }, function() {\n observer.onCompleted();\n }));\n\n exceptions.onNext(exn);\n },\n observer.onCompleted.bind(observer)));\n });\n\n return new CompositeDisposable(notificationDisposable, subscription, cancelable, disposableCreate(function () {\n isDisposed = true;\n }));\n });\n };\n\n var enumerableRepeat = Enumerable.repeat = function (value, repeatCount) {\n if (repeatCount == null) { repeatCount = -1; }\n return new Enumerable(function () {\n var left = repeatCount;\n return new Enumerator(function () {\n if (left === 0) { return doneEnumerator; }\n if (left > 0) { left--; }\n return { done: false, value: value };\n });\n });\n };\n\n var enumerableOf = Enumerable.of = function (source, selector, thisArg) {\n selector || (selector = identity);\n return new Enumerable(function () {\n var index = -1;\n return new Enumerator(\n function () {\n return ++index < source.length ?\n { done: false, value: selector.call(thisArg, source[index], index, source) } :\n doneEnumerator;\n });\n });\n };\n\n /**\n * Supports push-style iteration over an observable sequence.\n */\n var Observer = Rx.Observer = function () { };\n\n /**\n * Creates a notification callback from an observer.\n * @returns The action that forwards its input notification to the underlying observer.\n */\n Observer.prototype.toNotifier = function () {\n var observer = this;\n return function (n) { return n.accept(observer); };\n };\n\n /**\n * Hides the identity of an observer.\n * @returns An observer that hides the identity of the specified observer.\n */\n Observer.prototype.asObserver = function () {\n return new AnonymousObserver(this.onNext.bind(this), this.onError.bind(this), this.onCompleted.bind(this));\n };\n\n /**\n * Checks access to the observer for grammar violations. This includes checking for multiple OnError or OnCompleted calls, as well as reentrancy in any of the observer methods.\n * If a violation is detected, an Error is thrown from the offending observer method call.\n * @returns An observer that checks callbacks invocations against the observer grammar and, if the checks pass, forwards those to the specified observer.\n */\n Observer.prototype.checked = function () { return new CheckedObserver(this); };\n\n /**\n * Creates an observer from the specified OnNext, along with optional OnError, and OnCompleted actions.\n * @param {Function} [onNext] Observer's OnNext action implementation.\n * @param {Function} [onError] Observer's OnError action implementation.\n * @param {Function} [onCompleted] Observer's OnCompleted action implementation.\n * @returns {Observer} The observer object implemented using the given actions.\n */\n var observerCreate = Observer.create = function (onNext, onError, onCompleted) {\n onNext || (onNext = noop);\n onError || (onError = defaultError);\n onCompleted || (onCompleted = noop);\n return new AnonymousObserver(onNext, onError, onCompleted);\n };\n\n /**\n * Creates an observer from a notification callback.\n *\n * @static\n * @memberOf Observer\n * @param {Function} handler Action that handles a notification.\n * @returns The observer object that invokes the specified handler using a notification corresponding to each message it receives.\n */\n Observer.fromNotifier = function (handler, thisArg) {\n return new AnonymousObserver(function (x) {\n return handler.call(thisArg, notificationCreateOnNext(x));\n }, function (e) {\n return handler.call(thisArg, notificationCreateOnError(e));\n }, function () {\n return handler.call(thisArg, notificationCreateOnCompleted());\n });\n };\n\n /**\n * Schedules the invocation of observer methods on the given scheduler.\n * @param {Scheduler} scheduler Scheduler to schedule observer messages on.\n * @returns {Observer} Observer whose messages are scheduled on the given scheduler.\n */\n Observer.prototype.notifyOn = function (scheduler) {\n return new ObserveOnObserver(scheduler, this);\n };\n\n /**\n * Abstract base class for implementations of the Observer class.\n * This base class enforces the grammar of observers where OnError and OnCompleted are terminal messages.\n */\n var AbstractObserver = Rx.internals.AbstractObserver = (function (__super__) {\n inherits(AbstractObserver, __super__);\n\n /**\n * Creates a new observer in a non-stopped state.\n */\n function AbstractObserver() {\n this.isStopped = false;\n __super__.call(this);\n }\n\n /**\n * Notifies the observer of a new element in the sequence.\n * @param {Any} value Next element in the sequence.\n */\n AbstractObserver.prototype.onNext = function (value) {\n if (!this.isStopped) { this.next(value); }\n };\n\n /**\n * Notifies the observer that an exception has occurred.\n * @param {Any} error The error that has occurred.\n */\n AbstractObserver.prototype.onError = function (error) {\n if (!this.isStopped) {\n this.isStopped = true;\n this.error(error);\n }\n };\n\n /**\n * Notifies the observer of the end of the sequence.\n */\n AbstractObserver.prototype.onCompleted = function () {\n if (!this.isStopped) {\n this.isStopped = true;\n this.completed();\n }\n };\n\n /**\n * Disposes the observer, causing it to transition to the stopped state.\n */\n AbstractObserver.prototype.dispose = function () {\n this.isStopped = true;\n };\n\n AbstractObserver.prototype.fail = function (e) {\n if (!this.isStopped) {\n this.isStopped = true;\n this.error(e);\n return true;\n }\n\n return false;\n };\n\n return AbstractObserver;\n }(Observer));\n\n /**\n * Class to create an Observer instance from delegate-based implementations of the on* methods.\n */\n var AnonymousObserver = Rx.AnonymousObserver = (function (__super__) {\n inherits(AnonymousObserver, __super__);\n\n /**\n * Creates an observer from the specified OnNext, OnError, and OnCompleted actions.\n * @param {Any} onNext Observer's OnNext action implementation.\n * @param {Any} onError Observer's OnError action implementation.\n * @param {Any} onCompleted Observer's OnCompleted action implementation.\n */\n function AnonymousObserver(onNext, onError, onCompleted) {\n __super__.call(this);\n this._onNext = onNext;\n this._onError = onError;\n this._onCompleted = onCompleted;\n }\n\n /**\n * Calls the onNext action.\n * @param {Any} value Next element in the sequence.\n */\n AnonymousObserver.prototype.next = function (value) {\n this._onNext(value);\n };\n\n /**\n * Calls the onError action.\n * @param {Any} error The error that has occurred.\n */\n AnonymousObserver.prototype.error = function (error) {\n this._onError(error);\n };\n\n /**\n * Calls the onCompleted action.\n */\n AnonymousObserver.prototype.completed = function () {\n this._onCompleted();\n };\n\n return AnonymousObserver;\n }(AbstractObserver));\n\n var CheckedObserver = (function (_super) {\n inherits(CheckedObserver, _super);\n\n function CheckedObserver(observer) {\n _super.call(this);\n this._observer = observer;\n this._state = 0; // 0 - idle, 1 - busy, 2 - done\n }\n\n var CheckedObserverPrototype = CheckedObserver.prototype;\n\n CheckedObserverPrototype.onNext = function (value) {\n this.checkAccess();\n try {\n this._observer.onNext(value);\n } catch (e) {\n throw e;\n } finally {\n this._state = 0;\n }\n };\n\n CheckedObserverPrototype.onError = function (err) {\n this.checkAccess();\n try {\n this._observer.onError(err);\n } catch (e) {\n throw e;\n } finally {\n this._state = 2;\n }\n };\n\n CheckedObserverPrototype.onCompleted = function () {\n this.checkAccess();\n try {\n this._observer.onCompleted();\n } catch (e) {\n throw e;\n } finally {\n this._state = 2;\n }\n };\n\n CheckedObserverPrototype.checkAccess = function () {\n if (this._state === 1) { throw new Error('Re-entrancy detected'); }\n if (this._state === 2) { throw new Error('Observer completed'); }\n if (this._state === 0) { this._state = 1; }\n };\n\n return CheckedObserver;\n }(Observer));\n\n var ScheduledObserver = Rx.internals.ScheduledObserver = (function (__super__) {\n inherits(ScheduledObserver, __super__);\n\n function ScheduledObserver(scheduler, observer) {\n __super__.call(this);\n this.scheduler = scheduler;\n this.observer = observer;\n this.isAcquired = false;\n this.hasFaulted = false;\n this.queue = [];\n this.disposable = new SerialDisposable();\n }\n\n ScheduledObserver.prototype.next = function (value) {\n var self = this;\n this.queue.push(function () { self.observer.onNext(value); });\n };\n\n ScheduledObserver.prototype.error = function (e) {\n var self = this;\n this.queue.push(function () { self.observer.onError(e); });\n };\n\n ScheduledObserver.prototype.completed = function () {\n var self = this;\n this.queue.push(function () { self.observer.onCompleted(); });\n };\n\n ScheduledObserver.prototype.ensureActive = function () {\n var isOwner = false, parent = this;\n if (!this.hasFaulted && this.queue.length > 0) {\n isOwner = !this.isAcquired;\n this.isAcquired = true;\n }\n if (isOwner) {\n this.disposable.setDisposable(this.scheduler.scheduleRecursive(function (self) {\n var work;\n if (parent.queue.length > 0) {\n work = parent.queue.shift();\n } else {\n parent.isAcquired = false;\n return;\n }\n try {\n work();\n } catch (ex) {\n parent.queue = [];\n parent.hasFaulted = true;\n throw ex;\n }\n self();\n }));\n }\n };\n\n ScheduledObserver.prototype.dispose = function () {\n __super__.prototype.dispose.call(this);\n this.disposable.dispose();\n };\n\n return ScheduledObserver;\n }(AbstractObserver));\n\n var ObserveOnObserver = (function (__super__) {\n inherits(ObserveOnObserver, __super__);\n\n function ObserveOnObserver(scheduler, observer, cancel) {\n __super__.call(this, scheduler, observer);\n this._cancel = cancel;\n }\n\n ObserveOnObserver.prototype.next = function (value) {\n __super__.prototype.next.call(this, value);\n this.ensureActive();\n };\n\n ObserveOnObserver.prototype.error = function (e) {\n __super__.prototype.error.call(this, e);\n this.ensureActive();\n };\n\n ObserveOnObserver.prototype.completed = function () {\n __super__.prototype.completed.call(this);\n this.ensureActive();\n };\n\n ObserveOnObserver.prototype.dispose = function () {\n __super__.prototype.dispose.call(this);\n this._cancel && this._cancel.dispose();\n this._cancel = null;\n };\n\n return ObserveOnObserver;\n })(ScheduledObserver);\n\n var observableProto;\n\n /**\n * Represents a push-style collection.\n */\n var Observable = Rx.Observable = (function () {\n\n function Observable(subscribe) {\n if (Rx.config.longStackSupport && hasStacks) {\n try {\n throw new Error();\n } catch (e) {\n this.stack = e.stack.substring(e.stack.indexOf(\"\\n\") + 1);\n }\n\n var self = this;\n this._subscribe = function (observer) {\n var oldOnError = observer.onError.bind(observer);\n\n observer.onError = function (err) {\n makeStackTraceLong(err, self);\n oldOnError(err);\n };\n\n return subscribe.call(self, observer);\n };\n } else {\n this._subscribe = subscribe;\n }\n }\n\n observableProto = Observable.prototype;\n\n /**\n * Subscribes an observer to the observable sequence.\n * @param {Mixed} [observerOrOnNext] The object that is to receive notifications or an action to invoke for each element in the observable sequence.\n * @param {Function} [onError] Action to invoke upon exceptional termination of the observable sequence.\n * @param {Function} [onCompleted] Action to invoke upon graceful termination of the observable sequence.\n * @returns {Diposable} A disposable handling the subscriptions and unsubscriptions.\n */\n observableProto.subscribe = observableProto.forEach = function (observerOrOnNext, onError, onCompleted) {\n return this._subscribe(typeof observerOrOnNext === 'object' ?\n observerOrOnNext :\n observerCreate(observerOrOnNext, onError, onCompleted));\n };\n\n /**\n * Subscribes to the next value in the sequence with an optional \"this\" argument.\n * @param {Function} onNext The function to invoke on each element in the observable sequence.\n * @param {Any} [thisArg] Object to use as this when executing callback.\n * @returns {Disposable} A disposable handling the subscriptions and unsubscriptions.\n */\n observableProto.subscribeOnNext = function (onNext, thisArg) {\n return this._subscribe(observerCreate(arguments.length === 2 ? function(x) { onNext.call(thisArg, x); } : onNext));\n };\n\n /**\n * Subscribes to an exceptional condition in the sequence with an optional \"this\" argument.\n * @param {Function} onError The function to invoke upon exceptional termination of the observable sequence.\n * @param {Any} [thisArg] Object to use as this when executing callback.\n * @returns {Disposable} A disposable handling the subscriptions and unsubscriptions.\n */\n observableProto.subscribeOnError = function (onError, thisArg) {\n return this._subscribe(observerCreate(null, arguments.length === 2 ? function(e) { onError.call(thisArg, e); } : onError));\n };\n\n /**\n * Subscribes to the next value in the sequence with an optional \"this\" argument.\n * @param {Function} onCompleted The function to invoke upon graceful termination of the observable sequence.\n * @param {Any} [thisArg] Object to use as this when executing callback.\n * @returns {Disposable} A disposable handling the subscriptions and unsubscriptions.\n */\n observableProto.subscribeOnCompleted = function (onCompleted, thisArg) {\n return this._subscribe(observerCreate(null, null, arguments.length === 2 ? function() { onCompleted.call(thisArg); } : onCompleted));\n };\n\n return Observable;\n })();\n\n /**\n * Wraps the source sequence in order to run its observer callbacks on the specified scheduler.\n *\n * This only invokes observer callbacks on a scheduler. In case the subscription and/or unsubscription actions have side-effects\n * that require to be run on a scheduler, use subscribeOn.\n *\n * @param {Scheduler} scheduler Scheduler to notify observers on.\n * @returns {Observable} The source sequence whose observations happen on the specified scheduler.\n */\n observableProto.observeOn = function (scheduler) {\n var source = this;\n return new AnonymousObservable(function (observer) {\n return source.subscribe(new ObserveOnObserver(scheduler, observer));\n }, source);\n };\n\n /**\n * Wraps the source sequence in order to run its subscription and unsubscription logic on the specified scheduler. This operation is not commonly used;\n * see the remarks section for more information on the distinction between subscribeOn and observeOn.\n\n * This only performs the side-effects of subscription and unsubscription on the specified scheduler. In order to invoke observer\n * callbacks on a scheduler, use observeOn.\n\n * @param {Scheduler} scheduler Scheduler to perform subscription and unsubscription actions on.\n * @returns {Observable} The source sequence whose subscriptions and unsubscriptions happen on the specified scheduler.\n */\n observableProto.subscribeOn = function (scheduler) {\n var source = this;\n return new AnonymousObservable(function (observer) {\n var m = new SingleAssignmentDisposable(), d = new SerialDisposable();\n d.setDisposable(m);\n m.setDisposable(scheduler.schedule(function () {\n d.setDisposable(new ScheduledDisposable(scheduler, source.subscribe(observer)));\n }));\n return d;\n }, source);\n };\n\n /**\n * Converts a Promise to an Observable sequence\n * @param {Promise} An ES6 Compliant promise.\n * @returns {Observable} An Observable sequence which wraps the existing promise success and failure.\n */\n var observableFromPromise = Observable.fromPromise = function (promise) {\n return observableDefer(function () {\n var subject = new Rx.AsyncSubject();\n\n promise.then(\n function (value) {\n subject.onNext(value);\n subject.onCompleted();\n },\n subject.onError.bind(subject));\n\n return subject;\n });\n };\n\n /*\n * Converts an existing observable sequence to an ES6 Compatible Promise\n * @example\n * var promise = Rx.Observable.return(42).toPromise(RSVP.Promise);\n *\n * // With config\n * Rx.config.Promise = RSVP.Promise;\n * var promise = Rx.Observable.return(42).toPromise();\n * @param {Function} [promiseCtor] The constructor of the promise. If not provided, it looks for it in Rx.config.Promise.\n * @returns {Promise} An ES6 compatible promise with the last value from the observable sequence.\n */\n observableProto.toPromise = function (promiseCtor) {\n promiseCtor || (promiseCtor = Rx.config.Promise);\n if (!promiseCtor) { throw new TypeError('Promise type not provided nor in Rx.config.Promise'); }\n var source = this;\n return new promiseCtor(function (resolve, reject) {\n // No cancellation can be done\n var value, hasValue = false;\n source.subscribe(function (v) {\n value = v;\n hasValue = true;\n }, reject, function () {\n hasValue && resolve(value);\n });\n });\n };\n\n /**\n * Creates an array from an observable sequence.\n * @returns {Observable} An observable sequence containing a single element with a list containing all the elements of the source sequence.\n */\n observableProto.toArray = function () {\n var source = this;\n return new AnonymousObservable(function(observer) {\n var arr = [];\n return source.subscribe(\n function (x) { arr.push(x); },\n function (e) { observer.onError(e); },\n function () {\n observer.onNext(arr);\n observer.onCompleted();\n });\n }, source);\n };\n\n /**\n * Creates an observable sequence from a specified subscribe method implementation.\n * @example\n * var res = Rx.Observable.create(function (observer) { return function () { } );\n * var res = Rx.Observable.create(function (observer) { return Rx.Disposable.empty; } );\n * var res = Rx.Observable.create(function (observer) { } );\n * @param {Function} subscribe Implementation of the resulting observable sequence's subscribe method, returning a function that will be wrapped in a Disposable.\n * @returns {Observable} The observable sequence with the specified implementation for the Subscribe method.\n */\n Observable.create = Observable.createWithDisposable = function (subscribe, parent) {\n return new AnonymousObservable(subscribe, parent);\n };\n\n /**\n * Returns an observable sequence that invokes the specified factory function whenever a new observer subscribes.\n *\n * @example\n * var res = Rx.Observable.defer(function () { return Rx.Observable.fromArray([1,2,3]); });\n * @param {Function} observableFactory Observable factory function to invoke for each observer that subscribes to the resulting sequence or Promise.\n * @returns {Observable} An observable sequence whose observers trigger an invocation of the given observable factory function.\n */\n var observableDefer = Observable.defer = function (observableFactory) {\n return new AnonymousObservable(function (observer) {\n var result;\n try {\n result = observableFactory();\n } catch (e) {\n return observableThrow(e).subscribe(observer);\n }\n isPromise(result) && (result = observableFromPromise(result));\n return result.subscribe(observer);\n });\n };\n\n /**\n * Returns an empty observable sequence, using the specified scheduler to send out the single OnCompleted message.\n *\n * @example\n * var res = Rx.Observable.empty();\n * var res = Rx.Observable.empty(Rx.Scheduler.timeout);\n * @param {Scheduler} [scheduler] Scheduler to send the termination call on.\n * @returns {Observable} An observable sequence with no elements.\n */\n var observableEmpty = Observable.empty = function (scheduler) {\n isScheduler(scheduler) || (scheduler = immediateScheduler);\n return new AnonymousObservable(function (observer) {\n return scheduler.schedule(function () {\n observer.onCompleted();\n });\n });\n };\n\n var maxSafeInteger = Math.pow(2, 53) - 1;\n\n function StringIterable(str) {\n this._s = s;\n }\n\n StringIterable.prototype[$iterator$] = function () {\n return new StringIterator(this._s);\n };\n\n function StringIterator(str) {\n this._s = s;\n this._l = s.length;\n this._i = 0;\n }\n\n StringIterator.prototype[$iterator$] = function () {\n return this;\n };\n\n StringIterator.prototype.next = function () {\n if (this._i < this._l) {\n var val = this._s.charAt(this._i++);\n return { done: false, value: val };\n } else {\n return doneEnumerator;\n }\n };\n\n function ArrayIterable(a) {\n this._a = a;\n }\n\n ArrayIterable.prototype[$iterator$] = function () {\n return new ArrayIterator(this._a);\n };\n\n function ArrayIterator(a) {\n this._a = a;\n this._l = toLength(a);\n this._i = 0;\n }\n\n ArrayIterator.prototype[$iterator$] = function () {\n return this;\n };\n\n ArrayIterator.prototype.next = function () {\n if (this._i < this._l) {\n var val = this._a[this._i++];\n return { done: false, value: val };\n } else {\n return doneEnumerator;\n }\n };\n\n function numberIsFinite(value) {\n return typeof value === 'number' && root.isFinite(value);\n }\n\n function isNan(n) {\n return n !== n;\n }\n\n function getIterable(o) {\n var i = o[$iterator$], it;\n if (!i && typeof o === 'string') {\n it = new StringIterable(o);\n return it[$iterator$]();\n }\n if (!i && o.length !== undefined) {\n it = new ArrayIterable(o);\n return it[$iterator$]();\n }\n if (!i) { throw new TypeError('Object is not iterable'); }\n return o[$iterator$]();\n }\n\n function sign(value) {\n var number = +value;\n if (number === 0) { return number; }\n if (isNaN(number)) { return number; }\n return number < 0 ? -1 : 1;\n }\n\n function toLength(o) {\n var len = +o.length;\n if (isNaN(len)) { return 0; }\n if (len === 0 || !numberIsFinite(len)) { return len; }\n len = sign(len) * Math.floor(Math.abs(len));\n if (len <= 0) { return 0; }\n if (len > maxSafeInteger) { return maxSafeInteger; }\n return len;\n }\n\n /**\n * This method creates a new Observable sequence from an array-like or iterable object.\n * @param {Any} arrayLike An array-like or iterable object to convert to an Observable sequence.\n * @param {Function} [mapFn] Map function to call on every element of the array.\n * @param {Any} [thisArg] The context to use calling the mapFn if provided.\n * @param {Scheduler} [scheduler] Optional scheduler to use for scheduling. If not provided, defaults to Scheduler.currentThread.\n */\n var observableFrom = Observable.from = function (iterable, mapFn, thisArg, scheduler) {\n if (iterable == null) {\n throw new Error('iterable cannot be null.')\n }\n if (mapFn && !isFunction(mapFn)) {\n throw new Error('mapFn when provided must be a function');\n }\n if (mapFn) {\n var mapper = bindCallback(mapFn, thisArg, 2);\n }\n isScheduler(scheduler) || (scheduler = currentThreadScheduler);\n var list = Object(iterable), it = getIterable(list);\n return new AnonymousObservable(function (observer) {\n var i = 0;\n return scheduler.scheduleRecursive(function (self) {\n var next;\n try {\n next = it.next();\n } catch (e) {\n observer.onError(e);\n return;\n }\n if (next.done) {\n observer.onCompleted();\n return;\n }\n\n var result = next.value;\n\n if (mapper) {\n try {\n result = mapper(result, i);\n } catch (e) {\n observer.onError(e);\n return;\n }\n }\n\n observer.onNext(result);\n i++;\n self();\n });\n });\n };\n\n /**\n * Converts an array to an observable sequence, using an optional scheduler to enumerate the array.\n * @deprecated use Observable.from or Observable.of\n * @param {Scheduler} [scheduler] Scheduler to run the enumeration of the input sequence on.\n * @returns {Observable} The observable sequence whose elements are pulled from the given enumerable sequence.\n */\n var observableFromArray = Observable.fromArray = function (array, scheduler) {\n //deprecate('fromArray', 'from');\n isScheduler(scheduler) || (scheduler = currentThreadScheduler);\n return new AnonymousObservable(function (observer) {\n var count = 0, len = array.length;\n return scheduler.scheduleRecursive(function (self) {\n if (count < len) {\n observer.onNext(array[count++]);\n self();\n } else {\n observer.onCompleted();\n }\n });\n });\n };\n\n /**\n * Generates an observable sequence by running a state-driven loop producing the sequence's elements, using the specified scheduler to send out observer messages.\n *\n * @example\n * var res = Rx.Observable.generate(0, function (x) { return x < 10; }, function (x) { return x + 1; }, function (x) { return x; });\n * var res = Rx.Observable.generate(0, function (x) { return x < 10; }, function (x) { return x + 1; }, function (x) { return x; }, Rx.Scheduler.timeout);\n * @param {Mixed} initialState Initial state.\n * @param {Function} condition Condition to terminate generation (upon returning false).\n * @param {Function} iterate Iteration step function.\n * @param {Function} resultSelector Selector function for results produced in the sequence.\n * @param {Scheduler} [scheduler] Scheduler on which to run the generator loop. If not provided, defaults to Scheduler.currentThread.\n * @returns {Observable} The generated sequence.\n */\n Observable.generate = function (initialState, condition, iterate, resultSelector, scheduler) {\n isScheduler(scheduler) || (scheduler = currentThreadScheduler);\n return new AnonymousObservable(function (observer) {\n var first = true, state = initialState;\n return scheduler.scheduleRecursive(function (self) {\n var hasResult, result;\n try {\n if (first) {\n first = false;\n } else {\n state = iterate(state);\n }\n hasResult = condition(state);\n if (hasResult) {\n result = resultSelector(state);\n }\n } catch (exception) {\n observer.onError(exception);\n return;\n }\n if (hasResult) {\n observer.onNext(result);\n self();\n } else {\n observer.onCompleted();\n }\n });\n });\n };\n\n function observableOf (scheduler, array) {\n isScheduler(scheduler) || (scheduler = currentThreadScheduler);\n return new AnonymousObservable(function (observer) {\n var count = 0, len = array.length;\n return scheduler.scheduleRecursive(function (self) {\n if (count < len) {\n observer.onNext(array[count++]);\n self();\n } else {\n observer.onCompleted();\n }\n });\n });\n }\n\n /**\n * This method creates a new Observable instance with a variable number of arguments, regardless of number or type of the arguments.\n * @returns {Observable} The observable sequence whose elements are pulled from the given arguments.\n */\n Observable.of = function () {\n return observableOf(null, arguments);\n };\n\n /**\n * This method creates a new Observable instance with a variable number of arguments, regardless of number or type of the arguments.\n * @param {Scheduler} scheduler A scheduler to use for scheduling the arguments.\n * @returns {Observable} The observable sequence whose elements are pulled from the given arguments.\n */\n Observable.ofWithScheduler = function (scheduler) {\n return observableOf(scheduler, slice.call(arguments, 1));\n };\n\n /**\n * Returns a non-terminating observable sequence, which can be used to denote an infinite duration (e.g. when using reactive joins).\n * @returns {Observable} An observable sequence whose observers will never get called.\n */\n var observableNever = Observable.never = function () {\n return new AnonymousObservable(function () {\n return disposableEmpty;\n });\n };\n\n /**\n * Convert an object into an observable sequence of [key, value] pairs.\n * @param {Object} obj The object to inspect.\n * @param {Scheduler} [scheduler] Scheduler to run the enumeration of the input sequence on.\n * @returns {Observable} An observable sequence of [key, value] pairs from the object.\n */\n Observable.pairs = function (obj, scheduler) {\n scheduler || (scheduler = Rx.Scheduler.currentThread);\n return new AnonymousObservable(function (observer) {\n var idx = 0, keys = Object.keys(obj), len = keys.length;\n return scheduler.scheduleRecursive(function (self) {\n if (idx < len) {\n var key = keys[idx++];\n observer.onNext([key, obj[key]]);\n self();\n } else {\n observer.onCompleted();\n }\n });\n });\n };\n\n /**\n * Generates an observable sequence of integral numbers within a specified range, using the specified scheduler to send out observer messages.\n *\n * @example\n * var res = Rx.Observable.range(0, 10);\n * var res = Rx.Observable.range(0, 10, Rx.Scheduler.timeout);\n * @param {Number} start The value of the first integer in the sequence.\n * @param {Number} count The number of sequential integers to generate.\n * @param {Scheduler} [scheduler] Scheduler to run the generator loop on. If not specified, defaults to Scheduler.currentThread.\n * @returns {Observable} An observable sequence that contains a range of sequential integral numbers.\n */\n Observable.range = function (start, count, scheduler) {\n isScheduler(scheduler) || (scheduler = currentThreadScheduler);\n return new AnonymousObservable(function (observer) {\n return scheduler.scheduleRecursiveWithState(0, function (i, self) {\n if (i < count) {\n observer.onNext(start + i);\n self(i + 1);\n } else {\n observer.onCompleted();\n }\n });\n });\n };\n\n /**\n * Generates an observable sequence that repeats the given element the specified number of times, using the specified scheduler to send out observer messages.\n *\n * @example\n * var res = Rx.Observable.repeat(42);\n * var res = Rx.Observable.repeat(42, 4);\n * 3 - res = Rx.Observable.repeat(42, 4, Rx.Scheduler.timeout);\n * 4 - res = Rx.Observable.repeat(42, null, Rx.Scheduler.timeout);\n * @param {Mixed} value Element to repeat.\n * @param {Number} repeatCount [Optiona] Number of times to repeat the element. If not specified, repeats indefinitely.\n * @param {Scheduler} scheduler Scheduler to run the producer loop on. If not specified, defaults to Scheduler.immediate.\n * @returns {Observable} An observable sequence that repeats the given element the specified number of times.\n */\n Observable.repeat = function (value, repeatCount, scheduler) {\n isScheduler(scheduler) || (scheduler = currentThreadScheduler);\n return observableReturn(value, scheduler).repeat(repeatCount == null ? -1 : repeatCount);\n };\n\n /**\n * Returns an observable sequence that contains a single element, using the specified scheduler to send out observer messages.\n * There is an alias called 'just', and 'returnValue' for browsers <IE9.\n * @param {Mixed} value Single element in the resulting observable sequence.\n * @param {Scheduler} scheduler Scheduler to send the single element on. If not specified, defaults to Scheduler.immediate.\n * @returns {Observable} An observable sequence containing the single specified element.\n */\n var observableReturn = Observable['return'] = Observable.just = function (value, scheduler) {\n isScheduler(scheduler) || (scheduler = immediateScheduler);\n return new AnonymousObservable(function (observer) {\n return scheduler.schedule(function () {\n observer.onNext(value);\n observer.onCompleted();\n });\n });\n };\n\n /** @deprecated use return or just */\n Observable.returnValue = function () {\n //deprecate('returnValue', 'return or just');\n return observableReturn.apply(null, arguments);\n };\n\n /**\n * Returns an observable sequence that terminates with an exception, using the specified scheduler to send out the single onError message.\n * There is an alias to this method called 'throwError' for browsers <IE9.\n * @param {Mixed} error An object used for the sequence's termination.\n * @param {Scheduler} scheduler Scheduler to send the exceptional termination call on. If not specified, defaults to Scheduler.immediate.\n * @returns {Observable} The observable sequence that terminates exceptionally with the specified exception object.\n */\n var observableThrow = Observable['throw'] = Observable.throwError = function (error, scheduler) {\n isScheduler(scheduler) || (scheduler = immediateScheduler);\n return new AnonymousObservable(function (observer) {\n return scheduler.schedule(function () {\n observer.onError(error);\n });\n });\n };\n\n /** @deprecated use #some instead */\n Observable.throwException = function () {\n //deprecate('throwException', 'throwError');\n return Observable.throwError.apply(null, arguments);\n };\n\n /**\n * Constructs an observable sequence that depends on a resource object, whose lifetime is tied to the resulting observable sequence's lifetime.\n * @param {Function} resourceFactory Factory function to obtain a resource object.\n * @param {Function} observableFactory Factory function to obtain an observable sequence that depends on the obtained resource.\n * @returns {Observable} An observable sequence whose lifetime controls the lifetime of the dependent resource object.\n */\n Observable.using = function (resourceFactory, observableFactory) {\n return new AnonymousObservable(function (observer) {\n var disposable = disposableEmpty, resource, source;\n try {\n resource = resourceFactory();\n resource && (disposable = resource);\n source = observableFactory(resource);\n } catch (exception) {\n return new CompositeDisposable(observableThrow(exception).subscribe(observer), disposable);\n }\n return new CompositeDisposable(source.subscribe(observer), disposable);\n });\n };\n\n /**\n * Propagates the observable sequence or Promise that reacts first.\n * @param {Observable} rightSource Second observable sequence or Promise.\n * @returns {Observable} {Observable} An observable sequence that surfaces either of the given sequences, whichever reacted first.\n */\n observableProto.amb = function (rightSource) {\n var leftSource = this;\n return new AnonymousObservable(function (observer) {\n var choice,\n leftChoice = 'L', rightChoice = 'R',\n leftSubscription = new SingleAssignmentDisposable(),\n rightSubscription = new SingleAssignmentDisposable();\n\n isPromise(rightSource) && (rightSource = observableFromPromise(rightSource));\n\n function choiceL() {\n if (!choice) {\n choice = leftChoice;\n rightSubscription.dispose();\n }\n }\n\n function choiceR() {\n if (!choice) {\n choice = rightChoice;\n leftSubscription.dispose();\n }\n }\n\n leftSubscription.setDisposable(leftSource.subscribe(function (left) {\n choiceL();\n if (choice === leftChoice) {\n observer.onNext(left);\n }\n }, function (err) {\n choiceL();\n if (choice === leftChoice) {\n observer.onError(err);\n }\n }, function () {\n choiceL();\n if (choice === leftChoice) {\n observer.onCompleted();\n }\n }));\n\n rightSubscription.setDisposable(rightSource.subscribe(function (right) {\n choiceR();\n if (choice === rightChoice) {\n observer.onNext(right);\n }\n }, function (err) {\n choiceR();\n if (choice === rightChoice) {\n observer.onError(err);\n }\n }, function () {\n choiceR();\n if (choice === rightChoice) {\n observer.onCompleted();\n }\n }));\n\n return new CompositeDisposable(leftSubscription, rightSubscription);\n });\n };\n\n /**\n * Propagates the observable sequence or Promise that reacts first.\n *\n * @example\n * var = Rx.Observable.amb(xs, ys, zs);\n * @returns {Observable} An observable sequence that surfaces any of the given sequences, whichever reacted first.\n */\n Observable.amb = function () {\n var acc = observableNever(),\n items = argsOrArray(arguments, 0);\n function func(previous, current) {\n return previous.amb(current);\n }\n for (var i = 0, len = items.length; i < len; i++) {\n acc = func(acc, items[i]);\n }\n return acc;\n };\n\n function observableCatchHandler(source, handler) {\n return new AnonymousObservable(function (observer) {\n var d1 = new SingleAssignmentDisposable(), subscription = new SerialDisposable();\n subscription.setDisposable(d1);\n d1.setDisposable(source.subscribe(observer.onNext.bind(observer), function (exception) {\n var d, result;\n try {\n result = handler(exception);\n } catch (ex) {\n observer.onError(ex);\n return;\n }\n isPromise(result) && (result = observableFromPromise(result));\n\n d = new SingleAssignmentDisposable();\n subscription.setDisposable(d);\n d.setDisposable(result.subscribe(observer));\n }, observer.onCompleted.bind(observer)));\n\n return subscription;\n }, source);\n }\n\n /**\n * Continues an observable sequence that is terminated by an exception with the next observable sequence.\n * @example\n * 1 - xs.catchException(ys)\n * 2 - xs.catchException(function (ex) { return ys(ex); })\n * @param {Mixed} handlerOrSecond Exception handler function that returns an observable sequence given the error that occurred in the first sequence, or a second observable sequence used to produce results when an error occurred in the first sequence.\n * @returns {Observable} An observable sequence containing the first sequence's elements, followed by the elements of the handler sequence in case an exception occurred.\n */\n observableProto['catch'] = observableProto.catchError = function (handlerOrSecond) {\n return typeof handlerOrSecond === 'function' ?\n observableCatchHandler(this, handlerOrSecond) :\n observableCatch([this, handlerOrSecond]);\n };\n\n /**\n * @deprecated use #catch or #catchError instead.\n */\n observableProto.catchException = function (handlerOrSecond) {\n //deprecate('catchException', 'catch or catchError');\n return this.catchError(handlerOrSecond);\n };\n\n /**\n * Continues an observable sequence that is terminated by an exception with the next observable sequence.\n * @param {Array | Arguments} args Arguments or an array to use as the next sequence if an error occurs.\n * @returns {Observable} An observable sequence containing elements from consecutive source sequences until a source sequence terminates successfully.\n */\n var observableCatch = Observable.catchError = Observable['catch'] = function () {\n return enumerableOf(argsOrArray(arguments, 0)).catchError();\n };\n\n /**\n * @deprecated use #catch or #catchError instead.\n */\n Observable.catchException = function () {\n //deprecate('catchException', 'catch or catchError');\n return observableCatch.apply(null, arguments);\n };\n\n /**\n * Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences or Promises produces an element.\n * This can be in the form of an argument list of observables or an array.\n *\n * @example\n * 1 - obs = observable.combineLatest(obs1, obs2, obs3, function (o1, o2, o3) { return o1 + o2 + o3; });\n * 2 - obs = observable.combineLatest([obs1, obs2, obs3], function (o1, o2, o3) { return o1 + o2 + o3; });\n * @returns {Observable} An observable sequence containing the result of combining elements of the sources using the specified result selector function.\n */\n observableProto.combineLatest = function () {\n var args = slice.call(arguments);\n if (Array.isArray(args[0])) {\n args[0].unshift(this);\n } else {\n args.unshift(this);\n }\n return combineLatest.apply(this, args);\n };\n\n /**\n * Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences or Promises produces an element.\n *\n * @example\n * 1 - obs = Rx.Observable.combineLatest(obs1, obs2, obs3, function (o1, o2, o3) { return o1 + o2 + o3; });\n * 2 - obs = Rx.Observable.combineLatest([obs1, obs2, obs3], function (o1, o2, o3) { return o1 + o2 + o3; });\n * @returns {Observable} An observable sequence containing the result of combining elements of the sources using the specified result selector function.\n */\n var combineLatest = Observable.combineLatest = function () {\n var args = slice.call(arguments), resultSelector = args.pop();\n\n if (Array.isArray(args[0])) {\n args = args[0];\n }\n\n return new AnonymousObservable(function (observer) {\n var falseFactory = function () { return false; },\n n = args.length,\n hasValue = arrayInitialize(n, falseFactory),\n hasValueAll = false,\n isDone = arrayInitialize(n, falseFactory),\n values = new Array(n);\n\n function next(i) {\n var res;\n hasValue[i] = true;\n if (hasValueAll || (hasValueAll = hasValue.every(identity))) {\n try {\n res = resultSelector.apply(null, values);\n } catch (ex) {\n observer.onError(ex);\n return;\n }\n observer.onNext(res);\n } else if (isDone.filter(function (x, j) { return j !== i; }).every(identity)) {\n observer.onCompleted();\n }\n }\n\n function done (i) {\n isDone[i] = true;\n if (isDone.every(identity)) {\n observer.onCompleted();\n }\n }\n\n var subscriptions = new Array(n);\n for (var idx = 0; idx < n; idx++) {\n (function (i) {\n var source = args[i], sad = new SingleAssignmentDisposable();\n isPromise(source) && (source = observableFromPromise(source));\n sad.setDisposable(source.subscribe(function (x) {\n values[i] = x;\n next(i);\n },\n function(e) { observer.onError(e); },\n function () { done(i); }\n ));\n subscriptions[i] = sad;\n }(idx));\n }\n\n return new CompositeDisposable(subscriptions);\n }, this);\n };\n\n /**\n * Concatenates all the observable sequences. This takes in either an array or variable arguments to concatenate.\n * @returns {Observable} An observable sequence that contains the elements of each given sequence, in sequential order.\n */\n observableProto.concat = function () {\n var items = slice.call(arguments, 0);\n items.unshift(this);\n return observableConcat.apply(this, items);\n };\n\n /**\n * Concatenates all the observable sequences.\n * @param {Array | Arguments} args Arguments or an array to concat to the observable sequence.\n * @returns {Observable} An observable sequence that contains the elements of each given sequence, in sequential order.\n */\n var observableConcat = Observable.concat = function () {\n return enumerableOf(argsOrArray(arguments, 0)).concat();\n };\n\n /**\n * Concatenates an observable sequence of observable sequences.\n * @returns {Observable} An observable sequence that contains the elements of each observed inner sequence, in sequential order.\n */\n observableProto.concatAll = function () {\n return this.merge(1);\n };\n\n /** @deprecated Use `concatAll` instead. */\n observableProto.concatObservable = function () {\n //deprecate('concatObservable', 'concatAll');\n return this.merge(1);\n };\n\n /**\n * Merges an observable sequence of observable sequences into an observable sequence, limiting the number of concurrent subscriptions to inner sequences.\n * Or merges two observable sequences into a single observable sequence.\n *\n * @example\n * 1 - merged = sources.merge(1);\n * 2 - merged = source.merge(otherSource);\n * @param {Mixed} [maxConcurrentOrOther] Maximum number of inner observable sequences being subscribed to concurrently or the second observable sequence.\n * @returns {Observable} The observable sequence that merges the elements of the inner sequences.\n */\n observableProto.merge = function (maxConcurrentOrOther) {\n if (typeof maxConcurrentOrOther !== 'number') { return observableMerge(this, maxConcurrentOrOther); }\n var sources = this;\n return new AnonymousObservable(function (o) {\n var activeCount = 0, group = new CompositeDisposable(), isStopped = false, q = [];\n\n function subscribe(xs) {\n var subscription = new SingleAssignmentDisposable();\n group.add(subscription);\n\n // Check for promises support\n isPromise(xs) && (xs = observableFromPromise(xs));\n\n subscription.setDisposable(xs.subscribe(function (x) { o.onNext(x); }, function (e) { o.onError(e); }, function () {\n group.remove(subscription);\n if (q.length > 0) {\n subscribe(q.shift());\n } else {\n activeCount--;\n isStopped && activeCount === 0 && o.onCompleted();\n }\n }));\n }\n group.add(sources.subscribe(function (innerSource) {\n if (activeCount < maxConcurrentOrOther) {\n activeCount++;\n subscribe(innerSource);\n } else {\n q.push(innerSource);\n }\n }, function (e) { o.onError(e); }, function () {\n isStopped = true;\n activeCount === 0 && o.onCompleted();\n }));\n return group;\n }, sources);\n };\n\n /**\n * Merges all the observable sequences into a single observable sequence.\n * The scheduler is optional and if not specified, the immediate scheduler is used.\n * @returns {Observable} The observable sequence that merges the elements of the observable sequences.\n */\n var observableMerge = Observable.merge = function () {\n var scheduler, sources;\n if (!arguments[0]) {\n scheduler = immediateScheduler;\n sources = slice.call(arguments, 1);\n } else if (isScheduler(arguments[0])) {\n scheduler = arguments[0];\n sources = slice.call(arguments, 1);\n } else {\n scheduler = immediateScheduler;\n sources = slice.call(arguments, 0);\n }\n if (Array.isArray(sources[0])) {\n sources = sources[0];\n }\n return observableOf(scheduler, sources).mergeAll();\n };\n\n /**\n * Merges an observable sequence of observable sequences into an observable sequence.\n * @returns {Observable} The observable sequence that merges the elements of the inner sequences.\n */\n observableProto.mergeAll = function () {\n var sources = this;\n return new AnonymousObservable(function (o) {\n var group = new CompositeDisposable(),\n isStopped = false,\n m = new SingleAssignmentDisposable();\n\n group.add(m);\n m.setDisposable(sources.subscribe(function (innerSource) {\n var innerSubscription = new SingleAssignmentDisposable();\n group.add(innerSubscription);\n\n // Check for promises support\n isPromise(innerSource) && (innerSource = observableFromPromise(innerSource));\n\n innerSubscription.setDisposable(innerSource.subscribe(function (x) { o.onNext(x); }, function (e) { o.onError(e); }, function () {\n group.remove(innerSubscription);\n isStopped && group.length === 1 && o.onCompleted();\n }));\n }, function (e) { o.onError(e); }, function () {\n isStopped = true;\n group.length === 1 && o.onCompleted();\n }));\n return group;\n }, sources);\n };\n\n /**\n * @deprecated use #mergeAll instead.\n */\n observableProto.mergeObservable = function () {\n //deprecate('mergeObservable', 'mergeAll');\n return this.mergeAll.apply(this, arguments);\n };\n\n /**\n * Continues an observable sequence that is terminated normally or by an exception with the next observable sequence.\n * @param {Observable} second Second observable sequence used to produce results after the first sequence terminates.\n * @returns {Observable} An observable sequence that concatenates the first and second sequence, even if the first sequence terminates exceptionally.\n */\n observableProto.onErrorResumeNext = function (second) {\n if (!second) { throw new Error('Second observable is required'); }\n return onErrorResumeNext([this, second]);\n };\n\n /**\n * Continues an observable sequence that is terminated normally or by an exception with the next observable sequence.\n *\n * @example\n * 1 - res = Rx.Observable.onErrorResumeNext(xs, ys, zs);\n * 1 - res = Rx.Observable.onErrorResumeNext([xs, ys, zs]);\n * @returns {Observable} An observable sequence that concatenates the source sequences, even if a sequence terminates exceptionally.\n */\n var onErrorResumeNext = Observable.onErrorResumeNext = function () {\n var sources = argsOrArray(arguments, 0);\n return new AnonymousObservable(function (observer) {\n var pos = 0, subscription = new SerialDisposable(),\n cancelable = immediateScheduler.scheduleRecursive(function (self) {\n var current, d;\n if (pos < sources.length) {\n current = sources[pos++];\n isPromise(current) && (current = observableFromPromise(current));\n d = new SingleAssignmentDisposable();\n subscription.setDisposable(d);\n d.setDisposable(current.subscribe(observer.onNext.bind(observer), self, self));\n } else {\n observer.onCompleted();\n }\n });\n return new CompositeDisposable(subscription, cancelable);\n });\n };\n\n /**\n * Returns the values from the source observable sequence only after the other observable sequence produces a value.\n * @param {Observable | Promise} other The observable sequence or Promise that triggers propagation of elements of the source sequence.\n * @returns {Observable} An observable sequence containing the elements of the source sequence starting from the point the other sequence triggered propagation.\n */\n observableProto.skipUntil = function (other) {\n var source = this;\n return new AnonymousObservable(function (o) {\n var isOpen = false;\n var disposables = new CompositeDisposable(source.subscribe(function (left) {\n isOpen && o.onNext(left);\n }, function (e) { o.onError(e); }, function () {\n isOpen && o.onCompleted();\n }));\n\n isPromise(other) && (other = observableFromPromise(other));\n\n var rightSubscription = new SingleAssignmentDisposable();\n disposables.add(rightSubscription);\n rightSubscription.setDisposable(other.subscribe(function () {\n isOpen = true;\n rightSubscription.dispose();\n }, function (e) { o.onError(e); }, function () {\n rightSubscription.dispose();\n }));\n\n return disposables;\n }, source);\n };\n\n /**\n * Transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.\n * @returns {Observable} The observable sequence that at any point in time produces the elements of the most recent inner observable sequence that has been received.\n */\n observableProto['switch'] = observableProto.switchLatest = function () {\n var sources = this;\n return new AnonymousObservable(function (observer) {\n var hasLatest = false,\n innerSubscription = new SerialDisposable(),\n isStopped = false,\n latest = 0,\n subscription = sources.subscribe(\n function (innerSource) {\n var d = new SingleAssignmentDisposable(), id = ++latest;\n hasLatest = true;\n innerSubscription.setDisposable(d);\n\n // Check if Promise or Observable\n isPromise(innerSource) && (innerSource = observableFromPromise(innerSource));\n\n d.setDisposable(innerSource.subscribe(\n function (x) { latest === id && observer.onNext(x); },\n function (e) { latest === id && observer.onError(e); },\n function () {\n if (latest === id) {\n hasLatest = false;\n isStopped && observer.onCompleted();\n }\n }));\n },\n observer.onError.bind(observer),\n function () {\n isStopped = true;\n !hasLatest && observer.onCompleted();\n });\n return new CompositeDisposable(subscription, innerSubscription);\n }, sources);\n };\n\n /**\n * Returns the values from the source observable sequence until the other observable sequence produces a value.\n * @param {Observable | Promise} other Observable sequence or Promise that terminates propagation of elements of the source sequence.\n * @returns {Observable} An observable sequence containing the elements of the source sequence up to the point the other sequence interrupted further propagation.\n */\n observableProto.takeUntil = function (other) {\n var source = this;\n return new AnonymousObservable(function (o) {\n isPromise(other) && (other = observableFromPromise(other));\n return new CompositeDisposable(\n source.subscribe(o),\n other.subscribe(function () { o.onCompleted(); }, function (e) { o.onError(e); }, noop)\n );\n }, source);\n };\n\n /**\n * Merges the specified observable sequences into one observable sequence by using the selector function only when the (first) source observable sequence produces an element.\n *\n * @example\n * 1 - obs = obs1.withLatestFrom(obs2, obs3, function (o1, o2, o3) { return o1 + o2 + o3; });\n * 2 - obs = obs1.withLatestFrom([obs2, obs3], function (o1, o2, o3) { return o1 + o2 + o3; });\n * @returns {Observable} An observable sequence containing the result of combining elements of the sources using the specified result selector function.\n */\n observableProto.withLatestFrom = function () {\n var source = this;\n var args = slice.call(arguments);\n var resultSelector = args.pop();\n\n if (typeof source === 'undefined') {\n throw new Error('Source observable not found for withLatestFrom().');\n }\n if (typeof resultSelector !== 'function') {\n throw new Error('withLatestFrom() expects a resultSelector function.');\n }\n if (Array.isArray(args[0])) {\n args = args[0];\n }\n\n return new AnonymousObservable(function (observer) {\n var falseFactory = function () { return false; },\n n = args.length,\n hasValue = arrayInitialize(n, falseFactory),\n hasValueAll = false,\n values = new Array(n);\n\n var subscriptions = new Array(n + 1);\n for (var idx = 0; idx < n; idx++) {\n (function (i) {\n var other = args[i], sad = new SingleAssignmentDisposable();\n isPromise(other) && (other = observableFromPromise(other));\n sad.setDisposable(other.subscribe(function (x) {\n values[i] = x;\n hasValue[i] = true;\n hasValueAll = hasValue.every(identity);\n }, observer.onError.bind(observer), function () {}));\n subscriptions[i] = sad;\n }(idx));\n }\n\n var sad = new SingleAssignmentDisposable();\n sad.setDisposable(source.subscribe(function (x) {\n var res;\n var allValues = [x].concat(values);\n if (!hasValueAll) return;\n try {\n res = resultSelector.apply(null, allValues);\n } catch (ex) {\n observer.onError(ex);\n return;\n }\n observer.onNext(res);\n }, observer.onError.bind(observer), function () {\n observer.onCompleted();\n }));\n subscriptions[n] = sad;\n\n return new CompositeDisposable(subscriptions);\n }, this);\n };\n\n function zipArray(second, resultSelector) {\n var first = this;\n return new AnonymousObservable(function (observer) {\n var index = 0, len = second.length;\n return first.subscribe(function (left) {\n if (index < len) {\n var right = second[index++], result;\n try {\n result = resultSelector(left, right);\n } catch (e) {\n observer.onError(e);\n return;\n }\n observer.onNext(result);\n } else {\n observer.onCompleted();\n }\n }, function (e) { observer.onError(e); }, function () { observer.onCompleted(); });\n }, first);\n }\n\n /**\n * Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences or an array have produced an element at a corresponding index.\n * The last element in the arguments must be a function to invoke for each series of elements at corresponding indexes in the sources.\n *\n * @example\n * 1 - res = obs1.zip(obs2, fn);\n * 1 - res = x1.zip([1,2,3], fn);\n * @returns {Observable} An observable sequence containing the result of combining elements of the sources using the specified result selector function.\n */\n observableProto.zip = function () {\n if (Array.isArray(arguments[0])) {\n return zipArray.apply(this, arguments);\n }\n var parent = this, sources = slice.call(arguments), resultSelector = sources.pop();\n sources.unshift(parent);\n return new AnonymousObservable(function (observer) {\n var n = sources.length,\n queues = arrayInitialize(n, function () { return []; }),\n isDone = arrayInitialize(n, function () { return false; });\n\n function next(i) {\n var res, queuedValues;\n if (queues.every(function (x) { return x.length > 0; })) {\n try {\n queuedValues = queues.map(function (x) { return x.shift(); });\n res = resultSelector.apply(parent, queuedValues);\n } catch (ex) {\n observer.onError(ex);\n return;\n }\n observer.onNext(res);\n } else if (isDone.filter(function (x, j) { return j !== i; }).every(identity)) {\n observer.onCompleted();\n }\n };\n\n function done(i) {\n isDone[i] = true;\n if (isDone.every(function (x) { return x; })) {\n observer.onCompleted();\n }\n }\n\n var subscriptions = new Array(n);\n for (var idx = 0; idx < n; idx++) {\n (function (i) {\n var source = sources[i], sad = new SingleAssignmentDisposable();\n isPromise(source) && (source = observableFromPromise(source));\n sad.setDisposable(source.subscribe(function (x) {\n queues[i].push(x);\n next(i);\n }, function (e) { observer.onError(e); }, function () {\n done(i);\n }));\n subscriptions[i] = sad;\n })(idx);\n }\n\n return new CompositeDisposable(subscriptions);\n }, parent);\n };\n\n /**\n * Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences have produced an element at a corresponding index.\n * @param arguments Observable sources.\n * @param {Function} resultSelector Function to invoke for each series of elements at corresponding indexes in the sources.\n * @returns {Observable} An observable sequence containing the result of combining elements of the sources using the specified result selector function.\n */\n Observable.zip = function () {\n var args = slice.call(arguments, 0), first = args.shift();\n return first.zip.apply(first, args);\n };\n\n /**\n * Merges the specified observable sequences into one observable sequence by emitting a list with the elements of the observable sequences at corresponding indexes.\n * @param arguments Observable sources.\n * @returns {Observable} An observable sequence containing lists of elements at corresponding indexes.\n */\n Observable.zipArray = function () {\n var sources = argsOrArray(arguments, 0);\n return new AnonymousObservable(function (observer) {\n var n = sources.length,\n queues = arrayInitialize(n, function () { return []; }),\n isDone = arrayInitialize(n, function () { return false; });\n\n function next(i) {\n if (queues.every(function (x) { return x.length > 0; })) {\n var res = queues.map(function (x) { return x.shift(); });\n observer.onNext(res);\n } else if (isDone.filter(function (x, j) { return j !== i; }).every(identity)) {\n observer.onCompleted();\n return;\n }\n };\n\n function done(i) {\n isDone[i] = true;\n if (isDone.every(identity)) {\n observer.onCompleted();\n return;\n }\n }\n\n var subscriptions = new Array(n);\n for (var idx = 0; idx < n; idx++) {\n (function (i) {\n subscriptions[i] = new SingleAssignmentDisposable();\n subscriptions[i].setDisposable(sources[i].subscribe(function (x) {\n queues[i].push(x);\n next(i);\n }, function (e) { observer.onError(e); }, function () {\n done(i);\n }));\n })(idx);\n }\n\n return new CompositeDisposable(subscriptions);\n });\n };\n\n /**\n * Hides the identity of an observable sequence.\n * @returns {Observable} An observable sequence that hides the identity of the source sequence.\n */\n observableProto.asObservable = function () {\n var source = this;\n return new AnonymousObservable(function (o) { return source.subscribe(o); }, this);\n };\n\n /**\n * Projects each element of an observable sequence into zero or more buffers which are produced based on element count information.\n *\n * @example\n * var res = xs.bufferWithCount(10);\n * var res = xs.bufferWithCount(10, 1);\n * @param {Number} count Length of each buffer.\n * @param {Number} [skip] Number of elements to skip between creation of consecutive buffers. If not provided, defaults to the count.\n * @returns {Observable} An observable sequence of buffers.\n */\n observableProto.bufferWithCount = function (count, skip) {\n if (typeof skip !== 'number') {\n skip = count;\n }\n return this.windowWithCount(count, skip).selectMany(function (x) {\n return x.toArray();\n }).where(function (x) {\n return x.length > 0;\n });\n };\n\n /**\n * Dematerializes the explicit notification values of an observable sequence as implicit notifications.\n * @returns {Observable} An observable sequence exhibiting the behavior corresponding to the source sequence's notification values.\n */\n observableProto.dematerialize = function () {\n var source = this;\n return new AnonymousObservable(function (o) {\n return source.subscribe(function (x) { return x.accept(o); }, function(e) { o.onError(e); }, function () { o.onCompleted(); });\n }, this);\n };\n\n /**\n * Returns an observable sequence that contains only distinct contiguous elements according to the keySelector and the comparer.\n *\n * var obs = observable.distinctUntilChanged();\n * var obs = observable.distinctUntilChanged(function (x) { return x.id; });\n * var obs = observable.distinctUntilChanged(function (x) { return x.id; }, function (x, y) { return x === y; });\n *\n * @param {Function} [keySelector] A function to compute the comparison key for each element. If not provided, it projects the value.\n * @param {Function} [comparer] Equality comparer for computed key values. If not provided, defaults to an equality comparer function.\n * @returns {Observable} An observable sequence only containing the distinct contiguous elements, based on a computed key value, from the source sequence.\n */\n observableProto.distinctUntilChanged = function (keySelector, comparer) {\n var source = this;\n keySelector || (keySelector = identity);\n comparer || (comparer = defaultComparer);\n return new AnonymousObservable(function (o) {\n var hasCurrentKey = false, currentKey;\n return source.subscribe(function (value) {\n var comparerEquals = false, key;\n try {\n key = keySelector(value);\n } catch (e) {\n o.onError(e);\n return;\n }\n if (hasCurrentKey) {\n try {\n comparerEquals = comparer(currentKey, key);\n } catch (e) {\n o.onError(e);\n return;\n }\n }\n if (!hasCurrentKey || !comparerEquals) {\n hasCurrentKey = true;\n currentKey = key;\n o.onNext(value);\n }\n }, function (e) { o.onError(e); }, function () { o.onCompleted(); });\n }, this);\n };\n\n /**\n * Invokes an action for each element in the observable sequence and invokes an action upon graceful or exceptional termination of the observable sequence.\n * This method can be used for debugging, logging, etc. of query behavior by intercepting the message stream to run arbitrary actions for messages on the pipeline.\n * @param {Function | Observer} observerOrOnNext Action to invoke for each element in the observable sequence or an observer.\n * @param {Function} [onError] Action to invoke upon exceptional termination of the observable sequence. Used if only the observerOrOnNext parameter is also a function.\n * @param {Function} [onCompleted] Action to invoke upon graceful termination of the observable sequence. Used if only the observerOrOnNext parameter is also a function.\n * @returns {Observable} The source sequence with the side-effecting behavior applied.\n */\n observableProto['do'] = observableProto.tap = function (observerOrOnNext, onError, onCompleted) {\n var source = this, onNextFunc;\n if (typeof observerOrOnNext === 'function') {\n onNextFunc = observerOrOnNext;\n } else {\n onNextFunc = function (x) { observerOrOnNext.onNext(x); };\n onError = function (e) { observerOrOnNext.onError(e); };\n onCompleted = function () { observerOrOnNext.onCompleted(); }\n }\n return new AnonymousObservable(function (observer) {\n return source.subscribe(function (x) {\n try {\n onNextFunc(x);\n } catch (e) {\n observer.onError(e);\n }\n observer.onNext(x);\n }, function (err) {\n if (onError) {\n try {\n onError(err);\n } catch (e) {\n observer.onError(e);\n }\n }\n observer.onError(err);\n }, function () {\n if (onCompleted) {\n try {\n onCompleted();\n } catch (e) {\n observer.onError(e);\n }\n }\n observer.onCompleted();\n });\n }, this);\n };\n\n /** @deprecated use #do or #tap instead. */\n observableProto.doAction = function () {\n //deprecate('doAction', 'do or tap');\n return this.tap.apply(this, arguments);\n };\n\n /**\n * Invokes an action for each element in the observable sequence.\n * This method can be used for debugging, logging, etc. of query behavior by intercepting the message stream to run arbitrary actions for messages on the pipeline.\n * @param {Function} onNext Action to invoke for each element in the observable sequence.\n * @param {Any} [thisArg] Object to use as this when executing callback.\n * @returns {Observable} The source sequence with the side-effecting behavior applied.\n */\n observableProto.doOnNext = observableProto.tapOnNext = function (onNext, thisArg) {\n return this.tap(typeof thisArg !== 'undefined' ? function (x) { onNext.call(thisArg, x); } : onNext);\n };\n\n /**\n * Invokes an action upon exceptional termination of the observable sequence.\n * This method can be used for debugging, logging, etc. of query behavior by intercepting the message stream to run arbitrary actions for messages on the pipeline.\n * @param {Function} onError Action to invoke upon exceptional termination of the observable sequence.\n * @param {Any} [thisArg] Object to use as this when executing callback.\n * @returns {Observable} The source sequence with the side-effecting behavior applied.\n */\n observableProto.doOnError = observableProto.tapOnError = function (onError, thisArg) {\n return this.tap(noop, typeof thisArg !== 'undefined' ? function (e) { onError.call(thisArg, e); } : onError);\n };\n\n /**\n * Invokes an action upon graceful termination of the observable sequence.\n * This method can be used for debugging, logging, etc. of query behavior by intercepting the message stream to run arbitrary actions for messages on the pipeline.\n * @param {Function} onCompleted Action to invoke upon graceful termination of the observable sequence.\n * @param {Any} [thisArg] Object to use as this when executing callback.\n * @returns {Observable} The source sequence with the side-effecting behavior applied.\n */\n observableProto.doOnCompleted = observableProto.tapOnCompleted = function (onCompleted, thisArg) {\n return this.tap(noop, null, typeof thisArg !== 'undefined' ? function () { onCompleted.call(thisArg); } : onCompleted);\n };\n\n /**\n * Invokes a specified action after the source observable sequence terminates gracefully or exceptionally.\n * @param {Function} finallyAction Action to invoke after the source observable sequence terminates.\n * @returns {Observable} Source sequence with the action-invoking termination behavior applied.\n */\n observableProto['finally'] = observableProto.ensure = function (action) {\n var source = this;\n return new AnonymousObservable(function (observer) {\n var subscription;\n try {\n subscription = source.subscribe(observer);\n } catch (e) {\n action();\n throw e;\n }\n return disposableCreate(function () {\n try {\n subscription.dispose();\n } catch (e) {\n throw e;\n } finally {\n action();\n }\n });\n }, this);\n };\n\n /**\n * @deprecated use #finally or #ensure instead.\n */\n observableProto.finallyAction = function (action) {\n //deprecate('finallyAction', 'finally or ensure');\n return this.ensure(action);\n };\n\n /**\n * Ignores all elements in an observable sequence leaving only the termination messages.\n * @returns {Observable} An empty observable sequence that signals termination, successful or exceptional, of the source sequence.\n */\n observableProto.ignoreElements = function () {\n var source = this;\n return new AnonymousObservable(function (o) {\n return source.subscribe(noop, function (e) { o.onError(e); }, function () { o.onCompleted(); });\n }, source);\n };\n\n /**\n * Materializes the implicit notifications of an observable sequence as explicit notification values.\n * @returns {Observable} An observable sequence containing the materialized notification values from the source sequence.\n */\n observableProto.materialize = function () {\n var source = this;\n return new AnonymousObservable(function (observer) {\n return source.subscribe(function (value) {\n observer.onNext(notificationCreateOnNext(value));\n }, function (e) {\n observer.onNext(notificationCreateOnError(e));\n observer.onCompleted();\n }, function () {\n observer.onNext(notificationCreateOnCompleted());\n observer.onCompleted();\n });\n }, source);\n };\n\n /**\n * Repeats the observable sequence a specified number of times. If the repeat count is not specified, the sequence repeats indefinitely.\n * @param {Number} [repeatCount] Number of times to repeat the sequence. If not provided, repeats the sequence indefinitely.\n * @returns {Observable} The observable sequence producing the elements of the given sequence repeatedly.\n */\n observableProto.repeat = function (repeatCount) {\n return enumerableRepeat(this, repeatCount).concat();\n };\n\n /**\n * Repeats the source observable sequence the specified number of times or until it successfully terminates. If the retry count is not specified, it retries indefinitely.\n * Note if you encounter an error and want it to retry once, then you must use .retry(2);\n *\n * @example\n * var res = retried = retry.repeat();\n * var res = retried = retry.repeat(2);\n * @param {Number} [retryCount] Number of times to retry the sequence. If not provided, retry the sequence indefinitely.\n * @returns {Observable} An observable sequence producing the elements of the given sequence repeatedly until it terminates successfully.\n */\n observableProto.retry = function (retryCount) {\n return enumerableRepeat(this, retryCount).catchError();\n };\n\n /**\n * Repeats the source observable sequence upon error each time the notifier emits or until it successfully terminates. \n * if the notifier completes, the observable sequence completes.\n *\n * @example\n * var timer = Observable.timer(500);\n * var source = observable.retryWhen(timer);\n * @param {Observable} [notifier] An observable that triggers the retries or completes the observable with onNext or onCompleted respectively.\n * @returns {Observable} An observable sequence producing the elements of the given sequence repeatedly until it terminates successfully.\n */\n observableProto.retryWhen = function (notifier) {\n return enumerableRepeat(this).catchErrorWhen(notifier);\n };\n /**\n * Applies an accumulator function over an observable sequence and returns each intermediate result. The optional seed value is used as the initial accumulator value.\n * For aggregation behavior with no intermediate results, see Observable.aggregate.\n * @example\n * var res = source.scan(function (acc, x) { return acc + x; });\n * var res = source.scan(0, function (acc, x) { return acc + x; });\n * @param {Mixed} [seed] The initial accumulator value.\n * @param {Function} accumulator An accumulator function to be invoked on each element.\n * @returns {Observable} An observable sequence containing the accumulated values.\n */\n observableProto.scan = function () {\n var hasSeed = false, seed, accumulator, source = this;\n if (arguments.length === 2) {\n hasSeed = true;\n seed = arguments[0];\n accumulator = arguments[1];\n } else {\n accumulator = arguments[0];\n }\n return new AnonymousObservable(function (o) {\n var hasAccumulation, accumulation, hasValue;\n return source.subscribe (\n function (x) {\n !hasValue && (hasValue = true);\n try {\n if (hasAccumulation) {\n accumulation = accumulator(accumulation, x);\n } else {\n accumulation = hasSeed ? accumulator(seed, x) : x;\n hasAccumulation = true;\n }\n } catch (e) {\n o.onError(e);\n return;\n }\n\n o.onNext(accumulation);\n },\n function (e) { o.onError(e); },\n function () {\n !hasValue && hasSeed && o.onNext(seed);\n o.onCompleted();\n }\n );\n }, source);\n };\n\n /**\n * Bypasses a specified number of elements at the end of an observable sequence.\n * @description\n * This operator accumulates a queue with a length enough to store the first `count` elements. As more elements are\n * received, elements are taken from the front of the queue and produced on the result sequence. This causes elements to be delayed.\n * @param count Number of elements to bypass at the end of the source sequence.\n * @returns {Observable} An observable sequence containing the source sequence elements except for the bypassed ones at the end.\n */\n observableProto.skipLast = function (count) {\n var source = this;\n return new AnonymousObservable(function (o) {\n var q = [];\n return source.subscribe(function (x) {\n q.push(x);\n q.length > count && o.onNext(q.shift());\n }, function (e) { o.onError(e); }, function () { o.onCompleted(); });\n }, source);\n };\n\n /**\n * Prepends a sequence of values to an observable sequence with an optional scheduler and an argument list of values to prepend.\n * @example\n * var res = source.startWith(1, 2, 3);\n * var res = source.startWith(Rx.Scheduler.timeout, 1, 2, 3);\n * @param {Arguments} args The specified values to prepend to the observable sequence\n * @returns {Observable} The source sequence prepended with the specified values.\n */\n observableProto.startWith = function () {\n var values, scheduler, start = 0;\n if (!!arguments.length && isScheduler(arguments[0])) {\n scheduler = arguments[0];\n start = 1;\n } else {\n scheduler = immediateScheduler;\n }\n values = slice.call(arguments, start);\n return enumerableOf([observableFromArray(values, scheduler), this]).concat();\n };\n\n /**\n * Returns a specified number of contiguous elements from the end of an observable sequence.\n * @description\n * This operator accumulates a buffer with a length enough to store elements count elements. Upon completion of\n * the source sequence, this buffer is drained on the result sequence. This causes the elements to be delayed.\n * @param {Number} count Number of elements to take from the end of the source sequence.\n * @returns {Observable} An observable sequence containing the specified number of elements from the end of the source sequence.\n */\n observableProto.takeLast = function (count) {\n var source = this;\n return new AnonymousObservable(function (o) {\n var q = [];\n return source.subscribe(function (x) {\n q.push(x);\n q.length > count && q.shift();\n }, function (e) { o.onError(e); }, function () {\n while (q.length > 0) { o.onNext(q.shift()); }\n o.onCompleted();\n });\n }, source);\n };\n\n /**\n * Returns an array with the specified number of contiguous elements from the end of an observable sequence.\n *\n * @description\n * This operator accumulates a buffer with a length enough to store count elements. Upon completion of the\n * source sequence, this buffer is produced on the result sequence.\n * @param {Number} count Number of elements to take from the end of the source sequence.\n * @returns {Observable} An observable sequence containing a single array with the specified number of elements from the end of the source sequence.\n */\n observableProto.takeLastBuffer = function (count) {\n var source = this;\n return new AnonymousObservable(function (o) {\n var q = [];\n return source.subscribe(function (x) {\n q.push(x);\n q.length > count && q.shift();\n }, function (e) { o.onError(e); }, function () {\n o.onNext(q);\n o.onCompleted();\n });\n }, source);\n };\n\n /**\n * Projects each element of an observable sequence into zero or more windows which are produced based on element count information.\n *\n * var res = xs.windowWithCount(10);\n * var res = xs.windowWithCount(10, 1);\n * @param {Number} count Length of each window.\n * @param {Number} [skip] Number of elements to skip between creation of consecutive windows. If not specified, defaults to the count.\n * @returns {Observable} An observable sequence of windows.\n */\n observableProto.windowWithCount = function (count, skip) {\n var source = this;\n +count || (count = 0);\n Math.abs(count) === Infinity && (count = 0);\n if (count <= 0) { throw new Error(argumentOutOfRange); }\n skip == null && (skip = count);\n +skip || (skip = 0);\n Math.abs(skip) === Infinity && (skip = 0);\n\n if (skip <= 0) { throw new Error(argumentOutOfRange); }\n return new AnonymousObservable(function (observer) {\n var m = new SingleAssignmentDisposable(),\n refCountDisposable = new RefCountDisposable(m),\n n = 0,\n q = [];\n\n function createWindow () {\n var s = new Subject();\n q.push(s);\n observer.onNext(addRef(s, refCountDisposable));\n }\n\n createWindow();\n\n m.setDisposable(source.subscribe(\n function (x) {\n for (var i = 0, len = q.length; i < len; i++) { q[i].onNext(x); }\n var c = n - count + 1;\n c >= 0 && c % skip === 0 && q.shift().onCompleted();\n ++n % skip === 0 && createWindow();\n },\n function (e) {\n while (q.length > 0) { q.shift().onError(e); }\n observer.onError(e);\n },\n function () {\n while (q.length > 0) { q.shift().onCompleted(); }\n observer.onCompleted();\n }\n ));\n return refCountDisposable;\n }, source);\n };\n\n function concatMap(source, selector, thisArg) {\n var selectorFunc = bindCallback(selector, thisArg, 3);\n return source.map(function (x, i) {\n var result = selectorFunc(x, i, source);\n isPromise(result) && (result = observableFromPromise(result));\n (isArrayLike(result) || isIterable(result)) && (result = observableFrom(result));\n return result;\n }).concatAll();\n }\n\n /**\n * One of the Following:\n * Projects each element of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence.\n *\n * @example\n * var res = source.concatMap(function (x) { return Rx.Observable.range(0, x); });\n * Or:\n * Projects each element of an observable sequence to an observable sequence, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the results into one observable sequence.\n *\n * var res = source.concatMap(function (x) { return Rx.Observable.range(0, x); }, function (x, y) { return x + y; });\n * Or:\n * Projects each element of the source observable sequence to the other observable sequence and merges the resulting observable sequences into one observable sequence.\n *\n * var res = source.concatMap(Rx.Observable.fromArray([1,2,3]));\n * @param {Function} selector A transform function to apply to each element or an observable sequence to project each element from the\n * source sequence onto which could be either an observable or Promise.\n * @param {Function} [resultSelector] A transform function to apply to each element of the intermediate sequence.\n * @returns {Observable} An observable sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of the input sequence and then mapping each of those sequence elements and their corresponding source element to a result element.\n */\n observableProto.selectConcat = observableProto.concatMap = function (selector, resultSelector, thisArg) {\n if (isFunction(selector) && isFunction(resultSelector)) {\n return this.concatMap(function (x, i) {\n var selectorResult = selector(x, i);\n isPromise(selectorResult) && (selectorResult = observableFromPromise(selectorResult));\n (isArrayLike(selectorResult) || isIterable(selectorResult)) && (selectorResult = observableFrom(selectorResult));\n\n return selectorResult.map(function (y, i2) {\n return resultSelector(x, y, i, i2);\n });\n });\n }\n return isFunction(selector) ?\n concatMap(this, selector, thisArg) :\n concatMap(this, function () { return selector; });\n };\n\n /**\n * Projects each notification of an observable sequence to an observable sequence and concats the resulting observable sequences into one observable sequence.\n * @param {Function} onNext A transform function to apply to each element; the second parameter of the function represents the index of the source element.\n * @param {Function} onError A transform function to apply when an error occurs in the source sequence.\n * @param {Function} onCompleted A transform function to apply when the end of the source sequence is reached.\n * @param {Any} [thisArg] An optional \"this\" to use to invoke each transform.\n * @returns {Observable} An observable sequence whose elements are the result of invoking the one-to-many transform function corresponding to each notification in the input sequence.\n */\n observableProto.concatMapObserver = observableProto.selectConcatObserver = function(onNext, onError, onCompleted, thisArg) {\n var source = this,\n onNextFunc = bindCallback(onNext, thisArg, 2),\n onErrorFunc = bindCallback(onError, thisArg, 1),\n onCompletedFunc = bindCallback(onCompleted, thisArg, 0);\n return new AnonymousObservable(function (observer) {\n var index = 0;\n return source.subscribe(\n function (x) {\n var result;\n try {\n result = onNextFunc(x, index++);\n } catch (e) {\n observer.onError(e);\n return;\n }\n isPromise(result) && (result = observableFromPromise(result));\n observer.onNext(result);\n },\n function (err) {\n var result;\n try {\n result = onErrorFunc(err);\n } catch (e) {\n observer.onError(e);\n return;\n }\n isPromise(result) && (result = observableFromPromise(result));\n observer.onNext(result);\n observer.onCompleted();\n },\n function () {\n var result;\n try {\n result = onCompletedFunc();\n } catch (e) {\n observer.onError(e);\n return;\n }\n isPromise(result) && (result = observableFromPromise(result));\n observer.onNext(result);\n observer.onCompleted();\n });\n }, this).concatAll();\n };\n\n /**\n * Returns the elements of the specified sequence or the specified value in a singleton sequence if the sequence is empty.\n *\n * var res = obs = xs.defaultIfEmpty();\n * 2 - obs = xs.defaultIfEmpty(false);\n *\n * @memberOf Observable#\n * @param defaultValue The value to return if the sequence is empty. If not provided, this defaults to null.\n * @returns {Observable} An observable sequence that contains the specified default value if the source is empty; otherwise, the elements of the source itself.\n */\n observableProto.defaultIfEmpty = function (defaultValue) {\n var source = this;\n defaultValue === undefined && (defaultValue = null);\n return new AnonymousObservable(function (observer) {\n var found = false;\n return source.subscribe(function (x) {\n found = true;\n observer.onNext(x);\n },\n function (e) { observer.onError(e); }, \n function () {\n !found && observer.onNext(defaultValue);\n observer.onCompleted();\n });\n }, source);\n };\n\n // Swap out for Array.findIndex\n function arrayIndexOfComparer(array, item, comparer) {\n for (var i = 0, len = array.length; i < len; i++) {\n if (comparer(array[i], item)) { return i; }\n }\n return -1;\n }\n\n function HashSet(comparer) {\n this.comparer = comparer;\n this.set = [];\n }\n HashSet.prototype.push = function(value) {\n var retValue = arrayIndexOfComparer(this.set, value, this.comparer) === -1;\n retValue && this.set.push(value);\n return retValue;\n };\n\n /**\n * Returns an observable sequence that contains only distinct elements according to the keySelector and the comparer.\n * Usage of this operator should be considered carefully due to the maintenance of an internal lookup structure which can grow large.\n *\n * @example\n * var res = obs = xs.distinct();\n * 2 - obs = xs.distinct(function (x) { return x.id; });\n * 2 - obs = xs.distinct(function (x) { return x.id; }, function (a,b) { return a === b; });\n * @param {Function} [keySelector] A function to compute the comparison key for each element.\n * @param {Function} [comparer] Used to compare items in the collection.\n * @returns {Observable} An observable sequence only containing the distinct elements, based on a computed key value, from the source sequence.\n */\n observableProto.distinct = function (keySelector, comparer) {\n var source = this;\n comparer || (comparer = defaultComparer);\n return new AnonymousObservable(function (o) {\n var hashSet = new HashSet(comparer);\n return source.subscribe(function (x) {\n var key = x;\n\n if (keySelector) {\n try {\n key = keySelector(x);\n } catch (e) {\n o.onError(e);\n return;\n }\n }\n hashSet.push(key) && o.onNext(x);\n },\n function (e) { o.onError(e); }, function () { o.onCompleted(); });\n }, this);\n };\n\n /**\n * Groups the elements of an observable sequence according to a specified key selector function and comparer and selects the resulting elements by using a specified function.\n *\n * @example\n * var res = observable.groupBy(function (x) { return x.id; });\n * 2 - observable.groupBy(function (x) { return x.id; }), function (x) { return x.name; });\n * 3 - observable.groupBy(function (x) { return x.id; }), function (x) { return x.name; }, function (x) { return x.toString(); });\n * @param {Function} keySelector A function to extract the key for each element.\n * @param {Function} [elementSelector] A function to map each source element to an element in an observable group.\n * @param {Function} [comparer] Used to determine whether the objects are equal.\n * @returns {Observable} A sequence of observable groups, each of which corresponds to a unique key value, containing all elements that share that same key value.\n */\n observableProto.groupBy = function (keySelector, elementSelector, comparer) {\n return this.groupByUntil(keySelector, elementSelector, observableNever, comparer);\n };\n\n /**\n * Groups the elements of an observable sequence according to a specified key selector function.\n * A duration selector function is used to control the lifetime of groups. When a group expires, it receives an OnCompleted notification. When a new element with the same\n * key value as a reclaimed group occurs, the group will be reborn with a new lifetime request.\n *\n * @example\n * var res = observable.groupByUntil(function (x) { return x.id; }, null, function () { return Rx.Observable.never(); });\n * 2 - observable.groupBy(function (x) { return x.id; }), function (x) { return x.name; }, function () { return Rx.Observable.never(); });\n * 3 - observable.groupBy(function (x) { return x.id; }), function (x) { return x.name; }, function () { return Rx.Observable.never(); }, function (x) { return x.toString(); });\n * @param {Function} keySelector A function to extract the key for each element.\n * @param {Function} durationSelector A function to signal the expiration of a group.\n * @param {Function} [comparer] Used to compare objects. When not specified, the default comparer is used.\n * @returns {Observable}\n * A sequence of observable groups, each of which corresponds to a unique key value, containing all elements that share that same key value.\n * If a group's lifetime expires, a new group with the same key value can be created once an element with such a key value is encoutered.\n *\n */\n observableProto.groupByUntil = function (keySelector, elementSelector, durationSelector, comparer) {\n var source = this;\n elementSelector || (elementSelector = identity);\n comparer || (comparer = defaultComparer);\n return new AnonymousObservable(function (observer) {\n function handleError(e) { return function (item) { item.onError(e); }; }\n var map = new Dictionary(0, comparer),\n groupDisposable = new CompositeDisposable(),\n refCountDisposable = new RefCountDisposable(groupDisposable);\n\n groupDisposable.add(source.subscribe(function (x) {\n var key;\n try {\n key = keySelector(x);\n } catch (e) {\n map.getValues().forEach(handleError(e));\n observer.onError(e);\n return;\n }\n\n var fireNewMapEntry = false,\n writer = map.tryGetValue(key);\n if (!writer) {\n writer = new Subject();\n map.set(key, writer);\n fireNewMapEntry = true;\n }\n\n if (fireNewMapEntry) {\n var group = new GroupedObservable(key, writer, refCountDisposable),\n durationGroup = new GroupedObservable(key, writer);\n try {\n duration = durationSelector(durationGroup);\n } catch (e) {\n map.getValues().forEach(handleError(e));\n observer.onError(e);\n return;\n }\n\n observer.onNext(group);\n\n var md = new SingleAssignmentDisposable();\n groupDisposable.add(md);\n\n var expire = function () {\n map.remove(key) && writer.onCompleted();\n groupDisposable.remove(md);\n };\n\n md.setDisposable(duration.take(1).subscribe(\n noop,\n function (exn) {\n map.getValues().forEach(handleError(exn));\n observer.onError(exn);\n },\n expire)\n );\n }\n\n var element;\n try {\n element = elementSelector(x);\n } catch (e) {\n map.getValues().forEach(handleError(e));\n observer.onError(e);\n return;\n }\n\n writer.onNext(element);\n }, function (ex) {\n map.getValues().forEach(handleError(ex));\n observer.onError(ex);\n }, function () {\n map.getValues().forEach(function (item) { item.onCompleted(); });\n observer.onCompleted();\n }));\n\n return refCountDisposable;\n }, source);\n };\n\n /**\n * Projects each element of an observable sequence into a new form by incorporating the element's index.\n * @param {Function} selector A transform function to apply to each source element; the second parameter of the function represents the index of the source element.\n * @param {Any} [thisArg] Object to use as this when executing callback.\n * @returns {Observable} An observable sequence whose elements are the result of invoking the transform function on each element of source.\n */\n observableProto.select = observableProto.map = function (selector, thisArg) {\n var selectorFn = isFunction(selector) ? bindCallback(selector, thisArg, 3) : function () { return selector; },\n source = this;\n return new AnonymousObservable(function (o) {\n var count = 0;\n return source.subscribe(function (value) {\n try {\n var result = selectorFn(value, count++, source);\n } catch (e) {\n o.onError(e);\n return;\n }\n o.onNext(result);\n }, function (e) { o.onError(e); }, function () { o.onCompleted(); });\n }, source);\n };\n\n /**\n * Retrieves the value of a specified property from all elements in the Observable sequence.\n * @param {String} prop The property to pluck.\n * @returns {Observable} Returns a new Observable sequence of property values.\n */\n observableProto.pluck = function (prop) {\n return this.map(function (x) { return x[prop]; });\n };\n\n function flatMap(source, selector, thisArg) {\n var selectorFunc = bindCallback(selector, thisArg, 3);\n return source.map(function (x, i) {\n var result = selectorFunc(x, i, source);\n isPromise(result) && (result = observableFromPromise(result));\n (isArrayLike(result) || isIterable(result)) && (result = observableFrom(result));\n return result;\n }).mergeAll();\n }\n\n /**\n * One of the Following:\n * Projects each element of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence.\n *\n * @example\n * var res = source.selectMany(function (x) { return Rx.Observable.range(0, x); });\n * Or:\n * Projects each element of an observable sequence to an observable sequence, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the results into one observable sequence.\n *\n * var res = source.selectMany(function (x) { return Rx.Observable.range(0, x); }, function (x, y) { return x + y; });\n * Or:\n * Projects each element of the source observable sequence to the other observable sequence and merges the resulting observable sequences into one observable sequence.\n *\n * var res = source.selectMany(Rx.Observable.fromArray([1,2,3]));\n * @param {Function} selector A transform function to apply to each element or an observable sequence to project each element from the source sequence onto which could be either an observable or Promise.\n * @param {Function} [resultSelector] A transform function to apply to each element of the intermediate sequence.\n * @param {Any} [thisArg] Object to use as this when executing callback.\n * @returns {Observable} An observable sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of the input sequence and then mapping each of those sequence elements and their corresponding source element to a result element.\n */\n observableProto.selectMany = observableProto.flatMap = function (selector, resultSelector, thisArg) {\n if (isFunction(selector) && isFunction(resultSelector)) {\n return this.flatMap(function (x, i) {\n var selectorResult = selector(x, i);\n isPromise(selectorResult) && (selectorResult = observableFromPromise(selectorResult));\n (isArrayLike(selectorResult) || isIterable(selectorResult)) && (selectorResult = observableFrom(selectorResult));\n\n return selectorResult.map(function (y, i2) {\n return resultSelector(x, y, i, i2);\n });\n }, thisArg);\n }\n return isFunction(selector) ?\n flatMap(this, selector, thisArg) :\n flatMap(this, function () { return selector; });\n };\n\n /**\n * Projects each notification of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence.\n * @param {Function} onNext A transform function to apply to each element; the second parameter of the function represents the index of the source element.\n * @param {Function} onError A transform function to apply when an error occurs in the source sequence.\n * @param {Function} onCompleted A transform function to apply when the end of the source sequence is reached.\n * @param {Any} [thisArg] An optional \"this\" to use to invoke each transform.\n * @returns {Observable} An observable sequence whose elements are the result of invoking the one-to-many transform function corresponding to each notification in the input sequence.\n */\n observableProto.flatMapObserver = observableProto.selectManyObserver = function (onNext, onError, onCompleted, thisArg) {\n var source = this;\n return new AnonymousObservable(function (observer) {\n var index = 0;\n\n return source.subscribe(\n function (x) {\n var result;\n try {\n result = onNext.call(thisArg, x, index++);\n } catch (e) {\n observer.onError(e);\n return;\n }\n isPromise(result) && (result = observableFromPromise(result));\n observer.onNext(result);\n },\n function (err) {\n var result;\n try {\n result = onError.call(thisArg, err);\n } catch (e) {\n observer.onError(e);\n return;\n }\n isPromise(result) && (result = observableFromPromise(result));\n observer.onNext(result);\n observer.onCompleted();\n },\n function () {\n var result;\n try {\n result = onCompleted.call(thisArg);\n } catch (e) {\n observer.onError(e);\n return;\n }\n isPromise(result) && (result = observableFromPromise(result));\n observer.onNext(result);\n observer.onCompleted();\n });\n }, source).mergeAll();\n };\n\n /**\n * Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then\n * transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.\n * @param {Function} selector A transform function to apply to each source element; the second parameter of the function represents the index of the source element.\n * @param {Any} [thisArg] Object to use as this when executing callback.\n * @returns {Observable} An observable sequence whose elements are the result of invoking the transform function on each element of source producing an Observable of Observable sequences\n * and that at any point in time produces the elements of the most recent inner observable sequence that has been received.\n */\n observableProto.selectSwitch = observableProto.flatMapLatest = observableProto.switchMap = function (selector, thisArg) {\n return this.select(selector, thisArg).switchLatest();\n };\n\n /**\n * Bypasses a specified number of elements in an observable sequence and then returns the remaining elements.\n * @param {Number} count The number of elements to skip before returning the remaining elements.\n * @returns {Observable} An observable sequence that contains the elements that occur after the specified index in the input sequence.\n */\n observableProto.skip = function (count) {\n if (count < 0) { throw new Error(argumentOutOfRange); }\n var source = this;\n return new AnonymousObservable(function (o) {\n var remaining = count;\n return source.subscribe(function (x) {\n if (remaining <= 0) {\n o.onNext(x);\n } else {\n remaining--;\n }\n }, function (e) { o.onError(e); }, function () { o.onCompleted(); });\n }, source);\n };\n\n /**\n * Bypasses elements in an observable sequence as long as a specified condition is true and then returns the remaining elements.\n * The element's index is used in the logic of the predicate function.\n *\n * var res = source.skipWhile(function (value) { return value < 10; });\n * var res = source.skipWhile(function (value, index) { return value < 10 || index < 10; });\n * @param {Function} predicate A function to test each element for a condition; the second parameter of the function represents the index of the source element.\n * @param {Any} [thisArg] Object to use as this when executing callback.\n * @returns {Observable} An observable sequence that contains the elements from the input sequence starting at the first element in the linear series that does not pass the test specified by predicate.\n */\n observableProto.skipWhile = function (predicate, thisArg) {\n var source = this,\n callback = bindCallback(predicate, thisArg, 3);\n return new AnonymousObservable(function (o) {\n var i = 0, running = false;\n return source.subscribe(function (x) {\n if (!running) {\n try {\n running = !callback(x, i++, source);\n } catch (e) {\n o.onError(e);\n return;\n }\n }\n running && o.onNext(x);\n }, function (e) { o.onError(e); }, function () { o.onCompleted(); });\n }, source);\n };\n\n /**\n * Returns a specified number of contiguous elements from the start of an observable sequence, using the specified scheduler for the edge case of take(0).\n *\n * var res = source.take(5);\n * var res = source.take(0, Rx.Scheduler.timeout);\n * @param {Number} count The number of elements to return.\n * @param {Scheduler} [scheduler] Scheduler used to produce an OnCompleted message in case <paramref name=\"count count</paramref> is set to 0.\n * @returns {Observable} An observable sequence that contains the specified number of elements from the start of the input sequence.\n */\n observableProto.take = function (count, scheduler) {\n if (count < 0) { throw new RangeError(argumentOutOfRange); }\n if (count === 0) { return observableEmpty(scheduler); }\n var source = this;\n return new AnonymousObservable(function (o) {\n var remaining = count;\n return source.subscribe(function (x) {\n if (remaining-- > 0) {\n o.onNext(x);\n remaining === 0 && o.onCompleted();\n }\n }, function (e) { o.onError(e); }, function () { o.onCompleted(); });\n }, source);\n };\n\n /**\n * Returns elements from an observable sequence as long as a specified condition is true.\n * The element's index is used in the logic of the predicate function.\n * @param {Function} predicate A function to test each element for a condition; the second parameter of the function represents the index of the source element.\n * @param {Any} [thisArg] Object to use as this when executing callback.\n * @returns {Observable} An observable sequence that contains the elements from the input sequence that occur before the element at which the test no longer passes.\n */\n observableProto.takeWhile = function (predicate, thisArg) {\n var source = this,\n callback = bindCallback(predicate, thisArg, 3);\n return new AnonymousObservable(function (o) {\n var i = 0, running = true;\n return source.subscribe(function (x) {\n if (running) {\n try {\n running = callback(x, i++, source);\n } catch (e) {\n o.onError(e);\n return;\n }\n if (running) {\n o.onNext(x);\n } else {\n o.onCompleted();\n }\n }\n }, function (e) { o.onError(e); }, function () { o.onCompleted(); });\n }, source);\n };\n\n /**\n * Filters the elements of an observable sequence based on a predicate by incorporating the element's index.\n *\n * @example\n * var res = source.where(function (value) { return value < 10; });\n * var res = source.where(function (value, index) { return value < 10 || index < 10; });\n * @param {Function} predicate A function to test each source element for a condition; the second parameter of the function represents the index of the source element.\n * @param {Any} [thisArg] Object to use as this when executing callback.\n * @returns {Observable} An observable sequence that contains elements from the input sequence that satisfy the condition.\n */\n observableProto.where = observableProto.filter = function (predicate, thisArg) {\n var source = this;\n predicate = bindCallback(predicate, thisArg, 3);\n return new AnonymousObservable(function (o) {\n var count = 0;\n return source.subscribe(function (value) {\n try {\n var shouldRun = predicate(value, count++, source);\n } catch (e) {\n o.onError(e);\n return;\n }\n shouldRun && o.onNext(value);\n }, function (e) { o.onError(e); }, function () { o.onCompleted(); });\n }, source);\n };\n\n function extremaBy(source, keySelector, comparer) {\n return new AnonymousObservable(function (o) {\n var hasValue = false, lastKey = null, list = [];\n return source.subscribe(function (x) {\n var comparison, key;\n try {\n key = keySelector(x);\n } catch (ex) {\n o.onError(ex);\n return;\n }\n comparison = 0;\n if (!hasValue) {\n hasValue = true;\n lastKey = key;\n } else {\n try {\n comparison = comparer(key, lastKey);\n } catch (ex1) {\n o.onError(ex1);\n return;\n }\n }\n if (comparison > 0) {\n lastKey = key;\n list = [];\n }\n if (comparison >= 0) { list.push(x); }\n }, function (e) { o.onError(e); }, function () {\n o.onNext(list);\n o.onCompleted();\n });\n }, source);\n }\n\n function firstOnly(x) {\n if (x.length === 0) { throw new Error(sequenceContainsNoElements); }\n return x[0];\n }\n\n /**\n * Applies an accumulator function over an observable sequence, returning the result of the aggregation as a single element in the result sequence. The specified seed value is used as the initial accumulator value.\n * For aggregation behavior with incremental intermediate results, see Observable.scan.\n * @deprecated Use #reduce instead\n * @param {Mixed} [seed] The initial accumulator value.\n * @param {Function} accumulator An accumulator function to be invoked on each element.\n * @returns {Observable} An observable sequence containing a single element with the final accumulator value.\n */\n observableProto.aggregate = function () {\n //deprecate('aggregate', 'reduce');\n var hasSeed = false, accumulator, seed, source = this;\n if (arguments.length === 2) {\n hasSeed = true;\n seed = arguments[0];\n accumulator = arguments[1];\n } else {\n accumulator = arguments[0];\n }\n return new AnonymousObservable(function (o) {\n var hasAccumulation, accumulation, hasValue;\n return source.subscribe (\n function (x) {\n !hasValue && (hasValue = true);\n try {\n if (hasAccumulation) {\n accumulation = accumulator(accumulation, x);\n } else {\n accumulation = hasSeed ? accumulator(seed, x) : x;\n hasAccumulation = true;\n }\n } catch (e) {\n o.onError(e);\n return;\n }\n },\n function (e) { o.onError(e); },\n function () {\n hasValue && o.onNext(accumulation);\n !hasValue && hasSeed && o.onNext(seed);\n !hasValue && !hasSeed && o.onError(new Error(sequenceContainsNoElements));\n o.onCompleted();\n }\n );\n }, source);\n };\n\n /**\n * Applies an accumulator function over an observable sequence, returning the result of the aggregation as a single element in the result sequence. The specified seed value is used as the initial accumulator value.\n * For aggregation behavior with incremental intermediate results, see Observable.scan.\n * @param {Function} accumulator An accumulator function to be invoked on each element.\n * @param {Any} [seed] The initial accumulator value.\n * @returns {Observable} An observable sequence containing a single element with the final accumulator value.\n */\n observableProto.reduce = function (accumulator) {\n var hasSeed = false, seed, source = this;\n if (arguments.length === 2) {\n hasSeed = true;\n seed = arguments[1];\n }\n return new AnonymousObservable(function (o) {\n var hasAccumulation, accumulation, hasValue;\n return source.subscribe (\n function (x) {\n !hasValue && (hasValue = true);\n try {\n if (hasAccumulation) {\n accumulation = accumulator(accumulation, x);\n } else {\n accumulation = hasSeed ? accumulator(seed, x) : x;\n hasAccumulation = true;\n }\n } catch (e) {\n o.onError(e);\n return;\n }\n },\n function (e) { o.onError(e); },\n function () {\n hasValue && o.onNext(accumulation);\n !hasValue && hasSeed && o.onNext(seed);\n !hasValue && !hasSeed && o.onError(new Error(sequenceContainsNoElements));\n o.onCompleted();\n }\n );\n }, source);\n };\n\n /**\n * Determines whether any element of an observable sequence satisfies a condition if present, else if any items are in the sequence.\n * @param {Function} [predicate] A function to test each element for a condition.\n * @returns {Observable} An observable sequence containing a single element determining whether any elements in the source sequence pass the test in the specified predicate if given, else if any items are in the sequence.\n */\n observableProto.some = function (predicate, thisArg) {\n var source = this;\n return predicate ?\n source.filter(predicate, thisArg).some() :\n new AnonymousObservable(function (observer) {\n return source.subscribe(function () {\n observer.onNext(true);\n observer.onCompleted();\n }, function (e) { observer.onError(e); }, function () {\n observer.onNext(false);\n observer.onCompleted();\n });\n }, source);\n };\n\n /** @deprecated use #some instead */\n observableProto.any = function () {\n //deprecate('any', 'some');\n return this.some.apply(this, arguments);\n };\n\n /**\n * Determines whether an observable sequence is empty.\n * @returns {Observable} An observable sequence containing a single element determining whether the source sequence is empty.\n */\n observableProto.isEmpty = function () {\n return this.any().map(not);\n };\n\n /**\n * Determines whether all elements of an observable sequence satisfy a condition.\n * @param {Function} [predicate] A function to test each element for a condition.\n * @param {Any} [thisArg] Object to use as this when executing callback.\n * @returns {Observable} An observable sequence containing a single element determining whether all elements in the source sequence pass the test in the specified predicate.\n */\n observableProto.every = function (predicate, thisArg) {\n return this.filter(function (v) { return !predicate(v); }, thisArg).some().map(not);\n };\n\n /** @deprecated use #every instead */\n observableProto.all = function () {\n //deprecate('all', 'every');\n return this.every.apply(this, arguments);\n };\n\n /**\n * Determines whether an observable sequence contains a specified element with an optional equality comparer.\n * @param searchElement The value to locate in the source sequence.\n * @param {Number} [fromIndex] An equality comparer to compare elements.\n * @returns {Observable} An observable sequence containing a single element determining whether the source sequence contains an element that has the specified value from the given index.\n */\n observableProto.contains = function (searchElement, fromIndex) {\n var source = this;\n function comparer(a, b) {\n return (a === 0 && b === 0) || (a === b || (isNaN(a) && isNaN(b)));\n }\n return new AnonymousObservable(function (o) {\n var i = 0, n = +fromIndex || 0;\n Math.abs(n) === Infinity && (n = 0);\n if (n < 0) {\n o.onNext(false);\n o.onCompleted();\n return disposableEmpty;\n }\n return source.subscribe(\n function (x) {\n if (i++ >= n && comparer(x, searchElement)) {\n o.onNext(true);\n o.onCompleted();\n }\n },\n function (e) { o.onError(e); },\n function () {\n o.onNext(false);\n o.onCompleted();\n });\n }, this);\n };\n\n /**\n * Returns an observable sequence containing a value that represents how many elements in the specified observable sequence satisfy a condition if provided, else the count of items.\n * @example\n * res = source.count();\n * res = source.count(function (x) { return x > 3; });\n * @param {Function} [predicate]A function to test each element for a condition.\n * @param {Any} [thisArg] Object to use as this when executing callback.\n * @returns {Observable} An observable sequence containing a single element with a number that represents how many elements in the input sequence satisfy the condition in the predicate function if provided, else the count of items in the sequence.\n */\n observableProto.count = function (predicate, thisArg) {\n return predicate ?\n this.filter(predicate, thisArg).count() :\n this.reduce(function (count) { return count + 1; }, 0);\n };\n\n /**\n * Returns the first index at which a given element can be found in the observable sequence, or -1 if it is not present.\n * @param {Any} searchElement Element to locate in the array.\n * @param {Number} [fromIndex] The index to start the search. If not specified, defaults to 0.\n * @returns {Observable} And observable sequence containing the first index at which a given element can be found in the observable sequence, or -1 if it is not present.\n */\n observableProto.indexOf = function(searchElement, fromIndex) {\n var source = this;\n return new AnonymousObservable(function (o) {\n var i = 0, n = +fromIndex || 0;\n Math.abs(n) === Infinity && (n = 0);\n if (n < 0) {\n o.onNext(-1);\n o.onCompleted();\n return disposableEmpty;\n }\n return source.subscribe(\n function (x) {\n if (i >= n && x === searchElement) {\n o.onNext(i);\n o.onCompleted();\n }\n i++;\n },\n function (e) { o.onError(e); },\n function () {\n o.onNext(-1);\n o.onCompleted();\n });\n }, source);\n };\n\n /**\n * Computes the sum of a sequence of values that are obtained by invoking an optional transform function on each element of the input sequence, else if not specified computes the sum on each item in the sequence.\n * @param {Function} [selector] A transform function to apply to each element.\n * @param {Any} [thisArg] Object to use as this when executing callback.\n * @returns {Observable} An observable sequence containing a single element with the sum of the values in the source sequence.\n */\n observableProto.sum = function (keySelector, thisArg) {\n return keySelector && isFunction(keySelector) ?\n this.map(keySelector, thisArg).sum() :\n this.reduce(function (prev, curr) { return prev + curr; }, 0);\n };\n\n /**\n * Returns the elements in an observable sequence with the minimum key value according to the specified comparer.\n * @example\n * var res = source.minBy(function (x) { return x.value; });\n * var res = source.minBy(function (x) { return x.value; }, function (x, y) { return x - y; });\n * @param {Function} keySelector Key selector function.\n * @param {Function} [comparer] Comparer used to compare key values.\n * @returns {Observable} An observable sequence containing a list of zero or more elements that have a minimum key value.\n */\n observableProto.minBy = function (keySelector, comparer) {\n comparer || (comparer = defaultSubComparer);\n return extremaBy(this, keySelector, function (x, y) { return comparer(x, y) * -1; });\n };\n\n /**\n * Returns the minimum element in an observable sequence according to the optional comparer else a default greater than less than check.\n * @example\n * var res = source.min();\n * var res = source.min(function (x, y) { return x.value - y.value; });\n * @param {Function} [comparer] Comparer used to compare elements.\n * @returns {Observable} An observable sequence containing a single element with the minimum element in the source sequence.\n */\n observableProto.min = function (comparer) {\n return this.minBy(identity, comparer).map(function (x) { return firstOnly(x); });\n };\n\n /**\n * Returns the elements in an observable sequence with the maximum key value according to the specified comparer.\n * @example\n * var res = source.maxBy(function (x) { return x.value; });\n * var res = source.maxBy(function (x) { return x.value; }, function (x, y) { return x - y;; });\n * @param {Function} keySelector Key selector function.\n * @param {Function} [comparer] Comparer used to compare key values.\n * @returns {Observable} An observable sequence containing a list of zero or more elements that have a maximum key value.\n */\n observableProto.maxBy = function (keySelector, comparer) {\n comparer || (comparer = defaultSubComparer);\n return extremaBy(this, keySelector, comparer);\n };\n\n /**\n * Returns the maximum value in an observable sequence according to the specified comparer.\n * @example\n * var res = source.max();\n * var res = source.max(function (x, y) { return x.value - y.value; });\n * @param {Function} [comparer] Comparer used to compare elements.\n * @returns {Observable} An observable sequence containing a single element with the maximum element in the source sequence.\n */\n observableProto.max = function (comparer) {\n return this.maxBy(identity, comparer).map(function (x) { return firstOnly(x); });\n };\n\n /**\n * Computes the average of an observable sequence of values that are in the sequence or obtained by invoking a transform function on each element of the input sequence if present.\n * @param {Function} [selector] A transform function to apply to each element.\n * @param {Any} [thisArg] Object to use as this when executing callback.\n * @returns {Observable} An observable sequence containing a single element with the average of the sequence of values.\n */\n observableProto.average = function (keySelector, thisArg) {\n return keySelector && isFunction(keySelector) ?\n this.map(keySelector, thisArg).average() :\n this.reduce(function (prev, cur) {\n return {\n sum: prev.sum + cur,\n count: prev.count + 1\n };\n }, {sum: 0, count: 0 }).map(function (s) {\n if (s.count === 0) { throw new Error(sequenceContainsNoElements); }\n return s.sum / s.count;\n });\n };\n\n /**\n * Determines whether two sequences are equal by comparing the elements pairwise using a specified equality comparer.\n *\n * @example\n * var res = res = source.sequenceEqual([1,2,3]);\n * var res = res = source.sequenceEqual([{ value: 42 }], function (x, y) { return x.value === y.value; });\n * 3 - res = source.sequenceEqual(Rx.Observable.returnValue(42));\n * 4 - res = source.sequenceEqual(Rx.Observable.returnValue({ value: 42 }), function (x, y) { return x.value === y.value; });\n * @param {Observable} second Second observable sequence or array to compare.\n * @param {Function} [comparer] Comparer used to compare elements of both sequences.\n * @returns {Observable} An observable sequence that contains a single element which indicates whether both sequences are of equal length and their corresponding elements are equal according to the specified equality comparer.\n */\n observableProto.sequenceEqual = function (second, comparer) {\n var first = this;\n comparer || (comparer = defaultComparer);\n return new AnonymousObservable(function (o) {\n var donel = false, doner = false, ql = [], qr = [];\n var subscription1 = first.subscribe(function (x) {\n var equal, v;\n if (qr.length > 0) {\n v = qr.shift();\n try {\n equal = comparer(v, x);\n } catch (e) {\n o.onError(e);\n return;\n }\n if (!equal) {\n o.onNext(false);\n o.onCompleted();\n }\n } else if (doner) {\n o.onNext(false);\n o.onCompleted();\n } else {\n ql.push(x);\n }\n }, function(e) { o.onError(e); }, function () {\n donel = true;\n if (ql.length === 0) {\n if (qr.length > 0) {\n o.onNext(false);\n o.onCompleted();\n } else if (doner) {\n o.onNext(true);\n o.onCompleted();\n }\n }\n });\n\n (isArrayLike(second) || isIterable(second)) && (second = observableFrom(second));\n isPromise(second) && (second = observableFromPromise(second));\n var subscription2 = second.subscribe(function (x) {\n var equal;\n if (ql.length > 0) {\n var v = ql.shift();\n try {\n equal = comparer(v, x);\n } catch (exception) {\n o.onError(exception);\n return;\n }\n if (!equal) {\n o.onNext(false);\n o.onCompleted();\n }\n } else if (donel) {\n o.onNext(false);\n o.onCompleted();\n } else {\n qr.push(x);\n }\n }, function(e) { o.onError(e); }, function () {\n doner = true;\n if (qr.length === 0) {\n if (ql.length > 0) {\n o.onNext(false);\n o.onCompleted();\n } else if (donel) {\n o.onNext(true);\n o.onCompleted();\n }\n }\n });\n return new CompositeDisposable(subscription1, subscription2);\n }, first);\n };\n\n function elementAtOrDefault(source, index, hasDefault, defaultValue) {\n if (index < 0) { throw new Error(argumentOutOfRange); }\n return new AnonymousObservable(function (o) {\n var i = index;\n return source.subscribe(function (x) {\n if (i-- === 0) {\n o.onNext(x);\n o.onCompleted();\n }\n }, function (e) { o.onError(e); }, function () {\n if (!hasDefault) {\n o.onError(new Error(argumentOutOfRange));\n } else {\n o.onNext(defaultValue);\n o.onCompleted();\n }\n });\n }, source);\n }\n\n /**\n * Returns the element at a specified index in a sequence.\n * @example\n * var res = source.elementAt(5);\n * @param {Number} index The zero-based index of the element to retrieve.\n * @returns {Observable} An observable sequence that produces the element at the specified position in the source sequence.\n */\n observableProto.elementAt = function (index) {\n return elementAtOrDefault(this, index, false);\n };\n\n /**\n * Returns the element at a specified index in a sequence or a default value if the index is out of range.\n * @example\n * var res = source.elementAtOrDefault(5);\n * var res = source.elementAtOrDefault(5, 0);\n * @param {Number} index The zero-based index of the element to retrieve.\n * @param [defaultValue] The default value if the index is outside the bounds of the source sequence.\n * @returns {Observable} An observable sequence that produces the element at the specified position in the source sequence, or a default value if the index is outside the bounds of the source sequence.\n */\n observableProto.elementAtOrDefault = function (index, defaultValue) {\n return elementAtOrDefault(this, index, true, defaultValue);\n };\n\n function singleOrDefaultAsync(source, hasDefault, defaultValue) {\n return new AnonymousObservable(function (o) {\n var value = defaultValue, seenValue = false;\n return source.subscribe(function (x) {\n if (seenValue) {\n o.onError(new Error('Sequence contains more than one element'));\n } else {\n value = x;\n seenValue = true;\n }\n }, function (e) { o.onError(e); }, function () {\n if (!seenValue && !hasDefault) {\n o.onError(new Error(sequenceContainsNoElements));\n } else {\n o.onNext(value);\n o.onCompleted();\n }\n });\n }, source);\n }\n\n /**\n * Returns the only element of an observable sequence that satisfies the condition in the optional predicate, and reports an exception if there is not exactly one element in the observable sequence.\n * @param {Function} [predicate] A predicate function to evaluate for elements in the source sequence.\n * @param {Any} [thisArg] Object to use as `this` when executing the predicate.\n * @returns {Observable} Sequence containing the single element in the observable sequence that satisfies the condition in the predicate.\n */\n observableProto.single = function (predicate, thisArg) {\n return predicate && isFunction(predicate) ?\n this.where(predicate, thisArg).single() :\n singleOrDefaultAsync(this, false);\n };\n\n /**\n * Returns the only element of an observable sequence that matches the predicate, or a default value if no such element exists; this method reports an exception if there is more than one element in the observable sequence.\n * @example\n * var res = res = source.singleOrDefault();\n * var res = res = source.singleOrDefault(function (x) { return x === 42; });\n * res = source.singleOrDefault(function (x) { return x === 42; }, 0);\n * res = source.singleOrDefault(null, 0);\n * @memberOf Observable#\n * @param {Function} predicate A predicate function to evaluate for elements in the source sequence.\n * @param [defaultValue] The default value if the index is outside the bounds of the source sequence.\n * @param {Any} [thisArg] Object to use as `this` when executing the predicate.\n * @returns {Observable} Sequence containing the single element in the observable sequence that satisfies the condition in the predicate, or a default value if no such element exists.\n */\n observableProto.singleOrDefault = function (predicate, defaultValue, thisArg) {\n return predicate && isFunction(predicate) ?\n this.filter(predicate, thisArg).singleOrDefault(null, defaultValue) :\n singleOrDefaultAsync(this, true, defaultValue);\n };\n\n function firstOrDefaultAsync(source, hasDefault, defaultValue) {\n return new AnonymousObservable(function (o) {\n return source.subscribe(function (x) {\n o.onNext(x);\n o.onCompleted();\n }, function (e) { o.onError(e); }, function () {\n if (!hasDefault) {\n o.onError(new Error(sequenceContainsNoElements));\n } else {\n o.onNext(defaultValue);\n o.onCompleted();\n }\n });\n }, source);\n }\n\n /**\n * Returns the first element of an observable sequence that satisfies the condition in the predicate if present else the first item in the sequence.\n * @example\n * var res = res = source.first();\n * var res = res = source.first(function (x) { return x > 3; });\n * @param {Function} [predicate] A predicate function to evaluate for elements in the source sequence.\n * @param {Any} [thisArg] Object to use as `this` when executing the predicate.\n * @returns {Observable} Sequence containing the first element in the observable sequence that satisfies the condition in the predicate if provided, else the first item in the sequence.\n */\n observableProto.first = function (predicate, thisArg) {\n return predicate ?\n this.where(predicate, thisArg).first() :\n firstOrDefaultAsync(this, false);\n };\n\n /**\n * Returns the first element of an observable sequence that satisfies the condition in the predicate, or a default value if no such element exists.\n * @param {Function} [predicate] A predicate function to evaluate for elements in the source sequence.\n * @param {Any} [defaultValue] The default value if no such element exists. If not specified, defaults to null.\n * @param {Any} [thisArg] Object to use as `this` when executing the predicate.\n * @returns {Observable} Sequence containing the first element in the observable sequence that satisfies the condition in the predicate, or a default value if no such element exists.\n */\n observableProto.firstOrDefault = function (predicate, defaultValue, thisArg) {\n return predicate ?\n this.where(predicate).firstOrDefault(null, defaultValue) :\n firstOrDefaultAsync(this, true, defaultValue);\n };\n\n function lastOrDefaultAsync(source, hasDefault, defaultValue) {\n return new AnonymousObservable(function (o) {\n var value = defaultValue, seenValue = false;\n return source.subscribe(function (x) {\n value = x;\n seenValue = true;\n }, function (e) { o.onError(e); }, function () {\n if (!seenValue && !hasDefault) {\n o.onError(new Error(sequenceContainsNoElements));\n } else {\n o.onNext(value);\n o.onCompleted();\n }\n });\n }, source);\n }\n\n /**\n * Returns the last element of an observable sequence that satisfies the condition in the predicate if specified, else the last element.\n * @param {Function} [predicate] A predicate function to evaluate for elements in the source sequence.\n * @param {Any} [thisArg] Object to use as `this` when executing the predicate.\n * @returns {Observable} Sequence containing the last element in the observable sequence that satisfies the condition in the predicate.\n */\n observableProto.last = function (predicate, thisArg) {\n return predicate ?\n this.where(predicate, thisArg).last() :\n lastOrDefaultAsync(this, false);\n };\n\n /**\n * Returns the last element of an observable sequence that satisfies the condition in the predicate, or a default value if no such element exists.\n * @param {Function} [predicate] A predicate function to evaluate for elements in the source sequence.\n * @param [defaultValue] The default value if no such element exists. If not specified, defaults to null.\n * @param {Any} [thisArg] Object to use as `this` when executing the predicate.\n * @returns {Observable} Sequence containing the last element in the observable sequence that satisfies the condition in the predicate, or a default value if no such element exists.\n */\n observableProto.lastOrDefault = function (predicate, defaultValue, thisArg) {\n return predicate ?\n this.where(predicate, thisArg).lastOrDefault(null, defaultValue) :\n lastOrDefaultAsync(this, true, defaultValue);\n };\n\n function findValue (source, predicate, thisArg, yieldIndex) {\n var callback = bindCallback(predicate, thisArg, 3);\n return new AnonymousObservable(function (o) {\n var i = 0;\n return source.subscribe(function (x) {\n var shouldRun;\n try {\n shouldRun = callback(x, i, source);\n } catch (e) {\n o.onError(e);\n return;\n }\n if (shouldRun) {\n o.onNext(yieldIndex ? i : x);\n o.onCompleted();\n } else {\n i++;\n }\n }, function (e) { o.onError(e); }, function () {\n o.onNext(yieldIndex ? -1 : undefined);\n o.onCompleted();\n });\n }, source);\n }\n\n /**\n * Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire Observable sequence.\n * @param {Function} predicate The predicate that defines the conditions of the element to search for.\n * @param {Any} [thisArg] Object to use as `this` when executing the predicate.\n * @returns {Observable} An Observable sequence with the first element that matches the conditions defined by the specified predicate, if found; otherwise, undefined.\n */\n observableProto.find = function (predicate, thisArg) {\n return findValue(this, predicate, thisArg, false);\n };\n\n /**\n * Searches for an element that matches the conditions defined by the specified predicate, and returns\n * an Observable sequence with the zero-based index of the first occurrence within the entire Observable sequence.\n * @param {Function} predicate The predicate that defines the conditions of the element to search for.\n * @param {Any} [thisArg] Object to use as `this` when executing the predicate.\n * @returns {Observable} An Observable sequence with the zero-based index of the first occurrence of an element that matches the conditions defined by match, if found; otherwise, –1.\n */\n observableProto.findIndex = function (predicate, thisArg) {\n return findValue(this, predicate, thisArg, true);\n };\n\n /**\n * Converts the observable sequence to a Set if it exists.\n * @returns {Observable} An observable sequence with a single value of a Set containing the values from the observable sequence.\n */\n observableProto.toSet = function () {\n if (typeof root.Set === 'undefined') { throw new TypeError(); }\n var source = this;\n return new AnonymousObservable(function (o) {\n var s = new root.Set();\n return source.subscribe(\n function (x) { s.add(x); },\n function (e) { o.onError(e); },\n function () {\n o.onNext(s);\n o.onCompleted();\n });\n }, source);\n };\n\n /**\n * Converts the observable sequence to a Map if it exists.\n * @param {Function} keySelector A function which produces the key for the Map.\n * @param {Function} [elementSelector] An optional function which produces the element for the Map. If not present, defaults to the value from the observable sequence.\n * @returns {Observable} An observable sequence with a single value of a Map containing the values from the observable sequence.\n */\n observableProto.toMap = function (keySelector, elementSelector) {\n if (typeof root.Map === 'undefined') { throw new TypeError(); }\n var source = this;\n return new AnonymousObservable(function (o) {\n var m = new root.Map();\n return source.subscribe(\n function (x) {\n var key;\n try {\n key = keySelector(x);\n } catch (e) {\n o.onError(e);\n return;\n }\n\n var element = x;\n if (elementSelector) {\n try {\n element = elementSelector(x);\n } catch (e) {\n o.onError(e);\n return;\n }\n }\n\n m.set(key, element);\n },\n function (e) { o.onError(e); },\n function () {\n o.onNext(m);\n o.onCompleted();\n });\n }, source);\n };\n\n var fnString = 'function',\n throwString = 'throw',\n isObject = Rx.internals.isObject;\n\n function toThunk(obj, ctx) {\n if (Array.isArray(obj)) { return objectToThunk.call(ctx, obj); }\n if (isGeneratorFunction(obj)) { return observableSpawn(obj.call(ctx)); }\n if (isGenerator(obj)) { return observableSpawn(obj); }\n if (isObservable(obj)) { return observableToThunk(obj); }\n if (isPromise(obj)) { return promiseToThunk(obj); }\n if (typeof obj === fnString) { return obj; }\n if (isObject(obj) || Array.isArray(obj)) { return objectToThunk.call(ctx, obj); }\n\n return obj;\n }\n\n function objectToThunk(obj) {\n var ctx = this;\n\n return function (done) {\n var keys = Object.keys(obj),\n pending = keys.length,\n results = new obj.constructor(),\n finished;\n\n if (!pending) {\n timeoutScheduler.schedule(function () { done(null, results); });\n return;\n }\n\n for (var i = 0, len = keys.length; i < len; i++) {\n run(obj[keys[i]], keys[i]);\n }\n\n function run(fn, key) {\n if (finished) { return; }\n try {\n fn = toThunk(fn, ctx);\n\n if (typeof fn !== fnString) {\n results[key] = fn;\n return --pending || done(null, results);\n }\n\n fn.call(ctx, function(err, res) {\n if (finished) { return; }\n\n if (err) {\n finished = true;\n return done(err);\n }\n\n results[key] = res;\n --pending || done(null, results);\n });\n } catch (e) {\n finished = true;\n done(e);\n }\n }\n }\n }\n\n function observableToThunk(observable) {\n return function (fn) {\n var value, hasValue = false;\n observable.subscribe(\n function (v) {\n value = v;\n hasValue = true;\n },\n fn,\n function () {\n hasValue && fn(null, value);\n });\n }\n }\n\n function promiseToThunk(promise) {\n return function(fn) {\n promise.then(function(res) {\n fn(null, res);\n }, fn);\n }\n }\n\n function isObservable(obj) {\n return obj && typeof obj.subscribe === fnString;\n }\n\n function isGeneratorFunction(obj) {\n return obj && obj.constructor && obj.constructor.name === 'GeneratorFunction';\n }\n\n function isGenerator(obj) {\n return obj && typeof obj.next === fnString && typeof obj[throwString] === fnString;\n }\n\n /*\n * Spawns a generator function which allows for Promises, Observable sequences, Arrays, Objects, Generators and functions.\n * @param {Function} The spawning function.\n * @returns {Function} a function which has a done continuation.\n */\n var observableSpawn = Rx.spawn = function (fn) {\n var isGenFun = isGeneratorFunction(fn);\n\n return function (done) {\n var ctx = this,\n gen = fn;\n\n if (isGenFun) {\n var args = slice.call(arguments),\n len = args.length,\n hasCallback = len && typeof args[len - 1] === fnString;\n\n done = hasCallback ? args.pop() : handleError;\n gen = fn.apply(this, args);\n } else {\n done = done || handleError;\n }\n\n next();\n\n function exit(err, res) {\n timeoutScheduler.schedule(done.bind(ctx, err, res));\n }\n\n function next(err, res) {\n var ret;\n\n // multiple args\n if (arguments.length > 2) {\n res = slice.call(arguments, 1);\n }\n\n if (err) {\n try {\n ret = gen[throwString](err);\n } catch (e) {\n return exit(e);\n }\n }\n\n if (!err) {\n try {\n ret = gen.next(res);\n } catch (e) {\n return exit(e);\n }\n }\n\n if (ret.done) {\n return exit(null, ret.value);\n }\n\n ret.value = toThunk(ret.value, ctx);\n\n if (typeof ret.value === fnString) {\n var called = false;\n try {\n ret.value.call(ctx, function() {\n if (called) {\n return;\n }\n\n called = true;\n next.apply(ctx, arguments);\n });\n } catch (e) {\n timeoutScheduler.schedule(function () {\n if (called) {\n return;\n }\n\n called = true;\n next.call(ctx, e);\n });\n }\n return;\n }\n\n // Not supported\n next(new TypeError('Rx.spawn only supports a function, Promise, Observable, Object or Array.'));\n }\n }\n };\n\n function handleError(err) {\n if (!err) { return; }\n timeoutScheduler.schedule(function() {\n throw err;\n });\n }\n\n /**\n * Invokes the specified function asynchronously on the specified scheduler, surfacing the result through an observable sequence.\n *\n * @example\n * var res = Rx.Observable.start(function () { console.log('hello'); });\n * var res = Rx.Observable.start(function () { console.log('hello'); }, Rx.Scheduler.timeout);\n * var res = Rx.Observable.start(function () { this.log('hello'); }, Rx.Scheduler.timeout, console);\n *\n * @param {Function} func Function to run asynchronously.\n * @param {Scheduler} [scheduler] Scheduler to run the function on. If not specified, defaults to Scheduler.timeout.\n * @param [context] The context for the func parameter to be executed. If not specified, defaults to undefined.\n * @returns {Observable} An observable sequence exposing the function's result value, or an exception.\n *\n * Remarks\n * * The function is called immediately, not during the subscription of the resulting sequence.\n * * Multiple subscriptions to the resulting sequence can observe the function's result.\n */\n Observable.start = function (func, context, scheduler) {\n return observableToAsync(func, context, scheduler)();\n };\n\n /**\n * Converts the function into an asynchronous function. Each invocation of the resulting asynchronous function causes an invocation of the original synchronous function on the specified scheduler.\n * @param {Function} function Function to convert to an asynchronous function.\n * @param {Scheduler} [scheduler] Scheduler to run the function on. If not specified, defaults to Scheduler.timeout.\n * @param {Mixed} [context] The context for the func parameter to be executed. If not specified, defaults to undefined.\n * @returns {Function} Asynchronous function.\n */\n var observableToAsync = Observable.toAsync = function (func, context, scheduler) {\n isScheduler(scheduler) || (scheduler = timeoutScheduler);\n return function () {\n var args = arguments,\n subject = new AsyncSubject();\n\n scheduler.schedule(function () {\n var result;\n try {\n result = func.apply(context, args);\n } catch (e) {\n subject.onError(e);\n return;\n }\n subject.onNext(result);\n subject.onCompleted();\n });\n return subject.asObservable();\n };\n };\n\n /**\n * Converts a callback function to an observable sequence.\n *\n * @param {Function} function Function with a callback as the last parameter to convert to an Observable sequence.\n * @param {Mixed} [context] The context for the func parameter to be executed. If not specified, defaults to undefined.\n * @param {Function} [selector] A selector which takes the arguments from the callback to produce a single item to yield on next.\n * @returns {Function} A function, when executed with the required parameters minus the callback, produces an Observable sequence with a single value of the arguments to the callback as an array.\n */\n Observable.fromCallback = function (func, context, selector) {\n return function () {\n var args = slice.call(arguments, 0);\n\n return new AnonymousObservable(function (observer) {\n function handler() {\n var results = arguments;\n\n if (selector) {\n try {\n results = selector(results);\n } catch (err) {\n observer.onError(err);\n return;\n }\n\n observer.onNext(results);\n } else {\n if (results.length <= 1) {\n observer.onNext.apply(observer, results);\n } else {\n observer.onNext(results);\n }\n }\n\n observer.onCompleted();\n }\n\n args.push(handler);\n func.apply(context, args);\n }).publishLast().refCount();\n };\n };\n\n /**\n * Converts a Node.js callback style function to an observable sequence. This must be in function (err, ...) format.\n * @param {Function} func The function to call\n * @param {Mixed} [context] The context for the func parameter to be executed. If not specified, defaults to undefined.\n * @param {Function} [selector] A selector which takes the arguments from the callback minus the error to produce a single item to yield on next.\n * @returns {Function} An async function which when applied, returns an observable sequence with the callback arguments as an array.\n */\n Observable.fromNodeCallback = function (func, context, selector) {\n return function () {\n var args = slice.call(arguments, 0);\n\n return new AnonymousObservable(function (observer) {\n function handler(err) {\n if (err) {\n observer.onError(err);\n return;\n }\n\n var results = slice.call(arguments, 1);\n\n if (selector) {\n try {\n results = selector(results);\n } catch (e) {\n observer.onError(e);\n return;\n }\n observer.onNext(results);\n } else {\n if (results.length <= 1) {\n observer.onNext.apply(observer, results);\n } else {\n observer.onNext(results);\n }\n }\n\n observer.onCompleted();\n }\n\n args.push(handler);\n func.apply(context, args);\n }).publishLast().refCount();\n };\n };\n\n function createListener (element, name, handler) {\n if (element.addEventListener) {\n element.addEventListener(name, handler, false);\n return disposableCreate(function () {\n element.removeEventListener(name, handler, false);\n });\n }\n throw new Error('No listener found');\n }\n\n function createEventListener (el, eventName, handler) {\n var disposables = new CompositeDisposable();\n\n // Asume NodeList\n if (Object.prototype.toString.call(el) === '[object NodeList]') {\n for (var i = 0, len = el.length; i < len; i++) {\n disposables.add(createEventListener(el.item(i), eventName, handler));\n }\n } else if (el) {\n disposables.add(createListener(el, eventName, handler));\n }\n\n return disposables;\n }\n\n /**\n * Configuration option to determine whether to use native events only\n */\n Rx.config.useNativeEvents = false;\n\n /**\n * Creates an observable sequence by adding an event listener to the matching DOMElement or each item in the NodeList.\n *\n * @example\n * var source = Rx.Observable.fromEvent(element, 'mouseup');\n *\n * @param {Object} element The DOMElement or NodeList to attach a listener.\n * @param {String} eventName The event name to attach the observable sequence.\n * @param {Function} [selector] A selector which takes the arguments from the event handler to produce a single item to yield on next.\n * @returns {Observable} An observable sequence of events from the specified element and the specified event.\n */\n Observable.fromEvent = function (element, eventName, selector) {\n // Node.js specific\n if (element.addListener) {\n return fromEventPattern(\n function (h) { element.addListener(eventName, h); },\n function (h) { element.removeListener(eventName, h); },\n selector);\n }\n\n // Use only if non-native events are allowed\n if (!Rx.config.useNativeEvents) {\n // Handles jq, Angular.js, Zepto, Marionette\n if (typeof element.on === 'function' && typeof element.off === 'function') {\n return fromEventPattern(\n function (h) { element.on(eventName, h); },\n function (h) { element.off(eventName, h); },\n selector);\n }\n if (!!root.Ember && typeof root.Ember.addListener === 'function') {\n return fromEventPattern(\n function (h) { Ember.addListener(element, eventName, h); },\n function (h) { Ember.removeListener(element, eventName, h); },\n selector);\n }\n }\n return new AnonymousObservable(function (observer) {\n return createEventListener(\n element,\n eventName,\n function handler (e) {\n var results = e;\n\n if (selector) {\n try {\n results = selector(arguments);\n } catch (err) {\n observer.onError(err);\n return\n }\n }\n\n observer.onNext(results);\n });\n }).publish().refCount();\n };\n\n /**\n * Creates an observable sequence from an event emitter via an addHandler/removeHandler pair.\n * @param {Function} addHandler The function to add a handler to the emitter.\n * @param {Function} [removeHandler] The optional function to remove a handler from an emitter.\n * @param {Function} [selector] A selector which takes the arguments from the event handler to produce a single item to yield on next.\n * @returns {Observable} An observable sequence which wraps an event from an event emitter\n */\n var fromEventPattern = Observable.fromEventPattern = function (addHandler, removeHandler, selector) {\n return new AnonymousObservable(function (observer) {\n function innerHandler (e) {\n var result = e;\n if (selector) {\n try {\n result = selector(arguments);\n } catch (err) {\n observer.onError(err);\n return;\n }\n }\n observer.onNext(result);\n }\n\n var returnValue = addHandler(innerHandler);\n return disposableCreate(function () {\n if (removeHandler) {\n removeHandler(innerHandler, returnValue);\n }\n });\n }).publish().refCount();\n };\n\n /**\n * Invokes the asynchronous function, surfacing the result through an observable sequence.\n * @param {Function} functionAsync Asynchronous function which returns a Promise to run.\n * @returns {Observable} An observable sequence exposing the function's result value, or an exception.\n */\n Observable.startAsync = function (functionAsync) {\n var promise;\n try {\n promise = functionAsync();\n } catch (e) {\n return observableThrow(e);\n }\n return observableFromPromise(promise);\n }\n\n var PausableObservable = (function (__super__) {\n\n inherits(PausableObservable, __super__);\n\n function subscribe(observer) {\n var conn = this.source.publish(),\n subscription = conn.subscribe(observer),\n connection = disposableEmpty;\n\n var pausable = this.pauser.distinctUntilChanged().subscribe(function (b) {\n if (b) {\n connection = conn.connect();\n } else {\n connection.dispose();\n connection = disposableEmpty;\n }\n });\n\n return new CompositeDisposable(subscription, connection, pausable);\n }\n\n function PausableObservable(source, pauser) {\n this.source = source;\n this.controller = new Subject();\n\n if (pauser && pauser.subscribe) {\n this.pauser = this.controller.merge(pauser);\n } else {\n this.pauser = this.controller;\n }\n\n __super__.call(this, subscribe, source);\n }\n\n PausableObservable.prototype.pause = function () {\n this.controller.onNext(false);\n };\n\n PausableObservable.prototype.resume = function () {\n this.controller.onNext(true);\n };\n\n return PausableObservable;\n\n }(Observable));\n\n /**\n * Pauses the underlying observable sequence based upon the observable sequence which yields true/false.\n * @example\n * var pauser = new Rx.Subject();\n * var source = Rx.Observable.interval(100).pausable(pauser);\n * @param {Observable} pauser The observable sequence used to pause the underlying sequence.\n * @returns {Observable} The observable sequence which is paused based upon the pauser.\n */\n observableProto.pausable = function (pauser) {\n return new PausableObservable(this, pauser);\n };\n\n function combineLatestSource(source, subject, resultSelector) {\n return new AnonymousObservable(function (o) {\n var hasValue = [false, false],\n hasValueAll = false,\n isDone = false,\n values = new Array(2),\n err;\n\n function next(x, i) {\n values[i] = x\n var res;\n hasValue[i] = true;\n if (hasValueAll || (hasValueAll = hasValue.every(identity))) {\n if (err) {\n o.onError(err);\n return;\n }\n\n try {\n res = resultSelector.apply(null, values);\n } catch (ex) {\n o.onError(ex);\n return;\n }\n o.onNext(res);\n }\n if (isDone && values[1]) {\n o.onCompleted();\n }\n }\n\n return new CompositeDisposable(\n source.subscribe(\n function (x) {\n next(x, 0);\n },\n function (e) {\n if (values[1]) {\n o.onError(e);\n } else {\n err = e;\n }\n },\n function () {\n isDone = true;\n values[1] && o.onCompleted();\n }),\n subject.subscribe(\n function (x) {\n next(x, 1);\n },\n function (e) { o.onError(e); },\n function () {\n isDone = true;\n next(true, 1);\n })\n );\n }, source);\n }\n\n var PausableBufferedObservable = (function (__super__) {\n\n inherits(PausableBufferedObservable, __super__);\n\n function subscribe(o) {\n var q = [], previousShouldFire;\n\n var subscription =\n combineLatestSource(\n this.source,\n this.pauser.distinctUntilChanged().startWith(false),\n function (data, shouldFire) {\n return { data: data, shouldFire: shouldFire };\n })\n .subscribe(\n function (results) {\n if (previousShouldFire !== undefined && results.shouldFire != previousShouldFire) {\n previousShouldFire = results.shouldFire;\n // change in shouldFire\n if (results.shouldFire) {\n while (q.length > 0) {\n o.onNext(q.shift());\n }\n }\n } else {\n previousShouldFire = results.shouldFire;\n // new data\n if (results.shouldFire) {\n o.onNext(results.data);\n } else {\n q.push(results.data);\n }\n }\n },\n function (err) {\n // Empty buffer before sending error\n while (q.length > 0) {\n o.onNext(q.shift());\n }\n o.onError(err);\n },\n function () {\n // Empty buffer before sending completion\n while (q.length > 0) {\n o.onNext(q.shift());\n }\n o.onCompleted();\n }\n );\n return subscription;\n }\n\n function PausableBufferedObservable(source, pauser) {\n this.source = source;\n this.controller = new Subject();\n\n if (pauser && pauser.subscribe) {\n this.pauser = this.controller.merge(pauser);\n } else {\n this.pauser = this.controller;\n }\n\n __super__.call(this, subscribe, source);\n }\n\n PausableBufferedObservable.prototype.pause = function () {\n this.controller.onNext(false);\n };\n\n PausableBufferedObservable.prototype.resume = function () {\n this.controller.onNext(true);\n };\n\n return PausableBufferedObservable;\n\n }(Observable));\n\n /**\n * Pauses the underlying observable sequence based upon the observable sequence which yields true/false,\n * and yields the values that were buffered while paused.\n * @example\n * var pauser = new Rx.Subject();\n * var source = Rx.Observable.interval(100).pausableBuffered(pauser);\n * @param {Observable} pauser The observable sequence used to pause the underlying sequence.\n * @returns {Observable} The observable sequence which is paused based upon the pauser.\n */\n observableProto.pausableBuffered = function (subject) {\n return new PausableBufferedObservable(this, subject);\n };\n\n var ControlledObservable = (function (__super__) {\n\n inherits(ControlledObservable, __super__);\n\n function subscribe (observer) {\n return this.source.subscribe(observer);\n }\n\n function ControlledObservable (source, enableQueue) {\n __super__.call(this, subscribe, source);\n this.subject = new ControlledSubject(enableQueue);\n this.source = source.multicast(this.subject).refCount();\n }\n\n ControlledObservable.prototype.request = function (numberOfItems) {\n if (numberOfItems == null) { numberOfItems = -1; }\n return this.subject.request(numberOfItems);\n };\n\n return ControlledObservable;\n\n }(Observable));\n\n var ControlledSubject = (function (__super__) {\n\n function subscribe (observer) {\n return this.subject.subscribe(observer);\n }\n\n inherits(ControlledSubject, __super__);\n\n function ControlledSubject(enableQueue) {\n enableQueue == null && (enableQueue = true);\n\n __super__.call(this, subscribe);\n this.subject = new Subject();\n this.enableQueue = enableQueue;\n this.queue = enableQueue ? [] : null;\n this.requestedCount = 0;\n this.requestedDisposable = disposableEmpty;\n this.error = null;\n this.hasFailed = false;\n this.hasCompleted = false;\n this.controlledDisposable = disposableEmpty;\n }\n\n addProperties(ControlledSubject.prototype, Observer, {\n onCompleted: function () {\n this.hasCompleted = true;\n (!this.enableQueue || this.queue.length === 0) && this.subject.onCompleted();\n },\n onError: function (error) {\n this.hasFailed = true;\n this.error = error;\n (!this.enableQueue || this.queue.length === 0) && this.subject.onError(error);\n },\n onNext: function (value) {\n var hasRequested = false;\n\n if (this.requestedCount === 0) {\n this.enableQueue && this.queue.push(value);\n } else {\n (this.requestedCount !== -1 && this.requestedCount-- === 0) && this.disposeCurrentRequest();\n hasRequested = true;\n }\n hasRequested && this.subject.onNext(value);\n },\n _processRequest: function (numberOfItems) {\n if (this.enableQueue) {\n while (this.queue.length >= numberOfItems && numberOfItems > 0) {\n this.subject.onNext(this.queue.shift());\n numberOfItems--;\n }\n\n return this.queue.length !== 0 ?\n { numberOfItems: numberOfItems, returnValue: true } :\n { numberOfItems: numberOfItems, returnValue: false };\n }\n\n if (this.hasFailed) {\n this.subject.onError(this.error);\n this.controlledDisposable.dispose();\n this.controlledDisposable = disposableEmpty;\n } else if (this.hasCompleted) {\n this.subject.onCompleted();\n this.controlledDisposable.dispose();\n this.controlledDisposable = disposableEmpty;\n }\n\n return { numberOfItems: numberOfItems, returnValue: false };\n },\n request: function (number) {\n this.disposeCurrentRequest();\n var self = this, r = this._processRequest(number);\n\n var number = r.numberOfItems;\n if (!r.returnValue) {\n this.requestedCount = number;\n this.requestedDisposable = disposableCreate(function () {\n self.requestedCount = 0;\n });\n\n return this.requestedDisposable\n } else {\n return disposableEmpty;\n }\n },\n disposeCurrentRequest: function () {\n this.requestedDisposable.dispose();\n this.requestedDisposable = disposableEmpty;\n }\n });\n\n return ControlledSubject;\n }(Observable));\n\n /**\n * Attaches a controller to the observable sequence with the ability to queue.\n * @example\n * var source = Rx.Observable.interval(100).controlled();\n * source.request(3); // Reads 3 values\n * @param {Observable} pauser The observable sequence used to pause the underlying sequence.\n * @returns {Observable} The observable sequence which is paused based upon the pauser.\n */\n observableProto.controlled = function (enableQueue) {\n if (enableQueue == null) { enableQueue = true; }\n return new ControlledObservable(this, enableQueue);\n };\n\n var StopAndWaitObservable = (function (__super__) {\n\n function subscribe (observer) {\n this.subscription = this.source.subscribe(new StopAndWaitObserver(observer, this, this.subscription));\n\n var self = this;\n timeoutScheduler.schedule(function () { self.source.request(1); });\n\n return this.subscription;\n }\n\n inherits(StopAndWaitObservable, __super__);\n\n function StopAndWaitObservable (source) {\n __super__.call(this, subscribe, source);\n this.source = source;\n }\n\n var StopAndWaitObserver = (function (__sub__) {\n\n inherits(StopAndWaitObserver, __sub__);\n\n function StopAndWaitObserver (observer, observable, cancel) {\n __sub__.call(this);\n this.observer = observer;\n this.observable = observable;\n this.cancel = cancel;\n }\n\n var stopAndWaitObserverProto = StopAndWaitObserver.prototype;\n\n stopAndWaitObserverProto.completed = function () {\n this.observer.onCompleted();\n this.dispose();\n };\n\n stopAndWaitObserverProto.error = function (error) {\n this.observer.onError(error);\n this.dispose();\n }\n\n stopAndWaitObserverProto.next = function (value) {\n this.observer.onNext(value);\n\n var self = this;\n timeoutScheduler.schedule(function () {\n self.observable.source.request(1);\n });\n };\n\n stopAndWaitObserverProto.dispose = function () {\n this.observer = null;\n if (this.cancel) {\n this.cancel.dispose();\n this.cancel = null;\n }\n __sub__.prototype.dispose.call(this);\n };\n\n return StopAndWaitObserver;\n }(AbstractObserver));\n\n return StopAndWaitObservable;\n }(Observable));\n\n\n /**\n * Attaches a stop and wait observable to the current observable.\n * @returns {Observable} A stop and wait observable.\n */\n ControlledObservable.prototype.stopAndWait = function () {\n return new StopAndWaitObservable(this);\n };\n\n var WindowedObservable = (function (__super__) {\n\n function subscribe (observer) {\n this.subscription = this.source.subscribe(new WindowedObserver(observer, this, this.subscription));\n\n var self = this;\n timeoutScheduler.schedule(function () {\n self.source.request(self.windowSize);\n });\n\n return this.subscription;\n }\n\n inherits(WindowedObservable, __super__);\n\n function WindowedObservable(source, windowSize) {\n __super__.call(this, subscribe, source);\n this.source = source;\n this.windowSize = windowSize;\n }\n\n var WindowedObserver = (function (__sub__) {\n\n inherits(WindowedObserver, __sub__);\n\n function WindowedObserver(observer, observable, cancel) {\n this.observer = observer;\n this.observable = observable;\n this.cancel = cancel;\n this.received = 0;\n }\n\n var windowedObserverPrototype = WindowedObserver.prototype;\n\n windowedObserverPrototype.completed = function () {\n this.observer.onCompleted();\n this.dispose();\n };\n\n windowedObserverPrototype.error = function (error) {\n this.observer.onError(error);\n this.dispose();\n };\n\n windowedObserverPrototype.next = function (value) {\n this.observer.onNext(value);\n\n this.received = ++this.received % this.observable.windowSize;\n if (this.received === 0) {\n var self = this;\n timeoutScheduler.schedule(function () {\n self.observable.source.request(self.observable.windowSize);\n });\n }\n };\n\n windowedObserverPrototype.dispose = function () {\n this.observer = null;\n if (this.cancel) {\n this.cancel.dispose();\n this.cancel = null;\n }\n __sub__.prototype.dispose.call(this);\n };\n\n return WindowedObserver;\n }(AbstractObserver));\n\n return WindowedObservable;\n }(Observable));\n\n /**\n * Creates a sliding windowed observable based upon the window size.\n * @param {Number} windowSize The number of items in the window\n * @returns {Observable} A windowed observable based upon the window size.\n */\n ControlledObservable.prototype.windowed = function (windowSize) {\n return new WindowedObservable(this, windowSize);\n };\n\n /**\n * Multicasts the source sequence notifications through an instantiated subject into all uses of the sequence within a selector function. Each\n * subscription to the resulting sequence causes a separate multicast invocation, exposing the sequence resulting from the selector function's\n * invocation. For specializations with fixed subject types, see Publish, PublishLast, and Replay.\n *\n * @example\n * 1 - res = source.multicast(observable);\n * 2 - res = source.multicast(function () { return new Subject(); }, function (x) { return x; });\n *\n * @param {Function|Subject} subjectOrSubjectSelector\n * Factory function to create an intermediate subject through which the source sequence's elements will be multicast to the selector function.\n * Or:\n * Subject to push source elements into.\n *\n * @param {Function} [selector] Optional selector function which can use the multicasted source sequence subject to the policies enforced by the created subject. Specified only if <paramref name=\"subjectOrSubjectSelector\" is a factory function.\n * @returns {Observable} An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a selector function.\n */\n observableProto.multicast = function (subjectOrSubjectSelector, selector) {\n var source = this;\n return typeof subjectOrSubjectSelector === 'function' ?\n new AnonymousObservable(function (observer) {\n var connectable = source.multicast(subjectOrSubjectSelector());\n return new CompositeDisposable(selector(connectable).subscribe(observer), connectable.connect());\n }, source) :\n new ConnectableObservable(source, subjectOrSubjectSelector);\n };\n\n /**\n * Returns an observable sequence that is the result of invoking the selector on a connectable observable sequence that shares a single subscription to the underlying sequence.\n * This operator is a specialization of Multicast using a regular Subject.\n *\n * @example\n * var resres = source.publish();\n * var res = source.publish(function (x) { return x; });\n *\n * @param {Function} [selector] Selector function which can use the multicasted source sequence as many times as needed, without causing multiple subscriptions to the source sequence. Subscribers to the given source will receive all notifications of the source from the time of the subscription on.\n * @returns {Observable} An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a selector function.\n */\n observableProto.publish = function (selector) {\n return selector && isFunction(selector) ?\n this.multicast(function () { return new Subject(); }, selector) :\n this.multicast(new Subject());\n };\n\n /**\n * Returns an observable sequence that shares a single subscription to the underlying sequence.\n * This operator is a specialization of publish which creates a subscription when the number of observers goes from zero to one, then shares that subscription with all subsequent observers until the number of observers returns to zero, at which point the subscription is disposed.\n * @returns {Observable} An observable sequence that contains the elements of a sequence produced by multicasting the source sequence.\n */\n observableProto.share = function () {\n return this.publish().refCount();\n };\n\n /**\n * Returns an observable sequence that is the result of invoking the selector on a connectable observable sequence that shares a single subscription to the underlying sequence containing only the last notification.\n * This operator is a specialization of Multicast using a AsyncSubject.\n *\n * @example\n * var res = source.publishLast();\n * var res = source.publishLast(function (x) { return x; });\n *\n * @param selector [Optional] Selector function which can use the multicasted source sequence as many times as needed, without causing multiple subscriptions to the source sequence. Subscribers to the given source will only receive the last notification of the source.\n * @returns {Observable} An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a selector function.\n */\n observableProto.publishLast = function (selector) {\n return selector && isFunction(selector) ?\n this.multicast(function () { return new AsyncSubject(); }, selector) :\n this.multicast(new AsyncSubject());\n };\n\n /**\n * Returns an observable sequence that is the result of invoking the selector on a connectable observable sequence that shares a single subscription to the underlying sequence and starts with initialValue.\n * This operator is a specialization of Multicast using a BehaviorSubject.\n *\n * @example\n * var res = source.publishValue(42);\n * var res = source.publishValue(function (x) { return x.select(function (y) { return y * y; }) }, 42);\n *\n * @param {Function} [selector] Optional selector function which can use the multicasted source sequence as many times as needed, without causing multiple subscriptions to the source sequence. Subscribers to the given source will receive immediately receive the initial value, followed by all notifications of the source from the time of the subscription on.\n * @param {Mixed} initialValue Initial value received by observers upon subscription.\n * @returns {Observable} An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a selector function.\n */\n observableProto.publishValue = function (initialValueOrSelector, initialValue) {\n return arguments.length === 2 ?\n this.multicast(function () {\n return new BehaviorSubject(initialValue);\n }, initialValueOrSelector) :\n this.multicast(new BehaviorSubject(initialValueOrSelector));\n };\n\n /**\n * Returns an observable sequence that shares a single subscription to the underlying sequence and starts with an initialValue.\n * This operator is a specialization of publishValue which creates a subscription when the number of observers goes from zero to one, then shares that subscription with all subsequent observers until the number of observers returns to zero, at which point the subscription is disposed.\n * @param {Mixed} initialValue Initial value received by observers upon subscription.\n * @returns {Observable} An observable sequence that contains the elements of a sequence produced by multicasting the source sequence.\n */\n observableProto.shareValue = function (initialValue) {\n return this.publishValue(initialValue).refCount();\n };\n\n /**\n * Returns an observable sequence that is the result of invoking the selector on a connectable observable sequence that shares a single subscription to the underlying sequence replaying notifications subject to a maximum time length for the replay buffer.\n * This operator is a specialization of Multicast using a ReplaySubject.\n *\n * @example\n * var res = source.replay(null, 3);\n * var res = source.replay(null, 3, 500);\n * var res = source.replay(null, 3, 500, scheduler);\n * var res = source.replay(function (x) { return x.take(6).repeat(); }, 3, 500, scheduler);\n *\n * @param selector [Optional] Selector function which can use the multicasted source sequence as many times as needed, without causing multiple subscriptions to the source sequence. Subscribers to the given source will receive all the notifications of the source subject to the specified replay buffer trimming policy.\n * @param bufferSize [Optional] Maximum element count of the replay buffer.\n * @param window [Optional] Maximum time length of the replay buffer.\n * @param scheduler [Optional] Scheduler where connected observers within the selector function will be invoked on.\n * @returns {Observable} An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a selector function.\n */\n observableProto.replay = function (selector, bufferSize, window, scheduler) {\n return selector && isFunction(selector) ?\n this.multicast(function () { return new ReplaySubject(bufferSize, window, scheduler); }, selector) :\n this.multicast(new ReplaySubject(bufferSize, window, scheduler));\n };\n\n /**\n * Returns an observable sequence that shares a single subscription to the underlying sequence replaying notifications subject to a maximum time length for the replay buffer.\n * This operator is a specialization of replay which creates a subscription when the number of observers goes from zero to one, then shares that subscription with all subsequent observers until the number of observers returns to zero, at which point the subscription is disposed.\n *\n * @example\n * var res = source.shareReplay(3);\n * var res = source.shareReplay(3, 500);\n * var res = source.shareReplay(3, 500, scheduler);\n *\n\n * @param bufferSize [Optional] Maximum element count of the replay buffer.\n * @param window [Optional] Maximum time length of the replay buffer.\n * @param scheduler [Optional] Scheduler where connected observers within the selector function will be invoked on.\n * @returns {Observable} An observable sequence that contains the elements of a sequence produced by multicasting the source sequence.\n */\n observableProto.shareReplay = function (bufferSize, window, scheduler) {\n return this.replay(null, bufferSize, window, scheduler).refCount();\n };\n\n var InnerSubscription = function (subject, observer) {\n this.subject = subject;\n this.observer = observer;\n };\n\n InnerSubscription.prototype.dispose = function () {\n if (!this.subject.isDisposed && this.observer !== null) {\n var idx = this.subject.observers.indexOf(this.observer);\n this.subject.observers.splice(idx, 1);\n this.observer = null;\n }\n };\n\n /**\n * Represents a value that changes over time.\n * Observers can subscribe to the subject to receive the last (or initial) value and all subsequent notifications.\n */\n var BehaviorSubject = Rx.BehaviorSubject = (function (__super__) {\n function subscribe(observer) {\n checkDisposed.call(this);\n if (!this.isStopped) {\n this.observers.push(observer);\n observer.onNext(this.value);\n return new InnerSubscription(this, observer);\n }\n if (this.hasError) {\n observer.onError(this.error);\n } else {\n observer.onCompleted();\n }\n return disposableEmpty;\n }\n\n inherits(BehaviorSubject, __super__);\n\n /**\n * Initializes a new instance of the BehaviorSubject class which creates a subject that caches its last value and starts with the specified value.\n * @param {Mixed} value Initial value sent to observers when no other value has been received by the subject yet.\n */\n function BehaviorSubject(value) {\n __super__.call(this, subscribe);\n this.value = value,\n this.observers = [],\n this.isDisposed = false,\n this.isStopped = false,\n this.hasError = false;\n }\n\n addProperties(BehaviorSubject.prototype, Observer, {\n /**\n * Indicates whether the subject has observers subscribed to it.\n * @returns {Boolean} Indicates whether the subject has observers subscribed to it.\n */\n hasObservers: function () { return this.observers.length > 0; },\n /**\n * Notifies all subscribed observers about the end of the sequence.\n */\n onCompleted: function () {\n checkDisposed.call(this);\n if (this.isStopped) { return; }\n this.isStopped = true;\n for (var i = 0, os = this.observers.slice(0), len = os.length; i < len; i++) {\n os[i].onCompleted();\n }\n\n this.observers.length = 0;\n },\n /**\n * Notifies all subscribed observers about the exception.\n * @param {Mixed} error The exception to send to all observers.\n */\n onError: function (error) {\n checkDisposed.call(this);\n if (this.isStopped) { return; }\n this.isStopped = true;\n this.hasError = true;\n this.error = error;\n\n for (var i = 0, os = this.observers.slice(0), len = os.length; i < len; i++) {\n os[i].onError(error);\n }\n\n this.observers.length = 0;\n },\n /**\n * Notifies all subscribed observers about the arrival of the specified element in the sequence.\n * @param {Mixed} value The value to send to all observers.\n */\n onNext: function (value) {\n checkDisposed.call(this);\n if (this.isStopped) { return; }\n this.value = value;\n for (var i = 0, os = this.observers.slice(0), len = os.length; i < len; i++) {\n os[i].onNext(value);\n }\n },\n /**\n * Unsubscribe all observers and release resources.\n */\n dispose: function () {\n this.isDisposed = true;\n this.observers = null;\n this.value = null;\n this.exception = null;\n }\n });\n\n return BehaviorSubject;\n }(Observable));\n\n /**\n * Represents an object that is both an observable sequence as well as an observer.\n * Each notification is broadcasted to all subscribed and future observers, subject to buffer trimming policies.\n */\n var ReplaySubject = Rx.ReplaySubject = (function (__super__) {\n\n function createRemovableDisposable(subject, observer) {\n return disposableCreate(function () {\n observer.dispose();\n !subject.isDisposed && subject.observers.splice(subject.observers.indexOf(observer), 1);\n });\n }\n\n function subscribe(observer) {\n var so = new ScheduledObserver(this.scheduler, observer),\n subscription = createRemovableDisposable(this, so);\n checkDisposed.call(this);\n this._trim(this.scheduler.now());\n this.observers.push(so);\n\n for (var i = 0, len = this.q.length; i < len; i++) {\n so.onNext(this.q[i].value);\n }\n\n if (this.hasError) {\n so.onError(this.error);\n } else if (this.isStopped) {\n so.onCompleted();\n }\n\n so.ensureActive();\n return subscription;\n }\n\n inherits(ReplaySubject, __super__);\n\n /**\n * Initializes a new instance of the ReplaySubject class with the specified buffer size, window size and scheduler.\n * @param {Number} [bufferSize] Maximum element count of the replay buffer.\n * @param {Number} [windowSize] Maximum time length of the replay buffer.\n * @param {Scheduler} [scheduler] Scheduler the observers are invoked on.\n */\n function ReplaySubject(bufferSize, windowSize, scheduler) {\n this.bufferSize = bufferSize == null ? Number.MAX_VALUE : bufferSize;\n this.windowSize = windowSize == null ? Number.MAX_VALUE : windowSize;\n this.scheduler = scheduler || currentThreadScheduler;\n this.q = [];\n this.observers = [];\n this.isStopped = false;\n this.isDisposed = false;\n this.hasError = false;\n this.error = null;\n __super__.call(this, subscribe);\n }\n\n addProperties(ReplaySubject.prototype, Observer.prototype, {\n /**\n * Indicates whether the subject has observers subscribed to it.\n * @returns {Boolean} Indicates whether the subject has observers subscribed to it.\n */\n hasObservers: function () {\n return this.observers.length > 0;\n },\n _trim: function (now) {\n while (this.q.length > this.bufferSize) {\n this.q.shift();\n }\n while (this.q.length > 0 && (now - this.q[0].interval) > this.windowSize) {\n this.q.shift();\n }\n },\n /**\n * Notifies all subscribed observers about the arrival of the specified element in the sequence.\n * @param {Mixed} value The value to send to all observers.\n */\n onNext: function (value) {\n checkDisposed.call(this);\n if (this.isStopped) { return; }\n var now = this.scheduler.now();\n this.q.push({ interval: now, value: value });\n this._trim(now);\n\n var o = this.observers.slice(0);\n for (var i = 0, len = o.length; i < len; i++) {\n var observer = o[i];\n observer.onNext(value);\n observer.ensureActive();\n }\n },\n /**\n * Notifies all subscribed observers about the exception.\n * @param {Mixed} error The exception to send to all observers.\n */\n onError: function (error) {\n checkDisposed.call(this);\n if (this.isStopped) { return; }\n this.isStopped = true;\n this.error = error;\n this.hasError = true;\n var now = this.scheduler.now();\n this._trim(now);\n var o = this.observers.slice(0);\n for (var i = 0, len = o.length; i < len; i++) {\n var observer = o[i];\n observer.onError(error);\n observer.ensureActive();\n }\n this.observers = [];\n },\n /**\n * Notifies all subscribed observers about the end of the sequence.\n */\n onCompleted: function () {\n checkDisposed.call(this);\n if (this.isStopped) { return; }\n this.isStopped = true;\n var now = this.scheduler.now();\n this._trim(now);\n var o = this.observers.slice(0);\n for (var i = 0, len = o.length; i < len; i++) {\n var observer = o[i];\n observer.onCompleted();\n observer.ensureActive();\n }\n this.observers = [];\n },\n /**\n * Unsubscribe all observers and release resources.\n */\n dispose: function () {\n this.isDisposed = true;\n this.observers = null;\n }\n });\n\n return ReplaySubject;\n }(Observable));\n\n var ConnectableObservable = Rx.ConnectableObservable = (function (__super__) {\n inherits(ConnectableObservable, __super__);\n\n function ConnectableObservable(source, subject) {\n var hasSubscription = false,\n subscription,\n sourceObservable = source.asObservable();\n\n this.connect = function () {\n if (!hasSubscription) {\n hasSubscription = true;\n subscription = new CompositeDisposable(sourceObservable.subscribe(subject), disposableCreate(function () {\n hasSubscription = false;\n }));\n }\n return subscription;\n };\n\n __super__.call(this, function (o) { return subject.subscribe(o); });\n }\n\n ConnectableObservable.prototype.refCount = function () {\n var connectableSubscription, count = 0, source = this;\n return new AnonymousObservable(function (observer) {\n var shouldConnect = ++count === 1,\n subscription = source.subscribe(observer);\n shouldConnect && (connectableSubscription = source.connect());\n return function () {\n subscription.dispose();\n --count === 0 && connectableSubscription.dispose();\n };\n });\n };\n\n return ConnectableObservable;\n }(Observable));\n\n var Dictionary = (function () {\n\n var primes = [1, 3, 7, 13, 31, 61, 127, 251, 509, 1021, 2039, 4093, 8191, 16381, 32749, 65521, 131071, 262139, 524287, 1048573, 2097143, 4194301, 8388593, 16777213, 33554393, 67108859, 134217689, 268435399, 536870909, 1073741789, 2147483647],\n noSuchkey = \"no such key\",\n duplicatekey = \"duplicate key\";\n\n function isPrime(candidate) {\n if ((candidate & 1) === 0) { return candidate === 2; }\n var num1 = Math.sqrt(candidate),\n num2 = 3;\n while (num2 <= num1) {\n if (candidate % num2 === 0) { return false; }\n num2 += 2;\n }\n return true;\n }\n\n function getPrime(min) {\n var index, num, candidate;\n for (index = 0; index < primes.length; ++index) {\n num = primes[index];\n if (num >= min) { return num; }\n }\n candidate = min | 1;\n while (candidate < primes[primes.length - 1]) {\n if (isPrime(candidate)) { return candidate; }\n candidate += 2;\n }\n return min;\n }\n\n function stringHashFn(str) {\n var hash = 757602046;\n if (!str.length) { return hash; }\n for (var i = 0, len = str.length; i < len; i++) {\n var character = str.charCodeAt(i);\n hash = ((hash << 5) - hash) + character;\n hash = hash & hash;\n }\n return hash;\n }\n\n function numberHashFn(key) {\n var c2 = 0x27d4eb2d;\n key = (key ^ 61) ^ (key >>> 16);\n key = key + (key << 3);\n key = key ^ (key >>> 4);\n key = key * c2;\n key = key ^ (key >>> 15);\n return key;\n }\n\n var getHashCode = (function () {\n var uniqueIdCounter = 0;\n\n return function (obj) {\n if (obj == null) { throw new Error(noSuchkey); }\n\n // Check for built-ins before tacking on our own for any object\n if (typeof obj === 'string') { return stringHashFn(obj); }\n if (typeof obj === 'number') { return numberHashFn(obj); }\n if (typeof obj === 'boolean') { return obj === true ? 1 : 0; }\n if (obj instanceof Date) { return numberHashFn(obj.valueOf()); }\n if (obj instanceof RegExp) { return stringHashFn(obj.toString()); }\n if (typeof obj.valueOf === 'function') {\n // Hack check for valueOf\n var valueOf = obj.valueOf();\n if (typeof valueOf === 'number') { return numberHashFn(valueOf); }\n if (typeof obj === 'string') { return stringHashFn(valueOf); }\n }\n if (obj.hashCode) { return obj.hashCode(); }\n\n var id = 17 * uniqueIdCounter++;\n obj.hashCode = function () { return id; };\n return id;\n };\n }());\n\n function newEntry() {\n return { key: null, value: null, next: 0, hashCode: 0 };\n }\n\n function Dictionary(capacity, comparer) {\n if (capacity < 0) { throw new Error('out of range'); }\n if (capacity > 0) { this._initialize(capacity); }\n\n this.comparer = comparer || defaultComparer;\n this.freeCount = 0;\n this.size = 0;\n this.freeList = -1;\n }\n\n var dictionaryProto = Dictionary.prototype;\n\n dictionaryProto._initialize = function (capacity) {\n var prime = getPrime(capacity), i;\n this.buckets = new Array(prime);\n this.entries = new Array(prime);\n for (i = 0; i < prime; i++) {\n this.buckets[i] = -1;\n this.entries[i] = newEntry();\n }\n this.freeList = -1;\n };\n\n dictionaryProto.add = function (key, value) {\n this._insert(key, value, true);\n };\n\n dictionaryProto._insert = function (key, value, add) {\n if (!this.buckets) { this._initialize(0); }\n var index3,\n num = getHashCode(key) & 2147483647,\n index1 = num % this.buckets.length;\n for (var index2 = this.buckets[index1]; index2 >= 0; index2 = this.entries[index2].next) {\n if (this.entries[index2].hashCode === num && this.comparer(this.entries[index2].key, key)) {\n if (add) { throw new Error(duplicatekey); }\n this.entries[index2].value = value;\n return;\n }\n }\n if (this.freeCount > 0) {\n index3 = this.freeList;\n this.freeList = this.entries[index3].next;\n --this.freeCount;\n } else {\n if (this.size === this.entries.length) {\n this._resize();\n index1 = num % this.buckets.length;\n }\n index3 = this.size;\n ++this.size;\n }\n this.entries[index3].hashCode = num;\n this.entries[index3].next = this.buckets[index1];\n this.entries[index3].key = key;\n this.entries[index3].value = value;\n this.buckets[index1] = index3;\n };\n\n dictionaryProto._resize = function () {\n var prime = getPrime(this.size * 2),\n numArray = new Array(prime);\n for (index = 0; index < numArray.length; ++index) { numArray[index] = -1; }\n var entryArray = new Array(prime);\n for (index = 0; index < this.size; ++index) { entryArray[index] = this.entries[index]; }\n for (var index = this.size; index < prime; ++index) { entryArray[index] = newEntry(); }\n for (var index1 = 0; index1 < this.size; ++index1) {\n var index2 = entryArray[index1].hashCode % prime;\n entryArray[index1].next = numArray[index2];\n numArray[index2] = index1;\n }\n this.buckets = numArray;\n this.entries = entryArray;\n };\n\n dictionaryProto.remove = function (key) {\n if (this.buckets) {\n var num = getHashCode(key) & 2147483647,\n index1 = num % this.buckets.length,\n index2 = -1;\n for (var index3 = this.buckets[index1]; index3 >= 0; index3 = this.entries[index3].next) {\n if (this.entries[index3].hashCode === num && this.comparer(this.entries[index3].key, key)) {\n if (index2 < 0) {\n this.buckets[index1] = this.entries[index3].next;\n } else {\n this.entries[index2].next = this.entries[index3].next;\n }\n this.entries[index3].hashCode = -1;\n this.entries[index3].next = this.freeList;\n this.entries[index3].key = null;\n this.entries[index3].value = null;\n this.freeList = index3;\n ++this.freeCount;\n return true;\n } else {\n index2 = index3;\n }\n }\n }\n return false;\n };\n\n dictionaryProto.clear = function () {\n var index, len;\n if (this.size <= 0) { return; }\n for (index = 0, len = this.buckets.length; index < len; ++index) {\n this.buckets[index] = -1;\n }\n for (index = 0; index < this.size; ++index) {\n this.entries[index] = newEntry();\n }\n this.freeList = -1;\n this.size = 0;\n };\n\n dictionaryProto._findEntry = function (key) {\n if (this.buckets) {\n var num = getHashCode(key) & 2147483647;\n for (var index = this.buckets[num % this.buckets.length]; index >= 0; index = this.entries[index].next) {\n if (this.entries[index].hashCode === num && this.comparer(this.entries[index].key, key)) {\n return index;\n }\n }\n }\n return -1;\n };\n\n dictionaryProto.count = function () {\n return this.size - this.freeCount;\n };\n\n dictionaryProto.tryGetValue = function (key) {\n var entry = this._findEntry(key);\n return entry >= 0 ?\n this.entries[entry].value :\n undefined;\n };\n\n dictionaryProto.getValues = function () {\n var index = 0, results = [];\n if (this.entries) {\n for (var index1 = 0; index1 < this.size; index1++) {\n if (this.entries[index1].hashCode >= 0) {\n results[index++] = this.entries[index1].value;\n }\n }\n }\n return results;\n };\n\n dictionaryProto.get = function (key) {\n var entry = this._findEntry(key);\n if (entry >= 0) { return this.entries[entry].value; }\n throw new Error(noSuchkey);\n };\n\n dictionaryProto.set = function (key, value) {\n this._insert(key, value, false);\n };\n\n dictionaryProto.containskey = function (key) {\n return this._findEntry(key) >= 0;\n };\n\n return Dictionary;\n }());\n\n /**\n * Correlates the elements of two sequences based on overlapping durations.\n *\n * @param {Observable} right The right observable sequence to join elements for.\n * @param {Function} leftDurationSelector A function to select the duration (expressed as an observable sequence) of each element of the left observable sequence, used to determine overlap.\n * @param {Function} rightDurationSelector A function to select the duration (expressed as an observable sequence) of each element of the right observable sequence, used to determine overlap.\n * @param {Function} resultSelector A function invoked to compute a result element for any two overlapping elements of the left and right observable sequences. The parameters passed to the function correspond with the elements from the left and right source sequences for which overlap occurs.\n * @returns {Observable} An observable sequence that contains result elements computed from source elements that have an overlapping duration.\n */\n observableProto.join = function (right, leftDurationSelector, rightDurationSelector, resultSelector) {\n var left = this;\n return new AnonymousObservable(function (observer) {\n var group = new CompositeDisposable();\n var leftDone = false, rightDone = false;\n var leftId = 0, rightId = 0;\n var leftMap = new Dictionary(), rightMap = new Dictionary();\n\n group.add(left.subscribe(\n function (value) {\n var id = leftId++;\n var md = new SingleAssignmentDisposable();\n\n leftMap.add(id, value);\n group.add(md);\n\n var expire = function () {\n leftMap.remove(id) && leftMap.count() === 0 && leftDone && observer.onCompleted();\n group.remove(md);\n };\n\n var duration;\n try {\n duration = leftDurationSelector(value);\n } catch (e) {\n observer.onError(e);\n return;\n }\n\n md.setDisposable(duration.take(1).subscribe(noop, observer.onError.bind(observer), expire));\n\n rightMap.getValues().forEach(function (v) {\n var result;\n try {\n result = resultSelector(value, v);\n } catch (exn) {\n observer.onError(exn);\n return;\n }\n\n observer.onNext(result);\n });\n },\n observer.onError.bind(observer),\n function () {\n leftDone = true;\n (rightDone || leftMap.count() === 0) && observer.onCompleted();\n })\n );\n\n group.add(right.subscribe(\n function (value) {\n var id = rightId++;\n var md = new SingleAssignmentDisposable();\n\n rightMap.add(id, value);\n group.add(md);\n\n var expire = function () {\n rightMap.remove(id) && rightMap.count() === 0 && rightDone && observer.onCompleted();\n group.remove(md);\n };\n\n var duration;\n try {\n duration = rightDurationSelector(value);\n } catch (e) {\n observer.onError(e);\n return;\n }\n\n md.setDisposable(duration.take(1).subscribe(noop, observer.onError.bind(observer), expire));\n\n leftMap.getValues().forEach(function (v) {\n var result;\n try {\n result = resultSelector(v, value);\n } catch (exn) {\n observer.onError(exn);\n return;\n }\n\n observer.onNext(result);\n });\n },\n observer.onError.bind(observer),\n function () {\n rightDone = true;\n (leftDone || rightMap.count() === 0) && observer.onCompleted();\n })\n );\n return group;\n }, left);\n };\n\n /**\n * Correlates the elements of two sequences based on overlapping durations, and groups the results.\n *\n * @param {Observable} right The right observable sequence to join elements for.\n * @param {Function} leftDurationSelector A function to select the duration (expressed as an observable sequence) of each element of the left observable sequence, used to determine overlap.\n * @param {Function} rightDurationSelector A function to select the duration (expressed as an observable sequence) of each element of the right observable sequence, used to determine overlap.\n * @param {Function} resultSelector A function invoked to compute a result element for any element of the left sequence with overlapping elements from the right observable sequence. The first parameter passed to the function is an element of the left sequence. The second parameter passed to the function is an observable sequence with elements from the right sequence that overlap with the left sequence's element.\n * @returns {Observable} An observable sequence that contains result elements computed from source elements that have an overlapping duration.\n */\n observableProto.groupJoin = function (right, leftDurationSelector, rightDurationSelector, resultSelector) {\n var left = this;\n return new AnonymousObservable(function (observer) {\n var group = new CompositeDisposable();\n var r = new RefCountDisposable(group);\n var leftMap = new Dictionary(), rightMap = new Dictionary();\n var leftId = 0, rightId = 0;\n\n function handleError(e) { return function (v) { v.onError(e); }; };\n\n group.add(left.subscribe(\n function (value) {\n var s = new Subject();\n var id = leftId++;\n leftMap.add(id, s);\n\n var result;\n try {\n result = resultSelector(value, addRef(s, r));\n } catch (e) {\n leftMap.getValues().forEach(handleError(e));\n observer.onError(e);\n return;\n }\n observer.onNext(result);\n\n rightMap.getValues().forEach(function (v) { s.onNext(v); });\n\n var md = new SingleAssignmentDisposable();\n group.add(md);\n\n var expire = function () {\n leftMap.remove(id) && s.onCompleted();\n group.remove(md);\n };\n\n var duration;\n try {\n duration = leftDurationSelector(value);\n } catch (e) {\n leftMap.getValues().forEach(handleError(e));\n observer.onError(e);\n return;\n }\n\n md.setDisposable(duration.take(1).subscribe(\n noop,\n function (e) {\n leftMap.getValues().forEach(handleError(e));\n observer.onError(e);\n },\n expire)\n );\n },\n function (e) {\n leftMap.getValues().forEach(handleError(e));\n observer.onError(e);\n },\n observer.onCompleted.bind(observer))\n );\n\n group.add(right.subscribe(\n function (value) {\n var id = rightId++;\n rightMap.add(id, value);\n\n var md = new SingleAssignmentDisposable();\n group.add(md);\n\n var expire = function () {\n rightMap.remove(id);\n group.remove(md);\n };\n\n var duration;\n try {\n duration = rightDurationSelector(value);\n } catch (e) {\n leftMap.getValues().forEach(handleError(e));\n observer.onError(e);\n return;\n }\n md.setDisposable(duration.take(1).subscribe(\n noop,\n function (e) {\n leftMap.getValues().forEach(handleError(e));\n observer.onError(e);\n },\n expire)\n );\n\n leftMap.getValues().forEach(function (v) { v.onNext(value); });\n },\n function (e) {\n leftMap.getValues().forEach(handleError(e));\n observer.onError(e);\n })\n );\n\n return r;\n }, left);\n };\n\n /**\n * Projects each element of an observable sequence into zero or more buffers.\n *\n * @param {Mixed} bufferOpeningsOrClosingSelector Observable sequence whose elements denote the creation of new windows, or, a function invoked to define the boundaries of the produced windows (a new window is started when the previous one is closed, resulting in non-overlapping windows).\n * @param {Function} [bufferClosingSelector] A function invoked to define the closing of each produced window. If a closing selector function is specified for the first parameter, this parameter is ignored.\n * @returns {Observable} An observable sequence of windows.\n */\n observableProto.buffer = function (bufferOpeningsOrClosingSelector, bufferClosingSelector) {\n return this.window.apply(this, arguments).selectMany(function (x) { return x.toArray(); });\n };\n\n /**\n * Projects each element of an observable sequence into zero or more windows.\n *\n * @param {Mixed} windowOpeningsOrClosingSelector Observable sequence whose elements denote the creation of new windows, or, a function invoked to define the boundaries of the produced windows (a new window is started when the previous one is closed, resulting in non-overlapping windows).\n * @param {Function} [windowClosingSelector] A function invoked to define the closing of each produced window. If a closing selector function is specified for the first parameter, this parameter is ignored.\n * @returns {Observable} An observable sequence of windows.\n */\n observableProto.window = function (windowOpeningsOrClosingSelector, windowClosingSelector) {\n if (arguments.length === 1 && typeof arguments[0] !== 'function') {\n return observableWindowWithBoundaries.call(this, windowOpeningsOrClosingSelector);\n }\n return typeof windowOpeningsOrClosingSelector === 'function' ?\n observableWindowWithClosingSelector.call(this, windowOpeningsOrClosingSelector) :\n observableWindowWithOpenings.call(this, windowOpeningsOrClosingSelector, windowClosingSelector);\n };\n\n function observableWindowWithOpenings(windowOpenings, windowClosingSelector) {\n return windowOpenings.groupJoin(this, windowClosingSelector, observableEmpty, function (_, win) {\n return win;\n });\n }\n\n function observableWindowWithBoundaries(windowBoundaries) {\n var source = this;\n return new AnonymousObservable(function (observer) {\n var win = new Subject(),\n d = new CompositeDisposable(),\n r = new RefCountDisposable(d);\n\n observer.onNext(addRef(win, r));\n\n d.add(source.subscribe(function (x) {\n win.onNext(x);\n }, function (err) {\n win.onError(err);\n observer.onError(err);\n }, function () {\n win.onCompleted();\n observer.onCompleted();\n }));\n\n isPromise(windowBoundaries) && (windowBoundaries = observableFromPromise(windowBoundaries));\n\n d.add(windowBoundaries.subscribe(function (w) {\n win.onCompleted();\n win = new Subject();\n observer.onNext(addRef(win, r));\n }, function (err) {\n win.onError(err);\n observer.onError(err);\n }, function () {\n win.onCompleted();\n observer.onCompleted();\n }));\n\n return r;\n }, source);\n }\n\n function observableWindowWithClosingSelector(windowClosingSelector) {\n var source = this;\n return new AnonymousObservable(function (observer) {\n var m = new SerialDisposable(),\n d = new CompositeDisposable(m),\n r = new RefCountDisposable(d),\n win = new Subject();\n observer.onNext(addRef(win, r));\n d.add(source.subscribe(function (x) {\n win.onNext(x);\n }, function (err) {\n win.onError(err);\n observer.onError(err);\n }, function () {\n win.onCompleted();\n observer.onCompleted();\n }));\n\n function createWindowClose () {\n var windowClose;\n try {\n windowClose = windowClosingSelector();\n } catch (e) {\n observer.onError(e);\n return;\n }\n\n isPromise(windowClose) && (windowClose = observableFromPromise(windowClose));\n\n var m1 = new SingleAssignmentDisposable();\n m.setDisposable(m1);\n m1.setDisposable(windowClose.take(1).subscribe(noop, function (err) {\n win.onError(err);\n observer.onError(err);\n }, function () {\n win.onCompleted();\n win = new Subject();\n observer.onNext(addRef(win, r));\n createWindowClose();\n }));\n }\n\n createWindowClose();\n return r;\n }, source);\n }\n\n /**\n * Returns a new observable that triggers on the second and subsequent triggerings of the input observable.\n * The Nth triggering of the input observable passes the arguments from the N-1th and Nth triggering as a pair.\n * The argument passed to the N-1th triggering is held in hidden internal state until the Nth triggering occurs.\n * @returns {Observable} An observable that triggers on successive pairs of observations from the input observable as an array.\n */\n observableProto.pairwise = function () {\n var source = this;\n return new AnonymousObservable(function (observer) {\n var previous, hasPrevious = false;\n return source.subscribe(\n function (x) {\n if (hasPrevious) {\n observer.onNext([previous, x]);\n } else {\n hasPrevious = true;\n }\n previous = x;\n },\n observer.onError.bind(observer),\n observer.onCompleted.bind(observer));\n }, source);\n };\n\n /**\n * Returns two observables which partition the observations of the source by the given function.\n * The first will trigger observations for those values for which the predicate returns true.\n * The second will trigger observations for those values where the predicate returns false.\n * The predicate is executed once for each subscribed observer.\n * Both also propagate all error observations arising from the source and each completes\n * when the source completes.\n * @param {Function} predicate\n * The function to determine which output Observable will trigger a particular observation.\n * @returns {Array}\n * An array of observables. The first triggers when the predicate returns true,\n * and the second triggers when the predicate returns false.\n */\n observableProto.partition = function(predicate, thisArg) {\n return [\n this.filter(predicate, thisArg),\n this.filter(function (x, i, o) { return !predicate.call(thisArg, x, i, o); })\n ];\n };\n\n function enumerableWhile(condition, source) {\n return new Enumerable(function () {\n return new Enumerator(function () {\n return condition() ?\n { done: false, value: source } :\n { done: true, value: undefined };\n });\n });\n }\n\n /**\n * Returns an observable sequence that is the result of invoking the selector on the source sequence, without sharing subscriptions.\n * This operator allows for a fluent style of writing queries that use the same sequence multiple times.\n *\n * @param {Function} selector Selector function which can use the source sequence as many times as needed, without sharing subscriptions to the source sequence.\n * @returns {Observable} An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a selector function.\n */\n observableProto.letBind = observableProto['let'] = function (func) {\n return func(this);\n };\n\n /**\n * Determines whether an observable collection contains values. There is an alias for this method called 'ifThen' for browsers <IE9\n *\n * @example\n * 1 - res = Rx.Observable.if(condition, obs1);\n * 2 - res = Rx.Observable.if(condition, obs1, obs2);\n * 3 - res = Rx.Observable.if(condition, obs1, scheduler);\n * @param {Function} condition The condition which determines if the thenSource or elseSource will be run.\n * @param {Observable} thenSource The observable sequence or Promise that will be run if the condition function returns true.\n * @param {Observable} [elseSource] The observable sequence or Promise that will be run if the condition function returns false. If this is not provided, it defaults to Rx.Observabe.Empty with the specified scheduler.\n * @returns {Observable} An observable sequence which is either the thenSource or elseSource.\n */\n Observable['if'] = Observable.ifThen = function (condition, thenSource, elseSourceOrScheduler) {\n return observableDefer(function () {\n elseSourceOrScheduler || (elseSourceOrScheduler = observableEmpty());\n\n isPromise(thenSource) && (thenSource = observableFromPromise(thenSource));\n isPromise(elseSourceOrScheduler) && (elseSourceOrScheduler = observableFromPromise(elseSourceOrScheduler));\n\n // Assume a scheduler for empty only\n typeof elseSourceOrScheduler.now === 'function' && (elseSourceOrScheduler = observableEmpty(elseSourceOrScheduler));\n return condition() ? thenSource : elseSourceOrScheduler;\n });\n };\n\n /**\n * Concatenates the observable sequences obtained by running the specified result selector for each element in source.\n * There is an alias for this method called 'forIn' for browsers <IE9\n * @param {Array} sources An array of values to turn into an observable sequence.\n * @param {Function} resultSelector A function to apply to each item in the sources array to turn it into an observable sequence.\n * @returns {Observable} An observable sequence from the concatenated observable sequences.\n */\n Observable['for'] = Observable.forIn = function (sources, resultSelector, thisArg) {\n return enumerableOf(sources, resultSelector, thisArg).concat();\n };\n\n /**\n * Repeats source as long as condition holds emulating a while loop.\n * There is an alias for this method called 'whileDo' for browsers <IE9\n *\n * @param {Function} condition The condition which determines if the source will be repeated.\n * @param {Observable} source The observable sequence that will be run if the condition function returns true.\n * @returns {Observable} An observable sequence which is repeated as long as the condition holds.\n */\n var observableWhileDo = Observable['while'] = Observable.whileDo = function (condition, source) {\n isPromise(source) && (source = observableFromPromise(source));\n return enumerableWhile(condition, source).concat();\n };\n\n /**\n * Repeats source as long as condition holds emulating a do while loop.\n *\n * @param {Function} condition The condition which determines if the source will be repeated.\n * @param {Observable} source The observable sequence that will be run if the condition function returns true.\n * @returns {Observable} An observable sequence which is repeated as long as the condition holds.\n */\n observableProto.doWhile = function (condition) {\n return observableConcat([this, observableWhileDo(condition, this)]);\n };\n\n /**\n * Uses selector to determine which source in sources to use.\n * There is an alias 'switchCase' for browsers <IE9.\n *\n * @example\n * 1 - res = Rx.Observable.case(selector, { '1': obs1, '2': obs2 });\n * 1 - res = Rx.Observable.case(selector, { '1': obs1, '2': obs2 }, obs0);\n * 1 - res = Rx.Observable.case(selector, { '1': obs1, '2': obs2 }, scheduler);\n *\n * @param {Function} selector The function which extracts the value for to test in a case statement.\n * @param {Array} sources A object which has keys which correspond to the case statement labels.\n * @param {Observable} [elseSource] The observable sequence or Promise that will be run if the sources are not matched. If this is not provided, it defaults to Rx.Observabe.empty with the specified scheduler.\n *\n * @returns {Observable} An observable sequence which is determined by a case statement.\n */\n Observable['case'] = Observable.switchCase = function (selector, sources, defaultSourceOrScheduler) {\n return observableDefer(function () {\n isPromise(defaultSourceOrScheduler) && (defaultSourceOrScheduler = observableFromPromise(defaultSourceOrScheduler));\n defaultSourceOrScheduler || (defaultSourceOrScheduler = observableEmpty());\n\n typeof defaultSourceOrScheduler.now === 'function' && (defaultSourceOrScheduler = observableEmpty(defaultSourceOrScheduler));\n\n var result = sources[selector()];\n isPromise(result) && (result = observableFromPromise(result));\n\n return result || defaultSourceOrScheduler;\n });\n };\n\n /**\n * Expands an observable sequence by recursively invoking selector.\n *\n * @param {Function} selector Selector function to invoke for each produced element, resulting in another sequence to which the selector will be invoked recursively again.\n * @param {Scheduler} [scheduler] Scheduler on which to perform the expansion. If not provided, this defaults to the current thread scheduler.\n * @returns {Observable} An observable sequence containing all the elements produced by the recursive expansion.\n */\n observableProto.expand = function (selector, scheduler) {\n isScheduler(scheduler) || (scheduler = immediateScheduler);\n var source = this;\n return new AnonymousObservable(function (observer) {\n var q = [],\n m = new SerialDisposable(),\n d = new CompositeDisposable(m),\n activeCount = 0,\n isAcquired = false;\n\n var ensureActive = function () {\n var isOwner = false;\n if (q.length > 0) {\n isOwner = !isAcquired;\n isAcquired = true;\n }\n if (isOwner) {\n m.setDisposable(scheduler.scheduleRecursive(function (self) {\n var work;\n if (q.length > 0) {\n work = q.shift();\n } else {\n isAcquired = false;\n return;\n }\n var m1 = new SingleAssignmentDisposable();\n d.add(m1);\n m1.setDisposable(work.subscribe(function (x) {\n observer.onNext(x);\n var result = null;\n try {\n result = selector(x);\n } catch (e) {\n observer.onError(e);\n }\n q.push(result);\n activeCount++;\n ensureActive();\n }, observer.onError.bind(observer), function () {\n d.remove(m1);\n activeCount--;\n if (activeCount === 0) {\n observer.onCompleted();\n }\n }));\n self();\n }));\n }\n };\n\n q.push(source);\n activeCount++;\n ensureActive();\n return d;\n }, this);\n };\n\n /**\n * Runs all observable sequences in parallel and collect their last elements.\n *\n * @example\n * 1 - res = Rx.Observable.forkJoin([obs1, obs2]);\n * 1 - res = Rx.Observable.forkJoin(obs1, obs2, ...);\n * @returns {Observable} An observable sequence with an array collecting the last elements of all the input sequences.\n */\n Observable.forkJoin = function () {\n var allSources = argsOrArray(arguments, 0);\n return new AnonymousObservable(function (subscriber) {\n var count = allSources.length;\n if (count === 0) {\n subscriber.onCompleted();\n return disposableEmpty;\n }\n var group = new CompositeDisposable(),\n finished = false,\n hasResults = new Array(count),\n hasCompleted = new Array(count),\n results = new Array(count);\n\n for (var idx = 0; idx < count; idx++) {\n (function (i) {\n var source = allSources[i];\n isPromise(source) && (source = observableFromPromise(source));\n group.add(\n source.subscribe(\n function (value) {\n if (!finished) {\n hasResults[i] = true;\n results[i] = value;\n }\n },\n function (e) {\n finished = true;\n subscriber.onError(e);\n group.dispose();\n },\n function () {\n if (!finished) {\n if (!hasResults[i]) {\n subscriber.onCompleted();\n return;\n }\n hasCompleted[i] = true;\n for (var ix = 0; ix < count; ix++) {\n if (!hasCompleted[ix]) { return; }\n }\n finished = true;\n subscriber.onNext(results);\n subscriber.onCompleted();\n }\n }));\n })(idx);\n }\n\n return group;\n });\n };\n\n /**\n * Runs two observable sequences in parallel and combines their last elemenets.\n *\n * @param {Observable} second Second observable sequence.\n * @param {Function} resultSelector Result selector function to invoke with the last elements of both sequences.\n * @returns {Observable} An observable sequence with the result of calling the selector function with the last elements of both input sequences.\n */\n observableProto.forkJoin = function (second, resultSelector) {\n var first = this;\n\n return new AnonymousObservable(function (observer) {\n var leftStopped = false, rightStopped = false,\n hasLeft = false, hasRight = false,\n lastLeft, lastRight,\n leftSubscription = new SingleAssignmentDisposable(), rightSubscription = new SingleAssignmentDisposable();\n\n isPromise(second) && (second = observableFromPromise(second));\n\n leftSubscription.setDisposable(\n first.subscribe(function (left) {\n hasLeft = true;\n lastLeft = left;\n }, function (err) {\n rightSubscription.dispose();\n observer.onError(err);\n }, function () {\n leftStopped = true;\n if (rightStopped) {\n if (!hasLeft) {\n observer.onCompleted();\n } else if (!hasRight) {\n observer.onCompleted();\n } else {\n var result;\n try {\n result = resultSelector(lastLeft, lastRight);\n } catch (e) {\n observer.onError(e);\n return;\n }\n observer.onNext(result);\n observer.onCompleted();\n }\n }\n })\n );\n\n rightSubscription.setDisposable(\n second.subscribe(function (right) {\n hasRight = true;\n lastRight = right;\n }, function (err) {\n leftSubscription.dispose();\n observer.onError(err);\n }, function () {\n rightStopped = true;\n if (leftStopped) {\n if (!hasLeft) {\n observer.onCompleted();\n } else if (!hasRight) {\n observer.onCompleted();\n } else {\n var result;\n try {\n result = resultSelector(lastLeft, lastRight);\n } catch (e) {\n observer.onError(e);\n return;\n }\n observer.onNext(result);\n observer.onCompleted();\n }\n }\n })\n );\n\n return new CompositeDisposable(leftSubscription, rightSubscription);\n }, first);\n };\n\n /**\n * Comonadic bind operator.\n * @param {Function} selector A transform function to apply to each element.\n * @param {Object} scheduler Scheduler used to execute the operation. If not specified, defaults to the ImmediateScheduler.\n * @returns {Observable} An observable sequence which results from the comonadic bind operation.\n */\n observableProto.manySelect = function (selector, scheduler) {\n isScheduler(scheduler) || (scheduler = immediateScheduler);\n var source = this;\n return observableDefer(function () {\n var chain;\n\n return source\n .map(function (x) {\n var curr = new ChainObservable(x);\n\n chain && chain.onNext(x);\n chain = curr;\n\n return curr;\n })\n .tap(\n noop,\n function (e) { chain && chain.onError(e); },\n function () { chain && chain.onCompleted(); }\n )\n .observeOn(scheduler)\n .map(selector);\n }, source);\n };\n\n var ChainObservable = (function (__super__) {\n\n function subscribe (observer) {\n var self = this, g = new CompositeDisposable();\n g.add(currentThreadScheduler.schedule(function () {\n observer.onNext(self.head);\n g.add(self.tail.mergeAll().subscribe(observer));\n }));\n\n return g;\n }\n\n inherits(ChainObservable, __super__);\n\n function ChainObservable(head) {\n __super__.call(this, subscribe);\n this.head = head;\n this.tail = new AsyncSubject();\n }\n\n addProperties(ChainObservable.prototype, Observer, {\n onCompleted: function () {\n this.onNext(Observable.empty());\n },\n onError: function (e) {\n this.onNext(Observable.throwException(e));\n },\n onNext: function (v) {\n this.tail.onNext(v);\n this.tail.onCompleted();\n }\n });\n\n return ChainObservable;\n\n }(Observable));\n\n /** @private */\n var Map = root.Map || (function () {\n\n function Map() {\n this._keys = [];\n this._values = [];\n }\n\n Map.prototype.get = function (key) {\n var i = this._keys.indexOf(key);\n return i !== -1 ? this._values[i] : undefined;\n };\n\n Map.prototype.set = function (key, value) {\n var i = this._keys.indexOf(key);\n i !== -1 && (this._values[i] = value);\n this._values[this._keys.push(key) - 1] = value;\n };\n\n Map.prototype.forEach = function (callback, thisArg) {\n for (var i = 0, len = this._keys.length; i < len; i++) {\n callback.call(thisArg, this._values[i], this._keys[i]);\n }\n };\n\n return Map;\n }());\n\n /**\n * @constructor\n * Represents a join pattern over observable sequences.\n */\n function Pattern(patterns) {\n this.patterns = patterns;\n }\n\n /**\n * Creates a pattern that matches the current plan matches and when the specified observable sequences has an available value.\n * @param other Observable sequence to match in addition to the current pattern.\n * @return {Pattern} Pattern object that matches when all observable sequences in the pattern have an available value.\n */\n Pattern.prototype.and = function (other) {\n return new Pattern(this.patterns.concat(other));\n };\n\n /**\n * Matches when all observable sequences in the pattern (specified using a chain of and operators) have an available value and projects the values.\n * @param {Function} selector Selector that will be invoked with available values from the source sequences, in the same order of the sequences in the pattern.\n * @return {Plan} Plan that produces the projected values, to be fed (with other plans) to the when operator.\n */\n Pattern.prototype.thenDo = function (selector) {\n return new Plan(this, selector);\n };\n\n function Plan(expression, selector) {\n this.expression = expression;\n this.selector = selector;\n }\n\n Plan.prototype.activate = function (externalSubscriptions, observer, deactivate) {\n var self = this;\n var joinObservers = [];\n for (var i = 0, len = this.expression.patterns.length; i < len; i++) {\n joinObservers.push(planCreateObserver(externalSubscriptions, this.expression.patterns[i], observer.onError.bind(observer)));\n }\n var activePlan = new ActivePlan(joinObservers, function () {\n var result;\n try {\n result = self.selector.apply(self, arguments);\n } catch (e) {\n observer.onError(e);\n return;\n }\n observer.onNext(result);\n }, function () {\n for (var j = 0, jlen = joinObservers.length; j < jlen; j++) {\n joinObservers[j].removeActivePlan(activePlan);\n }\n deactivate(activePlan);\n });\n for (i = 0, len = joinObservers.length; i < len; i++) {\n joinObservers[i].addActivePlan(activePlan);\n }\n return activePlan;\n };\n\n function planCreateObserver(externalSubscriptions, observable, onError) {\n var entry = externalSubscriptions.get(observable);\n if (!entry) {\n var observer = new JoinObserver(observable, onError);\n externalSubscriptions.set(observable, observer);\n return observer;\n }\n return entry;\n }\n\n function ActivePlan(joinObserverArray, onNext, onCompleted) {\n this.joinObserverArray = joinObserverArray;\n this.onNext = onNext;\n this.onCompleted = onCompleted;\n this.joinObservers = new Map();\n for (var i = 0, len = this.joinObserverArray.length; i < len; i++) {\n var joinObserver = this.joinObserverArray[i];\n this.joinObservers.set(joinObserver, joinObserver);\n }\n }\n\n ActivePlan.prototype.dequeue = function () {\n this.joinObservers.forEach(function (v) { v.queue.shift(); });\n };\n\n ActivePlan.prototype.match = function () {\n var i, len, hasValues = true;\n for (i = 0, len = this.joinObserverArray.length; i < len; i++) {\n if (this.joinObserverArray[i].queue.length === 0) {\n hasValues = false;\n break;\n }\n }\n if (hasValues) {\n var firstValues = [],\n isCompleted = false;\n for (i = 0, len = this.joinObserverArray.length; i < len; i++) {\n firstValues.push(this.joinObserverArray[i].queue[0]);\n this.joinObserverArray[i].queue[0].kind === 'C' && (isCompleted = true);\n }\n if (isCompleted) {\n this.onCompleted();\n } else {\n this.dequeue();\n var values = [];\n for (i = 0, len = firstValues.length; i < firstValues.length; i++) {\n values.push(firstValues[i].value);\n }\n this.onNext.apply(this, values);\n }\n }\n };\n\n var JoinObserver = (function (__super__) {\n\n inherits(JoinObserver, __super__);\n\n function JoinObserver(source, onError) {\n __super__.call(this);\n this.source = source;\n this.onError = onError;\n this.queue = [];\n this.activePlans = [];\n this.subscription = new SingleAssignmentDisposable();\n this.isDisposed = false;\n }\n\n var JoinObserverPrototype = JoinObserver.prototype;\n\n JoinObserverPrototype.next = function (notification) {\n if (!this.isDisposed) {\n if (notification.kind === 'E') {\n this.onError(notification.exception);\n return;\n }\n this.queue.push(notification);\n var activePlans = this.activePlans.slice(0);\n for (var i = 0, len = activePlans.length; i < len; i++) {\n activePlans[i].match();\n }\n }\n };\n\n JoinObserverPrototype.error = noop;\n JoinObserverPrototype.completed = noop;\n\n JoinObserverPrototype.addActivePlan = function (activePlan) {\n this.activePlans.push(activePlan);\n };\n\n JoinObserverPrototype.subscribe = function () {\n this.subscription.setDisposable(this.source.materialize().subscribe(this));\n };\n\n JoinObserverPrototype.removeActivePlan = function (activePlan) {\n this.activePlans.splice(this.activePlans.indexOf(activePlan), 1);\n this.activePlans.length === 0 && this.dispose();\n };\n\n JoinObserverPrototype.dispose = function () {\n __super__.prototype.dispose.call(this);\n if (!this.isDisposed) {\n this.isDisposed = true;\n this.subscription.dispose();\n }\n };\n\n return JoinObserver;\n } (AbstractObserver));\n\n /**\n * Creates a pattern that matches when both observable sequences have an available value.\n *\n * @param right Observable sequence to match with the current sequence.\n * @return {Pattern} Pattern object that matches when both observable sequences have an available value.\n */\n observableProto.and = function (right) {\n return new Pattern([this, right]);\n };\n\n /**\n * Matches when the observable sequence has an available value and projects the value.\n *\n * @param selector Selector that will be invoked for values in the source sequence.\n * @returns {Plan} Plan that produces the projected values, to be fed (with other plans) to the when operator.\n */\n observableProto.thenDo = function (selector) {\n return new Pattern([this]).thenDo(selector);\n };\n\n /**\n * Joins together the results from several patterns.\n *\n * @param plans A series of plans (specified as an Array of as a series of arguments) created by use of the Then operator on patterns.\n * @returns {Observable} Observable sequence with the results form matching several patterns.\n */\n Observable.when = function () {\n var plans = argsOrArray(arguments, 0);\n return new AnonymousObservable(function (observer) {\n var activePlans = [],\n externalSubscriptions = new Map();\n var outObserver = observerCreate(\n observer.onNext.bind(observer),\n function (err) {\n externalSubscriptions.forEach(function (v) { v.onError(err); });\n observer.onError(err);\n },\n observer.onCompleted.bind(observer)\n );\n try {\n for (var i = 0, len = plans.length; i < len; i++) {\n activePlans.push(plans[i].activate(externalSubscriptions, outObserver, function (activePlan) {\n var idx = activePlans.indexOf(activePlan);\n activePlans.splice(idx, 1);\n activePlans.length === 0 && observer.onCompleted();\n }));\n }\n } catch (e) {\n observableThrow(e).subscribe(observer);\n }\n var group = new CompositeDisposable();\n externalSubscriptions.forEach(function (joinObserver) {\n joinObserver.subscribe();\n group.add(joinObserver);\n });\n\n return group;\n });\n };\n\n function observableTimerDate(dueTime, scheduler) {\n return new AnonymousObservable(function (observer) {\n return scheduler.scheduleWithAbsolute(dueTime, function () {\n observer.onNext(0);\n observer.onCompleted();\n });\n });\n }\n\n function observableTimerDateAndPeriod(dueTime, period, scheduler) {\n return new AnonymousObservable(function (observer) {\n var count = 0, d = dueTime, p = normalizeTime(period);\n return scheduler.scheduleRecursiveWithAbsolute(d, function (self) {\n if (p > 0) {\n var now = scheduler.now();\n d = d + p;\n d <= now && (d = now + p);\n }\n observer.onNext(count++);\n self(d);\n });\n });\n }\n\n function observableTimerTimeSpan(dueTime, scheduler) {\n return new AnonymousObservable(function (observer) {\n return scheduler.scheduleWithRelative(normalizeTime(dueTime), function () {\n observer.onNext(0);\n observer.onCompleted();\n });\n });\n }\n\n function observableTimerTimeSpanAndPeriod(dueTime, period, scheduler) {\n return dueTime === period ?\n new AnonymousObservable(function (observer) {\n return scheduler.schedulePeriodicWithState(0, period, function (count) {\n observer.onNext(count);\n return count + 1;\n });\n }) :\n observableDefer(function () {\n return observableTimerDateAndPeriod(scheduler.now() + dueTime, period, scheduler);\n });\n }\n\n /**\n * Returns an observable sequence that produces a value after each period.\n *\n * @example\n * 1 - res = Rx.Observable.interval(1000);\n * 2 - res = Rx.Observable.interval(1000, Rx.Scheduler.timeout);\n *\n * @param {Number} period Period for producing the values in the resulting sequence (specified as an integer denoting milliseconds).\n * @param {Scheduler} [scheduler] Scheduler to run the timer on. If not specified, Rx.Scheduler.timeout is used.\n * @returns {Observable} An observable sequence that produces a value after each period.\n */\n var observableinterval = Observable.interval = function (period, scheduler) {\n return observableTimerTimeSpanAndPeriod(period, period, isScheduler(scheduler) ? scheduler : timeoutScheduler);\n };\n\n /**\n * Returns an observable sequence that produces a value after dueTime has elapsed and then after each period.\n * @param {Number} dueTime Absolute (specified as a Date object) or relative time (specified as an integer denoting milliseconds) at which to produce the first value.\n * @param {Mixed} [periodOrScheduler] Period to produce subsequent values (specified as an integer denoting milliseconds), or the scheduler to run the timer on. If not specified, the resulting timer is not recurring.\n * @param {Scheduler} [scheduler] Scheduler to run the timer on. If not specified, the timeout scheduler is used.\n * @returns {Observable} An observable sequence that produces a value after due time has elapsed and then each period.\n */\n var observableTimer = Observable.timer = function (dueTime, periodOrScheduler, scheduler) {\n var period;\n isScheduler(scheduler) || (scheduler = timeoutScheduler);\n if (periodOrScheduler !== undefined && typeof periodOrScheduler === 'number') {\n period = periodOrScheduler;\n } else if (isScheduler(periodOrScheduler)) {\n scheduler = periodOrScheduler;\n }\n if (dueTime instanceof Date && period === undefined) {\n return observableTimerDate(dueTime.getTime(), scheduler);\n }\n if (dueTime instanceof Date && period !== undefined) {\n period = periodOrScheduler;\n return observableTimerDateAndPeriod(dueTime.getTime(), period, scheduler);\n }\n return period === undefined ?\n observableTimerTimeSpan(dueTime, scheduler) :\n observableTimerTimeSpanAndPeriod(dueTime, period, scheduler);\n };\n\n function observableDelayTimeSpan(source, dueTime, scheduler) {\n return new AnonymousObservable(function (observer) {\n var active = false,\n cancelable = new SerialDisposable(),\n exception = null,\n q = [],\n running = false,\n subscription;\n subscription = source.materialize().timestamp(scheduler).subscribe(function (notification) {\n var d, shouldRun;\n if (notification.value.kind === 'E') {\n q = [];\n q.push(notification);\n exception = notification.value.exception;\n shouldRun = !running;\n } else {\n q.push({ value: notification.value, timestamp: notification.timestamp + dueTime });\n shouldRun = !active;\n active = true;\n }\n if (shouldRun) {\n if (exception !== null) {\n observer.onError(exception);\n } else {\n d = new SingleAssignmentDisposable();\n cancelable.setDisposable(d);\n d.setDisposable(scheduler.scheduleRecursiveWithRelative(dueTime, function (self) {\n var e, recurseDueTime, result, shouldRecurse;\n if (exception !== null) {\n return;\n }\n running = true;\n do {\n result = null;\n if (q.length > 0 && q[0].timestamp - scheduler.now() <= 0) {\n result = q.shift().value;\n }\n if (result !== null) {\n result.accept(observer);\n }\n } while (result !== null);\n shouldRecurse = false;\n recurseDueTime = 0;\n if (q.length > 0) {\n shouldRecurse = true;\n recurseDueTime = Math.max(0, q[0].timestamp - scheduler.now());\n } else {\n active = false;\n }\n e = exception;\n running = false;\n if (e !== null) {\n observer.onError(e);\n } else if (shouldRecurse) {\n self(recurseDueTime);\n }\n }));\n }\n }\n });\n return new CompositeDisposable(subscription, cancelable);\n }, source);\n }\n\n function observableDelayDate(source, dueTime, scheduler) {\n return observableDefer(function () {\n return observableDelayTimeSpan(source, dueTime - scheduler.now(), scheduler);\n });\n }\n\n /**\n * Time shifts the observable sequence by dueTime. The relative time intervals between the values are preserved.\n *\n * @example\n * 1 - res = Rx.Observable.delay(new Date());\n * 2 - res = Rx.Observable.delay(new Date(), Rx.Scheduler.timeout);\n *\n * 3 - res = Rx.Observable.delay(5000);\n * 4 - res = Rx.Observable.delay(5000, 1000, Rx.Scheduler.timeout);\n * @memberOf Observable#\n * @param {Number} dueTime Absolute (specified as a Date object) or relative time (specified as an integer denoting milliseconds) by which to shift the observable sequence.\n * @param {Scheduler} [scheduler] Scheduler to run the delay timers on. If not specified, the timeout scheduler is used.\n * @returns {Observable} Time-shifted sequence.\n */\n observableProto.delay = function (dueTime, scheduler) {\n isScheduler(scheduler) || (scheduler = timeoutScheduler);\n return dueTime instanceof Date ?\n observableDelayDate(this, dueTime.getTime(), scheduler) :\n observableDelayTimeSpan(this, dueTime, scheduler);\n };\n\n /**\n * Ignores values from an observable sequence which are followed by another value before dueTime.\n * @param {Number} dueTime Duration of the debounce period for each value (specified as an integer denoting milliseconds).\n * @param {Scheduler} [scheduler] Scheduler to run the debounce timers on. If not specified, the timeout scheduler is used.\n * @returns {Observable} The debounced sequence.\n */\n observableProto.debounce = observableProto.throttleWithTimeout = function (dueTime, scheduler) {\n isScheduler(scheduler) || (scheduler = timeoutScheduler);\n var source = this;\n return new AnonymousObservable(function (observer) {\n var cancelable = new SerialDisposable(), hasvalue = false, value, id = 0;\n var subscription = source.subscribe(\n function (x) {\n hasvalue = true;\n value = x;\n id++;\n var currentId = id,\n d = new SingleAssignmentDisposable();\n cancelable.setDisposable(d);\n d.setDisposable(scheduler.scheduleWithRelative(dueTime, function () {\n hasvalue && id === currentId && observer.onNext(value);\n hasvalue = false;\n }));\n },\n function (e) {\n cancelable.dispose();\n observer.onError(e);\n hasvalue = false;\n id++;\n },\n function () {\n cancelable.dispose();\n hasvalue && observer.onNext(value);\n observer.onCompleted();\n hasvalue = false;\n id++;\n });\n return new CompositeDisposable(subscription, cancelable);\n }, this);\n };\n\n /**\n * @deprecated use #debounce or #throttleWithTimeout instead.\n */\n observableProto.throttle = function(dueTime, scheduler) {\n //deprecate('throttle', 'debounce or throttleWithTimeout');\n return this.debounce(dueTime, scheduler);\n };\n\n /**\n * Projects each element of an observable sequence into zero or more windows which are produced based on timing information.\n * @param {Number} timeSpan Length of each window (specified as an integer denoting milliseconds).\n * @param {Mixed} [timeShiftOrScheduler] Interval between creation of consecutive windows (specified as an integer denoting milliseconds), or an optional scheduler parameter. If not specified, the time shift corresponds to the timeSpan parameter, resulting in non-overlapping adjacent windows.\n * @param {Scheduler} [scheduler] Scheduler to run windowing timers on. If not specified, the timeout scheduler is used.\n * @returns {Observable} An observable sequence of windows.\n */\n observableProto.windowWithTime = function (timeSpan, timeShiftOrScheduler, scheduler) {\n var source = this, timeShift;\n timeShiftOrScheduler == null && (timeShift = timeSpan);\n isScheduler(scheduler) || (scheduler = timeoutScheduler);\n if (typeof timeShiftOrScheduler === 'number') {\n timeShift = timeShiftOrScheduler;\n } else if (isScheduler(timeShiftOrScheduler)) {\n timeShift = timeSpan;\n scheduler = timeShiftOrScheduler;\n }\n return new AnonymousObservable(function (observer) {\n var groupDisposable,\n nextShift = timeShift,\n nextSpan = timeSpan,\n q = [],\n refCountDisposable,\n timerD = new SerialDisposable(),\n totalTime = 0;\n groupDisposable = new CompositeDisposable(timerD),\n refCountDisposable = new RefCountDisposable(groupDisposable);\n\n function createTimer () {\n var m = new SingleAssignmentDisposable(),\n isSpan = false,\n isShift = false;\n timerD.setDisposable(m);\n if (nextSpan === nextShift) {\n isSpan = true;\n isShift = true;\n } else if (nextSpan < nextShift) {\n isSpan = true;\n } else {\n isShift = true;\n }\n var newTotalTime = isSpan ? nextSpan : nextShift,\n ts = newTotalTime - totalTime;\n totalTime = newTotalTime;\n if (isSpan) {\n nextSpan += timeShift;\n }\n if (isShift) {\n nextShift += timeShift;\n }\n m.setDisposable(scheduler.scheduleWithRelative(ts, function () {\n if (isShift) {\n var s = new Subject();\n q.push(s);\n observer.onNext(addRef(s, refCountDisposable));\n }\n isSpan && q.shift().onCompleted();\n createTimer();\n }));\n };\n q.push(new Subject());\n observer.onNext(addRef(q[0], refCountDisposable));\n createTimer();\n groupDisposable.add(source.subscribe(\n function (x) {\n for (var i = 0, len = q.length; i < len; i++) { q[i].onNext(x); }\n },\n function (e) {\n for (var i = 0, len = q.length; i < len; i++) { q[i].onError(e); }\n observer.onError(e);\n },\n function () {\n for (var i = 0, len = q.length; i < len; i++) { q[i].onCompleted(); }\n observer.onCompleted();\n }\n ));\n return refCountDisposable;\n }, source);\n };\n\n /**\n * Projects each element of an observable sequence into a window that is completed when either it's full or a given amount of time has elapsed.\n * @param {Number} timeSpan Maximum time length of a window.\n * @param {Number} count Maximum element count of a window.\n * @param {Scheduler} [scheduler] Scheduler to run windowing timers on. If not specified, the timeout scheduler is used.\n * @returns {Observable} An observable sequence of windows.\n */\n observableProto.windowWithTimeOrCount = function (timeSpan, count, scheduler) {\n var source = this;\n isScheduler(scheduler) || (scheduler = timeoutScheduler);\n return new AnonymousObservable(function (observer) {\n var timerD = new SerialDisposable(),\n groupDisposable = new CompositeDisposable(timerD),\n refCountDisposable = new RefCountDisposable(groupDisposable),\n n = 0,\n windowId = 0,\n s = new Subject();\n\n function createTimer(id) {\n var m = new SingleAssignmentDisposable();\n timerD.setDisposable(m);\n m.setDisposable(scheduler.scheduleWithRelative(timeSpan, function () {\n if (id !== windowId) { return; }\n n = 0;\n var newId = ++windowId;\n s.onCompleted();\n s = new Subject();\n observer.onNext(addRef(s, refCountDisposable));\n createTimer(newId);\n }));\n }\n\n observer.onNext(addRef(s, refCountDisposable));\n createTimer(0);\n\n groupDisposable.add(source.subscribe(\n function (x) {\n var newId = 0, newWindow = false;\n s.onNext(x);\n if (++n === count) {\n newWindow = true;\n n = 0;\n newId = ++windowId;\n s.onCompleted();\n s = new Subject();\n observer.onNext(addRef(s, refCountDisposable));\n }\n newWindow && createTimer(newId);\n },\n function (e) {\n s.onError(e);\n observer.onError(e);\n }, function () {\n s.onCompleted();\n observer.onCompleted();\n }\n ));\n return refCountDisposable;\n }, source);\n };\n\n /**\n * Projects each element of an observable sequence into zero or more buffers which are produced based on timing information.\n *\n * @example\n * 1 - res = xs.bufferWithTime(1000, scheduler); // non-overlapping segments of 1 second\n * 2 - res = xs.bufferWithTime(1000, 500, scheduler; // segments of 1 second with time shift 0.5 seconds\n *\n * @param {Number} timeSpan Length of each buffer (specified as an integer denoting milliseconds).\n * @param {Mixed} [timeShiftOrScheduler] Interval between creation of consecutive buffers (specified as an integer denoting milliseconds), or an optional scheduler parameter. If not specified, the time shift corresponds to the timeSpan parameter, resulting in non-overlapping adjacent buffers.\n * @param {Scheduler} [scheduler] Scheduler to run buffer timers on. If not specified, the timeout scheduler is used.\n * @returns {Observable} An observable sequence of buffers.\n */\n observableProto.bufferWithTime = function (timeSpan, timeShiftOrScheduler, scheduler) {\n return this.windowWithTime.apply(this, arguments).selectMany(function (x) { return x.toArray(); });\n };\n\n /**\n * Projects each element of an observable sequence into a buffer that is completed when either it's full or a given amount of time has elapsed.\n *\n * @example\n * 1 - res = source.bufferWithTimeOrCount(5000, 50); // 5s or 50 items in an array\n * 2 - res = source.bufferWithTimeOrCount(5000, 50, scheduler); // 5s or 50 items in an array\n *\n * @param {Number} timeSpan Maximum time length of a buffer.\n * @param {Number} count Maximum element count of a buffer.\n * @param {Scheduler} [scheduler] Scheduler to run bufferin timers on. If not specified, the timeout scheduler is used.\n * @returns {Observable} An observable sequence of buffers.\n */\n observableProto.bufferWithTimeOrCount = function (timeSpan, count, scheduler) {\n return this.windowWithTimeOrCount(timeSpan, count, scheduler).selectMany(function (x) {\n return x.toArray();\n });\n };\n\n /**\n * Records the time interval between consecutive values in an observable sequence.\n *\n * @example\n * 1 - res = source.timeInterval();\n * 2 - res = source.timeInterval(Rx.Scheduler.timeout);\n *\n * @param [scheduler] Scheduler used to compute time intervals. If not specified, the timeout scheduler is used.\n * @returns {Observable} An observable sequence with time interval information on values.\n */\n observableProto.timeInterval = function (scheduler) {\n var source = this;\n isScheduler(scheduler) || (scheduler = timeoutScheduler);\n return observableDefer(function () {\n var last = scheduler.now();\n return source.map(function (x) {\n var now = scheduler.now(), span = now - last;\n last = now;\n return { value: x, interval: span };\n });\n });\n };\n\n /**\n * Records the timestamp for each value in an observable sequence.\n *\n * @example\n * 1 - res = source.timestamp(); // produces { value: x, timestamp: ts }\n * 2 - res = source.timestamp(Rx.Scheduler.timeout);\n *\n * @param {Scheduler} [scheduler] Scheduler used to compute timestamps. If not specified, the timeout scheduler is used.\n * @returns {Observable} An observable sequence with timestamp information on values.\n */\n observableProto.timestamp = function (scheduler) {\n isScheduler(scheduler) || (scheduler = timeoutScheduler);\n return this.map(function (x) {\n return { value: x, timestamp: scheduler.now() };\n });\n };\n\n function sampleObservable(source, sampler) {\n return new AnonymousObservable(function (observer) {\n var atEnd, value, hasValue;\n\n function sampleSubscribe() {\n if (hasValue) {\n hasValue = false;\n observer.onNext(value);\n }\n atEnd && observer.onCompleted();\n }\n\n return new CompositeDisposable(\n source.subscribe(function (newValue) {\n hasValue = true;\n value = newValue;\n }, observer.onError.bind(observer), function () {\n atEnd = true;\n }),\n sampler.subscribe(sampleSubscribe, observer.onError.bind(observer), sampleSubscribe)\n );\n }, source);\n }\n\n /**\n * Samples the observable sequence at each interval.\n *\n * @example\n * 1 - res = source.sample(sampleObservable); // Sampler tick sequence\n * 2 - res = source.sample(5000); // 5 seconds\n * 2 - res = source.sample(5000, Rx.Scheduler.timeout); // 5 seconds\n *\n * @param {Mixed} intervalOrSampler Interval at which to sample (specified as an integer denoting milliseconds) or Sampler Observable.\n * @param {Scheduler} [scheduler] Scheduler to run the sampling timer on. If not specified, the timeout scheduler is used.\n * @returns {Observable} Sampled observable sequence.\n */\n observableProto.sample = observableProto.throttleLatest = function (intervalOrSampler, scheduler) {\n isScheduler(scheduler) || (scheduler = timeoutScheduler);\n return typeof intervalOrSampler === 'number' ?\n sampleObservable(this, observableinterval(intervalOrSampler, scheduler)) :\n sampleObservable(this, intervalOrSampler);\n };\n\n /**\n * Returns the source observable sequence or the other observable sequence if dueTime elapses.\n * @param {Number} dueTime Absolute (specified as a Date object) or relative time (specified as an integer denoting milliseconds) when a timeout occurs.\n * @param {Observable} [other] Sequence to return in case of a timeout. If not specified, a timeout error throwing sequence will be used.\n * @param {Scheduler} [scheduler] Scheduler to run the timeout timers on. If not specified, the timeout scheduler is used.\n * @returns {Observable} The source sequence switching to the other sequence in case of a timeout.\n */\n observableProto.timeout = function (dueTime, other, scheduler) {\n (other == null || typeof other === 'string') && (other = observableThrow(new Error(other || 'Timeout')));\n isScheduler(scheduler) || (scheduler = timeoutScheduler);\n\n var source = this, schedulerMethod = dueTime instanceof Date ?\n 'scheduleWithAbsolute' :\n 'scheduleWithRelative';\n\n return new AnonymousObservable(function (observer) {\n var id = 0,\n original = new SingleAssignmentDisposable(),\n subscription = new SerialDisposable(),\n switched = false,\n timer = new SerialDisposable();\n\n subscription.setDisposable(original);\n\n function createTimer() {\n var myId = id;\n timer.setDisposable(scheduler[schedulerMethod](dueTime, function () {\n if (id === myId) {\n isPromise(other) && (other = observableFromPromise(other));\n subscription.setDisposable(other.subscribe(observer));\n }\n }));\n }\n\n createTimer();\n\n original.setDisposable(source.subscribe(function (x) {\n if (!switched) {\n id++;\n observer.onNext(x);\n createTimer();\n }\n }, function (e) {\n if (!switched) {\n id++;\n observer.onError(e);\n }\n }, function () {\n if (!switched) {\n id++;\n observer.onCompleted();\n }\n }));\n return new CompositeDisposable(subscription, timer);\n }, source);\n };\n\n /**\n * Generates an observable sequence by iterating a state from an initial state until the condition fails.\n *\n * @example\n * res = source.generateWithAbsoluteTime(0,\n * function (x) { return return true; },\n * function (x) { return x + 1; },\n * function (x) { return x; },\n * function (x) { return new Date(); }\n * });\n *\n * @param {Mixed} initialState Initial state.\n * @param {Function} condition Condition to terminate generation (upon returning false).\n * @param {Function} iterate Iteration step function.\n * @param {Function} resultSelector Selector function for results produced in the sequence.\n * @param {Function} timeSelector Time selector function to control the speed of values being produced each iteration, returning Date values.\n * @param {Scheduler} [scheduler] Scheduler on which to run the generator loop. If not specified, the timeout scheduler is used.\n * @returns {Observable} The generated sequence.\n */\n Observable.generateWithAbsoluteTime = function (initialState, condition, iterate, resultSelector, timeSelector, scheduler) {\n isScheduler(scheduler) || (scheduler = timeoutScheduler);\n return new AnonymousObservable(function (observer) {\n var first = true,\n hasResult = false,\n result,\n state = initialState,\n time;\n return scheduler.scheduleRecursiveWithAbsolute(scheduler.now(), function (self) {\n hasResult && observer.onNext(result);\n\n try {\n if (first) {\n first = false;\n } else {\n state = iterate(state);\n }\n hasResult = condition(state);\n if (hasResult) {\n result = resultSelector(state);\n time = timeSelector(state);\n }\n } catch (e) {\n observer.onError(e);\n return;\n }\n if (hasResult) {\n self(time);\n } else {\n observer.onCompleted();\n }\n });\n });\n };\n\n /**\n * Generates an observable sequence by iterating a state from an initial state until the condition fails.\n *\n * @example\n * res = source.generateWithRelativeTime(0,\n * function (x) { return return true; },\n * function (x) { return x + 1; },\n * function (x) { return x; },\n * function (x) { return 500; }\n * );\n *\n * @param {Mixed} initialState Initial state.\n * @param {Function} condition Condition to terminate generation (upon returning false).\n * @param {Function} iterate Iteration step function.\n * @param {Function} resultSelector Selector function for results produced in the sequence.\n * @param {Function} timeSelector Time selector function to control the speed of values being produced each iteration, returning integer values denoting milliseconds.\n * @param {Scheduler} [scheduler] Scheduler on which to run the generator loop. If not specified, the timeout scheduler is used.\n * @returns {Observable} The generated sequence.\n */\n Observable.generateWithRelativeTime = function (initialState, condition, iterate, resultSelector, timeSelector, scheduler) {\n isScheduler(scheduler) || (scheduler = timeoutScheduler);\n return new AnonymousObservable(function (observer) {\n var first = true,\n hasResult = false,\n result,\n state = initialState,\n time;\n return scheduler.scheduleRecursiveWithRelative(0, function (self) {\n hasResult && observer.onNext(result);\n\n try {\n if (first) {\n first = false;\n } else {\n state = iterate(state);\n }\n hasResult = condition(state);\n if (hasResult) {\n result = resultSelector(state);\n time = timeSelector(state);\n }\n } catch (e) {\n observer.onError(e);\n return;\n }\n if (hasResult) {\n self(time);\n } else {\n observer.onCompleted();\n }\n });\n });\n };\n\n /**\n * Time shifts the observable sequence by delaying the subscription.\n *\n * @example\n * 1 - res = source.delaySubscription(5000); // 5s\n * 2 - res = source.delaySubscription(5000, Rx.Scheduler.timeout); // 5 seconds\n *\n * @param {Number} dueTime Absolute or relative time to perform the subscription at.\n * @param {Scheduler} [scheduler] Scheduler to run the subscription delay timer on. If not specified, the timeout scheduler is used.\n * @returns {Observable} Time-shifted sequence.\n */\n observableProto.delaySubscription = function (dueTime, scheduler) {\n return this.delayWithSelector(observableTimer(dueTime, isScheduler(scheduler) ? scheduler : timeoutScheduler), observableEmpty);\n };\n\n /**\n * Time shifts the observable sequence based on a subscription delay and a delay selector function for each element.\n *\n * @example\n * 1 - res = source.delayWithSelector(function (x) { return Rx.Scheduler.timer(5000); }); // with selector only\n * 1 - res = source.delayWithSelector(Rx.Observable.timer(2000), function (x) { return Rx.Observable.timer(x); }); // with delay and selector\n *\n * @param {Observable} [subscriptionDelay] Sequence indicating the delay for the subscription to the source.\n * @param {Function} delayDurationSelector Selector function to retrieve a sequence indicating the delay for each given element.\n * @returns {Observable} Time-shifted sequence.\n */\n observableProto.delayWithSelector = function (subscriptionDelay, delayDurationSelector) {\n var source = this, subDelay, selector;\n if (typeof subscriptionDelay === 'function') {\n selector = subscriptionDelay;\n } else {\n subDelay = subscriptionDelay;\n selector = delayDurationSelector;\n }\n return new AnonymousObservable(function (observer) {\n var delays = new CompositeDisposable(), atEnd = false, done = function () {\n if (atEnd && delays.length === 0) { observer.onCompleted(); }\n }, subscription = new SerialDisposable(), start = function () {\n subscription.setDisposable(source.subscribe(function (x) {\n var delay;\n try {\n delay = selector(x);\n } catch (error) {\n observer.onError(error);\n return;\n }\n var d = new SingleAssignmentDisposable();\n delays.add(d);\n d.setDisposable(delay.subscribe(function () {\n observer.onNext(x);\n delays.remove(d);\n done();\n }, observer.onError.bind(observer), function () {\n observer.onNext(x);\n delays.remove(d);\n done();\n }));\n }, observer.onError.bind(observer), function () {\n atEnd = true;\n subscription.dispose();\n done();\n }));\n };\n\n if (!subDelay) {\n start();\n } else {\n subscription.setDisposable(subDelay.subscribe(start, observer.onError.bind(observer), start));\n }\n\n return new CompositeDisposable(subscription, delays);\n }, this);\n };\n\n /**\n * Returns the source observable sequence, switching to the other observable sequence if a timeout is signaled.\n * @param {Observable} [firstTimeout] Observable sequence that represents the timeout for the first element. If not provided, this defaults to Observable.never().\n * @param {Function} [timeoutDurationSelector] Selector to retrieve an observable sequence that represents the timeout between the current element and the next element.\n * @param {Observable} [other] Sequence to return in case of a timeout. If not provided, this is set to Observable.throwException().\n * @returns {Observable} The source sequence switching to the other sequence in case of a timeout.\n */\n observableProto.timeoutWithSelector = function (firstTimeout, timeoutdurationSelector, other) {\n if (arguments.length === 1) {\n timeoutdurationSelector = firstTimeout;\n firstTimeout = observableNever();\n }\n other || (other = observableThrow(new Error('Timeout')));\n var source = this;\n return new AnonymousObservable(function (observer) {\n var subscription = new SerialDisposable(), timer = new SerialDisposable(), original = new SingleAssignmentDisposable();\n\n subscription.setDisposable(original);\n\n var id = 0, switched = false;\n\n function setTimer(timeout) {\n var myId = id;\n\n function timerWins () {\n return id === myId;\n }\n\n var d = new SingleAssignmentDisposable();\n timer.setDisposable(d);\n d.setDisposable(timeout.subscribe(function () {\n timerWins() && subscription.setDisposable(other.subscribe(observer));\n d.dispose();\n }, function (e) {\n timerWins() && observer.onError(e);\n }, function () {\n timerWins() && subscription.setDisposable(other.subscribe(observer));\n }));\n };\n\n setTimer(firstTimeout);\n\n function observerWins() {\n var res = !switched;\n if (res) { id++; }\n return res;\n }\n\n original.setDisposable(source.subscribe(function (x) {\n if (observerWins()) {\n observer.onNext(x);\n var timeout;\n try {\n timeout = timeoutdurationSelector(x);\n } catch (e) {\n observer.onError(e);\n return;\n }\n setTimer(isPromise(timeout) ? observableFromPromise(timeout) : timeout);\n }\n }, function (e) {\n observerWins() && observer.onError(e);\n }, function () {\n observerWins() && observer.onCompleted();\n }));\n return new CompositeDisposable(subscription, timer);\n }, source);\n };\n\n /**\n * Ignores values from an observable sequence which are followed by another value within a computed throttle duration.\n * @param {Function} durationSelector Selector function to retrieve a sequence indicating the throttle duration for each given element.\n * @returns {Observable} The debounced sequence.\n */\n observableProto.debounceWithSelector = function (durationSelector) {\n var source = this;\n return new AnonymousObservable(function (observer) {\n var value, hasValue = false, cancelable = new SerialDisposable(), id = 0;\n var subscription = source.subscribe(function (x) {\n var throttle;\n try {\n throttle = durationSelector(x);\n } catch (e) {\n observer.onError(e);\n return;\n }\n\n isPromise(throttle) && (throttle = observableFromPromise(throttle));\n\n hasValue = true;\n value = x;\n id++;\n var currentid = id, d = new SingleAssignmentDisposable();\n cancelable.setDisposable(d);\n d.setDisposable(throttle.subscribe(function () {\n hasValue && id === currentid && observer.onNext(value);\n hasValue = false;\n d.dispose();\n }, observer.onError.bind(observer), function () {\n hasValue && id === currentid && observer.onNext(value);\n hasValue = false;\n d.dispose();\n }));\n }, function (e) {\n cancelable.dispose();\n observer.onError(e);\n hasValue = false;\n id++;\n }, function () {\n cancelable.dispose();\n hasValue && observer.onNext(value);\n observer.onCompleted();\n hasValue = false;\n id++;\n });\n return new CompositeDisposable(subscription, cancelable);\n }, source);\n };\n\n observableProto.throttleWithSelector = function () {\n //deprecate('throttleWithSelector', 'debounceWithSelector');\n return this.debounceWithSelector.apply(this, arguments);\n };\n\n /**\n * Skips elements for the specified duration from the end of the observable source sequence, using the specified scheduler to run timers.\n *\n * 1 - res = source.skipLastWithTime(5000);\n * 2 - res = source.skipLastWithTime(5000, scheduler);\n *\n * @description\n * This operator accumulates a queue with a length enough to store elements received during the initial duration window.\n * As more elements are received, elements older than the specified duration are taken from the queue and produced on the\n * result sequence. This causes elements to be delayed with duration.\n * @param {Number} duration Duration for skipping elements from the end of the sequence.\n * @param {Scheduler} [scheduler] Scheduler to run the timer on. If not specified, defaults to Rx.Scheduler.timeout\n * @returns {Observable} An observable sequence with the elements skipped during the specified duration from the end of the source sequence.\n */\n observableProto.skipLastWithTime = function (duration, scheduler) {\n isScheduler(scheduler) || (scheduler = timeoutScheduler);\n var source = this;\n return new AnonymousObservable(function (o) {\n var q = [];\n return source.subscribe(function (x) {\n var now = scheduler.now();\n q.push({ interval: now, value: x });\n while (q.length > 0 && now - q[0].interval >= duration) {\n o.onNext(q.shift().value);\n }\n }, function (e) { o.onError(e); }, function () {\n var now = scheduler.now();\n while (q.length > 0 && now - q[0].interval >= duration) {\n o.onNext(q.shift().value);\n }\n o.onCompleted();\n });\n }, source);\n };\n\n /**\n * Returns elements within the specified duration from the end of the observable source sequence, using the specified schedulers to run timers and to drain the collected elements.\n * @description\n * This operator accumulates a queue with a length enough to store elements received during the initial duration window.\n * As more elements are received, elements older than the specified duration are taken from the queue and produced on the\n * result sequence. This causes elements to be delayed with duration.\n * @param {Number} duration Duration for taking elements from the end of the sequence.\n * @param {Scheduler} [scheduler] Scheduler to run the timer on. If not specified, defaults to Rx.Scheduler.timeout.\n * @returns {Observable} An observable sequence with the elements taken during the specified duration from the end of the source sequence.\n */\n observableProto.takeLastWithTime = function (duration, scheduler) {\n var source = this;\n isScheduler(scheduler) || (scheduler = timeoutScheduler);\n return new AnonymousObservable(function (o) {\n var q = [];\n return source.subscribe(function (x) {\n var now = scheduler.now();\n q.push({ interval: now, value: x });\n while (q.length > 0 && now - q[0].interval >= duration) {\n q.shift();\n }\n }, function (e) { o.onError(e); }, function () {\n var now = scheduler.now();\n while (q.length > 0) {\n var next = q.shift();\n if (now - next.interval <= duration) { o.onNext(next.value); }\n }\n o.onCompleted();\n });\n }, source);\n };\n\n /**\n * Returns an array with the elements within the specified duration from the end of the observable source sequence, using the specified scheduler to run timers.\n * @description\n * This operator accumulates a queue with a length enough to store elements received during the initial duration window.\n * As more elements are received, elements older than the specified duration are taken from the queue and produced on the\n * result sequence. This causes elements to be delayed with duration.\n * @param {Number} duration Duration for taking elements from the end of the sequence.\n * @param {Scheduler} scheduler Scheduler to run the timer on. If not specified, defaults to Rx.Scheduler.timeout.\n * @returns {Observable} An observable sequence containing a single array with the elements taken during the specified duration from the end of the source sequence.\n */\n observableProto.takeLastBufferWithTime = function (duration, scheduler) {\n var source = this;\n isScheduler(scheduler) || (scheduler = timeoutScheduler);\n return new AnonymousObservable(function (o) {\n var q = [];\n return source.subscribe(function (x) {\n var now = scheduler.now();\n q.push({ interval: now, value: x });\n while (q.length > 0 && now - q[0].interval >= duration) {\n q.shift();\n }\n }, function (e) { o.onError(e); }, function () {\n var now = scheduler.now(), res = [];\n while (q.length > 0) {\n var next = q.shift();\n now - next.interval <= duration && res.push(next.value);\n }\n o.onNext(res);\n o.onCompleted();\n });\n }, source);\n };\n\n /**\n * Takes elements for the specified duration from the start of the observable source sequence, using the specified scheduler to run timers.\n *\n * @example\n * 1 - res = source.takeWithTime(5000, [optional scheduler]);\n * @description\n * This operator accumulates a queue with a length enough to store elements received during the initial duration window.\n * As more elements are received, elements older than the specified duration are taken from the queue and produced on the\n * result sequence. This causes elements to be delayed with duration.\n * @param {Number} duration Duration for taking elements from the start of the sequence.\n * @param {Scheduler} scheduler Scheduler to run the timer on. If not specified, defaults to Rx.Scheduler.timeout.\n * @returns {Observable} An observable sequence with the elements taken during the specified duration from the start of the source sequence.\n */\n observableProto.takeWithTime = function (duration, scheduler) {\n var source = this;\n isScheduler(scheduler) || (scheduler = timeoutScheduler);\n return new AnonymousObservable(function (o) {\n return new CompositeDisposable(scheduler.scheduleWithRelative(duration, function () { o.onCompleted(); }), source.subscribe(o));\n }, source);\n };\n\n /**\n * Skips elements for the specified duration from the start of the observable source sequence, using the specified scheduler to run timers.\n *\n * @example\n * 1 - res = source.skipWithTime(5000, [optional scheduler]);\n *\n * @description\n * Specifying a zero value for duration doesn't guarantee no elements will be dropped from the start of the source sequence.\n * This is a side-effect of the asynchrony introduced by the scheduler, where the action that causes callbacks from the source sequence to be forwarded\n * may not execute immediately, despite the zero due time.\n *\n * Errors produced by the source sequence are always forwarded to the result sequence, even if the error occurs before the duration.\n * @param {Number} duration Duration for skipping elements from the start of the sequence.\n * @param {Scheduler} scheduler Scheduler to run the timer on. If not specified, defaults to Rx.Scheduler.timeout.\n * @returns {Observable} An observable sequence with the elements skipped during the specified duration from the start of the source sequence.\n */\n observableProto.skipWithTime = function (duration, scheduler) {\n var source = this;\n isScheduler(scheduler) || (scheduler = timeoutScheduler);\n return new AnonymousObservable(function (observer) {\n var open = false;\n return new CompositeDisposable(\n scheduler.scheduleWithRelative(duration, function () { open = true; }),\n source.subscribe(function (x) { open && observer.onNext(x); }, observer.onError.bind(observer), observer.onCompleted.bind(observer)));\n }, source);\n };\n\n /**\n * Skips elements from the observable source sequence until the specified start time, using the specified scheduler to run timers.\n * Errors produced by the source sequence are always forwarded to the result sequence, even if the error occurs before the start time.\n *\n * @examples\n * 1 - res = source.skipUntilWithTime(new Date(), [scheduler]);\n * 2 - res = source.skipUntilWithTime(5000, [scheduler]);\n * @param {Date|Number} startTime Time to start taking elements from the source sequence. If this value is less than or equal to Date(), no elements will be skipped.\n * @param {Scheduler} [scheduler] Scheduler to run the timer on. If not specified, defaults to Rx.Scheduler.timeout.\n * @returns {Observable} An observable sequence with the elements skipped until the specified start time.\n */\n observableProto.skipUntilWithTime = function (startTime, scheduler) {\n isScheduler(scheduler) || (scheduler = timeoutScheduler);\n var source = this, schedulerMethod = startTime instanceof Date ?\n 'scheduleWithAbsolute' :\n 'scheduleWithRelative';\n return new AnonymousObservable(function (o) {\n var open = false;\n\n return new CompositeDisposable(\n scheduler[schedulerMethod](startTime, function () { open = true; }),\n source.subscribe(\n function (x) { open && o.onNext(x); },\n function (e) { o.onError(e); }, function () { o.onCompleted(); }));\n }, source);\n };\n\n /**\n * Takes elements for the specified duration until the specified end time, using the specified scheduler to run timers.\n * @param {Number | Date} endTime Time to stop taking elements from the source sequence. If this value is less than or equal to new Date(), the result stream will complete immediately.\n * @param {Scheduler} [scheduler] Scheduler to run the timer on.\n * @returns {Observable} An observable sequence with the elements taken until the specified end time.\n */\n observableProto.takeUntilWithTime = function (endTime, scheduler) {\n isScheduler(scheduler) || (scheduler = timeoutScheduler);\n var source = this, schedulerMethod = endTime instanceof Date ?\n 'scheduleWithAbsolute' :\n 'scheduleWithRelative';\n return new AnonymousObservable(function (o) {\n return new CompositeDisposable(\n scheduler[schedulerMethod](endTime, function () { o.onCompleted(); }),\n source.subscribe(o));\n }, source);\n };\n\n /**\n * Returns an Observable that emits only the first item emitted by the source Observable during sequential time windows of a specified duration.\n * @param {Number} windowDuration time to wait before emitting another item after emitting the last item\n * @param {Scheduler} [scheduler] the Scheduler to use internally to manage the timers that handle timeout for each item. If not provided, defaults to Scheduler.timeout.\n * @returns {Observable} An Observable that performs the throttle operation.\n */\n observableProto.throttleFirst = function (windowDuration, scheduler) {\n isScheduler(scheduler) || (scheduler = timeoutScheduler);\n var duration = +windowDuration || 0;\n if (duration <= 0) { throw new RangeError('windowDuration cannot be less or equal zero.'); }\n var source = this;\n return new AnonymousObservable(function (o) {\n var lastOnNext = 0;\n return source.subscribe(\n function (x) {\n var now = scheduler.now();\n if (lastOnNext === 0 || now - lastOnNext >= duration) {\n lastOnNext = now;\n o.onNext(x);\n }\n },function (e) { o.onError(e); }, function () { o.onCompleted(); }\n );\n }, source);\n };\n\n /**\n * Executes a transducer to transform the observable sequence\n * @param {Transducer} transducer A transducer to execute\n * @returns {Observable} An Observable sequence containing the results from the transducer.\n */\n observableProto.transduce = function(transducer) {\n var source = this;\n\n function transformForObserver(observer) {\n return {\n init: function() {\n return observer;\n },\n step: function(obs, input) {\n return obs.onNext(input);\n },\n result: function(obs) {\n return obs.onCompleted();\n }\n };\n }\n\n return new AnonymousObservable(function(observer) {\n var xform = transducer(transformForObserver(observer));\n return source.subscribe(\n function(v) {\n try {\n xform.step(observer, v);\n } catch (e) {\n observer.onError(e);\n }\n },\n observer.onError.bind(observer),\n function() { xform.result(observer); }\n );\n }, source);\n };\n\n /*\n * Performs a exclusive waiting for the first to finish before subscribing to another observable.\n * Observables that come in between subscriptions will be dropped on the floor.\n * @returns {Observable} A exclusive observable with only the results that happen when subscribed.\n */\n observableProto.exclusive = function () {\n var sources = this;\n return new AnonymousObservable(function (observer) {\n var hasCurrent = false,\n isStopped = false,\n m = new SingleAssignmentDisposable(),\n g = new CompositeDisposable();\n\n g.add(m);\n\n m.setDisposable(sources.subscribe(\n function (innerSource) {\n if (!hasCurrent) {\n hasCurrent = true;\n\n isPromise(innerSource) && (innerSource = observableFromPromise(innerSource));\n\n var innerSubscription = new SingleAssignmentDisposable();\n g.add(innerSubscription);\n\n innerSubscription.setDisposable(innerSource.subscribe(\n observer.onNext.bind(observer),\n observer.onError.bind(observer),\n function () {\n g.remove(innerSubscription);\n hasCurrent = false;\n if (isStopped && g.length === 1) {\n observer.onCompleted();\n }\n }));\n }\n },\n observer.onError.bind(observer),\n function () {\n isStopped = true;\n if (!hasCurrent && g.length === 1) {\n observer.onCompleted();\n }\n }));\n\n return g;\n }, this);\n };\n\n /*\n * Performs a exclusive map waiting for the first to finish before subscribing to another observable.\n * Observables that come in between subscriptions will be dropped on the floor.\n * @param {Function} selector Selector to invoke for every item in the current subscription.\n * @param {Any} [thisArg] An optional context to invoke with the selector parameter.\n * @returns {Observable} An exclusive observable with only the results that happen when subscribed.\n */\n observableProto.exclusiveMap = function (selector, thisArg) {\n var sources = this,\n selectorFunc = bindCallback(selector, thisArg, 3);\n return new AnonymousObservable(function (observer) {\n var index = 0,\n hasCurrent = false,\n isStopped = true,\n m = new SingleAssignmentDisposable(),\n g = new CompositeDisposable();\n\n g.add(m);\n\n m.setDisposable(sources.subscribe(\n function (innerSource) {\n\n if (!hasCurrent) {\n hasCurrent = true;\n\n innerSubscription = new SingleAssignmentDisposable();\n g.add(innerSubscription);\n\n isPromise(innerSource) && (innerSource = observableFromPromise(innerSource));\n\n innerSubscription.setDisposable(innerSource.subscribe(\n function (x) {\n var result;\n try {\n result = selectorFunc(x, index++, innerSource);\n } catch (e) {\n observer.onError(e);\n return;\n }\n\n observer.onNext(result);\n },\n function (e) { observer.onError(e); },\n function () {\n g.remove(innerSubscription);\n hasCurrent = false;\n\n if (isStopped && g.length === 1) {\n observer.onCompleted();\n }\n }));\n }\n },\n function (e) { observer.onError(e); },\n function () {\n isStopped = true;\n if (g.length === 1 && !hasCurrent) {\n observer.onCompleted();\n }\n }));\n return g;\n }, this);\n };\n\n /** Provides a set of extension methods for virtual time scheduling. */\n Rx.VirtualTimeScheduler = (function (__super__) {\n\n function notImplemented() {\n throw new Error('Not implemented');\n }\n\n function localNow() {\n return this.toDateTimeOffset(this.clock);\n }\n\n function scheduleNow(state, action) {\n return this.scheduleAbsoluteWithState(state, this.clock, action);\n }\n\n function scheduleRelative(state, dueTime, action) {\n return this.scheduleRelativeWithState(state, this.toRelative(dueTime), action);\n }\n\n function scheduleAbsolute(state, dueTime, action) {\n return this.scheduleRelativeWithState(state, this.toRelative(dueTime - this.now()), action);\n }\n\n function invokeAction(scheduler, action) {\n action();\n return disposableEmpty;\n }\n\n inherits(VirtualTimeScheduler, __super__);\n\n /**\n * Creates a new virtual time scheduler with the specified initial clock value and absolute time comparer.\n *\n * @constructor\n * @param {Number} initialClock Initial value for the clock.\n * @param {Function} comparer Comparer to determine causality of events based on absolute time.\n */\n function VirtualTimeScheduler(initialClock, comparer) {\n this.clock = initialClock;\n this.comparer = comparer;\n this.isEnabled = false;\n this.queue = new PriorityQueue(1024);\n __super__.call(this, localNow, scheduleNow, scheduleRelative, scheduleAbsolute);\n }\n\n var VirtualTimeSchedulerPrototype = VirtualTimeScheduler.prototype;\n\n /**\n * Adds a relative time value to an absolute time value.\n * @param {Number} absolute Absolute virtual time value.\n * @param {Number} relative Relative virtual time value to add.\n * @return {Number} Resulting absolute virtual time sum value.\n */\n VirtualTimeSchedulerPrototype.add = notImplemented;\n\n /**\n * Converts an absolute time to a number\n * @param {Any} The absolute time.\n * @returns {Number} The absolute time in ms\n */\n VirtualTimeSchedulerPrototype.toDateTimeOffset = notImplemented;\n\n /**\n * Converts the TimeSpan value to a relative virtual time value.\n * @param {Number} timeSpan TimeSpan value to convert.\n * @return {Number} Corresponding relative virtual time value.\n */\n VirtualTimeSchedulerPrototype.toRelative = notImplemented;\n\n /**\n * Schedules a periodic piece of work by dynamically discovering the scheduler's capabilities. The periodic task will be emulated using recursive scheduling.\n * @param {Mixed} state Initial state passed to the action upon the first iteration.\n * @param {Number} period Period for running the work periodically.\n * @param {Function} action Action to be executed, potentially updating the state.\n * @returns {Disposable} The disposable object used to cancel the scheduled recurring action (best effort).\n */\n VirtualTimeSchedulerPrototype.schedulePeriodicWithState = function (state, period, action) {\n var s = new SchedulePeriodicRecursive(this, state, period, action);\n return s.start();\n };\n\n /**\n * Schedules an action to be executed after dueTime.\n * @param {Mixed} state State passed to the action to be executed.\n * @param {Number} dueTime Relative time after which to execute the action.\n * @param {Function} action Action to be executed.\n * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).\n */\n VirtualTimeSchedulerPrototype.scheduleRelativeWithState = function (state, dueTime, action) {\n var runAt = this.add(this.clock, dueTime);\n return this.scheduleAbsoluteWithState(state, runAt, action);\n };\n\n /**\n * Schedules an action to be executed at dueTime.\n * @param {Number} dueTime Relative time after which to execute the action.\n * @param {Function} action Action to be executed.\n * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).\n */\n VirtualTimeSchedulerPrototype.scheduleRelative = function (dueTime, action) {\n return this.scheduleRelativeWithState(action, dueTime, invokeAction);\n };\n\n /**\n * Starts the virtual time scheduler.\n */\n VirtualTimeSchedulerPrototype.start = function () {\n if (!this.isEnabled) {\n this.isEnabled = true;\n do {\n var next = this.getNext();\n if (next !== null) {\n this.comparer(next.dueTime, this.clock) > 0 && (this.clock = next.dueTime);\n next.invoke();\n } else {\n this.isEnabled = false;\n }\n } while (this.isEnabled);\n }\n };\n\n /**\n * Stops the virtual time scheduler.\n */\n VirtualTimeSchedulerPrototype.stop = function () {\n this.isEnabled = false;\n };\n\n /**\n * Advances the scheduler's clock to the specified time, running all work till that point.\n * @param {Number} time Absolute time to advance the scheduler's clock to.\n */\n VirtualTimeSchedulerPrototype.advanceTo = function (time) {\n var dueToClock = this.comparer(this.clock, time);\n if (this.comparer(this.clock, time) > 0) {\n throw new Error(argumentOutOfRange);\n }\n if (dueToClock === 0) {\n return;\n }\n if (!this.isEnabled) {\n this.isEnabled = true;\n do {\n var next = this.getNext();\n if (next !== null && this.comparer(next.dueTime, time) <= 0) {\n this.comparer(next.dueTime, this.clock) > 0 && (this.clock = next.dueTime);\n next.invoke();\n } else {\n this.isEnabled = false;\n }\n } while (this.isEnabled);\n this.clock = time;\n }\n };\n\n /**\n * Advances the scheduler's clock by the specified relative time, running all work scheduled for that timespan.\n * @param {Number} time Relative time to advance the scheduler's clock by.\n */\n VirtualTimeSchedulerPrototype.advanceBy = function (time) {\n var dt = this.add(this.clock, time),\n dueToClock = this.comparer(this.clock, dt);\n if (dueToClock > 0) { throw new Error(argumentOutOfRange); }\n if (dueToClock === 0) { return; }\n\n this.advanceTo(dt);\n };\n\n /**\n * Advances the scheduler's clock by the specified relative time.\n * @param {Number} time Relative time to advance the scheduler's clock by.\n */\n VirtualTimeSchedulerPrototype.sleep = function (time) {\n var dt = this.add(this.clock, time);\n if (this.comparer(this.clock, dt) >= 0) { throw new Error(argumentOutOfRange); }\n\n this.clock = dt;\n };\n\n /**\n * Gets the next scheduled item to be executed.\n * @returns {ScheduledItem} The next scheduled item.\n */\n VirtualTimeSchedulerPrototype.getNext = function () {\n while (this.queue.length > 0) {\n var next = this.queue.peek();\n if (next.isCancelled()) {\n this.queue.dequeue();\n } else {\n return next;\n }\n }\n return null;\n };\n\n /**\n * Schedules an action to be executed at dueTime.\n * @param {Scheduler} scheduler Scheduler to execute the action on.\n * @param {Number} dueTime Absolute time at which to execute the action.\n * @param {Function} action Action to be executed.\n * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).\n */\n VirtualTimeSchedulerPrototype.scheduleAbsolute = function (dueTime, action) {\n return this.scheduleAbsoluteWithState(action, dueTime, invokeAction);\n };\n\n /**\n * Schedules an action to be executed at dueTime.\n * @param {Mixed} state State passed to the action to be executed.\n * @param {Number} dueTime Absolute time at which to execute the action.\n * @param {Function} action Action to be executed.\n * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort).\n */\n VirtualTimeSchedulerPrototype.scheduleAbsoluteWithState = function (state, dueTime, action) {\n var self = this;\n\n function run(scheduler, state1) {\n self.queue.remove(si);\n return action(scheduler, state1);\n }\n\n var si = new ScheduledItem(this, state, run, dueTime, this.comparer);\n this.queue.enqueue(si);\n\n return si.disposable;\n };\n\n return VirtualTimeScheduler;\n }(Scheduler));\n\n /** Provides a virtual time scheduler that uses Date for absolute time and number for relative time. */\n Rx.HistoricalScheduler = (function (__super__) {\n inherits(HistoricalScheduler, __super__);\n\n /**\n * Creates a new historical scheduler with the specified initial clock value.\n * @constructor\n * @param {Number} initialClock Initial value for the clock.\n * @param {Function} comparer Comparer to determine causality of events based on absolute time.\n */\n function HistoricalScheduler(initialClock, comparer) {\n var clock = initialClock == null ? 0 : initialClock;\n var cmp = comparer || defaultSubComparer;\n __super__.call(this, clock, cmp);\n }\n\n var HistoricalSchedulerProto = HistoricalScheduler.prototype;\n\n /**\n * Adds a relative time value to an absolute time value.\n * @param {Number} absolute Absolute virtual time value.\n * @param {Number} relative Relative virtual time value to add.\n * @return {Number} Resulting absolute virtual time sum value.\n */\n HistoricalSchedulerProto.add = function (absolute, relative) {\n return absolute + relative;\n };\n\n HistoricalSchedulerProto.toDateTimeOffset = function (absolute) {\n return new Date(absolute).getTime();\n };\n\n /**\n * Converts the TimeSpan value to a relative virtual time value.\n * @memberOf HistoricalScheduler\n * @param {Number} timeSpan TimeSpan value to convert.\n * @return {Number} Corresponding relative virtual time value.\n */\n HistoricalSchedulerProto.toRelative = function (timeSpan) {\n return timeSpan;\n };\n\n return HistoricalScheduler;\n }(Rx.VirtualTimeScheduler));\n\n var AnonymousObservable = Rx.AnonymousObservable = (function (__super__) {\n inherits(AnonymousObservable, __super__);\n\n // Fix subscriber to check for undefined or function returned to decorate as Disposable\n function fixSubscriber(subscriber) {\n if (subscriber && typeof subscriber.dispose === 'function') { return subscriber; }\n\n return typeof subscriber === 'function' ?\n disposableCreate(subscriber) :\n disposableEmpty;\n }\n\n function AnonymousObservable(subscribe, parent) {\n this.source = parent;\n if (!(this instanceof AnonymousObservable)) {\n return new AnonymousObservable(subscribe);\n }\n\n function s(observer) {\n var setDisposable = function () {\n try {\n autoDetachObserver.setDisposable(fixSubscriber(subscribe(autoDetachObserver)));\n } catch (e) {\n if (!autoDetachObserver.fail(e)) {\n throw e;\n }\n }\n };\n\n var autoDetachObserver = new AutoDetachObserver(observer);\n if (currentThreadScheduler.scheduleRequired()) {\n currentThreadScheduler.schedule(setDisposable);\n } else {\n setDisposable();\n }\n\n return autoDetachObserver;\n }\n\n __super__.call(this, s);\n }\n\n return AnonymousObservable;\n\n }(Observable));\n\n var AutoDetachObserver = (function (__super__) {\n inherits(AutoDetachObserver, __super__);\n\n function AutoDetachObserver(observer) {\n __super__.call(this);\n this.observer = observer;\n this.m = new SingleAssignmentDisposable();\n }\n\n var AutoDetachObserverPrototype = AutoDetachObserver.prototype;\n\n AutoDetachObserverPrototype.next = function (value) {\n var noError = false;\n try {\n this.observer.onNext(value);\n noError = true;\n } catch (e) {\n throw e;\n } finally {\n !noError && this.dispose();\n }\n };\n\n AutoDetachObserverPrototype.error = function (err) {\n try {\n this.observer.onError(err);\n } catch (e) {\n throw e;\n } finally {\n this.dispose();\n }\n };\n\n AutoDetachObserverPrototype.completed = function () {\n try {\n this.observer.onCompleted();\n } catch (e) {\n throw e;\n } finally {\n this.dispose();\n }\n };\n\n AutoDetachObserverPrototype.setDisposable = function (value) { this.m.setDisposable(value); };\n AutoDetachObserverPrototype.getDisposable = function () { return this.m.getDisposable(); };\n\n AutoDetachObserverPrototype.dispose = function () {\n __super__.prototype.dispose.call(this);\n this.m.dispose();\n };\n\n return AutoDetachObserver;\n }(AbstractObserver));\n\n var GroupedObservable = (function (__super__) {\n inherits(GroupedObservable, __super__);\n\n function subscribe(observer) {\n return this.underlyingObservable.subscribe(observer);\n }\n\n function GroupedObservable(key, underlyingObservable, mergedDisposable) {\n __super__.call(this, subscribe);\n this.key = key;\n this.underlyingObservable = !mergedDisposable ?\n underlyingObservable :\n new AnonymousObservable(function (observer) {\n return new CompositeDisposable(mergedDisposable.getDisposable(), underlyingObservable.subscribe(observer));\n });\n }\n\n return GroupedObservable;\n }(Observable));\n\n /**\n * Represents an object that is both an observable sequence as well as an observer.\n * Each notification is broadcasted to all subscribed observers.\n */\n var Subject = Rx.Subject = (function (__super__) {\n function subscribe(observer) {\n checkDisposed.call(this);\n if (!this.isStopped) {\n this.observers.push(observer);\n return new InnerSubscription(this, observer);\n }\n if (this.hasError) {\n observer.onError(this.error);\n return disposableEmpty;\n }\n observer.onCompleted();\n return disposableEmpty;\n }\n\n inherits(Subject, __super__);\n\n /**\n * Creates a subject.\n */\n function Subject() {\n __super__.call(this, subscribe);\n this.isDisposed = false,\n this.isStopped = false,\n this.observers = [];\n this.hasError = false;\n }\n\n addProperties(Subject.prototype, Observer.prototype, {\n /**\n * Indicates whether the subject has observers subscribed to it.\n * @returns {Boolean} Indicates whether the subject has observers subscribed to it.\n */\n hasObservers: function () { return this.observers.length > 0; },\n /**\n * Notifies all subscribed observers about the end of the sequence.\n */\n onCompleted: function () {\n checkDisposed.call(this);\n if (!this.isStopped) {\n var os = this.observers.slice(0);\n this.isStopped = true;\n for (var i = 0, len = os.length; i < len; i++) {\n os[i].onCompleted();\n }\n\n this.observers.length = 0;\n }\n },\n /**\n * Notifies all subscribed observers about the exception.\n * @param {Mixed} error The exception to send to all observers.\n */\n onError: function (error) {\n checkDisposed.call(this);\n if (!this.isStopped) {\n var os = this.observers.slice(0);\n this.isStopped = true;\n this.error = error;\n this.hasError = true;\n for (var i = 0, len = os.length; i < len; i++) {\n os[i].onError(error);\n }\n\n this.observers.length = 0;\n }\n },\n /**\n * Notifies all subscribed observers about the arrival of the specified element in the sequence.\n * @param {Mixed} value The value to send to all observers.\n */\n onNext: function (value) {\n checkDisposed.call(this);\n if (!this.isStopped) {\n var os = this.observers.slice(0);\n for (var i = 0, len = os.length; i < len; i++) {\n os[i].onNext(value);\n }\n }\n },\n /**\n * Unsubscribe all observers and release resources.\n */\n dispose: function () {\n this.isDisposed = true;\n this.observers = null;\n }\n });\n\n /**\n * Creates a subject from the specified observer and observable.\n * @param {Observer} observer The observer used to send messages to the subject.\n * @param {Observable} observable The observable used to subscribe to messages sent from the subject.\n * @returns {Subject} Subject implemented using the given observer and observable.\n */\n Subject.create = function (observer, observable) {\n return new AnonymousSubject(observer, observable);\n };\n\n return Subject;\n }(Observable));\n\n /**\n * Represents the result of an asynchronous operation.\n * The last value before the OnCompleted notification, or the error received through OnError, is sent to all subscribed observers.\n */\n var AsyncSubject = Rx.AsyncSubject = (function (__super__) {\n\n function subscribe(observer) {\n checkDisposed.call(this);\n\n if (!this.isStopped) {\n this.observers.push(observer);\n return new InnerSubscription(this, observer);\n }\n\n if (this.hasError) {\n observer.onError(this.error);\n } else if (this.hasValue) {\n observer.onNext(this.value);\n observer.onCompleted();\n } else {\n observer.onCompleted();\n }\n\n return disposableEmpty;\n }\n\n inherits(AsyncSubject, __super__);\n\n /**\n * Creates a subject that can only receive one value and that value is cached for all future observations.\n * @constructor\n */\n function AsyncSubject() {\n __super__.call(this, subscribe);\n\n this.isDisposed = false;\n this.isStopped = false;\n this.hasValue = false;\n this.observers = [];\n this.hasError = false;\n }\n\n addProperties(AsyncSubject.prototype, Observer, {\n /**\n * Indicates whether the subject has observers subscribed to it.\n * @returns {Boolean} Indicates whether the subject has observers subscribed to it.\n */\n hasObservers: function () {\n checkDisposed.call(this);\n return this.observers.length > 0;\n },\n /**\n * Notifies all subscribed observers about the end of the sequence, also causing the last received value to be sent out (if any).\n */\n onCompleted: function () {\n var i, len;\n checkDisposed.call(this);\n if (!this.isStopped) {\n this.isStopped = true;\n var os = this.observers.slice(0), len = os.length;\n\n if (this.hasValue) {\n for (i = 0; i < len; i++) {\n var o = os[i];\n o.onNext(this.value);\n o.onCompleted();\n }\n } else {\n for (i = 0; i < len; i++) {\n os[i].onCompleted();\n }\n }\n\n this.observers.length = 0;\n }\n },\n /**\n * Notifies all subscribed observers about the error.\n * @param {Mixed} error The Error to send to all observers.\n */\n onError: function (error) {\n checkDisposed.call(this);\n if (!this.isStopped) {\n var os = this.observers.slice(0);\n this.isStopped = true;\n this.hasError = true;\n this.error = error;\n\n for (var i = 0, len = os.length; i < len; i++) {\n os[i].onError(error);\n }\n\n this.observers.length = 0;\n }\n },\n /**\n * Sends a value to the subject. The last value received before successful termination will be sent to all subscribed and future observers.\n * @param {Mixed} value The value to store in the subject.\n */\n onNext: function (value) {\n checkDisposed.call(this);\n if (this.isStopped) { return; }\n this.value = value;\n this.hasValue = true;\n },\n /**\n * Unsubscribe all observers and release resources.\n */\n dispose: function () {\n this.isDisposed = true;\n this.observers = null;\n this.exception = null;\n this.value = null;\n }\n });\n\n return AsyncSubject;\n }(Observable));\n\n var AnonymousSubject = Rx.AnonymousSubject = (function (__super__) {\n inherits(AnonymousSubject, __super__);\n\n function subscribe(observer) {\n this.observable.subscribe(observer);\n }\n\n function AnonymousSubject(observer, observable) {\n this.observer = observer;\n this.observable = observable;\n __super__.call(this, subscribe);\n }\n\n addProperties(AnonymousSubject.prototype, Observer.prototype, {\n onCompleted: function () {\n this.observer.onCompleted();\n },\n onError: function (error) {\n this.observer.onError(error);\n },\n onNext: function (value) {\n this.observer.onNext(value);\n }\n });\n\n return AnonymousSubject;\n }(Observable));\n\n /**\n * Used to pause and resume streams.\n */\n Rx.Pauser = (function (__super__) {\n inherits(Pauser, __super__);\n\n function Pauser() {\n __super__.call(this);\n }\n\n /**\n * Pauses the underlying sequence.\n */\n Pauser.prototype.pause = function () { this.onNext(false); };\n\n /**\n * Resumes the underlying sequence.\n */\n Pauser.prototype.resume = function () { this.onNext(true); };\n\n return Pauser;\n }(Subject));\n\n if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {\n root.Rx = Rx;\n\n define(function() {\n return Rx;\n });\n } else if (freeExports && freeModule) {\n // in Node.js or RingoJS\n if (moduleExports) {\n (freeModule.exports = Rx).Rx = Rx;\n } else {\n freeExports.Rx = Rx;\n }\n } else {\n // in a browser or Rhino\n root.Rx = Rx;\n }\n\n // All code before this point will be filtered from stack traces.\n var rEndingLine = captureLine();\n\n}.call(this));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/rx/dist/rx.all.js\n ** module id = 16\n ** module chunks = 0\n **/","'use strict';\n\nfunction CycleInterfaceError(message, missingMember) {\n this.name = 'CycleInterfaceError';\n this.message = (message || '');\n this.missingMember = (missingMember || '');\n}\nCycleInterfaceError.prototype = Error.prototype;\n\nfunction customInterfaceErrorMessageInInject(dataFlowNode, message) {\n var originalInject = dataFlowNode.inject;\n dataFlowNode.inject = function inject() {\n try {\n return originalInject.apply({}, arguments);\n } catch (err) {\n if (err.name === 'CycleInterfaceError') {\n throw new CycleInterfaceError(message + err.missingMember, err.missingMember);\n } else {\n throw err;\n }\n }\n };\n return dataFlowNode;\n}\n\nmodule.exports = {\n CycleInterfaceError: CycleInterfaceError,\n customInterfaceErrorMessageInInject: customInterfaceErrorMessageInInject\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/src/errors.js\n ** module id = 17\n ** module chunks = 0\n **/","var diff = require(\"./vtree/diff.js\")\n\nmodule.exports = diff\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/diff.js\n ** module id = 18\n ** module chunks = 0\n **/","var patch = require(\"./vdom/patch.js\")\n\nmodule.exports = patch\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/patch.js\n ** module id = 19\n ** module chunks = 0\n **/","var h = require(\"./virtual-hyperscript/index.js\")\n\nmodule.exports = h\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/h.js\n ** module id = 20\n ** module chunks = 0\n **/","var createElement = require(\"./vdom/create-element.js\")\n\nmodule.exports = createElement\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/create-element.js\n ** module id = 21\n ** module chunks = 0\n **/","var isArray = require(\"x-is-array\")\n\nvar VPatch = require(\"../vnode/vpatch\")\nvar isVNode = require(\"../vnode/is-vnode\")\nvar isVText = require(\"../vnode/is-vtext\")\nvar isWidget = require(\"../vnode/is-widget\")\nvar isThunk = require(\"../vnode/is-thunk\")\nvar handleThunk = require(\"../vnode/handle-thunk\")\n\nvar diffProps = require(\"./diff-props\")\n\nmodule.exports = diff\n\nfunction diff(a, b) {\n var patch = { a: a }\n walk(a, b, patch, 0)\n return patch\n}\n\nfunction walk(a, b, patch, index) {\n if (a === b) {\n return\n }\n\n var apply = patch[index]\n var applyClear = false\n\n if (isThunk(a) || isThunk(b)) {\n thunks(a, b, patch, index)\n } else if (b == null) {\n\n // If a is a widget we will add a remove patch for it\n // Otherwise any child widgets/hooks must be destroyed.\n // This prevents adding two remove patches for a widget.\n if (!isWidget(a)) {\n clearState(a, patch, index)\n apply = patch[index]\n }\n\n apply = appendPatch(apply, new VPatch(VPatch.REMOVE, a, b))\n } else if (isVNode(b)) {\n if (isVNode(a)) {\n if (a.tagName === b.tagName &&\n a.namespace === b.namespace &&\n a.key === b.key) {\n var propsPatch = diffProps(a.properties, b.properties)\n if (propsPatch) {\n apply = appendPatch(apply,\n new VPatch(VPatch.PROPS, a, propsPatch))\n }\n apply = diffChildren(a, b, patch, apply, index)\n } else {\n apply = appendPatch(apply, new VPatch(VPatch.VNODE, a, b))\n applyClear = true\n }\n } else {\n apply = appendPatch(apply, new VPatch(VPatch.VNODE, a, b))\n applyClear = true\n }\n } else if (isVText(b)) {\n if (!isVText(a)) {\n apply = appendPatch(apply, new VPatch(VPatch.VTEXT, a, b))\n applyClear = true\n } else if (a.text !== b.text) {\n apply = appendPatch(apply, new VPatch(VPatch.VTEXT, a, b))\n }\n } else if (isWidget(b)) {\n if (!isWidget(a)) {\n applyClear = true;\n }\n\n apply = appendPatch(apply, new VPatch(VPatch.WIDGET, a, b))\n }\n\n if (apply) {\n patch[index] = apply\n }\n\n if (applyClear) {\n clearState(a, patch, index)\n }\n}\n\nfunction diffChildren(a, b, patch, apply, index) {\n var aChildren = a.children\n var bChildren = reorder(aChildren, b.children)\n\n var aLen = aChildren.length\n var bLen = bChildren.length\n var len = aLen > bLen ? aLen : bLen\n\n for (var i = 0; i < len; i++) {\n var leftNode = aChildren[i]\n var rightNode = bChildren[i]\n index += 1\n\n if (!leftNode) {\n if (rightNode) {\n // Excess nodes in b need to be added\n apply = appendPatch(apply,\n new VPatch(VPatch.INSERT, null, rightNode))\n }\n } else {\n walk(leftNode, rightNode, patch, index)\n }\n\n if (isVNode(leftNode) && leftNode.count) {\n index += leftNode.count\n }\n }\n\n if (bChildren.moves) {\n // Reorder nodes last\n apply = appendPatch(apply, new VPatch(VPatch.ORDER, a, bChildren.moves))\n }\n\n return apply\n}\n\nfunction clearState(vNode, patch, index) {\n // TODO: Make this a single walk, not two\n unhook(vNode, patch, index)\n destroyWidgets(vNode, patch, index)\n}\n\n// Patch records for all destroyed widgets must be added because we need\n// a DOM node reference for the destroy function\nfunction destroyWidgets(vNode, patch, index) {\n if (isWidget(vNode)) {\n if (typeof vNode.destroy === \"function\") {\n patch[index] = appendPatch(\n patch[index],\n new VPatch(VPatch.REMOVE, vNode, null)\n )\n }\n } else if (isVNode(vNode) && (vNode.hasWidgets || vNode.hasThunks)) {\n var children = vNode.children\n var len = children.length\n for (var i = 0; i < len; i++) {\n var child = children[i]\n index += 1\n\n destroyWidgets(child, patch, index)\n\n if (isVNode(child) && child.count) {\n index += child.count\n }\n }\n } else if (isThunk(vNode)) {\n thunks(vNode, null, patch, index)\n }\n}\n\n// Create a sub-patch for thunks\nfunction thunks(a, b, patch, index) {\n var nodes = handleThunk(a, b);\n var thunkPatch = diff(nodes.a, nodes.b)\n if (hasPatches(thunkPatch)) {\n patch[index] = new VPatch(VPatch.THUNK, null, thunkPatch)\n }\n}\n\nfunction hasPatches(patch) {\n for (var index in patch) {\n if (index !== \"a\") {\n return true;\n }\n }\n\n return false;\n}\n\n// Execute hooks when two nodes are identical\nfunction unhook(vNode, patch, index) {\n if (isVNode(vNode)) {\n if (vNode.hooks) {\n patch[index] = appendPatch(\n patch[index],\n new VPatch(\n VPatch.PROPS,\n vNode,\n undefinedKeys(vNode.hooks)\n )\n )\n }\n\n if (vNode.descendantHooks || vNode.hasThunks) {\n var children = vNode.children\n var len = children.length\n for (var i = 0; i < len; i++) {\n var child = children[i]\n index += 1\n\n unhook(child, patch, index)\n\n if (isVNode(child) && child.count) {\n index += child.count\n }\n }\n }\n } else if (isThunk(vNode)) {\n thunks(vNode, null, patch, index)\n }\n}\n\nfunction undefinedKeys(obj) {\n var result = {}\n\n for (var key in obj) {\n result[key] = undefined\n }\n\n return result\n}\n\n// List diff, naive left to right reordering\nfunction reorder(aChildren, bChildren) {\n\n var bKeys = keyIndex(bChildren)\n\n if (!bKeys) {\n return bChildren\n }\n\n var aKeys = keyIndex(aChildren)\n\n if (!aKeys) {\n return bChildren\n }\n\n var bMatch = {}, aMatch = {}\n\n for (var aKey in bKeys) {\n bMatch[bKeys[aKey]] = aKeys[aKey]\n }\n\n for (var bKey in aKeys) {\n aMatch[aKeys[bKey]] = bKeys[bKey]\n }\n\n var aLen = aChildren.length\n var bLen = bChildren.length\n var len = aLen > bLen ? aLen : bLen\n var shuffle = []\n var freeIndex = 0\n var i = 0\n var moveIndex = 0\n var moves = {}\n var removes = moves.removes = {}\n var reverse = moves.reverse = {}\n var hasMoves = false\n\n while (freeIndex < len) {\n var move = aMatch[i]\n if (move !== undefined) {\n shuffle[i] = bChildren[move]\n if (move !== moveIndex) {\n moves[move] = moveIndex\n reverse[moveIndex] = move\n hasMoves = true\n }\n moveIndex++\n } else if (i in aMatch) {\n shuffle[i] = undefined\n removes[i] = moveIndex++\n hasMoves = true\n } else {\n while (bMatch[freeIndex] !== undefined) {\n freeIndex++\n }\n\n if (freeIndex < len) {\n var freeChild = bChildren[freeIndex]\n if (freeChild) {\n shuffle[i] = freeChild\n if (freeIndex !== moveIndex) {\n hasMoves = true\n moves[freeIndex] = moveIndex\n reverse[moveIndex] = freeIndex\n }\n moveIndex++\n }\n freeIndex++\n }\n }\n i++\n }\n\n if (hasMoves) {\n shuffle.moves = moves\n }\n\n return shuffle\n}\n\nfunction keyIndex(children) {\n var i, keys\n\n for (i = 0; i < children.length; i++) {\n var child = children[i]\n\n if (child.key !== undefined) {\n keys = keys || {}\n keys[child.key] = i\n }\n }\n\n return keys\n}\n\nfunction appendPatch(apply, patch) {\n if (apply) {\n if (isArray(apply)) {\n apply.push(patch)\n } else {\n apply = [apply, patch]\n }\n\n return apply\n } else {\n return patch\n }\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/vtree/diff.js\n ** module id = 22\n ** module chunks = 0\n **/","var document = require(\"global/document\")\nvar isArray = require(\"x-is-array\")\n\nvar domIndex = require(\"./dom-index\")\nvar patchOp = require(\"./patch-op\")\nmodule.exports = patch\n\nfunction patch(rootNode, patches) {\n return patchRecursive(rootNode, patches)\n}\n\nfunction patchRecursive(rootNode, patches, renderOptions) {\n var indices = patchIndices(patches)\n\n if (indices.length === 0) {\n return rootNode\n }\n\n var index = domIndex(rootNode, patches.a, indices)\n var ownerDocument = rootNode.ownerDocument\n\n if (!renderOptions) {\n renderOptions = { patch: patchRecursive }\n if (ownerDocument !== document) {\n renderOptions.document = ownerDocument\n }\n }\n\n for (var i = 0; i < indices.length; i++) {\n var nodeIndex = indices[i]\n rootNode = applyPatch(rootNode,\n index[nodeIndex],\n patches[nodeIndex],\n renderOptions)\n }\n\n return rootNode\n}\n\nfunction applyPatch(rootNode, domNode, patchList, renderOptions) {\n if (!domNode) {\n return rootNode\n }\n\n var newNode\n\n if (isArray(patchList)) {\n for (var i = 0; i < patchList.length; i++) {\n newNode = patchOp(patchList[i], domNode, renderOptions)\n\n if (domNode === rootNode) {\n rootNode = newNode\n }\n }\n } else {\n newNode = patchOp(patchList, domNode, renderOptions)\n\n if (domNode === rootNode) {\n rootNode = newNode\n }\n }\n\n return rootNode\n}\n\nfunction patchIndices(patches) {\n var indices = []\n\n for (var key in patches) {\n if (key !== \"a\") {\n indices.push(Number(key))\n }\n }\n\n return indices\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/vdom/patch.js\n ** module id = 23\n ** module chunks = 0\n **/","'use strict';\n\nvar isArray = require('x-is-array');\n\nvar VNode = require('../vnode/vnode.js');\nvar VText = require('../vnode/vtext.js');\nvar isVNode = require('../vnode/is-vnode');\nvar isVText = require('../vnode/is-vtext');\nvar isWidget = require('../vnode/is-widget');\nvar isHook = require('../vnode/is-vhook');\nvar isVThunk = require('../vnode/is-thunk');\n\nvar parseTag = require('./parse-tag.js');\nvar softSetHook = require('./hooks/soft-set-hook.js');\nvar evHook = require('./hooks/ev-hook.js');\n\nmodule.exports = h;\n\nfunction h(tagName, properties, children) {\n var childNodes = [];\n var tag, props, key, namespace;\n\n if (!children && isChildren(properties)) {\n children = properties;\n props = {};\n }\n\n props = props || properties || {};\n tag = parseTag(tagName, props);\n\n // support keys\n if (props.hasOwnProperty('key')) {\n key = props.key;\n props.key = undefined;\n }\n\n // support namespace\n if (props.hasOwnProperty('namespace')) {\n namespace = props.namespace;\n props.namespace = undefined;\n }\n\n // fix cursor bug\n if (tag === 'INPUT' &&\n !namespace &&\n props.hasOwnProperty('value') &&\n props.value !== undefined &&\n !isHook(props.value)\n ) {\n props.value = softSetHook(props.value);\n }\n\n transformProperties(props);\n\n if (children !== undefined && children !== null) {\n addChild(children, childNodes, tag, props);\n }\n\n\n return new VNode(tag, props, childNodes, key, namespace);\n}\n\nfunction addChild(c, childNodes, tag, props) {\n if (typeof c === 'string') {\n childNodes.push(new VText(c));\n } else if (isChild(c)) {\n childNodes.push(c);\n } else if (isArray(c)) {\n for (var i = 0; i < c.length; i++) {\n addChild(c[i], childNodes, tag, props);\n }\n } else if (c === null || c === undefined) {\n return;\n } else {\n throw UnexpectedVirtualElement({\n foreignObject: c,\n parentVnode: {\n tagName: tag,\n properties: props\n }\n });\n }\n}\n\nfunction transformProperties(props) {\n for (var propName in props) {\n if (props.hasOwnProperty(propName)) {\n var value = props[propName];\n\n if (isHook(value)) {\n continue;\n }\n\n if (propName.substr(0, 3) === 'ev-') {\n // add ev-foo support\n props[propName] = evHook(value);\n }\n }\n }\n}\n\nfunction isChild(x) {\n return isVNode(x) || isVText(x) || isWidget(x) || isVThunk(x);\n}\n\nfunction isChildren(x) {\n return typeof x === 'string' || isArray(x) || isChild(x);\n}\n\nfunction UnexpectedVirtualElement(data) {\n var err = new Error();\n\n err.type = 'virtual-hyperscript.unexpected.virtual-element';\n err.message = 'Unexpected virtual child passed to h().\\n' +\n 'Expected a VNode / Vthunk / VWidget / string but:\\n' +\n 'got:\\n' +\n errorString(data.foreignObject) +\n '.\\n' +\n 'The parent vnode is:\\n' +\n errorString(data.parentVnode)\n '\\n' +\n 'Suggested fix: change your `h(..., [ ... ])` callsite.';\n err.foreignObject = data.foreignObject;\n err.parentVnode = data.parentVnode;\n\n return err;\n}\n\nfunction errorString(obj) {\n try {\n return JSON.stringify(obj, null, ' ');\n } catch (e) {\n return String(obj);\n }\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/virtual-hyperscript/index.js\n ** module id = 24\n ** module chunks = 0\n **/","var document = require(\"global/document\")\n\nvar applyProperties = require(\"./apply-properties\")\n\nvar isVNode = require(\"../vnode/is-vnode.js\")\nvar isVText = require(\"../vnode/is-vtext.js\")\nvar isWidget = require(\"../vnode/is-widget.js\")\nvar handleThunk = require(\"../vnode/handle-thunk.js\")\n\nmodule.exports = createElement\n\nfunction createElement(vnode, opts) {\n var doc = opts ? opts.document || document : document\n var warn = opts ? opts.warn : null\n\n vnode = handleThunk(vnode).a\n\n if (isWidget(vnode)) {\n return vnode.init()\n } else if (isVText(vnode)) {\n return doc.createTextNode(vnode.text)\n } else if (!isVNode(vnode)) {\n if (warn) {\n warn(\"Item is not a valid virtual dom node\", vnode)\n }\n return null\n }\n\n var node = (vnode.namespace === null) ?\n doc.createElement(vnode.tagName) :\n doc.createElementNS(vnode.namespace, vnode.tagName)\n\n var props = vnode.properties\n applyProperties(node, props)\n\n var children = vnode.children\n\n for (var i = 0; i < children.length; i++) {\n var childNode = createElement(children[i], opts)\n if (childNode) {\n node.appendChild(childNode)\n }\n }\n\n return node\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/vdom/create-element.js\n ** module id = 25\n ** module chunks = 0\n **/","'use strict';\nvar Rx = require('rx');\n\nfunction InputProxy() {\n this.proxiedProps = {};\n // For any DataFlowNode\n this.get = function getFromProxy(streamKey) {\n if (typeof this.proxiedProps[streamKey] === 'undefined') {\n this.proxiedProps[streamKey] = new Rx.Subject();\n }\n return this.proxiedProps[streamKey];\n };\n // For the DOMUser\n this.event$ = function event$FromProxy(selector, eventName) {\n if (typeof this.proxiedProps[selector] === 'undefined') {\n this.proxiedProps[selector] = {\n _hasEvent$: true\n };\n }\n if (typeof this.proxiedProps[selector][eventName] === 'undefined') {\n this.proxiedProps[selector][eventName] = new Rx.Subject();\n }\n return this.proxiedProps[selector][eventName];\n };\n}\n\nmodule.exports = InputProxy;\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/src/input-proxy.js\n ** module id = 26\n ** module chunks = 0\n **/","'use strict';\n\nfunction endsWithDollarSign(str) {\n if (typeof str !== 'string') {\n return false;\n }\n return str.indexOf('$', str.length - 1) !== -1;\n}\n\nmodule.exports = {\n endsWithDollarSign: endsWithDollarSign\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/src/utils.js\n ** module id = 27\n ** module chunks = 0\n **/","'use strict';\nvar InputProxy = require('./input-proxy');\nvar Utils = require('./utils');\nvar Rx = require('rx');\n\nfunction makeDispatchFunction(element, eventName) {\n return function dispatchCustomEvent(evData) {\n var event;\n try {\n event = new Event(eventName);\n } catch (err) {\n event = document.createEvent('Event');\n event.initEvent(eventName, true, true);\n }\n event.data = evData;\n element.dispatchEvent(event);\n };\n}\n\nfunction subscribeDispatchers(element, eventStreams) {\n if (!eventStreams || typeof eventStreams !== 'object') { return; }\n\n var disposables = new Rx.CompositeDisposable();\n for (var streamName in eventStreams) { if (eventStreams.hasOwnProperty(streamName)) {\n if (Utils.endsWithDollarSign(streamName) &&\n typeof eventStreams[streamName].subscribe === 'function')\n {\n var eventName = streamName.slice(0, -1);\n var disposable = eventStreams[streamName].subscribe(\n makeDispatchFunction(element, eventName)\n );\n disposables.add(disposable);\n }\n }}\n return disposables;\n}\n\nfunction subscribeDispatchersWhenRootChanges(widget, eventStreams) {\n widget._rootElem$\n .distinctUntilChanged(Rx.helpers.identity,\n function comparer(x, y) { return x && y && x.isEqualNode && x.isEqualNode(y); }\n )\n .subscribe(function (rootElem) {\n if (widget.eventStreamsSubscriptions) {\n widget.eventStreamsSubscriptions.dispose();\n }\n widget.eventStreamsSubscriptions = subscribeDispatchers(rootElem, eventStreams);\n });\n}\n\nfunction makeInputPropertiesProxy() {\n var inputProxy = new InputProxy();\n var oldGet = inputProxy.get;\n inputProxy.get = function get(streamName) {\n var result = oldGet.call(this, streamName);\n if (result && result.distinctUntilChanged) {\n return result.distinctUntilChanged();\n } else {\n return result;\n }\n };\n return inputProxy;\n}\n\nfunction createContainerElement(tagName, vtreeProperties) {\n var elem = document.createElement('div');\n elem.className = vtreeProperties.className || '';\n elem.id = vtreeProperties.id || '';\n elem.className += ' cycleCustomElement-' + tagName.toUpperCase();\n elem.cycleCustomElementProperties = makeInputPropertiesProxy();\n return elem;\n}\n\nfunction replicateUserRootElem$(user, widget) {\n user._rootElem$.subscribe(function (elem) { widget._rootElem$.onNext(elem); });\n}\n\nfunction makeConstructor() {\n return function customElementConstructor(vtree) {\n this.type = 'Widget';\n this.properties = vtree.properties;\n this.key = vtree.key;\n };\n}\n\nfunction makeInit(tagName, definitionFn) {\n var DOMUser = require('./dom-user');\n return function initCustomElement() {\n var widget = this;\n var element = createContainerElement(tagName, widget.properties);\n var user = new DOMUser(element);\n var eventStreams = definitionFn(user, element.cycleCustomElementProperties);\n widget._rootElem$ = new Rx.ReplaySubject(1);\n replicateUserRootElem$(user, widget);\n widget.eventStreamsSubscriptions = subscribeDispatchers(element, eventStreams);\n subscribeDispatchersWhenRootChanges(widget, eventStreams);\n widget.update(null, element);\n return element;\n };\n}\n\nfunction makeUpdate() {\n return function updateCustomElement(prev, elem) {\n if (!elem) { return; }\n if (!elem.cycleCustomElementProperties) { return; }\n if (!(elem.cycleCustomElementProperties instanceof InputProxy)) { return; }\n if (!elem.cycleCustomElementProperties.proxiedProps) { return; }\n\n var proxiedProps = elem.cycleCustomElementProperties.proxiedProps;\n for (var prop in proxiedProps) { if (proxiedProps.hasOwnProperty(prop)) {\n var propStreamName = prop;\n var propName = prop.slice(0, -1);\n if (this.properties.hasOwnProperty(propName)) {\n proxiedProps[propStreamName].onNext(this.properties[propName]);\n }\n }}\n };\n}\n\nmodule.exports = {\n makeConstructor: makeConstructor,\n makeInit: makeInit,\n makeUpdate: makeUpdate\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/src/custom-elements.js\n ** module id = 28\n ** module chunks = 0\n **/","var isObject = require(\"is-object\")\nvar isHook = require(\"../vnode/is-vhook.js\")\n\nmodule.exports = applyProperties\n\nfunction applyProperties(node, props, previous) {\n for (var propName in props) {\n var propValue = props[propName]\n\n if (propValue === undefined) {\n removeProperty(node, propName, propValue, previous);\n } else if (isHook(propValue)) {\n removeProperty(node, propName, propValue, previous)\n if (propValue.hook) {\n propValue.hook(node,\n propName,\n previous ? previous[propName] : undefined)\n }\n } else {\n if (isObject(propValue)) {\n patchObject(node, props, previous, propName, propValue);\n } else {\n node[propName] = propValue\n }\n }\n }\n}\n\nfunction removeProperty(node, propName, propValue, previous) {\n if (previous) {\n var previousValue = previous[propName]\n\n if (!isHook(previousValue)) {\n if (propName === \"attributes\") {\n for (var attrName in previousValue) {\n node.removeAttribute(attrName)\n }\n } else if (propName === \"style\") {\n for (var i in previousValue) {\n node.style[i] = \"\"\n }\n } else if (typeof previousValue === \"string\") {\n node[propName] = \"\"\n } else {\n node[propName] = null\n }\n } else if (previousValue.unhook) {\n previousValue.unhook(node, propName, propValue)\n }\n }\n}\n\nfunction patchObject(node, props, previous, propName, propValue) {\n var previousValue = previous ? previous[propName] : undefined\n\n // Set attributes\n if (propName === \"attributes\") {\n for (var attrName in propValue) {\n var attrValue = propValue[attrName]\n\n if (attrValue === undefined) {\n node.removeAttribute(attrName)\n } else {\n node.setAttribute(attrName, attrValue)\n }\n }\n\n return\n }\n\n if(previousValue && isObject(previousValue) &&\n getPrototype(previousValue) !== getPrototype(propValue)) {\n node[propName] = propValue\n return\n }\n\n if (!isObject(node[propName])) {\n node[propName] = {}\n }\n\n var replacer = propName === \"style\" ? \"\" : undefined\n\n for (var k in propValue) {\n var value = propValue[k]\n node[propName][k] = (value === undefined) ? replacer : value\n }\n}\n\nfunction getPrototype(value) {\n if (Object.getPrototypeOf) {\n return Object.getPrototypeOf(value)\n } else if (value.__proto__) {\n return value.__proto__\n } else if (value.constructor) {\n return value.constructor.prototype\n }\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/vdom/apply-properties.js\n ** module id = 29\n ** module chunks = 0\n **/","var version = require(\"./version\")\n\nmodule.exports = isVirtualNode\n\nfunction isVirtualNode(x) {\n return x && x.type === \"VirtualNode\" && x.version === version\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/vnode/is-vnode.js\n ** module id = 30\n ** module chunks = 0\n **/","var version = require(\"./version\")\n\nmodule.exports = isVirtualText\n\nfunction isVirtualText(x) {\n return x && x.type === \"VirtualText\" && x.version === version\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/vnode/is-vtext.js\n ** module id = 31\n ** module chunks = 0\n **/","module.exports = isWidget\n\nfunction isWidget(w) {\n return w && w.type === \"Widget\"\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/vnode/is-widget.js\n ** module id = 32\n ** module chunks = 0\n **/","var isVNode = require(\"./is-vnode\")\nvar isVText = require(\"./is-vtext\")\nvar isWidget = require(\"./is-widget\")\nvar isThunk = require(\"./is-thunk\")\n\nmodule.exports = handleThunk\n\nfunction handleThunk(a, b) {\n var renderedA = a\n var renderedB = b\n\n if (isThunk(b)) {\n renderedB = renderThunk(b, a)\n }\n\n if (isThunk(a)) {\n renderedA = renderThunk(a, null)\n }\n\n return {\n a: renderedA,\n b: renderedB\n }\n}\n\nfunction renderThunk(thunk, previous) {\n var renderedThunk = thunk.vnode\n\n if (!renderedThunk) {\n renderedThunk = thunk.vnode = thunk.render(previous)\n }\n\n if (!(isVNode(renderedThunk) ||\n isVText(renderedThunk) ||\n isWidget(renderedThunk))) {\n throw new Error(\"thunk did not return a valid node\");\n }\n\n return renderedThunk\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/vnode/handle-thunk.js\n ** module id = 33\n ** module chunks = 0\n **/","var topLevel = typeof global !== 'undefined' ? global :\n typeof window !== 'undefined' ? window : {}\nvar minDoc = require('min-document');\n\nif (typeof document !== 'undefined') {\n module.exports = document;\n} else {\n var doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4'];\n\n if (!doccy) {\n doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4'] = minDoc;\n }\n\n module.exports = doccy;\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/~/global/document.js\n ** module id = 34\n ** module chunks = 0\n **/","// Maps a virtual DOM tree onto a real DOM tree in an efficient manner.\n// We don't want to read all of the DOM nodes in the tree so we use\n// the in-order tree indexing to eliminate recursion down certain branches.\n// We only recurse into a DOM node if we know that it contains a child of\n// interest.\n\nvar noChild = {}\n\nmodule.exports = domIndex\n\nfunction domIndex(rootNode, tree, indices, nodes) {\n if (!indices || indices.length === 0) {\n return {}\n } else {\n indices.sort(ascending)\n return recurse(rootNode, tree, indices, nodes, 0)\n }\n}\n\nfunction recurse(rootNode, tree, indices, nodes, rootIndex) {\n nodes = nodes || {}\n\n\n if (rootNode) {\n if (indexInRange(indices, rootIndex, rootIndex)) {\n nodes[rootIndex] = rootNode\n }\n\n var vChildren = tree.children\n\n if (vChildren) {\n\n var childNodes = rootNode.childNodes\n\n for (var i = 0; i < tree.children.length; i++) {\n rootIndex += 1\n\n var vChild = vChildren[i] || noChild\n var nextIndex = rootIndex + (vChild.count || 0)\n\n // skip recursion down the tree if there are no nodes down here\n if (indexInRange(indices, rootIndex, nextIndex)) {\n recurse(childNodes[i], vChild, indices, nodes, rootIndex)\n }\n\n rootIndex = nextIndex\n }\n }\n }\n\n return nodes\n}\n\n// Binary search for an index in the interval [left, right]\nfunction indexInRange(indices, left, right) {\n if (indices.length === 0) {\n return false\n }\n\n var minIndex = 0\n var maxIndex = indices.length - 1\n var currentIndex\n var currentItem\n\n while (minIndex <= maxIndex) {\n currentIndex = ((maxIndex + minIndex) / 2) >> 0\n currentItem = indices[currentIndex]\n\n if (minIndex === maxIndex) {\n return currentItem >= left && currentItem <= right\n } else if (currentItem < left) {\n minIndex = currentIndex + 1\n } else if (currentItem > right) {\n maxIndex = currentIndex - 1\n } else {\n return true\n }\n }\n\n return false;\n}\n\nfunction ascending(a, b) {\n return a > b ? 1 : -1\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/vdom/dom-index.js\n ** module id = 35\n ** module chunks = 0\n **/","var applyProperties = require(\"./apply-properties\")\n\nvar isWidget = require(\"../vnode/is-widget.js\")\nvar VPatch = require(\"../vnode/vpatch.js\")\n\nvar render = require(\"./create-element\")\nvar updateWidget = require(\"./update-widget\")\n\nmodule.exports = applyPatch\n\nfunction applyPatch(vpatch, domNode, renderOptions) {\n var type = vpatch.type\n var vNode = vpatch.vNode\n var patch = vpatch.patch\n\n switch (type) {\n case VPatch.REMOVE:\n return removeNode(domNode, vNode)\n case VPatch.INSERT:\n return insertNode(domNode, patch, renderOptions)\n case VPatch.VTEXT:\n return stringPatch(domNode, vNode, patch, renderOptions)\n case VPatch.WIDGET:\n return widgetPatch(domNode, vNode, patch, renderOptions)\n case VPatch.VNODE:\n return vNodePatch(domNode, vNode, patch, renderOptions)\n case VPatch.ORDER:\n reorderChildren(domNode, patch)\n return domNode\n case VPatch.PROPS:\n applyProperties(domNode, patch, vNode.properties)\n return domNode\n case VPatch.THUNK:\n return replaceRoot(domNode,\n renderOptions.patch(domNode, patch, renderOptions))\n default:\n return domNode\n }\n}\n\nfunction removeNode(domNode, vNode) {\n var parentNode = domNode.parentNode\n\n if (parentNode) {\n parentNode.removeChild(domNode)\n }\n\n destroyWidget(domNode, vNode);\n\n return null\n}\n\nfunction insertNode(parentNode, vNode, renderOptions) {\n var newNode = render(vNode, renderOptions)\n\n if (parentNode) {\n parentNode.appendChild(newNode)\n }\n\n return parentNode\n}\n\nfunction stringPatch(domNode, leftVNode, vText, renderOptions) {\n var newNode\n\n if (domNode.nodeType === 3) {\n domNode.replaceData(0, domNode.length, vText.text)\n newNode = domNode\n } else {\n var parentNode = domNode.parentNode\n newNode = render(vText, renderOptions)\n\n if (parentNode) {\n parentNode.replaceChild(newNode, domNode)\n }\n }\n\n return newNode\n}\n\nfunction widgetPatch(domNode, leftVNode, widget, renderOptions) {\n var updating = updateWidget(leftVNode, widget)\n var newNode\n\n if (updating) {\n newNode = widget.update(leftVNode, domNode) || domNode\n } else {\n newNode = render(widget, renderOptions)\n }\n\n var parentNode = domNode.parentNode\n\n if (parentNode && newNode !== domNode) {\n parentNode.replaceChild(newNode, domNode)\n }\n\n if (!updating) {\n destroyWidget(domNode, leftVNode)\n }\n\n return newNode\n}\n\nfunction vNodePatch(domNode, leftVNode, vNode, renderOptions) {\n var parentNode = domNode.parentNode\n var newNode = render(vNode, renderOptions)\n\n if (parentNode) {\n parentNode.replaceChild(newNode, domNode)\n }\n\n return newNode\n}\n\nfunction destroyWidget(domNode, w) {\n if (typeof w.destroy === \"function\" && isWidget(w)) {\n w.destroy(domNode)\n }\n}\n\nfunction reorderChildren(domNode, bIndex) {\n var children = []\n var childNodes = domNode.childNodes\n var len = childNodes.length\n var i\n var reverseIndex = bIndex.reverse\n\n for (i = 0; i < len; i++) {\n children.push(domNode.childNodes[i])\n }\n\n var insertOffset = 0\n var move\n var node\n var insertNode\n var chainLength\n var insertedLength\n var nextSibling\n for (i = 0; i < len;) {\n move = bIndex[i]\n chainLength = 1\n if (move !== undefined && move !== i) {\n // try to bring forward as long of a chain as possible\n while (bIndex[i + chainLength] === move + chainLength) {\n chainLength++;\n }\n\n // the element currently at this index will be moved later so increase the insert offset\n if (reverseIndex[i] > i + chainLength) {\n insertOffset++\n }\n\n node = children[move]\n insertNode = childNodes[i + insertOffset] || null\n insertedLength = 0\n while (node !== insertNode && insertedLength++ < chainLength) {\n domNode.insertBefore(node, insertNode);\n node = children[move + insertedLength];\n }\n\n // the moved element came from the front of the array so reduce the insert offset\n if (move + chainLength < i) {\n insertOffset--\n }\n }\n\n // element at this index is scheduled to be removed so increase insert offset\n if (i in bIndex.removes) {\n insertOffset++\n }\n\n i += chainLength\n }\n}\n\nfunction replaceRoot(oldRoot, newRoot) {\n if (oldRoot && newRoot && oldRoot !== newRoot && oldRoot.parentNode) {\n console.log(oldRoot)\n oldRoot.parentNode.replaceChild(newRoot, oldRoot)\n }\n\n return newRoot;\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/vdom/patch-op.js\n ** module id = 36\n ** module chunks = 0\n **/","var version = require(\"./version\")\nvar isVNode = require(\"./is-vnode\")\nvar isWidget = require(\"./is-widget\")\nvar isThunk = require(\"./is-thunk\")\nvar isVHook = require(\"./is-vhook\")\n\nmodule.exports = VirtualNode\n\nvar noProperties = {}\nvar noChildren = []\n\nfunction VirtualNode(tagName, properties, children, key, namespace) {\n this.tagName = tagName\n this.properties = properties || noProperties\n this.children = children || noChildren\n this.key = key != null ? String(key) : undefined\n this.namespace = (typeof namespace === \"string\") ? namespace : null\n\n var count = (children && children.length) || 0\n var descendants = 0\n var hasWidgets = false\n var hasThunks = false\n var descendantHooks = false\n var hooks\n\n for (var propName in properties) {\n if (properties.hasOwnProperty(propName)) {\n var property = properties[propName]\n if (isVHook(property) && property.unhook) {\n if (!hooks) {\n hooks = {}\n }\n\n hooks[propName] = property\n }\n }\n }\n\n for (var i = 0; i < count; i++) {\n var child = children[i]\n if (isVNode(child)) {\n descendants += child.count || 0\n\n if (!hasWidgets && child.hasWidgets) {\n hasWidgets = true\n }\n\n if (!hasThunks && child.hasThunks) {\n hasThunks = true\n }\n\n if (!descendantHooks && (child.hooks || child.descendantHooks)) {\n descendantHooks = true\n }\n } else if (!hasWidgets && isWidget(child)) {\n if (typeof child.destroy === \"function\") {\n hasWidgets = true\n }\n } else if (!hasThunks && isThunk(child)) {\n hasThunks = true;\n }\n }\n\n this.count = count + descendants\n this.hasWidgets = hasWidgets\n this.hasThunks = hasThunks\n this.hooks = hooks\n this.descendantHooks = descendantHooks\n}\n\nVirtualNode.prototype.version = version\nVirtualNode.prototype.type = \"VirtualNode\"\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/vnode/vnode.js\n ** module id = 37\n ** module chunks = 0\n **/","var version = require(\"./version\")\n\nmodule.exports = VirtualText\n\nfunction VirtualText(text) {\n this.text = String(text)\n}\n\nVirtualText.prototype.version = version\nVirtualText.prototype.type = \"VirtualText\"\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/vnode/vtext.js\n ** module id = 38\n ** module chunks = 0\n **/","module.exports = isHook\n\nfunction isHook(hook) {\n return hook &&\n (typeof hook.hook === \"function\" && !hook.hasOwnProperty(\"hook\") ||\n typeof hook.unhook === \"function\" && !hook.hasOwnProperty(\"unhook\"))\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/vnode/is-vhook.js\n ** module id = 39\n ** module chunks = 0\n **/","module.exports = isThunk\r\n\r\nfunction isThunk(t) {\r\n return t && t.type === \"Thunk\"\r\n}\r\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/vnode/is-thunk.js\n ** module id = 40\n ** module chunks = 0\n **/","'use strict';\n\nvar split = require('browser-split');\n\nvar classIdSplit = /([\\.#]?[a-zA-Z0-9_:-]+)/;\nvar notClassId = /^\\.|#/;\n\nmodule.exports = parseTag;\n\nfunction parseTag(tag, props) {\n if (!tag) {\n return 'DIV';\n }\n\n var noId = !(props.hasOwnProperty('id'));\n\n var tagParts = split(tag, classIdSplit);\n var tagName = null;\n\n if (notClassId.test(tagParts[1])) {\n tagName = 'DIV';\n }\n\n var classes, part, type, i;\n\n for (i = 0; i < tagParts.length; i++) {\n part = tagParts[i];\n\n if (!part) {\n continue;\n }\n\n type = part.charAt(0);\n\n if (!tagName) {\n tagName = part;\n } else if (type === '.') {\n classes = classes || [];\n classes.push(part.substring(1, part.length));\n } else if (type === '#' && noId) {\n props.id = part.substring(1, part.length);\n }\n }\n\n if (classes) {\n if (props.className) {\n classes.push(props.className);\n }\n\n props.className = classes.join(' ');\n }\n\n return props.namespace ? tagName : tagName.toUpperCase();\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/virtual-hyperscript/parse-tag.js\n ** module id = 41\n ** module chunks = 0\n **/","'use strict';\n\nmodule.exports = SoftSetHook;\n\nfunction SoftSetHook(value) {\n if (!(this instanceof SoftSetHook)) {\n return new SoftSetHook(value);\n }\n\n this.value = value;\n}\n\nSoftSetHook.prototype.hook = function (node, propertyName) {\n if (node[propertyName] !== this.value) {\n node[propertyName] = this.value;\n }\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/virtual-hyperscript/hooks/soft-set-hook.js\n ** module id = 42\n ** module chunks = 0\n **/","'use strict';\n\nvar EvStore = require('ev-store');\n\nmodule.exports = EvHook;\n\nfunction EvHook(value) {\n if (!(this instanceof EvHook)) {\n return new EvHook(value);\n }\n\n this.value = value;\n}\n\nEvHook.prototype.hook = function (node, propertyName) {\n var es = EvStore(node);\n var propName = propertyName.substr(3);\n\n es[propName] = this.value;\n};\n\nEvHook.prototype.unhook = function(node, propertyName) {\n var es = EvStore(node);\n var propName = propertyName.substr(3);\n\n es[propName] = undefined;\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/virtual-hyperscript/hooks/ev-hook.js\n ** module id = 43\n ** module chunks = 0\n **/","var nativeIsArray = Array.isArray\nvar toString = Object.prototype.toString\n\nmodule.exports = nativeIsArray || isArray\n\nfunction isArray(obj) {\n return toString.call(obj) === \"[object Array]\"\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/~/x-is-array/index.js\n ** module id = 44\n ** module chunks = 0\n **/","/* (ignored) */\n\n\n/*****************\n ** WEBPACK FOOTER\n ** min-document (ignored)\n ** module id = 45\n ** module chunks = 0\n **/","module.exports = \"1\"\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/vnode/version.js\n ** module id = 46\n ** module chunks = 0\n **/","var version = require(\"./version\")\n\nVirtualPatch.NONE = 0\nVirtualPatch.VTEXT = 1\nVirtualPatch.VNODE = 2\nVirtualPatch.WIDGET = 3\nVirtualPatch.PROPS = 4\nVirtualPatch.ORDER = 5\nVirtualPatch.INSERT = 6\nVirtualPatch.REMOVE = 7\nVirtualPatch.THUNK = 8\n\nmodule.exports = VirtualPatch\n\nfunction VirtualPatch(type, vNode, patch) {\n this.type = Number(type)\n this.vNode = vNode\n this.patch = patch\n}\n\nVirtualPatch.prototype.version = version\nVirtualPatch.prototype.type = \"VirtualPatch\"\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/vnode/vpatch.js\n ** module id = 47\n ** module chunks = 0\n **/","var isObject = require(\"is-object\")\nvar isHook = require(\"../vnode/is-vhook\")\n\nmodule.exports = diffProps\n\nfunction diffProps(a, b) {\n var diff\n\n for (var aKey in a) {\n if (!(aKey in b)) {\n diff = diff || {}\n diff[aKey] = undefined\n }\n\n var aValue = a[aKey]\n var bValue = b[aKey]\n\n if (aValue === bValue) {\n continue\n } else if (isObject(aValue) && isObject(bValue)) {\n if (getPrototype(bValue) !== getPrototype(aValue)) {\n diff = diff || {}\n diff[aKey] = bValue\n } else if (isHook(bValue)) {\n diff = diff || {}\n diff[aKey] = bValue\n } else {\n var objectDiff = diffProps(aValue, bValue)\n if (objectDiff) {\n diff = diff || {}\n diff[aKey] = objectDiff\n }\n }\n } else {\n diff = diff || {}\n diff[aKey] = bValue\n }\n }\n\n for (var bKey in b) {\n if (!(bKey in a)) {\n diff = diff || {}\n diff[bKey] = b[bKey]\n }\n }\n\n return diff\n}\n\nfunction getPrototype(value) {\n if (Object.getPrototypeOf) {\n return Object.getPrototypeOf(value)\n } else if (value.__proto__) {\n return value.__proto__\n } else if (value.constructor) {\n return value.constructor.prototype\n }\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/vtree/diff-props.js\n ** module id = 48\n ** module chunks = 0\n **/","module.exports = function(module) {\r\n\tif(!module.webpackPolyfill) {\r\n\t\tmodule.deprecate = function() {};\r\n\t\tmodule.paths = [];\r\n\t\t// module.parent = undefined by default\r\n\t\tmodule.children = [];\r\n\t\tmodule.webpackPolyfill = 1;\r\n\t}\r\n\treturn module;\r\n}\r\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/buildin/module.js\n ** module id = 49\n ** module chunks = 0\n **/","\"use strict\";\n\nmodule.exports = function isObject(x) {\n\treturn typeof x === \"object\" && x !== null;\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/~/is-object/index.js\n ** module id = 50\n ** module chunks = 0\n **/","// shim for using process in browser\n\nvar process = module.exports = {};\nvar queue = [];\nvar draining = false;\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n draining = true;\n var currentQueue;\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n var i = -1;\n while (++i < len) {\n currentQueue[i]();\n }\n len = queue.length;\n }\n draining = false;\n}\nprocess.nextTick = function (fun) {\n queue.push(fun);\n if (!draining) {\n setTimeout(drainQueue, 0);\n }\n};\n\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\n// TODO(shtylman)\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/process/browser.js\n ** module id = 51\n ** module chunks = 0\n **/","var isWidget = require(\"../vnode/is-widget.js\")\n\nmodule.exports = updateWidget\n\nfunction updateWidget(a, b) {\n if (isWidget(a) && isWidget(b)) {\n if (\"name\" in a && \"name\" in b) {\n return a.id === b.id\n } else {\n return a.init === b.init\n }\n }\n\n return false\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/vdom/update-widget.js\n ** module id = 52\n ** module chunks = 0\n **/","'use strict';\n\nvar OneVersionConstraint = require('individual/one-version');\n\nvar MY_VERSION = '7';\nOneVersionConstraint('ev-store', MY_VERSION);\n\nvar hashKey = '__EV_STORE_KEY@' + MY_VERSION;\n\nmodule.exports = EvStore;\n\nfunction EvStore(elem) {\n var hash = elem[hashKey];\n\n if (!hash) {\n hash = elem[hashKey] = {};\n }\n\n return hash;\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/~/ev-store/index.js\n ** module id = 53\n ** module chunks = 0\n **/","/*!\n * Cross-Browser Split 1.1.1\n * Copyright 2007-2012 Steven Levithan <stevenlevithan.com>\n * Available under the MIT License\n * ECMAScript compliant, uniform cross-browser split method\n */\n\n/**\n * Splits a string into an array of strings using a regex or string separator. Matches of the\n * separator are not included in the result array. However, if `separator` is a regex that contains\n * capturing groups, backreferences are spliced into the result each time `separator` is matched.\n * Fixes browser bugs compared to the native `String.prototype.split` and can be used reliably\n * cross-browser.\n * @param {String} str String to split.\n * @param {RegExp|String} separator Regex or string to use for separating the string.\n * @param {Number} [limit] Maximum number of items to include in the result array.\n * @returns {Array} Array of substrings.\n * @example\n *\n * // Basic use\n * split('a b c d', ' ');\n * // -> ['a', 'b', 'c', 'd']\n *\n * // With limit\n * split('a b c d', ' ', 2);\n * // -> ['a', 'b']\n *\n * // Backreferences in result array\n * split('..word1 word2..', /([a-z]+)(\\d+)/i);\n * // -> ['..', 'word', '1', ' ', 'word', '2', '..']\n */\nmodule.exports = (function split(undef) {\n\n var nativeSplit = String.prototype.split,\n compliantExecNpcg = /()??/.exec(\"\")[1] === undef,\n // NPCG: nonparticipating capturing group\n self;\n\n self = function(str, separator, limit) {\n // If `separator` is not a regex, use `nativeSplit`\n if (Object.prototype.toString.call(separator) !== \"[object RegExp]\") {\n return nativeSplit.call(str, separator, limit);\n }\n var output = [],\n flags = (separator.ignoreCase ? \"i\" : \"\") + (separator.multiline ? \"m\" : \"\") + (separator.extended ? \"x\" : \"\") + // Proposed for ES6\n (separator.sticky ? \"y\" : \"\"),\n // Firefox 3+\n lastLastIndex = 0,\n // Make `global` and avoid `lastIndex` issues by working with a copy\n separator = new RegExp(separator.source, flags + \"g\"),\n separator2, match, lastIndex, lastLength;\n str += \"\"; // Type-convert\n if (!compliantExecNpcg) {\n // Doesn't need flags gy, but they don't hurt\n separator2 = new RegExp(\"^\" + separator.source + \"$(?!\\\\s)\", flags);\n }\n /* Values for `limit`, per the spec:\n * If undefined: 4294967295 // Math.pow(2, 32) - 1\n * If 0, Infinity, or NaN: 0\n * If positive number: limit = Math.floor(limit); if (limit > 4294967295) limit -= 4294967296;\n * If negative number: 4294967296 - Math.floor(Math.abs(limit))\n * If other: Type-convert, then use the above rules\n */\n limit = limit === undef ? -1 >>> 0 : // Math.pow(2, 32) - 1\n limit >>> 0; // ToUint32(limit)\n while (match = separator.exec(str)) {\n // `separator.lastIndex` is not reliable cross-browser\n lastIndex = match.index + match[0].length;\n if (lastIndex > lastLastIndex) {\n output.push(str.slice(lastLastIndex, match.index));\n // Fix browsers whose `exec` methods don't consistently return `undefined` for\n // nonparticipating capturing groups\n if (!compliantExecNpcg && match.length > 1) {\n match[0].replace(separator2, function() {\n for (var i = 1; i < arguments.length - 2; i++) {\n if (arguments[i] === undef) {\n match[i] = undef;\n }\n }\n });\n }\n if (match.length > 1 && match.index < str.length) {\n Array.prototype.push.apply(output, match.slice(1));\n }\n lastLength = match[0].length;\n lastLastIndex = lastIndex;\n if (output.length >= limit) {\n break;\n }\n }\n if (separator.lastIndex === match.index) {\n separator.lastIndex++; // Avoid an infinite loop\n }\n }\n if (lastLastIndex === str.length) {\n if (lastLength || !separator.test(\"\")) {\n output.push(\"\");\n }\n } else {\n output.push(str.slice(lastLastIndex));\n }\n return output.length > limit ? output.slice(0, limit) : output;\n };\n\n return self;\n})();\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/~/browser-split/index.js\n ** module id = 54\n ** module chunks = 0\n **/","'use strict';\n\nvar Individual = require('./index.js');\n\nmodule.exports = OneVersion;\n\nfunction OneVersion(moduleName, version, defaultValue) {\n var key = '__INDIVIDUAL_ONE_VERSION_' + moduleName;\n var enforceKey = key + '_ENFORCE_SINGLETON';\n\n var versionValue = Individual(enforceKey, version);\n\n if (versionValue !== version) {\n throw new Error('Can only have one copy of ' +\n moduleName + '.\\n' +\n 'You already have version ' + versionValue +\n ' installed.\\n' +\n 'This means you cannot install version ' + version);\n }\n\n return Individual(key, defaultValue);\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/~/ev-store/~/individual/one-version.js\n ** module id = 55\n ** module chunks = 0\n **/","'use strict';\n\n/*global window, global*/\n\nvar root = typeof window !== 'undefined' ?\n window : typeof global !== 'undefined' ?\n global : {};\n\nmodule.exports = Individual;\n\nfunction Individual(key, value) {\n if (key in root) {\n return root[key];\n }\n\n root[key] = value;\n\n return value;\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/cyclejs/~/virtual-dom/~/ev-store/~/individual/index.js\n ** module id = 56\n ** module chunks = 0\n **/"],"sourceRoot":"","file":"script.js"}