marko 5.20.9 → 5.21.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/compiler/config.js +1 -2
- package/dist/compiler/index.js +1 -2
- package/dist/compiler/modules.js +1 -2
- package/dist/core-tags/components/init-components-tag.js +1 -2
- package/dist/core-tags/components/preferred-script-location-tag.js +1 -2
- package/dist/core-tags/components/preserve-tag/index-browser.js +1 -2
- package/dist/core-tags/components/preserve-tag/index.js +1 -2
- package/dist/core-tags/core/__flush_here_and_after__.js +1 -2
- package/dist/core-tags/core/await/AsyncValue.js +1 -2
- package/dist/core-tags/core/await/client-reorder-runtime.js +1 -2
- package/dist/core-tags/core/await/renderer.js +1 -2
- package/dist/core-tags/core/await/reorderer-renderer.js +1 -2
- package/dist/index.js +1 -2
- package/dist/loader/index-browser.js +1 -2
- package/dist/loader/index.js +1 -2
- package/dist/node-require/browser-refresh.js +1 -2
- package/dist/node-require/hot-reload.js +1 -2
- package/dist/node-require/index.js +1 -2
- package/dist/runtime/RenderResult.js +1 -2
- package/dist/runtime/components/Component.js +1 -2
- package/dist/runtime/components/ComponentDef.js +1 -2
- package/dist/runtime/components/ComponentsContext.js +1 -2
- package/dist/runtime/components/GlobalComponentsContext.js +1 -2
- package/dist/runtime/components/KeySequence.js +1 -2
- package/dist/runtime/components/ServerComponent.js +1 -2
- package/dist/runtime/components/State.js +1 -2
- package/dist/runtime/components/attach-detach.js +1 -2
- package/dist/runtime/components/beginComponent/index-browser.js +1 -2
- package/dist/runtime/components/beginComponent/index.js +1 -2
- package/dist/runtime/components/defineComponent.js +1 -2
- package/dist/runtime/components/dom-data.js +1 -2
- package/dist/runtime/components/endComponent/index-browser.js +1 -2
- package/dist/runtime/components/endComponent/index.js +1 -2
- package/dist/runtime/components/entry/index-browser.js +1 -2
- package/dist/runtime/components/entry/index.js +1 -2
- package/dist/runtime/components/event-delegation.js +1 -2
- package/dist/runtime/components/index.js +1 -2
- package/dist/runtime/components/init-components/index-browser.js +1 -2
- package/dist/runtime/components/init-components/index.js +1 -2
- package/dist/runtime/components/registry/index-browser.js +1 -2
- package/dist/runtime/components/registry/index.js +1 -2
- package/dist/runtime/components/renderer.js +1 -2
- package/dist/runtime/components/update-manager.js +1 -2
- package/dist/runtime/components/util/index-browser.js +1 -2
- package/dist/runtime/components/util/index.js +1 -2
- package/dist/runtime/createOut.js +1 -2
- package/dist/runtime/dom-insert.js +1 -2
- package/dist/runtime/events.js +1 -2
- package/dist/runtime/helpers/_change-case.js +1 -2
- package/dist/runtime/helpers/assign.js +1 -2
- package/dist/runtime/helpers/class-value.js +1 -2
- package/dist/runtime/helpers/dynamic-tag.js +1 -2
- package/dist/runtime/helpers/load-nested-tag.js +1 -2
- package/dist/runtime/helpers/merge.js +1 -2
- package/dist/runtime/helpers/render-tag.js +1 -2
- package/dist/runtime/helpers/style-value.js +1 -2
- package/dist/runtime/helpers/to-string.js +1 -2
- package/dist/runtime/html/AsyncStream.js +1 -2
- package/dist/runtime/html/BufferedWriter.js +1 -2
- package/dist/runtime/html/StringWriter.js +1 -2
- package/dist/runtime/html/create-readable/index-browser.js +1 -2
- package/dist/runtime/html/create-readable/index.js +1 -2
- package/dist/runtime/html/helpers/_dynamic-attr.js +1 -2
- package/dist/runtime/html/helpers/attr.js +1 -2
- package/dist/runtime/html/helpers/attrs.js +1 -2
- package/dist/runtime/html/helpers/class-attr.js +1 -2
- package/dist/runtime/html/helpers/data-marko.js +1 -2
- package/dist/runtime/html/helpers/escape-quotes.js +1 -2
- package/dist/runtime/html/helpers/escape-script-placeholder.js +1 -2
- package/dist/runtime/html/helpers/escape-style-placeholder.js +1 -2
- package/dist/runtime/html/helpers/escape-xml.js +1 -2
- package/dist/runtime/html/helpers/merge-attrs.js +1 -2
- package/dist/runtime/html/helpers/props-script.js +1 -2
- package/dist/runtime/html/helpers/style-attr.js +1 -2
- package/dist/runtime/html/hot-reload.js +1 -2
- package/dist/runtime/html/index.js +1 -2
- package/dist/runtime/queueMicrotask.js +1 -2
- package/dist/runtime/renderable.js +1 -2
- package/dist/runtime/setImmediate/index-browser.js +1 -2
- package/dist/runtime/setImmediate/index-worker.js +1 -2
- package/dist/runtime/setImmediate/index.js +1 -2
- package/dist/runtime/vdom/AsyncVDOMBuilder.js +1 -2
- package/dist/runtime/vdom/VComponent.js +1 -2
- package/dist/runtime/vdom/VDocumentFragment.js +1 -2
- package/dist/runtime/vdom/VElement.js +1 -2
- package/dist/runtime/vdom/VFragment.js +1 -2
- package/dist/runtime/vdom/VNode.js +1 -2
- package/dist/runtime/vdom/VText.js +1 -2
- package/dist/runtime/vdom/helpers/attrs.js +1 -2
- package/dist/runtime/vdom/helpers/const.js +1 -2
- package/dist/runtime/vdom/helpers/v-element.js +1 -2
- package/dist/runtime/vdom/helpers/v-text.js +1 -2
- package/dist/runtime/vdom/hot-reload.js +1 -2
- package/dist/runtime/vdom/index.js +1 -2
- package/dist/runtime/vdom/morphdom/fragment.js +1 -2
- package/dist/runtime/vdom/morphdom/helpers.js +1 -2
- package/dist/runtime/vdom/morphdom/index.js +1 -2
- package/dist/runtime/vdom/morphdom/specialElHandlers.js +1 -2
- package/dist/runtime/vdom/parse-html.js +1 -2
- package/dist/runtime/vdom/preserve-attrs.js +1 -2
- package/dist/runtime/vdom/vdom.js +1 -2
- package/dist/taglib/index.js +1 -2
- package/package.json +4 -5
- package/LICENSE +0 -21
- package/dist/compiler/config.js.map +0 -1
- package/dist/compiler/index.js.map +0 -1
- package/dist/compiler/modules.js.map +0 -1
- package/dist/core-tags/components/init-components-tag.js.map +0 -1
- package/dist/core-tags/components/preferred-script-location-tag.js.map +0 -1
- package/dist/core-tags/components/preserve-tag/index-browser.js.map +0 -1
- package/dist/core-tags/components/preserve-tag/index.js.map +0 -1
- package/dist/core-tags/core/__flush_here_and_after__.js.map +0 -1
- package/dist/core-tags/core/await/AsyncValue.js.map +0 -1
- package/dist/core-tags/core/await/client-reorder-runtime.js.map +0 -1
- package/dist/core-tags/core/await/renderer.js.map +0 -1
- package/dist/core-tags/core/await/reorderer-renderer.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/loader/index-browser.js.map +0 -1
- package/dist/loader/index.js.map +0 -1
- package/dist/node-require/browser-refresh.js.map +0 -1
- package/dist/node-require/hot-reload.js.map +0 -1
- package/dist/node-require/index.js.map +0 -1
- package/dist/runtime/RenderResult.js.map +0 -1
- package/dist/runtime/components/Component.js.map +0 -1
- package/dist/runtime/components/ComponentDef.js.map +0 -1
- package/dist/runtime/components/ComponentsContext.js.map +0 -1
- package/dist/runtime/components/GlobalComponentsContext.js.map +0 -1
- package/dist/runtime/components/KeySequence.js.map +0 -1
- package/dist/runtime/components/ServerComponent.js.map +0 -1
- package/dist/runtime/components/State.js.map +0 -1
- package/dist/runtime/components/attach-detach.js.map +0 -1
- package/dist/runtime/components/beginComponent/index-browser.js.map +0 -1
- package/dist/runtime/components/beginComponent/index.js.map +0 -1
- package/dist/runtime/components/defineComponent.js.map +0 -1
- package/dist/runtime/components/dom-data.js.map +0 -1
- package/dist/runtime/components/endComponent/index-browser.js.map +0 -1
- package/dist/runtime/components/endComponent/index.js.map +0 -1
- package/dist/runtime/components/entry/index-browser.js.map +0 -1
- package/dist/runtime/components/entry/index.js.map +0 -1
- package/dist/runtime/components/event-delegation.js.map +0 -1
- package/dist/runtime/components/index.js.map +0 -1
- package/dist/runtime/components/init-components/index-browser.js.map +0 -1
- package/dist/runtime/components/init-components/index.js.map +0 -1
- package/dist/runtime/components/registry/index-browser.js.map +0 -1
- package/dist/runtime/components/registry/index.js.map +0 -1
- package/dist/runtime/components/renderer.js.map +0 -1
- package/dist/runtime/components/update-manager.js.map +0 -1
- package/dist/runtime/components/util/index-browser.js.map +0 -1
- package/dist/runtime/components/util/index.js.map +0 -1
- package/dist/runtime/createOut.js.map +0 -1
- package/dist/runtime/dom-insert.js.map +0 -1
- package/dist/runtime/events.js.map +0 -1
- package/dist/runtime/helpers/_change-case.js.map +0 -1
- package/dist/runtime/helpers/assign.js.map +0 -1
- package/dist/runtime/helpers/class-value.js.map +0 -1
- package/dist/runtime/helpers/dynamic-tag.js.map +0 -1
- package/dist/runtime/helpers/load-nested-tag.js.map +0 -1
- package/dist/runtime/helpers/merge.js.map +0 -1
- package/dist/runtime/helpers/render-tag.js.map +0 -1
- package/dist/runtime/helpers/style-value.js.map +0 -1
- package/dist/runtime/helpers/to-string.js.map +0 -1
- package/dist/runtime/html/AsyncStream.js.map +0 -1
- package/dist/runtime/html/BufferedWriter.js.map +0 -1
- package/dist/runtime/html/StringWriter.js.map +0 -1
- package/dist/runtime/html/create-readable/index-browser.js.map +0 -1
- package/dist/runtime/html/create-readable/index.js.map +0 -1
- package/dist/runtime/html/helpers/_dynamic-attr.js.map +0 -1
- package/dist/runtime/html/helpers/attr.js.map +0 -1
- package/dist/runtime/html/helpers/attrs.js.map +0 -1
- package/dist/runtime/html/helpers/class-attr.js.map +0 -1
- package/dist/runtime/html/helpers/data-marko.js.map +0 -1
- package/dist/runtime/html/helpers/escape-quotes.js.map +0 -1
- package/dist/runtime/html/helpers/escape-script-placeholder.js.map +0 -1
- package/dist/runtime/html/helpers/escape-style-placeholder.js.map +0 -1
- package/dist/runtime/html/helpers/escape-xml.js.map +0 -1
- package/dist/runtime/html/helpers/merge-attrs.js.map +0 -1
- package/dist/runtime/html/helpers/props-script.js.map +0 -1
- package/dist/runtime/html/helpers/style-attr.js.map +0 -1
- package/dist/runtime/html/hot-reload.js.map +0 -1
- package/dist/runtime/html/index.js.map +0 -1
- package/dist/runtime/queueMicrotask.js.map +0 -1
- package/dist/runtime/renderable.js.map +0 -1
- package/dist/runtime/setImmediate/index-browser.js.map +0 -1
- package/dist/runtime/setImmediate/index-worker.js.map +0 -1
- package/dist/runtime/setImmediate/index.js.map +0 -1
- package/dist/runtime/vdom/AsyncVDOMBuilder.js.map +0 -1
- package/dist/runtime/vdom/VComponent.js.map +0 -1
- package/dist/runtime/vdom/VDocumentFragment.js.map +0 -1
- package/dist/runtime/vdom/VElement.js.map +0 -1
- package/dist/runtime/vdom/VFragment.js.map +0 -1
- package/dist/runtime/vdom/VNode.js.map +0 -1
- package/dist/runtime/vdom/VText.js.map +0 -1
- package/dist/runtime/vdom/helpers/attrs.js.map +0 -1
- package/dist/runtime/vdom/helpers/const.js.map +0 -1
- package/dist/runtime/vdom/helpers/v-element.js.map +0 -1
- package/dist/runtime/vdom/helpers/v-text.js.map +0 -1
- package/dist/runtime/vdom/hot-reload.js.map +0 -1
- package/dist/runtime/vdom/index.js.map +0 -1
- package/dist/runtime/vdom/morphdom/fragment.js.map +0 -1
- package/dist/runtime/vdom/morphdom/helpers.js.map +0 -1
- package/dist/runtime/vdom/morphdom/index.js.map +0 -1
- package/dist/runtime/vdom/morphdom/specialElHandlers.js.map +0 -1
- package/dist/runtime/vdom/parse-html.js.map +0 -1
- package/dist/runtime/vdom/preserve-attrs.js.map +0 -1
- package/dist/runtime/vdom/vdom.js.map +0 -1
- package/dist/taglib/index.js.map +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/runtime/html/BufferedWriter.js"],"names":["immediate","require","setImmediate","clearImmediate","StringWriter","BufferedWriter","wrappedStream","call","_wrapped","_scheduled","prototype","Object","assign","scheduleFlush","flush","bind","end","isTTY","writer","contents","toString","length","write","clear","module","exports"],"mappings":"AAAA;;AAEA,MAAMA,SAAS,GAAGC,OAAO,CAAC,iBAAD,CAAzB;AACA,MAAMC,YAAY,GAAGF,SAAS,IAA9B;AACA,MAAMG,cAAc,GAAGH,SAAS,IAAhC;AACA,MAAMI,YAAY,GAAGH,OAAO,CAAC,gBAAD,CAA5B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAASI,cAAT,CAAwBC,aAAxB,EAAuC;AACrCF,EAAAA,YAAY,CAACG,IAAb,CAAkB,IAAlB;AACA,OAAKC,QAAL,GAAgBF,aAAhB;AACA,OAAKG,UAAL,GAAkB,IAAlB;AACD;;AAEDJ,cAAc,CAACK,SAAf,GAA2BC,MAAM,CAACC,MAAP;AACzB;AACEC,EAAAA,aAAa,GAAG;AACd,QAAI,CAAC,KAAKJ,UAAV,EAAsB;AACpB,WAAKA,UAAL,GAAkBP,YAAY,CAACY,KAAK,CAACC,IAAN,CAAW,CAAX,EAAc,IAAd,CAAD,CAA9B;AACD;AACF,GALH;;AAOEC,EAAAA,GAAG,EAAE,YAAY;AACfF,IAAAA,KAAK,CAAC,IAAD,CAAL;AACA,QAAI,CAAC,KAAKN,QAAL,CAAcS,KAAnB,EAA0B;AACxB,WAAKT,QAAL,CAAcQ,GAAd;AACD;AACF,GAZH,EADyB;;AAezBZ,YAAY,CAACM,SAfY,CAA3B;;;AAkBA,SAASI,KAAT,CAAeI,MAAf,EAAuB;AACrB,QAAMC,QAAQ,GAAGD,MAAM,CAACE,QAAP,EAAjB;AACA,MAAID,QAAQ,CAACE,MAAT,KAAoB,CAAxB,EAA2B;AACzBH,IAAAA,MAAM,CAACV,QAAP,CAAgBc,KAAhB,CAAsBH,QAAtB;AACAD,IAAAA,MAAM,CAACK,KAAP;AACA,QAAIL,MAAM,CAACV,QAAP,CAAgBM,KAApB,EAA2B;AACzBI,MAAAA,MAAM,CAACV,QAAP,CAAgBM,KAAhB;AACD;AACF;;AAEDX,EAAAA,cAAc,CAACe,MAAM,CAACT,UAAR,CAAd;AACAS,EAAAA,MAAM,CAACT,UAAP,GAAoB,IAApB;AACD;;AAEDe,MAAM,CAACC,OAAP,GAAiBpB,cAAjB","sourcesContent":["\"use strict\";\n\nconst immediate = require(\"../setImmediate\");\nconst setImmediate = immediate.___setImmediate;\nconst clearImmediate = immediate.___clearImmediate;\nconst StringWriter = require(\"./StringWriter\");\n\n/**\n * Simple wrapper that can be used to wrap a stream\n * to reduce the number of write calls. In Node.js world,\n * each stream.write() becomes a chunk. We can avoid overhead\n * by reducing the number of chunks by buffering the output.\n */\nfunction BufferedWriter(wrappedStream) {\n StringWriter.call(this);\n this._wrapped = wrappedStream;\n this._scheduled = null;\n}\n\nBufferedWriter.prototype = Object.assign(\n {\n scheduleFlush() {\n if (!this._scheduled) {\n this._scheduled = setImmediate(flush.bind(0, this));\n }\n },\n\n end: function () {\n flush(this);\n if (!this._wrapped.isTTY) {\n this._wrapped.end();\n }\n }\n },\n StringWriter.prototype\n);\n\nfunction flush(writer) {\n const contents = writer.toString();\n if (contents.length !== 0) {\n writer._wrapped.write(contents);\n writer.clear();\n if (writer._wrapped.flush) {\n writer._wrapped.flush();\n }\n }\n\n clearImmediate(writer._scheduled);\n writer._scheduled = null;\n}\n\nmodule.exports = BufferedWriter;\n"],"file":"BufferedWriter.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/runtime/html/StringWriter.js"],"names":["escapeDoubleQuotes","require","StringWriter","_content","_scripts","_data","prototype","write","str","script","get","key","extra","merge","otherWriter","push","apply","_writer","clear","toString","state","events","emit","outGlobal","root","global","cspNonce","nonceAttr","module","exports"],"mappings":"AAAA;;AAEA,IAAIA,kBAAkB;AACpBC,OAAO,CAAC,yBAAD,CAAP,IADF;;AAGA,SAASC,YAAT,GAAwB;AACtB,OAAKC,QAAL,GAAgB,EAAhB;AACA,OAAKC,QAAL,GAAgB,EAAhB;AACA,OAAKC,KAAL,GAAa,IAAb;AACD;;AAEDH,YAAY,CAACI,SAAb,GAAyB;AACvBC,EAAAA,KAAK,EAAE,UAAUC,GAAV,EAAe;AACpB,SAAKL,QAAL,IAAiBK,GAAjB;AACD,GAHsB;;AAKvBC,EAAAA,MAAM,EAAE,UAAUD,GAAV,EAAe;AACrB,QAAIA,GAAJ,EAAS;AACP,WAAKJ,QAAL,IAAiB,CAAC,KAAKA,QAAL,GAAgB,GAAhB,GAAsB,EAAvB,IAA6BI,GAA9C;AACD;AACF,GATsB;;AAWvBE,EAAAA,GAAG,EAAE,UAAUC,GAAV,EAAe;AAClB,UAAMC,KAAK,GAAI,KAAKP,KAAL,GAAa,KAAKA,KAAL,IAAc,EAA1C;AACA,WAAQO,KAAK,CAACD,GAAD,CAAL,GAAaC,KAAK,CAACD,GAAD,CAAL,IAAc,EAAnC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,IAAK,UAASmB,SAAU,IAAG,KAAKvB,QAAS,WAA5C;AACD;AACD,WAAOI,GAAP;AACD,GApDsB,EAAzB;;;AAuDAoB,MAAM,CAACC,OAAP,GAAiB3B,YAAjB","sourcesContent":["\"use strict\";\n\nvar escapeDoubleQuotes =\n require(\"./helpers/escape-quotes\").___escapeDoubleQuotes;\n\nfunction StringWriter() {\n this._content = \"\";\n this._scripts = \"\";\n this._data = null;\n}\n\nStringWriter.prototype = {\n write: function (str) {\n this._content += str;\n },\n\n script: function (str) {\n if (str) {\n this._scripts += (this._scripts ? \";\" : \"\") + str;\n }\n },\n\n get: function (key) {\n const extra = (this._data = this._data || {});\n return (extra[key] = extra[key] || []);\n },\n\n merge: function (otherWriter) {\n this._content += otherWriter._content;\n this._scripts += otherWriter._scripts;\n if (otherWriter._data) {\n if (this._data) {\n for (const key in otherWriter._data) {\n if (this._data[key]) {\n this._data[key].push.apply(this._data[key], otherWriter._data[key]);\n } else {\n this._data[key] = this._writer[key];\n }\n }\n } else {\n this._data = otherWriter._data;\n }\n }\n },\n\n clear: function () {\n this._content = \"\";\n this._scripts = \"\";\n this._data = null;\n },\n\n toString: function () {\n this.state.events.emit(\"___toString\", this);\n let str = this._content;\n if (this._scripts) {\n const outGlobal = this.state.root.global;\n const cspNonce = outGlobal.cspNonce;\n const nonceAttr = cspNonce\n ? ' nonce=\"' + escapeDoubleQuotes(cspNonce) + '\"'\n : \"\";\n str += `<script${nonceAttr}>${this._scripts}</script>`;\n }\n return str;\n }\n};\n\nmodule.exports = StringWriter;\n"],"file":"StringWriter.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/html/create-readable/index-browser.js"],"names":["encoder","TextEncoder","noop","module","exports","data","transformStream","TransformStream","writer","writable","getWriter","facade","write","string","encode","end","close","out","createOut","$global","undefined","once","err","abort","render","readable"],"mappings":"aAAA,IAAIA,OAAO,GAAG,IAAIC,WAAJ,EAAd;AACA,IAAIC,IAAI,GAAG,YAAY,CAAE,CAAzB;;AAEAC,MAAM,CAACC,OAAP,GAAiB,UAAUC,IAAV,EAAgB;AAC/B;AACA,MAAIC,eAAe,GAAG,IAAIC,eAAJ,EAAtB;AACA,MAAIC,MAAM,GAAGF,eAAe,CAACG,QAAhB,CAAyBC,SAAzB,EAAb;AACA,MAAIC,MAAM,GAAG;AACXC,IAAAA,KAAK,EAAE,UAAUC,MAAV,EAAkB;AACvBL,MAAAA,MAAM,CAACI,KAAP,CAAaZ,OAAO,CAACc,MAAR,CAAeD,MAAf,CAAb;AACD,KAHU;AAIXE,IAAAA,GAAG,EAAE,YAAY;AACfP,MAAAA,MAAM,CAACQ,KAAP;AACD,KANU,EAAb;;AAQA,MAAIC,GAAG,GAAG,KAAKC,SAAL;AACRb,EAAAA,IAAI,IAAIA,IAAI,CAACc,OADL;AAERR,EAAAA,MAFQ;AAGRS,EAAAA,SAHQ;AAIR,UAJQ,CAAV;;AAMAH,EAAAA,GAAG,CAACI,IAAJ,CAAS,OAAT,EAAkB,CAAAC,GAAG,KAAI;AACvBX,IAAAA,MAAM,CAACC,KAAP,GAAeD,MAAM,CAACI,GAAP,GAAab,IAA5B;AACAM,IAAAA,MAAM,CAACe,KAAP,CAAaD,GAAb;AACD,GAHD;AAIA,OAAKE,MAAL,CAAYnB,IAAZ,EAAkBY,GAAlB;AACAA,EAAAA,GAAG,CAACF,GAAJ;;AAEA,SAAOT,eAAe,CAACmB,QAAvB;AACD,CA1BD","sourcesContent":["var encoder = new TextEncoder();\nvar noop = function () {};\n\nmodule.exports = function (data) {\n // eslint-disable-next-line no-undef\n var transformStream = new TransformStream();\n var writer = transformStream.writable.getWriter();\n var facade = {\n write: function (string) {\n writer.write(encoder.encode(string));\n },\n end: function () {\n writer.close();\n }\n };\n var out = this.createOut(\n data && data.$global,\n facade,\n undefined,\n this.___shouldBuffer\n );\n out.once(\"error\", err => {\n facade.write = facade.end = noop;\n writer.abort(err);\n });\n this.render(data, out);\n out.end();\n\n return transformStream.readable;\n};\n"],"file":"index-browser.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/html/create-readable/index.js"],"names":["stream","require","OutgoingMessageProto","OutgoingMessage","prototype","String","flush","indexOf","Readable","constructor","template","data","write","push","end","_read","globalData","$global","out","createOut","undefined","render","module","exports"],"mappings":"aAAA,IAAIA,MAAM,GAAGC,OAAO,CAAC,QAAD,CAApB;;AAEA,IAAIC,oBAAoB,GAAGD,OAAO,CAAC,MAAD,CAAP,CAAgBE,eAAhB,CAAgCC,SAA3D;AACA,IAAIC,MAAM,CAACH,oBAAoB,CAACI,KAAtB,CAAN,CAAmCC,OAAnC,CAA2C,YAA3C,MAA6D,CAAC,CAAlE,EAAqE;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAOL,oBAAoB,CAACI,KAA5B;AACD;;AAED,MAAME,QAAN,SAAuBR,MAAM,CAACQ,QAA9B,CAAuC;AACrCC,EAAAA,WAAW,CAACC,QAAD,EAAWC,IAAX,EAAiB;AAC1B;AACA,eAAmBD,QAAnB;AACA,eAAeC,IAAf;AACA,eAAmB,KAAnB;AACD;;AAEDC,EAAAA,KAAK,CAACD,IAAD,EAAO;AACV,QAAIA,IAAI,IAAI,IAAZ,EAAkB;AAChB,WAAKE,IAAL,CAAUF,IAAV;AACD;AACF;;AAEDG,EAAAA,GAAG,GAAG;AACJ,SAAKD,IAAL,CAAU,IAAV;AACD;;AAEDE,EAAAA,KAAK,GAAG;AACN,QAAI,QAAJ,EAAsB;AACpB;AACD;;AAED,eAAmB,IAAnB;AACA,QAAIL,QAAQ,GAAG,QAAf;AACA,QAAIC,IAAI,GAAG,QAAX;AACA,QAAIK,UAAU,GAAGL,IAAI,IAAIA,IAAI,CAACM,OAA9B;AACA,QAAIC,GAAG,GAAG,SAAiBC,SAAjB;AACRH,IAAAA,UADQ;AAER,QAFQ;AAGRI,IAAAA,SAHQ;AAIRV,IAAAA,QAAQ,IAJA,CAAV;;AAMAA,IAAAA,QAAQ,CAACW,MAAT,CAAgBV,IAAhB,EAAsBO,GAAtB;AACAA,IAAAA,GAAG,CAACJ,GAAJ;AACD,GAnCoC;;;AAsCvCQ,MAAM,CAACC,OAAP,GAAiB,UAAUZ,IAAV,EAAgB;AAC/B,SAAO,IAAIH,QAAJ,CAAa,IAAb,EAAmBG,IAAnB,CAAP;AACD,CAFD","sourcesContent":["var stream = require(\"stream\");\n\nvar OutgoingMessageProto = require(\"http\").OutgoingMessage.prototype;\nif (String(OutgoingMessageProto.flush).indexOf(\"deprecated\") !== -1) {\n // Yes, we are monkey-patching http. This method should never have been added and it was introduced on\n // the iojs fork. It was quickly deprecated and I'm 99% sure no one is actually using it.\n // See:\n // - https://github.com/marko-js/async-writer/issues/3\n // - https://github.com/nodejs/node/issues/2920\n //\n // This method causes problems since marko looks for the flush method and calls it found.\n // The `res.flush()` method is introduced by the [compression](https://www.npmjs.com/package/compression)\n // middleware, but, otherwise, it should typically not exist.\n delete OutgoingMessageProto.flush;\n}\n\nclass Readable extends stream.Readable {\n constructor(template, data) {\n super();\n this.___template = template;\n this.___data = data;\n this.___rendered = false;\n }\n\n write(data) {\n if (data != null) {\n this.push(data);\n }\n }\n\n end() {\n this.push(null);\n }\n\n _read() {\n if (this.___rendered) {\n return;\n }\n\n this.___rendered = true;\n var template = this.___template;\n var data = this.___data;\n var globalData = data && data.$global;\n var out = this.___template.createOut(\n globalData,\n this,\n undefined,\n template.___shouldBuffer\n );\n template.render(data, out);\n out.end();\n }\n}\n\nmodule.exports = function (data) {\n return new Readable(this, data);\n};\n"],"file":"index.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/html/helpers/_dynamic-attr.js"],"names":["attrHelper","require","notEmptyAttr","isEmptyAttrValue","classHelper","styleHelper","module","exports","dynamicAttr","name","value","isInvalidAttrName","i","length"],"mappings":"AAAA;AACA,IAAIA,UAAU,GAAGC,OAAO,CAAC,QAAD,CAAxB;AACA,IAAIC,YAAY,GAAGF,UAAU,IAA7B;AACA,IAAIG,gBAAgB,GAAGH,UAAU,IAAjC;AACA,IAAII,WAAW,GAAGH,OAAO,CAAC,cAAD,CAAzB;AACA,IAAII,WAAW,GAAGJ,OAAO,CAAC,cAAD,CAAzB;;AAEAK,MAAM,CAACC,OAAP,GAAiB,SAASC,WAAT,CAAqBC,IAArB,EAA2BC,KAA3B,EAAkC;AACjD,UAAQD,IAAR;AACE,SAAK,OAAL;AACE,aAAOL,WAAW,CAACM,KAAD,CAAlB;AACF,SAAK,OAAL;AACE,aAAOL,WAAW,CAACK,KAAD,CAAlB;AACF,SAAK,YAAL;AACE,aAAO,EAAP;AACF;AACE,aAAOP,gBAAgB,CAACO,KAAD,CAAhB,IAA2BC,iBAAiB,CAACF,IAAD,CAA5C;AACH,QADG;AAEHP,MAAAA,YAAY,CAACO,IAAD,EAAOC,KAAP,CAFhB,CARJ;;AAYD,CAbD;;AAeA;AACA;AACA;AACA;AACA,SAASC,iBAAT,CAA2BF,IAA3B,EAAiC;AAC/B,OAAK,IAAIG,CAAC,GAAGH,IAAI,CAACI,MAAlB,EAA0BD,CAAC,EAA3B,GAAiC;AAC/B,QAAIH,IAAI,CAACG,CAAD,CAAJ,KAAY,GAAhB,EAAqB;AACnB,aAAO,IAAP;AACD;AACF;;AAED,SAAO,KAAP;AACD","sourcesContent":["\"use strict\";\nvar attrHelper = require(\"./attr\");\nvar notEmptyAttr = attrHelper.___notEmptyAttr;\nvar isEmptyAttrValue = attrHelper.___isEmptyAttrValue;\nvar classHelper = require(\"./class-attr\");\nvar styleHelper = require(\"./style-attr\");\n\nmodule.exports = function dynamicAttr(name, value) {\n switch (name) {\n case \"class\":\n return classHelper(value);\n case \"style\":\n return styleHelper(value);\n case \"renderBody\":\n return \"\";\n default:\n return isEmptyAttrValue(value) || isInvalidAttrName(name)\n ? \"\"\n : notEmptyAttr(name, value);\n }\n};\n\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// Technically the above includes more invalid characters for attributes.\n// In practice however the only character that does not become an attribute name\n// is when there is a >.\nfunction isInvalidAttrName(name) {\n for (let i = name.length; i--; ) {\n if (name[i] === \">\") {\n return true;\n }\n }\n\n return false;\n}\n"],"file":"_dynamic-attr.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/html/helpers/attr.js"],"names":["escapeQuoteHelpers","require","escapeDoubleQuotes","escapeSingleQuotes","module","exports","maybeEmptyAttr","notEmptyAttr","isEmpty","name","value","guessQuotes","RegExp","doubleQuote","source","startPos","singleQuote","i","len","length"],"mappings":"AAAA;;AAEA,IAAIA,kBAAkB,GAAGC,OAAO,CAAC,iBAAD,CAAhC;AACA,IAAIC,kBAAkB,GAAGF,kBAAkB,IAA3C;AACA,IAAIG,kBAAkB,GAAGH,kBAAkB,IAA3C;;AAEAI,MAAM,CAACC,OAAP,GAAiBC,cAAjB;;AAEAA,cAAc,IAAd,GAAiCC,YAAjC;AACAD,cAAc,IAAd,GAAqCE,OAArC;;AAEA,SAASF,cAAT,CAAwBG,IAAxB,EAA8BC,KAA9B,EAAqC;AACnC,MAAIF,OAAO,CAACE,KAAD,CAAX,EAAoB;AAClB,WAAO,EAAP;AACD;;AAED,SAAOH,YAAY,CAACE,IAAD,EAAOC,KAAP,CAAnB;AACD;;AAED,SAASH,YAAT,CAAsBE,IAAtB,EAA4BC,KAA5B,EAAmC;AACjC,UAAQ,OAAOA,KAAf;AACE,SAAK,QAAL;AACE,aAAO,MAAMD,IAAN,GAAaE,WAAW,CAACD,KAAD,CAA/B;AACF,SAAK,SAAL;AACE,aAAO,MAAMD,IAAb;AACF,SAAK,QAAL;AACE,aAAO,MAAMA,IAAN,GAAa,GAAb,GAAmBC,KAA1B;AACF,SAAK,QAAL;AACE,UAAIA,KAAK,YAAYE,MAArB,EAA6B;AAC3B,eAAO,MAAMH,IAAN,GAAaI,WAAW,CAACH,KAAK,CAACI,MAAP,CAA/B;AACD,OAVL;;;AAaA,SAAO,MAAML,IAAN,GAAaE,WAAW,CAACD,KAAK,GAAG,EAAT,CAA/B;AACD;;AAED,SAASF,OAAT,CAAiBE,KAAjB,EAAwB;AACtB,SAAOA,KAAK,IAAI,IAAT,IAAiBA,KAAK,KAAK,KAAlC;AACD;;AAED,SAASG,WAAT,CAAqBH,KAArB,EAA4BK,QAA5B,EAAsC;AACpC,SAAO,OAAOb,kBAAkB,CAACQ,KAAD,EAAQK,QAAR,CAAzB,GAA6C,GAApD;AACD;;AAED,SAASC,WAAT,CAAqBN,KAArB,EAA4BK,QAA5B,EAAsC;AACpC,SAAO,OAAOZ,kBAAkB,CAACO,KAAD,EAAQK,QAAR,CAAzB,GAA6C,GAApD;AACD;;AAED,SAASJ,WAAT,CAAqBD,KAArB,EAA4B;AAC1B,OAAK,IAAIO,CAAC,GAAG,CAAR,EAAWC,GAAG,GAAGR,KAAK,CAACS,MAA5B,EAAoCF,CAAC,GAAGC,GAAxC,EAA6CD,CAAC,EAA9C,EAAkD;AAChD,YAAQP,KAAK,CAACO,CAAD,CAAb;AACE,WAAK,GAAL;AACE,eAAOD,WAAW,CAACN,KAAD,EAAQO,CAAC,GAAG,CAAZ,CAAlB;AACF,WAAK,GAAL;AACA,WAAK,GAAL;AACA,WAAK,GAAL;AACA,WAAK,IAAL;AACA,WAAK,IAAL;AACA,WAAK,IAAL;AACA,WAAK,IAAL;AACE,eAAOJ,WAAW,CAACH,KAAD,EAAQO,CAAC,GAAG,CAAZ,CAAlB,CAVJ;;AAYD;;AAED,SAAOP,KAAK,IAAI,OAAOA,KAAK,CAACQ,GAAG,GAAG,CAAP,CAAL,KAAmB,GAAnB,GAAyBR,KAAK,GAAG,GAAjC,GAAuCA,KAA9C,CAAhB;AACD","sourcesContent":["\"use strict\";\n\nvar escapeQuoteHelpers = require(\"./escape-quotes\");\nvar escapeDoubleQuotes = escapeQuoteHelpers.___escapeDoubleQuotes;\nvar escapeSingleQuotes = escapeQuoteHelpers.___escapeSingleQuotes;\n\nmodule.exports = maybeEmptyAttr;\n\nmaybeEmptyAttr.___notEmptyAttr = notEmptyAttr;\nmaybeEmptyAttr.___isEmptyAttrValue = isEmpty;\n\nfunction maybeEmptyAttr(name, value) {\n if (isEmpty(value)) {\n return \"\";\n }\n\n return notEmptyAttr(name, value);\n}\n\nfunction notEmptyAttr(name, value) {\n switch (typeof value) {\n case \"string\":\n return \" \" + name + guessQuotes(value);\n case \"boolean\":\n return \" \" + name;\n case \"number\":\n return \" \" + name + \"=\" + value;\n case \"object\":\n if (value instanceof RegExp) {\n return \" \" + name + doubleQuote(value.source);\n }\n }\n\n return \" \" + name + guessQuotes(value + \"\");\n}\n\nfunction isEmpty(value) {\n return value == null || value === false;\n}\n\nfunction doubleQuote(value, startPos) {\n return '=\"' + escapeDoubleQuotes(value, startPos) + '\"';\n}\n\nfunction singleQuote(value, startPos) {\n return \"='\" + escapeSingleQuotes(value, startPos) + \"'\";\n}\n\nfunction guessQuotes(value) {\n for (var i = 0, len = value.length; i < len; i++) {\n switch (value[i]) {\n case '\"':\n return singleQuote(value, i + 1);\n case \"'\":\n case \">\":\n case \" \":\n case \"\\t\":\n case \"\\n\":\n case \"\\r\":\n case \"\\f\":\n return doubleQuote(value, i + 1);\n }\n }\n\n return value && \"=\" + (value[len - 1] === \"/\" ? value + \" \" : value);\n}\n"],"file":"attr.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/html/helpers/attrs.js"],"names":["dynamicAttrHelper","require","module","exports","attrs","arg","result","attrName"],"mappings":"AAAA;;AAEA,IAAIA,iBAAiB,GAAGC,OAAO,CAAC,iBAAD,CAA/B;;AAEAC,MAAM,CAACC,OAAP,GAAiB,SAASC,KAAT,CAAeC,GAAf,EAAoB;AACnC,UAAQ,OAAOA,GAAf;AACE,SAAK,QAAL;AACE,UAAIC,MAAM,GAAG,EAAb;AACA,WAAK,IAAIC,QAAT,IAAqBF,GAArB,EAA0B;AACxBC,QAAAA,MAAM,IAAIN,iBAAiB,CAACO,QAAD,EAAWF,GAAG,CAACE,QAAD,CAAd,CAA3B;AACD;AACD,aAAOD,MAAP;AACF,SAAK,QAAL;AACE,aAAOD,GAAP;AACF;AACE,aAAO,EAAP,CAVJ;;AAYD,CAbD","sourcesContent":["\"use strict\";\n\nvar dynamicAttrHelper = require(\"./_dynamic-attr\");\n\nmodule.exports = function attrs(arg) {\n switch (typeof arg) {\n case \"object\":\n var result = \"\";\n for (var attrName in arg) {\n result += dynamicAttrHelper(attrName, arg[attrName]);\n }\n return result;\n case \"string\":\n return arg;\n default:\n return \"\";\n }\n};\n"],"file":"attrs.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/html/helpers/class-attr.js"],"names":["attr","require","classHelper","module","exports","classAttr","value"],"mappings":"AAAA;;AAEA,IAAIA,IAAI,GAAGC,OAAO,CAAC,QAAD,CAAlB;AACA,IAAIC,WAAW,GAAGD,OAAO,CAAC,2BAAD,CAAzB;;AAEAE,MAAM,CAACC,OAAP,GAAiB,SAASC,SAAT,CAAmBC,KAAnB,EAA0B;AACzC,SAAON,IAAI,CAAC,OAAD,EAAUE,WAAW,CAACI,KAAD,CAArB,CAAX;AACD,CAFD","sourcesContent":["\"use strict\";\n\nvar attr = require(\"./attr\");\nvar classHelper = require(\"../../helpers/class-value\");\n\nmodule.exports = function classAttr(value) {\n return attr(\"class\", classHelper(value));\n};\n"],"file":"class-attr.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/html/helpers/data-marko.js"],"names":["escapeQuoteHelpers","require","escapeSingleQuotes","escapeDoubleQuotes","FLAG_WILL_RERENDER_IN_BROWSER","module","exports","dataMarko","out","componentDef","props","key","result","willNotRerender","_","JSON","stringify","id"],"mappings":"AAAA;;AAEA,IAAIA,kBAAkB,GAAGC,OAAO,CAAC,iBAAD,CAAhC;AACA,IAAIC,kBAAkB,GAAGF,kBAAkB,IAA3C;AACA,IAAIG,kBAAkB,GAAGH,kBAAkB,IAA3C;AACA,IAAII,6BAA6B,GAAG,CAApC;AACA;;AAEAC,MAAM,CAACC,OAAP,GAAiB,SAASC,SAAT,CAAmBC,GAAnB,EAAwBC,YAAxB,EAAsCC,KAAtC,EAA6CC,GAA7C,EAAkD;AACjE,MAAIC,MAAM,GAAG,EAAb;AACA,MAAIC,eAAe;AACjBL,EAAAA,GAAG,GAAH;AACCC,EAAAA,YAAY,IAAZ;AACC,GAACA,YAAY,IAAZ,GAAwBL,6BAAzB,MAA4D,CAHhE;;AAKA,MAAIS,eAAJ,EAAqB;AACnB,QAAIH,KAAJ,EAAW;AACT;AACA,WAAK,IAAII,CAAT,IAAcJ,KAAd,EAAqB;AACnBE,QAAAA,MAAM;AACJ,0BAAkBV,kBAAkB,CAACa,IAAI,CAACC,SAAL,CAAeN,KAAf,CAAD,CAApC,GAA8D,GADhE;AAEA;AACD;AACF;;AAED,QAAIC,GAAG,IAAIA,GAAG,CAAC,CAAD,CAAH,KAAW,GAAtB,EAA2B;AACzBC,MAAAA,MAAM;AACJ;AACAT,MAAAA,kBAAkB;AAChBM,MAAAA,YAAY,IAAZ,CAAwBE,GAAxB,IAA+B,GAA/B,GAAqCF,YAAY,CAACQ,EADlC,CADlB;;AAIA,SALF;AAMD;AACF;;AAED,SAAOL,MAAP;AACD,CA5BD","sourcesContent":["\"use strict\";\n\nvar escapeQuoteHelpers = require(\"./escape-quotes\");\nvar escapeSingleQuotes = escapeQuoteHelpers.___escapeSingleQuotes;\nvar escapeDoubleQuotes = escapeQuoteHelpers.___escapeDoubleQuotes;\nvar FLAG_WILL_RERENDER_IN_BROWSER = 1;\n// var FLAG_HAS_RENDER_BODY = 2;\n\nmodule.exports = function dataMarko(out, componentDef, props, key) {\n var result = \"\";\n var willNotRerender =\n out.___components.___isPreserved ||\n (componentDef.___renderBoundary &&\n (componentDef.___flags & FLAG_WILL_RERENDER_IN_BROWSER) === 0);\n\n if (willNotRerender) {\n if (props) {\n // eslint-disable-next-line no-unused-vars\n for (var _ in props) {\n result +=\n \" data-marko='\" + escapeSingleQuotes(JSON.stringify(props)) + \"'\";\n break;\n }\n }\n\n if (key && key[0] === \"@\") {\n result +=\n ' data-marko-key=\"' +\n escapeDoubleQuotes(\n componentDef.___nextKey(key) + \" \" + componentDef.id\n ) +\n '\"';\n }\n }\n\n return result;\n};\n"],"file":"data-marko.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/html/helpers/escape-quotes.js"],"names":["exports","d","value","escapeDoubleQuotes","escapeSingleQuotes","startPos","escapeQuote","str","quote","escaped","result","lastPos","i","len","length","slice"],"mappings":"AAAA;;AAEAA,OAAO,CAACC,CAAR,GAAY,UAAUC,KAAV,EAAiB;AAC3B,SAAOC,kBAAkB,CAACD,KAAK,GAAG,EAAT,EAAa,CAAb,CAAzB;AACD,CAFD;;AAIAF,OAAO,IAAP,GAAgCG,kBAAhC;;AAEAH,OAAO,IAAP,GAAgCI,kBAAhC;;AAEA,SAASA,kBAAT,CAA4BF,KAA5B,EAAmCG,QAAnC,EAA6C;AAC3C,SAAOC,WAAW,CAACJ,KAAD,EAAQG,QAAR,EAAkB,GAAlB,EAAuB,OAAvB,CAAlB;AACD;;AAED,SAASF,kBAAT,CAA4BD,KAA5B,EAAmCG,QAAnC,EAA6C;AAC3C,SAAOC,WAAW,CAACJ,KAAD,EAAQG,QAAR,EAAkB,GAAlB,EAAuB,OAAvB,CAAlB;AACD;;AAED,SAASC,WAAT,CAAqBC,GAArB,EAA0BF,QAA1B,EAAoCG,KAApC,EAA2CC,OAA3C,EAAoD;AAClD,MAAIC,MAAM,GAAG,EAAb;AACA,MAAIC,OAAO,GAAG,CAAd;;AAEA,OAAK,IAAIC,CAAC,GAAGP,QAAR,EAAkBQ,GAAG,GAAGN,GAAG,CAACO,MAAjC,EAAyCF,CAAC,GAAGC,GAA7C,EAAkDD,CAAC,EAAnD,EAAuD;AACrD,QAAIL,GAAG,CAACK,CAAD,CAAH,KAAWJ,KAAf,EAAsB;AACpBE,MAAAA,MAAM,IAAIH,GAAG,CAACQ,KAAJ,CAAUJ,OAAV,EAAmBC,CAAnB,IAAwBH,OAAlC;AACAE,MAAAA,OAAO,GAAGC,CAAC,GAAG,CAAd;AACD;AACF;;AAED,MAAID,OAAJ,EAAa;AACX,WAAOD,MAAM,GAAGH,GAAG,CAACQ,KAAJ,CAAUJ,OAAV,CAAhB;AACD;;AAED,SAAOJ,GAAP;AACD","sourcesContent":["\"use strict\";\n\nexports.d = function (value) {\n return escapeDoubleQuotes(value + \"\", 0);\n};\n\nexports.___escapeDoubleQuotes = escapeDoubleQuotes;\n\nexports.___escapeSingleQuotes = escapeSingleQuotes;\n\nfunction escapeSingleQuotes(value, startPos) {\n return escapeQuote(value, startPos, \"'\", \"'\");\n}\n\nfunction escapeDoubleQuotes(value, startPos) {\n return escapeQuote(value, startPos, '\"', \""\");\n}\n\nfunction escapeQuote(str, startPos, quote, escaped) {\n var result = \"\";\n var lastPos = 0;\n\n for (var i = startPos, len = str.length; i < len; i++) {\n if (str[i] === quote) {\n result += str.slice(lastPos, i) + escaped;\n lastPos = i + 1;\n }\n }\n\n if (lastPos) {\n return result + str.slice(lastPos);\n }\n\n return str;\n}\n"],"file":"escape-quotes.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/html/helpers/escape-script-placeholder.js"],"names":["escapeEndingScriptTagRegExp","module","exports","escapeScriptHelper","val","replace"],"mappings":"AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAIA,2BAA2B,GAAG,YAAlC;AACAC,MAAM,CAACC,OAAP,GAAiB,SAASC,kBAAT,CAA4BC,GAA5B,EAAiC;AAChD,SAAO,OAAOA,GAAP,KAAe,QAAf;AACHA,EAAAA,GAAG,CAACC,OAAJ,CAAYL,2BAAZ,EAAyC,gBAAzC,CADG;AAEHI,EAAAA,GAAG,GAAG,EAFV;AAGD,CAJD","sourcesContent":["\"use strict\";\n\n/**\n * Escapes the '</' sequence in the body of a <script> body to avoid the `<script>` being\n * ended prematurely.\n *\n * For example:\n * var evil = {\n * \tname: '</script><script>alert(1)</script>'\n * };\n *\n * <script>var foo = ${JSON.stringify(evil)}</script>\n *\n * Without escaping the ending '</script>' sequence the opening <script> tag would be\n * prematurely ended and a new script tag could then be started that could then execute\n * arbitrary code.\n */\nvar escapeEndingScriptTagRegExp = /<\\/script/g;\nmodule.exports = function escapeScriptHelper(val) {\n return typeof val === \"string\"\n ? val.replace(escapeEndingScriptTagRegExp, \"\\\\u003C/script\")\n : val + \"\";\n};\n"],"file":"escape-script-placeholder.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/html/helpers/escape-style-placeholder.js"],"names":["escapeEndingStyleTagRegExp","module","exports","escapeScriptHelper","val","replace"],"mappings":"AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAIA,0BAA0B,GAAG,WAAjC;AACAC,MAAM,CAACC,OAAP,GAAiB,SAASC,kBAAT,CAA4BC,GAA5B,EAAiC;AAChD,SAAO,OAAOA,GAAP,KAAe,QAAf;AACHA,EAAAA,GAAG,CAACC,OAAJ,CAAYL,0BAAZ,EAAwC,cAAxC,CADG;AAEHI,EAAAA,GAAG,GAAG,EAFV;AAGD,CAJD","sourcesContent":["\"use strict\";\n\n/**\n * Escapes the '</' sequence in the body of a <style> body to avoid the `<style>` being\n * ended prematurely.\n *\n * For example:\n * var color = '</style><script>alert(1)</script>';\n *\n * <style>#foo { background-color:${color} }</style>\n *\n * Without escaping the ending '</style>' sequence the opening <style> tag would be\n * prematurely ended and a script tag could then be started that could then execute\n * arbitrary code.\n */\nvar escapeEndingStyleTagRegExp = /<\\/style/g;\nmodule.exports = function escapeScriptHelper(val) {\n return typeof val === \"string\"\n ? val.replace(escapeEndingStyleTagRegExp, \"\\\\003C/style\")\n : val + \"\";\n};\n"],"file":"escape-style-placeholder.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/html/helpers/escape-xml.js"],"names":["module","exports","x","value","toHTML","escapeXML","str","len","length","result","lastPos","i","replacement","slice"],"mappings":"AAAA;;AAEAA,MAAM,CAACC,OAAP,CAAeC,CAAf,GAAmB,UAAUC,KAAV,EAAiB;AAClC,MAAIA,KAAK,IAAI,IAAb,EAAmB;AACjB,WAAO,EAAP;AACD;;AAED,MAAIA,KAAK,CAACC,MAAV,EAAkB;AAChB,WAAOD,KAAK,CAACC,MAAN,EAAP;AACD;;AAED,SAAOC,SAAS,CAACF,KAAK,GAAG,EAAT,CAAhB;AACD,CAVD;;AAYAF,OAAO,IAAP,GAAuBI,SAAvB;;AAEA,SAASA,SAAT,CAAmBC,GAAnB,EAAwB;AACtB,MAAIC,GAAG,GAAGD,GAAG,CAACE,MAAd;AACA,MAAIC,MAAM,GAAG,EAAb;AACA,MAAIC,OAAO,GAAG,CAAd;AACA,MAAIC,CAAC,GAAG,CAAR;AACA,MAAIC,WAAJ;;AAEA,SAAOD,CAAC,GAAGJ,GAAX,EAAgBI,CAAC,EAAjB,EAAqB;AACnB,YAAQL,GAAG,CAACK,CAAD,CAAX;AACE,WAAK,GAAL;AACEC,QAAAA,WAAW,GAAG,MAAd;AACA;AACF,WAAK,GAAL;AACEA,QAAAA,WAAW,GAAG,OAAd;AACA;AACF;AACE,iBARJ;;;AAWAH,IAAAA,MAAM,IAAIH,GAAG,CAACO,KAAJ,CAAUH,OAAV,EAAmBC,CAAnB,IAAwBC,WAAlC;AACAF,IAAAA,OAAO,GAAGC,CAAC,GAAG,CAAd;AACD;;AAED,MAAID,OAAJ,EAAa;AACX,WAAOD,MAAM,GAAGH,GAAG,CAACO,KAAJ,CAAUH,OAAV,CAAhB;AACD;;AAED,SAAOJ,GAAP;AACD","sourcesContent":["\"use strict\";\n\nmodule.exports.x = function (value) {\n if (value == null) {\n return \"\";\n }\n\n if (value.toHTML) {\n return value.toHTML();\n }\n\n return escapeXML(value + \"\");\n};\n\nexports.___escapeXML = escapeXML;\n\nfunction escapeXML(str) {\n var len = str.length;\n var result = \"\";\n var lastPos = 0;\n var i = 0;\n var replacement;\n\n for (; i < len; i++) {\n switch (str[i]) {\n case \"<\":\n replacement = \"<\";\n break;\n case \"&\":\n replacement = \"&\";\n break;\n default:\n continue;\n }\n\n result += str.slice(lastPos, i) + replacement;\n lastPos = i + 1;\n }\n\n if (lastPos) {\n return result + str.slice(lastPos);\n }\n\n return str;\n}\n"],"file":"escape-xml.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/html/helpers/merge-attrs.js"],"names":["dynamicAttrHelper","require","module","exports","mergeAttrs","result","seen","Set","i","arguments","length","last","source","k","has","add"],"mappings":"AAAA;;AAEA,IAAIA,iBAAiB,GAAGC,OAAO,CAAC,iBAAD,CAA/B;;AAEA;AACA;AACA;AACAC,MAAM,CAACC,OAAP,GAAiB,SAASC,UAAT,GAAsB;AACrC,MAAIC,MAAM,GAAG,EAAb;AACA,MAAIC,IAAI,GAAG,IAAIC,GAAJ,EAAX;;AAEA,OAAK,IAAIC,CAAC,GAAGC,SAAS,CAACC,MAAlB,EAA0BC,IAAI,GAAGH,CAAC,GAAG,CAA1C,EAA6CA,CAAC,EAA9C,GAAoD;AAClD,QAAII,MAAM,GAAGH,SAAS,CAACD,CAAD,CAAtB;AACA,SAAK,IAAIK,CAAT,IAAcD,MAAd,EAAsB;AACpB,UAAIJ,CAAC,KAAKG,IAAN,IAAc,CAACL,IAAI,CAACQ,GAAL,CAASD,CAAT,CAAnB,EAAgC;AAC9BR,QAAAA,MAAM,IAAIL,iBAAiB,CAACa,CAAD,EAAID,MAAM,CAACC,CAAD,CAAV,CAA3B;AACAP,QAAAA,IAAI,CAACS,GAAL,CAASF,CAAT;AACD;AACF;AACF;;AAED,SAAOR,MAAP;AACD,CAfD","sourcesContent":["\"use strict\";\n\nvar dynamicAttrHelper = require(\"./_dynamic-attr\");\n\n/**\n * Merges attribute objects into a string.\n */\nmodule.exports = function mergeAttrs() {\n var result = \"\";\n var seen = new Set();\n\n for (var i = arguments.length, last = i - 1; i--; ) {\n var source = arguments[i];\n for (var k in source) {\n if (i === last || !seen.has(k)) {\n result += dynamicAttrHelper(k, source[k]);\n seen.add(k);\n }\n }\n }\n\n return result;\n};\n"],"file":"merge-attrs.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/html/helpers/props-script.js"],"names":["escapeDoubleQuotes","require","escapeScript","assignPropsFunction","replace","trim","module","exports","propsForPreviousNode","props","out","cspNonce","global","nonceAttr","w","JSON","stringify"],"mappings":"AAAA;;AAEA,IAAIA,kBAAkB,GAAGC,OAAO,CAAC,iBAAD,CAAP,IAAzB;AACA,IAAIC,YAAY,GAAGD,OAAO,CAAC,6BAAD,CAA1B;AACA,IAAIE,mBAAmB,GAAI;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA,CAP0B;AAQvBC,OARuB,CAQf,MARe,EAQP,GARO;AASvBA,OATuB,CASf,aATe,EASA,MATA;AAUvBA,OAVuB,CAUf,aAVe,EAUA,MAVA;AAWvBC,IAXuB,EAA1B;;AAaAC,MAAM,CAACC,OAAP,GAAiB,SAASC,oBAAT,CAA8BC,KAA9B,EAAqCC,GAArC,EAA0C;AACzD,MAAIC,QAAQ,GAAGD,GAAG,CAACE,MAAJ,CAAWD,QAA1B;AACA,MAAIE,SAAS,GAAGF,QAAQ;AACpB,eAAaX,kBAAkB,CAACW,QAAD,CAA/B,GAA4C,GADxB;AAEpB,IAFJ;;AAIAD,EAAAA,GAAG,CAACI,CAAJ,CAAM,YAAYD,SAAZ,GAAwB,GAA9B;;AAEA,MAAI,CAACH,GAAG,CAACE,MAAJ,CAAWT,mBAAhB,EAAqC;AACnCO,IAAAA,GAAG,CAACI,CAAJ,CAAMX,mBAAN;AACAO,IAAAA,GAAG,CAACE,MAAJ,CAAWT,mBAAX,GAAiC,IAAjC;AACD;;AAEDO,EAAAA,GAAG,CAACI,CAAJ,CAAM,SAASZ,YAAY,CAACa,IAAI,CAACC,SAAL,CAAeP,KAAf,CAAD,CAArB,GAA+C,aAArD;AACD,CAdD","sourcesContent":["\"use strict\";\n\nvar escapeDoubleQuotes = require(\"./escape-quotes\").___escapeDoubleQuotes;\nvar escapeScript = require(\"./escape-script-placeholder\");\nvar assignPropsFunction = `\n function ap_(p) {\n var s = document.currentScript;\n var ps = s.previousSibling;\n for (var k in p) ps[k] = p[k];\n s.parentNode.removeChild(s);\n }\n`\n .replace(/\\s+/g, \" \")\n .replace(/([\\W]) (.)/g, \"$1$2\")\n .replace(/(.) ([\\W])/g, \"$1$2\")\n .trim();\n\nmodule.exports = function propsForPreviousNode(props, out) {\n var cspNonce = out.global.cspNonce;\n var nonceAttr = cspNonce\n ? ' nonce=\"' + escapeDoubleQuotes(cspNonce) + '\"'\n : \"\";\n\n out.w(\"<script\" + nonceAttr + \">\");\n\n if (!out.global.assignPropsFunction) {\n out.w(assignPropsFunction);\n out.global.assignPropsFunction = true;\n }\n\n out.w(\"ap_(\" + escapeScript(JSON.stringify(props)) + \");</script>\");\n};\n"],"file":"props-script.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/html/helpers/style-attr.js"],"names":["attr","require","styleHelper","module","exports","styleAttr","value"],"mappings":"AAAA;;AAEA,IAAIA,IAAI,GAAGC,OAAO,CAAC,QAAD,CAAlB;AACA,IAAIC,WAAW,GAAGD,OAAO,CAAC,2BAAD,CAAzB;;AAEAE,MAAM,CAACC,OAAP,GAAiB,SAASC,SAAT,CAAmBC,KAAnB,EAA0B;AACzC,SAAON,IAAI,CAAC,OAAD,EAAUE,WAAW,CAACI,KAAD,CAArB,CAAX;AACD,CAFD","sourcesContent":["\"use strict\";\n\nvar attr = require(\"./attr\");\nvar styleHelper = require(\"../../helpers/style-value\");\n\nmodule.exports = function styleAttr(value) {\n return attr(\"style\", styleHelper(value));\n};\n"],"file":"style-attr.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/runtime/html/hot-reload.js"],"names":["runtime","require","createTemplate","t","registered","typeName","renderFn","template","Object","defineProperty","get","proxyRenderFn","set","v","apply","arguments","module","exports"],"mappings":"aAAA,IAAIA,OAAO,GAAGC,OAAO,CAAC,GAAD,CAArB;AACA,IAAIC,cAAc,GAAGF,OAAO,CAACG,CAA7B;AACA,IAAIC,UAAU,GAAG,EAAjB;;AAEAJ,OAAO,CAACG,CAAR,GAAY,UAAUE,QAAV,EAAoB;AAC9B,MAAID,UAAU,CAACC,QAAD,CAAd,EAA0B;AACxB,WAAOD,UAAU,CAACC,QAAD,CAAjB;AACD;;AAED,MAAIC,QAAJ;AACA,MAAIC,QAAQ,GAAIH,UAAU,CAACC,QAAD,CAAV,GAAuBH,cAAc,CAACG,QAAD,CAArD;AACAG,EAAAA,MAAM,CAACC,cAAP,CAAsBF,QAAtB,EAAgC,GAAhC,EAAqC;AACnCG,IAAAA,GAAG,EAAE,YAAY;AACf,aAAOJ,QAAQ,IAAIK,aAAnB;AACD,KAHkC;AAInCC,IAAAA,GAAG,EAAE,UAAUC,CAAV,EAAa;AAChBP,MAAAA,QAAQ,GAAGO,CAAX;AACD,KANkC,EAArC;;;AASA,SAAON,QAAP;;AAEA,WAASI,aAAT,GAAyB;AACvB,WAAOL,QAAQ,CAACQ,KAAT,CAAe,IAAf,EAAqBC,SAArB,CAAP;AACD;AACF,CArBD;;AAuBAC,MAAM,CAACC,OAAP,GAAiBjB,OAAjB","sourcesContent":["var runtime = require(\".\");\nvar createTemplate = runtime.t;\nvar registered = {};\n\nruntime.t = function (typeName) {\n if (registered[typeName]) {\n return registered[typeName];\n }\n\n var renderFn;\n var template = (registered[typeName] = createTemplate(typeName));\n Object.defineProperty(template, \"_\", {\n get: function () {\n return renderFn && proxyRenderFn;\n },\n set: function (v) {\n renderFn = v;\n }\n });\n\n return template;\n\n function proxyRenderFn() {\n return renderFn.apply(this, arguments);\n }\n};\n\nmodule.exports = runtime;\n"],"file":"hot-reload.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/runtime/html/index.js"],"names":["exports","t","createTemplate","typeName","Template","prototype","stream","require","AsyncStream","createOut","globalData","writer","parentOut","buffer"],"mappings":"AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACAA,OAAO,CAACC,CAAR,GAAY,SAASC,cAAT,CAAwBC,QAAxB,EAAkC;AAC5C,SAAO,IAAIC,QAAJ,CAAaD,QAAb,CAAP;AACD,CAFD;;AAIA,SAASC,QAAT,CAAkBD,QAAlB,EAA4B;AAC1B,aAAmBA,QAAnB;AACD;;AAEDC,QAAQ,CAACC,SAAT,CAAmBC,MAAnB,GAA4BC,OAAO,CAAC,mBAAD,CAAnC;;AAEA,IAAIC,WAAW,GAAGD,OAAO,CAAC,eAAD,CAAzB;AACAA,OAAO,CAAC,cAAD,CAAP;AACGH,QAAQ,CAACC,SAAT,CAAmBI,SAAnB,GAA+B,SAASA,SAAT;AAC9BC,UAD8B;AAE9BC,MAF8B;AAG9BC,SAH8B;AAI9BC,MAJ8B;AAK9B;AACA,SAAO,IAAIL,WAAJ,CAAgBE,UAAhB,EAA4BC,MAA5B,EAAoCC,SAApC,EAA+CC,MAA/C,CAAP;AACD,CARH;;;AAWAN,OAAO,CAAC,eAAD,CAAP,CAAyBH,QAAQ,CAACC,SAAlC","sourcesContent":["\"use strict\";\n\n/**\n * Method is for internal usage only. This method\n * is invoked by code in a compiled Marko template and\n * it is used to create a new Template instance.\n * @private\n */\nexports.t = function createTemplate(typeName) {\n return new Template(typeName);\n};\n\nfunction Template(typeName) {\n this.___typeName = typeName;\n}\n\nTemplate.prototype.stream = require(\"./create-readable\");\n\nvar AsyncStream = require(\"./AsyncStream\");\nrequire(\"../createOut\").___setCreateOut(\n (Template.prototype.createOut = function createOut(\n globalData,\n writer,\n parentOut,\n buffer\n ) {\n return new AsyncStream(globalData, writer, parentOut, buffer);\n })\n);\n\nrequire(\"../renderable\")(Template.prototype);\n"],"file":"index.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/runtime/queueMicrotask.js"],"names":["promise","module","exports","queueMicrotask","Promise","resolve","cb","then","catch","rethrow","setTimeout","err"],"mappings":"aAAA,IAAIA,OAAJ;AACAC,MAAM,CAACC,OAAP;AACE,OAAOC,cAAP,KAA0B,UAA1B;AACIA,cADJ;AAEI,OAAOC,OAAP,KAAmB,UAAnB,KAAkCJ,OAAO,GAAGI,OAAO,CAACC,OAAR,EAA5C;AACA,UAAUC,EAAV,EAAc;AACZN,EAAAA,OAAO,CAACO,IAAR,CAAaD,EAAb,EAAiBE,KAAjB,CAAuBC,OAAvB;AACD,CAHD;AAIAC,UAPN;AAQA,SAASD,OAAT,CAAiBE,GAAjB,EAAsB;AACpBD,EAAAA,UAAU,CAAC,YAAY;AACrB,UAAMC,GAAN;AACD,GAFS,CAAV;AAGD","sourcesContent":["var promise;\nmodule.exports =\n typeof queueMicrotask === \"function\"\n ? queueMicrotask\n : typeof Promise === \"function\" && (promise = Promise.resolve())\n ? function (cb) {\n promise.then(cb).catch(rethrow);\n }\n : setTimeout;\nfunction rethrow(err) {\n setTimeout(function () {\n throw err;\n });\n}\n"],"file":"queueMicrotask.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/runtime/renderable.js"],"names":["defaultCreateOut","require","setImmediate","extend","safeRender","renderFunc","finalData","finalOut","shouldEnd","end","err","actualEnd","error","module","exports","target","renderer","render","createOut","renderToString","data","callback","localData","_","globalData","$global","out","global","template","undefined","on","toString","once","sync","renderSync","shouldBuffer"],"mappings":"aAAA,IAAIA,gBAAgB,GAAGC,OAAO,CAAC,aAAD,CAA9B;AACA,IAAIC,YAAY,GAAGD,OAAO,CAAC,gBAAD,CAAP,IAAnB;AACA,IAAIE,MAAM,GAAGF,OAAO,C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AAuB,IAA7C;;AAEA,aAAOxB,UAAU,CAACa,MAAD,EAASX,SAAT,EAAoBC,QAApB,EAA8BC,SAA9B,CAAjB;AACD,KA/GmB,EAAT,CAAb;;AAiHD,CAtHD","sourcesContent":["var defaultCreateOut = require(\"./createOut\");\nvar setImmediate = require(\"./setImmediate\").___setImmediate;\nvar extend = require(\"raptor-util/extend\");\n\nfunction safeRender(renderFunc, finalData, finalOut, shouldEnd) {\n try {\n renderFunc(finalData, finalOut);\n\n if (shouldEnd) {\n finalOut.end();\n }\n } catch (err) {\n var actualEnd = finalOut.end;\n finalOut.end = function () {};\n\n setImmediate(function () {\n finalOut.end = actualEnd;\n finalOut.error(err);\n });\n }\n return finalOut;\n}\n\nmodule.exports = function (target, renderer) {\n var renderFunc =\n renderer && (renderer.renderer || renderer.render || renderer);\n var createOut = target.createOut || renderer.createOut || defaultCreateOut;\n\n return extend(target, {\n createOut: createOut,\n\n renderToString: function (data, callback) {\n var localData = data || {};\n var render = renderFunc || this._;\n var globalData = localData.$global;\n var out = createOut(globalData);\n\n out.global.template = this;\n\n if (globalData) {\n localData.$global = undefined;\n }\n\n if (callback) {\n out\n .on(\"finish\", function () {\n callback(null, out.toString(), out);\n })\n .once(\"error\", callback);\n\n return safeRender(render, localData, out, true);\n } else {\n out.sync();\n render(localData, out);\n return out.toString();\n }\n },\n\n renderSync: function (data) {\n var localData = data || {};\n var render = renderFunc || this._;\n var globalData = localData.$global;\n var out = createOut(globalData);\n out.sync();\n\n out.global.template = this;\n\n if (globalData) {\n localData.$global = undefined;\n }\n\n render(localData, out);\n return out.___getResult();\n },\n\n /**\n * Renders a template to either a stream (if the last\n * argument is a Stream instance) or\n * provides the output to a callback function (if the last\n * argument is a Function).\n *\n * Supported signatures:\n *\n * render(data)\n * render(data, out)\n * render(data, stream)\n * render(data, callback)\n *\n * @param {Object} data The view model data for the template\n * @param {AsyncStream/AsyncVDOMBuilder} out A Stream, an AsyncStream/AsyncVDOMBuilder instance, or a callback function\n * @return {AsyncStream/AsyncVDOMBuilder} Returns the AsyncStream/AsyncVDOMBuilder instance that the template is rendered to\n */\n render: function (data, out) {\n var callback;\n var finalOut;\n var finalData;\n var globalData;\n var render = renderFunc || this._;\n var shouldBuffer = this.___shouldBuffer;\n var shouldEnd = true;\n\n if (data) {\n finalData = data;\n if ((globalData = data.$global)) {\n finalData.$global = undefined;\n }\n } else {\n finalData = {};\n }\n\n if (out && out.___isOut) {\n finalOut = out;\n shouldEnd = false;\n extend(out.global, globalData);\n } else if (typeof out == \"function\") {\n finalOut = createOut(globalData);\n callback = out;\n } else {\n finalOut = createOut(\n globalData, // global\n out, // writer(AsyncStream) or parentNode(AsyncVDOMBuilder)\n undefined, // parentOut\n shouldBuffer // ignored by AsyncVDOMBuilder\n );\n }\n\n if (callback) {\n finalOut\n .on(\"finish\", function () {\n callback(null, finalOut.___getResult());\n })\n .once(\"error\", callback);\n }\n\n globalData = finalOut.global;\n\n globalData.template = globalData.template || this;\n\n return safeRender(render, finalData, finalOut, shouldEnd);\n }\n });\n};\n"],"file":"renderable.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/runtime/setImmediate/index-browser.js"],"names":["queue","msg","Math","random","window","addEventListener","ev","data","callbacks","i","length","exports","callback","push","postMessage"],"mappings":"aAAA,IAAIA,KAAK,GAAG,EAAZ;AACA,IAAIC,GAAG,GAAG,KAAKC,IAAI,CAACC,MAAL,EAAf;AACAC,MAAM,CAACC,gBAAP,CAAwB,SAAxB,EAAmC,UAAUC,EAAV,EAAc;AAC/C,MAAIA,EAAE,CAACC,IAAH,KAAYN,GAAhB,EAAqB;AACnB,QAAIO,SAAS,GAAGR,KAAhB;AACAA,IAAAA,KAAK,GAAG,EAAR;AACA,SAAK,IAAIS,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGD,SAAS,CAACE,MAA9B,EAAsCD,CAAC,EAAvC,EAA2C;AACzCD,MAAAA,SAAS,CAACC,CAAD,CAAT;AACD;AACF;AACF,CARD;;AAUAE,OAAO,IAAP,GAA0B,UAAUC,QAAV,EAAoB;AAC5C,MAAIZ,KAAK,CAACa,IAAN,CAAWD,QAAX,MAAyB,CAA7B,EAAgC;AAC9BR,IAAAA,MAAM,CAACU,WAAP,CAAmBb,GAAnB,EAAwB,GAAxB;AACD;AACF,CAJD","sourcesContent":["var queue = [];\nvar msg = \"\" + Math.random();\nwindow.addEventListener(\"message\", function (ev) {\n if (ev.data === msg) {\n var callbacks = queue;\n queue = [];\n for (var i = 0; i < callbacks.length; i++) {\n callbacks[i]();\n }\n }\n});\n\nexports.___setImmediate = function (callback) {\n if (queue.push(callback) === 1) {\n window.postMessage(msg, \"*\");\n }\n};\n"],"file":"index-browser.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/runtime/setImmediate/index-worker.js"],"names":["exports","setTimeout","clearTimeout"],"mappings":"aAAAA,OAAO,IAAP,GAA0BC,UAA1B;AACAD,OAAO,IAAP,GAA4BE,YAA5B","sourcesContent":["exports.___setImmediate = setTimeout;\nexports.___clearImmediate = clearTimeout;\n"],"file":"index-worker.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/runtime/setImmediate/index.js"],"names":["exports","setImmediate","clearImmediate"],"mappings":"aAAAA,OAAO,IAAP,GAA0BC,YAA1B;AACAD,OAAO,IAAP,GAA4BE,cAA5B","sourcesContent":["exports.___setImmediate = setImmediate;\nexports.___clearImmediate = clearImmediate;\n"],"file":"index.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/runtime/vdom/AsyncVDOMBuilder.js"],"names":["EventEmitter","require","vdom","VElement","VDocumentFragment","VText","VComponent","VFragment","virtualizeHTML","RenderResult","morphdom","attrsHelper","EVENT_UPDATE","EVENT_FINISH","State","tree","AsyncVDOMBuilder","globalData","parentNode","parentOut","state","data","global","undefined","proto","prototype","document","bc","component","key","ownerComponent","vComponent","child","childCount","pushToStack","push","element","tagName","attrs","flags","props","componentDef","n","node","clone","text","type","toHTML","h","toString","html","vdomNode","beginElement","bf","preserve","fragment","ef","endElement","stack","pop","length","end","remaining","emit","lastArray","_last","i","next","lastCallback","error","e","beginAsync","options","Error","last","documentFragment","asyncOut","out","createOut","flush","events","listenerCount","on","event","callback","onLast","once","arg","arguments","apply","removeListener","sync","isSync","host","vdomTree","docFragment","firstChild","nextSibling","nodeType","container","ownerDocument","createElement","appendChild","cloneNode","innerHTML","outerHTML","then","fn","fnErr","promise","Promise","resolve","reject","result","catch","isVDOM","c","customEvents","be","ee","t","w","write","module","exports"],"mappings":"aAAA,IAAIA,YAAY,GAAGC,OAAO,CAAC,cAAD,CAA1B;AACA,IAAIC,IAAI,GAAGD,OAAO,CAAC,QAAD,CAAlB;AACA,IAAIE,QAAQ,GAAGD,IAAI,IAAnB;AACA,IAAIE,iBAAiB,GAAGF,IAAI,IAA5B;AACA,IAAIG,KAAK,GAAGH,IAAI,IAAhB;AACA,IAAII,UAAU,GAAGJ,IAAI,IAArB;AACA,IAAIK,SAAS,GAAGL,IAAI,IAApB;AACA,IAAIM,cAAc,GAAGN,IAAI,IAAzB;AACA,IAAIO,YAAY,GAAGR,OAAO,CAAC,iBAAD,CAA1B;AACA,IAAIS,QAAQ,GAAGT,OAAO,CAAC,YAAD,CAAtB;AACA,IAAIU,WAAW,GAAGV,OAAO,CAAC,iBAAD,CAAzB;;AAEA,IAAIW,YAAY,GAAG,QAAnB;AACA,IAAIC,YAAY,GAAG,QAAnB;;AAEA,SAASC,KAAT,CAAeC,IAAf,EAAqB;AACnB,aAAiB,IAAIf,YAAJ,EAAjB;AACA,aAAee,IAAf;AACA,aAAmB,KAAnB;AACD;;AAED,SAASC,gBAAT,CAA0BC,UAA1B,EAAsCC,UAAtC,EAAkDC,SAAlD,EAA6D;AAC3D,MAAI,CAACD,UAAL,EAAiB;AACfA,IAAAA,UAAU,GAAG,IAAId,iBAAJ,EAAb;AACD;;AAED,MAAIgB,KAAJ;;AAEA,MA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ACA,QAAIgC,OAAO,GAAG,IAAIC,OAAJ,CAAY,UAAUC,OAAV,EAAmBC,MAAnB,EAA2B;AACnDnC,MAAAA,GAAG,CAACK,EAAJ,CAAO,OAAP,EAAgB8B,MAAhB,EAAwB9B,EAAxB,CAA2BrE,YAA3B,EAAyC,UAAUoG,MAAV,EAAkB;AACzDF,QAAAA,OAAO,CAACE,MAAD,CAAP;AACD,OAFD;AAGD,KAJa,CAAd;;AAMA,WAAOH,OAAO,CAACC,OAAR,CAAgBF,OAAhB,EAAyBH,IAAzB,CAA8BC,EAA9B,EAAkCC,KAAlC,CAAP;AACD,GAvXuC;;AAyXxCM,EAAAA,KAAK,EAAE,UAAUN,KAAV,EAAiB;AACtB,WAAO,KAAKF,IAAL,CAAUnF,SAAV,EAAqBqF,KAArB,CAAP;AACD,GA3XuC;;AA6XxCO,EAAAA,MAAM,EAAE,IA7XgC;;AA+XxCC,EAAAA,CAAC,EAAE,UAAU3E,YAAV,EAAwBZ,GAAxB,EAA6BwF,YAA7B,EAA2C;AAC5C,cAA+B5E,YAA/B;AACA,cAAsBZ,GAAtB;AACA,eAA+BwF,YAA/B;AACD,GAnYuC,EAA1C;;;AAsYA7F,KAAK,CAAC8C,CAAN,GAAU9C,KAAK,CAACY,OAAhB;AACAZ,KAAK,CAAC8F,EAAN,GAAW9F,KAAK,CAAC4B,YAAjB;AACA5B,KAAK,CAAC+F,EAAN,GAAW/F,KAAK,IAAL,GAAsBA,KAAK,CAACiC,UAAvC;AACAjC,KAAK,CAACgG,CAAN,GAAUhG,KAAK,CAACqB,IAAhB;AACArB,KAAK,CAACwB,CAAN,GAAUxB,KAAK,CAACiG,CAAN,GAAUjG,KAAK,CAACkG,KAAN,GAAclG,KAAK,CAAC0B,IAAxC;;AAEAyE,MAAM,CAACC,OAAP,GAAiB5G,gBAAjB","sourcesContent":["var EventEmitter = require(\"events-light\");\nvar vdom = require(\"./vdom\");\nvar VElement = vdom.___VElement;\nvar VDocumentFragment = vdom.___VDocumentFragment;\nvar VText = vdom.___VText;\nvar VComponent = vdom.___VComponent;\nvar VFragment = vdom.___VFragment;\nvar virtualizeHTML = vdom.___virtualizeHTML;\nvar RenderResult = require(\"../RenderResult\");\nvar morphdom = require(\"./morphdom\");\nvar attrsHelper = require(\"./helpers/attrs\");\n\nvar EVENT_UPDATE = \"update\";\nvar EVENT_FINISH = \"finish\";\n\nfunction State(tree) {\n this.___events = new EventEmitter();\n this.___tree = tree;\n this.___finished = false;\n}\n\nfunction AsyncVDOMBuilder(globalData, parentNode, parentOut) {\n if (!parentNode) {\n parentNode = new VDocumentFragment();\n }\n\n var state;\n\n if (parentOut) {\n state = parentOut.___state;\n } else {\n state = new State(parentNode);\n }\n\n this.___remaining = 1;\n this.___lastCount = 0;\n this.___last = null;\n this.___parentOut = parentOut;\n\n this.data = {};\n this.___state = state;\n this.___parent = parentNode;\n this.global = globalData || {};\n this.___stack = [parentNode];\n this.___sync = false;\n this.___vnode = undefined;\n this.___components = null;\n\n this.___assignedComponentDef = null;\n this.___assignedKey = null;\n this.___assignedCustomEvents = null;\n}\n\nvar proto = (AsyncVDOMBuilder.prototype = {\n ___isOut: true,\n ___host: typeof document === \"object\" && document,\n\n bc: function (component, key, ownerComponent) {\n var vComponent = new VComponent(component, key, ownerComponent);\n return this.___beginNode(vComponent, 0, true);\n },\n\n ___preserveComponent: function (component, key, ownerComponent) {\n var vComponent = new VComponent(component, key, ownerComponent, true);\n this.___beginNode(vComponent, 0);\n },\n\n ___beginNode: function (child, childCount, pushToStack) {\n this.___parent.___appendChild(child);\n if (pushToStack === true) {\n this.___stack.push(child);\n this.___parent = child;\n }\n return childCount === 0 ? this : child;\n },\n\n element: function (tagName, attrs, key, component, childCount, flags, props) {\n var element = new VElement(\n tagName,\n attrs,\n key,\n component,\n childCount,\n flags,\n props\n );\n return this.___beginNode(element, childCount);\n },\n\n ___elementDynamic: function (tagName, attrs, key, componentDef, props) {\n return this.element(\n tagName,\n attrsHelper(attrs),\n key,\n componentDef.___component,\n 0,\n 0,\n props\n );\n },\n\n n: function (node, component) {\n // NOTE: We do a shallow clone since we assume the node is being reused\n // and a node can only have one parent node.\n var clone = node.___cloneNode();\n this.node(clone);\n clone.___ownerComponent = component;\n\n return this;\n },\n\n node: function (node) {\n this.___parent.___appendChild(node);\n return this;\n },\n\n text: function (text, ownerComponent) {\n var type = typeof text;\n\n if (type != \"string\") {\n if (text == null) {\n return;\n } else if (type === \"object\") {\n if (text.toHTML) {\n return this.h(text.toHTML(), ownerComponent);\n }\n }\n\n text = text.toString();\n }\n\n this.___parent.___appendChild(new VText(text, ownerComponent));\n return this;\n },\n\n html: function (html, ownerComponent) {\n if (html != null) {\n var vdomNode = virtualizeHTML(html, ownerComponent);\n this.node(vdomNode);\n }\n\n return this;\n },\n\n beginElement: function (\n tagName,\n attrs,\n key,\n component,\n childCount,\n flags,\n props\n ) {\n var element = new VElement(\n tagName,\n attrs,\n key,\n component,\n childCount,\n flags,\n props\n );\n this.___beginNode(element, childCount, true);\n return this;\n },\n\n ___beginElementDynamic: function (tagName, attrs, key, componentDef, props) {\n return this.beginElement(\n tagName,\n attrsHelper(attrs),\n key,\n componentDef.___component,\n 0,\n 0,\n props\n );\n },\n\n bf: function (key, component, preserve) {\n var fragment = new VFragment(key, component, preserve);\n this.___beginNode(fragment, null, true);\n return this;\n },\n\n ef: function () {\n this.endElement();\n },\n\n endElement: function () {\n var stack = this.___stack;\n stack.pop();\n this.___parent = stack[stack.length - 1];\n },\n\n end: function () {\n this.___parent = undefined;\n\n var remaining = --this.___remaining;\n var parentOut = this.___parentOut;\n\n if (remaining === 0) {\n if (parentOut) {\n parentOut.___handleChildDone();\n } else {\n this.___doFinish();\n }\n } else if (remaining - this.___lastCount === 0) {\n this.___emitLast();\n }\n\n return this;\n },\n\n ___handleChildDone: function () {\n var remaining = --this.___remaining;\n\n if (remaining === 0) {\n var parentOut = this.___parentOut;\n if (parentOut) {\n parentOut.___handleChildDone();\n } else {\n this.___doFinish();\n }\n } else if (remaining - this.___lastCount === 0) {\n this.___emitLast();\n }\n },\n\n ___doFinish: function () {\n var state = this.___state;\n state.___finished = true;\n state.___events.emit(EVENT_FINISH, this.___getResult());\n },\n\n ___emitLast: function () {\n var lastArray = this._last;\n\n var i = 0;\n\n function next() {\n if (i === lastArray.length) {\n return;\n }\n var lastCallback = lastArray[i++];\n lastCallback(next);\n\n if (!lastCallback.length) {\n next();\n }\n }\n\n next();\n },\n\n error: function (e) {\n try {\n this.emit(\"error\", e);\n } finally {\n // If there is no listener for the error event then it will\n // throw a new Error here. In order to ensure that the async fragment\n // is still properly ended we need to put the end() in a `finally`\n // block\n this.end();\n }\n\n return this;\n },\n\n beginAsync: function (options) {\n if (this.___sync) {\n throw Error(\n \"Tried to render async while in sync mode. Note: Client side await is not currently supported in re-renders (Issue: #942).\"\n );\n }\n\n var state = this.___state;\n\n if (options) {\n if (options.last) {\n this.___lastCount++;\n }\n }\n\n this.___remaining++;\n\n var documentFragment = this.___parent.___appendDocumentFragment();\n var asyncOut = new AsyncVDOMBuilder(this.global, documentFragment, this);\n\n state.___events.emit(\"beginAsync\", {\n out: asyncOut,\n parentOut: this\n });\n\n return asyncOut;\n },\n\n createOut: function () {\n return new AsyncVDOMBuilder(this.global);\n },\n\n flush: function () {\n var events = this.___state.___events;\n\n if (events.listenerCount(EVENT_UPDATE)) {\n events.emit(EVENT_UPDATE, new RenderResult(this));\n }\n },\n\n ___getOutput: function () {\n return this.___state.___tree;\n },\n\n ___getResult: function () {\n return this.___result || (this.___result = new RenderResult(this));\n },\n\n on: function (event, callback) {\n var state = this.___state;\n\n if (event === EVENT_FINISH && state.___finished) {\n callback(this.___getResult());\n } else if (event === \"last\") {\n this.onLast(callback);\n } else {\n state.___events.on(event, callback);\n }\n\n return this;\n },\n\n once: function (event, callback) {\n var state = this.___state;\n\n if (event === EVENT_FINISH && state.___finished) {\n callback(this.___getResult());\n } else if (event === \"last\") {\n this.onLast(callback);\n } else {\n state.___events.once(event, callback);\n }\n\n return this;\n },\n\n emit: function (type, arg) {\n var events = this.___state.___events;\n switch (arguments.length) {\n case 1:\n events.emit(type);\n break;\n case 2:\n events.emit(type, arg);\n break;\n default:\n events.emit.apply(events, arguments);\n break;\n }\n return this;\n },\n\n removeListener: function () {\n var events = this.___state.___events;\n events.removeListener.apply(events, arguments);\n return this;\n },\n\n sync: function () {\n this.___sync = true;\n },\n\n isSync: function () {\n return this.___sync;\n },\n\n onLast: function (callback) {\n var lastArray = this._last;\n\n if (lastArray === undefined) {\n this._last = [callback];\n } else {\n lastArray.push(callback);\n }\n\n return this;\n },\n\n ___getNode: function (host) {\n var node = this.___vnode;\n if (!node) {\n var vdomTree = this.___getOutput();\n\n if (!host) host = this.___host;\n this.___vnode = node = vdomTree.___actualize(host, null);\n morphdom(node, vdomTree, host, this.___components);\n }\n return node;\n },\n\n toString: function (host) {\n var docFragment = this.___getNode(host);\n var html = \"\";\n\n var child = docFragment.firstChild;\n while (child) {\n var nextSibling = child.nextSibling;\n if (child.nodeType != 1) {\n var container = docFragment.ownerDocument.createElement(\"div\");\n container.appendChild(child.cloneNode());\n html += container.innerHTML;\n } else {\n html += child.outerHTML;\n }\n\n child = nextSibling;\n }\n\n return html;\n },\n\n then: function (fn, fnErr) {\n var out = this;\n var promise = new Promise(function (resolve, reject) {\n out.on(\"error\", reject).on(EVENT_FINISH, function (result) {\n resolve(result);\n });\n });\n\n return Promise.resolve(promise).then(fn, fnErr);\n },\n\n catch: function (fnErr) {\n return this.then(undefined, fnErr);\n },\n\n isVDOM: true,\n\n c: function (componentDef, key, customEvents) {\n this.___assignedComponentDef = componentDef;\n this.___assignedKey = key;\n this.___assignedCustomEvents = customEvents;\n }\n});\n\nproto.e = proto.element;\nproto.be = proto.beginElement;\nproto.ee = proto.___endElement = proto.endElement;\nproto.t = proto.text;\nproto.h = proto.w = proto.write = proto.html;\n\nmodule.exports = AsyncVDOMBuilder;\n"],"file":"AsyncVDOMBuilder.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/runtime/vdom/VComponent.js"],"names":["VNode","require","inherit","VComponent","component","key","ownerComponent","preserve","prototype","module","exports"],"mappings":"aAAA,IAAIA,KAAK,GAAGC,OAAO,CAAC,SAAD,CAAnB;AACA,IAAIC,OAAO,GAAGD,OAAO,CAAC,qBAAD,CAArB;;AAEA,SAASE,UAAT,CAAoBC,SAApB,EAA+BC,GAA/B,EAAoCC,cAApC,EAAoDC,QAApD,EAA8D;AAC5D,WAAc,IAAd,CAAmB,gBAAnB,EAAqCD,cAArC;AACA,aAAcD,GAAd;AACA,YAAoBD,SAApB;AACA,YAAmBG,QAAnB;AACD;;AAEDJ,UAAU,CAACK,SAAX,GAAuB;AACrB,OAAa,CADQ,EAAvB;;;AAIAN,OAAO,CAACC,UAAD,EAAaH,KAAb,CAAP;;AAEAS,MAAM,CAACC,OAAP,GAAiBP,UAAjB","sourcesContent":["var VNode = require(\"./VNode\");\nvar inherit = require(\"raptor-util/inherit\");\n\nfunction VComponent(component, key, ownerComponent, preserve) {\n this.___VNode(null /* childCount */, ownerComponent);\n this.___key = key;\n this.___component = component;\n this.___preserve = preserve;\n}\n\nVComponent.prototype = {\n ___nodeType: 2\n};\n\ninherit(VComponent, VNode);\n\nmodule.exports = VComponent;\n"],"file":"VComponent.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/runtime/vdom/VDocumentFragment.js"],"names":["VNode","require","inherit","extend","VDocumentFragmentClone","other","VDocumentFragment","out","prototype","host","ownerDocument","createDocumentFragment","module","exports"],"mappings":"aAAA,IAAIA,KAAK,GAAGC,OAAO,CAAC,SAAD,CAAnB;AACA,IAAIC,OAAO,GAAGD,OAAO,CAAC,qBAAD,CAArB;AACA,IAAIE,MAAM,GAAGF,OAAO,CAAC,oBAAD,CAApB;;AAEA,SAASG,sBAAT,CAAgCC,KAAhC,EAAuC;AACrCF,EAAAA,MAAM,CAAC,IAAD,EAAOE,KAAP,CAAN;AACA,aAAqB,IAArB;AACA,aAA8B,IAA9B;AACD;;AAED,SAASC,iBAAT,CAA2BC,GAA3B,EAAgC;AAC9B,WAAc,IAAd,CAAmB,gBAAnB;AACA,YAAcA,GAAd;AACD;;AAEDD,iBAAiB,CAACE,SAAlB,GAA8B;AAC5B,OAAa,EADe;;AAG5B,OAAqB,IAHO;;AAK5B,OAAc,YAAY;AACxB,WAAO,IAAIJ,sBAAJ,CAA2B,IAA3B,CAAP;AACD,GAP2B;;AAS5B,OAAc,UAAUK,IAAV,EAAgB;AAC5B,WAAO,CAACA,IAAI,CAACC,aAAL,IAAsBD,IAAvB,EAA6BE,sBAA7B,EAAP;AACD,GAX2B,EAA9B;;;AAcAT,OAAO,CAACI,iBAAD,EAAoBN,KAApB,CAAP;;AAEAI,sBAAsB,CAACI,SAAvB,GAAmCF,iBAAiB,CAACE,SAArD;;AAEAI,MAAM,CAACC,OAAP,GAAiBP,iBAAjB","sourcesContent":["var VNode = require(\"./VNode\");\nvar inherit = require(\"raptor-util/inherit\");\nvar extend = require(\"raptor-util/extend\");\n\nfunction VDocumentFragmentClone(other) {\n extend(this, other);\n this.___parentNode = null;\n this.___nextSiblingInternal = null;\n}\n\nfunction VDocumentFragment(out) {\n this.___VNode(null /* childCount */);\n this.___out = out;\n}\n\nVDocumentFragment.prototype = {\n ___nodeType: 11,\n\n ___DocumentFragment: true,\n\n ___cloneNode: function () {\n return new VDocumentFragmentClone(this);\n },\n\n ___actualize: function (host) {\n return (host.ownerDocument || host).createDocumentFragment();\n }\n};\n\ninherit(VDocumentFragment, VNode);\n\nVDocumentFragmentClone.prototype = VDocumentFragment.prototype;\n\nmodule.exports = VDocumentFragment;\n"],"file":"VDocumentFragment.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/runtime/vdom/VElement.js"],"names":["domData","require","componentsUtil","vElementByDOMNode","VNode","inherit","ATTR_XLINK_HREF","xmlnsRegExp","hasOwnProperty","Object","prototype","NS_XLINK","NS_HTML","NS_MATH","NS_SVG","DEFAULT_NS","svg","math","FLAG_SIMPLE_ATTRS","FLAG_CUSTOM_ELEMENT","FLAG_SPREAD_ATTRS","defineProperty","ATTR_HREF","EMPTY_OBJECT","freeze","convertAttrValue","type","value","RegExp","source","assign","a","b","key","call","setAttribute","el","namespaceURI","name","setAttributeNS","removeAttribute","removeAttributeNS","VElementClone","other","VElement","tagName","attrs","ownerComponent","childCount","flags","props","constId","i","e","child","n","node","host","parentNamespaceURI","attributes","ownerDocument","createElementNS","attrName","attrValue","defaultValue","set","proto","forEach","get","virtualizeElement","virtualizeChildNodes","attrCount","length","attr","test","nodeName","toLowerCase","vdomEl","fromEl","vFromEl","toEl","removePreservedAttributes","fromFlags","toFlags","oldAttrs","className","id","style","cssText","module","exports"],"mappings":"cAAA;;AAEA,IAAIA,OAAO,GAAGC,OAAO,CAAC,wBAAD,CAArB;AACA,IAAIC,cAAc,GAAGD,OAAO,CAAC,oBAAD,CAA5B;AACA,IAAIE,iBAAiB,GAAGH,OAAO,IAA/B;AACA,IAAII,KAAK,GAAGH,OAAO,CAAC,SAAD,CAAnB;AACA,IAAII,OAAO,GAAGJ,OAAO,CAAC,qBAAD,CAArB;AACA,IAAIK,eAAe,GAAG,YAAtB;AACA,IAAIC,WAAW,GAAG,aAAlB;AACA,IAAIC,cAAc,GAAGC,MAAM,CAACC,SAAP,CAAiBF,cAAtC;AACA,IAAIG,QAAQ,GAAG,8BAAf;AACA,IAAIC,OAAO,GAAG,8BAAd;AACA,IAAIC,OAAO,GAAG,oCAAd;AACA,IAAIC,MAAM,GAAG,4BAAb;AACA,IAAIC,UAAU,GAAG;AACfC,EAAAA,GAAG,EAAEF,MADU;AAEfG,EAAAA,IAAI,EAAEJ,OAFS,EAAjB;;;AAKA,IAAIK,iBAAiB,GAAG,CAAxB;AACA,IAAIC,mBAAmB,GAAG,CAA1B;AACA,IAAIC,iBAAiB,GAAG,CAAxB;;AAEA,IAAIC,cAAc,GAAGZ,MAAM,CAACY,cAA5B;;AAEA,IAAIC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,QAAvB,CAAf;AACD,KAFD,MAEO,IAAIsB,QAAQ,CAACtB,QAAD,CAAR,KAAuBC,SAA3B,EAAsC;AAC3C,UAAIrC,IAAI,GAAG,OAAOqC,SAAlB;;AAEA,UAAIrC,IAAI,KAAK,QAAb,EAAuB;AACrBqC,QAAAA,SAAS,GAAGtC,gBAAgB,CAACC,IAAD,EAAOqC,SAAP,CAA5B;AACD;;AAED5B,MAAAA,YAAY,CAAC2C,MAAD,EAASzC,YAAT,EAAuByB,QAAvB,EAAiCC,SAAjC,CAAZ;AACD;AACF;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAIiB,IAAI,IAAJ,KAAgB,IAAhB,IAAwBE,SAAS,GAAG9D,iBAAxC,EAA2D;AACzD,SAAK0C,QAAL,IAAiBsB,QAAjB,EAA2B;AACzB,UAAI,EAAEtB,QAAQ,IAAIhB,KAAd,CAAJ,EAA0B;AACxB,YAAIgB,QAAQ,KAAKxD,eAAjB,EAAkC;AAChCwE,UAAAA,MAAM,CAACrC,iBAAP,CAAyBnC,eAAzB,EAA0CgB,SAA1C;AACD,SAFD,MAEO;AACLwD,UAAAA,MAAM,CAACtC,eAAP,CAAuBsB,QAAvB;AACD;AACF;AACF;AACF;AACF,CA5GD;;AA8GA2B,MAAM,CAACC,OAAP,GAAiB9C,QAAjB","sourcesContent":["/* jshint newcap:false */\n\nvar domData = require(\"../components/dom-data\");\nvar componentsUtil = require(\"../components/util\");\nvar vElementByDOMNode = domData.___vElementByDOMNode;\nvar VNode = require(\"./VNode\");\nvar inherit = require(\"raptor-util/inherit\");\nvar ATTR_XLINK_HREF = \"xlink:href\";\nvar xmlnsRegExp = /^xmlns(:|$)/;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar NS_XLINK = \"http://www.w3.org/1999/xlink\";\nvar NS_HTML = \"http://www.w3.org/1999/xhtml\";\nvar NS_MATH = \"http://www.w3.org/1998/Math/MathML\";\nvar NS_SVG = \"http://www.w3.org/2000/svg\";\nvar DEFAULT_NS = {\n svg: NS_SVG,\n math: NS_MATH\n};\n\nvar FLAG_SIMPLE_ATTRS = 1;\nvar FLAG_CUSTOM_ELEMENT = 2;\nvar FLAG_SPREAD_ATTRS = 4;\n\nvar defineProperty = Object.defineProperty;\n\nvar ATTR_HREF = \"href\";\nvar EMPTY_OBJECT = Object.freeze({});\n\nfunction convertAttrValue(type, value) {\n if (value === true) {\n return \"\";\n } else if (type == \"object\") {\n if (value instanceof RegExp) {\n return value.source;\n }\n }\n\n return value + \"\";\n}\n\nfunction assign(a, b) {\n for (var key in b) {\n if (hasOwnProperty.call(b, key)) {\n a[key] = b[key];\n }\n }\n}\n\nfunction setAttribute(el, namespaceURI, name, value) {\n if (namespaceURI === null) {\n el.setAttribute(name, value);\n } else {\n el.setAttributeNS(namespaceURI, name, value);\n }\n}\n\nfunction removeAttribute(el, namespaceURI, name) {\n if (namespaceURI === null) {\n el.removeAttribute(name);\n } else {\n el.removeAttributeNS(namespaceURI, name);\n }\n}\n\nfunction VElementClone(other) {\n this.___firstChildInternal = other.___firstChildInternal;\n this.___parentNode = null;\n this.___nextSiblingInternal = null;\n\n this.___key = other.___key;\n this.___attributes = other.___attributes;\n this.___properties = other.___properties;\n this.___nodeName = other.___nodeName;\n this.___flags = other.___flags;\n this.___valueInternal = other.___valueInternal;\n this.___constId = other.___constId;\n}\n\nfunction VElement(\n tagName,\n attrs,\n key,\n ownerComponent,\n childCount,\n flags,\n props\n) {\n this.___VNode(childCount, ownerComponent);\n\n var constId;\n\n if (props) {\n constId = props.i;\n }\n\n this.___key = key;\n this.___flags = flags || 0;\n this.___attributes = attrs || EMPTY_OBJECT;\n this.___properties = props || EMPTY_OBJECT;\n this.___nodeName = tagName;\n this.___valueInternal = null;\n this.___constId = constId;\n this.___preserve = false;\n this.___preserveBody = false;\n}\n\nVElement.prototype = {\n ___nodeType: 1,\n\n ___cloneNode: function () {\n return new VElementClone(this);\n },\n\n /**\n * Shorthand method for creating and appending an HTML element\n *\n * @param {String} tagName The tag name (e.g. \"div\")\n * @param {int|null} attrCount The number of attributes (or `null` if not known)\n * @param {int|null} childCount The number of child nodes (or `null` if not known)\n */\n e: function (tagName, attrs, key, ownerComponent, childCount, flags, props) {\n var child = this.___appendChild(\n new VElement(\n tagName,\n attrs,\n key,\n ownerComponent,\n childCount,\n flags,\n props\n )\n );\n\n if (childCount === 0) {\n return this.___finishChild();\n } else {\n return child;\n }\n },\n\n /**\n * Shorthand method for creating and appending a static node. The provided node is automatically cloned\n * using a shallow clone since it will be mutated as a result of setting `nextSibling` and `parentNode`.\n *\n * @param {String} value The value for the new Comment node\n */\n n: function (node, ownerComponent) {\n node = node.___cloneNode();\n node.___ownerComponent = ownerComponent;\n this.___appendChild(node);\n return this.___finishChild();\n },\n\n ___actualize: function (host, parentNamespaceURI) {\n var tagName = this.___nodeName;\n var attributes = this.___attributes;\n var namespaceURI = DEFAULT_NS[tagName] || parentNamespaceURI || NS_HTML;\n\n var flags = this.___flags;\n var el = (host.ownerDocument || host).createElementNS(\n namespaceURI,\n tagName\n );\n\n if (flags & FLAG_CUSTOM_ELEMENT) {\n assign(el, attributes);\n } else {\n for (var attrName in attributes) {\n var attrValue = attributes[attrName];\n\n if (attrValue !== false && attrValue != null) {\n var type = typeof attrValue;\n\n if (type !== \"string\") {\n // Special attributes aren't copied to the real DOM. They are only\n // kept in the virtual attributes map\n attrValue = convertAttrValue(type, attrValue);\n }\n\n if (attrName == ATTR_XLINK_HREF) {\n setAttribute(el, NS_XLINK, ATTR_HREF, attrValue);\n } else {\n el.setAttribute(attrName, attrValue);\n }\n }\n }\n\n if (tagName === \"textarea\") {\n el.defaultValue = el.value = this.___value;\n }\n }\n\n vElementByDOMNode.set(el, this);\n\n return el;\n },\n\n ___hasAttribute: function (name) {\n // We don't care about the namespaces since the there\n // is no chance that attributes with the same name will have\n // different namespaces\n var value = this.___attributes[name];\n return value != null && value !== false;\n }\n};\n\ninherit(VElement, VNode);\n\nvar proto = (VElementClone.prototype = VElement.prototype);\n\n[\"checked\", \"selected\", \"disabled\"].forEach(function (name) {\n defineProperty(proto, name, {\n get: function () {\n var value = this.___attributes[name];\n return value !== false && value != null;\n }\n });\n});\n\ndefineProperty(proto, \"___value\", {\n get: function () {\n var value = this.___valueInternal;\n if (value == null) {\n value = this.___attributes.value;\n }\n return value != null && value !== false\n ? value + \"\"\n : this.___attributes.type === \"checkbox\" ||\n this.___attributes.type === \"radio\"\n ? \"on\"\n : \"\";\n }\n});\n\nVElement.___removePreservedAttributes = function (attrs) {\n // By default this static method is a no-op, but if there are any\n // compiled components that have \"no-update\" attributes then\n // `preserve-attrs.js` will be imported and this method will be replaced\n // with a method that actually does something\n return attrs;\n};\n\nfunction virtualizeElement(node, virtualizeChildNodes, ownerComponent) {\n var attributes = node.attributes;\n var attrCount = attributes.length;\n\n var attrs = null;\n var props = null;\n\n if (attrCount) {\n attrs = {};\n for (var i = 0; i < attrCount; i++) {\n var attr = attributes[i];\n var attrName = attr.name;\n if (!xmlnsRegExp.test(attrName)) {\n if (attrName === \"data-marko\") {\n props = componentsUtil.___getMarkoPropsFromEl(node);\n } else if (attr.namespaceURI === NS_XLINK) {\n attrs[ATTR_XLINK_HREF] = attr.value;\n } else {\n attrs[attrName] = attr.value;\n }\n }\n }\n }\n\n var tagName = node.nodeName;\n\n if (node.namespaceURI === NS_HTML) {\n tagName = tagName.toLowerCase();\n }\n\n var vdomEl = new VElement(\n tagName,\n attrs,\n null /*key*/,\n ownerComponent,\n 0 /*child count*/,\n 0 /*flags*/,\n props\n );\n\n if (vdomEl.___nodeName === \"textarea\") {\n vdomEl.___valueInternal = node.value;\n } else if (virtualizeChildNodes) {\n virtualizeChildNodes(node, vdomEl, ownerComponent);\n }\n\n return vdomEl;\n}\n\nVElement.___virtualize = virtualizeElement;\n\nVElement.___morphAttrs = function (fromEl, vFromEl, toEl) {\n var removePreservedAttributes = VElement.___removePreservedAttributes;\n\n var fromFlags = vFromEl.___flags;\n var toFlags = toEl.___flags;\n\n vElementByDOMNode.set(fromEl, toEl);\n\n var attrs = toEl.___attributes;\n var props = toEl.___properties;\n\n if (toFlags & FLAG_CUSTOM_ELEMENT) {\n return assign(fromEl, attrs);\n }\n\n var attrName;\n\n // We use expando properties to associate the previous HTML\n // attributes provided as part of the VDOM node with the\n // real VElement DOM node. When diffing attributes,\n // we only use our internal representation of the attributes.\n // When diffing for the first time it's possible that the\n // real VElement node will not have the expando property\n // so we build the attribute map from the expando property\n\n var oldAttrs = vFromEl.___attributes;\n\n if (oldAttrs) {\n if (oldAttrs === attrs) {\n // For constant attributes the same object will be provided\n // every render and we can use that to our advantage to\n // not waste time diffing a constant, immutable attribute\n // map.\n return;\n } else {\n oldAttrs = removePreservedAttributes(oldAttrs, props);\n }\n }\n\n var attrValue;\n\n if (toFlags & FLAG_SIMPLE_ATTRS && fromFlags & FLAG_SIMPLE_ATTRS) {\n if (oldAttrs[\"class\"] !== (attrValue = attrs[\"class\"])) {\n fromEl.className = attrValue;\n }\n if (oldAttrs.id !== (attrValue = attrs.id)) {\n fromEl.id = attrValue;\n }\n if (oldAttrs.style !== (attrValue = attrs.style)) {\n fromEl.style.cssText = attrValue;\n }\n return;\n }\n\n // In some cases we only want to set an attribute value for the first\n // render or we don't want certain attributes to be touched. To support\n // that use case we delete out all of the preserved attributes\n // so it's as if they never existed.\n attrs = removePreservedAttributes(attrs, props, true);\n\n var namespaceURI;\n\n // Loop over all of the attributes in the attribute map and compare\n // them to the value in the old map. However, if the value is\n // null/undefined/false then we want to remove the attribute\n for (attrName in attrs) {\n attrValue = attrs[attrName];\n namespaceURI = null;\n\n if (attrName === ATTR_XLINK_HREF) {\n namespaceURI = NS_XLINK;\n attrName = ATTR_HREF;\n }\n\n if (attrValue == null || attrValue === false) {\n removeAttribute(fromEl, namespaceURI, attrName);\n } else if (oldAttrs[attrName] !== attrValue) {\n var type = typeof attrValue;\n\n if (type !== \"string\") {\n attrValue = convertAttrValue(type, attrValue);\n }\n\n setAttribute(fromEl, namespaceURI, attrName, attrValue);\n }\n }\n\n // If there are any old attributes that are not in the new set of attributes\n // then we need to remove those attributes from the target node\n //\n // NOTE: We can skip this if the the element is keyed and didn't have spread attributes\n // because we know we already processed all of the attributes for\n // both the target and original element since target VElement nodes will\n // have all attributes declared. However, we can only skip if the node\n // was not a virtualized node (i.e., a node that was not rendered by a\n // Marko template, but rather a node that was created from an HTML\n // string or a real DOM node).\n if (toEl.___key === null || fromFlags & FLAG_SPREAD_ATTRS) {\n for (attrName in oldAttrs) {\n if (!(attrName in attrs)) {\n if (attrName === ATTR_XLINK_HREF) {\n fromEl.removeAttributeNS(ATTR_XLINK_HREF, ATTR_HREF);\n } else {\n fromEl.removeAttribute(attrName);\n }\n }\n }\n }\n};\n\nmodule.exports = VElement;\n"],"file":"VElement.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/runtime/vdom/VFragment.js"],"names":["domData","require","keysByDOMNode","vElementByDOMNode","VNode","inherit","createFragmentNode","VFragment","key","ownerComponent","preserve","prototype","fragment","set","module","exports"],"mappings":"aAAA,IAAIA,OAAO,GAAGC,OAAO,CAAC,wBAAD,CAArB;AACA,IAAIC,aAAa,GAAGF,OAAO,IAA3B;AACA,IAAIG,iBAAiB,GAAGH,OAAO,IAA/B;AACA,IAAII,KAAK,GAAGH,OAAO,CAAC,SAAD,CAAnB;AACA,IAAII,OAAO,GAAGJ,OAAO,CAAC,qBAAD,CAArB;AACA,IAAIK,kBAAkB,GAAGL,OAAO,CAAC,qBAAD,CAAP,IAAzB;;AAEA,SAASM,SAAT,CAAmBC,GAAnB,EAAwBC,cAAxB,EAAwCC,QAAxC,EAAkD;AAChD,WAAc,IAAd,CAAmB,gBAAnB,EAAqCD,cAArC;AACA,aAAcD,GAAd;AACA,YAAmBE,QAAnB;AACD;;AAEDH,SAAS,CAACI,SAAV,GAAsB;AACpB,OAAa,EADO;AAEpB,OAAc,YAAY;AACxB,QAAIC,QAAQ,GAAGN,kBAAkB,EAAjC;AACAJ,IAAAA,aAAa,CAACW,GAAd,CAAkBD,QAAlB,EAA4B,QAA5B;AACAT,IAAAA,iBAAiB,CAACU,GAAlB,CAAsBD,QAAtB,EAAgC,IAAhC;AACA,WAAOA,QAAP;AACD,GAPmB,EAAtB;;;AAUAP,OAAO,CAACE,SAAD,EAAYH,KAAZ,CAAP;;AAEAU,MAAM,CAACC,OAAP,GAAiBR,SAAjB","sourcesContent":["var domData = require(\"../components/dom-data\");\nvar keysByDOMNode = domData.___keyByDOMNode;\nvar vElementByDOMNode = domData.___vElementByDOMNode;\nvar VNode = require(\"./VNode\");\nvar inherit = require(\"raptor-util/inherit\");\nvar createFragmentNode = require(\"./morphdom/fragment\").___createFragmentNode;\n\nfunction VFragment(key, ownerComponent, preserve) {\n this.___VNode(null /* childCount */, ownerComponent);\n this.___key = key;\n this.___preserve = preserve;\n}\n\nVFragment.prototype = {\n ___nodeType: 12,\n ___actualize: function () {\n var fragment = createFragmentNode();\n keysByDOMNode.set(fragment, this.___key);\n vElementByDOMNode.set(fragment, this);\n return fragment;\n }\n};\n\ninherit(VFragment, VNode);\n\nmodule.exports = VFragment;\n"],"file":"VFragment.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/runtime/vdom/VNode.js"],"names":["VNode","prototype","finalChildCount","ownerComponent","firstChild","nestedFirstChild","nextSibling","parentNode","child","childValue","TypeError","lastChild","finishChild","module","exports"],"mappings":"cAAA;AACA,SAASA,KAAT,GAAiB,CAAE;;AAEnBA,KAAK,CAACC,SAAN,GAAkB;AAChB,OAAU,UAAUC,eAAV,EAA2BC,cAA3B,EAA2C;AACnD,eAA0BD,eAA1B;AACA,eAAqB,CAArB;AACA,eAA6B,IAA7B;AACA,eAAoB,IAApB;AACA,eAAqB,IAArB;AACA,eAA8B,IAA9B;AACA,eAAyBC,cAAzB;AACD,GATe;;AAWhB,YAAoB;AAClB,QAAIC,UAAU,GAAG,QAAjB;;AAEA,QAAIA,UAAU,IAAIA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AP;AACD;AACF;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA/FgB,CAAlB;;AAkGAC,MAAM,CAACC,OAAP,GAAiBd,KAAjB","sourcesContent":["/* jshint newcap:false */\nfunction VNode() {}\n\nVNode.prototype = {\n ___VNode: function (finalChildCount, ownerComponent) {\n this.___finalChildCount = finalChildCount;\n this.___childCount = 0;\n this.___firstChildInternal = null;\n this.___lastChild = null;\n this.___parentNode = null;\n this.___nextSiblingInternal = null;\n this.___ownerComponent = ownerComponent;\n },\n\n get ___firstChild() {\n var firstChild = this.___firstChildInternal;\n\n if (firstChild && firstChild.___DocumentFragment) {\n var nestedFirstChild = firstChild.___firstChild;\n // The first child is a DocumentFragment node.\n // If the DocumentFragment node has a first child then we will return that.\n // Otherwise, the DocumentFragment node is not *really* the first child and\n // we need to skip to its next sibling\n return nestedFirstChild || firstChild.___nextSibling;\n }\n\n return firstChild;\n },\n\n get ___nextSibling() {\n var nextSibling = this.___nextSiblingInternal;\n\n if (nextSibling) {\n if (nextSibling.___DocumentFragment) {\n var firstChild = nextSibling.___firstChild;\n return firstChild || nextSibling.___nextSibling;\n }\n } else {\n var parentNode = this.___parentNode;\n if (parentNode && parentNode.___DocumentFragment) {\n return parentNode.___nextSibling;\n }\n }\n\n return nextSibling;\n },\n\n ___appendChild: function (child) {\n this.___childCount++;\n\n if (this.___nodeName === \"textarea\") {\n if (child.___Text) {\n var childValue = child.___nodeValue;\n this.___valueInternal = (this.___valueInternal || \"\") + childValue;\n } else if (child.___preserve || child.___preserveBody) {\n this.___preserveTextAreaValue = true;\n } else {\n throw TypeError();\n }\n } else {\n var lastChild = this.___lastChild;\n\n child.___parentNode = this;\n\n if (lastChild) {\n lastChild.___nextSiblingInternal = child;\n } else {\n this.___firstChildInternal = child;\n }\n\n this.___lastChild = child;\n }\n\n return child;\n },\n\n ___finishChild: function finishChild() {\n if (this.___childCount === this.___finalChildCount && this.___parentNode) {\n return this.___parentNode.___finishChild();\n } else {\n return this;\n }\n }\n\n // ,toJSON: function() {\n // var clone = Object.assign({\n // nodeType: this.nodeType\n // }, this);\n //\n // for (var k in clone) {\n // if (k.startsWith('_')) {\n // delete clone[k];\n // }\n // }\n // delete clone._nextSibling;\n // delete clone._lastChild;\n // delete clone.parentNode;\n // return clone;\n // }\n};\n\nmodule.exports = VNode;\n"],"file":"VNode.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/runtime/vdom/VText.js"],"names":["VNode","require","inherit","VText","value","ownerComponent","prototype","host","ownerDocument","createTextNode","module","exports"],"mappings":"aAAA,IAAIA,KAAK,GAAGC,OAAO,CAAC,SAAD,CAAnB;AACA,IAAIC,OAAO,GAAGD,OAAO,CAAC,qBAAD,CAArB;;AAEA,SAASE,KAAT,CAAeC,KAAf,EAAsBC,cAAtB,EAAsC;AACpC,WAAc,CAAC,CAAf,CAAiB,iBAAjB,EAAoCA,cAApC;AACA,aAAoBD,KAApB;AACD;;AAEDD,KAAK,CAACG,SAAN,GAAkB;AAChB,OAAS,IADO;;AAGhB,OAAa,CAHG;;AAKhB,OAAc,UAAUC,IAAV,EAAgB;AAC5B,WAAO,CAACA,IAAI,CAACC,aAAL,IAAsBD,IAAvB,EAA6BE,cAA7B,CAA4C,QAA5C,CAAP;AACD,GAPe;;AAShB,OAAc,YAAY;AACxB,WAAO,IAAIN,KAAJ,CAAU,QAAV,CAAP;AACD,GAXe,EAAlB;;;AAcAD,OAAO,CAACC,KAAD,EAAQH,KAAR,CAAP;;AAEAU,MAAM,CAACC,OAAP,GAAiBR,KAAjB","sourcesContent":["var VNode = require(\"./VNode\");\nvar inherit = require(\"raptor-util/inherit\");\n\nfunction VText(value, ownerComponent) {\n this.___VNode(-1 /* no children */, ownerComponent);\n this.___nodeValue = value;\n}\n\nVText.prototype = {\n ___Text: true,\n\n ___nodeType: 3,\n\n ___actualize: function (host) {\n return (host.ownerDocument || host).createTextNode(this.___nodeValue);\n },\n\n ___cloneNode: function () {\n return new VText(this.___nodeValue);\n }\n};\n\ninherit(VText, VNode);\n\nmodule.exports = VText;\n"],"file":"VText.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/vdom/helpers/attrs.js"],"names":["classHelper","require","styleHelper","module","exports","attributes","newAttributes","attrName","val"],"mappings":"AAAA;;AAEA,IAAIA,WAAW,GAAGC,OAAO,CAAC,2BAAD,CAAzB;AACA,IAAIC,WAAW,GAAGD,OAAO,CAAC,2BAAD,CAAzB;;AAEA;AACA;AACA;AACAE,MAAM,CAACC,OAAP,GAAiB,UAAUC,UAAV,EAAsB;AACrC,MAAIA,UAAU,IAAI,IAAlB,EAAwB;AACtB;;;;;;;;;AASA,QAAIC,aAAa,GAAG,EAApB;;AAEA,SAAK,IAAIC,QAAT,IAAqBF,UAArB,EAAiC;AAC/B,UAAIG,GAAG,GAAGH,UAAU,CAACE,QAAD,CAApB;AACA,UAAIA,QAAQ,KAAK,YAAjB,EAA+B;AAC7B;AACD;;AAED,UAAIA,QAAQ,KAAK,OAAjB,EAA0B;AACxBC,QAAAA,GAAG,GAAGR,WAAW,CAACQ,GAAD,CAAjB;AACD,OAFD,MAEO,IAAID,QAAQ,KAAK,OAAjB,EAA0B;AAC/BC,QAAAA,GAAG,GAAGN,WAAW,CAACM,GAAD,CAAjB;AACD;;AAEDF,MAAAA,aAAa,CAACC,QAAD,CAAb,GAA0BC,GAA1B;AACD;;AAED,WAAOF,aAAP;AACD;;AAED,SAAOD,UAAP;AACD,CAhCD","sourcesContent":["\"use strict\";\n\nvar classHelper = require(\"../../helpers/class-value\");\nvar styleHelper = require(\"../../helpers/style-value\");\n\n/**\n * Helper for processing dynamic attributes\n */\nmodule.exports = function (attributes) {\n if (attributes != null) {\n // eslint-disable-next-line no-constant-condition\n if (\"MARKO_DEBUG\") {\n if (typeof attributes !== \"object\") {\n throw new Error(\n \"A non object was passed as a dynamic attributes value.\"\n );\n }\n }\n\n var newAttributes = {};\n\n for (var attrName in attributes) {\n var val = attributes[attrName];\n if (attrName === \"renderBody\") {\n continue;\n }\n\n if (attrName === \"class\") {\n val = classHelper(val);\n } else if (attrName === \"style\") {\n val = styleHelper(val);\n }\n\n newAttributes[attrName] = val;\n }\n\n return newAttributes;\n }\n\n return attributes;\n};\n"],"file":"attrs.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/vdom/helpers/const.js"],"names":["module","exports","id","i"],"mappings":"AAAA;;AAEAA,MAAM,CAACC,OAAP,GAAiB,UAAUC,EAAV,EAAc;AAC7B,MAAIC,CAAC,GAAG,CAAR;AACA,SAAO,YAAY;AACjB,WAAOD,EAAE,GAAGC,CAAC,EAAb;AACD,GAFD;AAGD,CALD","sourcesContent":["\"use strict\";\n\nmodule.exports = function (id) {\n var i = 0;\n return function () {\n return id + i++;\n };\n};\n"],"file":"const.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/vdom/helpers/v-element.js"],"names":["VElement","require","module","exports","tagName","attrs","key","component","childCount","flags","props"],"mappings":"AAAA;;AAEA,IAAIA,QAAQ,GAAGC,OAAO,CAAC,SAAD,CAAP,IAAf;;AAEAC,MAAM,CAACC,OAAP,GAAiB;AACfC,OADe;AAEfC,KAFe;AAGfC,GAHe;AAIfC,SAJe;AAKfC,UALe;AAMfC,KANe;AAOfC,KAPe;AAQf;AACA,SAAO,IAAIV,QAAJ,CAAaI,OAAb,EAAsBC,KAAtB,EAA6BC,GAA7B,EAAkCC,SAAlC,EAA6CC,UAA7C,EAAyDC,KAAzD,EAAgEC,KAAhE,CAAP;AACD,CAVD","sourcesContent":["\"use strict\";\n\nvar VElement = require(\"../vdom\").___VElement;\n\nmodule.exports = function (\n tagName,\n attrs,\n key,\n component,\n childCount,\n flags,\n props\n) {\n return new VElement(tagName, attrs, key, component, childCount, flags, props);\n};\n"],"file":"v-element.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/vdom/helpers/v-text.js"],"names":["VText","require","module","exports","value"],"mappings":"AAAA;;AAEA,IAAIA,KAAK,GAAGC,OAAO,CAAC,SAAD,CAAP,IAAZ;;AAEAC,MAAM,CAACC,OAAP,GAAiB,UAAUC,KAAV,EAAiB;AAChC,SAAO,IAAIJ,KAAJ,CAAUI,KAAV,CAAP;AACD,CAFD","sourcesContent":["\"use strict\";\n\nvar VText = require(\"../vdom\").___VText;\n\nmodule.exports = function (value) {\n return new VText(value);\n};\n"],"file":"v-text.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/runtime/vdom/hot-reload.js"],"names":["runtime","require","queueMicrotask","util","registry","updateManager","createTemplate","t","createComponent","registered","queue","typeName","renderFn","template","instances","Object","defineProperty","get","proxyRenderer","set","v","length","batchUpdate","push","newProto","prototype","forEach","instance","hasLifecycleChanged","__proto__","startNode","endNode","parentNode","curNode","removeAllListeners","nextSibling","removeChild","afterInsert","apply","arguments","id","once","splice","indexOf","oldProto","hasMethodChanged","method","toString","pending","undefined","i","module","exports"],"mappings":"aAAA,IAAIA,OAAO,GAAGC,OAAO,CAAC,GAAD,CAArB;AACA,IAAIC,cAAc,GAAGD,OAAO,CAAC,mBAAD,CAA5B;AACA,IAAIE,IAAI,GAAGF,OAAO,CAAC,oBAAD,CAAlB;AACA,IAAIG,QAAQ,GAAGH,OAAO,CAAC,wBAAD,CAAtB;AACA,IAAII,aAAa,GAAGJ,OAAO,CAAC,8BAAD,CAA3B;;AAEA,IAAIK,cAAc,GAAGN,OAAO,CAACO,CAA7B;AACA,IAAIC,eAAe,GAAGJ,QAAQ,IAA9B;AACA,IAAIK,UAAU,GAAG,EAAjB;AACA,IAAIC,KAAJ;;AAEAV,OAAO,CAACO,CAAR,GAAY,UAAUI,QAAV,EAAoB;AAC9B,MAAIF,UAAU,CAACE,QAAD,CAAd,EAA0B;AACxB,WAAOF,UAAU,CAACE,QAAD,CAAjB;AACD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AhB;AACAA,IAAAA,gBAAgB,CAAC,SAAD,CADhB;AAEAA,IAAAA,gBAAgB,CAAC,UAAD,CAFhB;AAGAA,IAAAA,gBAAgB,CAAC,SAAD,CAJlB;;;AAOA,WAASA,gBAAT,CAA0BC,MAA1B,EAAkC;AAChC;AACE,OAACF,QAAQ,CAACE,MAAD,CAAR,IAAoBF,QAAQ,CAACE,MAAD,CAAR,CAAiBC,QAAjB,EAArB;AACCvB,MAAAA,QAAQ,CAACsB,MAAD,CAAR,IAAoBtB,QAAQ,CAACsB,MAAD,CAAR,CAAiBC,QAAjB,EADrB,CADF;;AAID;AACF;;AAED,SAASzB,WAAT,GAAuB;AACrBjB,EAAAA,aAAa,IAAb,CAA6B,YAAY;AACvC,QAAI2C,OAAO,GAAGtC,KAAd;AACAA,IAAAA,KAAK,GAAGuC,SAAR;;AAEA,SAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGF,OAAO,CAAC3B,MAA5B,EAAoC6B,CAAC,EAArC,EAAyC;AACvCF,MAAAA,OAAO,CAACE,CAAD,CAAP;AACD;AACF,GAPD;AAQD;;AAEDC,MAAM,CAACC,OAAP,GAAiBpD,OAAjB","sourcesContent":["var runtime = require(\".\");\nvar queueMicrotask = require(\"../queueMicrotask\");\nvar util = require(\"../components/util\");\nvar registry = require(\"../components/registry\");\nvar updateManager = require(\"../components/update-manager\");\n\nvar createTemplate = runtime.t;\nvar createComponent = registry.___createComponent;\nvar registered = {};\nvar queue;\n\nruntime.t = function (typeName) {\n if (registered[typeName]) {\n return registered[typeName];\n }\n\n var renderFn;\n var template = (registered[typeName] = createTemplate(typeName));\n var instances = (template.___instances = []);\n Object.defineProperty(template, \"_\", {\n get: function () {\n return renderFn && proxyRenderer;\n },\n set: function (v) {\n renderFn = v;\n\n if (instances.length) {\n if (!queue) {\n queue = [];\n queueMicrotask(batchUpdate);\n }\n\n queue.push(function () {\n var newProto = registry.___getComponentClass(typeName).prototype;\n instances.forEach(function (instance) {\n if (hasLifecycleChanged(instance.__proto__, newProto)) {\n var startNode = instance.___rootNode.startNode;\n var endNode = instance.___rootNode.endNode;\n var parentNode = startNode.parentNode;\n var curNode;\n\n instance.___hmrDestroyed = true;\n instance.___emitDestroy();\n instance.___removeDOMEventListeners();\n\n if (instance.___subscriptions) {\n instance.___subscriptions.removeAllListeners();\n instance.___subscriptions = null;\n }\n\n while ((curNode = startNode.nextSibling) !== endNode) {\n util.___destroyNodeRecursive(curNode);\n parentNode.removeChild(curNode);\n }\n\n instance.___hmrDestroyed = false;\n instance.___mounted = false;\n }\n\n instance.__proto__ = newProto;\n instance\n .___rerender(instance.___input, false)\n .afterInsert(instance.___host);\n });\n });\n }\n }\n });\n\n return template;\n\n function proxyRenderer() {\n return renderFn.apply(this, arguments);\n }\n};\n\nregistry.___createComponent = function (typeName, id) {\n var template = registered[typeName];\n var instance = createComponent(typeName, id);\n\n if (template) {\n var instances = template.___instances;\n instances.push(instance);\n instance.once(\"destroy\", function () {\n if (!instance.___hmrDestroyed) {\n instances.splice(1, instances.indexOf(instance));\n }\n });\n }\n\n return instance;\n};\n\nfunction hasLifecycleChanged(oldProto, newProto) {\n return (\n hasMethodChanged(\"onCreate\") ||\n hasMethodChanged(\"onInput\") ||\n hasMethodChanged(\"onRender\") ||\n hasMethodChanged(\"onMount\")\n );\n\n function hasMethodChanged(method) {\n return (\n (oldProto[method] && oldProto[method].toString()) !==\n (newProto[method] && newProto[method].toString())\n );\n }\n}\n\nfunction batchUpdate() {\n updateManager.___batchUpdate(function () {\n var pending = queue;\n queue = undefined;\n\n for (var i = 0; i < pending.length; i++) {\n pending[i]();\n }\n });\n}\n\nmodule.exports = runtime;\n"],"file":"hot-reload.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/runtime/vdom/index.js"],"names":["exports","t","createTemplate","typeName","Template","AsyncVDOMBuilder","require","prototype","createOut","globalData","parent","parentOut"],"mappings":"AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACAA,OAAO,CAACC,CAAR,GAAY,SAASC,cAAT,CAAwBC,QAAxB,EAAkC;AAC5C,SAAO,IAAIC,QAAJ,CAAaD,QAAb,CAAP;AACD,CAFD;;AAIA,SAASC,QAAT,CAAkBD,QAAlB,EAA4B;AAC1B,aAAmBA,QAAnB;AACD;;AAED,IAAIE,gBAAgB,GAAGC,OAAO,CAAC,oBAAD,CAA9B;AACAA,OAAO,CAAC,cAAD,CAAP;AACGF,QAAQ,CAACG,SAAT,CAAmBC,SAAnB,GAA+B,SAASA,SAAT;AAC9BC,UAD8B;AAE9BC,MAF8B;AAG9BC,SAH8B;AAI9B;AACA,SAAO,IAAIN,gBAAJ,CAAqBI,UAArB,EAAiCC,MAAjC,EAAyCC,SAAzC,CAAP;AACD,CAPH;;;AAUAL,OAAO,CAAC,eAAD,CAAP,CAAyBF,QAAQ,CAACG,SAAlC","sourcesContent":["\"use strict\";\n\n/**\n * Method is for internal usage only. This method\n * is invoked by code in a compiled Marko template and\n * it is used to create a new Template instance.\n * @private\n */\nexports.t = function createTemplate(typeName) {\n return new Template(typeName);\n};\n\nfunction Template(typeName) {\n this.___typeName = typeName;\n}\n\nvar AsyncVDOMBuilder = require(\"./AsyncVDOMBuilder\");\nrequire(\"../createOut\").___setCreateOut(\n (Template.prototype.createOut = function createOut(\n globalData,\n parent,\n parentOut\n ) {\n return new AsyncVDOMBuilder(globalData, parent, parentOut);\n })\n);\n\nrequire(\"../renderable\")(Template.prototype);\n"],"file":"index.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/vdom/morphdom/fragment.js"],"names":["helpers","require","insertBefore","fragmentPrototype","nodeType","firstChild","startNode","nextSibling","endNode","undefined","lastChild","previousSibling","parentNode","detachedContainer","namespaceURI","nodes","current","push","newChildNode","referenceNode","actualReference","insertInto","newParentNode","forEach","node","remove","appendChild","createFragmentNode","nextNode","fragment","Object","create","isRoot","ownerDocument","document","createComment","createTextNode","createDocumentFragment","beginFrag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ACvB,SAAT,CAAmBuB,QAAnB,GAA8BA,QAA9B;AACAA,EAAAA,QAAQ,CAACrB,OAAT,CAAiBqB,QAAjB,GAA4BA,QAA5B;AACA,MAAIhB,iBAAiB,GAAIgB,QAAQ,CAAChB,iBAAT;AACvBqB,EAAAA,QAAQ,CAACG,sBAAT,EADF;AAEAzB,EAAAA,UAAU;AACRA,EAAAA,UAAU,IAAKN,SAAS,IAAIA,SAAS,CAACM,UAAtC,IAAqDC,iBADvD;AAEAX,EAAAA,YAAY,CAAC2B,QAAQ,CAACvB,SAAV,EAAqBA,SAArB,EAAgCM,UAAhC,CAAZ;AACAV,EAAAA,YAAY,CAAC2B,QAAQ,CAACrB,OAAV,EAAmBoB,QAAnB,EAA6BhB,UAA7B,CAAZ;AACA,SAAOiB,QAAP;AACD;;AAED,SAASS,iBAAT,CAA2BhC,SAA3B,EAAsCM,UAAtC,EAAkD;AAChD,MAAIiB,QAAQ,GAAGF,kBAAkB,CAACrB,SAAD,EAAY,IAAZ,EAAkBM,UAAlB,CAAjC;AACAiB,EAAAA,QAAQ,IAAR,GAA6B,UAAUD,QAAV,EAAoB;AAC/CC,IAAAA,QAAQ,IAAR,GAA6B,IAA7B;AACA3B,IAAAA,YAAY;AACV2B,IAAAA,QAAQ,CAACrB,OADC;AAEVoB,IAAAA,QAFU;AAGVhB,IAAAA,UAAU,IAAIN,SAAS,CAACM,UAHd,CAAZ;;AAKD,GAPD;AAQA,SAAOiB,QAAP;AACD;;AAEDU,OAAO,IAAP,GAAgCZ,kBAAhC;AACAY,OAAO,IAAP,GAA+BD,iBAA/B","sourcesContent":["var helpers = require(\"./helpers\");\nvar insertBefore = helpers.___insertBefore;\n\nvar fragmentPrototype = {\n nodeType: 12,\n get firstChild() {\n var firstChild = this.startNode.nextSibling;\n return firstChild === this.endNode ? undefined : firstChild;\n },\n get lastChild() {\n var lastChild = this.endNode.previousSibling;\n return lastChild === this.startNode ? undefined : lastChild;\n },\n get parentNode() {\n var parentNode = this.startNode.parentNode;\n return parentNode === this.detachedContainer ? undefined : parentNode;\n },\n get namespaceURI() {\n return this.startNode.parentNode.namespaceURI;\n },\n get nextSibling() {\n return this.endNode.nextSibling;\n },\n get nodes() {\n // eslint-disable-next-line no-constant-condition\n if (\"MARKO_DEBUG\") {\n if (this.___markersRemovedError) {\n throw this.___markersRemovedError(\"Cannot get fragment nodes.\");\n }\n }\n var nodes = [];\n var current = this.startNode;\n while (current !== this.endNode) {\n nodes.push(current);\n current = current.nextSibling;\n }\n nodes.push(current);\n return nodes;\n },\n insertBefore: function (newChildNode, referenceNode) {\n var actualReference = referenceNode == null ? this.endNode : referenceNode;\n return insertBefore(\n newChildNode,\n actualReference,\n this.startNode.parentNode\n );\n },\n insertInto: function (newParentNode, referenceNode) {\n this.nodes.forEach(function (node) {\n insertBefore(node, referenceNode, newParentNode);\n }, this);\n return this;\n },\n remove: function () {\n this.nodes.forEach(function (node) {\n this.detachedContainer.appendChild(node);\n }, this);\n }\n};\n\nfunction createFragmentNode(startNode, nextNode, parentNode) {\n var fragment = Object.create(fragmentPrototype);\n var isRoot = startNode && startNode.ownerDocument === startNode.parentNode;\n fragment.startNode = isRoot\n ? document.createComment(\"\")\n : document.createTextNode(\"\");\n fragment.endNode = isRoot\n ? document.createComment(\"\")\n : document.createTextNode(\"\");\n fragment.startNode.fragment = fragment;\n fragment.endNode.fragment = fragment;\n var detachedContainer = (fragment.detachedContainer =\n document.createDocumentFragment());\n parentNode =\n parentNode || (startNode && startNode.parentNode) || detachedContainer;\n insertBefore(fragment.startNode, startNode, parentNode);\n insertBefore(fragment.endNode, nextNode, parentNode);\n return fragment;\n}\n\nfunction beginFragmentNode(startNode, parentNode) {\n var fragment = createFragmentNode(startNode, null, parentNode);\n fragment.___finishFragment = function (nextNode) {\n fragment.___finishFragment = null;\n insertBefore(\n fragment.endNode,\n nextNode,\n parentNode || startNode.parentNode\n );\n };\n return fragment;\n}\n\nexports.___createFragmentNode = createFragmentNode;\nexports.___beginFragmentNode = beginFragmentNode;\n"],"file":"fragment.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/vdom/morphdom/helpers.js"],"names":["insertBefore","node","referenceNode","parentNode","insertInto","startNode","insertAfter","nextSibling","next","fragment","firstChild","removeChild","remove","exports"],"mappings":"aAAA,SAASA,YAAT,CAAsBC,IAAtB,EAA4BC,aAA5B,EAA2CC,UAA3C,EAAuD;AACrD,MAAIF,IAAI,CAACG,UAAT,EAAqB;AACnB,WAAOH,IAAI,CAACG,UAAL,CAAgBD,UAAhB,EAA4BD,aAA5B,CAAP;AACD;AACD,SAAOC,UAAU,CAACH,YAAX;AACLC,EAAAA,IADK;AAEJC,EAAAA,aAAa,IAAIA,aAAa,CAACG,SAAhC,IAA8CH,aAFzC,CAAP;;AAID;;AAED,SAASI,WAAT,CAAqBL,IAArB,EAA2BC,aAA3B,EAA0CC,UAA1C,EAAsD;AACpD,SAAOH,YAAY;AACjBC,EAAAA,IADiB;AAEjBC,EAAAA,aAAa,IAAIA,aAAa,CAACK,WAFd;AAGjBJ,EAAAA,UAHiB,CAAnB;;AAKD;;AAED,SAASI,WAAT,CAAqBN,IAArB,EAA2B;AACzB,MAAIO,IAAI,GAAGP,IAAI,CAACM,WAAhB;AACA,MAAIE,QAAQ,GAAGD,IAAI,IAAIA,IAAI,CAACC,QAA5B;AACA,MAAIA,QAAJ,EAAc;AACZ,WAAOD,IAAI,KAAKC,QAAQ,CAACJ,SAAlB,GAA8BI,QAA9B,GAAyC,IAAhD;AACD;AACD,SAAOD,IAAP;AACD;;AAED,SAASE,UAAT,CAAoBT,IAApB,EAA0B;AACxB,MAAIO,IAAI,GAAGP,IAAI,CAACS,UAAhB;AACA,SAAQF,IAAI,IAAIA,IAAI,CAACC,QAAd,IAA2BD,IAAlC;AACD;;AAED,SAASG,WAAT,CAAqBV,IAArB,EAA2B;AACzB,MAAIA,IAAI,CAACW,MAAT,EAAiBX,IAAI,CAACW,MAAL,GAAjB;AACKX,EAAAA,IAAI,CAACE,UAAL,CAAgBQ,WAAhB,CAA4BV,IAA5B;AACN;;AAEDY,OAAO,IAAP,GAA0Bb,YAA1B;AACAa,OAAO,IAAP,GAAyBP,WAAzB;AACAO,OAAO,IAAP,GAAyBN,WAAzB;AACAM,OAAO,IAAP,GAAwBH,UAAxB;AACAG,OAAO,IAAP,GAAyBF,WAAzB","sourcesContent":["function insertBefore(node, referenceNode, parentNode) {\n if (node.insertInto) {\n return node.insertInto(parentNode, referenceNode);\n }\n return parentNode.insertBefore(\n node,\n (referenceNode && referenceNode.startNode) || referenceNode\n );\n}\n\nfunction insertAfter(node, referenceNode, parentNode) {\n return insertBefore(\n node,\n referenceNode && referenceNode.nextSibling,\n parentNode\n );\n}\n\nfunction nextSibling(node) {\n var next = node.nextSibling;\n var fragment = next && next.fragment;\n if (fragment) {\n return next === fragment.startNode ? fragment : null;\n }\n return next;\n}\n\nfunction firstChild(node) {\n var next = node.firstChild;\n return (next && next.fragment) || next;\n}\n\nfunction removeChild(node) {\n if (node.remove) node.remove();\n else node.parentNode.removeChild(node);\n}\n\nexports.___insertBefore = insertBefore;\nexports.___insertAfter = insertAfter;\nexports.___nextSibling = nextSibling;\nexports.___firstChild = firstChild;\nexports.___removeChild = removeChild;\n"],"file":"helpers.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/vdom/morphdom/index.js"],"names":["specialElHandlers","require","KeySequence","componentsUtil","existingComponentLookup","destroyNodeRecursive","addComponentRootToKeyedElements","normalizeComponentKey","VElement","virtualizeElement","morphAttrs","eventDelegation","fragment","helpers","domData","keysByDOMNode","componentByDOMNode","vElementByDOMNode","detachedByDOMNode","insertBefore","insertAfter","nextSibling","firstChild","removeChild","createFragmentNode","beginFragmentNode","ELEMENT_NODE","TEXT_NODE","COMMENT_NODE","COMPONENT_NODE","FRAGMENT_NODE","DOCTYPE_NODE","isAutoKey","key","compareNodeNames","fromEl","toEl","caseInsensitiveCompare","a","b","toLowerCase","onNodeAdded","node","componentsContext","nodeType","morphdom","fromNode","toNode","host","globalComponentsContext","isHydrate","keySequences","Object","create","insertVirtualNodeBefore","vNode","referenceEl","parentEl","ownerComponent","parentComponent","realNode","namespaceURI","set","morphChildren","insertVirtualComponentBefore","vComponent","referenceNode","referenceNodeParentEl","component","rootNode","id","morphComponent","detachedNodes","detachNode","parentNode","push","destroyComponent","destroy","curFromNodeChild","curToNodeChild","curToNodeKey","curFromNodeKey","curToNodeType","fromNextSibling","toNextSibling","matchingFromEl","matchingFromComponent","curVFromNodeChild","fromComponent","outer","referenceComponent","undefined","get","curToNodeKeyOriginal","morphEl","nodeName","content","nodeValue","endNode","depth","indexOf","curFromNodeType","isCompatible","splitText","length","fragmentBoundary","vFromEl","constId","specialElHandler","forEach","detachedFromComponent","componentToDestroy","module","exports"],"mappings":"AAAA;AACA,IAAIA,iBAAiB,GAAGC,OAAO,CAAC,qBAAD,CAA/B;AACA,IAAIC,WAAW,GAAGD,OAAO,CAAC,8BAAD,CAAzB;AACA,IAAIE,cAAc,GAAGF,OAAO,CAAC,uBAAD,CAA5B;AACA,IAAIG,uBAAuB,GAAGD,cAAc,GAA5C;AACA,IAAIE,oBAAoB,GAAGF,cAAc,GAAzC;AACA,IAAIG,+BAA+B;AACjCH,cAAc,IADhB;AAEA,IAAII,qBAAqB,GAAGJ,cAAc,IAA1C;AACA,IAAIK,QAAQ,GAAGP,OAAO,CAAC,SAAD,CAAP,IAAf;AACA,IAAIQ,iBAAiB,GAAGD,QAAQ,IAAhC;AACA,IAAIE,UAAU,GAAGF,QAAQ,IAAzB;AACA,IAAIG,eAAe,GAAGV,OAAO,CAAC,mCAAD,CAA7B;AACA,IAAIW,QAAQ,GAAGX,OAAO,CAAC,YAAD,CAAtB;AACA,IAAIY,OAAO,GAAGZ,OAAO,CAAC,WAAD,CAArB;AACA,IAAIa,OAAO,GAAGb,OAAO,CAAC,2BAAD,CAArB;AACA,IAAIc,aAAa,GAAGD,OAAO,IAA3B;AACA,I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require(\"../../components/KeySequence\");\nvar componentsUtil = require(\"../../components/util\");\nvar existingComponentLookup = componentsUtil.___componentLookup;\nvar destroyNodeRecursive = componentsUtil.___destroyNodeRecursive;\nvar addComponentRootToKeyedElements =\n componentsUtil.___addComponentRootToKeyedElements;\nvar normalizeComponentKey = componentsUtil.___normalizeComponentKey;\nvar VElement = require(\"../vdom\").___VElement;\nvar virtualizeElement = VElement.___virtualize;\nvar morphAttrs = VElement.___morphAttrs;\nvar eventDelegation = require(\"../../components/event-delegation\");\nvar fragment = require(\"./fragment\");\nvar helpers = require(\"./helpers\");\nvar domData = require(\"../../components/dom-data\");\nvar keysByDOMNode = domData.___keyByDOMNode;\nvar componentByDOMNode = domData.___componentByDOMNode;\nvar vElementByDOMNode = domData.___vElementByDOMNode;\nvar detachedByDOMNode = domData.___detachedByDOMNode;\n\nvar insertBefore = helpers.___insertBefore;\nvar insertAfter = helpers.___insertAfter;\nvar nextSibling = helpers.___nextSibling;\nvar firstChild = helpers.___firstChild;\nvar removeChild = helpers.___removeChild;\nvar createFragmentNode = fragment.___createFragmentNode;\nvar beginFragmentNode = fragment.___beginFragmentNode;\n\nvar ELEMENT_NODE = 1;\nvar TEXT_NODE = 3;\nvar COMMENT_NODE = 8;\nvar COMPONENT_NODE = 2;\nvar FRAGMENT_NODE = 12;\nvar DOCTYPE_NODE = 10;\n\n// var FLAG_SIMPLE_ATTRS = 1;\n// var FLAG_CUSTOM_ELEMENT = 2;\n// var FLAG_SPREAD_ATTRS = 4;\n\nfunction isAutoKey(key) {\n return key[0] !== \"@\";\n}\n\nfunction compareNodeNames(fromEl, toEl) {\n return fromEl.___nodeName === toEl.___nodeName;\n}\n\nfunction caseInsensitiveCompare(a, b) {\n return a.toLowerCase() === b.toLowerCase();\n}\n\nfunction onNodeAdded(node, componentsContext) {\n if (node.nodeType === ELEMENT_NODE) {\n eventDelegation.___handleNodeAttach(node, componentsContext);\n }\n}\n\nfunction morphdom(fromNode, toNode, host, componentsContext) {\n var globalComponentsContext;\n var isHydrate = false;\n var keySequences = Object.create(null);\n\n if (componentsContext) {\n globalComponentsContext = componentsContext.___globalContext;\n isHydrate = globalComponentsContext.___isHydrate;\n }\n\n function insertVirtualNodeBefore(\n vNode,\n key,\n referenceEl,\n parentEl,\n ownerComponent,\n parentComponent\n ) {\n var realNode = vNode.___actualize(host, parentEl.namespaceURI);\n insertBefore(realNode, referenceEl, parentEl);\n\n if (\n vNode.___nodeType === ELEMENT_NODE ||\n vNode.___nodeType === FRAGMENT_NODE\n ) {\n if (key) {\n keysByDOMNode.set(realNode, key);\n (isAutoKey(key) ? parentComponent : ownerComponent).___keyedElements[\n key\n ] = realNode;\n }\n\n if (vNode.___nodeName !== \"textarea\") {\n morphChildren(realNode, vNode, parentComponent);\n }\n\n onNodeAdded(realNode, componentsContext);\n }\n }\n\n function insertVirtualComponentBefore(\n vComponent,\n referenceNode,\n referenceNodeParentEl,\n component,\n key,\n ownerComponent,\n parentComponent\n ) {\n var rootNode = (component.___rootNode = insertBefore(\n createFragmentNode(),\n referenceNode,\n referenceNodeParentEl\n ));\n componentByDOMNode.set(rootNode, component);\n\n if (key && ownerComponent) {\n key = normalizeComponentKey(key, parentComponent.id);\n addComponentRootToKeyedElements(\n ownerComponent.___keyedElements,\n key,\n rootNode,\n component.id\n );\n keysByDOMNode.set(rootNode, key);\n }\n\n morphComponent(component, vComponent);\n }\n\n function morphComponent(component, vComponent) {\n morphChildren(component.___rootNode, vComponent, component);\n }\n\n var detachedNodes = [];\n\n function detachNode(node, parentNode, ownerComponent) {\n if (node.nodeType === ELEMENT_NODE || node.nodeType === FRAGMENT_NODE) {\n detachedNodes.push(node);\n detachedByDOMNode.set(node, ownerComponent || true);\n } else {\n destroyNodeRecursive(node);\n removeChild(node);\n }\n }\n\n function destroyComponent(component) {\n component.destroy();\n }\n\n function morphChildren(fromNode, toNode, parentComponent) {\n var curFromNodeChild = firstChild(fromNode);\n var curToNodeChild = toNode.___firstChild;\n\n var curToNodeKey;\n var curFromNodeKey;\n var curToNodeType;\n\n var fromNextSibling;\n var toNextSibling;\n var matchingFromEl;\n var matchingFromComponent;\n var curVFromNodeChild;\n var fromComponent;\n\n outer: while (curToNodeChild) {\n toNextSibling = curToNodeChild.___nextSibling;\n curToNodeType = curToNodeChild.___nodeType;\n curToNodeKey = curToNodeChild.___key;\n\n // Skip <!doctype>\n if (curFromNodeChild && curFromNodeChild.nodeType === DOCTYPE_NODE) {\n curFromNodeChild = nextSibling(curFromNodeChild);\n }\n\n var ownerComponent = curToNodeChild.___ownerComponent || parentComponent;\n var referenceComponent;\n\n if (curToNodeType === COMPONENT_NODE) {\n var component = curToNodeChild.___component;\n if (\n (matchingFromComponent = existingComponentLookup[component.id]) ===\n undefined\n ) {\n if (isHydrate === true) {\n var rootNode = beginFragmentNode(curFromNodeChild, fromNode);\n component.___rootNode = rootNode;\n componentByDOMNode.set(rootNode, component);\n\n if (ownerComponent && curToNodeKey) {\n curToNodeKey = normalizeComponentKey(\n curToNodeKey,\n parentComponent.id\n );\n addComponentRootToKeyedElements(\n ownerComponent.___keyedElements,\n curToNodeKey,\n rootNode,\n component.id\n );\n\n keysByDOMNode.set(rootNode, curToNodeKey);\n }\n\n morphComponent(component, curToNodeChild);\n\n curFromNodeChild = nextSibling(rootNode);\n } else {\n insertVirtualComponentBefore(\n curToNodeChild,\n curFromNodeChild,\n fromNode,\n component,\n curToNodeKey,\n ownerComponent,\n parentComponent\n );\n }\n } else {\n if (matchingFromComponent.___rootNode !== curFromNodeChild) {\n if (\n curFromNodeChild &&\n (fromComponent = componentByDOMNode.get(curFromNodeChild)) &&\n globalComponentsContext.___renderedComponentsById[\n fromComponent.id\n ] === undefined\n ) {\n // The component associated with the current real DOM node was not rendered\n // so we should just remove it out of the real DOM by destroying it\n curFromNodeChild = nextSibling(fromComponent.___rootNode);\n destroyComponent(fromComponent);\n continue;\n }\n\n // We need to move the existing component into\n // the correct location\n insertBefore(\n matchingFromComponent.___rootNode,\n curFromNodeChild,\n fromNode\n );\n } else {\n curFromNodeChild =\n curFromNodeChild && nextSibling(curFromNodeChild);\n }\n\n if (!curToNodeChild.___preserve) {\n morphComponent(component, curToNodeChild);\n }\n }\n\n curToNodeChild = toNextSibling;\n continue;\n } else if (curToNodeKey) {\n curVFromNodeChild = undefined;\n curFromNodeKey = undefined;\n var curToNodeKeyOriginal = curToNodeKey;\n\n if (isAutoKey(curToNodeKey)) {\n if (ownerComponent !== parentComponent) {\n curToNodeKey += \":\" + ownerComponent.id;\n }\n referenceComponent = parentComponent;\n } else {\n referenceComponent = ownerComponent;\n }\n\n // We have a keyed element. This is the fast path for matching\n // up elements\n curToNodeKey = (\n keySequences[referenceComponent.id] ||\n (keySequences[referenceComponent.id] = new KeySequence())\n ).___nextKey(curToNodeKey);\n\n if (curFromNodeChild) {\n curFromNodeKey = keysByDOMNode.get(curFromNodeChild);\n curVFromNodeChild = vElementByDOMNode.get(curFromNodeChild);\n fromNextSibling = nextSibling(curFromNodeChild);\n }\n\n if (curFromNodeKey === curToNodeKey) {\n // Elements line up. Now we just have to make sure they are compatible\n if (!curToNodeChild.___preserve) {\n // We just skip over the fromNode if it is preserved\n\n if (compareNodeNames(curToNodeChild, curVFromNodeChild)) {\n morphEl(\n curFromNodeChild,\n curVFromNodeChild,\n curToNodeChild,\n parentComponent\n );\n } else {\n // Remove the old node\n detachNode(curFromNodeChild, fromNode, ownerComponent);\n\n // Incompatible nodes. Just move the target VNode into the DOM at this position\n insertVirtualNodeBefore(\n curToNodeChild,\n curToNodeKey,\n curFromNodeChild,\n fromNode,\n ownerComponent,\n parentComponent\n );\n }\n }\n } else {\n matchingFromEl = referenceComponent.___keyedElements[curToNodeKey];\n if (\n matchingFromEl === undefined ||\n matchingFromEl === curFromNodeChild\n ) {\n if (isHydrate === true && curFromNodeChild) {\n if (\n curFromNodeChild.nodeType === ELEMENT_NODE &&\n (curToNodeChild.___preserve ||\n caseInsensitiveCompare(\n curFromNodeChild.nodeName,\n curToNodeChild.___nodeName || \"\"\n ))\n ) {\n curVFromNodeChild = virtualizeElement(curFromNodeChild);\n curVFromNodeChild.___nodeName = curToNodeChild.___nodeName;\n keysByDOMNode.set(curFromNodeChild, curToNodeKey);\n referenceComponent.___keyedElements[curToNodeKey] =\n curFromNodeChild;\n\n if (curToNodeChild.___preserve) {\n vElementByDOMNode.set(curFromNodeChild, curVFromNodeChild);\n } else {\n morphEl(\n curFromNodeChild,\n curVFromNodeChild,\n curToNodeChild,\n parentComponent\n );\n }\n\n curToNodeChild = toNextSibling;\n curFromNodeChild = fromNextSibling;\n continue;\n } else if (\n curToNodeChild.___nodeType === FRAGMENT_NODE &&\n curFromNodeChild.nodeType === COMMENT_NODE\n ) {\n var content = curFromNodeChild.nodeValue;\n if (content == \"F#\" + curToNodeKeyOriginal) {\n var endNode = curFromNodeChild.nextSibling;\n var depth = 0;\n var nodeValue;\n\n // eslint-disable-next-line no-constant-condition\n while (true) {\n if (endNode.nodeType === COMMENT_NODE) {\n nodeValue = endNode.nodeValue;\n if (nodeValue === \"F/\") {\n if (depth === 0) {\n break;\n } else {\n depth--;\n }\n } else if (nodeValue.indexOf(\"F#\") === 0) {\n depth++;\n }\n }\n endNode = endNode.nextSibling;\n }\n\n var fragment = createFragmentNode(\n curFromNodeChild,\n endNode.nextSibling,\n fromNode\n );\n keysByDOMNode.set(fragment, curToNodeKey);\n vElementByDOMNode.set(fragment, curToNodeChild);\n referenceComponent.___keyedElements[curToNodeKey] = fragment;\n removeChild(curFromNodeChild);\n removeChild(endNode);\n\n if (!curToNodeChild.___preserve) {\n morphChildren(fragment, curToNodeChild, parentComponent);\n }\n\n curToNodeChild = toNextSibling;\n curFromNodeChild = fragment.nextSibling;\n continue;\n }\n }\n }\n\n insertVirtualNodeBefore(\n curToNodeChild,\n curToNodeKey,\n curFromNodeChild,\n fromNode,\n ownerComponent,\n parentComponent\n );\n fromNextSibling = curFromNodeChild;\n } else {\n if (detachedByDOMNode.get(matchingFromEl) !== undefined) {\n detachedByDOMNode.set(matchingFromEl, undefined);\n }\n\n if (!curToNodeChild.___preserve) {\n curVFromNodeChild = vElementByDOMNode.get(matchingFromEl);\n\n if (compareNodeNames(curVFromNodeChild, curToNodeChild)) {\n if (fromNextSibling === matchingFromEl) {\n // Single element removal:\n // A <-> A\n // B <-> C <-- We are here\n // C D\n // D\n //\n // Single element swap:\n // A <-> A\n // B <-> C <-- We are here\n // C B\n\n if (\n toNextSibling &&\n toNextSibling.___key === curFromNodeKey\n ) {\n // Single element swap\n\n // We want to stay on the current real DOM node\n fromNextSibling = curFromNodeChild;\n\n // But move the matching element into place\n insertBefore(matchingFromEl, curFromNodeChild, fromNode);\n } else {\n // Single element removal\n\n // We need to remove the current real DOM node\n // and the matching real DOM node will fall into\n // place. We will continue diffing with next sibling\n // after the real DOM node that just fell into place\n fromNextSibling = nextSibling(fromNextSibling);\n\n if (curFromNodeChild) {\n detachNode(curFromNodeChild, fromNode, ownerComponent);\n }\n }\n } else {\n // A <-> A\n // B <-> D <-- We are here\n // C\n // D\n\n // We need to move the matching node into place\n insertAfter(matchingFromEl, curFromNodeChild, fromNode);\n\n if (curFromNodeChild) {\n detachNode(curFromNodeChild, fromNode, ownerComponent);\n }\n }\n\n morphEl(\n matchingFromEl,\n curVFromNodeChild,\n curToNodeChild,\n parentComponent\n );\n } else {\n insertVirtualNodeBefore(\n curToNodeChild,\n curToNodeKey,\n curFromNodeChild,\n fromNode,\n ownerComponent,\n parentComponent\n );\n detachNode(matchingFromEl, fromNode, ownerComponent);\n }\n } else {\n // preserve the node\n // but still we need to diff the current from node\n insertBefore(matchingFromEl, curFromNodeChild, fromNode);\n fromNextSibling = curFromNodeChild;\n }\n }\n }\n\n curToNodeChild = toNextSibling;\n curFromNodeChild = fromNextSibling;\n continue;\n }\n\n // The know the target node is not a VComponent node and we know\n // it is also not a preserve node. Let's now match up the HTML\n // element, text node, comment, etc.\n while (curFromNodeChild) {\n fromNextSibling = nextSibling(curFromNodeChild);\n\n if ((fromComponent = componentByDOMNode.get(curFromNodeChild))) {\n // The current \"to\" element is not associated with a component,\n // but the current \"from\" element is associated with a component\n\n // Even if we destroy the current component in the original\n // DOM or not, we still need to skip over it since it is\n // not compatible with the current \"to\" node\n curFromNodeChild = fromNextSibling;\n\n if (\n !globalComponentsContext.___renderedComponentsById[fromComponent.id]\n ) {\n destroyComponent(fromComponent);\n }\n\n continue; // Move to the next \"from\" node\n }\n\n var curFromNodeType = curFromNodeChild.nodeType;\n\n var isCompatible = undefined;\n\n if (curFromNodeType === curToNodeType) {\n if (curFromNodeType === ELEMENT_NODE) {\n // Both nodes being compared are Element nodes\n curVFromNodeChild = vElementByDOMNode.get(curFromNodeChild);\n if (curVFromNodeChild === undefined) {\n if (isHydrate === true) {\n curVFromNodeChild = virtualizeElement(curFromNodeChild);\n\n if (\n caseInsensitiveCompare(\n curVFromNodeChild.___nodeName,\n curToNodeChild.___nodeName\n )\n ) {\n curVFromNodeChild.___nodeName = curToNodeChild.___nodeName;\n }\n } else {\n // Skip over nodes that don't look like ours...\n curFromNodeChild = fromNextSibling;\n continue;\n }\n } else if ((curFromNodeKey = curVFromNodeChild.___key)) {\n // We have a keyed element here but our target VDOM node\n // is not keyed so this not doesn't belong\n isCompatible = false;\n }\n\n isCompatible =\n isCompatible !== false &&\n compareNodeNames(curVFromNodeChild, curToNodeChild) === true;\n\n if (isCompatible === true) {\n // We found compatible DOM elements so transform\n // the current \"from\" node to match the current\n // target DOM node.\n morphEl(\n curFromNodeChild,\n curVFromNodeChild,\n curToNodeChild,\n parentComponent\n );\n }\n } else if (\n curFromNodeType === TEXT_NODE ||\n curFromNodeType === COMMENT_NODE\n ) {\n // Both nodes being compared are Text or Comment nodes\n isCompatible = true;\n // Simply update nodeValue on the original node to\n // change the text value\n\n if (\n isHydrate === true &&\n toNextSibling &&\n curFromNodeType === TEXT_NODE &&\n toNextSibling.___nodeType === TEXT_NODE\n ) {\n fromNextSibling = curFromNodeChild.splitText(\n curToNodeChild.___nodeValue.length\n );\n }\n if (curFromNodeChild.nodeValue !== curToNodeChild.___nodeValue) {\n curFromNodeChild.nodeValue = curToNodeChild.___nodeValue;\n }\n }\n }\n\n if (isCompatible === true) {\n // Advance both the \"to\" child and the \"from\" child since we found a match\n curToNodeChild = toNextSibling;\n curFromNodeChild = fromNextSibling;\n continue outer;\n }\n\n detachNode(curFromNodeChild, fromNode, ownerComponent);\n curFromNodeChild = fromNextSibling;\n } // END: while (curFromNodeChild)\n\n // If we got this far then we did not find a candidate match for\n // our \"to node\" and we exhausted all of the children \"from\"\n // nodes. Therefore, we will just append the current \"to\" node\n // to the end\n insertVirtualNodeBefore(\n curToNodeChild,\n curToNodeKey,\n curFromNodeChild,\n fromNode,\n ownerComponent,\n parentComponent\n );\n\n curToNodeChild = toNextSibling;\n curFromNodeChild = fromNextSibling;\n }\n\n // We have processed all of the \"to nodes\".\n if (fromNode.___finishFragment) {\n // If we are in an unfinished fragment, we have reached the end of the nodes\n // we were matching up and need to end the fragment\n fromNode.___finishFragment(curFromNodeChild);\n } else {\n // If curFromNodeChild is non-null then we still have some from nodes\n // left over that need to be removed\n var fragmentBoundary =\n fromNode.nodeType === FRAGMENT_NODE ? fromNode.endNode : null;\n\n while (curFromNodeChild && curFromNodeChild !== fragmentBoundary) {\n fromNextSibling = nextSibling(curFromNodeChild);\n\n if ((fromComponent = componentByDOMNode.get(curFromNodeChild))) {\n curFromNodeChild = fromNextSibling;\n if (\n !globalComponentsContext.___renderedComponentsById[fromComponent.id]\n ) {\n destroyComponent(fromComponent);\n }\n continue;\n }\n\n curVFromNodeChild = vElementByDOMNode.get(curFromNodeChild);\n curFromNodeKey = keysByDOMNode.get(fromNode);\n\n // For transcluded content, we need to check if the element belongs to a different component\n // context than the current component and ensure it gets removed from its key index.\n if (!curFromNodeKey || isAutoKey(curFromNodeKey)) {\n referenceComponent = parentComponent;\n } else {\n referenceComponent =\n curVFromNodeChild && curVFromNodeChild.___ownerComponent;\n }\n\n detachNode(curFromNodeChild, fromNode, referenceComponent);\n\n curFromNodeChild = fromNextSibling;\n }\n }\n }\n\n function morphEl(fromEl, vFromEl, toEl, parentComponent) {\n var nodeName = toEl.___nodeName;\n\n var constId = toEl.___constId;\n if (constId !== undefined && vFromEl.___constId === constId) {\n return;\n }\n\n morphAttrs(fromEl, vFromEl, toEl);\n\n if (toEl.___preserveBody) {\n return;\n }\n\n if (nodeName !== \"textarea\") {\n morphChildren(fromEl, toEl, parentComponent);\n }\n\n var specialElHandler = specialElHandlers[nodeName];\n if (specialElHandler !== undefined) {\n specialElHandler(fromEl, toEl);\n }\n } // END: morphEl(...)\n\n // eslint-disable-next-line no-constant-condition\n if (\"MARKO_DEBUG\") {\n componentsUtil.___stopDOMManipulationWarning(host);\n }\n\n morphChildren(fromNode, toNode, toNode.___component);\n\n detachedNodes.forEach(function (node) {\n var detachedFromComponent = detachedByDOMNode.get(node);\n\n if (detachedFromComponent !== undefined) {\n detachedByDOMNode.set(node, undefined);\n\n var componentToDestroy = componentByDOMNode.get(node);\n if (componentToDestroy) {\n componentToDestroy.destroy();\n } else if (node.parentNode) {\n destroyNodeRecursive(\n node,\n detachedFromComponent !== true && detachedFromComponent\n );\n\n if (eventDelegation.___handleNodeDetach(node) != false) {\n removeChild(node);\n }\n }\n }\n });\n\n // eslint-disable-next-line no-constant-condition\n if (\"MARKO_DEBUG\") {\n componentsUtil.___startDOMManipulationWarning(host);\n }\n}\n\nmodule.exports = morphdom;\n"],"file":"index.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtime/vdom/morphdom/specialElHandlers.js"],"names":["syncBooleanAttrProp","fromEl","toEl","name","setAttribute","removeAttribute","forEachOption","el","fn","i","curChild","SpecialElHandlers","prototype","option","button","input","value","hasAttribute","textarea","newValue","firstChild","oldValue","nodeValue","placeholder","select","selected","selectedIndex","module","exports"],"mappings":"aAAA,SAASA,mBAAT,CAA6BC,MAA7B,EAAqCC,IAArC,EAA2CC,IAA3C,EAAiD;AAC/C,MAAIF,MAAM,CAACE,IAAD,CAA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UAAvB,CAAJ,EAAwC;AACtCY,UAAAA,QAAQ,GAAGhB,CAAX;AACD;AACF,OANU;AAOX,OAAC,CAPU,CAAb;;;AAUA,UAAIR,MAAM,CAACyB,aAAP,KAAyBD,QAA7B,EAAuC;AACrCxB,QAAAA,MAAM,CAACyB,aAAP,GAAuBD,QAAvB;AACD;AACF;AACF,GAzE2B,EAA9B;;;AA4EAE,MAAM,CAACC,OAAP,GAAiB,IAAIjB,iBAAJ,EAAjB","sourcesContent":["function syncBooleanAttrProp(fromEl, toEl, name) {\n if (fromEl[name] !== toEl[name]) {\n fromEl[name] = toEl[name];\n if (fromEl[name]) {\n fromEl.setAttribute(name, \"\");\n } else {\n fromEl.removeAttribute(name, \"\");\n }\n }\n}\n\nfunction forEachOption(el, fn, i) {\n var curChild = el.___firstChild;\n\n while (curChild) {\n if (curChild.___nodeName === \"option\") {\n fn(curChild, ++i);\n } else {\n i = forEachOption(curChild, fn, i);\n }\n\n curChild = curChild.___nextSibling;\n }\n\n return i;\n}\n\n// We use a JavaScript class to benefit from fast property lookup\nfunction SpecialElHandlers() {}\nSpecialElHandlers.prototype = {\n /**\n * Needed for IE. Apparently IE doesn't think that \"selected\" is an\n * attribute when reading over the attributes using selectEl.attributes\n */\n option: function (fromEl, toEl) {\n syncBooleanAttrProp(fromEl, toEl, \"selected\");\n },\n button: function (fromEl, toEl) {\n syncBooleanAttrProp(fromEl, toEl, \"disabled\");\n },\n /**\n * The \"value\" attribute is special for the <input> element since it sets\n * the initial value. Changing the \"value\" attribute without changing the\n * \"value\" property will have no effect since it is only used to the set the\n * initial value. Similar for the \"checked\" attribute, and \"disabled\".\n */\n input: function (fromEl, toEl) {\n syncBooleanAttrProp(fromEl, toEl, \"checked\");\n syncBooleanAttrProp(fromEl, toEl, \"disabled\");\n\n if (fromEl.value != toEl.___value) {\n fromEl.value = toEl.___value;\n }\n\n if (fromEl.hasAttribute(\"value\") && !toEl.___hasAttribute(\"value\")) {\n fromEl.removeAttribute(\"value\");\n }\n },\n\n textarea: function (fromEl, toEl) {\n if (toEl.___preserveTextAreaValue) {\n return;\n }\n\n var newValue = toEl.___value;\n if (fromEl.value != newValue) {\n fromEl.value = newValue;\n }\n\n var firstChild = fromEl.firstChild;\n if (firstChild) {\n // Needed for IE. Apparently IE sets the placeholder as the\n // node value and vise versa. This ignores an empty update.\n var oldValue = firstChild.nodeValue;\n\n if (\n oldValue == newValue ||\n (!newValue && oldValue == fromEl.placeholder)\n ) {\n return;\n }\n\n firstChild.nodeValue = newValue;\n }\n },\n select: function (fromEl, toEl) {\n if (!toEl.___hasAttribute(\"multiple\")) {\n var selected = 0;\n forEachOption(\n toEl,\n function (option, i) {\n if (option.___hasAttribute(\"selected\")) {\n selected = i;\n }\n },\n -1\n );\n\n if (fromEl.selectedIndex !== selected) {\n fromEl.selectedIndex = selected;\n }\n }\n }\n};\n\nmodule.exports = new SpecialElHandlers();\n"],"file":"specialElHandlers.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/runtime/vdom/parse-html.js"],"names":["parseHTML","html","container","document","createElement","content","innerHTML","module","exports","firstChild"],"mappings":"aAAA,IAAIA,SAAS,GAAG,UAAUC,IAAV,EAAgB;AAC9B,MAAIC,SAAS,GAAGC,QAAQ,CAACC,aAAT,CAAuB,UAAvB,CAAhB;AACAJ,EAAAA,SAAS,GAAGE,SAAS,CAACG,OAAV;AACR,YAAUJ,IAAV,EAAgB;AACdC,IAAAA,SAAS,CAACI,SAAV,GAAsBL,IAAtB;AACA,WAAOC,SAAS,CAACG,OAAjB;AACD,GAJO;AAKR,YAAUJ,IAAV,EAAgB;AACdC,IAAAA,SAAS,CAACI,SAAV,GAAsBL,IAAtB;AACA,WAAOC,SAAP;AACD,GARL;;AAUA,SAAOF,SAAS,CAACC,IAAD,CAAhB;AACD,CAbD;;AAeAM,MAAM,CAACC,OAAP,GAAiB,UAAUP,IAAV,EAAgB;AAC/B,SAAOD,SAAS,CAACC,IAAD,CAAT,CAAgBQ,UAAvB;AACD,CAFD","sourcesContent":["var parseHTML = function (html) {\n var container = document.createElement(\"template\");\n parseHTML = container.content\n ? function (html) {\n container.innerHTML = html;\n return container.content;\n }\n : function (html) {\n container.innerHTML = html;\n return container;\n };\n\n return parseHTML(html);\n};\n\nmodule.exports = function (html) {\n return parseHTML(html).firstChild;\n};\n"],"file":"parse-html.js"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/runtime/vdom/preserve-attrs.js"],"names":["extend","require","removePreservedAttributes","attrs","props","preservedAttrs","pa","forEach","preservedAttrName"],"mappings":"aAAA,IAAIA,MAAM,GAAGC,OAAO,CAAC,oBAAD,CAApB;;AAEA,SAASC,yBAAT,CAAmCC,KAAnC,EAA0CC,KAA1C,EAAiD;AAC/C,MAAIC,cAAc,GAAGD,KAAK,IAAIA,KAAK,CAACE,EAApC;AACA,MAAID,cAAJ,EAAoB;AAClBF,IAAAA,KAAK,GAAGH,MAAM,CAAC,EAAD,EAAKG,KAAL,CAAd;AACAE,IAAAA,cAAc,CAACE,OAAf,CAAuB,UAAUC,iBAAV,EAA6B;AAClD,aAAOL,KAAK,CAACK,iBAAD,CAAZ;AACD,KAFD;AAGD;;AAED,SAAOL,KAAP;AACD;;AAEDF,OAAO,CAAC,YAAD,CAAP,OAAqDC,yBAArD","sourcesContent":["var extend = require(\"raptor-util/extend\");\n\nfunction removePreservedAttributes(attrs, props) {\n var preservedAttrs = props && props.pa;\n if (preservedAttrs) {\n attrs = extend({}, attrs);\n preservedAttrs.forEach(function (preservedAttrName) {\n delete attrs[preservedAttrName];\n });\n }\n\n return attrs;\n}\n\nrequire(\"./VElement\").___removePreservedAttributes = removePreservedAttributes;\n"],"file":"preserve-attrs.js"}
|