{"map":"{\"version\":3,\"file\":\"rewriteTo.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/operators/rewriteTo.ts\"],\"names\":[],\"mappings\":\"AAAA;;;;;;;;;;;;;;GAcG;;AAUH,OAAO,EACL,SAAS,GACV,MAAM,eAAe,CAAC;AAgBvB,MAAM,wBAA6E,UAAa;IAC9F,MAAM,CAAC,KAAM,SAAQ,UAAU;QAM7B,SAAS,CAAI,EAAgF;gBAAhF,EAAE,MAAM,EAAE,oBAAoB,GAAG,IAAI,OAA2C,EAAzC,2EAAqB;YACvE,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,CAAC,YAAY,iBACtB,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,KAAK,EAC/B,MAAM,EAAE;oBACN,KAAK,EAAE,MAAM;iBACd,EACD,oBAAoB,IACjB,kBAAkB,EACrB,CAAC;QACL,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 * as tslib_1 from \"tslib\";\r\nimport { isDefined, } from '../typeGuards';\r\nexport function withRewriteTo(superclass) {\r\n    return class extends superclass {\r\n        rewriteTo(_a) {\r\n            var { value$, onlyEmitWithUpstream = true } = _a, reactiveMapOptions = tslib_1.__rest(_a, [\"value$\", \"onlyEmitWithUpstream\"]);\r\n            if (!isDefined(value$)) {\r\n                value$ = arguments[0];\r\n            }\r\n            return this._reactiveMap(Object.assign({ transform: ({ value }) => value, inputs: {\r\n                    value: value$\r\n                }, onlyEmitWithUpstream }, reactiveMapOptions));\r\n        }\r\n    };\r\n}\r\n//# sourceMappingURL=rewriteTo.js.map"}
