{"version":3,"sources":["jsdelivr-header.js","/npm/hydux-pixi@0.1.1/lib/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,IAAI,QAAU,QAAQ,SAClB,KAAO,QAAQ,UACf,OAAS,QAAQ,eACjB,MAAQ,CAAE,cAAe,KAAK,GAClC,QAAQ,MAAQ,MAChB,IAAI,EAAI,KAAK,EACb,QAAQ,EAAI,EACZ,IAAI,sBAAwB,wBAC5B,SAAS,SAAS,EAAW,GAEzB,IAAI,OADY,IAAZ,IAAsB,EAAU,CAAC,GAEtB,QAAQ,SAAS,CAAC,EAAG,GACpC,OAAO,SAAU,GAAO,OAAO,SAAU,GAAS,OAAO,EAAI,QAAQ,SAAS,CAAC,EAAG,EAAO,CAAE,KAAM,SAAU,EAAG,GACtG,MAAO,CAAC,EAAM,KAAM,EAAG,EAC3B,EAAG,SAAU,SAAU,GACnB,EAAM,UAAY,EAAM,SAAS,GAC7B,GACA,OAAO,qBAAqB,GAahC,EAAQ,OAAO,uBAVF,gBACoB,IAAlB,EAAQ,OACf,EAAQ,MAAM,QACd,OAAO,OAAO,EAAW,EAAK,GAAG,EAAK,GAAI,EAAK,KAC/C,EAAQ,MAAM,OAGd,OAAO,OAAO,EAAW,EAAK,GAAG,EAAK,GAAI,EAAK,IAEvD,GAEJ,IAAO,CAAG,CAClB,CACA,QAAQ,QAAU","file":"/npm/hydux-pixi@0.1.1/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/hydux-pixi@0.1.1/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar tslib_1 = require(\"tslib\");\nvar Vdom = require(\"./vdom\");\nvar pixi_1 = require(\"./vdom/pixi\");\nvar React = { createElement: Vdom.h };\nexports.React = React;\nvar h = Vdom.h;\nexports.h = h;\nvar __HYDUX_RENDER_NODE__ = '__HYDUX_RENDER_NODE__';\nfunction withPixi(container, options) {\n    if (options === void 0) { options = {}; }\n    var rafId;\n    var _options = tslib_1.__assign({}, options);\n    return function (app) { return function (props) { return app(tslib_1.__assign({}, props, { view: function (s, a) {\n            return [props.view, s, a];\n        }, onRender: function (view) {\n            props.onRender && props.onRender(view);\n            if (rafId) {\n                window.cancelAnimationFrame(rafId);\n            }\n            // fix duplicate node in hmr\n            var render = function () {\n                if (typeof options.stats !== 'undefined') {\n                    options.stats.begin();\n                    pixi_1.render(container, view[0](view[1], view[2]));\n                    options.stats.end();\n                }\n                else {\n                    pixi_1.render(container, view[0](view[1], view[2]));\n                }\n            };\n            rafId = window.requestAnimationFrame(render);\n        } })); }; };\n}\nexports.default = withPixi;\n"]}