{"map":"{\"version\":3,\"file\":\"merge.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/operators/merge.ts\"],\"names\":[],\"mappings\":\"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAShC,OAAO,EACL,SAAS,GACV,MAAM,eAAe,CAAC;AAevB,MAAM,oBAA6D,UAAa;IAC9E,MAAM,CAAC,KAAM,SAAQ,UAAU;QAO7B,KAAK,CAAC,EAAE,MAAM,EAAuC;YACnD,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;gBACvB,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;YACxB,CAAC;YAED,MAAM,CAAC,IAAI,gBAAgB,CACzB,CAAC,QAAqB;gBACpB,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,GAAG,MAAM,CAAC,CAAC,GAAG,CACzC,MAAM,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CACrC,CAAC;gBAEF,MAAM,CAAC;oBACL,aAAa,CAAC,OAAO,CACnB,YAAY,IAAI,YAAY,CAAC,WAAW,EAAE,CAC3C,CAAC;gBACJ,CAAC,CAAC;YACJ,CAAC,CACF,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC\"}","code":"/** @license\r\n *  Copyright 2016 - present The Material Motion Authors. All Rights Reserved.\r\n *\r\n *  Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\r\n *  use this file except in compliance with the License. You may obtain a copy\r\n *  of the License at\r\n *\r\n *      http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n *  Unless required by applicable law or agreed to in writing, software\r\n *  distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\r\n *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\r\n *  License for the specific language governing permissions and limitations\r\n *  under the License.\r\n */\r\nimport { MotionObservable, } from '../observables/proxies';\r\nimport { isDefined, } from '../typeGuards';\r\nexport function withMerge(superclass) {\r\n    return class extends superclass {\r\n        merge({ others }) {\r\n            if (!isDefined(others)) {\r\n                others = arguments[0];\r\n            }\r\n            return new MotionObservable((observer) => {\r\n                const subscriptions = [this, ...others].map(stream => stream.subscribe(observer));\r\n                return () => {\r\n                    subscriptions.forEach(subscription => subscription.unsubscribe());\r\n                };\r\n            });\r\n        }\r\n    };\r\n}\r\n//# sourceMappingURL=merge.js.map","dts":{"name":"/Users/brentons/Projects/material-motion-js/packages/core/operators/merge.d.ts","text":"import { Constructor, Observable, ObservableWithMotionOperators } from '../types';\r\nexport declare type MergeArgs<T> = {\r\n    others: Array<Observable<T>>;\r\n};\r\nexport interface MotionMergeable<T> extends Observable<T> {\r\n    merge(kwargs: MergeArgs<T>): ObservableWithMotionOperators<T>;\r\n    merge(others: Array<Observable<T>>): ObservableWithMotionOperators<T>;\r\n}\r\nexport declare function withMerge<T, S extends Constructor<Observable<T>>>(superclass: S): S & Constructor<MotionMergeable<T>>;\r\n"}}
