marko 5.20.7 → 5.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (209) hide show
  1. package/dist/compiler/config.js +1 -2
  2. package/dist/compiler/index.js +1 -2
  3. package/dist/compiler/modules.js +1 -2
  4. package/dist/core-tags/components/init-components-tag.js +1 -2
  5. package/dist/core-tags/components/preferred-script-location-tag.js +1 -2
  6. package/dist/core-tags/components/preserve-tag/index-browser.js +1 -2
  7. package/dist/core-tags/components/preserve-tag/index.js +1 -2
  8. package/dist/core-tags/core/__flush_here_and_after__.js +1 -2
  9. package/dist/core-tags/core/await/AsyncValue.js +1 -2
  10. package/dist/core-tags/core/await/client-reorder-runtime.js +1 -2
  11. package/dist/core-tags/core/await/renderer.js +1 -2
  12. package/dist/core-tags/core/await/reorderer-renderer.js +1 -2
  13. package/dist/index.js +1 -2
  14. package/dist/loader/index-browser.js +1 -2
  15. package/dist/loader/index.js +1 -2
  16. package/dist/node-require/browser-refresh.js +1 -2
  17. package/dist/node-require/hot-reload.js +1 -2
  18. package/dist/node-require/index.js +1 -2
  19. package/dist/runtime/RenderResult.js +2 -3
  20. package/dist/runtime/components/Component.js +1 -2
  21. package/dist/runtime/components/ComponentDef.js +1 -2
  22. package/dist/runtime/components/ComponentsContext.js +1 -2
  23. package/dist/runtime/components/GlobalComponentsContext.js +1 -2
  24. package/dist/runtime/components/KeySequence.js +1 -2
  25. package/dist/runtime/components/ServerComponent.js +1 -2
  26. package/dist/runtime/components/State.js +1 -2
  27. package/dist/runtime/components/attach-detach.js +1 -2
  28. package/dist/runtime/components/beginComponent/index-browser.js +1 -2
  29. package/dist/runtime/components/beginComponent/index.js +1 -2
  30. package/dist/runtime/components/defineComponent.js +1 -2
  31. package/dist/runtime/components/dom-data.js +1 -2
  32. package/dist/runtime/components/endComponent/index-browser.js +1 -2
  33. package/dist/runtime/components/endComponent/index.js +1 -2
  34. package/dist/runtime/components/entry/index-browser.js +1 -2
  35. package/dist/runtime/components/entry/index.js +1 -2
  36. package/dist/runtime/components/event-delegation.js +1 -2
  37. package/dist/runtime/components/index.js +1 -2
  38. package/dist/runtime/components/init-components/index-browser.js +1 -2
  39. package/dist/runtime/components/init-components/index.js +1 -2
  40. package/dist/runtime/components/registry/index-browser.js +1 -2
  41. package/dist/runtime/components/registry/index.js +1 -2
  42. package/dist/runtime/components/renderer.js +1 -2
  43. package/dist/runtime/components/update-manager.js +1 -2
  44. package/dist/runtime/components/util/index-browser.js +1 -2
  45. package/dist/runtime/components/util/index.js +1 -2
  46. package/dist/runtime/createOut.js +1 -2
  47. package/dist/runtime/dom-insert.js +1 -2
  48. package/dist/runtime/events.js +1 -2
  49. package/dist/runtime/helpers/_change-case.js +1 -2
  50. package/dist/runtime/helpers/assign.js +1 -2
  51. package/dist/runtime/helpers/class-value.js +1 -2
  52. package/dist/runtime/helpers/dynamic-tag.js +1 -2
  53. package/dist/runtime/helpers/load-nested-tag.js +1 -2
  54. package/dist/runtime/helpers/merge.js +1 -2
  55. package/dist/runtime/helpers/render-tag.js +1 -2
  56. package/dist/runtime/helpers/style-value.js +1 -2
  57. package/dist/runtime/helpers/to-string.js +1 -2
  58. package/dist/runtime/html/AsyncStream.js +2 -3
  59. package/dist/runtime/html/BufferedWriter.js +1 -2
  60. package/dist/runtime/html/StringWriter.js +1 -2
  61. package/dist/runtime/html/create-readable/index-browser.js +1 -2
  62. package/dist/runtime/html/create-readable/index.js +1 -2
  63. package/dist/runtime/html/helpers/_dynamic-attr.js +1 -2
  64. package/dist/runtime/html/helpers/attr.js +1 -2
  65. package/dist/runtime/html/helpers/attrs.js +1 -2
  66. package/dist/runtime/html/helpers/class-attr.js +1 -2
  67. package/dist/runtime/html/helpers/data-marko.js +1 -2
  68. package/dist/runtime/html/helpers/escape-quotes.js +1 -2
  69. package/dist/runtime/html/helpers/escape-script-placeholder.js +1 -2
  70. package/dist/runtime/html/helpers/escape-style-placeholder.js +1 -2
  71. package/dist/runtime/html/helpers/escape-xml.js +1 -2
  72. package/dist/runtime/html/helpers/merge-attrs.js +1 -2
  73. package/dist/runtime/html/helpers/props-script.js +1 -2
  74. package/dist/runtime/html/helpers/style-attr.js +1 -2
  75. package/dist/runtime/html/hot-reload.js +1 -2
  76. package/dist/runtime/html/index.js +1 -2
  77. package/dist/runtime/queueMicrotask.js +1 -2
  78. package/dist/runtime/renderable.js +1 -2
  79. package/dist/runtime/setImmediate/index-browser.js +1 -2
  80. package/dist/runtime/setImmediate/index-worker.js +1 -2
  81. package/dist/runtime/setImmediate/index.js +1 -2
  82. package/dist/runtime/vdom/AsyncVDOMBuilder.js +2 -3
  83. package/dist/runtime/vdom/VComponent.js +1 -2
  84. package/dist/runtime/vdom/VDocumentFragment.js +1 -2
  85. package/dist/runtime/vdom/VElement.js +1 -2
  86. package/dist/runtime/vdom/VFragment.js +1 -2
  87. package/dist/runtime/vdom/VNode.js +1 -2
  88. package/dist/runtime/vdom/VText.js +1 -2
  89. package/dist/runtime/vdom/helpers/attrs.js +1 -2
  90. package/dist/runtime/vdom/helpers/const.js +1 -2
  91. package/dist/runtime/vdom/helpers/v-element.js +1 -2
  92. package/dist/runtime/vdom/helpers/v-text.js +1 -2
  93. package/dist/runtime/vdom/hot-reload.js +1 -2
  94. package/dist/runtime/vdom/index.js +1 -2
  95. package/dist/runtime/vdom/morphdom/fragment.js +1 -2
  96. package/dist/runtime/vdom/morphdom/helpers.js +1 -2
  97. package/dist/runtime/vdom/morphdom/index.js +1 -2
  98. package/dist/runtime/vdom/morphdom/specialElHandlers.js +1 -2
  99. package/dist/runtime/vdom/parse-html.js +1 -2
  100. package/dist/runtime/vdom/preserve-attrs.js +1 -2
  101. package/dist/runtime/vdom/vdom.js +1 -2
  102. package/dist/taglib/index.js +1 -2
  103. package/package.json +4 -5
  104. package/src/runtime/RenderResult.js +1 -1
  105. package/src/runtime/html/AsyncStream.js +1 -1
  106. package/src/runtime/vdom/AsyncVDOMBuilder.js +1 -1
  107. package/LICENSE +0 -21
  108. package/dist/compiler/config.js.map +0 -1
  109. package/dist/compiler/index.js.map +0 -1
  110. package/dist/compiler/modules.js.map +0 -1
  111. package/dist/core-tags/components/init-components-tag.js.map +0 -1
  112. package/dist/core-tags/components/preferred-script-location-tag.js.map +0 -1
  113. package/dist/core-tags/components/preserve-tag/index-browser.js.map +0 -1
  114. package/dist/core-tags/components/preserve-tag/index.js.map +0 -1
  115. package/dist/core-tags/core/__flush_here_and_after__.js.map +0 -1
  116. package/dist/core-tags/core/await/AsyncValue.js.map +0 -1
  117. package/dist/core-tags/core/await/client-reorder-runtime.js.map +0 -1
  118. package/dist/core-tags/core/await/renderer.js.map +0 -1
  119. package/dist/core-tags/core/await/reorderer-renderer.js.map +0 -1
  120. package/dist/index.js.map +0 -1
  121. package/dist/loader/index-browser.js.map +0 -1
  122. package/dist/loader/index.js.map +0 -1
  123. package/dist/node-require/browser-refresh.js.map +0 -1
  124. package/dist/node-require/hot-reload.js.map +0 -1
  125. package/dist/node-require/index.js.map +0 -1
  126. package/dist/runtime/RenderResult.js.map +0 -1
  127. package/dist/runtime/components/Component.js.map +0 -1
  128. package/dist/runtime/components/ComponentDef.js.map +0 -1
  129. package/dist/runtime/components/ComponentsContext.js.map +0 -1
  130. package/dist/runtime/components/GlobalComponentsContext.js.map +0 -1
  131. package/dist/runtime/components/KeySequence.js.map +0 -1
  132. package/dist/runtime/components/ServerComponent.js.map +0 -1
  133. package/dist/runtime/components/State.js.map +0 -1
  134. package/dist/runtime/components/attach-detach.js.map +0 -1
  135. package/dist/runtime/components/beginComponent/index-browser.js.map +0 -1
  136. package/dist/runtime/components/beginComponent/index.js.map +0 -1
  137. package/dist/runtime/components/defineComponent.js.map +0 -1
  138. package/dist/runtime/components/dom-data.js.map +0 -1
  139. package/dist/runtime/components/endComponent/index-browser.js.map +0 -1
  140. package/dist/runtime/components/endComponent/index.js.map +0 -1
  141. package/dist/runtime/components/entry/index-browser.js.map +0 -1
  142. package/dist/runtime/components/entry/index.js.map +0 -1
  143. package/dist/runtime/components/event-delegation.js.map +0 -1
  144. package/dist/runtime/components/index.js.map +0 -1
  145. package/dist/runtime/components/init-components/index-browser.js.map +0 -1
  146. package/dist/runtime/components/init-components/index.js.map +0 -1
  147. package/dist/runtime/components/registry/index-browser.js.map +0 -1
  148. package/dist/runtime/components/registry/index.js.map +0 -1
  149. package/dist/runtime/components/renderer.js.map +0 -1
  150. package/dist/runtime/components/update-manager.js.map +0 -1
  151. package/dist/runtime/components/util/index-browser.js.map +0 -1
  152. package/dist/runtime/components/util/index.js.map +0 -1
  153. package/dist/runtime/createOut.js.map +0 -1
  154. package/dist/runtime/dom-insert.js.map +0 -1
  155. package/dist/runtime/events.js.map +0 -1
  156. package/dist/runtime/helpers/_change-case.js.map +0 -1
  157. package/dist/runtime/helpers/assign.js.map +0 -1
  158. package/dist/runtime/helpers/class-value.js.map +0 -1
  159. package/dist/runtime/helpers/dynamic-tag.js.map +0 -1
  160. package/dist/runtime/helpers/load-nested-tag.js.map +0 -1
  161. package/dist/runtime/helpers/merge.js.map +0 -1
  162. package/dist/runtime/helpers/render-tag.js.map +0 -1
  163. package/dist/runtime/helpers/style-value.js.map +0 -1
  164. package/dist/runtime/helpers/to-string.js.map +0 -1
  165. package/dist/runtime/html/AsyncStream.js.map +0 -1
  166. package/dist/runtime/html/BufferedWriter.js.map +0 -1
  167. package/dist/runtime/html/StringWriter.js.map +0 -1
  168. package/dist/runtime/html/create-readable/index-browser.js.map +0 -1
  169. package/dist/runtime/html/create-readable/index.js.map +0 -1
  170. package/dist/runtime/html/helpers/_dynamic-attr.js.map +0 -1
  171. package/dist/runtime/html/helpers/attr.js.map +0 -1
  172. package/dist/runtime/html/helpers/attrs.js.map +0 -1
  173. package/dist/runtime/html/helpers/class-attr.js.map +0 -1
  174. package/dist/runtime/html/helpers/data-marko.js.map +0 -1
  175. package/dist/runtime/html/helpers/escape-quotes.js.map +0 -1
  176. package/dist/runtime/html/helpers/escape-script-placeholder.js.map +0 -1
  177. package/dist/runtime/html/helpers/escape-style-placeholder.js.map +0 -1
  178. package/dist/runtime/html/helpers/escape-xml.js.map +0 -1
  179. package/dist/runtime/html/helpers/merge-attrs.js.map +0 -1
  180. package/dist/runtime/html/helpers/props-script.js.map +0 -1
  181. package/dist/runtime/html/helpers/style-attr.js.map +0 -1
  182. package/dist/runtime/html/hot-reload.js.map +0 -1
  183. package/dist/runtime/html/index.js.map +0 -1
  184. package/dist/runtime/queueMicrotask.js.map +0 -1
  185. package/dist/runtime/renderable.js.map +0 -1
  186. package/dist/runtime/setImmediate/index-browser.js.map +0 -1
  187. package/dist/runtime/setImmediate/index-worker.js.map +0 -1
  188. package/dist/runtime/setImmediate/index.js.map +0 -1
  189. package/dist/runtime/vdom/AsyncVDOMBuilder.js.map +0 -1
  190. package/dist/runtime/vdom/VComponent.js.map +0 -1
  191. package/dist/runtime/vdom/VDocumentFragment.js.map +0 -1
  192. package/dist/runtime/vdom/VElement.js.map +0 -1
  193. package/dist/runtime/vdom/VFragment.js.map +0 -1
  194. package/dist/runtime/vdom/VNode.js.map +0 -1
  195. package/dist/runtime/vdom/VText.js.map +0 -1
  196. package/dist/runtime/vdom/helpers/attrs.js.map +0 -1
  197. package/dist/runtime/vdom/helpers/const.js.map +0 -1
  198. package/dist/runtime/vdom/helpers/v-element.js.map +0 -1
  199. package/dist/runtime/vdom/helpers/v-text.js.map +0 -1
  200. package/dist/runtime/vdom/hot-reload.js.map +0 -1
  201. package/dist/runtime/vdom/index.js.map +0 -1
  202. package/dist/runtime/vdom/morphdom/fragment.js.map +0 -1
  203. package/dist/runtime/vdom/morphdom/helpers.js.map +0 -1
  204. package/dist/runtime/vdom/morphdom/index.js.map +0 -1
  205. package/dist/runtime/vdom/morphdom/specialElHandlers.js.map +0 -1
  206. package/dist/runtime/vdom/parse-html.js.map +0 -1
  207. package/dist/runtime/vdom/preserve-attrs.js.map +0 -1
  208. package/dist/runtime/vdom/vdom.js.map +0 -1
  209. package/dist/taglib/index.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/runtime/helpers/render-tag.js"],"names":["module","exports","renderTagHelper","handler","input","out","componentDef","key","customEvents","c","_","render","renderer"],"mappings":"AAAA;;AAEA;AACA;AACA;AACAA,MAAM,CAACC,OAAP,GAAiB,SAASC,eAAT;AACfC,OADe;AAEfC,KAFe;AAGfC,GAHe;AAIfC,YAJe;AAKfC,GALe;AAMfC,YANe;AAOf;AACAH,EAAAA,GAAG,CAACI,CAAJ,CAAMH,YAAN,EAAoBC,GAApB,EAAyBC,YAAzB;AACA,GAACL,OAAO,CAACO,CAAR,KAAcP,OAAO,CAACO,CAAR,GAAYP,OAAO,CAACQ,MAAR,IAAkBR,OAAO,CAACS,QAA1B,IAAsCT,OAAhE,CAAD;AACEC,EAAAA,KADF;AAEEC,EAAAA,GAFF;;AAIAA,EAAAA,GAAG,GAAH,GAA8B,IAA9B;AACD,CAdD","sourcesContent":["\"use strict\";\n\n/**\n * Helper to render a custom tag\n */\nmodule.exports = function renderTagHelper(\n handler,\n input,\n out,\n componentDef,\n key,\n customEvents\n) {\n out.c(componentDef, key, customEvents);\n (handler._ || (handler._ = handler.render || handler.renderer || handler))(\n input,\n out\n );\n out.___assignedComponentDef = null;\n};\n"],"file":"render-tag.js"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/runtime/helpers/style-value.js"],"names":["changeCase","require","module","exports","styleHelper","style","type","styles","Array","isArray","i","len","length","next","name","value"],"mappings":"AAAA;;AAEA,IAAIA,UAAU,GAAGC,OAAO,CAAC,gBAAD,CAAxB;;AAEA;AACA;AACA;AACAC,MAAM,CAACC,OAAP,GAAiB,SAASC,WAAT,CAAqBC,KAArB,EAA4B;AAC3C,MAAI,CAACA,KAAL,EAAY;AACV,WAAO,IAAP;AACD;;AAED,MAAIC,IAAI,GAAG,OAAOD,KAAlB;;AAEA,MAAIC,IAAI,KAAK,QAAb,EAAuB;AACrB,QAAIC,MAAM,GAAG,EAAb;;AAEA,QAAIC,KAAK,CAACC,OAAN,CAAcJ,KAAd,CAAJ,EAA0B;AACxB,WAAK,IAAIK,CAAC,GAAG,CAAR,EAAWC,GAAG,GAAGN,KAAK,CAACO,MAA5B,EAAoCF,CAAC,GAAGC,GAAxC,EAA6CD,CAAC,EAA9C,EAAkD;AAChD,YAAIG,IAAI,GAAGT,WAAW,CAACC,KAAK,CAACK,CAAD,CAAN,CAAtB;AACA,YAAIG,IAAJ,EAAUN,MAAM,IAAIM,IAAI,IAAIA,IAAI,CAACA,IAAI,CAACD,MAAL,GAAc,CAAf,CAAJ,KAA0B,GAA1B,GAAgC,GAAhC,GAAsC,EAA1C,CAAd;AACX;AACF,KALD,MAKO,IAAIN,IAAI,KAAK,QAAb,EAAuB;AAC5B,WAAK,IAAIQ,IAAT,IAAiBT,KAAjB,EAAwB;AACtB,YAAIU,KAAK,GAAGV,KAAK,CAACS,IAAD,CAAjB;AACA,YAAIC,KAAK,IAAI,IAAT,IAAiBA,KAAK,KAAK,KAA/B,EAAsC;AACpC,cAAI,OAAOA,KAAP,KAAiB,QAAjB,IAA6BA,KAAjC,EAAwC;AACtCA,YAAAA,KAAK,IAAI,IAAT;AACD;;AAEDR,UAAAA,MAAM,IAAIP,UAAU,IAAV,CAA8Bc,IAA9B,IAAsC,GAAtC,GAA4CC,KAA5C,GAAoD,GAA9D;AACD;AACF;AACF;;AAED,WAAOR,MAAM,IAAI,IAAjB;AACD;;AAED,SAAOF,KAAP;AACD,CAhCD","sourcesContent":["\"use strict\";\n\nvar changeCase = require(\"./_change-case\");\n\n/**\n * Helper for generating the string for a style attribute\n */\nmodule.exports = function styleHelper(style) {\n if (!style) {\n return null;\n }\n\n var type = typeof style;\n\n if (type !== \"string\") {\n var styles = \"\";\n\n if (Array.isArray(style)) {\n for (var i = 0, len = style.length; i < len; i++) {\n var next = styleHelper(style[i]);\n if (next) styles += next + (next[next.length - 1] !== \";\" ? \";\" : \"\");\n }\n } else if (type === \"object\") {\n for (var name in style) {\n var value = style[name];\n if (value != null && value !== false) {\n if (typeof value === \"number\" && value) {\n value += \"px\";\n }\n\n styles += changeCase.___camelToDashCase(name) + \":\" + value + \";\";\n }\n }\n }\n\n return styles || null;\n }\n\n return style;\n};\n"],"file":"style-value.js"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/runtime/helpers/to-string.js"],"names":["module","exports","value"],"mappings":"AAAA;;AAEAA,MAAM,CAACC,OAAP,GAAiB,UAAUC,KAAV,EAAiB;AAChC,SAAOA,KAAK,IAAI,IAAT,GAAgB,EAAhB,GAAqBA,KAAK,GAAG,EAApC;AACD,CAFD","sourcesContent":["\"use strict\";\n\nmodule.exports = function (value) {\n return value == null ? \"\" : value + \"\";\n};\n"],"file":"to-string.js"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/runtime/html/AsyncStream.js"],"names":["EventEmitter","require","StringWriter","BufferedWriter","RenderResult","attrsHelper","markoAttr","escapeXmlHelper","parseHTML","escapeXmlOrNullish","x","escapeXmlString","selfClosingTags","noop","voidWriter","write","script","merge","clear","get","toString","State","root","stream","writer","events","finished","escapeEndingComment","text","replace","AsyncStream","global","parentOut","Error","finalGlobal","attributes","originalStream","state","_state","on","runtimeId","_ended","_remaining","_lastCount","_last","undefined","_parentOut","data","_sync","_stack","name","_timeoutId","_node","_elStack","DEFAULT_TIMEOUT","INCLUDE_STACK","process","env","NODE_ENV","enableAsyncStackTrace","proto","prototype","constructor","window","document","sync","isSync","str","getOutput","_result","beginAsync","options","currentWriter","newWriter","newStream","next","timeout","last","setTimeout","error","emit","out","_doFinish","end","remaining","_flushNext","_emitLast","timeoutId","clearTimeout","_handleChildDone","childOut","nextWriter","nextStream","event","callback","onLast","once","lastArray","push","i","length","lastCallback","type","arg","arguments","apply","removeListener","prependListener","pipe","e","stack","getNonMarkoStack","JSON","stringify","message","flush","scheduleFlush","createOut","newOut","bind","tagName","elementAttrs","key","componentDef","props","voidElements","indexOf","svgElements","element","openTagOnly","beginElement","endElement","pop","comment","bf","component","preserve","ef","host","node","nextEl","fragment","html","doc","ownerDocument","nextSibling","createDocumentFragment","appendChild","then","fn","fnErr","promise","Promise","resolve","reject","result","catch","c","customEvents","w","module","exports","split","slice","filter","line","test","join"],"mappings":"AAAA;AACA,IAAIA,YAAY,GAAGC,OAAO,CAAC,cAAD,CAA1B;AACA,IAAIC,YAAY,GAAGD,OAAO,CAAC,gBAAD,CAA1B;AACA,IAAIE,cAAc,GAAGF,OAAO,CAAC,kBAAD,CAA5B;AACA,IAAIG,YAAY,GAAGH,OAAO,CAAC,iBAAD,CAA1B;AACA,IAAII,WAAW,GAAGJ,OAAO,CAAC,iBAAD,CAAzB;AACA,IAAIK,SAAS,GAAGL,OAAO,CAAC,sBAAD,CAAvB;AACA,IAAIM,eAAe,GAAGN,OAAO,CAAC,sBAAD,CAA7B;AACA,IAAIO,SAAS,GAAGP,OAAO,CAAC,oBAAD,CAAvB;AACA,IAAIQ,kBAAkB,GAAGF,eAAe,CAACG,CAAzC;AACA,IAAIC,eAAe,GAAGJ,eAAe,IAArC;AACA,IAAIK,eAAe,GAAGX,OAAO,CAAC,mBAAD,CAA7B;;AAEA,SAASY,IAAT,GAAgB,CAAE;;AAElB,IAAIC,UAAU,GAAG;AACfC,EAAAA,KAAK,EAAEF,IADQ;AAEfG,EAAAA,MAAM,EAAEH,IAFO;AAGfI,EAAAA,KAAK,EAAEJ,IAHQ;AAIfK,EAAAA,KAAK,EAAEL,IAJQ;AAKfM,EAAAA,GAAG,EAAE,YAAY;AACf,WAAO,EAAP;AACD,GAPc;AAQfC,EAAAA,QAAQ,EAAE,YAAY;AACpB,WAAO,EAAP;AACD,GAVc,EAAjB;;;AAaA,SAASC,KAAT,CAAeC,IAAf,EAAqBC,MAArB,EAA6BC,MAA7B,EAAqCC,MAArC,EAA6C;AAC3C,OAAKH,IAAL,GAAYA,IAAZ;AACA,OAAKC,MAAL,GAAcA,MAAd;AACA,OAAKC,MAAL,GAAcA,MAAd;AACA,OAAKC,MAAL,GAAcA,MAAd;;AAEA,OAAKC,QAAL,GAAgB,KAAhB;AACD;;AAED,SAASC,mBAAT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A,CAAC,EAAE,UAAUlC,YAAV,EAAwBD,GAAxB,EAA6BoC,YAA7B,EAA2C;AAC5C,cAA+BnC,YAA/B;AACA,cAAsBD,GAAtB;AACA,eAA+BoC,YAA/B;AACD,GA7hBkC,EAArC;;;AAgiBA;AACAlG,KAAK,CAACmG,CAAN,GAAUnG,KAAK,CAAC7C,KAAhB;AACA6C,KAAK,IAAL,GAAsBA,KAAK,CAACuE,UAA5B;;AAEA6B,MAAM,CAACC,OAAP,GAAiBnI,WAAjB;;AAEA,SAASiF,gBAAT,CAA0BhC,KAA1B,EAAiC;AAC/B,SAAOA,KAAK,CAAC+B,KAAN;AACJ1F,EAAAA,QADI;AAEJ8I,EAAAA,KAFI,CAEE,IAFF;AAGJC,EAAAA,KAHI,CAGE,CAHF;AAIJC,EAAAA,MAJI,CAIG,CAAAC,IAAI,KAAI,CAAC,0BAA0BC,IAA1B,CAA+BD,IAA/B,CAJZ;AAKJE,EAAAA,IALI,CAKC,IALD,CAAP;AAMD","sourcesContent":["\"use strict\";\nvar EventEmitter = require(\"events-light\");\nvar StringWriter = require(\"./StringWriter\");\nvar BufferedWriter = require(\"./BufferedWriter\");\nvar RenderResult = require(\"../RenderResult\");\nvar attrsHelper = require(\"./helpers/attrs\");\nvar markoAttr = require(\"./helpers/data-marko\");\nvar escapeXmlHelper = require(\"./helpers/escape-xml\");\nvar parseHTML = require(\"../vdom/parse-html\");\nvar escapeXmlOrNullish = escapeXmlHelper.x;\nvar escapeXmlString = escapeXmlHelper.___escapeXML;\nvar selfClosingTags = require(\"self-closing-tags\");\n\nfunction noop() {}\n\nvar voidWriter = {\n write: noop,\n script: noop,\n merge: noop,\n clear: noop,\n get: function () {\n return [];\n },\n toString: function () {\n return \"\";\n }\n};\n\nfunction State(root, stream, writer, events) {\n this.root = root;\n this.stream = stream;\n this.writer = writer;\n this.events = events;\n\n this.finished = false;\n}\n\nfunction escapeEndingComment(text) {\n return text.replace(/-->/g, \"--&gt;\");\n}\n\nfunction AsyncStream(global, writer, parentOut) {\n if (parentOut === null) {\n throw new Error(\"illegal state\");\n }\n var finalGlobal = (this.attributes = global || {});\n var originalStream;\n var state;\n\n if (parentOut) {\n state = parentOut._state;\n originalStream = state.stream;\n } else {\n var events = (finalGlobal.events /* deprecated */ =\n writer && writer.on ? writer : new EventEmitter());\n\n if (writer) {\n originalStream = writer;\n writer = new BufferedWriter(writer);\n } else {\n writer = originalStream = new StringWriter();\n }\n\n state = new State(this, originalStream, writer, events);\n writer.state = state;\n }\n\n finalGlobal.runtimeId = finalGlobal.runtimeId || \"M\";\n this.global = finalGlobal;\n this.stream = originalStream;\n this._state = state;\n\n this._ended = false;\n this._remaining = 1;\n this._lastCount = 0;\n this._last = undefined; // Array\n this._parentOut = parentOut;\n\n this.data = {};\n this.writer = writer;\n writer.stream = this;\n\n this._sync = false;\n this._stack = undefined;\n this.name = undefined;\n this._timeoutId = undefined;\n\n this._node = undefined;\n\n this._elStack = undefined; // Array\n\n this.___components = null; // ComponentsContext\n\n this.___assignedComponentDef = null;\n this.___assignedKey = null;\n this.___assignedCustomEvents = null;\n this.___isLast = false;\n}\n\nAsyncStream.DEFAULT_TIMEOUT = 10000;\n\n/**\n * If set to `true`, AsyncStream errors will include the full stack trace\n */\nAsyncStream.INCLUDE_STACK =\n typeof process !== \"undefined\" &&\n (!process.env.NODE_ENV ||\n process.env.NODE_ENV === \"development\" ||\n process.env.NODE_ENV === \"dev\");\n\nAsyncStream.enableAsyncStackTrace = function () {\n AsyncStream.INCLUDE_STACK = true;\n};\n\nvar proto = (AsyncStream.prototype = {\n constructor: AsyncStream,\n ___host: typeof window === \"object\" && document,\n ___isOut: true,\n\n sync: function () {\n this._sync = true;\n },\n\n isSync: function () {\n return this._sync === true;\n },\n\n write: function (str) {\n if (str != null) {\n this.writer.write(str.toString());\n }\n return this;\n },\n\n script: function (str) {\n if (str != null) {\n this.writer.script(str.toString());\n }\n return this;\n },\n\n ___getOutput: function () {\n return this._state.writer.toString();\n },\n\n /**\n * Legacy...\n */\n getOutput: function () {\n return this.___getOutput();\n },\n\n toString: function () {\n return this._state.writer.toString();\n },\n\n ___getResult: function () {\n this._result = this._result || new RenderResult(this);\n return this._result;\n },\n\n beginAsync: function (options) {\n if (this._sync) {\n throw new Error(\"beginAsync() not allowed when using renderSync()\");\n }\n\n var state = this._state;\n\n var currentWriter = this.writer;\n\n /* ┏━━━━━┓ this\n ┃ WAS ┃ ↓↑\n ┗━━━━━┛ prevWriter → currentWriter → nextWriter */\n\n var newWriter = new StringWriter();\n var newStream = new AsyncStream(this.global, currentWriter, this);\n newWriter.state = state;\n\n this.writer = newWriter;\n newWriter.stream = this;\n\n newWriter.next = currentWriter.next;\n currentWriter.next = newWriter;\n\n /* ┏━━━━━┓ newStream this\n ┃ NOW ┃ ↓↑ ↓↑\n ┗━━━━━┛ prevWriter → currentWriter → newWriter → nextWriter */\n\n var timeout;\n var name;\n\n this._remaining++;\n\n if (options != null) {\n if (typeof options === \"number\") {\n timeout = options;\n } else {\n timeout = options.timeout;\n\n if (options.last === true) {\n if (timeout == null) {\n // Don't assign a timeout to last flush fragments\n // unless it is explicitly given a timeout\n timeout = 0;\n }\n\n this._lastCount++;\n newStream.___isLast = true;\n }\n\n name = options.name;\n }\n }\n\n if (timeout == null) {\n timeout = AsyncStream.DEFAULT_TIMEOUT;\n }\n\n newStream._stack = AsyncStream.INCLUDE_STACK ? new Error() : null;\n newStream.name = name;\n\n if (timeout > 0) {\n newStream._timeoutId = setTimeout(function () {\n newStream.error(\n new Error(\n \"Async fragment \" +\n (name ? \"(\" + name + \") \" : \"\") +\n \"timed out after \" +\n timeout +\n \"ms\"\n )\n );\n }, timeout);\n }\n\n state.events.emit(\"beginAsync\", {\n out: newStream,\n parentOut: this\n });\n\n return newStream;\n },\n\n _doFinish: function () {\n var state = this._state;\n\n state.finished = true;\n\n if (state.writer.end) {\n state.writer.end();\n } else {\n state.events.emit(\"finish\", this.___getResult());\n }\n },\n\n end: function (data) {\n if (this._ended === true) {\n return;\n }\n\n this._ended = true;\n\n var remaining = --this._remaining;\n\n if (data != null) {\n this.write(data);\n }\n\n var currentWriter = this.writer;\n\n /* ┏━━━━━┓ this nextStream\n ┃ WAS ┃ ↓↑ ↓↑\n ┗━━━━━┛ currentWriter → nextWriter → futureWriter */\n\n // Prevent any more writes to the current steam\n this.writer = voidWriter;\n currentWriter.stream = null;\n\n // Flush the contents of nextWriter to the currentWriter\n this._flushNext(currentWriter);\n\n /* ┏━━━━━┓ this ╵ nextStream\n ┃ ┃ ↓ ╵ ↓↑\n ┃ NOW ┃ voidWriter ╵ currentWriter → futureWriter\n ┃ ┃ ──────────────┴────────────────────────────────\n ┗━━━━━┛ Flushed & garbage collected: nextWriter */\n\n var parentOut = this._parentOut;\n\n if (parentOut === undefined) {\n if (remaining === 0) {\n this._doFinish();\n } else if (remaining - this._lastCount === 0) {\n this._emitLast();\n }\n } else {\n var timeoutId = this._timeoutId;\n\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n\n if (remaining === 0) {\n parentOut._handleChildDone(this);\n } else if (remaining - this._lastCount === 0) {\n this._emitLast();\n }\n }\n\n return this;\n },\n\n _handleChildDone: function (childOut) {\n var remaining = --this._remaining;\n\n if (remaining === 0) {\n var parentOut = this._parentOut;\n if (parentOut === undefined) {\n this._doFinish();\n } else {\n parentOut._handleChildDone(this);\n }\n } else {\n if (childOut.___isLast) {\n this._lastCount--;\n }\n\n if (remaining - this._lastCount === 0) {\n this._emitLast();\n }\n }\n },\n\n _flushNext: function (currentWriter) {\n // It is possible that currentWriter is the\n // last writer in the chain, so let's make\n // sure there is a nextWriter to flush.\n var nextWriter = currentWriter.next;\n if (nextWriter) {\n // Flush the contents of nextWriter\n // to the currentWriter\n currentWriter.merge(nextWriter);\n\n // Remove nextWriter from the chain.\n // It has been flushed and can now be\n // garbage collected.\n currentWriter.next = nextWriter.next;\n\n // It's possible that nextWriter is the last\n // writer in the chain and its stream already\n // ended, so let's make sure nextStream exists.\n var nextStream = nextWriter.stream;\n if (nextStream) {\n // Point the nextStream to currentWriter\n nextStream.writer = currentWriter;\n currentWriter.stream = nextStream;\n }\n }\n },\n\n on: function (event, callback) {\n var state = this._state;\n\n if (event === \"finish\" && state.finished === true) {\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 === \"finish\" && state.finished === true) {\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 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 _emitLast: function () {\n if (this._last) {\n var i = 0;\n var lastArray = this._last;\n this._last = undefined;\n (function next() {\n if (i === lastArray.length) {\n return;\n }\n var lastCallback = lastArray[i++];\n lastCallback(next);\n\n if (lastCallback.length === 0) {\n next();\n }\n })();\n }\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 prependListener: function () {\n var events = this._state.events;\n events.prependListener.apply(events, arguments);\n return this;\n },\n\n pipe: function (stream) {\n this._state.stream.pipe(stream);\n return this;\n },\n\n error: function (e) {\n var name = this.name;\n var stack = this._stack;\n if (stack) stack = getNonMarkoStack(stack);\n\n if (!(e instanceof Error)) {\n e = new Error(JSON.stringify(e));\n }\n\n if (name || stack) {\n e.message +=\n \"\\nRendered by\" +\n (name ? \" \" + name : \"\") +\n (stack ? \":\\n\" + stack : \"\");\n }\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 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 flush: function () {\n var state = this._state;\n\n if (!state.finished) {\n var writer = state.writer;\n if (writer && writer.scheduleFlush) {\n writer.scheduleFlush();\n }\n }\n return this;\n },\n\n createOut: function () {\n var newOut = new AsyncStream(this.global);\n // Forward error events to the parent out.\n newOut.on(\"error\", this.emit.bind(this, \"error\"));\n this._state.events.emit(\"beginDetachedAsync\", {\n out: newOut,\n parentOut: this\n });\n return newOut;\n },\n\n ___elementDynamic: function (\n tagName,\n elementAttrs,\n key,\n componentDef,\n props\n ) {\n var str =\n \"<\" +\n tagName +\n markoAttr(this, componentDef, props, key) +\n attrsHelper(elementAttrs);\n\n if (selfClosingTags.voidElements.indexOf(tagName) !== -1) {\n str += \">\";\n } else if (selfClosingTags.svgElements.indexOf(tagName) !== -1) {\n str += \"/>\";\n } else {\n str += \"></\" + tagName + \">\";\n }\n\n this.write(str);\n },\n\n element: function (tagName, elementAttrs, openTagOnly) {\n var str = \"<\" + tagName + attrsHelper(elementAttrs) + \">\";\n\n if (openTagOnly !== true) {\n str += \"</\" + tagName + \">\";\n }\n\n this.write(str);\n },\n\n ___beginElementDynamic: function (\n name,\n elementAttrs,\n key,\n componentDef,\n props\n ) {\n var str =\n \"<\" +\n name +\n markoAttr(this, componentDef, props, key) +\n attrsHelper(elementAttrs) +\n \">\";\n\n this.write(str);\n\n if (this._elStack) {\n this._elStack.push(name);\n } else {\n this._elStack = [name];\n }\n },\n\n beginElement: function (name, elementAttrs) {\n var str = \"<\" + name + attrsHelper(elementAttrs) + \">\";\n\n this.write(str);\n\n if (this._elStack) {\n this._elStack.push(name);\n } else {\n this._elStack = [name];\n }\n },\n\n endElement: function () {\n var tagName = this._elStack.pop();\n this.write(\"</\" + tagName + \">\");\n },\n\n comment: function (str) {\n this.write(\"<!--\" + escapeEndingComment(str) + \"-->\");\n },\n\n text: function (str) {\n this.write(escapeXmlOrNullish(str));\n },\n\n bf: function (key, component, preserve) {\n if (preserve) {\n this.write(\"<!--F#\" + escapeXmlString(key) + \"-->\");\n }\n if (this._elStack) {\n this._elStack.push(preserve);\n } else {\n this._elStack = [preserve];\n }\n },\n\n ef: function () {\n var preserve = this._elStack.pop();\n if (preserve) {\n this.write(\"<!--F/-->\");\n }\n },\n\n ___getNode: function (host) {\n var node = this._node;\n\n if (!node) {\n var nextEl;\n var fragment;\n var html = this.___getOutput();\n if (!host) host = this.___host;\n var doc = host.ownerDocument || host;\n\n if (html) {\n node = parseHTML(html);\n\n if (node && node.nextSibling) {\n // If there are multiple nodes, turn it into a document fragment.\n fragment = doc.createDocumentFragment();\n\n do {\n nextEl = node.nextSibling;\n fragment.appendChild(node);\n } while ((node = nextEl));\n\n node = fragment;\n }\n }\n\n // if HTML is empty use empty document fragment (so that we're returning a valid DOM node)\n this._node = node || doc.createDocumentFragment();\n }\n return node;\n },\n\n then: function (fn, fnErr) {\n var out = this;\n var promise = new Promise(function (resolve, reject) {\n out.on(\"error\", reject);\n out.on(\"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 c: function (componentDef, key, customEvents) {\n this.___assignedComponentDef = componentDef;\n this.___assignedKey = key;\n this.___assignedCustomEvents = customEvents;\n }\n});\n\n// alias:\nproto.w = proto.write;\nproto.___endElement = proto.endElement;\n\nmodule.exports = AsyncStream;\n\nfunction getNonMarkoStack(error) {\n return error.stack\n .toString()\n .split(\"\\n\")\n .slice(1)\n .filter(line => !/\\/node_modules\\/marko\\//.test(line))\n .join(\"\\n\");\n}\n"],"file":"AsyncStream.js"}
@@ -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,GAAG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B,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;AACp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;AACD,GAtCsB;;AAwCvBc,EAAAA,QAAQ,EAAE,YAAY;AACpB,SAAKC,KAAL,CAAWC,MAAX,CAAkBC,IAAlB,OAAsC,IAAtC;AACA,QAAId,GAAG,GAAG,KAAKL,QAAf;AACA,QAAI,KAAKC,QAAT,EAAmB;AACjB,YAAMmB,SAAS,GAAG,KAAKH,KAAL,CAAWI,IAAX,CAAgBC,MAAlC;AACA,YAAMC,QAAQ,GAAGH,SAAS,CAACG,QAA3B;AACA,YAAMC,SAAS,GAAGD,QAAQ;AACtB,mBAAa1B,kBAAkB,CAAC0B,QAAD,CAA/B,GAA4C,GADtB;AAEtB,QAFJ;AAGAlB,MAAAA,GAAG,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,EA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E,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, \"'\", \"&#39;\");\n}\n\nfunction escapeDoubleQuotes(value, startPos) {\n return escapeQuote(value, startPos, '\"', \"&#34;\");\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 = \"&lt;\";\n break;\n case \"&\":\n replacement = \"&amp;\";\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,CAAC,oBAAD,CAApB;;AAEA,SAASG,UAAT,CAAoBC,UAApB,EAAgCC,SAAhC,EAA2CC,QAA3C,EAAqDC,SAArD,EAAgE;AAC9D,MAAI;AACFH,IAAAA,UAAU,CAACC,SAAD,EAAYC,QAAZ,CAAV;;AAEA,QAAIC,SAAJ,EAAe;AACbD,MAAAA,QAAQ,CAACE,GAAT;AACD;AACF,GAND,CAME,OAAOC,GAAP,EAAY;AACZ,QAAIC,SAAS,GAAGJ,QAAQ,CAACE,GAAzB;AACAF,IAAAA,QAAQ,CAACE,GAAT,GAAe,YAAY,CAAE,CAA7B;;AAEAP,IAAAA,YAAY,CAAC,YAAY;AACvBK,MAAAA,QAAQ,CAACE,GAAT,GAAeE,SAAf;AACAJ,MAAAA,QAAQ,CAACK,KAAT,CAAeF,GAAf;AACD,KAHW,CAAZ;AAID;AACD,SAAOH,QAAP;AACD;;AAEDM,MAAM,CAACC,OAAP,GAAiB,UAAUC,MAAV,EAAkBC,QAAlB,EAA4B;AAC3C,MAAIX,UAAU;AACZW,EAAAA,QAAQ,KAAKA,QAAQ,CAACA,QAAT,IAAqBA,QAAQ,CAACC,MAA9B,IAAwCD,QAA7C,CADV;AAEA,MAAIE,SAAS,GAAGH,MAAM,CAACG,SAAP,IAAoBF,QAAQ,CAACE,SAA7B,IAA0ClB,gBAA1D;;AAEA,SAAOG,MAAM,CAACY,MAAD,EAAS;AACpBG,IAAAA,SAAS,EAAEA,SADS;;AAGpBC,IAAAA,cAAc,EAAE,UAAUC,IAAV,EAAgBC,QAAhB,EAA0B;AACxC,UAAIC,SAAS,GAAGF,I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T,UAAAA,QAAQ,CAAC,IAAD,EAAOd,QAAQ,IAAR,EAAP,CAAR;AACD,SAHH;AAIGyB,QAAAA,IAJH,CAIQ,OAJR,EAIiBX,QAJjB;AAKD;;AAEDG,MAAAA,UAAU,GAAGjB,QAAQ,CAACoB,MAAtB;;AAEAH,MAAAA,UAAU,CAACI,QAAX,GAAsBJ,UAAU,CAACI,QAAX,IAAuB,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","window","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,aAAm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GAAUlG,KAAK,CAACmG,KAAN,GAAcnG,KAAK,CAAC2B,IAAxC;;AAEAyE,MAAM,CAACC,OAAP,GAAiB7G,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 window === \"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,E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,QAAf;AACAmD,MAAAA,QAAQ,GAAGxC,SAAX;AACD;;AAED,QAAIyC,SAAS,IAAI,IAAb,IAAqBA,SAAS,KAAK,KAAvC,EAA8C;AAC5CvB,MAAAA,eAAe,CAACsC,MAAD,EAASzC,YAAT,EAAuByB,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,eAAo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KAAP;AACD,GAvEe;;AAyEhB,OAAgB,SAASI,WAAT,GAAuB;AACrC,QAAI,aAAuB,QAAvB,IAAkD,QAAtD,EAA0E;AACxE,aAAO,cAAP;AACD,KAFD,MAEO;AACL,aAAO,IAAP;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;AA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CAA6BgB,QAA7B,EAAuCpB,QAAvC,EAAiD;AAC/C;AACEqB,IAAAA,gBAAgB,CAAC,UAAD,CAAhB;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","beginFragmentNode","exports"],"mappings":"aAAA,IAAIA,OAAO,GAAGC,OAAO,CAAC,WAAD,CAArB;AACA,IAAIC,YAAY,GAAGF,OAAO,IAA1B;;AAEA,IAAIG,iBAAiB,GAAG;AACtBC,EAAAA,QAAQ,EAAE,EADY;AAEtB,MAAIC,UAAJ,GAAiB;AACf,QAAIA,UAAU,GAAG,KAAKC,SAAL,CAAeC,WAAhC;AACA,WAAOF,UAAU,KAAK,KAAKG,OAApB,GAA8BC,SAA9B,GAA0CJ,UAAjD;AACD,GALqB;AAMtB,MAAIK,SAAJ,GAAgB;AACd,QAAIA,SAAS,GAAG,KAAKF,OAAL,CAAaG,eAA7B;AACA,WAAOD,SAAS,KAAK,KAAKJ,SAAnB,GAA+BG,SAA/B,GAA2CC,SAAlD;AACD,GATqB;AAUtB,MAAIE,UAAJ,GAAiB;AACf,QAAIA,UAAU,GAAG,KAAKN,SAAL,CAAeM,UAAhC;AACA,WAAOA,UAAU,KAAK,KAAKC,iBAApB,GAAwCJ,SAAxC,GAAoDG,UAA3D;AACD,GAbqB;AActB,MAAIE,YAAJ,GAAmB;AACjB,WAAO,KAAKR,SAAL,CAAeM,UAAf,CAA0BE,YAAjC;AACD,GAhBqB;AAiBtB,MAAIP,WAAJ,GAAkB;AAChB,WAAO,KAAKC,OAAL,CAAaD,WAApB;AACD,GAnBqB;AAoBtB,MAAIQ,KAAJ,GAAY;AACV;;;;;;AAMA,QAAIA,KAAK,GAAG,EAAZ;AACA,QAAIC,OAAO,GAAG,KAAKV,SAAnB;AACA,WAAOU,OAAO,KAAK,KAAKR,OAAxB,EAAiC;AAC/BO,MAAAA,KAAK,CAACE,IAAN,CAAWD,OAAX;AACAA,MAAAA,OAAO,GAAGA,OAAO,CAACT,WAAlB;AACD;AACDQ,IAAAA,KAAK,CAACE,IAAN,CAAWD,OAAX;AACA,WAAOD,KAAP;AACD,GAnCqB;AAoC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AAQ,CAACE,cAAT,CAAwB,EAAxB,CAFJ;AAGAP,EAAAA,QAAQ,CAACvB,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"}