@pine-ds/icons 3.4.0 → 3.6.0

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.
Files changed (138) hide show
  1. package/components/pds-icon.js +36 -1
  2. package/components/pds-icon.js.map +1 -1
  3. package/dist/cheatsheet.html +43 -25
  4. package/dist/cjs/{index-17212f65.js → index-30789db3.js} +1 -6
  5. package/dist/{esm/index-d1a605fc.js.map → cjs/index-30789db3.js.map} +1 -1
  6. package/dist/cjs/index.cjs.js +1 -2
  7. package/dist/cjs/index.cjs.js.map +1 -1
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/pds-icon.cjs.entry.js +2 -2
  10. package/dist/cjs/pds-icons.cjs.js +1 -1
  11. package/dist/cjs/{utils-66fa4942.js → utils-868de787.js} +36 -3
  12. package/dist/cjs/utils-868de787.js.map +1 -0
  13. package/dist/collection/components/pds-icon/assetPath.js +36 -0
  14. package/dist/collection/components/pds-icon/assetPath.js.map +1 -0
  15. package/dist/collection/components/pds-icon/svg/advanced.svg +1 -0
  16. package/dist/collection/components/pds-icon/svg/assessment.svg +1 -1
  17. package/dist/collection/components/pds-icon/svg/caret-up.svg +1 -1
  18. package/dist/collection/components/pds-icon/svg/cursor-pointer.svg +1 -0
  19. package/dist/collection/components/pds-icon/svg/cursor.svg +1 -0
  20. package/dist/collection/components/pds-icon/svg/custom-field.svg +1 -1
  21. package/dist/collection/components/pds-icon/svg/download.svg +1 -1
  22. package/dist/collection/components/pds-icon/svg/drawer-collapse.svg +1 -0
  23. package/dist/collection/components/pds-icon/svg/drawer-expand.svg +1 -0
  24. package/dist/collection/components/pds-icon/svg/duplicate.svg +1 -1
  25. package/dist/collection/components/pds-icon/svg/form.svg +1 -1
  26. package/dist/collection/components/pds-icon/svg/launch.svg +1 -1
  27. package/dist/collection/components/pds-icon/svg/left-small.svg +1 -1
  28. package/dist/collection/components/pds-icon/svg/logo-klarna.svg +1 -0
  29. package/dist/collection/components/pds-icon/svg/mail-open.svg +1 -0
  30. package/dist/collection/components/pds-icon/svg/microphone-off.svg +1 -1
  31. package/dist/collection/components/pds-icon/svg/move-left.svg +1 -1
  32. package/dist/collection/components/pds-icon/svg/newsletter-2.svg +1 -0
  33. package/dist/collection/components/pds-icon/svg/pause-circle.svg +1 -1
  34. package/dist/collection/components/pds-icon/svg/phone-toolbar-filled.svg +1 -0
  35. package/dist/collection/components/pds-icon/svg/play.svg +1 -1
  36. package/dist/collection/components/pds-icon/svg/plug.svg +1 -1
  37. package/dist/collection/components/pds-icon/svg/preview-off.svg +1 -1
  38. package/dist/collection/components/pds-icon/svg/preview-on.svg +1 -1
  39. package/dist/collection/components/pds-icon/svg/refresh.svg +1 -1
  40. package/dist/collection/components/pds-icon/svg/remove.svg +1 -1
  41. package/dist/collection/components/pds-icon/svg/subscriptions.svg +1 -1
  42. package/dist/collection/components/pds-icon/svg/sync.svg +1 -1
  43. package/dist/collection/components/pds-icon/svg/tablet-landscape.svg +1 -1
  44. package/dist/collection/components/pds-icon/svg/wrench.svg +1 -1
  45. package/dist/collection/components/pds-icon/utils.js +1 -1
  46. package/dist/collection/components/pds-icon/utils.js.map +1 -1
  47. package/dist/docs.json +1 -1
  48. package/dist/esm/{index-d1a605fc.js → index-68ccb33c.js} +2 -6
  49. package/dist/esm/index-68ccb33c.js.map +1 -0
  50. package/dist/esm/index.js +1 -2
  51. package/dist/esm/index.js.map +1 -1
  52. package/dist/esm/loader.js +2 -2
  53. package/dist/esm/pds-icon.entry.js +2 -2
  54. package/dist/esm/pds-icons.js +2 -2
  55. package/dist/esm/{utils-c7e6be67.js → utils-529a5e56.js} +35 -2
  56. package/dist/esm/utils-529a5e56.js.map +1 -0
  57. package/dist/pds-icons/index.esm.js +1 -1
  58. package/dist/pds-icons/p-194a0f36.js +3 -0
  59. package/dist/pds-icons/{p-19d7058a.js.map → p-194a0f36.js.map} +1 -1
  60. package/dist/pds-icons/{p-c34805d3.entry.js → p-982dfca2.entry.js} +2 -2
  61. package/dist/pds-icons/p-f954ed14.js +2 -0
  62. package/dist/pds-icons/p-f954ed14.js.map +1 -0
  63. package/dist/pds-icons/pds-icons.esm.js +1 -1
  64. package/dist/pds-icons/svg/advanced.svg +1 -0
  65. package/dist/pds-icons/svg/assessment.svg +1 -1
  66. package/dist/pds-icons/svg/caret-up.svg +1 -1
  67. package/dist/pds-icons/svg/cursor-pointer.svg +1 -0
  68. package/dist/pds-icons/svg/cursor.svg +1 -0
  69. package/dist/pds-icons/svg/custom-field.svg +1 -1
  70. package/dist/pds-icons/svg/download.svg +1 -1
  71. package/dist/pds-icons/svg/drawer-collapse.svg +1 -0
  72. package/dist/pds-icons/svg/drawer-expand.svg +1 -0
  73. package/dist/pds-icons/svg/duplicate.svg +1 -1
  74. package/dist/pds-icons/svg/form.svg +1 -1
  75. package/dist/pds-icons/svg/launch.svg +1 -1
  76. package/dist/pds-icons/svg/left-small.svg +1 -1
  77. package/dist/pds-icons/svg/logo-klarna.svg +1 -0
  78. package/dist/pds-icons/svg/mail-open.svg +1 -0
  79. package/dist/pds-icons/svg/microphone-off.svg +1 -1
  80. package/dist/pds-icons/svg/move-left.svg +1 -1
  81. package/dist/pds-icons/svg/newsletter-2.svg +1 -0
  82. package/dist/pds-icons/svg/pause-circle.svg +1 -1
  83. package/dist/pds-icons/svg/phone-toolbar-filled.svg +1 -0
  84. package/dist/pds-icons/svg/play.svg +1 -1
  85. package/dist/pds-icons/svg/plug.svg +1 -1
  86. package/dist/pds-icons/svg/preview-off.svg +1 -1
  87. package/dist/pds-icons/svg/preview-on.svg +1 -1
  88. package/dist/pds-icons/svg/refresh.svg +1 -1
  89. package/dist/pds-icons/svg/remove.svg +1 -1
  90. package/dist/pds-icons/svg/subscriptions.svg +1 -1
  91. package/dist/pds-icons/svg/sync.svg +1 -1
  92. package/dist/pds-icons/svg/tablet-landscape.svg +1 -1
  93. package/dist/pds-icons/svg/wrench.svg +1 -1
  94. package/dist/pds-icons.json +161 -1
  95. package/dist/pds-icons.symbols.svg +31 -22
  96. package/dist/svg/advanced.svg +1 -0
  97. package/dist/svg/assessment.svg +1 -1
  98. package/dist/svg/caret-up.svg +1 -1
  99. package/dist/svg/cursor-pointer.svg +1 -0
  100. package/dist/svg/cursor.svg +1 -0
  101. package/dist/svg/custom-field.svg +1 -1
  102. package/dist/svg/download.svg +1 -1
  103. package/dist/svg/drawer-collapse.svg +1 -0
  104. package/dist/svg/drawer-expand.svg +1 -0
  105. package/dist/svg/duplicate.svg +1 -1
  106. package/dist/svg/form.svg +1 -1
  107. package/dist/svg/launch.svg +1 -1
  108. package/dist/svg/left-small.svg +1 -1
  109. package/dist/svg/logo-klarna.svg +1 -0
  110. package/dist/svg/mail-open.svg +1 -0
  111. package/dist/svg/microphone-off.svg +1 -1
  112. package/dist/svg/move-left.svg +1 -1
  113. package/dist/svg/newsletter-2.svg +1 -0
  114. package/dist/svg/pause-circle.svg +1 -1
  115. package/dist/svg/phone-toolbar-filled.svg +1 -0
  116. package/dist/svg/play.svg +1 -1
  117. package/dist/svg/plug.svg +1 -1
  118. package/dist/svg/preview-off.svg +1 -1
  119. package/dist/svg/preview-on.svg +1 -1
  120. package/dist/svg/refresh.svg +1 -1
  121. package/dist/svg/remove.svg +1 -1
  122. package/dist/svg/subscriptions.svg +1 -1
  123. package/dist/svg/sync.svg +1 -1
  124. package/dist/svg/tablet-landscape.svg +1 -1
  125. package/dist/svg/wrench.svg +1 -1
  126. package/dist/types/components/pds-icon/assetPath.d.ts +16 -0
  127. package/icons/index.d.ts +10 -1
  128. package/icons/index.js +31 -22
  129. package/icons/index.mjs +31 -22
  130. package/icons/package.json +1 -1
  131. package/package.json +1 -1
  132. package/dist/cjs/index-17212f65.js.map +0 -1
  133. package/dist/cjs/utils-66fa4942.js.map +0 -1
  134. package/dist/esm/utils-c7e6be67.js.map +0 -1
  135. package/dist/pds-icons/p-19d7058a.js +0 -3
  136. package/dist/pds-icons/p-7ef171e4.js +0 -2
  137. package/dist/pds-icons/p-7ef171e4.js.map +0 -1
  138. /package/dist/pds-icons/{p-c34805d3.entry.js.map → p-982dfca2.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-d1a605fc.js';
2
- export { s as setNonce } from './index-d1a605fc.js';
1
+ import { b as bootstrapLazy } from './index-68ccb33c.js';
2
+ export { s as setNonce } from './index-68ccb33c.js';
3
3
 
4
4
  const defineCustomElements = (win, options) => {
5
5
  if (typeof window === 'undefined') return undefined;
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h, H as Host, a as getElement } from './index-d1a605fc.js';
2
- import { i as isStr, b as inheritAttributes, g as getUrl, c as getName } from './utils-c7e6be67.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-68ccb33c.js';
2
+ import { i as isStr, b as inheritAttributes, g as getUrl, c as getName } from './utils-529a5e56.js';
3
3
 
4
4
  const validateContent = (svgContent) => {
5
5
  const div = document.createElement('div');
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-d1a605fc.js';
2
- export { s as setNonce } from './index-d1a605fc.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-68ccb33c.js';
2
+ export { s as setNonce } from './index-68ccb33c.js';
3
3
 
4
4
  /*
5
5
  Stencil Client Patch Browser v4.8.1 | MIT Licensed | https://stenciljs.com
@@ -1,4 +1,37 @@
1
- import { g as getAssetPath } from './index-d1a605fc.js';
1
+ let missingAssetPathWarning = false;
2
+ /**
3
+ *
4
+ * Reads the component asset path config from meta tag or a global variable.
5
+ * This is a temporary workaround until these issues have been addressed:
6
+ *
7
+ * https://github.com/ionic-team/stencil/issues/2826/
8
+ * https://github.com/ionic-team/stencil/issues/3470
9
+ * https://github.com/ionic-team/stencil-ds-output-targets/issues/186
10
+ */
11
+ const getAssetPath = (path) => {
12
+ var _a;
13
+ const metaPineAssetPath = (_a = document.head.querySelector('meta[data-pine-asset-path]')) === null || _a === void 0 ? void 0 : _a.dataset.pineAssetPath;
14
+ // Get the asset path from the window object if available
15
+ const windowAssetPath = window.__PINE_ASSET_PATH__;
16
+ // Set the CDN Asset path using the latest version
17
+ const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';
18
+ const assetBasePath = metaPineAssetPath || windowAssetPath || cdnAssetPath || '/';
19
+ // Display a warning if the assets are fetched from the CDN.
20
+ if (assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning) {
21
+ missingAssetPathWarning = true;
22
+ console.warn(`
23
+ Fetching Pine asssets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\n\nFor more information you read the documentation:
24
+ `);
25
+ }
26
+ let assetPath = path;
27
+ if (path.startsWith('./')) {
28
+ assetPath = path.substring(2);
29
+ }
30
+ if (!assetBasePath.endsWith('/')) {
31
+ assetPath = '/' + assetPath;
32
+ }
33
+ return assetBasePath + assetPath;
34
+ };
2
35
 
3
36
  let CACHED_MAP;
4
37
  const addIcons = (icons) => {
@@ -96,4 +129,4 @@ const inheritAttributes = (el, attributes = []) => {
96
129
 
97
130
  export { addIcons as a, inheritAttributes as b, getName as c, getUrl as g, isStr as i };
98
131
 
99
- //# sourceMappingURL=utils-c7e6be67.js.map
132
+ //# sourceMappingURL=utils-529a5e56.js.map
@@ -0,0 +1 @@
1
+ {"file":"utils-529a5e56.js","mappings":"AAEA,IAAI,uBAAuB,GAAG,KAAK,CAAC;AAQpC;;;;;;;;;AASO,MAAM,YAAY,GAAG,CAAC,IAAY;;IACvC,MAAM,iBAAiB,GAAG,MAAA,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAkB,4BAA4B,CAAC,0CAAE,OAAO,CAAC,aAAa,CAAC;;IAG5H,MAAM,eAAe,GAAG,MAAM,CAAC,mBAAmB,CAAC;;IAGnD,MAAM,YAAY,GAAG,6DAA6D,CAAC;IAEnF,MAAM,aAAa,GAA0C,iBAAiB,IAAI,eAAe,IAAI,YAAY,IAAI,GAAG,CAAA;;IA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EAAE;QACP,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC;KACzB;IAED,IAAI,OAAO,CAAC,IAAI,EAAE;QAChB,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAE3B,IAAG,GAAG,EAAE;YACN,OAAO,GAAG,CAAC;SACZ;KACF;IAED,OAAO,IAAI,CAAC;AACd,EAAE;AAGK,MAAM,KAAK,GAAG,CAAC,GAAW,KAAK,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;MAC/D,KAAK,GAAG,CAAC,GAAQ,KAAoB,OAAO,GAAG,KAAK,SAAS;AACnE,MAAM,OAAO,GAAG,CAAC,GAAW,KAAK,GAAG,CAAC,WAAW,EAAE,CAAC;AAE1D;;;;;;;;;;MAUc,iBAAiB,GAAG,CAAC,EAAe,EAAE,aAAuB,EAAE;IAC3E,MAAM,eAAe,GAAyB,EAAE,CAAC;IAEjD,UAAU,CAAC,OAAO,CAAC,IAAI;QACrB,IAAI,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;YACzB,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YACpC,IAAI,KAAK,KAAK,IAAI,EAAE;gBAClB,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;aAC/C;YACD,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;SAC1B;KACF,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC;AACzB;;;;","names":[],"sources":["src/components/pds-icon/assetPath.ts","src/components/pds-icon/utils.ts"],"sourcesContent":["import { Build } from '@stencil/core';\n\nlet missingAssetPathWarning = false;\n\ndeclare global {\n interface Window {\n __PINE_ASSET_PATH__?: string\n }\n}\n\n/**\n *\n * Reads the component asset path config from meta tag or a global variable.\n * This is a temporary workaround until these issues have been addressed:\n *\n * https://github.com/ionic-team/stencil/issues/2826/\n * https://github.com/ionic-team/stencil/issues/3470\n * https://github.com/ionic-team/stencil-ds-output-targets/issues/186\n */\nexport const getAssetPath = (path: string) => {\n const metaPineAssetPath = document.head.querySelector<HTMLMetaElement>('meta[data-pine-asset-path]')?.dataset.pineAssetPath;\n\n // Get the asset path from the window object if available\n const windowAssetPath = window.__PINE_ASSET_PATH__;\n\n // Set the CDN Asset path using the latest version\n const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';\n\n const assetBasePath = Build.isTesting ? '/dist/pds-icons' : metaPineAssetPath || windowAssetPath || cdnAssetPath || '/'\n\n // Display a warning if the assets are fetched from the CDN.\n if ( assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning ) {\n missingAssetPathWarning = true;\n console.warn(`\n Fetching Pine asssets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\\n\\nFor more information you read the documentation:\n `)\n }\n\n let assetPath = path;\n\n if ( path.startsWith ('./') ) {\n assetPath = path.substring(2);\n }\n\n if ( !assetBasePath.endsWith('/') ) {\n assetPath = '/' + assetPath;\n }\n\n return assetBasePath + assetPath;\n}\n\n\nexport {};\n","import { getAssetPath } from './assetPath';\n\nimport { PdsIcon } from './pds-icon';\n\nlet CACHED_MAP: Map<string, string>;\n\nexport const addIcons = (icons: { [name: string]: string; }) => {\n const map = getIconMap();\n Object.keys(icons).forEach(name => map.set(name, icons[name]));\n}\n\nexport const getIconMap = (): Map<string, string> => {\n if (typeof window === 'undefined') {\n return new Map();\n } else {\n if (!CACHED_MAP) {\n const win = window as any; // eslint-disable-line @typescript-eslint/no-explicit-any\n win.PdsIcons = win.PdsIcons || {};\n CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();\n }\n\n return CACHED_MAP;\n }\n}\n\nexport const getName = (\n iconName: string | undefined,\n icon: string | undefined\n ) => {\n\n if(!iconName && icon && !isSrc(icon)) {\n iconName = icon;\n }\n\n if (isStr(iconName)) {\n iconName = toLower(iconName);\n }\n\n if (!isStr(iconName) || iconName.trim() === '') {\n return null;\n }\n\n const invalidChars = iconName.replace(/[a-z]|-|\\d/gi,'');\n if (invalidChars != '') { return null; }\n\n return iconName;\n}\n\nconst getNamedUrl = (iconName: string) => {\n const url = getIconMap().get(iconName);\n if (url) {\n return url;\n }\n\n return getAssetPath(`svg/${iconName}.svg`);\n};\n\nexport const getSrc = (src: string | undefined) => {\n if (isStr(src)) {\n src = src.trim();\n\n if (isSrc(src)) {\n return src;\n }\n }\n\n return null;\n}\n\nexport const getUrl = (pdsIcon: PdsIcon) => {\n let url = getSrc(pdsIcon.src);\n if (url) {\n return url;\n }\n\n url = getName(pdsIcon.name, pdsIcon.icon);\n if (url) {\n return getNamedUrl(url);\n }\n\n if (pdsIcon.icon) {\n url = getSrc(pdsIcon.icon);\n\n if(url) {\n return url;\n }\n }\n\n return null;\n};\n\n\nexport const isSrc = (str: string) => str.length > 0 && /(\\/|\\.)/.test(str);\nexport const isStr = (val: any): val is string => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const toLower = (val: string) => val.toLowerCase();\n\n/**\n * Elements inside of web components sometimes need to inherit global attributes\n * set on the host. For example, the inner input in `ion-input` should inherit\n * the `title` attribute that developers set directly on `ion-input`. This\n * helper function should be called in componentWillLoad and assigned to a variable\n * that is later used in the render function.\n *\n * This does not need to be reactive as changing attributes on the host element\n * does not trigger a re-render.\n */\n export const inheritAttributes = (el: HTMLElement, attributes: string[] = []) => {\n const attributeObject: { [k: string]: any } = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n\n attributes.forEach(attr => {\n if (el.hasAttribute(attr)) {\n const value = el.getAttribute(attr);\n if (value !== null) {\n attributeObject[attr] = el.getAttribute(attr);\n }\n el.removeAttribute(attr);\n }\n });\n\n return attributeObject;\n}\n"],"version":3}
@@ -1,2 +1,2 @@
1
- export{a as addIcons}from"./p-7ef171e4.js";import"./p-19d7058a.js";
1
+ export{a as addIcons}from"./p-f954ed14.js";
2
2
  //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1,3 @@
1
+ const t="pds-icons";let n;let e;let s=false;let l=false;const o=(t,n="")=>{{return()=>{}}};const c=(t,n)=>{{return()=>{}}};const i="{visibility:hidden}.hydrated{visibility:inherit}";const f="slot-fb{display:contents}slot-fb[hidden]{display:none}";const r="http://www.w3.org/1999/xlink";const u={};const a=t=>t!=null;const d=t=>{t=typeof t;return t==="object"||t==="function"};function y(t){var n,e,s;return(s=(e=(n=t.head)===null||n===void 0?void 0:n.querySelector('meta[name="csp-nonce"]'))===null||e===void 0?void 0:e.getAttribute("content"))!==null&&s!==void 0?s:undefined}const p=(t,n,...e)=>{let s=null;let l=null;let o=false;let c=false;const i=[];const f=n=>{for(let e=0;e<n.length;e++){s=n[e];if(Array.isArray(s)){f(s)}else if(s!=null&&typeof s!=="boolean"){if(o=typeof t!=="function"&&!d(s)){s=String(s)}if(o&&c){i[i.length-1].t+=s}else{i.push(o?h(null,s):s)}c=o}}};f(e);if(n){if(n.key){l=n.key}{const t=n.className||n.class;if(t){n.class=typeof t!=="object"?t:Object.keys(t).filter((n=>t[n])).join(" ")}}}const r=h(t,null);r.l=n;if(i.length>0){r.o=i}{r.i=l}return r};const h=(t,n)=>{const e={u:0,p:t,t:n,h:null,o:null};{e.l=null}{e.i=null}return e};const v={};const $=t=>t&&t.p===v;const m=(t,n)=>{if(t!=null&&!d(t)){if(n&1){return String(t)}return t}return t};const b=t=>ft(t).$hostElement$;const w=(t,n,e)=>{const s=mt.ce(n,e);t.dispatchEvent(s);return s};const S=new WeakMap;const g=(t,n,e)=>{let s=ht.get(t);if(wt&&e){s=s||new CSSStyleSheet;if(typeof s==="string"){s=n}else{s.replaceSync(n)}}else{s=n}ht.set(t,s)};const k=(t,n,e)=>{var s;const l=C(n);const o=ht.get(l);t=t.nodeType===11?t:$t;if(o){if(typeof o==="string"){t=t.head||t;let e=S.get(t);let c;if(!e){S.set(t,e=new Set)}if(!e.has(l)){{c=$t.createElement("style");c.innerHTML=o;const n=(s=mt.v)!==null&&s!==void 0?s:y($t);if(n!=null){c.setAttribute("nonce",n)}t.insertBefore(c,t.querySelector("link"))}if(n.u&4){c.innerHTML+=f}if(e){e.add(l)}}}else if(!t.adoptedStyleSheets.includes(o)){t.adoptedStyleSheets=[...t.adoptedStyleSheets,o]}}return l};const j=t=>{const n=t.$;const e=t.$hostElement$;const s=n.u;const l=o("attachStyles",n.m);const c=k(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);if(s&10){e["s-sc"]=c;e.classList.add(c+"-h")}l()};const C=(t,n)=>"sc-"+t.m;const M=(t,n,e,s,l,o)=>{if(e!==s){let c=at(t,n);let i=n.toLowerCase();if(n==="class"){const n=t.classList;const l=x(e);const o=x(s);n.remove(...l.filter((t=>t&&!o.includes(t))));n.add(...o.filter((t=>t&&!l.includes(t))))}else if(n==="style"){{for(const n in e){if(!s||s[n]==null){if(n.includes("-")){t.style.removeProperty(n)}else{t.style[n]=""}}}}for(const n in s){if(!e||s[n]!==e[n]){if(n.includes("-")){t.style.setProperty(n,s[n])}else{t.style[n]=s[n]}}}}else if(n==="key");else if(n==="ref"){if(s){s(t)}}else if(!c&&n[0]==="o"&&n[1]==="n"){if(n[2]==="-"){n=n.slice(3)}else if(at(vt,i)){n=i.slice(2)}else{n=i[2]+n.slice(3)}if(e||s){const l=n.endsWith(P);n=n.replace(E,"");if(e){mt.rel(t,n,e,l)}if(s){mt.ael(t,n,s,l)}}}else{const f=d(s);if((c||f&&s!==null)&&!l){try{if(!t.tagName.includes("-")){const l=s==null?"":s;if(n==="list"){c=false}else if(e==null||t[n]!=l){t[n]=l}}else{t[n]=s}}catch(t){}}let u=false;{if(i!==(i=i.replace(/^xlink\:?/,""))){n=i;u=true}}if(s==null||s===false){if(s!==false||t.getAttribute(n)===""){if(u){t.removeAttributeNS(r,n)}else{t.removeAttribute(n)}}}else if((!c||o&4||l)&&!f){s=s===true?"":s;if(u){t.setAttributeNS(r,n,s)}else{t.setAttribute(n,s)}}}}};const O=/\s/;const x=t=>!t?[]:t.split(O);const P="Capture";const E=new RegExp(P+"$");const U=(t,n,e,s)=>{const l=n.h.nodeType===11&&n.h.host?n.h.host:n.h;const o=t&&t.l||u;const c=n.l||u;{for(s in o){if(!(s in c)){M(l,s,o[s],undefined,e,n.u)}}}for(s in c){M(l,s,o[s],c[s],e,n.u)}};const A=(t,e,l,o)=>{const c=e.o[l];let i=0;let f;let r;if(c.t!==null){f=c.h=$t.createTextNode(c.t)}else{f=c.h=$t.createElement(c.p);{U(null,c,s)}if(a(n)&&f["s-si"]!==n){f.classList.add(f["s-si"]=n)}if(c.o){for(i=0;i<c.o.length;++i){r=A(t,c,i);if(r){f.appendChild(r)}}}}return f};const L=(t,n,s,l,o,c)=>{let i=t;let f;if(i.shadowRoot&&i.tagName===e){i=i.shadowRoot}for(;o<=c;++o){if(l[o]){f=A(null,s,o);if(f){l[o].h=f;i.insertBefore(f,n)}}}};const N=(t,n,e)=>{for(let s=n;s<=e;++s){const n=t[s];if(n){const t=n.h;H(n);if(t){t.remove()}}}};const R=(t,n,e,s)=>{let l=0;let o=0;let c=0;let i=0;let f=n.length-1;let r=n[0];let u=n[f];let a=s.length-1;let d=s[0];let y=s[a];let p;let h;while(l<=f&&o<=a){if(r==null){r=n[++l]}else if(u==null){u=n[--f]}else if(d==null){d=s[++o]}else if(y==null){y=s[--a]}else if(T(r,d)){W(r,d);r=n[++l];d=s[++o]}else if(T(u,y)){W(u,y);u=n[--f];y=s[--a]}else if(T(r,y)){W(r,y);t.insertBefore(r.h,u.h.nextSibling);r=n[++l];y=s[--a]}else if(T(u,d)){W(u,d);t.insertBefore(u.h,r.h);u=n[--f];d=s[++o]}else{c=-1;{for(i=l;i<=f;++i){if(n[i]&&n[i].i!==null&&n[i].i===d.i){c=i;break}}}if(c>=0){h=n[c];if(h.p!==d.p){p=A(n&&n[o],e,c)}else{W(h,d);n[c]=undefined;p=h.h}d=s[++o]}else{p=A(n&&n[o],e,o);d=s[++o]}if(p){{r.h.parentNode.insertBefore(p,r.h)}}}}if(l>f){L(t,s[a+1]==null?null:s[a+1].h,e,s,o,a)}else if(o>a){N(n,l,f)}};const T=(t,n)=>{if(t.p===n.p){{return t.i===n.i}}return false};const W=(t,n)=>{const e=n.h=t.h;const l=t.o;const o=n.o;const c=n.t;if(c===null){{{U(t,n,s)}}if(l!==null&&o!==null){R(e,l,n,o)}else if(o!==null){if(t.t!==null){e.textContent=""}L(e,null,n,o,0,o.length-1)}else if(l!==null){N(l,0,l.length-1)}}else if(t.t!==c){e.data=c}};const H=t=>{{t.l&&t.l.ref&&t.l.ref(null);t.o&&t.o.map(H)}};const q=(t,s,l=false)=>{const o=t.$hostElement$;const c=t.$;const i=t.S||h(null,null);const f=$(s)?s:p(null,null,s);e=o.tagName;if(c.k){f.l=f.l||{};c.k.map((([t,n])=>f.l[n]=o[t]))}if(l&&f.l){for(const t of Object.keys(f.l)){if(o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)){f.l[t]=o[t]}}}f.p=null;f.u|=4;t.S=f;f.h=i.h=o.shadowRoot||o;{n=o["s-sc"]}W(i,f)};const F=(t,n)=>{if(n&&!t.j&&n["s-p"]){n["s-p"].push(new Promise((n=>t.j=n)))}};const I=(t,n)=>{{t.u|=16}if(t.u&4){t.u|=512;return}F(t,t.C);const e=()=>V(t,n);return Ot(e)};const V=(t,n)=>{const e=o("scheduleUpdate",t.$.m);const s=t.M;let l;if(n){{l=K(s,"componentWillLoad")}}e();return _(l,(()=>B(t,s,n)))};const _=(t,n)=>z(t)?t.then(n):n();const z=t=>t instanceof Promise||t&&t.then&&typeof t.then==="function";const B=async(t,n,e)=>{var s;const l=t.$hostElement$;const c=o("update",t.$.m);const i=l["s-rc"];if(e){j(t)}const f=o("render",t.$.m);{D(t,n,l,e)}if(i){i.map((t=>t()));l["s-rc"]=undefined}f();c();{const n=(s=l["s-p"])!==null&&s!==void 0?s:[];const e=()=>G(t);if(n.length===0){e()}else{Promise.all(n).then(e);t.u|=4;n.length=0}}};const D=(t,n,e,s)=>{try{n=n.render();{t.u&=~16}{t.u|=2}{{{q(t,n,s)}}}}catch(n){dt(n,t.$hostElement$)}return null};const G=t=>{const n=t.$.m;const e=t.$hostElement$;const s=o("postUpdate",n);const l=t.C;if(!(t.u&64)){t.u|=64;{Q(e)}s();{t.O(e);if(!l){J()}}}else{s()}{if(t.j){t.j();t.j=undefined}if(t.u&512){Mt((()=>I(t,false)))}t.u&=~(4|512)}};const J=n=>{{Q($t.documentElement)}Mt((()=>w(vt,"appload",{detail:{namespace:t}})))};const K=(t,n,e)=>{if(t&&t[n]){try{return t[n](e)}catch(t){dt(t)}}return undefined};const Q=t=>t.classList.add("hydrated");const X=(t,n)=>ft(t).P.get(n);const Y=(t,n,e,s)=>{const l=ft(t);const o=l.$hostElement$;const c=l.P.get(n);const i=l.u;const f=l.M;e=m(e,s.U[n][0]);const r=Number.isNaN(c)&&Number.isNaN(e);const u=e!==c&&!r;if((!(i&8)||c===undefined)&&u){l.P.set(n,e);if(f){if(s.A&&i&128){const t=s.A[n];if(t){t.map((t=>{try{f[t](e,c,n)}catch(t){dt(t,o)}}))}}if((i&(2|16))===2){I(l,false)}}}};const Z=(t,n,e)=>{var s;const l=t.prototype;if(n.U){if(t.watchers){n.A=t.watchers}const o=Object.entries(n.U);o.map((([t,[s]])=>{if(s&31||e&2&&s&32){Object.defineProperty(l,t,{get(){return X(this,t)},set(e){Y(this,t,e,n)},configurable:true,enumerable:true})}}));if(e&1){const e=new Map;l.attributeChangedCallback=function(t,s,o){mt.jmp((()=>{var c;const i=e.get(t);if(this.hasOwnProperty(i)){o=this[i];delete this[i]}else if(l.hasOwnProperty(i)&&typeof this[i]==="number"&&this[i]==o){return}else if(i==null){const e=ft(this);const l=e===null||e===void 0?void 0:e.u;if(l&&!(l&8)&&l&128&&o!==s){const l=e.M;const i=(c=n.A)===null||c===void 0?void 0:c[t];i===null||i===void 0?void 0:i.forEach((n=>{if(l[n]!=null){l[n].call(l,o,s,t)}}))}return}this[i]=o===null&&typeof this[i]==="boolean"?false:o}))};t.observedAttributes=Array.from(new Set([...Object.keys((s=n.A)!==null&&s!==void 0?s:{}),...o.filter((([t,n])=>n[0]&15)).map((([t,s])=>{var l;const o=s[1]||t;e.set(o,t);if(s[0]&512){(l=n.k)===null||l===void 0?void 0:l.push([t,o])}return o}))]))}}return t};const tt=async(t,n,e,s)=>{let l;if((n.u&32)===0){n.u|=32;{l=pt(e);if(l.then){const t=c();l=await l;t()}if(!l.isProxied){{e.A=l.watchers}Z(l,e,2);l.isProxied=true}const t=o("createInstance",e.m);{n.u|=8}try{new l(n)}catch(t){dt(t)}{n.u&=~8}{n.u|=128}t();nt(n.M)}if(l.style){let t=l.style;const n=C(e);if(!ht.has(n)){const s=o("registerStyles",e.m);g(n,t,!!(e.u&1));s()}}}const i=n.C;const f=()=>I(n,true);if(i&&i["s-rc"]){i["s-rc"].push(f)}else{f()}};const nt=t=>{{K(t,"connectedCallback")}};const et=t=>{if((mt.u&1)===0){const n=ft(t);const e=n.$;const s=o("connectedCallback",e.m);if(!(n.u&1)){n.u|=1;{let e=t;while(e=e.parentNode||e.host){if(e["s-p"]){F(n,n.C=e);break}}}if(e.U){Object.entries(e.U).map((([n,[e]])=>{if(e&31&&t.hasOwnProperty(n)){const e=t[n];delete t[n];t[n]=e}}))}{tt(t,n,e)}}else{if(n===null||n===void 0?void 0:n.M){nt(n.M)}else if(n===null||n===void 0?void 0:n.L){n.L.then((()=>nt(n.M)))}}s()}};const st=t=>{{K(t,"disconnectedCallback")}};const lt=async t=>{if((mt.u&1)===0){const n=ft(t);if(n===null||n===void 0?void 0:n.M){st(n.M)}else if(n===null||n===void 0?void 0:n.L){n.L.then((()=>st(n.M)))}}};const ot=(t,n={})=>{var e;const s=o();const l=[];const c=n.exclude||[];const r=vt.customElements;const u=$t.head;const a=u.querySelector("meta[charset]");const d=$t.createElement("style");const p=[];let h;let v=true;Object.assign(mt,n);mt.N=new URL(n.resourcesUrl||"./",$t.baseURI).href;let $=false;t.map((t=>{t[1].map((n=>{var e;const s={u:n[0],m:n[1],U:n[2],R:n[3]};if(s.u&4){$=true}{s.U=n[2]}{s.k=[]}{s.A=(e=n[4])!==null&&e!==void 0?e:{}}const o=s.m;const i=class extends HTMLElement{constructor(t){super(t);t=this;ut(t,s);if(s.u&1){{{t.attachShadow({mode:"open"})}}}}connectedCallback(){if(h){clearTimeout(h);h=null}if(v){p.push(this)}else{mt.jmp((()=>et(this)))}}disconnectedCallback(){mt.jmp((()=>lt(this)))}componentOnReady(){return ft(this).L}};s.T=t[0];if(!c.includes(o)&&!r.get(o)){l.push(o);r.define(o,Z(i,s,1))}}))}));if($){d.innerHTML+=f}{d.innerHTML+=l+i}if(d.innerHTML.length){d.setAttribute("data-styles","");const t=(e=mt.v)!==null&&e!==void 0?e:y($t);if(t!=null){d.setAttribute("nonce",t)}u.insertBefore(d,a?a.nextSibling:u.firstChild)}v=false;if(p.length){p.map((t=>t.connectedCallback()))}else{{mt.jmp((()=>h=setTimeout(J,30)))}}s()};const ct=t=>mt.v=t;const it=new WeakMap;const ft=t=>it.get(t);const rt=(t,n)=>it.set(n.M=t,n);const ut=(t,n)=>{const e={u:0,$hostElement$:t,$:n,P:new Map};{e.L=new Promise((t=>e.O=t));t["s-p"]=[];t["s-rc"]=[]}return it.set(t,e)};const at=(t,n)=>n in t;const dt=(t,n)=>(0,console.error)(t,n);const yt=new Map;const pt=(t,n,e)=>{const s=t.m.replace(/-/g,"_");const l=t.T;const o=yt.get(l);if(o){return o[s]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${l}.entry.js${""}`).then((t=>{{yt.set(l,t)}return t[s]}),dt)};const ht=new Map;const vt=typeof window!=="undefined"?window:{};const $t=vt.document||{head:{}};const mt={u:0,N:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,s)=>t.addEventListener(n,e,s),rel:(t,n,e,s)=>t.removeEventListener(n,e,s),ce:(t,n)=>new CustomEvent(t,n)};const bt=t=>Promise.resolve(t);const wt=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(t){}return false})();const St=[];const gt=[];const kt=(t,n)=>e=>{t.push(e);if(!l){l=true;if(n&&mt.u&4){Mt(Ct)}else{mt.raf(Ct)}}};const jt=t=>{for(let n=0;n<t.length;n++){try{t[n](performance.now())}catch(t){dt(t)}}t.length=0};const Ct=()=>{jt(St);{jt(gt);if(l=St.length>0){mt.raf(Ct)}}};const Mt=t=>bt().then(t);const Ot=kt(gt,true);export{v as H,ot as b,b as g,p as h,bt as p,rt as r,ct as s};
3
+ //# sourceMappingURL=p-194a0f36.js.map