@rindo/core 1.8.12 → 2.5.2
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/LICENSE.md +27 -27
- package/bin/cli.ts +20 -0
- package/bin/rindo +51 -22
- package/cli/index.cjs +1263 -0
- package/cli/index.d.ts +15 -0
- package/cli/index.js +1237 -0
- package/cli/package.json +14 -0
- package/compiler/lib.d.ts +24 -0
- package/compiler/lib.dom.d.ts +20230 -0
- package/compiler/lib.dom.iterable.d.ts +351 -0
- package/compiler/lib.es2015.collection.d.ts +89 -0
- package/compiler/lib.es2015.core.d.ts +517 -0
- package/compiler/lib.es2015.d.ts +30 -0
- package/compiler/lib.es2015.generator.d.ts +79 -0
- package/compiler/lib.es2015.iterable.d.ts +505 -0
- package/compiler/lib.es2015.promise.d.ts +150 -0
- package/compiler/lib.es2015.proxy.d.ts +41 -0
- package/compiler/lib.es2015.reflect.d.ts +123 -0
- package/compiler/lib.es2015.symbol.d.ts +48 -0
- package/compiler/lib.es2015.symbol.wellknown.d.ts +324 -0
- package/compiler/lib.es2016.array.include.d.ts +118 -0
- package/compiler/lib.es2016.d.ts +22 -0
- package/compiler/lib.es2016.full.d.ts +25 -0
- package/compiler/lib.es2017.d.ts +26 -0
- package/compiler/lib.es2017.full.d.ts +25 -0
- package/compiler/lib.es2017.intl.d.ts +32 -0
- package/compiler/lib.es2017.object.d.ts +51 -0
- package/compiler/lib.es2017.sharedmemory.d.ts +137 -0
- package/compiler/lib.es2017.string.d.ts +47 -0
- package/compiler/lib.es2017.typedarrays.d.ts +55 -0
- package/compiler/lib.es2018.asyncgenerator.d.ts +79 -0
- package/compiler/lib.es2018.asynciterable.d.ts +45 -0
- package/compiler/lib.es2018.d.ts +26 -0
- package/compiler/lib.es2018.full.d.ts +25 -0
- package/compiler/lib.es2018.intl.d.ts +61 -0
- package/compiler/lib.es2018.promise.d.ts +32 -0
- package/compiler/lib.es2018.regexp.d.ts +39 -0
- package/compiler/lib.es2019.array.d.ts +85 -0
- package/compiler/lib.es2019.d.ts +25 -0
- package/compiler/lib.es2019.full.d.ts +25 -0
- package/compiler/lib.es2019.object.d.ts +35 -0
- package/compiler/lib.es2019.string.d.ts +33 -0
- package/compiler/lib.es2019.symbol.d.ts +26 -0
- package/compiler/lib.es2020.bigint.d.ts +728 -0
- package/compiler/lib.es2020.d.ts +27 -0
- package/compiler/lib.es2020.full.d.ts +25 -0
- package/compiler/lib.es2020.intl.d.ts +310 -0
- package/compiler/lib.es2020.promise.d.ts +50 -0
- package/compiler/lib.es2020.sharedmemory.d.ts +99 -0
- package/compiler/lib.es2020.string.d.ts +30 -0
- package/compiler/lib.es2020.symbol.wellknown.d.ts +39 -0
- package/compiler/lib.es5.d.ts +4435 -0
- package/compiler/lib.es6.d.ts +25 -0
- package/compiler/lib.esnext.d.ts +25 -0
- package/compiler/lib.esnext.full.d.ts +25 -0
- package/compiler/lib.esnext.intl.d.ts +32 -0
- package/compiler/lib.esnext.promise.d.ts +43 -0
- package/compiler/lib.esnext.string.d.ts +35 -0
- package/compiler/lib.esnext.weakref.d.ts +75 -0
- package/compiler/lib.scripthost.d.ts +327 -0
- package/compiler/lib.webworker.d.ts +6042 -0
- package/compiler/lib.webworker.importscripts.d.ts +26 -0
- package/compiler/lib.webworker.iterable.d.ts +166 -0
- package/compiler/package.json +8 -6
- package/compiler/rindo.d.ts +95 -0
- package/compiler/rindo.js +65051 -6657
- package/compiler/rindo.min.js +4 -0
- package/dependencies.json +103 -0
- package/dev-server/client/app-error.d.ts +18 -0
- package/dev-server/client/events.d.ts +6 -0
- package/dev-server/client/hmr-components.d.ts +1 -0
- package/dev-server/client/hmr-external-styles.d.ts +1 -0
- package/dev-server/client/hmr-images.d.ts +1 -0
- package/dev-server/client/hmr-inline-styles.d.ts +1 -0
- package/dev-server/client/hmr-util.d.ts +9 -0
- package/dev-server/client/hmr-window.d.ts +10 -0
- package/dev-server/client/index.d.ts +6 -0
- package/dev-server/client/index.js +808 -0
- package/dev-server/client/logger.d.ts +5 -0
- package/dev-server/client/package.json +8 -0
- package/dev-server/client/progress.d.ts +3 -0
- package/dev-server/client/status.d.ts +4 -0
- package/dev-server/connector.html +6 -0
- package/dev-server/index.d.ts +3 -0
- package/dev-server/index.js +264 -0
- package/dev-server/open-in-editor-api.js +1 -0
- package/dev-server/package.json +8 -0
- package/dev-server/server-process.js +1738 -0
- package/dev-server/server-worker-thread.js +39 -0
- package/{dist/dev-server → dev-server}/templates/directory-index.html +132 -132
- package/{dist/dev-server → dev-server}/templates/initial-load.html +160 -160
- package/dev-server/ws.js +1 -0
- package/internal/app-data/index.cjs +90 -0
- package/internal/app-data/index.d.ts +4 -0
- package/internal/{client/build-conditionals.mjs → app-data/index.js} +25 -21
- package/internal/app-data/package.json +15 -0
- package/internal/client/css-shim.js +4 -0
- package/internal/client/{dom.rindo-client.mjs → dom.js} +73 -137
- package/{dist/client/index.mjs → internal/client/index.js} +863 -789
- package/internal/client/package.json +8 -0
- package/internal/client/patch-browser.js +120 -0
- package/internal/client/patch-esm.js +23 -0
- package/internal/client/polyfills/core-js.js +11 -10
- package/internal/client/polyfills/css-shim.js +1 -656
- package/internal/client/polyfills/dom.js +79 -146
- package/internal/client/polyfills/es5-html-element.js +1 -18
- package/internal/client/polyfills/index.js +34 -35
- package/internal/client/{shadow-css.rindo-client.mjs → shadow-css.js} +20 -17
- package/internal/hydrate/index.js +1097 -0
- package/internal/hydrate/package.json +7 -0
- package/internal/hydrate/runner.d.ts +217 -0
- package/internal/hydrate/runner.js +777 -0
- package/internal/hydrate/shadow-css.js +146 -0
- package/internal/index.d.ts +4 -18
- package/internal/index.js +1 -1
- package/internal/package.json +9 -6
- package/internal/rindo-core/index.cjs +1 -0
- package/internal/rindo-core/index.d.ts +51 -0
- package/internal/rindo-core/index.js +15 -0
- package/internal/rindo-ext-modules.d.ts +41 -0
- package/internal/rindo-private.d.ts +2128 -0
- package/internal/rindo-public-compiler.d.ts +2170 -0
- package/{dist/declarations/docs.d.ts → internal/rindo-public-docs.d.ts} +13 -1
- package/internal/rindo-public-runtime.d.ts +1555 -0
- package/internal/testing/index.js +1055 -0
- package/internal/testing/package.json +7 -0
- package/internal/testing/shadow-css.js +146 -0
- package/mock-doc/index.cjs +4610 -0
- package/mock-doc/index.d.ts +916 -0
- package/mock-doc/index.js +4574 -2
- package/mock-doc/package.json +15 -10
- package/package.json +132 -186
- package/readme.md +21 -174
- package/screenshot/compare/build/app.css +1 -1
- package/screenshot/compare/build/app.esm.js +1 -1
- package/screenshot/compare/build/app.js +33 -818
- package/screenshot/compare/build/{p-113f7459.js → p-081b0641.js} +1 -1
- package/screenshot/compare/build/p-227a1e18.entry.js +1 -0
- package/screenshot/compare/build/p-2c298727.entry.js +1 -0
- package/screenshot/compare/build/p-5479268c.entry.js +1 -0
- package/screenshot/compare/build/p-573ec8a4.entry.js +1 -0
- package/screenshot/compare/build/p-6ba08604.entry.js +1 -0
- package/screenshot/compare/build/p-6bc63295.entry.js +1 -0
- package/screenshot/compare/build/p-7a3759fd.entry.js +1 -0
- package/screenshot/compare/build/{p-ejpsp3kx.js → p-7b4e3ba7.js} +1 -1
- package/screenshot/compare/build/p-988eb362.css +1 -0
- package/screenshot/compare/build/p-9b6a9315.js +1 -0
- package/screenshot/compare/build/p-b4cc611c.entry.js +1 -0
- package/screenshot/compare/build/p-d1bf53f5.entry.js +1 -0
- package/screenshot/compare/build/{p-efb0eac6.js → p-e2efe0df.js} +1 -1
- package/screenshot/compare/build/p-e8ca6d97.entry.js +1 -0
- package/screenshot/compare/build/p-ec2f13e0.entry.js +1 -0
- package/screenshot/compare/build/p-f0b99977.entry.js +1 -0
- package/screenshot/compare/build/p-f4745c2f.entry.js +1 -0
- package/screenshot/compare/build/p-fbbae598.js +1 -0
- package/screenshot/compare/host.config.json +14 -14
- package/screenshot/compare/index.html +1 -1
- package/{dist/screenshot → screenshot}/connector-base.d.ts +1 -1
- package/{dist/screenshot → screenshot}/connector-local.d.ts +1 -1
- package/screenshot/connector.js +2 -3
- package/{dist/screenshot → screenshot}/index.d.ts +1 -1
- package/screenshot/index.js +659 -2
- package/screenshot/local-connector.js +2 -3
- package/screenshot/package.json +15 -13
- package/screenshot/pixel-match.js +62 -49
- package/screenshot/screenshot-compare.d.ts +3 -0
- package/{dist/screenshot → screenshot}/screenshot-fs.d.ts +1 -1
- package/sys/deno/index.js +1785 -0
- package/sys/deno/node-compat.js +2654 -0
- package/sys/deno/worker.js +44 -0
- package/sys/node/autoprefixer.js +8 -0
- package/sys/node/glob.js +1 -0
- package/sys/node/graceful-fs.js +1 -0
- package/sys/node/index.d.ts +18 -0
- package/sys/node/index.js +1386 -2
- package/sys/node/node-fetch.js +1 -0
- package/sys/node/package.json +8 -5
- package/sys/node/prompts.js +1 -0
- package/sys/node/worker.js +52 -0
- package/{dist/testing → testing}/index.d.ts +5 -6
- package/testing/index.js +4017 -2
- package/testing/jest/jest-config.d.ts +5 -0
- package/{dist/testing → testing}/jest/jest-environment.d.ts +4 -2
- package/{dist/testing → testing}/jest/jest-preprocessor.d.ts +1 -0
- package/{dist/testing → testing}/jest/jest-runner.d.ts +1 -1
- package/{dist/testing → testing}/jest/jest-screenshot.d.ts +1 -1
- package/{dist/testing → testing}/jest/jest-serializer.d.ts +1 -1
- package/testing/jest-environment.js +3 -3
- package/testing/jest-preprocessor.js +3 -3
- package/testing/jest-preset.js +32 -40
- package/testing/jest-runner.js +3 -3
- package/testing/jest-setuptestframework.js +3 -3
- package/{dist/testing → testing}/matchers/events.d.ts +9 -1
- package/{dist/testing → testing}/matchers/index.d.ts +3 -1
- package/{dist/testing → testing}/matchers/screenshot.d.ts +1 -1
- package/testing/mock-fetch.d.ts +11 -0
- package/testing/mocks.d.ts +14 -0
- package/testing/package.json +8 -6
- package/testing/puppeteer/index.d.ts +2 -0
- package/{dist/testing → testing}/puppeteer/puppeteer-browser.d.ts +3 -3
- package/{dist/testing → testing}/puppeteer/puppeteer-declarations.d.ts +18 -18
- package/{dist/testing → testing}/puppeteer/puppeteer-element.d.ts +7 -5
- package/testing/puppeteer/puppeteer-emulate.d.ts +2 -0
- package/{dist/testing → testing}/puppeteer/puppeteer-events.d.ts +9 -9
- package/testing/puppeteer/puppeteer-page.d.ts +2 -0
- package/testing/puppeteer/puppeteer-screenshot.d.ts +4 -0
- package/testing/reset-build-conditionals.d.ts +2 -0
- package/testing/spec-page.d.ts +2 -0
- package/testing/test-transpile.d.ts +2 -0
- package/{dist/testing → testing}/testing-logger.d.ts +10 -8
- package/testing/testing-sys.d.ts +1 -0
- package/{dist/testing → testing}/testing-utils.d.ts +3 -2
- package/testing/testing.d.ts +2 -0
- package/build-conditionals/index.d.ts +0 -2
- package/build-conditionals/index.mjs +0 -66
- package/build-conditionals/package.json +0 -6
- package/compiler/index.js +0 -2
- package/dist/cli/index.js +0 -6068
- package/dist/client/css-shim-14a9812e.js +0 -656
- package/dist/client/css-shim-69821662.js +0 -658
- package/dist/client/declarations/rindo.core.d.ts +0 -1347
- package/dist/client/dom-68c8fe31.js +0 -139
- package/dist/client/dom-af01458a.js +0 -137
- package/dist/client/index.js +0 -2937
- package/dist/client/polyfills/core-js.js +0 -10
- package/dist/client/polyfills/css-shim.js +0 -656
- package/dist/client/polyfills/dom.js +0 -146
- package/dist/client/polyfills/es5-html-element.js +0 -18
- package/dist/client/polyfills/index.js +0 -35
- package/dist/client/polyfills/promise.js +0 -9
- package/dist/client/polyfills/system.js +0 -6
- package/dist/client/shadow-css-6ef31c68.js +0 -386
- package/dist/client/shadow-css-8fd1a9e4.js +0 -388
- package/dist/compiler/app-core/app-es5-disabled.d.ts +0 -2
- package/dist/compiler/app-core/app-polyfills.d.ts +0 -3
- package/dist/compiler/app-core/build-conditionals.d.ts +0 -6
- package/dist/compiler/app-core/bundle-app-core.d.ts +0 -6
- package/dist/compiler/app-core/component-styles.d.ts +0 -4
- package/dist/compiler/app-core/format-component-runtime-meta.d.ts +0 -4
- package/dist/compiler/app-core/optimize-module.d.ts +0 -7
- package/dist/compiler/browser/build-conditionals-client.d.ts +0 -3
- package/dist/compiler/browser/compile-options.d.ts +0 -12
- package/dist/compiler/browser/compile.d.ts +0 -2
- package/dist/compiler/browser/create-compiler.d.ts +0 -14
- package/dist/compiler/browser/index.d.ts +0 -11
- package/dist/compiler/build/build-ctx.d.ts +0 -74
- package/dist/compiler/build/build-finish.d.ts +0 -3
- package/dist/compiler/build/build-hmr.d.ts +0 -2
- package/dist/compiler/build/build-results.d.ts +0 -2
- package/dist/compiler/build/build-stats.d.ts +0 -3
- package/dist/compiler/build/build.d.ts +0 -2
- package/dist/compiler/build/cache-stats.d.ts +0 -4
- package/dist/compiler/build/compiler-build-id.d.ts +0 -6
- package/dist/compiler/build/compiler-ctx.d.ts +0 -44
- package/dist/compiler/build/init-index-html.d.ts +0 -2
- package/dist/compiler/build/validate-files.d.ts +0 -2
- package/dist/compiler/build/write-build.d.ts +0 -2
- package/dist/compiler/cache.d.ts +0 -22
- package/dist/compiler/compiler.d.ts +0 -27
- package/dist/compiler/component-hydrate/bundle-hydrate-factory.d.ts +0 -3
- package/dist/compiler/component-hydrate/generate-hydrate-app.d.ts +0 -2
- package/dist/compiler/component-hydrate/hydrate-factory-closure.d.ts +0 -2
- package/dist/compiler/component-hydrate/update-to-hydrate-components.d.ts +0 -2
- package/dist/compiler/component-hydrate/write-hydrate-outputs.d.ts +0 -3
- package/dist/compiler/component-lazy/generate-cjs.d.ts +0 -3
- package/dist/compiler/component-lazy/generate-esm-browser.d.ts +0 -3
- package/dist/compiler/component-lazy/generate-esm.d.ts +0 -3
- package/dist/compiler/component-lazy/generate-lazy-app.d.ts +0 -3
- package/dist/compiler/component-lazy/generate-lazy-module.d.ts +0 -4
- package/dist/compiler/component-lazy/generate-system.d.ts +0 -3
- package/dist/compiler/component-lazy/update-to-lazy-component.d.ts +0 -2
- package/dist/compiler/component-lazy/write-lazy-entry-module.d.ts +0 -2
- package/dist/compiler/component-native/update-to-native-component.d.ts +0 -2
- package/dist/compiler/config/config-reload.d.ts +0 -3
- package/dist/compiler/config/config-utils.d.ts +0 -4
- package/dist/compiler/config/validate-config.d.ts +0 -4
- package/dist/compiler/config/validate-copy.d.ts +0 -2
- package/dist/compiler/config/validate-dev-server.d.ts +0 -2
- package/dist/compiler/config/validate-docs.d.ts +0 -2
- package/dist/compiler/config/validate-namespace.d.ts +0 -3
- package/dist/compiler/config/validate-output-stats.d.ts +0 -2
- package/dist/compiler/config/validate-outputs-angular.d.ts +0 -2
- package/dist/compiler/config/validate-outputs-custom.d.ts +0 -2
- package/dist/compiler/config/validate-outputs-dist-module.d.ts +0 -2
- package/dist/compiler/config/validate-outputs-dist.d.ts +0 -2
- package/dist/compiler/config/validate-outputs-hydrate-script.d.ts +0 -2
- package/dist/compiler/config/validate-outputs-www.d.ts +0 -2
- package/dist/compiler/config/validate-outputs.d.ts +0 -2
- package/dist/compiler/config/validate-paths.d.ts +0 -2
- package/dist/compiler/config/validate-plugins.d.ts +0 -2
- package/dist/compiler/config/validate-prerender.d.ts +0 -2
- package/dist/compiler/config/validate-rollup-config.d.ts +0 -2
- package/dist/compiler/config/validate-service-worker.d.ts +0 -2
- package/dist/compiler/config/validate-testing.d.ts +0 -2
- package/dist/compiler/config/validate-workers.d.ts +0 -2
- package/dist/compiler/copy/assets-copy-tasks.d.ts +0 -3
- package/dist/compiler/copy/hashed-copy.d.ts +0 -2
- package/dist/compiler/copy/local-copy-tasks.d.ts +0 -3
- package/dist/compiler/docs/constants.d.ts +0 -2
- package/dist/compiler/docs/custom/index.d.ts +0 -2
- package/dist/compiler/docs/docs.d.ts +0 -2
- package/dist/compiler/docs/generate-doc-data.d.ts +0 -3
- package/dist/compiler/docs/json/index.d.ts +0 -3
- package/dist/compiler/docs/readme/docs-util.d.ts +0 -13
- package/dist/compiler/docs/readme/index.d.ts +0 -3
- package/dist/compiler/docs/readme/markdown-css-props.d.ts +0 -2
- package/dist/compiler/docs/readme/markdown-dependencies.d.ts +0 -2
- package/dist/compiler/docs/readme/markdown-events.d.ts +0 -2
- package/dist/compiler/docs/readme/markdown-methods.d.ts +0 -2
- package/dist/compiler/docs/readme/markdown-props.d.ts +0 -2
- package/dist/compiler/docs/readme/markdown-slots.d.ts +0 -2
- package/dist/compiler/docs/readme/markdown-usage.d.ts +0 -6
- package/dist/compiler/docs/readme/output-docs.d.ts +0 -3
- package/dist/compiler/docs/style-docs.d.ts +0 -2
- package/dist/compiler/docs/vscode/index.d.ts +0 -2
- package/dist/compiler/entries/component-bundles.d.ts +0 -3
- package/dist/compiler/entries/component-graph.d.ts +0 -2
- package/dist/compiler/entries/default-bundles.d.ts +0 -3
- package/dist/compiler/entries/entry-modules.d.ts +0 -6
- package/dist/compiler/entries/resolve-component-dependencies.d.ts +0 -2
- package/dist/compiler/events.d.ts +0 -15
- package/dist/compiler/fs-watch/fs-watch-init.d.ts +0 -2
- package/dist/compiler/fs-watch/fs-watch-log.d.ts +0 -2
- package/dist/compiler/fs-watch/fs-watch-rebuild.d.ts +0 -7
- package/dist/compiler/html/inject-module-preloads.d.ts +0 -3
- package/dist/compiler/html/inject-sw-script.d.ts +0 -4
- package/dist/compiler/html/inline-esm-import.d.ts +0 -2
- package/dist/compiler/html/inline-style-sheets.d.ts +0 -2
- package/dist/compiler/html/update-global-styles-link.d.ts +0 -2
- package/dist/compiler/html/used-components.d.ts +0 -2
- package/dist/compiler/html/utils.d.ts +0 -2
- package/dist/compiler/html/validate-manifest-json.d.ts +0 -2
- package/dist/compiler/index.d.ts +0 -10
- package/dist/compiler/index.js +0 -18008
- package/dist/compiler/output-targets/empty-dir.d.ts +0 -6
- package/dist/compiler/output-targets/index.d.ts +0 -2
- package/dist/compiler/output-targets/output-angular.d.ts +0 -4
- package/dist/compiler/output-targets/output-app.d.ts +0 -4
- package/dist/compiler/output-targets/output-collection.d.ts +0 -3
- package/dist/compiler/output-targets/output-copy.d.ts +0 -2
- package/dist/compiler/output-targets/output-custom.d.ts +0 -2
- package/dist/compiler/output-targets/output-docs.d.ts +0 -2
- package/dist/compiler/output-targets/output-hydrate.d.ts +0 -2
- package/dist/compiler/output-targets/output-lazy-loader.d.ts +0 -2
- package/dist/compiler/output-targets/output-module.d.ts +0 -4
- package/dist/compiler/output-targets/output-prerender.d.ts +0 -2
- package/dist/compiler/output-targets/output-service-workers.d.ts +0 -2
- package/dist/compiler/output-targets/output-types.d.ts +0 -2
- package/dist/compiler/output-targets/output-utils.d.ts +0 -54
- package/dist/compiler/output-targets/output-www.d.ts +0 -2
- package/dist/compiler/plugin/plugin.d.ts +0 -6
- package/dist/compiler/prerender/crawl-urls.d.ts +0 -3
- package/dist/compiler/prerender/host-config.d.ts +0 -12
- package/dist/compiler/prerender/prerender-config.d.ts +0 -2
- package/dist/compiler/prerender/prerender-main.d.ts +0 -2
- package/dist/compiler/prerender/prerender-queue.d.ts +0 -3
- package/dist/compiler/prerender/prerender-template-html.d.ts +0 -2
- package/dist/compiler/prerender/prerendered-write-path.d.ts +0 -2
- package/dist/compiler/prerender/robots-txt.d.ts +0 -2
- package/dist/compiler/prerender/sitemap-xml.d.ts +0 -3
- package/dist/compiler/rollup-plugins/component-entry.d.ts +0 -3
- package/dist/compiler/rollup-plugins/css-transformer.d.ts +0 -3
- package/dist/compiler/rollup-plugins/global-scripts.d.ts +0 -4
- package/dist/compiler/rollup-plugins/image-plugin.d.ts +0 -3
- package/dist/compiler/rollup-plugins/in-memory-fs-read.d.ts +0 -3
- package/dist/compiler/rollup-plugins/loader.d.ts +0 -4
- package/dist/compiler/rollup-plugins/plugin-helper.d.ts +0 -5
- package/dist/compiler/rollup-plugins/rindo-build-conditionals.d.ts +0 -7
- package/dist/compiler/rollup-plugins/rindo-client.d.ts +0 -3
- package/dist/compiler/rollup-plugins/rindo-external-runtime.d.ts +0 -2
- package/dist/compiler/rollup-plugins/rindo-hydrate.d.ts +0 -3
- package/dist/compiler/rollup-plugins/rindo-public-plugin.d.ts +0 -2
- package/dist/compiler/service-worker/generate-sw.d.ts +0 -7
- package/dist/compiler/service-worker/service-worker-util.d.ts +0 -2
- package/dist/compiler/style/cached-styles.d.ts +0 -5
- package/dist/compiler/style/component-styles.d.ts +0 -2
- package/dist/compiler/style/css-imports.d.ts +0 -9
- package/dist/compiler/style/css-to-esm.d.ts +0 -5
- package/dist/compiler/style/generate-styles.d.ts +0 -2
- package/dist/compiler/style/global-styles.d.ts +0 -3
- package/dist/compiler/style/normalize-styles.d.ts +0 -2
- package/dist/compiler/style/optimize-css.d.ts +0 -2
- package/dist/compiler/style/scope-css.d.ts +0 -3
- package/dist/compiler/style/style-utils.d.ts +0 -10
- package/dist/compiler/transformers/add-component-meta-proxy.d.ts +0 -3
- package/dist/compiler/transformers/add-component-meta-static.d.ts +0 -4
- package/dist/compiler/transformers/add-imports.d.ts +0 -3
- package/dist/compiler/transformers/collections/add-external-import.d.ts +0 -2
- package/dist/compiler/transformers/collections/parse-collection-components.d.ts +0 -2
- package/dist/compiler/transformers/collections/parse-collection-deprecated.d.ts +0 -2
- package/dist/compiler/transformers/collections/parse-collection-manifest.d.ts +0 -7
- package/dist/compiler/transformers/collections/parse-collection-module.d.ts +0 -2
- package/dist/compiler/transformers/component-build-conditionals.d.ts +0 -2
- package/dist/compiler/transformers/component-hydrate/hydrate-component.d.ts +0 -3
- package/dist/compiler/transformers/component-hydrate/hydrate-runtime-cmp-meta.d.ts +0 -3
- package/dist/compiler/transformers/component-hydrate/tranform-to-hydrate-component.d.ts +0 -2
- package/dist/compiler/transformers/component-lazy/lazy-component.d.ts +0 -3
- package/dist/compiler/transformers/component-lazy/lazy-constructor.d.ts +0 -3
- package/dist/compiler/transformers/component-lazy/lazy-element-getter.d.ts +0 -3
- package/dist/compiler/transformers/component-lazy/transform-lazy-component.d.ts +0 -4
- package/dist/compiler/transformers/component-native/native-component.d.ts +0 -3
- package/dist/compiler/transformers/component-native/native-connected-callback.d.ts +0 -3
- package/dist/compiler/transformers/component-native/native-constructor.d.ts +0 -3
- package/dist/compiler/transformers/component-native/native-element-getter.d.ts +0 -3
- package/dist/compiler/transformers/component-native/native-static-style.d.ts +0 -3
- package/dist/compiler/transformers/component-native/tranform-to-native-component.d.ts +0 -4
- package/dist/compiler/transformers/core-runtime-apis.d.ts +0 -30
- package/dist/compiler/transformers/create-event.d.ts +0 -3
- package/dist/compiler/transformers/decorators-to-static/component-decorator.d.ts +0 -3
- package/dist/compiler/transformers/decorators-to-static/convert-decorators.d.ts +0 -3
- package/dist/compiler/transformers/decorators-to-static/decorator-utils.d.ts +0 -10
- package/dist/compiler/transformers/decorators-to-static/element-decorator.d.ts +0 -3
- package/dist/compiler/transformers/decorators-to-static/event-decorator.d.ts +0 -4
- package/dist/compiler/transformers/decorators-to-static/listen-decorator.d.ts +0 -6
- package/dist/compiler/transformers/decorators-to-static/method-decorator.d.ts +0 -3
- package/dist/compiler/transformers/decorators-to-static/prop-decorator.d.ts +0 -4
- package/dist/compiler/transformers/decorators-to-static/state-decorator.d.ts +0 -3
- package/dist/compiler/transformers/decorators-to-static/style-to-static.d.ts +0 -3
- package/dist/compiler/transformers/decorators-to-static/watch-decorator.d.ts +0 -3
- package/dist/compiler/transformers/define-custom-element.d.ts +0 -3
- package/dist/compiler/transformers/host-data-transform.d.ts +0 -3
- package/dist/compiler/transformers/legacy-props.d.ts +0 -3
- package/dist/compiler/transformers/remove-static-meta-properties.d.ts +0 -2
- package/dist/compiler/transformers/reserved-public-members.d.ts +0 -3
- package/dist/compiler/transformers/rindo-import-path.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/call-expression.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/class-methods.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/component.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/element-ref.d.ts +0 -2
- package/dist/compiler/transformers/static-to-meta/encapsulation.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/events.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/import.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/listeners.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/methods.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/props.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/states.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/string-literal.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/styles.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/vdom.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/visitor.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/watchers.d.ts +0 -3
- package/dist/compiler/transformers/style-imports.d.ts +0 -3
- package/dist/compiler/transformers/transform-utils.d.ts +0 -31
- package/dist/compiler/transformers/update-component-class.d.ts +0 -3
- package/dist/compiler/transformers/update-rindo-core-import.d.ts +0 -3
- package/dist/compiler/transformers/watcher-meta-transform.d.ts +0 -3
- package/dist/compiler/transpile/compiler-options.d.ts +0 -4
- package/dist/compiler/transpile/transpile-app.d.ts +0 -2
- package/dist/compiler/transpile/transpile-module.d.ts +0 -5
- package/dist/compiler/transpile/transpile-service.d.ts +0 -3
- package/dist/compiler/transpile/transpile-to-es5-main.d.ts +0 -2
- package/dist/compiler/transpile/validate-types-main.d.ts +0 -2
- package/dist/compiler/types/generate-app-types.d.ts +0 -2
- package/dist/compiler/types/generate-component-types.d.ts +0 -8
- package/dist/compiler/types/generate-event-types.d.ts +0 -2
- package/dist/compiler/types/generate-method-types.d.ts +0 -2
- package/dist/compiler/types/generate-prop-types.d.ts +0 -2
- package/dist/compiler/types/generate-types.d.ts +0 -2
- package/dist/compiler/types/rindo-types.d.ts +0 -3
- package/dist/compiler/types/types-utils.d.ts +0 -4
- package/dist/compiler/types/update-import-refs.d.ts +0 -11
- package/dist/compiler/types/validate-package-json.d.ts +0 -9
- package/dist/declarations/assets.d.ts +0 -17
- package/dist/declarations/browser-compile.d.ts +0 -47
- package/dist/declarations/build-conditionals.d.ts +0 -91
- package/dist/declarations/build-events.d.ts +0 -19
- package/dist/declarations/build.d.ts +0 -247
- package/dist/declarations/cache.d.ts +0 -11
- package/dist/declarations/collection-manifest.d.ts +0 -106
- package/dist/declarations/collection.d.ts +0 -139
- package/dist/declarations/compiler.d.ts +0 -53
- package/dist/declarations/component-compiler-meta.d.ts +0 -198
- package/dist/declarations/component-constructor.d.ts +0 -61
- package/dist/declarations/component-interfaces.d.ts +0 -123
- package/dist/declarations/config.d.ts +0 -409
- package/dist/declarations/css-var-shim.d.ts +0 -9
- package/dist/declarations/decorators.d.ts +0 -150
- package/dist/declarations/dev-server.d.ts +0 -135
- package/dist/declarations/diagnostics.d.ts +0 -21
- package/dist/declarations/entry.d.ts +0 -28
- package/dist/declarations/events.d.ts +0 -13
- package/dist/declarations/file-system.d.ts +0 -91
- package/dist/declarations/fs-watch.d.ts +0 -15
- package/dist/declarations/host-element.d.ts +0 -53
- package/dist/declarations/hydrate.d.ts +0 -99
- package/dist/declarations/in-memory-fs.d.ts +0 -59
- package/dist/declarations/index.d.ts +0 -45
- package/dist/declarations/jsdoc.d.ts +0 -16
- package/dist/declarations/jsx.d.ts +0 -1050
- package/dist/declarations/logger.d.ts +0 -25
- package/dist/declarations/minify-js.d.ts +0 -11
- package/dist/declarations/module.d.ts +0 -35
- package/dist/declarations/optimize-css.d.ts +0 -12
- package/dist/declarations/output-targets.d.ts +0 -189
- package/dist/declarations/plugin.d.ts +0 -23
- package/dist/declarations/prerender.d.ts +0 -79
- package/dist/declarations/render.d.ts +0 -62
- package/dist/declarations/runtime.d.ts +0 -92
- package/dist/declarations/screenshots.d.ts +0 -192
- package/dist/declarations/server.d.ts +0 -19
- package/dist/declarations/style.d.ts +0 -35
- package/dist/declarations/system.d.ts +0 -174
- package/dist/declarations/testing.d.ts +0 -523
- package/dist/declarations/transpile.d.ts +0 -24
- package/dist/declarations/types.d.ts +0 -24
- package/dist/declarations/vdom.d.ts +0 -55
- package/dist/declarations/worker.d.ts +0 -33
- package/dist/dev-server/content-type-db.json +0 -1
- package/dist/dev-server/index.js +0 -887
- package/dist/dev-server/static/app-error.css +0 -257
- package/dist/dev-server/static/dev-server-client.html +0 -13
- package/dist/hydrate/index.d.ts +0 -101
- package/dist/hydrate/index.mjs +0 -1281
- package/dist/hydrate/platform.mjs +0 -347
- package/dist/index.d.ts +0 -99
- package/dist/index.js +0 -1
- package/dist/mock-doc/index.d.ts +0 -851
- package/dist/mock-doc/index.js +0 -3982
- package/dist/mock-doc/index.mjs +0 -3954
- package/dist/runtime/index.js +0 -2576
- package/dist/runtime/index.mjs +0 -2521
- package/dist/runtime/shadow-css-6ef31c68.js +0 -386
- package/dist/runtime/shadow-css-8fd1a9e4.js +0 -388
- package/dist/screenshot/index.js +0 -520
- package/dist/sys/node/graceful-fs.js +0 -975
- package/dist/sys/node/index.js +0 -33545
- package/dist/sys/node/node-fetch.js +0 -1779
- package/dist/sys/node/open-in-editor.js +0 -734
- package/dist/sys/node/sys-worker.js +0 -67035
- package/dist/sys/node/websocket.js +0 -3728
- package/dist/testing/build-conditionals.d.ts +0 -4
- package/dist/testing/build-conditionals.js +0 -43
- package/dist/testing/core.d.ts +0 -35
- package/dist/testing/core.js +0 -52
- package/dist/testing/index.js +0 -40511
- package/dist/testing/jest/jest-config.d.ts +0 -4
- package/dist/testing/mock-fetch.d.ts +0 -46
- package/dist/testing/mocks.d.ts +0 -12
- package/dist/testing/platform.d.ts +0 -23
- package/dist/testing/platform.js +0 -321
- package/dist/testing/puppeteer/puppeteer-emulate.d.ts +0 -2
- package/dist/testing/puppeteer/puppeteer-find.d.ts +0 -5
- package/dist/testing/puppeteer/puppeteer-page.d.ts +0 -2
- package/dist/testing/puppeteer/puppeteer-screenshot.d.ts +0 -4
- package/dist/testing/spec-page.d.ts +0 -5
- package/dist/testing/task-queue.d.ts +0 -15
- package/dist/testing/test-transpile.d.ts +0 -5
- package/dist/testing/testing-fs.d.ts +0 -31
- package/dist/testing/testing-sys.d.ts +0 -19
- package/dist/testing/testing.d.ts +0 -12
- package/dist/utils/index.js +0 -1575
- package/dist/utils/index.mjs +0 -1511
- package/internal/client/css-shim.rindo-client.mjs +0 -656
- package/internal/client/index.mjs +0 -2859
- package/internal/client/polyfills/promise.js +0 -9
- package/internal/images.d.ts +0 -5
- package/runtime/package.json +0 -5
- package/screenshot/compare/build/p-020f8d73.js +0 -1
- package/screenshot/compare/build/p-09qdknbg.system.entry.js +0 -1
- package/screenshot/compare/build/p-0a13mpsc.system.entry.js +0 -1
- package/screenshot/compare/build/p-168ec2c4.system.js +0 -1
- package/screenshot/compare/build/p-2ab1fdf1.system.js +0 -1
- package/screenshot/compare/build/p-2pxcsgrj.entry.js +0 -1
- package/screenshot/compare/build/p-42fb7034.system.js +0 -1
- package/screenshot/compare/build/p-54d9d7c2.system.js +0 -1
- package/screenshot/compare/build/p-67c1f911.js +0 -1
- package/screenshot/compare/build/p-68613371.system.js +0 -1
- package/screenshot/compare/build/p-7dvsjpu0.entry.js +0 -1
- package/screenshot/compare/build/p-aa67fb06.js +0 -1
- package/screenshot/compare/build/p-aeb3cec1.system.js +0 -1
- package/screenshot/compare/build/p-b6e44a24.js +0 -1
- package/screenshot/compare/build/p-c1c25b8a.js +0 -1
- package/screenshot/compare/build/p-c9bopbjy.system.entry.js +0 -1
- package/screenshot/compare/build/p-c9iqz1pp.system.entry.js +0 -1
- package/screenshot/compare/build/p-dizjz8rg.entry.js +0 -1
- package/screenshot/compare/build/p-dnta0rwp.system.entry.js +0 -1
- package/screenshot/compare/build/p-e9670d22.system.js +0 -1
- package/screenshot/compare/build/p-ei9jkpd0.system.entry.js +0 -1
- package/screenshot/compare/build/p-ejwcppol.entry.js +0 -1
- package/screenshot/compare/build/p-f6612d5d.system.js +0 -1
- package/screenshot/compare/build/p-foiivsfc.css +0 -1
- package/screenshot/compare/build/p-gpjjyogx.entry.js +0 -1
- package/screenshot/compare/build/p-howklem2.system.entry.js +0 -1
- package/screenshot/compare/build/p-knv9wvoc.entry.js +0 -1
- package/screenshot/compare/build/p-nsqsfhhy.entry.js +0 -1
- package/screenshot/compare/build/p-ojt278pp.entry.js +0 -1
- package/screenshot/compare/build/p-oywass99.entry.js +0 -1
- package/screenshot/compare/build/p-q3ujhub6.entry.js +0 -1
- package/screenshot/compare/build/p-qw4xnmxv.entry.js +0 -1
- package/screenshot/compare/build/p-t1wvevhc.system.entry.js +0 -1
- package/screenshot/compare/build/p-tnjarrex.system.entry.js +0 -1
- package/screenshot/compare/build/p-vhfpd6kk.system.entry.js +0 -1
- package/screenshot/compare/build/p-vk6rhemd.system.entry.js +0 -1
- package/screenshot/compare/build/p-w6bnm16k.entry.js +0 -1
- package/screenshot/compare/build/p-xje6d7zl.system.entry.js +0 -1
- package/screenshot/compare/build/p-y5jlrcha.system.entry.js +0 -1
- package/screenshot/compare/build/p-yh170wkt.entry.js +0 -1
- package/testing/jest.preprocessor.js +0 -7
- /package/{dist/dev-server → dev-server}/static/favicon.ico +0 -0
- /package/{dist/sys/node → dev-server}/visualstudio.vbs +0 -0
- /package/{dist/sys/node → dev-server}/xdg-open +0 -0
- /package/{dist/compiler/polyfills.d.ts → screenshot/compare/build/index.esm.js} +0 -0
- /package/{dist/screenshot → screenshot}/pixel-match.d.ts +0 -0
- /package/{dist/testing → testing}/jest/jest-setup-test-framework.d.ts +0 -0
- /package/{dist/testing → testing}/matchers/attributes.d.ts +0 -0
- /package/{dist/testing → testing}/matchers/class-list.d.ts +0 -0
- /package/{dist/testing → testing}/matchers/html.d.ts +0 -0
- /package/{dist/testing → testing}/matchers/text.d.ts +0 -0
|
@@ -0,0 +1,1097 @@
|
|
|
1
|
+
function componentOnReady() {
|
|
2
|
+
return getHostRef(this).$onReadyPromise$;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
function forceUpdate() {}
|
|
6
|
+
|
|
7
|
+
function hydrateApp(e, t, o, n, s) {
|
|
8
|
+
function a() {
|
|
9
|
+
if (global.clearTimeout(p), i.clear(), r.clear(), !h) {
|
|
10
|
+
h = !0;
|
|
11
|
+
try {
|
|
12
|
+
t.clientHydrateAnnotations && insertVdomAnnotations(e.document, t.staticComponents),
|
|
13
|
+
e.dispatchEvent(new e.Event("DOMContentLoaded")), e.document.createElement = c,
|
|
14
|
+
e.document.createElementNS = $;
|
|
15
|
+
} catch (e) {
|
|
16
|
+
renderCatchError(t, o, e);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
n(e, t, o, s);
|
|
20
|
+
}
|
|
21
|
+
function l(e) {
|
|
22
|
+
renderCatchError(t, o, e), a();
|
|
23
|
+
}
|
|
24
|
+
const r = new Set, i = new Set, d = new Set, c = e.document.createElement, $ = e.document.createElementNS, m = Promise.resolve();
|
|
25
|
+
let p, h = !1;
|
|
26
|
+
try {
|
|
27
|
+
function u() {
|
|
28
|
+
return g(this);
|
|
29
|
+
}
|
|
30
|
+
function f(e) {
|
|
31
|
+
if (isValidComponent(e, t) && !getHostRef(e)) {
|
|
32
|
+
const t = loadModule({
|
|
33
|
+
$tagName$: e.nodeName.toLowerCase(),
|
|
34
|
+
$flags$: null
|
|
35
|
+
}, null);
|
|
36
|
+
null != t && null != t.cmpMeta && (i.add(e), e.connectedCallback = u, registerHost(e, t.cmpMeta),
|
|
37
|
+
function o(e, t) {
|
|
38
|
+
if ("function" != typeof e.componentOnReady && (e.componentOnReady = componentOnReady),
|
|
39
|
+
"function" != typeof e.forceUpdate && (e.forceUpdate = forceUpdate), 1 & t.$flags$ && (e.shadowRoot = e),
|
|
40
|
+
null != t.$members$) {
|
|
41
|
+
const o = getHostRef(e);
|
|
42
|
+
Object.entries(t.$members$).forEach((([n, s]) => {
|
|
43
|
+
const a = s[0];
|
|
44
|
+
if (31 & a) {
|
|
45
|
+
const l = s[1] || n, r = e.getAttribute(l);
|
|
46
|
+
if (null != r) {
|
|
47
|
+
const e = parsePropertyValue(r, a);
|
|
48
|
+
o.$instanceValues$.set(n, e);
|
|
49
|
+
}
|
|
50
|
+
const i = e[n];
|
|
51
|
+
void 0 !== i && (o.$instanceValues$.set(n, i), delete e[n]), Object.defineProperty(e, n, {
|
|
52
|
+
get() {
|
|
53
|
+
return getValue(this, n);
|
|
54
|
+
},
|
|
55
|
+
set(e) {
|
|
56
|
+
setValue(this, n, e, t);
|
|
57
|
+
},
|
|
58
|
+
configurable: !0,
|
|
59
|
+
enumerable: !0
|
|
60
|
+
});
|
|
61
|
+
} else 64 & a && Object.defineProperty(e, n, {
|
|
62
|
+
value() {
|
|
63
|
+
const e = getHostRef(this), t = arguments;
|
|
64
|
+
return e.$onInstancePromise$.then((() => e.$lazyInstance$[n].apply(e.$lazyInstance$, t))).catch(consoleError);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}));
|
|
68
|
+
}
|
|
69
|
+
}(e, t.cmpMeta));
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function g(n) {
|
|
73
|
+
return i.delete(n), isValidComponent(n, t) && o.hydratedCount < t.maxHydrateCount && !r.has(n) && shouldHydrate(n) ? (r.add(n),
|
|
74
|
+
async function s(e, t, o, n, a) {
|
|
75
|
+
o = o.toLowerCase();
|
|
76
|
+
const l = loadModule({
|
|
77
|
+
$tagName$: o,
|
|
78
|
+
$flags$: null
|
|
79
|
+
});
|
|
80
|
+
if (null != l && null != l.cmpMeta) {
|
|
81
|
+
a.add(n);
|
|
82
|
+
try {
|
|
83
|
+
connectedCallback(n), await n.componentOnReady(), t.hydratedCount++;
|
|
84
|
+
const e = getHostRef(n), s = e.$modeName$ ? e.$modeName$ : "$";
|
|
85
|
+
t.components.some((e => e.tag === o && e.mode === s)) || t.components.push({
|
|
86
|
+
tag: o,
|
|
87
|
+
mode: s,
|
|
88
|
+
count: 0,
|
|
89
|
+
depth: -1
|
|
90
|
+
});
|
|
91
|
+
} catch (t) {
|
|
92
|
+
e.console.error(t);
|
|
93
|
+
}
|
|
94
|
+
a.delete(n);
|
|
95
|
+
}
|
|
96
|
+
}(e, o, n.nodeName, n, d)) : m;
|
|
97
|
+
}
|
|
98
|
+
e.document.createElement = function t(o) {
|
|
99
|
+
const n = c.call(e.document, o);
|
|
100
|
+
return f(n), n;
|
|
101
|
+
}, e.document.createElementNS = function t(o, n) {
|
|
102
|
+
const s = $.call(e.document, o, n);
|
|
103
|
+
return f(s), s;
|
|
104
|
+
}, p = global.setTimeout((function L() {
|
|
105
|
+
l(`Hydrate exceeded timeout${function e(t) {
|
|
106
|
+
return Array.from(t).map(waitingOnElementMsg);
|
|
107
|
+
}(d)}`);
|
|
108
|
+
}), t.timeout), plt.$resourcesUrl$ = new URL(t.resourcesUrl || "./", doc.baseURI).href,
|
|
109
|
+
globalScripts(), function e(t) {
|
|
110
|
+
if (null != t && 1 === t.nodeType) {
|
|
111
|
+
f(t);
|
|
112
|
+
const o = t.children;
|
|
113
|
+
for (let t = 0, n = o.length; t < n; t++) e(o[t]);
|
|
114
|
+
}
|
|
115
|
+
}(e.document.body), function e() {
|
|
116
|
+
const t = Array.from(i).filter((e => e.parentElement));
|
|
117
|
+
return t.length > 0 ? Promise.all(t.map(g)).then(e) : m;
|
|
118
|
+
}().then(a).catch(l);
|
|
119
|
+
} catch (e) {
|
|
120
|
+
l(e);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
function isValidComponent(e, t) {
|
|
125
|
+
if (null != e && 1 === e.nodeType) {
|
|
126
|
+
const o = e.nodeName;
|
|
127
|
+
if ("string" == typeof o && o.includes("-")) return !t.excludeComponents.includes(o.toLowerCase());
|
|
128
|
+
}
|
|
129
|
+
return !1;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
function shouldHydrate(e) {
|
|
133
|
+
if (9 === e.nodeType) return !0;
|
|
134
|
+
if (NO_HYDRATE_TAGS.has(e.nodeName)) return !1;
|
|
135
|
+
if (e.hasAttribute("no-prerender")) return !1;
|
|
136
|
+
const t = e.parentNode;
|
|
137
|
+
return null == t || shouldHydrate(t);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function renderCatchError(e, t, o) {
|
|
141
|
+
const n = {
|
|
142
|
+
level: "error",
|
|
143
|
+
type: "build",
|
|
144
|
+
header: "Hydrate Error",
|
|
145
|
+
messageText: "",
|
|
146
|
+
relFilePath: null,
|
|
147
|
+
absFilePath: null,
|
|
148
|
+
lines: []
|
|
149
|
+
};
|
|
150
|
+
if (e.url) try {
|
|
151
|
+
const t = new URL(e.url);
|
|
152
|
+
"/" !== t.pathname && (n.header += ": " + t.pathname);
|
|
153
|
+
} catch (e) {}
|
|
154
|
+
null != o && (null != o.stack ? n.messageText = o.stack.toString() : null != o.message ? n.messageText = o.message.toString() : n.messageText = o.toString()),
|
|
155
|
+
t.diagnostics.push(n);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function printTag(e) {
|
|
159
|
+
let t = `<${e.nodeName.toLowerCase()}`;
|
|
160
|
+
if (Array.isArray(e.attributes)) for (let o = 0; o < e.attributes.length; o++) {
|
|
161
|
+
const n = e.attributes[o];
|
|
162
|
+
t += ` ${n.name}`, "" !== n.value && (t += `="${n.value}"`);
|
|
163
|
+
}
|
|
164
|
+
return t += ">", t;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
function waitingOnElementMsg(e) {
|
|
168
|
+
let t = "";
|
|
169
|
+
if (e) {
|
|
170
|
+
const o = [];
|
|
171
|
+
t = " - waiting on:";
|
|
172
|
+
let n = e;
|
|
173
|
+
for (;n && 9 !== n.nodeType && "BODY" !== n.nodeName; ) o.unshift(printTag(n)),
|
|
174
|
+
n = n.parentElement;
|
|
175
|
+
let s = "";
|
|
176
|
+
for (const e of o) s += " ", t += `\n${s}${e}`;
|
|
177
|
+
}
|
|
178
|
+
return t;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
import { BUILD, NAMESPACE } from "@rindo/core/internal/app-data";
|
|
182
|
+
|
|
183
|
+
export { BUILD, Env, NAMESPACE } from "@rindo/core/internal/app-data";
|
|
184
|
+
|
|
185
|
+
import { globalScripts } from "@rindo/core/internal/app-globals";
|
|
186
|
+
|
|
187
|
+
const addHostEventListeners = (e, t, o, n) => {
|
|
188
|
+
BUILD.hostListener && o && (BUILD.hostListenerTargetParent && (o = n ? o.filter((([e]) => 32 & e)) : o.filter((([e]) => !(32 & e)))),
|
|
189
|
+
o.map((([o, n, s]) => {
|
|
190
|
+
const a = BUILD.hostListenerTarget ? getHostListenerTarget(e, o) : e, l = hostListenerProxy(t, s), r = hostListenerOpts(o);
|
|
191
|
+
plt.ael(a, n, l, r), (t.$rmListeners$ = t.$rmListeners$ || []).push((() => plt.rel(a, n, l, r)));
|
|
192
|
+
})));
|
|
193
|
+
}, hostListenerProxy = (e, t) => o => {
|
|
194
|
+
try {
|
|
195
|
+
BUILD.lazyLoad ? 256 & e.$flags$ ? e.$lazyInstance$[t](o) : (e.$queuedListeners$ = e.$queuedListeners$ || []).push([ t, o ]) : e.$hostElement$[t](o);
|
|
196
|
+
} catch (e) {
|
|
197
|
+
consoleError(e);
|
|
198
|
+
}
|
|
199
|
+
}, getHostListenerTarget = (e, t) => BUILD.hostListenerTargetDocument && 4 & t ? doc : BUILD.hostListenerTargetWindow && 8 & t ? win : BUILD.hostListenerTargetBody && 16 & t ? doc.body : BUILD.hostListenerTargetParent && 32 & t ? e.parentElement : e, hostListenerOpts = e => 0 != (2 & e), XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
200
|
+
|
|
201
|
+
let i = 0;
|
|
202
|
+
|
|
203
|
+
const createTime = (e, t = "") => {
|
|
204
|
+
if (BUILD.profile && performance.mark) {
|
|
205
|
+
const o = `st:${e}:${t}:${i++}`;
|
|
206
|
+
return performance.mark(o), () => performance.measure(`[Rindo] ${e}() <${t}>`, o);
|
|
207
|
+
}
|
|
208
|
+
return () => {};
|
|
209
|
+
}, rootAppliedStyles = new WeakMap, registerStyle = (e, t, o) => {
|
|
210
|
+
let n = styles.get(e);
|
|
211
|
+
n = t, styles.set(e, n);
|
|
212
|
+
}, addStyle = (e, t, o, n) => {
|
|
213
|
+
let s = getScopeId(t, o), a = styles.get(s);
|
|
214
|
+
if (!BUILD.attachStyles) return s;
|
|
215
|
+
if (e = 11 === e.nodeType ? e : doc, a) if ("string" == typeof a) {
|
|
216
|
+
e = e.head || e;
|
|
217
|
+
let o, l = rootAppliedStyles.get(e);
|
|
218
|
+
if (l || rootAppliedStyles.set(e, l = new Set), !l.has(s)) {
|
|
219
|
+
if (BUILD.hydrateClientSide && e.host && (o = e.querySelector(`[sty-id="${s}"]`))) o.innerHTML = a; else {
|
|
220
|
+
if (BUILD.cssVarShim && plt.$cssShim$) {
|
|
221
|
+
o = plt.$cssShim$.createHostStyle(n, s, a, !!(10 & t.$flags$));
|
|
222
|
+
const e = o["s-sc"];
|
|
223
|
+
e && (s = e, l = null);
|
|
224
|
+
} else o = doc.createElement("style"), o.innerHTML = a;
|
|
225
|
+
(BUILD.hydrateServerSide || BUILD.hotModuleReplacement) && o.setAttribute("sty-id", s),
|
|
226
|
+
e.insertBefore(o, e.querySelector("link"));
|
|
227
|
+
}
|
|
228
|
+
l && l.add(s);
|
|
229
|
+
}
|
|
230
|
+
} else BUILD.constructableCSS && !e.adoptedStyleSheets.includes(a) && (e.adoptedStyleSheets = [ ...e.adoptedStyleSheets, a ]);
|
|
231
|
+
return s;
|
|
232
|
+
}, attachStyles = e => {
|
|
233
|
+
const t = e.$cmpMeta$, o = e.$hostElement$, n = t.$flags$, s = createTime("attachStyles", t.$tagName$), a = addStyle(BUILD.shadowDom && supportsShadow && o.shadowRoot ? o.shadowRoot : o.getRootNode(), t, e.$modeName$, o);
|
|
234
|
+
(BUILD.shadowDom || BUILD.scoped) && BUILD.cssAnnotations && 10 & n && (o["s-sc"] = a,
|
|
235
|
+
o.classList.add(a + "-h"), BUILD.scoped && 2 & n && o.classList.add(a + "-s")),
|
|
236
|
+
s();
|
|
237
|
+
}, getScopeId = (e, t) => "sc-" + (BUILD.mode && t && 32 & e.$flags$ ? e.$tagName$ + "-" + t : e.$tagName$), computeMode = e => modeResolutionChain.map((t => t(e))).find((e => !!e)), setMode = e => modeResolutionChain.push(e), getMode = e => getHostRef(e).$modeName$, EMPTY_OBJ = {}, isComplexType = e => "object" == (e = typeof e) || "function" === e, isPromise = e => !!e && ("object" == typeof e || "function" == typeof e) && "function" == typeof e.then, h = (e, t, ...o) => {
|
|
238
|
+
let n = null, s = null, a = null, l = !1, r = !1, i = [];
|
|
239
|
+
const d = t => {
|
|
240
|
+
for (let o = 0; o < t.length; o++) n = t[o], Array.isArray(n) ? d(n) : null != n && "boolean" != typeof n && ((l = "function" != typeof e && !isComplexType(n)) ? n = String(n) : BUILD.isDev && "function" != typeof e && n.$flags$,
|
|
241
|
+
l && r ? i[i.length - 1].$text$ += n : i.push(l ? newVNode(null, n) : n), r = l);
|
|
242
|
+
};
|
|
243
|
+
if (d(o), t && (BUILD.isDev && "input" === e && validateInputProperties(t), BUILD.vdomKey && t.key && (s = t.key),
|
|
244
|
+
BUILD.slotRelocation && t.name && (a = t.name), BUILD.vdomClass)) {
|
|
245
|
+
const e = t.className || t.class;
|
|
246
|
+
e && (t.class = "object" != typeof e ? e : Object.keys(e).filter((t => e[t])).join(" "));
|
|
247
|
+
}
|
|
248
|
+
if (BUILD.isDev && i.some(isHost), BUILD.vdomFunctional && "function" == typeof e) return e(null === t ? {} : t, i, vdomFnUtils);
|
|
249
|
+
const c = newVNode(e, null);
|
|
250
|
+
return c.$attrs$ = t, i.length > 0 && (c.$children$ = i), BUILD.vdomKey && (c.$key$ = s),
|
|
251
|
+
BUILD.slotRelocation && (c.$name$ = a), c;
|
|
252
|
+
}, newVNode = (e, t) => {
|
|
253
|
+
const o = {
|
|
254
|
+
$flags$: 0,
|
|
255
|
+
$tag$: e,
|
|
256
|
+
$text$: t,
|
|
257
|
+
$elm$: null,
|
|
258
|
+
$children$: null
|
|
259
|
+
};
|
|
260
|
+
return BUILD.vdomAttribute && (o.$attrs$ = null), BUILD.vdomKey && (o.$key$ = null),
|
|
261
|
+
BUILD.slotRelocation && (o.$name$ = null), o;
|
|
262
|
+
}, Host = {}, isHost = e => e && e.$tag$ === Host, vdomFnUtils = {
|
|
263
|
+
forEach: (e, t) => e.map(convertToPublic).forEach(t),
|
|
264
|
+
map: (e, t) => e.map(convertToPublic).map(t).map(convertToPrivate)
|
|
265
|
+
}, convertToPublic = e => ({
|
|
266
|
+
vattrs: e.$attrs$,
|
|
267
|
+
vchildren: e.$children$,
|
|
268
|
+
vkey: e.$key$,
|
|
269
|
+
vname: e.$name$,
|
|
270
|
+
vtag: e.$tag$,
|
|
271
|
+
vtext: e.$text$
|
|
272
|
+
}), convertToPrivate = e => {
|
|
273
|
+
if ("function" == typeof e.vtag) {
|
|
274
|
+
const t = {
|
|
275
|
+
...e.vattrs
|
|
276
|
+
};
|
|
277
|
+
return e.vkey && (t.key = e.vkey), e.vname && (t.name = e.vname), h(e.vtag, t, ...e.vchildren || []);
|
|
278
|
+
}
|
|
279
|
+
const t = newVNode(e.vtag, e.vtext);
|
|
280
|
+
return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname,
|
|
281
|
+
t;
|
|
282
|
+
}, validateInputProperties = e => {
|
|
283
|
+
const t = Object.keys(e);
|
|
284
|
+
t.indexOf("type"), t.indexOf("min"), t.indexOf("max"), t.indexOf("min"), t.indexOf("value");
|
|
285
|
+
}, setAccessor = (e, t, o, n, s, a) => {
|
|
286
|
+
if (o !== n) {
|
|
287
|
+
let l = isMemberInElement(e, t), r = t.toLowerCase();
|
|
288
|
+
if (BUILD.vdomClass && "class" === t) {
|
|
289
|
+
const t = e.classList, s = parseClassList(o), a = parseClassList(n);
|
|
290
|
+
t.remove(...s.filter((e => e && !a.includes(e)))), t.add(...a.filter((e => e && !s.includes(e))));
|
|
291
|
+
} else if (BUILD.vdomStyle && "style" === t) {
|
|
292
|
+
if (BUILD.updatable) for (const t in o) n && null != n[t] || (!BUILD.hydrateServerSide && t.includes("-") ? e.style.removeProperty(t) : e.style[t] = "");
|
|
293
|
+
for (const t in n) o && n[t] === o[t] || (!BUILD.hydrateServerSide && t.includes("-") ? e.style.setProperty(t, n[t]) : e.style[t] = n[t]);
|
|
294
|
+
} else if (BUILD.vdomKey && "key" === t) ; else if (BUILD.vdomRef && "ref" === t) n && n(e); else if (!BUILD.vdomListener || (BUILD.lazyLoad ? l : e.__lookupSetter__(t)) || "o" !== t[0] || "n" !== t[1]) {
|
|
295
|
+
if (BUILD.vdomPropOrAttr) {
|
|
296
|
+
const i = isComplexType(n);
|
|
297
|
+
if ((l || i && null !== n) && !s) try {
|
|
298
|
+
if (e.tagName.includes("-")) e[t] = n; else {
|
|
299
|
+
let s = null == n ? "" : n;
|
|
300
|
+
"list" === t ? l = !1 : null != o && e[t] == s || (e[t] = s);
|
|
301
|
+
}
|
|
302
|
+
} catch (e) {}
|
|
303
|
+
let d = !1;
|
|
304
|
+
BUILD.vdomXlink && r !== (r = r.replace(/^xlink\:?/, "")) && (t = r, d = !0), null == n || !1 === n ? !1 === n && "" !== e.getAttribute(t) || (BUILD.vdomXlink && d ? e.removeAttributeNS(XLINK_NS, t) : e.removeAttribute(t)) : (!l || 4 & a || s) && !i && (n = !0 === n ? "" : n,
|
|
305
|
+
BUILD.vdomXlink && d ? e.setAttributeNS(XLINK_NS, t, n) : e.setAttribute(t, n));
|
|
306
|
+
}
|
|
307
|
+
} else t = "-" === t[2] ? t.slice(3) : isMemberInElement(win, r) ? r.slice(2) : r[2] + t.slice(3),
|
|
308
|
+
o && plt.rel(e, t, o, !1), n && plt.ael(e, t, n, !1);
|
|
309
|
+
}
|
|
310
|
+
}, parseClassListRegex = /\s/, parseClassList = e => e ? e.split(parseClassListRegex) : [], updateElement = (e, t, o, n) => {
|
|
311
|
+
const s = 11 === t.$elm$.nodeType && t.$elm$.host ? t.$elm$.host : t.$elm$, a = e && e.$attrs$ || EMPTY_OBJ, l = t.$attrs$ || EMPTY_OBJ;
|
|
312
|
+
if (BUILD.updatable) for (n in a) n in l || setAccessor(s, n, a[n], void 0, o, t.$flags$);
|
|
313
|
+
for (n in l) setAccessor(s, n, a[n], l[n], o, t.$flags$);
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
let scopeId, contentRef, hostTagName, useNativeShadowDom = !1, checkSlotFallbackVisibility = !1, checkSlotRelocate = !1, isSvgMode = !1;
|
|
317
|
+
|
|
318
|
+
const createElm = (e, t, o, n) => {
|
|
319
|
+
let s, a, l, r = t.$children$[o], i = 0;
|
|
320
|
+
if (BUILD.slotRelocation && !useNativeShadowDom && (checkSlotRelocate = !0, "slot" === r.$tag$ && (scopeId && n.classList.add(scopeId + "-s"),
|
|
321
|
+
r.$flags$ |= r.$children$ ? 2 : 1)), BUILD.isDev && r.$elm$ && consoleDevError(`The JSX ${null !== r.$text$ ? `"${r.$text$}" text` : `"${r.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://rindojs.web.app/docs/templating-jsx#avoid-shared-jsx-nodes`),
|
|
322
|
+
BUILD.vdomText && null !== r.$text$) s = r.$elm$ = doc.createTextNode(r.$text$); else if (BUILD.slotRelocation && 1 & r.$flags$) s = r.$elm$ = BUILD.isDebug || BUILD.hydrateServerSide ? slotReferenceDebugNode(r) : doc.createTextNode(""); else {
|
|
323
|
+
if (BUILD.svg && !isSvgMode && (isSvgMode = "svg" === r.$tag$), s = r.$elm$ = BUILD.svg ? doc.createElementNS(isSvgMode ? "http://www.w3.org/2000/svg" : "http://www.w3.org/1999/xhtml", BUILD.slotRelocation && 2 & r.$flags$ ? "slot-fb" : r.$tag$) : doc.createElement(BUILD.slotRelocation && 2 & r.$flags$ ? "slot-fb" : r.$tag$),
|
|
324
|
+
BUILD.svg && isSvgMode && "foreignObject" === r.$tag$ && (isSvgMode = !1), BUILD.vdomAttribute && updateElement(null, r, isSvgMode),
|
|
325
|
+
(BUILD.shadowDom || BUILD.scoped) && null != scopeId && s["s-si"] !== scopeId && s.classList.add(s["s-si"] = scopeId),
|
|
326
|
+
r.$children$) for (i = 0; i < r.$children$.length; ++i) a = createElm(e, r, i, s),
|
|
327
|
+
a && s.appendChild(a);
|
|
328
|
+
BUILD.svg && ("svg" === r.$tag$ ? isSvgMode = !1 : "foreignObject" === s.tagName && (isSvgMode = !0));
|
|
329
|
+
}
|
|
330
|
+
return BUILD.slotRelocation && (s["s-hn"] = hostTagName, 3 & r.$flags$ && (s["s-sr"] = !0,
|
|
331
|
+
s["s-cr"] = contentRef, s["s-sn"] = r.$name$ || "", l = e && e.$children$ && e.$children$[o],
|
|
332
|
+
l && l.$tag$ === r.$tag$ && e.$elm$ && putBackInOriginalLocation(e.$elm$, !1))),
|
|
333
|
+
s;
|
|
334
|
+
}, putBackInOriginalLocation = (e, t) => {
|
|
335
|
+
plt.$flags$ |= 1;
|
|
336
|
+
const o = e.childNodes;
|
|
337
|
+
for (let e = o.length - 1; e >= 0; e--) {
|
|
338
|
+
const n = o[e];
|
|
339
|
+
n["s-hn"] !== hostTagName && n["s-ol"] && (parentReferenceNode(n).insertBefore(n, referenceNode(n)),
|
|
340
|
+
n["s-ol"].remove(), n["s-ol"] = void 0, checkSlotRelocate = !0), t && putBackInOriginalLocation(n, t);
|
|
341
|
+
}
|
|
342
|
+
plt.$flags$ &= -2;
|
|
343
|
+
}, addVnodes = (e, t, o, n, s, a) => {
|
|
344
|
+
let l, r = BUILD.slotRelocation && e["s-cr"] && e["s-cr"].parentNode || e;
|
|
345
|
+
for (BUILD.shadowDom && r.shadowRoot && r.tagName === hostTagName && (r = r.shadowRoot); s <= a; ++s) n[s] && (l = createElm(null, o, s, e),
|
|
346
|
+
l && (n[s].$elm$ = l, r.insertBefore(l, BUILD.slotRelocation ? referenceNode(t) : t)));
|
|
347
|
+
}, removeVnodes = (e, t, o, n, s) => {
|
|
348
|
+
for (;t <= o; ++t) (n = e[t]) && (s = n.$elm$, callNodeRefs(n), BUILD.slotRelocation && (checkSlotFallbackVisibility = !0,
|
|
349
|
+
s["s-ol"] ? s["s-ol"].remove() : putBackInOriginalLocation(s, !0)), s.remove());
|
|
350
|
+
}, isSameVnode = (e, t) => e.$tag$ === t.$tag$ && (BUILD.slotRelocation && "slot" === e.$tag$ ? e.$name$ === t.$name$ : !BUILD.vdomKey || e.$key$ === t.$key$), referenceNode = e => e && e["s-ol"] || e, parentReferenceNode = e => (e["s-ol"] ? e["s-ol"] : e).parentNode, patch = (e, t) => {
|
|
351
|
+
const o = t.$elm$ = e.$elm$, n = e.$children$, s = t.$children$, a = t.$tag$, l = t.$text$;
|
|
352
|
+
let r;
|
|
353
|
+
BUILD.vdomText && null !== l ? BUILD.vdomText && BUILD.slotRelocation && (r = o["s-cr"]) ? r.parentNode.textContent = l : BUILD.vdomText && e.$text$ !== l && (o.data = l) : (BUILD.svg && (isSvgMode = "svg" === a || "foreignObject" !== a && isSvgMode),
|
|
354
|
+
(BUILD.vdomAttribute || BUILD.reflect) && (BUILD.slot && "slot" === a || updateElement(e, t, isSvgMode)),
|
|
355
|
+
BUILD.updatable && null !== n && null !== s ? ((e, t, o, n) => {
|
|
356
|
+
let s, a, l = 0, r = 0, i = 0, d = 0, c = t.length - 1, $ = t[0], m = t[c], p = n.length - 1, h = n[0], u = n[p];
|
|
357
|
+
for (;l <= c && r <= p; ) if (null == $) $ = t[++l]; else if (null == m) m = t[--c]; else if (null == h) h = n[++r]; else if (null == u) u = n[--p]; else if (isSameVnode($, h)) patch($, h),
|
|
358
|
+
$ = t[++l], h = n[++r]; else if (isSameVnode(m, u)) patch(m, u), m = t[--c], u = n[--p]; else if (isSameVnode($, u)) !BUILD.slotRelocation || "slot" !== $.$tag$ && "slot" !== u.$tag$ || putBackInOriginalLocation($.$elm$.parentNode, !1),
|
|
359
|
+
patch($, u), e.insertBefore($.$elm$, m.$elm$.nextSibling), $ = t[++l], u = n[--p]; else if (isSameVnode(m, h)) !BUILD.slotRelocation || "slot" !== $.$tag$ && "slot" !== u.$tag$ || putBackInOriginalLocation(m.$elm$.parentNode, !1),
|
|
360
|
+
patch(m, h), e.insertBefore(m.$elm$, $.$elm$), m = t[--c], h = n[++r]; else {
|
|
361
|
+
if (i = -1, BUILD.vdomKey) for (d = l; d <= c; ++d) if (t[d] && null !== t[d].$key$ && t[d].$key$ === h.$key$) {
|
|
362
|
+
i = d;
|
|
363
|
+
break;
|
|
364
|
+
}
|
|
365
|
+
BUILD.vdomKey && i >= 0 ? (a = t[i], a.$tag$ !== h.$tag$ ? s = createElm(t && t[r], o, i, e) : (patch(a, h),
|
|
366
|
+
t[i] = void 0, s = a.$elm$), h = n[++r]) : (s = createElm(t && t[r], o, r, e), h = n[++r]),
|
|
367
|
+
s && (BUILD.slotRelocation ? parentReferenceNode($.$elm$).insertBefore(s, referenceNode($.$elm$)) : $.$elm$.parentNode.insertBefore(s, $.$elm$));
|
|
368
|
+
}
|
|
369
|
+
l > c ? addVnodes(e, null == n[p + 1] ? null : n[p + 1].$elm$, o, n, r, p) : BUILD.updatable && r > p && removeVnodes(t, l, c);
|
|
370
|
+
})(o, n, t, s) : null !== s ? (BUILD.updatable && BUILD.vdomText && null !== e.$text$ && (o.textContent = ""),
|
|
371
|
+
addVnodes(o, null, t, s, 0, s.length - 1)) : BUILD.updatable && null !== n && removeVnodes(n, 0, n.length - 1),
|
|
372
|
+
BUILD.svg && isSvgMode && "svg" === a && (isSvgMode = !1));
|
|
373
|
+
}, updateFallbackSlotVisibility = e => {
|
|
374
|
+
let t, o, n, s, a, l, r = e.childNodes;
|
|
375
|
+
for (o = 0, n = r.length; o < n; o++) if (t = r[o], 1 === t.nodeType) {
|
|
376
|
+
if (t["s-sr"]) for (a = t["s-sn"], t.hidden = !1, s = 0; s < n; s++) if (l = r[s].nodeType,
|
|
377
|
+
r[s]["s-hn"] !== t["s-hn"] || "" !== a) {
|
|
378
|
+
if (1 === l && a === r[s].getAttribute("slot")) {
|
|
379
|
+
t.hidden = !0;
|
|
380
|
+
break;
|
|
381
|
+
}
|
|
382
|
+
} else if (1 === l || 3 === l && "" !== r[s].textContent.trim()) {
|
|
383
|
+
t.hidden = !0;
|
|
384
|
+
break;
|
|
385
|
+
}
|
|
386
|
+
updateFallbackSlotVisibility(t);
|
|
387
|
+
}
|
|
388
|
+
}, relocateNodes = [], relocateSlotContent = e => {
|
|
389
|
+
let t, o, n, s, a, l, r = 0, i = e.childNodes, d = i.length;
|
|
390
|
+
for (;r < d; r++) {
|
|
391
|
+
if (t = i[r], t["s-sr"] && (o = t["s-cr"]) && o.parentNode) for (n = o.parentNode.childNodes,
|
|
392
|
+
s = t["s-sn"], l = n.length - 1; l >= 0; l--) o = n[l], o["s-cn"] || o["s-nr"] || o["s-hn"] === t["s-hn"] || (isNodeLocatedInSlot(o, s) ? (a = relocateNodes.find((e => e.$nodeToRelocate$ === o)),
|
|
393
|
+
checkSlotFallbackVisibility = !0, o["s-sn"] = o["s-sn"] || s, a ? a.$slotRefNode$ = t : relocateNodes.push({
|
|
394
|
+
$slotRefNode$: t,
|
|
395
|
+
$nodeToRelocate$: o
|
|
396
|
+
}), o["s-sr"] && relocateNodes.map((e => {
|
|
397
|
+
isNodeLocatedInSlot(e.$nodeToRelocate$, o["s-sn"]) && (a = relocateNodes.find((e => e.$nodeToRelocate$ === o)),
|
|
398
|
+
a && !e.$slotRefNode$ && (e.$slotRefNode$ = a.$slotRefNode$));
|
|
399
|
+
}))) : relocateNodes.some((e => e.$nodeToRelocate$ === o)) || relocateNodes.push({
|
|
400
|
+
$nodeToRelocate$: o
|
|
401
|
+
}));
|
|
402
|
+
1 === t.nodeType && relocateSlotContent(t);
|
|
403
|
+
}
|
|
404
|
+
}, isNodeLocatedInSlot = (e, t) => 1 === e.nodeType ? null === e.getAttribute("slot") && "" === t || e.getAttribute("slot") === t : e["s-sn"] === t || "" === t, callNodeRefs = e => {
|
|
405
|
+
BUILD.vdomRef && (e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(callNodeRefs));
|
|
406
|
+
}, renderVdom = (e, t) => {
|
|
407
|
+
const o = e.$hostElement$, n = e.$cmpMeta$, s = e.$vnode$ || newVNode(null, null), a = isHost(t) ? t : h(null, null, t);
|
|
408
|
+
if (hostTagName = o.tagName, BUILD.isDev && Array.isArray(t) && t.some(isHost)) throw new Error(`The <Host> must be the single root component.\nLooks like the render() function of "${hostTagName.toLowerCase()}" is returning an array that contains the <Host>.\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n <Host>{content}</Host>\n );\n}\n `);
|
|
409
|
+
if (BUILD.reflect && n.$attrsToReflect$ && (a.$attrs$ = a.$attrs$ || {}, n.$attrsToReflect$.map((([e, t]) => a.$attrs$[t] = o[e]))),
|
|
410
|
+
a.$tag$ = null, a.$flags$ |= 4, e.$vnode$ = a, a.$elm$ = s.$elm$ = BUILD.shadowDom && o.shadowRoot || o,
|
|
411
|
+
(BUILD.scoped || BUILD.shadowDom) && (scopeId = o["s-sc"]), BUILD.slotRelocation && (contentRef = o["s-cr"],
|
|
412
|
+
useNativeShadowDom = supportsShadow, checkSlotFallbackVisibility = !1), patch(s, a),
|
|
413
|
+
BUILD.slotRelocation) {
|
|
414
|
+
if (plt.$flags$ |= 1, checkSlotRelocate) {
|
|
415
|
+
let e, t, o, n, s, l;
|
|
416
|
+
relocateSlotContent(a.$elm$);
|
|
417
|
+
let r = 0;
|
|
418
|
+
for (;r < relocateNodes.length; r++) e = relocateNodes[r], t = e.$nodeToRelocate$,
|
|
419
|
+
t["s-ol"] || (o = BUILD.isDebug || BUILD.hydrateServerSide ? originalLocationDebugNode(t) : doc.createTextNode(""),
|
|
420
|
+
o["s-nr"] = t, t.parentNode.insertBefore(t["s-ol"] = o, t));
|
|
421
|
+
for (r = 0; r < relocateNodes.length; r++) if (e = relocateNodes[r], t = e.$nodeToRelocate$,
|
|
422
|
+
e.$slotRefNode$) {
|
|
423
|
+
for (n = e.$slotRefNode$.parentNode, s = e.$slotRefNode$.nextSibling, o = t["s-ol"]; o = o.previousSibling; ) if (l = o["s-nr"],
|
|
424
|
+
l && l["s-sn"] === t["s-sn"] && n === l.parentNode && (l = l.nextSibling, !l || !l["s-nr"])) {
|
|
425
|
+
s = l;
|
|
426
|
+
break;
|
|
427
|
+
}
|
|
428
|
+
(!s && n !== t.parentNode || t.nextSibling !== s) && t !== s && (!t["s-hn"] && t["s-ol"] && (t["s-hn"] = t["s-ol"].parentNode.nodeName),
|
|
429
|
+
n.insertBefore(t, s));
|
|
430
|
+
} else 1 === t.nodeType && (t.hidden = !0);
|
|
431
|
+
}
|
|
432
|
+
checkSlotFallbackVisibility && updateFallbackSlotVisibility(a.$elm$), plt.$flags$ &= -2,
|
|
433
|
+
relocateNodes.length = 0;
|
|
434
|
+
}
|
|
435
|
+
}, slotReferenceDebugNode = e => doc.createComment(`<slot${e.$name$ ? ' name="' + e.$name$ + '"' : ""}> (host=${hostTagName.toLowerCase()})`), originalLocationDebugNode = e => doc.createComment("org-location for " + (e.localName ? `<${e.localName}> (host=${e["s-hn"]})` : `[${e.textContent}]`)), getElement = e => BUILD.lazyLoad ? getHostRef(e).$hostElement$ : e, createEvent = (e, t, o) => {
|
|
436
|
+
const n = getElement(e);
|
|
437
|
+
return {
|
|
438
|
+
emit: e => (BUILD.isDev && n.isConnected, emitEvent(n, t, {
|
|
439
|
+
bubbles: !!(4 & o),
|
|
440
|
+
composed: !!(2 & o),
|
|
441
|
+
cancelable: !!(1 & o),
|
|
442
|
+
detail: e
|
|
443
|
+
}))
|
|
444
|
+
};
|
|
445
|
+
}, emitEvent = (e, t, o) => {
|
|
446
|
+
const n = plt.ce(t, o);
|
|
447
|
+
return e.dispatchEvent(n), n;
|
|
448
|
+
}, attachToAncestor = (e, t) => {
|
|
449
|
+
BUILD.asyncLoading && t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((t => e.$onRenderResolve$ = t)));
|
|
450
|
+
}, scheduleUpdate = (e, t) => {
|
|
451
|
+
if (BUILD.taskQueue && BUILD.updatable && (e.$flags$ |= 16), BUILD.asyncLoading && 4 & e.$flags$) return void (e.$flags$ |= 512);
|
|
452
|
+
attachToAncestor(e, e.$ancestorComponent$);
|
|
453
|
+
const o = () => dispatchHooks(e, t);
|
|
454
|
+
return BUILD.taskQueue ? writeTask(o) : o();
|
|
455
|
+
}, dispatchHooks = (e, t) => {
|
|
456
|
+
const o = e.$hostElement$, n = createTime("scheduleUpdate", e.$cmpMeta$.$tagName$), s = BUILD.lazyLoad ? e.$lazyInstance$ : o;
|
|
457
|
+
let a;
|
|
458
|
+
return t ? (BUILD.lazyLoad && BUILD.hostListener && (e.$flags$ |= 256, e.$queuedListeners$ && (e.$queuedListeners$.map((([e, t]) => safeCall(s, e, t))),
|
|
459
|
+
e.$queuedListeners$ = null)), emitLifecycleEvent(o, "componentWillLoad"), BUILD.cmpWillLoad && (a = safeCall(s, "componentWillLoad"))) : (emitLifecycleEvent(o, "componentWillUpdate"),
|
|
460
|
+
BUILD.cmpWillUpdate && (a = safeCall(s, "componentWillUpdate"))), emitLifecycleEvent(o, "componentWillRender"),
|
|
461
|
+
BUILD.cmpWillRender && (a = then(a, (() => safeCall(s, "componentWillRender")))),
|
|
462
|
+
n(), then(a, (() => updateComponent(e, s, t)));
|
|
463
|
+
}, updateComponent = async (e, t, o) => {
|
|
464
|
+
const n = e.$hostElement$, s = createTime("update", e.$cmpMeta$.$tagName$), a = n["s-rc"];
|
|
465
|
+
BUILD.style && o && attachStyles(e);
|
|
466
|
+
const l = createTime("render", e.$cmpMeta$.$tagName$);
|
|
467
|
+
if (BUILD.isDev && (e.$flags$ |= 1024), BUILD.hydrateServerSide ? await callRender(e, t, n) : callRender(e, t, n),
|
|
468
|
+
BUILD.cssVarShim && plt.$cssShim$ && plt.$cssShim$.updateHost(n), BUILD.isDev && (e.$renderCount$++,
|
|
469
|
+
e.$flags$ &= -1025), BUILD.hydrateServerSide) try {
|
|
470
|
+
serverSideConnected(n), o && (1 & e.$cmpMeta$.$flags$ ? n["s-en"] = "" : 2 & e.$cmpMeta$.$flags$ && (n["s-en"] = "c"));
|
|
471
|
+
} catch (e) {
|
|
472
|
+
consoleError(e, n);
|
|
473
|
+
}
|
|
474
|
+
if (BUILD.asyncLoading && a && (a.map((e => e())), n["s-rc"] = void 0), l(), s(),
|
|
475
|
+
BUILD.asyncLoading) {
|
|
476
|
+
const t = n["s-p"], o = () => postUpdateComponent(e);
|
|
477
|
+
0 === t.length ? o() : (Promise.all(t).then(o), e.$flags$ |= 4, t.length = 0);
|
|
478
|
+
} else postUpdateComponent(e);
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
let renderingRef = null;
|
|
482
|
+
|
|
483
|
+
const callRender = (e, t, o) => {
|
|
484
|
+
const n = !!BUILD.allRenderFn, s = !!BUILD.lazyLoad, a = !!BUILD.taskQueue, l = !!BUILD.updatable;
|
|
485
|
+
try {
|
|
486
|
+
if (renderingRef = t, t = (n || t.render) && t.render(), l && a && (e.$flags$ &= -17),
|
|
487
|
+
(l || s) && (e.$flags$ |= 2), BUILD.hasRenderFn || BUILD.reflect) if (BUILD.vdomRender || BUILD.reflect) {
|
|
488
|
+
if (BUILD.hydrateServerSide) return Promise.resolve(t).then((t => renderVdom(e, t)));
|
|
489
|
+
renderVdom(e, t);
|
|
490
|
+
} else o.textContent = t;
|
|
491
|
+
} catch (t) {
|
|
492
|
+
consoleError(t, e.$hostElement$);
|
|
493
|
+
}
|
|
494
|
+
return renderingRef = null, null;
|
|
495
|
+
}, getRenderingRef = () => renderingRef, postUpdateComponent = e => {
|
|
496
|
+
const t = e.$cmpMeta$.$tagName$, o = e.$hostElement$, n = createTime("postUpdate", t), s = BUILD.lazyLoad ? e.$lazyInstance$ : o, a = e.$ancestorComponent$;
|
|
497
|
+
BUILD.cmpDidRender && (BUILD.isDev && (e.$flags$ |= 1024), safeCall(s, "componentDidRender"),
|
|
498
|
+
BUILD.isDev && (e.$flags$ &= -1025)), emitLifecycleEvent(o, "componentDidRender"),
|
|
499
|
+
64 & e.$flags$ ? (BUILD.cmpDidUpdate && (BUILD.isDev && (e.$flags$ |= 1024), safeCall(s, "componentDidUpdate"),
|
|
500
|
+
BUILD.isDev && (e.$flags$ &= -1025)), emitLifecycleEvent(o, "componentDidUpdate"),
|
|
501
|
+
n()) : (e.$flags$ |= 64, BUILD.asyncLoading && BUILD.cssAnnotations && addHydratedFlag(o),
|
|
502
|
+
BUILD.cmpDidLoad && (BUILD.isDev && (e.$flags$ |= 2048), safeCall(s, "componentDidLoad"),
|
|
503
|
+
BUILD.isDev && (e.$flags$ &= -2049)), emitLifecycleEvent(o, "componentDidLoad"),
|
|
504
|
+
n(), BUILD.asyncLoading && (e.$onReadyResolve$(o), a || appDidLoad(t))), BUILD.hotModuleReplacement && o["s-hmr-load"] && o["s-hmr-load"](),
|
|
505
|
+
BUILD.method && BUILD.lazyLoad && e.$onInstanceResolve$(o), BUILD.asyncLoading && (e.$onRenderResolve$ && (e.$onRenderResolve$(),
|
|
506
|
+
e.$onRenderResolve$ = void 0), 512 & e.$flags$ && nextTick((() => scheduleUpdate(e, !1))),
|
|
507
|
+
e.$flags$ &= -517);
|
|
508
|
+
}, forceUpdate$1 = e => {
|
|
509
|
+
if (BUILD.updatable) {
|
|
510
|
+
const t = getHostRef(e), o = t.$hostElement$.isConnected;
|
|
511
|
+
return o && 2 == (18 & t.$flags$) && scheduleUpdate(t, !1), o;
|
|
512
|
+
}
|
|
513
|
+
return !1;
|
|
514
|
+
}, appDidLoad = e => {
|
|
515
|
+
BUILD.cssAnnotations && addHydratedFlag(doc.documentElement), BUILD.asyncQueue && (plt.$flags$ |= 2),
|
|
516
|
+
nextTick((() => emitEvent(win, "appload", {
|
|
517
|
+
detail: {
|
|
518
|
+
namespace: NAMESPACE
|
|
519
|
+
}
|
|
520
|
+
}))), BUILD.profile && performance.measure && performance.measure(`[Rindo] ${NAMESPACE} initial load (by ${e})`, "st:app:start");
|
|
521
|
+
}, safeCall = (e, t, o) => {
|
|
522
|
+
if (e && e[t]) try {
|
|
523
|
+
return e[t](o);
|
|
524
|
+
} catch (e) {
|
|
525
|
+
consoleError(e);
|
|
526
|
+
}
|
|
527
|
+
}, then = (e, t) => e && e.then ? e.then(t) : t(), emitLifecycleEvent = (e, t) => {
|
|
528
|
+
BUILD.lifecycleDOMEvents && emitEvent(e, "rindo_" + t, {
|
|
529
|
+
bubbles: !0,
|
|
530
|
+
composed: !0,
|
|
531
|
+
detail: {
|
|
532
|
+
namespace: NAMESPACE
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
}, addHydratedFlag = e => BUILD.hydratedClass ? e.classList.add("hydrated") : BUILD.hydratedAttribute ? e.setAttribute("hydrated", "") : void 0, serverSideConnected = e => {
|
|
536
|
+
const t = e.children;
|
|
537
|
+
if (null != t) for (let e = 0, o = t.length; e < o; e++) {
|
|
538
|
+
const o = t[e];
|
|
539
|
+
"function" == typeof o.connectedCallback && o.connectedCallback(), serverSideConnected(o);
|
|
540
|
+
}
|
|
541
|
+
}, clientHydrate = (e, t, o, n, s, a, l) => {
|
|
542
|
+
let r, i, d, c;
|
|
543
|
+
if (1 === a.nodeType) {
|
|
544
|
+
for (r = a.getAttribute("c-id"), r && (i = r.split("."), i[0] !== l && "0" !== i[0] || (d = {
|
|
545
|
+
$flags$: 0,
|
|
546
|
+
$hostId$: i[0],
|
|
547
|
+
$nodeId$: i[1],
|
|
548
|
+
$depth$: i[2],
|
|
549
|
+
$index$: i[3],
|
|
550
|
+
$tag$: a.tagName.toLowerCase(),
|
|
551
|
+
$elm$: a,
|
|
552
|
+
$attrs$: null,
|
|
553
|
+
$children$: null,
|
|
554
|
+
$key$: null,
|
|
555
|
+
$name$: null,
|
|
556
|
+
$text$: null
|
|
557
|
+
}, t.push(d), a.removeAttribute("c-id"), e.$children$ || (e.$children$ = []), e.$children$[d.$index$] = d,
|
|
558
|
+
e = d, n && "0" === d.$depth$ && (n[d.$index$] = d.$elm$))), c = a.childNodes.length - 1; c >= 0; c--) clientHydrate(e, t, o, n, s, a.childNodes[c], l);
|
|
559
|
+
if (a.shadowRoot) for (c = a.shadowRoot.childNodes.length - 1; c >= 0; c--) clientHydrate(e, t, o, n, s, a.shadowRoot.childNodes[c], l);
|
|
560
|
+
} else if (8 === a.nodeType) i = a.nodeValue.split("."), i[1] !== l && "0" !== i[1] || (r = i[0],
|
|
561
|
+
d = {
|
|
562
|
+
$flags$: 0,
|
|
563
|
+
$hostId$: i[1],
|
|
564
|
+
$nodeId$: i[2],
|
|
565
|
+
$depth$: i[3],
|
|
566
|
+
$index$: i[4],
|
|
567
|
+
$elm$: a,
|
|
568
|
+
$attrs$: null,
|
|
569
|
+
$children$: null,
|
|
570
|
+
$key$: null,
|
|
571
|
+
$name$: null,
|
|
572
|
+
$tag$: null,
|
|
573
|
+
$text$: null
|
|
574
|
+
}, "t" === r ? (d.$elm$ = a.nextSibling, d.$elm$ && 3 === d.$elm$.nodeType && (d.$text$ = d.$elm$.textContent,
|
|
575
|
+
t.push(d), a.remove(), e.$children$ || (e.$children$ = []), e.$children$[d.$index$] = d,
|
|
576
|
+
n && "0" === d.$depth$ && (n[d.$index$] = d.$elm$))) : d.$hostId$ === l && ("s" === r ? (d.$tag$ = "slot",
|
|
577
|
+
i[5] ? a["s-sn"] = d.$name$ = i[5] : a["s-sn"] = "", a["s-sr"] = !0, BUILD.shadowDom && n && (d.$elm$ = doc.createElement(d.$tag$),
|
|
578
|
+
d.$name$ && d.$elm$.setAttribute("name", d.$name$), a.parentNode.insertBefore(d.$elm$, a),
|
|
579
|
+
a.remove(), "0" === d.$depth$ && (n[d.$index$] = d.$elm$)), o.push(d), e.$children$ || (e.$children$ = []),
|
|
580
|
+
e.$children$[d.$index$] = d) : "r" === r && (BUILD.shadowDom && n ? a.remove() : BUILD.slotRelocation && (s["s-cr"] = a,
|
|
581
|
+
a["s-cn"] = !0)))); else if (e && "style" === e.$tag$) {
|
|
582
|
+
const t = newVNode(null, a.textContent);
|
|
583
|
+
t.$elm$ = a, t.$index$ = "0", e.$children$ = [ t ];
|
|
584
|
+
}
|
|
585
|
+
}, initializeDocumentHydrate = (e, t) => {
|
|
586
|
+
if (1 === e.nodeType) {
|
|
587
|
+
let o = 0;
|
|
588
|
+
for (;o < e.childNodes.length; o++) initializeDocumentHydrate(e.childNodes[o], t);
|
|
589
|
+
if (e.shadowRoot) for (o = 0; o < e.shadowRoot.childNodes.length; o++) initializeDocumentHydrate(e.shadowRoot.childNodes[o], t);
|
|
590
|
+
} else if (8 === e.nodeType) {
|
|
591
|
+
const o = e.nodeValue.split(".");
|
|
592
|
+
"o" === o[0] && (t.set(o[1] + "." + o[2], e), e.nodeValue = "", e["s-en"] = o[3]);
|
|
593
|
+
}
|
|
594
|
+
}, parsePropertyValue = (e, t) => null == e || isComplexType(e) ? e : BUILD.propBoolean && 4 & t ? "false" !== e && ("" === e || !!e) : BUILD.propNumber && 2 & t ? parseFloat(e) : BUILD.propString && 1 & t ? String(e) : e, getValue = (e, t) => getHostRef(e).$instanceValues$.get(t), setValue = (e, t, o, n) => {
|
|
595
|
+
const s = getHostRef(e), a = BUILD.lazyLoad ? s.$hostElement$ : e, l = s.$instanceValues$.get(t), r = s.$flags$, i = BUILD.lazyLoad ? s.$lazyInstance$ : a;
|
|
596
|
+
if (o = parsePropertyValue(o, n.$members$[t][0]), !(BUILD.lazyLoad && 8 & r && void 0 !== l || o === l) && (s.$instanceValues$.set(t, o),
|
|
597
|
+
BUILD.isDev && (1024 & s.$flags$ || s.$flags$), !BUILD.lazyLoad || i)) {
|
|
598
|
+
if (BUILD.watchCallback && n.$watchers$ && 128 & r) {
|
|
599
|
+
const e = n.$watchers$[t];
|
|
600
|
+
e && e.map((e => {
|
|
601
|
+
try {
|
|
602
|
+
i[e](o, l, t);
|
|
603
|
+
} catch (e) {
|
|
604
|
+
consoleError(e, a);
|
|
605
|
+
}
|
|
606
|
+
}));
|
|
607
|
+
}
|
|
608
|
+
if (BUILD.updatable && 2 == (18 & r)) {
|
|
609
|
+
if (BUILD.cmpShouldUpdate && i.componentShouldUpdate && !1 === i.componentShouldUpdate(o, l, t)) return;
|
|
610
|
+
scheduleUpdate(s, !1);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
}, proxyComponent = (e, t, o) => {
|
|
614
|
+
if (BUILD.member && t.$members$) {
|
|
615
|
+
BUILD.watchCallback && e.watchers && (t.$watchers$ = e.watchers);
|
|
616
|
+
const n = Object.entries(t.$members$), s = e.prototype;
|
|
617
|
+
if (n.map((([e, [n]]) => {
|
|
618
|
+
(BUILD.prop || BUILD.state) && (31 & n || (!BUILD.lazyLoad || 2 & o) && 32 & n) ? Object.defineProperty(s, e, {
|
|
619
|
+
get() {
|
|
620
|
+
return getValue(this, e);
|
|
621
|
+
},
|
|
622
|
+
set(s) {
|
|
623
|
+
if (BUILD.isDev) {
|
|
624
|
+
const s = getHostRef(this);
|
|
625
|
+
0 == (1 & o) && 0 == (8 & s.$flags$) && 0 != (31 & n) && 0 == (1024 & n) && consoleDevWarn(`@Prop() "${e}" on <${t.$tagName$}> is immutable but was modified from within the component.\nMore information: https://rindojs.web.app/docs/properties#prop-mutability`);
|
|
626
|
+
}
|
|
627
|
+
setValue(this, e, s, t);
|
|
628
|
+
},
|
|
629
|
+
configurable: !0,
|
|
630
|
+
enumerable: !0
|
|
631
|
+
}) : BUILD.lazyLoad && BUILD.method && 1 & o && 64 & n && Object.defineProperty(s, e, {
|
|
632
|
+
value(...t) {
|
|
633
|
+
const o = getHostRef(this);
|
|
634
|
+
return o.$onInstancePromise$.then((() => o.$lazyInstance$[e](...t)));
|
|
635
|
+
}
|
|
636
|
+
});
|
|
637
|
+
})), BUILD.observeAttribute && (!BUILD.lazyLoad || 1 & o)) {
|
|
638
|
+
const o = new Map;
|
|
639
|
+
s.attributeChangedCallback = function(e, t, n) {
|
|
640
|
+
plt.jmp((() => {
|
|
641
|
+
const t = o.get(e);
|
|
642
|
+
this[t] = (null !== n || "boolean" != typeof this[t]) && n;
|
|
643
|
+
}));
|
|
644
|
+
}, e.observedAttributes = n.filter((([e, t]) => 15 & t[0])).map((([e, n]) => {
|
|
645
|
+
const s = n[1] || e;
|
|
646
|
+
return o.set(s, e), BUILD.reflect && 512 & n[0] && t.$attrsToReflect$.push([ e, s ]),
|
|
647
|
+
s;
|
|
648
|
+
}));
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
return e;
|
|
652
|
+
}, initializeComponent = async (e, t, o, n, s) => {
|
|
653
|
+
if ((BUILD.lazyLoad || BUILD.hydrateServerSide || BUILD.style) && 0 == (32 & t.$flags$)) {
|
|
654
|
+
if (BUILD.lazyLoad || BUILD.hydrateClientSide) {
|
|
655
|
+
if (t.$flags$ |= 32, (s = loadModule(o)).then) {
|
|
656
|
+
const e = (a = `st:load:${o.$tagName$}:${t.$modeName$}`, l = `[Rindo] Load module for <${o.$tagName$}>`,
|
|
657
|
+
BUILD.profile && performance.mark ? (0 === performance.getEntriesByName(a).length && performance.mark(a),
|
|
658
|
+
() => {
|
|
659
|
+
0 === performance.getEntriesByName(l).length && performance.measure(l, a);
|
|
660
|
+
}) : () => {});
|
|
661
|
+
s = await s, e();
|
|
662
|
+
}
|
|
663
|
+
if ((BUILD.isDev || BUILD.isDebug) && !s) throw new Error(`Constructor for "${o.$tagName$}#${t.$modeName$}" was not found`);
|
|
664
|
+
BUILD.member && !s.isProxied && (BUILD.watchCallback && (o.$watchers$ = s.watchers),
|
|
665
|
+
proxyComponent(s, o, 2), s.isProxied = !0);
|
|
666
|
+
const e = createTime("createInstance", o.$tagName$);
|
|
667
|
+
BUILD.member && (t.$flags$ |= 8);
|
|
668
|
+
try {
|
|
669
|
+
new s(t);
|
|
670
|
+
} catch (e) {
|
|
671
|
+
consoleError(e);
|
|
672
|
+
}
|
|
673
|
+
BUILD.member && (t.$flags$ &= -9), BUILD.watchCallback && (t.$flags$ |= 128), e(),
|
|
674
|
+
fireConnectedCallback(t.$lazyInstance$);
|
|
675
|
+
} else s = e.constructor, t.$flags$ |= 160;
|
|
676
|
+
if (BUILD.style && s.style) {
|
|
677
|
+
let n = s.style;
|
|
678
|
+
BUILD.mode && "string" != typeof n && (n = n[t.$modeName$ = computeMode(e)], BUILD.hydrateServerSide && t.$modeName$ && e.setAttribute("s-mode", t.$modeName$));
|
|
679
|
+
const a = getScopeId(o, t.$modeName$);
|
|
680
|
+
if (!styles.has(a)) {
|
|
681
|
+
const e = createTime("registerStyles", o.$tagName$);
|
|
682
|
+
!BUILD.hydrateServerSide && BUILD.shadowDom && BUILD.shadowDomShim && 8 & o.$flags$ && (n = await import("./shadow-css.js").then((e => e.scopeCss(n, a, !1)))),
|
|
683
|
+
registerStyle(a, n, o.$flags$), e();
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
var a, l;
|
|
688
|
+
const r = t.$ancestorComponent$, i = () => scheduleUpdate(t, !0);
|
|
689
|
+
BUILD.asyncLoading && r && r["s-rc"] ? r["s-rc"].push(i) : i();
|
|
690
|
+
}, fireConnectedCallback = e => {
|
|
691
|
+
BUILD.lazyLoad && BUILD.connectedCallback && safeCall(e, "connectedCallback");
|
|
692
|
+
}, connectedCallback = e => {
|
|
693
|
+
if (0 == (1 & plt.$flags$)) {
|
|
694
|
+
const t = getHostRef(e), o = t.$cmpMeta$, n = createTime("connectedCallback", o.$tagName$);
|
|
695
|
+
if (BUILD.hostListenerTargetParent && addHostEventListeners(e, t, o.$listeners$, !0),
|
|
696
|
+
1 & t.$flags$) addHostEventListeners(e, t, o.$listeners$, !1), fireConnectedCallback(t.$lazyInstance$); else {
|
|
697
|
+
let n;
|
|
698
|
+
if (t.$flags$ |= 1, BUILD.hydrateClientSide && (n = e.getAttribute("s-id"), n)) {
|
|
699
|
+
if (BUILD.shadowDom && supportsShadow && 1 & o.$flags$) {
|
|
700
|
+
const t = BUILD.mode ? addStyle(e.shadowRoot, o, e.getAttribute("s-mode")) : addStyle(e.shadowRoot, o);
|
|
701
|
+
e.classList.remove(t + "-h", t + "-s");
|
|
702
|
+
}
|
|
703
|
+
((e, t, o, n) => {
|
|
704
|
+
const s = createTime("hydrateClient", t), a = e.shadowRoot, l = [], r = BUILD.shadowDom && a ? [] : null, i = n.$vnode$ = newVNode(t, null);
|
|
705
|
+
plt.$orgLocNodes$ || initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = new Map),
|
|
706
|
+
e["s-id"] = o, e.removeAttribute("s-id"), clientHydrate(i, l, [], r, e, e, o), l.map((e => {
|
|
707
|
+
const o = e.$hostId$ + "." + e.$nodeId$, n = plt.$orgLocNodes$.get(o), s = e.$elm$;
|
|
708
|
+
n && supportsShadow && "" === n["s-en"] && n.parentNode.insertBefore(s, n.nextSibling),
|
|
709
|
+
a || (s["s-hn"] = t, n && (s["s-ol"] = n, s["s-ol"]["s-nr"] = s)), plt.$orgLocNodes$.delete(o);
|
|
710
|
+
})), BUILD.shadowDom && a && r.map((e => {
|
|
711
|
+
e && a.appendChild(e);
|
|
712
|
+
})), s();
|
|
713
|
+
})(e, o.$tagName$, n, t);
|
|
714
|
+
}
|
|
715
|
+
if (BUILD.slotRelocation && !n && (BUILD.hydrateServerSide || (BUILD.slot || BUILD.shadowDom) && 12 & o.$flags$) && setContentReference(e),
|
|
716
|
+
BUILD.asyncLoading) {
|
|
717
|
+
let o = e;
|
|
718
|
+
for (;o = o.parentNode || o.host; ) if (BUILD.hydrateClientSide && 1 === o.nodeType && o.hasAttribute("s-id") && o["s-p"] || o["s-p"]) {
|
|
719
|
+
attachToAncestor(t, t.$ancestorComponent$ = o);
|
|
720
|
+
break;
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
BUILD.prop && BUILD.lazyLoad && !BUILD.hydrateServerSide && o.$members$ && Object.entries(o.$members$).map((([t, [o]]) => {
|
|
724
|
+
if (31 & o && e.hasOwnProperty(t)) {
|
|
725
|
+
const o = e[t];
|
|
726
|
+
delete e[t], e[t] = o;
|
|
727
|
+
}
|
|
728
|
+
})), BUILD.initializeNextTick ? nextTick((() => initializeComponent(e, t, o))) : initializeComponent(e, t, o);
|
|
729
|
+
}
|
|
730
|
+
n();
|
|
731
|
+
}
|
|
732
|
+
}, setContentReference = e => {
|
|
733
|
+
const t = e["s-cr"] = doc.createComment(BUILD.isDebug ? `content-ref (host=${e.localName})` : "");
|
|
734
|
+
t["s-cn"] = !0, e.insertBefore(t, e.firstChild);
|
|
735
|
+
}, disconnectedCallback = e => {
|
|
736
|
+
if (0 == (1 & plt.$flags$)) {
|
|
737
|
+
const t = getHostRef(e), o = BUILD.lazyLoad ? t.$lazyInstance$ : e;
|
|
738
|
+
BUILD.hostListener && t.$rmListeners$ && (t.$rmListeners$.map((e => e())), t.$rmListeners$ = void 0),
|
|
739
|
+
BUILD.cssVarShim && plt.$cssShim$ && plt.$cssShim$.removeHost(e), BUILD.lazyLoad && BUILD.disconnectedCallback && safeCall(o, "disconnectedCallback"),
|
|
740
|
+
BUILD.cmpDidUnload && safeCall(o, "componentDidUnload");
|
|
741
|
+
}
|
|
742
|
+
}, defineCustomElement = (e, t) => {
|
|
743
|
+
customElements.define(t[1], proxyCustomElement(e, t));
|
|
744
|
+
}, proxyCustomElement = (e, t) => {
|
|
745
|
+
const o = {
|
|
746
|
+
$flags$: t[0],
|
|
747
|
+
$tagName$: t[1]
|
|
748
|
+
};
|
|
749
|
+
BUILD.member && (o.$members$ = t[2]), BUILD.hostListener && (o.$listeners$ = t[3]),
|
|
750
|
+
BUILD.watchCallback && (o.$watchers$ = e.$watchers$), BUILD.reflect && (o.$attrsToReflect$ = []),
|
|
751
|
+
BUILD.shadowDom && !supportsShadow && 1 & o.$flags$ && (o.$flags$ |= 8);
|
|
752
|
+
const n = e.prototype.connectedCallback, s = e.prototype.disconnectedCallback;
|
|
753
|
+
return Object.assign(e.prototype, {
|
|
754
|
+
__registerHost() {
|
|
755
|
+
registerHost(this, o);
|
|
756
|
+
},
|
|
757
|
+
connectedCallback() {
|
|
758
|
+
connectedCallback(this), BUILD.connectedCallback && n && n.call(this);
|
|
759
|
+
},
|
|
760
|
+
disconnectedCallback() {
|
|
761
|
+
disconnectedCallback(this), BUILD.disconnectedCallback && s && s.call(this);
|
|
762
|
+
}
|
|
763
|
+
}), e.is = o.$tagName$, proxyComponent(e, o, 3);
|
|
764
|
+
}, forceModeUpdate = e => {
|
|
765
|
+
if (BUILD.style && BUILD.mode && !BUILD.lazyLoad) {
|
|
766
|
+
const t = computeMode(e), o = getHostRef(e);
|
|
767
|
+
if (o.$modeName$ !== t) {
|
|
768
|
+
const n = o.$cmpMeta$, s = e["s-sc"], a = getScopeId(n, t), l = e.constructor.style[t];
|
|
769
|
+
n.$flags$, l && (styles.has(a) || registerStyle(a, l), o.$modeName$ = t, e.classList.remove(s + "-h", s + "-s"),
|
|
770
|
+
attachStyles(o), forceUpdate$1(e));
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
}, attachShadow = e => {
|
|
774
|
+
e.shadowRoot = e;
|
|
775
|
+
}, patchCloneNode = e => {
|
|
776
|
+
const t = e.cloneNode;
|
|
777
|
+
e.cloneNode = function(e) {
|
|
778
|
+
const o = this, n = !!BUILD.shadowDom && o.shadowRoot && supportsShadow, s = t.call(o, !!n && e);
|
|
779
|
+
if (BUILD.slot && !n && e) {
|
|
780
|
+
let e, t, n = 0, a = [ "s-id", "s-cr", "s-lr", "s-rc", "s-sc", "s-p", "s-cn", "s-sr", "s-sn", "s-hn", "s-ol", "s-nr", "s-si" ];
|
|
781
|
+
for (;n < o.childNodes.length; n++) e = o.childNodes[n]["s-nr"], t = a.every((e => !o.childNodes[n][e])),
|
|
782
|
+
e && (BUILD.appendChildSlotFix && s.__appendChild ? s.__appendChild(e.cloneNode(!0)) : s.appendChild(e.cloneNode(!0))),
|
|
783
|
+
t && s.appendChild(o.childNodes[n].cloneNode(!0));
|
|
784
|
+
}
|
|
785
|
+
return s;
|
|
786
|
+
};
|
|
787
|
+
}, patchSlotAppendChild = e => {
|
|
788
|
+
e.__appendChild = e.appendChild, e.appendChild = function(e) {
|
|
789
|
+
const t = e["s-sn"] = getSlotName(e), o = getHostSlotNode(this.childNodes, t);
|
|
790
|
+
if (o) {
|
|
791
|
+
const n = getHostSlotChildNodes(o, t), s = n[n.length - 1];
|
|
792
|
+
return s.parentNode.insertBefore(e, s.nextSibling);
|
|
793
|
+
}
|
|
794
|
+
return this.__appendChild(e);
|
|
795
|
+
};
|
|
796
|
+
}, patchChildSlotNodes = (e, t) => {
|
|
797
|
+
class o extends Array {
|
|
798
|
+
item(e) {
|
|
799
|
+
return this[e];
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
if (8 & t.$flags$) {
|
|
803
|
+
const t = e.__lookupGetter__("childNodes");
|
|
804
|
+
Object.defineProperty(e, "children", {
|
|
805
|
+
get() {
|
|
806
|
+
return this.childNodes.map((e => 1 === e.nodeType));
|
|
807
|
+
}
|
|
808
|
+
}), Object.defineProperty(e, "childElementCount", {
|
|
809
|
+
get: () => e.children.length
|
|
810
|
+
}), Object.defineProperty(e, "childNodes", {
|
|
811
|
+
get() {
|
|
812
|
+
const e = t.call(this);
|
|
813
|
+
if (0 == (1 & plt.$flags$) && 2 & getHostRef(this).$flags$) {
|
|
814
|
+
const t = new o;
|
|
815
|
+
for (let o = 0; o < e.length; o++) {
|
|
816
|
+
const n = e[o]["s-nr"];
|
|
817
|
+
n && t.push(n);
|
|
818
|
+
}
|
|
819
|
+
return t;
|
|
820
|
+
}
|
|
821
|
+
return o.from(e);
|
|
822
|
+
}
|
|
823
|
+
});
|
|
824
|
+
}
|
|
825
|
+
}, getSlotName = e => e["s-sn"] || 1 === e.nodeType && e.getAttribute("slot") || "", getHostSlotNode = (e, t) => {
|
|
826
|
+
let o, n = 0;
|
|
827
|
+
for (;n < e.length; n++) {
|
|
828
|
+
if (o = e[n], o["s-sr"] && o["s-sn"] === t) return o;
|
|
829
|
+
if (o = getHostSlotNode(o.childNodes, t), o) return o;
|
|
830
|
+
}
|
|
831
|
+
return null;
|
|
832
|
+
}, getHostSlotChildNodes = (e, t) => {
|
|
833
|
+
const o = [ e ];
|
|
834
|
+
for (;(e = e.nextSibling) && e["s-sn"] === t; ) o.push(e);
|
|
835
|
+
return o;
|
|
836
|
+
}, bootstrapLazy = (e, t = {}) => {
|
|
837
|
+
BUILD.profile && performance.mark && performance.mark("st:app:start"), (() => {
|
|
838
|
+
if (BUILD.devTools) {
|
|
839
|
+
const e = win.rindo = win.rindo || {}, t = e.inspect;
|
|
840
|
+
e.inspect = e => {
|
|
841
|
+
let o = (e => {
|
|
842
|
+
const t = getHostRef(e);
|
|
843
|
+
if (!t) return;
|
|
844
|
+
const o = t.$flags$, n = t.$hostElement$;
|
|
845
|
+
return {
|
|
846
|
+
renderCount: t.$renderCount$,
|
|
847
|
+
flags: {
|
|
848
|
+
hasRendered: !!(2 & o),
|
|
849
|
+
hasConnected: !!(1 & o),
|
|
850
|
+
isWaitingForChildren: !!(4 & o),
|
|
851
|
+
isConstructingInstance: !!(8 & o),
|
|
852
|
+
isQueuedForUpdate: !!(16 & o),
|
|
853
|
+
hasInitializedComponent: !!(32 & o),
|
|
854
|
+
hasLoadedComponent: !!(64 & o),
|
|
855
|
+
isWatchReady: !!(128 & o),
|
|
856
|
+
isListenReady: !!(256 & o),
|
|
857
|
+
needsRerender: !!(512 & o)
|
|
858
|
+
},
|
|
859
|
+
instanceValues: t.$instanceValues$,
|
|
860
|
+
ancestorComponent: t.$ancestorComponent$,
|
|
861
|
+
hostElement: n,
|
|
862
|
+
lazyInstance: t.$lazyInstance$,
|
|
863
|
+
vnode: t.$vnode$,
|
|
864
|
+
modeName: t.$modeName$,
|
|
865
|
+
onReadyPromise: t.$onReadyPromise$,
|
|
866
|
+
onReadyResolve: t.$onReadyResolve$,
|
|
867
|
+
onInstancePromise: t.$onInstancePromise$,
|
|
868
|
+
onInstanceResolve: t.$onInstanceResolve$,
|
|
869
|
+
onRenderResolve: t.$onRenderResolve$,
|
|
870
|
+
queuedListeners: t.$queuedListeners$,
|
|
871
|
+
rmListeners: t.$rmListeners$,
|
|
872
|
+
"s-id": n["s-id"],
|
|
873
|
+
"s-cr": n["s-cr"],
|
|
874
|
+
"s-lr": n["s-lr"],
|
|
875
|
+
"s-p": n["s-p"],
|
|
876
|
+
"s-rc": n["s-rc"],
|
|
877
|
+
"s-sc": n["s-sc"]
|
|
878
|
+
};
|
|
879
|
+
})(e);
|
|
880
|
+
return o || "function" != typeof t || (o = t(e)), o;
|
|
881
|
+
};
|
|
882
|
+
}
|
|
883
|
+
})();
|
|
884
|
+
const o = createTime("bootstrapLazy"), n = [], s = t.exclude || [], a = win.customElements, l = doc.head, r = l.querySelector("meta[charset]"), i = doc.createElement("style"), d = [], c = doc.querySelectorAll("[sty-id]");
|
|
885
|
+
let $, m = !0, p = 0;
|
|
886
|
+
if (Object.assign(plt, t), plt.$resourcesUrl$ = new URL(t.resourcesUrl || "./", doc.baseURI).href,
|
|
887
|
+
BUILD.asyncQueue && t.syncQueue && (plt.$flags$ |= 4), BUILD.hydrateClientSide && (plt.$flags$ |= 2),
|
|
888
|
+
BUILD.hydrateClientSide && BUILD.shadowDom) for (;p < c.length; p++) registerStyle(c[p].getAttribute("sty-id"), c[p].innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{"));
|
|
889
|
+
e.map((e => e[1].map((o => {
|
|
890
|
+
const l = {
|
|
891
|
+
$flags$: o[0],
|
|
892
|
+
$tagName$: o[1],
|
|
893
|
+
$members$: o[2],
|
|
894
|
+
$listeners$: o[3]
|
|
895
|
+
};
|
|
896
|
+
BUILD.member && (l.$members$ = o[2]), BUILD.hostListener && (l.$listeners$ = o[3]),
|
|
897
|
+
BUILD.reflect && (l.$attrsToReflect$ = []), BUILD.watchCallback && (l.$watchers$ = {}),
|
|
898
|
+
BUILD.shadowDom && !supportsShadow && 1 & l.$flags$ && (l.$flags$ |= 8);
|
|
899
|
+
const r = BUILD.transformTagName && t.transformTagName ? t.transformTagName(l.$tagName$) : l.$tagName$, i = class extends HTMLElement {
|
|
900
|
+
constructor(e) {
|
|
901
|
+
super(e), registerHost(e = this, l), BUILD.shadowDom && 1 & l.$flags$ && (BUILD.hydrateServerSide || "shadowRoot" in e || (e.shadowRoot = e)),
|
|
902
|
+
BUILD.slotChildNodesFix && patchChildSlotNodes(e, l);
|
|
903
|
+
}
|
|
904
|
+
connectedCallback() {
|
|
905
|
+
$ && (clearTimeout($), $ = null), m ? d.push(this) : plt.jmp((() => connectedCallback(this)));
|
|
906
|
+
}
|
|
907
|
+
disconnectedCallback() {
|
|
908
|
+
plt.jmp((() => disconnectedCallback(this)));
|
|
909
|
+
}
|
|
910
|
+
componentOnReady() {
|
|
911
|
+
return getHostRef(this).$onReadyPromise$;
|
|
912
|
+
}
|
|
913
|
+
};
|
|
914
|
+
BUILD.cloneNodeFix && patchCloneNode(i.prototype), BUILD.appendChildSlotFix && patchSlotAppendChild(i.prototype),
|
|
915
|
+
BUILD.hotModuleReplacement && (i.prototype["s-hmr"] = function(e) {
|
|
916
|
+
((e, t, o) => {
|
|
917
|
+
const n = getHostRef(e);
|
|
918
|
+
n.$flags$ = 1, e["s-hmr-load"] = () => {
|
|
919
|
+
delete e["s-hmr-load"];
|
|
920
|
+
}, initializeComponent(e, n, t);
|
|
921
|
+
})(this, l);
|
|
922
|
+
}), l.$lazyBundleId$ = e[0], s.includes(r) || a.get(r) || (n.push(r), a.define(r, proxyComponent(i, l, 1)));
|
|
923
|
+
})))), (BUILD.hydratedClass || BUILD.hydratedAttribute) && (i.innerHTML = n + "{visibility:hidden}.hydrated{visibility:inherit}",
|
|
924
|
+
i.setAttribute("data-styles", ""), l.insertBefore(i, r ? r.nextSibling : l.firstChild)),
|
|
925
|
+
m = !1, d.length ? d.map((e => e.connectedCallback())) : BUILD.profile ? plt.jmp((() => $ = setTimeout(appDidLoad, 30, "timeout"))) : plt.jmp((() => $ = setTimeout(appDidLoad, 30))),
|
|
926
|
+
o();
|
|
927
|
+
}, getAssetPath = e => {
|
|
928
|
+
const t = new URL(e, plt.$resourcesUrl$);
|
|
929
|
+
return t.origin !== win.location.origin ? t.href : t.pathname;
|
|
930
|
+
}, setAssetPath = e => plt.$resourcesUrl$ = e, getConnect = (e, t) => {
|
|
931
|
+
const o = () => {
|
|
932
|
+
let e = doc.querySelector(t);
|
|
933
|
+
return e || (e = doc.createElement(t), doc.body.appendChild(e)), "function" == typeof e.componentOnReady ? e.componentOnReady() : Promise.resolve(e);
|
|
934
|
+
};
|
|
935
|
+
return {
|
|
936
|
+
create: (...e) => o().then((t => t.create(...e))),
|
|
937
|
+
componentOnReady: o
|
|
938
|
+
};
|
|
939
|
+
}, getContext = (e, t) => t in Context ? Context[t] : "window" === t ? win : "document" === t ? doc : "isServer" === t || "isPrerender" === t ? !!BUILD.hydrateServerSide : "isClient" === t ? !BUILD.hydrateServerSide : "resourcesUrl" === t || "publicPath" === t ? getAssetPath(".") : "queue" === t ? {
|
|
940
|
+
write: writeTask,
|
|
941
|
+
read: readTask,
|
|
942
|
+
tick: {
|
|
943
|
+
then: e => nextTick(e)
|
|
944
|
+
}
|
|
945
|
+
} : void 0, insertVdomAnnotations = (e, t) => {
|
|
946
|
+
if (null != e) {
|
|
947
|
+
const o = {
|
|
948
|
+
hostIds: 0,
|
|
949
|
+
rootLevelIds: 0,
|
|
950
|
+
staticComponents: new Set(t)
|
|
951
|
+
}, n = [];
|
|
952
|
+
parseVNodeAnnotations(e, e.body, o, n), n.forEach((t => {
|
|
953
|
+
if (null != t) {
|
|
954
|
+
const n = t["s-nr"];
|
|
955
|
+
let s = n["s-host-id"], a = n["s-node-id"], l = `${s}.${a}`;
|
|
956
|
+
if (null == s) if (s = 0, o.rootLevelIds++, a = o.rootLevelIds, l = `${s}.${a}`,
|
|
957
|
+
1 === n.nodeType) n.setAttribute("c-id", l); else if (3 === n.nodeType) {
|
|
958
|
+
if (0 === s && "" === n.nodeValue.trim()) return void t.remove();
|
|
959
|
+
const o = e.createComment(l);
|
|
960
|
+
o.nodeValue = `t.${l}`, n.parentNode.insertBefore(o, n);
|
|
961
|
+
}
|
|
962
|
+
let r = `o.${l}`;
|
|
963
|
+
const i = t.parentElement;
|
|
964
|
+
i && ("" === i["s-en"] ? r += "." : "c" === i["s-en"] && (r += ".c")), t.nodeValue = r;
|
|
965
|
+
}
|
|
966
|
+
}));
|
|
967
|
+
}
|
|
968
|
+
}, parseVNodeAnnotations = (e, t, o, n) => {
|
|
969
|
+
null != t && (null != t["s-nr"] && n.push(t), 1 === t.nodeType && t.childNodes.forEach((t => {
|
|
970
|
+
const s = getHostRef(t);
|
|
971
|
+
if (null != s && !o.staticComponents.has(t.nodeName.toLowerCase())) {
|
|
972
|
+
const n = {
|
|
973
|
+
nodeIds: 0
|
|
974
|
+
};
|
|
975
|
+
insertVNodeAnnotations(e, t, s.$vnode$, o, n);
|
|
976
|
+
}
|
|
977
|
+
parseVNodeAnnotations(e, t, o, n);
|
|
978
|
+
})));
|
|
979
|
+
}, insertVNodeAnnotations = (e, t, o, n, s) => {
|
|
980
|
+
if (null != o) {
|
|
981
|
+
const a = ++n.hostIds;
|
|
982
|
+
if (t.setAttribute("s-id", a), null != t["s-cr"] && (t["s-cr"].nodeValue = `r.${a}`),
|
|
983
|
+
null != o.$children$) {
|
|
984
|
+
const t = 0;
|
|
985
|
+
o.$children$.forEach(((o, n) => {
|
|
986
|
+
insertChildVNodeAnnotations(e, o, s, a, t, n);
|
|
987
|
+
}));
|
|
988
|
+
}
|
|
989
|
+
if (t && o && o.$elm$ && !t.hasAttribute("c-id")) {
|
|
990
|
+
const e = t.parentElement;
|
|
991
|
+
if (e && e.childNodes) {
|
|
992
|
+
const n = Array.from(e.childNodes), s = n.find((e => 8 === e.nodeType && e["s-sr"]));
|
|
993
|
+
if (s) {
|
|
994
|
+
const e = n.indexOf(t) - 1;
|
|
995
|
+
o.$elm$.setAttribute("c-id", `${s["s-host-id"]}.${s["s-node-id"]}.0.${e}`);
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
}, insertChildVNodeAnnotations = (e, t, o, n, s, a) => {
|
|
1001
|
+
const l = t.$elm$;
|
|
1002
|
+
if (null == l) return;
|
|
1003
|
+
const r = o.nodeIds++, i = `${n}.${r}.${s}.${a}`;
|
|
1004
|
+
if (l["s-host-id"] = n, l["s-node-id"] = r, 1 === l.nodeType) l.setAttribute("c-id", i); else if (3 === l.nodeType) {
|
|
1005
|
+
const t = l.parentNode, o = t.nodeName;
|
|
1006
|
+
if ("STYLE" !== o && "SCRIPT" !== o) {
|
|
1007
|
+
const o = `t.${i}`, n = e.createComment(o);
|
|
1008
|
+
t.insertBefore(n, l);
|
|
1009
|
+
}
|
|
1010
|
+
} else if (8 === l.nodeType && l["s-sr"]) {
|
|
1011
|
+
const e = `s.${i}.${l["s-sn"] || ""}`;
|
|
1012
|
+
l.nodeValue = e;
|
|
1013
|
+
}
|
|
1014
|
+
if (null != t.$children$) {
|
|
1015
|
+
const a = s + 1;
|
|
1016
|
+
t.$children$.forEach(((t, s) => {
|
|
1017
|
+
insertChildVNodeAnnotations(e, t, o, n, a, s);
|
|
1018
|
+
}));
|
|
1019
|
+
}
|
|
1020
|
+
}, Fragment = (e, t) => t, NO_HYDRATE_TAGS = new Set([ "CODE", "HEAD", "IFRAME", "INPUT", "OBJECT", "OUTPUT", "NOSCRIPT", "PRE", "SCRIPT", "SELECT", "STYLE", "TEMPLATE", "TEXTAREA" ]), hAsync = (e, t, ...o) => {
|
|
1021
|
+
if (Array.isArray(o) && o.length > 0) {
|
|
1022
|
+
const n = o.flat(1 / 0);
|
|
1023
|
+
return n.some(isPromise) ? Promise.all(n).then((o => h(e, t, ...o))).catch((o => h(e, t))) : h(e, t, ...o);
|
|
1024
|
+
}
|
|
1025
|
+
return h(e, t);
|
|
1026
|
+
};
|
|
1027
|
+
|
|
1028
|
+
let customError;
|
|
1029
|
+
|
|
1030
|
+
const cmpModules = new Map, getModule = e => {
|
|
1031
|
+
if ("string" == typeof e) {
|
|
1032
|
+
e = e.toLowerCase();
|
|
1033
|
+
const t = cmpModules.get(e);
|
|
1034
|
+
if (null != t) return t[e];
|
|
1035
|
+
}
|
|
1036
|
+
return null;
|
|
1037
|
+
}, loadModule = (e, t, o) => getModule(e.$tagName$), isMemberInElement = (e, t) => {
|
|
1038
|
+
if (null != e) {
|
|
1039
|
+
if (t in e) return !0;
|
|
1040
|
+
const o = getModule(e.nodeName);
|
|
1041
|
+
if (null != o) {
|
|
1042
|
+
const e = o;
|
|
1043
|
+
if (null != e && null != e.cmpMeta && null != e.cmpMeta.$members$) return t in e.cmpMeta.$members$;
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
return !1;
|
|
1047
|
+
}, registerComponents = e => {
|
|
1048
|
+
for (const t of e) {
|
|
1049
|
+
const e = t.cmpMeta.$tagName$;
|
|
1050
|
+
cmpModules.set(e, {
|
|
1051
|
+
[e]: t
|
|
1052
|
+
});
|
|
1053
|
+
}
|
|
1054
|
+
}, win = window, doc = win.document, readTask = e => {
|
|
1055
|
+
process.nextTick((() => {
|
|
1056
|
+
try {
|
|
1057
|
+
e();
|
|
1058
|
+
} catch (e) {
|
|
1059
|
+
consoleError(e);
|
|
1060
|
+
}
|
|
1061
|
+
}));
|
|
1062
|
+
}, writeTask = e => {
|
|
1063
|
+
process.nextTick((() => {
|
|
1064
|
+
try {
|
|
1065
|
+
e();
|
|
1066
|
+
} catch (e) {
|
|
1067
|
+
consoleError(e);
|
|
1068
|
+
}
|
|
1069
|
+
}));
|
|
1070
|
+
}, resolved = Promise.resolve(), nextTick = e => resolved.then(e), defaultConsoleError = e => {
|
|
1071
|
+
null != e && console.error(e.stack || e.message || e);
|
|
1072
|
+
}, consoleError = (e, t) => (customError || defaultConsoleError)(e, t), consoleDevError = (...e) => {}, consoleDevWarn = (...e) => {}, consoleDevInfo = (...e) => {}, setErrorHandler = e => customError = e, Context = {}, plt = {
|
|
1073
|
+
$flags$: 0,
|
|
1074
|
+
$resourcesUrl$: "",
|
|
1075
|
+
jmp: e => e(),
|
|
1076
|
+
raf: e => requestAnimationFrame(e),
|
|
1077
|
+
ael: (e, t, o, n) => e.addEventListener(t, o, n),
|
|
1078
|
+
rel: (e, t, o, n) => e.removeEventListener(t, o, n),
|
|
1079
|
+
ce: (e, t) => new win.CustomEvent(e, t)
|
|
1080
|
+
}, supportsShadow = !1, supportsListenerOptions = !1, supportsConstructibleStylesheets = !1, hostRefs = new WeakMap, getHostRef = e => hostRefs.get(e), registerInstance = (e, t) => hostRefs.set(t.$lazyInstance$ = e, t), registerHost = (e, t) => {
|
|
1081
|
+
const o = {
|
|
1082
|
+
$flags$: 0,
|
|
1083
|
+
$cmpMeta$: t,
|
|
1084
|
+
$hostElement$: e,
|
|
1085
|
+
$instanceValues$: new Map,
|
|
1086
|
+
$renderCount$: 0
|
|
1087
|
+
};
|
|
1088
|
+
return o.$onInstancePromise$ = new Promise((e => o.$onInstanceResolve$ = e)), o.$onReadyPromise$ = new Promise((e => o.$onReadyResolve$ = e)),
|
|
1089
|
+
e["s-p"] = [], e["s-rc"] = [], addHostEventListeners(e, o, t.$listeners$, !1), hostRefs.set(e, o);
|
|
1090
|
+
}, Build = {
|
|
1091
|
+
isDev: !1,
|
|
1092
|
+
isBrowser: !1,
|
|
1093
|
+
isServer: !0,
|
|
1094
|
+
isTesting: !1
|
|
1095
|
+
}, styles = new Map, modeResolutionChain = [];
|
|
1096
|
+
|
|
1097
|
+
export { Build, Context, Fragment, Host, addHostEventListeners, attachShadow, bootstrapLazy, cmpModules, connectedCallback, consoleDevError, consoleDevInfo, consoleDevWarn, consoleError, createEvent, defineCustomElement, disconnectedCallback, doc, forceModeUpdate, forceUpdate$1 as forceUpdate, getAssetPath, getConnect, getContext, getElement, getHostRef, getMode, getRenderingRef, getValue, hAsync as h, hydrateApp, insertVdomAnnotations, isMemberInElement, loadModule, modeResolutionChain, nextTick, parsePropertyValue, plt, postUpdateComponent, proxyComponent, proxyCustomElement, readTask, registerComponents, registerHost, registerInstance, renderVdom, setAssetPath, setErrorHandler, setMode, setValue, styles, supportsConstructibleStylesheets, supportsListenerOptions, supportsShadow, win, writeTask };
|