lumen-plus 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Alert/Alert.svelte +1 -1
- package/dist/components/Autocomplete/Autocomplete.svelte +1 -1
- package/dist/components/Backtop/Backtop.svelte +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.svelte +1 -1
- package/dist/components/Button/Button.svelte +1 -1
- package/dist/components/Calendar/Calendar.svelte +1 -1
- package/dist/components/Carousel/Carousel.svelte +1 -1
- package/dist/components/Cascader/Cascader.svelte +2 -2
- package/dist/components/Checkbox/Checkbox.svelte +1 -1
- package/dist/components/Collapse/CollapseItem.svelte +1 -1
- package/dist/components/ColorPicker/ColorPicker.svelte +2 -2
- package/dist/components/DatePicker/DatePicker.svelte +2 -2
- package/dist/components/DateTimePicker/DateTimePicker.svelte +2 -2
- package/dist/components/Dialog/Dialog.svelte +1 -1
- package/dist/components/Drawer/Drawer.svelte +1 -1
- package/dist/components/Dropdown/Dropdown.svelte +1 -1
- package/dist/components/Image/Image.svelte +1 -1
- package/dist/components/Input/Input.svelte +1 -1
- package/dist/components/InputNumber/InputNumber.svelte +1 -1
- package/dist/components/InputTag/InputTag.svelte +1 -1
- package/dist/components/Loading/Loading.svelte +1 -1
- package/dist/components/Menu/Menu.svelte +1 -1
- package/dist/components/Message/MessageBox.svelte +1 -1
- package/dist/components/MessageBox/MessageBox.svelte +2 -2
- package/dist/components/Notification/Notification.svelte +1 -1
- package/dist/components/Pagination/Pagination.svelte +4 -4
- package/dist/components/Popconfirm/Popconfirm.svelte +2 -2
- package/dist/components/Result/Result.svelte +1 -1
- package/dist/components/Select/Select.svelte +2 -2
- package/dist/components/Slider/Slider.svelte +1 -1
- package/dist/components/Steps/Step.svelte +1 -1
- package/dist/components/Switch/Switch.svelte +1 -1
- package/dist/components/Table/Table.svelte +5 -5
- package/dist/components/Tabs/Tabs.svelte +1 -1
- package/dist/components/Tag/Tag.svelte +1 -1
- package/dist/components/Textarea/Textarea.svelte +1 -1
- package/dist/components/TimePicker/TimePicker.svelte +2 -2
- package/dist/components/Transfer/Transfer.svelte +2 -2
- package/dist/components/Tree/TreeNode.svelte +2 -2
- package/dist/components/TreeSelect/TreeSelect.svelte +4 -4
- package/dist/components/Upload/Upload.svelte +1 -1
- package/dist/index.js +2 -0
- package/dist/theme-chalk/_index.scss +69 -0
- package/dist/theme-chalk/_reset.scss +16 -0
- package/dist/theme-chalk/_variables.scss +91 -0
- package/dist/theme-chalk/affix.scss +8 -0
- package/dist/theme-chalk/alert.scss +140 -0
- package/dist/theme-chalk/autocomplete.scss +238 -0
- package/dist/theme-chalk/avatar.scss +49 -0
- package/dist/theme-chalk/backtop.scss +55 -0
- package/dist/theme-chalk/badge.scss +47 -0
- package/dist/theme-chalk/breadcrumb.scss +50 -0
- package/dist/theme-chalk/button.scss +472 -0
- package/dist/theme-chalk/calendar.scss +166 -0
- package/dist/theme-chalk/card.scss +70 -0
- package/dist/theme-chalk/carousel.scss +167 -0
- package/dist/theme-chalk/cascader.scss +265 -0
- package/dist/theme-chalk/checkbox.scss +127 -0
- package/dist/theme-chalk/collapse.scss +100 -0
- package/dist/theme-chalk/color-picker.scss +247 -0
- package/dist/theme-chalk/container.scss +79 -0
- package/dist/theme-chalk/date-picker.scss +352 -0
- package/dist/theme-chalk/date-time-picker.scss +396 -0
- package/dist/theme-chalk/descriptions.scss +160 -0
- package/dist/theme-chalk/dialog.scss +154 -0
- package/dist/theme-chalk/divider.scss +61 -0
- package/dist/theme-chalk/drawer.scss +211 -0
- package/dist/theme-chalk/dropdown.scss +230 -0
- package/dist/theme-chalk/empty.scss +36 -0
- package/dist/theme-chalk/form.scss +187 -0
- package/dist/theme-chalk/icon.scss +16 -0
- package/dist/theme-chalk/image.scss +171 -0
- package/dist/theme-chalk/input-number.scss +229 -0
- package/dist/theme-chalk/input-tag.scss +119 -0
- package/dist/theme-chalk/input.scss +249 -0
- package/dist/theme-chalk/link.scss +28 -0
- package/dist/theme-chalk/loading.scss +68 -0
- package/dist/theme-chalk/menu.scss +239 -0
- package/dist/theme-chalk/message.scss +150 -0
- package/dist/theme-chalk/messagebox.scss +76 -0
- package/dist/theme-chalk/mixins/_bem.scss +103 -0
- package/dist/theme-chalk/mixins/_function.scss +12 -0
- package/dist/theme-chalk/notification.scss +164 -0
- package/dist/theme-chalk/pagination.scss +130 -0
- package/dist/theme-chalk/pin-input.scss +192 -0
- package/dist/theme-chalk/popconfirm.scss +194 -0
- package/dist/theme-chalk/popover.scss +196 -0
- package/dist/theme-chalk/progress.scss +51 -0
- package/dist/theme-chalk/radio.scss +128 -0
- package/dist/theme-chalk/rating.scss +227 -0
- package/dist/theme-chalk/result.scss +80 -0
- package/dist/theme-chalk/segmented.scss +108 -0
- package/dist/theme-chalk/select.scss +301 -0
- package/dist/theme-chalk/skeleton.scss +113 -0
- package/dist/theme-chalk/slider.scss +259 -0
- package/dist/theme-chalk/space.scss +44 -0
- package/dist/theme-chalk/statistic.scss +49 -0
- package/dist/theme-chalk/steps.scss +255 -0
- package/dist/theme-chalk/switch.scss +277 -0
- package/dist/theme-chalk/table.scss +343 -0
- package/dist/theme-chalk/tabs.scss +433 -0
- package/dist/theme-chalk/tag.scss +143 -0
- package/dist/theme-chalk/textarea.scss +125 -0
- package/dist/theme-chalk/time-picker.scss +321 -0
- package/dist/theme-chalk/timeline.scss +119 -0
- package/dist/theme-chalk/tooltip.scss +165 -0
- package/dist/theme-chalk/transfer.scss +219 -0
- package/dist/theme-chalk/tree-select.scss +384 -0
- package/dist/theme-chalk/tree.scss +101 -0
- package/dist/theme-chalk/upload.scss +457 -0
- package/dist/theme-chalk/watermark.scss +30 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/node_modules/.bin/tsc +2 -0
- package/dist/utils/node_modules/.bin/tsserver +2 -0
- package/dist/utils/node_modules/svelte/LICENSE.md +7 -0
- package/dist/utils/node_modules/svelte/README.md +41 -0
- package/dist/utils/node_modules/svelte/compiler/index.js +1 -0
- package/dist/utils/node_modules/svelte/compiler/package.json +3 -0
- package/dist/utils/node_modules/svelte/package.json +184 -0
- package/dist/utils/node_modules/svelte/src/animate/index.js +78 -0
- package/dist/utils/node_modules/svelte/src/attachments/index.js +113 -0
- package/dist/utils/node_modules/svelte/src/compiler/errors.js +1719 -0
- package/dist/utils/node_modules/svelte/src/compiler/index.js +198 -0
- package/dist/utils/node_modules/svelte/src/compiler/legacy.js +632 -0
- package/dist/utils/node_modules/svelte/src/compiler/migrate/index.js +1996 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/acorn.js +198 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/index.js +326 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/read/context.js +116 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/read/expression.js +93 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/read/options.js +261 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/read/script.js +97 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/read/style.js +633 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/remove_typescript_nodes.js +180 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/state/element.js +877 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/state/fragment.js +17 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/state/tag.js +751 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/state/text.js +23 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/utils/bracket.js +213 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/utils/create.js +16 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/utils/entities.js +2234 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/utils/fuzzymatch.js +280 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/utils/html.js +127 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/css/css-analyze.js +331 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/css/css-prune.js +1160 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/css/css-warn.js +47 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/css/utils.js +177 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/index.js +1283 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/utils/check_graph_for_cycles.js +47 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/AnimateDirective.js +15 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ArrowFunctionExpression.js +11 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/AssignmentExpression.js +31 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/AttachTag.js +17 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/Attribute.js +66 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/AwaitBlock.js +48 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/AwaitExpression.js +150 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/BindDirective.js +280 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/CallExpression.js +339 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ClassBody.js +156 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ClassDeclaration.js +25 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ClassDirective.js +13 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/Component.js +26 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ConstTag.js +45 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/DebugTag.js +15 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/EachBlock.js +97 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExportDefaultDeclaration.js +20 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExportNamedDeclaration.js +70 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExportSpecifier.js +30 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExpressionStatement.js +38 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExpressionTag.js +26 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/Fragment.js +10 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/FunctionDeclaration.js +16 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/FunctionExpression.js +11 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/HtmlTag.js +19 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/Identifier.js +193 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/IfBlock.js +27 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ImportDeclaration.js +31 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/KeyBlock.js +21 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/LabeledStatement.js +95 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/LetDirective.js +24 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/Literal.js +14 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/MemberExpression.js +28 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/NewExpression.js +17 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/OnDirective.js +28 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/PropertyDefinition.js +21 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/RegularElement.js +210 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/RenderTag.js +68 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SlotElement.js +42 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SnippetBlock.js +113 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SpreadAttribute.js +13 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SpreadElement.js +16 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/StyleDirective.js +39 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteBody.js +22 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteBoundary.js +30 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteComponent.js +18 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteDocument.js +24 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteElement.js +78 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteFragment.js +27 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteHead.js +18 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteSelf.js +36 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteWindow.js +24 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/TaggedTemplateExpression.js +16 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/TemplateElement.js +12 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/Text.js +52 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/TitleElement.js +21 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/TransitionDirective.js +19 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/UpdateExpression.js +29 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/UseDirective.js +18 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/VariableDeclarator.js +160 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/constants.js +319 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js +977 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/attribute.js +125 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/component.js +177 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/element.js +160 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/fragment.js +15 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/function.js +24 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/snippets.js +17 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/special-element.js +16 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/utils.js +301 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/transform-client.js +709 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/transform-template/fix-attribute-casing.js +18 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/transform-template/index.js +67 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/transform-template/template.js +162 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/utils.js +181 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/AnimateDirective.js +38 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ArrowFunctionExpression.js +11 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/AssignmentExpression.js +225 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/AttachTag.js +26 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Attribute.js +14 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/AwaitBlock.js +124 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/AwaitExpression.js +25 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/BinaryExpression.js +34 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/BindDirective.js +290 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/BlockStatement.js +32 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/BreakStatement.js +20 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/CallExpression.js +136 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ClassBody.js +111 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Comment.js +11 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Component.js +12 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ConstTag.js +134 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/DebugTag.js +28 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/EachBlock.js +367 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ExportNamedDeclaration.js +19 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ExpressionStatement.js +20 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ForOfStatement.js +25 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Fragment.js +181 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/FunctionDeclaration.js +12 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/FunctionExpression.js +11 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/HtmlTag.js +49 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Identifier.js +45 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/IfBlock.js +90 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/KeyBlock.js +39 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/LabeledStatement.js +64 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/LetDirective.js +55 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/MemberExpression.js +23 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/OnDirective.js +38 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Program.js +153 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js +791 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/RenderTag.js +91 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SlotElement.js +94 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SnippetBlock.js +94 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SpreadAttribute.js +10 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteBody.js +11 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteBoundary.js +126 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteComponent.js +13 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteDocument.js +11 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteElement.js +157 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteFragment.js +17 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteHead.js +23 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteSelf.js +13 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteWindow.js +11 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/TitleElement.js +48 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/TransitionDirective.js +41 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/UpdateExpression.js +55 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/UseDirective.js +49 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/VariableDeclaration.js +422 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/component.js +530 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/declarations.js +53 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/element.js +263 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/events.js +176 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/fragment.js +185 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/function.js +17 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/special_element.js +22 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/utils.js +513 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/css/index.js +479 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/index.js +118 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/transform-server.js +423 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/AssignmentExpression.js +107 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/AwaitBlock.js +37 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/AwaitExpression.js +40 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/CallExpression.js +71 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/ClassBody.js +81 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/Component.js +12 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/ConstTag.js +49 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/DebugTag.js +24 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/EachBlock.js +80 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/ExpressionStatement.js +23 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/Fragment.js +53 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/HtmlTag.js +26 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/Identifier.js +19 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/IfBlock.js +39 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/KeyBlock.js +22 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/LabeledStatement.js +24 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/MemberExpression.js +19 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/Program.js +25 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/PropertyDefinition.js +37 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/RegularElement.js +255 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/RenderTag.js +51 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SlotElement.js +77 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SnippetBlock.js +29 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SpreadAttribute.js +10 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteBoundary.js +71 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteComponent.js +12 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteElement.js +102 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteFragment.js +11 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteHead.js +25 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteSelf.js +12 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/TitleElement.js +21 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/UpdateExpression.js +26 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/VariableDeclaration.js +212 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/shared/component.js +360 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/shared/element.js +563 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/shared/utils.js +407 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/shared/assignments.js +93 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/shared/transform-async.js +114 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/utils.js +451 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/bindings.js +227 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/css.js +14 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/nodes.js +245 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/patterns.js +27 -0
- package/dist/utils/node_modules/svelte/src/compiler/phases/scope.js +1412 -0
- package/dist/utils/node_modules/svelte/src/compiler/preprocess/decode_sourcemap.js +96 -0
- package/dist/utils/node_modules/svelte/src/compiler/preprocess/index.js +368 -0
- package/dist/utils/node_modules/svelte/src/compiler/preprocess/replace_in_code.js +72 -0
- package/dist/utils/node_modules/svelte/src/compiler/print/index.js +890 -0
- package/dist/utils/node_modules/svelte/src/compiler/state.js +144 -0
- package/dist/utils/node_modules/svelte/src/compiler/utils/assert.js +9 -0
- package/dist/utils/node_modules/svelte/src/compiler/utils/ast.js +639 -0
- package/dist/utils/node_modules/svelte/src/compiler/utils/builders.js +698 -0
- package/dist/utils/node_modules/svelte/src/compiler/utils/compile_diagnostic.js +107 -0
- package/dist/utils/node_modules/svelte/src/compiler/utils/extract_svelte_ignore.js +104 -0
- package/dist/utils/node_modules/svelte/src/compiler/utils/mapped_code.js +454 -0
- package/dist/utils/node_modules/svelte/src/compiler/utils/push_array.js +13 -0
- package/dist/utils/node_modules/svelte/src/compiler/utils/sanitize_template_string.js +7 -0
- package/dist/utils/node_modules/svelte/src/compiler/utils/slot.js +20 -0
- package/dist/utils/node_modules/svelte/src/compiler/utils/string.js +9 -0
- package/dist/utils/node_modules/svelte/src/compiler/validate-options.js +324 -0
- package/dist/utils/node_modules/svelte/src/compiler/warnings.js +845 -0
- package/dist/utils/node_modules/svelte/src/constants.js +64 -0
- package/dist/utils/node_modules/svelte/src/easing/index.js +286 -0
- package/dist/utils/node_modules/svelte/src/escaping.js +26 -0
- package/dist/utils/node_modules/svelte/src/events/index.js +1 -0
- package/dist/utils/node_modules/svelte/src/html-tree-validation.js +238 -0
- package/dist/utils/node_modules/svelte/src/index-client.js +255 -0
- package/dist/utils/node_modules/svelte/src/index-server.js +56 -0
- package/dist/utils/node_modules/svelte/src/internal/client/constants.js +73 -0
- package/dist/utils/node_modules/svelte/src/internal/client/context.js +258 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dev/assign.js +78 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dev/console-log.js +35 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dev/css.js +31 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dev/debug.js +500 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dev/elements.js +63 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dev/equality.js +101 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dev/hmr.js +89 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dev/inspect.js +72 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dev/legacy.js +25 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dev/ownership.js +81 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dev/tracing.js +162 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dev/validation.js +16 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/async.js +64 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/await.js +142 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/boundary.js +507 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/branches.js +227 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/css-props.js +28 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/each.js +666 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/html.js +121 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/if.js +70 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/key.js +33 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/slot.js +44 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/snippet.js +103 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/svelte-component.js +26 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/svelte-element.js +152 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/svelte-head.js +59 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/css.js +32 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/actions.js +43 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/attachments.js +33 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/attributes.js +657 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/document.js +17 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/input.js +312 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/media.js +232 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/navigator.js +11 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/props.js +22 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/select.js +159 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js +76 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js +108 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js +61 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/universal.js +75 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/window.js +66 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/class.js +51 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/custom-element.js +338 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/customizable-select.js +98 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/events.js +338 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/misc.js +58 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/style.js +57 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/transitions.js +472 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/hydration.js +120 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/legacy/event-modifiers.js +127 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/legacy/lifecycle.js +82 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/legacy/misc.js +68 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/operations.js +260 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/reconciler.js +6 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/task.js +42 -0
- package/dist/utils/node_modules/svelte/src/internal/client/dom/template.js +388 -0
- package/dist/utils/node_modules/svelte/src/internal/client/error-handling.js +116 -0
- package/dist/utils/node_modules/svelte/src/internal/client/errors.js +491 -0
- package/dist/utils/node_modules/svelte/src/internal/client/hydratable.js +33 -0
- package/dist/utils/node_modules/svelte/src/internal/client/index.js +184 -0
- package/dist/utils/node_modules/svelte/src/internal/client/legacy.js +46 -0
- package/dist/utils/node_modules/svelte/src/internal/client/loop.js +48 -0
- package/dist/utils/node_modules/svelte/src/internal/client/proxy.js +432 -0
- package/dist/utils/node_modules/svelte/src/internal/client/reactivity/async.js +302 -0
- package/dist/utils/node_modules/svelte/src/internal/client/reactivity/batch.js +988 -0
- package/dist/utils/node_modules/svelte/src/internal/client/reactivity/deriveds.js +394 -0
- package/dist/utils/node_modules/svelte/src/internal/client/reactivity/effects.js +717 -0
- package/dist/utils/node_modules/svelte/src/internal/client/reactivity/equality.js +31 -0
- package/dist/utils/node_modules/svelte/src/internal/client/reactivity/props.js +430 -0
- package/dist/utils/node_modules/svelte/src/internal/client/reactivity/sources.js +368 -0
- package/dist/utils/node_modules/svelte/src/internal/client/reactivity/status.js +25 -0
- package/dist/utils/node_modules/svelte/src/internal/client/reactivity/store.js +203 -0
- package/dist/utils/node_modules/svelte/src/internal/client/reactivity/utils.js +40 -0
- package/dist/utils/node_modules/svelte/src/internal/client/render.js +319 -0
- package/dist/utils/node_modules/svelte/src/internal/client/runtime.js +831 -0
- package/dist/utils/node_modules/svelte/src/internal/client/timing.js +16 -0
- package/dist/utils/node_modules/svelte/src/internal/client/validate.js +88 -0
- package/dist/utils/node_modules/svelte/src/internal/client/warnings.js +271 -0
- package/dist/utils/node_modules/svelte/src/internal/disclose-version.js +6 -0
- package/dist/utils/node_modules/svelte/src/internal/flags/async.js +3 -0
- package/dist/utils/node_modules/svelte/src/internal/flags/index.js +23 -0
- package/dist/utils/node_modules/svelte/src/internal/flags/legacy.js +3 -0
- package/dist/utils/node_modules/svelte/src/internal/flags/tracing.js +3 -0
- package/dist/utils/node_modules/svelte/src/internal/index.js +5 -0
- package/dist/utils/node_modules/svelte/src/internal/server/abort-signal.js +13 -0
- package/dist/utils/node_modules/svelte/src/internal/server/blocks/html.js +11 -0
- package/dist/utils/node_modules/svelte/src/internal/server/blocks/snippet.js +24 -0
- package/dist/utils/node_modules/svelte/src/internal/server/context.js +122 -0
- package/dist/utils/node_modules/svelte/src/internal/server/crypto.js +41 -0
- package/dist/utils/node_modules/svelte/src/internal/server/dev.js +115 -0
- package/dist/utils/node_modules/svelte/src/internal/server/errors.js +118 -0
- package/dist/utils/node_modules/svelte/src/internal/server/hydratable.js +142 -0
- package/dist/utils/node_modules/svelte/src/internal/server/hydration.js +6 -0
- package/dist/utils/node_modules/svelte/src/internal/server/index.js +490 -0
- package/dist/utils/node_modules/svelte/src/internal/server/render-context.js +86 -0
- package/dist/utils/node_modules/svelte/src/internal/server/renderer.js +770 -0
- package/dist/utils/node_modules/svelte/src/internal/server/warnings.js +29 -0
- package/dist/utils/node_modules/svelte/src/internal/shared/attributes.js +223 -0
- package/dist/utils/node_modules/svelte/src/internal/shared/clone.js +137 -0
- package/dist/utils/node_modules/svelte/src/internal/shared/dev.js +65 -0
- package/dist/utils/node_modules/svelte/src/internal/shared/errors.js +134 -0
- package/dist/utils/node_modules/svelte/src/internal/shared/utils.js +118 -0
- package/dist/utils/node_modules/svelte/src/internal/shared/validate.js +47 -0
- package/dist/utils/node_modules/svelte/src/internal/shared/warnings.js +40 -0
- package/dist/utils/node_modules/svelte/src/legacy/legacy-client.js +280 -0
- package/dist/utils/node_modules/svelte/src/legacy/legacy-server.js +112 -0
- package/dist/utils/node_modules/svelte/src/motion/index.js +32 -0
- package/dist/utils/node_modules/svelte/src/motion/spring.js +369 -0
- package/dist/utils/node_modules/svelte/src/motion/tweened.js +306 -0
- package/dist/utils/node_modules/svelte/src/motion/utils.js +7 -0
- package/dist/utils/node_modules/svelte/src/reactivity/create-subscriber.js +95 -0
- package/dist/utils/node_modules/svelte/src/reactivity/date.js +118 -0
- package/dist/utils/node_modules/svelte/src/reactivity/index-client.js +7 -0
- package/dist/utils/node_modules/svelte/src/reactivity/index-server.js +23 -0
- package/dist/utils/node_modules/svelte/src/reactivity/map.js +273 -0
- package/dist/utils/node_modules/svelte/src/reactivity/media-query.js +55 -0
- package/dist/utils/node_modules/svelte/src/reactivity/reactive-value.js +24 -0
- package/dist/utils/node_modules/svelte/src/reactivity/set.js +213 -0
- package/dist/utils/node_modules/svelte/src/reactivity/url-search-params.js +174 -0
- package/dist/utils/node_modules/svelte/src/reactivity/url.js +205 -0
- package/dist/utils/node_modules/svelte/src/reactivity/window/index.js +161 -0
- package/dist/utils/node_modules/svelte/src/server/index.js +1 -0
- package/dist/utils/node_modules/svelte/src/store/index-client.js +169 -0
- package/dist/utils/node_modules/svelte/src/store/index-server.js +101 -0
- package/dist/utils/node_modules/svelte/src/store/shared/index.js +209 -0
- package/dist/utils/node_modules/svelte/src/store/utils.js +36 -0
- package/dist/utils/node_modules/svelte/src/transition/index.js +300 -0
- package/dist/utils/node_modules/svelte/src/utils.js +491 -0
- package/dist/utils/node_modules/svelte/src/version.js +8 -0
- package/dist/utils/node_modules/typescript/LICENSE.txt +55 -0
- package/dist/utils/node_modules/typescript/README.md +50 -0
- package/dist/utils/node_modules/typescript/SECURITY.md +41 -0
- package/dist/utils/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
- package/dist/utils/node_modules/typescript/bin/tsc +2 -0
- package/dist/utils/node_modules/typescript/bin/tsserver +2 -0
- package/dist/utils/node_modules/typescript/lib/_tsc.js +133818 -0
- package/dist/utils/node_modules/typescript/lib/_tsserver.js +659 -0
- package/dist/utils/node_modules/typescript/lib/_typingsInstaller.js +222 -0
- package/dist/utils/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2122 -0
- package/dist/utils/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2122 -0
- package/dist/utils/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2122 -0
- package/dist/utils/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2122 -0
- package/dist/utils/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2122 -0
- package/dist/utils/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2122 -0
- package/dist/utils/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2122 -0
- package/dist/utils/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2122 -0
- package/dist/utils/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2122 -0
- package/dist/utils/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2122 -0
- package/dist/utils/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2122 -0
- package/dist/utils/node_modules/typescript/lib/tsc.js +8 -0
- package/dist/utils/node_modules/typescript/lib/tsserver.js +8 -0
- package/dist/utils/node_modules/typescript/lib/tsserverlibrary.js +21 -0
- package/dist/utils/node_modules/typescript/lib/typesMap.json +497 -0
- package/dist/utils/node_modules/typescript/lib/typescript.js +200276 -0
- package/dist/utils/node_modules/typescript/lib/typingsInstaller.js +8 -0
- package/dist/utils/node_modules/typescript/lib/watchGuard.js +53 -0
- package/dist/utils/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +2122 -0
- package/dist/utils/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +2122 -0
- package/dist/utils/node_modules/typescript/package.json +120 -0
- package/dist/utils/package.json +27 -0
- package/dist/utils/transitions.js +31 -0
- package/package.json +8 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** @import { UpdateExpression } from 'estree' */
|
|
2
|
+
/** @import { Context } from '../types.js' */
|
|
3
|
+
import * as b from '#compiler/builders';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @param {UpdateExpression} node
|
|
7
|
+
* @param {Context} context
|
|
8
|
+
*/
|
|
9
|
+
export function UpdateExpression(node, context) {
|
|
10
|
+
const argument = node.argument;
|
|
11
|
+
|
|
12
|
+
if (
|
|
13
|
+
argument.type === 'Identifier' &&
|
|
14
|
+
context.state.scope.get(argument.name)?.kind === 'store_sub'
|
|
15
|
+
) {
|
|
16
|
+
return b.call(
|
|
17
|
+
node.prefix ? '$.update_store_pre' : '$.update_store',
|
|
18
|
+
b.assignment('??=', b.id('$$store_subs'), b.object([])),
|
|
19
|
+
b.literal(argument.name),
|
|
20
|
+
b.id(argument.name.slice(1)),
|
|
21
|
+
node.operator === '--' && b.literal(-1)
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return context.next();
|
|
26
|
+
}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/** @import { VariableDeclaration, VariableDeclarator, Expression, CallExpression, Pattern, Identifier } from 'estree' */
|
|
2
|
+
/** @import { Binding } from '#compiler' */
|
|
3
|
+
/** @import { Context } from '../types.js' */
|
|
4
|
+
/** @import { ComponentAnalysis } from '../../../types.js' */
|
|
5
|
+
/** @import { Scope } from '../../../scope.js' */
|
|
6
|
+
import { build_fallback, extract_paths } from '../../../../utils/ast.js';
|
|
7
|
+
import * as b from '#compiler/builders';
|
|
8
|
+
import { get_rune } from '../../../scope.js';
|
|
9
|
+
import { walk } from 'zimmerframe';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @param {VariableDeclaration} node
|
|
13
|
+
* @param {Context} context
|
|
14
|
+
*/
|
|
15
|
+
export function VariableDeclaration(node, context) {
|
|
16
|
+
/** @type {VariableDeclarator[]} */
|
|
17
|
+
const declarations = [];
|
|
18
|
+
|
|
19
|
+
if (context.state.analysis.runes) {
|
|
20
|
+
for (const declarator of node.declarations) {
|
|
21
|
+
const init = declarator.init;
|
|
22
|
+
const rune = get_rune(init, context.state.scope);
|
|
23
|
+
if (!rune || rune === '$effect.tracking' || rune === '$inspect' || rune === '$effect.root') {
|
|
24
|
+
declarations.push(/** @type {VariableDeclarator} */ (context.visit(declarator)));
|
|
25
|
+
continue;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (rune === '$props.id') {
|
|
29
|
+
// skip
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (rune === '$props') {
|
|
34
|
+
let has_rest = false;
|
|
35
|
+
// remove $bindable() from props declaration
|
|
36
|
+
let id = walk(declarator.id, null, {
|
|
37
|
+
RestElement(node, context) {
|
|
38
|
+
if (context.path.at(-1) === declarator.id) {
|
|
39
|
+
has_rest = true;
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
AssignmentPattern(node) {
|
|
43
|
+
if (
|
|
44
|
+
node.right.type === 'CallExpression' &&
|
|
45
|
+
get_rune(node.right, context.state.scope) === '$bindable'
|
|
46
|
+
) {
|
|
47
|
+
const right = node.right.arguments.length
|
|
48
|
+
? /** @type {Expression} */ (context.visit(node.right.arguments[0]))
|
|
49
|
+
: b.void0;
|
|
50
|
+
return b.assignment_pattern(node.left, right);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
// if `$$slots` is declared separately, deconflict
|
|
56
|
+
const slots_name = /** @type {ComponentAnalysis} */ (context.state.analysis).uses_slots
|
|
57
|
+
? b.id('$$slots_')
|
|
58
|
+
: b.id('$$slots');
|
|
59
|
+
|
|
60
|
+
if (id.type === 'ObjectPattern' && has_rest) {
|
|
61
|
+
// If a rest pattern is used within an object pattern, we need to ensure we don't expose $$slots or $$events
|
|
62
|
+
id.properties.splice(
|
|
63
|
+
id.properties.length - 1,
|
|
64
|
+
0,
|
|
65
|
+
// @ts-ignore
|
|
66
|
+
b.prop('init', b.id('$$slots'), slots_name),
|
|
67
|
+
b.prop('init', b.id('$$events'), b.id('$$events'))
|
|
68
|
+
);
|
|
69
|
+
} else if (id.type === 'Identifier') {
|
|
70
|
+
// If $props is referenced as an identifier, we need to ensure we don't expose $$slots or $$events as properties
|
|
71
|
+
// on the identifier reference
|
|
72
|
+
id = b.object_pattern([
|
|
73
|
+
b.prop('init', b.id('$$slots'), slots_name),
|
|
74
|
+
b.prop('init', b.id('$$events'), b.id('$$events')),
|
|
75
|
+
b.rest(b.id(id.name))
|
|
76
|
+
]);
|
|
77
|
+
}
|
|
78
|
+
declarations.push(
|
|
79
|
+
b.declarator(/** @type {Pattern} */ (context.visit(id)), b.id('$$props'))
|
|
80
|
+
);
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
const args = /** @type {CallExpression} */ (init).arguments;
|
|
85
|
+
const value = args.length > 0 ? /** @type {Expression} */ (context.visit(args[0])) : b.void0;
|
|
86
|
+
|
|
87
|
+
if (rune === '$derived.by') {
|
|
88
|
+
declarations.push(
|
|
89
|
+
b.declarator(/** @type {Pattern} */ (context.visit(declarator.id)), b.call(value))
|
|
90
|
+
);
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (declarator.id.type === 'Identifier') {
|
|
95
|
+
declarations.push(b.declarator(declarator.id, value));
|
|
96
|
+
continue;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if (rune === '$derived') {
|
|
100
|
+
declarations.push(
|
|
101
|
+
b.declarator(/** @type {Pattern} */ (context.visit(declarator.id)), value)
|
|
102
|
+
);
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
declarations.push(...create_state_declarators(declarator, context.state.scope, value));
|
|
107
|
+
}
|
|
108
|
+
} else {
|
|
109
|
+
for (const declarator of node.declarations) {
|
|
110
|
+
const bindings = /** @type {Binding[]} */ (context.state.scope.get_bindings(declarator));
|
|
111
|
+
const has_state = bindings.some((binding) => binding.kind === 'state');
|
|
112
|
+
const has_props = bindings.some((binding) => binding.kind === 'bindable_prop');
|
|
113
|
+
|
|
114
|
+
if (!has_state && !has_props) {
|
|
115
|
+
declarations.push(/** @type {VariableDeclarator} */ (context.visit(declarator)));
|
|
116
|
+
continue;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (has_props) {
|
|
120
|
+
if (declarator.id.type !== 'Identifier') {
|
|
121
|
+
// Turn export let into props. It's really really weird because export let { x: foo, z: [bar]} = ..
|
|
122
|
+
// means that foo and bar are the props (i.e. the leaves are the prop names), not x and z.
|
|
123
|
+
const tmp = b.id(context.state.scope.generate('tmp'));
|
|
124
|
+
const { inserts, paths } = extract_paths(declarator.id, tmp);
|
|
125
|
+
|
|
126
|
+
declarations.push(
|
|
127
|
+
b.declarator(
|
|
128
|
+
tmp,
|
|
129
|
+
/** @type {Expression} */ (context.visit(/** @type {Expression} */ (declarator.init)))
|
|
130
|
+
)
|
|
131
|
+
);
|
|
132
|
+
|
|
133
|
+
for (const { id, value } of inserts) {
|
|
134
|
+
id.name = context.state.scope.generate('$$array');
|
|
135
|
+
declarations.push(b.declarator(id, value));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
for (const path of paths) {
|
|
139
|
+
const value = path.expression;
|
|
140
|
+
const name = /** @type {Identifier} */ (path.node).name;
|
|
141
|
+
const binding = /** @type {Binding} */ (context.state.scope.get(name));
|
|
142
|
+
const prop = b.member(b.id('$$props'), b.literal(binding.prop_alias ?? name), true);
|
|
143
|
+
declarations.push(b.declarator(path.node, build_fallback(prop, value)));
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const binding = /** @type {Binding} */ (context.state.scope.get(declarator.id.name));
|
|
150
|
+
const prop = b.member(
|
|
151
|
+
b.id('$$props'),
|
|
152
|
+
b.literal(binding.prop_alias ?? declarator.id.name),
|
|
153
|
+
true
|
|
154
|
+
);
|
|
155
|
+
|
|
156
|
+
/** @type {Expression} */
|
|
157
|
+
let init = prop;
|
|
158
|
+
if (declarator.init) {
|
|
159
|
+
const default_value = /** @type {Expression} */ (context.visit(declarator.init));
|
|
160
|
+
init = build_fallback(prop, default_value);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
declarations.push(b.declarator(declarator.id, init));
|
|
164
|
+
|
|
165
|
+
continue;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
declarations.push(
|
|
169
|
+
...create_state_declarators(
|
|
170
|
+
declarator,
|
|
171
|
+
context.state.scope,
|
|
172
|
+
/** @type {Expression} */ (declarator.init && context.visit(declarator.init))
|
|
173
|
+
)
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (declarations.length === 0) {
|
|
179
|
+
return b.empty;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
return {
|
|
183
|
+
...node,
|
|
184
|
+
declarations
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @param {VariableDeclarator} declarator
|
|
190
|
+
* @param {Scope} scope
|
|
191
|
+
* @param {Expression} value
|
|
192
|
+
* @returns {VariableDeclarator[]}
|
|
193
|
+
*/
|
|
194
|
+
function create_state_declarators(declarator, scope, value) {
|
|
195
|
+
if (declarator.id.type === 'Identifier') {
|
|
196
|
+
return [b.declarator(declarator.id, value)];
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
const tmp = b.id(scope.generate('tmp'));
|
|
200
|
+
const { paths, inserts } = extract_paths(declarator.id, tmp);
|
|
201
|
+
return [
|
|
202
|
+
b.declarator(tmp, value), // TODO inject declarator for opts, so we can use it below
|
|
203
|
+
...inserts.map(({ id, value }) => {
|
|
204
|
+
id.name = scope.generate('$$array');
|
|
205
|
+
return b.declarator(id, value);
|
|
206
|
+
}),
|
|
207
|
+
...paths.map((path) => {
|
|
208
|
+
const value = path.expression;
|
|
209
|
+
return b.declarator(path.node, value);
|
|
210
|
+
})
|
|
211
|
+
];
|
|
212
|
+
}
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
/** @import { BlockStatement, Expression, Pattern, Property, SequenceExpression, Statement } from 'estree' */
|
|
2
|
+
/** @import { AST } from '#compiler' */
|
|
3
|
+
/** @import { ComponentContext } from '../../types.js' */
|
|
4
|
+
import {
|
|
5
|
+
empty_comment,
|
|
6
|
+
build_attribute_value,
|
|
7
|
+
create_async_block,
|
|
8
|
+
PromiseOptimiser
|
|
9
|
+
} from './utils.js';
|
|
10
|
+
import * as b from '#compiler/builders';
|
|
11
|
+
import { is_element_node } from '../../../../nodes.js';
|
|
12
|
+
import { dev } from '../../../../../state.js';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @param {AST.Component | AST.SvelteComponent | AST.SvelteSelf} node
|
|
16
|
+
* @param {Expression} expression
|
|
17
|
+
* @param {ComponentContext} context
|
|
18
|
+
*/
|
|
19
|
+
export function build_inline_component(node, expression, context) {
|
|
20
|
+
/** @type {Array<Property[] | Expression>} */
|
|
21
|
+
const props_and_spreads = [];
|
|
22
|
+
/** @type {Array<() => void>} */
|
|
23
|
+
const delayed_props = [];
|
|
24
|
+
|
|
25
|
+
/** @type {Property[]} */
|
|
26
|
+
const custom_css_props = [];
|
|
27
|
+
|
|
28
|
+
/** @type {Record<string, AST.LetDirective[]>} */
|
|
29
|
+
const lets = { default: [] };
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Children in the default slot are evaluated in the component scope,
|
|
33
|
+
* children in named slots are evaluated in the parent scope
|
|
34
|
+
*/
|
|
35
|
+
const child_state = {
|
|
36
|
+
...context.state,
|
|
37
|
+
scope: node.metadata.scopes.default
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @type {Record<string, AST.TemplateNode[]>} */
|
|
41
|
+
const children = {};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* If this component has a slot property, it is a named slot within another component. In this case
|
|
45
|
+
* the slot scope applies to the component itself, too, and not just its children.
|
|
46
|
+
*/
|
|
47
|
+
const slot_scope_applies_to_itself = node.attributes.some(
|
|
48
|
+
(node) => node.type === 'Attribute' && node.name === 'slot'
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Components may have a children prop and also have child nodes. In this case, we assume
|
|
53
|
+
* that the child component isn't using render tags yet and pass the slot as $$slots.default.
|
|
54
|
+
* We're not doing it for spread attributes, as this would result in too many false positives.
|
|
55
|
+
*/
|
|
56
|
+
let has_children_prop = false;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @param {Property} prop
|
|
60
|
+
* @param {boolean} [delay]
|
|
61
|
+
*/
|
|
62
|
+
function push_prop(prop, delay = false) {
|
|
63
|
+
const do_push = () => {
|
|
64
|
+
const current = props_and_spreads.at(-1);
|
|
65
|
+
const current_is_props = Array.isArray(current);
|
|
66
|
+
const props = current_is_props ? current : [];
|
|
67
|
+
props.push(prop);
|
|
68
|
+
if (!current_is_props) {
|
|
69
|
+
props_and_spreads.push(props);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
if (delay) {
|
|
74
|
+
delayed_props.push(do_push);
|
|
75
|
+
} else {
|
|
76
|
+
do_push();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const optimiser = new PromiseOptimiser();
|
|
81
|
+
|
|
82
|
+
for (const attribute of node.attributes) {
|
|
83
|
+
if (attribute.type === 'LetDirective') {
|
|
84
|
+
if (!slot_scope_applies_to_itself) {
|
|
85
|
+
lets.default.push(attribute);
|
|
86
|
+
}
|
|
87
|
+
} else if (attribute.type === 'SpreadAttribute') {
|
|
88
|
+
let expression = /** @type {Expression} */ (context.visit(attribute));
|
|
89
|
+
props_and_spreads.push(optimiser.transform(expression, attribute.metadata.expression));
|
|
90
|
+
} else if (attribute.type === 'Attribute') {
|
|
91
|
+
const value = build_attribute_value(
|
|
92
|
+
attribute.value,
|
|
93
|
+
context,
|
|
94
|
+
optimiser.transform,
|
|
95
|
+
false,
|
|
96
|
+
true
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
if (attribute.name.startsWith('--')) {
|
|
100
|
+
custom_css_props.push(b.init(attribute.name, value));
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (attribute.name === 'children') {
|
|
105
|
+
has_children_prop = true;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
push_prop(b.prop('init', b.key(attribute.name), value));
|
|
109
|
+
} else if (attribute.type === 'BindDirective' && attribute.name !== 'this') {
|
|
110
|
+
// Bindings are a bit special: we don't want to add them to (async) deriveds but we need to check if they have blockers
|
|
111
|
+
optimiser.check_blockers(attribute.metadata.expression);
|
|
112
|
+
|
|
113
|
+
if (attribute.expression.type === 'SequenceExpression') {
|
|
114
|
+
const [get, set] = /** @type {SequenceExpression} */ (context.visit(attribute.expression))
|
|
115
|
+
.expressions;
|
|
116
|
+
const get_id = b.id(context.state.scope.generate('bind_get'));
|
|
117
|
+
const set_id = b.id(context.state.scope.generate('bind_set'));
|
|
118
|
+
|
|
119
|
+
context.state.init.push(b.var(get_id, get));
|
|
120
|
+
context.state.init.push(b.var(set_id, set));
|
|
121
|
+
|
|
122
|
+
push_prop(b.get(attribute.name, [b.return(b.call(get_id))]));
|
|
123
|
+
push_prop(b.set(attribute.name, [b.stmt(b.call(set_id, b.id('$$value')))]));
|
|
124
|
+
} else {
|
|
125
|
+
// Delay prop pushes so bindings come at the end, to avoid spreads overwriting them
|
|
126
|
+
push_prop(
|
|
127
|
+
b.get(attribute.name, [
|
|
128
|
+
b.return(/** @type {Expression} */ (context.visit(attribute.expression)))
|
|
129
|
+
]),
|
|
130
|
+
true
|
|
131
|
+
);
|
|
132
|
+
|
|
133
|
+
push_prop(
|
|
134
|
+
b.set(attribute.name, [
|
|
135
|
+
b.stmt(
|
|
136
|
+
/** @type {Expression} */ (
|
|
137
|
+
context.visit(b.assignment('=', attribute.expression, b.id('$$value')))
|
|
138
|
+
)
|
|
139
|
+
),
|
|
140
|
+
b.stmt(b.assignment('=', b.id('$$settled'), b.false))
|
|
141
|
+
]),
|
|
142
|
+
true
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
} else if (attribute.type === 'AttachTag') {
|
|
146
|
+
// While we don't run attachments on the server, on the client they might generate a surrounding blocker function which generates
|
|
147
|
+
// extra comments, and to prevent hydration mismatches we therefore have to account for them here to generate similar comments on the server.
|
|
148
|
+
optimiser.check_blockers(attribute.metadata.expression);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
delayed_props.forEach((fn) => fn());
|
|
153
|
+
|
|
154
|
+
/** @type {Statement[]} */
|
|
155
|
+
const snippet_declarations = [];
|
|
156
|
+
|
|
157
|
+
/** @type {Property[]} */
|
|
158
|
+
const serialized_slots = [];
|
|
159
|
+
|
|
160
|
+
// Group children by slot
|
|
161
|
+
for (const child of node.fragment.nodes) {
|
|
162
|
+
if (child.type === 'SnippetBlock') {
|
|
163
|
+
// the SnippetBlock visitor adds a declaration to `init`, but if it's directly
|
|
164
|
+
// inside a component then we want to hoist them into a block so that they
|
|
165
|
+
// can be used as props without creating conflicts
|
|
166
|
+
context.visit(child, {
|
|
167
|
+
...context.state,
|
|
168
|
+
init: snippet_declarations
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
push_prop(b.prop('init', child.expression, child.expression));
|
|
172
|
+
|
|
173
|
+
// Interop: allows people to pass snippets when component still uses slots
|
|
174
|
+
serialized_slots.push(
|
|
175
|
+
b.init(child.expression.name === 'children' ? 'default' : child.expression.name, b.true)
|
|
176
|
+
);
|
|
177
|
+
|
|
178
|
+
continue;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
let slot_name = 'default';
|
|
182
|
+
if (is_element_node(child)) {
|
|
183
|
+
const slot = /** @type {AST.Attribute | undefined} */ (
|
|
184
|
+
child.attributes.find(
|
|
185
|
+
(attribute) => attribute.type === 'Attribute' && attribute.name === 'slot'
|
|
186
|
+
)
|
|
187
|
+
);
|
|
188
|
+
|
|
189
|
+
if (slot !== undefined) {
|
|
190
|
+
slot_name = /** @type {AST.Text[]} */ (slot.value)[0].data;
|
|
191
|
+
|
|
192
|
+
lets[slot_name] = child.attributes.filter((attribute) => attribute.type === 'LetDirective');
|
|
193
|
+
} else if (child.type === 'SvelteFragment') {
|
|
194
|
+
lets.default.push(
|
|
195
|
+
...child.attributes.filter((attribute) => attribute.type === 'LetDirective')
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
children[slot_name] = children[slot_name] || [];
|
|
201
|
+
children[slot_name].push(child);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
// Serialize each slot
|
|
205
|
+
for (const slot_name of Object.keys(children)) {
|
|
206
|
+
const block = /** @type {BlockStatement} */ (
|
|
207
|
+
context.visit(
|
|
208
|
+
{
|
|
209
|
+
...node.fragment,
|
|
210
|
+
// @ts-expect-error
|
|
211
|
+
nodes: children[slot_name]
|
|
212
|
+
},
|
|
213
|
+
slot_name === 'default'
|
|
214
|
+
? child_state
|
|
215
|
+
: {
|
|
216
|
+
...context.state,
|
|
217
|
+
scope: node.metadata.scopes[slot_name]
|
|
218
|
+
}
|
|
219
|
+
)
|
|
220
|
+
);
|
|
221
|
+
|
|
222
|
+
if (block.body.length === 0) continue;
|
|
223
|
+
|
|
224
|
+
/** @type {Pattern[]} */
|
|
225
|
+
const params = [b.id('$$renderer')];
|
|
226
|
+
|
|
227
|
+
if (lets[slot_name].length > 0) {
|
|
228
|
+
const pattern = b.object_pattern(
|
|
229
|
+
lets[slot_name].map((node) => {
|
|
230
|
+
if (node.expression === null) {
|
|
231
|
+
return b.init(node.name, b.id(node.name));
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
if (node.expression.type === 'ObjectExpression') {
|
|
235
|
+
// @ts-expect-error it gets parsed as an `ObjectExpression` but is really an `ObjectPattern`
|
|
236
|
+
return b.init(node.name, b.object_pattern(node.expression.properties));
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (node.expression.type === 'ArrayExpression') {
|
|
240
|
+
// @ts-expect-error it gets parsed as an `ArrayExpression` but is really an `ArrayPattern`
|
|
241
|
+
return b.init(node.name, b.array_pattern(node.expression.elements));
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
return b.init(node.name, node.expression);
|
|
245
|
+
})
|
|
246
|
+
);
|
|
247
|
+
|
|
248
|
+
params.push(pattern);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
const slot_fn = b.arrow(params, b.block(block.body));
|
|
252
|
+
|
|
253
|
+
if (slot_name === 'default' && !has_children_prop) {
|
|
254
|
+
if (
|
|
255
|
+
lets.default.length === 0 &&
|
|
256
|
+
children.default.every(
|
|
257
|
+
(node) =>
|
|
258
|
+
node.type !== 'SvelteFragment' ||
|
|
259
|
+
!node.attributes.some((attr) => attr.type === 'LetDirective')
|
|
260
|
+
)
|
|
261
|
+
) {
|
|
262
|
+
// create `children` prop...
|
|
263
|
+
push_prop(
|
|
264
|
+
b.prop(
|
|
265
|
+
'init',
|
|
266
|
+
b.id('children'),
|
|
267
|
+
dev ? b.call('$.prevent_snippet_stringification', slot_fn) : slot_fn
|
|
268
|
+
)
|
|
269
|
+
);
|
|
270
|
+
|
|
271
|
+
// and `$$slots.default: true` so that `<slot>` on the child works
|
|
272
|
+
serialized_slots.push(b.init(slot_name, b.true));
|
|
273
|
+
} else {
|
|
274
|
+
// create `$$slots.default`...
|
|
275
|
+
serialized_slots.push(b.init(slot_name, slot_fn));
|
|
276
|
+
|
|
277
|
+
// and a `children` prop that errors
|
|
278
|
+
push_prop(b.init('children', b.id('$.invalid_default_snippet')));
|
|
279
|
+
}
|
|
280
|
+
} else {
|
|
281
|
+
serialized_slots.push(b.init(slot_name, slot_fn));
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
if (serialized_slots.length > 0) {
|
|
286
|
+
push_prop(b.prop('init', b.id('$$slots'), b.object(serialized_slots)));
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
const props_expression =
|
|
290
|
+
props_and_spreads.length === 0 ||
|
|
291
|
+
(props_and_spreads.length === 1 && Array.isArray(props_and_spreads[0]))
|
|
292
|
+
? b.object(/** @type {Property[]} */ (props_and_spreads[0] || []))
|
|
293
|
+
: b.call(
|
|
294
|
+
'$.spread_props',
|
|
295
|
+
b.array(props_and_spreads.map((p) => (Array.isArray(p) ? b.object(p) : p)))
|
|
296
|
+
);
|
|
297
|
+
|
|
298
|
+
/** @type {Statement} */
|
|
299
|
+
let statement = b.stmt(
|
|
300
|
+
(node.type === 'SvelteComponent' ? b.maybe_call : b.call)(
|
|
301
|
+
expression,
|
|
302
|
+
b.id('$$renderer'),
|
|
303
|
+
props_expression
|
|
304
|
+
)
|
|
305
|
+
);
|
|
306
|
+
|
|
307
|
+
if (snippet_declarations.length > 0) {
|
|
308
|
+
statement = b.block([...snippet_declarations, statement]);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
const dynamic =
|
|
312
|
+
node.type === 'SvelteComponent' || (node.type === 'Component' && node.metadata.dynamic);
|
|
313
|
+
|
|
314
|
+
if (custom_css_props.length > 0) {
|
|
315
|
+
statement = b.stmt(
|
|
316
|
+
b.call(
|
|
317
|
+
'$.css_props',
|
|
318
|
+
b.id('$$renderer'),
|
|
319
|
+
b.literal(context.state.namespace === 'svg' ? false : true),
|
|
320
|
+
b.object(custom_css_props),
|
|
321
|
+
b.thunk(b.block([statement])),
|
|
322
|
+
dynamic && b.true
|
|
323
|
+
)
|
|
324
|
+
);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
if (node.type !== 'SvelteSelf') {
|
|
328
|
+
// Component name itself could be blocked on async values
|
|
329
|
+
optimiser.check_blockers(node.metadata.expression);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
const is_async = optimiser.is_async();
|
|
333
|
+
|
|
334
|
+
if (is_async) {
|
|
335
|
+
statement = create_async_block(
|
|
336
|
+
b.block([
|
|
337
|
+
optimiser.apply(),
|
|
338
|
+
dynamic && custom_css_props.length === 0
|
|
339
|
+
? b.stmt(b.call('$$renderer.push', empty_comment))
|
|
340
|
+
: b.empty,
|
|
341
|
+
statement
|
|
342
|
+
]),
|
|
343
|
+
optimiser.blockers(),
|
|
344
|
+
optimiser.has_await
|
|
345
|
+
);
|
|
346
|
+
} else if (dynamic && custom_css_props.length === 0) {
|
|
347
|
+
context.state.template.push(empty_comment);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
context.state.template.push(statement);
|
|
351
|
+
|
|
352
|
+
if (
|
|
353
|
+
!is_async &&
|
|
354
|
+
!context.state.skip_hydration_boundaries &&
|
|
355
|
+
custom_css_props.length === 0 &&
|
|
356
|
+
optimiser.expressions.length === 0
|
|
357
|
+
) {
|
|
358
|
+
context.state.template.push(empty_comment);
|
|
359
|
+
}
|
|
360
|
+
}
|