@stencil/core 4.33.1 → 4.34.0-dev.1749704519.d1b414d

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/cli/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil CLI (CommonJS) v4.33.1 | MIT Licensed | https://stenciljs.com
2
+ Stencil CLI (CommonJS) v4.34.0-dev.1749704519.d1b414d | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;
package/cli/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil CLI v4.33.1 | MIT Licensed | https://stenciljs.com
2
+ Stencil CLI v4.34.0-dev.1749704519.d1b414d | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  var __create = Object.create;
5
5
  var __defProp = Object.defineProperty;
package/cli/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/cli",
3
- "version": "4.33.1",
3
+ "version": "4.34.0-dev.1749704519.d1b414d",
4
4
  "description": "Stencil CLI.",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/compiler",
3
- "version": "4.33.1",
3
+ "version": "4.34.0-dev.1749704519.d1b414d",
4
4
  "description": "Stencil Compiler.",
5
5
  "main": "./stencil.js",
6
6
  "types": "./stencil.d.ts",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Compiler v4.33.1 | MIT Licensed | https://stenciljs.com
2
+ Stencil Compiler v4.34.0-dev.1749704519.d1b414d | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;
@@ -217515,9 +217515,9 @@ async function rollupInternal(rawInputOptions, watcher) {
217515
217515
  timeEnd("initialize", 2);
217516
217516
  await graph.build();
217517
217517
  } catch (error_) {
217518
- const watchFiles = Object.keys(graph.watchFiles);
217519
- if (watchFiles.length > 0) {
217520
- error_.watchFiles = watchFiles;
217518
+ const watchFiles2 = Object.keys(graph.watchFiles);
217519
+ if (watchFiles2.length > 0) {
217520
+ error_.watchFiles = watchFiles2;
217521
217521
  }
217522
217522
  await graph.pluginDriver.hookParallel("buildEnd", [error_]);
217523
217523
  await graph.pluginDriver.hookParallel("closeBundle", []);
@@ -232674,7 +232674,7 @@ module.exports = __toCommonJS(index_exports);
232674
232674
  var import_typescript70 = __toESM(require_typescript_5_5_4_bundle_cache_min());
232675
232675
 
232676
232676
  // src/version.ts
232677
- var buildId = "1748987389";
232677
+ var buildId = "1749704519";
232678
232678
  var minfyJsId = "terser5.37.0_7";
232679
232679
  var optimizeCssId = "autoprefixer10.4.19_postcss8.5.3_7";
232680
232680
  var parse5Version = "7.2.1";
@@ -232682,8 +232682,8 @@ var rollupVersion = "4.34.9";
232682
232682
  var jqueryVersion = "4.0.0-pre";
232683
232683
  var terserVersion = "5.37.0";
232684
232684
  var typescriptVersion = "5.5.4";
232685
- var vermoji = "\u{1F943}";
232686
- var version = "4.33.1";
232685
+ var vermoji = "\u{1F307}";
232686
+ var version = "4.34.0-dev.1749704519.d1b414d";
232687
232687
  var versions = {
232688
232688
  stencil: version,
232689
232689
  parse5: parse5Version,
@@ -242918,7 +242918,7 @@ var extTransformsPlugin = (config, compilerCtx, buildCtx) => {
242918
242918
  const pluginTransforms = await runPluginTransformsEsmImports(config, compilerCtx, buildCtx, code, filePath);
242919
242919
  if (data.tag) {
242920
242920
  cmp = buildCtx.components.find((c) => c.tagName === data.tag);
242921
- const moduleFile = cmp && compilerCtx.moduleMap.get(cmp.sourceFilePath);
242921
+ const moduleFile = cmp && !cmp.isCollectionDependency && compilerCtx.moduleMap.get(cmp.sourceFilePath);
242922
242922
  if (moduleFile) {
242923
242923
  const collectionDirs = config.outputTargets.filter(isOutputTargetDistCollection);
242924
242924
  const relPath = relative(config.srcDir, pluginTransforms.id);
@@ -258643,6 +258643,94 @@ var relDts = (fromPath, dtsPath) => {
258643
258643
  // src/compiler/types/generate-app-types.ts
258644
258644
  var import_path42 = require("path");
258645
258645
 
258646
+ // src/compiler/types/constants.ts
258647
+ var HTML_ELEMENT_METHODS = /* @__PURE__ */ new Set([
258648
+ // HTMLElement methods
258649
+ "attachInternals",
258650
+ "blur",
258651
+ "click",
258652
+ "focus",
258653
+ "hidePopover",
258654
+ "showPopover",
258655
+ "togglePopover",
258656
+ // Element methods
258657
+ "after",
258658
+ "animate",
258659
+ "append",
258660
+ "attachShadow",
258661
+ "before",
258662
+ "checkVisibility",
258663
+ "closest",
258664
+ "computedStyleMap",
258665
+ "getAnimations",
258666
+ "getAttribute",
258667
+ "getAttributeNames",
258668
+ "getAttributeNode",
258669
+ "getAttributeNodeNS",
258670
+ "getAttributeNS",
258671
+ "getBoundingClientRect",
258672
+ "getClientRects",
258673
+ "getElementsByClassName",
258674
+ "getElementsByTagName",
258675
+ "getElementsByTagNameNS",
258676
+ "getHTML",
258677
+ "hasAttribute",
258678
+ "hasAttributeNS",
258679
+ "hasAttributes",
258680
+ "hasPointerCapture",
258681
+ "insertAdjacentElement",
258682
+ "insertAdjacentHTML",
258683
+ "insertAdjacentText",
258684
+ "matches",
258685
+ "moveBefore",
258686
+ "prepend",
258687
+ "querySelector",
258688
+ "querySelectorAll",
258689
+ "releasePointerCapture",
258690
+ "remove",
258691
+ "removeAttribute",
258692
+ "removeAttributeNode",
258693
+ "removeAttributeNS",
258694
+ "replaceChildren",
258695
+ "replaceWith",
258696
+ "requestFullscreen",
258697
+ "requestPointerLock",
258698
+ "scroll",
258699
+ "scrollBy",
258700
+ "scrollIntoView",
258701
+ "scrollIntoViewIfNeeded",
258702
+ "scrollTo",
258703
+ "setAttribute",
258704
+ "setAttributeNode",
258705
+ "setAttributeNodeNS",
258706
+ "setAttributeNS",
258707
+ "setCapture",
258708
+ "setHTML",
258709
+ "setHTMLUnsafe",
258710
+ "setPointerCapture",
258711
+ "toggleAttribute",
258712
+ // Node methods
258713
+ "appendChild",
258714
+ "cloneNode",
258715
+ "compareDocumentPosition",
258716
+ "contains",
258717
+ "getRootNode",
258718
+ "hasChildNodes",
258719
+ "insertBefore",
258720
+ "isDefaultNamespace",
258721
+ "isEqualNode",
258722
+ "isSameNode",
258723
+ "lookupNamespaceURI",
258724
+ "lookupPrefix",
258725
+ "normalize",
258726
+ "removeChild",
258727
+ "replaceChild",
258728
+ // EventTarget methods
258729
+ "addEventListener",
258730
+ "dispatchEvent",
258731
+ "removeEventListener"
258732
+ ]);
258733
+
258646
258734
  // src/compiler/types/stencil-types.ts
258647
258735
  var import_path40 = require("path");
258648
258736
  var updateStencilTypesImports = (typesDir, dtsFilePath, dtsContent) => {
@@ -258846,6 +258934,8 @@ var generateComponentTypes = (cmp, typeImportData, areTypesInternal) => {
258846
258934
  const methodAttributes = generateMethodTypes(cmp, typeImportData);
258847
258935
  const eventAttributes = generateEventTypes(cmp, typeImportData, tagNameAsPascal);
258848
258936
  const { htmlElementEventMap, htmlElementEventListenerProperties } = generateEventListenerTypes(cmp, typeImportData);
258937
+ const conflictingMethods = methodAttributes.filter((method) => HTML_ELEMENT_METHODS.has(method.name));
258938
+ const hasMethodConflicts = conflictingMethods.length > 0;
258849
258939
  const componentAttributes = attributesToMultiLineString(
258850
258940
  [...propAttributes, ...methodAttributes],
258851
258941
  false,
@@ -258853,15 +258943,16 @@ var generateComponentTypes = (cmp, typeImportData, areTypesInternal) => {
258853
258943
  );
258854
258944
  const isDep = cmp.isCollectionDependency;
258855
258945
  const jsxAttributes = attributesToMultiLineString([...propAttributes, ...eventAttributes], true, areTypesInternal);
258946
+ const elementInterface = hasMethodConflicts ? generateElementInterfaceWithConflictResolution(
258947
+ htmlElementName,
258948
+ tagNameAsPascal,
258949
+ conflictingMethods,
258950
+ htmlElementEventListenerProperties,
258951
+ cmp.docs
258952
+ ) : generateStandardElementInterface(htmlElementName, tagNameAsPascal, htmlElementEventListenerProperties, cmp.docs);
258856
258953
  const element = [
258857
258954
  ...htmlElementEventMap,
258858
- addDocBlock(
258859
- ` interface ${htmlElementName} extends Components.${tagNameAsPascal}, HTMLStencilElement {`,
258860
- cmp.docs,
258861
- 4
258862
- ),
258863
- ...htmlElementEventListenerProperties,
258864
- ` }`,
258955
+ ...elementInterface,
258865
258956
  ` var ${htmlElementName}: {`,
258866
258957
  ` prototype: ${htmlElementName};`,
258867
258958
  ` new (): ${htmlElementName};`,
@@ -258880,6 +258971,37 @@ ${jsxAttributes} }`,
258880
258971
  `)
258881
258972
  };
258882
258973
  };
258974
+ function generateStandardElementInterface(htmlElementName, tagNameAsPascal, htmlElementEventListenerProperties, docs) {
258975
+ return [
258976
+ addDocBlock(
258977
+ ` interface ${htmlElementName} extends Components.${tagNameAsPascal}, HTMLStencilElement {`,
258978
+ docs,
258979
+ 4
258980
+ ),
258981
+ ...htmlElementEventListenerProperties,
258982
+ ` }`
258983
+ ];
258984
+ }
258985
+ function generateElementInterfaceWithConflictResolution(htmlElementName, tagNameAsPascal, conflictingMethods, htmlElementEventListenerProperties, docs) {
258986
+ const methodOverrides = conflictingMethods.map((method) => {
258987
+ const optional = method.optional ? "?" : "";
258988
+ let docBlock = "";
258989
+ if (method.jsdoc) {
258990
+ docBlock = [` /**`, ...method.jsdoc.split("\n").map((line) => " * " + line), ` */`].join("\n") + "\n";
258991
+ }
258992
+ return `${docBlock} "${method.name}"${optional}: ${method.type};`;
258993
+ }).join("\n");
258994
+ return [
258995
+ addDocBlock(
258996
+ ` interface ${htmlElementName} extends Omit<Components.${tagNameAsPascal}, ${conflictingMethods.map((m) => `"${m.name}"`).join(" | ")}>, HTMLStencilElement {`,
258997
+ docs,
258998
+ 4
258999
+ ),
259000
+ methodOverrides,
259001
+ ...htmlElementEventListenerProperties,
259002
+ ` }`
259003
+ ];
259004
+ }
258883
259005
  var attributesToMultiLineString = (attributes, jsxAttributes, internal) => {
258884
259006
  const attributesStr = sortBy(attributes, (a) => a.name).filter((type) => {
258885
259007
  if (jsxAttributes && !internal && type.internal) {
@@ -259838,17 +259960,23 @@ var buildGlobalStyles = async (config, compilerCtx, buildCtx) => {
259838
259960
  compilerCtx.addWatchFile(globalStylePath);
259839
259961
  const transformResults = await runPluginTransforms(config, compilerCtx, buildCtx, globalStylePath);
259840
259962
  if (transformResults) {
259841
- const optimizedCss = await optimizeCss(
259842
- config,
259843
- compilerCtx,
259844
- buildCtx.diagnostics,
259845
- transformResults.code,
259846
- globalStylePath
259847
- );
259963
+ let cssCode;
259964
+ let dependencies;
259965
+ if (typeof transformResults === "string") {
259966
+ cssCode = transformResults;
259967
+ dependencies = void 0;
259968
+ } else if (typeof transformResults === "object" && transformResults.code) {
259969
+ cssCode = transformResults.code;
259970
+ dependencies = transformResults.dependencies;
259971
+ } else {
259972
+ compilerCtx.cachedGlobalStyle = null;
259973
+ return null;
259974
+ }
259975
+ const optimizedCss = await optimizeCss(config, compilerCtx, buildCtx.diagnostics, cssCode, globalStylePath);
259848
259976
  compilerCtx.cachedGlobalStyle = optimizedCss;
259849
- if (Array.isArray(transformResults.dependencies)) {
259977
+ if (Array.isArray(dependencies)) {
259850
259978
  const cssModuleImports = compilerCtx.cssModuleImports.get(globalStylePath) || [];
259851
- transformResults.dependencies.forEach((dep) => {
259979
+ dependencies.forEach((dep) => {
259852
259980
  compilerCtx.addWatchFile(dep);
259853
259981
  if (!cssModuleImports.includes(dep)) {
259854
259982
  cssModuleImports.push(dep);
@@ -263747,21 +263875,22 @@ var hasHtmlChanges = (config, buildCtx) => {
263747
263875
  return srcIndexHtmlChanged;
263748
263876
  };
263749
263877
  var isWatchIgnorePath = (config, path7) => {
263750
- if (isString(path7)) {
263751
- const isWatchIgnore = config.watchIgnoredRegex.some((reg) => reg.test(path7));
263752
- if (isWatchIgnore) {
263753
- return true;
263754
- }
263755
- const outputTargets = config.outputTargets;
263756
- const ignoreFiles = [
263757
- ...outputTargets.filter(isOutputTargetDocsJson).map((o) => o.file),
263758
- ...outputTargets.filter(isOutputTargetDocsJson).map((o) => o.typesFile),
263759
- ...outputTargets.filter(isOutputTargetStats).map((o) => o.file),
263760
- ...outputTargets.filter(isOutputTargetDocsVscode).map((o) => o.file)
263761
- ];
263762
- if (ignoreFiles.includes(path7)) {
263763
- return true;
263764
- }
263878
+ if (!isString(path7)) {
263879
+ return false;
263880
+ }
263881
+ const isWatchIgnore = config.watchIgnoredRegex.some((reg) => reg.test(path7));
263882
+ if (isWatchIgnore) {
263883
+ return true;
263884
+ }
263885
+ const outputTargets = config.outputTargets;
263886
+ const ignoreFiles = [
263887
+ ...outputTargets.filter(isOutputTargetDocsJson).map((o) => o.file),
263888
+ ...outputTargets.filter(isOutputTargetDocsJson).map((o) => o.typesFile),
263889
+ ...outputTargets.filter(isOutputTargetStats).map((o) => o.file),
263890
+ ...outputTargets.filter(isOutputTargetDocsVscode).map((o) => o.file)
263891
+ ];
263892
+ if (ignoreFiles.includes(path7)) {
263893
+ return true;
263765
263894
  }
263766
263895
  return false;
263767
263896
  };
@@ -263914,10 +264043,22 @@ var createWatchBuild = async (config, compilerCtx) => {
263914
264043
  return files.length > 0 ? files.map((filename) => `-${filename}`).join("\n") : "none";
263915
264044
  };
263916
264045
  const start = async () => {
263917
- const srcRead = watchSrcDirectory(config, compilerCtx);
263918
- const otherRead = watchRootFiles(config, compilerCtx);
263919
- await srcRead;
263920
- await otherRead;
264046
+ await Promise.all([
264047
+ /**
264048
+ * the `srcDir` directory, e.g. component files
264049
+ */
264050
+ watchFiles(compilerCtx, config.srcDir),
264051
+ /**
264052
+ * the root directory, e.g. `stencil.config.ts`
264053
+ */
264054
+ watchFiles(compilerCtx, config.rootDir, {
264055
+ recursive: false
264056
+ }),
264057
+ /**
264058
+ * the external directories, defined in `watchExternalDirs`, e.g. `node_modules`
264059
+ */
264060
+ ...(config.watchExternalDirs || []).map((dir) => watchFiles(compilerCtx, dir))
264061
+ ]);
263921
264062
  tsWatchProgram = await createTsWatchProgram(config, onBuild);
263922
264063
  return watchWaiter;
263923
264064
  };
@@ -263988,30 +264129,31 @@ var createWatchBuild = async (config, compilerCtx) => {
263988
264129
  request
263989
264130
  };
263990
264131
  };
263991
- var watchSrcDirectory = async (config, compilerCtx) => {
263992
- const srcFiles = await compilerCtx.fs.readdir(config.srcDir, {
263993
- recursive: true,
263994
- excludeDirNames: [".cache", ".git", ".github", ".stencil", ".vscode", "node_modules"],
263995
- excludeExtensions: [
263996
- ".md",
263997
- ".markdown",
263998
- ".txt",
263999
- ".spec.ts",
264000
- ".spec.tsx",
264001
- ".e2e.ts",
264002
- ".e2e.tsx",
264003
- ".gitignore",
264004
- ".editorconfig"
264005
- ]
264006
- });
264007
- srcFiles.filter(({ isFile }) => isFile).forEach(({ absPath }) => compilerCtx.addWatchFile(absPath));
264008
- compilerCtx.addWatchDir(config.srcDir, true);
264009
- };
264010
- var watchRootFiles = async (config, compilerCtx) => {
264011
- const rootFiles = await compilerCtx.fs.readdir(config.rootDir, {
264012
- recursive: false,
264013
- excludeDirNames: [".cache", ".git", ".github", ".stencil", ".vscode", "node_modules"]
264132
+ var EXCLUDE_DIRS = [".cache", ".git", ".github", ".stencil", ".vscode", "node_modules"];
264133
+ var EXCLUDE_EXTENSIONS = [
264134
+ ".md",
264135
+ ".markdown",
264136
+ ".txt",
264137
+ ".spec.ts",
264138
+ ".spec.tsx",
264139
+ ".e2e.ts",
264140
+ ".e2e.tsx",
264141
+ ".gitignore",
264142
+ ".editorconfig"
264143
+ ];
264144
+ var watchFiles = async (compilerCtx, dir, options) => {
264145
+ var _a2, _b, _c;
264146
+ const recursive = (_a2 = options == null ? void 0 : options.recursive) != null ? _a2 : true;
264147
+ const excludeDirNames = (_b = options == null ? void 0 : options.excludeDirNames) != null ? _b : EXCLUDE_DIRS;
264148
+ const excludeExtensions = (_c = options == null ? void 0 : options.excludeExtensions) != null ? _c : EXCLUDE_EXTENSIONS;
264149
+ const rootFiles = await compilerCtx.fs.readdir(dir, {
264150
+ recursive,
264151
+ excludeDirNames,
264152
+ excludeExtensions
264014
264153
  });
264154
+ if (recursive) {
264155
+ compilerCtx.addWatchDir(dir, true);
264156
+ }
264015
264157
  rootFiles.filter(({ isFile }) => isFile).forEach(({ absPath }) => compilerCtx.addWatchFile(absPath));
264016
264158
  };
264017
264159
  var emitFsChange = (compilerCtx, buildCtx) => {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Dev Server Client v4.33.1 | MIT Licensed | https://stenciljs.com
2
+ Stencil Dev Server Client v4.34.0-dev.1749704519.d1b414d | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
 
5
5
  // src/dev-server/client/app-error.css
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/dev-server/client",
3
- "version": "4.33.1",
3
+ "version": "4.34.0-dev.1749704519.d1b414d",
4
4
  "description": "Stencil Dev Server Client.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,6 +1,6 @@
1
- <!doctype html><html><head><meta charset="utf-8"><title>Stencil Dev Server Connector 4.33.1 &#9889</title><style>body{background:black;color:white;font:18px monospace;text-align:center}</style></head><body>
1
+ <!doctype html><html><head><meta charset="utf-8"><title>Stencil Dev Server Connector 4.34.0-dev.1749704519.d1b414d &#9889</title><style>body{background:black;color:white;font:18px monospace;text-align:center}</style></head><body>
2
2
 
3
- Stencil Dev Server Connector 4.33.1 &#9889;
3
+ Stencil Dev Server Connector 4.34.0-dev.1749704519.d1b414d &#9889;
4
4
 
5
5
  <script>!function(e,t,n){"use strict";var r="#dev-server-modal * { box-sizing: border-box !important; } #dev-server-modal { direction: ltr !important; display: block !important; position: absolute !important; top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; z-index: 100000; margin: 0 !important; padding: 0 !important; font-family: -apple-system, 'Roboto', BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !important; font-size: 14px !important; line-height: 1.5 !important; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; text-size-adjust: none; word-wrap: break-word; color: #333 !important; background-color: white !important; box-sizing: border-box !important; overflow: hidden; user-select: auto; } #dev-server-modal-inner { position: relative !important; padding: 0 0 30px 0 !important; width: 100% !important; height: 100%; overflow-x: hidden; overflow-y: scroll; -webkit-overflow-scrolling: touch; } .dev-server-diagnostic { margin: 20px !important; border: 1px solid #ddd !important; border-radius: 3px !important; } .dev-server-diagnostic-masthead { padding: 8px 12px 12px 12px !important; } .dev-server-diagnostic-title { margin: 0 !important; font-weight: bold !important; color: #222 !important; } .dev-server-diagnostic-message { margin-top: 4px !important; color: #555 !important; } .dev-server-diagnostic-file { position: relative !important; border-top: 1px solid #ddd !important; } .dev-server-diagnostic-file-header { display: block !important; padding: 5px 10px !important; color: #555 !important; border-bottom: 1px solid #ddd !important; border-top-left-radius: 2px !important; border-top-right-radius: 2px !important; background-color: #f9f9f9 !important; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; font-size: 12px !important; } a.dev-server-diagnostic-file-header { color: #0000ee !important; text-decoration: underline !important; } a.dev-server-diagnostic-file-header:hover { text-decoration: none !important; background-color: #f4f4f4 !important; } .dev-server-diagnostic-file-name { font-weight: bold !important; } .dev-server-diagnostic-blob { overflow-x: auto !important; overflow-y: hidden !important; border-bottom-right-radius: 3px !important; border-bottom-left-radius: 3px !important; } .dev-server-diagnostic-table { margin: 0 !important; padding: 0 !important; border-spacing: 0 !important; border-collapse: collapse !important; border-width: 0 !important; border-style: none !important; -moz-tab-size: 2; tab-size: 2; } .dev-server-diagnostic-table td, .dev-server-diagnostic-table th { padding: 0 !important; border-width: 0 !important; border-style: none !important; } td.dev-server-diagnostic-blob-num { padding-right: 10px !important; padding-left: 10px !important; width: 1% !important; min-width: 50px !important; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; font-size: 12px !important; line-height: 20px !important; color: rgba(0, 0, 0, 0.3) !important; text-align: right !important; white-space: nowrap !important; vertical-align: top !important; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; border: solid #eee !important; border-width: 0 1px 0 0 !important; } td.dev-server-diagnostic-blob-num::before { content: attr(data-line-number) !important; } .dev-server-diagnostic-error-line td.dev-server-diagnostic-blob-num { background-color: #ffdddd !important; border-color: #ffc9c9 !important; } .dev-server-diagnostic-error-line td.dev-server-diagnostic-blob-code { background: rgba(255, 221, 221, 0.25) !important; z-index: -1; } .dev-server-diagnostic-open-in-editor td.dev-server-diagnostic-blob-num:hover { cursor: pointer; background-color: #ffffe3 !important; font-weight: bold; } .dev-server-diagnostic-open-in-editor.dev-server-diagnostic-error-line td.dev-server-diagnostic-blob-num:hover { background-color: #ffdada !important; } td.dev-server-diagnostic-blob-code { position: relative !important; padding-right: 10px !important; padding-left: 10px !important; line-height: 20px !important; vertical-align: top !important; overflow: visible !important; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; font-size: 12px !important; color: #333 !important; word-wrap: normal !important; white-space: pre !important; } td.dev-server-diagnostic-blob-code::before { content: '' !important; } .dev-server-diagnostic-error-chr { position: relative !important; } .dev-server-diagnostic-error-chr::before { position: absolute !important; z-index: -1; top: -3px !important; left: 0px !important; width: 8px !important; height: 20px !important; background-color: #ffdddd !important; content: '' !important; } /** * GitHub Gist Theme * Author : Louis Barranqueiro - https://github.com/LouisBarranqueiro * https://highlightjs.org/ */ .hljs-comment, .hljs-meta { color: #969896; } .hljs-string, .hljs-variable, .hljs-template-variable, .hljs-strong, .hljs-emphasis, .hljs-quote { color: #df5000; } .hljs-keyword, .hljs-selector-tag, .hljs-type { color: #a71d5d; } .hljs-literal, .hljs-symbol, .hljs-bullet, .hljs-attribute { color: #0086b3; } .hljs-section, .hljs-name { color: #63a35c; } .hljs-tag { color: #333333; } .hljs-title, .hljs-attr, .hljs-selector-id, .hljs-selector-class, .hljs-selector-attr, .hljs-selector-pseudo { color: #795da3; } .hljs-addition { color: #55a532; background-color: #eaffea; } .hljs-deletion { color: #bd2c00; background-color: #ffecec; } .hljs-link { text-decoration: underline; }",o=function(e){var t,n,r={diagnostics:[],status:null};return e&&e.window&&Array.isArray(e.buildResults.diagnostics)&&(t=e.buildResults.diagnostics.filter((function(e){return"error"===e.level}))).length>0&&(n=s(e.window.document),t.forEach((function(t){r.diagnostics.push(t),i(e.window.document,e.openInEditor,n,t)})),r.status="error"),r},i=function(e,t,n,r){var o,i,s,l,u,m,f,g,h,v,b,w,y,k,E,C,L=e.createElement("div");L.className="dev-server-diagnostic",(u=e.createElement("div")).className="dev-server-diagnostic-masthead",u.title="".concat(d(r.type)," error: ").concat(d(null!==(o=r.code)&&void 0!==o?o:"unknown error")),L.appendChild(u),(m=e.createElement("div")).className="dev-server-diagnostic-title","string"==typeof r.header&&r.header.trim().length>0?m.textContent=r.header:m.textContent="".concat(c(r.type)," ").concat(c(r.level)),u.appendChild(m),(f=e.createElement("div")).className="dev-server-diagnostic-message",f.textContent=r.messageText,u.appendChild(f),(g=e.createElement("div")).className="dev-server-diagnostic-file",L.appendChild(g),h="string"==typeof r.absFilePath&&0===r.absFilePath.indexOf("http"),v="function"==typeof t&&"string"==typeof r.absFilePath&&!h,h?((b=e.createElement("a")).href=null!==(i=r.absFilePath)&&void 0!==i?i:"",b.setAttribute("target","_blank"),b.setAttribute("rel","noopener noreferrer"),b.className="dev-server-diagnostic-file-header",(w=e.createElement("span")).className="dev-server-diagnostic-file-path",w.textContent=null!==(s=r.absFilePath)&&void 0!==s?s:"",b.appendChild(w),g.appendChild(b)):r.relFilePath&&((b=e.createElement(v?"a":"div")).className="dev-server-diagnostic-file-header",r.absFilePath&&(b.title=d(r.absFilePath),v&&a(t,b,r.absFilePath,r.lineNumber,r.columnNumber)),y=r.relFilePath.split("/"),(k=e.createElement("span")).className="dev-server-diagnostic-file-name",k.textContent=null!==(l=y.pop())&&void 0!==l?l:"",(w=e.createElement("span")).className="dev-server-diagnostic-file-path",w.textContent=y.join("/")+"/",b.appendChild(w),b.appendChild(k),g.appendChild(b)),r.lines&&r.lines.length>0&&((E=e.createElement("div")).className="dev-server-diagnostic-blob",g.appendChild(E),(C=e.createElement("table")).className="dev-server-diagnostic-table",E.appendChild(C),p(r.lines).forEach((function(n){var o,i,s,l,c,p,u,m=e.createElement("tr");n.errorCharStart>0&&m.classList.add("dev-server-diagnostic-error-line"),v&&m.classList.add("dev-server-diagnostic-open-in-editor"),C.appendChild(m),(l=e.createElement("td")).className="dev-server-diagnostic-blob-num",n.lineNumber>0&&(l.setAttribute("data-line-number",n.lineNumber+""),l.title=d(null!==(o=r.relFilePath)&&void 0!==o?o:"")+", line "+n.lineNumber,c=r.absFilePath,v&&c&&(p=n.lineNumber===r.lineNumber?r.columnNumber:1,a(t,l,c,n.lineNumber,p))),m.appendChild(l),(u=e.createElement("td")).className="dev-server-diagnostic-blob-code",u.innerHTML=A(null!==(i=n.text)&&void 0!==i?i:"",n.errorCharStart,null!==(s=n.errorLength)&&void 0!==s?s:0),m.appendChild(u)}))),n.appendChild(L)},a=function(e,t,n,r,o){var i,a;"A"===t.tagName&&(t.href="#open-in-editor"),i="number"!=typeof r||r<1?1:r,a="number"!=typeof o||o<1?1:o,t.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e({file:n,line:i,column:a})}))},s=function(e){var t=e.getElementById(m);return t||((t=e.createElement("div")).id=m,t.setAttribute("role","dialog"),e.body.appendChild(t)),t.innerHTML="<style>".concat(r,'</style><div id="').concat(m,'-inner"></div>'),e.getElementById("".concat(m,"-inner"))},l=function(e){var t=e.window.document.getElementById(m);(null==t?void 0:t.parentNode)&&t.parentNode.removeChild(t)},d=function(e){return"number"==typeof e||"boolean"==typeof e?e.toString():"string"==typeof e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"):""},c=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},A=function(e,t,n){if("string"!=typeof e)return"";var r=t+n;return e.split("").map((function(e,n){var o;return o="<"===e?"&lt;":">"===e?"&gt;":'"'===e?"&quot;":"'"===e?"&#039;":"&"===e?"&amp;":e,n>=t&&n<r&&(o='<span class="dev-server-diagnostic-error-chr">'.concat(o,"</span>")),o})).join("")},p=function(e){var t,n,r,o,i,a=JSON.parse(JSON.stringify(e));for(o=0;o<100;o++){if(!u(a))return a;for(i=0;i<a.length;i++)if(a[i].text=null!==(n=null===(t=a[i].text)||void 0===t?void 0:t.slice(1))&&void 0!==n?n:"",a[i].errorCharStart--,!(null===(r=a[i].text)||void 0===r?void 0:r.length))return a}return a},u=function(e){var t,n,r,o,i;if(!e.length)return!1;for(o=0;o<e.length;o++){if(!e[o].text||(null!==(n=null===(t=e[o].text)||void 0===t?void 0:t.length)&&void 0!==n?n:0)<1)return!1;if(" "!==(i=null===(r=e[o].text)||void 0===r?void 0:r.charAt(0))&&"\t"!==i)return!1}return!0},m="dev-server-modal",f=function(e,t){e.dispatchEvent(new CustomEvent(y,{detail:t}))},g=function(e,t){e.dispatchEvent(new CustomEvent(k,{detail:t}))},h=function(e,t){e.dispatchEvent(new CustomEvent(E,{detail:t}))},v=function(e,t){e.addEventListener(y,(function(e){t(e.detail)}))},b=function(e,t){e.addEventListener(k,(function(e){t(e.detail)}))},w=function(e,t){e.addEventListener(E,(function(e){t(e.detail)}))},y="devserver:buildlog",k="devserver:buildresults",E="devserver:buildstatus",C=function(e,t,n){return"string"==typeof n&&""!==n.trim()&&L(t)===L(n)?Q(n,e):n},L=function(e){var t=e.split("/");return t[t.length-1].split("&")[0].split("?")[0]},j=function(e){var t={};return"string"==typeof e&&e.split("&").forEach((function(e){var n=e.split("=");t[n[0]]=n[1]?n[1]:""})),t},x=function(e){return Object.keys(e).map((function(t){return t+"="+e[t]})).join("&")},I=function(e,t,n){var r=e.split("?"),o=r[0],i=j(r[1]);return i[t]=n,o+"?"+x(i)},Q=function(e,t){return I(e,"s-hmr",t)},H=function(e,t,n){for(var r,o,i=/url\((['"]?)(.*)\1\)/gi,a=n;null!==(r=i.exec(n));)o=r[2],a=a.replace(o,C(e,t,o));return a},S=function(e){return"link"===e.nodeName.toLowerCase()&&!!e.href&&!!e.rel&&"stylesheet"===e.rel.toLowerCase()},B=function(e){return"template"===e.nodeName.toLowerCase()&&!!e.content&&11===e.content.nodeType},U=function(e,t){e.setAttribute("data-hmr",t)},N=function(e){return!!e.shadowRoot&&11===e.shadowRoot.nodeType&&e.shadowRoot!==e},D=function(e){return!!e&&1===e.nodeType&&!!e.getAttribute},F=function(e,t,n){var r=[];return n.forEach((function(n){T(r,e,t,n)})),r.sort()},T=function(e,t,n,r){if(t.nodeName.toLowerCase()===r&&"function"==typeof t["s-hmr"]&&(t["s-hmr"](n),U(t,n),-1===e.indexOf(r)&&e.push(r)),N(t)&&T(e,t.shadowRoot,n,r),t.children)for(var o=0;o<t.children.length;o++)T(e,t.children[o],n,r)},R=function(e,t,n){if(S(e)&&n.forEach((function(n){O(e,t,n)})),B(e)&&R(e.content,t,n),N(e)&&R(e.shadowRoot,t,n),e.children)for(var r=0;r<e.children.length;r++)R(e.children[r],t,n);return n.sort()},O=function(e,t,n){var r=e.getAttribute("href"),o=C(t,n,e.href);o!==r&&(e.setAttribute("href",o),U(e,t))},M=function(e,t,n,r){return"file:"!==e.location.protocol&&t.styleSheets&&z(t,n,r),P(e,t.documentElement,n,r),r.sort()},z=function(e,t,n){var r,o=Object.keys(e.documentElement.style).filter((function(e){return e.endsWith("Image")}));for(r=0;r<e.styleSheets.length;r++)K(o,e.styleSheets[r],t,n)},K=function(e,t,n,r){var o,i,a;try{for(o=t.cssRules,i=0;i<o.length;i++)switch((a=o[i]).type){case CSSRule.IMPORT_RULE:K(e,a.styleSheet,n,r);break;case CSSRule.STYLE_RULE:J(e,a,n,r);break;case CSSRule.MEDIA_RULE:K(e,a,n,r)}}catch(e){console.error("hmrStyleSheetImages: "+e)}},J=function(e,t,n,r){e.forEach((function(e){r.forEach((function(r){var o=t.style[e],i=H(n,r,o);o!==i&&(t.style[e]=i)}))}))},P=function(e,t,n,r){var o,i,a=t.nodeName.toLowerCase();if("img"===a&&Y(t,n,r),D(t)&&(o=t.getAttribute("style"))&&W(t,n,r,o),"style"===a&&X(t,n,r),"file:"!==e.location.protocol&&S(t)&&q(t,n,r),B(t)&&P(e,t.content,n,r),N(t)&&P(e,t.shadowRoot,n,r),t.children)for(i=0;i<t.children.length;i++)P(e,t.children[i],n,r)},Y=function(e,t,n){n.forEach((function(n){var r=e.getAttribute("src"),o=C(t,n,r);o!==r&&(e.setAttribute("src",o),U(e,t))}))},W=function(e,t,n,r){n.forEach((function(n){var o=H(t,n,r);o!==r&&(e.setAttribute("style",o),U(e,t))}))},X=function(e,t,n){n.forEach((function(n){var r=e.innerHTML,o=H(t,n,r);o!==r&&(e.innerHTML=o,U(e,t))}))},q=function(e,t,n){e.href=I(e.href,"s-hmr-urls",n.sort().join(",")),e.href=Q(e.href,t),e.setAttribute("data-hmr",t)},G=function(e,t,n){var r,o=n;if(D(e)&&"style"===e.nodeName.toLowerCase()&&o.forEach((function(n){Z(e,t,n)})),B(e)&&G(e.content,t,o),N(e)&&G(e.shadowRoot,t,o),e.children)for(r=0;r<e.children.length;r++)G(e.children[r],t,o);return o.map((function(e){return e.styleTag})).reduce((function(e,t){return-1===e.indexOf(t)&&e.push(t),e}),[]).sort()},Z=function(e,t,n){e.getAttribute("sty-id")===n.styleId&&n.styleText&&(e.innerHTML=n.styleText.replace(/\\n/g,"\n"),e.setAttribute("data-hmr",t))},V=function(e){var t,n,r,o,i,a={updatedComponents:[],updatedExternalStyles:[],updatedInlineStyles:[],updatedImages:[],versionId:""};try{if(!(e&&e.window&&e.window.document.documentElement&&e.hmr&&"string"==typeof e.hmr.versionId))return a;n=(t=e.window).document,r=e.hmr,o=n.documentElement,i=r.versionId,a.versionId=i,r.componentsUpdated&&(a.updatedComponents=F(o,i,r.componentsUpdated)),r.inlineStylesUpdated&&(a.updatedInlineStyles=G(o,i,r.inlineStylesUpdated)),r.externalStylesUpdated&&(a.updatedExternalStyles=R(o,i,r.externalStylesUpdated)),r.imagesUpdated&&(a.updatedImages=M(t,n,i,r.imagesUpdated)),U(o,i)}catch(e){console.error(e)}return a},_=function(e){return re(ae,"Build",e)},$=function(e){return ee("Reload",e)},ee=function(e,t){return re(oe,e,t)},te=function(e,t){return re(se,e,t)},ne=function(e){var t,n=e,r=ie,o="Error";"warn"===n.level&&(r=oe,o="Warning"),n.header&&(o=n.header),t="",n.relFilePath&&(t+=n.relFilePath,"number"==typeof n.lineNumber&&n.lineNumber>0&&(t+=", line "+n.lineNumber,"number"==typeof n.columnNumber&&n.columnNumber>0&&(t+=", column "+n.columnNumber)),t+="\n"),t+=n.messageText,re(r,o,t)},re=function(e,t,n){"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.indexOf("Trident")>-1?console.log(t,n):console.log.apply(console,["%c"+t,"background: ".concat(e,"; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;"),n])},oe="#f39c12",ie="#c0392b",ae="#3498db",se="#717171",le=function(e){function t(){clearTimeout(s),clearTimeout(a);var e=o();if(!e)return function(){var e=p.createElement("div");e.id=c,e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.zIndex="100001",e.style.width="100%",e.style.height="2px",e.style.transform="scaleX(0)",e.style.opacity="1",e.style.background=u,e.style.transformOrigin="left center",e.style.transition="transform .1s ease-in-out, opacity .5s ease-in",e.style.contain="strict",p.body.appendChild(e)}(),void(i=setTimeout(t,16));e.style.background=u,e.style.opacity="1",e.style.transform="scaleX(".concat(Math.min(1,r()),")"),null==l&&(l=setInterval((function(){d+=.05*Math.random()+.01,r()<.9?t():clearInterval(l)}),800))}function n(){clearInterval(l),d=.05,l=null,clearTimeout(s),clearTimeout(i),clearTimeout(a);var e=o();e&&(f>=1&&(e.style.transform="scaleX(1)"),s=setTimeout((function(){try{var e=o();e&&(e.style.opacity="0")}catch(e){}}),150),a=setTimeout((function(){try{var e=o();e&&e.parentNode.removeChild(e)}catch(e){}}),1e3))}function r(){var e=f+d;return Math.max(0,Math.min(1,e))}function o(){return p.getElementById(c)}var i,a,s,l,d,c,A=e.window,p=A.document,u="#5851ff",m="#b70c19",f=0;n(),v(A,(function(e){(f=e.progress)>=0&&f<1?t():n()})),b(A,(function(e){if(e.hasError){var t=o();t&&(t.style.transform="scaleX(1)",t.style.background=m)}n()})),w(A,(function(e){"disabled"===e&&n()})),"tmpl-initial-load"===p.head.dataset.tmpl&&t(),c="dev-server-progress-bar"},de=function(e){var t=e.window,n=t.document,r=pe(n);r.forEach((function(e){e.href&&(e.dataset.href=e.href,e.dataset.type=e.type)})),w(t,(function(e){ce(n,e)}))},ce=function(e,t){pe(e).forEach((function(e){Ae(e,t)}))},Ae=function(e,t){"pending"===t?(e.href=me,e.type=he,e.setAttribute("data-status",t)):"error"===t?(e.href=fe,e.type=he,e.setAttribute("data-status",t)):"disabled"===t?(e.href=ge,e.type=he,e.setAttribute("data-status",t)):(e.removeAttribute("data-status"),e.dataset.href?(e.href=e.dataset.href,e.type=e.dataset.type):(e.href=ue,e.type=he))},pe=function(e){var t,n,r=[],o=e.querySelectorAll("link");for(t=0;t<o.length;t++)o[t].href&&o[t].rel&&(o[t].rel.indexOf("shortcut")>-1||o[t].rel.indexOf("icon")>-1)&&r.push(o[t]);return 0===r.length&&((n=e.createElement("link")).rel="shortcut icon",e.head.appendChild(n),r.push(n)),r},ue="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAMAAABlApw1AAAAnFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD4jUzeAAAAM3RSTlMAsGDs4wML8QEbBvr2FMhAM7+ILCUPnNzXrX04otO6j3RiT0ggzLSTcmtWUUWoZlknghZc2mZzAAACrklEQVR42u3dWXLiUAyFYWEwg40x8wxhSIAwJtH+99ZVeeinfriX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SENNxYypY0nFlKTxqGmoUcClJwEQu4SUoKdmIBtEpJQZ6xkHeVAKqOYgFUkYL9OwvJclKQrsQCbkcK0olYAF1IQXFgIfVAGnqWcqZwFidYN4phb4L1onCYYMlPsLqUFKwxwRozwTIYcG1FCqrWdwBhgqU7wUo7FlJ7n2DdScPL+RPezfkT3tl5AA217yc89xMssYBbzUjDkEjZEwAA+NFMbOrDJygmZXnwBMWkaRk8QTFpvg6eoJi0aIInKDY9gp/AbEqCJyg2bYOfwGzqKUzPNh2K0Ccwm0IfRBK2KfSLkDvbFPog0tRsUlsh4EZAwP2SgKu9B9wdATcOAg4BZwACbgQEHALOCATcCAg4BJwVCLhREHB/LOAebFNwwC3YJATcKAi4yICjfmJTQwAA4EeZSBkojrWdsvmO4hjbKYtd6ra2Uxa71G1tp0xnqbvo+IPfpe4Nf3K703Ridr3T9OQPfnea7szseaepqX3vNH3NM/xe5fmeZ7i9yiMXQFlJEeydhYy4ymMygCICzmQAxQactbOQMQFnMoBiAs7iVaHIgDN3VSgq4AxeFYoOOGNXhbCUPkaJs4o4q/iXzyp2vgPO/VnFl/OAu/F/jq8KnZ0H3FD7DriL9x+DTH0HXJ75Driq9R1ws6XvgEuvvgOu6HwHHG18BxydnAfc03nAAQAAAAAAAADAz/4BoL2Us9XM2zMAAAAASUVORK5CYII=",he="image/x-icon",ve="/~dev-server",be="".concat(ve,"-init"),we="".concat(ve,"-open-in-editor"),ye=function(e,t){b(e,(function(n){ke(e,t,n)}))},ke=function(e,t,n){var r,i;try{if(n.buildId===e["s-build-id"])return;if(e["s-build-id"]=n.buildId,l({window:e}),n.hasError)return r=Array.isArray(t.editors)&&t.editors.length>0?t.editors[0].id:null,(i=o({window:e,buildResults:n,openInEditor:r?function(t){var n={file:t.file,line:t.line,column:t.column,editor:r},o="".concat(we,"?").concat(Object.keys(n).map((function(e){return"".concat(e,"=").concat(n[e])})).join("&"));e.fetch(o)}:null})).diagnostics.forEach(ne),void h(e,i.status);if(e["s-initial-load"])return void Ce(e,t,(function(){$("Initial load"),e.location.reload()}));n.hmr&&Ee(e,n.hmr)}catch(e){console.error(e)}},Ee=function(e,t){var n,r=!1;"pageReload"===t.reloadStrategy&&(r=!0),t.indexHtmlUpdated&&($("Updated index.html"),r=!0),t.serviceWorkerUpdated&&($("Updated Service Worker: sw.js"),r=!0),t.scriptsAdded&&t.scriptsAdded.length>0&&($("Added scripts: ".concat(t.scriptsAdded.join(", "))),r=!0),t.scriptsDeleted&&t.scriptsDeleted.length>0&&($("Deleted scripts: ".concat(t.scriptsDeleted.join(", "))),r=!0),t.excludeHmr&&t.excludeHmr.length>0&&($("Excluded From Hmr: ".concat(t.excludeHmr.join(", "))),r=!0),r?e.location.reload():((n=V({window:e,hmr:t})).updatedComponents.length>0&&_("Updated component".concat(n.updatedComponents.length>1?"s":"",": ").concat(n.updatedComponents.join(", "))),n.updatedInlineStyles.length>0&&_("Updated styles: ".concat(n.updatedInlineStyles.join(", "))),n.updatedExternalStyles.length>0&&_("Updated stylesheets: ".concat(n.updatedExternalStyles.join(", "))),n.updatedImages.length>0&&_("Updated images: ".concat(n.updatedImages.join(", "))))},Ce=function(e,t,n){e.history.replaceState({},"App",t.basePath),e.navigator.serviceWorker&&e.navigator.serviceWorker.getRegistration?e.navigator.serviceWorker.getRegistration().then((function(e){e?e.unregister().then((function(e){e&&_("unregistered service worker"),n()})):n()})).catch((function(e){ee("Service Worker",e),n()})):n()},Le=function(e,t){function n(){var t=this;A>0&&h(e,"pending"),p||(c=setInterval((function(){if(u++,!p&&t.readyState===WebSocket.OPEN&&u<500){t.send(JSON.stringify({requestBuildResults:!0}))}else clearInterval(c)}),Qe)),clearTimeout(d)}function r(){s()}function o(t){h(e,"disabled"),t.code>Ie?ee("Dev Server","web socket closed: ".concat(t.code," ").concat(t.reason)):te("Dev Server","Disconnected, attempting to reconnect..."),s()}function i(t){var n=JSON.parse(t.data);if(A>0){if(n.isActivelyBuilding)return;if(n.buildResults)return $("Reconnected to dev server"),p=!0,u=0,clearInterval(c),e["s-build-id"]!==n.buildResults.buildId&&e.location.reload(),void(e["s-build-id"]=n.buildResults.buildId)}return n.buildLog?(n.buildLog.progress<1&&h(e,"pending"),void f(e,n.buildLog)):n.buildResults?(p=!0,u=0,clearInterval(c),h(e,"default"),void g(e,n.buildResults)):void 0}function a(){clearTimeout(d),(l=new e.WebSocket(t.socketUrl,["xmpp"])).addEventListener("open",n),l.addEventListener("error",r),l.addEventListener("close",o),l.addEventListener("message",i)}function s(){p=!1,l&&(l.readyState!==WebSocket.OPEN&&l.readyState!==WebSocket.CONNECTING||l.close(Ie),l.removeEventListener("open",n),l.removeEventListener("error",r),l.removeEventListener("close",o),l.removeEventListener("message",i),l=null),clearTimeout(d),A>=je?ee("Dev Server","Canceling reconnect attempts"):(A++,d=setTimeout(a,xe),h(e,"disabled"))}var l,d,c,A=0,p=!1,u=0;a()},je=1e3,xe=2500,Ie=1e3,Qe=500,He=function(e,t){try{if(e["s-dev-server"])return;e["s-dev-server"]=!0,de({window:e}),le({window:e}),ye(e,t),Se(e,t)?(e["s-initial-load"]=!0,Ce(e,t,(function(){Le(e,t)}))):Le(e,t)}catch(e){console.error(e)}},Se=function(e,t){var n=e.location.pathname;return(n="/"+n.substring(t.basePath.length))===be},Be={basePath:t.location.pathname,editors:[],reloadStrategy:"hmr",socketUrl:"".concat("https:"===location.protocol?"wss:":"ws:","//").concat(location.hostname).concat(""!==location.port?":"+location.port:"","/")};He(t,Object.assign({},Be,t.devServerConfig,n))}(window,window.parent,window.__DEV_CLIENT_CONFIG__);
6
6
  </script></body></html>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Dev Server v4.33.1 | MIT Licensed | https://stenciljs.com
2
+ Stencil Dev Server v4.34.0-dev.1749704519.d1b414d | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/dev-server",
3
- "version": "4.33.1",
3
+ "version": "4.34.0-dev.1749704519.d1b414d",
4
4
  "description": "Stencil Development Server which communicates with the Stencil Compiler.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",